Skip to content
This repository was archived by the owner on Jun 17, 2025. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion fee_allocator/accounting/fee_pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def run_fees(
poolutil = BalPoolsGauges(chain.value)
listed_core_pools = core_pools.get(chain.value, None)
pools = {}
if listed_core_pools is None:
if listed_core_pools is None or not fees_to_distribute.get(chain.value):
continue
### Remove any invalid core pools
for pool_id, description in listed_core_pools.items():
Expand All @@ -79,6 +79,12 @@ def run_fees(
print(
f"Warning pool {pool_id}({description}) on chain {chain} is in the core pools list but does not have a gauge. Skipping."
)
if not pools:
logger.warning(
f"{chain.value} has {fees_to_distribute[chain.value]} in fees but no core pools defined. setting fees to 0."
)
fees_to_distribute[chain.value] = 0
continue

target_blocks[chain.value] = (
get_block_by_ts(timestamp_now, chain.value), # Block now
Expand Down
Loading