tx · GErAXooRkwXL1Uwiw9Y2x5EmHsgVvr5MPhpPx6FZWzDC 3N5Xd7QVQZWntaJwha9Kg42is626GUPjtUW: -0.01400000 Waves 2021.06.07 18:00 [1560098] smart account 3N5Xd7QVQZWntaJwha9Kg42is626GUPjtUW > SELF 0.00000000 Waves
{ "type": 13, "id": "GErAXooRkwXL1Uwiw9Y2x5EmHsgVvr5MPhpPx6FZWzDC", "fee": 1400000, "feeAssetId": null, "timestamp": 1623078033119, "version": 2, "chainId": 84, "sender": "3N5Xd7QVQZWntaJwha9Kg42is626GUPjtUW", "senderPublicKey": "DfbjpZJBbZwnUKysUkxCbWTE1ZWuoUb6Y6BZdu5iAE8j", "proofs": [ "5pV484NArjHXfg1jHqH96SVz5oSkz4zfVBpWRr8rDh3mHt64Kp4bBZieF2mVt15BBKU1XTSz4q8rxLGaXCfUd6sq" ], "script": "base64:AAIEAAAAAAAAACAIAhIAEgMKAQESBAoCAQESABIECgIBARIAEgASAwoBAQAAAEYAAAAAB3ZlcnNpb24CAAAABTIuMC4wAAAAAAhrVmVyc2lvbgIAAAAHdmVyc2lvbgAAAAAHa0FjdGl2ZQIAAAAGYWN0aXZlAAAAAAlrQXNzZXRJZEECAAAACkFfYXNzZXRfaWQAAAAACWtBc3NldElkQgIAAAAKQl9hc3NldF9pZAAAAAAJa0JhbGFuY2VBAgAAAA9BX2Fzc2V0X2JhbGFuY2UAAAAACWtCYWxhbmNlQgIAAAAPQl9hc3NldF9iYWxhbmNlAAAAAA1rU2hhcmVBc3NldElkAgAAAA5zaGFyZV9hc3NldF9pZAAAAAARa1NoYXJlQXNzZXRTdXBwbHkCAAAAEnNoYXJlX2Fzc2V0X3N1cHBseQAAAAAEa0ZlZQIAAAAKY29tbWlzc2lvbgAAAAASa0ZlZVNjYWxlRGVsaW1pdGVyAgAAABpjb21taXNzaW9uX3NjYWxlX2RlbGltaXRlcgAAAAAKa0ludmFyaWFudAIAAAAJaW52YXJpYW50AAAAAAZrQ2F1c2UCAAAAD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wgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V5BAzArA==", "height": 1560098, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 8kTQXh9AFP4Eq6wivfrgNtBZJPf5PtJgc4TS2mF7kqvM Next: 7LRtFbJeLzG3d19mGGd2G2cQL2cZKnMqh9BpwTKh7AgC Diff:
Old | New | Differences | |
---|---|---|---|
410 | 410 | then aY() | |
411 | 411 | else { | |
412 | 412 | let bU = if ((bN == z)) | |
413 | - | then $ | |
414 | - | else $ | |
413 | + | then $Tuple6((bM - bJ), bK, (G + bJ), (H - bK), (G + bM), H) | |
414 | + | else $Tuple6(bK, (bM - bJ), (G - bK), (H + bJ), G, (H + bM)) | |
415 | 415 | let bV = bU._1 | |
416 | 416 | let bW = bU._2 | |
417 | 417 | let bX = bU._3 | |
418 | 418 | let bY = bU._4 | |
419 | - | let bD = bU._5 | |
420 | - | let bZ = bU._6 | |
421 | - | let ca = bU._7 | |
422 | - | let cb = if ((bN == z)) | |
423 | - | then IntegerEntry(f, bZ) | |
424 | - | else IntegerEntry(g, ca) | |
419 | + | let bZ = bU._5 | |
420 | + | let ca = bU._6 | |
425 | 421 | let aw = an(bX, bY) | |
426 | 422 | let ax = fraction(P, K, aw) | |
427 | - | let | |
428 | - | let | |
423 | + | let cb = (fraction((P * P), bX, bY) / fraction(P, bV, bW)) | |
424 | + | let cc = fraction((bZ + ca), T, (2 * U)) | |
429 | 425 | if (if ((bT >= ax)) | |
430 | 426 | then true | |
431 | 427 | else (K > aw)) | |
432 | 428 | then throw("Incorrect virtualSwapTokenPay or virtualSwapTokenGet value") | |
433 | - | else if (if ((bR > | |
429 | + | else if (if ((bR > cb)) | |
434 | 430 | then true | |
435 | - | else ( | |
431 | + | else (cb > bS)) | |
436 | 432 | then throw("Swap with virtualSwapTokenPay and virtualSwapTokenGet is possible, but ratio after virtual swap is incorrect") | |
437 | - | else if (if (( | |
433 | + | else if (if ((cc > bZ)) | |
438 | 434 | then true | |
439 | - | else ( | |
440 | - | then aZ( | |
435 | + | else (cc > ca)) | |
436 | + | then aZ(cc, bZ, ca) | |
441 | 437 | else { | |
442 | 438 | let bG = fraction(aS(bV, z), P, bX) | |
443 | 439 | let bH = fraction(aS(bW, A), P, bY) | |
444 | 440 | let bI = fraction(min([bG, bH]), J, P) | |
445 | - | [Reissue(I, bI, true), ScriptTransfer(bi.caller, bI, I), IntegerEntry(i, (J + bI)), cb, IntegerEntry(l, bD)] | |
441 | + | let cd = fraction(bI, (N - (L / 2)), N) | |
442 | + | let ce = fraction(bI, (M / 2), N) | |
443 | + | let cf = fraction(ce, G, J) | |
444 | + | let cg = fraction(ce, H, J) | |
445 | + | let bD = an((bZ - cf), (ca - cg)) | |
446 | + | [Reissue(I, cd, true), ScriptTransfer(bi.caller, cd, I), ScriptTransfer(s, cf, z), ScriptTransfer(s, cg, A), IntegerEntry(f, (bZ - cf)), IntegerEntry(g, (ca - cg)), IntegerEntry(i, (J + cd)), IntegerEntry(l, bD)] | |
446 | 447 | } | |
447 | 448 | } | |
448 | 449 | } | |
451 | 452 | ||
452 | 453 | @Callable(bi) | |
453 | 454 | func withdraw () = { | |
454 | - | let | |
455 | - | let bM = | |
456 | - | let bN = | |
457 | - | let | |
458 | - | let | |
459 | - | let bD = an((G - | |
455 | + | let ch = $Tuple2(bi.payments[0].amount, bi.payments[0].assetId) | |
456 | + | let bM = ch._1 | |
457 | + | let bN = ch._2 | |
458 | + | let ci = aS(fraction(bM, G, J), z) | |
459 | + | let cj = aS(fraction(bM, H, J), A) | |
460 | + | let bD = an((G - ci), (H - cj)) | |
460 | 461 | if (!(w)) | |
461 | 462 | then aW() | |
462 | 463 | else if ((size(bi.payments) != 1)) | |
465 | 466 | then throw(("Incorrect asset attached. Expected: " + toBase58String(I))) | |
466 | 467 | else if (!(aj)) | |
467 | 468 | then bh() | |
468 | - | else if (if (( | |
469 | + | else if (if ((ci > af)) | |
469 | 470 | then true | |
470 | - | else ( | |
471 | - | then bg( | |
472 | - | else [IntegerEntry(f, (G - | |
471 | + | else (cj > ag)) | |
472 | + | then bg(ci, cj) | |
473 | + | else [IntegerEntry(f, (G - ci)), IntegerEntry(g, (H - cj)), IntegerEntry(i, (J - bM)), IntegerEntry(l, bD), Burn(I, bM), ScriptTransfer(bi.caller, ci, z), ScriptTransfer(bi.caller, cj, A)] | |
473 | 474 | } | |
474 | 475 | ||
475 | 476 | ||
476 | 477 | ||
477 | 478 | @Callable(bi) | |
478 | - | func exchange ( | |
479 | - | let | |
480 | - | let bM = | |
481 | - | let bN = | |
479 | + | func exchange (ck,cl) = { | |
480 | + | let cm = $Tuple2(bi.payments[0].amount, bi.payments[0].assetId) | |
481 | + | let bM = cm._1 | |
482 | + | let bN = cm._2 | |
482 | 483 | if (!(w)) | |
483 | 484 | then aW() | |
484 | - | else if ((0 >= | |
485 | - | then throw(("Estimated amount must be positive. Actual: " + toString( | |
486 | - | else if (( | |
487 | - | then throw(((("Minimal amount can't be greater than estimated. Estimated: " + toString( | |
485 | + | else if ((0 >= ck)) | |
486 | + | then throw(("Estimated amount must be positive. Actual: " + toString(ck))) | |
487 | + | else if ((cl > ck)) | |
488 | + | then throw(((("Minimal amount can't be greater than estimated. Estimated: " + toString(ck)) + ". Minimal: ") + toString(cl))) | |
488 | 489 | else if ((size(bi.payments) != 1)) | |
489 | 490 | then throw("One attached payment expected") | |
490 | 491 | else if (!(aj)) | |
495 | 496 | then aY() | |
496 | 497 | else if ((10000000 > bM)) | |
497 | 498 | then throw("Only swap of 10.000000 or more tokens is allowed") | |
498 | - | else if (if ((V > fraction(P, | |
499 | + | else if (if ((V > fraction(P, cl, bM))) | |
499 | 500 | then true | |
500 | - | else (fraction(P, | |
501 | + | else (fraction(P, ck, bM) > W)) | |
501 | 502 | then throw("Incorrect args and pmt ratio") | |
502 | 503 | else { | |
503 | - | let | |
504 | + | let cn = if ((bN == z)) | |
504 | 505 | then A | |
505 | 506 | else z | |
506 | - | let aT = ap( | |
507 | - | let | |
508 | - | let | |
509 | - | let | |
510 | - | then $Tuple2((G + bM), ((H - | |
511 | - | else $Tuple2(((G - | |
512 | - | let bZ = | |
513 | - | let ca = | |
514 | - | let | |
515 | - | if (if (( | |
507 | + | let aT = ap(ck, cl, bM, bN) | |
508 | + | let co = fraction(aT, M, N) | |
509 | + | let cp = fraction(aT, (N - L), N) | |
510 | + | let cq = if ((bN == z)) | |
511 | + | then $Tuple2((G + bM), ((H - cp) - co)) | |
512 | + | else $Tuple2(((G - cp) - co), (H + bM)) | |
513 | + | let bZ = cq._1 | |
514 | + | let ca = cq._2 | |
515 | + | let cc = fraction((bZ + ca), T, (2 * U)) | |
516 | + | if (if ((cc > bZ)) | |
516 | 517 | then true | |
517 | - | else ( | |
518 | - | then aZ( | |
518 | + | else (cc > ca)) | |
519 | + | then aZ(cc, bZ, ca) | |
519 | 520 | else if (if (if ((z == u)) | |
520 | - | then ( | |
521 | + | then (cn == z) | |
521 | 522 | else false) | |
522 | 523 | then (ac >= bZ) | |
523 | 524 | else false) | |
524 | - | then bd( | |
525 | + | then bd(cp, af, B) | |
525 | 526 | else if (if (if ((A == u)) | |
526 | - | then ( | |
527 | + | then (cn == A) | |
527 | 528 | else false) | |
528 | 529 | then (ac >= ca) | |
529 | 530 | else false) | |
530 | - | then bd( | |
531 | - | else [IntegerEntry(f, bZ), IntegerEntry(g, ca), IntegerEntry(l, an(bZ, ca)), ScriptTransfer(bi.caller, | |
531 | + | then bd(cp, ag, F) | |
532 | + | else [IntegerEntry(f, bZ), IntegerEntry(g, ca), IntegerEntry(l, an(bZ, ca)), ScriptTransfer(bi.caller, cp, cn), ScriptTransfer(s, co, cn)] | |
532 | 533 | } | |
533 | 534 | } | |
534 | 535 | ||
553 | 554 | ||
554 | 555 | ||
555 | 556 | @Callable(bi) | |
556 | - | func takeIntoAccountExtraFunds ( | |
557 | - | let | |
558 | - | let | |
559 | - | let | |
560 | - | then | |
557 | + | func takeIntoAccountExtraFunds (cr) = { | |
558 | + | let cs = (ah - G) | |
559 | + | let ct = (ai - H) | |
560 | + | let cu = (cs - (if ((z == u)) | |
561 | + | then cr | |
561 | 562 | else 0)) | |
562 | - | let | |
563 | - | then | |
563 | + | let cv = (ct - (if ((A == u)) | |
564 | + | then cr | |
564 | 565 | else 0)) | |
565 | - | let aw = an((G + | |
566 | + | let aw = an((G + cu), (H + cv)) | |
566 | 567 | if (!(w)) | |
567 | 568 | then aW() | |
568 | 569 | else if ((bi.caller != this)) | |
569 | 570 | then aX() | |
570 | - | else if ((0 > | |
571 | - | then throw(("Argument 'amountLeave' cannot be negative. Actual: " + toString( | |
572 | - | else if (if ((0 > | |
571 | + | else if ((0 > cr)) | |
572 | + | then throw(("Argument 'amountLeave' cannot be negative. Actual: " + toString(cr))) | |
573 | + | else if (if ((0 > cs)) | |
573 | 574 | then true | |
574 | - | else (0 > | |
575 | + | else (0 > ct)) | |
575 | 576 | then aQ("Enroll amount negative") | |
576 | - | else if (if ((0 > | |
577 | + | else if (if ((0 > cu)) | |
577 | 578 | then true | |
578 | - | else (0 > | |
579 | + | else (0 > cv)) | |
579 | 580 | then throw("Too large amountLeave") | |
580 | - | else [IntegerEntry(l, aw), IntegerEntry(f, (G + | |
581 | + | else [IntegerEntry(l, aw), IntegerEntry(f, (G + cu)), IntegerEntry(g, (H + cv)), IntegerEntry(("last_income_" + x), cu), IntegerEntry(("last_income_" + y), cv)] | |
581 | 582 | } | |
582 | 583 | ||
583 | 584 | ||
584 | - | @Verifier( | |
585 | - | func | |
586 | - | let C = | |
585 | + | @Verifier(cw) | |
586 | + | func cx () = { | |
587 | + | let C = cw | |
587 | 588 | if ($isInstanceOf(C, "InvokeScriptTransaction")) | |
588 | 589 | then { | |
589 | - | let | |
590 | - | let | |
591 | - | then ( | |
590 | + | let cy = C | |
591 | + | let cz = if ((cy.dApp == this)) | |
592 | + | then (cy.function == "takeIntoAccountExtraFunds") | |
592 | 593 | else false | |
593 | - | let | |
594 | - | then if (if (if (( | |
595 | - | then (size( | |
594 | + | let cA = if ((cy.dApp == t)) | |
595 | + | then if (if (if ((cy.function == "lockNeutrino")) | |
596 | + | then (size(cy.payments) == 1) | |
596 | 597 | else false) | |
597 | - | then ( | |
598 | + | then (cy.payments[0].assetId == u) | |
598 | 599 | else false) | |
599 | 600 | then true | |
600 | - | else if (( | |
601 | - | then (size( | |
601 | + | else if ((cy.function == "unlockNeutrino")) | |
602 | + | then (size(cy.payments) == 0) | |
602 | 603 | else false | |
603 | 604 | else false | |
604 | - | let | |
605 | + | let cB = if (if (if (sigVerify(cw.bodyBytes, cw.proofs[0], n)) | |
605 | 606 | then true | |
606 | - | else sigVerify( | |
607 | + | else sigVerify(cw.bodyBytes, cw.proofs[0], o)) | |
607 | 608 | then true | |
608 | - | else sigVerify( | |
609 | + | else sigVerify(cw.bodyBytes, cw.proofs[0], p)) | |
609 | 610 | then true | |
610 | - | else sigVerify( | |
611 | - | if ( | |
611 | + | else sigVerify(cw.bodyBytes, cw.proofs[0], r) | |
612 | + | if (cz) | |
612 | 613 | then true | |
613 | - | else | |
614 | + | else cA | |
614 | 615 | } | |
615 | - | else sigVerify( | |
616 | + | else sigVerify(cw.bodyBytes, cw.proofs[0], cw.senderPublicKey) | |
616 | 617 | } | |
617 | 618 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 4 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = "2.0.0" | |
5 | 5 | ||
6 | 6 | let b = "version" | |
7 | 7 | ||
8 | 8 | let c = "active" | |
9 | 9 | ||
10 | 10 | let d = "A_asset_id" | |
11 | 11 | ||
12 | 12 | let e = "B_asset_id" | |
13 | 13 | ||
14 | 14 | let f = "A_asset_balance" | |
15 | 15 | ||
16 | 16 | let g = "B_asset_balance" | |
17 | 17 | ||
18 | 18 | let h = "share_asset_id" | |
19 | 19 | ||
20 | 20 | let i = "share_asset_supply" | |
21 | 21 | ||
22 | 22 | let j = "commission" | |
23 | 23 | ||
24 | 24 | let k = "commission_scale_delimiter" | |
25 | 25 | ||
26 | 26 | let l = "invariant" | |
27 | 27 | ||
28 | 28 | let m = "shutdown_cause" | |
29 | 29 | ||
30 | 30 | let n = base58'Kn7NpzaG12dLZgcHf2ipUftU6hbJygmrhFqQYE4B7ZK' | |
31 | 31 | ||
32 | 32 | let o = base58'Kn7NpzaG12dLZgcHf2ipUftU6hbJygmrhFqQYE4B7ZK' | |
33 | 33 | ||
34 | 34 | let p = base58'Kn7NpzaG12dLZgcHf2ipUftU6hbJygmrhFqQYE4B7ZK' | |
35 | 35 | ||
36 | 36 | let q = base58'Kn7NpzaG12dLZgcHf2ipUftU6hbJygmrhFqQYE4B7ZK' | |
37 | 37 | ||
38 | 38 | let r = base58'Kn7NpzaG12dLZgcHf2ipUftU6hbJygmrhFqQYE4B7ZK' | |
39 | 39 | ||
40 | 40 | let s = Address(base58'3NAGTtZz6WpupSN89NZD5rMZwwziZEg4Kx4') | |
41 | 41 | ||
42 | 42 | let t = Address(base58'3N6q7sCGSSLBUXDdjBdYGTJbZGZfhhh8cNg') | |
43 | 43 | ||
44 | 44 | let u = base58'8UrfDVd5GreeUwm7uPk7eYz1eMv376kzR52C6sANPkwS' | |
45 | 45 | ||
46 | 46 | let v = (9 * value(value(assetInfo(u)).minSponsoredFee)) | |
47 | 47 | ||
48 | 48 | let w = getBooleanValue(this, c) | |
49 | 49 | ||
50 | 50 | let x = getStringValue(this, d) | |
51 | 51 | ||
52 | 52 | let y = getStringValue(this, e) | |
53 | 53 | ||
54 | 54 | let z = if ((x == "WAVES")) | |
55 | 55 | then unit | |
56 | 56 | else fromBase58String(x) | |
57 | 57 | ||
58 | 58 | let A = if ((y == "WAVES")) | |
59 | 59 | then unit | |
60 | 60 | else fromBase58String(y) | |
61 | 61 | ||
62 | 62 | let B = { | |
63 | 63 | let C = z | |
64 | 64 | if ($isInstanceOf(C, "ByteVector")) | |
65 | 65 | then { | |
66 | 66 | let D = C | |
67 | 67 | value(assetInfo(D)).name | |
68 | 68 | } | |
69 | 69 | else if ($isInstanceOf(C, "Unit")) | |
70 | 70 | then { | |
71 | 71 | let E = C | |
72 | 72 | "WAVES" | |
73 | 73 | } | |
74 | 74 | else throw("Match error") | |
75 | 75 | } | |
76 | 76 | ||
77 | 77 | let F = { | |
78 | 78 | let C = A | |
79 | 79 | if ($isInstanceOf(C, "ByteVector")) | |
80 | 80 | then { | |
81 | 81 | let D = C | |
82 | 82 | value(assetInfo(D)).name | |
83 | 83 | } | |
84 | 84 | else if ($isInstanceOf(C, "Unit")) | |
85 | 85 | then { | |
86 | 86 | let E = C | |
87 | 87 | "WAVES" | |
88 | 88 | } | |
89 | 89 | else throw("Match error") | |
90 | 90 | } | |
91 | 91 | ||
92 | 92 | let G = getIntegerValue(this, f) | |
93 | 93 | ||
94 | 94 | let H = getIntegerValue(this, g) | |
95 | 95 | ||
96 | 96 | let I = fromBase58String(getStringValue(this, h)) | |
97 | 97 | ||
98 | 98 | let J = getIntegerValue(this, i) | |
99 | 99 | ||
100 | 100 | let K = getIntegerValue(this, l) | |
101 | 101 | ||
102 | 102 | let L = 500 | |
103 | 103 | ||
104 | 104 | let M = 200 | |
105 | 105 | ||
106 | 106 | let N = 1000000 | |
107 | 107 | ||
108 | 108 | let O = 1000 | |
109 | 109 | ||
110 | 110 | let P = 100000000 | |
111 | 111 | ||
112 | 112 | let Q = 1000000000000 | |
113 | 113 | ||
114 | 114 | let R = 1000 | |
115 | 115 | ||
116 | 116 | let S = 8 | |
117 | 117 | ||
118 | 118 | let T = 50 | |
119 | 119 | ||
120 | 120 | let U = 100 | |
121 | 121 | ||
122 | 122 | let V = 90000000 | |
123 | 123 | ||
124 | 124 | let W = 110000000 | |
125 | 125 | ||
126 | 126 | let X = 50 | |
127 | 127 | ||
128 | 128 | let Y = 2 | |
129 | 129 | ||
130 | 130 | let Z = 46000000 | |
131 | 131 | ||
132 | 132 | func aa (ab) = { | |
133 | 133 | let C = ab | |
134 | 134 | if ($isInstanceOf(C, "ByteVector")) | |
135 | 135 | then { | |
136 | 136 | let D = C | |
137 | 137 | assetBalance(this, D) | |
138 | 138 | } | |
139 | 139 | else if ($isInstanceOf(C, "Unit")) | |
140 | 140 | then { | |
141 | 141 | let E = C | |
142 | 142 | wavesBalance(this).available | |
143 | 143 | } | |
144 | 144 | else throw("Match error") | |
145 | 145 | } | |
146 | 146 | ||
147 | 147 | ||
148 | 148 | let ac = { | |
149 | 149 | let C = getInteger(t, ((("rpd_balance_" + toBase58String(u)) + "_") + toString(this))) | |
150 | 150 | if ($isInstanceOf(C, "Int")) | |
151 | 151 | then { | |
152 | 152 | let ad = C | |
153 | 153 | ad | |
154 | 154 | } | |
155 | 155 | else if ($isInstanceOf(C, "Unit")) | |
156 | 156 | then { | |
157 | 157 | let ae = C | |
158 | 158 | 0 | |
159 | 159 | } | |
160 | 160 | else throw("Match error") | |
161 | 161 | } | |
162 | 162 | ||
163 | 163 | let af = (G - (if ((z == u)) | |
164 | 164 | then ac | |
165 | 165 | else 0)) | |
166 | 166 | ||
167 | 167 | let ag = (H - (if ((A == u)) | |
168 | 168 | then ac | |
169 | 169 | else 0)) | |
170 | 170 | ||
171 | 171 | let ah = (aa(z) + (if ((z == u)) | |
172 | 172 | then ac | |
173 | 173 | else 0)) | |
174 | 174 | ||
175 | 175 | let ai = (aa(A) + (if ((A == u)) | |
176 | 176 | then ac | |
177 | 177 | else 0)) | |
178 | 178 | ||
179 | 179 | let aj = if ((ah >= G)) | |
180 | 180 | then (ai >= H) | |
181 | 181 | else false | |
182 | 182 | ||
183 | 183 | func ak (al,am) = (((fraction(Q, al, am) + fraction(Q, am, al)) / 2) / 10000) | |
184 | 184 | ||
185 | 185 | ||
186 | 186 | func an (al,am) = { | |
187 | 187 | let ao = ak(al, am) | |
188 | 188 | (fraction((al + am), P, pow(ao, S, X, Y, S, UP)) + (2 * fraction(pow(fraction(al, am, P), 0, 5, 1, (S / 2), DOWN), pow((ao - Z), S, X, Y, S, DOWN), P))) | |
189 | 189 | } | |
190 | 190 | ||
191 | 191 | ||
192 | 192 | func ap (aq,ar,as,at) = { | |
193 | 193 | let au = (P - ((P * 1) / 10000000)) | |
194 | 194 | let av = (aq - ar) | |
195 | 195 | let al = (G + as) | |
196 | 196 | let am = (H + as) | |
197 | 197 | let aw = if ((at == z)) | |
198 | 198 | then an(al, (H - aq)) | |
199 | 199 | else if ((at == A)) | |
200 | 200 | then an((G - aq), am) | |
201 | 201 | else throw("Wrong asset in payment") | |
202 | 202 | let ax = fraction(P, K, aw) | |
203 | 203 | func ay (az,aA) = if ((az == -1)) | |
204 | 204 | then { | |
205 | 205 | let aB = (aq - ((aA * av) / 5)) | |
206 | 206 | let aC = if ((at == z)) | |
207 | 207 | then an(al, (H - aB)) | |
208 | 208 | else an((G - aB), am) | |
209 | 209 | if ((aC > K)) | |
210 | 210 | then aB | |
211 | 211 | else -1 | |
212 | 212 | } | |
213 | 213 | else az | |
214 | 214 | ||
215 | 215 | let aD = { | |
216 | 216 | let aE = [1, 2, 3, 4, 5] | |
217 | 217 | let aF = size(aE) | |
218 | 218 | let aG = -1 | |
219 | 219 | if ((aF == 0)) | |
220 | 220 | then aG | |
221 | 221 | else { | |
222 | 222 | let aH = ay(aG, aE[0]) | |
223 | 223 | if ((aF == 1)) | |
224 | 224 | then aH | |
225 | 225 | else { | |
226 | 226 | let aI = ay(aH, aE[1]) | |
227 | 227 | if ((aF == 2)) | |
228 | 228 | then aI | |
229 | 229 | else { | |
230 | 230 | let aJ = ay(aI, aE[2]) | |
231 | 231 | if ((aF == 3)) | |
232 | 232 | then aJ | |
233 | 233 | else { | |
234 | 234 | let aK = ay(aJ, aE[3]) | |
235 | 235 | if ((aF == 4)) | |
236 | 236 | then aK | |
237 | 237 | else { | |
238 | 238 | let aL = ay(aK, aE[4]) | |
239 | 239 | if ((aF == 5)) | |
240 | 240 | then aL | |
241 | 241 | else { | |
242 | 242 | let aM = ay(aL, aE[5]) | |
243 | 243 | throw("List size exceed 5") | |
244 | 244 | } | |
245 | 245 | } | |
246 | 246 | } | |
247 | 247 | } | |
248 | 248 | } | |
249 | 249 | } | |
250 | 250 | } | |
251 | 251 | if ((0 > aD)) | |
252 | 252 | then throw("something went wrong while working with amountToSend") | |
253 | 253 | else if (if ((ax > au)) | |
254 | 254 | then (aw > K) | |
255 | 255 | else false) | |
256 | 256 | then aq | |
257 | 257 | else aD | |
258 | 258 | } | |
259 | 259 | ||
260 | 260 | ||
261 | 261 | func aN (ab) = { | |
262 | 262 | let C = ab | |
263 | 263 | if ($isInstanceOf(C, "ByteVector")) | |
264 | 264 | then { | |
265 | 265 | let D = C | |
266 | 266 | let aO = toBase58String(D) | |
267 | 267 | let aP = valueOrErrorMessage(assetInfo(D), (("Asset " + aO) + " doesn't exist")) | |
268 | 268 | $Tuple3(aO, aP.name, aP.decimals) | |
269 | 269 | } | |
270 | 270 | else if ($isInstanceOf(C, "Unit")) | |
271 | 271 | then { | |
272 | 272 | let E = C | |
273 | 273 | $Tuple3("WAVES", "WAVES", 8) | |
274 | 274 | } | |
275 | 275 | else throw("Match error") | |
276 | 276 | } | |
277 | 277 | ||
278 | 278 | ||
279 | 279 | func aQ (aR) = [BooleanEntry(c, false), StringEntry(m, aR)] | |
280 | 280 | ||
281 | 281 | ||
282 | 282 | func aS (aT,ab) = if ((ab == u)) | |
283 | 283 | then { | |
284 | 284 | let aU = (aT - v) | |
285 | 285 | if ((0 >= aU)) | |
286 | 286 | then throw((((("Insufficient amount " + toString(aT)) + " to deduct staking fee ") + toString(v)) + " USD-N")) | |
287 | 287 | else aU | |
288 | 288 | } | |
289 | 289 | else aT | |
290 | 290 | ||
291 | 291 | ||
292 | 292 | func aV () = throw("DApp is already active") | |
293 | 293 | ||
294 | 294 | ||
295 | 295 | func aW () = throw("DApp is inactive at this moment") | |
296 | 296 | ||
297 | 297 | ||
298 | 298 | func aX () = throw("Only admin can call this function") | |
299 | 299 | ||
300 | 300 | ||
301 | 301 | func aY () = throw(((("Incorrect assets attached. Expected: " + x) + " and ") + y)) | |
302 | 302 | ||
303 | 303 | ||
304 | 304 | func aZ (ba,bb,bc) = throw(((((((((("New balance in assets of the DApp is less than threshold " + toString(ba)) + ": ") + toString(bb)) + " ") + B) + ", ") + toString(bc)) + " ") + F)) | |
305 | 305 | ||
306 | 306 | ||
307 | 307 | func bd (aT,be,bf) = throw((((((((("Insufficient DApp balance to pay " + toString(aT)) + " ") + bf) + " due to staking. Available: ") + toString(be)) + " ") + bf) + ". Please contact support in Telegram: https://t.me/swopfisupport")) | |
308 | 308 | ||
309 | 309 | ||
310 | 310 | func bg (bb,bc) = throw((((((((((((((((("Insufficient DApp balance to pay " + toString(bb)) + " ") + B) + " and ") + toString(bc)) + " ") + F) + " due to staking. Available: ") + toString(af)) + " ") + B) + " and ") + toString(ag)) + " ") + F) + ". Please contact support in Telegram: https://t.me/swopfisupport")) | |
311 | 311 | ||
312 | 312 | ||
313 | 313 | func bh () = aQ(((((((((((((((("Suspicious state. Actual balances: " + toString(G)) + " ") + B) + ", ") + toString(H)) + " ") + F) + ". State: ") + toString(aa(z))) + " ") + B) + ", ") + toString(aa(A))) + " ") + F)) | |
314 | 314 | ||
315 | 315 | ||
316 | 316 | @Callable(bi) | |
317 | 317 | func init () = { | |
318 | 318 | let bj = $Tuple2(bi.payments[0].amount, bi.payments[0].assetId) | |
319 | 319 | let bk = bj._1 | |
320 | 320 | let bl = bj._2 | |
321 | 321 | let bm = $Tuple2(bi.payments[1].amount, bi.payments[1].assetId) | |
322 | 322 | let bn = bm._1 | |
323 | 323 | let bo = bm._2 | |
324 | 324 | let bp = aN(bl) | |
325 | 325 | let bq = bp._1 | |
326 | 326 | let br = bp._2 | |
327 | 327 | let bs = bp._3 | |
328 | 328 | let bt = aN(bo) | |
329 | 329 | let bu = bt._1 | |
330 | 330 | let bv = bt._2 | |
331 | 331 | let bw = bt._3 | |
332 | 332 | if (isDefined(getBoolean(this, c))) | |
333 | 333 | then aV() | |
334 | 334 | else if ((bl == bo)) | |
335 | 335 | then throw("Assets must be different") | |
336 | 336 | else { | |
337 | 337 | let bx = ((("s" + take(br, 7)) + "_") + take(bv, 7)) | |
338 | 338 | let by = ((((("ShareToken of SwopFi protocol for " + br) + " and ") + bv) + " at address ") + toString(this)) | |
339 | 339 | let bz = ((bs + bw) / 2) | |
340 | 340 | let bA = fraction(pow(bk, bs, 5, 1, bs, HALFDOWN), pow(bn, bw, 5, 1, bw, HALFDOWN), pow(10, 0, bz, 0, 0, HALFDOWN)) | |
341 | 341 | let bB = Issue(bx, by, bA, bz, true) | |
342 | 342 | let bC = calculateAssetId(bB) | |
343 | 343 | let bD = an(bk, bn) | |
344 | 344 | [StringEntry(b, a), BooleanEntry(c, true), StringEntry(d, bq), StringEntry(e, bu), IntegerEntry(f, bk), IntegerEntry(g, bn), IntegerEntry(l, bD), IntegerEntry(j, L), IntegerEntry(k, N), bB, StringEntry(h, toBase58String(bC)), IntegerEntry(i, bA), ScriptTransfer(bi.caller, bA, bC)] | |
345 | 345 | } | |
346 | 346 | } | |
347 | 347 | ||
348 | 348 | ||
349 | 349 | ||
350 | 350 | @Callable(bi) | |
351 | 351 | func replenishWithTwoTokens (bE) = { | |
352 | 352 | let bl = bi.payments[0].assetId | |
353 | 353 | let bo = bi.payments[1].assetId | |
354 | 354 | let bk = aS(bi.payments[0].amount, bl) | |
355 | 355 | let bn = aS(bi.payments[1].amount, bo) | |
356 | 356 | let bF = fraction(fraction(P, G, bk), O, fraction(P, H, bn)) | |
357 | 357 | let bG = fraction(P, bk, G) | |
358 | 358 | let bH = fraction(P, bn, H) | |
359 | 359 | let bI = fraction(min([bG, bH]), J, P) | |
360 | 360 | let bD = an((G + bk), (H + bn)) | |
361 | 361 | if (!(w)) | |
362 | 362 | then aW() | |
363 | 363 | else if (if ((0 > bE)) | |
364 | 364 | then true | |
365 | 365 | else (bE > 10)) | |
366 | 366 | then throw("Slippage tolerance must be <= 1%") | |
367 | 367 | else if ((size(bi.payments) != 2)) | |
368 | 368 | then throw("Two attached assets expected") | |
369 | 369 | else if (if ((bl != z)) | |
370 | 370 | then true | |
371 | 371 | else (bo != A)) | |
372 | 372 | then aY() | |
373 | 373 | else if (if ((((O * (R - bE)) / R) > bF)) | |
374 | 374 | then true | |
375 | 375 | else (bF > ((O * (R + bE)) / R))) | |
376 | 376 | then throw("Incorrect assets amount: amounts must have the contract ratio") | |
377 | 377 | else if ((bI == 0)) | |
378 | 378 | then throw("Too small amount to replenish") | |
379 | 379 | else if (!(aj)) | |
380 | 380 | then bh() | |
381 | 381 | else [IntegerEntry(f, (G + bk)), IntegerEntry(g, (H + bn)), IntegerEntry(i, (J + bI)), IntegerEntry(l, bD), Reissue(I, bI, true), ScriptTransfer(bi.caller, bI, I)] | |
382 | 382 | } | |
383 | 383 | ||
384 | 384 | ||
385 | 385 | ||
386 | 386 | @Callable(bi) | |
387 | 387 | func replenishWithOneToken (bJ,bK) = { | |
388 | 388 | let bL = $Tuple2(bi.payments[0].amount, bi.payments[0].assetId) | |
389 | 389 | let bM = bL._1 | |
390 | 390 | let bN = bL._2 | |
391 | 391 | let bO = 5000000 | |
392 | 392 | let bP = 50000000 | |
393 | 393 | let bQ = if ((bP > bM)) | |
394 | 394 | then 100000 | |
395 | 395 | else 1 | |
396 | 396 | let bR = (P - ((P * bQ) / 10000000)) | |
397 | 397 | let bS = (P + ((P * bQ) / 10000000)) | |
398 | 398 | let bT = (P - ((P * 1) / 10000000)) | |
399 | 399 | if (!(w)) | |
400 | 400 | then aW() | |
401 | 401 | else if ((bO > bM)) | |
402 | 402 | then throw((((("Payment amount " + toString(bM)) + " does not exceed the minimum amount of ") + toString(bO)) + " tokens")) | |
403 | 403 | else if ((size(bi.payments) != 1)) | |
404 | 404 | then throw("One attached payment expected") | |
405 | 405 | else if (!(aj)) | |
406 | 406 | then bh() | |
407 | 407 | else if (if ((bN != z)) | |
408 | 408 | then (bN != A) | |
409 | 409 | else false) | |
410 | 410 | then aY() | |
411 | 411 | else { | |
412 | 412 | let bU = if ((bN == z)) | |
413 | - | then $ | |
414 | - | else $ | |
413 | + | then $Tuple6((bM - bJ), bK, (G + bJ), (H - bK), (G + bM), H) | |
414 | + | else $Tuple6(bK, (bM - bJ), (G - bK), (H + bJ), G, (H + bM)) | |
415 | 415 | let bV = bU._1 | |
416 | 416 | let bW = bU._2 | |
417 | 417 | let bX = bU._3 | |
418 | 418 | let bY = bU._4 | |
419 | - | let bD = bU._5 | |
420 | - | let bZ = bU._6 | |
421 | - | let ca = bU._7 | |
422 | - | let cb = if ((bN == z)) | |
423 | - | then IntegerEntry(f, bZ) | |
424 | - | else IntegerEntry(g, ca) | |
419 | + | let bZ = bU._5 | |
420 | + | let ca = bU._6 | |
425 | 421 | let aw = an(bX, bY) | |
426 | 422 | let ax = fraction(P, K, aw) | |
427 | - | let | |
428 | - | let | |
423 | + | let cb = (fraction((P * P), bX, bY) / fraction(P, bV, bW)) | |
424 | + | let cc = fraction((bZ + ca), T, (2 * U)) | |
429 | 425 | if (if ((bT >= ax)) | |
430 | 426 | then true | |
431 | 427 | else (K > aw)) | |
432 | 428 | then throw("Incorrect virtualSwapTokenPay or virtualSwapTokenGet value") | |
433 | - | else if (if ((bR > | |
429 | + | else if (if ((bR > cb)) | |
434 | 430 | then true | |
435 | - | else ( | |
431 | + | else (cb > bS)) | |
436 | 432 | then throw("Swap with virtualSwapTokenPay and virtualSwapTokenGet is possible, but ratio after virtual swap is incorrect") | |
437 | - | else if (if (( | |
433 | + | else if (if ((cc > bZ)) | |
438 | 434 | then true | |
439 | - | else ( | |
440 | - | then aZ( | |
435 | + | else (cc > ca)) | |
436 | + | then aZ(cc, bZ, ca) | |
441 | 437 | else { | |
442 | 438 | let bG = fraction(aS(bV, z), P, bX) | |
443 | 439 | let bH = fraction(aS(bW, A), P, bY) | |
444 | 440 | let bI = fraction(min([bG, bH]), J, P) | |
445 | - | [Reissue(I, bI, true), ScriptTransfer(bi.caller, bI, I), IntegerEntry(i, (J + bI)), cb, IntegerEntry(l, bD)] | |
441 | + | let cd = fraction(bI, (N - (L / 2)), N) | |
442 | + | let ce = fraction(bI, (M / 2), N) | |
443 | + | let cf = fraction(ce, G, J) | |
444 | + | let cg = fraction(ce, H, J) | |
445 | + | let bD = an((bZ - cf), (ca - cg)) | |
446 | + | [Reissue(I, cd, true), ScriptTransfer(bi.caller, cd, I), ScriptTransfer(s, cf, z), ScriptTransfer(s, cg, A), IntegerEntry(f, (bZ - cf)), IntegerEntry(g, (ca - cg)), IntegerEntry(i, (J + cd)), IntegerEntry(l, bD)] | |
446 | 447 | } | |
447 | 448 | } | |
448 | 449 | } | |
449 | 450 | ||
450 | 451 | ||
451 | 452 | ||
452 | 453 | @Callable(bi) | |
453 | 454 | func withdraw () = { | |
454 | - | let | |
455 | - | let bM = | |
456 | - | let bN = | |
457 | - | let | |
458 | - | let | |
459 | - | let bD = an((G - | |
455 | + | let ch = $Tuple2(bi.payments[0].amount, bi.payments[0].assetId) | |
456 | + | let bM = ch._1 | |
457 | + | let bN = ch._2 | |
458 | + | let ci = aS(fraction(bM, G, J), z) | |
459 | + | let cj = aS(fraction(bM, H, J), A) | |
460 | + | let bD = an((G - ci), (H - cj)) | |
460 | 461 | if (!(w)) | |
461 | 462 | then aW() | |
462 | 463 | else if ((size(bi.payments) != 1)) | |
463 | 464 | then throw("One attached payment expected") | |
464 | 465 | else if ((bN != I)) | |
465 | 466 | then throw(("Incorrect asset attached. Expected: " + toBase58String(I))) | |
466 | 467 | else if (!(aj)) | |
467 | 468 | then bh() | |
468 | - | else if (if (( | |
469 | + | else if (if ((ci > af)) | |
469 | 470 | then true | |
470 | - | else ( | |
471 | - | then bg( | |
472 | - | else [IntegerEntry(f, (G - | |
471 | + | else (cj > ag)) | |
472 | + | then bg(ci, cj) | |
473 | + | else [IntegerEntry(f, (G - ci)), IntegerEntry(g, (H - cj)), IntegerEntry(i, (J - bM)), IntegerEntry(l, bD), Burn(I, bM), ScriptTransfer(bi.caller, ci, z), ScriptTransfer(bi.caller, cj, A)] | |
473 | 474 | } | |
474 | 475 | ||
475 | 476 | ||
476 | 477 | ||
477 | 478 | @Callable(bi) | |
478 | - | func exchange ( | |
479 | - | let | |
480 | - | let bM = | |
481 | - | let bN = | |
479 | + | func exchange (ck,cl) = { | |
480 | + | let cm = $Tuple2(bi.payments[0].amount, bi.payments[0].assetId) | |
481 | + | let bM = cm._1 | |
482 | + | let bN = cm._2 | |
482 | 483 | if (!(w)) | |
483 | 484 | then aW() | |
484 | - | else if ((0 >= | |
485 | - | then throw(("Estimated amount must be positive. Actual: " + toString( | |
486 | - | else if (( | |
487 | - | then throw(((("Minimal amount can't be greater than estimated. Estimated: " + toString( | |
485 | + | else if ((0 >= ck)) | |
486 | + | then throw(("Estimated amount must be positive. Actual: " + toString(ck))) | |
487 | + | else if ((cl > ck)) | |
488 | + | then throw(((("Minimal amount can't be greater than estimated. Estimated: " + toString(ck)) + ". Minimal: ") + toString(cl))) | |
488 | 489 | else if ((size(bi.payments) != 1)) | |
489 | 490 | then throw("One attached payment expected") | |
490 | 491 | else if (!(aj)) | |
491 | 492 | then bh() | |
492 | 493 | else if (if ((bN != z)) | |
493 | 494 | then (bN != A) | |
494 | 495 | else false) | |
495 | 496 | then aY() | |
496 | 497 | else if ((10000000 > bM)) | |
497 | 498 | then throw("Only swap of 10.000000 or more tokens is allowed") | |
498 | - | else if (if ((V > fraction(P, | |
499 | + | else if (if ((V > fraction(P, cl, bM))) | |
499 | 500 | then true | |
500 | - | else (fraction(P, | |
501 | + | else (fraction(P, ck, bM) > W)) | |
501 | 502 | then throw("Incorrect args and pmt ratio") | |
502 | 503 | else { | |
503 | - | let | |
504 | + | let cn = if ((bN == z)) | |
504 | 505 | then A | |
505 | 506 | else z | |
506 | - | let aT = ap( | |
507 | - | let | |
508 | - | let | |
509 | - | let | |
510 | - | then $Tuple2((G + bM), ((H - | |
511 | - | else $Tuple2(((G - | |
512 | - | let bZ = | |
513 | - | let ca = | |
514 | - | let | |
515 | - | if (if (( | |
507 | + | let aT = ap(ck, cl, bM, bN) | |
508 | + | let co = fraction(aT, M, N) | |
509 | + | let cp = fraction(aT, (N - L), N) | |
510 | + | let cq = if ((bN == z)) | |
511 | + | then $Tuple2((G + bM), ((H - cp) - co)) | |
512 | + | else $Tuple2(((G - cp) - co), (H + bM)) | |
513 | + | let bZ = cq._1 | |
514 | + | let ca = cq._2 | |
515 | + | let cc = fraction((bZ + ca), T, (2 * U)) | |
516 | + | if (if ((cc > bZ)) | |
516 | 517 | then true | |
517 | - | else ( | |
518 | - | then aZ( | |
518 | + | else (cc > ca)) | |
519 | + | then aZ(cc, bZ, ca) | |
519 | 520 | else if (if (if ((z == u)) | |
520 | - | then ( | |
521 | + | then (cn == z) | |
521 | 522 | else false) | |
522 | 523 | then (ac >= bZ) | |
523 | 524 | else false) | |
524 | - | then bd( | |
525 | + | then bd(cp, af, B) | |
525 | 526 | else if (if (if ((A == u)) | |
526 | - | then ( | |
527 | + | then (cn == A) | |
527 | 528 | else false) | |
528 | 529 | then (ac >= ca) | |
529 | 530 | else false) | |
530 | - | then bd( | |
531 | - | else [IntegerEntry(f, bZ), IntegerEntry(g, ca), IntegerEntry(l, an(bZ, ca)), ScriptTransfer(bi.caller, | |
531 | + | then bd(cp, ag, F) | |
532 | + | else [IntegerEntry(f, bZ), IntegerEntry(g, ca), IntegerEntry(l, an(bZ, ca)), ScriptTransfer(bi.caller, cp, cn), ScriptTransfer(s, co, cn)] | |
532 | 533 | } | |
533 | 534 | } | |
534 | 535 | ||
535 | 536 | ||
536 | 537 | ||
537 | 538 | @Callable(bi) | |
538 | 539 | func shutdown () = if (!(w)) | |
539 | 540 | then throw(("DApp is already suspended. Cause: " + valueOrElse(getString(this, m), "the cause wasn't specified"))) | |
540 | 541 | else if (!(containsElement([n, o, p, q], bi.callerPublicKey))) | |
541 | 542 | then aX() | |
542 | 543 | else aQ("Paused by admin") | |
543 | 544 | ||
544 | 545 | ||
545 | 546 | ||
546 | 547 | @Callable(bi) | |
547 | 548 | func activate () = if (w) | |
548 | 549 | then aV() | |
549 | 550 | else if (!(containsElement([n, o, p, q], bi.callerPublicKey))) | |
550 | 551 | then aX() | |
551 | 552 | else [BooleanEntry(c, true), DeleteEntry(m)] | |
552 | 553 | ||
553 | 554 | ||
554 | 555 | ||
555 | 556 | @Callable(bi) | |
556 | - | func takeIntoAccountExtraFunds ( | |
557 | - | let | |
558 | - | let | |
559 | - | let | |
560 | - | then | |
557 | + | func takeIntoAccountExtraFunds (cr) = { | |
558 | + | let cs = (ah - G) | |
559 | + | let ct = (ai - H) | |
560 | + | let cu = (cs - (if ((z == u)) | |
561 | + | then cr | |
561 | 562 | else 0)) | |
562 | - | let | |
563 | - | then | |
563 | + | let cv = (ct - (if ((A == u)) | |
564 | + | then cr | |
564 | 565 | else 0)) | |
565 | - | let aw = an((G + | |
566 | + | let aw = an((G + cu), (H + cv)) | |
566 | 567 | if (!(w)) | |
567 | 568 | then aW() | |
568 | 569 | else if ((bi.caller != this)) | |
569 | 570 | then aX() | |
570 | - | else if ((0 > | |
571 | - | then throw(("Argument 'amountLeave' cannot be negative. Actual: " + toString( | |
572 | - | else if (if ((0 > | |
571 | + | else if ((0 > cr)) | |
572 | + | then throw(("Argument 'amountLeave' cannot be negative. Actual: " + toString(cr))) | |
573 | + | else if (if ((0 > cs)) | |
573 | 574 | then true | |
574 | - | else (0 > | |
575 | + | else (0 > ct)) | |
575 | 576 | then aQ("Enroll amount negative") | |
576 | - | else if (if ((0 > | |
577 | + | else if (if ((0 > cu)) | |
577 | 578 | then true | |
578 | - | else (0 > | |
579 | + | else (0 > cv)) | |
579 | 580 | then throw("Too large amountLeave") | |
580 | - | else [IntegerEntry(l, aw), IntegerEntry(f, (G + | |
581 | + | else [IntegerEntry(l, aw), IntegerEntry(f, (G + cu)), IntegerEntry(g, (H + cv)), IntegerEntry(("last_income_" + x), cu), IntegerEntry(("last_income_" + y), cv)] | |
581 | 582 | } | |
582 | 583 | ||
583 | 584 | ||
584 | - | @Verifier( | |
585 | - | func | |
586 | - | let C = | |
585 | + | @Verifier(cw) | |
586 | + | func cx () = { | |
587 | + | let C = cw | |
587 | 588 | if ($isInstanceOf(C, "InvokeScriptTransaction")) | |
588 | 589 | then { | |
589 | - | let | |
590 | - | let | |
591 | - | then ( | |
590 | + | let cy = C | |
591 | + | let cz = if ((cy.dApp == this)) | |
592 | + | then (cy.function == "takeIntoAccountExtraFunds") | |
592 | 593 | else false | |
593 | - | let | |
594 | - | then if (if (if (( | |
595 | - | then (size( | |
594 | + | let cA = if ((cy.dApp == t)) | |
595 | + | then if (if (if ((cy.function == "lockNeutrino")) | |
596 | + | then (size(cy.payments) == 1) | |
596 | 597 | else false) | |
597 | - | then ( | |
598 | + | then (cy.payments[0].assetId == u) | |
598 | 599 | else false) | |
599 | 600 | then true | |
600 | - | else if (( | |
601 | - | then (size( | |
601 | + | else if ((cy.function == "unlockNeutrino")) | |
602 | + | then (size(cy.payments) == 0) | |
602 | 603 | else false | |
603 | 604 | else false | |
604 | - | let | |
605 | + | let cB = if (if (if (sigVerify(cw.bodyBytes, cw.proofs[0], n)) | |
605 | 606 | then true | |
606 | - | else sigVerify( | |
607 | + | else sigVerify(cw.bodyBytes, cw.proofs[0], o)) | |
607 | 608 | then true | |
608 | - | else sigVerify( | |
609 | + | else sigVerify(cw.bodyBytes, cw.proofs[0], p)) | |
609 | 610 | then true | |
610 | - | else sigVerify( | |
611 | - | if ( | |
611 | + | else sigVerify(cw.bodyBytes, cw.proofs[0], r) | |
612 | + | if (cz) | |
612 | 613 | then true | |
613 | - | else | |
614 | + | else cA | |
614 | 615 | } | |
615 | - | else sigVerify( | |
616 | + | else sigVerify(cw.bodyBytes, cw.proofs[0], cw.senderPublicKey) | |
616 | 617 | } | |
617 | 618 |
github/deemru/w8io/169f3d6 120.41 ms ◑