OT
  • What is OT
  • 📈Perpetuals trading
    • NFT Perps
    • Open and close positions
    • Funding Rate
    • Trading Fee Rates
    • Insurance Pool
    • Risk Mitigation Measures
    • Liquidation
  • Spot&Borrow
    • â„šī¸AMM & LP
      • Single Side Liquidity
      • Stable coin pools
      • Smaller Divergence Loss
    • 🔄Swap
      • Stable Swap
    • â¯ī¸Borrow
      • Utilization Rate
      • Interest Rate Model
      • Health Factor&Asset Credit
      • Liquidation
  • đŸ’ĩEarn
  • OSD
  • 💲Fee Policy
  • 💸Tokenomics
    • Revenue Distribution
    • Auction of OT
    • OT and vOT
  • đŸšģReferral Reward
  • âš ī¸Risks&Disclaimer
  • 🔗Links&Resources
  • 🔐Audit Reports
  • 📔Addresses
Powered by GitBook
On this page
  • Pricing
  • Equations
  • Maximum slippage
  1. Spot&Borrow

Swap

PreviousSmaller Divergence LossNextStable Swap

Last updated 2 years ago

Pricing

A starting price has to be set when initializing the pool, buy action will push up price, sell action will cause price to depreciate.

Equations

Variable price token swap:

The equations for OSD and OT are as follows:

x = Amount of asset A in the pool, y = x * price of asset A.

x * y = constant, price is set when the pool is initialized. Price cannot be modified manually once the pool is created. Only buy and sell can change the price. Only addition or removal of liquidity will change the constant value.

Stable token swap

0 slippage swap based on oracle price feed

Maximum slippage

Adjust max acceptable slippage percentage by hovering on settings icon:

🔄