Skip to content

Commit

Permalink
clarify in comment
Browse files Browse the repository at this point in the history
  • Loading branch information
camfairchild committed Dec 3, 2024
1 parent 986d7c4 commit 6b52a02
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pallets/subtensor/src/staking/stake_ops.rs
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ impl<T: Config> Pallet<T> {
tao_staked = Self::alpha_to_tao(alpha_staked, netuid);
}

// Step 3: Update hotkey alpha for the specific subnet
// Step 3: Update hotkey staked_alpha for the specific subnet
// This increases the alpha associated with this hotkey-coldkey pair
StakedAlpha::<T>::mutate((hotkey, coldkey, netuid), |alpha| {
*alpha = alpha.saturating_add(alpha_staked);
Expand Down

0 comments on commit 6b52a02

Please sign in to comment.