Errors
requireErrCode
Reverts if the specified condition is not true with the provided error code.
_WARNING: No checks of errorCodeD3 are performed for efficiency!
Parameters
Name
Type
Description
_condition
bool
A condition to test; must resolve to true to not revert.
_errorCodeD3
uint256
An 3 digit decimal error code to present if the condition resolves to false. Min. = 0, Max. = 999.
SENDER_NOT_FACTORY
SENDER_NOT_FACTORY_OWNER
SENDER_NOT_ADMIN
SENDER_NOT_ARBITRAGE_PARTNER
NON_VAULT_CALLER
SENDER_NOT_PARTNER
SENDER_NOT_FEE_ADDRESS
SENDER_NOT_ORDER_OWNER_OR_DELEGATE
CANNOT_TRANSFER_TO_SELF_OR_NULL
RECIPIENT_NOT_OWNER
CLEARED_ORDER
POOL_PAUSED
UNSUPPORTED_SWAP_KIND
INSUFFICIENT_LIQUIDITY
INCORRECT_POOL_ID
ZERO_SALES_RATE
NO_FUNDS_AVAILABLE
MAX_ORDER_LENGTH_EXCEEDED
NO_FEES_AVAILABLE
UNSUPPORTED_TOKEN_DECIMALS
NULL_RECIPIENT_ON_JOIN
CANT_CANCEL_COMPLETED_ORDER
MINIMUM_NOT_SATISFIED
VALUE_EXCEEDS_CONTAINER_SZ
OVERFLOW
UNDERFLOW
PARAM_ERROR
ZERO_TOKEN_ADDRESSES
IDENTICAL_TOKEN_ADDRESSES
EXISTING_POOL
INVALID_FACTORY_OWNER
INVALID_PENDING_OWNER
NON_EXISTING_POOL
P_ETH_TRANSFER
P_NULL_USER_ADDRESS
P_INSUFFICIENT_LIQUIDITY
P_INSUFFICIENT_TOKEN_A_USER_BALANCE
P_INSUFFICIENT_TOKEN_B_USER_BALANCE
P_INVALID_POOL_TOKEN_AMOUNT
P_INSUFFICIENT_POOL_TOKEN_USER_BALANCE
P_INVALID_INTERVAL_AMOUNT
P_DELEGATE_WITHDRAW_RECIPIENT_NOT_OWNER
P_INVALID_OR_EXPIRED_ORDER_ID
P_WITHDRAW_BY_ORDER_OR_DELEGATE_ONLY
P_DELEGATE_CANCEL_RECIPIENT_NOT_OWNER
P_CANCEL_BY_ORDER_OR_DELEGATE_ONLY
P_INVALID_TOKEN_IN_ADDRESS
P_INVALID_TOKEN_OUT_ADDRESS
P_INVALID_POOL_TYPE
P_NON_EXISTING_POOL
P_INVALID_POOL_ADDRESS
P_INVALID_AMOUNT_IN
P_INSUFFICIENT_TOKEN_IN_USER_BALANCE
P_POOL_HAS_NO_LIQUIDITY
P_MAX_ORDER_LENGTH_EXCEEDED
P_NOT_IMPLEMENTED
P_MULTICALL_NOT_SUPPORTED
Last updated