thUSD

thUSD (ThUSD.sol) is a simple ERC20 token extending OpenZeppelin's ERC20Burnable standard.

ThUSD.sol

Minting and Burning

thUSD can only be minted and burned by the minter , which is set to the ThUSDMinter.sol contract.

In turn, the mint and burn/redeem methods on ThUSDMinter can only called by a permissioned group of users with the MINTER_ROLE.

Minting and burning is facilitated by a dedicated API with built-in pricing feeds, providing for the option to mint thUSD against non-stablecoin collateral in the future. For a given asset and amount, the API returns an Order struct which the minting user signs and passes to the mint or redeem methods.

ThUSDMinter.sol

Safety Measures

  • ThUSDMinter implements a maxMintPerBlock and maxRedeemPerBlock. These parameters are both initially set to 100,000.

  • Order signatures are verified against their nonces to prevent replay attacks.

  • thUSD can only be minted against supported assets; initially these assets are USDC and USDT.

Staking

thUSD can be staked in strategy contracts such as DELTA:

DELTA

Last updated