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
Undelegates stake for the pool.
Parameters
Name
Type
Description
amount
uint256
Number of GRG units with undelegate.
unstake
Unstakes staked undelegated tokens for the pool.
Parameters
Name
Type
Description
amount
uint256
Number of GRG units to unstake.
withdrawDelegatorRewards
Withdraws delegator rewards of the pool.
_getGrgToken
_getGrgTransferProxy
_getStakingProxy
Last updated