Release: develop -> main#3590
Merged
davidleomay merged 6 commits intomainfrom Apr 22, 2026
Merged
Conversation
* [NOTASK] SupportIssue type, reason update * [NOTASK] autoExpiry supportIssue * [NOTASK] Refactoring * [NOTASK] Refactoring 2
…3586) - Allow compliance role to update bankData, buyCrypto, buyFiat amlCheck - Add buyCryptoId/buyFiatId to TransactionSupportInfo so the UI can address the correct entity when editing AML decisions - Read amlCheck from buyCrypto/buyFiat in support response to reflect the actual decision state - Expand transaction relations used for history display
…counts (#3585) * feat: require phone verification for users referred by non-trading accounts Add AML check that requires phone verification when the referrer has never completed a purchase (buyVolume === 0). Trusted referrers are exempt from this check. * fix: include sell and crypto volume in referrer trade history check A referrer with any trade history (buy, sell, or crypto-to-crypto) should not trigger the phone verification requirement. * feat: require trade history to send or confirm invitations Add hasTradeHistory getter on UserData that checks buyVolume, sellVolume and cryptoVolume. Block all recommendation paths (create, confirm, code redemption, auto-confirm) when the recommender has no trade history. * fix: check recommender instead of refUser for trade history AML check The trade history check incorrectly validated the refUser (referral code owner) instead of the recommender (invitation sender). Load the actual recommender via RecommendationService and pass it through the full AML pipeline. Rename enum to RECOMMENDER_NO_TRADE_HISTORY for clarity. * refactor: clean up recommender parameter ordering and error messages Place recommender parameter directly after refUser in getAmlResult and entity methods to avoid undefined placeholders. Unify error messages for trade history checks in recommendation service. * style: fix prettier formatting * fix: find confirmed recommendation instead of first match
Apply the same phone verification gate when the refUser (referral code owner) has no trade history. Rename enum to REFERRAL_NO_TRADE_HISTORY to reflect both referral paths (recommendation and ref code).
* Add legal entity types: PublicInstitution, OHG, KG * Add legal entity types: GmbHCoKG, Cooperative, CollectiveCompany, ListedAG
davidleomay
approved these changes
Apr 21, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Automatic Release PR
This PR was automatically created after changes were pushed to develop.
Commits: 1 new commit(s)
Checklist