Skip to content

refactor/amount-numeric - Store financial amounts as NUMERIC#1

Open
chuks68 wants to merge 1 commit into
mainfrom
refactor/amount-numeric
Open

refactor/amount-numeric - Store financial amounts as NUMERIC#1
chuks68 wants to merge 1 commit into
mainfrom
refactor/amount-numeric

Conversation

@chuks68

@chuks68 chuks68 commented Jun 20, 2026

Copy link
Copy Markdown
Owner

The amount column in the Position, ExtraDeposit, and Vault models was previously a String, causing type-mismatch bugs and requiring runtime casts to NUMERIC for every calculation. This PR migrates those columns to NUMERIC(38, 18), updates the corresponding CRUD logic to operate on native Decimal values, adds an Alembic migration to perform the schema change safely, and adjusts test expectations.

@chuks68 chuks68 force-pushed the refactor/amount-numeric branch from 9fc83c4 to fc027bc Compare June 20, 2026 00:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant