Skip to content

Commit aeef64b

Browse files
committed
Fix lock flow issue when locking exactly 0.01
1 parent 674b1d4 commit aeef64b

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/components/modal/useModal.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ export function useModal() {
4444
} else {
4545
errorMsg = JSON.stringify(error)
4646
}
47-
errorMsg = trimToLength(errorMsg, 100)
47+
errorMsg = trimToLength(errorMsg, 80)
4848

4949
const modalProps: ModalProps = {
5050
head,

src/features/lock/lockToken.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ export function getLockActionTxPlan(
230230
amountRemaining = amountRemaining.sub(adjustedAmount)
231231
}
232232
// If pending relocks didn't cover it
233-
if (amountRemaining.gt(MIN_LOCK_AMOUNT)) {
233+
if (amountRemaining.gte(MIN_LOCK_AMOUNT)) {
234234
txs.push({ type: TransactionType.LockCelo, amountInWei: amountRemaining.toString() })
235235
}
236236
return txs

0 commit comments

Comments
 (0)