tx · 9rzB6GGAFMAuJ1jLX4VbRdJGtrGjhMRCLz1cKKGkETws 3NBPx1Fciu3JQNEGZ21jSnTdutLNGGBUSXh: -0.03900000 Waves 2024.12.15 02:28 [3414917] smart account 3NBPx1Fciu3JQNEGZ21jSnTdutLNGGBUSXh > SELF 0.00000000 Waves
{ "type": 13, "id": "9rzB6GGAFMAuJ1jLX4VbRdJGtrGjhMRCLz1cKKGkETws", "fee": 3900000, "feeAssetId": null, "timestamp": 1734218937829, "version": 2, "chainId": 84, "sender": "3NBPx1Fciu3JQNEGZ21jSnTdutLNGGBUSXh", "senderPublicKey": "3QtfC1XbLZXdeawMDeSERy9vvjUmj1XYd2GFmrvx7pWQ", "proofs": [ "3UHfZTMWLDpyYKtiMrEkNyaAt2vrtwKzNjdCcCnBb37YVtjda8bsuC86VS6C6gcTKDZ8ABrwwCjtJruv546XdC5s" ], "script": "base64:BgJbCAISABIECgIICBIDCgEEEgMKAQESABIFCgMIAQQSABIDCgEBEgASBAoCCAESABIDCgEIEgMKAQgSBAoCCAESAwoBCBIECgIIBBIAEgMKAQgSABIAEgASAwoBAZABAANTRVACAl9fAAVNVUxUNgDAhD0ABU1VTFQ3AICt4gQABU1VTFQ4AIDC1y8ABk1VTFQxNACAgOmDsd4WAApEQVlfTUlMTElTAIC4mSkAFVVTRFQyQUNSRVNfTVVMVElQTElFUgAKABNPTkVfUEVSQ0VOVF9ESVZJU09SAGQADFJBTkRPTV9ERUxBWQACABRORlRfQ0hFU1RfUFJJQ0VfVVNEVADAlrECAAVjaGFpbgkAyQECCQDKAQIIBQR0aGlzBWJ5dGVzAAEAAQAXREFJTFlfUFJPTU9fU1RBUlRfQkxPQ0sEByRtYXRjaDAFBWNoYWluAwkAAAIBAVcFByRtYXRjaDAAgO+RAgMJAAACAQFUBQckbWF0Y2gwAMCm0AEJAAIBAg1Vbmtub3duIGNoYWluABVEQUlMWV9QUk9NT19FTkRfQkxPQ0sEByRtYXRjaDAFBWNoYWluAwkAAAIBAVcF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U3RyaWN0IHZhbHVlIGlzIG5vdCBlcXVhbCB0byBpdHNlbGYuBAVkcmF3cwoAAiRsCQDMCAIAAAkAzAgCAAEJAMwIAgACCQDMCAIAAwkAzAgCAAQJAMwIAgAFBQNuaWwKAAIkcwkAkAMBBQIkbAoABSRhY2MwCQCWCgQFCG1heFZhbHVlCAUBaQ10cmFuc2FjdGlvbklkBQhwcm9tb01hcAUDbmlsCgEFJGYwXzECAiRhAiRpAwkAZwIFAiRpBQIkcwUCJGEJAQpzaW5nbGVEcmF3AgUCJGEJAJEDAgUCJGwFAiRpCgEFJGYwXzICAiRhAiRpAwkAZwIFAiRpBQIkcwUCJGEJAAIBAhNMaXN0IHNpemUgZXhjZWVkcyA2CQEFJGYwXzICCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECBQUkYWNjMAAAAAEAAgADAAQABQAGCQCUCgIJAMwIAgkBC1N0cmluZ0VudHJ5AgULa2V5UHJvbW9NYXAIBQVkcmF3cwJfMwkAzAgCCQEMSW50ZWdlckVudHJ5AgUUa2V5VG90YWxQcm9tb1RpY2tldHMIBQVkcmF3cwJfMQkAzAgCCQELU3RyaW5nRW50cnkCCQEUa2V5UHJvbW9Sb3VuZFdpbm5lcnMBBQdyb3VuZElkCQC5CQIIBQVkcmF3cwJfNAIBXwUDbmlsAAAA/H7Tag==", "height": 3414917, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: EFMzGNnetgUYgG2FEKJa5NhikD2n4zd7CZcrJ3iVycu1 Next: AxubzhDBPDKtmBBiHUotwkJzTYUhXn28PbvoyDRoSCXF Diff:
Old | New | Differences | |
---|---|---|---|
594 | 594 | } | |
595 | 595 | ||
596 | 596 | ||
597 | + | func processPromo (address,amt,shouldCleanPromo) = if (if ((height >= DAILY_PROMO_START_BLOCK)) | |
598 | + | then (DAILY_PROMO_END_BLOCK > height) | |
599 | + | else false) | |
600 | + | then { | |
601 | + | let promoAcresKey = keyUserPromoAcres(address) | |
602 | + | let promoAcres = ((if (shouldCleanPromo) | |
603 | + | then 0 | |
604 | + | else valueOrElse(getInteger(promoAcresKey), 0)) + amt) | |
605 | + | let tickets = (promoAcres / MULT8) | |
606 | + | let ticketsKey = keyUserPromoTickets(address) | |
607 | + | let deltaTickets = (tickets - valueOrElse(getInteger(ticketsKey), 0)) | |
608 | + | let totalTickets = (valueOrElse(getInteger(keyTotalPromoTickets), 0) + deltaTickets) | |
609 | + | if (if (shouldCleanPromo) | |
610 | + | then true | |
611 | + | else (deltaTickets > 0)) | |
612 | + | then { | |
613 | + | let promoMap = valueOrElse(getString(keyPromoMap), "") | |
614 | + | let userRecord = ((address + ":") + padL(tickets, 3)) | |
615 | + | let newMap = if (contains(promoMap, address)) | |
616 | + | then { | |
617 | + | let mapParts = split_51C(promoMap, address) | |
618 | + | if ((mapParts[0] == "")) | |
619 | + | then { | |
620 | + | let r = drop(mapParts[1], 4) | |
621 | + | if ((r == "")) | |
622 | + | then if ((tickets == 0)) | |
623 | + | then "" | |
624 | + | else userRecord | |
625 | + | else if ((tickets == 0)) | |
626 | + | then drop(r, 1) | |
627 | + | else (userRecord + r) | |
628 | + | } | |
629 | + | else { | |
630 | + | let r = drop(mapParts[1], 4) | |
631 | + | if ((r == "")) | |
632 | + | then if ((tickets == 0)) | |
633 | + | then dropRight(mapParts[0], 1) | |
634 | + | else (mapParts[0] + userRecord) | |
635 | + | else if ((tickets == 0)) | |
636 | + | then (mapParts[0] + drop(r, 1)) | |
637 | + | else ((mapParts[0] + userRecord) + r) | |
638 | + | } | |
639 | + | } | |
640 | + | else if ((tickets == 0)) | |
641 | + | then promoMap | |
642 | + | else if ((promoMap == "")) | |
643 | + | then userRecord | |
644 | + | else ((promoMap + "_") + userRecord) | |
645 | + | [IntegerEntry(promoAcresKey, promoAcres), IntegerEntry(ticketsKey, tickets), IntegerEntry(keyTotalPromoTickets, totalTickets), StringEntry(keyPromoMap, newMap)] | |
646 | + | } | |
647 | + | else [IntegerEntry(promoAcresKey, promoAcres)] | |
648 | + | } | |
649 | + | else nil | |
650 | + | ||
651 | + | ||
597 | 652 | func stakeAcresForInternal (address,amt,shouldCleanPromo) = { | |
598 | - | let $t01142011496 = stakeUnstakeAcresInternal(amt, address, 0) | |
599 | - | let actions = $t01142011496._1 | |
600 | - | let wlgClaimedAmount = $t01142011496._2 | |
601 | - | let promoActions = if (if ((height >= DAILY_PROMO_START_BLOCK)) | |
602 | - | then (DAILY_PROMO_END_BLOCK > height) | |
603 | - | else false) | |
604 | - | then { | |
605 | - | let promoAcresKey = keyUserPromoAcres(address) | |
606 | - | let promoAcres = ((if (shouldCleanPromo) | |
607 | - | then 0 | |
608 | - | else valueOrElse(getInteger(promoAcresKey), 0)) + amt) | |
609 | - | let tickets = (promoAcres / MULT8) | |
610 | - | let ticketsKey = keyUserPromoTickets(address) | |
611 | - | let deltaTickets = (tickets - valueOrElse(getInteger(ticketsKey), 0)) | |
612 | - | let totalTickets = (valueOrElse(getInteger(keyTotalPromoTickets), 0) + deltaTickets) | |
613 | - | if (if (shouldCleanPromo) | |
614 | - | then true | |
615 | - | else (deltaTickets > 0)) | |
616 | - | then { | |
617 | - | let promoMap = valueOrElse(getString(keyPromoMap), "") | |
618 | - | let userRecord = ((address + ":") + padL(tickets, 3)) | |
619 | - | let newMap = if (contains(promoMap, address)) | |
620 | - | then { | |
621 | - | let mapParts = split_51C(promoMap, address) | |
622 | - | if ((mapParts[0] == "")) | |
623 | - | then { | |
624 | - | let r = drop(mapParts[1], 4) | |
625 | - | if ((r == "")) | |
626 | - | then if ((tickets == 0)) | |
627 | - | then "" | |
628 | - | else userRecord | |
629 | - | else if ((tickets == 0)) | |
630 | - | then drop(r, 1) | |
631 | - | else (userRecord + r) | |
632 | - | } | |
633 | - | else { | |
634 | - | let r = drop(mapParts[1], 4) | |
635 | - | if ((r == "")) | |
636 | - | then if ((tickets == 0)) | |
637 | - | then dropRight(mapParts[0], 1) | |
638 | - | else (mapParts[0] + userRecord) | |
639 | - | else if ((tickets == 0)) | |
640 | - | then (mapParts[0] + drop(r, 1)) | |
641 | - | else ((mapParts[0] + userRecord) + r) | |
642 | - | } | |
643 | - | } | |
644 | - | else if ((tickets == 0)) | |
645 | - | then promoMap | |
646 | - | else if ((promoMap == "")) | |
647 | - | then userRecord | |
648 | - | else ((promoMap + "_") + userRecord) | |
649 | - | [IntegerEntry(promoAcresKey, promoAcres), IntegerEntry(ticketsKey, tickets), IntegerEntry(keyTotalPromoTickets, totalTickets), StringEntry(keyPromoMap, newMap)] | |
650 | - | } | |
651 | - | else [IntegerEntry(promoAcresKey, promoAcres)] | |
652 | - | } | |
653 | - | else nil | |
653 | + | let $t01395414030 = stakeUnstakeAcresInternal(amt, address, 0) | |
654 | + | let actions = $t01395414030._1 | |
655 | + | let wlgClaimedAmount = $t01395414030._2 | |
656 | + | let promoActions = processPromo(address, amt, shouldCleanPromo) | |
654 | 657 | $Tuple2((actions ++ promoActions), wlgClaimedAmount) | |
655 | 658 | } | |
656 | 659 | ||
697 | 700 | if ((arbReleaseTime > lastBlock.timestamp)) | |
698 | 701 | then throw(("You traded some WLGOLD, cannot unstake until " + toString(arbReleaseTime))) | |
699 | 702 | else { | |
700 | - | let $ | |
701 | - | let actions = $ | |
702 | - | let wlgClaimedAmount = $ | |
703 | + | let $t01562515705 = stakeUnstakeAcresInternal(-(amount), address, 0) | |
704 | + | let actions = $t01562515705._1 | |
705 | + | let wlgClaimedAmount = $t01562515705._2 | |
703 | 706 | $Tuple2(((actions :+ ScriptTransfer(i.caller, amount, acresAssetId)) ++ prologActions), wlgClaimedAmount) | |
704 | 707 | } | |
705 | 708 | } | |
722 | 725 | else (value(pmt.assetId) != acresAssetId)) | |
723 | 726 | then throw("ACRES payments only!") | |
724 | 727 | else { | |
725 | - | let $ | |
726 | - | let stakeActions = $ | |
727 | - | let wlgClaimedAmount = $ | |
728 | + | let $t01615616237 = stakeAcresForInternal(address, amt, false) | |
729 | + | let stakeActions = $t01615616237._1 | |
730 | + | let wlgClaimedAmount = $t01615616237._2 | |
728 | 731 | $Tuple2((stakeActions ++ prologActions), wlgClaimedAmount) | |
729 | 732 | } | |
730 | 733 | } | |
795 | 798 | then throw((("Min payment should be " + fixedPoint(MULT7, 8)) + " ACRES")) | |
796 | 799 | else { | |
797 | 800 | let addr = toString(i.caller) | |
798 | - | let $ | |
799 | - | let limitAction = $ | |
800 | - | let maxUsdt = $ | |
801 | + | let $t01830918357 = getSwapLimitAcres() | |
802 | + | let limitAction = $t01830918357._1 | |
803 | + | let maxUsdt = $t01830918357._2 | |
801 | 804 | let maxAcres = (maxUsdt * USDT2ACRES_MULTIPLIER) | |
802 | 805 | if ((acresAmount > maxAcres)) | |
803 | 806 | then throw((("You can sell max " + fixedPoint(maxAcres, 8)) + " ACRES")) | |
813 | 816 | ||
814 | 817 | @Callable(i) | |
815 | 818 | func sellAcresREADONLY (address,acresAmount) = { | |
816 | - | let $ | |
817 | - | let limitAction = $ | |
818 | - | let maxUsdt = $ | |
819 | + | let $t01885318901 = getSwapLimitAcres() | |
820 | + | let limitAction = $t01885318901._1 | |
821 | + | let maxUsdt = $t01885318901._2 | |
819 | 822 | let usdtAmount = ((acresAmount / USDT2ACRES_MULTIPLIER) / 2) | |
820 | 823 | $Tuple2(nil, [usdtAmount, MULT7, (maxUsdt * USDT2ACRES_MULTIPLIER), 0]) | |
821 | 824 | } | |
876 | 879 | let req = invoke(oldAcresAddress, "requestAcresCallback", [(((rr._1 + rr._2) + rr._3) + rr._4)], nil) | |
877 | 880 | if ((req == req)) | |
878 | 881 | then { | |
879 | - | let $ | |
880 | - | let nftActions = $ | |
881 | - | let nftAssetId = $ | |
882 | + | let $t02141521554 = issueNftCustom(idxNameShovel, idxKeySP, idxCollDig, idxRarityP, 3, idxDescrShovel, idxBonusTypeFp, i.caller) | |
883 | + | let nftActions = $t02141521554._1 | |
884 | + | let nftAssetId = $t02141521554._2 | |
882 | 885 | $Tuple6(rr._1, rr._2, rr._3, rr._4, rr._5, nftActions) | |
883 | 886 | } | |
884 | 887 | else throw("Strict value is not equal to itself.") | |
949 | 952 | let userFpKey = keyFarmingPowerByUser(address) | |
950 | 953 | let oldFp = valueOrElse(getInteger(userFpKey), 0) | |
951 | 954 | let userBonus = valueOrElse(getInteger(acres2Contract, keyUserFullBonus(address)), 0) | |
952 | - | let $ | |
953 | - | let newBonusedFp = $ | |
954 | - | let ignored = $ | |
955 | + | let $t02382523912 = getFarmingPowerByAcresAndBonus(newAcresAmount, userBonus) | |
956 | + | let newBonusedFp = $t02382523912._1 | |
957 | + | let ignored = $t02382523912._2 | |
955 | 958 | let oldTotalFp = valueOrElse(getInteger(totalFarmingPowerKey), 0) | |
956 | 959 | let newTotalFp = ((oldTotalFp + newBonusedFp) - oldFp) | |
957 | 960 | $Tuple2(nil, [oldFp, newBonusedFp, oldTotalFp, newTotalFp]) | |
967 | 970 | ||
968 | 971 | ||
969 | 972 | @Callable(i) | |
970 | - | func issueMittenP (forAddress) = if ((i.caller != this)) | |
973 | + | func issueMittenP (forAddress,shouldCleanPromo) = if ((i.caller != this)) | |
971 | 974 | then throw("Permission denied") | |
972 | - | else issueNftCustom(idxNameMitten, idxKeyMP, idxCollNewYear, idxRarityP, 3, idxDescrMitten, idxBonusTypeFp, addressFromStringValue(forAddress)) | |
975 | + | else { | |
976 | + | let $t02452824698 = issueNftCustom(idxNameMitten, idxKeyMP, idxCollNewYear, idxRarityP, 3, idxDescrMitten, idxBonusTypeFp, addressFromStringValue(forAddress)) | |
977 | + | let nftActions = $t02452824698._1 | |
978 | + | let nftAssetId = $t02452824698._2 | |
979 | + | let promoActions = processPromo(forAddress, 0, shouldCleanPromo) | |
980 | + | $Tuple2((nftActions ++ promoActions), nftAssetId) | |
981 | + | } | |
973 | 982 | ||
974 | 983 | ||
975 | 984 | ||
1000 | 1009 | let listAction = StringEntry(nftsKey, makeString_2C((nfts :+ assetIdStr), "_")) | |
1001 | 1010 | if ((asset.issuer == this)) | |
1002 | 1011 | then { | |
1003 | - | let $ | |
1004 | - | let actions = $ | |
1005 | - | let wlgClaimedAmount = $ | |
1012 | + | let $t02575025940 = stakeNftInternal(addr, assetIdStr, (bonusByDescription(value(asset.description)) * 10000), keyUserWlNftNumber(addr), keyWlNftTotalStaked, MAX_WL_NFTS) | |
1013 | + | let actions = $t02575025940._1 | |
1014 | + | let wlgClaimedAmount = $t02575025940._2 | |
1006 | 1015 | $Tuple2(((prologActions ++ actions) :+ listAction), wlgClaimedAmount) | |
1007 | 1016 | } | |
1008 | 1017 | else if ((isArkimalIssued(asset) == "")) | |
1009 | 1018 | then throw("Only WavesLands and Arkimals NFT tokens are accepted") | |
1010 | 1019 | else { | |
1011 | - | let $ | |
1012 | - | let actions = $ | |
1013 | - | let wlgClaimedAmount = $ | |
1020 | + | let $t02612126272 = stakeNftInternal(addr, assetIdStr, ARK_NFT_BONUS, keyUserArkNftNumber(addr), keyArkNftTotalStaked, MAX_ARK_NFTS) | |
1021 | + | let actions = $t02612126272._1 | |
1022 | + | let wlgClaimedAmount = $t02612126272._2 | |
1014 | 1023 | $Tuple2(((prologActions ++ actions) :+ listAction), wlgClaimedAmount) | |
1015 | 1024 | } | |
1016 | 1025 | } | |
1047 | 1056 | then { | |
1048 | 1057 | let wlNftNumber = valueOrElse(getInteger(keyUserWlNftNumber(addr)), 0) | |
1049 | 1058 | let bonusVal = (bonusByDescription(value(asset.description)) * 10000) | |
1050 | - | let $ | |
1051 | - | let actions = $ | |
1052 | - | let wlgClaimedAmount = $ | |
1059 | + | let $t02743727516 = stakeUnstakeAcresInternal(0, addr, -(bonusVal)) | |
1060 | + | let actions = $t02743727516._1 | |
1061 | + | let wlgClaimedAmount = $t02743727516._2 | |
1053 | 1062 | $Tuple2(((((((actions :+ listAction) :+ IntegerEntry(keyUserWlNftNumber(addr), (wlNftNumber - 1))) :+ IntegerEntry(keyWlNftTotalStaked, max([0, (valueOrElse(getInteger(keyWlNftTotalStaked), 0) - 1)]))) :+ DeleteEntry(keyStakedTimeByAssetIdAndOwner(toBase58String(assetId), addr))) :+ ScriptTransfer(i.caller, 1, assetId)) ++ prologActions), wlgClaimedAmount) | |
1054 | 1063 | } | |
1055 | 1064 | else { | |
1058 | 1067 | then throw("Only WavesLands and Arkimals NFT tokens are accepted") | |
1059 | 1068 | else { | |
1060 | 1069 | let arkNftNumber = valueOrElse(getInteger(keyUserArkNftNumber(addr)), 0) | |
1061 | - | let $ | |
1062 | - | let actions = $ | |
1063 | - | let wlgClaimedAmount = $ | |
1070 | + | let $t02817628260 = stakeUnstakeAcresInternal(0, addr, -(ARK_NFT_BONUS)) | |
1071 | + | let actions = $t02817628260._1 | |
1072 | + | let wlgClaimedAmount = $t02817628260._2 | |
1064 | 1073 | $Tuple2((((((actions :+ listAction) :+ IntegerEntry(keyUserArkNftNumber(addr), (arkNftNumber - 1))) :+ DeleteEntry(keyStakedTimeByAssetIdAndOwner(toBase58String(assetId), addr))) :+ ScriptTransfer(i.caller, 1, assetId)) ++ prologActions), wlgClaimedAmount) | |
1065 | 1074 | } | |
1066 | 1075 | } | |
1104 | 1113 | } | |
1105 | 1114 | } | |
1106 | 1115 | ||
1107 | - | let $ | |
1116 | + | let $t02971129927 = { | |
1108 | 1117 | let $l = i.payments | |
1109 | 1118 | let $s = size($l) | |
1110 | 1119 | let $acc0 = $Tuple4(0, 0, nil, -1) | |
1118 | 1127 | ||
1119 | 1128 | $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) | |
1120 | 1129 | } | |
1121 | - | let wlgFee = $ | |
1122 | - | let totalBonus = $ | |
1123 | - | let burnActions = $ | |
1124 | - | let rarityIdx = $ | |
1130 | + | let wlgFee = $t02971129927._1 | |
1131 | + | let totalBonus = $t02971129927._2 | |
1132 | + | let burnActions = $t02971129927._3 | |
1133 | + | let rarityIdx = $t02971129927._4 | |
1125 | 1134 | let newRarityIdx = if ((rarityIdx == idxRarityC)) | |
1126 | 1135 | then if ((rarityThresholds[idxThresholdC] > totalBonus)) | |
1127 | 1136 | then idxRarityC | |
1153 | 1162 | let changeActions = if ((change > 0)) | |
1154 | 1163 | then [ScriptTransfer(i.caller, change, wlgAssetId)] | |
1155 | 1164 | else nil | |
1156 | - | let $ | |
1157 | - | let issueNftActions = $ | |
1158 | - | let nftAssetId = $ | |
1165 | + | let $t03146431625 = issueNftCustom(idxNamePickaxe, newRarityIdx, idxCollDig, newRarityIdx, totalBonus, idxDescrPickaxe, idxBonusTypeFp, i.caller) | |
1166 | + | let issueNftActions = $t03146431625._1 | |
1167 | + | let nftAssetId = $t03146431625._2 | |
1159 | 1168 | let burned = size(burnActions) | |
1160 | 1169 | let burnCounterActions = if ((burned == 0)) | |
1161 | 1170 | then nil | |
1201 | 1210 | let entropy = value(value(blockInfoByHeight(finishBlock)).vrf) | |
1202 | 1211 | let salt = fromBase58String(split(valueOrElse(getString(keyCurWeekTxIdByUser(addr)), "42_DEFAULT"), "_")[1]) | |
1203 | 1212 | let rand = getRandomNumber(100, salt, entropy) | |
1204 | - | let $ | |
1213 | + | let $t03370633978 = if ((84 > rand)) | |
1205 | 1214 | then $Tuple2(1, idxRarityC) | |
1206 | 1215 | else if ((98 > rand)) | |
1207 | 1216 | then $Tuple2(5, idxRarityU) | |
1208 | 1217 | else $Tuple2(10, idxRarityL) | |
1209 | - | let bonus = $ | |
1210 | - | let rarityIdx = $ | |
1211 | - | let $ | |
1212 | - | let issueNftActions = $ | |
1213 | - | let nftAssetId = $ | |
1218 | + | let bonus = $t03370633978._1 | |
1219 | + | let rarityIdx = $t03370633978._2 | |
1220 | + | let $t03398134131 = issueNftCustom(idxNamePickaxe, rarityIdx, idxCollDig, rarityIdx, bonus, idxDescrPickaxe, idxBonusTypeFp, i.caller) | |
1221 | + | let issueNftActions = $t03398134131._1 | |
1222 | + | let nftAssetId = $t03398134131._2 | |
1214 | 1223 | $Tuple2(((((issueNftActions ++ prologActions) ++ changeActions) :+ ScriptTransfer(addressFromStringValue(getStringValue(wlgContract, teamAddrKey)), forTeam, wlgAssetId)) :+ DeleteEntry(finishKey)), $Tuple2(nftAssetId, wlgRemain)) | |
1215 | 1224 | } | |
1216 | 1225 | } | |
1255 | 1264 | if ((promoMap == "")) | |
1256 | 1265 | then throw("No participants") | |
1257 | 1266 | else { | |
1258 | - | func singleDraw (ac,j) = { | |
1259 | - | let promoList = if ((ac._3 == "")) | |
1260 | - | then nil | |
1261 | - | else split_51C(ac._3, "_") | |
1262 | - | if ((j >= size(promoList))) | |
1263 | - | then ac | |
1264 | - | else { | |
1265 | - | let rand = getRandomNumber(ac._1, ac._2, entropy) | |
1266 | - | func countTickets (acc,el) = { | |
1267 | - | let parts = split(el, ":") | |
1268 | - | let addr = parts[0] | |
1269 | - | let tickets = parseIntValue(parts[1]) | |
1270 | - | let newTotal = (acc._1 + tickets) | |
1271 | - | if (if ((acc._3 == "")) | |
1272 | - | then (newTotal > rand) | |
1273 | - | else false) | |
1274 | - | then $Tuple3(newTotal, tickets, addr) | |
1275 | - | else $Tuple3(newTotal, acc._2, acc._3) | |
1267 | + | func singleDraw (ac,j) = if ((ac._3 == "")) | |
1268 | + | then ac | |
1269 | + | else { | |
1270 | + | let promoList = split_51C(ac._3, "_") | |
1271 | + | let rand = getRandomNumber(ac._1, ac._2, entropy) | |
1272 | + | func countTickets (acc,el) = { | |
1273 | + | let parts = split(el, ":") | |
1274 | + | let addr = parts[0] | |
1275 | + | let tickets = parseIntValue(parts[1]) | |
1276 | + | let newTotal = (acc._1 + tickets) | |
1277 | + | if (if ((acc._3 == "")) | |
1278 | + | then (newTotal > rand) | |
1279 | + | else false) | |
1280 | + | then $Tuple3(newTotal, tickets, addr) | |
1281 | + | else $Tuple3(newTotal, acc._2, acc._3) | |
1282 | + | } | |
1283 | + | ||
1284 | + | let r = { | |
1285 | + | let $l = promoList | |
1286 | + | let $s = size($l) | |
1287 | + | let $acc0 = $Tuple3(0, 0, "") | |
1288 | + | func $f0_1 ($a,$i) = if (($i >= $s)) | |
1289 | + | then $a | |
1290 | + | else countTickets($a, $l[$i]) | |
1291 | + | ||
1292 | + | func $f0_2 ($a,$i) = if (($i >= $s)) | |
1293 | + | then $a | |
1294 | + | else throw("List size exceeds 200") | |
1295 | + | ||
1296 | + | $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($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($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($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($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($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($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($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($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($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), 21), 22), 23), 24), 25), 26), 27), 28), 29), 30), 31), 32), 33), 34), 35), 36), 37), 38), 39), 40), 41), 42), 43), 44), 45), 46), 47), 48), 49), 50), 51), 52), 53), 54), 55), 56), 57), 58), 59), 60), 61), 62), 63), 64), 65), 66), 67), 68), 69), 70), 71), 72), 73), 74), 75), 76), 77), 78), 79), 80), 81), 82), 83), 84), 85), 86), 87), 88), 89), 90), 91), 92), 93), 94), 95), 96), 97), 98), 99), 100), 101), 102), 103), 104), 105), 106), 107), 108), 109), 110), 111), 112), 113), 114), 115), 116), 117), 118), 119), 120), 121), 122), 123), 124), 125), 126), 127), 128), 129), 130), 131), 132), 133), 134), 135), 136), 137), 138), 139), 140), 141), 142), 143), 144), 145), 146), 147), 148), 149), 150), 151), 152), 153), 154), 155), 156), 157), 158), 159), 160), 161), 162), 163), 164), 165), 166), 167), 168), 169), 170), 171), 172), 173), 174), 175), 176), 177), 178), 179), 180), 181), 182), 183), 184), 185), 186), 187), 188), 189), 190), 191), 192), 193), 194), 195), 196), 197), 198), 199), 200) | |
1297 | + | } | |
1298 | + | let winner = r._3 | |
1299 | + | if ((winner == "")) | |
1300 | + | then ac | |
1301 | + | else { | |
1302 | + | let mapParts = split_51C(ac._3, winner) | |
1303 | + | let newMap = if ((mapParts[0] == "")) | |
1304 | + | then drop(mapParts[1], 5) | |
1305 | + | else (dropRight(mapParts[0], 1) + drop(mapParts[1], 4)) | |
1306 | + | let winActions = if ((j == 0)) | |
1307 | + | then invoke(this, "issueMittenP", [winner, true], nil) | |
1308 | + | else invoke(this, "stakeAcresFor", [winner, promoAwardPerRound[j], true], nil) | |
1309 | + | if ((winActions == winActions)) | |
1310 | + | then { | |
1311 | + | let newSalt = fromBase58String(split(valueOrElse(getString(keyCurWeekTxIdByUser(winner)), "0_DEFAULT"), "_")[1]) | |
1312 | + | $Tuple4((ac._1 - r._2), newSalt, newMap, (ac._4 :+ winner)) | |
1313 | + | } | |
1314 | + | else throw("Strict value is not equal to itself.") | |
1276 | 1315 | } | |
1277 | - | ||
1278 | - | let r = { | |
1279 | - | let $l = promoList | |
1280 | - | let $s = size($l) | |
1281 | - | let $acc0 = $Tuple3(0, 0, "") | |
1282 | - | func $f0_1 ($a,$i) = if (($i >= $s)) | |
1283 | - | then $a | |
1284 | - | else countTickets($a, $l[$i]) | |
1285 | - | ||
1286 | - | func $f0_2 ($a,$i) = if (($i >= $s)) | |
1287 | - | then $a | |
1288 | - | else throw("List size exceeds 200") | |
1289 | - | ||
1290 | - | $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($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($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($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($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($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($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($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($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($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), 21), 22), 23), 24), 25), 26), 27), 28), 29), 30), 31), 32), 33), 34), 35), 36), 37), 38), 39), 40), 41), 42), 43), 44), 45), 46), 47), 48), 49), 50), 51), 52), 53), 54), 55), 56), 57), 58), 59), 60), 61), 62), 63), 64), 65), 66), 67), 68), 69), 70), 71), 72), 73), 74), 75), 76), 77), 78), 79), 80), 81), 82), 83), 84), 85), 86), 87), 88), 89), 90), 91), 92), 93), 94), 95), 96), 97), 98), 99), 100), 101), 102), 103), 104), 105), 106), 107), 108), 109), 110), 111), 112), 113), 114), 115), 116), 117), 118), 119), 120), 121), 122), 123), 124), 125), 126), 127), 128), 129), 130), 131), 132), 133), 134), 135), 136), 137), 138), 139), 140), 141), 142), 143), 144), 145), 146), 147), 148), 149), 150), 151), 152), 153), 154), 155), 156), 157), 158), 159), 160), 161), 162), 163), 164), 165), 166), 167), 168), 169), 170), 171), 172), 173), 174), 175), 176), 177), 178), 179), 180), 181), 182), 183), 184), 185), 186), 187), 188), 189), 190), 191), 192), 193), 194), 195), 196), 197), 198), 199), 200) | |
1291 | - | } | |
1292 | - | let winner = r._3 | |
1293 | - | if ((winner == "")) | |
1294 | - | then ac | |
1295 | - | else { | |
1296 | - | let mapParts = split_51C(ac._3, winner) | |
1297 | - | let newMap = if ((mapParts[0] == "")) | |
1298 | - | then drop(mapParts[1], 5) | |
1299 | - | else (dropRight(mapParts[0], 1) + drop(mapParts[1], 4)) | |
1300 | - | let winActions = if ((j == 0)) | |
1301 | - | then invoke(this, "issueMittenP", [winner], nil) | |
1302 | - | else invoke(this, "stakeAcresFor", [winner, promoAwardPerRound[j], true], nil) | |
1303 | - | if ((winActions == winActions)) | |
1304 | - | then { | |
1305 | - | let newSalt = fromBase58String(split(valueOrElse(getString(keyCurWeekTxIdByUser(winner)), "0_DEFAULT"), "_")[1]) | |
1306 | - | $Tuple4((ac._1 - r._2), newSalt, newMap, (ac._4 :+ winner)) | |
1307 | - | } | |
1308 | - | else throw("Strict value is not equal to itself.") | |
1309 | - | } | |
1310 | - | } | |
1311 | - | } | |
1316 | + | } | |
1312 | 1317 | ||
1313 | 1318 | let draws = { | |
1314 | 1319 | let $l = [0, 1, 2, 3, 4, 5] |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let SEP = "__" | |
5 | 5 | ||
6 | 6 | let MULT6 = 1000000 | |
7 | 7 | ||
8 | 8 | let MULT7 = 10000000 | |
9 | 9 | ||
10 | 10 | let MULT8 = 100000000 | |
11 | 11 | ||
12 | 12 | let MULT14 = 100000000000000 | |
13 | 13 | ||
14 | 14 | let DAY_MILLIS = 86400000 | |
15 | 15 | ||
16 | 16 | let USDT2ACRES_MULTIPLIER = 10 | |
17 | 17 | ||
18 | 18 | let ONE_PERCENT_DIVISOR = 100 | |
19 | 19 | ||
20 | 20 | let RANDOM_DELAY = 2 | |
21 | 21 | ||
22 | 22 | let NFT_CHEST_PRICE_USDT = 5000000 | |
23 | 23 | ||
24 | 24 | let chain = take(drop(this.bytes, 1), 1) | |
25 | 25 | ||
26 | 26 | let DAILY_PROMO_START_BLOCK = match chain { | |
27 | 27 | case _ => | |
28 | 28 | if ((base58'2W' == $match0)) | |
29 | 29 | then 4487040 | |
30 | 30 | else if ((base58'2T' == $match0)) | |
31 | 31 | then 3412800 | |
32 | 32 | else throw("Unknown chain") | |
33 | 33 | } | |
34 | 34 | ||
35 | 35 | let DAILY_PROMO_END_BLOCK = match chain { | |
36 | 36 | case _ => | |
37 | 37 | if ((base58'2W' == $match0)) | |
38 | 38 | then 4517280 | |
39 | 39 | else if ((base58'2T' == $match0)) | |
40 | 40 | then 3443040 | |
41 | 41 | else throw("Unknown chain") | |
42 | 42 | } | |
43 | 43 | ||
44 | 44 | let DAY_BLOCKS = match chain { | |
45 | 45 | case _ => | |
46 | 46 | if ((base58'2W' == $match0)) | |
47 | 47 | then 1440 | |
48 | 48 | else if ((base58'2T' == $match0)) | |
49 | 49 | then 60 | |
50 | 50 | else throw("Unknown chain") | |
51 | 51 | } | |
52 | 52 | ||
53 | 53 | let WEEK_BLOCKS = match chain { | |
54 | 54 | case _ => | |
55 | 55 | if ((base58'2W' == $match0)) | |
56 | 56 | then 10080 | |
57 | 57 | else if ((base58'2T' == $match0)) | |
58 | 58 | then 180 | |
59 | 59 | else throw("Unknown chain") | |
60 | 60 | } | |
61 | 61 | ||
62 | 62 | let VRF_OFFSET = match chain { | |
63 | 63 | case _ => | |
64 | 64 | if ((base58'2W' == $match0)) | |
65 | 65 | then 0 | |
66 | 66 | else if ((base58'2T' == $match0)) | |
67 | 67 | then 1146000 | |
68 | 68 | else throw("Unknown chain") | |
69 | 69 | } | |
70 | 70 | ||
71 | 71 | let usdtAssetId = match chain { | |
72 | 72 | case _ => | |
73 | 73 | if ((base58'2W' == $match0)) | |
74 | 74 | then base58'9wc3LXNA4TEBsXyKtoLE9mrbDD7WMHXvXrCjZvabLAsi' | |
75 | 75 | else if ((base58'2T' == $match0)) | |
76 | 76 | then base58'6mWwf9mZBjVgkC54idpyaZLQfAosD914wT8fGf2iiY63' | |
77 | 77 | else throw("Unknown chain") | |
78 | 78 | } | |
79 | 79 | ||
80 | 80 | let defaultRest2AddressStr = match chain { | |
81 | 81 | case _ => | |
82 | 82 | if ((base58'2W' == $match0)) | |
83 | 83 | then "3PFwYta8biEz31zpeFe5DJK8wE5trSpQVF8" | |
84 | 84 | else if ((base58'2T' == $match0)) | |
85 | 85 | then "3N7UuYar6264P58FBhVWKPQAh4Yua2hgngv" | |
86 | 86 | else throw("Unknown chain") | |
87 | 87 | } | |
88 | 88 | ||
89 | 89 | let arbitrageDelay = match chain { | |
90 | 90 | case _ => | |
91 | 91 | if ((base58'2W' == $match0)) | |
92 | 92 | then DAY_MILLIS | |
93 | 93 | else if ((base58'2T' == $match0)) | |
94 | 94 | then 60000 | |
95 | 95 | else throw("Unknown chain") | |
96 | 96 | } | |
97 | 97 | ||
98 | 98 | let oldStakingContractStr = match chain { | |
99 | 99 | case _ => | |
100 | 100 | if ((base58'2W' == $match0)) | |
101 | 101 | then "3PLncXtS1U83D6cQbFD3H8rBHPLgzxSFKZ1" | |
102 | 102 | else if ((base58'2T' == $match0)) | |
103 | 103 | then "3NDCyBG5q85JuaRiigUeEtainyjCQT3XpZm" | |
104 | 104 | else throw("Unknown chain") | |
105 | 105 | } | |
106 | 106 | ||
107 | 107 | func getStringOrFail (address,key) = valueOrErrorMessage(getString(address, key), makeString(["mandatory ", toString(address), ".", key, " is not defined"], "")) | |
108 | 108 | ||
109 | 109 | ||
110 | 110 | let IdxCfgAcres2Dapp = 1 | |
111 | 111 | ||
112 | 112 | let IdxCfgWlgDapp = 2 | |
113 | 113 | ||
114 | 114 | let IdxCfgInvestFundDapp = 5 | |
115 | 115 | ||
116 | 116 | let IdxCfgMarketDapp = 6 | |
117 | 117 | ||
118 | 118 | func keyRestCfg () = "%s__restConfig" | |
119 | 119 | ||
120 | 120 | ||
121 | 121 | func keyRest2Address () = "%s__rest2Addr" | |
122 | 122 | ||
123 | 123 | ||
124 | 124 | func readRestCfgOrFail (rest) = split_4C(getStringOrFail(rest, keyRestCfg()), SEP) | |
125 | 125 | ||
126 | 126 | ||
127 | 127 | func getContractAddressOrFail (rest2Cfg,idx) = valueOrErrorMessage(addressFromString(rest2Cfg[idx]), ("Rest cfg doesn't contain address at index " + toString(idx))) | |
128 | 128 | ||
129 | 129 | ||
130 | 130 | let rest2Contract = addressFromStringValue(valueOrElse(getString(this, keyRest2Address()), defaultRest2AddressStr)) | |
131 | 131 | ||
132 | 132 | let rest2Cfg = readRestCfgOrFail(rest2Contract) | |
133 | 133 | ||
134 | 134 | let acres2Contract = getContractAddressOrFail(rest2Cfg, IdxCfgAcres2Dapp) | |
135 | 135 | ||
136 | 136 | let wlgContract = getContractAddressOrFail(rest2Cfg, IdxCfgWlgDapp) | |
137 | 137 | ||
138 | 138 | let investFundContract = getContractAddressOrFail(rest2Cfg, IdxCfgInvestFundDapp) | |
139 | 139 | ||
140 | 140 | let marketContract = getContractAddressOrFail(rest2Cfg, IdxCfgMarketDapp) | |
141 | 141 | ||
142 | 142 | let oldAcresContractKey = "oldAcresContract" | |
143 | 143 | ||
144 | 144 | func keyBlocked () = "contractsBlocked" | |
145 | 145 | ||
146 | 146 | ||
147 | 147 | func keyLastWeekTxIdByUser (addr) = ("lastWeekTxIdByUser_" + addr) | |
148 | 148 | ||
149 | 149 | ||
150 | 150 | func keyCurWeekTxIdByUser (addr) = ("curWeekTxIdByUser_" + addr) | |
151 | 151 | ||
152 | 152 | ||
153 | 153 | func keyCommit (address) = ("finishBlockFor_" + address) | |
154 | 154 | ||
155 | 155 | ||
156 | 156 | let wlgAssetIdKey = "wlg_assetId" | |
157 | 157 | ||
158 | 158 | let wlgAssetId = valueOrErrorMessage(getBinary(wlgContract, wlgAssetIdKey), "WLGOLD is not issued yet") | |
159 | 159 | ||
160 | 160 | let acresIssuedAmountKey = "acresIssuedAmount" | |
161 | 161 | ||
162 | 162 | let acresAssetIdKey = "acresAssetId" | |
163 | 163 | ||
164 | 164 | let acresAssetId = valueOrErrorMessage(getBinary(acres2Contract, acresAssetIdKey), "ACRES is not issued yet") | |
165 | 165 | ||
166 | 166 | func keyAcresStakedTimeByUser (addr) = ("acresStakedTimeByUser_" + addr) | |
167 | 167 | ||
168 | 168 | ||
169 | 169 | func keyStakedLandsByOwner (ownerAddr) = ("stakedLandsByOwner_" + ownerAddr) | |
170 | 170 | ||
171 | 171 | ||
172 | 172 | func keyStakedDuckByOwner (ownerAddr) = ("stakedDuckByOwner_" + ownerAddr) | |
173 | 173 | ||
174 | 174 | ||
175 | 175 | func keyStakedTimeByAssetIdAndOwner (assetId,addr) = ((("st_" + assetId) + "_") + addr) | |
176 | 176 | ||
177 | 177 | ||
178 | 178 | func keyStakedNFTsByOwner (ownerAddr) = ("stakedNFTsByOwner_" + ownerAddr) | |
179 | 179 | ||
180 | 180 | ||
181 | 181 | func keyUserPromoAcres (address) = ("promoAcres_" + address) | |
182 | 182 | ||
183 | 183 | ||
184 | 184 | func keyUserPromoTickets (address) = ("promoTickets_" + address) | |
185 | 185 | ||
186 | 186 | ||
187 | 187 | let keyTotalPromoTickets = "totalPromoTickets" | |
188 | 188 | ||
189 | 189 | let keyPromoMap = "promoMap" | |
190 | 190 | ||
191 | 191 | func keyPromoRoundWinners (day) = ("dailyWinners_" + toString(day)) | |
192 | 192 | ||
193 | 193 | ||
194 | 194 | let promoAwardPerRound = [0, 500000000, 100000000, 100000000, 100000000, 100000000] | |
195 | 195 | ||
196 | 196 | func asInt (v) = match v { | |
197 | 197 | case n: Int => | |
198 | 198 | n | |
199 | 199 | case _ => | |
200 | 200 | throw("fail to cast into Int") | |
201 | 201 | } | |
202 | 202 | ||
203 | 203 | ||
204 | 204 | func asTuple5Ints (val) = match val { | |
205 | 205 | case t: (Int, Int, Int, Int, Int) => | |
206 | 206 | t | |
207 | 207 | case _ => | |
208 | 208 | throw("fail to cast into (Int, Int, Int, Int, Int)") | |
209 | 209 | } | |
210 | 210 | ||
211 | 211 | ||
212 | 212 | func asTuple4Ints (val) = match val { | |
213 | 213 | case t: (Int, Int, Int, Int) => | |
214 | 214 | t | |
215 | 215 | case _ => | |
216 | 216 | throw("fail to cast into (Int, Int, Int, Int)") | |
217 | 217 | } | |
218 | 218 | ||
219 | 219 | ||
220 | 220 | func asTuple3Ints (val) = match val { | |
221 | 221 | case t: (Int, Int, Int) => | |
222 | 222 | t | |
223 | 223 | case _ => | |
224 | 224 | throw("fail to cast into (Int, Int, Int)") | |
225 | 225 | } | |
226 | 226 | ||
227 | 227 | ||
228 | 228 | func asTuple2Ints (val) = match val { | |
229 | 229 | case t: (Int, Int) => | |
230 | 230 | t | |
231 | 231 | case _ => | |
232 | 232 | throw("fail to cast into (Int, Int)") | |
233 | 233 | } | |
234 | 234 | ||
235 | 235 | ||
236 | 236 | func fixedPoint (val,decimals) = { | |
237 | 237 | let tenPow = pow(10, 0, decimals, 0, 0, DOWN) | |
238 | 238 | let lowPart = toString((val % tenPow)) | |
239 | 239 | let zeroes = drop(toString(tenPow), (1 + size(lowPart))) | |
240 | 240 | (((toString((val / tenPow)) + ".") + zeroes) + lowPart) | |
241 | 241 | } | |
242 | 242 | ||
243 | 243 | ||
244 | 244 | func getRandomNumber (maxValue,salt,entropy) = if ((0 >= maxValue)) | |
245 | 245 | then throw("maxValue should be > 0") | |
246 | 246 | else { | |
247 | 247 | let randomHash = sha256_16Kb((salt + entropy)) | |
248 | 248 | (toInt(randomHash) % maxValue) | |
249 | 249 | } | |
250 | 250 | ||
251 | 251 | ||
252 | 252 | func padL (val,len) = { | |
253 | 253 | let valS = toString(val) | |
254 | 254 | let zeroes = drop(toString(pow(10, 0, (len - size(valS)), 0, 0, DOWN)), 1) | |
255 | 255 | (zeroes + valS) | |
256 | 256 | } | |
257 | 257 | ||
258 | 258 | ||
259 | 259 | let M6_ = 1000000 | |
260 | 260 | ||
261 | 261 | let M8_ = 100000000 | |
262 | 262 | ||
263 | 263 | let wlgIssuedAmtKey = "wlg_issuedAmount" | |
264 | 264 | ||
265 | 265 | let zbIssuedAmtKey = "zbill_issuedAmount" | |
266 | 266 | ||
267 | 267 | func keyAcresStakedAmtByUser (addr) = ("acresStakedAmountByUser_" + addr) | |
268 | 268 | ||
269 | 269 | ||
270 | 270 | func keyFarmingPowerByUser (addr) = ("farmingPowerByUser_" + addr) | |
271 | 271 | ||
272 | 272 | ||
273 | 273 | let acresStakdTotalKey = "acresStakedAmountTotal" | |
274 | 274 | ||
275 | 275 | let totalFarmingPowerKey = "totalFarmingPower" | |
276 | 276 | ||
277 | 277 | let MAX_WL_NFTS = 3 | |
278 | 278 | ||
279 | 279 | let MAX_ARK_NFTS = 1 | |
280 | 280 | ||
281 | 281 | let ARK_NFT_BONUS = 5000 | |
282 | 282 | ||
283 | 283 | let MAX_NFTS_STAKED_BY_USER = 4 | |
284 | 284 | ||
285 | 285 | let keyNftTotalIssued = "nftTotalIssued" | |
286 | 286 | ||
287 | 287 | let keyNftTotalBurned = "nftTotalBurned" | |
288 | 288 | ||
289 | 289 | let keyWlNftTotalStaked = "WlNftTotalStaked" | |
290 | 290 | ||
291 | 291 | let keyArkNftTotalStaked = "ArkNftTotalStaked" | |
292 | 292 | ||
293 | 293 | func keyNftNumberByAssetId (assetId) = ("nftNumberByAssetId_" + assetId) | |
294 | 294 | ||
295 | 295 | ||
296 | 296 | func keyUserWlNftNumber (addr) = ("userWlNftNumber_" + addr) | |
297 | 297 | ||
298 | 298 | ||
299 | 299 | func keyUserArkNftNumber (addr) = ("userArkNftNumber_" + addr) | |
300 | 300 | ||
301 | 301 | ||
302 | 302 | func keyUserFullBonus (addr) = ("userFullBonus_" + addr) | |
303 | 303 | ||
304 | 304 | ||
305 | 305 | let levelAcres = [0, 10, 20, 40, 80, 150, 250, 400, 700, 1000] | |
306 | 306 | ||
307 | 307 | func getLevelByAcres (acres) = { | |
308 | 308 | let acr = ((acres + 99999999) / M8_) | |
309 | 309 | func checker (acc,item) = if ((item >= acr)) | |
310 | 310 | then acc | |
311 | 311 | else (acc + 1) | |
312 | 312 | ||
313 | 313 | let $l = levelAcres | |
314 | 314 | let $s = size($l) | |
315 | 315 | let $acc0 = 0 | |
316 | 316 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
317 | 317 | then $a | |
318 | 318 | else checker($a, $l[$i]) | |
319 | 319 | ||
320 | 320 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
321 | 321 | then $a | |
322 | 322 | else throw("List size exceeds 10") | |
323 | 323 | ||
324 | 324 | $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) | |
325 | 325 | } | |
326 | 326 | ||
327 | 327 | ||
328 | 328 | func getFarmingPowerByAcres (acres) = ((acres * 20) * (getLevelByAcres(acres) + 4)) | |
329 | 329 | ||
330 | 330 | ||
331 | 331 | func getFarmingPowerByAcresAndBonus (acres,bonus6) = { | |
332 | 332 | let notBonused = getFarmingPowerByAcres(acres) | |
333 | 333 | $Tuple2(fraction(notBonused, (M6_ + bonus6), M6_), notBonused) | |
334 | 334 | } | |
335 | 335 | ||
336 | 336 | ||
337 | 337 | let teamAddrKey = "teamAddr" | |
338 | 338 | ||
339 | 339 | func keyLastWlgTradeTimeByUser (addr) = ("lastArbTimeUser_" + addr) | |
340 | 340 | ||
341 | 341 | ||
342 | 342 | let OLD_STAKING_DEADL = 1733346000000 | |
343 | 343 | ||
344 | 344 | let MAX_LANDS_TO_CONVERT = 14 | |
345 | 345 | ||
346 | 346 | let keyLastAcresSellTime = "lastAcresSellTime" | |
347 | 347 | ||
348 | 348 | let keyLastLimitLeft = "lastLimitLeft" | |
349 | 349 | ||
350 | 350 | let names = ["Gold shovel", "Pickaxe", "Santa's mitten"] | |
351 | 351 | ||
352 | 352 | let descriptions = ["Reward for early birds", "Increases FarmPower", "New Year promo reward"] | |
353 | 353 | ||
354 | 354 | let idxDescrShovel = 0 | |
355 | 355 | ||
356 | 356 | let idxDescrPickaxe = 1 | |
357 | 357 | ||
358 | 358 | let idxDescrMitten = 2 | |
359 | 359 | ||
360 | 360 | let rarityThresholds = [5, 10, 20] | |
361 | 361 | ||
362 | 362 | let idxThresholdC = 0 | |
363 | 363 | ||
364 | 364 | let idxThresholdU = 1 | |
365 | 365 | ||
366 | 366 | let idxThresholdL = 2 | |
367 | 367 | ||
368 | 368 | let namez = ["SHOVEL", "PICKAXE", "MITTEN"] | |
369 | 369 | ||
370 | 370 | let idxNameShovel = 0 | |
371 | 371 | ||
372 | 372 | let idxNamePickaxe = 1 | |
373 | 373 | ||
374 | 374 | let idxNameMitten = 2 | |
375 | 375 | ||
376 | 376 | let contentKeyz = ["contentPickaxeC", "contentPickaxeU", "contentPickaxeL", "contentPickaxeE", "contentShovelP", "contentMittenP"] | |
377 | 377 | ||
378 | 378 | let idxKeyC = 0 | |
379 | 379 | ||
380 | 380 | let idxKeySP = 4 | |
381 | 381 | ||
382 | 382 | let idxKeyMP = 5 | |
383 | 383 | ||
384 | 384 | let rarityNames = ["Common", "Uncommon", "Legendary", "Epic", "Promo"] | |
385 | 385 | ||
386 | 386 | let idxRarityC = 0 | |
387 | 387 | ||
388 | 388 | let idxRarityU = 1 | |
389 | 389 | ||
390 | 390 | let idxRarityL = 2 | |
391 | 391 | ||
392 | 392 | let idxRarityE = 3 | |
393 | 393 | ||
394 | 394 | let idxRarityP = 4 | |
395 | 395 | ||
396 | 396 | let collectionz = ["Digging tools", "New Year gifts"] | |
397 | 397 | ||
398 | 398 | let idxCollDig = 0 | |
399 | 399 | ||
400 | 400 | let idxCollNewYear = 1 | |
401 | 401 | ||
402 | 402 | let bonusTypez = ["FarmPower"] | |
403 | 403 | ||
404 | 404 | let idxBonusTypeFp = 0 | |
405 | 405 | ||
406 | 406 | func prolog (i) = if (if ((i.originCaller != rest2Contract)) | |
407 | 407 | then valueOrElse(getBoolean(keyBlocked()), false) | |
408 | 408 | else false) | |
409 | 409 | then throw("Contracts are under maintenance") | |
410 | 410 | else { | |
411 | 411 | let addr = toString(i.originCaller) | |
412 | 412 | let week = (height / WEEK_BLOCKS) | |
413 | 413 | let lastWeekKey = keyLastWeekTxIdByUser(addr) | |
414 | 414 | let lastWeekTxIdByUser = getString(lastWeekKey) | |
415 | 415 | let txId = toBase58String(i.transactionId) | |
416 | 416 | let wtx = ((toString(week) + "_") + txId) | |
417 | 417 | let curWeekKey = keyCurWeekTxIdByUser(addr) | |
418 | 418 | if (isDefined(lastWeekTxIdByUser)) | |
419 | 419 | then { | |
420 | 420 | let lastWeekTx = split(value(lastWeekTxIdByUser), "_") | |
421 | 421 | if ((lastWeekTx[0] == toString(week))) | |
422 | 422 | then [StringEntry(lastWeekKey, wtx), StringEntry(curWeekKey, wtx)] | |
423 | 423 | else if ((lastWeekTx[0] == toString((week - 1)))) | |
424 | 424 | then [StringEntry(curWeekKey, wtx)] | |
425 | 425 | else { | |
426 | 426 | let curWeekTxIdByUser = getStringValue(curWeekKey) | |
427 | 427 | let curWeekTx = split(curWeekTxIdByUser, "_") | |
428 | 428 | if ((curWeekTx[0] == toString(week))) | |
429 | 429 | then [StringEntry(curWeekKey, wtx)] | |
430 | 430 | else [StringEntry(lastWeekKey, curWeekTxIdByUser), StringEntry(curWeekKey, wtx)] | |
431 | 431 | } | |
432 | 432 | } | |
433 | 433 | else [StringEntry(lastWeekKey, wtx), StringEntry(curWeekKey, wtx)] | |
434 | 434 | } | |
435 | 435 | ||
436 | 436 | ||
437 | 437 | func createNftDescrCustom (contKey,nftSerial,collection,name,descr,rarity,bonus,bonusType) = (((((((((((((((((((((((("{\"url\": \"https://waveslands.com\", " + "\"contentKey\": \"") + contKey) + "\", ") + "\"number\": ") + toString(nftSerial)) + ", ") + "\"collection\": \"") + collection) + "\", ") + "\"name\": \"") + name) + "\", ") + "\"description\": \"") + descr) + "\", ") + "\"rare\": \"") + rarity) + "\", ") + "\"bonus\": ") + toString(bonus)) + ", ") + "\"bonusType\": \"") + bonusType) + "\"}") | |
438 | 438 | ||
439 | 439 | ||
440 | 440 | func issueNftCustom (nameIdx,contKeyIdx,collIdx,rarityIdx,bonusPerc,descrIdx,bonusTypeIdx,addr) = { | |
441 | 441 | let nftSerial = valueOrElse(getInteger(keyNftTotalIssued), 0) | |
442 | 442 | let rarity = rarityNames[rarityIdx] | |
443 | 443 | let name = (((namez[nameIdx] + "-") + take(rarity, 1)) + toString(bonusPerc)) | |
444 | 444 | let issue = Issue(name, createNftDescrCustom(contentKeyz[contKeyIdx], nftSerial, collectionz[collIdx], names[nameIdx], descriptions[descrIdx], rarityNames[rarityIdx], bonusPerc, bonusTypez[bonusTypeIdx]), 1, 0, false) | |
445 | 445 | let nftAssetId = calculateAssetId(issue) | |
446 | 446 | $Tuple2([issue, IntegerEntry(keyNftTotalIssued, (nftSerial + 1)), IntegerEntry(keyNftNumberByAssetId(toBase58String(nftAssetId)), nftSerial), ScriptTransfer(addr, 1, nftAssetId)], nftAssetId) | |
447 | 447 | } | |
448 | 448 | ||
449 | 449 | ||
450 | 450 | func bonusByDescription (descr) = if (!(contains(descr, "\"bonusType\": \"FarmPower\""))) | |
451 | 451 | then throw(("NFT is not supported: " + descr)) | |
452 | 452 | else { | |
453 | 453 | let bonusStr = split_4C(split_4C(descr, "\"bonus\":")[1], ",")[0] | |
454 | 454 | parseIntValue(drop(bonusStr, (valueOrElse(lastIndexOf(bonusStr, " "), -1) + 1))) | |
455 | 455 | } | |
456 | 456 | ||
457 | 457 | ||
458 | 458 | func rarityIdxByDescriprion (descr) = if (!(contains(descr, "\"rare\""))) | |
459 | 459 | then throw(("NFT is not supported: " + descr)) | |
460 | 460 | else { | |
461 | 461 | let rarityStr = split_4C(split_4C(split_4C(descr, "\"rare\"")[1], ",")[0], "\"")[1] | |
462 | 462 | value(indexOf(rarityNames, rarityStr)) | |
463 | 463 | } | |
464 | 464 | ||
465 | 465 | ||
466 | 466 | func stakeUnstakeAcresInternal (amt,address,bonusDelta) = if (if ((amt == 0)) | |
467 | 467 | then (bonusDelta == 0) | |
468 | 468 | else false) | |
469 | 469 | then throw("Nothing to do") | |
470 | 470 | else { | |
471 | 471 | let wlgResult = invoke(wlgContract, "onStakeUnstakeLand", [address], nil) | |
472 | 472 | if ((wlgResult == wlgResult)) | |
473 | 473 | then { | |
474 | 474 | let now = lastBlock.timestamp | |
475 | 475 | let timeKey = keyAcresStakedTimeByUser(address) | |
476 | 476 | let amountKey = keyAcresStakedAmtByUser(address) | |
477 | 477 | let oldAcresAmount = valueOrElse(getInteger(amountKey), 0) | |
478 | 478 | if (if ((0 > amt)) | |
479 | 479 | then (0 > (oldAcresAmount + amt)) | |
480 | 480 | else false) | |
481 | 481 | then throw(((("You have only " + fixedPoint(oldAcresAmount, 8)) + " ACRES staked, tried to unstake ") + fixedPoint(-(amt), 8))) | |
482 | 482 | else { | |
483 | 483 | let newAcresAmount = (oldAcresAmount + amt) | |
484 | 484 | let oldTotal = valueOrElse(getInteger(acresStakdTotalKey), 0) | |
485 | 485 | let userFpKey = keyFarmingPowerByUser(address) | |
486 | 486 | let oldFp = valueOrElse(getInteger(userFpKey), 0) | |
487 | 487 | let bonusKey = keyUserFullBonus(address) | |
488 | 488 | let oldBonus = valueOrElse(getInteger(acres2Contract, bonusKey), 0) | |
489 | 489 | if (if ((0 > bonusDelta)) | |
490 | 490 | then (0 > (oldBonus + bonusDelta)) | |
491 | 491 | else false) | |
492 | 492 | then throw((((("You have only " + fixedPoint(oldBonus, 4)) + "% bonus, and tried to unstake ") + fixedPoint(-(bonusDelta), 4)) + "%")) | |
493 | 493 | else { | |
494 | 494 | let $t066316730 = getFarmingPowerByAcresAndBonus(newAcresAmount, (oldBonus + bonusDelta)) | |
495 | 495 | let newBonusedFp = $t066316730._1 | |
496 | 496 | let ignored = $t066316730._2 | |
497 | 497 | let oldTotalFp = valueOrElse(getInteger(totalFarmingPowerKey), 0) | |
498 | 498 | let acresActions = if ((amt == 0)) | |
499 | 499 | then nil | |
500 | 500 | else [IntegerEntry(amountKey, newAcresAmount), IntegerEntry(acresStakdTotalKey, (oldTotal + amt))] | |
501 | 501 | let bonusActions = if ((bonusDelta == 0)) | |
502 | 502 | then nil | |
503 | 503 | else [IntegerEntry(bonusKey, (oldBonus + bonusDelta))] | |
504 | 504 | $Tuple2(((((acresActions ++ bonusActions) :+ IntegerEntry(timeKey, lastBlock.timestamp)) :+ IntegerEntry(userFpKey, newBonusedFp)) :+ IntegerEntry(totalFarmingPowerKey, ((oldTotalFp + newBonusedFp) - oldFp))), wlgResult) | |
505 | 505 | } | |
506 | 506 | } | |
507 | 507 | } | |
508 | 508 | else throw("Strict value is not equal to itself.") | |
509 | 509 | } | |
510 | 510 | ||
511 | 511 | ||
512 | 512 | func getWlgPrice (usdtBalanceCorrection) = { | |
513 | 513 | let issuedAmount = valueOrErrorMessage(getInteger(wlgContract, wlgIssuedAmtKey), "WLGOLD is not issued yet") | |
514 | 514 | let wlgUsd = assetBalance(wlgContract, usdtAssetId) | |
515 | 515 | let acres2Usd = (assetBalance(acres2Contract, usdtAssetId) - usdtBalanceCorrection) | |
516 | 516 | let investFundTotal = (assetBalance(investFundContract, usdtAssetId) + valueOrElse(getInteger(investFundContract, zbIssuedAmtKey), 0)) | |
517 | 517 | let totalFundsUsd = ((acres2Usd + wlgUsd) + investFundTotal) | |
518 | 518 | fraction(totalFundsUsd, MULT8, issuedAmount) | |
519 | 519 | } | |
520 | 520 | ||
521 | 521 | ||
522 | 522 | func getSwapLimitAcres () = { | |
523 | 523 | let wlgUsd = assetBalance(wlgContract, usdtAssetId) | |
524 | 524 | let acres2Usd = assetBalance(this, usdtAssetId) | |
525 | 525 | let investFundTotal = (assetBalance(investFundContract, usdtAssetId) + valueOrElse(getInteger(investFundContract, zbIssuedAmtKey), 0)) | |
526 | 526 | let defaultLimit = (((acres2Usd + wlgUsd) + investFundTotal) / ONE_PERCENT_DIVISOR) | |
527 | 527 | let lastLimitLeft = valueOrElse(getInteger(keyLastLimitLeft), defaultLimit) | |
528 | 528 | let lastTime = valueOrElse(getInteger(keyLastAcresSellTime), 0) | |
529 | 529 | let now = lastBlock.timestamp | |
530 | 530 | let currentLimit = (lastLimitLeft + fraction(defaultLimit, (now - lastTime), DAY_MILLIS)) | |
531 | 531 | let limitLeftUsdt = min([currentLimit, defaultLimit]) | |
532 | 532 | $Tuple2(IntegerEntry(keyLastAcresSellTime, now), limitLeftUsdt) | |
533 | 533 | } | |
534 | 534 | ||
535 | 535 | ||
536 | 536 | let arkOracle = addressFromStringValue("3PJgZ6AK1WVCpdCmEZpesHmaKvrQDdXG5og") | |
537 | 537 | ||
538 | 538 | let incubator = valueOrElse(getString(arkOracle, "static_incubatorAddress"), "") | |
539 | 539 | ||
540 | 540 | let breeder = valueOrElse(getString(arkOracle, "static_breederAddress"), "") | |
541 | 541 | ||
542 | 542 | let turtleIncubator = valueOrElse(getString(arkOracle, "static_turtleIncubatorAddress"), "") | |
543 | 543 | ||
544 | 544 | let turtleBreeder = valueOrElse(getString(arkOracle, "static_turtleBreederAddress"), "") | |
545 | 545 | ||
546 | 546 | let canineIncubator = valueOrElse(getString(arkOracle, "static_canineIncubatorAddress"), "") | |
547 | 547 | ||
548 | 548 | let canineBreeder = valueOrElse(getString(arkOracle, "static_canineBreederAddress"), "") | |
549 | 549 | ||
550 | 550 | let felineIncubator = valueOrElse(getString(arkOracle, "static_felineIncubatorAddress"), "") | |
551 | 551 | ||
552 | 552 | let felineBreeder = valueOrElse(getString(arkOracle, "static_felineBreederAddress"), "") | |
553 | 553 | ||
554 | 554 | let mutantBreeder = valueOrElse(getString(arkOracle, "static_mutantIncubatorAddress"), "") | |
555 | 555 | ||
556 | 556 | func isArkimalIssued (nfo) = { | |
557 | 557 | let issuer = toString(nfo.issuer) | |
558 | 558 | if (if (if (if (if (if (if (if (if (if ((chain == base58'2T')) | |
559 | 559 | then (issuer == oldStakingContractStr) | |
560 | 560 | else false) | |
561 | 561 | then true | |
562 | 562 | else (issuer == incubator)) | |
563 | 563 | then true | |
564 | 564 | else (issuer == breeder)) | |
565 | 565 | then true | |
566 | 566 | else (issuer == turtleIncubator)) | |
567 | 567 | then true | |
568 | 568 | else (issuer == turtleBreeder)) | |
569 | 569 | then true | |
570 | 570 | else (issuer == canineIncubator)) | |
571 | 571 | then true | |
572 | 572 | else (issuer == canineBreeder)) | |
573 | 573 | then true | |
574 | 574 | else (issuer == felineIncubator)) | |
575 | 575 | then true | |
576 | 576 | else (issuer == felineBreeder)) | |
577 | 577 | then nfo.name | |
578 | 578 | else if ((issuer == mutantBreeder)) | |
579 | 579 | then nfo.description | |
580 | 580 | else "" | |
581 | 581 | } | |
582 | 582 | ||
583 | 583 | ||
584 | 584 | func stakeNftInternal (addr,assetIdStr,bonus6,userNumKey,totalNumKey,limit) = { | |
585 | 585 | let nftNumber = valueOrElse(getInteger(userNumKey), 0) | |
586 | 586 | if ((nftNumber >= limit)) | |
587 | 587 | then throw((("You can stake max " + toString(limit)) + " of such NFTs")) | |
588 | 588 | else { | |
589 | 589 | let $t01100911085 = stakeUnstakeAcresInternal(0, addr, bonus6) | |
590 | 590 | let actions = $t01100911085._1 | |
591 | 591 | let wlgClaimedAmount = $t01100911085._2 | |
592 | 592 | $Tuple2((((actions :+ IntegerEntry(userNumKey, (nftNumber + 1))) :+ IntegerEntry(totalNumKey, (valueOrElse(getInteger(totalNumKey), 0) + 1))) :+ IntegerEntry(keyStakedTimeByAssetIdAndOwner(assetIdStr, addr), lastBlock.timestamp)), wlgClaimedAmount) | |
593 | 593 | } | |
594 | 594 | } | |
595 | 595 | ||
596 | 596 | ||
597 | + | func processPromo (address,amt,shouldCleanPromo) = if (if ((height >= DAILY_PROMO_START_BLOCK)) | |
598 | + | then (DAILY_PROMO_END_BLOCK > height) | |
599 | + | else false) | |
600 | + | then { | |
601 | + | let promoAcresKey = keyUserPromoAcres(address) | |
602 | + | let promoAcres = ((if (shouldCleanPromo) | |
603 | + | then 0 | |
604 | + | else valueOrElse(getInteger(promoAcresKey), 0)) + amt) | |
605 | + | let tickets = (promoAcres / MULT8) | |
606 | + | let ticketsKey = keyUserPromoTickets(address) | |
607 | + | let deltaTickets = (tickets - valueOrElse(getInteger(ticketsKey), 0)) | |
608 | + | let totalTickets = (valueOrElse(getInteger(keyTotalPromoTickets), 0) + deltaTickets) | |
609 | + | if (if (shouldCleanPromo) | |
610 | + | then true | |
611 | + | else (deltaTickets > 0)) | |
612 | + | then { | |
613 | + | let promoMap = valueOrElse(getString(keyPromoMap), "") | |
614 | + | let userRecord = ((address + ":") + padL(tickets, 3)) | |
615 | + | let newMap = if (contains(promoMap, address)) | |
616 | + | then { | |
617 | + | let mapParts = split_51C(promoMap, address) | |
618 | + | if ((mapParts[0] == "")) | |
619 | + | then { | |
620 | + | let r = drop(mapParts[1], 4) | |
621 | + | if ((r == "")) | |
622 | + | then if ((tickets == 0)) | |
623 | + | then "" | |
624 | + | else userRecord | |
625 | + | else if ((tickets == 0)) | |
626 | + | then drop(r, 1) | |
627 | + | else (userRecord + r) | |
628 | + | } | |
629 | + | else { | |
630 | + | let r = drop(mapParts[1], 4) | |
631 | + | if ((r == "")) | |
632 | + | then if ((tickets == 0)) | |
633 | + | then dropRight(mapParts[0], 1) | |
634 | + | else (mapParts[0] + userRecord) | |
635 | + | else if ((tickets == 0)) | |
636 | + | then (mapParts[0] + drop(r, 1)) | |
637 | + | else ((mapParts[0] + userRecord) + r) | |
638 | + | } | |
639 | + | } | |
640 | + | else if ((tickets == 0)) | |
641 | + | then promoMap | |
642 | + | else if ((promoMap == "")) | |
643 | + | then userRecord | |
644 | + | else ((promoMap + "_") + userRecord) | |
645 | + | [IntegerEntry(promoAcresKey, promoAcres), IntegerEntry(ticketsKey, tickets), IntegerEntry(keyTotalPromoTickets, totalTickets), StringEntry(keyPromoMap, newMap)] | |
646 | + | } | |
647 | + | else [IntegerEntry(promoAcresKey, promoAcres)] | |
648 | + | } | |
649 | + | else nil | |
650 | + | ||
651 | + | ||
597 | 652 | func stakeAcresForInternal (address,amt,shouldCleanPromo) = { | |
598 | - | let $t01142011496 = stakeUnstakeAcresInternal(amt, address, 0) | |
599 | - | let actions = $t01142011496._1 | |
600 | - | let wlgClaimedAmount = $t01142011496._2 | |
601 | - | let promoActions = if (if ((height >= DAILY_PROMO_START_BLOCK)) | |
602 | - | then (DAILY_PROMO_END_BLOCK > height) | |
603 | - | else false) | |
604 | - | then { | |
605 | - | let promoAcresKey = keyUserPromoAcres(address) | |
606 | - | let promoAcres = ((if (shouldCleanPromo) | |
607 | - | then 0 | |
608 | - | else valueOrElse(getInteger(promoAcresKey), 0)) + amt) | |
609 | - | let tickets = (promoAcres / MULT8) | |
610 | - | let ticketsKey = keyUserPromoTickets(address) | |
611 | - | let deltaTickets = (tickets - valueOrElse(getInteger(ticketsKey), 0)) | |
612 | - | let totalTickets = (valueOrElse(getInteger(keyTotalPromoTickets), 0) + deltaTickets) | |
613 | - | if (if (shouldCleanPromo) | |
614 | - | then true | |
615 | - | else (deltaTickets > 0)) | |
616 | - | then { | |
617 | - | let promoMap = valueOrElse(getString(keyPromoMap), "") | |
618 | - | let userRecord = ((address + ":") + padL(tickets, 3)) | |
619 | - | let newMap = if (contains(promoMap, address)) | |
620 | - | then { | |
621 | - | let mapParts = split_51C(promoMap, address) | |
622 | - | if ((mapParts[0] == "")) | |
623 | - | then { | |
624 | - | let r = drop(mapParts[1], 4) | |
625 | - | if ((r == "")) | |
626 | - | then if ((tickets == 0)) | |
627 | - | then "" | |
628 | - | else userRecord | |
629 | - | else if ((tickets == 0)) | |
630 | - | then drop(r, 1) | |
631 | - | else (userRecord + r) | |
632 | - | } | |
633 | - | else { | |
634 | - | let r = drop(mapParts[1], 4) | |
635 | - | if ((r == "")) | |
636 | - | then if ((tickets == 0)) | |
637 | - | then dropRight(mapParts[0], 1) | |
638 | - | else (mapParts[0] + userRecord) | |
639 | - | else if ((tickets == 0)) | |
640 | - | then (mapParts[0] + drop(r, 1)) | |
641 | - | else ((mapParts[0] + userRecord) + r) | |
642 | - | } | |
643 | - | } | |
644 | - | else if ((tickets == 0)) | |
645 | - | then promoMap | |
646 | - | else if ((promoMap == "")) | |
647 | - | then userRecord | |
648 | - | else ((promoMap + "_") + userRecord) | |
649 | - | [IntegerEntry(promoAcresKey, promoAcres), IntegerEntry(ticketsKey, tickets), IntegerEntry(keyTotalPromoTickets, totalTickets), StringEntry(keyPromoMap, newMap)] | |
650 | - | } | |
651 | - | else [IntegerEntry(promoAcresKey, promoAcres)] | |
652 | - | } | |
653 | - | else nil | |
653 | + | let $t01395414030 = stakeUnstakeAcresInternal(amt, address, 0) | |
654 | + | let actions = $t01395414030._1 | |
655 | + | let wlgClaimedAmount = $t01395414030._2 | |
656 | + | let promoActions = processPromo(address, amt, shouldCleanPromo) | |
654 | 657 | $Tuple2((actions ++ promoActions), wlgClaimedAmount) | |
655 | 658 | } | |
656 | 659 | ||
657 | 660 | ||
658 | 661 | @Callable(i) | |
659 | 662 | func saveLastTx () = if (!(containsElement([wlgContract, marketContract], i.caller))) | |
660 | 663 | then throw("Access denied") | |
661 | 664 | else $Tuple2(prolog(i), 42) | |
662 | 665 | ||
663 | 666 | ||
664 | 667 | ||
665 | 668 | @Callable(i) | |
666 | 669 | func constructorV1 (rest2Addr,oldAcrContract) = if ((i.caller != this)) | |
667 | 670 | then throw("Permission denied") | |
668 | 671 | else { | |
669 | 672 | let oldAcrContAddr = addressFromStringValue(oldAcrContract) | |
670 | 673 | [IntegerEntry(acresIssuedAmountKey, getIntegerValue(oldAcrContAddr, acresIssuedAmountKey)), BinaryEntry(acresAssetIdKey, getBinaryValue(oldAcrContAddr, acresAssetIdKey)), StringEntry(keyRest2Address(), rest2Addr), StringEntry(oldAcresContractKey, oldAcrContract)] | |
671 | 674 | } | |
672 | 675 | ||
673 | 676 | ||
674 | 677 | ||
675 | 678 | @Callable(i) | |
676 | 679 | func setBlocked (isBlocked) = if ((i.caller != this)) | |
677 | 680 | then throw("permission denied") | |
678 | 681 | else [BooleanEntry(keyBlocked(), isBlocked)] | |
679 | 682 | ||
680 | 683 | ||
681 | 684 | ||
682 | 685 | @Callable(i) | |
683 | 686 | func unstakeAcres (amount) = { | |
684 | 687 | let prologActions = prolog(i) | |
685 | 688 | if (if ((height >= DAILY_PROMO_START_BLOCK)) | |
686 | 689 | then (DAILY_PROMO_END_BLOCK > height) | |
687 | 690 | else false) | |
688 | 691 | then throw("You can't unstake during Xmas promo period") | |
689 | 692 | else if ((0 >= amount)) | |
690 | 693 | then throw("Amount should be positive") | |
691 | 694 | else { | |
692 | 695 | let address = toString(i.caller) | |
693 | 696 | if ((size(i.payments) != 0)) | |
694 | 697 | then throw("No payments required") | |
695 | 698 | else { | |
696 | 699 | let arbReleaseTime = (valueOrElse(getInteger(wlgContract, keyLastWlgTradeTimeByUser(address)), 0) + arbitrageDelay) | |
697 | 700 | if ((arbReleaseTime > lastBlock.timestamp)) | |
698 | 701 | then throw(("You traded some WLGOLD, cannot unstake until " + toString(arbReleaseTime))) | |
699 | 702 | else { | |
700 | - | let $ | |
701 | - | let actions = $ | |
702 | - | let wlgClaimedAmount = $ | |
703 | + | let $t01562515705 = stakeUnstakeAcresInternal(-(amount), address, 0) | |
704 | + | let actions = $t01562515705._1 | |
705 | + | let wlgClaimedAmount = $t01562515705._2 | |
703 | 706 | $Tuple2(((actions :+ ScriptTransfer(i.caller, amount, acresAssetId)) ++ prologActions), wlgClaimedAmount) | |
704 | 707 | } | |
705 | 708 | } | |
706 | 709 | } | |
707 | 710 | } | |
708 | 711 | ||
709 | 712 | ||
710 | 713 | ||
711 | 714 | @Callable(i) | |
712 | 715 | func stakeAcres () = { | |
713 | 716 | let prologActions = prolog(i) | |
714 | 717 | let address = toString(i.caller) | |
715 | 718 | if ((size(i.payments) != 1)) | |
716 | 719 | then throw("exactly 1 payment must be attached") | |
717 | 720 | else { | |
718 | 721 | let pmt = i.payments[0] | |
719 | 722 | let amt = pmt.amount | |
720 | 723 | if (if (!(isDefined(pmt.assetId))) | |
721 | 724 | then true | |
722 | 725 | else (value(pmt.assetId) != acresAssetId)) | |
723 | 726 | then throw("ACRES payments only!") | |
724 | 727 | else { | |
725 | - | let $ | |
726 | - | let stakeActions = $ | |
727 | - | let wlgClaimedAmount = $ | |
728 | + | let $t01615616237 = stakeAcresForInternal(address, amt, false) | |
729 | + | let stakeActions = $t01615616237._1 | |
730 | + | let wlgClaimedAmount = $t01615616237._2 | |
728 | 731 | $Tuple2((stakeActions ++ prologActions), wlgClaimedAmount) | |
729 | 732 | } | |
730 | 733 | } | |
731 | 734 | } | |
732 | 735 | ||
733 | 736 | ||
734 | 737 | ||
735 | 738 | @Callable(i) | |
736 | 739 | func stakeAcresFor (address,amt,shouldCleanPromo) = if ((i.caller != this)) | |
737 | 740 | then throw("Permission denied") | |
738 | 741 | else stakeAcresForInternal(address, amt, shouldCleanPromo) | |
739 | 742 | ||
740 | 743 | ||
741 | 744 | ||
742 | 745 | @Callable(i) | |
743 | 746 | func buyAcres () = { | |
744 | 747 | let prologActions = prolog(i) | |
745 | 748 | if ((size(i.payments) != 1)) | |
746 | 749 | then throw("exactly 1 payment must be attached") | |
747 | 750 | else { | |
748 | 751 | let pmt = i.payments[0] | |
749 | 752 | let usdtAmount = pmt.amount | |
750 | 753 | if (if (!(isDefined(pmt.assetId))) | |
751 | 754 | then true | |
752 | 755 | else (value(pmt.assetId) != usdtAssetId)) | |
753 | 756 | then throw("USDT payments only!") | |
754 | 757 | else if ((MULT6 > usdtAmount)) | |
755 | 758 | then throw((("Min payment should be " + fixedPoint(MULT6, 6)) + " USDT")) | |
756 | 759 | else { | |
757 | 760 | let acresAmount = (usdtAmount * USDT2ACRES_MULTIPLIER) | |
758 | 761 | let wlgAmount = fraction(usdtAmount, MULT8, getWlgPrice(usdtAmount)) | |
759 | 762 | let oldAcresAddress = addressFromStringValue(getStringValue(oldAcresContractKey)) | |
760 | 763 | let req = invoke(oldAcresAddress, "requestAcresCallback", [acresAmount], nil) | |
761 | 764 | if ((req == req)) | |
762 | 765 | then { | |
763 | 766 | let wlgRemain = asInt(invoke(wlgContract, "burnWlgold", [wlgAmount], nil)) | |
764 | 767 | $Tuple2(([ScriptTransfer(i.caller, acresAmount, acresAssetId)] ++ prologActions), wlgRemain) | |
765 | 768 | } | |
766 | 769 | else throw("Strict value is not equal to itself.") | |
767 | 770 | } | |
768 | 771 | } | |
769 | 772 | } | |
770 | 773 | ||
771 | 774 | ||
772 | 775 | ||
773 | 776 | @Callable(i) | |
774 | 777 | func buyAcresREADONLY (usdtAmount) = { | |
775 | 778 | let acresAmount = (usdtAmount * USDT2ACRES_MULTIPLIER) | |
776 | 779 | let wlgToBurn = fraction(usdtAmount, MULT8, getWlgPrice(usdtAmount)) | |
777 | 780 | $Tuple2(nil, [acresAmount, MULT6, acresAmount, wlgToBurn]) | |
778 | 781 | } | |
779 | 782 | ||
780 | 783 | ||
781 | 784 | ||
782 | 785 | @Callable(i) | |
783 | 786 | func sellAcres () = { | |
784 | 787 | let prologActions = prolog(i) | |
785 | 788 | if ((size(i.payments) != 1)) | |
786 | 789 | then throw("exactly 1 payment must be attached") | |
787 | 790 | else { | |
788 | 791 | let pmt = i.payments[0] | |
789 | 792 | let acresAmount = pmt.amount | |
790 | 793 | if (if (!(isDefined(pmt.assetId))) | |
791 | 794 | then true | |
792 | 795 | else (value(pmt.assetId) != acresAssetId)) | |
793 | 796 | then throw("ACRES payments only!") | |
794 | 797 | else if ((MULT7 > acresAmount)) | |
795 | 798 | then throw((("Min payment should be " + fixedPoint(MULT7, 8)) + " ACRES")) | |
796 | 799 | else { | |
797 | 800 | let addr = toString(i.caller) | |
798 | - | let $ | |
799 | - | let limitAction = $ | |
800 | - | let maxUsdt = $ | |
801 | + | let $t01830918357 = getSwapLimitAcres() | |
802 | + | let limitAction = $t01830918357._1 | |
803 | + | let maxUsdt = $t01830918357._2 | |
801 | 804 | let maxAcres = (maxUsdt * USDT2ACRES_MULTIPLIER) | |
802 | 805 | if ((acresAmount > maxAcres)) | |
803 | 806 | then throw((("You can sell max " + fixedPoint(maxAcres, 8)) + " ACRES")) | |
804 | 807 | else { | |
805 | 808 | let usdtAmount = ((acresAmount / USDT2ACRES_MULTIPLIER) / 2) | |
806 | 809 | $Tuple2(([limitAction, IntegerEntry(keyLastLimitLeft, (maxUsdt - usdtAmount)), ScriptTransfer(i.caller, usdtAmount, usdtAssetId)] ++ prologActions), usdtAmount) | |
807 | 810 | } | |
808 | 811 | } | |
809 | 812 | } | |
810 | 813 | } | |
811 | 814 | ||
812 | 815 | ||
813 | 816 | ||
814 | 817 | @Callable(i) | |
815 | 818 | func sellAcresREADONLY (address,acresAmount) = { | |
816 | - | let $ | |
817 | - | let limitAction = $ | |
818 | - | let maxUsdt = $ | |
819 | + | let $t01885318901 = getSwapLimitAcres() | |
820 | + | let limitAction = $t01885318901._1 | |
821 | + | let maxUsdt = $t01885318901._2 | |
819 | 822 | let usdtAmount = ((acresAmount / USDT2ACRES_MULTIPLIER) / 2) | |
820 | 823 | $Tuple2(nil, [usdtAmount, MULT7, (maxUsdt * USDT2ACRES_MULTIPLIER), 0]) | |
821 | 824 | } | |
822 | 825 | ||
823 | 826 | ||
824 | 827 | ||
825 | 828 | @Callable(i) | |
826 | 829 | func convertOldStakes () = { | |
827 | 830 | let prologActions = prolog(i) | |
828 | 831 | if ((OLD_STAKING_DEADL > lastBlock.timestamp)) | |
829 | 832 | then throw(("Disabled until " + toString((OLD_STAKING_DEADL / 1000)))) | |
830 | 833 | else { | |
831 | 834 | let address = toString(i.caller) | |
832 | 835 | if ((size(i.payments) != 0)) | |
833 | 836 | then throw("No payments required") | |
834 | 837 | else { | |
835 | 838 | let oldAcresAddress = addressFromStringValue(getStringValue(oldAcresContractKey)) | |
836 | 839 | let amount = valueOrElse(getInteger(oldAcresAddress, keyAcresStakedAmtByUser(address)), 0) | |
837 | 840 | let gotAcres0 = if ((amount > 0)) | |
838 | 841 | then asTuple2Ints(invoke(oldAcresAddress, "unstakeAcresCallback", [amount, address], nil)) | |
839 | 842 | else $Tuple2(0, 0) | |
840 | 843 | let oldStakingAddress = addressFromStringValue(oldStakingContractStr) | |
841 | 844 | let landsStr = getString(oldStakingAddress, keyStakedLandsByOwner(address)) | |
842 | 845 | let landsResult = if (isDefined(landsStr)) | |
843 | 846 | then { | |
844 | 847 | let lands = split_51C(value(landsStr), "_") | |
845 | 848 | if ((size(lands) > MAX_LANDS_TO_CONVERT)) | |
846 | 849 | then throw((("You have more than " + toString(MAX_LANDS_TO_CONVERT)) + " lands staked, please contact support, we'll process your case manually")) | |
847 | 850 | else { | |
848 | 851 | func oneLand (acc,landAssetId) = if ((landAssetId == "")) | |
849 | 852 | then throw("landAssetId is required") | |
850 | 853 | else { | |
851 | 854 | let r = asTuple5Ints(invoke(oldStakingAddress, "unstakeLandCallback", [landAssetId, address], nil)) | |
852 | 855 | if ((r == r)) | |
853 | 856 | then $Tuple5((acc._1 + r._1), (acc._2 + r._2), (acc._3 + r._3), (acc._4 + r._4), (acc._5 + r._5)) | |
854 | 857 | else throw("Strict value is not equal to itself.") | |
855 | 858 | } | |
856 | 859 | ||
857 | 860 | let rr = { | |
858 | 861 | let $l = lands | |
859 | 862 | let $s = size($l) | |
860 | 863 | let $acc0 = $Tuple5(0, 0, 0, 0, 0) | |
861 | 864 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
862 | 865 | then $a | |
863 | 866 | else oneLand($a, $l[$i]) | |
864 | 867 | ||
865 | 868 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
866 | 869 | then $a | |
867 | 870 | else throw("List size exceeds 14") | |
868 | 871 | ||
869 | 872 | $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($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14) | |
870 | 873 | } | |
871 | 874 | if ((rr == rr)) | |
872 | 875 | then { | |
873 | 876 | let finalize = invoke(oldStakingAddress, "unstakeLandsFinalizeCallback", [address], nil) | |
874 | 877 | if ((finalize == finalize)) | |
875 | 878 | then { | |
876 | 879 | let req = invoke(oldAcresAddress, "requestAcresCallback", [(((rr._1 + rr._2) + rr._3) + rr._4)], nil) | |
877 | 880 | if ((req == req)) | |
878 | 881 | then { | |
879 | - | let $ | |
880 | - | let nftActions = $ | |
881 | - | let nftAssetId = $ | |
882 | + | let $t02141521554 = issueNftCustom(idxNameShovel, idxKeySP, idxCollDig, idxRarityP, 3, idxDescrShovel, idxBonusTypeFp, i.caller) | |
883 | + | let nftActions = $t02141521554._1 | |
884 | + | let nftAssetId = $t02141521554._2 | |
882 | 885 | $Tuple6(rr._1, rr._2, rr._3, rr._4, rr._5, nftActions) | |
883 | 886 | } | |
884 | 887 | else throw("Strict value is not equal to itself.") | |
885 | 888 | } | |
886 | 889 | else throw("Strict value is not equal to itself.") | |
887 | 890 | } | |
888 | 891 | else throw("Strict value is not equal to itself.") | |
889 | 892 | } | |
890 | 893 | } | |
891 | 894 | else $Tuple6(0, 0, 0, 0, 0, nil) | |
892 | 895 | let duckAssetId = valueOrElse(getString(oldStakingAddress, keyStakedDuckByOwner(address)), "") | |
893 | 896 | let duckResult = if ((duckAssetId != "")) | |
894 | 897 | then asTuple3Ints(invoke(oldStakingAddress, "unstakeDuckCallback", [duckAssetId, address], nil)) | |
895 | 898 | else $Tuple3(0, 0, 0) | |
896 | 899 | let x = stakeUnstakeAcresInternal((((((((gotAcres0._1 + landsResult._1) + landsResult._2) + landsResult._3) + landsResult._4) + duckResult._1) + duckResult._2) + duckResult._3), address, 0) | |
897 | 900 | $Tuple2(((landsResult._6 ++ x._1) ++ prologActions), $Tuple3(gotAcres0._2, landsResult._5, x._2)) | |
898 | 901 | } | |
899 | 902 | } | |
900 | 903 | } | |
901 | 904 | ||
902 | 905 | ||
903 | 906 | ||
904 | 907 | @Callable(i) | |
905 | 908 | func unstakeLandsREADONLY (address) = { | |
906 | 909 | let oldStakingAddress = addressFromStringValue(oldStakingContractStr) | |
907 | 910 | let landsStr = getString(oldStakingAddress, keyStakedLandsByOwner(address)) | |
908 | 911 | let landsResult = if (isDefined(landsStr)) | |
909 | 912 | then { | |
910 | 913 | let lands = split_51C(value(landsStr), "_") | |
911 | 914 | func oneLand (acc,landAssetId) = if ((landAssetId == "")) | |
912 | 915 | then throw("landAssetId is required") | |
913 | 916 | else { | |
914 | 917 | let r = asTuple4Ints(invoke(oldStakingAddress, "unstakeLandREADONLY", [landAssetId, address], nil)) | |
915 | 918 | $Tuple4((acc._1 + r._1), (acc._2 + r._2), (acc._3 + r._3), (acc._4 + r._4)) | |
916 | 919 | } | |
917 | 920 | ||
918 | 921 | let $l = lands | |
919 | 922 | let $s = size($l) | |
920 | 923 | let $acc0 = $Tuple4(0, 0, 0, 0) | |
921 | 924 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
922 | 925 | then $a | |
923 | 926 | else oneLand($a, $l[$i]) | |
924 | 927 | ||
925 | 928 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
926 | 929 | then $a | |
927 | 930 | else throw("List size exceeds 100") | |
928 | 931 | ||
929 | 932 | $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($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($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($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($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), 21), 22), 23), 24), 25), 26), 27), 28), 29), 30), 31), 32), 33), 34), 35), 36), 37), 38), 39), 40), 41), 42), 43), 44), 45), 46), 47), 48), 49), 50), 51), 52), 53), 54), 55), 56), 57), 58), 59), 60), 61), 62), 63), 64), 65), 66), 67), 68), 69), 70), 71), 72), 73), 74), 75), 76), 77), 78), 79), 80), 81), 82), 83), 84), 85), 86), 87), 88), 89), 90), 91), 92), 93), 94), 95), 96), 97), 98), 99), 100) | |
930 | 933 | } | |
931 | 934 | else $Tuple4(0, 0, 0, 0) | |
932 | 935 | $Tuple2(nil, landsResult) | |
933 | 936 | } | |
934 | 937 | ||
935 | 938 | ||
936 | 939 | ||
937 | 940 | @Callable(i) | |
938 | 941 | func stakeAcresCallback (addr) = if ((i.caller != addressFromStringValue(oldStakingContractStr))) | |
939 | 942 | then throw("Permission denied") | |
940 | 943 | else stakeUnstakeAcresInternal(i.payments[0].amount, addr, 0) | |
941 | 944 | ||
942 | 945 | ||
943 | 946 | ||
944 | 947 | @Callable(i) | |
945 | 948 | func simulateStakeAcresREADONLY (address,addedAmount) = { | |
946 | 949 | let amountKey = keyAcresStakedAmtByUser(address) | |
947 | 950 | let newAcresAmount = (valueOrElse(getInteger(amountKey), 0) + addedAmount) | |
948 | 951 | let oldTotal = valueOrElse(getInteger(acresStakdTotalKey), 0) | |
949 | 952 | let userFpKey = keyFarmingPowerByUser(address) | |
950 | 953 | let oldFp = valueOrElse(getInteger(userFpKey), 0) | |
951 | 954 | let userBonus = valueOrElse(getInteger(acres2Contract, keyUserFullBonus(address)), 0) | |
952 | - | let $ | |
953 | - | let newBonusedFp = $ | |
954 | - | let ignored = $ | |
955 | + | let $t02382523912 = getFarmingPowerByAcresAndBonus(newAcresAmount, userBonus) | |
956 | + | let newBonusedFp = $t02382523912._1 | |
957 | + | let ignored = $t02382523912._2 | |
955 | 958 | let oldTotalFp = valueOrElse(getInteger(totalFarmingPowerKey), 0) | |
956 | 959 | let newTotalFp = ((oldTotalFp + newBonusedFp) - oldFp) | |
957 | 960 | $Tuple2(nil, [oldFp, newBonusedFp, oldTotalFp, newTotalFp]) | |
958 | 961 | } | |
959 | 962 | ||
960 | 963 | ||
961 | 964 | ||
962 | 965 | @Callable(i) | |
963 | 966 | func issuePickC1 (forAddress) = if ((i.caller != wlgContract)) | |
964 | 967 | then throw("Permission denied") | |
965 | 968 | else issueNftCustom(idxNamePickaxe, idxKeyC, idxCollDig, idxRarityC, 1, idxDescrPickaxe, idxBonusTypeFp, addressFromStringValue(forAddress)) | |
966 | 969 | ||
967 | 970 | ||
968 | 971 | ||
969 | 972 | @Callable(i) | |
970 | - | func issueMittenP (forAddress) = if ((i.caller != this)) | |
973 | + | func issueMittenP (forAddress,shouldCleanPromo) = if ((i.caller != this)) | |
971 | 974 | then throw("Permission denied") | |
972 | - | else issueNftCustom(idxNameMitten, idxKeyMP, idxCollNewYear, idxRarityP, 3, idxDescrMitten, idxBonusTypeFp, addressFromStringValue(forAddress)) | |
975 | + | else { | |
976 | + | let $t02452824698 = issueNftCustom(idxNameMitten, idxKeyMP, idxCollNewYear, idxRarityP, 3, idxDescrMitten, idxBonusTypeFp, addressFromStringValue(forAddress)) | |
977 | + | let nftActions = $t02452824698._1 | |
978 | + | let nftAssetId = $t02452824698._2 | |
979 | + | let promoActions = processPromo(forAddress, 0, shouldCleanPromo) | |
980 | + | $Tuple2((nftActions ++ promoActions), nftAssetId) | |
981 | + | } | |
973 | 982 | ||
974 | 983 | ||
975 | 984 | ||
976 | 985 | @Callable(i) | |
977 | 986 | func stakeNFT () = { | |
978 | 987 | let prologActions = prolog(i) | |
979 | 988 | if ((size(i.payments) != 1)) | |
980 | 989 | then throw("Exactly one payment required") | |
981 | 990 | else { | |
982 | 991 | let pmt = value(i.payments[0]) | |
983 | 992 | if ((pmt.amount != 1)) | |
984 | 993 | then throw("NFT token should be attached as payment") | |
985 | 994 | else { | |
986 | 995 | let assetId = value(pmt.assetId) | |
987 | 996 | let asset = value(assetInfo(assetId)) | |
988 | 997 | let assetIdStr = toBase58String(assetId) | |
989 | 998 | let addr = toString(i.caller) | |
990 | 999 | let nftsKey = keyStakedNFTsByOwner(addr) | |
991 | 1000 | let nftsStr = getString(nftsKey) | |
992 | 1001 | let nfts = if (isDefined(nftsStr)) | |
993 | 1002 | then split_4C(value(nftsStr), "_") | |
994 | 1003 | else nil | |
995 | 1004 | if (containsElement(nfts, assetIdStr)) | |
996 | 1005 | then throw(("Your staked NFTs already contain " + assetIdStr)) | |
997 | 1006 | else if ((size(nfts) >= MAX_NFTS_STAKED_BY_USER)) | |
998 | 1007 | then throw((("Your already staked max (" + toString(MAX_NFTS_STAKED_BY_USER)) + ") NFTs")) | |
999 | 1008 | else { | |
1000 | 1009 | let listAction = StringEntry(nftsKey, makeString_2C((nfts :+ assetIdStr), "_")) | |
1001 | 1010 | if ((asset.issuer == this)) | |
1002 | 1011 | then { | |
1003 | - | let $ | |
1004 | - | let actions = $ | |
1005 | - | let wlgClaimedAmount = $ | |
1012 | + | let $t02575025940 = stakeNftInternal(addr, assetIdStr, (bonusByDescription(value(asset.description)) * 10000), keyUserWlNftNumber(addr), keyWlNftTotalStaked, MAX_WL_NFTS) | |
1013 | + | let actions = $t02575025940._1 | |
1014 | + | let wlgClaimedAmount = $t02575025940._2 | |
1006 | 1015 | $Tuple2(((prologActions ++ actions) :+ listAction), wlgClaimedAmount) | |
1007 | 1016 | } | |
1008 | 1017 | else if ((isArkimalIssued(asset) == "")) | |
1009 | 1018 | then throw("Only WavesLands and Arkimals NFT tokens are accepted") | |
1010 | 1019 | else { | |
1011 | - | let $ | |
1012 | - | let actions = $ | |
1013 | - | let wlgClaimedAmount = $ | |
1020 | + | let $t02612126272 = stakeNftInternal(addr, assetIdStr, ARK_NFT_BONUS, keyUserArkNftNumber(addr), keyArkNftTotalStaked, MAX_ARK_NFTS) | |
1021 | + | let actions = $t02612126272._1 | |
1022 | + | let wlgClaimedAmount = $t02612126272._2 | |
1014 | 1023 | $Tuple2(((prologActions ++ actions) :+ listAction), wlgClaimedAmount) | |
1015 | 1024 | } | |
1016 | 1025 | } | |
1017 | 1026 | } | |
1018 | 1027 | } | |
1019 | 1028 | } | |
1020 | 1029 | ||
1021 | 1030 | ||
1022 | 1031 | ||
1023 | 1032 | @Callable(i) | |
1024 | 1033 | func unstakeNFT (assetIdStr) = { | |
1025 | 1034 | let prologActions = prolog(i) | |
1026 | 1035 | if ((size(i.payments) != 0)) | |
1027 | 1036 | then throw("No payments required") | |
1028 | 1037 | else { | |
1029 | 1038 | let assetId = fromBase58String(assetIdStr) | |
1030 | 1039 | let addr = toString(i.caller) | |
1031 | 1040 | let asset = value(assetInfo(assetId)) | |
1032 | 1041 | let timeKey = keyStakedTimeByAssetIdAndOwner(assetIdStr, addr) | |
1033 | 1042 | if (!(isDefined(getInteger(timeKey)))) | |
1034 | 1043 | then throw((("NFT " + asset.name) + " is not staked by you")) | |
1035 | 1044 | else { | |
1036 | 1045 | let nftsKey = keyStakedNFTsByOwner(addr) | |
1037 | 1046 | let nfts = split_4C(valueOrElse(getString(nftsKey), ""), "_") | |
1038 | 1047 | let idx = indexOf(nfts, assetIdStr) | |
1039 | 1048 | if (!(isDefined(idx))) | |
1040 | 1049 | then throw(("Your staked NFTs don't contain " + assetIdStr)) | |
1041 | 1050 | else { | |
1042 | 1051 | let listAction = if ((size(nfts) > 1)) | |
1043 | 1052 | then StringEntry(nftsKey, makeString_2C(removeByIndex(nfts, value(idx)), "_")) | |
1044 | 1053 | else DeleteEntry(nftsKey) | |
1045 | 1054 | let isWL = (asset.issuer == this) | |
1046 | 1055 | if (isWL) | |
1047 | 1056 | then { | |
1048 | 1057 | let wlNftNumber = valueOrElse(getInteger(keyUserWlNftNumber(addr)), 0) | |
1049 | 1058 | let bonusVal = (bonusByDescription(value(asset.description)) * 10000) | |
1050 | - | let $ | |
1051 | - | let actions = $ | |
1052 | - | let wlgClaimedAmount = $ | |
1059 | + | let $t02743727516 = stakeUnstakeAcresInternal(0, addr, -(bonusVal)) | |
1060 | + | let actions = $t02743727516._1 | |
1061 | + | let wlgClaimedAmount = $t02743727516._2 | |
1053 | 1062 | $Tuple2(((((((actions :+ listAction) :+ IntegerEntry(keyUserWlNftNumber(addr), (wlNftNumber - 1))) :+ IntegerEntry(keyWlNftTotalStaked, max([0, (valueOrElse(getInteger(keyWlNftTotalStaked), 0) - 1)]))) :+ DeleteEntry(keyStakedTimeByAssetIdAndOwner(toBase58String(assetId), addr))) :+ ScriptTransfer(i.caller, 1, assetId)) ++ prologActions), wlgClaimedAmount) | |
1054 | 1063 | } | |
1055 | 1064 | else { | |
1056 | 1065 | let arkimalName = isArkimalIssued(asset) | |
1057 | 1066 | if ((arkimalName == "")) | |
1058 | 1067 | then throw("Only WavesLands and Arkimals NFT tokens are accepted") | |
1059 | 1068 | else { | |
1060 | 1069 | let arkNftNumber = valueOrElse(getInteger(keyUserArkNftNumber(addr)), 0) | |
1061 | - | let $ | |
1062 | - | let actions = $ | |
1063 | - | let wlgClaimedAmount = $ | |
1070 | + | let $t02817628260 = stakeUnstakeAcresInternal(0, addr, -(ARK_NFT_BONUS)) | |
1071 | + | let actions = $t02817628260._1 | |
1072 | + | let wlgClaimedAmount = $t02817628260._2 | |
1064 | 1073 | $Tuple2((((((actions :+ listAction) :+ IntegerEntry(keyUserArkNftNumber(addr), (arkNftNumber - 1))) :+ DeleteEntry(keyStakedTimeByAssetIdAndOwner(toBase58String(assetId), addr))) :+ ScriptTransfer(i.caller, 1, assetId)) ++ prologActions), wlgClaimedAmount) | |
1065 | 1074 | } | |
1066 | 1075 | } | |
1067 | 1076 | } | |
1068 | 1077 | } | |
1069 | 1078 | } | |
1070 | 1079 | } | |
1071 | 1080 | ||
1072 | 1081 | ||
1073 | 1082 | ||
1074 | 1083 | @Callable(i) | |
1075 | 1084 | func exchangeNFTs () = if ((i.caller != this)) | |
1076 | 1085 | then throw("Temporary disabled") | |
1077 | 1086 | else { | |
1078 | 1087 | let prologActions = prolog(i) | |
1079 | 1088 | if ((3 > size(i.payments))) | |
1080 | 1089 | then throw("Min one WLGOLD and 2 NFT payments allowed") | |
1081 | 1090 | else if ((size(i.payments) > 10)) | |
1082 | 1091 | then throw("Max one WLGOLD and 9 NFT payments allowed") | |
1083 | 1092 | else { | |
1084 | 1093 | let addr = toString(i.caller) | |
1085 | 1094 | func addUp (acc,pmt) = { | |
1086 | 1095 | let assetId = valueOrErrorMessage(pmt.assetId, "WAVES payments not allowed") | |
1087 | 1096 | if ((assetId == wlgAssetId)) | |
1088 | 1097 | then $Tuple4((acc._1 + pmt.amount), acc._2, acc._3, acc._4) | |
1089 | 1098 | else { | |
1090 | 1099 | let asset = value(assetInfo(assetId)) | |
1091 | 1100 | if ((asset.issuer != this)) | |
1092 | 1101 | then throw("Only WL-issued NFTs allowed") | |
1093 | 1102 | else { | |
1094 | 1103 | let rarityIx = rarityIdxByDescriprion(value(asset.description)) | |
1095 | 1104 | if (if ((acc._4 > 0)) | |
1096 | 1105 | then (rarityIx != acc._4) | |
1097 | 1106 | else false) | |
1098 | 1107 | then throw("You can exchange only NFTs of the same rarity") | |
1099 | 1108 | else { | |
1100 | 1109 | let bonusPerc = bonusByDescription(value(asset.description)) | |
1101 | 1110 | $Tuple4(acc._1, (acc._2 + bonusPerc), (acc._3 :+ Burn(assetId, 1)), rarityIx) | |
1102 | 1111 | } | |
1103 | 1112 | } | |
1104 | 1113 | } | |
1105 | 1114 | } | |
1106 | 1115 | ||
1107 | - | let $ | |
1116 | + | let $t02971129927 = { | |
1108 | 1117 | let $l = i.payments | |
1109 | 1118 | let $s = size($l) | |
1110 | 1119 | let $acc0 = $Tuple4(0, 0, nil, -1) | |
1111 | 1120 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
1112 | 1121 | then $a | |
1113 | 1122 | else addUp($a, $l[$i]) | |
1114 | 1123 | ||
1115 | 1124 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
1116 | 1125 | then $a | |
1117 | 1126 | else throw("List size exceeds 10") | |
1118 | 1127 | ||
1119 | 1128 | $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) | |
1120 | 1129 | } | |
1121 | - | let wlgFee = $ | |
1122 | - | let totalBonus = $ | |
1123 | - | let burnActions = $ | |
1124 | - | let rarityIdx = $ | |
1130 | + | let wlgFee = $t02971129927._1 | |
1131 | + | let totalBonus = $t02971129927._2 | |
1132 | + | let burnActions = $t02971129927._3 | |
1133 | + | let rarityIdx = $t02971129927._4 | |
1125 | 1134 | let newRarityIdx = if ((rarityIdx == idxRarityC)) | |
1126 | 1135 | then if ((rarityThresholds[idxThresholdC] > totalBonus)) | |
1127 | 1136 | then idxRarityC | |
1128 | 1137 | else if ((rarityThresholds[idxThresholdU] > totalBonus)) | |
1129 | 1138 | then idxRarityU | |
1130 | 1139 | else throw((("You can advance only one level of rarity, max total bonus " + toString(rarityThresholds[idxThresholdU])) + "%")) | |
1131 | 1140 | else if ((rarityIdx == idxRarityU)) | |
1132 | 1141 | then if ((rarityThresholds[idxThresholdU] > totalBonus)) | |
1133 | 1142 | then idxRarityU | |
1134 | 1143 | else if ((rarityThresholds[idxThresholdL] > totalBonus)) | |
1135 | 1144 | then idxRarityL | |
1136 | 1145 | else throw((("You can advance only one level of rarity, max total bonus " + toString(rarityThresholds[idxThresholdL])) + "%")) | |
1137 | 1146 | else if ((rarityIdx == idxRarityL)) | |
1138 | 1147 | then if ((rarityThresholds[idxThresholdL] > totalBonus)) | |
1139 | 1148 | then idxRarityL | |
1140 | 1149 | else idxRarityE | |
1141 | 1150 | else if ((rarityIdx == idxRarityE)) | |
1142 | 1151 | then idxRarityE | |
1143 | 1152 | else if ((rarityIdx == idxRarityP)) | |
1144 | 1153 | then throw("You can't exchange NFTs of this rarity") | |
1145 | 1154 | else throw("Unknown rarity") | |
1146 | 1155 | let minWlgFee = fraction(totalBonus, MULT14, getWlgPrice(0)) | |
1147 | 1156 | let change = (wlgFee - minWlgFee) | |
1148 | 1157 | let forTeam = (minWlgFee / 2) | |
1149 | 1158 | let wlgRemain = asInt(invoke(wlgContract, "burnWlgold", [(minWlgFee - forTeam)], nil)) | |
1150 | 1159 | if ((0 > change)) | |
1151 | 1160 | then throw((("You need to attach " + fixedPoint(minWlgFee, 8)) + " WLGOLD as fee")) | |
1152 | 1161 | else { | |
1153 | 1162 | let changeActions = if ((change > 0)) | |
1154 | 1163 | then [ScriptTransfer(i.caller, change, wlgAssetId)] | |
1155 | 1164 | else nil | |
1156 | - | let $ | |
1157 | - | let issueNftActions = $ | |
1158 | - | let nftAssetId = $ | |
1165 | + | let $t03146431625 = issueNftCustom(idxNamePickaxe, newRarityIdx, idxCollDig, newRarityIdx, totalBonus, idxDescrPickaxe, idxBonusTypeFp, i.caller) | |
1166 | + | let issueNftActions = $t03146431625._1 | |
1167 | + | let nftAssetId = $t03146431625._2 | |
1159 | 1168 | let burned = size(burnActions) | |
1160 | 1169 | let burnCounterActions = if ((burned == 0)) | |
1161 | 1170 | then nil | |
1162 | 1171 | else [IntegerEntry(keyNftTotalBurned, (valueOrElse(getInteger(keyNftTotalBurned), 0) + burned))] | |
1163 | 1172 | $Tuple2((((((issueNftActions ++ burnActions) ++ burnCounterActions) ++ prologActions) ++ changeActions) :+ ScriptTransfer(addressFromStringValue(getStringValue(wlgContract, teamAddrKey)), forTeam, wlgAssetId)), $Tuple2(nftAssetId, wlgRemain)) | |
1164 | 1173 | } | |
1165 | 1174 | } | |
1166 | 1175 | } | |
1167 | 1176 | ||
1168 | 1177 | ||
1169 | 1178 | ||
1170 | 1179 | @Callable(i) | |
1171 | 1180 | func openNftChest () = if ((i.caller != this)) | |
1172 | 1181 | then throw("Temporary disabled") | |
1173 | 1182 | else { | |
1174 | 1183 | let prologActions = prolog(i) | |
1175 | 1184 | if ((size(i.payments) != 1)) | |
1176 | 1185 | then throw("exactly 1 payment must be attached") | |
1177 | 1186 | else { | |
1178 | 1187 | let pmt = i.payments[0] | |
1179 | 1188 | let wlgAmount = pmt.amount | |
1180 | 1189 | if (if (!(isDefined(pmt.assetId))) | |
1181 | 1190 | then true | |
1182 | 1191 | else (value(pmt.assetId) != wlgAssetId)) | |
1183 | 1192 | then throw("WLGOLD payments only!") | |
1184 | 1193 | else { | |
1185 | 1194 | let minWlgFee = fraction(NFT_CHEST_PRICE_USDT, MULT8, getWlgPrice(0)) | |
1186 | 1195 | let change = (wlgAmount - minWlgFee) | |
1187 | 1196 | let forTeam = (minWlgFee / 2) | |
1188 | 1197 | let wlgRemain = asInt(invoke(wlgContract, "burnWlgold", [(minWlgFee - forTeam)], nil)) | |
1189 | 1198 | if ((0 > change)) | |
1190 | 1199 | then throw((("You need to attach " + fixedPoint(minWlgFee, 8)) + " WLGOLD as fee")) | |
1191 | 1200 | else { | |
1192 | 1201 | let changeActions = if ((change > 0)) | |
1193 | 1202 | then [ScriptTransfer(i.caller, change, wlgAssetId)] | |
1194 | 1203 | else nil | |
1195 | 1204 | let addr = toString(i.caller) | |
1196 | 1205 | let finishKey = keyCommit(addr) | |
1197 | 1206 | let finishBlock = valueOrErrorMessage(getInteger(finishKey), "You have to commitForRandom() first!") | |
1198 | 1207 | if ((finishBlock > height)) | |
1199 | 1208 | then throw(("Random number is not ready yet, wait until height = " + toString(finishBlock))) | |
1200 | 1209 | else { | |
1201 | 1210 | let entropy = value(value(blockInfoByHeight(finishBlock)).vrf) | |
1202 | 1211 | let salt = fromBase58String(split(valueOrElse(getString(keyCurWeekTxIdByUser(addr)), "42_DEFAULT"), "_")[1]) | |
1203 | 1212 | let rand = getRandomNumber(100, salt, entropy) | |
1204 | - | let $ | |
1213 | + | let $t03370633978 = if ((84 > rand)) | |
1205 | 1214 | then $Tuple2(1, idxRarityC) | |
1206 | 1215 | else if ((98 > rand)) | |
1207 | 1216 | then $Tuple2(5, idxRarityU) | |
1208 | 1217 | else $Tuple2(10, idxRarityL) | |
1209 | - | let bonus = $ | |
1210 | - | let rarityIdx = $ | |
1211 | - | let $ | |
1212 | - | let issueNftActions = $ | |
1213 | - | let nftAssetId = $ | |
1218 | + | let bonus = $t03370633978._1 | |
1219 | + | let rarityIdx = $t03370633978._2 | |
1220 | + | let $t03398134131 = issueNftCustom(idxNamePickaxe, rarityIdx, idxCollDig, rarityIdx, bonus, idxDescrPickaxe, idxBonusTypeFp, i.caller) | |
1221 | + | let issueNftActions = $t03398134131._1 | |
1222 | + | let nftAssetId = $t03398134131._2 | |
1214 | 1223 | $Tuple2(((((issueNftActions ++ prologActions) ++ changeActions) :+ ScriptTransfer(addressFromStringValue(getStringValue(wlgContract, teamAddrKey)), forTeam, wlgAssetId)) :+ DeleteEntry(finishKey)), $Tuple2(nftAssetId, wlgRemain)) | |
1215 | 1224 | } | |
1216 | 1225 | } | |
1217 | 1226 | } | |
1218 | 1227 | } | |
1219 | 1228 | } | |
1220 | 1229 | ||
1221 | 1230 | ||
1222 | 1231 | ||
1223 | 1232 | @Callable(i) | |
1224 | 1233 | func commitForRandom () = if ((i.caller != this)) | |
1225 | 1234 | then throw("Temporary disabled") | |
1226 | 1235 | else { | |
1227 | 1236 | let prologActions = prolog(i) | |
1228 | 1237 | let addr = toString(i.caller) | |
1229 | 1238 | let finishKey = keyCommit(addr) | |
1230 | 1239 | if (isDefined(getInteger(finishKey))) | |
1231 | 1240 | then throw("You already commited for random, please use it") | |
1232 | 1241 | else { | |
1233 | 1242 | let finishBlock = (height + RANDOM_DELAY) | |
1234 | 1243 | $Tuple2(([IntegerEntry(finishKey, finishBlock)] ++ prologActions), finishBlock) | |
1235 | 1244 | } | |
1236 | 1245 | } | |
1237 | 1246 | ||
1238 | 1247 | ||
1239 | 1248 | ||
1240 | 1249 | @Callable(i) | |
1241 | 1250 | func drawPromoRound (roundId) = if ((i.caller != this)) | |
1242 | 1251 | then throw("Permission denied") | |
1243 | 1252 | else { | |
1244 | 1253 | let today = (height / DAY_BLOCKS) | |
1245 | 1254 | let maxValue = valueOrElse(getInteger(keyTotalPromoTickets), 0) | |
1246 | 1255 | if ((maxValue == 0)) | |
1247 | 1256 | then throw("No tickets to draw") | |
1248 | 1257 | else { | |
1249 | 1258 | let b = (today * DAY_BLOCKS) | |
1250 | 1259 | let h = if ((b > VRF_OFFSET)) | |
1251 | 1260 | then b | |
1252 | 1261 | else (b + VRF_OFFSET) | |
1253 | 1262 | let entropy = value(value(blockInfoByHeight(h)).vrf) | |
1254 | 1263 | let promoMap = valueOrElse(getString(keyPromoMap), "") | |
1255 | 1264 | if ((promoMap == "")) | |
1256 | 1265 | then throw("No participants") | |
1257 | 1266 | else { | |
1258 | - | func singleDraw (ac,j) = { | |
1259 | - | let promoList = if ((ac._3 == "")) | |
1260 | - | then nil | |
1261 | - | else split_51C(ac._3, "_") | |
1262 | - | if ((j >= size(promoList))) | |
1263 | - | then ac | |
1264 | - | else { | |
1265 | - | let rand = getRandomNumber(ac._1, ac._2, entropy) | |
1266 | - | func countTickets (acc,el) = { | |
1267 | - | let parts = split(el, ":") | |
1268 | - | let addr = parts[0] | |
1269 | - | let tickets = parseIntValue(parts[1]) | |
1270 | - | let newTotal = (acc._1 + tickets) | |
1271 | - | if (if ((acc._3 == "")) | |
1272 | - | then (newTotal > rand) | |
1273 | - | else false) | |
1274 | - | then $Tuple3(newTotal, tickets, addr) | |
1275 | - | else $Tuple3(newTotal, acc._2, acc._3) | |
1267 | + | func singleDraw (ac,j) = if ((ac._3 == "")) | |
1268 | + | then ac | |
1269 | + | else { | |
1270 | + | let promoList = split_51C(ac._3, "_") | |
1271 | + | let rand = getRandomNumber(ac._1, ac._2, entropy) | |
1272 | + | func countTickets (acc,el) = { | |
1273 | + | let parts = split(el, ":") | |
1274 | + | let addr = parts[0] | |
1275 | + | let tickets = parseIntValue(parts[1]) | |
1276 | + | let newTotal = (acc._1 + tickets) | |
1277 | + | if (if ((acc._3 == "")) | |
1278 | + | then (newTotal > rand) | |
1279 | + | else false) | |
1280 | + | then $Tuple3(newTotal, tickets, addr) | |
1281 | + | else $Tuple3(newTotal, acc._2, acc._3) | |
1282 | + | } | |
1283 | + | ||
1284 | + | let r = { | |
1285 | + | let $l = promoList | |
1286 | + | let $s = size($l) | |
1287 | + | let $acc0 = $Tuple3(0, 0, "") | |
1288 | + | func $f0_1 ($a,$i) = if (($i >= $s)) | |
1289 | + | then $a | |
1290 | + | else countTickets($a, $l[$i]) | |
1291 | + | ||
1292 | + | func $f0_2 ($a,$i) = if (($i >= $s)) | |
1293 | + | then $a | |
1294 | + | else throw("List size exceeds 200") | |
1295 | + | ||
1296 | + | $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($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($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($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($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($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($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($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($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($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), 21), 22), 23), 24), 25), 26), 27), 28), 29), 30), 31), 32), 33), 34), 35), 36), 37), 38), 39), 40), 41), 42), 43), 44), 45), 46), 47), 48), 49), 50), 51), 52), 53), 54), 55), 56), 57), 58), 59), 60), 61), 62), 63), 64), 65), 66), 67), 68), 69), 70), 71), 72), 73), 74), 75), 76), 77), 78), 79), 80), 81), 82), 83), 84), 85), 86), 87), 88), 89), 90), 91), 92), 93), 94), 95), 96), 97), 98), 99), 100), 101), 102), 103), 104), 105), 106), 107), 108), 109), 110), 111), 112), 113), 114), 115), 116), 117), 118), 119), 120), 121), 122), 123), 124), 125), 126), 127), 128), 129), 130), 131), 132), 133), 134), 135), 136), 137), 138), 139), 140), 141), 142), 143), 144), 145), 146), 147), 148), 149), 150), 151), 152), 153), 154), 155), 156), 157), 158), 159), 160), 161), 162), 163), 164), 165), 166), 167), 168), 169), 170), 171), 172), 173), 174), 175), 176), 177), 178), 179), 180), 181), 182), 183), 184), 185), 186), 187), 188), 189), 190), 191), 192), 193), 194), 195), 196), 197), 198), 199), 200) | |
1297 | + | } | |
1298 | + | let winner = r._3 | |
1299 | + | if ((winner == "")) | |
1300 | + | then ac | |
1301 | + | else { | |
1302 | + | let mapParts = split_51C(ac._3, winner) | |
1303 | + | let newMap = if ((mapParts[0] == "")) | |
1304 | + | then drop(mapParts[1], 5) | |
1305 | + | else (dropRight(mapParts[0], 1) + drop(mapParts[1], 4)) | |
1306 | + | let winActions = if ((j == 0)) | |
1307 | + | then invoke(this, "issueMittenP", [winner, true], nil) | |
1308 | + | else invoke(this, "stakeAcresFor", [winner, promoAwardPerRound[j], true], nil) | |
1309 | + | if ((winActions == winActions)) | |
1310 | + | then { | |
1311 | + | let newSalt = fromBase58String(split(valueOrElse(getString(keyCurWeekTxIdByUser(winner)), "0_DEFAULT"), "_")[1]) | |
1312 | + | $Tuple4((ac._1 - r._2), newSalt, newMap, (ac._4 :+ winner)) | |
1313 | + | } | |
1314 | + | else throw("Strict value is not equal to itself.") | |
1276 | 1315 | } | |
1277 | - | ||
1278 | - | let r = { | |
1279 | - | let $l = promoList | |
1280 | - | let $s = size($l) | |
1281 | - | let $acc0 = $Tuple3(0, 0, "") | |
1282 | - | func $f0_1 ($a,$i) = if (($i >= $s)) | |
1283 | - | then $a | |
1284 | - | else countTickets($a, $l[$i]) | |
1285 | - | ||
1286 | - | func $f0_2 ($a,$i) = if (($i >= $s)) | |
1287 | - | then $a | |
1288 | - | else throw("List size exceeds 200") | |
1289 | - | ||
1290 | - | $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($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($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($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($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($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($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($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($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($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), 21), 22), 23), 24), 25), 26), 27), 28), 29), 30), 31), 32), 33), 34), 35), 36), 37), 38), 39), 40), 41), 42), 43), 44), 45), 46), 47), 48), 49), 50), 51), 52), 53), 54), 55), 56), 57), 58), 59), 60), 61), 62), 63), 64), 65), 66), 67), 68), 69), 70), 71), 72), 73), 74), 75), 76), 77), 78), 79), 80), 81), 82), 83), 84), 85), 86), 87), 88), 89), 90), 91), 92), 93), 94), 95), 96), 97), 98), 99), 100), 101), 102), 103), 104), 105), 106), 107), 108), 109), 110), 111), 112), 113), 114), 115), 116), 117), 118), 119), 120), 121), 122), 123), 124), 125), 126), 127), 128), 129), 130), 131), 132), 133), 134), 135), 136), 137), 138), 139), 140), 141), 142), 143), 144), 145), 146), 147), 148), 149), 150), 151), 152), 153), 154), 155), 156), 157), 158), 159), 160), 161), 162), 163), 164), 165), 166), 167), 168), 169), 170), 171), 172), 173), 174), 175), 176), 177), 178), 179), 180), 181), 182), 183), 184), 185), 186), 187), 188), 189), 190), 191), 192), 193), 194), 195), 196), 197), 198), 199), 200) | |
1291 | - | } | |
1292 | - | let winner = r._3 | |
1293 | - | if ((winner == "")) | |
1294 | - | then ac | |
1295 | - | else { | |
1296 | - | let mapParts = split_51C(ac._3, winner) | |
1297 | - | let newMap = if ((mapParts[0] == "")) | |
1298 | - | then drop(mapParts[1], 5) | |
1299 | - | else (dropRight(mapParts[0], 1) + drop(mapParts[1], 4)) | |
1300 | - | let winActions = if ((j == 0)) | |
1301 | - | then invoke(this, "issueMittenP", [winner], nil) | |
1302 | - | else invoke(this, "stakeAcresFor", [winner, promoAwardPerRound[j], true], nil) | |
1303 | - | if ((winActions == winActions)) | |
1304 | - | then { | |
1305 | - | let newSalt = fromBase58String(split(valueOrElse(getString(keyCurWeekTxIdByUser(winner)), "0_DEFAULT"), "_")[1]) | |
1306 | - | $Tuple4((ac._1 - r._2), newSalt, newMap, (ac._4 :+ winner)) | |
1307 | - | } | |
1308 | - | else throw("Strict value is not equal to itself.") | |
1309 | - | } | |
1310 | - | } | |
1311 | - | } | |
1316 | + | } | |
1312 | 1317 | ||
1313 | 1318 | let draws = { | |
1314 | 1319 | let $l = [0, 1, 2, 3, 4, 5] | |
1315 | 1320 | let $s = size($l) | |
1316 | 1321 | let $acc0 = $Tuple4(maxValue, i.transactionId, promoMap, nil) | |
1317 | 1322 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
1318 | 1323 | then $a | |
1319 | 1324 | else singleDraw($a, $l[$i]) | |
1320 | 1325 | ||
1321 | 1326 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
1322 | 1327 | then $a | |
1323 | 1328 | else throw("List size exceeds 6") | |
1324 | 1329 | ||
1325 | 1330 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6) | |
1326 | 1331 | } | |
1327 | 1332 | $Tuple2([StringEntry(keyPromoMap, draws._3), IntegerEntry(keyTotalPromoTickets, draws._1), StringEntry(keyPromoRoundWinners(roundId), makeString(draws._4, "_"))], 0) | |
1328 | 1333 | } | |
1329 | 1334 | } | |
1330 | 1335 | } | |
1331 | 1336 | ||
1332 | 1337 |
github/deemru/w8io/169f3d6 149.97 ms ◑