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 Cyber Network is too high #24236

Open
PengDeng-Cyber opened this issue Apr 25, 2024 · 1 comment
Open
Labels
external-contributor regression-prod-11.13.1 Regression bug that was found in production in release 11.13.1 Sev2-normal Normal severity; minor loss of service or inconvenience. team-transactions Transactions team type-bug

Comments

@PengDeng-Cyber
Copy link

PengDeng-Cyber commented Apr 25, 2024

Describe the bug

Metamask suggests a very high gas fee on Cyber Network. Maybe Metamask had set a default minimum recommendation price for gas based on the average of all networks.

Cyber Network is a fully EVM-compatible Rollup built through the OP Stack. And here are some infos for Cyber testnet and mainnet.

Mainnet Info:
Chain ID: 7560
RPC: https://cyber.alt.technology/
Explorer: https://cyberscan.co

Testnet Info:
Chain ID: 111557560
RPC: https://cyber-testnet.alt.technology/
Explorer: https://testnet.cyberscan.co

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 Cyber mainnet.

curl --location 'https://cyber.alt.technology/' \
--header 'Content-Type: application/json' \
--data '{"method":"eth_maxPriorityFeePerGas","params":[],"id":1,"jsonrpc":"2.0"}'
{"jsonrpc":"2.0","id":1,"result":"0xf4240"}

cast gas-price -r=https://cyber.alt.technology/
1000252

The real gas price is much lower than the default minimum recommendation price, it is 1000252wei (0.001000252gwei).

Expected behavior

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

Screenshots/Recordings

No response

Steps to reproduce

  1. Add custom network using Cyber network info.
Mainnet Info:
Chain ID: 7560
RPC: https://cyber.alt.technology/
Explorer: https://cyberscan.co

Testnet Info:
Chain ID: 111557560
RPC: https://cyber-testnet.alt.technology/
Explorer: https://testnet.cyberscan.co
  1. Send asset on Metamask, edit "Estimated fee".
  2. Click on "Advanced", and can see the Priority Fee is default 1.5gwei, the Max base fee is 1.500000302gwei.
  3. Get the real gas price from Cyber chain rpc.
curl --location 'https://cyber.alt.technology/' \
--header 'Content-Type: application/json' \
--data '{"method":"eth_maxPriorityFeePerGas","params":[],"id":1,"jsonrpc":"2.0"}'
{"jsonrpc":"2.0","id":1,"result":"0xf4240"}

cast gas-price -r=https://cyber.alt.technology/
1000252

The Cyber gas price is 0.001000252gwei.

Error messages or log output

No response

Version

11.13.1

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.13.1 Regression bug that was found in production in release 11.13.1 labels Apr 25, 2024
@gauthierpetetin gauthierpetetin added team-confirmations Push issues to confirmations team Sev2-normal Normal severity; minor loss of service or inconvenience. labels Apr 25, 2024
@gauthierpetetin
Copy link
Contributor

Hi @MetaMask/confirmations-system-team , this issue seems similar to this one: #24120

@cryptotavares cryptotavares added team-transactions Transactions team and removed team-confirmations Push issues to confirmations team labels May 3, 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.13.1 Regression bug that was found in production in release 11.13.1 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

4 participants