Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { formatIssuerDisplaySymbol, formatIssuerLabel } from 'uniswap/src/data/r

describe('formatIssuerDisplaySymbol', () => {
it('composes ondo suffix', () => {
expect(formatIssuerDisplaySymbol({ baseSymbol: 'TSLA', issuer: 'ondo', apiSymbol: 'TSLAON' })).toBe('TSLA.o')
expect(formatIssuerDisplaySymbol({ baseSymbol: 'TSLA', issuer: 'ondo', apiSymbol: 'TSLAON' })).toBe('TSLA.on')
})

it('falls back to api symbol for unknown issuers', () => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/** Maps issuer slug → display suffix (e.g. ondo → `.o` for `TSLA.o`). */
/** Maps issuer slug → display suffix (e.g. ondo → `.on` for `TSLA.on`). */
const ISSUER_DISPLAY_SUFFIX: Record<string, string> = {
ondo: 'o',
ondo: 'on',
backed: 'b',
superstate: 's',
xstocks: 'x',
Expand Down