decode_reserve_data_updated

Documentation for eth_defi.aave_v3.events.decode_reserve_data_updated function.

decode_reserve_data_updated(aave_network_name, log, aave_version)[source]

Process a ReserveDataUpdated event.

Note

Both Aave v2 and v3 have this same event, so we use the lending pool smart contract to filter out the correct events.

The event signature is:

# topic0: signature 0x804c9b842b2748a22bb64b345453a3de7ca54a6ca45ce00d415894979e22897a
event ReserveDataUpdated(
    address indexed reserve,    # topic1
    uint256 liquidityRate,      # data0
    uint256 stableBorrowRate,   # data1
    uint256 variableBorrowRate, # data2
    uint256 liquidityIndex,     # data3
    uint256 variableBorrowIndex # data4
);
Parameters
Return type

dict