We have 2 practices and 2 discussions in SandwichPractice.t.sol
, follow the instructions in the comments to pass the test.
If you are interested in the sandwich attack, you can read more in this repository
Clone this repository, install Node.js dependencies, and build the source code:
git clone https://github.com/Rita94105/SandwichPractice.git
cd SandwichPractice
npm install
forge install
forge build
forge test