tx · 6rLD4CDndN4tFiVth23tXZQL7cguVsyQKC2KWQgMH7a2 3N6HSS7Toat1RhyEsyqVGgVSRzH19W1FTbP: -0.03500000 Waves 2023.08.18 12:44 [2715872] smart account 3N6HSS7Toat1RhyEsyqVGgVSRzH19W1FTbP > SELF 0.00000000 Waves
{ "type": 13, "id": "6rLD4CDndN4tFiVth23tXZQL7cguVsyQKC2KWQgMH7a2", "fee": 3500000, "feeAssetId": null, "timestamp": 1692351884920, "version": 1, "sender": "3N6HSS7Toat1RhyEsyqVGgVSRzH19W1FTbP", "senderPublicKey": "AoKo4segKHU4DeJnxXQYJj2u7J6XJeux6r8KLW52cd2Q", "proofs": [ "2bexnAQwzNAYPdUEqouvgQPcZK3C1dVmL5i5bNuZRyCkMiZ85C1SuGg7AkdbCkSUaTmY9UDrhaewbbWdZyFagPoP" ], "script": "base64:BwJHCAISABIDCgECEgcKBQIBAQEBEgYKBAEBAQESAwoBAhIDCgECEgQKAgICEgQKAgIIEgQKAgIYEgQKAgIIEgQKAgIYEgMKAQI/AANTRVACAl9fAA1DT05UUkFDVF9OQU1FAg9jYWxjdWxhdG9yLnJpZGUABlNDQUxFOACAwtcvAAdQRU5ESU5HAgdQRU5ESU5HAAVXQVZFUwIFV0FWRVMBB3dyYXBFcnIBAXMJAKwCAgkArAICBQ1DT05UUkFDVF9OQU1FAgI6IAUBcwEIdGhyb3dFcnIBAXMJAAIBCQEHd3JhcEVycgEFAXMBD2Fzc2V0SWRUb1N0cmluZwEHYXNzZXRJZAQHJG1hdGNoMAUHYXNzZXRJZAMJAAECBQckbWF0Y2gwAgpCeXRlVmVjdG9yBAFiBQckbWF0Y2gwCQDYBAEFAWIDCQABAgUHJG1hdGNoMAIEVW5pdAUFV0FWRVMJAAIBAgtNYXRjaCBlcnJvcgEPc3RyaW5nVG9Bc3NldElkAQFzAwkAAAIFAXMFBVdBVkVTBQR1bml0CQDZBAEFAXMBA2FicwEBbgMJAGYCAAAFAW4JAQEtAQUBbgUBbgERa2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pY3QgdmFsdWUgaXMgbm90IGVxdWFsIHRvIGl0c2VsZi4JAAIBAiRTdHJpY3QgdmFsdWUgaXMgbm90IGVxdWFsIHRvIGl0c2VsZi4JAAIBAiRTdHJpY3QgdmFsdWUgaXMgbm90IGVxdWFsIHRvIGl0c2VsZi4BAnR4AQZ2ZXJpZnkABAlwdWJsaWNLZXkEByRtYXRjaDAJARlnZXRNYW5hZ2VyUHVibGljS2V5T3JVbml0AAMJAAECBQckbWF0Y2gwAgpCeXRlVmVjdG9yBANwdWIFByRtYXRjaDAFA3B1YggFAnR4D3NlbmRlclB1YmxpY0tleQkA9AMDCAUCdHgJYm9keUJ5dGVzCQCRAwIIBQJ0eAZwcm9vZnMAAAUJcHVibGljS2V5/yNtfQ==", "chainId": 84, "height": 2715872, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: G5PH2HgsX53FmJ1aYeViXQsxTuPvCf4XogMtSW3tEvZa Next: CphUDDL8wy6DDW4P13GA5Up16NHqiMwP9TkSLAjEchGk Diff:
Old | New | Differences | |
---|---|---|---|
355 | 355 | } | |
356 | 356 | ||
357 | 357 | ||
358 | + | func getRewardSplit (generatorRewardAmount) = { | |
359 | + | let powerShareRatio = max([0, min([valueOrElse(getInteger(factoryAddressOrFail, keyPowerShareRatio()), 0), SCALE8])]) | |
360 | + | let businessPartRatio = max([0, min([valueOrElse(getInteger(factoryAddressOrFail, keyBusinessTreasuryPart()), 0), SCALE8])]) | |
361 | + | let amountToPowerPart = fraction(generatorRewardAmount, powerShareRatio, SCALE8) | |
362 | + | let businessTreasuryAmountPart = fraction(generatorRewardAmount, businessPartRatio, SCALE8) | |
363 | + | let rewardRemainder = ((generatorRewardAmount - amountToPowerPart) - businessTreasuryAmountPart) | |
364 | + | if ((rewardRemainder > 0)) | |
365 | + | then $Tuple3(amountToPowerPart, businessTreasuryAmountPart, rewardRemainder) | |
366 | + | else throwErr("amount to main treasury cannot be negative") | |
367 | + | } | |
368 | + | ||
369 | + | ||
370 | + | func calcRewardSplitForAmount (amount) = { | |
371 | + | let blocksProcessingBatchSizeMax = 20 | |
372 | + | let $t01008410177 = getRewardSplit(amount) | |
373 | + | let amountToPowerPart = $t01008410177._1 | |
374 | + | let businessTreasuryAmountPart = $t01008410177._2 | |
375 | + | let rewardRemainder = $t01008410177._3 | |
376 | + | let blockProcessingReward = valueOrErrorMessage(getInteger(factoryAddressOrFail, keyBlockProcessingReward()), wrapErr("invalid block processing reward")) | |
377 | + | let blockProcessingRewardByGenerator = (blockProcessingReward / blocksProcessingBatchSizeMax) | |
378 | + | let toLpAmount = (rewardRemainder - blockProcessingReward) | |
379 | + | $Tuple5(amountToPowerPart, businessTreasuryAmountPart, blockProcessingReward, toLpAmount, amount) | |
380 | + | } | |
381 | + | ||
382 | + | ||
383 | + | @Callable(i) | |
384 | + | func rewardSplitREADONLY () = { | |
385 | + | let targetBlockHeight = (height - 1) | |
386 | + | let targetBlockInfo = valueOrErrorMessage(blockInfoByHeight(targetBlockHeight), wrapErr("invalid block info")) | |
387 | + | let treasuryRewardOrFail = valueOrErrorMessage(rewardForOption(targetBlockInfo.rewards, proxyTreasuryAddressOrFail), wrapErr(("invalid treasury reward for height " + toString(targetBlockHeight)))) | |
388 | + | $Tuple2(nil, calcRewardSplitForAmount(treasuryRewardOrFail)) | |
389 | + | } | |
390 | + | ||
391 | + | ||
392 | + | ||
358 | 393 | @Callable(i) | |
359 | 394 | func claimLP (userAddressBytes) = { | |
360 | 395 | let checkCaller = onlyFactory(i) | |
399 | 434 | else throwErr("invalid PWR stake part")] | |
400 | 435 | if ((checks == checks)) | |
401 | 436 | then { | |
402 | - | let $ | |
403 | - | let newPrice = $ | |
404 | - | let lpAssetAmountToBurn = $ | |
405 | - | let lpAssetFinalQuantity = $ | |
437 | + | let $t01351513620 = calculatePrice(lpPartInWaves) | |
438 | + | let newPrice = $t01351513620._1 | |
439 | + | let lpAssetAmountToBurn = $t01351513620._2 | |
440 | + | let lpAssetFinalQuantity = $t01351513620._3 | |
406 | 441 | let newPeriod = (currentPeriodOrFail + 1) | |
407 | 442 | func addNewAction (actions,payment) = { | |
408 | - | let $ | |
409 | - | let scriptTransfers = $ | |
410 | - | let assetIdsString = $ | |
411 | - | let amountsString = $ | |
443 | + | let $t01376813830 = actions | |
444 | + | let scriptTransfers = $t01376813830._1 | |
445 | + | let assetIdsString = $t01376813830._2 | |
446 | + | let amountsString = $t01376813830._3 | |
412 | 447 | let paymentAmount = payment.amount | |
413 | 448 | let paymentAssetId = payment.assetId | |
414 | 449 | let newAssetIdsString = ("%s" + makeString([assetIdsString, assetIdToString(paymentAssetId)], SEP)) | |
417 | 452 | $Tuple3((scriptTransfers :+ newScriptTransfer), newAssetIdsString, newAmountsString) | |
418 | 453 | } | |
419 | 454 | ||
420 | - | let $ | |
455 | + | let $t01429014381 = { | |
421 | 456 | let $l = i.payments | |
422 | 457 | let $s = size($l) | |
423 | 458 | let $acc0 = $Tuple3(nil, "", "") | |
431 | 466 | ||
432 | 467 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
433 | 468 | } | |
434 | - | let scriptTransfers = $ | |
435 | - | let AssetIds = $ | |
436 | - | let Amounts = $ | |
469 | + | let scriptTransfers = $t01429014381._1 | |
470 | + | let AssetIds = $t01429014381._2 | |
471 | + | let Amounts = $t01429014381._3 | |
437 | 472 | let factoryActions = [invoke(factoryAddressOrFail, "integerEntry", [keyPowerManagerBonus(currentPeriodOrFail), powerStakePartInWaves], nil), invoke(factoryAddressOrFail, "integerEntry", [keyClaimWavesAmount(currentPeriodOrFail), claimPartInWaves], nil), invoke(factoryAddressOrFail, "integerEntry", [keyCurrentPeriod(), newPeriod], nil), invoke(factoryAddressOrFail, "integerEntry", [keyPriceForPeriod(newPeriod), newPrice], nil), invoke(factoryAddressOrFail, "integerEntry", [keyStartHeight(newPeriod), (periodEndHeight + 1)], nil), invoke(factoryAddressOrFail, "burn", [lpAssetAmountToBurn], nil), invoke(factoryAddressOrFail, "integerEntry", [keyWithdrawal(), 0], nil), invoke(factoryAddressOrFail, "integerEntry", [keyInvested(unit), lpPartInWaves], nil), invoke(factoryAddressOrFail, "integerEntry", [keyDonated(unit), donationPartInWaves], nil), invoke(factoryAddressOrFail, "stringEntry", [keyPeriodWithdrawalAssetIds(newPeriod), AssetIds], nil), invoke(factoryAddressOrFail, "stringEntry", [keyPeriodWithdrawalAmounts(newPeriod), Amounts], nil)] | |
438 | 473 | $Tuple2(scriptTransfers, factoryActions) | |
439 | 474 | } | |
465 | 500 | else throwErr("invalid PWR stake part")] | |
466 | 501 | if ((checks == checks)) | |
467 | 502 | then { | |
468 | - | let $ | |
469 | - | let newPrice = $ | |
470 | - | let lpAssetAmountToBurn = $ | |
471 | - | let lpAssetFinalQuantity = $ | |
503 | + | let $t01726017365 = calculatePrice(lpPartInWaves) | |
504 | + | let newPrice = $t01726017365._1 | |
505 | + | let lpAssetAmountToBurn = $t01726017365._2 | |
506 | + | let lpAssetFinalQuantity = $t01726017365._3 | |
472 | 507 | $Tuple2(nil, $Tuple6(claimPartInWaves, lpPartInWaves, donationPartInWaves, newPrice, lpAssetAmountToBurn, lpAssetFinalQuantity)) | |
473 | 508 | } | |
474 | 509 | else throw("Strict value is not equal to itself.") | |
494 | 529 | let payment = if ((size(i.payments) == 1)) | |
495 | 530 | then i.payments[0] | |
496 | 531 | else throwErr("invalid payments") | |
497 | - | let $ | |
532 | + | let $t01847418651 = if (if ((payment.assetId == unit)) | |
498 | 533 | then (payment.amount > 0) | |
499 | 534 | else false) | |
500 | 535 | then $Tuple2(payment.amount, payment.assetId) | |
501 | 536 | else throwErr("invalid payment amount") | |
502 | - | let paymentAmount = $ | |
503 | - | let paymentAssetId = $ | |
537 | + | let paymentAmount = $t01847418651._1 | |
538 | + | let paymentAssetId = $t01847418651._2 | |
504 | 539 | let treasuryPart = valueOrElse(getInteger(factoryAddressOrFail, keyBusinessTreasuryPart()), 0) | |
505 | 540 | let paymentsWithoutTreasuryPart = fraction(paymentAmount, (SCALE8 - treasuryPart), SCALE8) | |
506 | 541 | let lpAssetAmount = if ((currentPriceOrFail > 0)) | |
554 | 589 | let userAddress = Address(userAddressBytes) | |
555 | 590 | let withdrawalRequestOption = valueOrErrorMessage(getString(factoryAddressOrFail, keyWithdrawalRequest(userAddress, txId)), wrapErr("invalid withdrawal request")) | |
556 | 591 | let currentPeriodOrFail = valueOrErrorMessage(getInteger(factoryAddressOrFail, keyCurrentPeriod()), wrapErr("invalid period")) | |
557 | - | let $ | |
558 | - | let status = $ | |
559 | - | let lpAssetAmount = $ | |
560 | - | let targetPeriod = $ | |
561 | - | let claimTxId = $ | |
592 | + | let $t02138521498 = parseWithdrawalRequestValueOrFail(withdrawalRequestOption) | |
593 | + | let status = $t02138521498._1 | |
594 | + | let lpAssetAmount = $t02138521498._2 | |
595 | + | let targetPeriod = $t02138521498._3 | |
596 | + | let claimTxId = $t02138521498._4 | |
562 | 597 | let checks = [if ((status == PENDING)) | |
563 | 598 | then true | |
564 | 599 | else throwErr("invalid withdrawal request status"), if ((targetPeriod > currentPeriodOrFail)) | |
586 | 621 | let checkCaller = onlyFactory(i) | |
587 | 622 | if ((checkCaller == checkCaller)) | |
588 | 623 | then { | |
589 | - | let $ | |
590 | - | let userAddress = $ | |
591 | - | let lpAssetAmount = $ | |
592 | - | let targetPeriod = $ | |
593 | - | let wavesAmount = $ | |
594 | - | let assetsString = $ | |
595 | - | let amountsString = $ | |
624 | + | let $t02248422669 = claimCollateralINTERNAL(userAddressBytes, fromBase58String(txId)) | |
625 | + | let userAddress = $t02248422669._1 | |
626 | + | let lpAssetAmount = $t02248422669._2 | |
627 | + | let targetPeriod = $t02248422669._3 | |
628 | + | let wavesAmount = $t02248422669._4 | |
629 | + | let assetsString = $t02248422669._5 | |
630 | + | let amountsString = $t02248422669._6 | |
596 | 631 | let assetsList = removeByIndex(split_51C(assetsString, SEP), 0) | |
597 | 632 | let amountsList = removeByIndex(split_51C(amountsString, SEP), 0) | |
598 | 633 | let factoryActions = [invoke(factoryAddressOrFail, "deleteEntry", [keyWithdrawalRequest(userAddress, fromBase58String(txId))], nil), invoke(factoryAddressOrFail, "integerEntry", [keyWithdrawalHistory(userAddress, fromBase58String(txId)), lpAssetAmount], nil), invoke(factoryAddressOrFail, "transferAssets", [userAddressBytes, assetsList, amountsList], nil)] | |
609 | 644 | if ((checkCaller == checkCaller)) | |
610 | 645 | then { | |
611 | 646 | func addNewAction (state,txId) = { | |
612 | - | let $ | |
613 | - | let userAddress = $ | |
614 | - | let lpAssetAmount = $ | |
615 | - | let targetPeriod = $ | |
616 | - | let wavesAmount = $ | |
617 | - | let assetsString = $ | |
618 | - | let amountsString = $ | |
647 | + | let $t02342723626 = claimCollateralINTERNAL(userAddressBytes, fromBase58String(txId)) | |
648 | + | let userAddress = $t02342723626._1 | |
649 | + | let lpAssetAmount = $t02342723626._2 | |
650 | + | let targetPeriod = $t02342723626._3 | |
651 | + | let wavesAmount = $t02342723626._4 | |
652 | + | let assetsString = $t02342723626._5 | |
653 | + | let amountsString = $t02342723626._6 | |
619 | 654 | let assetsList = removeByIndex(split_51C(assetsString, SEP), 0) | |
620 | 655 | let amountsList = removeByIndex(split_51C(amountsString, SEP), 0) | |
621 | 656 | let newActions = [invoke(factoryAddressOrFail, "deleteEntry", [keyWithdrawalRequest(userAddress, fromBase58String(txId))], nil), invoke(factoryAddressOrFail, "integerEntry", [keyWithdrawalHistory(userAddress, fromBase58String(txId)), lpAssetAmount], nil), invoke(factoryAddressOrFail, "transferAssets", [userAddressBytes, assetsList, amountsList], nil)] | |
713 | 748 | let callerReward = if ((inc == (blocksProcessingBatchSize - 1))) | |
714 | 749 | then (blockProcessingRewardByGenerator + blockProcessingRewardByGeneratorRemainder) | |
715 | 750 | else blockProcessingRewardByGenerator | |
716 | - | let powerShareRatio = max([0, min([valueOrElse(getInteger(factoryAddressOrFail, keyPowerShareRatio()), 0), SCALE8])]) | |
717 | - | let shareAmountToPower = fraction((treasuryRewardOrFail - callerReward), powerShareRatio, SCALE8) | |
751 | + | let $t02756627674 = getRewardSplit(treasuryRewardOrFail) | |
752 | + | let shareAmountToPower = $t02756627674._1 | |
753 | + | let businessTreasuryAmountPart = $t02756627674._2 | |
754 | + | let rewardRemainder = $t02756627674._3 | |
718 | 755 | let lpAssetAmount = if ((currentPriceOrFail > 0)) | |
719 | - | then fraction(( | |
756 | + | then fraction((rewardRemainder - callerReward), SCALE8, currentPriceOrFail) | |
720 | 757 | else 0 | |
721 | 758 | let factoryActionsSingle = [invoke(factoryAddressOrFail, "stringEntry", [keyBlockProcessed(targetBlockHeight), makeString([toBase58String(i.transactionId), toString(currentPeriodOrFail), toString(generator), toBase58String(userAddressBytes), toString(treasuryRewardOrFail), toString(callerReward), toString(lpAssetAmount), toString(shareAmountToPower)], SEP)], nil), invoke(factoryAddressOrFail, "integerEntry", [keyAvailable(generator), (available + lpAssetAmount)], nil)] | |
722 | 759 | if ((factoryActionsSingle == factoryActionsSingle)) | |
723 | 760 | then { | |
724 | - | let $t02670426758 = acc | |
725 | - | let lpAssetAcc = $t02670426758._1 | |
726 | - | let rewardAcc = $t02670426758._2 | |
727 | - | let powerShareDataTuple = $t02670426758._3 | |
728 | - | let $t02676526831 = powerShareDataTuple | |
729 | - | let powerShareAcc = $t02676526831._1 | |
730 | - | let generatorPowerShareList = $t02676526831._2 | |
761 | + | let $t02852228597 = acc | |
762 | + | let lpAssetAcc = $t02852228597._1 | |
763 | + | let rewardAcc = $t02852228597._2 | |
764 | + | let businessTreasuryAcc = $t02852228597._3 | |
765 | + | let powerShareDataTuple = $t02852228597._4 | |
766 | + | let $t02860428670 = powerShareDataTuple | |
767 | + | let powerShareAcc = $t02860428670._1 | |
768 | + | let generatorPowerShareList = $t02860428670._2 | |
731 | 769 | let newGeneratorPowerShareList = (generatorPowerShareList :+ $Tuple2(toString(generator), shareAmountToPower)) | |
732 | - | $ | |
770 | + | $Tuple4((lpAssetAcc + lpAssetAmount), (rewardAcc + treasuryRewardOrFail), (businessTreasuryAcc + businessTreasuryAmountPart), $Tuple2((powerShareAcc + shareAmountToPower), newGeneratorPowerShareList)) | |
733 | 771 | } | |
734 | 772 | else throw("Strict value is not equal to itself.") | |
735 | 773 | } | |
736 | 774 | ||
737 | 775 | let list = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19] | |
738 | - | let $ | |
776 | + | let $t02911829280 = { | |
739 | 777 | let $l = list | |
740 | 778 | let $s = size($l) | |
741 | - | let $acc0 = $ | |
779 | + | let $acc0 = $Tuple4(0, 0, 0, $Tuple2(0, nil)) | |
742 | 780 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
743 | 781 | then $a | |
744 | 782 | else map($a, $l[$i]) | |
749 | 787 | ||
750 | 788 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20) | |
751 | 789 | } | |
752 | - | if (($ | |
790 | + | if (($t02911829280 == $t02911829280)) | |
753 | 791 | then { | |
754 | - | let powerShareDataTuple = $t02718627292._3 | |
755 | - | let rewardAmountTotal = $t02718627292._2 | |
756 | - | let lpAssetAmountTotal = $t02718627292._1 | |
757 | - | let $t02729627365 = powerShareDataTuple | |
758 | - | let amountToPowerTotal = $t02729627365._1 | |
759 | - | let powerShareAmountsList = $t02729627365._2 | |
760 | - | let businessTreasuryPart = valueOrElse(getInteger(factoryAddressOrFail, keyBusinessTreasuryPart()), 0) | |
761 | - | let rewardToBusinessTreasuryAmount = fraction(rewardAmountTotal, businessTreasuryPart, SCALE8) | |
792 | + | let powerShareDataTuple = $t02911829280._4 | |
793 | + | let rewardToBusinessTreasuryAmount = $t02911829280._3 | |
794 | + | let rewardAmountTotal = $t02911829280._2 | |
795 | + | let lpAssetAmountTotal = $t02911829280._1 | |
796 | + | let $t02928429353 = powerShareDataTuple | |
797 | + | let amountToPowerTotal = $t02928429353._1 | |
798 | + | let powerShareAmountsList = $t02928429353._2 | |
762 | 799 | let rewardToMainTreasuryAmount = (((rewardAmountTotal - rewardToBusinessTreasuryAmount) - blockProcessingReward) - amountToPowerTotal) | |
763 | 800 | let invested = valueOrElse(getInteger(factoryAddressOrFail, keyInvested(unit)), 0) | |
764 | 801 | let powerShareActions = if ((amountToPowerTotal > 0)) | |
776 | 813 | 0 | |
777 | 814 | } | |
778 | 815 | func stakePowerInvoke (acc,next) = { | |
779 | - | let $ | |
780 | - | let generator = $ | |
781 | - | let shareAmount = $ | |
816 | + | let $t03022730262 = next | |
817 | + | let generator = $t03022730262._1 | |
818 | + | let shareAmount = $t03022730262._2 | |
782 | 819 | if ((amountToPowerTotal > 0)) | |
783 | 820 | then { | |
784 | 821 | let powerAmount = fraction(shareAmount, totalPowerAmountInt, amountToPowerTotal) |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 7 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let SEP = "__" | |
5 | 5 | ||
6 | 6 | let CONTRACT_NAME = "calculator.ride" | |
7 | 7 | ||
8 | 8 | let SCALE8 = 100000000 | |
9 | 9 | ||
10 | 10 | let PENDING = "PENDING" | |
11 | 11 | ||
12 | 12 | let WAVES = "WAVES" | |
13 | 13 | ||
14 | 14 | func wrapErr (s) = ((CONTRACT_NAME + ": ") + s) | |
15 | 15 | ||
16 | 16 | ||
17 | 17 | func throwErr (s) = throw(wrapErr(s)) | |
18 | 18 | ||
19 | 19 | ||
20 | 20 | func assetIdToString (assetId) = match assetId { | |
21 | 21 | case b: ByteVector => | |
22 | 22 | toBase58String(b) | |
23 | 23 | case _: Unit => | |
24 | 24 | WAVES | |
25 | 25 | case _ => | |
26 | 26 | throw("Match error") | |
27 | 27 | } | |
28 | 28 | ||
29 | 29 | ||
30 | 30 | func stringToAssetId (s) = if ((s == WAVES)) | |
31 | 31 | then unit | |
32 | 32 | else fromBase58String(s) | |
33 | 33 | ||
34 | 34 | ||
35 | 35 | func abs (n) = if ((0 > n)) | |
36 | 36 | then -(n) | |
37 | 37 | else n | |
38 | 38 | ||
39 | 39 | ||
40 | 40 | func keyFactoryAddress () = makeString(["%s", "factory"], SEP) | |
41 | 41 | ||
42 | 42 | ||
43 | 43 | func keyManagerPublicKey () = makeString(["%s", "managerPublicKey"], SEP) | |
44 | 44 | ||
45 | 45 | ||
46 | 46 | func keyLpAssetId () = makeString(["%s", "lpAssetId"], SEP) | |
47 | 47 | ||
48 | 48 | ||
49 | 49 | func keyProxyTreasuryAddress () = makeString(["%s", "proxyTreasury"], SEP) | |
50 | 50 | ||
51 | 51 | ||
52 | 52 | func keyMainTreasuryAddress () = makeString(["%s", "mainTreasury"], SEP) | |
53 | 53 | ||
54 | 54 | ||
55 | 55 | func keyBusinessTreasuryAddress () = makeString(["%s", "businessTreasury"], SEP) | |
56 | 56 | ||
57 | 57 | ||
58 | 58 | func keyBusinessTreasuryPart () = makeString(["%s", "businessTreasuryPart"], SEP) | |
59 | 59 | ||
60 | 60 | ||
61 | 61 | func keyPowerContractAddress () = makeString(["%s", "powerContract"], SEP) | |
62 | 62 | ||
63 | 63 | ||
64 | 64 | func keyPowerShareRatio () = makeString(["%s", "powerShareRatio"], SEP) | |
65 | 65 | ||
66 | 66 | ||
67 | 67 | func keyPowerAssetId () = makeString(["%s", "powerAssetId"], SEP) | |
68 | 68 | ||
69 | 69 | ||
70 | 70 | func keyInvested (assetId) = makeString(["%s%s", "invested", assetIdToString(assetId)], SEP) | |
71 | 71 | ||
72 | 72 | ||
73 | 73 | func keyDonated (assetId) = makeString(["%s%s", "donated", assetIdToString(assetId)], SEP) | |
74 | 74 | ||
75 | 75 | ||
76 | 76 | func keyAvailable (userAddress) = makeString(["%s%s", "available", toString(userAddress)], SEP) | |
77 | 77 | ||
78 | 78 | ||
79 | 79 | func keyClaimed (userAddress) = makeString(["%s%s", "claimed", toString(userAddress)], SEP) | |
80 | 80 | ||
81 | 81 | ||
82 | 82 | func keyCurrentPeriod () = makeString(["%s", "currentPeriod"], SEP) | |
83 | 83 | ||
84 | 84 | ||
85 | 85 | func keyPriceForPeriod (period) = makeString(["%s%d", "price", toString(period)], SEP) | |
86 | 86 | ||
87 | 87 | ||
88 | 88 | func keyStartHeight (period) = makeString(["%s%d", "startHeight", toString(period)], SEP) | |
89 | 89 | ||
90 | 90 | ||
91 | 91 | func keyPowerManagerBonus (period) = makeString(["%s%d", "powerManagerBonus", toString(period)], SEP) | |
92 | 92 | ||
93 | 93 | ||
94 | 94 | func keyClaimWavesAmount (period) = makeString(["%s%d", "claimWavesAmount", toString(period)], SEP) | |
95 | 95 | ||
96 | 96 | ||
97 | 97 | func keyPeriodLength () = "%s__periodLength" | |
98 | 98 | ||
99 | 99 | ||
100 | 100 | func keyInvestPeriodLength () = "%s__investPeriodLength" | |
101 | 101 | ||
102 | 102 | ||
103 | 103 | func keyBlockProcessingReward () = "%s__blockProcessingReward" | |
104 | 104 | ||
105 | 105 | ||
106 | 106 | func keyNextBlockToProcess () = "%s__nextBlockToProcess" | |
107 | 107 | ||
108 | 108 | ||
109 | 109 | func keyBlockProcessed (height) = makeString(["%s%d", "blockProcessed", toString(height)], SEP) | |
110 | 110 | ||
111 | 111 | ||
112 | 112 | func keyWithdrawal () = "%s__withdrawal" | |
113 | 113 | ||
114 | 114 | ||
115 | 115 | func keyWithdrawalRequest (userAddress,txId) = makeString(["%s%s%s", "withdrawal", toString(userAddress), toBase58String(txId)], SEP) | |
116 | 116 | ||
117 | 117 | ||
118 | 118 | func valueWithdrawalRequest (status,lpAssetAmount,targetPeriod,claimTxId) = { | |
119 | 119 | let claimTxIdStr = match claimTxId { | |
120 | 120 | case b: ByteVector => | |
121 | 121 | toBase58String(b) | |
122 | 122 | case _: Unit => | |
123 | 123 | "SOON" | |
124 | 124 | case _ => | |
125 | 125 | throw("Match error") | |
126 | 126 | } | |
127 | 127 | makeString(["%s%d%d%s", status, toString(lpAssetAmount), toString(targetPeriod), claimTxIdStr], SEP) | |
128 | 128 | } | |
129 | 129 | ||
130 | 130 | ||
131 | 131 | func keyWithdrawalHistory (userAddress,txId) = makeString(["%s%s%s", "withdrawalHistory", toString(userAddress), toBase58String(txId)], SEP) | |
132 | 132 | ||
133 | 133 | ||
134 | 134 | func keyPeriodWithdrawalAssetIds (period) = makeString(["%s%d", "periodReward", toString(period)], SEP) | |
135 | 135 | ||
136 | 136 | ||
137 | 137 | func keyPeriodWithdrawalAmounts (period) = makeString(["%s%d", "periodRewardAmount", toString(period)], SEP) | |
138 | 138 | ||
139 | 139 | ||
140 | 140 | func parseWithdrawalRequestValueOrFail (s) = { | |
141 | 141 | let parts = split(s, SEP) | |
142 | 142 | if ((size(parts) == 5)) | |
143 | 143 | then { | |
144 | 144 | let status = parts[1] | |
145 | 145 | let lpAssetAmount = valueOrErrorMessage(parseInt(parts[2]), wrapErr("invalid lpAssetAmount")) | |
146 | 146 | let targetPeriod = valueOrErrorMessage(parseInt(parts[3]), wrapErr("invalid targetPeriod")) | |
147 | 147 | let claimTxId = parts[4] | |
148 | 148 | $Tuple4(status, lpAssetAmount, targetPeriod, claimTxId) | |
149 | 149 | } | |
150 | 150 | else throwErr("invalid withdrawal request value") | |
151 | 151 | } | |
152 | 152 | ||
153 | 153 | ||
154 | 154 | let factoryAddressOption = match getString(this, keyFactoryAddress()) { | |
155 | 155 | case s: String => | |
156 | 156 | addressFromString(s) | |
157 | 157 | case _: Unit => | |
158 | 158 | unit | |
159 | 159 | case _ => | |
160 | 160 | throw("Match error") | |
161 | 161 | } | |
162 | 162 | ||
163 | 163 | let factoryAddressOrFail = valueOrErrorMessage(factoryAddressOption, wrapErr("invalid factory address")) | |
164 | 164 | ||
165 | 165 | let lpAssetIdOption = match factoryAddressOption { | |
166 | 166 | case a: Address => | |
167 | 167 | match getString(a, keyLpAssetId()) { | |
168 | 168 | case s: String => | |
169 | 169 | fromBase58String(s) | |
170 | 170 | case _: Unit => | |
171 | 171 | unit | |
172 | 172 | case _ => | |
173 | 173 | throw("Match error") | |
174 | 174 | } | |
175 | 175 | case _: Unit => | |
176 | 176 | unit | |
177 | 177 | case _ => | |
178 | 178 | throw("Match error") | |
179 | 179 | } | |
180 | 180 | ||
181 | 181 | let lpAssetIdOrFail = valueOrErrorMessage(lpAssetIdOption, wrapErr("invalid lpAssetId")) | |
182 | 182 | ||
183 | 183 | let proxyTreasuryAddressOption = match factoryAddressOption { | |
184 | 184 | case a: Address => | |
185 | 185 | match getString(a, keyProxyTreasuryAddress()) { | |
186 | 186 | case s: String => | |
187 | 187 | addressFromString(s) | |
188 | 188 | case _: Unit => | |
189 | 189 | unit | |
190 | 190 | case _ => | |
191 | 191 | throw("Match error") | |
192 | 192 | } | |
193 | 193 | case _: Unit => | |
194 | 194 | unit | |
195 | 195 | case _ => | |
196 | 196 | throw("Match error") | |
197 | 197 | } | |
198 | 198 | ||
199 | 199 | let proxyTreasuryAddressOrFail = valueOrErrorMessage(proxyTreasuryAddressOption, wrapErr("invalid proxy treasury address")) | |
200 | 200 | ||
201 | 201 | let mainTreasuryAddressOption = match factoryAddressOption { | |
202 | 202 | case a: Address => | |
203 | 203 | match getString(a, keyMainTreasuryAddress()) { | |
204 | 204 | case s: String => | |
205 | 205 | addressFromString(s) | |
206 | 206 | case _: Unit => | |
207 | 207 | unit | |
208 | 208 | case _ => | |
209 | 209 | throw("Match error") | |
210 | 210 | } | |
211 | 211 | case _: Unit => | |
212 | 212 | unit | |
213 | 213 | case _ => | |
214 | 214 | throw("Match error") | |
215 | 215 | } | |
216 | 216 | ||
217 | 217 | let businessTreasuryAddressOption = match factoryAddressOption { | |
218 | 218 | case a: Address => | |
219 | 219 | match getString(a, keyBusinessTreasuryAddress()) { | |
220 | 220 | case s: String => | |
221 | 221 | addressFromString(s) | |
222 | 222 | case _: Unit => | |
223 | 223 | unit | |
224 | 224 | case _ => | |
225 | 225 | throw("Match error") | |
226 | 226 | } | |
227 | 227 | case _: Unit => | |
228 | 228 | unit | |
229 | 229 | case _ => | |
230 | 230 | throw("Match error") | |
231 | 231 | } | |
232 | 232 | ||
233 | 233 | let mainTreasuryAddressOrFail = valueOrErrorMessage(mainTreasuryAddressOption, wrapErr("invalid main treasury address")) | |
234 | 234 | ||
235 | 235 | let businessTreasuryAddressOrFail = valueOrErrorMessage(businessTreasuryAddressOption, wrapErr("invalid business treasury address")) | |
236 | 236 | ||
237 | 237 | let powerContractAddressOption = match factoryAddressOption { | |
238 | 238 | case a: Address => | |
239 | 239 | match getString(a, keyPowerContractAddress()) { | |
240 | 240 | case s: String => | |
241 | 241 | addressFromString(s) | |
242 | 242 | case _: Unit => | |
243 | 243 | unit | |
244 | 244 | case _ => | |
245 | 245 | throw("Match error") | |
246 | 246 | } | |
247 | 247 | case _: Unit => | |
248 | 248 | unit | |
249 | 249 | case _ => | |
250 | 250 | throw("Match error") | |
251 | 251 | } | |
252 | 252 | ||
253 | 253 | let powerContractAddressOrFail = valueOrErrorMessage(powerContractAddressOption, wrapErr("invalid power contract address")) | |
254 | 254 | ||
255 | 255 | let powerAssetIdStringOrFail = valueOrErrorMessage(getString(factoryAddressOrFail, keyPowerAssetId()), wrapErr("power asset id not found")) | |
256 | 256 | ||
257 | 257 | func getManagerPublicKeyOrUnit () = match factoryAddressOption { | |
258 | 258 | case fa: Address => | |
259 | 259 | match getString(fa, keyManagerPublicKey()) { | |
260 | 260 | case pub: String => | |
261 | 261 | fromBase58String(pub) | |
262 | 262 | case _ => | |
263 | 263 | unit | |
264 | 264 | } | |
265 | 265 | case _ => | |
266 | 266 | unit | |
267 | 267 | } | |
268 | 268 | ||
269 | 269 | ||
270 | 270 | func onlyAddress (i,address) = if ((i.caller == address)) | |
271 | 271 | then true | |
272 | 272 | else throwErr("permission denied") | |
273 | 273 | ||
274 | 274 | ||
275 | 275 | func onlyFactory (i) = onlyAddress(i, factoryAddressOrFail) | |
276 | 276 | ||
277 | 277 | ||
278 | 278 | func rewardForOption (rewards,target) = { | |
279 | 279 | let s = size(rewards) | |
280 | 280 | let $t066316656 = rewards[0] | |
281 | 281 | let a0 = $t066316656._1 | |
282 | 282 | let r0 = $t066316656._2 | |
283 | 283 | let $t066596684 = rewards[1] | |
284 | 284 | let a1 = $t066596684._1 | |
285 | 285 | let r1 = $t066596684._2 | |
286 | 286 | let $t066876712 = rewards[2] | |
287 | 287 | let a2 = $t066876712._1 | |
288 | 288 | let r2 = $t066876712._2 | |
289 | 289 | if (if ((s > 0)) | |
290 | 290 | then (a0 == target) | |
291 | 291 | else false) | |
292 | 292 | then r0 | |
293 | 293 | else if (if ((s > 1)) | |
294 | 294 | then (a1 == target) | |
295 | 295 | else false) | |
296 | 296 | then r1 | |
297 | 297 | else if (if ((s > 2)) | |
298 | 298 | then (a2 == target) | |
299 | 299 | else false) | |
300 | 300 | then r2 | |
301 | 301 | else unit | |
302 | 302 | } | |
303 | 303 | ||
304 | 304 | ||
305 | 305 | func calculatePrice (lpPartInWaves) = { | |
306 | 306 | let lpAssetAmountToBurn = valueOrElse(getInteger(factoryAddressOrFail, keyWithdrawal()), 0) | |
307 | 307 | let lpAssetQuantity = valueOrErrorMessage(assetInfo(lpAssetIdOrFail), wrapErr("invalid lpAsset info")).quantity | |
308 | 308 | let newPrice = fraction(lpPartInWaves, SCALE8, (lpAssetQuantity - lpAssetAmountToBurn)) | |
309 | 309 | let checkIfPriceNotZero = if ((newPrice != 0)) | |
310 | 310 | then true | |
311 | 311 | else throwErr("LP price cannot be 0") | |
312 | 312 | if ((checkIfPriceNotZero == checkIfPriceNotZero)) | |
313 | 313 | then { | |
314 | 314 | let lpAssetFinalQuantity = (lpAssetQuantity - lpAssetAmountToBurn) | |
315 | 315 | $Tuple3(newPrice, lpAssetAmountToBurn, lpAssetFinalQuantity) | |
316 | 316 | } | |
317 | 317 | else throw("Strict value is not equal to itself.") | |
318 | 318 | } | |
319 | 319 | ||
320 | 320 | ||
321 | 321 | func claimCollateralINTERNAL (userAddressBytes,txId) = { | |
322 | 322 | let userAddress = Address(userAddressBytes) | |
323 | 323 | let currentPeriodOrFail = valueOrErrorMessage(getInteger(factoryAddressOrFail, keyCurrentPeriod()), wrapErr("invalid period")) | |
324 | 324 | let withdrawalRequestOption = valueOrErrorMessage(getString(factoryAddressOrFail, keyWithdrawalRequest(userAddress, txId)), wrapErr("invalid withdrawal request")) | |
325 | 325 | let $t078797992 = parseWithdrawalRequestValueOrFail(withdrawalRequestOption) | |
326 | 326 | let status = $t078797992._1 | |
327 | 327 | let lpAssetAmount = $t078797992._2 | |
328 | 328 | let targetPeriod = $t078797992._3 | |
329 | 329 | let claimTxId = $t078797992._4 | |
330 | 330 | if ((targetPeriod > currentPeriodOrFail)) | |
331 | 331 | then throwErr("invalid withdrawal request period") | |
332 | 332 | else { | |
333 | 333 | let priceOrFail = valueOrErrorMessage(getInteger(factoryAddressOrFail, keyPriceForPeriod(targetPeriod)), wrapErr("invalid price")) | |
334 | 334 | let wavesAmount = if ((priceOrFail > 0)) | |
335 | 335 | then fraction(lpAssetAmount, priceOrFail, SCALE8) | |
336 | 336 | else 0 | |
337 | 337 | let assetsString = getStringValue(factoryAddressOrFail, keyPeriodWithdrawalAssetIds(currentPeriodOrFail)) | |
338 | 338 | let amountsString = getStringValue(factoryAddressOrFail, keyPeriodWithdrawalAmounts(currentPeriodOrFail)) | |
339 | 339 | $Tuple6(userAddress, lpAssetAmount, targetPeriod, wavesAmount, assetsString, amountsString) | |
340 | 340 | } | |
341 | 341 | } | |
342 | 342 | ||
343 | 343 | ||
344 | 344 | func claimCollateralREADONLYStringResponse (userAddressBytes,txId) = { | |
345 | 345 | let $t087798945 = claimCollateralINTERNAL(userAddressBytes, txId) | |
346 | 346 | let userAddress = $t087798945._1 | |
347 | 347 | let lpAssetAmount = $t087798945._2 | |
348 | 348 | let targetPeriod = $t087798945._3 | |
349 | 349 | let wavesAmount = $t087798945._4 | |
350 | 350 | let assetsString = $t087798945._5 | |
351 | 351 | let amountsString = $t087798945._6 | |
352 | 352 | let assets = makeString(removeByIndex(split_51C(assetsString, SEP), 0), ":") | |
353 | 353 | let amounts = makeString(removeByIndex(split_51C(amountsString, SEP), 0), ":") | |
354 | 354 | makeString(["%d%s%s", toString(wavesAmount), assets, amounts], SEP) | |
355 | 355 | } | |
356 | 356 | ||
357 | 357 | ||
358 | + | func getRewardSplit (generatorRewardAmount) = { | |
359 | + | let powerShareRatio = max([0, min([valueOrElse(getInteger(factoryAddressOrFail, keyPowerShareRatio()), 0), SCALE8])]) | |
360 | + | let businessPartRatio = max([0, min([valueOrElse(getInteger(factoryAddressOrFail, keyBusinessTreasuryPart()), 0), SCALE8])]) | |
361 | + | let amountToPowerPart = fraction(generatorRewardAmount, powerShareRatio, SCALE8) | |
362 | + | let businessTreasuryAmountPart = fraction(generatorRewardAmount, businessPartRatio, SCALE8) | |
363 | + | let rewardRemainder = ((generatorRewardAmount - amountToPowerPart) - businessTreasuryAmountPart) | |
364 | + | if ((rewardRemainder > 0)) | |
365 | + | then $Tuple3(amountToPowerPart, businessTreasuryAmountPart, rewardRemainder) | |
366 | + | else throwErr("amount to main treasury cannot be negative") | |
367 | + | } | |
368 | + | ||
369 | + | ||
370 | + | func calcRewardSplitForAmount (amount) = { | |
371 | + | let blocksProcessingBatchSizeMax = 20 | |
372 | + | let $t01008410177 = getRewardSplit(amount) | |
373 | + | let amountToPowerPart = $t01008410177._1 | |
374 | + | let businessTreasuryAmountPart = $t01008410177._2 | |
375 | + | let rewardRemainder = $t01008410177._3 | |
376 | + | let blockProcessingReward = valueOrErrorMessage(getInteger(factoryAddressOrFail, keyBlockProcessingReward()), wrapErr("invalid block processing reward")) | |
377 | + | let blockProcessingRewardByGenerator = (blockProcessingReward / blocksProcessingBatchSizeMax) | |
378 | + | let toLpAmount = (rewardRemainder - blockProcessingReward) | |
379 | + | $Tuple5(amountToPowerPart, businessTreasuryAmountPart, blockProcessingReward, toLpAmount, amount) | |
380 | + | } | |
381 | + | ||
382 | + | ||
383 | + | @Callable(i) | |
384 | + | func rewardSplitREADONLY () = { | |
385 | + | let targetBlockHeight = (height - 1) | |
386 | + | let targetBlockInfo = valueOrErrorMessage(blockInfoByHeight(targetBlockHeight), wrapErr("invalid block info")) | |
387 | + | let treasuryRewardOrFail = valueOrErrorMessage(rewardForOption(targetBlockInfo.rewards, proxyTreasuryAddressOrFail), wrapErr(("invalid treasury reward for height " + toString(targetBlockHeight)))) | |
388 | + | $Tuple2(nil, calcRewardSplitForAmount(treasuryRewardOrFail)) | |
389 | + | } | |
390 | + | ||
391 | + | ||
392 | + | ||
358 | 393 | @Callable(i) | |
359 | 394 | func claimLP (userAddressBytes) = { | |
360 | 395 | let checkCaller = onlyFactory(i) | |
361 | 396 | if ((checkCaller == checkCaller)) | |
362 | 397 | then { | |
363 | 398 | let userAddress = Address(userAddressBytes) | |
364 | 399 | let available = valueOrElse(getInteger(factoryAddressOrFail, keyAvailable(userAddress)), 0) | |
365 | 400 | let claimed = valueOrElse(getInteger(factoryAddressOrFail, keyClaimed(userAddress)), 0) | |
366 | 401 | let factoryActions = if ((available > 0)) | |
367 | 402 | then [invoke(factoryAddressOrFail, "transferAsset", [userAddressBytes, available, lpAssetIdOrFail], nil), invoke(factoryAddressOrFail, "integerEntry", [keyAvailable(userAddress), 0], nil), invoke(factoryAddressOrFail, "integerEntry", [keyClaimed(userAddress), (claimed + available)], nil)] | |
368 | 403 | else throwErr("nothing to claim") | |
369 | 404 | $Tuple2(nil, factoryActions) | |
370 | 405 | } | |
371 | 406 | else throw("Strict value is not equal to itself.") | |
372 | 407 | } | |
373 | 408 | ||
374 | 409 | ||
375 | 410 | ||
376 | 411 | @Callable(i) | |
377 | 412 | func finalize (userAddressBytes,donationPartInWaves,lpPartInWaves,claimPartInWaves,powerStakePartInWaves) = { | |
378 | 413 | let checkCaller = onlyFactory(i) | |
379 | 414 | if ((checkCaller == checkCaller)) | |
380 | 415 | then { | |
381 | 416 | let currentPeriodOrFail = valueOrErrorMessage(getInteger(factoryAddressOrFail, keyCurrentPeriod()), wrapErr("invalid period")) | |
382 | 417 | let periodLength = valueOrErrorMessage(getInteger(factoryAddressOrFail, keyPeriodLength()), wrapErr("invalid period length")) | |
383 | 418 | let currentStartHeight = valueOrErrorMessage(getInteger(factoryAddressOrFail, keyStartHeight(currentPeriodOrFail)), wrapErr("invalid start height")) | |
384 | 419 | let currentPriceOrFail = valueOrErrorMessage(getInteger(factoryAddressOrFail, keyPriceForPeriod(currentPeriodOrFail)), wrapErr("invalid price")) | |
385 | 420 | let nextBlockToProcess = valueOrErrorMessage(getInteger(factoryAddressOrFail, keyNextBlockToProcess()), wrapErr("invalid next block to process")) | |
386 | 421 | let periodEndHeight = ((currentStartHeight + periodLength) - 1) | |
387 | 422 | let checks = [if ((i.originCaller == mainTreasuryAddressOrFail)) | |
388 | 423 | then true | |
389 | 424 | else throwErr("permission denied"), if ((nextBlockToProcess > periodEndHeight)) | |
390 | 425 | then true | |
391 | 426 | else throwErr("unprocessed blocks"), if ((donationPartInWaves >= 0)) | |
392 | 427 | then true | |
393 | 428 | else throwErr("invalid donation part"), if ((lpPartInWaves >= 0)) | |
394 | 429 | then true | |
395 | 430 | else throwErr("invalid lp part"), if ((claimPartInWaves >= 0)) | |
396 | 431 | then true | |
397 | 432 | else throwErr("invalid claim part"), if ((powerStakePartInWaves >= 0)) | |
398 | 433 | then true | |
399 | 434 | else throwErr("invalid PWR stake part")] | |
400 | 435 | if ((checks == checks)) | |
401 | 436 | then { | |
402 | - | let $ | |
403 | - | let newPrice = $ | |
404 | - | let lpAssetAmountToBurn = $ | |
405 | - | let lpAssetFinalQuantity = $ | |
437 | + | let $t01351513620 = calculatePrice(lpPartInWaves) | |
438 | + | let newPrice = $t01351513620._1 | |
439 | + | let lpAssetAmountToBurn = $t01351513620._2 | |
440 | + | let lpAssetFinalQuantity = $t01351513620._3 | |
406 | 441 | let newPeriod = (currentPeriodOrFail + 1) | |
407 | 442 | func addNewAction (actions,payment) = { | |
408 | - | let $ | |
409 | - | let scriptTransfers = $ | |
410 | - | let assetIdsString = $ | |
411 | - | let amountsString = $ | |
443 | + | let $t01376813830 = actions | |
444 | + | let scriptTransfers = $t01376813830._1 | |
445 | + | let assetIdsString = $t01376813830._2 | |
446 | + | let amountsString = $t01376813830._3 | |
412 | 447 | let paymentAmount = payment.amount | |
413 | 448 | let paymentAssetId = payment.assetId | |
414 | 449 | let newAssetIdsString = ("%s" + makeString([assetIdsString, assetIdToString(paymentAssetId)], SEP)) | |
415 | 450 | let newAmountsString = ("%d" + makeString([amountsString, toString(paymentAmount)], SEP)) | |
416 | 451 | let newScriptTransfer = ScriptTransfer(factoryAddressOrFail, paymentAmount, paymentAssetId) | |
417 | 452 | $Tuple3((scriptTransfers :+ newScriptTransfer), newAssetIdsString, newAmountsString) | |
418 | 453 | } | |
419 | 454 | ||
420 | - | let $ | |
455 | + | let $t01429014381 = { | |
421 | 456 | let $l = i.payments | |
422 | 457 | let $s = size($l) | |
423 | 458 | let $acc0 = $Tuple3(nil, "", "") | |
424 | 459 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
425 | 460 | then $a | |
426 | 461 | else addNewAction($a, $l[$i]) | |
427 | 462 | ||
428 | 463 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
429 | 464 | then $a | |
430 | 465 | else throw("List size exceeds 10") | |
431 | 466 | ||
432 | 467 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
433 | 468 | } | |
434 | - | let scriptTransfers = $ | |
435 | - | let AssetIds = $ | |
436 | - | let Amounts = $ | |
469 | + | let scriptTransfers = $t01429014381._1 | |
470 | + | let AssetIds = $t01429014381._2 | |
471 | + | let Amounts = $t01429014381._3 | |
437 | 472 | let factoryActions = [invoke(factoryAddressOrFail, "integerEntry", [keyPowerManagerBonus(currentPeriodOrFail), powerStakePartInWaves], nil), invoke(factoryAddressOrFail, "integerEntry", [keyClaimWavesAmount(currentPeriodOrFail), claimPartInWaves], nil), invoke(factoryAddressOrFail, "integerEntry", [keyCurrentPeriod(), newPeriod], nil), invoke(factoryAddressOrFail, "integerEntry", [keyPriceForPeriod(newPeriod), newPrice], nil), invoke(factoryAddressOrFail, "integerEntry", [keyStartHeight(newPeriod), (periodEndHeight + 1)], nil), invoke(factoryAddressOrFail, "burn", [lpAssetAmountToBurn], nil), invoke(factoryAddressOrFail, "integerEntry", [keyWithdrawal(), 0], nil), invoke(factoryAddressOrFail, "integerEntry", [keyInvested(unit), lpPartInWaves], nil), invoke(factoryAddressOrFail, "integerEntry", [keyDonated(unit), donationPartInWaves], nil), invoke(factoryAddressOrFail, "stringEntry", [keyPeriodWithdrawalAssetIds(newPeriod), AssetIds], nil), invoke(factoryAddressOrFail, "stringEntry", [keyPeriodWithdrawalAmounts(newPeriod), Amounts], nil)] | |
438 | 473 | $Tuple2(scriptTransfers, factoryActions) | |
439 | 474 | } | |
440 | 475 | else throw("Strict value is not equal to itself.") | |
441 | 476 | } | |
442 | 477 | else throw("Strict value is not equal to itself.") | |
443 | 478 | } | |
444 | 479 | ||
445 | 480 | ||
446 | 481 | ||
447 | 482 | @Callable(i) | |
448 | 483 | func finalizeREADONLY (donationPartInWaves,lpPartInWaves,claimPartInWaves,powerStakePartInWaves) = { | |
449 | 484 | let currentPeriodOrFail = valueOrErrorMessage(getInteger(factoryAddressOrFail, keyCurrentPeriod()), wrapErr("invalid period")) | |
450 | 485 | let periodLength = valueOrErrorMessage(getInteger(factoryAddressOrFail, keyPeriodLength()), wrapErr("invalid period length")) | |
451 | 486 | let currentStartHeight = valueOrErrorMessage(getInteger(factoryAddressOrFail, keyStartHeight(currentPeriodOrFail)), wrapErr("invalid start height")) | |
452 | 487 | let currentPriceOrFail = valueOrErrorMessage(getInteger(factoryAddressOrFail, keyPriceForPeriod(currentPeriodOrFail)), wrapErr("invalid price")) | |
453 | 488 | let nextBlockToProcess = valueOrErrorMessage(getInteger(factoryAddressOrFail, keyNextBlockToProcess()), wrapErr("invalid next block to process")) | |
454 | 489 | let periodEndHeight = ((currentStartHeight + periodLength) - 1) | |
455 | 490 | let checks = [if ((nextBlockToProcess > periodEndHeight)) | |
456 | 491 | then true | |
457 | 492 | else throwErr("unprocessed blocks"), if ((donationPartInWaves >= 0)) | |
458 | 493 | then true | |
459 | 494 | else throwErr("invalid donation part"), if ((lpPartInWaves >= 0)) | |
460 | 495 | then true | |
461 | 496 | else throwErr("invalid lp part"), if ((claimPartInWaves >= 0)) | |
462 | 497 | then true | |
463 | 498 | else throwErr("invalid claim part"), if ((powerStakePartInWaves >= 0)) | |
464 | 499 | then true | |
465 | 500 | else throwErr("invalid PWR stake part")] | |
466 | 501 | if ((checks == checks)) | |
467 | 502 | then { | |
468 | - | let $ | |
469 | - | let newPrice = $ | |
470 | - | let lpAssetAmountToBurn = $ | |
471 | - | let lpAssetFinalQuantity = $ | |
503 | + | let $t01726017365 = calculatePrice(lpPartInWaves) | |
504 | + | let newPrice = $t01726017365._1 | |
505 | + | let lpAssetAmountToBurn = $t01726017365._2 | |
506 | + | let lpAssetFinalQuantity = $t01726017365._3 | |
472 | 507 | $Tuple2(nil, $Tuple6(claimPartInWaves, lpPartInWaves, donationPartInWaves, newPrice, lpAssetAmountToBurn, lpAssetFinalQuantity)) | |
473 | 508 | } | |
474 | 509 | else throw("Strict value is not equal to itself.") | |
475 | 510 | } | |
476 | 511 | ||
477 | 512 | ||
478 | 513 | ||
479 | 514 | @Callable(i) | |
480 | 515 | func invest (userAddressBytes) = { | |
481 | 516 | let checkCaller = onlyFactory(i) | |
482 | 517 | if ((checkCaller == checkCaller)) | |
483 | 518 | then { | |
484 | 519 | let userAddress = Address(userAddressBytes) | |
485 | 520 | let currentPeriodOrFail = valueOrErrorMessage(getInteger(factoryAddressOrFail, keyCurrentPeriod()), wrapErr("invalid period")) | |
486 | 521 | let currentStartHeight = valueOrErrorMessage(getInteger(factoryAddressOrFail, keyStartHeight(currentPeriodOrFail)), wrapErr("invalid start height")) | |
487 | 522 | let investPeriodLength = getIntegerValue(factoryAddressOrFail, keyInvestPeriodLength()) | |
488 | 523 | let heightCheck = if (((currentStartHeight + investPeriodLength) > height)) | |
489 | 524 | then true | |
490 | 525 | else throwErr("too late to invest in this period") | |
491 | 526 | if ((heightCheck == heightCheck)) | |
492 | 527 | then { | |
493 | 528 | let currentPriceOrFail = valueOrErrorMessage(getInteger(factoryAddressOrFail, keyPriceForPeriod(currentPeriodOrFail)), wrapErr("invalid price")) | |
494 | 529 | let payment = if ((size(i.payments) == 1)) | |
495 | 530 | then i.payments[0] | |
496 | 531 | else throwErr("invalid payments") | |
497 | - | let $ | |
532 | + | let $t01847418651 = if (if ((payment.assetId == unit)) | |
498 | 533 | then (payment.amount > 0) | |
499 | 534 | else false) | |
500 | 535 | then $Tuple2(payment.amount, payment.assetId) | |
501 | 536 | else throwErr("invalid payment amount") | |
502 | - | let paymentAmount = $ | |
503 | - | let paymentAssetId = $ | |
537 | + | let paymentAmount = $t01847418651._1 | |
538 | + | let paymentAssetId = $t01847418651._2 | |
504 | 539 | let treasuryPart = valueOrElse(getInteger(factoryAddressOrFail, keyBusinessTreasuryPart()), 0) | |
505 | 540 | let paymentsWithoutTreasuryPart = fraction(paymentAmount, (SCALE8 - treasuryPart), SCALE8) | |
506 | 541 | let lpAssetAmount = if ((currentPriceOrFail > 0)) | |
507 | 542 | then fraction(paymentsWithoutTreasuryPart, SCALE8, currentPriceOrFail) | |
508 | 543 | else 0 | |
509 | 544 | let invested = valueOrElse(getInteger(factoryAddressOrFail, keyInvested(unit)), 0) | |
510 | 545 | let actions = [ScriptTransfer(mainTreasuryAddressOrFail, paymentsWithoutTreasuryPart, paymentAssetId), ScriptTransfer(businessTreasuryAddressOrFail, treasuryPart, paymentAssetId)] | |
511 | 546 | let factoryActions = [invoke(factoryAddressOrFail, "integerEntry", [keyInvested(unit), (invested + paymentsWithoutTreasuryPart)], nil), invoke(factoryAddressOrFail, "reissue", [lpAssetAmount], nil), invoke(factoryAddressOrFail, "transferAsset", [userAddressBytes, lpAssetAmount, lpAssetIdOrFail], nil)] | |
512 | 547 | $Tuple2(actions, factoryActions) | |
513 | 548 | } | |
514 | 549 | else throw("Strict value is not equal to itself.") | |
515 | 550 | } | |
516 | 551 | else throw("Strict value is not equal to itself.") | |
517 | 552 | } | |
518 | 553 | ||
519 | 554 | ||
520 | 555 | ||
521 | 556 | @Callable(i) | |
522 | 557 | func withdraw (userAddressBytes) = { | |
523 | 558 | let checkCaller = onlyFactory(i) | |
524 | 559 | if ((checkCaller == checkCaller)) | |
525 | 560 | then { | |
526 | 561 | let userAddress = Address(userAddressBytes) | |
527 | 562 | let currentPeriodOrFail = valueOrErrorMessage(getInteger(factoryAddressOrFail, keyCurrentPeriod()), wrapErr("invalid period")) | |
528 | 563 | let payment = if ((size(i.payments) == 1)) | |
529 | 564 | then i.payments[0] | |
530 | 565 | else throwErr(wrapErr("invalid payments")) | |
531 | 566 | let paymentAssetId = if ((payment.assetId == lpAssetIdOrFail)) | |
532 | 567 | then lpAssetIdOrFail | |
533 | 568 | else throwErr("invalid payment asset") | |
534 | 569 | let paymentAmount = if ((payment.amount > 0)) | |
535 | 570 | then payment.amount | |
536 | 571 | else throwErr("invalid payment amount") | |
537 | 572 | let withdrawal = valueOrElse(getInteger(factoryAddressOrFail, keyWithdrawal()), 0) | |
538 | 573 | let actions = [ScriptTransfer(factoryAddressOrFail, paymentAmount, paymentAssetId)] | |
539 | 574 | let factoryActions = [invoke(factoryAddressOrFail, "integerEntry", [keyWithdrawal(), (withdrawal + paymentAmount)], nil), invoke(factoryAddressOrFail, "stringEntry", [keyWithdrawalRequest(userAddress, i.transactionId), valueWithdrawalRequest(PENDING, paymentAmount, (currentPeriodOrFail + 1), unit)], nil)] | |
540 | 575 | if ((factoryActions == factoryActions)) | |
541 | 576 | then $Tuple2(actions, factoryActions) | |
542 | 577 | else throw("Strict value is not equal to itself.") | |
543 | 578 | } | |
544 | 579 | else throw("Strict value is not equal to itself.") | |
545 | 580 | } | |
546 | 581 | ||
547 | 582 | ||
548 | 583 | ||
549 | 584 | @Callable(i) | |
550 | 585 | func cancelWithdraw (userAddressBytes,txId) = { | |
551 | 586 | let checkCaller = onlyFactory(i) | |
552 | 587 | if ((checkCaller == checkCaller)) | |
553 | 588 | then { | |
554 | 589 | let userAddress = Address(userAddressBytes) | |
555 | 590 | let withdrawalRequestOption = valueOrErrorMessage(getString(factoryAddressOrFail, keyWithdrawalRequest(userAddress, txId)), wrapErr("invalid withdrawal request")) | |
556 | 591 | let currentPeriodOrFail = valueOrErrorMessage(getInteger(factoryAddressOrFail, keyCurrentPeriod()), wrapErr("invalid period")) | |
557 | - | let $ | |
558 | - | let status = $ | |
559 | - | let lpAssetAmount = $ | |
560 | - | let targetPeriod = $ | |
561 | - | let claimTxId = $ | |
592 | + | let $t02138521498 = parseWithdrawalRequestValueOrFail(withdrawalRequestOption) | |
593 | + | let status = $t02138521498._1 | |
594 | + | let lpAssetAmount = $t02138521498._2 | |
595 | + | let targetPeriod = $t02138521498._3 | |
596 | + | let claimTxId = $t02138521498._4 | |
562 | 597 | let checks = [if ((status == PENDING)) | |
563 | 598 | then true | |
564 | 599 | else throwErr("invalid withdrawal request status"), if ((targetPeriod > currentPeriodOrFail)) | |
565 | 600 | then true | |
566 | 601 | else throwErr("invalid withdrawal request period")] | |
567 | 602 | if ((checks == checks)) | |
568 | 603 | then { | |
569 | 604 | let withdrawal = valueOrErrorMessage(getInteger(factoryAddressOrFail, keyWithdrawal()), wrapErr("invalid total withdrawal amount")) | |
570 | 605 | let factoryActions = [invoke(factoryAddressOrFail, "integerEntry", [keyWithdrawal(), if ((withdrawal >= lpAssetAmount)) | |
571 | 606 | then (withdrawal - lpAssetAmount) | |
572 | 607 | else throwErr("invalid withdrawal amount")], nil), invoke(factoryAddressOrFail, "deleteEntry", [keyWithdrawalRequest(userAddress, txId)], nil), invoke(factoryAddressOrFail, "transferAsset", [userAddressBytes, lpAssetAmount, lpAssetIdOrFail], nil)] | |
573 | 608 | if ((factoryActions == factoryActions)) | |
574 | 609 | then $Tuple2(nil, factoryActions) | |
575 | 610 | else throw("Strict value is not equal to itself.") | |
576 | 611 | } | |
577 | 612 | else throw("Strict value is not equal to itself.") | |
578 | 613 | } | |
579 | 614 | else throw("Strict value is not equal to itself.") | |
580 | 615 | } | |
581 | 616 | ||
582 | 617 | ||
583 | 618 | ||
584 | 619 | @Callable(i) | |
585 | 620 | func claimCollateral (userAddressBytes,txId) = { | |
586 | 621 | let checkCaller = onlyFactory(i) | |
587 | 622 | if ((checkCaller == checkCaller)) | |
588 | 623 | then { | |
589 | - | let $ | |
590 | - | let userAddress = $ | |
591 | - | let lpAssetAmount = $ | |
592 | - | let targetPeriod = $ | |
593 | - | let wavesAmount = $ | |
594 | - | let assetsString = $ | |
595 | - | let amountsString = $ | |
624 | + | let $t02248422669 = claimCollateralINTERNAL(userAddressBytes, fromBase58String(txId)) | |
625 | + | let userAddress = $t02248422669._1 | |
626 | + | let lpAssetAmount = $t02248422669._2 | |
627 | + | let targetPeriod = $t02248422669._3 | |
628 | + | let wavesAmount = $t02248422669._4 | |
629 | + | let assetsString = $t02248422669._5 | |
630 | + | let amountsString = $t02248422669._6 | |
596 | 631 | let assetsList = removeByIndex(split_51C(assetsString, SEP), 0) | |
597 | 632 | let amountsList = removeByIndex(split_51C(amountsString, SEP), 0) | |
598 | 633 | let factoryActions = [invoke(factoryAddressOrFail, "deleteEntry", [keyWithdrawalRequest(userAddress, fromBase58String(txId))], nil), invoke(factoryAddressOrFail, "integerEntry", [keyWithdrawalHistory(userAddress, fromBase58String(txId)), lpAssetAmount], nil), invoke(factoryAddressOrFail, "transferAssets", [userAddressBytes, assetsList, amountsList], nil)] | |
599 | 634 | $Tuple2(nil, factoryActions) | |
600 | 635 | } | |
601 | 636 | else throw("Strict value is not equal to itself.") | |
602 | 637 | } | |
603 | 638 | ||
604 | 639 | ||
605 | 640 | ||
606 | 641 | @Callable(i) | |
607 | 642 | func claimCollateralBulk (userAddressBytes,txIds) = { | |
608 | 643 | let checkCaller = onlyFactory(i) | |
609 | 644 | if ((checkCaller == checkCaller)) | |
610 | 645 | then { | |
611 | 646 | func addNewAction (state,txId) = { | |
612 | - | let $ | |
613 | - | let userAddress = $ | |
614 | - | let lpAssetAmount = $ | |
615 | - | let targetPeriod = $ | |
616 | - | let wavesAmount = $ | |
617 | - | let assetsString = $ | |
618 | - | let amountsString = $ | |
647 | + | let $t02342723626 = claimCollateralINTERNAL(userAddressBytes, fromBase58String(txId)) | |
648 | + | let userAddress = $t02342723626._1 | |
649 | + | let lpAssetAmount = $t02342723626._2 | |
650 | + | let targetPeriod = $t02342723626._3 | |
651 | + | let wavesAmount = $t02342723626._4 | |
652 | + | let assetsString = $t02342723626._5 | |
653 | + | let amountsString = $t02342723626._6 | |
619 | 654 | let assetsList = removeByIndex(split_51C(assetsString, SEP), 0) | |
620 | 655 | let amountsList = removeByIndex(split_51C(amountsString, SEP), 0) | |
621 | 656 | let newActions = [invoke(factoryAddressOrFail, "deleteEntry", [keyWithdrawalRequest(userAddress, fromBase58String(txId))], nil), invoke(factoryAddressOrFail, "integerEntry", [keyWithdrawalHistory(userAddress, fromBase58String(txId)), lpAssetAmount], nil), invoke(factoryAddressOrFail, "transferAssets", [userAddressBytes, assetsList, amountsList], nil)] | |
622 | 657 | (state ++ newActions) | |
623 | 658 | } | |
624 | 659 | ||
625 | 660 | let allFactoryActions = { | |
626 | 661 | let $l = txIds | |
627 | 662 | let $s = size($l) | |
628 | 663 | let $acc0 = nil | |
629 | 664 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
630 | 665 | then $a | |
631 | 666 | else addNewAction($a, $l[$i]) | |
632 | 667 | ||
633 | 668 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
634 | 669 | then $a | |
635 | 670 | else throw("List size exceeds 10") | |
636 | 671 | ||
637 | 672 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
638 | 673 | } | |
639 | 674 | $Tuple2(nil, allFactoryActions) | |
640 | 675 | } | |
641 | 676 | else throw("Strict value is not equal to itself.") | |
642 | 677 | } | |
643 | 678 | ||
644 | 679 | ||
645 | 680 | ||
646 | 681 | @Callable(i) | |
647 | 682 | func claimCollateralREADONLY (userAddressBytes,txId) = { | |
648 | 683 | let response = claimCollateralREADONLYStringResponse(userAddressBytes, fromBase58String(txId)) | |
649 | 684 | $Tuple2(nil, response) | |
650 | 685 | } | |
651 | 686 | ||
652 | 687 | ||
653 | 688 | ||
654 | 689 | @Callable(i) | |
655 | 690 | func claimCollateralBulkREADONLY (userAddressBytes,txIds) = { | |
656 | 691 | func processTxId (state,txId) = { | |
657 | 692 | let response = claimCollateralREADONLYStringResponse(userAddressBytes, fromBase58String(txId)) | |
658 | 693 | (state :+ response) | |
659 | 694 | } | |
660 | 695 | ||
661 | 696 | let allResponses = { | |
662 | 697 | let $l = txIds | |
663 | 698 | let $s = size($l) | |
664 | 699 | let $acc0 = nil | |
665 | 700 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
666 | 701 | then $a | |
667 | 702 | else processTxId($a, $l[$i]) | |
668 | 703 | ||
669 | 704 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
670 | 705 | then $a | |
671 | 706 | else throw("List size exceeds 10") | |
672 | 707 | ||
673 | 708 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
674 | 709 | } | |
675 | 710 | $Tuple2(nil, allResponses) | |
676 | 711 | } | |
677 | 712 | ||
678 | 713 | ||
679 | 714 | ||
680 | 715 | @Callable(i) | |
681 | 716 | func processBlocks (userAddressBytes) = { | |
682 | 717 | let checkCaller = onlyFactory(i) | |
683 | 718 | if ((checkCaller == checkCaller)) | |
684 | 719 | then { | |
685 | 720 | let userAddress = Address(userAddressBytes) | |
686 | 721 | let currentPeriodOrFail = valueOrErrorMessage(getInteger(factoryAddressOrFail, keyCurrentPeriod()), wrapErr("invalid period")) | |
687 | 722 | let periodLength = valueOrErrorMessage(getInteger(factoryAddressOrFail, keyPeriodLength()), wrapErr("invalid period length")) | |
688 | 723 | let currentStartHeight = valueOrErrorMessage(getInteger(factoryAddressOrFail, keyStartHeight(currentPeriodOrFail)), wrapErr("invalid start height")) | |
689 | 724 | let currentPriceOrFail = valueOrErrorMessage(getInteger(factoryAddressOrFail, keyPriceForPeriod(currentPeriodOrFail)), wrapErr("invalid price")) | |
690 | 725 | let nextBlockToProcess = valueOrErrorMessage(getInteger(factoryAddressOrFail, keyNextBlockToProcess()), wrapErr("invalid next block to process")) | |
691 | 726 | let periodEndHeight = ((currentStartHeight + periodLength) - 1) | |
692 | 727 | let blocksProcessingBatchSizeMax = 20 | |
693 | 728 | let blocksProcessingBatchSize = if (if (if ((height >= nextBlockToProcess)) | |
694 | 729 | then if ((nextBlockToProcess >= currentStartHeight)) | |
695 | 730 | then true | |
696 | 731 | else (currentPeriodOrFail == 0) | |
697 | 732 | else false) | |
698 | 733 | then (periodEndHeight >= nextBlockToProcess) | |
699 | 734 | else false) | |
700 | 735 | then min([((periodEndHeight - nextBlockToProcess) + 1), blocksProcessingBatchSizeMax]) | |
701 | 736 | else throwErr(wrapErr("invalid target block")) | |
702 | 737 | let blockProcessingReward = valueOrErrorMessage(getInteger(factoryAddressOrFail, keyBlockProcessingReward()), wrapErr("invalid block processing reward")) | |
703 | 738 | let blockProcessingRewardByGenerator = (blockProcessingReward / blocksProcessingBatchSize) | |
704 | 739 | let blockProcessingRewardByGeneratorRemainder = (blockProcessingReward - (blockProcessingRewardByGenerator * blocksProcessingBatchSize)) | |
705 | 740 | func map (acc,inc) = if ((inc >= blocksProcessingBatchSize)) | |
706 | 741 | then acc | |
707 | 742 | else { | |
708 | 743 | let targetBlockHeight = (nextBlockToProcess + inc) | |
709 | 744 | let targetBlockInfo = valueOrErrorMessage(blockInfoByHeight(targetBlockHeight), wrapErr("invalid block info")) | |
710 | 745 | let treasuryRewardOrFail = valueOrErrorMessage(rewardForOption(targetBlockInfo.rewards, proxyTreasuryAddressOrFail), wrapErr(("invalid treasury reward for height " + toString(targetBlockHeight)))) | |
711 | 746 | let generator = targetBlockInfo.generator | |
712 | 747 | let available = valueOrElse(getInteger(factoryAddressOrFail, keyAvailable(generator)), 0) | |
713 | 748 | let callerReward = if ((inc == (blocksProcessingBatchSize - 1))) | |
714 | 749 | then (blockProcessingRewardByGenerator + blockProcessingRewardByGeneratorRemainder) | |
715 | 750 | else blockProcessingRewardByGenerator | |
716 | - | let powerShareRatio = max([0, min([valueOrElse(getInteger(factoryAddressOrFail, keyPowerShareRatio()), 0), SCALE8])]) | |
717 | - | let shareAmountToPower = fraction((treasuryRewardOrFail - callerReward), powerShareRatio, SCALE8) | |
751 | + | let $t02756627674 = getRewardSplit(treasuryRewardOrFail) | |
752 | + | let shareAmountToPower = $t02756627674._1 | |
753 | + | let businessTreasuryAmountPart = $t02756627674._2 | |
754 | + | let rewardRemainder = $t02756627674._3 | |
718 | 755 | let lpAssetAmount = if ((currentPriceOrFail > 0)) | |
719 | - | then fraction(( | |
756 | + | then fraction((rewardRemainder - callerReward), SCALE8, currentPriceOrFail) | |
720 | 757 | else 0 | |
721 | 758 | let factoryActionsSingle = [invoke(factoryAddressOrFail, "stringEntry", [keyBlockProcessed(targetBlockHeight), makeString([toBase58String(i.transactionId), toString(currentPeriodOrFail), toString(generator), toBase58String(userAddressBytes), toString(treasuryRewardOrFail), toString(callerReward), toString(lpAssetAmount), toString(shareAmountToPower)], SEP)], nil), invoke(factoryAddressOrFail, "integerEntry", [keyAvailable(generator), (available + lpAssetAmount)], nil)] | |
722 | 759 | if ((factoryActionsSingle == factoryActionsSingle)) | |
723 | 760 | then { | |
724 | - | let $t02670426758 = acc | |
725 | - | let lpAssetAcc = $t02670426758._1 | |
726 | - | let rewardAcc = $t02670426758._2 | |
727 | - | let powerShareDataTuple = $t02670426758._3 | |
728 | - | let $t02676526831 = powerShareDataTuple | |
729 | - | let powerShareAcc = $t02676526831._1 | |
730 | - | let generatorPowerShareList = $t02676526831._2 | |
761 | + | let $t02852228597 = acc | |
762 | + | let lpAssetAcc = $t02852228597._1 | |
763 | + | let rewardAcc = $t02852228597._2 | |
764 | + | let businessTreasuryAcc = $t02852228597._3 | |
765 | + | let powerShareDataTuple = $t02852228597._4 | |
766 | + | let $t02860428670 = powerShareDataTuple | |
767 | + | let powerShareAcc = $t02860428670._1 | |
768 | + | let generatorPowerShareList = $t02860428670._2 | |
731 | 769 | let newGeneratorPowerShareList = (generatorPowerShareList :+ $Tuple2(toString(generator), shareAmountToPower)) | |
732 | - | $ | |
770 | + | $Tuple4((lpAssetAcc + lpAssetAmount), (rewardAcc + treasuryRewardOrFail), (businessTreasuryAcc + businessTreasuryAmountPart), $Tuple2((powerShareAcc + shareAmountToPower), newGeneratorPowerShareList)) | |
733 | 771 | } | |
734 | 772 | else throw("Strict value is not equal to itself.") | |
735 | 773 | } | |
736 | 774 | ||
737 | 775 | let list = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19] | |
738 | - | let $ | |
776 | + | let $t02911829280 = { | |
739 | 777 | let $l = list | |
740 | 778 | let $s = size($l) | |
741 | - | let $acc0 = $ | |
779 | + | let $acc0 = $Tuple4(0, 0, 0, $Tuple2(0, nil)) | |
742 | 780 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
743 | 781 | then $a | |
744 | 782 | else map($a, $l[$i]) | |
745 | 783 | ||
746 | 784 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
747 | 785 | then $a | |
748 | 786 | else throw("List size exceeds 20") | |
749 | 787 | ||
750 | 788 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20) | |
751 | 789 | } | |
752 | - | if (($ | |
790 | + | if (($t02911829280 == $t02911829280)) | |
753 | 791 | then { | |
754 | - | let powerShareDataTuple = $t02718627292._3 | |
755 | - | let rewardAmountTotal = $t02718627292._2 | |
756 | - | let lpAssetAmountTotal = $t02718627292._1 | |
757 | - | let $t02729627365 = powerShareDataTuple | |
758 | - | let amountToPowerTotal = $t02729627365._1 | |
759 | - | let powerShareAmountsList = $t02729627365._2 | |
760 | - | let businessTreasuryPart = valueOrElse(getInteger(factoryAddressOrFail, keyBusinessTreasuryPart()), 0) | |
761 | - | let rewardToBusinessTreasuryAmount = fraction(rewardAmountTotal, businessTreasuryPart, SCALE8) | |
792 | + | let powerShareDataTuple = $t02911829280._4 | |
793 | + | let rewardToBusinessTreasuryAmount = $t02911829280._3 | |
794 | + | let rewardAmountTotal = $t02911829280._2 | |
795 | + | let lpAssetAmountTotal = $t02911829280._1 | |
796 | + | let $t02928429353 = powerShareDataTuple | |
797 | + | let amountToPowerTotal = $t02928429353._1 | |
798 | + | let powerShareAmountsList = $t02928429353._2 | |
762 | 799 | let rewardToMainTreasuryAmount = (((rewardAmountTotal - rewardToBusinessTreasuryAmount) - blockProcessingReward) - amountToPowerTotal) | |
763 | 800 | let invested = valueOrElse(getInteger(factoryAddressOrFail, keyInvested(unit)), 0) | |
764 | 801 | let powerShareActions = if ((amountToPowerTotal > 0)) | |
765 | 802 | then { | |
766 | 803 | let transferAction = [invoke(factoryAddressOrFail, "transferFromProxyTreasury", [factoryAddressOrFail.bytes, amountToPowerTotal], nil)] | |
767 | 804 | if ((transferAction == transferAction)) | |
768 | 805 | then { | |
769 | 806 | let totalPowerAmount = invoke(factoryAddressOrFail, "swap", [powerAssetIdStringOrFail, WAVES, amountToPowerTotal], nil) | |
770 | 807 | if ((totalPowerAmount == totalPowerAmount)) | |
771 | 808 | then { | |
772 | 809 | let totalPowerAmountInt = match totalPowerAmount { | |
773 | 810 | case pAmount: Int => | |
774 | 811 | pAmount | |
775 | 812 | case _ => | |
776 | 813 | 0 | |
777 | 814 | } | |
778 | 815 | func stakePowerInvoke (acc,next) = { | |
779 | - | let $ | |
780 | - | let generator = $ | |
781 | - | let shareAmount = $ | |
816 | + | let $t03022730262 = next | |
817 | + | let generator = $t03022730262._1 | |
818 | + | let shareAmount = $t03022730262._2 | |
782 | 819 | if ((amountToPowerTotal > 0)) | |
783 | 820 | then { | |
784 | 821 | let powerAmount = fraction(shareAmount, totalPowerAmountInt, amountToPowerTotal) | |
785 | 822 | let inv = invoke(factoryAddressOrFail, "powerStake", [fromBase58String(generator), fromBase58String(powerAssetIdStringOrFail), powerAmount], nil) | |
786 | 823 | if ((inv == inv)) | |
787 | 824 | then nil | |
788 | 825 | else throw("Strict value is not equal to itself.") | |
789 | 826 | } | |
790 | 827 | else nil | |
791 | 828 | } | |
792 | 829 | ||
793 | 830 | let powerStakesActions = { | |
794 | 831 | let $l = powerShareAmountsList | |
795 | 832 | let $s = size($l) | |
796 | 833 | let $acc0 = 0 | |
797 | 834 | func $f1_1 ($a,$i) = if (($i >= $s)) | |
798 | 835 | then $a | |
799 | 836 | else stakePowerInvoke($a, $l[$i]) | |
800 | 837 | ||
801 | 838 | func $f1_2 ($a,$i) = if (($i >= $s)) | |
802 | 839 | then $a | |
803 | 840 | else throw("List size exceeds 20") | |
804 | 841 | ||
805 | 842 | $f1_2($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20) | |
806 | 843 | } | |
807 | 844 | if ((powerStakesActions == powerStakesActions)) | |
808 | 845 | then nil | |
809 | 846 | else throw("Strict value is not equal to itself.") | |
810 | 847 | } | |
811 | 848 | else throw("Strict value is not equal to itself.") | |
812 | 849 | } | |
813 | 850 | else throw("Strict value is not equal to itself.") | |
814 | 851 | } | |
815 | 852 | else nil | |
816 | 853 | if ((powerShareActions == powerShareActions)) | |
817 | 854 | then { | |
818 | 855 | let actions = [invoke(factoryAddressOrFail, "reissue", [lpAssetAmountTotal], nil), invoke(factoryAddressOrFail, "integerEntry", [keyNextBlockToProcess(), (nextBlockToProcess + blocksProcessingBatchSize)], nil), invoke(factoryAddressOrFail, "transferFromProxyTreasury", [mainTreasuryAddressOrFail.bytes, rewardToMainTreasuryAmount], nil), invoke(factoryAddressOrFail, "transferFromProxyTreasury", [userAddressBytes, blockProcessingReward], nil), invoke(factoryAddressOrFail, "transferFromProxyTreasury", [businessTreasuryAddressOrFail.bytes, rewardToBusinessTreasuryAmount], nil), invoke(factoryAddressOrFail, "integerEntry", [keyInvested(unit), (invested + rewardToMainTreasuryAmount)], nil)] | |
819 | 856 | if ((actions == actions)) | |
820 | 857 | then $Tuple2(nil, unit) | |
821 | 858 | else throw("Strict value is not equal to itself.") | |
822 | 859 | } | |
823 | 860 | else throw("Strict value is not equal to itself.") | |
824 | 861 | } | |
825 | 862 | else throw("Strict value is not equal to itself.") | |
826 | 863 | } | |
827 | 864 | else throw("Strict value is not equal to itself.") | |
828 | 865 | } | |
829 | 866 | ||
830 | 867 | ||
831 | 868 | @Verifier(tx) | |
832 | 869 | func verify () = { | |
833 | 870 | let publicKey = match getManagerPublicKeyOrUnit() { | |
834 | 871 | case pub: ByteVector => | |
835 | 872 | pub | |
836 | 873 | case _ => | |
837 | 874 | tx.senderPublicKey | |
838 | 875 | } | |
839 | 876 | sigVerify(tx.bodyBytes, tx.proofs[0], publicKey) | |
840 | 877 | } | |
841 | 878 |
github/deemru/w8io/169f3d6 103.80 ms ◑