Closed ferostabio closed 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 |
@DaigaroCota @NikolaiYurchenko please have a look 🚀
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.