tx · F36yySi3mTjRtBBzaDiryJ7QNHrZfXnUQzaRZP7KEbte 3MzJZEn6jzxCPaHEfkrXd7FhbjTyVjdRPLS: -0.01400000 Waves 2021.04.14 10:22 [1481820] smart account 3MzJZEn6jzxCPaHEfkrXd7FhbjTyVjdRPLS > SELF 0.00000000 Waves
{ "type": 13, "id": "F36yySi3mTjRtBBzaDiryJ7QNHrZfXnUQzaRZP7KEbte", "fee": 1400000, "feeAssetId": null, "timestamp": 1618384944501, "version": 2, "chainId": 84, "sender": "3MzJZEn6jzxCPaHEfkrXd7FhbjTyVjdRPLS", "senderPublicKey": "93SZf1TATCRxGyBuGyngpQGKcpKZirb2yXLT2RQJ3UKb", "proofs": [ "2R2Bkp2JUAmTMJLXVGQvX3KnaoZaD9BHhC3G1uyFZyRhJK1p5F6wiGriXWX6X5Rto9FgyhvsBuvW4qUBjvfZBdyt" ], "script": "base64:AAIEAAAAAAAAABwIAhIAEgASAwoBARIAEgASBwoFGBEYEQESABIAAAAAOAAAAAAMYWRtaW5QdWJLZXkxAQAAACAEz3XlZNDBD05nuR8TZMQaDeqEJEIxfTOQXUBYCp2TSgAAAAAMYWRtaW5QdWJLZXkyAQAAACAEz3XlZNDBD05nuR8TZMQaDeqEJEIxfTOQXUBYCp2TSgAAAAAMYWRtaW5QdWJLZXkzAQAAACAEz3XlZNDBD05nuR8TZMQaDeqEJEIxfTOQXUBYCp2TSgAAAAAUYWRtaW5QdWJLZXlTdGFydFN0b3ABAAAAIATPdeVk0MEPTme5HxNkxBoN6oQkQjF9M5BdQFgKnZNKAAAAABFhZG1pblB1YktleVdhbGxldAEAAAAgPndaZVpWyfwpVzO1vA1FLcrMp/iFkg43d1jzYhVSFBIAAAAACWtleUFjdGl2ZQIAAAAGYWN0aXZlAAAAAAhrZXlDYXVzZQIAAAAOc2h1dGRvd25fY2F1c2UAAAAAD2tleUxhc3RJbnRlcmVzdAIAAAANbGFzdF9pbnRlcmVzdAAAAAATa2V5VXNlckxhc3RJbnRlcmV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dGhpcyBmdW5jdGlvbgkABEwAAAACCQEAAAAMQm9vbGVhbkVudHJ5AAAAAgUAAAAJa2V5QWN0aXZlBgkABEwAAAACCQEAAAALRGVsZXRlRW50cnkAAAABBQAAAAhrZXlDYXVzZQUAAAADbmlsAAAAAQAAAAJ0eAEAAAAGdmVyaWZ5AAAAAAkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXnIkX2z", "height": 1481820, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: DfnmqiRtLhk92m5reSEsbftLTd2fzrkBqG3dcBDAJWMa Next: mdqYbZgY8pFTDJHEabHACujCojjKa5RofcsGLhJkgPE Diff:
Old | New | Differences | |
---|---|---|---|
67 | 67 | ||
68 | 68 | let totalVoteShare = 10000000000 | |
69 | 69 | ||
70 | + | let kStartHeight = "start_height" | |
71 | + | ||
72 | + | let kBasePeriod = "base_period" | |
73 | + | ||
74 | + | let kPeriodLength = "period_length" | |
75 | + | ||
76 | + | let kUserTotalStruc = "_user_total_struc" | |
77 | + | ||
78 | + | let basePeriod = valueOrErrorMessage(getInteger(votingLiteContract, kBasePeriod), "Empty kBasePeriod at voting contract") | |
79 | + | ||
80 | + | let startHeight = valueOrErrorMessage(getInteger(votingLiteContract, kStartHeight), "Empty kStartHeight at voting contract") | |
81 | + | ||
82 | + | let periodLength = valueOrErrorMessage(getInteger(votingLiteContract, kPeriodLength), "Empty kPeriodLength at voting contract") | |
83 | + | ||
84 | + | let currVotingPeriod = (basePeriod + ((height - startHeight) / periodLength)) | |
85 | + | ||
70 | 86 | func suspend (cause) = [BooleanEntry(keyActive, false), StringEntry(keyCause, cause)] | |
71 | 87 | ||
72 | 88 | ||
101 | 117 | func getTotalSWOPLocked () = valueOrElse(getInteger(this, keyTotalSWOPLocked), 0) | |
102 | 118 | ||
103 | 119 | ||
104 | - | func getUserTotalVoteAmount (user) = valueOrElse(getInteger(votingLiteContract, (toString(user) + kUserTotalVoteSWOP)), 0) | |
120 | + | func getUserUnvoteAmount (user) = { | |
121 | + | let $t037794290 = if (isDefined(getString(this, (toString(user) + kUserTotalStruc)))) | |
122 | + | then { | |
123 | + | let data = split(valueOrErrorMessage(getString(this, (toString(user) + kUserTotalStruc)), "Empty kUserTotalStruc"), "_") | |
124 | + | $Tuple3(parseIntValue(data[0]), parseIntValue(data[1]), parseIntValue(data[2])) | |
125 | + | } | |
126 | + | else { | |
127 | + | let uPoolTotalSWOP = valueOrElse(getInteger(this, (toString(user) + kUserTotalVoteSWOP)), 0) | |
128 | + | $Tuple3(uPoolTotalSWOP, 0, currVotingPeriod) | |
129 | + | } | |
130 | + | let userTotalVoteSWOP = $t037794290._1 | |
131 | + | let userUnvoted = $t037794290._2 | |
132 | + | let userUnvotedPeriod = $t037794290._3 | |
133 | + | if ((userUnvotedPeriod == currVotingPeriod)) | |
134 | + | then userUnvoted | |
135 | + | else 0 | |
136 | + | } | |
105 | 137 | ||
106 | 138 | ||
107 | 139 | func getUserVoteOptionAmount (user) = valueOrElse(getInteger(this, (toString(user) + keyUserVoteOptionAmount)), 0) | |
149 | 181 | ||
150 | 182 | func claimCalc (caller) = { | |
151 | 183 | let lastInterest = getLastInterestInfo() | |
152 | - | let $ | |
153 | - | let userLastInterest = $ | |
154 | - | let userSWOPLocked = $ | |
184 | + | let $t060286108 = getUserInterestInfo(caller, lastInterest) | |
185 | + | let userLastInterest = $t060286108._1 | |
186 | + | let userSWOPLocked = $t060286108._2 | |
155 | 187 | let claimAmount = fraction(userSWOPLocked, (lastInterest - userLastInterest), scaleValue) | |
156 | 188 | let userNewInterest = lastInterest | |
157 | 189 | $Tuple2(userNewInterest, claimAmount) | |
162 | 194 | func airDrop () = if (!(isActive)) | |
163 | 195 | then throw("DApp is inactive at this moment") | |
164 | 196 | else { | |
165 | - | let $ | |
166 | - | let pmtAmount = $ | |
167 | - | let pmtAssetId = $ | |
197 | + | let $t063736448 = $Tuple2(i.payments[0].amount, i.payments[0].assetId) | |
198 | + | let pmtAmount = $t063736448._1 | |
199 | + | let pmtAssetId = $t063736448._2 | |
168 | 200 | if ((pmtAssetId != SWOP)) | |
169 | 201 | then throw("Incorrect pmtAssetId") | |
170 | 202 | else { | |
181 | 213 | func lockSWOP () = if (!(isActive)) | |
182 | 214 | then throw("DApp is inactive at this moment") | |
183 | 215 | else { | |
184 | - | let $ | |
185 | - | let pmtAmount = $ | |
186 | - | let pmtAssetId = $ | |
216 | + | let $t068866961 = $Tuple2(i.payments[0].amount, i.payments[0].assetId) | |
217 | + | let pmtAmount = $t068866961._1 | |
218 | + | let pmtAssetId = $t068866961._2 | |
187 | 219 | if ((pmtAssetId != SWOP)) | |
188 | 220 | then throw("Incorrect pmtAssetId") | |
189 | 221 | else { | |
190 | 222 | let lastInterest = getLastInterestInfo() | |
191 | - | let $ | |
192 | - | let userLastInterest = $ | |
193 | - | let userSWOPLocked = $ | |
223 | + | let $t070777159 = getUserInterestInfo(i.caller, lastInterest) | |
224 | + | let userLastInterest = $t070777159._1 | |
225 | + | let userSWOPLocked = $t070777159._2 | |
194 | 226 | let claimAmount = fraction(userSWOPLocked, (lastInterest - userLastInterest), scaleValue) | |
195 | 227 | let userSWOPLockedNew = ((userSWOPLocked + pmtAmount) + claimAmount) | |
196 | 228 | let userNewInterest = lastInterest | |
210 | 242 | else { | |
211 | 243 | let totalSWOPLocked = getTotalSWOPLocked() | |
212 | 244 | let userSWOPLocked = getUserSWOPLocked(i.caller) | |
213 | - | let $ | |
214 | - | let userNewInterest = $ | |
215 | - | let claimAmount = $ | |
216 | - | let | |
217 | - | let availableFund = (userSWOPLocked - | |
245 | + | let $t082438298 = claimCalc(i.caller) | |
246 | + | let userNewInterest = $t082438298._1 | |
247 | + | let claimAmount = $t082438298._2 | |
248 | + | let userUnvoteAmount = getUserUnvoteAmount(i.caller) | |
249 | + | let availableFund = (userSWOPLocked - userUnvoteAmount) | |
218 | 250 | if ((withdrawAmount > availableFund)) | |
219 | 251 | then throw("withdrawAmount > availableFund") | |
220 | 252 | else { | |
233 | 265 | then throw("DApp is inactive at this moment") | |
234 | 266 | else { | |
235 | 267 | let lastInterest = getLastInterestInfo() | |
236 | - | let $ | |
237 | - | let userNewInterest = $ | |
238 | - | let claimAmount = $ | |
268 | + | let $t094119466 = claimCalc(i.caller) | |
269 | + | let userNewInterest = $t094119466._1 | |
270 | + | let claimAmount = $t094119466._2 | |
239 | 271 | let userClaimedAmount = getUserSWOPClaimedAmount(i.caller) | |
240 | 272 | let userClaimedAmountNew = (userClaimedAmount + claimAmount) | |
241 | 273 | if ((claimAmount == 0)) | |
252 | 284 | let totalSWOPLocked = getTotalSWOPLocked() | |
253 | 285 | let userSWOPLocked = getUserSWOPLocked(i.caller) | |
254 | 286 | let lastInterest = getLastInterestInfo() | |
255 | - | let $ | |
256 | - | let userNewInterest = $ | |
257 | - | let claimAmount = $ | |
287 | + | let $t01024510300 = claimCalc(i.caller) | |
288 | + | let userNewInterest = $t01024510300._1 | |
289 | + | let claimAmount = $t01024510300._2 | |
258 | 290 | let userSWOPLockedNew = (userSWOPLocked + claimAmount) | |
259 | 291 | let totalSWOPLockedNew = (totalSWOPLocked + claimAmount) | |
260 | 292 | let userClaimedAmount = getUserSWOPClaimedAmount(i.caller) | |
269 | 301 | @Callable(i) | |
270 | 302 | func updateWeights (previousPools,previousRewards,currentPools,currentRewards,rewardUpdateHeight) = if (!(isActive)) | |
271 | 303 | then throw("DApp is inactive at this moment") | |
272 | - | else if (!(containsElement([adminPubKey1, adminPubKey2, adminPubKey3, adminPubKeyStartStop | |
304 | + | else if (!(containsElement([adminPubKey1, adminPubKey2, adminPubKey3, adminPubKeyStartStop], i.callerPublicKey))) | |
273 | 305 | then throw("Only admin can call this function") | |
274 | 306 | else { | |
275 | 307 | func sum (a,b) = (a + b) | |
287 | 319 | } | |
288 | 320 | ||
289 | 321 | let sumRewardPrevious = { | |
290 | - | let $ | |
291 | - | let $ | |
292 | - | let $ | |
293 | - | if (($ | |
294 | - | then $ | |
322 | + | let $list1206712100 = previousRewards | |
323 | + | let $size1206712100 = size($list1206712100) | |
324 | + | let $acc01206712100 = 0 | |
325 | + | if (($size1206712100 == 0)) | |
326 | + | then $acc01206712100 | |
295 | 327 | else { | |
296 | - | let $ | |
297 | - | if (($ | |
298 | - | then $ | |
328 | + | let $acc11206712100 = sum($acc01206712100, $list1206712100[0]) | |
329 | + | if (($size1206712100 == 1)) | |
330 | + | then $acc11206712100 | |
299 | 331 | else { | |
300 | - | let $ | |
301 | - | if (($ | |
302 | - | then $ | |
332 | + | let $acc21206712100 = sum($acc11206712100, $list1206712100[1]) | |
333 | + | if (($size1206712100 == 2)) | |
334 | + | then $acc21206712100 | |
303 | 335 | else { | |
304 | - | let $ | |
305 | - | if (($ | |
306 | - | then $ | |
336 | + | let $acc31206712100 = sum($acc21206712100, $list1206712100[2]) | |
337 | + | if (($size1206712100 == 3)) | |
338 | + | then $acc31206712100 | |
307 | 339 | else { | |
308 | - | let $ | |
309 | - | if (($ | |
310 | - | then $ | |
340 | + | let $acc41206712100 = sum($acc31206712100, $list1206712100[3]) | |
341 | + | if (($size1206712100 == 4)) | |
342 | + | then $acc41206712100 | |
311 | 343 | else { | |
312 | - | let $ | |
313 | - | if (($ | |
314 | - | then $ | |
344 | + | let $acc51206712100 = sum($acc41206712100, $list1206712100[4]) | |
345 | + | if (($size1206712100 == 5)) | |
346 | + | then $acc51206712100 | |
315 | 347 | else { | |
316 | - | let $ | |
317 | - | if (($ | |
318 | - | then $ | |
348 | + | let $acc61206712100 = sum($acc51206712100, $list1206712100[5]) | |
349 | + | if (($size1206712100 == 6)) | |
350 | + | then $acc61206712100 | |
319 | 351 | else { | |
320 | - | let $ | |
321 | - | if (($ | |
322 | - | then $ | |
352 | + | let $acc71206712100 = sum($acc61206712100, $list1206712100[6]) | |
353 | + | if (($size1206712100 == 7)) | |
354 | + | then $acc71206712100 | |
323 | 355 | else { | |
324 | - | let $ | |
325 | - | if (($ | |
326 | - | then $ | |
356 | + | let $acc81206712100 = sum($acc71206712100, $list1206712100[7]) | |
357 | + | if (($size1206712100 == 8)) | |
358 | + | then $acc81206712100 | |
327 | 359 | else { | |
328 | - | let $ | |
329 | - | if (($ | |
330 | - | then $ | |
360 | + | let $acc91206712100 = sum($acc81206712100, $list1206712100[8]) | |
361 | + | if (($size1206712100 == 9)) | |
362 | + | then $acc91206712100 | |
331 | 363 | else { | |
332 | - | let $ | |
333 | - | if (($ | |
334 | - | then $ | |
364 | + | let $acc101206712100 = sum($acc91206712100, $list1206712100[9]) | |
365 | + | if (($size1206712100 == 10)) | |
366 | + | then $acc101206712100 | |
335 | 367 | else { | |
336 | - | let $ | |
337 | - | if (($ | |
338 | - | then $ | |
368 | + | let $acc111206712100 = sum($acc101206712100, $list1206712100[10]) | |
369 | + | if (($size1206712100 == 11)) | |
370 | + | then $acc111206712100 | |
339 | 371 | else { | |
340 | - | let $ | |
341 | - | if (($ | |
342 | - | then $ | |
372 | + | let $acc121206712100 = sum($acc111206712100, $list1206712100[11]) | |
373 | + | if (($size1206712100 == 12)) | |
374 | + | then $acc121206712100 | |
343 | 375 | else { | |
344 | - | let $ | |
345 | - | if (($ | |
346 | - | then $ | |
376 | + | let $acc131206712100 = sum($acc121206712100, $list1206712100[12]) | |
377 | + | if (($size1206712100 == 13)) | |
378 | + | then $acc131206712100 | |
347 | 379 | else { | |
348 | - | let $ | |
349 | - | if (($ | |
350 | - | then $ | |
380 | + | let $acc141206712100 = sum($acc131206712100, $list1206712100[13]) | |
381 | + | if (($size1206712100 == 14)) | |
382 | + | then $acc141206712100 | |
351 | 383 | else { | |
352 | - | let $ | |
353 | - | if (($ | |
354 | - | then $ | |
384 | + | let $acc151206712100 = sum($acc141206712100, $list1206712100[14]) | |
385 | + | if (($size1206712100 == 15)) | |
386 | + | then $acc151206712100 | |
355 | 387 | else { | |
356 | - | let $ | |
357 | - | if (($ | |
358 | - | then $ | |
388 | + | let $acc161206712100 = sum($acc151206712100, $list1206712100[15]) | |
389 | + | if (($size1206712100 == 16)) | |
390 | + | then $acc161206712100 | |
359 | 391 | else { | |
360 | - | let $ | |
361 | - | if (($ | |
362 | - | then $ | |
392 | + | let $acc171206712100 = sum($acc161206712100, $list1206712100[16]) | |
393 | + | if (($size1206712100 == 17)) | |
394 | + | then $acc171206712100 | |
363 | 395 | else { | |
364 | - | let $ | |
365 | - | if (($ | |
366 | - | then $ | |
396 | + | let $acc181206712100 = sum($acc171206712100, $list1206712100[17]) | |
397 | + | if (($size1206712100 == 18)) | |
398 | + | then $acc181206712100 | |
367 | 399 | else { | |
368 | - | let $ | |
369 | - | if (($ | |
370 | - | then $ | |
400 | + | let $acc191206712100 = sum($acc181206712100, $list1206712100[18]) | |
401 | + | if (($size1206712100 == 19)) | |
402 | + | then $acc191206712100 | |
371 | 403 | else { | |
372 | - | let $ | |
373 | - | if (($ | |
374 | - | then $ | |
404 | + | let $acc201206712100 = sum($acc191206712100, $list1206712100[19]) | |
405 | + | if (($size1206712100 == 20)) | |
406 | + | then $acc201206712100 | |
375 | 407 | else { | |
376 | - | let $ | |
408 | + | let $acc211206712100 = sum($acc201206712100, $list1206712100[20]) | |
377 | 409 | throw("List size exceed 20") | |
378 | 410 | } | |
379 | 411 | } | |
398 | 430 | } | |
399 | 431 | } | |
400 | 432 | let sumRewardCurrent = { | |
401 | - | let $ | |
402 | - | let $ | |
403 | - | let $ | |
404 | - | if (($ | |
405 | - | then $ | |
433 | + | let $list1212912161 = currentRewards | |
434 | + | let $size1212912161 = size($list1212912161) | |
435 | + | let $acc01212912161 = 0 | |
436 | + | if (($size1212912161 == 0)) | |
437 | + | then $acc01212912161 | |
406 | 438 | else { | |
407 | - | let $ | |
408 | - | if (($ | |
409 | - | then $ | |
439 | + | let $acc11212912161 = sum($acc01212912161, $list1212912161[0]) | |
440 | + | if (($size1212912161 == 1)) | |
441 | + | then $acc11212912161 | |
410 | 442 | else { | |
411 | - | let $ | |
412 | - | if (($ | |
413 | - | then $ | |
443 | + | let $acc21212912161 = sum($acc11212912161, $list1212912161[1]) | |
444 | + | if (($size1212912161 == 2)) | |
445 | + | then $acc21212912161 | |
414 | 446 | else { | |
415 | - | let $ | |
416 | - | if (($ | |
417 | - | then $ | |
447 | + | let $acc31212912161 = sum($acc21212912161, $list1212912161[2]) | |
448 | + | if (($size1212912161 == 3)) | |
449 | + | then $acc31212912161 | |
418 | 450 | else { | |
419 | - | let $ | |
420 | - | if (($ | |
421 | - | then $ | |
451 | + | let $acc41212912161 = sum($acc31212912161, $list1212912161[3]) | |
452 | + | if (($size1212912161 == 4)) | |
453 | + | then $acc41212912161 | |
422 | 454 | else { | |
423 | - | let $ | |
424 | - | if (($ | |
425 | - | then $ | |
455 | + | let $acc51212912161 = sum($acc41212912161, $list1212912161[4]) | |
456 | + | if (($size1212912161 == 5)) | |
457 | + | then $acc51212912161 | |
426 | 458 | else { | |
427 | - | let $ | |
428 | - | if (($ | |
429 | - | then $ | |
459 | + | let $acc61212912161 = sum($acc51212912161, $list1212912161[5]) | |
460 | + | if (($size1212912161 == 6)) | |
461 | + | then $acc61212912161 | |
430 | 462 | else { | |
431 | - | let $ | |
432 | - | if (($ | |
433 | - | then $ | |
463 | + | let $acc71212912161 = sum($acc61212912161, $list1212912161[6]) | |
464 | + | if (($size1212912161 == 7)) | |
465 | + | then $acc71212912161 | |
434 | 466 | else { | |
435 | - | let $ | |
436 | - | if (($ | |
437 | - | then $ | |
467 | + | let $acc81212912161 = sum($acc71212912161, $list1212912161[7]) | |
468 | + | if (($size1212912161 == 8)) | |
469 | + | then $acc81212912161 | |
438 | 470 | else { | |
439 | - | let $ | |
440 | - | if (($ | |
441 | - | then $ | |
471 | + | let $acc91212912161 = sum($acc81212912161, $list1212912161[8]) | |
472 | + | if (($size1212912161 == 9)) | |
473 | + | then $acc91212912161 | |
442 | 474 | else { | |
443 | - | let $ | |
444 | - | if (($ | |
445 | - | then $ | |
475 | + | let $acc101212912161 = sum($acc91212912161, $list1212912161[9]) | |
476 | + | if (($size1212912161 == 10)) | |
477 | + | then $acc101212912161 | |
446 | 478 | else { | |
447 | - | let $ | |
448 | - | if (($ | |
449 | - | then $ | |
479 | + | let $acc111212912161 = sum($acc101212912161, $list1212912161[10]) | |
480 | + | if (($size1212912161 == 11)) | |
481 | + | then $acc111212912161 | |
450 | 482 | else { | |
451 | - | let $ | |
452 | - | if (($ | |
453 | - | then $ | |
483 | + | let $acc121212912161 = sum($acc111212912161, $list1212912161[11]) | |
484 | + | if (($size1212912161 == 12)) | |
485 | + | then $acc121212912161 | |
454 | 486 | else { | |
455 | - | let $ | |
456 | - | if (($ | |
457 | - | then $ | |
487 | + | let $acc131212912161 = sum($acc121212912161, $list1212912161[12]) | |
488 | + | if (($size1212912161 == 13)) | |
489 | + | then $acc131212912161 | |
458 | 490 | else { | |
459 | - | let $ | |
460 | - | if (($ | |
461 | - | then $ | |
491 | + | let $acc141212912161 = sum($acc131212912161, $list1212912161[13]) | |
492 | + | if (($size1212912161 == 14)) | |
493 | + | then $acc141212912161 | |
462 | 494 | else { | |
463 | - | let $ | |
464 | - | if (($ | |
465 | - | then $ | |
495 | + | let $acc151212912161 = sum($acc141212912161, $list1212912161[14]) | |
496 | + | if (($size1212912161 == 15)) | |
497 | + | then $acc151212912161 | |
466 | 498 | else { | |
467 | - | let $ | |
468 | - | if (($ | |
469 | - | then $ | |
499 | + | let $acc161212912161 = sum($acc151212912161, $list1212912161[15]) | |
500 | + | if (($size1212912161 == 16)) | |
501 | + | then $acc161212912161 | |
470 | 502 | else { | |
471 | - | let $ | |
472 | - | if (($ | |
473 | - | then $ | |
503 | + | let $acc171212912161 = sum($acc161212912161, $list1212912161[16]) | |
504 | + | if (($size1212912161 == 17)) | |
505 | + | then $acc171212912161 | |
474 | 506 | else { | |
475 | - | let $ | |
476 | - | if (($ | |
477 | - | then $ | |
507 | + | let $acc181212912161 = sum($acc171212912161, $list1212912161[17]) | |
508 | + | if (($size1212912161 == 18)) | |
509 | + | then $acc181212912161 | |
478 | 510 | else { | |
479 | - | let $ | |
480 | - | if (($ | |
481 | - | then $ | |
511 | + | let $acc191212912161 = sum($acc181212912161, $list1212912161[18]) | |
512 | + | if (($size1212912161 == 19)) | |
513 | + | then $acc191212912161 | |
482 | 514 | else { | |
483 | - | let $ | |
484 | - | if (($ | |
485 | - | then $ | |
515 | + | let $acc201212912161 = sum($acc191212912161, $list1212912161[19]) | |
516 | + | if (($size1212912161 == 20)) | |
517 | + | then $acc201212912161 | |
486 | 518 | else { | |
487 | - | let $ | |
519 | + | let $acc211212912161 = sum($acc201212912161, $list1212912161[20]) | |
488 | 520 | throw("List size exceed 20") | |
489 | 521 | } | |
490 | 522 | } | |
516 | 548 | then throw("sumRewardPrevious != totalVoteShare or sumRewardCurrent != totalVoteShare") | |
517 | 549 | else { | |
518 | 550 | let previousRewardEntryNew = { | |
519 | - | let $ | |
520 | - | let $ | |
521 | - | let $ | |
522 | - | if (($ | |
523 | - | then $ | |
551 | + | let $list1247312521 = previousPools | |
552 | + | let $size1247312521 = size($list1247312521) | |
553 | + | let $acc01247312521 = nil | |
554 | + | if (($size1247312521 == 0)) | |
555 | + | then $acc01247312521 | |
524 | 556 | else { | |
525 | - | let $ | |
526 | - | if (($ | |
527 | - | then $ | |
557 | + | let $acc11247312521 = PreviousRewardEntry($acc01247312521, $list1247312521[0]) | |
558 | + | if (($size1247312521 == 1)) | |
559 | + | then $acc11247312521 | |
528 | 560 | else { | |
529 | - | let $ | |
530 | - | if (($ | |
531 | - | then $ | |
561 | + | let $acc21247312521 = PreviousRewardEntry($acc11247312521, $list1247312521[1]) | |
562 | + | if (($size1247312521 == 2)) | |
563 | + | then $acc21247312521 | |
532 | 564 | else { | |
533 | - | let $ | |
534 | - | if (($ | |
535 | - | then $ | |
565 | + | let $acc31247312521 = PreviousRewardEntry($acc21247312521, $list1247312521[2]) | |
566 | + | if (($size1247312521 == 3)) | |
567 | + | then $acc31247312521 | |
536 | 568 | else { | |
537 | - | let $ | |
538 | - | if (($ | |
539 | - | then $ | |
569 | + | let $acc41247312521 = PreviousRewardEntry($acc31247312521, $list1247312521[3]) | |
570 | + | if (($size1247312521 == 4)) | |
571 | + | then $acc41247312521 | |
540 | 572 | else { | |
541 | - | let $ | |
542 | - | if (($ | |
543 | - | then $ | |
573 | + | let $acc51247312521 = PreviousRewardEntry($acc41247312521, $list1247312521[4]) | |
574 | + | if (($size1247312521 == 5)) | |
575 | + | then $acc51247312521 | |
544 | 576 | else { | |
545 | - | let $ | |
546 | - | if (($ | |
547 | - | then $ | |
577 | + | let $acc61247312521 = PreviousRewardEntry($acc51247312521, $list1247312521[5]) | |
578 | + | if (($size1247312521 == 6)) | |
579 | + | then $acc61247312521 | |
548 | 580 | else { | |
549 | - | let $ | |
550 | - | if (($ | |
551 | - | then $ | |
581 | + | let $acc71247312521 = PreviousRewardEntry($acc61247312521, $list1247312521[6]) | |
582 | + | if (($size1247312521 == 7)) | |
583 | + | then $acc71247312521 | |
552 | 584 | else { | |
553 | - | let $ | |
554 | - | if (($ | |
555 | - | then $ | |
585 | + | let $acc81247312521 = PreviousRewardEntry($acc71247312521, $list1247312521[7]) | |
586 | + | if (($size1247312521 == 8)) | |
587 | + | then $acc81247312521 | |
556 | 588 | else { | |
557 | - | let $ | |
558 | - | if (($ | |
559 | - | then $ | |
589 | + | let $acc91247312521 = PreviousRewardEntry($acc81247312521, $list1247312521[8]) | |
590 | + | if (($size1247312521 == 9)) | |
591 | + | then $acc91247312521 | |
560 | 592 | else { | |
561 | - | let $ | |
562 | - | if (($ | |
563 | - | then $ | |
593 | + | let $acc101247312521 = PreviousRewardEntry($acc91247312521, $list1247312521[9]) | |
594 | + | if (($size1247312521 == 10)) | |
595 | + | then $acc101247312521 | |
564 | 596 | else { | |
565 | - | let $ | |
566 | - | if (($ | |
567 | - | then $ | |
597 | + | let $acc111247312521 = PreviousRewardEntry($acc101247312521, $list1247312521[10]) | |
598 | + | if (($size1247312521 == 11)) | |
599 | + | then $acc111247312521 | |
568 | 600 | else { | |
569 | - | let $ | |
570 | - | if (($ | |
571 | - | then $ | |
601 | + | let $acc121247312521 = PreviousRewardEntry($acc111247312521, $list1247312521[11]) | |
602 | + | if (($size1247312521 == 12)) | |
603 | + | then $acc121247312521 | |
572 | 604 | else { | |
573 | - | let $ | |
574 | - | if (($ | |
575 | - | then $ | |
605 | + | let $acc131247312521 = PreviousRewardEntry($acc121247312521, $list1247312521[12]) | |
606 | + | if (($size1247312521 == 13)) | |
607 | + | then $acc131247312521 | |
576 | 608 | else { | |
577 | - | let $ | |
578 | - | if (($ | |
579 | - | then $ | |
609 | + | let $acc141247312521 = PreviousRewardEntry($acc131247312521, $list1247312521[13]) | |
610 | + | if (($size1247312521 == 14)) | |
611 | + | then $acc141247312521 | |
580 | 612 | else { | |
581 | - | let $ | |
582 | - | if (($ | |
583 | - | then $ | |
613 | + | let $acc151247312521 = PreviousRewardEntry($acc141247312521, $list1247312521[14]) | |
614 | + | if (($size1247312521 == 15)) | |
615 | + | then $acc151247312521 | |
584 | 616 | else { | |
585 | - | let $ | |
586 | - | if (($ | |
587 | - | then $ | |
617 | + | let $acc161247312521 = PreviousRewardEntry($acc151247312521, $list1247312521[15]) | |
618 | + | if (($size1247312521 == 16)) | |
619 | + | then $acc161247312521 | |
588 | 620 | else { | |
589 | - | let $ | |
590 | - | if (($ | |
591 | - | then $ | |
621 | + | let $acc171247312521 = PreviousRewardEntry($acc161247312521, $list1247312521[16]) | |
622 | + | if (($size1247312521 == 17)) | |
623 | + | then $acc171247312521 | |
592 | 624 | else { | |
593 | - | let $ | |
594 | - | if (($ | |
595 | - | then $ | |
625 | + | let $acc181247312521 = PreviousRewardEntry($acc171247312521, $list1247312521[17]) | |
626 | + | if (($size1247312521 == 18)) | |
627 | + | then $acc181247312521 | |
596 | 628 | else { | |
597 | - | let $ | |
598 | - | if (($ | |
599 | - | then $ | |
629 | + | let $acc191247312521 = PreviousRewardEntry($acc181247312521, $list1247312521[18]) | |
630 | + | if (($size1247312521 == 19)) | |
631 | + | then $acc191247312521 | |
600 | 632 | else { | |
601 | - | let $ | |
602 | - | if (($ | |
603 | - | then $ | |
633 | + | let $acc201247312521 = PreviousRewardEntry($acc191247312521, $list1247312521[19]) | |
634 | + | if (($size1247312521 == 20)) | |
635 | + | then $acc201247312521 | |
604 | 636 | else { | |
605 | - | let $ | |
637 | + | let $acc211247312521 = PreviousRewardEntry($acc201247312521, $list1247312521[20]) | |
606 | 638 | throw("List size exceed 20") | |
607 | 639 | } | |
608 | 640 | } | |
627 | 659 | } | |
628 | 660 | } | |
629 | 661 | let currentRewardEntryNew = { | |
630 | - | let $ | |
631 | - | let $ | |
632 | - | let $ | |
633 | - | if (($ | |
634 | - | then $ | |
662 | + | let $list1255412600 = currentPools | |
663 | + | let $size1255412600 = size($list1255412600) | |
664 | + | let $acc01255412600 = nil | |
665 | + | if (($size1255412600 == 0)) | |
666 | + | then $acc01255412600 | |
635 | 667 | else { | |
636 | - | let $ | |
637 | - | if (($ | |
638 | - | then $ | |
668 | + | let $acc11255412600 = CurrentRewardEntry($acc01255412600, $list1255412600[0]) | |
669 | + | if (($size1255412600 == 1)) | |
670 | + | then $acc11255412600 | |
639 | 671 | else { | |
640 | - | let $ | |
641 | - | if (($ | |
642 | - | then $ | |
672 | + | let $acc21255412600 = CurrentRewardEntry($acc11255412600, $list1255412600[1]) | |
673 | + | if (($size1255412600 == 2)) | |
674 | + | then $acc21255412600 | |
643 | 675 | else { | |
644 | - | let $ | |
645 | - | if (($ | |
646 | - | then $ | |
676 | + | let $acc31255412600 = CurrentRewardEntry($acc21255412600, $list1255412600[2]) | |
677 | + | if (($size1255412600 == 3)) | |
678 | + | then $acc31255412600 | |
647 | 679 | else { | |
648 | - | let $ | |
649 | - | if (($ | |
650 | - | then $ | |
680 | + | let $acc41255412600 = CurrentRewardEntry($acc31255412600, $list1255412600[3]) | |
681 | + | if (($size1255412600 == 4)) | |
682 | + | then $acc41255412600 | |
651 | 683 | else { | |
652 | - | let $ | |
653 | - | if (($ | |
654 | - | then $ | |
684 | + | let $acc51255412600 = CurrentRewardEntry($acc41255412600, $list1255412600[4]) | |
685 | + | if (($size1255412600 == 5)) | |
686 | + | then $acc51255412600 | |
655 | 687 | else { | |
656 | - | let $ | |
657 | - | if (($ | |
658 | - | then $ | |
688 | + | let $acc61255412600 = CurrentRewardEntry($acc51255412600, $list1255412600[5]) | |
689 | + | if (($size1255412600 == 6)) | |
690 | + | then $acc61255412600 | |
659 | 691 | else { | |
660 | - | let $ | |
661 | - | if (($ | |
662 | - | then $ | |
692 | + | let $acc71255412600 = CurrentRewardEntry($acc61255412600, $list1255412600[6]) | |
693 | + | if (($size1255412600 == 7)) | |
694 | + | then $acc71255412600 | |
663 | 695 | else { | |
664 | - | let $ | |
665 | - | if (($ | |
666 | - | then $ | |
696 | + | let $acc81255412600 = CurrentRewardEntry($acc71255412600, $list1255412600[7]) | |
697 | + | if (($size1255412600 == 8)) | |
698 | + | then $acc81255412600 | |
667 | 699 | else { | |
668 | - | let $ | |
669 | - | if (($ | |
670 | - | then $ | |
700 | + | let $acc91255412600 = CurrentRewardEntry($acc81255412600, $list1255412600[8]) | |
701 | + | if (($size1255412600 == 9)) | |
702 | + | then $acc91255412600 | |
671 | 703 | else { | |
672 | - | let $ | |
673 | - | if (($ | |
674 | - | then $ | |
704 | + | let $acc101255412600 = CurrentRewardEntry($acc91255412600, $list1255412600[9]) | |
705 | + | if (($size1255412600 == 10)) | |
706 | + | then $acc101255412600 | |
675 | 707 | else { | |
676 | - | let $ | |
677 | - | if (($ | |
678 | - | then $ | |
708 | + | let $acc111255412600 = CurrentRewardEntry($acc101255412600, $list1255412600[10]) | |
709 | + | if (($size1255412600 == 11)) | |
710 | + | then $acc111255412600 | |
679 | 711 | else { | |
680 | - | let $ | |
681 | - | if (($ | |
682 | - | then $ | |
712 | + | let $acc121255412600 = CurrentRewardEntry($acc111255412600, $list1255412600[11]) | |
713 | + | if (($size1255412600 == 12)) | |
714 | + | then $acc121255412600 | |
683 | 715 | else { | |
684 | - | let $ | |
685 | - | if (($ | |
686 | - | then $ | |
716 | + | let $acc131255412600 = CurrentRewardEntry($acc121255412600, $list1255412600[12]) | |
717 | + | if (($size1255412600 == 13)) | |
718 | + | then $acc131255412600 | |
687 | 719 | else { | |
688 | - | let $ | |
689 | - | if (($ | |
690 | - | then $ | |
720 | + | let $acc141255412600 = CurrentRewardEntry($acc131255412600, $list1255412600[13]) | |
721 | + | if (($size1255412600 == 14)) | |
722 | + | then $acc141255412600 | |
691 | 723 | else { | |
692 | - | let $ | |
693 | - | if (($ | |
694 | - | then $ | |
724 | + | let $acc151255412600 = CurrentRewardEntry($acc141255412600, $list1255412600[14]) | |
725 | + | if (($size1255412600 == 15)) | |
726 | + | then $acc151255412600 | |
695 | 727 | else { | |
696 | - | let $ | |
697 | - | if (($ | |
698 | - | then $ | |
728 | + | let $acc161255412600 = CurrentRewardEntry($acc151255412600, $list1255412600[15]) | |
729 | + | if (($size1255412600 == 16)) | |
730 | + | then $acc161255412600 | |
699 | 731 | else { | |
700 | - | let $ | |
701 | - | if (($ | |
702 | - | then $ | |
732 | + | let $acc171255412600 = CurrentRewardEntry($acc161255412600, $list1255412600[16]) | |
733 | + | if (($size1255412600 == 17)) | |
734 | + | then $acc171255412600 | |
703 | 735 | else { | |
704 | - | let $ | |
705 | - | if (($ | |
706 | - | then $ | |
736 | + | let $acc181255412600 = CurrentRewardEntry($acc171255412600, $list1255412600[17]) | |
737 | + | if (($size1255412600 == 18)) | |
738 | + | then $acc181255412600 | |
707 | 739 | else { | |
708 | - | let $ | |
709 | - | if (($ | |
710 | - | then $ | |
740 | + | let $acc191255412600 = CurrentRewardEntry($acc181255412600, $list1255412600[18]) | |
741 | + | if (($size1255412600 == 19)) | |
742 | + | then $acc191255412600 | |
711 | 743 | else { | |
712 | - | let $ | |
713 | - | if (($ | |
714 | - | then $ | |
744 | + | let $acc201255412600 = CurrentRewardEntry($acc191255412600, $list1255412600[19]) | |
745 | + | if (($size1255412600 == 20)) | |
746 | + | then $acc201255412600 | |
715 | 747 | else { | |
716 | - | let $ | |
748 | + | let $acc211255412600 = CurrentRewardEntry($acc201255412600, $list1255412600[20]) | |
717 | 749 | throw("List size exceed 20") | |
718 | 750 | } | |
719 | 751 | } |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 4 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let adminPubKey1 = base58'Kn7NpzaG12dLZgcHf2ipUftU6hbJygmrhFqQYE4B7ZK' | |
5 | 5 | ||
6 | 6 | let adminPubKey2 = base58'Kn7NpzaG12dLZgcHf2ipUftU6hbJygmrhFqQYE4B7ZK' | |
7 | 7 | ||
8 | 8 | let adminPubKey3 = base58'Kn7NpzaG12dLZgcHf2ipUftU6hbJygmrhFqQYE4B7ZK' | |
9 | 9 | ||
10 | 10 | let adminPubKeyStartStop = base58'Kn7NpzaG12dLZgcHf2ipUftU6hbJygmrhFqQYE4B7ZK' | |
11 | 11 | ||
12 | 12 | let adminPubKeyWallet = base58'5CqqMkmtXXt35KRH9LdWA3ap6TffPvTT5SHQzYrVFbBw' | |
13 | 13 | ||
14 | 14 | let keyActive = "active" | |
15 | 15 | ||
16 | 16 | let keyCause = "shutdown_cause" | |
17 | 17 | ||
18 | 18 | let keyLastInterest = "last_interest" | |
19 | 19 | ||
20 | 20 | let keyUserLastInterest = "_last_interest" | |
21 | 21 | ||
22 | 22 | let keyUserSWOPLocked = "_SWOP_amount" | |
23 | 23 | ||
24 | 24 | let keyUserGetBackHeight = "_getBackHeight" | |
25 | 25 | ||
26 | 26 | let keyTotalSWOPLocked = "total_SWOP_amount" | |
27 | 27 | ||
28 | 28 | let kUserTotalVoteSWOP = "_user_total_SWOP_vote" | |
29 | 29 | ||
30 | 30 | let keyUserVoteOptionAmount = "_SWOP_option_amount" | |
31 | 31 | ||
32 | 32 | let keyTotalVoteOptionAmount = "total_SWOP_option_amount" | |
33 | 33 | ||
34 | 34 | let keyUserSWOPClaimedAmount = "_SWOP_claimed_amount" | |
35 | 35 | ||
36 | 36 | let keyUserSWOPLastClaimedAmount = "_SWOP_last_claimed_amount" | |
37 | 37 | ||
38 | 38 | let keyVoteName = "vote_name" | |
39 | 39 | ||
40 | 40 | let keyOptionName = "_option_name" | |
41 | 41 | ||
42 | 42 | let keyVotingStartHeight = "_startHeight" | |
43 | 43 | ||
44 | 44 | let keyVoteDuration = "_vote_duration" | |
45 | 45 | ||
46 | 46 | let keyRewardPoolFractionCurrent = "_current_pool_fraction_reward" | |
47 | 47 | ||
48 | 48 | let keyRewardPoolFractionPrevious = "_previous_pool_fraction_reward" | |
49 | 49 | ||
50 | 50 | let keyTotalRewardPerBlockCurrent = "total_reward_per_block_current" | |
51 | 51 | ||
52 | 52 | let keyTotalRewardPerBlockPrevious = "total_reward_per_block_previous" | |
53 | 53 | ||
54 | 54 | let keyRewardUpdateHeight = "reward_update_height" | |
55 | 55 | ||
56 | 56 | let isActive = valueOrElse(getBoolean(this, keyActive), true) | |
57 | 57 | ||
58 | 58 | let farmingSWOPAddress = Address(base58'3MsjAKkxKjxVU4gC1BpJ1jKmAZyRufUCErC') | |
59 | 59 | ||
60 | 60 | let votingLiteContract = Address(base58'3N6CYoCsxrcXKe75pQvvV3JqJrwJjm1t4QN') | |
61 | 61 | ||
62 | 62 | let keySWOPid = "SWOP_id" | |
63 | 63 | ||
64 | 64 | let SWOP = fromBase58String(getStringValue(farmingSWOPAddress, keySWOPid)) | |
65 | 65 | ||
66 | 66 | let scaleValue = 100000000 | |
67 | 67 | ||
68 | 68 | let totalVoteShare = 10000000000 | |
69 | 69 | ||
70 | + | let kStartHeight = "start_height" | |
71 | + | ||
72 | + | let kBasePeriod = "base_period" | |
73 | + | ||
74 | + | let kPeriodLength = "period_length" | |
75 | + | ||
76 | + | let kUserTotalStruc = "_user_total_struc" | |
77 | + | ||
78 | + | let basePeriod = valueOrErrorMessage(getInteger(votingLiteContract, kBasePeriod), "Empty kBasePeriod at voting contract") | |
79 | + | ||
80 | + | let startHeight = valueOrErrorMessage(getInteger(votingLiteContract, kStartHeight), "Empty kStartHeight at voting contract") | |
81 | + | ||
82 | + | let periodLength = valueOrErrorMessage(getInteger(votingLiteContract, kPeriodLength), "Empty kPeriodLength at voting contract") | |
83 | + | ||
84 | + | let currVotingPeriod = (basePeriod + ((height - startHeight) / periodLength)) | |
85 | + | ||
70 | 86 | func suspend (cause) = [BooleanEntry(keyActive, false), StringEntry(keyCause, cause)] | |
71 | 87 | ||
72 | 88 | ||
73 | 89 | func throwNotEnoughSWOP () = throw("Not enough SWOP: userSWOPLocked - userTotalVoteAmount < voteSWOPAmount") | |
74 | 90 | ||
75 | 91 | ||
76 | 92 | func getLastInterestInfo () = { | |
77 | 93 | let lastInterest = valueOrElse(getInteger(this, keyLastInterest), 0) | |
78 | 94 | lastInterest | |
79 | 95 | } | |
80 | 96 | ||
81 | 97 | ||
82 | 98 | func getUserSWOPLocked (user) = valueOrElse(getInteger(this, (toString(user) + keyUserSWOPLocked)), 0) | |
83 | 99 | ||
84 | 100 | ||
85 | 101 | func getUserSWOPClaimedAmount (user) = valueOrElse(getInteger(this, (toString(user) + keyUserSWOPClaimedAmount)), 0) | |
86 | 102 | ||
87 | 103 | ||
88 | 104 | func getUserInterestInfo (user,lastInterest) = { | |
89 | 105 | let userSWOPAmount = getUserSWOPLocked(user) | |
90 | 106 | let userLastInterest = getInteger(this, (toString(user) + keyUserLastInterest)) | |
91 | 107 | let userLastInterestValue = match userLastInterest { | |
92 | 108 | case userLastInterest: Int => | |
93 | 109 | userLastInterest | |
94 | 110 | case _ => | |
95 | 111 | lastInterest | |
96 | 112 | } | |
97 | 113 | $Tuple2(userLastInterestValue, userSWOPAmount) | |
98 | 114 | } | |
99 | 115 | ||
100 | 116 | ||
101 | 117 | func getTotalSWOPLocked () = valueOrElse(getInteger(this, keyTotalSWOPLocked), 0) | |
102 | 118 | ||
103 | 119 | ||
104 | - | func getUserTotalVoteAmount (user) = valueOrElse(getInteger(votingLiteContract, (toString(user) + kUserTotalVoteSWOP)), 0) | |
120 | + | func getUserUnvoteAmount (user) = { | |
121 | + | let $t037794290 = if (isDefined(getString(this, (toString(user) + kUserTotalStruc)))) | |
122 | + | then { | |
123 | + | let data = split(valueOrErrorMessage(getString(this, (toString(user) + kUserTotalStruc)), "Empty kUserTotalStruc"), "_") | |
124 | + | $Tuple3(parseIntValue(data[0]), parseIntValue(data[1]), parseIntValue(data[2])) | |
125 | + | } | |
126 | + | else { | |
127 | + | let uPoolTotalSWOP = valueOrElse(getInteger(this, (toString(user) + kUserTotalVoteSWOP)), 0) | |
128 | + | $Tuple3(uPoolTotalSWOP, 0, currVotingPeriod) | |
129 | + | } | |
130 | + | let userTotalVoteSWOP = $t037794290._1 | |
131 | + | let userUnvoted = $t037794290._2 | |
132 | + | let userUnvotedPeriod = $t037794290._3 | |
133 | + | if ((userUnvotedPeriod == currVotingPeriod)) | |
134 | + | then userUnvoted | |
135 | + | else 0 | |
136 | + | } | |
105 | 137 | ||
106 | 138 | ||
107 | 139 | func getUserVoteOptionAmount (user) = valueOrElse(getInteger(this, (toString(user) + keyUserVoteOptionAmount)), 0) | |
108 | 140 | ||
109 | 141 | ||
110 | 142 | func getVotingStartHeight (voteName) = valueOrElse(getInteger(this, (voteName + keyVotingStartHeight)), 0) | |
111 | 143 | ||
112 | 144 | ||
113 | 145 | func getVoteOptionAmount (user,voteName,option) = { | |
114 | 146 | let userVoteOptionAmount = getInteger(this, (((voteName + option) + toString(user)) + keyUserVoteOptionAmount)) | |
115 | 147 | let uvoa = match userVoteOptionAmount { | |
116 | 148 | case uvoa: Int => | |
117 | 149 | uvoa | |
118 | 150 | case uvoa: Unit => | |
119 | 151 | 0 | |
120 | 152 | case _ => | |
121 | 153 | throw("Match error") | |
122 | 154 | } | |
123 | 155 | valueOrErrorMessage(uvoa, (((("No data on the key: " + voteName) + option) + toString(user)) + keyUserVoteOptionAmount)) | |
124 | 156 | } | |
125 | 157 | ||
126 | 158 | ||
127 | 159 | func getVoteDuration (voteName) = valueOrErrorMessage(getInteger(this, (voteName + keyVoteDuration)), (("No data on the key: " + voteName) + keyVoteDuration)) | |
128 | 160 | ||
129 | 161 | ||
130 | 162 | func getTotalVoteOptionAmount (voteName,option) = { | |
131 | 163 | let totalVoteOptionAmount = getInteger(this, ((voteName + option) + keyTotalVoteOptionAmount)) | |
132 | 164 | let tvoa = match totalVoteOptionAmount { | |
133 | 165 | case tvoa: Int => | |
134 | 166 | tvoa | |
135 | 167 | case tvoa: Unit => | |
136 | 168 | 0 | |
137 | 169 | case _ => | |
138 | 170 | throw("Match error") | |
139 | 171 | } | |
140 | 172 | tvoa | |
141 | 173 | } | |
142 | 174 | ||
143 | 175 | ||
144 | 176 | func getUserGetBackAmount (voteName,option,user,getBackSWOPHeight) = { | |
145 | 177 | let key = ((((((voteName + "_") + option) + "_") + toString(user)) + "_") + toString(getBackSWOPHeight)) | |
146 | 178 | valueOrErrorMessage(getInteger(this, key), ("No data on the key: " + key)) | |
147 | 179 | } | |
148 | 180 | ||
149 | 181 | ||
150 | 182 | func claimCalc (caller) = { | |
151 | 183 | let lastInterest = getLastInterestInfo() | |
152 | - | let $ | |
153 | - | let userLastInterest = $ | |
154 | - | let userSWOPLocked = $ | |
184 | + | let $t060286108 = getUserInterestInfo(caller, lastInterest) | |
185 | + | let userLastInterest = $t060286108._1 | |
186 | + | let userSWOPLocked = $t060286108._2 | |
155 | 187 | let claimAmount = fraction(userSWOPLocked, (lastInterest - userLastInterest), scaleValue) | |
156 | 188 | let userNewInterest = lastInterest | |
157 | 189 | $Tuple2(userNewInterest, claimAmount) | |
158 | 190 | } | |
159 | 191 | ||
160 | 192 | ||
161 | 193 | @Callable(i) | |
162 | 194 | func airDrop () = if (!(isActive)) | |
163 | 195 | then throw("DApp is inactive at this moment") | |
164 | 196 | else { | |
165 | - | let $ | |
166 | - | let pmtAmount = $ | |
167 | - | let pmtAssetId = $ | |
197 | + | let $t063736448 = $Tuple2(i.payments[0].amount, i.payments[0].assetId) | |
198 | + | let pmtAmount = $t063736448._1 | |
199 | + | let pmtAssetId = $t063736448._2 | |
168 | 200 | if ((pmtAssetId != SWOP)) | |
169 | 201 | then throw("Incorrect pmtAssetId") | |
170 | 202 | else { | |
171 | 203 | let totalSWOPLocked = getTotalSWOPLocked() | |
172 | 204 | let lastInterest = getLastInterestInfo() | |
173 | 205 | let interestNew = (lastInterest + fraction(pmtAmount, scaleValue, totalSWOPLocked)) | |
174 | 206 | [IntegerEntry(keyLastInterest, interestNew)] | |
175 | 207 | } | |
176 | 208 | } | |
177 | 209 | ||
178 | 210 | ||
179 | 211 | ||
180 | 212 | @Callable(i) | |
181 | 213 | func lockSWOP () = if (!(isActive)) | |
182 | 214 | then throw("DApp is inactive at this moment") | |
183 | 215 | else { | |
184 | - | let $ | |
185 | - | let pmtAmount = $ | |
186 | - | let pmtAssetId = $ | |
216 | + | let $t068866961 = $Tuple2(i.payments[0].amount, i.payments[0].assetId) | |
217 | + | let pmtAmount = $t068866961._1 | |
218 | + | let pmtAssetId = $t068866961._2 | |
187 | 219 | if ((pmtAssetId != SWOP)) | |
188 | 220 | then throw("Incorrect pmtAssetId") | |
189 | 221 | else { | |
190 | 222 | let lastInterest = getLastInterestInfo() | |
191 | - | let $ | |
192 | - | let userLastInterest = $ | |
193 | - | let userSWOPLocked = $ | |
223 | + | let $t070777159 = getUserInterestInfo(i.caller, lastInterest) | |
224 | + | let userLastInterest = $t070777159._1 | |
225 | + | let userSWOPLocked = $t070777159._2 | |
194 | 226 | let claimAmount = fraction(userSWOPLocked, (lastInterest - userLastInterest), scaleValue) | |
195 | 227 | let userSWOPLockedNew = ((userSWOPLocked + pmtAmount) + claimAmount) | |
196 | 228 | let userNewInterest = lastInterest | |
197 | 229 | let totalSWOPLocked = getTotalSWOPLocked() | |
198 | 230 | let totalSWOPLockedNew = ((totalSWOPLocked + pmtAmount) + claimAmount) | |
199 | 231 | let userClaimedAmount = getUserSWOPClaimedAmount(i.caller) | |
200 | 232 | let userClaimedAmountNew = (userClaimedAmount + claimAmount) | |
201 | 233 | [IntegerEntry((toString(i.caller) + keyUserLastInterest), userNewInterest), IntegerEntry((toString(i.caller) + keyUserSWOPLocked), userSWOPLockedNew), IntegerEntry(keyTotalSWOPLocked, totalSWOPLockedNew), IntegerEntry((toString(i.caller) + keyUserSWOPClaimedAmount), userClaimedAmountNew), IntegerEntry((toString(i.caller) + keyUserSWOPLastClaimedAmount), claimAmount)] | |
202 | 234 | } | |
203 | 235 | } | |
204 | 236 | ||
205 | 237 | ||
206 | 238 | ||
207 | 239 | @Callable(i) | |
208 | 240 | func withdrawSWOP (withdrawAmount) = if (!(isActive)) | |
209 | 241 | then throw("DApp is inactive at this moment") | |
210 | 242 | else { | |
211 | 243 | let totalSWOPLocked = getTotalSWOPLocked() | |
212 | 244 | let userSWOPLocked = getUserSWOPLocked(i.caller) | |
213 | - | let $ | |
214 | - | let userNewInterest = $ | |
215 | - | let claimAmount = $ | |
216 | - | let | |
217 | - | let availableFund = (userSWOPLocked - | |
245 | + | let $t082438298 = claimCalc(i.caller) | |
246 | + | let userNewInterest = $t082438298._1 | |
247 | + | let claimAmount = $t082438298._2 | |
248 | + | let userUnvoteAmount = getUserUnvoteAmount(i.caller) | |
249 | + | let availableFund = (userSWOPLocked - userUnvoteAmount) | |
218 | 250 | if ((withdrawAmount > availableFund)) | |
219 | 251 | then throw("withdrawAmount > availableFund") | |
220 | 252 | else { | |
221 | 253 | let totalSWOPLockedNew = ((totalSWOPLocked + claimAmount) - withdrawAmount) | |
222 | 254 | let userSWOPamountNew = ((userSWOPLocked + claimAmount) - withdrawAmount) | |
223 | 255 | let userClaimedAmount = getUserSWOPClaimedAmount(i.caller) | |
224 | 256 | let userClaimedAmountNew = (userClaimedAmount + claimAmount) | |
225 | 257 | [IntegerEntry((toString(i.caller) + keyUserLastInterest), userNewInterest), IntegerEntry((toString(i.caller) + keyUserSWOPLocked), userSWOPamountNew), IntegerEntry(keyTotalSWOPLocked, totalSWOPLockedNew), ScriptTransfer(i.caller, withdrawAmount, SWOP), IntegerEntry((toString(i.caller) + keyUserSWOPClaimedAmount), userClaimedAmountNew), IntegerEntry((toString(i.caller) + keyUserSWOPLastClaimedAmount), claimAmount)] | |
226 | 258 | } | |
227 | 259 | } | |
228 | 260 | ||
229 | 261 | ||
230 | 262 | ||
231 | 263 | @Callable(i) | |
232 | 264 | func claimAndWithdrawSWOP () = if (!(isActive)) | |
233 | 265 | then throw("DApp is inactive at this moment") | |
234 | 266 | else { | |
235 | 267 | let lastInterest = getLastInterestInfo() | |
236 | - | let $ | |
237 | - | let userNewInterest = $ | |
238 | - | let claimAmount = $ | |
268 | + | let $t094119466 = claimCalc(i.caller) | |
269 | + | let userNewInterest = $t094119466._1 | |
270 | + | let claimAmount = $t094119466._2 | |
239 | 271 | let userClaimedAmount = getUserSWOPClaimedAmount(i.caller) | |
240 | 272 | let userClaimedAmountNew = (userClaimedAmount + claimAmount) | |
241 | 273 | if ((claimAmount == 0)) | |
242 | 274 | then throw("You have 0 available SWOP") | |
243 | 275 | else [IntegerEntry((toString(i.caller) + keyUserLastInterest), userNewInterest), IntegerEntry((toString(i.caller) + keyUserSWOPClaimedAmount), userClaimedAmountNew), IntegerEntry((toString(i.caller) + keyUserSWOPLastClaimedAmount), claimAmount), ScriptTransfer(i.caller, claimAmount, SWOP)] | |
244 | 276 | } | |
245 | 277 | ||
246 | 278 | ||
247 | 279 | ||
248 | 280 | @Callable(i) | |
249 | 281 | func claimAndStakeSWOP () = if (!(isActive)) | |
250 | 282 | then throw("DApp is inactive at this moment") | |
251 | 283 | else { | |
252 | 284 | let totalSWOPLocked = getTotalSWOPLocked() | |
253 | 285 | let userSWOPLocked = getUserSWOPLocked(i.caller) | |
254 | 286 | let lastInterest = getLastInterestInfo() | |
255 | - | let $ | |
256 | - | let userNewInterest = $ | |
257 | - | let claimAmount = $ | |
287 | + | let $t01024510300 = claimCalc(i.caller) | |
288 | + | let userNewInterest = $t01024510300._1 | |
289 | + | let claimAmount = $t01024510300._2 | |
258 | 290 | let userSWOPLockedNew = (userSWOPLocked + claimAmount) | |
259 | 291 | let totalSWOPLockedNew = (totalSWOPLocked + claimAmount) | |
260 | 292 | let userClaimedAmount = getUserSWOPClaimedAmount(i.caller) | |
261 | 293 | let userClaimedAmountNew = (userClaimedAmount + claimAmount) | |
262 | 294 | if ((claimAmount == 0)) | |
263 | 295 | then throw("You have 0 available SWOP") | |
264 | 296 | else [IntegerEntry((toString(i.caller) + keyUserLastInterest), userNewInterest), IntegerEntry(keyTotalSWOPLocked, totalSWOPLockedNew), IntegerEntry((toString(i.caller) + keyUserSWOPLocked), userSWOPLockedNew), IntegerEntry((toString(i.caller) + keyUserSWOPClaimedAmount), userClaimedAmountNew), IntegerEntry((toString(i.caller) + keyUserSWOPLastClaimedAmount), claimAmount)] | |
265 | 297 | } | |
266 | 298 | ||
267 | 299 | ||
268 | 300 | ||
269 | 301 | @Callable(i) | |
270 | 302 | func updateWeights (previousPools,previousRewards,currentPools,currentRewards,rewardUpdateHeight) = if (!(isActive)) | |
271 | 303 | then throw("DApp is inactive at this moment") | |
272 | - | else if (!(containsElement([adminPubKey1, adminPubKey2, adminPubKey3, adminPubKeyStartStop | |
304 | + | else if (!(containsElement([adminPubKey1, adminPubKey2, adminPubKey3, adminPubKeyStartStop], i.callerPublicKey))) | |
273 | 305 | then throw("Only admin can call this function") | |
274 | 306 | else { | |
275 | 307 | func sum (a,b) = (a + b) | |
276 | 308 | ||
277 | 309 | func PreviousRewardEntry (accumulated,pool) = { | |
278 | 310 | let poolIndex = value(indexOf(previousPools, pool)) | |
279 | 311 | let poolReward = previousRewards[poolIndex] | |
280 | 312 | IntegerEntry((pool + keyRewardPoolFractionPrevious), poolReward) :: accumulated | |
281 | 313 | } | |
282 | 314 | ||
283 | 315 | func CurrentRewardEntry (accumulated,pool) = { | |
284 | 316 | let poolIndex = value(indexOf(currentPools, pool)) | |
285 | 317 | let poolReward = currentRewards[poolIndex] | |
286 | 318 | IntegerEntry((pool + keyRewardPoolFractionCurrent), poolReward) :: accumulated | |
287 | 319 | } | |
288 | 320 | ||
289 | 321 | let sumRewardPrevious = { | |
290 | - | let $ | |
291 | - | let $ | |
292 | - | let $ | |
293 | - | if (($ | |
294 | - | then $ | |
322 | + | let $list1206712100 = previousRewards | |
323 | + | let $size1206712100 = size($list1206712100) | |
324 | + | let $acc01206712100 = 0 | |
325 | + | if (($size1206712100 == 0)) | |
326 | + | then $acc01206712100 | |
295 | 327 | else { | |
296 | - | let $ | |
297 | - | if (($ | |
298 | - | then $ | |
328 | + | let $acc11206712100 = sum($acc01206712100, $list1206712100[0]) | |
329 | + | if (($size1206712100 == 1)) | |
330 | + | then $acc11206712100 | |
299 | 331 | else { | |
300 | - | let $ | |
301 | - | if (($ | |
302 | - | then $ | |
332 | + | let $acc21206712100 = sum($acc11206712100, $list1206712100[1]) | |
333 | + | if (($size1206712100 == 2)) | |
334 | + | then $acc21206712100 | |
303 | 335 | else { | |
304 | - | let $ | |
305 | - | if (($ | |
306 | - | then $ | |
336 | + | let $acc31206712100 = sum($acc21206712100, $list1206712100[2]) | |
337 | + | if (($size1206712100 == 3)) | |
338 | + | then $acc31206712100 | |
307 | 339 | else { | |
308 | - | let $ | |
309 | - | if (($ | |
310 | - | then $ | |
340 | + | let $acc41206712100 = sum($acc31206712100, $list1206712100[3]) | |
341 | + | if (($size1206712100 == 4)) | |
342 | + | then $acc41206712100 | |
311 | 343 | else { | |
312 | - | let $ | |
313 | - | if (($ | |
314 | - | then $ | |
344 | + | let $acc51206712100 = sum($acc41206712100, $list1206712100[4]) | |
345 | + | if (($size1206712100 == 5)) | |
346 | + | then $acc51206712100 | |
315 | 347 | else { | |
316 | - | let $ | |
317 | - | if (($ | |
318 | - | then $ | |
348 | + | let $acc61206712100 = sum($acc51206712100, $list1206712100[5]) | |
349 | + | if (($size1206712100 == 6)) | |
350 | + | then $acc61206712100 | |
319 | 351 | else { | |
320 | - | let $ | |
321 | - | if (($ | |
322 | - | then $ | |
352 | + | let $acc71206712100 = sum($acc61206712100, $list1206712100[6]) | |
353 | + | if (($size1206712100 == 7)) | |
354 | + | then $acc71206712100 | |
323 | 355 | else { | |
324 | - | let $ | |
325 | - | if (($ | |
326 | - | then $ | |
356 | + | let $acc81206712100 = sum($acc71206712100, $list1206712100[7]) | |
357 | + | if (($size1206712100 == 8)) | |
358 | + | then $acc81206712100 | |
327 | 359 | else { | |
328 | - | let $ | |
329 | - | if (($ | |
330 | - | then $ | |
360 | + | let $acc91206712100 = sum($acc81206712100, $list1206712100[8]) | |
361 | + | if (($size1206712100 == 9)) | |
362 | + | then $acc91206712100 | |
331 | 363 | else { | |
332 | - | let $ | |
333 | - | if (($ | |
334 | - | then $ | |
364 | + | let $acc101206712100 = sum($acc91206712100, $list1206712100[9]) | |
365 | + | if (($size1206712100 == 10)) | |
366 | + | then $acc101206712100 | |
335 | 367 | else { | |
336 | - | let $ | |
337 | - | if (($ | |
338 | - | then $ | |
368 | + | let $acc111206712100 = sum($acc101206712100, $list1206712100[10]) | |
369 | + | if (($size1206712100 == 11)) | |
370 | + | then $acc111206712100 | |
339 | 371 | else { | |
340 | - | let $ | |
341 | - | if (($ | |
342 | - | then $ | |
372 | + | let $acc121206712100 = sum($acc111206712100, $list1206712100[11]) | |
373 | + | if (($size1206712100 == 12)) | |
374 | + | then $acc121206712100 | |
343 | 375 | else { | |
344 | - | let $ | |
345 | - | if (($ | |
346 | - | then $ | |
376 | + | let $acc131206712100 = sum($acc121206712100, $list1206712100[12]) | |
377 | + | if (($size1206712100 == 13)) | |
378 | + | then $acc131206712100 | |
347 | 379 | else { | |
348 | - | let $ | |
349 | - | if (($ | |
350 | - | then $ | |
380 | + | let $acc141206712100 = sum($acc131206712100, $list1206712100[13]) | |
381 | + | if (($size1206712100 == 14)) | |
382 | + | then $acc141206712100 | |
351 | 383 | else { | |
352 | - | let $ | |
353 | - | if (($ | |
354 | - | then $ | |
384 | + | let $acc151206712100 = sum($acc141206712100, $list1206712100[14]) | |
385 | + | if (($size1206712100 == 15)) | |
386 | + | then $acc151206712100 | |
355 | 387 | else { | |
356 | - | let $ | |
357 | - | if (($ | |
358 | - | then $ | |
388 | + | let $acc161206712100 = sum($acc151206712100, $list1206712100[15]) | |
389 | + | if (($size1206712100 == 16)) | |
390 | + | then $acc161206712100 | |
359 | 391 | else { | |
360 | - | let $ | |
361 | - | if (($ | |
362 | - | then $ | |
392 | + | let $acc171206712100 = sum($acc161206712100, $list1206712100[16]) | |
393 | + | if (($size1206712100 == 17)) | |
394 | + | then $acc171206712100 | |
363 | 395 | else { | |
364 | - | let $ | |
365 | - | if (($ | |
366 | - | then $ | |
396 | + | let $acc181206712100 = sum($acc171206712100, $list1206712100[17]) | |
397 | + | if (($size1206712100 == 18)) | |
398 | + | then $acc181206712100 | |
367 | 399 | else { | |
368 | - | let $ | |
369 | - | if (($ | |
370 | - | then $ | |
400 | + | let $acc191206712100 = sum($acc181206712100, $list1206712100[18]) | |
401 | + | if (($size1206712100 == 19)) | |
402 | + | then $acc191206712100 | |
371 | 403 | else { | |
372 | - | let $ | |
373 | - | if (($ | |
374 | - | then $ | |
404 | + | let $acc201206712100 = sum($acc191206712100, $list1206712100[19]) | |
405 | + | if (($size1206712100 == 20)) | |
406 | + | then $acc201206712100 | |
375 | 407 | else { | |
376 | - | let $ | |
408 | + | let $acc211206712100 = sum($acc201206712100, $list1206712100[20]) | |
377 | 409 | throw("List size exceed 20") | |
378 | 410 | } | |
379 | 411 | } | |
380 | 412 | } | |
381 | 413 | } | |
382 | 414 | } | |
383 | 415 | } | |
384 | 416 | } | |
385 | 417 | } | |
386 | 418 | } | |
387 | 419 | } | |
388 | 420 | } | |
389 | 421 | } | |
390 | 422 | } | |
391 | 423 | } | |
392 | 424 | } | |
393 | 425 | } | |
394 | 426 | } | |
395 | 427 | } | |
396 | 428 | } | |
397 | 429 | } | |
398 | 430 | } | |
399 | 431 | } | |
400 | 432 | let sumRewardCurrent = { | |
401 | - | let $ | |
402 | - | let $ | |
403 | - | let $ | |
404 | - | if (($ | |
405 | - | then $ | |
433 | + | let $list1212912161 = currentRewards | |
434 | + | let $size1212912161 = size($list1212912161) | |
435 | + | let $acc01212912161 = 0 | |
436 | + | if (($size1212912161 == 0)) | |
437 | + | then $acc01212912161 | |
406 | 438 | else { | |
407 | - | let $ | |
408 | - | if (($ | |
409 | - | then $ | |
439 | + | let $acc11212912161 = sum($acc01212912161, $list1212912161[0]) | |
440 | + | if (($size1212912161 == 1)) | |
441 | + | then $acc11212912161 | |
410 | 442 | else { | |
411 | - | let $ | |
412 | - | if (($ | |
413 | - | then $ | |
443 | + | let $acc21212912161 = sum($acc11212912161, $list1212912161[1]) | |
444 | + | if (($size1212912161 == 2)) | |
445 | + | then $acc21212912161 | |
414 | 446 | else { | |
415 | - | let $ | |
416 | - | if (($ | |
417 | - | then $ | |
447 | + | let $acc31212912161 = sum($acc21212912161, $list1212912161[2]) | |
448 | + | if (($size1212912161 == 3)) | |
449 | + | then $acc31212912161 | |
418 | 450 | else { | |
419 | - | let $ | |
420 | - | if (($ | |
421 | - | then $ | |
451 | + | let $acc41212912161 = sum($acc31212912161, $list1212912161[3]) | |
452 | + | if (($size1212912161 == 4)) | |
453 | + | then $acc41212912161 | |
422 | 454 | else { | |
423 | - | let $ | |
424 | - | if (($ | |
425 | - | then $ | |
455 | + | let $acc51212912161 = sum($acc41212912161, $list1212912161[4]) | |
456 | + | if (($size1212912161 == 5)) | |
457 | + | then $acc51212912161 | |
426 | 458 | else { | |
427 | - | let $ | |
428 | - | if (($ | |
429 | - | then $ | |
459 | + | let $acc61212912161 = sum($acc51212912161, $list1212912161[5]) | |
460 | + | if (($size1212912161 == 6)) | |
461 | + | then $acc61212912161 | |
430 | 462 | else { | |
431 | - | let $ | |
432 | - | if (($ | |
433 | - | then $ | |
463 | + | let $acc71212912161 = sum($acc61212912161, $list1212912161[6]) | |
464 | + | if (($size1212912161 == 7)) | |
465 | + | then $acc71212912161 | |
434 | 466 | else { | |
435 | - | let $ | |
436 | - | if (($ | |
437 | - | then $ | |
467 | + | let $acc81212912161 = sum($acc71212912161, $list1212912161[7]) | |
468 | + | if (($size1212912161 == 8)) | |
469 | + | then $acc81212912161 | |
438 | 470 | else { | |
439 | - | let $ | |
440 | - | if (($ | |
441 | - | then $ | |
471 | + | let $acc91212912161 = sum($acc81212912161, $list1212912161[8]) | |
472 | + | if (($size1212912161 == 9)) | |
473 | + | then $acc91212912161 | |
442 | 474 | else { | |
443 | - | let $ | |
444 | - | if (($ | |
445 | - | then $ | |
475 | + | let $acc101212912161 = sum($acc91212912161, $list1212912161[9]) | |
476 | + | if (($size1212912161 == 10)) | |
477 | + | then $acc101212912161 | |
446 | 478 | else { | |
447 | - | let $ | |
448 | - | if (($ | |
449 | - | then $ | |
479 | + | let $acc111212912161 = sum($acc101212912161, $list1212912161[10]) | |
480 | + | if (($size1212912161 == 11)) | |
481 | + | then $acc111212912161 | |
450 | 482 | else { | |
451 | - | let $ | |
452 | - | if (($ | |
453 | - | then $ | |
483 | + | let $acc121212912161 = sum($acc111212912161, $list1212912161[11]) | |
484 | + | if (($size1212912161 == 12)) | |
485 | + | then $acc121212912161 | |
454 | 486 | else { | |
455 | - | let $ | |
456 | - | if (($ | |
457 | - | then $ | |
487 | + | let $acc131212912161 = sum($acc121212912161, $list1212912161[12]) | |
488 | + | if (($size1212912161 == 13)) | |
489 | + | then $acc131212912161 | |
458 | 490 | else { | |
459 | - | let $ | |
460 | - | if (($ | |
461 | - | then $ | |
491 | + | let $acc141212912161 = sum($acc131212912161, $list1212912161[13]) | |
492 | + | if (($size1212912161 == 14)) | |
493 | + | then $acc141212912161 | |
462 | 494 | else { | |
463 | - | let $ | |
464 | - | if (($ | |
465 | - | then $ | |
495 | + | let $acc151212912161 = sum($acc141212912161, $list1212912161[14]) | |
496 | + | if (($size1212912161 == 15)) | |
497 | + | then $acc151212912161 | |
466 | 498 | else { | |
467 | - | let $ | |
468 | - | if (($ | |
469 | - | then $ | |
499 | + | let $acc161212912161 = sum($acc151212912161, $list1212912161[15]) | |
500 | + | if (($size1212912161 == 16)) | |
501 | + | then $acc161212912161 | |
470 | 502 | else { | |
471 | - | let $ | |
472 | - | if (($ | |
473 | - | then $ | |
503 | + | let $acc171212912161 = sum($acc161212912161, $list1212912161[16]) | |
504 | + | if (($size1212912161 == 17)) | |
505 | + | then $acc171212912161 | |
474 | 506 | else { | |
475 | - | let $ | |
476 | - | if (($ | |
477 | - | then $ | |
507 | + | let $acc181212912161 = sum($acc171212912161, $list1212912161[17]) | |
508 | + | if (($size1212912161 == 18)) | |
509 | + | then $acc181212912161 | |
478 | 510 | else { | |
479 | - | let $ | |
480 | - | if (($ | |
481 | - | then $ | |
511 | + | let $acc191212912161 = sum($acc181212912161, $list1212912161[18]) | |
512 | + | if (($size1212912161 == 19)) | |
513 | + | then $acc191212912161 | |
482 | 514 | else { | |
483 | - | let $ | |
484 | - | if (($ | |
485 | - | then $ | |
515 | + | let $acc201212912161 = sum($acc191212912161, $list1212912161[19]) | |
516 | + | if (($size1212912161 == 20)) | |
517 | + | then $acc201212912161 | |
486 | 518 | else { | |
487 | - | let $ | |
519 | + | let $acc211212912161 = sum($acc201212912161, $list1212912161[20]) | |
488 | 520 | throw("List size exceed 20") | |
489 | 521 | } | |
490 | 522 | } | |
491 | 523 | } | |
492 | 524 | } | |
493 | 525 | } | |
494 | 526 | } | |
495 | 527 | } | |
496 | 528 | } | |
497 | 529 | } | |
498 | 530 | } | |
499 | 531 | } | |
500 | 532 | } | |
501 | 533 | } | |
502 | 534 | } | |
503 | 535 | } | |
504 | 536 | } | |
505 | 537 | } | |
506 | 538 | } | |
507 | 539 | } | |
508 | 540 | } | |
509 | 541 | } | |
510 | 542 | } | |
511 | 543 | if ((height > rewardUpdateHeight)) | |
512 | 544 | then throw("rewardUpdateHeight < height") | |
513 | 545 | else if (if ((sumRewardPrevious != totalVoteShare)) | |
514 | 546 | then true | |
515 | 547 | else (sumRewardCurrent != totalVoteShare)) | |
516 | 548 | then throw("sumRewardPrevious != totalVoteShare or sumRewardCurrent != totalVoteShare") | |
517 | 549 | else { | |
518 | 550 | let previousRewardEntryNew = { | |
519 | - | let $ | |
520 | - | let $ | |
521 | - | let $ | |
522 | - | if (($ | |
523 | - | then $ | |
551 | + | let $list1247312521 = previousPools | |
552 | + | let $size1247312521 = size($list1247312521) | |
553 | + | let $acc01247312521 = nil | |
554 | + | if (($size1247312521 == 0)) | |
555 | + | then $acc01247312521 | |
524 | 556 | else { | |
525 | - | let $ | |
526 | - | if (($ | |
527 | - | then $ | |
557 | + | let $acc11247312521 = PreviousRewardEntry($acc01247312521, $list1247312521[0]) | |
558 | + | if (($size1247312521 == 1)) | |
559 | + | then $acc11247312521 | |
528 | 560 | else { | |
529 | - | let $ | |
530 | - | if (($ | |
531 | - | then $ | |
561 | + | let $acc21247312521 = PreviousRewardEntry($acc11247312521, $list1247312521[1]) | |
562 | + | if (($size1247312521 == 2)) | |
563 | + | then $acc21247312521 | |
532 | 564 | else { | |
533 | - | let $ | |
534 | - | if (($ | |
535 | - | then $ | |
565 | + | let $acc31247312521 = PreviousRewardEntry($acc21247312521, $list1247312521[2]) | |
566 | + | if (($size1247312521 == 3)) | |
567 | + | then $acc31247312521 | |
536 | 568 | else { | |
537 | - | let $ | |
538 | - | if (($ | |
539 | - | then $ | |
569 | + | let $acc41247312521 = PreviousRewardEntry($acc31247312521, $list1247312521[3]) | |
570 | + | if (($size1247312521 == 4)) | |
571 | + | then $acc41247312521 | |
540 | 572 | else { | |
541 | - | let $ | |
542 | - | if (($ | |
543 | - | then $ | |
573 | + | let $acc51247312521 = PreviousRewardEntry($acc41247312521, $list1247312521[4]) | |
574 | + | if (($size1247312521 == 5)) | |
575 | + | then $acc51247312521 | |
544 | 576 | else { | |
545 | - | let $ | |
546 | - | if (($ | |
547 | - | then $ | |
577 | + | let $acc61247312521 = PreviousRewardEntry($acc51247312521, $list1247312521[5]) | |
578 | + | if (($size1247312521 == 6)) | |
579 | + | then $acc61247312521 | |
548 | 580 | else { | |
549 | - | let $ | |
550 | - | if (($ | |
551 | - | then $ | |
581 | + | let $acc71247312521 = PreviousRewardEntry($acc61247312521, $list1247312521[6]) | |
582 | + | if (($size1247312521 == 7)) | |
583 | + | then $acc71247312521 | |
552 | 584 | else { | |
553 | - | let $ | |
554 | - | if (($ | |
555 | - | then $ | |
585 | + | let $acc81247312521 = PreviousRewardEntry($acc71247312521, $list1247312521[7]) | |
586 | + | if (($size1247312521 == 8)) | |
587 | + | then $acc81247312521 | |
556 | 588 | else { | |
557 | - | let $ | |
558 | - | if (($ | |
559 | - | then $ | |
589 | + | let $acc91247312521 = PreviousRewardEntry($acc81247312521, $list1247312521[8]) | |
590 | + | if (($size1247312521 == 9)) | |
591 | + | then $acc91247312521 | |
560 | 592 | else { | |
561 | - | let $ | |
562 | - | if (($ | |
563 | - | then $ | |
593 | + | let $acc101247312521 = PreviousRewardEntry($acc91247312521, $list1247312521[9]) | |
594 | + | if (($size1247312521 == 10)) | |
595 | + | then $acc101247312521 | |
564 | 596 | else { | |
565 | - | let $ | |
566 | - | if (($ | |
567 | - | then $ | |
597 | + | let $acc111247312521 = PreviousRewardEntry($acc101247312521, $list1247312521[10]) | |
598 | + | if (($size1247312521 == 11)) | |
599 | + | then $acc111247312521 | |
568 | 600 | else { | |
569 | - | let $ | |
570 | - | if (($ | |
571 | - | then $ | |
601 | + | let $acc121247312521 = PreviousRewardEntry($acc111247312521, $list1247312521[11]) | |
602 | + | if (($size1247312521 == 12)) | |
603 | + | then $acc121247312521 | |
572 | 604 | else { | |
573 | - | let $ | |
574 | - | if (($ | |
575 | - | then $ | |
605 | + | let $acc131247312521 = PreviousRewardEntry($acc121247312521, $list1247312521[12]) | |
606 | + | if (($size1247312521 == 13)) | |
607 | + | then $acc131247312521 | |
576 | 608 | else { | |
577 | - | let $ | |
578 | - | if (($ | |
579 | - | then $ | |
609 | + | let $acc141247312521 = PreviousRewardEntry($acc131247312521, $list1247312521[13]) | |
610 | + | if (($size1247312521 == 14)) | |
611 | + | then $acc141247312521 | |
580 | 612 | else { | |
581 | - | let $ | |
582 | - | if (($ | |
583 | - | then $ | |
613 | + | let $acc151247312521 = PreviousRewardEntry($acc141247312521, $list1247312521[14]) | |
614 | + | if (($size1247312521 == 15)) | |
615 | + | then $acc151247312521 | |
584 | 616 | else { | |
585 | - | let $ | |
586 | - | if (($ | |
587 | - | then $ | |
617 | + | let $acc161247312521 = PreviousRewardEntry($acc151247312521, $list1247312521[15]) | |
618 | + | if (($size1247312521 == 16)) | |
619 | + | then $acc161247312521 | |
588 | 620 | else { | |
589 | - | let $ | |
590 | - | if (($ | |
591 | - | then $ | |
621 | + | let $acc171247312521 = PreviousRewardEntry($acc161247312521, $list1247312521[16]) | |
622 | + | if (($size1247312521 == 17)) | |
623 | + | then $acc171247312521 | |
592 | 624 | else { | |
593 | - | let $ | |
594 | - | if (($ | |
595 | - | then $ | |
625 | + | let $acc181247312521 = PreviousRewardEntry($acc171247312521, $list1247312521[17]) | |
626 | + | if (($size1247312521 == 18)) | |
627 | + | then $acc181247312521 | |
596 | 628 | else { | |
597 | - | let $ | |
598 | - | if (($ | |
599 | - | then $ | |
629 | + | let $acc191247312521 = PreviousRewardEntry($acc181247312521, $list1247312521[18]) | |
630 | + | if (($size1247312521 == 19)) | |
631 | + | then $acc191247312521 | |
600 | 632 | else { | |
601 | - | let $ | |
602 | - | if (($ | |
603 | - | then $ | |
633 | + | let $acc201247312521 = PreviousRewardEntry($acc191247312521, $list1247312521[19]) | |
634 | + | if (($size1247312521 == 20)) | |
635 | + | then $acc201247312521 | |
604 | 636 | else { | |
605 | - | let $ | |
637 | + | let $acc211247312521 = PreviousRewardEntry($acc201247312521, $list1247312521[20]) | |
606 | 638 | throw("List size exceed 20") | |
607 | 639 | } | |
608 | 640 | } | |
609 | 641 | } | |
610 | 642 | } | |
611 | 643 | } | |
612 | 644 | } | |
613 | 645 | } | |
614 | 646 | } | |
615 | 647 | } | |
616 | 648 | } | |
617 | 649 | } | |
618 | 650 | } | |
619 | 651 | } | |
620 | 652 | } | |
621 | 653 | } | |
622 | 654 | } | |
623 | 655 | } | |
624 | 656 | } | |
625 | 657 | } | |
626 | 658 | } | |
627 | 659 | } | |
628 | 660 | } | |
629 | 661 | let currentRewardEntryNew = { | |
630 | - | let $ | |
631 | - | let $ | |
632 | - | let $ | |
633 | - | if (($ | |
634 | - | then $ | |
662 | + | let $list1255412600 = currentPools | |
663 | + | let $size1255412600 = size($list1255412600) | |
664 | + | let $acc01255412600 = nil | |
665 | + | if (($size1255412600 == 0)) | |
666 | + | then $acc01255412600 | |
635 | 667 | else { | |
636 | - | let $ | |
637 | - | if (($ | |
638 | - | then $ | |
668 | + | let $acc11255412600 = CurrentRewardEntry($acc01255412600, $list1255412600[0]) | |
669 | + | if (($size1255412600 == 1)) | |
670 | + | then $acc11255412600 | |
639 | 671 | else { | |
640 | - | let $ | |
641 | - | if (($ | |
642 | - | then $ | |
672 | + | let $acc21255412600 = CurrentRewardEntry($acc11255412600, $list1255412600[1]) | |
673 | + | if (($size1255412600 == 2)) | |
674 | + | then $acc21255412600 | |
643 | 675 | else { | |
644 | - | let $ | |
645 | - | if (($ | |
646 | - | then $ | |
676 | + | let $acc31255412600 = CurrentRewardEntry($acc21255412600, $list1255412600[2]) | |
677 | + | if (($size1255412600 == 3)) | |
678 | + | then $acc31255412600 | |
647 | 679 | else { | |
648 | - | let $ | |
649 | - | if (($ | |
650 | - | then $ | |
680 | + | let $acc41255412600 = CurrentRewardEntry($acc31255412600, $list1255412600[3]) | |
681 | + | if (($size1255412600 == 4)) | |
682 | + | then $acc41255412600 | |
651 | 683 | else { | |
652 | - | let $ | |
653 | - | if (($ | |
654 | - | then $ | |
684 | + | let $acc51255412600 = CurrentRewardEntry($acc41255412600, $list1255412600[4]) | |
685 | + | if (($size1255412600 == 5)) | |
686 | + | then $acc51255412600 | |
655 | 687 | else { | |
656 | - | let $ | |
657 | - | if (($ | |
658 | - | then $ | |
688 | + | let $acc61255412600 = CurrentRewardEntry($acc51255412600, $list1255412600[5]) | |
689 | + | if (($size1255412600 == 6)) | |
690 | + | then $acc61255412600 | |
659 | 691 | else { | |
660 | - | let $ | |
661 | - | if (($ | |
662 | - | then $ | |
692 | + | let $acc71255412600 = CurrentRewardEntry($acc61255412600, $list1255412600[6]) | |
693 | + | if (($size1255412600 == 7)) | |
694 | + | then $acc71255412600 | |
663 | 695 | else { | |
664 | - | let $ | |
665 | - | if (($ | |
666 | - | then $ | |
696 | + | let $acc81255412600 = CurrentRewardEntry($acc71255412600, $list1255412600[7]) | |
697 | + | if (($size1255412600 == 8)) | |
698 | + | then $acc81255412600 | |
667 | 699 | else { | |
668 | - | let $ | |
669 | - | if (($ | |
670 | - | then $ | |
700 | + | let $acc91255412600 = CurrentRewardEntry($acc81255412600, $list1255412600[8]) | |
701 | + | if (($size1255412600 == 9)) | |
702 | + | then $acc91255412600 | |
671 | 703 | else { | |
672 | - | let $ | |
673 | - | if (($ | |
674 | - | then $ | |
704 | + | let $acc101255412600 = CurrentRewardEntry($acc91255412600, $list1255412600[9]) | |
705 | + | if (($size1255412600 == 10)) | |
706 | + | then $acc101255412600 | |
675 | 707 | else { | |
676 | - | let $ | |
677 | - | if (($ | |
678 | - | then $ | |
708 | + | let $acc111255412600 = CurrentRewardEntry($acc101255412600, $list1255412600[10]) | |
709 | + | if (($size1255412600 == 11)) | |
710 | + | then $acc111255412600 | |
679 | 711 | else { | |
680 | - | let $ | |
681 | - | if (($ | |
682 | - | then $ | |
712 | + | let $acc121255412600 = CurrentRewardEntry($acc111255412600, $list1255412600[11]) | |
713 | + | if (($size1255412600 == 12)) | |
714 | + | then $acc121255412600 | |
683 | 715 | else { | |
684 | - | let $ | |
685 | - | if (($ | |
686 | - | then $ | |
716 | + | let $acc131255412600 = CurrentRewardEntry($acc121255412600, $list1255412600[12]) | |
717 | + | if (($size1255412600 == 13)) | |
718 | + | then $acc131255412600 | |
687 | 719 | else { | |
688 | - | let $ | |
689 | - | if (($ | |
690 | - | then $ | |
720 | + | let $acc141255412600 = CurrentRewardEntry($acc131255412600, $list1255412600[13]) | |
721 | + | if (($size1255412600 == 14)) | |
722 | + | then $acc141255412600 | |
691 | 723 | else { | |
692 | - | let $ | |
693 | - | if (($ | |
694 | - | then $ | |
724 | + | let $acc151255412600 = CurrentRewardEntry($acc141255412600, $list1255412600[14]) | |
725 | + | if (($size1255412600 == 15)) | |
726 | + | then $acc151255412600 | |
695 | 727 | else { | |
696 | - | let $ | |
697 | - | if (($ | |
698 | - | then $ | |
728 | + | let $acc161255412600 = CurrentRewardEntry($acc151255412600, $list1255412600[15]) | |
729 | + | if (($size1255412600 == 16)) | |
730 | + | then $acc161255412600 | |
699 | 731 | else { | |
700 | - | let $ | |
701 | - | if (($ | |
702 | - | then $ | |
732 | + | let $acc171255412600 = CurrentRewardEntry($acc161255412600, $list1255412600[16]) | |
733 | + | if (($size1255412600 == 17)) | |
734 | + | then $acc171255412600 | |
703 | 735 | else { | |
704 | - | let $ | |
705 | - | if (($ | |
706 | - | then $ | |
736 | + | let $acc181255412600 = CurrentRewardEntry($acc171255412600, $list1255412600[17]) | |
737 | + | if (($size1255412600 == 18)) | |
738 | + | then $acc181255412600 | |
707 | 739 | else { | |
708 | - | let $ | |
709 | - | if (($ | |
710 | - | then $ | |
740 | + | let $acc191255412600 = CurrentRewardEntry($acc181255412600, $list1255412600[18]) | |
741 | + | if (($size1255412600 == 19)) | |
742 | + | then $acc191255412600 | |
711 | 743 | else { | |
712 | - | let $ | |
713 | - | if (($ | |
714 | - | then $ | |
744 | + | let $acc201255412600 = CurrentRewardEntry($acc191255412600, $list1255412600[19]) | |
745 | + | if (($size1255412600 == 20)) | |
746 | + | then $acc201255412600 | |
715 | 747 | else { | |
716 | - | let $ | |
748 | + | let $acc211255412600 = CurrentRewardEntry($acc201255412600, $list1255412600[20]) | |
717 | 749 | throw("List size exceed 20") | |
718 | 750 | } | |
719 | 751 | } | |
720 | 752 | } | |
721 | 753 | } | |
722 | 754 | } | |
723 | 755 | } | |
724 | 756 | } | |
725 | 757 | } | |
726 | 758 | } | |
727 | 759 | } | |
728 | 760 | } | |
729 | 761 | } | |
730 | 762 | } | |
731 | 763 | } | |
732 | 764 | } | |
733 | 765 | } | |
734 | 766 | } | |
735 | 767 | } | |
736 | 768 | } | |
737 | 769 | } | |
738 | 770 | } | |
739 | 771 | } | |
740 | 772 | ((previousRewardEntryNew ++ currentRewardEntryNew) ++ [IntegerEntry(keyRewardUpdateHeight, rewardUpdateHeight)]) | |
741 | 773 | } | |
742 | 774 | } | |
743 | 775 | ||
744 | 776 | ||
745 | 777 | ||
746 | 778 | @Callable(i) | |
747 | 779 | func shutdown () = if (!(isActive)) | |
748 | 780 | then throw(("DApp is already suspended. Cause: " + valueOrElse(getString(this, keyCause), "the cause wasn't specified"))) | |
749 | 781 | else if (!(containsElement([adminPubKey1, adminPubKey2, adminPubKey3, adminPubKeyStartStop], i.callerPublicKey))) | |
750 | 782 | then throw("Only admin can call this function") | |
751 | 783 | else suspend("Paused by admin") | |
752 | 784 | ||
753 | 785 | ||
754 | 786 | ||
755 | 787 | @Callable(i) | |
756 | 788 | func activate () = if (isActive) | |
757 | 789 | then throw("DApp is already active") | |
758 | 790 | else if (!(containsElement([adminPubKey1, adminPubKey2, adminPubKey3, adminPubKeyStartStop], i.callerPublicKey))) | |
759 | 791 | then throw("Only admin can call this function") | |
760 | 792 | else [BooleanEntry(keyActive, true), DeleteEntry(keyCause)] | |
761 | 793 | ||
762 | 794 | ||
763 | 795 | @Verifier(tx) | |
764 | 796 | func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) | |
765 | 797 |
github/deemru/w8io/169f3d6 1026.73 ms ◑