Minting Service

The tToken Minting Service is structured to handle mint requests robustly, securely, and scalably through clearly defined components:

  • Queue Service:

    • Accepts mint orders via API requests.

    • Serves as a durable layer, decoupling frontend interactions from backend processing.

    • Ensures reliability and scalability through asynchronous operation.

  • Minting Orchestrator:

    • Continuously processes queued mint orders, verifying signatures and user whitelisting status.

    • Coordinates transactions from MPC wallet to the RWA issuer and initiates minting of tTokens.

  • Settlement Watcher:

    • Monitors blockchain events for finalized RWA issuances.

    • Automates the fulfillment of pending assets, updating tToken states via the Minter contract.

Minting Process

The minting lifecycle for a typical user interaction includes the following steps:

  1. Order Submission: User submits mint order details (USDC amount, desired tToken, and permit signature) via API.

  2. Asset Transfer: User’s USDC is moved to Theo’s MPC wallet.

  3. Mint Initiation: MPC initiates minting by transferring USDC to the RWA issuer asynchronously.

  4. Optimistic Minting: The corresponding tTokens are immediately minted, reflecting the anticipated RWA amount.

  5. Finalization: Upon issuer settlement, the actual RWAs are transferred back to the MPC wallet and subsequently to the tToken vault, resolving pending state entries.

Last updated