tx · GewRLnZ119PVbVbseprJXCa52sqFbhT9maERQSVhkuAC 3Myn55vLkduxbX3ZXfiDCZhaQsLxYp1kmCy: -0.02500000 Waves 2023.08.25 16:13 [2726224] smart account 3Myn55vLkduxbX3ZXfiDCZhaQsLxYp1kmCy > SELF 0.00000000 Waves
{ "type": 13, "id": "GewRLnZ119PVbVbseprJXCa52sqFbhT9maERQSVhkuAC", "fee": 2500000, "feeAssetId": null, "timestamp": 1692969269944, "version": 2, "chainId": 84, "sender": "3Myn55vLkduxbX3ZXfiDCZhaQsLxYp1kmCy", "senderPublicKey": "9W33iCCNfmFxUbiC6XZcH5x7f6xfwC7Jb3BoExT5q2PV", "proofs": [ "4mkXNHHWLgQWkoaScgoU6nbnB17hiMkw44cDVUz2EwgwWTZsoMuCbJUQ1BYBh2U2vSBArEYBRvv6X2JJbpZF4faP" ], "script": "base64:BgLdLAgCEgUKAwEIAhIDCgEBEgQKAggIEgQKAggIEgMKAQgSAwoBCBIDCgEIEgQKAggBEgMKAQgSABIAEgUKAwgIBBIDCgEIEgMKAQgSBAoCCAgSBAoCCAgiA1NFUCIGU0NBTEU4IgVNVUxUOCIOUE9PTFdFSUdIVE1VTFQiEGNvbnRyYWN0RmlsZW5hbWUiB1NDQUxFMTgiBk1VTFQxOCIITVVMVDE4QkkiDkRFQ0FZX0NPTlNUQU5UIgd3cmFwRXJyIgNtc2ciCHRocm93RXJyIg9nZXRTdHJpbmdPckZhaWwiB2FkZHJlc3MiA2tleSIMZ2V0SW50T3JaZXJvIg9nZXRJbnRPckRlZmF1bHQiCmRlZmF1bHRWYWwiDGdldEludE9yRmFpbCIDYWJzIgN2YWwiDmVuc3VyZVBvc2l0aXZlIgF2IgFtIhtrZXlSZWZlcnJhbHNDb250cmFjdEFkZHJlc3MiHnJlZmVycmFsc0NvbnRyYWN0QWRkcmVzc09yRmFpbCIWa2V5UmVmZXJyYWxQcm9ncmFtTmFtZSIacmVmZXJyYWxQcm9ncmFtTmFtZURlZmF1bHQiE3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MWQICYkQCYkwJAJQKAgUDbmlsCQECY0wCBQJiRAUCYkwCYUwBIWdldFVzZXJWb3RlU3Rha2VkSW50ZWdyYWxSRUFET05MWQICYkQCYkwJAJQKAgUDbmlsCQECZGcCBQJiRAUCYkwBAmVRAQJlUgAEAmVTBAJhRwkBAmFJAAMJAAECBQJhRwIKQnl0ZVZlY3RvcgQCYU4FAmFHBQJhTgMJAAECBQJhRwIEVW5pdAgFAmVRD3NlbmRlclB1YmxpY0tleQkAAgECC01hdGNoIGVycm9yCQD0AwMIBQJlUQlib2R5Qnl0ZXMJAJEDAggFAmVRBnByb29mcwAABQJlU4EGWHM=", "height": 2726224, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: FSh4apSqk4CHYgJ6cjQxEpJdHyyNGeUDJDKd7Q8tkqro Next: 3XtQb5iVGAgH6CCTKnebu3M95kiD8t3sS8mkbYEvDs7u Diff:
Old | New | Differences | |
---|---|---|---|
675 | 675 | else false) | |
676 | 676 | then l(("amount is less then minLockAmount=" + toString(az))) | |
677 | 677 | else if ((aA > bd)) | |
678 | - | then l(("passed duration is less | |
678 | + | then l(("passed duration is less than minLockDuration=" + toString(aA))) | |
679 | 679 | else if ((bd > aB)) | |
680 | - | then l(("passed duration is greater | |
680 | + | then l(("passed duration is greater than maxLockDuration=" + toString(aB))) | |
681 | 681 | else if (((bd % aE) != 0)) | |
682 | 682 | then l(("duration must be multiple of lockStepBlocks=" + toString(aE))) | |
683 | 683 | else { |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = "__" | |
5 | 5 | ||
6 | 6 | let b = 8 | |
7 | 7 | ||
8 | 8 | let c = 100000000 | |
9 | 9 | ||
10 | 10 | let d = c | |
11 | 11 | ||
12 | 12 | let e = "boosting.ride" | |
13 | 13 | ||
14 | 14 | let f = 18 | |
15 | 15 | ||
16 | 16 | let g = 1000000000000000000 | |
17 | 17 | ||
18 | 18 | let h = toBigInt(g) | |
19 | 19 | ||
20 | 20 | let i = 8 | |
21 | 21 | ||
22 | 22 | func j (k) = makeString([e, ": ", k], "") | |
23 | 23 | ||
24 | 24 | ||
25 | 25 | func l (k) = throw(j(k)) | |
26 | 26 | ||
27 | 27 | ||
28 | 28 | func m (n,o) = valueOrErrorMessage(getString(n, o), j((("mandatory this." + o) + " is not defined"))) | |
29 | 29 | ||
30 | 30 | ||
31 | 31 | func p (n,o) = valueOrElse(getInteger(n, o), 0) | |
32 | 32 | ||
33 | 33 | ||
34 | 34 | func q (n,o,r) = valueOrElse(getInteger(n, o), r) | |
35 | 35 | ||
36 | 36 | ||
37 | 37 | func s (n,o) = valueOrErrorMessage(getInteger(n, o), j((("mandatory this." + o) + " is not defined"))) | |
38 | 38 | ||
39 | 39 | ||
40 | 40 | func t (u) = if ((0 > u)) | |
41 | 41 | then -(u) | |
42 | 42 | else u | |
43 | 43 | ||
44 | 44 | ||
45 | 45 | func v (w,x) = if ((w >= 0)) | |
46 | 46 | then w | |
47 | 47 | else l((valueOrElse(x, "value") + " should be positive")) | |
48 | 48 | ||
49 | 49 | ||
50 | 50 | func y () = makeString(["%s%s", "config", "referralsContractAddress"], a) | |
51 | 51 | ||
52 | 52 | ||
53 | 53 | let z = addressFromStringValue(m(this, y())) | |
54 | 54 | ||
55 | 55 | let A = makeString(["%s%s", "referral", "programName"], a) | |
56 | 56 | ||
57 | 57 | let B = "wxlock" | |
58 | 58 | ||
59 | 59 | let C = valueOrElse(getString(this, A), B) | |
60 | 60 | ||
61 | 61 | func D () = "%s%s__config__factoryAddress" | |
62 | 62 | ||
63 | 63 | ||
64 | 64 | let E = 1 | |
65 | 65 | ||
66 | 66 | let F = 2 | |
67 | 67 | ||
68 | 68 | let G = 3 | |
69 | 69 | ||
70 | 70 | let H = 4 | |
71 | 71 | ||
72 | 72 | let I = 5 | |
73 | 73 | ||
74 | 74 | let J = 6 | |
75 | 75 | ||
76 | 76 | let K = 7 | |
77 | 77 | ||
78 | 78 | let L = 8 | |
79 | 79 | ||
80 | 80 | let M = 9 | |
81 | 81 | ||
82 | 82 | let N = 10 | |
83 | 83 | ||
84 | 84 | let O = 11 | |
85 | 85 | ||
86 | 86 | func P () = "%s__factoryConfig" | |
87 | 87 | ||
88 | 88 | ||
89 | 89 | func Q (R) = makeString(["%s%s%s", R, "mappings__lpAsset2PoolContract"], a) | |
90 | 90 | ||
91 | 91 | ||
92 | 92 | func S (T) = makeString(["%s%s", "poolWeight", T], a) | |
93 | 93 | ||
94 | 94 | ||
95 | 95 | func U (V,W) = ((("%s%s__poolWeight__" + V) + "__") + toString(W)) | |
96 | 96 | ||
97 | 97 | ||
98 | 98 | func X () = addressFromStringValue(m(this, D())) | |
99 | 99 | ||
100 | 100 | ||
101 | 101 | func Y (Z) = split(m(Z, P()), a) | |
102 | 102 | ||
103 | 103 | ||
104 | 104 | func aa (ab) = addressFromStringValue(ab[F]) | |
105 | 105 | ||
106 | 106 | ||
107 | 107 | func ac (ab) = addressFromStringValue(ab[I]) | |
108 | 108 | ||
109 | 109 | ||
110 | 110 | func ad (ab) = addressFromStringValue(ab[E]) | |
111 | 111 | ||
112 | 112 | ||
113 | 113 | func ae (ab) = addressFromStringValue(ab[N]) | |
114 | 114 | ||
115 | 115 | ||
116 | 116 | func af () = "%s__managerPublicKey" | |
117 | 117 | ||
118 | 118 | ||
119 | 119 | func ag () = "%s__managerVaultAddress" | |
120 | 120 | ||
121 | 121 | ||
122 | 122 | func ah () = "%s%s__ratePerBlock__current" | |
123 | 123 | ||
124 | 124 | ||
125 | 125 | func ai () = "%s%s__ratePerBlockMax__current" | |
126 | 126 | ||
127 | 127 | ||
128 | 128 | func aj () = "%s%s__emission__startBlock" | |
129 | 129 | ||
130 | 130 | ||
131 | 131 | func ak () = "%s%s__boostingV2__startBlock" | |
132 | 132 | ||
133 | 133 | ||
134 | 134 | func al () = "%s%s__boostingV2__integral" | |
135 | 135 | ||
136 | 136 | ||
137 | 137 | func am () = "%s%s__emission__duration" | |
138 | 138 | ||
139 | 139 | ||
140 | 140 | func an () = "%s%s__emission__endBlock" | |
141 | 141 | ||
142 | 142 | ||
143 | 143 | let ao = 1 | |
144 | 144 | ||
145 | 145 | let ap = 2 | |
146 | 146 | ||
147 | 147 | let aq = 3 | |
148 | 148 | ||
149 | 149 | let ar = 4 | |
150 | 150 | ||
151 | 151 | let as = 5 | |
152 | 152 | ||
153 | 153 | let at = 6 | |
154 | 154 | ||
155 | 155 | let au = 7 | |
156 | 156 | ||
157 | 157 | func av () = "%s__config" | |
158 | 158 | ||
159 | 159 | ||
160 | 160 | func aw () = split(m(this, av()), a) | |
161 | 161 | ||
162 | 162 | ||
163 | 163 | let ax = aw() | |
164 | 164 | ||
165 | 165 | let ay = fromBase58String(ax[ao]) | |
166 | 166 | ||
167 | 167 | let az = valueOrErrorMessage(parseInt(ax[ap]), j("invalid min lock amount")) | |
168 | 168 | ||
169 | 169 | let aA = valueOrErrorMessage(parseInt(ax[aq]), j("invalid min lock duration")) | |
170 | 170 | ||
171 | 171 | let aB = valueOrErrorMessage(parseInt(ax[ar]), j("invalid max lock duration")) | |
172 | 172 | ||
173 | 173 | let aC = valueOrErrorMessage(addressFromString(ax[as]), j("invalid math contract address")) | |
174 | 174 | ||
175 | 175 | let aD = valueOrErrorMessage(parseInt(ax[at]), j("invalid blocks in period")) | |
176 | 176 | ||
177 | 177 | let aE = valueOrErrorMessage(parseInt(ax[au]), j("invalid lock step blocks")) | |
178 | 178 | ||
179 | 179 | func aF () = { | |
180 | 180 | let aG = getString(ag()) | |
181 | 181 | if ($isInstanceOf(aG, "String")) | |
182 | 182 | then { | |
183 | 183 | let aH = aG | |
184 | 184 | addressFromStringValue(aH) | |
185 | 185 | } | |
186 | 186 | else this | |
187 | 187 | } | |
188 | 188 | ||
189 | 189 | ||
190 | 190 | func aI () = { | |
191 | 191 | let aJ = aF() | |
192 | 192 | let aG = getString(aJ, af()) | |
193 | 193 | if ($isInstanceOf(aG, "String")) | |
194 | 194 | then { | |
195 | 195 | let aH = aG | |
196 | 196 | fromBase58String(aH) | |
197 | 197 | } | |
198 | 198 | else if ($isInstanceOf(aG, "Unit")) | |
199 | 199 | then unit | |
200 | 200 | else throw("Match error") | |
201 | 201 | } | |
202 | 202 | ||
203 | 203 | ||
204 | 204 | func aK (aL) = { | |
205 | 205 | let aM = l("Permission denied") | |
206 | 206 | let aG = aI() | |
207 | 207 | if ($isInstanceOf(aG, "ByteVector")) | |
208 | 208 | then { | |
209 | 209 | let aN = aG | |
210 | 210 | if ((aL.callerPublicKey == aN)) | |
211 | 211 | then true | |
212 | 212 | else aM | |
213 | 213 | } | |
214 | 214 | else if ($isInstanceOf(aG, "Unit")) | |
215 | 215 | then if ((aL.caller == this)) | |
216 | 216 | then true | |
217 | 217 | else aM | |
218 | 218 | else throw("Match error") | |
219 | 219 | } | |
220 | 220 | ||
221 | 221 | ||
222 | 222 | let aO = 1 | |
223 | 223 | ||
224 | 224 | let aP = 2 | |
225 | 225 | ||
226 | 226 | let aQ = 3 | |
227 | 227 | ||
228 | 228 | let aR = 4 | |
229 | 229 | ||
230 | 230 | let aS = 5 | |
231 | 231 | ||
232 | 232 | let aT = 6 | |
233 | 233 | ||
234 | 234 | func aU (aV,aW) = makeString(["%s%s%s__lock", toString(aV), { | |
235 | 235 | let aG = aW | |
236 | 236 | if ($isInstanceOf(aG, "ByteVector")) | |
237 | 237 | then { | |
238 | 238 | let aX = aG | |
239 | 239 | toBase58String(aX) | |
240 | 240 | } | |
241 | 241 | else if ($isInstanceOf(aG, "Unit")) | |
242 | 242 | then "legacy" | |
243 | 243 | else throw("Match error") | |
244 | 244 | }], a) | |
245 | 245 | ||
246 | 246 | ||
247 | 247 | func aY (aV,aW) = split(m(this, aU(aV, aW)), a) | |
248 | 248 | ||
249 | 249 | ||
250 | 250 | func aZ (aV) = makeString(["%s%s__gwxAmountTotal", toString(aV)], a) | |
251 | 251 | ||
252 | 252 | ||
253 | 253 | func ba (bb,bc,bd,be,bf) = makeString(["%d%d%d%d%d%d", toString(bb), toString(bc), toString(bd), toString(lastBlock.timestamp), toString(be), toString(bf)], a) | |
254 | 254 | ||
255 | 255 | ||
256 | 256 | func bg () = "%s__nextUserNum" | |
257 | 257 | ||
258 | 258 | ||
259 | 259 | func bh (aV) = makeString(["%s%s%s__mapping__user2num", aV], a) | |
260 | 260 | ||
261 | 261 | ||
262 | 262 | func bi (W) = makeString(["%s%s%s__mapping__num2user", W], a) | |
263 | 263 | ||
264 | 264 | ||
265 | 265 | func bj () = "%s%s__stats__activeTotalLocked" | |
266 | 266 | ||
267 | 267 | ||
268 | 268 | func bk () = "%s%s__stats__locksDurationSumInBlocks" | |
269 | 269 | ||
270 | 270 | ||
271 | 271 | func bl () = "%s%s__stats__locksCount" | |
272 | 272 | ||
273 | 273 | ||
274 | 274 | func bm () = "%s%s__stats__activeUsersCount" | |
275 | 275 | ||
276 | 276 | ||
277 | 277 | func bn (bo) = makeString(["%s%d__userBoostEmissionLastIntV2", toString(bo)], a) | |
278 | 278 | ||
279 | 279 | ||
280 | 280 | func bp (bo,bq) = makeString(["%s%d__userBoostEmissionLastIntV2", toString(bo), bq], a) | |
281 | 281 | ||
282 | 282 | ||
283 | 283 | func br (bo) = makeString(["%s%d__maxBoostInt", toString(bo)], a) | |
284 | 284 | ||
285 | 285 | ||
286 | 286 | func bs () = "%s%s__maxBoostInt__total" | |
287 | 287 | ||
288 | 288 | ||
289 | 289 | func bt (bo) = makeString(["%s%d__userBoostAvaliableToClaimTotal", toString(bo)], a) | |
290 | 290 | ||
291 | 291 | ||
292 | 292 | func bu (bo) = makeString(["%s%d__userBoostClaimed", toString(bo)], a) | |
293 | 293 | ||
294 | 294 | ||
295 | 295 | func bv () = "%s%s__gwx__total" | |
296 | 296 | ||
297 | 297 | ||
298 | 298 | func bw (bx,by,n,bz) = makeString(["%s%s%s%s%d", "vote", bx, by, toString(n), toString(bz)], a) | |
299 | 299 | ||
300 | 300 | ||
301 | 301 | func bA (bz) = makeString(["%s%d", "startHeight", toString(bz)], a) | |
302 | 302 | ||
303 | 303 | ||
304 | 304 | func bB () = makeString(["%s", "currentEpochUi"], a) | |
305 | 305 | ||
306 | 306 | ||
307 | 307 | func bC (bD,bz) = makeString(["%s%s%d", "votingResultStaked", bD, toString(bz)], a) | |
308 | 308 | ||
309 | 309 | ||
310 | 310 | func bE (bD,bz) = makeString(["%s%s%d", "votingResultStakedIntegral", bD, toString(bz)], a) | |
311 | 311 | ||
312 | 312 | ||
313 | 313 | func bF (bD,bz) = makeString(["%s%s%d", "votingResultStakedIntegralLastUpdateHeight", bD, toString(bz)], a) | |
314 | 314 | ||
315 | 315 | ||
316 | 316 | func bG (bD,n,bz) = makeString(["%s%s%s%d", "votingResultStakedIntegralLast", bD, toString(n), toString(bz)], a) | |
317 | 317 | ||
318 | 318 | ||
319 | 319 | func bH (bD,n,bz) = makeString(["%s%s%s%d", "voteStakedIntegral", bD, toString(n), toString(bz)], a) | |
320 | 320 | ||
321 | 321 | ||
322 | 322 | func bI (bD,n,bz) = makeString(["%s%s%s%d", "voteStakedIntegralLastUpdateHeight", bD, toString(n), toString(bz)], a) | |
323 | 323 | ||
324 | 324 | ||
325 | 325 | func bJ (bD,n,bz) = makeString(["%s%s%s%d", "voteStakedIntegralLast", bD, toString(n), toString(bz)], a) | |
326 | 326 | ||
327 | 327 | ||
328 | 328 | func bK (bL,bD) = makeString(["%s%s%s", "staked", bL, bD], a) | |
329 | 329 | ||
330 | 330 | ||
331 | 331 | let bM = X() | |
332 | 332 | ||
333 | 333 | let ab = Y(bM) | |
334 | 334 | ||
335 | 335 | let bN = ac(ab) | |
336 | 336 | ||
337 | 337 | let bO = ad(ab) | |
338 | 338 | ||
339 | 339 | let bP = ae(ab) | |
340 | 340 | ||
341 | 341 | let bQ = valueOrErrorMessage(addressFromString(valueOrErrorMessage(getString(makeString(["%s", "lpStakingPoolsContract"], a)), j("lp_staking_pools contract address is undefined"))), j("invalid lp_staking_pools contract address")) | |
342 | 342 | ||
343 | 343 | let bR = makeString(["%s", "votingEmissionContract"], a) | |
344 | 344 | ||
345 | 345 | let bS = addressFromStringValue(getStringValue(bM, bR)) | |
346 | 346 | ||
347 | 347 | let bT = makeString(["%s", "votingEmissionRateContract"], a) | |
348 | 348 | ||
349 | 349 | let bU = { | |
350 | 350 | let bV = invoke(bN, "getBoostCoeffREADONLY", nil, nil) | |
351 | 351 | if ($isInstanceOf(bV, "Int")) | |
352 | 352 | then bV | |
353 | 353 | else throw(($getType(bV) + " couldn't be cast to Int")) | |
354 | 354 | } | |
355 | 355 | ||
356 | 356 | func bW (aV) = { | |
357 | 357 | let aG = getString(this, bh(toString(aV))) | |
358 | 358 | if ($isInstanceOf(aG, "String")) | |
359 | 359 | then { | |
360 | 360 | let aH = aG | |
361 | 361 | valueOrErrorMessage(parseInt(aH), j("invalid user number")) | |
362 | 362 | } | |
363 | 363 | else if ($isInstanceOf(aG, "Unit")) | |
364 | 364 | then l("invalid user") | |
365 | 365 | else throw("Match error") | |
366 | 366 | } | |
367 | 367 | ||
368 | 368 | ||
369 | 369 | func bX () = valueOrElse(getInteger(this, bv()), 0) | |
370 | 370 | ||
371 | 371 | ||
372 | 372 | func bY (aV) = { | |
373 | 373 | let bZ = "getLockedGwxAmount" | |
374 | 374 | let ca = valueOrErrorMessage({ | |
375 | 375 | let aG = getString(bS, bT) | |
376 | 376 | if ($isInstanceOf(aG, "Unit")) | |
377 | 377 | then unit | |
378 | 378 | else if ($isInstanceOf(aG, "String")) | |
379 | 379 | then { | |
380 | 380 | let aH = aG | |
381 | 381 | addressFromString(aH) | |
382 | 382 | } | |
383 | 383 | else throw("Match error") | |
384 | 384 | }, j("invalid voting emission rate address")) | |
385 | 385 | let cb = { | |
386 | 386 | let bV = invoke(bS, bZ, [toString(aV)], nil) | |
387 | 387 | if ($isInstanceOf(bV, "Int")) | |
388 | 388 | then bV | |
389 | 389 | else throw(($getType(bV) + " couldn't be cast to Int")) | |
390 | 390 | } | |
391 | 391 | let cc = { | |
392 | 392 | let bV = invoke(ca, bZ, [toString(aV)], nil) | |
393 | 393 | if ($isInstanceOf(bV, "Int")) | |
394 | 394 | then bV | |
395 | 395 | else throw(($getType(bV) + " couldn't be cast to Int")) | |
396 | 396 | } | |
397 | 397 | let cd = max([cb, cc]) | |
398 | 398 | cd | |
399 | 399 | } | |
400 | 400 | ||
401 | 401 | ||
402 | 402 | func ce (cf,cg,bb,ch,bd,be,aL) = { | |
403 | 403 | let ci = makeString(["%s%s%s%s__history", cf, cg, toBase58String(aL.transactionId)], a) | |
404 | 404 | let cj = makeString(["%d%d%d%d%d%d%d", toString(lastBlock.height), toString(lastBlock.timestamp), toString(bb), toString(ch), toString(bd), toString(be)], a) | |
405 | 405 | StringEntry(ci, cj) | |
406 | 406 | } | |
407 | 407 | ||
408 | 408 | ||
409 | 409 | func ck (cl,cm,cn,co) = { | |
410 | 410 | let cp = bk() | |
411 | 411 | let cq = bl() | |
412 | 412 | let cr = bm() | |
413 | 413 | let cs = bj() | |
414 | 414 | let ct = p(this, cp) | |
415 | 415 | let cu = p(this, cq) | |
416 | 416 | let cv = p(this, cr) | |
417 | 417 | let cw = p(this, cs) | |
418 | 418 | [IntegerEntry(cp, (ct + cm)), IntegerEntry(cq, (cu + cn)), IntegerEntry(cr, (cv + co)), IntegerEntry(cs, (cw + cl))] | |
419 | 419 | } | |
420 | 420 | ||
421 | 421 | ||
422 | 422 | func cx (aV,aW,bb,bc,bd,be,bf) = [StringEntry(aU(aV, aW), ba(bb, bc, bd, be, bf))] | |
423 | 423 | ||
424 | 424 | ||
425 | 425 | func cy (aL,cz) = if ((size(aL.payments) > 1)) | |
426 | 426 | then l("only one payment is allowed") | |
427 | 427 | else if ((size(aL.payments) == 0)) | |
428 | 428 | then 0 | |
429 | 429 | else { | |
430 | 430 | let cA = aL.payments[0] | |
431 | 431 | if ((value(cA.assetId) != cz)) | |
432 | 432 | then l("invalid asset id in payment") | |
433 | 433 | else cA.amount | |
434 | 434 | } | |
435 | 435 | ||
436 | 436 | ||
437 | 437 | func cB (aV) = valueOrElse(getInteger(this, aZ(aV)), 0) | |
438 | 438 | ||
439 | 439 | ||
440 | 440 | func cC () = { | |
441 | 441 | let cD = { | |
442 | 442 | let cE = value(getInteger(bS, bB())) | |
443 | 443 | let cF = (cE - 1) | |
444 | 444 | if ((0 > cF)) | |
445 | 445 | then l("invalid epoch") | |
446 | 446 | else $Tuple2(cE, cF) | |
447 | 447 | } | |
448 | 448 | let cE = cD._1 | |
449 | 449 | let cF = cD._2 | |
450 | 450 | let cG = value(getInteger(bS, bA(cE))) | |
451 | 451 | $Tuple2(cF, cG) | |
452 | 452 | } | |
453 | 453 | ||
454 | 454 | ||
455 | 455 | func cH (bD) = { | |
456 | 456 | let cI = 4 | |
457 | 457 | let cJ = 5 | |
458 | 458 | let cK = { | |
459 | 459 | let bV = invoke(bM, "getPoolConfigByLpAssetIdREADONLY", [bD], nil) | |
460 | 460 | if ($isInstanceOf(bV, "List[Any]")) | |
461 | 461 | then bV | |
462 | 462 | else throw(($getType(bV) + " couldn't be cast to List[Any]")) | |
463 | 463 | } | |
464 | 464 | let bx = { | |
465 | 465 | let bV = cK[cI] | |
466 | 466 | if ($isInstanceOf(bV, "String")) | |
467 | 467 | then bV | |
468 | 468 | else throw(($getType(bV) + " couldn't be cast to String")) | |
469 | 469 | } | |
470 | 470 | let by = { | |
471 | 471 | let bV = cK[cJ] | |
472 | 472 | if ($isInstanceOf(bV, "String")) | |
473 | 473 | then bV | |
474 | 474 | else throw(($getType(bV) + " couldn't be cast to String")) | |
475 | 475 | } | |
476 | 476 | $Tuple2(bx, by) | |
477 | 477 | } | |
478 | 478 | ||
479 | 479 | ||
480 | 480 | func cL (bD,bL) = { | |
481 | 481 | let aV = addressFromStringValue(bL) | |
482 | 482 | let cM = cC() | |
483 | 483 | let cF = cM._1 | |
484 | 484 | let cG = cM._2 | |
485 | 485 | let cN = cH(bD) | |
486 | 486 | let bx = cN._1 | |
487 | 487 | let by = cN._2 | |
488 | 488 | let cO = bw(bx, by, aV, cF) | |
489 | 489 | let cP = valueOrElse(getInteger(bS, cO), 0) | |
490 | 490 | cP | |
491 | 491 | } | |
492 | 492 | ||
493 | 493 | ||
494 | 494 | func cQ (bD,bL) = { | |
495 | 495 | let cR = valueOrElse(getInteger(bO, bK(bL, bD)), 0) | |
496 | 496 | let cP = cL(bD, bL) | |
497 | 497 | if ((cR == 0)) | |
498 | 498 | then 0 | |
499 | 499 | else cP | |
500 | 500 | } | |
501 | 501 | ||
502 | 502 | ||
503 | 503 | func cS (bD) = { | |
504 | 504 | let cT = cC() | |
505 | 505 | let cF = cT._1 | |
506 | 506 | let cG = cT._2 | |
507 | 507 | let cU = valueOrElse(getInteger(bS, bC(bD, cF)), 0) | |
508 | 508 | let cV = valueOrElse(getInteger(this, bC(bD, cF)), cU) | |
509 | 509 | cV | |
510 | 510 | } | |
511 | 511 | ||
512 | 512 | ||
513 | 513 | func cW (bD) = { | |
514 | 514 | let cX = cC() | |
515 | 515 | let cF = cX._1 | |
516 | 516 | let cG = cX._2 | |
517 | 517 | let cV = cS(bD) | |
518 | 518 | let cY = valueOrElse(getInteger(this, bE(bD, cF)), 0) | |
519 | 519 | let cZ = valueOrElse(getInteger(this, bF(bD, cF)), cG) | |
520 | 520 | let da = (height - cZ) | |
521 | 521 | let db = ((da * cV) + cY) | |
522 | 522 | db | |
523 | 523 | } | |
524 | 524 | ||
525 | 525 | ||
526 | 526 | func dc (bD,dd) = { | |
527 | 527 | let de = cC() | |
528 | 528 | let cF = de._1 | |
529 | 529 | let cG = de._2 | |
530 | 530 | let cV = cS(bD) | |
531 | 531 | let df = (cV + dd) | |
532 | 532 | let db = cW(bD) | |
533 | 533 | [IntegerEntry(bC(bD, cF), df), IntegerEntry(bF(bD, cF), height), IntegerEntry(bE(bD, cF), db)] | |
534 | 534 | } | |
535 | 535 | ||
536 | 536 | ||
537 | 537 | func dg (bD,bL) = { | |
538 | 538 | let dh = cC() | |
539 | 539 | let cF = dh._1 | |
540 | 540 | let cG = dh._2 | |
541 | 541 | let aV = addressFromStringValue(bL) | |
542 | 542 | let di = cQ(bD, bL) | |
543 | 543 | let dj = valueOrElse(getInteger(this, bH(bD, aV, cF)), 0) | |
544 | 544 | let dk = valueOrElse(getInteger(this, bI(bD, aV, cF)), cG) | |
545 | 545 | let dl = (height - dk) | |
546 | 546 | let dm = ((dl * di) + dj) | |
547 | 547 | dm | |
548 | 548 | } | |
549 | 549 | ||
550 | 550 | ||
551 | 551 | func dn (bD,bL,do) = { | |
552 | 552 | let dp = cC() | |
553 | 553 | let cF = dp._1 | |
554 | 554 | let cG = dp._2 | |
555 | 555 | let aV = addressFromStringValue(bL) | |
556 | 556 | let dq = cL(bD, bL) | |
557 | 557 | let dr = if ((dq == 0)) | |
558 | 558 | then nil | |
559 | 559 | else { | |
560 | 560 | let dd = if (do) | |
561 | 561 | then dq | |
562 | 562 | else -(dq) | |
563 | 563 | let ds = dc(bD, dd) | |
564 | 564 | let dm = dg(bD, bL) | |
565 | 565 | let dt = [IntegerEntry(bI(bD, aV, cF), height), IntegerEntry(bH(bD, aV, cF), dm)] | |
566 | 566 | (ds ++ dt) | |
567 | 567 | } | |
568 | 568 | dr | |
569 | 569 | } | |
570 | 570 | ||
571 | 571 | ||
572 | 572 | func du (bD,bL) = { | |
573 | 573 | let dv = cC() | |
574 | 574 | let cF = dv._1 | |
575 | 575 | let cG = dv._2 | |
576 | 576 | let aV = addressFromStringValue(bL) | |
577 | 577 | let dw = bJ(bD, aV, cF) | |
578 | 578 | let dx = valueOrElse(getInteger(this, dw), 0) | |
579 | 579 | let dy = bG(bD, aV, cF) | |
580 | 580 | let dz = valueOrElse(getInteger(this, dy), 0) | |
581 | 581 | let dm = dg(bD, bL) | |
582 | 582 | let db = cW(bD) | |
583 | 583 | let dA = (dm - dx) | |
584 | 584 | let dB = (db - dz) | |
585 | 585 | $Tuple3([IntegerEntry(dw, dm), IntegerEntry(dy, db)], dA, dB) | |
586 | 586 | } | |
587 | 587 | ||
588 | 588 | ||
589 | 589 | func dC () = { | |
590 | 590 | let dD = s(bN, ah()) | |
591 | 591 | let dE = getInteger(this, ak()) | |
592 | 592 | let dF = getInteger(this, al()) | |
593 | 593 | let dG = s(bN, an()) | |
594 | 594 | let dH = if ((height > dG)) | |
595 | 595 | then dG | |
596 | 596 | else height | |
597 | 597 | let dI = { | |
598 | 598 | let aG = dE | |
599 | 599 | if ($isInstanceOf(aG, "Int")) | |
600 | 600 | then { | |
601 | 601 | let dJ = aG | |
602 | 602 | max([(dH - dJ), 0]) | |
603 | 603 | } | |
604 | 604 | else if ($isInstanceOf(aG, "Unit")) | |
605 | 605 | then 0 | |
606 | 606 | else throw("Match error") | |
607 | 607 | } | |
608 | 608 | let dK = ((dD * (bU - 1)) / bU) | |
609 | 609 | let dL = valueOrElse(dF, 0) | |
610 | 610 | let dM = ((dK * dI) + dL) | |
611 | 611 | $Tuple2([IntegerEntry(al(), dM), IntegerEntry(ak(), height)], dM) | |
612 | 612 | } | |
613 | 613 | ||
614 | 614 | ||
615 | 615 | func dN (bD,bL,dO) = { | |
616 | 616 | let aV = valueOrErrorMessage(addressFromString(bL), j("invalid user address")) | |
617 | 617 | let bo = bW(aV) | |
618 | 618 | if ((bo == bo)) | |
619 | 619 | then { | |
620 | 620 | let dP = "empty" | |
621 | 621 | let dQ = if ((bD != dP)) | |
622 | 622 | then { | |
623 | 623 | let dR = valueOrErrorMessage(getString(bM, Q(bD)), j(("unsupported lp asset " + bD))) | |
624 | 624 | getIntegerValue(bM, S(dR)) | |
625 | 625 | } | |
626 | 626 | else if (dO) | |
627 | 627 | then 0 | |
628 | 628 | else l(("not readonly mode: unsupported lp asset " + bD)) | |
629 | 629 | let dS = bp(bo, bD) | |
630 | 630 | let dT = bn(bo) | |
631 | 631 | let dU = valueOrElse(getInteger(this, dS), p(this, dT)) | |
632 | 632 | let dM = dC()._2 | |
633 | 633 | let dV = (dM - dU) | |
634 | 634 | if ((0 > dV)) | |
635 | 635 | then l("wrong calculations") | |
636 | 636 | else { | |
637 | 637 | let dW = du(bD, bL) | |
638 | 638 | let dX = dW._1 | |
639 | 639 | let dY = dW._2 | |
640 | 640 | let dZ = dW._3 | |
641 | 641 | let ea = fraction(dV, dQ, d) | |
642 | 642 | let eb = if ((dZ == 0)) | |
643 | 643 | then 0 | |
644 | 644 | else fraction(ea, dY, dZ) | |
645 | 645 | let ec = ([IntegerEntry(dS, dM)] ++ dX) | |
646 | 646 | let ed = makeString([toString(dU), toString(dV), toString(dQ), toString(dY), toString(dZ)], ":") | |
647 | 647 | $Tuple3(eb, ec, ed) | |
648 | 648 | } | |
649 | 649 | } | |
650 | 650 | else throw("Strict value is not equal to itself.") | |
651 | 651 | } | |
652 | 652 | ||
653 | 653 | ||
654 | 654 | func ee (aL,bd) = { | |
655 | 655 | let ef = toBase58String(ay) | |
656 | 656 | if ((size(aL.payments) != 1)) | |
657 | 657 | then l("invalid payment - exact one payment must be attached") | |
658 | 658 | else { | |
659 | 659 | let cA = aL.payments[0] | |
660 | 660 | let eg = cA.amount | |
661 | 661 | if ((ay != value(cA.assetId))) | |
662 | 662 | then l((("invalid asset is in payment - " + ef) + " is expected")) | |
663 | 663 | else { | |
664 | 664 | let eh = bg() | |
665 | 665 | let aV = aL.caller | |
666 | 666 | let bL = toString(aV) | |
667 | 667 | let ei = isDefined(getString(bh(bL))) | |
668 | 668 | let ej = if (ei) | |
669 | 669 | then value(getString(bh(bL))) | |
670 | 670 | else toString(s(this, eh)) | |
671 | 671 | let bo = parseIntValue(ej) | |
672 | 672 | let ch = height | |
673 | 673 | if (if ((az > eg)) | |
674 | 674 | then (aV != bQ) | |
675 | 675 | else false) | |
676 | 676 | then l(("amount is less then minLockAmount=" + toString(az))) | |
677 | 677 | else if ((aA > bd)) | |
678 | - | then l(("passed duration is less | |
678 | + | then l(("passed duration is less than minLockDuration=" + toString(aA))) | |
679 | 679 | else if ((bd > aB)) | |
680 | - | then l(("passed duration is greater | |
680 | + | then l(("passed duration is greater than maxLockDuration=" + toString(aB))) | |
681 | 681 | else if (((bd % aE) != 0)) | |
682 | 682 | then l(("duration must be multiple of lockStepBlocks=" + toString(aE))) | |
683 | 683 | else { | |
684 | 684 | let ek = fraction(eg, bd, aB) | |
685 | 685 | let el = bX() | |
686 | 686 | let dT = bn(bo) | |
687 | 687 | let dM = dC()._2 | |
688 | 688 | let em = cB(aV) | |
689 | 689 | let en = invoke(bP, "refreshUserReward", [aV.bytes, bo], nil) | |
690 | 690 | if ((en == en)) | |
691 | 691 | then { | |
692 | 692 | let eo = if (ei) | |
693 | 693 | then nil | |
694 | 694 | else [IntegerEntry(eh, (bo + 1)), StringEntry(bh(bL), ej), StringEntry(bi(ej), bL)] | |
695 | 695 | $Tuple2(((((eo ++ cx(aV, aL.transactionId, eg, ch, bd, ek, 0)) ++ ck(eg, bd, 1, if (ei) | |
696 | 696 | then 0 | |
697 | 697 | else 1)) :+ ce("lock", bL, eg, ch, bd, ek, aL)) ++ [IntegerEntry(dT, dM), IntegerEntry(bv(), (el + ek)), IntegerEntry(aZ(aV), (em + ek))]), ek) | |
698 | 698 | } | |
699 | 699 | else throw("Strict value is not equal to itself.") | |
700 | 700 | } | |
701 | 701 | } | |
702 | 702 | } | |
703 | 703 | } | |
704 | 704 | ||
705 | 705 | ||
706 | 706 | func ep (aV,eq) = { | |
707 | 707 | let er = aY(aV, eq) | |
708 | 708 | let es = parseIntValue(er[aO]) | |
709 | 709 | let ch = parseIntValue(er[aP]) | |
710 | 710 | let et = parseIntValue(er[aQ]) | |
711 | 711 | let eu = (ch + et) | |
712 | 712 | let bf = parseIntValue(er[aT]) | |
713 | 713 | let ev = ((height - ch) / aD) | |
714 | 714 | let ew = fraction(toBigInt(ev), (toBigInt((i * aD)) * h), toBigInt(et)) | |
715 | 715 | let ex = if ((height > eu)) | |
716 | 716 | then es | |
717 | 717 | else (toInt(fraction(toBigInt(es), (h - pow(toBigInt(5), 1, ew, f, f, DOWN)), h)) - bf) | |
718 | 718 | ex | |
719 | 719 | } | |
720 | 720 | ||
721 | 721 | ||
722 | 722 | @Callable(aL) | |
723 | 723 | func lockRef (bd,ey,ez) = { | |
724 | 724 | let eA = ee(aL, bd) | |
725 | 725 | let eB = eA._1 | |
726 | 726 | let ek = eA._2 | |
727 | 727 | let eC = toString(aL.caller) | |
728 | 728 | let eD = if (if ((ey == "")) | |
729 | 729 | then true | |
730 | 730 | else (ez == base58'')) | |
731 | 731 | then unit | |
732 | 732 | else invoke(z, "createPair", [C, ey, eC, ez], nil) | |
733 | 733 | if ((eD == eD)) | |
734 | 734 | then { | |
735 | 735 | let eE = invoke(aC, "updateReferralActivity", [toString(aL.caller), ek], nil) | |
736 | 736 | if ((eE == eE)) | |
737 | 737 | then $Tuple2(eB, unit) | |
738 | 738 | else throw("Strict value is not equal to itself.") | |
739 | 739 | } | |
740 | 740 | else throw("Strict value is not equal to itself.") | |
741 | 741 | } | |
742 | 742 | ||
743 | 743 | ||
744 | 744 | ||
745 | 745 | @Callable(aL) | |
746 | 746 | func lock (bd) = { | |
747 | 747 | let eF = ee(aL, bd) | |
748 | 748 | let eB = eF._1 | |
749 | 749 | let ek = eF._2 | |
750 | 750 | let eE = invoke(aC, "updateReferralActivity", [toString(aL.caller), ek], nil) | |
751 | 751 | if ((eE == eE)) | |
752 | 752 | then $Tuple2(eB, unit) | |
753 | 753 | else throw("Strict value is not equal to itself.") | |
754 | 754 | } | |
755 | 755 | ||
756 | 756 | ||
757 | 757 | ||
758 | 758 | @Callable(aL) | |
759 | 759 | func claimWxBoost (bD,bL) = if ((bO != aL.caller)) | |
760 | 760 | then l("permissions denied") | |
761 | 761 | else { | |
762 | 762 | let eG = dN(bD, bL, false) | |
763 | 763 | let eH = eG._1 | |
764 | 764 | let ec = eG._2 | |
765 | 765 | let ed = eG._3 | |
766 | 766 | $Tuple2(ec, [eH]) | |
767 | 767 | } | |
768 | 768 | ||
769 | 769 | ||
770 | 770 | ||
771 | 771 | @Callable(aL) | |
772 | 772 | func claimWxBoostREADONLY (bD,bL) = { | |
773 | 773 | let eI = dN(bD, bL, true) | |
774 | 774 | let eH = eI._1 | |
775 | 775 | let ec = eI._2 | |
776 | 776 | let ed = eI._3 | |
777 | 777 | $Tuple2(nil, [eH, ed]) | |
778 | 778 | } | |
779 | 779 | ||
780 | 780 | ||
781 | 781 | ||
782 | 782 | @Callable(aL) | |
783 | 783 | func unlock (eJ) = { | |
784 | 784 | let aV = aL.caller | |
785 | 785 | let bL = toString(aV) | |
786 | 786 | let eq = if ((eJ == "")) | |
787 | 787 | then unit | |
788 | 788 | else fromBase58String(eJ) | |
789 | 789 | let er = aY(aV, eq) | |
790 | 790 | let es = parseIntValue(er[aO]) | |
791 | 791 | let ch = parseIntValue(er[aP]) | |
792 | 792 | let et = parseIntValue(er[aQ]) | |
793 | 793 | let bf = parseIntValue(er[aT]) | |
794 | 794 | let be = parseIntValue(er[aS]) | |
795 | 795 | let ev = ((height - ch) / aD) | |
796 | 796 | let ex = ep(aV, eq) | |
797 | 797 | let ek = fraction(es, et, aB) | |
798 | 798 | let eK = min([fraction((ev * aD), ek, aB), be]) | |
799 | 799 | let eL = v((be - eK), "gwxRemaining") | |
800 | 800 | let eM = bY(aV) | |
801 | 801 | if ((0 >= ex)) | |
802 | 802 | then l("nothing to unlock") | |
803 | 803 | else { | |
804 | 804 | let el = bX() | |
805 | 805 | let em = cB(aV) | |
806 | 806 | let eN = v((em - eK), "userGwxAmountTotalNew") | |
807 | 807 | if ((eM > eN)) | |
808 | 808 | then l(("locked gwx amount: " + toString(eM))) | |
809 | 809 | else { | |
810 | 810 | let bo = parseIntValue(valueOrErrorMessage(getString(bh(bL)), j("invalid user number"))) | |
811 | 811 | let en = invoke(bP, "refreshUserReward", [aV.bytes, bo], nil) | |
812 | 812 | if ((en == en)) | |
813 | 813 | then ((((cx(aV, eq, es, ch, et, eL, (bf + ex)) ++ ck(-(ex), 0, 0, 0)) :+ ce("unlock", bL, ex, ch, et, eK, aL)) :+ ScriptTransfer(aV, ex, ay)) ++ [IntegerEntry(bv(), v((el - eK), "gwxTotal")), IntegerEntry(aZ(aV), eN)]) | |
814 | 814 | else throw("Strict value is not equal to itself.") | |
815 | 815 | } | |
816 | 816 | } | |
817 | 817 | } | |
818 | 818 | ||
819 | 819 | ||
820 | 820 | ||
821 | 821 | @Callable(aL) | |
822 | 822 | func gwxUserInfoREADONLY (bL) = { | |
823 | 823 | let aV = valueOrErrorMessage(addressFromString(bL), j("invalid user address")) | |
824 | 824 | let be = cB(aV) | |
825 | 825 | $Tuple2(nil, [be]) | |
826 | 826 | } | |
827 | 827 | ||
828 | 828 | ||
829 | 829 | ||
830 | 830 | @Callable(aL) | |
831 | 831 | func userMaxDurationREADONLY (bL) = $Tuple2(nil, $Tuple2("lock", aB)) | |
832 | 832 | ||
833 | 833 | ||
834 | 834 | ||
835 | 835 | @Callable(aL) | |
836 | 836 | func getUserGwxAmountAtHeightREADONLY (bL,eO) = { | |
837 | 837 | let aV = valueOrErrorMessage(addressFromString(bL), j("invalid user address")) | |
838 | 838 | let be = cB(aV) | |
839 | 839 | $Tuple2(nil, be) | |
840 | 840 | } | |
841 | 841 | ||
842 | 842 | ||
843 | 843 | ||
844 | 844 | @Callable(aL) | |
845 | 845 | func getUserGwxAmount (bL) = { | |
846 | 846 | let aV = valueOrErrorMessage(addressFromString(bL), j("invalid user address")) | |
847 | 847 | let be = cB(aV) | |
848 | 848 | $Tuple2(nil, be) | |
849 | 849 | } | |
850 | 850 | ||
851 | 851 | ||
852 | 852 | ||
853 | 853 | @Callable(aL) | |
854 | 854 | func getGwxTotalREADONLY () = $Tuple2(nil, bX()) | |
855 | 855 | ||
856 | 856 | ||
857 | 857 | ||
858 | 858 | @Callable(aL) | |
859 | 859 | func onBoostEmissionUpdate () = { | |
860 | 860 | let eP = if ((aL.caller == bN)) | |
861 | 861 | then true | |
862 | 862 | else aK(aL) | |
863 | 863 | if ((eP == eP)) | |
864 | 864 | then dC() | |
865 | 865 | else throw("Strict value is not equal to itself.") | |
866 | 866 | } | |
867 | 867 | ||
868 | 868 | ||
869 | 869 | ||
870 | 870 | @Callable(aL) | |
871 | 871 | func onStakedVoteUpdate (bD,bL,do) = { | |
872 | 872 | let eP = if ((aL.caller == bO)) | |
873 | 873 | then true | |
874 | 874 | else aK(aL) | |
875 | 875 | if ((eP == eP)) | |
876 | 876 | then { | |
877 | 877 | let dr = dn(bD, bL, do) | |
878 | 878 | $Tuple2(dr, unit) | |
879 | 879 | } | |
880 | 880 | else throw("Strict value is not equal to itself.") | |
881 | 881 | } | |
882 | 882 | ||
883 | 883 | ||
884 | 884 | ||
885 | 885 | @Callable(aL) | |
886 | 886 | func getVotingResultStakedREADONLY (bD) = $Tuple2(nil, cS(bD)) | |
887 | 887 | ||
888 | 888 | ||
889 | 889 | ||
890 | 890 | @Callable(aL) | |
891 | 891 | func getVotingResultStakedIntegralREADONLY (bD) = $Tuple2(nil, cW(bD)) | |
892 | 892 | ||
893 | 893 | ||
894 | 894 | ||
895 | 895 | @Callable(aL) | |
896 | 896 | func getUserVoteFinalizedREADONLY (bD,bL) = $Tuple2(nil, cL(bD, bL)) | |
897 | 897 | ||
898 | 898 | ||
899 | 899 | ||
900 | 900 | @Callable(aL) | |
901 | 901 | func getUserVoteStakedIntegralREADONLY (bD,bL) = $Tuple2(nil, dg(bD, bL)) | |
902 | 902 | ||
903 | 903 | ||
904 | 904 | @Verifier(eQ) | |
905 | 905 | func eR () = { | |
906 | 906 | let eS = { | |
907 | 907 | let aG = aI() | |
908 | 908 | if ($isInstanceOf(aG, "ByteVector")) | |
909 | 909 | then { | |
910 | 910 | let aN = aG | |
911 | 911 | aN | |
912 | 912 | } | |
913 | 913 | else if ($isInstanceOf(aG, "Unit")) | |
914 | 914 | then eQ.senderPublicKey | |
915 | 915 | else throw("Match error") | |
916 | 916 | } | |
917 | 917 | sigVerify(eQ.bodyBytes, eQ.proofs[0], eS) | |
918 | 918 | } | |
919 | 919 |
github/deemru/w8io/026f985 101.50 ms ◑