mirror of
https://github.com/bitcoin-s/bitcoin-s.git
synced 2025-01-19 14:43:57 +01:00
Pretty print PnL in table view (#3400)
This commit is contained in:
parent
19fb1cf17a
commit
f20cdf667c
@ -91,7 +91,8 @@ class DLCTableView(model: DLCPaneModel) {
|
||||
cellValueFactory = { status =>
|
||||
status.value match {
|
||||
case closed: ClosedDLCStatus =>
|
||||
new StringProperty(status, "PNL", s"${closed.pnl}")
|
||||
val amt = GUIUtil.numberFormatter.format(closed.pnl.satoshis.toLong)
|
||||
new StringProperty(status, "PNL", s"$amt sats")
|
||||
case _: BroadcastedDLCStatus | _: AcceptedDLCStatus | _: Offered =>
|
||||
new StringProperty(status, "PNL", "In progress")
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user