Skip to content

Fix stroops overflow, missing merchants.updated_at, add PATCH /me - #1009

Open
joel-metal wants to merge 1 commit into
kellymusk:masterfrom
joel-metal:fix/963-967-968-various-fixes
Open

Fix stroops overflow, missing merchants.updated_at, add PATCH /me#1009
joel-metal wants to merge 1 commit into
kellymusk:masterfrom
joel-metal:fix/963-967-968-various-fixes

Conversation

@joel-metal

@joel-metal joel-metal commented Aug 31, 2026

Copy link
Copy Markdown
Contributor

Summary

Closes #963
closes #967
closes #968

Test plan

  • Run migrations and confirm merchants.updated_at is populated
  • PATCH /me with a valid/invalid name and confirm both users and merchants rows update together
  • Confirm deposits with amounts above i64::MAX / 10_000_000 stroops are rejected instead of wrapping

…TCH /me

- Use checked_mul/checked_add in parse_amount_to_stroops to avoid silent
  i64 overflow for XLM amounts above ~922,337,203 XLM (kellymusk#963)
- Add updated_at column to merchants table, model, and queries for
  consistency with every other table (kellymusk#967)
- Add PATCH /me to let a merchant update their name, keeping users.name
  and merchants.name in sync in one transaction (kellymusk#968)

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0176gtGcUc8tMZmF8aZysxmD
@drips-wave

drips-wave Bot commented Aug 31, 2026

Copy link
Copy Markdown

@joel-metal Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant