Operator Staking Pool
The OperatorStakingPool
tracks node operator LST balances for the purpose of differentiating from community LST balances. Node operators are required to stake their LSTs into this contract.
View Functions
lst
Returns the address of the liquid staking token supported by this pool
Return Values
lst
address
address of LST
depositLimit
Returns the max amount of deposits per operator
Return Values
depositLimit
uint256
max amount of deposits per operator
getOperators
Returns a list of all operators
Return Values
operators
address[]
list of operators
getOperatorPrincipal
Returns an operator's principal staked balance
Parameters
_operator
address
address of operator
Return Values
operatorPrincipal
uint256
operator principal staked amount
getOperatorStaked
Returns an operator's total staked balance
Parameters
_operator
address
address of operator
Return Values
operatorStaked
uint256
operator staked amount
getTotalPrincipal
Returns the total principal staked amount
Return Values
totalPrincipal
uint256
total principal staked amount
getTotalStaked
Returns the total staked amount
Return Values
totalStaked
uint256
total staked amount
isOperator
Returns whether an account is an operator
Return Values
isOperator
bool
true if account is operator, false otherwise
Write Functions
onTokenTransfer
ERC677 implementation to receive deposits
Parameters
_sender
address
address of sender
_value
uint256
amount of tokens to deposit
bytes
withdraw
Withdraws tokens
Parameters
_amount
uint256
amount to withdraw
addOperators
Adds new operators
Parameters
_operators
address[]
list of operators to add
removeOperators
Removes existing operators
Parameters
_operators
address[]
list of operators to remove
setDepositLimit
Sets the max amount of deposits per operator
Parameters
_depositLimit
uint256
max amount of deposits per operator
Last updated