Skip to content

Commit

Permalink
try fix
Browse files Browse the repository at this point in the history
  • Loading branch information
4meta5 committed Feb 13, 2025
1 parent 5683899 commit 9de014b
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions runtime/src/migrations/fix_pool_members.rs
Original file line number Diff line number Diff line change
Expand Up @@ -77,11 +77,11 @@ where
}

// Ensure TVL does not go negative
if pool.points >= *removed_stake {
pool.points -= *removed_stake;
} else {
pool.points = Zero::zero();
}
// if pool.points >= *removed_stake {
// pool.points -= *removed_stake;
// } else {
// pool.points = Zero::zero();
// }
TotalValueLocked::<T>::mutate(|x| *x -= *removed_stake);
}
});
Expand Down

0 comments on commit 9de014b

Please sign in to comment.