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

undelegateStake

function undelegateStake(uint256 amount) external

Undelegates stake for the pool.

Parameters

unstake

function unstake(uint256 amount) external

Unstakes staked undelegated tokens for the pool.

Parameters

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)

Last updated