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.
2 parents f06e95e + 85f72d9 commit 4dc5f00Copy full SHA for 4dc5f00
pallets/subtensor/src/staking/stake_utils.rs
@@ -559,6 +559,15 @@ impl<T: Config> Pallet<T> {
559
alpha_share_pool.sim_update_value_for_one(amount as i64)
560
}
561
562
+ pub fn try_increase_stake_for_hotkey_and_coldkey_on_subnet(
563
+ hotkey: &T::AccountId,
564
+ netuid: u16,
565
+ amount: u64,
566
+ ) -> bool {
567
+ let mut alpha_share_pool = Self::get_alpha_share_pool(hotkey.clone(), netuid);
568
+ alpha_share_pool.sim_update_value_for_one(amount as i64)
569
+ }
570
+
571
/// Sell shares in the hotkey on a given subnet
572
///
573
/// The function updates share totals given current prices.
0 commit comments