Skip to content

docs(minipay+fee-abstraction): add USDT 6-decimal warning and USDT celocli transfer example#2196

Merged
viral-sangani merged 2 commits into
mainfrom
GigaHierz/usdt-decimal-note
Jun 16, 2026
Merged

docs(minipay+fee-abstraction): add USDT 6-decimal warning and USDT celocli transfer example#2196
viral-sangani merged 2 commits into
mainfrom
GigaHierz/usdt-decimal-note

Conversation

@GigaHierz

Copy link
Copy Markdown
Contributor

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

  • Added a <Warning> callout before the Request an ERC20 token transfer section stating that USDT and USDC use 6 decimals on Celo, not 18.
  • Annotated each mainnet token address in requestTransfer with its decimal count (USDm: 18, USDC: 6, USDT: 6).
  • Corrected the parseUnits comment (which previously omitted USDT) to "USDm uses 18 decimals; USDC and USDT use 6 decimals".

build-on-celo/fee-abstraction/using-fee-abstraction.mdx

  • Added a runnable USDT celocli transfer:erc20 example using the USDT token address (0x48065fbbe25f71c9282ddf5e1cd6d6a887483d5e) and its fee adapter (0x0e2a3e05bc9a16f5292a6170456a710cb89c6f72) — both already present in the table above.
  • Clarified that --value for USDC/USDT is in units of 10^6.

Why

The requestTransfer snippet listed USDT but gave no decimal count, while noting USDC (6). Following it for USDT could lead a developer to pass 18, sending 1,000,000,000,000× the intended amount.

Credit to @samuelchimmy for the original contribution in #2186.

🤖 Generated with Claude Code

…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>
@mintlify

mintlify Bot commented Jun 16, 2026

Copy link
Copy Markdown
Contributor

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated (UTC)
celo-docs 🟢 Ready View Preview Jun 16, 2026, 9:49 AM

@viral-sangani viral-sangani merged commit aaf5649 into main Jun 16, 2026
4 checks passed
@viral-sangani viral-sangani deleted the GigaHierz/usdt-decimal-note branch June 16, 2026 14:12
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