aptos.defi Table: ez_lending_liquidations Type: Base Table
Description
This table tracks all lending liquidations across multiple DeFi lending protocols on Aptos, combining data from Echelon and Echo protocols. It captures when borrowers’ positions are liquidated due to insufficient collateralization, including complete transaction context, both collateral and debt token information, and USD pricing calculations.Key Use Cases
- Lending protocol liquidation analysis and risk monitoring
- DeFi market stress testing and systemic risk assessment
- Liquidator behavior analysis and profit tracking
- Borrower risk profile analysis and collateralization monitoring
- Protocol liquidation efficiency and market impact analysis
Important Relationships
- Utilizes token price data from
price.ez_prices_hourlyfor USD calculations of both collateral and debt tokens - References token metadata from
core.dim_tokensfor decimal precision - Complements
defi.ez_lending_borrowsanddefi.ez_lending_repaymentsfor complete lending risk analysis
Commonly-used Fields
tx_hash: Essential for linking to transaction details and verificationliquidatorandborrower: Core fields for user behavior analysis and wallet trackingcollateral_tokenanddebt_token: Key for understanding liquidation mechanics and token relationshipscollateral_token_symbolanddebt_token_symbol: Important for token identification and analysisamount_rawandamount_usd: Critical for value calculations and liquidation impact analysisplatform: Important for protocol comparison and multi-protocol risk analysisblock_timestamp: Primary field for time-series analysis and market stress detection
Columns
| Column Name | Data Type | Description |
|---|---|---|
| PLATFORM | TEXT | The name of the lending platform where the activity occurred (e.g., ‘echelon’, ‘echo’). Used to identify which specific lending protocol handled the transaction. |
- echelon
- echo
- Enables filtering and analysis by specific lending platforms
- Supports cross-protocol comparisons and platform performance metrics
- Essential for multi-protocol lending analytics and protocol adoption tracking | | PROTOCOL | TEXT | The protocol name for the lending platform, typically matching the platform name. Used for protocol identification and categorization in analytics.
- echelon
- echo
- Provides consistent protocol naming across different data sources
- Enables protocol-specific analysis and reporting
- Supports protocol comparison and market share analysis | | PROTOCOL_VERSION | TEXT | The version of the lending protocol being used (e.g., ‘v1’, ‘v2’). Indicates which iteration of the protocol’s smart contracts handled the transaction.
- v1
- v2
- Tracks protocol upgrades and version adoption
- Enables analysis of protocol evolution and feature usage
- Important for understanding protocol maturity and stability | | BLOCK_NUMBER | NUMBER | Also known as block height. The block number indicates the position of a block in the blockchain, increasing sequentially after the addition of each new block.
- 12345678
- 98765432
- Primary identifier for ordering and filtering blockchain data chronologically.
- Essential for block-level analysis and network growth tracking.
- Enables correlation of transactions, transfers, and events to specific blocks. | | BLOCK_TIMESTAMP | TIMESTAMP_NTZ | The date and time at which the block was produced on the Aptos blockchain.
- 2024-01-15 14:30:25.123456
- Primary field for time-series analysis and temporal filtering of blockchain activity.
- Essential for trend analysis, volume calculations, and historical comparisons.
- Enables time-based grouping and aggregation for analytics and reporting. | | VERSION | NUMBER | The version number, also known as the height, represents the sequential position of a transaction in the Aptos blockchain. The first transaction has a version of 0, and each subsequent transaction increments by 1.
- 0 (genesis transaction)
- 12345678
- 98765432
- Unique identifier for ordering transactions chronologically across the entire blockchain.
- Essential for transaction sequencing and version-based analysis.
- Enables precise transaction tracking and blockchain state verification. | | TX_HASH | TEXT | Transaction hash is a unique 66-character identifier that is generated when a transaction is executed on the Aptos blockchain.
- 0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef
- Primary identifier for linking transaction data across all related tables.
- Essential for transaction verification and blockchain explorer lookups.
- Enables correlation of transfers, events, and state changes to specific transactions. | | EVENT_INDEX | NUMBER | Unique identifier for an event within a transaction, representing the sequential order of events emitted during transaction execution.
- 0 (first event in transaction)
- 1 (second event in transaction)
- 5 (sixth event in transaction)
- Essential for determining the chronological order of events within a transaction.
- Critical for event correlation and transaction flow analysis.
- Enables precise event sequencing and debugging of complex transactions. | | EVENT_ADDRESS | TEXT | The first segment of the event type, representing the account address that emitted the event.
- 0x1
- 0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef
- Essential for identifying the source account that emitted the event.
- Critical for event source analysis and account event tracking.
- Enables event source analytics and account-based event correlation. | | LIQUIDATOR | TEXT | The address of the account that initiated the liquidation of a borrower’s position. Liquidators are incentivized to liquidate undercollateralized positions to maintain protocol health.
- 0x1234567890abcdef1234567890abcdef12345678
- Identifies who is performing liquidations and earning liquidation rewards
- Enables analysis of liquidator behavior and profitability
- Important for understanding liquidation market dynamics and risk management | | BORROWER | TEXT | The address of the account that borrowed assets from the lending protocol. Borrowers must provide collateral to secure their loans.
- 0x1234567890abcdef1234567890abcdef12345678
- Core field for user behavior analysis and risk assessment
- Enables tracking of borrowing patterns and credit risk
- Essential for understanding user engagement and protocol utilization | | COLLATERAL_TOKEN | TEXT | The token address of the collateral asset used in a lending transaction. In liquidations, this represents the asset being liquidated from the borrower’s position.
- 0x1234567890abcdef1234567890abcdef12345678
- Identifies which assets are being used as collateral
- Enables analysis of collateral composition and risk
- Important for understanding asset utilization and market dynamics | | DEBT_TOKEN | TEXT | The token address of the debt asset in a lending transaction. In liquidations, this represents the asset that was borrowed and is being repaid.
- 0x1234567890abcdef1234567890abcdef12345678
- Identifies which assets are being borrowed
- Enables analysis of borrowing demand and asset utilization
- Important for understanding lending market dynamics and risk exposure | | COLLATERAL_TOKEN_SYMBOL | TEXT | The symbol of the token involved in the action (e.g., APT, USDC, USDT). Used to identify the asset type in analytics and reporting.
- APT
- USDC
- USDT
- Enables grouping and filtering of transfers by token.
- Supports analytics on asset flows, protocol usage, and user preferences.
- Provides human-readable identification for tokens in reports and dashboards. | | COLLATERAL_TOKEN_IS_VERIFIED | BOOLEAN | A flag indicating if the asset has been verified by the Flipside team. | | DEBT_TOKEN_SYMBOL | TEXT | The symbol of the token involved in the action (e.g., APT, USDC, USDT). Used to identify the asset type in analytics and reporting.
- APT
- USDC
- USDT
- Enables grouping and filtering of transfers by token.
- Supports analytics on asset flows, protocol usage, and user preferences.
- Provides human-readable identification for tokens in reports and dashboards. | | DEBT_TOKEN_IS_VERIFIED | BOOLEAN | A flag indicating if the asset has been verified by the Flipside team. | | AMOUNT_RAW | NUMBER | Original token amount without decimal adjustment.
- 0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef
- Essential for data integrity and unique row identification.
- Critical for join operations and data relationship management.
- Enables precise data retrieval and referential integrity maintenance. | | INSERTED_TIMESTAMP | TIMESTAMP_NTZ | The UTC timestamp when the row was inserted into the table, representing when the data was first recorded.
- 2024-01-15 14:30:25.123456
- Essential for data lineage tracking and insertion timing analysis.
- Critical for understanding data freshness and processing delays.
- Enables data quality analysis and processing performance monitoring. | | MODIFIED_TIMESTAMP | TIMESTAMP_NTZ | The UTC timestamp when the row was last modified, representing when the data was most recently updated.
- 2024-01-15 14:30:25.123456
- Essential for data freshness analysis and update tracking.
- Critical for understanding data modification patterns and change frequency.
- Enables data quality monitoring and update performance analysis. |