decreasePosition()

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

By calling decreasePosition function, we close leverage open position.

Here is a description of the arguments:

function decreasePosition(
    address _account,
    bytes32 _tradePairId,
    uint256 _collateralDelta,
    uint256 _sizeDelta,
    bool _isLong,
    address _receiver)

Last updated