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?
  1. External Contracts

AggregatorV3Interface

Last updated 2 years ago

What is it?

AggregatorV3Interface is the contract name of the Chainlink oracle to obtain prices.

How are we using it?

We use it to get the Index Price (see: Key Terms) of the trading pairs we trade in the market (e.g. ETHUSD). This price is needed to compute the funding rate to avoid having the price in the protocol move too much from the price of the real asset (see the section to learn more about funding rates).

We also use it to obtain the USD worth of allowlisted non-USD collateral assets. For example, if WETH is an allowlist collateral, we can use this to get the oracle price of WETHUSD and obtain the USD worth of WETH. Learn more about collateral types in and how it affects the system in and .

Funding
UA
Margin
Liquidations