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