Commit Graph

49 Commits

Author SHA1 Message Date
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
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
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
9f15d75925 fix tests related to bytecode 2020-01-08 13:04:01 -05:00
83ad498995 add getReserves to wrap single SLOAD
put a trailing _ on private variable
2020-01-06 14:52:46 -05:00
3d2493ef2c change variable name 2020-01-06 13:00:57 -05:00
a589b65bd5 remove unused dependency 2020-01-06 12:39:35 -05:00
b8655fee9f add "to" parameter to relevant functions 2019-12-30 17:54:02 -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
e9e087c328 remove getTokens from the factory 2019-12-30 13:30:15 -05:00
203795277e add istanbul support for testing environment 2019-12-20 14:26:52 -05:00
49882ab99b forfeit -> burn
mint -> make

burn -> made
2019-12-19 18:02:49 -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
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
467e15b931 mineBlocks and increase default timeout 2019-12-13 14:48:03 -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
12b269d686 small tweaks 2019-12-09 16:24:59 -05:00
fd95caea17 squash errors 2019-12-09 02:33:18 -05:00
401d8e1e51 fix tests 2019-12-08 16:11:44 -05:00
b284b63118 don't pack prices as much 2019-12-05 13:28:23 -05:00
7f7169fec4 fix tests 2019-11-21 13:26:57 -05:00
43dfc8c567 add exchanges data structure
fix tests
2019-11-19 18:17:11 -05:00
b9c105c962 712 signatures 2019-11-19 10:26:03 -05:00
4534a99f87 changes 2019-11-07 17:47:55 -05:00
710adc3254 changes 2019-11-06 17:23:03 -05:00
8cb70d07b2 tweaks 2019-10-31 17:46:25 -04:00
88b63ccee0 add getOtherTokens
rework function order

test tweaks
2019-10-31 12:43:51 -04:00
fbaf1f992a more specific error 2019-10-31 11:29:33 -04:00
73940c6d38 repo cleanup 2019-10-31 11:13:18 -04:00
2c5a1afd39 add uint128 where applicable
remove mapping in exchange

add example oracle

syntax changes
2019-10-30 18:56:12 -04:00
976ac977e9 testing improvements
added fixtures, utilities, constants

modularized and cleaned up code
2019-10-30 13:27:10 -04:00
58755fc362 fix burn logic/visibility
add getters for reserves + data

fix first-time accumulator bug

add more tests
2019-10-29 15:18:48 -04:00
b6e403ed14 add downcast helpers
add safe transfer for bad tokens

reorder updateData order

refactor tests to be more explicit
2019-10-28 16:24:29 -04:00
3f9418e486 finalize 191 signatures 2019-10-28 14:33:47 -04:00
7417b27666 experiment with 712 2019-10-28 13:29:18 -04:00
cb4d3f3bcb inline variable and tweak tests 2019-10-25 18:32:29 -04:00
97c30f27c4 improve tests 2019-10-25 17:28:30 -04:00
7fbf2244e9 add uniswapv2 interface
make bytecode in factory public

update tests
2019-10-25 16:37:17 -04:00
d48b5f5a44 run everything on constantinople
turn on compiler optimization

don't hardcode 18 decimals

add create2

name return values in factory
2019-10-24 18:03:15 -04:00
1175598e42 rework erc20
start to standardize syntax

4 spaces/tab

add implementation reference links

improve tests
2019-10-22 14:56:34 -04:00
f5c196350f add prettier
test in typescript

add GPL license

pin solc version

add CI
2019-10-22 11:38:01 -04:00
d6958dfec8 add README.md 2019-08-29 16:26:59 -04:00
59d19b2962 finish initial contracts 2019-08-29 16:10:44 -04:00
36a59fb592 basic setup 2019-08-28 16:31:10 -04:00