Revert "ignore reverted transactions from liquidation classifier"
This reverts commit 397c7536fc10934f18a02e8c81ccab296985d755.
This commit is contained in:
parent
397c7536fc
commit
d5ffa4dc46
@ -1 +0,0 @@
|
||||
3.9.13
|
@ -30,9 +30,6 @@ def get_liquidations(classified_traces: List[ClassifiedTrace]) -> List[Liquidati
|
||||
if _is_child_liquidation(trace, parent_liquidations):
|
||||
continue
|
||||
|
||||
if trace.error == "Reverted":
|
||||
continue
|
||||
|
||||
if trace.classification == Classification.liquidate:
|
||||
|
||||
parent_liquidations.append(trace)
|
||||
|
File diff suppressed because one or more lines are too long
@ -115,18 +115,3 @@ def test_c_token_liquidation(trace_classifier: TraceClassifier):
|
||||
|
||||
for liquidation in liquidations:
|
||||
assert liquidation in result
|
||||
|
||||
|
||||
def test_reverted_liquidation(trace_classifier: TraceClassifier):
|
||||
block_number = 15049646
|
||||
transaction_hash = (
|
||||
"0x6dd0d8be8a77651f64ef399b47fbc87011bd796b43349c3164ff7da965e0b345"
|
||||
)
|
||||
|
||||
block = load_test_block(block_number)
|
||||
classified_traces = trace_classifier.classify(block.traces)
|
||||
result = get_liquidations(classified_traces)
|
||||
|
||||
assert transaction_hash not in [
|
||||
liquidation.transaction_hash for liquidation in result
|
||||
]
|
||||
|
Loading…
x
Reference in New Issue
Block a user