Maintained by: Dune · Refresh: ~20 min · Chains: 15 EVM chains
Get This Data
Access lending data via API, Datashare, or the Dune App.
Available Tables
lending.supply
All supply-side transactions: deposits, withdrawals, and supply-side liquidations
lending.borrow
All borrow-side transactions: borrows, repayments, and borrow-side liquidations
lending.flashloans
All flash loan transactions across lending protocols
lending.info
Static lookup of lending protocol metadata
When to Use These Tables
- Track supply and borrow volumes across DeFi lending protocols
- Analyze liquidation events and at-risk positions
- Monitor flash loan activity and fees
- Compare lending protocol market share across chains
- Build lending analytics dashboards for protocol teams or investors
Coverage
Chains (15): Arbitrum, Avalanche C-Chain, Base, BNB Chain, Celo, Ethereum, Fantom, Gnosis, Linea, Optimism, Polygon, Scroll, Sonic, zkSync, Unichain Protocols: Aggregated from all integrated lending protocols including Aave, Compound, and others. UseSELECT DISTINCT project FROM lending.supply for the current list.
Query Performance
Partition keys:lending.supply:blockchain,project,block_monthlending.borrow:blockchain,project,block_monthlending.flashloans:blockchain,project
blockchain and block_month (or a block_time range) in your WHERE clause.
Methodology
Lending tables are maintained by Dune (source code). They aggregate data from protocol-specific base models (lending_base_supply, lending_base_borrow, lending_base_flashloans), which decode on-chain events from each protocol’s smart contracts. Token amounts are decimal-adjusted and joined with Dune’s price feeds (prices.minute, prices.hour, prices.day) for USD values.
Example Queries
Daily supply volume by protocol on Ethereum:Related Tables
dex.flashloans— Flash loans from DEX protocols (Balancer, Uniswap, dYdX) as opposed to lending-native flash loansprices.day/prices.hour/prices.minute— Token price feedstokens.erc20— Token metadata (symbols, decimals)