MixinStake
Overview
License: Apache 2.0
abstract contract MixinStake is MixinStakingPoolFunctions info
stake (0xa694fc3a)
function stake(uint256 amount) external overrideStake GRG tokens. Tokens are deposited into the GRG Vault.
Unstake to retrieve the GRG. Stake is in the 'Active' status.
Parameters:
Name
Type
Description
amount
uint256
of GRG to stake.
unstake (0x2e17de78)
function unstake(uint256 amount) external overrideUnstake. Tokens are withdrawn from the GRG Vault and returned to the staker.
Stake must be in the 'undelegated' status in both the current and next epoch in order to be unstaked.
Parameters:
Name
Type
Description
amount
uint256
of GRG to unstake.
moveStake (0x58f6c7e3)
Moves stake between statuses: 'undelegated' or 'delegated'.
Delegated stake can also be moved between pools.
This change comes into effect next epoch.
Parameters:
Name
Type
Description
from
struct IStructs.StakeInfo
Status to move stake out of.
to
struct IStructs.StakeInfo
Status to move stake into.
amount
uint256
Amount of stake to move.
Last updated