Shade docs
What Shade is
Shade is a shielded pool for HYPE on Elysium with a swap at the exit. You deposit HYPE from any wallet. Later you withdraw to another wallet, as HYPE or as any token with a Uniswap v4 pool against HYPE, and a zero-knowledge proof shows the withdrawal comes from some approved deposit without saying which one.
The contracts are Privacy Pools by 0xbow (Apache-2.0) with the ceremony's verifying keys, deployed for Shade on Elysium, plus the ShadeSwap exit adapter.
Your phrase and notes
The app makes a 12-word phrase in your browser and keeps it there, encrypted with a password you choose. Each deposit's secret and nullifier are derived from it, so the phrase alone rebuilds all your notes from the chain. Lose it and nobody can withdraw your deposits privately; you can still ragequit from the depositing wallet.
The association set
A withdrawal proves membership in two trees: the pool's tree of all deposits, and the association set of approved deposit labels. Shade's keeper approves deposits one hour after they land (unless the depositor is on a blocklist) and posts the set's root on chain, at most every 10 minutes. The list behind each root is published at /api/state.
Withdrawing and swapping
- Your browser builds the Groth16 proof locally; it takes seconds to a minute.
- The relayer submits it and pays the gas, so the receiving wallet never signs and needs no HYPE. Relay fee: 0.5% of the amount.
- Swap out: ShadeSwap withdraws to itself and buys the token on its v4 pool in the same transaction, with your minimum output in the proof's context.
- Partial withdrawals leave a change note that only your phrase can spend.
Ragequit
A depositor can always take a deposit back to the depositing wallet with a ragequit proof, approved or not. It is public and links the deposit to that wallet, so use it only if you need the funds back.
Fees
0.3% of each deposit to the treasury, and the 0.5% relay fee on relayed withdrawals, which pays the relayer's gas. The owner can change fees only within hard caps (1% deposit, 5% relay) and can't move deposits. Protocol fees are used to buy back and burn $SHDE.
Safety and risks
- Not audited. The circuits and pool are 0xbow's; the deployment and the swap adapter are Shade's.
- Privacy depends on the crowd: a withdrawal of an unusual amount shortly after a matching deposit is easy to guess.
- The keeper decides which deposits join the association set; it can delay approval but can't take funds.
Contracts
| Contract | Address |
|---|---|
| Entrypoint | Deploying soon |
| HYPE pool | Deploying soon |
| ShadeSwap | Deploying soon |
| Withdrawal verifier | Deploying soon |
| Ragequit verifier | Deploying soon |
| Treasury | Deploying soon |
Chain: Elysium (99901). Explorer: explorer.volta.family.
Shade