Skip to main content

IVaultGnoStaking

Git Source

Inherits: IVaultValidators, IVaultEnterExit

Author: StakeWise

Defines the interface for the VaultGnoStaking contract

Functions

deposit

Deposit GNO to the Vault

function deposit(uint256 assets, address receiver, address referrer) external returns (uint256 shares);

Parameters

NameTypeDescription
assetsuint256The amount of GNO to deposit
receiveraddressThe address that will receive Vault's shares
referreraddressThe address of the referrer. Set to zero address if not used.

Returns

NameTypeDescription
sharesuint256The number of shares minted

Events

XdaiSwapped

Emitted when xDAI is swapped to GNO (deprecated)

event XdaiSwapped(uint256 amount, uint256 assets);

Parameters

NameTypeDescription
amountuint256The amount of xDAI swapped
assetsuint256The amount of GNO received