Rigoblock Documentation
  • Welcome
  • Introduction to RigoBlock
  • Contracts
    • Protocol
      • RigoblockPoolExtended
      • Core
        • constants
        • immutables
        • storage
        • actions
        • owner actions
        • abstract
        • fallback
        • initializer
        • state
        • storage accessible
      • Deps
        • Authority
          • authority docs
        • PoolRegistry
          • pool registry docs
      • Extensions
        • AGovernance
          • Solidity API
        • AMulticall
          • aMulticall docs
        • AStaking
          • aStaking docs
        • AUniswap
          • aUniswap docs
        • EUpgrade
          • eUpgrade docs
        • EWhitelist
          • eWhitelist docs
      • Proxies
        • proxy
          • proxy docs
        • proxy factory
          • proxyFactory docs
    • GRG Token
      • RigoToken
        • rigoToken docs
      • Inflation
        • inflation docs
      • ProofOfPerformance
        • pop docs
    • GRG Staking
      • GrgVault
        • grgVault docs
      • StakingProxy
        • stakingProxy docs
      • Staking
        • staking docs
    • Governance
      • Solidity API
  • Deployments
    • deployed contracts - V4
    • deployed contracts
    • v1.5.0
    • v1.4.2
    • v1.4.1
    • v1.3.0
    • v1.1.1
    • v1.1.0
  • Governance
    • Rigoblock Governance
    • Supported Applications
    • Token Whitelists
    • Supported Methods
      • Selectors - V4
      • Selectors - V3
  • Bug Bounty
    • Known Issues
  • Oracles and Price Feeds
Powered by GitBook
On this page
  • AStaking
  • _stakingProxy
  • _grgToken
  • _grgTransferProxy
  • constructor
  • stake
  • undelegateStake
  • unstake
  • withdrawDelegatorRewards
  • _getGrgToken
  • _getGrgTransferProxy
  • _getStakingProxy
  1. Contracts
  2. Protocol
  3. Extensions
  4. AStaking

aStaking docs

AStaking

_stakingProxy

address _stakingProxy

_grgToken

address _grgToken

_grgTransferProxy

address _grgTransferProxy

constructor

constructor(address stakingProxy, address grgToken, address grgTransferProxy) public

stake

function stake(uint256 amount) external

Stakes an amount of GRG to own staking pool. Creates staking pool if doesn't exist.

Creating staking pool if doesn't exist effectively locks direct call.

Parameters

Name
Type
Description

amount

uint256

Amount of GRG to stake.

undelegateStake

function undelegateStake(uint256 amount) external

Undelegates stake for the pool.

Parameters

Name
Type
Description

amount

uint256

Number of GRG units with undelegate.

unstake

function unstake(uint256 amount) external

Unstakes staked undelegated tokens for the pool.

Parameters

Name
Type
Description

amount

uint256

Number of GRG units to unstake.

withdrawDelegatorRewards

function withdrawDelegatorRewards() external

Withdraws delegator rewards of the pool.

_getGrgToken

function _getGrgToken() private view returns (address)

_getGrgTransferProxy

function _getGrgTransferProxy() private view returns (address)

_getStakingProxy

function _getStakingProxy() private view returns (address)
PreviousAStakingNextAUniswap

Last updated 2 years ago