Skip to content

Commit

Permalink
Tweak tests
Browse files Browse the repository at this point in the history
  • Loading branch information
cairoeth committed Oct 13, 2024
1 parent ea5728e commit 19d5799
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 10 deletions.
1 change: 1 addition & 0 deletions foundry.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ optimizer = true # Enable or disable the
optimizer_runs = 200 # The number of optimizer runs
fs_permissions = [{ access = "read", path = "./"}] # Gives permission to read files for deployment keys.
evm_version = "cancun" # The EVM version to use
ffi = true # Enable the foreign function interface (ffi) cheatcode.

[fuzz]
runs = 100 # The number of times to run the fuzzing tests
Expand Down
12 changes: 2 additions & 10 deletions test/DynamicBeforeFee.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,7 @@ contract DynamicBeforeFeeTest is Test, Deployers {
});
swapRouter.swap(key, params, testSettings, ZERO_BYTES);

assertEq(
currency0.balanceOf(address(this)),
57896044618658097711785492504343953926634992332820282019728780989579400361908,
"amount 0"
);
assertEq(currency0.balanceOf(address(this)), balanceBefore0 + 949098356561266, "amount 0");
assertEq(currency1.balanceOf(address(this)), balanceBefore1 - amountToSwap, "amount 1");
}

Expand All @@ -72,10 +68,6 @@ contract DynamicBeforeFeeTest is Test, Deployers {
swapRouter.swap(key, params, testSettings, ZERO_BYTES);

assertEq(currency0.balanceOf(address(this)), balanceBefore0 - amountToSwap, "amount 0");
assertEq(
currency1.balanceOf(address(this)),
57896044618658097711785492504343953926634992332820282019728780989579400361908,
"amount 1"
);
assertEq(currency1.balanceOf(address(this)), balanceBefore1 + 949098356561266, "amount 1");
}
}

0 comments on commit 19d5799

Please sign in to comment.