DiverSqrtPriceMath
Contains the math that uses liquidity to compute token deltas or square root of price as a Q64.96
getSTokenDelta
function getSTokenDelta(uint160 sqrtRatioAX96, uint160 sqrtRatioBX96, uint128 liquidity, bool roundUp) internal pure returns (uint256 amount)getSTokenDelta
function getSTokenDelta(uint160 sqrtPriceAX96, uint160 sqrtPriceBX96, int128 liquidity) internal pure returns (int256 amount)getNextSqrtPriceFromSpear
getNextSqrtPriceFromShield
Last updated
Was this helpful?