From 3f2d0b91c9971cf1e5eb28a38f7da9e8211f1cc1 Mon Sep 17 00:00:00 2001 From: patrick Date: Sat, 10 Dec 2022 11:31:22 -0500 Subject: [PATCH] Remove unused errors --- src/compound/MorphoGovernance.sol | 3 --- src/compound/PositionsManager.sol | 12 ------------ 2 files changed, 15 deletions(-) diff --git a/src/compound/MorphoGovernance.sol b/src/compound/MorphoGovernance.sol index 3099a79dd..f455b028b 100644 --- a/src/compound/MorphoGovernance.sol +++ b/src/compound/MorphoGovernance.sol @@ -112,9 +112,6 @@ abstract contract MorphoGovernance is MorphoUtils { /// ERRORS /// - /// @notice Thrown when the creation of a market failed on Compound. - error MarketCreationFailedOnCompound(); - /// @notice Thrown when the input is above the max basis points value (100%). error ExceedsMaxBasisPoints(); diff --git a/src/compound/PositionsManager.sol b/src/compound/PositionsManager.sol index aa34fefde..815e66036 100644 --- a/src/compound/PositionsManager.sol +++ b/src/compound/PositionsManager.sol @@ -125,18 +125,6 @@ contract PositionsManager is IPositionsManager, MatchingEngine { /// @notice Thrown when the amount repaid during the liquidation is above what is allowed to be repaid. error AmountAboveWhatAllowedToRepay(); - /// @notice Thrown when the borrow on Compound failed. - error BorrowOnCompoundFailed(); - - /// @notice Thrown when the redeem on Compound failed . - error RedeemOnCompoundFailed(); - - /// @notice Thrown when the repay on Compound failed. - error RepayOnCompoundFailed(); - - /// @notice Thrown when the mint on Compound failed. - error MintOnCompoundFailed(); - /// @notice Thrown when user is not a member of the market. error UserNotMemberOfMarket();