-
Notifications
You must be signed in to change notification settings - Fork 21
/
Copy patherrors.json
289 lines (266 loc) · 18.3 KB
/
errors.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
{
"LA-LIZA-01": "LzApp: endpoint cannot be zero address(0)",
"LA-DCNT-01": "LzApp: destination chain is not a trusted source",
"CA-FINS-01": "CelerApp: this bridge implementation doesn't support this functionality",
"CA-CINM-01": "CelerApp: caller is not message bus",
"GS-ASBTZ-02": "GasStation: gasAmount must be greater than 0 in setGasAmount",
"GS-ASBTZ-03": "GasStation: gasAmount must be greater than 0 in withdrawNative",
"GS-ASBTZ-04": "GasStation: amount of gas request should be <= gasAmount",
"GS-ZADDR-01": "GasStation: cannot request gas to zero address(0)",
"GS-FAIL-01": "GasStation: send failed in requestGas",
"GS-FAIL-02": "GasStation: send failed in withdrawNative",
"GS-NFUN-01": "GasStation: unknown function call",
"P-OACC-01": "Portfolio: admin account needed for this function",
"P-OACC-02": "Portfolio: address can not be address(0)",
"P-OACC-03": "Portfolio: only TradePairs contract call this function",
"P-OACC-04": "Portfolio: only TradePairs contract or admin can call this function",
"P-ALOA-01": "Portfolio: at least one account needed in admin group",
"P-ALOA-02": "Portfolio: can not remove PortfolioBridge from PORTFOLIO_BRIDGE_ROLE, use setPortfolioBridge function instead",
"P-NTDP-01": "Portfolio: deposits paused",
"P-OOWN-01": "Portfolio: only owner can withdraw native token",
"P-OOWN-02": "Portfolio: only owner can deposit native token",
"P-WNFA-01": "Portfolio: withdrawNative failed",
"P-OODT-01": "Portfolio: only owner can deposit erc20 tokens",
"P-ZETD-01": "Portfolio: zero erc20 token quantity",
"P-GSRO-01": "Portfolio: gasSwapRatio needs to be > 0",
"P-ETNS-01": "Portfolio: token is not supported in the subnet",
"P-ETNS-02": "Portfolio: token is not supported in the host chain",
"P-DOTS-01": "Portfolio: origin and destination adressess should be different",
"P-NETD-01": "Portfolio: not enough ERC20 token balance to deposit",
"P-OOWT-01": "Portfolio: only owner can withdraw ERC20 tokens",
"P-AFNE-01": "Portfolio: available funds not enough",
"P-AFNE-02": "Portfolio: available funds not enough",
"P-TFNE-01": "Portfolio: total funds not enough",
"P-TNEF-01": "Portfolio: transaction amount not enough to cover fees",
"P-TAEX-01": "Portfolio: token already exists",
"P-SCEM-01": "Portfolio: source Chain Id should be the same as specified in Portfolio Main",
"P-ZADDR-01": "Portfolio: token address cannot be zero address(0)",
"P-ZADDR-02": "Portfolio: trader address cannot be zero address(0)",
"P-NZBL-01": "Portfolio: cannot remove token if there is non-zero balance",
"P-BLTH-01": "Portfolio: subnet wallet balance (Gas Tank) under threshold",
"P-DUTH-01": "Portfolio: deposit under threshold",
"P-WUTH-01": "Portfolio: withdraw under threshold",
"P-CNFF-01": "Portfolio: collect native fee failed",
"P-CNAT-01": "Portfolio: cannot add 0 decimals token",
"P-OWTF-01": "Portfolio: can only withdraw from treasury or feeAddress",
"P-AUCT-01": "Portfolio: can not withdraw/transfer auction token before auction is finalized",
"P-TSDM-01": "Portfolio: token symbols do not match",
"P-TDDM-01": "Portfolio: Token decimals do not match",
"P-PTNS-01": "Portfolio: main processXFerPayload transaction not supported",
"P-PTNS-02": "Portfolio: sub processXFerPayload transaction not supported",
"P-TTNZ-01": "Portfolio: tokanTotals needs to be 0",
"T-POOA-01": "Portfolio: Only PO(PostOnly) Orders allowed for this pair",
"P-AMVL-01": "Portfolio: amount cannot be more than total value locked",
"P-BANA-01": "Portfolio: account banned",
"P-MDML-01": "Portfolio: minimum deposit multipler can not be less than 10 (10/10)",
"P-NFUN-01": "Portfolio: unknown function call",
"P-TNBC-01": "Portfolio: token not been converted",
"P-LENM-01": "Portfolio: length mismatch in array type function parameters",
"P-MTNZ-01": "Portfolio: min taker rate can not be 0",
"P-NDNS-01": "Portfolio: native deposits not supported",
"PB-OACC-01": "PortfolioBridge: admin account or PORTFOLIO_ROLE needed for this function",
"PB-RBNE-01": "PortfolioBridge: requested bridge not enabled",
"PB-RBNE-03": "PortfolioBridge: requested bridge not enabled for bridge fee",
"PB-DBCD-01": "PortfolioBridge: default bridge can not be disabled",
"PB-DDNS-01": "PortfolioBridge: destination not found when calling getTokenId",
"PB-DDNS-02": "PortfolioBridge: destination not found when calling sendXChainMessageInternal",
"PB-DDNZ-01": "PortfolioBridge: default destination chain id must be non zero",
"PB-ALOA-01": "PortfolioBridge: at least one account needed in admin group",
"PB-ALOA-02": "PortfolioBridge: can not remove Portfolio from PORTFOLIO_ROLE, use setPortfolio instead",
"PB-FRFD-01": "PortfolioBridge: failed to refund",
"PB-CBIZ-01": "PortfolioBridge: balance of this contract is 0, send gas for message fees",
"PB-CBIZ-02": "PortfolioBridge: balance of this contract is 0, send gas for message fees",
"PB-CSDE-01": "PortfolioBridge: destination for celerSend is not allowed",
"PB-IVEC-01": "PortfolioBridge: invalid endpoint caller",
"PB-SINA-01": "PortfolioBridge: source not allowed",
"PB-NFUN-01": "PortfolioBridge: unknown function call",
"PB-LENM-01": "PortfolioBridge: length mismatch in array type function parameters",
"PB-DTAE-01": "PortfolioBridge: delayed transfer already exists",
"PB-DTNE-01": "PortfolioBridge: delayed transfer does not exist",
"PB-DTSL-01": "PortfolioBridge: delayed transfer still locked",
"PB-VCAP-01": "PortfolioBridge: volume exceeds cap",
"PB-TAEX-01": "PortfolioBridge: token already exists",
"PB-SDMP-01": "PortfolioBridge: symbol doesn't match Portfolio's common symbol",
"PB-MING-01": "PortfolioBridge: gas can not be less than 200000 minimum gas required",
"PB-ETNS-01": "PortfolioBridge: erc20 token is not supported",
"PB-INVT-01": "PortfolioBridge: target chain does not have enough inventory to cover this withdrawal",
"PB-INVZ-01": "PortfolioBridge: inventoryBySymbolId needs to be 0",
"PB-UFPE-01": "PortfolioBridge: user fee payer address does not exist",
"PB-UFPR-01": "PortfolioBridge: user gas fee not necessary and refund failed",
"PB-CCTR-01": "PortfolioBridge: CCTRADE is not a valid transaction type in the subnet",
"PB-CCTR-02": "PortfolioBridge: symbol not allowed for CCTRADE at destination",
"PB-CCTR-03": "PortfolioBridge: can only receive non-virtual tokens with CCTRADE",
"PB-VTNS-01": "PortfolioBridge: virtual tokens can not be withdrawn",
"PB-IUMF-01": "PortfolioBridge: insufficient user message fee received",
"PB-BCNE-01": "PortfolioBridge: bridge contract not enabled",
"PB-MPGT-01": "PortfolioBridge: bridge fee multipler is greater than 100%",
"PB-OBSA-01": "PortfolioBridge: old bridge provider still active",
"PM-ZADD-01": "PortfolioMinter: cannot initialize with 0 address",
"PM-ZAMT-01": "PortfolioMinter: mint amount must be greater than 0",
"PM-NFUN-01": "PortfolioMinter: unknown function call",
"T-OACC-01": "TradePairs: admin account needed for this function",
"T-LONR-01": "TradePairs: Limit order type cannot be removed",
"T-PPAU-01": "TradePairs: Pair paused",
"T-PPAU-02": "TradePairs: cancelOrder pair paused",
"T-PPAU-04": "TradePairs: Pair should be paused for this operation",
"T-AOPA-01": "TradePairs: addOrderPaused paused",
"T-IVOT-01": "TradePairs: invalid order type",
"T-LTMT-01": "TradePairs: trade amount is less than minTradeAmount for the tradePair",
"T-MTMT-01": "TradePairs: trade amount is more than maxTradeAmount for the tradePair",
"T-OOCC-01": "TradePairs: only owner of the order can cancel",
"T-OOCC-02": "TradePairs: only owner of the order can cancel",
"T-OAEX-01": "TradePairs: order is already executed and cannot be canceled",
"T-TMDQ-01": "TradePairs: too many decimals in the quantity",
"T-TMDP-01": "TradePairs: too many decimals in the price",
"T-CLOI-01": "TradePairs: client order id has to be unique per trader",
"T-T2PO-01": "TradePairs: Post Only order is not allowed to be a taker",
"T-OOCA-01": "TradePairs: only msg.sender can add orders",
"T-RMTP-01": "TradePairs: orderbook has to be empty to remove the tradePair",
"T-MPNA-01": "TradePairs: mirror pair not allowed",
"T-MNOE-01": "TradePairs: max number of fills has to be at least 10",
"T-AUCT-01": "TradePairs: auction mode should be set to MATCHING",
"T-AUCT-02": "TradePairs: too many decimals in the auction price",
"T-AUCT-03": "TradePairs: auction price should be > 0 before matchAuctionOrders",
"T-AUCT-04": "TradePairs: market orders not allowed in auction mode",
"T-AUCT-05": "TradePairs: setAuctionMode can not turn on live trading when orderbook is crossed",
"T-STPR-01": "TradePairs: order cancled due to self trade prevention",
"T-USCL-01": "TradePairs: unsolicited cancel from exchange",
"T-FOKF-01": "TradePairs: FOK order can't be fully filled. Tx reverted",
"E-OIZA-01": "Exchange: address can not be address(0)",
"E-OACC-01": "Exchange: default or auction admin account needed",
"E-OACC-02": "Exchange: default admin account needed for pauseTradePair",
"E-OACC-03": "Exchange: auction account needed for pauseTradePair",
"E-OACC-04": "Exchange: AuctionAmin can only perform this operation on a TradePair that is in auction",
"E-ALOA-01": "Exchange: at least one account needed in admin group",
"E-NFUN-01": "Exchange: unknown function call",
"E-TNAP-01": "Exchange: tokens need to be added to portfolio first",
"E-TNSA-01": "Exchange: token in portfolio is not in the same auction mode/quote token can never be in auction",
"R-TIEM-01": "RBTLibrary: target is empty",
"R-TIEM-02": "RBTLibrary: target is empty",
"R-KDNE-01": "RBTLibrary: key does not exist",
"R-KDNE-02": "RBTLibrary: key does not exist",
"R-KIEM-01": "RBTLibrary: key is empty",
"R-KIEM-02": "RBTLibrary: key is empty",
"R-KEXI-01": "RBTLibrary: key exists",
"RF-QE-01": "MainnetRFQ: quote expired due to manual override",
"RF-QE-02": "MainnetRFQ: quote expired due to block ts",
"RF-IN-01": "MainnetRFQ: invalid nonce",
"RF-IN-02": "MainnetRFQ: invalid nonce on xChain destination",
"RF-IMS-01": "MainnetRFQ: invalid msg.sender",
"RF-IS-01": "MainnetRFQ: invalid order signature",
"RF-TF-01": "MainnetRFQ: transfer failed",
"RF-TF-02": "MainnetRFQ: transfer failed",
"RF-IMV-01": "MainnetRFQ: invalid msg.value",
"RF-SAZ-01": "MainnetRFQ: set address to zero",
"RF-ALOA-01": "MainnetRFQ: at least one account needed in admin group",
"RF-OCR-01": "MainnetRFQ: only callable by rebalancer",
"RF-BCAM-01": "MainnetRFQ: batch claim array mismatch",
"RF-PTNS-01": "MainnetRFQ: main processXFerPayload transaction not supported",
"RF-ZADDR-01": "MainnetRFQ: trader address cannot be zero address(0)",
"RF-ZETD-01": "MainnetRFQ: zero erc20 token quantity",
"RF-INVT-01": "MainnetRFQ: target chain does not have enough inventory to remove the xChainSwap from the queue",
"RF-DTNF-01": "MainnetRFQ: destination token not found",
"RF-STTA-01": "MainnetRFQ: slippage tolerance too aggressive",
"S-CNSZ-01": "Staking: cannot stake 0",
"S-SHBP-01": "Staking: staking has been paused",
"S-SHBP-02": "Staking: staking has been paused",
"S-PHBE-01": "Staking: period has been ended",
"S-CNWZ-01": "Staking: cannot withdraw 0 amount",
"S-CNWM-01": "Staking: cannot withdraw more than staked",
"S-RCNZ-01": "Staking: reward rate cannot be zero",
"S-DMBC-01": "Staking: previous rewards period must be complete before changing the duration for the new period",
"A-CNET-01": "Airdrop: contract does not have enough tokens",
"A-MPNV-01": "Airdrop: Merkle proof is not valid for claim",
"A-TOOE-01": "Airdrop: too early",
"A-NTAD-01": "Airdrop: no tokens are due for claim",
"A-MPNV-02": "Airdrop: Merkle proof is not valid for releasableAmount",
"A1-CNET-01": "AirdropV1: contract does not have enough tokens",
"A1-MPNV-01": "AirdropV1: Merkle proof is not valid",
"A1-THAC-01": "AirdropV1: tokens have already been claimed",
"TV1-BIZA-01": "TokenVestingV1: beneficiary is the zero address",
"TV1-CLTD-01": "TokenVestingV1: cliff is longer than duration",
"TV1-DISZ-01": "TokenVestingV1: duration is too short",
"TV1-FTBC-01": "TokenVestingV1: final time is before current time",
"TV1-PDBS-01": "TokenVestingV1: portfolio deposits begins after start",
"TV1-PGTZ-01": "TokenVestingV1: percentage is greater than 100",
"TV1-PIZA-01": "TokenVestingV1: portfolio is the zero address",
"TV1-PGTZ-02": "TokenVestingV1: percentage is greater than 100",
"TV1-PIZA-02": "TokenVestingV1: portfolio is the zero address",
"TV1-NBOC-01": "TokenVestingV1: no balance on the contract",
"TV1-TEAR-01": "TokenVestingV1: too early",
"TV1-NTAD-01": "TokenVestingV1: no tokens are due",
"TV1-OPDA-01": "TokenVestingV1: only possible during auction",
"TV1-NTAD-02": "TokenVestingV1: no tokens are due",
"TV1-CNTR-01": "TokenVestingV1: cannot revoke",
"TV1-TKAR-01": "TokenVestingV1: token already revoked",
"TV1-TKNR-01": "TokenVestingV1: token not revoked",
"TV-BIZA-01": "TokenVesting: beneficiary is the zero address",
"TV-CLTD-01": "TokenVesting: cliff is longer than duration",
"TV-DISZ-01": "TokenVesting: duration is too short",
"TV-PISZ-01": "TokenVesting: period is too short",
"TV-FTBC-01": "TokenVesting: final time is before current time",
"TV-PDBS-01": "TokenVesting: portfolio deposits begins after start",
"TV-PGTZ-01": "TokenVesting: percentage is greater than 100",
"TV-PIZA-01": "TokenVesting: portfolio is the zero address",
"TV-PGTZ-02": "TokenVesting: percentage is greater than 100",
"TV-PIZA-02": "TokenVesting: portfolio is the zero address",
"TV-NBOC-01": "TokenVesting: no balance on the contract",
"TV-TEAR-01": "TokenVesting: too early",
"TV-NTAD-01": "TokenVesting: no tokens are due",
"TV-OPDA-01": "TokenVesting: only possible during auction",
"TV-NTAD-02": "TokenVesting: no tokens are due",
"TV-CNTR-01": "TokenVesting: cannot revoke",
"TV-TKAR-01": "TokenVesting: token already revoked",
"TV-TKNR-01": "TokenVesting: token not revoked",
"TVCF-IOOB-01": "TokenVestingCloneFactory: index is out of bounds",
"TVC-BIZA-01": "TokenVestingCloneable: beneficiary is the zero address",
"TVC-CLTD-01": "TokenVestingCloneable: cliff is longer than duration",
"TVC-DISZ-01": "TokenVestingCloneable: duration is too short",
"TVC-PISZ-01": "TokenVestingCloneable: period is too short",
"TVC-FTBC-01": "TokenVestingCloneable: final time is before current time",
"TVC-PDBS-01": "TokenVestingCloneable: portfolio deposits begins after start",
"TVC-PGTZ-01": "TokenVestingCloneable: percentage is greater than 100",
"TVC-PIZA-01": "TokenVestingCloneable: portfolio is the zero address",
"TVC-OIZA-01": "TokenVestingCloneable: owner is the zero address",
"TVC-PGTZ-02": "TokenVestingCloneable: percentage is greater than 100",
"TVC-PIZA-02": "TokenVestingCloneable: portfolio is the zero address",
"TVC-NBOC-01": "TokenVestingCloneable: no balance on the contract",
"TVC-TEAR-01": "TokenVestingCloneable: too early",
"TVC-NTAD-01": "TokenVestingCloneable: no tokens are due",
"TVC-OPDA-01": "TokenVestingCloneable: only possible during auction",
"TVC-NTAD-02": "TokenVestingCloneable: no tokens are due",
"TVC-CNTR-01": "TokenVestingCloneable: cannot revoke",
"TVC-TKAR-01": "TokenVestingCloneable: token already revoked",
"TVC-TKNR-01": "TokenVestingCloneable: token not revoked",
"ID-ZADDR-01": "IncentiveDistributor: cannot initialize signer with zero address(0)",
"ID-ZADDR-02": "IncentiveDistributor: cannot initialize portfolio with zero address(0)",
"ID-TDNE-01": "IncentiveDistributor: tokenId does not exist",
"ID-TDNE-02": "IncentiveDistributor: tokenId does not exist",
"ID-SIGN-01": "IncentiveDistributor: invalid claim inputs, user, tokenId, amounts or signer does not match signature",
"ID-RTPC-01": "IncentiveDistributor: reward tokens previously claimed",
"ID-NTTC-01": "IncentiveDistributor: no reward tokens to claim",
"ID-TACM-01": "IncentiveDistributor: number of tokens and claim amounts mismatch, no. of tokens less than no. of claims",
"ID-TACM-02": "IncentiveDistributor: number of tokens and claim amounts mismatch, no. of tokens greater than no. of claims",
"ID-AGCB-01": "IncentiveDistributor: amount greater than contract balance",
"BA-LENM-01": "BannedAccounts: number of banned accounts and ban reasons do not match",
"IM-INVT-01": "InventoryManager: target chain does not have enough inventory to cover this withdrawal",
"IM-INVT-02": "InventoryManager: target chain does not have enough inventory to cover this withdrawal",
"IM-LENM-01": "InventoryManager: length mismatch in array type function parameters",
"IM-SIAE-01": "InventoryManager: symbolId and inventory already exist",
"IM-ZADDR-01":"InventoryManager: portfolio bridge sub cannot be the zero address",
"IM-SMEB-01": "InventoryManager: symbols cannot be empty bytes",
"IM-AVNP-01": "InventoryManager: new value for A is not permitted",
"IM-ATNP-01": "InventoryManager: new time for future A is not permitted",
"IM-BTNE-01": "InventoryManager: block time not elapsed for future A time and A to be updated",
"IM-NVSI-01": "InventoryManager: not valid symbolId, symbolId does not exist in portfolio bridge",
"IM-NVSI-02": "InventoryManager: not valid symbolId, symbolId still exists in portfolio bridge",
"DB-OPBA-01": "DefaultBridgeApp: only portfolio bridge allowed to call this function",
"DB-PBNZ-01": "DefaultBridgeApp: portfolio bridge must not be zero address",
"DB-RCNM-01": "DefaultBridgeApp: remote contract for source does not match sender",
"DB-RCNS-01": "DefaultBridgeApp: remote chain info for destination not set",
"DB-RCNS-02": "DefaultBridgeApp: remote chain info for source not set",
"LZ-EONS-01": "LzAppV2: enforced options not set for msgType",
"IC-ARNZ-01": "ICMApp: add relayer address must be non-zero",
"IC-GLNS-01": "ICMApp: gas limit not set for msgType",
"IC-SRNZ-01": "ICMApp: set relayer addresses must be non-zero"
}