AaveLiquidationEvent
Documentation for eth_defi.aave_v3.liquidation.AaveLiquidationEvent Python class.
- class AaveLiquidationEvent
Bases:
objectAave liquidation event with resolved token details and human token amounts.
Includes Aave v3 compatibles like Spark
Attributes summary
chain_idchain_nameContract address, which is positing the event, tells us the protocol: Spark, Aave v3, etc.
block_numberblock_hashtimestamptransaction_hashlog_indexcollateral_assetdebt_assetuserdebt_to_coverliquidated_collateral_amountliquidatorreceive_a_tokenMethods summary
__init__(chain_id, chain_name, contract, ...)as_row()Convert the event to a dictionary with Pandsa row serializable values.
- 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
- as_row()
Convert the event to a dictionary with Pandsa row serializable values.
- Return type
- __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