Skip to content

Latest commit

 

History

History
22 lines (14 loc) · 735 Bytes

README.md

File metadata and controls

22 lines (14 loc) · 735 Bytes

Ampleforth Arbitrage MEV Bot

If the upcoming ampleforth rebase would be profitable, borrow from aave right before the rebase, wait until it does happen, and then repay the loan. Uses a View.sol to figure out when the rebase is happening, and if the trade would be profitable.

Uses a local anvil rpc forked from mainnet to deploy the view contract and read values from chain. Uses a ws endpoint to read events. Sends via flashbots private transaction.

Usage

install forge fill out .env.example, rename to .env

in root

  • in new tab, ./fork.sh
  • go build
  • go run .

TODO:

  • simulate transactions before sent
  • dump ampl tokens on uniswap, bundle w repay tx