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
  • StakingProxy
  • constructor
  • fallback
  • attachStakingContract
  • detachStakingContract
  • batchExecute
  • assertValidStorageParams
  • _attachStakingContract
  1. Contracts
  2. GRG Staking
  3. StakingProxy

stakingProxy docs

StakingProxy

#dev The RigoBlock Staking contract.

constructor

constructor(address stakingImplementation, address newOwner) public

Constructor.

Parameters

Name
Type
Description

stakingImplementation

address

Address of the staking contract to delegate calls to.

newOwner

address

Address of the staking proxy owner.

fallback

fallback() external

Delegates calls to the staking contract, if it is set.

attachStakingContract

function attachStakingContract(address stakingImplementation) external

Attach a staking contract; future calls will be delegated to the staking contract.

Note that this is callable only by an authorized address.

Parameters

Name
Type
Description

stakingImplementation

address

Address of staking contract.

detachStakingContract

function detachStakingContract() external

Detach the current staking contract.

Note that this is callable only by an authorized address.

batchExecute

function batchExecute(bytes[] data) external returns (bytes[] batchReturnData)

Batch executes a series of calls to the staking contract.

Parameters

Name
Type
Description

data

bytes[]

An array of data that encodes a sequence of functions to call in the staking contracts.

assertValidStorageParams

function assertValidStorageParams() public view

Asserts initialziation parameters are correct.

Asserts that an epoch is between 5 and 30 days long. Asserts that 0 < cobb douglas alpha value <= 1. Asserts that a stake weight is <= 100%. Asserts that pools allow >= 1 maker. Asserts that all addresses are initialized.

_attachStakingContract

function _attachStakingContract(address stakingImplementation) internal

Attach a staking contract; future calls will be delegated to the staking contract.

Parameters

Name
Type
Description

stakingImplementation

address

Address of staking contract.

PreviousStakingProxyNextStaking

Last updated 2 years ago