Skip to content
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

audit(12): Long-term orders may be filled with an incorrect amount #304

Merged
merged 4 commits into from
Oct 9, 2024

Conversation

alanhwu
Copy link
Collaborator

@alanhwu alanhwu commented Oct 2, 2024

When the blockDelta is larger than uint16, we can face an overflow that will cause orders that decay past this point to have incorrect decayed amounts.

@alanhwu alanhwu linked an issue Oct 2, 2024 that may be closed by this pull request
test/lib/NonLinearDutchDecayLib.t.sol Outdated Show resolved Hide resolved
test/lib/NonLinearDutchDecayLib.t.sol Outdated Show resolved Hide resolved
src/lib/NonlinearDutchDecayLib.sol Show resolved Hide resolved
zhongeric
zhongeric previously approved these changes Oct 4, 2024
codyborn
codyborn previously approved these changes Oct 8, 2024
@alanhwu alanhwu dismissed stale reviews from codyborn and zhongeric via e7dfb37 October 9, 2024 22:40
@alanhwu alanhwu merged commit f370eab into main Oct 9, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

audit: 12
3 participants