aave_v3.liquidation
Documentation for eth_defi.aave_v3.liquidation Python module.
Liquidation event fetch for Aave
Download Aave liquidations data using HyperSync
Classes
Aave liquidation event with resolved token details and human token amounts. |
|
|
- class AaveLiquidationEvent
Bases:
objectAave liquidation event with resolved token details and human token amounts.
Includes Aave v3 compatibles like Spark
- contract: eth_typing.evm.HexAddress
Contract address, which is positing the event, tells us the protocol: Spark, Aave v3, etc. and other Aave v3 compatibles
- __init__(chain_id, chain_name, contract, block_number, block_hash, timestamp, transaction_hash, log_index, collateral_asset, debt_asset, user, debt_to_cover, liquidated_collateral_amount, liquidator, receive_a_token)
- Parameters
chain_id (int) –
chain_name (str) –
contract (eth_typing.evm.HexAddress) –
block_number (int) –
block_hash (hexbytes.main.HexBytes) –
timestamp (datetime.datetime) –
transaction_hash (eth_typing.evm.HexAddress) –
log_index (int) –
collateral_asset (eth_defi.token.TokenDetails) –
debt_asset (eth_defi.token.TokenDetails) –
user (str) –
debt_to_cover (decimal.Decimal) –
liquidated_collateral_amount (decimal.Decimal) –
liquidator (eth_typing.evm.HexAddress) –
receive_a_token (bool) –
- Return type
None