âError Codes
Permissions
Code | Error |
---|---|
000 | SENDER_NOT_FACTORY |
001 | SENDER_NOT_FACTORY_OWNER |
002 | SENDER_NOT_ADMIN |
003 | SENDER_NOT_ARBITRAGE_PARTNER |
004 | NON_VAULT_CALLER |
005 | SENDER_NOT_PARTNER |
007 | SENDER_NOT_FEE_ADDRESS |
008 | SENDER_NOT_ORDER_OWNER_OR_DELEGATE |
009 | CANNOT_TRANSFER_TO_SELF_OR_NULL |
010 | RECIPIENT_NOT_OWNER |
011 | CLEARED_ORDER |
A cleared order can be one that:
- was canceled
- was withdrawn after the expiry
- never existed (i.e. empty blockchain state in the future)
Modifiers
Code | Error |
---|---|
100 | POOL_PAUSED |
Configuration & Parameteriazation
Code | Error |
---|---|
201 | UNSUPPORTED_SWAP_KIND |
204 | INSUFFICIENT_LIQUIDITY |
206 | INCORRECT_POOL_ID |
208 | ZERO_SALES_RATE |
212 | NO_FUNDS_AVAILABLE |
223 | MAX_ORDER_LENGTH_EXCEEDED |
224 | NO_FEES_AVAILABLE |
225 | UNSUPPORTED_TOKEN_DECIMALS |
226 | NULL_RECIPIENT_ON_JOIN |
227 | CANT_CANCEL_COMPLETED_ORDER |
228 | MINIMUM_NOT_SATISFIED |
General
Code | Error |
---|---|
400 | VALUE_EXCEEDS_CONTAINER_SZ |
401 | OVERFLOW |
402 | UNDERFLOW |
403 | PARAM_ERROR |
Factory
Code | Error |
---|---|
500 | ZERO_TOKEN_ADDRESSES |
501 | IDENTICAL_TOKEN_ADDRESSES |
502 | EXISTING_POOL |
503 | INVALID_FACTORY_OWNER |
504 | INVALID_PENDING_OWNER |
505 | NON_EXISTING_POOL |
Periphery Relayer
Code | Error |
---|---|
600 | P_ETH_TRANSFER |
602 | P_NULL_USER_ADDRESS |
603 | P_INSUFFICIENT_LIQUIDITY |
604 | P_INSUFFICIENT_TOKEN_A_USER_BALANCE |
605 | P_INSUFFICIENT_TOKEN_B_USER_BALANCE |
606 | P_INVALID_POOL_TOKEN_AMOUNT |
607 | P_INSUFFICIENT_POOL_TOKEN_USER_BALANCE |
608 | P_INVALID_INTERVAL_AMOUNT |
609 | P_DELEGATE_WITHDRAW_RECIPIENT_NOT_OWNER |
610 | P_INVALID_OR_EXPIRED_ORDER_ID |
611 | P_WITHDRAW_BY_ORDER_OR_DELEGATE_ONLY |
612 | P_DELEGATE_CANCEL_RECIPIENT_NOT_OWNER |
613 | P_CANCEL_BY_ORDER_OR_DELEGATE_ONLY |
614 | P_INVALID_TOKEN_IN_ADDRESS |
615 | P_INVALID_TOKEN_OUT_ADDRESS |
616 | P_INVALID_POOL_TYPE |
617 | P_NON_EXISTING_POOL |
618 | P_INVALID_POOL_ADDRESS |
619 | P_INVALID_AMOUNT_IN |
620 | P_INSUFFICIENT_TOKEN_IN_USER_BALANCE |
621 | P_POOL_HAS_NO_LIQUIDITY |
622 | P_MAX_ORDER_LENGTH_EXCEEDED |
624 | P_NOT_IMPLEMENTED |
625 | P_MULTICALL_NOT_SUPPORTED |
Last updated