From 2db74673c47587b032ad1f93a31ff5ebd09b830b Mon Sep 17 00:00:00 2001 From: Junion Date: Fri, 7 Jun 2024 17:24:45 -0400 Subject: [PATCH] forge fmt --- test/TakingFee.t.sol | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/test/TakingFee.t.sol b/test/TakingFee.t.sol index 7a1edd50..07af4faf 100644 --- a/test/TakingFee.t.sol +++ b/test/TakingFee.t.sol @@ -107,6 +107,7 @@ contract TakingFeeTest is Test, Deployers { } function testEdgeCase() public { + // first, deplete the pool of token1 // Swap exact token0 for token1 // bool zeroForOne = true; int256 amountSpecified = -1e18; @@ -133,7 +134,10 @@ contract TakingFeeTest is Test, Deployers { uint128 expectedFee2 = (input * takingFee.swapFeeBips()) / (TOTAL_BIPS + takingFee.swapFeeBips()); assertEq(manager.balanceOf(address(takingFee), CurrencyLibrary.toId(key.currency0)), 0); - assertEq(manager.balanceOf(address(takingFee), CurrencyLibrary.toId(key.currency1)) / R, (expectedFee + expectedFee2) / R); + assertEq( + manager.balanceOf(address(takingFee), CurrencyLibrary.toId(key.currency1)) / R, + (expectedFee + expectedFee2) / R + ); // test withdrawing tokens // Currency[] memory currencies = new Currency[](2);