Operator Vault

OperatorVault is a vault contract used for depositing LINK into the Chainlink staking controller as a node operator

View Functions

getTotalDeposits

Returns the total balance of this contract in the Chainlink staking contract

function getTotalDeposits() public view returns (uint256)

Return Values

NameTypeDescription

totalDeposits

uint256

Total deposit balance

getPrincipalDeposits

Returns the principal balance of this contract in the Chainlink staking contract

function getPrincipalDeposits() public view returns (uint256)

Return Values

NameTypeDescription

principalDeposits

uint256

Principal deposit balance

getRewards

Returns the claimable rewards balance of this contract in the Chainlink staking rewards contract

function getRewards() public view returns (uint256)

Return Values

NameTypeDescription

rewards

uint256

Claimable rewards

getUnclaimedRewards

Returns the total unclaimed operator rewards for this vault

function getUnclaimedRewards() public view returns (uint256)

Return Values

NameTypeDescription

unclaimedRewards

uint256

Unclaimed operator rewards

getPendingRewards

Returns the amount of rewards that will be earned by this vault on the next update

function getPendingRewards() public view returns (uint256)

Return Values

NameTypeDescription

unclaimedRewards

uint256

Unclaimed operator rewards

operator

Returns the operator address for this vault

function operator() external view returns (address)

Return Values

NameTypeDescription

operator

address

Operator address

Write Functions

deposit

Deposits tokens from the vaultController into the Chainlink staking contract

function deposit(uint256 _amount) external

Parameters

NameTypeDescription

_amount

uint256

Amount to deposit

raiseAlert

Raises an alert in the Chainlink staking contract

function raiseAlert(address _feed) external

Parameters

NameTypeDescription

_feed

address

Address of Chainlink feed to raise alert for

withdrawRewards

Withdraws the unclaimed operator rewards for this vault

function withdrawRewards() external

updateDeposits

Updates the deposit and reward accounting for this vault

function updateDeposits(uint256 _minRewards, address _rewardsReceiver) external

Parameters

NameTypeDescription

_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)

setOperator

Sets the operator address for this vault if not already set

function setOperator(address _operator) external

Parameters

NameTypeDescription

_operator

address

Operator address

setRewardsReceiver

Sets the address to receive operator rewards

function setRewardsReceiver(address _rewardsReceiver_) external

Parameters

NameTypeDescription

_rewardsReceiver

address

Address of rewards receiver

Last updated