mirror of
https://github.com/orionprotocol/sdk.git
synced 2026-03-14 06:02:36 +03:00
Added addLiquidity and removeAllLiquidity methods
This commit is contained in:
20
README.md
20
README.md
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user