Problem Description
In frontend/components/plans/CreateInheritancePlanPanel.tsx and EditInheritancePlanPanel.tsx, the UI allows users to add multiple beneficiaries, set their allocation percentages, wallet addresses, and off-ramp anchor options. However, when submitting the form to plansAPI.createPlan, only the first beneficiary's name (beneficiaries[0]?.name) is transmitted, while all other beneficiaries, basis point allocations (allocation_bps), wallet addresses, and fiat anchor configs are discarded.
Missing Functionality & Specs
- Update
CreateInheritancePlanPanel.tsx and EditInheritancePlanPanel.tsx to map the full list of beneficiaries into PlanBeneficiaryRequest[].
- Enforce strict allocation validation in basis points (100% = 10,000 bps) before form submission.
- Pass beneficiary wallet addresses, fiat anchor IDs, and daily fiat limits to both backend API requests and on-chain contract parameters.
- Provide clear error messaging if allocations do not equal 10,000 bps or if wallet addresses fail Stellar public key validation.
Affected Files
frontend/components/plans/CreateInheritancePlanPanel.tsx
frontend/components/plans/EditInheritancePlanPanel.tsx
frontend/app/lib/api/plans.ts
frontend/app/lib/api/inheritance.ts
Problem Description
In
frontend/components/plans/CreateInheritancePlanPanel.tsxandEditInheritancePlanPanel.tsx, the UI allows users to add multiple beneficiaries, set their allocation percentages, wallet addresses, and off-ramp anchor options. However, when submitting the form toplansAPI.createPlan, only the first beneficiary's name (beneficiaries[0]?.name) is transmitted, while all other beneficiaries, basis point allocations (allocation_bps), wallet addresses, and fiat anchor configs are discarded.Missing Functionality & Specs
CreateInheritancePlanPanel.tsxandEditInheritancePlanPanel.tsxto map the full list of beneficiaries intoPlanBeneficiaryRequest[].Affected Files
frontend/components/plans/CreateInheritancePlanPanel.tsxfrontend/components/plans/EditInheritancePlanPanel.tsxfrontend/app/lib/api/plans.tsfrontend/app/lib/api/inheritance.ts