Skip to content

Commit d1f6038

Browse files
authored
Merge pull request #1782 from opentensor/feat/uniswapv3-lp-updates-2025-06-24
Fix balancing of total alpha
2 parents aa1189b + 187310e commit d1f6038

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pallets/subtensor/src/staking/stake_utils.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -691,7 +691,7 @@ impl<T: Config> Pallet<T> {
691691
// Decrease Alpha outstanding.
692692
// TODO: Deprecate, not accurate in v3 anymore
693693
SubnetAlphaOut::<T>::mutate(netuid, |total| {
694-
*total = total.saturating_sub(alpha);
694+
*total = total.saturating_sub(swap_result.alpha_reserve_delta as u64);
695695
});
696696

697697
// Decrease tao reserves.

0 commit comments

Comments
 (0)