UNISWAP_V3_FACTORY
Copy contract IUniswapV3Factory UNISWAP_V3_FACTORY
UNISWAP_V3_POSITION_MANAGER
Copy contract INonfungiblePositionManager UNISWAP_V3_POSITION_MANAGER
ADDRESSES_PROVIDER
Copy contract IPoolAddressesProvider ADDRESSES_PROVIDER
Q128
constructor
Copy constructor ( address _factory , address _manager , address _addressProvider ) public
FeeParams
Copy struct FeeParams {
uint256 feeGrowthOutside0X128Lower;
uint256 feeGrowthOutside1X128Lower;
uint256 feeGrowthOutside0X128Upper;
uint256 feeGrowthOutside1X128Upper;
}
PairOracleData
Copy struct PairOracleData {
uint256 token0Price;
uint256 token1Price;
uint8 token0Decimal;
uint8 token1Decimal;
uint160 sqrtPriceX96;
}
getOnchainPositionData
Copy function getOnchainPositionData ( uint256 tokenId) public view returns (struct UinswapV3PositionData )
getLiquidityAmount
Copy function getLiquidityAmount ( uint256 tokenId) external view returns ( uint256 token0Amount , uint256 token1Amount)
getLiquidityAmountFromPositionData
Copy function getLiquidityAmountFromPositionData(struct UinswapV3PositionData positionData) public pure returns (uint256 token0Amount, uint256 token1Amount)
getLpFeeAmount
Copy function getLpFeeAmount ( uint256 tokenId) external view returns ( uint256 token0Amount , uint256 token1Amount)
getLpFeeAmountFromPositionData
Copy function getLpFeeAmountFromPositionData(struct UinswapV3PositionData positionData) public view returns (uint256 token0Amount, uint256 token1Amount)
getTokenPrice
Copy function getTokenPrice ( uint256 tokenId) public view returns ( uint256 )
getTokensPrices
Copy function getTokensPrices ( uint256 [] tokenIds) external view returns ( uint256 [])
getTokensPricesSum
Copy function getTokensPricesSum ( uint256 [] tokenIds) external view returns ( uint256 )
latestAnswer
Copy function latestAnswer () external pure returns ( int256 )
_getOracleData
Copy function _getOracleData(struct UinswapV3PositionData positionData) internal view returns (struct UniswapV3OracleWrapper.PairOracleData)
_getPendingFeeAmounts
Copy function _getPendingFeeAmounts(struct UinswapV3PositionData positionData) internal view returns (uint256 token0Amount, uint256 token1Amount)