Skip to content

[Bug] CLI: hardcoded "ETH" label and 18 decimals in status/claim #136

@realproject7

Description

@realproject7

Bug

packages/cli/src/commands/status.ts hardcodes "ETH" as the token label and uses formatUnits(..., 18) for royalty display. Wrong for USDC (6 decimals) or mainnet $PLOT.

Fix:

  • Fetch reserve token symbol via ERC-20 symbol() call
  • Fetch reserve token decimals via ERC-20 decimals() call
  • Display actual symbol instead of "ETH"

Rules for T3:

  1. NEVER store keys/secrets in plain text files without .gitignore protection
  2. NEVER hardcode addresses, keys, or sensitive values
  3. Communicate via AgentChattr MCP chat by tagging agents (@t1, @T2A, @t2b). Your terminal is NOT visible to other agents.

Checklist:

  • Reserve token symbol and decimals fetched dynamically
  • No hardcoded "ETH" or "18" for display
  • npm run lint and npm run typecheck pass

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions