Skip to content

Replace winner_distribution with prize_floors on the event record #107

Description

@0xdevcollins

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

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions