Skip to content

Commit

Permalink
Fix self delegation limit to be not inclusive
Browse files Browse the repository at this point in the history
  • Loading branch information
tumppi committed Nov 15, 2023
1 parent a42f7d0 commit 5a0311c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/modals/DelegateFundsModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ export default function DelegateFundsModal({
!isOwner &&
getSelfDelegationFraction(operator, {
offset: finalValueDecimals,
}).isLessThan(minimumSelfDelegation)
}).isLessThanOrEqualTo(minimumSelfDelegation)
)
}, [operator, minimumSelfDelegation, finalValueDecimals, isOwner])

Expand Down Expand Up @@ -220,7 +220,7 @@ export default function DelegateFundsModal({
<>
{tooLowSelfDelegationWithNewAmount && (
<Alert type="error" title="Amount too high">
This operator can currently only accept{' '}
This operator can currently only accept less than{' '}
<strong>
{maxAmount.toString()} <SponsorshipPaymentTokenName />
</strong>{' '}
Expand Down

0 comments on commit 5a0311c

Please sign in to comment.