Skip to content

feat: conditionally set bankReleaseDate based on Olkypay balance#3525

Open
TaprootFreak wants to merge 4 commits intodevelopfrom
feat/olkypay-bank-release-balance-check
Open

feat: conditionally set bankReleaseDate based on Olkypay balance#3525
TaprootFreak wants to merge 4 commits intodevelopfrom
feat/olkypay-bank-release-balance-check

Conversation

@TaprootFreak
Copy link
Copy Markdown
Collaborator

Summary

  • Only auto-set bankReleaseDate on Olkypay transactions when the EUR balance is below 50,000
  • Above that threshold, bankReleaseDate remains unset, requiring manual release (AML check blocks processing until then)

Test plan

  • Verify transactions are auto-released when Olkypay balance < 50,000
  • Verify transactions require manual release when balance >= 50,000
  • Verify AML check correctly blocks unreleased transactions

Only auto-release Olkypay bank transactions when the EUR balance
is below 50,000. Above that threshold, manual release is required.
Check on every bank-tx cron cycle if the Olkypay EUR balance is below
50,000. If so, set bankReleaseDate on all unreleased Olkypay transactions.
- Fetch balance once in checkTransactions, pass to getOlkyTransactions
- Replace loop with single bulk update for unreleased transactions
- Extract magic number to OLKYPAY_RELEASE_BALANCE_LIMIT constant
- Remove redundant releaseOlkypayTransactions method
@TaprootFreak TaprootFreak marked this pull request as ready for review March 27, 2026 22:14
@github-actions
Copy link
Copy Markdown

❌ Security: 1 critical vulnerabilities

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.

2 participants