aStaking docs
AStaking
_stakingProxy
address _stakingProxy_grgToken
address _grgToken_grgTransferProxy
address _grgTransferProxyconstructor
constructor(address stakingProxy, address grgToken, address grgTransferProxy) publicstake
function stake(uint256 amount) externalStakes 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) externalUndelegates stake for the pool.
Parameters
Name
Type
Description
amount
uint256
Number of GRG units with undelegate.
unstake
function unstake(uint256 amount) externalUnstakes staked undelegated tokens for the pool.
Parameters
Name
Type
Description
amount
uint256
Number of GRG units to unstake.
withdrawDelegatorRewards
function withdrawDelegatorRewards() externalWithdraws 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)Last updated