From 039936722fd5788d6f7675c735fafb7471177fc7 Mon Sep 17 00:00:00 2001 From: Evgeny Svirsky Date: Fri, 5 Jun 2026 08:56:55 +0200 Subject: [PATCH] Adapt rate limits after disabling in-block staking rate limit --- pallets/subtensor/src/staking/order_swap.rs | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/pallets/subtensor/src/staking/order_swap.rs b/pallets/subtensor/src/staking/order_swap.rs index 98643caae6..00ddd71d10 100644 --- a/pallets/subtensor/src/staking/order_swap.rs +++ b/pallets/subtensor/src/staking/order_swap.rs @@ -47,10 +47,8 @@ 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 +134,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 +142,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 =