Solidity API
ErrorsLib
Centralized library for reusable custom errors across the protocol.
UnauthorizedAccess
error UnauthorizedAccess()
Caller is not authorized to perform the requested action.
ZeroAddress
error ZeroAddress()
Address parameter is the zero address.
AlreadyRegistered
error AlreadyRegistered()
Address or token is already registered or whitelisted.
InvalidAddress
error InvalidAddress()
Provided address is invalid for the specified context.
TokenNotWhitelisted
error TokenNotWhitelisted(address token)
Token is not whitelisted for the requested operation.
Parameters
Name | Type | Description |
---|---|---|
token | address | The token address that is not whitelisted. |
AmountMustBeGreaterThanZero
error AmountMustBeGreaterThanZero(address asset)
The amount specified must be greater than zero.
Parameters
Name | Type | Description |
---|---|---|
asset | address | The asset address associated with the amount. |
InvalidTotalWeight
error InvalidTotalWeight()
The total weight assigned to assets or allocations is invalid.
OrderIntentCannotBeEmpty
error OrderIntentCannotBeEmpty()
The order intent list is empty and must contain at least one entry.
TokenAlreadyInOrder
error TokenAlreadyInOrder(address token)
Token has already been added to the order intent list.
Parameters
Name | Type | Description |
---|---|---|
token | address | The duplicate token address. |
NotAuthorized
error NotAuthorized()
Caller is not authorized to perform this action.
TooEarly
error TooEarly()
Operation attempted before the required time or condition has been met.
InsufficientAmount
error InsufficientAmount()
Insufficient amount to complete the operation.
AdapterNotSet
error AdapterNotSet()
Expected adapter address is not set.
InvalidUnderlyingDecimals
error InvalidUnderlyingDecimals()
The underlying asset has an unsupported or invalid number of decimals.
InvalidArguments
error InvalidArguments()
One or more function arguments are invalid.
InvalidState
error InvalidState()
System is in an invalid or unexpected state.
SystemNotIdle
error SystemNotIdle()
Operation cannot be performed because the system is not idle.
TransferFailed
error TransferFailed()
Transfer of tokens failed.
SlippageExceeded
error SlippageExceeded()
Slippage tolerance exceeded during execution.