Skip to content

Commit

Permalink
fix: await init
Browse files Browse the repository at this point in the history
  • Loading branch information
JackieJoo committed Sep 30, 2023
1 parent ac7792c commit de231db
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/dex/algebra/algebra.ts
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ export class Algebra extends SimpleExchange implements IDex<AlgebraData> {

async initializePricing(blockNumber: number) {
// Init listening to new pools creation
this.factory.initialize(blockNumber);
await this.factory.initialize(blockNumber);

if (!this.dexHelper.config.isSlave) {
const cleanExpiredNotExistingPoolsKeys = async () => {
Expand Down
2 changes: 1 addition & 1 deletion src/dex/pancakeswap-v3/pancakeswap-v3.ts
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ export class PancakeswapV3

async initializePricing(blockNumber: number) {
// Init listening to new pools creation
this.factory.initialize(blockNumber);
await this.factory.initialize(blockNumber);

if (!this.dexHelper.config.isSlave) {
const cleanExpiredNotExistingPoolsKeys = async () => {
Expand Down
2 changes: 1 addition & 1 deletion src/dex/uniswap-v3/uniswap-v3.ts
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ export class UniswapV3

async initializePricing(blockNumber: number) {
// Init listening to new pools creation
this.factory.initialize(blockNumber);
await this.factory.initialize(blockNumber);

// This is only for testing, because cold pool fetching is goes out of
// FETCH_POOL_INDENTIFIER_TIMEOUT range
Expand Down

0 comments on commit de231db

Please sign in to comment.