Skip to content

Commit bcf21ec

Browse files
authored
Fix clients functions calls (#103)
Signed-off-by: cyc60 <[email protected]>
1 parent 115efa0 commit bcf21ec

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

oracle/oracle/distributor/common/eth1.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -236,6 +236,7 @@ async def get_partners_rewards(
236236
) -> Tuple[Rewards, Wei]:
237237
"""Fetches partners rewards."""
238238
result: Dict = await execute_sw_gql_query(
239+
network=network,
239240
query=PARTNERS_QUERY,
240241
variables=dict(
241242
block_number=to_block,

oracle/oracle/distributor/common/uniswap_v3.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,7 @@ async def get_uniswap_v3_liquidity_points(
171171
return Balances(total_supply=0, balances={})
172172

173173
positions: List = await execute_uniswap_v3_paginated_gql_query(
174+
network=network,
174175
query=UNISWAP_V3_CURRENT_TICK_POSITIONS_QUERY,
175176
variables=dict(
176177
block_number=block_number,

oracle/oracle/validators/eth1.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
VALIDATOR_REGISTRATIONS_QUERY,
1515
)
1616
from oracle.oracle.common.ipfs import ipfs_fetch
17+
from oracle.settings import NETWORK
1718

1819
from .types import ValidatorDepositData
1920

@@ -23,6 +24,7 @@ async def select_validator(
2324
) -> Union[None, ValidatorDepositData]:
2425
"""Selects the next validator to register."""
2526
result: Dict = await execute_sw_gql_query(
27+
network=NETWORK,
2628
query=OPERATORS_QUERY,
2729
variables=dict(block_number=block_number),
2830
)
@@ -71,6 +73,7 @@ async def select_validator(
7173
async def can_register_validator(block_number: BlockNumber, public_key: HexStr) -> bool:
7274
"""Checks whether it's safe to register the validator."""
7375
result: Dict = await execute_ethereum_gql_query(
76+
network=NETWORK,
7477
query=VALIDATOR_REGISTRATIONS_QUERY,
7578
variables=dict(block_number=block_number, public_key=public_key),
7679
)
@@ -82,6 +85,7 @@ async def can_register_validator(block_number: BlockNumber, public_key: HexStr)
8285
async def get_validators_deposit_root(block_number: BlockNumber) -> HexStr:
8386
"""Fetches validators deposit root for protecting against operator submitting deposit prior to registration."""
8487
result: Dict = await execute_ethereum_gql_query(
88+
network=NETWORK,
8589
query=VALIDATOR_REGISTRATIONS_LATEST_INDEX_QUERY,
8690
variables=dict(block_number=block_number),
8791
)

0 commit comments

Comments
 (0)