Skip to content

fix(tokens): name the RWA assets after their on-chain symbol - #319

Merged
apeir99n merged 1 commit into
mainfrom
fix/token-icon-symbol-names
Sep 8, 2026
Merged

apeir99n merged 1 commit into
mainfrom
fix/token-icon-symbol-names

Conversation

@essserrr

@essserrr essserrr commented Sep 8, 2026

Copy link
Copy Markdown
Collaborator

The SDK rewrites a redemption phantom's symbol for display — TokensMeta.renameRedemptionPhantoms turns it into "${source} -> ${target}", but only when it knows all three addresses. Until then the token reports what its contract says, and that is the name an asset can always be found by. Read off the RWA fork: srpACRED_USDC, srpSTAC_USDC, mF-ONErdUSDC — which is the convention the repo started with, before mf-onerdusdc.svg was dropped as an unused alias.

So the assets take the contract's spelling, and ui-kit maps the rewritten name onto it. mf_one.svg becomes mf-one.svg for the same reason: mF-ONE's own symbol carries a dash, the underscore was an artifact of the old resolver.

medge->usdc.svg goes: medgerdusdc.svg already holds that artwork byte for byte, under the contract's name.

Checked against every symbol source at once — the mainnet SDK, the backend, and the RWA and Securitize forks. mGLOBAL and mGLOBAL -> USDC have no artwork at all; no rename reaches that one.

The SDK rewrites a redemption phantom's symbol for display —
`TokensMeta.renameRedemptionPhantoms` turns it into `"${source} -> ${target}"`,
but only when it knows all three addresses. Until then the token reports what
its contract says, and that is the name an asset can always be found by. Read
off the RWA fork: `srpACRED_USDC`, `srpSTAC_USDC`, `mF-ONErdUSDC` — which is the
convention the repo started with, before `mf-onerdusdc.svg` was dropped as an
unused alias.

So the assets take the contract's spelling, and ui-kit maps the rewritten name
onto it. `mf_one.svg` becomes `mf-one.svg` for the same reason: mF-ONE's own
symbol carries a dash, the underscore was an artifact of the old resolver.

`medge->usdc.svg` goes: `medgerdusdc.svg` already holds that artwork byte for
byte, under the contract's name.

Checked against every symbol source at once — the mainnet SDK, the backend, and
the RWA and Securitize forks. `mGLOBAL` and `mGLOBAL -> USDC` have no artwork at
all; no rename reaches that one.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@apeir99n
apeir99n merged commit 1f5b1b1 into main Sep 8, 2026
2 checks passed
@apeir99n
apeir99n deleted the fix/token-icon-symbol-names branch September 8, 2026 11:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants