diff --git a/frontend/components/transaction/BidTransactionTable.vue b/frontend/components/transaction/BidTransactionTable.vue index 056fe3ee7..f3e66f384 100644 --- a/frontend/components/transaction/BidTransactionTable.vue +++ b/frontend/components/transaction/BidTransactionTable.vue @@ -49,6 +49,12 @@ Unknown +
+
Minimum leftover
+
+ +
+
Auction debt @@ -65,24 +71,6 @@ Unknown
-
- Minimum bid - - -
The amount to bid
@@ -153,7 +141,7 @@ export default Vue.extend({ return !!this.transactionBidAmount?.isNaN(); }, isTooSmallToPartiallyTake(): boolean { - return this.auctionTransaction.debtDAI.isLessThan(this.auctionTransaction.minimumBidDai.multipliedBy(2)); + return this.auctionTransaction.debtDAI.isLessThanOrEqualTo(this.auctionTransaction.minimumBidDai); }, }, watch: { diff --git a/frontend/components/utils/BidInput.vue b/frontend/components/utils/BidInput.vue index 5b2baa21d..72be1e873 100644 --- a/frontend/components/utils/BidInput.vue +++ b/frontend/components/utils/BidInput.vue @@ -62,12 +62,10 @@ export default Vue.extend({ return; } const bidTopLimit = maxValue?.minus(minValue); - if (currentValue?.isGreaterThan(bidTopLimit) || currentValue?.isLessThan(minValue)) { - throw new Error( - `The value can only be between ${minValue.toFixed(2)} and ${bidTopLimit.toFixed(2)} or the maximum` - ); + if (currentValue?.isGreaterThan(bidTopLimit)) { + throw new Error(`The value can only be less than ${bidTopLimit.toFixed(2)} or the maximum`); } - if (maxValue?.isLessThan(minValue.multipliedBy(2))) { + if (maxValue?.isLessThan(minValue)) { throw new Error('The value can not be changed since the leftover part will be too small'); } },