UniswapV3OracleWrapper

UNISWAP_V3_FACTORY

contract IUniswapV3Factory UNISWAP_V3_FACTORY

UNISWAP_V3_POSITION_MANAGER

contract INonfungiblePositionManager UNISWAP_V3_POSITION_MANAGER

ADDRESSES_PROVIDER

contract IPoolAddressesProvider ADDRESSES_PROVIDER

Q128

uint256 Q128

constructor

constructor(address _factory, address _manager, address _addressProvider) public

FeeParams

struct FeeParams {
  uint256 feeGrowthOutside0X128Lower;
  uint256 feeGrowthOutside1X128Lower;
  uint256 feeGrowthOutside0X128Upper;
  uint256 feeGrowthOutside1X128Upper;
}

PairOracleData

struct PairOracleData {
  uint256 token0Price;
  uint256 token1Price;
  uint8 token0Decimal;
  uint8 token1Decimal;
  uint160 sqrtPriceX96;
}

getOnchainPositionData

function getOnchainPositionData(uint256 tokenId) public view returns (struct UinswapV3PositionData)

getLiquidityAmount

function getLiquidityAmount(uint256 tokenId) external view returns (uint256 token0Amount, uint256 token1Amount)

getLiquidityAmountFromPositionData

function getLiquidityAmountFromPositionData(struct UinswapV3PositionData positionData) public pure returns (uint256 token0Amount, uint256 token1Amount)

getLpFeeAmount

function getLpFeeAmount(uint256 tokenId) external view returns (uint256 token0Amount, uint256 token1Amount)

getLpFeeAmountFromPositionData

function getLpFeeAmountFromPositionData(struct UinswapV3PositionData positionData) public view returns (uint256 token0Amount, uint256 token1Amount)

getTokenPrice

function getTokenPrice(uint256 tokenId) public view returns (uint256)

getTokensPrices

function getTokensPrices(uint256[] tokenIds) external view returns (uint256[])

getTokensPricesSum

function getTokensPricesSum(uint256[] tokenIds) external view returns (uint256)

latestAnswer

function latestAnswer() external pure returns (int256)

_getOracleData

function _getOracleData(struct UinswapV3PositionData positionData) internal view returns (struct UniswapV3OracleWrapper.PairOracleData)

_getPendingFeeAmounts

function _getPendingFeeAmounts(struct UinswapV3PositionData positionData) internal view returns (uint256 token0Amount, uint256 token1Amount)