tx · 6MyTkzm8fjJC1dAw43qfkmcDjMHjHuZ3SmdeukpWpvRf 3N7XWpdx1UJKZp5stTtFMXPEygyfZ7j4PyC: -0.01200000 Waves 2024.04.29 03:59 [3083456] smart account 3N7XWpdx1UJKZp5stTtFMXPEygyfZ7j4PyC > SELF 0.00000000 Waves
{ "type": 13, "id": "6MyTkzm8fjJC1dAw43qfkmcDjMHjHuZ3SmdeukpWpvRf", "fee": 1200000, "feeAssetId": null, "timestamp": 1714352363870, "version": 2, "chainId": 84, "sender": "3N7XWpdx1UJKZp5stTtFMXPEygyfZ7j4PyC", "senderPublicKey": "APsCCjsKHFx7rbr1mG8Pca43pccTbH2G4FZj4keEqKJ5", "proofs": [ "wxHjLPSAuPBhwoXXXx3B9LGU5Z2P3pRUUW7jvvVhpjjjgn1xgUHP6DJsMbQXqYu4zNnzuoZKfcZtxbrEiBT8736" ], "script": "base64:BgIoCAISBwoFAQEBERgSBwoFAQgBCAESBwoFARIREQgSAwoBARIAEgASABkACE1pbmVyRmVlAAUAEVBheW91dEVtcHR5U3RhdHVzAAAAFVBheW91dEluaXRpYXRlZFN0YXR1cwABABVQYXlvdXRDb21wbGV0ZWRTdGF0dXMAAgASQmxvY2tzQmF0Y2hNYXhTaXplAAoAFlJlY2lwaWVudHNCYXRjaE1heFNpemUAZAAGSGVpZ2h0BQZoZWlnaHQAB0NoYWluSWQAVAAFQXJyMTAJAMwIAgAACQDMCAIAAQkAzAgCAAIJAMwIAgADCQDMCAIABAkAzAgCAAUJAMwIAgAGCQDMCAIABwkAzAgCAAgJAMwIAgAJBQNuaWwADUNhbGxlckFkZHJlc3MJAQdBZGRyZXNzAQEaAVTyivfVKpPlEk6umrrIyi00GQZQXD9/r7cAFldhdmVzRGFvRmFjdG9yeUFkZHJlc3MJAQdBZGRyZXNzAQEaAVQ8hf55dL/LZOPYRZ/ELezKrvBEP8q22ucAD1NldHRpbmdzQWRkcmVzcwkBB0FkZHJlc3MBARoBVIyem88MXqbW0vyDLXrGPL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ggFAWkGY2FsbGVyBRFNYWludGFpbmVyQWRkcmVzcwkAAgECDUFjY2VzcyBkZW5pZWQDCQECIT0CCQCQAwEIBQFpCHBheW1lbnRzAAAJAAIBAhdQYXltZW50cyBhcmUgcHJvaGliaXRlZAQXY3VycmVudE1hc3NUcmFuc2ZlckZlZXMJAQt2YWx1ZU9yRWxzZQIJAJ8IAQUTTWFzc1RyYW5zZmVyRmVlc0tleQAAAwkAAAIFF2N1cnJlbnRNYXNzVHJhbnNmZXJGZWVzAAAJAAIBAhNOb3RoaW5nIHRvIHdpdGhkcmF3CQDMCAIJAQxJbnRlZ2VyRW50cnkCBRNNYXNzVHJhbnNmZXJGZWVzS2V5AAAJAMwIAgkBDlNjcmlwdFRyYW5zZmVyAwURTWFpbnRhaW5lckFkZHJlc3MFF2N1cnJlbnRNYXNzVHJhbnNmZXJGZWVzBQR1bml0BQNuaWwBAnR4AQZ2ZXJpZnkABAckbWF0Y2gwBQJ0eAMJAAECBQckbWF0Y2gwAhdNYXNzVHJhbnNmZXJUcmFuc2FjdGlvbgQGbWFzc1R4BQckbWF0Y2gwCQDIEwMIBQZtYXNzVHgJYm9keUJ5dGVzCQCRAwIIBQZtYXNzVHgGcHJvb2ZzAAABICdyyI/DWUM9psFqeRmTYcK5k1+LqigLMCS33KkAh0oxCQDIEwMIBQJ0eAlib2R5Qnl0ZXMJAJEDAggFAnR4BnByb29mcwAAASAumQaoN6U+xrN5VpNDLBIHmCVy2F3Irlvu7+1i5+zzFKw4HUo=", "height": 3083456, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: Gei317femh5k1rpRaYcjujXrC4HFpBU7Z3o87joVkbUk Next: 7cW213AvGoKvVVNrKP8iGi9n8yrpNSsSXXDEo4zQAhwL Diff:
Old | New | Differences | |
---|---|---|---|
25 | 25 | ||
26 | 26 | let l = Address(base58'3N2jcP6cAcDJoVpfsQ5tVDTQrNgJcVUjj4v') | |
27 | 27 | ||
28 | - | let m = Address(base58' | |
28 | + | let m = Address(base58'3MyJM8hLxAMYFrPzdh68QqeMdFSSWufQqw3') | |
29 | 29 | ||
30 | 30 | let n = Address(base58'3N7ynzLr2PzVg9bCkrwLezNLVmoEyFmJtPL') | |
31 | 31 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = 5 | |
5 | 5 | ||
6 | 6 | let b = 0 | |
7 | 7 | ||
8 | 8 | let c = 1 | |
9 | 9 | ||
10 | 10 | let d = 2 | |
11 | 11 | ||
12 | 12 | let e = 10 | |
13 | 13 | ||
14 | 14 | let f = 100 | |
15 | 15 | ||
16 | 16 | let g = height | |
17 | 17 | ||
18 | 18 | let h = 84 | |
19 | 19 | ||
20 | 20 | let i = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9] | |
21 | 21 | ||
22 | 22 | let j = Address(base58'3NC2Xn1tUKEc7YxJS9oxdtY4x5NaQHhpH2e') | |
23 | 23 | ||
24 | 24 | let k = Address(base58'3MuS6qVvhBR6wSynFRdcE3fVqmGBjoc7Hhx') | |
25 | 25 | ||
26 | 26 | let l = Address(base58'3N2jcP6cAcDJoVpfsQ5tVDTQrNgJcVUjj4v') | |
27 | 27 | ||
28 | - | let m = Address(base58' | |
28 | + | let m = Address(base58'3MyJM8hLxAMYFrPzdh68QqeMdFSSWufQqw3') | |
29 | 29 | ||
30 | 30 | let n = Address(base58'3N7ynzLr2PzVg9bCkrwLezNLVmoEyFmJtPL') | |
31 | 31 | ||
32 | 32 | let o = Address(base58'3MyUDpTMG43mkmScfDKgG9gep4reUboH9YF') | |
33 | 33 | ||
34 | 34 | let p = "WAVES" | |
35 | 35 | ||
36 | 36 | let q = "lastPayout" | |
37 | 37 | ||
38 | 38 | let r = "massTransferFees" | |
39 | 39 | ||
40 | 40 | func s (t) = ("payoutData_" + toString(t)) | |
41 | 41 | ||
42 | 42 | ||
43 | 43 | func u (t) = ("payoutStatus_" + toString(t)) | |
44 | 44 | ||
45 | 45 | ||
46 | 46 | func v (t) = ("payoutAdditionalRewards_" + toString(t)) | |
47 | 47 | ||
48 | 48 | ||
49 | 49 | func w () = getIntegerValue(this, q) | |
50 | 50 | ||
51 | 51 | ||
52 | 52 | func x (t) = { | |
53 | 53 | let y = getStringValue(s(t)) | |
54 | 54 | let z = split(y, "_") | |
55 | 55 | let A = parseIntValue(z[0]) | |
56 | 56 | let B = parseIntValue(z[1]) | |
57 | 57 | $Tuple2(A, B) | |
58 | 58 | } | |
59 | 59 | ||
60 | 60 | ||
61 | 61 | func C (t) = valueOrElse(getInteger(u(t)), b) | |
62 | 62 | ||
63 | 63 | ||
64 | 64 | func D (t) = valueOrElse(getInteger(v(t)), 0) | |
65 | 65 | ||
66 | 66 | ||
67 | 67 | @Callable(E) | |
68 | 68 | func initiatePayout (t,A,B,F,G) = if ((E.caller != j)) | |
69 | 69 | then throw("Access denied") | |
70 | 70 | else if ((size(E.payments) != 0)) | |
71 | 71 | then throw("Payments are prohibited") | |
72 | 72 | else { | |
73 | 73 | let H = w() | |
74 | 74 | if ((t != (H + 1))) | |
75 | 75 | then throw(((("Wrong payoutId: " + toString(t)) + ", should be: ") + toString((H + 1)))) | |
76 | 76 | else { | |
77 | 77 | let I = C(H) | |
78 | 78 | if ((I != d)) | |
79 | 79 | then throw((("Last payout: " + toString(H)) + " was not completed")) | |
80 | 80 | else { | |
81 | 81 | let J = x(H) | |
82 | 82 | let K = J._1 | |
83 | 83 | let L = J._2 | |
84 | 84 | if ((A != (L + 1))) | |
85 | 85 | then throw(((("Wrong startHeight: " + toString(A)) + ", should be: ") + toString((L + 1)))) | |
86 | 86 | else if ((A > B)) | |
87 | 87 | then throw(((("endHeight: " + toString(B)) + " less than startHeight: ") + toString(A))) | |
88 | 88 | else { | |
89 | 89 | let M = getIntegerValue(l, "inputsQuantity") | |
90 | 90 | let N = size(F) | |
91 | 91 | let O = size(G) | |
92 | 92 | if (if ((N != O)) | |
93 | 93 | then true | |
94 | 94 | else (N != M)) | |
95 | 95 | then throw("Wrong size of amounts or assets") | |
96 | 96 | else { | |
97 | 97 | let P = valueOrElse(getInteger(k, ("%s%s__available__" + toString(this))), 0) | |
98 | 98 | let Q = getIntegerValue(k, "%s__nextBlockToProcess") | |
99 | 99 | let R = if (if ((P > 0)) | |
100 | 100 | then ((Q + e) >= g) | |
101 | 101 | else false) | |
102 | 102 | then invoke(k, "claimLP", nil, nil) | |
103 | 103 | else unit | |
104 | 104 | if ((R == R)) | |
105 | 105 | then { | |
106 | 106 | let S = D(t) | |
107 | 107 | func T (U,V) = if ((V >= O)) | |
108 | 108 | then U | |
109 | 109 | else { | |
110 | 110 | let W = G[V] | |
111 | 111 | if ((getInteger(l, ("inputAssetIndex_" + W)) == unit)) | |
112 | 112 | then throw(("Unknown input: " + W)) | |
113 | 113 | else { | |
114 | 114 | let X = if ((W == p)) | |
115 | 115 | then $Tuple2(unit, (F[V] + S)) | |
116 | 116 | else $Tuple2(fromBase58String(W), F[V]) | |
117 | 117 | let Y = X._1 | |
118 | 118 | let Z = X._2 | |
119 | 119 | if ((0 > Z)) | |
120 | 120 | then throw((("Wrong asset amount: " + toString(Z)) + ", should be positive or zero")) | |
121 | 121 | else { | |
122 | 122 | let aa = fraction(Z, a, 100) | |
123 | 123 | let ab = (aa / 2) | |
124 | 124 | let ac = (aa - ab) | |
125 | 125 | let ad = ((Z - ab) - ac) | |
126 | 126 | $Tuple2(((U._1 :+ ScriptTransfer(n, ab, Y)) :+ ScriptTransfer(o, ac, Y)), (U._2 :+ toString(ad))) | |
127 | 127 | } | |
128 | 128 | } | |
129 | 129 | } | |
130 | 130 | ||
131 | 131 | let ae = { | |
132 | 132 | let af = i | |
133 | 133 | let ag = size(af) | |
134 | 134 | let ah = $Tuple2(nil, nil) | |
135 | 135 | func ai (aj,ak) = if ((ak >= ag)) | |
136 | 136 | then aj | |
137 | 137 | else T(aj, af[ak]) | |
138 | 138 | ||
139 | 139 | func al (aj,ak) = if ((ak >= ag)) | |
140 | 140 | then aj | |
141 | 141 | else throw("List size exceeds 10") | |
142 | 142 | ||
143 | 143 | al(ai(ai(ai(ai(ai(ai(ai(ai(ai(ai(ah, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
144 | 144 | } | |
145 | 145 | let am = ae._1 | |
146 | 146 | let an = ae._2 | |
147 | 147 | let ao = makeString(([toString(A), toString(B)] ++ an), "_") | |
148 | 148 | (am ++ [IntegerEntry(q, t), StringEntry(s(t), ao), IntegerEntry(u(t), c)]) | |
149 | 149 | } | |
150 | 150 | else throw("Strict value is not equal to itself.") | |
151 | 151 | } | |
152 | 152 | } | |
153 | 153 | } | |
154 | 154 | } | |
155 | 155 | } | |
156 | 156 | ||
157 | 157 | ||
158 | 158 | ||
159 | 159 | @Callable(E) | |
160 | 160 | func swap (t,ap,aq,ar,as) = if ((E.caller != j)) | |
161 | 161 | then throw("Access denied") | |
162 | 162 | else if ((size(E.payments) != 0)) | |
163 | 163 | then throw("Payments are prohibited") | |
164 | 164 | else { | |
165 | 165 | let H = w() | |
166 | 166 | if ((H != t)) | |
167 | 167 | then throw(((("Wrong payoutId: " + toString(t)) + ", should be: ") + toString(H))) | |
168 | 168 | else { | |
169 | 169 | let at = C(t) | |
170 | 170 | if ((at != c)) | |
171 | 171 | then throw((("Wrong payout status: " + toString(at)) + ", should be 1")) | |
172 | 172 | else { | |
173 | 173 | let au = if ((ap == p)) | |
174 | 174 | then $Tuple2(wavesBalance(this).available, unit) | |
175 | 175 | else { | |
176 | 176 | let av = fromBase58String(ap) | |
177 | 177 | $Tuple2(assetBalance(this, av), av) | |
178 | 178 | } | |
179 | 179 | let aw = au._1 | |
180 | 180 | let ax = au._2 | |
181 | 181 | let ay = invoke(m, "swapWithReferral", [ar, as, "puzzlenode"], [AttachedPayment(ax, aq)]) | |
182 | 182 | if ((ay == ay)) | |
183 | 183 | then { | |
184 | 184 | let az = if ((ap == p)) | |
185 | 185 | then wavesBalance(this).available | |
186 | 186 | else assetBalance(this, value(ax)) | |
187 | 187 | let aA = (az - (aw - aq)) | |
188 | 188 | if ((aA > 10)) | |
189 | 189 | then throw(("Rollback aggregator refund: " + toString(aA))) | |
190 | 190 | else nil | |
191 | 191 | } | |
192 | 192 | else throw("Strict value is not equal to itself.") | |
193 | 193 | } | |
194 | 194 | } | |
195 | 195 | } | |
196 | 196 | ||
197 | 197 | ||
198 | 198 | ||
199 | 199 | @Callable(E) | |
200 | 200 | func distributeTokens (t,aB,F,G,aC) = if ((E.caller != j)) | |
201 | 201 | then throw("Access denied") | |
202 | 202 | else if ((size(E.payments) != 0)) | |
203 | 203 | then throw("Payments are prohibited") | |
204 | 204 | else { | |
205 | 205 | let H = w() | |
206 | 206 | if ((H != t)) | |
207 | 207 | then throw(((("Wrong payoutId: " + toString(t)) + ", should be: ") + toString(H))) | |
208 | 208 | else { | |
209 | 209 | let at = C(t) | |
210 | 210 | if ((at != c)) | |
211 | 211 | then throw((("Wrong payout status: " + toString(at)) + ", should be 1")) | |
212 | 212 | else { | |
213 | 213 | let aD = size(aB) | |
214 | 214 | let N = size(F) | |
215 | 215 | let O = size(G) | |
216 | 216 | if (if ((aD != N)) | |
217 | 217 | then true | |
218 | 218 | else (aD != O)) | |
219 | 219 | then throw(((((("Wrong recipients size: " + toString(aD)) + ", amounts size: ") + toString(N)) + ", assets size: ") + toString(O))) | |
220 | 220 | else if ((aD == 0)) | |
221 | 221 | then throw("Recipients list should not be empty") | |
222 | 222 | else if ((aD > f)) | |
223 | 223 | then throw(((("Should be not greater than " + toString(f)) + " recipients, current: ") + toString(aD))) | |
224 | 224 | else { | |
225 | 225 | let aE = drop(toBytes(1), 7) | |
226 | 226 | let aF = drop(toBytes(h), 7) | |
227 | 227 | let aG = (aE + aF) | |
228 | 228 | func aH (U,V) = if ((V >= aD)) | |
229 | 229 | then U | |
230 | 230 | else { | |
231 | 231 | let aI = aB[V] | |
232 | 232 | let aJ = (aG + aI) | |
233 | 233 | let aK = take(keccak256(blake2b256(aJ)), 4) | |
234 | 234 | let aL = Address((aJ + aK)) | |
235 | 235 | let Z = F[V] | |
236 | 236 | let aM = G[V] | |
237 | 237 | let av = getBinaryValue(l, ("assetId_" + toString(aM))) | |
238 | 238 | let Y = if ((av == base58'')) | |
239 | 239 | then unit | |
240 | 240 | else av | |
241 | 241 | (U :+ ScriptTransfer(aL, Z, Y)) | |
242 | 242 | } | |
243 | 243 | ||
244 | 244 | let aN = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99] | |
245 | 245 | let af = aN | |
246 | 246 | let ag = size(af) | |
247 | 247 | let ah = nil | |
248 | 248 | func ai (aj,ak) = if ((ak >= ag)) | |
249 | 249 | then aj | |
250 | 250 | else aH(aj, af[ak]) | |
251 | 251 | ||
252 | 252 | func al (aj,ak) = if ((ak >= ag)) | |
253 | 253 | then aj | |
254 | 254 | else throw("List size exceeds 100") | |
255 | 255 | ||
256 | 256 | al(ai(ai(ai(ai(ai(ai(ai(ai(ai(ai(ai(ai(ai(ai(ai(ai(ai(ai(ai(ai(ai(ai(ai(ai(ai(ai(ai(ai(ai(ai(ai(ai(ai(ai(ai(ai(ai(ai(ai(ai(ai(ai(ai(ai(ai(ai(ai(ai(ai(ai(ai(ai(ai(ai(ai(ai(ai(ai(ai(ai(ai(ai(ai(ai(ai(ai(ai(ai(ai(ai(ai(ai(ai(ai(ai(ai(ai(ai(ai(ai(ai(ai(ai(ai(ai(ai(ai(ai(ai(ai(ai(ai(ai(ai(ai(ai(ai(ai(ai(ai(ah, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20), 21), 22), 23), 24), 25), 26), 27), 28), 29), 30), 31), 32), 33), 34), 35), 36), 37), 38), 39), 40), 41), 42), 43), 44), 45), 46), 47), 48), 49), 50), 51), 52), 53), 54), 55), 56), 57), 58), 59), 60), 61), 62), 63), 64), 65), 66), 67), 68), 69), 70), 71), 72), 73), 74), 75), 76), 77), 78), 79), 80), 81), 82), 83), 84), 85), 86), 87), 88), 89), 90), 91), 92), 93), 94), 95), 96), 97), 98), 99), 100) | |
257 | 257 | } | |
258 | 258 | } | |
259 | 259 | } | |
260 | 260 | } | |
261 | 261 | ||
262 | 262 | ||
263 | 263 | ||
264 | 264 | @Callable(E) | |
265 | 265 | func finalizePayout (t) = if ((E.caller != j)) | |
266 | 266 | then throw("Access denied") | |
267 | 267 | else { | |
268 | 268 | let H = w() | |
269 | 269 | if ((H != t)) | |
270 | 270 | then throw(((("Wrong payoutId: " + toString(t)) + ", should be: ") + toString(H))) | |
271 | 271 | else { | |
272 | 272 | let at = C(H) | |
273 | 273 | if ((at != c)) | |
274 | 274 | then throw((("Wrong payout status: " + toString(at)) + ", should be: 1")) | |
275 | 275 | else [IntegerEntry(u(H), d)] | |
276 | 276 | } | |
277 | 277 | } | |
278 | 278 | ||
279 | 279 | ||
280 | 280 | ||
281 | 281 | @Callable(E) | |
282 | 282 | func addAdditionalRewards () = if ((size(E.payments) != 1)) | |
283 | 283 | then throw("At least one payment should be attached") | |
284 | 284 | else if ((E.payments[0].assetId != unit)) | |
285 | 285 | then throw("Only waves can be attached") | |
286 | 286 | else { | |
287 | 287 | let H = w() | |
288 | 288 | let I = C(H) | |
289 | 289 | if ((I != d)) | |
290 | 290 | then throw((("Last payout: " + toString(H)) + " was not completed")) | |
291 | 291 | else { | |
292 | 292 | let aO = (H + 1) | |
293 | 293 | let S = D(aO) | |
294 | 294 | let aP = (S + E.payments[0].amount) | |
295 | 295 | [IntegerEntry(v(aO), aP)] | |
296 | 296 | } | |
297 | 297 | } | |
298 | 298 | ||
299 | 299 | ||
300 | 300 | ||
301 | 301 | @Callable(E) | |
302 | 302 | func addMassTransferFees () = if ((size(E.payments) != 1)) | |
303 | 303 | then throw("At least one payment should be attached") | |
304 | 304 | else if ((E.payments[0].assetId != unit)) | |
305 | 305 | then throw("Only waves can be attached") | |
306 | 306 | else { | |
307 | 307 | let aQ = valueOrElse(getInteger(r), 0) | |
308 | 308 | let aR = (aQ + E.payments[0].amount) | |
309 | 309 | [IntegerEntry(r, aR)] | |
310 | 310 | } | |
311 | 311 | ||
312 | 312 | ||
313 | 313 | ||
314 | 314 | @Callable(E) | |
315 | 315 | func withdrawMassTransferFees () = if ((E.caller != n)) | |
316 | 316 | then throw("Access denied") | |
317 | 317 | else if ((size(E.payments) != 0)) | |
318 | 318 | then throw("Payments are prohibited") | |
319 | 319 | else { | |
320 | 320 | let aQ = valueOrElse(getInteger(r), 0) | |
321 | 321 | if ((aQ == 0)) | |
322 | 322 | then throw("Nothing to withdraw") | |
323 | 323 | else [IntegerEntry(r, 0), ScriptTransfer(n, aQ, unit)] | |
324 | 324 | } | |
325 | 325 | ||
326 | 326 | ||
327 | 327 | @Verifier(aS) | |
328 | 328 | func aT () = { | |
329 | 329 | let aU = aS | |
330 | 330 | if ($isInstanceOf(aU, "MassTransferTransaction")) | |
331 | 331 | then { | |
332 | 332 | let aV = aU | |
333 | 333 | sigVerify_128Kb(aV.bodyBytes, aV.proofs[0], base58'3ezR5yaSmZAzqGt8iqRkYESRWpH1uaTKZ9ZffHD3C2Wc') | |
334 | 334 | } | |
335 | 335 | else sigVerify_128Kb(aS.bodyBytes, aS.proofs[0], base58'48u6HN3ArS3YcgWAwiuq3aAnviVc2uPwuEj2QuFcV4bd') | |
336 | 336 | } | |
337 | 337 |
github/deemru/w8io/026f985 41.00 ms ◑