File tree Expand file tree Collapse file tree 3 files changed +12
-0
lines changed Expand file tree Collapse file tree 3 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -69,6 +69,12 @@ const AccountSummary: React.FC = () => {
69
69
< span > { l ( 'accountStatus' ) } </ span >
70
70
< StatusBadge pending = { account . isPending } > { account . stateLabel } </ StatusBadge >
71
71
</ SummaryItem >
72
+ < SummaryItem >
73
+ < span > { l ( 'traderKey' ) } </ span >
74
+ < Tip overlay = { account . traderKey } capitalize = { false } >
75
+ < span > { account . traderKeyEllipsed } </ span >
76
+ </ Tip >
77
+ </ SummaryItem >
72
78
< SummaryItem >
73
79
< span > { l ( 'fundingTxn' ) } </ span >
74
80
< Tip overlay = { account . fundingTxnId } capitalize = { false } >
Original file line number Diff line number Diff line change 95
95
"cmps.pool.account.AccountSummary.expiresIn" : " Expires in" ,
96
96
"cmps.pool.account.AccountSummary.expiresHeight" : " {{remaining}} blocks (Height #{{height}})" ,
97
97
"cmps.pool.account.AccountSummary.accountStatus" : " Account Status" ,
98
+ "cmps.pool.account.AccountSummary.traderKey" : " Trader Key" ,
98
99
"cmps.pool.account.AccountSummary.fundingTxn" : " Funding Transaction" ,
99
100
"cmps.pool.account.AccountSummary.currentBalance" : " Current Balance" ,
100
101
"cmps.pool.account.AccountSummary.openOrdersCount" : " Open Orders" ,
Original file line number Diff line number Diff line change @@ -22,6 +22,11 @@ export default class Account {
22
22
this . update ( poolAccount ) ;
23
23
}
24
24
25
+ /** the first and last 6 chars of the trader key */
26
+ get traderKeyEllipsed ( ) {
27
+ return ellipseInside ( this . traderKey , 4 ) ;
28
+ }
29
+
25
30
/** the first and last 6 chars of the funding txn id */
26
31
get fundingTxnIdEllipsed ( ) {
27
32
return ellipseInside ( this . fundingTxnId , 4 ) ;
You can’t perform that action at this time.
0 commit comments