You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 3e016c0
Browse filesBrowse the repository at this point in the historyBrowse files
fetchLavaUsdPrice hit CoinGecko every call while fetchTokenUsdPrice for
the same 'lava' denom already cached through priceCache for 5 min. Route
handlers calling fetchLavaUsdPrice directly (e.g. /provider-estimated-
rewards, /validators-and-rewards, /all_providers_apr, TVL) each paid the
~150ms handshake instead of sharing.
Use the existing priceCache (key 'lava') for reads and writes, and add
an in-flight promise to coalesce concurrent callers on a miss so ten
parallel routes become one CoinGecko request.
0 commit comments