Skip to content

Commit

Permalink
refactor: remove useless errors
Browse files Browse the repository at this point in the history
Co-authored-by: Merlin Egalite <44097430+MerlinEgalite@users.noreply.github.com>
Signed-off-by: MathisGD <74971347+MathisGD@users.noreply.github.com>
  • Loading branch information
MathisGD and MerlinEgalite authored Feb 16, 2024
1 parent a1be09b commit e2921a9
Showing 1 changed file with 1 addition and 14 deletions.
15 changes: 1 addition & 14 deletions src/libraries/ErrorsLib.sol
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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();

Expand Down

0 comments on commit e2921a9

Please sign in to comment.