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
| Column | Type | Description |
|---|---|---|
block_timestamp | TIMESTAMP | Time of the block containing the liquidation. Partition column. |
block_number | INT64 | Number of the block containing the liquidation. |
transaction_hash | STRING | Hash of the transaction that emitted the liquidation event. |
log_index | INT64 | Position of the liquidation event in the block. |
unique_id | INT64 | Row key: fingerprint of chain_id, block_number, transaction_hash, log_index. |
chain_id | STRING | Chain the liquidation happened on. |
lending_market_id | STRING | Market of the debt repaid; joins dimensions.lending_markets. |
project_id | STRING | Protocol operating the market, such as aave. |
debt_token_id | STRING | Token of the debt repaid: {token_address}-{chain_id}. |
debt_token_address | STRING | Contract address of the debt token. |
collateral_token_id | STRING | Token of the collateral taken: {token_address}-{chain_id}. |
collateral_token_address | STRING | Contract address of the collateral token. |
borrower_address | STRING | Account that was liquidated. |
liquidator_address | STRING | Account that performed the liquidation. |
debt_amount_raw | STRING | Debt repaid as text, in the debt token. |
collateral_amount_raw | STRING | Collateral taken as text, in the collateral token. |
Sample queries
- Largest liquidations
- One market, one day
Rank the largest liquidations in a window by debt repaid in USD. USD comes from Prices.