From 1831ace7a33d955003e316c95fbcb93b595e4435 Mon Sep 17 00:00:00 2001 From: xiaolou86 <20718693+xiaolou86@users.noreply.github.com> Date: Tue, 21 Nov 2023 23:29:02 +0800 Subject: [PATCH] Fix typos (#365) * Fix typos * Fix typo in src/libraries/Lockers.sol --- src/libraries/Lockers.sol | 2 +- src/libraries/Pool.sol | 2 +- test/TickMath.t.sol | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/libraries/Lockers.sol b/src/libraries/Lockers.sol index 9f312ffbc..c9929f6c1 100644 --- a/src/libraries/Lockers.sol +++ b/src/libraries/Lockers.sol @@ -85,7 +85,7 @@ library Lockers { } /// @notice Potential to underflow. - /// Current useage ensures this will not happen because we call decrememnt with known boundaries (only up to the numer of times we call increment). + /// Current usage ensures this will not happen because we call decrememnt with known boundaries (only up to the numer of times we call increment). function decrementNonzeroDeltaCount() internal { uint256 slot = NONZERO_DELTA_COUNT; assembly { diff --git a/src/libraries/Pool.sol b/src/libraries/Pool.sol index a2786515d..1e79a90dc 100644 --- a/src/libraries/Pool.sol +++ b/src/libraries/Pool.sol @@ -37,7 +37,7 @@ library Pool { /// @param tick The uninitialized tick error TickNotInitialized(int24 tick); - /// @notice Thrown when trying to initalize an already initialized pool + /// @notice Thrown when trying to initialize an already initialized pool error PoolAlreadyInitialized(); /// @notice Thrown when trying to interact with a non-initialized pool diff --git a/test/TickMath.t.sol b/test/TickMath.t.sol index c19702727..9817918d4 100644 --- a/test/TickMath.t.sol +++ b/test/TickMath.t.sol @@ -123,7 +123,7 @@ contract TickMathTestTest is Test, JavascriptFfi { for (uint256 i = 0; i < 2; i++) { tick = tick * -1; if (tick != -50) jsParameters = string(abi.encodePacked(jsParameters, ",")); // do not leave comma in front of first number - // add tick to javascript parameters to be calulated inside script + // add tick to javascript parameters to be calculated inside script jsParameters = string(abi.encodePacked(jsParameters, vm.toString(int256(tick)))); // track solidity result for tick getSqrtRatioAtTickFuzzResults.push(tickMath.getSqrtRatioAtTick(tick)); @@ -153,7 +153,7 @@ contract TickMathTestTest is Test, JavascriptFfi { unchecked { while (sqrtRatio < sqrtRatio * 16) { if (sqrtRatio != MIN_SQRT_RATIO) jsParameters = string(abi.encodePacked(jsParameters, ",")); // do not leave comma in front of first number - // add tick to javascript parameters to be calulated inside script + // add tick to javascript parameters to be calculated inside script jsParameters = string(abi.encodePacked(jsParameters, vm.toString(sqrtRatio))); // track solidity result for sqrtRatio getTickAtSqrtRatioFuzzResults.push(tickMath.getTickAtSqrtRatio(sqrtRatio));