Skip to main content

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%)

RecipientShare
UNIT Treasury0.5%
Token Treasury0.5%
Liquidity Pool0.5%
Vault0.5%

Operations

OperationDescription
BuySpend USDU to receive TOKEN
SellSpend TOKEN to receive USDU
StakeAdd TOKEN+USDU liquidity
UnstakeRemove 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