7bf29e9bdc56e4b75bc38f55350f01273143a3f2
This refactors the ERC20-ERC20 contract to split swapInput into two public functions, with the shared logic in a single private function. This reduces the amount of branching, and is likely to make further changes (such as caching reserve balances and recording accumulator values for the oracle) easier.
Installation:
- Clone Uniswap
$ git clone https://github.com/Uniswap/uniswap-v2
$ cd uniswap-v2
- Install dependencies
yarn
- Run tests
yarn test
Description
Languages
Solidity
53.7%
TypeScript
46.3%