tx · mdqYbZgY8pFTDJHEabHACujCojjKa5RofcsGLhJkgPE 3MzJZEn6jzxCPaHEfkrXd7FhbjTyVjdRPLS: -0.01400000 Waves 2021.04.14 17:34 [1482252] smart account 3MzJZEn6jzxCPaHEfkrXd7FhbjTyVjdRPLS > SELF 0.00000000 Waves
{ "type": 13, "id": "mdqYbZgY8pFTDJHEabHACujCojjKa5RofcsGLhJkgPE", "fee": 1400000, "feeAssetId": null, "timestamp": 1618410885506, "version": 2, "chainId": 84, "sender": "3MzJZEn6jzxCPaHEfkrXd7FhbjTyVjdRPLS", "senderPublicKey": "93SZf1TATCRxGyBuGyngpQGKcpKZirb2yXLT2RQJ3UKb", "proofs": [ "VLkmazCC2yMszNtMx4maQ8P9XLD3XwcB8HeGYBSzQJsTsYQzxLCn7nQoyNTDwz5Utm55KCkpviaLYhrp9DyyXzZ" ], "script": "base64:AAIEAAAAAAAAABwIAhIAEgASAwoBARIAEgASBwoFGBEYEQESABIAAAAAOAAAAAAMYWRtaW5QdWJLZXkxAQAAACAEz3XlZNDBD05nuR8TZMQaDeqEJEIxfTOQXUBYCp2TSgAAAAAMYWRtaW5QdWJLZXkyAQAAACAEz3XlZNDBD05nuR8TZMQaDeqEJEIxfTOQXUBYCp2TSgAAAAAMYWRtaW5QdWJLZXkzAQAAACAEz3XlZNDBD05nuR8TZMQaDeqEJEIxfTOQXUBYCp2TSgAAAAAUYWRtaW5QdWJLZXlTdGFydFN0b3ABAAAAIATPdeVk0MEPTme5HxNkxBoN6oQkQjF9M5BdQFgKnZNKAAAAABFhZG1pblB1YktleVdhbGxldAEAAAAgPndaZVpWyfwpVzO1vA1FLcrMp/iFkg43d1jzYhVSFBIAAAAACWtleUFjdGl2ZQIAAAAGYWN0aXZlAAAAAAhrZXlDYXVzZQIAAAAOc2h1dGRvd25fY2F1c2UAAAAAD2tleUxhc3RJbnRlcmVzdAIAAAANbGFzdF9pbnRlcmVzdAAAAAATa2V5VXNlckxhc3RJbnRlcmVzdAIAAAAOX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lvbgkABEwAAAACCQEAAAAMQm9vbGVhbkVudHJ5AAAAAgUAAAAJa2V5QWN0aXZlBgkABEwAAAACCQEAAAALRGVsZXRlRW50cnkAAAABBQAAAAhrZXlDYXVzZQUAAAADbmlsAAAAAQAAAAJ0eAEAAAAGdmVyaWZ5AAAAAAkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXm4mqCe", "height": 1482252, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: F36yySi3mTjRtBBzaDiryJ7QNHrZfXnUQzaRZP7KEbte Next: 9CQyf3xv6RnTxPJ5exCHYWxWvChgf3c6XCqm2bbYtLMs Diff:
Old | New | Differences | |
---|---|---|---|
301 | 301 | @Callable(i) | |
302 | 302 | func updateWeights (previousPools,previousRewards,currentPools,currentRewards,rewardUpdateHeight) = if (!(isActive)) | |
303 | 303 | then throw("DApp is inactive at this moment") | |
304 | - | else if (!(containsElement([adminPubKey1, adminPubKey2, adminPubKey3, adminPubKeyStartStop], i.callerPublicKey))) | |
304 | + | else if (!(containsElement([adminPubKey1, adminPubKey2, adminPubKey3, adminPubKeyStartStop, adminPubKeyWallet], i.callerPublicKey))) | |
305 | 305 | then throw("Only admin can call this function") | |
306 | 306 | else { | |
307 | 307 | func sum (a,b) = (a + b) | |
319 | 319 | } | |
320 | 320 | ||
321 | 321 | let sumRewardPrevious = { | |
322 | - | let $ | |
323 | - | let $ | |
324 | - | let $ | |
325 | - | if (($ | |
326 | - | then $ | |
322 | + | let $list1208512118 = previousRewards | |
323 | + | let $size1208512118 = size($list1208512118) | |
324 | + | let $acc01208512118 = 0 | |
325 | + | if (($size1208512118 == 0)) | |
326 | + | then $acc01208512118 | |
327 | 327 | else { | |
328 | - | let $ | |
329 | - | if (($ | |
330 | - | then $ | |
328 | + | let $acc11208512118 = sum($acc01208512118, $list1208512118[0]) | |
329 | + | if (($size1208512118 == 1)) | |
330 | + | then $acc11208512118 | |
331 | 331 | else { | |
332 | - | let $ | |
333 | - | if (($ | |
334 | - | then $ | |
332 | + | let $acc21208512118 = sum($acc11208512118, $list1208512118[1]) | |
333 | + | if (($size1208512118 == 2)) | |
334 | + | then $acc21208512118 | |
335 | 335 | else { | |
336 | - | let $ | |
337 | - | if (($ | |
338 | - | then $ | |
336 | + | let $acc31208512118 = sum($acc21208512118, $list1208512118[2]) | |
337 | + | if (($size1208512118 == 3)) | |
338 | + | then $acc31208512118 | |
339 | 339 | else { | |
340 | - | let $ | |
341 | - | if (($ | |
342 | - | then $ | |
340 | + | let $acc41208512118 = sum($acc31208512118, $list1208512118[3]) | |
341 | + | if (($size1208512118 == 4)) | |
342 | + | then $acc41208512118 | |
343 | 343 | else { | |
344 | - | let $ | |
345 | - | if (($ | |
346 | - | then $ | |
344 | + | let $acc51208512118 = sum($acc41208512118, $list1208512118[4]) | |
345 | + | if (($size1208512118 == 5)) | |
346 | + | then $acc51208512118 | |
347 | 347 | else { | |
348 | - | let $ | |
349 | - | if (($ | |
350 | - | then $ | |
348 | + | let $acc61208512118 = sum($acc51208512118, $list1208512118[5]) | |
349 | + | if (($size1208512118 == 6)) | |
350 | + | then $acc61208512118 | |
351 | 351 | else { | |
352 | - | let $ | |
353 | - | if (($ | |
354 | - | then $ | |
352 | + | let $acc71208512118 = sum($acc61208512118, $list1208512118[6]) | |
353 | + | if (($size1208512118 == 7)) | |
354 | + | then $acc71208512118 | |
355 | 355 | else { | |
356 | - | let $ | |
357 | - | if (($ | |
358 | - | then $ | |
356 | + | let $acc81208512118 = sum($acc71208512118, $list1208512118[7]) | |
357 | + | if (($size1208512118 == 8)) | |
358 | + | then $acc81208512118 | |
359 | 359 | else { | |
360 | - | let $ | |
361 | - | if (($ | |
362 | - | then $ | |
360 | + | let $acc91208512118 = sum($acc81208512118, $list1208512118[8]) | |
361 | + | if (($size1208512118 == 9)) | |
362 | + | then $acc91208512118 | |
363 | 363 | else { | |
364 | - | let $ | |
365 | - | if (($ | |
366 | - | then $ | |
364 | + | let $acc101208512118 = sum($acc91208512118, $list1208512118[9]) | |
365 | + | if (($size1208512118 == 10)) | |
366 | + | then $acc101208512118 | |
367 | 367 | else { | |
368 | - | let $ | |
369 | - | if (($ | |
370 | - | then $ | |
368 | + | let $acc111208512118 = sum($acc101208512118, $list1208512118[10]) | |
369 | + | if (($size1208512118 == 11)) | |
370 | + | then $acc111208512118 | |
371 | 371 | else { | |
372 | - | let $ | |
373 | - | if (($ | |
374 | - | then $ | |
372 | + | let $acc121208512118 = sum($acc111208512118, $list1208512118[11]) | |
373 | + | if (($size1208512118 == 12)) | |
374 | + | then $acc121208512118 | |
375 | 375 | else { | |
376 | - | let $ | |
377 | - | if (($ | |
378 | - | then $ | |
376 | + | let $acc131208512118 = sum($acc121208512118, $list1208512118[12]) | |
377 | + | if (($size1208512118 == 13)) | |
378 | + | then $acc131208512118 | |
379 | 379 | else { | |
380 | - | let $ | |
381 | - | if (($ | |
382 | - | then $ | |
380 | + | let $acc141208512118 = sum($acc131208512118, $list1208512118[13]) | |
381 | + | if (($size1208512118 == 14)) | |
382 | + | then $acc141208512118 | |
383 | 383 | else { | |
384 | - | let $ | |
385 | - | if (($ | |
386 | - | then $ | |
384 | + | let $acc151208512118 = sum($acc141208512118, $list1208512118[14]) | |
385 | + | if (($size1208512118 == 15)) | |
386 | + | then $acc151208512118 | |
387 | 387 | else { | |
388 | - | let $ | |
389 | - | if (($ | |
390 | - | then $ | |
388 | + | let $acc161208512118 = sum($acc151208512118, $list1208512118[15]) | |
389 | + | if (($size1208512118 == 16)) | |
390 | + | then $acc161208512118 | |
391 | 391 | else { | |
392 | - | let $ | |
393 | - | if (($ | |
394 | - | then $ | |
392 | + | let $acc171208512118 = sum($acc161208512118, $list1208512118[16]) | |
393 | + | if (($size1208512118 == 17)) | |
394 | + | then $acc171208512118 | |
395 | 395 | else { | |
396 | - | let $ | |
397 | - | if (($ | |
398 | - | then $ | |
396 | + | let $acc181208512118 = sum($acc171208512118, $list1208512118[17]) | |
397 | + | if (($size1208512118 == 18)) | |
398 | + | then $acc181208512118 | |
399 | 399 | else { | |
400 | - | let $ | |
401 | - | if (($ | |
402 | - | then $ | |
400 | + | let $acc191208512118 = sum($acc181208512118, $list1208512118[18]) | |
401 | + | if (($size1208512118 == 19)) | |
402 | + | then $acc191208512118 | |
403 | 403 | else { | |
404 | - | let $ | |
405 | - | if (($ | |
406 | - | then $ | |
404 | + | let $acc201208512118 = sum($acc191208512118, $list1208512118[19]) | |
405 | + | if (($size1208512118 == 20)) | |
406 | + | then $acc201208512118 | |
407 | 407 | else { | |
408 | - | let $ | |
408 | + | let $acc211208512118 = sum($acc201208512118, $list1208512118[20]) | |
409 | 409 | throw("List size exceed 20") | |
410 | 410 | } | |
411 | 411 | } | |
430 | 430 | } | |
431 | 431 | } | |
432 | 432 | let sumRewardCurrent = { | |
433 | - | let $ | |
434 | - | let $ | |
435 | - | let $ | |
436 | - | if (($ | |
437 | - | then $ | |
433 | + | let $list1214712179 = currentRewards | |
434 | + | let $size1214712179 = size($list1214712179) | |
435 | + | let $acc01214712179 = 0 | |
436 | + | if (($size1214712179 == 0)) | |
437 | + | then $acc01214712179 | |
438 | 438 | else { | |
439 | - | let $ | |
440 | - | if (($ | |
441 | - | then $ | |
439 | + | let $acc11214712179 = sum($acc01214712179, $list1214712179[0]) | |
440 | + | if (($size1214712179 == 1)) | |
441 | + | then $acc11214712179 | |
442 | 442 | else { | |
443 | - | let $ | |
444 | - | if (($ | |
445 | - | then $ | |
443 | + | let $acc21214712179 = sum($acc11214712179, $list1214712179[1]) | |
444 | + | if (($size1214712179 == 2)) | |
445 | + | then $acc21214712179 | |
446 | 446 | else { | |
447 | - | let $ | |
448 | - | if (($ | |
449 | - | then $ | |
447 | + | let $acc31214712179 = sum($acc21214712179, $list1214712179[2]) | |
448 | + | if (($size1214712179 == 3)) | |
449 | + | then $acc31214712179 | |
450 | 450 | else { | |
451 | - | let $ | |
452 | - | if (($ | |
453 | - | then $ | |
451 | + | let $acc41214712179 = sum($acc31214712179, $list1214712179[3]) | |
452 | + | if (($size1214712179 == 4)) | |
453 | + | then $acc41214712179 | |
454 | 454 | else { | |
455 | - | let $ | |
456 | - | if (($ | |
457 | - | then $ | |
455 | + | let $acc51214712179 = sum($acc41214712179, $list1214712179[4]) | |
456 | + | if (($size1214712179 == 5)) | |
457 | + | then $acc51214712179 | |
458 | 458 | else { | |
459 | - | let $ | |
460 | - | if (($ | |
461 | - | then $ | |
459 | + | let $acc61214712179 = sum($acc51214712179, $list1214712179[5]) | |
460 | + | if (($size1214712179 == 6)) | |
461 | + | then $acc61214712179 | |
462 | 462 | else { | |
463 | - | let $ | |
464 | - | if (($ | |
465 | - | then $ | |
463 | + | let $acc71214712179 = sum($acc61214712179, $list1214712179[6]) | |
464 | + | if (($size1214712179 == 7)) | |
465 | + | then $acc71214712179 | |
466 | 466 | else { | |
467 | - | let $ | |
468 | - | if (($ | |
469 | - | then $ | |
467 | + | let $acc81214712179 = sum($acc71214712179, $list1214712179[7]) | |
468 | + | if (($size1214712179 == 8)) | |
469 | + | then $acc81214712179 | |
470 | 470 | else { | |
471 | - | let $ | |
472 | - | if (($ | |
473 | - | then $ | |
471 | + | let $acc91214712179 = sum($acc81214712179, $list1214712179[8]) | |
472 | + | if (($size1214712179 == 9)) | |
473 | + | then $acc91214712179 | |
474 | 474 | else { | |
475 | - | let $ | |
476 | - | if (($ | |
477 | - | then $ | |
475 | + | let $acc101214712179 = sum($acc91214712179, $list1214712179[9]) | |
476 | + | if (($size1214712179 == 10)) | |
477 | + | then $acc101214712179 | |
478 | 478 | else { | |
479 | - | let $ | |
480 | - | if (($ | |
481 | - | then $ | |
479 | + | let $acc111214712179 = sum($acc101214712179, $list1214712179[10]) | |
480 | + | if (($size1214712179 == 11)) | |
481 | + | then $acc111214712179 | |
482 | 482 | else { | |
483 | - | let $ | |
484 | - | if (($ | |
485 | - | then $ | |
483 | + | let $acc121214712179 = sum($acc111214712179, $list1214712179[11]) | |
484 | + | if (($size1214712179 == 12)) | |
485 | + | then $acc121214712179 | |
486 | 486 | else { | |
487 | - | let $ | |
488 | - | if (($ | |
489 | - | then $ | |
487 | + | let $acc131214712179 = sum($acc121214712179, $list1214712179[12]) | |
488 | + | if (($size1214712179 == 13)) | |
489 | + | then $acc131214712179 | |
490 | 490 | else { | |
491 | - | let $ | |
492 | - | if (($ | |
493 | - | then $ | |
491 | + | let $acc141214712179 = sum($acc131214712179, $list1214712179[13]) | |
492 | + | if (($size1214712179 == 14)) | |
493 | + | then $acc141214712179 | |
494 | 494 | else { | |
495 | - | let $ | |
496 | - | if (($ | |
497 | - | then $ | |
495 | + | let $acc151214712179 = sum($acc141214712179, $list1214712179[14]) | |
496 | + | if (($size1214712179 == 15)) | |
497 | + | then $acc151214712179 | |
498 | 498 | else { | |
499 | - | let $ | |
500 | - | if (($ | |
501 | - | then $ | |
499 | + | let $acc161214712179 = sum($acc151214712179, $list1214712179[15]) | |
500 | + | if (($size1214712179 == 16)) | |
501 | + | then $acc161214712179 | |
502 | 502 | else { | |
503 | - | let $ | |
504 | - | if (($ | |
505 | - | then $ | |
503 | + | let $acc171214712179 = sum($acc161214712179, $list1214712179[16]) | |
504 | + | if (($size1214712179 == 17)) | |
505 | + | then $acc171214712179 | |
506 | 506 | else { | |
507 | - | let $ | |
508 | - | if (($ | |
509 | - | then $ | |
507 | + | let $acc181214712179 = sum($acc171214712179, $list1214712179[17]) | |
508 | + | if (($size1214712179 == 18)) | |
509 | + | then $acc181214712179 | |
510 | 510 | else { | |
511 | - | let $ | |
512 | - | if (($ | |
513 | - | then $ | |
511 | + | let $acc191214712179 = sum($acc181214712179, $list1214712179[18]) | |
512 | + | if (($size1214712179 == 19)) | |
513 | + | then $acc191214712179 | |
514 | 514 | else { | |
515 | - | let $ | |
516 | - | if (($ | |
517 | - | then $ | |
515 | + | let $acc201214712179 = sum($acc191214712179, $list1214712179[19]) | |
516 | + | if (($size1214712179 == 20)) | |
517 | + | then $acc201214712179 | |
518 | 518 | else { | |
519 | - | let $ | |
519 | + | let $acc211214712179 = sum($acc201214712179, $list1214712179[20]) | |
520 | 520 | throw("List size exceed 20") | |
521 | 521 | } | |
522 | 522 | } | |
548 | 548 | then throw("sumRewardPrevious != totalVoteShare or sumRewardCurrent != totalVoteShare") | |
549 | 549 | else { | |
550 | 550 | let previousRewardEntryNew = { | |
551 | - | let $ | |
552 | - | let $ | |
553 | - | let $ | |
554 | - | if (($ | |
555 | - | then $ | |
551 | + | let $list1249112539 = previousPools | |
552 | + | let $size1249112539 = size($list1249112539) | |
553 | + | let $acc01249112539 = nil | |
554 | + | if (($size1249112539 == 0)) | |
555 | + | then $acc01249112539 | |
556 | 556 | else { | |
557 | - | let $ | |
558 | - | if (($ | |
559 | - | then $ | |
557 | + | let $acc11249112539 = PreviousRewardEntry($acc01249112539, $list1249112539[0]) | |
558 | + | if (($size1249112539 == 1)) | |
559 | + | then $acc11249112539 | |
560 | 560 | else { | |
561 | - | let $ | |
562 | - | if (($ | |
563 | - | then $ | |
561 | + | let $acc21249112539 = PreviousRewardEntry($acc11249112539, $list1249112539[1]) | |
562 | + | if (($size1249112539 == 2)) | |
563 | + | then $acc21249112539 | |
564 | 564 | else { | |
565 | - | let $ | |
566 | - | if (($ | |
567 | - | then $ | |
565 | + | let $acc31249112539 = PreviousRewardEntry($acc21249112539, $list1249112539[2]) | |
566 | + | if (($size1249112539 == 3)) | |
567 | + | then $acc31249112539 | |
568 | 568 | else { | |
569 | - | let $ | |
570 | - | if (($ | |
571 | - | then $ | |
569 | + | let $acc41249112539 = PreviousRewardEntry($acc31249112539, $list1249112539[3]) | |
570 | + | if (($size1249112539 == 4)) | |
571 | + | then $acc41249112539 | |
572 | 572 | else { | |
573 | - | let $ | |
574 | - | if (($ | |
575 | - | then $ | |
573 | + | let $acc51249112539 = PreviousRewardEntry($acc41249112539, $list1249112539[4]) | |
574 | + | if (($size1249112539 == 5)) | |
575 | + | then $acc51249112539 | |
576 | 576 | else { | |
577 | - | let $ | |
578 | - | if (($ | |
579 | - | then $ | |
577 | + | let $acc61249112539 = PreviousRewardEntry($acc51249112539, $list1249112539[5]) | |
578 | + | if (($size1249112539 == 6)) | |
579 | + | then $acc61249112539 | |
580 | 580 | else { | |
581 | - | let $ | |
582 | - | if (($ | |
583 | - | then $ | |
581 | + | let $acc71249112539 = PreviousRewardEntry($acc61249112539, $list1249112539[6]) | |
582 | + | if (($size1249112539 == 7)) | |
583 | + | then $acc71249112539 | |
584 | 584 | else { | |
585 | - | let $ | |
586 | - | if (($ | |
587 | - | then $ | |
585 | + | let $acc81249112539 = PreviousRewardEntry($acc71249112539, $list1249112539[7]) | |
586 | + | if (($size1249112539 == 8)) | |
587 | + | then $acc81249112539 | |
588 | 588 | else { | |
589 | - | let $ | |
590 | - | if (($ | |
591 | - | then $ | |
589 | + | let $acc91249112539 = PreviousRewardEntry($acc81249112539, $list1249112539[8]) | |
590 | + | if (($size1249112539 == 9)) | |
591 | + | then $acc91249112539 | |
592 | 592 | else { | |
593 | - | let $ | |
594 | - | if (($ | |
595 | - | then $ | |
593 | + | let $acc101249112539 = PreviousRewardEntry($acc91249112539, $list1249112539[9]) | |
594 | + | if (($size1249112539 == 10)) | |
595 | + | then $acc101249112539 | |
596 | 596 | else { | |
597 | - | let $ | |
598 | - | if (($ | |
599 | - | then $ | |
597 | + | let $acc111249112539 = PreviousRewardEntry($acc101249112539, $list1249112539[10]) | |
598 | + | if (($size1249112539 == 11)) | |
599 | + | then $acc111249112539 | |
600 | 600 | else { | |
601 | - | let $ | |
602 | - | if (($ | |
603 | - | then $ | |
601 | + | let $acc121249112539 = PreviousRewardEntry($acc111249112539, $list1249112539[11]) | |
602 | + | if (($size1249112539 == 12)) | |
603 | + | then $acc121249112539 | |
604 | 604 | else { | |
605 | - | let $ | |
606 | - | if (($ | |
607 | - | then $ | |
605 | + | let $acc131249112539 = PreviousRewardEntry($acc121249112539, $list1249112539[12]) | |
606 | + | if (($size1249112539 == 13)) | |
607 | + | then $acc131249112539 | |
608 | 608 | else { | |
609 | - | let $ | |
610 | - | if (($ | |
611 | - | then $ | |
609 | + | let $acc141249112539 = PreviousRewardEntry($acc131249112539, $list1249112539[13]) | |
610 | + | if (($size1249112539 == 14)) | |
611 | + | then $acc141249112539 | |
612 | 612 | else { | |
613 | - | let $ | |
614 | - | if (($ | |
615 | - | then $ | |
613 | + | let $acc151249112539 = PreviousRewardEntry($acc141249112539, $list1249112539[14]) | |
614 | + | if (($size1249112539 == 15)) | |
615 | + | then $acc151249112539 | |
616 | 616 | else { | |
617 | - | let $ | |
618 | - | if (($ | |
619 | - | then $ | |
617 | + | let $acc161249112539 = PreviousRewardEntry($acc151249112539, $list1249112539[15]) | |
618 | + | if (($size1249112539 == 16)) | |
619 | + | then $acc161249112539 | |
620 | 620 | else { | |
621 | - | let $ | |
622 | - | if (($ | |
623 | - | then $ | |
621 | + | let $acc171249112539 = PreviousRewardEntry($acc161249112539, $list1249112539[16]) | |
622 | + | if (($size1249112539 == 17)) | |
623 | + | then $acc171249112539 | |
624 | 624 | else { | |
625 | - | let $ | |
626 | - | if (($ | |
627 | - | then $ | |
625 | + | let $acc181249112539 = PreviousRewardEntry($acc171249112539, $list1249112539[17]) | |
626 | + | if (($size1249112539 == 18)) | |
627 | + | then $acc181249112539 | |
628 | 628 | else { | |
629 | - | let $ | |
630 | - | if (($ | |
631 | - | then $ | |
629 | + | let $acc191249112539 = PreviousRewardEntry($acc181249112539, $list1249112539[18]) | |
630 | + | if (($size1249112539 == 19)) | |
631 | + | then $acc191249112539 | |
632 | 632 | else { | |
633 | - | let $ | |
634 | - | if (($ | |
635 | - | then $ | |
633 | + | let $acc201249112539 = PreviousRewardEntry($acc191249112539, $list1249112539[19]) | |
634 | + | if (($size1249112539 == 20)) | |
635 | + | then $acc201249112539 | |
636 | 636 | else { | |
637 | - | let $ | |
637 | + | let $acc211249112539 = PreviousRewardEntry($acc201249112539, $list1249112539[20]) | |
638 | 638 | throw("List size exceed 20") | |
639 | 639 | } | |
640 | 640 | } | |
659 | 659 | } | |
660 | 660 | } | |
661 | 661 | let currentRewardEntryNew = { | |
662 | - | let $ | |
663 | - | let $ | |
664 | - | let $ | |
665 | - | if (($ | |
666 | - | then $ | |
662 | + | let $list1257212618 = currentPools | |
663 | + | let $size1257212618 = size($list1257212618) | |
664 | + | let $acc01257212618 = nil | |
665 | + | if (($size1257212618 == 0)) | |
666 | + | then $acc01257212618 | |
667 | 667 | else { | |
668 | - | let $ | |
669 | - | if (($ | |
670 | - | then $ | |
668 | + | let $acc11257212618 = CurrentRewardEntry($acc01257212618, $list1257212618[0]) | |
669 | + | if (($size1257212618 == 1)) | |
670 | + | then $acc11257212618 | |
671 | 671 | else { | |
672 | - | let $ | |
673 | - | if (($ | |
674 | - | then $ | |
672 | + | let $acc21257212618 = CurrentRewardEntry($acc11257212618, $list1257212618[1]) | |
673 | + | if (($size1257212618 == 2)) | |
674 | + | then $acc21257212618 | |
675 | 675 | else { | |
676 | - | let $ | |
677 | - | if (($ | |
678 | - | then $ | |
676 | + | let $acc31257212618 = CurrentRewardEntry($acc21257212618, $list1257212618[2]) | |
677 | + | if (($size1257212618 == 3)) | |
678 | + | then $acc31257212618 | |
679 | 679 | else { | |
680 | - | let $ | |
681 | - | if (($ | |
682 | - | then $ | |
680 | + | let $acc41257212618 = CurrentRewardEntry($acc31257212618, $list1257212618[3]) | |
681 | + | if (($size1257212618 == 4)) | |
682 | + | then $acc41257212618 | |
683 | 683 | else { | |
684 | - | let $ | |
685 | - | if (($ | |
686 | - | then $ | |
684 | + | let $acc51257212618 = CurrentRewardEntry($acc41257212618, $list1257212618[4]) | |
685 | + | if (($size1257212618 == 5)) | |
686 | + | then $acc51257212618 | |
687 | 687 | else { | |
688 | - | let $ | |
689 | - | if (($ | |
690 | - | then $ | |
688 | + | let $acc61257212618 = CurrentRewardEntry($acc51257212618, $list1257212618[5]) | |
689 | + | if (($size1257212618 == 6)) | |
690 | + | then $acc61257212618 | |
691 | 691 | else { | |
692 | - | let $ | |
693 | - | if (($ | |
694 | - | then $ | |
692 | + | let $acc71257212618 = CurrentRewardEntry($acc61257212618, $list1257212618[6]) | |
693 | + | if (($size1257212618 == 7)) | |
694 | + | then $acc71257212618 | |
695 | 695 | else { | |
696 | - | let $ | |
697 | - | if (($ | |
698 | - | then $ | |
696 | + | let $acc81257212618 = CurrentRewardEntry($acc71257212618, $list1257212618[7]) | |
697 | + | if (($size1257212618 == 8)) | |
698 | + | then $acc81257212618 | |
699 | 699 | else { | |
700 | - | let $ | |
701 | - | if (($ | |
702 | - | then $ | |
700 | + | let $acc91257212618 = CurrentRewardEntry($acc81257212618, $list1257212618[8]) | |
701 | + | if (($size1257212618 == 9)) | |
702 | + | then $acc91257212618 | |
703 | 703 | else { | |
704 | - | let $ | |
705 | - | if (($ | |
706 | - | then $ | |
704 | + | let $acc101257212618 = CurrentRewardEntry($acc91257212618, $list1257212618[9]) | |
705 | + | if (($size1257212618 == 10)) | |
706 | + | then $acc101257212618 | |
707 | 707 | else { | |
708 | - | let $ | |
709 | - | if (($ | |
710 | - | then $ | |
708 | + | let $acc111257212618 = CurrentRewardEntry($acc101257212618, $list1257212618[10]) | |
709 | + | if (($size1257212618 == 11)) | |
710 | + | then $acc111257212618 | |
711 | 711 | else { | |
712 | - | let $ | |
713 | - | if (($ | |
714 | - | then $ | |
712 | + | let $acc121257212618 = CurrentRewardEntry($acc111257212618, $list1257212618[11]) | |
713 | + | if (($size1257212618 == 12)) | |
714 | + | then $acc121257212618 | |
715 | 715 | else { | |
716 | - | let $ | |
717 | - | if (($ | |
718 | - | then $ | |
716 | + | let $acc131257212618 = CurrentRewardEntry($acc121257212618, $list1257212618[12]) | |
717 | + | if (($size1257212618 == 13)) | |
718 | + | then $acc131257212618 | |
719 | 719 | else { | |
720 | - | let $ | |
721 | - | if (($ | |
722 | - | then $ | |
720 | + | let $acc141257212618 = CurrentRewardEntry($acc131257212618, $list1257212618[13]) | |
721 | + | if (($size1257212618 == 14)) | |
722 | + | then $acc141257212618 | |
723 | 723 | else { | |
724 | - | let $ | |
725 | - | if (($ | |
726 | - | then $ | |
724 | + | let $acc151257212618 = CurrentRewardEntry($acc141257212618, $list1257212618[14]) | |
725 | + | if (($size1257212618 == 15)) | |
726 | + | then $acc151257212618 | |
727 | 727 | else { | |
728 | - | let $ | |
729 | - | if (($ | |
730 | - | then $ | |
728 | + | let $acc161257212618 = CurrentRewardEntry($acc151257212618, $list1257212618[15]) | |
729 | + | if (($size1257212618 == 16)) | |
730 | + | then $acc161257212618 | |
731 | 731 | else { | |
732 | - | let $ | |
733 | - | if (($ | |
734 | - | then $ | |
732 | + | let $acc171257212618 = CurrentRewardEntry($acc161257212618, $list1257212618[16]) | |
733 | + | if (($size1257212618 == 17)) | |
734 | + | then $acc171257212618 | |
735 | 735 | else { | |
736 | - | let $ | |
737 | - | if (($ | |
738 | - | then $ | |
736 | + | let $acc181257212618 = CurrentRewardEntry($acc171257212618, $list1257212618[17]) | |
737 | + | if (($size1257212618 == 18)) | |
738 | + | then $acc181257212618 | |
739 | 739 | else { | |
740 | - | let $ | |
741 | - | if (($ | |
742 | - | then $ | |
740 | + | let $acc191257212618 = CurrentRewardEntry($acc181257212618, $list1257212618[18]) | |
741 | + | if (($size1257212618 == 19)) | |
742 | + | then $acc191257212618 | |
743 | 743 | else { | |
744 | - | let $ | |
745 | - | if (($ | |
746 | - | then $ | |
744 | + | let $acc201257212618 = CurrentRewardEntry($acc191257212618, $list1257212618[19]) | |
745 | + | if (($size1257212618 == 20)) | |
746 | + | then $acc201257212618 | |
747 | 747 | else { | |
748 | - | let $ | |
748 | + | let $acc211257212618 = CurrentRewardEntry($acc201257212618, $list1257212618[20]) | |
749 | 749 | throw("List size exceed 20") | |
750 | 750 | } | |
751 | 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 | 70 | let kStartHeight = "start_height" | |
71 | 71 | ||
72 | 72 | let kBasePeriod = "base_period" | |
73 | 73 | ||
74 | 74 | let kPeriodLength = "period_length" | |
75 | 75 | ||
76 | 76 | let kUserTotalStruc = "_user_total_struc" | |
77 | 77 | ||
78 | 78 | let basePeriod = valueOrErrorMessage(getInteger(votingLiteContract, kBasePeriod), "Empty kBasePeriod at voting contract") | |
79 | 79 | ||
80 | 80 | let startHeight = valueOrErrorMessage(getInteger(votingLiteContract, kStartHeight), "Empty kStartHeight at voting contract") | |
81 | 81 | ||
82 | 82 | let periodLength = valueOrErrorMessage(getInteger(votingLiteContract, kPeriodLength), "Empty kPeriodLength at voting contract") | |
83 | 83 | ||
84 | 84 | let currVotingPeriod = (basePeriod + ((height - startHeight) / periodLength)) | |
85 | 85 | ||
86 | 86 | func suspend (cause) = [BooleanEntry(keyActive, false), StringEntry(keyCause, cause)] | |
87 | 87 | ||
88 | 88 | ||
89 | 89 | func throwNotEnoughSWOP () = throw("Not enough SWOP: userSWOPLocked - userTotalVoteAmount < voteSWOPAmount") | |
90 | 90 | ||
91 | 91 | ||
92 | 92 | func getLastInterestInfo () = { | |
93 | 93 | let lastInterest = valueOrElse(getInteger(this, keyLastInterest), 0) | |
94 | 94 | lastInterest | |
95 | 95 | } | |
96 | 96 | ||
97 | 97 | ||
98 | 98 | func getUserSWOPLocked (user) = valueOrElse(getInteger(this, (toString(user) + keyUserSWOPLocked)), 0) | |
99 | 99 | ||
100 | 100 | ||
101 | 101 | func getUserSWOPClaimedAmount (user) = valueOrElse(getInteger(this, (toString(user) + keyUserSWOPClaimedAmount)), 0) | |
102 | 102 | ||
103 | 103 | ||
104 | 104 | func getUserInterestInfo (user,lastInterest) = { | |
105 | 105 | let userSWOPAmount = getUserSWOPLocked(user) | |
106 | 106 | let userLastInterest = getInteger(this, (toString(user) + keyUserLastInterest)) | |
107 | 107 | let userLastInterestValue = match userLastInterest { | |
108 | 108 | case userLastInterest: Int => | |
109 | 109 | userLastInterest | |
110 | 110 | case _ => | |
111 | 111 | lastInterest | |
112 | 112 | } | |
113 | 113 | $Tuple2(userLastInterestValue, userSWOPAmount) | |
114 | 114 | } | |
115 | 115 | ||
116 | 116 | ||
117 | 117 | func getTotalSWOPLocked () = valueOrElse(getInteger(this, keyTotalSWOPLocked), 0) | |
118 | 118 | ||
119 | 119 | ||
120 | 120 | func getUserUnvoteAmount (user) = { | |
121 | 121 | let $t037794290 = if (isDefined(getString(this, (toString(user) + kUserTotalStruc)))) | |
122 | 122 | then { | |
123 | 123 | let data = split(valueOrErrorMessage(getString(this, (toString(user) + kUserTotalStruc)), "Empty kUserTotalStruc"), "_") | |
124 | 124 | $Tuple3(parseIntValue(data[0]), parseIntValue(data[1]), parseIntValue(data[2])) | |
125 | 125 | } | |
126 | 126 | else { | |
127 | 127 | let uPoolTotalSWOP = valueOrElse(getInteger(this, (toString(user) + kUserTotalVoteSWOP)), 0) | |
128 | 128 | $Tuple3(uPoolTotalSWOP, 0, currVotingPeriod) | |
129 | 129 | } | |
130 | 130 | let userTotalVoteSWOP = $t037794290._1 | |
131 | 131 | let userUnvoted = $t037794290._2 | |
132 | 132 | let userUnvotedPeriod = $t037794290._3 | |
133 | 133 | if ((userUnvotedPeriod == currVotingPeriod)) | |
134 | 134 | then userUnvoted | |
135 | 135 | else 0 | |
136 | 136 | } | |
137 | 137 | ||
138 | 138 | ||
139 | 139 | func getUserVoteOptionAmount (user) = valueOrElse(getInteger(this, (toString(user) + keyUserVoteOptionAmount)), 0) | |
140 | 140 | ||
141 | 141 | ||
142 | 142 | func getVotingStartHeight (voteName) = valueOrElse(getInteger(this, (voteName + keyVotingStartHeight)), 0) | |
143 | 143 | ||
144 | 144 | ||
145 | 145 | func getVoteOptionAmount (user,voteName,option) = { | |
146 | 146 | let userVoteOptionAmount = getInteger(this, (((voteName + option) + toString(user)) + keyUserVoteOptionAmount)) | |
147 | 147 | let uvoa = match userVoteOptionAmount { | |
148 | 148 | case uvoa: Int => | |
149 | 149 | uvoa | |
150 | 150 | case uvoa: Unit => | |
151 | 151 | 0 | |
152 | 152 | case _ => | |
153 | 153 | throw("Match error") | |
154 | 154 | } | |
155 | 155 | valueOrErrorMessage(uvoa, (((("No data on the key: " + voteName) + option) + toString(user)) + keyUserVoteOptionAmount)) | |
156 | 156 | } | |
157 | 157 | ||
158 | 158 | ||
159 | 159 | func getVoteDuration (voteName) = valueOrErrorMessage(getInteger(this, (voteName + keyVoteDuration)), (("No data on the key: " + voteName) + keyVoteDuration)) | |
160 | 160 | ||
161 | 161 | ||
162 | 162 | func getTotalVoteOptionAmount (voteName,option) = { | |
163 | 163 | let totalVoteOptionAmount = getInteger(this, ((voteName + option) + keyTotalVoteOptionAmount)) | |
164 | 164 | let tvoa = match totalVoteOptionAmount { | |
165 | 165 | case tvoa: Int => | |
166 | 166 | tvoa | |
167 | 167 | case tvoa: Unit => | |
168 | 168 | 0 | |
169 | 169 | case _ => | |
170 | 170 | throw("Match error") | |
171 | 171 | } | |
172 | 172 | tvoa | |
173 | 173 | } | |
174 | 174 | ||
175 | 175 | ||
176 | 176 | func getUserGetBackAmount (voteName,option,user,getBackSWOPHeight) = { | |
177 | 177 | let key = ((((((voteName + "_") + option) + "_") + toString(user)) + "_") + toString(getBackSWOPHeight)) | |
178 | 178 | valueOrErrorMessage(getInteger(this, key), ("No data on the key: " + key)) | |
179 | 179 | } | |
180 | 180 | ||
181 | 181 | ||
182 | 182 | func claimCalc (caller) = { | |
183 | 183 | let lastInterest = getLastInterestInfo() | |
184 | 184 | let $t060286108 = getUserInterestInfo(caller, lastInterest) | |
185 | 185 | let userLastInterest = $t060286108._1 | |
186 | 186 | let userSWOPLocked = $t060286108._2 | |
187 | 187 | let claimAmount = fraction(userSWOPLocked, (lastInterest - userLastInterest), scaleValue) | |
188 | 188 | let userNewInterest = lastInterest | |
189 | 189 | $Tuple2(userNewInterest, claimAmount) | |
190 | 190 | } | |
191 | 191 | ||
192 | 192 | ||
193 | 193 | @Callable(i) | |
194 | 194 | func airDrop () = if (!(isActive)) | |
195 | 195 | then throw("DApp is inactive at this moment") | |
196 | 196 | else { | |
197 | 197 | let $t063736448 = $Tuple2(i.payments[0].amount, i.payments[0].assetId) | |
198 | 198 | let pmtAmount = $t063736448._1 | |
199 | 199 | let pmtAssetId = $t063736448._2 | |
200 | 200 | if ((pmtAssetId != SWOP)) | |
201 | 201 | then throw("Incorrect pmtAssetId") | |
202 | 202 | else { | |
203 | 203 | let totalSWOPLocked = getTotalSWOPLocked() | |
204 | 204 | let lastInterest = getLastInterestInfo() | |
205 | 205 | let interestNew = (lastInterest + fraction(pmtAmount, scaleValue, totalSWOPLocked)) | |
206 | 206 | [IntegerEntry(keyLastInterest, interestNew)] | |
207 | 207 | } | |
208 | 208 | } | |
209 | 209 | ||
210 | 210 | ||
211 | 211 | ||
212 | 212 | @Callable(i) | |
213 | 213 | func lockSWOP () = if (!(isActive)) | |
214 | 214 | then throw("DApp is inactive at this moment") | |
215 | 215 | else { | |
216 | 216 | let $t068866961 = $Tuple2(i.payments[0].amount, i.payments[0].assetId) | |
217 | 217 | let pmtAmount = $t068866961._1 | |
218 | 218 | let pmtAssetId = $t068866961._2 | |
219 | 219 | if ((pmtAssetId != SWOP)) | |
220 | 220 | then throw("Incorrect pmtAssetId") | |
221 | 221 | else { | |
222 | 222 | let lastInterest = getLastInterestInfo() | |
223 | 223 | let $t070777159 = getUserInterestInfo(i.caller, lastInterest) | |
224 | 224 | let userLastInterest = $t070777159._1 | |
225 | 225 | let userSWOPLocked = $t070777159._2 | |
226 | 226 | let claimAmount = fraction(userSWOPLocked, (lastInterest - userLastInterest), scaleValue) | |
227 | 227 | let userSWOPLockedNew = ((userSWOPLocked + pmtAmount) + claimAmount) | |
228 | 228 | let userNewInterest = lastInterest | |
229 | 229 | let totalSWOPLocked = getTotalSWOPLocked() | |
230 | 230 | let totalSWOPLockedNew = ((totalSWOPLocked + pmtAmount) + claimAmount) | |
231 | 231 | let userClaimedAmount = getUserSWOPClaimedAmount(i.caller) | |
232 | 232 | let userClaimedAmountNew = (userClaimedAmount + claimAmount) | |
233 | 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)] | |
234 | 234 | } | |
235 | 235 | } | |
236 | 236 | ||
237 | 237 | ||
238 | 238 | ||
239 | 239 | @Callable(i) | |
240 | 240 | func withdrawSWOP (withdrawAmount) = if (!(isActive)) | |
241 | 241 | then throw("DApp is inactive at this moment") | |
242 | 242 | else { | |
243 | 243 | let totalSWOPLocked = getTotalSWOPLocked() | |
244 | 244 | let userSWOPLocked = getUserSWOPLocked(i.caller) | |
245 | 245 | let $t082438298 = claimCalc(i.caller) | |
246 | 246 | let userNewInterest = $t082438298._1 | |
247 | 247 | let claimAmount = $t082438298._2 | |
248 | 248 | let userUnvoteAmount = getUserUnvoteAmount(i.caller) | |
249 | 249 | let availableFund = (userSWOPLocked - userUnvoteAmount) | |
250 | 250 | if ((withdrawAmount > availableFund)) | |
251 | 251 | then throw("withdrawAmount > availableFund") | |
252 | 252 | else { | |
253 | 253 | let totalSWOPLockedNew = ((totalSWOPLocked + claimAmount) - withdrawAmount) | |
254 | 254 | let userSWOPamountNew = ((userSWOPLocked + claimAmount) - withdrawAmount) | |
255 | 255 | let userClaimedAmount = getUserSWOPClaimedAmount(i.caller) | |
256 | 256 | let userClaimedAmountNew = (userClaimedAmount + claimAmount) | |
257 | 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)] | |
258 | 258 | } | |
259 | 259 | } | |
260 | 260 | ||
261 | 261 | ||
262 | 262 | ||
263 | 263 | @Callable(i) | |
264 | 264 | func claimAndWithdrawSWOP () = if (!(isActive)) | |
265 | 265 | then throw("DApp is inactive at this moment") | |
266 | 266 | else { | |
267 | 267 | let lastInterest = getLastInterestInfo() | |
268 | 268 | let $t094119466 = claimCalc(i.caller) | |
269 | 269 | let userNewInterest = $t094119466._1 | |
270 | 270 | let claimAmount = $t094119466._2 | |
271 | 271 | let userClaimedAmount = getUserSWOPClaimedAmount(i.caller) | |
272 | 272 | let userClaimedAmountNew = (userClaimedAmount + claimAmount) | |
273 | 273 | if ((claimAmount == 0)) | |
274 | 274 | then throw("You have 0 available SWOP") | |
275 | 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)] | |
276 | 276 | } | |
277 | 277 | ||
278 | 278 | ||
279 | 279 | ||
280 | 280 | @Callable(i) | |
281 | 281 | func claimAndStakeSWOP () = if (!(isActive)) | |
282 | 282 | then throw("DApp is inactive at this moment") | |
283 | 283 | else { | |
284 | 284 | let totalSWOPLocked = getTotalSWOPLocked() | |
285 | 285 | let userSWOPLocked = getUserSWOPLocked(i.caller) | |
286 | 286 | let lastInterest = getLastInterestInfo() | |
287 | 287 | let $t01024510300 = claimCalc(i.caller) | |
288 | 288 | let userNewInterest = $t01024510300._1 | |
289 | 289 | let claimAmount = $t01024510300._2 | |
290 | 290 | let userSWOPLockedNew = (userSWOPLocked + claimAmount) | |
291 | 291 | let totalSWOPLockedNew = (totalSWOPLocked + claimAmount) | |
292 | 292 | let userClaimedAmount = getUserSWOPClaimedAmount(i.caller) | |
293 | 293 | let userClaimedAmountNew = (userClaimedAmount + claimAmount) | |
294 | 294 | if ((claimAmount == 0)) | |
295 | 295 | then throw("You have 0 available SWOP") | |
296 | 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)] | |
297 | 297 | } | |
298 | 298 | ||
299 | 299 | ||
300 | 300 | ||
301 | 301 | @Callable(i) | |
302 | 302 | func updateWeights (previousPools,previousRewards,currentPools,currentRewards,rewardUpdateHeight) = if (!(isActive)) | |
303 | 303 | then throw("DApp is inactive at this moment") | |
304 | - | else if (!(containsElement([adminPubKey1, adminPubKey2, adminPubKey3, adminPubKeyStartStop], i.callerPublicKey))) | |
304 | + | else if (!(containsElement([adminPubKey1, adminPubKey2, adminPubKey3, adminPubKeyStartStop, adminPubKeyWallet], i.callerPublicKey))) | |
305 | 305 | then throw("Only admin can call this function") | |
306 | 306 | else { | |
307 | 307 | func sum (a,b) = (a + b) | |
308 | 308 | ||
309 | 309 | func PreviousRewardEntry (accumulated,pool) = { | |
310 | 310 | let poolIndex = value(indexOf(previousPools, pool)) | |
311 | 311 | let poolReward = previousRewards[poolIndex] | |
312 | 312 | IntegerEntry((pool + keyRewardPoolFractionPrevious), poolReward) :: accumulated | |
313 | 313 | } | |
314 | 314 | ||
315 | 315 | func CurrentRewardEntry (accumulated,pool) = { | |
316 | 316 | let poolIndex = value(indexOf(currentPools, pool)) | |
317 | 317 | let poolReward = currentRewards[poolIndex] | |
318 | 318 | IntegerEntry((pool + keyRewardPoolFractionCurrent), poolReward) :: accumulated | |
319 | 319 | } | |
320 | 320 | ||
321 | 321 | let sumRewardPrevious = { | |
322 | - | let $ | |
323 | - | let $ | |
324 | - | let $ | |
325 | - | if (($ | |
326 | - | then $ | |
322 | + | let $list1208512118 = previousRewards | |
323 | + | let $size1208512118 = size($list1208512118) | |
324 | + | let $acc01208512118 = 0 | |
325 | + | if (($size1208512118 == 0)) | |
326 | + | then $acc01208512118 | |
327 | 327 | else { | |
328 | - | let $ | |
329 | - | if (($ | |
330 | - | then $ | |
328 | + | let $acc11208512118 = sum($acc01208512118, $list1208512118[0]) | |
329 | + | if (($size1208512118 == 1)) | |
330 | + | then $acc11208512118 | |
331 | 331 | else { | |
332 | - | let $ | |
333 | - | if (($ | |
334 | - | then $ | |
332 | + | let $acc21208512118 = sum($acc11208512118, $list1208512118[1]) | |
333 | + | if (($size1208512118 == 2)) | |
334 | + | then $acc21208512118 | |
335 | 335 | else { | |
336 | - | let $ | |
337 | - | if (($ | |
338 | - | then $ | |
336 | + | let $acc31208512118 = sum($acc21208512118, $list1208512118[2]) | |
337 | + | if (($size1208512118 == 3)) | |
338 | + | then $acc31208512118 | |
339 | 339 | else { | |
340 | - | let $ | |
341 | - | if (($ | |
342 | - | then $ | |
340 | + | let $acc41208512118 = sum($acc31208512118, $list1208512118[3]) | |
341 | + | if (($size1208512118 == 4)) | |
342 | + | then $acc41208512118 | |
343 | 343 | else { | |
344 | - | let $ | |
345 | - | if (($ | |
346 | - | then $ | |
344 | + | let $acc51208512118 = sum($acc41208512118, $list1208512118[4]) | |
345 | + | if (($size1208512118 == 5)) | |
346 | + | then $acc51208512118 | |
347 | 347 | else { | |
348 | - | let $ | |
349 | - | if (($ | |
350 | - | then $ | |
348 | + | let $acc61208512118 = sum($acc51208512118, $list1208512118[5]) | |
349 | + | if (($size1208512118 == 6)) | |
350 | + | then $acc61208512118 | |
351 | 351 | else { | |
352 | - | let $ | |
353 | - | if (($ | |
354 | - | then $ | |
352 | + | let $acc71208512118 = sum($acc61208512118, $list1208512118[6]) | |
353 | + | if (($size1208512118 == 7)) | |
354 | + | then $acc71208512118 | |
355 | 355 | else { | |
356 | - | let $ | |
357 | - | if (($ | |
358 | - | then $ | |
356 | + | let $acc81208512118 = sum($acc71208512118, $list1208512118[7]) | |
357 | + | if (($size1208512118 == 8)) | |
358 | + | then $acc81208512118 | |
359 | 359 | else { | |
360 | - | let $ | |
361 | - | if (($ | |
362 | - | then $ | |
360 | + | let $acc91208512118 = sum($acc81208512118, $list1208512118[8]) | |
361 | + | if (($size1208512118 == 9)) | |
362 | + | then $acc91208512118 | |
363 | 363 | else { | |
364 | - | let $ | |
365 | - | if (($ | |
366 | - | then $ | |
364 | + | let $acc101208512118 = sum($acc91208512118, $list1208512118[9]) | |
365 | + | if (($size1208512118 == 10)) | |
366 | + | then $acc101208512118 | |
367 | 367 | else { | |
368 | - | let $ | |
369 | - | if (($ | |
370 | - | then $ | |
368 | + | let $acc111208512118 = sum($acc101208512118, $list1208512118[10]) | |
369 | + | if (($size1208512118 == 11)) | |
370 | + | then $acc111208512118 | |
371 | 371 | else { | |
372 | - | let $ | |
373 | - | if (($ | |
374 | - | then $ | |
372 | + | let $acc121208512118 = sum($acc111208512118, $list1208512118[11]) | |
373 | + | if (($size1208512118 == 12)) | |
374 | + | then $acc121208512118 | |
375 | 375 | else { | |
376 | - | let $ | |
377 | - | if (($ | |
378 | - | then $ | |
376 | + | let $acc131208512118 = sum($acc121208512118, $list1208512118[12]) | |
377 | + | if (($size1208512118 == 13)) | |
378 | + | then $acc131208512118 | |
379 | 379 | else { | |
380 | - | let $ | |
381 | - | if (($ | |
382 | - | then $ | |
380 | + | let $acc141208512118 = sum($acc131208512118, $list1208512118[13]) | |
381 | + | if (($size1208512118 == 14)) | |
382 | + | then $acc141208512118 | |
383 | 383 | else { | |
384 | - | let $ | |
385 | - | if (($ | |
386 | - | then $ | |
384 | + | let $acc151208512118 = sum($acc141208512118, $list1208512118[14]) | |
385 | + | if (($size1208512118 == 15)) | |
386 | + | then $acc151208512118 | |
387 | 387 | else { | |
388 | - | let $ | |
389 | - | if (($ | |
390 | - | then $ | |
388 | + | let $acc161208512118 = sum($acc151208512118, $list1208512118[15]) | |
389 | + | if (($size1208512118 == 16)) | |
390 | + | then $acc161208512118 | |
391 | 391 | else { | |
392 | - | let $ | |
393 | - | if (($ | |
394 | - | then $ | |
392 | + | let $acc171208512118 = sum($acc161208512118, $list1208512118[16]) | |
393 | + | if (($size1208512118 == 17)) | |
394 | + | then $acc171208512118 | |
395 | 395 | else { | |
396 | - | let $ | |
397 | - | if (($ | |
398 | - | then $ | |
396 | + | let $acc181208512118 = sum($acc171208512118, $list1208512118[17]) | |
397 | + | if (($size1208512118 == 18)) | |
398 | + | then $acc181208512118 | |
399 | 399 | else { | |
400 | - | let $ | |
401 | - | if (($ | |
402 | - | then $ | |
400 | + | let $acc191208512118 = sum($acc181208512118, $list1208512118[18]) | |
401 | + | if (($size1208512118 == 19)) | |
402 | + | then $acc191208512118 | |
403 | 403 | else { | |
404 | - | let $ | |
405 | - | if (($ | |
406 | - | then $ | |
404 | + | let $acc201208512118 = sum($acc191208512118, $list1208512118[19]) | |
405 | + | if (($size1208512118 == 20)) | |
406 | + | then $acc201208512118 | |
407 | 407 | else { | |
408 | - | let $ | |
408 | + | let $acc211208512118 = sum($acc201208512118, $list1208512118[20]) | |
409 | 409 | throw("List size exceed 20") | |
410 | 410 | } | |
411 | 411 | } | |
412 | 412 | } | |
413 | 413 | } | |
414 | 414 | } | |
415 | 415 | } | |
416 | 416 | } | |
417 | 417 | } | |
418 | 418 | } | |
419 | 419 | } | |
420 | 420 | } | |
421 | 421 | } | |
422 | 422 | } | |
423 | 423 | } | |
424 | 424 | } | |
425 | 425 | } | |
426 | 426 | } | |
427 | 427 | } | |
428 | 428 | } | |
429 | 429 | } | |
430 | 430 | } | |
431 | 431 | } | |
432 | 432 | let sumRewardCurrent = { | |
433 | - | let $ | |
434 | - | let $ | |
435 | - | let $ | |
436 | - | if (($ | |
437 | - | then $ | |
433 | + | let $list1214712179 = currentRewards | |
434 | + | let $size1214712179 = size($list1214712179) | |
435 | + | let $acc01214712179 = 0 | |
436 | + | if (($size1214712179 == 0)) | |
437 | + | then $acc01214712179 | |
438 | 438 | else { | |
439 | - | let $ | |
440 | - | if (($ | |
441 | - | then $ | |
439 | + | let $acc11214712179 = sum($acc01214712179, $list1214712179[0]) | |
440 | + | if (($size1214712179 == 1)) | |
441 | + | then $acc11214712179 | |
442 | 442 | else { | |
443 | - | let $ | |
444 | - | if (($ | |
445 | - | then $ | |
443 | + | let $acc21214712179 = sum($acc11214712179, $list1214712179[1]) | |
444 | + | if (($size1214712179 == 2)) | |
445 | + | then $acc21214712179 | |
446 | 446 | else { | |
447 | - | let $ | |
448 | - | if (($ | |
449 | - | then $ | |
447 | + | let $acc31214712179 = sum($acc21214712179, $list1214712179[2]) | |
448 | + | if (($size1214712179 == 3)) | |
449 | + | then $acc31214712179 | |
450 | 450 | else { | |
451 | - | let $ | |
452 | - | if (($ | |
453 | - | then $ | |
451 | + | let $acc41214712179 = sum($acc31214712179, $list1214712179[3]) | |
452 | + | if (($size1214712179 == 4)) | |
453 | + | then $acc41214712179 | |
454 | 454 | else { | |
455 | - | let $ | |
456 | - | if (($ | |
457 | - | then $ | |
455 | + | let $acc51214712179 = sum($acc41214712179, $list1214712179[4]) | |
456 | + | if (($size1214712179 == 5)) | |
457 | + | then $acc51214712179 | |
458 | 458 | else { | |
459 | - | let $ | |
460 | - | if (($ | |
461 | - | then $ | |
459 | + | let $acc61214712179 = sum($acc51214712179, $list1214712179[5]) | |
460 | + | if (($size1214712179 == 6)) | |
461 | + | then $acc61214712179 | |
462 | 462 | else { | |
463 | - | let $ | |
464 | - | if (($ | |
465 | - | then $ | |
463 | + | let $acc71214712179 = sum($acc61214712179, $list1214712179[6]) | |
464 | + | if (($size1214712179 == 7)) | |
465 | + | then $acc71214712179 | |
466 | 466 | else { | |
467 | - | let $ | |
468 | - | if (($ | |
469 | - | then $ | |
467 | + | let $acc81214712179 = sum($acc71214712179, $list1214712179[7]) | |
468 | + | if (($size1214712179 == 8)) | |
469 | + | then $acc81214712179 | |
470 | 470 | else { | |
471 | - | let $ | |
472 | - | if (($ | |
473 | - | then $ | |
471 | + | let $acc91214712179 = sum($acc81214712179, $list1214712179[8]) | |
472 | + | if (($size1214712179 == 9)) | |
473 | + | then $acc91214712179 | |
474 | 474 | else { | |
475 | - | let $ | |
476 | - | if (($ | |
477 | - | then $ | |
475 | + | let $acc101214712179 = sum($acc91214712179, $list1214712179[9]) | |
476 | + | if (($size1214712179 == 10)) | |
477 | + | then $acc101214712179 | |
478 | 478 | else { | |
479 | - | let $ | |
480 | - | if (($ | |
481 | - | then $ | |
479 | + | let $acc111214712179 = sum($acc101214712179, $list1214712179[10]) | |
480 | + | if (($size1214712179 == 11)) | |
481 | + | then $acc111214712179 | |
482 | 482 | else { | |
483 | - | let $ | |
484 | - | if (($ | |
485 | - | then $ | |
483 | + | let $acc121214712179 = sum($acc111214712179, $list1214712179[11]) | |
484 | + | if (($size1214712179 == 12)) | |
485 | + | then $acc121214712179 | |
486 | 486 | else { | |
487 | - | let $ | |
488 | - | if (($ | |
489 | - | then $ | |
487 | + | let $acc131214712179 = sum($acc121214712179, $list1214712179[12]) | |
488 | + | if (($size1214712179 == 13)) | |
489 | + | then $acc131214712179 | |
490 | 490 | else { | |
491 | - | let $ | |
492 | - | if (($ | |
493 | - | then $ | |
491 | + | let $acc141214712179 = sum($acc131214712179, $list1214712179[13]) | |
492 | + | if (($size1214712179 == 14)) | |
493 | + | then $acc141214712179 | |
494 | 494 | else { | |
495 | - | let $ | |
496 | - | if (($ | |
497 | - | then $ | |
495 | + | let $acc151214712179 = sum($acc141214712179, $list1214712179[14]) | |
496 | + | if (($size1214712179 == 15)) | |
497 | + | then $acc151214712179 | |
498 | 498 | else { | |
499 | - | let $ | |
500 | - | if (($ | |
501 | - | then $ | |
499 | + | let $acc161214712179 = sum($acc151214712179, $list1214712179[15]) | |
500 | + | if (($size1214712179 == 16)) | |
501 | + | then $acc161214712179 | |
502 | 502 | else { | |
503 | - | let $ | |
504 | - | if (($ | |
505 | - | then $ | |
503 | + | let $acc171214712179 = sum($acc161214712179, $list1214712179[16]) | |
504 | + | if (($size1214712179 == 17)) | |
505 | + | then $acc171214712179 | |
506 | 506 | else { | |
507 | - | let $ | |
508 | - | if (($ | |
509 | - | then $ | |
507 | + | let $acc181214712179 = sum($acc171214712179, $list1214712179[17]) | |
508 | + | if (($size1214712179 == 18)) | |
509 | + | then $acc181214712179 | |
510 | 510 | else { | |
511 | - | let $ | |
512 | - | if (($ | |
513 | - | then $ | |
511 | + | let $acc191214712179 = sum($acc181214712179, $list1214712179[18]) | |
512 | + | if (($size1214712179 == 19)) | |
513 | + | then $acc191214712179 | |
514 | 514 | else { | |
515 | - | let $ | |
516 | - | if (($ | |
517 | - | then $ | |
515 | + | let $acc201214712179 = sum($acc191214712179, $list1214712179[19]) | |
516 | + | if (($size1214712179 == 20)) | |
517 | + | then $acc201214712179 | |
518 | 518 | else { | |
519 | - | let $ | |
519 | + | let $acc211214712179 = sum($acc201214712179, $list1214712179[20]) | |
520 | 520 | throw("List size exceed 20") | |
521 | 521 | } | |
522 | 522 | } | |
523 | 523 | } | |
524 | 524 | } | |
525 | 525 | } | |
526 | 526 | } | |
527 | 527 | } | |
528 | 528 | } | |
529 | 529 | } | |
530 | 530 | } | |
531 | 531 | } | |
532 | 532 | } | |
533 | 533 | } | |
534 | 534 | } | |
535 | 535 | } | |
536 | 536 | } | |
537 | 537 | } | |
538 | 538 | } | |
539 | 539 | } | |
540 | 540 | } | |
541 | 541 | } | |
542 | 542 | } | |
543 | 543 | if ((height > rewardUpdateHeight)) | |
544 | 544 | then throw("rewardUpdateHeight < height") | |
545 | 545 | else if (if ((sumRewardPrevious != totalVoteShare)) | |
546 | 546 | then true | |
547 | 547 | else (sumRewardCurrent != totalVoteShare)) | |
548 | 548 | then throw("sumRewardPrevious != totalVoteShare or sumRewardCurrent != totalVoteShare") | |
549 | 549 | else { | |
550 | 550 | let previousRewardEntryNew = { | |
551 | - | let $ | |
552 | - | let $ | |
553 | - | let $ | |
554 | - | if (($ | |
555 | - | then $ | |
551 | + | let $list1249112539 = previousPools | |
552 | + | let $size1249112539 = size($list1249112539) | |
553 | + | let $acc01249112539 = nil | |
554 | + | if (($size1249112539 == 0)) | |
555 | + | then $acc01249112539 | |
556 | 556 | else { | |
557 | - | let $ | |
558 | - | if (($ | |
559 | - | then $ | |
557 | + | let $acc11249112539 = PreviousRewardEntry($acc01249112539, $list1249112539[0]) | |
558 | + | if (($size1249112539 == 1)) | |
559 | + | then $acc11249112539 | |
560 | 560 | else { | |
561 | - | let $ | |
562 | - | if (($ | |
563 | - | then $ | |
561 | + | let $acc21249112539 = PreviousRewardEntry($acc11249112539, $list1249112539[1]) | |
562 | + | if (($size1249112539 == 2)) | |
563 | + | then $acc21249112539 | |
564 | 564 | else { | |
565 | - | let $ | |
566 | - | if (($ | |
567 | - | then $ | |
565 | + | let $acc31249112539 = PreviousRewardEntry($acc21249112539, $list1249112539[2]) | |
566 | + | if (($size1249112539 == 3)) | |
567 | + | then $acc31249112539 | |
568 | 568 | else { | |
569 | - | let $ | |
570 | - | if (($ | |
571 | - | then $ | |
569 | + | let $acc41249112539 = PreviousRewardEntry($acc31249112539, $list1249112539[3]) | |
570 | + | if (($size1249112539 == 4)) | |
571 | + | then $acc41249112539 | |
572 | 572 | else { | |
573 | - | let $ | |
574 | - | if (($ | |
575 | - | then $ | |
573 | + | let $acc51249112539 = PreviousRewardEntry($acc41249112539, $list1249112539[4]) | |
574 | + | if (($size1249112539 == 5)) | |
575 | + | then $acc51249112539 | |
576 | 576 | else { | |
577 | - | let $ | |
578 | - | if (($ | |
579 | - | then $ | |
577 | + | let $acc61249112539 = PreviousRewardEntry($acc51249112539, $list1249112539[5]) | |
578 | + | if (($size1249112539 == 6)) | |
579 | + | then $acc61249112539 | |
580 | 580 | else { | |
581 | - | let $ | |
582 | - | if (($ | |
583 | - | then $ | |
581 | + | let $acc71249112539 = PreviousRewardEntry($acc61249112539, $list1249112539[6]) | |
582 | + | if (($size1249112539 == 7)) | |
583 | + | then $acc71249112539 | |
584 | 584 | else { | |
585 | - | let $ | |
586 | - | if (($ | |
587 | - | then $ | |
585 | + | let $acc81249112539 = PreviousRewardEntry($acc71249112539, $list1249112539[7]) | |
586 | + | if (($size1249112539 == 8)) | |
587 | + | then $acc81249112539 | |
588 | 588 | else { | |
589 | - | let $ | |
590 | - | if (($ | |
591 | - | then $ | |
589 | + | let $acc91249112539 = PreviousRewardEntry($acc81249112539, $list1249112539[8]) | |
590 | + | if (($size1249112539 == 9)) | |
591 | + | then $acc91249112539 | |
592 | 592 | else { | |
593 | - | let $ | |
594 | - | if (($ | |
595 | - | then $ | |
593 | + | let $acc101249112539 = PreviousRewardEntry($acc91249112539, $list1249112539[9]) | |
594 | + | if (($size1249112539 == 10)) | |
595 | + | then $acc101249112539 | |
596 | 596 | else { | |
597 | - | let $ | |
598 | - | if (($ | |
599 | - | then $ | |
597 | + | let $acc111249112539 = PreviousRewardEntry($acc101249112539, $list1249112539[10]) | |
598 | + | if (($size1249112539 == 11)) | |
599 | + | then $acc111249112539 | |
600 | 600 | else { | |
601 | - | let $ | |
602 | - | if (($ | |
603 | - | then $ | |
601 | + | let $acc121249112539 = PreviousRewardEntry($acc111249112539, $list1249112539[11]) | |
602 | + | if (($size1249112539 == 12)) | |
603 | + | then $acc121249112539 | |
604 | 604 | else { | |
605 | - | let $ | |
606 | - | if (($ | |
607 | - | then $ | |
605 | + | let $acc131249112539 = PreviousRewardEntry($acc121249112539, $list1249112539[12]) | |
606 | + | if (($size1249112539 == 13)) | |
607 | + | then $acc131249112539 | |
608 | 608 | else { | |
609 | - | let $ | |
610 | - | if (($ | |
611 | - | then $ | |
609 | + | let $acc141249112539 = PreviousRewardEntry($acc131249112539, $list1249112539[13]) | |
610 | + | if (($size1249112539 == 14)) | |
611 | + | then $acc141249112539 | |
612 | 612 | else { | |
613 | - | let $ | |
614 | - | if (($ | |
615 | - | then $ | |
613 | + | let $acc151249112539 = PreviousRewardEntry($acc141249112539, $list1249112539[14]) | |
614 | + | if (($size1249112539 == 15)) | |
615 | + | then $acc151249112539 | |
616 | 616 | else { | |
617 | - | let $ | |
618 | - | if (($ | |
619 | - | then $ | |
617 | + | let $acc161249112539 = PreviousRewardEntry($acc151249112539, $list1249112539[15]) | |
618 | + | if (($size1249112539 == 16)) | |
619 | + | then $acc161249112539 | |
620 | 620 | else { | |
621 | - | let $ | |
622 | - | if (($ | |
623 | - | then $ | |
621 | + | let $acc171249112539 = PreviousRewardEntry($acc161249112539, $list1249112539[16]) | |
622 | + | if (($size1249112539 == 17)) | |
623 | + | then $acc171249112539 | |
624 | 624 | else { | |
625 | - | let $ | |
626 | - | if (($ | |
627 | - | then $ | |
625 | + | let $acc181249112539 = PreviousRewardEntry($acc171249112539, $list1249112539[17]) | |
626 | + | if (($size1249112539 == 18)) | |
627 | + | then $acc181249112539 | |
628 | 628 | else { | |
629 | - | let $ | |
630 | - | if (($ | |
631 | - | then $ | |
629 | + | let $acc191249112539 = PreviousRewardEntry($acc181249112539, $list1249112539[18]) | |
630 | + | if (($size1249112539 == 19)) | |
631 | + | then $acc191249112539 | |
632 | 632 | else { | |
633 | - | let $ | |
634 | - | if (($ | |
635 | - | then $ | |
633 | + | let $acc201249112539 = PreviousRewardEntry($acc191249112539, $list1249112539[19]) | |
634 | + | if (($size1249112539 == 20)) | |
635 | + | then $acc201249112539 | |
636 | 636 | else { | |
637 | - | let $ | |
637 | + | let $acc211249112539 = PreviousRewardEntry($acc201249112539, $list1249112539[20]) | |
638 | 638 | throw("List size exceed 20") | |
639 | 639 | } | |
640 | 640 | } | |
641 | 641 | } | |
642 | 642 | } | |
643 | 643 | } | |
644 | 644 | } | |
645 | 645 | } | |
646 | 646 | } | |
647 | 647 | } | |
648 | 648 | } | |
649 | 649 | } | |
650 | 650 | } | |
651 | 651 | } | |
652 | 652 | } | |
653 | 653 | } | |
654 | 654 | } | |
655 | 655 | } | |
656 | 656 | } | |
657 | 657 | } | |
658 | 658 | } | |
659 | 659 | } | |
660 | 660 | } | |
661 | 661 | let currentRewardEntryNew = { | |
662 | - | let $ | |
663 | - | let $ | |
664 | - | let $ | |
665 | - | if (($ | |
666 | - | then $ | |
662 | + | let $list1257212618 = currentPools | |
663 | + | let $size1257212618 = size($list1257212618) | |
664 | + | let $acc01257212618 = nil | |
665 | + | if (($size1257212618 == 0)) | |
666 | + | then $acc01257212618 | |
667 | 667 | else { | |
668 | - | let $ | |
669 | - | if (($ | |
670 | - | then $ | |
668 | + | let $acc11257212618 = CurrentRewardEntry($acc01257212618, $list1257212618[0]) | |
669 | + | if (($size1257212618 == 1)) | |
670 | + | then $acc11257212618 | |
671 | 671 | else { | |
672 | - | let $ | |
673 | - | if (($ | |
674 | - | then $ | |
672 | + | let $acc21257212618 = CurrentRewardEntry($acc11257212618, $list1257212618[1]) | |
673 | + | if (($size1257212618 == 2)) | |
674 | + | then $acc21257212618 | |
675 | 675 | else { | |
676 | - | let $ | |
677 | - | if (($ | |
678 | - | then $ | |
676 | + | let $acc31257212618 = CurrentRewardEntry($acc21257212618, $list1257212618[2]) | |
677 | + | if (($size1257212618 == 3)) | |
678 | + | then $acc31257212618 | |
679 | 679 | else { | |
680 | - | let $ | |
681 | - | if (($ | |
682 | - | then $ | |
680 | + | let $acc41257212618 = CurrentRewardEntry($acc31257212618, $list1257212618[3]) | |
681 | + | if (($size1257212618 == 4)) | |
682 | + | then $acc41257212618 | |
683 | 683 | else { | |
684 | - | let $ | |
685 | - | if (($ | |
686 | - | then $ | |
684 | + | let $acc51257212618 = CurrentRewardEntry($acc41257212618, $list1257212618[4]) | |
685 | + | if (($size1257212618 == 5)) | |
686 | + | then $acc51257212618 | |
687 | 687 | else { | |
688 | - | let $ | |
689 | - | if (($ | |
690 | - | then $ | |
688 | + | let $acc61257212618 = CurrentRewardEntry($acc51257212618, $list1257212618[5]) | |
689 | + | if (($size1257212618 == 6)) | |
690 | + | then $acc61257212618 | |
691 | 691 | else { | |
692 | - | let $ | |
693 | - | if (($ | |
694 | - | then $ | |
692 | + | let $acc71257212618 = CurrentRewardEntry($acc61257212618, $list1257212618[6]) | |
693 | + | if (($size1257212618 == 7)) | |
694 | + | then $acc71257212618 | |
695 | 695 | else { | |
696 | - | let $ | |
697 | - | if (($ | |
698 | - | then $ | |
696 | + | let $acc81257212618 = CurrentRewardEntry($acc71257212618, $list1257212618[7]) | |
697 | + | if (($size1257212618 == 8)) | |
698 | + | then $acc81257212618 | |
699 | 699 | else { | |
700 | - | let $ | |
701 | - | if (($ | |
702 | - | then $ | |
700 | + | let $acc91257212618 = CurrentRewardEntry($acc81257212618, $list1257212618[8]) | |
701 | + | if (($size1257212618 == 9)) | |
702 | + | then $acc91257212618 | |
703 | 703 | else { | |
704 | - | let $ | |
705 | - | if (($ | |
706 | - | then $ | |
704 | + | let $acc101257212618 = CurrentRewardEntry($acc91257212618, $list1257212618[9]) | |
705 | + | if (($size1257212618 == 10)) | |
706 | + | then $acc101257212618 | |
707 | 707 | else { | |
708 | - | let $ | |
709 | - | if (($ | |
710 | - | then $ | |
708 | + | let $acc111257212618 = CurrentRewardEntry($acc101257212618, $list1257212618[10]) | |
709 | + | if (($size1257212618 == 11)) | |
710 | + | then $acc111257212618 | |
711 | 711 | else { | |
712 | - | let $ | |
713 | - | if (($ | |
714 | - | then $ | |
712 | + | let $acc121257212618 = CurrentRewardEntry($acc111257212618, $list1257212618[11]) | |
713 | + | if (($size1257212618 == 12)) | |
714 | + | then $acc121257212618 | |
715 | 715 | else { | |
716 | - | let $ | |
717 | - | if (($ | |
718 | - | then $ | |
716 | + | let $acc131257212618 = CurrentRewardEntry($acc121257212618, $list1257212618[12]) | |
717 | + | if (($size1257212618 == 13)) | |
718 | + | then $acc131257212618 | |
719 | 719 | else { | |
720 | - | let $ | |
721 | - | if (($ | |
722 | - | then $ | |
720 | + | let $acc141257212618 = CurrentRewardEntry($acc131257212618, $list1257212618[13]) | |
721 | + | if (($size1257212618 == 14)) | |
722 | + | then $acc141257212618 | |
723 | 723 | else { | |
724 | - | let $ | |
725 | - | if (($ | |
726 | - | then $ | |
724 | + | let $acc151257212618 = CurrentRewardEntry($acc141257212618, $list1257212618[14]) | |
725 | + | if (($size1257212618 == 15)) | |
726 | + | then $acc151257212618 | |
727 | 727 | else { | |
728 | - | let $ | |
729 | - | if (($ | |
730 | - | then $ | |
728 | + | let $acc161257212618 = CurrentRewardEntry($acc151257212618, $list1257212618[15]) | |
729 | + | if (($size1257212618 == 16)) | |
730 | + | then $acc161257212618 | |
731 | 731 | else { | |
732 | - | let $ | |
733 | - | if (($ | |
734 | - | then $ | |
732 | + | let $acc171257212618 = CurrentRewardEntry($acc161257212618, $list1257212618[16]) | |
733 | + | if (($size1257212618 == 17)) | |
734 | + | then $acc171257212618 | |
735 | 735 | else { | |
736 | - | let $ | |
737 | - | if (($ | |
738 | - | then $ | |
736 | + | let $acc181257212618 = CurrentRewardEntry($acc171257212618, $list1257212618[17]) | |
737 | + | if (($size1257212618 == 18)) | |
738 | + | then $acc181257212618 | |
739 | 739 | else { | |
740 | - | let $ | |
741 | - | if (($ | |
742 | - | then $ | |
740 | + | let $acc191257212618 = CurrentRewardEntry($acc181257212618, $list1257212618[18]) | |
741 | + | if (($size1257212618 == 19)) | |
742 | + | then $acc191257212618 | |
743 | 743 | else { | |
744 | - | let $ | |
745 | - | if (($ | |
746 | - | then $ | |
744 | + | let $acc201257212618 = CurrentRewardEntry($acc191257212618, $list1257212618[19]) | |
745 | + | if (($size1257212618 == 20)) | |
746 | + | then $acc201257212618 | |
747 | 747 | else { | |
748 | - | let $ | |
748 | + | let $acc211257212618 = CurrentRewardEntry($acc201257212618, $list1257212618[20]) | |
749 | 749 | throw("List size exceed 20") | |
750 | 750 | } | |
751 | 751 | } | |
752 | 752 | } | |
753 | 753 | } | |
754 | 754 | } | |
755 | 755 | } | |
756 | 756 | } | |
757 | 757 | } | |
758 | 758 | } | |
759 | 759 | } | |
760 | 760 | } | |
761 | 761 | } | |
762 | 762 | } | |
763 | 763 | } | |
764 | 764 | } | |
765 | 765 | } | |
766 | 766 | } | |
767 | 767 | } | |
768 | 768 | } | |
769 | 769 | } | |
770 | 770 | } | |
771 | 771 | } | |
772 | 772 | ((previousRewardEntryNew ++ currentRewardEntryNew) ++ [IntegerEntry(keyRewardUpdateHeight, rewardUpdateHeight)]) | |
773 | 773 | } | |
774 | 774 | } | |
775 | 775 | ||
776 | 776 | ||
777 | 777 | ||
778 | 778 | @Callable(i) | |
779 | 779 | func shutdown () = if (!(isActive)) | |
780 | 780 | then throw(("DApp is already suspended. Cause: " + valueOrElse(getString(this, keyCause), "the cause wasn't specified"))) | |
781 | 781 | else if (!(containsElement([adminPubKey1, adminPubKey2, adminPubKey3, adminPubKeyStartStop], i.callerPublicKey))) | |
782 | 782 | then throw("Only admin can call this function") | |
783 | 783 | else suspend("Paused by admin") | |
784 | 784 | ||
785 | 785 | ||
786 | 786 | ||
787 | 787 | @Callable(i) | |
788 | 788 | func activate () = if (isActive) | |
789 | 789 | then throw("DApp is already active") | |
790 | 790 | else if (!(containsElement([adminPubKey1, adminPubKey2, adminPubKey3, adminPubKeyStartStop], i.callerPublicKey))) | |
791 | 791 | then throw("Only admin can call this function") | |
792 | 792 | else [BooleanEntry(keyActive, true), DeleteEntry(keyCause)] | |
793 | 793 | ||
794 | 794 | ||
795 | 795 | @Verifier(tx) | |
796 | 796 | func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) | |
797 | 797 |
github/deemru/w8io/169f3d6 958.17 ms ◑