Skip to content

Commit

Permalink
fix: price update staleness tolerance (#338)
Browse files Browse the repository at this point in the history
  • Loading branch information
Rickk137 authored Jun 26, 2024
1 parent 68fc82a commit 61a68a1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ export const useAllCollateralPriceUpdates = (customNetwork?: Network) => {
if (!(targetNetwork?.id && targetNetwork?.preset)) {
throw 'useAllCollateralPriceUpdates is missing required data';
}
const stalenessTolerance = 50;
const stalenessTolerance = 1;

const pythFeedIds = (await getPythFeedIds(targetNetwork)) as string[];
const tx = await getPriceUpdates(pythFeedIds, stalenessTolerance, targetNetwork);
Expand Down

0 comments on commit 61a68a1

Please sign in to comment.