Skip to content
This repository has been archived by the owner on Nov 22, 2021. It is now read-only.

fix: SPDX license identifier and missing peer dependencies #61

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1,165 changes: 510 additions & 655 deletions LICENSE

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion contracts/controllers/Controller.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-License-Identifier: MIT
/// SPDX-License-Identifier: SSPL-1.0

pragma solidity ^0.5.17;

Expand Down
2 changes: 1 addition & 1 deletion contracts/controllers/DelegatedController.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-License-Identifier: MIT
/// SPDX-License-Identifier: SSPL-1.0

pragma solidity ^0.5.17;

Expand Down
1 change: 1 addition & 0 deletions contracts/exploits/EvilGauge.sol
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/// SPDX-License-Identifier: SSPL-1.0
pragma solidity =0.5.17;

import "@openzeppelinV2/contracts/token/ERC20/IERC20.sol";
Expand Down
2 changes: 1 addition & 1 deletion contracts/registries/YRegistry.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-License-Identifier: MIT
/// SPDX-License-Identifier: SSPL-1.0

pragma solidity ^0.5.17;

Expand Down
2 changes: 1 addition & 1 deletion contracts/strategies/CurveYCRVVoter.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-License-Identifier: MIT
/// SPDX-License-Identifier: SSPL-1.0

pragma solidity ^0.5.17;

Expand Down
2 changes: 1 addition & 1 deletion contracts/strategies/StrategyCreamYFI.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-License-Identifier: MIT
/// SPDX-License-Identifier: SSPL-1.0

pragma solidity ^0.5.17;

Expand Down
1 change: 1 addition & 0 deletions contracts/strategies/StrategyCurve3CrvVoterProxy.sol
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/// SPDX-License-Identifier: SSPL-1.0
pragma solidity ^0.5.17;

import "@openzeppelinV2/contracts/token/ERC20/IERC20.sol";
Expand Down
2 changes: 1 addition & 1 deletion contracts/strategies/StrategyCurveBTCVoterProxy.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-License-Identifier: MIT
/// SPDX-License-Identifier: SSPL-1.0

pragma solidity ^0.5.17;

Expand Down
2 changes: 1 addition & 1 deletion contracts/strategies/StrategyCurveBUSDVoterProxy.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-License-Identifier: MIT
/// SPDX-License-Identifier: SSPL-1.0

pragma solidity ^0.5.17;

Expand Down
2 changes: 1 addition & 1 deletion contracts/strategies/StrategyCurveYVoterProxy.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-License-Identifier: MIT
/// SPDX-License-Identifier: SSPL-1.0

pragma solidity ^0.5.17;

Expand Down
2 changes: 1 addition & 1 deletion contracts/strategies/StrategyDAICurve.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-License-Identifier: MIT
/// SPDX-License-Identifier: SSPL-1.0

pragma solidity ^0.5.17;

Expand Down
2 changes: 1 addition & 1 deletion contracts/strategies/StrategyDForceUSDC.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-License-Identifier: MIT
/// SPDX-License-Identifier: SSPL-1.0

pragma solidity ^0.5.17;

Expand Down
2 changes: 1 addition & 1 deletion contracts/strategies/StrategyDForceUSDT.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-License-Identifier: MIT
/// SPDX-License-Identifier: SSPL-1.0

pragma solidity ^0.5.17;

Expand Down
1 change: 1 addition & 0 deletions contracts/strategies/StrategyMKRVaultDAIDelegate.sol
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/// SPDX-License-Identifier: SSPL-1.0
pragma solidity ^0.5.17;

import "@openzeppelinV2/contracts/token/ERC20/IERC20.sol";
Expand Down
2 changes: 1 addition & 1 deletion contracts/strategies/StrategyProxy.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-License-Identifier: MIT
/// SPDX-License-Identifier: SSPL-1.0

pragma solidity ^0.5.17;

Expand Down
2 changes: 1 addition & 1 deletion contracts/strategies/StrategyTUSDCurve.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-License-Identifier: MIT
/// SPDX-License-Identifier: SSPL-1.0

pragma solidity ^0.5.17;

Expand Down
2 changes: 1 addition & 1 deletion contracts/strategies/StrategyVaultUSDC.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-License-Identifier: MIT
/// SPDX-License-Identifier: SSPL-1.0

pragma solidity ^0.5.17;

Expand Down
2 changes: 1 addition & 1 deletion contracts/strategies/StrategyYFIGovernance.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-License-Identifier: MIT
/// SPDX-License-Identifier: SSPL-1.0

pragma solidity ^0.5.17;

Expand Down
3 changes: 2 additions & 1 deletion contracts/test/Token.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// SPDX-License-Identifier: MIT
/// SPDX-License-Identifier: SSPL-1.0

