Files
orangecat/__tests__/unit/api
g-butandClaude Sonnet 4.6 22cc435e8e fix(research): correct funding_goal_btc validation — BTC not satoshis
Both research schemas had `min(1000)` on funding_goal_btc, which was
written as if the value were satoshis. The field stores BTC, so this
rejected any goal under 1000 BTC — an impossible constraint. Fixed to
`positive()` in both researchEntitySchema and researchWizardSchema.

Also corrected the wizard field config: placeholder 1000000→0.5,
min:1000→0, label and hint now say BTC explicitly.

Added 15 schema tests that lock in the BTC-denominated constraint and
would have caught this regression.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-23 08:45:52 +02:00
..