Giter VIP home page Giter VIP logo

spot-price-aggregator's Introduction

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

Supported DEXes
Supported wrappers
Supported connectors

Prev oracle version (legacy) - 0x07D91f5fb9Bf7798734C3f606dB065549F6893bb

Binance Smart Chain

Supported DEXes
Supported wrappers
Supported connectors

Prev oracle version (legacy) - 0xfbD61B037C325b959c0F6A7e69D8f37770C2c550

Polygon (Matic)

Supported DEXes
Supported wrappers
Supported connectors

Prev oracle version (legacy) - 0x7F069df72b7A39bCE9806e3AfaF579E54D8CF2b9

Kovan [deprecated]

Supported DEXes
Supported wrappers
Supported connectors

Kovan-Optimism [deprecated]

Supported DEXes

Optimism

Supported DEXes
Supported wrappers
  • // todo: add BaseCoinWrapper
Supported connectors

Prev oracle version (legacy) - 0x11DEE30E710B8d4a8630392781Cc3c0046365d4c

Arbitrum

Supported DEXes
Supported wrappers
Supported connectors

Prev oracle version (legacy) - 0x735247fb0a604c0adC6cab38ACE16D0DbA31295F

Avax

Supported DEXes
Supported wrappers
Supported connectors

Prev oracle version (legacy) - 0xBd0c7AaF0bF082712EbE919a9dD94b2d978f79A9

xDai

Supported DEXes
Supported wrappers
Supported connectors

Prev oracle version (legacy) - 0x142DB045195CEcaBe415161e1dF1CF0337A4d02E

Fantom

Supported DEXes
Supported wrappers
Supported connectors

Prev oracle version (legacy) - 0xE8E598A1041b6fDB13999D275a202847D9b654ca

Aurora

Supported DEXes
Supported wrappers
Supported connectors

Prev oracle version (legacy) - 0xE4E0552452e5cC1306A2bF5B2Fd9b1eA19418795

Klaytn

Supported DEXes
Supported wrappers
Supported connectors

Prev oracle version (legacy) - 0x138CE40d675F9a23E4D6127A8600308Cf7A93381

zkSync

Supported DEXes
Supported wrappers
Supported connectors

Prev oracle version (legacy) - 0x1ec0a5F6dc07E93491426d5aAAc3E2BC505Ef41C

Examples

spot-price-aggregator's People

Contributors

zumzoom avatar zzomrot avatar pzixel avatar sevenswen avatar typicalbuster avatar krboktv avatar belactriple9 avatar coolhill avatar pavelkurmacheff avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.