Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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 join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants