trident
trident copied to clipboard
Rapid AMM Development Framework
Decrease cost of the swap function by ~ 1200 gas by removing an unnecessary BentoBox balanceOf call.
accross -> across
integrate solmate STL, and reduce mloads
Cp patch
Can existing implementation be supported?
https://github.com/sushiswap/trident/blob/ef1f4ed9de50325c8f84edd90aecfafbcfe31ee5/contracts/pool/concentrated/ConcentratedLiquidityPool.sol#L561-L566 When calculating feeGrowth, currentTick must be calculated based on the current price for it to be calculated correctly. * AS-IS ````solidity int24 currentTick = nearestTick; ```` * TO-BE ````solidity...
referenced : `ConcentratedLiquidityPoolManager.sol` Is there any reason why it is possible to call only `msg.sender`? ````solidity require(msg.sender == ownerOf(tokenId), "NOT_ID_OWNER"); ```` If this happens, it will be difficult to create...
when the value of `lower` is `TickMath.MIN_TICK` and `upper` is `TickMath.MAX_TICK`, I think it should be passed `_ensureTickSpacing()` method. But current `_ensureTickSpacing()` block this case. My Suggestion is below. ###...