Remove unused elif
This commit is contained in:
parent
6e9d9b943a
commit
1ee62bc96b
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user