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

Commit a68b357

Browse files
committed
use correct config for core alliance pool
1 parent ee15bbb commit a68b357

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

fee_allocator/accounting/core_pools.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,8 @@ def _core_pool_allocation(self) -> Decimal:
133133

134134
def _total_to_incentives_usd(self) -> Decimal:
135135
core_fees = self._core_pool_allocation()
136-
to_distribute_to_incentives = core_fees * (self.chain.chains.fee_config.vote_incentive_pct if not self.is_alliance_non_core_pool else self.alliance_fee_config.vote_incentive_pct)
136+
vote_incentive_pct = self.chain.chains.alliance_config.alliance_fee_allocations["core"].vote_incentive_pct if self.is_alliance_pool else self.chain.chains.fee_config.vote_incentive_pct
137+
to_distribute_to_incentives = core_fees * vote_incentive_pct
137138
return self.earned_fee_share_of_chain_usd * to_distribute_to_incentives
138139

139140
def _to_aura_incentives_usd(self) -> Decimal:
@@ -167,4 +168,4 @@ def _to_partner_usd(self) -> Decimal:
167168
self.earned_fee_share_of_chain_usd
168169
* self.chain.total_earned_fees_usd_twap
169170
* self.alliance_fee_config.partner_share_pct
170-
) if self.is_alliance_pool else Decimal(0)
171+
) if self.is_alliance_pool else Decimal(0)

0 commit comments

Comments
 (0)