From 0be8670896f8028495b05b26b19d481210576798 Mon Sep 17 00:00:00 2001 From: jalbrekt85 Date: Tue, 2 Dec 2025 16:23:00 -0600 Subject: [PATCH 1/2] use new aura threshold method --- fee_allocator/accounting/models.py | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/fee_allocator/accounting/models.py b/fee_allocator/accounting/models.py index 6b83268f..c7306632 100644 --- a/fee_allocator/accounting/models.py +++ b/fee_allocator/accounting/models.py @@ -1,7 +1,9 @@ -from pydantic import BaseModel, validator +from pydantic import BaseModel, model_validator, validator from decimal import Decimal from typing import Dict, NewType, Optional +from bal_tools.ecosystem import HiddenHand + Pools = Dict[NewType("PoolId", str), NewType("Symbol", str)] InputFees = Dict[NewType("CorePoolChainName", str), NewType("FeesCollected", int)] @@ -24,19 +26,24 @@ class GlobalFeeConfig(BaseModel): min_aura_incentive: int min_existing_aura_incentive: int min_vote_incentive_amount: int - + # Core pool fee splits vebal_share_pct: Decimal dao_share_pct: Decimal vote_incentive_pct: Decimal - + # Non-core pool fee splits noncore_vebal_share_pct: Decimal noncore_dao_share_pct: Decimal - + # Beets fee split (https://forum.balancer.fi/t/bip-800-deploy-balancer-v3-on-op-mainnet) beets_share_pct: Decimal + @model_validator(mode="after") + def set_dynamic_min_aura_incentive(self): + self.min_aura_incentive = int(HiddenHand().get_min_aura_incentive()) + return self + class AlliancePool(BaseModel): """ From f61aef9e1f73eb35079226d08bc32454fbeb2729 Mon Sep 17 00:00:00 2001 From: jalbrekt85 Date: Wed, 3 Dec 2025 11:07:10 -0600 Subject: [PATCH 2/2] test on v3 --- tests/conftest.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/conftest.py b/tests/conftest.py index 856aa499..5f41e9cc 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -54,5 +54,6 @@ def allocator(fee_period): input_fees, fee_period, cache_dir=Path("tests/cache"), - use_cache=True + use_cache=True, + protocol_version="v3" )