tx · G46ViLSiKU6e4w5gUBU1GYAeXTfKKXuACsM2rWxXquz3 3MqnjEXWG6rvvRo2UDYRANN8iWLks7snDwj: -0.01000000 Waves 2021.12.14 16:35 [1833993] smart account 3MqnjEXWG6rvvRo2UDYRANN8iWLks7snDwj > SELF 0.00000000 Waves
{ "type": 13, "id": "G46ViLSiKU6e4w5gUBU1GYAeXTfKKXuACsM2rWxXquz3", "fee": 1000000, "feeAssetId": null, "timestamp": 1639488932880, "version": 2, "chainId": 84, "sender": "3MqnjEXWG6rvvRo2UDYRANN8iWLks7snDwj", "senderPublicKey": "2XLAeeTTE4mSghbTZDq9wZiJkuqmdgCCAw4uy1QgYGtK", "proofs": [ "4TZwCR5Yijb4ewUQYGJgXhTSE88dr1RVsGJnSvQDVg1iaffDynBjTD4T96KypF5XZvamcLKT1tv7JescbML9W7dR" ], "script": "base64:AAIFAAAAAAAAAAkIAhIAEgMKAQgAAAAIAAAAAAltYXN0ZXJhZHICAAAAIzNOOGtGVHppU3B6N1NvZG9SeEsyWDkxTFlWc0F4aVAxaUNVAAAAAAZzZXBhcmMCAAAAAXwAAAAABnNlcGFycgkAASwAAAACBQAAAAZzZXBhcmMFAAAABnNlcGFyYwAAAAAJaW5jcnByaWNlAAAAAAAAAAAhAAAAAAlpbml0cHJpY2UCAAAABjEwMDAwMAAAAAAJbWFzdGVyZmVlAAAAAAAAAAABAAAAAAV0b2tlbgUAAAAEdW5pdAAAAAAJc3Rha2VyYXRlAAAAAAAAAAABAAAAAgAAAAFpAQAAAAVyZXNldAAAAAAJAARMAAAAAgkBAAAADEludGVnZXJFbnRyeQAAAAICAAAACmludGVyZXN0aWQAAAAAAAAAAAAJAARMAAAAAgkBAAAADEludGVnZXJFbnRyeQAAAAICAAAACmxhc3RwYWlkaWQAAAAAAAAAAAAFAAAAA25pbAAAAAFpAQAAAAVwYWludAAAAAEAAAAFaWRhdGEEAAAAAmN0BAAAAAckbWF0Y2gwCQAD7QAAAAEFAAAABmhlaWdodAMJAAAB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AACGVycm9ycG10AgAAAAEgBQAAAAplcnJvcnRva2VuAgAAAAEgBQAAAAtlcnJvcmVub3VnaAkABEwAAAACCQEAAAAOU2NyaXB0VHJhbnNmZXIAAAADCAUAAAABaQAAAAZjYWxsZXIFAAAACXBtdGFtb3VudAgJAAGRAAAAAggFAAAAAWkAAAAIcGF5bWVudHMAAAAAAAAAAAAAAAAHYXNzZXRJZAUAAAADbmlsCQAETAAAAAIJAQAAAAtTdHJpbmdFbnRyeQAAAAIJAAEsAAAAAgUAAAAMY2FsbGVyQWRyZXNzAgAAAAZfZXJyb3IJAAEsAAAAAgkAASwAAAACCQABLAAAAAIJAAEsAAAAAgkAASwAAAACCQABLAAAAAIFAAAACGVycm9ycG10AgAAAAEgBQAAAAplcnJvcnRva2VuAgAAAAEgBQAAAAtlcnJvcmVub3VnaAIAAAABIAUAAAAIZXJyb3J1cmwFAAAAA25pbAAAAACY4IFj", "height": 1833993, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: GExCmL9zpM3zikquBWTfh8sgjoQAMMu4jZZ279ZMdYaX Next: CAopTGHyJu92Xc7X8EJ8SmqEsZy6xRAKMw851gK1PPsr Diff:
Old | New | Differences | |
---|---|---|---|
125 | 125 | if (if (M) | |
126 | 126 | then s | |
127 | 127 | else false) | |
128 | - | then [StringEntry(G[0][0], G[0][1] | |
128 | + | then [StringEntry(G[0][0], G[0][1]), ScriptTransfer(i.caller, ((K - H) - I), g), ScriptTransfer(Address(fromBase58String(a)), I, g), DeleteEntry((o + "_error"))] | |
129 | 129 | else if (J) | |
130 | 130 | then [StringEntry((o + "_error"), ((((N + " ") + O) + " ") + P)), ScriptTransfer(i.caller, K, i.payments[0].assetId)] | |
131 | 131 | else [StringEntry((o + "_error"), ((((((N + " ") + O) + " ") + P) + " ") + Q))] |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = "3N8kFTziSpz7SodoRxK2X91LYVsAxiP1iCU" | |
5 | 5 | ||
6 | 6 | let b = "|" | |
7 | 7 | ||
8 | 8 | let c = (b + b) | |
9 | 9 | ||
10 | 10 | let d = 33 | |
11 | 11 | ||
12 | 12 | let e = "100000" | |
13 | 13 | ||
14 | 14 | let f = 1 | |
15 | 15 | ||
16 | 16 | let g = unit | |
17 | 17 | ||
18 | 18 | let h = 1 | |
19 | 19 | ||
20 | 20 | @Callable(i) | |
21 | 21 | func reset () = [IntegerEntry("interestid", 0), IntegerEntry("lastpaidid", 0)] | |
22 | 22 | ||
23 | 23 | ||
24 | 24 | ||
25 | 25 | @Callable(i) | |
26 | 26 | func paint (j) = { | |
27 | 27 | let k = { | |
28 | 28 | let l = blockInfoByHeight(height) | |
29 | 29 | if ($isInstanceOf(l, "BlockInfo")) | |
30 | 30 | then { | |
31 | 31 | let m = l | |
32 | 32 | m.timestamp | |
33 | 33 | } | |
34 | 34 | else 0 | |
35 | 35 | } | |
36 | 36 | let n = parseIntValue(toString(k)) | |
37 | 37 | let o = toBase58String(i.caller.bytes) | |
38 | 38 | let p = split(j, c) | |
39 | 39 | let q = if ((size(p) > 1)) | |
40 | 40 | then p[1] | |
41 | 41 | else "0" | |
42 | 42 | let r = if ((size(p) > 2)) | |
43 | 43 | then p[2] | |
44 | 44 | else "" | |
45 | 45 | let s = if ((indexOf(r, b) == unit)) | |
46 | 46 | then true | |
47 | 47 | else false | |
48 | 48 | let t = if ((size(p) > 0)) | |
49 | 49 | then split(p[0], b) | |
50 | 50 | else nil | |
51 | 51 | let u = min([28, size(t)]) | |
52 | 52 | let v = ["--", "--", a, "0", "0"] | |
53 | 53 | let w = [o, e, toString(n), q, r] | |
54 | 54 | func x (y) = { | |
55 | 55 | let l = parseInt(t[y]) | |
56 | 56 | if ($isInstanceOf(l, "Int")) | |
57 | 57 | then { | |
58 | 58 | let z = l | |
59 | 59 | if (if ((parseIntValue(t[y]) > -1)) | |
60 | 60 | then (1000 > parseIntValue(t[y])) | |
61 | 61 | else false) | |
62 | 62 | then parseIntValue(t[y]) | |
63 | 63 | else -1 | |
64 | 64 | } | |
65 | 65 | else -1 | |
66 | 66 | } | |
67 | 67 | ||
68 | 68 | func A (y) = { | |
69 | 69 | let l = getString(t[y]) | |
70 | 70 | if ($isInstanceOf(l, "String")) | |
71 | 71 | then { | |
72 | 72 | let z = l | |
73 | 73 | getStringValue(t[y]) | |
74 | 74 | } | |
75 | 75 | else "" | |
76 | 76 | } | |
77 | 77 | ||
78 | 78 | func B (y) = if (if ((y > (u - 1))) | |
79 | 79 | then true | |
80 | 80 | else (0 > x(y))) | |
81 | 81 | then v | |
82 | 82 | else if ((A(y) == "")) | |
83 | 83 | then [t[y], makeString(w, b), a, e] | |
84 | 84 | else { | |
85 | 85 | let C = split(getStringValue(t[y]), b) | |
86 | 86 | let D = parseIntValue(C[1]) | |
87 | 87 | let E = (((D * (n - parseIntValue(C[2]))) * h) % 360000000) | |
88 | 88 | let F = C[0] | |
89 | 89 | [t[y], makeString([o, toString(((D * (100 + d)) % 100)), toString(n), q, r], b), F, toString(D), toString((E + D))] | |
90 | 90 | } | |
91 | 91 | ||
92 | 92 | let G = [B(0), B(1), B(2), B(3), B(4), B(5), B(6), B(7), B(8), B(9), B(10), B(11), B(12), B(13), B(14), B(15), B(16), B(17), B(18), B(19), B(20), B(21), B(22), B(23), B(24), B(25), B(26), B(27)] | |
93 | 93 | let H = parseIntValue(G[0][3]) | |
94 | 94 | let I = fraction(H, f, 100) | |
95 | 95 | let J = if ((size(i.payments) == 1)) | |
96 | 96 | then true | |
97 | 97 | else false | |
98 | 98 | let K = if (J) | |
99 | 99 | then i.payments[0].amount | |
100 | 100 | else 0 | |
101 | 101 | let L = if (J) | |
102 | 102 | then if ((i.payments[0].assetId == g)) | |
103 | 103 | then true | |
104 | 104 | else false | |
105 | 105 | else false | |
106 | 106 | let M = if (if (L) | |
107 | 107 | then (K >= (H + I)) | |
108 | 108 | else false) | |
109 | 109 | then true | |
110 | 110 | else false | |
111 | 111 | let N = if (!(J)) | |
112 | 112 | then (("Attached payment is required: " + toString((H + I))) + "; ") | |
113 | 113 | else "" | |
114 | 114 | let O = if (!(L)) | |
115 | 115 | then "works with tokens only; " | |
116 | 116 | else "" | |
117 | 117 | let P = if (!(M)) | |
118 | 118 | then (((("you give: " + toString(K)) + ", but deal needs: ") + toString((H + I))) + "; ") | |
119 | 119 | else "" | |
120 | 120 | let Q = if (!(s)) | |
121 | 121 | then "url is incorrect; " | |
122 | 122 | else "" | |
123 | 123 | let R = getIntegerValue("interestid") | |
124 | 124 | let S = (R + 1) | |
125 | 125 | if (if (M) | |
126 | 126 | then s | |
127 | 127 | else false) | |
128 | - | then [StringEntry(G[0][0], G[0][1] | |
128 | + | then [StringEntry(G[0][0], G[0][1]), ScriptTransfer(i.caller, ((K - H) - I), g), ScriptTransfer(Address(fromBase58String(a)), I, g), DeleteEntry((o + "_error"))] | |
129 | 129 | else if (J) | |
130 | 130 | then [StringEntry((o + "_error"), ((((N + " ") + O) + " ") + P)), ScriptTransfer(i.caller, K, i.payments[0].assetId)] | |
131 | 131 | else [StringEntry((o + "_error"), ((((((N + " ") + O) + " ") + P) + " ") + Q))] | |
132 | 132 | } | |
133 | 133 | ||
134 | 134 |
github/deemru/w8io/026f985 42.94 ms ◑