AStaking
Overview
License: Apache 2.0
contract AStaking is IAStakingAuthor: Gabriele Rigo - gab@rigoblock.com
Functions info
constructor
constructor(address stakingProxy, address grgToken, address grgTransferProxy)stake (0xa694fc3a)
function stake(uint256 amount) external overrideStakes 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 (0x4aace835)
Undelegates stake for the pool.
Parameters:
Name
Type
Description
amount
uint256
Number of GRG units with undelegate.
unstake (0x2e17de78)
Unstakes staked undelegated tokens for the pool.
Parameters:
Name
Type
Description
amount
uint256
Number of GRG units to unstake.
withdrawDelegatorRewards (0xb880660b)
Withdraws delegator rewards of the pool.
Last updated