Skip to content

Commit

Permalink
fix idle condition
Browse files Browse the repository at this point in the history
  • Loading branch information
albertandrejev committed Dec 18, 2024
1 parent fcb3bdb commit b1eecad
Showing 1 changed file with 16 additions and 6 deletions.
22 changes: 16 additions & 6 deletions scripts/coordinator/src/modules/core/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,13 +96,23 @@ export class CoreModule extends ManagerModule {

const config = await this.coreContractClient.queryConfig();

const lsmShareCanProcessOnIdle =
this.lsmShareBondProviderContractClient &&
(await this.lsmShareBondProviderContractClient.queryCanProcessOnIdle());
let lsmShareCanProcessOnIdle = false;
try {
lsmShareCanProcessOnIdle =
this.lsmShareBondProviderContractClient &&
(await this.lsmShareBondProviderContractClient.queryCanProcessOnIdle());
} catch (e) {
//
}

const nativeBondCanProcessOnIdle =
this.nativeBondProviderContractClient &&
(await this.nativeBondProviderContractClient.queryCanProcessOnIdle());
let nativeBondCanProcessOnIdle = false;
try {
nativeBondCanProcessOnIdle =
this.nativeBondProviderContractClient &&
(await this.nativeBondProviderContractClient.queryCanProcessOnIdle());
} catch (e) {
//
}

if (
this.lastRun / 1000 <
Expand Down

0 comments on commit b1eecad

Please sign in to comment.