Affiliation:
1. Rensselaer Polytechnic Institute, Troy, USA
Abstract
We propose a survival analysis approach for discovering and characterizing user behavior and risks for lending protocols in decentralized finance (DeFi). We demonstrate how to gather and prepare DeFi transaction data for survival analysis. We illustrate our approach using transactions in Aave, one of the largest lending protocols. We develop a DeFi survival analysis pipeline that first prepares transaction data for survival analysis through the selection of different index events (or transactions) and associated outcome events. Then we apply survival analysis statistical and visualization methods modified for competing risks when appropriate, such as Kaplan–Meier survival curves, cumulative incidence functions, Cox hazard regression, and Fine-Gray models for sub-distribution hazards to gain insights into usage patterns and risks within the protocol. We show how, by varying the index and outcome events as well as covariates, we can use DeFi survival analysis to answer questions like “How does loan size affect the repayment schedule of the loan?”; “How does loan size affect the likelihood that an account gets liquidated?”; “How does user behavior vary between Aave markets?”; “How has user behavior in Aave varied from quarter to quarter?” The proposed DeFi survival analysis can easily be generalized to other DeFi lending protocols. By defining appropriate index and outcome events, DeFi survival analysis can be applied to any cryptocurrency protocol with transactions.
Funder
NSF IUCRC CRAFT
Rensselaer Institute for Data Exploration and Applications
Publisher
Association for Computing Machinery (ACM)
Reference38 articles.
1. Antonio Juliano. 2017. dYdX: A Standard for Decentralized Margin Trading and Derivatives. Technical Report. Retrieved from https://whitepaper.dydx.exchange/
2. SoK: Lending Pools in Decentralized Finance
3. Artificial Intelligence for Public Health
4. Boado, Ernesto. 2020. AAVE Protocol Whitepaper. Technical Report. Retrieved from https://www.cryptocompare.com/media/38553941/aave_protocol_whitepaper_v1_0.pdf
5. Boado, Ernesto. 2020. AAVE Protocol Whitepaper V2.0. Technical Report. Retrieved from https://cryptorating.eu/whitepapers/Aave/aave-v2-whitepaper.pdf