forked from Dexalot/contracts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
errors.json
238 lines (219 loc) · 14.5 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
{
"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: erc20 token is not supported",
"P-ETNS-02": "Portfolio: erc20 token is not supported",
"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",
"PB-OACC-01": "PortfolioBridge: admin account or PORTFOLIO_ROLE needed for this function",
"PB-RBNE-01": "PortfolioBridge: requested bridge not enabled",
"PB-RBNE-02": "PortfolioBridge: requested bridge not implemented",
"PB-DBCD-01": "PortfolioBridge: default bridge can not be disabled",
"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 setDelayThresholds",
"PB-LENM-02": "PortfolioBridge: length mismatch in setEpochVolumeCaps",
"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",
"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-03": "TradePairs: cancelOrderList 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 or permissioned contracts 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",
"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-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",
"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"
}