docs(minipay+fee-abstraction): add USDT 6-decimal warning and USDT celocli transfer example#2196
Merged
Merged
Conversation
…locli transfer example - code-library.mdx: add a Warning that USDT/USDC use 6 decimals (not 18), annotate each mainnet token address with its decimal count, and correct the parseUnits comment to cover USDT. - using-fee-abstraction.mdx: add a runnable USDT celocli transfer:erc20 example using the USDT token and adapter addresses, and clarify --value is in 10^6 units. Recreates external contribution #2186 on an org branch. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Contributor
|
Preview deployment for your docs. Learn more about Mintlify Previews.
|
viral-sangani
approved these changes
Jun 16, 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.
Recreates #2186 (external fork contribution by @samuelchimmy) on an org-owned branch so it can be merged.
What changed
build-on-celo/build-on-minipay/code-library.mdx<Warning>callout before theRequest an ERC20 token transfersection stating that USDT and USDC use 6 decimals on Celo, not 18.requestTransferwith its decimal count (USDm: 18, USDC: 6, USDT: 6).parseUnitscomment (which previously omitted USDT) to "USDm uses 18 decimals; USDC and USDT use 6 decimals".build-on-celo/fee-abstraction/using-fee-abstraction.mdxcelocli transfer:erc20example using the USDT token address (0x48065fbbe25f71c9282ddf5e1cd6d6a887483d5e) and its fee adapter (0x0e2a3e05bc9a16f5292a6170456a710cb89c6f72) — both already present in the table above.--valuefor USDC/USDT is in units of10^6.Why
The
requestTransfersnippet listed USDT but gave no decimal count, while noting USDC (6). Following it for USDT could lead a developer to pass18, sending 1,000,000,000,000× the intended amount.Credit to @samuelchimmy for the original contribution in #2186.
🤖 Generated with Claude Code