Skip to content

Commit 7e7dbd7

Browse files
committed
revert set stakes
1 parent 6377c95 commit 7e7dbd7

File tree

3 files changed

+0
-193
lines changed

3 files changed

+0
-193
lines changed

pallets/subtensor/src/macros/dispatches.rs

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1064,24 +1064,5 @@ mod dispatches {
10641064
amount_moved,
10651065
)
10661066
}
1067-
1068-
/// Sets the stakes in all netuids according to the proportion defined
1069-
///
1070-
/// # Arguments
1071-
/// * `origin` - The origin of the transaction, which must be signed by the `origin_hotkey`.
1072-
/// * `hotkey` - The hotkey used to stake token in different netuid.
1073-
/// * `stakes` - The vector of stake netuid and stke proporation
1074-
/// # Returns
1075-
/// * `DispatchResult` - Indicates the success or failure of the operation.
1076-
///
1077-
#[pallet::call_index(76)]
1078-
#[pallet::weight((Weight::from_parts(3_000_000, 0).saturating_add(T::DbWeight::get().writes(1)), DispatchClass::Operational, Pays::No))]
1079-
pub fn set_stakes(
1080-
origin: OriginFor<T>,
1081-
hotkey: T::AccountId,
1082-
stakes: Vec<(u16, u64)>,
1083-
) -> DispatchResult {
1084-
Self::do_set_stake(origin, hotkey, stakes)
1085-
}
10861067
}
10871068
}

pallets/subtensor/src/staking/mod.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,4 @@ pub mod lock;
99
pub mod move_stake;
1010
pub mod remove_stake;
1111
pub mod set_children;
12-
pub mod set_stakes;
1312
pub mod stake_ops;

pallets/subtensor/src/staking/set_stakes.rs

Lines changed: 0 additions & 173 deletions
This file was deleted.

0 commit comments

Comments
 (0)