|
|
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 |
|
|
|
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 |
|
|
|
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 |
|
|
|
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 |
|
|
|
722012f02e
|
make casting explicit
|
2020-01-06 12:39:28 -05:00 |
|
|
|
8456d91def
|
optimize _mintFee
|
2020-01-06 12:39:13 -05:00 |
|
|
|
513838258e
|
condense if statement
|
2020-01-06 12:38:31 -05:00 |
|
|
|
3395f3c56c
|
clean up fee minting
|
2020-01-02 18:01:30 -05:00 |
|
|
|
baa8ccb5dc
|
fix swapped price accumulators
|
2020-01-02 10:27:45 -05:00 |
|
|
|
b8655fee9f
|
add "to" parameter to relevant functions
|
2019-12-30 17:54:02 -05:00 |
|
|
|
623353e9ad
|
make push syntax more explicit
|
2019-12-30 15:57:43 -05:00 |
|
|
|
ba29b46456
|
move fee from swap back to mint + burn
|
2019-12-30 15:36:25 -05:00 |
|
|
|
cdd379079d
|
burn -> forfeit
burnFrom -> forfeitFrom
make -> mint
made -> burn
move -> swap
make deadline check >= insteand of >
|
2019-12-30 15:07:49 -05:00 |
|
|
|
27efee645f
|
notLocked -> unlocked
|
2019-12-30 13:30:23 -05:00 |
|
|
|
e9e087c328
|
remove getTokens from the factory
|
2019-12-30 13:30:15 -05:00 |
|
|
|
d2ddbd95e8
|
note edge case
|
2019-12-20 15:26:04 -05:00 |
|
|
|
203795277e
|
add istanbul support for testing environment
|
2019-12-20 14:26:52 -05:00 |
|
|
|
c5e9261036
|
bump to solc@0.5.15
|
2019-12-20 13:28:21 -05:00 |
|
|
|
3c8ce4e1cc
|
fix fee on swap implementation
|
2019-12-20 13:20:21 -05:00 |
|
|
|
49882ab99b
|
forfeit -> burn
mint -> make
burn -> made
|
2019-12-19 18:02:49 -05:00 |
|
|
|
5add082d4f
|
use interface in the factory
|
2019-12-19 12:56:54 -05:00 |
|
|
|
8a7da15f24
|
tweak rate when fees are on
|
2019-12-19 12:30:24 -05:00 |
|
|
|
9e80c55338
|
try out fees on swap
rework admin/fee stuff in the factory
|
2019-12-19 10:40:26 -05:00 |
|
|
|
20ae6d1195
|
unsafeBurn{,from} -> forfeit{,From}
expiration -> deadline
|
2019-12-19 08:45:37 -05:00 |
|
|
|
c9d0ba6198
|
prefix burn/burnFrom in ERC20 with unsafe
fix tests for new contract code
|
2019-12-18 17:51:25 -05:00 |
|
|
|
580787051e
|
change to more flexible variant
combine swap functions
name changes
|
2019-12-18 16:40:32 -05:00 |
|
|
|
8c6d9fb17d
|
inline bool check
|
2019-12-16 12:19:42 -05:00 |
|
|
|
1487bd402c
|
prettier if statements
|
2019-12-13 17:41:18 -05:00 |
|
|
|
5b15d59773
|
approveMeta -> permit
call factory for fee logic
fail on balances > max112
add skim
use reserves in burnLiquidity
|
2019-12-13 17:25:04 -05:00 |
|
|
|
f263dab9b5
|
add more tests
|
2019-12-13 14:39:09 -05:00 |
|
|
|
4c77c630fb
|
bulk out fee implementation
|
2019-12-12 18:12:23 -05:00 |
|
|
|
4e4546d0a9
|
bump solc to 0.5.14
chainId implementation (commented out for now)
improve events
move safeTransfer in UniswapV2
tweak error messages
|
2019-12-12 14:52:15 -05:00 |
|
|
|
f128ef3bc9
|
tweak name
|
2019-12-11 16:32:49 -05:00 |
|
|
|
cb20aa4604
|
clean up naming
|
2019-12-11 15:19:28 -05:00 |
|
|
|
f71bceee3d
|
fix some edge cases and burnLiquidity bug
|
2019-12-11 14:50:24 -05:00 |
|