89 Commits
Author SHA1 Message Date
Owen 3fc9478190 new router 2022-10-31 20:43:10 -07:00
Owen c8b228b2a3 add partial fill test support w/ fuzzing 2022-08-29 12:17:36 -07:00
Owen 0d0fc0fc8a add compatibility to usingXYK for new tests 2022-08-28 23:03:00 -07:00
Owen 7449cffae4 Merge branch 'feat/xyk-bonding-curve' into main 2022-08-28 22:57:41 -07:00
Owen e879f70122 add more tests 2022-08-28 14:45:10 -07:00
Owen 494b308f5d add more tests to partial fill 2022-08-28 14:18:55 -07:00
Owen f82834a9de router2 tests wip 2022-08-26 23:29:15 -07:00
Owen 1244c8798f buy and sell done 2022-08-25 16:43:42 -07:00
Owen 63ce4c39da init 2022-08-24 19:32:11 -07:00
Owen f970d9d2a2 first pass of router2 2022-08-23 23:52:28 -07:00
Owen cfbe1eb24f wip 2022-08-22 16:37:52 -07:00
Owen a0fa75fb4f wip router2 2022-08-19 12:29:21 -07:00
Owen c0961a4810 new router wip 2022-08-11 22:24:04 -07:00
Owen aff05e9d71 xyk curve, add one more check to avoid divide by 0 error 2022-08-11 22:18:22 -07:00
Owen 2ef9876f71 add comparison 2022-06-23 15:52:11 -07:00
Owen 85fd74dcf4 add extra conditions for workflow 2022-06-03 14:12:08 -07:00
Owen b75ae80298 update actions 2022-06-03 14:01:27 -07:00
Owen c5f3a289f9 fix arg issue? 2022-06-03 13:55:24 -07:00
Owen 9e8ee80f60 change name to be consistent 2022-05-28 20:54:32 -07:00
Owen 075496ab33 Merge branch 'main' of https://github.com/0xmons/lssvm into main 2022-05-28 20:46:34 -07:00
Owen 504e99b07e package-lock changes 2022-04-23 22:11:45 -07:00
Owen df8355072a Add 1155 withdraw tests, and buy-sell in router 2022-04-23 00:46:43 -07:00
Owen d4c4390434 merge snapshot 2022-04-11 19:55:37 -07:00
Owen 63e20d09db consolidate spotPrice/delta updates to save gas 2022-04-11 19:52:38 -07:00
Owen e9af5aaf47 add prevOwner to callback 2022-04-10 01:26:02 -07:00
Owen 37a30df734 remove first ownership transfer event 2022-04-08 19:30:40 -07:00
Owen e49135a6d8 make erc165 check even cheaper 2022-04-08 18:30:25 -07:00
Owen e7611178a3 add interface for callback when transfering ownership and tests 2022-04-08 16:43:06 -07:00
Owen 4399e5556f add more tests to ensure swapping for nfts past pool balance, or not held by pool fail 2022-04-07 13:18:28 -07:00
Owen c78784098e merge gas snapshot 2022-04-07 11:42:22 -07:00
Owen 212f74a41a add gas snapshot 2022-04-07 11:29:46 -07:00
Owen 3690bf2bd8 add balance check when pulling nfts from caller, add erc20 checks when depositing from factory 2022-04-07 11:27:09 -07:00
Owen 14c0cae231 add back slight optimization in buy/sell curve calc 2022-04-07 00:16:08 -07:00
Owen 03d0ec346f just read/write values directly, cheaper than storing into local var 2022-04-06 23:48:33 -07:00
Owen 7703370a03 Change tests to use new delta 2022-04-06 21:27:58 -07:00
Owen b934fd5d6a change ICurve API 2022-04-06 19:58:32 -07:00
Owen 6e6a83de59 add maxInput to the swap API 2022-04-06 17:21:18 -07:00
Owen b7d6941caa move factory call one level up 2022-04-05 20:18:02 -07:00
Owen c29955fcdc rename robust test 2022-04-05 20:04:53 -07:00
Owen 2e1c40eebd refactor price updating to new internal fn 2022-04-05 19:56:47 -07:00
Owen 0d461da941 Add multicall tests / add revertMsg 2022-04-05 12:00:38 -07:00
Owen 1871409867 add owner-restricted multicall 2022-04-04 16:10:53 -07:00
Owen 2db3857451 Merge bad-datatype commit 2022-04-04 13:55:46 -07:00
Owen d346744bbd merge conflicts resolved 2022-04-04 13:41:45 -07:00
Owen b9560589c4 modify swap events and factory events 2022-04-04 13:00:34 -07:00
Owen 8f56d413f9 merging conflicts 2022-04-04 12:46:07 -07:00
Owen 9d303ef309 Merge branch 'audit-fix/combine-robust-swap-struct' into main 2022-04-04 12:37:35 -07:00
Owen 2ce7bd482a Merge branch 'abdk-audit-fix/procedural-and-suboptimal-issues' into main 2022-04-04 12:36:52 -07:00
Owen 09b6b3cc1f refactor, slight changes 2022-04-04 12:35:57 -07:00
Owen 5e2ca7fa67 add twitter 2022-03-29 17:49:59 -07:00
Owen defacc18e2 whoops 2022-03-29 17:38:08 -07:00
Owen 9d1080ef6a add image 2022-03-29 17:36:58 -07:00
Owen 038d623ba9 Update solmate 2022-03-24 20:39:21 -07:00
Owen ea861f821b some fixes 2022-03-24 20:31:22 -07:00
Owen aca227af82 merge struct 2022-03-23 18:11:17 -07:00
Owen 7c324d35e9 Fixed documentation and bad naming issues from abdk 2022-03-22 17:46:18 -07:00
Owen 1eef6d1f26 Remove one other NFT ownership check, no need now because we added reentrancyGuard 2022-03-04 18:34:11 -08:00
Owen e19d423f10 update readme 2022-03-04 18:23:31 -08:00
Owen 921e714354 Remove initial ownership check because we now have reentrancy guard 2022-03-03 13:03:22 -08:00
Owen 6fdfee4784 Add reentrancy guard 2022-03-02 10:54:24 -08:00
Owen 7eb85bbb7c Merge branch 'all-audit-fixes' into main 2022-02-08 11:49:24 -08:00
Owen 739d85d38a Densely pack spot price and delta, add 0 check to fuzzing tests 2022-02-08 11:49:06 -08:00
Owen e8be14b411 New router allow pattern 2022-02-07 16:42:01 -08:00
Owen 223b8c069a added nft balance check 2022-02-07 16:34:44 -08:00
Owen 61ae0db486 Remove nonReentrant on withdrawETH 2022-02-07 16:32:44 -08:00
Owen bcf706d88e Merge branch 'audit-fix/exponentialCurve-zero-check' into all-audit-fixes 2022-02-07 16:28:39 -08:00
Owen acbea6ed25 Merge branch 'audit-fix/only-allow-no-fn-fallback' into all-audit-fixes 2022-02-07 16:28:34 -08:00
Owen 1ad51410a0 Add new comments, remove imports 2022-02-07 16:28:23 -08:00
Owen 1b5a7b62e2 Remove factory balance verification for pairTransferERC20From to save gas 2022-02-07 16:27:16 -08:00
Owen 067301feab Add new protocol fee tests 2022-02-07 16:21:24 -08:00
Owen 77c267761f Merge branch 'audit-fix/checkErrorCodes' into all-audit-fixes 2022-02-07 16:18:28 -08:00
Owen 13400cbe2b Merge branch 'audit-fix/check-nonzero-nfts' into all-audit-fixes 2022-02-07 16:18:08 -08:00
Owen d0edab9a90 Merge branch 'audit-fix/avoid-utilizing' into all-audit-fixes 2022-02-07 16:16:27 -08:00
Owen e756ee69d4 Merge branch 'audit-fix/transfer-last-nft' into all-audit-fixes 2022-02-07 16:16:03 -08:00
Owen ec73ffaf27 Add semantically correct values, even when they don't get checked in the swap functions 2022-02-07 01:07:27 -08:00
Owen ddf5d65813 remove unnec comment and add zero check to swap nfts for tokens 2022-02-07 00:37:48 -08:00
Owen 7785f76175 remove zero address check 2022-02-07 00:31:48 -08:00
Owen edfd4a93ac Comment explaining why we use solmate 2022-02-07 00:25:48 -08:00
Owen 395a0b0b3d Remove last NFT first when using idSet to save gas 2022-02-06 19:11:27 -08:00
Owen 3aa6704dbf Add tests for swaps with empty lists. Failure for normal swap, and skipped over in robust swap. 2022-02-06 18:01:40 -08:00
Owen 2f1d33998b rename payProtocolFee to payProtocolFeeFromPair 2022-02-06 17:50:57 -08:00
Owen 66217ebdd2 Add getAllHeldIds check when assetRecipient is set to ensure that NFTs aren't being mistakenly tracked when not sent to pair 2022-02-06 12:02:40 -08:00
Owen 17d77dbad9 Add tests to verify protocol fee is received when assetRecipient is set 2022-02-05 19:07:19 -08:00
Owen c3eb4e3671 fix comments and remove erc1155 imports 2022-02-05 12:51:41 -08:00
Owen d3e873e076 add fn selector check for fallback 2022-02-03 23:17:50 -08:00
Owen dceece3a7b add check for zero items in exponential curve 2022-02-03 22:59:28 -08:00
Owen 1fbc206e80 Check for error codes 2022-02-03 21:15:52 -08:00
Owen 59b8632e94 fix one comment typo, and check error codes in lssvmrouter for bonding curves 2022-02-03 21:10:13 -08:00
Owen d60f8d75d1 Changed enumeration to use set size instead of inventory size 2022-02-03 16:57:32 -08:00