AgileRate: Bringing Adaptivity and Robustness to DeFi Lending Markets
Mahsa Bastankhah, Viraj Nadkarni, Xuechao Wang, Pramod Viswanath
TL;DR
AgileRate tackles the brittleness of DeFi lending under static rate curves by introducing a dynamic, adaptive model of demand and supply coupled with a Recursive Least Squares-based interest-rate controller. The approach provides theoretical guarantees on rate convergence and utilization stability, and bounds adversarial manipulation relative to static curves, while offering two mitigation paths: robust data-filtering and market-structure elasticity via derivatives. Empirical validation on Aave/Compound-like data shows a best-fit error around 5% for the dynamic demand model and superior utilization performance versus static curves, with robust RLS maintaining rate stability under adversarial signals. The work demonstrates a practical pathway to more resilient, efficient DeFi lending through on-chain adaptivity, cross-venue liquidity, and risk-aware control.
Abstract
Decentralized Finance (DeFi) has revolutionized lending by replacing intermediaries with algorithm-driven liquidity pools. However, existing platforms like Aave and Compound rely on static interest rate curves and collateral requirements that struggle to adapt to rapid market changes, leading to inefficiencies in utilization and increased risks of liquidations. In this work, we propose a dynamic model of the lending market based on evolving demand and supply curves, alongside an adaptive interest rate controller that responds in real-time to shifting market conditions. Using a Recursive Least Squares algorithm, our controller tracks the external market and achieves stable utilization, while also controlling default and liquidation risk. We provide theoretical guarantees on the interest rate convergence and utilization stability of our algorithm. We establish bounds on the system's vulnerability to adversarial manipulation compared to static curves, while quantifying the trade-off between adaptivity and adversarial robustness. We propose two complementary approaches to mitigating adversarial manipulation: an algorithmic method that detects extreme demand and supply fluctuations and a market-based strategy that enhances elasticity, potentially via interest rate derivative markets. Our dynamic curve demand/supply model demonstrates a low best-fit error on Aave data, while our interest rate controller significantly outperforms static curve protocols in maintaining optimal utilization and minimizing liquidations.
