centrifuge / apps

Monorepo for Centrifuge frontends, including Centrifuge App, onboarding api, and Fabric design system.
GNU Lesser General Public License v3.0
27 stars 16 forks source link

Reduce calls to subquery #2454

Closed onnovisser closed 2 months ago

onnovisser commented 2 months ago

Description

Getting the latest tranche snapshots for all tranches for all pools was the cause of the large amount of calls to subquery. There was a call for each tranche, and it was done more than once for some reason. With over a hundred pools/tranches on demo that was a lot. Now getting the yields in getPools is done with one call for all pools/tranches.

#2432

Approvals

Screenshots

Impact

github-actions[bot] commented 2 months ago

PR deployed in Google Cloud URL: https://pr2454-app-ff-production.k-f.dev Commit #: 0bf3bcfb21c2037e5ed7e1698fcd223348f39ff5
To access the functions directly check the corresponding deploy Action

github-actions[bot] commented 2 months ago

PR deployed in Google Cloud URL: https://app-pr2454.k-f.dev Commit #: 0bf3bcfb21c2037e5ed7e1698fcd223348f39ff5
To access the functions directly check the corresponding deploy Action