Skip to content

Commit

Permalink
update Rate
Browse files Browse the repository at this point in the history
  • Loading branch information
cherry-yl-sh committed Jun 26, 2024
1 parent 67300a4 commit f8e6444
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion common/global_const/common_const.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ var (
TwoBigint = big.NewInt(2)
HundredPlusOneBigint = big.NewInt(110)
HundredPlusTwoBigint = big.NewInt(120)
HundredFiveTwoBigint = big.NewInt(150)
HundredPlusFiveBigint = big.NewInt(150)
DummyPrivateKey *ecdsa.PrivateKey
DummyAddress common.Address
DummyPaymasterDataByte []byte
Expand Down
2 changes: 1 addition & 1 deletion gas_executor/gas_computor.go
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ func GetPreVerificationGas(userOp *user_op.UserOpInput, strategy *model.Strategy
return nil, err
}
// add 10% buffer
preGas = preGas.Mul(preGas, global_const.HundredPlusTwoBigint)
preGas = preGas.Mul(preGas, global_const.HundredPlusFiveBigint)
preGas = preGas.Div(preGas, global_const.HundredBigint)
logrus.Debugf("GetPreVerificationGas preVerificationGas: %v", preGas)
return preGas, nil
Expand Down

0 comments on commit f8e6444

Please sign in to comment.