Skip to content

[Backend] REST API: Implement Trigger Payout Endpoint #812

Description

@ONEONUORA

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.

Metadata

Metadata

Assignees

Labels

Stellar WaveIssues in the Stellar wave programbackendBackend componentenhancementNew feature or request

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions