Skip to content

Commit

Permalink
with LBP
Browse files Browse the repository at this point in the history
  • Loading branch information
mrq1911 committed Oct 24, 2023
1 parent 09a1bf2 commit b242399
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/sdk/test/script/examples/router/timeSpotPrice.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@ import {PoolType} from '../../../../src/types';
class GetBestSpotPriceExample extends PolkadotExecutor {
async script(api: ApiPromise): Promise<any> {
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;
}
}
Expand Down

0 comments on commit b242399

Please sign in to comment.