This repository contains the logic of earning arbitrage profits and distributing profits to investors using the difference in exchange costs between Uniswap V2 pools. These contracts were written under the foundry framework Testing and deployment can be done through the following process.
curl -L https://foundry.paradigm.xyz | bash
foundryup
cd contract
forge install
forge remappings > remappings.txt
forge clean && forge test --mc ArbitrageMockTest -vv --ffi
forge clean && forge test --mc RewardDistributionMockTest -vv --ffi
forge clean && forge test --mc ArbitrageTest --fork-url https://mainnet.infura.io/v3/<API_KEY> -vv --ffi
forge test --mc RewardDistributionTest --fork-url https://mainnet.infura.io/v3/<API_KEY> -vv --ffiwrite .env file based on .env.example
forge clean && forge script script/DeployArbitrageurScript.s.sol:DeployArbitrageurScript --rpc-url https://eth-sepolia.g.alchemy.com/v2/<API_KEY> --sender <PUBLIC_ADDRESS> --ffi --broadcast
forge clean && forge script script/DeployRewardDistributor.s.sol:DeployRewardDistributorScript --rpc-url https://eth-sepolia.g.alchemy.com/v2/<API_KEY> --sender <PUBLIC_ADDRESS> --ffi --broadcastDistributed under the MIT License. See License for more information.
If you have any questions, please contact me by email
✉️
kimmalee1577@gmail.com
