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