tx · Asci4rkPJSMMiAbwkqrPCczRn23phQpsQ9vUse34dTUR 3NBPx1Fciu3JQNEGZ21jSnTdutLNGGBUSXh: -0.03200000 Waves 2024.12.05 04:12 [3400660] smart account 3NBPx1Fciu3JQNEGZ21jSnTdutLNGGBUSXh > SELF 0.00000000 Waves
{ "type": 13, "id": "Asci4rkPJSMMiAbwkqrPCczRn23phQpsQ9vUse34dTUR", "fee": 3200000, "feeAssetId": null, "timestamp": 1733361241220, "version": 2, "chainId": 84, "sender": "3NBPx1Fciu3JQNEGZ21jSnTdutLNGGBUSXh", "senderPublicKey": "3QtfC1XbLZXdeawMDeSERy9vvjUmj1XYd2GFmrvx7pWQ", "proofs": [ "4B5ZiTpc8Yx6zewu4wsoRtGSThxPJPsr3BdQ8GJ6iygZxbk827UET4GjfSAiJqpeGqvdhZGFYCucog32PCPFzz8d" ], "script": "base64:BgJMCAISABIECgIICBIDCgEEEgMKAQESABIAEgMKAQESABIECgIIARIDCgEIEgMKAQgSAwoBCBIECgIIARIDCgEIEgASAwoBCBIAEgASAH0AA1NFUAICX18ABU1VTFQ2AMCEPQAFTVVMVDcAgK3iBAAFTVVMVDgAgMLXLwAGTVVMVDE0AICA6YOx3hYACkRBWV9NSUxMSVMAgLiZKQAVVVNEVDJBQ1JFU19NVUxUSVBMSUVSAAoAE09ORV9QRVJDRU5UX0RJVklTT1IAZAAMUkFORE9NX0RFTEFZAAIAFE5GVF9DSEVTVF9QUklDRV9VU0RUAMCWsQIABWNoYWluCQDJAQIJAMoBAggFBHRoaXMFYnl0ZXMAAQABAAtXRUVLX0JMT0NLUwQHJG1hdGNoMAUFY2hhaW4DCQAAAgEBVwUHJG1hdGNoMADgTgMJAAACAQFUBQckbWF0Y2gwALQBCQACAQINVW5rbm93biBjaGFpbgALdXNkdEFzc2V0SWQEByRtYXRjaDAFBWNoYWluAwkAAAIBAVcFByRtYXRjaDABIITaerIIAz9O0bvKju6Lk7zJgt0LXfoHlqjUI/moD/+5AwkAAAIBAVQF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2yVw9hmBcLxE59gsYzaDAsYHqRSU Diff:
Old | New | Differences | |
---|---|---|---|
278 | 278 | ||
279 | 279 | ||
280 | 280 | let OLD_STAKING_DEADL = 1733346000000 | |
281 | + | ||
282 | + | let MAX_LENDS_TO_CONVERT = 18 | |
281 | 283 | ||
282 | 284 | let keyLastAcresSellTime = "lastAcresSellTime" | |
283 | 285 | ||
698 | 700 | let landsResult = if (isDefined(landsStr)) | |
699 | 701 | then { | |
700 | 702 | let landsVal = value(landsStr) | |
701 | - | let cutLands = if (( | |
703 | + | let cutLands = if (((45 * MAX_LENDS_TO_CONVERT) > size(landsVal))) | |
702 | 704 | then landsVal | |
703 | - | else take(landsVal, value(lastIndexOf(landsVal, "_", (45 * | |
705 | + | else take(landsVal, value(lastIndexOf(landsVal, "_", (45 * MAX_LENDS_TO_CONVERT)))) | |
704 | 706 | let lands = split_51C(value(cutLands), "_") | |
705 | 707 | func oneLand (acc,landAssetId) = if ((landAssetId == "")) | |
706 | 708 | then throw("landAssetId is required") | |
729 | 731 | let req = invoke(oldAcresAddress, "requestAcresCallback", [(((rr._1 + rr._2) + rr._3) + rr._4)], nil) | |
730 | 732 | if ((req == req)) | |
731 | 733 | then { | |
732 | - | let $ | |
733 | - | let nftActions = $ | |
734 | - | let nftAssetId = $ | |
734 | + | let $t01782717963 = issueNftCustom(idxNameShovel, idxKeyP, idxCollDig, idxRarityP, 3, idxDescrShovel, idxBonusTypeFp, caller) | |
735 | + | let nftActions = $t01782717963._1 | |
736 | + | let nftAssetId = $t01782717963._2 | |
735 | 737 | $Tuple6(rr._1, rr._2, rr._3, rr._4, rr._5, nftActions) | |
736 | 738 | } | |
737 | 739 | else throw("Strict value is not equal to itself.") | |
799 | 801 | let userFpKey = keyFarmingPowerByUser(address) | |
800 | 802 | let oldFp = valueOrElse(getInteger(userFpKey), 0) | |
801 | 803 | let userBonus = valueOrElse(getInteger(acres2Contract, keyUserFullBonus(address)), 0) | |
802 | - | let $ | |
803 | - | let newBonusedFp = $ | |
804 | - | let ignored = $ | |
804 | + | let $t02018720274 = getFarmingPowerByAcresAndBonus(newAcresAmount, userBonus) | |
805 | + | let newBonusedFp = $t02018720274._1 | |
806 | + | let ignored = $t02018720274._2 | |
805 | 807 | let oldTotalFp = valueOrElse(getInteger(totalFarmingPowerKey), 0) | |
806 | 808 | let newTotalFp = ((oldTotalFp + newBonusedFp) - oldFp) | |
807 | 809 | $Tuple2(nil, [oldFp, newBonusedFp, oldTotalFp, newTotalFp]) | |
843 | 845 | let listAction = StringEntry(nftsKey, makeString_2C((nfts :+ assetIdStr), "_")) | |
844 | 846 | if ((asset.issuer == this)) | |
845 | 847 | then { | |
846 | - | let $ | |
847 | - | let actions = $ | |
848 | - | let wlgClaimedAmount = $ | |
848 | + | let $t02168321873 = stakeNftInternal(addr, assetIdStr, (bonusByDescription(value(asset.description)) * 10000), keyUserWlNftNumber(addr), keyWlNftTotalStaked, MAX_WL_NFTS) | |
849 | + | let actions = $t02168321873._1 | |
850 | + | let wlgClaimedAmount = $t02168321873._2 | |
849 | 851 | $Tuple2(((prologActions ++ actions) :+ listAction), wlgClaimedAmount) | |
850 | 852 | } | |
851 | 853 | else if ((isArkimalIssued(asset) == "")) | |
852 | 854 | then throw("Only WavesLands and Arkimals NFT tokens are accepted") | |
853 | 855 | else { | |
854 | - | let $ | |
855 | - | let actions = $ | |
856 | - | let wlgClaimedAmount = $ | |
856 | + | let $t02205422205 = stakeNftInternal(addr, assetIdStr, ARK_NFT_BONUS, keyUserArkNftNumber(addr), keyArkNftTotalStaked, MAX_ARK_NFTS) | |
857 | + | let actions = $t02205422205._1 | |
858 | + | let wlgClaimedAmount = $t02205422205._2 | |
857 | 859 | $Tuple2(((prologActions ++ actions) :+ listAction), wlgClaimedAmount) | |
858 | 860 | } | |
859 | 861 | } | |
890 | 892 | then { | |
891 | 893 | let wlNftNumber = valueOrElse(getInteger(keyUserWlNftNumber(addr)), 0) | |
892 | 894 | let bonusVal = (bonusByDescription(value(asset.description)) * 10000) | |
893 | - | let $ | |
894 | - | let actions = $ | |
895 | - | let wlgClaimedAmount = $ | |
895 | + | let $t02337023449 = stakeUnstakeAcresInternal(0, addr, -(bonusVal)) | |
896 | + | let actions = $t02337023449._1 | |
897 | + | let wlgClaimedAmount = $t02337023449._2 | |
896 | 898 | $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) | |
897 | 899 | } | |
898 | 900 | else { | |
901 | 903 | then throw("Only WavesLands and Arkimals NFT tokens are accepted") | |
902 | 904 | else { | |
903 | 905 | let arkNftNumber = valueOrElse(getInteger(keyUserArkNftNumber(addr)), 0) | |
904 | - | let $ | |
905 | - | let actions = $ | |
906 | - | let wlgClaimedAmount = $ | |
906 | + | let $t02410924193 = stakeUnstakeAcresInternal(0, addr, -(ARK_NFT_BONUS)) | |
907 | + | let actions = $t02410924193._1 | |
908 | + | let wlgClaimedAmount = $t02410924193._2 | |
907 | 909 | $Tuple2((((((actions :+ listAction) :+ IntegerEntry(keyUserArkNftNumber(addr), (arkNftNumber - 1))) :+ DeleteEntry(keyStakedTimeByAssetIdAndOwner(toBase58String(assetId), addr))) :+ ScriptTransfer(i.caller, 1, assetId)) ++ prologActions), wlgClaimedAmount) | |
908 | 910 | } | |
909 | 911 | } | |
945 | 947 | } | |
946 | 948 | } | |
947 | 949 | ||
948 | - | let $ | |
950 | + | let $t02558225798 = { | |
949 | 951 | let $l = i.payments | |
950 | 952 | let $s = size($l) | |
951 | 953 | let $acc0 = $Tuple4(0, 0, nil, -1) | |
959 | 961 | ||
960 | 962 | $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) | |
961 | 963 | } | |
962 | - | let wlgFee = $ | |
963 | - | let totalBonus = $ | |
964 | - | let burnActions = $ | |
965 | - | let rarityIdx = $ | |
964 | + | let wlgFee = $t02558225798._1 | |
965 | + | let totalBonus = $t02558225798._2 | |
966 | + | let burnActions = $t02558225798._3 | |
967 | + | let rarityIdx = $t02558225798._4 | |
966 | 968 | let newRarityIdx = if ((rarityIdx == idxRarityC)) | |
967 | 969 | then if ((rarityThresholds[idxThresholdC] > totalBonus)) | |
968 | 970 | then idxRarityC | |
994 | 996 | let changeActions = if ((change > 0)) | |
995 | 997 | then [ScriptTransfer(i.caller, change, wlgAssetId)] | |
996 | 998 | else nil | |
997 | - | let $ | |
998 | - | let issueNftActions = $ | |
999 | - | let nftAssetId = $ | |
999 | + | let $t02733527496 = issueNftCustom(idxNamePickaxe, newRarityIdx, idxCollDig, newRarityIdx, totalBonus, idxDescrPickaxe, idxBonusTypeFp, i.caller) | |
1000 | + | let issueNftActions = $t02733527496._1 | |
1001 | + | let nftAssetId = $t02733527496._2 | |
1000 | 1002 | let burned = size(burnActions) | |
1001 | 1003 | let burnCounterActions = if ((burned == 0)) | |
1002 | 1004 | then nil | |
1040 | 1042 | let entropy = value(value(blockInfoByHeight(finishBlock)).vrf) | |
1041 | 1043 | let salt = fromBase58String(split(valueOrElse(getString(keyCurWeekTxIdByUser(addr)), "42_DEFAULT"), "_")[1]) | |
1042 | 1044 | let rand = getRandomNumber(100, salt, entropy) | |
1043 | - | let $ | |
1045 | + | let $t02951529787 = if ((84 > rand)) | |
1044 | 1046 | then $Tuple2(1, idxRarityC) | |
1045 | 1047 | else if ((98 > rand)) | |
1046 | 1048 | then $Tuple2(5, idxRarityU) | |
1047 | 1049 | else $Tuple2(10, idxRarityL) | |
1048 | - | let bonus = $ | |
1049 | - | let rarityIdx = $ | |
1050 | - | let $ | |
1051 | - | let issueNftActions = $ | |
1052 | - | let nftAssetId = $ | |
1050 | + | let bonus = $t02951529787._1 | |
1051 | + | let rarityIdx = $t02951529787._2 | |
1052 | + | let $t02979029940 = issueNftCustom(idxNamePickaxe, rarityIdx, idxCollDig, rarityIdx, bonus, idxDescrPickaxe, idxBonusTypeFp, i.caller) | |
1053 | + | let issueNftActions = $t02979029940._1 | |
1054 | + | let nftAssetId = $t02979029940._2 | |
1053 | 1055 | $Tuple2(((((issueNftActions ++ prologActions) ++ changeActions) :+ ScriptTransfer(addressFromStringValue(getStringValue(wlgContract, teamAddrKey)), forTeam, wlgAssetId)) :+ DeleteEntry(finishKey)), $Tuple2(nftAssetId, wlgRemain)) | |
1054 | 1056 | } | |
1055 | 1057 | } |
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 WEEK_BLOCKS = match chain { | |
27 | 27 | case _ => | |
28 | 28 | if ((base58'2W' == $match0)) | |
29 | 29 | then 10080 | |
30 | 30 | else if ((base58'2T' == $match0)) | |
31 | 31 | then 180 | |
32 | 32 | else throw("Unknown chain") | |
33 | 33 | } | |
34 | 34 | ||
35 | 35 | let usdtAssetId = match chain { | |
36 | 36 | case _ => | |
37 | 37 | if ((base58'2W' == $match0)) | |
38 | 38 | then base58'9wc3LXNA4TEBsXyKtoLE9mrbDD7WMHXvXrCjZvabLAsi' | |
39 | 39 | else if ((base58'2T' == $match0)) | |
40 | 40 | then base58'6mWwf9mZBjVgkC54idpyaZLQfAosD914wT8fGf2iiY63' | |
41 | 41 | else throw("Unknown chain") | |
42 | 42 | } | |
43 | 43 | ||
44 | 44 | let defaultRest2AddressStr = match chain { | |
45 | 45 | case _ => | |
46 | 46 | if ((base58'2W' == $match0)) | |
47 | 47 | then "3PFwYta8biEz31zpeFe5DJK8wE5trSpQVF8" | |
48 | 48 | else if ((base58'2T' == $match0)) | |
49 | 49 | then "3N7UuYar6264P58FBhVWKPQAh4Yua2hgngv" | |
50 | 50 | else throw("Unknown chain") | |
51 | 51 | } | |
52 | 52 | ||
53 | 53 | let arbitrageDelay = match chain { | |
54 | 54 | case _ => | |
55 | 55 | if ((base58'2W' == $match0)) | |
56 | 56 | then DAY_MILLIS | |
57 | 57 | else if ((base58'2T' == $match0)) | |
58 | 58 | then 60000 | |
59 | 59 | else throw("Unknown chain") | |
60 | 60 | } | |
61 | 61 | ||
62 | 62 | let oldStakingContractStr = match chain { | |
63 | 63 | case _ => | |
64 | 64 | if ((base58'2W' == $match0)) | |
65 | 65 | then "3PLncXtS1U83D6cQbFD3H8rBHPLgzxSFKZ1" | |
66 | 66 | else if ((base58'2T' == $match0)) | |
67 | 67 | then "3NDCyBG5q85JuaRiigUeEtainyjCQT3XpZm" | |
68 | 68 | else throw("Unknown chain") | |
69 | 69 | } | |
70 | 70 | ||
71 | 71 | func getStringOrFail (address,key) = valueOrErrorMessage(getString(address, key), makeString(["mandatory ", toString(address), ".", key, " is not defined"], "")) | |
72 | 72 | ||
73 | 73 | ||
74 | 74 | let IdxCfgAcres2Dapp = 1 | |
75 | 75 | ||
76 | 76 | let IdxCfgWlgDapp = 2 | |
77 | 77 | ||
78 | 78 | let IdxCfgInvestFundDapp = 5 | |
79 | 79 | ||
80 | 80 | func keyRestCfg () = "%s__restConfig" | |
81 | 81 | ||
82 | 82 | ||
83 | 83 | func keyRest2Address () = "%s__rest2Addr" | |
84 | 84 | ||
85 | 85 | ||
86 | 86 | func readRestCfgOrFail (rest) = split_4C(getStringOrFail(rest, keyRestCfg()), SEP) | |
87 | 87 | ||
88 | 88 | ||
89 | 89 | func getContractAddressOrFail (rest2Cfg,idx) = valueOrErrorMessage(addressFromString(rest2Cfg[idx]), ("Rest cfg doesn't contain address at index " + toString(idx))) | |
90 | 90 | ||
91 | 91 | ||
92 | 92 | let rest2Contract = addressFromStringValue(valueOrElse(getString(this, keyRest2Address()), defaultRest2AddressStr)) | |
93 | 93 | ||
94 | 94 | let rest2Cfg = readRestCfgOrFail(rest2Contract) | |
95 | 95 | ||
96 | 96 | let acres2Contract = getContractAddressOrFail(rest2Cfg, IdxCfgAcres2Dapp) | |
97 | 97 | ||
98 | 98 | let wlgContract = getContractAddressOrFail(rest2Cfg, IdxCfgWlgDapp) | |
99 | 99 | ||
100 | 100 | let investFundContract = getContractAddressOrFail(rest2Cfg, IdxCfgInvestFundDapp) | |
101 | 101 | ||
102 | 102 | let oldAcresContractKey = "oldAcresContract" | |
103 | 103 | ||
104 | 104 | func keyBlocked () = "contractsBlocked" | |
105 | 105 | ||
106 | 106 | ||
107 | 107 | func keyLastWeekTxIdByUser (addr) = ("lastWeekTxIdByUser_" + addr) | |
108 | 108 | ||
109 | 109 | ||
110 | 110 | func keyCurWeekTxIdByUser (addr) = ("curWeekTxIdByUser_" + addr) | |
111 | 111 | ||
112 | 112 | ||
113 | 113 | func keyCommit (address) = ("finishBlockFor_" + address) | |
114 | 114 | ||
115 | 115 | ||
116 | 116 | let wlgAssetIdKey = "wlg_assetId" | |
117 | 117 | ||
118 | 118 | let wlgAssetId = valueOrErrorMessage(getBinary(wlgContract, wlgAssetIdKey), "WLGOLD is not issued yet") | |
119 | 119 | ||
120 | 120 | let acresIssuedAmountKey = "acresIssuedAmount" | |
121 | 121 | ||
122 | 122 | let acresAssetIdKey = "acresAssetId" | |
123 | 123 | ||
124 | 124 | let acresAssetId = valueOrErrorMessage(getBinary(acres2Contract, acresAssetIdKey), "ACRES is not issued yet") | |
125 | 125 | ||
126 | 126 | func keyAcresStakedTimeByUser (addr) = ("acresStakedTimeByUser_" + addr) | |
127 | 127 | ||
128 | 128 | ||
129 | 129 | func keyStakedLandsByOwner (ownerAddr) = ("stakedLandsByOwner_" + ownerAddr) | |
130 | 130 | ||
131 | 131 | ||
132 | 132 | func keyStakedDuckByOwner (ownerAddr) = ("stakedDuckByOwner_" + ownerAddr) | |
133 | 133 | ||
134 | 134 | ||
135 | 135 | func keyStakedTimeByAssetIdAndOwner (assetId,addr) = ((("st_" + assetId) + "_") + addr) | |
136 | 136 | ||
137 | 137 | ||
138 | 138 | func keyStakedNFTsByOwner (ownerAddr) = ("stakedNFTsByOwner_" + ownerAddr) | |
139 | 139 | ||
140 | 140 | ||
141 | 141 | func asInt (v) = match v { | |
142 | 142 | case n: Int => | |
143 | 143 | n | |
144 | 144 | case _ => | |
145 | 145 | throw("fail to cast into Int") | |
146 | 146 | } | |
147 | 147 | ||
148 | 148 | ||
149 | 149 | func asTuple5Ints (val) = match val { | |
150 | 150 | case t: (Int, Int, Int, Int, Int) => | |
151 | 151 | t | |
152 | 152 | case _ => | |
153 | 153 | throw("fail to cast into (Int, Int, Int, Int, Int)") | |
154 | 154 | } | |
155 | 155 | ||
156 | 156 | ||
157 | 157 | func asTuple4Ints (val) = match val { | |
158 | 158 | case t: (Int, Int, Int, Int) => | |
159 | 159 | t | |
160 | 160 | case _ => | |
161 | 161 | throw("fail to cast into (Int, Int, Int, Int)") | |
162 | 162 | } | |
163 | 163 | ||
164 | 164 | ||
165 | 165 | func asTuple3Ints (val) = match val { | |
166 | 166 | case t: (Int, Int, Int) => | |
167 | 167 | t | |
168 | 168 | case _ => | |
169 | 169 | throw("fail to cast into (Int, Int, Int)") | |
170 | 170 | } | |
171 | 171 | ||
172 | 172 | ||
173 | 173 | func asTuple2Ints (val) = match val { | |
174 | 174 | case t: (Int, Int) => | |
175 | 175 | t | |
176 | 176 | case _ => | |
177 | 177 | throw("fail to cast into (Int, Int)") | |
178 | 178 | } | |
179 | 179 | ||
180 | 180 | ||
181 | 181 | func fixedPoint (val,decimals) = { | |
182 | 182 | let tenPow = pow(10, 0, decimals, 0, 0, DOWN) | |
183 | 183 | let lowPart = toString((val % tenPow)) | |
184 | 184 | let zeroes = drop(toString(tenPow), (1 + size(lowPart))) | |
185 | 185 | (((toString((val / tenPow)) + ".") + zeroes) + lowPart) | |
186 | 186 | } | |
187 | 187 | ||
188 | 188 | ||
189 | 189 | func getRandomNumber (maxValue,salt,entropy) = if ((0 >= maxValue)) | |
190 | 190 | then throw("maxValue should be > 0") | |
191 | 191 | else { | |
192 | 192 | let randomHash = sha256_16Kb((salt + entropy)) | |
193 | 193 | (toInt(randomHash) % maxValue) | |
194 | 194 | } | |
195 | 195 | ||
196 | 196 | ||
197 | 197 | let M6_ = 1000000 | |
198 | 198 | ||
199 | 199 | let M8_ = 100000000 | |
200 | 200 | ||
201 | 201 | let wlgIssuedAmtKey = "wlg_issuedAmount" | |
202 | 202 | ||
203 | 203 | let zbIssuedAmtKey = "zbill_issuedAmount" | |
204 | 204 | ||
205 | 205 | func keyAcresStakedAmtByUser (addr) = ("acresStakedAmountByUser_" + addr) | |
206 | 206 | ||
207 | 207 | ||
208 | 208 | func keyFarmingPowerByUser (addr) = ("farmingPowerByUser_" + addr) | |
209 | 209 | ||
210 | 210 | ||
211 | 211 | let acresStakdTotalKey = "acresStakedAmountTotal" | |
212 | 212 | ||
213 | 213 | let totalFarmingPowerKey = "totalFarmingPower" | |
214 | 214 | ||
215 | 215 | let MAX_WL_NFTS = 3 | |
216 | 216 | ||
217 | 217 | let MAX_ARK_NFTS = 1 | |
218 | 218 | ||
219 | 219 | let ARK_NFT_BONUS = 5000 | |
220 | 220 | ||
221 | 221 | let MAX_NFTS_STAKED_BY_USER = 4 | |
222 | 222 | ||
223 | 223 | let keyNftTotalIssued = "nftTotalIssued" | |
224 | 224 | ||
225 | 225 | let keyNftTotalBurned = "nftTotalBurned" | |
226 | 226 | ||
227 | 227 | let keyWlNftTotalStaked = "WlNftTotalStaked" | |
228 | 228 | ||
229 | 229 | let keyArkNftTotalStaked = "ArkNftTotalStaked" | |
230 | 230 | ||
231 | 231 | func keyNftNumberByAssetId (assetId) = ("nftNumberByAssetId_" + assetId) | |
232 | 232 | ||
233 | 233 | ||
234 | 234 | func keyUserWlNftNumber (addr) = ("userWlNftNumber_" + addr) | |
235 | 235 | ||
236 | 236 | ||
237 | 237 | func keyUserArkNftNumber (addr) = ("userArkNftNumber_" + addr) | |
238 | 238 | ||
239 | 239 | ||
240 | 240 | func keyUserFullBonus (addr) = ("userFullBonus_" + addr) | |
241 | 241 | ||
242 | 242 | ||
243 | 243 | let levelAcres = [0, 10, 20, 40, 80, 150, 250, 400, 700, 1000] | |
244 | 244 | ||
245 | 245 | func getLevelByAcres (acres) = { | |
246 | 246 | let acr = ((acres + 99999999) / M8_) | |
247 | 247 | func checker (acc,item) = if ((item >= acr)) | |
248 | 248 | then acc | |
249 | 249 | else (acc + 1) | |
250 | 250 | ||
251 | 251 | let $l = levelAcres | |
252 | 252 | let $s = size($l) | |
253 | 253 | let $acc0 = 0 | |
254 | 254 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
255 | 255 | then $a | |
256 | 256 | else checker($a, $l[$i]) | |
257 | 257 | ||
258 | 258 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
259 | 259 | then $a | |
260 | 260 | else throw("List size exceeds 10") | |
261 | 261 | ||
262 | 262 | $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) | |
263 | 263 | } | |
264 | 264 | ||
265 | 265 | ||
266 | 266 | func getFarmingPowerByAcres (acres) = ((acres * 20) * (getLevelByAcres(acres) + 4)) | |
267 | 267 | ||
268 | 268 | ||
269 | 269 | func getFarmingPowerByAcresAndBonus (acres,bonus6) = { | |
270 | 270 | let notBonused = getFarmingPowerByAcres(acres) | |
271 | 271 | $Tuple2(fraction(notBonused, (M6_ + bonus6), M6_), notBonused) | |
272 | 272 | } | |
273 | 273 | ||
274 | 274 | ||
275 | 275 | let teamAddrKey = "teamAddr" | |
276 | 276 | ||
277 | 277 | func keyLastWlgTradeTimeByUser (addr) = ("lastArbTimeUser_" + addr) | |
278 | 278 | ||
279 | 279 | ||
280 | 280 | let OLD_STAKING_DEADL = 1733346000000 | |
281 | + | ||
282 | + | let MAX_LENDS_TO_CONVERT = 18 | |
281 | 283 | ||
282 | 284 | let keyLastAcresSellTime = "lastAcresSellTime" | |
283 | 285 | ||
284 | 286 | let keyLastLimitLeft = "lastLimitLeft" | |
285 | 287 | ||
286 | 288 | let names = ["Gold shovel", "Pickaxe"] | |
287 | 289 | ||
288 | 290 | let descriptions = ["Reward for early birds", "Increases FarmPower"] | |
289 | 291 | ||
290 | 292 | let idxDescrShovel = 0 | |
291 | 293 | ||
292 | 294 | let idxDescrPickaxe = 1 | |
293 | 295 | ||
294 | 296 | let rarityThresholds = [5, 10, 20] | |
295 | 297 | ||
296 | 298 | let idxThresholdC = 0 | |
297 | 299 | ||
298 | 300 | let idxThresholdU = 1 | |
299 | 301 | ||
300 | 302 | let idxThresholdL = 2 | |
301 | 303 | ||
302 | 304 | let namez = ["SHOVEL", "PICKAXE"] | |
303 | 305 | ||
304 | 306 | let idxNameShovel = 0 | |
305 | 307 | ||
306 | 308 | let idxNamePickaxe = 1 | |
307 | 309 | ||
308 | 310 | let contentKeyz = ["contentPickaxeC", "contentPickaxeU", "contentPickaxeL", "contentPickaxeE", "contentShovelP"] | |
309 | 311 | ||
310 | 312 | let idxKeyC = 0 | |
311 | 313 | ||
312 | 314 | let idxKeyP = 4 | |
313 | 315 | ||
314 | 316 | let rarityNames = ["Common", "Uncommon", "Legendary", "Epic", "Promo"] | |
315 | 317 | ||
316 | 318 | let idxRarityC = 0 | |
317 | 319 | ||
318 | 320 | let idxRarityU = 1 | |
319 | 321 | ||
320 | 322 | let idxRarityL = 2 | |
321 | 323 | ||
322 | 324 | let idxRarityE = 3 | |
323 | 325 | ||
324 | 326 | let idxRarityP = 4 | |
325 | 327 | ||
326 | 328 | let collectionz = ["Digging tools"] | |
327 | 329 | ||
328 | 330 | let idxCollDig = 0 | |
329 | 331 | ||
330 | 332 | let bonusTypez = ["FarmPower"] | |
331 | 333 | ||
332 | 334 | let idxBonusTypeFp = 0 | |
333 | 335 | ||
334 | 336 | func prolog (i) = if (if ((i.originCaller != rest2Contract)) | |
335 | 337 | then valueOrElse(getBoolean(keyBlocked()), false) | |
336 | 338 | else false) | |
337 | 339 | then throw("Contracts are under maintenance") | |
338 | 340 | else { | |
339 | 341 | let addr = toString(i.originCaller) | |
340 | 342 | let week = (height / WEEK_BLOCKS) | |
341 | 343 | let lastWeekKey = keyLastWeekTxIdByUser(addr) | |
342 | 344 | let lastWeekTxIdByUser = getString(lastWeekKey) | |
343 | 345 | let txId = toBase58String(i.transactionId) | |
344 | 346 | let wtx = ((toString(week) + "_") + txId) | |
345 | 347 | let curWeekKey = keyCurWeekTxIdByUser(addr) | |
346 | 348 | if (isDefined(lastWeekTxIdByUser)) | |
347 | 349 | then { | |
348 | 350 | let lastWeekTx = split(value(lastWeekTxIdByUser), "_") | |
349 | 351 | if ((lastWeekTx[0] == toString(week))) | |
350 | 352 | then [StringEntry(lastWeekKey, wtx), StringEntry(curWeekKey, wtx)] | |
351 | 353 | else if ((lastWeekTx[0] == toString((week - 1)))) | |
352 | 354 | then [StringEntry(curWeekKey, wtx)] | |
353 | 355 | else { | |
354 | 356 | let curWeekTxIdByUser = getStringValue(curWeekKey) | |
355 | 357 | let curWeekTx = split(curWeekTxIdByUser, "_") | |
356 | 358 | if ((curWeekTx[0] == toString(week))) | |
357 | 359 | then [StringEntry(curWeekKey, wtx)] | |
358 | 360 | else [StringEntry(lastWeekKey, curWeekTxIdByUser), StringEntry(curWeekKey, wtx)] | |
359 | 361 | } | |
360 | 362 | } | |
361 | 363 | else [StringEntry(lastWeekKey, wtx), StringEntry(curWeekKey, wtx)] | |
362 | 364 | } | |
363 | 365 | ||
364 | 366 | ||
365 | 367 | 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) + "\"}") | |
366 | 368 | ||
367 | 369 | ||
368 | 370 | func issueNftCustom (nameIdx,contKeyIdx,collIdx,rarityIdx,bonusPerc,descrIdx,bonusTypeIdx,addr) = { | |
369 | 371 | let nftSerial = valueOrElse(getInteger(keyNftTotalIssued), 0) | |
370 | 372 | let rarity = rarityNames[rarityIdx] | |
371 | 373 | let name = (((namez[nameIdx] + "-") + take(rarity, 1)) + toString(bonusPerc)) | |
372 | 374 | let issue = Issue(name, createNftDescrCustom(contentKeyz[contKeyIdx], nftSerial, collectionz[collIdx], names[nameIdx], descriptions[descrIdx], rarityNames[rarityIdx], bonusPerc, bonusTypez[bonusTypeIdx]), 1, 0, false) | |
373 | 375 | let nftAssetId = calculateAssetId(issue) | |
374 | 376 | $Tuple2([issue, IntegerEntry(keyNftTotalIssued, (nftSerial + 1)), IntegerEntry(keyNftNumberByAssetId(toBase58String(nftAssetId)), nftSerial), ScriptTransfer(addr, 1, nftAssetId)], nftAssetId) | |
375 | 377 | } | |
376 | 378 | ||
377 | 379 | ||
378 | 380 | func bonusByDescription (descr) = if (!(contains(descr, "\"bonusType\": \"FarmPower\""))) | |
379 | 381 | then throw(("NFT is not supported: " + descr)) | |
380 | 382 | else { | |
381 | 383 | let bonusStr = split_4C(split_4C(descr, "\"bonus\":")[1], ",")[0] | |
382 | 384 | parseIntValue(drop(bonusStr, (valueOrElse(lastIndexOf(bonusStr, " "), -1) + 1))) | |
383 | 385 | } | |
384 | 386 | ||
385 | 387 | ||
386 | 388 | func rarityIdxByDescriprion (descr) = if (!(contains(descr, "\"rare\""))) | |
387 | 389 | then throw(("NFT is not supported: " + descr)) | |
388 | 390 | else { | |
389 | 391 | let rarityStr = split_4C(split_4C(split_4C(descr, "\"rare\"")[1], ",")[0], "\"")[1] | |
390 | 392 | value(indexOf(rarityNames, rarityStr)) | |
391 | 393 | } | |
392 | 394 | ||
393 | 395 | ||
394 | 396 | func stakeUnstakeAcresInternal (amt,address,bonusDelta) = if (if ((amt == 0)) | |
395 | 397 | then (bonusDelta == 0) | |
396 | 398 | else false) | |
397 | 399 | then throw("Nothing to do") | |
398 | 400 | else { | |
399 | 401 | let wlgResult = invoke(wlgContract, "onStakeUnstakeLand", [address, true], nil) | |
400 | 402 | if ((wlgResult == wlgResult)) | |
401 | 403 | then { | |
402 | 404 | let now = lastBlock.timestamp | |
403 | 405 | let timeKey = keyAcresStakedTimeByUser(address) | |
404 | 406 | let amountKey = keyAcresStakedAmtByUser(address) | |
405 | 407 | let oldAcresAmount = valueOrElse(getInteger(amountKey), 0) | |
406 | 408 | if (if ((0 > amt)) | |
407 | 409 | then (0 > (oldAcresAmount + amt)) | |
408 | 410 | else false) | |
409 | 411 | then throw(((("You have only " + fixedPoint(oldAcresAmount, 8)) + " ACRES staked, tried to unstake ") + fixedPoint(-(amt), 8))) | |
410 | 412 | else { | |
411 | 413 | let newAcresAmount = (oldAcresAmount + amt) | |
412 | 414 | let oldTotal = valueOrElse(getInteger(acresStakdTotalKey), 0) | |
413 | 415 | let userFpKey = keyFarmingPowerByUser(address) | |
414 | 416 | let oldFp = valueOrElse(getInteger(userFpKey), 0) | |
415 | 417 | let bonusKey = keyUserFullBonus(address) | |
416 | 418 | let oldBonus = valueOrElse(getInteger(acres2Contract, bonusKey), 0) | |
417 | 419 | if (if ((0 > bonusDelta)) | |
418 | 420 | then (0 > (oldBonus + bonusDelta)) | |
419 | 421 | else false) | |
420 | 422 | then throw((((("You have only " + fixedPoint(oldBonus, 4)) + "% bonus, and tried to unstake ") + fixedPoint(-(bonusDelta), 4)) + "%")) | |
421 | 423 | else { | |
422 | 424 | let $t063056404 = getFarmingPowerByAcresAndBonus(newAcresAmount, (oldBonus + bonusDelta)) | |
423 | 425 | let newBonusedFp = $t063056404._1 | |
424 | 426 | let ignored = $t063056404._2 | |
425 | 427 | let oldTotalFp = valueOrElse(getInteger(totalFarmingPowerKey), 0) | |
426 | 428 | let acresActions = if ((amt == 0)) | |
427 | 429 | then nil | |
428 | 430 | else [IntegerEntry(amountKey, newAcresAmount), IntegerEntry(acresStakdTotalKey, (oldTotal + amt))] | |
429 | 431 | let bonusActions = if ((bonusDelta == 0)) | |
430 | 432 | then nil | |
431 | 433 | else [IntegerEntry(bonusKey, (oldBonus + bonusDelta))] | |
432 | 434 | $Tuple2(((((acresActions ++ bonusActions) :+ IntegerEntry(timeKey, lastBlock.timestamp)) :+ IntegerEntry(userFpKey, newBonusedFp)) :+ IntegerEntry(totalFarmingPowerKey, ((oldTotalFp + newBonusedFp) - oldFp))), wlgResult) | |
433 | 435 | } | |
434 | 436 | } | |
435 | 437 | } | |
436 | 438 | else throw("Strict value is not equal to itself.") | |
437 | 439 | } | |
438 | 440 | ||
439 | 441 | ||
440 | 442 | func getWlgPrice (usdtBalanceCorrection) = { | |
441 | 443 | let issuedAmount = valueOrErrorMessage(getInteger(wlgContract, wlgIssuedAmtKey), "WLGOLD is not issued yet") | |
442 | 444 | let wlgUsd = assetBalance(wlgContract, usdtAssetId) | |
443 | 445 | let acres2Usd = (assetBalance(acres2Contract, usdtAssetId) - usdtBalanceCorrection) | |
444 | 446 | let investFundTotal = (assetBalance(investFundContract, usdtAssetId) + valueOrElse(getInteger(investFundContract, zbIssuedAmtKey), 0)) | |
445 | 447 | let totalFundsUsd = ((acres2Usd + wlgUsd) + investFundTotal) | |
446 | 448 | fraction(totalFundsUsd, MULT8, issuedAmount) | |
447 | 449 | } | |
448 | 450 | ||
449 | 451 | ||
450 | 452 | func getSwapLimitAcres () = { | |
451 | 453 | let wlgUsd = assetBalance(wlgContract, usdtAssetId) | |
452 | 454 | let acres2Usd = assetBalance(this, usdtAssetId) | |
453 | 455 | let investFundTotal = (assetBalance(investFundContract, usdtAssetId) + valueOrElse(getInteger(investFundContract, zbIssuedAmtKey), 0)) | |
454 | 456 | let defaultLimit = (((acres2Usd + wlgUsd) + investFundTotal) / ONE_PERCENT_DIVISOR) | |
455 | 457 | let lastLimitLeft = valueOrElse(getInteger(keyLastLimitLeft), defaultLimit) | |
456 | 458 | let lastTime = valueOrElse(getInteger(keyLastAcresSellTime), 0) | |
457 | 459 | let now = lastBlock.timestamp | |
458 | 460 | let currentLimit = (lastLimitLeft + fraction(defaultLimit, (now - lastTime), DAY_MILLIS)) | |
459 | 461 | let limitLeftUsdt = min([currentLimit, defaultLimit]) | |
460 | 462 | $Tuple2(IntegerEntry(keyLastAcresSellTime, now), limitLeftUsdt) | |
461 | 463 | } | |
462 | 464 | ||
463 | 465 | ||
464 | 466 | let arkOracle = addressFromStringValue("3PJgZ6AK1WVCpdCmEZpesHmaKvrQDdXG5og") | |
465 | 467 | ||
466 | 468 | let incubator = valueOrElse(getString(arkOracle, "static_incubatorAddress"), "") | |
467 | 469 | ||
468 | 470 | let breeder = valueOrElse(getString(arkOracle, "static_breederAddress"), "") | |
469 | 471 | ||
470 | 472 | let turtleIncubator = valueOrElse(getString(arkOracle, "static_turtleIncubatorAddress"), "") | |
471 | 473 | ||
472 | 474 | let turtleBreeder = valueOrElse(getString(arkOracle, "static_turtleBreederAddress"), "") | |
473 | 475 | ||
474 | 476 | let canineIncubator = valueOrElse(getString(arkOracle, "static_canineIncubatorAddress"), "") | |
475 | 477 | ||
476 | 478 | let canineBreeder = valueOrElse(getString(arkOracle, "static_canineBreederAddress"), "") | |
477 | 479 | ||
478 | 480 | let felineIncubator = valueOrElse(getString(arkOracle, "static_felineIncubatorAddress"), "") | |
479 | 481 | ||
480 | 482 | let felineBreeder = valueOrElse(getString(arkOracle, "static_felineBreederAddress"), "") | |
481 | 483 | ||
482 | 484 | let mutantBreeder = valueOrElse(getString(arkOracle, "static_mutantIncubatorAddress"), "") | |
483 | 485 | ||
484 | 486 | func isArkimalIssued (nfo) = { | |
485 | 487 | let issuer = toString(nfo.issuer) | |
486 | 488 | if (if (if (if (if (if (if (if (if (if ((chain == base58'2T')) | |
487 | 489 | then (issuer == oldStakingContractStr) | |
488 | 490 | else false) | |
489 | 491 | then true | |
490 | 492 | else (issuer == incubator)) | |
491 | 493 | then true | |
492 | 494 | else (issuer == breeder)) | |
493 | 495 | then true | |
494 | 496 | else (issuer == turtleIncubator)) | |
495 | 497 | then true | |
496 | 498 | else (issuer == turtleBreeder)) | |
497 | 499 | then true | |
498 | 500 | else (issuer == canineIncubator)) | |
499 | 501 | then true | |
500 | 502 | else (issuer == canineBreeder)) | |
501 | 503 | then true | |
502 | 504 | else (issuer == felineIncubator)) | |
503 | 505 | then true | |
504 | 506 | else (issuer == felineBreeder)) | |
505 | 507 | then nfo.name | |
506 | 508 | else if ((issuer == mutantBreeder)) | |
507 | 509 | then nfo.description | |
508 | 510 | else "" | |
509 | 511 | } | |
510 | 512 | ||
511 | 513 | ||
512 | 514 | func stakeNftInternal (addr,assetIdStr,bonus6,userNumKey,totalNumKey,limit) = { | |
513 | 515 | let nftNumber = valueOrElse(getInteger(userNumKey), 0) | |
514 | 516 | if ((nftNumber >= limit)) | |
515 | 517 | then throw((("You can stake max " + toString(limit)) + " of such NFTs")) | |
516 | 518 | else { | |
517 | 519 | let $t01068310759 = stakeUnstakeAcresInternal(0, addr, bonus6) | |
518 | 520 | let actions = $t01068310759._1 | |
519 | 521 | let wlgClaimedAmount = $t01068310759._2 | |
520 | 522 | $Tuple2((((actions :+ IntegerEntry(userNumKey, (nftNumber + 1))) :+ IntegerEntry(totalNumKey, (valueOrElse(getInteger(totalNumKey), 0) + 1))) :+ IntegerEntry(keyStakedTimeByAssetIdAndOwner(assetIdStr, addr), lastBlock.timestamp)), wlgClaimedAmount) | |
521 | 523 | } | |
522 | 524 | } | |
523 | 525 | ||
524 | 526 | ||
525 | 527 | @Callable(i) | |
526 | 528 | func saveLastTx () = if (!(containsElement([wlgContract], i.caller))) | |
527 | 529 | then throw("Access denied") | |
528 | 530 | else $Tuple2(prolog(i), 42) | |
529 | 531 | ||
530 | 532 | ||
531 | 533 | ||
532 | 534 | @Callable(i) | |
533 | 535 | func constructorV1 (rest2Addr,oldAcrContract) = if ((i.caller != this)) | |
534 | 536 | then throw("Permission denied") | |
535 | 537 | else { | |
536 | 538 | let oldAcrContAddr = addressFromStringValue(oldAcrContract) | |
537 | 539 | [IntegerEntry(acresIssuedAmountKey, getIntegerValue(oldAcrContAddr, acresIssuedAmountKey)), BinaryEntry(acresAssetIdKey, getBinaryValue(oldAcrContAddr, acresAssetIdKey)), StringEntry(keyRest2Address(), rest2Addr), StringEntry(oldAcresContractKey, oldAcrContract)] | |
538 | 540 | } | |
539 | 541 | ||
540 | 542 | ||
541 | 543 | ||
542 | 544 | @Callable(i) | |
543 | 545 | func setBlocked (isBlocked) = if ((i.caller != this)) | |
544 | 546 | then throw("permission denied") | |
545 | 547 | else [BooleanEntry(keyBlocked(), isBlocked)] | |
546 | 548 | ||
547 | 549 | ||
548 | 550 | ||
549 | 551 | @Callable(i) | |
550 | 552 | func unstakeAcres (amount) = { | |
551 | 553 | let prologActions = prolog(i) | |
552 | 554 | if ((0 >= amount)) | |
553 | 555 | then throw("Amount should be positive") | |
554 | 556 | else { | |
555 | 557 | let address = toString(i.caller) | |
556 | 558 | if ((size(i.payments) != 0)) | |
557 | 559 | then throw("No payments required") | |
558 | 560 | else { | |
559 | 561 | let arbReleaseTime = (valueOrElse(getInteger(wlgContract, keyLastWlgTradeTimeByUser(address)), 0) + arbitrageDelay) | |
560 | 562 | if ((arbReleaseTime > lastBlock.timestamp)) | |
561 | 563 | then throw(("You traded some WLGOLD, cannot unstake until " + toString(arbReleaseTime))) | |
562 | 564 | else { | |
563 | 565 | let $t01233312413 = stakeUnstakeAcresInternal(-(amount), address, 0) | |
564 | 566 | let actions = $t01233312413._1 | |
565 | 567 | let wlgClaimedAmount = $t01233312413._2 | |
566 | 568 | $Tuple2(((actions :+ ScriptTransfer(i.caller, amount, acresAssetId)) ++ prologActions), wlgClaimedAmount) | |
567 | 569 | } | |
568 | 570 | } | |
569 | 571 | } | |
570 | 572 | } | |
571 | 573 | ||
572 | 574 | ||
573 | 575 | ||
574 | 576 | @Callable(i) | |
575 | 577 | func stakeAcres () = { | |
576 | 578 | let prologActions = prolog(i) | |
577 | 579 | let address = toString(i.caller) | |
578 | 580 | if ((size(i.payments) != 1)) | |
579 | 581 | then throw("exactly 1 payment must be attached") | |
580 | 582 | else { | |
581 | 583 | let pmt = i.payments[0] | |
582 | 584 | let amt = pmt.amount | |
583 | 585 | if (if (!(isDefined(pmt.assetId))) | |
584 | 586 | then true | |
585 | 587 | else (value(pmt.assetId) != acresAssetId)) | |
586 | 588 | then throw("ACRES payments only!") | |
587 | 589 | else { | |
588 | 590 | let $t01286412940 = stakeUnstakeAcresInternal(amt, address, 0) | |
589 | 591 | let actions = $t01286412940._1 | |
590 | 592 | let wlgClaimedAmount = $t01286412940._2 | |
591 | 593 | $Tuple2((actions ++ prologActions), wlgClaimedAmount) | |
592 | 594 | } | |
593 | 595 | } | |
594 | 596 | } | |
595 | 597 | ||
596 | 598 | ||
597 | 599 | ||
598 | 600 | @Callable(i) | |
599 | 601 | func buyAcres () = { | |
600 | 602 | let prologActions = prolog(i) | |
601 | 603 | if ((size(i.payments) != 1)) | |
602 | 604 | then throw("exactly 1 payment must be attached") | |
603 | 605 | else { | |
604 | 606 | let pmt = i.payments[0] | |
605 | 607 | let usdtAmount = pmt.amount | |
606 | 608 | if (if (!(isDefined(pmt.assetId))) | |
607 | 609 | then true | |
608 | 610 | else (value(pmt.assetId) != usdtAssetId)) | |
609 | 611 | then throw("USDT payments only!") | |
610 | 612 | else if ((MULT6 > usdtAmount)) | |
611 | 613 | then throw((("Min payment should be " + fixedPoint(MULT6, 6)) + " USDT")) | |
612 | 614 | else { | |
613 | 615 | let acresAmount = (usdtAmount * USDT2ACRES_MULTIPLIER) | |
614 | 616 | let wlgAmount = fraction(usdtAmount, MULT8, getWlgPrice(usdtAmount)) | |
615 | 617 | let oldAcresAddress = addressFromStringValue(getStringValue(oldAcresContractKey)) | |
616 | 618 | let req = invoke(oldAcresAddress, "requestAcresCallback", [acresAmount], nil) | |
617 | 619 | if ((req == req)) | |
618 | 620 | then { | |
619 | 621 | let wlgRemain = asInt(invoke(wlgContract, "burnWlgold", [wlgAmount], nil)) | |
620 | 622 | $Tuple2(([ScriptTransfer(i.caller, acresAmount, acresAssetId)] ++ prologActions), wlgRemain) | |
621 | 623 | } | |
622 | 624 | else throw("Strict value is not equal to itself.") | |
623 | 625 | } | |
624 | 626 | } | |
625 | 627 | } | |
626 | 628 | ||
627 | 629 | ||
628 | 630 | ||
629 | 631 | @Callable(i) | |
630 | 632 | func buyAcresREADONLY (usdtAmount) = { | |
631 | 633 | let acresAmount = (usdtAmount * USDT2ACRES_MULTIPLIER) | |
632 | 634 | let wlgToBurn = fraction(usdtAmount, MULT8, getWlgPrice(usdtAmount)) | |
633 | 635 | $Tuple2(nil, [acresAmount, MULT6, acresAmount, wlgToBurn]) | |
634 | 636 | } | |
635 | 637 | ||
636 | 638 | ||
637 | 639 | ||
638 | 640 | @Callable(i) | |
639 | 641 | func sellAcres () = { | |
640 | 642 | let prologActions = prolog(i) | |
641 | 643 | if ((size(i.payments) != 1)) | |
642 | 644 | then throw("exactly 1 payment must be attached") | |
643 | 645 | else { | |
644 | 646 | let pmt = i.payments[0] | |
645 | 647 | let acresAmount = pmt.amount | |
646 | 648 | if (if (!(isDefined(pmt.assetId))) | |
647 | 649 | then true | |
648 | 650 | else (value(pmt.assetId) != acresAssetId)) | |
649 | 651 | then throw("ACRES payments only!") | |
650 | 652 | else if ((MULT7 > acresAmount)) | |
651 | 653 | then throw((("Min payment should be " + fixedPoint(MULT7, 8)) + " ACRES")) | |
652 | 654 | else { | |
653 | 655 | let addr = toString(i.caller) | |
654 | 656 | let $t01479714845 = getSwapLimitAcres() | |
655 | 657 | let limitAction = $t01479714845._1 | |
656 | 658 | let maxUsdt = $t01479714845._2 | |
657 | 659 | let maxAcres = (maxUsdt * USDT2ACRES_MULTIPLIER) | |
658 | 660 | if ((acresAmount > maxAcres)) | |
659 | 661 | then throw((("You can sell max " + fixedPoint(maxAcres, 8)) + " ACRES")) | |
660 | 662 | else { | |
661 | 663 | let usdtAmount = ((acresAmount / USDT2ACRES_MULTIPLIER) / 2) | |
662 | 664 | $Tuple2(([limitAction, IntegerEntry(keyLastLimitLeft, (maxUsdt - usdtAmount)), ScriptTransfer(i.caller, usdtAmount, usdtAssetId)] ++ prologActions), usdtAmount) | |
663 | 665 | } | |
664 | 666 | } | |
665 | 667 | } | |
666 | 668 | } | |
667 | 669 | ||
668 | 670 | ||
669 | 671 | ||
670 | 672 | @Callable(i) | |
671 | 673 | func sellAcresREADONLY (address,acresAmount) = { | |
672 | 674 | let $t01534115389 = getSwapLimitAcres() | |
673 | 675 | let limitAction = $t01534115389._1 | |
674 | 676 | let maxUsdt = $t01534115389._2 | |
675 | 677 | let usdtAmount = ((acresAmount / USDT2ACRES_MULTIPLIER) / 2) | |
676 | 678 | $Tuple2(nil, [usdtAmount, MULT7, (maxUsdt * USDT2ACRES_MULTIPLIER), 0]) | |
677 | 679 | } | |
678 | 680 | ||
679 | 681 | ||
680 | 682 | ||
681 | 683 | @Callable(i) | |
682 | 684 | func convertOldStakes (address) = { | |
683 | 685 | let prologActions = prolog(i) | |
684 | 686 | if ((OLD_STAKING_DEADL > lastBlock.timestamp)) | |
685 | 687 | then throw(("Disabled until " + toString((OLD_STAKING_DEADL / 1000)))) | |
686 | 688 | else { | |
687 | 689 | let caller = addressFromStringValue(address) | |
688 | 690 | if ((size(i.payments) != 0)) | |
689 | 691 | then throw("No payments required") | |
690 | 692 | else { | |
691 | 693 | let oldAcresAddress = addressFromStringValue(getStringValue(oldAcresContractKey)) | |
692 | 694 | let amount = valueOrElse(getInteger(oldAcresAddress, keyAcresStakedAmtByUser(address)), 0) | |
693 | 695 | let gotAcres0 = if ((amount > 0)) | |
694 | 696 | then asTuple2Ints(invoke(oldAcresAddress, "unstakeAcresCallback", [amount, address], nil)) | |
695 | 697 | else $Tuple2(0, 0) | |
696 | 698 | let oldStakingAddress = addressFromStringValue(oldStakingContractStr) | |
697 | 699 | let landsStr = getString(oldStakingAddress, keyStakedLandsByOwner(address)) | |
698 | 700 | let landsResult = if (isDefined(landsStr)) | |
699 | 701 | then { | |
700 | 702 | let landsVal = value(landsStr) | |
701 | - | let cutLands = if (( | |
703 | + | let cutLands = if (((45 * MAX_LENDS_TO_CONVERT) > size(landsVal))) | |
702 | 704 | then landsVal | |
703 | - | else take(landsVal, value(lastIndexOf(landsVal, "_", (45 * | |
705 | + | else take(landsVal, value(lastIndexOf(landsVal, "_", (45 * MAX_LENDS_TO_CONVERT)))) | |
704 | 706 | let lands = split_51C(value(cutLands), "_") | |
705 | 707 | func oneLand (acc,landAssetId) = if ((landAssetId == "")) | |
706 | 708 | then throw("landAssetId is required") | |
707 | 709 | else { | |
708 | 710 | let r = asTuple5Ints(invoke(oldStakingAddress, "unstakeLandCallback", [landAssetId, address], nil)) | |
709 | 711 | $Tuple5((acc._1 + r._1), (acc._2 + r._2), (acc._3 + r._3), (acc._4 + r._4), (acc._5 + r._5)) | |
710 | 712 | } | |
711 | 713 | ||
712 | 714 | let rr = { | |
713 | 715 | let $l = lands | |
714 | 716 | let $s = size($l) | |
715 | 717 | let $acc0 = $Tuple5(0, 0, 0, 0, 0) | |
716 | 718 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
717 | 719 | then $a | |
718 | 720 | else oneLand($a, $l[$i]) | |
719 | 721 | ||
720 | 722 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
721 | 723 | then $a | |
722 | 724 | else throw("List size exceeds 100") | |
723 | 725 | ||
724 | 726 | $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) | |
725 | 727 | } | |
726 | 728 | let finalize = invoke(oldStakingAddress, "unstakeLandsFinalizeCallback", [address], nil) | |
727 | 729 | if ((finalize == finalize)) | |
728 | 730 | then { | |
729 | 731 | let req = invoke(oldAcresAddress, "requestAcresCallback", [(((rr._1 + rr._2) + rr._3) + rr._4)], nil) | |
730 | 732 | if ((req == req)) | |
731 | 733 | then { | |
732 | - | let $ | |
733 | - | let nftActions = $ | |
734 | - | let nftAssetId = $ | |
734 | + | let $t01782717963 = issueNftCustom(idxNameShovel, idxKeyP, idxCollDig, idxRarityP, 3, idxDescrShovel, idxBonusTypeFp, caller) | |
735 | + | let nftActions = $t01782717963._1 | |
736 | + | let nftAssetId = $t01782717963._2 | |
735 | 737 | $Tuple6(rr._1, rr._2, rr._3, rr._4, rr._5, nftActions) | |
736 | 738 | } | |
737 | 739 | else throw("Strict value is not equal to itself.") | |
738 | 740 | } | |
739 | 741 | else throw("Strict value is not equal to itself.") | |
740 | 742 | } | |
741 | 743 | else $Tuple6(0, 0, 0, 0, 0, nil) | |
742 | 744 | let duckAssetId = valueOrElse(getString(oldStakingAddress, keyStakedDuckByOwner(address)), "") | |
743 | 745 | let duckResult = if ((duckAssetId != "")) | |
744 | 746 | then asTuple3Ints(invoke(oldStakingAddress, "unstakeDuckCallback", [duckAssetId, address], nil)) | |
745 | 747 | else $Tuple3(0, 0, 0) | |
746 | 748 | let x = stakeUnstakeAcresInternal((((((((gotAcres0._1 + landsResult._1) + landsResult._2) + landsResult._3) + landsResult._4) + duckResult._1) + duckResult._2) + duckResult._3), address, 0) | |
747 | 749 | $Tuple2(((landsResult._6 ++ x._1) ++ prologActions), $Tuple3(gotAcres0._2, landsResult._5, x._2)) | |
748 | 750 | } | |
749 | 751 | } | |
750 | 752 | } | |
751 | 753 | ||
752 | 754 | ||
753 | 755 | ||
754 | 756 | @Callable(i) | |
755 | 757 | func unstakeLandsREADONLY (address) = { | |
756 | 758 | let oldStakingAddress = addressFromStringValue(oldStakingContractStr) | |
757 | 759 | let landsStr = getString(oldStakingAddress, keyStakedLandsByOwner(address)) | |
758 | 760 | let landsResult = if (isDefined(landsStr)) | |
759 | 761 | then { | |
760 | 762 | let lands = split_51C(value(landsStr), "_") | |
761 | 763 | func oneLand (acc,landAssetId) = if ((landAssetId == "")) | |
762 | 764 | then throw("landAssetId is required") | |
763 | 765 | else { | |
764 | 766 | let r = asTuple4Ints(invoke(oldStakingAddress, "unstakeLandREADONLY", [landAssetId, address], nil)) | |
765 | 767 | $Tuple4((acc._1 + r._1), (acc._2 + r._2), (acc._3 + r._3), (acc._4 + r._4)) | |
766 | 768 | } | |
767 | 769 | ||
768 | 770 | let $l = lands | |
769 | 771 | let $s = size($l) | |
770 | 772 | let $acc0 = $Tuple4(0, 0, 0, 0) | |
771 | 773 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
772 | 774 | then $a | |
773 | 775 | else oneLand($a, $l[$i]) | |
774 | 776 | ||
775 | 777 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
776 | 778 | then $a | |
777 | 779 | else throw("List size exceeds 100") | |
778 | 780 | ||
779 | 781 | $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) | |
780 | 782 | } | |
781 | 783 | else $Tuple4(0, 0, 0, 0) | |
782 | 784 | $Tuple2(nil, landsResult) | |
783 | 785 | } | |
784 | 786 | ||
785 | 787 | ||
786 | 788 | ||
787 | 789 | @Callable(i) | |
788 | 790 | func stakeAcresCallback (addr) = if ((i.caller != addressFromStringValue(oldStakingContractStr))) | |
789 | 791 | then throw("Permission denied") | |
790 | 792 | else stakeUnstakeAcresInternal(i.payments[0].amount, addr, 0) | |
791 | 793 | ||
792 | 794 | ||
793 | 795 | ||
794 | 796 | @Callable(i) | |
795 | 797 | func simulateStakeAcresREADONLY (address,addedAmount) = { | |
796 | 798 | let amountKey = keyAcresStakedAmtByUser(address) | |
797 | 799 | let newAcresAmount = (valueOrElse(getInteger(amountKey), 0) + addedAmount) | |
798 | 800 | let oldTotal = valueOrElse(getInteger(acresStakdTotalKey), 0) | |
799 | 801 | let userFpKey = keyFarmingPowerByUser(address) | |
800 | 802 | let oldFp = valueOrElse(getInteger(userFpKey), 0) | |
801 | 803 | let userBonus = valueOrElse(getInteger(acres2Contract, keyUserFullBonus(address)), 0) | |
802 | - | let $ | |
803 | - | let newBonusedFp = $ | |
804 | - | let ignored = $ | |
804 | + | let $t02018720274 = getFarmingPowerByAcresAndBonus(newAcresAmount, userBonus) | |
805 | + | let newBonusedFp = $t02018720274._1 | |
806 | + | let ignored = $t02018720274._2 | |
805 | 807 | let oldTotalFp = valueOrElse(getInteger(totalFarmingPowerKey), 0) | |
806 | 808 | let newTotalFp = ((oldTotalFp + newBonusedFp) - oldFp) | |
807 | 809 | $Tuple2(nil, [oldFp, newBonusedFp, oldTotalFp, newTotalFp]) | |
808 | 810 | } | |
809 | 811 | ||
810 | 812 | ||
811 | 813 | ||
812 | 814 | @Callable(i) | |
813 | 815 | func issuePickC1 (forAddress) = if ((i.caller != wlgContract)) | |
814 | 816 | then throw("Permission denied") | |
815 | 817 | else issueNftCustom(idxNamePickaxe, idxKeyC, idxCollDig, idxRarityC, 1, idxDescrPickaxe, idxBonusTypeFp, addressFromStringValue(forAddress)) | |
816 | 818 | ||
817 | 819 | ||
818 | 820 | ||
819 | 821 | @Callable(i) | |
820 | 822 | func stakeNFT () = { | |
821 | 823 | let prologActions = prolog(i) | |
822 | 824 | if ((size(i.payments) != 1)) | |
823 | 825 | then throw("Exactly one payment required") | |
824 | 826 | else { | |
825 | 827 | let pmt = value(i.payments[0]) | |
826 | 828 | if ((pmt.amount != 1)) | |
827 | 829 | then throw("NFT token should be attached as payment") | |
828 | 830 | else { | |
829 | 831 | let assetId = value(pmt.assetId) | |
830 | 832 | let asset = value(assetInfo(assetId)) | |
831 | 833 | let assetIdStr = toBase58String(assetId) | |
832 | 834 | let addr = toString(i.caller) | |
833 | 835 | let nftsKey = keyStakedNFTsByOwner(addr) | |
834 | 836 | let nftsStr = getString(nftsKey) | |
835 | 837 | let nfts = if (isDefined(nftsStr)) | |
836 | 838 | then split_4C(value(nftsStr), "_") | |
837 | 839 | else nil | |
838 | 840 | if (containsElement(nfts, assetIdStr)) | |
839 | 841 | then throw(("Your staked NFTs already contain " + assetIdStr)) | |
840 | 842 | else if ((size(nfts) >= MAX_NFTS_STAKED_BY_USER)) | |
841 | 843 | then throw((("Your already staked max (" + toString(MAX_NFTS_STAKED_BY_USER)) + ") NFTs")) | |
842 | 844 | else { | |
843 | 845 | let listAction = StringEntry(nftsKey, makeString_2C((nfts :+ assetIdStr), "_")) | |
844 | 846 | if ((asset.issuer == this)) | |
845 | 847 | then { | |
846 | - | let $ | |
847 | - | let actions = $ | |
848 | - | let wlgClaimedAmount = $ | |
848 | + | let $t02168321873 = stakeNftInternal(addr, assetIdStr, (bonusByDescription(value(asset.description)) * 10000), keyUserWlNftNumber(addr), keyWlNftTotalStaked, MAX_WL_NFTS) | |
849 | + | let actions = $t02168321873._1 | |
850 | + | let wlgClaimedAmount = $t02168321873._2 | |
849 | 851 | $Tuple2(((prologActions ++ actions) :+ listAction), wlgClaimedAmount) | |
850 | 852 | } | |
851 | 853 | else if ((isArkimalIssued(asset) == "")) | |
852 | 854 | then throw("Only WavesLands and Arkimals NFT tokens are accepted") | |
853 | 855 | else { | |
854 | - | let $ | |
855 | - | let actions = $ | |
856 | - | let wlgClaimedAmount = $ | |
856 | + | let $t02205422205 = stakeNftInternal(addr, assetIdStr, ARK_NFT_BONUS, keyUserArkNftNumber(addr), keyArkNftTotalStaked, MAX_ARK_NFTS) | |
857 | + | let actions = $t02205422205._1 | |
858 | + | let wlgClaimedAmount = $t02205422205._2 | |
857 | 859 | $Tuple2(((prologActions ++ actions) :+ listAction), wlgClaimedAmount) | |
858 | 860 | } | |
859 | 861 | } | |
860 | 862 | } | |
861 | 863 | } | |
862 | 864 | } | |
863 | 865 | ||
864 | 866 | ||
865 | 867 | ||
866 | 868 | @Callable(i) | |
867 | 869 | func unstakeNFT (assetIdStr) = { | |
868 | 870 | let prologActions = prolog(i) | |
869 | 871 | if ((size(i.payments) != 0)) | |
870 | 872 | then throw("No payments required") | |
871 | 873 | else { | |
872 | 874 | let assetId = fromBase58String(assetIdStr) | |
873 | 875 | let addr = toString(i.caller) | |
874 | 876 | let asset = value(assetInfo(assetId)) | |
875 | 877 | let timeKey = keyStakedTimeByAssetIdAndOwner(assetIdStr, addr) | |
876 | 878 | if (!(isDefined(getInteger(timeKey)))) | |
877 | 879 | then throw((("NFT " + asset.name) + " is not staked by you")) | |
878 | 880 | else { | |
879 | 881 | let nftsKey = keyStakedNFTsByOwner(addr) | |
880 | 882 | let nfts = split_4C(valueOrElse(getString(nftsKey), ""), "_") | |
881 | 883 | let idx = indexOf(nfts, assetIdStr) | |
882 | 884 | if (!(isDefined(idx))) | |
883 | 885 | then throw(("Your staked NFTs don't contain " + assetIdStr)) | |
884 | 886 | else { | |
885 | 887 | let listAction = if ((size(nfts) > 1)) | |
886 | 888 | then StringEntry(nftsKey, makeString_2C(removeByIndex(nfts, value(idx)), "_")) | |
887 | 889 | else DeleteEntry(nftsKey) | |
888 | 890 | let isWL = (asset.issuer == this) | |
889 | 891 | if (isWL) | |
890 | 892 | then { | |
891 | 893 | let wlNftNumber = valueOrElse(getInteger(keyUserWlNftNumber(addr)), 0) | |
892 | 894 | let bonusVal = (bonusByDescription(value(asset.description)) * 10000) | |
893 | - | let $ | |
894 | - | let actions = $ | |
895 | - | let wlgClaimedAmount = $ | |
895 | + | let $t02337023449 = stakeUnstakeAcresInternal(0, addr, -(bonusVal)) | |
896 | + | let actions = $t02337023449._1 | |
897 | + | let wlgClaimedAmount = $t02337023449._2 | |
896 | 898 | $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) | |
897 | 899 | } | |
898 | 900 | else { | |
899 | 901 | let arkimalName = isArkimalIssued(asset) | |
900 | 902 | if ((arkimalName == "")) | |
901 | 903 | then throw("Only WavesLands and Arkimals NFT tokens are accepted") | |
902 | 904 | else { | |
903 | 905 | let arkNftNumber = valueOrElse(getInteger(keyUserArkNftNumber(addr)), 0) | |
904 | - | let $ | |
905 | - | let actions = $ | |
906 | - | let wlgClaimedAmount = $ | |
906 | + | let $t02410924193 = stakeUnstakeAcresInternal(0, addr, -(ARK_NFT_BONUS)) | |
907 | + | let actions = $t02410924193._1 | |
908 | + | let wlgClaimedAmount = $t02410924193._2 | |
907 | 909 | $Tuple2((((((actions :+ listAction) :+ IntegerEntry(keyUserArkNftNumber(addr), (arkNftNumber - 1))) :+ DeleteEntry(keyStakedTimeByAssetIdAndOwner(toBase58String(assetId), addr))) :+ ScriptTransfer(i.caller, 1, assetId)) ++ prologActions), wlgClaimedAmount) | |
908 | 910 | } | |
909 | 911 | } | |
910 | 912 | } | |
911 | 913 | } | |
912 | 914 | } | |
913 | 915 | } | |
914 | 916 | ||
915 | 917 | ||
916 | 918 | ||
917 | 919 | @Callable(i) | |
918 | 920 | func exchangeNFTs () = { | |
919 | 921 | let prologActions = prolog(i) | |
920 | 922 | if ((3 > size(i.payments))) | |
921 | 923 | then throw("Min one WLGOLD and 2 NFT payments allowed") | |
922 | 924 | else if ((size(i.payments) > 10)) | |
923 | 925 | then throw("Max one WLGOLD and 9 NFT payments allowed") | |
924 | 926 | else { | |
925 | 927 | let addr = toString(i.caller) | |
926 | 928 | func addUp (acc,pmt) = { | |
927 | 929 | let assetId = valueOrErrorMessage(pmt.assetId, "WAVES payments not allowed") | |
928 | 930 | if ((assetId == wlgAssetId)) | |
929 | 931 | then $Tuple4((acc._1 + pmt.amount), acc._2, acc._3, acc._4) | |
930 | 932 | else { | |
931 | 933 | let asset = value(assetInfo(assetId)) | |
932 | 934 | if ((asset.issuer != this)) | |
933 | 935 | then throw("Only WL-issued NFTs allowed") | |
934 | 936 | else { | |
935 | 937 | let rarityIx = rarityIdxByDescriprion(value(asset.description)) | |
936 | 938 | if (if ((acc._4 > 0)) | |
937 | 939 | then (rarityIx != acc._4) | |
938 | 940 | else false) | |
939 | 941 | then throw("You can exchange only NFTs of the same rarity") | |
940 | 942 | else { | |
941 | 943 | let bonusPerc = bonusByDescription(value(asset.description)) | |
942 | 944 | $Tuple4(acc._1, (acc._2 + bonusPerc), (acc._3 :+ Burn(assetId, 1)), rarityIx) | |
943 | 945 | } | |
944 | 946 | } | |
945 | 947 | } | |
946 | 948 | } | |
947 | 949 | ||
948 | - | let $ | |
950 | + | let $t02558225798 = { | |
949 | 951 | let $l = i.payments | |
950 | 952 | let $s = size($l) | |
951 | 953 | let $acc0 = $Tuple4(0, 0, nil, -1) | |
952 | 954 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
953 | 955 | then $a | |
954 | 956 | else addUp($a, $l[$i]) | |
955 | 957 | ||
956 | 958 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
957 | 959 | then $a | |
958 | 960 | else throw("List size exceeds 10") | |
959 | 961 | ||
960 | 962 | $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) | |
961 | 963 | } | |
962 | - | let wlgFee = $ | |
963 | - | let totalBonus = $ | |
964 | - | let burnActions = $ | |
965 | - | let rarityIdx = $ | |
964 | + | let wlgFee = $t02558225798._1 | |
965 | + | let totalBonus = $t02558225798._2 | |
966 | + | let burnActions = $t02558225798._3 | |
967 | + | let rarityIdx = $t02558225798._4 | |
966 | 968 | let newRarityIdx = if ((rarityIdx == idxRarityC)) | |
967 | 969 | then if ((rarityThresholds[idxThresholdC] > totalBonus)) | |
968 | 970 | then idxRarityC | |
969 | 971 | else if ((rarityThresholds[idxThresholdU] > totalBonus)) | |
970 | 972 | then idxRarityU | |
971 | 973 | else throw((("You can advance only one level of rarity, max total bonus " + toString(rarityThresholds[idxThresholdU])) + "%")) | |
972 | 974 | else if ((rarityIdx == idxRarityU)) | |
973 | 975 | then if ((rarityThresholds[idxThresholdU] > totalBonus)) | |
974 | 976 | then idxRarityU | |
975 | 977 | else if ((rarityThresholds[idxThresholdL] > totalBonus)) | |
976 | 978 | then idxRarityL | |
977 | 979 | else throw((("You can advance only one level of rarity, max total bonus " + toString(rarityThresholds[idxThresholdL])) + "%")) | |
978 | 980 | else if ((rarityIdx == idxRarityL)) | |
979 | 981 | then if ((rarityThresholds[idxThresholdL] > totalBonus)) | |
980 | 982 | then idxRarityL | |
981 | 983 | else idxRarityE | |
982 | 984 | else if ((rarityIdx == idxRarityE)) | |
983 | 985 | then idxRarityE | |
984 | 986 | else if ((rarityIdx == idxRarityP)) | |
985 | 987 | then throw("You can't exchange NFTs of this rarity") | |
986 | 988 | else throw("Unknown rarity") | |
987 | 989 | let minWlgFee = fraction(totalBonus, MULT14, getWlgPrice(0)) | |
988 | 990 | let change = (wlgFee - minWlgFee) | |
989 | 991 | let forTeam = (minWlgFee / 2) | |
990 | 992 | let wlgRemain = asInt(invoke(wlgContract, "burnWlgold", [(minWlgFee - forTeam)], nil)) | |
991 | 993 | if ((0 > change)) | |
992 | 994 | then throw((("You need to attach " + fixedPoint(minWlgFee, 8)) + " WLGOLD as fee")) | |
993 | 995 | else { | |
994 | 996 | let changeActions = if ((change > 0)) | |
995 | 997 | then [ScriptTransfer(i.caller, change, wlgAssetId)] | |
996 | 998 | else nil | |
997 | - | let $ | |
998 | - | let issueNftActions = $ | |
999 | - | let nftAssetId = $ | |
999 | + | let $t02733527496 = issueNftCustom(idxNamePickaxe, newRarityIdx, idxCollDig, newRarityIdx, totalBonus, idxDescrPickaxe, idxBonusTypeFp, i.caller) | |
1000 | + | let issueNftActions = $t02733527496._1 | |
1001 | + | let nftAssetId = $t02733527496._2 | |
1000 | 1002 | let burned = size(burnActions) | |
1001 | 1003 | let burnCounterActions = if ((burned == 0)) | |
1002 | 1004 | then nil | |
1003 | 1005 | else [IntegerEntry(keyNftTotalBurned, (valueOrElse(getInteger(keyNftTotalBurned), 0) + burned))] | |
1004 | 1006 | $Tuple2((((((issueNftActions ++ burnActions) ++ burnCounterActions) ++ prologActions) ++ changeActions) :+ ScriptTransfer(addressFromStringValue(getStringValue(wlgContract, teamAddrKey)), forTeam, wlgAssetId)), $Tuple2(nftAssetId, wlgRemain)) | |
1005 | 1007 | } | |
1006 | 1008 | } | |
1007 | 1009 | } | |
1008 | 1010 | ||
1009 | 1011 | ||
1010 | 1012 | ||
1011 | 1013 | @Callable(i) | |
1012 | 1014 | func openNftChest () = { | |
1013 | 1015 | let prologActions = prolog(i) | |
1014 | 1016 | if ((size(i.payments) != 1)) | |
1015 | 1017 | then throw("exactly 1 payment must be attached") | |
1016 | 1018 | else { | |
1017 | 1019 | let pmt = i.payments[0] | |
1018 | 1020 | let wlgAmount = pmt.amount | |
1019 | 1021 | if (if (!(isDefined(pmt.assetId))) | |
1020 | 1022 | then true | |
1021 | 1023 | else (value(pmt.assetId) != wlgAssetId)) | |
1022 | 1024 | then throw("WLGOLD payments only!") | |
1023 | 1025 | else { | |
1024 | 1026 | let minWlgFee = fraction(NFT_CHEST_PRICE_USDT, MULT8, getWlgPrice(0)) | |
1025 | 1027 | let change = (wlgAmount - minWlgFee) | |
1026 | 1028 | let forTeam = (minWlgFee / 2) | |
1027 | 1029 | let wlgRemain = asInt(invoke(wlgContract, "burnWlgold", [(minWlgFee - forTeam)], nil)) | |
1028 | 1030 | if ((0 > change)) | |
1029 | 1031 | then throw((("You need to attach " + fixedPoint(minWlgFee, 8)) + " WLGOLD as fee")) | |
1030 | 1032 | else { | |
1031 | 1033 | let changeActions = if ((change > 0)) | |
1032 | 1034 | then [ScriptTransfer(i.caller, change, wlgAssetId)] | |
1033 | 1035 | else nil | |
1034 | 1036 | let addr = toString(i.caller) | |
1035 | 1037 | let finishKey = keyCommit(addr) | |
1036 | 1038 | let finishBlock = valueOrErrorMessage(getInteger(finishKey), "You have to commitForRandom() first!") | |
1037 | 1039 | if ((finishBlock > height)) | |
1038 | 1040 | then throw(("Random number is not ready yet, wait until height = " + toString(finishBlock))) | |
1039 | 1041 | else { | |
1040 | 1042 | let entropy = value(value(blockInfoByHeight(finishBlock)).vrf) | |
1041 | 1043 | let salt = fromBase58String(split(valueOrElse(getString(keyCurWeekTxIdByUser(addr)), "42_DEFAULT"), "_")[1]) | |
1042 | 1044 | let rand = getRandomNumber(100, salt, entropy) | |
1043 | - | let $ | |
1045 | + | let $t02951529787 = if ((84 > rand)) | |
1044 | 1046 | then $Tuple2(1, idxRarityC) | |
1045 | 1047 | else if ((98 > rand)) | |
1046 | 1048 | then $Tuple2(5, idxRarityU) | |
1047 | 1049 | else $Tuple2(10, idxRarityL) | |
1048 | - | let bonus = $ | |
1049 | - | let rarityIdx = $ | |
1050 | - | let $ | |
1051 | - | let issueNftActions = $ | |
1052 | - | let nftAssetId = $ | |
1050 | + | let bonus = $t02951529787._1 | |
1051 | + | let rarityIdx = $t02951529787._2 | |
1052 | + | let $t02979029940 = issueNftCustom(idxNamePickaxe, rarityIdx, idxCollDig, rarityIdx, bonus, idxDescrPickaxe, idxBonusTypeFp, i.caller) | |
1053 | + | let issueNftActions = $t02979029940._1 | |
1054 | + | let nftAssetId = $t02979029940._2 | |
1053 | 1055 | $Tuple2(((((issueNftActions ++ prologActions) ++ changeActions) :+ ScriptTransfer(addressFromStringValue(getStringValue(wlgContract, teamAddrKey)), forTeam, wlgAssetId)) :+ DeleteEntry(finishKey)), $Tuple2(nftAssetId, wlgRemain)) | |
1054 | 1056 | } | |
1055 | 1057 | } | |
1056 | 1058 | } | |
1057 | 1059 | } | |
1058 | 1060 | } | |
1059 | 1061 | ||
1060 | 1062 | ||
1061 | 1063 | ||
1062 | 1064 | @Callable(i) | |
1063 | 1065 | func commitForRandom () = { | |
1064 | 1066 | let prologActions = prolog(i) | |
1065 | 1067 | let addr = toString(i.caller) | |
1066 | 1068 | let finishKey = keyCommit(addr) | |
1067 | 1069 | if (isDefined(getInteger(finishKey))) | |
1068 | 1070 | then throw("You already commited for random, please use it") | |
1069 | 1071 | else { | |
1070 | 1072 | let finishBlock = (height + RANDOM_DELAY) | |
1071 | 1073 | $Tuple2(([IntegerEntry(finishKey, finishBlock)] ++ prologActions), finishBlock) | |
1072 | 1074 | } | |
1073 | 1075 | } | |
1074 | 1076 | ||
1075 | 1077 |
github/deemru/w8io/026f985 127.58 ms ◑