tx · 5g144YvTrtCGfmFNi49BTLkVykjCmRy5gtYUnR2SUeiz
3N2dRaZobzhvApXZdrFKsTWZfczyyx6FboD: -0.01400000 Waves
2021.08.19 20:21 [1665529] smart account 3N2dRaZobzhvApXZdrFKsTWZfczyyx6FboD > SELF 0.00000000 Waves
{
"type": 13,
"id": "5g144YvTrtCGfmFNi49BTLkVykjCmRy5gtYUnR2SUeiz",
"fee": 1400000,
"feeAssetId": null,
"timestamp": 1629393698387,
"version": 2,
"chainId": 84,
"sender": "3N2dRaZobzhvApXZdrFKsTWZfczyyx6FboD",
"senderPublicKey": "9WSLkkzDD1adiGFyZbCjY47yzFtCW8U5DKWUqpiuaL3p",
"proofs": [
"5qNh3XpHPr4hnwUuPwgt64Ho1MGEJPbzWNXSyLQaoL3jt9iFxeZK3JXthZYKi6aqKvARy9Tm6eeUDpXQKn2t9sxt"
],
"script": "base64:AAIFAAAAAAAAARMIAhIECgIBARIECgIBARoICgJhMRICV1UaCAoCYTISAlNXGggKAmEzEgJTVRoHCgJhNBIBVxoHCgJhNRIBVRoHCgJhNhIBUxoLCgJhNxIFYWRtaW4aDAoCYTgSBnNjYWxlOBoHCgJhORIBaRoKCgJiMRIEYW1udBoJCgJiMhIDbWluGgkKAmIzEgNiYnUaCQoCYjQSA2JidxoJCgJiNRIDYmJzGgsKAmI2EgVzd2FwMRoLCgJiNxIFZGlmZnUaCwoCYjgSBXN3YXAyGgsKAmI5EgVkaWZmcxoLCgJjMRIFc3dhcDMaCwoCYzISBWRpZmZ3GggKAmMzEgJvaxoICgJjNBICdHgaDAoCYzUSBnZlcmlmeQAAAAgAAAAAAmExCQEAAAARQGV4dHJOYXRpdmUoMTA2MikAAAABCQEAAAAFdmFsdWUAAAABAgAAACMzTkREM2lmQUMxN2NMenh1WXFzZ1hEUlk5RFRRNUJxbXZ3TAAAAAACYTIJAQAAABFAZXh0ck5hdGl2ZSgxMDYyKQAAAAEJAQAAAAV2YWx1ZQAAAAECAAAAIzNOQXpFUzdwU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cFAAAAA25pbAMJAAAAAAAAAgUAAAACYzEFAAAAAmMxBAAAAAJjMgkAAGUAAAACCQAD8AAAAAIFAAAABHRoaXMFAAAAAmE0BQAAAAJiNAMJAAAAAAAAAgUAAAACYzIFAAAAAmMyAwkAAGYAAAACBQAAAAJjMgUAAAACYjIEAAAAAmMzAgAAAAJvawkABEwAAAACCQEAAAAMSW50ZWdlckVudHJ5AAAAAgIAAAAFZGVidWcFAAAAAmMyBQAAAANuaWwJAAACAAAAAQkAAaQAAAABBQAAAAJjMgkAAAIAAAABAgAAAAZzdHJpY3QJAAACAAAAAQIAAAAGc3RyaWN0CQAAAgAAAAECAAAABnN0cmljdAkAAAIAAAABAgAAAAZzdHJpY3QJAAACAAAAAQIAAAAGc3RyaWN0CQAAAgAAAAECAAAABnN0cmljdAkAAAIAAAABAgAAAAZTdHJpY3QAAAABAAAAAmM0AQAAAAJjNQAAAAAJAAH0AAAAAwgFAAAAAmM0AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACYzQAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAACYzQAAAAPc2VuZGVyUHVibGljS2V5+xjJbw==",
"height": 1665529,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: 3Byyha4Beir9iiLqHTKtkhojsRXnhnZGj45U9BSs5v1p
Next: none
Diff:
Old | New | | Differences |
---|
17 | 17 | | |
---|
18 | 18 | | let h = 100000000 |
---|
19 | 19 | | |
---|
20 | | - | let i = 1000000 |
---|
21 | | - | |
---|
22 | | - | @Callable(j) |
---|
23 | | - | func call1 (k,l) = if ((j.caller != g)) |
---|
| 20 | + | @Callable(i) |
---|
| 21 | + | func call1 (j,k) = if ((i.caller != g)) |
---|
24 | 22 | | then throw("only admin") |
---|
25 | 23 | | else { |
---|
26 | | - | let m = assetBalance(this, e) |
---|
27 | | - | let n = assetBalance(this, d) |
---|
28 | | - | let o = assetBalance(this, f) |
---|
29 | | - | if (if (if ((m == m)) |
---|
| 24 | + | let l = assetBalance(this, e) |
---|
| 25 | + | let m = assetBalance(this, d) |
---|
| 26 | + | let n = assetBalance(this, f) |
---|
| 27 | + | if (if (if ((l == l)) |
---|
| 28 | + | then (m == m) |
---|
| 29 | + | else false) |
---|
30 | 30 | | then (n == n) |
---|
31 | 31 | | else false) |
---|
32 | | - | then (o == o) |
---|
33 | | - | else false) |
---|
34 | 32 | | then { |
---|
35 | | - | let p = invoke(a, "exchange", [1], [AttachedPayment(d, (k * h))]) |
---|
36 | | - | if ((p == p)) |
---|
| 33 | + | let o = invoke(a, "exchange", [1], [AttachedPayment(d, (j * h))]) |
---|
| 34 | + | if ((o == o)) |
---|
37 | 35 | | then { |
---|
38 | | - | let q = (assetBalance(this, e) - m) |
---|
39 | | - | if ((q == q)) |
---|
| 36 | + | let p = (assetBalance(this, e) - l) |
---|
| 37 | + | if ((p == p)) |
---|
40 | 38 | | then { |
---|
41 | | - | let r = invoke(c, "exchange", [1], [AttachedPayment(e, q)]) |
---|
42 | | - | if ((r == r)) |
---|
| 39 | + | let q = invoke(c, "exchange", [1], [AttachedPayment(e, p)]) |
---|
| 40 | + | if ((q == q)) |
---|
43 | 41 | | then { |
---|
44 | | - | let s = (assetBalance(this, f) - o) |
---|
45 | | - | if ((s == s)) |
---|
| 42 | + | let r = (assetBalance(this, f) - n) |
---|
| 43 | + | if ((r == r)) |
---|
46 | 44 | | then { |
---|
47 | | - | let t = invoke(b, "exchange", [1], [AttachedPayment(f, s)]) |
---|
48 | | - | if ((t == t)) |
---|
| 45 | + | let s = invoke(b, "exchange", [1], [AttachedPayment(f, r)]) |
---|
| 46 | + | if ((s == s)) |
---|
49 | 47 | | then { |
---|
50 | | - | let u = (assetBalance(this, d) - n) |
---|
51 | | - | if ((u == u)) |
---|
52 | | - | then if ((u > l)) |
---|
53 | | - | then { |
---|
54 | | - | let v = "ok" |
---|
55 | | - | [IntegerEntry("debug", u), ScriptTransfer(g, u, d)] |
---|
56 | | - | } |
---|
57 | | - | else throw(toString(u)) |
---|
| 48 | + | let t = (assetBalance(this, d) - m) |
---|
| 49 | + | if ((t == t)) |
---|
| 50 | + | then if ((t > k)) |
---|
| 51 | + | then [IntegerEntry("debug", t)] |
---|
| 52 | + | else throw(toString(t)) |
---|
58 | 53 | | else throw("strict value what the fuck") |
---|
59 | 54 | | } |
---|
60 | 55 | | else throw("strict value what the fuck") |
---|
|
72 | 67 | | |
---|
73 | 68 | | |
---|
74 | 69 | | |
---|
75 | | - | @Callable(j) |
---|
76 | | - | func call2 (k,l) = if ((j.caller != g)) |
---|
| 70 | + | @Callable(i) |
---|
| 71 | + | func call2 (j,k) = if ((i.caller != g)) |
---|
77 | 72 | | then throw("only admin") |
---|
78 | 73 | | else { |
---|
79 | | - | let m = assetBalance(this, e) |
---|
80 | | - | let n = assetBalance(this, d) |
---|
81 | | - | let o = assetBalance(this, f) |
---|
82 | | - | if (if (if ((m == m)) |
---|
| 74 | + | let l = assetBalance(this, e) |
---|
| 75 | + | let m = assetBalance(this, d) |
---|
| 76 | + | let n = assetBalance(this, f) |
---|
| 77 | + | if (if (if ((l == l)) |
---|
| 78 | + | then (m == m) |
---|
| 79 | + | else false) |
---|
83 | 80 | | then (n == n) |
---|
84 | 81 | | else false) |
---|
85 | | - | then (o == o) |
---|
86 | | - | else false) |
---|
87 | 82 | | then { |
---|
88 | | - | let p = invoke(b, "exchange", [1], [AttachedPayment(d, (k * h))]) |
---|
89 | | - | if ((p == p)) |
---|
| 83 | + | let o = invoke(b, "exchange", [1], [AttachedPayment(d, (j * h))]) |
---|
| 84 | + | if ((o == o)) |
---|
90 | 85 | | then { |
---|
91 | | - | let s = (assetBalance(this, f) - o) |
---|
92 | | - | if ((s == s)) |
---|
| 86 | + | let r = (assetBalance(this, f) - n) |
---|
| 87 | + | if ((r == r)) |
---|
93 | 88 | | then { |
---|
94 | | - | let r = invoke(c, "exchange", [1], [AttachedPayment(f, s)]) |
---|
95 | | - | if ((r == r)) |
---|
| 89 | + | let q = invoke(c, "exchange", [1], [AttachedPayment(f, r)]) |
---|
| 90 | + | if ((q == q)) |
---|
96 | 91 | | then { |
---|
97 | | - | let q = (assetBalance(this, e) - m) |
---|
98 | | - | if ((q == q)) |
---|
| 92 | + | let p = (assetBalance(this, e) - l) |
---|
| 93 | + | if ((p == p)) |
---|
99 | 94 | | then { |
---|
100 | | - | let t = invoke(a, "exchange", [1], [AttachedPayment(e, q)]) |
---|
101 | | - | if ((t == t)) |
---|
| 95 | + | let s = invoke(a, "exchange", [1], [AttachedPayment(e, p)]) |
---|
| 96 | + | if ((s == s)) |
---|
102 | 97 | | then { |
---|
103 | | - | let u = (assetBalance(this, d) - n) |
---|
104 | | - | if ((u == u)) |
---|
105 | | - | then if ((u > l)) |
---|
| 98 | + | let t = (assetBalance(this, d) - m) |
---|
| 99 | + | if ((t == t)) |
---|
| 100 | + | then if ((t > k)) |
---|
106 | 101 | | then { |
---|
107 | | - | let v = "ok" |
---|
108 | | - | [IntegerEntry("debug", u), ScriptTransfer(g, u, d)] |
---|
| 102 | + | let u = "ok" |
---|
| 103 | + | [IntegerEntry("debug", t)] |
---|
109 | 104 | | } |
---|
110 | | - | else throw(toString(u)) |
---|
| 105 | + | else throw(toString(t)) |
---|
111 | 106 | | else throw("strict") |
---|
112 | 107 | | } |
---|
113 | 108 | | else throw("strict") |
---|
|
124 | 119 | | } |
---|
125 | 120 | | |
---|
126 | 121 | | |
---|
127 | | - | @Verifier(w) |
---|
128 | | - | func x () = sigVerify(w.bodyBytes, w.proofs[0], w.senderPublicKey) |
---|
| 122 | + | @Verifier(v) |
---|
| 123 | + | func w () = sigVerify(v.bodyBytes, v.proofs[0], v.senderPublicKey) |
---|
129 | 124 | | |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 5 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | 4 | | let a = addressFromStringValue(value("3NDD3ifAC17cLzxuYqsgXDRY9DTQ5BqmvwL")) |
---|
5 | 5 | | |
---|
6 | 6 | | let b = addressFromStringValue(value("3NAzES7pSjfoHsKNumP5HRtSt3qadbqnHip")) |
---|
7 | 7 | | |
---|
8 | 8 | | let c = addressFromStringValue(value("3MrBtdped4oUFs1BvLNu53Dm1AMGiTHkT9B")) |
---|
9 | 9 | | |
---|
10 | 10 | | let d = base58'3Tg4GRpKeek5wWAQRJKH1ucjMuKNom3f2h67WNNu6xVS' |
---|
11 | 11 | | |
---|
12 | 12 | | let e = base58'gAAmMoquySsX6q5EmzciFfB8RecAhZR9W1HKNntNekL' |
---|
13 | 13 | | |
---|
14 | 14 | | let f = base58'89G3XEYzMSztS6RPN5h2da7j43r4zgKufReZWn1MqX7g' |
---|
15 | 15 | | |
---|
16 | 16 | | let g = addressFromStringValue("3N97G98bPF5ghnZ1iMmQ7tMH6MBsNZnS272") |
---|
17 | 17 | | |
---|
18 | 18 | | let h = 100000000 |
---|
19 | 19 | | |
---|
20 | | - | let i = 1000000 |
---|
21 | | - | |
---|
22 | | - | @Callable(j) |
---|
23 | | - | func call1 (k,l) = if ((j.caller != g)) |
---|
| 20 | + | @Callable(i) |
---|
| 21 | + | func call1 (j,k) = if ((i.caller != g)) |
---|
24 | 22 | | then throw("only admin") |
---|
25 | 23 | | else { |
---|
26 | | - | let m = assetBalance(this, e) |
---|
27 | | - | let n = assetBalance(this, d) |
---|
28 | | - | let o = assetBalance(this, f) |
---|
29 | | - | if (if (if ((m == m)) |
---|
| 24 | + | let l = assetBalance(this, e) |
---|
| 25 | + | let m = assetBalance(this, d) |
---|
| 26 | + | let n = assetBalance(this, f) |
---|
| 27 | + | if (if (if ((l == l)) |
---|
| 28 | + | then (m == m) |
---|
| 29 | + | else false) |
---|
30 | 30 | | then (n == n) |
---|
31 | 31 | | else false) |
---|
32 | | - | then (o == o) |
---|
33 | | - | else false) |
---|
34 | 32 | | then { |
---|
35 | | - | let p = invoke(a, "exchange", [1], [AttachedPayment(d, (k * h))]) |
---|
36 | | - | if ((p == p)) |
---|
| 33 | + | let o = invoke(a, "exchange", [1], [AttachedPayment(d, (j * h))]) |
---|
| 34 | + | if ((o == o)) |
---|
37 | 35 | | then { |
---|
38 | | - | let q = (assetBalance(this, e) - m) |
---|
39 | | - | if ((q == q)) |
---|
| 36 | + | let p = (assetBalance(this, e) - l) |
---|
| 37 | + | if ((p == p)) |
---|
40 | 38 | | then { |
---|
41 | | - | let r = invoke(c, "exchange", [1], [AttachedPayment(e, q)]) |
---|
42 | | - | if ((r == r)) |
---|
| 39 | + | let q = invoke(c, "exchange", [1], [AttachedPayment(e, p)]) |
---|
| 40 | + | if ((q == q)) |
---|
43 | 41 | | then { |
---|
44 | | - | let s = (assetBalance(this, f) - o) |
---|
45 | | - | if ((s == s)) |
---|
| 42 | + | let r = (assetBalance(this, f) - n) |
---|
| 43 | + | if ((r == r)) |
---|
46 | 44 | | then { |
---|
47 | | - | let t = invoke(b, "exchange", [1], [AttachedPayment(f, s)]) |
---|
48 | | - | if ((t == t)) |
---|
| 45 | + | let s = invoke(b, "exchange", [1], [AttachedPayment(f, r)]) |
---|
| 46 | + | if ((s == s)) |
---|
49 | 47 | | then { |
---|
50 | | - | let u = (assetBalance(this, d) - n) |
---|
51 | | - | if ((u == u)) |
---|
52 | | - | then if ((u > l)) |
---|
53 | | - | then { |
---|
54 | | - | let v = "ok" |
---|
55 | | - | [IntegerEntry("debug", u), ScriptTransfer(g, u, d)] |
---|
56 | | - | } |
---|
57 | | - | else throw(toString(u)) |
---|
| 48 | + | let t = (assetBalance(this, d) - m) |
---|
| 49 | + | if ((t == t)) |
---|
| 50 | + | then if ((t > k)) |
---|
| 51 | + | then [IntegerEntry("debug", t)] |
---|
| 52 | + | else throw(toString(t)) |
---|
58 | 53 | | else throw("strict value what the fuck") |
---|
59 | 54 | | } |
---|
60 | 55 | | else throw("strict value what the fuck") |
---|
61 | 56 | | } |
---|
62 | 57 | | else throw("strict value what the fuck") |
---|
63 | 58 | | } |
---|
64 | 59 | | else throw("strict value what the fuck") |
---|
65 | 60 | | } |
---|
66 | 61 | | else throw("strict value what the fuck") |
---|
67 | 62 | | } |
---|
68 | 63 | | else throw("strict value what the fuck") |
---|
69 | 64 | | } |
---|
70 | 65 | | else throw("Strict value is not equal to itself") |
---|
71 | 66 | | } |
---|
72 | 67 | | |
---|
73 | 68 | | |
---|
74 | 69 | | |
---|
75 | | - | @Callable(j) |
---|
76 | | - | func call2 (k,l) = if ((j.caller != g)) |
---|
| 70 | + | @Callable(i) |
---|
| 71 | + | func call2 (j,k) = if ((i.caller != g)) |
---|
77 | 72 | | then throw("only admin") |
---|
78 | 73 | | else { |
---|
79 | | - | let m = assetBalance(this, e) |
---|
80 | | - | let n = assetBalance(this, d) |
---|
81 | | - | let o = assetBalance(this, f) |
---|
82 | | - | if (if (if ((m == m)) |
---|
| 74 | + | let l = assetBalance(this, e) |
---|
| 75 | + | let m = assetBalance(this, d) |
---|
| 76 | + | let n = assetBalance(this, f) |
---|
| 77 | + | if (if (if ((l == l)) |
---|
| 78 | + | then (m == m) |
---|
| 79 | + | else false) |
---|
83 | 80 | | then (n == n) |
---|
84 | 81 | | else false) |
---|
85 | | - | then (o == o) |
---|
86 | | - | else false) |
---|
87 | 82 | | then { |
---|
88 | | - | let p = invoke(b, "exchange", [1], [AttachedPayment(d, (k * h))]) |
---|
89 | | - | if ((p == p)) |
---|
| 83 | + | let o = invoke(b, "exchange", [1], [AttachedPayment(d, (j * h))]) |
---|
| 84 | + | if ((o == o)) |
---|
90 | 85 | | then { |
---|
91 | | - | let s = (assetBalance(this, f) - o) |
---|
92 | | - | if ((s == s)) |
---|
| 86 | + | let r = (assetBalance(this, f) - n) |
---|
| 87 | + | if ((r == r)) |
---|
93 | 88 | | then { |
---|
94 | | - | let r = invoke(c, "exchange", [1], [AttachedPayment(f, s)]) |
---|
95 | | - | if ((r == r)) |
---|
| 89 | + | let q = invoke(c, "exchange", [1], [AttachedPayment(f, r)]) |
---|
| 90 | + | if ((q == q)) |
---|
96 | 91 | | then { |
---|
97 | | - | let q = (assetBalance(this, e) - m) |
---|
98 | | - | if ((q == q)) |
---|
| 92 | + | let p = (assetBalance(this, e) - l) |
---|
| 93 | + | if ((p == p)) |
---|
99 | 94 | | then { |
---|
100 | | - | let t = invoke(a, "exchange", [1], [AttachedPayment(e, q)]) |
---|
101 | | - | if ((t == t)) |
---|
| 95 | + | let s = invoke(a, "exchange", [1], [AttachedPayment(e, p)]) |
---|
| 96 | + | if ((s == s)) |
---|
102 | 97 | | then { |
---|
103 | | - | let u = (assetBalance(this, d) - n) |
---|
104 | | - | if ((u == u)) |
---|
105 | | - | then if ((u > l)) |
---|
| 98 | + | let t = (assetBalance(this, d) - m) |
---|
| 99 | + | if ((t == t)) |
---|
| 100 | + | then if ((t > k)) |
---|
106 | 101 | | then { |
---|
107 | | - | let v = "ok" |
---|
108 | | - | [IntegerEntry("debug", u), ScriptTransfer(g, u, d)] |
---|
| 102 | + | let u = "ok" |
---|
| 103 | + | [IntegerEntry("debug", t)] |
---|
109 | 104 | | } |
---|
110 | | - | else throw(toString(u)) |
---|
| 105 | + | else throw(toString(t)) |
---|
111 | 106 | | else throw("strict") |
---|
112 | 107 | | } |
---|
113 | 108 | | else throw("strict") |
---|
114 | 109 | | } |
---|
115 | 110 | | else throw("strict") |
---|
116 | 111 | | } |
---|
117 | 112 | | else throw("strict") |
---|
118 | 113 | | } |
---|
119 | 114 | | else throw("strict") |
---|
120 | 115 | | } |
---|
121 | 116 | | else throw("strict") |
---|
122 | 117 | | } |
---|
123 | 118 | | else throw("Strict") |
---|
124 | 119 | | } |
---|
125 | 120 | | |
---|
126 | 121 | | |
---|
127 | | - | @Verifier(w) |
---|
128 | | - | func x () = sigVerify(w.bodyBytes, w.proofs[0], w.senderPublicKey) |
---|
| 122 | + | @Verifier(v) |
---|
| 123 | + | func w () = sigVerify(v.bodyBytes, v.proofs[0], v.senderPublicKey) |
---|
129 | 124 | | |
---|