From 2bafef0f6308943f8a8ec3c29ddcb3c8767e9ad2 Mon Sep 17 00:00:00 2001 From: miguelmtzinf Date: Wed, 4 Oct 2023 13:20:38 +0200 Subject: [PATCH 1/2] fix: Fixes solc version of contracts --- contracts/dependencies/gnosis/contracts/GPv2SafeERC20.sol | 2 +- contracts/dependencies/openzeppelin/contracts/AccessControl.sol | 2 +- contracts/dependencies/openzeppelin/contracts/Context.sol | 2 +- contracts/dependencies/openzeppelin/contracts/ERC165.sol | 2 +- contracts/dependencies/openzeppelin/contracts/ERC20.sol | 2 +- .../dependencies/openzeppelin/contracts/IAccessControl.sol | 2 +- contracts/dependencies/openzeppelin/contracts/IERC165.sol | 2 +- .../dependencies/openzeppelin/contracts/IERC20Detailed.sol | 2 +- contracts/dependencies/openzeppelin/contracts/Ownable.sol | 2 +- contracts/dependencies/openzeppelin/contracts/SafeCast.sol | 2 +- contracts/dependencies/openzeppelin/contracts/SafeMath.sol | 2 +- contracts/dependencies/openzeppelin/contracts/Strings.sol | 2 +- .../openzeppelin/upgradeability/AdminUpgradeabilityProxy.sol | 2 +- .../upgradeability/BaseAdminUpgradeabilityProxy.sol | 2 +- .../openzeppelin/upgradeability/BaseUpgradeabilityProxy.sol | 2 +- .../dependencies/openzeppelin/upgradeability/Initializable.sol | 2 +- .../upgradeability/InitializableAdminUpgradeabilityProxy.sol | 2 +- .../upgradeability/InitializableUpgradeabilityProxy.sol | 2 +- contracts/dependencies/openzeppelin/upgradeability/Proxy.sol | 2 +- .../openzeppelin/upgradeability/UpgradeabilityProxy.sol | 2 +- contracts/deployments/ReservesSetupHelper.sol | 2 +- contracts/flashloan/base/FlashLoanReceiverBase.sol | 2 +- contracts/flashloan/base/FlashLoanSimpleReceiverBase.sol | 2 +- contracts/misc/AaveOracle.sol | 2 +- contracts/misc/AaveProtocolDataProvider.sol | 2 +- contracts/misc/L2Encoder.sol | 2 +- contracts/misc/ZeroReserveInterestRateStrategy.sol | 2 +- contracts/mocks/flashloan/MockFlashLoanReceiver.sol | 2 +- contracts/mocks/flashloan/MockSimpleFlashLoanReceiver.sol | 2 +- contracts/mocks/helpers/MockIncentivesController.sol | 2 +- contracts/mocks/helpers/MockL2Pool.sol | 2 +- contracts/mocks/helpers/MockPeripheryContract.sol | 2 +- contracts/mocks/helpers/MockPool.sol | 2 +- contracts/mocks/helpers/MockReserveConfiguration.sol | 2 +- contracts/mocks/helpers/SelfDestructTransfer.sol | 2 +- contracts/mocks/oracle/CLAggregators/MockAggregator.sol | 2 +- contracts/mocks/oracle/PriceOracle.sol | 2 +- contracts/mocks/oracle/SequencerOracle.sol | 2 +- contracts/mocks/tests/FlashloanAttacker.sol | 2 +- contracts/mocks/tests/MockReserveInterestRateStrategy.sol | 2 +- contracts/mocks/tests/WadRayMathWrapper.sol | 2 +- contracts/mocks/tokens/MintableDelegationERC20.sol | 2 +- contracts/mocks/tokens/MintableERC20.sol | 2 +- contracts/mocks/tokens/MockATokenRepayment.sol | 2 +- contracts/mocks/tokens/WETH9Mocked.sol | 2 +- contracts/mocks/upgradeability/MockAToken.sol | 2 +- .../mocks/upgradeability/MockInitializableImplementation.sol | 2 +- contracts/mocks/upgradeability/MockStableDebtToken.sol | 2 +- contracts/mocks/upgradeability/MockVariableDebtToken.sol | 2 +- contracts/protocol/configuration/ACLManager.sol | 2 +- contracts/protocol/configuration/PoolAddressesProvider.sol | 2 +- .../protocol/configuration/PoolAddressesProviderRegistry.sol | 2 +- contracts/protocol/configuration/PriceOracleSentinel.sol | 2 +- .../BaseImmutableAdminUpgradeabilityProxy.sol | 2 +- .../InitializableImmutableAdminUpgradeabilityProxy.sol | 2 +- .../libraries/aave-upgradeability/VersionedInitializable.sol | 2 +- contracts/protocol/libraries/logic/BorrowLogic.sol | 2 +- contracts/protocol/libraries/logic/BridgeLogic.sol | 2 +- contracts/protocol/libraries/logic/CalldataLogic.sol | 2 +- contracts/protocol/libraries/logic/ConfiguratorLogic.sol | 2 +- contracts/protocol/libraries/logic/EModeLogic.sol | 2 +- contracts/protocol/libraries/logic/FlashLoanLogic.sol | 2 +- contracts/protocol/libraries/logic/GenericLogic.sol | 2 +- contracts/protocol/libraries/logic/IsolationModeLogic.sol | 2 +- contracts/protocol/libraries/logic/LiquidationLogic.sol | 2 +- contracts/protocol/libraries/logic/PoolLogic.sol | 2 +- contracts/protocol/libraries/logic/ReserveLogic.sol | 2 +- contracts/protocol/libraries/logic/SupplyLogic.sol | 2 +- contracts/protocol/libraries/logic/ValidationLogic.sol | 2 +- contracts/protocol/pool/DefaultReserveInterestRateStrategy.sol | 2 +- contracts/protocol/pool/Pool.sol | 2 +- contracts/protocol/pool/PoolConfigurator.sol | 2 +- contracts/protocol/pool/PoolStorage.sol | 2 +- contracts/protocol/tokenization/AToken.sol | 2 +- contracts/protocol/tokenization/DelegationAwareAToken.sol | 2 +- contracts/protocol/tokenization/StableDebtToken.sol | 2 +- contracts/protocol/tokenization/VariableDebtToken.sol | 2 +- contracts/protocol/tokenization/base/DebtTokenBase.sol | 2 +- contracts/protocol/tokenization/base/EIP712Base.sol | 2 +- contracts/protocol/tokenization/base/IncentivizedERC20.sol | 2 +- .../protocol/tokenization/base/MintableIncentivizedERC20.sol | 2 +- contracts/protocol/tokenization/base/ScaledBalanceTokenBase.sol | 2 +- 82 files changed, 82 insertions(+), 82 deletions(-) diff --git a/contracts/dependencies/gnosis/contracts/GPv2SafeERC20.sol b/contracts/dependencies/gnosis/contracts/GPv2SafeERC20.sol index c58fdb095..fa234fa7d 100644 --- a/contracts/dependencies/gnosis/contracts/GPv2SafeERC20.sol +++ b/contracts/dependencies/gnosis/contracts/GPv2SafeERC20.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: LGPL-3.0-or-later -pragma solidity 0.8.10; +pragma solidity ^0.8.0; import {IERC20} from '../../openzeppelin/contracts/IERC20.sol'; diff --git a/contracts/dependencies/openzeppelin/contracts/AccessControl.sol b/contracts/dependencies/openzeppelin/contracts/AccessControl.sol index 930bdbcb7..3b3e7c311 100644 --- a/contracts/dependencies/openzeppelin/contracts/AccessControl.sol +++ b/contracts/dependencies/openzeppelin/contracts/AccessControl.sol @@ -1,6 +1,6 @@ // SPDX-License-Identifier: MIT -pragma solidity 0.8.10; +pragma solidity ^0.8.0; import './IAccessControl.sol'; import './Context.sol'; diff --git a/contracts/dependencies/openzeppelin/contracts/Context.sol b/contracts/dependencies/openzeppelin/contracts/Context.sol index 445ee6409..01377c6d8 100644 --- a/contracts/dependencies/openzeppelin/contracts/Context.sol +++ b/contracts/dependencies/openzeppelin/contracts/Context.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity 0.8.10; +pragma solidity ^0.8.0; /* * @dev Provides information about the current execution context, including the diff --git a/contracts/dependencies/openzeppelin/contracts/ERC165.sol b/contracts/dependencies/openzeppelin/contracts/ERC165.sol index 15336e7ef..3f34e13d7 100644 --- a/contracts/dependencies/openzeppelin/contracts/ERC165.sol +++ b/contracts/dependencies/openzeppelin/contracts/ERC165.sol @@ -1,6 +1,6 @@ // SPDX-License-Identifier: MIT -pragma solidity 0.8.10; +pragma solidity ^0.8.0; import './IERC165.sol'; diff --git a/contracts/dependencies/openzeppelin/contracts/ERC20.sol b/contracts/dependencies/openzeppelin/contracts/ERC20.sol index 4d8eec26b..cc52c0608 100644 --- a/contracts/dependencies/openzeppelin/contracts/ERC20.sol +++ b/contracts/dependencies/openzeppelin/contracts/ERC20.sol @@ -1,6 +1,6 @@ // SPDX-License-Identifier: MIT -pragma solidity 0.8.10; +pragma solidity ^0.8.0; import './Context.sol'; import './IERC20.sol'; diff --git a/contracts/dependencies/openzeppelin/contracts/IAccessControl.sol b/contracts/dependencies/openzeppelin/contracts/IAccessControl.sol index c6f35263c..2b63934d2 100644 --- a/contracts/dependencies/openzeppelin/contracts/IAccessControl.sol +++ b/contracts/dependencies/openzeppelin/contracts/IAccessControl.sol @@ -1,6 +1,6 @@ // SPDX-License-Identifier: MIT -pragma solidity 0.8.10; +pragma solidity ^0.8.0; /** * @dev External interface of AccessControl declared to support ERC165 detection. diff --git a/contracts/dependencies/openzeppelin/contracts/IERC165.sol b/contracts/dependencies/openzeppelin/contracts/IERC165.sol index ce3c290e9..c7c8e53d0 100644 --- a/contracts/dependencies/openzeppelin/contracts/IERC165.sol +++ b/contracts/dependencies/openzeppelin/contracts/IERC165.sol @@ -1,6 +1,6 @@ // SPDX-License-Identifier: MIT -pragma solidity 0.8.10; +pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the diff --git a/contracts/dependencies/openzeppelin/contracts/IERC20Detailed.sol b/contracts/dependencies/openzeppelin/contracts/IERC20Detailed.sol index 6303454f3..6bd0685ab 100644 --- a/contracts/dependencies/openzeppelin/contracts/IERC20Detailed.sol +++ b/contracts/dependencies/openzeppelin/contracts/IERC20Detailed.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: AGPL-3.0 -pragma solidity 0.8.10; +pragma solidity ^0.8.0; import {IERC20} from './IERC20.sol'; diff --git a/contracts/dependencies/openzeppelin/contracts/Ownable.sol b/contracts/dependencies/openzeppelin/contracts/Ownable.sol index 020feeca5..a65c2ceb9 100644 --- a/contracts/dependencies/openzeppelin/contracts/Ownable.sol +++ b/contracts/dependencies/openzeppelin/contracts/Ownable.sol @@ -1,6 +1,6 @@ // SPDX-License-Identifier: MIT -pragma solidity 0.8.10; +pragma solidity ^0.8.0; import './Context.sol'; diff --git a/contracts/dependencies/openzeppelin/contracts/SafeCast.sol b/contracts/dependencies/openzeppelin/contracts/SafeCast.sol index 6d7080939..a2ec21970 100644 --- a/contracts/dependencies/openzeppelin/contracts/SafeCast.sol +++ b/contracts/dependencies/openzeppelin/contracts/SafeCast.sol @@ -1,6 +1,6 @@ // SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.1 (utils/math/SafeCast.sol) -pragma solidity 0.8.10; +pragma solidity ^0.8.0; /** * @dev Wrappers over Solidity's uintXX/intXX casting operators with added overflow diff --git a/contracts/dependencies/openzeppelin/contracts/SafeMath.sol b/contracts/dependencies/openzeppelin/contracts/SafeMath.sol index 5bfa4d59e..c673f640d 100644 --- a/contracts/dependencies/openzeppelin/contracts/SafeMath.sol +++ b/contracts/dependencies/openzeppelin/contracts/SafeMath.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: AGPL-3.0 -pragma solidity 0.8.10; +pragma solidity ^0.8.0; /// @title Optimized overflow and underflow safe math operations /// @notice Contains methods for doing math operations that revert on overflow or underflow for minimal gas cost diff --git a/contracts/dependencies/openzeppelin/contracts/Strings.sol b/contracts/dependencies/openzeppelin/contracts/Strings.sol index bcb1ee6a6..89c8b98a3 100644 --- a/contracts/dependencies/openzeppelin/contracts/Strings.sol +++ b/contracts/dependencies/openzeppelin/contracts/Strings.sol @@ -1,6 +1,6 @@ // SPDX-License-Identifier: MIT -pragma solidity 0.8.10; +pragma solidity ^0.8.0; /** * @dev String operations. diff --git a/contracts/dependencies/openzeppelin/upgradeability/AdminUpgradeabilityProxy.sol b/contracts/dependencies/openzeppelin/upgradeability/AdminUpgradeabilityProxy.sol index 035165d83..c686cc741 100644 --- a/contracts/dependencies/openzeppelin/upgradeability/AdminUpgradeabilityProxy.sol +++ b/contracts/dependencies/openzeppelin/upgradeability/AdminUpgradeabilityProxy.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: AGPL-3.0 -pragma solidity 0.8.10; +pragma solidity ^0.8.0; import './BaseAdminUpgradeabilityProxy.sol'; diff --git a/contracts/dependencies/openzeppelin/upgradeability/BaseAdminUpgradeabilityProxy.sol b/contracts/dependencies/openzeppelin/upgradeability/BaseAdminUpgradeabilityProxy.sol index 1954f3f61..2f65f3697 100644 --- a/contracts/dependencies/openzeppelin/upgradeability/BaseAdminUpgradeabilityProxy.sol +++ b/contracts/dependencies/openzeppelin/upgradeability/BaseAdminUpgradeabilityProxy.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: AGPL-3.0 -pragma solidity 0.8.10; +pragma solidity ^0.8.0; import './UpgradeabilityProxy.sol'; diff --git a/contracts/dependencies/openzeppelin/upgradeability/BaseUpgradeabilityProxy.sol b/contracts/dependencies/openzeppelin/upgradeability/BaseUpgradeabilityProxy.sol index 805fb578a..a0d9b80f0 100644 --- a/contracts/dependencies/openzeppelin/upgradeability/BaseUpgradeabilityProxy.sol +++ b/contracts/dependencies/openzeppelin/upgradeability/BaseUpgradeabilityProxy.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: AGPL-3.0 -pragma solidity 0.8.10; +pragma solidity ^0.8.0; import './Proxy.sol'; import '../contracts/Address.sol'; diff --git a/contracts/dependencies/openzeppelin/upgradeability/Initializable.sol b/contracts/dependencies/openzeppelin/upgradeability/Initializable.sol index 1a7863313..805bdd741 100644 --- a/contracts/dependencies/openzeppelin/upgradeability/Initializable.sol +++ b/contracts/dependencies/openzeppelin/upgradeability/Initializable.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: AGPL-3.0 -pragma solidity 0.8.10; +pragma solidity ^0.8.0; /** * @title Initializable diff --git a/contracts/dependencies/openzeppelin/upgradeability/InitializableAdminUpgradeabilityProxy.sol b/contracts/dependencies/openzeppelin/upgradeability/InitializableAdminUpgradeabilityProxy.sol index e2b603507..33ebadc27 100644 --- a/contracts/dependencies/openzeppelin/upgradeability/InitializableAdminUpgradeabilityProxy.sol +++ b/contracts/dependencies/openzeppelin/upgradeability/InitializableAdminUpgradeabilityProxy.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: AGPL-3.0 -pragma solidity 0.8.10; +pragma solidity ^0.8.0; import './BaseAdminUpgradeabilityProxy.sol'; import './InitializableUpgradeabilityProxy.sol'; diff --git a/contracts/dependencies/openzeppelin/upgradeability/InitializableUpgradeabilityProxy.sol b/contracts/dependencies/openzeppelin/upgradeability/InitializableUpgradeabilityProxy.sol index d76a024e0..519ab5394 100644 --- a/contracts/dependencies/openzeppelin/upgradeability/InitializableUpgradeabilityProxy.sol +++ b/contracts/dependencies/openzeppelin/upgradeability/InitializableUpgradeabilityProxy.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: AGPL-3.0 -pragma solidity 0.8.10; +pragma solidity ^0.8.0; import './BaseUpgradeabilityProxy.sol'; diff --git a/contracts/dependencies/openzeppelin/upgradeability/Proxy.sol b/contracts/dependencies/openzeppelin/upgradeability/Proxy.sol index 6f68021aa..4a22797b7 100644 --- a/contracts/dependencies/openzeppelin/upgradeability/Proxy.sol +++ b/contracts/dependencies/openzeppelin/upgradeability/Proxy.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: AGPL-3.0 -pragma solidity 0.8.10; +pragma solidity ^0.8.0; /** * @title Proxy diff --git a/contracts/dependencies/openzeppelin/upgradeability/UpgradeabilityProxy.sol b/contracts/dependencies/openzeppelin/upgradeability/UpgradeabilityProxy.sol index 65422f6e5..e6dce7c09 100644 --- a/contracts/dependencies/openzeppelin/upgradeability/UpgradeabilityProxy.sol +++ b/contracts/dependencies/openzeppelin/upgradeability/UpgradeabilityProxy.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: AGPL-3.0 -pragma solidity 0.8.10; +pragma solidity ^0.8.0; import './BaseUpgradeabilityProxy.sol'; diff --git a/contracts/deployments/ReservesSetupHelper.sol b/contracts/deployments/ReservesSetupHelper.sol index 047150328..7b410c4f2 100644 --- a/contracts/deployments/ReservesSetupHelper.sol +++ b/contracts/deployments/ReservesSetupHelper.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: BUSL-1.1 -pragma solidity 0.8.10; +pragma solidity ^0.8.0; import {PoolConfigurator} from '../protocol/pool/PoolConfigurator.sol'; import {Ownable} from '../dependencies/openzeppelin/contracts/Ownable.sol'; diff --git a/contracts/flashloan/base/FlashLoanReceiverBase.sol b/contracts/flashloan/base/FlashLoanReceiverBase.sol index 33452fd7c..4092bdd66 100644 --- a/contracts/flashloan/base/FlashLoanReceiverBase.sol +++ b/contracts/flashloan/base/FlashLoanReceiverBase.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: AGPL-3.0 -pragma solidity ^0.8.10; +pragma solidity ^0.8.0; import {IFlashLoanReceiver} from '../interfaces/IFlashLoanReceiver.sol'; import {IPoolAddressesProvider} from '../../interfaces/IPoolAddressesProvider.sol'; diff --git a/contracts/flashloan/base/FlashLoanSimpleReceiverBase.sol b/contracts/flashloan/base/FlashLoanSimpleReceiverBase.sol index 409bdf6a8..2c73c4d50 100644 --- a/contracts/flashloan/base/FlashLoanSimpleReceiverBase.sol +++ b/contracts/flashloan/base/FlashLoanSimpleReceiverBase.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: AGPL-3.0 -pragma solidity ^0.8.10; +pragma solidity ^0.8.0; import {IFlashLoanSimpleReceiver} from '../interfaces/IFlashLoanSimpleReceiver.sol'; import {IPoolAddressesProvider} from '../../interfaces/IPoolAddressesProvider.sol'; diff --git a/contracts/misc/AaveOracle.sol b/contracts/misc/AaveOracle.sol index f8342f677..1467f1bed 100644 --- a/contracts/misc/AaveOracle.sol +++ b/contracts/misc/AaveOracle.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: BUSL-1.1 -pragma solidity 0.8.10; +pragma solidity ^0.8.10; import {AggregatorInterface} from '../dependencies/chainlink/AggregatorInterface.sol'; import {Errors} from '../protocol/libraries/helpers/Errors.sol'; diff --git a/contracts/misc/AaveProtocolDataProvider.sol b/contracts/misc/AaveProtocolDataProvider.sol index d87a2c7dc..58cbe9ac0 100644 --- a/contracts/misc/AaveProtocolDataProvider.sol +++ b/contracts/misc/AaveProtocolDataProvider.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: BUSL-1.1 -pragma solidity 0.8.10; +pragma solidity ^0.8.10; import {IERC20Detailed} from '../dependencies/openzeppelin/contracts/IERC20Detailed.sol'; import {ReserveConfiguration} from '../protocol/libraries/configuration/ReserveConfiguration.sol'; diff --git a/contracts/misc/L2Encoder.sol b/contracts/misc/L2Encoder.sol index a9c8a56c9..c959058ad 100644 --- a/contracts/misc/L2Encoder.sol +++ b/contracts/misc/L2Encoder.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: BUSL-1.1 -pragma solidity 0.8.10; +pragma solidity ^0.8.10; import {SafeCast} from '../dependencies/openzeppelin/contracts/SafeCast.sol'; import {IPool} from '../interfaces/IPool.sol'; diff --git a/contracts/misc/ZeroReserveInterestRateStrategy.sol b/contracts/misc/ZeroReserveInterestRateStrategy.sol index 381ed715e..3324dc32b 100644 --- a/contracts/misc/ZeroReserveInterestRateStrategy.sol +++ b/contracts/misc/ZeroReserveInterestRateStrategy.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: BUSL-1.1 -pragma solidity ^0.8.0; +pragma solidity ^0.8.10; import {DataTypes} from '../protocol/libraries/types/DataTypes.sol'; import {IDefaultInterestRateStrategy} from '../interfaces/IDefaultInterestRateStrategy.sol'; diff --git a/contracts/mocks/flashloan/MockFlashLoanReceiver.sol b/contracts/mocks/flashloan/MockFlashLoanReceiver.sol index 7202f1a10..c521de7dc 100644 --- a/contracts/mocks/flashloan/MockFlashLoanReceiver.sol +++ b/contracts/mocks/flashloan/MockFlashLoanReceiver.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: BUSL-1.1 -pragma solidity 0.8.10; +pragma solidity ^0.8.0; import {IERC20} from '../../dependencies/openzeppelin/contracts/IERC20.sol'; import {GPv2SafeERC20} from '../../dependencies/gnosis/contracts/GPv2SafeERC20.sol'; diff --git a/contracts/mocks/flashloan/MockSimpleFlashLoanReceiver.sol b/contracts/mocks/flashloan/MockSimpleFlashLoanReceiver.sol index 27d665847..432e141ba 100644 --- a/contracts/mocks/flashloan/MockSimpleFlashLoanReceiver.sol +++ b/contracts/mocks/flashloan/MockSimpleFlashLoanReceiver.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: BUSL-1.1 -pragma solidity 0.8.10; +pragma solidity ^0.8.0; import {SafeMath} from '../../dependencies/openzeppelin/contracts/SafeMath.sol'; import {IERC20} from '../../dependencies/openzeppelin/contracts/IERC20.sol'; diff --git a/contracts/mocks/helpers/MockIncentivesController.sol b/contracts/mocks/helpers/MockIncentivesController.sol index 74bde14d9..0937a4c44 100644 --- a/contracts/mocks/helpers/MockIncentivesController.sol +++ b/contracts/mocks/helpers/MockIncentivesController.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: BUSL-1.1 -pragma solidity 0.8.10; +pragma solidity ^0.8.0; import {IAaveIncentivesController} from '../../interfaces/IAaveIncentivesController.sol'; diff --git a/contracts/mocks/helpers/MockL2Pool.sol b/contracts/mocks/helpers/MockL2Pool.sol index 08ac0a22f..3e2050552 100644 --- a/contracts/mocks/helpers/MockL2Pool.sol +++ b/contracts/mocks/helpers/MockL2Pool.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: BUSL-1.1 -pragma solidity 0.8.10; +pragma solidity ^0.8.0; import {IPoolAddressesProvider} from '../../interfaces/IPoolAddressesProvider.sol'; import {L2Pool} from '../../protocol/pool/L2Pool.sol'; diff --git a/contracts/mocks/helpers/MockPeripheryContract.sol b/contracts/mocks/helpers/MockPeripheryContract.sol index ed2821d6e..60e9edf0e 100644 --- a/contracts/mocks/helpers/MockPeripheryContract.sol +++ b/contracts/mocks/helpers/MockPeripheryContract.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: BUSL-1.1 -pragma solidity 0.8.10; +pragma solidity ^0.8.0; contract MockPeripheryContractV1 { address private _manager; diff --git a/contracts/mocks/helpers/MockPool.sol b/contracts/mocks/helpers/MockPool.sol index 258b9631b..22f856bf5 100644 --- a/contracts/mocks/helpers/MockPool.sol +++ b/contracts/mocks/helpers/MockPool.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: BUSL-1.1 -pragma solidity 0.8.10; +pragma solidity ^0.8.0; import {IPoolAddressesProvider} from '../../interfaces/IPoolAddressesProvider.sol'; diff --git a/contracts/mocks/helpers/MockReserveConfiguration.sol b/contracts/mocks/helpers/MockReserveConfiguration.sol index e9f02e7fe..29100f3be 100644 --- a/contracts/mocks/helpers/MockReserveConfiguration.sol +++ b/contracts/mocks/helpers/MockReserveConfiguration.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: BUSL-1.1 -pragma solidity 0.8.10; +pragma solidity ^0.8.0; import {ReserveConfiguration} from '../../protocol/libraries/configuration/ReserveConfiguration.sol'; import {DataTypes} from '../../protocol/libraries/types/DataTypes.sol'; diff --git a/contracts/mocks/helpers/SelfDestructTransfer.sol b/contracts/mocks/helpers/SelfDestructTransfer.sol index 9aa10ad5f..5bf22bd91 100644 --- a/contracts/mocks/helpers/SelfDestructTransfer.sol +++ b/contracts/mocks/helpers/SelfDestructTransfer.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: BUSL-1.1 -pragma solidity 0.8.10; +pragma solidity ^0.8.0; contract SelfdestructTransfer { function destroyAndTransfer(address payable to) external payable { diff --git a/contracts/mocks/oracle/CLAggregators/MockAggregator.sol b/contracts/mocks/oracle/CLAggregators/MockAggregator.sol index e21b54629..855648f31 100644 --- a/contracts/mocks/oracle/CLAggregators/MockAggregator.sol +++ b/contracts/mocks/oracle/CLAggregators/MockAggregator.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: BUSL-1.1 -pragma solidity 0.8.10; +pragma solidity ^0.8.0; contract MockAggregator { int256 private _latestAnswer; diff --git a/contracts/mocks/oracle/PriceOracle.sol b/contracts/mocks/oracle/PriceOracle.sol index e8d2b2b9f..a916df990 100644 --- a/contracts/mocks/oracle/PriceOracle.sol +++ b/contracts/mocks/oracle/PriceOracle.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: BUSL-1.1 -pragma solidity 0.8.10; +pragma solidity ^0.8.0; import {IPriceOracle} from '../../interfaces/IPriceOracle.sol'; diff --git a/contracts/mocks/oracle/SequencerOracle.sol b/contracts/mocks/oracle/SequencerOracle.sol index 64608f085..19dcf9f5f 100644 --- a/contracts/mocks/oracle/SequencerOracle.sol +++ b/contracts/mocks/oracle/SequencerOracle.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: BUSL-1.1 -pragma solidity 0.8.10; +pragma solidity ^0.8.0; import {Ownable} from '../../dependencies/openzeppelin/contracts/Ownable.sol'; import {ISequencerOracle} from '../../interfaces/ISequencerOracle.sol'; diff --git a/contracts/mocks/tests/FlashloanAttacker.sol b/contracts/mocks/tests/FlashloanAttacker.sol index 58d821881..9b5375019 100644 --- a/contracts/mocks/tests/FlashloanAttacker.sol +++ b/contracts/mocks/tests/FlashloanAttacker.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: BUSL-1.1 -pragma solidity 0.8.10; +pragma solidity ^0.8.0; import {SafeMath} from '../../dependencies/openzeppelin/contracts/SafeMath.sol'; import {IERC20} from '../../dependencies/openzeppelin/contracts/IERC20.sol'; diff --git a/contracts/mocks/tests/MockReserveInterestRateStrategy.sol b/contracts/mocks/tests/MockReserveInterestRateStrategy.sol index 5f6ceb85e..dd8116d86 100644 --- a/contracts/mocks/tests/MockReserveInterestRateStrategy.sol +++ b/contracts/mocks/tests/MockReserveInterestRateStrategy.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: BUSL-1.1 -pragma solidity 0.8.10; +pragma solidity ^0.8.0; import {IDefaultInterestRateStrategy} from '../../interfaces/IDefaultInterestRateStrategy.sol'; import {IPoolAddressesProvider} from '../../interfaces/IPoolAddressesProvider.sol'; diff --git a/contracts/mocks/tests/WadRayMathWrapper.sol b/contracts/mocks/tests/WadRayMathWrapper.sol index 9db4fcf70..c6e8b34b7 100644 --- a/contracts/mocks/tests/WadRayMathWrapper.sol +++ b/contracts/mocks/tests/WadRayMathWrapper.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: BUSL-1.1 -pragma solidity 0.8.10; +pragma solidity ^0.8.0; import {WadRayMath} from '../../protocol/libraries/math/WadRayMath.sol'; diff --git a/contracts/mocks/tokens/MintableDelegationERC20.sol b/contracts/mocks/tokens/MintableDelegationERC20.sol index f8c6b950c..a472802fc 100644 --- a/contracts/mocks/tokens/MintableDelegationERC20.sol +++ b/contracts/mocks/tokens/MintableDelegationERC20.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: BUSL-1.1 -pragma solidity 0.8.10; +pragma solidity ^0.8.0; import {ERC20} from '../../dependencies/openzeppelin/contracts/ERC20.sol'; import {IDelegationToken} from '../../interfaces/IDelegationToken.sol'; diff --git a/contracts/mocks/tokens/MintableERC20.sol b/contracts/mocks/tokens/MintableERC20.sol index b9675195c..0b0ac6566 100644 --- a/contracts/mocks/tokens/MintableERC20.sol +++ b/contracts/mocks/tokens/MintableERC20.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: BUSL-1.1 -pragma solidity 0.8.10; +pragma solidity ^0.8.0; import {ERC20} from '../../dependencies/openzeppelin/contracts/ERC20.sol'; import {IERC20WithPermit} from '../../interfaces/IERC20WithPermit.sol'; diff --git a/contracts/mocks/tokens/MockATokenRepayment.sol b/contracts/mocks/tokens/MockATokenRepayment.sol index 3d5c64a70..8a3fbb205 100644 --- a/contracts/mocks/tokens/MockATokenRepayment.sol +++ b/contracts/mocks/tokens/MockATokenRepayment.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: BUSL-1.1 -pragma solidity 0.8.10; +pragma solidity ^0.8.0; import {AToken} from '../../protocol/tokenization/AToken.sol'; import {IPool} from '../../interfaces/IPool.sol'; diff --git a/contracts/mocks/tokens/WETH9Mocked.sol b/contracts/mocks/tokens/WETH9Mocked.sol index 9a42566cd..46be79b3f 100644 --- a/contracts/mocks/tokens/WETH9Mocked.sol +++ b/contracts/mocks/tokens/WETH9Mocked.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: BUSL-1.1 -pragma solidity 0.8.10; +pragma solidity ^0.8.0; import {WETH9} from '../../dependencies/weth/WETH9.sol'; diff --git a/contracts/mocks/upgradeability/MockAToken.sol b/contracts/mocks/upgradeability/MockAToken.sol index 42b4f3916..847ae73c8 100644 --- a/contracts/mocks/upgradeability/MockAToken.sol +++ b/contracts/mocks/upgradeability/MockAToken.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: BUSL-1.1 -pragma solidity 0.8.10; +pragma solidity ^0.8.0; import {AToken} from '../../protocol/tokenization/AToken.sol'; import {IPool} from '../../interfaces/IPool.sol'; diff --git a/contracts/mocks/upgradeability/MockInitializableImplementation.sol b/contracts/mocks/upgradeability/MockInitializableImplementation.sol index 985dc72ec..eb93b55aa 100644 --- a/contracts/mocks/upgradeability/MockInitializableImplementation.sol +++ b/contracts/mocks/upgradeability/MockInitializableImplementation.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: BUSL-1.1 -pragma solidity 0.8.10; +pragma solidity ^0.8.0; import {VersionedInitializable} from '../../protocol/libraries/aave-upgradeability/VersionedInitializable.sol'; diff --git a/contracts/mocks/upgradeability/MockStableDebtToken.sol b/contracts/mocks/upgradeability/MockStableDebtToken.sol index 3c93bfe38..67431bbf3 100644 --- a/contracts/mocks/upgradeability/MockStableDebtToken.sol +++ b/contracts/mocks/upgradeability/MockStableDebtToken.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: BUSL-1.1 -pragma solidity 0.8.10; +pragma solidity ^0.8.0; import {StableDebtToken} from '../../protocol/tokenization/StableDebtToken.sol'; import {IPool} from '../../interfaces/IPool.sol'; diff --git a/contracts/mocks/upgradeability/MockVariableDebtToken.sol b/contracts/mocks/upgradeability/MockVariableDebtToken.sol index 3c3020287..83df26433 100644 --- a/contracts/mocks/upgradeability/MockVariableDebtToken.sol +++ b/contracts/mocks/upgradeability/MockVariableDebtToken.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: BUSL-1.1 -pragma solidity 0.8.10; +pragma solidity ^0.8.0; import {VariableDebtToken} from '../../protocol/tokenization/VariableDebtToken.sol'; import {IPool} from '../../interfaces/IPool.sol'; diff --git a/contracts/protocol/configuration/ACLManager.sol b/contracts/protocol/configuration/ACLManager.sol index 3f1b48dc3..dc4de67d9 100644 --- a/contracts/protocol/configuration/ACLManager.sol +++ b/contracts/protocol/configuration/ACLManager.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: BUSL-1.1 -pragma solidity 0.8.10; +pragma solidity ^0.8.10; import {AccessControl} from '../../dependencies/openzeppelin/contracts/AccessControl.sol'; import {IPoolAddressesProvider} from '../../interfaces/IPoolAddressesProvider.sol'; diff --git a/contracts/protocol/configuration/PoolAddressesProvider.sol b/contracts/protocol/configuration/PoolAddressesProvider.sol index 1d4b5fee3..06fa9333a 100644 --- a/contracts/protocol/configuration/PoolAddressesProvider.sol +++ b/contracts/protocol/configuration/PoolAddressesProvider.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: BUSL-1.1 -pragma solidity 0.8.10; +pragma solidity ^0.8.10; import {Ownable} from '../../dependencies/openzeppelin/contracts/Ownable.sol'; import {IPoolAddressesProvider} from '../../interfaces/IPoolAddressesProvider.sol'; diff --git a/contracts/protocol/configuration/PoolAddressesProviderRegistry.sol b/contracts/protocol/configuration/PoolAddressesProviderRegistry.sol index 797d21b0f..7368df008 100644 --- a/contracts/protocol/configuration/PoolAddressesProviderRegistry.sol +++ b/contracts/protocol/configuration/PoolAddressesProviderRegistry.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: BUSL-1.1 -pragma solidity 0.8.10; +pragma solidity ^0.8.10; import {Ownable} from '../../dependencies/openzeppelin/contracts/Ownable.sol'; import {Errors} from '../libraries/helpers/Errors.sol'; diff --git a/contracts/protocol/configuration/PriceOracleSentinel.sol b/contracts/protocol/configuration/PriceOracleSentinel.sol index 1ee932af9..796ede41d 100644 --- a/contracts/protocol/configuration/PriceOracleSentinel.sol +++ b/contracts/protocol/configuration/PriceOracleSentinel.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: BUSL-1.1 -pragma solidity 0.8.10; +pragma solidity ^0.8.10; import {Errors} from '../libraries/helpers/Errors.sol'; import {IPoolAddressesProvider} from '../../interfaces/IPoolAddressesProvider.sol'; diff --git a/contracts/protocol/libraries/aave-upgradeability/BaseImmutableAdminUpgradeabilityProxy.sol b/contracts/protocol/libraries/aave-upgradeability/BaseImmutableAdminUpgradeabilityProxy.sol index 7aaa735ac..0a61babe4 100644 --- a/contracts/protocol/libraries/aave-upgradeability/BaseImmutableAdminUpgradeabilityProxy.sol +++ b/contracts/protocol/libraries/aave-upgradeability/BaseImmutableAdminUpgradeabilityProxy.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: AGPL-3.0 -pragma solidity 0.8.10; +pragma solidity ^0.8.0; import {BaseUpgradeabilityProxy} from '../../../dependencies/openzeppelin/upgradeability/BaseUpgradeabilityProxy.sol'; diff --git a/contracts/protocol/libraries/aave-upgradeability/InitializableImmutableAdminUpgradeabilityProxy.sol b/contracts/protocol/libraries/aave-upgradeability/InitializableImmutableAdminUpgradeabilityProxy.sol index 655e5f9e7..ec3473527 100644 --- a/contracts/protocol/libraries/aave-upgradeability/InitializableImmutableAdminUpgradeabilityProxy.sol +++ b/contracts/protocol/libraries/aave-upgradeability/InitializableImmutableAdminUpgradeabilityProxy.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: AGPL-3.0 -pragma solidity 0.8.10; +pragma solidity ^0.8.0; import {InitializableUpgradeabilityProxy} from '../../../dependencies/openzeppelin/upgradeability/InitializableUpgradeabilityProxy.sol'; import {Proxy} from '../../../dependencies/openzeppelin/upgradeability/Proxy.sol'; diff --git a/contracts/protocol/libraries/aave-upgradeability/VersionedInitializable.sol b/contracts/protocol/libraries/aave-upgradeability/VersionedInitializable.sol index d24312bf1..317a16465 100644 --- a/contracts/protocol/libraries/aave-upgradeability/VersionedInitializable.sol +++ b/contracts/protocol/libraries/aave-upgradeability/VersionedInitializable.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: AGPL-3.0 -pragma solidity 0.8.10; +pragma solidity ^0.8.0; /** * @title VersionedInitializable diff --git a/contracts/protocol/libraries/logic/BorrowLogic.sol b/contracts/protocol/libraries/logic/BorrowLogic.sol index 1c1a24d5c..7ac22d948 100644 --- a/contracts/protocol/libraries/logic/BorrowLogic.sol +++ b/contracts/protocol/libraries/logic/BorrowLogic.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: BUSL-1.1 -pragma solidity 0.8.10; +pragma solidity ^0.8.10; import {GPv2SafeERC20} from '../../../dependencies/gnosis/contracts/GPv2SafeERC20.sol'; import {SafeCast} from '../../../dependencies/openzeppelin/contracts/SafeCast.sol'; diff --git a/contracts/protocol/libraries/logic/BridgeLogic.sol b/contracts/protocol/libraries/logic/BridgeLogic.sol index bc37b57a9..ef1f7f814 100644 --- a/contracts/protocol/libraries/logic/BridgeLogic.sol +++ b/contracts/protocol/libraries/logic/BridgeLogic.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: BUSL-1.1 -pragma solidity 0.8.10; +pragma solidity ^0.8.10; import {IERC20} from '../../../dependencies/openzeppelin/contracts/IERC20.sol'; import {GPv2SafeERC20} from '../../../dependencies/gnosis/contracts/GPv2SafeERC20.sol'; diff --git a/contracts/protocol/libraries/logic/CalldataLogic.sol b/contracts/protocol/libraries/logic/CalldataLogic.sol index c704fdf74..6a36790d9 100644 --- a/contracts/protocol/libraries/logic/CalldataLogic.sol +++ b/contracts/protocol/libraries/logic/CalldataLogic.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: BUSL-1.1 -pragma solidity 0.8.10; +pragma solidity ^0.8.10; /** * @title CalldataLogic library diff --git a/contracts/protocol/libraries/logic/ConfiguratorLogic.sol b/contracts/protocol/libraries/logic/ConfiguratorLogic.sol index d154846c2..d9672d1e5 100644 --- a/contracts/protocol/libraries/logic/ConfiguratorLogic.sol +++ b/contracts/protocol/libraries/logic/ConfiguratorLogic.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: BUSL-1.1 -pragma solidity 0.8.10; +pragma solidity ^0.8.10; import {IPool} from '../../../interfaces/IPool.sol'; import {IInitializableAToken} from '../../../interfaces/IInitializableAToken.sol'; diff --git a/contracts/protocol/libraries/logic/EModeLogic.sol b/contracts/protocol/libraries/logic/EModeLogic.sol index a8aad9d71..82b08a151 100644 --- a/contracts/protocol/libraries/logic/EModeLogic.sol +++ b/contracts/protocol/libraries/logic/EModeLogic.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: BUSL-1.1 -pragma solidity 0.8.10; +pragma solidity ^0.8.10; import {GPv2SafeERC20} from '../../../dependencies/gnosis/contracts/GPv2SafeERC20.sol'; import {IERC20} from '../../../dependencies/openzeppelin/contracts/IERC20.sol'; diff --git a/contracts/protocol/libraries/logic/FlashLoanLogic.sol b/contracts/protocol/libraries/logic/FlashLoanLogic.sol index a30ec60d8..c60a5d8fe 100644 --- a/contracts/protocol/libraries/logic/FlashLoanLogic.sol +++ b/contracts/protocol/libraries/logic/FlashLoanLogic.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: BUSL-1.1 -pragma solidity 0.8.10; +pragma solidity ^0.8.10; import {GPv2SafeERC20} from '../../../dependencies/gnosis/contracts/GPv2SafeERC20.sol'; import {SafeCast} from '../../../dependencies/openzeppelin/contracts/SafeCast.sol'; diff --git a/contracts/protocol/libraries/logic/GenericLogic.sol b/contracts/protocol/libraries/logic/GenericLogic.sol index b14bd7c5c..3342316e7 100644 --- a/contracts/protocol/libraries/logic/GenericLogic.sol +++ b/contracts/protocol/libraries/logic/GenericLogic.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: BUSL-1.1 -pragma solidity 0.8.10; +pragma solidity ^0.8.10; import {IERC20} from '../../../dependencies/openzeppelin/contracts/IERC20.sol'; import {IScaledBalanceToken} from '../../../interfaces/IScaledBalanceToken.sol'; diff --git a/contracts/protocol/libraries/logic/IsolationModeLogic.sol b/contracts/protocol/libraries/logic/IsolationModeLogic.sol index e2995c161..473840ea3 100644 --- a/contracts/protocol/libraries/logic/IsolationModeLogic.sol +++ b/contracts/protocol/libraries/logic/IsolationModeLogic.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: BUSL-1.1 -pragma solidity 0.8.10; +pragma solidity ^0.8.10; import {DataTypes} from '../types/DataTypes.sol'; import {ReserveConfiguration} from '../configuration/ReserveConfiguration.sol'; diff --git a/contracts/protocol/libraries/logic/LiquidationLogic.sol b/contracts/protocol/libraries/logic/LiquidationLogic.sol index 8c2f4bbc3..57f00fd47 100644 --- a/contracts/protocol/libraries/logic/LiquidationLogic.sol +++ b/contracts/protocol/libraries/logic/LiquidationLogic.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: BUSL-1.1 -pragma solidity 0.8.10; +pragma solidity ^0.8.10; import {IERC20} from '../../../dependencies/openzeppelin/contracts//IERC20.sol'; import {GPv2SafeERC20} from '../../../dependencies/gnosis/contracts/GPv2SafeERC20.sol'; diff --git a/contracts/protocol/libraries/logic/PoolLogic.sol b/contracts/protocol/libraries/logic/PoolLogic.sol index 28470a59f..18b312c7f 100644 --- a/contracts/protocol/libraries/logic/PoolLogic.sol +++ b/contracts/protocol/libraries/logic/PoolLogic.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: BUSL-1.1 -pragma solidity 0.8.10; +pragma solidity ^0.8.10; import {GPv2SafeERC20} from '../../../dependencies/gnosis/contracts/GPv2SafeERC20.sol'; import {Address} from '../../../dependencies/openzeppelin/contracts/Address.sol'; diff --git a/contracts/protocol/libraries/logic/ReserveLogic.sol b/contracts/protocol/libraries/logic/ReserveLogic.sol index 7ee9cb6ca..bc48163db 100644 --- a/contracts/protocol/libraries/logic/ReserveLogic.sol +++ b/contracts/protocol/libraries/logic/ReserveLogic.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: BUSL-1.1 -pragma solidity 0.8.10; +pragma solidity ^0.8.10; import {IERC20} from '../../../dependencies/openzeppelin/contracts/IERC20.sol'; import {GPv2SafeERC20} from '../../../dependencies/gnosis/contracts/GPv2SafeERC20.sol'; diff --git a/contracts/protocol/libraries/logic/SupplyLogic.sol b/contracts/protocol/libraries/logic/SupplyLogic.sol index 6398bde63..59cef41c0 100644 --- a/contracts/protocol/libraries/logic/SupplyLogic.sol +++ b/contracts/protocol/libraries/logic/SupplyLogic.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: BUSL-1.1 -pragma solidity 0.8.10; +pragma solidity ^0.8.10; import {IERC20} from '../../../dependencies/openzeppelin/contracts/IERC20.sol'; import {GPv2SafeERC20} from '../../../dependencies/gnosis/contracts/GPv2SafeERC20.sol'; diff --git a/contracts/protocol/libraries/logic/ValidationLogic.sol b/contracts/protocol/libraries/logic/ValidationLogic.sol index 2ca31565d..75218f054 100644 --- a/contracts/protocol/libraries/logic/ValidationLogic.sol +++ b/contracts/protocol/libraries/logic/ValidationLogic.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: BUSL-1.1 -pragma solidity 0.8.10; +pragma solidity ^0.8.10; import {IERC20} from '../../../dependencies/openzeppelin/contracts/IERC20.sol'; import {Address} from '../../../dependencies/openzeppelin/contracts/Address.sol'; diff --git a/contracts/protocol/pool/DefaultReserveInterestRateStrategy.sol b/contracts/protocol/pool/DefaultReserveInterestRateStrategy.sol index 61363dd14..bb03f2cae 100644 --- a/contracts/protocol/pool/DefaultReserveInterestRateStrategy.sol +++ b/contracts/protocol/pool/DefaultReserveInterestRateStrategy.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: BUSL-1.1 -pragma solidity ^0.8.0; +pragma solidity ^0.8.10; import {IERC20} from '../../dependencies/openzeppelin/contracts/IERC20.sol'; import {WadRayMath} from '../libraries/math/WadRayMath.sol'; diff --git a/contracts/protocol/pool/Pool.sol b/contracts/protocol/pool/Pool.sol index e41c45110..b0a533b0d 100644 --- a/contracts/protocol/pool/Pool.sol +++ b/contracts/protocol/pool/Pool.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: BUSL-1.1 -pragma solidity 0.8.10; +pragma solidity ^0.8.10; import {VersionedInitializable} from '../libraries/aave-upgradeability/VersionedInitializable.sol'; import {Errors} from '../libraries/helpers/Errors.sol'; diff --git a/contracts/protocol/pool/PoolConfigurator.sol b/contracts/protocol/pool/PoolConfigurator.sol index a4eafe81b..22119e4c0 100644 --- a/contracts/protocol/pool/PoolConfigurator.sol +++ b/contracts/protocol/pool/PoolConfigurator.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: BUSL-1.1 -pragma solidity 0.8.10; +pragma solidity ^0.8.10; import {VersionedInitializable} from '../libraries/aave-upgradeability/VersionedInitializable.sol'; import {ReserveConfiguration} from '../libraries/configuration/ReserveConfiguration.sol'; diff --git a/contracts/protocol/pool/PoolStorage.sol b/contracts/protocol/pool/PoolStorage.sol index 9fac0d966..ccf22b3fd 100644 --- a/contracts/protocol/pool/PoolStorage.sol +++ b/contracts/protocol/pool/PoolStorage.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: BUSL-1.1 -pragma solidity 0.8.10; +pragma solidity ^0.8.10; import {UserConfiguration} from '../libraries/configuration/UserConfiguration.sol'; import {ReserveConfiguration} from '../libraries/configuration/ReserveConfiguration.sol'; diff --git a/contracts/protocol/tokenization/AToken.sol b/contracts/protocol/tokenization/AToken.sol index 57f3b167f..f613b6661 100644 --- a/contracts/protocol/tokenization/AToken.sol +++ b/contracts/protocol/tokenization/AToken.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: BUSL-1.1 -pragma solidity 0.8.10; +pragma solidity ^0.8.10; import {IERC20} from '../../dependencies/openzeppelin/contracts/IERC20.sol'; import {GPv2SafeERC20} from '../../dependencies/gnosis/contracts/GPv2SafeERC20.sol'; diff --git a/contracts/protocol/tokenization/DelegationAwareAToken.sol b/contracts/protocol/tokenization/DelegationAwareAToken.sol index 6f48482f6..ca496d645 100644 --- a/contracts/protocol/tokenization/DelegationAwareAToken.sol +++ b/contracts/protocol/tokenization/DelegationAwareAToken.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: BUSL-1.1 -pragma solidity 0.8.10; +pragma solidity ^0.8.10; import {IPool} from '../../interfaces/IPool.sol'; import {IDelegationToken} from '../../interfaces/IDelegationToken.sol'; diff --git a/contracts/protocol/tokenization/StableDebtToken.sol b/contracts/protocol/tokenization/StableDebtToken.sol index a84fcc910..666676ea0 100644 --- a/contracts/protocol/tokenization/StableDebtToken.sol +++ b/contracts/protocol/tokenization/StableDebtToken.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: BUSL-1.1 -pragma solidity 0.8.10; +pragma solidity ^0.8.10; import {IERC20} from '../../dependencies/openzeppelin/contracts/IERC20.sol'; import {VersionedInitializable} from '../libraries/aave-upgradeability/VersionedInitializable.sol'; diff --git a/contracts/protocol/tokenization/VariableDebtToken.sol b/contracts/protocol/tokenization/VariableDebtToken.sol index 902963a59..fd935f182 100644 --- a/contracts/protocol/tokenization/VariableDebtToken.sol +++ b/contracts/protocol/tokenization/VariableDebtToken.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: BUSL-1.1 -pragma solidity 0.8.10; +pragma solidity ^0.8.10; import {IERC20} from '../../dependencies/openzeppelin/contracts/IERC20.sol'; import {SafeCast} from '../../dependencies/openzeppelin/contracts/SafeCast.sol'; diff --git a/contracts/protocol/tokenization/base/DebtTokenBase.sol b/contracts/protocol/tokenization/base/DebtTokenBase.sol index 4ba95f291..6f28eb9ee 100644 --- a/contracts/protocol/tokenization/base/DebtTokenBase.sol +++ b/contracts/protocol/tokenization/base/DebtTokenBase.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: BUSL-1.1 -pragma solidity 0.8.10; +pragma solidity ^0.8.10; import {Context} from '../../../dependencies/openzeppelin/contracts/Context.sol'; import {Errors} from '../../libraries/helpers/Errors.sol'; diff --git a/contracts/protocol/tokenization/base/EIP712Base.sol b/contracts/protocol/tokenization/base/EIP712Base.sol index afe9dd8b2..8660c541d 100644 --- a/contracts/protocol/tokenization/base/EIP712Base.sol +++ b/contracts/protocol/tokenization/base/EIP712Base.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: BUSL-1.1 -pragma solidity 0.8.10; +pragma solidity ^0.8.10; /** * @title EIP712Base diff --git a/contracts/protocol/tokenization/base/IncentivizedERC20.sol b/contracts/protocol/tokenization/base/IncentivizedERC20.sol index 08a219e0a..824252e6f 100644 --- a/contracts/protocol/tokenization/base/IncentivizedERC20.sol +++ b/contracts/protocol/tokenization/base/IncentivizedERC20.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: BUSL-1.1 -pragma solidity 0.8.10; +pragma solidity ^0.8.10; import {Context} from '../../../dependencies/openzeppelin/contracts/Context.sol'; import {IERC20} from '../../../dependencies/openzeppelin/contracts/IERC20.sol'; diff --git a/contracts/protocol/tokenization/base/MintableIncentivizedERC20.sol b/contracts/protocol/tokenization/base/MintableIncentivizedERC20.sol index 6d2120e3d..cbd125fb0 100644 --- a/contracts/protocol/tokenization/base/MintableIncentivizedERC20.sol +++ b/contracts/protocol/tokenization/base/MintableIncentivizedERC20.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: BUSL-1.1 -pragma solidity 0.8.10; +pragma solidity ^0.8.10; import {IAaveIncentivesController} from '../../../interfaces/IAaveIncentivesController.sol'; import {IPool} from '../../../interfaces/IPool.sol'; diff --git a/contracts/protocol/tokenization/base/ScaledBalanceTokenBase.sol b/contracts/protocol/tokenization/base/ScaledBalanceTokenBase.sol index d0010e5f5..1d705b539 100644 --- a/contracts/protocol/tokenization/base/ScaledBalanceTokenBase.sol +++ b/contracts/protocol/tokenization/base/ScaledBalanceTokenBase.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: BUSL-1.1 -pragma solidity 0.8.10; +pragma solidity ^0.8.10; import {SafeCast} from '../../../dependencies/openzeppelin/contracts/SafeCast.sol'; import {Errors} from '../../libraries/helpers/Errors.sol'; From 017eb3ce3e77e5142f4d518eef102c828498eda3 Mon Sep 17 00:00:00 2001 From: miguelmtzinf Date: Wed, 4 Oct 2023 13:24:55 +0200 Subject: [PATCH 2/2] fix: Fix weth solc version --- contracts/dependencies/weth/WETH9.sol | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contracts/dependencies/weth/WETH9.sol b/contracts/dependencies/weth/WETH9.sol index 33c045fa0..829d34550 100644 --- a/contracts/dependencies/weth/WETH9.sol +++ b/contracts/dependencies/weth/WETH9.sol @@ -13,7 +13,7 @@ // You should have received a copy of the GNU General Public License // along with this program. If not, see . -pragma solidity 0.8.10; +pragma solidity ^0.8.10; contract WETH9 { string public name = 'Wrapped Ether';