Skip to content

Commit d9c7e35

Browse files
committed
fix: typo
1 parent 3c7697f commit d9c7e35

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

src/bots/depositor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ def execute(self, block: BlockData) -> bool:
111111
result = self._deposit_to_module(module_id)
112112
logger.info({'msg': f'Deposit status to Module[{module_id}]: {result}.', 'value': result})
113113

114-
if variables.DEPOSIT_TO_FIST_HEALTHY_MODULE_ONLY or result:
114+
if variables.DEPOSIT_TO_FIRST_HEALTHY_MODULE_ONLY or result:
115115
return result
116116

117117
logger.warning({'msg': f'Deposit to module with id: {module_id} failed.'})

src/variables.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
RABBIT_MQ_PASSWORD = os.getenv('RABBIT_MQ_PASSWORD', 'guest')
4646

4747
QUORUM_RETENTION_MINUTES: int = int(os.getenv('QUORUM_RETENTION_MINUTES', 30))
48-
DEPOSIT_TO_FIST_HEALTHY_MODULE_ONLY: bool = os.getenv('DEPOSIT_TO_FIST_HEALTHY_MODULE_ONLY', 'true') == 'true'
48+
DEPOSIT_TO_FIRST_HEALTHY_MODULE_ONLY: bool = os.getenv('DEPOSIT_TO_FIRST_HEALTHY_MODULE_ONLY', 'true') == 'true'
4949

5050
# data bus
5151
# gnosis nodes
@@ -125,7 +125,7 @@
125125
'ONCHAIN_TRANSPORT_ADDRESS': ONCHAIN_TRANSPORT_ADDRESS,
126126
'BLOCKS_BETWEEN_EXECUTION': BLOCKS_BETWEEN_EXECUTION,
127127
'QUORUM_RETENTION_MINUTES': QUORUM_RETENTION_MINUTES,
128-
'DEPOSIT_TO_FIST_HEALTHY_MODULE_ONLY': DEPOSIT_TO_FIST_HEALTHY_MODULE_ONLY,
128+
'DEPOSIT_TO_FIRST_HEALTHY_MODULE_ONLY': DEPOSIT_TO_FIRST_HEALTHY_MODULE_ONLY,
129129
}
130130

131131
PRIVATE_ENV_VARS = {

tests/bots/test_depositor.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -388,13 +388,13 @@ def test_depositor_execute(web3_lido_unit, depositor_bot):
388388
depositor_bot._get_preferred_to_deposit_modules = Mock(return_value=[1, 2])
389389

390390
# Check unsuccess deposit to first module only
391-
variables.DEPOSIT_TO_FIST_HEALTHY_MODULE_ONLY = True
391+
variables.DEPOSIT_TO_FIRST_HEALTHY_MODULE_ONLY = True
392392
depositor_bot._deposit_to_module = Mock(return_value=False)
393393
depositor_bot.execute(None)
394394
assert depositor_bot._deposit_to_module.call_count == 1
395395

396396
# Check deposit to both modules
397-
variables.DEPOSIT_TO_FIST_HEALTHY_MODULE_ONLY = False
397+
variables.DEPOSIT_TO_FIRST_HEALTHY_MODULE_ONLY = False
398398
depositor_bot._deposit_to_module = Mock(return_value=False)
399399
depositor_bot.execute(None)
400400
assert depositor_bot._deposit_to_module.call_count == 2

0 commit comments

Comments
 (0)