Fix ETH transfer liquidations
This commit is contained in:
parent
8822ebcf55
commit
7bb65a336e
@ -6,6 +6,7 @@ from mev_inspect.traces import (
|
|||||||
)
|
)
|
||||||
from mev_inspect.schemas.classified_traces import (
|
from mev_inspect.schemas.classified_traces import (
|
||||||
ClassifiedTrace,
|
ClassifiedTrace,
|
||||||
|
CallTrace,
|
||||||
DecodedCallTrace,
|
DecodedCallTrace,
|
||||||
Classification,
|
Classification,
|
||||||
Protocol,
|
Protocol,
|
||||||
@ -77,6 +78,7 @@ def get_aave_liquidations(
|
|||||||
block_number=trace.block_number,
|
block_number=trace.block_number,
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
return liquidations
|
return liquidations
|
||||||
|
|
||||||
|
|
||||||
@ -88,9 +90,7 @@ def _get_payback_token_and_amount(
|
|||||||
|
|
||||||
for child in child_traces:
|
for child in child_traces:
|
||||||
|
|
||||||
if child.classification == Classification.transfer and isinstance(
|
if isinstance(child, CallTrace):
|
||||||
child, DecodedCallTrace
|
|
||||||
):
|
|
||||||
|
|
||||||
child_transfer: Optional[Transfer] = get_transfer(child)
|
child_transfer: Optional[Transfer] = get_transfer(child)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user