Skip to content

Commit

Permalink
chore: standardise pragma versions
Browse files Browse the repository at this point in the history
  • Loading branch information
chefburger committed Aug 26, 2024
1 parent c07002b commit d436eed
Show file tree
Hide file tree
Showing 70 changed files with 70 additions and 72 deletions.
Original file line number Diff line number Diff line change
@@ -1 +1 @@
867040
867039
2 changes: 1 addition & 1 deletion src/MixedQuoter.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: GPL-2.0-or-later
pragma solidity ^0.8.24;
pragma solidity 0.8.26;

import {PoolKey} from "pancake-v4-core/src/types/PoolKey.sol";
import {CurrencyLibrary, Currency, equals} from "pancake-v4-core/src/types/Currency.sol";
Expand Down
2 changes: 1 addition & 1 deletion src/V4Router.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.20;
pragma solidity ^0.8.24;

import {IVault} from "pancake-v4-core/src/interfaces/IVault.sol";
import {ICLPoolManager} from "pancake-v4-core/src/pool-cl/interfaces/ICLPoolManager.sol";
Expand Down
2 changes: 1 addition & 1 deletion src/base/BaseActionsRouter.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: GPL-3.0-or-later
pragma solidity ^0.8.20;
pragma solidity ^0.8.24;

import {IVault} from "pancake-v4-core/src/interfaces/IVault.sol";
import {SafeCallback} from "./SafeCallback.sol";
Expand Down
2 changes: 1 addition & 1 deletion src/base/BaseMigrator.sol
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// SPDX-License-Identifier: GPL-2.0-or-later
// Copyright (C) 2024 PancakeSwap
pragma solidity ^0.8.24;
pragma solidity ^0.8.0;

import {SafeCast} from "@openzeppelin/contracts/utils/math/SafeCast.sol";
import {SafeTransferLib, ERC20} from "solmate/src/utils/SafeTransferLib.sol";
Expand Down
2 changes: 1 addition & 1 deletion src/base/DeltaResolver.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: GPL-2.0-or-later
pragma solidity ^0.8.20;
pragma solidity ^0.8.24;

import {Currency} from "pancake-v4-core/src/types/Currency.sol";
import {IVault} from "pancake-v4-core/src/interfaces/IVault.sol";
Expand Down
2 changes: 1 addition & 1 deletion src/base/ImmutableState.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: GPL-2.0-or-later
pragma solidity ^0.8.20;
pragma solidity ^0.8.0;

import {IVault} from "pancake-v4-core/src/interfaces/IVault.sol";

Expand Down
2 changes: 1 addition & 1 deletion src/base/Multicall_v4.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: GPL-2.0-or-later
pragma solidity ^0.8.19;
pragma solidity ^0.8.0;

import {IMulticall_v4} from "../interfaces/IMulticall_v4.sol";

Expand Down
2 changes: 1 addition & 1 deletion src/base/Permit2Forwarder.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: GPL-3.0-or-later
pragma solidity ^0.8.24;
pragma solidity ^0.8.0;

import {IAllowanceTransfer} from "permit2/src/interfaces/IAllowanceTransfer.sol";

Expand Down
2 changes: 1 addition & 1 deletion src/base/SafeCallback.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: GPL-3.0-or-later
pragma solidity ^0.8.20;
pragma solidity ^0.8.24;

import {ILockCallback} from "pancake-v4-core/src/interfaces/ILockCallback.sol";
import {IVault} from "pancake-v4-core/src/interfaces/IVault.sol";
Expand Down
2 changes: 1 addition & 1 deletion src/base/SelfPermitERC721.sol
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// SPDX-License-Identifier: GPL-2.0-or-later
// Copyright (C) 2024 PancakeSwap
pragma solidity ^0.8.19;
pragma solidity ^0.8.0;

