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).
Description
Implement logic inside the plan setup methods to check allocation integrity:
10000(representing 100.00%).Acceptance Criteria
Error::InvalidAllocationShares).