From 9e47c73a7cdb4cbdc4711ee9605006fe1953e69e Mon Sep 17 00:00:00 2001 From: esser Date: Tue, 8 Sep 2026 18:50:45 +0800 Subject: [PATCH] fix(tokens): name the RWA assets after their on-chain symbol MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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) --- public/tokens/medge->usdc.svg | 30 ------------------- public/tokens/{mf_one.svg => mf-one.svg} | 0 .../{mf_one->usdc.svg => mf-onerdusdc.svg} | 0 .../{acred_> usdc.svg => srpacred_usdc.svg} | 0 .../{stac_> usdc.svg => srpstac_usdc.svg} | 0 5 files changed, 30 deletions(-) delete mode 100644 public/tokens/medge->usdc.svg rename public/tokens/{mf_one.svg => mf-one.svg} (100%) rename public/tokens/{mf_one->usdc.svg => mf-onerdusdc.svg} (100%) rename public/tokens/{acred_> usdc.svg => srpacred_usdc.svg} (100%) rename public/tokens/{stac_> usdc.svg => srpstac_usdc.svg} (100%) diff --git a/public/tokens/medge->usdc.svg b/public/tokens/medge->usdc.svg deleted file mode 100644 index ab28a13..0000000 --- a/public/tokens/medge->usdc.svg +++ /dev/null @@ -1,30 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/public/tokens/mf_one.svg b/public/tokens/mf-one.svg similarity index 100% rename from public/tokens/mf_one.svg rename to public/tokens/mf-one.svg diff --git a/public/tokens/mf_one->usdc.svg b/public/tokens/mf-onerdusdc.svg similarity index 100% rename from public/tokens/mf_one->usdc.svg rename to public/tokens/mf-onerdusdc.svg diff --git a/public/tokens/acred_> usdc.svg b/public/tokens/srpacred_usdc.svg similarity index 100% rename from public/tokens/acred_> usdc.svg rename to public/tokens/srpacred_usdc.svg diff --git a/public/tokens/stac_> usdc.svg b/public/tokens/srpstac_usdc.svg similarity index 100% rename from public/tokens/stac_> usdc.svg rename to public/tokens/srpstac_usdc.svg