Skip to content

Commit

Permalink
assume -> bound
Browse files Browse the repository at this point in the history
  • Loading branch information
hensha256 committed Dec 8, 2023
1 parent 6093b60 commit 703136d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/PoolManager.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -577,8 +577,8 @@ contract PoolManagerTest is Test, Deployers, GasSnapshot {
}

function test_swap_accruesProtocolFees(uint8 protocolFee1, uint8 protocolFee0) public {
vm.assume(protocolFee1 >= 4);
vm.assume(protocolFee0 >= 4);
protocolFee0 = uint8(bound(protocolFee0, 4, type(uint8).max));
protocolFee1 = uint8(bound(protocolFee1, 4, type(uint8).max));

uint16 protocolFee = (uint16(protocolFee1) << 8) | (uint16(protocolFee0) & uint16(0xFF));

Expand Down

0 comments on commit 703136d

Please sign in to comment.