Stake Prize Pool

This builder creates a new Stake Prize Pool.

The easiest way to create a Stake Prize Pool is from the PoolWithMultipleWinnersBuilder described ๐Ÿ›  Buildersโ€‹

The following describes a lower level building option with a custom prize strategy.

Custom Prize Strategy

Create a Stake Prize Pool with a custom prize strategy using the function:

function createStakePrizePool(
StakePrizePoolConfig calldata config
)
external
returns (StakePrizePool)

Parameter

Description

config

The Stake Prize Pool configuration to use

StakePrizePoolConfig

struct StakePrizePoolConfig {
IERC20Upgradeable token;
uint256 maxExitFeeMantissa;
uint256 maxTimelockDuration;
}

โ€‹

Parameter

Description

token

The stake token the pool is to initialized to

maxExitFeeMantissa

See โš–๏ธ Fairnessโ€‹

maxTimelockDuration

The maximum duration of the withdrawal timelock in seconds. This value is hard coded and cannot be changed.

Note that this will not add any Controlled Tokens to the Prize Pool; those must be added by the owner. The caller is the Prize Pool owner.