Skip to content

Commit 4a1ad4b

Browse files
committed
fix: balance check for side chains
1 parent d777473 commit 4a1ad4b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/bots/depositor.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,11 +132,13 @@ def _check_balance(self):
132132

133133
guardians = self.w3.lido.deposit_security_module.get_guardians()
134134
providers = [self.w3]
135+
135136
if self._onchain_transport_w3 is not None:
136137
providers.append(self._onchain_transport_w3)
138+
137139
for address in guardians:
138140
for provider in providers:
139-
balance = self.w3.eth.get_balance(address)
141+
balance = provider.eth.get_balance(address)
140142
GUARDIAN_BALANCE.labels(address=address, chain_id=provider.eth.chain_id).set(balance)
141143

142144
def _deposit_to_module(self, module_id: int) -> bool:

0 commit comments

Comments
 (0)