Momorphic: Confidential Prize Savings, Live on Sepolia

Momorphic: Confidential Prize Savings, Live on Sepolia

Momorphic is a confidential prize-savings protocol built with Zama FHEVM. The idea was inspired by the Zama Developer Program Mainnet Season 4 challenge: build a confidential version of PoolTogether in which deposits, balances, draw weights, and prizes remain encrypted.

The first Momorphic deployment is now live on Ethereum Sepolia with test EURS and USDC vaults using Aave V3 yield strategies.

Implementation overview

Users first shield test EURS or USDC into ERC-7984 confidential tokens, then submit an encrypted deposit to a PrizeVault. The input proof is bound to the vault, sender, and chain. Deposit amounts, account balances, withdrawal claims, TWAB draw weights, and prize balances remain encrypted.

Each vault unit separates accounting, custody, yield, recovery, and prizes:

  • PrizeVault maintains the encrypted user ledger, membership state, and TWAB draw weights. It does not custody principal.
  • VaultRebalanceManager holds the confidential assets, nets deposits and withdrawals by epoch, and is the only component allowed to call the yield adapter.
  • YieldAdapter supplies and withdraws the public underlying asset from Aave V3.
  • ConfidentialPrizePool manages the shared cZAMA reserve and global draw. It never holds user principal.

For rebalancing, encrypted deposits D and withdrawals W are reduced to one net direction:

netInvest = max(D - W, 0)
netDivest = max(W - D, 0)

Only the net result crosses the confidential/public boundary with a Zama decryption proof. This avoids revealing each user’s deposit or withdrawal amount.

From yield to prizes

Principal and yield are kept on separate paths. When a vault has surplus assets, only

availableYield = max(totalAssets - principal, 0)

can be liquidated. A time-decaying TPDA auction exchanges that yield for public ZAMA. The net ZAMA is then wrapped into cZAMA and added to the shared encrypted prize reserve.

The draw

All vaults share one prize round. Vault selection is weighted by each vault’s public prize contribution. Inside the selected vault, participant weights remain encrypted.

The protocol creates independent FHE randomness samples. Routing randomness is publicly decrypted to select the vault, while the winner sample stays encrypted. The pool derives an encrypted target from the selected vault’s frozen TWAB weights and scans participants in batches. The winner’s cZAMA prize is credited without publishing its amount.

Privacy scope

Momorphic provides amount confidentiality, not wallet anonymity. Wallet addresses, transaction timing, selected vaults, public membership, aggregate flows, and prize-claim activity can still be observed onchain. The app shows the full privacy disclosure before deposit, membership registration, and the first withdrawal request.

Try the testnet

App: momorphic.xyz/app

The current deployment uses Sepolia test assets only; they have no real-world value. Connect a test wallet, obtain EURS or USDC from the Test Tokens page, shield it, select a vault, and submit an encrypted deposit.

Feedback on the contract design, draw flow, privacy boundaries, and frontend integration is welcome.

Save. Earn. Win—with amounts encrypted.