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
  • Write Functions
  1. Rewards Pool Contracts

Rewards Pool

RewardsPool

RewardsPool handles the distribution of a single token to a parent pool such as the SDLPool. A parent pool may control multiple RewardsPools if stakers receive rewards in the form of multiple different tokens.

View Functions

token

Returns the address of the rewards token this pool distributes

function token() external view returns (address)

Return Values

Name
Type
Description

token

address

Address of rewards token

withdrawableRewards

Returns an account's total unclaimed rewards

function withdrawableRewards(address _account) public view returns (uint256)

Parameters

Name
Type
Description

_account

address

Address of account

Return Values

Name
Type
Description

rewards

uint256

Total unclaimed rewards

Write Functions

withdraw

Withdraws the sender's unclaimed rewards

function withdraw() external

withdraw

Withdraws an account's unclaimed rewards

function withdraw(address _account) external

Parameters

Name
Type
Description

_account

address

Account to withdraw for

onTokenTransfer

ERC677 implementation that receives rewards and distributes them

function onTokenTransfer(address, uint256, bytes) external

distributeRewards

Distributes new rewards that have been deposited

function distributeRewards() public

updateReward

Updates an account's principal reward balance

function updateReward(address _account) public

Parameters

Name
Type
Description

_account

address

Address of account

PreviousLST Rewards SplitterNextRewards Pool WSD

Last updated 1 year ago

🏆