File tree
10 files changed
+192
-19
lines changed- contracts
- common
- interfaces
- oracles
- sponsorship
- token
- oracles
- lib
- test/unit/concrete
10 files changed
+192
-19
lines changedOriginal file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
31 | 31 |
| |
32 | 32 |
| |
33 | 33 |
| |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
34 | 44 |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
6 | 6 |
| |
7 | 7 |
| |
8 | 8 |
| |
9 |
| - | |
| 9 | + | |
10 | 10 |
| |
11 | 11 |
| |
12 | 12 |
| |
| |||
22 | 22 |
| |
23 | 23 |
| |
24 | 24 |
| |
25 |
| - | |
| 25 | + | |
26 | 26 |
| |
27 | 27 |
| |
28 | 28 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
3 | 3 |
| |
4 | 4 |
| |
5 | 5 |
| |
6 |
| - | |
| 6 | + | |
7 | 7 |
| |
8 | 8 |
| |
9 | 9 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + |
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
40 | 40 |
| |
41 | 41 |
| |
42 | 42 |
| |
43 |
| - | |
44 |
| - | |
| 43 | + | |
45 | 44 |
| |
| 45 | + | |
| 46 | + | |
46 | 47 |
| |
47 | 48 |
| |
48 | 49 |
| |
49 |
| - | |
| 50 | + | |
50 | 51 |
| |
51 | 52 |
| |
52 | 53 |
| |
| |||
55 | 56 |
| |
56 | 57 |
| |
57 | 58 |
| |
58 |
| - | |
| 59 | + | |
59 | 60 |
| |
60 | 61 |
| |
61 | 62 |
| |
| |||
123 | 124 |
| |
124 | 125 |
| |
125 | 126 |
| |
126 |
| - | |
| 127 | + | |
127 | 128 |
| |
128 | 129 |
| |
129 | 130 |
| |
130 |
| - | |
| 131 | + | |
131 | 132 |
| |
132 | 133 |
| |
133 | 134 |
| |
| |||
346 | 347 |
| |
347 | 348 |
| |
348 | 349 |
| |
349 |
| - | |
| 350 | + | |
350 | 351 |
| |
351 | 352 |
| |
352 | 353 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
4 | 4 |
| |
5 | 5 |
| |
6 | 6 |
| |
7 |
| - | |
| 7 | + | |
8 | 8 |
| |
9 | 9 |
| |
10 | 10 |
| |
11 | 11 |
| |
| 12 | + | |
12 | 13 |
| |
13 | 14 |
| |
14 | 15 |
| |
| |||
29 | 30 |
| |
30 | 31 |
| |
31 | 32 |
| |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
32 | 39 |
| |
33 | 40 |
| |
34 | 41 |
| |
| 42 | + | |
| 43 | + | |
35 | 44 |
| |
36 | 45 |
| |
37 | 46 |
| |
| |||
42 | 51 |
| |
43 | 52 |
| |
44 | 53 |
| |
45 |
| - | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
46 | 58 |
| |
47 | 59 |
| |
48 | 60 |
| |
49 | 61 |
| |
50 | 62 |
| |
51 | 63 |
| |
52 | 64 |
| |
| 65 | + | |
| 66 | + | |
53 | 67 |
| |
54 | 68 |
| |
55 | 69 |
| |
56 | 70 |
| |
57 | 71 |
| |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
58 | 78 |
| |
59 | 79 |
| |
60 | 80 |
| |
| |||
211 | 231 |
| |
212 | 232 |
| |
213 | 233 |
| |
214 |
| - | |
215 |
| - | |
| 234 | + | |
216 | 235 |
| |
217 | 236 |
| |
218 | 237 |
| |
| |||
239 | 258 |
| |
240 | 259 |
| |
241 | 260 |
| |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
242 | 287 |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + |
- .github/workflows/fuzz-testing.yml+2-2
- .github/workflows/lint.yml+1
- .github/workflows/mythx.yml+4-5
- .github/workflows/tests.yml+1
- README.md+6-5
- audits/abdk/audit.pdf
- audits/tob/README.md-166
- audits/tob/audit.pdf
- audits/tob/contracts/crytic/echidna/E2E_mint_burn.config.yaml-16
- audits/tob/contracts/crytic/echidna/E2E_mint_burn.sol-503
- audits/tob/contracts/crytic/echidna/E2E_swap.config.yaml-10
- audits/tob/contracts/crytic/echidna/E2E_swap.sol-487
- audits/tob/contracts/crytic/echidna/Other.config.yaml-7
- audits/tob/contracts/crytic/echidna/Other.sol-21
- audits/tob/contracts/crytic/echidna/Setup.sol-205
- audits/tob/contracts/crytic/manticore/001.sol-11
- audits/tob/contracts/crytic/manticore/002.sol-12
- audits/tob/contracts/crytic/manticore/003.sol-9
- contracts/NoDelegateCall.sol+1-1
- contracts/UniswapV3Factory.sol+5-5
- contracts/UniswapV3Pool.sol+237-200
- contracts/UniswapV3PoolDeployer.sol+3-3
- contracts/interfaces/IUniswapV3Pool.sol+8-6
- contracts/interfaces/LICENSE+107-1
- contracts/interfaces/pool/IUniswapV3PoolErrors.sol+19
- contracts/interfaces/pool/IUniswapV3PoolState.sol+23-22
- contracts/libraries/BitMath.sol+69-65
- contracts/libraries/FullMath.sol+87-83
- contracts/libraries/LICENSE+107-1
- contracts/libraries/LiquidityMath.sol-17
- contracts/libraries/LowGasSafeMath.sol-46
- contracts/libraries/Oracle.sol+138-111
- contracts/libraries/Position.sol+24-19
- contracts/libraries/SqrtPriceMath.sol+70-60
- contracts/libraries/SwapMath.sol+59-57
- contracts/libraries/Tick.sol+56-47
- contracts/libraries/TickBitmap.sol+39-33
- contracts/libraries/TickMath.sol+174-165
- contracts/libraries/TransferHelper.sol+7-4
- contracts/test/BitMathEchidnaTest.sol+12-8
- contracts/test/BitMathTest.sol+2-2
- contracts/test/FullMathEchidnaTest.sol+41-35
- contracts/test/FullMathTest.sol+2-2
- contracts/test/LiquidityMathTest.sol-16
- contracts/test/LowGasSafeMathEchidnaTest.sol-36
- contracts/test/MockTimeUniswapV3Pool.sol+2-2
- contracts/test/MockTimeUniswapV3PoolDeployer.sol+3-3
- contracts/test/NoDelegateCallTest.sol+4-4
- contracts/test/OracleEchidnaTest.sol+21-26
- contracts/test/OracleTest.sol+5-4
- contracts/test/SqrtPriceMathEchidnaTest.sol+18-17
- contracts/test/SqrtPriceMathTest.sol+2-2
- contracts/test/SwapMathEchidnaTest.sol+9-4
- contracts/test/SwapMathTest.sol+2-2
- contracts/test/TestERC20.sol+2-2
- contracts/test/TestUniswapV3Callee.sol+8-8
- contracts/test/TestUniswapV3ReentrantCallee.sol+17-19
- contracts/test/TestUniswapV3Router.sol+9-8
- contracts/test/TestUniswapV3SwapPay.sol+4-4
- contracts/test/TickBitmapEchidnaTest.sol+2-2
- contracts/test/TickBitmapTest.sol+2-2
- contracts/test/TickEchidnaTest.sol+4-3
- contracts/test/TickMathEchidnaTest.sol+2-2
- contracts/test/TickMathTest.sol+2-2
- contracts/test/TickOverflowSafetyEchidnaTest.sol+26-28
- contracts/test/TickTest.sol+2-3
- contracts/test/UniswapV3PoolSwapTest.sol+4-4
- contracts/test/UnsafeMathEchidnaTest.sol+2-2
- hardhat.config.ts+23-5
- package.json+2-2
- test/LiquidityMath.spec.ts-44
- test/NoDelegateCall.spec.ts+3-1
- test/Oracle.spec.ts+4-11
- test/TickMath.spec.ts+1-14
- test/UniswapV3Factory.spec.ts+4-1
- test/UniswapV3Pool.arbitrage.spec.ts+13-27
- test/UniswapV3Pool.gas.spec.ts+3-2
- test/UniswapV3Pool.spec.ts+29-74
- test/UniswapV3Pool.swaps.spec.ts+10-6
- test/UniswapV3Router.spec.ts+5-2
- test/__snapshots__/BitMath.spec.ts.snap+3-3
- test/__snapshots__/LiquidityMath.spec.ts.snap-5
- test/__snapshots__/NoDelegateCall.spec.ts.snap+1-1
- test/__snapshots__/Oracle.spec.ts.snap+20-20
- test/__snapshots__/SqrtPriceMath.spec.ts.snap+8-8
- test/__snapshots__/SwapMath.spec.ts.snap+8-8
- test/__snapshots__/TickBitmap.spec.ts.snap+9-9
- test/__snapshots__/TickMath.spec.ts.snap+13-13
- test/__snapshots__/UniswapV3Factory.spec.ts.snap+3-3
- test/__snapshots__/UniswapV3Pool.gas.spec.ts.snap+84-84
- test/__snapshots__/UniswapV3Pool.swaps.spec.ts.snap+50-50
- test/shared/fixtures.ts+2-1
- yarn.lock+2.5k-2.2k
Submodule v3-periphery updated 90 files
- .github/workflows/lint.yml+1
- .github/workflows/tests.yml+1
- .gitignore+2-1
- audits/abdk/audit.pdf
- contracts/NonfungiblePositionManager.sol+13-14
- contracts/NonfungibleTokenPositionDescriptor.sol+10-11
- contracts/SwapRouter.sol+22-25
- contracts/V3Migrator.sol+18-22
- contracts/base/BlockTimestamp.sol+1-1
- contracts/base/ERC721Permit.sol+10-11
- contracts/base/LiquidityManagement.sol+6-3
- contracts/base/Multicall.sol+1-1
- contracts/base/PeripheryImmutableState.sol+1-1
- contracts/base/PeripheryPaymentsWithFee.sol+2-5
- contracts/base/PeripheryValidation.sol+1-1
- contracts/base/PoolInitializer.sol+1-1
- contracts/base/SelfPermit.sol+1-1
- contracts/examples/PairFlash.sol+32-35
- contracts/interfaces/IERC20Metadata.sol+2-2
- contracts/interfaces/INonfungiblePositionManager.sol+2-2
- contracts/interfaces/external/IWETH9.sol+1-1
- contracts/lens/Quoter.sol+4-5
- contracts/lens/QuoterV2.sol+16-9
- contracts/lens/TickLens.sol+21-18
- contracts/lens/UniswapInterfaceMulticall.sol+6-3
- contracts/libraries/AddressStringUtil.sol+37
- contracts/libraries/BytesLib.sol+48-50
- contracts/libraries/CallbackValidation.sol+1-1
- contracts/libraries/ChainId.sol+1-1
- contracts/libraries/HexStrings.sol+1-1
- contracts/libraries/LiquidityAmounts.sol+18-10
- contracts/libraries/NFTDescriptor.sol+123-80
- contracts/libraries/NFTSVG.sol+13-7
- contracts/libraries/OracleLibrary.sol+44-19
- contracts/libraries/PoolAddress.sol+10-8
- contracts/libraries/PoolTicksCounter.sol+2-2
- contracts/libraries/PositionValue.sol+11-12
- contracts/libraries/SafeERC20Namer.sol+96
- contracts/libraries/SqrtPriceMathPartial.sol+62
- contracts/libraries/TokenRatioSortOrder.sol+1-1
- contracts/libraries/TransferHelper.sol+3-2
- contracts/test/Base64Test.sol+1-1
- contracts/test/LiquidityAmountsTest.sol+1-1
- contracts/test/MockObservable.sol+1-1
- contracts/test/MockObservations.sol+1-1
- contracts/test/MockTimeNonfungiblePositionManager.sol+1-1
- contracts/test/MockTimeSwapRouter.sol+1-1
- contracts/test/NFTDescriptorTest.sol+3-3
- contracts/test/NonfungiblePositionManagerPositionsGasTest.sol+1-1
- contracts/test/OracleTest.sol+5-1
- contracts/test/PathTest.sol+1-1
- contracts/test/PeripheryImmutableStateTest.sol+1-1
- contracts/test/PoolAddressTest.sol+1-1
- contracts/test/PositionValueTest.sol+1-1
- contracts/test/SelfPermitTest.sol+1-1
- contracts/test/TestCallbackValidation.sol+1-1
- contracts/test/TestERC20.sol+2-2
- contracts/test/TestERC20Metadata.sol+2-2
- contracts/test/TestERC20PermitAllowed.sol+1-1
- contracts/test/TestMulticall.sol+1-1
- contracts/test/TestPositionNFTOwner.sol+1-1
- contracts/test/TestUniswapV3Callee.sol+1-1
- hardhat.config.ts+17-7
- package.json+7-8
- test/NFTDescriptor.spec.ts+7-8
- test/NonfungiblePositionManager.spec.ts+13-15
- test/OracleLibrary.spec.ts+185-1
- test/PairFlash.spec.ts-1
- test/QuoterV2.spec.ts+124-216
- test/SwapRouter.gas.spec.ts+97-13
- test/SwapRouter.spec.ts+1-3
- test/V3Migrator.spec.ts+3-5
- test/__snapshots__/Base64.spec.ts.snap+15-15
- test/__snapshots__/LiquidityAmounts.spec.ts.snap+10-10
- test/__snapshots__/Multicall.spec.ts.snap+2-2
- test/__snapshots__/NFTDescriptor.spec.ts.snap+1-1
- test/__snapshots__/NonfungiblePositionManager.spec.ts.snap+20-20
- test/__snapshots__/OracleLibrary.spec.ts.snap+1-1
- test/__snapshots__/PairFlash.spec.ts.snap+1-1
- test/__snapshots__/Path.spec.ts.snap+1-1
- test/__snapshots__/PeripheryImmutableState.spec.ts.snap+1-1
- test/__snapshots__/PoolAddress.spec.ts.snap+2-2
- test/__snapshots__/PositionValue.spec.ts.snap+5-5
- test/__snapshots__/QuoterV2.spec.ts.snap+25-25
- test/__snapshots__/SwapRouter.gas.spec.ts.snap+21-15
- test/__snapshots__/SwapRouter.spec.ts.snap+1-1
- test/__snapshots__/TickLens.spec.ts.snap+2-2
- test/__snapshots__/V3Migrator.spec.ts.snap+1-1
- test/shared/externalFixtures.ts+3-4
- yarn.lock+3.3k-1.9k
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
129 | 129 |
| |
130 | 130 |
| |
131 | 131 |
| |
132 |
| - | |
133 |
| - | |
| 132 | + | |
| 133 | + | |
134 | 134 |
| |
135 | 135 |
| |
136 | 136 |
| |
137 | 137 |
| |
138 | 138 |
| |
139 |
| - | |
| 139 | + | |
140 | 140 |
| |
141 | 141 |
| |
142 | 142 |
| |
|
0 commit comments