From 4a226a75b92546749652366eca30bf7334e98dd5 Mon Sep 17 00:00:00 2001 From: Alice Henshaw Date: Thu, 16 May 2024 14:34:08 -0300 Subject: [PATCH] remove unnecessary line --- .forge-snapshots/initialize.snap | 2 +- .forge-snapshots/poolManager bytecode size.snap | 2 +- src/libraries/LPFeeLibrary.sol | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.forge-snapshots/initialize.snap b/.forge-snapshots/initialize.snap index 844cfc7d4..1e2144a88 100644 --- a/.forge-snapshots/initialize.snap +++ b/.forge-snapshots/initialize.snap @@ -1 +1 @@ -62202 \ No newline at end of file +62194 \ No newline at end of file diff --git a/.forge-snapshots/poolManager bytecode size.snap b/.forge-snapshots/poolManager bytecode size.snap index 7c6b7bfe5..c7b342491 100644 --- a/.forge-snapshots/poolManager bytecode size.snap +++ b/.forge-snapshots/poolManager bytecode size.snap @@ -1 +1 @@ -22099 \ No newline at end of file +22097 \ No newline at end of file diff --git a/src/libraries/LPFeeLibrary.sol b/src/libraries/LPFeeLibrary.sol index ac9ab507a..5362c95f6 100644 --- a/src/libraries/LPFeeLibrary.sol +++ b/src/libraries/LPFeeLibrary.sol @@ -23,10 +23,10 @@ library LPFeeLibrary { if (self > MAX_LP_FEE) revert FeeTooLarge(); } - function getInitialLPFee(uint24 self) internal pure returns (uint24 lpFee) { + function getInitialLPFee(uint24 self) internal pure returns (uint24) { // the initial fee for a dynamic fee pool is 0 if (self.isDynamicFee()) return 0; - lpFee = self & STATIC_FEE_MASK; - lpFee.validate(); + self.validate(); + return self; } }