RouletteSwap🎰

9 posts

RouletteSwap🎰 banner
RouletteSwap🎰

RouletteSwap🎰

@RouletteSwap

Pick your fee. Or pick your luck. A Uniswap v4 Hook on X Layer. Live on testnet now. Built for @XLayerOfficial × @Uniswap × @flapdotsh hackathon 🎰

Katılım Nisan 2022
67 Takip Edilen13 Takipçiler
Sabitlenmiş Tweet
RouletteSwap🎰
RouletteSwap🎰@RouletteSwap·
🎰 Introducing RouletteSwap — a Uniswap v4 Hook where every swap is a coin flip you opt into. Safe: flat 30 bps Risky: 5/6 of 5 bps · 1/6 of 155 bps Expected fee identical. LP economics neutral. Live on @XLayerOfficial testnet 🧵 #BuildX
GIF
English
1
0
0
159
RouletteSwap🎰
RouletteSwap🎰@RouletteSwap·
24 Risky swaps on @RouletteSwap "Beat the House" mode. bust 2 · survive 22 (RNG was kind today) paid: 420 bps if all Safe: 720 bps → saved 300 bps LP economics unchanged. variance is a feature, not a bug. @XLayerOfficial #BuildX
RouletteSwap🎰 tweet media
English
0
0
0
86
RouletteSwap🎰
RouletteSwap🎰@RouletteSwap·
why 5/6 odds, not 9/10 or 99/100? EV must equal 30 bps → bust fee is forced: 1/6 → 155 bps (5x baseline) 1/10 → 255 bps (8.5x) 1/100 → 2,500+ (degen-only) 5/6 = d6 intuition · cheap to compute · real variance · survivable bust @XLayerOfficial #BuildX
RouletteSwap🎰 tweet media
English
0
0
0
47
RouletteSwap🎰
RouletteSwap🎰@RouletteSwap·
how to prove a "5/6 chance of 5 bps · 1/6 of 155" hook is actually EV-neutral? let Foundry do it. 600 trials. mean fee within ±20% of 3000 pips. bust frequency within ±35% of 1/6. if either bound trips, the contract ships broken. 8/8 tests green. @XLayerOfficial #BuildX
RouletteSwap🎰 tweet media
English
0
0
0
34
RouletteSwap🎰
RouletteSwap🎰@RouletteSwap·
every v4 fee hook asks "what's the fee?" nobody asks "what's the fee DISTRIBUTION?" RouletteSwap: uint24 lpFee = roll() == BUST ? 15_500 : 500; 5 bps survive · 155 bust · 1/6 odds · LP-EV-neutral @XLayerOfficial #BuildX
RouletteSwap🎰 tweet media
English
0
0
0
30
RouletteSwap🎰
RouletteSwap🎰@RouletteSwap·
🎰 Introducing RouletteSwap — a Uniswap v4 Hook where every swap is a coin flip you opt into. Safe: flat 30 bps Risky: 5/6 of 5 bps · 1/6 of 155 bps Expected fee identical. LP economics neutral. Live on @XLayerOfficial testnet 🧵 #BuildX
GIF
English
1
0
0
159