Repository navigation
fix(statics): align SOL token underlying assets with OFC entries (CECHO-2907) - #10239
Draft
hitansh-madan wants to merge 1 commit into
Draft
hitansh-madan wants to merge 1 commit into
hitansh-madan wants to merge 1 commit into
Conversation
Contributor
Contributor
|
|
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
force-pushed
the
hitanshmadan/cecho-2907
branch
from
November 25, 2026 23:04
6feeec3 to
f896b24
Compare
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
sol:jto,sol:jup,sol:mnde,sol:mobile,sol:natixandsol:wifused bare-symbolUnderlyingAssetvalues while theirofcsol:*counterparts use the on-chain coin name (UnderlyingAsset['sol:jup'], etc.).OFC coins require
assetto be a resolvable coin name: wallet-platform derivesbackingCoinNamefrom the OFC coin'sassetand passes it tocoins.fromString(ofcTokenTS.ts,config/env/ofc_coins.ts).jupis 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 tokenassetvalues with the names their OFC entries already reference.modules/statics/test/unit/ofcCoinParity.ts: add a SOL OFC parity test asserting that every mainnetofcsol:*coin resolves to an existing on-chain token with an identicalasset. It fails on all six entries before this change.Verification
tsc --build --incremental modules/staticsmochainmodules/staticsmocha --grep "SOL OFC"solTokens.tsrevertedeslinton changed filesno-consolewarnings)prettier --checkon changed filesScope
sol:jup), and the OFCassetvalues are unchanged.sol:mndeis an additional occurrence of the same defect that was not in the original report; included so the parity test passes for all tokens.'jup','jto','wif','natix','mobile',MNDE) remain inUnderlyingAsset: 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