Skip to main content
In progress. This table is not served yet. The page documents it as it lands.
facts.lending_market_liquidations combines the liquidation events of every lending protocol we decode into one table: one row per liquidation. A liquidation repays part of an undercollateralized borrower’s debt and takes their collateral at a discount. lending_market_id keys each row to the debt market in the Registry.

Columns

ColumnTypeDescription
block_timestampTIMESTAMPTime of the block containing the liquidation. Partition column.
block_numberINT64Number of the block containing the liquidation.
transaction_hashSTRINGHash of the transaction that emitted the liquidation event.
log_indexINT64Position of the liquidation event in the block.
unique_idINT64Row key: fingerprint of chain_id, block_number, transaction_hash, log_index.
chain_idSTRINGChain the liquidation happened on.
lending_market_idSTRINGMarket of the debt repaid; joins dimensions.lending_markets.
project_idSTRINGProtocol operating the market, such as aave.
debt_token_idSTRINGToken of the debt repaid: {token_address}-{chain_id}.
debt_token_addressSTRINGContract address of the debt token.
collateral_token_idSTRINGToken of the collateral taken: {token_address}-{chain_id}.
collateral_token_addressSTRINGContract address of the collateral token.
borrower_addressSTRINGAccount that was liquidated.
liquidator_addressSTRINGAccount that performed the liquidation.
debt_amount_rawSTRINGDebt repaid as text, in the debt token.
collateral_amount_rawSTRINGCollateral taken as text, in the collateral token.

Sample queries

The table is partitioned on block_timestamp. Bound that column in every query; without a bound the query reads the whole table.
Rank the largest liquidations in a window by debt repaid in USD. USD comes from Prices.