Prize Strategies
Customize how a Prize Pool distributes prizes
Last updated
Was this helpful?
Customize how a Prize Pool distributes prizes
Last updated
Was this helpful?
A Prize Strategy handles prize distribution for a . When a Prize Pool is constructed it is configured with a Prize Strategy. The Prize Strategy has the privileged ability to award tokens from the Prize Pool.
The most popular Prize Strategy offering is the strategy. Earlier versions (< v3.1.0) of the protocol used the Single Random Winner strategy, which is now a trivial subset of Multiple Winners (with numberofWinners = 1
).
Prize Strategies must implement the Token Listener interface so that they can be aware of the full token lifecycle.
See the
A Prize Strategy is able to award tokens held by the Prize Pool contract. The Prize Strategy is able to:
that has accrued in the Prize Pool
held by the Prize Pool
owned by the Prize Pool
A Prize Strategy must implement the so that it can listen to pool token mint, transfer and burn actions by the Prize Pool.