Skip to content

Commit

Permalink
decrease the interval of withdrawLiquidity checking
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaoch05 committed Oct 8, 2024
1 parent e0c7a1f commit e2126f9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/dataworker/dataworker.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,7 @@ export class DataworkerService implements OnModuleInit {
return feeUsed;
}

// MUST: countThreshold <= 40 ELSE invalid threshold
async queryLiquidity(
url: string,
fromChain: string,
Expand All @@ -173,7 +174,7 @@ export class DataworkerService implements OnModuleInit {
if (!amountThreshold && !countThreshold) return null;
let query = `{
historyRecords(
row: 100,
row: 40,
relayer: \"${relayer.toLowerCase()}\",
recvTokenAddress: \"${token.toLowerCase()}\",
fromChains: [\"${fromChain}\"],
Expand Down
2 changes: 1 addition & 1 deletion src/relayer/relayer.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ export class RelayerService implements OnModuleInit {
private readonly scheduleAdjustFeeInterval = 8640; // 1day
private readonly maxWaitingPendingTimes = 180;
private readonly heartBeatInterval = 12; // 2 minute
private readonly withdrawLiqudityInterval = 2160; // 6 hour
private readonly withdrawLiqudityInterval = 360; // 1 hour
private readonly updateDynamicFeeInterval = 60; // 10 min
private readonly repayLendInterval = 60;
private chainInfos = new Map();
Expand Down

0 comments on commit e2126f9

Please sign in to comment.