Docs

Reference

Modules and adapters

Every piece Mortise ships, what it lets an agent or module do, and the market the owner lists for it. All of them are immutable. Where a market says “listed only”, open markets never add one: the owner lists each market on its own.

Trade

Every swap needs a price floor in the Gate for its direction, and its output always goes to the vault.

PieceWhat it doesMarketAddress
Uniswap v3 swapsExact-input swaps through Universal Router 2.1.2 on pools of the official factory.Pool address0x61DCf90FeE816EbD025766663cDF0598AE916f79
Uniswap v4 swapsExact-input single-pool swaps through Universal Router 2.1.2, hooked pools included. What the pool does not take comes back to the vault.Pool id, hook included0x0A2C90C1CF8a827515971d9913E988f716DF73f6
Uniswap v2 swapsExact-input swaps on one pair of the official v2 factory, through Universal Router 2.1.2.Pair address0x41D0Be363De3b05F4A3C94820B690b1851A8a1Ed
PancakeSwap v3 swapsExact-input single-pool swaps through the PancakeSwap Universal Router and PancakeSwap's own Permit2.Pool address0xe35C76466C723C88E75B12469E813488065b6Eab
PancakeSwap Infinity swapsExact-input single-pool swaps on Infinity CL pools. ETH the pool does not take is swept back to the vault.keccak256 of the pool key0x1e403cf84375845216EB8335C84724033FB4FE44
Aero swapsExact-input single-pool swaps on Aero concentrated liquidity pools through the Aero SwapRouter.Pool address0x8Ef073497C2782b31Bd691A8230FDcc6E9c1Aa0C
1inch swapsSwaps through the 1inch router with calldata built off-chain. The route is chosen off-chain, so the floor bounds the price.Pair as traded0xBBf54683bEa7964D4F54F68e61F50053e4a348FF
Sushi swapsSwaps through Sushi's RedSnwapper with calldata from the Sushi API. Only snwap is accepted, and the output must go to the vault.Pair as traded0xF03FDF71b37473865B7aee99ff1349458efE6bD1
Pons V2 curvesBuys and sells on Pons V2 bonding curves, paid in ETH or the launch's pair token. The trader contract routes each token to its curve.Curve0x16Cb81C4C61FA7064D7325B8fA344E45833A391D
FlapBuys and sells through the Flap Portal, on the curve or the DEX after graduation.Token pair0x869bb75F26D03a4B23952f1A29960bE015eE2bDa
Wrap ETHWraps and unwraps ETH inside the vault.One fixed market0xcb7EE95d267676Cc875a64A293A353604d497F30

The Pons V2 trader at 0x86775d6Ce307aAc55a42eB86612FC2b3aB55677a is the fixed entry point the Pons adapter calls. It holds nothing between calls. For 1inch and Sushi the market is keccak256(abi.encode(tokenIn, tokenOut)) with the zero address for ETH, so listing a pair allows that direction only.

Earn

PieceWhat it doesMarketAddress
Morpho BlueSupplies and withdraws a market's loan token, with the vault as owner and receiver.Market id0xA972dF5d1196f5a0247de2d81fDAf801796C1D16
Kaskad (Aave v3)Supplies an asset to Kaskad, the Aave v3 pool on Robinhood Chain, and withdraws it. The vault holds the aToken, and withdrawals only pay the vault.Asset address0x3b1e415443ccBB11c5B0e64a71A33c6F3Ab70989
Lista LendingSupplies a Lista Lending (Moolah) market's loan token and withdraws it. Markets with a supplier whitelist refuse the vault.Market id, listed only0x91880854d8738564FcC681E2A14CD9186e7a0508
Priors credit poolLends USDG to the Priors pool and takes it back, or borrows USDG on an ERC-8004 identity the vault owns and repays it. Loans only pay the vault.Lending; each borrowing identity listed only0xc7FB4a6B54b3ba55E31A7F58bA5d45169B2A6Fe9
ERC-4626 vaultsDeposits into, withdraws from and redeems from a listed vault, such as a Morpho vault.Vault address, listed only0xD4d2827b2a8580bd6DbF2F0Bdcce239F795aAa61
BeefyDeposits into a Beefy Cowcentrated Liquidity Manager or a Beefy vault, and withdraws. Shares and tokens always go to the vault.Vault or CLM, listed only0x61dB2eFA7561A9b99E3226d118b5Db9b7F63b92a
Pendle fixed yieldBuys a market's PT, sells it before maturity or redeems it after, through the Pendle router. Markets of the official factory only, and every trade keeps the floor.Market, listed only0xe7B2BbFc3b2d5eE81991043A1FE35B52D86Fa249
Uniswap v3 liquidityOpens, increases, decreases, collects and burns positions. The pool price must sit inside the band set by the pair's two floors.Pool0x6581543E5b0b42E3dD066e1eF6AF4C6a60309aF2
Uniswap v4 liquidityOpens, increases, decreases and closes positions, inside the same band. Earned fees come back to the vault.Pool id0x0Af90790a50295D396408a71F9cCC7b49bF4ec19
Aero liquidityOpens, adds to, takes from, collects and closes Aero concentrated liquidity positions, inside the same band. Positions stay unstaked.Pool address0x61DF34fE62a3276D819EA9D599479615b63a1DB0
Morpho Blue borrowingBorrows against collateral the vault supplies, under a loan-to-value ceiling the owner sets per market, below its liquidation LLTV. Every borrow ends with a check of the position.Market and ceiling, listed only0xA89b35F26466d28D4270B728DA6B6643888707f0
Borrowing can still be liquidated

