tx · 8YruXzvMJUMaACb9ENtr36pAMdhGxPZC4uerGVt8rNDx 3NDCQyiA2gDuhSyA4J1ik69zNhLGfG6xr5g: -0.01400000 Waves 2021.05.12 14:33 [1522402] smart account 3NDCQyiA2gDuhSyA4J1ik69zNhLGfG6xr5g > SELF 0.00000000 Waves
{ "type": 13, "id": "8YruXzvMJUMaACb9ENtr36pAMdhGxPZC4uerGVt8rNDx", "fee": 1400000, "feeAssetId": null, "timestamp": 1620819201266, "version": 2, "chainId": 84, "sender": "3NDCQyiA2gDuhSyA4J1ik69zNhLGfG6xr5g", "senderPublicKey": "9voGZWtFHWiv3fytePgppGYLLiB3i6aFERAuU7kfps8c", "proofs": [ "VdkwkM4w3j3y3f8R4N5ibpEZhd94xzgB3kwzPvPh9hjPuURMpK64jT16cBLUChwDiyaf1T9iHUSBamWLUjeSrQo" ], "script": "base64:AAIEAAAAAAAAABsIAhIAEgQKAggIEgUKAwEEARIECgIBCBIAEgAAAAA7AAAAAAd2ZXJzaW9uAgAAAAUxLjAuMAAAAAAKa2V5VmVyc2lvbgIAAAAHdmVyc2lvbgAAAAAJa2V5QWN0aXZlAgAAAAZhY3RpdmUAAAAAEWtleU51bWJlck9mVm90aW5nAgAAAA1udW1iZXJfdm90aW5nAAAAAA9rZXlIZWlnaHRPZlBvb2wCAAAAB19oZWlnaHQAAAAABWtleU5vAgAAAANfbm8AAAAABmtleVllcwIAAAAEX3llcwAAAAARa2V5U3RhdHVzT2ZWb3RpbmcCAAAAB19zdGF0dXMAAAAAEWtleUFtb3VudE9mVm90aW5nAgAAAA1hbW91bnRfdm90aW5nAAAAABRrZXlNYXhBbW91bnRPZlZvdGluZwIAAAARbWF4X2Ftb3VudF92b3RpbmcAAAAAEWtleU1heERheU9mVm90aW5nAgAAAA5tYXhfZGF5X3ZvdGluZwAAAAANa2V5Q29tbWlzc2lvbgIAAAAKY29tbWlzc2lvbgAAAAAba2V5Q29tbWlzc2lvblNjYWxlRGVsaW1pdGVyAgAAABpjb21ta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p0aGUgY2F1c2Ugd2Fzbid0IHNwZWNpZmllZAMJAQAAAAEhAAAAAQkBAAAAD2NvbnRhaW5zRWxlbWVudAAAAAIJAARMAAAAAgUAAAAMYWRtaW5QdWJLZXkxCQAETAAAAAIFAAAADGFkbWluUHViS2V5MgkABEwAAAACBQAAAAxhZG1pblB1YktleTMJAARMAAAAAgUAAAAUYWRtaW5QdWJLZXlTdGFydFN0b3AFAAAAA25pbAgFAAAAAWkAAAAPY2FsbGVyUHVibGljS2V5CQAAAgAAAAECAAAAIU9ubHkgYWRtaW4gY2FuIGNhbGwgdGhpcyBmdW5jdGlvbgkBAAAAB3N1c3BlbmQAAAABAgAAAA9QYXVzZWQgYnkgYWRtaW4AAAABaQEAAAAIYWN0aXZhdGUAAAAAAwUAAAAIaXNBY3RpdmUJAAACAAAAAQIAAAAWREFwcCBpcyBhbHJlYWR5IGFjdGl2ZQMJAQAAAAEhAAAAAQkBAAAAD2NvbnRhaW5zRWxlbWVudAAAAAIJAARMAAAAAgUAAAAMYWRtaW5QdWJLZXkxCQAETAAAAAIFAAAADGFkbWluUHViS2V5MgkABEwAAAACBQAAAAxhZG1pblB1YktleTMJAARMAAAAAgUAAAAUYWRtaW5QdWJLZXlTdGFydFN0b3AFAAAAA25pbAgFAAAAAWkAAAAPY2FsbGVyUHVibGljS2V5CQAAAgAAAAECAAAAIU9ubHkgYWRtaW4gY2FuIGNhbGwgdGhpcyBmdW5jdGlvbgkABEwAAAACCQEAAAAMQm9vbGVhbkVudHJ5AAAAAgUAAAAJa2V5QWN0aXZlBgkABEwAAAACCQEAAAALRGVsZXRlRW50cnkAAAABBQAAAAhrZXlDYXVzZQUAAAADbmlsAAAAAQAAAAJ0eAEAAAAGdmVyaWZ5AAAAAAYhelc2", "height": 1522402, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 8YqVarAnxhhKzKQFHv9GYTouZdYASSwMUPKsLyBJ3zSU Next: 5BkQrxf5GK59pHfoQuDfYdrrVc86wB6ozCBYdTQWMV5M Diff:
Old | New | Differences | |
---|---|---|---|
221 | 221 | ||
222 | 222 | ||
223 | 223 | @Callable(aD) | |
224 | - | func init () = if ((aD.caller != this)) | |
225 | - | then throw("Only the DApp itself can call this function") | |
226 | - | else if (isDefined(getBoolean(this, c))) | |
227 | - | then throw("DApp is already active") | |
228 | - | else { | |
229 | - | let aE = 0 | |
230 | - | let aF = 0 | |
231 | - | let aG = true | |
232 | - | let aH = "" | |
224 | + | func init () = if (isDefined(getBoolean(this, c))) | |
225 | + | then throw("DApp is already active") | |
226 | + | else { | |
227 | + | let aE = 0 | |
228 | + | let aF = 0 | |
229 | + | let aG = true | |
230 | + | let aH = "" | |
233 | 231 | [StringEntry(b, a), BooleanEntry(c, aG), IntegerEntry(d, aE), IntegerEntry(i, aF), IntegerEntry(j, T), IntegerEntry(k, U), StringEntry(t, aH), StringEntry(u, aH), StringEntry(v, aH), StringEntry(w, aH), StringEntry(x, aH)] | |
234 | - | ||
232 | + | } | |
235 | 233 | ||
236 | 234 | ||
237 | 235 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 4 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = "1.0.0" | |
5 | 5 | ||
6 | 6 | let b = "version" | |
7 | 7 | ||
8 | 8 | let c = "active" | |
9 | 9 | ||
10 | 10 | let d = "number_voting" | |
11 | 11 | ||
12 | 12 | let e = "_height" | |
13 | 13 | ||
14 | 14 | let f = "_no" | |
15 | 15 | ||
16 | 16 | let g = "_yes" | |
17 | 17 | ||
18 | 18 | let h = "_status" | |
19 | 19 | ||
20 | 20 | let i = "amount_voting" | |
21 | 21 | ||
22 | 22 | let j = "max_amount_voting" | |
23 | 23 | ||
24 | 24 | let k = "max_day_voting" | |
25 | 25 | ||
26 | 26 | let l = "commission" | |
27 | 27 | ||
28 | 28 | let m = "commission_scale_delimiter" | |
29 | 29 | ||
30 | 30 | let n = "shutdown_cause" | |
31 | 31 | ||
32 | 32 | let o = "_cancel_cause" | |
33 | 33 | ||
34 | 34 | let p = "_SWOP_amount" | |
35 | 35 | ||
36 | 36 | let q = "_name" | |
37 | 37 | ||
38 | 38 | let r = "_votingId" | |
39 | 39 | ||
40 | 40 | let s = "period_voting" | |
41 | 41 | ||
42 | 42 | let t = "active_vote_first" | |
43 | 43 | ||
44 | 44 | let u = "active_vote_second" | |
45 | 45 | ||
46 | 46 | let v = "active_vote_third" | |
47 | 47 | ||
48 | 48 | let w = "active_vote_fourth" | |
49 | 49 | ||
50 | 50 | let x = "active_vote_fifth" | |
51 | 51 | ||
52 | 52 | let y = base58'DXDY2itiEcYBtGkVLnkpHtDFyWQUkoLJz79uJ7ECbMrA' | |
53 | 53 | ||
54 | 54 | let z = base58'E6Wa1SGoktYcjHjsKrvjMiqJY3SWmGKcD8Q5L8kxSPS7' | |
55 | 55 | ||
56 | 56 | let A = base58'AZmWJtuy4GeVrMmJH4hfFBRApe1StvhJSk4jcbT6bArQ' | |
57 | 57 | ||
58 | 58 | let B = base58'AZmWJtuy4GeVrMmJH4hfFBRApe1StvhJSk4jcbT6bArQ' | |
59 | 59 | ||
60 | 60 | let C = Address(base58'3NAGTtZz6WpupSN89NZD5rMZwwziZEg4Kx4') | |
61 | 61 | ||
62 | 62 | let D = Address(base58'3PLHVWCqA9DJPDbadUofTohnCULLauiDWhS') | |
63 | 63 | ||
64 | 64 | let E = base58'3DBbie1kWkspPEX1KTD6XDVGjofdKVBUURNfoS7hUpY9' | |
65 | 65 | ||
66 | 66 | let F = base58'3DBbie1kWkspPEX1KTD6XDVGjofdKVBUURNfoS7hUpY9' | |
67 | 67 | ||
68 | 68 | let G = getBooleanValue(this, c) | |
69 | 69 | ||
70 | 70 | let H = getIntegerValue(this, d) | |
71 | 71 | ||
72 | 72 | let I = getIntegerValue(this, i) | |
73 | 73 | ||
74 | 74 | let J = valueOrElse(getString(this, t), "") | |
75 | 75 | ||
76 | 76 | let K = valueOrElse(getString(this, u), "") | |
77 | 77 | ||
78 | 78 | let L = valueOrElse(getString(this, v), "") | |
79 | 79 | ||
80 | 80 | let M = valueOrElse(getString(this, w), "") | |
81 | 81 | ||
82 | 82 | let N = valueOrElse(getString(this, x), "") | |
83 | 83 | ||
84 | 84 | let O = 1000000000 | |
85 | 85 | ||
86 | 86 | let P = 1000 | |
87 | 87 | ||
88 | 88 | let Q = 100000000 | |
89 | 89 | ||
90 | 90 | let R = 1000 | |
91 | 91 | ||
92 | 92 | let S = 8 | |
93 | 93 | ||
94 | 94 | let T = 5 | |
95 | 95 | ||
96 | 96 | let U = 5 | |
97 | 97 | ||
98 | 98 | let V = (1440 * U) | |
99 | 99 | ||
100 | 100 | func W (X) = { | |
101 | 101 | let Y = X | |
102 | 102 | if ($isInstanceOf(Y, "ByteVector")) | |
103 | 103 | then { | |
104 | 104 | let Z = Y | |
105 | 105 | if (isDefined(assetInfo(Z))) | |
106 | 106 | then { | |
107 | 107 | let aa = toBase58String(Z) | |
108 | 108 | let ab = valueOrErrorMessage(assetInfo(Z), (("Asset " + aa) + " doesn't exist")) | |
109 | 109 | $Tuple3(aa, ab.name, ab.decimals) | |
110 | 110 | } | |
111 | 111 | else throw("Asset is not define") | |
112 | 112 | } | |
113 | 113 | else if ($isInstanceOf(Y, "Unit")) | |
114 | 114 | then { | |
115 | 115 | let ac = Y | |
116 | 116 | $Tuple3("WAVES", "WAVES", 8) | |
117 | 117 | } | |
118 | 118 | else throw("Match error") | |
119 | 119 | } | |
120 | 120 | ||
121 | 121 | ||
122 | 122 | func ad (ae,af,ag) = { | |
123 | 123 | let ah = split(ae, "_") | |
124 | 124 | let ai = isDefined(getInteger(this, ae)) | |
125 | 125 | if (if (ai) | |
126 | 126 | then (ae != "") | |
127 | 127 | else false) | |
128 | 128 | then { | |
129 | 129 | let aj = ah[2] | |
130 | 130 | let ak = (((((af + "_") + ag) + "_") + aj) + r) | |
131 | 131 | let al = isDefined(getInteger(this, ak)) | |
132 | 132 | let am = valueOrElse(getInteger(this, (aj + e)), 0) | |
133 | 133 | let an = valueOrElse(getBoolean(this, (aj + h)), true) | |
134 | 134 | if (al) | |
135 | 135 | then if ((height > am)) | |
136 | 136 | then if (an) | |
137 | 137 | then true | |
138 | 138 | else false | |
139 | 139 | else false | |
140 | 140 | else false | |
141 | 141 | } | |
142 | 142 | else false | |
143 | 143 | } | |
144 | 144 | ||
145 | 145 | ||
146 | 146 | func ao (ae) = { | |
147 | 147 | let ah = split(ae, "_") | |
148 | 148 | let ai = isDefined(getInteger(this, ae)) | |
149 | 149 | if (if (ai) | |
150 | 150 | then (ae != "") | |
151 | 151 | else false) | |
152 | 152 | then { | |
153 | 153 | let aj = ah[2] | |
154 | 154 | let am = valueOrElse(getInteger(this, (aj + e)), 0) | |
155 | 155 | let an = valueOrElse(getBoolean(this, (aj + h)), true) | |
156 | 156 | if ((height > am)) | |
157 | 157 | then if (an) | |
158 | 158 | then "" | |
159 | 159 | else ae | |
160 | 160 | else ae | |
161 | 161 | } | |
162 | 162 | else "" | |
163 | 163 | } | |
164 | 164 | ||
165 | 165 | ||
166 | 166 | func ap (af,ag) = if (if (if (if (ad(J, af, ag)) | |
167 | 167 | then true | |
168 | 168 | else ad(K, af, ag)) | |
169 | 169 | then true | |
170 | 170 | else ad(L, af, ag)) | |
171 | 171 | then true | |
172 | 172 | else ad(M, af, ag)) | |
173 | 173 | then true | |
174 | 174 | else ad(N, af, ag) | |
175 | 175 | ||
176 | 176 | ||
177 | 177 | func aq (aj) = { | |
178 | 178 | let am = valueOrElse(getInteger(this, (toString(aj) + e)), 0) | |
179 | 179 | let an = valueOrElse(getBoolean(this, (toString(aj) + h)), true) | |
180 | 180 | let ar = height | |
181 | 181 | if ((0 > aj)) | |
182 | 182 | then 0 | |
183 | 183 | else if (!(an)) | |
184 | 184 | then 0 | |
185 | 185 | else if ((am > ar)) | |
186 | 186 | then 1 | |
187 | 187 | else 0 | |
188 | 188 | } | |
189 | 189 | ||
190 | 190 | ||
191 | 191 | func as () = ((((aq(valueOrElse(getInteger(this, J), -1)) + aq(valueOrElse(getInteger(this, K), -1))) + aq(valueOrElse(getInteger(this, L), -1))) + aq(valueOrElse(getInteger(this, M), -1))) + aq(valueOrElse(getInteger(this, N), -1))) | |
192 | 192 | ||
193 | 193 | ||
194 | 194 | func at () = if ((ao(J) != "")) | |
195 | 195 | then ao(J) | |
196 | 196 | else if ((ao(K) != "")) | |
197 | 197 | then ao(K) | |
198 | 198 | else if ((ao(L) != "")) | |
199 | 199 | then ao(L) | |
200 | 200 | else if ((ao(M) != "")) | |
201 | 201 | then ao(M) | |
202 | 202 | else if ((ao(N) != "")) | |
203 | 203 | then ao(N) | |
204 | 204 | else "" | |
205 | 205 | ||
206 | 206 | ||
207 | 207 | func au (av) = if ((av == "WAVES")) | |
208 | 208 | then unit | |
209 | 209 | else fromBase58String(av) | |
210 | 210 | ||
211 | 211 | ||
212 | 212 | func aw (ax) = if ((valueOrElse(getInteger(D, (toString(ax) + p)), 0) > 0)) | |
213 | 213 | then true | |
214 | 214 | else false | |
215 | 215 | ||
216 | 216 | ||
217 | 217 | func ay (az) = [BooleanEntry(c, false), StringEntry(n, az)] | |
218 | 218 | ||
219 | 219 | ||
220 | 220 | func aA (aB,aC) = throw(((((("Insufficient DApp balance to pay " + toString(aB)) + " ") + aC) + " due to staking.") + ". Please contact support in Telegram: https://t.me/swopfisupport")) | |
221 | 221 | ||
222 | 222 | ||
223 | 223 | @Callable(aD) | |
224 | - | func init () = if ((aD.caller != this)) | |
225 | - | then throw("Only the DApp itself can call this function") | |
226 | - | else if (isDefined(getBoolean(this, c))) | |
227 | - | then throw("DApp is already active") | |
228 | - | else { | |
229 | - | let aE = 0 | |
230 | - | let aF = 0 | |
231 | - | let aG = true | |
232 | - | let aH = "" | |
224 | + | func init () = if (isDefined(getBoolean(this, c))) | |
225 | + | then throw("DApp is already active") | |
226 | + | else { | |
227 | + | let aE = 0 | |
228 | + | let aF = 0 | |
229 | + | let aG = true | |
230 | + | let aH = "" | |
233 | 231 | [StringEntry(b, a), BooleanEntry(c, aG), IntegerEntry(d, aE), IntegerEntry(i, aF), IntegerEntry(j, T), IntegerEntry(k, U), StringEntry(t, aH), StringEntry(u, aH), StringEntry(v, aH), StringEntry(w, aH), StringEntry(x, aH)] | |
234 | - | ||
232 | + | } | |
235 | 233 | ||
236 | 234 | ||
237 | 235 | ||
238 | 236 | @Callable(aD) | |
239 | 237 | func initVotingForNewPool (af,ag) = { | |
240 | 238 | let aI = $Tuple2(au(af), au(ag)) | |
241 | 239 | let aJ = aI._1 | |
242 | 240 | let aK = aI._2 | |
243 | 241 | let aL = at() | |
244 | 242 | let aM = as() | |
245 | 243 | let aN = ap(af, ag) | |
246 | 244 | let aO = W(aJ) | |
247 | 245 | let aP = aO._1 | |
248 | 246 | let aQ = aO._2 | |
249 | 247 | let aR = aO._3 | |
250 | 248 | let aS = W(aK) | |
251 | 249 | let aT = aS._1 | |
252 | 250 | let aU = aS._2 | |
253 | 251 | let aV = aS._3 | |
254 | 252 | if (!(G)) | |
255 | 253 | then throw("DApp is inactive at this moment") | |
256 | 254 | else if ((aJ == aK)) | |
257 | 255 | then throw("Assets must be different") | |
258 | 256 | else if (if (((aM + 1) > T)) | |
259 | 257 | then true | |
260 | 258 | else (aL == "")) | |
261 | 259 | then throw(("Too many votes. Maximum quantity -" + toString(T))) | |
262 | 260 | else if ((size(aD.payments) != 1)) | |
263 | 261 | then throw("One attached assets expected") | |
264 | 262 | else if (aN) | |
265 | 263 | then throw("This pool already exists") | |
266 | 264 | else if (if ((af == "")) | |
267 | 265 | then true | |
268 | 266 | else (ag == "")) | |
269 | 267 | then throw("Assets can't be empty") | |
270 | 268 | else if (!(if (if ((aK == E)) | |
271 | 269 | then true | |
272 | 270 | else (aJ == unit)) | |
273 | 271 | then true | |
274 | 272 | else (aJ == F))) | |
275 | 273 | then throw("One of the assets must be USDN, WAVES, SWOP") | |
276 | 274 | else [IntegerEntry((((((af + "_") + ag) + "_") + toString(I)) + r), I), IntegerEntry((toString(I) + e), (height + V)), BooleanEntry((toString(I) + h), true), IntegerEntry(i, (I + 1)), IntegerEntry(d, (aM + 1)), StringEntry((af + q), aQ), StringEntry((ag + q), aU), StringEntry(aL, (((((af + "_") + ag) + "_") + toString(I)) + r))] | |
277 | 275 | } | |
278 | 276 | ||
279 | 277 | ||
280 | 278 | ||
281 | 279 | @Callable(aD) | |
282 | 280 | func voteForPool (aj,aW,aX) = { | |
283 | 281 | let ar = height | |
284 | 282 | let aY = valueOrErrorMessage(getIntegerValue(this, (toString(aj) + e)), "Empty pool height") | |
285 | 283 | let an = valueOrElse(getBoolean(this, (toString(aj) + h)), true) | |
286 | 284 | let aZ = valueOrElse(getInteger(D, (toString(aD.caller) + p)), 0) | |
287 | 285 | let ba = ((valueOrElse(getInteger(this, (((toString(aD.caller) + "_") + toString(aj)) + g)), 0) + valueOrElse(getInteger(this, (((toString(aD.caller) + "_") + toString(aj)) + f)), 0)) + aX) | |
288 | 286 | if (!(aw(aD.caller))) | |
289 | 287 | then throw("This address has 0 SWOP in Governance dApp") | |
290 | 288 | else if (!(an)) | |
291 | 289 | then throw("This voting was canceled") | |
292 | 290 | else if ((ar > aY)) | |
293 | 291 | then throw("This voting was expired") | |
294 | 292 | else if ((0 > aX)) | |
295 | 293 | then throw("The number of votes must be positive") | |
296 | 294 | else if ((ba > aZ)) | |
297 | 295 | then throw((((toString(this) + " has ") + toString(aZ)) + " SWOP in governance.")) | |
298 | 296 | else if (aW) | |
299 | 297 | then { | |
300 | 298 | let bb = valueOrElse(getInteger(this, (((toString(aD.caller) + "_") + toString(aj)) + g)), 0) | |
301 | 299 | let bc = ((valueOrElse(getInteger(this, (toString(aj) + g)), 0) - bb) + aX) | |
302 | 300 | [IntegerEntry((toString(aj) + g), bc), IntegerEntry((((toString(aD.caller) + "_") + toString(aj)) + g), aX)] | |
303 | 301 | } | |
304 | 302 | else { | |
305 | 303 | let bb = valueOrElse(getInteger(this, (((toString(aD.caller) + "_") + toString(aj)) + f)), 0) | |
306 | 304 | let bc = ((valueOrElse(getInteger(this, (toString(aj) + f)), 0) - bb) + aX) | |
307 | 305 | [IntegerEntry((toString(aj) + f), bc), IntegerEntry((((toString(aD.caller) + "_") + toString(aj)) + f), aX)] | |
308 | 306 | } | |
309 | 307 | } | |
310 | 308 | ||
311 | 309 | ||
312 | 310 | ||
313 | 311 | @Callable(aD) | |
314 | 312 | func cancellationVoting (aj,az) = { | |
315 | 313 | let an = valueOrElse(getBoolean(this, (toString(aj) + h)), true) | |
316 | 314 | if (!(G)) | |
317 | 315 | then throw(("DApp is already suspended. Cause: " + valueOrElse(getString(this, n), "the cause wasn't specified"))) | |
318 | 316 | else if (!(containsElement([y, z, A, B], aD.callerPublicKey))) | |
319 | 317 | then throw("Only admin can call this function") | |
320 | 318 | else if (!(an)) | |
321 | 319 | then throw((("Voting " + toString(aj)) + " has already been stopped")) | |
322 | 320 | else [IntegerEntry(d, (H - 1)), BooleanEntry((toString(aj) + h), false), StringEntry((toString(aj) + o), az)] | |
323 | 321 | } | |
324 | 322 | ||
325 | 323 | ||
326 | 324 | ||
327 | 325 | @Callable(aD) | |
328 | 326 | func shutdown () = if (!(G)) | |
329 | 327 | then throw(("DApp is already suspended. Cause: " + valueOrElse(getString(this, n), "the cause wasn't specified"))) | |
330 | 328 | else if (!(containsElement([y, z, A, B], aD.callerPublicKey))) | |
331 | 329 | then throw("Only admin can call this function") | |
332 | 330 | else ay("Paused by admin") | |
333 | 331 | ||
334 | 332 | ||
335 | 333 | ||
336 | 334 | @Callable(aD) | |
337 | 335 | func activate () = if (G) | |
338 | 336 | then throw("DApp is already active") | |
339 | 337 | else if (!(containsElement([y, z, A, B], aD.callerPublicKey))) | |
340 | 338 | then throw("Only admin can call this function") | |
341 | 339 | else [BooleanEntry(c, true), DeleteEntry(n)] | |
342 | 340 | ||
343 | 341 | ||
344 | 342 | @Verifier(bd) | |
345 | 343 | func be () = true | |
346 | 344 |
github/deemru/w8io/169f3d6 39.97 ms ◑