From 52e96330aa2fa0482e4a8daba1218b0ba5e7785a Mon Sep 17 00:00:00 2001 From: Mark Hinschberger Date: Wed, 25 Jan 2023 18:44:29 +0000 Subject: [PATCH] Add MIT license across contracts (#239) * add licenses across contracts * fix: Revert license change of StakedAave implementation --- LICENSE | 21 +++++++++++++++++++ .../GhoDiscountRateStrategy.sol | 2 +- .../GhoInterestRateStrategy.sol | 2 +- .../aave/mocks/EmptyDiscountRateStrategy.sol | 2 +- .../facilitators/aave/oracle/GhoOracle.sol | 2 +- .../interfaces/IGhoVariableDebtToken.sol | 2 +- .../facilitators/aave/tokens/GhoAToken.sol | 2 +- .../aave/tokens/GhoVariableDebtToken.sol | 2 +- .../tokens/base/ScaledBalanceTokenBase.sol | 2 +- .../aave/tokens/interfaces/IGhoAToken.sol | 2 +- .../interfaces/IGhoDiscountRateStrategy.sol | 2 +- .../interfaces/IGhoVariableDebtToken.sol | 2 +- .../flashMinter/GhoFlashMinter.sol | 2 +- .../interfaces/IGhoFlashMinter.sol | 2 +- .../flashMinter/mocks/MockFlashBorrower.sol | 2 +- src/contracts/gho/ERC20.sol | 2 +- src/contracts/gho/GhoToken.sol | 2 +- .../gho/interfaces/IERC20Burnable.sol | 2 +- .../gho/interfaces/IERC20Mintable.sol | 2 +- .../gho/interfaces/IGhoFacilitator.sol | 2 +- src/contracts/gho/interfaces/IGhoToken.sol | 2 +- 21 files changed, 41 insertions(+), 20 deletions(-) create mode 100644 LICENSE diff --git a/LICENSE b/LICENSE new file mode 100644 index 00000000..18a04830 --- /dev/null +++ b/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2023 Aave + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/src/contracts/facilitators/aave/interestStrategy/GhoDiscountRateStrategy.sol b/src/contracts/facilitators/aave/interestStrategy/GhoDiscountRateStrategy.sol index b9bc4585..093c5c2d 100644 --- a/src/contracts/facilitators/aave/interestStrategy/GhoDiscountRateStrategy.sol +++ b/src/contracts/facilitators/aave/interestStrategy/GhoDiscountRateStrategy.sol @@ -1,4 +1,4 @@ -// SPDX-License-Identifier: AGPL-3.0 +// SPDX-License-Identifier: MIT pragma solidity 0.8.10; import {WadRayMath} from '@aave/core-v3/contracts/protocol/libraries/math/WadRayMath.sol'; diff --git a/src/contracts/facilitators/aave/interestStrategy/GhoInterestRateStrategy.sol b/src/contracts/facilitators/aave/interestStrategy/GhoInterestRateStrategy.sol index 96f5ddfe..578d18b3 100644 --- a/src/contracts/facilitators/aave/interestStrategy/GhoInterestRateStrategy.sol +++ b/src/contracts/facilitators/aave/interestStrategy/GhoInterestRateStrategy.sol @@ -1,4 +1,4 @@ -// SPDX-License-Identifier: BUSL-1.1 +// SPDX-License-Identifier: MIT pragma solidity 0.8.10; import {DataTypes} from '@aave/core-v3/contracts/protocol/libraries/types/DataTypes.sol'; diff --git a/src/contracts/facilitators/aave/mocks/EmptyDiscountRateStrategy.sol b/src/contracts/facilitators/aave/mocks/EmptyDiscountRateStrategy.sol index 5199843d..ead9cd77 100644 --- a/src/contracts/facilitators/aave/mocks/EmptyDiscountRateStrategy.sol +++ b/src/contracts/facilitators/aave/mocks/EmptyDiscountRateStrategy.sol @@ -1,4 +1,4 @@ -// SPDX-License-Identifier: AGPL-3.0 +// SPDX-License-Identifier: MIT pragma solidity 0.8.10; import {IGhoDiscountRateStrategy} from '../tokens/interfaces/IGhoDiscountRateStrategy.sol'; diff --git a/src/contracts/facilitators/aave/oracle/GhoOracle.sol b/src/contracts/facilitators/aave/oracle/GhoOracle.sol index 1a55bfa4..79c54b9a 100644 --- a/src/contracts/facilitators/aave/oracle/GhoOracle.sol +++ b/src/contracts/facilitators/aave/oracle/GhoOracle.sol @@ -1,4 +1,4 @@ -// SPDX-License-Identifier: BUSL-1.1 +// SPDX-License-Identifier: MIT pragma solidity 0.8.10; /** diff --git a/src/contracts/facilitators/aave/stkAaveUpgrade/interfaces/IGhoVariableDebtToken.sol b/src/contracts/facilitators/aave/stkAaveUpgrade/interfaces/IGhoVariableDebtToken.sol index 7dd12e17..cb266850 100644 --- a/src/contracts/facilitators/aave/stkAaveUpgrade/interfaces/IGhoVariableDebtToken.sol +++ b/src/contracts/facilitators/aave/stkAaveUpgrade/interfaces/IGhoVariableDebtToken.sol @@ -1,4 +1,4 @@ -// SPDX-License-Identifier: AGPL-3.0 +// SPDX-License-Identifier: MIT pragma solidity 0.7.5; interface IGhoVariableDebtToken { diff --git a/src/contracts/facilitators/aave/tokens/GhoAToken.sol b/src/contracts/facilitators/aave/tokens/GhoAToken.sol index 3a5661c2..b23a67d3 100644 --- a/src/contracts/facilitators/aave/tokens/GhoAToken.sol +++ b/src/contracts/facilitators/aave/tokens/GhoAToken.sol @@ -1,4 +1,4 @@ -// SPDX-License-Identifier: BUSL-1.1 +// SPDX-License-Identifier: MIT pragma solidity 0.8.10; import {IERC20} from '@aave/core-v3/contracts/dependencies/openzeppelin/contracts/IERC20.sol'; diff --git a/src/contracts/facilitators/aave/tokens/GhoVariableDebtToken.sol b/src/contracts/facilitators/aave/tokens/GhoVariableDebtToken.sol index 703776cf..b327ffe5 100644 --- a/src/contracts/facilitators/aave/tokens/GhoVariableDebtToken.sol +++ b/src/contracts/facilitators/aave/tokens/GhoVariableDebtToken.sol @@ -1,4 +1,4 @@ -// SPDX-License-Identifier: BUSL-1.1 +// SPDX-License-Identifier: MIT pragma solidity 0.8.10; import {IERC20} from '@aave/core-v3/contracts/dependencies/openzeppelin/contracts/IERC20.sol'; diff --git a/src/contracts/facilitators/aave/tokens/base/ScaledBalanceTokenBase.sol b/src/contracts/facilitators/aave/tokens/base/ScaledBalanceTokenBase.sol index f7a4bdfb..1cab4d0e 100644 --- a/src/contracts/facilitators/aave/tokens/base/ScaledBalanceTokenBase.sol +++ b/src/contracts/facilitators/aave/tokens/base/ScaledBalanceTokenBase.sol @@ -1,4 +1,4 @@ -// SPDX-License-Identifier: AGPL-3.0 +// SPDX-License-Identifier: MIT pragma solidity 0.8.10; import {SafeCast} from '@aave/core-v3/contracts/dependencies/openzeppelin/contracts/SafeCast.sol'; diff --git a/src/contracts/facilitators/aave/tokens/interfaces/IGhoAToken.sol b/src/contracts/facilitators/aave/tokens/interfaces/IGhoAToken.sol index 251d38c9..23dcbd4e 100644 --- a/src/contracts/facilitators/aave/tokens/interfaces/IGhoAToken.sol +++ b/src/contracts/facilitators/aave/tokens/interfaces/IGhoAToken.sol @@ -1,4 +1,4 @@ -// SPDX-License-Identifier: AGPL-3.0 +// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import {IAToken} from '@aave/core-v3/contracts/interfaces/IAToken.sol'; diff --git a/src/contracts/facilitators/aave/tokens/interfaces/IGhoDiscountRateStrategy.sol b/src/contracts/facilitators/aave/tokens/interfaces/IGhoDiscountRateStrategy.sol index c3f08e6d..f64bf6d4 100644 --- a/src/contracts/facilitators/aave/tokens/interfaces/IGhoDiscountRateStrategy.sol +++ b/src/contracts/facilitators/aave/tokens/interfaces/IGhoDiscountRateStrategy.sol @@ -1,4 +1,4 @@ -// SPDX-License-Identifier: AGPL-3.0 +// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** diff --git a/src/contracts/facilitators/aave/tokens/interfaces/IGhoVariableDebtToken.sol b/src/contracts/facilitators/aave/tokens/interfaces/IGhoVariableDebtToken.sol index 2b2cc8e7..7bcf7e0d 100644 --- a/src/contracts/facilitators/aave/tokens/interfaces/IGhoVariableDebtToken.sol +++ b/src/contracts/facilitators/aave/tokens/interfaces/IGhoVariableDebtToken.sol @@ -1,4 +1,4 @@ -// SPDX-License-Identifier: AGPL-3.0 +// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import {IVariableDebtToken} from '@aave/core-v3/contracts/interfaces/IVariableDebtToken.sol'; diff --git a/src/contracts/facilitators/flashMinter/GhoFlashMinter.sol b/src/contracts/facilitators/flashMinter/GhoFlashMinter.sol index 5d56034a..6798b6bd 100644 --- a/src/contracts/facilitators/flashMinter/GhoFlashMinter.sol +++ b/src/contracts/facilitators/flashMinter/GhoFlashMinter.sol @@ -1,4 +1,4 @@ -// SPDX-License-Identifier: AGPL-3.0 +// SPDX-License-Identifier: MIT pragma solidity 0.8.10; import {IACLManager} from '@aave/core-v3/contracts/interfaces/IACLManager.sol'; diff --git a/src/contracts/facilitators/flashMinter/interfaces/IGhoFlashMinter.sol b/src/contracts/facilitators/flashMinter/interfaces/IGhoFlashMinter.sol index ef0b1778..64657371 100644 --- a/src/contracts/facilitators/flashMinter/interfaces/IGhoFlashMinter.sol +++ b/src/contracts/facilitators/flashMinter/interfaces/IGhoFlashMinter.sol @@ -1,4 +1,4 @@ -// SPDX-License-Identifier: AGPL-3.0 +// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import {IERC3156FlashLender} from '@openzeppelin/contracts/interfaces/IERC3156FlashLender.sol'; diff --git a/src/contracts/facilitators/flashMinter/mocks/MockFlashBorrower.sol b/src/contracts/facilitators/flashMinter/mocks/MockFlashBorrower.sol index 2255b767..3e23f4ab 100644 --- a/src/contracts/facilitators/flashMinter/mocks/MockFlashBorrower.sol +++ b/src/contracts/facilitators/flashMinter/mocks/MockFlashBorrower.sol @@ -1,4 +1,4 @@ -// SPDX-License-Identifier: AGPL-3.0 +// SPDX-License-Identifier: MIT pragma solidity 0.8.10; import {IERC20} from '@openzeppelin/contracts/token/ERC20/IERC20.sol'; diff --git a/src/contracts/gho/ERC20.sol b/src/contracts/gho/ERC20.sol index e9611342..16fc5edc 100644 --- a/src/contracts/gho/ERC20.sol +++ b/src/contracts/gho/ERC20.sol @@ -1,4 +1,4 @@ -// SPDX-License-Identifier: AGPL-3.0-only +// SPDX-License-Identifier: MIT-only pragma solidity ^0.8.0; import {IERC20} from '@openzeppelin/contracts/token/ERC20/IERC20.sol'; diff --git a/src/contracts/gho/GhoToken.sol b/src/contracts/gho/GhoToken.sol index 9039ac35..1067ffab 100644 --- a/src/contracts/gho/GhoToken.sol +++ b/src/contracts/gho/GhoToken.sol @@ -1,4 +1,4 @@ -// SPDX-License-Identifier: AGPL-3.0 +// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; diff --git a/src/contracts/gho/interfaces/IERC20Burnable.sol b/src/contracts/gho/interfaces/IERC20Burnable.sol index 91e28f00..c828aeb9 100644 --- a/src/contracts/gho/interfaces/IERC20Burnable.sol +++ b/src/contracts/gho/interfaces/IERC20Burnable.sol @@ -1,4 +1,4 @@ -// SPDX-License-Identifier: AGPL-3.0 +// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** diff --git a/src/contracts/gho/interfaces/IERC20Mintable.sol b/src/contracts/gho/interfaces/IERC20Mintable.sol index c4947681..b6651bd2 100644 --- a/src/contracts/gho/interfaces/IERC20Mintable.sol +++ b/src/contracts/gho/interfaces/IERC20Mintable.sol @@ -1,4 +1,4 @@ -// SPDX-License-Identifier: AGPL-3.0 +// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** diff --git a/src/contracts/gho/interfaces/IGhoFacilitator.sol b/src/contracts/gho/interfaces/IGhoFacilitator.sol index 7995035d..7171b41b 100644 --- a/src/contracts/gho/interfaces/IGhoFacilitator.sol +++ b/src/contracts/gho/interfaces/IGhoFacilitator.sol @@ -1,4 +1,4 @@ -// SPDX-License-Identifier: agpl-3.0 +// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /** diff --git a/src/contracts/gho/interfaces/IGhoToken.sol b/src/contracts/gho/interfaces/IGhoToken.sol index 4c2b55e8..3db783f9 100644 --- a/src/contracts/gho/interfaces/IGhoToken.sol +++ b/src/contracts/gho/interfaces/IGhoToken.sol @@ -1,4 +1,4 @@ -// SPDX-License-Identifier: AGPL-3.0 +// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import {IERC20} from '@openzeppelin/contracts/token/ERC20/IERC20.sol';