tx · FpjCia3TtTmjJ15jTFBupDyTMoH4sLpCFcKuvGCi2MxX
3N17A1zqJZ1R2dZtMvyChQwSzepRZ1d98t9: -0.01400000 Waves
2019.11.26 00:09 [781310] smart account 3N17A1zqJZ1R2dZtMvyChQwSzepRZ1d98t9 > SELF 0.00000000 Waves
{
"type": 13,
"id": "FpjCia3TtTmjJ15jTFBupDyTMoH4sLpCFcKuvGCi2MxX",
"fee": 1400000,
"feeAssetId": null,
"timestamp": 1574716145451,
"version": 1,
"sender": "3N17A1zqJZ1R2dZtMvyChQwSzepRZ1d98t9",
"senderPublicKey": "AXt3aNDevk6MRY2RVvB3HzC5FgWDoMFZ4EuW9kHN9VpW",
"proofs": [
"BPvMYaPxDibtLpPXDyag9QCDYeyHZfGqR9DV9remR8R1xsKzu334BBsgMwnVyTk6kopN7A5EdPZStgRTSYv8HfX"
],
"script": "base64:AAIDAAAAAAAAAAkIARIFCgMICAgAAAAFAQAAAAZwYXlyZWYAAAAEAAAAAmxkAAAABHVzZXIAAAAFcmVmZXIAAAAGcmVmc3VtBAAAAANsZGUIBQAAAAJsZAAAAARkYXRhBAAAAAdpc3JlZmVyBAAAAAckbWF0Y2gwCQAEHQAAAAIFAAAABHRoaXMJAAEsAAAAAgIAAAAEcmVmXwUAAAAEdXNlcgMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAGU3RyaW5nBAAAAAFhBQAAAAckbWF0Y2gwBQAAAAFhAgAAAAADCQAAAAAAAAIFAAAAB2lzcmVmZXICAAAAAAQAAAAHbGFzdGJhbAQAAAAHJG1hdGNoMAkABBoAAAACBQAAAAR0aGlzCQABLAAAAAICAAAAB3dhbGxldF8FAAAABXJlZmVyAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAANJbnQEAAAAAWEFAAAAByRtYXRjaDAFAAAAAWEAAAAAAAAAAAAEAAAACmxhc3RyZWZiYWwEAAAAByRtYXRjaDAJAAQaAAAAAgUAAAAEdGhpcwkAASwAAAACAgAAAAdyZWZwYX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nBheW1lbnQJAABoAAAAAgkAAGgAAAACBQAAAAlwYXl0aWNrZXQAAAAAAAAAAAoFAAAAAXgEAAAABGRzbDUJAQAAAAZwYXlyZWYAAAAEBQAAAARkc2w0BQAAAAR1c2VyBQAAAAVyZWZlcgUAAAAKcmVmcGF5bWVudAUAAAAEZHNsNQAAAAAOIUoa",
"chainId": 84,
"height": 781310,
"spentComplexity": 0
}
View: original | compacted
Prev: 8esqGdozpuPopFTCHVB5ffSe2jJQXrHJyP1RhgXjqwqS
Next: E99CVQApqSGgBbVHoHHNJWkcxEKEStWU5kjz5bjJoSp1
Diff:
Old | New | | Differences |
---|
32 | 32 | | } |
---|
33 | 33 | | else 0 |
---|
34 | 34 | | } |
---|
35 | | - | let l = DataEntry(("wallet_" + d), (j + e)) :: f |
---|
36 | | - | let m = DataEntry(("refpay_" + d), (k + e)) :: l |
---|
37 | | - | let n = WriteSet(m) |
---|
38 | | - | n |
---|
| 35 | + | let l = { |
---|
| 36 | + | let h = getInteger(this, ((("refpay_" + d) + "_") + c)) |
---|
| 37 | + | if ($isInstanceOf(h, "Int")) |
---|
| 38 | + | then { |
---|
| 39 | + | let i = h |
---|
| 40 | + | i |
---|
| 41 | + | } |
---|
| 42 | + | else 0 |
---|
| 43 | + | } |
---|
| 44 | + | let m = DataEntry(("wallet_" + d), (j + e)) :: f |
---|
| 45 | + | let n = DataEntry(("refpay_" + d), (k + e)) :: m |
---|
| 46 | + | let o = DataEntry(((("refpay_" + d) + "_") + c), (l + e)) :: n |
---|
| 47 | + | let p = WriteSet(o) |
---|
| 48 | + | p |
---|
39 | 49 | | } |
---|
40 | 50 | | else { |
---|
41 | | - | let o = { |
---|
| 51 | + | let q = { |
---|
42 | 52 | | let h = getInteger(this, ("wallet_" + g)) |
---|
43 | 53 | | if ($isInstanceOf(h, "Int")) |
---|
44 | 54 | | then { |
---|
|
47 | 57 | | } |
---|
48 | 58 | | else 0 |
---|
49 | 59 | | } |
---|
50 | | - | let p = { |
---|
| 60 | + | let r = { |
---|
51 | 61 | | let h = getInteger(this, ("refpay_" + g)) |
---|
52 | 62 | | if ($isInstanceOf(h, "Int")) |
---|
53 | 63 | | then { |
---|
|
56 | 66 | | } |
---|
57 | 67 | | else 0 |
---|
58 | 68 | | } |
---|
59 | | - | let q = DataEntry(("wallet_" + g), (o + e)) :: f |
---|
60 | | - | let r = DataEntry(("refpay_" + g), (p + e)) :: q |
---|
61 | | - | let s = WriteSet(r) |
---|
62 | | - | s |
---|
| 69 | + | let s = { |
---|
| 70 | + | let h = getInteger(this, ((("refpay_" + g) + "_") + c)) |
---|
| 71 | + | if ($isInstanceOf(h, "Int")) |
---|
| 72 | + | then { |
---|
| 73 | + | let i = h |
---|
| 74 | + | i |
---|
| 75 | + | } |
---|
| 76 | + | else 0 |
---|
| 77 | + | } |
---|
| 78 | + | let t = DataEntry(("wallet_" + g), (q + e)) :: f |
---|
| 79 | + | let u = DataEntry(("refpay_" + g), (r + e)) :: t |
---|
| 80 | + | let o = DataEntry(((("refpay_" + g) + "_") + c), (s + e)) :: u |
---|
| 81 | + | let v = WriteSet(o) |
---|
| 82 | + | v |
---|
63 | 83 | | } |
---|
64 | 84 | | } |
---|
65 | 85 | | |
---|
66 | 86 | | |
---|
67 | | - | func t (b,c,d) = { |
---|
| 87 | + | func w (b,c,d) = { |
---|
68 | 88 | | let f = b.data |
---|
69 | 89 | | let g = { |
---|
70 | 90 | | let h = getString(this, ("ref_" + c)) |
---|
|
77 | 97 | | } |
---|
78 | 98 | | if ((g == "")) |
---|
79 | 99 | | then { |
---|
80 | | - | let l = DataEntry(("ref_" + c), d) :: f |
---|
81 | | - | let m = DataEntry(("refer_" + d), c) :: l |
---|
82 | | - | let n = WriteSet(m) |
---|
83 | | - | n |
---|
| 100 | + | let m = DataEntry(("ref_" + c), d) :: f |
---|
| 101 | + | let n = DataEntry(((("refer_" + d) + "_") + c), c) :: m |
---|
| 102 | + | let p = WriteSet(n) |
---|
| 103 | + | p |
---|
84 | 104 | | } |
---|
85 | 105 | | else b |
---|
86 | 106 | | } |
---|
87 | 107 | | |
---|
88 | 108 | | |
---|
89 | | - | func u (b,v) = { |
---|
| 109 | + | func x (b,y) = { |
---|
90 | 110 | | let f = b.data |
---|
91 | | - | let w = DataEntry("ticketcount", v) :: f |
---|
92 | | - | let x = WriteSet(w) |
---|
93 | | - | x |
---|
| 111 | + | let z = DataEntry("ticketcount", y) :: f |
---|
| 112 | + | let A = WriteSet(z) |
---|
| 113 | + | A |
---|
94 | 114 | | } |
---|
95 | 115 | | |
---|
96 | 116 | | |
---|
97 | | - | func y (b,z,A) = { |
---|
| 117 | + | func B (b,C,D,E) = { |
---|
98 | 118 | | let f = b.data |
---|
99 | | - | let B = DataEntry(z, A) :: f |
---|
100 | | - | let x = WriteSet(B) |
---|
101 | | - | x |
---|
| 119 | + | let F = DataEntry(C, ((D + ",") + E)) :: f |
---|
| 120 | + | let A = WriteSet(F) |
---|
| 121 | + | A |
---|
102 | 122 | | } |
---|
103 | 123 | | |
---|
104 | 124 | | |
---|
105 | | - | func C (b,D,E) = { |
---|
| 125 | + | func G (b,H,I) = { |
---|
106 | 126 | | let f = b.data |
---|
107 | | - | if ((D == 100)) |
---|
| 127 | + | if ((H == 100)) |
---|
108 | 128 | | then { |
---|
109 | | - | let B = DataEntry("numberofround", (E + 1)) :: f |
---|
110 | | - | let x = WriteSet(B) |
---|
111 | | - | x |
---|
| 129 | + | let F = DataEntry("numberofround", (I + 1)) :: f |
---|
| 130 | + | let A = WriteSet(F) |
---|
| 131 | + | A |
---|
112 | 132 | | } |
---|
113 | 133 | | else b |
---|
114 | 134 | | } |
---|
115 | 135 | | |
---|
116 | 136 | | |
---|
117 | | - | @Callable(F) |
---|
118 | | - | func playbingo (G,H,d) = { |
---|
119 | | - | let I = extract(F.payment) |
---|
120 | | - | let J = (value(I.amount) / 100000000) |
---|
121 | | - | let K = parseIntValue(H) |
---|
122 | | - | let L = (J * K) |
---|
123 | | - | if ((L > J)) |
---|
| 137 | + | @Callable(J) |
---|
| 138 | + | func playbingo (K,L,d) = { |
---|
| 139 | + | let M = extract(J.payment) |
---|
| 140 | + | let N = (value(M.amount) / 100000000) |
---|
| 141 | + | let O = parseIntValue(L) |
---|
| 142 | + | let P = (N * O) |
---|
| 143 | + | if ((P > N)) |
---|
124 | 144 | | then throw("Ticket price is 1 WAVES") |
---|
125 | 145 | | else { |
---|
126 | | - | let M = { |
---|
| 146 | + | let Q = { |
---|
127 | 147 | | let h = getInteger(this, "fondprize") |
---|
128 | 148 | | if ($isInstanceOf(h, "Int")) |
---|
129 | 149 | | then { |
---|
|
132 | 152 | | } |
---|
133 | 153 | | else 0 |
---|
134 | 154 | | } |
---|
135 | | - | let N = DataEntry("fondprize", (M + (L / 2))) |
---|
136 | | - | let l = WriteSet([N]) |
---|
137 | | - | let O = { |
---|
| 155 | + | let R = DataEntry("fondprize", (Q + (P / 2))) |
---|
| 156 | + | let m = WriteSet([R]) |
---|
| 157 | + | let S = { |
---|
138 | 158 | | let h = getInteger(this, "numberofround") |
---|
139 | 159 | | if ($isInstanceOf(h, "Int")) |
---|
140 | 160 | | then { |
---|
|
143 | 163 | | } |
---|
144 | 164 | | else 1 |
---|
145 | 165 | | } |
---|
146 | | - | let c = toString(F.caller) |
---|
147 | | - | let n = t(l, c, d) |
---|
148 | | - | let P = { |
---|
| 166 | + | let c = toString(J.caller) |
---|
| 167 | + | let p = w(m, c, d) |
---|
| 168 | + | let T = { |
---|
149 | 169 | | let h = getInteger(this, "ticketcount") |
---|
150 | 170 | | if ($isInstanceOf(h, "Int")) |
---|
151 | 171 | | then { |
---|
|
154 | 174 | | } |
---|
155 | 175 | | else 0 |
---|
156 | 176 | | } |
---|
157 | | - | let Q = (P + 1) |
---|
158 | | - | let q = u(n, Q) |
---|
159 | | - | let R = ((((("ticket_" + toString(O)) + "_") + toString(Q)) + "_") + c) |
---|
160 | | - | let s = y(q, R, G) |
---|
161 | | - | let S = C(s, Q, O) |
---|
162 | | - | let T = ((L * 10) * K) |
---|
163 | | - | let U = a(S, c, d, T) |
---|
164 | | - | U |
---|
| 177 | + | let U = (T + 1) |
---|
| 178 | + | let t = x(p, U) |
---|
| 179 | + | let V = ((((("ticket_" + toString(S)) + "_") + toString(U)) + "_") + c) |
---|
| 180 | + | let v = B(t, V, K, L) |
---|
| 181 | + | let W = G(v, U, S) |
---|
| 182 | + | let X = ((P * 10) * O) |
---|
| 183 | + | let Y = a(W, c, d, X) |
---|
| 184 | + | Y |
---|
165 | 185 | | } |
---|
166 | 186 | | } |
---|
167 | 187 | | |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 3 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | 4 | | func a (b,c,d,e) = { |
---|
5 | 5 | | let f = b.data |
---|
6 | 6 | | let g = { |
---|
7 | 7 | | let h = getString(this, ("ref_" + c)) |
---|
8 | 8 | | if ($isInstanceOf(h, "String")) |
---|
9 | 9 | | then { |
---|
10 | 10 | | let i = h |
---|
11 | 11 | | i |
---|
12 | 12 | | } |
---|
13 | 13 | | else "" |
---|
14 | 14 | | } |
---|
15 | 15 | | if ((g == "")) |
---|
16 | 16 | | then { |
---|
17 | 17 | | let j = { |
---|
18 | 18 | | let h = getInteger(this, ("wallet_" + d)) |
---|
19 | 19 | | if ($isInstanceOf(h, "Int")) |
---|
20 | 20 | | then { |
---|
21 | 21 | | let i = h |
---|
22 | 22 | | i |
---|
23 | 23 | | } |
---|
24 | 24 | | else 0 |
---|
25 | 25 | | } |
---|
26 | 26 | | let k = { |
---|
27 | 27 | | let h = getInteger(this, ("refpay_" + d)) |
---|
28 | 28 | | if ($isInstanceOf(h, "Int")) |
---|
29 | 29 | | then { |
---|
30 | 30 | | let i = h |
---|
31 | 31 | | i |
---|
32 | 32 | | } |
---|
33 | 33 | | else 0 |
---|
34 | 34 | | } |
---|
35 | | - | let l = DataEntry(("wallet_" + d), (j + e)) :: f |
---|
36 | | - | let m = DataEntry(("refpay_" + d), (k + e)) :: l |
---|
37 | | - | let n = WriteSet(m) |
---|
38 | | - | n |
---|
| 35 | + | let l = { |
---|
| 36 | + | let h = getInteger(this, ((("refpay_" + d) + "_") + c)) |
---|
| 37 | + | if ($isInstanceOf(h, "Int")) |
---|
| 38 | + | then { |
---|
| 39 | + | let i = h |
---|
| 40 | + | i |
---|
| 41 | + | } |
---|
| 42 | + | else 0 |
---|
| 43 | + | } |
---|
| 44 | + | let m = DataEntry(("wallet_" + d), (j + e)) :: f |
---|
| 45 | + | let n = DataEntry(("refpay_" + d), (k + e)) :: m |
---|
| 46 | + | let o = DataEntry(((("refpay_" + d) + "_") + c), (l + e)) :: n |
---|
| 47 | + | let p = WriteSet(o) |
---|
| 48 | + | p |
---|
39 | 49 | | } |
---|
40 | 50 | | else { |
---|
41 | | - | let o = { |
---|
| 51 | + | let q = { |
---|
42 | 52 | | let h = getInteger(this, ("wallet_" + g)) |
---|
43 | 53 | | if ($isInstanceOf(h, "Int")) |
---|
44 | 54 | | then { |
---|
45 | 55 | | let i = h |
---|
46 | 56 | | i |
---|
47 | 57 | | } |
---|
48 | 58 | | else 0 |
---|
49 | 59 | | } |
---|
50 | | - | let p = { |
---|
| 60 | + | let r = { |
---|
51 | 61 | | let h = getInteger(this, ("refpay_" + g)) |
---|
52 | 62 | | if ($isInstanceOf(h, "Int")) |
---|
53 | 63 | | then { |
---|
54 | 64 | | let i = h |
---|
55 | 65 | | i |
---|
56 | 66 | | } |
---|
57 | 67 | | else 0 |
---|
58 | 68 | | } |
---|
59 | | - | let q = DataEntry(("wallet_" + g), (o + e)) :: f |
---|
60 | | - | let r = DataEntry(("refpay_" + g), (p + e)) :: q |
---|
61 | | - | let s = WriteSet(r) |
---|
62 | | - | s |
---|
| 69 | + | let s = { |
---|
| 70 | + | let h = getInteger(this, ((("refpay_" + g) + "_") + c)) |
---|
| 71 | + | if ($isInstanceOf(h, "Int")) |
---|
| 72 | + | then { |
---|
| 73 | + | let i = h |
---|
| 74 | + | i |
---|
| 75 | + | } |
---|
| 76 | + | else 0 |
---|
| 77 | + | } |
---|
| 78 | + | let t = DataEntry(("wallet_" + g), (q + e)) :: f |
---|
| 79 | + | let u = DataEntry(("refpay_" + g), (r + e)) :: t |
---|
| 80 | + | let o = DataEntry(((("refpay_" + g) + "_") + c), (s + e)) :: u |
---|
| 81 | + | let v = WriteSet(o) |
---|
| 82 | + | v |
---|
63 | 83 | | } |
---|
64 | 84 | | } |
---|
65 | 85 | | |
---|
66 | 86 | | |
---|
67 | | - | func t (b,c,d) = { |
---|
| 87 | + | func w (b,c,d) = { |
---|
68 | 88 | | let f = b.data |
---|
69 | 89 | | let g = { |
---|
70 | 90 | | let h = getString(this, ("ref_" + c)) |
---|
71 | 91 | | if ($isInstanceOf(h, "String")) |
---|
72 | 92 | | then { |
---|
73 | 93 | | let i = h |
---|
74 | 94 | | i |
---|
75 | 95 | | } |
---|
76 | 96 | | else "" |
---|
77 | 97 | | } |
---|
78 | 98 | | if ((g == "")) |
---|
79 | 99 | | then { |
---|
80 | | - | let l = DataEntry(("ref_" + c), d) :: f |
---|
81 | | - | let m = DataEntry(("refer_" + d), c) :: l |
---|
82 | | - | let n = WriteSet(m) |
---|
83 | | - | n |
---|
| 100 | + | let m = DataEntry(("ref_" + c), d) :: f |
---|
| 101 | + | let n = DataEntry(((("refer_" + d) + "_") + c), c) :: m |
---|
| 102 | + | let p = WriteSet(n) |
---|
| 103 | + | p |
---|
84 | 104 | | } |
---|
85 | 105 | | else b |
---|
86 | 106 | | } |
---|
87 | 107 | | |
---|
88 | 108 | | |
---|
89 | | - | func u (b,v) = { |
---|
| 109 | + | func x (b,y) = { |
---|
90 | 110 | | let f = b.data |
---|
91 | | - | let w = DataEntry("ticketcount", v) :: f |
---|
92 | | - | let x = WriteSet(w) |
---|
93 | | - | x |
---|
| 111 | + | let z = DataEntry("ticketcount", y) :: f |
---|
| 112 | + | let A = WriteSet(z) |
---|
| 113 | + | A |
---|
94 | 114 | | } |
---|
95 | 115 | | |
---|
96 | 116 | | |
---|
97 | | - | func y (b,z,A) = { |
---|
| 117 | + | func B (b,C,D,E) = { |
---|
98 | 118 | | let f = b.data |
---|
99 | | - | let B = DataEntry(z, A) :: f |
---|
100 | | - | let x = WriteSet(B) |
---|
101 | | - | x |
---|
| 119 | + | let F = DataEntry(C, ((D + ",") + E)) :: f |
---|
| 120 | + | let A = WriteSet(F) |
---|
| 121 | + | A |
---|
102 | 122 | | } |
---|
103 | 123 | | |
---|
104 | 124 | | |
---|
105 | | - | func C (b,D,E) = { |
---|
| 125 | + | func G (b,H,I) = { |
---|
106 | 126 | | let f = b.data |
---|
107 | | - | if ((D == 100)) |
---|
| 127 | + | if ((H == 100)) |
---|
108 | 128 | | then { |
---|
109 | | - | let B = DataEntry("numberofround", (E + 1)) :: f |
---|
110 | | - | let x = WriteSet(B) |
---|
111 | | - | x |
---|
| 129 | + | let F = DataEntry("numberofround", (I + 1)) :: f |
---|
| 130 | + | let A = WriteSet(F) |
---|
| 131 | + | A |
---|
112 | 132 | | } |
---|
113 | 133 | | else b |
---|
114 | 134 | | } |
---|
115 | 135 | | |
---|
116 | 136 | | |
---|
117 | | - | @Callable(F) |
---|
118 | | - | func playbingo (G,H,d) = { |
---|
119 | | - | let I = extract(F.payment) |
---|
120 | | - | let J = (value(I.amount) / 100000000) |
---|
121 | | - | let K = parseIntValue(H) |
---|
122 | | - | let L = (J * K) |
---|
123 | | - | if ((L > J)) |
---|
| 137 | + | @Callable(J) |
---|
| 138 | + | func playbingo (K,L,d) = { |
---|
| 139 | + | let M = extract(J.payment) |
---|
| 140 | + | let N = (value(M.amount) / 100000000) |
---|
| 141 | + | let O = parseIntValue(L) |
---|
| 142 | + | let P = (N * O) |
---|
| 143 | + | if ((P > N)) |
---|
124 | 144 | | then throw("Ticket price is 1 WAVES") |
---|
125 | 145 | | else { |
---|
126 | | - | let M = { |
---|
| 146 | + | let Q = { |
---|
127 | 147 | | let h = getInteger(this, "fondprize") |
---|
128 | 148 | | if ($isInstanceOf(h, "Int")) |
---|
129 | 149 | | then { |
---|
130 | 150 | | let i = h |
---|
131 | 151 | | i |
---|
132 | 152 | | } |
---|
133 | 153 | | else 0 |
---|
134 | 154 | | } |
---|
135 | | - | let N = DataEntry("fondprize", (M + (L / 2))) |
---|
136 | | - | let l = WriteSet([N]) |
---|
137 | | - | let O = { |
---|
| 155 | + | let R = DataEntry("fondprize", (Q + (P / 2))) |
---|
| 156 | + | let m = WriteSet([R]) |
---|
| 157 | + | let S = { |
---|
138 | 158 | | let h = getInteger(this, "numberofround") |
---|
139 | 159 | | if ($isInstanceOf(h, "Int")) |
---|
140 | 160 | | then { |
---|
141 | 161 | | let i = h |
---|
142 | 162 | | i |
---|
143 | 163 | | } |
---|
144 | 164 | | else 1 |
---|
145 | 165 | | } |
---|
146 | | - | let c = toString(F.caller) |
---|
147 | | - | let n = t(l, c, d) |
---|
148 | | - | let P = { |
---|
| 166 | + | let c = toString(J.caller) |
---|
| 167 | + | let p = w(m, c, d) |
---|
| 168 | + | let T = { |
---|
149 | 169 | | let h = getInteger(this, "ticketcount") |
---|
150 | 170 | | if ($isInstanceOf(h, "Int")) |
---|
151 | 171 | | then { |
---|
152 | 172 | | let i = h |
---|
153 | 173 | | i |
---|
154 | 174 | | } |
---|
155 | 175 | | else 0 |
---|
156 | 176 | | } |
---|
157 | | - | let Q = (P + 1) |
---|
158 | | - | let q = u(n, Q) |
---|
159 | | - | let R = ((((("ticket_" + toString(O)) + "_") + toString(Q)) + "_") + c) |
---|
160 | | - | let s = y(q, R, G) |
---|
161 | | - | let S = C(s, Q, O) |
---|
162 | | - | let T = ((L * 10) * K) |
---|
163 | | - | let U = a(S, c, d, T) |
---|
164 | | - | U |
---|
| 177 | + | let U = (T + 1) |
---|
| 178 | + | let t = x(p, U) |
---|
| 179 | + | let V = ((((("ticket_" + toString(S)) + "_") + toString(U)) + "_") + c) |
---|
| 180 | + | let v = B(t, V, K, L) |
---|
| 181 | + | let W = G(v, U, S) |
---|
| 182 | + | let X = ((P * 10) * O) |
---|
| 183 | + | let Y = a(W, c, d, X) |
---|
| 184 | + | Y |
---|
165 | 185 | | } |
---|
166 | 186 | | } |
---|
167 | 187 | | |
---|
168 | 188 | | |
---|