Many are used to seeing only the swap interface, but "under the hood," Bidask hides a unique architecture of smart contracts. This system was built from scratch and optimized specifically for the sharded TON network.
Let’s break down the "base" of our protocol without the extra complexity:
🔘 Pool Factory
This is the "parent" contract. Its sole task is to deploy new trading pairs. This is where every new pool on Bidask is born.
🔘 Pool
The heart of every trading pair. This contract stores data on asset quantities and locked liquidity, and it handles routing and payouts. It bridges your requests to the "brain" of the system—the Range contracts.
🔘 Range
The most vital and complex element. Range manages price segments (those famous Bins) and all granular data. This is where the magic happens:
- Adding liquidity.
- Executing swaps.
- Mathematical price calculations.
It is the contract that makes liquidity work efficiently.
🔘 LP-Multitoken (SBT)
This is your personalized proof of position ownership. These are Soulbound Tokens (SBT), meaning they cannot be transferred; they are permanently linked to you, confirming your right to a share of the pool and its fees.
Why such complexity?
The modular structure allows Bidask to handle the massive loads of the TON blockchain while remaining fast and secure. We have distributed the tasks so the system runs like a Swiss watch.
Now you know that behind every "Swap" button stands the performance of an entire orchestra of smart contracts!
Community chat | DEX | X | EN Channel | CIS Channel | Website
