IGrgVault
Overview
License: Apache 2.0
interface IGrgVaultEvents info
StakingProxySet
event StakingProxySet(address stakingProxyAddress)Emmitted whenever a StakingProxy is set in a vault.
Parameters:
stakingProxyAddress
address
Address of the staking proxy contract.
InCatastrophicFailureMode
event InCatastrophicFailureMode(address sender)Emitted when the Staking contract is put into Catastrophic Failure Mode
Parameters:
sender
address
Address of sender (msg.sender)
Deposit
Emitted when Grg Tokens are deposited into the vault.
Parameters:
staker
address
Address of the Grg staker.
amount
uint256
of Grg Tokens deposited.
Withdraw
Emitted when Grg Tokens are withdrawn from the vault.
Parameters:
staker
address
Address of the Grg staker.
amount
uint256
of Grg Tokens withdrawn.
GrgProxySet
Emitted whenever the Grg AssetProxy is set.
Parameters:
grgProxyAddress
address
Address of the Grg transfer proxy.
Functions info
setStakingProxy (0x6bf3f9e5)
Sets the address of the StakingProxy contract.
Note that only the contract staker can call this function.
Parameters:
stakingProxyAddress
address
Address of Staking proxy contract.
enterCatastrophicFailure (0xc02e5a7f)
Vault enters into Catastrophic Failure Mode.
*** WARNING - ONCE IN CATOSTROPHIC FAILURE MODE, YOU CAN NEVER GO BACK! ***
Note that only the contract staker can call this function.
setGrgProxy (0xdb8e54bd)
Sets the Grg proxy.
Note that only the contract staker can call this.
Note that this can only be called when not in Catastrophic Failure mode.
Parameters:
grgProxyAddress
address
Address of the RigoBlock Grg Proxy.
depositFrom (0x15cc36f2)
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:
staker
address
Address of the Grg staker.
amount
uint256
of Grg Tokens to deposit.
withdrawFrom (0x9470b0bd)
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:
staker
address
Address of the Grg staker.
amount
uint256
of Grg Tokens to withdraw.
withdrawAllFrom (0xf957ddba)
Withdraw ALL Grg Tokens to staker from the vault.
Note that this can only be called when in Catastrophic Failure mode.
Parameters:
staker
address
Address of the Grg staker.
balanceOf (0x70a08231)
Returns the balance in Grg Tokens of the staker
Parameters:
staker
address
Address of the Grg staker.
Return values:
[0]
uint256
Balance in Grg.
balanceOfGrgVault (0x6b6df5aa)
Returns the entire balance of Grg tokens in the vault.
Return values:
[0]
uint256
Balance in Grg.
Last updated