mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2025-12-20 19:06:43 -05:00
feat(gui): Clearly mark makers that have no available funds as having no available funds
This commit is contained in:
parent
59f4f8e164
commit
3e86f40448
3 changed files with 34 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue