Skip to content

Commit da0c0f3

Browse files
correct USDT calculation and markdown styling (#936)
9oelM #802
1 parent a5d1278 commit da0c0f3

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

docs/v3/guidelines/ton-connect/guidelines/preparing-messages.mdx

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -433,7 +433,7 @@ await connector.sendTransaction({
433433

434434
### Jetton Transfer
435435

436-
The `body` for Jetton Transfers is based on the ([TEP-74](https://github.com/ton-blockchain/TEPs/blob/master/text/0074-jettons-standard.md#1-transfer)) standard. Please note that the number of decimals can vary between different tokens: for example, USDT uses 6 decimals (1 USDT = 1 * 10**9), while TON uses 9 decimals(1 TON = 1 * 10**9).
436+
The `body` for Jetton Transfers is based on the ([TEP-74](https://github.com/ton-blockchain/TEPs/blob/master/text/0074-jettons-standard.md#1-transfer)) standard. Please note that the number of decimals can vary between different tokens: for example, USDT uses 6 decimals (1 USDT = 1 \* 10 \*\* 6), while TON uses 9 decimals(1 TON = 1 \* 10 \*\* 9).
437437

438438
:::info
439439
You can use `assets-sdk` library with the methods out of the box (even with `ton-connect`)
@@ -668,7 +668,7 @@ await jetton.send(
668668
<Tabs groupId="Jetton Transfer with Comment">
669669
<TabItem value="@ton/ton" label="@ton/ton">
670670

671-
The `messageBody` for Jetton Transfer([TEP-74](https://github.com/ton-blockchain/TEPs/blob/master/text/0074-jettons-standard.md#1-transfer)) with comment we should additionally to the regular transfer `body` serialize comment and pack this in the `forwardPayload`. Please note that the number of decimals can vary between different tokens: for example, USDT uses 6 decimals (1 USDT = 1 * 10**9), while TON uses 9 decimals(1 TON = 1 * 10**9).
671+
The `messageBody` for Jetton Transfer([TEP-74](https://github.com/ton-blockchain/TEPs/blob/master/text/0074-jettons-standard.md#1-transfer)) with comment we should additionally to the regular transfer `body` serialize comment and pack this in the `forwardPayload`. Please note that the number of decimals can vary between different tokens: for example, USDT uses 6 decimals (1 USDT = 1 \* 10 \*\* 6), while TON uses 9 decimals(1 TON = 1 \* 10 \*\* 9).
672672

673673
```js
674674
import { beginCell, toNano, Address } from '@ton/ton'
@@ -875,7 +875,7 @@ jetton.send(sender, RECEIVER_ADDRESS, toNano(10), { notify: { payload: forwardPa
875875
<Tabs groupId="Jetton Burn">
876876
<TabItem value="@ton/ton" label="@ton/ton">
877877

878-
The `body` for Jetton Burn is based on the ([TEP-74](https://github.com/ton-blockchain/TEPs/blob/master/text/0074-jettons-standard.md#1-transfer)) standard. Please note that the number of decimals can vary between different tokens: for example, USDT uses 6 decimals (1 USDT = 1 * 10**9), while TON uses 9 decimals(1 TON = 1 * 10**9).
878+
The `body` for Jetton Burn is based on the ([TEP-74](https://github.com/ton-blockchain/TEPs/blob/master/text/0074-jettons-standard.md#1-transfer)) standard. Please note that the number of decimals can vary between different tokens: for example, USDT uses 6 decimals (1 USDT = 1 \* 10 \*\* 6), while TON uses 9 decimals(1 TON = 1 \* 10 \*\* 9).
879879

880880

881881
```js
@@ -1547,7 +1547,7 @@ Learn more about [TON Smart Contract Addresses](/v3/documentation/smart-contract
15471547

15481548
### Jetton Transfer
15491549

1550-
Example of function for building jetton transfer transaction. Please note that the number of decimals can vary between different tokens: for example, USDT uses 6 decimals (1 USDT = 1 * 10**9), while TON uses 9 decimals(1 TON = 1 * 10**9).
1550+
Example of function for building jetton transfer transaction. Please note that the number of decimals can vary between different tokens: for example, USDT uses 6 decimals (1 USDT = 1 \* 10 \*\* 6), while TON uses 9 decimals(1 TON = 1 \* 10 \*\* 9).
15511551

15521552
```python
15531553
from pytoniq_core import begin_cell
@@ -1598,7 +1598,7 @@ transaction = {
15981598

15991599
### Jetton Burn
16001600

1601-
Example of function for building jetton burn transaction. Please note that the number of decimals can vary between different tokens: for example, USDT uses 6 decimals (1 USDT = 1 * 10**9), while TON uses 9 decimals(1 TON = 1 * 10**9).
1601+
Example of function for building jetton burn transaction. Please note that the number of decimals can vary between different tokens: for example, USDT uses 6 decimals (1 USDT = 1 \* 10 \*\* 6), while TON uses 9 decimals(1 TON = 1 \* 10 \*\* 9).
16021602

16031603
```python
16041604
from pytoniq_core import begin_cell
@@ -1916,7 +1916,7 @@ if err != nil {
19161916

19171917
### Jetton Transfer
19181918

1919-
Example of function for jetton transfer message. Please note that the number of decimals can vary between different tokens: for example, USDT uses 6 decimals (1 USDT = 1 * 10**9), while TON uses 9 decimals(1 TON = 1 * 10**9).
1919+
Example of function for jetton transfer message. Please note that the number of decimals can vary between different tokens: for example, USDT uses 6 decimals (1 USDT = 1 \* 10 \*\* 6), while TON uses 9 decimals(1 TON = 1 \* 10 \*\* 9).
19201920

19211921
```go
19221922
import (
@@ -1978,7 +1978,7 @@ if err != nil {
19781978

19791979
### Jetton Burn
19801980

1981-
Example of function for jetton burn message. Please note that the number of decimals can vary between different tokens: for example, USDT uses 6 decimals (1 USDT = 1 * 10**9), while TON uses 9 decimals(1 TON = 1 * 10**9).
1981+
Example of function for jetton burn message. Please note that the number of decimals can vary between different tokens: for example, USDT uses 6 decimals (1 USDT = 1 \* 10 \*\* 6), while TON uses 9 decimals(1 TON = 1 \* 10 \*\* 9).
19821982

19831983
```go
19841984
import (

0 commit comments

Comments
 (0)