diff --git a/CHANGELOG.md b/CHANGELOG.md index 0d9a105a..4f351ea7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] - GUI: A warning will be display for makers running `<3.0.0`. Versions `2.*.*` are deprecated and do not support some essential protocols such as the new cooperative Monero redeem protocol. If you are a maker and are having issues with upgrading, please contact the developer on Matrix. +- GUI: Clearly mark makers that have no available funds as having no available funds. ## [3.0.3] - 2025-09-24 diff --git a/src-gui/src/renderer/components/pages/swap/swap/init/deposit_and_choose_offer/MakerOfferItem.tsx b/src-gui/src/renderer/components/pages/swap/swap/init/deposit_and_choose_offer/MakerOfferItem.tsx index 1dc38bbd..035c1c85 100644 --- a/src-gui/src/renderer/components/pages/swap/swap/init/deposit_and_choose_offer/MakerOfferItem.tsx +++ b/src-gui/src/renderer/components/pages/swap/swap/init/deposit_and_choose_offer/MakerOfferItem.tsx @@ -18,11 +18,13 @@ export default function MakerOfferItem({ quoteWithAddress: QuoteWithAddress; }) { const { multiaddr, peer_id, quote, version } = quoteWithAddress; + const isOutOfLiquidity = quote.max_quantity == 0; return ( + + {isOutOfLiquidity && ( + + + Maker has no available funds + + + )} ); } diff --git a/src-gui/src/utils/sortUtils.ts b/src-gui/src/utils/sortUtils.ts index 5ba942b8..9ab03d74 100644 --- a/src-gui/src/utils/sortUtils.ts +++ b/src-gui/src/utils/sortUtils.ts @@ -39,10 +39,10 @@ export function sortMakerApprovals(list: SortableQuoteWithAddress[]) { // Prefer makers that have a 'version' attribute // If we don't have a version, we cannot clarify if it's outdated or not (m) => (m.version ? 0 : 1), - // Prefer makers that are not outdated - (m) => (isMakerVersionOutdated(m.version) ? 1 : 0), // Prefer makers with a minimum quantity > 0 (m) => ((m.quote.min_quantity ?? 0) > 0 ? 0 : 1), + // Prefer makers that are not outdated + (m) => (isMakerVersionOutdated(m.version) ? 1 : 0), // Prefer approvals over actual quotes (m) => (m.request_id ? 0 : 1), // Prefer makers with a lower price