Commit Graph

80 Commits

Author SHA1 Message Date
16cc7e95ba no chainid in create2 salt 2019-11-19 10:25:23 -05:00
5c28aad41d improve reentrancy gas efficiency 2019-11-19 10:25:04 -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
ca42b7e988 automatically get burned liquidity
rework function order

add more comments
2019-10-31 12:40:53 -04:00
fbaf1f992a more specific error 2019-10-31 11:29:33 -04:00
699aa8a501 rework function order 2019-10-31 11:29:24 -04:00
0afb8d1323 tweaks 2019-10-31 11:16:17 -04:00
4779878e27 named return variables in libraries...
...are now consistent with how we do it in contracts

moved downcast helpers to Math

clearer error names
2019-10-31 11:16:02 -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
af1adee855 more tabs -> spaces 2019-10-29 10:52:20 -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
06f94dc334 burn instead of burnFrom 2019-10-25 18:42:28 -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
cd41f86770 add liquidity amount to events 2019-10-25 17:28:04 -04:00
7fbf2244e9 add uniswapv2 interface
make bytecode in factory public

update tests
2019-10-25 16:37:17 -04:00
e5b8db9df1 initial exchange re-write
add initialization function to exchanges

add mint function in erc20
2019-10-25 15:06:06 -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
d53d6de4ef add todo comments
don't hardcode decimals

don't make burns + transfers exclusive

simplify contract names

refactor factory
2019-10-23 18:18:18 -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
3df2dbbae9 add circleci status badge
[skip ci]
2019-10-22 11:42:59 -04:00
f5c196350f add prettier
test in typescript

add GPL license

pin solc version

add CI
2019-10-22 11:38:01 -04:00
9c4b7cc1da Merge pull request #7 from Uniswap/dev
Dev
2019-10-21 19:08:49 -04:00
c2e415ea15 Merge pull request #6 from Uniswap/dan-dev
Add TWAP accumulator and wrapper
2019-10-21 19:08:08 -04:00
3baacaa6c8 small fixes and notes 2019-10-21 19:07:53 -04:00
7a07593551 remove ETH contracts 2019-10-21 18:45:28 -04:00
5fd97de4f1 fixes 2019-10-03 14:00:17 -07:00
db2c1cba0a add wrapper 2019-10-03 00:12:29 -07:00
691cfe2888 add require statements 2019-10-02 15:39:58 -07:00
10f48a6675 tweak 2019-10-02 15:25:24 -07:00
78adbf91c6 tweaks 2019-10-02 15:17:14 -07:00
6dc7342ff3 add twap accumulator 2019-10-02 15:06:10 -07:00
d1a352e447 update removeLiquidity 2019-10-02 11:54:02 -07:00
175caf4d19 make getInputPrice internal 2019-10-02 11:32:46 -07:00
3512a8af16 fix spelling on reentrancyLock 2019-10-02 11:28:12 -07:00
8f0507302d remove unnecessary checks 2019-10-02 11:25:03 -07:00
d47ffd5ec6 add recipient arg 2019-10-02 11:20:56 -07:00
e2c72b3246 refactor to keep stack small enough 2019-10-02 11:13:46 -07:00
afac21fc00 wip 2019-10-02 11:09:38 -07:00
da0b31bb1f remove redundant checks 2019-10-02 10:47:41 -07:00
844a47570c add Math library; change initial liquidity to geometric mean 2019-10-02 10:33:02 -07:00
cd6855ec97 Merge pull request #4 from Uniswap/trackReserves
contracts: track reserves in ERC20-ERC20 exchange and remove transferFrom
2019-10-02 11:22:25 -04:00