Skip to content

feat: batch claim inheritance payouts - #1047

Open
d3v-active wants to merge 2 commits into
Fracverse:masterfrom
d3v-active:feat/batch-claim-inheritance-plan
Open

feat: batch claim inheritance payouts#1047
d3v-active wants to merge 2 commits into
Fracverse:masterfrom
d3v-active:feat/batch-claim-inheritance-plan

Conversation

@d3v-active

Copy link
Copy Markdown

Closes #1042

This PR implements the batch_claim_inheritance_plan entry point in contracts/inheritance-contract/src/lib.rs for multi-beneficiary payouts.

Changes Included

  • Added batch_claim_inheritance_plan(env: Env, plan_id: u64, claimer: Address, beneficiary_indices: Vec<u32>, claim_codes: Vec<u32>)
  • Refactored logic to iterate over the beneficiary_indices to process multiple claims atomically within a single transaction.
  • Maintained exact behavior of all per-beneficiary and aggregate limits, vesting logic, and KYC protections as the original single claim_inheritance_plan function.
  • Ensures atomicity: if any single beneficiary's verification fails, the entire transaction reverts.

@ONEONUORA

Copy link
Copy Markdown
Contributor

@d3v-active

Run cargo fmt --all -- --check and clippy

@d3v-active

Copy link
Copy Markdown
Author

@d3v-active

Run cargo fmt --all -- --check and clippy

ok boss. on it

@d3v-active
d3v-active force-pushed the feat/batch-claim-inheritance-plan branch from ce2f69c to d0a7676 Compare August 24, 2026 05:52
@d3v-active

Copy link
Copy Markdown
Author

@d3v-active

Run cargo fmt --all -- --check and clippy

please check

@ONEONUORA

Copy link
Copy Markdown
Contributor

@d3v-active

Run cargo fmt --all -- --check

@ONEONUORA

Copy link
Copy Markdown
Contributor

@d3v-active
Pls update on this pr

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.

contract: Implement Batch Claim Function for Multi-Beneficiary Inheritance Payouts

2 participants