43 Commits

Author SHA1 Message Date
3586e648b2 init
Some checks failed
CI / test (10.x, ubuntu-latest) (push) Has been cancelled
CI / test (12.x, ubuntu-latest) (push) Has been cancelled
2025-07-08 01:27:47 +08:00
1136544ac8 exchange -> pair 2020-03-17 18:05:28 -04:00
80ce1e48c0 move from invariant -> k (compute sqrt lazily)
use getReserves more places

improve comment quality
2020-01-29 13:15:07 -05:00
d4661b1ae7 remove superfluous safety checks
whitespaces + comments
2020-01-24 13:31:19 -05:00
1f5c9aa9e7 populate getExchange bidirectionally 2020-01-24 12:58:21 -05:00
7c6d60dcc1 run linter 2020-01-24 11:26:00 -05:00
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
0d35e31a89 tweak factory functions 2020-01-22 13:39:23 -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
f2d4021498 remove exchangeBytecode in favor of .creationCode 2020-01-07 16:44:52 -05:00
a54b85f373 put a trailing _ on private variable 2020-01-06 14:50:49 -05:00
3d2493ef2c change variable name 2020-01-06 13:00:57 -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
e9e087c328 remove getTokens from the factory 2019-12-30 13:30:15 -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
9e80c55338 try out fees on swap
rework admin/fee stuff in the factory
2019-12-19 10:40:26 -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
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
fd95caea17 squash errors 2019-12-09 02:33:18 -05:00
d9dec32a8b version bumps 2019-12-08 14:52:19 -05:00
90dc9f39ab tweak factory api 2019-12-08 14:45:49 -05:00
19f3ff68c6 remove Pair struct from factory 2019-12-06 11:28:40 -05:00
f06361140c uint256 -> uint
use 256 in more places

break out separate functions
2019-12-04 17:08:38 -05:00
43dfc8c567 add exchanges data structure
fix tests
2019-11-19 18:17:11 -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
16cc7e95ba no chainid in create2 salt 2019-11-19 10:25:23 -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
2c5a1afd39 add uint128 where applicable
remove mapping in exchange

add example oracle

syntax changes
2019-10-30 18:56:12 -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
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