On-chain lending needs to separate a wallet's total token holdings from its liquid, spendable balance—two wallets with identical net worth can have very different repayment capacity depending on which assets they actually hold.
zLend is a framework that assesses borrower creditworthiness in decentralized lending by analyzing on-chain transaction history. It reconstructs daily wallet balances from token transfers in two ways—using only stablecoins and using all tokens—to distinguish between total wealth and spendable cash.