3586e648b2
init
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
27f6354bae
Revert "Revert "remove confusing comment""
...
This reverts commit 2997ebf30f .
2020-04-17 16:09:36 -04:00
272713c81b
Widen the pragma ( #71 )
...
* Widen the pragma
This reverts commit 528056ed
2020-04-17 16:05:13 -04:00
2997ebf30f
Revert "remove confusing comment"
...
This reverts commit 797706d8b5 .
2020-04-13 14:45:43 -04:00
797706d8b5
remove confusing comment
2020-04-01 10:42:03 -04:00
1136544ac8
exchange -> pair
2020-03-17 18:05:28 -04:00
170a739f08
switch lock from 2 -> 1 -> 2 to 1->0->1
2020-03-10 17:48:02 -04:00
505d0ac138
update _mintFee comment
2020-02-19 11:56:27 -05:00
b742e92502
optimistic swaps ( #53 )
...
* alternative flash lending (renting) design
* add rent interface
* fix stack too deep error
rearrange order of k condition math
ignore erroneous out of gas errors in tests
* try removing rent in favor of monolithic swap
IUniswapV2Borrower -> IUniswapV2Callee
update tests
* fix implementation
* clean up math a bit
* amount{0,1}In -> amount{0,1}InNet
* charge on all inputs, not just net
* removed unnecessary safemath
* add to != token check
don't indent in scope
rename reserve{0,1}Next -> reserve{0,1}Adjusted
* > instead of >=
simplify algebra
reserve{0,1}Adjusted -> balance{0,1}Adjusted
add comments
* add some optimistic swap test cases
2020-02-17 15:06:43 -07:00
55ae25109b
MINIMUM_TOTAL_SUPPLY -> MINIMUM_LIQUIDITY ( #51 )
...
* MINIMUM_TOTAL_SUPPLY -> MINIMUM_LIQUIDITY
make selector private
2020-02-07 10:38:46 -05:00
5c042758e8
fee to 5 bips
2020-02-06 15:38:58 -05:00
986d2491bd
MINIMUM_TOTAL_SUPPLY from 1e6 -> 1e4
2020-02-03 16:26:16 -05:00
05dfa2f9ba
optimize lock w/r/t the gas refund counter
2020-02-03 16:11:19 -05:00
a1e31c29a6
THRESHOLD -> MINIMUM_TOTAL_SUPPLY
2020-02-03 11:08:22 -05:00
e382d705d1
add THRESHOLD for pool shares balances
...
tentatively set to 1e6 for now
2020-01-31 15:10:21 -05:00
064aefb04c
fix kLast bug when fee goes on -> off -> on
2020-01-31 11:10:06 -05:00
1a2d91c440
view -> pure for the appropriate functions
2020-01-30 15:45:23 -05:00
ff7bee4252
add IUniswapV2ERC20 methods to IUniswapV2Exchange
2020-01-30 14:08:15 -05:00
bab77458b2
whitespace + comment cleanup
2020-01-30 12:49:09 -05:00
6344c31eeb
fix typo
2020-01-30 11:18:20 -05:00
80ce1e48c0
move from invariant -> k (compute sqrt lazily)
...
use getReserves more places
improve comment quality
2020-01-29 13:15:07 -05:00
452b531205
fix stale cache bug from SLOAD optimization
2020-01-27 18:13:43 -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
a55aa4bfed
block.number -> block.timestamp
...
tweak timing tests
make tests even better
2020-01-23 12:30:39 -05:00
5ea4c937f4
make selector public
2020-01-22 15:43:22 -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
585ee2ef82
tweak and add explanatory comments to libraries
2020-01-22 15:28:09 -05:00
794c384702
tighten up permit
2020-01-22 14:06:06 -05:00
0d35e31a89
tweak factory functions
2020-01-22 13:39:23 -05:00
524b14ed14
remove conditional from mint in test ERC20
2020-01-22 13:34:43 -05:00
1a4837bffa
reorder ERC20 functions, clean up naming
2020-01-22 13:14: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
d1c8612ea3
address uint(-1) failure case
...
closes #48
2020-01-21 12:28:26 -05:00
f04890ef4c
make GenericERC20 inherit from...
...
...UniswapV2ERC20 not UniswapV2Exchange
tabs -> spaces
2020-01-14 14:23:40 -05:00
ddbb5e0ba0
make invariantLast public
...
add comment about private variables
2020-01-13 16:47:27 -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
5a84023836
fix bug with updating invariantLast
2020-01-08 13:19:26 -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
83ad498995
add getReserves to wrap single SLOAD
...
put a trailing _ on private variable
2020-01-06 14:52:46 -05:00
a54b85f373
put a trailing _ on private variable
2020-01-06 14:50:49 -05:00
4cdfb7e384
more SLOAD golfing
2020-01-06 14:11:35 -05:00
21618d4106
gas golf swap
2020-01-06 13:02:55 -05:00
3d2493ef2c
change variable name
2020-01-06 13:00:57 -05:00
722012f02e
make casting explicit
2020-01-06 12:39:28 -05:00
8456d91def
optimize _mintFee
2020-01-06 12:39:13 -05:00
513838258e
condense if statement
2020-01-06 12:38:31 -05:00
3395f3c56c
clean up fee minting
2020-01-02 18:01:30 -05:00