/price-oracle

LP Price Oracle (UniV2)

Primary LanguageSolidityThe UnlicenseUnlicense

⚠️ 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