Skip to content

Commit b021c56

Browse files
committed
Fix remove_stake_full_limit
1 parent 87fa1dc commit b021c56

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pallets/subtensor/src/benchmarks.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1346,13 +1346,13 @@ mod pallet_benchmarks {
13461346
hotkey.clone()
13471347
));
13481348

1349-
// Read current price and set limit price 0.1% higher, which is certainly getting hit
1350-
// by swapping 100 TAO
1349+
// Read current price and set limit price 50% higher, which is not getting hit
1350+
// by swapping 1 TAO
13511351
let current_price = T::SwapInterface::current_alpha_price(netuid);
13521352
let limit = current_price
13531353
.saturating_mul(U64F64::saturating_from_num(1_001_000_000))
13541354
.saturating_to_num::<u64>();
1355-
let u64_staked_amt = 100_000_000_000;
1355+
let u64_staked_amt = 1_000_000_000;
13561356
Subtensor::<T>::add_balance_to_coldkey_account(&coldkey.clone(), u64_staked_amt);
13571357

13581358
assert_ok!(Subtensor::<T>::add_stake(

0 commit comments

Comments
 (0)