mirror of
https://github.com/orionprotocol/sdk.git
synced 2026-04-13 22:47:33 +03:00
Semantics improvements
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import { ethers } from 'ethers';
|
||||
import Orion from '../Orion/index.js';
|
||||
import { SERVICE_TOKEN } from '../index.js';
|
||||
|
||||
const privateKey = process.env['PRIVATE_KEY']
|
||||
if (privateKey === undefined) throw new Error('Private key is required');
|
||||
@@ -7,7 +8,7 @@ if (privateKey === undefined) throw new Error('Private key is required');
|
||||
jest.setTimeout(30000);
|
||||
|
||||
describe('Pools', () => {
|
||||
test('Add liquidity ORN', async () => {
|
||||
test(`Add liquidity ${SERVICE_TOKEN}`, async () => {
|
||||
const orion = new Orion('testing');
|
||||
const bscUnit = orion.getUnit('bsc');
|
||||
const wallet = new ethers.Wallet(
|
||||
@@ -16,14 +17,14 @@ describe('Pools', () => {
|
||||
);
|
||||
|
||||
await bscUnit.farmingManager.addLiquidity({
|
||||
amountAsset: 'ORN',
|
||||
poolName: 'ORN-USDT',
|
||||
amountAsset: SERVICE_TOKEN,
|
||||
poolName: `${SERVICE_TOKEN}-USDT`,
|
||||
amount: 20,
|
||||
signer: wallet,
|
||||
});
|
||||
});
|
||||
|
||||
test('Remove liquidity ORN', async () => {
|
||||
test(`Remove liquidity ${SERVICE_TOKEN}`, async () => {
|
||||
const orion = new Orion('testing');
|
||||
const bscUnit = orion.getUnit('bsc');
|
||||
const wallet = new ethers.Wallet(
|
||||
@@ -32,7 +33,7 @@ describe('Pools', () => {
|
||||
);
|
||||
|
||||
await bscUnit.farmingManager.removeAllLiquidity({
|
||||
poolName: 'ORN-USDT',
|
||||
poolName: `${SERVICE_TOKEN}-USDT`,
|
||||
signer: wallet,
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user