tx · Hy8UmssTBsV9tRnP3KGhEaZX5MQkVbccHxDRKAJW9eaL

3MsNhK6uve98J6DeqbuwGFBRh9GoHPGUFgp:  -0.02300000 Waves

2023.03.22 13:32 [2501114] smart account 3MsNhK6uve98J6DeqbuwGFBRh9GoHPGUFgp > SELF 0.00000000 Waves

{ "type": 13, "id": "Hy8UmssTBsV9tRnP3KGhEaZX5MQkVbccHxDRKAJW9eaL", "fee": 2300000, "feeAssetId": null, "timestamp": 1679481252551, "version": 2, "chainId": 84, "sender": "3MsNhK6uve98J6DeqbuwGFBRh9GoHPGUFgp", "senderPublicKey": "86RHVxKovtU7yKnepY8wKsd8niDxGAsiwuA1XA1DNqrS", "proofs": [ "tktCFdMS1bUVkYuLMU7GRS2qYYjj9E1WMUrG6tpNPW3r4bCRuLJ8LpMQ42XgtVRkcfiDKTRPNjVLXe8LPRDmSbr" ], "script": "base64:BgKrIQgCEgMKAQgSAwoBCBIECgIICBIJCgcBERERGAgYEgcKBRERERgIEgcKBQEBAQgIEgASAwoBCBIECgIIARIECgIIARIECgIIARIDCgEIEgYKBAgBCAESBQoDARgYEgMKARgSAwoBCBIAIgZTQ0FMRTgiBU1VTFQ4IgdTQ0FMRTE4IgZNVUxUMTgiA1NFUCIOUE9PTFdFSUdIVE1VTFQiCnplcm9CaWdJbnQiDmlkeFBvb2xBZGRyZXNzIg1pZHhQb29sU3RhdHVzIhBpZHhQb29sTFBBc3NldElkIg1pZHhBbXRBc3NldElkIg9pZHhQcmljZUFzc2V0SWQiDmlkeEFtdEFzc2V0RGNtIhBpZHhQcmljZUFzc2V0RGNtIg5pZHhJQW10QXNzZXRJZCIQaWR4SVByaWNlQXNzZXRJZCINaWR4TFBBc3NldERjbSIPZ2V0U3RyaW5nT3JGYWlsIgNrZXkiGGdldFN0cmluZ0J5QWRkcmVzc09yRmFpbCIHYWRkcmVzcyIMZ2V0SW50T3JaZXJvIgxnZXRJbnRPckZhaWwiCWFzQW55TGlzdCIDdmFsIgckbWF0Y2gw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kAAQIFAXoCBFVuaXQIBQJkWA9zZW5kZXJQdWJsaWNLZXkJAAIBAgtNYXRjaCBlcnJvcgkA9AMDCAUCZFgJYm9keUJ5dGVzCQCRAwIIBQJkWAZwcm9vZnMAAAUCZFr6cd9q", "height": 2501114, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: QoMWcLn8LVACtAydPeMGp63rQjuUay3q9jVbPprTCcU Next: FNZVPxjTJqMXdbmxZu2CkUHQrQsetpDJ4wFgrAKmkdsy Diff:
OldNewDifferences
271271 let bg = getIntegerValue(aT, V(be))
272272 let bh = w(aV, aN())
273273 let bi = w(aV, aO())
274- let bj = 3
274+ let bj = {
275+ let ba = invoke(aV, "getBoostCoeffREADONLY", nil, nil)
276+ if ($isInstanceOf(ba, "Int"))
277+ then ba
278+ else throw(($getType(ba) + " couldn't be cast to Int"))
279+ }
275280 let bk = (fraction(bh, bg, bf) / bj)
276281 let bl = fraction(bi, bg, bf)
277282 let bm = (bj * b)
356361 let bh = bG[0]
357362 let bm = bG[1]
358363 let bn = bG[2]
359- $Tuple2(nil, makeString(["%d%d%d", toString(bh), toString(bm), toString(bn)], e))
364+ let bH = {
365+ let ba = invoke(aX, "getVotingResultStakedREADONLY", [bd], nil)
366+ if ($isInstanceOf(ba, "Int"))
367+ then ba
368+ else throw(($getType(ba) + " couldn't be cast to Int"))
369+ }
370+ $Tuple2(nil, makeString(["%d%d%d%d", toString(bh), toString(bm), toString(bn), toString(bH)], e))
360371 }
361372
362373
367378 let bh = bG[0]
368379 let bm = bG[1]
369380 let bn = bG[2]
370- let bH = v(aM, aE(am, bd))
371- let bI = split(D(invoke(aM, "claimWxREADONLY", [bd, am], nil)), e)
372- let bJ = valueOrErrorMessage(parseInt(bI[5]), "couldn't parse minRewardPart")
373- let bK = valueOrErrorMessage(parseInt(bI[6]), "couldn't parse boostRewardPart")
374- let bL = bI[7]
375- let bM = if ((bK == 0))
381+ let bI = v(aM, aE(am, bd))
382+ let bJ = split(D(invoke(aM, "claimWxREADONLY", [bd, am], nil)), e)
383+ let bK = valueOrErrorMessage(parseInt(bJ[5]), "couldn't parse minRewardPart")
384+ let bL = valueOrErrorMessage(parseInt(bJ[6]), "couldn't parse boostRewardPart")
385+ let bM = bJ[7]
386+ let bN = if ((bL == 0))
376387 then (1 * b)
377- else fraction((bJ + bK), b, bJ)
378- $Tuple2(nil, makeString(["%d%d%d%d%d%s", toString(bh), toString(bm), toString(bn), toString(bH), toString(bM), bL], e))
388+ else fraction((bK + bL), b, bK)
389+ $Tuple2(nil, makeString(["%d%d%d%d%d%s", toString(bh), toString(bm), toString(bn), toString(bI), toString(bN), bM], e))
379390 }
380391
381392
382393
383394 @Callable(bB)
384-func calcBoostBulkInternalREADONLY (bN,bO,bP,bQ,bR,bS,bT) = if ((bN == size(bO)))
385- then $Tuple2(nil, bT)
395+func calcBoostBulkInternalREADONLY (bO,bP,bQ,bR,bS,bT,bU) = if ((bO == size(bP)))
396+ then $Tuple2(nil, bU)
386397 else {
387- let bU = bO[bN]
388- let bV = bP[bN]
389- let bW = bQ[bN]
390- let bX = bR[bN]
391- let bY = {
392- let ba = invoke(this, "calcBoostREADONLY", [bU, bV, bW, bX, bS], nil)
398+ let bV = bP[bO]
399+ let bW = bQ[bO]
400+ let bX = bR[bO]
401+ let bY = bS[bO]
402+ let bZ = {
403+ let ba = invoke(this, "calcBoostREADONLY", [bV, bW, bX, bY, bT], nil)
393404 if ($isInstanceOf(ba, "String"))
394405 then ba
395406 else throw(($getType(ba) + " couldn't be cast to String"))
396407 }
397- let bZ = (bT :+ bY)
398- let ca = {
399- let ba = invoke(this, "calcBoostBulkInternalREADONLY", [(bN + 1), bO, bP, bQ, bR, bS, bZ], nil)
408+ let ca = (bU :+ bZ)
409+ let cb = {
410+ let ba = invoke(this, "calcBoostBulkInternalREADONLY", [(bO + 1), bP, bQ, bR, bS, bT, ca], nil)
400411 if ($isInstanceOf(ba, "List[Any]"))
401412 then ba
402413 else throw(($getType(ba) + " couldn't be cast to List[Any]"))
403414 }
404- if ((ca == ca))
405- then $Tuple2(nil, ca)
415+ if ((cb == cb))
416+ then $Tuple2(nil, cb)
406417 else throw("Strict value is not equal to itself.")
407418 }
408419
409420
410421
411422 @Callable(bB)
412-func calcBoostBulkREADONLY (bU,bV,bW,bX,bS) = {
413- let bZ = invoke(this, "calcBoostBulkInternalREADONLY", [0, bU, bV, bW, bX, bS, nil], nil)
414- $Tuple2(nil, bZ)
423+func calcBoostBulkREADONLY (bV,bW,bX,bY,bT) = {
424+ let ca = invoke(this, "calcBoostBulkInternalREADONLY", [0, bV, bW, bX, bY, bT, nil], nil)
425+ $Tuple2(nil, ca)
415426 }
416427
417428
418429
419430 @Callable(bB)
420-func calcBoostREADONLY (bU,bV,bW,bX,bS) = {
421- let cb = aW
422- let cc = "empty"
423- let cd = parseIntValue(split(t(aX, ag()), e)[4])
424- let aG = if ((bX == ""))
425- then cc
426- else bX
427- let aF = if ((bS == ""))
428- then cc
429- else bS
430- let ce = valueOrElse(getString(aX, al(bS)), cc)
431- let cf = valueOrElse(getInteger(aX, ap(ce)), 0)
432- let cg = valueOrElse(getInteger(aX, ar(ce)), height)
433- let bq = valueOrElse(getInteger(aX, as(ce)), 0)
434- let ch = (cg + bq)
435- let ci = max([(ch - height), 0])
436- let cj = (cf + bU)
437- let ck = min([(ci + bV), cd])
438- let cl = B(x(invoke(aX, "gwxUserInfoREADONLY", [aF], nil))[0])
439- let cm = bo(cj, ck, cd)[0]
440- let cn = x(invoke(cb, "calcGwxParamsREADONLY", [cm, height, ck], nil))
441- let co = (cm - cl)
442- let cp = B(cn[0])
443- let cq = B(cn[1])
444- let aw = toString(B(cn[2]))
445- let cr = aA()
446- let cs = ((cm * ck) / 2)
447- let ct = v(aX, cr)
448- let cu = {
431+func calcBoostREADONLY (bV,bW,bX,bY,bT) = {
432+ let cc = {
433+ let ba = invoke(aV, "getBoostCoeffREADONLY", nil, nil)
434+ if ($isInstanceOf(ba, "Int"))
435+ then ba
436+ else throw(($getType(ba) + " couldn't be cast to Int"))
437+ }
438+ let cd = aW
439+ let ce = "empty"
440+ let cf = parseIntValue(split(t(aX, ag()), e)[4])
441+ let aG = if ((bY == ""))
442+ then ce
443+ else bY
444+ let aF = if ((bT == ""))
445+ then ce
446+ else bT
447+ let cg = valueOrElse(getString(aX, al(bT)), ce)
448+ let ch = valueOrElse(getInteger(aX, ap(cg)), 0)
449+ let ci = valueOrElse(getInteger(aX, ar(cg)), height)
450+ let bq = valueOrElse(getInteger(aX, as(cg)), 0)
451+ let cj = (ci + bq)
452+ let ck = max([(cj - height), 0])
453+ let cl = (ch + bV)
454+ let cm = min([(ck + bW), cf])
455+ let cn = B(x(invoke(aX, "gwxUserInfoREADONLY", [aF], nil))[0])
456+ let co = bo(cl, cm, cf)[0]
457+ let cp = {
449458 let ba = invoke(aX, "getTotalCachedGwxREADONLY", nil, nil)
450459 if ($isInstanceOf(ba, "Int"))
451460 then ba
452461 else throw(($getType(ba) + " couldn't be cast to Int"))
453462 }
454- let cv = 1000
455- let cw = (w(aV, aN()) * cv)
456- let cx = aE(aF, aG)
457- let cy = aH(aG)
458- let cz = aL(aM, cx)
459- let cA = aL(aM, cy)
460- let cB = (cz + bW)
461- let cC = (cA + bW)
462- let bg = if ((aG != cc))
463+ let cq = 1000
464+ let cr = (w(aV, aN()) * cq)
465+ let cs = aE(aF, aG)
466+ let ct = aH(aG)
467+ let cu = aL(aM, cs)
468+ let cv = aL(aM, ct)
469+ let bg = if ((aG != ce))
463470 then {
464471 let be = valueOrErrorMessage(getString(aT, R(aG)), ("unsupported lp asset " + aG))
465472 getIntegerValue(aT, V(be))
466473 }
467474 else 0
468- let cD = fraction(cw, bg, (f * 3))
469- let cE = if ((cC != 0))
470- then fraction(cD, b, cC)
475+ let cw = fraction(cr, bg, (f * cc))
476+ let cx = if ((cv != 0))
477+ then fraction(cw, b, cv)
471478 else 0
472- let cF = fraction(cE, cB, b)
473- let cG = (cD * 2)
474- let cH = fraction(cm, cG, (cu + co))
475- let cI = min([cH, (cF * 2)])
476- let cJ = if ((cF == 0))
479+ let cy = fraction(cx, cu, b)
480+ let cz = (cw * (cc - 1))
481+ let cA = fraction(cn, cz, cp)
482+ let cB = min([cA, (cy * (cc - 1))])
483+ let cC = if ((cy == 0))
477484 then (1 * b)
478- else fraction((cI + cF), b, cF)
479- $Tuple2(nil, makeString(["%d%d%s", toString(cm), toString(cJ), "d"], e))
485+ else fraction((cB + cy), b, cy)
486+ $Tuple2(nil, makeString(["%d%d%s", toString(co), toString(cC), "d"], e))
480487 }
481488
482489
483490
484491 @Callable(bB)
485492 func wxEmissionStatsREADONLY () = {
486- let cK = toString(b)
487- let cL = "1"
493+ let cD = toString(b)
494+ let cE = "1"
488495 let bh = w(aV, aN())
489- let cM = w(aV, aP())
490- let cN = if ((cM > height))
496+ let cF = w(aV, aP())
497+ let cG = if ((cF > height))
491498 then 0
492- else (height - cM)
493- let cO = (1440 * 365)
494- let cP = (201000000 * b)
495- let cQ = if ((cN > cO))
496- then cP
497- else fraction(cP, cN, cO)
498- let cR = ((bh * cN) + cQ)
499- let cS = v(aX, ah())
500- let cT = v(aX, ai())
501- let cU = v(aX, aj())
502- $Tuple2(nil, makeString(["%d%d%d%d", toString(cR), toString(cS), toString(cT), toString(cU)], e))
499+ else (height - cF)
500+ let cH = (1440 * 365)
501+ let cI = (201000000 * b)
502+ let cJ = if ((cG > cH))
503+ then cI
504+ else fraction(cI, cG, cH)
505+ let cK = ((bh * cG) + cJ)
506+ let cL = v(aX, ah())
507+ let cM = v(aX, ai())
508+ let cN = v(aX, aj())
509+ $Tuple2(nil, makeString(["%d%d%d%d", toString(cK), toString(cL), toString(cM), toString(cN)], e))
503510 }
504511
505512
506513
507514 @Callable(bB)
508-func poolStatsREADONLY (cV) = {
509- let aZ = addressFromStringValue(t(aT, U(cV)))
510- let cW = {
515+func poolStatsREADONLY (cO) = {
516+ let aZ = addressFromStringValue(t(aT, U(cO)))
517+ let cP = {
511518 let ba = invoke(aT, "getPoolStatusREADONLY", [toString(aZ)], nil)
512519 if ($isInstanceOf(ba, "Int"))
513520 then ba
514521 else throw(($getType(ba) + " couldn't be cast to Int"))
515522 }
516- let cX = "%d%d%d%d%d%d%d%d%d%s"
517- if ((cW == 4))
518- then $Tuple2(nil, makeString([cX, toString(0), toString(0), toString(0), toString(0), toString(0), toString(0), toString(0), toString(0), toString(0), toString(false)], e))
523+ let cQ = "%d%d%d%d%d%d%d%d%d%s"
524+ if ((cP == 4))
525+ then $Tuple2(nil, makeString([cQ, toString(0), toString(0), toString(0), toString(0), toString(0), toString(0), toString(0), toString(0), toString(0), toString(false)], e))
519526 else {
520- let cY = x(invoke(aZ, "getPoolConfigWrapperREADONLY", nil, nil))
521- let bd = fromBase58String(D(cY[j]))
522- let cZ = D(cY[k])
523- let da = D(cY[l])
524- let db = D(cY[o])
525- let dc = D(cY[p])
526- let dd = parseIntValue(D(cY[m]))
527- let de = parseIntValue(D(cY[n]))
528- let df = valueOrErrorMessage(assetInfo(bd), (("Asset " + toBase58String(bd)) + " doesn't exist")).quantity
529- let dg = B(invoke(aZ, "getAccBalanceWrapperREADONLY", [cZ], nil))
530- let dh = B(invoke(aZ, "getAccBalanceWrapperREADONLY", [da], nil))
531- let di = if ((df == 0))
527+ let cR = x(invoke(aZ, "getPoolConfigWrapperREADONLY", nil, nil))
528+ let bd = fromBase58String(D(cR[j]))
529+ let cS = D(cR[k])
530+ let cT = D(cR[l])
531+ let cU = D(cR[o])
532+ let cV = D(cR[p])
533+ let cW = parseIntValue(D(cR[m]))
534+ let cX = parseIntValue(D(cR[n]))
535+ let cY = valueOrErrorMessage(assetInfo(bd), (("Asset " + toBase58String(bd)) + " doesn't exist")).quantity
536+ let cZ = B(invoke(aZ, "getAccBalanceWrapperREADONLY", [cS], nil))
537+ let da = B(invoke(aZ, "getAccBalanceWrapperREADONLY", [cT], nil))
538+ let db = if ((cY == 0))
532539 then [toString(g), toString(g), toString(g)]
533- else x(invoke(aZ, "calcPricesWrapperREADONLY", [dg, dh, df], nil))
534- let dj = 0
535- let dk = B(invoke(aZ, "fromX18WrapperREADONLY", [di[1], b], nil))
536- let dl = B(invoke(aZ, "fromX18WrapperREADONLY", [di[2], b], nil))
540+ else x(invoke(aZ, "calcPricesWrapperREADONLY", [cZ, da, cY], nil))
541+ let dc = 0
542+ let dd = B(invoke(aZ, "fromX18WrapperREADONLY", [db[1], b], nil))
543+ let de = B(invoke(aZ, "fromX18WrapperREADONLY", [db[2], b], nil))
537544 let bg = getIntegerValue(aT, V(toString(aZ)))
538- let dm = aY(aZ)
539- let dn = bb(aZ)
540- let do = {
545+ let df = aY(aZ)
546+ let dg = bb(aZ)
547+ let dh = {
541548 let ba = invoke(aT, "isPoolOneTokenOperationsDisabledREADONLY", [toString(aZ)], nil)
542549 if ($isInstanceOf(ba, "Boolean"))
543550 then ba
544551 else throw(($getType(ba) + " couldn't be cast to Boolean"))
545552 }
546- let dp = !(do)
547- $Tuple2(nil, makeString([cX, toString(dg), toString(dh), toString(df), toString(dj), toString(dk), toString(dl), toString(bg), toString(dm), toString(dn), toString(dp)], e))
553+ let di = !(dh)
554+ $Tuple2(nil, makeString([cQ, toString(cZ), toString(da), toString(cY), toString(dc), toString(dd), toString(de), toString(bg), toString(df), toString(dg), toString(di)], e))
548555 }
549556 }
550557
551558
552559
553560 @Callable(bB)
554-func poolEvaluatePutByAmountAssetREADONLY (cV,dq) = {
555- let aZ = addressFromStringValue(t(aT, U(cV)))
556- let cY = x(invoke(aZ, "getPoolConfigWrapperREADONLY", nil, nil))
557- let bd = fromBase58String(D(cY[j]))
558- let dr = D(cY[k])
559- let ds = fromBase58String(dr)
560- let dt = D(cY[l])
561- let du = fromBase58String(dt)
562- let dd = parseIntValue(D(cY[m]))
563- let de = parseIntValue(D(cY[n]))
564- let dv = D(cY[i])
565- let df = valueOrErrorMessage(assetInfo(bd), (("Asset " + toBase58String(bd)) + " doesn't exist")).quantity
566- let dg = B(invoke(aZ, "getAccBalanceWrapperREADONLY", [dr], nil))
567- let dh = B(invoke(aZ, "getAccBalanceWrapperREADONLY", [dt], nil))
568- let dw = parseBigIntValue(D(invoke(aZ, "toX18WrapperREADONLY", [dg, dd], nil)))
569- let dx = parseBigIntValue(D(invoke(aZ, "toX18WrapperREADONLY", [dh, de], nil)))
570- let dy = if ((df == 0))
561+func poolEvaluatePutByAmountAssetREADONLY (cO,dj) = {
562+ let aZ = addressFromStringValue(t(aT, U(cO)))
563+ let cR = x(invoke(aZ, "getPoolConfigWrapperREADONLY", nil, nil))
564+ let bd = fromBase58String(D(cR[j]))
565+ let dk = D(cR[k])
566+ let dl = fromBase58String(dk)
567+ let dm = D(cR[l])
568+ let dn = fromBase58String(dm)
569+ let cW = parseIntValue(D(cR[m]))
570+ let cX = parseIntValue(D(cR[n]))
571+ let do = D(cR[i])
572+ let cY = valueOrErrorMessage(assetInfo(bd), (("Asset " + toBase58String(bd)) + " doesn't exist")).quantity
573+ let cZ = B(invoke(aZ, "getAccBalanceWrapperREADONLY", [dk], nil))
574+ let da = B(invoke(aZ, "getAccBalanceWrapperREADONLY", [dm], nil))
575+ let dp = parseBigIntValue(D(invoke(aZ, "toX18WrapperREADONLY", [cZ, cW], nil)))
576+ let dq = parseBigIntValue(D(invoke(aZ, "toX18WrapperREADONLY", [da, cX], nil)))
577+ let dr = if ((cY == 0))
571578 then g
572- else parseBigIntValue(D(invoke(aZ, "calcPriceBigIntWrapperREADONLY", [toString(dx), toString(dw)], nil)))
573- let dj = B(invoke(aZ, "fromX18WrapperREADONLY", [toString(dy), b], nil))
574- let dz = parseBigIntValue(D(invoke(aZ, "toX18WrapperREADONLY", [dq, dd], nil)))
575- let dA = fraction(dz, dy, d)
576- let dB = B(invoke(aZ, "fromX18WrapperREADONLY", [toString(dA), de], nil))
577- let bZ = invoke(aZ, "estimatePutOperationWrapperREADONLY", ["", 500000, dq, ds, dB, du, "", true, false], nil)
578- let dC = {
579- let z = bZ
579+ else parseBigIntValue(D(invoke(aZ, "calcPriceBigIntWrapperREADONLY", [toString(dq), toString(dp)], nil)))
580+ let dc = B(invoke(aZ, "fromX18WrapperREADONLY", [toString(dr), b], nil))
581+ let ds = parseBigIntValue(D(invoke(aZ, "toX18WrapperREADONLY", [dj, cW], nil)))
582+ let dt = fraction(ds, dr, d)
583+ let du = B(invoke(aZ, "fromX18WrapperREADONLY", [toString(dt), cX], nil))
584+ let ca = invoke(aZ, "estimatePutOperationWrapperREADONLY", ["", 500000, dj, dl, du, dn, "", true, false], nil)
585+ let dv = {
586+ let z = ca
580587 if (if (if ($isInstanceOf(z._1, "Int"))
581588 then if ($isInstanceOf(z._3, "Int"))
582589 then if ($isInstanceOf(z._4, "Int"))
589596 then (size(z) == 13)
590597 else false)
591598 then {
592- let dD = z._1
593- let dE = z._3
594- let dF = z._4
595- let dG = z._5
596- let dH = z._6
597- $Tuple5(dD, dE, dF, dG, dH)
599+ let dw = z._1
600+ let dx = z._3
601+ let dy = z._4
602+ let dz = z._5
603+ let dA = z._6
604+ $Tuple5(dw, dx, dy, dz, dA)
598605 }
599606 else throw("Couldn't cast types")
600607 }
601- let dD = dC._1
602- let dE = dC._2
603- let dF = dC._3
604- let dG = dC._4
605- let dH = dC._5
606- $Tuple2(nil, makeString(["%d%d%d%d%d%d%d%d", toString(dD), toString(dj), toString(dF), toString(dG), toString(dH), dv, toString(dq), toString(dB)], e))
608+ let dw = dv._1
609+ let dx = dv._2
610+ let dy = dv._3
611+ let dz = dv._4
612+ let dA = dv._5
613+ $Tuple2(nil, makeString(["%d%d%d%d%d%d%d%d", toString(dw), toString(dc), toString(dy), toString(dz), toString(dA), do, toString(dj), toString(du)], e))
607614 }
608615
609616
610617
611618 @Callable(bB)
612-func poolEvaluatePutByPriceAssetREADONLY (cV,dB) = {
613- let aZ = addressFromStringValue(t(aT, U(cV)))
614- let cY = x(invoke(aZ, "getPoolConfigWrapperREADONLY", nil, nil))
615- let bd = fromBase58String(D(cY[j]))
616- let dr = D(cY[k])
617- let ds = fromBase58String(dr)
618- let dt = D(cY[l])
619- let du = fromBase58String(dt)
620- let dd = parseIntValue(D(cY[m]))
621- let de = parseIntValue(D(cY[n]))
622- let dv = D(cY[i])
623- let df = valueOrErrorMessage(assetInfo(bd), (("Asset " + toBase58String(bd)) + " doesn't exist")).quantity
624- let dI = B(invoke(aZ, "getAccBalanceWrapperREADONLY", [dr], nil))
625- let dJ = B(invoke(aZ, "getAccBalanceWrapperREADONLY", [dt], nil))
626- let dK = parseBigIntValue(D(invoke(aZ, "toX18WrapperREADONLY", [dI, dd], nil)))
627- let dL = parseBigIntValue(D(invoke(aZ, "toX18WrapperREADONLY", [dJ, de], nil)))
628- let dy = if ((df == 0))
619+func poolEvaluatePutByPriceAssetREADONLY (cO,du) = {
620+ let aZ = addressFromStringValue(t(aT, U(cO)))
621+ let cR = x(invoke(aZ, "getPoolConfigWrapperREADONLY", nil, nil))
622+ let bd = fromBase58String(D(cR[j]))
623+ let dk = D(cR[k])
624+ let dl = fromBase58String(dk)
625+ let dm = D(cR[l])
626+ let dn = fromBase58String(dm)
627+ let cW = parseIntValue(D(cR[m]))
628+ let cX = parseIntValue(D(cR[n]))
629+ let do = D(cR[i])
630+ let cY = valueOrErrorMessage(assetInfo(bd), (("Asset " + toBase58String(bd)) + " doesn't exist")).quantity
631+ let dB = B(invoke(aZ, "getAccBalanceWrapperREADONLY", [dk], nil))
632+ let dC = B(invoke(aZ, "getAccBalanceWrapperREADONLY", [dm], nil))
633+ let dD = parseBigIntValue(D(invoke(aZ, "toX18WrapperREADONLY", [dB, cW], nil)))
634+ let dE = parseBigIntValue(D(invoke(aZ, "toX18WrapperREADONLY", [dC, cX], nil)))
635+ let dr = if ((cY == 0))
629636 then g
630- else parseBigIntValue(D(invoke(aZ, "calcPriceBigIntWrapperREADONLY", [toString(dL), toString(dK)], nil)))
631- let dj = B(invoke(aZ, "fromX18WrapperREADONLY", [toString(dy), b], nil))
632- let dA = parseBigIntValue(D(invoke(aZ, "toX18WrapperREADONLY", [dB, de], nil)))
633- let dz = fraction(dA, d, dy)
634- let dq = B(invoke(aZ, "fromX18WrapperREADONLY", [toString(dz), dd], nil))
635- let bZ = invoke(aZ, "estimatePutOperationWrapperREADONLY", ["", 500000, dq, ds, dB, du, "", true, false], nil)
636- let dM = {
637- let z = bZ
637+ else parseBigIntValue(D(invoke(aZ, "calcPriceBigIntWrapperREADONLY", [toString(dE), toString(dD)], nil)))
638+ let dc = B(invoke(aZ, "fromX18WrapperREADONLY", [toString(dr), b], nil))
639+ let dt = parseBigIntValue(D(invoke(aZ, "toX18WrapperREADONLY", [du, cX], nil)))
640+ let ds = fraction(dt, d, dr)
641+ let dj = B(invoke(aZ, "fromX18WrapperREADONLY", [toString(ds), cW], nil))
642+ let ca = invoke(aZ, "estimatePutOperationWrapperREADONLY", ["", 500000, dj, dl, du, dn, "", true, false], nil)
643+ let dF = {
644+ let z = ca
638645 if (if (if ($isInstanceOf(z._1, "Int"))
639646 then if ($isInstanceOf(z._3, "Int"))
640647 then if ($isInstanceOf(z._4, "Int"))
647654 then (size(z) == 13)
648655 else false)
649656 then {
650- let dD = z._1
651- let dE = z._3
652- let dF = z._4
653- let dG = z._5
654- let dH = z._6
655- $Tuple5(dD, dE, dF, dG, dH)
657+ let dw = z._1
658+ let dx = z._3
659+ let dy = z._4
660+ let dz = z._5
661+ let dA = z._6
662+ $Tuple5(dw, dx, dy, dz, dA)
656663 }
657664 else throw("Couldn't cast types")
658665 }
659- let dD = dM._1
660- let dE = dM._2
661- let dF = dM._3
662- let dG = dM._4
663- let dH = dM._5
664- $Tuple2(nil, makeString(["%d%d%d%d%d%d%d%d", toString(dD), toString(dj), toString(dF), toString(dG), toString(dH), dv, toString(dq), toString(dB)], e))
666+ let dw = dF._1
667+ let dx = dF._2
668+ let dy = dF._3
669+ let dz = dF._4
670+ let dA = dF._5
671+ $Tuple2(nil, makeString(["%d%d%d%d%d%d%d%d", toString(dw), toString(dc), toString(dy), toString(dz), toString(dA), do, toString(dj), toString(du)], e))
665672 }
666673
667674
668675
669676 @Callable(bB)
670-func poolEvaluateGetREADONLY (dN,dO) = {
671- let aZ = addressFromStringValue(t(aT, U(dN)))
672- let bZ = invoke(aZ, "estimateGetOperationWrapperREADONLY", ["", dN, dO, toString(aZ)], nil)
673- let dP = {
674- let z = bZ
677+func poolEvaluateGetREADONLY (dG,dH) = {
678+ let aZ = addressFromStringValue(t(aT, U(dG)))
679+ let ca = invoke(aZ, "estimateGetOperationWrapperREADONLY", ["", dG, dH, toString(aZ)], nil)
680+ let dI = {
681+ let z = ca
675682 if (if (if ($isInstanceOf(z._1, "Int"))
676683 then if ($isInstanceOf(z._2, "Int"))
677684 then if ($isInstanceOf(z._5, "Int"))
688695 then (size(z) == 10)
689696 else false)
690697 then {
691- let dQ = z._1
692- let dR = z._2
693- let dF = z._5
694- let dG = z._6
695- let dH = z._7
696- let dj = z._8
697- let dv = z._9
698- $Tuple7(dQ, dR, dF, dG, dH, dj, dv)
698+ let dJ = z._1
699+ let dK = z._2
700+ let dy = z._5
701+ let dz = z._6
702+ let dA = z._7
703+ let dc = z._8
704+ let do = z._9
705+ $Tuple7(dJ, dK, dy, dz, dA, dc, do)
699706 }
700707 else throw("Couldn't cast types")
701708 }
702- let dQ = dP._1
703- let dR = dP._2
704- let dF = dP._3
705- let dG = dP._4
706- let dH = dP._5
707- let dj = dP._6
708- let dv = dP._7
709- $Tuple2(nil, makeString(["%d%d%d%d%d%d%d", toString(dQ), toString(dR), toString(dF), toString(dG), toString(dH), dj, dv], e))
709+ let dJ = dI._1
710+ let dK = dI._2
711+ let dy = dI._3
712+ let dz = dI._4
713+ let dA = dI._5
714+ let dc = dI._6
715+ let do = dI._7
716+ $Tuple2(nil, makeString(["%d%d%d%d%d%d%d", toString(dJ), toString(dK), toString(dy), toString(dz), toString(dA), dc, do], e))
710717 }
711718
712719
713720
714721 @Callable(bB)
715722 func gwxUserInfoREADONLY (am) = {
716- let dS = x(invoke(aX, "gwxUserInfoREADONLY", [am], nil))
717- let dT = B(dS[0])
718- $Tuple2(nil, makeString(["%d", toString(dT)], e))
723+ let dL = x(invoke(aX, "gwxUserInfoREADONLY", [am], nil))
724+ let dM = B(dL[0])
725+ $Tuple2(nil, makeString(["%d", toString(dM)], e))
719726 }
720727
721728
722729
723730 @Callable(bB)
724-func unstakeAndGetOneTknV2 (aZ,dU,dV,dW) = {
725- let ca = invoke(addressFromStringValue(aZ), "unstakeAndGetOneTknV2", [dU, dV, dW], nil)
726- if ((ca == ca))
731+func unstakeAndGetOneTknV2 (aZ,dN,dO,dP) = {
732+ let cb = invoke(addressFromStringValue(aZ), "unstakeAndGetOneTknV2", [dN, dO, dP], nil)
733+ if ((cb == cb))
727734 then $Tuple2(nil, unit)
728735 else throw("Strict value is not equal to itself.")
729736 }
731738
732739
733740 @Callable(bB)
734-func getKeysBulkInternal (bN,dX,bT) = if ((bN == size(dX)))
735- then $Tuple2(nil, bT)
741+func getKeysBulkInternal (bO,dQ,bU) = if ((bO == size(dQ)))
742+ then $Tuple2(nil, bU)
736743 else {
737- let cp = split(dX[bN], "++")
738- let bv = addressFromStringValue(cp[0])
739- let s = cp[1]
740- let bw = cp[2]
744+ let dR = split(dQ[bO], "++")
745+ let bv = addressFromStringValue(dR[0])
746+ let s = dR[1]
747+ let bw = dR[2]
741748 let y = bu(bv, s, bw)
742- let bZ = (bT :+ y)
743- let ca = invoke(this, "getKeysBulkInternal", [(bN + 1), dX, bZ], nil)
744- if ((ca == ca))
745- then $Tuple2(nil, ca)
749+ let ca = (bU :+ y)
750+ let cb = invoke(this, "getKeysBulkInternal", [(bO + 1), dQ, ca], nil)
751+ if ((cb == cb))
752+ then $Tuple2(nil, cb)
746753 else throw("Strict value is not equal to itself.")
747754 }
748755
749756
750757
751758 @Callable(bB)
752-func getKeysBulk (dX) = {
753- let bZ = invoke(this, "getKeysBulkInternal", [0, dX, nil], nil)
754- $Tuple2(nil, bZ)
759+func getKeysBulk (dQ) = {
760+ let ca = invoke(this, "getKeysBulkInternal", [0, dQ, nil], nil)
761+ $Tuple2(nil, ca)
755762 }
756763
757764
758765
759766 @Callable(bB)
760-func setManager (dY) = {
767+func setManager (dS) = {
761768 let bF = bA(bB)
762769 if ((bF == bF))
763770 then {
764- let dZ = fromBase58String(dY)
765- if ((dZ == dZ))
766- then [StringEntry(H(), dY)]
771+ let dT = fromBase58String(dS)
772+ if ((dT == dT))
773+ then [StringEntry(H(), dS)]
767774 else throw("Strict value is not equal to itself.")
768775 }
769776 else throw("Strict value is not equal to itself.")
773780
774781 @Callable(bB)
775782 func confirmManager () = {
776- let ea = bz()
777- let eb = if (isDefined(ea))
783+ let dU = bz()
784+ let dV = if (isDefined(dU))
778785 then true
779786 else throw("No pending manager")
780- if ((eb == eb))
787+ if ((dV == dV))
781788 then {
782- let ec = if ((bB.callerPublicKey == value(ea)))
789+ let dW = if ((bB.callerPublicKey == value(dU)))
783790 then true
784791 else throw("You are not pending manager")
785- if ((ec == ec))
786- then [StringEntry(G(), toBase58String(value(ea))), DeleteEntry(H())]
792+ if ((dW == dW))
793+ then [StringEntry(G(), toBase58String(value(dU))), DeleteEntry(H())]
787794 else throw("Strict value is not equal to itself.")
788795 }
789796 else throw("Strict value is not equal to itself.")
790797 }
791798
792799
793-@Verifier(ed)
794-func ee () = {
795- let ef = {
800+@Verifier(dX)
801+func dY () = {
802+ let dZ = {
796803 let z = bx()
797804 if ($isInstanceOf(z, "ByteVector"))
798805 then {
800807 bD
801808 }
802809 else if ($isInstanceOf(z, "Unit"))
803- then ed.senderPublicKey
810+ then dX.senderPublicKey
804811 else throw("Match error")
805812 }
806- sigVerify(ed.bodyBytes, ed.proofs[0], ef)
813+ sigVerify(dX.bodyBytes, dX.proofs[0], dZ)
807814 }
808815
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = 8
55
66 let b = 100000000
77
88 let c = 18
99
1010 let d = toBigInt(1000000000000000000)
1111
1212 let e = "__"
1313
1414 let f = b
1515
1616 let g = toBigInt(0)
1717
1818 let h = 1
1919
2020 let i = 2
2121
2222 let j = 3
2323
2424 let k = 4
2525
2626 let l = 5
2727
2828 let m = 6
2929
3030 let n = 7
3131
3232 let o = 8
3333
3434 let p = 9
3535
3636 let q = 10
3737
3838 func r (s) = valueOrErrorMessage(getString(s), (("mandatory this." + s) + " is not defined"))
3939
4040
4141 func t (u,s) = valueOrErrorMessage(getString(u, s), (((("mandatory " + toString(u)) + ".") + s) + " is not defined"))
4242
4343
4444 func v (u,s) = valueOrElse(getInteger(u, s), 0)
4545
4646
4747 func w (u,s) = valueOrErrorMessage(getInteger(u, s), (("mandatory this." + s) + " is not defined"))
4848
4949
5050 func x (y) = {
5151 let z = y
5252 if ($isInstanceOf(z, "List[Any]"))
5353 then {
5454 let A = z
5555 A
5656 }
5757 else throw("fail to cast into List[Any]")
5858 }
5959
6060
6161 func B (y) = {
6262 let z = y
6363 if ($isInstanceOf(z, "Int"))
6464 then {
6565 let C = z
6666 C
6767 }
6868 else throw("fail to cast into Int")
6969 }
7070
7171
7272 func D (y) = {
7373 let z = y
7474 if ($isInstanceOf(z, "String"))
7575 then {
7676 let E = z
7777 E
7878 }
7979 else throw("fail to cast into String")
8080 }
8181
8282
8383 func F () = "%s%s__config__factoryAddress"
8484
8585
8686 func G () = "%s__managerPublicKey"
8787
8888
8989 func H () = "%s__pendingManagerPublicKey"
9090
9191
9292 let I = 1
9393
9494 let J = 2
9595
9696 let K = 3
9797
9898 let L = 4
9999
100100 let M = 5
101101
102102 let N = 6
103103
104104 let O = 7
105105
106106 let P = 8
107107
108108 func Q () = "%s__factoryConfig"
109109
110110
111111 func R (S) = makeString(["%s%s%s", S, "mappings__lpAsset2PoolContract"], e)
112112
113113
114114 func T () = "%s__lpTokensList"
115115
116116
117117 func U (S) = makeString(["%s%s%s", S, "mappings__lpAsset2PoolContract"], e)
118118
119119
120120 func V (W) = makeString(["%s%s", "poolWeight", W], e)
121121
122122
123123 func X () = addressFromStringValue(r(F()))
124124
125125
126126 func Y () = split(valueOrElse(getString(X(), T()), ""), e)
127127
128128
129129 func Z (aa) = split(t(aa, Q()), e)
130130
131131
132132 func ab (ac) = addressFromStringValue(ac[J])
133133
134134
135135 func ad (ac) = addressFromStringValue(ac[M])
136136
137137
138138 func ae (ac) = addressFromStringValue(ac[I])
139139
140140
141141 func af (ac) = addressFromStringValue(ac[P])
142142
143143
144144 func ag () = "%s__config"
145145
146146
147147 func ah () = "%s%s__stats__activeTotalLocked"
148148
149149
150150 func ai () = "%s%s__stats__locksDurationSumInBlocks"
151151
152152
153153 func aj () = "%s%s__stats__locksCount"
154154
155155
156156 func ak () = "%s%s__stats__activeUsersCount"
157157
158158
159159 func al (am) = makeString(["%s%s%s__mapping__user2num", am], e)
160160
161161
162162 func an (ao) = makeString(["%s%s%s__mapping__num2user", ao], e)
163163
164164
165165 func ap (aq) = makeString(["%s%d%s__paramByUserNum", aq, "amount"], e)
166166
167167
168168 func ar (aq) = makeString(["%s%d%s__paramByUserNum", aq, "start"], e)
169169
170170
171171 func as (aq) = makeString(["%s%d%s__paramByUserNum", aq, "duration"], e)
172172
173173
174174 func at (aq) = makeString(["%s%d%s__paramByUserNum", aq, "k"], e)
175175
176176
177177 func au (aq) = makeString(["%s%d%s__paramByUserNum", aq, "b"], e)
178178
179179
180180 func av (aq,aw) = makeString(["%s%d%s%d__paramByPeriod", aq, "k", aw], e)
181181
182182
183183 func ax (aq,aw) = makeString(["%s%d%s%d__paramByPeriod", aq, "b", aw], e)
184184
185185
186186 func ay (aq) = makeString(["%s%d__userBoostEmissionLastInt", aq], e)
187187
188188
189189 func az (aq) = makeString(["%s%d__maxBoostInt", aq], e)
190190
191191
192192 func aA () = "%s%s__maxBoostInt__total"
193193
194194
195195 func aB (aq) = makeString(["%s%d__userBoostAvaliableToClaimTotal", aq], e)
196196
197197
198198 func aC (aq) = makeString(["%s%d__userBoostClaimed", aq], e)
199199
200200
201201 func aD () = "%s%s__gwxCached__total"
202202
203203
204204 func aE (aF,aG) = makeString(["%s%s%s__staked", aF, aG], e)
205205
206206
207207 func aH (aG) = ("%s%s%s__staked__total__" + aG)
208208
209209
210210 func aI (aG,aF) = makeString(["%s%s%s__claimed", aF, aG], e)
211211
212212
213213 func aJ (aG,aF) = makeString(["%s%s%s__claimedMinReward", aF, aG], e)
214214
215215
216216 func aK (aG,aF) = makeString(["%s%s%s__claimedBoostReward", aF, aG], e)
217217
218218
219219 func aL (aM,s) = valueOrElse(getInteger(aM, s), 0)
220220
221221
222222 func aN () = "%s%s__ratePerBlock__current"
223223
224224
225225 func aO () = "%s%s__ratePerBlockMax__current"
226226
227227
228228 func aP () = "%s%s__emission__startBlock"
229229
230230
231231 func aQ () = "%s%s__emission__duration"
232232
233233
234234 func aR () = "%s%s__emission__endBlock"
235235
236236
237237 func aS () = "%s__addonAddr"
238238
239239
240240 let aT = X()
241241
242242 let aU = Z(aT)
243243
244244 let aV = ad(aU)
245245
246246 let aM = ae(aU)
247247
248248 let aW = af(aU)
249249
250250 let aX = ab(aU)
251251
252252 func aY (aZ) = {
253253 let ba = invoke(aT, "getInFeeREADONLY", [toString(aZ)], nil)
254254 if ($isInstanceOf(ba, "Int"))
255255 then ba
256256 else throw(($getType(ba) + " couldn't be cast to Int"))
257257 }
258258
259259
260260 func bb (aZ) = {
261261 let ba = invoke(aT, "getOutFeeREADONLY", [toString(aZ)], nil)
262262 if ($isInstanceOf(ba, "Int"))
263263 then ba
264264 else throw(($getType(ba) + " couldn't be cast to Int"))
265265 }
266266
267267
268268 func bc (bd) = {
269269 let be = t(aT, U(bd))
270270 let bf = b
271271 let bg = getIntegerValue(aT, V(be))
272272 let bh = w(aV, aN())
273273 let bi = w(aV, aO())
274- let bj = 3
274+ let bj = {
275+ let ba = invoke(aV, "getBoostCoeffREADONLY", nil, nil)
276+ if ($isInstanceOf(ba, "Int"))
277+ then ba
278+ else throw(($getType(ba) + " couldn't be cast to Int"))
279+ }
275280 let bk = (fraction(bh, bg, bf) / bj)
276281 let bl = fraction(bi, bg, bf)
277282 let bm = (bj * b)
278283 let bn = v(aM, aH(bd))
279284 [bk, bm, bn]
280285 }
281286
282287
283288 func bo (bp,bq,br) = {
284289 let bs = fraction(bq, b, br)
285290 let bt = fraction(bp, bs, b)
286291 [bt]
287292 }
288293
289294
290295 func bu (bv,s,bw) = if ((bw == "string"))
291296 then getStringValue(bv, s)
292297 else if ((bw == "integer"))
293298 then toString(getIntegerValue(bv, s))
294299 else if ((bw == "boolean"))
295300 then toString(getBooleanValue(bv, s))
296301 else throw("unknown type. expected string/integer/boolean")
297302
298303
299304 func bx () = {
300305 let z = getString(G())
301306 if ($isInstanceOf(z, "String"))
302307 then {
303308 let by = z
304309 fromBase58String(by)
305310 }
306311 else if ($isInstanceOf(z, "Unit"))
307312 then unit
308313 else throw("Match error")
309314 }
310315
311316
312317 func bz () = {
313318 let z = getString(H())
314319 if ($isInstanceOf(z, "String"))
315320 then {
316321 let by = z
317322 fromBase58String(by)
318323 }
319324 else if ($isInstanceOf(z, "Unit"))
320325 then unit
321326 else throw("Match error")
322327 }
323328
324329
325330 func bA (bB) = {
326331 let bC = throw("Permission denied")
327332 let z = bx()
328333 if ($isInstanceOf(z, "ByteVector"))
329334 then {
330335 let bD = z
331336 if ((bB.callerPublicKey == bD))
332337 then true
333338 else bC
334339 }
335340 else if ($isInstanceOf(z, "Unit"))
336341 then if ((bB.caller == this))
337342 then true
338343 else bC
339344 else throw("Match error")
340345 }
341346
342347
343348 @Callable(bB)
344349 func constructor (bE) = {
345350 let bF = bA(bB)
346351 if ((bF == bF))
347352 then [StringEntry(F(), bE)]
348353 else throw("Strict value is not equal to itself.")
349354 }
350355
351356
352357
353358 @Callable(bB)
354359 func currentRewardRateREADONLY (bd) = {
355360 let bG = bc(bd)
356361 let bh = bG[0]
357362 let bm = bG[1]
358363 let bn = bG[2]
359- $Tuple2(nil, makeString(["%d%d%d", toString(bh), toString(bm), toString(bn)], e))
364+ let bH = {
365+ let ba = invoke(aX, "getVotingResultStakedREADONLY", [bd], nil)
366+ if ($isInstanceOf(ba, "Int"))
367+ then ba
368+ else throw(($getType(ba) + " couldn't be cast to Int"))
369+ }
370+ $Tuple2(nil, makeString(["%d%d%d%d", toString(bh), toString(bm), toString(bn), toString(bH)], e))
360371 }
361372
362373
363374
364375 @Callable(bB)
365376 func currentUserRewardRateREADONLY (bd,am) = {
366377 let bG = bc(bd)
367378 let bh = bG[0]
368379 let bm = bG[1]
369380 let bn = bG[2]
370- let bH = v(aM, aE(am, bd))
371- let bI = split(D(invoke(aM, "claimWxREADONLY", [bd, am], nil)), e)
372- let bJ = valueOrErrorMessage(parseInt(bI[5]), "couldn't parse minRewardPart")
373- let bK = valueOrErrorMessage(parseInt(bI[6]), "couldn't parse boostRewardPart")
374- let bL = bI[7]
375- let bM = if ((bK == 0))
381+ let bI = v(aM, aE(am, bd))
382+ let bJ = split(D(invoke(aM, "claimWxREADONLY", [bd, am], nil)), e)
383+ let bK = valueOrErrorMessage(parseInt(bJ[5]), "couldn't parse minRewardPart")
384+ let bL = valueOrErrorMessage(parseInt(bJ[6]), "couldn't parse boostRewardPart")
385+ let bM = bJ[7]
386+ let bN = if ((bL == 0))
376387 then (1 * b)
377- else fraction((bJ + bK), b, bJ)
378- $Tuple2(nil, makeString(["%d%d%d%d%d%s", toString(bh), toString(bm), toString(bn), toString(bH), toString(bM), bL], e))
388+ else fraction((bK + bL), b, bK)
389+ $Tuple2(nil, makeString(["%d%d%d%d%d%s", toString(bh), toString(bm), toString(bn), toString(bI), toString(bN), bM], e))
379390 }
380391
381392
382393
383394 @Callable(bB)
384-func calcBoostBulkInternalREADONLY (bN,bO,bP,bQ,bR,bS,bT) = if ((bN == size(bO)))
385- then $Tuple2(nil, bT)
395+func calcBoostBulkInternalREADONLY (bO,bP,bQ,bR,bS,bT,bU) = if ((bO == size(bP)))
396+ then $Tuple2(nil, bU)
386397 else {
387- let bU = bO[bN]
388- let bV = bP[bN]
389- let bW = bQ[bN]
390- let bX = bR[bN]
391- let bY = {
392- let ba = invoke(this, "calcBoostREADONLY", [bU, bV, bW, bX, bS], nil)
398+ let bV = bP[bO]
399+ let bW = bQ[bO]
400+ let bX = bR[bO]
401+ let bY = bS[bO]
402+ let bZ = {
403+ let ba = invoke(this, "calcBoostREADONLY", [bV, bW, bX, bY, bT], nil)
393404 if ($isInstanceOf(ba, "String"))
394405 then ba
395406 else throw(($getType(ba) + " couldn't be cast to String"))
396407 }
397- let bZ = (bT :+ bY)
398- let ca = {
399- let ba = invoke(this, "calcBoostBulkInternalREADONLY", [(bN + 1), bO, bP, bQ, bR, bS, bZ], nil)
408+ let ca = (bU :+ bZ)
409+ let cb = {
410+ let ba = invoke(this, "calcBoostBulkInternalREADONLY", [(bO + 1), bP, bQ, bR, bS, bT, ca], nil)
400411 if ($isInstanceOf(ba, "List[Any]"))
401412 then ba
402413 else throw(($getType(ba) + " couldn't be cast to List[Any]"))
403414 }
404- if ((ca == ca))
405- then $Tuple2(nil, ca)
415+ if ((cb == cb))
416+ then $Tuple2(nil, cb)
406417 else throw("Strict value is not equal to itself.")
407418 }
408419
409420
410421
411422 @Callable(bB)
412-func calcBoostBulkREADONLY (bU,bV,bW,bX,bS) = {
413- let bZ = invoke(this, "calcBoostBulkInternalREADONLY", [0, bU, bV, bW, bX, bS, nil], nil)
414- $Tuple2(nil, bZ)
423+func calcBoostBulkREADONLY (bV,bW,bX,bY,bT) = {
424+ let ca = invoke(this, "calcBoostBulkInternalREADONLY", [0, bV, bW, bX, bY, bT, nil], nil)
425+ $Tuple2(nil, ca)
415426 }
416427
417428
418429
419430 @Callable(bB)
420-func calcBoostREADONLY (bU,bV,bW,bX,bS) = {
421- let cb = aW
422- let cc = "empty"
423- let cd = parseIntValue(split(t(aX, ag()), e)[4])
424- let aG = if ((bX == ""))
425- then cc
426- else bX
427- let aF = if ((bS == ""))
428- then cc
429- else bS
430- let ce = valueOrElse(getString(aX, al(bS)), cc)
431- let cf = valueOrElse(getInteger(aX, ap(ce)), 0)
432- let cg = valueOrElse(getInteger(aX, ar(ce)), height)
433- let bq = valueOrElse(getInteger(aX, as(ce)), 0)
434- let ch = (cg + bq)
435- let ci = max([(ch - height), 0])
436- let cj = (cf + bU)
437- let ck = min([(ci + bV), cd])
438- let cl = B(x(invoke(aX, "gwxUserInfoREADONLY", [aF], nil))[0])
439- let cm = bo(cj, ck, cd)[0]
440- let cn = x(invoke(cb, "calcGwxParamsREADONLY", [cm, height, ck], nil))
441- let co = (cm - cl)
442- let cp = B(cn[0])
443- let cq = B(cn[1])
444- let aw = toString(B(cn[2]))
445- let cr = aA()
446- let cs = ((cm * ck) / 2)
447- let ct = v(aX, cr)
448- let cu = {
431+func calcBoostREADONLY (bV,bW,bX,bY,bT) = {
432+ let cc = {
433+ let ba = invoke(aV, "getBoostCoeffREADONLY", nil, nil)
434+ if ($isInstanceOf(ba, "Int"))
435+ then ba
436+ else throw(($getType(ba) + " couldn't be cast to Int"))
437+ }
438+ let cd = aW
439+ let ce = "empty"
440+ let cf = parseIntValue(split(t(aX, ag()), e)[4])
441+ let aG = if ((bY == ""))
442+ then ce
443+ else bY
444+ let aF = if ((bT == ""))
445+ then ce
446+ else bT
447+ let cg = valueOrElse(getString(aX, al(bT)), ce)
448+ let ch = valueOrElse(getInteger(aX, ap(cg)), 0)
449+ let ci = valueOrElse(getInteger(aX, ar(cg)), height)
450+ let bq = valueOrElse(getInteger(aX, as(cg)), 0)
451+ let cj = (ci + bq)
452+ let ck = max([(cj - height), 0])
453+ let cl = (ch + bV)
454+ let cm = min([(ck + bW), cf])
455+ let cn = B(x(invoke(aX, "gwxUserInfoREADONLY", [aF], nil))[0])
456+ let co = bo(cl, cm, cf)[0]
457+ let cp = {
449458 let ba = invoke(aX, "getTotalCachedGwxREADONLY", nil, nil)
450459 if ($isInstanceOf(ba, "Int"))
451460 then ba
452461 else throw(($getType(ba) + " couldn't be cast to Int"))
453462 }
454- let cv = 1000
455- let cw = (w(aV, aN()) * cv)
456- let cx = aE(aF, aG)
457- let cy = aH(aG)
458- let cz = aL(aM, cx)
459- let cA = aL(aM, cy)
460- let cB = (cz + bW)
461- let cC = (cA + bW)
462- let bg = if ((aG != cc))
463+ let cq = 1000
464+ let cr = (w(aV, aN()) * cq)
465+ let cs = aE(aF, aG)
466+ let ct = aH(aG)
467+ let cu = aL(aM, cs)
468+ let cv = aL(aM, ct)
469+ let bg = if ((aG != ce))
463470 then {
464471 let be = valueOrErrorMessage(getString(aT, R(aG)), ("unsupported lp asset " + aG))
465472 getIntegerValue(aT, V(be))
466473 }
467474 else 0
468- let cD = fraction(cw, bg, (f * 3))
469- let cE = if ((cC != 0))
470- then fraction(cD, b, cC)
475+ let cw = fraction(cr, bg, (f * cc))
476+ let cx = if ((cv != 0))
477+ then fraction(cw, b, cv)
471478 else 0
472- let cF = fraction(cE, cB, b)
473- let cG = (cD * 2)
474- let cH = fraction(cm, cG, (cu + co))
475- let cI = min([cH, (cF * 2)])
476- let cJ = if ((cF == 0))
479+ let cy = fraction(cx, cu, b)
480+ let cz = (cw * (cc - 1))
481+ let cA = fraction(cn, cz, cp)
482+ let cB = min([cA, (cy * (cc - 1))])
483+ let cC = if ((cy == 0))
477484 then (1 * b)
478- else fraction((cI + cF), b, cF)
479- $Tuple2(nil, makeString(["%d%d%s", toString(cm), toString(cJ), "d"], e))
485+ else fraction((cB + cy), b, cy)
486+ $Tuple2(nil, makeString(["%d%d%s", toString(co), toString(cC), "d"], e))
480487 }
481488
482489
483490
484491 @Callable(bB)
485492 func wxEmissionStatsREADONLY () = {
486- let cK = toString(b)
487- let cL = "1"
493+ let cD = toString(b)
494+ let cE = "1"
488495 let bh = w(aV, aN())
489- let cM = w(aV, aP())
490- let cN = if ((cM > height))
496+ let cF = w(aV, aP())
497+ let cG = if ((cF > height))
491498 then 0
492- else (height - cM)
493- let cO = (1440 * 365)
494- let cP = (201000000 * b)
495- let cQ = if ((cN > cO))
496- then cP
497- else fraction(cP, cN, cO)
498- let cR = ((bh * cN) + cQ)
499- let cS = v(aX, ah())
500- let cT = v(aX, ai())
501- let cU = v(aX, aj())
502- $Tuple2(nil, makeString(["%d%d%d%d", toString(cR), toString(cS), toString(cT), toString(cU)], e))
499+ else (height - cF)
500+ let cH = (1440 * 365)
501+ let cI = (201000000 * b)
502+ let cJ = if ((cG > cH))
503+ then cI
504+ else fraction(cI, cG, cH)
505+ let cK = ((bh * cG) + cJ)
506+ let cL = v(aX, ah())
507+ let cM = v(aX, ai())
508+ let cN = v(aX, aj())
509+ $Tuple2(nil, makeString(["%d%d%d%d", toString(cK), toString(cL), toString(cM), toString(cN)], e))
503510 }
504511
505512
506513
507514 @Callable(bB)
508-func poolStatsREADONLY (cV) = {
509- let aZ = addressFromStringValue(t(aT, U(cV)))
510- let cW = {
515+func poolStatsREADONLY (cO) = {
516+ let aZ = addressFromStringValue(t(aT, U(cO)))
517+ let cP = {
511518 let ba = invoke(aT, "getPoolStatusREADONLY", [toString(aZ)], nil)
512519 if ($isInstanceOf(ba, "Int"))
513520 then ba
514521 else throw(($getType(ba) + " couldn't be cast to Int"))
515522 }
516- let cX = "%d%d%d%d%d%d%d%d%d%s"
517- if ((cW == 4))
518- then $Tuple2(nil, makeString([cX, toString(0), toString(0), toString(0), toString(0), toString(0), toString(0), toString(0), toString(0), toString(0), toString(false)], e))
523+ let cQ = "%d%d%d%d%d%d%d%d%d%s"
524+ if ((cP == 4))
525+ then $Tuple2(nil, makeString([cQ, toString(0), toString(0), toString(0), toString(0), toString(0), toString(0), toString(0), toString(0), toString(0), toString(false)], e))
519526 else {
520- let cY = x(invoke(aZ, "getPoolConfigWrapperREADONLY", nil, nil))
521- let bd = fromBase58String(D(cY[j]))
522- let cZ = D(cY[k])
523- let da = D(cY[l])
524- let db = D(cY[o])
525- let dc = D(cY[p])
526- let dd = parseIntValue(D(cY[m]))
527- let de = parseIntValue(D(cY[n]))
528- let df = valueOrErrorMessage(assetInfo(bd), (("Asset " + toBase58String(bd)) + " doesn't exist")).quantity
529- let dg = B(invoke(aZ, "getAccBalanceWrapperREADONLY", [cZ], nil))
530- let dh = B(invoke(aZ, "getAccBalanceWrapperREADONLY", [da], nil))
531- let di = if ((df == 0))
527+ let cR = x(invoke(aZ, "getPoolConfigWrapperREADONLY", nil, nil))
528+ let bd = fromBase58String(D(cR[j]))
529+ let cS = D(cR[k])
530+ let cT = D(cR[l])
531+ let cU = D(cR[o])
532+ let cV = D(cR[p])
533+ let cW = parseIntValue(D(cR[m]))
534+ let cX = parseIntValue(D(cR[n]))
535+ let cY = valueOrErrorMessage(assetInfo(bd), (("Asset " + toBase58String(bd)) + " doesn't exist")).quantity
536+ let cZ = B(invoke(aZ, "getAccBalanceWrapperREADONLY", [cS], nil))
537+ let da = B(invoke(aZ, "getAccBalanceWrapperREADONLY", [cT], nil))
538+ let db = if ((cY == 0))
532539 then [toString(g), toString(g), toString(g)]
533- else x(invoke(aZ, "calcPricesWrapperREADONLY", [dg, dh, df], nil))
534- let dj = 0
535- let dk = B(invoke(aZ, "fromX18WrapperREADONLY", [di[1], b], nil))
536- let dl = B(invoke(aZ, "fromX18WrapperREADONLY", [di[2], b], nil))
540+ else x(invoke(aZ, "calcPricesWrapperREADONLY", [cZ, da, cY], nil))
541+ let dc = 0
542+ let dd = B(invoke(aZ, "fromX18WrapperREADONLY", [db[1], b], nil))
543+ let de = B(invoke(aZ, "fromX18WrapperREADONLY", [db[2], b], nil))
537544 let bg = getIntegerValue(aT, V(toString(aZ)))
538- let dm = aY(aZ)
539- let dn = bb(aZ)
540- let do = {
545+ let df = aY(aZ)
546+ let dg = bb(aZ)
547+ let dh = {
541548 let ba = invoke(aT, "isPoolOneTokenOperationsDisabledREADONLY", [toString(aZ)], nil)
542549 if ($isInstanceOf(ba, "Boolean"))
543550 then ba
544551 else throw(($getType(ba) + " couldn't be cast to Boolean"))
545552 }
546- let dp = !(do)
547- $Tuple2(nil, makeString([cX, toString(dg), toString(dh), toString(df), toString(dj), toString(dk), toString(dl), toString(bg), toString(dm), toString(dn), toString(dp)], e))
553+ let di = !(dh)
554+ $Tuple2(nil, makeString([cQ, toString(cZ), toString(da), toString(cY), toString(dc), toString(dd), toString(de), toString(bg), toString(df), toString(dg), toString(di)], e))
548555 }
549556 }
550557
551558
552559
553560 @Callable(bB)
554-func poolEvaluatePutByAmountAssetREADONLY (cV,dq) = {
555- let aZ = addressFromStringValue(t(aT, U(cV)))
556- let cY = x(invoke(aZ, "getPoolConfigWrapperREADONLY", nil, nil))
557- let bd = fromBase58String(D(cY[j]))
558- let dr = D(cY[k])
559- let ds = fromBase58String(dr)
560- let dt = D(cY[l])
561- let du = fromBase58String(dt)
562- let dd = parseIntValue(D(cY[m]))
563- let de = parseIntValue(D(cY[n]))
564- let dv = D(cY[i])
565- let df = valueOrErrorMessage(assetInfo(bd), (("Asset " + toBase58String(bd)) + " doesn't exist")).quantity
566- let dg = B(invoke(aZ, "getAccBalanceWrapperREADONLY", [dr], nil))
567- let dh = B(invoke(aZ, "getAccBalanceWrapperREADONLY", [dt], nil))
568- let dw = parseBigIntValue(D(invoke(aZ, "toX18WrapperREADONLY", [dg, dd], nil)))
569- let dx = parseBigIntValue(D(invoke(aZ, "toX18WrapperREADONLY", [dh, de], nil)))
570- let dy = if ((df == 0))
561+func poolEvaluatePutByAmountAssetREADONLY (cO,dj) = {
562+ let aZ = addressFromStringValue(t(aT, U(cO)))
563+ let cR = x(invoke(aZ, "getPoolConfigWrapperREADONLY", nil, nil))
564+ let bd = fromBase58String(D(cR[j]))
565+ let dk = D(cR[k])
566+ let dl = fromBase58String(dk)
567+ let dm = D(cR[l])
568+ let dn = fromBase58String(dm)
569+ let cW = parseIntValue(D(cR[m]))
570+ let cX = parseIntValue(D(cR[n]))
571+ let do = D(cR[i])
572+ let cY = valueOrErrorMessage(assetInfo(bd), (("Asset " + toBase58String(bd)) + " doesn't exist")).quantity
573+ let cZ = B(invoke(aZ, "getAccBalanceWrapperREADONLY", [dk], nil))
574+ let da = B(invoke(aZ, "getAccBalanceWrapperREADONLY", [dm], nil))
575+ let dp = parseBigIntValue(D(invoke(aZ, "toX18WrapperREADONLY", [cZ, cW], nil)))
576+ let dq = parseBigIntValue(D(invoke(aZ, "toX18WrapperREADONLY", [da, cX], nil)))
577+ let dr = if ((cY == 0))
571578 then g
572- else parseBigIntValue(D(invoke(aZ, "calcPriceBigIntWrapperREADONLY", [toString(dx), toString(dw)], nil)))
573- let dj = B(invoke(aZ, "fromX18WrapperREADONLY", [toString(dy), b], nil))
574- let dz = parseBigIntValue(D(invoke(aZ, "toX18WrapperREADONLY", [dq, dd], nil)))
575- let dA = fraction(dz, dy, d)
576- let dB = B(invoke(aZ, "fromX18WrapperREADONLY", [toString(dA), de], nil))
577- let bZ = invoke(aZ, "estimatePutOperationWrapperREADONLY", ["", 500000, dq, ds, dB, du, "", true, false], nil)
578- let dC = {
579- let z = bZ
579+ else parseBigIntValue(D(invoke(aZ, "calcPriceBigIntWrapperREADONLY", [toString(dq), toString(dp)], nil)))
580+ let dc = B(invoke(aZ, "fromX18WrapperREADONLY", [toString(dr), b], nil))
581+ let ds = parseBigIntValue(D(invoke(aZ, "toX18WrapperREADONLY", [dj, cW], nil)))
582+ let dt = fraction(ds, dr, d)
583+ let du = B(invoke(aZ, "fromX18WrapperREADONLY", [toString(dt), cX], nil))
584+ let ca = invoke(aZ, "estimatePutOperationWrapperREADONLY", ["", 500000, dj, dl, du, dn, "", true, false], nil)
585+ let dv = {
586+ let z = ca
580587 if (if (if ($isInstanceOf(z._1, "Int"))
581588 then if ($isInstanceOf(z._3, "Int"))
582589 then if ($isInstanceOf(z._4, "Int"))
583590 then if ($isInstanceOf(z._5, "Int"))
584591 then $isInstanceOf(z._6, "Int")
585592 else false
586593 else false
587594 else false
588595 else false)
589596 then (size(z) == 13)
590597 else false)
591598 then {
592- let dD = z._1
593- let dE = z._3
594- let dF = z._4
595- let dG = z._5
596- let dH = z._6
597- $Tuple5(dD, dE, dF, dG, dH)
599+ let dw = z._1
600+ let dx = z._3
601+ let dy = z._4
602+ let dz = z._5
603+ let dA = z._6
604+ $Tuple5(dw, dx, dy, dz, dA)
598605 }
599606 else throw("Couldn't cast types")
600607 }
601- let dD = dC._1
602- let dE = dC._2
603- let dF = dC._3
604- let dG = dC._4
605- let dH = dC._5
606- $Tuple2(nil, makeString(["%d%d%d%d%d%d%d%d", toString(dD), toString(dj), toString(dF), toString(dG), toString(dH), dv, toString(dq), toString(dB)], e))
608+ let dw = dv._1
609+ let dx = dv._2
610+ let dy = dv._3
611+ let dz = dv._4
612+ let dA = dv._5
613+ $Tuple2(nil, makeString(["%d%d%d%d%d%d%d%d", toString(dw), toString(dc), toString(dy), toString(dz), toString(dA), do, toString(dj), toString(du)], e))
607614 }
608615
609616
610617
611618 @Callable(bB)
612-func poolEvaluatePutByPriceAssetREADONLY (cV,dB) = {
613- let aZ = addressFromStringValue(t(aT, U(cV)))
614- let cY = x(invoke(aZ, "getPoolConfigWrapperREADONLY", nil, nil))
615- let bd = fromBase58String(D(cY[j]))
616- let dr = D(cY[k])
617- let ds = fromBase58String(dr)
618- let dt = D(cY[l])
619- let du = fromBase58String(dt)
620- let dd = parseIntValue(D(cY[m]))
621- let de = parseIntValue(D(cY[n]))
622- let dv = D(cY[i])
623- let df = valueOrErrorMessage(assetInfo(bd), (("Asset " + toBase58String(bd)) + " doesn't exist")).quantity
624- let dI = B(invoke(aZ, "getAccBalanceWrapperREADONLY", [dr], nil))
625- let dJ = B(invoke(aZ, "getAccBalanceWrapperREADONLY", [dt], nil))
626- let dK = parseBigIntValue(D(invoke(aZ, "toX18WrapperREADONLY", [dI, dd], nil)))
627- let dL = parseBigIntValue(D(invoke(aZ, "toX18WrapperREADONLY", [dJ, de], nil)))
628- let dy = if ((df == 0))
619+func poolEvaluatePutByPriceAssetREADONLY (cO,du) = {
620+ let aZ = addressFromStringValue(t(aT, U(cO)))
621+ let cR = x(invoke(aZ, "getPoolConfigWrapperREADONLY", nil, nil))
622+ let bd = fromBase58String(D(cR[j]))
623+ let dk = D(cR[k])
624+ let dl = fromBase58String(dk)
625+ let dm = D(cR[l])
626+ let dn = fromBase58String(dm)
627+ let cW = parseIntValue(D(cR[m]))
628+ let cX = parseIntValue(D(cR[n]))
629+ let do = D(cR[i])
630+ let cY = valueOrErrorMessage(assetInfo(bd), (("Asset " + toBase58String(bd)) + " doesn't exist")).quantity
631+ let dB = B(invoke(aZ, "getAccBalanceWrapperREADONLY", [dk], nil))
632+ let dC = B(invoke(aZ, "getAccBalanceWrapperREADONLY", [dm], nil))
633+ let dD = parseBigIntValue(D(invoke(aZ, "toX18WrapperREADONLY", [dB, cW], nil)))
634+ let dE = parseBigIntValue(D(invoke(aZ, "toX18WrapperREADONLY", [dC, cX], nil)))
635+ let dr = if ((cY == 0))
629636 then g
630- else parseBigIntValue(D(invoke(aZ, "calcPriceBigIntWrapperREADONLY", [toString(dL), toString(dK)], nil)))
631- let dj = B(invoke(aZ, "fromX18WrapperREADONLY", [toString(dy), b], nil))
632- let dA = parseBigIntValue(D(invoke(aZ, "toX18WrapperREADONLY", [dB, de], nil)))
633- let dz = fraction(dA, d, dy)
634- let dq = B(invoke(aZ, "fromX18WrapperREADONLY", [toString(dz), dd], nil))
635- let bZ = invoke(aZ, "estimatePutOperationWrapperREADONLY", ["", 500000, dq, ds, dB, du, "", true, false], nil)
636- let dM = {
637- let z = bZ
637+ else parseBigIntValue(D(invoke(aZ, "calcPriceBigIntWrapperREADONLY", [toString(dE), toString(dD)], nil)))
638+ let dc = B(invoke(aZ, "fromX18WrapperREADONLY", [toString(dr), b], nil))
639+ let dt = parseBigIntValue(D(invoke(aZ, "toX18WrapperREADONLY", [du, cX], nil)))
640+ let ds = fraction(dt, d, dr)
641+ let dj = B(invoke(aZ, "fromX18WrapperREADONLY", [toString(ds), cW], nil))
642+ let ca = invoke(aZ, "estimatePutOperationWrapperREADONLY", ["", 500000, dj, dl, du, dn, "", true, false], nil)
643+ let dF = {
644+ let z = ca
638645 if (if (if ($isInstanceOf(z._1, "Int"))
639646 then if ($isInstanceOf(z._3, "Int"))
640647 then if ($isInstanceOf(z._4, "Int"))
641648 then if ($isInstanceOf(z._5, "Int"))
642649 then $isInstanceOf(z._6, "Int")
643650 else false
644651 else false
645652 else false
646653 else false)
647654 then (size(z) == 13)
648655 else false)
649656 then {
650- let dD = z._1
651- let dE = z._3
652- let dF = z._4
653- let dG = z._5
654- let dH = z._6
655- $Tuple5(dD, dE, dF, dG, dH)
657+ let dw = z._1
658+ let dx = z._3
659+ let dy = z._4
660+ let dz = z._5
661+ let dA = z._6
662+ $Tuple5(dw, dx, dy, dz, dA)
656663 }
657664 else throw("Couldn't cast types")
658665 }
659- let dD = dM._1
660- let dE = dM._2
661- let dF = dM._3
662- let dG = dM._4
663- let dH = dM._5
664- $Tuple2(nil, makeString(["%d%d%d%d%d%d%d%d", toString(dD), toString(dj), toString(dF), toString(dG), toString(dH), dv, toString(dq), toString(dB)], e))
666+ let dw = dF._1
667+ let dx = dF._2
668+ let dy = dF._3
669+ let dz = dF._4
670+ let dA = dF._5
671+ $Tuple2(nil, makeString(["%d%d%d%d%d%d%d%d", toString(dw), toString(dc), toString(dy), toString(dz), toString(dA), do, toString(dj), toString(du)], e))
665672 }
666673
667674
668675
669676 @Callable(bB)
670-func poolEvaluateGetREADONLY (dN,dO) = {
671- let aZ = addressFromStringValue(t(aT, U(dN)))
672- let bZ = invoke(aZ, "estimateGetOperationWrapperREADONLY", ["", dN, dO, toString(aZ)], nil)
673- let dP = {
674- let z = bZ
677+func poolEvaluateGetREADONLY (dG,dH) = {
678+ let aZ = addressFromStringValue(t(aT, U(dG)))
679+ let ca = invoke(aZ, "estimateGetOperationWrapperREADONLY", ["", dG, dH, toString(aZ)], nil)
680+ let dI = {
681+ let z = ca
675682 if (if (if ($isInstanceOf(z._1, "Int"))
676683 then if ($isInstanceOf(z._2, "Int"))
677684 then if ($isInstanceOf(z._5, "Int"))
678685 then if ($isInstanceOf(z._6, "Int"))
679686 then if ($isInstanceOf(z._7, "Int"))
680687 then if ($isInstanceOf(z._8, "String"))
681688 then $isInstanceOf(z._9, "String")
682689 else false
683690 else false
684691 else false
685692 else false
686693 else false
687694 else false)
688695 then (size(z) == 10)
689696 else false)
690697 then {
691- let dQ = z._1
692- let dR = z._2
693- let dF = z._5
694- let dG = z._6
695- let dH = z._7
696- let dj = z._8
697- let dv = z._9
698- $Tuple7(dQ, dR, dF, dG, dH, dj, dv)
698+ let dJ = z._1
699+ let dK = z._2
700+ let dy = z._5
701+ let dz = z._6
702+ let dA = z._7
703+ let dc = z._8
704+ let do = z._9
705+ $Tuple7(dJ, dK, dy, dz, dA, dc, do)
699706 }
700707 else throw("Couldn't cast types")
701708 }
702- let dQ = dP._1
703- let dR = dP._2
704- let dF = dP._3
705- let dG = dP._4
706- let dH = dP._5
707- let dj = dP._6
708- let dv = dP._7
709- $Tuple2(nil, makeString(["%d%d%d%d%d%d%d", toString(dQ), toString(dR), toString(dF), toString(dG), toString(dH), dj, dv], e))
709+ let dJ = dI._1
710+ let dK = dI._2
711+ let dy = dI._3
712+ let dz = dI._4
713+ let dA = dI._5
714+ let dc = dI._6
715+ let do = dI._7
716+ $Tuple2(nil, makeString(["%d%d%d%d%d%d%d", toString(dJ), toString(dK), toString(dy), toString(dz), toString(dA), dc, do], e))
710717 }
711718
712719
713720
714721 @Callable(bB)
715722 func gwxUserInfoREADONLY (am) = {
716- let dS = x(invoke(aX, "gwxUserInfoREADONLY", [am], nil))
717- let dT = B(dS[0])
718- $Tuple2(nil, makeString(["%d", toString(dT)], e))
723+ let dL = x(invoke(aX, "gwxUserInfoREADONLY", [am], nil))
724+ let dM = B(dL[0])
725+ $Tuple2(nil, makeString(["%d", toString(dM)], e))
719726 }
720727
721728
722729
723730 @Callable(bB)
724-func unstakeAndGetOneTknV2 (aZ,dU,dV,dW) = {
725- let ca = invoke(addressFromStringValue(aZ), "unstakeAndGetOneTknV2", [dU, dV, dW], nil)
726- if ((ca == ca))
731+func unstakeAndGetOneTknV2 (aZ,dN,dO,dP) = {
732+ let cb = invoke(addressFromStringValue(aZ), "unstakeAndGetOneTknV2", [dN, dO, dP], nil)
733+ if ((cb == cb))
727734 then $Tuple2(nil, unit)
728735 else throw("Strict value is not equal to itself.")
729736 }
730737
731738
732739
733740 @Callable(bB)
734-func getKeysBulkInternal (bN,dX,bT) = if ((bN == size(dX)))
735- then $Tuple2(nil, bT)
741+func getKeysBulkInternal (bO,dQ,bU) = if ((bO == size(dQ)))
742+ then $Tuple2(nil, bU)
736743 else {
737- let cp = split(dX[bN], "++")
738- let bv = addressFromStringValue(cp[0])
739- let s = cp[1]
740- let bw = cp[2]
744+ let dR = split(dQ[bO], "++")
745+ let bv = addressFromStringValue(dR[0])
746+ let s = dR[1]
747+ let bw = dR[2]
741748 let y = bu(bv, s, bw)
742- let bZ = (bT :+ y)
743- let ca = invoke(this, "getKeysBulkInternal", [(bN + 1), dX, bZ], nil)
744- if ((ca == ca))
745- then $Tuple2(nil, ca)
749+ let ca = (bU :+ y)
750+ let cb = invoke(this, "getKeysBulkInternal", [(bO + 1), dQ, ca], nil)
751+ if ((cb == cb))
752+ then $Tuple2(nil, cb)
746753 else throw("Strict value is not equal to itself.")
747754 }
748755
749756
750757
751758 @Callable(bB)
752-func getKeysBulk (dX) = {
753- let bZ = invoke(this, "getKeysBulkInternal", [0, dX, nil], nil)
754- $Tuple2(nil, bZ)
759+func getKeysBulk (dQ) = {
760+ let ca = invoke(this, "getKeysBulkInternal", [0, dQ, nil], nil)
761+ $Tuple2(nil, ca)
755762 }
756763
757764
758765
759766 @Callable(bB)
760-func setManager (dY) = {
767+func setManager (dS) = {
761768 let bF = bA(bB)
762769 if ((bF == bF))
763770 then {
764- let dZ = fromBase58String(dY)
765- if ((dZ == dZ))
766- then [StringEntry(H(), dY)]
771+ let dT = fromBase58String(dS)
772+ if ((dT == dT))
773+ then [StringEntry(H(), dS)]
767774 else throw("Strict value is not equal to itself.")
768775 }
769776 else throw("Strict value is not equal to itself.")
770777 }
771778
772779
773780
774781 @Callable(bB)
775782 func confirmManager () = {
776- let ea = bz()
777- let eb = if (isDefined(ea))
783+ let dU = bz()
784+ let dV = if (isDefined(dU))
778785 then true
779786 else throw("No pending manager")
780- if ((eb == eb))
787+ if ((dV == dV))
781788 then {
782- let ec = if ((bB.callerPublicKey == value(ea)))
789+ let dW = if ((bB.callerPublicKey == value(dU)))
783790 then true
784791 else throw("You are not pending manager")
785- if ((ec == ec))
786- then [StringEntry(G(), toBase58String(value(ea))), DeleteEntry(H())]
792+ if ((dW == dW))
793+ then [StringEntry(G(), toBase58String(value(dU))), DeleteEntry(H())]
787794 else throw("Strict value is not equal to itself.")
788795 }
789796 else throw("Strict value is not equal to itself.")
790797 }
791798
792799
793-@Verifier(ed)
794-func ee () = {
795- let ef = {
800+@Verifier(dX)
801+func dY () = {
802+ let dZ = {
796803 let z = bx()
797804 if ($isInstanceOf(z, "ByteVector"))
798805 then {
799806 let bD = z
800807 bD
801808 }
802809 else if ($isInstanceOf(z, "Unit"))
803- then ed.senderPublicKey
810+ then dX.senderPublicKey
804811 else throw("Match error")
805812 }
806- sigVerify(ed.bodyBytes, ed.proofs[0], ef)
813+ sigVerify(dX.bodyBytes, dX.proofs[0], dZ)
807814 }
808815

github/deemru/w8io/026f985 
165.93 ms