Package Logo
aave_liquidation_bot_eth
aave_liquidation_bot_eth@v0.1.0
Total Downloads
3
Published
1 months ago
Network
mainnet mainnet
Publisher
User Avatar PaulieB14
Total Downloads
3
Published
1 months ago
Network
mainnet mainnet
Publisher
User Avatar PaulieB14

Readme

Aave Liquidation Monitor Substreams Package

A Substreams package for monitoring Aave V2 and V3 liquidation events on Ethereum.

Overview

This package monitors the Aave lending pools for liquidation events and provides real-time data about:

  • Liquidation events from Aave V2 and V3 pools
  • User addresses being liquidated
  • Collateral and debt assets involved
  • Transaction details

Supported Contracts

  • Aave V2 LendingPool: 0x7d2768dE32b0b80b7a3454c06BdAc94A69DDc7A9
  • Aave V3 Pool: 0x87870Bca3F3fD6335C3F4ce8392D69350B4fA4E2

Module: map_aave_events

This module processes Ethereum blocks and filters for Aave liquidation events. It looks for the LiquidationCall event signature and logs detailed information about each liquidation.

Event Signature

  • LiquidationCall: 0x298637f684da70674f26509b10f07ec2fbc77a335ab1e7d6215a4b2484d8bb52

Output

The module outputs empty protobuf messages but logs detailed information about liquidation events including:

  • Block number
  • Transaction hash
  • User address
  • Collateral asset
  • Debt asset

Usage

# Run the substreams package
substreams run substreams.yaml map_aave_events

# Or serve it
substreams serve substreams.yaml map_aave_events

Development

This package is built using Rust and targets WebAssembly for efficient blockchain data processing.

License

MIT

Documentation

Modules

Maps icon
Maps

map
map_aave_events

9795b5214a71175e2cdbcc3d4a6eec557ab0887d
map map_aave_events (
blocksf.ethereum.type.v2.Block
)  -> mydata.v1.MyData
substreams gui aave-liquidation-bot-eth@v0.1.0 map_aave_events
Protobuf

Protobuf Docs Explorer

sf.ethereum.substreams.v1
sf.ethereum.transform.v1
sf.ethereum.type.v2
mydata.v1