Skip to content

Liquidity-weighted dex price oracle for offchain price discovery

License

Notifications You must be signed in to change notification settings

hackingETHglobal/offchain-oracle

 
 

Repository files navigation

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
  • Uniswap V3
  • Synthetix
  • Chainlink

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
  • Dfyn

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

Optimism

Supported DEXes

  • Uniswap V3
  • Synthetix

Arbitrum

Supported DEXes

  • Uniswap V3
  • Sushiswap
  • Swapr

Examples

About

Liquidity-weighted dex price oracle for offchain price discovery

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 69.1%
  • Solidity 30.9%