flashbots / mev-inspect-py

🔎 an MEV inspector for Ethereum 🔎
MIT License
826 stars 258 forks source link

check that swaps involve both pool assets #328

Closed pintail-xyz closed 1 year ago

pintail-xyz commented 1 year ago

What does this PR do?

When creating swaps, this PR adds a check that the swap involves two different assets. If the two assets in the swap are the same, then the swap is invalid and is discarded.

Related issue

327

Testing

I have verified that transaction 0xd0bc1728db3e6cbe2769c2f534a5f7a9a5a46b13428c1a3f39c18dfce0154ec1 processes successfully after applying this change.

Checklist before merging