tx · G89ozM5oMdzQVFmVCeZfciDrGBswoSB3gpk2jssadzfi 3N3wgpZuw6MWRgf7XouSYL26EZSHCBYKgd6: -0.10000000 Waves 2020.04.02 05:43 [935946] smart account 3N3wgpZuw6MWRgf7XouSYL26EZSHCBYKgd6 > SELF 0.00000000 Waves
{ "type": 13, "id": "G89ozM5oMdzQVFmVCeZfciDrGBswoSB3gpk2jssadzfi", "fee": 10000000, "feeAssetId": null, "timestamp": 1585795438022, "version": 1, "sender": "3N3wgpZuw6MWRgf7XouSYL26EZSHCBYKgd6", "senderPublicKey": "9ZPbyU1ZXeXBHtwUPjdeVo3xNdu7TqRN7S81nrZznxs3", "proofs": [ "4rayWbcFQWZL5xmsmrBfQvqtYRAWbsqYo8jxmRAf4xkjbN9rp8GK9DEgVgQ6WYfV8EDK2nR2xraVJyLmNELVYSL5" ], "script": "base64:AAIDAAAAAAAAABIIARIDCgEIEgcKBQEBAQEBEgAAAAAZAQAAABZjb252ZXJ0V2F2ZXNUb05ldXRyaW5vAAAAAgAAAAZhbW91bnQAAAAFcHJpY2UJAABrAAAAAwkAAGsAAAADBQAAAAZhbW91bnQFAAAABXByaWNlAAAAAAAAAABkAAAAAAAAD0JAAAAAAAAF9eEAAQAAAA5nZXRTdHJpbmdCeUtleQAAAAEAAAADa2V5BAAAAAckbWF0Y2gwCQAEHQAAAAIFAAAABHRoaXMFAAAAA2tleQMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAGU3RyaW5nBAAAAAFhBQAAAAckbWF0Y2gwBQAAAAFhAgAAAAABAAAAGGdldE51bWJlckJ5QWRkcmVzc0FuZEtleQAAAAIAAAAHYWRkcmVzcwAAAANrZXkEAAAAByRtYXRjaDAJAAQaAAAAAgkBAAAAHEBleHRyVXNlcihhZGRyZXNzRnJvbVN0cmluZykAAAABBQAAAAdhZGRyZXNzBQAAAANrZXkDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAA0ludAQAAAABYQUAAAAHJG1hdGNoMAUAAAABYQAA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hMQAAAAAAAAAAAgUAAAADbmlsAAAAAFVEkfI=", "chainId": 84, "height": 935946, "spentComplexity": 0 } View: original | compacted Prev: GSixjZM77jD9t73PGiGGDBwjzCF9F7UB2yJvVsCzyTTu Next: CZxQS9EYmdhF62s7WanLMejjGT24du9nwiE4oyhP3uvT Full:
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 3 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | - | func a (b) = { | |
5 | - | let c = getInteger(this, b) | |
6 | - | if ($isInstanceOf(c, "Int")) | |
4 | + | func a (b,c) = fraction(fraction(b, c, 100), 1000000, 100000000) | |
5 | + | ||
6 | + | ||
7 | + | func d (e) = { | |
8 | + | let f = getString(this, e) | |
9 | + | if ($isInstanceOf(f, "String")) | |
7 | 10 | then { | |
8 | - | let d = c | |
9 | - | d | |
11 | + | let g = f | |
12 | + | g | |
13 | + | } | |
14 | + | else "" | |
15 | + | } | |
16 | + | ||
17 | + | ||
18 | + | func h (i,e) = { | |
19 | + | let f = getInteger(addressFromStringValue(i), e) | |
20 | + | if ($isInstanceOf(f, "Int")) | |
21 | + | then { | |
22 | + | let g = f | |
23 | + | g | |
10 | 24 | } | |
11 | 25 | else 0 | |
12 | 26 | } | |
13 | 27 | ||
14 | 28 | ||
15 | - | func | |
16 | - | let | |
17 | - | if ($isInstanceOf( | |
29 | + | func j (k,l) = { | |
30 | + | let f = getInteger(addressFromPublicKey(k), ("price_" + toString(l))) | |
31 | + | if ($isInstanceOf(f, "Int")) | |
18 | 32 | then { | |
19 | - | let d = c | |
20 | - | d | |
33 | + | let g = f | |
34 | + | g | |
35 | + | } | |
36 | + | else 0 | |
37 | + | } | |
38 | + | ||
39 | + | ||
40 | + | func m (e) = { | |
41 | + | let f = getInteger(this, e) | |
42 | + | if ($isInstanceOf(f, "Int")) | |
43 | + | then { | |
44 | + | let g = f | |
45 | + | g | |
46 | + | } | |
47 | + | else 0 | |
48 | + | } | |
49 | + | ||
50 | + | ||
51 | + | func n (i,e) = { | |
52 | + | let f = getString(i, e) | |
53 | + | if ($isInstanceOf(f, "String")) | |
54 | + | then { | |
55 | + | let g = f | |
56 | + | g | |
21 | 57 | } | |
22 | 58 | else "" | |
23 | 59 | } | |
24 | 60 | ||
25 | 61 | ||
26 | - | func f (g,b) = { | |
27 | - | let c = getBoolean(g, b) | |
28 | - | if ($isInstanceOf(c, "Boolean")) | |
62 | + | func o (p,q) = { | |
63 | + | let r = split(p, q) | |
64 | + | if ((take(r[1], 1) == ",")) | |
65 | + | then (r[0] + drop(r[1], 1)) | |
66 | + | else (dropRight(r[0], 1) + r[1]) | |
67 | + | } | |
68 | + | ||
69 | + | ||
70 | + | func s (t) = split(t, ",") | |
71 | + | ||
72 | + | ||
73 | + | let c = { | |
74 | + | let f = getInteger(this, "price") | |
75 | + | if ($isInstanceOf(f, "Int")) | |
29 | 76 | then { | |
30 | - | let d = c | |
31 | - | d | |
77 | + | let g = f | |
78 | + | g | |
79 | + | } | |
80 | + | else 0 | |
81 | + | } | |
82 | + | ||
83 | + | let u = { | |
84 | + | let f = getInteger(this, "price_index") | |
85 | + | if ($isInstanceOf(f, "Int")) | |
86 | + | then { | |
87 | + | let g = f | |
88 | + | g | |
89 | + | } | |
90 | + | else 0 | |
91 | + | } | |
92 | + | ||
93 | + | let v = { | |
94 | + | let f = getBoolean(this, "is_blocked") | |
95 | + | if ($isInstanceOf(f, "Boolean")) | |
96 | + | then { | |
97 | + | let g = f | |
98 | + | g | |
32 | 99 | } | |
33 | 100 | else false | |
34 | 101 | } | |
35 | 102 | ||
103 | + | let w = 7 | |
36 | 104 | ||
37 | - | func h (g,b) = { | |
38 | - | let c = getString(g, b) | |
39 | - | if ($isInstanceOf(c, "String")) | |
105 | + | let x = d("oracles") | |
106 | + | ||
107 | + | let y = s(x) | |
108 | + | ||
109 | + | let z = 4 | |
110 | + | ||
111 | + | let A = addressFromPublicKey(fromBase58String("J4hU7VqLs2JAJXwFnjicQ97XShyZEqt8REC8fJHkTdKd")) | |
112 | + | ||
113 | + | let B = addressFromPublicKey(fromBase58String("HDqeggkNi96GMzyGv4AQMQms43nwSrvgMjTDznyivt8R")) | |
114 | + | ||
115 | + | let C = fromBase58String("EyizrdEpB9yuh45Zv3f2UfxKLjcecrmvcq5DSP9fEwum") | |
116 | + | ||
117 | + | let D = { | |
118 | + | let f = getInteger(A, "balance_lock_neutrino") | |
119 | + | if ($isInstanceOf(f, "Int")) | |
40 | 120 | then { | |
41 | - | let d = c | |
42 | - | d | |
43 | - | } | |
44 | - | else "" | |
45 | - | } | |
46 | - | ||
47 | - | ||
48 | - | func i (g,b) = { | |
49 | - | let c = getInteger(g, b) | |
50 | - | if ($isInstanceOf(c, "Int")) | |
51 | - | then { | |
52 | - | let d = c | |
53 | - | d | |
121 | + | let g = f | |
122 | + | g | |
54 | 123 | } | |
55 | 124 | else 0 | |
56 | 125 | } | |
57 | 126 | ||
127 | + | let E = { | |
128 | + | let f = getInteger(A, "balance_lock_waves") | |
129 | + | if ($isInstanceOf(f, "Int")) | |
130 | + | then { | |
131 | + | let g = f | |
132 | + | g | |
133 | + | } | |
134 | + | else 0 | |
135 | + | } | |
58 | 136 | ||
59 | - | let | |
137 | + | let F = (wavesBalance(A) - E) | |
60 | 138 | ||
61 | - | let | |
139 | + | let G = (((D + extract(assetInfo(C)).quantity) - assetBalance(A, C)) - assetBalance(B, C)) | |
62 | 140 | ||
63 | - | let | |
141 | + | let H = (G - a(F, c)) | |
64 | 142 | ||
65 | - | let m = (10 * j) | |
66 | - | ||
67 | - | let n = 100 | |
68 | - | ||
69 | - | let o = "canceled" | |
70 | - | ||
71 | - | let p = "new" | |
72 | - | ||
73 | - | let q = "filled" | |
74 | - | ||
75 | - | let r = "neutrino_contract" | |
76 | - | ||
77 | - | let s = "price" | |
78 | - | ||
79 | - | let t = "bond_asset_id" | |
80 | - | ||
81 | - | let u = "neutrino_asset_id" | |
82 | - | ||
83 | - | let v = "control_contract" | |
84 | - | ||
85 | - | let w = "balance_lock_" | |
86 | - | ||
87 | - | let x = (w + "waves") | |
88 | - | ||
89 | - | let y = (w + "neutrino") | |
90 | - | ||
91 | - | let z = "liquidation_contract" | |
92 | - | ||
93 | - | let A = "order_first" | |
94 | - | ||
95 | - | func B (C) = ("debug_order_roi_" + C) | |
143 | + | func I (J) = { | |
144 | + | let K = 90 | |
145 | + | let L = 110 | |
146 | + | let M = J[0] | |
147 | + | let N = if ((0 >= J[0])) | |
148 | + | then [0] | |
149 | + | else { | |
150 | + | let O = ((J[1] * 100) / M) | |
151 | + | let P = ((J[2] * 100) / M) | |
152 | + | let Q = ((J[3] * 100) / M) | |
153 | + | let R = ((J[4] * 100) / M) | |
154 | + | let S = if (if ((L > O)) | |
155 | + | then (O > K) | |
156 | + | else false) | |
157 | + | then [1, 0] | |
158 | + | else [0] | |
159 | + | let T = if (if ((L > P)) | |
160 | + | then (P > K) | |
161 | + | else false) | |
162 | + | then 2 :: S | |
163 | + | else S | |
164 | + | let U = if (if ((L > Q)) | |
165 | + | then (Q > K) | |
166 | + | else false) | |
167 | + | then 3 :: T | |
168 | + | else T | |
169 | + | if (if ((L > R)) | |
170 | + | then (R > K) | |
171 | + | else false) | |
172 | + | then 4 :: U | |
173 | + | else U | |
174 | + | } | |
175 | + | let V = if ((size(N) >= 3)) | |
176 | + | then N | |
177 | + | else { | |
178 | + | let W = J[1] | |
179 | + | if ((0 >= W)) | |
180 | + | then [1] | |
181 | + | else { | |
182 | + | let X = ((J[0] * 100) / W) | |
183 | + | let Y = ((J[2] * 100) / W) | |
184 | + | let Z = ((J[3] * 100) / W) | |
185 | + | let aa = ((J[4] * 100) / W) | |
186 | + | let S = if (if ((L > X)) | |
187 | + | then (X > K) | |
188 | + | else false) | |
189 | + | then [0, 1] | |
190 | + | else [1] | |
191 | + | let T = if (if ((L > Y)) | |
192 | + | then (Y > K) | |
193 | + | else false) | |
194 | + | then 2 :: S | |
195 | + | else S | |
196 | + | let U = if (if ((L > Z)) | |
197 | + | then (Z > K) | |
198 | + | else false) | |
199 | + | then 3 :: T | |
200 | + | else T | |
201 | + | if (if ((L > aa)) | |
202 | + | then (aa > K) | |
203 | + | else false) | |
204 | + | then 4 :: U | |
205 | + | else U | |
206 | + | } | |
207 | + | } | |
208 | + | let ab = if ((size(V) >= 3)) | |
209 | + | then V | |
210 | + | else { | |
211 | + | let ac = J[2] | |
212 | + | if ((0 >= ac)) | |
213 | + | then [2] | |
214 | + | else { | |
215 | + | let ad = ((J[0] * 100) / ac) | |
216 | + | let ae = ((J[1] * 100) / ac) | |
217 | + | let af = ((J[3] * 100) / ac) | |
218 | + | let ag = ((J[4] * 100) / ac) | |
219 | + | let S = if (if ((L > ad)) | |
220 | + | then (ad > K) | |
221 | + | else false) | |
222 | + | then [0, 2] | |
223 | + | else [2] | |
224 | + | let T = if (if ((L > ae)) | |
225 | + | then (ae > K) | |
226 | + | else false) | |
227 | + | then 1 :: S | |
228 | + | else S | |
229 | + | let U = if (if ((L > af)) | |
230 | + | then (af > K) | |
231 | + | else false) | |
232 | + | then 3 :: T | |
233 | + | else T | |
234 | + | if (if ((L > ag)) | |
235 | + | then (ag > K) | |
236 | + | else false) | |
237 | + | then 4 :: U | |
238 | + | else U | |
239 | + | } | |
240 | + | } | |
241 | + | let ah = if ((size(ab) >= 3)) | |
242 | + | then ab | |
243 | + | else { | |
244 | + | let ai = J[3] | |
245 | + | if ((0 >= ai)) | |
246 | + | then [3] | |
247 | + | else { | |
248 | + | let aj = ((J[0] * 100) / ai) | |
249 | + | let ak = ((J[1] * 100) / ai) | |
250 | + | let al = ((J[2] * 100) / ai) | |
251 | + | let am = ((J[4] * 100) / ai) | |
252 | + | let S = if (if ((L > aj)) | |
253 | + | then (aj > K) | |
254 | + | else false) | |
255 | + | then [0, 3] | |
256 | + | else [3] | |
257 | + | let T = if (if ((L > ak)) | |
258 | + | then (ak > K) | |
259 | + | else false) | |
260 | + | then 1 :: S | |
261 | + | else S | |
262 | + | let U = if (if ((L > al)) | |
263 | + | then (al > K) | |
264 | + | else false) | |
265 | + | then 2 :: T | |
266 | + | else T | |
267 | + | if (if ((L > am)) | |
268 | + | then (am > K) | |
269 | + | else false) | |
270 | + | then 4 :: U | |
271 | + | else U | |
272 | + | } | |
273 | + | } | |
274 | + | if ((size(ah) >= 3)) | |
275 | + | then ah | |
276 | + | else { | |
277 | + | let an = J[4] | |
278 | + | if ((0 >= an)) | |
279 | + | then [4] | |
280 | + | else { | |
281 | + | let ao = ((J[0] * 100) / an) | |
282 | + | let ap = ((J[1] * 100) / an) | |
283 | + | let aq = ((J[2] * 100) / an) | |
284 | + | let ar = ((J[3] * 100) / an) | |
285 | + | let S = if (if ((L > ao)) | |
286 | + | then (ao > K) | |
287 | + | else false) | |
288 | + | then [0, 4] | |
289 | + | else [4] | |
290 | + | let T = if (if ((L > ap)) | |
291 | + | then (ap > K) | |
292 | + | else false) | |
293 | + | then 1 :: S | |
294 | + | else S | |
295 | + | let U = if (if ((L > aq)) | |
296 | + | then (aq > K) | |
297 | + | else false) | |
298 | + | then 2 :: T | |
299 | + | else T | |
300 | + | if (if ((L > ar)) | |
301 | + | then (ar > K) | |
302 | + | else false) | |
303 | + | then 3 :: U | |
304 | + | else U | |
305 | + | } | |
306 | + | } | |
307 | + | } | |
96 | 308 | ||
97 | 309 | ||
98 | - | func | |
310 | + | func as (c,l) = toBytes((((("WAVESNEUTRINOPREFIX" + "_") + toString(l)) + "_") + toString(c))) | |
99 | 311 | ||
100 | 312 | ||
101 | - | func E (C) = ("order_total_" + C) | |
313 | + | @Callable(at) | |
314 | + | func callEmergencyShutdown (au) = { | |
315 | + | let av = "3Mwho43kPZa9w1y91NJsAoYxgQpsg3JjGby" | |
316 | + | let aw = toString(at.caller) | |
317 | + | if ((av != aw)) | |
318 | + | then throw("caller must be one an emergency oracle") | |
319 | + | else WriteSet([DataEntry("is_blocked", true), DataEntry("is_blocked_caller", aw), DataEntry("is_blocked_reason", au)]) | |
320 | + | } | |
102 | 321 | ||
103 | 322 | ||
104 | - | func F (C) = ("order_owner_" + C) | |
323 | + | ||
324 | + | @Callable(at) | |
325 | + | func finalizeCurrentPrice (ax,ay,az,aA,aB) = if (v) | |
326 | + | then throw("contract is blocked by EMERGENCY SHUTDOWN actions untill reactivation by emergency oracles") | |
327 | + | else if (({ | |
328 | + | let f = getInteger(this, ("price_" + toString(height))) | |
329 | + | if ($isInstanceOf(f, "Int")) | |
330 | + | then { | |
331 | + | let g = f | |
332 | + | g | |
333 | + | } | |
334 | + | else 0 | |
335 | + | } != 0)) | |
336 | + | then throw("wait next block") | |
337 | + | else { | |
338 | + | let J = [if ((ax > 0)) | |
339 | + | then ax | |
340 | + | else 0, if ((ay > 0)) | |
341 | + | then ay | |
342 | + | else 0, if ((az > 0)) | |
343 | + | then az | |
344 | + | else 0, if ((aA > 0)) | |
345 | + | then aA | |
346 | + | else 0, if ((aB > 0)) | |
347 | + | then aB | |
348 | + | else 0] | |
349 | + | if (((1 + 1) > 3)) | |
350 | + | then throw("running here!") | |
351 | + | else { | |
352 | + | let aC = I(J) | |
353 | + | let aD = size(aC) | |
354 | + | if ((3 > aD)) | |
355 | + | then throw(((((((((((((((((((((("Could not finalize price because of big variation: height=" + toString(height)) + " | |
356 | + | ") + y[0]) + "=") + toString(J[0])) + " | |
357 | + | ") + y[1]) + "=") + toString(J[1])) + " | |
358 | + | ") + y[2]) + "=") + toString(J[2])) + " | |
359 | + | ") + y[3]) + "=") + toString(J[3])) + " | |
360 | + | ") + y[4]) + "=") + toString(J[4]))) | |
361 | + | else { | |
362 | + | let aE = ((J[aC[0]] + J[aC[1]]) + J[aC[2]]) | |
363 | + | let aF = if ((aD >= 4)) | |
364 | + | then (aE + J[aC[3]]) | |
365 | + | else aE | |
366 | + | let aG = if ((aD >= 5)) | |
367 | + | then (aF + J[aC[4]]) | |
368 | + | else aF | |
369 | + | if ((aD >= 6)) | |
370 | + | then throw("Invalid pricesInRange creation") | |
371 | + | else { | |
372 | + | let aH = (aG / aD) | |
373 | + | if (if ((aH >= (c + ((c * w) / 100)))) | |
374 | + | then true | |
375 | + | else ((c - ((c * w) / 100)) >= aH)) | |
376 | + | then WriteSet([DataEntry("is_blocked", true), DataEntry((("black_swarm_price" + "_") + toString(height)), aH)]) | |
377 | + | else { | |
378 | + | let aI = (u + 1) | |
379 | + | WriteSet([DataEntry("price", aH), DataEntry(("price_" + toString(height)), aH), DataEntry("price_index", aI), DataEntry(("price_index_" + toString(aI)), height), DataEntry(("deficit_" + toString(height)), H), DataEntry(("neutrinoSupply_" + toString(height)), G), DataEntry(("deficit_percent_" + toString(height)), if ((G != 0)) | |
380 | + | then ((H * 100) / G) | |
381 | + | else 0)]) | |
382 | + | } | |
383 | + | } | |
384 | + | } | |
385 | + | } | |
386 | + | } | |
105 | 387 | ||
106 | 388 | ||
107 | - | func G (C) = ("order_height_" + C) | |
108 | 389 | ||
109 | - | ||
110 | - | func H (C) = ("order_status_" + C) | |
111 | - | ||
112 | - | ||
113 | - | func I (C) = ("order_filled_total_" + C) | |
114 | - | ||
115 | - | ||
116 | - | func J (C) = ("order_prev_" + C) | |
117 | - | ||
118 | - | ||
119 | - | func K (C) = ("order_next_" + C) | |
120 | - | ||
121 | - | ||
122 | - | func L (M,N) = fraction(fraction(M, 100, N), j, k) | |
123 | - | ||
124 | - | ||
125 | - | func O (M,N) = fraction(fraction(M, N, 100), k, j) | |
126 | - | ||
127 | - | ||
128 | - | func P (M,N) = O(M, N) | |
129 | - | ||
130 | - | ||
131 | - | func Q (M,N) = L(M, N) | |
132 | - | ||
133 | - | ||
134 | - | let R = addressFromStringValue("3PC9BfRwJWWiw9AREE2B3eWzCks3CYtg4yo") | |
135 | - | ||
136 | - | let S = addressFromStringValue("3P5Bfd58PPfNvBM2Hy8QfbcDqMeNtzg7KfP") | |
137 | - | ||
138 | - | let T = addressFromStringValue("3P4PCxsJqMzQBALo8zANHtBDZRRquobHQp7") | |
139 | - | ||
140 | - | let U = fromBase58String("DG2xFkPdDwKUoBkzGAhQtLpSGzfXLiCYPEzeKH2Ad24p") | |
141 | - | ||
142 | - | let V = fromBase58String("6nSpVyNH7yM69eg446wrQR94ipbbcmZMU1ENPwanC97g") | |
143 | - | ||
144 | - | let W = f(S, "is_blocked") | |
145 | - | ||
146 | - | let X = i(S, s) | |
147 | - | ||
148 | - | let Y = i(R, y) | |
149 | - | ||
150 | - | let Z = (wavesBalance(R) - i(R, x)) | |
151 | - | ||
152 | - | let aa = (((Y + extract(assetInfo(U)).quantity) - assetBalance(R, U)) - assetBalance(T, U)) | |
153 | - | ||
154 | - | let ab = (aa - O(Z, X)) | |
155 | - | ||
156 | - | let ac = e(A) | |
157 | - | ||
158 | - | func ad (ae) = a(D(ae)) | |
159 | - | ||
160 | - | ||
161 | - | func af (ae) = a(E(ae)) | |
162 | - | ||
163 | - | ||
164 | - | func ag (ae) = e(F(ae)) | |
165 | - | ||
166 | - | ||
167 | - | func ah (ae) = e(H(ae)) | |
168 | - | ||
169 | - | ||
170 | - | func ai (ae) = a(I(ae)) | |
171 | - | ||
172 | - | ||
173 | - | func aj (ae) = e(J(ae)) | |
174 | - | ||
175 | - | ||
176 | - | func ak (ae) = e(K(ae)) | |
177 | - | ||
178 | - | ||
179 | - | @Callable(al) | |
180 | - | func sellBond (am) = { | |
181 | - | let an = assetBalance(this, V) | |
182 | - | let ao = if ((0 >= ab)) | |
183 | - | then 0 | |
184 | - | else ab | |
185 | - | let ap = if ((ao >= an)) | |
186 | - | then an | |
187 | - | else ao | |
188 | - | let aq = if ((ao >= an)) | |
189 | - | then 0 | |
190 | - | else (an - ao) | |
191 | - | WriteSet([DataEntry(A, am), DataEntry(H(ac), (am + "zzz"))]) | |
192 | - | } | |
390 | + | @Callable(at) | |
391 | + | func finalizeCurrentPrice1 () = if ((1 > 4)) | |
392 | + | then throw("") | |
393 | + | else { | |
394 | + | let aI = (u + 1) | |
395 | + | WriteSet([DataEntry("data1", 100), DataEntry("price_", (m("data1") * 2))]) | |
396 | + | } | |
193 | 397 | ||
194 | 398 |
github/deemru/w8io/169f3d6 48.28 ms ◑