Skip to content

Smart contracts to retrieve oracle data from several sources

License

Notifications You must be signed in to change notification settings

usmfum/USM-Oracles

Folders and files

NameName
Last commit message
Last commit date

Latest commit

e082f77 · Dec 4, 2020
Dec 4, 2020
Dec 3, 2020
Oct 28, 2020
Dec 4, 2020
Aug 17, 2020
Sep 30, 2020
Oct 2, 2020
Aug 17, 2020
Aug 17, 2020
Sep 11, 2020
Sep 23, 2020
Dec 4, 2020
Oct 21, 2020
Dec 4, 2020
Oct 28, 2020

Repository files navigation

USM - Oracles

Collection of smart contracts pulling oracle data from several sources.

  • Chainlink: AggregatorV3Interface
  • Compound: UniswapAnchoredView (OpenOracle)
  • MakerDAO: MakerMedianizer
  • Uniswap: Spot Price
  • Uniswap: TWAP (Time Weighted Average Price)

Plus a simple Median library and implementations of medianized oracle integrations.

  • MedianOracle: Median of 3 arbitrary oracles using the Oracle interface.
  • UniswapMedianSpotOracle: Median of 3 uniswap pair spot prices.
  • UniswapMedianTWAPOracle: Median of 3 uniswap pair TWAP prices.
  • CheapMedianOracle: The implementation chosen for USM. Optimal gas use for a Chainlink, Compound and Uniswap TWAP Median.