Skip to content

fix-checked-arithmetic-footprint - #426

Open
Jumongweb wants to merge 1 commit into
Goldii-locks:mainfrom
Jumongweb:fix-checked-arithmetic-footprint
Open

fix-checked-arithmetic-footprint#426
Jumongweb wants to merge 1 commit into
Goldii-locks:mainfrom
Jumongweb:fix-checked-arithmetic-footprint

Conversation

@Jumongweb

Copy link
Copy Markdown

Closes #401
Closes #403
Closes #406
This PR hardens dispute split and yield accrual arithmetic against overflow/underflow by using checked operations and returning Error::InvalidAmount on invalid extremes. It also reduces the persistent storage footprint of extend_milestone_deadline by writing the extension to temporary storage while preserving backward-compatible reads from the old persistent key. Added tests cover i128::MAX and i128::MIN edge cases and confirm normal behavior remains unchanged.

@drips-wave

drips-wave Bot commented Aug 30, 2026

Copy link
Copy Markdown

@Jumongweb Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant