Skip to content

Commit

Permalink
forge fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
Jun1on committed Jun 7, 2024
1 parent c2c5e9d commit 2db7467
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion test/TakingFee.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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);
Expand Down

0 comments on commit 2db7467

Please sign in to comment.