- Fetch the portfolio overview and note the suspect token's raw amount and value_usd.
- Call run_code to query the gateway for that token's metadata, especially
decimals. - Divide the displayed amount by 10^(expected_decimals - actual_applied_decimals) to find the real amount.
- Cross-check: real_amount × market_price should equal a plausible value_usd.
- Compare the price the gateway/portfolio shows against an external source (Phantom, DEX UI).
- Report: which field is wrong (amount, price, or both), the mismatch factor, and the likely root cause (wrong decimal config in the Solana connector or gateway token registry).
- Offer to fix via gateway config update if the decimal is misconfigured.
Diagnose Solana Token Decimal Mismatch
Find and explain why a Solana token shows the wrong amount or price in the portfolio
Diagnose Solana Token Decimal Mismatch by hummingbot · 4962c8d
npx skillmds@latest add hummingbot/diagnose-solana-token-decimal-mismatch File contents
---name: diagnose-solana-token-decimal-mismatchdescription: Find and explain why a Solana token shows the wrong amount or price in the portfolio---1. Fetch the portfolio overview and note the suspect token's raw amount and value_usd.2. Call run_code to query the gateway for that token's metadata, especially `decimals`.3. Divide the displayed amount by 10^(expected_decimals - actual_applied_decimals) to find the real amount.4. Cross-check: real_amount × market_price should equal a plausible value_usd.5. Compare the price the gateway/portfolio shows against an external source (Phantom, DEX UI).6. Report: which field is wrong (amount, price, or both), the mismatch factor, and the likely root cause (wrong decimal config in the Solana connector or gateway token registry).7. Offer to fix via gateway config update if the decimal is misconfigured.
hummingbot/condor/tree/main/agents/condor/skills/diagnose_solana_token_decimal_mismatch commit 4962c8d195
Frequently asked questions
Run npx skillmds@latest add hummingbot/diagnose-solana-token-decimal-mismatch in your terminal (requires Node.js), paste this page's agent-chat prompt into Claude, Cursor, or any MCP-connected agent, or download the SKILL.md file and copy it into your agent's skills directory.
Find and explain why a Solana token shows the wrong amount or price in the portfolio It is listed under Coding & Dev Tools on SkillMD.
This skill has not completed SkillMD's automated safety review yet. SkillMD never runs a skill's scripts for you; review the SKILL.md before installing.
This skill is tagged as working with Claude Code, Claude.ai, OpenAI Codex. SKILL.md is an open format, so most agents that read a skills directory can load it too.
Yes. Installing skills from SkillMD is free, and the skill stays under its author's original license.
hummingbot (@hummingbot) published this skill. Their other Agent Skills are listed on their SkillMD profile.