Skip to content
This repository was archived by the owner on Jun 17, 2025. It is now read-only.

Commit 94f9869

Browse files
Merge pull request #327 from BalancerMaxis/fix-no-corepool-chain
skip chains with no fees/core pools
2 parents f0d0bfa + a5de060 commit 94f9869

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

fee_allocator/accounting/fee_pipeline.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ def run_fees(
6969
poolutil = BalPoolsGauges(chain.value)
7070
listed_core_pools = core_pools.get(chain.value, None)
7171
pools = {}
72-
if listed_core_pools is None:
72+
if listed_core_pools is None or not fees_to_distribute.get(chain.value):
7373
continue
7474
### Remove any invalid core pools
7575
for pool_id, description in listed_core_pools.items():
@@ -79,6 +79,12 @@ def run_fees(
7979
print(
8080
f"Warning pool {pool_id}({description}) on chain {chain} is in the core pools list but does not have a gauge. Skipping."
8181
)
82+
if not pools:
83+
logger.warning(
84+
f"{chain.value} has {fees_to_distribute[chain.value]} in fees but no core pools defined. setting fees to 0."
85+
)
86+
fees_to_distribute[chain.value] = 0
87+
continue
8288

8389
target_blocks[chain.value] = (
8490
get_block_by_ts(timestamp_now, chain.value), # Block now

0 commit comments

Comments
 (0)