import {IERC721} from "@openzeppelin/contracts/token/ERC721/IERC721.sol";
import {IERC721Permit} from "../pool-cl/interfaces/IERC721Permit.sol";
Expand Down
2 changes: 1 addition & 1 deletion src/interfaces/IBaseMigrator.sol
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// SPDX-License-Identifier: GPL-2.0-or-later
// Copyright (C) 2024 PancakeSwap
pragma solidity ^0.8.19;
pragma solidity ^0.8.0;

import {PoolKey} from "pancake-v4-core/src/types/PoolKey.sol";
import {IMulticall_v4} from "./IMulticall_v4.sol";
Expand Down
2 changes: 1 addition & 1 deletion src/interfaces/IMixedQuoter.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.19;
pragma solidity ^0.8.24;

import {PoolKey} from "pancake-v4-core/src/types/PoolKey.sol";

Expand Down
2 changes: 1 addition & 1 deletion src/interfaces/IMulticall_v4.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.19;
pragma solidity ^0.8.0;

/// @title Multicall_v4 interface
/// @notice Enables calling multiple methods in a single call to the contract
Expand Down
2 changes: 1 addition & 1 deletion src/interfaces/IPositionManagerPermit2.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.24;
pragma solidity ^0.8.0;

import {IAllowanceTransfer} from "permit2/src/interfaces/IAllowanceTransfer.sol";

Expand Down
2 changes: 1 addition & 1 deletion src/interfaces/ISelfPermit.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity >=0.5.0;
pragma solidity ^0.8.0;

/// @title Self Permit
/// @notice Functionality to call permit on any EIP-2612-compliant token for use in the route
Expand Down
2 changes: 1 addition & 1 deletion src/interfaces/ISelfPermitERC721.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.19;
pragma solidity ^0.8.0;

/// @title Self Permit For ERC721
/// @notice Functionality to call permit on any EIP-2612-compliant token
Expand Down
2 changes: 1 addition & 1 deletion src/interfaces/IV4Router.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.20;
pragma solidity ^0.8.24;

import {PoolKey} from "pancake-v4-core/src/types/PoolKey.sol";
import {Currency} from "pancake-v4-core/src/types/Currency.sol";
Expand Down
2 changes: 1 addition & 1 deletion src/interfaces/external/IERC20PermitAllowed.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: GPL-2.0-or-later
pragma solidity ^0.8.19;
pragma solidity ^0.8.0;

/// @title Interface for permit
/// @notice Interface used by DAI/CHAI for permit
Expand Down
2 changes: 1 addition & 1 deletion src/interfaces/external/IPancakeFactory.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: GPL-3.0-or-later
pragma solidity >=0.5.0;
pragma solidity ^0.8.0;

