Skip to content

feat(db+swap): normalize stableCoin field and protect swap transactions#11

Merged
BODMAT merged 1 commit into
masterfrom
chore/normalize-stable-coin
May 24, 2026
Merged

feat(db+swap): normalize stableCoin field and protect swap transactions#11
BODMAT merged 1 commit into
masterfrom
chore/normalize-stable-coin

Conversation

@BODMAT
Copy link
Copy Markdown
Owner

@BODMAT BODMAT commented May 24, 2026

Renamed stableCoins String[] to stableCoin String to comply with 1NF. Added a Prisma migration.

Swap transactions are now protected: editing a swap leg returns 403. Deleting one leg cascades to both with chronological balance validation.

On the frontend, the edit button is hidden for swap rows. The edit popup shows a disabled form with an info banner. A confirmation popup is shown before deleting a swap pair.

Fixed a misleading console error that appeared on failed swap creation.

@BODMAT BODMAT merged commit 1ffbf16 into master May 24, 2026
1 check passed
@BODMAT BODMAT deleted the chore/normalize-stable-coin branch May 24, 2026 13:44
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