Fujicracy / fuji-v2

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

Defillama cache #717

Closed ferostabio closed 8 months ago

ferostabio commented 8 months ago

We experience 403 from Defillama getting data. We are already working on a custom API to cache the data, but the underlying issue is that their response weights 8mb. If we just move this to our own server and we make a lot of calls, we'll have issues maintaining it.

Also, its bad user experience. We are making a lot of calls, not just for the markets screen, also for the charts, downloading 8mb of data each time.

We are then going to cache the data locally with indexedDB and make the calls to Defillama (first, then to our own server) each X amount of time.