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