Rewards Initiator
Last updated
Last updated
The RewardsInitiator
handles reward accounting and distribution updates for the StakingPool
. It periodically initiates reward updates by calling the StakingPool
to trigger a rebase followed by the SDLPoolCCIPControllerPrimary
to distribute rewards to all secondary chains. It will also trigger an emergency rebase in the case of a slashing event within the StakingPool
.
Returns the address of the staking pool
Name | Type | Description |
---|---|---|
Returns the address of the SDL pool CCIP controller
Name | Type | Description |
---|---|---|
Returns whether a caller is whitelisted or not
Returns whether or not rewards should be updated due to a negative rebase and the strategies to update
Updates strategy rewards in the staking pool and distributes rewards to cross-chain SDL pools
Updates rewards in the case of a negative rebase
Adds or removes an address from the whitelist for calling updateRewards
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
stakingPool
address
address of staking pool
sdlPoolCCIPController
address
address of SDL pool CCIP controller
caller
address
address of caller
isWhitelisted
bool
whether caller is whitelisted
upkeepNeeded
bool
whether or not rewards should be updated
performData
bytes
abi encoded list of strategy indexes to update
_strategyIdxs
uint256[]
indexes of strategies to update rewards for
_data
bytes
encoded data to be passed to each strategy
_performData
bytes
abi encoded list of strategy indexes to update
_caller
address
address to add/remove
_shouldWhitelist
bool
whether address should be whitelisted