tx · ALDjPAiGt8oRiX2Xj9K4jBK1iK94CeNnj414EScriSga 3MpKmkFmjoGLpPWhScheYrN7fjdJAFp9tEX: -0.01400000 Waves 2020.10.12 20:35 [1217644] smart account 3MpKmkFmjoGLpPWhScheYrN7fjdJAFp9tEX > SELF 0.00000000 Waves
{ "type": 13, "id": "ALDjPAiGt8oRiX2Xj9K4jBK1iK94CeNnj414EScriSga", "fee": 1400000, "feeAssetId": null, "timestamp": 1602524135445, "version": 2, "chainId": 84, "sender": "3MpKmkFmjoGLpPWhScheYrN7fjdJAFp9tEX", "senderPublicKey": "33Gr5uEJMDMKdRs25QUDvTeQ7q5EpGcAdPztrFvQWdv9", "proofs": [ "2z4Z9KXKgCjwyk7UcAELC1C4gC8uGioFxyTDpisjZVv1m7VV2f3ZiaYYyGfD9DvoCeLE24B4WJ1P6xbN2jjKWVy8" ], "script": "base64:AAIEAAAAAAAAAAkIAhIAEgMKAQEAAAAIAAAAAAJhcgIAAAAjM04yaEhhcUVFWGpGSEU1RzhOVHc2djdLTk13Y0hvYjJFbmEAAAAAAWYAAAAAAAAAAGQAAAAAAXAAAAAAAAAAABQAAAAAA3ByMQAAAAAAAAAAAwAAAAADcHIyAAAAAAAAAAACAAAAAANwcjMAAAAAAAAAAAEBAAAADGdldFN0YXRpc3RpYwAAAAAEAAAAByRtYXRjaDAJAAQdAAAAAgUAAAAEdGhpcwIAAAAJc3RhdGlzdGljAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAAZTdHJpbmcEAAAAAWEFAAAAByRtYXRjaDAFAAAAAWECAAAAETBfMF8wXzBfMF8wXzBfMF8wAQAAAAdnZXRVc2VyAAAAAQAAAAR1c2VyBAAAAAckbWF0Y2gwCQAEHQAAAAIFAAAABHRoaXMFAAAABHVzZXIDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAABlN0cmluZwQAAAABYQUAAAAHJG1hdGNoMAUAAAABYQIAAAAXMF8wXzBfMF8wXzBfMF8wXzBfMF8wXzAAAAACAAA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IBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAEAAAAgHkxz8qzFYQy/gEmjfxlkGkg1N6RMNBT1/p4yXLb8QTIGuFiToQ==", "height": 1217644, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: BK3adjmCZRo7muTam5XHzKW7gqEoydxjKaudwE94yZrt Next: HfeL95csdtAB9M2oQApv7YAh4KaUoh4yqyU8g6e7sEWX Diff:
Old | New | Differences | |
---|---|---|---|
1 | - | {-# STDLIB_VERSION | |
1 | + | {-# STDLIB_VERSION 4 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = "3N2hHaqEEXjFHE5G8NTw6v7KNMwcHob2Ena" | |
37 | 37 | ||
38 | 38 | @Callable(l) | |
39 | 39 | func deposit () = { | |
40 | - | let m = | |
40 | + | let m = value(l.payments[0]) | |
41 | 41 | let n = m.amount | |
42 | 42 | if (isDefined(m.assetId)) | |
43 | 43 | then throw("can hodl waves only at the moment") | |
45 | 45 | let i = toBase58String(l.caller.bytes) | |
46 | 46 | let o = split(g(), "_") | |
47 | 47 | if ((i == a)) | |
48 | - | then | |
48 | + | then [StringEntry("statistic", makeString([o[0], o[1], o[2], o[3], o[4], o[5], o[6], toString((parseIntValue(o[7]) + n)), o[8]], "_"))] | |
49 | 49 | else { | |
50 | 50 | let p = lastBlock.height | |
51 | 51 | let q = ((n / 100) * (100 + c)) | |
53 | 53 | let s = split(j(i), "_") | |
54 | 54 | let t = parseIntValue(s[2]) | |
55 | 55 | if ((s[7] == "0")) | |
56 | - | then | |
56 | + | then [StringEntry("statistic", makeString([toString((parseIntValue(o[0]) + n)), toString((parseIntValue(o[1]) + 1)), o[2], o[3], o[4], o[5], o[6], o[7], toString((parseIntValue(o[8]) + r))], "_")), StringEntry(i, makeString([toString((parseIntValue(s[0]) + n)), toString((parseIntValue(s[1]) + q)), toString((t + q)), toString(((t + q) / b)), toString(p), s[5], s[6], s[7], s[8], s[9], s[10], s[11]], "_"))] | |
57 | 57 | else { | |
58 | 58 | let u = split(j(s[7]), "_") | |
59 | 59 | let v = ((n / 100) * d) | |
60 | 60 | if ((u[7] == "0")) | |
61 | - | then | |
61 | + | then [StringEntry("statistic", makeString([toString((parseIntValue(o[0]) + n)), toString((parseIntValue(o[1]) + 1)), o[2], o[3], toString((parseIntValue(o[4]) + v)), toString((parseIntValue(o[5]) + 1)), o[6], o[7], toString(((parseIntValue(o[8]) + r) + v))], "_")), StringEntry(i, makeString([toString((parseIntValue(s[0]) + n)), toString((parseIntValue(s[1]) + q)), toString((t + q)), toString(((t + q) / b)), toString(p), s[5], s[6], s[7], s[8], s[9], s[10], s[11]], "_")), StringEntry(s[7], makeString([u[0], u[1], u[2], u[3], u[4], u[5], u[6], u[7], toString((parseIntValue(u[8]) + v)), u[9], u[10], toString((parseIntValue(u[11]) + v))], "_"))] | |
62 | 62 | else { | |
63 | 63 | let w = split(j(u[7]), "_") | |
64 | 64 | let x = ((n / 100) * e) | |
65 | 65 | if ((w[7] == "0")) | |
66 | - | then | |
66 | + | then [StringEntry("statistic", makeString([toString((parseIntValue(o[0]) + n)), toString((parseIntValue(o[1]) + 1)), o[2], o[3], toString(((parseIntValue(o[4]) + v) + x)), toString((parseIntValue(o[5]) + 2)), o[6], o[7], toString((((parseIntValue(o[8]) + r) + v) + x))], "_")), StringEntry(i, makeString([toString((parseIntValue(s[0]) + n)), toString((parseIntValue(s[1]) + q)), toString((t + q)), toString(((t + q) / b)), toString(p), s[5], s[6], s[7], s[8], s[9], s[10], s[11]], "_")), StringEntry(s[7], makeString([u[0], u[1], u[2], u[3], u[4], u[5], u[6], u[7], toString((parseIntValue(u[8]) + v)), u[9], u[10], toString((parseIntValue(u[11]) + v))], "_")), StringEntry(u[7], makeString([w[0], w[1], w[2], w[3], w[4], w[5], w[6], w[7], w[8], toString((parseIntValue(w[9]) + x)), w[10], toString((parseIntValue(w[11]) + x))], "_"))] | |
67 | 67 | else { | |
68 | 68 | let y = split(j(w[7]), "_") | |
69 | 69 | let z = ((n / 100) * f) | |
70 | - | ||
70 | + | [StringEntry("statistic", makeString([toString((parseIntValue(o[0]) + n)), toString((parseIntValue(o[1]) + 1)), o[2], o[3], toString((((parseIntValue(o[4]) + v) + x) + z)), toString((parseIntValue(o[5]) + 3)), o[6], o[7], toString(((((parseIntValue(o[8]) + r) + v) + x) + z))], "_")), StringEntry(i, makeString([toString((parseIntValue(s[0]) + n)), toString((parseIntValue(s[1]) + q)), toString((t + q)), toString(((t + q) / b)), toString(p), s[5], s[6], s[7], s[8], s[9], s[10], s[11]], "_")), StringEntry(s[7], makeString([u[0], u[1], u[2], u[3], u[4], u[5], u[6], u[7], toString((parseIntValue(u[8]) + v)), u[9], u[10], toString((parseIntValue(u[11]) + v))], "_")), StringEntry(u[7], makeString([w[0], w[1], w[2], w[3], w[4], w[5], w[6], w[7], w[8], toString((parseIntValue(w[9]) + x)), w[10], toString((parseIntValue(w[11]) + x))], "_")), StringEntry(w[7], makeString([y[0], y[1], y[2], y[3], y[4], y[5], y[6], y[7], y[8], y[9], toString((parseIntValue(y[10]) + z)), toString((parseIntValue(y[11]) + z))], "_"))] | |
71 | 71 | } | |
72 | 72 | } | |
73 | 73 | } | |
94 | 94 | if ((0 > r)) | |
95 | 95 | then throw("Can't withdraw negative amount") | |
96 | 96 | else if ((C >= r)) | |
97 | - | then | |
97 | + | then [StringEntry("statistic", makeString([o[0], o[1], o[2], toString((parseIntValue(o[3]) + 1)), o[4], o[5], toString((parseIntValue(o[6]) + r)), o[7], o[8]], "_")), StringEntry(i, makeString([s[0], s[1], s[2], s[3], s[4], toString((parseIntValue(s[5]) + r)), toString((parseIntValue(s[6]) + r)), s[7], s[8], s[9], s[10], toString((parseIntValue(s[11]) - r))], "_")), ScriptTransfer(l.caller, r, unit)] | |
98 | 98 | else if ((0 > (E - r))) | |
99 | 99 | then throw("Not enough balance") | |
100 | 100 | else { | |
101 | 101 | let F = ((q + C) - r) | |
102 | - | ||
102 | + | [StringEntry("statistic", makeString([o[0], o[1], toString(((parseIntValue(o[2]) + r) - parseIntValue(s[11]))), toString((parseIntValue(o[3]) + 1)), o[4], o[5], toString((parseIntValue(o[6]) + parseIntValue(s[11]))), o[7], o[8]], "_")), StringEntry(i, makeString([s[0], s[1], toString(F), s[3], s[4], toString((parseIntValue(s[5]) + r)), toString((parseIntValue(s[6]) + r)), s[7], s[8], s[9], (s[10] + "_0")], "_")), ScriptTransfer(l.caller, r, unit)] | |
103 | 103 | } | |
104 | 104 | } | |
105 | 105 |
Old | New | Differences | |
---|---|---|---|
1 | - | {-# STDLIB_VERSION | |
1 | + | {-# STDLIB_VERSION 4 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = "3N2hHaqEEXjFHE5G8NTw6v7KNMwcHob2Ena" | |
5 | 5 | ||
6 | 6 | let b = 100 | |
7 | 7 | ||
8 | 8 | let c = 20 | |
9 | 9 | ||
10 | 10 | let d = 3 | |
11 | 11 | ||
12 | 12 | let e = 2 | |
13 | 13 | ||
14 | 14 | let f = 1 | |
15 | 15 | ||
16 | 16 | func g () = { | |
17 | 17 | let h = getString(this, "statistic") | |
18 | 18 | if ($isInstanceOf(h, "String")) | |
19 | 19 | then { | |
20 | 20 | let i = h | |
21 | 21 | i | |
22 | 22 | } | |
23 | 23 | else "0_0_0_0_0_0_0_0_0" | |
24 | 24 | } | |
25 | 25 | ||
26 | 26 | ||
27 | 27 | func j (k) = { | |
28 | 28 | let h = getString(this, k) | |
29 | 29 | if ($isInstanceOf(h, "String")) | |
30 | 30 | then { | |
31 | 31 | let i = h | |
32 | 32 | i | |
33 | 33 | } | |
34 | 34 | else "0_0_0_0_0_0_0_0_0_0_0_0" | |
35 | 35 | } | |
36 | 36 | ||
37 | 37 | ||
38 | 38 | @Callable(l) | |
39 | 39 | func deposit () = { | |
40 | - | let m = | |
40 | + | let m = value(l.payments[0]) | |
41 | 41 | let n = m.amount | |
42 | 42 | if (isDefined(m.assetId)) | |
43 | 43 | then throw("can hodl waves only at the moment") | |
44 | 44 | else { | |
45 | 45 | let i = toBase58String(l.caller.bytes) | |
46 | 46 | let o = split(g(), "_") | |
47 | 47 | if ((i == a)) | |
48 | - | then | |
48 | + | then [StringEntry("statistic", makeString([o[0], o[1], o[2], o[3], o[4], o[5], o[6], toString((parseIntValue(o[7]) + n)), o[8]], "_"))] | |
49 | 49 | else { | |
50 | 50 | let p = lastBlock.height | |
51 | 51 | let q = ((n / 100) * (100 + c)) | |
52 | 52 | let r = (q - n) | |
53 | 53 | let s = split(j(i), "_") | |
54 | 54 | let t = parseIntValue(s[2]) | |
55 | 55 | if ((s[7] == "0")) | |
56 | - | then | |
56 | + | then [StringEntry("statistic", makeString([toString((parseIntValue(o[0]) + n)), toString((parseIntValue(o[1]) + 1)), o[2], o[3], o[4], o[5], o[6], o[7], toString((parseIntValue(o[8]) + r))], "_")), StringEntry(i, makeString([toString((parseIntValue(s[0]) + n)), toString((parseIntValue(s[1]) + q)), toString((t + q)), toString(((t + q) / b)), toString(p), s[5], s[6], s[7], s[8], s[9], s[10], s[11]], "_"))] | |
57 | 57 | else { | |
58 | 58 | let u = split(j(s[7]), "_") | |
59 | 59 | let v = ((n / 100) * d) | |
60 | 60 | if ((u[7] == "0")) | |
61 | - | then | |
61 | + | then [StringEntry("statistic", makeString([toString((parseIntValue(o[0]) + n)), toString((parseIntValue(o[1]) + 1)), o[2], o[3], toString((parseIntValue(o[4]) + v)), toString((parseIntValue(o[5]) + 1)), o[6], o[7], toString(((parseIntValue(o[8]) + r) + v))], "_")), StringEntry(i, makeString([toString((parseIntValue(s[0]) + n)), toString((parseIntValue(s[1]) + q)), toString((t + q)), toString(((t + q) / b)), toString(p), s[5], s[6], s[7], s[8], s[9], s[10], s[11]], "_")), StringEntry(s[7], makeString([u[0], u[1], u[2], u[3], u[4], u[5], u[6], u[7], toString((parseIntValue(u[8]) + v)), u[9], u[10], toString((parseIntValue(u[11]) + v))], "_"))] | |
62 | 62 | else { | |
63 | 63 | let w = split(j(u[7]), "_") | |
64 | 64 | let x = ((n / 100) * e) | |
65 | 65 | if ((w[7] == "0")) | |
66 | - | then | |
66 | + | then [StringEntry("statistic", makeString([toString((parseIntValue(o[0]) + n)), toString((parseIntValue(o[1]) + 1)), o[2], o[3], toString(((parseIntValue(o[4]) + v) + x)), toString((parseIntValue(o[5]) + 2)), o[6], o[7], toString((((parseIntValue(o[8]) + r) + v) + x))], "_")), StringEntry(i, makeString([toString((parseIntValue(s[0]) + n)), toString((parseIntValue(s[1]) + q)), toString((t + q)), toString(((t + q) / b)), toString(p), s[5], s[6], s[7], s[8], s[9], s[10], s[11]], "_")), StringEntry(s[7], makeString([u[0], u[1], u[2], u[3], u[4], u[5], u[6], u[7], toString((parseIntValue(u[8]) + v)), u[9], u[10], toString((parseIntValue(u[11]) + v))], "_")), StringEntry(u[7], makeString([w[0], w[1], w[2], w[3], w[4], w[5], w[6], w[7], w[8], toString((parseIntValue(w[9]) + x)), w[10], toString((parseIntValue(w[11]) + x))], "_"))] | |
67 | 67 | else { | |
68 | 68 | let y = split(j(w[7]), "_") | |
69 | 69 | let z = ((n / 100) * f) | |
70 | - | ||
70 | + | [StringEntry("statistic", makeString([toString((parseIntValue(o[0]) + n)), toString((parseIntValue(o[1]) + 1)), o[2], o[3], toString((((parseIntValue(o[4]) + v) + x) + z)), toString((parseIntValue(o[5]) + 3)), o[6], o[7], toString(((((parseIntValue(o[8]) + r) + v) + x) + z))], "_")), StringEntry(i, makeString([toString((parseIntValue(s[0]) + n)), toString((parseIntValue(s[1]) + q)), toString((t + q)), toString(((t + q) / b)), toString(p), s[5], s[6], s[7], s[8], s[9], s[10], s[11]], "_")), StringEntry(s[7], makeString([u[0], u[1], u[2], u[3], u[4], u[5], u[6], u[7], toString((parseIntValue(u[8]) + v)), u[9], u[10], toString((parseIntValue(u[11]) + v))], "_")), StringEntry(u[7], makeString([w[0], w[1], w[2], w[3], w[4], w[5], w[6], w[7], w[8], toString((parseIntValue(w[9]) + x)), w[10], toString((parseIntValue(w[11]) + x))], "_")), StringEntry(w[7], makeString([y[0], y[1], y[2], y[3], y[4], y[5], y[6], y[7], y[8], y[9], toString((parseIntValue(y[10]) + z)), toString((parseIntValue(y[11]) + z))], "_"))] | |
71 | 71 | } | |
72 | 72 | } | |
73 | 73 | } | |
74 | 74 | } | |
75 | 75 | } | |
76 | 76 | } | |
77 | 77 | ||
78 | 78 | ||
79 | 79 | ||
80 | 80 | @Callable(l) | |
81 | 81 | func withdraw (r) = { | |
82 | 82 | let i = toBase58String(l.caller.bytes) | |
83 | 83 | let s = split(j(i), "_") | |
84 | 84 | let o = split(g(), "_") | |
85 | 85 | let p = lastBlock.height | |
86 | 86 | let A = parseIntValue(s[1]) | |
87 | 87 | let q = parseIntValue(s[2]) | |
88 | 88 | let B = parseIntValue(s[3]) | |
89 | 89 | let C = parseIntValue(s[11]) | |
90 | 90 | let D = (A + b) | |
91 | 91 | let E = if ((p >= D)) | |
92 | 92 | then (q + C) | |
93 | 93 | else ((B * ((b - D) - p)) + C) | |
94 | 94 | if ((0 > r)) | |
95 | 95 | then throw("Can't withdraw negative amount") | |
96 | 96 | else if ((C >= r)) | |
97 | - | then | |
97 | + | then [StringEntry("statistic", makeString([o[0], o[1], o[2], toString((parseIntValue(o[3]) + 1)), o[4], o[5], toString((parseIntValue(o[6]) + r)), o[7], o[8]], "_")), StringEntry(i, makeString([s[0], s[1], s[2], s[3], s[4], toString((parseIntValue(s[5]) + r)), toString((parseIntValue(s[6]) + r)), s[7], s[8], s[9], s[10], toString((parseIntValue(s[11]) - r))], "_")), ScriptTransfer(l.caller, r, unit)] | |
98 | 98 | else if ((0 > (E - r))) | |
99 | 99 | then throw("Not enough balance") | |
100 | 100 | else { | |
101 | 101 | let F = ((q + C) - r) | |
102 | - | ||
102 | + | [StringEntry("statistic", makeString([o[0], o[1], toString(((parseIntValue(o[2]) + r) - parseIntValue(s[11]))), toString((parseIntValue(o[3]) + 1)), o[4], o[5], toString((parseIntValue(o[6]) + parseIntValue(s[11]))), o[7], o[8]], "_")), StringEntry(i, makeString([s[0], s[1], toString(F), s[3], s[4], toString((parseIntValue(s[5]) + r)), toString((parseIntValue(s[6]) + r)), s[7], s[8], s[9], (s[10] + "_0")], "_")), ScriptTransfer(l.caller, r, unit)] | |
103 | 103 | } | |
104 | 104 | } | |
105 | 105 | ||
106 | 106 | ||
107 | 107 | @Verifier(G) | |
108 | 108 | func H () = { | |
109 | 109 | let h = G | |
110 | 110 | if ($isInstanceOf(h, "SetScriptTransaction")) | |
111 | 111 | then { | |
112 | 112 | let B = h | |
113 | 113 | sigVerify(G.bodyBytes, G.proofs[0], base58'33Gr5uEJMDMKdRs25QUDvTeQ7q5EpGcAdPztrFvQWdv9') | |
114 | 114 | } | |
115 | 115 | else true | |
116 | 116 | } | |
117 | 117 |
github/deemru/w8io/169f3d6 210.03 ms ◑