Skip to content

Commit

Permalink
suggestion 3
Browse files Browse the repository at this point in the history
  • Loading branch information
0xripleys committed Oct 18, 2024
1 parent cbd2f94 commit dcc419f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contracts/sources/storage.move
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit dcc419f

Please sign in to comment.