Skip to content
Meme Traded Fund

Trust and safety

Architecture

The MTF contracts, what each one does, who can call what, and the admin powers with their timelocks.

All docs as text
YouwalletMTFRouterape, redeemPoolManagerUniswap v4IndexHookvault, mint, burnMeme poolsV2 and ShibaSwapIndexTokenMEME500MemeRegistryapproved list, tiersFeeSplitter40 / 25 / 15 / 20IndexLockerlocks, rewardsIndexFactorycreates indexesBuyback walletmanual burnschecksMEME500

How the contracts connect.

Text version
  • Users call MTFRouter (ape, redeem) and IndexLocker (lock, claim, unlock).
  • MTFRouter swaps through the Uniswap v4 PoolManager, which calls IndexHook on every MEME500 swap.
  • IndexHook buys and sells the memes on V2 style pools, holds the vault and mints and burns IndexToken (MEME500).
  • IndexHook checks MemeRegistry for approved tokens and sends fees to FeeSplitter.
  • FeeSplitter apes the lockers' share into MEME500 for IndexLocker, sends the buyback share to the buyback wallet, and pays the treasury and creators.
  • The MTF token trades in its own Uniswap v4 MTF/ETH pool; MTFFeeHook takes a 1% ETH fee on every buy and sell and pays it to the treasury, backing and buyback wallets. It is separate from the MEME500 contracts.
  • IndexFactory creates new indexes and their pools (user-built indexes are switched off at launch).

Contracts#

ContractRoleWho calls it
IndexHookUniswap v4 hook for every index pool. Buys and sells the basket, holds the vault, mints and burns index tokens, enforces the 3% guard and the in-kind fallback.Only the PoolManager calls the swap callbacks. Views are public.
MTFRouterEntry point for ape and redeem. Never spends another user's approval.Anyone
IndexFactoryCreates indexes and their pools, holds creator stakes, stores card metadata URIs.Owner for official indexes; anyone for user-built indexes once switched on
MemeRegistryThe approved list and token tiers.Owner proposes (48h timelock) and delists (instant)
IndexTokenThe ERC-20 for each index, such as MEME500.Only the IndexHook can mint and burn
FeeSplitterReceives fees (ETH on apes, MEME500 shares on redeems) and splits them: lockers, creator, buyback wallet, treasury.Keepers convert the locker share (rate limited, minimum output); the buyback share is sent to the buyback wallet
Buyback walletA public wallet that receives the MEME500 buyback share and 20% of the MTF fee. The team uses it to buy back and burn MTF manually, at its discretion.Set at deploy; on MEME500 changing it requires a 48h timelock; on MTFFeeHook the owner can change it with setWallets
IndexLockerLocks, reward streaming in the index token, early exit penalties streamed over 7 days, and decay to 1× after maturity.Anyone (their own locks); anyone can kick a matured lock
MTF tokenPlatform token: fixed 1B supply, no mint function, holders can burn. 100% went into a one-sided Uniswap v4 MTF/ETH pool; the LP NFT was sent to 0x…dEaD.Anyone (ERC-20)
MTFFeeHookHook of the MTF/ETH pool. Takes a fixed 1% of every buy and sell in ETH and pays 50% treasury, 30% MEME500 backing, 20% buyback wallet during the swap. Applied the one-hour anti-snipe limit at launch.Only the PoolManager calls the swap callbacks; the owner can change the three fee wallets

Admin powers and their limits#

PowerWhoDelay
List a meme or raise its tierRegistry owner48 hour timelock
Delist or downgrade a meme (blocks apes, never redeems)Registry ownerInstant
Change MEME500 target weightsOwner48 hour timelock
Change fee splitter configuration or addresses used by the hookOwner48 hour timelock
Change the buyback, backing or treasury walletOwner48 hour timelock
Change the MTF fee wallets (treasury, backing, buyback) on MTFFeeHookHook ownerInstant (setWallets); the 1% fee and the 50/30/20 split cannot be changed
Buy back and burn MTFTeam, from the buyback walletManual and discretionary; every burn is on-chain
Emergency pause of new apesOwner (and a creator for their own index)Instant; each can only clear its own pause; redeems stay open
Change the ape limits (min and max per ape, deposit cap)OwnerInstant. Today: 0.01 ETH min, 5 ETH max per ape, no deposit cap
Appoint or remove keepersOwnerInstant
Process locker rewardsKeeperRate limited, minimum output
Rebalance toward scheduled targetsRebalance keeper appointed by the owner (none appointed yet)Bounded size, minimum output, a few times per day at most
Switch user-built indexes onFactory owner48 hour timelock; switching off is instant