stake.link
  • 💡Introduction
  • 🤔FAQ
  • 🔒SDL Pool Contracts
    • SDL Pool Primary
    • SDL Pool Secondary
    • Linear Boost Controller
    • SDL Pool CCIP Controller Primary
    • SDL Pool CCIP Controller Secondary
    • reSDL Token Bridge
  • 🔧Core Staking Contracts
    • Staking Allowance
    • Staking Pool
    • Priority Pool
    • Withdrawal Pool
    • Wrapped SD Token
    • WrappedTokenBridge
    • Rewards Initiator
  • 💧LST Rewards Splitter Contracts
    • LST Rewards Splitter Controller
    • LST Rewards Splitter
  • 🏆Rewards Pool Contracts
    • Rewards Pool
    • Rewards Pool WSD
  • ⛓️LINK Staking Contracts
    • Operator VCS
    • Operator Vault
    • Community VCS
    • Community Vault
    • Fund Flow Controller
    • Operator Staking Pool
  • 📝Resources
    • Deployed Contracts
Powered by GitBook
On this page
  • View Functions
  • getTotalDeposits
  • getPrincipalDeposits
  • getRewards
  • claimPeriodActive
  • Write Functions
  • deposit
  • withdraw
  • unbond
  • claimRewards
  1. LINK Staking Contracts

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

function getTotalDeposits() public view returns (uint256)

Return Values

Name
Type
Description

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

Name
Type
Description

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

Name
Type
Description

rewards

uint256

Claimable rewards

claimPeriodActive

Returns whether the claim period is active for this contract in the Chainlink staking contract

function claimPeriodActive() external

Return Values

Name
Type
Description

_active

bool

true if active, false otherwise

Write Functions

deposit

Deposits tokens from the vaultController into the Chainlink staking contract

function deposit(uint256 _amount) external

Parameters

Name
Type
Description

_amount

uint256

Amount to deposit

withdraw

Withdraws tokens from the Chainlink staking contract and sends them to the vault controller

function withdraw(uint256 _amount) external

Parameters

Name
Type
Description

_amount

uint256

Amount to withdraw

unbond

Unbonds tokens in the Chainlink staking contract

function unbond() external

claimRewards

Claims rewards from the Chainlink staking contract

function claimRewards(uint256 _minRewards,address _rewardsReceiver) external

Parameters

Name
Type
Description

_minRewards

uint256

Min amount of rewards to claim

_rewardsReceiver

address

Address to receive claimed rewards

PreviousCommunity VCSNextFund Flow Controller

Last updated 7 months ago

⛓️