From b242399345f8410577f1ffe9dcaa8c4930e8b21e Mon Sep 17 00:00:00 2001 From: mrq Date: Tue, 24 Oct 2023 21:09:55 +0200 Subject: [PATCH] with LBP --- packages/sdk/test/script/examples/router/timeSpotPrice.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/sdk/test/script/examples/router/timeSpotPrice.ts b/packages/sdk/test/script/examples/router/timeSpotPrice.ts index eb8da3d2..d65d8b4f 100644 --- a/packages/sdk/test/script/examples/router/timeSpotPrice.ts +++ b/packages/sdk/test/script/examples/router/timeSpotPrice.ts @@ -7,13 +7,13 @@ import {PoolType} from '../../../../src/types'; class GetBestSpotPriceExample extends PolkadotExecutor { async script(api: ApiPromise): Promise { const poolService = new PoolService(api); - const router = new TradeRouter(poolService, { includeOnly: [PoolType.Omni, PoolType.Stable] }); + const router = new TradeRouter(poolService, { includeOnly: [PoolType.Omni, PoolType.Stable, PoolType.LBP] }); let result; - console.time('Get best spot price with LBP 10x') + console.time('spot price 10x') for (let i = 0; i < 10; i++) { result = await router.getBestSpotPrice('5', '2'); } - console.timeEnd('Get best spot price with LBP 10x') + console.timeEnd('spot price 10x') return result; } }