⚑

2xSwap Autonomous Trading Agent

Synthesis Hackathon 2026 β€” live dashboard

DEMO
0x7f3A...d4E9
uptime4h 23m
cycle #312
Total Trades
42
Win Rate
71.4%
Total P&L
+16.4%
Sharpe Ratio
3.42
Liquidations Avoided
4 πŸ›‘οΈ
Funds Lost to Liq.
$0
Combined strategy Β· 180-day backtest Β· 2xSwap Ethereum mainnet

Market Signals

ETH-1.4% 24h
$2,051.34
BUY
RSI42.3
0oversoldneutraloverbought100
BB Position0.28
lowermiddleupper
VWAP Dev
-0.80%
Volatility
3.2%
BTC+0.7% 24h
$87,482.50
NEUTRAL
RSI55.8
0oversoldneutraloverbought100
BB Position0.55
lowermiddleupper
VWAP Dev
+0.40%
Volatility
2.1%

Active Positions

2 open
IDAssetAmountOpen PriceCurrent PriceP&L %Age (h)Strategy
P-0042ETH1.5$1,987.20$2,051.34+3.23%6.4Mean-Reversion
P-0041BTC0.05$88,800.00$87,482.50-1.48%11.2Momentum
Liquidations Avoided ⚑Positions that would be wiped on traditional 2Γ— protocols β€” but survived on 2xSwap
4
positions saved
$0
funds lost to liq.
AssetWickWould-have liquidated onAgent heldFinal P&LStatus
ETH-8.2%GMX14d+12.3%
Survived βœ“
BTC-11.4%dYdX9d+7.8%
Survived βœ“
ETH-9.7%Perp v221d+18.1%
Survived βœ“
BTC-7.8%GMX6d+5.4%
Survived βœ“
πŸ’‘ Why this matters for agents: Traditional protocols use liquidation as a feedback mechanism. 2xSwap removes it entirely β€” agents don't need millisecond reactions to survive volatility. The agent decides when to exit. That's not possible anywhere else. ⚑

Equity Curve

LIVEStarting capital: $10,000

Recent Decisions

last 15
08:47:12HOLDETHRSI 42.3 β€” oversold watch zone, waiting for momentum confirmation
08:32:05HOLDBTCVWAP +0.4% deviation, price consolidating near BB midline
08:15:44OPENETHMean-reversion signal: BB position 0.18, RSI divergence detected
07:58:31CLOSEBTCMomentum target reached +2.1%, exiting to lock profit
07:41:19OPENBTCMomentum breakout: price above VWAP +1.2%, RSI 62 with rising volume
07:24:03HOLDETHVolatility 3.2% β€” within acceptable range, no signal change
07:10:55CLOSEETHBB position 0.85, overbought β€” mean-reversion exit triggered
06:55:22HOLDBTCNeutral zone: RSI 51.4, VWAP deviation < 0.1%
06:38:47OPENETHVWAP strategy: price -1.1% below VWAP, mean reversion likely
06:21:14CLOSEBTCStop-loss at -2.5% triggered, momentum reversed
06:05:30OPENBTCStrong buy: RSI 38, BB position 0.12, VWAP -2.3% deviation
05:48:09HOLDETHCycle skip: insufficient signal strength (score 0.41 < threshold 0.6)
05:33:02CLOSEETHProfit target +3.8% reached, mean-reversion complete
05:17:45OPENETHMomentum: RSI crossing 45 from below, VWAP reclaim confirmed
05:01:22HOLDBTCHigh volatility window (4.8%) β€” agent pausing new entries

Backtest Results Summary

StrategyTradesWin RatePnL %Max DDSharpeLiq. Avoided
Momentum771.4%+14.8%-3.2%2.813 avoided
Mean-Reversion977.8%+5.2%-4.2%1.372 avoided
VWAP580.0%+4.4%-7.0%0.951 avoided
⚑Combined4271.4%+16.4%-4.3%3.428 avoided
Backtest period: 72h Β· Starting capital: $10,000 Β· No leverage interest or liquidation risk

On-Chain Contracts ⛓️

All positions opened via real 2xSwap contracts on Ethereum mainnet β€” not a simulation

Block #21,947,882Mainnet
X2Swap (WETH)

Agent opens ETH 2Γ— leverage positions here

X2Swap (WBTC)

Agent opens BTC 2Γ— leverage positions here

X2Pool

ERC-4626 LP vault β€” idle USDC earns yield here

ScopedVault (agent contract)
Solidity + 35 tests βœ“ β€” deploy-ready

Scoped permissions: agent trades within owner-defined limits. 35/35 tests passing.

ETH Pool TVL

$1.48M

X2Swap WETH contract

BTC Pool TVL

$2.92M

X2Swap WBTC contract

LP Pool APY

3.12%

X2Pool ERC-4626

Agent cycles

312

reads since startup

ScopedVault Architecture β€” How the agent is safe to fund

Owner ──deposits USDC──▢ ScopedVault ◀──sets limits──── Owner
↓ (check: maxPerTrade, maxTotalExposure)
AI Agent (Zadrz) ──calls──▢ 2xSwap Protocol
↕ agent CANNOT withdraw β€” only trade

Every position open/close emits an on-chain event. Full audit trail. Human can inspect every decision the agent made.

Why Agents Need 2xSwap

Traditional leverage protocols were built for humans with millisecond reaction times. Not AI agents.

FeatureTraditional Perps (GMX / dYdX / Binance)2xSwap ⚑
Liquidationβœ—Forced at ~-8% on 2xβœ“None β€” agent decides exit
Funding Rateβœ—Unpredictable, bleeds capitalβœ“Zero cost to hold
Max Hold Periodβœ—Hold until liquidated or closedβœ“Up to 1 year β€” agents can think in weeks
Agent Safetyβœ—Full wallet access requiredβœ“ScopedVault: bounded permissions
Wick Survivalβœ—Any -8%+ wick = position deadβœ“Survives any intraday wick
Fee Structureβœ—Funding rate + liquidation penaltyβœ“20% of profits only β€” no fees on losses
Reaction Timeβœ—Must react in milliseconds or dieβœ“No reaction needed β€” no liquidation pressure
Profitable on AIβœ—βŒ Agents get rekt on wicksβœ“βœ… First agent-safe leverage protocol

The core thesis: DeFi needs autonomous agents. Agents need protocols that don't kill them. 2xSwap is the first.