Architecture & Smart Contracts

How mStable tokens are structured onchain and the role of automation.

Smart Contract Base

  • Built on dHEDGE infrastructure, a battle-tested set of contracts for asset management.

  • Provides non-custodial vault logic, ERC20 token issuance, and guardrails for integrations.

  • Each mStable token (e.g. mPT-sUSDe) is its own smart contract instance.

Automation & Bots

  • Rollover bots: trigger redemption of expiring PTs and entry into new PTs.

  • Rebalance bots: adjust positions to maintain safe Aave health factors.

  • Capacity bots: secure Aave borrow slots when caps reset, ensuring mStable tokens get access.

  • All actions are non-custodial — bots execute predefined strategies, they do not hold user funds.

Permissions & Safety

  • Pause functions: emergency shutdown tools to halt deposits or rollovers if needed.

Contract Addresses (Ethereum Mainnet)

(placeholder — to be filled once final deployments are live)

Last updated

Was this helpful?