Getting data from pools
How to determine which token is token0 and which is token1?
How to get address of liquidity pool?
/// @inheritdoc IAlgebraFactory
mapping(address tokenA => mapping(address tokenB => address pool)) public poolByPair;/// @inheritdoc IAlgebraFactory
function computePoolAddress(address token0, address token1) public view returns (address pool);Price
How to get current price in pool?
Can i use "price" value in pool as real price?
How to get actual execution price for swap?
Last updated