Privy - Email Login
Users log in with email, no MetaMask required.Login Flow
What Privy Creates
- EOA (Externally Owned Account): A real Ethereum wallet
- Private Key: Encrypted, stored by Privy
- Recovery: Via email if user loses access
Benefits
No Seed Phrase
User never sees a seed phrase
Multi-Platform
Works on mobile and desktop
Social Logins
Google, Apple, Twitter supported
Email Recovery
Recover wallet via email
ZeroDev - Smart Wallet
ZeroDev transforms the Privy EOA into a Smart Wallet (ERC-4337).Smart Wallet vs EOA
| Feature | EOA (Privy alone) | Smart Wallet (plus ZeroDev) |
|---|---|---|
| Gas payment | User pays | Sponsor can pay |
| Batch txs | 1 tx = 1 action | 1 tx = N actions |
| Recovery | Email only | Social recovery possible |
Paymaster - Who Pays Gas
For trading, the Operator Wallet pays gas, not the ZeroDev Paymaster.
Operator Wallet
A backend-controlled wallet that pays gas for users. Address:0x7aDB49aE5DF789EE9B9F82614609967cCe4eE23d
What the Operator Does
| Operation | Description |
|---|---|
| Sign orders | Via @polymarket/order-utils |
| Execute fillOrder | When orders match |
| Gasless split | Transfer and split for user |
| Gasless merge | Merge and transfer for user |
Security
Hybrid Wallet Model
To handle ERC1155 compatibility issues, we use a hybrid approach:| Asset | Wallet | Why |
|---|---|---|
| USDT / wUSDT | Smart Wallet (ZeroDev) | Gasless wrapping and trading |
| YES / NO Tokens | EOA (Privy) | Prevents safeTransferFrom reverts |
Implications
1
Split
wUSDT from Smart Wallet leads to tokens sent to EOA
2
Sell
EOA signs approval, EOA sells tokens, wUSDT goes to Smart Wallet
3
User Experience
Seamless - UI shows combined balance from both wallets
