Community Vault
CommunityVault
is a vault contract used for depositing LINK into the Chainlink staking contract as a community staker.
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
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
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
claimRewards
Claims rewards from the Chainlink staking contract
Parameters
_minRewards
uint256
Min amount of rewards to claim
_rewardsReceiver
address
Address to receive claimed rewards
Last updated