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