-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cleanup Integration tests #97
base: main
Are you sure you want to change the base?
Conversation
Forge code coverage:
|
ERC20 tokenIn = DAI; | ||
ERC20 tokenOut = USDC; | ||
// gas token diff than tokenIn to test the sweep | ||
ERC20 gasToken = USDC; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
just a note but its definitely odd UX to have exact output swap where gasToken is in the same output token cause the end balance won't be the specified "exact"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
but nice test 👍
@@ -28,7 +28,7 @@ contract FeeEscalatorLibTest is Test { | |||
assertEq(FeeEscalatorLib.resolve(1 ether, 2 ether, 100, 200), 1 ether); | |||
} | |||
|
|||
function testRelayFeeEscalation() public { | |||
function test_resolve() public { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
test_resolve_midwayEscalation?
vm.expectRevert(ReactorErrors.EndTimeBeforeStartTime.selector); | ||
FeeEscalatorLib.resolve(1 ether, 2 ether, 200, 100); | ||
} | ||
|
||
function testRelayFeeEscalationEqualAmounts(uint256 amount, uint256 startTime, uint256 endTime) public { | ||
function test_resolve_equalAmounts(uint256 amount, uint256 startTime, uint256 endTime) public { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
test_fuzz_resolve_equalAmounts_doesNotEscalate
function testRelayFeeEscalationBounded(uint256 startAmount, uint256 endAmount, uint256 startTime, uint256 endTime) | ||
public | ||
{ | ||
function test_resolve_bounded(uint256 startAmount, uint256 endAmount, uint256 startTime, uint256 endTime) public { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
test_fuzz_resolve_bounded
No description provided.