Skip to content
This repository has been archived by the owner on Nov 27, 2024. It is now read-only.

Aave ETH liquidations fixed #314

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

atharvamitragotri
Copy link

@atharvamitragotri atharvamitragotri commented Oct 5, 2022

What does this PR do?

Added a separate transfer classifier spec for the transferToReserve() function on the LendingPoolCore contract. This makes sure that the debt transfer is detected and classified even when the reserve is ETH

Related issue

#313 ETH liquidations on Aave not detected

Testing

Unit test for block 10384319 to check if liquidations for ETH are detected.

Checklist before merging

  • Read the contributing guide
  • Installed and ran pre-commit hooks
  • All tests pass with ./mev test

@@ -62,6 +63,11 @@ def test_single_liquidation(trace_classifier: TraceClassifier):
classified_traces = trace_classifier.classify(block.traces)
result = get_liquidations(classified_traces)

print("Liquidation result:")

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove print debugs

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed print debugs

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants