Commit Graph

212 Commits

Author SHA1 Message Date
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
d1c8612ea3 address uint(-1) failure case
closes #48
2020-01-21 12:28:26 -05:00
f04890ef4c make GenericERC20 inherit from...
...UniswapV2ERC20 not UniswapV2Exchange

tabs -> spaces
2020-01-14 14:23:40 -05:00
ddbb5e0ba0 make invariantLast public
add comment about private variables
2020-01-13 16:47:27 -05:00
cbe801b54f remove forfeit{,from}
make name + symbol + decimals constant

add GenericERC20

rename some contracts

update tests to reflect all of this
2020-01-13 15:59:07 -05:00
5a84023836 fix bug with updating invariantLast 2020-01-08 13:19:26 -05:00
9f15d75925 fix tests related to bytecode 2020-01-08 13:04:01 -05:00
f2d4021498 remove exchangeBytecode in favor of .creationCode 2020-01-07 16:44:52 -05:00
d12ca78f45 Update README.md 2020-01-06 19:14:46 -05:00
83ad498995 add getReserves to wrap single SLOAD
put a trailing _ on private variable
2020-01-06 14:52:46 -05:00
a54b85f373 put a trailing _ on private variable 2020-01-06 14:50:49 -05:00
4cdfb7e384 more SLOAD golfing 2020-01-06 14:11:35 -05:00
21618d4106 gas golf swap 2020-01-06 13:02:55 -05:00
3d2493ef2c change variable name 2020-01-06 13:00:57 -05:00