mento-protocol / reserve-site

Mento Reserve Website
https://reserve.mento.org
1 stars 3 forks source link

fix: unbatch RPC calls and fix UI warning #55

Closed bowd closed 4 months ago

bowd commented 4 months ago

Description

We had an outage on the Reserve site last night, which seems to be caused by Infura timing out on our batched RPC calls. It's intermittent and probably due to some internal scaling/infrastructure changes happening there.

I've removed the batching. But to improve performance and loading time and to get things in line, I suggest migrating all ethers and contractkit usage to viem so we can (easily) make use of multicall to not just batch at the RPC level but actually batch reads into a single RPC call, reducing the load.

Other changes

Tested

Yes

Related issues

N/A

Backwards compatibility

N/A

Documentation

N/A

vercel[bot] commented 4 months ago

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

Name Status Preview Comments Updated (UTC)
reserve-site ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 16, 2024 7:15am