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
When you load brave://wallet and login you will see that having that tab open does a lot of Infura calls.
If you add some logging here: ethereum-remote-client/node_modules/eth-json-rpc-infura/src/index.js
For fetchUrl you will see that when a token is added, we’re doing several calls to the contract address every few seconds.
You can see this in about://extensions in the background page dev tools.
In particular we auto-add BAT, so you can see the calls are made for BAT even when that tab is not active.
You can see via looking at the parameters for the calls has the BAT contract address.
I assume maybe these calls are to get the token balance?
Please make the following changes:
Find out why these calls are made.
Lower the frequency of these calls to reduce Infura usage.
Only make these calls when the tab is active or the browser pane is open.
The text was updated successfully, but these errors were encountered:
Verified that no token calls are made when the browser is not in focus, and that they start again appropriately when refocused. Accurate balances and prices are still maintained
This issue is for our Crypto Wallets (MetaMask fork) at https://github.com/brave/ethereum-remote-client
Our Infura usage is too high.
Infura shows us this breakdown by method calls:
When you load brave://wallet and login you will see that having that tab open does a lot of Infura calls.
If you add some logging here:
ethereum-remote-client/node_modules/eth-json-rpc-infura/src/index.js
For
fetchUrl
you will see that when a token is added, we’re doing several calls to the contract address every few seconds.You can see this in about://extensions in the background page dev tools.
In particular we auto-add BAT, so you can see the calls are made for BAT even when that tab is not active.
You can see via looking at the parameters for the calls has the BAT contract address.
I assume maybe these calls are to get the token balance?
Please make the following changes:
The text was updated successfully, but these errors were encountered: