Telegram USD
WebsiteMiniapp
  • 👋Welcome
  • Getting Started
    • 🗽Introduction
    • 😢Ecosystem Challenges
      • Low Yield on TON
      • Limited Real-World Integration
      • High DeFi Barriers
    • 🤙A New Path Forward
  • How tgUSD Works
    • 🏠Architecture
      • ▶️Current Version
      • 🌴Core Components
        • Engine
        • Staking
      • 🔮Next Version
    • ⚖️Peg Stability
    • 💰Protocol Revenue
    • 🙋‍♀️Use Cases
      • DeFi
        • Yield Tokenization
        • Lending
        • Dex
        • Leverage Yield Farming
        • Derivatives
        • Arbitrage
      • Cross-Chain Expansion
        • TAC
        • Tycho
  • Rewards
    • 🌟Ambassador Program
    • ✴️What is Torch XP
  • Technical
    • 📖Telegram USD SDK
      • Setup
      • Mint tgUSD
      • Stake tgUSD
      • Unstake stgUSD
      • Get stgUSD Conversion Rate
        • On-chain method
        • Off-chain method
    • 🛠️Deployments
  • Security
    • ✳️Risks
    • 🛡️Audits
  • User Guide
    • How to Mint
    • How to Stake
    • How to Unstake
    • FAQ
  • Legal
    • Terms of Service
  • Privacy Policy
  • Other
    • 🎨Brand Kit
  • Links
    • Website
  • tgUSD Miniapp
  • Telegram Channel
  • X (Twitter)
Powered by GitBook
On this page
  • Deposit Stablecoins and Mint tgUSD
  • Redeem Stablecoins (Redeem USDT)
  • Purpose of the Cooldown Period
  1. How tgUSD Works
  2. Architecture
  3. Core Components

Engine

PreviousCore ComponentsNextStaking

Last updated 9 days ago

The Engine contract is the core of the tgUSD system, responsible for minting tgUSD and redeeming USDT. Its workflow is as follows:

Deposit Stablecoins and Mint tgUSD

  • Users deposit USDT (with support for additional stablecoins planned) into the Engine contract.

  • Upon receiving the USDT, the Engine contract immediately transfers the funds to a multisig wallet (which will later be upgraded to a TON adapter).

    Depending on the target strategy:

    • Funds are bridged to external blockchains via Stargate, USDT0, or Symbiosis to generate yield.

    • If the estimated bridge slippage exceeds 0.1%, the transfer is executed via OTC to minimize slippage and protect capital.

    • If the yield strategy is on TON, no bridging occurs—the funds are deployed directly into on-chain opportunities.

  • Simultaneously, the Engine contract mints tgUSD for the user at a 1:1 ratio.

Redeem Stablecoins (Redeem USDT)

  • Redemption is currently limited to a whitelisted set of users.

  • The user burns their tgUSD to initiate the redemption process.

  • Once the burn is confirmed, the Engine contract deploys a dedicated Redeem Account to track the redemption request.

  • A 14-day cooldown period is required before the user can claim their USDT.

Purpose of the Cooldown Period

  • The cooldown period provides the protocol sufficient time to exit yield-generating strategies and free up collateral.

  • For example, most lending protocols rely on a utilization rate model to manage liquidity. When available liquidity drops, borrowing rates rise, which in turn encourages borrowers to repay or face liquidation.

  • The cooldown period gives the protocol sufficient time—especially under liquidity stress—to restore a healthier utilization rate, encouraging repayments so that withdrawals can be fulfilled as requested.

In the early stages of the protocol, in order to comply with certain legal constraints and to balance the market with limited capital while ensuring a smooth user experience, the protocol’s multi-signature wallet—under administrative control—reserves the right to cancel or expedite the redemption process. The same applies to unstaking operations.

Alternatively, users who prefer immediate liquidity can swap tgUSD for USDT directly via the .

🏠
🌴
Torch Finance Stable Swap
Engine contact's workflow