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

Commit 5aeee01

Browse files
committed
remove commented code for calculating original fee share
1 parent 254712e commit 5aeee01

1 file changed

Lines changed: 0 additions & 12 deletions

File tree

fee_allocator/fee_allocator.py

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -85,14 +85,6 @@ def redistribute_fees(self):
8585
"""
8686
min_amount = self.run_config.fee_config.min_vote_incentive_amount
8787

88-
# for chain in self.run_config.all_chains:
89-
# total_earned_fees = sum(p.total_earned_fees_usd_twap for p in chain.core_pools)
90-
# for pool in chain.core_pools:
91-
# if total_earned_fees > 0:
92-
# pool.original_earned_fee_share = pool.total_earned_fees_usd_twap / total_earned_fees
93-
# else:
94-
# pool.original_earned_fee_share = Decimal(0)
95-
9688
for chain in self.run_config.all_chains:
9789
pools_to_redistribute = [p for p in chain.core_pools if p.total_to_incentives_usd < min_amount]
9890
pools_to_receive = [p for p in chain.core_pools if p.total_to_incentives_usd >= min_amount]
@@ -117,10 +109,6 @@ def redistribute_fees(self):
117109
pool.to_aura_incentives_usd += total if pool.is_alliance_pool else total * self.run_config.aura_vebal_share
118110
pool.to_bal_incentives_usd += Decimal(0) if pool.is_alliance_pool else total * (1 - self.run_config.aura_vebal_share)
119111

120-
# for pool in chain.core_pools:
121-
# pool.to_dao_usd = pool.original_earned_fee_share * chain.fees_collected * self.run_config.fee_config.dao_share_pct
122-
# pool.to_vebal_usd = pool.original_earned_fee_share * chain.fees_collected * self.run_config.fee_config.vebal_share_pct
123-
124112
self._handle_aura_min(buffer=0.25)
125113
self._handle_aura_min()
126114
self._filter_dusty_bal_incentives()

0 commit comments

Comments
 (0)