Add & Remove Liquidity

To add liquidity, you must call the addLiquidity function in the VaultService smart contract.

*function addLiquidity(
    uint256 amount
)*

Parameters:

Example*: https://rinkeby.etherscan.io/tx/0x6ad6d676db5c4d33b7d359ac4de1a294e228a45530a6c0d4a6251c712058a368*

Before calling this function, it is necessary for this amount to be approved by the VaultService smart contract.

Example: https://rinkeby.etherscan.io/tx/0xb3a34c0b6f15dafec539c1448373daf75b0cf94225fbd31d0cfe7e5547a397e0


To remove liquidity, you need to call the removeLiquidity function in the VaultService smart contract.

*function removeLiquidity(
    uint256 amount
)*

Parameters:

Example*: https://rinkeby.etherscan.io/tx/0x606048930e7a9835fd4c30257131ff0d385b50eae9f177af4813cc12e5f85b65*


Open & Close Positions

To open a position, you need to call the openPosition function in the PoolService smart contract.

*function openPosition(
    uint256 amount
)*

Parameters:

Example*: https://rinkeby.etherscan.io/tx/0x1b2d7bfe45cc812604c017f40bcddc685f4f94da97979a424c0c203dbe031b39*

Before calling this function, it is necessary for this amount to be approved by the VaultService smart contract.