stake.link
  • 💡Introduction
  • 🤔FAQ
  • 🔒SDL Pool Contracts
    • SDL Pool
    • Linear Boost Controller
  • 🔧Core Staking Contracts
    • Staking Allowance
    • Staking Pool
    • Priority Pool
    • Withdrawal Pool
    • Wrapped SD Token
    • WrappedTokenBridge
    • Rebase Controller
  • 💧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
  • 🔧POL Staking Contracts
    • Polygon Strategy
    • Polygon Vault
    • Polygon Fund Flow Controller
  • 📝Resources
    • Deployed Contracts
Powered by GitBook
On this page
  • View Functions
  • token
  • vaultController
  • stakeManager
  • validatorPool
  • getTotalDeposits
  • getPrincipalDeposits
  • getRewards
  • getQueuedWithdrawals
  • isWithdrawable
  • isUnbonding
  • minRewardClaimAmount
  • Write Functions
  • deposit
  • withdraw
  • unbond
  • restakeRewards
  • withdrawRewards
  1. POL Staking Contracts

Polygon Vault

PolygonVault manages deposits of POL into a Polygon validator delegation contract.

View Functions

token

Returns the address of the staking token (POL).

function token() public view returns (address)
Name
Type
Description

token

address

POL token address

vaultController

Returns the address of the strategy that controls this vault.

function vaultController() public view returns (address)
Name
Type
Description

vaultController

address

Vault controller address

stakeManager

Returns the address of the Polygon stake manager contract.

function stakeManager() public view returns (address)
Name
Type
Description

stakeManager

address

Stake manager address

validatorPool

Returns the address of the Polygon validator delegation contract.

function validatorPool() public view returns (address)
Name
Type
Description

validatorPool

address

Validator pool address

getTotalDeposits

Returns the total balance of this contract (principal, rewards, queued withdrawals, and tokens held).

function getTotalDeposits() public view returns (uint256)

Return Values

Name
Type
Description

totalDeposits

uint256

Total balance

getPrincipalDeposits

Returns the principal balance of this contract in the validator pool.

function getPrincipalDeposits() public view returns (uint256)

Return Values

Name
Type
Description

principalDeposits

uint256

Principal balance

getRewards

Returns the claimable rewards balance of this contract in the validator pool.

function getRewards() public view returns (uint256)

Return Values

Name
Type
Description

rewards

uint256

Claimable rewards

getQueuedWithdrawals

Returns the amount of queued withdrawals for this contract in the validator pool.

function getQueuedWithdrawals() public view returns (uint256)

Return Values

Name
Type
Description

queuedWithdrawals

uint256

Queued withdrawals

isWithdrawable

Returns whether deposits can be withdrawn from the validator pool.

function isWithdrawable() external view returns (bool)

Return Values

Name
Type
Description

withdrawable

bool

true if withdrawable, false otherwise

isUnbonding

Returns whether this vault is currently unbonding.

function isUnbonding() external view returns (bool)

Return Values

Name
Type
Description

unbonding

bool

true if unbonding, false otherwise

minRewardClaimAmount

Returns the minimum amount of rewards that can be claimed/restaked.

function minRewardClaimAmount() external view returns (uint256)

Return Values

Name
Type
Description

minAmount

uint256

Minimum claimable

Write Functions

deposit

Deposits tokens from the vault controller into the validator pool.

function deposit(uint256 _amount) external
Name
Type
Description

_amount

uint256

Amount to deposit

withdraw

Withdraws tokens from the validator pool and sends them to the vault controller.

function withdraw() external returns (uint256)

Return Values

Name
Type
Description

amount

uint256

Amount withdrawn

unbond

Queues tokens for withdrawal in the validator pool.

function unbond(uint256 _amount) external
Name
Type
Description

_amount

uint256

Amount to unbond

restakeRewards

Restakes rewards in the validator pool.

function restakeRewards() external

withdrawRewards

Withdraws rewards from the validator pool.

function withdrawRewards() external
PreviousPolygon StrategyNextPolygon Fund Flow Controller

Last updated 6 days ago

🔧