Torch DEX
WebsiteSwap
  • Overview
  • Terms of Use
  • Getting Started
    • Introduction
    • Challenges on TON
    • Solution for TON
    • Architecture
      • Concept
      • Core Components
        • Factory
        • Vault
        • Pool
        • LP Account
        • Oracle
      • Comparison
      • Interoperability
      • Meesage Flows
        • Deposit
        • Swap
        • Withdraw
        • Cross-Pool Operations
  • Developer Guide
    • DEX SDK Guide
      • Setup
      • Perform Swap
      • Deposit Liquidity
      • Withdraw Liquidity
      • How to send transaction
        • Mnemonic (Node JS)
        • TonConnect (React)
      • Deployments
  • USER Guide
    • Getting Started
  • Protocol
    • Audits
    • Tokenomics
  • Other
    • Brand Kit
    • Contacts
    • Achievements
  • FAQ
    • How to get Transaction hash by Message hash
    • React (Vite) - Buffer Issues
Powered by GitBook
On this page
  1. Getting Started
  2. Architecture
  3. Core Components

LP Account

  • Due to TON’s asynchronous nature, when depositing assets, separate transactions are required to transfer assets into the Vault.

  • When users deposit assets in batches, the LP Account acts like a delivery service, waiting until all items have been checked out and packed before making a single delivery to the user's home (Pool) for asset exchange or liquidity provision.

  • If the user deposits only one type of asset, the LP Account is not needed – the Vault sends the asset directly to the Pool for processing, streamlining the transaction.


Example

Imagine you are shopping at a supermarket and purchasing multiple items, each checked out at a different counter:

  • After each checkout, the items are handed to the delivery service (LP Account) for temporary storage.

  • Once all items are checked out, the delivery service delivers everything to your home (Pool) in one go, ensuring complete delivery.

  • If you purchase only one item, it is sent directly from the checkout counter to your home, skipping the delivery service step.

This design ensures flexibility in the transaction process – even if assets are deposited in batches, the final transaction can be completed once all assets are ready.

PreviousPoolNextOracle

Last updated 4 months ago