Skip to content

Commit

Permalink
Merge pull request #252 from lidofinance/develop
Browse files Browse the repository at this point in the history
Mellow fallback release
  • Loading branch information
infloop committed Aug 13, 2024
2 parents 648633c + f3d4103 commit 73016b8
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/bots/depositor.py
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,13 @@ def _deposit_to_module(self, module_id: int) -> bool:

strategy, is_mellow = self._select_strategy(module_id)
is_deposit_amount_ok = self._gas_price_calculator.calculate_deposit_recommendation(strategy, module_id)
logger.info({'msg': 'Calculations deposit recommendations.', 'value': is_deposit_amount_ok})
logger.info({'msg': 'Calculations deposit recommendations.', 'value': is_deposit_amount_ok, 'is_mellow': is_mellow})

if is_mellow and not is_deposit_amount_ok:
strategy = self._general_strategy
is_mellow = False
is_deposit_amount_ok = self._gas_price_calculator.calculate_deposit_recommendation(strategy, module_id)
logger.info({'msg': 'Calculations deposit recommendations.', 'value': is_deposit_amount_ok, 'is_mellow': is_mellow})

if is_depositable and quorum and can_deposit and gas_is_ok and is_deposit_amount_ok:
logger.info({'msg': 'Checks passed. Prepare deposit tx.', 'is_mellow': is_mellow})
Expand Down

0 comments on commit 73016b8

Please sign in to comment.