We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d777473 commit 4a1ad4bCopy full SHA for 4a1ad4b
src/bots/depositor.py
@@ -132,11 +132,13 @@ def _check_balance(self):
132
133
guardians = self.w3.lido.deposit_security_module.get_guardians()
134
providers = [self.w3]
135
+
136
if self._onchain_transport_w3 is not None:
137
providers.append(self._onchain_transport_w3)
138
139
for address in guardians:
140
for provider in providers:
- balance = self.w3.eth.get_balance(address)
141
+ balance = provider.eth.get_balance(address)
142
GUARDIAN_BALANCE.labels(address=address, chain_id=provider.eth.chain_id).set(balance)
143
144
def _deposit_to_module(self, module_id: int) -> bool:
0 commit comments