usm-oracles

0.0.6 • Public • Published

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.

Package Sidebar

Install

npm i usm-oracles

Weekly Downloads

5

Version

0.0.6

License

GPL-3.0-or-later

Unpacked Size

78.1 kB

Total Files

16

Last publish

Collaborators

  • albertocuesta