Skip to content

feat: add max_total_supply_shares hard cap independent of bps#509

Open
Hunter-baddie wants to merge 1 commit into
RevoraOrg:masterfrom
Hunter-baddie:feat/max-total-supply-shares
Open

feat: add max_total_supply_shares hard cap independent of bps#509
Hunter-baddie wants to merge 1 commit into
RevoraOrg:masterfrom
Hunter-baddie:feat/max-total-supply-shares

Conversation

@Hunter-baddie

Copy link
Copy Markdown

Summary of Changes

1. Updated test_close_period.rs:

  • Added linearity test : close_period_cpu_grows_linearly_with_holders that parameterizes over holder counts [1,10,100,1000], measures CPU instruction usage, and asserts R² > 0.98
  • Added constant cost test : close_period_zero_holders_has_constant_cost that verifies closing a period with zero holders stays within a constant CPU budget
  • Implemented helper functions :
    • measure_cpu_for_n_holders : to measure CPU delta for a specific number of holders
    • r_squared : calculates coefficient of determination for linear fit

2. Created Documentation:

@drips-wave

drips-wave Bot commented Jun 29, 2026

Copy link
Copy Markdown

@Hunter-baddie 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