collateral_amount is the tokens seized and borrow_amount the debt cleared.
Columns
| Column | Type | Description |
|---|---|---|
block_timestamp | TIMESTAMP | Time of the block containing the liquidation. Partition column. |
block_number | INTEGER | Number of the block containing the liquidation. |
transaction_hash | STRING | Hash of the transaction that emitted the liquidation event. |
log_index | INTEGER | Position of the liquidation event in the block. |
unique_id | INTEGER | Row key: fingerprint of chain_id, block_number, transaction_hash, log_index. |
event_type | STRING | Constant liquidations; stacking key across the lending facts. |
project_id | STRING | Protocol operating the market, such as aave. |
app_id | STRING | Deployment of the protocol the market belongs to. |
chain_id | STRING | Chain the liquidation happened on. |
lending_market_id | STRING | Market holding the debt that was repaid; joins dimensions.lending_markets. |
lending_market_contract_address | STRING | Contract the market lives on; not a key. |
lending_position_id | STRING | The liquidated position: one borrower inside one market. |
collateral_lending_market_reserve_id | STRING | Reserve the seized collateral sat in; joins dimensions.lending_market_reserves. |
collateral_lending_market_reserve_position_id | STRING | The borrower’s holding in that collateral reserve. |
collateral_receipt_token_address | STRING | Receipt token whose balance moved on the collateral side; null where positions are not tokenised. |
borrow_lending_market_reserve_id | STRING | Reserve the repaid debt sat in; joins dimensions.lending_market_reserves. |
borrow_lending_market_reserve_position_id | STRING | The borrower’s debt in that reserve. |
borrow_receipt_token_address | STRING | Debt token whose balance moved on the borrow side; null where debt is not tokenised. |
liquidator_address | STRING | Account that repaid the debt and took the collateral. |
borrower_address | STRING | Account that was liquidated; the position key across the lending facts. |
collateral_token_id | STRING | Collateral token seized: {token_address}-{chain_id}. |
collateral_token_address | STRING | Contract address of the collateral token. |
collateral_token_symbol | STRING | Symbol of the collateral token. |
collateral_token_decimals | INTEGER | Decimals of the collateral token. |
borrow_token_id | STRING | Debt token repaid: {token_address}-{chain_id}. |
borrow_token_address | STRING | Contract address of the debt token. |
borrow_token_symbol | STRING | Symbol of the debt token. |
borrow_token_decimals | INTEGER | Decimals of the debt token. |
collateral_to_liquidator_amount_raw | BIGNUMERIC | Share of the seized collateral paid to the liquidator, in the token’s stored unit, exact integer. |
collateral_to_liquidator_amount | BIGNUMERIC | collateral_to_liquidator_amount_raw decimal-corrected into whole tokens. |
collateral_to_treasury_amount_raw | BIGNUMERIC | Share of the seized collateral kept by the protocol, in the token’s stored unit, exact integer. |
collateral_to_treasury_amount | BIGNUMERIC | collateral_to_treasury_amount_raw decimal-corrected into whole tokens. |
collateral_amount_raw | BIGNUMERIC | Collateral seized in total, exact integer; the liquidator share and the treasury share add up to it. |
collateral_amount | BIGNUMERIC | collateral_amount_raw decimal-corrected into whole tokens. |
borrow_amount_raw | BIGNUMERIC | Debt repaid in the token’s stored unit, exact integer. |
borrow_amount | BIGNUMERIC | borrow_amount_raw decimal-corrected into whole tokens. |
Sample queries
- One day, one app
- Most liquidated collateral
- Collateral kept by the protocol
Each row has two token legs: the collateral seized and the debt repaid.
borrower_address is the position that was closed and liquidator_address the account that closed it.