Skip to content

Commit

Permalink
Remove Floating Pragmas
Browse files Browse the repository at this point in the history
Will likely be picked up in audits as SWC-103 https://swcregistry.io/docs/SWC-103/
  • Loading branch information
Tranquil-Flow committed Mar 8, 2024
1 parent b26e1af commit efbf474
Show file tree
Hide file tree
Showing 22 changed files with 22 additions and 22 deletions.
2 changes: 1 addition & 1 deletion src/Position.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.21;
pragma solidity 0.8.21;

// Local Imports
import { DebtService } from "src/services/DebtService.sol";
Expand Down
2 changes: 1 addition & 1 deletion src/PositionFactory.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.21;
pragma solidity 0.8.21;

// Local
import { Position } from "src/Position.sol";
Expand Down
2 changes: 1 addition & 1 deletion src/dependencies/aave/DataTypes.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: BUSL-1.1
pragma solidity ^0.8.21;
pragma solidity 0.8.21;

library DataTypes {
struct ReserveData {
Expand Down
2 changes: 1 addition & 1 deletion src/dependencies/access/Context.sol
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)

pragma solidity ^0.8.21;
pragma solidity 0.8.21;

/**
* @dev Provides information about the current execution context, including the
Expand Down
2 changes: 1 addition & 1 deletion src/dependencies/access/Ownable.sol
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)

pragma solidity ^0.8.21;
pragma solidity 0.8.21;

import { Context } from "src/dependencies/access/Context.sol";

Expand Down
2 changes: 1 addition & 1 deletion src/dependencies/uniswap/TransferHelper.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.21;
pragma solidity 0.8.21;

import { IERC20 } from "src/interfaces/token/IERC20.sol";

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

interface IFeeCollector {
/* solhint-disable func-name-mixedcase */
Expand Down
2 changes: 1 addition & 1 deletion src/interfaces/IPosition.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.21;
pragma solidity 0.8.21;

interface IPosition {
/* solhint-disable func-name-mixedcase */
Expand Down
2 changes: 1 addition & 1 deletion src/interfaces/IPositionFactory.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.21;
pragma solidity 0.8.21;

interface IPositionFactory {
/* solhint-disable func-name-mixedcase */
Expand Down
2 changes: 1 addition & 1 deletion src/interfaces/aave/IAaveOracle.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: AGPL-3.0
pragma solidity ^0.8.21;
pragma solidity 0.8.21;

import { IPriceOracleGetter } from "./IPriceOracleGetter.sol";
import { IPoolAddressesProvider } from "./IPoolAddressesProvider.sol";
Expand Down
2 changes: 1 addition & 1 deletion src/interfaces/aave/IPool.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: AGPL-3.0
pragma solidity ^0.8.21;
pragma solidity 0.8.21;

import { IPoolAddressesProvider } from "src/interfaces/aave/IPoolAddressesProvider.sol";
import { DataTypes } from "src/dependencies/aave/DataTypes.sol";
Expand Down
2 changes: 1 addition & 1 deletion src/interfaces/aave/IPoolAddressesProvider.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: AGPL-3.0
pragma solidity ^0.8.21;
pragma solidity 0.8.21;

/**
* @title IPoolAddressesProvider
Expand Down
2 changes: 1 addition & 1 deletion src/interfaces/aave/IPriceOracleGetter.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: AGPL-3.0
pragma solidity ^0.8.21;
pragma solidity 0.8.21;

/**
* @title IPriceOracleGetter
Expand Down
2 changes: 1 addition & 1 deletion src/interfaces/token/IERC20.sol
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/IERC20.sol)

pragma solidity ^0.8.21;
pragma solidity 0.8.21;

/**
* @dev Interface of the ERC-20 standard as defined in the ERC.
Expand Down
2 changes: 1 addition & 1 deletion src/interfaces/token/IERC20Metadata.sol
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.21;
pragma solidity 0.8.21;

import { IERC20 } from "src/interfaces/token/IERC20.sol";

Expand Down
2 changes: 1 addition & 1 deletion src/interfaces/token/IERC20Permit.sol
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (token/ERC20/extensions/IERC20Permit.sol)

pragma solidity ^0.8.21;
pragma solidity 0.8.21;

/**
* @dev Interface of the ERC-20 Permit extension allowing approvals to be made via signatures, as defined in
Expand Down
2 changes: 1 addition & 1 deletion src/interfaces/uniswap/ISwapRouter.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.21;
pragma solidity 0.8.21;
pragma abicoder v2;

import { IUniswapV3SwapCallback } from "src/interfaces/uniswap/IUniswapV3SwapCallback.sol";
Expand Down
2 changes: 1 addition & 1 deletion src/interfaces/uniswap/IUniswapV3SwapCallback.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.21;
pragma solidity 0.8.21;

/// @title Callback for IUniswapV3PoolActions#swap
/// @notice Any contract that calls IUniswapV3PoolActions#swap must implement this interface
Expand Down
2 changes: 1 addition & 1 deletion src/libraries/FeeLib.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.21;
pragma solidity 0.8.21;

import { SafeTransferLib, ERC20 } from "solmate/utils/SafeTransferLib.sol";
import { IFeeCollector } from "src/interfaces/IFeeCollector.sol";
Expand Down
2 changes: 1 addition & 1 deletion src/services/AdminService.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.21;
pragma solidity 0.8.21;

// Local Imports
import { IERC20 } from "src/interfaces/token/IERC20.sol";
Expand Down
2 changes: 1 addition & 1 deletion src/services/DebtService.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.21;
pragma solidity 0.8.21;

// Local Imports
import { AdminService } from "src/services/AdminService.sol";
Expand Down
2 changes: 1 addition & 1 deletion src/services/SwapService.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.21;
pragma solidity 0.8.21;

pragma abicoder v2;

Expand Down

0 comments on commit efbf474

Please sign in to comment.