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
Stop fetching data through Metamask, use it only for signing write operations
Context
Since Metamask started to apply rate limiting, frontend sometimes hits the limit due to the high number of requests that we have to make. The only downside of that is increased our infura usage, which will be mitigated in #38.
The proposed solution is to have two separate providers:
The provider created with our infura endpoint
The signer created with wallet signer
Therefore, it should be possible to getContracts by specifying which provider to use, possibly just adding extra argument withSigner, with false by default.
Tasks
Store providers and signers separately
Extend getContract function
Validate that after connecting wallet read calls are still go through our endpoint
Validate that wallet functionality is not affected
The text was updated successfully, but these errors were encountered:
Goal
Stop fetching data through Metamask, use it only for signing write operations
Context
Since Metamask started to apply rate limiting, frontend sometimes hits the limit due to the high number of requests that we have to make. The only downside of that is increased our infura usage, which will be mitigated in #38.
The proposed solution is to have two separate providers:
Therefore, it should be possible to
getContract
s by specifying which provider to use, possibly just adding extra argumentwithSigner
, withfalse
by default.Tasks
getContract
functionThe text was updated successfully, but these errors were encountered: