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