From 8822ebcf5534920032bc696389483ef3135f28b9 Mon Sep 17 00:00:00 2001 From: Gui Heise Date: Mon, 25 Oct 2021 15:34:46 +0100 Subject: [PATCH] ETH transfer WIP --- mev_inspect/aave_liquidations.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/mev_inspect/aave_liquidations.py b/mev_inspect/aave_liquidations.py index 74b194a..6fbaca8 100644 --- a/mev_inspect/aave_liquidations.py +++ b/mev_inspect/aave_liquidations.py @@ -100,12 +100,16 @@ def _get_payback_token_and_amount( child_transfer.to_address == liquidator and child.from_address in AAVE_CONTRACT_ADDRESSES ): + return child_transfer.token_address, child_transfer.amount elif ( - child_transfer.token_address + child_transfer.to_address == liquidator + and child.from_address in AAVE_CONTRACT_ADDRESSES + and child_transfer.token_address == "0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee" ): + return child_transfer.token_address, child.value return liquidation.inputs["_collateral"], 0