Skip to content

Commit

Permalink
make fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
samlaf committed Jul 15, 2024
1 parent e83464e commit f0ae1d9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion chainio/txmgr/geometric.go
Original file line number Diff line number Diff line change
Expand Up @@ -565,7 +565,8 @@ func (t *GeometricTxManager) estimateGasTipCap(ctx context.Context) (gasTipCap *
// The result is returned in a new big.Int to avoid modifying the input gasTipCap.
func (t *GeometricTxManager) addGasTipCapBuffer(gasTipCap *big.Int) *big.Int {
bumpedGasTipCap := new(big.Int).Set(gasTipCap)
return bumpedGasTipCap.Mul(bumpedGasTipCap, big.NewInt(int64(t.params.GasTipMultiplierPercentage))).Div(bumpedGasTipCap, big.NewInt(100))
return bumpedGasTipCap.Mul(bumpedGasTipCap, big.NewInt(int64(t.params.GasTipMultiplierPercentage))).
Div(bumpedGasTipCap, big.NewInt(100))
}

// estimateGasFeeCap returns the gas fee cap for a transaction, calculated as:
Expand Down

0 comments on commit f0ae1d9

Please sign in to comment.