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