Skip to content

Commit

Permalink
fix: adjust the test error tolerance to 0.05%
Browse files Browse the repository at this point in the history
  • Loading branch information
chefburger committed Dec 2, 2024
1 parent e989fbe commit 4d2348c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/ProtocolFeeController.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -140,8 +140,8 @@ contract ProtocolFeeControllerTest is Test, BinTestHelper, TokenFixture {
assertApproxEqAbs(
totalFee,
protocolFeeZeroForOne.calculateSwapFee(lpFee),
// keeping the error within 0.01% (can't avoid due to precision loss)
100,
// keeping the error within 0.05% (can't avoid due to precision loss)
500,
"totalFee should be equal to protocolFee + (1 - protocolFee) * lpFee"
);
}
Expand Down

0 comments on commit 4d2348c

Please sign in to comment.