Semantics improvements

This commit is contained in:
Aleksandr Kraiz
2023-05-18 22:33:20 +04:00
parent dba7169828
commit ab36c0b26b
21 changed files with 71 additions and 55 deletions

View File

@@ -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,
});
});