feat(wallet): make crypto rail routing config-driven - #57
Merged
Conversation
railFor was a hardcoded BTC/ETH/USDT set. Add USDC to the default and let platformConfig.wallet.cryptoCurrencies override it per-operator, so adding a custody vendor's full asset list is a config change, not a core edit.
zaxovaiko
requested review from
agniev-a-hub and
klaudia-blazyczek-blurify
as code owners
August 5, 2026 15:00
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.
Summary
Make wallet crypto rail routing config-driven instead of a hardcoded currency set.
Why
railForhardcoded a BTC/ETH/USDT set. Adding a custody vendor's full asset list required a core edit. Now the default adds USDC andplatformConfig.wallet.cryptoCurrencieslets an operator override the set per-deployment, so onboarding a new asset is a config change.Worth knowing
pnpm verifyis green (typecheck + lint + boundaries + module-shape + tests)pnpm check:driftis green (catalog / OpenAPI not stale) - runpnpm regenif not/schemasubpath (no direct module imports)tenantIdand are RLS-covered (pnpm regenrunsgen:rls) - N/A, no new tables