This is a typescript version of this project https://github.com/NorVirae/mev-triangular-arbitrage-bot-contract.git
,
- waffle is being replaced by chai-matchers
- Code implementation from hardhat-toolbox
To run this project
- git clone
https://github.com/NorVirae/mev-triangular-arbitrage-bot-contract-typescript.git
- run
npm install
- run
npx hardhat test
, to see project execute on a fork of mainnet - run
npx hardhat run scripts/deploy.js --network [network_name]
, Network Name from "hardhat.config" - you can hook up the smart contract interface with a nodejs, python django/flask server(bot), to call the interfaces to perform arbitrage on block change.