Flash swap liquidation bot for compound.finance + flashbots
New Bedford is a (massively) upgraded version of Nantucket that some of you are probably familiar with. I'm releasing this now because I don't feel like making upgrades for the new Chainlink oracle setup (and I don't want to pay for bloXroute to backrun the price updates). Despite this lack of compatibility, I hope something in here is useful to someone.
transfer
s and emit
s
MinerPayer
in case Flashbots makes searchers pay a contractNOTE: These features are spread across the ethereum-pga and ethereum-flashbots directories.
ethereum-flashbots
is generally better.
delegator
and formulates transactions for PGAsdelegator
and formulates transactions for flashbotsNOTE: Most of this won't work without my
web3-blocks
library, which is still private. But if you can infer what functionality needs to be there and replicate the API, you might be able to get this running.
Don't. You will almost certainly loose money. Feel free to admire the code or use it as a reference point, but please don't try to run it as-is.