Skip to content

Commit

Permalink
chore: increasing the openExchangeRates refresh cookie limit to 24h s…
Browse files Browse the repository at this point in the history
…ince we have sintra.fi updating our BTC price every couple of seconds
  • Loading branch information
StellarStoic committed Sep 7, 2024
1 parent f722d2f commit 8ffa733
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion converter.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ document.addEventListener('DOMContentLoaded', function () {
let updateTimeout; // For debouncing
const CACHE_KEY = 'exchangeRatesCache';
const CACHE_EXPIRY_KEY = 'exchangeRatesCacheExpiry';
const CACHE_DURATION_MS = 12 * 60 * 60 * 1000; // 12 hours in milliseconds
const CACHE_DURATION_MS = 24 * 60 * 60 * 1000; // 24 hours in milliseconds
const USER_SETTINGS_KEY = 'userCurrencySettings'; // Key to store user settings
const MAX_BTC_SUPPLY = 21000000; // Maximum supply of BTC
const MAX_SAT_SUPPLY = MAX_BTC_SUPPLY * 100000000; // Maximum supply of SAT (21 million BTC in Satoshis)
Expand Down

0 comments on commit 8ffa733

Please sign in to comment.