Skip to content

fix(tokens): add target-first redemption name aliases - #318

Merged
apeir99n merged 4 commits into
mainfrom
codex/redemption-name-aliases
Sep 7, 2026
Merged

apeir99n merged 4 commits into
mainfrom
codex/redemption-name-aliases

Conversation

@de-snake

@de-snake de-snake commented Sep 7, 2026

Copy link
Copy Markdown
Collaborator

Add 12 icon aliases for target-first phantom symbols such as USDC redemption from ACRED. The next client removes the first space when resolving the filename, producing usdcredemption from acred.svg.

Each icon puts the target asset upper-left and in front, with the source lower-right and behind. Reuses existing token artwork with a transparent separation gap. Covers cp0xLRT, rstETH, pzETH, steak7LRT, Re7LRT, hgETH, liUSD-1w, rsETH, mEDGE, ACRED, STAC, and mF-ONE redemptions. Existing filenames remain available for older SDK versions.

Visually inspected all 12 rendered icons in the in-app browser, parsed the SVGs with xmllint, and passed the Git whitespace check. Filenames follow the inspected next.70 TokenIcon resolver; this does not claim a fresh full-chain audit. Publish these assets before SDK naming PR Gearbox-protocol/sdk#506 is released.

de-snake and others added 3 commits September 7, 2026 15:44
The client is moving to one naming rule — the symbol, lowercased, with slashes
and spaces removed and nothing else touched.

31 assets added after v1.130.0 still carried an older resolver's output: a
space where the symbol had one removed too few (`usdcredemption from acred.svg`),
an underscore where the symbol has a dash (`rsteth_lidowsteth.svg`), a `_>`
where it has `->`, or a slash that turned the name into a subdirectory
(`weeth/reth.svg`).

Six older ones were simply misnamed — no resolver, old or new, ever asked for
`reth_f.svg`, `aurab_reth_stable.svg` or `pt_usdf_29jan2026.svg`, so that
artwork has been dead since it landed. rETH-f even had its own icon nobody
could reach.

Every other asset from v1.130.0 and earlier is left alone.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
…for byte

Each of these 17 was a second copy of an asset that survives under the name its
symbol resolves to: `steth_ng.svg` == `steth-ng-f.svg`, `weeth/reth.svg` ==
`weethreth.svg`, `pt_deth-29jan2026.svg` == `pt-deth-29jan2026.svg`. They
existed only because two older resolvers spelled the same symbol differently —
the legacy SDK asks for the raw lowercased symbol, ui-kit 3 for a mangled one.

Assets from v1.130.0 and earlier are untouched, so anything still resolving the
old way keeps its icon.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@apeir99n
apeir99n merged commit b28d3a7 into main Sep 7, 2026
2 checks passed
@apeir99n
apeir99n deleted the codex/redemption-name-aliases branch September 7, 2026 16:30
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.

4 participants