fix: cap DCA allocations when ATM cash exceeds tracked balances #2
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/cap-dca-allocations-sync-mismatch"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Problem
When the ATM has more physical cash than satmachineadmin tracks (sync mismatch), the proportional allocation formula gives each client more GTQ-equivalent sats than their actual remaining balance, causing all DCA payments to be refused.
Example:
Solution
When sync mismatch is detected:
After fix:
Test Plan
Fixes #1
🤖 Generated with Claude Code
Closing this PR - the sync mismatch fix has been implemented directly on main in commit
545a028.The implementation:
calculations.py(tested with 22 unit tests)All acceptance criteria from #1 are met.
Pull request closed