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