Operator Vault
OperatorVault
is a vault contract used for depositing LINK into the Chainlink staking contract as a node operator.
View Functions
getTotalDeposits
Returns the total balance of this contract in the Chainlink staking contract
Return Values
totalDeposits
uint256
Total deposit balance
getPrincipalDeposits
Returns the principal balance of this contract in the Chainlink staking contract
Return Values
principalDeposits
uint256
Principal deposit balance
getRewards
Returns the claimable rewards balance of this contract in the Chainlink staking rewards contract
Return Values
rewards
uint256
Claimable rewards
getUnclaimedRewards
Returns the total unclaimed operator rewards for this vault
Return Values
unclaimedRewards
uint256
Unclaimed operator rewards
getPendingRewards
Returns the amount of rewards that will be earned by this vault on the next update
Return Values
unclaimedRewards
uint256
Unclaimed operator rewards
operator
Returns the operator address for this vault
Return Values
operator
address
Operator address
claimPeriodActive
Returns whether the claim period is active for this contract in the Chainlink staking contract
Return Values
_active
bool
true if active, false otherwise
isRemoved
Returns whether the operator for this vault has been removed from the Chainlink staking contract
Return Values
_isRemoved
bool
true if operator has been removed, false otherwise
Write Functions
deposit
Deposits tokens from the vaultController into the Chainlink staking contract
Parameters
_amount
uint256
Amount to deposit
withdraw
Withdraws tokens from the Chainlink staking contract and sends them to the vault controller
Parameters
_amount
uint256
Amount to withdraw
unbond
Unbonds tokens in the Chainlink staking contract
raiseAlert
Raises an alert in the Chainlink staking contract
Parameters
_feed
address
Address of Chainlink feed to raise alert for
withdrawRewards
Withdraws the unclaimed operator rewards for this vault
updateDeposits
Updates the deposit and reward accounting for this vault
Parameters
_minRewards
uint256
Min amount of rewards to claim (set 0 to skip reward claiming)
_rewardsReceiver
address
Address to receive claimed rewards (set if _minRewards > 0)
exitVault
Withdraws tokens from the Chainlink staking contract and sends them to the vault controller
Used to withdraw remaining principal and rewards after operator has been removed Will also send any unclaimed operator rewards to rewards receiver
Return Values
_prinicpalWithdrawn
uint256
Total principal withdrawn
_rewardsWithdrawn
uint256
Total rewards withdrawn
setOperator
Sets the operator address for this vault if not already set
Parameters
_operator
address
Operator address
setRewardsReceiver
Sets the address to receive operator rewards
Parameters
_rewardsReceiver
address
Address of rewards receiver
Last updated