Skip to content

Commit

Permalink
Update pallets/subtensor/src/utils.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
camfairchild authored Jul 16, 2024
1 parent 0fbcc18 commit ea2c952
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pallets/subtensor/src/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@ impl<T: Config> Pallet<T> {
let prev_total = TotalSubnetLocked::<T>::get();
let prev = SubnetLocked::<T>::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::<T>::put(prev_total.saturating_sub(prev).saturating_add(amount));

// Finally, set the new amount
Expand Down

0 comments on commit ea2c952

Please sign in to comment.