Commit Graph

114 Commits

Author SHA1 Message Date
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
76a825b65a minor updates 2019-10-02 05:17:27 -07:00
1b2a28927c remove external getInputPrice 2019-10-02 04:55:31 -07:00
fe37136aaa update removeLiquidity 2019-10-01 17:50:47 -07:00
e7877b887c update addLiquidity 2019-10-01 17:45:49 -07:00
efff3cae04 refactor 2019-10-01 16:21:55 -07:00
a46b6630a7 switch to use currentOutputReserve 2019-10-01 15:52:32 -07:00
04b994380d contracts: track reserves in ERC20 and remove transferFrom 2019-10-01 13:20:19 -07:00
7bf29e9bdc contracts: split swapInput into two functions
This refactors the ERC20-ERC20 contract to split swapInput into two public functions, with the shared logic in a single private function. This reduces the amount of branching, and is likely to make further changes (such as caching reserve balances and recording accumulator values for the oracle) easier.
2019-10-01 12:17:13 -07:00
c791c27aee declare swap function before it is called 2019-10-01 11:13:44 -07:00
f30a65d6da fix recipient argument 2019-10-01 10:46:43 -07:00
55f999a531 add semicolon 2019-10-01 10:45:44 -07:00
52e2971afc contracts: split swapInput into two functions 2019-10-01 10:35:36 -07:00
9ea8b3a5d4 Merge pull request #2 from Uniswap/dropSwapOutput
contracts: drop swapOutput
2019-10-01 11:47:13 -04:00
524d17b282 drop getOutputPrice 2019-09-30 19:49:37 -07:00
346c642604 contracts: drop swapOutput 2019-09-25 18:02:26 -07:00
8c104c2ecc contracts: fix assignment bug
This fixes an apparent bug in the ERC20-ERC20 exchange contract, in which two methods use the equality operator == instead of the assignment operator =.
2019-09-25 17:51:37 -07:00