ValantisModulePublic

Git Source

Inherits: ValantisModule, IArrakisLPModulePublic

State Variables

notFirstDeposit

bool public notFirstDeposit;

Functions

constructor

constructor(address guardian_) ValantisModule(guardian_);

deposit

deposit function for public vault.

function deposit(
    address depositor_,
    uint256 proportion_
)
    external
    payable
    onlyMetaVault
    whenNotPaused
    nonReentrant
    returns (uint256 amount0, uint256 amount1);

Parameters

NameTypeDescription
depositor_addressaddress that will provide the tokens.
proportion_uint256percentage of portfolio position vault want to expand.

Returns

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

withdraw

function used by metaVault to withdraw tokens from the strategy.

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

Parameters

NameTypeDescription
receiver_addressaddress that will receive tokens.
proportion_uint256number of share needed to be withdrawn.

Returns

NameTypeDescription
amount0uint256amount of token0 withdrawn.
amount1uint256amount of token1 withdrawn.

initializePosition

function initializePosition(bytes calldata data_)
    external
    override
    onlyMetaVault;