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