Skip to content

Commit

Permalink
Changed getMaxAmountInForPool from public to external for gas optimiz…
Browse files Browse the repository at this point in the history
…ation
  • Loading branch information
nigeldelviero committed Mar 5, 2025
1 parent 3b6e0f4 commit fbbcc5c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/utils/AmountHelpers.sol
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ library AmountHelpers {
IPoolManager manager,
IPoolManager.ModifyLiquidityParams memory params,
PoolKey memory key
) public view returns (uint256 amount0, uint256 amount1) {
) external view returns (uint256 amount0, uint256 amount1) {
PoolId id = key.toId();
uint128 liquidity = StateLibrary.getLiquidity(manager, id);
(uint160 sqrtPriceX96, , , ) = StateLibrary.getSlot0(manager, id);
Expand Down

0 comments on commit fbbcc5c

Please sign in to comment.