Skip to main content

For AI agents: the complete documentation index is at llms.txt. Markdown versions of pages are available by appending .md to the URL or sending Accept: text/markdown.

ErrorsLib

ErrorsLib​

Centralized library for reusable custom errors across the protocol.

NotAuthorized​

error NotAuthorized()

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​

NameTypeDescription
tokenaddressThe token address that is not whitelisted.

AmountMustBeGreaterThanZero​

error AmountMustBeGreaterThanZero(address asset)

The amount specified must be greater than zero.

Parameters​

NameTypeDescription
assetaddressThe 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​

NameTypeDescription
tokenaddressThe duplicate token address.

InsufficientAmount​

error InsufficientAmount()

Insufficient amount to complete the operation.

AdapterNotSet​

error AdapterNotSet()

Expected adapter address is not set.

PriceMustBeGreaterThanZero​

error PriceMustBeGreaterThanZero(address asset)

Price returned by the adapter must be greater than zero.

Parameters​

NameTypeDescription
assetaddressThe asset address that has a zero or invalid price.

InvalidUnderlyingDecimals​

error InvalidUnderlyingDecimals()

The underlying asset has an unsupported or invalid number of decimals.

InvalidArguments​

error InvalidArguments()

One or more function arguments are invalid.

InvalidAdapter​

error InvalidAdapter(address asset)

The adapter is not compatible with the asset.

Parameters​

NameTypeDescription
assetaddressThe asset address that is not compatible with the adapter.

SystemNotIdle​

error SystemNotIdle()

Operation cannot be performed because the system is not idle.

VaultDecommissioned​

error VaultDecommissioned()

Vault is decommissioned and cannot accept new requests.

BelowMinimumDeposit​

error BelowMinimumDeposit(uint256 amount, uint256 minimum)

The deposit amount is below the minimum required amount.

Parameters​

NameTypeDescription
amountuint256The amount that was provided.
minimumuint256The minimum amount required.

BelowMinimumRedeem​

error BelowMinimumRedeem(uint256 amount, uint256 minimum)

The redeem amount is below the minimum required amount.

Parameters​

NameTypeDescription
amountuint256The amount that was provided.
minimumuint256The minimum amount required.

DepositNotAllowed​

error DepositNotAllowed()

Deposit not allowed due to access control restrictions.

ShareHoldNotAllowed​

error ShareHoldNotAllowed()

Holding shares is not allowed due to access control restrictions.

ShareTransferNotAllowed​

error ShareTransferNotAllowed()

Share transfer not allowed due to access control restrictions.

SlippageExceeded​

error SlippageExceeded(address asset, uint256 actual, uint256 expected)

Slippage exceeds the configured tolerance.

Parameters​

NameTypeDescription
assetaddressThe asset address where slippage was detected.
actualuint256The actual value observed.
expecteduint256The expected value.

StalePrice​

error StalePrice(address asset)

Price data from oracle is stale or outdated.

Parameters​

NameTypeDescription
assetaddressThe asset whose price feed is stale.

InvalidPrice​

error InvalidPrice(address asset, int256 price)

Price returned from oracle is invalid (zero, negative, or uninitialized).

Parameters​

NameTypeDescription
assetaddressThe asset whose price is invalid.
priceint256The invalid price value returned.

PriceOutOfBounds​

error PriceOutOfBounds(address asset, uint256 price, uint256 min, uint256 max)

Price is outside acceptable bounds.

Parameters​

NameTypeDescription
assetaddressThe asset whose price is out of bounds.
priceuint256The price that exceeded bounds.
minuint256The minimum acceptable price.
maxuint256The maximum acceptable price.

CommitmentMismatch​

error CommitmentMismatch(bytes32 proofCommitment, bytes32 onchainCommitment)

Thrown when the zk proof's commitment doesn't match the onchain commitment.

Parameters​

NameTypeDescription
proofCommitmentbytes32The commitment from the zk proof.
onchainCommitmentbytes32The commitment from the onchain.

StrategistVaultAlreadyLinked​

error StrategistVaultAlreadyLinked()

Strategist is already linked to a vault and cannot be re-linked.