Skip to main content

Spot Price Aggregator

Build Status Coverage Status

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 Examples section below.

Wrappers#

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.

Connectors#

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 Mainnet#

Oracle 0x0AdDd25a91563696D8567Df78D5A01C9a991F9B8#

Supported DEXes
Supported wrappers
Supported connectors
Prev oracle versions (legacy)

Binance Smart Chain#

Oracle 0x0AdDd25a91563696D8567Df78D5A01C9a991F9B8#

Supported DEXes
Supported wrappers
Supported connectors
Prev oracle versions (legacy)

Polygon (Matic)#

Oracle 0x0AdDd25a91563696D8567Df78D5A01C9a991F9B8#

Supported DEXes
Supported wrappers
Supported connectors
Prev oracle versions (legacy)

Optimism#

Oracle 0x0AdDd25a91563696D8567Df78D5A01C9a991F9B8#

Supported DEXes
Supported wrappers
  • // todo: add BaseCoinWrapper
Supported connectors
Prev oracle versions (legacy)

Arbitrum#

Oracle 0x0AdDd25a91563696D8567Df78D5A01C9a991F9B8#

Supported DEXes
Supported wrappers
Supported connectors
Prev oracle versions (legacy)

Avax#

Oracle 0x0AdDd25a91563696D8567Df78D5A01C9a991F9B8#

Supported DEXes
Supported wrappers
Supported connectors
Prev oracle versions (legacy)

xDai#

Oracle 0x0AdDd25a91563696D8567Df78D5A01C9a991F9B8#

Supported DEXes
Supported wrappers
Supported connectors
Prev oracle versions (legacy)

Fantom#

Oracle 0x0AdDd25a91563696D8567Df78D5A01C9a991F9B8#

Supported DEXes
Supported wrappers
Supported connectors
Prev oracle versions (legacy)

Aurora#

Oracle 0x0AdDd25a91563696D8567Df78D5A01C9a991F9B8#

Supported DEXes
Supported wrappers
Supported connectors
Prev oracle versions (legacy)

Klaytn#

Oracle 0x0AdDd25a91563696D8567Df78D5A01C9a991F9B8#

Supported DEXes
Supported wrappers
Supported connectors
Prev oracle versions (legacy)

zkSync#

Oracle 0xc9bB6e4FF7dEEa48e045CEd9C0ce016c7CFbD500#

Supported DEXes
Supported wrappers
Supported connectors
Prev oracle versions (legacy)

Base#

Oracle 0x0AdDd25a91563696D8567Df78D5A01C9a991F9B8#

Supported DEXes
Supported wrappers
Supported connectors
Prev oracle versions (legacy)

Examples#