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
Add server-side proxy at /api/enso/prices (Vercel Edge Function) that
fetches the Kong vault list, extracts all vault + asset addresses per
chain, and queries Enso's per-address price API with rate limiting
(concurrency 5, 200ms batch delay, retry on 429). Returns the same
{ [chainId]: { [address]: priceString } } shape as ydaemon so no
consumer code changes are needed.
Edge caching: s-maxage=120, stale-while-revalidate=600.
Client-side changes:
- useFetchYDaemonPrices: preserved original ydaemon implementation
- useFetchEnsoPrices: new hook that fetches from /api/enso/prices
- useFetchYearnPrices: now delegates to useFetchEnsoPrices by default,
swap import to useFetchYDaemonPrices to revert
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
0 commit comments