What is TON?
The Telegram Open Network (TON) is a blockchain by Telegram.
Peculiar features of TON
- Async messages
- bounced messages
- Complex fees
- Bit-by-bit data in FunC and Fif
Bounced messages
New bounce format with TVM 12.
Bounced messages are bigger than the original.
How fees work in TON
**The phases**
<phases diagram>
**Storage fees**
**Computation fees**
**Forwarding fees**
Depends on the msg bits and cells
**What if a contract runs out of funds**
Frozen
Careful replay protection
**What if you run out of funds while computing**
bounce, or maybe not. It depends.
Can be dangeroud
Gas estimations are critical
Show example in which an incorrect estimation (due to the bigger msg size when bouncing) leads to an inconsistent state.
$a^b$
<b>ciao</b>