Skip to content

[Contracts] Implement Basis Points Allocation Percentage Verification #829

Description

@ONEONUORA

Description

Implement logic inside the plan setup methods to check allocation integrity:

  • Iterate over the input beneficiaries list.
  • Sum up their allocation shares.
  • Ensure the sum strictly equals 10000 (representing 100.00%).

Acceptance Criteria

  • Rejects transaction if sum is not 10,000.
  • Rejects if any beneficiary has a share of 0.
  • Proper error code returned (Error::InvalidAllocationShares).

Metadata

Metadata

Assignees

No one assigned

    Labels

    Stellar WaveIssues in the Stellar wave programcontractsSmart contracts 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