Skip to content

Commit

Permalink
use correct var in test
Browse files Browse the repository at this point in the history
  • Loading branch information
dianakocsis committed Oct 30, 2024
1 parent bcaa9e6 commit 0dde4c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/libraries/Pool.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ contract PoolTest is Test {
uint16 expectedProtocolFee = params.zeroForOne ? protocolFee0 : protocolFee1;

uint24 _lpFee = params.lpFeeOverride.isOverride() ? params.lpFeeOverride.removeOverrideFlag() : lpFee;
uint24 swapFee = protocolFee == 0 ? _lpFee : expectedProtocolFee.calculateSwapFee(_lpFee);
uint24 swapFee = expectedProtocolFee == 0 ? _lpFee : expectedProtocolFee.calculateSwapFee(_lpFee);

if (params.amountSpecified >= 0 && swapFee == MAX_LP_FEE) {
vm.expectRevert(Pool.InvalidFeeForExactOut.selector);
Expand Down

0 comments on commit 0dde4c4

Please sign in to comment.