gauddel.eth (@Matthieu_MJ) header
gauddel.eth (@Matthieu_MJ) profile picture

#bitcoin #ethereum 🍦 Legendary Member @gelatonetwork! 🍦 Koffee Member ☕

Paris
Joined April 2012
Two takeaways: • Redemption pricing must be path-independent — one defund(F) must equal N defund(F/N). • Two-point averaging of a nonlinear price is wrong by design; a flash loan just splits the trade for you. No one-line patch here — the pricing model itself is wrong.
1
22
Don’t trust the thread — run it. One test replays the real attack tx (vm.transact) and ~70.83 ETH leaves USM’s pool; another prices single vs 64-slice on the real contract and shows the ~2× gap. github.com/Gevarist/evm-expl… with extra visual github.com/Gevarist/evm-expl…
24
The attack, in one tx: • flash-loan 11,580 ETH (Morpho) • fund USM → mint ~62.18M FUM • defund it in 64 slices → 11,650.81 ETH out, each paid ~full price • repay the loan, keep ~70.83 ETH A single defund of the same FUM would’ve returned only ~5,825 ETH — a loss.
1
42
The subtlety: nothing was manipulated. No price was pushed, no oracle moved. The same FUM, chopped up, simply pays double — because the pricing measures impact from two endpoints instead of integrating the price over the whole redemption. Σ defund(F/64) > defund(F)
1
8
🧵 On Aug 9, 2026, a stablecoin lost ~70.83 ETH (~$136K) in one transaction — no oracle touched, no bug in any single line. USM’s redemption pricing wasn’t “split-invariant”: redeeming in 64 small pieces paid ~2× what redeeming once would. Here’s how 👇
1
81
How far p2 falls is set by a debt-ratio “leverage,” reset every call The 11,580 ETH deposit dwarfs the pool → debt ratio ≈ 0, so each 1/64 slice barely nudges it → p2 ≈ p0 → paid ~full price. Only a whole-pool burn craters p2 (~half) Splitting stays in the no-impact zone
1
19
USM is an ETH-backed stablecoin. You burn FUM (its volatility-buffer token) via defund to pull ETH from the pool. To price a redemption, ethFromDefund averages TWO points — the FUM price now (p0) and its estimated price after the burn (p2): ethOut = fumIn × (p0 + p2) / 2
1
68
🧵 A ~$6M DeFi vault drain — with no bug in the math. Summer.fi’s “Lazy Summer” USDC vault kept a dead adapter in its books — capped, but never removed. So anyone could gift worthless tokens into it and inflate the whole vault’s share price. Here’s how 👇
1
2
4
123
Two takeaways, humbly: • The Ark was capped and empty — removeArk was available but never called, leaving a raw-balance-priced adapter in NAV. • Pricing off internal accounting, not raw balanceOf, makes the donation a no-op. The fix, as a passing test: github.com/Gevarist/evm-expl…
1
1
12
Run it. One test replays the real attack tx and ~$6M leaves; a second removes the dead Ark from the vault and the same attack nets 0. Clone + forge test: github.com/Gevarist/evm-expl…
14
gauddel.eth retweeted
Arrakis ✨ x @pancakefi 🥞 x @BNBCHAIN 🟨 The leading onchain market making protocol for token issuers debuts on BNB Chain’s leading liquidity solution.
8
14
3
54
16,453
gauddel.eth retweeted
Our latest deep dive: The Essential Guide to DAO Liquidity Management.
4
12
4
30
10,225
World Liberty has purchased over 21,000 ETH in the past 8 hours, and people remain bearish on ETH...
1
36
That's what happens when you don't take the L2s interoperability issue seriously, and keep saying it's just a UI stuff.
31
Loading up my 500e9d4d wallet with Sepolia ETH from @quicknode's faucet. It's like magic, but real! ✨ faucet.quicknode.com faucet.quicknode.com/base/se…
24