Skip to content

dik654/Arbitrage

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Arbitrage

image

Introduction

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.


Installation

curl -L https://foundry.paradigm.xyz | bash foundryup

Test

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 --ffi

Deployment

write .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 --broadcast

License

Distributed under the MIT License. See License for more information.

Contact

If you have any questions, please contact me by email

✉️ kimmalee1577@gmail.com

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors