check for unsettled and inorders in balances
This commit is contained in:
parent
106fab4af7
commit
1ff61d3318
|
@ -46,12 +46,15 @@ const BalancesTable = () => {
|
||||||
Math.abs(b.balance! * b.value[0].uiPrice) -
|
Math.abs(b.balance! * b.value[0].uiPrice) -
|
||||||
Math.abs(a.balance! * a.value[0].uiPrice)
|
Math.abs(a.balance! * a.value[0].uiPrice)
|
||||||
)
|
)
|
||||||
.filter(
|
.filter((c) => {
|
||||||
(c) =>
|
return (
|
||||||
Math.abs(
|
Math.abs(
|
||||||
floorToDecimal(c.balance!, c.value[0].mintDecimals).toNumber()
|
floorToDecimal(c.balance!, c.value[0].mintDecimals).toNumber()
|
||||||
) > 0
|
) > 0 ||
|
||||||
|
spotBalances[c.value[0].mint.toString()]?.unsettled > 0 ||
|
||||||
|
spotBalances[c.value[0].mint.toString()]?.inOrders > 0
|
||||||
)
|
)
|
||||||
|
})
|
||||||
: rawBanks
|
: rawBanks
|
||||||
|
|
||||||
return sortedBanks
|
return sortedBanks
|
||||||
|
|
Loading…
Reference in New Issue