Xave Finance
Xave Finance Socials
  • Introduction
  • General FAQs
  • Guides
    • How to Connect Your Wallet
    • How to Supply Liquidity
      • How to Add Liquidity to FXPools
      • How to Remove Liquidity from Xave Liquidity Pools
    • How to Use Xave Strategies
      • How to Deposit to xSGD Thetanuts Strategy
      • How to Withdraw from xSGD Thetanuts Strategy
    • How to Swap
    • How to Lend
    • How to Borrow
    • How to Repay
    • How to Withdraw
    • How to Vote for Xave's Gauges in Balancer using veBAL
      • How to get B-80BAL-20WETH
      • How to Lock veBAL
      • How to Vote for a Liquidity Gauge for Xave's Pool
    • How to Earn BAL Rewards
      • How to Stake into a Liquidity Pool's Gauge
      • How to Unstake from a Liquidity Pool's Gauge
      • How to Claim BAL Rewards
    • How to Claim XSGD Rewards
    • How to Test PHPT:USDC on Sepolia Testnet
  • Product Overview
    • FXPools
      • Pool Operator FAQs
      • Invariant FAQs
    • Lending Market
    • Xave Strategies
      • Strategy # 1: Thetanuts
      • Strategy # 2: USDC Lending
  • Tokenomics
    • XAV
    • XAV Tokenomics
      • XAV MultiSigs
      • Claim Portal for Prior Community Supporters
    • Governance
  • Contract Addresses
  • TOKEN LAUNCH
    • XAV Launches and Exchange Listing
  • Future
    • Roadmap
    • FXMetaPool
  • Contract Audits
    • Overview
    • Price Oracles Final Audit
    • FXPool Final Audit
    • Lending Market
    • Standard Operating Procedure for Security
  • Liquidity Provider and Protocol Fees
    • Avalanche Pools
    • Ethereum Pools
    • Polygon (POS) Pools
  • List of supported Stablecoins
    • 🇸🇬XSGD
    • 🇺🇸USDC
    • 🇪🇺EUROC
    • 🇪🇺EURS
    • 🇬🇧GBPT
  • Socials
    • Twitter
    • Medium
    • Discord
    • Github
  • Branding Assets
    • Xave Finance Brand Assets
Powered by GitBook
On this page
  1. Product Overview
  2. FXPools

Invariant FAQs

Last updated 1 year ago

How is Xave’s FX Invariant different from other bonding curves like Uniswap’s Constant product or Curve’s StableSwap?

The FX Invariant determines price differently between 2 regions. In the beta region the spot price is determined by Chainlink price oracles, and the curve has similar behavior to a constant sum invariant (linear). [Refer to line where Beta=1]. Beyond the beta region the spot price is determined by the ratio of existing reserves (the "LP ratio"). This can be represented by the curvature beyond the beta region.

()

This behavior aims to provide a range of "FX accuracy" (the beta region) using less liquidity compared to AMMs that utilize more generalized invariants, such as Uniswap's constant product or Curve's Stableswap.

What are the dimensions of the FX Invariant?

There are 5 dimensions used for this FX Invariant: alpha, beta, delta, lambda and epsilon.

Parameters
Definition

Alpha

Maximum and Minimum Allocation of each reserve

Beta

Depth of Liquidity pool without price slippage

Delta

Rate of Price Change

Epsilon

Fixed Fee

Lambda

Dynamic Fee

What determines the rate of price slippage beyond the beta region?

What is the base level of liquidity needed for efficient swapping?

The slippage tolerance is heavily determined by the parameters set for the respective pairs that are deployed (specifically beta and delta as seen from the diagram above). The parameters are set differently for each individual stablecoin pair depending on the Stablecoin Liquidity Profile associated to it. Overall, the parameters set will cause a larger change to the slippage as compared to the base level liquidity. As a more tangible example under current production parameters, if a pool has ~35k USD worth of liquidity, it can support ~10k USD worth of FX accurate swaps w minimal slippage. Granted this is use case specific to FX trading, but to do the same with Curve or even Uni V3 would entail multiples more liquidity and/or more active effort (in managing the actively traded range for concentrated liquidity).

At what points of the curve can I arbitrage for maximum profit?

Our FX Invariant AMM uses a dynamic fee solution to encourage FX accurate rates by providing a subsidy to users who trade into the beta region, and charging a higher fees for trades away from the beta region. Trading within the beta region incurs a fixed fee.

The rate of price slippage beyond the beta region is determined by the value of delta which is determined by the team's internal Stablecoin Liquidity Profile model ()

https://www.desmos.com/calculator/pfi7o5iirl
https://www.desmos.com/calculator/2qhuh660gd
Answer: The value of delta set