SoK: Lending Pools in Decentralized Finance

Lending pools are decentralized applications which allow mutually untrusted users to lend and borrow crypto-assets. These applications feature complex, highly parametric incentive mechanisms to equilibrate the loan market. This complexity makes the behaviour of lending pools difficult to understand and to predict: indeed, ineffective incentives and attacks could potentially lead to emergent unwanted behaviours. Reasoning about lending pools is made even harder by the lack of executable models of their behaviour: to precisely understand how users interact with lending pools, eventually one has to inspect their implementations, where the incentive mechanisms are intertwined with low-level implementation details. Further, the variety of existing implementations makes it difficult to distill the common aspects of lending pools. We systematize the existing knowledge about lending pools, leveraging a new formal model of interactions with users, which reflects the archetypal features of mainstream implementations. This enables us to prove some general properties of lending pools, such as the correct handling of funds, and to precisely describe vulnerabilities and attacks. We also discuss the role of lending pools in the broader context of decentralized finance.

[1]  Benjamin Livshits,et al.  Liquidations: DeFi on a Knife-Edge , 2020, Financial Cryptography.

[2]  Yajin Zhou,et al.  Towards understanding flash loan and its applications in defi ecosystem , 2020, ArXiv.

[3]  Dan Boneh,et al.  Empirical Measurements on Pricing Oracles and Decentralized Governance for Stablecoins , 2020, SSRN Electronic Journal.

[4]  Yongge Wang,et al.  Automated Market Makers for Decentralized Finance (DeFi) , 2020, ArXiv.

[5]  T. Chitra,et al.  An Analysis of the Market Risk to Participants in the Compound Protocol , 2020 .

[6]  Jeremy Clark,et al.  SoK: Transparent Dishonesty: Front-Running Attacks on Blockchain , 2019, Financial Cryptography Workshops.

[7]  Alceste Scalas,et al.  A formal model of Algorand smart contracts , 2021, Financial Cryptography.

[8]  Ari Juels,et al.  Flash Boys 2.0: Frontrunning in Decentralized Exchanges, Miner Extractable Value, and Consensus Instability , 2020, 2020 IEEE Symposium on Security and Privacy (SP).

[9]  Simon J. Thompson,et al.  Marlowe: Financial Contracts on Blockchain , 2018, ISoLA.

[10]  Benjamin Livshits,et al.  Attacking the DeFi Ecosystem with Flash Loans for Fun and Profit , 2020, Financial Cryptography.

[11]  Alex Biryukov,et al.  Findel: Secure Derivative Contracts for Ethereum , 2017, Financial Cryptography Workshops.

[12]  Martin Elsman,et al.  Automated Execution of Financial Contracts on Blockchains , 2017, Business & Information Systems Engineering.

[13]  Guillermo Angeris,et al.  Improved Price Oracles: Constant Function Market Makers , 2020, AFT.

[14]  Sam M. Werner,et al.  DeFi Protocols for Loanable Funds: Interest Rates, Liquidity and Market Efficiency , 2020, AFT.

[15]  Danny Dolev,et al.  On the security of public key protocols , 1981, 22nd Annual Symposium on Foundations of Computer Science (sfcs 1981).

[16]  Tarun Chitra,et al.  Competitive equilibria between staking and on-chain lending , 2019, ArXiv.

[17]  Massimo Bartoletti,et al.  BitML: A Calculus for Bitcoin Smart Contracts , 2018, IACR Cryptol. ePrint Arch..

[18]  Carsten Baum,et al.  P2DEX: Privacy-Preserving Decentralized Cryptocurrency Exchange , 2021, IACR Cryptol. ePrint Arch..

[19]  Tarun Chitra,et al.  Why Stake When You Can Borrow? , 2020, SSRN Electronic Journal.

[20]  Amani Moin,et al.  SoK: A Classification Framework for Stablecoin Designs , 2020, Financial Cryptography.

[21]  Andrei Arusoaie,et al.  Certifying Findel Derivatives for Blockchain , 2020, J. Log. Algebraic Methods Program..

[22]  Leandros Tassiulas,et al.  Optimal Bidding Strategy for Maker Auctions , 2020, 2009.07086.

[23]  Guillermo Angeris,et al.  An Analysis of Uniswap Markets , 2019, Cryptoeconomic Systems.

[24]  Daniel Perez,et al.  The Decentralized Financial Crisis , 2020, 2020 Crypto Valley Conference on Blockchain Technology (CVCBT).

[25]  Vitalik Buterin A NEXT GENERATION SMART CONTRACT & DECENTRALIZED APPLICATION PLATFORM , 2015 .

[26]  Massimo Bartoletti,et al.  A Survey of Attacks on Ethereum Smart Contracts (SoK) , 2017, POST.