tx · CBT8JF6G8PRJP44cRGB7QyFcswqfgHCJFe31z69dj5Vn 3NAVsUiHMQhkX4keYNiV59vmRTzsnvCTA4a: -0.01400000 Waves 2020.10.18 21:00 [1226346] smart account 3NAVsUiHMQhkX4keYNiV59vmRTzsnvCTA4a > SELF 0.00000000 Waves
{ "type": 13, "id": "CBT8JF6G8PRJP44cRGB7QyFcswqfgHCJFe31z69dj5Vn", "fee": 1400000, "feeAssetId": null, "timestamp": 1603044061129, "version": 2, "chainId": 84, "sender": "3NAVsUiHMQhkX4keYNiV59vmRTzsnvCTA4a", "senderPublicKey": "7rC1eUHm39ujzNxeYHmmZia2bTsJ1Un38mzD1QHNVwUN", "proofs": [ "4mJEwU2cgmkmPMhQnS4VfHf6s3Gaq4wxfFKZz9GuSt3w5p7wFwQe1EgJfCg8tYCotXNSeLnpWrVfDhcxY3sb5jYV" ], "script": "base64:AAIEAAAAAAAAAAoIAhIAEgQKAgEIAAAACQAAAAABbwEAAAAgZcAIEs7DPu9HfAtSW98Mx1j03M6cygFcgfbHFwoDIjsAAAAAAWwCAAAAIzNOMmhIYXFFRVhqRkhFNUc4TlR3NnY3S05Nd2NIb2IyRW5hAAAAAAFmAAAAAAAAAAAKAAAAAAFwAAAAAAAAAAAUAAAAAANwcjEAAAAAAAAAAAMAAAAAA3ByMgAAAAAAAAAAAgAAAAADcHIzAAAAAAAAAAABAQAAAAxnZXRTdGF0aXN0aWMAAAAABAAAAAckbWF0Y2gwCQAEHQAAAAIFAAAABHRoaXMCAAAACXN0YXRpc3RpYwMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAGU3RyaW5nBAAAAAFhBQAAAAckbWF0Y2gwBQAAAAFhAgAAABEwXzBfMF8wXzBfMF8wXzBfMAEAAAAHZ2V0VXNlcgAAAAEAAAAEdXNlcgQAAAAHJG1hdGNoMAkABB0AAAACBQAAAAR0aGlzBQAAAAR1c2VyAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAAZTdHJpbmcEAAAAAW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AAABHVuaXQFAAAAA25pbAAAAAEAAAACdHgBAAAABnZlcmlmeQAAAAAEAAAAByRtYXRjaDAFAAAAAnR4AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAABRTZXRTY3JpcHRUcmFuc2FjdGlvbgQAAAABZAUAAAAHJG1hdGNoMAkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAFAAAAAW8Gs4ULTw==", "height": 1226346, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 4WkCyMCoroc9ZJ4w9cLK5uAZMDgG56aTKFEgVuLGJ1qK Next: ejvytoNWd4CwuJFxxwJkLBnZFdBQBbPKxfMTwhSNg1o Diff:
Old | New | Differences | |
---|---|---|---|
80 | 80 | ||
81 | 81 | ||
82 | 82 | @Callable(m) | |
83 | - | func withdraw (s) = { | |
84 | - | let B = split(s, " Waves") | |
85 | - | let C = split(B[0], ".") | |
86 | - | let D = if ((size(C) == 1)) | |
87 | - | then (parseIntValue(C[0]) * 100000000) | |
88 | - | else (parseIntValue(makeString(C, "")) * 100000000) | |
83 | + | func withdraw (s,B) = { | |
89 | 84 | let j = toBase58String(m.caller.bytes) | |
90 | 85 | let t = split(k(j), "_") | |
91 | 86 | let p = split(h(), "_") | |
92 | 87 | let q = lastBlock.height | |
93 | - | let | |
88 | + | let C = parseIntValue(t[1]) | |
94 | 89 | let r = parseIntValue(t[2]) | |
95 | - | let | |
96 | - | let | |
97 | - | let | |
98 | - | let | |
99 | - | then (r + | |
100 | - | else (( | |
101 | - | if ((0 > | |
90 | + | let D = parseIntValue(t[3]) | |
91 | + | let E = parseIntValue(t[11]) | |
92 | + | let F = (C + c) | |
93 | + | let G = if ((q >= F)) | |
94 | + | then (r + E) | |
95 | + | else ((D * ((c - F) - q)) + E) | |
96 | + | if ((0 > s)) | |
102 | 97 | then throw("Can't withdraw negative amount") | |
103 | - | else if (( | |
104 | - | then [StringEntry("statistic", makeString([p[0], p[1], p[2], toString((parseIntValue(p[3]) + 1)), p[4], p[5], toString((parseIntValue(p[6]) + | |
105 | - | else if ((0 > ( | |
106 | - | then throw(((("Not enough balance: " + toString( | |
98 | + | else if ((E >= s)) | |
99 | + | then [StringEntry("statistic", makeString([p[0], p[1], p[2], toString((parseIntValue(p[3]) + 1)), p[4], p[5], toString((parseIntValue(p[6]) + s)), p[7], p[8]], "_")), StringEntry(j, makeString([t[0], t[1], t[2], t[3], t[4], toString((parseIntValue(t[5]) + s)), toString((parseIntValue(t[6]) + s)), t[7], t[8], t[9], t[10], toString((parseIntValue(t[11]) - s))], "_")), ScriptTransfer(m.caller, s, unit)] | |
100 | + | else if ((0 > (G - s))) | |
101 | + | then throw(((("Not enough balance: " + toString(G)) + " / ") + toString(s))) | |
107 | 102 | else { | |
108 | - | let | |
109 | - | [StringEntry("statistic", makeString([p[0], p[1], toString(((parseIntValue(p[2]) + | |
103 | + | let H = ((r + E) - s) | |
104 | + | [StringEntry("statistic", makeString([p[0], p[1], toString(((parseIntValue(p[2]) + s) - parseIntValue(t[11]))), toString((parseIntValue(p[3]) + 1)), p[4], p[5], toString((parseIntValue(p[6]) + parseIntValue(t[11]))), p[7], p[8]], "_")), StringEntry(j, makeString([t[0], t[1], toString(H), t[3], t[4], toString((parseIntValue(t[5]) + s)), toString((parseIntValue(t[6]) + s)), t[7], t[8], t[9], (t[10] + "_0")], "_")), ScriptTransfer(m.caller, s, unit)] | |
110 | 105 | } | |
111 | 106 | } | |
112 | 107 | ||
113 | 108 | ||
114 | - | @Verifier( | |
115 | - | func | |
116 | - | let i = | |
109 | + | @Verifier(I) | |
110 | + | func J () = { | |
111 | + | let i = I | |
117 | 112 | if ($isInstanceOf(i, "SetScriptTransaction")) | |
118 | 113 | then { | |
119 | - | let | |
120 | - | sigVerify( | |
114 | + | let D = i | |
115 | + | sigVerify(I.bodyBytes, I.proofs[0], a) | |
121 | 116 | } | |
122 | 117 | else true | |
123 | 118 | } |
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 | @Callable(m) | |
41 | 41 | func deposit () = { | |
42 | 42 | let n = value(m.payments[0]) | |
43 | 43 | let o = n.amount | |
44 | 44 | if (isDefined(n.assetId)) | |
45 | 45 | then throw("can hodl waves only at the moment") | |
46 | 46 | else { | |
47 | 47 | let j = toBase58String(m.caller.bytes) | |
48 | 48 | let p = split(h(), "_") | |
49 | 49 | if ((j == b)) | |
50 | 50 | then [StringEntry("statistic", makeString([p[0], p[1], p[2], p[3], p[4], p[5], p[6], toString((parseIntValue(p[7]) + o)), p[8]], "_"))] | |
51 | 51 | else { | |
52 | 52 | let q = lastBlock.height | |
53 | 53 | let r = ((o / 100) * (100 + d)) | |
54 | 54 | let s = (r - o) | |
55 | 55 | let t = split(k(j), "_") | |
56 | 56 | let u = parseIntValue(t[2]) | |
57 | 57 | if ((t[7] == "0")) | |
58 | 58 | then [StringEntry("statistic", makeString([toString((parseIntValue(p[0]) + o)), toString((parseIntValue(p[1]) + 1)), p[2], p[3], p[4], p[5], p[6], p[7], toString((parseIntValue(p[8]) + s))], "_")), StringEntry(j, makeString([toString((parseIntValue(t[0]) + o)), toString((parseIntValue(t[1]) + r)), toString((u + r)), toString(((u + r) / c)), toString(q), t[5], t[6], t[7], t[8], t[9], t[10], t[11]], "_"))] | |
59 | 59 | else { | |
60 | 60 | let v = split(k(t[7]), "_") | |
61 | 61 | let w = ((o / 100) * e) | |
62 | 62 | if ((v[7] == "0")) | |
63 | 63 | then [StringEntry("statistic", makeString([toString((parseIntValue(p[0]) + o)), toString((parseIntValue(p[1]) + 1)), p[2], p[3], toString((parseIntValue(p[4]) + w)), toString((parseIntValue(p[5]) + 1)), p[6], p[7], toString(((parseIntValue(p[8]) + s) + w))], "_")), StringEntry(j, makeString([toString((parseIntValue(t[0]) + o)), toString((parseIntValue(t[1]) + r)), toString((u + r)), toString(((u + r) / c)), toString(q), t[5], t[6], t[7], t[8], t[9], t[10], t[11]], "_")), StringEntry(t[7], makeString([v[0], v[1], v[2], v[3], v[4], v[5], v[6], v[7], toString((parseIntValue(v[8]) + w)), v[9], v[10], toString((parseIntValue(v[11]) + w))], "_"))] | |
64 | 64 | else { | |
65 | 65 | let x = split(k(v[7]), "_") | |
66 | 66 | let y = ((o / 100) * f) | |
67 | 67 | if ((x[7] == "0")) | |
68 | 68 | then [StringEntry("statistic", makeString([toString((parseIntValue(p[0]) + o)), toString((parseIntValue(p[1]) + 1)), p[2], p[3], toString(((parseIntValue(p[4]) + w) + y)), toString((parseIntValue(p[5]) + 2)), p[6], p[7], toString((((parseIntValue(p[8]) + s) + w) + y))], "_")), StringEntry(j, makeString([toString((parseIntValue(t[0]) + o)), toString((parseIntValue(t[1]) + r)), toString((u + r)), toString(((u + r) / c)), toString(q), t[5], t[6], t[7], t[8], t[9], t[10], t[11]], "_")), StringEntry(t[7], makeString([v[0], v[1], v[2], v[3], v[4], v[5], v[6], v[7], toString((parseIntValue(v[8]) + w)), v[9], v[10], toString((parseIntValue(v[11]) + w))], "_")), StringEntry(v[7], makeString([x[0], x[1], x[2], x[3], x[4], x[5], x[6], x[7], x[8], toString((parseIntValue(x[9]) + y)), x[10], toString((parseIntValue(x[11]) + y))], "_"))] | |
69 | 69 | else { | |
70 | 70 | let z = split(k(x[7]), "_") | |
71 | 71 | let A = ((o / 100) * g) | |
72 | 72 | [StringEntry("statistic", makeString([toString((parseIntValue(p[0]) + o)), toString((parseIntValue(p[1]) + 1)), p[2], p[3], toString((((parseIntValue(p[4]) + w) + y) + A)), toString((parseIntValue(p[5]) + 3)), p[6], p[7], toString(((((parseIntValue(p[8]) + s) + w) + y) + A))], "_")), StringEntry(j, makeString([toString((parseIntValue(t[0]) + o)), toString((parseIntValue(t[1]) + r)), toString((u + r)), toString(((u + r) / c)), toString(q), t[5], t[6], t[7], t[8], t[9], t[10], t[11]], "_")), StringEntry(t[7], makeString([v[0], v[1], v[2], v[3], v[4], v[5], v[6], v[7], toString((parseIntValue(v[8]) + w)), v[9], v[10], toString((parseIntValue(v[11]) + w))], "_")), StringEntry(v[7], makeString([x[0], x[1], x[2], x[3], x[4], x[5], x[6], x[7], x[8], toString((parseIntValue(x[9]) + y)), x[10], toString((parseIntValue(x[11]) + y))], "_")), StringEntry(x[7], makeString([z[0], z[1], z[2], z[3], z[4], z[5], z[6], z[7], z[8], z[9], toString((parseIntValue(z[10]) + A)), toString((parseIntValue(z[11]) + A))], "_"))] | |
73 | 73 | } | |
74 | 74 | } | |
75 | 75 | } | |
76 | 76 | } | |
77 | 77 | } | |
78 | 78 | } | |
79 | 79 | ||
80 | 80 | ||
81 | 81 | ||
82 | 82 | @Callable(m) | |
83 | - | func withdraw (s) = { | |
84 | - | let B = split(s, " Waves") | |
85 | - | let C = split(B[0], ".") | |
86 | - | let D = if ((size(C) == 1)) | |
87 | - | then (parseIntValue(C[0]) * 100000000) | |
88 | - | else (parseIntValue(makeString(C, "")) * 100000000) | |
83 | + | func withdraw (s,B) = { | |
89 | 84 | let j = toBase58String(m.caller.bytes) | |
90 | 85 | let t = split(k(j), "_") | |
91 | 86 | let p = split(h(), "_") | |
92 | 87 | let q = lastBlock.height | |
93 | - | let | |
88 | + | let C = parseIntValue(t[1]) | |
94 | 89 | let r = parseIntValue(t[2]) | |
95 | - | let | |
96 | - | let | |
97 | - | let | |
98 | - | let | |
99 | - | then (r + | |
100 | - | else (( | |
101 | - | if ((0 > | |
90 | + | let D = parseIntValue(t[3]) | |
91 | + | let E = parseIntValue(t[11]) | |
92 | + | let F = (C + c) | |
93 | + | let G = if ((q >= F)) | |
94 | + | then (r + E) | |
95 | + | else ((D * ((c - F) - q)) + E) | |
96 | + | if ((0 > s)) | |
102 | 97 | then throw("Can't withdraw negative amount") | |
103 | - | else if (( | |
104 | - | then [StringEntry("statistic", makeString([p[0], p[1], p[2], toString((parseIntValue(p[3]) + 1)), p[4], p[5], toString((parseIntValue(p[6]) + | |
105 | - | else if ((0 > ( | |
106 | - | then throw(((("Not enough balance: " + toString( | |
98 | + | else if ((E >= s)) | |
99 | + | then [StringEntry("statistic", makeString([p[0], p[1], p[2], toString((parseIntValue(p[3]) + 1)), p[4], p[5], toString((parseIntValue(p[6]) + s)), p[7], p[8]], "_")), StringEntry(j, makeString([t[0], t[1], t[2], t[3], t[4], toString((parseIntValue(t[5]) + s)), toString((parseIntValue(t[6]) + s)), t[7], t[8], t[9], t[10], toString((parseIntValue(t[11]) - s))], "_")), ScriptTransfer(m.caller, s, unit)] | |
100 | + | else if ((0 > (G - s))) | |
101 | + | then throw(((("Not enough balance: " + toString(G)) + " / ") + toString(s))) | |
107 | 102 | else { | |
108 | - | let | |
109 | - | [StringEntry("statistic", makeString([p[0], p[1], toString(((parseIntValue(p[2]) + | |
103 | + | let H = ((r + E) - s) | |
104 | + | [StringEntry("statistic", makeString([p[0], p[1], toString(((parseIntValue(p[2]) + s) - parseIntValue(t[11]))), toString((parseIntValue(p[3]) + 1)), p[4], p[5], toString((parseIntValue(p[6]) + parseIntValue(t[11]))), p[7], p[8]], "_")), StringEntry(j, makeString([t[0], t[1], toString(H), t[3], t[4], toString((parseIntValue(t[5]) + s)), toString((parseIntValue(t[6]) + s)), t[7], t[8], t[9], (t[10] + "_0")], "_")), ScriptTransfer(m.caller, s, unit)] | |
110 | 105 | } | |
111 | 106 | } | |
112 | 107 | ||
113 | 108 | ||
114 | - | @Verifier( | |
115 | - | func | |
116 | - | let i = | |
109 | + | @Verifier(I) | |
110 | + | func J () = { | |
111 | + | let i = I | |
117 | 112 | if ($isInstanceOf(i, "SetScriptTransaction")) | |
118 | 113 | then { | |
119 | - | let | |
120 | - | sigVerify( | |
114 | + | let D = i | |
115 | + | sigVerify(I.bodyBytes, I.proofs[0], a) | |
121 | 116 | } | |
122 | 117 | else true | |
123 | 118 | } | |
124 | 119 |
github/deemru/w8io/169f3d6 68.22 ms ◑