-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathError.sol
More file actions
28 lines (27 loc) · 820 Bytes
/
Error.sol
File metadata and controls
28 lines (27 loc) · 820 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.13;
library Error {
error NotWhitelistedAsset();
error NotConnectedAsset();
error InvalidAddress();
error InvalidAmount();
error NoZeroAmount();
error ReceiverAddressNotSet();
error ConnectedChainNotSet();
error NotEnoughBalance();
error StaleOraclePrice();
error PriceFeedNotSet();
error InvalidOraclePrice();
error OracleCallFailed();
error AmountSurpassesLTV();
error TransferFailed();
error InsufficientCollateralRemaining();
error CollateralExhausted();
error UserNotLiquidateable();
error InsufficientRepayAmount();
error FallbackUnsupported();
error InvalidPositionType();
error InvalidAssetDecimals();
error NoCollateralFoundForAsset();
error InvalidAssetPrice();
}