Skip to content

kfujita0520/Unicode2021

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Arbitrage between Uniswap Protocol Version

This project demonstrates Proof of Concept(PoC) of arbitrage between Uniswap V2 and V3. At the moment, PoC covers following scope.

  • Monitor and detect the arbitrage opportunities of BAT/ETH pair between V2 and V3
  • Implement flash swap arbitrage function in smart contract for V2-to-V3 direction.
  • Implement flash swap arbitrage function in smart contract for V3-to-V2 direction sourcing asset from flash() function of UniswapV3Pool.
  • Implement flash swap arbitrage function in smart contract for V3-to-V2 direction directly without using flash() function for saving fee.

In addition to above flashswap function, PoC work for permit is also done, this will enable user wallet to skip token approve procedure, in case you use some asset of your own wallet for arbitrage. Please note that permit function is not widely implemented in ERC20 token yet. We tried Uniswap token, which is one of exceptions, this time, but still there is some issue as written in source code.

Architecture

arbitrage.png

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published