Getting Started

newUSD tokens are created through deposits and redeemed through withdrawals. All operations follow the standard ERC4626 vault interface.

Prerequisites

  • Hold AUSD tokens in your wallet
  • Approve the newUSD contract to spend your AUSD (for deposits/mints)

30-Second Integration

1// 1. Approve Vault to spend AUSD (6 decimals)
2IERC20(AUSD).approve(NEW_USD_CONTRACT, DEPOSIT_AMOUNT);
3
4// 2. Deposit AUSD to receive your newUSD tokens
5IVault(NEW_USD_CONTRACT).deposit(DEPOSIT_AMOUNT, msg.sender);
6
7// 3. Result: You hold 1000 units of your custom stablecoin

Basic Operations

The vault supports two primary workflows:

  1. Deposit/Mint: Exchange AUSD for newUSD tokens
  2. Withdraw/Redeem: Exchange newUSD tokens back to AUSD

Both workflows maintain a 1:1 conversion rate. Choose deposit()/withdraw() when you know the exact AUSD amount, or mint()/redeem() when you know the exact newUSD amount.