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