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