Treasury
The following describes relevant, public functions on the USX Treasury smart contract.
Last updated
The following describes relevant, public functions on the USX Treasury smart contract.
Last updated
The Treasury.sol
contract is used to mint and redeem the USX token.
This function is used to mint USX using any of the USX-supported input tokens.
Parameter Name | Type | Description |
---|---|---|
This function is used to redeem USX for any of tokens that USX supports.
Parameter Name | Type | Description |
---|---|---|
_stable
address
The address of the input token used to mint USX.
_amount
uint256
The amount of the input token used to mint USX. Ensure the correct decimals are used for the corresponding stable: 6 decimals for USDC, 6 decimals for USDT, and 18 decimals for DAI.
_stable
address
The address of the token you want to redeem USX for.
_amount
uint256
The amount of USX tokens to burn upon redemption, in Wei units (18 decimals)