254 Commits

Author SHA1 Message Date
da6ba92d92 clean up names and implementation of oracle stuff
update UQ104.104 copy

make safetransfer much clearer
2019-11-26 13:42:55 -05:00
563af0593f Merge branch 'ha-dev' 2019-11-26 12:52:39 -05:00
bee51151c2 make oracke data public 2019-11-26 12:52:29 -05:00
c4accffc8c Merge pull request #20 from Uniswap/ha-dev
oracle updates
2019-11-26 12:41:41 -05:00
a6970a3887 fix bugs 2019-11-26 12:15:54 -05:00
3bb8a6defb compact storing for blocknumber and oracle data 2019-11-25 17:49:04 -05:00
238b0a9658 use uint240 for q104.104 2019-11-25 16:34:40 -05:00
a480e3df21 update readme 2019-11-25 15:40:06 -05:00
29c58941df add node_modules to gitignore 2019-11-22 18:24:14 -05:00
897b61b78d optimize uq104 to avoid higher bit space math 2019-11-22 15:48:23 -05:00
f9f8306af0 add clarifying comments to the fixed point library 2019-11-22 13:14:10 -05:00
410ca57f55 make clear that this is still just a mock 2019-11-21 18:35:02 -05:00
fe96d9a789 add skeleton Q104.104 implementation 2019-11-21 18:01:49 -05:00
7f7169fec4 fix tests 2019-11-21 13:26:57 -05:00
3aa5371d48 mock out price accumulator 2019-11-21 13:24:09 -05:00
221831cf7f logically separate erc20 interface functions 2019-11-21 13:23:42 -05:00
f8737d1296 remove extraneous files 2019-11-21 13:23:24 -05:00
8324bbdc7c move inocmpatible erc20 interface into library 2019-11-21 13:23:13 -05:00
5dedf7a92b add require to rageQuit 2019-11-21 12:10:58 -05:00
e669a81a33 require inside safeTransfer 2019-11-21 12:00:21 -05:00
43dfc8c567 add exchanges data structure
fix tests
2019-11-19 18:17:11 -05:00
c338bd4e5a implement rageQuit 2019-11-19 18:02:47 -05:00
b5437d3ea6 remove chainid in favor of istanbul opcode mocks
clean up signature verification

log post-execution balances
2019-11-19 14:44:43 -05:00
b9c105c962 712 signatures 2019-11-19 10:26:03 -05:00
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