Skip to content

maxwolff/aampl-mev

Repository files navigation

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

About

mev bot for arbing aampl rebases on aave

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages