BuidlGuidl / flashbot-recovery-bundler

https://hackedwalletrecovery-buidlguidldao.vercel.app
MIT License
30 stars 8 forks source link

Cache calls to Alchemy #25

Open escottalexander opened 8 months ago

escottalexander commented 8 months ago

Currently we call the Alchemy api to estimate the gas cost of a bundle. We should find a way to cache the request and save the result so that we only call the endpoint again after the bundle has changed.

See line 34 in useGasEstimation.ts