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