gitcoinco / gitcoinco/web

Bug: gas_price suggestions are too low causing transactions to fail

Open
#9,615 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
1.8k
Forks
776
PR merge metrics
No merged PRs in 30d

Description

**Describe the bug**

Bounty payout calls are being sent with a suggested `gas_price` which is too low (5gwei).

Since the adoption of EIP 1559, we should avoid suggesting a `gas_price` and let the users wallet discover this value itself.

This likely also means that any of our gas price aware contract calls site-wide are being sent with the wrong `gas_price` too, additionally, the fact that the page recommends 5gwei (the default amount) would suggest that the `sync_gas_fees` mgmt command is also broken since EIP 1559.

**Definition of done**

GIVEN I am a bounty funder looking to pay out a contributor on a specific bounty
WHEN I click "payout"
AND it activates metamask
THEN the suggested gas fee is from Metamask, not "site suggested".

===

GIVEN I am a Gitcoin user looking to tip another Gitcoin user
WHEN I click "send tip"
AND it activates metamask
THEN the suggested gas fee is from Metamask, not "site suggested".

===

GIVEN I am a Gitcoin Grant contributor looking to checkout my cart on the checkout page
WHEN I click "standard checkout"
AND it activates metamask
THEN the suggested gas fee is from Metamask, not "site suggested".

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.