Redeem or Withdraw newUSD
Description
Users can redeem newUSD tokens for AUSD at any time.
Flow of Funds
- User calls
withdraw()orredeem()withdraw(assets, receiver, owner)- Specify exact AUSD amount to receive. The vault calculates and burns the corresponding newUSD.redeem(newUsd, receiver, owner)- Specify exact newUSD to burn. The vault calculates and sends the corresponding AUSD amount.
- newUSD tokens are burned from user’s balance
- Corresponding AUSD is withdrawn from vault
- Remaining AUSD is transferred to receiver
Examples



