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