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

Aave ETH liquidations fixed#314

Open
atharvamitragotri wants to merge 2 commits intoflashbots:mainfrom
atharvamitragotri:aavefix
Open

Aave ETH liquidations fixed#314
atharvamitragotri wants to merge 2 commits intoflashbots:mainfrom
atharvamitragotri:aavefix

Conversation

@atharvamitragotri
Copy link
Copy Markdown

@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

classified_traces = trace_classifier.classify(block.traces)
result = get_liquidations(classified_traces)

print("Liquidation result:")
Copy link
Copy Markdown

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
Copy Markdown
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