grgVault docs
GrgVault
stakingProxy
isInCatastrophicFailure
_balances
grgAssetProxy
_grgToken
_grgAssetData
onlyStakingProxy
Only stakingProxy can call this function.
onlyInCatastrophicFailure
Function can only be called in catastrophic failure mode.
onlyNotInCatastrophicFailure
Function can only be called not in catastropic failure mode
constructor
Constructor.
Parameters
setStakingProxy
Sets the address of the StakingProxy contract. Note that only the contract owner can call this function.
Parameters
enterCatastrophicFailure
Vault enters into Catastrophic Failure Mode. *** WARNING - ONCE IN CATOSTROPHIC FAILURE MODE, YOU CAN NEVER GO BACK! *** Note that only the contract owner can call this function.
setGrgProxy
Sets the Grg proxy. Note that only an authorized address can call this function. Note that this can only be called when not in Catastrophic Failure mode.
Parameters
depositFrom
Deposit an amount
of Grg Tokens from staker
into the vault. Note that only the Staking contract can call this. Note that this can only be called when not in Catastrophic Failure mode.
Parameters
withdrawFrom
Withdraw an amount
of Grg Tokens to staker
from the vault. Note that only the Staking contract can call this. Note that this can only be called when not in Catastrophic Failure mode.
Parameters
withdrawAllFrom
Withdraw ALL Grg Tokens to staker
from the vault. Note that this can only be called when in Catastrophic Failure mode.
Parameters
balanceOf
Returns the balance in Grg Tokens of the staker
Return Values
balanceOfGrgVault
Returns the entire balance of Grg tokens in the vault.
_withdrawFrom
Withdraw an amount
of Grg Tokens to staker
from the vault.
Parameters
_assertSenderIsStakingProxy
Asserts that sender is stakingProxy contract.
_assertInCatastrophicFailure
Asserts that vault is in catastrophic failure mode.
_assertNotInCatastrophicFailure
Asserts that vault is not in catastrophic failure mode.
Last updated