Skip to content

ton-community/wton-contract

Repository files navigation

wTON

This contract is fully compatible with next standards:

TEP-64 - Token Data Standard TEP-74 - Jettons Standard TEP-89 - Discoverable Jettons Wallets

Contracts

Minter

This is jetton wallet factory: contract that mimics to Jetton Minter, but it doesn't mint jettons itself, instead it only deploys wallets which mint tokens for themselves.

Wallet

It mimics sending of TONs as jetton transfer. When it receives transfer messages it calculates receiver wTON wallet and sends there internal_transfer amount of jettons is equal to amount of accepted TONs minus fee. In turn when wTON wallet receives internal_transfer it generates transfer_notification.

Note that amount of "transferred" jettons will correspond to TON amount not to amount of jettons in internal_transfer. wTON also checks forward_payload: if it contains only number 8388449 encoded in 23 bits, it treats it as special request to "unwrap tokens" and send them directly to owner.

NOTE: This number is used since usually 32-bit ops are used and collisions are not expected.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published