Sunk Slippage Is Not a General Cost: A Structural Census of 901 DeFi Exploit Proofs-of-Concept
Abstract
A cost model for DeFi attacks must decide how to charge the price impact an attacker incurs while moving a pool; treating it as a sunk cost is a natural default, but whether that default fits depends on how attacks actually exit, and that distribution has not been measured. We reconstruct the execution structure of 901 proof-of-concept exploits from DeFiHackLabs and report what a cost model has to be calibrated against. Among the 149 price- and oracle-manipulation incidents, 45.6% move the price and exit through the same pool (42.3% on constant-product pools, 3.4% on Curve stable pools); after hand-coding all 48 single-leg files and recovering round trips a static classifier missed, the share rises to 51.0%. Within the single-leg records, 10 (21.3%) exit without returning to the pool whose price they moved, the only structure in which sunk slippage exists; another 25 (53.2%) move the price by direct writes (token transfers, skim, sync, donate) or accounting-state inflation rather than swaps, incurring almost no swap cost. Sunk slippage is therefore a real cost in 6.7% of price-manipulation incidents, not in general. Applying the same settlement to thirteen incidents that demonstrably paid, five (38%) would be judged unprofitable, and every reversal is caused by the slippage term alone; fees and competition flip none. For most attacks the cost that matters is gas, flash-loan fees and competition, and the real accounting question is not how much slippage to charge but whether the reported profit has already had each fee deducted. We release the structural taxonomy, a reproducible distribution, the static classifier, the coding manual and three fork executions; the classifier's agreement on a 30-case audit is 93%.
Create a lesson
Metadata
- Comments
- Work in progress; full version to follow
Related papers
Proof of Consent
Shared title terminologycs.CRDavid Schmid, Mihael Liskij, François Hublet et al.
zk-Sable: Per-Client Zero-Knowledge Proofs of Batched, Bit-Exact LLM Inference with Open Weights
Shared title terminologycs.CRTomer Solberg
When the Peg Breaks: Modeling and Measuring Stablecoin Depeg Losses across DeFi
Shared title terminologycs.CRWeilin Li, Jiahua Xu
No Decision Without a Record: Fail-Closed Evidence Completeness and Its Cost in an Agent Policy Decision Point
Shared title terminologycs.CRAnimesh Shaw
Securing Enterprise Email Against Quantum Threats: A Ten-Layer Hybrid Architecture and Its Operational Costs
Shared title terminologycs.CRAkshaya C, Prathiksha R, Vasanthi B et al.
Structure-Aware Merkle Trees for Tamper-Localizable Dataset and Model Integrity on Blockchain and Distributed Storage
Shared title terminologycs.CRZeeshan Ali, Dajana Cassioli