Diagnose Solana Token Decimal Mismatch

Find and explain why a Solana token shows the wrong amount or price in the portfolio

hummingbot Updated

File contents

  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

npx skillmds@latest add hummingbot/diagnose-solana-token-decimal-mismatch