TON @ DeFi.org


Together we are building an ecosystem of fully decentralized financial applications on

TON blockchain

Our Mission

Decentralized apps can be trustless - meaning their users can deposit/invest money in them without fear that their creators could hurt them by malicious behavior or negligence. What is the difference?

Decentralized Apps (Uniswap)

  • Creator does not have access to deposited user funds
  • No private user data, all user data is publicly visible to all
  • No possible downtime, users always have access to funds
  • Trust not required by users, no EULA, no legal agreements
  • Does not depend on the creator to pay the bills
  • There is no legal entity necessarily behind the app (DAO)

Centralized Apps (Netflix)

  • Creator has access to deposited user funds
  • Users can have private data only visible to them
  • Downtime is possible, users may not have access
  • Trust required by users, EULA between app and user
  • Can depend on the creator to pay bills like infra costs
  • There is a legal entity behind the app
Our mission is to educate developers and users about the difference. It is our responsibility as a community to hold each other accountable and build a trustless ecosystem to keep users safe.

Why TON?

There’s no doubt that blockchain is disrupting the world around us. But there’s so much noise out there. So many blockchains and cryptocurrencies - what makes TON special?

Bitcoin - Conceived in 2008 by Satoshi Nakamoto and launched in 2009.

The first “killer app” of blockchain - the crypto currency. Bitcoin is the decentralized store of value, the first human asset to have guaranteed scarcity and a predictable monetary policy.

Ethereum - Conceived in 2013 by Vitalik Buterin and launched in 2015.

Bitcoin’s immutable nature was never designed to be a platform for innovation. Ethereum covers this role and was the first to allow developers to harness blockchain for any app as a smart contract. Ethereum is the infrastructure for apps targeting power users.

TON - Conceived in 2018 by Telegram’s Durov brothers and launched in 2021.

If Ethereum targets power users, TON is the infrastructure for apps targeting the masses. Much like Telegram, it is mobile first, consumer oriented and built for the Internet scale of billions. If blockchain ever reaches the masses, it will be via TON.

First movers are rarely replaced. Bitcoin and Ethereum will not be dethroned. TON’s unique value comes from being the first to expand to a new uncaptured territory - blockchain for the masses.

Why Decentralized Apps

That’s the point of using blockchain

The designers of TON went into great lengths to make all core TON blockchain infrastructure services fully decentralized

  • Anyone can run a validator and participate in PoS consensus without permission
  • Anyone can acquire, transfer and stake TON coins without permission
  • Anyone can access the chain directly without intermediaries without permission
  • Anyone can write and deploy dapps as smart contracts without permission

Making your app centralized will defy the point of using TON in the first place. There are far simpler infrastructure solutions that run centralized apps.

Centralization puts users at risk

TON apps will often deal with money. Users will deposit money in them and the apps are expected to be financially valuable in some way. Money equals responsibility.

Decentralized apps are trustless, meaning users are not required to trust their developers. The developers are not able to harm the users in any way even if they tried.

Users may get hurt even if you don’t intend to be malicious. If your credentials can cause damage, a hacker can compromise them and then users will get hurt. One of your employees can decide to steal and abuse their position. You don’t want to be responsible for these wrongdoings.

Money equals responsibility. Decentralization shifts responsibility from you to your users. This is the trustless model that blockchain is based on.

Centralization reduces app value

Consider the most successful apps on blockchain: The Bored Apes NFT collection has individual items sold for over a million dollars. The lending DeFi apps Compound and Aave have tens of billions of dollars deposited in their smart contracts. How did these apps become so financially successful?

Users don’t know the founders of Bored Apes, Compound or Aave. Even if they did know them, they certainly wouldn’t trust them with a million dollars. Especially when they provide no legal obligation and there isn’t any form of signed legal contract involved.

Decentralization is the answer.

Users are only able to deposit millions in these apps because they are trustless and even their founders don’t have access to funds. Without being decentralized, these apps wouldn’t be able to grow in value.

Decentralized apps are unstoppable

Nobody can stop Bitcoin because it’s decentralized. There’s no single entity that is running it.

The same with decentralized apps. Even if you, the developer, go out of business or all of your servers are down, the app will live on and never stop.

If users deposit money in your app, they will always be safe and will never lose access to their funds because of your downtime.

A decentralized app is not dependent on you for its execution. It has no servers that can go offline, just smart contracts. Running it is under the responsibility of the community, not yours.

App Safety Guidelines

It’s quite easy to keep an app decentralized, you just need to follow a few simple rules:

Apps

  1. Backend is smart contracts only (no servers)

  2. No special admin roles in the contracts

  3. Frontend runs on client only and is open source

  4. If there’s a token, it’s distributed fair launch

Jettons

  1. Smart contract code is the official standard

  2. Admin role in the contract is revoked

  3. Metadata stored on-chain (not IPFS, not website)

  4. Distributed fair launch

NFTs

  1. Smart contract code is the official standard

  2. Admin role in the contract is revoked

  3. Metadata and images stored on IPFS or Ton Storage (not website)

  4. Distributed fair launch

Project Spotlight

TonSwap - AMM

TonSwap is a fully decentralized on-chain AMM/DEX for TON. TonSwap implements the Uniswap algorithm in a set of FunC contracts designed from scratch for the TON distributed architecture. It allows traders to swap tokens and liquidity providers to support these trades and earn rewards. TonSwap is an excellent example of how to implement a complex app that follows the App Safety Guidelines end to end.

Jetton Deployer

Jetton Deployer is an open source community tool that allows anyone to issue a new fungible token (Jetton) on TON blockchain. The tool deploys the Jetton contract in one click directly from the browser and implements all recommended security best practices. The tool is completely decentralized and follows the App Safety Guidelines end to end. The tool also provides a quick security summary about existing Jettons.

Ton App Starter Template

Starter templates for a new TON app project - FunC contracts, TypeScript tests, compilation and deployment scripts, as well as a web client in TypeScript and a Telegram bot example. The setup follows best practices on how to properly test a smart contract and what information should be published alongside to the community.

Ton Offline Transaction

A step by step protocol for handling cold storage TON wallets. Cold storage requires that the wallet’s private key (derived from the secret 24 word mnemonic) is never placed on a device that is connected to the Internet in order to eliminate potential hacks. The protocol allows signing transactions offline and sending them to mainnet from a different device.