From 1ee62bc96b7a6df0388e30abbb0732b497f6f4ae Mon Sep 17 00:00:00 2001 From: Gui Heise Date: Thu, 28 Oct 2021 00:20:28 +0100 Subject: [PATCH] Remove unused elif --- mev_inspect/aave_liquidations.py | 9 --------- 1 file changed, 9 deletions(-) diff --git a/mev_inspect/aave_liquidations.py b/mev_inspect/aave_liquidations.py index b399180..29ad1ba 100644 --- a/mev_inspect/aave_liquidations.py +++ b/mev_inspect/aave_liquidations.py @@ -101,17 +101,8 @@ def _get_payback_token_and_amount( if ( child_transfer.to_address == liquidator and child.from_address in AAVE_CONTRACT_ADDRESSES - and child_transfer.token_address != ETH_TOKEN_ADDRESS ): return child_transfer.token_address, child_transfer.amount - elif ( - child_transfer.to_address == liquidator - and child.from_address in AAVE_CONTRACT_ADDRESSES - and child_transfer.token_address == ETH_TOKEN_ADDRESS - ): - - return child_transfer.token_address, child.value - return liquidation.inputs["_collateral"], 0