From e2921a94bce643be61fbcd307c4e07d3bf1b8421 Mon Sep 17 00:00:00 2001 From: MathisGD <74971347+MathisGD@users.noreply.github.com> Date: Fri, 16 Feb 2024 17:23:05 +0100 Subject: [PATCH] refactor: remove useless errors Co-authored-by: Merlin Egalite <44097430+MerlinEgalite@users.noreply.github.com> Signed-off-by: MathisGD <74971347+MathisGD@users.noreply.github.com> --- src/libraries/ErrorsLib.sol | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/src/libraries/ErrorsLib.sol b/src/libraries/ErrorsLib.sol index 3f3420e..c9cdae8 100644 --- a/src/libraries/ErrorsLib.sol +++ b/src/libraries/ErrorsLib.sol @@ -1,8 +1,7 @@ // SPDX-License-Identifier: GPL-2.0-or-later pragma solidity ^0.8.0; -import {Id, MarketParams} from "../../lib/metamorpho/src/interfaces/IMetaMorpho.sol"; -import {Withdrawal} from "../interfaces/IPublicAllocator.sol"; +import {Id} from "../../lib/metamorpho/src/interfaces/IMetaMorpho.sol"; /// @title ErrorsLib /// @author Morpho Labs @@ -15,24 +14,12 @@ library ErrorsLib { /// @notice Thrown when the address passed is the zero address. error ZeroAddress(); - /// @notice Thrown when the allocation to market `id` exceeds current max inflow. - error InflowCapExceeded(Id id); - - /// @notice Thrown when the allocation from market `id` exceeds current max outflow. - error OutflowCapExceeded(Id id); - - /// @notice Thrown when flow configuration for market `id` has min flow > max flow. - error InconsistentFlowConfig(Id id); - /// @notice Thrown when the reallocation fee given is wrong. error IncorrectFee(); /// @notice Thrown when the supply cap has been exceeded on market `id` during a reallocation of funds. error PublicAllocatorSupplyCapExceeded(Id id); - /// @notice Thrown when the maximum uint128 is exceeded. - error MaxUint128Exceeded(); - /// @notice Thrown when the value is already set. error AlreadySet();