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