tx · 4vgyaGQhnumaZYfqqhMGFKJG2Tgh3uqg7VzhaHu7PpWc 3MrtFvvc7QBGaNXke4B8T7brYidircMU8pM: -0.01400000 Waves 2023.02.22 23:50 [2461360] smart account 3MrtFvvc7QBGaNXke4B8T7brYidircMU8pM > SELF 0.00000000 Waves
{ "type": 13, "id": "4vgyaGQhnumaZYfqqhMGFKJG2Tgh3uqg7VzhaHu7PpWc", "fee": 1400000, "feeAssetId": null, "timestamp": 1677098849785, "version": 2, "chainId": 84, "sender": "3MrtFvvc7QBGaNXke4B8T7brYidircMU8pM", "senderPublicKey": "A3DknTXNtQRgyx5yLE3L1YUXipPTqbF3qQrCvp8ZbFPq", "proofs": [ "2a6GimP4F56QMUGE43Yp4aMgUm3Au3HzM4RJ74mzFAddJXq5QuTrJpvXu3rfmxU3KsPYP52ncwut1ocry6HoS17Y" ], "script": "base64:BgJOCAISBgoECAgICBIJCgcICAEIAQgBEgcKBQEIAQgBEgMKAQgSAwoBCBIECgIBBBIDCgEIEgsKCQEICAEBAQEBBBIAEgASAwoBCBIDCgEIPAAJU0VQQVJBVE9SAgJfXwAIS0VZX0lOSVQCBElOSVQADEtFWV9NVUxUSVNJRwIITVVMVElTSUcACktFWV9TVEFUVVMCBlNUQVRVUwAKS0VZX1BBVVNFRAIGUEFVU0VEAApLRVlfUEFVU0VSAgZQQVVTRVIADEtFWV9FWEVDVVRPUgIIRVhFQ1VUT1IAEEtFWV9ST09UX0FEQVBURVICDFJPT1RfQURBUFRFUgATS0VZX0NBTExFUl9DT05UUkFDVAIPQ0FMTEVSX0NPTlRSQUNUAAlLRVlfQ0hBSU4CBUNIQUlOAAtLRVlfQklORElORwIHQklORElORwAHS0VZX0ZFRQIDRkVFABFLRVlfRkVFX1JFQ0lQSUVOVAINRkVFX1JFQ0lQSUVOVAATRlVOQ19SRUxFQVNFX1RPS0VOUwINcmVsZWFzZVRva2VucwAFV0FWRVMCBVdBVkVTAA5XQVZFU19ERUNJTUFMUwAIAAhERUNJTUF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hbGlkYXRlQWRkcmVzcwIFCW11bHRpc2lnXwIdc2V0TXVsdGlzaWc6IGludmFsaWQgbXVsdGlzaWcHAwkAAAIFA2VycgUDZXJyCQCUCgIJAQ1fc2F2ZU11bHRpc2lnAQkBEUBleHRyTmF0aXZlKDEwNjIpAQUJbXVsdGlzaWdfBQR1bml0CQACAQIkU3RyaWN0IHZhbHVlIGlzIG5vdCBlcXVhbCB0byBpdHNlbGYuAQJ0eAEGdmVyaWZ5AAQHJG1hdGNoMAkAoggBBQxLRVlfTVVMVElTSUcDCQABAgUHJG1hdGNoMAIGU3RyaW5nBAhtdWx0aXNpZwUHJG1hdGNoMAkBC3ZhbHVlT3JFbHNlAgkAmwgCCQERQGV4dHJOYXRpdmUoMTA2MikBBQhtdWx0aXNpZwkAuQkCCQDMCAIFCktFWV9TVEFUVVMJAMwIAgkApQgBBQR0aGlzCQDMCAIJANgEAQgFAnR4AmlkBQNuaWwFCVNFUEFSQVRPUgcJAPQDAwgFAnR4CWJvZHlCeXRlcwkAkQMCCAUCdHgGcHJvb2ZzAAAIBQJ0eA9zZW5kZXJQdWJsaWNLZXlv+W7b", "height": 2461360, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: FsdhTvBcNQP2rmCVB1YZBh73ndKK1yJ3aB5YUg3L9ZLR Next: 3QmGLKYytno6jaX9QVTynJDtKtEAE6Tg7FMMXKHuNsQm Diff:
Old | New | Differences | |
---|---|---|---|
320 | 320 | ||
321 | 321 | ||
322 | 322 | @Callable(aI) | |
323 | - | func init (ad,at,X) = { | |
324 | - | let | |
323 | + | func init (ad,at,X,aJ) = { | |
324 | + | let aK = if (if (if (if (if (if (aw(aI.caller)) | |
325 | 325 | then ay() | |
326 | 326 | else false) | |
327 | 327 | then ax() | |
331 | 331 | then t(at, "init: invalid adapter") | |
332 | 332 | else false) | |
333 | 333 | then t(X, "init: invalid pauser") | |
334 | + | else false) | |
335 | + | then t(aJ, "init: invalid feeRecipient") | |
334 | 336 | else false | |
335 | - | if (( | |
336 | - | then $Tuple2((((Q(true) ++ ac(addressFromStringValue(ad))) ++ as(addressFromStringValue(at))) ++ W(addressFromStringValue(X))), unit) | |
337 | + | if ((aK == aK)) | |
338 | + | then $Tuple2(((((Q(true) ++ ac(addressFromStringValue(ad))) ++ as(addressFromStringValue(at))) ++ W(addressFromStringValue(X))) ++ av(addressFromStringValue(aJ))), unit) | |
337 | 339 | else throw("Strict value is not equal to itself.") | |
338 | 340 | } | |
339 | 341 | ||
340 | 342 | ||
341 | 343 | ||
342 | 344 | @Callable(aI) | |
343 | - | func mintTokens ( | |
344 | - | let | |
345 | + | func mintTokens (aL,aM,M,aN,aO,aP,aQ) = { | |
346 | + | let aK = if (if (if (if (if (if (if (az()) | |
345 | 347 | then aA() | |
346 | 348 | else false) | |
347 | - | then t( | |
349 | + | then t(aM, "mint: invalid asset contract") | |
348 | 350 | else false) | |
349 | 351 | then aF(aI.caller, "mint: invalid executor") | |
350 | 352 | else false) | |
351 | - | then aG( | |
353 | + | then aG(aL, "mint: invalid caller") | |
352 | 354 | else false) | |
353 | - | then t( | |
355 | + | then t(aN, "mint: invalid recipient address") | |
354 | 356 | else false) | |
355 | 357 | then A(M, 0, s, "mint: invalid amount") | |
356 | 358 | else false) | |
357 | - | then A( | |
359 | + | then A(aO, 0, s, "mint: invalid gaslessReward") | |
358 | 360 | else false | |
359 | - | if (( | |
361 | + | if ((aK == aK)) | |
360 | 362 | then { | |
361 | - | let | |
362 | - | if (( | |
363 | + | let aR = aE(invoke(addressFromStringValue(aM), "getAssetId", nil, nil)) | |
364 | + | if ((aR == aR)) | |
363 | 365 | then { | |
364 | - | let | |
365 | - | if (( | |
366 | + | let aS = aD(invoke(addressFromStringValue(aM), "getDecimals", nil, nil)) | |
367 | + | if ((aS == aS)) | |
366 | 368 | then { | |
367 | - | let | |
368 | - | let | |
369 | - | let | |
369 | + | let aT = L(M, q, aS) | |
370 | + | let aU = L(aO, q, aS) | |
371 | + | let aV = if ((size(aP) > 0)) | |
370 | 372 | then { | |
371 | - | let | |
372 | - | then A( | |
373 | + | let aW = if (t(aP, "mint: invalid referrer address")) | |
374 | + | then A(aQ, 0, s, "mint: invalid referrer fee") | |
373 | 375 | else false | |
374 | - | if (( | |
376 | + | if ((aW == aW)) | |
375 | 377 | then { | |
376 | - | let | |
377 | - | $Tuple2( | |
378 | + | let aX = L(aQ, q, aS) | |
379 | + | $Tuple2(aX, [ScriptTransfer(addressFromStringValue(aP), aX, aR)]) | |
378 | 380 | } | |
379 | 381 | else throw("Strict value is not equal to itself.") | |
380 | 382 | } | |
381 | 383 | else $Tuple2(0, nil) | |
382 | - | let | |
383 | - | let | |
384 | - | let | |
385 | - | if (( | |
384 | + | let aY = aV._1 | |
385 | + | let aZ = aV._2 | |
386 | + | let ba = invoke(addressFromStringValue(aM), "mint", [(aT + aY), toString(this)], nil) | |
387 | + | if ((ba == ba)) | |
386 | 388 | then { | |
387 | - | let | |
388 | - | then (addressFromStringValue( | |
389 | + | let bb = if (if ((aU > 0)) | |
390 | + | then (addressFromStringValue(aN) != aI.originCaller) | |
389 | 391 | else false) | |
390 | - | then [ScriptTransfer(addressFromStringValue( | |
391 | - | else [ScriptTransfer(addressFromStringValue( | |
392 | - | $Tuple2(( | |
392 | + | then [ScriptTransfer(addressFromStringValue(aN), (aT - aU), aR), ScriptTransfer(aI.originCaller, aU, aR)] | |
393 | + | else [ScriptTransfer(addressFromStringValue(aN), aT, aR)] | |
394 | + | $Tuple2((bb ++ aZ), unit) | |
393 | 395 | } | |
394 | 396 | else throw("Strict value is not equal to itself.") | |
395 | 397 | } | |
403 | 405 | ||
404 | 406 | ||
405 | 407 | @Callable(aI) | |
406 | - | func burnTokens (al, | |
407 | - | let | |
408 | + | func burnTokens (al,aM,M,aN,aO) = { | |
409 | + | let aK = if (if (if (if (if (az()) | |
408 | 410 | then aA() | |
409 | 411 | else false) | |
410 | - | then t( | |
412 | + | then t(aM, "burn: invalid asset contract") | |
411 | 413 | else false) | |
412 | 414 | then aH(al, "burn: invalid execution chain") | |
413 | 415 | else false) | |
415 | 417 | else false) | |
416 | 418 | then A(aI.payments[0].amount, M, s, "burn: invalid payment amount") | |
417 | 419 | else false | |
418 | - | if (( | |
420 | + | if ((aK == aK)) | |
419 | 421 | then { | |
420 | - | let | |
421 | - | if (( | |
422 | + | let aR = aE(invoke(addressFromStringValue(aM), "getAssetId", nil, nil)) | |
423 | + | if ((aR == aR)) | |
422 | 424 | then { | |
423 | - | let | |
424 | - | if (( | |
425 | + | let aS = aD(invoke(addressFromStringValue(aM), "getDecimals", nil, nil)) | |
426 | + | if ((aS == aS)) | |
425 | 427 | then { | |
426 | - | let | |
427 | - | let | |
428 | - | let | |
429 | - | let | |
430 | - | let | |
431 | - | let | |
432 | - | let | |
433 | - | let | |
434 | - | let | |
435 | - | then A(M, | |
428 | + | let bc = ak(al, aR) | |
429 | + | let bd = bc._1 | |
430 | + | let be = bc._2 | |
431 | + | let bf = bc._3 | |
432 | + | let bg = bc._4 | |
433 | + | let bh = bc._5 | |
434 | + | let bi = bc._6 | |
435 | + | let bj = bc._7 | |
436 | + | let aW = if (if (I(aI.payments[0], aR, "burn: invalid payment asset")) | |
437 | + | then A(M, be, s, "burn: less than min") | |
436 | 438 | else false) | |
437 | - | then E( | |
439 | + | then E(bj, true, "burn: token is disabled") | |
438 | 440 | else false | |
439 | - | if (( | |
441 | + | if ((aW == aW)) | |
440 | 442 | then { | |
441 | - | let | |
442 | - | then | |
443 | - | else | |
444 | - | let | |
445 | - | let | |
446 | - | if (( | |
443 | + | let bk = if ((M > bg)) | |
444 | + | then bi | |
445 | + | else bh | |
446 | + | let bl = (bf + ((M * bk) / r)) | |
447 | + | let bm = A(M, (bl + 1), s, "burn: fee more than amount") | |
448 | + | if ((bm == bm)) | |
447 | 449 | then { | |
448 | - | let | |
449 | - | let | |
450 | - | if (( | |
450 | + | let bn = (M - bl) | |
451 | + | let bo = A(bn, (aO + 1), s, "burn: reward more than amount") | |
452 | + | if ((bo == bo)) | |
451 | 453 | then { | |
452 | - | let | |
453 | - | let | |
454 | - | let | |
455 | - | let | |
456 | - | if (( | |
457 | - | then $Tuple2((aq( | |
454 | + | let bp = (ap(aR) + bl) | |
455 | + | let aT = L(bn, aS, q) | |
456 | + | let aU = L(aO, aS, q) | |
457 | + | let ba = invoke(ar(), n, [al, bd, aT, aN, aU], nil) | |
458 | + | if ((ba == ba)) | |
459 | + | then $Tuple2((aq(aR, bp) ++ [Burn(aR, bn)]), unit) | |
458 | 460 | else throw("Strict value is not equal to itself.") | |
459 | 461 | } | |
460 | 462 | else throw("Strict value is not equal to itself.") | |
473 | 475 | ||
474 | 476 | ||
475 | 477 | @Callable(aI) | |
476 | - | func transferFee ( | |
477 | - | let | |
478 | + | func transferFee (aM) = { | |
479 | + | let aK = if (if (az()) | |
478 | 480 | then aA() | |
479 | 481 | else false) | |
480 | - | then t( | |
482 | + | then t(aM, "burnFee: invalid asset contract") | |
481 | 483 | else false | |
482 | - | if (( | |
484 | + | if ((aK == aK)) | |
483 | 485 | then { | |
484 | - | let | |
485 | - | if (( | |
486 | - | then $Tuple2((aq( | |
486 | + | let aR = aE(invoke(addressFromStringValue(aM), "getAssetId", nil, nil)) | |
487 | + | if ((aR == aR)) | |
488 | + | then $Tuple2((aq(aR, 0) ++ [ScriptTransfer(au(), ap(aR), aR)]), unit) | |
487 | 489 | else throw("Strict value is not equal to itself.") | |
488 | 490 | } | |
489 | 491 | else throw("Strict value is not equal to itself.") | |
492 | 494 | ||
493 | 495 | ||
494 | 496 | @Callable(aI) | |
495 | - | func updateCallerContract ( | |
496 | - | let | |
497 | + | func updateCallerContract (aL) = { | |
498 | + | let aK = if (aw(aI.caller)) | |
497 | 499 | then az() | |
498 | 500 | else false | |
499 | - | if (( | |
500 | - | then $Tuple2(af( | |
501 | + | if ((aK == aK)) | |
502 | + | then $Tuple2(af(aL), unit) | |
501 | 503 | else throw("Strict value is not equal to itself.") | |
502 | 504 | } | |
503 | 505 | ||
504 | 506 | ||
505 | 507 | ||
506 | 508 | @Callable(aI) | |
507 | - | func updateExecutionChain (al, | |
508 | - | let | |
509 | + | func updateExecutionChain (al,bq) = { | |
510 | + | let aK = if (if (aw(aI.caller)) | |
509 | 511 | then az() | |
510 | 512 | else false) | |
511 | 513 | then A(al, 0, s, "updateExecutionChain: invalid executionChainId") | |
512 | 514 | else false | |
513 | - | if (( | |
514 | - | then $Tuple2(aj(al, | |
515 | + | if ((aK == aK)) | |
516 | + | then $Tuple2(aj(al, bq), unit) | |
515 | 517 | else throw("Strict value is not equal to itself.") | |
516 | 518 | } | |
517 | 519 | ||
518 | 520 | ||
519 | 521 | ||
520 | 522 | @Callable(aI) | |
521 | - | func updateFeeRecipient ( | |
522 | - | let | |
523 | + | func updateFeeRecipient (aJ) = { | |
524 | + | let aK = if (if (aw(aI.caller)) | |
523 | 525 | then az() | |
524 | 526 | else false) | |
525 | - | then t( | |
527 | + | then t(aJ, "updateFeeRecipient: invalid feeRecipient") | |
526 | 528 | else false | |
527 | - | if (( | |
528 | - | then $Tuple2(av(addressFromStringValue( | |
529 | + | if ((aK == aK)) | |
530 | + | then $Tuple2(av(addressFromStringValue(aJ)), unit) | |
529 | 531 | else throw("Strict value is not equal to itself.") | |
530 | 532 | } | |
531 | 533 | ||
532 | 534 | ||
533 | 535 | ||
534 | 536 | @Callable(aI) | |
535 | - | func updateBindingInfo (al, | |
536 | - | let | |
537 | + | func updateBindingInfo (al,aM,br,bs,bt,bu,bv,bw,bq) = { | |
538 | + | let aK = if (if (if (if (if (if (if (if (aw(aI.caller)) | |
537 | 539 | then az() | |
538 | 540 | else false) | |
539 | - | then t( | |
541 | + | then t(aM, "updateBindingInfo: invalid asset contract") | |
540 | 542 | else false) | |
541 | 543 | then A(al, 0, s, "updateBindingInfo: invalid executionChainId") | |
542 | 544 | else false) | |
550 | 552 | else false) | |
551 | 553 | then A(bw, 0, s, "updateBindingInfo: invalid afterPercentFee") | |
552 | 554 | else false | |
553 | - | if (( | |
555 | + | if ((aK == aK)) | |
554 | 556 | then { | |
555 | - | let | |
556 | - | if (( | |
557 | + | let aR = aE(invoke(addressFromStringValue(aM), "getAssetId", nil, nil)) | |
558 | + | if ((aR == aR)) | |
557 | 559 | then { | |
558 | - | let | |
559 | - | $Tuple2(an(al, | |
560 | + | let bc = $Tuple7(br, bs, bt, bu, bv, bw, bq) | |
561 | + | $Tuple2(an(al, aR, bc), unit) | |
560 | 562 | } | |
561 | 563 | else throw("Strict value is not equal to itself.") | |
562 | 564 | } | |
567 | 569 | ||
568 | 570 | @Callable(aI) | |
569 | 571 | func pause () = { | |
570 | - | let | |
572 | + | let aK = if (if (aC(aI.caller)) | |
571 | 573 | then az() | |
572 | 574 | else false) | |
573 | 575 | then aA() | |
574 | 576 | else false | |
575 | - | if (( | |
577 | + | if ((aK == aK)) | |
576 | 578 | then $Tuple2(T(true), unit) | |
577 | 579 | else throw("Strict value is not equal to itself.") | |
578 | 580 | } | |
581 | 583 | ||
582 | 584 | @Callable(aI) | |
583 | 585 | func unpause () = { | |
584 | - | let | |
586 | + | let aK = if (if (aC(aI.caller)) | |
585 | 587 | then az() | |
586 | 588 | else false) | |
587 | 589 | then aB() | |
588 | 590 | else false | |
589 | - | if (( | |
591 | + | if ((aK == aK)) | |
590 | 592 | then $Tuple2(T(false), unit) | |
591 | 593 | else throw("Strict value is not equal to itself.") | |
592 | 594 | } | |
595 | 597 | ||
596 | 598 | @Callable(aI) | |
597 | 599 | func updatePauser (X) = { | |
598 | - | let | |
600 | + | let aK = if (if (aw(aI.caller)) | |
599 | 601 | then az() | |
600 | 602 | else false) | |
601 | 603 | then t(X, "init: invalid pauser") | |
602 | 604 | else false | |
603 | - | if (( | |
605 | + | if ((aK == aK)) | |
604 | 606 | then $Tuple2(W(addressFromStringValue(X)), unit) | |
605 | 607 | else throw("Strict value is not equal to itself.") | |
606 | 608 | } | |
609 | 611 | ||
610 | 612 | @Callable(aI) | |
611 | 613 | func setMultisig (aa) = { | |
612 | - | let | |
614 | + | let aK = if (aw(aI.caller)) | |
613 | 615 | then t(aa, "setMultisig: invalid multisig") | |
614 | 616 | else false | |
615 | - | if (( | |
617 | + | if ((aK == aK)) | |
616 | 618 | then $Tuple2(Z(addressFromStringValue(aa)), unit) | |
617 | 619 | else throw("Strict value is not equal to itself.") | |
618 | 620 | } |
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 = "releaseTokens" | |
31 | 31 | ||
32 | 32 | let o = "WAVES" | |
33 | 33 | ||
34 | 34 | let p = 8 | |
35 | 35 | ||
36 | 36 | let q = 6 | |
37 | 37 | ||
38 | 38 | let r = 1000000 | |
39 | 39 | ||
40 | 40 | let s = 9223372036854775807 | |
41 | 41 | ||
42 | 42 | func t (u,v) = { | |
43 | 43 | let w = addressFromString(u) | |
44 | 44 | if ($isInstanceOf(w, "Address")) | |
45 | 45 | then { | |
46 | 46 | let x = w | |
47 | 47 | true | |
48 | 48 | } | |
49 | 49 | else throw(v) | |
50 | 50 | } | |
51 | 51 | ||
52 | 52 | ||
53 | 53 | func y (z,v) = { | |
54 | 54 | let w = assetInfo(fromBase58String(z)) | |
55 | 55 | if ($isInstanceOf(w, "Asset")) | |
56 | 56 | then { | |
57 | 57 | let x = w | |
58 | 58 | true | |
59 | 59 | } | |
60 | 60 | else throw(v) | |
61 | 61 | } | |
62 | 62 | ||
63 | 63 | ||
64 | 64 | func A (B,C,D,v) = if (if ((C > B)) | |
65 | 65 | then true | |
66 | 66 | else (B > D)) | |
67 | 67 | then throw(v) | |
68 | 68 | else true | |
69 | 69 | ||
70 | 70 | ||
71 | 71 | func E (B,F,v) = if ((B != F)) | |
72 | 72 | then throw(v) | |
73 | 73 | else true | |
74 | 74 | ||
75 | 75 | ||
76 | 76 | func G (H,F,v) = if ((size(H) != F)) | |
77 | 77 | then throw(v) | |
78 | 78 | else true | |
79 | 79 | ||
80 | 80 | ||
81 | 81 | func I (J,K,v) = if ((J.assetId != K)) | |
82 | 82 | then throw(v) | |
83 | 83 | else true | |
84 | 84 | ||
85 | 85 | ||
86 | 86 | func L (M,N,O) = if ((N >= O)) | |
87 | 87 | then (M / pow(10, 0, (N - O), 0, 0, DOWN)) | |
88 | 88 | else (M * pow(10, 0, (O - N), 0, 0, DOWN)) | |
89 | 89 | ||
90 | 90 | ||
91 | 91 | func P () = { | |
92 | 92 | let w = getBoolean(b) | |
93 | 93 | if ($isInstanceOf(w, "Boolean")) | |
94 | 94 | then { | |
95 | 95 | let x = w | |
96 | 96 | x | |
97 | 97 | } | |
98 | 98 | else false | |
99 | 99 | } | |
100 | 100 | ||
101 | 101 | ||
102 | 102 | func Q (R) = [BooleanEntry(b, R)] | |
103 | 103 | ||
104 | 104 | ||
105 | 105 | func S () = { | |
106 | 106 | let w = getBoolean(e) | |
107 | 107 | if ($isInstanceOf(w, "Boolean")) | |
108 | 108 | then { | |
109 | 109 | let x = w | |
110 | 110 | x | |
111 | 111 | } | |
112 | 112 | else false | |
113 | 113 | } | |
114 | 114 | ||
115 | 115 | ||
116 | 116 | func T (U) = [BooleanEntry(e, U)] | |
117 | 117 | ||
118 | 118 | ||
119 | 119 | func V () = { | |
120 | 120 | let w = getString(f) | |
121 | 121 | if ($isInstanceOf(w, "String")) | |
122 | 122 | then { | |
123 | 123 | let x = w | |
124 | 124 | addressFromStringValue(x) | |
125 | 125 | } | |
126 | 126 | else Address(base58'') | |
127 | 127 | } | |
128 | 128 | ||
129 | 129 | ||
130 | 130 | func W (X) = [StringEntry(f, toString(X))] | |
131 | 131 | ||
132 | 132 | ||
133 | 133 | func Y () = { | |
134 | 134 | let w = getString(c) | |
135 | 135 | if ($isInstanceOf(w, "String")) | |
136 | 136 | then { | |
137 | 137 | let x = w | |
138 | 138 | addressFromStringValue(x) | |
139 | 139 | } | |
140 | 140 | else Address(base58'') | |
141 | 141 | } | |
142 | 142 | ||
143 | 143 | ||
144 | 144 | func Z (aa) = [StringEntry(c, toString(aa))] | |
145 | 145 | ||
146 | 146 | ||
147 | 147 | func ab () = { | |
148 | 148 | let w = getString(g) | |
149 | 149 | if ($isInstanceOf(w, "String")) | |
150 | 150 | then { | |
151 | 151 | let x = w | |
152 | 152 | addressFromStringValue(x) | |
153 | 153 | } | |
154 | 154 | else Address(base58'') | |
155 | 155 | } | |
156 | 156 | ||
157 | 157 | ||
158 | 158 | func ac (ad) = [StringEntry(g, toString(ad))] | |
159 | 159 | ||
160 | 160 | ||
161 | 161 | func ae () = { | |
162 | 162 | let w = getString(i) | |
163 | 163 | if ($isInstanceOf(w, "String")) | |
164 | 164 | then { | |
165 | 165 | let x = w | |
166 | 166 | x | |
167 | 167 | } | |
168 | 168 | else "" | |
169 | 169 | } | |
170 | 170 | ||
171 | 171 | ||
172 | 172 | func af (ag) = [StringEntry(i, ag)] | |
173 | 173 | ||
174 | 174 | ||
175 | 175 | func ah (ai) = { | |
176 | 176 | let w = getBoolean(makeString([j, toString(ai)], a)) | |
177 | 177 | if ($isInstanceOf(w, "Boolean")) | |
178 | 178 | then { | |
179 | 179 | let x = w | |
180 | 180 | x | |
181 | 181 | } | |
182 | 182 | else false | |
183 | 183 | } | |
184 | 184 | ||
185 | 185 | ||
186 | 186 | func aj (ai,B) = [BooleanEntry(makeString([j, toString(ai)], a), B)] | |
187 | 187 | ||
188 | 188 | ||
189 | 189 | func ak (al,z) = { | |
190 | 190 | let w = getString(makeString([k, toString(al), toBase58String(z)], a)) | |
191 | 191 | if ($isInstanceOf(w, "String")) | |
192 | 192 | then { | |
193 | 193 | let x = w | |
194 | 194 | let am = split(x, a) | |
195 | 195 | $Tuple7(am[0], parseIntValue(am[1]), parseIntValue(am[2]), parseIntValue(am[3]), parseIntValue(am[4]), parseIntValue(am[5]), if ((am[6] == "1")) | |
196 | 196 | then true | |
197 | 197 | else false) | |
198 | 198 | } | |
199 | 199 | else $Tuple7("", 0, 0, 0, 0, 0, false) | |
200 | 200 | } | |
201 | 201 | ||
202 | 202 | ||
203 | 203 | func an (al,z,ao) = [StringEntry(makeString([k, toString(al), toBase58String(z)], a), makeString([ao._1, toString(ao._2), toString(ao._3), toString(ao._4), toString(ao._5), toString(ao._6), if (ao._7) | |
204 | 204 | then "1" | |
205 | 205 | else "0"], a))] | |
206 | 206 | ||
207 | 207 | ||
208 | 208 | func ap (z) = { | |
209 | 209 | let w = getInteger(makeString([l, toBase58String(z)], a)) | |
210 | 210 | if ($isInstanceOf(w, "Int")) | |
211 | 211 | then { | |
212 | 212 | let x = w | |
213 | 213 | x | |
214 | 214 | } | |
215 | 215 | else 0 | |
216 | 216 | } | |
217 | 217 | ||
218 | 218 | ||
219 | 219 | func aq (z,B) = [IntegerEntry(makeString([l, toBase58String(z)], a), B)] | |
220 | 220 | ||
221 | 221 | ||
222 | 222 | func ar () = { | |
223 | 223 | let w = getString(h) | |
224 | 224 | if ($isInstanceOf(w, "String")) | |
225 | 225 | then { | |
226 | 226 | let x = w | |
227 | 227 | addressFromStringValue(x) | |
228 | 228 | } | |
229 | 229 | else Address(base58'') | |
230 | 230 | } | |
231 | 231 | ||
232 | 232 | ||
233 | 233 | func as (at) = [StringEntry(h, toString(at))] | |
234 | 234 | ||
235 | 235 | ||
236 | 236 | func au () = { | |
237 | 237 | let w = getString(m) | |
238 | 238 | if ($isInstanceOf(w, "String")) | |
239 | 239 | then { | |
240 | 240 | let x = w | |
241 | 241 | addressFromStringValue(x) | |
242 | 242 | } | |
243 | 243 | else Address(base58'') | |
244 | 244 | } | |
245 | 245 | ||
246 | 246 | ||
247 | 247 | func av (B) = [StringEntry(m, toString(B))] | |
248 | 248 | ||
249 | 249 | ||
250 | 250 | func aw (ag) = if ((ag != this)) | |
251 | 251 | then throw("_onlyThisContract: revert") | |
252 | 252 | else true | |
253 | 253 | ||
254 | 254 | ||
255 | 255 | func ax () = if ((Y() == Address(base58''))) | |
256 | 256 | then throw("_whenMultisigSet: revert") | |
257 | 257 | else true | |
258 | 258 | ||
259 | 259 | ||
260 | 260 | func ay () = if (P()) | |
261 | 261 | then throw("_whenNotInitialized: revert") | |
262 | 262 | else true | |
263 | 263 | ||
264 | 264 | ||
265 | 265 | func az () = if (!(P())) | |
266 | 266 | then throw("_whenInitialized: revert") | |
267 | 267 | else true | |
268 | 268 | ||
269 | 269 | ||
270 | 270 | func aA () = if (S()) | |
271 | 271 | then throw("_whenNotPaused: revert") | |
272 | 272 | else true | |
273 | 273 | ||
274 | 274 | ||
275 | 275 | func aB () = if (!(S())) | |
276 | 276 | then throw("_whenPaused: revert") | |
277 | 277 | else true | |
278 | 278 | ||
279 | 279 | ||
280 | 280 | func aC (ag) = if ((ag != V())) | |
281 | 281 | then throw("_onlyPauser: revert") | |
282 | 282 | else true | |
283 | 283 | ||
284 | 284 | ||
285 | 285 | func aD (B) = { | |
286 | 286 | let w = B | |
287 | 287 | if ($isInstanceOf(w, "Int")) | |
288 | 288 | then { | |
289 | 289 | let x = w | |
290 | 290 | x | |
291 | 291 | } | |
292 | 292 | else throw("_asInt: revert") | |
293 | 293 | } | |
294 | 294 | ||
295 | 295 | ||
296 | 296 | func aE (B) = { | |
297 | 297 | let w = B | |
298 | 298 | if ($isInstanceOf(w, "ByteVector")) | |
299 | 299 | then { | |
300 | 300 | let x = w | |
301 | 301 | x | |
302 | 302 | } | |
303 | 303 | else throw("_asBytes: revert") | |
304 | 304 | } | |
305 | 305 | ||
306 | 306 | ||
307 | 307 | func aF (B,v) = if ((B != ab())) | |
308 | 308 | then throw(v) | |
309 | 309 | else true | |
310 | 310 | ||
311 | 311 | ||
312 | 312 | func aG (B,v) = if ((B != ae())) | |
313 | 313 | then throw(v) | |
314 | 314 | else true | |
315 | 315 | ||
316 | 316 | ||
317 | 317 | func aH (al,v) = if (!(ah(al))) | |
318 | 318 | then throw(v) | |
319 | 319 | else true | |
320 | 320 | ||
321 | 321 | ||
322 | 322 | @Callable(aI) | |
323 | - | func init (ad,at,X) = { | |
324 | - | let | |
323 | + | func init (ad,at,X,aJ) = { | |
324 | + | let aK = if (if (if (if (if (if (aw(aI.caller)) | |
325 | 325 | then ay() | |
326 | 326 | else false) | |
327 | 327 | then ax() | |
328 | 328 | else false) | |
329 | 329 | then t(ad, "init: invalid executor") | |
330 | 330 | else false) | |
331 | 331 | then t(at, "init: invalid adapter") | |
332 | 332 | else false) | |
333 | 333 | then t(X, "init: invalid pauser") | |
334 | + | else false) | |
335 | + | then t(aJ, "init: invalid feeRecipient") | |
334 | 336 | else false | |
335 | - | if (( | |
336 | - | then $Tuple2((((Q(true) ++ ac(addressFromStringValue(ad))) ++ as(addressFromStringValue(at))) ++ W(addressFromStringValue(X))), unit) | |
337 | + | if ((aK == aK)) | |
338 | + | then $Tuple2(((((Q(true) ++ ac(addressFromStringValue(ad))) ++ as(addressFromStringValue(at))) ++ W(addressFromStringValue(X))) ++ av(addressFromStringValue(aJ))), unit) | |
337 | 339 | else throw("Strict value is not equal to itself.") | |
338 | 340 | } | |
339 | 341 | ||
340 | 342 | ||
341 | 343 | ||
342 | 344 | @Callable(aI) | |
343 | - | func mintTokens ( | |
344 | - | let | |
345 | + | func mintTokens (aL,aM,M,aN,aO,aP,aQ) = { | |
346 | + | let aK = if (if (if (if (if (if (if (az()) | |
345 | 347 | then aA() | |
346 | 348 | else false) | |
347 | - | then t( | |
349 | + | then t(aM, "mint: invalid asset contract") | |
348 | 350 | else false) | |
349 | 351 | then aF(aI.caller, "mint: invalid executor") | |
350 | 352 | else false) | |
351 | - | then aG( | |
353 | + | then aG(aL, "mint: invalid caller") | |
352 | 354 | else false) | |
353 | - | then t( | |
355 | + | then t(aN, "mint: invalid recipient address") | |
354 | 356 | else false) | |
355 | 357 | then A(M, 0, s, "mint: invalid amount") | |
356 | 358 | else false) | |
357 | - | then A( | |
359 | + | then A(aO, 0, s, "mint: invalid gaslessReward") | |
358 | 360 | else false | |
359 | - | if (( | |
361 | + | if ((aK == aK)) | |
360 | 362 | then { | |
361 | - | let | |
362 | - | if (( | |
363 | + | let aR = aE(invoke(addressFromStringValue(aM), "getAssetId", nil, nil)) | |
364 | + | if ((aR == aR)) | |
363 | 365 | then { | |
364 | - | let | |
365 | - | if (( | |
366 | + | let aS = aD(invoke(addressFromStringValue(aM), "getDecimals", nil, nil)) | |
367 | + | if ((aS == aS)) | |
366 | 368 | then { | |
367 | - | let | |
368 | - | let | |
369 | - | let | |
369 | + | let aT = L(M, q, aS) | |
370 | + | let aU = L(aO, q, aS) | |
371 | + | let aV = if ((size(aP) > 0)) | |
370 | 372 | then { | |
371 | - | let | |
372 | - | then A( | |
373 | + | let aW = if (t(aP, "mint: invalid referrer address")) | |
374 | + | then A(aQ, 0, s, "mint: invalid referrer fee") | |
373 | 375 | else false | |
374 | - | if (( | |
376 | + | if ((aW == aW)) | |
375 | 377 | then { | |
376 | - | let | |
377 | - | $Tuple2( | |
378 | + | let aX = L(aQ, q, aS) | |
379 | + | $Tuple2(aX, [ScriptTransfer(addressFromStringValue(aP), aX, aR)]) | |
378 | 380 | } | |
379 | 381 | else throw("Strict value is not equal to itself.") | |
380 | 382 | } | |
381 | 383 | else $Tuple2(0, nil) | |
382 | - | let | |
383 | - | let | |
384 | - | let | |
385 | - | if (( | |
384 | + | let aY = aV._1 | |
385 | + | let aZ = aV._2 | |
386 | + | let ba = invoke(addressFromStringValue(aM), "mint", [(aT + aY), toString(this)], nil) | |
387 | + | if ((ba == ba)) | |
386 | 388 | then { | |
387 | - | let | |
388 | - | then (addressFromStringValue( | |
389 | + | let bb = if (if ((aU > 0)) | |
390 | + | then (addressFromStringValue(aN) != aI.originCaller) | |
389 | 391 | else false) | |
390 | - | then [ScriptTransfer(addressFromStringValue( | |
391 | - | else [ScriptTransfer(addressFromStringValue( | |
392 | - | $Tuple2(( | |
392 | + | then [ScriptTransfer(addressFromStringValue(aN), (aT - aU), aR), ScriptTransfer(aI.originCaller, aU, aR)] | |
393 | + | else [ScriptTransfer(addressFromStringValue(aN), aT, aR)] | |
394 | + | $Tuple2((bb ++ aZ), unit) | |
393 | 395 | } | |
394 | 396 | else throw("Strict value is not equal to itself.") | |
395 | 397 | } | |
396 | 398 | else throw("Strict value is not equal to itself.") | |
397 | 399 | } | |
398 | 400 | else throw("Strict value is not equal to itself.") | |
399 | 401 | } | |
400 | 402 | else throw("Strict value is not equal to itself.") | |
401 | 403 | } | |
402 | 404 | ||
403 | 405 | ||
404 | 406 | ||
405 | 407 | @Callable(aI) | |
406 | - | func burnTokens (al, | |
407 | - | let | |
408 | + | func burnTokens (al,aM,M,aN,aO) = { | |
409 | + | let aK = if (if (if (if (if (az()) | |
408 | 410 | then aA() | |
409 | 411 | else false) | |
410 | - | then t( | |
412 | + | then t(aM, "burn: invalid asset contract") | |
411 | 413 | else false) | |
412 | 414 | then aH(al, "burn: invalid execution chain") | |
413 | 415 | else false) | |
414 | 416 | then G(aI.payments, 1, "burn: no payment") | |
415 | 417 | else false) | |
416 | 418 | then A(aI.payments[0].amount, M, s, "burn: invalid payment amount") | |
417 | 419 | else false | |
418 | - | if (( | |
420 | + | if ((aK == aK)) | |
419 | 421 | then { | |
420 | - | let | |
421 | - | if (( | |
422 | + | let aR = aE(invoke(addressFromStringValue(aM), "getAssetId", nil, nil)) | |
423 | + | if ((aR == aR)) | |
422 | 424 | then { | |
423 | - | let | |
424 | - | if (( | |
425 | + | let aS = aD(invoke(addressFromStringValue(aM), "getDecimals", nil, nil)) | |
426 | + | if ((aS == aS)) | |
425 | 427 | then { | |
426 | - | let | |
427 | - | let | |
428 | - | let | |
429 | - | let | |
430 | - | let | |
431 | - | let | |
432 | - | let | |
433 | - | let | |
434 | - | let | |
435 | - | then A(M, | |
428 | + | let bc = ak(al, aR) | |
429 | + | let bd = bc._1 | |
430 | + | let be = bc._2 | |
431 | + | let bf = bc._3 | |
432 | + | let bg = bc._4 | |
433 | + | let bh = bc._5 | |
434 | + | let bi = bc._6 | |
435 | + | let bj = bc._7 | |
436 | + | let aW = if (if (I(aI.payments[0], aR, "burn: invalid payment asset")) | |
437 | + | then A(M, be, s, "burn: less than min") | |
436 | 438 | else false) | |
437 | - | then E( | |
439 | + | then E(bj, true, "burn: token is disabled") | |
438 | 440 | else false | |
439 | - | if (( | |
441 | + | if ((aW == aW)) | |
440 | 442 | then { | |
441 | - | let | |
442 | - | then | |
443 | - | else | |
444 | - | let | |
445 | - | let | |
446 | - | if (( | |
443 | + | let bk = if ((M > bg)) | |
444 | + | then bi | |
445 | + | else bh | |
446 | + | let bl = (bf + ((M * bk) / r)) | |
447 | + | let bm = A(M, (bl + 1), s, "burn: fee more than amount") | |
448 | + | if ((bm == bm)) | |
447 | 449 | then { | |
448 | - | let | |
449 | - | let | |
450 | - | if (( | |
450 | + | let bn = (M - bl) | |
451 | + | let bo = A(bn, (aO + 1), s, "burn: reward more than amount") | |
452 | + | if ((bo == bo)) | |
451 | 453 | then { | |
452 | - | let | |
453 | - | let | |
454 | - | let | |
455 | - | let | |
456 | - | if (( | |
457 | - | then $Tuple2((aq( | |
454 | + | let bp = (ap(aR) + bl) | |
455 | + | let aT = L(bn, aS, q) | |
456 | + | let aU = L(aO, aS, q) | |
457 | + | let ba = invoke(ar(), n, [al, bd, aT, aN, aU], nil) | |
458 | + | if ((ba == ba)) | |
459 | + | then $Tuple2((aq(aR, bp) ++ [Burn(aR, bn)]), unit) | |
458 | 460 | else throw("Strict value is not equal to itself.") | |
459 | 461 | } | |
460 | 462 | else throw("Strict value is not equal to itself.") | |
461 | 463 | } | |
462 | 464 | else throw("Strict value is not equal to itself.") | |
463 | 465 | } | |
464 | 466 | else throw("Strict value is not equal to itself.") | |
465 | 467 | } | |
466 | 468 | else throw("Strict value is not equal to itself.") | |
467 | 469 | } | |
468 | 470 | else throw("Strict value is not equal to itself.") | |
469 | 471 | } | |
470 | 472 | else throw("Strict value is not equal to itself.") | |
471 | 473 | } | |
472 | 474 | ||
473 | 475 | ||
474 | 476 | ||
475 | 477 | @Callable(aI) | |
476 | - | func transferFee ( | |
477 | - | let | |
478 | + | func transferFee (aM) = { | |
479 | + | let aK = if (if (az()) | |
478 | 480 | then aA() | |
479 | 481 | else false) | |
480 | - | then t( | |
482 | + | then t(aM, "burnFee: invalid asset contract") | |
481 | 483 | else false | |
482 | - | if (( | |
484 | + | if ((aK == aK)) | |
483 | 485 | then { | |
484 | - | let | |
485 | - | if (( | |
486 | - | then $Tuple2((aq( | |
486 | + | let aR = aE(invoke(addressFromStringValue(aM), "getAssetId", nil, nil)) | |
487 | + | if ((aR == aR)) | |
488 | + | then $Tuple2((aq(aR, 0) ++ [ScriptTransfer(au(), ap(aR), aR)]), unit) | |
487 | 489 | else throw("Strict value is not equal to itself.") | |
488 | 490 | } | |
489 | 491 | else throw("Strict value is not equal to itself.") | |
490 | 492 | } | |
491 | 493 | ||
492 | 494 | ||
493 | 495 | ||
494 | 496 | @Callable(aI) | |
495 | - | func updateCallerContract ( | |
496 | - | let | |
497 | + | func updateCallerContract (aL) = { | |
498 | + | let aK = if (aw(aI.caller)) | |
497 | 499 | then az() | |
498 | 500 | else false | |
499 | - | if (( | |
500 | - | then $Tuple2(af( | |
501 | + | if ((aK == aK)) | |
502 | + | then $Tuple2(af(aL), unit) | |
501 | 503 | else throw("Strict value is not equal to itself.") | |
502 | 504 | } | |
503 | 505 | ||
504 | 506 | ||
505 | 507 | ||
506 | 508 | @Callable(aI) | |
507 | - | func updateExecutionChain (al, | |
508 | - | let | |
509 | + | func updateExecutionChain (al,bq) = { | |
510 | + | let aK = if (if (aw(aI.caller)) | |
509 | 511 | then az() | |
510 | 512 | else false) | |
511 | 513 | then A(al, 0, s, "updateExecutionChain: invalid executionChainId") | |
512 | 514 | else false | |
513 | - | if (( | |
514 | - | then $Tuple2(aj(al, | |
515 | + | if ((aK == aK)) | |
516 | + | then $Tuple2(aj(al, bq), unit) | |
515 | 517 | else throw("Strict value is not equal to itself.") | |
516 | 518 | } | |
517 | 519 | ||
518 | 520 | ||
519 | 521 | ||
520 | 522 | @Callable(aI) | |
521 | - | func updateFeeRecipient ( | |
522 | - | let | |
523 | + | func updateFeeRecipient (aJ) = { | |
524 | + | let aK = if (if (aw(aI.caller)) | |
523 | 525 | then az() | |
524 | 526 | else false) | |
525 | - | then t( | |
527 | + | then t(aJ, "updateFeeRecipient: invalid feeRecipient") | |
526 | 528 | else false | |
527 | - | if (( | |
528 | - | then $Tuple2(av(addressFromStringValue( | |
529 | + | if ((aK == aK)) | |
530 | + | then $Tuple2(av(addressFromStringValue(aJ)), unit) | |
529 | 531 | else throw("Strict value is not equal to itself.") | |
530 | 532 | } | |
531 | 533 | ||
532 | 534 | ||
533 | 535 | ||
534 | 536 | @Callable(aI) | |
535 | - | func updateBindingInfo (al, | |
536 | - | let | |
537 | + | func updateBindingInfo (al,aM,br,bs,bt,bu,bv,bw,bq) = { | |
538 | + | let aK = if (if (if (if (if (if (if (if (aw(aI.caller)) | |
537 | 539 | then az() | |
538 | 540 | else false) | |
539 | - | then t( | |
541 | + | then t(aM, "updateBindingInfo: invalid asset contract") | |
540 | 542 | else false) | |
541 | 543 | then A(al, 0, s, "updateBindingInfo: invalid executionChainId") | |
542 | 544 | else false) | |
543 | 545 | then A(bs, 0, s, "updateBindingInfo: invalid minAmount") | |
544 | 546 | else false) | |
545 | 547 | then A(bt, 0, s, "updateBindingInfo: invalid minFee") | |
546 | 548 | else false) | |
547 | 549 | then A(bu, 0, s, "updateBindingInfo: invalid thresholdFee") | |
548 | 550 | else false) | |
549 | 551 | then A(bv, 0, s, "updateBindingInfo: invalid beforePercentFee") | |
550 | 552 | else false) | |
551 | 553 | then A(bw, 0, s, "updateBindingInfo: invalid afterPercentFee") | |
552 | 554 | else false | |
553 | - | if (( | |
555 | + | if ((aK == aK)) | |
554 | 556 | then { | |
555 | - | let | |
556 | - | if (( | |
557 | + | let aR = aE(invoke(addressFromStringValue(aM), "getAssetId", nil, nil)) | |
558 | + | if ((aR == aR)) | |
557 | 559 | then { | |
558 | - | let | |
559 | - | $Tuple2(an(al, | |
560 | + | let bc = $Tuple7(br, bs, bt, bu, bv, bw, bq) | |
561 | + | $Tuple2(an(al, aR, bc), unit) | |
560 | 562 | } | |
561 | 563 | else throw("Strict value is not equal to itself.") | |
562 | 564 | } | |
563 | 565 | else throw("Strict value is not equal to itself.") | |
564 | 566 | } | |
565 | 567 | ||
566 | 568 | ||
567 | 569 | ||
568 | 570 | @Callable(aI) | |
569 | 571 | func pause () = { | |
570 | - | let | |
572 | + | let aK = if (if (aC(aI.caller)) | |
571 | 573 | then az() | |
572 | 574 | else false) | |
573 | 575 | then aA() | |
574 | 576 | else false | |
575 | - | if (( | |
577 | + | if ((aK == aK)) | |
576 | 578 | then $Tuple2(T(true), unit) | |
577 | 579 | else throw("Strict value is not equal to itself.") | |
578 | 580 | } | |
579 | 581 | ||
580 | 582 | ||
581 | 583 | ||
582 | 584 | @Callable(aI) | |
583 | 585 | func unpause () = { | |
584 | - | let | |
586 | + | let aK = if (if (aC(aI.caller)) | |
585 | 587 | then az() | |
586 | 588 | else false) | |
587 | 589 | then aB() | |
588 | 590 | else false | |
589 | - | if (( | |
591 | + | if ((aK == aK)) | |
590 | 592 | then $Tuple2(T(false), unit) | |
591 | 593 | else throw("Strict value is not equal to itself.") | |
592 | 594 | } | |
593 | 595 | ||
594 | 596 | ||
595 | 597 | ||
596 | 598 | @Callable(aI) | |
597 | 599 | func updatePauser (X) = { | |
598 | - | let | |
600 | + | let aK = if (if (aw(aI.caller)) | |
599 | 601 | then az() | |
600 | 602 | else false) | |
601 | 603 | then t(X, "init: invalid pauser") | |
602 | 604 | else false | |
603 | - | if (( | |
605 | + | if ((aK == aK)) | |
604 | 606 | then $Tuple2(W(addressFromStringValue(X)), unit) | |
605 | 607 | else throw("Strict value is not equal to itself.") | |
606 | 608 | } | |
607 | 609 | ||
608 | 610 | ||
609 | 611 | ||
610 | 612 | @Callable(aI) | |
611 | 613 | func setMultisig (aa) = { | |
612 | - | let | |
614 | + | let aK = if (aw(aI.caller)) | |
613 | 615 | then t(aa, "setMultisig: invalid multisig") | |
614 | 616 | else false | |
615 | - | if (( | |
617 | + | if ((aK == aK)) | |
616 | 618 | then $Tuple2(Z(addressFromStringValue(aa)), unit) | |
617 | 619 | else throw("Strict value is not equal to itself.") | |
618 | 620 | } | |
619 | 621 | ||
620 | 622 | ||
621 | 623 | @Verifier(bx) | |
622 | 624 | func by () = { | |
623 | 625 | let w = getString(c) | |
624 | 626 | if ($isInstanceOf(w, "String")) | |
625 | 627 | then { | |
626 | 628 | let bz = w | |
627 | 629 | valueOrElse(getBoolean(addressFromStringValue(bz), makeString([d, toString(this), toBase58String(bx.id)], a)), false) | |
628 | 630 | } | |
629 | 631 | else sigVerify(bx.bodyBytes, bx.proofs[0], bx.senderPublicKey) | |
630 | 632 | } | |
631 | 633 |
github/deemru/w8io/169f3d6 132.97 ms ◑