From 3b4ea336204b3e1996663e49aeb9d4f7df96c9c2 Mon Sep 17 00:00:00 2001 From: miguelmtzinf Date: Wed, 7 Dec 2022 18:26:27 +0100 Subject: [PATCH 1/2] fix: Soften solidity version of DataTypes libraries --- contracts/protocol/libraries/types/ConfiguratorInputTypes.sol | 2 +- contracts/protocol/libraries/types/DataTypes.sol | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/contracts/protocol/libraries/types/ConfiguratorInputTypes.sol b/contracts/protocol/libraries/types/ConfiguratorInputTypes.sol index 61de06a31..229473563 100644 --- a/contracts/protocol/libraries/types/ConfiguratorInputTypes.sol +++ b/contracts/protocol/libraries/types/ConfiguratorInputTypes.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: BUSL-1.1 -pragma solidity 0.8.10; +pragma solidity ^0.8.0; library ConfiguratorInputTypes { struct InitReserveInput { diff --git a/contracts/protocol/libraries/types/DataTypes.sol b/contracts/protocol/libraries/types/DataTypes.sol index 7113a0a51..c40d732f4 100644 --- a/contracts/protocol/libraries/types/DataTypes.sol +++ b/contracts/protocol/libraries/types/DataTypes.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: BUSL-1.1 -pragma solidity 0.8.10; +pragma solidity ^0.8.0; library DataTypes { struct ReserveData { From b1c725b575302cbafdf4d2b60f8b56f289637d6c Mon Sep 17 00:00:00 2001 From: eboado Date: Sun, 11 Dec 2022 11:53:29 +0100 Subject: [PATCH 2/2] "Soft" Solidity to ^0.8.0 on libraries/math, libraries/configuration and libraries/helpers --- .../protocol/libraries/configuration/ReserveConfiguration.sol | 2 +- .../protocol/libraries/configuration/UserConfiguration.sol | 2 +- contracts/protocol/libraries/helpers/Errors.sol | 2 +- contracts/protocol/libraries/helpers/Helpers.sol | 2 +- contracts/protocol/libraries/math/MathUtils.sol | 2 +- contracts/protocol/libraries/math/PercentageMath.sol | 2 +- contracts/protocol/libraries/math/WadRayMath.sol | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/contracts/protocol/libraries/configuration/ReserveConfiguration.sol b/contracts/protocol/libraries/configuration/ReserveConfiguration.sol index b29007156..b9cbc4570 100644 --- a/contracts/protocol/libraries/configuration/ReserveConfiguration.sol +++ b/contracts/protocol/libraries/configuration/ReserveConfiguration.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: BUSL-1.1 -pragma solidity 0.8.10; +pragma solidity ^0.8.0; import {Errors} from '../helpers/Errors.sol'; import {DataTypes} from '../types/DataTypes.sol'; diff --git a/contracts/protocol/libraries/configuration/UserConfiguration.sol b/contracts/protocol/libraries/configuration/UserConfiguration.sol index cc9df4787..34ef2b506 100644 --- a/contracts/protocol/libraries/configuration/UserConfiguration.sol +++ b/contracts/protocol/libraries/configuration/UserConfiguration.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: BUSL-1.1 -pragma solidity 0.8.10; +pragma solidity ^0.8.0; import {Errors} from '../helpers/Errors.sol'; import {DataTypes} from '../types/DataTypes.sol'; diff --git a/contracts/protocol/libraries/helpers/Errors.sol b/contracts/protocol/libraries/helpers/Errors.sol index 89a576cd5..1dacaf392 100644 --- a/contracts/protocol/libraries/helpers/Errors.sol +++ b/contracts/protocol/libraries/helpers/Errors.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: BUSL-1.1 -pragma solidity 0.8.10; +pragma solidity ^0.8.0; /** * @title Errors library diff --git a/contracts/protocol/libraries/helpers/Helpers.sol b/contracts/protocol/libraries/helpers/Helpers.sol index 180d72a4d..06a37f611 100644 --- a/contracts/protocol/libraries/helpers/Helpers.sol +++ b/contracts/protocol/libraries/helpers/Helpers.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 {DataTypes} from '../types/DataTypes.sol'; diff --git a/contracts/protocol/libraries/math/MathUtils.sol b/contracts/protocol/libraries/math/MathUtils.sol index bd6e08382..825061d77 100644 --- a/contracts/protocol/libraries/math/MathUtils.sol +++ b/contracts/protocol/libraries/math/MathUtils.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: BUSL-1.1 -pragma solidity 0.8.10; +pragma solidity ^0.8.0; import {WadRayMath} from './WadRayMath.sol'; diff --git a/contracts/protocol/libraries/math/PercentageMath.sol b/contracts/protocol/libraries/math/PercentageMath.sol index 5306105b0..597521342 100644 --- a/contracts/protocol/libraries/math/PercentageMath.sol +++ b/contracts/protocol/libraries/math/PercentageMath.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: BUSL-1.1 -pragma solidity 0.8.10; +pragma solidity ^0.8.0; /** * @title PercentageMath library diff --git a/contracts/protocol/libraries/math/WadRayMath.sol b/contracts/protocol/libraries/math/WadRayMath.sol index dbe1a40d0..dbc8f21f1 100644 --- a/contracts/protocol/libraries/math/WadRayMath.sol +++ b/contracts/protocol/libraries/math/WadRayMath.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: BUSL-1.1 -pragma solidity 0.8.10; +pragma solidity ^0.8.0; /** * @title WadRayMath library