pragma solidity ^0.5.17;

import "@openzeppelinV2/contracts/token/ERC20/ERC20.sol";
Expand Down
1 change: 1 addition & 0 deletions contracts/utils/BTCOSMedianizer.sol
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/// SPDX-License-Identifier: SSPL-1.0
pragma solidity ^0.5.17;

import "@openzeppelinV2/contracts/math/SafeMath.sol";
Expand Down
1 change: 1 addition & 0 deletions contracts/utils/ETHOSMedianizer.sol
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/// SPDX-License-Identifier: SSPL-1.0
pragma solidity ^0.5.17;

import "../../interfaces/maker/OracleSecurityModule.sol";
Expand Down
1 change: 1 addition & 0 deletions contracts/vaults/yDelegatedVault.sol
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/// SPDX-License-Identifier: SSPL-1.0
pragma solidity ^0.5.17;

import "@openzeppelinV2/contracts/token/ERC20/IERC20.sol";
Expand Down
1 change: 1 addition & 0 deletions contracts/vaults/yVault.sol
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/// SPDX-License-Identifier: SSPL-1.0
pragma solidity ^0.5.17;

import "@openzeppelinV2/contracts/token/ERC20/IERC20.sol";
Expand Down
1 change: 1 addition & 0 deletions contracts/vaults/yWETH.sol
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/// SPDX-License-Identifier: SSPL-1.0
pragma solidity ^0.5.17;

import "@openzeppelinV2/contracts/token/ERC20/IERC20.sol";
Expand Down
1 change: 1 addition & 0 deletions interfaces/aave/Aave.sol
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/// SPDX-License-Identifier: SSPL-1.0
pragma solidity ^0.5.17;

