mirror of
https://github.com/Xahau/xahau.js.git
synced 2025-11-26 23:25:49 +00:00
Fix: isSameIssue() should check counterparty
This commit is contained in:
@@ -52,7 +52,7 @@ function getBookOffers(connection: Connection, account: string,
|
|||||||
}
|
}
|
||||||
|
|
||||||
function isSameIssue(a: Amount, b: Amount) {
|
function isSameIssue(a: Amount, b: Amount) {
|
||||||
return a.currency === b.currency && a.issuer === b.issuer
|
return a.currency === b.currency && a.counterparty === b.counterparty
|
||||||
}
|
}
|
||||||
|
|
||||||
function directionFilter(direction: string, order: OrderbookItem) {
|
function directionFilter(direction: string, order: OrderbookItem) {
|
||||||
|
|||||||
Reference in New Issue
Block a user