Flashloan Template
A set of contracts and tests to take a 1000 WETH flashloan from aave v3 built using forge.
Usage
create a .env with mainnet rpc url
echo "mainnet=<your_rpc_url>" > .env
Build
$ forge build
Test
$ forge test -vvvv
Format
$ forge fmt
Gas Snapshots
$ forge snapshot
Anvil
$ anvil
Deploy
$ forge script script/Counter.s.sol:CounterScript --rpc-url <your_rpc_url> --private-key <your_private_key>
Cast
$ cast <subcommand>
Help
$ forge --help
$ anvil --help
$ cast --help