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

CurveMath

Last updated 2 years ago

What is it?

CurveMath is a utility implementing the Newton Algorithm and other mathematical utils used in Curve's CryptoSwap contracts. Here's the .

How are we using it in Perpetuals?

We use it in to get the result of Curve's get_dy function without the fees.

Have a look at the to get a better understanding about how Increment computes the fees.

source code
fees section
get_dx_ex_fees