GnoGenesisVault
Inherits: Initializable ↗, GnoVault →, IGnoGenesisVault
Defines the Genesis Vault for Gnosis staking migrated from StakeWise Legacy.
Events
Migrated
Event emitted on migration from StakeWise Legacy
event Migrated(address receiver, uint256 assets, uint256 shares);
Parameters
| Name | Type | Description |
|---|---|---|
receiver | address | The address of the shares receiver |
assets | uint256 | The amount of assets migrated |
shares | uint256 | The amount of shares migrated |
GenesisVaultCreated
Event emitted on GnoGenesisVault creation (deprecated)
event GenesisVaultCreated(address admin, uint256 capacity, uint16 feePercent, string metadataIpfsHash);
Parameters
| Name | Type | Description |
|---|---|---|
admin | address | The address of the Vault admin |
capacity | uint256 | The capacity of the Vault |
feePercent | uint16 | The fee percent of the Vault |
metadataIpfsHash | string | The IPFS hash of the Vault metadata |
Functions
vaultId
Vault Unique Identifier
function vaultId() public pure virtual override(IVaultVersion, GnoVault) returns (bytes32);
Returns
| Name | Type | Description |
|---|---|---|
<none> | bytes32 | The unique identifier of the Vault |
version
Version
function version() public pure virtual override(IVaultVersion, GnoVault) returns (uint8);
Returns
| Name | Type | Description |
|---|---|---|
<none> | uint8 | The version of the Vault implementation contract |
migrate
Function for migrating from StakeWise Legacy. Can be called only by RewardGnoToken contract.
function migrate(address receiver, uint256 assets) external override returns (uint256 shares);
Parameters
| Name | Type | Description |
|---|---|---|
receiver | address | The address of the receiver |
assets | uint256 | The amount of assets migrated |
Returns
| Name | Type | Description |
|---|---|---|
shares | uint256 | The amount of shares minted |