From ea2c952cf2323a7ae4f7d255372f7cccfcc39a63 Mon Sep 17 00:00:00 2001 From: Cameron Fairchild Date: Tue, 16 Jul 2024 09:33:23 -0400 Subject: [PATCH] Update pallets/subtensor/src/utils.rs --- pallets/subtensor/src/utils.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pallets/subtensor/src/utils.rs b/pallets/subtensor/src/utils.rs index 00648258a..74ca46ed2 100644 --- a/pallets/subtensor/src/utils.rs +++ b/pallets/subtensor/src/utils.rs @@ -327,7 +327,7 @@ impl Pallet { let prev_total = TotalSubnetLocked::::get(); let prev = SubnetLocked::::get(netuid); - // Deduct the prev amount and add the new amount to the total + // Deduct the previous amount and add the new amount to the total TotalSubnetLocked::::put(prev_total.saturating_sub(prev).saturating_add(amount)); // Finally, set the new amount