Replace `providers.JsonRpcProvider` with > `providers.StaticJsonRpcProvider`
joshstevens19 opened this issue · comments
In ethers everytime you do a JSONRPC call with JsonRpcProvider
it will call eth_chainId
before it does the request meaning it slows down the response from you main query. StaticJsonRpcProvider
does not do this meaning less JSONRPC call with faster responses.
Good suggestion 👍, we actually id this just now on the client and changed the typing to accept any provider on aave-js 👍 not sure if this should close the issue.
yep if we are now using StaticJsonRpcProvider
then yeah can close.