IArrakisMetaVaultPublic

Git Source

Functions

mint

function used to mint share of the vault position

function mint(
    uint256 shares_,
    address receiver_
) external payable returns (uint256 amount0, uint256 amount1);

Parameters

NameTypeDescription
shares_uint256amount representing the part of the position owned by receiver.
receiver_addressaddress where share token will be sent.

Returns

NameTypeDescription
amount0uint256amount of token0 deposited.
amount1uint256amount of token1 deposited.

burn

function used to burn share of the vault position.

function burn(
    uint256 shares_,
    address receiver_
) external returns (uint256 amount0, uint256 amount1);

Parameters

NameTypeDescription
shares_uint256amount of share that will be burn.
receiver_addressaddress where underlying tokens will be sent.

Returns

NameTypeDescription
amount0uint256amount of token0 withdrawn.
amount1uint256amount of token1 withdrawn.

Events

LogMint

event emitted when a user mint some shares on a public vault.

event LogMint(
    uint256 shares, address receiver, uint256 amount0, uint256 amount1
);

Parameters

NameTypeDescription
sharesuint256amount of shares minted.
receiveraddressaddress that will receive the LP token (shares).
amount0uint256amount of token0 needed to mint shares.
amount1uint256amount of token1 needed to mint shares.

LogBurn

event emitted when a user burn some of his shares.

event LogBurn(
    uint256 shares, address receiver, uint256 amount0, uint256 amount1
);

Parameters

NameTypeDescription
sharesuint256amount of share burned by the user.
receiveraddressaddress that will receive amounts of tokens related to burning the shares.
amount0uint256amount of token0 that is collected from burning shares.
amount1uint256amount of token1 that is collected from burning shares.

Errors

MintZero

error MintZero();

BurnZero

error BurnZero();