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