Files
smom-dbis-138/archive/solidity/contracts/vault/errors/VaultErrors.sol
defiQUG 2b52cc6e32 refactor(archive): move historical contracts and adapters to archive directory
- Archived multiple non-EVM adapters (Algorand, Hedera, Tron, TON, Cosmos, Solana) and compliance contracts (IndyVerifier) to `archive/solidity/contracts/`.
- Updated documentation to reflect the historical status of archived components.
- Adjusted `foundry.toml` and `README.md` for clarity on historical dependencies and configurations.
- Enhanced Makefile and package.json scripts for improved contract testing and building processes.
- Removed obsolete contracts (AlltraCustomBridge, CommodityCCIPBridge, ISO4217WCCIPBridge, VaultBridgeAdapter) from the main directory.
- Updated implementation reports to indicate archived status for various components.
2026-04-12 18:21:05 -07:00

30 lines
730 B
Solidity

// SPDX-License-Identifier: MIT
pragma solidity ^0.8.20;
/**
* @notice Custom errors for vault system
*/
error ZeroAddress();
error ZeroAmount();
error AssetNotRegistered();
error AssetNotApproved();
error CurrencyNotApproved();
error InsufficientCollateral();
error InsufficientDebt();
error InsufficientDepositTokens();
error BorrowNotAllowed(bytes32 reasonCode);
error VaultNotLiquidatable();
error EntityNotRegistered();
error EntitySuspended();
error NotAuthorized();
error NotEligible();
error BelowMinCollateralization();
error DebtCeilingExceeded();
error InvalidLiquidationRatio();
error InvalidCreditMultiplier();
error InvalidWeight();
error FeedNotFound();
error StalePrice();
error InvalidPrice();
error Paused();