Skip to content

Commit

Permalink
keep core.ActiveOrders
Browse files Browse the repository at this point in the history
Signed-off-by: Philemon Ukane <[email protected]>
  • Loading branch information
ukane-philemon committed Nov 19, 2024
1 parent d4b7aad commit 81cf464
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions libwallet/dex_interface.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ type DEXClient interface {
ExportSeed(pw []byte) (string, error)
SyncBook(dex string, base, quote uint32) (*orderbook.OrderBook, core.BookFeed, error)
Orders(filter *core.OrderFilter) ([]*core.Order, error)
ActiveOrders() (map[string][]*core.Order, map[string][]*core.InFlightOrder, error)
Active() bool
Trade(pw []byte, form *core.TradeForm) (*core.Order, error)
// TradeAsync is like Trade but a temporary order is returned before order
Expand Down
2 changes: 1 addition & 1 deletion ui/page/root/home_page.go
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ func (hp *HomePage) initDEX() {
expiredBonds = append(expiredBonds, xc.Auth.ExpiredBonds...)
}

if len(activeOrders) == 0 && len(expiredBonds) == 0 {
if !dexClient.Active() && len(expiredBonds) == 0 {
return // nothing to do
}

Expand Down

0 comments on commit 81cf464

Please sign in to comment.