-
Notifications
You must be signed in to change notification settings - Fork 6
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
Fix !isToken0 && fee != 0 && protocolFee != 0 test cases #148
Conversation
kinrezC
commented
Oct 22, 2024
•
edited
Loading
edited
- Fixes !isToken0 test cases
- Fixes FEE=30 tests
- Fixes FEE=30 && PROTOCOL_FEE=50 tests
… fix relative dutch auction assertions
forge test -vvv --via-ir | ||
id: test1 | ||
|
||
- name: Run forge tests isToken0 (true) fee (300) protocolFee (50) | ||
run: | | ||
export IS_TOKEN_0=TRUE | ||
export FEE=300 | ||
export FEE=30 | ||
export PROTOCOL_FEE=50 | ||
forge test -vvv --via-ir | ||
id: test2 |
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.
We should add a run with USING_ETH=TRUE
here as well
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.
Nvm, I see this is done in #154
} | ||
} else { | ||
revert InvalidSwapAfterMaturitySufficientProceeds(); | ||
} | ||
} | ||
|
||
if (block.timestamp > endingTime && !insufficientProceeds) { | ||
revert InvalidSwapAfterMaturitySufficientProceeds(); | ||
} | ||
|
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.
What's the reason for moving this? Are they not logically the same since if state.totalProceeds < minimumProceeds
, we set insufficientProceeds = true
?
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.
Yeah i think this was an artifact of me debugging, I will revert it.