Treasury

The following describes relevant, public functions on the USX Treasury smart contract.

Description

The Treasury.sol contract is used to mint and redeem the USX token.

Write Methods

mint

This function is used to mint USX using any of the USX-supported input tokens.

function mint(address _stable, uint256 _amount) public {}
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.

redeem

This function is used to redeem USX for any of tokens that USX supports.

function redeem(address _stable, uint256 _amount) public {}
Parameter Name
Type
Description

_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)

Last updated