mev-inspect-rs icon indicating copy to clipboard operation
mev-inspect-rs copied to clipboard

Add more inspectors

Open gakonst opened this issue 5 years ago • 6 comments

https://github.com/flashbots/mev-inspect-ts/issues?q=is%3Aissue+is%3Aopen+%22inspector%22+

gakonst avatar Nov 19 '20 09:11 gakonst

Single-tx inspectors to add

  • [ ] Kyber Network (https://etherscan.io/tx/0x3e54f6d046e3c3d5441590d5204cb9ff726b18f99220a654fd6ad5388da12d27)
  • [ ] Bancor (https://etherscan.io/tx/0xda5cad0c628dca3bf70b61984bf2e0621d27dc94e4c6e120c4cc2490fdd6592e)
  • [ ] bZx initial Uniswap offering (frontrunning) (https://defirate.com/bzrx-initial-dex-offering)
  • [ ] UMA initial Uniswap offering, same kinda stuff (https://defirate.com/uma-uniswap-listing/)
  • [ ] DPI/underlying arb
  • [ ] Augur/Catnip arb

Multi-tx inspectors to add

  • [ ] Uniswap sandwiching (see this paper: https://arxiv.org/abs/2009.14021)
  • [ ] Backrunning an oracle updates (DyDx liquidations) (https://github.com/ethereum/go-ethereum/issues/21350)
  • [ ] NXM price rebalances (backrunning / sandwiching) The MCR increments every four hours, so the price drops right wen the MCR update happens on chain. The price of NXM would decrease until funds held is < 1.3 * MCR or MCR at 100k ETH, whichever came first. https://nexusmutual.io/token-model.html So one could essentially sell right before predictable price decrease and buy back right after, in large size

obadiaa avatar Dec 17 '20 03:12 obadiaa

Agreed with everything, clarifying:

  • What does long tail arb mean?
  • What is a multi-legged arb? Arb1 -> room for some other txs by other players -> Arb2?

gakonst avatar Dec 17 '20 08:12 gakonst

Added some extra resources for the inspectors above and happy to brainstorm some more, although I feel @jparyani's work on taking the other approach of looking at what the top bots are doing and using that as a compass for which inspectors to write might be a lil better

@gakonst I added both of these points from the original ts repo issue you linked, I'm not sure what long-tail arb means in this context, maybe @thegostep remembers?

Multi-legged arb just means when you go through several price pairs instead of just 2, but it can still be within the same transaction!

obadiaa avatar Dec 17 '20 20:12 obadiaa

I believe long tail means small arbs not profitable under normal execution risk conditions

thegostep avatar Dec 18 '20 03:12 thegostep

Yeah @obadiaa now that we have support for the "big" protocols, I agree using the big bots as a compass.

gakonst avatar Dec 18 '20 09:12 gakonst

We could also use Gervais et. al's paper https://arxiv.org/pdf/2101.05511.pdf for some direction

Generally, protocols I can think of to cover:

  • Swerve (?)
  • Mooniswap
  • Bancor
  • Kyber

Seems like our inspectors already cover a large market share though (thanks @sui414 for the pic)

image

obadiaa avatar Jan 28 '21 14:01 obadiaa