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 ar = "3N2hHaqEEXjFHE5G8NTw6v7KNMwcHob2Ena" | |
31 | 31 | ||
32 | 32 | @Callable(i) | |
33 | 33 | func deposit () = { | |
34 | - | let t = | |
34 | + | let t = value(i.payments[0]) | |
35 | 35 | let z = t.amount | |
36 | 36 | if (isDefined(t.assetId)) | |
37 | 37 | then throw("can hodl waves only at the moment") | |
39 | 39 | let a = toBase58String(i.caller.bytes) | |
40 | 40 | let s = split(getStatistic(), "_") | |
41 | 41 | if ((a == ar)) | |
42 | - | then | |
42 | + | then [StringEntry("statistic", makeString([s[0], s[1], s[2], s[3], s[4], s[5], s[6], toString((parseIntValue(s[7]) + z)), s[8]], "_"))] | |
43 | 43 | else { | |
44 | 44 | let h = lastBlock.height | |
45 | 45 | let x = ((z / 100) * (100 + p)) | |
47 | 47 | let u = split(getUser(a), "_") | |
48 | 48 | let ud2 = parseIntValue(u[2]) | |
49 | 49 | if ((u[7] == "0")) | |
50 | - | then | |
50 | + | then [StringEntry("statistic", makeString([toString((parseIntValue(s[0]) + z)), toString((parseIntValue(s[1]) + 1)), s[2], s[3], s[4], s[5], s[6], s[7], toString((parseIntValue(s[8]) + y))], "_")), StringEntry(a, makeString([toString((parseIntValue(u[0]) + z)), toString((parseIntValue(u[1]) + x)), toString((ud2 + x)), toString(((ud2 + x) / f)), toString(h), u[5], u[6], u[7], u[8], u[9], u[10], u[11]], "_"))] | |
51 | 51 | else { | |
52 | 52 | let r1 = split(getUser(u[7]), "_") | |
53 | 53 | let sr1 = ((z / 100) * pr1) | |
54 | 54 | if ((r1[7] == "0")) | |
55 | - | then | |
55 | + | then [StringEntry("statistic", makeString([toString((parseIntValue(s[0]) + z)), toString((parseIntValue(s[1]) + 1)), s[2], s[3], toString((parseIntValue(s[4]) + sr1)), toString((parseIntValue(s[5]) + 1)), s[6], s[7], toString(((parseIntValue(s[8]) + y) + sr1))], "_")), StringEntry(a, makeString([toString((parseIntValue(u[0]) + z)), toString((parseIntValue(u[1]) + x)), toString((ud2 + x)), toString(((ud2 + x) / f)), toString(h), u[5], u[6], u[7], u[8], u[9], u[10], u[11]], "_")), StringEntry(u[7], makeString([r1[0], r1[1], r1[2], r1[3], r1[4], r1[5], r1[6], r1[7], toString((parseIntValue(r1[8]) + sr1)), r1[9], r1[10], toString((parseIntValue(r1[11]) + sr1))], "_"))] | |
56 | 56 | else { | |
57 | 57 | let r2 = split(getUser(r1[7]), "_") | |
58 | 58 | let sr2 = ((z / 100) * pr2) | |
59 | 59 | if ((r2[7] == "0")) | |
60 | - | then | |
60 | + | then [StringEntry("statistic", makeString([toString((parseIntValue(s[0]) + z)), toString((parseIntValue(s[1]) + 1)), s[2], s[3], toString(((parseIntValue(s[4]) + sr1) + sr2)), toString((parseIntValue(s[5]) + 2)), s[6], s[7], toString((((parseIntValue(s[8]) + y) + sr1) + sr2))], "_")), StringEntry(a, makeString([toString((parseIntValue(u[0]) + z)), toString((parseIntValue(u[1]) + x)), toString((ud2 + x)), toString(((ud2 + x) / f)), toString(h), u[5], u[6], u[7], u[8], u[9], u[10], u[11]], "_")), StringEntry(u[7], makeString([r1[0], r1[1], r1[2], r1[3], r1[4], r1[5], r1[6], r1[7], toString((parseIntValue(r1[8]) + sr1)), r1[9], r1[10], toString((parseIntValue(r1[11]) + sr1))], "_")), StringEntry(r1[7], makeString([r2[0], r2[1], r2[2], r2[3], r2[4], r2[5], r2[6], r2[7], r2[8], toString((parseIntValue(r2[9]) + sr2)), r2[10], toString((parseIntValue(r2[11]) + sr2))], "_"))] | |
61 | 61 | else { | |
62 | 62 | let r3 = split(getUser(r2[7]), "_") | |
63 | 63 | let sr3 = ((z / 100) * pr3) | |
64 | - | ||
64 | + | [StringEntry("statistic", makeString([toString((parseIntValue(s[0]) + z)), toString((parseIntValue(s[1]) + 1)), s[2], s[3], toString((((parseIntValue(s[4]) + sr1) + sr2) + sr3)), toString((parseIntValue(s[5]) + 3)), s[6], s[7], toString(((((parseIntValue(s[8]) + y) + sr1) + sr2) + sr3))], "_")), StringEntry(a, makeString([toString((parseIntValue(u[0]) + z)), toString((parseIntValue(u[1]) + x)), toString((ud2 + x)), toString(((ud2 + x) / f)), toString(h), u[5], u[6], u[7], u[8], u[9], u[10], u[11]], "_")), StringEntry(u[7], makeString([r1[0], r1[1], r1[2], r1[3], r1[4], r1[5], r1[6], r1[7], toString((parseIntValue(r1[8]) + sr1)), r1[9], r1[10], toString((parseIntValue(r1[11]) + sr1))], "_")), StringEntry(r1[7], makeString([r2[0], r2[1], r2[2], r2[3], r2[4], r2[5], r2[6], r2[7], r2[8], toString((parseIntValue(r2[9]) + sr2)), r2[10], toString((parseIntValue(r2[11]) + sr2))], "_")), StringEntry(r2[7], makeString([r3[0], r3[1], r3[2], r3[3], r3[4], r3[5], r3[6], r3[7], r3[8], r3[9], toString((parseIntValue(r3[10]) + sr3)), toString((parseIntValue(r3[11]) + sr3))], "_"))] | |
65 | 65 | } | |
66 | 66 | } | |
67 | 67 | } | |
88 | 88 | if ((0 > y)) | |
89 | 89 | then throw("Can't withdraw negative amount") | |
90 | 90 | else if ((b >= y)) | |
91 | - | then | |
91 | + | then [StringEntry("statistic", makeString([s[0], s[1], s[2], toString((parseIntValue(s[3]) + 1)), s[4], s[5], toString((parseIntValue(s[6]) + y)), s[7], s[8]], "_")), StringEntry(a, makeString([u[0], u[1], u[2], u[3], u[4], toString((parseIntValue(u[5]) + y)), toString((parseIntValue(u[6]) + y)), u[7], u[8], u[9], u[10], toString((parseIntValue(u[11]) - y))], "_")), ScriptTransfer(i.caller, y, unit)] | |
92 | 92 | else if ((0 > (m - y))) | |
93 | 93 | then throw("Not enough balance") | |
94 | 94 | else { | |
95 | 95 | let n = ((x + b) - y) | |
96 | - | ||
96 | + | [StringEntry("statistic", makeString([s[0], s[1], toString(((parseIntValue(s[2]) + y) - parseIntValue(u[11]))), toString((parseIntValue(s[3]) + 1)), s[4], s[5], toString((parseIntValue(s[6]) + parseIntValue(u[11]))), s[7], s[8]], "_")), StringEntry(a, makeString([u[0], u[1], toString(n), u[3], u[4], toString((parseIntValue(u[5]) + y)), toString((parseIntValue(u[6]) + y)), u[7], u[8], u[9], (u[10] + "_0")], "_")), ScriptTransfer(i.caller, y, unit)] | |
97 | 97 | } | |
98 | 98 | } | |
99 | 99 |
Old | New | Differences | |
---|---|---|---|
1 | - | {-# STDLIB_VERSION | |
1 | + | {-# STDLIB_VERSION 4 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let ar = "3N2hHaqEEXjFHE5G8NTw6v7KNMwcHob2Ena" | |
5 | 5 | ||
6 | 6 | let f = 100 | |
7 | 7 | ||
8 | 8 | let p = 20 | |
9 | 9 | ||
10 | 10 | let pr1 = 3 | |
11 | 11 | ||
12 | 12 | let pr2 = 2 | |
13 | 13 | ||
14 | 14 | let pr3 = 1 | |
15 | 15 | ||
16 | 16 | func getStatistic () = match getString(this, "statistic") { | |
17 | 17 | case a: String => | |
18 | 18 | a | |
19 | 19 | case _ => | |
20 | 20 | "0_0_0_0_0_0_0_0_0" | |
21 | 21 | } | |
22 | 22 | ||
23 | 23 | ||
24 | 24 | func getUser (user) = match getString(this, user) { | |
25 | 25 | case a: String => | |
26 | 26 | a | |
27 | 27 | case _ => | |
28 | 28 | "0_0_0_0_0_0_0_0_0_0_0_0" | |
29 | 29 | } | |
30 | 30 | ||
31 | 31 | ||
32 | 32 | @Callable(i) | |
33 | 33 | func deposit () = { | |
34 | - | let t = | |
34 | + | let t = value(i.payments[0]) | |
35 | 35 | let z = t.amount | |
36 | 36 | if (isDefined(t.assetId)) | |
37 | 37 | then throw("can hodl waves only at the moment") | |
38 | 38 | else { | |
39 | 39 | let a = toBase58String(i.caller.bytes) | |
40 | 40 | let s = split(getStatistic(), "_") | |
41 | 41 | if ((a == ar)) | |
42 | - | then | |
42 | + | then [StringEntry("statistic", makeString([s[0], s[1], s[2], s[3], s[4], s[5], s[6], toString((parseIntValue(s[7]) + z)), s[8]], "_"))] | |
43 | 43 | else { | |
44 | 44 | let h = lastBlock.height | |
45 | 45 | let x = ((z / 100) * (100 + p)) | |
46 | 46 | let y = (x - z) | |
47 | 47 | let u = split(getUser(a), "_") | |
48 | 48 | let ud2 = parseIntValue(u[2]) | |
49 | 49 | if ((u[7] == "0")) | |
50 | - | then | |
50 | + | then [StringEntry("statistic", makeString([toString((parseIntValue(s[0]) + z)), toString((parseIntValue(s[1]) + 1)), s[2], s[3], s[4], s[5], s[6], s[7], toString((parseIntValue(s[8]) + y))], "_")), StringEntry(a, makeString([toString((parseIntValue(u[0]) + z)), toString((parseIntValue(u[1]) + x)), toString((ud2 + x)), toString(((ud2 + x) / f)), toString(h), u[5], u[6], u[7], u[8], u[9], u[10], u[11]], "_"))] | |
51 | 51 | else { | |
52 | 52 | let r1 = split(getUser(u[7]), "_") | |
53 | 53 | let sr1 = ((z / 100) * pr1) | |
54 | 54 | if ((r1[7] == "0")) | |
55 | - | then | |
55 | + | then [StringEntry("statistic", makeString([toString((parseIntValue(s[0]) + z)), toString((parseIntValue(s[1]) + 1)), s[2], s[3], toString((parseIntValue(s[4]) + sr1)), toString((parseIntValue(s[5]) + 1)), s[6], s[7], toString(((parseIntValue(s[8]) + y) + sr1))], "_")), StringEntry(a, makeString([toString((parseIntValue(u[0]) + z)), toString((parseIntValue(u[1]) + x)), toString((ud2 + x)), toString(((ud2 + x) / f)), toString(h), u[5], u[6], u[7], u[8], u[9], u[10], u[11]], "_")), StringEntry(u[7], makeString([r1[0], r1[1], r1[2], r1[3], r1[4], r1[5], r1[6], r1[7], toString((parseIntValue(r1[8]) + sr1)), r1[9], r1[10], toString((parseIntValue(r1[11]) + sr1))], "_"))] | |
56 | 56 | else { | |
57 | 57 | let r2 = split(getUser(r1[7]), "_") | |
58 | 58 | let sr2 = ((z / 100) * pr2) | |
59 | 59 | if ((r2[7] == "0")) | |
60 | - | then | |
60 | + | then [StringEntry("statistic", makeString([toString((parseIntValue(s[0]) + z)), toString((parseIntValue(s[1]) + 1)), s[2], s[3], toString(((parseIntValue(s[4]) + sr1) + sr2)), toString((parseIntValue(s[5]) + 2)), s[6], s[7], toString((((parseIntValue(s[8]) + y) + sr1) + sr2))], "_")), StringEntry(a, makeString([toString((parseIntValue(u[0]) + z)), toString((parseIntValue(u[1]) + x)), toString((ud2 + x)), toString(((ud2 + x) / f)), toString(h), u[5], u[6], u[7], u[8], u[9], u[10], u[11]], "_")), StringEntry(u[7], makeString([r1[0], r1[1], r1[2], r1[3], r1[4], r1[5], r1[6], r1[7], toString((parseIntValue(r1[8]) + sr1)), r1[9], r1[10], toString((parseIntValue(r1[11]) + sr1))], "_")), StringEntry(r1[7], makeString([r2[0], r2[1], r2[2], r2[3], r2[4], r2[5], r2[6], r2[7], r2[8], toString((parseIntValue(r2[9]) + sr2)), r2[10], toString((parseIntValue(r2[11]) + sr2))], "_"))] | |
61 | 61 | else { | |
62 | 62 | let r3 = split(getUser(r2[7]), "_") | |
63 | 63 | let sr3 = ((z / 100) * pr3) | |
64 | - | ||
64 | + | [StringEntry("statistic", makeString([toString((parseIntValue(s[0]) + z)), toString((parseIntValue(s[1]) + 1)), s[2], s[3], toString((((parseIntValue(s[4]) + sr1) + sr2) + sr3)), toString((parseIntValue(s[5]) + 3)), s[6], s[7], toString(((((parseIntValue(s[8]) + y) + sr1) + sr2) + sr3))], "_")), StringEntry(a, makeString([toString((parseIntValue(u[0]) + z)), toString((parseIntValue(u[1]) + x)), toString((ud2 + x)), toString(((ud2 + x) / f)), toString(h), u[5], u[6], u[7], u[8], u[9], u[10], u[11]], "_")), StringEntry(u[7], makeString([r1[0], r1[1], r1[2], r1[3], r1[4], r1[5], r1[6], r1[7], toString((parseIntValue(r1[8]) + sr1)), r1[9], r1[10], toString((parseIntValue(r1[11]) + sr1))], "_")), StringEntry(r1[7], makeString([r2[0], r2[1], r2[2], r2[3], r2[4], r2[5], r2[6], r2[7], r2[8], toString((parseIntValue(r2[9]) + sr2)), r2[10], toString((parseIntValue(r2[11]) + sr2))], "_")), StringEntry(r2[7], makeString([r3[0], r3[1], r3[2], r3[3], r3[4], r3[5], r3[6], r3[7], r3[8], r3[9], toString((parseIntValue(r3[10]) + sr3)), toString((parseIntValue(r3[11]) + sr3))], "_"))] | |
65 | 65 | } | |
66 | 66 | } | |
67 | 67 | } | |
68 | 68 | } | |
69 | 69 | } | |
70 | 70 | } | |
71 | 71 | ||
72 | 72 | ||
73 | 73 | ||
74 | 74 | @Callable(i) | |
75 | 75 | func withdraw (y) = { | |
76 | 76 | let a = toBase58String(i.caller.bytes) | |
77 | 77 | let u = split(getUser(a), "_") | |
78 | 78 | let s = split(getStatistic(), "_") | |
79 | 79 | let h = lastBlock.height | |
80 | 80 | let j = parseIntValue(u[1]) | |
81 | 81 | let x = parseIntValue(u[2]) | |
82 | 82 | let d = parseIntValue(u[3]) | |
83 | 83 | let b = parseIntValue(u[11]) | |
84 | 84 | let g = (j + f) | |
85 | 85 | let m = if ((h >= g)) | |
86 | 86 | then (x + b) | |
87 | 87 | else ((d * ((f - g) - h)) + b) | |
88 | 88 | if ((0 > y)) | |
89 | 89 | then throw("Can't withdraw negative amount") | |
90 | 90 | else if ((b >= y)) | |
91 | - | then | |
91 | + | then [StringEntry("statistic", makeString([s[0], s[1], s[2], toString((parseIntValue(s[3]) + 1)), s[4], s[5], toString((parseIntValue(s[6]) + y)), s[7], s[8]], "_")), StringEntry(a, makeString([u[0], u[1], u[2], u[3], u[4], toString((parseIntValue(u[5]) + y)), toString((parseIntValue(u[6]) + y)), u[7], u[8], u[9], u[10], toString((parseIntValue(u[11]) - y))], "_")), ScriptTransfer(i.caller, y, unit)] | |
92 | 92 | else if ((0 > (m - y))) | |
93 | 93 | then throw("Not enough balance") | |
94 | 94 | else { | |
95 | 95 | let n = ((x + b) - y) | |
96 | - | ||
96 | + | [StringEntry("statistic", makeString([s[0], s[1], toString(((parseIntValue(s[2]) + y) - parseIntValue(u[11]))), toString((parseIntValue(s[3]) + 1)), s[4], s[5], toString((parseIntValue(s[6]) + parseIntValue(u[11]))), s[7], s[8]], "_")), StringEntry(a, makeString([u[0], u[1], toString(n), u[3], u[4], toString((parseIntValue(u[5]) + y)), toString((parseIntValue(u[6]) + y)), u[7], u[8], u[9], (u[10] + "_0")], "_")), ScriptTransfer(i.caller, y, unit)] | |
97 | 97 | } | |
98 | 98 | } | |
99 | 99 | ||
100 | 100 | ||
101 | 101 | @Verifier(tx) | |
102 | 102 | func verify () = match tx { | |
103 | 103 | case d: SetScriptTransaction => | |
104 | 104 | sigVerify(tx.bodyBytes, tx.proofs[0], base58'33Gr5uEJMDMKdRs25QUDvTeQ7q5EpGcAdPztrFvQWdv9') | |
105 | 105 | case _ => | |
106 | 106 | true | |
107 | 107 | } | |
108 | 108 |
github/deemru/w8io/169f3d6 263.28 ms ◑