From dcc419fdd32a8cc0cbf89761013f6dc720bb7faa Mon Sep 17 00:00:00 2001 From: 0xripleys <0xripleys@solend.fi> Date: Fri, 18 Oct 2024 06:18:00 -0400 Subject: [PATCH] suggestion 3 --- contracts/sources/storage.move | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contracts/sources/storage.move b/contracts/sources/storage.move index c3e0787..b992309 100644 --- a/contracts/sources/storage.move +++ b/contracts/sources/storage.move @@ -375,7 +375,7 @@ module liquid_staking::storage { let target_unstake_sui_amount = max(target_unstake_sui_amount, MIN_STAKE_THRESHOLD); let staked_sui_amount = validator_info.inactive_stake.borrow().staked_sui_amount(); - let staked_sui = if (staked_sui_amount <= target_unstake_sui_amount + MIN_STAKE_THRESHOLD) { + let staked_sui = if (staked_sui_amount < target_unstake_sui_amount + MIN_STAKE_THRESHOLD) { self.take_from_inactive_stake(validator_index) } else {