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
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
Resolution:
Caller is not authorized for this operation.
When thrown:
Access policy restrictions
Resolution:
Operation would exceed debt limits.
When thrown:
Borrowing beyond capacity
Resolution:
Wait for capacity increase
Strategy Errors
AssetNotAllowed
Asset is not in strategy's allowed assets list.
When thrown:
Attempting to use unauthorized asset
Resolution:
Request asset to be added
InvalidParameter
Parameter value is invalid.
When thrown:
Setting parameters outside valid ranges
Incompatible parameter combinations
Resolution:
Check parameter constraints
Provided address is zero.
Provided amount is zero.
Operation deadline has passed.
Last updated