Repository navigation
docs: add rule-based accounts guide and document USDC and USDT support - #1243
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub. 3 Skipped Deployments
|
This stack of pull requests is managed by Graphite. Learn more about stacking. |
|
Preview deployment for your docs. Learn more about Mintlify Previews.
|
[Low impact] The PR changes account documentation without changing runtime behavior. The PR appears safe to merge, with a non-blocking request to document USDC platform enablement in the guide. Findings
Fix with agent prompt### Issue 1
mintlify/payouts-and-b2b/depositing-funds/rule-based-accounts.mdx:23
The guide omits that USDC rule-based accounts must be enabled separately for your platform. If a platform lacks that enablement, readers can meet every listed prerequisite and still have account creation rejected. The endpoint description already calls out this requirement; add it here before the creation examples.
```suggestion
- USDC rule-based accounts must be enabled separately for your platform.
- The account holder already has an internal account in the same currency. Funds go there when a sweep can't be completed.
```
Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!
---
For each issue above, determine whether it is valid and should be fixed. If so, fix it directly.SummaryAdds a rule-based accounts guide and documents USDC support in the OpenAPI source and both bundles.
Reviews (1) · Last reviewed commit: "docs: add rule-based accounts guide and ..." · Reviewed by Greptile |
|
|
||
| ## Prerequisites | ||
|
|
||
| - The account holder already has an internal account in the same currency. Funds go there when a sweep can't be completed. |
There was a problem hiding this comment.
The guide omits that USDC rule-based accounts must be enabled separately for your platform. If a platform lacks that enablement, readers can meet every listed prerequisite and still have account creation rejected. The endpoint description already calls out this requirement; add it here before the creation examples.
| - The account holder already has an internal account in the same currency. Funds go there when a sweep can't be completed. | |
| - USDC rule-based accounts must be enabled separately for your platform. | |
| - The account holder already has an internal account in the same currency. Funds go there when a sweep can't be completed. |
Prompt To Fix With AI
This is a comment left during a code review.
Path: mintlify/payouts-and-b2b/depositing-funds/rule-based-accounts.mdx
Line: 23
Comment:
**USDC prerequisite is missing**
The guide omits that USDC rule-based accounts must be enabled separately for your platform. If a platform lacks that enablement, readers can meet every listed prerequisite and still have account creation rejected. The endpoint description already calls out this requirement; add it here before the creation examples.
```suggestion
- USDC rule-based accounts must be enabled separately for your platform.
- The account holder already has an internal account in the same currency. Funds go there when a sweep can't be completed.
```
---
For each issue above, determine whether it is valid and should be fixed. If so, fix it directly.Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!
There was a problem hiding this comment.
Leaving this out on purpose: the PR owner asked for the platform-enablement note to be removed from the guide, and the endpoint reference still covers it.
|
⚡ Review ledger Round 1
Round 2
Round 3
Round 4
|
| | Currency | What payers send to | | ||
| |----------|---------------------| | ||
| | `USD` | A dedicated US bank account and routing number | | ||
| | `USDC` | A dedicated deposit address on each supported network for your platform (for example, Solana or Base) | |
There was a problem hiding this comment.
Is USDT not supported? Why not if USDC is? What about USDB?
There was a problem hiding this comment.
USDT works, but only behind a separate gate and only when it sweeps into the holder's own USDB embedded wallet. I left it out because that's a much narrower case than USDC. USDB isn't accepted as a rule-based account currency (it returns a 400); it only appears as a sweep destination. Want me to add a USDT row that states the USDB-only restriction?
There was a problem hiding this comment.
yeah USDT to USDB was what @kphurley7 was working on i think?
basically I was just prioritizing USDC with my work, additional currencies just need additional flow runs i think but can be added
There was a problem hiding this comment.
Makes sense, so I'm keeping the guide to USD and USDC for now. A USDT row can be added alongside the USDT → USDB work once it's ready to document.
There was a problem hiding this comment.
Why would it need new flow runs if it's just the asset changing? I think all of the existing fireblocks actions can take any asset param
There was a problem hiding this comment.
From the code, paycore's rule-based deposit-address creation already accepts both USDC and USDT. The limit is a check in sparkcore's rule_based_accounts.py that only lets USDT sweep into the holder's USDB wallet, behind GRID_RULE_BASED_USDB_SWEEPS_ENABLED. Widening USDT looks like lifting that check, not adding new flow runs, though Brian may know of a settlement gap I can't see.
There was a problem hiding this comment.
ah i spoke too soon i'll look into removing that restriction
|
🦣 Congratulations @jklein24 - your substantive review earned a Siberian unicorn! (rare)
View your Frost-dex: https://zeus.dev.dev.sparkinfra.net/#/dinodex/jklein24?section=ice-age |
|
📌 Bolt Status 2026-10-28 00:46:13 UTC — ⚡ Agent |
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: bsiaotickchong <bsiaotickchong@users.noreply.github.com> Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
548fd24 to
6d1ebbf
Compare
|
⚡ Review rounds — updated in place, latest first. Round 2 · 1fa8788
Earlier rounds (1)Round 1 · 6d1ebbfCommits
|
Co-Authored-By: bsiaotickchong <bsiaotickchong@users.noreply.github.com> Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

Summary
payouts-and-b2b/depositing-funds/rule-based-accounts, next to Internal Accounts in the "Managing accounts" nav group. It covers supported currencies, prerequisites, creating an account (USD and USDC tabs), sweep rule fields, tracking sweeps andSWEEP_*failures, and sandbox testing.POST /internal-accounts. Thecurrencyfield and the endpoint description previously said rule-based accounts wereUSDonly. Adds ausdcDepositAddressrequest example.Notes
fundingPaymentInstructions, not a bank account number. USDC and USDT rule-based accounts are enabled per platform, separately from USD.Test plan
make buildandmake lintpass.mint dev(4.2.284):Requested by @bsiaotickchong
Original PR: #1242