From b82e392cf890038b5ccfaa1bb316c5710e90feef Mon Sep 17 00:00:00 2001 From: open-junius Date: Fri, 5 Jun 2026 09:59:43 +0800 Subject: [PATCH 1/2] commit Cargo.lock --- pallets/subtensor/src/staking/order_swap.rs | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/pallets/subtensor/src/staking/order_swap.rs b/pallets/subtensor/src/staking/order_swap.rs index 98643caae6..bac78742eb 100644 --- a/pallets/subtensor/src/staking/order_swap.rs +++ b/pallets/subtensor/src/staking/order_swap.rs @@ -47,10 +47,7 @@ impl OrderSwapInterface for Pallet { ); } let alpha_out = - Self::stake_into_subnet(hotkey, coldkey, netuid, tao_amount, amm_limit, false, false)?; - if validate { - Self::set_stake_operation_limit(hotkey, coldkey, netuid); - } + Self::stake_into_subnet(hotkey, coldkey, netuid, tao_amount, amm_limit, false)?; Ok(alpha_out) } @@ -136,7 +133,6 @@ impl OrderSwapInterface for Pallet { TaoBalance::from(tao_equiv) >= DefaultMinStake::::get(), Error::::AmountTooLow ); - Self::ensure_stake_operation_limit_not_exceeded(from_hotkey, from_coldkey, netuid)?; Self::ensure_available_to_unstake(from_coldkey, netuid, amount)?; } @@ -145,7 +141,6 @@ impl OrderSwapInterface for Pallet { Self::hotkey_account_exists(to_hotkey), Error::::HotKeyAccountNotExists ); - Self::set_stake_operation_limit(to_hotkey, to_coldkey, netuid); } let available = From 440b99e7ab93786eb5eec0d52c8f14df21a13c44 Mon Sep 17 00:00:00 2001 From: open-junius Date: Fri, 5 Jun 2026 10:05:07 +0800 Subject: [PATCH 2/2] bump version --- runtime/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runtime/src/lib.rs b/runtime/src/lib.rs index a709b8a068..0be1abb936 100644 --- a/runtime/src/lib.rs +++ b/runtime/src/lib.rs @@ -278,7 +278,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion { // `spec_version`, and `authoring_version` are the same between Wasm and native. // This value is set to 100 to notify Polkadot-JS App (https://polkadot.js.org/apps) to use // the compatible custom types. - spec_version: 416, + spec_version: 417, impl_version: 1, apis: RUNTIME_API_VERSIONS, transaction_version: 1,