IArrakisMetaVaultPrivate

Git Source

Functions

deposit

function used to deposit tokens or expand position inside the inherent strategy.

function deposit(
    uint256 amount0_,
    uint256 amount1_
) external payable;

Parameters

NameTypeDescription
amount0_uint256amount of token0 need to increase the position by proportion_;
amount1_uint256amount of token1 need to increase the position by proportion_;

withdraw

function used to withdraw tokens or position contraction of the underpin strategy.

function withdraw(
    uint256 proportion_,
    address receiver_
) external returns (uint256 amount0, uint256 amount1);

Parameters

NameTypeDescription
proportion_uint256the proportion of position contraction.
receiver_addressthe address that will receive withdrawn tokens.

Returns

NameTypeDescription
amount0uint256amount of token0 returned.
amount1uint256amount of token1 returned.

whitelistDepositors

function used to whitelist depositors.

function whitelistDepositors(address[] calldata depositors_)
    external;

Parameters

NameTypeDescription
depositors_address[]list of address that will be granted to depositor role.

blacklistDepositors

function used to blacklist depositors.

function blacklistDepositors(address[] calldata depositors_)
    external;

Parameters

NameTypeDescription
depositors_address[]list of address who depositor role will be revoked.

depositors

function used to get the list of depositors.

function depositors() external view returns (address[] memory);

Returns

NameTypeDescription
<none>address[]depositors list of address granted to depositor role.

Events

LogDeposit

Event describing a deposit done by an user inside this vault.

event LogDeposit(uint256 amount0, uint256 amount1);

Parameters

NameTypeDescription
amount0uint256amount of token0 needed to increase the portfolio of "proportion" percent.
amount1uint256amount of token1 needed to increase the portfolio of "proportion" percent.

LogWithdraw

Event describing a withdrawal of participation by an user inside this vault.

event LogWithdraw(
    uint256 proportion, uint256 amount0, uint256 amount1
);

Parameters

NameTypeDescription
proportionuint256percentage of the current position that user want to withdraw.
amount0uint256amount of token0 withdrawn due to withdraw action.
amount1uint256amount of token1 withdrawn due to withdraw action.

LogWhitelistDepositors

Event describing the whitelist of fund depositor.

event LogWhitelistDepositors(address[] depositors);

Parameters

NameTypeDescription
depositorsaddress[]list of address that are granted to depositor role.

LogBlacklistDepositors

Event describing the blacklist of fund depositor.

event LogBlacklistDepositors(address[] depositors);

Parameters

NameTypeDescription
depositorsaddress[]list of address who depositor role is revoked.

Errors

MintZero

error MintZero();

BurnZero

error BurnZero();

BurnOverflow

error BurnOverflow();

DepositorAlreadyWhitelisted

error DepositorAlreadyWhitelisted();

NotAlreadyWhitelistedDepositor

error NotAlreadyWhitelistedDepositor();

OnlyDepositor

error OnlyDepositor();