Exchange Pallet
The Exchange pallet provides AMM-based decentralized trading for every token, paired with USDU.
Trading Mechanics
- Pair: Every token paired with USDU (TOKEN/USDU)
- AMM Formula: Constant product (
x × y = k) - Pricing: Dynamic — adjusts based on pool ratio
- Fees: 2% per trade, split four ways
Fee Distribution (2%)
| Recipient | Share |
|---|---|
| UNIT Treasury | 0.5% |
| Token Treasury | 0.5% |
| Liquidity Pool | 0.5% |
| Vault | 0.5% |
Operations
| Operation | Description |
|---|---|
| Buy | Spend USDU to receive TOKEN |
| Sell | Spend TOKEN to receive USDU |
| Stake | Add TOKEN+USDU liquidity |
| Unstake | Remove liquidity |
Cross-Pallet Interactions
- Pool Staking — Manages liquidity pool shares
- Treasury — Receives 0.5% of each trade
- Oracle — Price feeds for stable token trading
- Assets — Token balance management
→ See: Exchange Concepts