GPT-5 finding
Duplicated parseWei and response type definitions increase drift risk across commands
lowmaintainabilityhigh
- src/commands/list/pods.ts
- src/commands/list/pods.ts
Re-implementing shared parsing and type structures in multiple files invites subtle inconsistencies over time. A single source of truth reduces maintenance burden and prevents behavioral drift between commands.
Recommendation
Extract parseWei and shared response/type definitions to a small shared module (e.g., src/lib/amounts.ts and src/types/platform.ts) and import where needed. Document the shared utilities' contracts.