| name | cross-trade |
| description | Activate when the user works with CrossTrade fast withdrawal, bypassing the 7-day optimistic rollup withdrawal delay, L2-to-L1 instant bridging, provideCT, claimCT, or reprovideCT functions.
|
| license | MIT |
| metadata | {"author":"tokamak-network","version":"0.1.0"} |
CrossTrade Fast Withdrawal
This skill is under development. Core content coming soon.
CrossTrade enables instant L2→L1 withdrawals by matching users with market makers who provide L1 liquidity, bypassing the standard 7-day optimistic rollup challenge period.
How It Works
Standard withdrawal: L2 → wait 7 days → L1 (slow, free)
CrossTrade: L2 → market maker → L1 (instant, fee)
- User creates a withdrawal request on L2
- Market maker verifies L2 CTC transaction logs
- Market maker calls
provideCT on L1 (pays user immediately)
- User calls
claimCT on L2
- If L2 tx fails after L1 payment: market maker calls
reprovideCT (recovery)
Contract Addresses
| Contract | Network | Address |
|---|
| L1CrossTradeProxy | Mainnet | 0x23DDf582c26Da5FDb7514aD22e7D74A369faD117 |
| L2CrossTradeProxy | Thanos L2 | 0xD6e99ec486Afc8ae26d36a6Ab6240D1e0ecf0271 |
Key Functions
| Function | Chain | Description |
|---|
provideCT | L1 | Market maker fulfills withdrawal request |
claimCT | L2 | User claims funds after CrossTrade |
reprovideCT | L2 | Recovery if L2 tx failed after L1 payment |
Critical Gotcha: reprovideCT
If claimCT fails on L2 after the market maker has already paid on L1, the reprovideCT function is the recovery path. Without it, the market maker loses funds. Always implement reprovideCT handling in production integrations.
Related