NAVAI X - Whitepaper
  • Table of Contents
  • Welcome
  • Overview of NAVAIX
  • Vision & Mission
  • Comparison and Advantages of NAVAIX
  • FAQ
  • NAVAIX DEX
    • NAVAIX Trading Perpetual
      • What is the Perpetual DEXs ?
      • Isolated Margin Vs Cross Margin Trading
      • Key Differences Between Isolated Margin Vs Cross Margin
      • Elastic Automated Market Maker (eAMM)
      • Funding Rates
      • Liquidation
      • Insurance Fund
      • Oracle
      • One-Click Trading
    • Fee
  • NAVAIX AI
    • Signal bot
      • Types and Strategy
      • Features
    • Grid Bot
      • Benefits of using a grid bot
      • Features
    • DCA bot - Building Wealth Over Time
      • Technicalities
      • How to Start Using DCA Strategy in NAVAIX
      • Some Drawbacks of DCA Frequency
      • DCA bot FAQ
  • Algorithmic Trading
    • What is Algorithmic Trading?
    • Algorithmic Trading Strategy.
    • Advantages and Disadvantages of Algorithmic Trading?
    • Stablecoin Vault
      • Performance
      • Vault Strategy
      • Development progress
      • Risk model
    • High-Frequency Trading (HFT)
      • What is High-Frequency Trading (HFT)?
      • Understanding High-Frequency Trading (HFT).
      • Does the Cryptocurrency Market Use High-Frequency Trading?
      • Advantages and Disadvantages of HFT
  • NAVAIX Research Lab
  • TOKEN & ROADMAP
    • Tokenomics
    • Smart Contract
    • Roadmap
  • ADDITIONAL INFORMATION
    • Social Links
    • Security & Audits
    • Terms and Conditions
Powered by GitBook
On this page
  1. NAVAIX DEX
  2. NAVAIX Trading Perpetual

Elastic Automated Market Maker (eAMM)

PreviousKey Differences Between Isolated Margin Vs Cross MarginNextFunding Rates

Last updated 1 year ago

The Automated Market Maker (AMM) plays the role of a central counterparty on DeFi protocols, allowing assets to be traded in a permissionless and instant manner by using liquidity pools .

On NAVAIX, the AMM model and the Constant Product Formula (x * y = k) are the core of price discovery. However, NAVAIX uses a novel approach known as the Elastic AMM (eAMM), modeled after algorithmic stablecoin protocols' efforts to keep their peg by using on-chain algorithms that increase or decrease supply according to market conditions. The eAMM provides a spot-like trading experience and significantly improves capital efficiency by allowing single-asset provision as the BASE asset while synthesizing the QUOTE asset.

NAVAIX uses a simple x * y = k equation to set the mathematical relationship between the particular assets held in the liquidity pools. The eAMM pool is composed of two types of assets. One is the BASE asset (i.e. BTC, ETH, LINK, etc.), while the other is the QUOTE asset (i.e. USDC) that is dynamically supplied.

Example

Let’s assume that the liquidity provider provides 5,000 ETH to the pool, and the ETH price quoted in USDC equals 2,000.

In this case, eAMM will dynamically supply 10,000,000 virtual USDC coins (5,000 * 2,000). The constant, k, in the aforementioned x * y = k equation will be 50,000,000,000 (5,000 * 10,000,000).

  1. Alice decides to open a long position worth 2 ETH with 5x leverage. Alice adds 2 ETH to the margin contract and 20,000 USDC will be traded with eAMM accordingly (2 * 5 * 2,000). In this case, Alice will receive 9.98 ETH (0.1% trading fees excluded for calculation purposes). 5,000 - [50,000,000,000 / (10,000,000 + 20,000)] = 9.98 Alice's long position will be recorded as 11.98 ETH and -20,000 USDC. The amount of ETH and virtual USDC coins within the AMM becomes 4,990.02 ETH and 10,020,000 USDC.

  2. Bob then decides to open a short position worth 1 ETH with 2.5x leverage. Bob adds 1 ETH to the margin contract and 5,000 USDC will be traded with eAMM accordingly (2,000 * 2.5 * 1). In this case, Bob will pay 2.4913 ETH. [50,000,000,000 / (10,020,000 - 5,000)] - 4,990.02 = 2.49 Bob’s short position will be recorded as -1.4913 ETH and 5,000 USDC. The amount of ETH and virtual USDC coins within the AMM is 4,992.51 ETH and 10,015,000 USDC.

  3. Assume that the spot prices of ETH quoted in USDC on other DEX pools are equal to 2,040. The spot price of ETH quoted in USDC on ApeX is currently 2,006 (10,015,000/4,992.51), which deviates by more than 1% from the spot prices on other DEX pools. In this case, the rebase mechanism will be triggered. ApeX will supply virtual USDC coins dynamically to 10,184,723 (4,992.51 * 2,040) so that the spot prices in the pool remain anchored to the spot prices on other DEX pools.

  4. Assume that Alice decides to close her long position recorded as 11.98 ETH and -20,000 USDC. In this case, 20,000 USDC will be removed by eAMM. The number of ETH and virtual USDC coins in the pool becomes 5,002.33 (4,992.51 * 10,184,723 / 10,164,723) and 10,164,723 (10,184,723 - 20,000), respectively. As a result, Alice will pay 9.8232 ETH (5,002.33 - 4,992.51). She will earn a total of 0.1568 ETH (9.98 - 9.8232) after closing her long position.

  5. Assume that Bob then decides to close his short position recorded as -1.4913 ETH and 5,000 USDC. In this case, 5,000 USDC will be supplied by eAMM. The number of ETH and virtual USDC coins in the pool becomes 4,999.88 (5,002.33 * 10,164.723 / 101,697,23) and 10,169,723 (10,164.723 + 5,000), respectively. As a result, Bob will lose a total of 0.0413 ETH (5,002.33-4,999.88 - 1.4913 -1) after closing his short position.