RA Exchange
  • INTRODUCTION TO RA
    • šŸ‘‘What is RA?
      • āœ–ļøWhy Fraxtal?
    • šŸ«‚Our Partners
    • ā˜Æļøve(3,3) Fundamentals
      • Dilution Protection (Rebase)
      • veRA (veNFT) [WIP]
        • šŸ’°veRA Revenue Distribution Schedule
    • šŸ”®DEX Functionalities
      • Swaps
        • šŸŽ‹Swap Fee Structure
      • Voting
      • Bribing
      • Vesting (veNFT Management)
      • LP Staking
  • Concentrated Liquidity Core
    • šŸ¤”Concentrated Liquidity
      • šŸ”¢Fee Tiers
        • 🄢Tickspacings
      • 🦭Fee Distribution
    • šŸ†CL Gauges
    • šŸ“œBUSL-1.1 License
    • šŸCompetitive Farming
  • RA Tokenomics
    • šŸ“ŠRA Initial Token Distribution [WIP]
    • šŸ“ˆEmissions Schedule [WIP]
    • āŒxRA [WIP]
      • How is xRA obtained?
      • How is xRA used?
      • ā˜øļøxRA "Flywheel"
    • šŸŒ€Dilution Protection (3,3) Rebases
  • Resources
    • šŸ“„Deployed Contract Addresses
    • šŸ“±dApp and Socials
    • šŸ“øRA Media Kit [WIP]
    • šŸŒ‰Bridging To Fraxtal
  • Security and Legal Considerations
    • šŸ›Fixed Solidly Vulnerabilities
    • šŸ› ļøWhy Proxy Contracts?
    • šŸ”Contract Timelock
    • šŸ˜ŽInherited Security
    • šŸ–‹ļøFormal Audits
    • āš–ļøRisks and Legal Disclosures
Powered by GitBook
On this page
  1. INTRODUCTION TO RA
  2. DEX Functionalities

Swaps

PreviousDEX FunctionalitiesNextSwap Fee Structure

Last updated 1 year ago

On RA, similar to other decentralized exchanges (DEXs), users can swap tokens for others. The slippage and trade price are determined based on the total value locked in the liquidity pairs and whether arbitrage activities have balanced the pool to its market rate.

RA features two types of Liquidity Pools, each with its own swap curve:

  • Volatile (UniV2-Style): This is the basic type of pool where tokens are paired with equal weights in terms of dollar value. The volatile swap curve is used to facilitate trades within these pools.

    • The volatile swap curve used is:

xāˆ—y=kx*y=kxāˆ—y=k
  • Correlated (Andre-Style): RA utilizes a stable swap curve that is an efficient implementation compared to other DEXs. The stable swap curve, originally devised by Andre, offers near-zero slippage and is designed to honor his innovative approach to stable swaps.

    • The stable swap curve used is:

x3yĀ +y3x≄kx^{3}y \ +y^{3}x \geq kx3yĀ +y3x≄k

Graphical Representation of The ve(3,3) Swap Curves

To provide a graphical representation of the ve(3,3) swap curves, the graph below illustrates the variance between 0 and 100. It demonstrates that the Green (Correlated) curve exhibits less slippage from the mean as the K value fluctuates.

This visualization helps users understand the behavior of the swap curves and the corresponding slippage levels associated with different values of K. RA aims to provide an optimized trading experience with minimal slippage, enhancing liquidity provision and ensuring efficient token swaps for users.

šŸ”®
Green = StableSwap Curve, Red = Volatile Swap Curve