tx · 4S6fPjvpBc6biWiL5TY2MiSbbrf7NAxcWudm22ALdXgb 3NAg879tKUJh949h21umkwiaRQhwZftz1BE: -1.00000000 Waves 2019.10.07 17:37 [709492] smart account 3NAg879tKUJh949h21umkwiaRQhwZftz1BE > SELF 0.00000000 Waves
{ "type": 13, "id": "4S6fPjvpBc6biWiL5TY2MiSbbrf7NAxcWudm22ALdXgb", "fee": 100000000, "feeAssetId": null, "timestamp": 1570459062733, "version": 1, "sender": "3NAg879tKUJh949h21umkwiaRQhwZftz1BE", "senderPublicKey": "BqY2jhkQCcbidtQdQZu6f9RV3AkFAS8VPToHxwYu1KdJ", "proofs": [ "3XPC8uzFFnmACLRLbuA5fP9tcpfgEGqDfrbPU7fvd57cmxveSR488Q9nnnUwBCaTu8WiPTGQqq3ayYVCqJ39Acb8" ], "script": "base64:AAIDAAAAAAAAABQIARIECgIICBIECgIICBIECgIICAAAACMAAAAAHHRpY2tlckNhdGFsb2d1ZU9yYWNsZUFkZHJlc3MJAQAAABxAZXh0clVzZXIoYWRkcmVzc0Zyb21TdHJpbmcpAAAAAQIAAAAjM014SHhXNVZXcTRLcldjYmhGZnhLcmFmWG00bUw2clpIZmoAAAAAGHRva2VuUmF0aW5nT3JhY2xlQWRkcmVzcwkBAAAAHEBleHRyVXNlcihhZGRyZXNzRnJvbVN0cmluZykAAAABAgAAACMzTkFEcUhvTE1iTVRmWGRQMlRlQkJTeDVtUVhlUFZqM0tabQAAAAAdc3VzcGljaW91c1Rva2Vuc09yYWNsZUFkZHJlc3MJAQAAABxAZXh0clVzZXIoYWRkcmVzc0Zyb21TdHJpbmcpAAAAAQIAAAAjM01wYU1aSEd2MkhuZVByR051M05TTXE2VGtFSmlkMUZIbloAAAAAGW5vdFN1cHBvcnRlZEN1cnJlbmN5RXJyb3ICAAAAGzxub3RTdXBwb3J0ZWRDdXJyZW5jeUVycm9yPgAAAAAXaXNzdWVyQWNjZXNzRGVuaWVkRXJyb3ICAAAAGTxpc3N1ZXJBY2N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kRXJyb3IJAAACAAAAAQUAAAAVbm90RW5vdWdoUGF5bWVudEVycm9yCQAAAgAAAAEFAAAAGW5vdFN1cHBvcnRlZEN1cnJlbmN5RXJyb3IJAAACAAAAAQUAAAAUc3VzcGljaW91c0Fzc2V0RXJyb3IAAAABaQEAAAAKdXBkYXRlTGluawAAAAIAAAAHYXNzZXRJZAAAAARsaW5rBAAAAA1pc3N1ZXJMaW5rS2V5CQABLAAAAAIJAAEsAAAAAgkAASwAAAACAgAAAAtpc3N1ZXJMaW5rXwIAAAABPAUAAAAHYXNzZXRJZAIAAAABPgMJAQAAAAEhAAAAAQkBAAAAEWlzQXNzZXRTdXNwaWNpb3VzAAAAAQUAAAAHYXNzZXRJZAMJAQAAABBpc1BheW1lbnRJbldhdmVzAAAAAQUAAAABaQMJAQAAAA9pc0Vub3VnaFBheW1lbnQAAAACBQAAAAFpBQAAAA9saW5rVXBkYXRlUHJpY2UDCQEAAAATaXNDYWxsZXJBc3NldElzc3VlcgAAAAIFAAAAAWkFAAAAB2Fzc2V0SWQJAQAAAAhXcml0ZVNldAAAAAEJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAIFAAAADWlzc3VlckxpbmtLZXkFAAAABGxpbmsFAAAAA25pbAkAAAIAAAABBQAAABdpc3N1ZXJBY2Nlc3NEZW5pZWRFcnJvcgkAAAIAAAABBQAAABVub3RFbm91Z2hQYXltZW50RXJyb3IJAAACAAAAAQUAAAAZbm90U3VwcG9ydGVkQ3VycmVuY3lFcnJvcgkAAAIAAAABBQAAABRzdXNwaWNpb3VzQXNzZXRFcnJvcgAAAADFlJRc", "chainId": 84, "height": 709492, "spentComplexity": 0 } View: original | compacted Prev: BmqF9mAsUZ6NXinUWu9NRZm9TGkum9UHL6pQKUjuCmiD Next: 9usmYQKij43m8HNgvRKf19DKLAmGj3iLA5WRtx5kiCg5 Diff:
Old | New | Differences | |
---|---|---|---|
4 | 4 | let tickerCatalogueOracleAddress = addressFromStringValue("3MxHxW5VWq4KrWcbhFfxKrafXm4mL6rZHfj") | |
5 | 5 | ||
6 | 6 | let tokenRatingOracleAddress = addressFromStringValue("3NADqHoLMbMTfXdP2TeBBSx5mQXePVj3KZm") | |
7 | + | ||
8 | + | let suspiciousTokensOracleAddress = addressFromStringValue("3MpaMZHGv2HnePrGNu3NSMq6TkEJid1FHnZ") | |
7 | 9 | ||
8 | 10 | let notSupportedCurrencyError = "<notSupportedCurrencyError>" | |
9 | 11 | ||
22 | 24 | let noPaymentError = "<noPaymentError>" | |
23 | 25 | ||
24 | 26 | let tickerIsImmutableError = "<tickerIsImmutableError>" | |
27 | + | ||
28 | + | let suspiciousAssetError = "<suspiciousAssetError>" | |
25 | 29 | ||
26 | 30 | let wvs = 100000000 | |
27 | 31 | ||
190 | 194 | } | |
191 | 195 | ||
192 | 196 | ||
197 | + | func isAssetSuspicious (assetId) = match getBoolean(suspiciousTokensOracleAddress, assetId) { | |
198 | + | case t: Boolean => | |
199 | + | t | |
200 | + | case t: Unit => | |
201 | + | false | |
202 | + | case _ => | |
203 | + | throw() | |
204 | + | } | |
205 | + | ||
206 | + | ||
193 | 207 | @Callable(i) | |
194 | 208 | func updateTicker (assetId,ticker) = { | |
195 | 209 | let issuerTickerKey = ((("issuerTicker_" + "<") + assetId) + ">") | |
210 | 224 | case _ => | |
211 | 225 | throw() | |
212 | 226 | } | |
213 | - | if (isPaymentInWaves(i)) | |
214 | - | then if (isEnoughPayment(i, tickerUpdatePrice)) | |
215 | - | then if (isCallerAssetIssuer(i, assetId)) | |
216 | - | then if (isUpdateAllowedByRating(assetId)) | |
217 | - | then if (isTickerNotAssinedToAsset) | |
218 | - | then if (if (isTickerFree) | |
219 | - | then !(isTickerReserved) | |
220 | - | else false) | |
221 | - | then if (isValidTicker(ticker)) | |
222 | - | then WriteSet([DataEntry(issuerTickerKey, ticker)]) | |
223 | - | else throw(valueWrongFormatError) | |
224 | - | else throw(tickerValidationTickerIsExistError) | |
225 | - | else throw(tickerIsImmutableError) | |
226 | - | else throw(tickerValidationNotEnoughRatingError) | |
227 | - | else throw(issuerAccessDeniedError) | |
228 | - | else throw(notEnoughPaymentError) | |
229 | - | else throw(notSupportedCurrencyError) | |
227 | + | if (!(isAssetSuspicious(assetId))) | |
228 | + | then if (isPaymentInWaves(i)) | |
229 | + | then if (isEnoughPayment(i, tickerUpdatePrice)) | |
230 | + | then if (isCallerAssetIssuer(i, assetId)) | |
231 | + | then if (isUpdateAllowedByRating(assetId)) | |
232 | + | then if (isTickerNotAssinedToAsset) | |
233 | + | then if (if (isTickerFree) | |
234 | + | then !(isTickerReserved) | |
235 | + | else false) | |
236 | + | then if (isValidTicker(ticker)) | |
237 | + | then WriteSet([DataEntry(issuerTickerKey, ticker)]) | |
238 | + | else throw(valueWrongFormatError) | |
239 | + | else throw(tickerValidationTickerIsExistError) | |
240 | + | else throw(tickerIsImmutableError) | |
241 | + | else throw(tickerValidationNotEnoughRatingError) | |
242 | + | else throw(issuerAccessDeniedError) | |
243 | + | else throw(notEnoughPaymentError) | |
244 | + | else throw(notSupportedCurrencyError) | |
245 | + | else throw(suspiciousAssetError) | |
230 | 246 | } | |
231 | 247 | ||
232 | 248 | ||
234 | 250 | @Callable(i) | |
235 | 251 | func updateDescription (assetId,description) = { | |
236 | 252 | let issuerDescriptionKey = ((("issuerDescription_" + "<") + assetId) + ">") | |
237 | - | if (isPaymentInWaves(i)) | |
238 | - | then if (isEnoughPayment(i, descriptionUpdatePrice)) | |
239 | - | then if (isCallerAssetIssuer(i, assetId)) | |
240 | - | then if (isValidDescription(description)) | |
241 | - | then WriteSet([DataEntry(issuerDescriptionKey, description)]) | |
242 | - | else throw(valueWrongFormatError) | |
243 | - | else throw(issuerAccessDeniedError) | |
244 | - | else throw(notEnoughPaymentError) | |
245 | - | else throw(notSupportedCurrencyError) | |
253 | + | if (!(isAssetSuspicious(assetId))) | |
254 | + | then if (isPaymentInWaves(i)) | |
255 | + | then if (isEnoughPayment(i, descriptionUpdatePrice)) | |
256 | + | then if (isCallerAssetIssuer(i, assetId)) | |
257 | + | then if (isValidDescription(description)) | |
258 | + | then WriteSet([DataEntry(issuerDescriptionKey, description)]) | |
259 | + | else throw(valueWrongFormatError) | |
260 | + | else throw(issuerAccessDeniedError) | |
261 | + | else throw(notEnoughPaymentError) | |
262 | + | else throw(notSupportedCurrencyError) | |
263 | + | else throw(suspiciousAssetError) | |
246 | 264 | } | |
247 | 265 | ||
248 | 266 | ||
250 | 268 | @Callable(i) | |
251 | 269 | func updateLink (assetId,link) = { | |
252 | 270 | let issuerLinkKey = ((("issuerLink_" + "<") + assetId) + ">") | |
253 | - | if (isPaymentInWaves(i)) | |
254 | - | then if (isEnoughPayment(i, linkUpdatePrice)) | |
255 | - | then if (isCallerAssetIssuer(i, assetId)) | |
256 | - | then WriteSet([DataEntry(issuerLinkKey, link)]) | |
257 | - | else throw(issuerAccessDeniedError) | |
258 | - | else throw(notEnoughPaymentError) | |
259 | - | else throw(notSupportedCurrencyError) | |
271 | + | if (!(isAssetSuspicious(assetId))) | |
272 | + | then if (isPaymentInWaves(i)) | |
273 | + | then if (isEnoughPayment(i, linkUpdatePrice)) | |
274 | + | then if (isCallerAssetIssuer(i, assetId)) | |
275 | + | then WriteSet([DataEntry(issuerLinkKey, link)]) | |
276 | + | else throw(issuerAccessDeniedError) | |
277 | + | else throw(notEnoughPaymentError) | |
278 | + | else throw(notSupportedCurrencyError) | |
279 | + | else throw(suspiciousAssetError) | |
260 | 280 | } | |
261 | 281 | ||
262 | 282 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 3 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let tickerCatalogueOracleAddress = addressFromStringValue("3MxHxW5VWq4KrWcbhFfxKrafXm4mL6rZHfj") | |
5 | 5 | ||
6 | 6 | let tokenRatingOracleAddress = addressFromStringValue("3NADqHoLMbMTfXdP2TeBBSx5mQXePVj3KZm") | |
7 | + | ||
8 | + | let suspiciousTokensOracleAddress = addressFromStringValue("3MpaMZHGv2HnePrGNu3NSMq6TkEJid1FHnZ") | |
7 | 9 | ||
8 | 10 | let notSupportedCurrencyError = "<notSupportedCurrencyError>" | |
9 | 11 | ||
10 | 12 | let issuerAccessDeniedError = "<issuerAccessDeniedError>" | |
11 | 13 | ||
12 | 14 | let notEnoughPaymentError = "<notEnoughPaymentError>" | |
13 | 15 | ||
14 | 16 | let tickerValidationNotEnoughRatingError = "<tickerValidationNotEnoughRatingError>" | |
15 | 17 | ||
16 | 18 | let tickerValidationTickerIsExistError = "<tickerValidationTickerIsExistError>" | |
17 | 19 | ||
18 | 20 | let valueWrongFormatError = "<valueWrongFormatError>" | |
19 | 21 | ||
20 | 22 | let nonExistentAssetError = "<nonExistentAssetError>" | |
21 | 23 | ||
22 | 24 | let noPaymentError = "<noPaymentError>" | |
23 | 25 | ||
24 | 26 | let tickerIsImmutableError = "<tickerIsImmutableError>" | |
27 | + | ||
28 | + | let suspiciousAssetError = "<suspiciousAssetError>" | |
25 | 29 | ||
26 | 30 | let wvs = 100000000 | |
27 | 31 | ||
28 | 32 | let tickerUpdatePrice = (5 * wvs) | |
29 | 33 | ||
30 | 34 | let linkUpdatePrice = 50000000 | |
31 | 35 | ||
32 | 36 | let descriptionUpdatePrice = 50000000 | |
33 | 37 | ||
34 | 38 | let tickerMinLength = 1 | |
35 | 39 | ||
36 | 40 | let tickerMaxLength = 6 | |
37 | 41 | ||
38 | 42 | let tickerAllowedLetters = "ABCDEFGHIJKLMNOPQRSTUVWXYZ" | |
39 | 43 | ||
40 | 44 | let reservedTickers = "BTC,ETH,XRP,BCH,LTC,BNB,USDT,EOS,BSV,XMR,XLM,LEO,ADA,TRX,DASH,LINK,XTZ,NEO,MIOTA,ETC,ATOM,XEM,MKR,CRO,USDC,ONT,VSYS,ZEC,DOGE,VET,DCR,HT,BAT,BTG,QTUM,HEDG,TUSD,PAX,EGT,OMG,ALGO,KCS,RVN,LSK,NANO,BTT,BCD,NRG,LAMB,HOT,BCN,DGB,REP,BTS,ZRX,XIN,AOA,IOST,ICX,NET,GNT,PPT,RHOC,SNT,AE,WTC,VERI,R,ZIL,BNT" | |
41 | 45 | ||
42 | 46 | func getIntegerFromAccount (accountAddress,key) = match getInteger(accountAddress, key) { | |
43 | 47 | case i: Int => | |
44 | 48 | i | |
45 | 49 | case _ => | |
46 | 50 | 0 | |
47 | 51 | } | |
48 | 52 | ||
49 | 53 | ||
50 | 54 | func isSubstrExist (str,substr) = match indexOf(str, substr) { | |
51 | 55 | case index: Int => | |
52 | 56 | true | |
53 | 57 | case index: Unit => | |
54 | 58 | false | |
55 | 59 | case _ => | |
56 | 60 | throw() | |
57 | 61 | } | |
58 | 62 | ||
59 | 63 | ||
60 | 64 | func isValidTicker (ticker) = { | |
61 | 65 | let tickerLetters = split(ticker, "") | |
62 | 66 | let tickerLength = size(tickerLetters) | |
63 | 67 | let isLetter1Valid = isSubstrExist(tickerAllowedLetters, tickerLetters[0]) | |
64 | 68 | let isLetter2Valid = isSubstrExist(tickerAllowedLetters, tickerLetters[1]) | |
65 | 69 | let isLetter3Valid = isSubstrExist(tickerAllowedLetters, tickerLetters[2]) | |
66 | 70 | let isLetter4Valid = isSubstrExist(tickerAllowedLetters, tickerLetters[3]) | |
67 | 71 | let isLetter5Valid = isSubstrExist(tickerAllowedLetters, tickerLetters[4]) | |
68 | 72 | let isLetter6Valid = isSubstrExist(tickerAllowedLetters, tickerLetters[5]) | |
69 | 73 | if ((ticker != "")) | |
70 | 74 | then if (if ((tickerLength >= tickerMinLength)) | |
71 | 75 | then (tickerMaxLength >= tickerLength) | |
72 | 76 | else false) | |
73 | 77 | then if ((1 == tickerLength)) | |
74 | 78 | then isLetter1Valid | |
75 | 79 | else if ((2 == tickerLength)) | |
76 | 80 | then if (isLetter1Valid) | |
77 | 81 | then isLetter2Valid | |
78 | 82 | else false | |
79 | 83 | else if ((3 == tickerLength)) | |
80 | 84 | then if (if (isLetter1Valid) | |
81 | 85 | then isLetter2Valid | |
82 | 86 | else false) | |
83 | 87 | then isLetter3Valid | |
84 | 88 | else false | |
85 | 89 | else if ((4 == tickerLength)) | |
86 | 90 | then if (if (if (isLetter1Valid) | |
87 | 91 | then isLetter2Valid | |
88 | 92 | else false) | |
89 | 93 | then isLetter3Valid | |
90 | 94 | else false) | |
91 | 95 | then isLetter4Valid | |
92 | 96 | else false | |
93 | 97 | else if ((5 == tickerLength)) | |
94 | 98 | then if (if (if (if (isLetter1Valid) | |
95 | 99 | then isLetter2Valid | |
96 | 100 | else false) | |
97 | 101 | then isLetter3Valid | |
98 | 102 | else false) | |
99 | 103 | then isLetter4Valid | |
100 | 104 | else false) | |
101 | 105 | then isLetter5Valid | |
102 | 106 | else false | |
103 | 107 | else if ((6 == tickerLength)) | |
104 | 108 | then if (if (if (if (if (isLetter1Valid) | |
105 | 109 | then isLetter2Valid | |
106 | 110 | else false) | |
107 | 111 | then isLetter3Valid | |
108 | 112 | else false) | |
109 | 113 | then isLetter4Valid | |
110 | 114 | else false) | |
111 | 115 | then isLetter5Valid | |
112 | 116 | else false) | |
113 | 117 | then isLetter6Valid | |
114 | 118 | else false | |
115 | 119 | else false | |
116 | 120 | else false | |
117 | 121 | else false | |
118 | 122 | } | |
119 | 123 | ||
120 | 124 | ||
121 | 125 | func isValidDescription (description) = { | |
122 | 126 | let descriptionSize = size(description) | |
123 | 127 | if (if ((descriptionSize > 0)) | |
124 | 128 | then (1000 >= descriptionSize) | |
125 | 129 | else false) | |
126 | 130 | then true | |
127 | 131 | else false | |
128 | 132 | } | |
129 | 133 | ||
130 | 134 | ||
131 | 135 | func isAssetUpdateAllowedByRating (assetId) = { | |
132 | 136 | let assetRatingKey = (("assetRating_" + assetId) + "_1") | |
133 | 137 | let assetRatingValue = getIntegerFromAccount(tokenRatingOracleAddress, assetRatingKey) | |
134 | 138 | let assetRatingTreshold = getIntegerFromAccount(tokenRatingOracleAddress, "tickerRating_1") | |
135 | 139 | (assetRatingValue >= assetRatingTreshold) | |
136 | 140 | } | |
137 | 141 | ||
138 | 142 | ||
139 | 143 | func isAssetUpdateAllowedByWeight (assetId) = { | |
140 | 144 | let assetWeightKey = ("assetWeight_" + assetId) | |
141 | 145 | let assetWeightValue = getIntegerFromAccount(tokenRatingOracleAddress, assetWeightKey) | |
142 | 146 | let assetWeightTreshold = getIntegerFromAccount(tokenRatingOracleAddress, "tickerWeight") | |
143 | 147 | (assetWeightValue >= assetWeightTreshold) | |
144 | 148 | } | |
145 | 149 | ||
146 | 150 | ||
147 | 151 | func isAssetUpdateAllowedByVotes (assetId) = { | |
148 | 152 | let assetVotesKey = ("assetVotes_" + assetId) | |
149 | 153 | let assetVotesValue = getIntegerFromAccount(tokenRatingOracleAddress, assetVotesKey) | |
150 | 154 | let assetVotesTreshold = getIntegerFromAccount(tokenRatingOracleAddress, "tickerVotes") | |
151 | 155 | (assetVotesValue >= assetVotesTreshold) | |
152 | 156 | } | |
153 | 157 | ||
154 | 158 | ||
155 | 159 | func isUpdateAllowedByRating (assetId) = if (if (isAssetUpdateAllowedByRating(assetId)) | |
156 | 160 | then isAssetUpdateAllowedByWeight(assetId) | |
157 | 161 | else false) | |
158 | 162 | then isAssetUpdateAllowedByVotes(assetId) | |
159 | 163 | else false | |
160 | 164 | ||
161 | 165 | ||
162 | 166 | func getAssetIssuerAddressFromAssetId (assetId) = toString(valueOrErrorMessage(assetInfo(fromBase58String(assetId)), nonExistentAssetError).issuer) | |
163 | 167 | ||
164 | 168 | ||
165 | 169 | func getPayment (i) = valueOrErrorMessage(i.payment, noPaymentError) | |
166 | 170 | ||
167 | 171 | ||
168 | 172 | func isPaymentInWaves (i) = { | |
169 | 173 | let payment = getPayment(i) | |
170 | 174 | if (!(isDefined(payment.assetId))) | |
171 | 175 | then true | |
172 | 176 | else false | |
173 | 177 | } | |
174 | 178 | ||
175 | 179 | ||
176 | 180 | func isEnoughPayment (i,requiredPayment) = { | |
177 | 181 | let payment = getPayment(i) | |
178 | 182 | if ((payment.amount >= requiredPayment)) | |
179 | 183 | then true | |
180 | 184 | else false | |
181 | 185 | } | |
182 | 186 | ||
183 | 187 | ||
184 | 188 | func isCallerAssetIssuer (i,assetId) = { | |
185 | 189 | let callerAddress = toBase58String(i.caller.bytes) | |
186 | 190 | let assetIssuerAdress = getAssetIssuerAddressFromAssetId(assetId) | |
187 | 191 | if ((callerAddress == assetIssuerAdress)) | |
188 | 192 | then true | |
189 | 193 | else false | |
190 | 194 | } | |
191 | 195 | ||
192 | 196 | ||
197 | + | func isAssetSuspicious (assetId) = match getBoolean(suspiciousTokensOracleAddress, assetId) { | |
198 | + | case t: Boolean => | |
199 | + | t | |
200 | + | case t: Unit => | |
201 | + | false | |
202 | + | case _ => | |
203 | + | throw() | |
204 | + | } | |
205 | + | ||
206 | + | ||
193 | 207 | @Callable(i) | |
194 | 208 | func updateTicker (assetId,ticker) = { | |
195 | 209 | let issuerTickerKey = ((("issuerTicker_" + "<") + assetId) + ">") | |
196 | 210 | let isTickerReserved = isSubstrExist(reservedTickers, ticker) | |
197 | 211 | let isTickerFree = match getString(tickerCatalogueOracleAddress, ticker) { | |
198 | 212 | case t: String => | |
199 | 213 | false | |
200 | 214 | case t: Unit => | |
201 | 215 | true | |
202 | 216 | case _ => | |
203 | 217 | throw() | |
204 | 218 | } | |
205 | 219 | let isTickerNotAssinedToAsset = match getString(this, issuerTickerKey) { | |
206 | 220 | case t: String => | |
207 | 221 | false | |
208 | 222 | case t: Unit => | |
209 | 223 | true | |
210 | 224 | case _ => | |
211 | 225 | throw() | |
212 | 226 | } | |
213 | - | if (isPaymentInWaves(i)) | |
214 | - | then if (isEnoughPayment(i, tickerUpdatePrice)) | |
215 | - | then if (isCallerAssetIssuer(i, assetId)) | |
216 | - | then if (isUpdateAllowedByRating(assetId)) | |
217 | - | then if (isTickerNotAssinedToAsset) | |
218 | - | then if (if (isTickerFree) | |
219 | - | then !(isTickerReserved) | |
220 | - | else false) | |
221 | - | then if (isValidTicker(ticker)) | |
222 | - | then WriteSet([DataEntry(issuerTickerKey, ticker)]) | |
223 | - | else throw(valueWrongFormatError) | |
224 | - | else throw(tickerValidationTickerIsExistError) | |
225 | - | else throw(tickerIsImmutableError) | |
226 | - | else throw(tickerValidationNotEnoughRatingError) | |
227 | - | else throw(issuerAccessDeniedError) | |
228 | - | else throw(notEnoughPaymentError) | |
229 | - | else throw(notSupportedCurrencyError) | |
227 | + | if (!(isAssetSuspicious(assetId))) | |
228 | + | then if (isPaymentInWaves(i)) | |
229 | + | then if (isEnoughPayment(i, tickerUpdatePrice)) | |
230 | + | then if (isCallerAssetIssuer(i, assetId)) | |
231 | + | then if (isUpdateAllowedByRating(assetId)) | |
232 | + | then if (isTickerNotAssinedToAsset) | |
233 | + | then if (if (isTickerFree) | |
234 | + | then !(isTickerReserved) | |
235 | + | else false) | |
236 | + | then if (isValidTicker(ticker)) | |
237 | + | then WriteSet([DataEntry(issuerTickerKey, ticker)]) | |
238 | + | else throw(valueWrongFormatError) | |
239 | + | else throw(tickerValidationTickerIsExistError) | |
240 | + | else throw(tickerIsImmutableError) | |
241 | + | else throw(tickerValidationNotEnoughRatingError) | |
242 | + | else throw(issuerAccessDeniedError) | |
243 | + | else throw(notEnoughPaymentError) | |
244 | + | else throw(notSupportedCurrencyError) | |
245 | + | else throw(suspiciousAssetError) | |
230 | 246 | } | |
231 | 247 | ||
232 | 248 | ||
233 | 249 | ||
234 | 250 | @Callable(i) | |
235 | 251 | func updateDescription (assetId,description) = { | |
236 | 252 | let issuerDescriptionKey = ((("issuerDescription_" + "<") + assetId) + ">") | |
237 | - | if (isPaymentInWaves(i)) | |
238 | - | then if (isEnoughPayment(i, descriptionUpdatePrice)) | |
239 | - | then if (isCallerAssetIssuer(i, assetId)) | |
240 | - | then if (isValidDescription(description)) | |
241 | - | then WriteSet([DataEntry(issuerDescriptionKey, description)]) | |
242 | - | else throw(valueWrongFormatError) | |
243 | - | else throw(issuerAccessDeniedError) | |
244 | - | else throw(notEnoughPaymentError) | |
245 | - | else throw(notSupportedCurrencyError) | |
253 | + | if (!(isAssetSuspicious(assetId))) | |
254 | + | then if (isPaymentInWaves(i)) | |
255 | + | then if (isEnoughPayment(i, descriptionUpdatePrice)) | |
256 | + | then if (isCallerAssetIssuer(i, assetId)) | |
257 | + | then if (isValidDescription(description)) | |
258 | + | then WriteSet([DataEntry(issuerDescriptionKey, description)]) | |
259 | + | else throw(valueWrongFormatError) | |
260 | + | else throw(issuerAccessDeniedError) | |
261 | + | else throw(notEnoughPaymentError) | |
262 | + | else throw(notSupportedCurrencyError) | |
263 | + | else throw(suspiciousAssetError) | |
246 | 264 | } | |
247 | 265 | ||
248 | 266 | ||
249 | 267 | ||
250 | 268 | @Callable(i) | |
251 | 269 | func updateLink (assetId,link) = { | |
252 | 270 | let issuerLinkKey = ((("issuerLink_" + "<") + assetId) + ">") | |
253 | - | if (isPaymentInWaves(i)) | |
254 | - | then if (isEnoughPayment(i, linkUpdatePrice)) | |
255 | - | then if (isCallerAssetIssuer(i, assetId)) | |
256 | - | then WriteSet([DataEntry(issuerLinkKey, link)]) | |
257 | - | else throw(issuerAccessDeniedError) | |
258 | - | else throw(notEnoughPaymentError) | |
259 | - | else throw(notSupportedCurrencyError) | |
271 | + | if (!(isAssetSuspicious(assetId))) | |
272 | + | then if (isPaymentInWaves(i)) | |
273 | + | then if (isEnoughPayment(i, linkUpdatePrice)) | |
274 | + | then if (isCallerAssetIssuer(i, assetId)) | |
275 | + | then WriteSet([DataEntry(issuerLinkKey, link)]) | |
276 | + | else throw(issuerAccessDeniedError) | |
277 | + | else throw(notEnoughPaymentError) | |
278 | + | else throw(notSupportedCurrencyError) | |
279 | + | else throw(suspiciousAssetError) | |
260 | 280 | } | |
261 | 281 | ||
262 | 282 |
github/deemru/w8io/169f3d6 49.17 ms ◑