This is only for test, not for production.
- Modify the contract to support arbitrary token pairs.
✅smart contrats: AdvancedArbitrager.sol->arbitrage()
✅unit tests: test.js - Modify the contract to support multiple exchange interfaces (e.g. Uniswap V3, Balancer, 1Inch, etc.)
Support of UniswapV3
✅smart contracts: AdvancedArbitrager.sol->normalArbitrageUniswapV2ToUniswapV3()
✅unit tests: test.js - Make the contract ownable and then have the contract use it's own funds for trading. Provide profit-sharing incentives to users who call the
arbitrage()
function.✅smart contrats: AdvancedArbitrager.sol -> prfits, owner
✅unit tests: test.js - Add support for gas station network and use profits to pay for the gas costs.
✅smart contrats TokenPaymaster.sol, AdvancedArbitrager.sol
✅uint tests: install GSN env and test the integration in test-gsn.js - Integrate flash loans to maximize profit.
Integrate flash swap
✅smart contracts: AdvancedArbitrager.sol->uniswapV2Call
✅unit tests: test.js
yarn
yarn install
yarn test
yarn hardhat-node
open anthother terminal
yarn test-gsn