Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/ControlCplusControlV/Arbitrage-Example


https://github.com/ControlCplusControlV/Arbitrage-Example

Last synced: about 1 month ago
JSON representation

Awesome Lists containing this project

README

        

# Arbitrage-Example

There were just no good up to date Uniswap V2 Arbitrage Examples so I made one

Test via

```
forge test --fork-url
```

## Notes on Effiency

- Rewrite in Yul+ since the repayment math does need to be safe but solidity safemath is horrible in effiency
- getPair can be derived inside the contract through a function like [this](https://github.com/Uniswap/v2-periphery/blob/master/contracts/libraries/UniswapV2Library.sol#L18) but including factory init code hash is confusing for people