Skip to content
This repository has been archived by the owner on Sep 18, 2023. It is now read-only.

CygnusDAO/price-oracle

Repository files navigation

⚠️ All CygnusDAO oracles have been moved to a single oracle repository which contains the oracles and the oracle registry. For all oracles see here.

Cygnus LP Oracle

A fair reserves LP Oracle for UniswapV2-style AMMs using Chainlink price feeds.

It returns the price of 1 LP Token denominated in USDC.

The oracle returns the price of each LP Token's assets from Chainlink price feeds and uses it to query against the pool's constant K to avoid using the reserves themselves to determine LP price. This prevents price manipulations from attacks that move along constant AMM curves such as flash loans.

For more info read here and here

About

LP Price Oracle (UniV2)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published