Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
optimize UnsafeMath#divRoundingUp (#446)
- Loading branch information
1 parent
2dc1eb9
commit 705be1e
Showing
6 changed files
with
76 additions
and
73 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,17 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`SqrtPriceMath #getAmount0Delta gas cost for amount0 where roundUp = true 1`] = `657`; | ||
exports[`SqrtPriceMath #getAmount0Delta gas cost for amount0 where roundUp = true 1`] = `610`; | ||
|
||
exports[`SqrtPriceMath #getAmount0Delta gas cost for amount0 where roundUp = true 2`] = `452`; | ||
exports[`SqrtPriceMath #getAmount0Delta gas cost for amount0 where roundUp = true 2`] = `478`; | ||
|
||
exports[`SqrtPriceMath #getAmount1Delta gas cost for amount0 where roundUp = false 1`] = `452`; | ||
exports[`SqrtPriceMath #getAmount1Delta gas cost for amount0 where roundUp = false 1`] = `478`; | ||
|
||
exports[`SqrtPriceMath #getAmount1Delta gas cost for amount0 where roundUp = true 1`] = `657`; | ||
exports[`SqrtPriceMath #getAmount1Delta gas cost for amount0 where roundUp = true 1`] = `610`; | ||
|
||
exports[`SqrtPriceMath #getNextSqrtPriceFromInput zeroForOne = false gas 1`] = `536`; | ||
|
||
exports[`SqrtPriceMath #getNextSqrtPriceFromInput zeroForOne = true gas 1`] = `753`; | ||
|
||
exports[`SqrtPriceMath #getNextSqrtPriceFromOutput zeroForOne = false gas 1`] = `848`; | ||
|
||
exports[`SqrtPriceMath #getNextSqrtPriceFromOutput zeroForOne = true gas 1`] = `514`; | ||
exports[`SqrtPriceMath #getNextSqrtPriceFromOutput zeroForOne = true gas 1`] = `441`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,17 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`SwapMath #computeSwapStep gas swap one for zero exact in capped 1`] = `2077`; | ||
exports[`SwapMath #computeSwapStep gas swap one for zero exact in capped 1`] = `2103`; | ||
|
||
exports[`SwapMath #computeSwapStep gas swap one for zero exact in partial 1`] = `2776`; | ||
exports[`SwapMath #computeSwapStep gas swap one for zero exact in partial 1`] = `2802`; | ||
|
||
exports[`SwapMath #computeSwapStep gas swap one for zero exact out capped 1`] = `1829`; | ||
exports[`SwapMath #computeSwapStep gas swap one for zero exact out capped 1`] = `1855`; | ||
|
||
exports[`SwapMath #computeSwapStep gas swap one for zero exact out partial 1`] = `2776`; | ||
exports[`SwapMath #computeSwapStep gas swap one for zero exact out partial 1`] = `2802`; | ||
|
||
exports[`SwapMath #computeSwapStep gas swap zero for one exact in capped 1`] = `2151`; | ||
exports[`SwapMath #computeSwapStep gas swap zero for one exact in capped 1`] = `2104`; | ||
|
||
exports[`SwapMath #computeSwapStep gas swap zero for one exact in partial 1`] = `3200`; | ||
exports[`SwapMath #computeSwapStep gas swap zero for one exact in partial 1`] = `3106`; | ||
|
||
exports[`SwapMath #computeSwapStep gas swap zero for one exact out capped 1`] = `1903`; | ||
exports[`SwapMath #computeSwapStep gas swap zero for one exact out capped 1`] = `1856`; | ||
|
||
exports[`SwapMath #computeSwapStep gas swap zero for one exact out partial 1`] = `3200`; | ||
exports[`SwapMath #computeSwapStep gas swap zero for one exact out partial 1`] = `3106`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`UniswapV3Factory #createPool gas 1`] = `4515505`; | ||
exports[`UniswapV3Factory #createPool gas 1`] = `4510482`; | ||
|
||
exports[`UniswapV3Factory factory bytecode size 1`] = `24345`; | ||
exports[`UniswapV3Factory factory bytecode size 1`] = `24320`; | ||
|
||
exports[`UniswapV3Factory pool bytecode size 1`] = `21922`; | ||
exports[`UniswapV3Factory pool bytecode size 1`] = `21897`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters