Added addLiquidity and removeAllLiquidity methods

This commit is contained in:
Aleksandr Kraiz
2022-04-26 10:19:07 +04:00
parent c669e29191
commit 321c5745c7

View File

@@ -100,6 +100,26 @@ orionUnit.exchange
.then(console.log);
```
#### Add liquidity
```ts
orionUnit.farmingManager.addLiquidity({
poolName: "ORN-USDT",
amountAsset: "ORN", // ORN or USDT for this pool
amount: 23.352345,
signer: wallet, // or signer when UI
});
```
#### Remove all liquidity
```ts
orionUnit.farmingManager.removeAllLiquidity({
poolName: "ORN-USDT",
signer: wallet, // or signer when UI
});
```
## Low level methods
### Get historical price