Skip to content

Commit

Permalink
Update pallets/subtensor/src/staking/transfer_stake.rs
Browse files Browse the repository at this point in the history
Co-authored-by: Cameron Fairchild <[email protected]>
  • Loading branch information
bdmason and camfairchild authored Jan 19, 2025
1 parent 93d790c commit 0bf1309
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions pallets/subtensor/src/staking/transfer_stake.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,8 @@ impl<T: Config> Pallet<T> {
);

// --- 4. Get the current alpha stake for the origin hotkey-coldkey pair in the origin subnet
let origin_alpha =
Self::get_stake_for_hotkey_and_coldkey_on_subnet(&hotkey, &coldkey, netuid);
ensure!(
alpha_amount <= origin_alpha,
Self::has_enough_stake_on_subnet(&hotkey, &coldkey, netuid, alpha_amount)
Error::<T>::NotEnoughStakeToWithdraw
);

Expand Down

0 comments on commit 0bf1309

Please sign in to comment.