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

Commit 676e038

Browse files
committed
use nonBlacklistedVotes, update recon data, change cron schedule to run on thursday weekly
1 parent 9b0c464 commit 676e038

3 files changed

Lines changed: 29 additions & 25 deletions

File tree

.github/workflows/backfill_aura_split.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: Backfill Aura/BAL Split
22

33
on:
44
schedule:
5-
- cron: "0 12 * * 2" # Weekly Tuesday 12:00 UTC
5+
- cron: "0 8 * * 4" # Weekly Thursday 08:00 UTC
66
workflow_dispatch:
77

88
jobs:

fee_allocator/summaries/v3_recon.json

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -456,11 +456,11 @@
456456
"periodStart": 1768435200,
457457
"periodEnd": 1769644800,
458458
"bribeThreshold": 490,
459-
"auraIncentives": 4111.32,
460-
"balIncentives": 9761.36,
461-
"auravebalShare": 0.3,
462-
"auraIncentivesPct": 0.1577,
463-
"balIncentivesPct": 0.3745
459+
"auraIncentives": 9207.38,
460+
"balIncentives": 4665.29,
461+
"auravebalShare": 0.66,
462+
"auraIncentivesPct": 0.3532,
463+
"balIncentivesPct": 0.179
464464
},
465465
{
466466
"feesCollected": 42204.24,
@@ -482,11 +482,11 @@
482482
"periodStart": 1769644800,
483483
"periodEnd": 1770854400,
484484
"bribeThreshold": 390,
485-
"auraIncentives": 5957.27,
486-
"balIncentives": 12529.01,
487-
"auravebalShare": 0.32,
488-
"auraIncentivesPct": 0.1412,
489-
"balIncentivesPct": 0.2969
485+
"auraIncentives": 9583.32,
486+
"balIncentives": 8902.96,
487+
"auravebalShare": 0.52,
488+
"auraIncentivesPct": 0.2271,
489+
"balIncentivesPct": 0.2109
490490
},
491491
{
492492
"feesCollected": 24064.52,
@@ -508,10 +508,10 @@
508508
"periodStart": 1770854400,
509509
"periodEnd": 1772064000,
510510
"bribeThreshold": 410,
511-
"auraIncentives": 5496.92,
512-
"balIncentives": 5487.9,
513-
"auravebalShare": 0.5,
514-
"auraIncentivesPct": 0.2284,
515-
"balIncentivesPct": 0.228
511+
"auraIncentives": 8383.21,
512+
"balIncentives": 2601.61,
513+
"auravebalShare": 0.76,
514+
"auraIncentivesPct": 0.3484,
515+
"balIncentivesPct": 0.1081
516516
}
517517
]

fee_allocator/votemarket_analytics.py

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,14 @@ def _find_matching_rounds(metadata: list, period_start: int, period_end: int) ->
2020
return [r["id"] for r in metadata if r["endVoting"] > period_start and r["endVoting"] <= period_end]
2121

2222

23-
def _aggregate_deposited_per_gauge(round_url_template: str, round_ids: List[int]) -> Dict[str, float]:
24-
deposited = {}
23+
def _aggregate_votes_per_gauge(round_url_template: str, round_ids: List[int]) -> Dict[str, float]:
24+
votes = {}
2525
for rid in round_ids:
2626
data = _fetch_json(round_url_template.format(round_id=rid))
2727
for gauge in data["analytics"]:
2828
addr = gauge["gauge"].lower()
29-
deposited[addr] = deposited.get(addr, 0) + gauge["totalDeposited"]
30-
return deposited
29+
votes[addr] = votes.get(addr, 0) + gauge["nonBlacklistedVotes"]
30+
return votes
3131

3232

3333
def get_aura_share_per_gauge(period_start: int, period_end: int) -> Dict[str, Decimal]:
@@ -37,16 +37,20 @@ def get_aura_share_per_gauge(period_start: int, period_end: int) -> Dict[str, De
3737
bal_round_ids = _find_matching_rounds(bal_metadata, period_start, period_end)
3838
aura_round_ids = _find_matching_rounds(aura_metadata, period_start, period_end)
3939

40+
if not bal_round_ids and not aura_round_ids:
41+
logger.info(f"VoteMarket: no rounds found for period {period_start}-{period_end}")
42+
return {}
43+
4044
logger.info(f"VoteMarket rounds for period {period_start}-{period_end}: bal={bal_round_ids} aura={aura_round_ids}")
4145

42-
bal_deposited = _aggregate_deposited_per_gauge(BALANCER_ROUND_URL, bal_round_ids)
43-
aura_deposited = _aggregate_deposited_per_gauge(VLAURA_ROUND_URL, aura_round_ids)
46+
bal_votes = _aggregate_votes_per_gauge(BALANCER_ROUND_URL, bal_round_ids)
47+
aura_votes = _aggregate_votes_per_gauge(VLAURA_ROUND_URL, aura_round_ids)
4448

4549
shares = {}
46-
all_gauges = set(bal_deposited) | set(aura_deposited)
50+
all_gauges = set(bal_votes) | set(aura_votes)
4751
for gauge in all_gauges:
48-
b = bal_deposited.get(gauge, 0)
49-
a = aura_deposited.get(gauge, 0)
52+
b = bal_votes.get(gauge, 0)
53+
a = aura_votes.get(gauge, 0)
5054
total = b + a
5155
shares[gauge] = Decimal(str(a / total)) if total > 0 else Decimal(0)
5256

0 commit comments

Comments
 (0)