Updated on 2026-08-14
This commit is contained in:
commit
fe3c45cd42
1 changed files with 1 additions and 1 deletions
|
|
@ -171,7 +171,7 @@ internal class StakingInfoNotificationsFactory(
|
|||
val exitRequirements = yield.args.exit?.args?.get(Yield.Args.ArgType.AMOUNT) ?: return
|
||||
|
||||
val amountLeft = maxAmount - actionAmount
|
||||
val isNotEnoughLeft = !amountLeft.isZero() && amountLeft < exitRequirements.minimum
|
||||
val isNotEnoughLeft = !amountLeft.isZero() && amountLeft < exitRequirements.minimum.orZero()
|
||||
|
||||
if (exitRequirements.required && isNotEnoughLeft) {
|
||||
add(StakingNotification.Warning.LowStakedBalance)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue