Description
Implement POST /api/plans/payout to initialize payouts:
- Verifies if the grace period has elapsed.
- Computes final locked amount + yield.
- Iterates over beneficiaries and inserts payout records in PostgreSQL.
- Initiates on-chain and fiat anchor off-ramp distributions.
Acceptance Criteria
- Rejects payout triggers if the grace period is still active.
- Correctly divides the total balance based on allocations.
- Marks the plan as inactive in the database.
Description
Implement
POST /api/plans/payoutto initialize payouts:Acceptance Criteria