Skip to content

Commit c5a7f51

Browse files
committed
use recycle alpha helper
1 parent 62ecfe1 commit c5a7f51

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

pallets/subtensor/src/coinbase/run_coinbase.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -120,9 +120,7 @@ impl<T: Config> Pallet<T> {
120120
);
121121
if let Ok(buy_swap_result_ok) = buy_swap_result {
122122
let bought_alpha = AlphaCurrency::from(buy_swap_result_ok.amount_paid_out);
123-
SubnetAlphaOut::<T>::mutate(*netuid_i, |total| {
124-
*total = total.saturating_sub(bought_alpha);
125-
});
123+
Self::recycle_subnet_alpha(*netuid_i, bought_alpha);
126124
}
127125
}
128126
}

0 commit comments

Comments
 (0)