Skip to content

test: bound fractional supply-cap rounding - #706

Merged
thlpkee20-wq merged 1 commit into
RevoraOrg:masterfrom
devv-leo:test/supply-cap-rounding-boundary
Jul 30, 2026
Merged

test: bound fractional supply-cap rounding#706
thlpkee20-wq merged 1 commit into
RevoraOrg:masterfrom
devv-leo:test/supply-cap-rounding-boundary

Conversation

@devv-leo

Copy link
Copy Markdown
Contributor

Closes #609

Description

Rounding during fractional-share issuance must never push the total one wei over the supply cap. Add boundary tests exercising both rounding modes at the near-cap edge.

Changes

  • Add supply_cap_rounding_boundary_truncation_at_cap_minus_one
  • Add supply_cap_rounding_boundary_roundhalfup_at_cap_minus_one
  • Add supply_cap_rounding_half_up_boundary_guard
  • Add supply_cap_rounding_truncation_boundary_guard
  • Add supply_cap_rounding_iterated_boundary_stress

@drips-wave

drips-wave Bot commented Jul 29, 2026

Copy link
Copy Markdown

@devv-leo 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

@thlpkee20-wq
thlpkee20-wq merged commit 2282a63 into RevoraOrg:master Jul 30, 2026
2 of 4 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.

Add fractional-share supply-cap rounding boundary tests to prevent one-wei over-issuance

2 participants