10be569bd3
bye mac
2020-04-01 15:11:19 -04:00
4ccc150998
Merge branch 'master' of https://github.com/Uniswap/uniswap-v2-core
2020-04-01 10:42:06 -04:00
797706d8b5
remove confusing comment
2020-04-01 10:42:03 -04:00
1f563ce23b
Merge pull request #58 from Uniswap/open-source
...
open-source 🎉
2020-03-23 15:46:56 -04:00
1136544ac8
exchange -> pair
2020-03-17 18:05:28 -04:00
11bd4b0c11
open-source 🎉
2020-03-13 17:13:17 -04:00
170a739f08
switch lock from 2 -> 1 -> 2 to 1->0->1
2020-03-10 17:48:02 -04:00
b6257cdfc3
add build/ folder generated from the frozen code
2020-03-03 11:33:24 -05:00
ccf5f7e46e
make gas test more correct
2020-02-27 15:49:30 -05:00
642d21d7ae
fix commented out tests
2020-02-25 17:32:21 -05:00
505d0ac138
update _mintFee comment
2020-02-19 11:56:27 -05:00
b742e92502
optimistic swaps ( #53 )
...
* 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
2020-02-17 15:06:43 -07:00
3f5feaa369
fix syntax
2020-02-07 10:40:27 -05:00
55ae25109b
MINIMUM_TOTAL_SUPPLY -> MINIMUM_LIQUIDITY ( #51 )
...
* MINIMUM_TOTAL_SUPPLY -> MINIMUM_LIQUIDITY
make selector private
2020-02-07 10:38:46 -05:00
188eb5ac6d
only run CI on pushes when it's to master
2020-02-07 10:38:07 -05:00
7831f8155a
Merge pull request #54 from Uniswap/fee-to-5-bips
...
fee to 5 bips
2020-02-07 10:05:54 -05:00
5c042758e8
fee to 5 bips
2020-02-06 15:38:58 -05:00
986d2491bd
MINIMUM_TOTAL_SUPPLY from 1e6 -> 1e4
2020-02-03 16:26:16 -05:00
05dfa2f9ba
optimize lock w/r/t the gas refund counter
2020-02-03 16:11:19 -05:00
a1e31c29a6
THRESHOLD -> MINIMUM_TOTAL_SUPPLY
2020-02-03 11:08:22 -05:00
0e5d00f491
add transfer event tests for burn
2020-01-31 17:19:38 -05:00
1df07b3844
test for transfer events on swap
2020-01-31 17:11:13 -05:00
e382d705d1
add THRESHOLD for pool shares balances
...
tentatively set to 1e6 for now
2020-01-31 15:10:21 -05:00
064aefb04c
fix kLast bug when fee goes on -> off -> on
2020-01-31 11:10:06 -05:00
1a2d91c440
view -> pure for the appropriate functions
2020-01-30 15:45:23 -05:00
ff7bee4252
add IUniswapV2ERC20 methods to IUniswapV2Exchange
2020-01-30 14:08:15 -05:00
bab77458b2
whitespace + comment cleanup
2020-01-30 12:49:09 -05:00
2d84a7f5f5
improve stability of tests in CI environment
2020-01-30 12:43:16 -05:00
6344c31eeb
fix typo
2020-01-30 11:18:20 -05:00
cfc9eecff7
add more robust tests for price{0,1}CumulativeLast
2020-01-30 11:01:59 -05:00
80ce1e48c0
move from invariant -> k (compute sqrt lazily)
...
use getReserves more places
improve comment quality
2020-01-29 13:15:07 -05:00
452b531205
fix stale cache bug from SLOAD optimization
2020-01-27 18:13:43 -05:00
0b37035f04
emit klab-compatible output
...
closes #49
2020-01-27 10:59:18 -05:00
3e228282d3
clean up tests
2020-01-24 13:56:46 -05:00
d4661b1ae7
remove superfluous safety checks
...
whitespaces + comments
2020-01-24 13:31:19 -05:00
1f5c9aa9e7
populate getExchange bidirectionally
2020-01-24 12:58:21 -05:00
7c6d60dcc1
run linter
2020-01-24 11:26:00 -05:00
a55aa4bfed
block.number -> block.timestamp
...
tweak timing tests
make tests even better
2020-01-23 12:30:39 -05:00
5ea4c937f4
make selector public
2020-01-22 15:43:22 -05:00
002b82d723
fix permit test
2020-01-22 15:43:14 -05:00
85d6435ea2
add some comments
...
preface all errors with "UniswapV2: ..."
tweak the order of a few things
use abi.encodeWithSelector instead of abi.encodeWithSignature
2020-01-22 15:39:43 -05:00
585ee2ef82
tweak and add explanatory comments to libraries
2020-01-22 15:28:09 -05:00
794c384702
tighten up permit
2020-01-22 14:06:06 -05:00
0d35e31a89
tweak factory functions
2020-01-22 13:39:23 -05:00
524b14ed14
remove conditional from mint in test ERC20
2020-01-22 13:34:43 -05:00
1a4837bffa
reorder ERC20 functions, clean up naming
2020-01-22 13:14:55 -05:00
ea5e63c427
improve code quality of tests
2020-01-22 12:16:55 -05:00
62e4187562
fix CI format
2020-01-22 11:51:57 -05:00
b972227df8
update to solc@0.5.16
...
update waffle version and fix deprecations
move CI from circle to github actions
2020-01-22 11:47:24 -05:00
0781322e0b
bump optimizer runs
2020-01-22 11:25:28 -05:00