How It Works
The Operator Model
1
User Approves Once
User approves operator to move their tokens (one-time, gasless via ZeroDev)
2
User Submits Order
User sends order to backend (HTTP request, no signature)
3
Operator Signs
Backend signs the order using operator key
4
Operator Executes
Operator pays gas to settle on-chain
Gasless Split
Convert wUSDT into YES and NO tokens without gas.Flow
API
Smart wallet address (wUSDT source)
Amount in wei
Market condition ID
Gasless Merge
Convert YES and NO tokens back to wUSDT.Flow
API
User wallet address
Amount in wei (must have equal YES and NO)
Market condition ID
Gasless Trading
Orders are signed by the operator, not the user.Traditional Signing
Mayybee Gasless
The operator is a registered signer on CTFExchange, so its signatures are valid.
Security Guarantees
Can the operator steal my funds?
Can the operator steal my funds?
No. The operator can only execute trades you explicitly request. It cannot withdraw funds or make trades without your order submission.
What if I want to revoke access?
What if I want to revoke access?
You can revoke the operator approval at any time by calling setApprovalForAll(operator, false) on the contracts.
Are transactions reversible?
Are transactions reversible?
No. Once settled on-chain, trades are final. But the operator cannot execute anything without your explicit request.
Gas Costs (Paid by Operator)
| Operation | Gas | Cost (BSC) |
|---|---|---|
| fillOrder | 150k | approximately $0.02 |
| splitPosition | 200k | approximately $0.03 |
| mergePositions | 180k | approximately $0.025 |
