increasePosition() is a function to create new leverage position for specific pair.

By calling increasePosition function, we transfer collateral token to vault and pass the leverage value to vault.

Router is a manager of vault.

Here is a description of the arguments:

function increasePosition(
    bytes32 _tradePairId, 
    uint256 _amountIn,
    uint256 _leverage,
    bool _isLong)

Last updated