File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -190,7 +190,13 @@ def _deposit_to_module(self, module_id: int) -> bool:
190190
191191 strategy , is_mellow = self ._select_strategy (module_id )
192192 is_deposit_amount_ok = self ._gas_price_calculator .calculate_deposit_recommendation (strategy , module_id )
193- logger .info ({'msg' : 'Calculations deposit recommendations.' , 'value' : is_deposit_amount_ok })
193+ logger .info ({'msg' : 'Calculations deposit recommendations.' , 'value' : is_deposit_amount_ok , 'is_mellow' : is_mellow })
194+
195+ if is_mellow and not is_deposit_amount_ok :
196+ strategy = self ._general_strategy
197+ is_mellow = False
198+ is_deposit_amount_ok = self ._gas_price_calculator .calculate_deposit_recommendation (strategy , module_id )
199+ logger .info ({'msg' : 'Calculations deposit recommendations.' , 'value' : is_deposit_amount_ok , 'is_mellow' : is_mellow })
194200
195201 if is_depositable and quorum and can_deposit and gas_is_ok and is_deposit_amount_ok :
196202 logger .info ({'msg' : 'Checks passed. Prepare deposit tx.' , 'is_mellow' : is_mellow })
You can’t perform that action at this time.
0 commit comments