tx · 9nADWe8u2wXQ4GtPDijPpNWMpf89X1wkAox3R9brWmHt

3Myn55vLkduxbX3ZXfiDCZhaQsLxYp1kmCy:  -0.02700000 Waves

2023.03.14 11:14 [2489455] smart account 3Myn55vLkduxbX3ZXfiDCZhaQsLxYp1kmCy > SELF 0.00000000 Waves

{ "type": 13, "id": "9nADWe8u2wXQ4GtPDijPpNWMpf89X1wkAox3R9brWmHt", "fee": 2700000, "feeAssetId": null, "timestamp": 1678781676723, "version": 2, "chainId": 84, "sender": "3Myn55vLkduxbX3ZXfiDCZhaQsLxYp1kmCy", "senderPublicKey": "9W33iCCNfmFxUbiC6XZcH5x7f6xfwC7Jb3BoExT5q2PV", "proofs": [ "4aWesSDuRQW9GLU6CKXuJjxyqsNnknQT7qrsc5tuagoa3XiAJyRp4ervY78Fc1i5TJ5EFGbSrnQLwLrp2ujQ77ER" ], "script": "base64:BgLFLggCEggKBggIAQEBCBIFCgMBCAISAwoBARIDCgEBEgQKAggIEgQKAggIEgMKAQgSAwoBCBIDCgEIEgQKAggBEgASBQoDCAgEEgMKAQgSAwoBCBIAIgNTRVAiBlNDQUxFOCIFTVVMVDgiDlBPT0xXRUlHSFRNVUxUIgd3cmFwRXJyIgNtc2ciCHRocm93RXJyIgRzdHJmIgdhZGRyZXNzIgNrZXkiA2lveiIDaW9kIgpkZWZhdWx0VmFsIgNpb2YiA2FicyIDdmFsIgNhYWwiByRtYXRjaDAiCnZhbEFueUx5c3QiAmFpIgZ2YWxJbnQiG2tleVJlZmVycmFsc0NvbnRyYWN0QWRkcmVzcyIecmVmZXJyYWxzQ29udHJhY3RBZGRyZXNzT3JGYWlsIhZrZXlSZWZlcnJhbFByb2dyYW1OYW1lIhpyZWZlcnJhbFByb2dyYW1OYW1lRGVmYXVsdCITcmVmZXJyYWxQcm9ncmFtTmFtZSIRa2V5RmFjdG9yeUFkZHJlc3MiGElkeEZhY3RvcnlDZmdTdGFraW5nRGFwcCIZSWR4RmFjdG9yeUNmZ0Jvb3N0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uCQACAQIkU3RyaWN0IHZhbHVlIGlzIG5vdCBlcXVhbCB0byBpdHNlbGYuAmFHAQ5jb25maXJtTWFuYWdlcgAEAmZvCQECYUUABAJmcAMJAQlpc0RlZmluZWQBBQJmbwYJAAIBAhJObyBwZW5kaW5nIG1hbmFnZXIDCQAAAgUCZnAFAmZwBAJmcQMJAAACCAUCYUcPY2FsbGVyUHVibGljS2V5CQEFdmFsdWUBBQJmbwYJAAIBAhtZb3UgYXJlIG5vdCBwZW5kaW5nIG1hbmFnZXIDCQAAAgUCZnEFAmZxCQDMCAIJAQtTdHJpbmdFbnRyeQIJAQJhZgAJANgEAQkBBXZhbHVlAQUCZm8JAMwIAgkBC0RlbGV0ZUVudHJ5AQkBAmFnAAUDbmlsCQACAQIkU3RyaWN0IHZhbHVlIGlzIG5vdCBlcXVhbCB0byBpdHNlbGYuCQACAQIkU3RyaWN0IHZhbHVlIGlzIG5vdCBlcXVhbCB0byBpdHNlbGYuAQJmcgECZnMABAJmdAQBcgkBAmFDAAMJAAECBQFyAgpCeXRlVmVjdG9yBAJhSQUBcgUCYUkDCQABAgUBcgIEVW5pdAgFAmZyD3NlbmRlclB1YmxpY0tleQkAAgECC01hdGNoIGVycm9yCQD0AwMIBQJmcglib2R5Qnl0ZXMJAJEDAggFAmZyBnByb29mcwAABQJmdE9BJr0=", "height": 2489455, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: AGsP8Ym1mk848FFLDZKoFojG7dBg2ztABQjkqkxEP2uM Next: HCqH1ALyE3k84QSBFxu2vysBY51EDpBdXLS5LCWmoGnf Diff:
OldNewDifferences
326326
327327 let bE = valueOrErrorMessage(addressFromString(valueOrErrorMessage(getString(makeString(["%s", "lpStakingPoolsContract"], a)), e("lp_staking_pools contract address is undefined"))), e("invalid lp_staking_pools contract address"))
328328
329-func bF (bG) = {
330- let bH = makeString(["%s", "votingEmissionContract"], a)
331- let bI = addressFromStringValue(getStringValue(bA, bH))
329+let bF = makeString(["%s", "votingEmissionContract"], a)
330+
331+let bG = addressFromStringValue(getStringValue(bA, bF))
332+
333+func bH (bI) = {
332334 let bJ = makeString(["%s", "currentEpochUi"], a)
333- let bK = getIntegerValue(bI, bJ)
335+ let bK = getIntegerValue(bG, bJ)
334336 let bL = makeString(["%s%s", "totalCachedGwxCorrection__activationEpoch"], a)
335337 let bM = getInteger(this, bL)
336338 let bN = valueOrElse(getInteger(this, by()), 0)
338340 then (bK >= value(bM))
339341 else false
340342 let bP = if (if (bO)
341- then bG
343+ then bI
342344 else false)
343345 then valueOrElse(getInteger(this, bz()), 0)
344346 else 0
414416 func cG (aQ) = cB(aQ, height)
415417
416418
417-func cH (cI,cJ,cK) = {
419+func cH () = {
420+ let bJ = makeString(["%s", "currentEpochUi"], a)
421+ let cI = {
422+ let bK = value(getInteger(bG, bJ))
423+ let cJ = (bK - 1)
424+ if ((0 > cJ))
425+ then g("invalid epoch")
426+ else $Tuple2(bK, cJ)
427+ }
428+ let bK = cI._1
429+ let cJ = cI._2
430+ func cK (cL) = makeString(["%s%d", "startHeight", toString(cL)], a)
431+
432+ let cM = value(getInteger(bG, cK(bK)))
433+ $Tuple2(cJ, cM)
434+ }
435+
436+
437+func cN (cO,cP,i,cL) = makeString(["%s%s%s%s%d", "vote", cO, cP, toString(i), toString(cL)], a)
438+
439+
440+func cQ (cR,cL) = makeString(["%s%s%d", "votingResultStaked", cR, toString(cL)], a)
441+
442+
443+func cS (cR,cL) = makeString(["%s%s%d", "votingResultStakedIntegral", cR, toString(cL)], a)
444+
445+
446+func cT (cR,cL) = makeString(["%s%s%d", "votingResultStakedIntegralLastUpdateHeight", cR, toString(cL)], a)
447+
448+
449+func cU (cR,i,cL) = makeString(["%s%s%s%d", "voteStakedIntegral", cR, toString(i), toString(cL)], a)
450+
451+
452+func cV (cR,i,cL) = makeString(["%s%s%s%d", "voteStakedIntegralLastUpdateHeight", cR, toString(i), toString(cL)], a)
453+
454+
455+func cW (cR) = {
456+ let cX = cH()
457+ let cJ = cX._1
458+ let cM = cX._2
459+ let cY = valueOrElse(getInteger(bG, cQ(cR, cJ)), 0)
460+ let cZ = valueOrElse(getInteger(this, cQ(cR, cJ)), cY)
461+ cZ
462+ }
463+
464+
465+func da (cR,db) = {
466+ let dc = cH()
467+ let cJ = dc._1
468+ let cM = dc._2
469+ let cZ = cW(cR)
470+ let dd = (cZ + db)
471+ let de = cS(cR, cJ)
472+ let df = valueOrElse(getInteger(this, de), 0)
473+ let dg = cT(cR, cJ)
474+ let dh = valueOrElse(getInteger(this, dg), cM)
475+ let di = (height - dh)
476+ let dj = ((di * cZ) + df)
477+ $Tuple2([IntegerEntry(cQ(cR, cJ), dd), IntegerEntry(dg, height), IntegerEntry(de, dj)], dj)
478+ }
479+
480+
481+func dk (cR,dl,dm) = {
482+ let dn = cH()
483+ let cJ = dn._1
484+ let cM = dn._2
485+ let aQ = addressFromStringValue(dl)
486+ let do = 4
487+ let dp = 5
488+ let dq = {
489+ let dr = invoke(bA, "getPoolConfigByLpAssetId", [cR], nil)
490+ if ($isInstanceOf(dr, "List[Any]"))
491+ then dr
492+ else throw(($getType(dr) + " couldn't be cast to List[Any]"))
493+ }
494+ let cO = {
495+ let dr = dq[do]
496+ if ($isInstanceOf(dr, "String"))
497+ then dr
498+ else throw(($getType(dr) + " couldn't be cast to String"))
499+ }
500+ let cP = {
501+ let dr = dq[dp]
502+ if ($isInstanceOf(dr, "String"))
503+ then dr
504+ else throw(($getType(dr) + " couldn't be cast to String"))
505+ }
506+ let ds = valueOrElse(getInteger(bG, cN(cO, cP, aQ, cJ)), 0)
507+ let dt = if ((ds == 0))
508+ then nil
509+ else {
510+ let db = if (dm)
511+ then ds
512+ else -(ds)
513+ let du = da(cR, db)
514+ let dv = du._1
515+ let dj = du._2
516+ let dw = if (dm)
517+ then 0
518+ else ds
519+ let dx = cU(cR, aQ, cJ)
520+ let dy = valueOrElse(getInteger(this, dx), 0)
521+ let dz = cV(cR, aQ, cJ)
522+ let dA = valueOrElse(getInteger(this, dz), cM)
523+ let dB = (height - dA)
524+ let dC = ((dB * dw) + dy)
525+ let dD = [IntegerEntry(dz, height), IntegerEntry(dx, dC)]
526+ (dv ++ dD)
527+ }
528+ dt
529+ }
530+
531+
532+func dE (cR,dl,dF) = {
418533 let cD = "EMPTY"
419- let cL = valueOrElse(getString(this, aP(cJ)), cD)
420- if ((cL == cD))
534+ let dG = valueOrElse(getString(this, aP(dl)), cD)
535+ if ((dG == cD))
421536 then $Tuple3(0, nil, "userRecord::is::empty")
422537 else {
423- let cM = split(cL, a)
424- let cN = cM[aJ]
425- let cO = valueOrElse(getInteger(bD, an()), 0)
426- let cP = "empty"
427- let cQ = if ((cI != cP))
538+ let dH = split(dG, a)
539+ let dI = dH[aJ]
540+ let dJ = valueOrElse(getInteger(bD, an()), 0)
541+ let dK = "empty"
542+ let dL = if ((cR != dK))
428543 then {
429- let cR = valueOrErrorMessage(getString(bA, N(cI)), ("unsupported lp asset " + cI))
430- let cS = getIntegerValue(bA, R(cR))
431- let cT = valueOrElse(getInteger(bA, T(cR, 0)), cS)
432- $Tuple2(cT, cS)
544+ let dM = valueOrErrorMessage(getString(bA, N(cR)), ("unsupported lp asset " + cR))
545+ let dN = getIntegerValue(bA, R(dM))
546+ let dO = valueOrElse(getInteger(bA, T(dM, 0)), dN)
547+ $Tuple2(dO, dN)
433548 }
434- else if (cK)
549+ else if (dF)
435550 then $Tuple2(0, 0)
436- else throw(("not readonly mode: unsupported lp asset " + cI))
437- let cU = cQ._1
438- let cV = cQ._2
439- let cW = n(bB, ah())
440- let cX = n(bB, aj())
441- let cY = n(bB, al())
442- let co = if ((height > cY))
443- then cY
551+ else throw(("not readonly mode: unsupported lp asset " + cR))
552+ let dP = dL._1
553+ let dQ = dL._2
554+ let dR = n(bB, ah())
555+ let dS = n(bB, aj())
556+ let dT = n(bB, al())
557+ let co = if ((height > dT))
558+ then dT
444559 else height
445- let cZ = max([(co - cX), 0])
446- let da = bs(cN, cI)
447- let db = br(cN)
448- let dc = valueOrElse(getInteger(this, da), k(this, db))
449- let dd = (((cW * cZ) * 2) / 3)
450- let de = (dd - dc)
451- let df = fraction(de, 3, (2 * cW))
452- let dg = (co - df)
453- let dh = max([(cO - dg), 0])
454- let di = ((co - dg) - dh)
455- if (if (if ((0 > dg))
560+ let dU = max([(co - dS), 0])
561+ let dV = bs(dI, cR)
562+ let dW = br(dI)
563+ let dX = valueOrElse(getInteger(this, dV), k(this, dW))
564+ let dY = (((dR * dU) * 2) / 3)
565+ let dZ = (dY - dX)
566+ let ea = fraction(dZ, 3, (2 * dR))
567+ let eb = (co - ea)
568+ let ec = max([(dJ - eb), 0])
569+ let ed = ((co - eb) - ec)
570+ if (if (if ((0 > eb))
456571 then true
457- else (0 > di))
572+ else (0 > ed))
458573 then true
459- else (o(((dh + di) - df)) >= 1))
460- then throw(((((((((((("invalid udh calc: udh=" + toString(df)) + " uLastH=") + toString(dg)) + " udh0=") + toString(dh)) + " udh1=") + toString(di)) + " lpAssetId=") + cI) + " userAddress=") + cJ))
461- else if ((0 > de))
574+ else (o(((ec + ed) - ea)) >= 1))
575+ then throw(((((((((((("invalid udh calc: udh=" + toString(ea)) + " uLastH=") + toString(eb)) + " udh0=") + toString(ec)) + " udh1=") + toString(ed)) + " lpAssetId=") + cR) + " userAddress=") + dl))
576+ else if ((0 > dZ))
462577 then throw("wrong calculations")
463578 else {
464- let dj = bu(cN)
465- let dk = bv()
466- let dl = k(this, dj)
467- let dm = k(this, dk)
468- let dn = bF(true)
469- let do = cG(cJ)
470- let dp = bw(cN)
471- let dq = k(this, dp)
472- let dr = if ((df == 0))
579+ let ee = bu(dI)
580+ let ef = bv()
581+ let eg = k(this, ee)
582+ let eh = k(this, ef)
583+ let ei = bH(true)
584+ let ej = cG(dl)
585+ let ek = bw(dI)
586+ let el = k(this, ek)
587+ let em = if ((ea == 0))
473588 then 0
474- else fraction(de, dh, df)
475- let ds = if ((df == 0))
589+ else fraction(dZ, ec, ea)
590+ let en = if ((ea == 0))
476591 then 0
477- else fraction(de, di, df)
478- let dt = fraction(dr, cU, d)
479- let du = fraction(ds, cV, d)
480- let dv = if ((dn == 0))
592+ else fraction(dZ, ed, ea)
593+ let eo = fraction(em, dP, d)
594+ let ep = fraction(en, dQ, d)
595+ let eq = if ((ei == 0))
481596 then 0
482- else fraction(dt, do, dn)
483- let dw = if ((dn == 0))
597+ else fraction(eo, ej, ei)
598+ let er = if ((ei == 0))
484599 then 0
485- else fraction(du, do, dn)
486- let dx = (dv + dw)
487- let dy = bx(cN)
488- let dz = k(this, dy)
489- let dA = (dx - dz)
490- let dB = [IntegerEntry(da, dd)]
491- let dC = makeString([toString(dc), toString(de), toString(dz), toString(dA), toString(cU), toString(cV), toString(co), toString(df), toString(dg), toString(dh), toString(di), toString(do), toString(dn)], ":")
492- $Tuple3(dx, dB, dC)
600+ else fraction(ep, ej, ei)
601+ let es = (eq + er)
602+ let et = bx(dI)
603+ let eu = k(this, et)
604+ let ev = (es - eu)
605+ let ew = [IntegerEntry(dV, dY)]
606+ let ex = makeString([toString(dX), toString(dZ), toString(eu), toString(ev), toString(dP), toString(dQ), toString(co), toString(ea), toString(eb), toString(ec), toString(ed), toString(ej), toString(ei)], ":")
607+ $Tuple3(es, ew, ex)
493608 }
494609 }
495610 }
496611
497612
498-func dD (aG,aW) = {
499- let dE = au()
500- let dF = dE[ao]
501- let ax = fromBase58String(dF)
502- let ay = parseIntValue(dE[ap])
503- let az = parseIntValue(dE[aq])
504- let aA = parseIntValue(dE[ar])
613+func ey (aG,aW) = {
614+ let ez = au()
615+ let eA = ez[ao]
616+ let ax = fromBase58String(eA)
617+ let ay = parseIntValue(ez[ap])
618+ let az = parseIntValue(ez[aq])
619+ let aA = parseIntValue(ez[ar])
505620 if ((size(aG.payments) != 1))
506621 then throw("invalid payment - exact one payment must be attached")
507622 else {
508623 let cA = aG.payments[0]
509- let dG = cA.amount
624+ let eB = cA.amount
510625 if ((ax != value(cA.assetId)))
511- then throw((("invalid asset is in payment - " + dF) + " is expected"))
626+ then throw((("invalid asset is in payment - " + eA) + " is expected"))
512627 else {
513- let dH = bc()
514- let cJ = toString(aG.caller)
515- let dI = isDefined(getString(bd(cJ)))
516- let cN = if (dI)
517- then value(getString(bd(cJ)))
518- else toString(n(this, dH))
519- let aT = parseIntValue(cN)
628+ let eC = bc()
629+ let dl = toString(aG.caller)
630+ let eD = isDefined(getString(bd(dl)))
631+ let dI = if (eD)
632+ then value(getString(bd(dl)))
633+ else toString(n(this, eC))
634+ let aT = parseIntValue(dI)
520635 let bT = height
521- let cs = bg(cN)
522- let ct = bh(cN)
523- let cr = bf(cN)
524- if (if ((ay > dG))
636+ let cs = bg(dI)
637+ let ct = bh(dI)
638+ let cr = bf(dI)
639+ if (if ((ay > eB))
525640 then (aG.caller != bE)
526641 else false)
527642 then throw(("amount is less then minLockAmount=" + toString(ay)))
529644 then throw(("passed duration is less then minLockDuration=" + toString(az)))
530645 else if ((aW > aA))
531646 then throw(("passed duration is greater then maxLockDuration=" + toString(aA)))
532- else if (if (dI)
647+ else if (if (eD)
533648 then ((n(this, cs) + n(this, ct)) >= bT)
534649 else false)
535650 then throw("there is an active lock - consider to use increaseLock")
536651 else if ((k(this, cr) > 0))
537652 then throw(("there are locked WXs - consider to use increaseLock " + cr))
538653 else {
539- let dJ = fraction(aW, c, aA)
540- let dK = fraction(dG, dJ, c)
541- let dL = q(invoke(av, "calcGwxParamsREADONLY", [dK, bT, aW], nil))
542- let bU = t(dL[0])
543- let bV = t(dL[1])
544- let bl = toString(t(dL[2]))
545- let cW = n(bB, ah())
546- let cX = n(bB, aj())
547- let cY = n(bB, al())
548- let co = if ((height > cY))
549- then cY
654+ let eE = fraction(aW, c, aA)
655+ let eF = fraction(eB, eE, c)
656+ let eG = q(invoke(av, "calcGwxParamsREADONLY", [eF, bT, aW], nil))
657+ let bU = t(eG[0])
658+ let bV = t(eG[1])
659+ let bl = toString(t(eG[2]))
660+ let dR = n(bB, ah())
661+ let dS = n(bB, aj())
662+ let dT = n(bB, al())
663+ let co = if ((height > dT))
664+ then dT
550665 else height
551- let cZ = max([(co - cX), 0])
552- let db = br(cN)
553- let dd = (((cW * cZ) * 2) / 3)
554- let dj = bu(cN)
555- let dk = bv()
556- let dl = ((dK * aW) / 2)
557- let dm = k(this, dk)
558- let bN = bF(false)
559- let dM = if (dI)
666+ let dU = max([(co - dS), 0])
667+ let dW = br(dI)
668+ let dY = (((dR * dU) * 2) / 3)
669+ let ee = bu(dI)
670+ let ef = bv()
671+ let eg = ((eF * aW) / 2)
672+ let eh = k(this, ef)
673+ let bN = bH(false)
674+ let eH = if (eD)
560675 then nil
561- else [IntegerEntry(dH, (aT + 1)), StringEntry(bd(cJ), cN), StringEntry(be(cN), cJ)]
562- $Tuple2(((((dM ++ cq(cJ, cN, dG, bT, aW, bU, bV, bl)) ++ bY(dG, aW, 1, if (dI)
676+ else [IntegerEntry(eC, (aT + 1)), StringEntry(bd(dl), dI), StringEntry(be(dI), dl)]
677+ $Tuple2(((((eH ++ cq(dl, dI, eB, bT, aW, bU, bV, bl)) ++ bY(eB, aW, 1, if (eD)
563678 then 0
564- else 1)) :+ bQ("lock", cJ, dG, bT, aW, bU, bV, aG)) ++ [IntegerEntry(db, dd), IntegerEntry(by(), (bN + dK))]), dK)
679+ else 1)) :+ bQ("lock", dl, eB, bT, aW, bU, bV, aG)) ++ [IntegerEntry(dW, dY), IntegerEntry(by(), (bN + eF))]), eF)
565680 }
566681 }
567682 }
569684
570685
571686 @Callable(aG)
572-func constructor (dN,dO,ay,dP,dQ,av) = {
573- let dR = aF(aG)
574- if ((dR == dR))
575- then ([IntegerEntry(bc(), 0), StringEntry(at(), aB(dO, ay, dP, dQ, av)), StringEntry(A(), dN)] ++ bY(0, 0, 0, 0))
687+func constructor (eI,eJ,ay,eK,eL,av) = {
688+ let eM = aF(aG)
689+ if ((eM == eM))
690+ then ([IntegerEntry(bc(), 0), StringEntry(at(), aB(eJ, ay, eK, eL, av)), StringEntry(A(), eI)] ++ bY(0, 0, 0, 0))
576691 else throw("Strict value is not equal to itself.")
577692 }
578693
579694
580695
581696 @Callable(aG)
582-func lockRef (aW,dS,dT) = {
583- let dU = dD(aG, aW)
584- let dV = dU._1
585- let dK = dU._2
586- let dW = toString(aG.caller)
587- let dX = if (if ((dS == ""))
697+func lockRef (aW,eN,eO) = {
698+ let eP = ey(aG, aW)
699+ let eQ = eP._1
700+ let eF = eP._2
701+ let eR = toString(aG.caller)
702+ let eS = if (if ((eN == ""))
588703 then true
589- else (dT == base58''))
704+ else (eO == base58''))
590705 then unit
591- else invoke(w, "createPair", [z, dS, dW, dT], nil)
592- if ((dX == dX))
706+ else invoke(w, "createPair", [z, eN, eR, eO], nil)
707+ if ((eS == eS))
593708 then {
594- let dY = invoke(av, "updateReferralActivity", [toString(aG.caller), dK], nil)
595- if ((dY == dY))
596- then $Tuple2(dV, unit)
709+ let eT = invoke(av, "updateReferralActivity", [toString(aG.caller), eF], nil)
710+ if ((eT == eT))
711+ then $Tuple2(eQ, unit)
597712 else throw("Strict value is not equal to itself.")
598713 }
599714 else throw("Strict value is not equal to itself.")
603718
604719 @Callable(aG)
605720 func lock (aW) = {
606- let dZ = dD(aG, aW)
607- let dV = dZ._1
608- let dK = dZ._2
609- let dY = invoke(av, "updateReferralActivity", [toString(aG.caller), dK], nil)
610- if ((dY == dY))
611- then $Tuple2(dV, unit)
721+ let eU = ey(aG, aW)
722+ let eQ = eU._1
723+ let eF = eU._2
724+ let eT = invoke(av, "updateReferralActivity", [toString(aG.caller), eF], nil)
725+ if ((eT == eT))
726+ then $Tuple2(eQ, unit)
612727 else throw("Strict value is not equal to itself.")
613728 }
614729
615730
616731
617732 @Callable(aG)
618-func increaseLock (ea) = {
619- let dE = au()
620- let dF = dE[ao]
621- let ax = fromBase58String(dF)
622- let az = parseIntValue(dE[aq])
623- let aA = parseIntValue(dE[ar])
624- let dG = cy(aG, ax)
625- let cJ = toString(aG.caller)
626- let cM = aR(cJ)
627- let cN = cM[aJ]
628- let eb = parseIntValue(cM[aK])
629- let bT = parseIntValue(cM[aL])
630- let ec = parseIntValue(cM[aM])
631- let ed = (bT + ec)
632- let ee = max([(ed - height), 0])
633- let ef = (eb + dG)
634- let eg = (ee + ea)
635- if ((0 > ea))
733+func increaseLock (eV) = {
734+ let ez = au()
735+ let eA = ez[ao]
736+ let ax = fromBase58String(eA)
737+ let az = parseIntValue(ez[aq])
738+ let aA = parseIntValue(ez[ar])
739+ let eB = cy(aG, ax)
740+ let dl = toString(aG.caller)
741+ let dH = aR(dl)
742+ let dI = dH[aJ]
743+ let eW = parseIntValue(dH[aK])
744+ let bT = parseIntValue(dH[aL])
745+ let eX = parseIntValue(dH[aM])
746+ let eY = (bT + eX)
747+ let eZ = max([(eY - height), 0])
748+ let fa = (eW + eB)
749+ let fb = (eZ + eV)
750+ if ((0 > eV))
636751 then throw("duration is less then zero")
637- else if ((az > eg))
752+ else if ((az > fb))
638753 then throw(("lockDurationNew is less then minLockDuration=" + toString(az)))
639- else if ((eg > aA))
754+ else if ((fb > aA))
640755 then throw(("deltaDuration + existedLockDuration is greater then maxLockDuration=" + toString(aA)))
641756 else {
642- let dJ = fraction(eg, c, aA)
643- let dK = fraction(ef, dJ, c)
644- let dY = invoke(av, "updateReferralActivity", [toString(aG.caller), dK], nil)
645- if ((dY == dY))
757+ let eE = fraction(fb, c, aA)
758+ let eF = fraction(fa, eE, c)
759+ let eT = invoke(av, "updateReferralActivity", [toString(aG.caller), eF], nil)
760+ if ((eT == eT))
646761 then {
647- let eh = height
648- let dL = q(invoke(av, "calcGwxParamsREADONLY", [dK, eh, eg], nil))
649- let bU = t(dL[0])
650- let bV = t(dL[1])
651- let bl = toString(t(dL[2]))
652- let cW = n(bB, ah())
653- let cX = n(bB, aj())
654- let cY = n(bB, al())
655- let co = if ((height > cY))
656- then cY
762+ let fc = height
763+ let eG = q(invoke(av, "calcGwxParamsREADONLY", [eF, fc, fb], nil))
764+ let bU = t(eG[0])
765+ let bV = t(eG[1])
766+ let bl = toString(t(eG[2]))
767+ let dR = n(bB, ah())
768+ let dS = n(bB, aj())
769+ let dT = n(bB, al())
770+ let co = if ((height > dT))
771+ then dT
657772 else height
658- let cZ = max([(co - cX), 0])
659- let db = br(cN)
660- let dc = k(this, db)
661- let dd = (((cW * cZ) * 2) / 3)
662- let de = (dd - dc)
663- if ((0 > de))
773+ let dU = max([(co - dS), 0])
774+ let dW = br(dI)
775+ let dX = k(this, dW)
776+ let dY = (((dR * dU) * 2) / 3)
777+ let dZ = (dY - dX)
778+ if ((0 > dZ))
664779 then throw("wrong calculations")
665780 else {
666- let dj = bu(cN)
667- let dk = bv()
668- let dl = k(this, dj)
669- let dm = k(this, dk)
670- let ei = cG(cJ)
671- let ej = (dK - ei)
672- if ((0 > ej))
673- then throw(("gwxDiff is less then 0: " + toString(ej)))
781+ let ee = bu(dI)
782+ let ef = bv()
783+ let eg = k(this, ee)
784+ let eh = k(this, ef)
785+ let fd = cG(dl)
786+ let fe = (eF - fd)
787+ if ((0 > fe))
788+ then throw(("gwxDiff is less then 0: " + toString(fe)))
674789 else {
675- let bN = bF(false)
676- let dn = bF(true)
677- let dp = bw(cN)
678- let dq = k(this, dp)
679- let dx = fraction(de, ei, dn)
680- let ek = ((dK * eg) / 2)
681- let el = ((ei * ee) / 2)
682- let em = (ek - el)
683- (((cq(cJ, cN, ef, eh, eg, bU, bV, bl) ++ bY(dG, ea, 0, 0)) :+ bQ("lock", cJ, dG, bT, eg, bU, bV, aG)) ++ [IntegerEntry(by(), (bN + ej))])
790+ let bN = bH(false)
791+ let ei = bH(true)
792+ let ek = bw(dI)
793+ let el = k(this, ek)
794+ let es = fraction(dZ, fd, ei)
795+ let ff = ((eF * fb) / 2)
796+ let fg = ((fd * eZ) / 2)
797+ let fh = (ff - fg)
798+ (((cq(dl, dI, fa, fc, fb, bU, bV, bl) ++ bY(eB, eV, 0, 0)) :+ bQ("lock", dl, eB, bT, fb, bU, bV, aG)) ++ [IntegerEntry(by(), (bN + fe))])
684799 }
685800 }
686801 }
691806
692807
693808 @Callable(aG)
694-func claimWxBoost (cI,cJ) = if ((bC != aG.caller))
809+func claimWxBoost (cR,dl) = if ((bC != aG.caller))
695810 then throw("permissions denied")
696811 else {
697- let en = cH(cI, cJ, false)
698- let dA = en._1
699- let dB = en._2
700- let dC = en._3
701- $Tuple2(dB, [dA])
812+ let fi = dE(cR, dl, false)
813+ let ev = fi._1
814+ let ew = fi._2
815+ let ex = fi._3
816+ $Tuple2(ew, [ev])
702817 }
703818
704819
705820
706821 @Callable(aG)
707-func claimWxBoostREADONLY (cI,cJ) = {
708- let eo = cH(cI, cJ, true)
709- let dA = eo._1
710- let dB = eo._2
711- let dC = eo._3
712- $Tuple2(nil, [dA, dC])
822+func claimWxBoostREADONLY (cR,dl) = {
823+ let fj = dE(cR, dl, true)
824+ let ev = fj._1
825+ let ew = fj._2
826+ let ex = fj._3
827+ $Tuple2(nil, [ev, ex])
713828 }
714829
715830
716831
717832 @Callable(aG)
718833 func unlock (aQ) = {
719- let cM = aR(aQ)
720- let cN = cM[aJ]
721- let eb = parseIntValue(cM[aK])
722- let bT = parseIntValue(cM[aL])
723- let ec = parseIntValue(cM[aM])
724- let ed = (bT + ec)
725- let dE = au()
726- let ax = fromBase58String(dE[ao])
727- if ((ed >= height))
728- then throw((("wait " + toString(ed)) + " to unlock"))
729- else if ((0 >= eb))
834+ let dH = aR(aQ)
835+ let dI = dH[aJ]
836+ let eW = parseIntValue(dH[aK])
837+ let bT = parseIntValue(dH[aL])
838+ let eX = parseIntValue(dH[aM])
839+ let eY = (bT + eX)
840+ let ez = au()
841+ let ax = fromBase58String(ez[ao])
842+ if ((eY >= height))
843+ then throw((("wait " + toString(eY)) + " to unlock"))
844+ else if ((0 >= eW))
730845 then throw("nothing to unlock")
731846 else {
732847 let bl = valueOrElse(getInteger(av, am()), 0)
733- (((cq(aQ, cN, 0, bT, ec, 0, 0, toString(bl)) ++ bY(-(eb), 0, 0, -1)) :+ bQ("unlock", aQ, eb, bT, ec, 0, 0, aG)) :+ ScriptTransfer(addressFromStringValue(aQ), eb, ax))
848+ (((cq(aQ, dI, 0, bT, eX, 0, 0, toString(bl)) ++ bY(-(eW), 0, 0, -1)) :+ bQ("unlock", aQ, eW, bT, eX, 0, 0, aG)) :+ ScriptTransfer(addressFromStringValue(aQ), eW, ax))
734849 }
735850 }
736851
745860
746861
747862 @Callable(aG)
748-func userMaxDurationREADONLY (cJ) = {
749- let dE = au()
750- let aA = parseIntValue(dE[ar])
751- let ep = getString(this, aP(cJ))
752- if ((ep == unit))
863+func userMaxDurationREADONLY (dl) = {
864+ let ez = au()
865+ let aA = parseIntValue(ez[ar])
866+ let fk = getString(this, aP(dl))
867+ if ((fk == unit))
753868 then $Tuple2(nil, $Tuple2("lock", aA))
754869 else {
755- let cM = split(value(ep), a)
756- let bT = parseIntValue(cM[aL])
757- let ec = parseIntValue(cM[aM])
758- let ed = (bT + ec)
759- let ee = max([(ed - height), 0])
760- let eq = (aA - ee)
761- $Tuple2(nil, $Tuple2("increaseLock", eq))
870+ let dH = split(value(fk), a)
871+ let bT = parseIntValue(dH[aL])
872+ let eX = parseIntValue(dH[aM])
873+ let eY = (bT + eX)
874+ let eZ = max([(eY - height), 0])
875+ let fl = (aA - eZ)
876+ $Tuple2(nil, $Tuple2("increaseLock", fl))
762877 }
763878 }
764879
773888
774889
775890 @Callable(aG)
776-func getTotalCachedGwxREADONLY () = $Tuple2(nil, bF(true))
891+func getTotalCachedGwxREADONLY () = $Tuple2(nil, bH(true))
777892
778893
779894
780895 @Callable(aG)
781-func setManager (er) = {
782- let dR = aF(aG)
783- if ((dR == dR))
896+func onStakedVoteUpdate (cR,dl,dm) = {
897+ let eM = if ((aG.caller == bC))
898+ then true
899+ else aF(aG)
900+ if ((eM == eM))
784901 then {
785- let es = fromBase58String(er)
786- if ((es == es))
787- then [StringEntry(ag(), er)]
902+ let dt = dk(cR, dl, dm)
903+ $Tuple2(dt, unit)
904+ }
905+ else throw("Strict value is not equal to itself.")
906+ }
907+
908+
909+
910+@Callable(aG)
911+func getVotingResultStakedREADONLY (cR) = $Tuple2(nil, cW(cR))
912+
913+
914+
915+@Callable(aG)
916+func setManager (fm) = {
917+ let eM = aF(aG)
918+ if ((eM == eM))
919+ then {
920+ let fn = fromBase58String(fm)
921+ if ((fn == fn))
922+ then [StringEntry(ag(), fm)]
788923 else throw("Strict value is not equal to itself.")
789924 }
790925 else throw("Strict value is not equal to itself.")
794929
795930 @Callable(aG)
796931 func confirmManager () = {
797- let et = aE()
798- let eu = if (isDefined(et))
932+ let fo = aE()
933+ let fp = if (isDefined(fo))
799934 then true
800935 else throw("No pending manager")
801- if ((eu == eu))
936+ if ((fp == fp))
802937 then {
803- let ev = if ((aG.callerPublicKey == value(et)))
938+ let fq = if ((aG.callerPublicKey == value(fo)))
804939 then true
805940 else throw("You are not pending manager")
806- if ((ev == ev))
807- then [StringEntry(af(), toBase58String(value(et))), DeleteEntry(ag())]
941+ if ((fq == fq))
942+ then [StringEntry(af(), toBase58String(value(fo))), DeleteEntry(ag())]
808943 else throw("Strict value is not equal to itself.")
809944 }
810945 else throw("Strict value is not equal to itself.")
811946 }
812947
813948
814-@Verifier(ew)
815-func ex () = {
816- let ey = {
949+@Verifier(fr)
950+func fs () = {
951+ let ft = {
817952 let r = aC()
818953 if ($isInstanceOf(r, "ByteVector"))
819954 then {
821956 aI
822957 }
823958 else if ($isInstanceOf(r, "Unit"))
824- then ew.senderPublicKey
959+ then fr.senderPublicKey
825960 else throw("Match error")
826961 }
827- sigVerify(ew.bodyBytes, ew.proofs[0], ey)
962+ sigVerify(fr.bodyBytes, fr.proofs[0], ft)
828963 }
829964
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = "__"
55
66 let b = 8
77
88 let c = 100000000
99
1010 let d = c
1111
1212 func e (f) = makeString(["boosting.ride:", f], " ")
1313
1414
1515 func g (f) = throw(e(f))
1616
1717
1818 func h (i,j) = valueOrErrorMessage(getString(i, j), (("mandatory this." + j) + " is not defined"))
1919
2020
2121 func k (i,j) = valueOrElse(getInteger(i, j), 0)
2222
2323
2424 func l (i,j,m) = valueOrElse(getInteger(i, j), m)
2525
2626
2727 func n (i,j) = valueOrErrorMessage(getInteger(i, j), (("mandatory this." + j) + " is not defined"))
2828
2929
3030 func o (p) = if ((0 > p))
3131 then -(p)
3232 else p
3333
3434
3535 func q (p) = {
3636 let r = p
3737 if ($isInstanceOf(r, "List[Any]"))
3838 then {
3939 let s = r
4040 s
4141 }
4242 else throw("fail to cast into List[Any]")
4343 }
4444
4545
4646 func t (p) = {
4747 let r = p
4848 if ($isInstanceOf(r, "Int"))
4949 then {
5050 let u = r
5151 u
5252 }
5353 else throw("fail to cast into Int")
5454 }
5555
5656
5757 func v () = makeString(["%s%s", "config", "referralsContractAddress"], a)
5858
5959
6060 let w = addressFromStringValue(h(this, v()))
6161
6262 let x = makeString(["%s%s", "referral", "programName"], a)
6363
6464 let y = "wxlock"
6565
6666 let z = valueOrElse(getString(this, x), y)
6767
6868 func A () = "%s%s__config__factoryAddress"
6969
7070
7171 let B = 1
7272
7373 let C = 2
7474
7575 let D = 3
7676
7777 let E = 4
7878
7979 let F = 5
8080
8181 let G = 6
8282
8383 let H = 7
8484
8585 let I = 8
8686
8787 let J = 9
8888
8989 let K = 10
9090
9191 let L = 11
9292
9393 func M () = "%s__factoryConfig"
9494
9595
9696 func N (O) = makeString(["%s%s%s", O, "mappings__lpAsset2PoolContract"], a)
9797
9898
9999 func P () = "%s__lpTokensList"
100100
101101
102102 func Q (O) = makeString(["%s%s%s", O, "mappings__lpAsset2PoolContract"], a)
103103
104104
105105 func R (S) = makeString(["%s%s", "poolWeight", S], a)
106106
107107
108108 func T (U,V) = ((("%s%s__poolWeight__" + U) + "__") + toString(V))
109109
110110
111111 func W () = addressFromStringValue(h(this, A()))
112112
113113
114114 func X () = split(valueOrElse(getString(W(), P()), ""), a)
115115
116116
117117 func Y (Z) = split(h(Z, M()), a)
118118
119119
120120 func aa (ab) = addressFromStringValue(ab[C])
121121
122122
123123 func ac (ab) = addressFromStringValue(ab[F])
124124
125125
126126 func ad (ab) = addressFromStringValue(ab[B])
127127
128128
129129 func ae (ab) = addressFromStringValue(ab[K])
130130
131131
132132 func af () = "%s__managerPublicKey"
133133
134134
135135 func ag () = "%s__pendingManagerPublicKey"
136136
137137
138138 func ah () = "%s%s__ratePerBlock__current"
139139
140140
141141 func ai () = "%s%s__ratePerBlockMax__current"
142142
143143
144144 func aj () = "%s%s__emission__startBlock"
145145
146146
147147 func ak () = "%s%s__emission__duration"
148148
149149
150150 func al () = "%s%s__emission__endBlock"
151151
152152
153153 func am () = "%s__nextPeriod"
154154
155155
156156 func an () = "%s%s__gwxRewardEmissionPart__startHeight"
157157
158158
159159 let ao = 1
160160
161161 let ap = 2
162162
163163 let aq = 3
164164
165165 let ar = 4
166166
167167 let as = 5
168168
169169 func at () = "%s__config"
170170
171171
172172 func au () = split(h(this, at()), a)
173173
174174
175175 let av = addressFromStringValue(au()[as])
176176
177177 func aw (ax,ay,az,aA,av) = makeString(["%s%d%d%d", ax, ay, az, aA, av], a)
178178
179179
180180 func aB (ax,ay,az,aA,av) = aw(ax, toString(ay), toString(az), toString(aA), av)
181181
182182
183183 func aC () = {
184184 let r = getString(af())
185185 if ($isInstanceOf(r, "String"))
186186 then {
187187 let aD = r
188188 fromBase58String(aD)
189189 }
190190 else if ($isInstanceOf(r, "Unit"))
191191 then unit
192192 else throw("Match error")
193193 }
194194
195195
196196 func aE () = {
197197 let r = getString(ag())
198198 if ($isInstanceOf(r, "String"))
199199 then {
200200 let aD = r
201201 fromBase58String(aD)
202202 }
203203 else if ($isInstanceOf(r, "Unit"))
204204 then unit
205205 else throw("Match error")
206206 }
207207
208208
209209 func aF (aG) = {
210210 let aH = throw("Permission denied")
211211 let r = aC()
212212 if ($isInstanceOf(r, "ByteVector"))
213213 then {
214214 let aI = r
215215 if ((aG.callerPublicKey == aI))
216216 then true
217217 else aH
218218 }
219219 else if ($isInstanceOf(r, "Unit"))
220220 then if ((aG.caller == this))
221221 then true
222222 else aH
223223 else throw("Match error")
224224 }
225225
226226
227227 let aJ = 1
228228
229229 let aK = 2
230230
231231 let aL = 3
232232
233233 let aM = 4
234234
235235 let aN = 5
236236
237237 let aO = 6
238238
239239 func aP (aQ) = makeString(["%s%s__lock", aQ], a)
240240
241241
242242 func aR (aQ) = split(h(this, aP(aQ)), a)
243243
244244
245245 func aS (aT,aU,aV,aW,aX,aY,aZ,ba) = makeString(["%d%d%d%d%d%d%d%d", aT, aU, aV, aW, aX, aY, aZ, ba], a)
246246
247247
248248 func bb (aT,aU,aV,aW,aX,aY,ba) = aS(aT, toString(aU), toString(aV), toString(aW), toString(aX), toString(aY), toString(lastBlock.timestamp), toString(ba))
249249
250250
251251 func bc () = "%s__nextUserNum"
252252
253253
254254 func bd (aQ) = makeString(["%s%s%s__mapping__user2num", aQ], a)
255255
256256
257257 func be (V) = makeString(["%s%s%s__mapping__num2user", V], a)
258258
259259
260260 func bf (aT) = makeString(["%s%d%s__paramByUserNum", aT, "amount"], a)
261261
262262
263263 func bg (aT) = makeString(["%s%d%s__paramByUserNum", aT, "start"], a)
264264
265265
266266 func bh (aT) = makeString(["%s%d%s__paramByUserNum", aT, "duration"], a)
267267
268268
269269 func bi (aT) = makeString(["%s%d%s__paramByUserNum", aT, "k"], a)
270270
271271
272272 func bj (aT) = makeString(["%s%d%s__paramByUserNum", aT, "b"], a)
273273
274274
275275 func bk (aT,bl) = makeString(["%s%d%s%d__paramByPeriod", aT, "k", bl], a)
276276
277277
278278 func bm (aT,bl) = makeString(["%s%d%s%d__paramByPeriod", aT, "b", bl], a)
279279
280280
281281 func bn () = "%s%s__stats__activeTotalLocked"
282282
283283
284284 func bo () = "%s%s__stats__locksDurationSumInBlocks"
285285
286286
287287 func bp () = "%s%s__stats__locksCount"
288288
289289
290290 func bq () = "%s%s__stats__activeUsersCount"
291291
292292
293293 func br (aT) = makeString(["%s%d__userBoostEmissionLastInt", aT], a)
294294
295295
296296 func bs (aT,bt) = makeString(["%s%d__userBoostEmissionLastInt", aT, bt], a)
297297
298298
299299 func bu (aT) = makeString(["%s%d__maxBoostInt", aT], a)
300300
301301
302302 func bv () = "%s%s__maxBoostInt__total"
303303
304304
305305 func bw (aT) = makeString(["%s%d__userBoostAvaliableToClaimTotal", aT], a)
306306
307307
308308 func bx (aT) = makeString(["%s%d__userBoostClaimed", aT], a)
309309
310310
311311 func by () = "%s%s__gwxCached__total"
312312
313313
314314 func bz () = "%s__gwxCachedTotalCorrective"
315315
316316
317317 let bA = W()
318318
319319 let ab = Y(bA)
320320
321321 let bB = ac(ab)
322322
323323 let bC = ad(ab)
324324
325325 let bD = ae(ab)
326326
327327 let bE = valueOrErrorMessage(addressFromString(valueOrErrorMessage(getString(makeString(["%s", "lpStakingPoolsContract"], a)), e("lp_staking_pools contract address is undefined"))), e("invalid lp_staking_pools contract address"))
328328
329-func bF (bG) = {
330- let bH = makeString(["%s", "votingEmissionContract"], a)
331- let bI = addressFromStringValue(getStringValue(bA, bH))
329+let bF = makeString(["%s", "votingEmissionContract"], a)
330+
331+let bG = addressFromStringValue(getStringValue(bA, bF))
332+
333+func bH (bI) = {
332334 let bJ = makeString(["%s", "currentEpochUi"], a)
333- let bK = getIntegerValue(bI, bJ)
335+ let bK = getIntegerValue(bG, bJ)
334336 let bL = makeString(["%s%s", "totalCachedGwxCorrection__activationEpoch"], a)
335337 let bM = getInteger(this, bL)
336338 let bN = valueOrElse(getInteger(this, by()), 0)
337339 let bO = if (isDefined(bM))
338340 then (bK >= value(bM))
339341 else false
340342 let bP = if (if (bO)
341- then bG
343+ then bI
342344 else false)
343345 then valueOrElse(getInteger(this, bz()), 0)
344346 else 0
345347 max([0, (bN + bP)])
346348 }
347349
348350
349351 func bQ (bR,bS,aU,bT,aW,bU,bV,aG) = {
350352 let bW = makeString(["%s%s%s%s__history", bR, bS, toBase58String(aG.transactionId)], a)
351353 let bX = makeString(["%d%d%d%d%d%d%d", toString(lastBlock.height), toString(lastBlock.timestamp), toString(aU), toString(bT), toString(aW), toString(bU), toString(bV)], a)
352354 StringEntry(bW, bX)
353355 }
354356
355357
356358 func bY (bZ,ca,cb,cc) = {
357359 let cd = bo()
358360 let ce = bp()
359361 let cf = bq()
360362 let cg = bn()
361363 let ch = k(this, cd)
362364 let ci = k(this, ce)
363365 let cj = k(this, cf)
364366 let ck = k(this, cg)
365367 [IntegerEntry(cd, (ch + ca)), IntegerEntry(ce, (ci + cb)), IntegerEntry(cf, (cj + cc)), IntegerEntry(cg, (ck + bZ))]
366368 }
367369
368370
369371 func cl (cm,cn,co) = {
370372 let cp = 1000
371373 (((cm * co) + cn) / cp)
372374 }
373375
374376
375377 func cq (aQ,aT,aU,aV,aW,bU,bV,bl) = {
376378 let cr = bf(aT)
377379 let cs = bg(aT)
378380 let ct = bh(aT)
379381 let cu = bi(aT)
380382 let cv = bj(aT)
381383 let cw = bk(aT, bl)
382384 let cx = bm(aT, bl)
383385 let ba = cl(bU, bV, height)
384386 [IntegerEntry(cr, aU), IntegerEntry(cs, aV), IntegerEntry(ct, aW), IntegerEntry(cu, bU), IntegerEntry(cv, bV), IntegerEntry(cw, bU), IntegerEntry(cx, bV), StringEntry(aP(aQ), bb(aT, aU, aV, aW, bU, bV, ba))]
385387 }
386388
387389
388390 func cy (aG,cz) = if ((size(aG.payments) > 1))
389391 then throw("only one payment is allowed")
390392 else if ((size(aG.payments) == 0))
391393 then 0
392394 else {
393395 let cA = aG.payments[0]
394396 if ((value(cA.assetId) != cz))
395397 then throw("invalid asset id in payment")
396398 else cA.amount
397399 }
398400
399401
400402 func cB (aQ,cC) = {
401403 let cD = "empty"
402404 let cE = bd(aQ)
403405 let aT = valueOrElse(getString(cE), cD)
404406 let bU = valueOrElse(getInteger(bi(aT)), 0)
405407 let bV = valueOrElse(getInteger(bj(aT)), 0)
406408 let cF = cl(bU, bV, cC)
407409 let ba = if ((0 > cF))
408410 then 0
409411 else cF
410412 ba
411413 }
412414
413415
414416 func cG (aQ) = cB(aQ, height)
415417
416418
417-func cH (cI,cJ,cK) = {
419+func cH () = {
420+ let bJ = makeString(["%s", "currentEpochUi"], a)
421+ let cI = {
422+ let bK = value(getInteger(bG, bJ))
423+ let cJ = (bK - 1)
424+ if ((0 > cJ))
425+ then g("invalid epoch")
426+ else $Tuple2(bK, cJ)
427+ }
428+ let bK = cI._1
429+ let cJ = cI._2
430+ func cK (cL) = makeString(["%s%d", "startHeight", toString(cL)], a)
431+
432+ let cM = value(getInteger(bG, cK(bK)))
433+ $Tuple2(cJ, cM)
434+ }
435+
436+
437+func cN (cO,cP,i,cL) = makeString(["%s%s%s%s%d", "vote", cO, cP, toString(i), toString(cL)], a)
438+
439+
440+func cQ (cR,cL) = makeString(["%s%s%d", "votingResultStaked", cR, toString(cL)], a)
441+
442+
443+func cS (cR,cL) = makeString(["%s%s%d", "votingResultStakedIntegral", cR, toString(cL)], a)
444+
445+
446+func cT (cR,cL) = makeString(["%s%s%d", "votingResultStakedIntegralLastUpdateHeight", cR, toString(cL)], a)
447+
448+
449+func cU (cR,i,cL) = makeString(["%s%s%s%d", "voteStakedIntegral", cR, toString(i), toString(cL)], a)
450+
451+
452+func cV (cR,i,cL) = makeString(["%s%s%s%d", "voteStakedIntegralLastUpdateHeight", cR, toString(i), toString(cL)], a)
453+
454+
455+func cW (cR) = {
456+ let cX = cH()
457+ let cJ = cX._1
458+ let cM = cX._2
459+ let cY = valueOrElse(getInteger(bG, cQ(cR, cJ)), 0)
460+ let cZ = valueOrElse(getInteger(this, cQ(cR, cJ)), cY)
461+ cZ
462+ }
463+
464+
465+func da (cR,db) = {
466+ let dc = cH()
467+ let cJ = dc._1
468+ let cM = dc._2
469+ let cZ = cW(cR)
470+ let dd = (cZ + db)
471+ let de = cS(cR, cJ)
472+ let df = valueOrElse(getInteger(this, de), 0)
473+ let dg = cT(cR, cJ)
474+ let dh = valueOrElse(getInteger(this, dg), cM)
475+ let di = (height - dh)
476+ let dj = ((di * cZ) + df)
477+ $Tuple2([IntegerEntry(cQ(cR, cJ), dd), IntegerEntry(dg, height), IntegerEntry(de, dj)], dj)
478+ }
479+
480+
481+func dk (cR,dl,dm) = {
482+ let dn = cH()
483+ let cJ = dn._1
484+ let cM = dn._2
485+ let aQ = addressFromStringValue(dl)
486+ let do = 4
487+ let dp = 5
488+ let dq = {
489+ let dr = invoke(bA, "getPoolConfigByLpAssetId", [cR], nil)
490+ if ($isInstanceOf(dr, "List[Any]"))
491+ then dr
492+ else throw(($getType(dr) + " couldn't be cast to List[Any]"))
493+ }
494+ let cO = {
495+ let dr = dq[do]
496+ if ($isInstanceOf(dr, "String"))
497+ then dr
498+ else throw(($getType(dr) + " couldn't be cast to String"))
499+ }
500+ let cP = {
501+ let dr = dq[dp]
502+ if ($isInstanceOf(dr, "String"))
503+ then dr
504+ else throw(($getType(dr) + " couldn't be cast to String"))
505+ }
506+ let ds = valueOrElse(getInteger(bG, cN(cO, cP, aQ, cJ)), 0)
507+ let dt = if ((ds == 0))
508+ then nil
509+ else {
510+ let db = if (dm)
511+ then ds
512+ else -(ds)
513+ let du = da(cR, db)
514+ let dv = du._1
515+ let dj = du._2
516+ let dw = if (dm)
517+ then 0
518+ else ds
519+ let dx = cU(cR, aQ, cJ)
520+ let dy = valueOrElse(getInteger(this, dx), 0)
521+ let dz = cV(cR, aQ, cJ)
522+ let dA = valueOrElse(getInteger(this, dz), cM)
523+ let dB = (height - dA)
524+ let dC = ((dB * dw) + dy)
525+ let dD = [IntegerEntry(dz, height), IntegerEntry(dx, dC)]
526+ (dv ++ dD)
527+ }
528+ dt
529+ }
530+
531+
532+func dE (cR,dl,dF) = {
418533 let cD = "EMPTY"
419- let cL = valueOrElse(getString(this, aP(cJ)), cD)
420- if ((cL == cD))
534+ let dG = valueOrElse(getString(this, aP(dl)), cD)
535+ if ((dG == cD))
421536 then $Tuple3(0, nil, "userRecord::is::empty")
422537 else {
423- let cM = split(cL, a)
424- let cN = cM[aJ]
425- let cO = valueOrElse(getInteger(bD, an()), 0)
426- let cP = "empty"
427- let cQ = if ((cI != cP))
538+ let dH = split(dG, a)
539+ let dI = dH[aJ]
540+ let dJ = valueOrElse(getInteger(bD, an()), 0)
541+ let dK = "empty"
542+ let dL = if ((cR != dK))
428543 then {
429- let cR = valueOrErrorMessage(getString(bA, N(cI)), ("unsupported lp asset " + cI))
430- let cS = getIntegerValue(bA, R(cR))
431- let cT = valueOrElse(getInteger(bA, T(cR, 0)), cS)
432- $Tuple2(cT, cS)
544+ let dM = valueOrErrorMessage(getString(bA, N(cR)), ("unsupported lp asset " + cR))
545+ let dN = getIntegerValue(bA, R(dM))
546+ let dO = valueOrElse(getInteger(bA, T(dM, 0)), dN)
547+ $Tuple2(dO, dN)
433548 }
434- else if (cK)
549+ else if (dF)
435550 then $Tuple2(0, 0)
436- else throw(("not readonly mode: unsupported lp asset " + cI))
437- let cU = cQ._1
438- let cV = cQ._2
439- let cW = n(bB, ah())
440- let cX = n(bB, aj())
441- let cY = n(bB, al())
442- let co = if ((height > cY))
443- then cY
551+ else throw(("not readonly mode: unsupported lp asset " + cR))
552+ let dP = dL._1
553+ let dQ = dL._2
554+ let dR = n(bB, ah())
555+ let dS = n(bB, aj())
556+ let dT = n(bB, al())
557+ let co = if ((height > dT))
558+ then dT
444559 else height
445- let cZ = max([(co - cX), 0])
446- let da = bs(cN, cI)
447- let db = br(cN)
448- let dc = valueOrElse(getInteger(this, da), k(this, db))
449- let dd = (((cW * cZ) * 2) / 3)
450- let de = (dd - dc)
451- let df = fraction(de, 3, (2 * cW))
452- let dg = (co - df)
453- let dh = max([(cO - dg), 0])
454- let di = ((co - dg) - dh)
455- if (if (if ((0 > dg))
560+ let dU = max([(co - dS), 0])
561+ let dV = bs(dI, cR)
562+ let dW = br(dI)
563+ let dX = valueOrElse(getInteger(this, dV), k(this, dW))
564+ let dY = (((dR * dU) * 2) / 3)
565+ let dZ = (dY - dX)
566+ let ea = fraction(dZ, 3, (2 * dR))
567+ let eb = (co - ea)
568+ let ec = max([(dJ - eb), 0])
569+ let ed = ((co - eb) - ec)
570+ if (if (if ((0 > eb))
456571 then true
457- else (0 > di))
572+ else (0 > ed))
458573 then true
459- else (o(((dh + di) - df)) >= 1))
460- then throw(((((((((((("invalid udh calc: udh=" + toString(df)) + " uLastH=") + toString(dg)) + " udh0=") + toString(dh)) + " udh1=") + toString(di)) + " lpAssetId=") + cI) + " userAddress=") + cJ))
461- else if ((0 > de))
574+ else (o(((ec + ed) - ea)) >= 1))
575+ then throw(((((((((((("invalid udh calc: udh=" + toString(ea)) + " uLastH=") + toString(eb)) + " udh0=") + toString(ec)) + " udh1=") + toString(ed)) + " lpAssetId=") + cR) + " userAddress=") + dl))
576+ else if ((0 > dZ))
462577 then throw("wrong calculations")
463578 else {
464- let dj = bu(cN)
465- let dk = bv()
466- let dl = k(this, dj)
467- let dm = k(this, dk)
468- let dn = bF(true)
469- let do = cG(cJ)
470- let dp = bw(cN)
471- let dq = k(this, dp)
472- let dr = if ((df == 0))
579+ let ee = bu(dI)
580+ let ef = bv()
581+ let eg = k(this, ee)
582+ let eh = k(this, ef)
583+ let ei = bH(true)
584+ let ej = cG(dl)
585+ let ek = bw(dI)
586+ let el = k(this, ek)
587+ let em = if ((ea == 0))
473588 then 0
474- else fraction(de, dh, df)
475- let ds = if ((df == 0))
589+ else fraction(dZ, ec, ea)
590+ let en = if ((ea == 0))
476591 then 0
477- else fraction(de, di, df)
478- let dt = fraction(dr, cU, d)
479- let du = fraction(ds, cV, d)
480- let dv = if ((dn == 0))
592+ else fraction(dZ, ed, ea)
593+ let eo = fraction(em, dP, d)
594+ let ep = fraction(en, dQ, d)
595+ let eq = if ((ei == 0))
481596 then 0
482- else fraction(dt, do, dn)
483- let dw = if ((dn == 0))
597+ else fraction(eo, ej, ei)
598+ let er = if ((ei == 0))
484599 then 0
485- else fraction(du, do, dn)
486- let dx = (dv + dw)
487- let dy = bx(cN)
488- let dz = k(this, dy)
489- let dA = (dx - dz)
490- let dB = [IntegerEntry(da, dd)]
491- let dC = makeString([toString(dc), toString(de), toString(dz), toString(dA), toString(cU), toString(cV), toString(co), toString(df), toString(dg), toString(dh), toString(di), toString(do), toString(dn)], ":")
492- $Tuple3(dx, dB, dC)
600+ else fraction(ep, ej, ei)
601+ let es = (eq + er)
602+ let et = bx(dI)
603+ let eu = k(this, et)
604+ let ev = (es - eu)
605+ let ew = [IntegerEntry(dV, dY)]
606+ let ex = makeString([toString(dX), toString(dZ), toString(eu), toString(ev), toString(dP), toString(dQ), toString(co), toString(ea), toString(eb), toString(ec), toString(ed), toString(ej), toString(ei)], ":")
607+ $Tuple3(es, ew, ex)
493608 }
494609 }
495610 }
496611
497612
498-func dD (aG,aW) = {
499- let dE = au()
500- let dF = dE[ao]
501- let ax = fromBase58String(dF)
502- let ay = parseIntValue(dE[ap])
503- let az = parseIntValue(dE[aq])
504- let aA = parseIntValue(dE[ar])
613+func ey (aG,aW) = {
614+ let ez = au()
615+ let eA = ez[ao]
616+ let ax = fromBase58String(eA)
617+ let ay = parseIntValue(ez[ap])
618+ let az = parseIntValue(ez[aq])
619+ let aA = parseIntValue(ez[ar])
505620 if ((size(aG.payments) != 1))
506621 then throw("invalid payment - exact one payment must be attached")
507622 else {
508623 let cA = aG.payments[0]
509- let dG = cA.amount
624+ let eB = cA.amount
510625 if ((ax != value(cA.assetId)))
511- then throw((("invalid asset is in payment - " + dF) + " is expected"))
626+ then throw((("invalid asset is in payment - " + eA) + " is expected"))
512627 else {
513- let dH = bc()
514- let cJ = toString(aG.caller)
515- let dI = isDefined(getString(bd(cJ)))
516- let cN = if (dI)
517- then value(getString(bd(cJ)))
518- else toString(n(this, dH))
519- let aT = parseIntValue(cN)
628+ let eC = bc()
629+ let dl = toString(aG.caller)
630+ let eD = isDefined(getString(bd(dl)))
631+ let dI = if (eD)
632+ then value(getString(bd(dl)))
633+ else toString(n(this, eC))
634+ let aT = parseIntValue(dI)
520635 let bT = height
521- let cs = bg(cN)
522- let ct = bh(cN)
523- let cr = bf(cN)
524- if (if ((ay > dG))
636+ let cs = bg(dI)
637+ let ct = bh(dI)
638+ let cr = bf(dI)
639+ if (if ((ay > eB))
525640 then (aG.caller != bE)
526641 else false)
527642 then throw(("amount is less then minLockAmount=" + toString(ay)))
528643 else if ((az > aW))
529644 then throw(("passed duration is less then minLockDuration=" + toString(az)))
530645 else if ((aW > aA))
531646 then throw(("passed duration is greater then maxLockDuration=" + toString(aA)))
532- else if (if (dI)
647+ else if (if (eD)
533648 then ((n(this, cs) + n(this, ct)) >= bT)
534649 else false)
535650 then throw("there is an active lock - consider to use increaseLock")
536651 else if ((k(this, cr) > 0))
537652 then throw(("there are locked WXs - consider to use increaseLock " + cr))
538653 else {
539- let dJ = fraction(aW, c, aA)
540- let dK = fraction(dG, dJ, c)
541- let dL = q(invoke(av, "calcGwxParamsREADONLY", [dK, bT, aW], nil))
542- let bU = t(dL[0])
543- let bV = t(dL[1])
544- let bl = toString(t(dL[2]))
545- let cW = n(bB, ah())
546- let cX = n(bB, aj())
547- let cY = n(bB, al())
548- let co = if ((height > cY))
549- then cY
654+ let eE = fraction(aW, c, aA)
655+ let eF = fraction(eB, eE, c)
656+ let eG = q(invoke(av, "calcGwxParamsREADONLY", [eF, bT, aW], nil))
657+ let bU = t(eG[0])
658+ let bV = t(eG[1])
659+ let bl = toString(t(eG[2]))
660+ let dR = n(bB, ah())
661+ let dS = n(bB, aj())
662+ let dT = n(bB, al())
663+ let co = if ((height > dT))
664+ then dT
550665 else height
551- let cZ = max([(co - cX), 0])
552- let db = br(cN)
553- let dd = (((cW * cZ) * 2) / 3)
554- let dj = bu(cN)
555- let dk = bv()
556- let dl = ((dK * aW) / 2)
557- let dm = k(this, dk)
558- let bN = bF(false)
559- let dM = if (dI)
666+ let dU = max([(co - dS), 0])
667+ let dW = br(dI)
668+ let dY = (((dR * dU) * 2) / 3)
669+ let ee = bu(dI)
670+ let ef = bv()
671+ let eg = ((eF * aW) / 2)
672+ let eh = k(this, ef)
673+ let bN = bH(false)
674+ let eH = if (eD)
560675 then nil
561- else [IntegerEntry(dH, (aT + 1)), StringEntry(bd(cJ), cN), StringEntry(be(cN), cJ)]
562- $Tuple2(((((dM ++ cq(cJ, cN, dG, bT, aW, bU, bV, bl)) ++ bY(dG, aW, 1, if (dI)
676+ else [IntegerEntry(eC, (aT + 1)), StringEntry(bd(dl), dI), StringEntry(be(dI), dl)]
677+ $Tuple2(((((eH ++ cq(dl, dI, eB, bT, aW, bU, bV, bl)) ++ bY(eB, aW, 1, if (eD)
563678 then 0
564- else 1)) :+ bQ("lock", cJ, dG, bT, aW, bU, bV, aG)) ++ [IntegerEntry(db, dd), IntegerEntry(by(), (bN + dK))]), dK)
679+ else 1)) :+ bQ("lock", dl, eB, bT, aW, bU, bV, aG)) ++ [IntegerEntry(dW, dY), IntegerEntry(by(), (bN + eF))]), eF)
565680 }
566681 }
567682 }
568683 }
569684
570685
571686 @Callable(aG)
572-func constructor (dN,dO,ay,dP,dQ,av) = {
573- let dR = aF(aG)
574- if ((dR == dR))
575- then ([IntegerEntry(bc(), 0), StringEntry(at(), aB(dO, ay, dP, dQ, av)), StringEntry(A(), dN)] ++ bY(0, 0, 0, 0))
687+func constructor (eI,eJ,ay,eK,eL,av) = {
688+ let eM = aF(aG)
689+ if ((eM == eM))
690+ then ([IntegerEntry(bc(), 0), StringEntry(at(), aB(eJ, ay, eK, eL, av)), StringEntry(A(), eI)] ++ bY(0, 0, 0, 0))
576691 else throw("Strict value is not equal to itself.")
577692 }
578693
579694
580695
581696 @Callable(aG)
582-func lockRef (aW,dS,dT) = {
583- let dU = dD(aG, aW)
584- let dV = dU._1
585- let dK = dU._2
586- let dW = toString(aG.caller)
587- let dX = if (if ((dS == ""))
697+func lockRef (aW,eN,eO) = {
698+ let eP = ey(aG, aW)
699+ let eQ = eP._1
700+ let eF = eP._2
701+ let eR = toString(aG.caller)
702+ let eS = if (if ((eN == ""))
588703 then true
589- else (dT == base58''))
704+ else (eO == base58''))
590705 then unit
591- else invoke(w, "createPair", [z, dS, dW, dT], nil)
592- if ((dX == dX))
706+ else invoke(w, "createPair", [z, eN, eR, eO], nil)
707+ if ((eS == eS))
593708 then {
594- let dY = invoke(av, "updateReferralActivity", [toString(aG.caller), dK], nil)
595- if ((dY == dY))
596- then $Tuple2(dV, unit)
709+ let eT = invoke(av, "updateReferralActivity", [toString(aG.caller), eF], nil)
710+ if ((eT == eT))
711+ then $Tuple2(eQ, unit)
597712 else throw("Strict value is not equal to itself.")
598713 }
599714 else throw("Strict value is not equal to itself.")
600715 }
601716
602717
603718
604719 @Callable(aG)
605720 func lock (aW) = {
606- let dZ = dD(aG, aW)
607- let dV = dZ._1
608- let dK = dZ._2
609- let dY = invoke(av, "updateReferralActivity", [toString(aG.caller), dK], nil)
610- if ((dY == dY))
611- then $Tuple2(dV, unit)
721+ let eU = ey(aG, aW)
722+ let eQ = eU._1
723+ let eF = eU._2
724+ let eT = invoke(av, "updateReferralActivity", [toString(aG.caller), eF], nil)
725+ if ((eT == eT))
726+ then $Tuple2(eQ, unit)
612727 else throw("Strict value is not equal to itself.")
613728 }
614729
615730
616731
617732 @Callable(aG)
618-func increaseLock (ea) = {
619- let dE = au()
620- let dF = dE[ao]
621- let ax = fromBase58String(dF)
622- let az = parseIntValue(dE[aq])
623- let aA = parseIntValue(dE[ar])
624- let dG = cy(aG, ax)
625- let cJ = toString(aG.caller)
626- let cM = aR(cJ)
627- let cN = cM[aJ]
628- let eb = parseIntValue(cM[aK])
629- let bT = parseIntValue(cM[aL])
630- let ec = parseIntValue(cM[aM])
631- let ed = (bT + ec)
632- let ee = max([(ed - height), 0])
633- let ef = (eb + dG)
634- let eg = (ee + ea)
635- if ((0 > ea))
733+func increaseLock (eV) = {
734+ let ez = au()
735+ let eA = ez[ao]
736+ let ax = fromBase58String(eA)
737+ let az = parseIntValue(ez[aq])
738+ let aA = parseIntValue(ez[ar])
739+ let eB = cy(aG, ax)
740+ let dl = toString(aG.caller)
741+ let dH = aR(dl)
742+ let dI = dH[aJ]
743+ let eW = parseIntValue(dH[aK])
744+ let bT = parseIntValue(dH[aL])
745+ let eX = parseIntValue(dH[aM])
746+ let eY = (bT + eX)
747+ let eZ = max([(eY - height), 0])
748+ let fa = (eW + eB)
749+ let fb = (eZ + eV)
750+ if ((0 > eV))
636751 then throw("duration is less then zero")
637- else if ((az > eg))
752+ else if ((az > fb))
638753 then throw(("lockDurationNew is less then minLockDuration=" + toString(az)))
639- else if ((eg > aA))
754+ else if ((fb > aA))
640755 then throw(("deltaDuration + existedLockDuration is greater then maxLockDuration=" + toString(aA)))
641756 else {
642- let dJ = fraction(eg, c, aA)
643- let dK = fraction(ef, dJ, c)
644- let dY = invoke(av, "updateReferralActivity", [toString(aG.caller), dK], nil)
645- if ((dY == dY))
757+ let eE = fraction(fb, c, aA)
758+ let eF = fraction(fa, eE, c)
759+ let eT = invoke(av, "updateReferralActivity", [toString(aG.caller), eF], nil)
760+ if ((eT == eT))
646761 then {
647- let eh = height
648- let dL = q(invoke(av, "calcGwxParamsREADONLY", [dK, eh, eg], nil))
649- let bU = t(dL[0])
650- let bV = t(dL[1])
651- let bl = toString(t(dL[2]))
652- let cW = n(bB, ah())
653- let cX = n(bB, aj())
654- let cY = n(bB, al())
655- let co = if ((height > cY))
656- then cY
762+ let fc = height
763+ let eG = q(invoke(av, "calcGwxParamsREADONLY", [eF, fc, fb], nil))
764+ let bU = t(eG[0])
765+ let bV = t(eG[1])
766+ let bl = toString(t(eG[2]))
767+ let dR = n(bB, ah())
768+ let dS = n(bB, aj())
769+ let dT = n(bB, al())
770+ let co = if ((height > dT))
771+ then dT
657772 else height
658- let cZ = max([(co - cX), 0])
659- let db = br(cN)
660- let dc = k(this, db)
661- let dd = (((cW * cZ) * 2) / 3)
662- let de = (dd - dc)
663- if ((0 > de))
773+ let dU = max([(co - dS), 0])
774+ let dW = br(dI)
775+ let dX = k(this, dW)
776+ let dY = (((dR * dU) * 2) / 3)
777+ let dZ = (dY - dX)
778+ if ((0 > dZ))
664779 then throw("wrong calculations")
665780 else {
666- let dj = bu(cN)
667- let dk = bv()
668- let dl = k(this, dj)
669- let dm = k(this, dk)
670- let ei = cG(cJ)
671- let ej = (dK - ei)
672- if ((0 > ej))
673- then throw(("gwxDiff is less then 0: " + toString(ej)))
781+ let ee = bu(dI)
782+ let ef = bv()
783+ let eg = k(this, ee)
784+ let eh = k(this, ef)
785+ let fd = cG(dl)
786+ let fe = (eF - fd)
787+ if ((0 > fe))
788+ then throw(("gwxDiff is less then 0: " + toString(fe)))
674789 else {
675- let bN = bF(false)
676- let dn = bF(true)
677- let dp = bw(cN)
678- let dq = k(this, dp)
679- let dx = fraction(de, ei, dn)
680- let ek = ((dK * eg) / 2)
681- let el = ((ei * ee) / 2)
682- let em = (ek - el)
683- (((cq(cJ, cN, ef, eh, eg, bU, bV, bl) ++ bY(dG, ea, 0, 0)) :+ bQ("lock", cJ, dG, bT, eg, bU, bV, aG)) ++ [IntegerEntry(by(), (bN + ej))])
790+ let bN = bH(false)
791+ let ei = bH(true)
792+ let ek = bw(dI)
793+ let el = k(this, ek)
794+ let es = fraction(dZ, fd, ei)
795+ let ff = ((eF * fb) / 2)
796+ let fg = ((fd * eZ) / 2)
797+ let fh = (ff - fg)
798+ (((cq(dl, dI, fa, fc, fb, bU, bV, bl) ++ bY(eB, eV, 0, 0)) :+ bQ("lock", dl, eB, bT, fb, bU, bV, aG)) ++ [IntegerEntry(by(), (bN + fe))])
684799 }
685800 }
686801 }
687802 else throw("Strict value is not equal to itself.")
688803 }
689804 }
690805
691806
692807
693808 @Callable(aG)
694-func claimWxBoost (cI,cJ) = if ((bC != aG.caller))
809+func claimWxBoost (cR,dl) = if ((bC != aG.caller))
695810 then throw("permissions denied")
696811 else {
697- let en = cH(cI, cJ, false)
698- let dA = en._1
699- let dB = en._2
700- let dC = en._3
701- $Tuple2(dB, [dA])
812+ let fi = dE(cR, dl, false)
813+ let ev = fi._1
814+ let ew = fi._2
815+ let ex = fi._3
816+ $Tuple2(ew, [ev])
702817 }
703818
704819
705820
706821 @Callable(aG)
707-func claimWxBoostREADONLY (cI,cJ) = {
708- let eo = cH(cI, cJ, true)
709- let dA = eo._1
710- let dB = eo._2
711- let dC = eo._3
712- $Tuple2(nil, [dA, dC])
822+func claimWxBoostREADONLY (cR,dl) = {
823+ let fj = dE(cR, dl, true)
824+ let ev = fj._1
825+ let ew = fj._2
826+ let ex = fj._3
827+ $Tuple2(nil, [ev, ex])
713828 }
714829
715830
716831
717832 @Callable(aG)
718833 func unlock (aQ) = {
719- let cM = aR(aQ)
720- let cN = cM[aJ]
721- let eb = parseIntValue(cM[aK])
722- let bT = parseIntValue(cM[aL])
723- let ec = parseIntValue(cM[aM])
724- let ed = (bT + ec)
725- let dE = au()
726- let ax = fromBase58String(dE[ao])
727- if ((ed >= height))
728- then throw((("wait " + toString(ed)) + " to unlock"))
729- else if ((0 >= eb))
834+ let dH = aR(aQ)
835+ let dI = dH[aJ]
836+ let eW = parseIntValue(dH[aK])
837+ let bT = parseIntValue(dH[aL])
838+ let eX = parseIntValue(dH[aM])
839+ let eY = (bT + eX)
840+ let ez = au()
841+ let ax = fromBase58String(ez[ao])
842+ if ((eY >= height))
843+ then throw((("wait " + toString(eY)) + " to unlock"))
844+ else if ((0 >= eW))
730845 then throw("nothing to unlock")
731846 else {
732847 let bl = valueOrElse(getInteger(av, am()), 0)
733- (((cq(aQ, cN, 0, bT, ec, 0, 0, toString(bl)) ++ bY(-(eb), 0, 0, -1)) :+ bQ("unlock", aQ, eb, bT, ec, 0, 0, aG)) :+ ScriptTransfer(addressFromStringValue(aQ), eb, ax))
848+ (((cq(aQ, dI, 0, bT, eX, 0, 0, toString(bl)) ++ bY(-(eW), 0, 0, -1)) :+ bQ("unlock", aQ, eW, bT, eX, 0, 0, aG)) :+ ScriptTransfer(addressFromStringValue(aQ), eW, ax))
734849 }
735850 }
736851
737852
738853
739854 @Callable(aG)
740855 func gwxUserInfoREADONLY (aQ) = {
741856 let ba = cG(aQ)
742857 $Tuple2(nil, [ba])
743858 }
744859
745860
746861
747862 @Callable(aG)
748-func userMaxDurationREADONLY (cJ) = {
749- let dE = au()
750- let aA = parseIntValue(dE[ar])
751- let ep = getString(this, aP(cJ))
752- if ((ep == unit))
863+func userMaxDurationREADONLY (dl) = {
864+ let ez = au()
865+ let aA = parseIntValue(ez[ar])
866+ let fk = getString(this, aP(dl))
867+ if ((fk == unit))
753868 then $Tuple2(nil, $Tuple2("lock", aA))
754869 else {
755- let cM = split(value(ep), a)
756- let bT = parseIntValue(cM[aL])
757- let ec = parseIntValue(cM[aM])
758- let ed = (bT + ec)
759- let ee = max([(ed - height), 0])
760- let eq = (aA - ee)
761- $Tuple2(nil, $Tuple2("increaseLock", eq))
870+ let dH = split(value(fk), a)
871+ let bT = parseIntValue(dH[aL])
872+ let eX = parseIntValue(dH[aM])
873+ let eY = (bT + eX)
874+ let eZ = max([(eY - height), 0])
875+ let fl = (aA - eZ)
876+ $Tuple2(nil, $Tuple2("increaseLock", fl))
762877 }
763878 }
764879
765880
766881
767882 @Callable(aG)
768883 func getUserGwxAmountAtHeightREADONLY (aQ,cC) = {
769884 let ba = cB(aQ, cC)
770885 $Tuple2(nil, ba)
771886 }
772887
773888
774889
775890 @Callable(aG)
776-func getTotalCachedGwxREADONLY () = $Tuple2(nil, bF(true))
891+func getTotalCachedGwxREADONLY () = $Tuple2(nil, bH(true))
777892
778893
779894
780895 @Callable(aG)
781-func setManager (er) = {
782- let dR = aF(aG)
783- if ((dR == dR))
896+func onStakedVoteUpdate (cR,dl,dm) = {
897+ let eM = if ((aG.caller == bC))
898+ then true
899+ else aF(aG)
900+ if ((eM == eM))
784901 then {
785- let es = fromBase58String(er)
786- if ((es == es))
787- then [StringEntry(ag(), er)]
902+ let dt = dk(cR, dl, dm)
903+ $Tuple2(dt, unit)
904+ }
905+ else throw("Strict value is not equal to itself.")
906+ }
907+
908+
909+
910+@Callable(aG)
911+func getVotingResultStakedREADONLY (cR) = $Tuple2(nil, cW(cR))
912+
913+
914+
915+@Callable(aG)
916+func setManager (fm) = {
917+ let eM = aF(aG)
918+ if ((eM == eM))
919+ then {
920+ let fn = fromBase58String(fm)
921+ if ((fn == fn))
922+ then [StringEntry(ag(), fm)]
788923 else throw("Strict value is not equal to itself.")
789924 }
790925 else throw("Strict value is not equal to itself.")
791926 }
792927
793928
794929
795930 @Callable(aG)
796931 func confirmManager () = {
797- let et = aE()
798- let eu = if (isDefined(et))
932+ let fo = aE()
933+ let fp = if (isDefined(fo))
799934 then true
800935 else throw("No pending manager")
801- if ((eu == eu))
936+ if ((fp == fp))
802937 then {
803- let ev = if ((aG.callerPublicKey == value(et)))
938+ let fq = if ((aG.callerPublicKey == value(fo)))
804939 then true
805940 else throw("You are not pending manager")
806- if ((ev == ev))
807- then [StringEntry(af(), toBase58String(value(et))), DeleteEntry(ag())]
941+ if ((fq == fq))
942+ then [StringEntry(af(), toBase58String(value(fo))), DeleteEntry(ag())]
808943 else throw("Strict value is not equal to itself.")
809944 }
810945 else throw("Strict value is not equal to itself.")
811946 }
812947
813948
814-@Verifier(ew)
815-func ex () = {
816- let ey = {
949+@Verifier(fr)
950+func fs () = {
951+ let ft = {
817952 let r = aC()
818953 if ($isInstanceOf(r, "ByteVector"))
819954 then {
820955 let aI = r
821956 aI
822957 }
823958 else if ($isInstanceOf(r, "Unit"))
824- then ew.senderPublicKey
959+ then fr.senderPublicKey
825960 else throw("Match error")
826961 }
827- sigVerify(ew.bodyBytes, ew.proofs[0], ey)
962+ sigVerify(fr.bodyBytes, fr.proofs[0], ft)
828963 }
829964

github/deemru/w8io/026f985 
244.11 ms