Price Oracle
How C.R.E.A.M. Finance get token price
Last updated
Was this helpful?
How C.R.E.A.M. Finance get token price
Last updated
Was this helpful?
For the following tokens, we use price feed provided by Chainlink:
ETH / BTC / USDT / USDC / YFI / COMP / BAL / LINK / CRV / BUSD / UNI / wNXM / AAVE / DAI / 1INCH / CEL / COVER / FTT / HEGIC / KP3R / MTA / OMG / SRM / SNX / sUSD / SUSHI / CREAM / DPI / UST / FTM / RUNE / PERP / OCEAN / RAI / RARI / HUSD / AKRO / AMP / SFI / MLN / VSP / GNO / SWAP / FEI / WOO / BNT / PAX / PAXG / LON / YGG / AXS / SAND / MANA / FRAX
For the following BTC-pegged tokens, we use BTC price instead:
WBTC
renBTC
BBTC
HBTC
ibBTC
For SushiSwap LP tokens / Uniswap LP tokens, we use introduced by .
Price for underlying asset is retrieved from Chainlink price feed.
See for the implementation.
For the following tokens, we fetch price from contracts directly:
yUSD (v1) / yETH / yCRV / xSushi / bBadger / yvCurve-IB / yvCurve-sETH / yvCurve-stETH / VVSP / yvWETH (v2) / yUSD (v2)
For the other tokens, we use our own price oracle to get the price.
v1PriceOracle
PriceOracleProxy
PriceOracleProxy (deprecated)
PriceOracleProxy (deprecated)
PriceOracleProxy (deprecated)