From 64dacd78e4a484dbd8be6d8e679b6822ef75a418 Mon Sep 17 00:00:00 2001 From: George Carder Date: Mon, 25 Jul 2022 09:02:27 -0700 Subject: [PATCH] fix errors.json --- errors/errors.json | 336 +++++++++++++++++++++++---------------------- 1 file changed, 170 insertions(+), 166 deletions(-) diff --git a/errors/errors.json b/errors/errors.json index 8ddbef7e..e34a2bfd 100644 --- a/errors/errors.json +++ b/errors/errors.json @@ -1,8 +1,102 @@ [ + { + "contractId": "c992c0df3436", + "contractName": "PlatformProxyAdmin.sol" + }, + { + "contractId": "b3e5dea2190e", + "contractName": "Strategy.sol", + "errorcodes": { + "b3e5dea2190e00": "finalizeTimelock: timelock is not ready.", + "b3e5dea2190e01": "Router only", + "b3e5dea2190e02": "Cannot withdraw debt", + "b3e5dea2190e03": "0 amount", + "b3e5dea2190e04": "claimAll: caller must be controller or manager.", + "b3e5dea2190e05": "Manager already set", + "b3e5dea2190e06": "finalizeUpdateTradeData: timelock not ready.", + "b3e5dea2190e07": "Only StrategyProxyFactory" + } + }, + { + "contractId": "ee78cef3375d", + "contractName": "StrategyCommon.sol" + }, + { + "contractId": "1bb63a90056c", + "contractName": "StrategyController.sol", + "errorcodes": { + "1bb63a90056c00": "Sanity check that Library shares context.", + "1bb63a90056c01": "Not factory", + "1bb63a90056c02": "Strategy restructuring", + "1bb63a90056c03": "withdrawETH: call failed.", + "1bb63a90056c04": "Invalid adapter", + "1bb63a90056c05": "Timelock active", + "1bb63a90056c06": "Invalid structure", + "1bb63a90056c07": "No changes queued", + "1bb63a90056c08": "Timelock active", + "1bb63a90056c09": "Wrong category", + "1bb63a90056c0a": "Invalid structure", + "1bb63a90056c0b": "Timelock active", + "1bb63a90056c0c": "updateValue: category is RESTRUCTURE.", + "1bb63a90056c0d": "No changes queued", + "1bb63a90056c0e": "Wrong category", + "1bb63a90056c0f": "Timelock active", + "1bb63a90056c10": "Strategy already open", + "1bb63a90056c11": "Strategy already set", + "1bb63a90056c12": "Ambiguous amount", + "1bb63a90056c13": "Not balanced", + "1bb63a90056c14": "Too much slippage", + "1bb63a90056c15": "Out of bounds", + "1bb63a90056c16": "Fee too high", + "1bb63a90056c17": "Timelock is too long", + "1bb63a90056c18": "Not initialized", + "1bb63a90056c19": "Not approved", + "1bb63a90056c1a": "Not manager", + "1bb63a90056c1b": "Not manager", + "1bb63a90056c1c": "Strategy cannot change", + "1bb63a90056c1d": "Not WETH" + } + }, + { + "contractId": "dbc2b7686bf5", + "contractName": "StrategyControllerStorage.sol" + }, + { + "contractId": "f19f85f5ead4", + "contractName": "StrategyProxyAdmin.sol" + }, + { + "contractId": "676a717422f5", + "contractName": "StrategyProxyFactory.sol" + }, + { + "contractId": "89b89b5bfe68", + "contractName": "StrategyProxyFactoryStorage.sol" + }, + { + "contractId": "90dae108da2b", + "contractName": "StrategyToken.sol" + }, + { + "contractId": "ea334a07e51b", + "contractName": "StrategyTokenFees.sol" + }, + { + "contractId": "3d55eff30f48", + "contractName": "StrategyTokenStorage.sol" + }, + { + "contractId": "3218a8876422", + "contractName": "Whitelist.sol" + }, { "contractId": "dbdaf7ee2982", "contractName": "BaseAdapter.sol" }, + { + "contractId": "3b17cfcc5c47", + "contractName": "ProtocolAdapter.sol" + }, { "contractId": "9d5d2741081b", "contractName": "AaveV2DebtAdapter.sol" @@ -47,10 +141,6 @@ "contractId": "0da34511d7a3", "contractName": "CurveLPAdapter.sol" }, - { - "contractId": "3b17cfcc5c47", - "contractName": "ProtocolAdapter.sol" - }, { "contractId": "e61173344bc0", "contractName": "MetaStrategyAdapter.sol" @@ -104,116 +194,116 @@ "contractName": "StrategyControllerPaused.sol" }, { - "contractId": "dcc862dda0e3", - "contractName": "IAaveIncentivesController.sol" + "contractId": "91e8076401bf", + "contractName": "IBaseAdapter.sol" }, { - "contractId": "50f8a65c2df3", - "contractName": "IAToken.sol" + "contractId": "2ebf3ce0e034", + "contractName": "IERC20NonStandard.sol" }, { - "contractId": "c326af50ec41", - "contractName": "IDebtToken.sol" + "contractId": "906224e4c805", + "contractName": "IEstimator.sol" }, { - "contractId": "3d647fefe612", - "contractName": "ILendingPoolAddressesProvider.sol" + "contractId": "79db5b508d34", + "contractName": "IOracle.sol" }, { - "contractId": "273a4e18db0f", - "contractName": "ILendingPool.sol" + "contractId": "db3dccf77bac", + "contractName": "IProtocolOracle.sol" }, { - "contractId": "a0dcdefa851d", - "contractName": "IPriceOracleGetter.sol" + "contractId": "e72bd811e08a", + "contractName": "IRewardsAdapter.sol" }, { - "contractId": "da10e236a9f4", - "contractName": "IComptroller.sol" + "contractId": "e385ec642d7c", + "contractName": "IStrategy.sol" }, { - "contractId": "3ee5f64bb23f", - "contractName": "ICToken.sol" + "contractId": "4d75d9fd2891", + "contractName": "IStrategyController.sol" }, { - "contractId": "e27e5151c74b", - "contractName": "ICurveAddressProvider.sol" + "contractId": "f4d7cc0cbd2a", + "contractName": "IStrategyFees.sol" }, { - "contractId": "fdfe34fee4a5", - "contractName": "ICurveCrypto.sol" + "contractId": "6096fda362bb", + "contractName": "IStrategyManagement.sol" }, { - "contractId": "e85cc71ba224", - "contractName": "ICurveDeposit.sol" + "contractId": "30801c49821f", + "contractName": "IStrategyProxyFactory.sol" }, { - "contractId": "e9dcc83b52d8", - "contractName": "ICurveGauge.sol" + "contractId": "69f724b1c69c", + "contractName": "IStrategyRouter.sol" }, { - "contractId": "780f570fb009", - "contractName": "ICurveRegistry.sol" + "contractId": "763d337fbb62", + "contractName": "IStrategyToken.sol" }, { - "contractId": "166191cfc32f", - "contractName": "ICurveStableSwap.sol" + "contractId": "0902058bce5a", + "contractName": "IWhitelist.sol" }, { - "contractId": "91e8076401bf", - "contractName": "IBaseAdapter.sol" + "contractId": "50f8a65c2df3", + "contractName": "IAToken.sol" }, { - "contractId": "2ebf3ce0e034", - "contractName": "IERC20NonStandard.sol" + "contractId": "dcc862dda0e3", + "contractName": "IAaveIncentivesController.sol" }, { - "contractId": "906224e4c805", - "contractName": "IEstimator.sol" + "contractId": "c326af50ec41", + "contractName": "IDebtToken.sol" }, { - "contractId": "79db5b508d34", - "contractName": "IOracle.sol" + "contractId": "273a4e18db0f", + "contractName": "ILendingPool.sol" }, { - "contractId": "db3dccf77bac", - "contractName": "IProtocolOracle.sol" + "contractId": "3d647fefe612", + "contractName": "ILendingPoolAddressesProvider.sol" }, { - "contractId": "e72bd811e08a", - "contractName": "IRewardsAdapter.sol" + "contractId": "a0dcdefa851d", + "contractName": "IPriceOracleGetter.sol" }, { - "contractId": "4d75d9fd2891", - "contractName": "IStrategyController.sol" + "contractId": "3ee5f64bb23f", + "contractName": "ICToken.sol" }, { - "contractId": "f4d7cc0cbd2a", - "contractName": "IStrategyFees.sol" + "contractId": "da10e236a9f4", + "contractName": "IComptroller.sol" }, { - "contractId": "6096fda362bb", - "contractName": "IStrategyManagement.sol" + "contractId": "e27e5151c74b", + "contractName": "ICurveAddressProvider.sol" }, { - "contractId": "30801c49821f", - "contractName": "IStrategyProxyFactory.sol" + "contractId": "fdfe34fee4a5", + "contractName": "ICurveCrypto.sol" }, { - "contractId": "69f724b1c69c", - "contractName": "IStrategyRouter.sol" + "contractId": "e85cc71ba224", + "contractName": "ICurveDeposit.sol" }, { - "contractId": "e385ec642d7c", - "contractName": "IStrategy.sol" + "contractId": "e9dcc83b52d8", + "contractName": "ICurveGauge.sol" }, { - "contractId": "763d337fbb62", - "contractName": "IStrategyToken.sol" + "contractId": "780f570fb009", + "contractName": "ICurveRegistry.sol" }, { - "contractId": "0902058bce5a", - "contractName": "IWhitelist.sol" + "contractId": "166191cfc32f", + "contractName": "ICurveStableSwap.sol" }, { "contractId": "e06c798d2f53", @@ -255,14 +345,14 @@ "contractId": "d5648740c575", "contractName": "IIssuer.sol" }, - { - "contractId": "8f1163de284d", - "contractName": "ISynthetix.sol" - }, { "contractId": "96c19af48e5b", "contractName": "ISynth.sol" }, + { + "contractId": "8f1163de284d", + "contractName": "ISynthetix.sol" + }, { "contractId": "5308f6e26a33", "contractName": "IVirtualSynth.sol" @@ -315,6 +405,14 @@ "contractId": "3775cdcb37a0", "contractName": "ERC20Mock.sol" }, + { + "contractId": "b95559c962c2", + "contractName": "UniswapMock.sol" + }, + { + "contractId": "d42b479fa07f", + "contractName": "WethMock.sol" + }, { "contractId": "44602be1de22", "contractName": "IStakingRewards.sol" @@ -331,14 +429,6 @@ "contractId": "f81fb48f908c", "contractName": "StakingRewards.sol" }, - { - "contractId": "b95559c962c2", - "contractName": "UniswapMock.sol" - }, - { - "contractId": "d42b479fa07f", - "contractName": "WethMock.sol" - }, { "contractId": "1c40961e41f2", "contractName": "EnsoOracle.sol" @@ -407,10 +497,6 @@ "contractId": "6b1672987604", "contractName": "UniswapV3Registry.sol" }, - { - "contractId": "c992c0df3436", - "contractName": "PlatformProxyAdmin.sol" - }, { "contractId": "ce61f7e73fa0", "contractName": "BatchDepositRouter.sol" @@ -431,100 +517,18 @@ "contractId": "35530d527674", "contractName": "StrategyRouter.sol" }, - { - "contractId": "ee78cef3375d", - "contractName": "StrategyCommon.sol" - }, - { - "contractId": "1bb63a90056c", - "contractName": "StrategyController.sol", - "errorcodes": { - "1bb63a90056c00": "Sanity check that Library shares context.", - "1bb63a90056c01": "Not factory", - "1bb63a90056c02": "Strategy restructuring", - "1bb63a90056c03": "withdrawETH: call failed.", - "1bb63a90056c04": "Invalid adapter", - "1bb63a90056c05": "Timelock active", - "1bb63a90056c06": "Invalid structure", - "1bb63a90056c07": "No changes queued", - "1bb63a90056c08": "Timelock active", - "1bb63a90056c09": "Wrong category", - "1bb63a90056c0a": "Invalid structure", - "1bb63a90056c0b": "Timelock active", - "1bb63a90056c0c": "updateValue: category is RESTRUCTURE.", - "1bb63a90056c0d": "No changes queued", - "1bb63a90056c0e": "Wrong category", - "1bb63a90056c0f": "Timelock active", - "1bb63a90056c10": "Strategy already open", - "1bb63a90056c11": "Strategy already set", - "1bb63a90056c12": "Ambiguous amount", - "1bb63a90056c13": "Not balanced", - "1bb63a90056c14": "Too much slippage", - "1bb63a90056c15": "Out of bounds", - "1bb63a90056c16": "Fee too high", - "1bb63a90056c17": "Timelock is too long", - "1bb63a90056c18": "Not initialized", - "1bb63a90056c19": "Not approved", - "1bb63a90056c1a": "Not manager", - "1bb63a90056c1b": "Not manager", - "1bb63a90056c1c": "Strategy cannot change", - "1bb63a90056c1d": "Not WETH" - } - }, - { - "contractId": "dbc2b7686bf5", - "contractName": "StrategyControllerStorage.sol" - }, - { - "contractId": "f19f85f5ead4", - "contractName": "StrategyProxyAdmin.sol" - }, - { - "contractId": "676a717422f5", - "contractName": "StrategyProxyFactory.sol" - }, - { - "contractId": "89b89b5bfe68", - "contractName": "StrategyProxyFactoryStorage.sol" - }, - { - "contractId": "b3e5dea2190e", - "contractName": "Strategy.sol", - "errorcodes": { - "b3e5dea2190e00": "finalizeTimelock: timelock is not ready.", - "b3e5dea2190e01": "Router only", - "b3e5dea2190e02": "Cannot withdraw debt", - "b3e5dea2190e03": "0 amount", - "b3e5dea2190e04": "claimAll: caller must be controller or manager.", - "b3e5dea2190e05": "Manager already set", - "b3e5dea2190e06": "finalizeUpdateTradeData: timelock not ready.", - "b3e5dea2190e07": "Only StrategyProxyFactory" - } - }, - { - "contractId": "ea334a07e51b", - "contractName": "StrategyTokenFees.sol" - }, - { - "contractId": "90dae108da2b", - "contractName": "StrategyToken.sol" - }, - { - "contractId": "3d55eff30f48", - "contractName": "StrategyTokenStorage.sol" - }, { "contractId": "4ed253196e4a", "contractName": "Arbitrager.sol" }, - { - "contractId": "62e52f24d678", - "contractName": "BalancerRegistry.sol" - }, { "contractId": "07a8c36aa215", "contractName": "Balancer.sol" }, + { + "contractId": "62e52f24d678", + "contractName": "BalancerRegistry.sol" + }, { "contractId": "cddb89594569", "contractName": "FailAdapter.sol" @@ -561,6 +565,10 @@ "contractId": "c728f8ccc626", "contractName": "SushiswapFactory.sol" }, + { + "contractId": "9effd4c5cb9b", + "contractName": "TestBinaryTree.sol" + }, { "contractId": "48f342a7366c", "contractName": "UniswapNaiveOracle.sol" @@ -624,9 +632,5 @@ { "contractId": "98f9f325de21", "contractName": "Upgradable.sol" - }, - { - "contractId": "3218a8876422", - "contractName": "Whitelist.sol" } ]