Who can call what
- Approval is per calling address. Minting and redeeming are approved separately. Check them with
mintWhitelist(address)andredeemWhitelist(address). - The contract checks the caller, not the receiver. An approved route can mint USDh straight to its user’s wallet.
- Accepted stablecoins are listed by
supportedStables(). Today that is USDC only.
Mint
1
Approve the stablecoin
Approve the USDh contract to take the stablecoin amount from your wallet.
2
Call mintWithStable
The contract takes the stablecoin and sends the same amount of USDh to
to, in the same transaction.mint.ts
Redeem
CallredeemForStable(stable, usdhAmount, to). The USDh is burned from the caller, and the same amount of the stablecoin is sent to to.
redeem.ts
The redemption limit
Each address has its own limit in each 7-day window.Minimal interface
IUSDh.sol
Go-live checklist
- Hamilton has confirmed which of your addresses can mint and which can redeem.
- You have tested a small mint and a small redemption.
- Your redemption limit is set, if your contract mints to your users.
- Your sanctions screening matches what your agreement with Hamilton requires.