Community Vault

CommunityVault is a vault contract used for depositing LINK into the Chainlink staking controller as a community staker

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

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

claimRewards

Claims rewards from the Chainlink staking contract

function claimRewards(uint256 _minRewards,address _rewardsReceiver) external

Parameters

NameTypeDescription

_minRewards

uint256

Min amount of rewards to claim

_rewardsReceiver

address

Address to receive claimed rewards

Last updated