Skip to content

Commit

Permalink
fix: 🐛 tweak price process
Browse files Browse the repository at this point in the history
  • Loading branch information
lucca180 committed Jan 29, 2025
1 parent 8b45d9a commit 2350732
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pages/api/v1/prices/process.ts
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,7 @@ async function updateOrAddDB(
if (daysSinceLastUpdate < MIN_LAST_UPDATE && variation < 30 && priceDiff < 25000)
return undefined;

if ((variation <= 5 || priceDiff < 5000) && daysSinceLastUpdate <= 15) return undefined;
if ((variation <= 5 || priceDiff < 2500) && daysSinceLastUpdate <= 15) return undefined;

if (!oldPriceRaw.noInflation_id && priceDiff >= 90000) {
if (oldPrice < priceValue && variation >= 75) {
Expand Down

0 comments on commit 2350732

Please sign in to comment.