Herein contains source code and example usage for FlashMEV
contract.
Loans are made in a preferential order, based on lowest fees first then token availability. The following protocols are used:
- Balancer (0% fee)
- BentoBox (0.05% fee)
- Aave (0.09% fee)
Example usage:
flashMev.flash(DAI, amountIn, transactions);
Tests were built on Foundry.
curl -L https://foundry.paradigm.xyz | bash
foundryup
Copy .env.example
to .env
and fill out env vars e.g.
export MAINNET_RPC_URL=...
./script/test.sh
./script/deploy.sh