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

Commit 5b1320f

Browse files
authored
Merge pull request #255 from BalancerMaxis/dynamic-aura-threshold
use dynamic aura threshold
2 parents dbff3ab + f61aef9 commit 5b1320f

2 files changed

Lines changed: 13 additions & 5 deletions

File tree

fee_allocator/accounting/models.py

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
1-
from pydantic import BaseModel, validator
1+
from pydantic import BaseModel, model_validator, validator
22
from decimal import Decimal
33
from typing import Dict, NewType, Optional
44

5+
from bal_tools.ecosystem import HiddenHand
6+
57

68
Pools = Dict[NewType("PoolId", str), NewType("Symbol", str)]
79
InputFees = Dict[NewType("CorePoolChainName", str), NewType("FeesCollected", int)]
@@ -24,19 +26,24 @@ class GlobalFeeConfig(BaseModel):
2426
min_aura_incentive: int
2527
min_existing_aura_incentive: int
2628
min_vote_incentive_amount: int
27-
29+
2830
# Core pool fee splits
2931
vebal_share_pct: Decimal
3032
dao_share_pct: Decimal
3133
vote_incentive_pct: Decimal
32-
34+
3335
# Non-core pool fee splits
3436
noncore_vebal_share_pct: Decimal
3537
noncore_dao_share_pct: Decimal
36-
38+
3739
# Beets fee split (https://forum.balancer.fi/t/bip-800-deploy-balancer-v3-on-op-mainnet)
3840
beets_share_pct: Decimal
3941

42+
@model_validator(mode="after")
43+
def set_dynamic_min_aura_incentive(self):
44+
self.min_aura_incentive = int(HiddenHand().get_min_aura_incentive())
45+
return self
46+
4047

4148
class AlliancePool(BaseModel):
4249
"""

tests/conftest.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,5 +54,6 @@ def allocator(fee_period):
5454
input_fees,
5555
fee_period,
5656
cache_dir=Path("tests/cache"),
57-
use_cache=True
57+
use_cache=True,
58+
protocol_version="v3"
5859
)

0 commit comments

Comments
 (0)