Mint or Deposit newUSD
Description
Users can obtain newUSD tokens by depositing AUSD into the vault. The vault operates at a 1:1 conversion rate between AUSD and newUSD.
Flow of Funds
- User approves the newUSD contract to spend their AUSD
- User calls
deposit()ormint()deposit(assets, receiver)- Specify exact AUSD amount to deposit. The vault calculates and mints the corresponding newUSD.mint(newUsd, receiver)- Specify exact newUSD you want to receive. The vault calculates and charges the corresponding AUSD amount
- Remaining AUSD is transferred to vault
- Equivalent amount of newUSD is minted to user
Examples



