Skip to content

feat: add per-holder redemption cap to AccessWindow (#554) - #713

Open
Ayinkx wants to merge 2 commits into
RevoraOrg:masterfrom
Ayinkx:feat/redemption-per-holder-cap
Open

feat: add per-holder redemption cap to AccessWindow (#554)#713
Ayinkx wants to merge 2 commits into
RevoraOrg:masterfrom
Ayinkx:feat/redemption-per-holder-cap

Conversation

@Ayinkx

@Ayinkx Ayinkx commented Jul 30, 2026

Copy link
Copy Markdown
Contributor

Closes #554


Adds a per-holder redemption cap field to AccessWindow and enforces it during fulfill_redemption.

@drips-wave

drips-wave Bot commented Jul 30, 2026

Copy link
Copy Markdown

@Ayinkx1 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

@Ayinkx
Ayinkx force-pushed the feat/redemption-per-holder-cap branch 8 times, most recently from 50faada to 6d741af Compare July 30, 2026 20:24
Ayinkx and others added 2 commits July 31, 2026 14:07
- Make DataKey2 pub(crate) so #[contracttype] skips XDR spec generation;
  the enum exceeds the 40-case SC_SPEC_UDT_MAX_CASES union limit and the
  derive panics with LengthExceedsMax.
- Define MAX_PROOF_DEPTH in merkle_helpers.rs and re-export from lib.rs so
  crate::merkle_helpers::MAX_PROOF_DEPTH imports resolve.
- Drop duplicate EVENT_PROOF_REJECT_DEPTH const (proof_reject_depth).
- Drop duplicated mod declarations for test_close_period,
  test_compute_share_decomposition_prop and test_merkle_root_rotation.
- Remove duplicate setup_offering shim in test_close_period.rs and fix
  setup_offering_with_contract_id to use the 10-arg register_offering
  signature.
- cargo fmt compliance.
@Ayinkx
Ayinkx force-pushed the feat/redemption-per-holder-cap branch from a68201c to ea3a149 Compare July 31, 2026 21:27
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 per-holder redemption cap preventing single-holder drain within one window

2 participants