interface Aave {
Expand Down
1 change: 1 addition & 0 deletions interfaces/aave/AaveToken.sol
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/// SPDX-License-Identifier: SSPL-1.0
pragma solidity ^0.5.17;

interface AaveToken {
Expand Down
1 change: 1 addition & 0 deletions interfaces/aave/LendingPoolAddressesProvider.sol
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/// SPDX-License-Identifier: SSPL-1.0
pragma solidity ^0.5.17;

interface LendingPoolAddressesProvider {
Expand Down
1 change: 1 addition & 0 deletions interfaces/aave/Oracle.sol
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/// SPDX-License-Identifier: SSPL-1.0
pragma solidity ^0.5.17;

interface Oracle {
Expand Down
2 changes: 1 addition & 1 deletion interfaces/compound/Token.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-License-Identifier: MIT
/// SPDX-License-Identifier: SSPL-1.0

pragma solidity ^0.5.17;

Expand Down
2 changes: 1 addition & 1 deletion interfaces/cream/Controller.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-License-Identifier: MIT
/// SPDX-License-Identifier: SSPL-1.0

pragma solidity ^0.5.17;

Expand Down
2 changes: 1 addition & 1 deletion interfaces/curve/Curve.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-License-Identifier: MIT
/// SPDX-License-Identifier: SSPL-1.0

pragma solidity ^0.5.17;

Expand Down
2 changes: 1 addition & 1 deletion interfaces/curve/Gauge.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-License-Identifier: MIT
/// SPDX-License-Identifier: SSPL-1.0

pragma solidity ^0.5.17;

Expand Down
2 changes: 1 addition & 1 deletion interfaces/curve/Mintr.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-License-Identifier: MIT
/// SPDX-License-Identifier: SSPL-1.0

pragma solidity ^0.5.17;

Expand Down
2 changes: 1 addition & 1 deletion interfaces/curve/VoteEscrow.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-License-Identifier: MIT
/// SPDX-License-Identifier: SSPL-1.0

pragma solidity ^0.5.17;

Expand Down
2 changes: 1 addition & 1 deletion interfaces/dforce/Rewards.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-License-Identifier: MIT
/// SPDX-License-Identifier: SSPL-1.0

pragma solidity ^0.5.17;

Expand Down
2 changes: 1 addition & 1 deletion interfaces/dforce/Token.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-License-Identifier: MIT
/// SPDX-License-Identifier: SSPL-1.0

pragma solidity ^0.5.17;

Expand Down
1 change: 1 addition & 0 deletions interfaces/maker/Maker.sol
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/// SPDX-License-Identifier: SSPL-1.0
pragma solidity ^0.5.17;

interface GemLike {
Expand Down
1 change: 1 addition & 0 deletions interfaces/maker/OracleSecurityModule.sol
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/// SPDX-License-Identifier: SSPL-1.0
pragma solidity ^0.5.17;

interface OracleSecurityModule {
Expand Down
2 changes: 1 addition & 1 deletion interfaces/uniswap/Uni.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-License-Identifier: MIT
/// SPDX-License-Identifier: SSPL-1.0

pragma solidity ^0.5.17;

Expand Down
1 change: 1 addition & 0 deletions interfaces/weth/WETH.sol
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/// SPDX-License-Identifier: SSPL-1.0
pragma solidity ^0.5.17;

interface WETH {
Expand Down
2 changes: 1 addition & 1 deletion interfaces/yearn/IController.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-License-Identifier: MIT
/// SPDX-License-Identifier: SSPL-1.0

pragma solidity ^0.5.17;

Expand Down
2 changes: 1 addition & 1 deletion interfaces/yearn/IConverter.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-License-Identifier: MIT
/// SPDX-License-Identifier: SSPL-1.0

pragma solidity ^0.5.17;

Expand Down
1 change: 1 addition & 0 deletions interfaces/yearn/IDelegatedVault.sol
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/// SPDX-License-Identifier: SSPL-1.0
pragma solidity ^0.5.17;

interface IDelegatedVault {
Expand Down
2 changes: 1 addition & 1 deletion interfaces/yearn/IGovernance.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-License-Identifier: MIT
/// SPDX-License-Identifier: SSPL-1.0

pragma solidity ^0.5.17;

Expand Down
2 changes: 1 addition & 1 deletion interfaces/yearn/IOneSplitAudit.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-License-Identifier: MIT
/// SPDX-License-Identifier: SSPL-1.0

pragma solidity ^0.5.17;

Expand Down
2 changes: 1 addition & 1 deletion interfaces/yearn/IProxy.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-License-Identifier: MIT
/// SPDX-License-Identifier: SSPL-1.0

pragma solidity ^0.5.17;

Expand Down
2 changes: 1 addition & 1 deletion interfaces/yearn/IStrategy.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-License-Identifier: MIT
/// SPDX-License-Identifier: SSPL-1.0

pragma solidity ^0.5.17;

Expand Down
2 changes: 1 addition & 1 deletion interfaces/yearn/IToken.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-License-Identifier: MIT
/// SPDX-License-Identifier: SSPL-1.0

pragma solidity ^0.5.17;

Expand Down
2 changes: 1 addition & 1 deletion interfaces/yearn/IVault.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-License-Identifier: MIT
/// SPDX-License-Identifier: SSPL-1.0

pragma solidity ^0.5.17;

Expand Down
2 changes: 1 addition & 1 deletion interfaces/yearn/IVoterProxy.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-License-Identifier: MIT
/// SPDX-License-Identifier: SSPL-1.0

pragma solidity ^0.5.17;

Expand Down
2 changes: 1 addition & 1 deletion interfaces/yearn/IWrappedVault.sol
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-License-Identifier: MIT
/// SPDX-License-Identifier: SSPL-1.0

pragma solidity ^0.5.17;

Expand Down
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,8 @@
"pre-commit": "yarn lint:fix",
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
}
},
"peerDependencies": {
"solium": "^1.0.0"
}
}
19 changes: 19 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2366,6 +2366,25 @@ [email protected]:
resolved "https://registry.yarnpkg.com/solium-plugin-security/-/solium-plugin-security-0.1.1.tgz#2a87bcf8f8c3abf7d198e292e4ac080284e3f3f6"
integrity sha512-kpLirBwIq4mhxk0Y/nn5cQ6qdJTI+U1LO3gpoNIcqNaW+sI058moXBe2UiHs+9wvF9IzYD49jcKhFTxcR9u9SQ==

solium@^1.0.0:
version "1.2.5"
resolved "https://registry.yarnpkg.com/solium/-/solium-1.2.5.tgz#d036c30e2901e22137bbf342f106b17529ff22a8"
integrity sha512-NuNrm7fp8JcDN/P+SAdM5TVa4wYDtwVtLY/rG4eBOZrC5qItsUhmQKR/YhjszaEW4c8tNUYhkhQcwOsS25znpw==
dependencies:
ajv "^5.2.2"
chokidar "^1.6.0"
colors "^1.1.2"
commander "^2.9.0"
diff "^3.5.0"
eol "^0.9.1"
js-string-escape "^1.0.1"
lodash "^4.14.2"
sol-digger "0.0.2"
sol-explore "1.6.1"
solium-plugin-security "0.1.1"
solparse "2.2.8"
text-table "^0.2.0"

[email protected]:
version "2.2.8"
resolved "https://registry.yarnpkg.com/solparse/-/solparse-2.2.8.tgz#d13e42dbed95ce32f43894f5ec53f00d14cf9f11"
Expand Down