Remove unused elif

This commit is contained in:
Gui Heise 2021-10-28 00:20:28 +01:00
parent 6e9d9b943a
commit 1ee62bc96b

View File

@ -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