tx · EFMzGNnetgUYgG2FEKJa5NhikD2n4zd7CZcrJ3iVycu1 3NBPx1Fciu3JQNEGZ21jSnTdutLNGGBUSXh: -0.03800000 Waves 2024.12.15 01:46 [3414876] smart account 3NBPx1Fciu3JQNEGZ21jSnTdutLNGGBUSXh > SELF 0.00000000 Waves
{ "type": 13, "id": "EFMzGNnetgUYgG2FEKJa5NhikD2n4zd7CZcrJ3iVycu1", "fee": 3800000, "feeAssetId": null, "timestamp": 1734216404463, "version": 2, "chainId": 84, "sender": "3NBPx1Fciu3JQNEGZ21jSnTdutLNGGBUSXh", "senderPublicKey": "3QtfC1XbLZXdeawMDeSERy9vvjUmj1XYd2GFmrvx7pWQ", "proofs": [ "4pzmrBvY7JLAoJRjnxweHqVpFXgHQhFCBojNJaUpmb5pufwS2kqK6ibpWF15yiVpmzBGUtZKYmfcq63XNKPMHsLy" ], "script": "base64:BgJaCAISABIECgIICBIDCgEEEgMKAQESABIFCgMIAQQSABIDCgEBEgASBAoCCAESABIDCgEIEgMKAQgSBAoCCAESAwoBCBIDCgEIEgASAwoBCBIAEgASABIDCgEBjwEAA1NFUAICX18ABU1VTFQ2AMCEPQAFTVVMVDcAgK3iBAAFTVVMVDgAgMLXLwAGTVVMVDE0AICA6YOx3hYACkRBWV9NSUxMSVMAgLiZKQAVVVNEVDJBQ1JFU19NVUxUSVBMSUVSAAoAE09ORV9QRVJDRU5UX0RJVklTT1IAZAAMUkFORE9NX0RFTEFZAAIAFE5GVF9DSEVTVF9QUklDRV9VU0RUAMCWsQIABWNoYWluCQDJAQIJAMoBAggFBHRoaXMFYnl0ZXMAAQABABdEQUlMWV9QUk9NT19TVEFSVF9CTE9DSwQHJG1hdGNoMAUFY2hhaW4DCQAAAgEBVwUHJG1hdGNoMACA75ECAwkAAAIBAVQFByRtYXRjaDAAwKbQAQkAAgECDVVua25vd24gY2hhaW4AFURBSUxZX1BST01PX0VORF9CTE9DSwQHJG1hdGNoMAUFY2hhaW4DCQAAAgEBVwUHJG1h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BfMQIJAQUkZjBfMQIJAQUkZjBfMQIFBSRhY2MwAAAAAQACAAMABAAFAAYJAJQKAgkAzAgCCQELU3RyaW5nRW50cnkCBQtrZXlQcm9tb01hcAgFBWRyYXdzAl8zCQDMCAIJAQxJbnRlZ2VyRW50cnkCBRRrZXlUb3RhbFByb21vVGlja2V0cwgFBWRyYXdzAl8xCQDMCAIJAQtTdHJpbmdFbnRyeQIJARRrZXlQcm9tb1JvdW5kV2lubmVycwEFB3JvdW5kSWQJALkJAggFBWRyYXdzAl80AgFfBQNuaWwAAADsH4rI", "height": 3414876, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 9t8hCM8sS1frREDQzwnbhsjFE9YMnvQPYPy5rL3hqGFF Next: 9rzB6GGAFMAuJ1jLX4VbRdJGtrGjhMRCLz1cKKGkETws Diff:
Old | New | Differences | |
---|---|---|---|
347 | 347 | ||
348 | 348 | let keyLastLimitLeft = "lastLimitLeft" | |
349 | 349 | ||
350 | - | let names = ["Gold shovel", "Pickaxe"] | |
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 | ||
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 | - | let $ | |
495 | - | let newBonusedFp = $ | |
496 | - | let ignored = $ | |
494 | + | let $t066316730 = getFarmingPowerByAcresAndBonus(newAcresAmount, (oldBonus + bonusDelta)) | |
495 | + | let newBonusedFp = $t066316730._1 | |
496 | + | let ignored = $t066316730._2 | |
497 | 497 | let oldTotalFp = valueOrElse(getInteger(totalFarmingPowerKey), 0) | |
498 | 498 | let acresActions = if ((amt == 0)) | |
499 | 499 | then nil | |
586 | 586 | if ((nftNumber >= limit)) | |
587 | 587 | then throw((("You can stake max " + toString(limit)) + " of such NFTs")) | |
588 | 588 | else { | |
589 | - | let $ | |
590 | - | let actions = $ | |
591 | - | let wlgClaimedAmount = $ | |
589 | + | let $t01100911085 = stakeUnstakeAcresInternal(0, addr, bonus6) | |
590 | + | let actions = $t01100911085._1 | |
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 | 597 | func stakeAcresForInternal (address,amt,shouldCleanPromo) = { | |
598 | - | let $ | |
599 | - | let actions = $ | |
600 | - | let wlgClaimedAmount = $ | |
598 | + | let $t01142011496 = stakeUnstakeAcresInternal(amt, address, 0) | |
599 | + | let actions = $t01142011496._1 | |
600 | + | let wlgClaimedAmount = $t01142011496._2 | |
601 | 601 | let promoActions = if (if ((height >= DAILY_PROMO_START_BLOCK)) | |
602 | 602 | then (DAILY_PROMO_END_BLOCK > height) | |
603 | 603 | else false) | |
697 | 697 | if ((arbReleaseTime > lastBlock.timestamp)) | |
698 | 698 | then throw(("You traded some WLGOLD, cannot unstake until " + toString(arbReleaseTime))) | |
699 | 699 | else { | |
700 | - | let $ | |
701 | - | let actions = $ | |
702 | - | let wlgClaimedAmount = $ | |
700 | + | let $t01549915579 = stakeUnstakeAcresInternal(-(amount), address, 0) | |
701 | + | let actions = $t01549915579._1 | |
702 | + | let wlgClaimedAmount = $t01549915579._2 | |
703 | 703 | $Tuple2(((actions :+ ScriptTransfer(i.caller, amount, acresAssetId)) ++ prologActions), wlgClaimedAmount) | |
704 | 704 | } | |
705 | 705 | } | |
722 | 722 | else (value(pmt.assetId) != acresAssetId)) | |
723 | 723 | then throw("ACRES payments only!") | |
724 | 724 | else { | |
725 | - | let $ | |
726 | - | let stakeActions = $ | |
727 | - | let wlgClaimedAmount = $ | |
725 | + | let $t01603016111 = stakeAcresForInternal(address, amt, false) | |
726 | + | let stakeActions = $t01603016111._1 | |
727 | + | let wlgClaimedAmount = $t01603016111._2 | |
728 | 728 | $Tuple2((stakeActions ++ prologActions), wlgClaimedAmount) | |
729 | 729 | } | |
730 | 730 | } | |
795 | 795 | then throw((("Min payment should be " + fixedPoint(MULT7, 8)) + " ACRES")) | |
796 | 796 | else { | |
797 | 797 | let addr = toString(i.caller) | |
798 | - | let $ | |
799 | - | let limitAction = $ | |
800 | - | let maxUsdt = $ | |
798 | + | let $t01818318231 = getSwapLimitAcres() | |
799 | + | let limitAction = $t01818318231._1 | |
800 | + | let maxUsdt = $t01818318231._2 | |
801 | 801 | let maxAcres = (maxUsdt * USDT2ACRES_MULTIPLIER) | |
802 | 802 | if ((acresAmount > maxAcres)) | |
803 | 803 | then throw((("You can sell max " + fixedPoint(maxAcres, 8)) + " ACRES")) | |
813 | 813 | ||
814 | 814 | @Callable(i) | |
815 | 815 | func sellAcresREADONLY (address,acresAmount) = { | |
816 | - | let $ | |
817 | - | let limitAction = $ | |
818 | - | let maxUsdt = $ | |
816 | + | let $t01872718775 = getSwapLimitAcres() | |
817 | + | let limitAction = $t01872718775._1 | |
818 | + | let maxUsdt = $t01872718775._2 | |
819 | 819 | let usdtAmount = ((acresAmount / USDT2ACRES_MULTIPLIER) / 2) | |
820 | 820 | $Tuple2(nil, [usdtAmount, MULT7, (maxUsdt * USDT2ACRES_MULTIPLIER), 0]) | |
821 | 821 | } | |
876 | 876 | let req = invoke(oldAcresAddress, "requestAcresCallback", [(((rr._1 + rr._2) + rr._3) + rr._4)], nil) | |
877 | 877 | if ((req == req)) | |
878 | 878 | then { | |
879 | - | let $ | |
880 | - | let nftActions = $ | |
881 | - | let nftAssetId = $ | |
879 | + | let $t02128921428 = issueNftCustom(idxNameShovel, idxKeySP, idxCollDig, idxRarityP, 3, idxDescrShovel, idxBonusTypeFp, i.caller) | |
880 | + | let nftActions = $t02128921428._1 | |
881 | + | let nftAssetId = $t02128921428._2 | |
882 | 882 | $Tuple6(rr._1, rr._2, rr._3, rr._4, rr._5, nftActions) | |
883 | 883 | } | |
884 | 884 | else throw("Strict value is not equal to itself.") | |
949 | 949 | let userFpKey = keyFarmingPowerByUser(address) | |
950 | 950 | let oldFp = valueOrElse(getInteger(userFpKey), 0) | |
951 | 951 | let userBonus = valueOrElse(getInteger(acres2Contract, keyUserFullBonus(address)), 0) | |
952 | - | let $ | |
953 | - | let newBonusedFp = $ | |
954 | - | let ignored = $ | |
952 | + | let $t02369923786 = getFarmingPowerByAcresAndBonus(newAcresAmount, userBonus) | |
953 | + | let newBonusedFp = $t02369923786._1 | |
954 | + | let ignored = $t02369923786._2 | |
955 | 955 | let oldTotalFp = valueOrElse(getInteger(totalFarmingPowerKey), 0) | |
956 | 956 | let newTotalFp = ((oldTotalFp + newBonusedFp) - oldFp) | |
957 | 957 | $Tuple2(nil, [oldFp, newBonusedFp, oldTotalFp, newTotalFp]) | |
1000 | 1000 | let listAction = StringEntry(nftsKey, makeString_2C((nfts :+ assetIdStr), "_")) | |
1001 | 1001 | if ((asset.issuer == this)) | |
1002 | 1002 | then { | |
1003 | - | let $ | |
1004 | - | let actions = $ | |
1005 | - | let wlgClaimedAmount = $ | |
1003 | + | let $t02548525675 = stakeNftInternal(addr, assetIdStr, (bonusByDescription(value(asset.description)) * 10000), keyUserWlNftNumber(addr), keyWlNftTotalStaked, MAX_WL_NFTS) | |
1004 | + | let actions = $t02548525675._1 | |
1005 | + | let wlgClaimedAmount = $t02548525675._2 | |
1006 | 1006 | $Tuple2(((prologActions ++ actions) :+ listAction), wlgClaimedAmount) | |
1007 | 1007 | } | |
1008 | 1008 | else if ((isArkimalIssued(asset) == "")) | |
1009 | 1009 | then throw("Only WavesLands and Arkimals NFT tokens are accepted") | |
1010 | 1010 | else { | |
1011 | - | let $ | |
1012 | - | let actions = $ | |
1013 | - | let wlgClaimedAmount = $ | |
1011 | + | let $t02585626007 = stakeNftInternal(addr, assetIdStr, ARK_NFT_BONUS, keyUserArkNftNumber(addr), keyArkNftTotalStaked, MAX_ARK_NFTS) | |
1012 | + | let actions = $t02585626007._1 | |
1013 | + | let wlgClaimedAmount = $t02585626007._2 | |
1014 | 1014 | $Tuple2(((prologActions ++ actions) :+ listAction), wlgClaimedAmount) | |
1015 | 1015 | } | |
1016 | 1016 | } | |
1047 | 1047 | then { | |
1048 | 1048 | let wlNftNumber = valueOrElse(getInteger(keyUserWlNftNumber(addr)), 0) | |
1049 | 1049 | let bonusVal = (bonusByDescription(value(asset.description)) * 10000) | |
1050 | - | let $ | |
1051 | - | let actions = $ | |
1052 | - | let wlgClaimedAmount = $ | |
1050 | + | let $t02717227251 = stakeUnstakeAcresInternal(0, addr, -(bonusVal)) | |
1051 | + | let actions = $t02717227251._1 | |
1052 | + | let wlgClaimedAmount = $t02717227251._2 | |
1053 | 1053 | $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 | 1054 | } | |
1055 | 1055 | else { | |
1058 | 1058 | then throw("Only WavesLands and Arkimals NFT tokens are accepted") | |
1059 | 1059 | else { | |
1060 | 1060 | let arkNftNumber = valueOrElse(getInteger(keyUserArkNftNumber(addr)), 0) | |
1061 | - | let $ | |
1062 | - | let actions = $ | |
1063 | - | let wlgClaimedAmount = $ | |
1061 | + | let $t02791127995 = stakeUnstakeAcresInternal(0, addr, -(ARK_NFT_BONUS)) | |
1062 | + | let actions = $t02791127995._1 | |
1063 | + | let wlgClaimedAmount = $t02791127995._2 | |
1064 | 1064 | $Tuple2((((((actions :+ listAction) :+ IntegerEntry(keyUserArkNftNumber(addr), (arkNftNumber - 1))) :+ DeleteEntry(keyStakedTimeByAssetIdAndOwner(toBase58String(assetId), addr))) :+ ScriptTransfer(i.caller, 1, assetId)) ++ prologActions), wlgClaimedAmount) | |
1065 | 1065 | } | |
1066 | 1066 | } | |
1104 | 1104 | } | |
1105 | 1105 | } | |
1106 | 1106 | ||
1107 | - | let $ | |
1107 | + | let $t02944629662 = { | |
1108 | 1108 | let $l = i.payments | |
1109 | 1109 | let $s = size($l) | |
1110 | 1110 | let $acc0 = $Tuple4(0, 0, nil, -1) | |
1118 | 1118 | ||
1119 | 1119 | $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 | 1120 | } | |
1121 | - | let wlgFee = $ | |
1122 | - | let totalBonus = $ | |
1123 | - | let burnActions = $ | |
1124 | - | let rarityIdx = $ | |
1121 | + | let wlgFee = $t02944629662._1 | |
1122 | + | let totalBonus = $t02944629662._2 | |
1123 | + | let burnActions = $t02944629662._3 | |
1124 | + | let rarityIdx = $t02944629662._4 | |
1125 | 1125 | let newRarityIdx = if ((rarityIdx == idxRarityC)) | |
1126 | 1126 | then if ((rarityThresholds[idxThresholdC] > totalBonus)) | |
1127 | 1127 | then idxRarityC | |
1153 | 1153 | let changeActions = if ((change > 0)) | |
1154 | 1154 | then [ScriptTransfer(i.caller, change, wlgAssetId)] | |
1155 | 1155 | else nil | |
1156 | - | let $ | |
1157 | - | let issueNftActions = $ | |
1158 | - | let nftAssetId = $ | |
1156 | + | let $t03119931360 = issueNftCustom(idxNamePickaxe, newRarityIdx, idxCollDig, newRarityIdx, totalBonus, idxDescrPickaxe, idxBonusTypeFp, i.caller) | |
1157 | + | let issueNftActions = $t03119931360._1 | |
1158 | + | let nftAssetId = $t03119931360._2 | |
1159 | 1159 | let burned = size(burnActions) | |
1160 | 1160 | let burnCounterActions = if ((burned == 0)) | |
1161 | 1161 | then nil | |
1201 | 1201 | let entropy = value(value(blockInfoByHeight(finishBlock)).vrf) | |
1202 | 1202 | let salt = fromBase58String(split(valueOrElse(getString(keyCurWeekTxIdByUser(addr)), "42_DEFAULT"), "_")[1]) | |
1203 | 1203 | let rand = getRandomNumber(100, salt, entropy) | |
1204 | - | let $ | |
1204 | + | let $t03344133713 = if ((84 > rand)) | |
1205 | 1205 | then $Tuple2(1, idxRarityC) | |
1206 | 1206 | else if ((98 > rand)) | |
1207 | 1207 | then $Tuple2(5, idxRarityU) | |
1208 | 1208 | else $Tuple2(10, idxRarityL) | |
1209 | - | let bonus = $ | |
1210 | - | let rarityIdx = $ | |
1211 | - | let $ | |
1212 | - | let issueNftActions = $ | |
1213 | - | let nftAssetId = $ | |
1209 | + | let bonus = $t03344133713._1 | |
1210 | + | let rarityIdx = $t03344133713._2 | |
1211 | + | let $t03371633866 = issueNftCustom(idxNamePickaxe, rarityIdx, idxCollDig, rarityIdx, bonus, idxDescrPickaxe, idxBonusTypeFp, i.caller) | |
1212 | + | let issueNftActions = $t03371633866._1 | |
1213 | + | let nftAssetId = $t03371633866._2 | |
1214 | 1214 | $Tuple2(((((issueNftActions ++ prologActions) ++ changeActions) :+ ScriptTransfer(addressFromStringValue(getStringValue(wlgContract, teamAddrKey)), forTeam, wlgAssetId)) :+ DeleteEntry(finishKey)), $Tuple2(nftAssetId, wlgRemain)) | |
1215 | 1215 | } | |
1216 | 1216 | } |
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 | - | let names = ["Gold shovel", "Pickaxe"] | |
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 | - | let $ | |
495 | - | let newBonusedFp = $ | |
496 | - | let ignored = $ | |
494 | + | let $t066316730 = getFarmingPowerByAcresAndBonus(newAcresAmount, (oldBonus + bonusDelta)) | |
495 | + | let newBonusedFp = $t066316730._1 | |
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 | - | let $ | |
590 | - | let actions = $ | |
591 | - | let wlgClaimedAmount = $ | |
589 | + | let $t01100911085 = stakeUnstakeAcresInternal(0, addr, bonus6) | |
590 | + | let actions = $t01100911085._1 | |
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 | 597 | func stakeAcresForInternal (address,amt,shouldCleanPromo) = { | |
598 | - | let $ | |
599 | - | let actions = $ | |
600 | - | let wlgClaimedAmount = $ | |
598 | + | let $t01142011496 = stakeUnstakeAcresInternal(amt, address, 0) | |
599 | + | let actions = $t01142011496._1 | |
600 | + | let wlgClaimedAmount = $t01142011496._2 | |
601 | 601 | let promoActions = if (if ((height >= DAILY_PROMO_START_BLOCK)) | |
602 | 602 | then (DAILY_PROMO_END_BLOCK > height) | |
603 | 603 | else false) | |
604 | 604 | then { | |
605 | 605 | let promoAcresKey = keyUserPromoAcres(address) | |
606 | 606 | let promoAcres = ((if (shouldCleanPromo) | |
607 | 607 | then 0 | |
608 | 608 | else valueOrElse(getInteger(promoAcresKey), 0)) + amt) | |
609 | 609 | let tickets = (promoAcres / MULT8) | |
610 | 610 | let ticketsKey = keyUserPromoTickets(address) | |
611 | 611 | let deltaTickets = (tickets - valueOrElse(getInteger(ticketsKey), 0)) | |
612 | 612 | let totalTickets = (valueOrElse(getInteger(keyTotalPromoTickets), 0) + deltaTickets) | |
613 | 613 | if (if (shouldCleanPromo) | |
614 | 614 | then true | |
615 | 615 | else (deltaTickets > 0)) | |
616 | 616 | then { | |
617 | 617 | let promoMap = valueOrElse(getString(keyPromoMap), "") | |
618 | 618 | let userRecord = ((address + ":") + padL(tickets, 3)) | |
619 | 619 | let newMap = if (contains(promoMap, address)) | |
620 | 620 | then { | |
621 | 621 | let mapParts = split_51C(promoMap, address) | |
622 | 622 | if ((mapParts[0] == "")) | |
623 | 623 | then { | |
624 | 624 | let r = drop(mapParts[1], 4) | |
625 | 625 | if ((r == "")) | |
626 | 626 | then if ((tickets == 0)) | |
627 | 627 | then "" | |
628 | 628 | else userRecord | |
629 | 629 | else if ((tickets == 0)) | |
630 | 630 | then drop(r, 1) | |
631 | 631 | else (userRecord + r) | |
632 | 632 | } | |
633 | 633 | else { | |
634 | 634 | let r = drop(mapParts[1], 4) | |
635 | 635 | if ((r == "")) | |
636 | 636 | then if ((tickets == 0)) | |
637 | 637 | then dropRight(mapParts[0], 1) | |
638 | 638 | else (mapParts[0] + userRecord) | |
639 | 639 | else if ((tickets == 0)) | |
640 | 640 | then (mapParts[0] + drop(r, 1)) | |
641 | 641 | else ((mapParts[0] + userRecord) + r) | |
642 | 642 | } | |
643 | 643 | } | |
644 | 644 | else if ((tickets == 0)) | |
645 | 645 | then promoMap | |
646 | 646 | else if ((promoMap == "")) | |
647 | 647 | then userRecord | |
648 | 648 | else ((promoMap + "_") + userRecord) | |
649 | 649 | [IntegerEntry(promoAcresKey, promoAcres), IntegerEntry(ticketsKey, tickets), IntegerEntry(keyTotalPromoTickets, totalTickets), StringEntry(keyPromoMap, newMap)] | |
650 | 650 | } | |
651 | 651 | else [IntegerEntry(promoAcresKey, promoAcres)] | |
652 | 652 | } | |
653 | 653 | else nil | |
654 | 654 | $Tuple2((actions ++ promoActions), wlgClaimedAmount) | |
655 | 655 | } | |
656 | 656 | ||
657 | 657 | ||
658 | 658 | @Callable(i) | |
659 | 659 | func saveLastTx () = if (!(containsElement([wlgContract, marketContract], i.caller))) | |
660 | 660 | then throw("Access denied") | |
661 | 661 | else $Tuple2(prolog(i), 42) | |
662 | 662 | ||
663 | 663 | ||
664 | 664 | ||
665 | 665 | @Callable(i) | |
666 | 666 | func constructorV1 (rest2Addr,oldAcrContract) = if ((i.caller != this)) | |
667 | 667 | then throw("Permission denied") | |
668 | 668 | else { | |
669 | 669 | let oldAcrContAddr = addressFromStringValue(oldAcrContract) | |
670 | 670 | [IntegerEntry(acresIssuedAmountKey, getIntegerValue(oldAcrContAddr, acresIssuedAmountKey)), BinaryEntry(acresAssetIdKey, getBinaryValue(oldAcrContAddr, acresAssetIdKey)), StringEntry(keyRest2Address(), rest2Addr), StringEntry(oldAcresContractKey, oldAcrContract)] | |
671 | 671 | } | |
672 | 672 | ||
673 | 673 | ||
674 | 674 | ||
675 | 675 | @Callable(i) | |
676 | 676 | func setBlocked (isBlocked) = if ((i.caller != this)) | |
677 | 677 | then throw("permission denied") | |
678 | 678 | else [BooleanEntry(keyBlocked(), isBlocked)] | |
679 | 679 | ||
680 | 680 | ||
681 | 681 | ||
682 | 682 | @Callable(i) | |
683 | 683 | func unstakeAcres (amount) = { | |
684 | 684 | let prologActions = prolog(i) | |
685 | 685 | if (if ((height >= DAILY_PROMO_START_BLOCK)) | |
686 | 686 | then (DAILY_PROMO_END_BLOCK > height) | |
687 | 687 | else false) | |
688 | 688 | then throw("You can't unstake during Xmas promo period") | |
689 | 689 | else if ((0 >= amount)) | |
690 | 690 | then throw("Amount should be positive") | |
691 | 691 | else { | |
692 | 692 | let address = toString(i.caller) | |
693 | 693 | if ((size(i.payments) != 0)) | |
694 | 694 | then throw("No payments required") | |
695 | 695 | else { | |
696 | 696 | let arbReleaseTime = (valueOrElse(getInteger(wlgContract, keyLastWlgTradeTimeByUser(address)), 0) + arbitrageDelay) | |
697 | 697 | if ((arbReleaseTime > lastBlock.timestamp)) | |
698 | 698 | then throw(("You traded some WLGOLD, cannot unstake until " + toString(arbReleaseTime))) | |
699 | 699 | else { | |
700 | - | let $ | |
701 | - | let actions = $ | |
702 | - | let wlgClaimedAmount = $ | |
700 | + | let $t01549915579 = stakeUnstakeAcresInternal(-(amount), address, 0) | |
701 | + | let actions = $t01549915579._1 | |
702 | + | let wlgClaimedAmount = $t01549915579._2 | |
703 | 703 | $Tuple2(((actions :+ ScriptTransfer(i.caller, amount, acresAssetId)) ++ prologActions), wlgClaimedAmount) | |
704 | 704 | } | |
705 | 705 | } | |
706 | 706 | } | |
707 | 707 | } | |
708 | 708 | ||
709 | 709 | ||
710 | 710 | ||
711 | 711 | @Callable(i) | |
712 | 712 | func stakeAcres () = { | |
713 | 713 | let prologActions = prolog(i) | |
714 | 714 | let address = toString(i.caller) | |
715 | 715 | if ((size(i.payments) != 1)) | |
716 | 716 | then throw("exactly 1 payment must be attached") | |
717 | 717 | else { | |
718 | 718 | let pmt = i.payments[0] | |
719 | 719 | let amt = pmt.amount | |
720 | 720 | if (if (!(isDefined(pmt.assetId))) | |
721 | 721 | then true | |
722 | 722 | else (value(pmt.assetId) != acresAssetId)) | |
723 | 723 | then throw("ACRES payments only!") | |
724 | 724 | else { | |
725 | - | let $ | |
726 | - | let stakeActions = $ | |
727 | - | let wlgClaimedAmount = $ | |
725 | + | let $t01603016111 = stakeAcresForInternal(address, amt, false) | |
726 | + | let stakeActions = $t01603016111._1 | |
727 | + | let wlgClaimedAmount = $t01603016111._2 | |
728 | 728 | $Tuple2((stakeActions ++ prologActions), wlgClaimedAmount) | |
729 | 729 | } | |
730 | 730 | } | |
731 | 731 | } | |
732 | 732 | ||
733 | 733 | ||
734 | 734 | ||
735 | 735 | @Callable(i) | |
736 | 736 | func stakeAcresFor (address,amt,shouldCleanPromo) = if ((i.caller != this)) | |
737 | 737 | then throw("Permission denied") | |
738 | 738 | else stakeAcresForInternal(address, amt, shouldCleanPromo) | |
739 | 739 | ||
740 | 740 | ||
741 | 741 | ||
742 | 742 | @Callable(i) | |
743 | 743 | func buyAcres () = { | |
744 | 744 | let prologActions = prolog(i) | |
745 | 745 | if ((size(i.payments) != 1)) | |
746 | 746 | then throw("exactly 1 payment must be attached") | |
747 | 747 | else { | |
748 | 748 | let pmt = i.payments[0] | |
749 | 749 | let usdtAmount = pmt.amount | |
750 | 750 | if (if (!(isDefined(pmt.assetId))) | |
751 | 751 | then true | |
752 | 752 | else (value(pmt.assetId) != usdtAssetId)) | |
753 | 753 | then throw("USDT payments only!") | |
754 | 754 | else if ((MULT6 > usdtAmount)) | |
755 | 755 | then throw((("Min payment should be " + fixedPoint(MULT6, 6)) + " USDT")) | |
756 | 756 | else { | |
757 | 757 | let acresAmount = (usdtAmount * USDT2ACRES_MULTIPLIER) | |
758 | 758 | let wlgAmount = fraction(usdtAmount, MULT8, getWlgPrice(usdtAmount)) | |
759 | 759 | let oldAcresAddress = addressFromStringValue(getStringValue(oldAcresContractKey)) | |
760 | 760 | let req = invoke(oldAcresAddress, "requestAcresCallback", [acresAmount], nil) | |
761 | 761 | if ((req == req)) | |
762 | 762 | then { | |
763 | 763 | let wlgRemain = asInt(invoke(wlgContract, "burnWlgold", [wlgAmount], nil)) | |
764 | 764 | $Tuple2(([ScriptTransfer(i.caller, acresAmount, acresAssetId)] ++ prologActions), wlgRemain) | |
765 | 765 | } | |
766 | 766 | else throw("Strict value is not equal to itself.") | |
767 | 767 | } | |
768 | 768 | } | |
769 | 769 | } | |
770 | 770 | ||
771 | 771 | ||
772 | 772 | ||
773 | 773 | @Callable(i) | |
774 | 774 | func buyAcresREADONLY (usdtAmount) = { | |
775 | 775 | let acresAmount = (usdtAmount * USDT2ACRES_MULTIPLIER) | |
776 | 776 | let wlgToBurn = fraction(usdtAmount, MULT8, getWlgPrice(usdtAmount)) | |
777 | 777 | $Tuple2(nil, [acresAmount, MULT6, acresAmount, wlgToBurn]) | |
778 | 778 | } | |
779 | 779 | ||
780 | 780 | ||
781 | 781 | ||
782 | 782 | @Callable(i) | |
783 | 783 | func sellAcres () = { | |
784 | 784 | let prologActions = prolog(i) | |
785 | 785 | if ((size(i.payments) != 1)) | |
786 | 786 | then throw("exactly 1 payment must be attached") | |
787 | 787 | else { | |
788 | 788 | let pmt = i.payments[0] | |
789 | 789 | let acresAmount = pmt.amount | |
790 | 790 | if (if (!(isDefined(pmt.assetId))) | |
791 | 791 | then true | |
792 | 792 | else (value(pmt.assetId) != acresAssetId)) | |
793 | 793 | then throw("ACRES payments only!") | |
794 | 794 | else if ((MULT7 > acresAmount)) | |
795 | 795 | then throw((("Min payment should be " + fixedPoint(MULT7, 8)) + " ACRES")) | |
796 | 796 | else { | |
797 | 797 | let addr = toString(i.caller) | |
798 | - | let $ | |
799 | - | let limitAction = $ | |
800 | - | let maxUsdt = $ | |
798 | + | let $t01818318231 = getSwapLimitAcres() | |
799 | + | let limitAction = $t01818318231._1 | |
800 | + | let maxUsdt = $t01818318231._2 | |
801 | 801 | let maxAcres = (maxUsdt * USDT2ACRES_MULTIPLIER) | |
802 | 802 | if ((acresAmount > maxAcres)) | |
803 | 803 | then throw((("You can sell max " + fixedPoint(maxAcres, 8)) + " ACRES")) | |
804 | 804 | else { | |
805 | 805 | let usdtAmount = ((acresAmount / USDT2ACRES_MULTIPLIER) / 2) | |
806 | 806 | $Tuple2(([limitAction, IntegerEntry(keyLastLimitLeft, (maxUsdt - usdtAmount)), ScriptTransfer(i.caller, usdtAmount, usdtAssetId)] ++ prologActions), usdtAmount) | |
807 | 807 | } | |
808 | 808 | } | |
809 | 809 | } | |
810 | 810 | } | |
811 | 811 | ||
812 | 812 | ||
813 | 813 | ||
814 | 814 | @Callable(i) | |
815 | 815 | func sellAcresREADONLY (address,acresAmount) = { | |
816 | - | let $ | |
817 | - | let limitAction = $ | |
818 | - | let maxUsdt = $ | |
816 | + | let $t01872718775 = getSwapLimitAcres() | |
817 | + | let limitAction = $t01872718775._1 | |
818 | + | let maxUsdt = $t01872718775._2 | |
819 | 819 | let usdtAmount = ((acresAmount / USDT2ACRES_MULTIPLIER) / 2) | |
820 | 820 | $Tuple2(nil, [usdtAmount, MULT7, (maxUsdt * USDT2ACRES_MULTIPLIER), 0]) | |
821 | 821 | } | |
822 | 822 | ||
823 | 823 | ||
824 | 824 | ||
825 | 825 | @Callable(i) | |
826 | 826 | func convertOldStakes () = { | |
827 | 827 | let prologActions = prolog(i) | |
828 | 828 | if ((OLD_STAKING_DEADL > lastBlock.timestamp)) | |
829 | 829 | then throw(("Disabled until " + toString((OLD_STAKING_DEADL / 1000)))) | |
830 | 830 | else { | |
831 | 831 | let address = toString(i.caller) | |
832 | 832 | if ((size(i.payments) != 0)) | |
833 | 833 | then throw("No payments required") | |
834 | 834 | else { | |
835 | 835 | let oldAcresAddress = addressFromStringValue(getStringValue(oldAcresContractKey)) | |
836 | 836 | let amount = valueOrElse(getInteger(oldAcresAddress, keyAcresStakedAmtByUser(address)), 0) | |
837 | 837 | let gotAcres0 = if ((amount > 0)) | |
838 | 838 | then asTuple2Ints(invoke(oldAcresAddress, "unstakeAcresCallback", [amount, address], nil)) | |
839 | 839 | else $Tuple2(0, 0) | |
840 | 840 | let oldStakingAddress = addressFromStringValue(oldStakingContractStr) | |
841 | 841 | let landsStr = getString(oldStakingAddress, keyStakedLandsByOwner(address)) | |
842 | 842 | let landsResult = if (isDefined(landsStr)) | |
843 | 843 | then { | |
844 | 844 | let lands = split_51C(value(landsStr), "_") | |
845 | 845 | if ((size(lands) > MAX_LANDS_TO_CONVERT)) | |
846 | 846 | then throw((("You have more than " + toString(MAX_LANDS_TO_CONVERT)) + " lands staked, please contact support, we'll process your case manually")) | |
847 | 847 | else { | |
848 | 848 | func oneLand (acc,landAssetId) = if ((landAssetId == "")) | |
849 | 849 | then throw("landAssetId is required") | |
850 | 850 | else { | |
851 | 851 | let r = asTuple5Ints(invoke(oldStakingAddress, "unstakeLandCallback", [landAssetId, address], nil)) | |
852 | 852 | if ((r == r)) | |
853 | 853 | then $Tuple5((acc._1 + r._1), (acc._2 + r._2), (acc._3 + r._3), (acc._4 + r._4), (acc._5 + r._5)) | |
854 | 854 | else throw("Strict value is not equal to itself.") | |
855 | 855 | } | |
856 | 856 | ||
857 | 857 | let rr = { | |
858 | 858 | let $l = lands | |
859 | 859 | let $s = size($l) | |
860 | 860 | let $acc0 = $Tuple5(0, 0, 0, 0, 0) | |
861 | 861 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
862 | 862 | then $a | |
863 | 863 | else oneLand($a, $l[$i]) | |
864 | 864 | ||
865 | 865 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
866 | 866 | then $a | |
867 | 867 | else throw("List size exceeds 14") | |
868 | 868 | ||
869 | 869 | $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 | 870 | } | |
871 | 871 | if ((rr == rr)) | |
872 | 872 | then { | |
873 | 873 | let finalize = invoke(oldStakingAddress, "unstakeLandsFinalizeCallback", [address], nil) | |
874 | 874 | if ((finalize == finalize)) | |
875 | 875 | then { | |
876 | 876 | let req = invoke(oldAcresAddress, "requestAcresCallback", [(((rr._1 + rr._2) + rr._3) + rr._4)], nil) | |
877 | 877 | if ((req == req)) | |
878 | 878 | then { | |
879 | - | let $ | |
880 | - | let nftActions = $ | |
881 | - | let nftAssetId = $ | |
879 | + | let $t02128921428 = issueNftCustom(idxNameShovel, idxKeySP, idxCollDig, idxRarityP, 3, idxDescrShovel, idxBonusTypeFp, i.caller) | |
880 | + | let nftActions = $t02128921428._1 | |
881 | + | let nftAssetId = $t02128921428._2 | |
882 | 882 | $Tuple6(rr._1, rr._2, rr._3, rr._4, rr._5, nftActions) | |
883 | 883 | } | |
884 | 884 | else throw("Strict value is not equal to itself.") | |
885 | 885 | } | |
886 | 886 | else throw("Strict value is not equal to itself.") | |
887 | 887 | } | |
888 | 888 | else throw("Strict value is not equal to itself.") | |
889 | 889 | } | |
890 | 890 | } | |
891 | 891 | else $Tuple6(0, 0, 0, 0, 0, nil) | |
892 | 892 | let duckAssetId = valueOrElse(getString(oldStakingAddress, keyStakedDuckByOwner(address)), "") | |
893 | 893 | let duckResult = if ((duckAssetId != "")) | |
894 | 894 | then asTuple3Ints(invoke(oldStakingAddress, "unstakeDuckCallback", [duckAssetId, address], nil)) | |
895 | 895 | else $Tuple3(0, 0, 0) | |
896 | 896 | let x = stakeUnstakeAcresInternal((((((((gotAcres0._1 + landsResult._1) + landsResult._2) + landsResult._3) + landsResult._4) + duckResult._1) + duckResult._2) + duckResult._3), address, 0) | |
897 | 897 | $Tuple2(((landsResult._6 ++ x._1) ++ prologActions), $Tuple3(gotAcres0._2, landsResult._5, x._2)) | |
898 | 898 | } | |
899 | 899 | } | |
900 | 900 | } | |
901 | 901 | ||
902 | 902 | ||
903 | 903 | ||
904 | 904 | @Callable(i) | |
905 | 905 | func unstakeLandsREADONLY (address) = { | |
906 | 906 | let oldStakingAddress = addressFromStringValue(oldStakingContractStr) | |
907 | 907 | let landsStr = getString(oldStakingAddress, keyStakedLandsByOwner(address)) | |
908 | 908 | let landsResult = if (isDefined(landsStr)) | |
909 | 909 | then { | |
910 | 910 | let lands = split_51C(value(landsStr), "_") | |
911 | 911 | func oneLand (acc,landAssetId) = if ((landAssetId == "")) | |
912 | 912 | then throw("landAssetId is required") | |
913 | 913 | else { | |
914 | 914 | let r = asTuple4Ints(invoke(oldStakingAddress, "unstakeLandREADONLY", [landAssetId, address], nil)) | |
915 | 915 | $Tuple4((acc._1 + r._1), (acc._2 + r._2), (acc._3 + r._3), (acc._4 + r._4)) | |
916 | 916 | } | |
917 | 917 | ||
918 | 918 | let $l = lands | |
919 | 919 | let $s = size($l) | |
920 | 920 | let $acc0 = $Tuple4(0, 0, 0, 0) | |
921 | 921 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
922 | 922 | then $a | |
923 | 923 | else oneLand($a, $l[$i]) | |
924 | 924 | ||
925 | 925 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
926 | 926 | then $a | |
927 | 927 | else throw("List size exceeds 100") | |
928 | 928 | ||
929 | 929 | $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 | 930 | } | |
931 | 931 | else $Tuple4(0, 0, 0, 0) | |
932 | 932 | $Tuple2(nil, landsResult) | |
933 | 933 | } | |
934 | 934 | ||
935 | 935 | ||
936 | 936 | ||
937 | 937 | @Callable(i) | |
938 | 938 | func stakeAcresCallback (addr) = if ((i.caller != addressFromStringValue(oldStakingContractStr))) | |
939 | 939 | then throw("Permission denied") | |
940 | 940 | else stakeUnstakeAcresInternal(i.payments[0].amount, addr, 0) | |
941 | 941 | ||
942 | 942 | ||
943 | 943 | ||
944 | 944 | @Callable(i) | |
945 | 945 | func simulateStakeAcresREADONLY (address,addedAmount) = { | |
946 | 946 | let amountKey = keyAcresStakedAmtByUser(address) | |
947 | 947 | let newAcresAmount = (valueOrElse(getInteger(amountKey), 0) + addedAmount) | |
948 | 948 | let oldTotal = valueOrElse(getInteger(acresStakdTotalKey), 0) | |
949 | 949 | let userFpKey = keyFarmingPowerByUser(address) | |
950 | 950 | let oldFp = valueOrElse(getInteger(userFpKey), 0) | |
951 | 951 | let userBonus = valueOrElse(getInteger(acres2Contract, keyUserFullBonus(address)), 0) | |
952 | - | let $ | |
953 | - | let newBonusedFp = $ | |
954 | - | let ignored = $ | |
952 | + | let $t02369923786 = getFarmingPowerByAcresAndBonus(newAcresAmount, userBonus) | |
953 | + | let newBonusedFp = $t02369923786._1 | |
954 | + | let ignored = $t02369923786._2 | |
955 | 955 | let oldTotalFp = valueOrElse(getInteger(totalFarmingPowerKey), 0) | |
956 | 956 | let newTotalFp = ((oldTotalFp + newBonusedFp) - oldFp) | |
957 | 957 | $Tuple2(nil, [oldFp, newBonusedFp, oldTotalFp, newTotalFp]) | |
958 | 958 | } | |
959 | 959 | ||
960 | 960 | ||
961 | 961 | ||
962 | 962 | @Callable(i) | |
963 | 963 | func issuePickC1 (forAddress) = if ((i.caller != wlgContract)) | |
964 | 964 | then throw("Permission denied") | |
965 | 965 | else issueNftCustom(idxNamePickaxe, idxKeyC, idxCollDig, idxRarityC, 1, idxDescrPickaxe, idxBonusTypeFp, addressFromStringValue(forAddress)) | |
966 | 966 | ||
967 | 967 | ||
968 | 968 | ||
969 | 969 | @Callable(i) | |
970 | 970 | func issueMittenP (forAddress) = if ((i.caller != this)) | |
971 | 971 | then throw("Permission denied") | |
972 | 972 | else issueNftCustom(idxNameMitten, idxKeyMP, idxCollNewYear, idxRarityP, 3, idxDescrMitten, idxBonusTypeFp, addressFromStringValue(forAddress)) | |
973 | 973 | ||
974 | 974 | ||
975 | 975 | ||
976 | 976 | @Callable(i) | |
977 | 977 | func stakeNFT () = { | |
978 | 978 | let prologActions = prolog(i) | |
979 | 979 | if ((size(i.payments) != 1)) | |
980 | 980 | then throw("Exactly one payment required") | |
981 | 981 | else { | |
982 | 982 | let pmt = value(i.payments[0]) | |
983 | 983 | if ((pmt.amount != 1)) | |
984 | 984 | then throw("NFT token should be attached as payment") | |
985 | 985 | else { | |
986 | 986 | let assetId = value(pmt.assetId) | |
987 | 987 | let asset = value(assetInfo(assetId)) | |
988 | 988 | let assetIdStr = toBase58String(assetId) | |
989 | 989 | let addr = toString(i.caller) | |
990 | 990 | let nftsKey = keyStakedNFTsByOwner(addr) | |
991 | 991 | let nftsStr = getString(nftsKey) | |
992 | 992 | let nfts = if (isDefined(nftsStr)) | |
993 | 993 | then split_4C(value(nftsStr), "_") | |
994 | 994 | else nil | |
995 | 995 | if (containsElement(nfts, assetIdStr)) | |
996 | 996 | then throw(("Your staked NFTs already contain " + assetIdStr)) | |
997 | 997 | else if ((size(nfts) >= MAX_NFTS_STAKED_BY_USER)) | |
998 | 998 | then throw((("Your already staked max (" + toString(MAX_NFTS_STAKED_BY_USER)) + ") NFTs")) | |
999 | 999 | else { | |
1000 | 1000 | let listAction = StringEntry(nftsKey, makeString_2C((nfts :+ assetIdStr), "_")) | |
1001 | 1001 | if ((asset.issuer == this)) | |
1002 | 1002 | then { | |
1003 | - | let $ | |
1004 | - | let actions = $ | |
1005 | - | let wlgClaimedAmount = $ | |
1003 | + | let $t02548525675 = stakeNftInternal(addr, assetIdStr, (bonusByDescription(value(asset.description)) * 10000), keyUserWlNftNumber(addr), keyWlNftTotalStaked, MAX_WL_NFTS) | |
1004 | + | let actions = $t02548525675._1 | |
1005 | + | let wlgClaimedAmount = $t02548525675._2 | |
1006 | 1006 | $Tuple2(((prologActions ++ actions) :+ listAction), wlgClaimedAmount) | |
1007 | 1007 | } | |
1008 | 1008 | else if ((isArkimalIssued(asset) == "")) | |
1009 | 1009 | then throw("Only WavesLands and Arkimals NFT tokens are accepted") | |
1010 | 1010 | else { | |
1011 | - | let $ | |
1012 | - | let actions = $ | |
1013 | - | let wlgClaimedAmount = $ | |
1011 | + | let $t02585626007 = stakeNftInternal(addr, assetIdStr, ARK_NFT_BONUS, keyUserArkNftNumber(addr), keyArkNftTotalStaked, MAX_ARK_NFTS) | |
1012 | + | let actions = $t02585626007._1 | |
1013 | + | let wlgClaimedAmount = $t02585626007._2 | |
1014 | 1014 | $Tuple2(((prologActions ++ actions) :+ listAction), wlgClaimedAmount) | |
1015 | 1015 | } | |
1016 | 1016 | } | |
1017 | 1017 | } | |
1018 | 1018 | } | |
1019 | 1019 | } | |
1020 | 1020 | ||
1021 | 1021 | ||
1022 | 1022 | ||
1023 | 1023 | @Callable(i) | |
1024 | 1024 | func unstakeNFT (assetIdStr) = { | |
1025 | 1025 | let prologActions = prolog(i) | |
1026 | 1026 | if ((size(i.payments) != 0)) | |
1027 | 1027 | then throw("No payments required") | |
1028 | 1028 | else { | |
1029 | 1029 | let assetId = fromBase58String(assetIdStr) | |
1030 | 1030 | let addr = toString(i.caller) | |
1031 | 1031 | let asset = value(assetInfo(assetId)) | |
1032 | 1032 | let timeKey = keyStakedTimeByAssetIdAndOwner(assetIdStr, addr) | |
1033 | 1033 | if (!(isDefined(getInteger(timeKey)))) | |
1034 | 1034 | then throw((("NFT " + asset.name) + " is not staked by you")) | |
1035 | 1035 | else { | |
1036 | 1036 | let nftsKey = keyStakedNFTsByOwner(addr) | |
1037 | 1037 | let nfts = split_4C(valueOrElse(getString(nftsKey), ""), "_") | |
1038 | 1038 | let idx = indexOf(nfts, assetIdStr) | |
1039 | 1039 | if (!(isDefined(idx))) | |
1040 | 1040 | then throw(("Your staked NFTs don't contain " + assetIdStr)) | |
1041 | 1041 | else { | |
1042 | 1042 | let listAction = if ((size(nfts) > 1)) | |
1043 | 1043 | then StringEntry(nftsKey, makeString_2C(removeByIndex(nfts, value(idx)), "_")) | |
1044 | 1044 | else DeleteEntry(nftsKey) | |
1045 | 1045 | let isWL = (asset.issuer == this) | |
1046 | 1046 | if (isWL) | |
1047 | 1047 | then { | |
1048 | 1048 | let wlNftNumber = valueOrElse(getInteger(keyUserWlNftNumber(addr)), 0) | |
1049 | 1049 | let bonusVal = (bonusByDescription(value(asset.description)) * 10000) | |
1050 | - | let $ | |
1051 | - | let actions = $ | |
1052 | - | let wlgClaimedAmount = $ | |
1050 | + | let $t02717227251 = stakeUnstakeAcresInternal(0, addr, -(bonusVal)) | |
1051 | + | let actions = $t02717227251._1 | |
1052 | + | let wlgClaimedAmount = $t02717227251._2 | |
1053 | 1053 | $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 | 1054 | } | |
1055 | 1055 | else { | |
1056 | 1056 | let arkimalName = isArkimalIssued(asset) | |
1057 | 1057 | if ((arkimalName == "")) | |
1058 | 1058 | then throw("Only WavesLands and Arkimals NFT tokens are accepted") | |
1059 | 1059 | else { | |
1060 | 1060 | let arkNftNumber = valueOrElse(getInteger(keyUserArkNftNumber(addr)), 0) | |
1061 | - | let $ | |
1062 | - | let actions = $ | |
1063 | - | let wlgClaimedAmount = $ | |
1061 | + | let $t02791127995 = stakeUnstakeAcresInternal(0, addr, -(ARK_NFT_BONUS)) | |
1062 | + | let actions = $t02791127995._1 | |
1063 | + | let wlgClaimedAmount = $t02791127995._2 | |
1064 | 1064 | $Tuple2((((((actions :+ listAction) :+ IntegerEntry(keyUserArkNftNumber(addr), (arkNftNumber - 1))) :+ DeleteEntry(keyStakedTimeByAssetIdAndOwner(toBase58String(assetId), addr))) :+ ScriptTransfer(i.caller, 1, assetId)) ++ prologActions), wlgClaimedAmount) | |
1065 | 1065 | } | |
1066 | 1066 | } | |
1067 | 1067 | } | |
1068 | 1068 | } | |
1069 | 1069 | } | |
1070 | 1070 | } | |
1071 | 1071 | ||
1072 | 1072 | ||
1073 | 1073 | ||
1074 | 1074 | @Callable(i) | |
1075 | 1075 | func exchangeNFTs () = if ((i.caller != this)) | |
1076 | 1076 | then throw("Temporary disabled") | |
1077 | 1077 | else { | |
1078 | 1078 | let prologActions = prolog(i) | |
1079 | 1079 | if ((3 > size(i.payments))) | |
1080 | 1080 | then throw("Min one WLGOLD and 2 NFT payments allowed") | |
1081 | 1081 | else if ((size(i.payments) > 10)) | |
1082 | 1082 | then throw("Max one WLGOLD and 9 NFT payments allowed") | |
1083 | 1083 | else { | |
1084 | 1084 | let addr = toString(i.caller) | |
1085 | 1085 | func addUp (acc,pmt) = { | |
1086 | 1086 | let assetId = valueOrErrorMessage(pmt.assetId, "WAVES payments not allowed") | |
1087 | 1087 | if ((assetId == wlgAssetId)) | |
1088 | 1088 | then $Tuple4((acc._1 + pmt.amount), acc._2, acc._3, acc._4) | |
1089 | 1089 | else { | |
1090 | 1090 | let asset = value(assetInfo(assetId)) | |
1091 | 1091 | if ((asset.issuer != this)) | |
1092 | 1092 | then throw("Only WL-issued NFTs allowed") | |
1093 | 1093 | else { | |
1094 | 1094 | let rarityIx = rarityIdxByDescriprion(value(asset.description)) | |
1095 | 1095 | if (if ((acc._4 > 0)) | |
1096 | 1096 | then (rarityIx != acc._4) | |
1097 | 1097 | else false) | |
1098 | 1098 | then throw("You can exchange only NFTs of the same rarity") | |
1099 | 1099 | else { | |
1100 | 1100 | let bonusPerc = bonusByDescription(value(asset.description)) | |
1101 | 1101 | $Tuple4(acc._1, (acc._2 + bonusPerc), (acc._3 :+ Burn(assetId, 1)), rarityIx) | |
1102 | 1102 | } | |
1103 | 1103 | } | |
1104 | 1104 | } | |
1105 | 1105 | } | |
1106 | 1106 | ||
1107 | - | let $ | |
1107 | + | let $t02944629662 = { | |
1108 | 1108 | let $l = i.payments | |
1109 | 1109 | let $s = size($l) | |
1110 | 1110 | let $acc0 = $Tuple4(0, 0, nil, -1) | |
1111 | 1111 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
1112 | 1112 | then $a | |
1113 | 1113 | else addUp($a, $l[$i]) | |
1114 | 1114 | ||
1115 | 1115 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
1116 | 1116 | then $a | |
1117 | 1117 | else throw("List size exceeds 10") | |
1118 | 1118 | ||
1119 | 1119 | $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 | 1120 | } | |
1121 | - | let wlgFee = $ | |
1122 | - | let totalBonus = $ | |
1123 | - | let burnActions = $ | |
1124 | - | let rarityIdx = $ | |
1121 | + | let wlgFee = $t02944629662._1 | |
1122 | + | let totalBonus = $t02944629662._2 | |
1123 | + | let burnActions = $t02944629662._3 | |
1124 | + | let rarityIdx = $t02944629662._4 | |
1125 | 1125 | let newRarityIdx = if ((rarityIdx == idxRarityC)) | |
1126 | 1126 | then if ((rarityThresholds[idxThresholdC] > totalBonus)) | |
1127 | 1127 | then idxRarityC | |
1128 | 1128 | else if ((rarityThresholds[idxThresholdU] > totalBonus)) | |
1129 | 1129 | then idxRarityU | |
1130 | 1130 | else throw((("You can advance only one level of rarity, max total bonus " + toString(rarityThresholds[idxThresholdU])) + "%")) | |
1131 | 1131 | else if ((rarityIdx == idxRarityU)) | |
1132 | 1132 | then if ((rarityThresholds[idxThresholdU] > totalBonus)) | |
1133 | 1133 | then idxRarityU | |
1134 | 1134 | else if ((rarityThresholds[idxThresholdL] > totalBonus)) | |
1135 | 1135 | then idxRarityL | |
1136 | 1136 | else throw((("You can advance only one level of rarity, max total bonus " + toString(rarityThresholds[idxThresholdL])) + "%")) | |
1137 | 1137 | else if ((rarityIdx == idxRarityL)) | |
1138 | 1138 | then if ((rarityThresholds[idxThresholdL] > totalBonus)) | |
1139 | 1139 | then idxRarityL | |
1140 | 1140 | else idxRarityE | |
1141 | 1141 | else if ((rarityIdx == idxRarityE)) | |
1142 | 1142 | then idxRarityE | |
1143 | 1143 | else if ((rarityIdx == idxRarityP)) | |
1144 | 1144 | then throw("You can't exchange NFTs of this rarity") | |
1145 | 1145 | else throw("Unknown rarity") | |
1146 | 1146 | let minWlgFee = fraction(totalBonus, MULT14, getWlgPrice(0)) | |
1147 | 1147 | let change = (wlgFee - minWlgFee) | |
1148 | 1148 | let forTeam = (minWlgFee / 2) | |
1149 | 1149 | let wlgRemain = asInt(invoke(wlgContract, "burnWlgold", [(minWlgFee - forTeam)], nil)) | |
1150 | 1150 | if ((0 > change)) | |
1151 | 1151 | then throw((("You need to attach " + fixedPoint(minWlgFee, 8)) + " WLGOLD as fee")) | |
1152 | 1152 | else { | |
1153 | 1153 | let changeActions = if ((change > 0)) | |
1154 | 1154 | then [ScriptTransfer(i.caller, change, wlgAssetId)] | |
1155 | 1155 | else nil | |
1156 | - | let $ | |
1157 | - | let issueNftActions = $ | |
1158 | - | let nftAssetId = $ | |
1156 | + | let $t03119931360 = issueNftCustom(idxNamePickaxe, newRarityIdx, idxCollDig, newRarityIdx, totalBonus, idxDescrPickaxe, idxBonusTypeFp, i.caller) | |
1157 | + | let issueNftActions = $t03119931360._1 | |
1158 | + | let nftAssetId = $t03119931360._2 | |
1159 | 1159 | let burned = size(burnActions) | |
1160 | 1160 | let burnCounterActions = if ((burned == 0)) | |
1161 | 1161 | then nil | |
1162 | 1162 | else [IntegerEntry(keyNftTotalBurned, (valueOrElse(getInteger(keyNftTotalBurned), 0) + burned))] | |
1163 | 1163 | $Tuple2((((((issueNftActions ++ burnActions) ++ burnCounterActions) ++ prologActions) ++ changeActions) :+ ScriptTransfer(addressFromStringValue(getStringValue(wlgContract, teamAddrKey)), forTeam, wlgAssetId)), $Tuple2(nftAssetId, wlgRemain)) | |
1164 | 1164 | } | |
1165 | 1165 | } | |
1166 | 1166 | } | |
1167 | 1167 | ||
1168 | 1168 | ||
1169 | 1169 | ||
1170 | 1170 | @Callable(i) | |
1171 | 1171 | func openNftChest () = if ((i.caller != this)) | |
1172 | 1172 | then throw("Temporary disabled") | |
1173 | 1173 | else { | |
1174 | 1174 | let prologActions = prolog(i) | |
1175 | 1175 | if ((size(i.payments) != 1)) | |
1176 | 1176 | then throw("exactly 1 payment must be attached") | |
1177 | 1177 | else { | |
1178 | 1178 | let pmt = i.payments[0] | |
1179 | 1179 | let wlgAmount = pmt.amount | |
1180 | 1180 | if (if (!(isDefined(pmt.assetId))) | |
1181 | 1181 | then true | |
1182 | 1182 | else (value(pmt.assetId) != wlgAssetId)) | |
1183 | 1183 | then throw("WLGOLD payments only!") | |
1184 | 1184 | else { | |
1185 | 1185 | let minWlgFee = fraction(NFT_CHEST_PRICE_USDT, MULT8, getWlgPrice(0)) | |
1186 | 1186 | let change = (wlgAmount - minWlgFee) | |
1187 | 1187 | let forTeam = (minWlgFee / 2) | |
1188 | 1188 | let wlgRemain = asInt(invoke(wlgContract, "burnWlgold", [(minWlgFee - forTeam)], nil)) | |
1189 | 1189 | if ((0 > change)) | |
1190 | 1190 | then throw((("You need to attach " + fixedPoint(minWlgFee, 8)) + " WLGOLD as fee")) | |
1191 | 1191 | else { | |
1192 | 1192 | let changeActions = if ((change > 0)) | |
1193 | 1193 | then [ScriptTransfer(i.caller, change, wlgAssetId)] | |
1194 | 1194 | else nil | |
1195 | 1195 | let addr = toString(i.caller) | |
1196 | 1196 | let finishKey = keyCommit(addr) | |
1197 | 1197 | let finishBlock = valueOrErrorMessage(getInteger(finishKey), "You have to commitForRandom() first!") | |
1198 | 1198 | if ((finishBlock > height)) | |
1199 | 1199 | then throw(("Random number is not ready yet, wait until height = " + toString(finishBlock))) | |
1200 | 1200 | else { | |
1201 | 1201 | let entropy = value(value(blockInfoByHeight(finishBlock)).vrf) | |
1202 | 1202 | let salt = fromBase58String(split(valueOrElse(getString(keyCurWeekTxIdByUser(addr)), "42_DEFAULT"), "_")[1]) | |
1203 | 1203 | let rand = getRandomNumber(100, salt, entropy) | |
1204 | - | let $ | |
1204 | + | let $t03344133713 = if ((84 > rand)) | |
1205 | 1205 | then $Tuple2(1, idxRarityC) | |
1206 | 1206 | else if ((98 > rand)) | |
1207 | 1207 | then $Tuple2(5, idxRarityU) | |
1208 | 1208 | else $Tuple2(10, idxRarityL) | |
1209 | - | let bonus = $ | |
1210 | - | let rarityIdx = $ | |
1211 | - | let $ | |
1212 | - | let issueNftActions = $ | |
1213 | - | let nftAssetId = $ | |
1209 | + | let bonus = $t03344133713._1 | |
1210 | + | let rarityIdx = $t03344133713._2 | |
1211 | + | let $t03371633866 = issueNftCustom(idxNamePickaxe, rarityIdx, idxCollDig, rarityIdx, bonus, idxDescrPickaxe, idxBonusTypeFp, i.caller) | |
1212 | + | let issueNftActions = $t03371633866._1 | |
1213 | + | let nftAssetId = $t03371633866._2 | |
1214 | 1214 | $Tuple2(((((issueNftActions ++ prologActions) ++ changeActions) :+ ScriptTransfer(addressFromStringValue(getStringValue(wlgContract, teamAddrKey)), forTeam, wlgAssetId)) :+ DeleteEntry(finishKey)), $Tuple2(nftAssetId, wlgRemain)) | |
1215 | 1215 | } | |
1216 | 1216 | } | |
1217 | 1217 | } | |
1218 | 1218 | } | |
1219 | 1219 | } | |
1220 | 1220 | ||
1221 | 1221 | ||
1222 | 1222 | ||
1223 | 1223 | @Callable(i) | |
1224 | 1224 | func commitForRandom () = if ((i.caller != this)) | |
1225 | 1225 | then throw("Temporary disabled") | |
1226 | 1226 | else { | |
1227 | 1227 | let prologActions = prolog(i) | |
1228 | 1228 | let addr = toString(i.caller) | |
1229 | 1229 | let finishKey = keyCommit(addr) | |
1230 | 1230 | if (isDefined(getInteger(finishKey))) | |
1231 | 1231 | then throw("You already commited for random, please use it") | |
1232 | 1232 | else { | |
1233 | 1233 | let finishBlock = (height + RANDOM_DELAY) | |
1234 | 1234 | $Tuple2(([IntegerEntry(finishKey, finishBlock)] ++ prologActions), finishBlock) | |
1235 | 1235 | } | |
1236 | 1236 | } | |
1237 | 1237 | ||
1238 | 1238 | ||
1239 | 1239 | ||
1240 | 1240 | @Callable(i) | |
1241 | 1241 | func drawPromoRound (roundId) = if ((i.caller != this)) | |
1242 | 1242 | then throw("Permission denied") | |
1243 | 1243 | else { | |
1244 | 1244 | let today = (height / DAY_BLOCKS) | |
1245 | 1245 | let maxValue = valueOrElse(getInteger(keyTotalPromoTickets), 0) | |
1246 | 1246 | if ((maxValue == 0)) | |
1247 | 1247 | then throw("No tickets to draw") | |
1248 | 1248 | else { | |
1249 | 1249 | let b = (today * DAY_BLOCKS) | |
1250 | 1250 | let h = if ((b > VRF_OFFSET)) | |
1251 | 1251 | then b | |
1252 | 1252 | else (b + VRF_OFFSET) | |
1253 | 1253 | let entropy = value(value(blockInfoByHeight(h)).vrf) | |
1254 | 1254 | let promoMap = valueOrElse(getString(keyPromoMap), "") | |
1255 | 1255 | if ((promoMap == "")) | |
1256 | 1256 | then throw("No participants") | |
1257 | 1257 | else { | |
1258 | 1258 | func singleDraw (ac,j) = { | |
1259 | 1259 | let promoList = if ((ac._3 == "")) | |
1260 | 1260 | then nil | |
1261 | 1261 | else split_51C(ac._3, "_") | |
1262 | 1262 | if ((j >= size(promoList))) | |
1263 | 1263 | then ac | |
1264 | 1264 | else { | |
1265 | 1265 | let rand = getRandomNumber(ac._1, ac._2, entropy) | |
1266 | 1266 | func countTickets (acc,el) = { | |
1267 | 1267 | let parts = split(el, ":") | |
1268 | 1268 | let addr = parts[0] | |
1269 | 1269 | let tickets = parseIntValue(parts[1]) | |
1270 | 1270 | let newTotal = (acc._1 + tickets) | |
1271 | 1271 | if (if ((acc._3 == "")) | |
1272 | 1272 | then (newTotal > rand) | |
1273 | 1273 | else false) | |
1274 | 1274 | then $Tuple3(newTotal, tickets, addr) | |
1275 | 1275 | else $Tuple3(newTotal, acc._2, acc._3) | |
1276 | 1276 | } | |
1277 | 1277 | ||
1278 | 1278 | let r = { | |
1279 | 1279 | let $l = promoList | |
1280 | 1280 | let $s = size($l) | |
1281 | 1281 | let $acc0 = $Tuple3(0, 0, "") | |
1282 | 1282 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
1283 | 1283 | then $a | |
1284 | 1284 | else countTickets($a, $l[$i]) | |
1285 | 1285 | ||
1286 | 1286 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
1287 | 1287 | then $a | |
1288 | 1288 | else throw("List size exceeds 200") | |
1289 | 1289 | ||
1290 | 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 | 1291 | } | |
1292 | 1292 | let winner = r._3 | |
1293 | 1293 | if ((winner == "")) | |
1294 | 1294 | then ac | |
1295 | 1295 | else { | |
1296 | 1296 | let mapParts = split_51C(ac._3, winner) | |
1297 | 1297 | let newMap = if ((mapParts[0] == "")) | |
1298 | 1298 | then drop(mapParts[1], 5) | |
1299 | 1299 | else (dropRight(mapParts[0], 1) + drop(mapParts[1], 4)) | |
1300 | 1300 | let winActions = if ((j == 0)) | |
1301 | 1301 | then invoke(this, "issueMittenP", [winner], nil) | |
1302 | 1302 | else invoke(this, "stakeAcresFor", [winner, promoAwardPerRound[j], true], nil) | |
1303 | 1303 | if ((winActions == winActions)) | |
1304 | 1304 | then { | |
1305 | 1305 | let newSalt = fromBase58String(split(valueOrElse(getString(keyCurWeekTxIdByUser(winner)), "0_DEFAULT"), "_")[1]) | |
1306 | 1306 | $Tuple4((ac._1 - r._2), newSalt, newMap, (ac._4 :+ winner)) | |
1307 | 1307 | } | |
1308 | 1308 | else throw("Strict value is not equal to itself.") | |
1309 | 1309 | } | |
1310 | 1310 | } | |
1311 | 1311 | } | |
1312 | 1312 | ||
1313 | 1313 | let draws = { | |
1314 | 1314 | let $l = [0, 1, 2, 3, 4, 5] | |
1315 | 1315 | let $s = size($l) | |
1316 | 1316 | let $acc0 = $Tuple4(maxValue, i.transactionId, promoMap, nil) | |
1317 | 1317 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
1318 | 1318 | then $a | |
1319 | 1319 | else singleDraw($a, $l[$i]) | |
1320 | 1320 | ||
1321 | 1321 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
1322 | 1322 | then $a | |
1323 | 1323 | else throw("List size exceeds 6") | |
1324 | 1324 | ||
1325 | 1325 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6) | |
1326 | 1326 | } | |
1327 | 1327 | $Tuple2([StringEntry(keyPromoMap, draws._3), IntegerEntry(keyTotalPromoTickets, draws._1), StringEntry(keyPromoRoundWinners(roundId), makeString(draws._4, "_"))], 0) | |
1328 | 1328 | } | |
1329 | 1329 | } | |
1330 | 1330 | } | |
1331 | 1331 | ||
1332 | 1332 |
github/deemru/w8io/169f3d6 173.84 ms ◑