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