Skip to content

fix(statics): align SOL token underlying assets with OFC entries (CECHO-2907) - #10239

Draft
hitansh-madan wants to merge 1 commit into
masterfrom
hitanshmadan/cecho-2907
Draft

hitansh-madan wants to merge 1 commit into
masterfrom
hitanshmadan/cecho-2907

Conversation

@hitansh-madan

@hitansh-madan hitansh-madan commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

Problem

sol:jto, sol:jup, sol:mnde, sol:mobile, sol:natix and sol:wif used bare-symbol UnderlyingAsset values while their ofcsol:* counterparts use the on-chain coin name (UnderlyingAsset['sol:jup'], etc.).

OFC coins require asset to be a resolvable coin name: wallet-platform derives backingCoinName from the OFC coin's asset and passes it to coins.fromString (ofcTokenTS.ts, config/env/ofc_coins.ts). jup is not a coin name, so the OFC side is correct and the on-chain entries were wrong.

Changes

  • modules/statics/src/coins/solTokens.ts: align the six on-chain SOL token asset values with the names their OFC entries already reference.
  • modules/statics/test/unit/ofcCoinParity.ts: add a SOL OFC parity test asserting that every mainnet ofcsol:* coin resolves to an existing on-chain token with an identical asset. It fails on all six entries before this change.

Verification

Gate Command Result
Build / typecheck tsc --build --incremental modules/statics pass
Unit tests mocha in modules/statics 42,579 passing
Regression test (after) mocha --grep "SOL OFC" 1 passing
Regression test (before) same, with solTokens.ts reverted 1 failing, lists all six tokens
Lint eslint on changed files 0 errors (3 pre-existing no-console warnings)
Format prettier --check on changed files pass

Scope

  • No wallet-platform or AMS changes are needed: both already resolve SOL tokens by coin name (sol:jup), and the OFC asset values are unchanged.
  • sol:mnde is an additional occurrence of the same defect that was not in the original report; included so the parity test passes for all tokens.
  • The bare enum values ('jup', 'jto', 'wif', 'natix', 'mobile', MNDE) remain in UnderlyingAsset: it is a public export and removing values is a breaking change for SDK consumers. They have no in-repo readers after this change.

Ticket: CECHO-2907

@linear-code

linear-code Bot commented Nov 25, 2026

Copy link
Copy Markdown
Contributor

CECHO-2907

@github-actions

github-actions Bot commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

⚠️ Compatibility checks are failing on Node.js 27-nightly (experimental, non-blocking). This does not block merge, but it signals an incompatibility to fix before this release becomes supported.

View run

ofcsol:jto, ofcsol:jup, ofcsol:mnde, ofcsol:mobile, ofcsol:natix and
ofcsol:wif resolve their backing coin through the OFC asset field, so
it must equal the on-chain token name. The on-chain entries still used
the bare symbols and disagreed with their OFC counterparts.

Add an OFC parity test for SOL tokens to keep the two sides in sync.
@hitansh-madan
hitansh-madan force-pushed the hitanshmadan/cecho-2907 branch from 6feeec3 to f896b24 Compare November 25, 2026 23:04

This branch has not been deployed

No deployments
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.

1 participant