tx · CutHDDT3ZWqnnsLpCRLmXhXX1GbbmRJseeNLkgQeUveE 3Mx4GxjrawhKHBgMKH9C5Hmbj8ePZDrs8ed: -0.01800000 Waves 2023.07.03 11:13 [2649471] smart account 3Mx4GxjrawhKHBgMKH9C5Hmbj8ePZDrs8ed > SELF 0.00000000 Waves
{ "type": 13, "id": "CutHDDT3ZWqnnsLpCRLmXhXX1GbbmRJseeNLkgQeUveE", "fee": 1800000, "feeAssetId": null, "timestamp": 1688372046437, "version": 2, "chainId": 84, "sender": "3Mx4GxjrawhKHBgMKH9C5Hmbj8ePZDrs8ed", "senderPublicKey": "9DpEgmia9fGpxtGGDeSMtER4g9qB7WQPPYTKTHzqSFuX", "proofs": [ "5TC29DLugpY9mjtXPFQEnobKmXvx2MPoWVW3JTJHr93631rbkSXYcWcVTFohMZjjzHhetU8djzqzFvkgvGcLt3wy" ], "script": "base64:BgJdCAISBgoECAgICBIJCgcICAgICAgIEgYKBAEICAESBgoEAQgIARIECgIBCBIDCgEIEgQKAgEEEgMKAQgSBQoDAQgBEgsKCQEICAEBAQEBBBIAEgASAwoBCBIDCgEIQAAJU0VQQVJBVE9SAgJfXwAIS0VZX0lOSVQCBElOSVQADEtFWV9NVUxUSVNJRwIITVVMVElTSUcACktFWV9TVEFUVVMCBlNUQVRVUwAKS0VZX1BBVVNFRAIGUEFVU0VEAApLRVlfUEFVU0VSAgZQQVVTRVIADEtFWV9FWEVDVVRPUgIIRVhFQ1VUT1IAEEtFWV9ST09UX0FEQVBURVICDFJPT1RfQURBUFRFUgATS0VZX0NBTExFUl9DT05UUkFDVAIPQ0FMTEVSX0NPTlRSQUNUAAlLRVlfQ0hBSU4CBUNIQUlOAAtLRVlfQklORElORwIHQklORElORwAHS0VZX0ZFRQIDRkVFABFLRVlfRkVFX1JFQ0lQSUVOVAINRkVFX1JFQ0lQSUVOVAAYS0VZX1JFRkVSUkVSX0ZFRV9QRVJDRU5UAhRSRUZFUlJFUl9GRUVfUEVSQ0VOVAATRlV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QUDDokDWowue7hGuXqGuH2riBivzimqcN5 Diff:
Old | New | Differences | |
---|---|---|---|
82 | 82 | else true | |
83 | 83 | ||
84 | 84 | ||
85 | - | func K (L, | |
86 | - | then (L | |
87 | - | else | |
85 | + | func K (L,x) = if ((L != "")) | |
86 | + | then v(L, x) | |
87 | + | else true | |
88 | 88 | ||
89 | 89 | ||
90 | - | func O () = { | |
90 | + | func M (N,O,P) = if ((O >= P)) | |
91 | + | then (N / pow(10, 0, (O - P), 0, 0, DOWN)) | |
92 | + | else (N * pow(10, 0, (P - O), 0, 0, DOWN)) | |
93 | + | ||
94 | + | ||
95 | + | func Q () = { | |
91 | 96 | let y = getBoolean(b) | |
92 | 97 | if ($isInstanceOf(y, "Boolean")) | |
93 | 98 | then { | |
98 | 103 | } | |
99 | 104 | ||
100 | 105 | ||
101 | - | func | |
106 | + | func R (S) = [BooleanEntry(b, S)] | |
102 | 107 | ||
103 | 108 | ||
104 | - | func | |
109 | + | func T () = { | |
105 | 110 | let y = getBoolean(e) | |
106 | 111 | if ($isInstanceOf(y, "Boolean")) | |
107 | 112 | then { | |
112 | 117 | } | |
113 | 118 | ||
114 | 119 | ||
115 | - | func | |
120 | + | func U (V) = [BooleanEntry(e, V)] | |
116 | 121 | ||
117 | 122 | ||
118 | - | func | |
123 | + | func W () = { | |
119 | 124 | let y = getString(f) | |
120 | 125 | if ($isInstanceOf(y, "String")) | |
121 | 126 | then { | |
126 | 131 | } | |
127 | 132 | ||
128 | 133 | ||
129 | - | func | |
134 | + | func X (Y) = [StringEntry(f, toString(Y))] | |
130 | 135 | ||
131 | 136 | ||
132 | - | func | |
137 | + | func Z () = { | |
133 | 138 | let y = getString(c) | |
134 | 139 | if ($isInstanceOf(y, "String")) | |
135 | 140 | then { | |
140 | 145 | } | |
141 | 146 | ||
142 | 147 | ||
143 | - | func | |
148 | + | func aa (ab) = [StringEntry(c, toString(ab))] | |
144 | 149 | ||
145 | 150 | ||
146 | - | func | |
151 | + | func ac () = { | |
147 | 152 | let y = getString(g) | |
148 | 153 | if ($isInstanceOf(y, "String")) | |
149 | 154 | then { | |
154 | 159 | } | |
155 | 160 | ||
156 | 161 | ||
157 | - | func | |
162 | + | func ad (ae) = [StringEntry(g, toString(ae))] | |
158 | 163 | ||
159 | 164 | ||
160 | - | func | |
165 | + | func af () = { | |
161 | 166 | let y = getString(i) | |
162 | 167 | if ($isInstanceOf(y, "String")) | |
163 | 168 | then { | |
168 | 173 | } | |
169 | 174 | ||
170 | 175 | ||
171 | - | func | |
176 | + | func ag (ah) = [StringEntry(i, ah)] | |
172 | 177 | ||
173 | 178 | ||
174 | - | func | |
175 | - | let y = getBoolean(makeString([j, toString( | |
179 | + | func ai (aj) = { | |
180 | + | let y = getBoolean(makeString([j, toString(aj)], a)) | |
176 | 181 | if ($isInstanceOf(y, "Boolean")) | |
177 | 182 | then { | |
178 | 183 | let z = y | |
182 | 187 | } | |
183 | 188 | ||
184 | 189 | ||
185 | - | func | |
190 | + | func ak (aj,D) = [BooleanEntry(makeString([j, toString(aj)], a), D)] | |
186 | 191 | ||
187 | 192 | ||
188 | - | func | |
189 | - | let y = getString(makeString([k, toString( | |
193 | + | func al (am,B) = { | |
194 | + | let y = getString(makeString([k, toString(am), toBase58String(B)], a)) | |
190 | 195 | if ($isInstanceOf(y, "String")) | |
191 | 196 | then { | |
192 | 197 | let z = y | |
193 | - | let | |
194 | - | $Tuple8(addressFromStringValue( | |
198 | + | let an = split(z, a) | |
199 | + | $Tuple8(addressFromStringValue(an[0]), an[1], parseIntValue(an[2]), parseIntValue(an[3]), parseIntValue(an[4]), parseIntValue(an[5]), parseIntValue(an[6]), if ((an[7] == "1")) | |
195 | 200 | then true | |
196 | 201 | else false) | |
197 | 202 | } | |
199 | 204 | } | |
200 | 205 | ||
201 | 206 | ||
202 | - | func | |
207 | + | func ao (am,B,ap) = [StringEntry(makeString([k, toString(am), toBase58String(B)], a), makeString([toString(ap._1), ap._2, toString(ap._3), toString(ap._4), toString(ap._5), toString(ap._6), toString(ap._7), if (ap._8) | |
203 | 208 | then "1" | |
204 | 209 | else "0"], a))] | |
205 | 210 | ||
206 | 211 | ||
207 | - | func | |
212 | + | func aq (B) = { | |
208 | 213 | let y = getInteger(makeString([l, toBase58String(B)], a)) | |
209 | 214 | if ($isInstanceOf(y, "Int")) | |
210 | 215 | then { | |
215 | 220 | } | |
216 | 221 | ||
217 | 222 | ||
218 | - | func | |
223 | + | func ar (B,D) = [IntegerEntry(makeString([l, toBase58String(B)], a), D)] | |
219 | 224 | ||
220 | 225 | ||
221 | - | func | |
226 | + | func as () = { | |
222 | 227 | let y = getString(h) | |
223 | 228 | if ($isInstanceOf(y, "String")) | |
224 | 229 | then { | |
229 | 234 | } | |
230 | 235 | ||
231 | 236 | ||
232 | - | func | |
237 | + | func at (au) = [StringEntry(h, toString(au))] | |
233 | 238 | ||
234 | 239 | ||
235 | - | func | |
240 | + | func av () = { | |
236 | 241 | let y = getString(m) | |
237 | 242 | if ($isInstanceOf(y, "String")) | |
238 | 243 | then { | |
243 | 248 | } | |
244 | 249 | ||
245 | 250 | ||
246 | - | func | |
251 | + | func aw (D) = [StringEntry(m, toString(D))] | |
247 | 252 | ||
248 | 253 | ||
249 | - | func | |
250 | - | let y = getInteger(makeString([n, toString( | |
254 | + | func ax (am,L) = { | |
255 | + | let y = getInteger(makeString([n, toString(am), toString(L)], a)) | |
251 | 256 | if ($isInstanceOf(y, "Int")) | |
252 | 257 | then { | |
253 | 258 | let z = y | |
257 | 262 | } | |
258 | 263 | ||
259 | 264 | ||
260 | - | func | |
265 | + | func ay (am,L,D) = [IntegerEntry(makeString([n, toString(am), toString(L)], a), D)] | |
261 | 266 | ||
262 | 267 | ||
263 | - | func | |
268 | + | func az (ah) = if ((ah != this)) | |
264 | 269 | then throw("_onlyThisContract: revert") | |
265 | 270 | else true | |
266 | 271 | ||
267 | 272 | ||
268 | - | func | |
273 | + | func aA () = if ((Z() == Address(base58''))) | |
269 | 274 | then throw("_whenMultisigSet: revert") | |
270 | 275 | else true | |
271 | 276 | ||
272 | 277 | ||
273 | - | func | |
278 | + | func aB () = if (Q()) | |
274 | 279 | then throw("_whenNotInitialized: revert") | |
275 | 280 | else true | |
276 | 281 | ||
277 | 282 | ||
278 | - | func | |
283 | + | func aC () = if (!(Q())) | |
279 | 284 | then throw("_whenInitialized: revert") | |
280 | 285 | else true | |
281 | 286 | ||
282 | 287 | ||
283 | - | func | |
288 | + | func aD () = if (T()) | |
284 | 289 | then throw("_whenNotPaused: revert") | |
285 | 290 | else true | |
286 | 291 | ||
287 | 292 | ||
288 | - | func | |
293 | + | func aE () = if (!(T())) | |
289 | 294 | then throw("_whenPaused: revert") | |
290 | 295 | else true | |
291 | 296 | ||
292 | 297 | ||
293 | - | func | |
298 | + | func aF (ah) = if ((ah != W())) | |
294 | 299 | then throw("_onlyPauser: revert") | |
295 | 300 | else true | |
296 | 301 | ||
297 | 302 | ||
298 | - | func | |
303 | + | func aG (D) = { | |
299 | 304 | let y = D | |
300 | 305 | if ($isInstanceOf(y, "Int")) | |
301 | 306 | then { | |
306 | 311 | } | |
307 | 312 | ||
308 | 313 | ||
309 | - | func | |
314 | + | func aH (D) = { | |
310 | 315 | let y = D | |
311 | 316 | if ($isInstanceOf(y, "ByteVector")) | |
312 | 317 | then { | |
317 | 322 | } | |
318 | 323 | ||
319 | 324 | ||
320 | - | func | |
325 | + | func aI (D,x) = if ((D != ac())) | |
321 | 326 | then throw(x) | |
322 | 327 | else true | |
323 | 328 | ||
324 | 329 | ||
325 | - | func | |
330 | + | func aJ (D,x) = if ((D != af())) | |
326 | 331 | then throw(x) | |
327 | 332 | else true | |
328 | 333 | ||
329 | 334 | ||
330 | - | func | |
335 | + | func aK (am,x) = if (!(ai(am))) | |
331 | 336 | then throw(x) | |
332 | 337 | else true | |
333 | 338 | ||
334 | 339 | ||
335 | - | @Callable(aK) | |
336 | - | func init (ac,as,W,aL) = { | |
337 | - | let aM = if (if (if (if (if (if (ay(aK.caller)) | |
340 | + | @Callable(aL) | |
341 | + | func init (ae,au,Y,aM) = { | |
342 | + | let aN = if (if (if (if (if (if (az(aL.caller)) | |
343 | + | then aB() | |
344 | + | else false) | |
338 | 345 | then aA() | |
339 | 346 | else false) | |
340 | - | then | |
347 | + | then v(ae, "init: invalid executor") | |
341 | 348 | else false) | |
342 | - | then v( | |
349 | + | then v(au, "init: invalid adapter") | |
343 | 350 | else false) | |
344 | - | then v( | |
351 | + | then v(Y, "init: invalid pauser") | |
345 | 352 | else false) | |
346 | - | then v(W, "init: invalid pauser") | |
347 | - | else false) | |
348 | - | then v(aL, "init: invalid feeRecipient") | |
353 | + | then v(aM, "init: invalid feeRecipient") | |
349 | 354 | else false | |
350 | - | if (( | |
351 | - | then $Tuple2((((( | |
355 | + | if ((aN == aN)) | |
356 | + | then $Tuple2(((((R(true) ++ ad(addressFromStringValue(ae))) ++ at(addressFromStringValue(au))) ++ X(addressFromStringValue(Y))) ++ aw(addressFromStringValue(aM))), unit) | |
352 | 357 | else throw("Strict value is not equal to itself.") | |
353 | 358 | } | |
354 | 359 | ||
355 | 360 | ||
356 | 361 | ||
357 | - | @Callable( | |
358 | - | func mintTokens ( | |
359 | - | let | |
360 | - | let | |
361 | - | let | |
362 | - | let | |
363 | - | then | |
362 | + | @Callable(aL) | |
363 | + | func mintTokens (aO,aP,N,aQ,aR,L,aS) = { | |
364 | + | let aT = valueOrErrorMessage(parseInt(N), "mint: amount is not Int") | |
365 | + | let aU = valueOrErrorMessage(parseInt(aR), "mint: gaslessReward is not Int") | |
366 | + | let aV = valueOrErrorMessage(parseInt(aS), "mint: referrerFee is not Int") | |
367 | + | let aN = if (if (if (if (if (if (if (if (aC()) | |
368 | + | then aD() | |
364 | 369 | else false) | |
365 | - | then v( | |
370 | + | then v(aP, "mint: invalid asset contract") | |
366 | 371 | else false) | |
367 | - | then | |
372 | + | then aI(aL.caller, "mint: invalid executor") | |
368 | 373 | else false) | |
369 | - | then | |
374 | + | then aJ(aO, "mint: invalid caller") | |
370 | 375 | else false) | |
371 | - | then v( | |
376 | + | then v(aQ, "mint: invalid recipient address") | |
372 | 377 | else false) | |
373 | - | then C( | |
378 | + | then C(aT, 0, u, "mint: invalid amount") | |
374 | 379 | else false) | |
375 | - | then C( | |
380 | + | then C(aU, 0, u, "mint: invalid gaslessReward") | |
376 | 381 | else false) | |
377 | - | then C( | |
382 | + | then C(aV, 0, u, "mint: invalid referrer fee") | |
378 | 383 | else false | |
379 | - | if (( | |
384 | + | if ((aN == aN)) | |
380 | 385 | then { | |
381 | - | let | |
382 | - | if (( | |
386 | + | let aW = aH(invoke(addressFromStringValue(aP), "getAssetId", nil, nil)) | |
387 | + | if ((aW == aW)) | |
383 | 388 | then { | |
384 | - | let | |
385 | - | if (( | |
389 | + | let aX = aG(invoke(addressFromStringValue(aP), "getDecimals", nil, nil)) | |
390 | + | if ((aX == aX)) | |
386 | 391 | then { | |
387 | - | let | |
388 | - | let | |
389 | - | let | |
390 | - | let y = addressFromString( | |
392 | + | let aY = M(aT, r, aX) | |
393 | + | let aZ = M(aU, r, aX) | |
394 | + | let ba = { | |
395 | + | let y = addressFromString(L) | |
391 | 396 | if ($isInstanceOf(y, "Address")) | |
392 | 397 | then { | |
393 | - | let | |
394 | - | let | |
395 | - | $Tuple2( | |
398 | + | let bb = y | |
399 | + | let bc = M(aV, r, aX) | |
400 | + | $Tuple2(bc, [ScriptTransfer(bb, bc, aW)]) | |
396 | 401 | } | |
397 | 402 | else $Tuple2(0, nil) | |
398 | 403 | } | |
399 | - | let | |
400 | - | let | |
401 | - | let | |
402 | - | if (( | |
404 | + | let bc = ba._1 | |
405 | + | let bd = ba._2 | |
406 | + | let be = invoke(addressFromStringValue(aP), "mint", [(aY + bc), toString(this)], nil) | |
407 | + | if ((be == be)) | |
403 | 408 | then { | |
404 | - | let | |
405 | - | then (addressFromStringValue( | |
409 | + | let bf = if (if ((aZ > 0)) | |
410 | + | then (addressFromStringValue(aQ) != aL.originCaller) | |
406 | 411 | else false) | |
407 | - | then [ScriptTransfer(addressFromStringValue( | |
408 | - | else [ScriptTransfer(addressFromStringValue( | |
409 | - | $Tuple2(( | |
412 | + | then [ScriptTransfer(addressFromStringValue(aQ), (aY - aZ), aW), ScriptTransfer(aL.originCaller, aZ, aW)] | |
413 | + | else [ScriptTransfer(addressFromStringValue(aQ), aY, aW)] | |
414 | + | $Tuple2((bf ++ bd), unit) | |
410 | 415 | } | |
411 | 416 | else throw("Strict value is not equal to itself.") | |
412 | 417 | } | |
419 | 424 | ||
420 | 425 | ||
421 | 426 | ||
422 | - | @Callable( | |
423 | - | func burnTokens ( | |
424 | - | let | |
425 | - | then | |
427 | + | @Callable(aL) | |
428 | + | func burnTokens (am,aQ,L,aR) = { | |
429 | + | let aN = if (if (if (if (if (aC()) | |
430 | + | then aD() | |
426 | 431 | else false) | |
427 | - | then | |
432 | + | then aK(am, "burnTokens: invalid execution chain") | |
428 | 433 | else false) | |
429 | - | then I( | |
434 | + | then I(aL.payments, 1, "burnTokens: no payment") | |
430 | 435 | else false) | |
431 | - | then C( | |
436 | + | then C(aR, 0, u, "burnTokens: invalid gaslessReward") | |
432 | 437 | else false) | |
433 | - | then C( | |
438 | + | then C(aL.payments[0].amount, 0, u, "burnTokens: invalid payment amount") | |
434 | 439 | else false | |
435 | - | if (( | |
440 | + | if ((aN == aN)) | |
436 | 441 | then { | |
437 | - | let | |
438 | - | let | |
439 | - | let y = | |
442 | + | let aT = aL.payments[0].amount | |
443 | + | let aW = { | |
444 | + | let y = aL.payments[0].assetId | |
440 | 445 | if ($isInstanceOf(y, "ByteVector")) | |
441 | 446 | then { | |
442 | 447 | let z = y | |
443 | 448 | z | |
444 | 449 | } | |
445 | - | else throw(" | |
450 | + | else throw("burnTokens: invalid asset") | |
446 | 451 | } | |
447 | - | let | |
448 | - | let | |
449 | - | let | |
450 | - | let | |
451 | - | let | |
452 | - | let | |
453 | - | let | |
454 | - | let | |
455 | - | let | |
456 | - | let | |
457 | - | then C( | |
452 | + | let bg = al(am, aW) | |
453 | + | let bh = bg._1 | |
454 | + | let bi = bg._2 | |
455 | + | let bj = bg._3 | |
456 | + | let bk = bg._4 | |
457 | + | let bl = bg._5 | |
458 | + | let bm = bg._6 | |
459 | + | let bn = bg._7 | |
460 | + | let bo = bg._8 | |
461 | + | let bp = if (if (v(toString(bh), "burnTokens: no such binding")) | |
462 | + | then C(aT, bj, u, "burnTokens: less than min") | |
458 | 463 | else false) | |
459 | - | then G( | |
464 | + | then G(bo, true, "burnTokens: token is disabled") | |
460 | 465 | else false | |
461 | - | if (( | |
466 | + | if ((bp == bp)) | |
462 | 467 | then { | |
463 | - | let | |
464 | - | if (( | |
468 | + | let aX = aG(invoke(bh, "getDecimals", nil, nil)) | |
469 | + | if ((aX == aX)) | |
465 | 470 | then { | |
466 | - | let | |
467 | - | then | |
468 | - | else | |
469 | - | let | |
470 | - | let | |
471 | - | if (( | |
471 | + | let bq = if ((aT > bl)) | |
472 | + | then bn | |
473 | + | else bm | |
474 | + | let br = (bk + fraction(aT, bq, s)) | |
475 | + | let bs = C(aT, (br + 1), u, "burnTokens: fee more than amount") | |
476 | + | if ((bs == bs)) | |
472 | 477 | then { | |
473 | - | let | |
474 | - | let | |
475 | - | if (( | |
478 | + | let bt = (aT - br) | |
479 | + | let bu = C(bt, (aR + 1), u, "burnTokens: reward more than amount") | |
480 | + | if ((bu == bu)) | |
476 | 481 | then { | |
477 | - | let | |
478 | - | let | |
479 | - | let | |
480 | - | let | |
481 | - | if (( | |
482 | - | then $Tuple2(( | |
482 | + | let bv = (aq(aW) + br) | |
483 | + | let aY = M(bt, aX, r) | |
484 | + | let aZ = M(aR, aX, r) | |
485 | + | let be = invoke(as(), o, [am, bi, aY, aQ, aZ], nil) | |
486 | + | if ((be == be)) | |
487 | + | then $Tuple2((ar(aW, bv) ++ [Burn(aW, bt)]), unit) | |
483 | 488 | else throw("Strict value is not equal to itself.") | |
484 | 489 | } | |
485 | 490 | else throw("Strict value is not equal to itself.") | |
495 | 500 | ||
496 | 501 | ||
497 | 502 | ||
498 | - | @Callable( | |
499 | - | func | |
500 | - | let | |
501 | - | then | |
503 | + | @Callable(aL) | |
504 | + | func burnTokensV2 (am,aQ,L,aR) = { | |
505 | + | let aN = if (if (if (if (if (if (aC()) | |
506 | + | then aD() | |
502 | 507 | else false) | |
503 | - | then A(B, "transferFee: invalid asset") | |
508 | + | then aK(am, "burnTokensV2: invalid execution chain") | |
509 | + | else false) | |
510 | + | then I(aL.payments, 1, "burnTokensV2: no payment") | |
511 | + | else false) | |
512 | + | then C(aR, 0, u, "burnTokensV2: invalid gaslessReward") | |
513 | + | else false) | |
514 | + | then C(aL.payments[0].amount, 0, u, "burnTokensV2: invalid payment amount") | |
515 | + | else false) | |
516 | + | then K(L, "burnTokensV2: invalid referrer") | |
504 | 517 | else false | |
505 | - | if (( | |
518 | + | if ((aN == aN)) | |
506 | 519 | then { | |
507 | - | let aV = fromBase58String(B) | |
508 | - | let bf = aj(ak, aV) | |
509 | - | let bg = bf._1 | |
510 | - | let bn = bf._8 | |
511 | - | let bo = if (v(toString(bg), "transferFee: no such binding")) | |
512 | - | then G(bn, true, "transferFee: token is disabled") | |
520 | + | let aT = aL.payments[0].amount | |
521 | + | let aW = { | |
522 | + | let y = aL.payments[0].assetId | |
523 | + | if ($isInstanceOf(y, "ByteVector")) | |
524 | + | then { | |
525 | + | let z = y | |
526 | + | z | |
527 | + | } | |
528 | + | else throw("burnTokensV2: invalid asset") | |
529 | + | } | |
530 | + | let bg = al(am, aW) | |
531 | + | let bh = bg._1 | |
532 | + | let bi = bg._2 | |
533 | + | let bj = bg._3 | |
534 | + | let bk = bg._4 | |
535 | + | let bl = bg._5 | |
536 | + | let bm = bg._6 | |
537 | + | let bn = bg._7 | |
538 | + | let bo = bg._8 | |
539 | + | let bp = if (if (v(toString(bh), "burnTokensV2: no such binding")) | |
540 | + | then C(aT, bj, u, "burnTokensV2: less than min") | |
541 | + | else false) | |
542 | + | then G(bo, true, "burnTokensV2: token is disabled") | |
513 | 543 | else false | |
514 | - | if ((bo == bo)) | |
515 | - | then $Tuple2((ap(aV, 0) ++ [ScriptTransfer(at(), ao(aV), aV)]), unit) | |
516 | - | else throw("Strict value is not equal to itself.") | |
517 | - | } | |
518 | - | else throw("Strict value is not equal to itself.") | |
519 | - | } | |
520 | - | ||
521 | - | ||
522 | - | ||
523 | - | @Callable(aK) | |
524 | - | func updateCallerContract (aN) = { | |
525 | - | let aM = if (ay(aK.caller)) | |
526 | - | then aB() | |
527 | - | else false | |
528 | - | if ((aM == aM)) | |
529 | - | then $Tuple2(ae(aN), unit) | |
530 | - | else throw("Strict value is not equal to itself.") | |
531 | - | } | |
532 | - | ||
533 | - | ||
534 | - | ||
535 | - | @Callable(aK) | |
536 | - | func updateExecutionChain (ak,bv) = { | |
537 | - | let aM = if (if (ay(aK.caller)) | |
538 | - | then aB() | |
539 | - | else false) | |
540 | - | then C(ak, 0, u, "updateExecutionChain: invalid executionChainId") | |
541 | - | else false | |
542 | - | if ((aM == aM)) | |
543 | - | then $Tuple2(ai(ak, bv), unit) | |
544 | - | else throw("Strict value is not equal to itself.") | |
545 | - | } | |
546 | - | ||
547 | - | ||
548 | - | ||
549 | - | @Callable(aK) | |
550 | - | func updateFeeRecipient (aL) = { | |
551 | - | let aM = if (if (ay(aK.caller)) | |
552 | - | then aB() | |
553 | - | else false) | |
554 | - | then v(aL, "updateFeeRecipient: invalid feeRecipient") | |
555 | - | else false | |
556 | - | if ((aM == aM)) | |
557 | - | then $Tuple2(au(addressFromStringValue(aL)), unit) | |
558 | - | else throw("Strict value is not equal to itself.") | |
559 | - | } | |
560 | - | ||
561 | - | ||
562 | - | ||
563 | - | @Callable(aK) | |
564 | - | func updateReferrer (ak,aw,bw) = { | |
565 | - | let aM = if (if (if (if (ay(aK.caller)) | |
566 | - | then aB() | |
567 | - | else false) | |
568 | - | then aJ(ak, "updateReferrer: invalid execution chain") | |
569 | - | else false) | |
570 | - | then v(aw, "updateReferrer: invalid referrer") | |
571 | - | else false) | |
572 | - | then C(bw, 0, t, "updateReferrer: invalid fee") | |
573 | - | else false | |
574 | - | if ((aM == aM)) | |
575 | - | then $Tuple2(ax(ak, addressFromStringValue(aw), bw), unit) | |
576 | - | else throw("Strict value is not equal to itself.") | |
577 | - | } | |
578 | - | ||
579 | - | ||
580 | - | ||
581 | - | @Callable(aK) | |
582 | - | func updateBindingInfo (ak,aO,bx,by,bz,bA,bB,bC,bv) = { | |
583 | - | let aM = if (if (if (if (if (if (if (if (ay(aK.caller)) | |
584 | - | then aB() | |
585 | - | else false) | |
586 | - | then v(aO, "updateBindingInfo: invalid asset contract") | |
587 | - | else false) | |
588 | - | then C(ak, 0, u, "updateBindingInfo: invalid executionChainId") | |
589 | - | else false) | |
590 | - | then C(by, 0, u, "updateBindingInfo: invalid minAmount") | |
591 | - | else false) | |
592 | - | then C(bz, 0, u, "updateBindingInfo: invalid minFee") | |
593 | - | else false) | |
594 | - | then C(bA, 0, u, "updateBindingInfo: invalid thresholdFee") | |
595 | - | else false) | |
596 | - | then C(bB, 0, u, "updateBindingInfo: invalid beforePercentFee") | |
597 | - | else false) | |
598 | - | then C(bC, 0, u, "updateBindingInfo: invalid afterPercentFee") | |
599 | - | else false | |
600 | - | if ((aM == aM)) | |
601 | - | then { | |
602 | - | let aV = aG(invoke(addressFromStringValue(aO), "getAssetId", nil, nil)) | |
603 | - | if ((aV == aV)) | |
544 | + | if ((bp == bp)) | |
604 | 545 | then { | |
605 | - | let bf = $Tuple8(addressFromStringValue(aO), bx, by, bz, bA, bB, bC, bv) | |
606 | - | $Tuple2(am(ak, aV, bf), unit) | |
546 | + | let aX = aG(invoke(bh, "getDecimals", nil, nil)) | |
547 | + | if ((aX == aX)) | |
548 | + | then { | |
549 | + | let bq = if ((aT > bl)) | |
550 | + | then bn | |
551 | + | else bm | |
552 | + | let br = (bk + fraction(aT, bq, s)) | |
553 | + | let bs = C(aT, (br + 1), u, "burnTokensV2: fee more than amount") | |
554 | + | if ((bs == bs)) | |
555 | + | then { | |
556 | + | let bw = if ((L != "")) | |
557 | + | then { | |
558 | + | let ba = addressFromStringValue(L) | |
559 | + | let bx = fraction(ax(am, ba), br, s) | |
560 | + | $Tuple2(bx, [ScriptTransfer(ba, bx, aW)]) | |
561 | + | } | |
562 | + | else $Tuple2(0, nil) | |
563 | + | let aV = bw._1 | |
564 | + | let bd = bw._2 | |
565 | + | let bt = (aT - br) | |
566 | + | let bu = C(bt, (aR + 1), u, "burnTokensV2: reward more than amount") | |
567 | + | if ((bu == bu)) | |
568 | + | then { | |
569 | + | let bv = ((aq(aW) + br) - aV) | |
570 | + | let aY = M(bt, aX, r) | |
571 | + | let aZ = M(aR, aX, r) | |
572 | + | let be = invoke(as(), o, [am, bi, aY, aQ, aZ], nil) | |
573 | + | if ((be == be)) | |
574 | + | then $Tuple2(((ar(aW, bv) ++ bd) ++ [Burn(aW, bt)]), unit) | |
575 | + | else throw("Strict value is not equal to itself.") | |
576 | + | } | |
577 | + | else throw("Strict value is not equal to itself.") | |
578 | + | } | |
579 | + | else throw("Strict value is not equal to itself.") | |
580 | + | } | |
581 | + | else throw("Strict value is not equal to itself.") | |
607 | 582 | } | |
608 | 583 | else throw("Strict value is not equal to itself.") | |
609 | 584 | } | |
612 | 587 | ||
613 | 588 | ||
614 | 589 | ||
615 | - | @Callable( | |
616 | - | func | |
617 | - | let | |
618 | - | then | |
590 | + | @Callable(aL) | |
591 | + | func transferFee (am,B) = { | |
592 | + | let aN = if (if (aC()) | |
593 | + | then aD() | |
619 | 594 | else false) | |
620 | - | then | |
595 | + | then A(B, "transferFee: invalid asset") | |
621 | 596 | else false | |
622 | - | if ((aM == aM)) | |
623 | - | then $Tuple2(S(true), unit) | |
597 | + | if ((aN == aN)) | |
598 | + | then { | |
599 | + | let aW = fromBase58String(B) | |
600 | + | let bg = al(am, aW) | |
601 | + | let bh = bg._1 | |
602 | + | let bo = bg._8 | |
603 | + | let bp = if (v(toString(bh), "transferFee: no such binding")) | |
604 | + | then G(bo, true, "transferFee: token is disabled") | |
605 | + | else false | |
606 | + | if ((bp == bp)) | |
607 | + | then $Tuple2((ar(aW, 0) ++ [ScriptTransfer(av(), aq(aW), aW)]), unit) | |
608 | + | else throw("Strict value is not equal to itself.") | |
609 | + | } | |
624 | 610 | else throw("Strict value is not equal to itself.") | |
625 | 611 | } | |
626 | 612 | ||
627 | 613 | ||
628 | 614 | ||
629 | - | @Callable(aK) | |
630 | - | func unpause () = { | |
631 | - | let aM = if (if (aE(aK.caller)) | |
632 | - | then aB() | |
633 | - | else false) | |
634 | - | then aD() | |
615 | + | @Callable(aL) | |
616 | + | func updateCallerContract (aO) = { | |
617 | + | let aN = if (az(aL.caller)) | |
618 | + | then aC() | |
635 | 619 | else false | |
636 | - | if (( | |
637 | - | then $Tuple2( | |
620 | + | if ((aN == aN)) | |
621 | + | then $Tuple2(ag(aO), unit) | |
638 | 622 | else throw("Strict value is not equal to itself.") | |
639 | 623 | } | |
640 | 624 | ||
641 | 625 | ||
642 | 626 | ||
643 | - | @Callable( | |
644 | - | func | |
645 | - | let | |
646 | - | then | |
627 | + | @Callable(aL) | |
628 | + | func updateExecutionChain (am,by) = { | |
629 | + | let aN = if (if (az(aL.caller)) | |
630 | + | then aC() | |
647 | 631 | else false) | |
648 | - | then | |
632 | + | then C(am, 0, u, "updateExecutionChain: invalid executionChainId") | |
649 | 633 | else false | |
650 | - | if (( | |
651 | - | then $Tuple2( | |
634 | + | if ((aN == aN)) | |
635 | + | then $Tuple2(ak(am, by), unit) | |
652 | 636 | else throw("Strict value is not equal to itself.") | |
653 | 637 | } | |
654 | 638 | ||
655 | 639 | ||
656 | 640 | ||
657 | - | @Callable(aK) | |
658 | - | func setMultisig (Z) = { | |
659 | - | let aM = if (ay(aK.caller)) | |
660 | - | then v(Z, "setMultisig: invalid multisig") | |
641 | + | @Callable(aL) | |
642 | + | func updateFeeRecipient (aM) = { | |
643 | + | let aN = if (if (az(aL.caller)) | |
644 | + | then aC() | |
645 | + | else false) | |
646 | + | then v(aM, "updateFeeRecipient: invalid feeRecipient") | |
661 | 647 | else false | |
662 | - | if (( | |
663 | - | then $Tuple2( | |
648 | + | if ((aN == aN)) | |
649 | + | then $Tuple2(aw(addressFromStringValue(aM)), unit) | |
664 | 650 | else throw("Strict value is not equal to itself.") | |
665 | 651 | } | |
666 | 652 | ||
667 | 653 | ||
668 | - | @Verifier(bD) | |
669 | - | func bE () = { | |
654 | + | ||
655 | + | @Callable(aL) | |
656 | + | func updateReferrer (am,L,bz) = { | |
657 | + | let aN = if (if (if (if (az(aL.caller)) | |
658 | + | then aC() | |
659 | + | else false) | |
660 | + | then aK(am, "updateReferrer: invalid execution chain") | |
661 | + | else false) | |
662 | + | then v(L, "updateReferrer: invalid referrer") | |
663 | + | else false) | |
664 | + | then C(bz, 0, t, "updateReferrer: invalid fee") | |
665 | + | else false | |
666 | + | if ((aN == aN)) | |
667 | + | then $Tuple2(ay(am, addressFromStringValue(L), bz), unit) | |
668 | + | else throw("Strict value is not equal to itself.") | |
669 | + | } | |
670 | + | ||
671 | + | ||
672 | + | ||
673 | + | @Callable(aL) | |
674 | + | func updateBindingInfo (am,aP,bA,bB,bC,bD,bE,bF,by) = { | |
675 | + | let aN = if (if (if (if (if (if (if (if (az(aL.caller)) | |
676 | + | then aC() | |
677 | + | else false) | |
678 | + | then v(aP, "updateBindingInfo: invalid asset contract") | |
679 | + | else false) | |
680 | + | then C(am, 0, u, "updateBindingInfo: invalid executionChainId") | |
681 | + | else false) | |
682 | + | then C(bB, 0, u, "updateBindingInfo: invalid minAmount") | |
683 | + | else false) | |
684 | + | then C(bC, 0, u, "updateBindingInfo: invalid minFee") | |
685 | + | else false) | |
686 | + | then C(bD, 0, u, "updateBindingInfo: invalid thresholdFee") | |
687 | + | else false) | |
688 | + | then C(bE, 0, u, "updateBindingInfo: invalid beforePercentFee") | |
689 | + | else false) | |
690 | + | then C(bF, 0, u, "updateBindingInfo: invalid afterPercentFee") | |
691 | + | else false | |
692 | + | if ((aN == aN)) | |
693 | + | then { | |
694 | + | let aW = aH(invoke(addressFromStringValue(aP), "getAssetId", nil, nil)) | |
695 | + | if ((aW == aW)) | |
696 | + | then { | |
697 | + | let bg = $Tuple8(addressFromStringValue(aP), bA, bB, bC, bD, bE, bF, by) | |
698 | + | $Tuple2(ao(am, aW, bg), unit) | |
699 | + | } | |
700 | + | else throw("Strict value is not equal to itself.") | |
701 | + | } | |
702 | + | else throw("Strict value is not equal to itself.") | |
703 | + | } | |
704 | + | ||
705 | + | ||
706 | + | ||
707 | + | @Callable(aL) | |
708 | + | func pause () = { | |
709 | + | let aN = if (if (aF(aL.caller)) | |
710 | + | then aC() | |
711 | + | else false) | |
712 | + | then aD() | |
713 | + | else false | |
714 | + | if ((aN == aN)) | |
715 | + | then $Tuple2(U(true), unit) | |
716 | + | else throw("Strict value is not equal to itself.") | |
717 | + | } | |
718 | + | ||
719 | + | ||
720 | + | ||
721 | + | @Callable(aL) | |
722 | + | func unpause () = { | |
723 | + | let aN = if (if (aF(aL.caller)) | |
724 | + | then aC() | |
725 | + | else false) | |
726 | + | then aE() | |
727 | + | else false | |
728 | + | if ((aN == aN)) | |
729 | + | then $Tuple2(U(false), unit) | |
730 | + | else throw("Strict value is not equal to itself.") | |
731 | + | } | |
732 | + | ||
733 | + | ||
734 | + | ||
735 | + | @Callable(aL) | |
736 | + | func updatePauser (Y) = { | |
737 | + | let aN = if (if (az(aL.caller)) | |
738 | + | then aC() | |
739 | + | else false) | |
740 | + | then v(Y, "updatePauser: invalid pauser") | |
741 | + | else false | |
742 | + | if ((aN == aN)) | |
743 | + | then $Tuple2(X(addressFromStringValue(Y)), unit) | |
744 | + | else throw("Strict value is not equal to itself.") | |
745 | + | } | |
746 | + | ||
747 | + | ||
748 | + | ||
749 | + | @Callable(aL) | |
750 | + | func setMultisig (ab) = { | |
751 | + | let aN = if (az(aL.caller)) | |
752 | + | then v(ab, "setMultisig: invalid multisig") | |
753 | + | else false | |
754 | + | if ((aN == aN)) | |
755 | + | then $Tuple2(aa(addressFromStringValue(ab)), unit) | |
756 | + | else throw("Strict value is not equal to itself.") | |
757 | + | } | |
758 | + | ||
759 | + | ||
760 | + | @Verifier(bG) | |
761 | + | func bH () = { | |
670 | 762 | let y = getString(c) | |
671 | 763 | if ($isInstanceOf(y, "String")) | |
672 | 764 | then { | |
673 | - | let | |
674 | - | valueOrElse(getBoolean(addressFromStringValue( | |
765 | + | let bI = y | |
766 | + | valueOrElse(getBoolean(addressFromStringValue(bI), makeString([d, toString(this), toBase58String(bG.id)], a)), false) | |
675 | 767 | } | |
676 | - | else sigVerify( | |
768 | + | else sigVerify(bG.bodyBytes, bG.proofs[0], bG.senderPublicKey) | |
677 | 769 | } | |
678 | 770 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = "__" | |
5 | 5 | ||
6 | 6 | let b = "INIT" | |
7 | 7 | ||
8 | 8 | let c = "MULTISIG" | |
9 | 9 | ||
10 | 10 | let d = "STATUS" | |
11 | 11 | ||
12 | 12 | let e = "PAUSED" | |
13 | 13 | ||
14 | 14 | let f = "PAUSER" | |
15 | 15 | ||
16 | 16 | let g = "EXECUTOR" | |
17 | 17 | ||
18 | 18 | let h = "ROOT_ADAPTER" | |
19 | 19 | ||
20 | 20 | let i = "CALLER_CONTRACT" | |
21 | 21 | ||
22 | 22 | let j = "CHAIN" | |
23 | 23 | ||
24 | 24 | let k = "BINDING" | |
25 | 25 | ||
26 | 26 | let l = "FEE" | |
27 | 27 | ||
28 | 28 | let m = "FEE_RECIPIENT" | |
29 | 29 | ||
30 | 30 | let n = "REFERRER_FEE_PERCENT" | |
31 | 31 | ||
32 | 32 | let o = "releaseTokens" | |
33 | 33 | ||
34 | 34 | let p = "WAVES" | |
35 | 35 | ||
36 | 36 | let q = 8 | |
37 | 37 | ||
38 | 38 | let r = 6 | |
39 | 39 | ||
40 | 40 | let s = 1000000 | |
41 | 41 | ||
42 | 42 | let t = 200000 | |
43 | 43 | ||
44 | 44 | let u = 9223372036854775807 | |
45 | 45 | ||
46 | 46 | func v (w,x) = { | |
47 | 47 | let y = addressFromString(w) | |
48 | 48 | if ($isInstanceOf(y, "Address")) | |
49 | 49 | then { | |
50 | 50 | let z = y | |
51 | 51 | true | |
52 | 52 | } | |
53 | 53 | else throw(x) | |
54 | 54 | } | |
55 | 55 | ||
56 | 56 | ||
57 | 57 | func A (B,x) = { | |
58 | 58 | let y = assetInfo(fromBase58String(B)) | |
59 | 59 | if ($isInstanceOf(y, "Asset")) | |
60 | 60 | then { | |
61 | 61 | let z = y | |
62 | 62 | true | |
63 | 63 | } | |
64 | 64 | else throw(x) | |
65 | 65 | } | |
66 | 66 | ||
67 | 67 | ||
68 | 68 | func C (D,E,F,x) = if (if ((E > D)) | |
69 | 69 | then true | |
70 | 70 | else (D > F)) | |
71 | 71 | then throw(x) | |
72 | 72 | else true | |
73 | 73 | ||
74 | 74 | ||
75 | 75 | func G (D,H,x) = if ((D != H)) | |
76 | 76 | then throw(x) | |
77 | 77 | else true | |
78 | 78 | ||
79 | 79 | ||
80 | 80 | func I (J,H,x) = if ((size(J) != H)) | |
81 | 81 | then throw(x) | |
82 | 82 | else true | |
83 | 83 | ||
84 | 84 | ||
85 | - | func K (L, | |
86 | - | then (L | |
87 | - | else | |
85 | + | func K (L,x) = if ((L != "")) | |
86 | + | then v(L, x) | |
87 | + | else true | |
88 | 88 | ||
89 | 89 | ||
90 | - | func O () = { | |
90 | + | func M (N,O,P) = if ((O >= P)) | |
91 | + | then (N / pow(10, 0, (O - P), 0, 0, DOWN)) | |
92 | + | else (N * pow(10, 0, (P - O), 0, 0, DOWN)) | |
93 | + | ||
94 | + | ||
95 | + | func Q () = { | |
91 | 96 | let y = getBoolean(b) | |
92 | 97 | if ($isInstanceOf(y, "Boolean")) | |
93 | 98 | then { | |
94 | 99 | let z = y | |
95 | 100 | z | |
96 | 101 | } | |
97 | 102 | else false | |
98 | 103 | } | |
99 | 104 | ||
100 | 105 | ||
101 | - | func | |
106 | + | func R (S) = [BooleanEntry(b, S)] | |
102 | 107 | ||
103 | 108 | ||
104 | - | func | |
109 | + | func T () = { | |
105 | 110 | let y = getBoolean(e) | |
106 | 111 | if ($isInstanceOf(y, "Boolean")) | |
107 | 112 | then { | |
108 | 113 | let z = y | |
109 | 114 | z | |
110 | 115 | } | |
111 | 116 | else false | |
112 | 117 | } | |
113 | 118 | ||
114 | 119 | ||
115 | - | func | |
120 | + | func U (V) = [BooleanEntry(e, V)] | |
116 | 121 | ||
117 | 122 | ||
118 | - | func | |
123 | + | func W () = { | |
119 | 124 | let y = getString(f) | |
120 | 125 | if ($isInstanceOf(y, "String")) | |
121 | 126 | then { | |
122 | 127 | let z = y | |
123 | 128 | addressFromStringValue(z) | |
124 | 129 | } | |
125 | 130 | else Address(base58'') | |
126 | 131 | } | |
127 | 132 | ||
128 | 133 | ||
129 | - | func | |
134 | + | func X (Y) = [StringEntry(f, toString(Y))] | |
130 | 135 | ||
131 | 136 | ||
132 | - | func | |
137 | + | func Z () = { | |
133 | 138 | let y = getString(c) | |
134 | 139 | if ($isInstanceOf(y, "String")) | |
135 | 140 | then { | |
136 | 141 | let z = y | |
137 | 142 | addressFromStringValue(z) | |
138 | 143 | } | |
139 | 144 | else Address(base58'') | |
140 | 145 | } | |
141 | 146 | ||
142 | 147 | ||
143 | - | func | |
148 | + | func aa (ab) = [StringEntry(c, toString(ab))] | |
144 | 149 | ||
145 | 150 | ||
146 | - | func | |
151 | + | func ac () = { | |
147 | 152 | let y = getString(g) | |
148 | 153 | if ($isInstanceOf(y, "String")) | |
149 | 154 | then { | |
150 | 155 | let z = y | |
151 | 156 | addressFromStringValue(z) | |
152 | 157 | } | |
153 | 158 | else Address(base58'') | |
154 | 159 | } | |
155 | 160 | ||
156 | 161 | ||
157 | - | func | |
162 | + | func ad (ae) = [StringEntry(g, toString(ae))] | |
158 | 163 | ||
159 | 164 | ||
160 | - | func | |
165 | + | func af () = { | |
161 | 166 | let y = getString(i) | |
162 | 167 | if ($isInstanceOf(y, "String")) | |
163 | 168 | then { | |
164 | 169 | let z = y | |
165 | 170 | z | |
166 | 171 | } | |
167 | 172 | else "" | |
168 | 173 | } | |
169 | 174 | ||
170 | 175 | ||
171 | - | func | |
176 | + | func ag (ah) = [StringEntry(i, ah)] | |
172 | 177 | ||
173 | 178 | ||
174 | - | func | |
175 | - | let y = getBoolean(makeString([j, toString( | |
179 | + | func ai (aj) = { | |
180 | + | let y = getBoolean(makeString([j, toString(aj)], a)) | |
176 | 181 | if ($isInstanceOf(y, "Boolean")) | |
177 | 182 | then { | |
178 | 183 | let z = y | |
179 | 184 | z | |
180 | 185 | } | |
181 | 186 | else false | |
182 | 187 | } | |
183 | 188 | ||
184 | 189 | ||
185 | - | func | |
190 | + | func ak (aj,D) = [BooleanEntry(makeString([j, toString(aj)], a), D)] | |
186 | 191 | ||
187 | 192 | ||
188 | - | func | |
189 | - | let y = getString(makeString([k, toString( | |
193 | + | func al (am,B) = { | |
194 | + | let y = getString(makeString([k, toString(am), toBase58String(B)], a)) | |
190 | 195 | if ($isInstanceOf(y, "String")) | |
191 | 196 | then { | |
192 | 197 | let z = y | |
193 | - | let | |
194 | - | $Tuple8(addressFromStringValue( | |
198 | + | let an = split(z, a) | |
199 | + | $Tuple8(addressFromStringValue(an[0]), an[1], parseIntValue(an[2]), parseIntValue(an[3]), parseIntValue(an[4]), parseIntValue(an[5]), parseIntValue(an[6]), if ((an[7] == "1")) | |
195 | 200 | then true | |
196 | 201 | else false) | |
197 | 202 | } | |
198 | 203 | else $Tuple8(Address(base58''), "", 0, 0, 0, 0, 0, false) | |
199 | 204 | } | |
200 | 205 | ||
201 | 206 | ||
202 | - | func | |
207 | + | func ao (am,B,ap) = [StringEntry(makeString([k, toString(am), toBase58String(B)], a), makeString([toString(ap._1), ap._2, toString(ap._3), toString(ap._4), toString(ap._5), toString(ap._6), toString(ap._7), if (ap._8) | |
203 | 208 | then "1" | |
204 | 209 | else "0"], a))] | |
205 | 210 | ||
206 | 211 | ||
207 | - | func | |
212 | + | func aq (B) = { | |
208 | 213 | let y = getInteger(makeString([l, toBase58String(B)], a)) | |
209 | 214 | if ($isInstanceOf(y, "Int")) | |
210 | 215 | then { | |
211 | 216 | let z = y | |
212 | 217 | z | |
213 | 218 | } | |
214 | 219 | else 0 | |
215 | 220 | } | |
216 | 221 | ||
217 | 222 | ||
218 | - | func | |
223 | + | func ar (B,D) = [IntegerEntry(makeString([l, toBase58String(B)], a), D)] | |
219 | 224 | ||
220 | 225 | ||
221 | - | func | |
226 | + | func as () = { | |
222 | 227 | let y = getString(h) | |
223 | 228 | if ($isInstanceOf(y, "String")) | |
224 | 229 | then { | |
225 | 230 | let z = y | |
226 | 231 | addressFromStringValue(z) | |
227 | 232 | } | |
228 | 233 | else Address(base58'') | |
229 | 234 | } | |
230 | 235 | ||
231 | 236 | ||
232 | - | func | |
237 | + | func at (au) = [StringEntry(h, toString(au))] | |
233 | 238 | ||
234 | 239 | ||
235 | - | func | |
240 | + | func av () = { | |
236 | 241 | let y = getString(m) | |
237 | 242 | if ($isInstanceOf(y, "String")) | |
238 | 243 | then { | |
239 | 244 | let z = y | |
240 | 245 | addressFromStringValue(z) | |
241 | 246 | } | |
242 | 247 | else Address(base58'') | |
243 | 248 | } | |
244 | 249 | ||
245 | 250 | ||
246 | - | func | |
251 | + | func aw (D) = [StringEntry(m, toString(D))] | |
247 | 252 | ||
248 | 253 | ||
249 | - | func | |
250 | - | let y = getInteger(makeString([n, toString( | |
254 | + | func ax (am,L) = { | |
255 | + | let y = getInteger(makeString([n, toString(am), toString(L)], a)) | |
251 | 256 | if ($isInstanceOf(y, "Int")) | |
252 | 257 | then { | |
253 | 258 | let z = y | |
254 | 259 | z | |
255 | 260 | } | |
256 | 261 | else 0 | |
257 | 262 | } | |
258 | 263 | ||
259 | 264 | ||
260 | - | func | |
265 | + | func ay (am,L,D) = [IntegerEntry(makeString([n, toString(am), toString(L)], a), D)] | |
261 | 266 | ||
262 | 267 | ||
263 | - | func | |
268 | + | func az (ah) = if ((ah != this)) | |
264 | 269 | then throw("_onlyThisContract: revert") | |
265 | 270 | else true | |
266 | 271 | ||
267 | 272 | ||
268 | - | func | |
273 | + | func aA () = if ((Z() == Address(base58''))) | |
269 | 274 | then throw("_whenMultisigSet: revert") | |
270 | 275 | else true | |
271 | 276 | ||
272 | 277 | ||
273 | - | func | |
278 | + | func aB () = if (Q()) | |
274 | 279 | then throw("_whenNotInitialized: revert") | |
275 | 280 | else true | |
276 | 281 | ||
277 | 282 | ||
278 | - | func | |
283 | + | func aC () = if (!(Q())) | |
279 | 284 | then throw("_whenInitialized: revert") | |
280 | 285 | else true | |
281 | 286 | ||
282 | 287 | ||
283 | - | func | |
288 | + | func aD () = if (T()) | |
284 | 289 | then throw("_whenNotPaused: revert") | |
285 | 290 | else true | |
286 | 291 | ||
287 | 292 | ||
288 | - | func | |
293 | + | func aE () = if (!(T())) | |
289 | 294 | then throw("_whenPaused: revert") | |
290 | 295 | else true | |
291 | 296 | ||
292 | 297 | ||
293 | - | func | |
298 | + | func aF (ah) = if ((ah != W())) | |
294 | 299 | then throw("_onlyPauser: revert") | |
295 | 300 | else true | |
296 | 301 | ||
297 | 302 | ||
298 | - | func | |
303 | + | func aG (D) = { | |
299 | 304 | let y = D | |
300 | 305 | if ($isInstanceOf(y, "Int")) | |
301 | 306 | then { | |
302 | 307 | let z = y | |
303 | 308 | z | |
304 | 309 | } | |
305 | 310 | else throw("_asInt: revert") | |
306 | 311 | } | |
307 | 312 | ||
308 | 313 | ||
309 | - | func | |
314 | + | func aH (D) = { | |
310 | 315 | let y = D | |
311 | 316 | if ($isInstanceOf(y, "ByteVector")) | |
312 | 317 | then { | |
313 | 318 | let z = y | |
314 | 319 | z | |
315 | 320 | } | |
316 | 321 | else throw("_asBytes: revert") | |
317 | 322 | } | |
318 | 323 | ||
319 | 324 | ||
320 | - | func | |
325 | + | func aI (D,x) = if ((D != ac())) | |
321 | 326 | then throw(x) | |
322 | 327 | else true | |
323 | 328 | ||
324 | 329 | ||
325 | - | func | |
330 | + | func aJ (D,x) = if ((D != af())) | |
326 | 331 | then throw(x) | |
327 | 332 | else true | |
328 | 333 | ||
329 | 334 | ||
330 | - | func | |
335 | + | func aK (am,x) = if (!(ai(am))) | |
331 | 336 | then throw(x) | |
332 | 337 | else true | |
333 | 338 | ||
334 | 339 | ||
335 | - | @Callable(aK) | |
336 | - | func init (ac,as,W,aL) = { | |
337 | - | let aM = if (if (if (if (if (if (ay(aK.caller)) | |
340 | + | @Callable(aL) | |
341 | + | func init (ae,au,Y,aM) = { | |
342 | + | let aN = if (if (if (if (if (if (az(aL.caller)) | |
343 | + | then aB() | |
344 | + | else false) | |
338 | 345 | then aA() | |
339 | 346 | else false) | |
340 | - | then | |
347 | + | then v(ae, "init: invalid executor") | |
341 | 348 | else false) | |
342 | - | then v( | |
349 | + | then v(au, "init: invalid adapter") | |
343 | 350 | else false) | |
344 | - | then v( | |
351 | + | then v(Y, "init: invalid pauser") | |
345 | 352 | else false) | |
346 | - | then v(W, "init: invalid pauser") | |
347 | - | else false) | |
348 | - | then v(aL, "init: invalid feeRecipient") | |
353 | + | then v(aM, "init: invalid feeRecipient") | |
349 | 354 | else false | |
350 | - | if (( | |
351 | - | then $Tuple2((((( | |
355 | + | if ((aN == aN)) | |
356 | + | then $Tuple2(((((R(true) ++ ad(addressFromStringValue(ae))) ++ at(addressFromStringValue(au))) ++ X(addressFromStringValue(Y))) ++ aw(addressFromStringValue(aM))), unit) | |
352 | 357 | else throw("Strict value is not equal to itself.") | |
353 | 358 | } | |
354 | 359 | ||
355 | 360 | ||
356 | 361 | ||
357 | - | @Callable( | |
358 | - | func mintTokens ( | |
359 | - | let | |
360 | - | let | |
361 | - | let | |
362 | - | let | |
363 | - | then | |
362 | + | @Callable(aL) | |
363 | + | func mintTokens (aO,aP,N,aQ,aR,L,aS) = { | |
364 | + | let aT = valueOrErrorMessage(parseInt(N), "mint: amount is not Int") | |
365 | + | let aU = valueOrErrorMessage(parseInt(aR), "mint: gaslessReward is not Int") | |
366 | + | let aV = valueOrErrorMessage(parseInt(aS), "mint: referrerFee is not Int") | |
367 | + | let aN = if (if (if (if (if (if (if (if (aC()) | |
368 | + | then aD() | |
364 | 369 | else false) | |
365 | - | then v( | |
370 | + | then v(aP, "mint: invalid asset contract") | |
366 | 371 | else false) | |
367 | - | then | |
372 | + | then aI(aL.caller, "mint: invalid executor") | |
368 | 373 | else false) | |
369 | - | then | |
374 | + | then aJ(aO, "mint: invalid caller") | |
370 | 375 | else false) | |
371 | - | then v( | |
376 | + | then v(aQ, "mint: invalid recipient address") | |
372 | 377 | else false) | |
373 | - | then C( | |
378 | + | then C(aT, 0, u, "mint: invalid amount") | |
374 | 379 | else false) | |
375 | - | then C( | |
380 | + | then C(aU, 0, u, "mint: invalid gaslessReward") | |
376 | 381 | else false) | |
377 | - | then C( | |
382 | + | then C(aV, 0, u, "mint: invalid referrer fee") | |
378 | 383 | else false | |
379 | - | if (( | |
384 | + | if ((aN == aN)) | |
380 | 385 | then { | |
381 | - | let | |
382 | - | if (( | |
386 | + | let aW = aH(invoke(addressFromStringValue(aP), "getAssetId", nil, nil)) | |
387 | + | if ((aW == aW)) | |
383 | 388 | then { | |
384 | - | let | |
385 | - | if (( | |
389 | + | let aX = aG(invoke(addressFromStringValue(aP), "getDecimals", nil, nil)) | |
390 | + | if ((aX == aX)) | |
386 | 391 | then { | |
387 | - | let | |
388 | - | let | |
389 | - | let | |
390 | - | let y = addressFromString( | |
392 | + | let aY = M(aT, r, aX) | |
393 | + | let aZ = M(aU, r, aX) | |
394 | + | let ba = { | |
395 | + | let y = addressFromString(L) | |
391 | 396 | if ($isInstanceOf(y, "Address")) | |
392 | 397 | then { | |
393 | - | let | |
394 | - | let | |
395 | - | $Tuple2( | |
398 | + | let bb = y | |
399 | + | let bc = M(aV, r, aX) | |
400 | + | $Tuple2(bc, [ScriptTransfer(bb, bc, aW)]) | |
396 | 401 | } | |
397 | 402 | else $Tuple2(0, nil) | |
398 | 403 | } | |
399 | - | let | |
400 | - | let | |
401 | - | let | |
402 | - | if (( | |
404 | + | let bc = ba._1 | |
405 | + | let bd = ba._2 | |
406 | + | let be = invoke(addressFromStringValue(aP), "mint", [(aY + bc), toString(this)], nil) | |
407 | + | if ((be == be)) | |
403 | 408 | then { | |
404 | - | let | |
405 | - | then (addressFromStringValue( | |
409 | + | let bf = if (if ((aZ > 0)) | |
410 | + | then (addressFromStringValue(aQ) != aL.originCaller) | |
406 | 411 | else false) | |
407 | - | then [ScriptTransfer(addressFromStringValue( | |
408 | - | else [ScriptTransfer(addressFromStringValue( | |
409 | - | $Tuple2(( | |
412 | + | then [ScriptTransfer(addressFromStringValue(aQ), (aY - aZ), aW), ScriptTransfer(aL.originCaller, aZ, aW)] | |
413 | + | else [ScriptTransfer(addressFromStringValue(aQ), aY, aW)] | |
414 | + | $Tuple2((bf ++ bd), unit) | |
410 | 415 | } | |
411 | 416 | else throw("Strict value is not equal to itself.") | |
412 | 417 | } | |
413 | 418 | else throw("Strict value is not equal to itself.") | |
414 | 419 | } | |
415 | 420 | else throw("Strict value is not equal to itself.") | |
416 | 421 | } | |
417 | 422 | else throw("Strict value is not equal to itself.") | |
418 | 423 | } | |
419 | 424 | ||
420 | 425 | ||
421 | 426 | ||
422 | - | @Callable( | |
423 | - | func burnTokens ( | |
424 | - | let | |
425 | - | then | |
427 | + | @Callable(aL) | |
428 | + | func burnTokens (am,aQ,L,aR) = { | |
429 | + | let aN = if (if (if (if (if (aC()) | |
430 | + | then aD() | |
426 | 431 | else false) | |
427 | - | then | |
432 | + | then aK(am, "burnTokens: invalid execution chain") | |
428 | 433 | else false) | |
429 | - | then I( | |
434 | + | then I(aL.payments, 1, "burnTokens: no payment") | |
430 | 435 | else false) | |
431 | - | then C( | |
436 | + | then C(aR, 0, u, "burnTokens: invalid gaslessReward") | |
432 | 437 | else false) | |
433 | - | then C( | |
438 | + | then C(aL.payments[0].amount, 0, u, "burnTokens: invalid payment amount") | |
434 | 439 | else false | |
435 | - | if (( | |
440 | + | if ((aN == aN)) | |
436 | 441 | then { | |
437 | - | let | |
438 | - | let | |
439 | - | let y = | |
442 | + | let aT = aL.payments[0].amount | |
443 | + | let aW = { | |
444 | + | let y = aL.payments[0].assetId | |
440 | 445 | if ($isInstanceOf(y, "ByteVector")) | |
441 | 446 | then { | |
442 | 447 | let z = y | |
443 | 448 | z | |
444 | 449 | } | |
445 | - | else throw(" | |
450 | + | else throw("burnTokens: invalid asset") | |
446 | 451 | } | |
447 | - | let | |
448 | - | let | |
449 | - | let | |
450 | - | let | |
451 | - | let | |
452 | - | let | |
453 | - | let | |
454 | - | let | |
455 | - | let | |
456 | - | let | |
457 | - | then C( | |
452 | + | let bg = al(am, aW) | |
453 | + | let bh = bg._1 | |
454 | + | let bi = bg._2 | |
455 | + | let bj = bg._3 | |
456 | + | let bk = bg._4 | |
457 | + | let bl = bg._5 | |
458 | + | let bm = bg._6 | |
459 | + | let bn = bg._7 | |
460 | + | let bo = bg._8 | |
461 | + | let bp = if (if (v(toString(bh), "burnTokens: no such binding")) | |
462 | + | then C(aT, bj, u, "burnTokens: less than min") | |
458 | 463 | else false) | |
459 | - | then G( | |
464 | + | then G(bo, true, "burnTokens: token is disabled") | |
460 | 465 | else false | |
461 | - | if (( | |
466 | + | if ((bp == bp)) | |
462 | 467 | then { | |
463 | - | let | |
464 | - | if (( | |
468 | + | let aX = aG(invoke(bh, "getDecimals", nil, nil)) | |
469 | + | if ((aX == aX)) | |
465 | 470 | then { | |
466 | - | let | |
467 | - | then | |
468 | - | else | |
469 | - | let | |
470 | - | let | |
471 | - | if (( | |
471 | + | let bq = if ((aT > bl)) | |
472 | + | then bn | |
473 | + | else bm | |
474 | + | let br = (bk + fraction(aT, bq, s)) | |
475 | + | let bs = C(aT, (br + 1), u, "burnTokens: fee more than amount") | |
476 | + | if ((bs == bs)) | |
472 | 477 | then { | |
473 | - | let | |
474 | - | let | |
475 | - | if (( | |
478 | + | let bt = (aT - br) | |
479 | + | let bu = C(bt, (aR + 1), u, "burnTokens: reward more than amount") | |
480 | + | if ((bu == bu)) | |
476 | 481 | then { | |
477 | - | let | |
478 | - | let | |
479 | - | let | |
480 | - | let | |
481 | - | if (( | |
482 | - | then $Tuple2(( | |
482 | + | let bv = (aq(aW) + br) | |
483 | + | let aY = M(bt, aX, r) | |
484 | + | let aZ = M(aR, aX, r) | |
485 | + | let be = invoke(as(), o, [am, bi, aY, aQ, aZ], nil) | |
486 | + | if ((be == be)) | |
487 | + | then $Tuple2((ar(aW, bv) ++ [Burn(aW, bt)]), unit) | |
483 | 488 | else throw("Strict value is not equal to itself.") | |
484 | 489 | } | |
485 | 490 | else throw("Strict value is not equal to itself.") | |
486 | 491 | } | |
487 | 492 | else throw("Strict value is not equal to itself.") | |
488 | 493 | } | |
489 | 494 | else throw("Strict value is not equal to itself.") | |
490 | 495 | } | |
491 | 496 | else throw("Strict value is not equal to itself.") | |
492 | 497 | } | |
493 | 498 | else throw("Strict value is not equal to itself.") | |
494 | 499 | } | |
495 | 500 | ||
496 | 501 | ||
497 | 502 | ||
498 | - | @Callable( | |
499 | - | func | |
500 | - | let | |
501 | - | then | |
503 | + | @Callable(aL) | |
504 | + | func burnTokensV2 (am,aQ,L,aR) = { | |
505 | + | let aN = if (if (if (if (if (if (aC()) | |
506 | + | then aD() | |
502 | 507 | else false) | |
503 | - | then A(B, "transferFee: invalid asset") | |
508 | + | then aK(am, "burnTokensV2: invalid execution chain") | |
509 | + | else false) | |
510 | + | then I(aL.payments, 1, "burnTokensV2: no payment") | |
511 | + | else false) | |
512 | + | then C(aR, 0, u, "burnTokensV2: invalid gaslessReward") | |
513 | + | else false) | |
514 | + | then C(aL.payments[0].amount, 0, u, "burnTokensV2: invalid payment amount") | |
515 | + | else false) | |
516 | + | then K(L, "burnTokensV2: invalid referrer") | |
504 | 517 | else false | |
505 | - | if (( | |
518 | + | if ((aN == aN)) | |
506 | 519 | then { | |
507 | - | let aV = fromBase58String(B) | |
508 | - | let bf = aj(ak, aV) | |
509 | - | let bg = bf._1 | |
510 | - | let bn = bf._8 | |
511 | - | let bo = if (v(toString(bg), "transferFee: no such binding")) | |
512 | - | then G(bn, true, "transferFee: token is disabled") | |
520 | + | let aT = aL.payments[0].amount | |
521 | + | let aW = { | |
522 | + | let y = aL.payments[0].assetId | |
523 | + | if ($isInstanceOf(y, "ByteVector")) | |
524 | + | then { | |
525 | + | let z = y | |
526 | + | z | |
527 | + | } | |
528 | + | else throw("burnTokensV2: invalid asset") | |
529 | + | } | |
530 | + | let bg = al(am, aW) | |
531 | + | let bh = bg._1 | |
532 | + | let bi = bg._2 | |
533 | + | let bj = bg._3 | |
534 | + | let bk = bg._4 | |
535 | + | let bl = bg._5 | |
536 | + | let bm = bg._6 | |
537 | + | let bn = bg._7 | |
538 | + | let bo = bg._8 | |
539 | + | let bp = if (if (v(toString(bh), "burnTokensV2: no such binding")) | |
540 | + | then C(aT, bj, u, "burnTokensV2: less than min") | |
541 | + | else false) | |
542 | + | then G(bo, true, "burnTokensV2: token is disabled") | |
513 | 543 | else false | |
514 | - | if ((bo == bo)) | |
515 | - | then $Tuple2((ap(aV, 0) ++ [ScriptTransfer(at(), ao(aV), aV)]), unit) | |
516 | - | else throw("Strict value is not equal to itself.") | |
517 | - | } | |
518 | - | else throw("Strict value is not equal to itself.") | |
519 | - | } | |
520 | - | ||
521 | - | ||
522 | - | ||
523 | - | @Callable(aK) | |
524 | - | func updateCallerContract (aN) = { | |
525 | - | let aM = if (ay(aK.caller)) | |
526 | - | then aB() | |
527 | - | else false | |
528 | - | if ((aM == aM)) | |
529 | - | then $Tuple2(ae(aN), unit) | |
530 | - | else throw("Strict value is not equal to itself.") | |
531 | - | } | |
532 | - | ||
533 | - | ||
534 | - | ||
535 | - | @Callable(aK) | |
536 | - | func updateExecutionChain (ak,bv) = { | |
537 | - | let aM = if (if (ay(aK.caller)) | |
538 | - | then aB() | |
539 | - | else false) | |
540 | - | then C(ak, 0, u, "updateExecutionChain: invalid executionChainId") | |
541 | - | else false | |
542 | - | if ((aM == aM)) | |
543 | - | then $Tuple2(ai(ak, bv), unit) | |
544 | - | else throw("Strict value is not equal to itself.") | |
545 | - | } | |
546 | - | ||
547 | - | ||
548 | - | ||
549 | - | @Callable(aK) | |
550 | - | func updateFeeRecipient (aL) = { | |
551 | - | let aM = if (if (ay(aK.caller)) | |
552 | - | then aB() | |
553 | - | else false) | |
554 | - | then v(aL, "updateFeeRecipient: invalid feeRecipient") | |
555 | - | else false | |
556 | - | if ((aM == aM)) | |
557 | - | then $Tuple2(au(addressFromStringValue(aL)), unit) | |
558 | - | else throw("Strict value is not equal to itself.") | |
559 | - | } | |
560 | - | ||
561 | - | ||
562 | - | ||
563 | - | @Callable(aK) | |
564 | - | func updateReferrer (ak,aw,bw) = { | |
565 | - | let aM = if (if (if (if (ay(aK.caller)) | |
566 | - | then aB() | |
567 | - | else false) | |
568 | - | then aJ(ak, "updateReferrer: invalid execution chain") | |
569 | - | else false) | |
570 | - | then v(aw, "updateReferrer: invalid referrer") | |
571 | - | else false) | |
572 | - | then C(bw, 0, t, "updateReferrer: invalid fee") | |
573 | - | else false | |
574 | - | if ((aM == aM)) | |
575 | - | then $Tuple2(ax(ak, addressFromStringValue(aw), bw), unit) | |
576 | - | else throw("Strict value is not equal to itself.") | |
577 | - | } | |
578 | - | ||
579 | - | ||
580 | - | ||
581 | - | @Callable(aK) | |
582 | - | func updateBindingInfo (ak,aO,bx,by,bz,bA,bB,bC,bv) = { | |
583 | - | let aM = if (if (if (if (if (if (if (if (ay(aK.caller)) | |
584 | - | then aB() | |
585 | - | else false) | |
586 | - | then v(aO, "updateBindingInfo: invalid asset contract") | |
587 | - | else false) | |
588 | - | then C(ak, 0, u, "updateBindingInfo: invalid executionChainId") | |
589 | - | else false) | |
590 | - | then C(by, 0, u, "updateBindingInfo: invalid minAmount") | |
591 | - | else false) | |
592 | - | then C(bz, 0, u, "updateBindingInfo: invalid minFee") | |
593 | - | else false) | |
594 | - | then C(bA, 0, u, "updateBindingInfo: invalid thresholdFee") | |
595 | - | else false) | |
596 | - | then C(bB, 0, u, "updateBindingInfo: invalid beforePercentFee") | |
597 | - | else false) | |
598 | - | then C(bC, 0, u, "updateBindingInfo: invalid afterPercentFee") | |
599 | - | else false | |
600 | - | if ((aM == aM)) | |
601 | - | then { | |
602 | - | let aV = aG(invoke(addressFromStringValue(aO), "getAssetId", nil, nil)) | |
603 | - | if ((aV == aV)) | |
544 | + | if ((bp == bp)) | |
604 | 545 | then { | |
605 | - | let bf = $Tuple8(addressFromStringValue(aO), bx, by, bz, bA, bB, bC, bv) | |
606 | - | $Tuple2(am(ak, aV, bf), unit) | |
546 | + | let aX = aG(invoke(bh, "getDecimals", nil, nil)) | |
547 | + | if ((aX == aX)) | |
548 | + | then { | |
549 | + | let bq = if ((aT > bl)) | |
550 | + | then bn | |
551 | + | else bm | |
552 | + | let br = (bk + fraction(aT, bq, s)) | |
553 | + | let bs = C(aT, (br + 1), u, "burnTokensV2: fee more than amount") | |
554 | + | if ((bs == bs)) | |
555 | + | then { | |
556 | + | let bw = if ((L != "")) | |
557 | + | then { | |
558 | + | let ba = addressFromStringValue(L) | |
559 | + | let bx = fraction(ax(am, ba), br, s) | |
560 | + | $Tuple2(bx, [ScriptTransfer(ba, bx, aW)]) | |
561 | + | } | |
562 | + | else $Tuple2(0, nil) | |
563 | + | let aV = bw._1 | |
564 | + | let bd = bw._2 | |
565 | + | let bt = (aT - br) | |
566 | + | let bu = C(bt, (aR + 1), u, "burnTokensV2: reward more than amount") | |
567 | + | if ((bu == bu)) | |
568 | + | then { | |
569 | + | let bv = ((aq(aW) + br) - aV) | |
570 | + | let aY = M(bt, aX, r) | |
571 | + | let aZ = M(aR, aX, r) | |
572 | + | let be = invoke(as(), o, [am, bi, aY, aQ, aZ], nil) | |
573 | + | if ((be == be)) | |
574 | + | then $Tuple2(((ar(aW, bv) ++ bd) ++ [Burn(aW, bt)]), unit) | |
575 | + | else throw("Strict value is not equal to itself.") | |
576 | + | } | |
577 | + | else throw("Strict value is not equal to itself.") | |
578 | + | } | |
579 | + | else throw("Strict value is not equal to itself.") | |
580 | + | } | |
581 | + | else throw("Strict value is not equal to itself.") | |
607 | 582 | } | |
608 | 583 | else throw("Strict value is not equal to itself.") | |
609 | 584 | } | |
610 | 585 | else throw("Strict value is not equal to itself.") | |
611 | 586 | } | |
612 | 587 | ||
613 | 588 | ||
614 | 589 | ||
615 | - | @Callable( | |
616 | - | func | |
617 | - | let | |
618 | - | then | |
590 | + | @Callable(aL) | |
591 | + | func transferFee (am,B) = { | |
592 | + | let aN = if (if (aC()) | |
593 | + | then aD() | |
619 | 594 | else false) | |
620 | - | then | |
595 | + | then A(B, "transferFee: invalid asset") | |
621 | 596 | else false | |
622 | - | if ((aM == aM)) | |
623 | - | then $Tuple2(S(true), unit) | |
597 | + | if ((aN == aN)) | |
598 | + | then { | |
599 | + | let aW = fromBase58String(B) | |
600 | + | let bg = al(am, aW) | |
601 | + | let bh = bg._1 | |
602 | + | let bo = bg._8 | |
603 | + | let bp = if (v(toString(bh), "transferFee: no such binding")) | |
604 | + | then G(bo, true, "transferFee: token is disabled") | |
605 | + | else false | |
606 | + | if ((bp == bp)) | |
607 | + | then $Tuple2((ar(aW, 0) ++ [ScriptTransfer(av(), aq(aW), aW)]), unit) | |
608 | + | else throw("Strict value is not equal to itself.") | |
609 | + | } | |
624 | 610 | else throw("Strict value is not equal to itself.") | |
625 | 611 | } | |
626 | 612 | ||
627 | 613 | ||
628 | 614 | ||
629 | - | @Callable(aK) | |
630 | - | func unpause () = { | |
631 | - | let aM = if (if (aE(aK.caller)) | |
632 | - | then aB() | |
633 | - | else false) | |
634 | - | then aD() | |
615 | + | @Callable(aL) | |
616 | + | func updateCallerContract (aO) = { | |
617 | + | let aN = if (az(aL.caller)) | |
618 | + | then aC() | |
635 | 619 | else false | |
636 | - | if (( | |
637 | - | then $Tuple2( | |
620 | + | if ((aN == aN)) | |
621 | + | then $Tuple2(ag(aO), unit) | |
638 | 622 | else throw("Strict value is not equal to itself.") | |
639 | 623 | } | |
640 | 624 | ||
641 | 625 | ||
642 | 626 | ||
643 | - | @Callable( | |
644 | - | func | |
645 | - | let | |
646 | - | then | |
627 | + | @Callable(aL) | |
628 | + | func updateExecutionChain (am,by) = { | |
629 | + | let aN = if (if (az(aL.caller)) | |
630 | + | then aC() | |
647 | 631 | else false) | |
648 | - | then | |
632 | + | then C(am, 0, u, "updateExecutionChain: invalid executionChainId") | |
649 | 633 | else false | |
650 | - | if (( | |
651 | - | then $Tuple2( | |
634 | + | if ((aN == aN)) | |
635 | + | then $Tuple2(ak(am, by), unit) | |
652 | 636 | else throw("Strict value is not equal to itself.") | |
653 | 637 | } | |
654 | 638 | ||
655 | 639 | ||
656 | 640 | ||
657 | - | @Callable(aK) | |
658 | - | func setMultisig (Z) = { | |
659 | - | let aM = if (ay(aK.caller)) | |
660 | - | then v(Z, "setMultisig: invalid multisig") | |
641 | + | @Callable(aL) | |
642 | + | func updateFeeRecipient (aM) = { | |
643 | + | let aN = if (if (az(aL.caller)) | |
644 | + | then aC() | |
645 | + | else false) | |
646 | + | then v(aM, "updateFeeRecipient: invalid feeRecipient") | |
661 | 647 | else false | |
662 | - | if (( | |
663 | - | then $Tuple2( | |
648 | + | if ((aN == aN)) | |
649 | + | then $Tuple2(aw(addressFromStringValue(aM)), unit) | |
664 | 650 | else throw("Strict value is not equal to itself.") | |
665 | 651 | } | |
666 | 652 | ||
667 | 653 | ||
668 | - | @Verifier(bD) | |
669 | - | func bE () = { | |
654 | + | ||
655 | + | @Callable(aL) | |
656 | + | func updateReferrer (am,L,bz) = { | |
657 | + | let aN = if (if (if (if (az(aL.caller)) | |
658 | + | then aC() | |
659 | + | else false) | |
660 | + | then aK(am, "updateReferrer: invalid execution chain") | |
661 | + | else false) | |
662 | + | then v(L, "updateReferrer: invalid referrer") | |
663 | + | else false) | |
664 | + | then C(bz, 0, t, "updateReferrer: invalid fee") | |
665 | + | else false | |
666 | + | if ((aN == aN)) | |
667 | + | then $Tuple2(ay(am, addressFromStringValue(L), bz), unit) | |
668 | + | else throw("Strict value is not equal to itself.") | |
669 | + | } | |
670 | + | ||
671 | + | ||
672 | + | ||
673 | + | @Callable(aL) | |
674 | + | func updateBindingInfo (am,aP,bA,bB,bC,bD,bE,bF,by) = { | |
675 | + | let aN = if (if (if (if (if (if (if (if (az(aL.caller)) | |
676 | + | then aC() | |
677 | + | else false) | |
678 | + | then v(aP, "updateBindingInfo: invalid asset contract") | |
679 | + | else false) | |
680 | + | then C(am, 0, u, "updateBindingInfo: invalid executionChainId") | |
681 | + | else false) | |
682 | + | then C(bB, 0, u, "updateBindingInfo: invalid minAmount") | |
683 | + | else false) | |
684 | + | then C(bC, 0, u, "updateBindingInfo: invalid minFee") | |
685 | + | else false) | |
686 | + | then C(bD, 0, u, "updateBindingInfo: invalid thresholdFee") | |
687 | + | else false) | |
688 | + | then C(bE, 0, u, "updateBindingInfo: invalid beforePercentFee") | |
689 | + | else false) | |
690 | + | then C(bF, 0, u, "updateBindingInfo: invalid afterPercentFee") | |
691 | + | else false | |
692 | + | if ((aN == aN)) | |
693 | + | then { | |
694 | + | let aW = aH(invoke(addressFromStringValue(aP), "getAssetId", nil, nil)) | |
695 | + | if ((aW == aW)) | |
696 | + | then { | |
697 | + | let bg = $Tuple8(addressFromStringValue(aP), bA, bB, bC, bD, bE, bF, by) | |
698 | + | $Tuple2(ao(am, aW, bg), unit) | |
699 | + | } | |
700 | + | else throw("Strict value is not equal to itself.") | |
701 | + | } | |
702 | + | else throw("Strict value is not equal to itself.") | |
703 | + | } | |
704 | + | ||
705 | + | ||
706 | + | ||
707 | + | @Callable(aL) | |
708 | + | func pause () = { | |
709 | + | let aN = if (if (aF(aL.caller)) | |
710 | + | then aC() | |
711 | + | else false) | |
712 | + | then aD() | |
713 | + | else false | |
714 | + | if ((aN == aN)) | |
715 | + | then $Tuple2(U(true), unit) | |
716 | + | else throw("Strict value is not equal to itself.") | |
717 | + | } | |
718 | + | ||
719 | + | ||
720 | + | ||
721 | + | @Callable(aL) | |
722 | + | func unpause () = { | |
723 | + | let aN = if (if (aF(aL.caller)) | |
724 | + | then aC() | |
725 | + | else false) | |
726 | + | then aE() | |
727 | + | else false | |
728 | + | if ((aN == aN)) | |
729 | + | then $Tuple2(U(false), unit) | |
730 | + | else throw("Strict value is not equal to itself.") | |
731 | + | } | |
732 | + | ||
733 | + | ||
734 | + | ||
735 | + | @Callable(aL) | |
736 | + | func updatePauser (Y) = { | |
737 | + | let aN = if (if (az(aL.caller)) | |
738 | + | then aC() | |
739 | + | else false) | |
740 | + | then v(Y, "updatePauser: invalid pauser") | |
741 | + | else false | |
742 | + | if ((aN == aN)) | |
743 | + | then $Tuple2(X(addressFromStringValue(Y)), unit) | |
744 | + | else throw("Strict value is not equal to itself.") | |
745 | + | } | |
746 | + | ||
747 | + | ||
748 | + | ||
749 | + | @Callable(aL) | |
750 | + | func setMultisig (ab) = { | |
751 | + | let aN = if (az(aL.caller)) | |
752 | + | then v(ab, "setMultisig: invalid multisig") | |
753 | + | else false | |
754 | + | if ((aN == aN)) | |
755 | + | then $Tuple2(aa(addressFromStringValue(ab)), unit) | |
756 | + | else throw("Strict value is not equal to itself.") | |
757 | + | } | |
758 | + | ||
759 | + | ||
760 | + | @Verifier(bG) | |
761 | + | func bH () = { | |
670 | 762 | let y = getString(c) | |
671 | 763 | if ($isInstanceOf(y, "String")) | |
672 | 764 | then { | |
673 | - | let | |
674 | - | valueOrElse(getBoolean(addressFromStringValue( | |
765 | + | let bI = y | |
766 | + | valueOrElse(getBoolean(addressFromStringValue(bI), makeString([d, toString(this), toBase58String(bG.id)], a)), false) | |
675 | 767 | } | |
676 | - | else sigVerify( | |
768 | + | else sigVerify(bG.bodyBytes, bG.proofs[0], bG.senderPublicKey) | |
677 | 769 | } | |
678 | 770 |
github/deemru/w8io/026f985 157.40 ms ◑