Clone repository as flashswap
git clone https://github.com/CryptoWizardsNet/flash-loan-arbitrage-triangular.git flashswap
Change directory flashswap
cd flashswap
Install packages as a clean install. Important, this will ensure that your versions are exactly the same as what is shown in the course.
npm ci
Install packages as a clean install. Important, this will ensure that your versions are exactly the same as what is shown in the course.
npx hardhat test
You will likely see a "Arbitrage not profitable" error come up, if the arbitrage is not profitable. This is the most common result and in fact means the code is working.