Skip to main content

Periphery contracts

Version: V2
View Markdown

Periphery contracts sit around MultiVault and the emissions system. Most of them let you build on the protocol without changing it. FeeProxy is the one most integrators will use. It lets anyone who routes deposits and creations into Intuition earn an affiliate fee on that flow.

ContractChainStatusWhat it does
FeeProxyIntuition mainnet and testnetLiveCharges a registered affiliate's fee on deposits and creations, then forwards the rest to MultiVault
Metalayer hubs and spokesBase and Intuition mainnetLiveBridge TRUST, USDC and WETH between Base and Intuition
TrustSwapAndBridgeRouterBaseRedeployment pendingSwaps ETH or an ERC-20 for TRUST and bridges it to Intuition
EmissionsAutomationAdapterBaseLiveLets a keeper trigger each epoch's mint and bridge

FeeProxy ships in the core contracts repository. The router and the automation adapter live in the separate periphery repository, which has no testnet deployments. Periphery repository

Earn affiliate fees with FeeProxy​

A wallet, app or agent that sends users to Intuition can register as an affiliate and set its own fee, within protocol caps. Users route their MultiVault calls through FeeProxy with the affiliate's address. FeeProxy takes the fee, pays it to the affiliate in the same transaction, and forwards the rest to MultiVault. The user's shares and atoms are the same as with a direct call.

On mainnet, registration costs 100 TRUST. Fees are capped at 20% plus a fixed fee of up to 50 TRUST. See FeeProxy for registration, the fee formula and the approvals users need. To route users through an existing affiliate from an app, follow Route writes through the FeeProxy.

Bridge with Metalayer​

Hubs on Base lock assets and spokes on Intuition release them. TRUST arrives on Intuition as native gas through MetaNativeSpoke. The USDC and WETH hubs on Base use the same addresses as their spokes on Intuition. The emissions controllers use the TRUST hub to deliver each epoch's rewards. TRUST token lists the TRUST bridge addresses, and Deployments lists all of them.

Swap and bridge in one step​

TrustSwapAndBridgeRouter buys TRUST on Base through Aerodrome Slipstream pools and bridges it to a recipient on Intuition. Every entry point is payable, because the bridge fee is paid in ETH. Excess ETH is refunded.

FunctionUse
swapAndBridgeWithETH(path, minTrustOut, recipient, deadline)Swap ETH for TRUST. The path must start with WETH and end with TRUST.
swapAndBridgeWithERC20(tokenIn, amountIn, path, minTrustOut, recipient, deadline)Swap an approved ERC-20 for TRUST.
bridgeTrust(trustAmount, recipient)Bridge TRUST you already hold, after approving the router.
quoteBridgeFee(trustAmount, recipient), quoteExactInput(path, amountIn)Quote the bridge fee and the swap output.

The contract hardcodes its Base addresses. The current version adds the deadline parameter, so the older router deployed on Base does not match its ABI. No router address is published for this release. The @0xintuition/contracts-v2-periphery@1.1.0-alpha.0 package ships the router's ABI and bytecode for the redeployment. TrustSwapAndBridgeRouter

Automate emissions​

EmissionsAutomationAdapter holds CONTROLLER_ROLE on the BaseEmissionsController. checkUpkeep returns true when the current epoch has not been minted. An account with the adapter's UPKEEP_ROLE then calls performUpkeep, which mints and bridges that epoch. The admin can pause the adapter. See Emissions for the full flow. EmissionsAutomationAdapter

Shared infrastructure​

Intuition mainnet also runs standard utility contracts at their usual addresses: ERC-4337 EntryPoint v0.8 at 0x4337084D9E255Ff0702461CF8895CE9E3b5Ff108, Multicall3 at 0xcA11bde05977b3631167028862bE2a173976CA11 and the Safe singleton factory at 0x914d7Fec6aaC8cd542e72Bca78B30650d45643d7. Atom wallets use the EntryPoint.

  • FeeProxy is the full reference for the affiliate contract.
  • Deployments lists every address by chain.
  • Audits lists the review that covered the periphery repository.

Applies to V2 · @0xintuition/periphery 0.1.1 · @0xintuition/deployments 0.1.1