Skip to main content

GnoVault

Git Source ↗

Inherits: VaultImmutables →, Initializable ↗, VaultAdmin →, VaultVersion →, VaultFee →, VaultState →, VaultValidators →, VaultEnterExit →, VaultOsToken →, VaultMev →, VaultGnoStaking →, Multicall →, IGnoVault

Defines the Gnosis staking Vault.

Structs

GnoVaultConstructorArgs

Struct for initializing the GnoVault contract

struct GnoVaultConstructorArgs {
address keeper;
address vaultsRegistry;
address validatorsRegistry;
address validatorsWithdrawals;
address validatorsConsolidations;
address consolidationsChecker;
address osTokenVaultController;
address osTokenConfig;
address osTokenVaultEscrow;
address sharedMevEscrow;
address depositDataRegistry;
address gnoToken;
address tokensConverterFactory;
uint256 exitingAssetsClaimDelay;
}

Properties

NameTypeDescription
keeperaddressThe address of the Keeper contract
vaultsRegistryaddressThe address of the VaultsRegistry contract
validatorsRegistryaddressThe contract address used for registering validators in beacon chain
validatorsWithdrawalsaddressThe contract address used for withdrawing validators in beacon chain
validatorsConsolidationsaddressThe contract address used for consolidating validators in beacon chain
consolidationsCheckeraddressThe contract address used for checking consolidations
osTokenVaultControlleraddressThe address of the OsTokenVaultController contract
osTokenConfigaddressThe address of the OsTokenConfig contract
osTokenVaultEscrowaddressThe address of the OsTokenVaultEscrow contract
sharedMevEscrowaddressThe address of the shared MEV escrow
depositDataRegistryaddressThe address of the DepositDataRegistry contract
gnoTokenaddressThe address of the GNO token
tokensConverterFactoryaddressThe address of the TokensConverterFactory contract
exitingAssetsClaimDelayuint256The delay after which the assets can be claimed after exiting from staking

GnoVaultInitParams

Struct for initializing the GnoVault contract

struct GnoVaultInitParams {
uint256 capacity;
uint16 feePercent;
string metadataIpfsHash;
}

Properties

NameTypeDescription
capacityuint256The Vault stops accepting deposits after exceeding the capacity
feePercentuint16The fee percent that is charged by the Vault
metadataIpfsHashstringThe IPFS hash of the Vault's metadata file

Functions

enterExitQueue

Locks shares to the exit queue. The shares continue earning rewards until they will be burned by the Vault.

function enterExitQueue(uint256 shares, address receiver)
public
virtual
override(IVaultEnterExit, VaultEnterExit, VaultOsToken)
returns (uint256 positionTicket);

Parameters

NameTypeDescription
sharesuint256The number of shares to lock
receiveraddressThe address that will receive assets upon withdrawal

Returns

NameTypeDescription
positionTicketuint256The position ticket of the exit queue. Returns uint256 max if no ticket created.

vaultId

function vaultId() public pure virtual override(IVaultVersion, VaultVersion) returns (bytes32);

version

Version

function version() public pure virtual override(IVaultVersion, VaultVersion) returns (uint8);

Returns

NameTypeDescription
<none>uint8The version of the Vault implementation contract