Skip to content

LPOracle

senamakel edited this page Jul 14, 2024 · 2 revisions

Solidity API

LPOracle

This contract provides a price oracle for the liquidity pool tokens in a Nile AMM.

This contract interacts with the INileAMM interface to fetch reserves and calculate prices. Reference from https://github.com/AlphaFinanceLab/alpha-homora-v2-contract/blob/master/contracts/oracle/UniswapV2Oracle.sol

Clone this wiki locally