Fujicracy / fuji-v2

Cross-chain money market aggregator
https://fuji-v2-frontend.vercel.app
15 stars 10 forks source link

Frontend cache for llamas #720

Closed ferostabio closed 8 months ago

ferostabio commented 8 months ago

close #717

In order to reduce the number of calls we make to an API (Defillama or ours) and before deploying our own express + redis API, I added a local cache with indexedDB.

Now we will only call an API to get the data once in fifteen minutes -rest of the time we'll load data locally.

In order to do this, I had to decouple to functions on the sdk that were calling an API and parsing through its response.

vercel[bot] commented 8 months ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
fuji-v2-frontend ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 29, 2023 1:23pm
ferostabio commented 8 months ago

@DaigaroCota @NikolaiYurchenko please have a look 🚀