IArrakisLPModulePublic

Git Source

expose a deposit function for that can deposit a specific share of token0 and token1.

this deposit feature will be used by public actor.

Functions

deposit

deposit function for public vault.

function deposit(
    address depositor_,
    uint256 proportion_
) external payable 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.

Events

LogDeposit

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

deposit action can be indexed by depositor.

event LogDeposit(
    address depositor,
    uint256 proportion,
    uint256 amount0,
    uint256 amount1
);

Parameters

NameTypeDescription
depositoraddressaddress of the tokens provider.
proportionuint256percentage of the current position that depositor want to increase.
amount0uint256amount of token0 needed to increase the portfolio of "proportion" percent.
amount1uint256amount of token1 needed to increase the portfolio of "proportion" percent.