tx · 96LbARFKoWchdvkfKGtFivVxhCAhBNZEm6entdLkM3gt 3MrrZRV6F9ywSejcyd9foJV5ZWXRhiDD6yo: -0.03700000 Waves 2022.09.13 21:28 [2227685] smart account 3MrrZRV6F9ywSejcyd9foJV5ZWXRhiDD6yo > SELF 0.00000000 Waves
{ "type": 13, "id": "96LbARFKoWchdvkfKGtFivVxhCAhBNZEm6entdLkM3gt", "fee": 3700000, "feeAssetId": null, "timestamp": 1663093691567, "version": 2, "chainId": 84, "sender": "3MrrZRV6F9ywSejcyd9foJV5ZWXRhiDD6yo", "senderPublicKey": "AzkmMXb1TBA8jfijtZ5hFHMEC6p5hm3e5prwCk1cTVCh", "proofs": [ "5dsTgYhLPuYGNZFQ8q6t9uSbKYWdhnD5foTtCEGK7z68vnicatwyBzzQjEU5ZYocASVMZGbaznkbBFvCdgTuTN2A" ], "script": "base64:BgIdCAISBAoCCAgSAwoBCBIAEgMKAQESABIAEgMKAQg4AA1rX3RvdGFsU3VwcGx5Ag1rX3RvdGFsU3VwcGx5AA9rX3Jld2FyZEJhbGFuY2UCD2tfcmV3YXJkQmFsYW5jZQANa19zd2FwQWRkcmVzcwINa19zd2FwQWRkcmVzcwAQa19sYXN0VXBkYXRlVGltZQIQa19sYXN0VXBkYXRlVGltZQAWa19yZXdhcmRQZXJUb2tlblN0b3JlZAIWa19yZXdhcmRQZXJUb2tlblN0b3JlZAAMa19yZXdhcmRSYXRlAgxrX3Jld2FyZFJhdGUADmtfcGVyaW9kRmluaXNoAg5rX3BlcmlvZEZpbmlzaAAJa19iYWxhbmNlAglrX2JhbGFuY2UAFGtfdXNlclJld2FyZFBlclRva2VuAhRrX3VzZXJSZXdhcmRQZXJUb2tlbgAMa191c2VyUmV3YXJkAgxrX3VzZXJSZXdhcmQADWtfaW5pdGlhbGl6ZWQCDWtfaW5pdGlhbGl6ZWQAFGtfY29vcmRpbmF0b3JBZGRyZXNzAhRrX2Nvb3JkaW5hdG9yQWRkcmVzcwARa19zdGFraW5nX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lc3RhbXAFCERVUkFUSU9OCQACAQIkU3RyaWN0IHZhbHVlIGlzIG5vdCBlcXVhbCB0byBpdHNlbGYuCQACAQIkU3RyaWN0IHZhbHVlIGlzIG5vdCBlcXVhbCB0byBpdHNlbGYuCQACAQIkU3RyaWN0IHZhbHVlIGlzIG5vdCBlcXVhbCB0byBpdHNlbGYuCQACAQIkU3RyaWN0IHZhbHVlIGlzIG5vdCBlcXVhbCB0byBpdHNlbGYuCQACAQIkU3RyaWN0IHZhbHVlIGlzIG5vdCBlcXVhbCB0byBpdHNlbGYuAWkBC3ZpZXdfcmV3YXJkAQdfc3Rha2VyBAxzdGFrZXJFYXJuZWQICQEMdXBkYXRlUmV3YXJkAgUHX3N0YWtlcgAAAl8zCQACAQkApAMBBQxzdGFrZXJFYXJuZWQBAnR4AQZ2ZXJpZnkACQD0AwMIBQJ0eAlib2R5Qnl0ZXMJAJEDAggFAnR4BnByb29mcwAACQEOYWRtaW5QdWJsaWNLZXkAYkVzXA==", "height": 2227685, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: EcUooDgkuqFeZMUXAr2FgGDy4DHhVGDMXF7mGevDs3E7 Next: 38oUCppTN1697dWaSxEb5JqSRB3QHYHotB8y13y47m8o Diff:
Old | New | Differences | |
---|---|---|---|
253 | 253 | if (if ((0 >= az)) | |
254 | 254 | then true | |
255 | 255 | else !(Y())) | |
256 | - | then throw("No reward") | |
256 | + | then throw("No farming reward") | |
257 | 257 | else { | |
258 | 258 | let aJ = invoke(w(), "unStake", [az], nil) | |
259 | 259 | if ((aJ == aJ)) | |
268 | 268 | ||
269 | 269 | @Callable(aB) | |
270 | 270 | func ackRewards () = { | |
271 | - | let aL = invoke(w(), " | |
271 | + | let aL = invoke(w(), "computeReward", [toString(this)], nil) | |
272 | 272 | if ((aL == aL)) | |
273 | 273 | then { | |
274 | - | let aM = invoke(T(), "swap", [toBase58String(u()), 0], [AttachedPayment(v(), assetBalance(this, v()))]) | |
275 | - | if ((aM == aM)) | |
276 | - | then { | |
277 | - | let au = assetBalance(this, u()) | |
278 | - | let aG = invoke(w(), "stake", nil, [AttachedPayment(u(), au)]) | |
279 | - | if ((aG == aG)) | |
280 | - | then if ((0 >= au)) | |
281 | - | then throw("Invalid ackRewards params") | |
282 | - | else { | |
283 | - | let aj = au | |
284 | - | let aw = av(z, A)._1 | |
285 | - | let aN = am() | |
286 | - | let aO = if ((aN > R())) | |
287 | - | then (aj / y) | |
288 | - | else { | |
289 | - | let aP = (R() - aN) | |
290 | - | let aQ = (Q() * aP) | |
291 | - | ((aj + aQ) / y) | |
292 | - | } | |
293 | - | (((ab(aO) ++ ag(aw)) ++ Z(aj)) ++ ad(aN, (aN + y))) | |
294 | - | } | |
274 | + | let aM = { | |
275 | + | let aN = aL | |
276 | + | if ($isInstanceOf(aN, "Int")) | |
277 | + | then { | |
278 | + | let aO = aN | |
279 | + | aO | |
280 | + | } | |
281 | + | else throw("Reward amount not a number") | |
282 | + | } | |
283 | + | if ((aM == 0)) | |
284 | + | then nil | |
285 | + | else { | |
286 | + | let aP = invoke(w(), "withdrawRewards", nil, nil) | |
287 | + | if ((aP == aP)) | |
288 | + | then { | |
289 | + | let aQ = assetBalance(this, v()) | |
290 | + | let aR = invoke(T(), "swap", [toBase58String(u()), 0], [AttachedPayment(v(), aQ)]) | |
291 | + | if ((aR == aR)) | |
292 | + | then { | |
293 | + | let au = assetBalance(this, u()) | |
294 | + | if ((au == au)) | |
295 | + | then if ((0 >= au)) | |
296 | + | then throw("Invalid ackRewards params") | |
297 | + | else { | |
298 | + | let aj = au | |
299 | + | let aw = av(z, A)._1 | |
300 | + | let aS = am() | |
301 | + | let aT = if ((aS > R())) | |
302 | + | then (aj / y) | |
303 | + | else { | |
304 | + | let aU = (R() - aS) | |
305 | + | let aV = (Q() * aU) | |
306 | + | ((aj + aV) / y) | |
307 | + | } | |
308 | + | let aG = invoke(w(), "stake", nil, [AttachedPayment(u(), au)]) | |
309 | + | if ((aG == aG)) | |
310 | + | then (((ab(aT) ++ ag(aw)) ++ Z(aj)) ++ ad(aS, (aS + y))) | |
311 | + | else throw("Strict value is not equal to itself.") | |
312 | + | } | |
313 | + | else throw("Strict value is not equal to itself.") | |
314 | + | } | |
315 | + | else throw("Strict value is not equal to itself.") | |
316 | + | } | |
295 | 317 | else throw("Strict value is not equal to itself.") | |
296 | 318 | } | |
297 | - | else throw("Strict value is not equal to itself.") | |
298 | 319 | } | |
299 | 320 | else throw("Strict value is not equal to itself.") | |
300 | 321 | } | |
308 | 329 | } | |
309 | 330 | ||
310 | 331 | ||
311 | - | @Verifier( | |
312 | - | func | |
332 | + | @Verifier(aW) | |
333 | + | func aX () = sigVerify(aW.bodyBytes, aW.proofs[0], t()) | |
313 | 334 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = "k_totalSupply" | |
5 | 5 | ||
6 | 6 | let b = "k_rewardBalance" | |
7 | 7 | ||
8 | 8 | let c = "k_swapAddress" | |
9 | 9 | ||
10 | 10 | let d = "k_lastUpdateTime" | |
11 | 11 | ||
12 | 12 | let e = "k_rewardPerTokenStored" | |
13 | 13 | ||
14 | 14 | let f = "k_rewardRate" | |
15 | 15 | ||
16 | 16 | let g = "k_periodFinish" | |
17 | 17 | ||
18 | 18 | let h = "k_balance" | |
19 | 19 | ||
20 | 20 | let i = "k_userRewardPerToken" | |
21 | 21 | ||
22 | 22 | let j = "k_userReward" | |
23 | 23 | ||
24 | 24 | let k = "k_initialized" | |
25 | 25 | ||
26 | 26 | let l = "k_coordinatorAddress" | |
27 | 27 | ||
28 | 28 | let m = "k_staking_address" | |
29 | 29 | ||
30 | 30 | let n = "k_gov_asset" | |
31 | 31 | ||
32 | 32 | let o = "k_quote_asset" | |
33 | 33 | ||
34 | 34 | let p = "k_admin_public_key" | |
35 | 35 | ||
36 | 36 | let q = "k_admin_address" | |
37 | 37 | ||
38 | 38 | func r () = valueOrErrorMessage(addressFromString(getStringValue(this, l)), "Coordinator not set") | |
39 | 39 | ||
40 | 40 | ||
41 | 41 | func s () = addressFromString(getStringValue(r(), q)) | |
42 | 42 | ||
43 | 43 | ||
44 | 44 | func t () = fromBase58String(getStringValue(r(), p)) | |
45 | 45 | ||
46 | 46 | ||
47 | 47 | func u () = fromBase58String(getStringValue(r(), n)) | |
48 | 48 | ||
49 | 49 | ||
50 | 50 | func v () = fromBase58String(getStringValue(r(), o)) | |
51 | 51 | ||
52 | 52 | ||
53 | 53 | func w () = valueOrErrorMessage(addressFromString(getStringValue(r(), m)), "Staking not set") | |
54 | 54 | ||
55 | 55 | ||
56 | 56 | let x = (1 * (((((((10 * 10) * 10) * 10) * 10) * 10) * 10) * 10)) | |
57 | 57 | ||
58 | 58 | let y = ((60 * 60) * 24) | |
59 | 59 | ||
60 | 60 | let z = "" | |
61 | 61 | ||
62 | 62 | let A = 0 | |
63 | 63 | ||
64 | 64 | func B (C,D) = fraction(C, x, D, HALFEVEN) | |
65 | 65 | ||
66 | 66 | ||
67 | 67 | func E (C,D) = fraction(C, D, x, HALFEVEN) | |
68 | 68 | ||
69 | 69 | ||
70 | 70 | func F (C) = if ((C > 0)) | |
71 | 71 | then C | |
72 | 72 | else -(C) | |
73 | 73 | ||
74 | 74 | ||
75 | 75 | func G (C,D) = if ((C > D)) | |
76 | 76 | then D | |
77 | 77 | else C | |
78 | 78 | ||
79 | 79 | ||
80 | 80 | func H (I,J) = ((I + "_") + J) | |
81 | 81 | ||
82 | 82 | ||
83 | 83 | func K (L) = valueOrErrorMessage(getInteger(this, L), ("no value for " + L)) | |
84 | 84 | ||
85 | 85 | ||
86 | 86 | func M (L) = valueOrElse(getInteger(this, L), 0) | |
87 | 87 | ||
88 | 88 | ||
89 | 89 | func N () = M(a) | |
90 | 90 | ||
91 | 91 | ||
92 | 92 | func O () = M(e) | |
93 | 93 | ||
94 | 94 | ||
95 | 95 | func P () = M(d) | |
96 | 96 | ||
97 | 97 | ||
98 | 98 | func Q () = M(f) | |
99 | 99 | ||
100 | 100 | ||
101 | 101 | func R () = M(g) | |
102 | 102 | ||
103 | 103 | ||
104 | 104 | func S () = M(b) | |
105 | 105 | ||
106 | 106 | ||
107 | 107 | func T () = valueOrErrorMessage(addressFromString(valueOrErrorMessage(getString(this, c), "Now swap address")), "Invalid swap address") | |
108 | 108 | ||
109 | 109 | ||
110 | 110 | func U (V) = M(H(j, V)) | |
111 | 111 | ||
112 | 112 | ||
113 | 113 | func W (V) = M(H(i, V)) | |
114 | 114 | ||
115 | 115 | ||
116 | 116 | func X (V) = M(H(h, V)) | |
117 | 117 | ||
118 | 118 | ||
119 | 119 | func Y () = valueOrElse(getBoolean(this, k), false) | |
120 | 120 | ||
121 | 121 | ||
122 | 122 | func Z (aa) = [IntegerEntry(b, (S() + aa))] | |
123 | 123 | ||
124 | 124 | ||
125 | 125 | func ab (ac) = [IntegerEntry(f, ac)] | |
126 | 126 | ||
127 | 127 | ||
128 | 128 | func ad (ae,af) = [IntegerEntry(d, ae), IntegerEntry(g, af)] | |
129 | 129 | ||
130 | 130 | ||
131 | 131 | func ag (ah) = [IntegerEntry(e, ah)] | |
132 | 132 | ||
133 | 133 | ||
134 | 134 | func ai (V,aj,ak) = [IntegerEntry(H(j, V), aj), IntegerEntry(H(i, V), ak)] | |
135 | 135 | ||
136 | 136 | ||
137 | 137 | func al (V,aa) = [IntegerEntry(H(h, V), (X(V) + aa)), IntegerEntry(a, (N() + aa))] | |
138 | 138 | ||
139 | 139 | ||
140 | 140 | func am () = (lastBlock.timestamp / 1000) | |
141 | 141 | ||
142 | 142 | ||
143 | 143 | func an () = G(am(), R()) | |
144 | 144 | ||
145 | 145 | ||
146 | 146 | func ao (ap) = if (((N() + ap) == 0)) | |
147 | 147 | then O() | |
148 | 148 | else { | |
149 | 149 | let aq = (an() - P()) | |
150 | 150 | let ar = if ((0 > aq)) | |
151 | 151 | then 0 | |
152 | 152 | else aq | |
153 | 153 | let as = B((Q() * ar), (N() + ap)) | |
154 | 154 | (O() + as) | |
155 | 155 | } | |
156 | 156 | ||
157 | 157 | ||
158 | 158 | func at (V,ap) = { | |
159 | 159 | let au = (ao(ap) - W(V)) | |
160 | 160 | (E((X(V) + ap), au) + U(V)) | |
161 | 161 | } | |
162 | 162 | ||
163 | 163 | ||
164 | 164 | func av (V,ap) = { | |
165 | 165 | let aw = ao(ap) | |
166 | 166 | let ax = am() | |
167 | 167 | let ay = if ((V != "")) | |
168 | 168 | then $Tuple2(at(V, ap), aw) | |
169 | 169 | else $Tuple2(0, 0) | |
170 | 170 | let az = ay._1 | |
171 | 171 | let aA = ay._2 | |
172 | 172 | $Tuple4(aw, ax, az, aA) | |
173 | 173 | } | |
174 | 174 | ||
175 | 175 | ||
176 | 176 | @Callable(aB) | |
177 | 177 | func initialize (aC,aD) = if (Y()) | |
178 | 178 | then throw("Already initialized") | |
179 | 179 | else [StringEntry(l, aC), StringEntry(c, aD), BooleanEntry(k, true)] | |
180 | 180 | ||
181 | 181 | ||
182 | 182 | ||
183 | 183 | @Callable(aB) | |
184 | 184 | func setSwap (aD) = if ((aB.caller != s())) | |
185 | 185 | then throw("Invalid setSwap params") | |
186 | 186 | else [StringEntry(c, aD)] | |
187 | 187 | ||
188 | 188 | ||
189 | 189 | ||
190 | 190 | @Callable(aB) | |
191 | 191 | func stake () = { | |
192 | 192 | let V = toString(aB.caller) | |
193 | 193 | let aE = aB.payments[0].amount | |
194 | 194 | if (if ((aB.payments[0].assetId != u())) | |
195 | 195 | then true | |
196 | 196 | else !(Y())) | |
197 | 197 | then throw("Invalid call to stake") | |
198 | 198 | else { | |
199 | 199 | let aF = av(V, 0) | |
200 | 200 | let aw = aF._1 | |
201 | 201 | let ax = aF._2 | |
202 | 202 | let az = aF._3 | |
203 | 203 | let aA = aF._4 | |
204 | 204 | let aG = invoke(w(), "stake", nil, [AttachedPayment(u(), aE)]) | |
205 | 205 | if ((aG == aG)) | |
206 | 206 | then (((ai(V, az, aA) ++ ag(aw)) ++ ad(ax, R())) ++ al(V, aE)) | |
207 | 207 | else throw("Strict value is not equal to itself.") | |
208 | 208 | } | |
209 | 209 | } | |
210 | 210 | ||
211 | 211 | ||
212 | 212 | ||
213 | 213 | @Callable(aB) | |
214 | 214 | func unStake (aE) = { | |
215 | 215 | let aH = invoke(this, "ackRewards", nil, nil) | |
216 | 216 | if ((aH == aH)) | |
217 | 217 | then { | |
218 | 218 | let V = toString(aB.caller) | |
219 | 219 | if (if (if ((aE > X(V))) | |
220 | 220 | then true | |
221 | 221 | else (aB.payments != nil)) | |
222 | 222 | then true | |
223 | 223 | else !(Y())) | |
224 | 224 | then throw("Invalid unStake parameters") | |
225 | 225 | else { | |
226 | 226 | let aI = av(V, 0) | |
227 | 227 | let aw = aI._1 | |
228 | 228 | let ax = aI._2 | |
229 | 229 | let az = aI._3 | |
230 | 230 | let aA = aI._4 | |
231 | 231 | let aJ = invoke(w(), "unStake", [aE], nil) | |
232 | 232 | if ((aJ == aJ)) | |
233 | 233 | then ((((ai(V, az, aA) ++ ag(aw)) ++ ad(ax, R())) ++ al(V, -(aE))) ++ [ScriptTransfer(aB.caller, aE, u())]) | |
234 | 234 | else throw("Strict value is not equal to itself.") | |
235 | 235 | } | |
236 | 236 | } | |
237 | 237 | else throw("Strict value is not equal to itself.") | |
238 | 238 | } | |
239 | 239 | ||
240 | 240 | ||
241 | 241 | ||
242 | 242 | @Callable(aB) | |
243 | 243 | func withdrawRewards () = { | |
244 | 244 | let aH = invoke(this, "ackRewards", nil, nil) | |
245 | 245 | if ((aH == aH)) | |
246 | 246 | then { | |
247 | 247 | let V = toString(aB.caller) | |
248 | 248 | let aK = av(V, 0) | |
249 | 249 | let aw = aK._1 | |
250 | 250 | let ax = aK._2 | |
251 | 251 | let az = aK._3 | |
252 | 252 | let aA = aK._4 | |
253 | 253 | if (if ((0 >= az)) | |
254 | 254 | then true | |
255 | 255 | else !(Y())) | |
256 | - | then throw("No reward") | |
256 | + | then throw("No farming reward") | |
257 | 257 | else { | |
258 | 258 | let aJ = invoke(w(), "unStake", [az], nil) | |
259 | 259 | if ((aJ == aJ)) | |
260 | 260 | then ((((ai(V, 0, aA) ++ ag(aw)) ++ ad(ax, R())) ++ Z(-(az))) ++ [ScriptTransfer(aB.caller, az, u())]) | |
261 | 261 | else throw("Strict value is not equal to itself.") | |
262 | 262 | } | |
263 | 263 | } | |
264 | 264 | else throw("Strict value is not equal to itself.") | |
265 | 265 | } | |
266 | 266 | ||
267 | 267 | ||
268 | 268 | ||
269 | 269 | @Callable(aB) | |
270 | 270 | func ackRewards () = { | |
271 | - | let aL = invoke(w(), " | |
271 | + | let aL = invoke(w(), "computeReward", [toString(this)], nil) | |
272 | 272 | if ((aL == aL)) | |
273 | 273 | then { | |
274 | - | let aM = invoke(T(), "swap", [toBase58String(u()), 0], [AttachedPayment(v(), assetBalance(this, v()))]) | |
275 | - | if ((aM == aM)) | |
276 | - | then { | |
277 | - | let au = assetBalance(this, u()) | |
278 | - | let aG = invoke(w(), "stake", nil, [AttachedPayment(u(), au)]) | |
279 | - | if ((aG == aG)) | |
280 | - | then if ((0 >= au)) | |
281 | - | then throw("Invalid ackRewards params") | |
282 | - | else { | |
283 | - | let aj = au | |
284 | - | let aw = av(z, A)._1 | |
285 | - | let aN = am() | |
286 | - | let aO = if ((aN > R())) | |
287 | - | then (aj / y) | |
288 | - | else { | |
289 | - | let aP = (R() - aN) | |
290 | - | let aQ = (Q() * aP) | |
291 | - | ((aj + aQ) / y) | |
292 | - | } | |
293 | - | (((ab(aO) ++ ag(aw)) ++ Z(aj)) ++ ad(aN, (aN + y))) | |
294 | - | } | |
274 | + | let aM = { | |
275 | + | let aN = aL | |
276 | + | if ($isInstanceOf(aN, "Int")) | |
277 | + | then { | |
278 | + | let aO = aN | |
279 | + | aO | |
280 | + | } | |
281 | + | else throw("Reward amount not a number") | |
282 | + | } | |
283 | + | if ((aM == 0)) | |
284 | + | then nil | |
285 | + | else { | |
286 | + | let aP = invoke(w(), "withdrawRewards", nil, nil) | |
287 | + | if ((aP == aP)) | |
288 | + | then { | |
289 | + | let aQ = assetBalance(this, v()) | |
290 | + | let aR = invoke(T(), "swap", [toBase58String(u()), 0], [AttachedPayment(v(), aQ)]) | |
291 | + | if ((aR == aR)) | |
292 | + | then { | |
293 | + | let au = assetBalance(this, u()) | |
294 | + | if ((au == au)) | |
295 | + | then if ((0 >= au)) | |
296 | + | then throw("Invalid ackRewards params") | |
297 | + | else { | |
298 | + | let aj = au | |
299 | + | let aw = av(z, A)._1 | |
300 | + | let aS = am() | |
301 | + | let aT = if ((aS > R())) | |
302 | + | then (aj / y) | |
303 | + | else { | |
304 | + | let aU = (R() - aS) | |
305 | + | let aV = (Q() * aU) | |
306 | + | ((aj + aV) / y) | |
307 | + | } | |
308 | + | let aG = invoke(w(), "stake", nil, [AttachedPayment(u(), au)]) | |
309 | + | if ((aG == aG)) | |
310 | + | then (((ab(aT) ++ ag(aw)) ++ Z(aj)) ++ ad(aS, (aS + y))) | |
311 | + | else throw("Strict value is not equal to itself.") | |
312 | + | } | |
313 | + | else throw("Strict value is not equal to itself.") | |
314 | + | } | |
315 | + | else throw("Strict value is not equal to itself.") | |
316 | + | } | |
295 | 317 | else throw("Strict value is not equal to itself.") | |
296 | 318 | } | |
297 | - | else throw("Strict value is not equal to itself.") | |
298 | 319 | } | |
299 | 320 | else throw("Strict value is not equal to itself.") | |
300 | 321 | } | |
301 | 322 | ||
302 | 323 | ||
303 | 324 | ||
304 | 325 | @Callable(aB) | |
305 | 326 | func view_reward (V) = { | |
306 | 327 | let az = av(V, 0)._3 | |
307 | 328 | throw(toString(az)) | |
308 | 329 | } | |
309 | 330 | ||
310 | 331 | ||
311 | - | @Verifier( | |
312 | - | func | |
332 | + | @Verifier(aW) | |
333 | + | func aX () = sigVerify(aW.bodyBytes, aW.proofs[0], t()) | |
313 | 334 |
github/deemru/w8io/026f985 38.53 ms ◑