Interactions
deposit
Deposits spaToken into the vault in exchange for shares.
function deposit(uint256 assets, address receiver) public override returns (uint256 shares);Parameters
assets
uint256
Amount of spaToken to deposit.
receiver
address
Address to receive the minted shares.
Returns
shares
uint256
Amount of shares minted.
mint
Mints shares for a given amount of assets deposited.
function mint(uint256 shares, address receiver) public override returns (uint256 assets);
Parameters
shares
uint256
Amount of shares to mint.
receiver
address
Address to receive the shares.
Returns
assets
uint256
Amount of spaToken deposited.
withdraw
Withdraws spaToken from the vault in exchange for burning shares.
function withdraw(uint256 assets, address receiver, address owner) public override returns (uint256 shares);
Parameters
assets
uint256
Amount of spaToken to withdraw.
receiver
address
Address to receive the withdrawn spaToken.
owner
address
Address whose shares will be burned.
Returns
shares
uint256
Shares burned to fulfill the withdrawal.
redeem
Redeems shares for spaToken.
function redeem(uint256 shares, address receiver, address owner) public override returns (uint256 assets);
Parameters
shares
uint256
Amount of shares to redeem.
receiver
address
Address to receive the withdrawn spaToken.
owner
address
Address whose shares will be burned.
Returns
assets
uint256
Amount of spaToken received.
Last updated