Initialize the Staking Pool Rewards

Transfers the reward tokens balance to the staking pool contract address.

**NOTE**: by design, the benefactor (funding party) must separately approve the staking pool address for the required allowance.

This can be carried out by calling approve() on the ERC20 Open Mintable, for example. The spender parameter should be the Staking Pool contract address and the amount should be the reward amount for that token as set in step 3. This must be done for each reward token.

Dependencies:

DAO needs to be created

Collateral Token needs to be whitelisted

Staking Pool needs to be created

Permissions: DAO Admin

Params:

Param name

Description

Example

daoId

the DAO identifier to for which to set the metadata

1

stakingPool

The address of the staking pool. This is required because a dao many have many associated staking pools.

0xfb2a0ea15678ba074d168653fd0d52fbdf18a64f

benefactor

The address of the funding account

0xDe9007A43772a745C434F9Eb6C519132Db2b14A5

rewards

tokens; the address of the erc20 reward token

maxAmount; the maximum amount of this token that will be funded

uint256 ratio; only initialized for fixed

[["0xa63c6e2af9c87768f741e1bb7f77511d23152c7b", "105000000000000000000","15000000000000000000"]]

Etherscan Link: https://goerli.etherscan.io/address/0x3d8cBBc284160D6d692d02B76Dae4bAd21902d73#writeContract#F20

Last updated