The ceiling bounds a position when it changes. A price move or interest can still take it to the market's LLTV and liquidation, a loss outside the caps, which the owner accepts by listing the market.

Run on its own

PieceWhat it doesAddress
DCAThe same swap at a fixed interval, a set number of times, through any swap adapter. Only the keeper the owner named can trigger it, and missed runs never pile up.0xC319309684725a0cF3F712F630A9e7c63ACE345a
AutomationUp to eight tasks of up to four actions each: once at a time, on an interval, or when a Chainlink price crosses a level. Covers recurring payments, take-profit and stop-loss.0x2aFf436334EbcafA4233363fcAf95bFE63219d7d
RebalanceKeeps two tokens near a target share of their Chainlink value, selling the excess with a minimum output set from the oracle less the owner's slippage.0xe6e501a2A6422587E8c81813B805D52B4b4fFc57
Auto-compoundPuts a liquidity position's fees back into it in two keeper triggers: the first collects, the second deposits what the vault's balances rose by, within one hour.0xfd774AdE825d243B08b4e028B59216E39A0Cd4a0
TransfersSends a token to a recipient the owner listed for that token: payroll, payments or a cold wallet.0x9171159781C91133009EEfEb528397b256aEf347

Auto-compound measures the rise on the vault's whole balance, so tokens that reach the vault between its two triggers are deposited too. Set its caps on both tokens to what one round of fees can be.

Move and pay

Funds that leave the chain are outside the Gate. Each route fixes the recipient, the lowest rate and the highest fee, and a send is charged to the actor's caps on the token and on ETH.

PieceWhat it doesMarketAddress
Across bridgeBridges an ERC-20 through the Across SpokePool on a listed route: destination chain, recipient, tokens and the lowest rate.Route, listed only0x3716d6CD2D06CEC9a1e9067eaEdD2D2F7467bD21
LayerZero USDGSends USDG through LayerZero OFT to a listed route: destination endpoint, recipient, lowest amount received and highest fee. The fee is paid in ETH and any excess comes back.Route, listed only0x61FE2335508cB2Cf818b173d6900bAE8cC720eAf
Chainlink CCIPSends a token to an EVM recipient through CCIP on a listed route: chain selector, recipient, token and highest fee. List only tokens that burn and mint on both sides.Route, listed only0xfA875b19C28d32eeebfc5cE2d33dF1Df634f06e9
x402 paymentsPays an x402 seller from the vault through the Mortise escrow. See Pay for x402 resources.Seller's payTo, listed only0xa3e7A52413be4c050f9d613c00b614f5dc59cCEb
Lighter perps marginDeposits USDG to the vault's own Lighter account, requests withdrawals, claims them and cancels open orders. Withdrawals land in the vault.One fixed market0xEE4CBD35bA70cd69d71D3b130f142b1886f7F67a
Lighter

Trading on Lighter happens with the account's API keys, outside the Gate. A deposit is charged to the actor's USDG cap, but what trading can lose is the whole balance on Lighter. Withdraw profits regularly. On mainnet, ZkLighter sent a withdrawal straight back to the vault, so the claim step is only a fallback.

Agents and family

PieceWhat it doesAddress
Sub-vaultsCreates vaults with no keys of their own, run only by their parent, at an address fixed by the parent and a number. Sweeps them back in one call.0x7d42FD334B2e342234eb47c0Caf4b3012260F81b
Family transfersMoves tokens and ETH between linked vaults, and nowhere else.0x398f4003F11197d70744D14423114D81280B5042
Agent identityRegisters an ERC-8004 identity owned by the vault, with the vault as its agent wallet, and keeps its URI and metadata current. No call can transfer it or point its wallet elsewhere.0x40714A05fF27C0fF24106299b1b584BCaedAa76b

Keep it yours

PieceWhat it doesAddress
Root validatorOne to ten ECDSA keys or passkeys with a threshold, guardian recovery after 7 to 90 days, and optional paymaster-only mode.0xD10b7D017C00f078F4b39c348Ba50Af9422FC6cC
TimelockA delay of 1 to 30 days on every change that widens what the vault allows, with registered addresses that withdrawals can reach at once.0x45d02022232D78AA78716B837DDD63fb57Af40Be
Price breakerSet as the vault's pauser, it lets wallets the owner names pause the vault at any time, and anyone pause it once a fresh Chainlink price leaves the owner's bounds. Only the root unpauses.0x0a880ce9c5D521AC35Dd7215238a84EB715e8eb0
Vault signerOptional ERC-1271 signing by the root, each signature bound to one vault through ERC-7739. Off while a hook is installed.0x4b26cb1c6f31d1749F741cC7dF5e25B4CbfF827a

A pause freezes every agent and module of the vault, stop-loss tasks included. A feed with no usable answer never trips the price breaker, so nobody can freeze a vault because a feed went quiet.