tx · BHxSq7pJM8RaVAE9Tem7MZBu8Mo6yLjj9s3zZKqaPVGV

3N55kCyUFy8M2ooKRwierKnP7L6viqzScNn:  -0.03300000 Waves

2022.11.30 09:48 [2339516] smart account 3N55kCyUFy8M2ooKRwierKnP7L6viqzScNn > SELF 0.00000000 Waves

{ "type": 13, "id": "BHxSq7pJM8RaVAE9Tem7MZBu8Mo6yLjj9s3zZKqaPVGV", "fee": 3300000, "feeAssetId": null, "timestamp": 1669790932820, "version": 1, "sender": "3N55kCyUFy8M2ooKRwierKnP7L6viqzScNn", "senderPublicKey": "HpuFV1RhaXZ5gaJNgeLjyAKy3D5q7fMKdNFYYbPDafnb", "proofs": [ "2UeQPpGG1U2JyVFP2SkPMfT6NyZxTfpACDSPsYwBwvtiAmQJanrAk9QHLbxsHN6Gz1akHer5Ayy6ZiDsN3wv6a3H" ], "script": "base64:BgLYKwgCEgMKAQgSABIECgIBBBIDCgEBEgQKAgEEEgQKAggBEgQKAggBEgQKAggBEgUKAwEIARIAEgQKAgEBEgMKAQESBQoDAQEBEgQKAggIEgASABIDCgEIEgUKAwEBARIECgIBARIECgIIARIECgIICBILCgkIAQECAQIIBAQSBgoECAgBCBIAEgMKAQESAwoBARIECgIIASIKbFBkZWNpbWFscyIGc2NhbGU4IgxzY2FsZThCaWdJbnQiB3NjYWxlMTgiCnplcm9CaWdJbnQiBGJpZzAiBGJpZzEiBGJpZzIiC3dhdmVzU3RyaW5nIgNTRVAiClBvb2xBY3RpdmUiD1Bvb2xQdXREaXNhYmxlZCITUG9vbE1hdGNoZXJEaXNhYmxlZCIMUG9vbFNodXRkb3duIg5pZHhQb29sQWRkcmVzcyINaWR4UG9vbFN0YXR1cyIQaWR4UG9vbExQQXNzZXRJZCINaWR4QW10QXNzZXRJZCIPaWR4UHJpY2VBc3NldElkIg5pZHhBbXRBc3NldERjbSIQaWR4UHJpY2VBc3NldERjbSIOaWR4SUFtdEFzc2V0SWQiEGlkeElQcmljZUFzc2V0SWQiDWlkeExQ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QJjZQkAzAgCCQCkAwEFAmNiCQDMCAIJAKYDAQUCY2gJAMwIAgkApAMBBQJjYQUDbmlsBQFqAQJncAECZ3EABAJncgQCZEUJAQJlRwADCQABAgUCZEUCCkJ5dGVWZWN0b3IEAmVLBQJkRQUCZUsDCQABAgUCZEUCBFVuaXQIBQJncA9zZW5kZXJQdWJsaWNLZXkJAAIBAgtNYXRjaCBlcnJvcgQCZEUFAmdwAwkAAQIFAmRFAgVPcmRlcgQCZGoFAmRFBAJncwkBAmFNAAQCYXoJAQJkaQEFAmRqBAJhQQkA9AMDCAUCZGoJYm9keUJ5dGVzCQCRAwIIBQJkagZwcm9vZnMAAAgFAmRqD3NlbmRlclB1YmxpY0tleQQCYUIJAPQDAwgFAmRqCWJvZHlCeXRlcwkAkQMCCAUCZGoGcHJvb2ZzAAEFAmdzAwMDBQJhegUCYUEHBQJhQgcGCQECYXkDBQJhegUCYUEFAmFCAwkAAQIFAmRFAhRTZXRTY3JpcHRUcmFuc2FjdGlvbgQCZUgFAmRFBAJndAkA9gMBCQEFdmFsdWUBCAUCZUgGc2NyaXB0BAJndQkA2wQBCQEFdmFsdWUBCQCdCAIFAmFKCQECYXcABAJndgkA8QcBBQR0aGlzAwMJAAACBQJndQUCZ3QJAQIhPQIFAmd2BQJndAcGCQD0AwMIBQJncAlib2R5Qnl0ZXMJAJEDAggFAmdwBnByb29mcwAABQJncgkA9AMDCAUCZ3AJYm9keUJ5dGVzCQCRAwIIBQJncAZwcm9vZnMAAAUCZ3JXKual", "chainId": 84, "height": 2339516, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: Fk835C8Gt8cQwmH2Mh665wwrrZNvV8Dkkcw54ypSC9mT Next: BJiAw3Gaebfsxkv7EkNCahETQWcBXA21FtPHktc1c5Rd Diff:
OldNewDifferences
390390
391391
392392 func di (dj) = {
393- let bK = aN()
394- let dk = bK[r]
395- let dl = bK[s]
396- let ca = parseIntValue(bK[p])
397- let bL = parseIntValue(bK[t])
398- let bM = parseIntValue(bK[u])
399- let dm = dj.amount
400- let dn = fraction(dj.amount, dj.price, b)
401- let do = if ((dj.orderType == Buy))
402- then $Tuple2(dm, -(dn))
403- else $Tuple2(-(dm), dn)
404- let db = do._1
405- let dc = do._2
393+ let dk = dj.amount
394+ let dl = fraction(dj.amount, dj.price, b)
395+ let dm = if ((dj.orderType == Buy))
396+ then $Tuple2(dk, -(dl))
397+ else $Tuple2(-(dk), dl)
398+ let db = dm._1
399+ let dc = dm._2
406400 if (if (if (aL())
407401 then true
408- else (ca == m))
402+ else (aY == m))
409403 then true
410- else (ca == n))
404+ else (aY == n))
411405 then throw("Exchange operations disabled")
412- else {
413- let dp = aS(value(dj.assetPair.amountAsset))
414- let dq = aS(value(dj.assetPair.priceAsset))
415- if (if ((dp != dk))
416- then true
417- else (dq != dl))
418- then throw("Wrong order assets.")
419- else {
420- let dr = valueOrErrorMessage(parseBigInt(valueOrErrorMessage(getString(this, af), aI("kLp is required"))), aI("invalid kLp"))
421- let ds = da(db, dc, 0)
422- let dt = ds._1
423- let du = ds._2
424- let dv = (du > dr)
425- dv
426- }
427- }
406+ else if (if ((dj.assetPair.amountAsset != ba))
407+ then true
408+ else (dj.assetPair.priceAsset != bb))
409+ then throw("Wrong order assets.")
410+ else {
411+ let dn = valueOrErrorMessage(parseBigInt(valueOrErrorMessage(getString(this, af), aI("kLp is required"))), aI("invalid kLp"))
412+ let do = da(db, dc, 0)
413+ let dp = do._1
414+ let dq = do._2
415+ let dr = (dq > dn)
416+ dr
417+ }
428418 }
429419
430420
431-func dw (dx) = if ((size(dx.payments) != 1))
421+func ds (dt) = if ((size(dt.payments) != 1))
432422 then throw("exactly 1 payment is expected")
433423 else {
434- let dy = value(dx.payments[0])
435- let bV = value(dy.assetId)
436- let dz = dy.amount
437- let cG = bT(toBase58String(dx.transactionId), toBase58String(bV), dz, dx.caller)
424+ let du = value(dt.payments[0])
425+ let bV = value(du.assetId)
426+ let dv = du.amount
427+ let cG = bT(toBase58String(dt.transactionId), toBase58String(bV), dv, dt.caller)
438428 let cm = cG._1
439429 let cn = cG._2
440430 let ca = parseIntValue(cG._9)
443433 then true
444434 else (ca == n))
445435 then throw(("Get operation is blocked by admin. Status = " + toString(ca)))
446- else $Tuple5(cm, cn, dz, bV, co)
436+ else $Tuple5(cm, cn, dv, bV, co)
447437 }
448438
449439
450-func dA (dx,cq,cw) = if ((size(dx.payments) != 2))
440+func dw (dt,cq,cw) = if ((size(dt.payments) != 2))
451441 then throw("exactly 2 payments are expected")
452442 else {
453- let dB = value(dx.payments[0])
454- let dC = value(dx.payments[1])
455- let dD = cp(toBase58String(dx.transactionId), cq, dB.amount, dB.assetId, dC.amount, dC.assetId, toString(dx.caller), false, cw)
456- let ca = parseIntValue(dD._8)
443+ let dx = value(dt.payments[0])
444+ let dy = value(dt.payments[1])
445+ let dz = cp(toBase58String(dt.transactionId), cq, dx.amount, dx.assetId, dy.amount, dy.assetId, toString(dt.caller), false, cw)
446+ let ca = parseIntValue(dz._8)
457447 if (if (if (aL())
458448 then true
459449 else (ca == l))
460450 then true
461451 else (ca == n))
462452 then throw(("Put operation is blocked by admin. Status = " + toString(ca)))
463- else dD
453+ else dz
464454 }
465455
466456
467-func dE (dF) = {
468- let dG = invoke(aJ, "emit", [dF], nil)
469- if ((dG == dG))
457+func dA (dB) = {
458+ let dC = invoke(aJ, "emit", [dB], nil)
459+ if ((dC == dC))
470460 then {
471- let dH = {
472- let dI = dG
473- if ($isInstanceOf(dI, "Address"))
461+ let dD = {
462+ let dE = dC
463+ if ($isInstanceOf(dE, "Address"))
474464 then {
475- let dJ = dI
476- invoke(dJ, "emit", [dF], nil)
465+ let dF = dE
466+ invoke(dF, "emit", [dB], nil)
477467 }
478468 else unit
479469 }
480- if ((dH == dH))
481- then dF
470+ if ((dD == dD))
471+ then dB
482472 else throw("Strict value is not equal to itself.")
483473 }
484474 else throw("Strict value is not equal to itself.")
485475 }
486476
487477
488-func dK (dF) = {
489- let dL = fraction(dF, ae, b)
490- $Tuple2((dF - dL), dL)
478+func dG (dB) = {
479+ let dH = fraction(dB, ae, b)
480+ $Tuple2((dB - dH), dH)
491481 }
492482
493483
494-func dM (dN,dO,X,Y) = {
495- let dP = (Y == unit)
496- let dQ = bw(aS(ba))
497- let dR = bw(aS(bb))
498- let dS = if ((dO == ba))
484+func dI (dJ,dK,X,Y) = {
485+ let dL = (Y == unit)
486+ let dM = bw(aS(ba))
487+ let dN = bw(aS(bb))
488+ let dO = if ((dK == ba))
499489 then true
500- else if ((dO == bb))
490+ else if ((dK == bb))
501491 then false
502492 else aG("invalid asset")
503- let dT = if (dP)
504- then $Tuple2(dQ, dR)
505- else if (dS)
506- then $Tuple2((dQ - dN), dR)
507- else $Tuple2(dQ, (dR - dN))
508- let dU = dT._1
509- let dV = dT._2
510- let dW = if (dS)
511- then $Tuple2(dN, 0)
512- else $Tuple2(0, dN)
513- let dX = dW._1
514- let dY = dW._2
515- let dm = dK(dX)._1
516- let dn = dK(dY)._1
517- let dZ = dK(dN)
518- let ea = dZ._1
519- let dL = dZ._2
520- let eb = (dU + dm)
521- let ec = (dV + dn)
522- let ed = by(D(ec, bd), D(eb, bc))
523- let ee = G(ed, b)
524- let ef = if (dS)
525- then dU
526- else dV
527- let eg = toBigInt(ef)
528- let eh = toBigInt(valueOrErrorMessage(assetInfo(aZ), (("asset " + toBase58String(aZ)) + " doesn't exist")).quantity)
529- let ei = if ((eh > f))
493+ let dP = if (dL)
494+ then $Tuple2(dM, dN)
495+ else if (dO)
496+ then $Tuple2((dM - dJ), dN)
497+ else $Tuple2(dM, (dN - dJ))
498+ let dQ = dP._1
499+ let dR = dP._2
500+ let dS = if (dO)
501+ then $Tuple2(dJ, 0)
502+ else $Tuple2(0, dJ)
503+ let dT = dS._1
504+ let dU = dS._2
505+ let dk = dG(dT)._1
506+ let dl = dG(dU)._1
507+ let dV = dG(dJ)
508+ let dW = dV._1
509+ let dH = dV._2
510+ let dX = (dQ + dk)
511+ let dY = (dR + dl)
512+ let dZ = by(D(dY, bd), D(dX, bc))
513+ let ea = G(dZ, b)
514+ let eb = if (dO)
515+ then dQ
516+ else dR
517+ let ec = toBigInt(eb)
518+ let ed = toBigInt(valueOrErrorMessage(assetInfo(aZ), (("asset " + toBase58String(aZ)) + " doesn't exist")).quantity)
519+ let ee = if ((ed > f))
530520 then true
531521 else aG("initial deposit requires all coins")
532- if ((ei == ei))
522+ if ((ee == ee))
533523 then {
534- let ej = toBigInt(ea)
535- let ek = max([0, toInt(((eh * (sqrtBigInt((d + ((ej * d) / eg)), 18, 18, DOWN) - d)) / d))])
536- let cV = if (dP)
524+ let ef = toBigInt(dW)
525+ let eg = max([0, toInt(((ed * (sqrtBigInt((d + ((ef * d) / ec)), 18, 18, DOWN) - d)) / d))])
526+ let cV = if (dL)
537527 then nil
538- else [IntegerEntry(S(), ee), IntegerEntry(T(height, lastBlock.timestamp), ee), StringEntry(W(toString(value(X)), toBase58String(value(Y))), bh(dX, dY, ek, ee, 0, 0, height, lastBlock.timestamp, 0, 0))]
539- let el = by(D(dV, bd), D(dU, bc))
540- let em = G(el, b)
541- let en = {
542- let eo = if (dS)
543- then $Tuple2(dX, dU)
544- else $Tuple2(dY, dV)
545- let dF = eo._1
546- let ep = eo._2
547- let eq = toInt(fraction(eh, toBigInt((dF / 2)), toBigInt(ep)))
548- fraction((ek - eq), b, eq)
528+ else [IntegerEntry(S(), ea), IntegerEntry(T(height, lastBlock.timestamp), ea), StringEntry(W(toString(value(X)), toBase58String(value(Y))), bh(dT, dU, eg, ea, 0, 0, height, lastBlock.timestamp, 0, 0))]
529+ let eh = by(D(dR, bd), D(dQ, bc))
530+ let ei = G(eh, b)
531+ let ej = {
532+ let ek = if (dO)
533+ then $Tuple2(dT, dQ)
534+ else $Tuple2(dU, dR)
535+ let dB = ek._1
536+ let el = ek._2
537+ let em = toInt(fraction(ed, toBigInt((dB / 2)), toBigInt(el)))
538+ fraction((eg - em), b, em)
549539 }
550- $Tuple5(ek, cV, dL, en, dS)
540+ $Tuple5(eg, cV, dH, ej, dO)
551541 }
552542 else throw("Strict value is not equal to itself.")
553543 }
554544
555545
556-func er (es,ea,dO,X,Y) = {
557- let dP = (Y == unit)
558- let et = [if ((dO == aZ))
546+func en (eo,dW,dK,X,Y) = {
547+ let dL = (Y == unit)
548+ let ep = [if ((dK == aZ))
559549 then true
560550 else aG("invalid lp asset")]
561- if ((et == et))
551+ if ((ep == ep))
562552 then {
563- let eu = if ((es == ba))
553+ let eq = if ((eo == ba))
564554 then true
565- else if ((es == bb))
555+ else if ((eo == bb))
566556 then false
567557 else aG("invalid asset")
568- let ev = if (eu)
558+ let er = if (eq)
569559 then toBigInt(bw(aS(ba)))
570560 else toBigInt(bw(aS(bb)))
571- let ew = bw(aS(ba))
572- let ex = bw(aS(bb))
573- let ey = if (eu)
574- then ew
575- else ex
576- let ez = toBigInt(ey)
577- let eh = toBigInt(valueOrErrorMessage(assetInfo(aZ), (("asset " + toBase58String(aZ)) + " doesn't exist")).quantity)
578- let eA = toBigInt(ea)
579- let eB = max([0, toInt(((ev * (d - pow((d - ((eA * d) / eh)), 18, h, 0, 18, DOWN))) / d))])
580- let eC = dK(eB)
581- let eD = eC._1
582- let dL = eC._2
583- let eE = if (eu)
584- then $Tuple4(eD, 0, (ew - eB), ex)
585- else $Tuple4(0, eD, ew, (ex - eB))
586- let eF = eE._1
587- let eG = eE._2
588- let eH = eE._3
589- let eI = eE._4
590- let ed = by(D(eI, bd), D(eH, bc))
591- let ee = G(ed, b)
592- let cV = if (dP)
561+ let es = bw(aS(ba))
562+ let et = bw(aS(bb))
563+ let eu = if (eq)
564+ then es
565+ else et
566+ let ev = toBigInt(eu)
567+ let ed = toBigInt(valueOrErrorMessage(assetInfo(aZ), (("asset " + toBase58String(aZ)) + " doesn't exist")).quantity)
568+ let ew = toBigInt(dW)
569+ let ex = max([0, toInt(((er * (d - pow((d - ((ew * d) / ed)), 18, h, 0, 18, DOWN))) / d))])
570+ let ey = dG(ex)
571+ let ez = ey._1
572+ let dH = ey._2
573+ let eA = if (eq)
574+ then $Tuple4(ez, 0, (es - ex), et)
575+ else $Tuple4(0, ez, es, (et - ex))
576+ let eB = eA._1
577+ let eC = eA._2
578+ let eD = eA._3
579+ let eE = eA._4
580+ let dZ = by(D(eE, bd), D(eD, bc))
581+ let ea = G(dZ, b)
582+ let cV = if (dL)
593583 then nil
594- else [StringEntry(Z(toString(value(X)), toBase58String(value(Y))), bs(eF, eG, ea, ee, height, lastBlock.timestamp)), IntegerEntry(S(), ee), IntegerEntry(T(height, lastBlock.timestamp), ee)]
595- let el = by(D(ex, bd), D(ew, bc))
596- let em = G(el, b)
597- let en = {
598- let eJ = (toInt(fraction(ev, eA, eh)) * 2)
599- fraction((eD - eJ), b, eJ)
584+ else [StringEntry(Z(toString(value(X)), toBase58String(value(Y))), bs(eB, eC, dW, ea, height, lastBlock.timestamp)), IntegerEntry(S(), ea), IntegerEntry(T(height, lastBlock.timestamp), ea)]
585+ let eh = by(D(et, bd), D(es, bc))
586+ let ei = G(eh, b)
587+ let ej = {
588+ let eF = (toInt(fraction(er, ew, ed)) * 2)
589+ fraction((ez - eF), b, eF)
600590 }
601- $Tuple5(eD, cV, dL, en, eu)
591+ $Tuple5(ez, cV, dH, ej, eq)
602592 }
603593 else throw("Strict value is not equal to itself.")
604594 }
605595
606596
607-func eK () = {
608- let dI = getString(Q())
609- if ($isInstanceOf(dI, "String"))
597+func eG () = {
598+ let dE = getString(Q())
599+ if ($isInstanceOf(dE, "String"))
610600 then {
611- let eL = dI
612- fromBase58String(eL)
601+ let eH = dE
602+ fromBase58String(eH)
613603 }
614- else if ($isInstanceOf(dI, "Unit"))
604+ else if ($isInstanceOf(dE, "Unit"))
615605 then unit
616606 else throw("Match error")
617607 }
618608
619609
620-func eM () = {
621- let dI = getString(R())
622- if ($isInstanceOf(dI, "String"))
610+func eI () = {
611+ let dE = getString(R())
612+ if ($isInstanceOf(dE, "String"))
623613 then {
624- let eL = dI
625- fromBase58String(eL)
614+ let eH = dE
615+ fromBase58String(eH)
626616 }
627- else if ($isInstanceOf(dI, "Unit"))
617+ else if ($isInstanceOf(dE, "Unit"))
628618 then unit
629619 else throw("Match error")
630620 }
631621
632622
633-func eN (dx) = {
634- let dI = eK()
635- if ($isInstanceOf(dI, "ByteVector"))
623+func eJ (dt) = {
624+ let dE = eG()
625+ if ($isInstanceOf(dE, "ByteVector"))
636626 then {
637- let eO = dI
638- (dx.callerPublicKey == eO)
627+ let eK = dE
628+ (dt.callerPublicKey == eK)
639629 }
640- else if ($isInstanceOf(dI, "Unit"))
641- then (dx.caller == this)
630+ else if ($isInstanceOf(dE, "Unit"))
631+ then (dt.caller == this)
642632 else throw("Match error")
643633 }
644634
645635
646-func eP (dx) = {
647- let eQ = throw("Permission denied")
648- let dI = eK()
649- if ($isInstanceOf(dI, "ByteVector"))
636+func eL (dt) = {
637+ let eM = throw("Permission denied")
638+ let dE = eG()
639+ if ($isInstanceOf(dE, "ByteVector"))
650640 then {
651- let eO = dI
652- if ((dx.callerPublicKey == eO))
641+ let eK = dE
642+ if ((dt.callerPublicKey == eK))
653643 then true
654- else eQ
644+ else eM
655645 }
656- else if ($isInstanceOf(dI, "Unit"))
657- then if ((dx.caller == this))
646+ else if ($isInstanceOf(dE, "Unit"))
647+ then if ((dt.caller == this))
658648 then true
659- else eQ
649+ else eM
660650 else throw("Match error")
661651 }
662652
663653
664-@Callable(dx)
665-func setManager (eR) = {
666- let eS = eP(dx)
667- if ((eS == eS))
654+@Callable(dt)
655+func setManager (eN) = {
656+ let eO = eL(dt)
657+ if ((eO == eO))
668658 then {
669- let eT = fromBase58String(eR)
670- if ((eT == eT))
671- then [StringEntry(R(), eR)]
659+ let eP = fromBase58String(eN)
660+ if ((eP == eP))
661+ then [StringEntry(R(), eN)]
672662 else throw("Strict value is not equal to itself.")
673663 }
674664 else throw("Strict value is not equal to itself.")
676666
677667
678668
679-@Callable(dx)
669+@Callable(dt)
680670 func confirmManager () = {
681- let eU = eM()
682- let eV = if (isDefined(eU))
671+ let eQ = eI()
672+ let eR = if (isDefined(eQ))
683673 then true
684674 else throw("No pending manager")
685- if ((eV == eV))
675+ if ((eR == eR))
686676 then {
687- let eW = if ((dx.callerPublicKey == value(eU)))
677+ let eS = if ((dt.callerPublicKey == value(eQ)))
688678 then true
689679 else throw("You are not pending manager")
690- if ((eW == eW))
691- then [StringEntry(Q(), toBase58String(value(eU))), DeleteEntry(R())]
680+ if ((eS == eS))
681+ then [StringEntry(Q(), toBase58String(value(eQ))), DeleteEntry(R())]
692682 else throw("Strict value is not equal to itself.")
693683 }
694684 else throw("Strict value is not equal to itself.")
696686
697687
698688
699-@Callable(dx)
700-func put (cq,eX) = if ((0 > cq))
689+@Callable(dt)
690+func put (cq,eT) = if ((0 > cq))
701691 then throw("Invalid slippageTolerance passed")
702692 else {
703- let dD = dA(dx, cq, true)
704- let cS = dD._2
705- let bX = dD._7
706- let co = dD._9
707- let cT = dD._10
708- let cU = dD._11
709- let eY = dD._12
710- let eZ = dD._13
711- let dG = invoke(aJ, "emit", [cS], nil)
712- if ((dG == dG))
693+ let dz = dw(dt, cq, true)
694+ let cS = dz._2
695+ let bX = dz._7
696+ let co = dz._9
697+ let cT = dz._10
698+ let cU = dz._11
699+ let eU = dz._12
700+ let eV = dz._13
701+ let dC = invoke(aJ, "emit", [cS], nil)
702+ if ((dC == dC))
713703 then {
714- let dH = {
715- let dI = dG
716- if ($isInstanceOf(dI, "Address"))
704+ let dD = {
705+ let dE = dC
706+ if ($isInstanceOf(dE, "Address"))
717707 then {
718- let dJ = dI
719- invoke(dJ, "emit", [cS], nil)
708+ let dF = dE
709+ invoke(dF, "emit", [cS], nil)
720710 }
721711 else unit
722712 }
723- if ((dH == dH))
713+ if ((dD == dD))
724714 then {
725- let fa = if ((cT > 0))
726- then invoke(bg, "put", nil, [AttachedPayment(eY, cT)])
715+ let eW = if ((cT > 0))
716+ then invoke(bg, "put", nil, [AttachedPayment(eU, cT)])
727717 else nil
728- if ((fa == fa))
718+ if ((eW == eW))
729719 then {
730- let fb = if ((cU > 0))
731- then invoke(bg, "put", nil, [AttachedPayment(eZ, cU)])
720+ let eX = if ((cU > 0))
721+ then invoke(bg, "put", nil, [AttachedPayment(eV, cU)])
732722 else nil
733- if ((fb == fb))
723+ if ((eX == eX))
734724 then {
735- let fc = if (eX)
725+ let eY = if (eT)
736726 then {
737- let fd = invoke(bf, "stake", nil, [AttachedPayment(bX, cS)])
738- if ((fd == fd))
727+ let eZ = invoke(bf, "stake", nil, [AttachedPayment(bX, cS)])
728+ if ((eZ == eZ))
739729 then nil
740730 else throw("Strict value is not equal to itself.")
741731 }
742- else [ScriptTransfer(dx.caller, cS, bX)]
743- let fe = da(0, 0, 0)
744- let ff = fe._1
745- let cZ = fe._2
746- ((co ++ fc) ++ ff)
732+ else [ScriptTransfer(dt.caller, cS, bX)]
733+ let fa = da(0, 0, 0)
734+ let fb = fa._1
735+ let cZ = fa._2
736+ ((co ++ eY) ++ fb)
747737 }
748738 else throw("Strict value is not equal to itself.")
749739 }
756746
757747
758748
759-@Callable(dx)
760-func putForFree (fg) = if ((0 > fg))
749+@Callable(dt)
750+func putForFree (fc) = if ((0 > fc))
761751 then throw("Invalid value passed")
762752 else {
763- let dD = dA(dx, fg, false)
764- let co = dD._9
765- let fh = da(0, 0, 0)
766- let ff = fh._1
767- let cZ = fh._2
768- (co ++ ff)
753+ let dz = dw(dt, fc, false)
754+ let co = dz._9
755+ let fd = da(0, 0, 0)
756+ let fb = fd._1
757+ let cZ = fd._2
758+ (co ++ fb)
769759 }
770760
771761
772762
773-@Callable(dx)
774-func putOneTkn (fi,fj) = {
775- let fk = {
776- let fl = invoke(aJ, "isPoolOneTokenOperationsDisabledREADONLY", [toString(this)], nil)
777- if ($isInstanceOf(fl, "Boolean"))
778- then fl
779- else throw(($getType(fl) + " couldn't be cast to Boolean"))
763+@Callable(dt)
764+func putOneTkn (fe,ff) = {
765+ let fg = {
766+ let fh = invoke(aJ, "isPoolOneTokenOperationsDisabledREADONLY", [toString(this)], nil)
767+ if ($isInstanceOf(fh, "Boolean"))
768+ then fh
769+ else throw(($getType(fh) + " couldn't be cast to Boolean"))
780770 }
781- let fm = if (if (if (aL())
771+ let fi = if (if (if (aL())
782772 then true
783773 else (aY == l))
784774 then true
785775 else (aY == n))
786776 then true
787- else fk
788- let et = [if (if (!(fm))
777+ else fg
778+ let ep = [if (if (!(fi))
789779 then true
790- else eN(dx))
780+ else eJ(dt))
791781 then true
792- else aG("put operation is blocked by admin"), if ((size(dx.payments) == 1))
782+ else aG("put operation is blocked by admin"), if ((size(dt.payments) == 1))
793783 then true
794784 else aG("exactly 1 payment are expected")]
795- if ((et == et))
785+ if ((ep == ep))
796786 then {
797- let fn = dx.payments[0]
798- let dO = fn.assetId
799- let dN = fn.amount
800- let X = dx.caller
801- let Y = dx.transactionId
802- let fo = dM(dN, dO, X, Y)
803- if ((fo == fo))
787+ let fj = dt.payments[0]
788+ let dK = fj.assetId
789+ let dJ = fj.amount
790+ let X = dt.caller
791+ let Y = dt.transactionId
792+ let fk = dI(dJ, dK, X, Y)
793+ if ((fk == fk))
804794 then {
805- let dS = fo._5
806- let fp = fo._4
807- let dL = fo._3
808- let cV = fo._2
809- let fq = fo._1
810- let fr = if (if ((fi > 0))
811- then (fi > fq)
795+ let dO = fk._5
796+ let fl = fk._4
797+ let dH = fk._3
798+ let cV = fk._2
799+ let fm = fk._1
800+ let fn = if (if ((fe > 0))
801+ then (fe > fm)
812802 else false)
813- then aG(makeString(["amount to receive is less than ", toString(fi)], ""))
814- else fq
815- let dG = dE(fr)
816- if ((dG == dG))
803+ then aG(makeString(["amount to receive is less than ", toString(fe)], ""))
804+ else fm
805+ let dC = dA(fn)
806+ if ((dC == dC))
817807 then {
818- let fc = if (fj)
808+ let eY = if (ff)
819809 then {
820- let fs = invoke(bf, "stake", nil, [AttachedPayment(aZ, fr)])
821- if ((fs == fs))
810+ let fo = invoke(bf, "stake", nil, [AttachedPayment(aZ, fn)])
811+ if ((fo == fo))
822812 then nil
823813 else throw("Strict value is not equal to itself.")
824814 }
825- else [ScriptTransfer(dx.caller, fr, aZ)]
826- let ft = if ((dL > 0))
827- then [ScriptTransfer(aK, dL, dO)]
815+ else [ScriptTransfer(dt.caller, fn, aZ)]
816+ let fp = if ((dH > 0))
817+ then [ScriptTransfer(aK, dH, dK)]
828818 else nil
829- let fu = if ((this == aK))
819+ let fq = if ((this == aK))
830820 then $Tuple2(0, 0)
831- else if (dS)
832- then $Tuple2(-(dL), 0)
833- else $Tuple2(0, -(dL))
834- let db = fu._1
835- let dc = fu._2
836- let fv = da(db, dc, 0)
837- let ff = fv._1
838- let cZ = fv._2
839- $Tuple2((((cV ++ fc) ++ ft) ++ ff), fr)
821+ else if (dO)
822+ then $Tuple2(-(dH), 0)
823+ else $Tuple2(0, -(dH))
824+ let db = fq._1
825+ let dc = fq._2
826+ let fr = da(db, dc, 0)
827+ let fb = fr._1
828+ let cZ = fr._2
829+ $Tuple2((((cV ++ eY) ++ fp) ++ fb), fn)
840830 }
841831 else throw("Strict value is not equal to itself.")
842832 }
847837
848838
849839
850-@Callable(dx)
851-func putOneTknREADONLY (dO,dN) = {
852- let fw = dM(dN, aQ(dO), unit, unit)
853- let fq = fw._1
854- let cV = fw._2
855- let dL = fw._3
856- let fp = fw._4
857- let dS = fw._5
858- $Tuple2(nil, $Tuple3(fq, dL, fp))
840+@Callable(dt)
841+func putOneTknREADONLY (dK,dJ) = {
842+ let fs = dI(dJ, aQ(dK), unit, unit)
843+ let fm = fs._1
844+ let cV = fs._2
845+ let dH = fs._3
846+ let fl = fs._4
847+ let dO = fs._5
848+ $Tuple2(nil, $Tuple3(fm, dH, fl))
859849 }
860850
861851
862852
863-@Callable(dx)
864-func getOneTkn (fx,fi) = {
865- let fk = {
866- let fl = invoke(aJ, "isPoolOneTokenOperationsDisabledREADONLY", [toString(this)], nil)
867- if ($isInstanceOf(fl, "Boolean"))
868- then fl
869- else throw(($getType(fl) + " couldn't be cast to Boolean"))
853+@Callable(dt)
854+func getOneTkn (ft,fe) = {
855+ let fg = {
856+ let fh = invoke(aJ, "isPoolOneTokenOperationsDisabledREADONLY", [toString(this)], nil)
857+ if ($isInstanceOf(fh, "Boolean"))
858+ then fh
859+ else throw(($getType(fh) + " couldn't be cast to Boolean"))
870860 }
871- let fy = if (if (aL())
861+ let fu = if (if (aL())
872862 then true
873863 else (aY == n))
874864 then true
875- else fk
876- let et = [if (if (!(fy))
865+ else fg
866+ let ep = [if (if (!(fu))
877867 then true
878- else eN(dx))
868+ else eJ(dt))
879869 then true
880- else aG("get operation is blocked by admin"), if ((size(dx.payments) == 1))
870+ else aG("get operation is blocked by admin"), if ((size(dt.payments) == 1))
881871 then true
882872 else aG("exactly 1 payment are expected")]
883- if ((et == et))
873+ if ((ep == ep))
884874 then {
885- let es = aQ(fx)
886- let fn = dx.payments[0]
887- let dO = fn.assetId
888- let ea = fn.amount
889- let X = dx.caller
890- let Y = dx.transactionId
891- let fz = er(es, ea, dO, X, Y)
892- if ((fz == fz))
875+ let eo = aQ(ft)
876+ let fj = dt.payments[0]
877+ let dK = fj.assetId
878+ let dW = fj.amount
879+ let X = dt.caller
880+ let Y = dt.transactionId
881+ let fv = en(eo, dW, dK, X, Y)
882+ if ((fv == fv))
893883 then {
894- let eu = fz._5
895- let fp = fz._4
896- let dL = fz._3
897- let cV = fz._2
898- let fA = fz._1
899- let dF = if (if ((fi > 0))
900- then (fi > fA)
884+ let eq = fv._5
885+ let fl = fv._4
886+ let dH = fv._3
887+ let cV = fv._2
888+ let fw = fv._1
889+ let dB = if (if ((fe > 0))
890+ then (fe > fw)
901891 else false)
902- then aG(makeString(["amount to receive is less than ", toString(fi)], ""))
903- else fA
904- let fB = invoke(aJ, "burn", [ea], [AttachedPayment(dO, ea)])
905- if ((fB == fB))
892+ then aG(makeString(["amount to receive is less than ", toString(fe)], ""))
893+ else fw
894+ let fx = invoke(aJ, "burn", [dW], [AttachedPayment(dK, dW)])
895+ if ((fx == fx))
906896 then {
907- let fC = [ScriptTransfer(X, dF, es)]
908- let ft = if ((dL > 0))
909- then [ScriptTransfer(aK, dL, es)]
897+ let fy = [ScriptTransfer(X, dB, eo)]
898+ let fp = if ((dH > 0))
899+ then [ScriptTransfer(aK, dH, eo)]
910900 else nil
911- let fD = {
912- let fE = if ((this == aK))
901+ let fz = {
902+ let fA = if ((this == aK))
913903 then 0
914- else dL
915- if (eu)
916- then $Tuple2(-((dF + fE)), 0)
917- else $Tuple2(0, -((dF + fE)))
904+ else dH
905+ if (eq)
906+ then $Tuple2(-((dB + fA)), 0)
907+ else $Tuple2(0, -((dB + fA)))
918908 }
919- let db = fD._1
920- let dc = fD._2
921- let fF = da(db, dc, 0)
922- let ff = fF._1
923- let cZ = fF._2
924- $Tuple2((((cV ++ fC) ++ ft) ++ ff), dF)
909+ let db = fz._1
910+ let dc = fz._2
911+ let fB = da(db, dc, 0)
912+ let fb = fB._1
913+ let cZ = fB._2
914+ $Tuple2((((cV ++ fy) ++ fp) ++ fb), dB)
925915 }
926916 else throw("Strict value is not equal to itself.")
927917 }
932922
933923
934924
935-@Callable(dx)
936-func getOneTknREADONLY (es,ea) = {
937- let fG = er(aQ(es), ea, aZ, unit, unit)
938- let fA = fG._1
939- let cV = fG._2
940- let dL = fG._3
941- let fp = fG._4
942- let eu = fG._5
943- $Tuple2(nil, $Tuple3(fA, dL, fp))
925+@Callable(dt)
926+func getOneTknREADONLY (eo,dW) = {
927+ let fC = en(aQ(eo), dW, aZ, unit, unit)
928+ let fw = fC._1
929+ let cV = fC._2
930+ let dH = fC._3
931+ let fl = fC._4
932+ let eq = fC._5
933+ $Tuple2(nil, $Tuple3(fw, dH, fl))
944934 }
945935
946936
947937
948-@Callable(dx)
949-func unstakeAndGetOneTkn (fH,fx,fi) = {
950- let fk = {
951- let fl = invoke(aJ, "isPoolOneTokenOperationsDisabledREADONLY", [toString(this)], nil)
952- if ($isInstanceOf(fl, "Boolean"))
953- then fl
954- else throw(($getType(fl) + " couldn't be cast to Boolean"))
938+@Callable(dt)
939+func unstakeAndGetOneTkn (fD,ft,fe) = {
940+ let fg = {
941+ let fh = invoke(aJ, "isPoolOneTokenOperationsDisabledREADONLY", [toString(this)], nil)
942+ if ($isInstanceOf(fh, "Boolean"))
943+ then fh
944+ else throw(($getType(fh) + " couldn't be cast to Boolean"))
955945 }
956- let fy = if (if (aL())
946+ let fu = if (if (aL())
957947 then true
958948 else (aY == n))
959949 then true
960- else fk
961- let et = [if (if (!(fy))
950+ else fg
951+ let ep = [if (if (!(fu))
962952 then true
963- else eN(dx))
953+ else eJ(dt))
964954 then true
965- else aG("get operation is blocked by admin"), if ((size(dx.payments) == 0))
955+ else aG("get operation is blocked by admin"), if ((size(dt.payments) == 0))
966956 then true
967957 else aG("no payments are expected")]
968- if ((et == et))
958+ if ((ep == ep))
969959 then {
970- let es = aQ(fx)
971- let X = dx.caller
972- let Y = dx.transactionId
973- let fI = invoke(bf, "unstake", [toBase58String(aZ), fH], nil)
974- if ((fI == fI))
960+ let eo = aQ(ft)
961+ let X = dt.caller
962+ let Y = dt.transactionId
963+ let fE = invoke(bf, "unstake", [toBase58String(aZ), fD], nil)
964+ if ((fE == fE))
975965 then {
976- let fJ = er(es, fH, aZ, X, Y)
977- if ((fJ == fJ))
966+ let fF = en(eo, fD, aZ, X, Y)
967+ if ((fF == fF))
978968 then {
979- let eu = fJ._5
980- let fp = fJ._4
981- let dL = fJ._3
982- let cV = fJ._2
983- let fA = fJ._1
984- let dF = if (if ((fi > 0))
985- then (fi > fA)
969+ let eq = fF._5
970+ let fl = fF._4
971+ let dH = fF._3
972+ let cV = fF._2
973+ let fw = fF._1
974+ let dB = if (if ((fe > 0))
975+ then (fe > fw)
986976 else false)
987- then aG(makeString(["amount to receive is less than ", toString(fi)], ""))
988- else fA
989- let fB = invoke(aJ, "burn", [fH], [AttachedPayment(aZ, fH)])
990- if ((fB == fB))
977+ then aG(makeString(["amount to receive is less than ", toString(fe)], ""))
978+ else fw
979+ let fx = invoke(aJ, "burn", [fD], [AttachedPayment(aZ, fD)])
980+ if ((fx == fx))
991981 then {
992- let fC = [ScriptTransfer(dx.caller, dF, es)]
993- let ft = if ((dL > 0))
994- then [ScriptTransfer(aK, dL, es)]
982+ let fy = [ScriptTransfer(dt.caller, dB, eo)]
983+ let fp = if ((dH > 0))
984+ then [ScriptTransfer(aK, dH, eo)]
995985 else nil
996- let fK = {
997- let fE = if ((this == aK))
986+ let fG = {
987+ let fA = if ((this == aK))
998988 then 0
999- else dL
1000- if (eu)
1001- then $Tuple2(-((dF + fE)), 0)
1002- else $Tuple2(0, -((dF + fE)))
989+ else dH
990+ if (eq)
991+ then $Tuple2(-((dB + fA)), 0)
992+ else $Tuple2(0, -((dB + fA)))
1003993 }
1004- let db = fK._1
1005- let dc = fK._2
1006- let fL = da(db, dc, 0)
1007- let ff = fL._1
1008- let cZ = fL._2
1009- $Tuple2((((cV ++ fC) ++ ft) ++ ff), dF)
994+ let db = fG._1
995+ let dc = fG._2
996+ let fH = da(db, dc, 0)
997+ let fb = fH._1
998+ let cZ = fH._2
999+ $Tuple2((((cV ++ fy) ++ fp) ++ fb), dB)
10101000 }
10111001 else throw("Strict value is not equal to itself.")
10121002 }
10191009
10201010
10211011
1022-@Callable(dx)
1012+@Callable(dt)
10231013 func get () = {
1024- let cG = dw(dx)
1025- let fM = cG._1
1014+ let cG = ds(dt)
1015+ let fI = cG._1
10261016 let cn = cG._2
1027- let dz = cG._3
1017+ let dv = cG._3
10281018 let bV = cG._4
10291019 let co = cG._5
1030- let fN = invoke(aJ, "burn", [dz], [AttachedPayment(bV, dz)])
1031- if ((fN == fN))
1020+ let fJ = invoke(aJ, "burn", [dv], [AttachedPayment(bV, dv)])
1021+ if ((fJ == fJ))
10321022 then {
1033- let fO = da(-(fM), -(cn), 0)
1034- let ff = fO._1
1035- let cZ = fO._2
1036- (co ++ ff)
1023+ let fK = da(-(fI), -(cn), 0)
1024+ let fb = fK._1
1025+ let cZ = fK._2
1026+ (co ++ fb)
10371027 }
10381028 else throw("Strict value is not equal to itself.")
10391029 }
10401030
10411031
10421032
1043-@Callable(dx)
1044-func getNoLess (fP,fQ) = {
1045- let cG = dw(dx)
1033+@Callable(dt)
1034+func getNoLess (fL,fM) = {
1035+ let cG = ds(dt)
10461036 let cm = cG._1
10471037 let cn = cG._2
1048- let dz = cG._3
1038+ let dv = cG._3
10491039 let bV = cG._4
10501040 let co = cG._5
1051- if ((fP > cm))
1052- then throw(((("noLessThenAmtAsset failed: " + toString(cm)) + " < ") + toString(fP)))
1053- else if ((fQ > cn))
1054- then throw(((("noLessThenPriceAsset failed: " + toString(cn)) + " < ") + toString(fQ)))
1041+ if ((fL > cm))
1042+ then throw(((("noLessThenAmtAsset failed: " + toString(cm)) + " < ") + toString(fL)))
1043+ else if ((fM > cn))
1044+ then throw(((("noLessThenPriceAsset failed: " + toString(cn)) + " < ") + toString(fM)))
10551045 else {
1056- let fN = invoke(aJ, "burn", [dz], [AttachedPayment(bV, dz)])
1057- if ((fN == fN))
1046+ let fJ = invoke(aJ, "burn", [dv], [AttachedPayment(bV, dv)])
1047+ if ((fJ == fJ))
10581048 then {
1059- let fR = da(-(cm), -(cn), 0)
1060- let ff = fR._1
1061- let cZ = fR._2
1062- (co ++ ff)
1049+ let fN = da(-(cm), -(cn), 0)
1050+ let fb = fN._1
1051+ let cZ = fN._2
1052+ (co ++ fb)
10631053 }
10641054 else throw("Strict value is not equal to itself.")
10651055 }
10671057
10681058
10691059
1070-@Callable(dx)
1071-func unstakeAndGet (dF) = {
1072- let fS = if ((size(dx.payments) != 0))
1060+@Callable(dt)
1061+func unstakeAndGet (dB) = {
1062+ let fO = if ((size(dt.payments) != 0))
10731063 then throw("No payments are expected")
10741064 else true
1075- if ((fS == fS))
1065+ if ((fO == fO))
10761066 then {
10771067 let bK = aN()
10781068 let bX = fromBase58String(bK[q])
1079- let fI = invoke(bf, "unstake", [toBase58String(bX), dF], nil)
1080- if ((fI == fI))
1069+ let fE = invoke(bf, "unstake", [toBase58String(bX), dB], nil)
1070+ if ((fE == fE))
10811071 then {
1082- let cG = bT(toBase58String(dx.transactionId), toBase58String(bX), dF, dx.caller)
1072+ let cG = bT(toBase58String(dt.transactionId), toBase58String(bX), dB, dt.caller)
10831073 let cm = cG._1
10841074 let cn = cG._2
10851075 let ca = parseIntValue(cG._9)
10861076 let co = cG._10
1087- let fT = if (if (aL())
1077+ let fP = if (if (aL())
10881078 then true
10891079 else (ca == n))
10901080 then throw(("Get operation is blocked by admin. Status = " + toString(ca)))
10911081 else true
1092- if ((fT == fT))
1082+ if ((fP == fP))
10931083 then {
1094- let fN = invoke(aJ, "burn", [dF], [AttachedPayment(bX, dF)])
1095- if ((fN == fN))
1084+ let fJ = invoke(aJ, "burn", [dB], [AttachedPayment(bX, dB)])
1085+ if ((fJ == fJ))
10961086 then {
1097- let fU = da(-(cm), -(cn), 0)
1098- let ff = fU._1
1099- let cZ = fU._2
1100- (co ++ ff)
1087+ let fQ = da(-(cm), -(cn), 0)
1088+ let fb = fQ._1
1089+ let cZ = fQ._2
1090+ (co ++ fb)
11011091 }
11021092 else throw("Strict value is not equal to itself.")
11031093 }
11101100
11111101
11121102
1113-@Callable(dx)
1114-func unstakeAndGetNoLess (fH,fV,fQ) = {
1115- let fy = if (aL())
1103+@Callable(dt)
1104+func unstakeAndGetNoLess (fD,fR,fM) = {
1105+ let fu = if (aL())
11161106 then true
11171107 else (aY == n)
1118- let et = [if (!(fy))
1108+ let ep = [if (!(fu))
11191109 then true
1120- else throw("get operation is blocked by admin"), if ((size(dx.payments) == 0))
1110+ else throw("get operation is blocked by admin"), if ((size(dt.payments) == 0))
11211111 then true
11221112 else throw("no payments are expected")]
1123- if ((et == et))
1113+ if ((ep == ep))
11241114 then {
1125- let fI = invoke(bf, "unstake", [toBase58String(aZ), fH], nil)
1126- if ((fI == fI))
1115+ let fE = invoke(bf, "unstake", [toBase58String(aZ), fD], nil)
1116+ if ((fE == fE))
11271117 then {
1128- let cG = bT(toBase58String(dx.transactionId), toBase58String(aZ), fH, dx.caller)
1118+ let cG = bT(toBase58String(dt.transactionId), toBase58String(aZ), fD, dt.caller)
11291119 let cm = cG._1
11301120 let cn = cG._2
11311121 let co = cG._10
1132- let fW = [if ((cm >= fV))
1122+ let fS = [if ((cm >= fR))
11331123 then true
1134- else throw(makeString(["amount asset amount to receive is less than ", toString(fV)], "")), if ((cn >= fQ))
1124+ else throw(makeString(["amount asset amount to receive is less than ", toString(fR)], "")), if ((cn >= fM))
11351125 then true
1136- else throw(makeString(["price asset amount to receive is less than ", toString(fQ)], ""))]
1137- if ((fW == fW))
1126+ else throw(makeString(["price asset amount to receive is less than ", toString(fM)], ""))]
1127+ if ((fS == fS))
11381128 then {
1139- let fN = invoke(aJ, "burn", [fH], [AttachedPayment(aZ, fH)])
1140- if ((fN == fN))
1129+ let fJ = invoke(aJ, "burn", [fD], [AttachedPayment(aZ, fD)])
1130+ if ((fJ == fJ))
11411131 then {
1142- let fX = da(-(cm), -(cn), 0)
1143- let ff = fX._1
1144- let cZ = fX._2
1145- (co ++ ff)
1132+ let fT = da(-(cm), -(cn), 0)
1133+ let fb = fT._1
1134+ let cZ = fT._2
1135+ (co ++ fb)
11461136 }
11471137 else throw("Strict value is not equal to itself.")
11481138 }
11551145
11561146
11571147
1158-@Callable(dx)
1159-func activate (fY,fZ) = if ((toString(dx.caller) != toString(aJ)))
1148+@Callable(dt)
1149+func activate (fU,fV) = if ((toString(dt.caller) != toString(aJ)))
11601150 then throw("permissions denied")
1161- else $Tuple2([StringEntry(aa(), fY), StringEntry(ab(), fZ)], "success")
1151+ else $Tuple2([StringEntry(aa(), fU), StringEntry(ab(), fV)], "success")
11621152
11631153
11641154
1165-@Callable(dx)
1155+@Callable(dt)
11661156 func refreshKLp () = {
1167- let ga = valueOrElse(getInteger(ag), 0)
1168- let gb = if (((height - ga) >= aj))
1157+ let fW = valueOrElse(getInteger(ag), 0)
1158+ let fX = if (((height - fW) >= aj))
11691159 then unit
11701160 else aG(makeString([toString(aj), " blocks have not passed since the previous call"], ""))
1171- if ((gb == gb))
1161+ if ((fX == fX))
11721162 then {
1173- let gc = da(0, 0, 0)
1174- let dh = gc._1
1175- let cZ = gc._2
1163+ let fY = da(0, 0, 0)
1164+ let dh = fY._1
1165+ let cZ = fY._2
11761166 $Tuple2(dh, toString(cZ))
11771167 }
11781168 else throw("Strict value is not equal to itself.")
11801170
11811171
11821172
1183-@Callable(dx)
1173+@Callable(dt)
11841174 func getPoolConfigWrapperREADONLY () = $Tuple2(nil, aN())
11851175
11861176
11871177
1188-@Callable(dx)
1178+@Callable(dt)
11891179 func getAccBalanceWrapperREADONLY (bx) = $Tuple2(nil, bw(bx))
11901180
11911181
11921182
1193-@Callable(dx)
1183+@Callable(dt)
11941184 func calcPricesWrapperREADONLY (bE,bF,bJ) = {
11951185 let bS = bI(bE, bF, bJ)
11961186 $Tuple2(nil, [toString(bS[0]), toString(bS[1]), toString(bS[2])])
11981188
11991189
12001190
1201-@Callable(dx)
1191+@Callable(dt)
12021192 func toX18WrapperREADONLY (E,F) = $Tuple2(nil, toString(D(E, F)))
12031193
12041194
12051195
1206-@Callable(dx)
1196+@Callable(dt)
12071197 func fromX18WrapperREADONLY (H,I) = $Tuple2(nil, G(parseBigIntValue(H), I))
12081198
12091199
12101200
1211-@Callable(dx)
1201+@Callable(dt)
12121202 func calcPriceBigIntWrapperREADONLY (bz,bA) = $Tuple2(nil, toString(by(parseBigIntValue(bz), parseBigIntValue(bA))))
12131203
12141204
12151205
1216-@Callable(dx)
1206+@Callable(dt)
12171207 func estimatePutOperationWrapperREADONLY (bU,cq,cr,cs,ct,cu,X,cv,cw) = $Tuple2(nil, cp(bU, cq, cr, cs, ct, cu, X, cv, cw))
12181208
12191209
12201210
1221-@Callable(dx)
1211+@Callable(dt)
12221212 func estimateGetOperationWrapperREADONLY (bU,bV,bW,X) = {
12231213 let cG = bT(bU, bV, bW, addressFromStringValue(X))
12241214 $Tuple2(nil, $Tuple10(cG._1, cG._2, cG._3, cG._4, cG._5, cG._6, cG._7, toString(cG._8), cG._9, cG._10))
12261216
12271217
12281218
1229-@Callable(dx)
1219+@Callable(dt)
12301220 func statsREADONLY () = {
12311221 let bK = aN()
12321222 let bX = fromBase58String(bK[q])
1233- let dk = bK[r]
1234- let dl = bK[s]
1223+ let fZ = bK[r]
1224+ let ga = bK[s]
12351225 let cz = bK[v]
12361226 let cA = bK[w]
12371227 let bL = parseIntValue(bK[t])
12381228 let bM = parseIntValue(bK[u])
1239- let gd = valueOrErrorMessage(assetInfo(bX), (("Asset " + toBase58String(bX)) + " doesn't exist")).quantity
1240- let ge = bw(dk)
1241- let gf = bw(dl)
1242- let gg = if ((gd == 0))
1229+ let gb = valueOrErrorMessage(assetInfo(bX), (("Asset " + toBase58String(bX)) + " doesn't exist")).quantity
1230+ let gc = bw(fZ)
1231+ let gd = bw(ga)
1232+ let ge = if ((gb == 0))
12431233 then [e, e, e]
1244- else bI(ge, gf, gd)
1234+ else bI(gc, gd, gb)
12451235 let ch = 0
1246- let gh = G(gg[1], b)
1247- let gi = G(gg[2], b)
1248- let gj = value(getInteger(aJ, au(toString(this))))
1249- $Tuple2(nil, makeString(["%d%d%d%d%d%d%d", toString(ge), toString(gf), toString(gd), toString(ch), toString(gh), toString(gi), toString(gj)], j))
1236+ let gf = G(ge[1], b)
1237+ let gg = G(ge[2], b)
1238+ let gh = value(getInteger(aJ, au(toString(this))))
1239+ $Tuple2(nil, makeString(["%d%d%d%d%d%d%d", toString(gc), toString(gd), toString(gb), toString(ch), toString(gf), toString(gg), toString(gh)], j))
12501240 }
12511241
12521242
12531243
1254-@Callable(dx)
1244+@Callable(dt)
12551245 func evaluatePutByAmountAssetREADONLY (cr) = {
12561246 let bK = aN()
12571247 let bX = fromBase58String(bK[q])
12621252 let bL = parseIntValue(bK[t])
12631253 let bM = parseIntValue(bK[u])
12641254 let ca = bK[p]
1265- let gd = valueOrErrorMessage(assetInfo(bX), (("Asset " + toBase58String(bX)) + " doesn't exist")).quantity
1266- let ge = bw(cx)
1267- let gf = bw(cy)
1268- let bG = D(ge, bL)
1269- let bH = D(gf, bM)
1270- let cg = if ((gd == 0))
1255+ let gb = valueOrErrorMessage(assetInfo(bX), (("Asset " + toBase58String(bX)) + " doesn't exist")).quantity
1256+ let gc = bw(cx)
1257+ let gd = bw(cy)
1258+ let bG = D(gc, bL)
1259+ let bH = D(gd, bM)
1260+ let cg = if ((gb == 0))
12711261 then e
12721262 else by(bH, bG)
12731263 let cD = D(cr, bL)
12741264 let cE = fraction(cD, cg, d)
12751265 let ct = G(cE, bM)
1276- let dD = cp("", 500000, cr, bY, ct, bZ, "", true, false)
1277- let cO = dD._1
1278- let gk = dD._3
1279- let cc = dD._4
1280- let ce = dD._5
1281- let cb = dD._6
1266+ let dz = cp("", 500000, cr, bY, ct, bZ, "", true, false)
1267+ let cO = dz._1
1268+ let gi = dz._3
1269+ let cc = dz._4
1270+ let ce = dz._5
1271+ let cb = dz._6
12821272 $Tuple2(nil, makeString(["%d%d%d%d%d%d%d%d", toString(cO), toString(G(cg, b)), toString(cc), toString(ce), toString(cb), ca, toString(cr), toString(ct)], j))
12831273 }
12841274
12851275
12861276
1287-@Callable(dx)
1277+@Callable(dt)
12881278 func evaluatePutByPriceAssetREADONLY (ct) = {
12891279 let bK = aN()
12901280 let bX = fromBase58String(bK[q])
12951285 let bL = parseIntValue(bK[t])
12961286 let bM = parseIntValue(bK[u])
12971287 let ca = bK[p]
1298- let gd = valueOrErrorMessage(assetInfo(bX), (("Asset " + toBase58String(bX)) + " doesn't exist")).quantity
1299- let gl = bw(cx)
1300- let gm = bw(cy)
1301- let gn = D(gl, bL)
1302- let go = D(gm, bM)
1303- let cg = if ((gd == 0))
1288+ let gb = valueOrErrorMessage(assetInfo(bX), (("Asset " + toBase58String(bX)) + " doesn't exist")).quantity
1289+ let gj = bw(cx)
1290+ let gk = bw(cy)
1291+ let gl = D(gj, bL)
1292+ let gm = D(gk, bM)
1293+ let cg = if ((gb == 0))
13041294 then e
1305- else by(go, gn)
1295+ else by(gm, gl)
13061296 let cE = D(ct, bM)
13071297 let cD = fraction(cE, d, cg)
13081298 let cr = G(cD, bL)
1309- let dD = cp("", 500000, cr, bY, ct, bZ, "", true, false)
1310- let cO = dD._1
1311- let gk = dD._3
1312- let cc = dD._4
1313- let ce = dD._5
1314- let cb = dD._6
1299+ let dz = cp("", 500000, cr, bY, ct, bZ, "", true, false)
1300+ let cO = dz._1
1301+ let gi = dz._3
1302+ let cc = dz._4
1303+ let ce = dz._5
1304+ let cb = dz._6
13151305 $Tuple2(nil, makeString(["%d%d%d%d%d%d%d%d", toString(cO), toString(G(cg, b)), toString(cc), toString(ce), toString(cb), ca, toString(cr), toString(ct)], j))
13161306 }
13171307
13181308
13191309
1320-@Callable(dx)
1321-func evaluateGetREADONLY (gp,gq) = {
1322- let cG = bT("", gp, gq, this)
1310+@Callable(dt)
1311+func evaluateGetREADONLY (gn,go) = {
1312+ let cG = bT("", gn, go, this)
13231313 let cm = cG._1
13241314 let cn = cG._2
13251315 let cc = cG._5
13311321 }
13321322
13331323
1334-@Verifier(gr)
1335-func gs () = {
1336- let gt = {
1337- let dI = eK()
1338- if ($isInstanceOf(dI, "ByteVector"))
1324+@Verifier(gp)
1325+func gq () = {
1326+ let gr = {
1327+ let dE = eG()
1328+ if ($isInstanceOf(dE, "ByteVector"))
13391329 then {
1340- let eO = dI
1341- eO
1330+ let eK = dE
1331+ eK
13421332 }
1343- else if ($isInstanceOf(dI, "Unit"))
1344- then gr.senderPublicKey
1333+ else if ($isInstanceOf(dE, "Unit"))
1334+ then gp.senderPublicKey
13451335 else throw("Match error")
13461336 }
1347- let dI = gr
1348- if ($isInstanceOf(dI, "Order"))
1337+ let dE = gp
1338+ if ($isInstanceOf(dE, "Order"))
13491339 then {
1350- let dj = dI
1351- let gu = aM()
1340+ let dj = dE
1341+ let gs = aM()
13521342 let az = di(dj)
13531343 let aA = sigVerify(dj.bodyBytes, dj.proofs[0], dj.senderPublicKey)
1354- let aB = sigVerify(dj.bodyBytes, dj.proofs[1], gu)
1344+ let aB = sigVerify(dj.bodyBytes, dj.proofs[1], gs)
13551345 if (if (if (az)
13561346 then aA
13571347 else false)
13601350 then true
13611351 else ay(az, aA, aB)
13621352 }
1363- else if ($isInstanceOf(dI, "SetScriptTransaction"))
1353+ else if ($isInstanceOf(dE, "SetScriptTransaction"))
13641354 then {
1365- let eL = dI
1366- let gv = blake2b256(value(eL.script))
1367- let gw = fromBase64String(value(getString(aJ, aw())))
1368- let gx = scriptHash(this)
1369- if (if ((gw == gv))
1370- then (gx != gv)
1355+ let eH = dE
1356+ let gt = blake2b256(value(eH.script))
1357+ let gu = fromBase64String(value(getString(aJ, aw())))
1358+ let gv = scriptHash(this)
1359+ if (if ((gu == gt))
1360+ then (gv != gt)
13711361 else false)
13721362 then true
1373- else sigVerify(gr.bodyBytes, gr.proofs[0], gt)
1363+ else sigVerify(gp.bodyBytes, gp.proofs[0], gr)
13741364 }
1375- else sigVerify(gr.bodyBytes, gr.proofs[0], gt)
1365+ else sigVerify(gp.bodyBytes, gp.proofs[0], gr)
13761366 }
13771367
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 = toBigInt(100000000)
99
1010 let d = toBigInt(1000000000000000000)
1111
1212 let e = toBigInt(0)
1313
1414 let f = toBigInt(0)
1515
1616 let g = toBigInt(1)
1717
1818 let h = toBigInt(2)
1919
2020 let i = "WAVES"
2121
2222 let j = "__"
2323
2424 let k = 1
2525
2626 let l = 2
2727
2828 let m = 3
2929
3030 let n = 4
3131
3232 let o = 1
3333
3434 let p = 2
3535
3636 let q = 3
3737
3838 let r = 4
3939
4040 let s = 5
4141
4242 let t = 6
4343
4444 let u = 7
4545
4646 let v = 8
4747
4848 let w = 9
4949
5050 let x = 10
5151
5252 let y = 1
5353
5454 let z = 2
5555
5656 let A = 3
5757
5858 let B = 1
5959
6060 let C = 7
6161
6262 func D (E,F) = fraction(toBigInt(E), d, toBigInt(F))
6363
6464
6565 func G (H,I) = toInt(fraction(H, toBigInt(I), d))
6666
6767
6868 func J (K,L,M) = fraction(K, L, M)
6969
7070
7171 func N (H) = if ((0 > H))
7272 then -(H)
7373 else H
7474
7575
7676 func O (H) = if ((e > H))
7777 then -(H)
7878 else H
7979
8080
8181 func P () = "%s__factoryContract"
8282
8383
8484 func Q () = "%s__managerPublicKey"
8585
8686
8787 func R () = "%s__pendingManagerPublicKey"
8888
8989
9090 func S () = "%s%s__price__last"
9191
9292
9393 func T (U,V) = makeString(["%s%s%d%d__price__history", toString(U), toString(V)], j)
9494
9595
9696 func W (X,Y) = ((("%s%s%s__P__" + X) + "__") + Y)
9797
9898
9999 func Z (X,Y) = ((("%s%s%s__G__" + X) + "__") + Y)
100100
101101
102102 func aa () = "%s__amountAsset"
103103
104104
105105 func ab () = "%s__priceAsset"
106106
107107
108108 let ac = "%s__fee"
109109
110110 let ad = fraction(10, b, 10000)
111111
112112 let ae = valueOrElse(getInteger(this, ac), ad)
113113
114114 let af = makeString(["%s", "kLp"], j)
115115
116116 let ag = makeString(["%s", "kLpRefreshedHeight"], j)
117117
118118 let ah = makeString(["%s", "refreshKLpDelay"], j)
119119
120120 let ai = 30
121121
122122 let aj = valueOrElse(getInteger(this, ah), ai)
123123
124124 func ak () = "%s__factoryConfig"
125125
126126
127127 func al () = "%s%s__matcher__publicKey"
128128
129129
130130 func am (an) = (("%s%s%s__" + an) + "__mappings__poolContract2LpAsset")
131131
132132
133133 func ao (ap,aq) = (((("%d%d%s__" + ap) + "__") + aq) + "__config")
134134
135135
136136 func ar (as) = ("%s%s%s__mappings__baseAsset2internalId__" + as)
137137
138138
139139 func at () = "%s__shutdown"
140140
141141
142142 func au (av) = ("%s%s__poolWeight__" + av)
143143
144144
145145 func aw () = "%s__allowedLpScriptHash"
146146
147147
148148 let ax = "%s__feeCollectorAddress"
149149
150150 func ay (az,aA,aB) = throw(((((("order validation failed: orderValid=" + toString(az)) + " senderValid=") + toString(aA)) + " matcherValid=") + toString(aB)))
151151
152152
153153 func aC (aD,aE) = valueOrErrorMessage(getString(aD, aE), makeString(["mandatory ", toString(aD), ".", aE, " is not defined"], ""))
154154
155155
156156 func aF (aD,aE) = valueOrErrorMessage(getInteger(aD, aE), makeString(["mandatory ", toString(aD), ".", aE, " is not defined"], ""))
157157
158158
159159 func aG (aH) = throw(makeString(["lp.ride:", aH], " "))
160160
161161
162162 func aI (aH) = makeString(["lp.ride:", aH], " ")
163163
164164
165165 let aJ = addressFromStringValue(aC(this, P()))
166166
167167 let aK = addressFromStringValue(aC(aJ, ax))
168168
169169 func aL () = valueOrElse(getBoolean(aJ, at()), false)
170170
171171
172172 func aM () = fromBase58String(aC(aJ, al()))
173173
174174
175175 func aN () = {
176176 let aO = aC(this, aa())
177177 let aP = aC(this, ab())
178178 let aq = aF(aJ, ar(aP))
179179 let ap = aF(aJ, ar(aO))
180180 split(aC(aJ, ao(toString(ap), toString(aq))), j)
181181 }
182182
183183
184184 func aQ (aR) = if ((aR == i))
185185 then unit
186186 else fromBase58String(aR)
187187
188188
189189 func aS (aR) = if ((aR == unit))
190190 then i
191191 else toBase58String(value(aR))
192192
193193
194194 func aT (aU) = $Tuple7(addressFromStringValue(aU[o]), parseIntValue(aU[p]), fromBase58String(aU[q]), aQ(aU[r]), aQ(aU[s]), parseIntValue(aU[t]), parseIntValue(aU[u]))
195195
196196
197197 let aV = aT(aN())
198198
199199 let aW = aV
200200
201201 let aX = aW._1
202202
203203 let aY = aW._2
204204
205205 let aZ = aW._3
206206
207207 let ba = aW._4
208208
209209 let bb = aW._5
210210
211211 let bc = aW._6
212212
213213 let bd = aW._7
214214
215215 func be () = split(aC(aJ, ak()), j)
216216
217217
218218 let bf = valueOrErrorMessage(addressFromString(be()[B]), "incorrect staking address")
219219
220220 let bg = valueOrErrorMessage(addressFromString(be()[C]), "incorrect staking address")
221221
222222 func bh (bi,bj,bk,bl,bm,bn,bo,bp,bq,br) = makeString(["%d%d%d%d%d%d%d%d%d%d", toString(bi), toString(bj), toString(bk), toString(bl), toString(bm), toString(bn), toString(bo), toString(bp), toString(bq), toString(br)], j)
223223
224224
225225 func bs (bt,bu,bv,bl,bo,bp) = makeString(["%d%d%d%d%d%d", toString(bt), toString(bu), toString(bv), toString(bl), toString(bo), toString(bp)], j)
226226
227227
228228 func bw (bx) = if ((bx == "WAVES"))
229229 then wavesBalance(this).available
230230 else assetBalance(this, fromBase58String(bx))
231231
232232
233233 func by (bz,bA) = fraction(bz, d, bA)
234234
235235
236236 func bB (bC,bD,bE,bF) = {
237237 let bG = D(bE, bC)
238238 let bH = D(bF, bD)
239239 by(bH, bG)
240240 }
241241
242242
243243 func bI (bE,bF,bJ) = {
244244 let bK = aN()
245245 let bL = parseIntValue(bK[t])
246246 let bM = parseIntValue(bK[u])
247247 let bN = bB(bL, bM, bE, bF)
248248 let bA = D(bE, bL)
249249 let bz = D(bF, bM)
250250 let bO = D(bJ, b)
251251 let bP = by(bA, bO)
252252 let bQ = by(bz, bO)
253253 [bN, bP, bQ]
254254 }
255255
256256
257257 func bR (bE,bF,bJ) = {
258258 let bS = bI(bE, bF, bJ)
259259 [G(bS[0], b), G(bS[1], b), G(bS[2], b)]
260260 }
261261
262262
263263 func bT (bU,bV,bW,X) = {
264264 let bK = aN()
265265 let bX = bK[q]
266266 let bY = bK[r]
267267 let bZ = bK[s]
268268 let bC = parseIntValue(bK[t])
269269 let bD = parseIntValue(bK[u])
270270 let ca = bK[p]
271271 let cb = valueOrErrorMessage(assetInfo(fromBase58String(bX)), (("Asset " + bX) + " doesn't exist")).quantity
272272 if ((bX != bV))
273273 then throw("Invalid asset passed.")
274274 else {
275275 let cc = bw(bY)
276276 let cd = D(cc, bC)
277277 let ce = bw(bZ)
278278 let cf = D(ce, bD)
279279 let cg = by(cf, cd)
280280 let ch = G(cg, b)
281281 let ci = D(bW, b)
282282 let cj = D(cb, b)
283283 let ck = fraction(cd, ci, cj)
284284 let cl = fraction(cf, ci, cj)
285285 let cm = G(ck, bC)
286286 let cn = G(cl, bD)
287287 let co = if ((bU == ""))
288288 then nil
289289 else [ScriptTransfer(X, cm, if ((bY == "WAVES"))
290290 then unit
291291 else fromBase58String(bY)), ScriptTransfer(X, cn, if ((bZ == "WAVES"))
292292 then unit
293293 else fromBase58String(bZ)), StringEntry(Z(toString(X), bU), bs(cm, cn, bW, ch, height, lastBlock.timestamp)), IntegerEntry(S(), ch), IntegerEntry(T(height, lastBlock.timestamp), ch)]
294294 $Tuple10(cm, cn, bY, bZ, cc, ce, cb, cg, ca, co)
295295 }
296296 }
297297
298298
299299 func cp (bU,cq,cr,cs,ct,cu,X,cv,cw) = {
300300 let bK = aN()
301301 let bX = fromBase58String(bK[q])
302302 let cx = bK[r]
303303 let cy = bK[s]
304304 let cz = bK[v]
305305 let cA = bK[w]
306306 let bL = parseIntValue(bK[t])
307307 let bM = parseIntValue(bK[u])
308308 let ca = bK[p]
309309 let cb = valueOrErrorMessage(assetInfo(bX), (("Asset " + toBase58String(bX)) + " doesn't exist")).quantity
310310 let cB = toBase58String(valueOrElse(cs, fromBase58String("WAVES")))
311311 let cC = toBase58String(valueOrElse(cu, fromBase58String("WAVES")))
312312 if (if ((cx != cB))
313313 then true
314314 else (cy != cC))
315315 then throw("Invalid amt or price asset passed.")
316316 else {
317317 let cc = if (cv)
318318 then bw(cx)
319319 else (bw(cx) - cr)
320320 let ce = if (cv)
321321 then bw(cy)
322322 else (bw(cy) - ct)
323323 let cD = D(cr, bL)
324324 let cE = D(ct, bM)
325325 let cF = by(cE, cD)
326326 let cd = D(cc, bL)
327327 let cf = D(ce, bM)
328328 let cG = if ((cb == 0))
329329 then {
330330 let cg = e
331331 let cH = e
332332 let bO = pow((cD * cE), 0, toBigInt(5), 1, 0, DOWN)
333333 $Tuple5(G(bO, b), G(cD, bL), G(cE, bM), by((cf + cE), (cd + cD)), cH)
334334 }
335335 else {
336336 let cg = by(cf, cd)
337337 let cH = fraction(O((cg - cF)), d, cg)
338338 let cI = D(cq, b)
339339 if (if ((cg != e))
340340 then (cH > cI)
341341 else false)
342342 then throw(((("Price slippage " + toString(cH)) + " exceeded the passed limit of ") + toString(cI)))
343343 else {
344344 let cj = D(cb, b)
345345 let cJ = fraction(cD, cg, d)
346346 let cK = fraction(cE, d, cg)
347347 let cL = if ((cJ > cE))
348348 then $Tuple2(cK, cE)
349349 else $Tuple2(cD, cJ)
350350 let cM = cL._1
351351 let cN = cL._2
352352 let bO = fraction(cj, cN, cf)
353353 $Tuple5(G(bO, b), G(cM, bL), G(cN, bM), cg, cH)
354354 }
355355 }
356356 let cO = cG._1
357357 let cP = cG._2
358358 let cQ = cG._3
359359 let ch = G(cG._4, b)
360360 let cR = G(cG._5, b)
361361 if ((0 >= cO))
362362 then throw("Invalid calculations. LP calculated is less than zero.")
363363 else {
364364 let cS = if (!(cw))
365365 then 0
366366 else cO
367367 let cT = (cr - cP)
368368 let cU = (ct - cQ)
369369 let cV = [IntegerEntry(S(), ch), IntegerEntry(T(height, lastBlock.timestamp), ch), StringEntry(W(X, bU), bh(cP, cQ, cS, ch, cq, cR, height, lastBlock.timestamp, cT, cU))]
370370 $Tuple13(cO, cS, ch, cc, ce, cb, bX, ca, cV, cT, cU, cs, cu)
371371 }
372372 }
373373 }
374374
375375
376376 func cW (cX,cY,cb) = {
377377 let cZ = fraction(pow((cX * cY), 0, toBigInt(5), 1, 0, DOWN), d, cb)
378378 cZ
379379 }
380380
381381
382382 func da (db,dc,dd) = {
383383 let de = (bw(aS(ba)) + db)
384384 let df = (bw(aS(bb)) + dc)
385385 let dg = (value(assetInfo(aZ)).quantity + dd)
386386 let cZ = cW(toBigInt(de), toBigInt(df), toBigInt(dg))
387387 let dh = [IntegerEntry(ag, height), StringEntry(af, toString(cZ))]
388388 $Tuple2(dh, cZ)
389389 }
390390
391391
392392 func di (dj) = {
393- let bK = aN()
394- let dk = bK[r]
395- let dl = bK[s]
396- let ca = parseIntValue(bK[p])
397- let bL = parseIntValue(bK[t])
398- let bM = parseIntValue(bK[u])
399- let dm = dj.amount
400- let dn = fraction(dj.amount, dj.price, b)
401- let do = if ((dj.orderType == Buy))
402- then $Tuple2(dm, -(dn))
403- else $Tuple2(-(dm), dn)
404- let db = do._1
405- let dc = do._2
393+ let dk = dj.amount
394+ let dl = fraction(dj.amount, dj.price, b)
395+ let dm = if ((dj.orderType == Buy))
396+ then $Tuple2(dk, -(dl))
397+ else $Tuple2(-(dk), dl)
398+ let db = dm._1
399+ let dc = dm._2
406400 if (if (if (aL())
407401 then true
408- else (ca == m))
402+ else (aY == m))
409403 then true
410- else (ca == n))
404+ else (aY == n))
411405 then throw("Exchange operations disabled")
412- else {
413- let dp = aS(value(dj.assetPair.amountAsset))
414- let dq = aS(value(dj.assetPair.priceAsset))
415- if (if ((dp != dk))
416- then true
417- else (dq != dl))
418- then throw("Wrong order assets.")
419- else {
420- let dr = valueOrErrorMessage(parseBigInt(valueOrErrorMessage(getString(this, af), aI("kLp is required"))), aI("invalid kLp"))
421- let ds = da(db, dc, 0)
422- let dt = ds._1
423- let du = ds._2
424- let dv = (du > dr)
425- dv
426- }
427- }
406+ else if (if ((dj.assetPair.amountAsset != ba))
407+ then true
408+ else (dj.assetPair.priceAsset != bb))
409+ then throw("Wrong order assets.")
410+ else {
411+ let dn = valueOrErrorMessage(parseBigInt(valueOrErrorMessage(getString(this, af), aI("kLp is required"))), aI("invalid kLp"))
412+ let do = da(db, dc, 0)
413+ let dp = do._1
414+ let dq = do._2
415+ let dr = (dq > dn)
416+ dr
417+ }
428418 }
429419
430420
431-func dw (dx) = if ((size(dx.payments) != 1))
421+func ds (dt) = if ((size(dt.payments) != 1))
432422 then throw("exactly 1 payment is expected")
433423 else {
434- let dy = value(dx.payments[0])
435- let bV = value(dy.assetId)
436- let dz = dy.amount
437- let cG = bT(toBase58String(dx.transactionId), toBase58String(bV), dz, dx.caller)
424+ let du = value(dt.payments[0])
425+ let bV = value(du.assetId)
426+ let dv = du.amount
427+ let cG = bT(toBase58String(dt.transactionId), toBase58String(bV), dv, dt.caller)
438428 let cm = cG._1
439429 let cn = cG._2
440430 let ca = parseIntValue(cG._9)
441431 let co = cG._10
442432 if (if (aL())
443433 then true
444434 else (ca == n))
445435 then throw(("Get operation is blocked by admin. Status = " + toString(ca)))
446- else $Tuple5(cm, cn, dz, bV, co)
436+ else $Tuple5(cm, cn, dv, bV, co)
447437 }
448438
449439
450-func dA (dx,cq,cw) = if ((size(dx.payments) != 2))
440+func dw (dt,cq,cw) = if ((size(dt.payments) != 2))
451441 then throw("exactly 2 payments are expected")
452442 else {
453- let dB = value(dx.payments[0])
454- let dC = value(dx.payments[1])
455- let dD = cp(toBase58String(dx.transactionId), cq, dB.amount, dB.assetId, dC.amount, dC.assetId, toString(dx.caller), false, cw)
456- let ca = parseIntValue(dD._8)
443+ let dx = value(dt.payments[0])
444+ let dy = value(dt.payments[1])
445+ let dz = cp(toBase58String(dt.transactionId), cq, dx.amount, dx.assetId, dy.amount, dy.assetId, toString(dt.caller), false, cw)
446+ let ca = parseIntValue(dz._8)
457447 if (if (if (aL())
458448 then true
459449 else (ca == l))
460450 then true
461451 else (ca == n))
462452 then throw(("Put operation is blocked by admin. Status = " + toString(ca)))
463- else dD
453+ else dz
464454 }
465455
466456
467-func dE (dF) = {
468- let dG = invoke(aJ, "emit", [dF], nil)
469- if ((dG == dG))
457+func dA (dB) = {
458+ let dC = invoke(aJ, "emit", [dB], nil)
459+ if ((dC == dC))
470460 then {
471- let dH = {
472- let dI = dG
473- if ($isInstanceOf(dI, "Address"))
461+ let dD = {
462+ let dE = dC
463+ if ($isInstanceOf(dE, "Address"))
474464 then {
475- let dJ = dI
476- invoke(dJ, "emit", [dF], nil)
465+ let dF = dE
466+ invoke(dF, "emit", [dB], nil)
477467 }
478468 else unit
479469 }
480- if ((dH == dH))
481- then dF
470+ if ((dD == dD))
471+ then dB
482472 else throw("Strict value is not equal to itself.")
483473 }
484474 else throw("Strict value is not equal to itself.")
485475 }
486476
487477
488-func dK (dF) = {
489- let dL = fraction(dF, ae, b)
490- $Tuple2((dF - dL), dL)
478+func dG (dB) = {
479+ let dH = fraction(dB, ae, b)
480+ $Tuple2((dB - dH), dH)
491481 }
492482
493483
494-func dM (dN,dO,X,Y) = {
495- let dP = (Y == unit)
496- let dQ = bw(aS(ba))
497- let dR = bw(aS(bb))
498- let dS = if ((dO == ba))
484+func dI (dJ,dK,X,Y) = {
485+ let dL = (Y == unit)
486+ let dM = bw(aS(ba))
487+ let dN = bw(aS(bb))
488+ let dO = if ((dK == ba))
499489 then true
500- else if ((dO == bb))
490+ else if ((dK == bb))
501491 then false
502492 else aG("invalid asset")
503- let dT = if (dP)
504- then $Tuple2(dQ, dR)
505- else if (dS)
506- then $Tuple2((dQ - dN), dR)
507- else $Tuple2(dQ, (dR - dN))
508- let dU = dT._1
509- let dV = dT._2
510- let dW = if (dS)
511- then $Tuple2(dN, 0)
512- else $Tuple2(0, dN)
513- let dX = dW._1
514- let dY = dW._2
515- let dm = dK(dX)._1
516- let dn = dK(dY)._1
517- let dZ = dK(dN)
518- let ea = dZ._1
519- let dL = dZ._2
520- let eb = (dU + dm)
521- let ec = (dV + dn)
522- let ed = by(D(ec, bd), D(eb, bc))
523- let ee = G(ed, b)
524- let ef = if (dS)
525- then dU
526- else dV
527- let eg = toBigInt(ef)
528- let eh = toBigInt(valueOrErrorMessage(assetInfo(aZ), (("asset " + toBase58String(aZ)) + " doesn't exist")).quantity)
529- let ei = if ((eh > f))
493+ let dP = if (dL)
494+ then $Tuple2(dM, dN)
495+ else if (dO)
496+ then $Tuple2((dM - dJ), dN)
497+ else $Tuple2(dM, (dN - dJ))
498+ let dQ = dP._1
499+ let dR = dP._2
500+ let dS = if (dO)
501+ then $Tuple2(dJ, 0)
502+ else $Tuple2(0, dJ)
503+ let dT = dS._1
504+ let dU = dS._2
505+ let dk = dG(dT)._1
506+ let dl = dG(dU)._1
507+ let dV = dG(dJ)
508+ let dW = dV._1
509+ let dH = dV._2
510+ let dX = (dQ + dk)
511+ let dY = (dR + dl)
512+ let dZ = by(D(dY, bd), D(dX, bc))
513+ let ea = G(dZ, b)
514+ let eb = if (dO)
515+ then dQ
516+ else dR
517+ let ec = toBigInt(eb)
518+ let ed = toBigInt(valueOrErrorMessage(assetInfo(aZ), (("asset " + toBase58String(aZ)) + " doesn't exist")).quantity)
519+ let ee = if ((ed > f))
530520 then true
531521 else aG("initial deposit requires all coins")
532- if ((ei == ei))
522+ if ((ee == ee))
533523 then {
534- let ej = toBigInt(ea)
535- let ek = max([0, toInt(((eh * (sqrtBigInt((d + ((ej * d) / eg)), 18, 18, DOWN) - d)) / d))])
536- let cV = if (dP)
524+ let ef = toBigInt(dW)
525+ let eg = max([0, toInt(((ed * (sqrtBigInt((d + ((ef * d) / ec)), 18, 18, DOWN) - d)) / d))])
526+ let cV = if (dL)
537527 then nil
538- else [IntegerEntry(S(), ee), IntegerEntry(T(height, lastBlock.timestamp), ee), StringEntry(W(toString(value(X)), toBase58String(value(Y))), bh(dX, dY, ek, ee, 0, 0, height, lastBlock.timestamp, 0, 0))]
539- let el = by(D(dV, bd), D(dU, bc))
540- let em = G(el, b)
541- let en = {
542- let eo = if (dS)
543- then $Tuple2(dX, dU)
544- else $Tuple2(dY, dV)
545- let dF = eo._1
546- let ep = eo._2
547- let eq = toInt(fraction(eh, toBigInt((dF / 2)), toBigInt(ep)))
548- fraction((ek - eq), b, eq)
528+ else [IntegerEntry(S(), ea), IntegerEntry(T(height, lastBlock.timestamp), ea), StringEntry(W(toString(value(X)), toBase58String(value(Y))), bh(dT, dU, eg, ea, 0, 0, height, lastBlock.timestamp, 0, 0))]
529+ let eh = by(D(dR, bd), D(dQ, bc))
530+ let ei = G(eh, b)
531+ let ej = {
532+ let ek = if (dO)
533+ then $Tuple2(dT, dQ)
534+ else $Tuple2(dU, dR)
535+ let dB = ek._1
536+ let el = ek._2
537+ let em = toInt(fraction(ed, toBigInt((dB / 2)), toBigInt(el)))
538+ fraction((eg - em), b, em)
549539 }
550- $Tuple5(ek, cV, dL, en, dS)
540+ $Tuple5(eg, cV, dH, ej, dO)
551541 }
552542 else throw("Strict value is not equal to itself.")
553543 }
554544
555545
556-func er (es,ea,dO,X,Y) = {
557- let dP = (Y == unit)
558- let et = [if ((dO == aZ))
546+func en (eo,dW,dK,X,Y) = {
547+ let dL = (Y == unit)
548+ let ep = [if ((dK == aZ))
559549 then true
560550 else aG("invalid lp asset")]
561- if ((et == et))
551+ if ((ep == ep))
562552 then {
563- let eu = if ((es == ba))
553+ let eq = if ((eo == ba))
564554 then true
565- else if ((es == bb))
555+ else if ((eo == bb))
566556 then false
567557 else aG("invalid asset")
568- let ev = if (eu)
558+ let er = if (eq)
569559 then toBigInt(bw(aS(ba)))
570560 else toBigInt(bw(aS(bb)))
571- let ew = bw(aS(ba))
572- let ex = bw(aS(bb))
573- let ey = if (eu)
574- then ew
575- else ex
576- let ez = toBigInt(ey)
577- let eh = toBigInt(valueOrErrorMessage(assetInfo(aZ), (("asset " + toBase58String(aZ)) + " doesn't exist")).quantity)
578- let eA = toBigInt(ea)
579- let eB = max([0, toInt(((ev * (d - pow((d - ((eA * d) / eh)), 18, h, 0, 18, DOWN))) / d))])
580- let eC = dK(eB)
581- let eD = eC._1
582- let dL = eC._2
583- let eE = if (eu)
584- then $Tuple4(eD, 0, (ew - eB), ex)
585- else $Tuple4(0, eD, ew, (ex - eB))
586- let eF = eE._1
587- let eG = eE._2
588- let eH = eE._3
589- let eI = eE._4
590- let ed = by(D(eI, bd), D(eH, bc))
591- let ee = G(ed, b)
592- let cV = if (dP)
561+ let es = bw(aS(ba))
562+ let et = bw(aS(bb))
563+ let eu = if (eq)
564+ then es
565+ else et
566+ let ev = toBigInt(eu)
567+ let ed = toBigInt(valueOrErrorMessage(assetInfo(aZ), (("asset " + toBase58String(aZ)) + " doesn't exist")).quantity)
568+ let ew = toBigInt(dW)
569+ let ex = max([0, toInt(((er * (d - pow((d - ((ew * d) / ed)), 18, h, 0, 18, DOWN))) / d))])
570+ let ey = dG(ex)
571+ let ez = ey._1
572+ let dH = ey._2
573+ let eA = if (eq)
574+ then $Tuple4(ez, 0, (es - ex), et)
575+ else $Tuple4(0, ez, es, (et - ex))
576+ let eB = eA._1
577+ let eC = eA._2
578+ let eD = eA._3
579+ let eE = eA._4
580+ let dZ = by(D(eE, bd), D(eD, bc))
581+ let ea = G(dZ, b)
582+ let cV = if (dL)
593583 then nil
594- else [StringEntry(Z(toString(value(X)), toBase58String(value(Y))), bs(eF, eG, ea, ee, height, lastBlock.timestamp)), IntegerEntry(S(), ee), IntegerEntry(T(height, lastBlock.timestamp), ee)]
595- let el = by(D(ex, bd), D(ew, bc))
596- let em = G(el, b)
597- let en = {
598- let eJ = (toInt(fraction(ev, eA, eh)) * 2)
599- fraction((eD - eJ), b, eJ)
584+ else [StringEntry(Z(toString(value(X)), toBase58String(value(Y))), bs(eB, eC, dW, ea, height, lastBlock.timestamp)), IntegerEntry(S(), ea), IntegerEntry(T(height, lastBlock.timestamp), ea)]
585+ let eh = by(D(et, bd), D(es, bc))
586+ let ei = G(eh, b)
587+ let ej = {
588+ let eF = (toInt(fraction(er, ew, ed)) * 2)
589+ fraction((ez - eF), b, eF)
600590 }
601- $Tuple5(eD, cV, dL, en, eu)
591+ $Tuple5(ez, cV, dH, ej, eq)
602592 }
603593 else throw("Strict value is not equal to itself.")
604594 }
605595
606596
607-func eK () = {
608- let dI = getString(Q())
609- if ($isInstanceOf(dI, "String"))
597+func eG () = {
598+ let dE = getString(Q())
599+ if ($isInstanceOf(dE, "String"))
610600 then {
611- let eL = dI
612- fromBase58String(eL)
601+ let eH = dE
602+ fromBase58String(eH)
613603 }
614- else if ($isInstanceOf(dI, "Unit"))
604+ else if ($isInstanceOf(dE, "Unit"))
615605 then unit
616606 else throw("Match error")
617607 }
618608
619609
620-func eM () = {
621- let dI = getString(R())
622- if ($isInstanceOf(dI, "String"))
610+func eI () = {
611+ let dE = getString(R())
612+ if ($isInstanceOf(dE, "String"))
623613 then {
624- let eL = dI
625- fromBase58String(eL)
614+ let eH = dE
615+ fromBase58String(eH)
626616 }
627- else if ($isInstanceOf(dI, "Unit"))
617+ else if ($isInstanceOf(dE, "Unit"))
628618 then unit
629619 else throw("Match error")
630620 }
631621
632622
633-func eN (dx) = {
634- let dI = eK()
635- if ($isInstanceOf(dI, "ByteVector"))
623+func eJ (dt) = {
624+ let dE = eG()
625+ if ($isInstanceOf(dE, "ByteVector"))
636626 then {
637- let eO = dI
638- (dx.callerPublicKey == eO)
627+ let eK = dE
628+ (dt.callerPublicKey == eK)
639629 }
640- else if ($isInstanceOf(dI, "Unit"))
641- then (dx.caller == this)
630+ else if ($isInstanceOf(dE, "Unit"))
631+ then (dt.caller == this)
642632 else throw("Match error")
643633 }
644634
645635
646-func eP (dx) = {
647- let eQ = throw("Permission denied")
648- let dI = eK()
649- if ($isInstanceOf(dI, "ByteVector"))
636+func eL (dt) = {
637+ let eM = throw("Permission denied")
638+ let dE = eG()
639+ if ($isInstanceOf(dE, "ByteVector"))
650640 then {
651- let eO = dI
652- if ((dx.callerPublicKey == eO))
641+ let eK = dE
642+ if ((dt.callerPublicKey == eK))
653643 then true
654- else eQ
644+ else eM
655645 }
656- else if ($isInstanceOf(dI, "Unit"))
657- then if ((dx.caller == this))
646+ else if ($isInstanceOf(dE, "Unit"))
647+ then if ((dt.caller == this))
658648 then true
659- else eQ
649+ else eM
660650 else throw("Match error")
661651 }
662652
663653
664-@Callable(dx)
665-func setManager (eR) = {
666- let eS = eP(dx)
667- if ((eS == eS))
654+@Callable(dt)
655+func setManager (eN) = {
656+ let eO = eL(dt)
657+ if ((eO == eO))
668658 then {
669- let eT = fromBase58String(eR)
670- if ((eT == eT))
671- then [StringEntry(R(), eR)]
659+ let eP = fromBase58String(eN)
660+ if ((eP == eP))
661+ then [StringEntry(R(), eN)]
672662 else throw("Strict value is not equal to itself.")
673663 }
674664 else throw("Strict value is not equal to itself.")
675665 }
676666
677667
678668
679-@Callable(dx)
669+@Callable(dt)
680670 func confirmManager () = {
681- let eU = eM()
682- let eV = if (isDefined(eU))
671+ let eQ = eI()
672+ let eR = if (isDefined(eQ))
683673 then true
684674 else throw("No pending manager")
685- if ((eV == eV))
675+ if ((eR == eR))
686676 then {
687- let eW = if ((dx.callerPublicKey == value(eU)))
677+ let eS = if ((dt.callerPublicKey == value(eQ)))
688678 then true
689679 else throw("You are not pending manager")
690- if ((eW == eW))
691- then [StringEntry(Q(), toBase58String(value(eU))), DeleteEntry(R())]
680+ if ((eS == eS))
681+ then [StringEntry(Q(), toBase58String(value(eQ))), DeleteEntry(R())]
692682 else throw("Strict value is not equal to itself.")
693683 }
694684 else throw("Strict value is not equal to itself.")
695685 }
696686
697687
698688
699-@Callable(dx)
700-func put (cq,eX) = if ((0 > cq))
689+@Callable(dt)
690+func put (cq,eT) = if ((0 > cq))
701691 then throw("Invalid slippageTolerance passed")
702692 else {
703- let dD = dA(dx, cq, true)
704- let cS = dD._2
705- let bX = dD._7
706- let co = dD._9
707- let cT = dD._10
708- let cU = dD._11
709- let eY = dD._12
710- let eZ = dD._13
711- let dG = invoke(aJ, "emit", [cS], nil)
712- if ((dG == dG))
693+ let dz = dw(dt, cq, true)
694+ let cS = dz._2
695+ let bX = dz._7
696+ let co = dz._9
697+ let cT = dz._10
698+ let cU = dz._11
699+ let eU = dz._12
700+ let eV = dz._13
701+ let dC = invoke(aJ, "emit", [cS], nil)
702+ if ((dC == dC))
713703 then {
714- let dH = {
715- let dI = dG
716- if ($isInstanceOf(dI, "Address"))
704+ let dD = {
705+ let dE = dC
706+ if ($isInstanceOf(dE, "Address"))
717707 then {
718- let dJ = dI
719- invoke(dJ, "emit", [cS], nil)
708+ let dF = dE
709+ invoke(dF, "emit", [cS], nil)
720710 }
721711 else unit
722712 }
723- if ((dH == dH))
713+ if ((dD == dD))
724714 then {
725- let fa = if ((cT > 0))
726- then invoke(bg, "put", nil, [AttachedPayment(eY, cT)])
715+ let eW = if ((cT > 0))
716+ then invoke(bg, "put", nil, [AttachedPayment(eU, cT)])
727717 else nil
728- if ((fa == fa))
718+ if ((eW == eW))
729719 then {
730- let fb = if ((cU > 0))
731- then invoke(bg, "put", nil, [AttachedPayment(eZ, cU)])
720+ let eX = if ((cU > 0))
721+ then invoke(bg, "put", nil, [AttachedPayment(eV, cU)])
732722 else nil
733- if ((fb == fb))
723+ if ((eX == eX))
734724 then {
735- let fc = if (eX)
725+ let eY = if (eT)
736726 then {
737- let fd = invoke(bf, "stake", nil, [AttachedPayment(bX, cS)])
738- if ((fd == fd))
727+ let eZ = invoke(bf, "stake", nil, [AttachedPayment(bX, cS)])
728+ if ((eZ == eZ))
739729 then nil
740730 else throw("Strict value is not equal to itself.")
741731 }
742- else [ScriptTransfer(dx.caller, cS, bX)]
743- let fe = da(0, 0, 0)
744- let ff = fe._1
745- let cZ = fe._2
746- ((co ++ fc) ++ ff)
732+ else [ScriptTransfer(dt.caller, cS, bX)]
733+ let fa = da(0, 0, 0)
734+ let fb = fa._1
735+ let cZ = fa._2
736+ ((co ++ eY) ++ fb)
747737 }
748738 else throw("Strict value is not equal to itself.")
749739 }
750740 else throw("Strict value is not equal to itself.")
751741 }
752742 else throw("Strict value is not equal to itself.")
753743 }
754744 else throw("Strict value is not equal to itself.")
755745 }
756746
757747
758748
759-@Callable(dx)
760-func putForFree (fg) = if ((0 > fg))
749+@Callable(dt)
750+func putForFree (fc) = if ((0 > fc))
761751 then throw("Invalid value passed")
762752 else {
763- let dD = dA(dx, fg, false)
764- let co = dD._9
765- let fh = da(0, 0, 0)
766- let ff = fh._1
767- let cZ = fh._2
768- (co ++ ff)
753+ let dz = dw(dt, fc, false)
754+ let co = dz._9
755+ let fd = da(0, 0, 0)
756+ let fb = fd._1
757+ let cZ = fd._2
758+ (co ++ fb)
769759 }
770760
771761
772762
773-@Callable(dx)
774-func putOneTkn (fi,fj) = {
775- let fk = {
776- let fl = invoke(aJ, "isPoolOneTokenOperationsDisabledREADONLY", [toString(this)], nil)
777- if ($isInstanceOf(fl, "Boolean"))
778- then fl
779- else throw(($getType(fl) + " couldn't be cast to Boolean"))
763+@Callable(dt)
764+func putOneTkn (fe,ff) = {
765+ let fg = {
766+ let fh = invoke(aJ, "isPoolOneTokenOperationsDisabledREADONLY", [toString(this)], nil)
767+ if ($isInstanceOf(fh, "Boolean"))
768+ then fh
769+ else throw(($getType(fh) + " couldn't be cast to Boolean"))
780770 }
781- let fm = if (if (if (aL())
771+ let fi = if (if (if (aL())
782772 then true
783773 else (aY == l))
784774 then true
785775 else (aY == n))
786776 then true
787- else fk
788- let et = [if (if (!(fm))
777+ else fg
778+ let ep = [if (if (!(fi))
789779 then true
790- else eN(dx))
780+ else eJ(dt))
791781 then true
792- else aG("put operation is blocked by admin"), if ((size(dx.payments) == 1))
782+ else aG("put operation is blocked by admin"), if ((size(dt.payments) == 1))
793783 then true
794784 else aG("exactly 1 payment are expected")]
795- if ((et == et))
785+ if ((ep == ep))
796786 then {
797- let fn = dx.payments[0]
798- let dO = fn.assetId
799- let dN = fn.amount
800- let X = dx.caller
801- let Y = dx.transactionId
802- let fo = dM(dN, dO, X, Y)
803- if ((fo == fo))
787+ let fj = dt.payments[0]
788+ let dK = fj.assetId
789+ let dJ = fj.amount
790+ let X = dt.caller
791+ let Y = dt.transactionId
792+ let fk = dI(dJ, dK, X, Y)
793+ if ((fk == fk))
804794 then {
805- let dS = fo._5
806- let fp = fo._4
807- let dL = fo._3
808- let cV = fo._2
809- let fq = fo._1
810- let fr = if (if ((fi > 0))
811- then (fi > fq)
795+ let dO = fk._5
796+ let fl = fk._4
797+ let dH = fk._3
798+ let cV = fk._2
799+ let fm = fk._1
800+ let fn = if (if ((fe > 0))
801+ then (fe > fm)
812802 else false)
813- then aG(makeString(["amount to receive is less than ", toString(fi)], ""))
814- else fq
815- let dG = dE(fr)
816- if ((dG == dG))
803+ then aG(makeString(["amount to receive is less than ", toString(fe)], ""))
804+ else fm
805+ let dC = dA(fn)
806+ if ((dC == dC))
817807 then {
818- let fc = if (fj)
808+ let eY = if (ff)
819809 then {
820- let fs = invoke(bf, "stake", nil, [AttachedPayment(aZ, fr)])
821- if ((fs == fs))
810+ let fo = invoke(bf, "stake", nil, [AttachedPayment(aZ, fn)])
811+ if ((fo == fo))
822812 then nil
823813 else throw("Strict value is not equal to itself.")
824814 }
825- else [ScriptTransfer(dx.caller, fr, aZ)]
826- let ft = if ((dL > 0))
827- then [ScriptTransfer(aK, dL, dO)]
815+ else [ScriptTransfer(dt.caller, fn, aZ)]
816+ let fp = if ((dH > 0))
817+ then [ScriptTransfer(aK, dH, dK)]
828818 else nil
829- let fu = if ((this == aK))
819+ let fq = if ((this == aK))
830820 then $Tuple2(0, 0)
831- else if (dS)
832- then $Tuple2(-(dL), 0)
833- else $Tuple2(0, -(dL))
834- let db = fu._1
835- let dc = fu._2
836- let fv = da(db, dc, 0)
837- let ff = fv._1
838- let cZ = fv._2
839- $Tuple2((((cV ++ fc) ++ ft) ++ ff), fr)
821+ else if (dO)
822+ then $Tuple2(-(dH), 0)
823+ else $Tuple2(0, -(dH))
824+ let db = fq._1
825+ let dc = fq._2
826+ let fr = da(db, dc, 0)
827+ let fb = fr._1
828+ let cZ = fr._2
829+ $Tuple2((((cV ++ eY) ++ fp) ++ fb), fn)
840830 }
841831 else throw("Strict value is not equal to itself.")
842832 }
843833 else throw("Strict value is not equal to itself.")
844834 }
845835 else throw("Strict value is not equal to itself.")
846836 }
847837
848838
849839
850-@Callable(dx)
851-func putOneTknREADONLY (dO,dN) = {
852- let fw = dM(dN, aQ(dO), unit, unit)
853- let fq = fw._1
854- let cV = fw._2
855- let dL = fw._3
856- let fp = fw._4
857- let dS = fw._5
858- $Tuple2(nil, $Tuple3(fq, dL, fp))
840+@Callable(dt)
841+func putOneTknREADONLY (dK,dJ) = {
842+ let fs = dI(dJ, aQ(dK), unit, unit)
843+ let fm = fs._1
844+ let cV = fs._2
845+ let dH = fs._3
846+ let fl = fs._4
847+ let dO = fs._5
848+ $Tuple2(nil, $Tuple3(fm, dH, fl))
859849 }
860850
861851
862852
863-@Callable(dx)
864-func getOneTkn (fx,fi) = {
865- let fk = {
866- let fl = invoke(aJ, "isPoolOneTokenOperationsDisabledREADONLY", [toString(this)], nil)
867- if ($isInstanceOf(fl, "Boolean"))
868- then fl
869- else throw(($getType(fl) + " couldn't be cast to Boolean"))
853+@Callable(dt)
854+func getOneTkn (ft,fe) = {
855+ let fg = {
856+ let fh = invoke(aJ, "isPoolOneTokenOperationsDisabledREADONLY", [toString(this)], nil)
857+ if ($isInstanceOf(fh, "Boolean"))
858+ then fh
859+ else throw(($getType(fh) + " couldn't be cast to Boolean"))
870860 }
871- let fy = if (if (aL())
861+ let fu = if (if (aL())
872862 then true
873863 else (aY == n))
874864 then true
875- else fk
876- let et = [if (if (!(fy))
865+ else fg
866+ let ep = [if (if (!(fu))
877867 then true
878- else eN(dx))
868+ else eJ(dt))
879869 then true
880- else aG("get operation is blocked by admin"), if ((size(dx.payments) == 1))
870+ else aG("get operation is blocked by admin"), if ((size(dt.payments) == 1))
881871 then true
882872 else aG("exactly 1 payment are expected")]
883- if ((et == et))
873+ if ((ep == ep))
884874 then {
885- let es = aQ(fx)
886- let fn = dx.payments[0]
887- let dO = fn.assetId
888- let ea = fn.amount
889- let X = dx.caller
890- let Y = dx.transactionId
891- let fz = er(es, ea, dO, X, Y)
892- if ((fz == fz))
875+ let eo = aQ(ft)
876+ let fj = dt.payments[0]
877+ let dK = fj.assetId
878+ let dW = fj.amount
879+ let X = dt.caller
880+ let Y = dt.transactionId
881+ let fv = en(eo, dW, dK, X, Y)
882+ if ((fv == fv))
893883 then {
894- let eu = fz._5
895- let fp = fz._4
896- let dL = fz._3
897- let cV = fz._2
898- let fA = fz._1
899- let dF = if (if ((fi > 0))
900- then (fi > fA)
884+ let eq = fv._5
885+ let fl = fv._4
886+ let dH = fv._3
887+ let cV = fv._2
888+ let fw = fv._1
889+ let dB = if (if ((fe > 0))
890+ then (fe > fw)
901891 else false)
902- then aG(makeString(["amount to receive is less than ", toString(fi)], ""))
903- else fA
904- let fB = invoke(aJ, "burn", [ea], [AttachedPayment(dO, ea)])
905- if ((fB == fB))
892+ then aG(makeString(["amount to receive is less than ", toString(fe)], ""))
893+ else fw
894+ let fx = invoke(aJ, "burn", [dW], [AttachedPayment(dK, dW)])
895+ if ((fx == fx))
906896 then {
907- let fC = [ScriptTransfer(X, dF, es)]
908- let ft = if ((dL > 0))
909- then [ScriptTransfer(aK, dL, es)]
897+ let fy = [ScriptTransfer(X, dB, eo)]
898+ let fp = if ((dH > 0))
899+ then [ScriptTransfer(aK, dH, eo)]
910900 else nil
911- let fD = {
912- let fE = if ((this == aK))
901+ let fz = {
902+ let fA = if ((this == aK))
913903 then 0
914- else dL
915- if (eu)
916- then $Tuple2(-((dF + fE)), 0)
917- else $Tuple2(0, -((dF + fE)))
904+ else dH
905+ if (eq)
906+ then $Tuple2(-((dB + fA)), 0)
907+ else $Tuple2(0, -((dB + fA)))
918908 }
919- let db = fD._1
920- let dc = fD._2
921- let fF = da(db, dc, 0)
922- let ff = fF._1
923- let cZ = fF._2
924- $Tuple2((((cV ++ fC) ++ ft) ++ ff), dF)
909+ let db = fz._1
910+ let dc = fz._2
911+ let fB = da(db, dc, 0)
912+ let fb = fB._1
913+ let cZ = fB._2
914+ $Tuple2((((cV ++ fy) ++ fp) ++ fb), dB)
925915 }
926916 else throw("Strict value is not equal to itself.")
927917 }
928918 else throw("Strict value is not equal to itself.")
929919 }
930920 else throw("Strict value is not equal to itself.")
931921 }
932922
933923
934924
935-@Callable(dx)
936-func getOneTknREADONLY (es,ea) = {
937- let fG = er(aQ(es), ea, aZ, unit, unit)
938- let fA = fG._1
939- let cV = fG._2
940- let dL = fG._3
941- let fp = fG._4
942- let eu = fG._5
943- $Tuple2(nil, $Tuple3(fA, dL, fp))
925+@Callable(dt)
926+func getOneTknREADONLY (eo,dW) = {
927+ let fC = en(aQ(eo), dW, aZ, unit, unit)
928+ let fw = fC._1
929+ let cV = fC._2
930+ let dH = fC._3
931+ let fl = fC._4
932+ let eq = fC._5
933+ $Tuple2(nil, $Tuple3(fw, dH, fl))
944934 }
945935
946936
947937
948-@Callable(dx)
949-func unstakeAndGetOneTkn (fH,fx,fi) = {
950- let fk = {
951- let fl = invoke(aJ, "isPoolOneTokenOperationsDisabledREADONLY", [toString(this)], nil)
952- if ($isInstanceOf(fl, "Boolean"))
953- then fl
954- else throw(($getType(fl) + " couldn't be cast to Boolean"))
938+@Callable(dt)
939+func unstakeAndGetOneTkn (fD,ft,fe) = {
940+ let fg = {
941+ let fh = invoke(aJ, "isPoolOneTokenOperationsDisabledREADONLY", [toString(this)], nil)
942+ if ($isInstanceOf(fh, "Boolean"))
943+ then fh
944+ else throw(($getType(fh) + " couldn't be cast to Boolean"))
955945 }
956- let fy = if (if (aL())
946+ let fu = if (if (aL())
957947 then true
958948 else (aY == n))
959949 then true
960- else fk
961- let et = [if (if (!(fy))
950+ else fg
951+ let ep = [if (if (!(fu))
962952 then true
963- else eN(dx))
953+ else eJ(dt))
964954 then true
965- else aG("get operation is blocked by admin"), if ((size(dx.payments) == 0))
955+ else aG("get operation is blocked by admin"), if ((size(dt.payments) == 0))
966956 then true
967957 else aG("no payments are expected")]
968- if ((et == et))
958+ if ((ep == ep))
969959 then {
970- let es = aQ(fx)
971- let X = dx.caller
972- let Y = dx.transactionId
973- let fI = invoke(bf, "unstake", [toBase58String(aZ), fH], nil)
974- if ((fI == fI))
960+ let eo = aQ(ft)
961+ let X = dt.caller
962+ let Y = dt.transactionId
963+ let fE = invoke(bf, "unstake", [toBase58String(aZ), fD], nil)
964+ if ((fE == fE))
975965 then {
976- let fJ = er(es, fH, aZ, X, Y)
977- if ((fJ == fJ))
966+ let fF = en(eo, fD, aZ, X, Y)
967+ if ((fF == fF))
978968 then {
979- let eu = fJ._5
980- let fp = fJ._4
981- let dL = fJ._3
982- let cV = fJ._2
983- let fA = fJ._1
984- let dF = if (if ((fi > 0))
985- then (fi > fA)
969+ let eq = fF._5
970+ let fl = fF._4
971+ let dH = fF._3
972+ let cV = fF._2
973+ let fw = fF._1
974+ let dB = if (if ((fe > 0))
975+ then (fe > fw)
986976 else false)
987- then aG(makeString(["amount to receive is less than ", toString(fi)], ""))
988- else fA
989- let fB = invoke(aJ, "burn", [fH], [AttachedPayment(aZ, fH)])
990- if ((fB == fB))
977+ then aG(makeString(["amount to receive is less than ", toString(fe)], ""))
978+ else fw
979+ let fx = invoke(aJ, "burn", [fD], [AttachedPayment(aZ, fD)])
980+ if ((fx == fx))
991981 then {
992- let fC = [ScriptTransfer(dx.caller, dF, es)]
993- let ft = if ((dL > 0))
994- then [ScriptTransfer(aK, dL, es)]
982+ let fy = [ScriptTransfer(dt.caller, dB, eo)]
983+ let fp = if ((dH > 0))
984+ then [ScriptTransfer(aK, dH, eo)]
995985 else nil
996- let fK = {
997- let fE = if ((this == aK))
986+ let fG = {
987+ let fA = if ((this == aK))
998988 then 0
999- else dL
1000- if (eu)
1001- then $Tuple2(-((dF + fE)), 0)
1002- else $Tuple2(0, -((dF + fE)))
989+ else dH
990+ if (eq)
991+ then $Tuple2(-((dB + fA)), 0)
992+ else $Tuple2(0, -((dB + fA)))
1003993 }
1004- let db = fK._1
1005- let dc = fK._2
1006- let fL = da(db, dc, 0)
1007- let ff = fL._1
1008- let cZ = fL._2
1009- $Tuple2((((cV ++ fC) ++ ft) ++ ff), dF)
994+ let db = fG._1
995+ let dc = fG._2
996+ let fH = da(db, dc, 0)
997+ let fb = fH._1
998+ let cZ = fH._2
999+ $Tuple2((((cV ++ fy) ++ fp) ++ fb), dB)
10101000 }
10111001 else throw("Strict value is not equal to itself.")
10121002 }
10131003 else throw("Strict value is not equal to itself.")
10141004 }
10151005 else throw("Strict value is not equal to itself.")
10161006 }
10171007 else throw("Strict value is not equal to itself.")
10181008 }
10191009
10201010
10211011
1022-@Callable(dx)
1012+@Callable(dt)
10231013 func get () = {
1024- let cG = dw(dx)
1025- let fM = cG._1
1014+ let cG = ds(dt)
1015+ let fI = cG._1
10261016 let cn = cG._2
1027- let dz = cG._3
1017+ let dv = cG._3
10281018 let bV = cG._4
10291019 let co = cG._5
1030- let fN = invoke(aJ, "burn", [dz], [AttachedPayment(bV, dz)])
1031- if ((fN == fN))
1020+ let fJ = invoke(aJ, "burn", [dv], [AttachedPayment(bV, dv)])
1021+ if ((fJ == fJ))
10321022 then {
1033- let fO = da(-(fM), -(cn), 0)
1034- let ff = fO._1
1035- let cZ = fO._2
1036- (co ++ ff)
1023+ let fK = da(-(fI), -(cn), 0)
1024+ let fb = fK._1
1025+ let cZ = fK._2
1026+ (co ++ fb)
10371027 }
10381028 else throw("Strict value is not equal to itself.")
10391029 }
10401030
10411031
10421032
1043-@Callable(dx)
1044-func getNoLess (fP,fQ) = {
1045- let cG = dw(dx)
1033+@Callable(dt)
1034+func getNoLess (fL,fM) = {
1035+ let cG = ds(dt)
10461036 let cm = cG._1
10471037 let cn = cG._2
1048- let dz = cG._3
1038+ let dv = cG._3
10491039 let bV = cG._4
10501040 let co = cG._5
1051- if ((fP > cm))
1052- then throw(((("noLessThenAmtAsset failed: " + toString(cm)) + " < ") + toString(fP)))
1053- else if ((fQ > cn))
1054- then throw(((("noLessThenPriceAsset failed: " + toString(cn)) + " < ") + toString(fQ)))
1041+ if ((fL > cm))
1042+ then throw(((("noLessThenAmtAsset failed: " + toString(cm)) + " < ") + toString(fL)))
1043+ else if ((fM > cn))
1044+ then throw(((("noLessThenPriceAsset failed: " + toString(cn)) + " < ") + toString(fM)))
10551045 else {
1056- let fN = invoke(aJ, "burn", [dz], [AttachedPayment(bV, dz)])
1057- if ((fN == fN))
1046+ let fJ = invoke(aJ, "burn", [dv], [AttachedPayment(bV, dv)])
1047+ if ((fJ == fJ))
10581048 then {
1059- let fR = da(-(cm), -(cn), 0)
1060- let ff = fR._1
1061- let cZ = fR._2
1062- (co ++ ff)
1049+ let fN = da(-(cm), -(cn), 0)
1050+ let fb = fN._1
1051+ let cZ = fN._2
1052+ (co ++ fb)
10631053 }
10641054 else throw("Strict value is not equal to itself.")
10651055 }
10661056 }
10671057
10681058
10691059
1070-@Callable(dx)
1071-func unstakeAndGet (dF) = {
1072- let fS = if ((size(dx.payments) != 0))
1060+@Callable(dt)
1061+func unstakeAndGet (dB) = {
1062+ let fO = if ((size(dt.payments) != 0))
10731063 then throw("No payments are expected")
10741064 else true
1075- if ((fS == fS))
1065+ if ((fO == fO))
10761066 then {
10771067 let bK = aN()
10781068 let bX = fromBase58String(bK[q])
1079- let fI = invoke(bf, "unstake", [toBase58String(bX), dF], nil)
1080- if ((fI == fI))
1069+ let fE = invoke(bf, "unstake", [toBase58String(bX), dB], nil)
1070+ if ((fE == fE))
10811071 then {
1082- let cG = bT(toBase58String(dx.transactionId), toBase58String(bX), dF, dx.caller)
1072+ let cG = bT(toBase58String(dt.transactionId), toBase58String(bX), dB, dt.caller)
10831073 let cm = cG._1
10841074 let cn = cG._2
10851075 let ca = parseIntValue(cG._9)
10861076 let co = cG._10
1087- let fT = if (if (aL())
1077+ let fP = if (if (aL())
10881078 then true
10891079 else (ca == n))
10901080 then throw(("Get operation is blocked by admin. Status = " + toString(ca)))
10911081 else true
1092- if ((fT == fT))
1082+ if ((fP == fP))
10931083 then {
1094- let fN = invoke(aJ, "burn", [dF], [AttachedPayment(bX, dF)])
1095- if ((fN == fN))
1084+ let fJ = invoke(aJ, "burn", [dB], [AttachedPayment(bX, dB)])
1085+ if ((fJ == fJ))
10961086 then {
1097- let fU = da(-(cm), -(cn), 0)
1098- let ff = fU._1
1099- let cZ = fU._2
1100- (co ++ ff)
1087+ let fQ = da(-(cm), -(cn), 0)
1088+ let fb = fQ._1
1089+ let cZ = fQ._2
1090+ (co ++ fb)
11011091 }
11021092 else throw("Strict value is not equal to itself.")
11031093 }
11041094 else throw("Strict value is not equal to itself.")
11051095 }
11061096 else throw("Strict value is not equal to itself.")
11071097 }
11081098 else throw("Strict value is not equal to itself.")
11091099 }
11101100
11111101
11121102
1113-@Callable(dx)
1114-func unstakeAndGetNoLess (fH,fV,fQ) = {
1115- let fy = if (aL())
1103+@Callable(dt)
1104+func unstakeAndGetNoLess (fD,fR,fM) = {
1105+ let fu = if (aL())
11161106 then true
11171107 else (aY == n)
1118- let et = [if (!(fy))
1108+ let ep = [if (!(fu))
11191109 then true
1120- else throw("get operation is blocked by admin"), if ((size(dx.payments) == 0))
1110+ else throw("get operation is blocked by admin"), if ((size(dt.payments) == 0))
11211111 then true
11221112 else throw("no payments are expected")]
1123- if ((et == et))
1113+ if ((ep == ep))
11241114 then {
1125- let fI = invoke(bf, "unstake", [toBase58String(aZ), fH], nil)
1126- if ((fI == fI))
1115+ let fE = invoke(bf, "unstake", [toBase58String(aZ), fD], nil)
1116+ if ((fE == fE))
11271117 then {
1128- let cG = bT(toBase58String(dx.transactionId), toBase58String(aZ), fH, dx.caller)
1118+ let cG = bT(toBase58String(dt.transactionId), toBase58String(aZ), fD, dt.caller)
11291119 let cm = cG._1
11301120 let cn = cG._2
11311121 let co = cG._10
1132- let fW = [if ((cm >= fV))
1122+ let fS = [if ((cm >= fR))
11331123 then true
1134- else throw(makeString(["amount asset amount to receive is less than ", toString(fV)], "")), if ((cn >= fQ))
1124+ else throw(makeString(["amount asset amount to receive is less than ", toString(fR)], "")), if ((cn >= fM))
11351125 then true
1136- else throw(makeString(["price asset amount to receive is less than ", toString(fQ)], ""))]
1137- if ((fW == fW))
1126+ else throw(makeString(["price asset amount to receive is less than ", toString(fM)], ""))]
1127+ if ((fS == fS))
11381128 then {
1139- let fN = invoke(aJ, "burn", [fH], [AttachedPayment(aZ, fH)])
1140- if ((fN == fN))
1129+ let fJ = invoke(aJ, "burn", [fD], [AttachedPayment(aZ, fD)])
1130+ if ((fJ == fJ))
11411131 then {
1142- let fX = da(-(cm), -(cn), 0)
1143- let ff = fX._1
1144- let cZ = fX._2
1145- (co ++ ff)
1132+ let fT = da(-(cm), -(cn), 0)
1133+ let fb = fT._1
1134+ let cZ = fT._2
1135+ (co ++ fb)
11461136 }
11471137 else throw("Strict value is not equal to itself.")
11481138 }
11491139 else throw("Strict value is not equal to itself.")
11501140 }
11511141 else throw("Strict value is not equal to itself.")
11521142 }
11531143 else throw("Strict value is not equal to itself.")
11541144 }
11551145
11561146
11571147
1158-@Callable(dx)
1159-func activate (fY,fZ) = if ((toString(dx.caller) != toString(aJ)))
1148+@Callable(dt)
1149+func activate (fU,fV) = if ((toString(dt.caller) != toString(aJ)))
11601150 then throw("permissions denied")
1161- else $Tuple2([StringEntry(aa(), fY), StringEntry(ab(), fZ)], "success")
1151+ else $Tuple2([StringEntry(aa(), fU), StringEntry(ab(), fV)], "success")
11621152
11631153
11641154
1165-@Callable(dx)
1155+@Callable(dt)
11661156 func refreshKLp () = {
1167- let ga = valueOrElse(getInteger(ag), 0)
1168- let gb = if (((height - ga) >= aj))
1157+ let fW = valueOrElse(getInteger(ag), 0)
1158+ let fX = if (((height - fW) >= aj))
11691159 then unit
11701160 else aG(makeString([toString(aj), " blocks have not passed since the previous call"], ""))
1171- if ((gb == gb))
1161+ if ((fX == fX))
11721162 then {
1173- let gc = da(0, 0, 0)
1174- let dh = gc._1
1175- let cZ = gc._2
1163+ let fY = da(0, 0, 0)
1164+ let dh = fY._1
1165+ let cZ = fY._2
11761166 $Tuple2(dh, toString(cZ))
11771167 }
11781168 else throw("Strict value is not equal to itself.")
11791169 }
11801170
11811171
11821172
1183-@Callable(dx)
1173+@Callable(dt)
11841174 func getPoolConfigWrapperREADONLY () = $Tuple2(nil, aN())
11851175
11861176
11871177
1188-@Callable(dx)
1178+@Callable(dt)
11891179 func getAccBalanceWrapperREADONLY (bx) = $Tuple2(nil, bw(bx))
11901180
11911181
11921182
1193-@Callable(dx)
1183+@Callable(dt)
11941184 func calcPricesWrapperREADONLY (bE,bF,bJ) = {
11951185 let bS = bI(bE, bF, bJ)
11961186 $Tuple2(nil, [toString(bS[0]), toString(bS[1]), toString(bS[2])])
11971187 }
11981188
11991189
12001190
1201-@Callable(dx)
1191+@Callable(dt)
12021192 func toX18WrapperREADONLY (E,F) = $Tuple2(nil, toString(D(E, F)))
12031193
12041194
12051195
1206-@Callable(dx)
1196+@Callable(dt)
12071197 func fromX18WrapperREADONLY (H,I) = $Tuple2(nil, G(parseBigIntValue(H), I))
12081198
12091199
12101200
1211-@Callable(dx)
1201+@Callable(dt)
12121202 func calcPriceBigIntWrapperREADONLY (bz,bA) = $Tuple2(nil, toString(by(parseBigIntValue(bz), parseBigIntValue(bA))))
12131203
12141204
12151205
1216-@Callable(dx)
1206+@Callable(dt)
12171207 func estimatePutOperationWrapperREADONLY (bU,cq,cr,cs,ct,cu,X,cv,cw) = $Tuple2(nil, cp(bU, cq, cr, cs, ct, cu, X, cv, cw))
12181208
12191209
12201210
1221-@Callable(dx)
1211+@Callable(dt)
12221212 func estimateGetOperationWrapperREADONLY (bU,bV,bW,X) = {
12231213 let cG = bT(bU, bV, bW, addressFromStringValue(X))
12241214 $Tuple2(nil, $Tuple10(cG._1, cG._2, cG._3, cG._4, cG._5, cG._6, cG._7, toString(cG._8), cG._9, cG._10))
12251215 }
12261216
12271217
12281218
1229-@Callable(dx)
1219+@Callable(dt)
12301220 func statsREADONLY () = {
12311221 let bK = aN()
12321222 let bX = fromBase58String(bK[q])
1233- let dk = bK[r]
1234- let dl = bK[s]
1223+ let fZ = bK[r]
1224+ let ga = bK[s]
12351225 let cz = bK[v]
12361226 let cA = bK[w]
12371227 let bL = parseIntValue(bK[t])
12381228 let bM = parseIntValue(bK[u])
1239- let gd = valueOrErrorMessage(assetInfo(bX), (("Asset " + toBase58String(bX)) + " doesn't exist")).quantity
1240- let ge = bw(dk)
1241- let gf = bw(dl)
1242- let gg = if ((gd == 0))
1229+ let gb = valueOrErrorMessage(assetInfo(bX), (("Asset " + toBase58String(bX)) + " doesn't exist")).quantity
1230+ let gc = bw(fZ)
1231+ let gd = bw(ga)
1232+ let ge = if ((gb == 0))
12431233 then [e, e, e]
1244- else bI(ge, gf, gd)
1234+ else bI(gc, gd, gb)
12451235 let ch = 0
1246- let gh = G(gg[1], b)
1247- let gi = G(gg[2], b)
1248- let gj = value(getInteger(aJ, au(toString(this))))
1249- $Tuple2(nil, makeString(["%d%d%d%d%d%d%d", toString(ge), toString(gf), toString(gd), toString(ch), toString(gh), toString(gi), toString(gj)], j))
1236+ let gf = G(ge[1], b)
1237+ let gg = G(ge[2], b)
1238+ let gh = value(getInteger(aJ, au(toString(this))))
1239+ $Tuple2(nil, makeString(["%d%d%d%d%d%d%d", toString(gc), toString(gd), toString(gb), toString(ch), toString(gf), toString(gg), toString(gh)], j))
12501240 }
12511241
12521242
12531243
1254-@Callable(dx)
1244+@Callable(dt)
12551245 func evaluatePutByAmountAssetREADONLY (cr) = {
12561246 let bK = aN()
12571247 let bX = fromBase58String(bK[q])
12581248 let cx = bK[r]
12591249 let bY = fromBase58String(cx)
12601250 let cy = bK[s]
12611251 let bZ = fromBase58String(cy)
12621252 let bL = parseIntValue(bK[t])
12631253 let bM = parseIntValue(bK[u])
12641254 let ca = bK[p]
1265- let gd = valueOrErrorMessage(assetInfo(bX), (("Asset " + toBase58String(bX)) + " doesn't exist")).quantity
1266- let ge = bw(cx)
1267- let gf = bw(cy)
1268- let bG = D(ge, bL)
1269- let bH = D(gf, bM)
1270- let cg = if ((gd == 0))
1255+ let gb = valueOrErrorMessage(assetInfo(bX), (("Asset " + toBase58String(bX)) + " doesn't exist")).quantity
1256+ let gc = bw(cx)
1257+ let gd = bw(cy)
1258+ let bG = D(gc, bL)
1259+ let bH = D(gd, bM)
1260+ let cg = if ((gb == 0))
12711261 then e
12721262 else by(bH, bG)
12731263 let cD = D(cr, bL)
12741264 let cE = fraction(cD, cg, d)
12751265 let ct = G(cE, bM)
1276- let dD = cp("", 500000, cr, bY, ct, bZ, "", true, false)
1277- let cO = dD._1
1278- let gk = dD._3
1279- let cc = dD._4
1280- let ce = dD._5
1281- let cb = dD._6
1266+ let dz = cp("", 500000, cr, bY, ct, bZ, "", true, false)
1267+ let cO = dz._1
1268+ let gi = dz._3
1269+ let cc = dz._4
1270+ let ce = dz._5
1271+ let cb = dz._6
12821272 $Tuple2(nil, makeString(["%d%d%d%d%d%d%d%d", toString(cO), toString(G(cg, b)), toString(cc), toString(ce), toString(cb), ca, toString(cr), toString(ct)], j))
12831273 }
12841274
12851275
12861276
1287-@Callable(dx)
1277+@Callable(dt)
12881278 func evaluatePutByPriceAssetREADONLY (ct) = {
12891279 let bK = aN()
12901280 let bX = fromBase58String(bK[q])
12911281 let cx = bK[r]
12921282 let bY = fromBase58String(cx)
12931283 let cy = bK[s]
12941284 let bZ = fromBase58String(cy)
12951285 let bL = parseIntValue(bK[t])
12961286 let bM = parseIntValue(bK[u])
12971287 let ca = bK[p]
1298- let gd = valueOrErrorMessage(assetInfo(bX), (("Asset " + toBase58String(bX)) + " doesn't exist")).quantity
1299- let gl = bw(cx)
1300- let gm = bw(cy)
1301- let gn = D(gl, bL)
1302- let go = D(gm, bM)
1303- let cg = if ((gd == 0))
1288+ let gb = valueOrErrorMessage(assetInfo(bX), (("Asset " + toBase58String(bX)) + " doesn't exist")).quantity
1289+ let gj = bw(cx)
1290+ let gk = bw(cy)
1291+ let gl = D(gj, bL)
1292+ let gm = D(gk, bM)
1293+ let cg = if ((gb == 0))
13041294 then e
1305- else by(go, gn)
1295+ else by(gm, gl)
13061296 let cE = D(ct, bM)
13071297 let cD = fraction(cE, d, cg)
13081298 let cr = G(cD, bL)
1309- let dD = cp("", 500000, cr, bY, ct, bZ, "", true, false)
1310- let cO = dD._1
1311- let gk = dD._3
1312- let cc = dD._4
1313- let ce = dD._5
1314- let cb = dD._6
1299+ let dz = cp("", 500000, cr, bY, ct, bZ, "", true, false)
1300+ let cO = dz._1
1301+ let gi = dz._3
1302+ let cc = dz._4
1303+ let ce = dz._5
1304+ let cb = dz._6
13151305 $Tuple2(nil, makeString(["%d%d%d%d%d%d%d%d", toString(cO), toString(G(cg, b)), toString(cc), toString(ce), toString(cb), ca, toString(cr), toString(ct)], j))
13161306 }
13171307
13181308
13191309
1320-@Callable(dx)
1321-func evaluateGetREADONLY (gp,gq) = {
1322- let cG = bT("", gp, gq, this)
1310+@Callable(dt)
1311+func evaluateGetREADONLY (gn,go) = {
1312+ let cG = bT("", gn, go, this)
13231313 let cm = cG._1
13241314 let cn = cG._2
13251315 let cc = cG._5
13261316 let ce = cG._6
13271317 let cb = cG._7
13281318 let ch = cG._8
13291319 let ca = parseIntValue(cG._9)
13301320 $Tuple2(nil, makeString(["%d%d%d%d%d%d%d", toString(cm), toString(cn), toString(cc), toString(ce), toString(cb), toString(ch), toString(ca)], j))
13311321 }
13321322
13331323
1334-@Verifier(gr)
1335-func gs () = {
1336- let gt = {
1337- let dI = eK()
1338- if ($isInstanceOf(dI, "ByteVector"))
1324+@Verifier(gp)
1325+func gq () = {
1326+ let gr = {
1327+ let dE = eG()
1328+ if ($isInstanceOf(dE, "ByteVector"))
13391329 then {
1340- let eO = dI
1341- eO
1330+ let eK = dE
1331+ eK
13421332 }
1343- else if ($isInstanceOf(dI, "Unit"))
1344- then gr.senderPublicKey
1333+ else if ($isInstanceOf(dE, "Unit"))
1334+ then gp.senderPublicKey
13451335 else throw("Match error")
13461336 }
1347- let dI = gr
1348- if ($isInstanceOf(dI, "Order"))
1337+ let dE = gp
1338+ if ($isInstanceOf(dE, "Order"))
13491339 then {
1350- let dj = dI
1351- let gu = aM()
1340+ let dj = dE
1341+ let gs = aM()
13521342 let az = di(dj)
13531343 let aA = sigVerify(dj.bodyBytes, dj.proofs[0], dj.senderPublicKey)
1354- let aB = sigVerify(dj.bodyBytes, dj.proofs[1], gu)
1344+ let aB = sigVerify(dj.bodyBytes, dj.proofs[1], gs)
13551345 if (if (if (az)
13561346 then aA
13571347 else false)
13581348 then aB
13591349 else false)
13601350 then true
13611351 else ay(az, aA, aB)
13621352 }
1363- else if ($isInstanceOf(dI, "SetScriptTransaction"))
1353+ else if ($isInstanceOf(dE, "SetScriptTransaction"))
13641354 then {
1365- let eL = dI
1366- let gv = blake2b256(value(eL.script))
1367- let gw = fromBase64String(value(getString(aJ, aw())))
1368- let gx = scriptHash(this)
1369- if (if ((gw == gv))
1370- then (gx != gv)
1355+ let eH = dE
1356+ let gt = blake2b256(value(eH.script))
1357+ let gu = fromBase64String(value(getString(aJ, aw())))
1358+ let gv = scriptHash(this)
1359+ if (if ((gu == gt))
1360+ then (gv != gt)
13711361 else false)
13721362 then true
1373- else sigVerify(gr.bodyBytes, gr.proofs[0], gt)
1363+ else sigVerify(gp.bodyBytes, gp.proofs[0], gr)
13741364 }
1375- else sigVerify(gr.bodyBytes, gr.proofs[0], gt)
1365+ else sigVerify(gp.bodyBytes, gp.proofs[0], gr)
13761366 }
13771367

github/deemru/w8io/026f985 
323.00 ms