From 61e19b0df9ebfdea07fbccdaa8c6b705957e812e Mon Sep 17 00:00:00 2001 From: Nelson Galdeman Date: Tue, 17 Jan 2023 12:04:48 +0000 Subject: [PATCH] chore: adds licence comment to avoid warnings --- contracts/DXswapDeployer.sol | 1 + contracts/DXswapERC20.sol | 1 + contracts/DXswapFactory.sol | 1 + contracts/DXswapFeeReceiver.sol | 1 + contracts/DXswapFeeSetter.sol | 1 + contracts/DXswapPair.sol | 1 + contracts/interfaces/IDXswapCallee.sol | 1 + contracts/interfaces/IDXswapERC20.sol | 1 + contracts/interfaces/IDXswapFactory.sol | 1 + contracts/interfaces/IDXswapPair.sol | 1 + contracts/interfaces/IERC20.sol | 1 + contracts/interfaces/IWETH.sol | 1 + contracts/libraries/Math.sol | 1 + contracts/libraries/SafeMath.sol | 1 + contracts/libraries/TransferHelper.sol | 1 + contracts/libraries/UQ112x112.sol | 1 + contracts/test/ERC20.sol | 1 + contracts/test/WETH9.sol | 1 + 18 files changed, 18 insertions(+) diff --git a/contracts/DXswapDeployer.sol b/contracts/DXswapDeployer.sol index 9810f7ce2..4d424fe3d 100644 --- a/contracts/DXswapDeployer.sol +++ b/contracts/DXswapDeployer.sol @@ -1,3 +1,4 @@ +//SPDX-License-Identifier: MIT pragma solidity =0.5.16; import './DXswapFactory.sol'; diff --git a/contracts/DXswapERC20.sol b/contracts/DXswapERC20.sol index cc6560150..ac4a21da6 100644 --- a/contracts/DXswapERC20.sol +++ b/contracts/DXswapERC20.sol @@ -1,3 +1,4 @@ +//SPDX-License-Identifier: MIT pragma solidity =0.5.16; import './interfaces/IDXswapERC20.sol'; diff --git a/contracts/DXswapFactory.sol b/contracts/DXswapFactory.sol index c31904449..2a159b1b1 100644 --- a/contracts/DXswapFactory.sol +++ b/contracts/DXswapFactory.sol @@ -1,3 +1,4 @@ +//SPDX-License-Identifier: MIT pragma solidity =0.5.16; import './interfaces/IDXswapFactory.sol'; diff --git a/contracts/DXswapFeeReceiver.sol b/contracts/DXswapFeeReceiver.sol index 4da2544fd..af32d2893 100644 --- a/contracts/DXswapFeeReceiver.sol +++ b/contracts/DXswapFeeReceiver.sol @@ -1,3 +1,4 @@ +//SPDX-License-Identifier: MIT pragma solidity =0.5.16; import './interfaces/IDXswapFactory.sol'; diff --git a/contracts/DXswapFeeSetter.sol b/contracts/DXswapFeeSetter.sol index 52f30976c..4a24c0f32 100644 --- a/contracts/DXswapFeeSetter.sol +++ b/contracts/DXswapFeeSetter.sol @@ -1,3 +1,4 @@ +//SPDX-License-Identifier: MIT pragma solidity =0.5.16; import './interfaces/IDXswapFactory.sol'; diff --git a/contracts/DXswapPair.sol b/contracts/DXswapPair.sol index c262bf11f..a758cd170 100644 --- a/contracts/DXswapPair.sol +++ b/contracts/DXswapPair.sol @@ -1,3 +1,4 @@ +//SPDX-License-Identifier: MIT pragma solidity =0.5.16; import './interfaces/IDXswapPair.sol'; diff --git a/contracts/interfaces/IDXswapCallee.sol b/contracts/interfaces/IDXswapCallee.sol index c12c46360..d47cea720 100644 --- a/contracts/interfaces/IDXswapCallee.sol +++ b/contracts/interfaces/IDXswapCallee.sol @@ -1,3 +1,4 @@ +//SPDX-License-Identifier: MIT pragma solidity >=0.5.0; interface IDXswapCallee { diff --git a/contracts/interfaces/IDXswapERC20.sol b/contracts/interfaces/IDXswapERC20.sol index de9a06f73..f8c4470b2 100644 --- a/contracts/interfaces/IDXswapERC20.sol +++ b/contracts/interfaces/IDXswapERC20.sol @@ -1,3 +1,4 @@ +//SPDX-License-Identifier: MIT pragma solidity >=0.5.0; interface IDXswapERC20 { diff --git a/contracts/interfaces/IDXswapFactory.sol b/contracts/interfaces/IDXswapFactory.sol index 70e606e30..9c8f5670a 100644 --- a/contracts/interfaces/IDXswapFactory.sol +++ b/contracts/interfaces/IDXswapFactory.sol @@ -1,3 +1,4 @@ +//SPDX-License-Identifier: MIT pragma solidity >=0.5.0; interface IDXswapFactory { diff --git a/contracts/interfaces/IDXswapPair.sol b/contracts/interfaces/IDXswapPair.sol index 86762f2f3..891b0b919 100644 --- a/contracts/interfaces/IDXswapPair.sol +++ b/contracts/interfaces/IDXswapPair.sol @@ -1,3 +1,4 @@ +//SPDX-License-Identifier: MIT pragma solidity >=0.5.0; interface IDXswapPair { diff --git a/contracts/interfaces/IERC20.sol b/contracts/interfaces/IERC20.sol index c1e8c3e65..1353cb479 100644 --- a/contracts/interfaces/IERC20.sol +++ b/contracts/interfaces/IERC20.sol @@ -1,3 +1,4 @@ +//SPDX-License-Identifier: MIT pragma solidity >=0.5.0; interface IERC20 { diff --git a/contracts/interfaces/IWETH.sol b/contracts/interfaces/IWETH.sol index 3e4436c4f..f5cd09323 100644 --- a/contracts/interfaces/IWETH.sol +++ b/contracts/interfaces/IWETH.sol @@ -1,3 +1,4 @@ +//SPDX-License-Identifier: MIT pragma solidity >=0.5.0; interface IWETH { diff --git a/contracts/libraries/Math.sol b/contracts/libraries/Math.sol index 1cab10d26..235065801 100644 --- a/contracts/libraries/Math.sol +++ b/contracts/libraries/Math.sol @@ -1,3 +1,4 @@ +//SPDX-License-Identifier: MIT pragma solidity =0.5.16; // a library for performing various math operations diff --git a/contracts/libraries/SafeMath.sol b/contracts/libraries/SafeMath.sol index f2fbe164f..7454901aa 100644 --- a/contracts/libraries/SafeMath.sol +++ b/contracts/libraries/SafeMath.sol @@ -1,3 +1,4 @@ +//SPDX-License-Identifier: MIT pragma solidity =0.5.16; // a library for performing overflow-safe math, courtesy of DappHub (https://github.com/dapphub/ds-math) diff --git a/contracts/libraries/TransferHelper.sol b/contracts/libraries/TransferHelper.sol index 1abe023fb..33d5f86b8 100644 --- a/contracts/libraries/TransferHelper.sol +++ b/contracts/libraries/TransferHelper.sol @@ -1,3 +1,4 @@ +//SPDX-License-Identifier: MIT pragma solidity =0.5.16; // helper methods for interacting with ERC20 tokens and sending ETH that do not consistently return true/false diff --git a/contracts/libraries/UQ112x112.sol b/contracts/libraries/UQ112x112.sol index a453f7278..36fd3ed10 100644 --- a/contracts/libraries/UQ112x112.sol +++ b/contracts/libraries/UQ112x112.sol @@ -1,3 +1,4 @@ +//SPDX-License-Identifier: MIT pragma solidity =0.5.16; // a library for handling binary fixed point numbers (https://en.wikipedia.org/wiki/Q_(number_format)) diff --git a/contracts/test/ERC20.sol b/contracts/test/ERC20.sol index dec310857..7b1117a70 100644 --- a/contracts/test/ERC20.sol +++ b/contracts/test/ERC20.sol @@ -1,3 +1,4 @@ +//SPDX-License-Identifier: MIT pragma solidity =0.5.16; import '../DXswapERC20.sol'; diff --git a/contracts/test/WETH9.sol b/contracts/test/WETH9.sol index 065b1c153..5c40ee223 100644 --- a/contracts/test/WETH9.sol +++ b/contracts/test/WETH9.sol @@ -13,6 +13,7 @@ // You should have received a copy of the GNU General Public License // along with this program. If not, see . +//SPDX-License-Identifier: MIT pragma solidity =0.5.16; contract WETH9 {