Skip to content

fix(holdings): env fallback for wallet address#24

Open
Zaikon13 wants to merge 1 commit intomainfrom
codex/add-env-fallback-for-wallet-address
Open

fix(holdings): env fallback for wallet address#24
Zaikon13 wants to merge 1 commit intomainfrom
codex/add-env-fallback-for-wallet-address

Conversation

@Zaikon13
Copy link
Owner

@Zaikon13 Zaikon13 commented Oct 7, 2025

Summary

  • clarify the holdings _env_addr helper to document support for both WALLET_ADDRESS and WALLETADDRESS
  • confirm that holdings snapshots reuse _env_addr for consistent environment fallback

Testing

  • python scripts/cordex_ping.py
  • python -c "import main; print('import main OK')"
  • PYTHONPATH=. python - <<'PY'
    from core.holdings import holdings_snapshot, get_wallet_snapshot, _env_addr
    from core.pricing import get_price_usd
    import json
    addr = _env_addr()
    print("ENV_ADDR:", addr)
    print("CRO_PRICE:", get_price_usd("CRO"))
    print("RAW_SNAPSHOT:", json.dumps(get_wallet_snapshot(addr), indent=2))
    print("FINAL_SNAPSHOT:", json.dumps(holdings_snapshot(), indent=2))
    PY

https://chatgpt.com/codex/tasks/task_e_68e53208772883239acd7ce54cc984fe

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant