Skip to content

Commit

Permalink
Add a little buffer in time for Web3 Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
matjazv committed Nov 15, 2024
1 parent 148ecd0 commit 4d01af8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions web3-actions/priceFeedMonitor/tokenPairMonitor/commonCode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,8 @@ export async function checkTokenPairPriceUpdateTime(
console.log("Started At:", latestRoundData.startedAt.toString());
console.log("Updated At:", latestRoundData.updatedAt.toString());

// Check if updatedAt is older than 6 hours from the current time
const sixHoursInSeconds = 6 * 60 * 60;
// Check if updatedAt is older than 6 hours from the current time (+2 minutes buffer for Web3 Actions)
const sixHoursInSeconds = 6 * 60 * 60 + 120;
const updatedAt = Number(latestRoundData.updatedAt.toString());

console.log("Current Time:", currentTimestamp);
Expand Down

0 comments on commit 4d01af8

Please sign in to comment.