tx · AFui5SwRiGocEdwBmKgvNSpfdyCkJQq9C9QxihCbn5id 3NAVsUiHMQhkX4keYNiV59vmRTzsnvCTA4a: -0.01400000 Waves 2020.10.19 01:40 [1226614] smart account 3NAVsUiHMQhkX4keYNiV59vmRTzsnvCTA4a > SELF 0.00000000 Waves
{ "type": 13, "id": "AFui5SwRiGocEdwBmKgvNSpfdyCkJQq9C9QxihCbn5id", "fee": 1400000, "feeAssetId": null, "timestamp": 1603060840452, "version": 2, "chainId": 84, "sender": "3NAVsUiHMQhkX4keYNiV59vmRTzsnvCTA4a", "senderPublicKey": "7rC1eUHm39ujzNxeYHmmZia2bTsJ1Un38mzD1QHNVwUN", "proofs": [ "4wB2puXhLWzQRWrHSJQQT4pZGNahHymf8oZfh1aDUXuEkZXa9WyLD99XVC7SzEDtZwFu8brv4dPF9c3rnPnKkWcN" ], "script": "base64:AAIEAAAAAAAAAAkIAhIAEgMKAQgAAAAKAAAAAAFvAQAAACBlwAgSzsM+70d8C1Jb3wzHWPTczpzKAVyB9scXCgMiOwAAAAABbAIAAAAjM04yaEhhcUVFWGpGSEU1RzhOVHc2djdLTk13Y0hvYjJFbmEAAAAAAWYAAAAAAAAAAAoAAAAAAXAAAAAAAAAAABQAAAAAA3ByMQAAAAAAAAAAAwAAAAADcHIyAAAAAAAAAAACAAAAAANwcjMAAAAAAAAAAAEBAAAADGdldFN0YXRpc3RpYwAAAAAEAAAAByRtYXRjaDAJAAQdAAAAAgUAAAAEdGhpcwIAAAAJc3RhdGlzdGljAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAAZTdHJpbmcEAAAAAWEFAAAAByRtYXRjaDAFAAAAAWECAAAAETBfMF8wXzBfMF8wXzBfMF8wAQAAAAdnZXRVc2VyAAAAAQAAAAR1c2VyBAAAAAckbWF0Y2gwCQAEHQAAAAIFAAAABHRoaXMFAAAABHVzZXIDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAABlN0cmluZwQAAAABYQUAAAAHJG1hdGNoMAUA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eded", "spentComplexity": 0 } View: original | compacted Prev: 7tg97SPXoThiztqJ1wdcfNqaNGkdpEHpPR3pjVQbYfMt Next: FCL9N4fZ6BywRDGhpCohxq2tocz54pmv3m4bCXHz3YvG Diff:
Old | New | Differences | |
---|---|---|---|
43 | 43 | let p = (parseIntValue(o[0]) * 100000000) | |
44 | 44 | if ((size(o) == 1)) | |
45 | 45 | then p | |
46 | - | else { | |
47 | - | let q = parseIntValue(o[1]) | |
48 | - | let r = size(o[1]) | |
49 | - | if ((r == 1)) | |
50 | - | then ((q * 10000000) + p) | |
51 | - | else if ((r == 2)) | |
52 | - | then ((q * 1000000) + p) | |
53 | - | else if ((r == 3)) | |
54 | - | then ((q * 100000) + p) | |
55 | - | else if ((r == 4)) | |
56 | - | then ((q * 10000) + p) | |
57 | - | else if ((r == 5)) | |
58 | - | then ((q * 1000) + p) | |
59 | - | else if ((r == 6)) | |
60 | - | then ((q * 100) + p) | |
61 | - | else if ((r == 7)) | |
62 | - | then ((q * 10) + p) | |
63 | - | else (q + p) | |
64 | - | } | |
46 | + | else ((parseIntValue(o[1]) * pow(10, 0, size(o[1]), 0, 0, HALFDOWN)) + p) | |
65 | 47 | } | |
66 | 48 | ||
67 | 49 | ||
68 | - | @Callable( | |
50 | + | @Callable(q) | |
69 | 51 | func deposit () = { | |
70 | - | let | |
71 | - | let | |
72 | - | if (isDefined( | |
52 | + | let r = value(q.payments[0]) | |
53 | + | let s = r.amount | |
54 | + | if (isDefined(r.assetId)) | |
73 | 55 | then throw("can hodl waves only at the moment") | |
74 | 56 | else { | |
75 | - | let j = toBase58String( | |
57 | + | let j = toBase58String(q.caller.bytes) | |
76 | 58 | let n = split(h(), "_") | |
77 | 59 | if ((j == b)) | |
78 | - | then [StringEntry("statistic", makeString([n[0], n[1], n[2], n[3], n[4], n[5], n[6], toString((parseIntValue(n[7]) + | |
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]], "_"))] | |
79 | 61 | else { | |
80 | - | let | |
81 | - | let | |
82 | - | let | |
83 | - | let | |
84 | - | let | |
85 | - | if (( | |
86 | - | then [StringEntry("statistic", makeString([toString((parseIntValue(n[0]) + | |
62 | + | let t = lastBlock.height | |
63 | + | let u = ((s / 100) * (100 + d)) | |
64 | + | let v = (u - s) | |
65 | + | let w = split(k(j), "_") | |
66 | + | let x = parseIntValue(w[2]) | |
67 | + | if ((w[7] == "0")) | |
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]], "_"))] | |
87 | 69 | else { | |
88 | - | let | |
89 | - | let | |
90 | - | if (( | |
91 | - | then [StringEntry("statistic", makeString([toString((parseIntValue(n[0]) + | |
70 | + | let y = split(k(w[7]), "_") | |
71 | + | let z = ((s / 100) * e) | |
72 | + | if ((y[7] == "0")) | |
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))], "_"))] | |
92 | 74 | else { | |
93 | - | let | |
94 | - | let | |
95 | - | if (( | |
96 | - | then [StringEntry("statistic", makeString([toString((parseIntValue(n[0]) + | |
75 | + | let A = split(k(y[7]), "_") | |
76 | + | let B = ((s / 100) * f) | |
77 | + | if ((A[7] == "0")) | |
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))], "_"))] | |
97 | 79 | else { | |
98 | - | let | |
99 | - | let | |
100 | - | [StringEntry("statistic", makeString([toString((parseIntValue(n[0]) + | |
80 | + | let C = split(k(A[7]), "_") | |
81 | + | let D = ((s / 100) * g) | |
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))], "_"))] | |
101 | 83 | } | |
102 | 84 | } | |
103 | 85 | } | |
107 | 89 | ||
108 | 90 | ||
109 | 91 | ||
110 | - | @Callable( | |
111 | - | func withdraw ( | |
112 | - | let | |
113 | - | let j = toBase58String( | |
114 | - | let | |
92 | + | @Callable(q) | |
93 | + | func withdraw (E) = { | |
94 | + | let v = m(E) | |
95 | + | let j = toBase58String(q.caller.bytes) | |
96 | + | let w = split(k(j), "_") | |
115 | 97 | let n = split(h(), "_") | |
116 | - | let | |
117 | - | let | |
118 | - | let | |
119 | - | let G = parseIntValue( | |
120 | - | let o = parseIntValue( | |
121 | - | let H = ( | |
122 | - | let I = if (( | |
123 | - | then ( | |
124 | - | else ((G * ((c - H) - | |
125 | - | if ((0 > | |
98 | + | let t = lastBlock.height | |
99 | + | let F = parseIntValue(w[4]) | |
100 | + | let u = parseIntValue(w[2]) | |
101 | + | let G = parseIntValue(w[3]) | |
102 | + | let o = parseIntValue(w[11]) | |
103 | + | let H = (F + c) | |
104 | + | let I = if ((t >= H)) | |
105 | + | then (u + o) | |
106 | + | else ((G * ((c - H) - t)) + o) | |
107 | + | if ((0 > v)) | |
126 | 108 | then throw("Can't withdraw negative amount") | |
127 | - | else if ((o >= | |
128 | - | then [StringEntry("statistic", makeString([n[0], n[1], n[2], toString((parseIntValue(n[3]) + 1)), n[4], n[5], toString((parseIntValue(n[6]) + | |
129 | - | else if ((0 > (I - | |
130 | - | then throw(((((((((((((((("Not enough balance: m" + toString(I)) + " / y") + toString( | |
109 | + | else if ((o >= v)) | |
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 | + | else if ((0 > (I - v))) | |
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))) | |
131 | 113 | else { | |
132 | - | let J = (( | |
133 | - | [StringEntry("statistic", makeString([n[0], n[1], toString(((parseIntValue(n[2]) + | |
114 | + | let J = ((u + o) - v) | |
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)] | |
134 | 116 | } | |
135 | 117 | } | |
136 | 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 | 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 { | |
47 | - | let q = parseIntValue(o[1]) | |
48 | - | let r = size(o[1]) | |
49 | - | if ((r == 1)) | |
50 | - | then ((q * 10000000) + p) | |
51 | - | else if ((r == 2)) | |
52 | - | then ((q * 1000000) + p) | |
53 | - | else if ((r == 3)) | |
54 | - | then ((q * 100000) + p) | |
55 | - | else if ((r == 4)) | |
56 | - | then ((q * 10000) + p) | |
57 | - | else if ((r == 5)) | |
58 | - | then ((q * 1000) + p) | |
59 | - | else if ((r == 6)) | |
60 | - | then ((q * 100) + p) | |
61 | - | else if ((r == 7)) | |
62 | - | then ((q * 10) + p) | |
63 | - | else (q + p) | |
64 | - | } | |
46 | + | else ((parseIntValue(o[1]) * pow(10, 0, size(o[1]), 0, 0, HALFDOWN)) + p) | |
65 | 47 | } | |
66 | 48 | ||
67 | 49 | ||
68 | - | @Callable( | |
50 | + | @Callable(q) | |
69 | 51 | func deposit () = { | |
70 | - | let | |
71 | - | let | |
72 | - | if (isDefined( | |
52 | + | let r = value(q.payments[0]) | |
53 | + | let s = r.amount | |
54 | + | if (isDefined(r.assetId)) | |
73 | 55 | then throw("can hodl waves only at the moment") | |
74 | 56 | else { | |
75 | - | let j = toBase58String( | |
57 | + | let j = toBase58String(q.caller.bytes) | |
76 | 58 | let n = split(h(), "_") | |
77 | 59 | if ((j == b)) | |
78 | - | then [StringEntry("statistic", makeString([n[0], n[1], n[2], n[3], n[4], n[5], n[6], toString((parseIntValue(n[7]) + | |
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]], "_"))] | |
79 | 61 | else { | |
80 | - | let | |
81 | - | let | |
82 | - | let | |
83 | - | let | |
84 | - | let | |
85 | - | if (( | |
86 | - | then [StringEntry("statistic", makeString([toString((parseIntValue(n[0]) + | |
62 | + | let t = lastBlock.height | |
63 | + | let u = ((s / 100) * (100 + d)) | |
64 | + | let v = (u - s) | |
65 | + | let w = split(k(j), "_") | |
66 | + | let x = parseIntValue(w[2]) | |
67 | + | if ((w[7] == "0")) | |
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]], "_"))] | |
87 | 69 | else { | |
88 | - | let | |
89 | - | let | |
90 | - | if (( | |
91 | - | then [StringEntry("statistic", makeString([toString((parseIntValue(n[0]) + | |
70 | + | let y = split(k(w[7]), "_") | |
71 | + | let z = ((s / 100) * e) | |
72 | + | if ((y[7] == "0")) | |
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))], "_"))] | |
92 | 74 | else { | |
93 | - | let | |
94 | - | let | |
95 | - | if (( | |
96 | - | then [StringEntry("statistic", makeString([toString((parseIntValue(n[0]) + | |
75 | + | let A = split(k(y[7]), "_") | |
76 | + | let B = ((s / 100) * f) | |
77 | + | if ((A[7] == "0")) | |
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))], "_"))] | |
97 | 79 | else { | |
98 | - | let | |
99 | - | let | |
100 | - | [StringEntry("statistic", makeString([toString((parseIntValue(n[0]) + | |
80 | + | let C = split(k(A[7]), "_") | |
81 | + | let D = ((s / 100) * g) | |
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))], "_"))] | |
101 | 83 | } | |
102 | 84 | } | |
103 | 85 | } | |
104 | 86 | } | |
105 | 87 | } | |
106 | 88 | } | |
107 | 89 | ||
108 | 90 | ||
109 | 91 | ||
110 | - | @Callable( | |
111 | - | func withdraw ( | |
112 | - | let | |
113 | - | let j = toBase58String( | |
114 | - | let | |
92 | + | @Callable(q) | |
93 | + | func withdraw (E) = { | |
94 | + | let v = m(E) | |
95 | + | let j = toBase58String(q.caller.bytes) | |
96 | + | let w = split(k(j), "_") | |
115 | 97 | let n = split(h(), "_") | |
116 | - | let | |
117 | - | let | |
118 | - | let | |
119 | - | let G = parseIntValue( | |
120 | - | let o = parseIntValue( | |
121 | - | let H = ( | |
122 | - | let I = if (( | |
123 | - | then ( | |
124 | - | else ((G * ((c - H) - | |
125 | - | if ((0 > | |
98 | + | let t = lastBlock.height | |
99 | + | let F = parseIntValue(w[4]) | |
100 | + | let u = parseIntValue(w[2]) | |
101 | + | let G = parseIntValue(w[3]) | |
102 | + | let o = parseIntValue(w[11]) | |
103 | + | let H = (F + c) | |
104 | + | let I = if ((t >= H)) | |
105 | + | then (u + o) | |
106 | + | else ((G * ((c - H) - t)) + o) | |
107 | + | if ((0 > v)) | |
126 | 108 | then throw("Can't withdraw negative amount") | |
127 | - | else if ((o >= | |
128 | - | then [StringEntry("statistic", makeString([n[0], n[1], n[2], toString((parseIntValue(n[3]) + 1)), n[4], n[5], toString((parseIntValue(n[6]) + | |
129 | - | else if ((0 > (I - | |
130 | - | then throw(((((((((((((((("Not enough balance: m" + toString(I)) + " / y") + toString( | |
109 | + | else if ((o >= v)) | |
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 | + | else if ((0 > (I - v))) | |
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))) | |
131 | 113 | else { | |
132 | - | let J = (( | |
133 | - | [StringEntry("statistic", makeString([n[0], n[1], toString(((parseIntValue(n[2]) + | |
114 | + | let J = ((u + o) - v) | |
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)] | |
134 | 116 | } | |
135 | 117 | } | |
136 | 118 | ||
137 | 119 | ||
138 | 120 | @Verifier(K) | |
139 | 121 | func L () = { | |
140 | 122 | let i = K | |
141 | 123 | if ($isInstanceOf(i, "SetScriptTransaction")) | |
142 | 124 | then { | |
143 | 125 | let G = i | |
144 | 126 | sigVerify(K.bodyBytes, K.proofs[0], a) | |
145 | 127 | } | |
146 | 128 | else true | |
147 | 129 | } | |
148 | 130 |
github/deemru/w8io/169f3d6 466.50 ms ◑