balancer / frontend-v3

Deprecated, the app was moved into our frontend monorepo.
https://github.com/balancer/frontend-monorepo
MIT License
8 stars 12 forks source link

fix: use rpc url from transports in handlers #1070

Closed agualis closed 1 month ago

agualis commented 1 month ago

Before: Handlers were using getDefaultRpcUrl() which takes the viem's public rpc url. This could lead to errors due to 429s or temporary outages of the public URLs.

After: Handlers use getHandlerRpcUrl()which takes the rpc url from the transports setup, that is, uses private (or fallback) urls, that should be more reliable.

With this change we should minimize errors like these ones: https://balancer-labs.sentry.io/issues/5763086985/

We are also using private infura url for integration tests (sepolia and polygon) to make them more reliable.

vercel[bot] commented 1 month ago

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

Name Status Preview Comments Updated (UTC)
frontend-v3 ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 10, 2024 10:19am
test-v3 ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 10, 2024 10:19am