Error Reference
Complete reference of all custom errors in Flux Protocol contracts.
FluxVault Errors
InsufficientLiquidity
error InsufficientLiquidity(uint256 available, uint256 requested);Vault does not have enough idle assets for the requested operation.
When thrown:
Withdrawing more than available liquidity
Borrowing when vault is fully utilized
Resolution:
Wait for manager repayments
Use queued withdrawal
Try smaller amount
NotLiquidatable
error NotLiquidatable(address manager);Position is not eligible for liquidation.
When thrown:
Health ratio above liquidation threshold
Attempting to liquidate healthy position
Resolution:
Wait for position health to degrade
Verify liquidation threshold
InsufficientBond
Manager did not post sufficient bond for borrow amount.
When thrown:
Borrowing without enough collateral
Bond ratio below minimum
Resolution:
Increase bond amount
Reduce borrow amount
Unauthorized
Caller is not authorized for this operation.
When thrown:
Access policy restrictions
Manager-only functions
Owner-only functions
Resolution:
Check access policy
Use authorized address
ExcessiveDebt
Operation would exceed debt limits.
When thrown:
Borrowing beyond capacity
Debt ceiling reached
Resolution:
Repay existing debt
Wait for capacity increase
Strategy Errors
AssetNotAllowed
Asset is not in strategy's allowed assets list.
When thrown:
Attempting to use unauthorized asset
Asset not whitelisted
Resolution:
Use allowed assets only
Request asset to be added
InvalidParameter
Parameter value is invalid.
When thrown:
Setting parameters outside valid ranges
Incompatible parameter combinations
Resolution:
Check parameter constraints
Use valid values
Common Errors
ZeroAddress
Provided address is zero.
ZeroAmount
Provided amount is zero.
Expired
Operation deadline has passed.
Related Documentation
Last updated