EventRecord.winner_distribution: Map<u32,u32> and the matching field on CreateEventParams become prize_floors: Map<u32,i128>: absolute advertised minimums, not percentages.
Done when
- Both types carry
prize_floors
create_event rejects when sum(floors) > total_budget (reuse DistributionMismatch)
- Over-funding is allowed:
sum(floors) <= total_budget passes
- Empty map still rejects
Watch: no new error variants. contracterror caps at 50 and 48 are used.
See plan 3.4.
Plan: boundless-bounty-programs-implementation-plan.md
EventRecord.winner_distribution: Map<u32,u32>and the matching field onCreateEventParamsbecomeprize_floors: Map<u32,i128>: absolute advertised minimums, not percentages.Done when
prize_floorscreate_eventrejects whensum(floors) > total_budget(reuseDistributionMismatch)sum(floors) <= total_budgetpassesWatch: no new error variants.
contracterrorcaps at 50 and 48 are used.See plan 3.4.
Plan:
boundless-bounty-programs-implementation-plan.md