LST Rewards Splitter Controller
The LSTRewardsSplitterController
manages multiple LSTRewardsSplitter
contracts.
View Functions
splitters
Returns the splitter corresponding to an account
Parameters
account
address
address of account
Return Values
splitter
address
address of splitter corresponding to account
lst
Returns the min amount of new rewards required to split
Return Values
lst
address
address of LST
rewardThreshold
Returns the address of the liquid staking token handled by this contract
Return Values
rewardThreshold
uint256
reward threshold
getAccounts
Returns a list of all accounts that have splitters
Return Values
accounts
address[]
list of accounts
checkUpkeep
Returns whether a call should be made to performUpkeep to split new rewards
Return Values
upkeepNeeded
bool
true if performUpkeep should be called, false otherwise
performData
bytes
abi encoded list of splitters to call
Write Functions
onTokenTransfer
ERC677 implementation to receive an LST deposit
Parameters
_sender
address
address of sender
_value
uint256
value of transfer
withdraw
Withdraws tokens
Parameters
_amount
uint256
amount to withdraw
performUpkeep
Splits new rewards between receivers
Parameters
_performData
bytes
abi encoded list of splitters to call
addSplitter
Deploys a new splitter
Parameters
_account
address
address of account to deploy splitter for
_fees
struct LSTRewardsSplitter.Fee[]
list of splitter fees
removeSplitter
Removes an account's splitter
Parameters
_account
address
address of account
setRewardThreshold
Sets the min amount of new rewards required to split
Parameters
_rewardThreshold
uint256
min amount of new rewards required to split
Last updated