File tree 1 file changed +6
-1
lines changed
1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -610,6 +610,11 @@ where
610
610
) > ,
611
611
mut balances_by_paymaster : HashMap < Address , U256 > ,
612
612
) -> ProposalContext < <Self as BundleProposer >:: UO > {
613
+ if max_bundle_fee == U256 :: ZERO {
614
+ return ProposalContext :: < <Self as BundleProposer >:: UO > :: new ( ) ;
615
+ }
616
+ let buffered_max_bundle_fee = max_bundle_fee * U256 :: from ( 90 ) / U256 :: from ( 100 ) ;
617
+
613
618
let all_sender_addresses: HashSet < Address > = ops_with_simulations
614
619
. iter ( )
615
620
. map ( |( op, _) | op. op . uo . sender ( ) )
@@ -710,7 +715,7 @@ where
710
715
let op_total_gas_limit = op. gas_limit ( & self . settings . chain_spec , None ) ;
711
716
let total_gas_cost = U256 :: from ( total_gas_spent. saturating_add ( op_total_gas_limit) )
712
717
* U256 :: from ( gas_price) ;
713
- if total_gas_cost > max_bundle_fee {
718
+ if total_gas_cost > buffered_max_bundle_fee {
714
719
self . emit ( BuilderEvent :: skipped_op (
715
720
self . builder_tag . clone ( ) ,
716
721
op. hash ( ) ,
You can’t perform that action at this time.
0 commit comments