Skip to content
This repository was archived by the owner on Apr 14, 2026. It is now read-only.

Commit 8d5c751

Browse files
committed
add template v3 fees on mimic pr
1 parent d491848 commit 8d5c751

2 files changed

Lines changed: 10 additions & 3 deletions

File tree

fee_allocator/constants.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
FEE_CONSTANTS_URL = "https://raw.githubusercontent.com/BalancerMaxis/multisig-ops/f7e0425b59e474b01d2ede125053238460792630/config/protocol_fees_constants.json"
2-
CORE_POOLS_URL = "https://raw.githubusercontent.com/BalancerMaxis/bal_addresses/main/outputs/core_pools.json"
32
REROUTE_CONFIG_URL = "https://raw.githubusercontent.com/BalancerMaxis/multisig-ops/main/config/core_pools_rerouting.json"
43
POOL_OVERRIDES_URL = "https://raw.githubusercontent.com/BalancerMaxis/multisig-ops/main/config/pool_incentives_overrides.json"
54
SNAPSHOT_URL = "https://hub.snapshot.org/graphql?"

fee_allocator/fees_collected/get_report.py

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,18 @@ def get_report(start_date, end_date):
4343
yesterday = today - timedelta(days=1)
4444
epoch_start = today - timedelta(days=14)
4545

46-
report = get_report(yesterday.strftime("%Y-%m-%d"), today.strftime("%Y-%m-%d"))
46+
v2_report = get_report(yesterday.strftime("%Y-%m-%d"), today.strftime("%Y-%m-%d"))
47+
4748
with open(
4849
f"fee_allocator/fees_collected/v2_fees_{epoch_start.strftime('%Y-%m-%d')}_{today.strftime('%Y-%m-%d')}.json",
4950
"w",
5051
) as f:
51-
json.dump(report, f, indent=2)
52+
json.dump(v2_report, f, indent=2)
53+
54+
with open(
55+
f"fee_allocator/fees_collected/v3_fees_{epoch_start.strftime('%Y-%m-%d')}_{today.strftime('%Y-%m-%d')}.json",
56+
"w",
57+
) as f:
58+
empty_v3_fees = {chain: 0 for chain in v2_report.keys()}
59+
json.dump(empty_v3_fees, f, indent=2)
5260

0 commit comments

Comments
 (0)