Skip to content

Commit 73016b8

Browse files
authored
Merge pull request #252 from lidofinance/develop
Mellow fallback release
2 parents 648633c + f3d4103 commit 73016b8

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/bots/depositor.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff 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})

0 commit comments

Comments
 (0)