interface IPancakeFactory {
function getPair(address tokenA, address tokenB) external view returns (address pair);
Expand Down
2 changes: 1 addition & 1 deletion src/interfaces/external/IPancakePair.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: GPL-3.0-or-later
pragma solidity >=0.5.0;
pragma solidity ^0.8.0;

/// @notice Copying from PancakeSwap V2 Pair
/// https://github.com/pancakeswap/pancake-swap-core-v2/blob/master/contracts/interfaces/IPancakePair.sol
Expand Down
2 changes: 1 addition & 1 deletion src/interfaces/external/IPancakeV3Factory.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: GPL-2.0-or-later
pragma solidity >=0.5.0;
pragma solidity ^0.8.0;

interface IPancakeV3Factory {
/// @notice Returns the pool address for a given pair of tokens and a fee, or address 0 if it does not exist
Expand Down
2 changes: 1 addition & 1 deletion src/interfaces/external/IPancakeV3Pool.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: GPL-2.0-or-later
pragma solidity ^0.8.19;
pragma solidity ^0.8.0;

interface IPancakeV3Pool {
/// @notice The 0th storage slot in the pool stores many values, and is exposed as a single method to save gas
Expand Down
2 changes: 1 addition & 1 deletion src/interfaces/external/IPancakeV3SwapCallback.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: GPL-2.0-or-later
pragma solidity >=0.5.0;
pragma solidity ^0.8.0;

/// @title Callback for IPancakeV3PoolActions#swap
/// @notice Any contract that calls IPancakeV3PoolActions#swap must implement this interface
Expand Down
2 changes: 1 addition & 1 deletion src/interfaces/external/IStableSwap.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: GPL-2.0-or-later
pragma solidity ^0.8.19;
pragma solidity ^0.8.0;

interface IStableSwap {
// solium-disable-next-line mixedcase
Expand Down
2 changes: 1 addition & 1 deletion src/interfaces/external/IStableSwapFactory.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: GPL-2.0-or-later
pragma solidity ^0.8.19;
pragma solidity ^0.8.0;

interface IStableSwapFactory {
struct StableSwapPairInfo {
Expand Down
3 changes: 1 addition & 2 deletions src/interfaces/external/IV3NonfungiblePositionManager.sol
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
// SPDX-License-Identifier: GPL-2.0-or-later
pragma solidity >=0.7.5;
pragma abicoder v2;
pragma solidity ^0.8.0;

import {IERC721Permit} from "../../pool-cl/interfaces/IERC721Permit.sol";

Expand Down
2 changes: 1 addition & 1 deletion src/interfaces/external/IWETH9.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: GPL-2.0-or-later
pragma solidity ^0.8.19;
pragma solidity ^0.8.0;

import {IERC20} from "@openzeppelin/contracts/token/ERC20/IERC20.sol";

Expand Down
2 changes: 1 addition & 1 deletion src/libraries/ActionConstants.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: GPL-2.0-or-later
pragma solidity ^0.8.20;
pragma solidity ^0.8.0;

library ActionConstants {
/// @notice used to signal that an action should use the input value of the open delta on the vault
Expand Down
2 changes: 1 addition & 1 deletion src/libraries/Actions.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: GPL-3.0-or-later
pragma solidity ^0.8.20;
pragma solidity ^0.8.0;

/// @notice Library to define different pool actions.
/// @dev These are suggested common commands, however additional commands should be defined as required
Expand Down
2 changes: 1 addition & 1 deletion src/libraries/BipsLibrary.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: GPL-2.0-or-later
pragma solidity ^0.8.20;
pragma solidity ^0.8.0;

/// @title For calculating a percentage of an amount, using bips
// TODO: Post-audit move to core, as core will use something similar.
Expand Down
2 changes: 1 addition & 1 deletion src/libraries/CalldataDecoder.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: GPL-3.0-or-later
pragma solidity ^0.8.20;
pragma solidity ^0.8.0;

import {Currency} from "pancake-v4-core/src/types/Currency.sol";

Expand Down
2 changes: 1 addition & 1 deletion src/libraries/MixedQuoterActions.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: GPL-3.0-or-later
pragma solidity ^0.8.19;
pragma solidity ^0.8.0;

/// @notice Library to define different mixed quoter actions.
library MixedQuoterActions {
Expand Down
2 changes: 1 addition & 1 deletion src/libraries/PathKey.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.20;
pragma solidity ^0.8.0;

import {Currency} from "pancake-v4-core/src/types/Currency.sol";
import {PoolKey} from "pancake-v4-core/src/types/PoolKey.sol";
Expand Down
2 changes: 1 addition & 1 deletion src/libraries/Planner.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.20;
pragma solidity ^0.8.0;

import {PoolKey} from "pancake-v4-core/src/types/PoolKey.sol";
import {Actions} from "../../src/libraries/Actions.sol";
Expand Down
2 changes: 1 addition & 1 deletion src/libraries/external/V3PoolTicksCounter.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: GPL-2.0-or-later
pragma solidity >=0.6.0;
pragma solidity ^0.8.0;

import {IPancakeV3Pool} from "../../interfaces/external/IPancakeV3Pool.sol";

Expand Down
2 changes: 1 addition & 1 deletion src/libraries/external/V3SmartRouterHelper.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: GPL-2.0-or-later
pragma solidity ^0.8.19;
pragma solidity ^0.8.0;

import {IStableSwapFactory} from "../../interfaces/external/IStableSwapFactory.sol";
import {IPancakePair} from "../../interfaces/external/IPancakePair.sol";
Expand Down
2 changes: 1 addition & 1 deletion src/pool-bin/BinFungibleToken.sol
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// SPDX-License-Identifier: GPL-2.0-or-later
// Copyright (C) 2024 PancakeSwap
pragma solidity ^0.8.19;
pragma solidity ^0.8.0;

import {IBinFungibleToken} from "./interfaces/IBinFungibleToken.sol";

Expand Down
2 changes: 1 addition & 1 deletion src/pool-bin/BinMigrator.sol
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// SPDX-License-Identifier: GPL-2.0-or-later
// Copyright (C) 2024 PancakeSwap
pragma solidity ^0.8.24;
pragma solidity 0.8.26;

import {SafeTransferLib} from "solmate/src/utils/SafeTransferLib.sol";
import {BaseMigrator, IV3NonfungiblePositionManager} from "../base/BaseMigrator.sol";
Expand Down
2 changes: 1 addition & 1 deletion src/pool-bin/BinPositionManager.sol
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// SPDX-License-Identifier: GPL-2.0-or-later
// Copyright (C) 2024 PancakeSwap
pragma solidity ^0.8.20;
pragma solidity 0.8.26;

import {IVault} from "pancake-v4-core/src/interfaces/IVault.sol";
import {BalanceDelta} from "pancake-v4-core/src/types/BalanceDelta.sol";
Expand Down
2 changes: 1 addition & 1 deletion src/pool-bin/BinRouterBase.sol
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// SPDX-License-Identifier: GPL-2.0-or-later
// Copyright (C) 2024 PancakeSwap
pragma solidity ^0.8.20;
pragma solidity ^0.8.24;

import {CurrencyLibrary, Currency} from "pancake-v4-core/src/types/Currency.sol";
import {PoolKey} from "pancake-v4-core/src/types/PoolKey.sol";
Expand Down
2 changes: 1 addition & 1 deletion src/pool-bin/interfaces/IBinFungibleToken.sol
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// SPDX-License-Identifier: GPL-2.0-or-later
// Copyright (C) 2024 PancakeSwap
pragma solidity ^0.8.19;
pragma solidity ^0.8.0;

interface IBinFungibleToken {
error BinFungibleToken_AddressThisOrZero();
Expand Down
2 changes: 1 addition & 1 deletion src/pool-bin/interfaces/IBinMigrator.sol
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// SPDX-License-Identifier: GPL-2.0-or-later
// Copyright (C) 2024 PancakeSwap
pragma solidity ^0.8.19;
pragma solidity ^0.8.24;

import {PoolKey} from "pancake-v4-core/src/types/PoolKey.sol";
import {IBaseMigrator} from "../../interfaces/IBaseMigrator.sol";
Expand Down
2 changes: 1 addition & 1 deletion src/pool-bin/interfaces/IBinPositionManager.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.20;
pragma solidity ^0.8.24;

import {PoolId} from "pancake-v4-core/src/types/PoolId.sol";
import {PoolKey} from "pancake-v4-core/src/types/PoolKey.sol";
Expand Down
2 changes: 1 addition & 1 deletion src/pool-bin/interfaces/IBinRouterBase.sol
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// SPDX-License-Identifier: GPL-2.0-or-later
// Copyright (C) 2024 PancakeSwap
pragma solidity ^0.8.20;
pragma solidity ^0.8.24;

import {PoolKey} from "pancake-v4-core/src/types/PoolKey.sol";
import {Currency} from "pancake-v4-core/src/types/Currency.sol";
Expand Down
2 changes: 1 addition & 1 deletion src/pool-bin/lens/BinQuoter.sol
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// SPDX-License-Identifier: GPL-2.0-or-later
// Copyright (C) 2024 PancakeSwap
pragma solidity ^0.8.24;
pragma solidity 0.8.26;

import {TickMath} from "pancake-v4-core/src/pool-cl/libraries/TickMath.sol";
import {IVault} from "pancake-v4-core/src/interfaces/IVault.sol";
Expand Down
2 changes: 1 addition & 1 deletion src/pool-bin/libraries/BinCalldataDecoder.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: GPL-3.0-or-later
pragma solidity ^0.8.20;
pragma solidity ^0.8.0;

import {IBinPositionManager} from "../interfaces/IBinPositionManager.sol";
import {IV4Router} from "../../interfaces/IV4Router.sol";
Expand Down
2 changes: 1 addition & 1 deletion src/pool-bin/libraries/BinTokenLibrary.sol
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// SPDX-License-Identifier: GPL-2.0-or-later
// Copyright (C) 2024 PancakeSwap
pragma solidity ^0.8.19;
pragma solidity ^0.8.0;

import {PoolId} from "pancake-v4-core/src/types/PoolId.sol";

Expand Down
2 changes: 1 addition & 1 deletion src/pool-cl/CLMigrator.sol
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// SPDX-License-Identifier: GPL-2.0-or-later
// Copyright (C) 2024 PancakeSwap
pragma solidity ^0.8.24;
pragma solidity 0.8.26;

import {SafeTransferLib} from "solmate/src/utils/SafeTransferLib.sol";
import {Currency} from "pancake-v4-core/src/types/Currency.sol";
Expand Down
2 changes: 1 addition & 1 deletion src/pool-cl/CLPositionManager.sol
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// SPDX-License-Identifier: GPL-2.0-or-later
// Copyright (C) 2024 PancakeSwap
pragma solidity ^0.8.20;
pragma solidity 0.8.26;

import {IVault} from "pancake-v4-core/src/interfaces/IVault.sol";
import {Currency} from "pancake-v4-core/src/types/Currency.sol";
Expand Down
2 changes: 1 addition & 1 deletion src/pool-cl/CLRouterBase.sol
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// SPDX-License-Identifier: GPL-2.0-or-later
// Copyright (C) 2024 PancakeSwap
pragma solidity ^0.8.20;
pragma solidity ^0.8.0;

import {CurrencyLibrary, Currency} from "pancake-v4-core/src/types/Currency.sol";
import {PoolKey} from "pancake-v4-core/src/types/PoolKey.sol";
Expand Down
2 changes: 1 addition & 1 deletion src/pool-cl/base/CLNotifier.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: GPL-3.0-or-later
pragma solidity ^0.8.24;
pragma solidity ^0.8.0;

import {ICLSubscriber} from "../interfaces/ICLSubscriber.sol";
import {PositionConfig} from "../libraries/PositionConfig.sol";
Expand Down
2 changes: 1 addition & 1 deletion src/pool-cl/base/EIP712_v4.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.20;
pragma solidity ^0.8.0;

import {IEIP712_v4} from "../interfaces/IEIP712_v4.sol";

Expand Down
2 changes: 1 addition & 1 deletion src/pool-cl/base/ERC721Permit_v4.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: GPL-2.0-or-later
pragma solidity ^0.8.20;
pragma solidity ^0.8.0;

import {ERC721} from "solmate/src/tokens/ERC721.sol";
import {ERC721PermitHashLibrary} from "../libraries/ERC721PermitHash.sol";
Expand Down
2 changes: 1 addition & 1 deletion src/pool-cl/base/UnorderedNonce.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: GPL-2.0-or-later
pragma solidity ^0.8.20;
pragma solidity ^0.8.0;

/// @title Unordered Nonce
/// @notice Contract state and methods for using unordered nonces in signatures
Expand Down
Loading

0 comments on commit d436eed

Please sign in to comment.