tx · BRm8bE6438nAGhZAQ9FmCE6t2bXYfQXTVxQsvkpZsFQu 3Myn55vLkduxbX3ZXfiDCZhaQsLxYp1kmCy: -0.02300000 Waves 2022.12.06 09:10 [2348100] smart account 3Myn55vLkduxbX3ZXfiDCZhaQsLxYp1kmCy > SELF 0.00000000 Waves
{ "type": 13, "id": "BRm8bE6438nAGhZAQ9FmCE6t2bXYfQXTVxQsvkpZsFQu", "fee": 2300000, "feeAssetId": null, "timestamp": 1670307051999, "version": 1, "sender": "3Myn55vLkduxbX3ZXfiDCZhaQsLxYp1kmCy", "senderPublicKey": "9W33iCCNfmFxUbiC6XZcH5x7f6xfwC7Jb3BoExT5q2PV", "proofs": [ "4B6uvFS8mdjLKZoeE3hbhpnbA6MNN2J1udmB4fxaKY2Yf4Fc3P9Qvehfd51bYLaYvDjSU9kiSXzvYDZnDL28Dyg" ], "script": "base64:BgLnJQgCEggKBggIAQEBCBIFCgMBCAISAwoBARIDCgEBEgQKAggIEgQKAggIEgMKAQgSAwoBCBIECgIIARIAEgMKAQgSACIDU0VQIgZTQ0FMRTgiBU1VTFQ4Ig5QT09MV0VJR0hUTVVMVCIEc3RyZiIHYWRkcmVzcyIDa2V5IgNpb3oiA2lvZCIKZGVmYXVsdFZhbCIDaW9mIgNhYnMiA3ZhbCIDYWFsIgckbWF0Y2gwIgp2YWxBbnlMeXN0IgJhaSIGdmFsSW50IhtrZXlSZWZlcnJhbHNDb250cmFjdEFkZHJlc3MiHnJlZmVycmFsc0NvbnRyYWN0QWRkcmVzc09yRmFpbCIWa2V5UmVmZXJyYWxQcm9ncmFtTmFtZSIacmVmZXJyYWxQcm9ncmFtTmFtZURlZmF1bHQiE3JlZmVycmFsUHJvZ3JhbU5hbWUiEWtleUZhY3RvcnlBZGRyZXNzIhhJZHhGYWN0b3J5Q2ZnU3Rha2luZ0RhcHAiGUlkeEZhY3RvcnlDZmdCb29zdGluZ0RhcHAiFElkeEZhY3RvcnlDZmdJZG9EYXBwIhVJZHhGYWN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gCCQELU3RyaW5nRW50cnkCCQECYWMACQDYBAEJAQV2YWx1ZQEFAmVuCQDMCAIJAQtEZWxldGVFbnRyeQEJAQJhZAAFA25pbAkAAgECJFN0cmljdCB2YWx1ZSBpcyBub3QgZXF1YWwgdG8gaXRzZWxmLgkAAgECJFN0cmljdCB2YWx1ZSBpcyBub3QgZXF1YWwgdG8gaXRzZWxmLgECZXEBAmVyAAQCZXMEAW8JAQJhegADCQABAgUBbwIKQnl0ZVZlY3RvcgQCYUYFAW8FAmFGAwkAAQIFAW8CBFVuaXQIBQJlcQ9zZW5kZXJQdWJsaWNLZXkJAAIBAgtNYXRjaCBlcnJvcgkA9AMDCAUCZXEJYm9keUJ5dGVzCQCRAwIIBQJlcQZwcm9vZnMAAAUCZXPDR9vj", "chainId": 84, "height": 2348100, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: EvS19MJ1c8MwQMgqukanuya5LseYcrpydKs1X9vNTVuT Next: GAEfnfzGb8LnZGHuCjgmSrJoWtxRTdCANfy47j399rvb Diff:
Old | New | Differences | |
---|---|---|---|
305 | 305 | func bv () = "%s%s__gwxCached__total" | |
306 | 306 | ||
307 | 307 | ||
308 | - | ||
308 | + | func bw () = "%s__gwxCachedTotalCorrective" | |
309 | 309 | ||
310 | - | let Y = V(bw) | |
311 | 310 | ||
312 | - | let bx = | |
311 | + | let bx = T() | |
313 | 312 | ||
314 | - | let | |
313 | + | let Y = V(bx) | |
315 | 314 | ||
316 | - | let | |
315 | + | let by = Z(Y) | |
317 | 316 | ||
318 | - | func bA (bB,bC,aR,bD,aT,bE,bF,aD) = { | |
319 | - | let bG = makeString(["%s%s%s%s__history", bB, bC, toBase58String(aD.transactionId)], a) | |
320 | - | let bH = makeString(["%d%d%d%d%d%d%d", toString(lastBlock.height), toString(lastBlock.timestamp), toString(aR), toString(bD), toString(aT), toString(bE), toString(bF)], a) | |
321 | - | StringEntry(bG, bH) | |
317 | + | let bz = aa(Y) | |
318 | + | ||
319 | + | let bA = ab(Y) | |
320 | + | ||
321 | + | func bB (bC) = { | |
322 | + | let bD = makeString(["%s", "votingEmissionContract"], a) | |
323 | + | let bE = addressFromStringValue(getStringValue(bx, bD)) | |
324 | + | let bF = makeString(["%s", "currentEpochUi"], a) | |
325 | + | let bG = getIntegerValue(bE, bF) | |
326 | + | let bH = makeString(["%s%s", "totalCachedGwxCorrection__activationEpoch"], a) | |
327 | + | let bI = getInteger(this, bH) | |
328 | + | let bJ = valueOrElse(getInteger(this, bv()), 0) | |
329 | + | let bK = if (isDefined(bI)) | |
330 | + | then (bG >= value(bI)) | |
331 | + | else false | |
332 | + | let bL = if (if (bK) | |
333 | + | then bC | |
334 | + | else false) | |
335 | + | then valueOrElse(getInteger(this, bw()), 0) | |
336 | + | else 0 | |
337 | + | max([0, (bJ + bL)]) | |
322 | 338 | } | |
323 | 339 | ||
324 | 340 | ||
325 | - | func bI (bJ,bK,bL,bM) = { | |
326 | - | let bN = bl() | |
327 | - | let bO = bm() | |
328 | - | let bP = bn() | |
329 | - | let bQ = bk() | |
330 | - | let bR = h(this, bN) | |
331 | - | let bS = h(this, bO) | |
332 | - | let bT = h(this, bP) | |
333 | - | let bU = h(this, bQ) | |
334 | - | [IntegerEntry(bN, (bR + bK)), IntegerEntry(bO, (bS + bL)), IntegerEntry(bP, (bT + bM)), IntegerEntry(bQ, (bU + bJ))] | |
341 | + | func bM (bN,bO,aR,bP,aT,bQ,bR,aD) = { | |
342 | + | let bS = makeString(["%s%s%s%s__history", bN, bO, toBase58String(aD.transactionId)], a) | |
343 | + | let bT = makeString(["%d%d%d%d%d%d%d", toString(lastBlock.height), toString(lastBlock.timestamp), toString(aR), toString(bP), toString(aT), toString(bQ), toString(bR)], a) | |
344 | + | StringEntry(bS, bT) | |
335 | 345 | } | |
336 | 346 | ||
337 | 347 | ||
338 | - | func bV (bW,bX,bY) = { | |
339 | - | let bZ = 1000 | |
340 | - | (((bW * bY) + bX) / bZ) | |
348 | + | func bU (bV,bW,bX,bY) = { | |
349 | + | let bZ = bl() | |
350 | + | let ca = bm() | |
351 | + | let cb = bn() | |
352 | + | let cc = bk() | |
353 | + | let cd = h(this, bZ) | |
354 | + | let ce = h(this, ca) | |
355 | + | let cf = h(this, cb) | |
356 | + | let cg = h(this, cc) | |
357 | + | [IntegerEntry(bZ, (cd + bW)), IntegerEntry(ca, (ce + bX)), IntegerEntry(cb, (cf + bY)), IntegerEntry(cc, (cg + bV))] | |
341 | 358 | } | |
342 | 359 | ||
343 | 360 | ||
344 | - | func ca (aN,aQ,aR,aS,aT,bE,bF,bi) = { | |
345 | - | let cb = bc(aQ) | |
346 | - | let cc = bd(aQ) | |
347 | - | let cd = be(aQ) | |
348 | - | let ce = bf(aQ) | |
349 | - | let cf = bg(aQ) | |
350 | - | let cg = bh(aQ, bi) | |
351 | - | let ch = bj(aQ, bi) | |
352 | - | let aX = bV(bE, bF, height) | |
353 | - | [IntegerEntry(cb, aR), IntegerEntry(cc, aS), IntegerEntry(cd, aT), IntegerEntry(ce, bE), IntegerEntry(cf, bF), IntegerEntry(cg, bE), IntegerEntry(ch, bF), StringEntry(aM(aN), aY(aQ, aR, aS, aT, bE, bF, aX))] | |
361 | + | func ch (ci,cj,ck) = { | |
362 | + | let cl = 1000 | |
363 | + | (((ci * ck) + cj) / cl) | |
354 | 364 | } | |
355 | 365 | ||
356 | 366 | ||
357 | - | func ci (aD,cj) = if ((size(aD.payments) > 1)) | |
367 | + | func cm (aN,aQ,aR,aS,aT,bQ,bR,bi) = { | |
368 | + | let cn = bc(aQ) | |
369 | + | let co = bd(aQ) | |
370 | + | let cp = be(aQ) | |
371 | + | let cq = bf(aQ) | |
372 | + | let cr = bg(aQ) | |
373 | + | let cs = bh(aQ, bi) | |
374 | + | let ct = bj(aQ, bi) | |
375 | + | let aX = ch(bQ, bR, height) | |
376 | + | [IntegerEntry(cn, aR), IntegerEntry(co, aS), IntegerEntry(cp, aT), IntegerEntry(cq, bQ), IntegerEntry(cr, bR), IntegerEntry(cs, bQ), IntegerEntry(ct, bR), StringEntry(aM(aN), aY(aQ, aR, aS, aT, bQ, bR, aX))] | |
377 | + | } | |
378 | + | ||
379 | + | ||
380 | + | func cu (aD,cv) = if ((size(aD.payments) > 1)) | |
358 | 381 | then throw("only one payment is allowed") | |
359 | 382 | else if ((size(aD.payments) == 0)) | |
360 | 383 | then 0 | |
361 | 384 | else { | |
362 | - | let | |
363 | - | if ((value( | |
385 | + | let cw = aD.payments[0] | |
386 | + | if ((value(cw.assetId) != cv)) | |
364 | 387 | then throw("invalid asset id in payment") | |
365 | - | else | |
388 | + | else cw.amount | |
366 | 389 | } | |
367 | 390 | ||
368 | 391 | ||
369 | - | func | |
370 | - | let | |
371 | - | let | |
372 | - | let aQ = valueOrElse(getString( | |
373 | - | let | |
374 | - | let | |
375 | - | let | |
376 | - | let aX = if ((0 > | |
392 | + | func cx (aN,cy) = { | |
393 | + | let cz = "empty" | |
394 | + | let cA = ba(aN) | |
395 | + | let aQ = valueOrElse(getString(cA), cz) | |
396 | + | let bQ = valueOrElse(getInteger(bf(aQ)), 0) | |
397 | + | let bR = valueOrElse(getInteger(bg(aQ)), 0) | |
398 | + | let cB = ch(bQ, bR, cy) | |
399 | + | let aX = if ((0 > cB)) | |
377 | 400 | then 0 | |
378 | - | else | |
401 | + | else cB | |
379 | 402 | aX | |
380 | 403 | } | |
381 | 404 | ||
382 | 405 | ||
383 | - | func | |
406 | + | func cC (aN) = cx(aN, height) | |
384 | 407 | ||
385 | 408 | ||
386 | - | func | |
387 | - | let | |
388 | - | let | |
389 | - | if (( | |
409 | + | func cD (cE,cF,cG) = { | |
410 | + | let cz = "EMPTY" | |
411 | + | let cH = valueOrElse(getString(this, aM(cF)), cz) | |
412 | + | if ((cH == cz)) | |
390 | 413 | then $Tuple3(0, nil, "userRecord::is::empty") | |
391 | 414 | else { | |
392 | - | let | |
393 | - | let | |
394 | - | let | |
395 | - | let | |
396 | - | let | |
415 | + | let cI = split(cH, a) | |
416 | + | let cJ = cI[aG] | |
417 | + | let cK = valueOrElse(getInteger(bA, ak()), 0) | |
418 | + | let cL = "empty" | |
419 | + | let cM = if ((cE != cL)) | |
397 | 420 | then { | |
398 | - | let | |
399 | - | let | |
400 | - | let | |
401 | - | $Tuple2( | |
421 | + | let cN = valueOrErrorMessage(getString(bx, K(cE)), ("unsupported lp asset " + cE)) | |
422 | + | let cO = getIntegerValue(bx, O(cN)) | |
423 | + | let cP = valueOrElse(getInteger(bx, Q(cN, 0)), cO) | |
424 | + | $Tuple2(cP, cO) | |
402 | 425 | } | |
403 | - | else if ( | |
426 | + | else if (cG) | |
404 | 427 | then $Tuple2(0, 0) | |
405 | - | else throw(("not readonly mode: unsupported lp asset " + | |
406 | - | let | |
407 | - | let | |
408 | - | let | |
409 | - | let | |
410 | - | let | |
411 | - | let | |
412 | - | then | |
428 | + | else throw(("not readonly mode: unsupported lp asset " + cE)) | |
429 | + | let cQ = cM._1 | |
430 | + | let cR = cM._2 | |
431 | + | let cS = k(by, ae()) | |
432 | + | let cT = k(by, ag()) | |
433 | + | let cU = k(by, ai()) | |
434 | + | let ck = if ((height > cU)) | |
435 | + | then cU | |
413 | 436 | else height | |
414 | - | let | |
415 | - | let | |
416 | - | let | |
417 | - | let | |
418 | - | let | |
419 | - | let | |
420 | - | let | |
421 | - | let | |
422 | - | let | |
423 | - | let | |
424 | - | if (if (if ((0 > | |
437 | + | let cV = max([(ck - cT), 0]) | |
438 | + | let cW = bp(cJ, cE) | |
439 | + | let cX = bo(cJ) | |
440 | + | let cY = valueOrElse(getInteger(this, cW), h(this, cX)) | |
441 | + | let cZ = (((cS * cV) * 2) / 3) | |
442 | + | let da = (cZ - cY) | |
443 | + | let db = fraction(da, 3, (2 * cS)) | |
444 | + | let dc = (ck - db) | |
445 | + | let dd = max([(cK - dc), 0]) | |
446 | + | let de = ((ck - dc) - dd) | |
447 | + | if (if (if ((0 > dc)) | |
425 | 448 | then true | |
426 | - | else (0 > | |
449 | + | else (0 > de)) | |
427 | 450 | then true | |
428 | - | else (l((( | |
429 | - | then throw(((((((("invalid udh calc: udh=" + toString( | |
430 | - | else if ((0 > | |
451 | + | else (l(((dd + de) - db)) >= 1)) | |
452 | + | then throw(((((((("invalid udh calc: udh=" + toString(db)) + " uLastH=") + toString(dc)) + " udh0=") + toString(dd)) + " udh1=") + toString(de))) | |
453 | + | else if ((0 > da)) | |
431 | 454 | then throw("wrong calculations") | |
432 | 455 | else { | |
433 | - | let cT = br(cx) | |
434 | - | let cU = bs() | |
435 | - | let cV = h(this, cT) | |
436 | - | let cW = h(this, cU) | |
437 | - | let cX = bv() | |
438 | - | let cY = valueOrElse(getInteger(this, cX), 0) | |
439 | - | let cZ = cq(ct) | |
440 | - | let da = bt(cx) | |
441 | - | let db = h(this, da) | |
442 | - | let dc = if ((cP == 0)) | |
456 | + | let df = br(cJ) | |
457 | + | let dg = bs() | |
458 | + | let dh = h(this, df) | |
459 | + | let di = h(this, dg) | |
460 | + | let dj = bB(true) | |
461 | + | let dk = cC(cF) | |
462 | + | let dl = bt(cJ) | |
463 | + | let dm = h(this, dl) | |
464 | + | let dn = if ((db == 0)) | |
443 | 465 | then 0 | |
444 | - | else fraction( | |
445 | - | let | |
466 | + | else fraction(da, dd, db) | |
467 | + | let do = if ((db == 0)) | |
446 | 468 | then 0 | |
447 | - | else fraction( | |
448 | - | let | |
449 | - | let | |
450 | - | let | |
469 | + | else fraction(da, de, db) | |
470 | + | let dp = fraction(dn, cQ, d) | |
471 | + | let dq = fraction(do, cR, d) | |
472 | + | let dr = if ((dj == 0)) | |
451 | 473 | then 0 | |
452 | - | else fraction( | |
453 | - | let | |
474 | + | else fraction(dp, dk, dj) | |
475 | + | let ds = if ((dj == 0)) | |
454 | 476 | then 0 | |
455 | - | else fraction( | |
456 | - | let | |
457 | - | let | |
458 | - | let | |
459 | - | let | |
460 | - | let | |
461 | - | let | |
462 | - | $Tuple3( | |
477 | + | else fraction(dq, dk, dj) | |
478 | + | let dt = (dr + ds) | |
479 | + | let du = bu(cJ) | |
480 | + | let dv = h(this, du) | |
481 | + | let dw = (dt - dv) | |
482 | + | let dx = [IntegerEntry(cW, cZ)] | |
483 | + | let dy = makeString([toString(cY), toString(da), toString(dv), toString(dw), toString(cQ), toString(cR), toString(ck), toString(db), toString(dc), toString(dd), toString(de), toString(dk), toString(dj)], ":") | |
484 | + | $Tuple3(dt, dx, dy) | |
463 | 485 | } | |
464 | 486 | } | |
465 | 487 | } | |
466 | 488 | ||
467 | 489 | ||
468 | - | func | |
469 | - | let | |
470 | - | let | |
471 | - | let au = fromBase58String( | |
472 | - | let av = parseIntValue( | |
473 | - | let aw = parseIntValue( | |
474 | - | let ax = parseIntValue( | |
490 | + | func dz (aD,aT) = { | |
491 | + | let dA = ar() | |
492 | + | let dB = dA[al] | |
493 | + | let au = fromBase58String(dB) | |
494 | + | let av = parseIntValue(dA[am]) | |
495 | + | let aw = parseIntValue(dA[an]) | |
496 | + | let ax = parseIntValue(dA[ao]) | |
475 | 497 | if ((size(aD.payments) != 1)) | |
476 | 498 | then throw("invalid payment - exact one payment must be attached") | |
477 | 499 | else { | |
478 | - | let | |
479 | - | let | |
480 | - | if ((au != value( | |
481 | - | then throw((("invalid asset is in payment - " + | |
500 | + | let cw = aD.payments[0] | |
501 | + | let dC = cw.amount | |
502 | + | if ((au != value(cw.assetId))) | |
503 | + | then throw((("invalid asset is in payment - " + dB) + " is expected")) | |
482 | 504 | else { | |
483 | - | let | |
484 | - | let | |
485 | - | let | |
486 | - | let | |
487 | - | then value(getString(ba( | |
488 | - | else toString(k(this, | |
489 | - | let aQ = parseIntValue( | |
490 | - | let | |
491 | - | let | |
492 | - | let | |
493 | - | let | |
494 | - | if ((av > | |
505 | + | let dD = aZ() | |
506 | + | let cF = toString(aD.caller) | |
507 | + | let dE = isDefined(getString(ba(cF))) | |
508 | + | let cJ = if (dE) | |
509 | + | then value(getString(ba(cF))) | |
510 | + | else toString(k(this, dD)) | |
511 | + | let aQ = parseIntValue(cJ) | |
512 | + | let bP = height | |
513 | + | let co = bd(cJ) | |
514 | + | let cp = be(cJ) | |
515 | + | let cn = bc(cJ) | |
516 | + | if ((av > dC)) | |
495 | 517 | then throw(("amount is less then minLockAmount=" + toString(av))) | |
496 | 518 | else if ((aw > aT)) | |
497 | 519 | then throw(("passed duration is less then minLockDuration=" + toString(aw))) | |
498 | 520 | else if ((aT > ax)) | |
499 | 521 | then throw(("passed duration is greater then maxLockDuration=" + toString(ax))) | |
500 | - | else if (if ( | |
501 | - | then ((k(this, | |
522 | + | else if (if (dE) | |
523 | + | then ((k(this, co) + k(this, cp)) >= bP) | |
502 | 524 | else false) | |
503 | 525 | then throw("there is an active lock - consider to use increaseLock") | |
504 | - | else if ((h(this, | |
505 | - | then throw(("there are locked WXs - consider to use increaseLock " + | |
526 | + | else if ((h(this, cn) > 0)) | |
527 | + | then throw(("there are locked WXs - consider to use increaseLock " + cn)) | |
506 | 528 | else { | |
507 | - | let | |
508 | - | let | |
509 | - | let | |
510 | - | let | |
511 | - | let | |
512 | - | let bi = toString(q( | |
513 | - | let | |
514 | - | let | |
515 | - | let | |
516 | - | let | |
517 | - | then | |
529 | + | let dF = fraction(aT, c, ax) | |
530 | + | let dG = fraction(dC, dF, c) | |
531 | + | let dH = n(invoke(as, "calcGwxParamsREADONLY", [dG, bP, aT], nil)) | |
532 | + | let bQ = q(dH[0]) | |
533 | + | let bR = q(dH[1]) | |
534 | + | let bi = toString(q(dH[2])) | |
535 | + | let cS = k(by, ae()) | |
536 | + | let cT = k(by, ag()) | |
537 | + | let cU = k(by, ai()) | |
538 | + | let ck = if ((height > cU)) | |
539 | + | then cU | |
518 | 540 | else height | |
519 | - | let cJ = max([(bY - cH), 0]) | |
520 | - | let cL = bo(cx) | |
521 | - | let cN = (((cG * cJ) * 2) / 3) | |
522 | - | let cT = br(cx) | |
523 | - | let cU = bs() | |
524 | - | let cV = ((dv * aT) / 2) | |
525 | - | let cW = h(this, cU) | |
526 | - | let cX = bv() | |
527 | - | let cY = valueOrElse(getInteger(this, cX), 0) | |
528 | - | let dx = if (dt) | |
541 | + | let cV = max([(ck - cT), 0]) | |
542 | + | let cX = bo(cJ) | |
543 | + | let cZ = (((cS * cV) * 2) / 3) | |
544 | + | let df = br(cJ) | |
545 | + | let dg = bs() | |
546 | + | let dh = ((dG * aT) / 2) | |
547 | + | let di = h(this, dg) | |
548 | + | let bJ = bB(false) | |
549 | + | let dI = if (dE) | |
529 | 550 | then nil | |
530 | - | else [IntegerEntry( | |
531 | - | $Tuple2((((( | |
551 | + | else [IntegerEntry(dD, (aQ + 1)), StringEntry(ba(cF), cJ), StringEntry(bb(cJ), cF)] | |
552 | + | $Tuple2(((((dI ++ cm(cF, cJ, dC, bP, aT, bQ, bR, bi)) ++ bU(dC, aT, 1, if (dE) | |
532 | 553 | then 0 | |
533 | - | else 1)) :+ | |
554 | + | else 1)) :+ bM("lock", cF, dC, bP, aT, bQ, bR, aD)) ++ [IntegerEntry(cX, cZ), IntegerEntry(bv(), (bJ + dG))]), dG) | |
534 | 555 | } | |
535 | 556 | } | |
536 | 557 | } | |
538 | 559 | ||
539 | 560 | ||
540 | 561 | @Callable(aD) | |
541 | - | func constructor ( | |
542 | - | let | |
543 | - | if (( | |
544 | - | then ([IntegerEntry(aZ(), 0), StringEntry(aq(), ay( | |
562 | + | func constructor (dJ,dK,av,dL,dM,as) = { | |
563 | + | let dN = aC(aD) | |
564 | + | if ((dN == dN)) | |
565 | + | then ([IntegerEntry(aZ(), 0), StringEntry(aq(), ay(dK, av, dL, dM, as)), StringEntry(x(), dJ)] ++ bU(0, 0, 0, 0)) | |
545 | 566 | else throw("Strict value is not equal to itself.") | |
546 | 567 | } | |
547 | 568 | ||
548 | 569 | ||
549 | 570 | ||
550 | 571 | @Callable(aD) | |
551 | - | func lockRef (aT, | |
552 | - | let | |
553 | - | let | |
554 | - | let | |
555 | - | let | |
556 | - | let | |
572 | + | func lockRef (aT,dO,dP) = { | |
573 | + | let dQ = dz(aD, aT) | |
574 | + | let dR = dQ._1 | |
575 | + | let dG = dQ._2 | |
576 | + | let dS = toString(aD.caller) | |
577 | + | let dT = if (if ((dO == "")) | |
557 | 578 | then true | |
558 | - | else ( | |
579 | + | else (dP == base58'')) | |
559 | 580 | then unit | |
560 | - | else invoke(t, "createPair", [w, | |
561 | - | if (( | |
581 | + | else invoke(t, "createPair", [w, dO, dS, dP], nil) | |
582 | + | if ((dT == dT)) | |
562 | 583 | then { | |
563 | - | let | |
564 | - | if (( | |
565 | - | then $Tuple2( | |
584 | + | let dU = invoke(as, "updateReferralActivity", [toString(aD.caller), dG], nil) | |
585 | + | if ((dU == dU)) | |
586 | + | then $Tuple2(dR, unit) | |
566 | 587 | else throw("Strict value is not equal to itself.") | |
567 | 588 | } | |
568 | 589 | else throw("Strict value is not equal to itself.") | |
572 | 593 | ||
573 | 594 | @Callable(aD) | |
574 | 595 | func lock (aT) = { | |
575 | - | let | |
576 | - | let | |
577 | - | let | |
578 | - | let | |
579 | - | if (( | |
580 | - | then $Tuple2( | |
596 | + | let dV = dz(aD, aT) | |
597 | + | let dR = dV._1 | |
598 | + | let dG = dV._2 | |
599 | + | let dU = invoke(as, "updateReferralActivity", [toString(aD.caller), dG], nil) | |
600 | + | if ((dU == dU)) | |
601 | + | then $Tuple2(dR, unit) | |
581 | 602 | else throw("Strict value is not equal to itself.") | |
582 | 603 | } | |
583 | 604 | ||
584 | 605 | ||
585 | 606 | ||
586 | 607 | @Callable(aD) | |
587 | - | func increaseLock ( | |
588 | - | let | |
589 | - | let | |
590 | - | let au = fromBase58String( | |
591 | - | let aw = parseIntValue( | |
592 | - | let ax = parseIntValue( | |
593 | - | let | |
594 | - | let | |
595 | - | let | |
596 | - | let | |
597 | - | let | |
598 | - | let | |
599 | - | let | |
600 | - | let | |
601 | - | let | |
602 | - | let | |
603 | - | let | |
604 | - | if ((0 > | |
608 | + | func increaseLock (dW) = { | |
609 | + | let dA = ar() | |
610 | + | let dB = dA[al] | |
611 | + | let au = fromBase58String(dB) | |
612 | + | let aw = parseIntValue(dA[an]) | |
613 | + | let ax = parseIntValue(dA[ao]) | |
614 | + | let dC = cu(aD, au) | |
615 | + | let cF = toString(aD.caller) | |
616 | + | let cI = aO(cF) | |
617 | + | let cJ = cI[aG] | |
618 | + | let dX = parseIntValue(cI[aH]) | |
619 | + | let bP = parseIntValue(cI[aI]) | |
620 | + | let dY = parseIntValue(cI[aJ]) | |
621 | + | let dZ = (bP + dY) | |
622 | + | let ea = max([(dZ - height), 0]) | |
623 | + | let eb = (dX + dC) | |
624 | + | let ec = (ea + dW) | |
625 | + | if ((0 > dW)) | |
605 | 626 | then throw("duration is less then zero") | |
606 | - | else if ((aw > | |
627 | + | else if ((aw > ec)) | |
607 | 628 | then throw(("lockDurationNew is less then minLockDuration=" + toString(aw))) | |
608 | - | else if (( | |
629 | + | else if ((ec > ax)) | |
609 | 630 | then throw(("deltaDuration + existedLockDuration is greater then maxLockDuration=" + toString(ax))) | |
610 | 631 | else { | |
611 | - | let | |
612 | - | let | |
613 | - | let | |
614 | - | if (( | |
632 | + | let dF = fraction(ec, c, ax) | |
633 | + | let dG = fraction(eb, dF, c) | |
634 | + | let dU = invoke(as, "updateReferralActivity", [toString(aD.caller), dG], nil) | |
635 | + | if ((dU == dU)) | |
615 | 636 | then { | |
616 | - | let | |
617 | - | let | |
618 | - | let | |
619 | - | let | |
620 | - | let bi = toString(q( | |
621 | - | let | |
622 | - | let | |
623 | - | let | |
624 | - | let | |
625 | - | then | |
637 | + | let ed = height | |
638 | + | let dH = n(invoke(as, "calcGwxParamsREADONLY", [dG, ed, ec], nil)) | |
639 | + | let bQ = q(dH[0]) | |
640 | + | let bR = q(dH[1]) | |
641 | + | let bi = toString(q(dH[2])) | |
642 | + | let cS = k(by, ae()) | |
643 | + | let cT = k(by, ag()) | |
644 | + | let cU = k(by, ai()) | |
645 | + | let ck = if ((height > cU)) | |
646 | + | then cU | |
626 | 647 | else height | |
627 | - | let | |
628 | - | let | |
629 | - | let | |
630 | - | let | |
631 | - | let | |
632 | - | if ((0 > | |
648 | + | let cV = max([(ck - cT), 0]) | |
649 | + | let cX = bo(cJ) | |
650 | + | let cY = h(this, cX) | |
651 | + | let cZ = (((cS * cV) * 2) / 3) | |
652 | + | let da = (cZ - cY) | |
653 | + | if ((0 > da)) | |
633 | 654 | then throw("wrong calculations") | |
634 | 655 | else { | |
635 | - | let | |
636 | - | let | |
637 | - | let | |
638 | - | let | |
639 | - | let | |
640 | - | let | |
641 | - | if ((0 > | |
642 | - | then throw(("gwxDiff is less then 0: " + toString( | |
656 | + | let df = br(cJ) | |
657 | + | let dg = bs() | |
658 | + | let dh = h(this, df) | |
659 | + | let di = h(this, dg) | |
660 | + | let ee = cC(cF) | |
661 | + | let ef = (dG - ee) | |
662 | + | if ((0 > ef)) | |
663 | + | then throw(("gwxDiff is less then 0: " + toString(ef))) | |
643 | 664 | else { | |
644 | - | let | |
645 | - | let | |
646 | - | let | |
647 | - | let | |
648 | - | let | |
649 | - | let | |
650 | - | let | |
651 | - | let | |
652 | - | ((( | |
665 | + | let bJ = bB(false) | |
666 | + | let dj = bB(true) | |
667 | + | let dl = bt(cJ) | |
668 | + | let dm = h(this, dl) | |
669 | + | let dt = fraction(da, ee, dj) | |
670 | + | let eg = ((dG * ec) / 2) | |
671 | + | let eh = ((ee * ea) / 2) | |
672 | + | let ei = (eg - eh) | |
673 | + | (((cm(cF, cJ, eb, ed, ec, bQ, bR, bi) ++ bU(dC, dW, 0, 0)) :+ bM("lock", cF, dC, bP, ec, bQ, bR, aD)) ++ [IntegerEntry(bv(), (bJ + ef))]) | |
653 | 674 | } | |
654 | 675 | } | |
655 | 676 | } | |
660 | 681 | ||
661 | 682 | ||
662 | 683 | @Callable(aD) | |
663 | - | func claimWxBoost ( | |
684 | + | func claimWxBoost (cE,cF) = if ((bz != aD.caller)) | |
664 | 685 | then throw("permissions denied") | |
665 | 686 | else { | |
666 | - | let | |
667 | - | let | |
668 | - | let | |
669 | - | let | |
670 | - | $Tuple2( | |
687 | + | let ej = cD(cE, cF, false) | |
688 | + | let dw = ej._1 | |
689 | + | let dx = ej._2 | |
690 | + | let dy = ej._3 | |
691 | + | $Tuple2(dx, [dw]) | |
671 | 692 | } | |
672 | 693 | ||
673 | 694 | ||
674 | 695 | ||
675 | 696 | @Callable(aD) | |
676 | - | func claimWxBoostREADONLY ( | |
677 | - | let | |
678 | - | let | |
679 | - | let | |
680 | - | let | |
681 | - | $Tuple2(nil, [ | |
697 | + | func claimWxBoostREADONLY (cE,cF) = { | |
698 | + | let ek = cD(cE, cF, true) | |
699 | + | let dw = ek._1 | |
700 | + | let dx = ek._2 | |
701 | + | let dy = ek._3 | |
702 | + | $Tuple2(nil, [dw, dy]) | |
682 | 703 | } | |
683 | 704 | ||
684 | 705 | ||
685 | 706 | ||
686 | 707 | @Callable(aD) | |
687 | 708 | func unlock (aN) = { | |
688 | - | let | |
689 | - | let | |
690 | - | let | |
691 | - | let | |
692 | - | let | |
693 | - | let | |
694 | - | let | |
695 | - | let au = fromBase58String( | |
696 | - | if (( | |
697 | - | then throw((("wait " + toString( | |
698 | - | else if ((0 >= | |
709 | + | let cI = aO(aN) | |
710 | + | let cJ = cI[aG] | |
711 | + | let dX = parseIntValue(cI[aH]) | |
712 | + | let bP = parseIntValue(cI[aI]) | |
713 | + | let dY = parseIntValue(cI[aJ]) | |
714 | + | let dZ = (bP + dY) | |
715 | + | let dA = ar() | |
716 | + | let au = fromBase58String(dA[al]) | |
717 | + | if ((dZ >= height)) | |
718 | + | then throw((("wait " + toString(dZ)) + " to unlock")) | |
719 | + | else if ((0 >= dX)) | |
699 | 720 | then throw("nothing to unlock") | |
700 | 721 | else { | |
701 | 722 | let bi = valueOrElse(getInteger(as, aj()), 0) | |
702 | - | ((( | |
723 | + | (((cm(aN, cJ, 0, bP, dY, 0, 0, toString(bi)) ++ bU(-(dX), 0, 0, -1)) :+ bM("unlock", aN, dX, bP, dY, 0, 0, aD)) :+ ScriptTransfer(addressFromStringValue(aN), dX, au)) | |
703 | 724 | } | |
704 | 725 | } | |
705 | 726 | ||
707 | 728 | ||
708 | 729 | @Callable(aD) | |
709 | 730 | func gwxUserInfoREADONLY (aN) = { | |
710 | - | let aX = | |
731 | + | let aX = cC(aN) | |
711 | 732 | $Tuple2(nil, [aX]) | |
712 | 733 | } | |
713 | 734 | ||
714 | 735 | ||
715 | 736 | ||
716 | 737 | @Callable(aD) | |
717 | - | func getUserGwxAmountAtHeightREADONLY (aN, | |
718 | - | let aX = | |
738 | + | func getUserGwxAmountAtHeightREADONLY (aN,cy) = { | |
739 | + | let aX = cx(aN, cy) | |
719 | 740 | $Tuple2(nil, aX) | |
720 | 741 | } | |
721 | 742 | ||
722 | 743 | ||
723 | 744 | ||
724 | 745 | @Callable(aD) | |
725 | - | func setManager (ea) = { | |
726 | - | let dC = aC(aD) | |
727 | - | if ((dC == dC)) | |
746 | + | func getTotalCachedGwxREADONLY () = $Tuple2(nil, bB(true)) | |
747 | + | ||
748 | + | ||
749 | + | ||
750 | + | @Callable(aD) | |
751 | + | func setManager (el) = { | |
752 | + | let dN = aC(aD) | |
753 | + | if ((dN == dN)) | |
728 | 754 | then { | |
729 | - | let | |
730 | - | if (( | |
731 | - | then [StringEntry(ad(), | |
755 | + | let em = fromBase58String(el) | |
756 | + | if ((em == em)) | |
757 | + | then [StringEntry(ad(), el)] | |
732 | 758 | else throw("Strict value is not equal to itself.") | |
733 | 759 | } | |
734 | 760 | else throw("Strict value is not equal to itself.") | |
738 | 764 | ||
739 | 765 | @Callable(aD) | |
740 | 766 | func confirmManager () = { | |
741 | - | let | |
742 | - | let | |
767 | + | let en = aB() | |
768 | + | let eo = if (isDefined(en)) | |
743 | 769 | then true | |
744 | 770 | else throw("No pending manager") | |
745 | - | if (( | |
771 | + | if ((eo == eo)) | |
746 | 772 | then { | |
747 | - | let | |
773 | + | let ep = if ((aD.callerPublicKey == value(en))) | |
748 | 774 | then true | |
749 | 775 | else throw("You are not pending manager") | |
750 | - | if (( | |
751 | - | then [StringEntry(ac(), toBase58String(value( | |
776 | + | if ((ep == ep)) | |
777 | + | then [StringEntry(ac(), toBase58String(value(en))), DeleteEntry(ad())] | |
752 | 778 | else throw("Strict value is not equal to itself.") | |
753 | 779 | } | |
754 | 780 | else throw("Strict value is not equal to itself.") | |
755 | 781 | } | |
756 | 782 | ||
757 | 783 | ||
758 | - | @Verifier( | |
759 | - | func | |
760 | - | let | |
784 | + | @Verifier(eq) | |
785 | + | func er () = { | |
786 | + | let es = { | |
761 | 787 | let o = az() | |
762 | 788 | if ($isInstanceOf(o, "ByteVector")) | |
763 | 789 | then { | |
765 | 791 | aF | |
766 | 792 | } | |
767 | 793 | else if ($isInstanceOf(o, "Unit")) | |
768 | - | then | |
794 | + | then eq.senderPublicKey | |
769 | 795 | else throw("Match error") | |
770 | 796 | } | |
771 | - | sigVerify( | |
797 | + | sigVerify(eq.bodyBytes, eq.proofs[0], es) | |
772 | 798 | } | |
773 | 799 |
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 = 8 | |
7 | 7 | ||
8 | 8 | let c = 100000000 | |
9 | 9 | ||
10 | 10 | let d = c | |
11 | 11 | ||
12 | 12 | func e (f,g) = valueOrErrorMessage(getString(f, g), (("mandatory this." + g) + " is not defined")) | |
13 | 13 | ||
14 | 14 | ||
15 | 15 | func h (f,g) = valueOrElse(getInteger(f, g), 0) | |
16 | 16 | ||
17 | 17 | ||
18 | 18 | func i (f,g,j) = valueOrElse(getInteger(f, g), j) | |
19 | 19 | ||
20 | 20 | ||
21 | 21 | func k (f,g) = valueOrErrorMessage(getInteger(f, g), (("mandatory this." + g) + " is not defined")) | |
22 | 22 | ||
23 | 23 | ||
24 | 24 | func l (m) = if ((0 > m)) | |
25 | 25 | then -(m) | |
26 | 26 | else m | |
27 | 27 | ||
28 | 28 | ||
29 | 29 | func n (m) = { | |
30 | 30 | let o = m | |
31 | 31 | if ($isInstanceOf(o, "List[Any]")) | |
32 | 32 | then { | |
33 | 33 | let p = o | |
34 | 34 | p | |
35 | 35 | } | |
36 | 36 | else throw("fail to cast into List[Any]") | |
37 | 37 | } | |
38 | 38 | ||
39 | 39 | ||
40 | 40 | func q (m) = { | |
41 | 41 | let o = m | |
42 | 42 | if ($isInstanceOf(o, "Int")) | |
43 | 43 | then { | |
44 | 44 | let r = o | |
45 | 45 | r | |
46 | 46 | } | |
47 | 47 | else throw("fail to cast into Int") | |
48 | 48 | } | |
49 | 49 | ||
50 | 50 | ||
51 | 51 | func s () = makeString(["%s%s", "config", "referralsContractAddress"], a) | |
52 | 52 | ||
53 | 53 | ||
54 | 54 | let t = addressFromStringValue(e(this, s())) | |
55 | 55 | ||
56 | 56 | let u = makeString(["%s%s", "referral", "programName"], a) | |
57 | 57 | ||
58 | 58 | let v = "wxlock" | |
59 | 59 | ||
60 | 60 | let w = valueOrElse(getString(this, u), v) | |
61 | 61 | ||
62 | 62 | func x () = "%s%s__config__factoryAddress" | |
63 | 63 | ||
64 | 64 | ||
65 | 65 | let y = 1 | |
66 | 66 | ||
67 | 67 | let z = 2 | |
68 | 68 | ||
69 | 69 | let A = 3 | |
70 | 70 | ||
71 | 71 | let B = 4 | |
72 | 72 | ||
73 | 73 | let C = 5 | |
74 | 74 | ||
75 | 75 | let D = 6 | |
76 | 76 | ||
77 | 77 | let E = 7 | |
78 | 78 | ||
79 | 79 | let F = 8 | |
80 | 80 | ||
81 | 81 | let G = 9 | |
82 | 82 | ||
83 | 83 | let H = 10 | |
84 | 84 | ||
85 | 85 | let I = 11 | |
86 | 86 | ||
87 | 87 | func J () = "%s__factoryConfig" | |
88 | 88 | ||
89 | 89 | ||
90 | 90 | func K (L) = makeString(["%s%s%s", L, "mappings__lpAsset2PoolContract"], a) | |
91 | 91 | ||
92 | 92 | ||
93 | 93 | func M () = "%s__lpTokensList" | |
94 | 94 | ||
95 | 95 | ||
96 | 96 | func N (L) = makeString(["%s%s%s", L, "mappings__lpAsset2PoolContract"], a) | |
97 | 97 | ||
98 | 98 | ||
99 | 99 | func O (P) = makeString(["%s%s", "poolWeight", P], a) | |
100 | 100 | ||
101 | 101 | ||
102 | 102 | func Q (R,S) = ((("%s%s__poolWeight__" + R) + "__") + toString(S)) | |
103 | 103 | ||
104 | 104 | ||
105 | 105 | func T () = addressFromStringValue(e(this, x())) | |
106 | 106 | ||
107 | 107 | ||
108 | 108 | func U () = split(valueOrElse(getString(T(), M()), ""), a) | |
109 | 109 | ||
110 | 110 | ||
111 | 111 | func V (W) = split(e(W, J()), a) | |
112 | 112 | ||
113 | 113 | ||
114 | 114 | func X (Y) = addressFromStringValue(Y[z]) | |
115 | 115 | ||
116 | 116 | ||
117 | 117 | func Z (Y) = addressFromStringValue(Y[C]) | |
118 | 118 | ||
119 | 119 | ||
120 | 120 | func aa (Y) = addressFromStringValue(Y[y]) | |
121 | 121 | ||
122 | 122 | ||
123 | 123 | func ab (Y) = addressFromStringValue(Y[H]) | |
124 | 124 | ||
125 | 125 | ||
126 | 126 | func ac () = "%s__managerPublicKey" | |
127 | 127 | ||
128 | 128 | ||
129 | 129 | func ad () = "%s__pendingManagerPublicKey" | |
130 | 130 | ||
131 | 131 | ||
132 | 132 | func ae () = "%s%s__ratePerBlock__current" | |
133 | 133 | ||
134 | 134 | ||
135 | 135 | func af () = "%s%s__ratePerBlockMax__current" | |
136 | 136 | ||
137 | 137 | ||
138 | 138 | func ag () = "%s%s__emission__startBlock" | |
139 | 139 | ||
140 | 140 | ||
141 | 141 | func ah () = "%s%s__emission__duration" | |
142 | 142 | ||
143 | 143 | ||
144 | 144 | func ai () = "%s%s__emission__endBlock" | |
145 | 145 | ||
146 | 146 | ||
147 | 147 | func aj () = "%s__nextPeriod" | |
148 | 148 | ||
149 | 149 | ||
150 | 150 | func ak () = "%s%s__gwxRewardEmissionPart__startHeight" | |
151 | 151 | ||
152 | 152 | ||
153 | 153 | let al = 1 | |
154 | 154 | ||
155 | 155 | let am = 2 | |
156 | 156 | ||
157 | 157 | let an = 3 | |
158 | 158 | ||
159 | 159 | let ao = 4 | |
160 | 160 | ||
161 | 161 | let ap = 5 | |
162 | 162 | ||
163 | 163 | func aq () = "%s__config" | |
164 | 164 | ||
165 | 165 | ||
166 | 166 | func ar () = split(e(this, aq()), a) | |
167 | 167 | ||
168 | 168 | ||
169 | 169 | let as = addressFromStringValue(ar()[ap]) | |
170 | 170 | ||
171 | 171 | func at (au,av,aw,ax,as) = makeString(["%s%d%d%d", au, av, aw, ax, as], a) | |
172 | 172 | ||
173 | 173 | ||
174 | 174 | func ay (au,av,aw,ax,as) = at(au, toString(av), toString(aw), toString(ax), as) | |
175 | 175 | ||
176 | 176 | ||
177 | 177 | func az () = { | |
178 | 178 | let o = getString(ac()) | |
179 | 179 | if ($isInstanceOf(o, "String")) | |
180 | 180 | then { | |
181 | 181 | let aA = o | |
182 | 182 | fromBase58String(aA) | |
183 | 183 | } | |
184 | 184 | else if ($isInstanceOf(o, "Unit")) | |
185 | 185 | then unit | |
186 | 186 | else throw("Match error") | |
187 | 187 | } | |
188 | 188 | ||
189 | 189 | ||
190 | 190 | func aB () = { | |
191 | 191 | let o = getString(ad()) | |
192 | 192 | if ($isInstanceOf(o, "String")) | |
193 | 193 | then { | |
194 | 194 | let aA = o | |
195 | 195 | fromBase58String(aA) | |
196 | 196 | } | |
197 | 197 | else if ($isInstanceOf(o, "Unit")) | |
198 | 198 | then unit | |
199 | 199 | else throw("Match error") | |
200 | 200 | } | |
201 | 201 | ||
202 | 202 | ||
203 | 203 | func aC (aD) = { | |
204 | 204 | let aE = throw("Permission denied") | |
205 | 205 | let o = az() | |
206 | 206 | if ($isInstanceOf(o, "ByteVector")) | |
207 | 207 | then { | |
208 | 208 | let aF = o | |
209 | 209 | if ((aD.callerPublicKey == aF)) | |
210 | 210 | then true | |
211 | 211 | else aE | |
212 | 212 | } | |
213 | 213 | else if ($isInstanceOf(o, "Unit")) | |
214 | 214 | then if ((aD.caller == this)) | |
215 | 215 | then true | |
216 | 216 | else aE | |
217 | 217 | else throw("Match error") | |
218 | 218 | } | |
219 | 219 | ||
220 | 220 | ||
221 | 221 | let aG = 1 | |
222 | 222 | ||
223 | 223 | let aH = 2 | |
224 | 224 | ||
225 | 225 | let aI = 3 | |
226 | 226 | ||
227 | 227 | let aJ = 4 | |
228 | 228 | ||
229 | 229 | let aK = 5 | |
230 | 230 | ||
231 | 231 | let aL = 6 | |
232 | 232 | ||
233 | 233 | func aM (aN) = makeString(["%s%s__lock", aN], a) | |
234 | 234 | ||
235 | 235 | ||
236 | 236 | func aO (aN) = split(e(this, aM(aN)), a) | |
237 | 237 | ||
238 | 238 | ||
239 | 239 | func aP (aQ,aR,aS,aT,aU,aV,aW,aX) = makeString(["%d%d%d%d%d%d%d%d", aQ, aR, aS, aT, aU, aV, aW, aX], a) | |
240 | 240 | ||
241 | 241 | ||
242 | 242 | func aY (aQ,aR,aS,aT,aU,aV,aX) = aP(aQ, toString(aR), toString(aS), toString(aT), toString(aU), toString(aV), toString(lastBlock.timestamp), toString(aX)) | |
243 | 243 | ||
244 | 244 | ||
245 | 245 | func aZ () = "%s__nextUserNum" | |
246 | 246 | ||
247 | 247 | ||
248 | 248 | func ba (aN) = makeString(["%s%s%s__mapping__user2num", aN], a) | |
249 | 249 | ||
250 | 250 | ||
251 | 251 | func bb (S) = makeString(["%s%s%s__mapping__num2user", S], a) | |
252 | 252 | ||
253 | 253 | ||
254 | 254 | func bc (aQ) = makeString(["%s%d%s__paramByUserNum", aQ, "amount"], a) | |
255 | 255 | ||
256 | 256 | ||
257 | 257 | func bd (aQ) = makeString(["%s%d%s__paramByUserNum", aQ, "start"], a) | |
258 | 258 | ||
259 | 259 | ||
260 | 260 | func be (aQ) = makeString(["%s%d%s__paramByUserNum", aQ, "duration"], a) | |
261 | 261 | ||
262 | 262 | ||
263 | 263 | func bf (aQ) = makeString(["%s%d%s__paramByUserNum", aQ, "k"], a) | |
264 | 264 | ||
265 | 265 | ||
266 | 266 | func bg (aQ) = makeString(["%s%d%s__paramByUserNum", aQ, "b"], a) | |
267 | 267 | ||
268 | 268 | ||
269 | 269 | func bh (aQ,bi) = makeString(["%s%d%s%d__paramByPeriod", aQ, "k", bi], a) | |
270 | 270 | ||
271 | 271 | ||
272 | 272 | func bj (aQ,bi) = makeString(["%s%d%s%d__paramByPeriod", aQ, "b", bi], a) | |
273 | 273 | ||
274 | 274 | ||
275 | 275 | func bk () = "%s%s__stats__activeTotalLocked" | |
276 | 276 | ||
277 | 277 | ||
278 | 278 | func bl () = "%s%s__stats__locksDurationSumInBlocks" | |
279 | 279 | ||
280 | 280 | ||
281 | 281 | func bm () = "%s%s__stats__locksCount" | |
282 | 282 | ||
283 | 283 | ||
284 | 284 | func bn () = "%s%s__stats__activeUsersCount" | |
285 | 285 | ||
286 | 286 | ||
287 | 287 | func bo (aQ) = makeString(["%s%d__userBoostEmissionLastInt", aQ], a) | |
288 | 288 | ||
289 | 289 | ||
290 | 290 | func bp (aQ,bq) = makeString(["%s%d__userBoostEmissionLastInt", aQ, bq], a) | |
291 | 291 | ||
292 | 292 | ||
293 | 293 | func br (aQ) = makeString(["%s%d__maxBoostInt", aQ], a) | |
294 | 294 | ||
295 | 295 | ||
296 | 296 | func bs () = "%s%s__maxBoostInt__total" | |
297 | 297 | ||
298 | 298 | ||
299 | 299 | func bt (aQ) = makeString(["%s%d__userBoostAvaliableToClaimTotal", aQ], a) | |
300 | 300 | ||
301 | 301 | ||
302 | 302 | func bu (aQ) = makeString(["%s%d__userBoostClaimed", aQ], a) | |
303 | 303 | ||
304 | 304 | ||
305 | 305 | func bv () = "%s%s__gwxCached__total" | |
306 | 306 | ||
307 | 307 | ||
308 | - | ||
308 | + | func bw () = "%s__gwxCachedTotalCorrective" | |
309 | 309 | ||
310 | - | let Y = V(bw) | |
311 | 310 | ||
312 | - | let bx = | |
311 | + | let bx = T() | |
313 | 312 | ||
314 | - | let | |
313 | + | let Y = V(bx) | |
315 | 314 | ||
316 | - | let | |
315 | + | let by = Z(Y) | |
317 | 316 | ||
318 | - | func bA (bB,bC,aR,bD,aT,bE,bF,aD) = { | |
319 | - | let bG = makeString(["%s%s%s%s__history", bB, bC, toBase58String(aD.transactionId)], a) | |
320 | - | let bH = makeString(["%d%d%d%d%d%d%d", toString(lastBlock.height), toString(lastBlock.timestamp), toString(aR), toString(bD), toString(aT), toString(bE), toString(bF)], a) | |
321 | - | StringEntry(bG, bH) | |
317 | + | let bz = aa(Y) | |
318 | + | ||
319 | + | let bA = ab(Y) | |
320 | + | ||
321 | + | func bB (bC) = { | |
322 | + | let bD = makeString(["%s", "votingEmissionContract"], a) | |
323 | + | let bE = addressFromStringValue(getStringValue(bx, bD)) | |
324 | + | let bF = makeString(["%s", "currentEpochUi"], a) | |
325 | + | let bG = getIntegerValue(bE, bF) | |
326 | + | let bH = makeString(["%s%s", "totalCachedGwxCorrection__activationEpoch"], a) | |
327 | + | let bI = getInteger(this, bH) | |
328 | + | let bJ = valueOrElse(getInteger(this, bv()), 0) | |
329 | + | let bK = if (isDefined(bI)) | |
330 | + | then (bG >= value(bI)) | |
331 | + | else false | |
332 | + | let bL = if (if (bK) | |
333 | + | then bC | |
334 | + | else false) | |
335 | + | then valueOrElse(getInteger(this, bw()), 0) | |
336 | + | else 0 | |
337 | + | max([0, (bJ + bL)]) | |
322 | 338 | } | |
323 | 339 | ||
324 | 340 | ||
325 | - | func bI (bJ,bK,bL,bM) = { | |
326 | - | let bN = bl() | |
327 | - | let bO = bm() | |
328 | - | let bP = bn() | |
329 | - | let bQ = bk() | |
330 | - | let bR = h(this, bN) | |
331 | - | let bS = h(this, bO) | |
332 | - | let bT = h(this, bP) | |
333 | - | let bU = h(this, bQ) | |
334 | - | [IntegerEntry(bN, (bR + bK)), IntegerEntry(bO, (bS + bL)), IntegerEntry(bP, (bT + bM)), IntegerEntry(bQ, (bU + bJ))] | |
341 | + | func bM (bN,bO,aR,bP,aT,bQ,bR,aD) = { | |
342 | + | let bS = makeString(["%s%s%s%s__history", bN, bO, toBase58String(aD.transactionId)], a) | |
343 | + | let bT = makeString(["%d%d%d%d%d%d%d", toString(lastBlock.height), toString(lastBlock.timestamp), toString(aR), toString(bP), toString(aT), toString(bQ), toString(bR)], a) | |
344 | + | StringEntry(bS, bT) | |
335 | 345 | } | |
336 | 346 | ||
337 | 347 | ||
338 | - | func bV (bW,bX,bY) = { | |
339 | - | let bZ = 1000 | |
340 | - | (((bW * bY) + bX) / bZ) | |
348 | + | func bU (bV,bW,bX,bY) = { | |
349 | + | let bZ = bl() | |
350 | + | let ca = bm() | |
351 | + | let cb = bn() | |
352 | + | let cc = bk() | |
353 | + | let cd = h(this, bZ) | |
354 | + | let ce = h(this, ca) | |
355 | + | let cf = h(this, cb) | |
356 | + | let cg = h(this, cc) | |
357 | + | [IntegerEntry(bZ, (cd + bW)), IntegerEntry(ca, (ce + bX)), IntegerEntry(cb, (cf + bY)), IntegerEntry(cc, (cg + bV))] | |
341 | 358 | } | |
342 | 359 | ||
343 | 360 | ||
344 | - | func ca (aN,aQ,aR,aS,aT,bE,bF,bi) = { | |
345 | - | let cb = bc(aQ) | |
346 | - | let cc = bd(aQ) | |
347 | - | let cd = be(aQ) | |
348 | - | let ce = bf(aQ) | |
349 | - | let cf = bg(aQ) | |
350 | - | let cg = bh(aQ, bi) | |
351 | - | let ch = bj(aQ, bi) | |
352 | - | let aX = bV(bE, bF, height) | |
353 | - | [IntegerEntry(cb, aR), IntegerEntry(cc, aS), IntegerEntry(cd, aT), IntegerEntry(ce, bE), IntegerEntry(cf, bF), IntegerEntry(cg, bE), IntegerEntry(ch, bF), StringEntry(aM(aN), aY(aQ, aR, aS, aT, bE, bF, aX))] | |
361 | + | func ch (ci,cj,ck) = { | |
362 | + | let cl = 1000 | |
363 | + | (((ci * ck) + cj) / cl) | |
354 | 364 | } | |
355 | 365 | ||
356 | 366 | ||
357 | - | func ci (aD,cj) = if ((size(aD.payments) > 1)) | |
367 | + | func cm (aN,aQ,aR,aS,aT,bQ,bR,bi) = { | |
368 | + | let cn = bc(aQ) | |
369 | + | let co = bd(aQ) | |
370 | + | let cp = be(aQ) | |
371 | + | let cq = bf(aQ) | |
372 | + | let cr = bg(aQ) | |
373 | + | let cs = bh(aQ, bi) | |
374 | + | let ct = bj(aQ, bi) | |
375 | + | let aX = ch(bQ, bR, height) | |
376 | + | [IntegerEntry(cn, aR), IntegerEntry(co, aS), IntegerEntry(cp, aT), IntegerEntry(cq, bQ), IntegerEntry(cr, bR), IntegerEntry(cs, bQ), IntegerEntry(ct, bR), StringEntry(aM(aN), aY(aQ, aR, aS, aT, bQ, bR, aX))] | |
377 | + | } | |
378 | + | ||
379 | + | ||
380 | + | func cu (aD,cv) = if ((size(aD.payments) > 1)) | |
358 | 381 | then throw("only one payment is allowed") | |
359 | 382 | else if ((size(aD.payments) == 0)) | |
360 | 383 | then 0 | |
361 | 384 | else { | |
362 | - | let | |
363 | - | if ((value( | |
385 | + | let cw = aD.payments[0] | |
386 | + | if ((value(cw.assetId) != cv)) | |
364 | 387 | then throw("invalid asset id in payment") | |
365 | - | else | |
388 | + | else cw.amount | |
366 | 389 | } | |
367 | 390 | ||
368 | 391 | ||
369 | - | func | |
370 | - | let | |
371 | - | let | |
372 | - | let aQ = valueOrElse(getString( | |
373 | - | let | |
374 | - | let | |
375 | - | let | |
376 | - | let aX = if ((0 > | |
392 | + | func cx (aN,cy) = { | |
393 | + | let cz = "empty" | |
394 | + | let cA = ba(aN) | |
395 | + | let aQ = valueOrElse(getString(cA), cz) | |
396 | + | let bQ = valueOrElse(getInteger(bf(aQ)), 0) | |
397 | + | let bR = valueOrElse(getInteger(bg(aQ)), 0) | |
398 | + | let cB = ch(bQ, bR, cy) | |
399 | + | let aX = if ((0 > cB)) | |
377 | 400 | then 0 | |
378 | - | else | |
401 | + | else cB | |
379 | 402 | aX | |
380 | 403 | } | |
381 | 404 | ||
382 | 405 | ||
383 | - | func | |
406 | + | func cC (aN) = cx(aN, height) | |
384 | 407 | ||
385 | 408 | ||
386 | - | func | |
387 | - | let | |
388 | - | let | |
389 | - | if (( | |
409 | + | func cD (cE,cF,cG) = { | |
410 | + | let cz = "EMPTY" | |
411 | + | let cH = valueOrElse(getString(this, aM(cF)), cz) | |
412 | + | if ((cH == cz)) | |
390 | 413 | then $Tuple3(0, nil, "userRecord::is::empty") | |
391 | 414 | else { | |
392 | - | let | |
393 | - | let | |
394 | - | let | |
395 | - | let | |
396 | - | let | |
415 | + | let cI = split(cH, a) | |
416 | + | let cJ = cI[aG] | |
417 | + | let cK = valueOrElse(getInteger(bA, ak()), 0) | |
418 | + | let cL = "empty" | |
419 | + | let cM = if ((cE != cL)) | |
397 | 420 | then { | |
398 | - | let | |
399 | - | let | |
400 | - | let | |
401 | - | $Tuple2( | |
421 | + | let cN = valueOrErrorMessage(getString(bx, K(cE)), ("unsupported lp asset " + cE)) | |
422 | + | let cO = getIntegerValue(bx, O(cN)) | |
423 | + | let cP = valueOrElse(getInteger(bx, Q(cN, 0)), cO) | |
424 | + | $Tuple2(cP, cO) | |
402 | 425 | } | |
403 | - | else if ( | |
426 | + | else if (cG) | |
404 | 427 | then $Tuple2(0, 0) | |
405 | - | else throw(("not readonly mode: unsupported lp asset " + | |
406 | - | let | |
407 | - | let | |
408 | - | let | |
409 | - | let | |
410 | - | let | |
411 | - | let | |
412 | - | then | |
428 | + | else throw(("not readonly mode: unsupported lp asset " + cE)) | |
429 | + | let cQ = cM._1 | |
430 | + | let cR = cM._2 | |
431 | + | let cS = k(by, ae()) | |
432 | + | let cT = k(by, ag()) | |
433 | + | let cU = k(by, ai()) | |
434 | + | let ck = if ((height > cU)) | |
435 | + | then cU | |
413 | 436 | else height | |
414 | - | let | |
415 | - | let | |
416 | - | let | |
417 | - | let | |
418 | - | let | |
419 | - | let | |
420 | - | let | |
421 | - | let | |
422 | - | let | |
423 | - | let | |
424 | - | if (if (if ((0 > | |
437 | + | let cV = max([(ck - cT), 0]) | |
438 | + | let cW = bp(cJ, cE) | |
439 | + | let cX = bo(cJ) | |
440 | + | let cY = valueOrElse(getInteger(this, cW), h(this, cX)) | |
441 | + | let cZ = (((cS * cV) * 2) / 3) | |
442 | + | let da = (cZ - cY) | |
443 | + | let db = fraction(da, 3, (2 * cS)) | |
444 | + | let dc = (ck - db) | |
445 | + | let dd = max([(cK - dc), 0]) | |
446 | + | let de = ((ck - dc) - dd) | |
447 | + | if (if (if ((0 > dc)) | |
425 | 448 | then true | |
426 | - | else (0 > | |
449 | + | else (0 > de)) | |
427 | 450 | then true | |
428 | - | else (l((( | |
429 | - | then throw(((((((("invalid udh calc: udh=" + toString( | |
430 | - | else if ((0 > | |
451 | + | else (l(((dd + de) - db)) >= 1)) | |
452 | + | then throw(((((((("invalid udh calc: udh=" + toString(db)) + " uLastH=") + toString(dc)) + " udh0=") + toString(dd)) + " udh1=") + toString(de))) | |
453 | + | else if ((0 > da)) | |
431 | 454 | then throw("wrong calculations") | |
432 | 455 | else { | |
433 | - | let cT = br(cx) | |
434 | - | let cU = bs() | |
435 | - | let cV = h(this, cT) | |
436 | - | let cW = h(this, cU) | |
437 | - | let cX = bv() | |
438 | - | let cY = valueOrElse(getInteger(this, cX), 0) | |
439 | - | let cZ = cq(ct) | |
440 | - | let da = bt(cx) | |
441 | - | let db = h(this, da) | |
442 | - | let dc = if ((cP == 0)) | |
456 | + | let df = br(cJ) | |
457 | + | let dg = bs() | |
458 | + | let dh = h(this, df) | |
459 | + | let di = h(this, dg) | |
460 | + | let dj = bB(true) | |
461 | + | let dk = cC(cF) | |
462 | + | let dl = bt(cJ) | |
463 | + | let dm = h(this, dl) | |
464 | + | let dn = if ((db == 0)) | |
443 | 465 | then 0 | |
444 | - | else fraction( | |
445 | - | let | |
466 | + | else fraction(da, dd, db) | |
467 | + | let do = if ((db == 0)) | |
446 | 468 | then 0 | |
447 | - | else fraction( | |
448 | - | let | |
449 | - | let | |
450 | - | let | |
469 | + | else fraction(da, de, db) | |
470 | + | let dp = fraction(dn, cQ, d) | |
471 | + | let dq = fraction(do, cR, d) | |
472 | + | let dr = if ((dj == 0)) | |
451 | 473 | then 0 | |
452 | - | else fraction( | |
453 | - | let | |
474 | + | else fraction(dp, dk, dj) | |
475 | + | let ds = if ((dj == 0)) | |
454 | 476 | then 0 | |
455 | - | else fraction( | |
456 | - | let | |
457 | - | let | |
458 | - | let | |
459 | - | let | |
460 | - | let | |
461 | - | let | |
462 | - | $Tuple3( | |
477 | + | else fraction(dq, dk, dj) | |
478 | + | let dt = (dr + ds) | |
479 | + | let du = bu(cJ) | |
480 | + | let dv = h(this, du) | |
481 | + | let dw = (dt - dv) | |
482 | + | let dx = [IntegerEntry(cW, cZ)] | |
483 | + | let dy = makeString([toString(cY), toString(da), toString(dv), toString(dw), toString(cQ), toString(cR), toString(ck), toString(db), toString(dc), toString(dd), toString(de), toString(dk), toString(dj)], ":") | |
484 | + | $Tuple3(dt, dx, dy) | |
463 | 485 | } | |
464 | 486 | } | |
465 | 487 | } | |
466 | 488 | ||
467 | 489 | ||
468 | - | func | |
469 | - | let | |
470 | - | let | |
471 | - | let au = fromBase58String( | |
472 | - | let av = parseIntValue( | |
473 | - | let aw = parseIntValue( | |
474 | - | let ax = parseIntValue( | |
490 | + | func dz (aD,aT) = { | |
491 | + | let dA = ar() | |
492 | + | let dB = dA[al] | |
493 | + | let au = fromBase58String(dB) | |
494 | + | let av = parseIntValue(dA[am]) | |
495 | + | let aw = parseIntValue(dA[an]) | |
496 | + | let ax = parseIntValue(dA[ao]) | |
475 | 497 | if ((size(aD.payments) != 1)) | |
476 | 498 | then throw("invalid payment - exact one payment must be attached") | |
477 | 499 | else { | |
478 | - | let | |
479 | - | let | |
480 | - | if ((au != value( | |
481 | - | then throw((("invalid asset is in payment - " + | |
500 | + | let cw = aD.payments[0] | |
501 | + | let dC = cw.amount | |
502 | + | if ((au != value(cw.assetId))) | |
503 | + | then throw((("invalid asset is in payment - " + dB) + " is expected")) | |
482 | 504 | else { | |
483 | - | let | |
484 | - | let | |
485 | - | let | |
486 | - | let | |
487 | - | then value(getString(ba( | |
488 | - | else toString(k(this, | |
489 | - | let aQ = parseIntValue( | |
490 | - | let | |
491 | - | let | |
492 | - | let | |
493 | - | let | |
494 | - | if ((av > | |
505 | + | let dD = aZ() | |
506 | + | let cF = toString(aD.caller) | |
507 | + | let dE = isDefined(getString(ba(cF))) | |
508 | + | let cJ = if (dE) | |
509 | + | then value(getString(ba(cF))) | |
510 | + | else toString(k(this, dD)) | |
511 | + | let aQ = parseIntValue(cJ) | |
512 | + | let bP = height | |
513 | + | let co = bd(cJ) | |
514 | + | let cp = be(cJ) | |
515 | + | let cn = bc(cJ) | |
516 | + | if ((av > dC)) | |
495 | 517 | then throw(("amount is less then minLockAmount=" + toString(av))) | |
496 | 518 | else if ((aw > aT)) | |
497 | 519 | then throw(("passed duration is less then minLockDuration=" + toString(aw))) | |
498 | 520 | else if ((aT > ax)) | |
499 | 521 | then throw(("passed duration is greater then maxLockDuration=" + toString(ax))) | |
500 | - | else if (if ( | |
501 | - | then ((k(this, | |
522 | + | else if (if (dE) | |
523 | + | then ((k(this, co) + k(this, cp)) >= bP) | |
502 | 524 | else false) | |
503 | 525 | then throw("there is an active lock - consider to use increaseLock") | |
504 | - | else if ((h(this, | |
505 | - | then throw(("there are locked WXs - consider to use increaseLock " + | |
526 | + | else if ((h(this, cn) > 0)) | |
527 | + | then throw(("there are locked WXs - consider to use increaseLock " + cn)) | |
506 | 528 | else { | |
507 | - | let | |
508 | - | let | |
509 | - | let | |
510 | - | let | |
511 | - | let | |
512 | - | let bi = toString(q( | |
513 | - | let | |
514 | - | let | |
515 | - | let | |
516 | - | let | |
517 | - | then | |
529 | + | let dF = fraction(aT, c, ax) | |
530 | + | let dG = fraction(dC, dF, c) | |
531 | + | let dH = n(invoke(as, "calcGwxParamsREADONLY", [dG, bP, aT], nil)) | |
532 | + | let bQ = q(dH[0]) | |
533 | + | let bR = q(dH[1]) | |
534 | + | let bi = toString(q(dH[2])) | |
535 | + | let cS = k(by, ae()) | |
536 | + | let cT = k(by, ag()) | |
537 | + | let cU = k(by, ai()) | |
538 | + | let ck = if ((height > cU)) | |
539 | + | then cU | |
518 | 540 | else height | |
519 | - | let cJ = max([(bY - cH), 0]) | |
520 | - | let cL = bo(cx) | |
521 | - | let cN = (((cG * cJ) * 2) / 3) | |
522 | - | let cT = br(cx) | |
523 | - | let cU = bs() | |
524 | - | let cV = ((dv * aT) / 2) | |
525 | - | let cW = h(this, cU) | |
526 | - | let cX = bv() | |
527 | - | let cY = valueOrElse(getInteger(this, cX), 0) | |
528 | - | let dx = if (dt) | |
541 | + | let cV = max([(ck - cT), 0]) | |
542 | + | let cX = bo(cJ) | |
543 | + | let cZ = (((cS * cV) * 2) / 3) | |
544 | + | let df = br(cJ) | |
545 | + | let dg = bs() | |
546 | + | let dh = ((dG * aT) / 2) | |
547 | + | let di = h(this, dg) | |
548 | + | let bJ = bB(false) | |
549 | + | let dI = if (dE) | |
529 | 550 | then nil | |
530 | - | else [IntegerEntry( | |
531 | - | $Tuple2((((( | |
551 | + | else [IntegerEntry(dD, (aQ + 1)), StringEntry(ba(cF), cJ), StringEntry(bb(cJ), cF)] | |
552 | + | $Tuple2(((((dI ++ cm(cF, cJ, dC, bP, aT, bQ, bR, bi)) ++ bU(dC, aT, 1, if (dE) | |
532 | 553 | then 0 | |
533 | - | else 1)) :+ | |
554 | + | else 1)) :+ bM("lock", cF, dC, bP, aT, bQ, bR, aD)) ++ [IntegerEntry(cX, cZ), IntegerEntry(bv(), (bJ + dG))]), dG) | |
534 | 555 | } | |
535 | 556 | } | |
536 | 557 | } | |
537 | 558 | } | |
538 | 559 | ||
539 | 560 | ||
540 | 561 | @Callable(aD) | |
541 | - | func constructor ( | |
542 | - | let | |
543 | - | if (( | |
544 | - | then ([IntegerEntry(aZ(), 0), StringEntry(aq(), ay( | |
562 | + | func constructor (dJ,dK,av,dL,dM,as) = { | |
563 | + | let dN = aC(aD) | |
564 | + | if ((dN == dN)) | |
565 | + | then ([IntegerEntry(aZ(), 0), StringEntry(aq(), ay(dK, av, dL, dM, as)), StringEntry(x(), dJ)] ++ bU(0, 0, 0, 0)) | |
545 | 566 | else throw("Strict value is not equal to itself.") | |
546 | 567 | } | |
547 | 568 | ||
548 | 569 | ||
549 | 570 | ||
550 | 571 | @Callable(aD) | |
551 | - | func lockRef (aT, | |
552 | - | let | |
553 | - | let | |
554 | - | let | |
555 | - | let | |
556 | - | let | |
572 | + | func lockRef (aT,dO,dP) = { | |
573 | + | let dQ = dz(aD, aT) | |
574 | + | let dR = dQ._1 | |
575 | + | let dG = dQ._2 | |
576 | + | let dS = toString(aD.caller) | |
577 | + | let dT = if (if ((dO == "")) | |
557 | 578 | then true | |
558 | - | else ( | |
579 | + | else (dP == base58'')) | |
559 | 580 | then unit | |
560 | - | else invoke(t, "createPair", [w, | |
561 | - | if (( | |
581 | + | else invoke(t, "createPair", [w, dO, dS, dP], nil) | |
582 | + | if ((dT == dT)) | |
562 | 583 | then { | |
563 | - | let | |
564 | - | if (( | |
565 | - | then $Tuple2( | |
584 | + | let dU = invoke(as, "updateReferralActivity", [toString(aD.caller), dG], nil) | |
585 | + | if ((dU == dU)) | |
586 | + | then $Tuple2(dR, unit) | |
566 | 587 | else throw("Strict value is not equal to itself.") | |
567 | 588 | } | |
568 | 589 | else throw("Strict value is not equal to itself.") | |
569 | 590 | } | |
570 | 591 | ||
571 | 592 | ||
572 | 593 | ||
573 | 594 | @Callable(aD) | |
574 | 595 | func lock (aT) = { | |
575 | - | let | |
576 | - | let | |
577 | - | let | |
578 | - | let | |
579 | - | if (( | |
580 | - | then $Tuple2( | |
596 | + | let dV = dz(aD, aT) | |
597 | + | let dR = dV._1 | |
598 | + | let dG = dV._2 | |
599 | + | let dU = invoke(as, "updateReferralActivity", [toString(aD.caller), dG], nil) | |
600 | + | if ((dU == dU)) | |
601 | + | then $Tuple2(dR, unit) | |
581 | 602 | else throw("Strict value is not equal to itself.") | |
582 | 603 | } | |
583 | 604 | ||
584 | 605 | ||
585 | 606 | ||
586 | 607 | @Callable(aD) | |
587 | - | func increaseLock ( | |
588 | - | let | |
589 | - | let | |
590 | - | let au = fromBase58String( | |
591 | - | let aw = parseIntValue( | |
592 | - | let ax = parseIntValue( | |
593 | - | let | |
594 | - | let | |
595 | - | let | |
596 | - | let | |
597 | - | let | |
598 | - | let | |
599 | - | let | |
600 | - | let | |
601 | - | let | |
602 | - | let | |
603 | - | let | |
604 | - | if ((0 > | |
608 | + | func increaseLock (dW) = { | |
609 | + | let dA = ar() | |
610 | + | let dB = dA[al] | |
611 | + | let au = fromBase58String(dB) | |
612 | + | let aw = parseIntValue(dA[an]) | |
613 | + | let ax = parseIntValue(dA[ao]) | |
614 | + | let dC = cu(aD, au) | |
615 | + | let cF = toString(aD.caller) | |
616 | + | let cI = aO(cF) | |
617 | + | let cJ = cI[aG] | |
618 | + | let dX = parseIntValue(cI[aH]) | |
619 | + | let bP = parseIntValue(cI[aI]) | |
620 | + | let dY = parseIntValue(cI[aJ]) | |
621 | + | let dZ = (bP + dY) | |
622 | + | let ea = max([(dZ - height), 0]) | |
623 | + | let eb = (dX + dC) | |
624 | + | let ec = (ea + dW) | |
625 | + | if ((0 > dW)) | |
605 | 626 | then throw("duration is less then zero") | |
606 | - | else if ((aw > | |
627 | + | else if ((aw > ec)) | |
607 | 628 | then throw(("lockDurationNew is less then minLockDuration=" + toString(aw))) | |
608 | - | else if (( | |
629 | + | else if ((ec > ax)) | |
609 | 630 | then throw(("deltaDuration + existedLockDuration is greater then maxLockDuration=" + toString(ax))) | |
610 | 631 | else { | |
611 | - | let | |
612 | - | let | |
613 | - | let | |
614 | - | if (( | |
632 | + | let dF = fraction(ec, c, ax) | |
633 | + | let dG = fraction(eb, dF, c) | |
634 | + | let dU = invoke(as, "updateReferralActivity", [toString(aD.caller), dG], nil) | |
635 | + | if ((dU == dU)) | |
615 | 636 | then { | |
616 | - | let | |
617 | - | let | |
618 | - | let | |
619 | - | let | |
620 | - | let bi = toString(q( | |
621 | - | let | |
622 | - | let | |
623 | - | let | |
624 | - | let | |
625 | - | then | |
637 | + | let ed = height | |
638 | + | let dH = n(invoke(as, "calcGwxParamsREADONLY", [dG, ed, ec], nil)) | |
639 | + | let bQ = q(dH[0]) | |
640 | + | let bR = q(dH[1]) | |
641 | + | let bi = toString(q(dH[2])) | |
642 | + | let cS = k(by, ae()) | |
643 | + | let cT = k(by, ag()) | |
644 | + | let cU = k(by, ai()) | |
645 | + | let ck = if ((height > cU)) | |
646 | + | then cU | |
626 | 647 | else height | |
627 | - | let | |
628 | - | let | |
629 | - | let | |
630 | - | let | |
631 | - | let | |
632 | - | if ((0 > | |
648 | + | let cV = max([(ck - cT), 0]) | |
649 | + | let cX = bo(cJ) | |
650 | + | let cY = h(this, cX) | |
651 | + | let cZ = (((cS * cV) * 2) / 3) | |
652 | + | let da = (cZ - cY) | |
653 | + | if ((0 > da)) | |
633 | 654 | then throw("wrong calculations") | |
634 | 655 | else { | |
635 | - | let | |
636 | - | let | |
637 | - | let | |
638 | - | let | |
639 | - | let | |
640 | - | let | |
641 | - | if ((0 > | |
642 | - | then throw(("gwxDiff is less then 0: " + toString( | |
656 | + | let df = br(cJ) | |
657 | + | let dg = bs() | |
658 | + | let dh = h(this, df) | |
659 | + | let di = h(this, dg) | |
660 | + | let ee = cC(cF) | |
661 | + | let ef = (dG - ee) | |
662 | + | if ((0 > ef)) | |
663 | + | then throw(("gwxDiff is less then 0: " + toString(ef))) | |
643 | 664 | else { | |
644 | - | let | |
645 | - | let | |
646 | - | let | |
647 | - | let | |
648 | - | let | |
649 | - | let | |
650 | - | let | |
651 | - | let | |
652 | - | ((( | |
665 | + | let bJ = bB(false) | |
666 | + | let dj = bB(true) | |
667 | + | let dl = bt(cJ) | |
668 | + | let dm = h(this, dl) | |
669 | + | let dt = fraction(da, ee, dj) | |
670 | + | let eg = ((dG * ec) / 2) | |
671 | + | let eh = ((ee * ea) / 2) | |
672 | + | let ei = (eg - eh) | |
673 | + | (((cm(cF, cJ, eb, ed, ec, bQ, bR, bi) ++ bU(dC, dW, 0, 0)) :+ bM("lock", cF, dC, bP, ec, bQ, bR, aD)) ++ [IntegerEntry(bv(), (bJ + ef))]) | |
653 | 674 | } | |
654 | 675 | } | |
655 | 676 | } | |
656 | 677 | else throw("Strict value is not equal to itself.") | |
657 | 678 | } | |
658 | 679 | } | |
659 | 680 | ||
660 | 681 | ||
661 | 682 | ||
662 | 683 | @Callable(aD) | |
663 | - | func claimWxBoost ( | |
684 | + | func claimWxBoost (cE,cF) = if ((bz != aD.caller)) | |
664 | 685 | then throw("permissions denied") | |
665 | 686 | else { | |
666 | - | let | |
667 | - | let | |
668 | - | let | |
669 | - | let | |
670 | - | $Tuple2( | |
687 | + | let ej = cD(cE, cF, false) | |
688 | + | let dw = ej._1 | |
689 | + | let dx = ej._2 | |
690 | + | let dy = ej._3 | |
691 | + | $Tuple2(dx, [dw]) | |
671 | 692 | } | |
672 | 693 | ||
673 | 694 | ||
674 | 695 | ||
675 | 696 | @Callable(aD) | |
676 | - | func claimWxBoostREADONLY ( | |
677 | - | let | |
678 | - | let | |
679 | - | let | |
680 | - | let | |
681 | - | $Tuple2(nil, [ | |
697 | + | func claimWxBoostREADONLY (cE,cF) = { | |
698 | + | let ek = cD(cE, cF, true) | |
699 | + | let dw = ek._1 | |
700 | + | let dx = ek._2 | |
701 | + | let dy = ek._3 | |
702 | + | $Tuple2(nil, [dw, dy]) | |
682 | 703 | } | |
683 | 704 | ||
684 | 705 | ||
685 | 706 | ||
686 | 707 | @Callable(aD) | |
687 | 708 | func unlock (aN) = { | |
688 | - | let | |
689 | - | let | |
690 | - | let | |
691 | - | let | |
692 | - | let | |
693 | - | let | |
694 | - | let | |
695 | - | let au = fromBase58String( | |
696 | - | if (( | |
697 | - | then throw((("wait " + toString( | |
698 | - | else if ((0 >= | |
709 | + | let cI = aO(aN) | |
710 | + | let cJ = cI[aG] | |
711 | + | let dX = parseIntValue(cI[aH]) | |
712 | + | let bP = parseIntValue(cI[aI]) | |
713 | + | let dY = parseIntValue(cI[aJ]) | |
714 | + | let dZ = (bP + dY) | |
715 | + | let dA = ar() | |
716 | + | let au = fromBase58String(dA[al]) | |
717 | + | if ((dZ >= height)) | |
718 | + | then throw((("wait " + toString(dZ)) + " to unlock")) | |
719 | + | else if ((0 >= dX)) | |
699 | 720 | then throw("nothing to unlock") | |
700 | 721 | else { | |
701 | 722 | let bi = valueOrElse(getInteger(as, aj()), 0) | |
702 | - | ((( | |
723 | + | (((cm(aN, cJ, 0, bP, dY, 0, 0, toString(bi)) ++ bU(-(dX), 0, 0, -1)) :+ bM("unlock", aN, dX, bP, dY, 0, 0, aD)) :+ ScriptTransfer(addressFromStringValue(aN), dX, au)) | |
703 | 724 | } | |
704 | 725 | } | |
705 | 726 | ||
706 | 727 | ||
707 | 728 | ||
708 | 729 | @Callable(aD) | |
709 | 730 | func gwxUserInfoREADONLY (aN) = { | |
710 | - | let aX = | |
731 | + | let aX = cC(aN) | |
711 | 732 | $Tuple2(nil, [aX]) | |
712 | 733 | } | |
713 | 734 | ||
714 | 735 | ||
715 | 736 | ||
716 | 737 | @Callable(aD) | |
717 | - | func getUserGwxAmountAtHeightREADONLY (aN, | |
718 | - | let aX = | |
738 | + | func getUserGwxAmountAtHeightREADONLY (aN,cy) = { | |
739 | + | let aX = cx(aN, cy) | |
719 | 740 | $Tuple2(nil, aX) | |
720 | 741 | } | |
721 | 742 | ||
722 | 743 | ||
723 | 744 | ||
724 | 745 | @Callable(aD) | |
725 | - | func setManager (ea) = { | |
726 | - | let dC = aC(aD) | |
727 | - | if ((dC == dC)) | |
746 | + | func getTotalCachedGwxREADONLY () = $Tuple2(nil, bB(true)) | |
747 | + | ||
748 | + | ||
749 | + | ||
750 | + | @Callable(aD) | |
751 | + | func setManager (el) = { | |
752 | + | let dN = aC(aD) | |
753 | + | if ((dN == dN)) | |
728 | 754 | then { | |
729 | - | let | |
730 | - | if (( | |
731 | - | then [StringEntry(ad(), | |
755 | + | let em = fromBase58String(el) | |
756 | + | if ((em == em)) | |
757 | + | then [StringEntry(ad(), el)] | |
732 | 758 | else throw("Strict value is not equal to itself.") | |
733 | 759 | } | |
734 | 760 | else throw("Strict value is not equal to itself.") | |
735 | 761 | } | |
736 | 762 | ||
737 | 763 | ||
738 | 764 | ||
739 | 765 | @Callable(aD) | |
740 | 766 | func confirmManager () = { | |
741 | - | let | |
742 | - | let | |
767 | + | let en = aB() | |
768 | + | let eo = if (isDefined(en)) | |
743 | 769 | then true | |
744 | 770 | else throw("No pending manager") | |
745 | - | if (( | |
771 | + | if ((eo == eo)) | |
746 | 772 | then { | |
747 | - | let | |
773 | + | let ep = if ((aD.callerPublicKey == value(en))) | |
748 | 774 | then true | |
749 | 775 | else throw("You are not pending manager") | |
750 | - | if (( | |
751 | - | then [StringEntry(ac(), toBase58String(value( | |
776 | + | if ((ep == ep)) | |
777 | + | then [StringEntry(ac(), toBase58String(value(en))), DeleteEntry(ad())] | |
752 | 778 | else throw("Strict value is not equal to itself.") | |
753 | 779 | } | |
754 | 780 | else throw("Strict value is not equal to itself.") | |
755 | 781 | } | |
756 | 782 | ||
757 | 783 | ||
758 | - | @Verifier( | |
759 | - | func | |
760 | - | let | |
784 | + | @Verifier(eq) | |
785 | + | func er () = { | |
786 | + | let es = { | |
761 | 787 | let o = az() | |
762 | 788 | if ($isInstanceOf(o, "ByteVector")) | |
763 | 789 | then { | |
764 | 790 | let aF = o | |
765 | 791 | aF | |
766 | 792 | } | |
767 | 793 | else if ($isInstanceOf(o, "Unit")) | |
768 | - | then | |
794 | + | then eq.senderPublicKey | |
769 | 795 | else throw("Match error") | |
770 | 796 | } | |
771 | - | sigVerify( | |
797 | + | sigVerify(eq.bodyBytes, eq.proofs[0], es) | |
772 | 798 | } | |
773 | 799 |
github/deemru/w8io/169f3d6 196.44 ms ◑