Skip to content

Commit 622defa

Browse files
committed
base hook revert beforeAddLiquidity
1 parent 4694594 commit 622defa

File tree

2 files changed

+1
-11
lines changed

2 files changed

+1
-11
lines changed

src/UniswapHook.sol

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ contract UniswapHook is BaseHook {
2727

2828
PoolKey internal _poolKey;
2929

30-
error NativeConcentratedLiquidityUnsupported();
3130
error LockedHook();
3231

3332
constructor(address evc_, address _poolManager) BaseHook(IPoolManager(_poolManager)) {
@@ -142,15 +141,6 @@ contract UniswapHook is BaseHook {
142141
return (BaseHook.beforeSwap.selector, returnDelta, 0);
143142
}
144143

145-
function _beforeAddLiquidity(address, PoolKey calldata, IPoolManager.ModifyLiquidityParams calldata, bytes calldata)
146-
internal
147-
pure
148-
override
149-
returns (bytes4)
150-
{
151-
revert NativeConcentratedLiquidityUnsupported();
152-
}
153-
154144
function getHookPermissions() public pure override returns (Hooks.Permissions memory) {
155145
return Hooks.Permissions({
156146
beforeInitialize: true,

test/HookSwaps.t.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ contract HookSwapsTest is EulerSwapTestBase {
167167
CustomRevert.WrappedError.selector,
168168
address(eulerSwap),
169169
IHooks.beforeAddLiquidity.selector,
170-
abi.encodeWithSelector(UniswapHook.NativeConcentratedLiquidityUnsupported.selector),
170+
abi.encodeWithSelector(BaseHook.HookNotImplemented.selector),
171171
abi.encodeWithSelector(Hooks.HookCallFailed.selector)
172172
)
173173
);

0 commit comments

Comments
 (0)