b742e92502ea86d9ac2e4c6460ca1eb4db04fa9a
* alternative flash lending (renting) design
* add rent interface
* fix stack too deep error
rearrange order of k condition math
ignore erroneous out of gas errors in tests
* try removing rent in favor of monolithic swap
IUniswapV2Borrower -> IUniswapV2Callee
update tests
* fix implementation
* clean up math a bit
* amount{0,1}In -> amount{0,1}InNet
* charge on all inputs, not just net
* removed unnecessary safemath
* add to != token check
don't indent in scope
rename reserve{0,1}Next -> reserve{0,1}Adjusted
* > instead of >=
simplify algebra
reserve{0,1}Adjusted -> balance{0,1}Adjusted
add comments
* add some optimistic swap test cases
The contents of this GitHub repo are confidential until this disclaimer is removed and the repo is made public
UniswapV2
Local Development
The following assumes the use of node@>=10.
Clone Repository
git clone https://github.com/Uniswap/uniswap-v2-core.git
cd uniswap-v2-core
Install Dependencies
yarn
Compile Contracts and Run Tests
yarn compile
yarn test
Description
Languages
Solidity
53.7%
TypeScript
46.3%