From 4d2348ca0e3227e1f0e27c6716357772adc7c3be Mon Sep 17 00:00:00 2001 From: chefburger Date: Mon, 2 Dec 2024 18:19:40 +0800 Subject: [PATCH] fix: adjust the test error tolerance to 0.05% --- test/ProtocolFeeController.t.sol | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/ProtocolFeeController.t.sol b/test/ProtocolFeeController.t.sol index be2e8e6..4dee840 100644 --- a/test/ProtocolFeeController.t.sol +++ b/test/ProtocolFeeController.t.sol @@ -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" ); }