tx · CMpXSrPGqpkQoKJdzK7MYiNCSt36qmxUuv5ZZ1SRskHE 3NBPx1Fciu3JQNEGZ21jSnTdutLNGGBUSXh: -0.02900000 Waves 2024.11.29 06:35 [3392191] smart account 3NBPx1Fciu3JQNEGZ21jSnTdutLNGGBUSXh > SELF 0.00000000 Waves
{ "type": 13, "id": "CMpXSrPGqpkQoKJdzK7MYiNCSt36qmxUuv5ZZ1SRskHE", "fee": 2900000, "feeAssetId": null, "timestamp": 1732851368049, "version": 2, "chainId": 84, "sender": "3NBPx1Fciu3JQNEGZ21jSnTdutLNGGBUSXh", "senderPublicKey": "3QtfC1XbLZXdeawMDeSERy9vvjUmj1XYd2GFmrvx7pWQ", "proofs": [ "3SvsL8eunES8X1VvkaoRnXgQsXJ6d2HUtJUfcibw119YAjABRVdgvXc541R6uJYDCBi3eptJyDdsvzeYLAG8UrBX" ], "script": "base64:BgJHCAISABIECgIICBIDCgEEEgMKAQESABIAEgMKAQESABIECgIIARIAEgMKAQgSAwoBCBIECgIIARIDCgEIEgASAwoBCBIAEgBxAANTRVACAl9fAAVNVUxUNgDAhD0ABU1VTFQ3AICt4gQABU1VTFQ4AIDC1y8ACkRBWV9NSUxMSVMAgLiZKQAVVVNEVDJBQ1JFU19NVUxUSVBMSUVSAAoAE09ORV9QRVJDRU5UX0RJVklTT1IAZAAFY2hhaW4JAMkBAgkAygECCAUEdGhpcwVieXRlcwABAAEAC1dFRUtfQkxPQ0tTBAckbWF0Y2gwBQVjaGFpbgMJAAACAQFXBQckbWF0Y2gwAOBOAwkAAAIBAVQFByRtYXRjaDAAtAEJAAIBAg1Vbmtub3duIGNoYWluAAt1c2R0QXNzZXRJZAQHJG1hdGNoMAUFY2hhaW4DCQAAAgEBVwUHJG1hdGNoMAEghNp6sggDP07Ru8qO7ouTvMmC3Qtd+geWqNQj+agP/7kDCQAAAgEBVAUHJG1hdGNoMAEgVbHYn3KHgu/l41uNrAWrZd6aQ6EvFrsF8xq3h6XxxRgJAAIBAg1V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BCQCsAgIJAKwCAgITWW91IG5lZWQgdG8gYXR0YWNoIAkApAMBBQp0b3RhbEJvbnVzAgwgVVNEVCBhcyBmZWUEDWNoYW5nZUFjdGlvbnMDCQBmAgUGY2hhbmdlAAAJAMwIAgkBDlNjcmlwdFRyYW5zZmVyAwgFAWkGY2FsbGVyBQZjaGFuZ2UFC3VzZHRBc3NldElkBQNuaWwFA25pbAQNJHQwMjU5NzIyNjA0NAkBEGlzc3VlTkZUaW50ZXJuYWwCBQhuZnRJbmRleAgFAWkGY2FsbGVyBA9pc3N1ZU5mdEFjdGlvbnMIBQ0kdDAyNTk3MjI2MDQ0Al8xBApuZnRBc3NldElkCAUNJHQwMjU5NzIyNjA0NAJfMgQGYnVybmVkCQCQAwEFC2J1cm5BY3Rpb25zBBJidXJuQ291bnRlckFjdGlvbnMDCQAAAgUGYnVybmVkAAAFA25pbAkAzAgCCQEMSW50ZWdlckVudHJ5AgURa2V5TmZ0VG90YWxCdXJuZWQJAGQCCQELdmFsdWVPckVsc2UCCQCfCAEFEWtleU5mdFRvdGFsQnVybmVkAAAFBmJ1cm5lZAUDbmlsCQCUCgIJAM4IAgkAzggCCQDOCAIJAM4IAgUPaXNzdWVOZnRBY3Rpb25zBQtidXJuQWN0aW9ucwUSYnVybkNvdW50ZXJBY3Rpb25zBQ1wcm9sb2dBY3Rpb25zBQ1jaGFuZ2VBY3Rpb25zBQpuZnRBc3NldElkAWkBDG9wZW5OZnRDaGVzdAADCQECIT0CCAUBaQZjYWxsZXIFBHRoaXMJAAIBAhFQZXJtaXNzaW9uIGRlbmllZAkAlAoCBQNuaWwAAACZzK1g", "height": 3392191, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: FkuouCruxf26S6783WN9HtAwaEcUXm26w4tpTzigbPrD Next: GA2UU9F6mipcYYJXiK8DyuuXwDmb63ccEcor7gfsiL85 Diff:
Old | New | Differences | |
---|---|---|---|
206 | 206 | ||
207 | 207 | let ap = "totalFarmingPower" | |
208 | 208 | ||
209 | - | let aq = | |
209 | + | let aq = 3 | |
210 | 210 | ||
211 | - | let ar = | |
211 | + | let ar = 1 | |
212 | 212 | ||
213 | - | let as = | |
213 | + | let as = 5000 | |
214 | 214 | ||
215 | - | let at = | |
215 | + | let at = 4 | |
216 | 216 | ||
217 | - | let au = | |
217 | + | let au = "nftTotalIssued" | |
218 | 218 | ||
219 | - | let av = " | |
219 | + | let av = "nftTotalBurned" | |
220 | 220 | ||
221 | - | let aw = " | |
221 | + | let aw = "WlNftTotalStaked" | |
222 | 222 | ||
223 | - | let ax = " | |
223 | + | let ax = "ArkNftTotalStaked" | |
224 | 224 | ||
225 | - | let ay = "ArkNftTotalStaked" | |
226 | - | ||
227 | - | func az (S) = ("nftNumberByAssetId_" + S) | |
225 | + | func ay (S) = ("nftNumberByAssetId_" + S) | |
228 | 226 | ||
229 | 227 | ||
230 | - | func | |
228 | + | func az (I) = ("userWlNftNumber_" + I) | |
231 | 229 | ||
232 | 230 | ||
233 | - | func | |
231 | + | func aA (I) = ("userArkNftNumber_" + I) | |
234 | 232 | ||
235 | 233 | ||
236 | - | func | |
234 | + | func aB (I) = ("userFullBonus_" + I) | |
237 | 235 | ||
238 | 236 | ||
239 | - | let | |
237 | + | let aC = [0, 10, 20, 40, 80, 150, 250, 400, 700, 1000] | |
240 | 238 | ||
241 | - | func | |
242 | - | let | |
243 | - | func | |
244 | - | then | |
245 | - | else ( | |
239 | + | func aD (aE) = { | |
240 | + | let aF = ((aE + 99999999) / aj) | |
241 | + | func aG (aH,aI) = if ((aI >= aF)) | |
242 | + | then aH | |
243 | + | else (aH + 1) | |
246 | 244 | ||
247 | - | let | |
248 | - | let | |
249 | - | let | |
250 | - | func | |
251 | - | then | |
252 | - | else | |
245 | + | let aJ = aC | |
246 | + | let aK = size(aJ) | |
247 | + | let aL = 0 | |
248 | + | func aM (aN,aO) = if ((aO >= aK)) | |
249 | + | then aN | |
250 | + | else aG(aN, aJ[aO]) | |
253 | 251 | ||
254 | - | func | |
255 | - | then | |
252 | + | func aP (aN,aO) = if ((aO >= aK)) | |
253 | + | then aN | |
256 | 254 | else throw("List size exceeds 10") | |
257 | 255 | ||
258 | - | | |
256 | + | aP(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aL, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
259 | 257 | } | |
260 | 258 | ||
261 | 259 | ||
262 | - | func | |
260 | + | func aQ (aE) = ((aE * 20) * (aD(aE) + 4)) | |
263 | 261 | ||
264 | 262 | ||
265 | - | func | |
266 | - | let | |
267 | - | $Tuple2(fraction( | |
263 | + | func aR (aE,aS) = { | |
264 | + | let aT = aQ(aE) | |
265 | + | $Tuple2(fraction(aT, (ai + aS), ai), aT) | |
268 | 266 | } | |
269 | 267 | ||
270 | 268 | ||
271 | - | func | |
269 | + | func aU (I) = ("lastArbTimeUser_" + I) | |
272 | 270 | ||
273 | 271 | ||
274 | - | let | |
272 | + | let aV = "lastAcresSellTime" | |
275 | 273 | ||
276 | - | let | |
274 | + | let aW = "lastLimitLeft" | |
277 | 275 | ||
278 | - | let | |
276 | + | let aX = ["SHOVEL-P3", "PICKAXE-C1", "PICKAXE-C3", "PICKAXE-C5", "PICKAXE-C10"] | |
279 | 277 | ||
280 | - | let | |
278 | + | let aY = ["contentShovelP3", "contentPickaxeC1", "contentPickaxeC3", "contentPickaxeC5", "contentPickaxeC10"] | |
281 | 279 | ||
282 | - | let | |
280 | + | let aZ = ["Gold shovel", "Pickaxe"] | |
283 | 281 | ||
284 | - | let | |
282 | + | let ba = ["Reward for early birds", "Increases FarmPower"] | |
285 | 283 | ||
286 | - | let | |
284 | + | let bb = 0 | |
287 | 285 | ||
288 | - | let | |
286 | + | let bc = 1 | |
289 | 287 | ||
290 | - | func be (bf) = if (if ((bf.originCaller != B)) | |
288 | + | let bd = ["Promo", "Common"] | |
289 | + | ||
290 | + | let be = [3, 1, 3, 5, 10] | |
291 | + | ||
292 | + | let bf = ["SHOVEL", "PICKAXE"] | |
293 | + | ||
294 | + | let bg = 0 | |
295 | + | ||
296 | + | let bh = 1 | |
297 | + | ||
298 | + | let bi = ["contentPickaxeC", "contentPickaxeU", "contentPickaxeL", "contentPickaxeE", "contentShovelP"] | |
299 | + | ||
300 | + | let bj = 0 | |
301 | + | ||
302 | + | let bk = 4 | |
303 | + | ||
304 | + | let bl = ["Common", "Uncommon", "Legendary", "Epic", "Promo"] | |
305 | + | ||
306 | + | let bm = 0 | |
307 | + | ||
308 | + | let bn = 4 | |
309 | + | ||
310 | + | let bo = ["Digging tools"] | |
311 | + | ||
312 | + | let bp = 0 | |
313 | + | ||
314 | + | let bq = ["FarmPower"] | |
315 | + | ||
316 | + | let br = 0 | |
317 | + | ||
318 | + | func bs (bt) = if (if ((bt.originCaller != B)) | |
291 | 319 | then valueOrElse(getBoolean(G()), false) | |
292 | 320 | else false) | |
293 | 321 | then throw("Contracts are under maintenance") | |
294 | 322 | else { | |
295 | - | let I = toString(bf.originCaller) | |
296 | - | let bg = (height / i) | |
297 | - | let bh = getString(H(I)) | |
298 | - | let bi = toBase58String(bf.transactionId) | |
299 | - | let bj = ((toString(bg) + "_") + bi) | |
300 | - | if (isDefined(bh)) | |
323 | + | let I = toString(bt.originCaller) | |
324 | + | let bu = (height / i) | |
325 | + | let bv = H(I) | |
326 | + | let bw = getString(bv) | |
327 | + | let bx = toBase58String(bt.transactionId) | |
328 | + | let by = ((toString(bu) + "_") + bx) | |
329 | + | let bz = J(I) | |
330 | + | if (isDefined(bw)) | |
301 | 331 | then { | |
302 | - | let | |
303 | - | if (( | |
304 | - | then [StringEntry( | |
305 | - | else if (( | |
306 | - | then [StringEntry( | |
332 | + | let bA = split(value(bw), "_") | |
333 | + | if ((bA[0] == toString(bu))) | |
334 | + | then [StringEntry(bv, by), StringEntry(bz, by)] | |
335 | + | else if ((bA[0] == toString((bu - 1)))) | |
336 | + | then [StringEntry(bz, by)] | |
307 | 337 | else { | |
308 | - | let | |
309 | - | let | |
310 | - | if (( | |
311 | - | then [StringEntry( | |
312 | - | else [StringEntry( | |
338 | + | let bB = getStringValue(bz) | |
339 | + | let bC = split(bB, "_") | |
340 | + | if ((bC[0] == toString(bu))) | |
341 | + | then [StringEntry(bz, by)] | |
342 | + | else [StringEntry(bv, bB), StringEntry(bz, by)] | |
313 | 343 | } | |
314 | 344 | } | |
315 | - | else [StringEntry( | |
345 | + | else [StringEntry(bv, by), StringEntry(bz, by)] | |
316 | 346 | } | |
317 | 347 | ||
318 | 348 | ||
319 | - | func | |
349 | + | func bD (bE,bF,bG,bH,bI,bJ,bK,bL) = (((((((((((((((((((((((("{\"url\": \"https://waveslands.com\", " + "\"contentKey\": \"") + bE) + "\", ") + "\"number\": ") + toString(bF)) + ", ") + "\"collection\": \"") + bG) + "\", ") + "\"name\": \"") + bH) + "\", ") + "\"description\": \"") + bI) + "\", ") + "\"rare\": \"") + bJ) + "\", ") + "\"bonus\": ") + toString(bK)) + ", ") + "\"bonusType\": \"") + bL) + "\"}") | |
320 | 350 | ||
321 | 351 | ||
322 | - | func bq (bo,I) = if ((bo >= size(aZ))) | |
352 | + | func bM (bN,bO,bP,bQ,bR,bS,bT,I) = { | |
353 | + | let bF = valueOrElse(getInteger(au), 0) | |
354 | + | let bJ = bl[bQ] | |
355 | + | let bH = (((bf[bN] + "-") + take(bJ, 1)) + toString(bR)) | |
356 | + | let bU = Issue(bH, bD(bi[bO], bF, bo[bP], aZ[bN], ba[bS], bl[bQ], bR, bq[bT]), 1, 0, false) | |
357 | + | let bV = calculateAssetId(bU) | |
358 | + | $Tuple2([bU, IntegerEntry(au, (bF + 1)), IntegerEntry(ay(toBase58String(bV)), bF), ScriptTransfer(I, 1, bV)], bV) | |
359 | + | } | |
360 | + | ||
361 | + | ||
362 | + | func bW (bX,bF) = ((((((((((((((((((((("{\"url\": \"https://waveslands.com\", " + "\"contentKey\": \"") + aY[bX]) + "\", ") + "\"number\": ") + bF) + ", ") + "\"collection\": \"Digging tools") + "\", ") + "\"name\": \"") + aZ[bX]) + "\", ") + "\"description\": \"") + ba[bX]) + "\", ") + "\"rare\": \"") + bd[bX]) + "\", ") + "\"bonus\": ") + toString(be[bX])) + ", ") + "\"bonusType\": \"FarmPower\"}") | |
363 | + | ||
364 | + | ||
365 | + | func bY (bX,I) = if ((bX >= size(aY))) | |
323 | 366 | then throw("nftIndex out of bounds") | |
324 | 367 | else { | |
325 | - | let | |
326 | - | let | |
327 | - | let | |
328 | - | $Tuple2([ | |
368 | + | let bF = valueOrElse(getInteger(au), 0) | |
369 | + | let bU = Issue(aX[bX], bW(bX, toString(bF)), 1, 0, false) | |
370 | + | let bV = calculateAssetId(bU) | |
371 | + | $Tuple2([bU, IntegerEntry(au, (bF + 1)), IntegerEntry(ay(toBase58String(bV)), bF), ScriptTransfer(I, 1, bV)], bV) | |
329 | 372 | } | |
330 | 373 | ||
331 | 374 | ||
332 | - | func | |
333 | - | then ( | |
375 | + | func bZ (ca,p,cb) = if (if ((ca == 0)) | |
376 | + | then (cb == 0) | |
334 | 377 | else false) | |
335 | 378 | then throw("Nothing to do") | |
336 | 379 | else { | |
337 | - | let | |
338 | - | if (( | |
380 | + | let cc = invoke(D, "onStakeUnstakeLand", [p], nil) | |
381 | + | if ((cc == cc)) | |
339 | 382 | then { | |
340 | - | let | |
341 | - | let | |
342 | - | let | |
343 | - | let | |
344 | - | if (if ((0 > | |
345 | - | then (0 > ( | |
383 | + | let cd = lastBlock.timestamp | |
384 | + | let ce = N(p) | |
385 | + | let cf = am(p) | |
386 | + | let cg = valueOrElse(getInteger(cf), 0) | |
387 | + | if (if ((0 > ca)) | |
388 | + | then (0 > (cg + ca)) | |
346 | 389 | else false) | |
347 | - | then throw(((("You have only " + ad( | |
390 | + | then throw(((("You have only " + ad(cg, 8)) + " ACRES staked, tried to unstake ") + ad(-(ca), 8))) | |
348 | 391 | else { | |
349 | - | let | |
350 | - | let | |
351 | - | let | |
352 | - | let | |
353 | - | let | |
354 | - | let | |
355 | - | if (if ((0 > | |
356 | - | then (0 > ( | |
392 | + | let ch = (cg + ca) | |
393 | + | let ci = valueOrElse(getInteger(ao), 0) | |
394 | + | let cj = an(p) | |
395 | + | let ck = valueOrElse(getInteger(cj), 0) | |
396 | + | let cl = aB(p) | |
397 | + | let cm = valueOrElse(getInteger(C, cl), 0) | |
398 | + | if (if ((0 > cb)) | |
399 | + | then (0 > (cm + cb)) | |
357 | 400 | else false) | |
358 | - | then throw((((("You have only " + ad( | |
401 | + | then throw((((("You have only " + ad(cm, 4)) + "% bonus, and tried to unstake ") + ad(-(cb), 4)) + "%")) | |
359 | 402 | else { | |
360 | - | let | |
361 | - | let | |
362 | - | let | |
363 | - | let | |
364 | - | let | |
403 | + | let cn = aR(ch, (cm + cb)) | |
404 | + | let co = cn._1 | |
405 | + | let cp = cn._2 | |
406 | + | let cq = valueOrElse(getInteger(ap), 0) | |
407 | + | let cr = if ((ca == 0)) | |
365 | 408 | then nil | |
366 | - | else [IntegerEntry( | |
367 | - | $Tuple2((((( | |
409 | + | else [IntegerEntry(cf, ch), IntegerEntry(ao, (ci + ca))] | |
410 | + | $Tuple2(((((cr :+ IntegerEntry(ce, lastBlock.timestamp)) :+ IntegerEntry(cj, co)) :+ IntegerEntry(ap, ((cq + co) - ck))) :+ IntegerEntry(cl, (cm + cb))), cc) | |
368 | 411 | } | |
369 | 412 | } | |
370 | 413 | } | |
372 | 415 | } | |
373 | 416 | ||
374 | 417 | ||
375 | - | func | |
376 | - | let | |
377 | - | let | |
378 | - | let | |
379 | - | let | |
380 | - | let | |
381 | - | fraction( | |
418 | + | func cs (ct) = { | |
419 | + | let cu = valueOrErrorMessage(getInteger(D, ak), "WLGOLD is not issued yet") | |
420 | + | let cv = assetBalance(D, k) | |
421 | + | let cw = (assetBalance(C, k) - ct) | |
422 | + | let cx = (assetBalance(E, k) + valueOrElse(getInteger(E, al), 0)) | |
423 | + | let cy = ((cw + cv) + cx) | |
424 | + | fraction(cy, d, cu) | |
382 | 425 | } | |
383 | 426 | ||
384 | 427 | ||
385 | - | func | |
386 | - | let | |
387 | - | let | |
388 | - | let | |
389 | - | let | |
390 | - | let | |
391 | - | let | |
392 | - | let | |
393 | - | let | |
394 | - | let | |
395 | - | $Tuple2(IntegerEntry( | |
428 | + | func cz () = { | |
429 | + | let cv = assetBalance(D, k) | |
430 | + | let cw = assetBalance(this, k) | |
431 | + | let cx = (assetBalance(E, k) + valueOrElse(getInteger(E, al), 0)) | |
432 | + | let cA = (((cw + cv) + cx) / g) | |
433 | + | let cB = valueOrElse(getInteger(aW), cA) | |
434 | + | let cC = valueOrElse(getInteger(aV), 0) | |
435 | + | let cd = lastBlock.timestamp | |
436 | + | let cD = (cB + fraction(cA, (cd - cC), e)) | |
437 | + | let cE = min([cD, cA]) | |
438 | + | $Tuple2(IntegerEntry(aV, cd), cE) | |
396 | 439 | } | |
397 | 440 | ||
398 | 441 | ||
399 | - | let | |
442 | + | let cF = addressFromStringValue("3PJgZ6AK1WVCpdCmEZpesHmaKvrQDdXG5og") | |
400 | 443 | ||
401 | - | let | |
444 | + | let cG = valueOrElse(getString(cF, "static_incubatorAddress"), "") | |
402 | 445 | ||
403 | - | let | |
446 | + | let cH = valueOrElse(getString(cF, "static_breederAddress"), "") | |
404 | 447 | ||
405 | - | let | |
448 | + | let cI = valueOrElse(getString(cF, "static_turtleIncubatorAddress"), "") | |
406 | 449 | ||
407 | - | let | |
450 | + | let cJ = valueOrElse(getString(cF, "static_turtleBreederAddress"), "") | |
408 | 451 | ||
409 | - | let | |
452 | + | let cK = valueOrElse(getString(cF, "static_canineIncubatorAddress"), "") | |
410 | 453 | ||
411 | - | let | |
454 | + | let cL = valueOrElse(getString(cF, "static_canineBreederAddress"), "") | |
412 | 455 | ||
413 | - | let | |
456 | + | let cM = valueOrElse(getString(cF, "static_felineIncubatorAddress"), "") | |
414 | 457 | ||
415 | - | let | |
458 | + | let cN = valueOrElse(getString(cF, "static_felineBreederAddress"), "") | |
416 | 459 | ||
417 | - | let | |
460 | + | let cO = valueOrElse(getString(cF, "static_mutantIncubatorAddress"), "") | |
418 | 461 | ||
419 | - | func | |
420 | - | let | |
462 | + | func cP (cQ) = { | |
463 | + | let cR = toString(cQ.issuer) | |
421 | 464 | if (if (if (if (if (if (if (if (if (if ((h == base58'2T')) | |
422 | - | then ( | |
465 | + | then (cR == n) | |
423 | 466 | else false) | |
424 | 467 | then true | |
425 | - | else ( | |
468 | + | else (cR == cG)) | |
426 | 469 | then true | |
427 | - | else ( | |
470 | + | else (cR == cH)) | |
428 | 471 | then true | |
429 | - | else ( | |
472 | + | else (cR == cI)) | |
430 | 473 | then true | |
431 | - | else ( | |
474 | + | else (cR == cJ)) | |
432 | 475 | then true | |
433 | - | else ( | |
476 | + | else (cR == cK)) | |
434 | 477 | then true | |
435 | - | else ( | |
478 | + | else (cR == cL)) | |
436 | 479 | then true | |
437 | - | else ( | |
480 | + | else (cR == cM)) | |
438 | 481 | then true | |
439 | - | else ( | |
440 | - | then | |
441 | - | else if (( | |
442 | - | then | |
482 | + | else (cR == cN)) | |
483 | + | then cQ.name | |
484 | + | else if ((cR == cO)) | |
485 | + | then cQ.description | |
443 | 486 | else "" | |
444 | 487 | } | |
445 | 488 | ||
446 | 489 | ||
447 | - | func | |
448 | - | then throw(("NFT is not supported: " + | |
490 | + | func cS (bI) = if (!(contains(bI, "\"bonusType\": \"FarmPower\""))) | |
491 | + | then throw(("NFT is not supported: " + bI)) | |
449 | 492 | else { | |
450 | - | let | |
451 | - | parseIntValue(drop( | |
493 | + | let cT = split_4C(split_4C(bI, "\"bonus\":")[1], ",")[0] | |
494 | + | parseIntValue(drop(cT, (valueOrElse(lastIndexOf(cT, " "), -1) + 1))) | |
452 | 495 | } | |
453 | 496 | ||
454 | 497 | ||
455 | - | func | |
456 | - | let | |
457 | - | if (( | |
458 | - | then throw((("You can stake max " + toString( | |
498 | + | func cU (I,cV,aS,cW,cX,cY) = { | |
499 | + | let cZ = valueOrElse(getInteger(cW), 0) | |
500 | + | if ((cZ >= cY)) | |
501 | + | then throw((("You can stake max " + toString(cY)) + " of such NFTs")) | |
459 | 502 | else { | |
460 | - | let | |
461 | - | let | |
462 | - | let | |
463 | - | $Tuple2(((( | |
503 | + | let da = bZ(0, I, aS) | |
504 | + | let db = da._1 | |
505 | + | let dc = da._2 | |
506 | + | $Tuple2((((db :+ IntegerEntry(cW, (cZ + 1))) :+ IntegerEntry(cX, (valueOrElse(getInteger(cX), 0) + 1))) :+ IntegerEntry(R(cV, I), lastBlock.timestamp)), dc) | |
464 | 507 | } | |
465 | 508 | } | |
466 | 509 | ||
467 | 510 | ||
468 | - | @Callable( | |
469 | - | func saveLastTx () = if (!(containsElement([D], | |
511 | + | @Callable(bt) | |
512 | + | func saveLastTx () = if (!(containsElement([D], bt.caller))) | |
470 | 513 | then throw("Access denied") | |
471 | - | else $Tuple2( | |
514 | + | else $Tuple2(bs(bt), 42) | |
472 | 515 | ||
473 | 516 | ||
474 | 517 | ||
475 | - | @Callable( | |
476 | - | func constructorV1 ( | |
518 | + | @Callable(bt) | |
519 | + | func constructorV1 (dd,de) = if ((bt.caller != this)) | |
477 | 520 | then throw("Permission denied") | |
478 | 521 | else { | |
479 | - | let | |
480 | - | [IntegerEntry(K, getIntegerValue( | |
522 | + | let df = addressFromStringValue(de) | |
523 | + | [IntegerEntry(K, getIntegerValue(df, K)), BinaryEntry(L, getBinaryValue(df, L)), StringEntry(v(), dd), StringEntry(F, de)] | |
481 | 524 | } | |
482 | 525 | ||
483 | 526 | ||
484 | 527 | ||
485 | - | @Callable( | |
486 | - | func setBlocked ( | |
528 | + | @Callable(bt) | |
529 | + | func setBlocked (dg) = if ((bt.caller != this)) | |
487 | 530 | then throw("permission denied") | |
488 | - | else [BooleanEntry(G(), | |
531 | + | else [BooleanEntry(G(), dg)] | |
489 | 532 | ||
490 | 533 | ||
491 | 534 | ||
492 | - | @Callable( | |
493 | - | func unstakeAcres ( | |
494 | - | let | |
495 | - | if ((0 >= | |
535 | + | @Callable(bt) | |
536 | + | func unstakeAcres (dh) = { | |
537 | + | let di = bs(bt) | |
538 | + | if ((0 >= dh)) | |
496 | 539 | then throw("Amount should be positive") | |
497 | 540 | else { | |
498 | - | let p = toString( | |
499 | - | if ((size( | |
541 | + | let p = toString(bt.caller) | |
542 | + | if ((size(bt.payments) != 0)) | |
500 | 543 | then throw("No payments required") | |
501 | 544 | else { | |
502 | - | let | |
503 | - | if (( | |
504 | - | then throw(("You traded some WLGOLD, cannot unstake until " + toString( | |
545 | + | let dj = (valueOrElse(getInteger(D, aU(p)), 0) + m) | |
546 | + | if ((dj > lastBlock.timestamp)) | |
547 | + | then throw(("You traded some WLGOLD, cannot unstake until " + toString(dj))) | |
505 | 548 | else { | |
506 | - | let | |
507 | - | let | |
508 | - | let | |
509 | - | $Tuple2((( | |
549 | + | let dk = bZ(-(dh), p, 0) | |
550 | + | let db = dk._1 | |
551 | + | let dc = dk._2 | |
552 | + | $Tuple2(((db :+ ScriptTransfer(bt.caller, dh, M)) ++ di), dc) | |
510 | 553 | } | |
511 | 554 | } | |
512 | 555 | } | |
514 | 557 | ||
515 | 558 | ||
516 | 559 | ||
517 | - | @Callable( | |
560 | + | @Callable(bt) | |
518 | 561 | func stakeAcres () = { | |
519 | - | let | |
520 | - | let p = toString( | |
521 | - | if ((size( | |
562 | + | let di = bs(bt) | |
563 | + | let p = toString(bt.caller) | |
564 | + | if ((size(bt.payments) != 1)) | |
522 | 565 | then throw("exactly 1 payment must be attached") | |
523 | 566 | else { | |
524 | - | let | |
525 | - | let | |
526 | - | if (if (!(isDefined( | |
567 | + | let dl = bt.payments[0] | |
568 | + | let ca = dl.amount | |
569 | + | if (if (!(isDefined(dl.assetId))) | |
527 | 570 | then true | |
528 | - | else (value( | |
571 | + | else (value(dl.assetId) != M)) | |
529 | 572 | then throw("ACRES payments only!") | |
530 | 573 | else { | |
531 | - | let | |
532 | - | let | |
533 | - | let | |
534 | - | $Tuple2(( | |
574 | + | let dm = bZ(ca, p, 0) | |
575 | + | let db = dm._1 | |
576 | + | let dc = dm._2 | |
577 | + | $Tuple2((db ++ di), dc) | |
535 | 578 | } | |
536 | 579 | } | |
537 | 580 | } | |
538 | 581 | ||
539 | 582 | ||
540 | 583 | ||
541 | - | @Callable( | |
584 | + | @Callable(bt) | |
542 | 585 | func buyAcres () = { | |
543 | - | let | |
544 | - | if ((size( | |
586 | + | let di = bs(bt) | |
587 | + | if ((size(bt.payments) != 1)) | |
545 | 588 | then throw("exactly 1 payment must be attached") | |
546 | 589 | else { | |
547 | - | let | |
548 | - | let | |
549 | - | if (if (!(isDefined( | |
590 | + | let dl = bt.payments[0] | |
591 | + | let dn = dl.amount | |
592 | + | if (if (!(isDefined(dl.assetId))) | |
550 | 593 | then true | |
551 | - | else (value( | |
594 | + | else (value(dl.assetId) != k)) | |
552 | 595 | then throw("USDT payments only!") | |
553 | - | else if ((b > | |
596 | + | else if ((b > dn)) | |
554 | 597 | then throw((("Min payment should be " + ad(b, 6)) + " USDT")) | |
555 | 598 | else { | |
556 | - | let | |
557 | - | let | |
558 | - | let | |
559 | - | let | |
560 | - | if (( | |
599 | + | let do = (dn * f) | |
600 | + | let dp = fraction(dn, d, cs(dn)) | |
601 | + | let dq = addressFromStringValue(getStringValue(F)) | |
602 | + | let dr = invoke(dq, "requestAcresCallback", [do], nil) | |
603 | + | if ((dr == dr)) | |
561 | 604 | then { | |
562 | - | let | |
563 | - | $Tuple2(([ScriptTransfer( | |
605 | + | let ds = U(invoke(D, "burnWlgold", [dp], nil)) | |
606 | + | $Tuple2(([ScriptTransfer(bt.caller, do, M)] ++ di), ds) | |
564 | 607 | } | |
565 | 608 | else throw("Strict value is not equal to itself.") | |
566 | 609 | } | |
569 | 612 | ||
570 | 613 | ||
571 | 614 | ||
572 | - | @Callable( | |
573 | - | func buyAcresREADONLY ( | |
574 | - | let | |
575 | - | let | |
576 | - | $Tuple2(nil, [ | |
615 | + | @Callable(bt) | |
616 | + | func buyAcresREADONLY (dn) = { | |
617 | + | let do = (dn * f) | |
618 | + | let dt = fraction(dn, d, cs(dn)) | |
619 | + | $Tuple2(nil, [do, b, do, dt]) | |
577 | 620 | } | |
578 | 621 | ||
579 | 622 | ||
580 | 623 | ||
581 | - | @Callable( | |
624 | + | @Callable(bt) | |
582 | 625 | func sellAcres () = { | |
583 | - | let | |
584 | - | if ((size( | |
626 | + | let di = bs(bt) | |
627 | + | if ((size(bt.payments) != 1)) | |
585 | 628 | then throw("exactly 1 payment must be attached") | |
586 | 629 | else { | |
587 | - | let | |
588 | - | let | |
589 | - | if (if (!(isDefined( | |
630 | + | let dl = bt.payments[0] | |
631 | + | let do = dl.amount | |
632 | + | if (if (!(isDefined(dl.assetId))) | |
590 | 633 | then true | |
591 | - | else (value( | |
634 | + | else (value(dl.assetId) != M)) | |
592 | 635 | then throw("ACRES payments only!") | |
593 | - | else if ((c > | |
636 | + | else if ((c > do)) | |
594 | 637 | then throw((("Min payment should be " + ad(c, 8)) + " ACRES")) | |
595 | 638 | else { | |
596 | - | let I = toString( | |
597 | - | let | |
598 | - | let | |
599 | - | let | |
600 | - | let | |
601 | - | if (( | |
602 | - | then throw((("You can sell max " + ad( | |
639 | + | let I = toString(bt.caller) | |
640 | + | let du = cz() | |
641 | + | let dv = du._1 | |
642 | + | let dw = du._2 | |
643 | + | let dx = (dw * f) | |
644 | + | if ((do > dx)) | |
645 | + | then throw((("You can sell max " + ad(dx, 8)) + " ACRES")) | |
603 | 646 | else { | |
604 | - | let | |
605 | - | $Tuple2(([ | |
647 | + | let dn = ((do / f) / 2) | |
648 | + | $Tuple2(([dv, IntegerEntry(aW, (dw - dn)), ScriptTransfer(bt.caller, dn, k)] ++ di), dn) | |
606 | 649 | } | |
607 | 650 | } | |
608 | 651 | } | |
610 | 653 | ||
611 | 654 | ||
612 | 655 | ||
613 | - | @Callable( | |
614 | - | func sellAcresREADONLY (p, | |
615 | - | let | |
616 | - | let | |
617 | - | let | |
618 | - | let | |
619 | - | $Tuple2(nil, [ | |
656 | + | @Callable(bt) | |
657 | + | func sellAcresREADONLY (p,do) = { | |
658 | + | let dy = cz() | |
659 | + | let dv = dy._1 | |
660 | + | let dw = dy._2 | |
661 | + | let dn = ((do / f) / 2) | |
662 | + | $Tuple2(nil, [dn, c, (dw * f), 0]) | |
620 | 663 | } | |
621 | 664 | ||
622 | 665 | ||
623 | 666 | ||
624 | - | @Callable( | |
625 | - | func convertOldStakes () = if (( | |
667 | + | @Callable(bt) | |
668 | + | func convertOldStakes () = if ((bt.caller != this)) | |
626 | 669 | then throw("Temporarily disabled") | |
627 | 670 | else { | |
628 | - | let p = toString( | |
629 | - | if ((size( | |
671 | + | let p = toString(bt.caller) | |
672 | + | if ((size(bt.payments) != 0)) | |
630 | 673 | then throw("No payments required") | |
631 | 674 | else { | |
632 | - | let | |
633 | - | let | |
634 | - | let | |
635 | - | then ac(invoke( | |
675 | + | let dq = addressFromStringValue(getStringValue(F)) | |
676 | + | let dh = valueOrElse(getInteger(dq, am(p)), 0) | |
677 | + | let dz = if ((dh > 0)) | |
678 | + | then ac(invoke(dq, "unstakeAcresCallback", [dh, p], nil)) | |
636 | 679 | else $Tuple2(0, 0) | |
637 | - | let | |
638 | - | let | |
639 | - | let | |
680 | + | let dA = addressFromStringValue(n) | |
681 | + | let dB = getString(dA, O(p)) | |
682 | + | let dC = if (isDefined(dB)) | |
640 | 683 | then { | |
641 | - | let | |
642 | - | func | |
684 | + | let dD = split_51C(value(dB), "_") | |
685 | + | func dE (aH,dF) = if ((dF == "")) | |
643 | 686 | then throw("landAssetId is required") | |
644 | 687 | else { | |
645 | - | let | |
646 | - | $Tuple4(( | |
688 | + | let dG = X(invoke(dA, "unstakeLandCallback", [dF, p], nil)) | |
689 | + | $Tuple4((aH._1 + dG._1), (aH._2 + dG._2), (aH._3 + dG._3), (aH._4 + dG._4)) | |
647 | 690 | } | |
648 | 691 | ||
649 | - | let | |
650 | - | let | |
651 | - | let | |
652 | - | let | |
653 | - | func | |
654 | - | then | |
655 | - | else | |
692 | + | let dH = { | |
693 | + | let aJ = dD | |
694 | + | let aK = size(aJ) | |
695 | + | let aL = $Tuple4(0, 0, 0, 0) | |
696 | + | func aM (aN,aO) = if ((aO >= aK)) | |
697 | + | then aN | |
698 | + | else dE(aN, aJ[aO]) | |
656 | 699 | ||
657 | - | func | |
658 | - | then | |
700 | + | func aP (aN,aO) = if ((aO >= aK)) | |
701 | + | then aN | |
659 | 702 | else throw("List size exceeds 100") | |
660 | 703 | ||
661 | - | | |
704 | + | aP(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aL, 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) | |
662 | 705 | } | |
663 | - | let | |
664 | - | if (( | |
706 | + | let dI = invoke(dA, "unstakeLandsFinalizeCallback", [p], nil) | |
707 | + | if ((dI == dI)) | |
665 | 708 | then { | |
666 | - | let | |
667 | - | if (( | |
709 | + | let dr = invoke(dq, "requestAcresCallback", [(((dH._1 + dH._2) + dH._3) + dH._4)], nil) | |
710 | + | if ((dr == dr)) | |
668 | 711 | then { | |
669 | - | let | |
670 | - | let | |
671 | - | let | |
672 | - | $Tuple5( | |
712 | + | let dJ = bM(bg, bk, bp, bn, 3, bb, br, bt.caller) | |
713 | + | let dK = dJ._1 | |
714 | + | let bV = dJ._2 | |
715 | + | $Tuple5(dH._1, dH._2, dH._3, dH._4, dK) | |
673 | 716 | } | |
674 | 717 | else throw("Strict value is not equal to itself.") | |
675 | 718 | } | |
676 | 719 | else throw("Strict value is not equal to itself.") | |
677 | 720 | } | |
678 | 721 | else $Tuple5(0, 0, 0, 0, nil) | |
679 | - | let | |
680 | - | let | |
681 | - | then ab(invoke( | |
722 | + | let dL = valueOrElse(getString(dA, Q(p)), "") | |
723 | + | let dM = if ((dL != "")) | |
724 | + | then ab(invoke(dA, "unstakeDuckCallback", [dL, p], nil)) | |
682 | 725 | else $Tuple3(0, 0, 0) | |
683 | - | let | |
684 | - | $Tuple2(( | |
726 | + | let dN = bZ((((((((dz._1 + dC._1) + dC._2) + dC._3) + dC._4) + dM._1) + dM._2) + dM._3), p, 0) | |
727 | + | $Tuple2((dC._5 ++ dN._1), dN._2) | |
685 | 728 | } | |
686 | 729 | } | |
687 | 730 | ||
688 | 731 | ||
689 | 732 | ||
690 | - | @Callable( | |
733 | + | @Callable(bt) | |
691 | 734 | func unstakeLandsREADONLY (p) = { | |
692 | - | let | |
693 | - | let | |
694 | - | let | |
735 | + | let dA = addressFromStringValue(n) | |
736 | + | let dB = getString(dA, O(p)) | |
737 | + | let dC = if (isDefined(dB)) | |
695 | 738 | then { | |
696 | - | let | |
697 | - | func | |
739 | + | let dD = split_51C(value(dB), "_") | |
740 | + | func dE (aH,dF) = if ((dF == "")) | |
698 | 741 | then throw("landAssetId is required") | |
699 | 742 | else { | |
700 | - | let | |
701 | - | $Tuple4(( | |
743 | + | let dG = aa(invoke(dA, "unstakeLandREADONLY", [dF, p], nil)) | |
744 | + | $Tuple4((aH._1 + dG._1), (aH._2 + dG._2), (aH._3 + dG._3), (aH._4 + dG._4)) | |
702 | 745 | } | |
703 | 746 | ||
704 | - | let | |
705 | - | let | |
706 | - | let | |
707 | - | func | |
708 | - | then | |
709 | - | else | |
747 | + | let aJ = dD | |
748 | + | let aK = size(aJ) | |
749 | + | let aL = $Tuple4(0, 0, 0, 0) | |
750 | + | func aM (aN,aO) = if ((aO >= aK)) | |
751 | + | then aN | |
752 | + | else dE(aN, aJ[aO]) | |
710 | 753 | ||
711 | - | func | |
712 | - | then | |
754 | + | func aP (aN,aO) = if ((aO >= aK)) | |
755 | + | then aN | |
713 | 756 | else throw("List size exceeds 100") | |
714 | 757 | ||
715 | - | | |
758 | + | aP(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aL, 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) | |
716 | 759 | } | |
717 | 760 | else $Tuple4(0, 0, 0, 0) | |
718 | - | $Tuple2(nil, | |
761 | + | $Tuple2(nil, dC) | |
719 | 762 | } | |
720 | 763 | ||
721 | 764 | ||
722 | 765 | ||
723 | - | @Callable( | |
724 | - | func stakeAcresCallback (I) = if (( | |
766 | + | @Callable(bt) | |
767 | + | func stakeAcresCallback (I) = if ((bt.caller != addressFromStringValue(n))) | |
725 | 768 | then throw("Permission denied") | |
726 | - | else bt | |
769 | + | else bZ(bt.payments[0].amount, I, 0) | |
727 | 770 | ||
728 | 771 | ||
729 | 772 | ||
730 | - | @Callable( | |
731 | - | func simulateStakeAcresREADONLY (p, | |
732 | - | let | |
733 | - | let | |
734 | - | let | |
735 | - | let | |
736 | - | let | |
737 | - | let | |
738 | - | let | |
739 | - | let | |
740 | - | let | |
741 | - | let | |
742 | - | let | |
743 | - | $Tuple2(nil, [ | |
773 | + | @Callable(bt) | |
774 | + | func simulateStakeAcresREADONLY (p,dO) = { | |
775 | + | let cf = am(p) | |
776 | + | let ch = (valueOrElse(getInteger(cf), 0) + dO) | |
777 | + | let ci = valueOrElse(getInteger(ao), 0) | |
778 | + | let cj = an(p) | |
779 | + | let ck = valueOrElse(getInteger(cj), 0) | |
780 | + | let dP = valueOrElse(getInteger(C, aB(p)), 0) | |
781 | + | let dQ = aR(ch, dP) | |
782 | + | let co = dQ._1 | |
783 | + | let cp = dQ._2 | |
784 | + | let cq = valueOrElse(getInteger(ap), 0) | |
785 | + | let dR = ((cq + co) - ck) | |
786 | + | $Tuple2(nil, [ck, co, cq, dR]) | |
744 | 787 | } | |
745 | 788 | ||
746 | 789 | ||
747 | 790 | ||
748 | - | @Callable( | |
749 | - | func | |
791 | + | @Callable(bt) | |
792 | + | func issuePickC1 (dS) = if ((bt.caller != D)) | |
750 | 793 | then throw("Permission denied") | |
751 | - | else | |
794 | + | else bM(bh, bj, bp, bm, 1, bc, br, addressFromStringValue(dS)) | |
752 | 795 | ||
753 | 796 | ||
754 | 797 | ||
755 | - | @Callable(bf) | |
756 | - | func issueNftAdmin (dn,bo,do) = if ((bf.caller != this)) | |
757 | - | then throw("Permission denied") | |
758 | - | else if ((bo >= size(aZ))) | |
759 | - | then throw("nftIndex out of bounds") | |
760 | - | else { | |
761 | - | let br = Issue(aY[bo], bn(bo, toString(do)), 1, 0, false) | |
762 | - | let bs = calculateAssetId(br) | |
763 | - | $Tuple2([br, IntegerEntry(az(toBase58String(bs)), do), ScriptTransfer(addressFromStringValue(dn), 1, bs)], bs) | |
764 | - | } | |
765 | - | ||
766 | - | ||
767 | - | ||
768 | - | @Callable(bf) | |
798 | + | @Callable(bt) | |
769 | 799 | func stakeNFT () = { | |
770 | - | let | |
771 | - | if ((size( | |
800 | + | let di = bs(bt) | |
801 | + | if ((size(bt.payments) != 1)) | |
772 | 802 | then throw("Exactly one payment required") | |
773 | 803 | else { | |
774 | - | let | |
775 | - | if (( | |
804 | + | let dl = value(bt.payments[0]) | |
805 | + | if ((dl.amount != 1)) | |
776 | 806 | then throw("NFT token should be attached as payment") | |
777 | 807 | else { | |
778 | - | let S = value( | |
779 | - | let | |
780 | - | let | |
781 | - | let I = toString( | |
782 | - | let | |
783 | - | let | |
784 | - | let | |
785 | - | then split_4C(value( | |
808 | + | let S = value(dl.assetId) | |
809 | + | let dT = value(assetInfo(S)) | |
810 | + | let cV = toBase58String(S) | |
811 | + | let I = toString(bt.caller) | |
812 | + | let dU = T(I) | |
813 | + | let dV = getString(dU) | |
814 | + | let dW = if (isDefined(dV)) | |
815 | + | then split_4C(value(dV), "_") | |
786 | 816 | else nil | |
787 | - | if (containsElement( | |
788 | - | then throw(("Your staked NFTs already contain " + | |
789 | - | else if ((size( | |
790 | - | then throw((("Your already staked max (" + toString( | |
817 | + | if (containsElement(dW, cV)) | |
818 | + | then throw(("Your staked NFTs already contain " + cV)) | |
819 | + | else if ((size(dW) >= at)) | |
820 | + | then throw((("Your already staked max (" + toString(at)) + ") NFTs")) | |
791 | 821 | else { | |
792 | - | let | |
793 | - | if (( | |
822 | + | let dX = StringEntry(dU, makeString_2C((dW :+ cV), "_")) | |
823 | + | if ((dT.issuer == this)) | |
794 | 824 | then { | |
795 | - | let | |
796 | - | let | |
797 | - | let | |
798 | - | $Tuple2((( | |
825 | + | let dY = cU(I, cV, (cS(value(dT.description)) * 10000), az(I), aw, aq) | |
826 | + | let db = dY._1 | |
827 | + | let dc = dY._2 | |
828 | + | $Tuple2(((di ++ db) :+ dX), dc) | |
799 | 829 | } | |
800 | - | else if (( | |
830 | + | else if ((cP(dT) == "")) | |
801 | 831 | then throw("Only WavesLands and Arkimals NFT tokens are accepted") | |
802 | 832 | else { | |
803 | - | let | |
804 | - | let | |
805 | - | let | |
806 | - | $Tuple2((( | |
833 | + | let dZ = cU(I, cV, as, aA(I), ax, ar) | |
834 | + | let db = dZ._1 | |
835 | + | let dc = dZ._2 | |
836 | + | $Tuple2(((di ++ db) :+ dX), dc) | |
807 | 837 | } | |
808 | 838 | } | |
809 | 839 | } | |
812 | 842 | ||
813 | 843 | ||
814 | 844 | ||
815 | - | @Callable( | |
816 | - | func unstakeNFT ( | |
817 | - | let | |
818 | - | if ((size( | |
845 | + | @Callable(bt) | |
846 | + | func unstakeNFT (cV) = { | |
847 | + | let di = bs(bt) | |
848 | + | if ((size(bt.payments) != 0)) | |
819 | 849 | then throw("No payments required") | |
820 | 850 | else { | |
821 | - | let S = fromBase58String( | |
822 | - | let I = toString( | |
823 | - | let | |
824 | - | let | |
825 | - | if (!(isDefined(getInteger( | |
826 | - | then throw((("NFT " + | |
851 | + | let S = fromBase58String(cV) | |
852 | + | let I = toString(bt.caller) | |
853 | + | let dT = value(assetInfo(S)) | |
854 | + | let ce = R(cV, I) | |
855 | + | if (!(isDefined(getInteger(ce)))) | |
856 | + | then throw((("NFT " + dT.name) + " is not staked by you")) | |
827 | 857 | else { | |
828 | - | let | |
829 | - | let | |
830 | - | let A = indexOf( | |
858 | + | let dU = T(I) | |
859 | + | let dW = split_4C(valueOrElse(getString(dU), ""), "_") | |
860 | + | let A = indexOf(dW, cV) | |
831 | 861 | if (!(isDefined(A))) | |
832 | - | then throw(("Your staked NFTs don't contain " + | |
862 | + | then throw(("Your staked NFTs don't contain " + cV)) | |
833 | 863 | else { | |
834 | - | let | |
835 | - | then StringEntry( | |
836 | - | else DeleteEntry( | |
837 | - | let | |
838 | - | if ( | |
864 | + | let dX = if ((size(dW) > 1)) | |
865 | + | then StringEntry(dU, makeString_2C(removeByIndex(dW, value(A)), "_")) | |
866 | + | else DeleteEntry(dU) | |
867 | + | let ea = (dT.issuer == this) | |
868 | + | if (ea) | |
839 | 869 | then { | |
840 | - | let | |
841 | - | let | |
842 | - | let | |
843 | - | let | |
844 | - | let | |
845 | - | $Tuple2((((((( | |
870 | + | let eb = valueOrElse(getInteger(az(I)), 0) | |
871 | + | let ec = (cS(value(dT.description)) * 10000) | |
872 | + | let ed = bZ(0, I, -(ec)) | |
873 | + | let db = ed._1 | |
874 | + | let dc = ed._2 | |
875 | + | $Tuple2(((((((db :+ dX) :+ IntegerEntry(az(I), (eb - 1))) :+ IntegerEntry(aw, max([0, (valueOrElse(getInteger(aw), 0) - 1)]))) :+ DeleteEntry(R(toBase58String(S), I))) :+ ScriptTransfer(bt.caller, 1, S)) ++ di), dc) | |
846 | 876 | } | |
847 | 877 | else { | |
848 | - | let | |
849 | - | if (( | |
878 | + | let ee = cP(dT) | |
879 | + | if ((ee == "")) | |
850 | 880 | then throw("Only WavesLands and Arkimals NFT tokens are accepted") | |
851 | 881 | else { | |
852 | - | let | |
853 | - | let | |
854 | - | let | |
855 | - | let | |
856 | - | $Tuple2(((((( | |
882 | + | let ef = valueOrElse(getInteger(aA(I)), 0) | |
883 | + | let eg = bZ(0, I, -(as)) | |
884 | + | let db = eg._1 | |
885 | + | let dc = eg._2 | |
886 | + | $Tuple2((((((db :+ dX) :+ IntegerEntry(aA(I), (ef - 1))) :+ DeleteEntry(R(toBase58String(S), I))) :+ ScriptTransfer(bt.caller, 1, S)) ++ di), dc) | |
857 | 887 | } | |
858 | 888 | } | |
859 | 889 | } | |
863 | 893 | ||
864 | 894 | ||
865 | 895 | ||
866 | - | @Callable( | |
867 | - | func exchangeNFTs () = if (( | |
896 | + | @Callable(bt) | |
897 | + | func exchangeNFTs () = if ((bt.caller != this)) | |
868 | 898 | then throw("Temporarily disabled") | |
869 | 899 | else { | |
870 | - | let | |
871 | - | if ((3 > size( | |
900 | + | let di = bs(bt) | |
901 | + | if ((3 > size(bt.payments))) | |
872 | 902 | then throw("Min one USDT and 2 NFT payments allowed") | |
873 | - | else if ((size( | |
903 | + | else if ((size(bt.payments) > 6)) | |
874 | 904 | then throw("Max one USDT and 5 NFT payments allowed") | |
875 | 905 | else { | |
876 | - | let I = toString( | |
877 | - | func | |
878 | - | let S = valueOrErrorMessage( | |
906 | + | let I = toString(bt.caller) | |
907 | + | func eh (aH,dl) = { | |
908 | + | let S = valueOrErrorMessage(dl.assetId, "WAVES payments not allowed") | |
879 | 909 | if ((S == k)) | |
880 | - | then $Tuple3(( | |
910 | + | then $Tuple3((aH._1 + dl.amount), aH._2, aH._3) | |
881 | 911 | else { | |
882 | - | let | |
883 | - | if (( | |
912 | + | let dT = value(assetInfo(S)) | |
913 | + | if ((dT.issuer != this)) | |
884 | 914 | then throw("Only WL-issued NFTs allowed") | |
885 | 915 | else { | |
886 | - | let | |
887 | - | $Tuple3( | |
916 | + | let bR = cS(value(dT.description)) | |
917 | + | $Tuple3(aH._1, (aH._2 + bR), (aH._3 :+ Burn(S, 1))) | |
888 | 918 | } | |
889 | 919 | } | |
890 | 920 | } | |
891 | 921 | ||
892 | - | let | |
893 | - | let | |
894 | - | let | |
895 | - | let | |
896 | - | func | |
897 | - | then | |
898 | - | else | |
922 | + | let ei = { | |
923 | + | let aJ = bt.payments | |
924 | + | let aK = size(aJ) | |
925 | + | let aL = $Tuple3(0, 0, nil) | |
926 | + | func aM (aN,aO) = if ((aO >= aK)) | |
927 | + | then aN | |
928 | + | else eh(aN, aJ[aO]) | |
899 | 929 | ||
900 | - | func | |
901 | - | then | |
930 | + | func aP (aN,aO) = if ((aO >= aK)) | |
931 | + | then aN | |
902 | 932 | else throw("List size exceeds 6") | |
903 | 933 | ||
904 | - | | |
934 | + | aP(aM(aM(aM(aM(aM(aM(aL, 0), 1), 2), 3), 4), 5), 6) | |
905 | 935 | } | |
906 | - | let | |
907 | - | let | |
908 | - | let | |
909 | - | let | |
936 | + | let ej = ei._1 | |
937 | + | let ek = ei._2 | |
938 | + | let el = ei._3 | |
939 | + | let bX = if ((ek == 3)) | |
910 | 940 | then 2 | |
911 | - | else if (( | |
941 | + | else if ((ek == 5)) | |
912 | 942 | then 3 | |
913 | - | else if (( | |
943 | + | else if ((ek == 10)) | |
914 | 944 | then 4 | |
915 | 945 | else throw("Only bonuses of 3%, 5% or 10% are supported") | |
916 | - | let | |
917 | - | if ((0 > | |
918 | - | then throw((("You need to attach " + toString( | |
946 | + | let em = (ej - (ek * b)) | |
947 | + | if ((0 > em)) | |
948 | + | then throw((("You need to attach " + toString(ek)) + " USDT as fee")) | |
919 | 949 | else { | |
920 | - | let | |
921 | - | then [ScriptTransfer( | |
950 | + | let en = if ((em > 0)) | |
951 | + | then [ScriptTransfer(bt.caller, em, k)] | |
922 | 952 | else nil | |
923 | - | let | |
924 | - | let | |
925 | - | let | |
926 | - | let | |
927 | - | let | |
953 | + | let eo = bY(bX, bt.caller) | |
954 | + | let ep = eo._1 | |
955 | + | let bV = eo._2 | |
956 | + | let eq = size(el) | |
957 | + | let er = if ((eq == 0)) | |
928 | 958 | then nil | |
929 | - | else [IntegerEntry( | |
930 | - | $Tuple2((((( | |
959 | + | else [IntegerEntry(av, (valueOrElse(getInteger(av), 0) + eq))] | |
960 | + | $Tuple2(((((ep ++ el) ++ er) ++ di) ++ en), bV) | |
931 | 961 | } | |
932 | 962 | } | |
933 | 963 | } | |
934 | 964 | ||
935 | 965 | ||
936 | 966 | ||
937 | - | @Callable( | |
938 | - | func openNftChest () = if (( | |
967 | + | @Callable(bt) | |
968 | + | func openNftChest () = if ((bt.caller != this)) | |
939 | 969 | then throw("Permission denied") | |
940 | 970 | else $Tuple2(nil, 0) | |
941 | 971 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = "__" | |
5 | 5 | ||
6 | 6 | let b = 1000000 | |
7 | 7 | ||
8 | 8 | let c = 10000000 | |
9 | 9 | ||
10 | 10 | let d = 100000000 | |
11 | 11 | ||
12 | 12 | let e = 86400000 | |
13 | 13 | ||
14 | 14 | let f = 10 | |
15 | 15 | ||
16 | 16 | let g = 100 | |
17 | 17 | ||
18 | 18 | let h = take(drop(this.bytes, 1), 1) | |
19 | 19 | ||
20 | 20 | let i = { | |
21 | 21 | let j = h | |
22 | 22 | if ((base58'2W' == j)) | |
23 | 23 | then 10080 | |
24 | 24 | else if ((base58'2T' == j)) | |
25 | 25 | then 180 | |
26 | 26 | else throw("Unknown chain") | |
27 | 27 | } | |
28 | 28 | ||
29 | 29 | let k = { | |
30 | 30 | let j = h | |
31 | 31 | if ((base58'2W' == j)) | |
32 | 32 | then base58'9wc3LXNA4TEBsXyKtoLE9mrbDD7WMHXvXrCjZvabLAsi' | |
33 | 33 | else if ((base58'2T' == j)) | |
34 | 34 | then base58'6mWwf9mZBjVgkC54idpyaZLQfAosD914wT8fGf2iiY63' | |
35 | 35 | else throw("Unknown chain") | |
36 | 36 | } | |
37 | 37 | ||
38 | 38 | let l = { | |
39 | 39 | let j = h | |
40 | 40 | if ((base58'2W' == j)) | |
41 | 41 | then "3PFwYta8biEz31zpeFe5DJK8wE5trSpQVF8" | |
42 | 42 | else if ((base58'2T' == j)) | |
43 | 43 | then "3N7UuYar6264P58FBhVWKPQAh4Yua2hgngv" | |
44 | 44 | else throw("Unknown chain") | |
45 | 45 | } | |
46 | 46 | ||
47 | 47 | let m = { | |
48 | 48 | let j = h | |
49 | 49 | if ((base58'2W' == j)) | |
50 | 50 | then e | |
51 | 51 | else if ((base58'2T' == j)) | |
52 | 52 | then 60000 | |
53 | 53 | else throw("Unknown chain") | |
54 | 54 | } | |
55 | 55 | ||
56 | 56 | let n = { | |
57 | 57 | let j = h | |
58 | 58 | if ((base58'2W' == j)) | |
59 | 59 | then "3PLncXtS1U83D6cQbFD3H8rBHPLgzxSFKZ1" | |
60 | 60 | else if ((base58'2T' == j)) | |
61 | 61 | then "3NDCyBG5q85JuaRiigUeEtainyjCQT3XpZm" | |
62 | 62 | else throw("Unknown chain") | |
63 | 63 | } | |
64 | 64 | ||
65 | 65 | func o (p,q) = valueOrErrorMessage(getString(p, q), makeString(["mandatory ", toString(p), ".", q, " is not defined"], "")) | |
66 | 66 | ||
67 | 67 | ||
68 | 68 | let r = 1 | |
69 | 69 | ||
70 | 70 | let s = 2 | |
71 | 71 | ||
72 | 72 | let t = 5 | |
73 | 73 | ||
74 | 74 | func u () = "%s__restConfig" | |
75 | 75 | ||
76 | 76 | ||
77 | 77 | func v () = "%s__rest2Addr" | |
78 | 78 | ||
79 | 79 | ||
80 | 80 | func w (x) = split_4C(o(x, u()), a) | |
81 | 81 | ||
82 | 82 | ||
83 | 83 | func y (z,A) = valueOrErrorMessage(addressFromString(z[A]), ("Rest cfg doesn't contain address at index " + toString(A))) | |
84 | 84 | ||
85 | 85 | ||
86 | 86 | let B = addressFromStringValue(valueOrElse(getString(this, v()), l)) | |
87 | 87 | ||
88 | 88 | let z = w(B) | |
89 | 89 | ||
90 | 90 | let C = y(z, r) | |
91 | 91 | ||
92 | 92 | let D = y(z, s) | |
93 | 93 | ||
94 | 94 | let E = y(z, t) | |
95 | 95 | ||
96 | 96 | let F = "oldAcresContract" | |
97 | 97 | ||
98 | 98 | func G () = "contractsBlocked" | |
99 | 99 | ||
100 | 100 | ||
101 | 101 | func H (I) = ("lastWeekTxIdByUser_" + I) | |
102 | 102 | ||
103 | 103 | ||
104 | 104 | func J (I) = ("curWeekTxIdByUser_" + I) | |
105 | 105 | ||
106 | 106 | ||
107 | 107 | let K = "acresIssuedAmount" | |
108 | 108 | ||
109 | 109 | let L = "acresAssetId" | |
110 | 110 | ||
111 | 111 | let M = valueOrErrorMessage(getBinary(C, L), "ACRES is not issued yet") | |
112 | 112 | ||
113 | 113 | func N (I) = ("acresStakedTimeByUser_" + I) | |
114 | 114 | ||
115 | 115 | ||
116 | 116 | func O (P) = ("stakedLandsByOwner_" + P) | |
117 | 117 | ||
118 | 118 | ||
119 | 119 | func Q (P) = ("stakedDuckByOwner_" + P) | |
120 | 120 | ||
121 | 121 | ||
122 | 122 | func R (S,I) = ((("st_" + S) + "_") + I) | |
123 | 123 | ||
124 | 124 | ||
125 | 125 | func T (P) = ("stakedNFTsByOwner_" + P) | |
126 | 126 | ||
127 | 127 | ||
128 | 128 | func U (V) = { | |
129 | 129 | let j = V | |
130 | 130 | if ($isInstanceOf(j, "Int")) | |
131 | 131 | then { | |
132 | 132 | let W = j | |
133 | 133 | W | |
134 | 134 | } | |
135 | 135 | else throw("fail to cast into Int") | |
136 | 136 | } | |
137 | 137 | ||
138 | 138 | ||
139 | 139 | func X (Y) = { | |
140 | 140 | let j = Y | |
141 | 141 | if ($isInstanceOf(j, "(Int, Int, Int, Int, Int)")) | |
142 | 142 | then { | |
143 | 143 | let Z = j | |
144 | 144 | Z | |
145 | 145 | } | |
146 | 146 | else throw("fail to cast into (Int, Int, Int, Int, Int)") | |
147 | 147 | } | |
148 | 148 | ||
149 | 149 | ||
150 | 150 | func aa (Y) = { | |
151 | 151 | let j = Y | |
152 | 152 | if ($isInstanceOf(j, "(Int, Int, Int, Int)")) | |
153 | 153 | then { | |
154 | 154 | let Z = j | |
155 | 155 | Z | |
156 | 156 | } | |
157 | 157 | else throw("fail to cast into (Int, Int, Int, Int)") | |
158 | 158 | } | |
159 | 159 | ||
160 | 160 | ||
161 | 161 | func ab (Y) = { | |
162 | 162 | let j = Y | |
163 | 163 | if ($isInstanceOf(j, "(Int, Int, Int)")) | |
164 | 164 | then { | |
165 | 165 | let Z = j | |
166 | 166 | Z | |
167 | 167 | } | |
168 | 168 | else throw("fail to cast into (Int, Int, Int)") | |
169 | 169 | } | |
170 | 170 | ||
171 | 171 | ||
172 | 172 | func ac (Y) = { | |
173 | 173 | let j = Y | |
174 | 174 | if ($isInstanceOf(j, "(Int, Int)")) | |
175 | 175 | then { | |
176 | 176 | let Z = j | |
177 | 177 | Z | |
178 | 178 | } | |
179 | 179 | else throw("fail to cast into (Int, Int)") | |
180 | 180 | } | |
181 | 181 | ||
182 | 182 | ||
183 | 183 | func ad (Y,ae) = { | |
184 | 184 | let af = pow(10, 0, ae, 0, 0, DOWN) | |
185 | 185 | let ag = toString((Y % af)) | |
186 | 186 | let ah = drop(toString(af), (1 + size(ag))) | |
187 | 187 | (((toString((Y / af)) + ".") + ah) + ag) | |
188 | 188 | } | |
189 | 189 | ||
190 | 190 | ||
191 | 191 | let ai = 1000000 | |
192 | 192 | ||
193 | 193 | let aj = 100000000 | |
194 | 194 | ||
195 | 195 | let ak = "wlg_issuedAmount" | |
196 | 196 | ||
197 | 197 | let al = "zbill_issuedAmount" | |
198 | 198 | ||
199 | 199 | func am (I) = ("acresStakedAmountByUser_" + I) | |
200 | 200 | ||
201 | 201 | ||
202 | 202 | func an (I) = ("farmingPowerByUser_" + I) | |
203 | 203 | ||
204 | 204 | ||
205 | 205 | let ao = "acresStakedAmountTotal" | |
206 | 206 | ||
207 | 207 | let ap = "totalFarmingPower" | |
208 | 208 | ||
209 | - | let aq = | |
209 | + | let aq = 3 | |
210 | 210 | ||
211 | - | let ar = | |
211 | + | let ar = 1 | |
212 | 212 | ||
213 | - | let as = | |
213 | + | let as = 5000 | |
214 | 214 | ||
215 | - | let at = | |
215 | + | let at = 4 | |
216 | 216 | ||
217 | - | let au = | |
217 | + | let au = "nftTotalIssued" | |
218 | 218 | ||
219 | - | let av = " | |
219 | + | let av = "nftTotalBurned" | |
220 | 220 | ||
221 | - | let aw = " | |
221 | + | let aw = "WlNftTotalStaked" | |
222 | 222 | ||
223 | - | let ax = " | |
223 | + | let ax = "ArkNftTotalStaked" | |
224 | 224 | ||
225 | - | let ay = "ArkNftTotalStaked" | |
226 | - | ||
227 | - | func az (S) = ("nftNumberByAssetId_" + S) | |
225 | + | func ay (S) = ("nftNumberByAssetId_" + S) | |
228 | 226 | ||
229 | 227 | ||
230 | - | func | |
228 | + | func az (I) = ("userWlNftNumber_" + I) | |
231 | 229 | ||
232 | 230 | ||
233 | - | func | |
231 | + | func aA (I) = ("userArkNftNumber_" + I) | |
234 | 232 | ||
235 | 233 | ||
236 | - | func | |
234 | + | func aB (I) = ("userFullBonus_" + I) | |
237 | 235 | ||
238 | 236 | ||
239 | - | let | |
237 | + | let aC = [0, 10, 20, 40, 80, 150, 250, 400, 700, 1000] | |
240 | 238 | ||
241 | - | func | |
242 | - | let | |
243 | - | func | |
244 | - | then | |
245 | - | else ( | |
239 | + | func aD (aE) = { | |
240 | + | let aF = ((aE + 99999999) / aj) | |
241 | + | func aG (aH,aI) = if ((aI >= aF)) | |
242 | + | then aH | |
243 | + | else (aH + 1) | |
246 | 244 | ||
247 | - | let | |
248 | - | let | |
249 | - | let | |
250 | - | func | |
251 | - | then | |
252 | - | else | |
245 | + | let aJ = aC | |
246 | + | let aK = size(aJ) | |
247 | + | let aL = 0 | |
248 | + | func aM (aN,aO) = if ((aO >= aK)) | |
249 | + | then aN | |
250 | + | else aG(aN, aJ[aO]) | |
253 | 251 | ||
254 | - | func | |
255 | - | then | |
252 | + | func aP (aN,aO) = if ((aO >= aK)) | |
253 | + | then aN | |
256 | 254 | else throw("List size exceeds 10") | |
257 | 255 | ||
258 | - | | |
256 | + | aP(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aL, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
259 | 257 | } | |
260 | 258 | ||
261 | 259 | ||
262 | - | func | |
260 | + | func aQ (aE) = ((aE * 20) * (aD(aE) + 4)) | |
263 | 261 | ||
264 | 262 | ||
265 | - | func | |
266 | - | let | |
267 | - | $Tuple2(fraction( | |
263 | + | func aR (aE,aS) = { | |
264 | + | let aT = aQ(aE) | |
265 | + | $Tuple2(fraction(aT, (ai + aS), ai), aT) | |
268 | 266 | } | |
269 | 267 | ||
270 | 268 | ||
271 | - | func | |
269 | + | func aU (I) = ("lastArbTimeUser_" + I) | |
272 | 270 | ||
273 | 271 | ||
274 | - | let | |
272 | + | let aV = "lastAcresSellTime" | |
275 | 273 | ||
276 | - | let | |
274 | + | let aW = "lastLimitLeft" | |
277 | 275 | ||
278 | - | let | |
276 | + | let aX = ["SHOVEL-P3", "PICKAXE-C1", "PICKAXE-C3", "PICKAXE-C5", "PICKAXE-C10"] | |
279 | 277 | ||
280 | - | let | |
278 | + | let aY = ["contentShovelP3", "contentPickaxeC1", "contentPickaxeC3", "contentPickaxeC5", "contentPickaxeC10"] | |
281 | 279 | ||
282 | - | let | |
280 | + | let aZ = ["Gold shovel", "Pickaxe"] | |
283 | 281 | ||
284 | - | let | |
282 | + | let ba = ["Reward for early birds", "Increases FarmPower"] | |
285 | 283 | ||
286 | - | let | |
284 | + | let bb = 0 | |
287 | 285 | ||
288 | - | let | |
286 | + | let bc = 1 | |
289 | 287 | ||
290 | - | func be (bf) = if (if ((bf.originCaller != B)) | |
288 | + | let bd = ["Promo", "Common"] | |
289 | + | ||
290 | + | let be = [3, 1, 3, 5, 10] | |
291 | + | ||
292 | + | let bf = ["SHOVEL", "PICKAXE"] | |
293 | + | ||
294 | + | let bg = 0 | |
295 | + | ||
296 | + | let bh = 1 | |
297 | + | ||
298 | + | let bi = ["contentPickaxeC", "contentPickaxeU", "contentPickaxeL", "contentPickaxeE", "contentShovelP"] | |
299 | + | ||
300 | + | let bj = 0 | |
301 | + | ||
302 | + | let bk = 4 | |
303 | + | ||
304 | + | let bl = ["Common", "Uncommon", "Legendary", "Epic", "Promo"] | |
305 | + | ||
306 | + | let bm = 0 | |
307 | + | ||
308 | + | let bn = 4 | |
309 | + | ||
310 | + | let bo = ["Digging tools"] | |
311 | + | ||
312 | + | let bp = 0 | |
313 | + | ||
314 | + | let bq = ["FarmPower"] | |
315 | + | ||
316 | + | let br = 0 | |
317 | + | ||
318 | + | func bs (bt) = if (if ((bt.originCaller != B)) | |
291 | 319 | then valueOrElse(getBoolean(G()), false) | |
292 | 320 | else false) | |
293 | 321 | then throw("Contracts are under maintenance") | |
294 | 322 | else { | |
295 | - | let I = toString(bf.originCaller) | |
296 | - | let bg = (height / i) | |
297 | - | let bh = getString(H(I)) | |
298 | - | let bi = toBase58String(bf.transactionId) | |
299 | - | let bj = ((toString(bg) + "_") + bi) | |
300 | - | if (isDefined(bh)) | |
323 | + | let I = toString(bt.originCaller) | |
324 | + | let bu = (height / i) | |
325 | + | let bv = H(I) | |
326 | + | let bw = getString(bv) | |
327 | + | let bx = toBase58String(bt.transactionId) | |
328 | + | let by = ((toString(bu) + "_") + bx) | |
329 | + | let bz = J(I) | |
330 | + | if (isDefined(bw)) | |
301 | 331 | then { | |
302 | - | let | |
303 | - | if (( | |
304 | - | then [StringEntry( | |
305 | - | else if (( | |
306 | - | then [StringEntry( | |
332 | + | let bA = split(value(bw), "_") | |
333 | + | if ((bA[0] == toString(bu))) | |
334 | + | then [StringEntry(bv, by), StringEntry(bz, by)] | |
335 | + | else if ((bA[0] == toString((bu - 1)))) | |
336 | + | then [StringEntry(bz, by)] | |
307 | 337 | else { | |
308 | - | let | |
309 | - | let | |
310 | - | if (( | |
311 | - | then [StringEntry( | |
312 | - | else [StringEntry( | |
338 | + | let bB = getStringValue(bz) | |
339 | + | let bC = split(bB, "_") | |
340 | + | if ((bC[0] == toString(bu))) | |
341 | + | then [StringEntry(bz, by)] | |
342 | + | else [StringEntry(bv, bB), StringEntry(bz, by)] | |
313 | 343 | } | |
314 | 344 | } | |
315 | - | else [StringEntry( | |
345 | + | else [StringEntry(bv, by), StringEntry(bz, by)] | |
316 | 346 | } | |
317 | 347 | ||
318 | 348 | ||
319 | - | func | |
349 | + | func bD (bE,bF,bG,bH,bI,bJ,bK,bL) = (((((((((((((((((((((((("{\"url\": \"https://waveslands.com\", " + "\"contentKey\": \"") + bE) + "\", ") + "\"number\": ") + toString(bF)) + ", ") + "\"collection\": \"") + bG) + "\", ") + "\"name\": \"") + bH) + "\", ") + "\"description\": \"") + bI) + "\", ") + "\"rare\": \"") + bJ) + "\", ") + "\"bonus\": ") + toString(bK)) + ", ") + "\"bonusType\": \"") + bL) + "\"}") | |
320 | 350 | ||
321 | 351 | ||
322 | - | func bq (bo,I) = if ((bo >= size(aZ))) | |
352 | + | func bM (bN,bO,bP,bQ,bR,bS,bT,I) = { | |
353 | + | let bF = valueOrElse(getInteger(au), 0) | |
354 | + | let bJ = bl[bQ] | |
355 | + | let bH = (((bf[bN] + "-") + take(bJ, 1)) + toString(bR)) | |
356 | + | let bU = Issue(bH, bD(bi[bO], bF, bo[bP], aZ[bN], ba[bS], bl[bQ], bR, bq[bT]), 1, 0, false) | |
357 | + | let bV = calculateAssetId(bU) | |
358 | + | $Tuple2([bU, IntegerEntry(au, (bF + 1)), IntegerEntry(ay(toBase58String(bV)), bF), ScriptTransfer(I, 1, bV)], bV) | |
359 | + | } | |
360 | + | ||
361 | + | ||
362 | + | func bW (bX,bF) = ((((((((((((((((((((("{\"url\": \"https://waveslands.com\", " + "\"contentKey\": \"") + aY[bX]) + "\", ") + "\"number\": ") + bF) + ", ") + "\"collection\": \"Digging tools") + "\", ") + "\"name\": \"") + aZ[bX]) + "\", ") + "\"description\": \"") + ba[bX]) + "\", ") + "\"rare\": \"") + bd[bX]) + "\", ") + "\"bonus\": ") + toString(be[bX])) + ", ") + "\"bonusType\": \"FarmPower\"}") | |
363 | + | ||
364 | + | ||
365 | + | func bY (bX,I) = if ((bX >= size(aY))) | |
323 | 366 | then throw("nftIndex out of bounds") | |
324 | 367 | else { | |
325 | - | let | |
326 | - | let | |
327 | - | let | |
328 | - | $Tuple2([ | |
368 | + | let bF = valueOrElse(getInteger(au), 0) | |
369 | + | let bU = Issue(aX[bX], bW(bX, toString(bF)), 1, 0, false) | |
370 | + | let bV = calculateAssetId(bU) | |
371 | + | $Tuple2([bU, IntegerEntry(au, (bF + 1)), IntegerEntry(ay(toBase58String(bV)), bF), ScriptTransfer(I, 1, bV)], bV) | |
329 | 372 | } | |
330 | 373 | ||
331 | 374 | ||
332 | - | func | |
333 | - | then ( | |
375 | + | func bZ (ca,p,cb) = if (if ((ca == 0)) | |
376 | + | then (cb == 0) | |
334 | 377 | else false) | |
335 | 378 | then throw("Nothing to do") | |
336 | 379 | else { | |
337 | - | let | |
338 | - | if (( | |
380 | + | let cc = invoke(D, "onStakeUnstakeLand", [p], nil) | |
381 | + | if ((cc == cc)) | |
339 | 382 | then { | |
340 | - | let | |
341 | - | let | |
342 | - | let | |
343 | - | let | |
344 | - | if (if ((0 > | |
345 | - | then (0 > ( | |
383 | + | let cd = lastBlock.timestamp | |
384 | + | let ce = N(p) | |
385 | + | let cf = am(p) | |
386 | + | let cg = valueOrElse(getInteger(cf), 0) | |
387 | + | if (if ((0 > ca)) | |
388 | + | then (0 > (cg + ca)) | |
346 | 389 | else false) | |
347 | - | then throw(((("You have only " + ad( | |
390 | + | then throw(((("You have only " + ad(cg, 8)) + " ACRES staked, tried to unstake ") + ad(-(ca), 8))) | |
348 | 391 | else { | |
349 | - | let | |
350 | - | let | |
351 | - | let | |
352 | - | let | |
353 | - | let | |
354 | - | let | |
355 | - | if (if ((0 > | |
356 | - | then (0 > ( | |
392 | + | let ch = (cg + ca) | |
393 | + | let ci = valueOrElse(getInteger(ao), 0) | |
394 | + | let cj = an(p) | |
395 | + | let ck = valueOrElse(getInteger(cj), 0) | |
396 | + | let cl = aB(p) | |
397 | + | let cm = valueOrElse(getInteger(C, cl), 0) | |
398 | + | if (if ((0 > cb)) | |
399 | + | then (0 > (cm + cb)) | |
357 | 400 | else false) | |
358 | - | then throw((((("You have only " + ad( | |
401 | + | then throw((((("You have only " + ad(cm, 4)) + "% bonus, and tried to unstake ") + ad(-(cb), 4)) + "%")) | |
359 | 402 | else { | |
360 | - | let | |
361 | - | let | |
362 | - | let | |
363 | - | let | |
364 | - | let | |
403 | + | let cn = aR(ch, (cm + cb)) | |
404 | + | let co = cn._1 | |
405 | + | let cp = cn._2 | |
406 | + | let cq = valueOrElse(getInteger(ap), 0) | |
407 | + | let cr = if ((ca == 0)) | |
365 | 408 | then nil | |
366 | - | else [IntegerEntry( | |
367 | - | $Tuple2((((( | |
409 | + | else [IntegerEntry(cf, ch), IntegerEntry(ao, (ci + ca))] | |
410 | + | $Tuple2(((((cr :+ IntegerEntry(ce, lastBlock.timestamp)) :+ IntegerEntry(cj, co)) :+ IntegerEntry(ap, ((cq + co) - ck))) :+ IntegerEntry(cl, (cm + cb))), cc) | |
368 | 411 | } | |
369 | 412 | } | |
370 | 413 | } | |
371 | 414 | else throw("Strict value is not equal to itself.") | |
372 | 415 | } | |
373 | 416 | ||
374 | 417 | ||
375 | - | func | |
376 | - | let | |
377 | - | let | |
378 | - | let | |
379 | - | let | |
380 | - | let | |
381 | - | fraction( | |
418 | + | func cs (ct) = { | |
419 | + | let cu = valueOrErrorMessage(getInteger(D, ak), "WLGOLD is not issued yet") | |
420 | + | let cv = assetBalance(D, k) | |
421 | + | let cw = (assetBalance(C, k) - ct) | |
422 | + | let cx = (assetBalance(E, k) + valueOrElse(getInteger(E, al), 0)) | |
423 | + | let cy = ((cw + cv) + cx) | |
424 | + | fraction(cy, d, cu) | |
382 | 425 | } | |
383 | 426 | ||
384 | 427 | ||
385 | - | func | |
386 | - | let | |
387 | - | let | |
388 | - | let | |
389 | - | let | |
390 | - | let | |
391 | - | let | |
392 | - | let | |
393 | - | let | |
394 | - | let | |
395 | - | $Tuple2(IntegerEntry( | |
428 | + | func cz () = { | |
429 | + | let cv = assetBalance(D, k) | |
430 | + | let cw = assetBalance(this, k) | |
431 | + | let cx = (assetBalance(E, k) + valueOrElse(getInteger(E, al), 0)) | |
432 | + | let cA = (((cw + cv) + cx) / g) | |
433 | + | let cB = valueOrElse(getInteger(aW), cA) | |
434 | + | let cC = valueOrElse(getInteger(aV), 0) | |
435 | + | let cd = lastBlock.timestamp | |
436 | + | let cD = (cB + fraction(cA, (cd - cC), e)) | |
437 | + | let cE = min([cD, cA]) | |
438 | + | $Tuple2(IntegerEntry(aV, cd), cE) | |
396 | 439 | } | |
397 | 440 | ||
398 | 441 | ||
399 | - | let | |
442 | + | let cF = addressFromStringValue("3PJgZ6AK1WVCpdCmEZpesHmaKvrQDdXG5og") | |
400 | 443 | ||
401 | - | let | |
444 | + | let cG = valueOrElse(getString(cF, "static_incubatorAddress"), "") | |
402 | 445 | ||
403 | - | let | |
446 | + | let cH = valueOrElse(getString(cF, "static_breederAddress"), "") | |
404 | 447 | ||
405 | - | let | |
448 | + | let cI = valueOrElse(getString(cF, "static_turtleIncubatorAddress"), "") | |
406 | 449 | ||
407 | - | let | |
450 | + | let cJ = valueOrElse(getString(cF, "static_turtleBreederAddress"), "") | |
408 | 451 | ||
409 | - | let | |
452 | + | let cK = valueOrElse(getString(cF, "static_canineIncubatorAddress"), "") | |
410 | 453 | ||
411 | - | let | |
454 | + | let cL = valueOrElse(getString(cF, "static_canineBreederAddress"), "") | |
412 | 455 | ||
413 | - | let | |
456 | + | let cM = valueOrElse(getString(cF, "static_felineIncubatorAddress"), "") | |
414 | 457 | ||
415 | - | let | |
458 | + | let cN = valueOrElse(getString(cF, "static_felineBreederAddress"), "") | |
416 | 459 | ||
417 | - | let | |
460 | + | let cO = valueOrElse(getString(cF, "static_mutantIncubatorAddress"), "") | |
418 | 461 | ||
419 | - | func | |
420 | - | let | |
462 | + | func cP (cQ) = { | |
463 | + | let cR = toString(cQ.issuer) | |
421 | 464 | if (if (if (if (if (if (if (if (if (if ((h == base58'2T')) | |
422 | - | then ( | |
465 | + | then (cR == n) | |
423 | 466 | else false) | |
424 | 467 | then true | |
425 | - | else ( | |
468 | + | else (cR == cG)) | |
426 | 469 | then true | |
427 | - | else ( | |
470 | + | else (cR == cH)) | |
428 | 471 | then true | |
429 | - | else ( | |
472 | + | else (cR == cI)) | |
430 | 473 | then true | |
431 | - | else ( | |
474 | + | else (cR == cJ)) | |
432 | 475 | then true | |
433 | - | else ( | |
476 | + | else (cR == cK)) | |
434 | 477 | then true | |
435 | - | else ( | |
478 | + | else (cR == cL)) | |
436 | 479 | then true | |
437 | - | else ( | |
480 | + | else (cR == cM)) | |
438 | 481 | then true | |
439 | - | else ( | |
440 | - | then | |
441 | - | else if (( | |
442 | - | then | |
482 | + | else (cR == cN)) | |
483 | + | then cQ.name | |
484 | + | else if ((cR == cO)) | |
485 | + | then cQ.description | |
443 | 486 | else "" | |
444 | 487 | } | |
445 | 488 | ||
446 | 489 | ||
447 | - | func | |
448 | - | then throw(("NFT is not supported: " + | |
490 | + | func cS (bI) = if (!(contains(bI, "\"bonusType\": \"FarmPower\""))) | |
491 | + | then throw(("NFT is not supported: " + bI)) | |
449 | 492 | else { | |
450 | - | let | |
451 | - | parseIntValue(drop( | |
493 | + | let cT = split_4C(split_4C(bI, "\"bonus\":")[1], ",")[0] | |
494 | + | parseIntValue(drop(cT, (valueOrElse(lastIndexOf(cT, " "), -1) + 1))) | |
452 | 495 | } | |
453 | 496 | ||
454 | 497 | ||
455 | - | func | |
456 | - | let | |
457 | - | if (( | |
458 | - | then throw((("You can stake max " + toString( | |
498 | + | func cU (I,cV,aS,cW,cX,cY) = { | |
499 | + | let cZ = valueOrElse(getInteger(cW), 0) | |
500 | + | if ((cZ >= cY)) | |
501 | + | then throw((("You can stake max " + toString(cY)) + " of such NFTs")) | |
459 | 502 | else { | |
460 | - | let | |
461 | - | let | |
462 | - | let | |
463 | - | $Tuple2(((( | |
503 | + | let da = bZ(0, I, aS) | |
504 | + | let db = da._1 | |
505 | + | let dc = da._2 | |
506 | + | $Tuple2((((db :+ IntegerEntry(cW, (cZ + 1))) :+ IntegerEntry(cX, (valueOrElse(getInteger(cX), 0) + 1))) :+ IntegerEntry(R(cV, I), lastBlock.timestamp)), dc) | |
464 | 507 | } | |
465 | 508 | } | |
466 | 509 | ||
467 | 510 | ||
468 | - | @Callable( | |
469 | - | func saveLastTx () = if (!(containsElement([D], | |
511 | + | @Callable(bt) | |
512 | + | func saveLastTx () = if (!(containsElement([D], bt.caller))) | |
470 | 513 | then throw("Access denied") | |
471 | - | else $Tuple2( | |
514 | + | else $Tuple2(bs(bt), 42) | |
472 | 515 | ||
473 | 516 | ||
474 | 517 | ||
475 | - | @Callable( | |
476 | - | func constructorV1 ( | |
518 | + | @Callable(bt) | |
519 | + | func constructorV1 (dd,de) = if ((bt.caller != this)) | |
477 | 520 | then throw("Permission denied") | |
478 | 521 | else { | |
479 | - | let | |
480 | - | [IntegerEntry(K, getIntegerValue( | |
522 | + | let df = addressFromStringValue(de) | |
523 | + | [IntegerEntry(K, getIntegerValue(df, K)), BinaryEntry(L, getBinaryValue(df, L)), StringEntry(v(), dd), StringEntry(F, de)] | |
481 | 524 | } | |
482 | 525 | ||
483 | 526 | ||
484 | 527 | ||
485 | - | @Callable( | |
486 | - | func setBlocked ( | |
528 | + | @Callable(bt) | |
529 | + | func setBlocked (dg) = if ((bt.caller != this)) | |
487 | 530 | then throw("permission denied") | |
488 | - | else [BooleanEntry(G(), | |
531 | + | else [BooleanEntry(G(), dg)] | |
489 | 532 | ||
490 | 533 | ||
491 | 534 | ||
492 | - | @Callable( | |
493 | - | func unstakeAcres ( | |
494 | - | let | |
495 | - | if ((0 >= | |
535 | + | @Callable(bt) | |
536 | + | func unstakeAcres (dh) = { | |
537 | + | let di = bs(bt) | |
538 | + | if ((0 >= dh)) | |
496 | 539 | then throw("Amount should be positive") | |
497 | 540 | else { | |
498 | - | let p = toString( | |
499 | - | if ((size( | |
541 | + | let p = toString(bt.caller) | |
542 | + | if ((size(bt.payments) != 0)) | |
500 | 543 | then throw("No payments required") | |
501 | 544 | else { | |
502 | - | let | |
503 | - | if (( | |
504 | - | then throw(("You traded some WLGOLD, cannot unstake until " + toString( | |
545 | + | let dj = (valueOrElse(getInteger(D, aU(p)), 0) + m) | |
546 | + | if ((dj > lastBlock.timestamp)) | |
547 | + | then throw(("You traded some WLGOLD, cannot unstake until " + toString(dj))) | |
505 | 548 | else { | |
506 | - | let | |
507 | - | let | |
508 | - | let | |
509 | - | $Tuple2((( | |
549 | + | let dk = bZ(-(dh), p, 0) | |
550 | + | let db = dk._1 | |
551 | + | let dc = dk._2 | |
552 | + | $Tuple2(((db :+ ScriptTransfer(bt.caller, dh, M)) ++ di), dc) | |
510 | 553 | } | |
511 | 554 | } | |
512 | 555 | } | |
513 | 556 | } | |
514 | 557 | ||
515 | 558 | ||
516 | 559 | ||
517 | - | @Callable( | |
560 | + | @Callable(bt) | |
518 | 561 | func stakeAcres () = { | |
519 | - | let | |
520 | - | let p = toString( | |
521 | - | if ((size( | |
562 | + | let di = bs(bt) | |
563 | + | let p = toString(bt.caller) | |
564 | + | if ((size(bt.payments) != 1)) | |
522 | 565 | then throw("exactly 1 payment must be attached") | |
523 | 566 | else { | |
524 | - | let | |
525 | - | let | |
526 | - | if (if (!(isDefined( | |
567 | + | let dl = bt.payments[0] | |
568 | + | let ca = dl.amount | |
569 | + | if (if (!(isDefined(dl.assetId))) | |
527 | 570 | then true | |
528 | - | else (value( | |
571 | + | else (value(dl.assetId) != M)) | |
529 | 572 | then throw("ACRES payments only!") | |
530 | 573 | else { | |
531 | - | let | |
532 | - | let | |
533 | - | let | |
534 | - | $Tuple2(( | |
574 | + | let dm = bZ(ca, p, 0) | |
575 | + | let db = dm._1 | |
576 | + | let dc = dm._2 | |
577 | + | $Tuple2((db ++ di), dc) | |
535 | 578 | } | |
536 | 579 | } | |
537 | 580 | } | |
538 | 581 | ||
539 | 582 | ||
540 | 583 | ||
541 | - | @Callable( | |
584 | + | @Callable(bt) | |
542 | 585 | func buyAcres () = { | |
543 | - | let | |
544 | - | if ((size( | |
586 | + | let di = bs(bt) | |
587 | + | if ((size(bt.payments) != 1)) | |
545 | 588 | then throw("exactly 1 payment must be attached") | |
546 | 589 | else { | |
547 | - | let | |
548 | - | let | |
549 | - | if (if (!(isDefined( | |
590 | + | let dl = bt.payments[0] | |
591 | + | let dn = dl.amount | |
592 | + | if (if (!(isDefined(dl.assetId))) | |
550 | 593 | then true | |
551 | - | else (value( | |
594 | + | else (value(dl.assetId) != k)) | |
552 | 595 | then throw("USDT payments only!") | |
553 | - | else if ((b > | |
596 | + | else if ((b > dn)) | |
554 | 597 | then throw((("Min payment should be " + ad(b, 6)) + " USDT")) | |
555 | 598 | else { | |
556 | - | let | |
557 | - | let | |
558 | - | let | |
559 | - | let | |
560 | - | if (( | |
599 | + | let do = (dn * f) | |
600 | + | let dp = fraction(dn, d, cs(dn)) | |
601 | + | let dq = addressFromStringValue(getStringValue(F)) | |
602 | + | let dr = invoke(dq, "requestAcresCallback", [do], nil) | |
603 | + | if ((dr == dr)) | |
561 | 604 | then { | |
562 | - | let | |
563 | - | $Tuple2(([ScriptTransfer( | |
605 | + | let ds = U(invoke(D, "burnWlgold", [dp], nil)) | |
606 | + | $Tuple2(([ScriptTransfer(bt.caller, do, M)] ++ di), ds) | |
564 | 607 | } | |
565 | 608 | else throw("Strict value is not equal to itself.") | |
566 | 609 | } | |
567 | 610 | } | |
568 | 611 | } | |
569 | 612 | ||
570 | 613 | ||
571 | 614 | ||
572 | - | @Callable( | |
573 | - | func buyAcresREADONLY ( | |
574 | - | let | |
575 | - | let | |
576 | - | $Tuple2(nil, [ | |
615 | + | @Callable(bt) | |
616 | + | func buyAcresREADONLY (dn) = { | |
617 | + | let do = (dn * f) | |
618 | + | let dt = fraction(dn, d, cs(dn)) | |
619 | + | $Tuple2(nil, [do, b, do, dt]) | |
577 | 620 | } | |
578 | 621 | ||
579 | 622 | ||
580 | 623 | ||
581 | - | @Callable( | |
624 | + | @Callable(bt) | |
582 | 625 | func sellAcres () = { | |
583 | - | let | |
584 | - | if ((size( | |
626 | + | let di = bs(bt) | |
627 | + | if ((size(bt.payments) != 1)) | |
585 | 628 | then throw("exactly 1 payment must be attached") | |
586 | 629 | else { | |
587 | - | let | |
588 | - | let | |
589 | - | if (if (!(isDefined( | |
630 | + | let dl = bt.payments[0] | |
631 | + | let do = dl.amount | |
632 | + | if (if (!(isDefined(dl.assetId))) | |
590 | 633 | then true | |
591 | - | else (value( | |
634 | + | else (value(dl.assetId) != M)) | |
592 | 635 | then throw("ACRES payments only!") | |
593 | - | else if ((c > | |
636 | + | else if ((c > do)) | |
594 | 637 | then throw((("Min payment should be " + ad(c, 8)) + " ACRES")) | |
595 | 638 | else { | |
596 | - | let I = toString( | |
597 | - | let | |
598 | - | let | |
599 | - | let | |
600 | - | let | |
601 | - | if (( | |
602 | - | then throw((("You can sell max " + ad( | |
639 | + | let I = toString(bt.caller) | |
640 | + | let du = cz() | |
641 | + | let dv = du._1 | |
642 | + | let dw = du._2 | |
643 | + | let dx = (dw * f) | |
644 | + | if ((do > dx)) | |
645 | + | then throw((("You can sell max " + ad(dx, 8)) + " ACRES")) | |
603 | 646 | else { | |
604 | - | let | |
605 | - | $Tuple2(([ | |
647 | + | let dn = ((do / f) / 2) | |
648 | + | $Tuple2(([dv, IntegerEntry(aW, (dw - dn)), ScriptTransfer(bt.caller, dn, k)] ++ di), dn) | |
606 | 649 | } | |
607 | 650 | } | |
608 | 651 | } | |
609 | 652 | } | |
610 | 653 | ||
611 | 654 | ||
612 | 655 | ||
613 | - | @Callable( | |
614 | - | func sellAcresREADONLY (p, | |
615 | - | let | |
616 | - | let | |
617 | - | let | |
618 | - | let | |
619 | - | $Tuple2(nil, [ | |
656 | + | @Callable(bt) | |
657 | + | func sellAcresREADONLY (p,do) = { | |
658 | + | let dy = cz() | |
659 | + | let dv = dy._1 | |
660 | + | let dw = dy._2 | |
661 | + | let dn = ((do / f) / 2) | |
662 | + | $Tuple2(nil, [dn, c, (dw * f), 0]) | |
620 | 663 | } | |
621 | 664 | ||
622 | 665 | ||
623 | 666 | ||
624 | - | @Callable( | |
625 | - | func convertOldStakes () = if (( | |
667 | + | @Callable(bt) | |
668 | + | func convertOldStakes () = if ((bt.caller != this)) | |
626 | 669 | then throw("Temporarily disabled") | |
627 | 670 | else { | |
628 | - | let p = toString( | |
629 | - | if ((size( | |
671 | + | let p = toString(bt.caller) | |
672 | + | if ((size(bt.payments) != 0)) | |
630 | 673 | then throw("No payments required") | |
631 | 674 | else { | |
632 | - | let | |
633 | - | let | |
634 | - | let | |
635 | - | then ac(invoke( | |
675 | + | let dq = addressFromStringValue(getStringValue(F)) | |
676 | + | let dh = valueOrElse(getInteger(dq, am(p)), 0) | |
677 | + | let dz = if ((dh > 0)) | |
678 | + | then ac(invoke(dq, "unstakeAcresCallback", [dh, p], nil)) | |
636 | 679 | else $Tuple2(0, 0) | |
637 | - | let | |
638 | - | let | |
639 | - | let | |
680 | + | let dA = addressFromStringValue(n) | |
681 | + | let dB = getString(dA, O(p)) | |
682 | + | let dC = if (isDefined(dB)) | |
640 | 683 | then { | |
641 | - | let | |
642 | - | func | |
684 | + | let dD = split_51C(value(dB), "_") | |
685 | + | func dE (aH,dF) = if ((dF == "")) | |
643 | 686 | then throw("landAssetId is required") | |
644 | 687 | else { | |
645 | - | let | |
646 | - | $Tuple4(( | |
688 | + | let dG = X(invoke(dA, "unstakeLandCallback", [dF, p], nil)) | |
689 | + | $Tuple4((aH._1 + dG._1), (aH._2 + dG._2), (aH._3 + dG._3), (aH._4 + dG._4)) | |
647 | 690 | } | |
648 | 691 | ||
649 | - | let | |
650 | - | let | |
651 | - | let | |
652 | - | let | |
653 | - | func | |
654 | - | then | |
655 | - | else | |
692 | + | let dH = { | |
693 | + | let aJ = dD | |
694 | + | let aK = size(aJ) | |
695 | + | let aL = $Tuple4(0, 0, 0, 0) | |
696 | + | func aM (aN,aO) = if ((aO >= aK)) | |
697 | + | then aN | |
698 | + | else dE(aN, aJ[aO]) | |
656 | 699 | ||
657 | - | func | |
658 | - | then | |
700 | + | func aP (aN,aO) = if ((aO >= aK)) | |
701 | + | then aN | |
659 | 702 | else throw("List size exceeds 100") | |
660 | 703 | ||
661 | - | | |
704 | + | aP(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aL, 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) | |
662 | 705 | } | |
663 | - | let | |
664 | - | if (( | |
706 | + | let dI = invoke(dA, "unstakeLandsFinalizeCallback", [p], nil) | |
707 | + | if ((dI == dI)) | |
665 | 708 | then { | |
666 | - | let | |
667 | - | if (( | |
709 | + | let dr = invoke(dq, "requestAcresCallback", [(((dH._1 + dH._2) + dH._3) + dH._4)], nil) | |
710 | + | if ((dr == dr)) | |
668 | 711 | then { | |
669 | - | let | |
670 | - | let | |
671 | - | let | |
672 | - | $Tuple5( | |
712 | + | let dJ = bM(bg, bk, bp, bn, 3, bb, br, bt.caller) | |
713 | + | let dK = dJ._1 | |
714 | + | let bV = dJ._2 | |
715 | + | $Tuple5(dH._1, dH._2, dH._3, dH._4, dK) | |
673 | 716 | } | |
674 | 717 | else throw("Strict value is not equal to itself.") | |
675 | 718 | } | |
676 | 719 | else throw("Strict value is not equal to itself.") | |
677 | 720 | } | |
678 | 721 | else $Tuple5(0, 0, 0, 0, nil) | |
679 | - | let | |
680 | - | let | |
681 | - | then ab(invoke( | |
722 | + | let dL = valueOrElse(getString(dA, Q(p)), "") | |
723 | + | let dM = if ((dL != "")) | |
724 | + | then ab(invoke(dA, "unstakeDuckCallback", [dL, p], nil)) | |
682 | 725 | else $Tuple3(0, 0, 0) | |
683 | - | let | |
684 | - | $Tuple2(( | |
726 | + | let dN = bZ((((((((dz._1 + dC._1) + dC._2) + dC._3) + dC._4) + dM._1) + dM._2) + dM._3), p, 0) | |
727 | + | $Tuple2((dC._5 ++ dN._1), dN._2) | |
685 | 728 | } | |
686 | 729 | } | |
687 | 730 | ||
688 | 731 | ||
689 | 732 | ||
690 | - | @Callable( | |
733 | + | @Callable(bt) | |
691 | 734 | func unstakeLandsREADONLY (p) = { | |
692 | - | let | |
693 | - | let | |
694 | - | let | |
735 | + | let dA = addressFromStringValue(n) | |
736 | + | let dB = getString(dA, O(p)) | |
737 | + | let dC = if (isDefined(dB)) | |
695 | 738 | then { | |
696 | - | let | |
697 | - | func | |
739 | + | let dD = split_51C(value(dB), "_") | |
740 | + | func dE (aH,dF) = if ((dF == "")) | |
698 | 741 | then throw("landAssetId is required") | |
699 | 742 | else { | |
700 | - | let | |
701 | - | $Tuple4(( | |
743 | + | let dG = aa(invoke(dA, "unstakeLandREADONLY", [dF, p], nil)) | |
744 | + | $Tuple4((aH._1 + dG._1), (aH._2 + dG._2), (aH._3 + dG._3), (aH._4 + dG._4)) | |
702 | 745 | } | |
703 | 746 | ||
704 | - | let | |
705 | - | let | |
706 | - | let | |
707 | - | func | |
708 | - | then | |
709 | - | else | |
747 | + | let aJ = dD | |
748 | + | let aK = size(aJ) | |
749 | + | let aL = $Tuple4(0, 0, 0, 0) | |
750 | + | func aM (aN,aO) = if ((aO >= aK)) | |
751 | + | then aN | |
752 | + | else dE(aN, aJ[aO]) | |
710 | 753 | ||
711 | - | func | |
712 | - | then | |
754 | + | func aP (aN,aO) = if ((aO >= aK)) | |
755 | + | then aN | |
713 | 756 | else throw("List size exceeds 100") | |
714 | 757 | ||
715 | - | | |
758 | + | aP(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aM(aL, 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) | |
716 | 759 | } | |
717 | 760 | else $Tuple4(0, 0, 0, 0) | |
718 | - | $Tuple2(nil, | |
761 | + | $Tuple2(nil, dC) | |
719 | 762 | } | |
720 | 763 | ||
721 | 764 | ||
722 | 765 | ||
723 | - | @Callable( | |
724 | - | func stakeAcresCallback (I) = if (( | |
766 | + | @Callable(bt) | |
767 | + | func stakeAcresCallback (I) = if ((bt.caller != addressFromStringValue(n))) | |
725 | 768 | then throw("Permission denied") | |
726 | - | else bt | |
769 | + | else bZ(bt.payments[0].amount, I, 0) | |
727 | 770 | ||
728 | 771 | ||
729 | 772 | ||
730 | - | @Callable( | |
731 | - | func simulateStakeAcresREADONLY (p, | |
732 | - | let | |
733 | - | let | |
734 | - | let | |
735 | - | let | |
736 | - | let | |
737 | - | let | |
738 | - | let | |
739 | - | let | |
740 | - | let | |
741 | - | let | |
742 | - | let | |
743 | - | $Tuple2(nil, [ | |
773 | + | @Callable(bt) | |
774 | + | func simulateStakeAcresREADONLY (p,dO) = { | |
775 | + | let cf = am(p) | |
776 | + | let ch = (valueOrElse(getInteger(cf), 0) + dO) | |
777 | + | let ci = valueOrElse(getInteger(ao), 0) | |
778 | + | let cj = an(p) | |
779 | + | let ck = valueOrElse(getInteger(cj), 0) | |
780 | + | let dP = valueOrElse(getInteger(C, aB(p)), 0) | |
781 | + | let dQ = aR(ch, dP) | |
782 | + | let co = dQ._1 | |
783 | + | let cp = dQ._2 | |
784 | + | let cq = valueOrElse(getInteger(ap), 0) | |
785 | + | let dR = ((cq + co) - ck) | |
786 | + | $Tuple2(nil, [ck, co, cq, dR]) | |
744 | 787 | } | |
745 | 788 | ||
746 | 789 | ||
747 | 790 | ||
748 | - | @Callable( | |
749 | - | func | |
791 | + | @Callable(bt) | |
792 | + | func issuePickC1 (dS) = if ((bt.caller != D)) | |
750 | 793 | then throw("Permission denied") | |
751 | - | else | |
794 | + | else bM(bh, bj, bp, bm, 1, bc, br, addressFromStringValue(dS)) | |
752 | 795 | ||
753 | 796 | ||
754 | 797 | ||
755 | - | @Callable(bf) | |
756 | - | func issueNftAdmin (dn,bo,do) = if ((bf.caller != this)) | |
757 | - | then throw("Permission denied") | |
758 | - | else if ((bo >= size(aZ))) | |
759 | - | then throw("nftIndex out of bounds") | |
760 | - | else { | |
761 | - | let br = Issue(aY[bo], bn(bo, toString(do)), 1, 0, false) | |
762 | - | let bs = calculateAssetId(br) | |
763 | - | $Tuple2([br, IntegerEntry(az(toBase58String(bs)), do), ScriptTransfer(addressFromStringValue(dn), 1, bs)], bs) | |
764 | - | } | |
765 | - | ||
766 | - | ||
767 | - | ||
768 | - | @Callable(bf) | |
798 | + | @Callable(bt) | |
769 | 799 | func stakeNFT () = { | |
770 | - | let | |
771 | - | if ((size( | |
800 | + | let di = bs(bt) | |
801 | + | if ((size(bt.payments) != 1)) | |
772 | 802 | then throw("Exactly one payment required") | |
773 | 803 | else { | |
774 | - | let | |
775 | - | if (( | |
804 | + | let dl = value(bt.payments[0]) | |
805 | + | if ((dl.amount != 1)) | |
776 | 806 | then throw("NFT token should be attached as payment") | |
777 | 807 | else { | |
778 | - | let S = value( | |
779 | - | let | |
780 | - | let | |
781 | - | let I = toString( | |
782 | - | let | |
783 | - | let | |
784 | - | let | |
785 | - | then split_4C(value( | |
808 | + | let S = value(dl.assetId) | |
809 | + | let dT = value(assetInfo(S)) | |
810 | + | let cV = toBase58String(S) | |
811 | + | let I = toString(bt.caller) | |
812 | + | let dU = T(I) | |
813 | + | let dV = getString(dU) | |
814 | + | let dW = if (isDefined(dV)) | |
815 | + | then split_4C(value(dV), "_") | |
786 | 816 | else nil | |
787 | - | if (containsElement( | |
788 | - | then throw(("Your staked NFTs already contain " + | |
789 | - | else if ((size( | |
790 | - | then throw((("Your already staked max (" + toString( | |
817 | + | if (containsElement(dW, cV)) | |
818 | + | then throw(("Your staked NFTs already contain " + cV)) | |
819 | + | else if ((size(dW) >= at)) | |
820 | + | then throw((("Your already staked max (" + toString(at)) + ") NFTs")) | |
791 | 821 | else { | |
792 | - | let | |
793 | - | if (( | |
822 | + | let dX = StringEntry(dU, makeString_2C((dW :+ cV), "_")) | |
823 | + | if ((dT.issuer == this)) | |
794 | 824 | then { | |
795 | - | let | |
796 | - | let | |
797 | - | let | |
798 | - | $Tuple2((( | |
825 | + | let dY = cU(I, cV, (cS(value(dT.description)) * 10000), az(I), aw, aq) | |
826 | + | let db = dY._1 | |
827 | + | let dc = dY._2 | |
828 | + | $Tuple2(((di ++ db) :+ dX), dc) | |
799 | 829 | } | |
800 | - | else if (( | |
830 | + | else if ((cP(dT) == "")) | |
801 | 831 | then throw("Only WavesLands and Arkimals NFT tokens are accepted") | |
802 | 832 | else { | |
803 | - | let | |
804 | - | let | |
805 | - | let | |
806 | - | $Tuple2((( | |
833 | + | let dZ = cU(I, cV, as, aA(I), ax, ar) | |
834 | + | let db = dZ._1 | |
835 | + | let dc = dZ._2 | |
836 | + | $Tuple2(((di ++ db) :+ dX), dc) | |
807 | 837 | } | |
808 | 838 | } | |
809 | 839 | } | |
810 | 840 | } | |
811 | 841 | } | |
812 | 842 | ||
813 | 843 | ||
814 | 844 | ||
815 | - | @Callable( | |
816 | - | func unstakeNFT ( | |
817 | - | let | |
818 | - | if ((size( | |
845 | + | @Callable(bt) | |
846 | + | func unstakeNFT (cV) = { | |
847 | + | let di = bs(bt) | |
848 | + | if ((size(bt.payments) != 0)) | |
819 | 849 | then throw("No payments required") | |
820 | 850 | else { | |
821 | - | let S = fromBase58String( | |
822 | - | let I = toString( | |
823 | - | let | |
824 | - | let | |
825 | - | if (!(isDefined(getInteger( | |
826 | - | then throw((("NFT " + | |
851 | + | let S = fromBase58String(cV) | |
852 | + | let I = toString(bt.caller) | |
853 | + | let dT = value(assetInfo(S)) | |
854 | + | let ce = R(cV, I) | |
855 | + | if (!(isDefined(getInteger(ce)))) | |
856 | + | then throw((("NFT " + dT.name) + " is not staked by you")) | |
827 | 857 | else { | |
828 | - | let | |
829 | - | let | |
830 | - | let A = indexOf( | |
858 | + | let dU = T(I) | |
859 | + | let dW = split_4C(valueOrElse(getString(dU), ""), "_") | |
860 | + | let A = indexOf(dW, cV) | |
831 | 861 | if (!(isDefined(A))) | |
832 | - | then throw(("Your staked NFTs don't contain " + | |
862 | + | then throw(("Your staked NFTs don't contain " + cV)) | |
833 | 863 | else { | |
834 | - | let | |
835 | - | then StringEntry( | |
836 | - | else DeleteEntry( | |
837 | - | let | |
838 | - | if ( | |
864 | + | let dX = if ((size(dW) > 1)) | |
865 | + | then StringEntry(dU, makeString_2C(removeByIndex(dW, value(A)), "_")) | |
866 | + | else DeleteEntry(dU) | |
867 | + | let ea = (dT.issuer == this) | |
868 | + | if (ea) | |
839 | 869 | then { | |
840 | - | let | |
841 | - | let | |
842 | - | let | |
843 | - | let | |
844 | - | let | |
845 | - | $Tuple2((((((( | |
870 | + | let eb = valueOrElse(getInteger(az(I)), 0) | |
871 | + | let ec = (cS(value(dT.description)) * 10000) | |
872 | + | let ed = bZ(0, I, -(ec)) | |
873 | + | let db = ed._1 | |
874 | + | let dc = ed._2 | |
875 | + | $Tuple2(((((((db :+ dX) :+ IntegerEntry(az(I), (eb - 1))) :+ IntegerEntry(aw, max([0, (valueOrElse(getInteger(aw), 0) - 1)]))) :+ DeleteEntry(R(toBase58String(S), I))) :+ ScriptTransfer(bt.caller, 1, S)) ++ di), dc) | |
846 | 876 | } | |
847 | 877 | else { | |
848 | - | let | |
849 | - | if (( | |
878 | + | let ee = cP(dT) | |
879 | + | if ((ee == "")) | |
850 | 880 | then throw("Only WavesLands and Arkimals NFT tokens are accepted") | |
851 | 881 | else { | |
852 | - | let | |
853 | - | let | |
854 | - | let | |
855 | - | let | |
856 | - | $Tuple2(((((( | |
882 | + | let ef = valueOrElse(getInteger(aA(I)), 0) | |
883 | + | let eg = bZ(0, I, -(as)) | |
884 | + | let db = eg._1 | |
885 | + | let dc = eg._2 | |
886 | + | $Tuple2((((((db :+ dX) :+ IntegerEntry(aA(I), (ef - 1))) :+ DeleteEntry(R(toBase58String(S), I))) :+ ScriptTransfer(bt.caller, 1, S)) ++ di), dc) | |
857 | 887 | } | |
858 | 888 | } | |
859 | 889 | } | |
860 | 890 | } | |
861 | 891 | } | |
862 | 892 | } | |
863 | 893 | ||
864 | 894 | ||
865 | 895 | ||
866 | - | @Callable( | |
867 | - | func exchangeNFTs () = if (( | |
896 | + | @Callable(bt) | |
897 | + | func exchangeNFTs () = if ((bt.caller != this)) | |
868 | 898 | then throw("Temporarily disabled") | |
869 | 899 | else { | |
870 | - | let | |
871 | - | if ((3 > size( | |
900 | + | let di = bs(bt) | |
901 | + | if ((3 > size(bt.payments))) | |
872 | 902 | then throw("Min one USDT and 2 NFT payments allowed") | |
873 | - | else if ((size( | |
903 | + | else if ((size(bt.payments) > 6)) | |
874 | 904 | then throw("Max one USDT and 5 NFT payments allowed") | |
875 | 905 | else { | |
876 | - | let I = toString( | |
877 | - | func | |
878 | - | let S = valueOrErrorMessage( | |
906 | + | let I = toString(bt.caller) | |
907 | + | func eh (aH,dl) = { | |
908 | + | let S = valueOrErrorMessage(dl.assetId, "WAVES payments not allowed") | |
879 | 909 | if ((S == k)) | |
880 | - | then $Tuple3(( | |
910 | + | then $Tuple3((aH._1 + dl.amount), aH._2, aH._3) | |
881 | 911 | else { | |
882 | - | let | |
883 | - | if (( | |
912 | + | let dT = value(assetInfo(S)) | |
913 | + | if ((dT.issuer != this)) | |
884 | 914 | then throw("Only WL-issued NFTs allowed") | |
885 | 915 | else { | |
886 | - | let | |
887 | - | $Tuple3( | |
916 | + | let bR = cS(value(dT.description)) | |
917 | + | $Tuple3(aH._1, (aH._2 + bR), (aH._3 :+ Burn(S, 1))) | |
888 | 918 | } | |
889 | 919 | } | |
890 | 920 | } | |
891 | 921 | ||
892 | - | let | |
893 | - | let | |
894 | - | let | |
895 | - | let | |
896 | - | func | |
897 | - | then | |
898 | - | else | |
922 | + | let ei = { | |
923 | + | let aJ = bt.payments | |
924 | + | let aK = size(aJ) | |
925 | + | let aL = $Tuple3(0, 0, nil) | |
926 | + | func aM (aN,aO) = if ((aO >= aK)) | |
927 | + | then aN | |
928 | + | else eh(aN, aJ[aO]) | |
899 | 929 | ||
900 | - | func | |
901 | - | then | |
930 | + | func aP (aN,aO) = if ((aO >= aK)) | |
931 | + | then aN | |
902 | 932 | else throw("List size exceeds 6") | |
903 | 933 | ||
904 | - | | |
934 | + | aP(aM(aM(aM(aM(aM(aM(aL, 0), 1), 2), 3), 4), 5), 6) | |
905 | 935 | } | |
906 | - | let | |
907 | - | let | |
908 | - | let | |
909 | - | let | |
936 | + | let ej = ei._1 | |
937 | + | let ek = ei._2 | |
938 | + | let el = ei._3 | |
939 | + | let bX = if ((ek == 3)) | |
910 | 940 | then 2 | |
911 | - | else if (( | |
941 | + | else if ((ek == 5)) | |
912 | 942 | then 3 | |
913 | - | else if (( | |
943 | + | else if ((ek == 10)) | |
914 | 944 | then 4 | |
915 | 945 | else throw("Only bonuses of 3%, 5% or 10% are supported") | |
916 | - | let | |
917 | - | if ((0 > | |
918 | - | then throw((("You need to attach " + toString( | |
946 | + | let em = (ej - (ek * b)) | |
947 | + | if ((0 > em)) | |
948 | + | then throw((("You need to attach " + toString(ek)) + " USDT as fee")) | |
919 | 949 | else { | |
920 | - | let | |
921 | - | then [ScriptTransfer( | |
950 | + | let en = if ((em > 0)) | |
951 | + | then [ScriptTransfer(bt.caller, em, k)] | |
922 | 952 | else nil | |
923 | - | let | |
924 | - | let | |
925 | - | let | |
926 | - | let | |
927 | - | let | |
953 | + | let eo = bY(bX, bt.caller) | |
954 | + | let ep = eo._1 | |
955 | + | let bV = eo._2 | |
956 | + | let eq = size(el) | |
957 | + | let er = if ((eq == 0)) | |
928 | 958 | then nil | |
929 | - | else [IntegerEntry( | |
930 | - | $Tuple2((((( | |
959 | + | else [IntegerEntry(av, (valueOrElse(getInteger(av), 0) + eq))] | |
960 | + | $Tuple2(((((ep ++ el) ++ er) ++ di) ++ en), bV) | |
931 | 961 | } | |
932 | 962 | } | |
933 | 963 | } | |
934 | 964 | ||
935 | 965 | ||
936 | 966 | ||
937 | - | @Callable( | |
938 | - | func openNftChest () = if (( | |
967 | + | @Callable(bt) | |
968 | + | func openNftChest () = if ((bt.caller != this)) | |
939 | 969 | then throw("Permission denied") | |
940 | 970 | else $Tuple2(nil, 0) | |
941 | 971 | ||
942 | 972 |
github/deemru/w8io/026f985 441.30 ms ◑