Engine
Last updated
Last updated
The Engine contract is the core of the tgUSD system, responsible for minting tgUSD and redeeming USDT. Its workflow is as follows:
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.
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.
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.
Alternatively, users who prefer immediate liquidity can swap tgUSD for USDT directly via the .