Developer Docs
  • Introduction
  • Key Terms
  • Perpetual Swaps
    • vAMM
    • Margin
    • UA
    • TWAP
    • Funding payments
    • Liquidation
    • Insurance
    • Trading fees
  • Contracts Overview
  • Economic Parameters
  • Risk Factors
  • Guides
    • Trader Interactions
    • Liquidity Provision
    • Liquidation
    • Choosing proposedAmount
    • Governance
    • Staking
  • Core Contracts
    • ClearingHouse
    • Perpetual
    • Vault
    • Oracle
    • Insurance
    • CurveCryptoViews
  • Token Contracts
    • UA
    • vBase
    • vQuote
  • External Contracts
    • CryptoSwap
    • CurveMath
    • CurveToken
    • AggregatorV3Interface
  • Peripheral Contracts
    • RewardController
    • RewardDistributor
    • PerpRewardDistributor
    • StakedToken
    • EcosystemReserve
    • SafetyModule
    • SMRewardDistributor
    • AuctionModule
Powered by GitBook
On this page
  • What is it?
  • How are we using it in Perpetuals?
  1. External Contracts

CryptoSwap

Last updated 2 years ago

What is it?

CryptoSwap is the new generation AMM of , the V2 of the protocol. It is optimized to swap non-stable assets, i.e. assets whose prices move in relation to one another.

The pool we use is created from , the later generates a pool contract which looks like .

How are we using it in Perpetuals?

Essential Cuve's CryptoSwap contract is the best solution for us to this day to implement the vAMM that we rely on for price discovery within a market with leverage allowed. See the section on for more detail.

Curve
the V2 factory contract
the following
vAMM