Problem
pricePerMTok: -5 yields costUSD: -0.00005 with no throw; top: -1 yields empty biggest despite units existing. compact and the CLI validate; analyzePayload uses them raw.
Where
src/index.mjs (analyzePayload options destructuring).
Acceptance
Add a failing test first expecting RangeError on negative price / non-integer top. Then fix.
Problem
pricePerMTok: -5yieldscostUSD: -0.00005with no throw;top: -1yields emptybiggestdespite units existing.compactand the CLI validate;analyzePayloaduses them raw.Where
src/index.mjs(analyzePayloadoptions destructuring).Acceptance
Add a failing test first expecting
RangeErroron negative price / non-integer top. Then fix.