Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Metamask recommended gas fees for Bitlayer Network is too high #24559

Open
freddi8e opened this issue May 16, 2024 · 0 comments
Open

[Bug]: Metamask recommended gas fees for Bitlayer Network is too high #24559

freddi8e opened this issue May 16, 2024 · 0 comments
Labels
external-contributor regression-prod-11.15.5 Regression bug that was found in production in release 11.15.5 Sev2-normal Normal severity; minor loss of service or inconvenience. team-transactions Transactions team type-bug

Comments

@freddi8e
Copy link

freddi8e commented May 16, 2024

Describe the bug

Just like the problem faced by opBNB chain, Metamask suggests a very high gas fee on Bitlayer Network. Maybe Metamask had set a default minimum recommendation price for gas based on the average of all networks.

Bitlayer is the first Layer 2 solution for Bitcoin that offers security equivalent to Bitcoin's own and Turing completeness. Bitlayer is fully EVM-compatible. And here are some infos for Bitlayer testnet and mainnet.

Mainnet Info:
Chain ID: 200901
RPC: 
	https://rpc.bitlayer.org/, https://rpc.bitlayer-rpc.com/, https://rpc.ankr.com/bitlayer
Explorer:
	https://www.btrscan.com/

Testnet Info:
ChainID: 200810
RPC: 
	https://testnet-rpc.bitlayer.org/
Explorer: 
        https://testnet-scan.bitlayer.org/

And here is the recommended gas fee by Metamask.
image

The recommended gas price is default 1.5gwei.

And here is the real gas price on Bitlayer testnet.

curl https://testnet-rpc.bitlayer.org   -X POST   -H "Content-Type: application/json"   --data '{"method":"eth_gasPrice","params":[],"id":1,"jsonrpc":"2.0"}'
{"id":1,"jsonrpc":"2.0","result":"0x5f5e107"}

The real gas price is much lower than the default minimum recommendation price, it is 0.100000007 gwei.

Expected behavior

We expect that Metamask can provide a recommended gas fee based on the real gas price on Bitlayer chain.

Screenshots/Recordings

image image

Steps to reproduce

  1. Add custom network using Bitlayer network info.
Chain ID: 200810
RPC: 
	https://testnet-rpc.bitlayer.org/
Explorer:
	https://testnet-scan.bitlayer.org/

2.Send asset on Metamask, edit "Estimated fee".
3.Click on "Advanced", and can see the Priority Fee is default 1.5gwei, the Max base fee is 1.500000008gwei.
4.Get the real gas price from Bitlayer chain rpc.

curl https://testnet-rpc.bitlayer.org   -X POST   -H "Content-Type: application/json"   --data '{"method":"eth_gasPrice","params":[],"id":1,"jsonrpc":"2.0"}'
{"id":1,"jsonrpc":"2.0","result":"0x5f5e107"}

The Bitlayer gas price is 0.100000007gwei.

Error messages or log output

No response

Version

11.15.5

Build type

None

Browser

Chrome

Operating system

MacOS

Hardware wallet

No response

Additional context

No response

Severity

No response

@metamaskbot metamaskbot added external-contributor regression-prod-11.15.4 Regression bug that was found in production in release 11.15.4 regression-prod-11.15.5 Regression bug that was found in production in release 11.15.5 and removed regression-prod-11.15.4 Regression bug that was found in production in release 11.15.4 labels May 16, 2024
@gauthierpetetin gauthierpetetin added Sev2-normal Normal severity; minor loss of service or inconvenience. team-transactions Transactions team labels May 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
external-contributor regression-prod-11.15.5 Regression bug that was found in production in release 11.15.5 Sev2-normal Normal severity; minor loss of service or inconvenience. team-transactions Transactions team type-bug
Projects
Status: To be fixed
Status: To be fixed
Development

No branches or pull requests

3 participants