zetorange1 / offchain-oracle

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Offchain Price Oracle

Price oracle that shows liquidity-weighted average of spot prices of multiple dexes. The oracle can be easily manipulated inside transaction so it should ONLY be used offchain. See Examples section below.

Wrappers

Price Oracle handles wrapped tokens like WETH, cDAI, aDAI, etc. using custom wrapper smart contracts that wrap/unwrap tokens with latest wrapping exchange rate.

Connectors

As some tokens do not have direct liquidity pairs oracle uses connector tokes to find prices for such tokens.

Supported Deployments

Ethereum Mainnet

Supported DEXes

  • Mooniswap
  • 1inch Liquidity Protocol V1.1
  • Uniswap V1
  • Uniswap V2
  • Sushiswap
  • Equalizer.fi

Supported wrappers

  • Aave V1
  • Aave V2
  • Compound
  • Fulcrum V1
  • Fulcrum V2
  • WETH
  • Cream

Supported connectors

  • ETH
  • WETH
  • DAI
  • USDC
  • USDT
  • WBTC
  • 1INCH

Binance Smart Chain

Supported DEXes

  • 1inch Liquidity Protocol V1.1
  • Pancakeswap
  • Streetswap
  • Bakeryswap
  • Julswap
  • Demaxswap

Supported wrappers

  • Venus
  • WBNB

Supported connectors

  • BNB
  • WBNB
  • ETH
  • DAI
  • USDC
  • USDT
  • BUSD

Polygon

Supported DEXes

  • QuickSwap
  • ComethSwap
  • SushiSwap

Supported wrappers

  • AAVE
  • WMATIC

Supported connectors

  • MATIC
  • WMATIC

Kovan

Supported DEXes

  • 1inch Liquidity Protocol V1.1
  • Uniswap V2
  • Uniswap V1

Supported wrappers

  • Venus
  • WETH

Supported connectors

  • ETH
  • WETH

Examples

About

License:MIT License


Languages

Language:JavaScript 69.3%Language:Solidity 30.7%