Skip to content
This repository was archived by the owner on Mar 11, 2025. It is now read-only.

Commit 992c299

Browse files
Astenjoncinque
Asten
andauthored
Fix Transfer amount for 1 token in token-2022.md (#7271)
* Fix Transfer amount for 1 token in token-2022.md * Change the token number to 0.75 for clarity Co-authored-by: Jon C <[email protected]> * Update the byte-represented data --------- Co-authored-by: Jon C <[email protected]>
1 parent 3567838 commit 992c299

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

docs/src/token-2022.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,13 +43,14 @@ Token-2022 are a strict superset of Token.
4343
### Instructions
4444

4545
Token-2022 supports the exact same instruction layouts as Token, byte for
46-
byte. For example, if you want to transfer 100 tokens on a mint with 2 decimals,
47-
you create a `TransferChecked` instruction, with this byte-represented data:
46+
byte. For example, if you want to transfer 0.75 tokens in UI amount, on a mint with 2 decimals,
47+
then the transfer amount is 75 tokens. You create a `TransferChecked` instruction, with
48+
this byte-represented data:
4849

4950
```
50-
[12, 100, 0, 0, 0, 0, 0, 0, 0, 2]
51+
[12, 75, 0, 0, 0, 0, 0, 0, 0, 2]
5152
^^ TransferChecked enum
52-
^^^^^^^^^^^^^^^^^^^^^^^^ 100, as a little-endian 64-bit unsigned integer
53+
^^^^^^^^^^^^^^^^^^^^^^^^ 75, as a little-endian 64-bit unsigned integer
5354
^ 2, as a byte
5455
```
5556

0 commit comments

Comments
 (0)