@@ -69,38 +69,4 @@ abstract contract BNBPartyManageable is BNBPartyFee, Pausable {
69
69
function unpause () external onlyOwner {
70
70
_unpause ();
71
71
}
72
-
73
- /// @notice Internal function to withdraw LP fees from specified liquidity pools
74
- /// @param liquidityPools Array of liquidity pool addresses from which fees will be withdrawn
75
- /// @param manager The non-fungible position manager used to collect fees
76
- /// @dev Reverts if the liquidity pools array is empty
77
- function _withdrawLPFees (
78
- address [] calldata liquidityPools ,
79
- INonfungiblePositionManager manager
80
- ) internal {
81
- if (liquidityPools.length == 0 ) {
82
- revert ZeroLength ();
83
- }
84
- for (uint256 i = 0 ; i < liquidityPools.length ; ++ i) {
85
- _collectFee (liquidityPools[i], manager); // Collects fees from each specified liquidity pool
86
- }
87
- }
88
-
89
- /// @notice Internal function to collect LP fees from a specific liquidity pool
90
- /// @param liquidityPool Address of the liquidity pool from which fees will be collected
91
- /// @param manager The non-fungible position manager used to collect fees
92
- /// @dev Reverts if the provided liquidity pool address is zero
93
- function _collectFee (
94
- address liquidityPool ,
95
- INonfungiblePositionManager manager
96
- ) internal notZeroAddress (liquidityPool) {
97
- manager.collect (
98
- INonfungiblePositionManager.CollectParams ({
99
- tokenId: lpToTokenId[liquidityPool],
100
- recipient: msg .sender ,
101
- amount0Max: type (uint128 ).max,
102
- amount1Max: type (uint128 ).max
103
- })
104
- ); // Collects fees from the specified liquidity pool
105
- }
106
72
}
0 commit comments