RouletteSwap🎰

10 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 🎰

เข้าร่วม Nisan 2022
67 กำลังติดตาม13 ผู้ติดตาม
ทวีตที่ปักหมุด
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
167
RouletteSwap🎰
RouletteSwap🎰@RouletteSwap·
🥉 3rd place @ @XLayerOfficial × @Uniswap × @flapdotsh "Hook the Future" 🙏 Huge thanks to the X Layer team for a well-run hackathon. What we shipped: • novel per-swap fee distribution primitive • 8/8 Foundry tests + 600-trial statistical invariant • live on X Layer testnet
RouletteSwap🎰 tweet media
English
0
0
0
5
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
87
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
48
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
35
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
31
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
167