Skip to content

Commit

Permalink
fix compiler warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
gretzke committed Nov 27, 2024
1 parent fe2458b commit 6a2139c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 10 deletions.
1 change: 1 addition & 0 deletions src/base/BaseV4Quoter.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

import {IPoolManager} from "@uniswap/v4-core/src/interfaces/IPoolManager.sol";
import {BalanceDelta} from "@uniswap/v4-core/src/types/BalanceDelta.sol";
Expand Down
8 changes: 2 additions & 6 deletions test/mocks/MockBadSubscribers.sol
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,7 @@ contract MockReturnDataSubscriber is ISubscriber {
notifyModifyLiquidityCount++;
}

function notifyBurn(uint256 tokenId, address owner, PositionInfo info, uint256 liquidity, BalanceDelta feesAccrued)
external
{
function notifyBurn(uint256, address, PositionInfo, uint256, BalanceDelta) external pure {
return;
}

Expand Down Expand Up @@ -92,9 +90,7 @@ contract MockRevertSubscriber is ISubscriber {
revert TestRevert("notifyModifyLiquidity");
}

function notifyBurn(uint256 tokenId, address owner, PositionInfo info, uint256 liquidity, BalanceDelta feesAccrued)
external
{
function notifyBurn(uint256, address, PositionInfo, uint256, BalanceDelta) external pure {
return;
}

Expand Down
5 changes: 1 addition & 4 deletions test/mocks/MockSubscriber.sol
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,7 @@ contract MockSubscriber is ISubscriber {
feesAccrued = _feesAccrued;
}

function notifyBurn(uint256 tokenId, address owner, PositionInfo info, uint256 liquidity, BalanceDelta feesAccrued)
external
onlyByPosm
{
function notifyBurn(uint256, address, PositionInfo, uint256, BalanceDelta) external onlyByPosm {
notifyBurnCount++;
}
}

0 comments on commit 6a2139c

Please sign in to comment.