For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
Contact support
AUSDAPI ReferenceStable SwapsWhitelabel Stablecoins
AUSDAPI ReferenceStable SwapsWhitelabel Stablecoins
  • Agora Whitelabel Stablecoin Integration Guide
    • Getting Started
    • Mint or Deposit newUSD
    • Redeem or Withdraw newUSD
Contact support
LogoLogo
On this page
  • Prerequisites
  • 30-Second Integration
  • Basic Operations
Agora Whitelabel Stablecoin Integration Guide

Getting Started

Previous

Mint or Deposit newUSD

Next
Built with

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.