We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 95d2d53 commit bbc542dCopy full SHA for bbc542d
pallets/subtensor/src/staking/stake_utils.rs
@@ -573,7 +573,7 @@ impl<T: Config> Pallet<T> {
573
///
574
/// Updates TaoIn, AlphaIn, and AlphaOut
575
pub fn swap_alpha_for_tao(netuid: u16, alpha: u64) -> u64 {
576
- if let Some(tao) = Self::sim_swap_tao_for_alpha(netuid, alpha) {
+ if let Some(tao) = Self::sim_swap_alpha_for_tao(netuid, alpha) {
577
// Step 4: Increase Alpha reserves.
578
SubnetAlphaIn::<T>::mutate(netuid, |total| {
579
*total = total.saturating_add(alpha);
0 commit comments