diff --git a/packages/whale-api-client/src/api/address.ts b/packages/whale-api-client/src/api/address.ts index b7d2fd1ee..9731c7bc8 100644 --- a/packages/whale-api-client/src/api/address.ts +++ b/packages/whale-api-client/src/api/address.ts @@ -73,6 +73,7 @@ export interface AddressToken { id: string amount: string symbol: string + displaySymbol: string symbolKey: string name: string isDAT: boolean diff --git a/src/module.api/address.controller.e2e.ts b/src/module.api/address.controller.e2e.ts index 41ccd08e3..fdde805ad 100644 --- a/src/module.api/address.controller.e2e.ts +++ b/src/module.api/address.controller.e2e.ts @@ -477,6 +477,7 @@ describe('listTokens', () => { id: '6', amount: '10.00000000', symbol: 'F', + displaySymbol: 'dF', symbolKey: 'F', name: 'F', isDAT: true, diff --git a/src/module.api/address.controller.spec.ts b/src/module.api/address.controller.spec.ts index 78a814a39..cf0eadbec 100644 --- a/src/module.api/address.controller.spec.ts +++ b/src/module.api/address.controller.spec.ts @@ -75,6 +75,7 @@ describe('listTokens', () => { id: '6', amount: '10.00000000', symbol: 'F', + displaySymbol: 'dF', symbolKey: 'F', name: 'F', isDAT: true, diff --git a/src/module.api/address.controller.ts b/src/module.api/address.controller.ts index 58cb2e869..1c20a29db 100644 --- a/src/module.api/address.controller.ts +++ b/src/module.api/address.controller.ts @@ -119,6 +119,7 @@ function mapAddressToken (id: string, tokenInfo: TokenInfo, value: BigNumber): A symbolKey: tokenInfo.symbolKey, name: tokenInfo.name, isDAT: tokenInfo.isDAT, - isLPS: tokenInfo.isLPS + isLPS: tokenInfo.isLPS, + displaySymbol: tokenInfo.isDAT && tokenInfo.symbol !== 'DFI' && !tokenInfo.isLPS ? `d${tokenInfo.symbol}` : tokenInfo.symbol } }