Uniswap / v3-periphery

🦄 🦄 🦄 Peripheral smart contracts for interacting with Uniswap v3
https://uniswap.org
GNU General Public License v2.0
1.17k stars 1.09k forks source link

Expose the ability to price positions against a "fair" price #217

Closed NoahZinsmeister closed 2 years ago

NoahZinsmeister commented 2 years ago

Projects like GUNI (https://github.com/makerdao/univ3-lp-oracle/blob/master/src/GUniLPOracle.sol) need to price positions (LP NFTs?) against a "fair" oracle price for collateralization purposes. We should wrap this logic up and tie it into the rest of the oracle dev stack.

NoahZinsmeister commented 2 years ago

alright scratch this my brain wasn't working, basically already exists in the form of LiquidityAmounts#getAmountsForLiquidity