From cc6efd05c5d655bc401b7374d79fd6ecfd348667 Mon Sep 17 00:00:00 2001 From: gs8nrv <55771972+GuillaumeNervoXS@users.noreply.github.com> Date: Thu, 21 Sep 2023 12:05:19 +0200 Subject: [PATCH] chore: solidity compiler version upper than --- contracts/external/ProxyAdmin.sol | 2 +- contracts/interfaces/IAgToken.sol | 8 ++------ contracts/interfaces/ICore.sol | 2 +- contracts/interfaces/ITreasury.sol | 2 +- contracts/mock/MockCoreBorrow.sol | 2 +- contracts/mock/MockMerklGaugeMiddleman.sol | 2 +- contracts/mock/MockTreasury.sol | 2 +- 7 files changed, 8 insertions(+), 12 deletions(-) diff --git a/contracts/external/ProxyAdmin.sol b/contracts/external/ProxyAdmin.sol index 126bfd5..0b7b97d 100644 --- a/contracts/external/ProxyAdmin.sol +++ b/contracts/external/ProxyAdmin.sol @@ -1,6 +1,6 @@ // SPDX-License-Identifier: GPL-3.0 -pragma solidity 0.8.17; +pragma solidity ^0.8.17; import "./TransparentUpgradeableProxy.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; diff --git a/contracts/interfaces/IAgToken.sol b/contracts/interfaces/IAgToken.sol index ef60d7f..0f739bd 100644 --- a/contracts/interfaces/IAgToken.sol +++ b/contracts/interfaces/IAgToken.sol @@ -1,6 +1,6 @@ // SPDX-License-Identifier: GPL-3.0 -pragma solidity 0.8.17; +pragma solidity ^0.8.17; import "@openzeppelin/contracts-upgradeable/token/ERC20/IERC20Upgradeable.sol"; @@ -27,11 +27,7 @@ interface IAgToken is IERC20Upgradeable { /// @dev This method is to be called by a contract with the minter right after being requested /// to do so by a `sender` address willing to burn tokens from another `burner` address /// @dev The method checks the allowance between the `sender` and the `burner` - function burnFrom( - uint256 amount, - address burner, - address sender - ) external; + function burnFrom(uint256 amount, address burner, address sender) external; /// @notice Burns `amount` tokens from a `burner` address /// @param amount Amount of tokens to burn diff --git a/contracts/interfaces/ICore.sol b/contracts/interfaces/ICore.sol index f04ee09..2ebbc06 100644 --- a/contracts/interfaces/ICore.sol +++ b/contracts/interfaces/ICore.sol @@ -1,6 +1,6 @@ // SPDX-License-Identifier: GPL-3.0 -pragma solidity 0.8.17; +pragma solidity ^0.8.17; /// @title ICore /// @author Angle Labs, Inc. diff --git a/contracts/interfaces/ITreasury.sol b/contracts/interfaces/ITreasury.sol index 680cb52..7aabb25 100644 --- a/contracts/interfaces/ITreasury.sol +++ b/contracts/interfaces/ITreasury.sol @@ -1,6 +1,6 @@ // SPDX-License-Identifier: GPL-3.0 -pragma solidity 0.8.17; +pragma solidity ^0.8.17; import "./IAgToken.sol"; import "./ICore.sol"; diff --git a/contracts/mock/MockCoreBorrow.sol b/contracts/mock/MockCoreBorrow.sol index edef41b..d6b1001 100644 --- a/contracts/mock/MockCoreBorrow.sol +++ b/contracts/mock/MockCoreBorrow.sol @@ -1,6 +1,6 @@ // SPDX-License-Identifier: GPL-3.0 -pragma solidity 0.8.17; +pragma solidity ^0.8.17; contract MockCoreBorrow { mapping(address => bool) public governors; diff --git a/contracts/mock/MockMerklGaugeMiddleman.sol b/contracts/mock/MockMerklGaugeMiddleman.sol index bafd6f0..9b17d37 100644 --- a/contracts/mock/MockMerklGaugeMiddleman.sol +++ b/contracts/mock/MockMerklGaugeMiddleman.sol @@ -1,6 +1,6 @@ // SPDX-License-Identifier: GPL-3.0 -pragma solidity 0.8.17; +pragma solidity ^0.8.17; import "../middleman/MerklGaugeMiddleman.sol"; diff --git a/contracts/mock/MockTreasury.sol b/contracts/mock/MockTreasury.sol index b4f3051..388861c 100644 --- a/contracts/mock/MockTreasury.sol +++ b/contracts/mock/MockTreasury.sol @@ -1,6 +1,6 @@ // SPDX-License-Identifier: GPL-3.0 -pragma solidity 0.8.17; +pragma solidity ^0.8.17; contract MockTreasury { address public stablecoin;