Paper: arXiv 2602.12104
Authors: Agathe Sadeghi, Zachary Feinstein
Abstract
Liquidation of collateral are the primary safeguard for solvency of lending protocols in decentralized finance. However, the mechanics of liquidations expose these protocols to predatory price manipulations and other forms of Maximal Extractable Value (MEV). In this paper, we characterize the optimal liquidation strategy, via a dynamic program, from the perspective of a profit-maximizing liquidator when the spot oracle is given by a Constant Product Market Maker (CPMM). We explicitly model Oracle Extractable Value (OEV) where liquidators manipulate the CPMM with sandwich attacks to trigger profitable liquidation events. We derive closed-form liquidation bounds and prove that CPMM transaction fees act as a critical security parameter. Crucially, we demonstrate that fees do not merely reduce attacker profits, but can make such manipulations unprofitable for an attacker. Our findings suggest that CPMM transaction fees serve a dual purpose: compensating liquidity providers and endogenously hardening CPMM oracles against manipulation without the latency of time-weighted averages or medianization.
Complexity vs Empirical Score
- Math Complexity: 7.5/10
- Empirical Rigor: 3.0/10
- Quadrant: Lab Rats — theoretically deep, empirically untested
Why this score: The paper provides a strong theoretical model framing optimal liquidations as a dynamic program under CPMM oracle mechanics, offering novel analytical insights into how swap fees mitigate MEV/OEV attacks. However, it relies heavily on analytical derivations and closed-form bounds without extensive empirical backtesting or historical transaction-level data validation.
Research Flowchart
flowchart TD
A["<b>Research Goal:</b><br>Analyze DeFi liquidation mechanics, OEV, and the protective role of CPMM fees"] --> B["<b>System Modeling & Inputs:</b><br>CPMM Spot Oracle, Collateralized Loans, Transaction Fees & Gas Costs"]
B --> C["<b>Dynamic Programming Framework:</b><br>Formulate optimal liquidator strategy under price manipulation (Sandwich Attacks)"]
C --> D["<b>Mathematical Derivation:</b><br>Compute closed-form liquidation bounds and attacker profit thresholds"]
D --> E["<b>Key Finding 1:</b><br>CPMM transaction fees endogenously disincentivize and eliminate OEV manipulations"]
D --> F["<b>Key Finding 2:</b><br>Fees harden AMM oracles against attacks without requiring TWAP or medianization latency"]
Cited References (46)
- Why DeFi lending? Evidence from Aave V2 (2024) — link
- Toxic Liquidation Spirals (2023) — link
- Financial contagion and asset liquidation strategies (2017) — link
- An Overview of Smart Contract: Architecture, Applications, and Future Trends (2018) — link
- Attacking the DeFi Ecosystem with Flash Loans for Fun and Profit (2021) — link
- Demystifying Stablecoins: Cryptography meets monetary policy (2020) — link
- An empirical study of DeFi liquidations: incentives, risks, and instabilities (2021) — link
- Mitigating Decentralized Finance Liquidations with Reversible Call Options (2023) — link
and 38 more
- Liquidations: DeFi on a Knife-Edge (2021) — link
- Formal Analysis of Lending Pools in Decentralized Finance (2022) — link
- SoK: Lending Pools in Decentralized Finance (2021)
- The Decentralized Financial Crisis (2020) — link
- DeFi Protocols for Loanable Funds: Interest Rates, Liquidity and Market Efficiency (2020) — link
- Stablecoins 2.0: Economic Foundations and Risk-based Models (2020) — link
- Financial intermediation and risk in decentralized lending protocols (2021) — link
- Decentralized Finance: On Blockchain- and Smart Contract-Based Financial Markets (2021) — link
- Smart Contracts and Decentralized Finance (2023) — link
- The Paradox of Adversarial Liquidation in Decentralised Lending (2023) — link
- Systemic Fragility in Decentralized Markets (2022) — link
- Agents’ Behavior and Interest Rate Model Optimization in Defi Lending (2024)
- Thinking Fast and Slow: Data-Driven Adaptive DeFi Borrow-Lending Protocol (2024) — link
- Attacks on Dynamic DeFi Interest Rate Curves (2023) — link
- The Economics of Interest Rate Models in Decentralised Lending Protocols (2023) — link
- Pricing and hedging of decentralised lending contracts (2024) — link
- On the Fragility of DeFi Lending (2023) — link
- Equilibrium in a DeFi Lending Market (2023) — link
- DeFi Leveraged Trading: Inequitable Costs of Decentralization (2024)
- Flash Boys 2.0: Frontrunning in Decentralized Exchanges, Miner Extractable Value, and Consensus Instability (2020) — link
- Demystifying DeFi MEV Activities in Flashbots Bundle (2023) — link
- Quantifying Blockchain Extractable Value: How dark is the forest? (2022) — link
- Speculative Multipliers on DeFi: Quantifying On-Chain Leverage Risks (2022)
- Miners as intermediaries: extractable value and market manipulation in crypto and DeFi (2022)
- SoK: Transparent Dishonesty: front-running attacks on Blockchain (2019) — link
- High-Frequency Trading on Decentralized On-Chain Exchanges (2021) — link
- SoK: MEV Countermeasures: Theory and Practice (2023) — link
- Eliminating Sandwich Attacks with the Help of Game Theory (2022) — link
- A2MM: Mitigating Frontrunning, Transaction Reordering and Consensus Instability in Decentralized Exchanges (2021) — link
- Maximal Extractable Value and Allocative Inefficiencies in Public Blockchains (2025) — link
- All AMMs are CFMMs. All DeFi markets have invariants. A DeFi market is arbitrage-free if and only if it has an increasing invariant (2023) — link
- Decentralized Finance: Protocols, Risks, and Governance (2023) — link
- Automated Risk Management Mechanisms in DeFi Lending Protocols: A Crosschain Comparative Analysis of Aave and Compound (2025) — link
- Improved Price Oracles: Constant Function Market Makers (2020) — link
- Constant Function Market Makers: Multi-Asset Trades via Convex Optimization (2021) — link
- Tokenomics: Dynamic Adoption and Valuation (2021)
- The Adoption of Blockchain-based Decentralized Exchanges (2021) — link
- The Rapid Growth of Fintech: Vulnerabilities and Challenges for Financial Stability (2022) — link
0 of 46 cited works are in the corpus; resolved via arXiv source bundles, Semantic Scholar and OpenAlex. Corpus-wide: 2518 linked papers.