Spot Price Aggregator

Build Status Coverage Statusarrow-up-right

The 1inch spot price aggregator is a set of smart contracts that extract price data for tokens traded on DEXes from the blockchain. To avoid price manipulations within a transaction, the spot price aggregator should ONLY be used off-chain. DO NOT use it on-chain. For off-chain usage see Examplesarrow-up-right section below.

To handle wrapped tokens, such as wETH, cDAI, aDAI etc., the 1inch spot price aggregator uses custom wrapper smart contracts that wrap/unwrap tokens at the current wrapping exchange rate.

If no direct liquidity pair exists between two tokens, the spot price aggregator calculates rates for those coins using another token that has pairs with both of them – a connector token.

Supported Deployments

Ethereum Mainnetarrow-up-right

Oracle 0x...xxx example

chevron-rightSupported DEXeshashtag
chevron-rightSupported wrappershashtag
chevron-rightSupported connectorshashtag
chevron-rightPrev oracle versions (legacy)hashtag

Binance Smart Chainarrow-up-right

Oracle 0x...xxx example

chevron-rightSupported DEXeshashtag
chevron-rightSupported wrappershashtag
chevron-rightSupported connectorshashtag
chevron-rightPrev oracle versions (legacy)hashtag

Polygon (Matic)arrow-up-right

Oracle 0x...xxx example

chevron-rightSupported DEXeshashtag
chevron-rightSupported wrappershashtag
chevron-rightSupported connectorshashtag
chevron-rightPrev oracle versions (legacy)hashtag

Last updated