tx · 4U15NPRnyRhbHWP1iQ4JfV52XBQ7dTQ75SnNCvjeedC9

3NBLSz3BB8QU3BAPnsnrMyjFWr75tcEXryF:  -0.03400000 Waves

2022.12.06 17:12 [2348591] smart account 3NBLSz3BB8QU3BAPnsnrMyjFWr75tcEXryF > SELF 0.00000000 Waves

{ "type": 13, "id": "4U15NPRnyRhbHWP1iQ4JfV52XBQ7dTQ75SnNCvjeedC9", "fee": 3400000, "feeAssetId": null, "timestamp": 1670335791793, "version": 1, "sender": "3NBLSz3BB8QU3BAPnsnrMyjFWr75tcEXryF", "senderPublicKey": "BPTgianAtANVixAd7SHgec6W3RNNty3z1LVE9AQbYHdz", "proofs": [ "5U7UdJGSLTfk82WfMDJu6snyJicWa5sAhxbfdfuYbLffXTHQQz2sqADVh3AsibHVdSEHsURFHXhePK6VhzDdtxna" ], "script": "base64:BgLYLAgCEgMKAQgSABIECgIBBBIDCgEBEgQKAgEEEgQKAggBEgQKAggBEgQKAggBEgUKAwEIARIAEgQKAgEBEgMKAQESBQoDAQEBEgQKAggIEgASABIDCgEIEgUKAwEBARIECgIBARIECgIIARIECgIICBILCgkIAQECAQIIBAQSBgoECAgBCBIAEgMKAQESAwoBARIECgIIASIKbFBkZWNpbWFscyIGc2NhbGU4IgxzY2FsZThCaWdJbnQiB3NjYWxlMTgiCnplcm9CaWdJbnQiBGJpZzAiBGJpZzEiBGJpZzIiC3dhdmVzU3RyaW5nIgNTRVAiClBvb2xBY3RpdmUiD1Bvb2xQdXREaXNhYmxlZCITUG9vbE1hdGNoZXJEaXNhYmxlZCIMUG9vbFNodXRkb3duIg5pZHhQb29sQWRkcmVzcyINaWR4UG9vbFN0YXR1cyIQaWR4UG9vbExQQXNzZXRJZCINaWR4QW10QXNzZXRJZCIPaWR4UHJpY2VBc3NldElkIg5pZHhBbXRBc3NldERjbSIQaWR4UHJpY2VBc3NldERjbSIOaWR4SUFtdEFzc2V0SWQiEGlkeElQcmljZUFzc2V0SWQiDWlkeExQQXNzZXREY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cm9vZnMAAAUCZ3oAsH45", "chainId": 84, "height": 2348591, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: EsEtBECvfgWyHmEewUnweu9U2PA5nhXcJXPAQ9LdTxdq Next: 7c5G7W4cDHMLddm3gg76fRA3MGrQz2QtymbbG5csa3V4 Diff:
OldNewDifferences
380380
381381
382382 func da (db,dc,dd) = {
383- let de = (bw(aS(ba)) + db)
384- let df = (bw(aS(bb)) + dc)
385- let dg = (value(assetInfo(aZ)).quantity + dd)
386- let cZ = cW(toBigInt(de), toBigInt(df), toBigInt(dg))
387- let dh = [IntegerEntry(ag, height), StringEntry(af, toString(cZ))]
388- $Tuple2(dh, cZ)
383+ let de = (toBigInt(bw(aS(ba))) - db)
384+ let df = (toBigInt(bw(aS(bb))) - dc)
385+ let dg = (toBigInt(value(assetInfo(aZ)).quantity) - dd)
386+ let dh = cW(de, df, dg)
387+ dh
389388 }
390389
391390
392-func di (cZ) = {
393- let de = bw(aS(ba))
394- let df = bw(aS(bb))
395- let dg = value(assetInfo(aZ)).quantity
396- let dj = cW(toBigInt(de), toBigInt(df), toBigInt(dg))
397- if ((cZ >= dj))
398- then true
399- else aG("updated KLp lower than current KLp")
391+func di (dj,dk,dd) = {
392+ let de = (bw(aS(ba)) + dj)
393+ let df = (bw(aS(bb)) + dk)
394+ let dg = (value(assetInfo(aZ)).quantity + dd)
395+ let cZ = cW(toBigInt(de), toBigInt(df), toBigInt(dg))
396+ let dl = [IntegerEntry(ag, height), StringEntry(af, toString(cZ))]
397+ $Tuple2(dl, cZ)
400398 }
401399
402400
403-func dk (dl) = {
404- let dm = dl.amount
405- let dn = fraction(dl.amount, dl.price, b)
406- let do = if ((dl.orderType == Buy))
407- then $Tuple2(dm, -(dn))
408- else $Tuple2(-(dm), dn)
409- let db = do._1
410- let dc = do._2
401+func dm (dn,cZ) = if ((cZ >= dn))
402+ then true
403+ else aG("updated KLp lower than current KLp")
404+
405+
406+func do (dp) = {
407+ let dq = dp.amount
408+ let dr = fraction(dp.amount, dp.price, b)
409+ let ds = if ((dp.orderType == Buy))
410+ then $Tuple2(dq, -(dr))
411+ else $Tuple2(-(dq), dr)
412+ let dj = ds._1
413+ let dk = ds._2
411414 if (if (if (aL())
412415 then true
413416 else (aY == m))
414417 then true
415418 else (aY == n))
416419 then throw("Exchange operations disabled")
417- else if (if ((dl.assetPair.amountAsset != ba))
420+ else if (if ((dp.assetPair.amountAsset != ba))
418421 then true
419- else (dl.assetPair.priceAsset != bb))
422+ else (dp.assetPair.priceAsset != bb))
420423 then throw("Wrong order assets.")
421424 else {
422- let dp = valueOrErrorMessage(parseBigInt(valueOrErrorMessage(getString(this, af), aI("kLp is required"))), aI("invalid kLp"))
423- let dq = da(db, dc, 0)
424- let dr = dq._1
425- let ds = dq._2
426- let dt = (ds > dp)
427- dt
425+ let dt = valueOrErrorMessage(parseBigInt(valueOrErrorMessage(getString(this, af), aI("kLp is required"))), aI("invalid kLp"))
426+ let du = di(dj, dk, 0)
427+ let dv = du._1
428+ let dw = du._2
429+ let dx = (dw > dt)
430+ dx
428431 }
429432 }
430433
431434
432-func du (dv) = if ((size(dv.payments) != 1))
435+func dy (dz) = if ((size(dz.payments) != 1))
433436 then throw("exactly 1 payment is expected")
434437 else {
435- let dw = value(dv.payments[0])
436- let bV = value(dw.assetId)
437- let dx = dw.amount
438- let cG = bT(toBase58String(dv.transactionId), toBase58String(bV), dx, dv.caller)
438+ let dA = value(dz.payments[0])
439+ let bV = value(dA.assetId)
440+ let dB = dA.amount
441+ let cG = bT(toBase58String(dz.transactionId), toBase58String(bV), dB, dz.caller)
439442 let cm = cG._1
440443 let cn = cG._2
441444 let ca = parseIntValue(cG._9)
444447 then true
445448 else (ca == n))
446449 then throw(("Get operation is blocked by admin. Status = " + toString(ca)))
447- else $Tuple5(cm, cn, dx, bV, co)
450+ else $Tuple5(cm, cn, dB, bV, co)
448451 }
449452
450453
451-func dy (dv,cq,cw) = if ((size(dv.payments) != 2))
454+func dC (dz,cq,cw) = if ((size(dz.payments) != 2))
452455 then throw("exactly 2 payments are expected")
453456 else {
454- let dz = value(dv.payments[0])
455- let dA = value(dv.payments[1])
456- let dB = cp(toBase58String(dv.transactionId), cq, dz.amount, dz.assetId, dA.amount, dA.assetId, toString(dv.caller), false, cw)
457- let ca = parseIntValue(dB._8)
457+ let dD = value(dz.payments[0])
458+ let dE = value(dz.payments[1])
459+ let dF = cp(toBase58String(dz.transactionId), cq, dD.amount, dD.assetId, dE.amount, dE.assetId, toString(dz.caller), false, cw)
460+ let ca = parseIntValue(dF._8)
458461 if (if (if (aL())
459462 then true
460463 else (ca == l))
461464 then true
462465 else (ca == n))
463466 then throw(("Put operation is blocked by admin. Status = " + toString(ca)))
464- else dB
467+ else dF
465468 }
466469
467470
468-func dC (dD) = {
469- let dE = invoke(aJ, "emit", [dD], nil)
470- if ((dE == dE))
471+func dG (dH) = {
472+ let dI = invoke(aJ, "emit", [dH], nil)
473+ if ((dI == dI))
471474 then {
472- let dF = {
473- let dG = dE
474- if ($isInstanceOf(dG, "Address"))
475+ let dJ = {
476+ let dK = dI
477+ if ($isInstanceOf(dK, "Address"))
475478 then {
476- let dH = dG
477- invoke(dH, "emit", [dD], nil)
479+ let dL = dK
480+ invoke(dL, "emit", [dH], nil)
478481 }
479482 else unit
480483 }
481- if ((dF == dF))
482- then dD
484+ if ((dJ == dJ))
485+ then dH
483486 else throw("Strict value is not equal to itself.")
484487 }
485488 else throw("Strict value is not equal to itself.")
486489 }
487490
488491
489-func dI (dD) = {
490- let dJ = fraction(dD, ae, b)
491- $Tuple2((dD - dJ), dJ)
492+func dM (dH) = {
493+ let dN = fraction(dH, ae, b)
494+ $Tuple2((dH - dN), dN)
492495 }
493496
494497
495-func dK (dL,dM,X,Y) = {
496- let dN = (Y == unit)
497- let dO = bw(aS(ba))
498- let dP = bw(aS(bb))
499- let dQ = if ((dM == ba))
498+func dO (dP,dQ,X,Y) = {
499+ let dR = (Y == unit)
500+ let dS = bw(aS(ba))
501+ let dT = bw(aS(bb))
502+ let dU = if ((dQ == ba))
500503 then true
501- else if ((dM == bb))
504+ else if ((dQ == bb))
502505 then false
503506 else aG("invalid asset")
504- let dR = if (dN)
505- then $Tuple2(dO, dP)
506- else if (dQ)
507- then $Tuple2((dO - dL), dP)
508- else $Tuple2(dO, (dP - dL))
509- let dS = dR._1
510- let dT = dR._2
511- let dU = if (dQ)
512- then $Tuple2(dL, 0)
513- else $Tuple2(0, dL)
514- let dV = dU._1
515- let dW = dU._2
516- let dm = dI(dV)._1
517- let dn = dI(dW)._1
518- let dX = dI(dL)
519- let dY = dX._1
520- let dJ = dX._2
521- let dZ = (dS + dm)
522- let ea = (dT + dn)
523- let eb = by(D(ea, bd), D(dZ, bc))
524- let ec = G(eb, b)
525- let ed = if (dQ)
526- then dS
527- else dT
528- let ee = toBigInt(ed)
529- let ef = toBigInt(valueOrErrorMessage(assetInfo(aZ), (("asset " + toBase58String(aZ)) + " doesn't exist")).quantity)
530- let eg = if ((ef > f))
507+ let dV = if (dR)
508+ then $Tuple2(dS, dT)
509+ else if (dU)
510+ then $Tuple2((dS - dP), dT)
511+ else $Tuple2(dS, (dT - dP))
512+ let dW = dV._1
513+ let dX = dV._2
514+ let dY = if (dU)
515+ then $Tuple2(dP, 0)
516+ else $Tuple2(0, dP)
517+ let dZ = dY._1
518+ let ea = dY._2
519+ let dq = dM(dZ)._1
520+ let dr = dM(ea)._1
521+ let eb = dM(dP)
522+ let ec = eb._1
523+ let dN = eb._2
524+ let ed = (dW + dq)
525+ let ee = (dX + dr)
526+ let ef = by(D(ee, bd), D(ed, bc))
527+ let eg = G(ef, b)
528+ let eh = if (dU)
529+ then dW
530+ else dX
531+ let ei = toBigInt(eh)
532+ let ej = toBigInt(valueOrErrorMessage(assetInfo(aZ), (("asset " + toBase58String(aZ)) + " doesn't exist")).quantity)
533+ let ek = if ((ej > f))
531534 then true
532535 else aG("initial deposit requires all coins")
533- if ((eg == eg))
536+ if ((ek == ek))
534537 then {
535- let eh = toBigInt(dY)
536- let ei = max([0, toInt(((ef * (sqrtBigInt((d + ((eh * d) / ee)), 18, 18, DOWN) - d)) / d))])
537- let cV = if (dN)
538+ let el = toBigInt(ec)
539+ let em = max([0, toInt(((ej * (sqrtBigInt((d + ((el * d) / ei)), 18, 18, DOWN) - d)) / d))])
540+ let cV = if (dR)
538541 then nil
539- else [IntegerEntry(S(), ec), IntegerEntry(T(height, lastBlock.timestamp), ec), StringEntry(W(toString(value(X)), toBase58String(value(Y))), bh(dV, dW, ei, ec, 0, 0, height, lastBlock.timestamp, 0, 0))]
540- let ej = by(D(dT, bd), D(dS, bc))
541- let ek = G(ej, b)
542- let el = {
543- let em = if (dQ)
544- then $Tuple2(dV, dS)
545- else $Tuple2(dW, dT)
546- let dD = em._1
547- let en = em._2
548- let eo = toInt(fraction(ef, toBigInt((dD / 2)), toBigInt(en)))
549- fraction((ei - eo), b, eo)
542+ else [IntegerEntry(S(), eg), IntegerEntry(T(height, lastBlock.timestamp), eg), StringEntry(W(toString(value(X)), toBase58String(value(Y))), bh(dZ, ea, em, eg, 0, 0, height, lastBlock.timestamp, 0, 0))]
543+ let en = by(D(dX, bd), D(dW, bc))
544+ let eo = G(en, b)
545+ let ep = {
546+ let eq = if (dU)
547+ then $Tuple2(dZ, dW)
548+ else $Tuple2(ea, dX)
549+ let dH = eq._1
550+ let er = eq._2
551+ let es = toInt(fraction(ej, toBigInt((dH / 2)), toBigInt(er)))
552+ fraction((em - es), b, es)
550553 }
551- $Tuple5(ei, cV, dJ, el, dQ)
554+ $Tuple5(em, cV, dN, ep, dU)
552555 }
553556 else throw("Strict value is not equal to itself.")
554557 }
555558
556559
557-func ep (eq,dY,dM,X,Y) = {
558- let dN = (Y == unit)
559- let er = [if ((dM == aZ))
560+func et (eu,ec,dQ,X,Y) = {
561+ let dR = (Y == unit)
562+ let ev = [if ((dQ == aZ))
560563 then true
561564 else aG("invalid lp asset")]
562- if ((er == er))
565+ if ((ev == ev))
563566 then {
564- let es = if ((eq == ba))
567+ let ew = if ((eu == ba))
565568 then true
566- else if ((eq == bb))
569+ else if ((eu == bb))
567570 then false
568571 else aG("invalid asset")
569- let et = if (es)
572+ let ex = if (ew)
570573 then toBigInt(bw(aS(ba)))
571574 else toBigInt(bw(aS(bb)))
572- let eu = bw(aS(ba))
573- let ev = bw(aS(bb))
574- let ew = if (es)
575- then eu
576- else ev
577- let ex = toBigInt(ew)
578- let ef = toBigInt(valueOrErrorMessage(assetInfo(aZ), (("asset " + toBase58String(aZ)) + " doesn't exist")).quantity)
579- let ey = toBigInt(dY)
580- let ez = max([0, toInt(((et * (d - pow((d - ((ey * d) / ef)), 18, h, 0, 18, DOWN))) / d))])
581- let eA = dI(ez)
582- let eB = eA._1
583- let dJ = eA._2
584- let eC = if (es)
585- then $Tuple4(eB, 0, (eu - ez), ev)
586- else $Tuple4(0, eB, eu, (ev - ez))
587- let eD = eC._1
588- let eE = eC._2
589- let eF = eC._3
590- let eG = eC._4
591- let eb = by(D(eG, bd), D(eF, bc))
592- let ec = G(eb, b)
593- let cV = if (dN)
575+ let ey = bw(aS(ba))
576+ let ez = bw(aS(bb))
577+ let eA = if (ew)
578+ then ey
579+ else ez
580+ let eB = toBigInt(eA)
581+ let ej = toBigInt(valueOrErrorMessage(assetInfo(aZ), (("asset " + toBase58String(aZ)) + " doesn't exist")).quantity)
582+ let eC = toBigInt(ec)
583+ let eD = max([0, toInt(((ex * (d - pow((d - ((eC * d) / ej)), 18, h, 0, 18, DOWN))) / d))])
584+ let eE = dM(eD)
585+ let eF = eE._1
586+ let dN = eE._2
587+ let eG = if (ew)
588+ then $Tuple4(eF, 0, (ey - eD), ez)
589+ else $Tuple4(0, eF, ey, (ez - eD))
590+ let eH = eG._1
591+ let eI = eG._2
592+ let eJ = eG._3
593+ let eK = eG._4
594+ let ef = by(D(eK, bd), D(eJ, bc))
595+ let eg = G(ef, b)
596+ let cV = if (dR)
594597 then nil
595- else [StringEntry(Z(toString(value(X)), toBase58String(value(Y))), bs(eD, eE, dY, ec, height, lastBlock.timestamp)), IntegerEntry(S(), ec), IntegerEntry(T(height, lastBlock.timestamp), ec)]
596- let ej = by(D(ev, bd), D(eu, bc))
597- let ek = G(ej, b)
598- let el = {
599- let eH = (toInt(fraction(et, ey, ef)) * 2)
600- fraction((eB - eH), b, eH)
598+ else [StringEntry(Z(toString(value(X)), toBase58String(value(Y))), bs(eH, eI, ec, eg, height, lastBlock.timestamp)), IntegerEntry(S(), eg), IntegerEntry(T(height, lastBlock.timestamp), eg)]
599+ let en = by(D(ez, bd), D(ey, bc))
600+ let eo = G(en, b)
601+ let ep = {
602+ let eL = (toInt(fraction(ex, eC, ej)) * 2)
603+ fraction((eF - eL), b, eL)
601604 }
602- $Tuple5(eB, cV, dJ, el, es)
605+ $Tuple5(eF, cV, dN, ep, ew)
603606 }
604607 else throw("Strict value is not equal to itself.")
605608 }
606609
607610
608-func eI () = {
609- let dG = getString(Q())
610- if ($isInstanceOf(dG, "String"))
611+func eM () = {
612+ let dK = getString(Q())
613+ if ($isInstanceOf(dK, "String"))
611614 then {
612- let eJ = dG
613- fromBase58String(eJ)
615+ let eN = dK
616+ fromBase58String(eN)
614617 }
615- else if ($isInstanceOf(dG, "Unit"))
618+ else if ($isInstanceOf(dK, "Unit"))
616619 then unit
617620 else throw("Match error")
618621 }
619622
620623
621-func eK () = {
622- let dG = getString(R())
623- if ($isInstanceOf(dG, "String"))
624+func eO () = {
625+ let dK = getString(R())
626+ if ($isInstanceOf(dK, "String"))
624627 then {
625- let eJ = dG
626- fromBase58String(eJ)
628+ let eN = dK
629+ fromBase58String(eN)
627630 }
628- else if ($isInstanceOf(dG, "Unit"))
631+ else if ($isInstanceOf(dK, "Unit"))
629632 then unit
630633 else throw("Match error")
631634 }
632635
633636
634-func eL (dv) = {
635- let dG = eI()
636- if ($isInstanceOf(dG, "ByteVector"))
637+func eP (dz) = {
638+ let dK = eM()
639+ if ($isInstanceOf(dK, "ByteVector"))
637640 then {
638- let eM = dG
639- (dv.callerPublicKey == eM)
641+ let eQ = dK
642+ (dz.callerPublicKey == eQ)
640643 }
641- else if ($isInstanceOf(dG, "Unit"))
642- then (dv.caller == this)
644+ else if ($isInstanceOf(dK, "Unit"))
645+ then (dz.caller == this)
643646 else throw("Match error")
644647 }
645648
646649
647-func eN (dv) = {
648- let eO = throw("Permission denied")
649- let dG = eI()
650- if ($isInstanceOf(dG, "ByteVector"))
650+func eR (dz) = {
651+ let eS = throw("Permission denied")
652+ let dK = eM()
653+ if ($isInstanceOf(dK, "ByteVector"))
651654 then {
652- let eM = dG
653- if ((dv.callerPublicKey == eM))
655+ let eQ = dK
656+ if ((dz.callerPublicKey == eQ))
654657 then true
655- else eO
658+ else eS
656659 }
657- else if ($isInstanceOf(dG, "Unit"))
658- then if ((dv.caller == this))
660+ else if ($isInstanceOf(dK, "Unit"))
661+ then if ((dz.caller == this))
659662 then true
660- else eO
663+ else eS
661664 else throw("Match error")
662665 }
663666
664667
665-@Callable(dv)
666-func setManager (eP) = {
667- let eQ = eN(dv)
668- if ((eQ == eQ))
668+@Callable(dz)
669+func setManager (eT) = {
670+ let eU = eR(dz)
671+ if ((eU == eU))
669672 then {
670- let eR = fromBase58String(eP)
671- if ((eR == eR))
672- then [StringEntry(R(), eP)]
673+ let eV = fromBase58String(eT)
674+ if ((eV == eV))
675+ then [StringEntry(R(), eT)]
673676 else throw("Strict value is not equal to itself.")
674677 }
675678 else throw("Strict value is not equal to itself.")
677680
678681
679682
680-@Callable(dv)
683+@Callable(dz)
681684 func confirmManager () = {
682- let eS = eK()
683- let eT = if (isDefined(eS))
685+ let eW = eO()
686+ let eX = if (isDefined(eW))
684687 then true
685688 else throw("No pending manager")
686- if ((eT == eT))
689+ if ((eX == eX))
687690 then {
688- let eU = if ((dv.callerPublicKey == value(eS)))
691+ let eY = if ((dz.callerPublicKey == value(eW)))
689692 then true
690693 else throw("You are not pending manager")
691- if ((eU == eU))
692- then [StringEntry(Q(), toBase58String(value(eS))), DeleteEntry(R())]
694+ if ((eY == eY))
695+ then [StringEntry(Q(), toBase58String(value(eW))), DeleteEntry(R())]
693696 else throw("Strict value is not equal to itself.")
694697 }
695698 else throw("Strict value is not equal to itself.")
697700
698701
699702
700-@Callable(dv)
701-func put (cq,eV) = if ((0 > cq))
703+@Callable(dz)
704+func put (cq,eZ) = if ((0 > cq))
702705 then throw("Invalid slippageTolerance passed")
703706 else {
704- let dB = dy(dv, cq, true)
705- let cS = dB._2
706- let bX = dB._7
707- let co = dB._9
708- let cT = dB._10
709- let cU = dB._11
710- let eW = dB._12
711- let eX = dB._13
712- let dE = invoke(aJ, "emit", [cS], nil)
713- if ((dE == dE))
707+ let dF = dC(dz, cq, true)
708+ let cS = dF._2
709+ let bX = dF._7
710+ let co = dF._9
711+ let cT = dF._10
712+ let cU = dF._11
713+ let fa = dF._12
714+ let fb = dF._13
715+ let dD = toBigInt(value(dz.payments[0]).amount)
716+ let dE = toBigInt(value(dz.payments[1]).amount)
717+ let dh = da(dD, dE, toBigInt(0))
718+ if ((dh == dh))
714719 then {
715- let dF = {
716- let dG = dE
717- if ($isInstanceOf(dG, "Address"))
718- then {
719- let dH = dG
720- invoke(dH, "emit", [cS], nil)
720+ let dI = invoke(aJ, "emit", [cS], nil)
721+ if ((dI == dI))
722+ then {
723+ let dJ = {
724+ let dK = dI
725+ if ($isInstanceOf(dK, "Address"))
726+ then {
727+ let dL = dK
728+ invoke(dL, "emit", [cS], nil)
729+ }
730+ else unit
721731 }
722- else unit
723- }
724- if ((dF == dF))
725- then {
726- let eY = if ((cT > 0))
727- then invoke(bg, "put", nil, [AttachedPayment(eW, cT)])
728- else nil
729- if ((eY == eY))
732+ if ((dJ == dJ))
730733 then {
731- let eZ = if ((cU > 0))
732- then invoke(bg, "put", nil, [AttachedPayment(eX, cU)])
734+ let fc = if ((cT > 0))
735+ then invoke(bg, "put", nil, [AttachedPayment(fa, cT)])
733736 else nil
734- if ((eZ == eZ))
737+ if ((fc == fc))
735738 then {
736- let fa = if (eV)
739+ let fd = if ((cU > 0))
740+ then invoke(bg, "put", nil, [AttachedPayment(fb, cU)])
741+ else nil
742+ if ((fd == fd))
737743 then {
738- let fb = invoke(bf, "stake", nil, [AttachedPayment(bX, cS)])
739- if ((fb == fb))
740- then nil
744+ let fe = if (eZ)
745+ then {
746+ let ff = invoke(bf, "stake", nil, [AttachedPayment(bX, cS)])
747+ if ((ff == ff))
748+ then nil
749+ else throw("Strict value is not equal to itself.")
750+ }
751+ else [ScriptTransfer(dz.caller, cS, bX)]
752+ let fg = di(0, 0, 0)
753+ let fh = fg._1
754+ let cZ = fg._2
755+ let fi = dm(dh, cZ)
756+ if ((fi == fi))
757+ then ((co ++ fe) ++ fh)
741758 else throw("Strict value is not equal to itself.")
742759 }
743- else [ScriptTransfer(dv.caller, cS, bX)]
744- let fc = da(0, 0, 0)
745- let fd = fc._1
746- let cZ = fc._2
747- let fe = di(cZ)
748- if ((fe == fe))
749- then ((co ++ fa) ++ fd)
750760 else throw("Strict value is not equal to itself.")
751761 }
752762 else throw("Strict value is not equal to itself.")
760770
761771
762772
763-@Callable(dv)
764-func putForFree (ff) = if ((0 > ff))
773+@Callable(dz)
774+func putForFree (fj) = if ((0 > fj))
765775 then throw("Invalid value passed")
766776 else {
767- let dB = dy(dv, ff, false)
768- let co = dB._9
769- let fg = da(0, 0, 0)
770- let fd = fg._1
771- let cZ = fg._2
772- let fe = di(cZ)
773- if ((fe == fe))
774- then (co ++ fd)
777+ let dF = dC(dz, fj, false)
778+ let co = dF._9
779+ let dD = toBigInt(value(dz.payments[0]).amount)
780+ let dE = toBigInt(value(dz.payments[1]).amount)
781+ let dh = da(dD, dE, toBigInt(0))
782+ if ((dh == dh))
783+ then {
784+ let fk = di(0, 0, 0)
785+ let fh = fk._1
786+ let cZ = fk._2
787+ let fi = dm(dh, cZ)
788+ if ((fi == fi))
789+ then (co ++ fh)
790+ else throw("Strict value is not equal to itself.")
791+ }
775792 else throw("Strict value is not equal to itself.")
776793 }
777794
778795
779796
780-@Callable(dv)
781-func putOneTkn (fh,fi) = {
782- let fj = {
783- let fk = invoke(aJ, "isPoolOneTokenOperationsDisabledREADONLY", [toString(this)], nil)
784- if ($isInstanceOf(fk, "Boolean"))
785- then fk
786- else throw(($getType(fk) + " couldn't be cast to Boolean"))
797+@Callable(dz)
798+func putOneTkn (fl,fm) = {
799+ let fn = {
800+ let fo = invoke(aJ, "isPoolOneTokenOperationsDisabledREADONLY", [toString(this)], nil)
801+ if ($isInstanceOf(fo, "Boolean"))
802+ then fo
803+ else throw(($getType(fo) + " couldn't be cast to Boolean"))
787804 }
788- let fl = if (if (if (aL())
805+ let fp = if (if (if (aL())
789806 then true
790807 else (aY == l))
791808 then true
792809 else (aY == n))
793810 then true
794- else fj
795- let er = [if (if (!(fl))
811+ else fn
812+ let ev = [if (if (!(fp))
796813 then true
797- else eL(dv))
814+ else eP(dz))
798815 then true
799- else aG("put operation is blocked by admin"), if ((size(dv.payments) == 1))
816+ else aG("put operation is blocked by admin"), if ((size(dz.payments) == 1))
800817 then true
801818 else aG("exactly 1 payment are expected")]
802- if ((er == er))
819+ if ((ev == ev))
803820 then {
804- let fm = dv.payments[0]
805- let dM = fm.assetId
806- let dL = fm.amount
807- let X = dv.caller
808- let Y = dv.transactionId
809- let fn = dK(dL, dM, X, Y)
810- if ((fn == fn))
821+ let fq = dz.payments[0]
822+ let dQ = fq.assetId
823+ let dP = fq.amount
824+ let dh = if ((dQ == ba))
825+ then da(toBigInt(dP), toBigInt(0), toBigInt(0))
826+ else if ((dQ == bb))
827+ then da(toBigInt(0), toBigInt(dP), toBigInt(0))
828+ else aG("payment asset is not supported")
829+ let X = dz.caller
830+ let Y = dz.transactionId
831+ let fr = dO(dP, dQ, X, Y)
832+ if ((fr == fr))
811833 then {
812- let dQ = fn._5
813- let fo = fn._4
814- let dJ = fn._3
815- let cV = fn._2
816- let fp = fn._1
817- let fq = if (if ((fh > 0))
818- then (fh > fp)
834+ let dU = fr._5
835+ let fs = fr._4
836+ let dN = fr._3
837+ let cV = fr._2
838+ let ft = fr._1
839+ let fu = if (if ((fl > 0))
840+ then (fl > ft)
819841 else false)
820- then aG(makeString(["amount to receive is less than ", toString(fh)], ""))
821- else fp
822- let dE = dC(fq)
823- if ((dE == dE))
842+ then aG(makeString(["amount to receive is less than ", toString(fl)], ""))
843+ else ft
844+ let dI = dG(fu)
845+ if ((dI == dI))
824846 then {
825- let fa = if (fi)
847+ let fe = if (fm)
826848 then {
827- let fr = invoke(bf, "stake", nil, [AttachedPayment(aZ, fq)])
828- if ((fr == fr))
849+ let fv = invoke(bf, "stake", nil, [AttachedPayment(aZ, fu)])
850+ if ((fv == fv))
829851 then nil
830852 else throw("Strict value is not equal to itself.")
831853 }
832- else [ScriptTransfer(dv.caller, fq, aZ)]
833- let fs = if ((dJ > 0))
834- then [ScriptTransfer(aK, dJ, dM)]
854+ else [ScriptTransfer(dz.caller, fu, aZ)]
855+ let fw = if ((dN > 0))
856+ then [ScriptTransfer(aK, dN, dQ)]
835857 else nil
836- let ft = if ((this == aK))
858+ let fx = if ((this == aK))
837859 then $Tuple2(0, 0)
838- else if (dQ)
839- then $Tuple2(-(dJ), 0)
840- else $Tuple2(0, -(dJ))
841- let db = ft._1
842- let dc = ft._2
843- let fu = da(db, dc, 0)
844- let fd = fu._1
845- let cZ = fu._2
846- let fe = di(cZ)
847- if ((fe == fe))
848- then $Tuple2((((cV ++ fa) ++ fs) ++ fd), fq)
860+ else if (dU)
861+ then $Tuple2(-(dN), 0)
862+ else $Tuple2(0, -(dN))
863+ let dj = fx._1
864+ let dk = fx._2
865+ let fy = di(dj, dk, 0)
866+ let fh = fy._1
867+ let cZ = fy._2
868+ let fi = dm(dh, cZ)
869+ if ((fi == fi))
870+ then $Tuple2((((cV ++ fe) ++ fw) ++ fh), fu)
849871 else throw("Strict value is not equal to itself.")
850872 }
851873 else throw("Strict value is not equal to itself.")
857879
858880
859881
860-@Callable(dv)
861-func putOneTknREADONLY (dM,dL) = {
862- let fv = dK(dL, aQ(dM), unit, unit)
863- let fp = fv._1
864- let cV = fv._2
865- let dJ = fv._3
866- let fo = fv._4
867- let dQ = fv._5
868- $Tuple2(nil, $Tuple3(fp, dJ, fo))
882+@Callable(dz)
883+func putOneTknREADONLY (dQ,dP) = {
884+ let fz = dO(dP, aQ(dQ), unit, unit)
885+ let ft = fz._1
886+ let cV = fz._2
887+ let dN = fz._3
888+ let fs = fz._4
889+ let dU = fz._5
890+ $Tuple2(nil, $Tuple3(ft, dN, fs))
869891 }
870892
871893
872894
873-@Callable(dv)
874-func getOneTkn (fw,fh) = {
875- let fj = {
876- let fk = invoke(aJ, "isPoolOneTokenOperationsDisabledREADONLY", [toString(this)], nil)
877- if ($isInstanceOf(fk, "Boolean"))
878- then fk
879- else throw(($getType(fk) + " couldn't be cast to Boolean"))
895+@Callable(dz)
896+func getOneTkn (fA,fl) = {
897+ let fn = {
898+ let fo = invoke(aJ, "isPoolOneTokenOperationsDisabledREADONLY", [toString(this)], nil)
899+ if ($isInstanceOf(fo, "Boolean"))
900+ then fo
901+ else throw(($getType(fo) + " couldn't be cast to Boolean"))
880902 }
881- let fx = if (if (aL())
903+ let fB = if (if (aL())
882904 then true
883905 else (aY == n))
884906 then true
885- else fj
886- let er = [if (if (!(fx))
907+ else fn
908+ let ev = [if (if (!(fB))
887909 then true
888- else eL(dv))
910+ else eP(dz))
889911 then true
890- else aG("get operation is blocked by admin"), if ((size(dv.payments) == 1))
912+ else aG("get operation is blocked by admin"), if ((size(dz.payments) == 1))
891913 then true
892914 else aG("exactly 1 payment are expected")]
893- if ((er == er))
915+ if ((ev == ev))
894916 then {
895- let eq = aQ(fw)
896- let fm = dv.payments[0]
897- let dM = fm.assetId
898- let dY = fm.amount
899- let X = dv.caller
900- let Y = dv.transactionId
901- let fy = ep(eq, dY, dM, X, Y)
902- if ((fy == fy))
917+ let eu = aQ(fA)
918+ let fq = dz.payments[0]
919+ let dQ = fq.assetId
920+ let ec = fq.amount
921+ let dh = da(toBigInt(0), toBigInt(0), toBigInt(ec))
922+ let X = dz.caller
923+ let Y = dz.transactionId
924+ let fC = et(eu, ec, dQ, X, Y)
925+ if ((fC == fC))
903926 then {
904- let es = fy._5
905- let fo = fy._4
906- let dJ = fy._3
907- let cV = fy._2
908- let fz = fy._1
909- let dD = if (if ((fh > 0))
910- then (fh > fz)
927+ let ew = fC._5
928+ let fs = fC._4
929+ let dN = fC._3
930+ let cV = fC._2
931+ let fD = fC._1
932+ let dH = if (if ((fl > 0))
933+ then (fl > fD)
911934 else false)
912- then aG(makeString(["amount to receive is less than ", toString(fh)], ""))
913- else fz
914- let fA = invoke(aJ, "burn", [dY], [AttachedPayment(dM, dY)])
915- if ((fA == fA))
935+ then aG(makeString(["amount to receive is less than ", toString(fl)], ""))
936+ else fD
937+ let fE = invoke(aJ, "burn", [ec], [AttachedPayment(dQ, ec)])
938+ if ((fE == fE))
916939 then {
917- let fB = [ScriptTransfer(X, dD, eq)]
918- let fs = if ((dJ > 0))
919- then [ScriptTransfer(aK, dJ, eq)]
940+ let fF = [ScriptTransfer(X, dH, eu)]
941+ let fw = if ((dN > 0))
942+ then [ScriptTransfer(aK, dN, eu)]
920943 else nil
921- let fC = {
922- let fD = if ((this == aK))
944+ let fG = {
945+ let fH = if ((this == aK))
923946 then 0
924- else dJ
925- if (es)
926- then $Tuple2(-((dD + fD)), 0)
927- else $Tuple2(0, -((dD + fD)))
947+ else dN
948+ if (ew)
949+ then $Tuple2(-((dH + fH)), 0)
950+ else $Tuple2(0, -((dH + fH)))
928951 }
929- let db = fC._1
930- let dc = fC._2
931- let fE = da(db, dc, 0)
932- let fd = fE._1
933- let cZ = fE._2
934- let fe = di(cZ)
935- if ((fe == fe))
936- then $Tuple2((((cV ++ fB) ++ fs) ++ fd), dD)
952+ let dj = fG._1
953+ let dk = fG._2
954+ let fI = di(dj, dk, 0)
955+ let fh = fI._1
956+ let cZ = fI._2
957+ let fi = dm(dh, cZ)
958+ if ((fi == fi))
959+ then $Tuple2((((cV ++ fF) ++ fw) ++ fh), dH)
937960 else throw("Strict value is not equal to itself.")
938961 }
939962 else throw("Strict value is not equal to itself.")
945968
946969
947970
948-@Callable(dv)
949-func getOneTknREADONLY (eq,dY) = {
950- let fF = ep(aQ(eq), dY, aZ, unit, unit)
951- let fz = fF._1
952- let cV = fF._2
953- let dJ = fF._3
954- let fo = fF._4
955- let es = fF._5
956- $Tuple2(nil, $Tuple3(fz, dJ, fo))
971+@Callable(dz)
972+func getOneTknREADONLY (eu,ec) = {
973+ let fJ = et(aQ(eu), ec, aZ, unit, unit)
974+ let fD = fJ._1
975+ let cV = fJ._2
976+ let dN = fJ._3
977+ let fs = fJ._4
978+ let ew = fJ._5
979+ $Tuple2(nil, $Tuple3(fD, dN, fs))
957980 }
958981
959982
960983
961-@Callable(dv)
962-func unstakeAndGetOneTkn (fG,fw,fh) = {
963- let fj = {
964- let fk = invoke(aJ, "isPoolOneTokenOperationsDisabledREADONLY", [toString(this)], nil)
965- if ($isInstanceOf(fk, "Boolean"))
966- then fk
967- else throw(($getType(fk) + " couldn't be cast to Boolean"))
984+@Callable(dz)
985+func unstakeAndGetOneTkn (fK,fA,fl) = {
986+ let fn = {
987+ let fo = invoke(aJ, "isPoolOneTokenOperationsDisabledREADONLY", [toString(this)], nil)
988+ if ($isInstanceOf(fo, "Boolean"))
989+ then fo
990+ else throw(($getType(fo) + " couldn't be cast to Boolean"))
968991 }
969- let fx = if (if (aL())
992+ let fB = if (if (aL())
970993 then true
971994 else (aY == n))
972995 then true
973- else fj
974- let er = [if (if (!(fx))
996+ else fn
997+ let ev = [if (if (!(fB))
975998 then true
976- else eL(dv))
999+ else eP(dz))
9771000 then true
978- else aG("get operation is blocked by admin"), if ((size(dv.payments) == 0))
1001+ else aG("get operation is blocked by admin"), if ((size(dz.payments) == 0))
9791002 then true
9801003 else aG("no payments are expected")]
981- if ((er == er))
1004+ if ((ev == ev))
9821005 then {
983- let eq = aQ(fw)
984- let X = dv.caller
985- let Y = dv.transactionId
986- let fH = invoke(bf, "unstake", [toBase58String(aZ), fG], nil)
987- if ((fH == fH))
1006+ let eu = aQ(fA)
1007+ let X = dz.caller
1008+ let Y = dz.transactionId
1009+ let dh = da(toBigInt(0), toBigInt(0), toBigInt(0))
1010+ let fL = invoke(bf, "unstake", [toBase58String(aZ), fK], nil)
1011+ if ((fL == fL))
9881012 then {
989- let fI = ep(eq, fG, aZ, X, Y)
990- if ((fI == fI))
1013+ let fM = et(eu, fK, aZ, X, Y)
1014+ if ((fM == fM))
9911015 then {
992- let es = fI._5
993- let fo = fI._4
994- let dJ = fI._3
995- let cV = fI._2
996- let fz = fI._1
997- let dD = if (if ((fh > 0))
998- then (fh > fz)
1016+ let ew = fM._5
1017+ let fs = fM._4
1018+ let dN = fM._3
1019+ let cV = fM._2
1020+ let fD = fM._1
1021+ let dH = if (if ((fl > 0))
1022+ then (fl > fD)
9991023 else false)
1000- then aG(makeString(["amount to receive is less than ", toString(fh)], ""))
1001- else fz
1002- let fA = invoke(aJ, "burn", [fG], [AttachedPayment(aZ, fG)])
1003- if ((fA == fA))
1024+ then aG(makeString(["amount to receive is less than ", toString(fl)], ""))
1025+ else fD
1026+ let fE = invoke(aJ, "burn", [fK], [AttachedPayment(aZ, fK)])
1027+ if ((fE == fE))
10041028 then {
1005- let fB = [ScriptTransfer(dv.caller, dD, eq)]
1006- let fs = if ((dJ > 0))
1007- then [ScriptTransfer(aK, dJ, eq)]
1029+ let fF = [ScriptTransfer(dz.caller, dH, eu)]
1030+ let fw = if ((dN > 0))
1031+ then [ScriptTransfer(aK, dN, eu)]
10081032 else nil
1009- let fJ = {
1010- let fD = if ((this == aK))
1033+ let fN = {
1034+ let fH = if ((this == aK))
10111035 then 0
1012- else dJ
1013- if (es)
1014- then $Tuple2(-((dD + fD)), 0)
1015- else $Tuple2(0, -((dD + fD)))
1036+ else dN
1037+ if (ew)
1038+ then $Tuple2(-((dH + fH)), 0)
1039+ else $Tuple2(0, -((dH + fH)))
10161040 }
1017- let db = fJ._1
1018- let dc = fJ._2
1019- let fK = da(db, dc, 0)
1020- let fd = fK._1
1021- let cZ = fK._2
1022- let fe = di(cZ)
1023- if ((fe == fe))
1024- then $Tuple2((((cV ++ fB) ++ fs) ++ fd), dD)
1041+ let dj = fN._1
1042+ let dk = fN._2
1043+ let fO = di(dj, dk, 0)
1044+ let fh = fO._1
1045+ let cZ = fO._2
1046+ let fi = dm(dh, cZ)
1047+ if ((fi == fi))
1048+ then $Tuple2((((cV ++ fF) ++ fw) ++ fh), dH)
10251049 else throw("Strict value is not equal to itself.")
10261050 }
10271051 else throw("Strict value is not equal to itself.")
10351059
10361060
10371061
1038-@Callable(dv)
1062+@Callable(dz)
10391063 func get () = {
1040- let cG = du(dv)
1041- let fL = cG._1
1064+ let cG = dy(dz)
1065+ let fP = cG._1
10421066 let cn = cG._2
1043- let dx = cG._3
1067+ let dB = cG._3
10441068 let bV = cG._4
10451069 let co = cG._5
1046- let fM = invoke(aJ, "burn", [dx], [AttachedPayment(bV, dx)])
1047- if ((fM == fM))
1070+ let dh = da(toBigInt(0), toBigInt(0), toBigInt(dB))
1071+ let fQ = invoke(aJ, "burn", [dB], [AttachedPayment(bV, dB)])
1072+ if ((fQ == fQ))
10481073 then {
1049- let fN = da(-(fL), -(cn), 0)
1050- let fd = fN._1
1051- let cZ = fN._2
1052- let fe = di(cZ)
1053- if ((fe == fe))
1054- then (co ++ fd)
1074+ let fR = di(-(fP), -(cn), 0)
1075+ let fh = fR._1
1076+ let cZ = fR._2
1077+ let fi = dm(dh, cZ)
1078+ if ((fi == fi))
1079+ then (co ++ fh)
10551080 else throw("Strict value is not equal to itself.")
10561081 }
10571082 else throw("Strict value is not equal to itself.")
10591084
10601085
10611086
1062-@Callable(dv)
1063-func getNoLess (fO,fP) = {
1064- let cG = du(dv)
1087+@Callable(dz)
1088+func getNoLess (fS,fT) = {
1089+ let cG = dy(dz)
10651090 let cm = cG._1
10661091 let cn = cG._2
1067- let dx = cG._3
1092+ let dB = cG._3
10681093 let bV = cG._4
10691094 let co = cG._5
1070- if ((fO > cm))
1071- then throw(((("noLessThenAmtAsset failed: " + toString(cm)) + " < ") + toString(fO)))
1072- else if ((fP > cn))
1073- then throw(((("noLessThenPriceAsset failed: " + toString(cn)) + " < ") + toString(fP)))
1095+ if ((fS > cm))
1096+ then throw(((("noLessThenAmtAsset failed: " + toString(cm)) + " < ") + toString(fS)))
1097+ else if ((fT > cn))
1098+ then throw(((("noLessThenPriceAsset failed: " + toString(cn)) + " < ") + toString(fT)))
10741099 else {
1075- let fM = invoke(aJ, "burn", [dx], [AttachedPayment(bV, dx)])
1076- if ((fM == fM))
1100+ let dh = da(toBigInt(0), toBigInt(0), toBigInt(dB))
1101+ let fQ = invoke(aJ, "burn", [dB], [AttachedPayment(bV, dB)])
1102+ if ((fQ == fQ))
10771103 then {
1078- let fQ = da(-(cm), -(cn), 0)
1079- let fd = fQ._1
1080- let cZ = fQ._2
1081- let fe = di(cZ)
1082- if ((fe == fe))
1083- then (co ++ fd)
1104+ let fU = di(-(cm), -(cn), 0)
1105+ let fh = fU._1
1106+ let cZ = fU._2
1107+ let fi = dm(dh, cZ)
1108+ if ((fi == fi))
1109+ then (co ++ fh)
10841110 else throw("Strict value is not equal to itself.")
10851111 }
10861112 else throw("Strict value is not equal to itself.")
10891115
10901116
10911117
1092-@Callable(dv)
1093-func unstakeAndGet (dD) = {
1094- let fR = if ((size(dv.payments) != 0))
1118+@Callable(dz)
1119+func unstakeAndGet (dH) = {
1120+ let fV = if ((size(dz.payments) != 0))
10951121 then throw("No payments are expected")
10961122 else true
1097- if ((fR == fR))
1123+ if ((fV == fV))
10981124 then {
10991125 let bK = aN()
11001126 let bX = fromBase58String(bK[q])
1101- let fH = invoke(bf, "unstake", [toBase58String(bX), dD], nil)
1102- if ((fH == fH))
1127+ let dh = da(toBigInt(0), toBigInt(0), toBigInt(0))
1128+ let fL = invoke(bf, "unstake", [toBase58String(bX), dH], nil)
1129+ if ((fL == fL))
11031130 then {
1104- let cG = bT(toBase58String(dv.transactionId), toBase58String(bX), dD, dv.caller)
1131+ let cG = bT(toBase58String(dz.transactionId), toBase58String(bX), dH, dz.caller)
11051132 let cm = cG._1
11061133 let cn = cG._2
11071134 let ca = parseIntValue(cG._9)
11081135 let co = cG._10
1109- let fS = if (if (aL())
1136+ let fW = if (if (aL())
11101137 then true
11111138 else (ca == n))
11121139 then throw(("Get operation is blocked by admin. Status = " + toString(ca)))
11131140 else true
1114- if ((fS == fS))
1141+ if ((fW == fW))
11151142 then {
1116- let fM = invoke(aJ, "burn", [dD], [AttachedPayment(bX, dD)])
1117- if ((fM == fM))
1143+ let fQ = invoke(aJ, "burn", [dH], [AttachedPayment(bX, dH)])
1144+ if ((fQ == fQ))
11181145 then {
1119- let fT = da(-(cm), -(cn), 0)
1120- let fd = fT._1
1121- let cZ = fT._2
1122- let fe = di(cZ)
1123- if ((fe == fe))
1124- then (co ++ fd)
1146+ let fX = di(-(cm), -(cn), 0)
1147+ let fh = fX._1
1148+ let cZ = fX._2
1149+ let fi = dm(dh, cZ)
1150+ if ((fi == fi))
1151+ then (co ++ fh)
11251152 else throw("Strict value is not equal to itself.")
11261153 }
11271154 else throw("Strict value is not equal to itself.")
11351162
11361163
11371164
1138-@Callable(dv)
1139-func unstakeAndGetNoLess (fG,fU,fP) = {
1140- let fx = if (aL())
1165+@Callable(dz)
1166+func unstakeAndGetNoLess (fK,fY,fT) = {
1167+ let fB = if (aL())
11411168 then true
11421169 else (aY == n)
1143- let er = [if (!(fx))
1170+ let ev = [if (!(fB))
11441171 then true
1145- else throw("get operation is blocked by admin"), if ((size(dv.payments) == 0))
1172+ else throw("get operation is blocked by admin"), if ((size(dz.payments) == 0))
11461173 then true
11471174 else throw("no payments are expected")]
1148- if ((er == er))
1175+ if ((ev == ev))
11491176 then {
1150- let fH = invoke(bf, "unstake", [toBase58String(aZ), fG], nil)
1151- if ((fH == fH))
1177+ let dh = da(toBigInt(0), toBigInt(0), toBigInt(0))
1178+ let fL = invoke(bf, "unstake", [toBase58String(aZ), fK], nil)
1179+ if ((fL == fL))
11521180 then {
1153- let cG = bT(toBase58String(dv.transactionId), toBase58String(aZ), fG, dv.caller)
1181+ let cG = bT(toBase58String(dz.transactionId), toBase58String(aZ), fK, dz.caller)
11541182 let cm = cG._1
11551183 let cn = cG._2
11561184 let co = cG._10
1157- let fV = [if ((cm >= fU))
1185+ let fZ = [if ((cm >= fY))
11581186 then true
1159- else throw(makeString(["amount asset amount to receive is less than ", toString(fU)], "")), if ((cn >= fP))
1187+ else throw(makeString(["amount asset amount to receive is less than ", toString(fY)], "")), if ((cn >= fT))
11601188 then true
1161- else throw(makeString(["price asset amount to receive is less than ", toString(fP)], ""))]
1162- if ((fV == fV))
1189+ else throw(makeString(["price asset amount to receive is less than ", toString(fT)], ""))]
1190+ if ((fZ == fZ))
11631191 then {
1164- let fM = invoke(aJ, "burn", [fG], [AttachedPayment(aZ, fG)])
1165- if ((fM == fM))
1192+ let fQ = invoke(aJ, "burn", [fK], [AttachedPayment(aZ, fK)])
1193+ if ((fQ == fQ))
11661194 then {
1167- let fW = da(-(cm), -(cn), 0)
1168- let fd = fW._1
1169- let cZ = fW._2
1170- let fe = di(cZ)
1171- if ((fe == fe))
1172- then (co ++ fd)
1195+ let ga = di(-(cm), -(cn), 0)
1196+ let fh = ga._1
1197+ let cZ = ga._2
1198+ let fi = dm(dh, cZ)
1199+ if ((fi == fi))
1200+ then (co ++ fh)
11731201 else throw("Strict value is not equal to itself.")
11741202 }
11751203 else throw("Strict value is not equal to itself.")
11831211
11841212
11851213
1186-@Callable(dv)
1187-func activate (fX,fY) = if ((toString(dv.caller) != toString(aJ)))
1214+@Callable(dz)
1215+func activate (gb,gc) = if ((toString(dz.caller) != toString(aJ)))
11881216 then throw("permissions denied")
1189- else $Tuple2([StringEntry(aa(), fX), StringEntry(ab(), fY)], "success")
1217+ else $Tuple2([StringEntry(aa(), gb), StringEntry(ab(), gc)], "success")
11901218
11911219
11921220
1193-@Callable(dv)
1221+@Callable(dz)
11941222 func refreshKLp () = {
1195- let fZ = valueOrElse(getInteger(ag), 0)
1196- let ga = if (((height - fZ) >= aj))
1223+ let gd = valueOrElse(getInteger(ag), 0)
1224+ let ge = if (((height - gd) >= aj))
11971225 then unit
11981226 else aG(makeString([toString(aj), " blocks have not passed since the previous call"], ""))
1199- if ((ga == ga))
1227+ if ((ge == ge))
12001228 then {
1201- let dp = valueOrErrorMessage(parseBigInt(valueOrElse(getString(this, af), "0")), aI("invalid kLp"))
1202- let gb = da(0, 0, 0)
1203- let gc = gb._1
1204- let cZ = gb._2
1205- let dh = if ((dp != cZ))
1206- then gc
1229+ let dt = valueOrErrorMessage(parseBigInt(valueOrElse(getString(this, af), "0")), aI("invalid kLp"))
1230+ let gf = di(0, 0, 0)
1231+ let gg = gf._1
1232+ let cZ = gf._2
1233+ let dl = if ((dt != cZ))
1234+ then gg
12071235 else aG("nothing to refresh")
1208- $Tuple2(dh, toString(cZ))
1236+ $Tuple2(dl, toString(cZ))
12091237 }
12101238 else throw("Strict value is not equal to itself.")
12111239 }
12121240
12131241
12141242
1215-@Callable(dv)
1243+@Callable(dz)
12161244 func getPoolConfigWrapperREADONLY () = $Tuple2(nil, aN())
12171245
12181246
12191247
1220-@Callable(dv)
1248+@Callable(dz)
12211249 func getAccBalanceWrapperREADONLY (bx) = $Tuple2(nil, bw(bx))
12221250
12231251
12241252
1225-@Callable(dv)
1253+@Callable(dz)
12261254 func calcPricesWrapperREADONLY (bE,bF,bJ) = {
12271255 let bS = bI(bE, bF, bJ)
12281256 $Tuple2(nil, [toString(bS[0]), toString(bS[1]), toString(bS[2])])
12301258
12311259
12321260
1233-@Callable(dv)
1261+@Callable(dz)
12341262 func toX18WrapperREADONLY (E,F) = $Tuple2(nil, toString(D(E, F)))
12351263
12361264
12371265
1238-@Callable(dv)
1266+@Callable(dz)
12391267 func fromX18WrapperREADONLY (H,I) = $Tuple2(nil, G(parseBigIntValue(H), I))
12401268
12411269
12421270
1243-@Callable(dv)
1271+@Callable(dz)
12441272 func calcPriceBigIntWrapperREADONLY (bz,bA) = $Tuple2(nil, toString(by(parseBigIntValue(bz), parseBigIntValue(bA))))
12451273
12461274
12471275
1248-@Callable(dv)
1276+@Callable(dz)
12491277 func estimatePutOperationWrapperREADONLY (bU,cq,cr,cs,ct,cu,X,cv,cw) = $Tuple2(nil, cp(bU, cq, cr, cs, ct, cu, X, cv, cw))
12501278
12511279
12521280
1253-@Callable(dv)
1281+@Callable(dz)
12541282 func estimateGetOperationWrapperREADONLY (bU,bV,bW,X) = {
12551283 let cG = bT(bU, bV, bW, addressFromStringValue(X))
12561284 $Tuple2(nil, $Tuple10(cG._1, cG._2, cG._3, cG._4, cG._5, cG._6, cG._7, toString(cG._8), cG._9, cG._10))
12581286
12591287
12601288
1261-@Callable(dv)
1289+@Callable(dz)
12621290 func statsREADONLY () = {
12631291 let bK = aN()
12641292 let bX = fromBase58String(bK[q])
1265- let gd = bK[r]
1266- let ge = bK[s]
1293+ let gh = bK[r]
1294+ let gi = bK[s]
12671295 let cz = bK[v]
12681296 let cA = bK[w]
12691297 let bL = parseIntValue(bK[t])
12701298 let bM = parseIntValue(bK[u])
1271- let gf = valueOrErrorMessage(assetInfo(bX), (("Asset " + toBase58String(bX)) + " doesn't exist")).quantity
1272- let gg = bw(gd)
1273- let gh = bw(ge)
1274- let gi = if ((gf == 0))
1299+ let gj = valueOrErrorMessage(assetInfo(bX), (("Asset " + toBase58String(bX)) + " doesn't exist")).quantity
1300+ let gk = bw(gh)
1301+ let gl = bw(gi)
1302+ let gm = if ((gj == 0))
12751303 then [e, e, e]
1276- else bI(gg, gh, gf)
1304+ else bI(gk, gl, gj)
12771305 let ch = 0
1278- let gj = G(gi[1], b)
1279- let gk = G(gi[2], b)
1280- let gl = value(getInteger(aJ, au(toString(this))))
1281- $Tuple2(nil, makeString(["%d%d%d%d%d%d%d", toString(gg), toString(gh), toString(gf), toString(ch), toString(gj), toString(gk), toString(gl)], j))
1306+ let gn = G(gm[1], b)
1307+ let go = G(gm[2], b)
1308+ let gp = value(getInteger(aJ, au(toString(this))))
1309+ $Tuple2(nil, makeString(["%d%d%d%d%d%d%d", toString(gk), toString(gl), toString(gj), toString(ch), toString(gn), toString(go), toString(gp)], j))
12821310 }
12831311
12841312
12851313
1286-@Callable(dv)
1314+@Callable(dz)
12871315 func evaluatePutByAmountAssetREADONLY (cr) = {
12881316 let bK = aN()
12891317 let bX = fromBase58String(bK[q])
12941322 let bL = parseIntValue(bK[t])
12951323 let bM = parseIntValue(bK[u])
12961324 let ca = bK[p]
1297- let gf = valueOrErrorMessage(assetInfo(bX), (("Asset " + toBase58String(bX)) + " doesn't exist")).quantity
1298- let gg = bw(cx)
1299- let gh = bw(cy)
1300- let bG = D(gg, bL)
1301- let bH = D(gh, bM)
1302- let cg = if ((gf == 0))
1325+ let gj = valueOrErrorMessage(assetInfo(bX), (("Asset " + toBase58String(bX)) + " doesn't exist")).quantity
1326+ let gk = bw(cx)
1327+ let gl = bw(cy)
1328+ let bG = D(gk, bL)
1329+ let bH = D(gl, bM)
1330+ let cg = if ((gj == 0))
13031331 then e
13041332 else by(bH, bG)
13051333 let cD = D(cr, bL)
13061334 let cE = fraction(cD, cg, d)
13071335 let ct = G(cE, bM)
1308- let dB = cp("", 500000, cr, bY, ct, bZ, "", true, false)
1309- let cO = dB._1
1310- let gm = dB._3
1311- let cc = dB._4
1312- let ce = dB._5
1313- let cb = dB._6
1336+ let dF = cp("", 500000, cr, bY, ct, bZ, "", true, false)
1337+ let cO = dF._1
1338+ let gq = dF._3
1339+ let cc = dF._4
1340+ let ce = dF._5
1341+ let cb = dF._6
13141342 $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))
13151343 }
13161344
13171345
13181346
1319-@Callable(dv)
1347+@Callable(dz)
13201348 func evaluatePutByPriceAssetREADONLY (ct) = {
13211349 let bK = aN()
13221350 let bX = fromBase58String(bK[q])
13271355 let bL = parseIntValue(bK[t])
13281356 let bM = parseIntValue(bK[u])
13291357 let ca = bK[p]
1330- let gf = valueOrErrorMessage(assetInfo(bX), (("Asset " + toBase58String(bX)) + " doesn't exist")).quantity
1331- let gn = bw(cx)
1332- let go = bw(cy)
1333- let gp = D(gn, bL)
1334- let gq = D(go, bM)
1335- let cg = if ((gf == 0))
1358+ let gj = valueOrErrorMessage(assetInfo(bX), (("Asset " + toBase58String(bX)) + " doesn't exist")).quantity
1359+ let gr = bw(cx)
1360+ let gs = bw(cy)
1361+ let gt = D(gr, bL)
1362+ let gu = D(gs, bM)
1363+ let cg = if ((gj == 0))
13361364 then e
1337- else by(gq, gp)
1365+ else by(gu, gt)
13381366 let cE = D(ct, bM)
13391367 let cD = fraction(cE, d, cg)
13401368 let cr = G(cD, bL)
1341- let dB = cp("", 500000, cr, bY, ct, bZ, "", true, false)
1342- let cO = dB._1
1343- let gm = dB._3
1344- let cc = dB._4
1345- let ce = dB._5
1346- let cb = dB._6
1369+ let dF = cp("", 500000, cr, bY, ct, bZ, "", true, false)
1370+ let cO = dF._1
1371+ let gq = dF._3
1372+ let cc = dF._4
1373+ let ce = dF._5
1374+ let cb = dF._6
13471375 $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))
13481376 }
13491377
13501378
13511379
1352-@Callable(dv)
1353-func evaluateGetREADONLY (gr,gs) = {
1354- let cG = bT("", gr, gs, this)
1380+@Callable(dz)
1381+func evaluateGetREADONLY (gv,gw) = {
1382+ let cG = bT("", gv, gw, this)
13551383 let cm = cG._1
13561384 let cn = cG._2
13571385 let cc = cG._5
13631391 }
13641392
13651393
1366-@Verifier(gt)
1367-func gu () = {
1368- let gv = {
1369- let dG = eI()
1370- if ($isInstanceOf(dG, "ByteVector"))
1394+@Verifier(gx)
1395+func gy () = {
1396+ let gz = {
1397+ let dK = eM()
1398+ if ($isInstanceOf(dK, "ByteVector"))
13711399 then {
1372- let eM = dG
1373- eM
1400+ let eQ = dK
1401+ eQ
13741402 }
1375- else if ($isInstanceOf(dG, "Unit"))
1376- then gt.senderPublicKey
1403+ else if ($isInstanceOf(dK, "Unit"))
1404+ then gx.senderPublicKey
13771405 else throw("Match error")
13781406 }
1379- let dG = gt
1380- if ($isInstanceOf(dG, "Order"))
1407+ let dK = gx
1408+ if ($isInstanceOf(dK, "Order"))
13811409 then {
1382- let dl = dG
1383- let gw = aM()
1384- let az = dk(dl)
1385- let aA = sigVerify(dl.bodyBytes, dl.proofs[0], dl.senderPublicKey)
1386- let aB = sigVerify(dl.bodyBytes, dl.proofs[1], gw)
1410+ let dp = dK
1411+ let gA = aM()
1412+ let az = do(dp)
1413+ let aA = sigVerify(dp.bodyBytes, dp.proofs[0], dp.senderPublicKey)
1414+ let aB = sigVerify(dp.bodyBytes, dp.proofs[1], gA)
13871415 if (if (if (az)
13881416 then aA
13891417 else false)
13921420 then true
13931421 else ay(az, aA, aB)
13941422 }
1395- else if ($isInstanceOf(dG, "SetScriptTransaction"))
1423+ else if ($isInstanceOf(dK, "SetScriptTransaction"))
13961424 then {
1397- let eJ = dG
1398- let gx = blake2b256(value(eJ.script))
1399- let gy = fromBase64String(value(getString(aJ, aw())))
1400- let gz = scriptHash(this)
1401- if (if ((gy == gx))
1402- then (gz != gx)
1425+ let eN = dK
1426+ let gB = blake2b256(value(eN.script))
1427+ let gC = fromBase64String(value(getString(aJ, aw())))
1428+ let gD = scriptHash(this)
1429+ if (if ((gC == gB))
1430+ then (gD != gB)
14031431 else false)
14041432 then true
1405- else sigVerify(gt.bodyBytes, gt.proofs[0], gv)
1433+ else sigVerify(gx.bodyBytes, gx.proofs[0], gz)
14061434 }
1407- else sigVerify(gt.bodyBytes, gt.proofs[0], gv)
1435+ else sigVerify(gx.bodyBytes, gx.proofs[0], gz)
14081436 }
14091437
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) = {
383- let de = (bw(aS(ba)) + db)
384- let df = (bw(aS(bb)) + dc)
385- let dg = (value(assetInfo(aZ)).quantity + dd)
386- let cZ = cW(toBigInt(de), toBigInt(df), toBigInt(dg))
387- let dh = [IntegerEntry(ag, height), StringEntry(af, toString(cZ))]
388- $Tuple2(dh, cZ)
383+ let de = (toBigInt(bw(aS(ba))) - db)
384+ let df = (toBigInt(bw(aS(bb))) - dc)
385+ let dg = (toBigInt(value(assetInfo(aZ)).quantity) - dd)
386+ let dh = cW(de, df, dg)
387+ dh
389388 }
390389
391390
392-func di (cZ) = {
393- let de = bw(aS(ba))
394- let df = bw(aS(bb))
395- let dg = value(assetInfo(aZ)).quantity
396- let dj = cW(toBigInt(de), toBigInt(df), toBigInt(dg))
397- if ((cZ >= dj))
398- then true
399- else aG("updated KLp lower than current KLp")
391+func di (dj,dk,dd) = {
392+ let de = (bw(aS(ba)) + dj)
393+ let df = (bw(aS(bb)) + dk)
394+ let dg = (value(assetInfo(aZ)).quantity + dd)
395+ let cZ = cW(toBigInt(de), toBigInt(df), toBigInt(dg))
396+ let dl = [IntegerEntry(ag, height), StringEntry(af, toString(cZ))]
397+ $Tuple2(dl, cZ)
400398 }
401399
402400
403-func dk (dl) = {
404- let dm = dl.amount
405- let dn = fraction(dl.amount, dl.price, b)
406- let do = if ((dl.orderType == Buy))
407- then $Tuple2(dm, -(dn))
408- else $Tuple2(-(dm), dn)
409- let db = do._1
410- let dc = do._2
401+func dm (dn,cZ) = if ((cZ >= dn))
402+ then true
403+ else aG("updated KLp lower than current KLp")
404+
405+
406+func do (dp) = {
407+ let dq = dp.amount
408+ let dr = fraction(dp.amount, dp.price, b)
409+ let ds = if ((dp.orderType == Buy))
410+ then $Tuple2(dq, -(dr))
411+ else $Tuple2(-(dq), dr)
412+ let dj = ds._1
413+ let dk = ds._2
411414 if (if (if (aL())
412415 then true
413416 else (aY == m))
414417 then true
415418 else (aY == n))
416419 then throw("Exchange operations disabled")
417- else if (if ((dl.assetPair.amountAsset != ba))
420+ else if (if ((dp.assetPair.amountAsset != ba))
418421 then true
419- else (dl.assetPair.priceAsset != bb))
422+ else (dp.assetPair.priceAsset != bb))
420423 then throw("Wrong order assets.")
421424 else {
422- let dp = valueOrErrorMessage(parseBigInt(valueOrErrorMessage(getString(this, af), aI("kLp is required"))), aI("invalid kLp"))
423- let dq = da(db, dc, 0)
424- let dr = dq._1
425- let ds = dq._2
426- let dt = (ds > dp)
427- dt
425+ let dt = valueOrErrorMessage(parseBigInt(valueOrErrorMessage(getString(this, af), aI("kLp is required"))), aI("invalid kLp"))
426+ let du = di(dj, dk, 0)
427+ let dv = du._1
428+ let dw = du._2
429+ let dx = (dw > dt)
430+ dx
428431 }
429432 }
430433
431434
432-func du (dv) = if ((size(dv.payments) != 1))
435+func dy (dz) = if ((size(dz.payments) != 1))
433436 then throw("exactly 1 payment is expected")
434437 else {
435- let dw = value(dv.payments[0])
436- let bV = value(dw.assetId)
437- let dx = dw.amount
438- let cG = bT(toBase58String(dv.transactionId), toBase58String(bV), dx, dv.caller)
438+ let dA = value(dz.payments[0])
439+ let bV = value(dA.assetId)
440+ let dB = dA.amount
441+ let cG = bT(toBase58String(dz.transactionId), toBase58String(bV), dB, dz.caller)
439442 let cm = cG._1
440443 let cn = cG._2
441444 let ca = parseIntValue(cG._9)
442445 let co = cG._10
443446 if (if (aL())
444447 then true
445448 else (ca == n))
446449 then throw(("Get operation is blocked by admin. Status = " + toString(ca)))
447- else $Tuple5(cm, cn, dx, bV, co)
450+ else $Tuple5(cm, cn, dB, bV, co)
448451 }
449452
450453
451-func dy (dv,cq,cw) = if ((size(dv.payments) != 2))
454+func dC (dz,cq,cw) = if ((size(dz.payments) != 2))
452455 then throw("exactly 2 payments are expected")
453456 else {
454- let dz = value(dv.payments[0])
455- let dA = value(dv.payments[1])
456- let dB = cp(toBase58String(dv.transactionId), cq, dz.amount, dz.assetId, dA.amount, dA.assetId, toString(dv.caller), false, cw)
457- let ca = parseIntValue(dB._8)
457+ let dD = value(dz.payments[0])
458+ let dE = value(dz.payments[1])
459+ let dF = cp(toBase58String(dz.transactionId), cq, dD.amount, dD.assetId, dE.amount, dE.assetId, toString(dz.caller), false, cw)
460+ let ca = parseIntValue(dF._8)
458461 if (if (if (aL())
459462 then true
460463 else (ca == l))
461464 then true
462465 else (ca == n))
463466 then throw(("Put operation is blocked by admin. Status = " + toString(ca)))
464- else dB
467+ else dF
465468 }
466469
467470
468-func dC (dD) = {
469- let dE = invoke(aJ, "emit", [dD], nil)
470- if ((dE == dE))
471+func dG (dH) = {
472+ let dI = invoke(aJ, "emit", [dH], nil)
473+ if ((dI == dI))
471474 then {
472- let dF = {
473- let dG = dE
474- if ($isInstanceOf(dG, "Address"))
475+ let dJ = {
476+ let dK = dI
477+ if ($isInstanceOf(dK, "Address"))
475478 then {
476- let dH = dG
477- invoke(dH, "emit", [dD], nil)
479+ let dL = dK
480+ invoke(dL, "emit", [dH], nil)
478481 }
479482 else unit
480483 }
481- if ((dF == dF))
482- then dD
484+ if ((dJ == dJ))
485+ then dH
483486 else throw("Strict value is not equal to itself.")
484487 }
485488 else throw("Strict value is not equal to itself.")
486489 }
487490
488491
489-func dI (dD) = {
490- let dJ = fraction(dD, ae, b)
491- $Tuple2((dD - dJ), dJ)
492+func dM (dH) = {
493+ let dN = fraction(dH, ae, b)
494+ $Tuple2((dH - dN), dN)
492495 }
493496
494497
495-func dK (dL,dM,X,Y) = {
496- let dN = (Y == unit)
497- let dO = bw(aS(ba))
498- let dP = bw(aS(bb))
499- let dQ = if ((dM == ba))
498+func dO (dP,dQ,X,Y) = {
499+ let dR = (Y == unit)
500+ let dS = bw(aS(ba))
501+ let dT = bw(aS(bb))
502+ let dU = if ((dQ == ba))
500503 then true
501- else if ((dM == bb))
504+ else if ((dQ == bb))
502505 then false
503506 else aG("invalid asset")
504- let dR = if (dN)
505- then $Tuple2(dO, dP)
506- else if (dQ)
507- then $Tuple2((dO - dL), dP)
508- else $Tuple2(dO, (dP - dL))
509- let dS = dR._1
510- let dT = dR._2
511- let dU = if (dQ)
512- then $Tuple2(dL, 0)
513- else $Tuple2(0, dL)
514- let dV = dU._1
515- let dW = dU._2
516- let dm = dI(dV)._1
517- let dn = dI(dW)._1
518- let dX = dI(dL)
519- let dY = dX._1
520- let dJ = dX._2
521- let dZ = (dS + dm)
522- let ea = (dT + dn)
523- let eb = by(D(ea, bd), D(dZ, bc))
524- let ec = G(eb, b)
525- let ed = if (dQ)
526- then dS
527- else dT
528- let ee = toBigInt(ed)
529- let ef = toBigInt(valueOrErrorMessage(assetInfo(aZ), (("asset " + toBase58String(aZ)) + " doesn't exist")).quantity)
530- let eg = if ((ef > f))
507+ let dV = if (dR)
508+ then $Tuple2(dS, dT)
509+ else if (dU)
510+ then $Tuple2((dS - dP), dT)
511+ else $Tuple2(dS, (dT - dP))
512+ let dW = dV._1
513+ let dX = dV._2
514+ let dY = if (dU)
515+ then $Tuple2(dP, 0)
516+ else $Tuple2(0, dP)
517+ let dZ = dY._1
518+ let ea = dY._2
519+ let dq = dM(dZ)._1
520+ let dr = dM(ea)._1
521+ let eb = dM(dP)
522+ let ec = eb._1
523+ let dN = eb._2
524+ let ed = (dW + dq)
525+ let ee = (dX + dr)
526+ let ef = by(D(ee, bd), D(ed, bc))
527+ let eg = G(ef, b)
528+ let eh = if (dU)
529+ then dW
530+ else dX
531+ let ei = toBigInt(eh)
532+ let ej = toBigInt(valueOrErrorMessage(assetInfo(aZ), (("asset " + toBase58String(aZ)) + " doesn't exist")).quantity)
533+ let ek = if ((ej > f))
531534 then true
532535 else aG("initial deposit requires all coins")
533- if ((eg == eg))
536+ if ((ek == ek))
534537 then {
535- let eh = toBigInt(dY)
536- let ei = max([0, toInt(((ef * (sqrtBigInt((d + ((eh * d) / ee)), 18, 18, DOWN) - d)) / d))])
537- let cV = if (dN)
538+ let el = toBigInt(ec)
539+ let em = max([0, toInt(((ej * (sqrtBigInt((d + ((el * d) / ei)), 18, 18, DOWN) - d)) / d))])
540+ let cV = if (dR)
538541 then nil
539- else [IntegerEntry(S(), ec), IntegerEntry(T(height, lastBlock.timestamp), ec), StringEntry(W(toString(value(X)), toBase58String(value(Y))), bh(dV, dW, ei, ec, 0, 0, height, lastBlock.timestamp, 0, 0))]
540- let ej = by(D(dT, bd), D(dS, bc))
541- let ek = G(ej, b)
542- let el = {
543- let em = if (dQ)
544- then $Tuple2(dV, dS)
545- else $Tuple2(dW, dT)
546- let dD = em._1
547- let en = em._2
548- let eo = toInt(fraction(ef, toBigInt((dD / 2)), toBigInt(en)))
549- fraction((ei - eo), b, eo)
542+ else [IntegerEntry(S(), eg), IntegerEntry(T(height, lastBlock.timestamp), eg), StringEntry(W(toString(value(X)), toBase58String(value(Y))), bh(dZ, ea, em, eg, 0, 0, height, lastBlock.timestamp, 0, 0))]
543+ let en = by(D(dX, bd), D(dW, bc))
544+ let eo = G(en, b)
545+ let ep = {
546+ let eq = if (dU)
547+ then $Tuple2(dZ, dW)
548+ else $Tuple2(ea, dX)
549+ let dH = eq._1
550+ let er = eq._2
551+ let es = toInt(fraction(ej, toBigInt((dH / 2)), toBigInt(er)))
552+ fraction((em - es), b, es)
550553 }
551- $Tuple5(ei, cV, dJ, el, dQ)
554+ $Tuple5(em, cV, dN, ep, dU)
552555 }
553556 else throw("Strict value is not equal to itself.")
554557 }
555558
556559
557-func ep (eq,dY,dM,X,Y) = {
558- let dN = (Y == unit)
559- let er = [if ((dM == aZ))
560+func et (eu,ec,dQ,X,Y) = {
561+ let dR = (Y == unit)
562+ let ev = [if ((dQ == aZ))
560563 then true
561564 else aG("invalid lp asset")]
562- if ((er == er))
565+ if ((ev == ev))
563566 then {
564- let es = if ((eq == ba))
567+ let ew = if ((eu == ba))
565568 then true
566- else if ((eq == bb))
569+ else if ((eu == bb))
567570 then false
568571 else aG("invalid asset")
569- let et = if (es)
572+ let ex = if (ew)
570573 then toBigInt(bw(aS(ba)))
571574 else toBigInt(bw(aS(bb)))
572- let eu = bw(aS(ba))
573- let ev = bw(aS(bb))
574- let ew = if (es)
575- then eu
576- else ev
577- let ex = toBigInt(ew)
578- let ef = toBigInt(valueOrErrorMessage(assetInfo(aZ), (("asset " + toBase58String(aZ)) + " doesn't exist")).quantity)
579- let ey = toBigInt(dY)
580- let ez = max([0, toInt(((et * (d - pow((d - ((ey * d) / ef)), 18, h, 0, 18, DOWN))) / d))])
581- let eA = dI(ez)
582- let eB = eA._1
583- let dJ = eA._2
584- let eC = if (es)
585- then $Tuple4(eB, 0, (eu - ez), ev)
586- else $Tuple4(0, eB, eu, (ev - ez))
587- let eD = eC._1
588- let eE = eC._2
589- let eF = eC._3
590- let eG = eC._4
591- let eb = by(D(eG, bd), D(eF, bc))
592- let ec = G(eb, b)
593- let cV = if (dN)
575+ let ey = bw(aS(ba))
576+ let ez = bw(aS(bb))
577+ let eA = if (ew)
578+ then ey
579+ else ez
580+ let eB = toBigInt(eA)
581+ let ej = toBigInt(valueOrErrorMessage(assetInfo(aZ), (("asset " + toBase58String(aZ)) + " doesn't exist")).quantity)
582+ let eC = toBigInt(ec)
583+ let eD = max([0, toInt(((ex * (d - pow((d - ((eC * d) / ej)), 18, h, 0, 18, DOWN))) / d))])
584+ let eE = dM(eD)
585+ let eF = eE._1
586+ let dN = eE._2
587+ let eG = if (ew)
588+ then $Tuple4(eF, 0, (ey - eD), ez)
589+ else $Tuple4(0, eF, ey, (ez - eD))
590+ let eH = eG._1
591+ let eI = eG._2
592+ let eJ = eG._3
593+ let eK = eG._4
594+ let ef = by(D(eK, bd), D(eJ, bc))
595+ let eg = G(ef, b)
596+ let cV = if (dR)
594597 then nil
595- else [StringEntry(Z(toString(value(X)), toBase58String(value(Y))), bs(eD, eE, dY, ec, height, lastBlock.timestamp)), IntegerEntry(S(), ec), IntegerEntry(T(height, lastBlock.timestamp), ec)]
596- let ej = by(D(ev, bd), D(eu, bc))
597- let ek = G(ej, b)
598- let el = {
599- let eH = (toInt(fraction(et, ey, ef)) * 2)
600- fraction((eB - eH), b, eH)
598+ else [StringEntry(Z(toString(value(X)), toBase58String(value(Y))), bs(eH, eI, ec, eg, height, lastBlock.timestamp)), IntegerEntry(S(), eg), IntegerEntry(T(height, lastBlock.timestamp), eg)]
599+ let en = by(D(ez, bd), D(ey, bc))
600+ let eo = G(en, b)
601+ let ep = {
602+ let eL = (toInt(fraction(ex, eC, ej)) * 2)
603+ fraction((eF - eL), b, eL)
601604 }
602- $Tuple5(eB, cV, dJ, el, es)
605+ $Tuple5(eF, cV, dN, ep, ew)
603606 }
604607 else throw("Strict value is not equal to itself.")
605608 }
606609
607610
608-func eI () = {
609- let dG = getString(Q())
610- if ($isInstanceOf(dG, "String"))
611+func eM () = {
612+ let dK = getString(Q())
613+ if ($isInstanceOf(dK, "String"))
611614 then {
612- let eJ = dG
613- fromBase58String(eJ)
615+ let eN = dK
616+ fromBase58String(eN)
614617 }
615- else if ($isInstanceOf(dG, "Unit"))
618+ else if ($isInstanceOf(dK, "Unit"))
616619 then unit
617620 else throw("Match error")
618621 }
619622
620623
621-func eK () = {
622- let dG = getString(R())
623- if ($isInstanceOf(dG, "String"))
624+func eO () = {
625+ let dK = getString(R())
626+ if ($isInstanceOf(dK, "String"))
624627 then {
625- let eJ = dG
626- fromBase58String(eJ)
628+ let eN = dK
629+ fromBase58String(eN)
627630 }
628- else if ($isInstanceOf(dG, "Unit"))
631+ else if ($isInstanceOf(dK, "Unit"))
629632 then unit
630633 else throw("Match error")
631634 }
632635
633636
634-func eL (dv) = {
635- let dG = eI()
636- if ($isInstanceOf(dG, "ByteVector"))
637+func eP (dz) = {
638+ let dK = eM()
639+ if ($isInstanceOf(dK, "ByteVector"))
637640 then {
638- let eM = dG
639- (dv.callerPublicKey == eM)
641+ let eQ = dK
642+ (dz.callerPublicKey == eQ)
640643 }
641- else if ($isInstanceOf(dG, "Unit"))
642- then (dv.caller == this)
644+ else if ($isInstanceOf(dK, "Unit"))
645+ then (dz.caller == this)
643646 else throw("Match error")
644647 }
645648
646649
647-func eN (dv) = {
648- let eO = throw("Permission denied")
649- let dG = eI()
650- if ($isInstanceOf(dG, "ByteVector"))
650+func eR (dz) = {
651+ let eS = throw("Permission denied")
652+ let dK = eM()
653+ if ($isInstanceOf(dK, "ByteVector"))
651654 then {
652- let eM = dG
653- if ((dv.callerPublicKey == eM))
655+ let eQ = dK
656+ if ((dz.callerPublicKey == eQ))
654657 then true
655- else eO
658+ else eS
656659 }
657- else if ($isInstanceOf(dG, "Unit"))
658- then if ((dv.caller == this))
660+ else if ($isInstanceOf(dK, "Unit"))
661+ then if ((dz.caller == this))
659662 then true
660- else eO
663+ else eS
661664 else throw("Match error")
662665 }
663666
664667
665-@Callable(dv)
666-func setManager (eP) = {
667- let eQ = eN(dv)
668- if ((eQ == eQ))
668+@Callable(dz)
669+func setManager (eT) = {
670+ let eU = eR(dz)
671+ if ((eU == eU))
669672 then {
670- let eR = fromBase58String(eP)
671- if ((eR == eR))
672- then [StringEntry(R(), eP)]
673+ let eV = fromBase58String(eT)
674+ if ((eV == eV))
675+ then [StringEntry(R(), eT)]
673676 else throw("Strict value is not equal to itself.")
674677 }
675678 else throw("Strict value is not equal to itself.")
676679 }
677680
678681
679682
680-@Callable(dv)
683+@Callable(dz)
681684 func confirmManager () = {
682- let eS = eK()
683- let eT = if (isDefined(eS))
685+ let eW = eO()
686+ let eX = if (isDefined(eW))
684687 then true
685688 else throw("No pending manager")
686- if ((eT == eT))
689+ if ((eX == eX))
687690 then {
688- let eU = if ((dv.callerPublicKey == value(eS)))
691+ let eY = if ((dz.callerPublicKey == value(eW)))
689692 then true
690693 else throw("You are not pending manager")
691- if ((eU == eU))
692- then [StringEntry(Q(), toBase58String(value(eS))), DeleteEntry(R())]
694+ if ((eY == eY))
695+ then [StringEntry(Q(), toBase58String(value(eW))), DeleteEntry(R())]
693696 else throw("Strict value is not equal to itself.")
694697 }
695698 else throw("Strict value is not equal to itself.")
696699 }
697700
698701
699702
700-@Callable(dv)
701-func put (cq,eV) = if ((0 > cq))
703+@Callable(dz)
704+func put (cq,eZ) = if ((0 > cq))
702705 then throw("Invalid slippageTolerance passed")
703706 else {
704- let dB = dy(dv, cq, true)
705- let cS = dB._2
706- let bX = dB._7
707- let co = dB._9
708- let cT = dB._10
709- let cU = dB._11
710- let eW = dB._12
711- let eX = dB._13
712- let dE = invoke(aJ, "emit", [cS], nil)
713- if ((dE == dE))
707+ let dF = dC(dz, cq, true)
708+ let cS = dF._2
709+ let bX = dF._7
710+ let co = dF._9
711+ let cT = dF._10
712+ let cU = dF._11
713+ let fa = dF._12
714+ let fb = dF._13
715+ let dD = toBigInt(value(dz.payments[0]).amount)
716+ let dE = toBigInt(value(dz.payments[1]).amount)
717+ let dh = da(dD, dE, toBigInt(0))
718+ if ((dh == dh))
714719 then {
715- let dF = {
716- let dG = dE
717- if ($isInstanceOf(dG, "Address"))
718- then {
719- let dH = dG
720- invoke(dH, "emit", [cS], nil)
720+ let dI = invoke(aJ, "emit", [cS], nil)
721+ if ((dI == dI))
722+ then {
723+ let dJ = {
724+ let dK = dI
725+ if ($isInstanceOf(dK, "Address"))
726+ then {
727+ let dL = dK
728+ invoke(dL, "emit", [cS], nil)
729+ }
730+ else unit
721731 }
722- else unit
723- }
724- if ((dF == dF))
725- then {
726- let eY = if ((cT > 0))
727- then invoke(bg, "put", nil, [AttachedPayment(eW, cT)])
728- else nil
729- if ((eY == eY))
732+ if ((dJ == dJ))
730733 then {
731- let eZ = if ((cU > 0))
732- then invoke(bg, "put", nil, [AttachedPayment(eX, cU)])
734+ let fc = if ((cT > 0))
735+ then invoke(bg, "put", nil, [AttachedPayment(fa, cT)])
733736 else nil
734- if ((eZ == eZ))
737+ if ((fc == fc))
735738 then {
736- let fa = if (eV)
739+ let fd = if ((cU > 0))
740+ then invoke(bg, "put", nil, [AttachedPayment(fb, cU)])
741+ else nil
742+ if ((fd == fd))
737743 then {
738- let fb = invoke(bf, "stake", nil, [AttachedPayment(bX, cS)])
739- if ((fb == fb))
740- then nil
744+ let fe = if (eZ)
745+ then {
746+ let ff = invoke(bf, "stake", nil, [AttachedPayment(bX, cS)])
747+ if ((ff == ff))
748+ then nil
749+ else throw("Strict value is not equal to itself.")
750+ }
751+ else [ScriptTransfer(dz.caller, cS, bX)]
752+ let fg = di(0, 0, 0)
753+ let fh = fg._1
754+ let cZ = fg._2
755+ let fi = dm(dh, cZ)
756+ if ((fi == fi))
757+ then ((co ++ fe) ++ fh)
741758 else throw("Strict value is not equal to itself.")
742759 }
743- else [ScriptTransfer(dv.caller, cS, bX)]
744- let fc = da(0, 0, 0)
745- let fd = fc._1
746- let cZ = fc._2
747- let fe = di(cZ)
748- if ((fe == fe))
749- then ((co ++ fa) ++ fd)
750760 else throw("Strict value is not equal to itself.")
751761 }
752762 else throw("Strict value is not equal to itself.")
753763 }
754764 else throw("Strict value is not equal to itself.")
755765 }
756766 else throw("Strict value is not equal to itself.")
757767 }
758768 else throw("Strict value is not equal to itself.")
759769 }
760770
761771
762772
763-@Callable(dv)
764-func putForFree (ff) = if ((0 > ff))
773+@Callable(dz)
774+func putForFree (fj) = if ((0 > fj))
765775 then throw("Invalid value passed")
766776 else {
767- let dB = dy(dv, ff, false)
768- let co = dB._9
769- let fg = da(0, 0, 0)
770- let fd = fg._1
771- let cZ = fg._2
772- let fe = di(cZ)
773- if ((fe == fe))
774- then (co ++ fd)
777+ let dF = dC(dz, fj, false)
778+ let co = dF._9
779+ let dD = toBigInt(value(dz.payments[0]).amount)
780+ let dE = toBigInt(value(dz.payments[1]).amount)
781+ let dh = da(dD, dE, toBigInt(0))
782+ if ((dh == dh))
783+ then {
784+ let fk = di(0, 0, 0)
785+ let fh = fk._1
786+ let cZ = fk._2
787+ let fi = dm(dh, cZ)
788+ if ((fi == fi))
789+ then (co ++ fh)
790+ else throw("Strict value is not equal to itself.")
791+ }
775792 else throw("Strict value is not equal to itself.")
776793 }
777794
778795
779796
780-@Callable(dv)
781-func putOneTkn (fh,fi) = {
782- let fj = {
783- let fk = invoke(aJ, "isPoolOneTokenOperationsDisabledREADONLY", [toString(this)], nil)
784- if ($isInstanceOf(fk, "Boolean"))
785- then fk
786- else throw(($getType(fk) + " couldn't be cast to Boolean"))
797+@Callable(dz)
798+func putOneTkn (fl,fm) = {
799+ let fn = {
800+ let fo = invoke(aJ, "isPoolOneTokenOperationsDisabledREADONLY", [toString(this)], nil)
801+ if ($isInstanceOf(fo, "Boolean"))
802+ then fo
803+ else throw(($getType(fo) + " couldn't be cast to Boolean"))
787804 }
788- let fl = if (if (if (aL())
805+ let fp = if (if (if (aL())
789806 then true
790807 else (aY == l))
791808 then true
792809 else (aY == n))
793810 then true
794- else fj
795- let er = [if (if (!(fl))
811+ else fn
812+ let ev = [if (if (!(fp))
796813 then true
797- else eL(dv))
814+ else eP(dz))
798815 then true
799- else aG("put operation is blocked by admin"), if ((size(dv.payments) == 1))
816+ else aG("put operation is blocked by admin"), if ((size(dz.payments) == 1))
800817 then true
801818 else aG("exactly 1 payment are expected")]
802- if ((er == er))
819+ if ((ev == ev))
803820 then {
804- let fm = dv.payments[0]
805- let dM = fm.assetId
806- let dL = fm.amount
807- let X = dv.caller
808- let Y = dv.transactionId
809- let fn = dK(dL, dM, X, Y)
810- if ((fn == fn))
821+ let fq = dz.payments[0]
822+ let dQ = fq.assetId
823+ let dP = fq.amount
824+ let dh = if ((dQ == ba))
825+ then da(toBigInt(dP), toBigInt(0), toBigInt(0))
826+ else if ((dQ == bb))
827+ then da(toBigInt(0), toBigInt(dP), toBigInt(0))
828+ else aG("payment asset is not supported")
829+ let X = dz.caller
830+ let Y = dz.transactionId
831+ let fr = dO(dP, dQ, X, Y)
832+ if ((fr == fr))
811833 then {
812- let dQ = fn._5
813- let fo = fn._4
814- let dJ = fn._3
815- let cV = fn._2
816- let fp = fn._1
817- let fq = if (if ((fh > 0))
818- then (fh > fp)
834+ let dU = fr._5
835+ let fs = fr._4
836+ let dN = fr._3
837+ let cV = fr._2
838+ let ft = fr._1
839+ let fu = if (if ((fl > 0))
840+ then (fl > ft)
819841 else false)
820- then aG(makeString(["amount to receive is less than ", toString(fh)], ""))
821- else fp
822- let dE = dC(fq)
823- if ((dE == dE))
842+ then aG(makeString(["amount to receive is less than ", toString(fl)], ""))
843+ else ft
844+ let dI = dG(fu)
845+ if ((dI == dI))
824846 then {
825- let fa = if (fi)
847+ let fe = if (fm)
826848 then {
827- let fr = invoke(bf, "stake", nil, [AttachedPayment(aZ, fq)])
828- if ((fr == fr))
849+ let fv = invoke(bf, "stake", nil, [AttachedPayment(aZ, fu)])
850+ if ((fv == fv))
829851 then nil
830852 else throw("Strict value is not equal to itself.")
831853 }
832- else [ScriptTransfer(dv.caller, fq, aZ)]
833- let fs = if ((dJ > 0))
834- then [ScriptTransfer(aK, dJ, dM)]
854+ else [ScriptTransfer(dz.caller, fu, aZ)]
855+ let fw = if ((dN > 0))
856+ then [ScriptTransfer(aK, dN, dQ)]
835857 else nil
836- let ft = if ((this == aK))
858+ let fx = if ((this == aK))
837859 then $Tuple2(0, 0)
838- else if (dQ)
839- then $Tuple2(-(dJ), 0)
840- else $Tuple2(0, -(dJ))
841- let db = ft._1
842- let dc = ft._2
843- let fu = da(db, dc, 0)
844- let fd = fu._1
845- let cZ = fu._2
846- let fe = di(cZ)
847- if ((fe == fe))
848- then $Tuple2((((cV ++ fa) ++ fs) ++ fd), fq)
860+ else if (dU)
861+ then $Tuple2(-(dN), 0)
862+ else $Tuple2(0, -(dN))
863+ let dj = fx._1
864+ let dk = fx._2
865+ let fy = di(dj, dk, 0)
866+ let fh = fy._1
867+ let cZ = fy._2
868+ let fi = dm(dh, cZ)
869+ if ((fi == fi))
870+ then $Tuple2((((cV ++ fe) ++ fw) ++ fh), fu)
849871 else throw("Strict value is not equal to itself.")
850872 }
851873 else throw("Strict value is not equal to itself.")
852874 }
853875 else throw("Strict value is not equal to itself.")
854876 }
855877 else throw("Strict value is not equal to itself.")
856878 }
857879
858880
859881
860-@Callable(dv)
861-func putOneTknREADONLY (dM,dL) = {
862- let fv = dK(dL, aQ(dM), unit, unit)
863- let fp = fv._1
864- let cV = fv._2
865- let dJ = fv._3
866- let fo = fv._4
867- let dQ = fv._5
868- $Tuple2(nil, $Tuple3(fp, dJ, fo))
882+@Callable(dz)
883+func putOneTknREADONLY (dQ,dP) = {
884+ let fz = dO(dP, aQ(dQ), unit, unit)
885+ let ft = fz._1
886+ let cV = fz._2
887+ let dN = fz._3
888+ let fs = fz._4
889+ let dU = fz._5
890+ $Tuple2(nil, $Tuple3(ft, dN, fs))
869891 }
870892
871893
872894
873-@Callable(dv)
874-func getOneTkn (fw,fh) = {
875- let fj = {
876- let fk = invoke(aJ, "isPoolOneTokenOperationsDisabledREADONLY", [toString(this)], nil)
877- if ($isInstanceOf(fk, "Boolean"))
878- then fk
879- else throw(($getType(fk) + " couldn't be cast to Boolean"))
895+@Callable(dz)
896+func getOneTkn (fA,fl) = {
897+ let fn = {
898+ let fo = invoke(aJ, "isPoolOneTokenOperationsDisabledREADONLY", [toString(this)], nil)
899+ if ($isInstanceOf(fo, "Boolean"))
900+ then fo
901+ else throw(($getType(fo) + " couldn't be cast to Boolean"))
880902 }
881- let fx = if (if (aL())
903+ let fB = if (if (aL())
882904 then true
883905 else (aY == n))
884906 then true
885- else fj
886- let er = [if (if (!(fx))
907+ else fn
908+ let ev = [if (if (!(fB))
887909 then true
888- else eL(dv))
910+ else eP(dz))
889911 then true
890- else aG("get operation is blocked by admin"), if ((size(dv.payments) == 1))
912+ else aG("get operation is blocked by admin"), if ((size(dz.payments) == 1))
891913 then true
892914 else aG("exactly 1 payment are expected")]
893- if ((er == er))
915+ if ((ev == ev))
894916 then {
895- let eq = aQ(fw)
896- let fm = dv.payments[0]
897- let dM = fm.assetId
898- let dY = fm.amount
899- let X = dv.caller
900- let Y = dv.transactionId
901- let fy = ep(eq, dY, dM, X, Y)
902- if ((fy == fy))
917+ let eu = aQ(fA)
918+ let fq = dz.payments[0]
919+ let dQ = fq.assetId
920+ let ec = fq.amount
921+ let dh = da(toBigInt(0), toBigInt(0), toBigInt(ec))
922+ let X = dz.caller
923+ let Y = dz.transactionId
924+ let fC = et(eu, ec, dQ, X, Y)
925+ if ((fC == fC))
903926 then {
904- let es = fy._5
905- let fo = fy._4
906- let dJ = fy._3
907- let cV = fy._2
908- let fz = fy._1
909- let dD = if (if ((fh > 0))
910- then (fh > fz)
927+ let ew = fC._5
928+ let fs = fC._4
929+ let dN = fC._3
930+ let cV = fC._2
931+ let fD = fC._1
932+ let dH = if (if ((fl > 0))
933+ then (fl > fD)
911934 else false)
912- then aG(makeString(["amount to receive is less than ", toString(fh)], ""))
913- else fz
914- let fA = invoke(aJ, "burn", [dY], [AttachedPayment(dM, dY)])
915- if ((fA == fA))
935+ then aG(makeString(["amount to receive is less than ", toString(fl)], ""))
936+ else fD
937+ let fE = invoke(aJ, "burn", [ec], [AttachedPayment(dQ, ec)])
938+ if ((fE == fE))
916939 then {
917- let fB = [ScriptTransfer(X, dD, eq)]
918- let fs = if ((dJ > 0))
919- then [ScriptTransfer(aK, dJ, eq)]
940+ let fF = [ScriptTransfer(X, dH, eu)]
941+ let fw = if ((dN > 0))
942+ then [ScriptTransfer(aK, dN, eu)]
920943 else nil
921- let fC = {
922- let fD = if ((this == aK))
944+ let fG = {
945+ let fH = if ((this == aK))
923946 then 0
924- else dJ
925- if (es)
926- then $Tuple2(-((dD + fD)), 0)
927- else $Tuple2(0, -((dD + fD)))
947+ else dN
948+ if (ew)
949+ then $Tuple2(-((dH + fH)), 0)
950+ else $Tuple2(0, -((dH + fH)))
928951 }
929- let db = fC._1
930- let dc = fC._2
931- let fE = da(db, dc, 0)
932- let fd = fE._1
933- let cZ = fE._2
934- let fe = di(cZ)
935- if ((fe == fe))
936- then $Tuple2((((cV ++ fB) ++ fs) ++ fd), dD)
952+ let dj = fG._1
953+ let dk = fG._2
954+ let fI = di(dj, dk, 0)
955+ let fh = fI._1
956+ let cZ = fI._2
957+ let fi = dm(dh, cZ)
958+ if ((fi == fi))
959+ then $Tuple2((((cV ++ fF) ++ fw) ++ fh), dH)
937960 else throw("Strict value is not equal to itself.")
938961 }
939962 else throw("Strict value is not equal to itself.")
940963 }
941964 else throw("Strict value is not equal to itself.")
942965 }
943966 else throw("Strict value is not equal to itself.")
944967 }
945968
946969
947970
948-@Callable(dv)
949-func getOneTknREADONLY (eq,dY) = {
950- let fF = ep(aQ(eq), dY, aZ, unit, unit)
951- let fz = fF._1
952- let cV = fF._2
953- let dJ = fF._3
954- let fo = fF._4
955- let es = fF._5
956- $Tuple2(nil, $Tuple3(fz, dJ, fo))
971+@Callable(dz)
972+func getOneTknREADONLY (eu,ec) = {
973+ let fJ = et(aQ(eu), ec, aZ, unit, unit)
974+ let fD = fJ._1
975+ let cV = fJ._2
976+ let dN = fJ._3
977+ let fs = fJ._4
978+ let ew = fJ._5
979+ $Tuple2(nil, $Tuple3(fD, dN, fs))
957980 }
958981
959982
960983
961-@Callable(dv)
962-func unstakeAndGetOneTkn (fG,fw,fh) = {
963- let fj = {
964- let fk = invoke(aJ, "isPoolOneTokenOperationsDisabledREADONLY", [toString(this)], nil)
965- if ($isInstanceOf(fk, "Boolean"))
966- then fk
967- else throw(($getType(fk) + " couldn't be cast to Boolean"))
984+@Callable(dz)
985+func unstakeAndGetOneTkn (fK,fA,fl) = {
986+ let fn = {
987+ let fo = invoke(aJ, "isPoolOneTokenOperationsDisabledREADONLY", [toString(this)], nil)
988+ if ($isInstanceOf(fo, "Boolean"))
989+ then fo
990+ else throw(($getType(fo) + " couldn't be cast to Boolean"))
968991 }
969- let fx = if (if (aL())
992+ let fB = if (if (aL())
970993 then true
971994 else (aY == n))
972995 then true
973- else fj
974- let er = [if (if (!(fx))
996+ else fn
997+ let ev = [if (if (!(fB))
975998 then true
976- else eL(dv))
999+ else eP(dz))
9771000 then true
978- else aG("get operation is blocked by admin"), if ((size(dv.payments) == 0))
1001+ else aG("get operation is blocked by admin"), if ((size(dz.payments) == 0))
9791002 then true
9801003 else aG("no payments are expected")]
981- if ((er == er))
1004+ if ((ev == ev))
9821005 then {
983- let eq = aQ(fw)
984- let X = dv.caller
985- let Y = dv.transactionId
986- let fH = invoke(bf, "unstake", [toBase58String(aZ), fG], nil)
987- if ((fH == fH))
1006+ let eu = aQ(fA)
1007+ let X = dz.caller
1008+ let Y = dz.transactionId
1009+ let dh = da(toBigInt(0), toBigInt(0), toBigInt(0))
1010+ let fL = invoke(bf, "unstake", [toBase58String(aZ), fK], nil)
1011+ if ((fL == fL))
9881012 then {
989- let fI = ep(eq, fG, aZ, X, Y)
990- if ((fI == fI))
1013+ let fM = et(eu, fK, aZ, X, Y)
1014+ if ((fM == fM))
9911015 then {
992- let es = fI._5
993- let fo = fI._4
994- let dJ = fI._3
995- let cV = fI._2
996- let fz = fI._1
997- let dD = if (if ((fh > 0))
998- then (fh > fz)
1016+ let ew = fM._5
1017+ let fs = fM._4
1018+ let dN = fM._3
1019+ let cV = fM._2
1020+ let fD = fM._1
1021+ let dH = if (if ((fl > 0))
1022+ then (fl > fD)
9991023 else false)
1000- then aG(makeString(["amount to receive is less than ", toString(fh)], ""))
1001- else fz
1002- let fA = invoke(aJ, "burn", [fG], [AttachedPayment(aZ, fG)])
1003- if ((fA == fA))
1024+ then aG(makeString(["amount to receive is less than ", toString(fl)], ""))
1025+ else fD
1026+ let fE = invoke(aJ, "burn", [fK], [AttachedPayment(aZ, fK)])
1027+ if ((fE == fE))
10041028 then {
1005- let fB = [ScriptTransfer(dv.caller, dD, eq)]
1006- let fs = if ((dJ > 0))
1007- then [ScriptTransfer(aK, dJ, eq)]
1029+ let fF = [ScriptTransfer(dz.caller, dH, eu)]
1030+ let fw = if ((dN > 0))
1031+ then [ScriptTransfer(aK, dN, eu)]
10081032 else nil
1009- let fJ = {
1010- let fD = if ((this == aK))
1033+ let fN = {
1034+ let fH = if ((this == aK))
10111035 then 0
1012- else dJ
1013- if (es)
1014- then $Tuple2(-((dD + fD)), 0)
1015- else $Tuple2(0, -((dD + fD)))
1036+ else dN
1037+ if (ew)
1038+ then $Tuple2(-((dH + fH)), 0)
1039+ else $Tuple2(0, -((dH + fH)))
10161040 }
1017- let db = fJ._1
1018- let dc = fJ._2
1019- let fK = da(db, dc, 0)
1020- let fd = fK._1
1021- let cZ = fK._2
1022- let fe = di(cZ)
1023- if ((fe == fe))
1024- then $Tuple2((((cV ++ fB) ++ fs) ++ fd), dD)
1041+ let dj = fN._1
1042+ let dk = fN._2
1043+ let fO = di(dj, dk, 0)
1044+ let fh = fO._1
1045+ let cZ = fO._2
1046+ let fi = dm(dh, cZ)
1047+ if ((fi == fi))
1048+ then $Tuple2((((cV ++ fF) ++ fw) ++ fh), dH)
10251049 else throw("Strict value is not equal to itself.")
10261050 }
10271051 else throw("Strict value is not equal to itself.")
10281052 }
10291053 else throw("Strict value is not equal to itself.")
10301054 }
10311055 else throw("Strict value is not equal to itself.")
10321056 }
10331057 else throw("Strict value is not equal to itself.")
10341058 }
10351059
10361060
10371061
1038-@Callable(dv)
1062+@Callable(dz)
10391063 func get () = {
1040- let cG = du(dv)
1041- let fL = cG._1
1064+ let cG = dy(dz)
1065+ let fP = cG._1
10421066 let cn = cG._2
1043- let dx = cG._3
1067+ let dB = cG._3
10441068 let bV = cG._4
10451069 let co = cG._5
1046- let fM = invoke(aJ, "burn", [dx], [AttachedPayment(bV, dx)])
1047- if ((fM == fM))
1070+ let dh = da(toBigInt(0), toBigInt(0), toBigInt(dB))
1071+ let fQ = invoke(aJ, "burn", [dB], [AttachedPayment(bV, dB)])
1072+ if ((fQ == fQ))
10481073 then {
1049- let fN = da(-(fL), -(cn), 0)
1050- let fd = fN._1
1051- let cZ = fN._2
1052- let fe = di(cZ)
1053- if ((fe == fe))
1054- then (co ++ fd)
1074+ let fR = di(-(fP), -(cn), 0)
1075+ let fh = fR._1
1076+ let cZ = fR._2
1077+ let fi = dm(dh, cZ)
1078+ if ((fi == fi))
1079+ then (co ++ fh)
10551080 else throw("Strict value is not equal to itself.")
10561081 }
10571082 else throw("Strict value is not equal to itself.")
10581083 }
10591084
10601085
10611086
1062-@Callable(dv)
1063-func getNoLess (fO,fP) = {
1064- let cG = du(dv)
1087+@Callable(dz)
1088+func getNoLess (fS,fT) = {
1089+ let cG = dy(dz)
10651090 let cm = cG._1
10661091 let cn = cG._2
1067- let dx = cG._3
1092+ let dB = cG._3
10681093 let bV = cG._4
10691094 let co = cG._5
1070- if ((fO > cm))
1071- then throw(((("noLessThenAmtAsset failed: " + toString(cm)) + " < ") + toString(fO)))
1072- else if ((fP > cn))
1073- then throw(((("noLessThenPriceAsset failed: " + toString(cn)) + " < ") + toString(fP)))
1095+ if ((fS > cm))
1096+ then throw(((("noLessThenAmtAsset failed: " + toString(cm)) + " < ") + toString(fS)))
1097+ else if ((fT > cn))
1098+ then throw(((("noLessThenPriceAsset failed: " + toString(cn)) + " < ") + toString(fT)))
10741099 else {
1075- let fM = invoke(aJ, "burn", [dx], [AttachedPayment(bV, dx)])
1076- if ((fM == fM))
1100+ let dh = da(toBigInt(0), toBigInt(0), toBigInt(dB))
1101+ let fQ = invoke(aJ, "burn", [dB], [AttachedPayment(bV, dB)])
1102+ if ((fQ == fQ))
10771103 then {
1078- let fQ = da(-(cm), -(cn), 0)
1079- let fd = fQ._1
1080- let cZ = fQ._2
1081- let fe = di(cZ)
1082- if ((fe == fe))
1083- then (co ++ fd)
1104+ let fU = di(-(cm), -(cn), 0)
1105+ let fh = fU._1
1106+ let cZ = fU._2
1107+ let fi = dm(dh, cZ)
1108+ if ((fi == fi))
1109+ then (co ++ fh)
10841110 else throw("Strict value is not equal to itself.")
10851111 }
10861112 else throw("Strict value is not equal to itself.")
10871113 }
10881114 }
10891115
10901116
10911117
1092-@Callable(dv)
1093-func unstakeAndGet (dD) = {
1094- let fR = if ((size(dv.payments) != 0))
1118+@Callable(dz)
1119+func unstakeAndGet (dH) = {
1120+ let fV = if ((size(dz.payments) != 0))
10951121 then throw("No payments are expected")
10961122 else true
1097- if ((fR == fR))
1123+ if ((fV == fV))
10981124 then {
10991125 let bK = aN()
11001126 let bX = fromBase58String(bK[q])
1101- let fH = invoke(bf, "unstake", [toBase58String(bX), dD], nil)
1102- if ((fH == fH))
1127+ let dh = da(toBigInt(0), toBigInt(0), toBigInt(0))
1128+ let fL = invoke(bf, "unstake", [toBase58String(bX), dH], nil)
1129+ if ((fL == fL))
11031130 then {
1104- let cG = bT(toBase58String(dv.transactionId), toBase58String(bX), dD, dv.caller)
1131+ let cG = bT(toBase58String(dz.transactionId), toBase58String(bX), dH, dz.caller)
11051132 let cm = cG._1
11061133 let cn = cG._2
11071134 let ca = parseIntValue(cG._9)
11081135 let co = cG._10
1109- let fS = if (if (aL())
1136+ let fW = if (if (aL())
11101137 then true
11111138 else (ca == n))
11121139 then throw(("Get operation is blocked by admin. Status = " + toString(ca)))
11131140 else true
1114- if ((fS == fS))
1141+ if ((fW == fW))
11151142 then {
1116- let fM = invoke(aJ, "burn", [dD], [AttachedPayment(bX, dD)])
1117- if ((fM == fM))
1143+ let fQ = invoke(aJ, "burn", [dH], [AttachedPayment(bX, dH)])
1144+ if ((fQ == fQ))
11181145 then {
1119- let fT = da(-(cm), -(cn), 0)
1120- let fd = fT._1
1121- let cZ = fT._2
1122- let fe = di(cZ)
1123- if ((fe == fe))
1124- then (co ++ fd)
1146+ let fX = di(-(cm), -(cn), 0)
1147+ let fh = fX._1
1148+ let cZ = fX._2
1149+ let fi = dm(dh, cZ)
1150+ if ((fi == fi))
1151+ then (co ++ fh)
11251152 else throw("Strict value is not equal to itself.")
11261153 }
11271154 else throw("Strict value is not equal to itself.")
11281155 }
11291156 else throw("Strict value is not equal to itself.")
11301157 }
11311158 else throw("Strict value is not equal to itself.")
11321159 }
11331160 else throw("Strict value is not equal to itself.")
11341161 }
11351162
11361163
11371164
1138-@Callable(dv)
1139-func unstakeAndGetNoLess (fG,fU,fP) = {
1140- let fx = if (aL())
1165+@Callable(dz)
1166+func unstakeAndGetNoLess (fK,fY,fT) = {
1167+ let fB = if (aL())
11411168 then true
11421169 else (aY == n)
1143- let er = [if (!(fx))
1170+ let ev = [if (!(fB))
11441171 then true
1145- else throw("get operation is blocked by admin"), if ((size(dv.payments) == 0))
1172+ else throw("get operation is blocked by admin"), if ((size(dz.payments) == 0))
11461173 then true
11471174 else throw("no payments are expected")]
1148- if ((er == er))
1175+ if ((ev == ev))
11491176 then {
1150- let fH = invoke(bf, "unstake", [toBase58String(aZ), fG], nil)
1151- if ((fH == fH))
1177+ let dh = da(toBigInt(0), toBigInt(0), toBigInt(0))
1178+ let fL = invoke(bf, "unstake", [toBase58String(aZ), fK], nil)
1179+ if ((fL == fL))
11521180 then {
1153- let cG = bT(toBase58String(dv.transactionId), toBase58String(aZ), fG, dv.caller)
1181+ let cG = bT(toBase58String(dz.transactionId), toBase58String(aZ), fK, dz.caller)
11541182 let cm = cG._1
11551183 let cn = cG._2
11561184 let co = cG._10
1157- let fV = [if ((cm >= fU))
1185+ let fZ = [if ((cm >= fY))
11581186 then true
1159- else throw(makeString(["amount asset amount to receive is less than ", toString(fU)], "")), if ((cn >= fP))
1187+ else throw(makeString(["amount asset amount to receive is less than ", toString(fY)], "")), if ((cn >= fT))
11601188 then true
1161- else throw(makeString(["price asset amount to receive is less than ", toString(fP)], ""))]
1162- if ((fV == fV))
1189+ else throw(makeString(["price asset amount to receive is less than ", toString(fT)], ""))]
1190+ if ((fZ == fZ))
11631191 then {
1164- let fM = invoke(aJ, "burn", [fG], [AttachedPayment(aZ, fG)])
1165- if ((fM == fM))
1192+ let fQ = invoke(aJ, "burn", [fK], [AttachedPayment(aZ, fK)])
1193+ if ((fQ == fQ))
11661194 then {
1167- let fW = da(-(cm), -(cn), 0)
1168- let fd = fW._1
1169- let cZ = fW._2
1170- let fe = di(cZ)
1171- if ((fe == fe))
1172- then (co ++ fd)
1195+ let ga = di(-(cm), -(cn), 0)
1196+ let fh = ga._1
1197+ let cZ = ga._2
1198+ let fi = dm(dh, cZ)
1199+ if ((fi == fi))
1200+ then (co ++ fh)
11731201 else throw("Strict value is not equal to itself.")
11741202 }
11751203 else throw("Strict value is not equal to itself.")
11761204 }
11771205 else throw("Strict value is not equal to itself.")
11781206 }
11791207 else throw("Strict value is not equal to itself.")
11801208 }
11811209 else throw("Strict value is not equal to itself.")
11821210 }
11831211
11841212
11851213
1186-@Callable(dv)
1187-func activate (fX,fY) = if ((toString(dv.caller) != toString(aJ)))
1214+@Callable(dz)
1215+func activate (gb,gc) = if ((toString(dz.caller) != toString(aJ)))
11881216 then throw("permissions denied")
1189- else $Tuple2([StringEntry(aa(), fX), StringEntry(ab(), fY)], "success")
1217+ else $Tuple2([StringEntry(aa(), gb), StringEntry(ab(), gc)], "success")
11901218
11911219
11921220
1193-@Callable(dv)
1221+@Callable(dz)
11941222 func refreshKLp () = {
1195- let fZ = valueOrElse(getInteger(ag), 0)
1196- let ga = if (((height - fZ) >= aj))
1223+ let gd = valueOrElse(getInteger(ag), 0)
1224+ let ge = if (((height - gd) >= aj))
11971225 then unit
11981226 else aG(makeString([toString(aj), " blocks have not passed since the previous call"], ""))
1199- if ((ga == ga))
1227+ if ((ge == ge))
12001228 then {
1201- let dp = valueOrErrorMessage(parseBigInt(valueOrElse(getString(this, af), "0")), aI("invalid kLp"))
1202- let gb = da(0, 0, 0)
1203- let gc = gb._1
1204- let cZ = gb._2
1205- let dh = if ((dp != cZ))
1206- then gc
1229+ let dt = valueOrErrorMessage(parseBigInt(valueOrElse(getString(this, af), "0")), aI("invalid kLp"))
1230+ let gf = di(0, 0, 0)
1231+ let gg = gf._1
1232+ let cZ = gf._2
1233+ let dl = if ((dt != cZ))
1234+ then gg
12071235 else aG("nothing to refresh")
1208- $Tuple2(dh, toString(cZ))
1236+ $Tuple2(dl, toString(cZ))
12091237 }
12101238 else throw("Strict value is not equal to itself.")
12111239 }
12121240
12131241
12141242
1215-@Callable(dv)
1243+@Callable(dz)
12161244 func getPoolConfigWrapperREADONLY () = $Tuple2(nil, aN())
12171245
12181246
12191247
1220-@Callable(dv)
1248+@Callable(dz)
12211249 func getAccBalanceWrapperREADONLY (bx) = $Tuple2(nil, bw(bx))
12221250
12231251
12241252
1225-@Callable(dv)
1253+@Callable(dz)
12261254 func calcPricesWrapperREADONLY (bE,bF,bJ) = {
12271255 let bS = bI(bE, bF, bJ)
12281256 $Tuple2(nil, [toString(bS[0]), toString(bS[1]), toString(bS[2])])
12291257 }
12301258
12311259
12321260
1233-@Callable(dv)
1261+@Callable(dz)
12341262 func toX18WrapperREADONLY (E,F) = $Tuple2(nil, toString(D(E, F)))
12351263
12361264
12371265
1238-@Callable(dv)
1266+@Callable(dz)
12391267 func fromX18WrapperREADONLY (H,I) = $Tuple2(nil, G(parseBigIntValue(H), I))
12401268
12411269
12421270
1243-@Callable(dv)
1271+@Callable(dz)
12441272 func calcPriceBigIntWrapperREADONLY (bz,bA) = $Tuple2(nil, toString(by(parseBigIntValue(bz), parseBigIntValue(bA))))
12451273
12461274
12471275
1248-@Callable(dv)
1276+@Callable(dz)
12491277 func estimatePutOperationWrapperREADONLY (bU,cq,cr,cs,ct,cu,X,cv,cw) = $Tuple2(nil, cp(bU, cq, cr, cs, ct, cu, X, cv, cw))
12501278
12511279
12521280
1253-@Callable(dv)
1281+@Callable(dz)
12541282 func estimateGetOperationWrapperREADONLY (bU,bV,bW,X) = {
12551283 let cG = bT(bU, bV, bW, addressFromStringValue(X))
12561284 $Tuple2(nil, $Tuple10(cG._1, cG._2, cG._3, cG._4, cG._5, cG._6, cG._7, toString(cG._8), cG._9, cG._10))
12571285 }
12581286
12591287
12601288
1261-@Callable(dv)
1289+@Callable(dz)
12621290 func statsREADONLY () = {
12631291 let bK = aN()
12641292 let bX = fromBase58String(bK[q])
1265- let gd = bK[r]
1266- let ge = bK[s]
1293+ let gh = bK[r]
1294+ let gi = bK[s]
12671295 let cz = bK[v]
12681296 let cA = bK[w]
12691297 let bL = parseIntValue(bK[t])
12701298 let bM = parseIntValue(bK[u])
1271- let gf = valueOrErrorMessage(assetInfo(bX), (("Asset " + toBase58String(bX)) + " doesn't exist")).quantity
1272- let gg = bw(gd)
1273- let gh = bw(ge)
1274- let gi = if ((gf == 0))
1299+ let gj = valueOrErrorMessage(assetInfo(bX), (("Asset " + toBase58String(bX)) + " doesn't exist")).quantity
1300+ let gk = bw(gh)
1301+ let gl = bw(gi)
1302+ let gm = if ((gj == 0))
12751303 then [e, e, e]
1276- else bI(gg, gh, gf)
1304+ else bI(gk, gl, gj)
12771305 let ch = 0
1278- let gj = G(gi[1], b)
1279- let gk = G(gi[2], b)
1280- let gl = value(getInteger(aJ, au(toString(this))))
1281- $Tuple2(nil, makeString(["%d%d%d%d%d%d%d", toString(gg), toString(gh), toString(gf), toString(ch), toString(gj), toString(gk), toString(gl)], j))
1306+ let gn = G(gm[1], b)
1307+ let go = G(gm[2], b)
1308+ let gp = value(getInteger(aJ, au(toString(this))))
1309+ $Tuple2(nil, makeString(["%d%d%d%d%d%d%d", toString(gk), toString(gl), toString(gj), toString(ch), toString(gn), toString(go), toString(gp)], j))
12821310 }
12831311
12841312
12851313
1286-@Callable(dv)
1314+@Callable(dz)
12871315 func evaluatePutByAmountAssetREADONLY (cr) = {
12881316 let bK = aN()
12891317 let bX = fromBase58String(bK[q])
12901318 let cx = bK[r]
12911319 let bY = fromBase58String(cx)
12921320 let cy = bK[s]
12931321 let bZ = fromBase58String(cy)
12941322 let bL = parseIntValue(bK[t])
12951323 let bM = parseIntValue(bK[u])
12961324 let ca = bK[p]
1297- let gf = valueOrErrorMessage(assetInfo(bX), (("Asset " + toBase58String(bX)) + " doesn't exist")).quantity
1298- let gg = bw(cx)
1299- let gh = bw(cy)
1300- let bG = D(gg, bL)
1301- let bH = D(gh, bM)
1302- let cg = if ((gf == 0))
1325+ let gj = valueOrErrorMessage(assetInfo(bX), (("Asset " + toBase58String(bX)) + " doesn't exist")).quantity
1326+ let gk = bw(cx)
1327+ let gl = bw(cy)
1328+ let bG = D(gk, bL)
1329+ let bH = D(gl, bM)
1330+ let cg = if ((gj == 0))
13031331 then e
13041332 else by(bH, bG)
13051333 let cD = D(cr, bL)
13061334 let cE = fraction(cD, cg, d)
13071335 let ct = G(cE, bM)
1308- let dB = cp("", 500000, cr, bY, ct, bZ, "", true, false)
1309- let cO = dB._1
1310- let gm = dB._3
1311- let cc = dB._4
1312- let ce = dB._5
1313- let cb = dB._6
1336+ let dF = cp("", 500000, cr, bY, ct, bZ, "", true, false)
1337+ let cO = dF._1
1338+ let gq = dF._3
1339+ let cc = dF._4
1340+ let ce = dF._5
1341+ let cb = dF._6
13141342 $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))
13151343 }
13161344
13171345
13181346
1319-@Callable(dv)
1347+@Callable(dz)
13201348 func evaluatePutByPriceAssetREADONLY (ct) = {
13211349 let bK = aN()
13221350 let bX = fromBase58String(bK[q])
13231351 let cx = bK[r]
13241352 let bY = fromBase58String(cx)
13251353 let cy = bK[s]
13261354 let bZ = fromBase58String(cy)
13271355 let bL = parseIntValue(bK[t])
13281356 let bM = parseIntValue(bK[u])
13291357 let ca = bK[p]
1330- let gf = valueOrErrorMessage(assetInfo(bX), (("Asset " + toBase58String(bX)) + " doesn't exist")).quantity
1331- let gn = bw(cx)
1332- let go = bw(cy)
1333- let gp = D(gn, bL)
1334- let gq = D(go, bM)
1335- let cg = if ((gf == 0))
1358+ let gj = valueOrErrorMessage(assetInfo(bX), (("Asset " + toBase58String(bX)) + " doesn't exist")).quantity
1359+ let gr = bw(cx)
1360+ let gs = bw(cy)
1361+ let gt = D(gr, bL)
1362+ let gu = D(gs, bM)
1363+ let cg = if ((gj == 0))
13361364 then e
1337- else by(gq, gp)
1365+ else by(gu, gt)
13381366 let cE = D(ct, bM)
13391367 let cD = fraction(cE, d, cg)
13401368 let cr = G(cD, bL)
1341- let dB = cp("", 500000, cr, bY, ct, bZ, "", true, false)
1342- let cO = dB._1
1343- let gm = dB._3
1344- let cc = dB._4
1345- let ce = dB._5
1346- let cb = dB._6
1369+ let dF = cp("", 500000, cr, bY, ct, bZ, "", true, false)
1370+ let cO = dF._1
1371+ let gq = dF._3
1372+ let cc = dF._4
1373+ let ce = dF._5
1374+ let cb = dF._6
13471375 $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))
13481376 }
13491377
13501378
13511379
1352-@Callable(dv)
1353-func evaluateGetREADONLY (gr,gs) = {
1354- let cG = bT("", gr, gs, this)
1380+@Callable(dz)
1381+func evaluateGetREADONLY (gv,gw) = {
1382+ let cG = bT("", gv, gw, this)
13551383 let cm = cG._1
13561384 let cn = cG._2
13571385 let cc = cG._5
13581386 let ce = cG._6
13591387 let cb = cG._7
13601388 let ch = cG._8
13611389 let ca = parseIntValue(cG._9)
13621390 $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))
13631391 }
13641392
13651393
1366-@Verifier(gt)
1367-func gu () = {
1368- let gv = {
1369- let dG = eI()
1370- if ($isInstanceOf(dG, "ByteVector"))
1394+@Verifier(gx)
1395+func gy () = {
1396+ let gz = {
1397+ let dK = eM()
1398+ if ($isInstanceOf(dK, "ByteVector"))
13711399 then {
1372- let eM = dG
1373- eM
1400+ let eQ = dK
1401+ eQ
13741402 }
1375- else if ($isInstanceOf(dG, "Unit"))
1376- then gt.senderPublicKey
1403+ else if ($isInstanceOf(dK, "Unit"))
1404+ then gx.senderPublicKey
13771405 else throw("Match error")
13781406 }
1379- let dG = gt
1380- if ($isInstanceOf(dG, "Order"))
1407+ let dK = gx
1408+ if ($isInstanceOf(dK, "Order"))
13811409 then {
1382- let dl = dG
1383- let gw = aM()
1384- let az = dk(dl)
1385- let aA = sigVerify(dl.bodyBytes, dl.proofs[0], dl.senderPublicKey)
1386- let aB = sigVerify(dl.bodyBytes, dl.proofs[1], gw)
1410+ let dp = dK
1411+ let gA = aM()
1412+ let az = do(dp)
1413+ let aA = sigVerify(dp.bodyBytes, dp.proofs[0], dp.senderPublicKey)
1414+ let aB = sigVerify(dp.bodyBytes, dp.proofs[1], gA)
13871415 if (if (if (az)
13881416 then aA
13891417 else false)
13901418 then aB
13911419 else false)
13921420 then true
13931421 else ay(az, aA, aB)
13941422 }
1395- else if ($isInstanceOf(dG, "SetScriptTransaction"))
1423+ else if ($isInstanceOf(dK, "SetScriptTransaction"))
13961424 then {
1397- let eJ = dG
1398- let gx = blake2b256(value(eJ.script))
1399- let gy = fromBase64String(value(getString(aJ, aw())))
1400- let gz = scriptHash(this)
1401- if (if ((gy == gx))
1402- then (gz != gx)
1425+ let eN = dK
1426+ let gB = blake2b256(value(eN.script))
1427+ let gC = fromBase64String(value(getString(aJ, aw())))
1428+ let gD = scriptHash(this)
1429+ if (if ((gC == gB))
1430+ then (gD != gB)
14031431 else false)
14041432 then true
1405- else sigVerify(gt.bodyBytes, gt.proofs[0], gv)
1433+ else sigVerify(gx.bodyBytes, gx.proofs[0], gz)
14061434 }
1407- else sigVerify(gt.bodyBytes, gt.proofs[0], gv)
1435+ else sigVerify(gx.bodyBytes, gx.proofs[0], gz)
14081436 }
14091437

github/deemru/w8io/fabc49c 
352.54 ms