Understanding TON Jetton Amounts and Deposit Checks

TON jetton: Learn why TON Jetton transfer amounts use base units, how decimals work, and key steps to verify deposits safely in DeFi apps

When working with tokens on The Open Network (TON), understanding how TON jetton amounts are represented and validated is crucial for anyone interacting with wallets, exchanges, or DeFi apps. It's common—especially for new users or builders—to assume that what you see on a wallet interface, like the token's displayed value or ticker, is all you need to trust a transfer or deposit. In reality, base units and visible amounts can differ dramatically, which introduces risks that could lead to mispriced credits, mistakes in accounting, or even a loss of funds if not handled with care.

This guide explains how TON jetton amounts work, the critical checks you must perform, and the implications of misinterpreting token values based on appearance alone.

Jetton Base Units vs. Display Values

TON jetton transfers always operate with "base units"—raw integers that represent the smallest indivisible part of a given jetton. Whenever a wallet, DApp, or protocol receives a transfer_notification, the amount attached within is in these base units. The display precision (how many base units are represented as one human-readable token) comes from the jetton's metadata. Metadata may be stored on-chain or referenced off-chain, so apps must distinguish presentation settings from authenticated asset identity.

For example, consider this scenario:

  • You receive a transfer notification with an amount of 1,000,000,000 base units.
  • If the jetton metadata says the token uses 9 decimals, this would be displayed as 1.0 jetton by user interfaces.
  • However, another token with the same raw base unit value, but with a different decimal setting, might display a completely different amount.

This system is similar to how Bitcoin has "satoshis" or how Ethereum has "wei," but for TON jettons, each token can define its own decimal precision. The crucial point is that the TON protocol itself does not enforce or interpret these decimals; it's up to each wallet or app developer to read the metadata and convert the displayed amount correctly. Failing to do so can result in user confusion or—worse—incorrect balances being recorded or credited.

The implications are significant for DeFi apps, projects, or exchanges. Misreading decimals can result in over-crediting or under-crediting users, which can disrupt trust and even create opportunities for exploitation if overlooked. Developers need to be extra careful and ensure that conversions from base units to display values are carried out in strict accordance with the token’s metadata.

Validating Jetton Masters and Wallets for Deposits

There’s another layer of verification needed before you can trust a TON jetton deposit: validating the jetton master contract and wallet. It's not enough just to look at the token name, ticker, or even the logo. Spoofed assets can mimic legitimate tokens in appearance, so services should verify the master contract address against a trusted allowlist and validate the associated jetton wallet address on-chain.

Here’s what every receiver or application should do:

  • Confirm that the wallet holding the jetton is linked to the correct master contract address—the unique identifier for each jetton on TON.
  • Read the token's declared decimal setting for display conversion, but never use metadata alone as proof that a token is genuine.
  • Compare the raw base unit value in the deposit with the expected decimals for correct conversion.

By skipping these steps, you expose yourself or your application to the risk of incorrectly crediting the wrong jetton or accepting fake tokens. Reliance on tickers, display names, or icons is dangerous, especially as new tokens appear with similar branding to established assets.

TON Drop Hub best practice: Implement repeatable checks for every deposit and manual review when adding a new jetton master to the approved list. Validate the expected wallet relationship and raw amount before crediting balances; decimal formatting is a separate presentation step.

Key Checks Before Relying on Jetton Balances

For services accepting jetton deposits, the official TON documentation recommends a series of checks rather than relying on the display name or ticker:

  • Master allowlist: Maintain a list of approved jetton master contract addresses; a recognizable symbol or logo is not authentication.
  • Wallet relationship: Derive the expected recipient jetton wallet via the master's get_wallet_address(owner_address) method and compare the result with the notification source.
  • Notification validation: Confirm the transfer_notification opcode (0x7362d09c) and parse the amount as raw base units; check the sender and any supplied payload before acting on them.
  • Amount conversion: Apply the token's declared decimal precision only when displaying or reporting amounts. Do not confuse the formatted value with the integer transferred on-chain.
  • Crediting: Match a verified deposit to the intended customer, reject malformed or unexpected notifications, and protect against crediting the same deposit twice.

A valid-looking transaction does not automatically establish that the token belongs to the expected project. Verify the trusted master, wallet relationship, and transaction details together before taking irreversible actions.

Conclusion: Staying Secure in TON Jetton Operations

For expanded resources and in-depth walkthroughs, be sure to visit TON tools and DeFi.

Source reference: original source.