Z Trade
Z’s flagship DEX with concentrated liquidity, enshrined on Z with native ShieldedPool integration.How Private Trading Works
Z Trade uses a RelayAdapter contract to execute an atomic three-step flow: unshield, execute, reshield.- The user’s assets sit as private notes in the ShieldedPool.
- The user builds a ZK proof authorizing the swap and submits it to a broadcaster.
- The broadcaster calls the RelayAdapter, which atomically:
- Unshields the input tokens from the ShieldedPool to the adapter contract
- Executes the swap on the AMM (approve, swap, collect output)
- Reshields the output tokens back into the ShieldedPool as new private notes
keccak256(nullifiers, commitments, actionData)) is included in the ZK proof’s public inputs. This prevents the broadcaster from modifying the swap parameters, changing the recipient, or substituting a different trade. If any bound parameter changes, the proof is invalid.
Z Lend
Z’s flagship lending and borrowing protocol, enshrined on Z with ShieldedPool integration.How It Works
Deposit collateral and borrow against it. Supported collateral assets include ZEC, stZEC, Z, stZ, USDZ, and yUSDZ. The same RelayAdapter pattern used by Z Trade applies here: deposit and borrow operations can be executed from the ShieldedPool through stealth addresses, keeping the borrower’s identity unlinkable.Sample Use Case
Deposit stZEC as collateral. Borrow USDZ. Maintain ZEC price exposure and earn staking yield (if using stZEC) while accessing private stablecoins. This is the composition path described in Liquid Staking.Z Stake
The staking application for the Zcosystem. Z Stake issues liquid staking tokens that turn staked assets into composable capital. stZEC (post-launch) represents deposited ZEC on Z. Deposit ZEC, receive stZEC. stZEC is freely composable: trade it on Z Trade, use it as collateral on \Z Lend, deposit it into the ShieldedPool (MASP) for privacy. stZ is the same concept for the Z token. Stake Z, receive stZ, earn consensus rewards. stZ maintains DeFi composability while the underlying Z participates in consensus. For the full liquid staking architecture, see Liquid Staking.USDZ
Privacy-preserving stablecoin backed 1:1 by stablecoin reserves. Deposit stablecoins into the USDZ mint contract on the source chain. Receive USDZ on Z. USDZ can be deposited into yUSDZ to earn yield, used as collateral on Z Lend, traded on Z Trade, or shielded in the ShieldedPool (MASP). For the full USDZ architecture, see USDZ.yUSDZ
A yield-bearing stablecoin token. Users deposit USDZ into an ERC-4626 vault and receive yUSDZ, which appreciates as yield accrues. For the full yUSDZ architecture, see yUSDZ.What’s Next
Z Perps. Perpetual futures with private positions. Leverage trading where nobody outside can see position sizes, direction, or liquidation levels. Z Vault. Yield strategy vaults across different assets. Z Vault accepts deposits and deploys them into optimized strategies within the Zcosystem.Why Vertical Integration
Agents need a single trusted stack. AI agents operate best when they can move through a composable set of applications with predictable patterns and no need to discover or evaluate third-party protocols. Privacy integration benefits from coordinated design. The RelayAdapter pattern, which makes private DeFi possible, requires tight coupling between each application and the privacy layer. This works best when the applications are designed as one system. Revenue compounds internally. Because every primitive is enshrined, revenue from Z Trade fees, Z Lend interest, USDZ fees, yUSDZ performance fees, staking protocol fees, and bridge fees stays within the protocol. AI makes vertical integration practical. AI tooling has made it dramatically faster and safer to ship a full vertical stack. What used to require separate teams for each primitive can now be built and maintained as one coordinated system.The DeFi Composition Stack
The applications are designed to compose. A user can move through the full stack in a single session:- Deposit ZEC into stZEC
- Deposit stZEC as collateral on Z Lend
- Borrow USDZ against it
- Deposit USDZ into yUSDZ (earn yield on the borrowed stables)
- Shield assets in the ShieldedPool (MASP)