Skip to content

Commit

Permalink
1 wei->10 wei [goreleaser]
Browse files Browse the repository at this point in the history
  • Loading branch information
trajan0x committed Apr 3, 2024
1 parent 94d3d6d commit 21abb18
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ethergo/submitter/submitter.go
Original file line number Diff line number Diff line change
Expand Up @@ -412,8 +412,8 @@ func (t *txSubmitterImpl) setGasPrice(ctx context.Context, client client.EVM,
// in the case where this is our first attempt, use market prices!.
if t.config.SupportsEIP1559(chainID) {
transactor.GasFeeCap = new(big.Int).Mul(marketFeeCap, big.NewInt(2))
// use 1 wei if tip cap is zero
transactor.GasTipCap = bigMax(marketTipCap, big.NewInt(1))
// use 10 wei if tip cap is zero. 10 wei allows us to bump 10% as a whole number (10% of 10 is 1)
transactor.GasTipCap = bigMax(marketTipCap, big.NewInt(10))
} else {
transactor.GasPrice = marketGasPrice
}
Expand Down

0 comments on commit 21abb18

Please sign in to comment.