tx · 2VkR1ADyCjUa3VgPDuYD6Lrz8UowiEFDFPh2p9ptL6QD

3MvRWw2FPEimFCTGtK7qY9uAJbM7XJ4ZfJS:  -0.04500000 Waves

2023.07.05 16:20 [2652666] smart account 3MvRWw2FPEimFCTGtK7qY9uAJbM7XJ4ZfJS > SELF 0.00000000 Waves

{ "type": 13, "id": "2VkR1ADyCjUa3VgPDuYD6Lrz8UowiEFDFPh2p9ptL6QD", "fee": 4500000, "feeAssetId": null, "timestamp": 1688563270923, "version": 2, "chainId": 84, "sender": "3MvRWw2FPEimFCTGtK7qY9uAJbM7XJ4ZfJS", "senderPublicKey": "HP8sssVq1866F7CaPQJwgFrt6fsqhQjKwM84cL1wjD2a", "proofs": [ "66rkPdpswGH9GXu6MGQ81bcVrAcESndRZoLZz1ne6RRYHdCJ4ffS3TV2dvg1aQLCL3fPyndiQ1d4UNXbPJTNccpr" ], "script": "base64:BgKdAQgCEgcKBQgBCAEBEgMKAQgSAwoBCBIECgIICBIFCgMIGBgSBQoDCAEIEgQKAggBEgYKBAEICAESBQoDAQgIEgsKCQgICAgICAgICBIDCgEIEgMKAQgSBQoDCAgBEgYKBAgBCAgSDgoMCAgIAQQRGBgRAQEYEgoKCAgICAEECAEYEg4KDAgICAEEGBgYGBgBGBILCgkICAEBAQEBAQRrAAdTRl9QT09MAgJTRgAHV1hfUE9PTAICV1gAD0NBUF9GRUVfTk9fTE9BTgIJY2FwTm9Mb2FuAAxDQVBfRkVFX0xPQU4CB2NhcExvYW4AFFNUT1BMT1NTX0ZFRV9OT19MT0FOAg5zdG9wTG9zc05vTG9hbgANU1RPUExPU1NfTE9BTgIMc3RvcExvc3NMb2FuAAhMT0FOX0ZFRQIEbG9hbgALTk9fTE9BTl9GRUUCBm5vTG9hbgAGTk9fRkVFAgVub0ZlZQAGU0NBTEU4AIDC1y8AB1NDQUxFMTAAgMivoCUAB1NDQUxFMTYJALYCAQCAgIT+pt7hEQAKRkVFX1NDQUxFNgDAhD0AFGtTRlBvb2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Q Next: 4uCgi9fCunMPoQfmBHk13j8x7aQY2QPNforZqdh9Grmf Diff:
OldNewDifferences
354354 }
355355
356356
357-func bw (ay,az,aA) = {
358- let bx = aW([ay, az])
359- let by = bi(aA)
360- let bz = [toString(bx[0]), toString(bx[1]), toString(by)]
361-[StringEntry(Q, makeString(bz, ","))]
357+func bw (ay,az,aA,bx) = {
358+ let by = aW([ay, az])
359+ let bz = bi(aA)
360+ let bA = ([toString(by[0]), toString(by[1]), toString(bz)] ++ bx)
361+[StringEntry(Q, makeString(bA, ","))]
362362 }
363363
364364
365-func bA (bj,au,bB,ay,bC,az,aB,aC) = if ((bj == a))
365+func bB (bj,au,bC,ay,bD,az,aB,aC) = if ((bj == a))
366366 then {
367- let bD = {
368- let ax = invoke(au, "callFunction", ["calcLPReplenishTwoTokensREADONLY", [toString(bB), toString(bC)]], nil)
367+ let bE = {
368+ let ax = invoke(au, "callFunction", ["calcLPReplenishTwoTokensREADONLY", [toString(bC), toString(bD)]], nil)
369369 if ($isInstanceOf(ax, "List[Any]"))
370370 then ax
371371 else throw(($getType(ax) + " couldn't be cast to List[Any]"))
372372 }
373- if ((bD == bD))
373+ if ((bE == bE))
374374 then $Tuple5({
375- let ax = bD[3]
375+ let ax = bE[3]
376376 if ($isInstanceOf(ax, "Int"))
377377 then ax
378378 else throw(($getType(ax) + " couldn't be cast to Int"))
379379 }, {
380- let ax = bD[4]
380+ let ax = bE[4]
381381 if ($isInstanceOf(ax, "Int"))
382382 then ax
383383 else throw(($getType(ax) + " couldn't be cast to Int"))
384384 }, {
385- let ax = bD[1]
385+ let ax = bE[1]
386386 if ($isInstanceOf(ax, "Int"))
387387 then ax
388388 else throw(($getType(ax) + " couldn't be cast to Int"))
389- }, aR(bD[2]), {
390- let ax = bD[0]
389+ }, aR(bE[2]), {
390+ let ax = bE[0]
391391 if ($isInstanceOf(ax, "Int"))
392392 then ax
393393 else throw(($getType(ax) + " couldn't be cast to Int"))
395395 else throw("Strict value is not equal to itself.")
396396 }
397397 else {
398- let bE = $Tuple2(split({
399- let ax = invoke(au, "evaluatePutByAmountAssetREADONLY", [bB], nil)
398+ let bF = $Tuple2(split({
399+ let ax = invoke(au, "evaluatePutByAmountAssetREADONLY", [bC], nil)
400400 if ($isInstanceOf(ax, "String"))
401401 then ax
402402 else throw(($getType(ax) + " couldn't be cast to String"))
403403 }, "__"), split({
404- let ax = invoke(au, "evaluatePutByPriceAssetREADONLY", [bC], nil)
404+ let ax = invoke(au, "evaluatePutByPriceAssetREADONLY", [bD], nil)
405405 if ($isInstanceOf(ax, "String"))
406406 then ax
407407 else throw(($getType(ax) + " couldn't be cast to String"))
408408 }, "__"))
409- if ((bE == bE))
409+ if ((bF == bF))
410410 then {
411- let bF = bE._2
412- let bG = bE._1
413- let bH = parseIntValue(bG[1])
414- let bI = parseIntValue(bF[1])
415- if ((bI > bH))
411+ let bG = bF._2
412+ let bH = bF._1
413+ let bI = parseIntValue(bH[1])
414+ let bJ = parseIntValue(bG[1])
415+ if ((bJ > bI))
416416 then {
417- let bJ = parseIntValue(bG[8])
418- $Tuple5(bB, bJ, (bC - bJ), az, bI)
417+ let bK = parseIntValue(bH[8])
418+ $Tuple5(bC, bK, (bD - bK), az, bJ)
419419 }
420420 else {
421- let bJ = parseIntValue(bF[7])
422- $Tuple5(bJ, bC, (bB - bJ), ay, bH)
421+ let bK = parseIntValue(bG[7])
422+ $Tuple5(bK, bD, (bC - bK), ay, bI)
423423 }
424424 }
425425 else throw("Strict value is not equal to itself.")
426426 }
427427
428428
429-func bK (au,bj,bB,ay,bC,az) = {
430- let bL = [AttachedPayment(aS(ay), bB), AttachedPayment(aS(az), bC)]
429+func bL (au,bj,bC,ay,bD,az) = {
430+ let bM = [AttachedPayment(aS(ay), bC), AttachedPayment(aS(az), bD)]
431431 if ((bj == a))
432- then invoke(au, "callFunction", ["replenishWithTwoTokens", ["false", "0"]], bL)
433- else invoke(au, "put", [1000000, false], bL)
432+ then invoke(au, "callFunction", ["replenishWithTwoTokens", ["false", "0"]], bM)
433+ else invoke(au, "put", [1000000, false], bM)
434434 }
435435
436436
437-func bM (au,bj,bJ,bN) = {
438- let bL = [AttachedPayment(aS(bN), bJ)]
437+func bN (au,bj,bK,bO) = {
438+ let bM = [AttachedPayment(aS(bO), bK)]
439439 if ((bj == a))
440- then invoke(au, "callFunction", ["replenishWithOneToken", ["0", "false", "0"]], bL)
441- else invoke(au, "putOneTkn", [0, false], bL)
440+ then invoke(au, "callFunction", ["replenishWithOneToken", ["0", "false", "0"]], bM)
441+ else invoke(au, "putOneTkn", [0, false], bM)
442442 }
443443
444444
445-func bO (aH,bj,aA,bP) = {
446- let bL = [AttachedPayment(fromBase58String(aA), bP)]
445+func bP (aH,bj,aA,bQ) = {
446+ let bM = [AttachedPayment(fromBase58String(aA), bQ)]
447447 if ((bj == a))
448- then invoke(aN(), "lockShareTokens", [aH, 0], bL)
449- else invoke(aO(addressFromStringValue(aH)), "stake", nil, bL)
448+ then invoke(aN(), "lockShareTokens", [aH, 0], bM)
449+ else invoke(aO(addressFromStringValue(aH)), "stake", nil, bM)
450450 }
451451
452452
453-func bQ (aH,bj,aA,bP) = {
454- let bR = if ((bj == a))
455- then $Tuple3(aN(), "withdrawShareTokens", [aH, bP])
453+func bR (aH,bj,aA,bQ) = {
454+ let bS = if ((bj == a))
455+ then $Tuple3(aN(), "withdrawShareTokens", [aH, bQ])
456456 else if ((bj == b))
457- then $Tuple3(aO(Address(fromBase58String(aH))), "unstake", [aA, bP])
457+ then $Tuple3(aO(Address(fromBase58String(aH))), "unstake", [aA, bQ])
458458 else throw("Wrong pool type")
459- let bS = bR._1
460- let bT = bR._2
461- let bU = bR._3
462- let bV = invoke(bS, bT, bU, nil)
463- if ((bV == bV))
464- then bP
459+ let bT = bS._1
460+ let bU = bS._2
461+ let bV = bS._3
462+ let bW = invoke(bT, bU, bV, nil)
463+ if ((bW == bW))
464+ then bQ
465465 else throw("Strict value is not equal to itself.")
466466 }
467467
468468
469-func bW (aH,bX,bY,aB,aC,bZ,ca) = {
469+func bX (aH,bY,bZ,aB,aC,ca,cb) = {
470470 let au = Address(fromBase58String(aH))
471- let cb = 1000000
472- let cc = getIntegerValue(au, t)
473- let cd = fraction(bZ, cb, (cb - cc), CEILING)
474- let ce = if ((ca == bX))
471+ let cc = 1000000
472+ let cd = getIntegerValue(au, t)
473+ let ce = fraction(ca, cc, (cc - cd), CEILING)
474+ let cf = if ((cb == bY))
475475 then {
476- let cf = fraction(cd, aC, (aB - cd), CEILING)
477- $Tuple2(cf, bY)
476+ let cg = fraction(ce, aC, (aB - ce), CEILING)
477+ $Tuple2(cg, bZ)
478478 }
479479 else {
480- let cf = fraction(cd, aB, (aC - cd), CEILING)
481- $Tuple2(cf, bX)
480+ let cg = fraction(ce, aB, (aC - ce), CEILING)
481+ $Tuple2(cg, bY)
482482 }
483- let cf = ce._1
484- let cg = ce._2
485- $Tuple2(cg, cf)
483+ let cg = cf._1
484+ let ch = cf._2
485+ $Tuple2(ch, cg)
486486 }
487487
488488
489-func ch (aH,bX,bY,aB,aC,bZ,ca) = {
490- let ci = getIntegerValue(af, "%s__protocolFee")
491- let cj = getIntegerValue(af, "%s__poolFee")
492- let ck = toBigInt(100000000)
493- let cl = if ((ca == bX))
489+func ci (aH,bY,bZ,aB,aC,ca,cb) = {
490+ let cj = getIntegerValue(af, "%s__protocolFee")
491+ let ck = getIntegerValue(af, "%s__poolFee")
492+ let cl = toBigInt(100000000)
493+ let cm = if ((cb == bY))
494494 then {
495- let cf = fraction(bZ, aC, (aB - bZ))
496- $Tuple2(cf, bY)
495+ let cg = fraction(ca, aC, (aB - ca))
496+ $Tuple2(cg, bZ)
497497 }
498498 else {
499- let cf = fraction(bZ, aB, (aC - bZ))
500- $Tuple2(cf, bX)
499+ let cg = fraction(ca, aB, (aC - ca))
500+ $Tuple2(cg, bY)
501501 }
502- let cf = cl._1
503- let cg = cl._2
504- let cm = toInt(fraction(toBigInt(cf), ck, (ck - toBigInt((ci + cj))), CEILING))
505- $Tuple2(cg, cm)
502+ let cg = cm._1
503+ let ch = cm._2
504+ let cn = toInt(fraction(toBigInt(cg), cl, (cl - toBigInt((cj + ck))), CEILING))
505+ $Tuple2(ch, cn)
506506 }
507507
508508
509-func cn (aE,aH,bX,bY,aB,aC,bZ,ca) = if ((aE == a))
509+func co (aE,aH,bY,bZ,aB,aC,ca,cb) = if ((aE == a))
510510 then {
511- let co = bW(aH, bX, bY, aB, aC, bZ, ca)
512- let cg = co._1
513- let cf = co._2
514- invoke(addressFromStringValue(aH), "callFunction", ["exchange", [toString(bZ)]], [AttachedPayment(aS(cg), cf)])
511+ let cp = bX(aH, bY, bZ, aB, aC, ca, cb)
512+ let ch = cp._1
513+ let cg = cp._2
514+ invoke(addressFromStringValue(aH), "callFunction", ["exchange", [toString(ca)]], [AttachedPayment(aS(ch), cg)])
515515 }
516516 else {
517- let cp = ch(aH, bX, bY, aB, aC, bZ, ca)
518- let cg = cp._1
519- let cf = cp._2
520- invoke(af, "swap", [bZ, ca, toString(this)], [AttachedPayment(aS(cg), cf)])
517+ let cq = ci(aH, bY, bZ, aB, aC, ca, cb)
518+ let ch = cq._1
519+ let cg = cq._2
520+ invoke(af, "swap", [ca, cb, toString(this)], [AttachedPayment(aS(ch), cg)])
521521 }
522522
523523
524-func cq (bj,aH,bB,ay,bC,az,aB,aC) = {
524+func cr (bj,aH,bC,ay,bD,az,aB,aC) = {
525525 let au = addressFromStringValue(aH)
526526 if ((bj == a))
527527 then {
528- let bV = {
529- let ax = invoke(au, "callFunction", ["calcLPReplenishDiffPropREADONLY", [toString(bB), toString(bC), "0"]], nil)
528+ let bW = {
529+ let ax = invoke(au, "callFunction", ["calcLPReplenishDiffPropREADONLY", [toString(bC), toString(bD), "0"]], nil)
530530 if ($isInstanceOf(ax, "List[Any]"))
531531 then ax
532532 else throw(($getType(ax) + " couldn't be cast to List[Any]"))
533533 }
534- if ((bV == bV))
534+ if ((bW == bW))
535535 then $Tuple2({
536- let ax = bV[0]
536+ let ax = bW[0]
537537 if ($isInstanceOf(ax, "Int"))
538538 then ax
539539 else throw(($getType(ax) + " couldn't be cast to Int"))
540540 }, {
541- let ax = bV[1]
541+ let ax = bW[1]
542542 if ($isInstanceOf(ax, "Int"))
543543 then ax
544544 else throw(($getType(ax) + " couldn't be cast to Int"))
547547 }
548548 else if ((bj == b))
549549 then {
550- let cr = if (if ((bB > 0))
551- then (bC > 0)
550+ let cs = if (if ((bC > 0))
551+ then (bD > 0)
552552 else false)
553553 then {
554- let cs = bA(bj, au, bB, ay, bC, az, aB, aC)
555- let ct = cs._1
556- let cu = cs._2
557- let cv = cs._3
558- let cw = cs._4
559- let cx = cs._5
560- $Tuple3(cv, cw, cx)
554+ let ct = bB(bj, au, bC, ay, bD, az, aB, aC)
555+ let cu = ct._1
556+ let cv = ct._2
557+ let cw = ct._3
558+ let cx = ct._4
559+ let cy = ct._5
560+ $Tuple3(cw, cx, cy)
561561 }
562- else if ((bB > 0))
563- then $Tuple3(bB, ay, 0)
564- else $Tuple3(bC, az, 0)
565- let cv = cr._1
566- let cw = cr._2
567- let cy = cr._3
568- let cz = if ((cv > 0))
562+ else if ((bC > 0))
563+ then $Tuple3(bC, ay, 0)
564+ else $Tuple3(bD, az, 0)
565+ let cw = cs._1
566+ let cx = cs._2
567+ let cz = cs._3
568+ let cA = if ((cw > 0))
569569 then {
570- let bV = {
571- let ax = invoke(au, "putOneTknREADONLY", [cw, cv], nil)
570+ let bW = {
571+ let ax = invoke(au, "putOneTknREADONLY", [cx, cw], nil)
572572 if ($isInstanceOf(ax, "(Int, Int, Int)"))
573573 then ax
574574 else throw(($getType(ax) + " couldn't be cast to (Int, Int, Int)"))
575575 }
576- if ((bV == bV))
577- then $Tuple2(bV._1, bV._3)
576+ if ((bW == bW))
577+ then $Tuple2(bW._1, bW._3)
578578 else throw("Strict value is not equal to itself.")
579579 }
580580 else $Tuple2(0, 0)
581- let cA = cz._1
582- let cB = cz._2
583- $Tuple2((cy + cA), cB)
581+ let cB = cA._1
582+ let cC = cA._2
583+ $Tuple2((cz + cB), cC)
584584 }
585585 else throw("Wrong pool type")
586586 }
587587
588588
589-func cC (bj,aH,cx,aA,ay,az,aB,aC,cD,cE) = {
590- let au = addressFromStringValue(aH)
589+func cD (au,bj,aA,cE) = {
591590 let cF = if ((bj == a))
592591 then {
593- let bV = {
594- let ax = invoke(au, "callFunction", ["withdrawREADONLY", [toString(cx), toString(aB), toString(aC)]], nil)
595- if ($isInstanceOf(ax, "List[Any]"))
592+ let bW = {
593+ let ax = invoke(au, "callFunction", ["withdrawREADONLY", [toString(cE)]], nil)
594+ if ($isInstanceOf(ax, "(Int, Int)"))
596595 then ax
597- else throw(($getType(ax) + " couldn't be cast to List[Any]"))
596+ else throw(($getType(ax) + " couldn't be cast to (Int, Int)"))
598597 }
599- if ((bV == bV))
600- then $Tuple2({
601- let ax = bV[0]
602- if ($isInstanceOf(ax, "Int"))
603- then ax
604- else throw(($getType(ax) + " couldn't be cast to Int"))
605- }, {
606- let ax = bV[1]
607- if ($isInstanceOf(ax, "Int"))
608- then ax
609- else throw(($getType(ax) + " couldn't be cast to Int"))
610- })
598+ if ((bW == bW))
599+ then $Tuple2(bW._1, bW._2)
611600 else throw("Strict value is not equal to itself.")
612601 }
613- else if ((bj == b))
614- then {
615- let cG = split({
616- let ax = invoke(au, "evaluateGetREADONLY", [aA, cx], nil)
617- if ($isInstanceOf(ax, "String"))
618- then ax
619- else throw(($getType(ax) + " couldn't be cast to String"))
620- }, "__")
621- if ((cG == cG))
622- then $Tuple2(parseIntValue(cG[1]), parseIntValue(cG[2]))
623- else throw("Strict value is not equal to itself.")
624- }
625- else throw("Wrong pool type")
626- let cH = cF._1
627- let cI = cF._2
628- if ((cD > 0))
629- then {
630- let cJ = if (if ((cE == ay))
631- then (cD > cH)
632- else false)
633- then (cD - cH)
634- else if (if ((cE == az))
635- then (cD > cI)
636- else false)
637- then (cD - cI)
638- else 0
639- let cK = if ((cJ > 0))
640- then if ((bj == a))
641- then bW(aH, ay, az, aB, aC, cJ, cE)
642- else ch(aH, ay, az, aB, aC, cJ, cE)
643- else $Tuple2("", 0)
644- let cg = cK._1
645- let cf = cK._2
646- if ((cE == ay))
647- then $Tuple2(((cH + cJ) - cD), (cI - cf))
648- else $Tuple2((cH - cf), ((cI + cJ) - cD))
602+ else {
603+ let bW = split({
604+ let ax = invoke(au, "evaluateGetREADONLY", [aA, cE], nil)
605+ if ($isInstanceOf(ax, "String"))
606+ then ax
607+ else throw(($getType(ax) + " couldn't be cast to String"))
608+ }, "__")
609+ if ((bW == bW))
610+ then $Tuple2(parseIntValue(bW[1]), parseIntValue(bW[2]))
611+ else throw("Strict value is not equal to itself.")
649612 }
650- else $Tuple2(cH, cI)
613+ let cG = cF._1
614+ let cH = cF._2
615+ $Tuple2(cG, cH)
651616 }
652617
653618
654-func cL (aE,aH) = if ((aE == a))
619+func cI (bj,aH,cy,aA,ay,az,aB,aC,cJ,cK) = {
620+ let au = addressFromStringValue(aH)
621+ let cL = cD(au, bj, aA, cy)
622+ let cM = cL._1
623+ let cN = cL._2
624+ if ((cJ > 0))
625+ then {
626+ let cO = if (if ((cK == ay))
627+ then (cJ > cM)
628+ else false)
629+ then (cJ - cM)
630+ else if (if ((cK == az))
631+ then (cJ > cN)
632+ else false)
633+ then (cJ - cN)
634+ else 0
635+ let cP = if ((cO > 0))
636+ then if ((bj == a))
637+ then bX(aH, ay, az, aB, aC, cO, cK)
638+ else ci(aH, ay, az, aB, aC, cO, cK)
639+ else $Tuple2("", 0)
640+ let ch = cP._1
641+ let cg = cP._2
642+ if ((cK == ay))
643+ then $Tuple2(((cM + cO) - cJ), (cN - cg))
644+ else $Tuple2((cM - cg), ((cN + cO) - cJ))
645+ }
646+ else $Tuple2(cM, cN)
647+ }
648+
649+
650+func cQ (aE,aH) = if ((aE == a))
655651 then {
656- let cM = ao(ag)
657- if ((cM == cM))
652+ let cR = ao(ag)
653+ if ((cR == cR))
658654 then {
659- let bV = invoke(aN(), "claim", [aH], nil)
660- if ((bV == bV))
655+ let bW = invoke(aN(), "claim", [aH], nil)
656+ if ((bW == bW))
661657 then {
662- let cN = ao(ag)
663- $Tuple2((cN - cM), ag)
658+ let cS = ao(ag)
659+ $Tuple2((cS - cR), ag)
664660 }
665661 else throw("Strict value is not equal to itself.")
666662 }
668664 }
669665 else if ((aE == b))
670666 then {
671- let cM = ao(ah)
672- if ((cM == cM))
667+ let cR = ao(ah)
668+ if ((cR == cR))
673669 then {
674- let bV = invoke(aO(Address(fromBase58String(aH))), "claimWX", [aH], nil)
675- if ((bV == bV))
670+ let bW = invoke(aO(Address(fromBase58String(aH))), "claimWX", [aH], nil)
671+ if ((bW == bW))
676672 then {
677- let cN = ao(ah)
678- $Tuple2((cN - cM), ah)
673+ let cS = ao(ah)
674+ $Tuple2((cS - cR), ah)
679675 }
680676 else throw("Strict value is not equal to itself.")
681677 }
684680 else throw("Wrong pool type")
685681
686682
687-func cO (bj,aH,aM,bB,ay,bC,az,aB,aC,cP) = {
688- let cQ = ao(fromBase58String(cP))
689- if ((cQ == cQ))
683+func cT (bj,aH,aM,bC,ay,bD,az,aB,aC,cU) = {
684+ let cV = ao(fromBase58String(cU))
685+ if ((cV == cV))
690686 then {
691687 let au = addressFromStringValue(aH)
692- let cR = if (if ((bB > 0))
693- then (bC > 0)
688+ let cW = if (if ((bC > 0))
689+ then (bD > 0)
694690 else false)
695691 then {
696- let cS = bA(bj, au, bB, ay, bC, az, aB, aC)
697- let ct = cS._1
698- let cu = cS._2
699- let cv = cS._3
700- let cw = cS._4
701- let bV = bK(au, bj, ct, ay, cu, az)
702- if ((bV == bV))
703- then $Tuple2(cv, cw)
692+ let cX = bB(bj, au, bC, ay, bD, az, aB, aC)
693+ let cu = cX._1
694+ let cv = cX._2
695+ let cw = cX._3
696+ let cx = cX._4
697+ let bW = bL(au, bj, cu, ay, cv, az)
698+ if ((bW == bW))
699+ then $Tuple2(cw, cx)
704700 else throw("Strict value is not equal to itself.")
705701 }
706- else if ((bB > 0))
707- then $Tuple2(bB, ay)
708- else if ((bC > 0))
709- then $Tuple2(bC, az)
702+ else if ((bC > 0))
703+ then $Tuple2(bC, ay)
704+ else if ((bD > 0))
705+ then $Tuple2(bD, az)
710706 else throw("pmts must be > 0")
711- let cv = cR._1
712- let cw = cR._2
713- let bV = if ((cv > 0))
714- then bM(au, bj, cv, cw)
707+ let cw = cW._1
708+ let cx = cW._2
709+ let bW = if ((cw > 0))
710+ then bN(au, bj, cw, cx)
715711 else nil
716- if ((bV == bV))
712+ if ((bW == bW))
717713 then {
718- let cT = ao(fromBase58String(cP))
719- let cU = (cT - cQ)
720- let cV = fraction(cU, aL(aH, aM), m)
721- let cW = (cU - cV)
722- if ((0 >= cW))
714+ let cY = ao(fromBase58String(cU))
715+ let cZ = (cY - cV)
716+ let da = fraction(cZ, aL(aH, aM), m)
717+ let db = (cZ - da)
718+ if ((0 >= db))
723719 then throw("amount of staked sharetokens must be > 0")
724720 else {
725- let cX = bO(aH, bj, cP, cW)
726- if ((cX == cX))
727- then $Tuple2(cW, cV)
721+ let dc = bP(aH, bj, cU, db)
722+ if ((dc == dc))
723+ then $Tuple2(db, da)
728724 else throw("Strict value is not equal to itself.")
729725 }
730726 }
734730 }
735731
736732
737-func cY (aH,aK,cZ,cV,da,aA,aE,db) = {
738- let dc = aG(aH)
739- let dd = aI(aH)
740- let de = if (db)
741- then $Tuple2(getIntegerValue(this, (aH + C)), (dd + cZ))
742- else $Tuple2(getIntegerValue(this, (aH + D)), dd)
743- let df = de._1
744- let dg = de._2
745-[IntegerEntry((aH + A), (dc + cZ)), IntegerEntry((aH + B), dg), IntegerEntry((((((aH + "_") + aK) + "_") + toString(da)) + u), cZ), IntegerEntry((((((aH + "_") + aK) + "_") + toString(da)) + z), df), StringEntry((((aK + "_") + toString(da)) + v), aH), IntegerEntry((aK + y), da), ScriptTransfer(ac, cV, fromBase58String(aA))]
733+func dd (aH,aK,de,da,df,aA,aE,dg) = {
734+ let dh = aG(aH)
735+ let di = aI(aH)
736+ let dj = if (dg)
737+ then $Tuple2(getIntegerValue(this, (aH + C)), (di + de))
738+ else $Tuple2(getIntegerValue(this, (aH + D)), di)
739+ let dk = dj._1
740+ let dl = dj._2
741+[IntegerEntry((aH + A), (dh + de)), IntegerEntry((aH + B), dl), IntegerEntry((((((aH + "_") + aK) + "_") + toString(df)) + u), de), IntegerEntry((((((aH + "_") + aK) + "_") + toString(df)) + z), dk), StringEntry((((aK + "_") + toString(df)) + v), aH), IntegerEntry((aK + y), df), ScriptTransfer(ac, da, fromBase58String(aA))]
746742 }
747743
748744
749-func dh (di,dj,dk,dl,dm,dn,do,dp,dq,dr) = {
750- let ds = ao(aS(di))
751- if ((ds == ds))
745+func dm (dn,do,dp,dq,dr,ds,dt,du,dv,dw) = {
746+ let dx = ao(aS(dn))
747+ if ((dx == dx))
752748 then {
753- let bV = invoke(ad, "swap", [dl, dm, dn, do, dp, dq, dr], [AttachedPayment(dk, dj)])
754- if ((bV == bV))
755- then (ao(aS(di)) - ds)
749+ let bW = invoke(ad, "swap", [dq, dr, ds, dt, du, dv, dw], [AttachedPayment(dp, do)])
750+ if ((bW == bW))
751+ then (ao(aS(dn)) - dx)
756752 else throw("Strict value is not equal to itself.")
757753 }
758754 else throw("Strict value is not equal to itself.")
759755 }
760756
761757
762-func dt (di,dj,dk,du,dv,dr) = {
763- let ds = ao(aS(di))
764- if ((ds == ds))
758+func dy (dn,do,dp,dz,dA,dw) = {
759+ let dx = ao(aS(dn))
760+ if ((dx == dx))
765761 then {
766- let bV = invoke(ad, "puzzleSwap", [du, dv, dr], [AttachedPayment(dk, dj)])
767- if ((bV == bV))
768- then (ao(aS(di)) - ds)
762+ let bW = invoke(ad, "puzzleSwap", [dz, dA, dw], [AttachedPayment(dp, do)])
763+ if ((bW == bW))
764+ then (ao(aS(dn)) - dx)
769765 else throw("Strict value is not equal to itself.")
770766 }
771767 else throw("Strict value is not equal to itself.")
772768 }
773769
774770
775-func dw (di,dj,dk,dx,dy,dz,dA,dB,dC,dr) = {
776- let ds = ao(aS(di))
777- if ((ds == ds))
771+func dB (dn,do,dp,dC,dD,dE,dF,dG,dH,dw) = {
772+ let dx = ao(aS(dn))
773+ if ((dx == dx))
778774 then {
779- let bV = invoke(ad, "swopfiSwap", [dx, dy, dz, dA, dB, dC, dr], [AttachedPayment(dk, dj)])
780- if ((bV == bV))
781- then (ao(aS(di)) - ds)
775+ let bW = invoke(ad, "swopfiSwap", [dC, dD, dE, dF, dG, dH, dw], [AttachedPayment(dp, do)])
776+ if ((bW == bW))
777+ then (ao(aS(dn)) - dx)
782778 else throw("Strict value is not equal to itself.")
783779 }
784780 else throw("Strict value is not equal to itself.")
785781 }
786782
787783
788-func dD (aH,bj,dE,dF) = {
784+func dI (aH,bj,dJ,dK) = {
789785 let au = Address(fromBase58String(aH))
790- let dG = aD(au, bj)
791- let dH = dG._1
792- let dI = dG._2
793- let aB = dG._3
794- let aC = dG._4
795- let aA = dG._5
796- if (if ((dE != dH))
797- then (dE != dI)
786+ let dL = aD(au, bj)
787+ let dM = dL._1
788+ let dN = dL._2
789+ let aB = dL._3
790+ let aC = dL._4
791+ let aA = dL._5
792+ if (if ((dJ != dM))
793+ then (dJ != dN)
798794 else false)
799795 then throw("Wrong asset")
800796 else {
801- let dJ = if ((dE == dH))
802- then $Tuple2(dF, 0)
803- else $Tuple2(0, dF)
804- let bB = dJ._1
805- let bC = dJ._2
806- let dK = cO(bj, aH, i, bB, dH, bC, dI, aB, aC, aA)
807- let cZ = dK._1
808- let dL = dK._2
809- let dM = valueOrElse(getInteger(this, (aH + C)), 0)
810- let dN = valueOrElse(getInteger(this, (aH + D)), 0)
811- let dO = aG(aH)
812- let dP = aI(aH)
813- let dQ = fraction(dP, j, dO)
814- let dR = fraction(cZ, dQ, j)
815- let dS = (cZ - dR)
816- let dT = if ((dP > 0))
817- then (dM + fraction(dR, k, dP))
797+ let dO = if ((dJ == dM))
798+ then $Tuple2(dK, 0)
799+ else $Tuple2(0, dK)
800+ let bC = dO._1
801+ let bD = dO._2
802+ let dP = cT(bj, aH, i, bC, dM, bD, dN, aB, aC, aA)
803+ let de = dP._1
804+ let dQ = dP._2
805+ let dR = valueOrElse(getInteger(this, (aH + C)), 0)
806+ let dS = valueOrElse(getInteger(this, (aH + D)), 0)
807+ let dT = aG(aH)
808+ let dU = aI(aH)
809+ let dV = fraction(dU, j, dT)
810+ let dW = fraction(de, dV, j)
811+ let dX = (de - dW)
812+ let dY = if ((dU > 0))
813+ then (dR + fraction(dW, k, dU))
818814 else 0
819- let dU = if (((dO - dP) > 0))
820- then (dN + fraction(dS, k, (dO - dP)))
815+ let dZ = if (((dT - dU) > 0))
816+ then (dS + fraction(dX, k, (dT - dU)))
821817 else 0
822- let dV = fraction(dR, aL(aH, d), m)
823- let dW = fraction(dS, aL(aH, c), m)
824- let dX = bQ(aH, bj, aA, (dV + dW))
825- if ((dX == dX))
826- then ([IntegerEntry((aH + C), dT), IntegerEntry((aH + D), dU), IntegerEntry((aH + A), ((dO + cZ) - dX)), IntegerEntry((aH + B), ((dP + dR) - dV)), ScriptTransfer(ac, (dV + dW), fromBase58String(aA))] ++ bw(dH, dI, aA))
818+ let ea = fraction(dW, aL(aH, d), m)
819+ let eb = fraction(dX, aL(aH, c), m)
820+ let ec = bR(aH, bj, aA, (ea + eb))
821+ if ((ec == ec))
822+ then ([IntegerEntry((aH + C), dY), IntegerEntry((aH + D), dZ), IntegerEntry((aH + A), ((dT + de) - ec)), IntegerEntry((aH + B), ((dU + dW) - ea)), ScriptTransfer(ac, (ea + eb), fromBase58String(aA))] ++ bw(dM, dN, aA, nil))
827823 else throw("Strict value is not equal to itself.")
828824 }
829825 }
830826
831827
832-func dY (aH,dZ,ea,eb) = {
828+func ed (aH,cE,ee,ef) = {
833829 let au = Address(fromBase58String(aH))
834830 let bj = valueOrErrorMessage(getString(this, (N + aH)), "Unknown pool")
835- let ec = aD(au, bj)
836- let bX = ec._1
837- let bY = ec._2
838- let aB = ec._3
839- let aC = ec._4
840- let aA = ec._5
841- let ed = ao(aS(bX))
842- if ((ed == ed))
831+ let eg = aD(au, bj)
832+ let bY = eg._1
833+ let bZ = eg._2
834+ let aB = eg._3
835+ let aC = eg._4
836+ let aA = eg._5
837+ let eh = ao(aS(bY))
838+ if ((eh == eh))
843839 then {
844- let ee = ao(aS(bY))
845- if ((ee == ee))
840+ let ei = ao(aS(bZ))
841+ if ((ei == ei))
846842 then {
847- let bV = if ((bj == a))
848- then invoke(au, "callFunction", ["withdraw", [toString(dZ)]], nil)
843+ let bW = if ((bj == a))
844+ then invoke(au, "callFunction", ["withdraw", [toString(cE)]], nil)
849845 else {
850- let bV = bQ(aH, bj, aA, dZ)
851- if ((bV == bV))
852- then invoke(au, "get", nil, [AttachedPayment(aS(aA), dZ)])
846+ let bW = bR(aH, bj, aA, cE)
847+ if ((bW == bW))
848+ then invoke(au, "get", nil, [AttachedPayment(aS(aA), cE)])
853849 else throw("Strict value is not equal to itself.")
854850 }
855- if ((bV == bV))
851+ if ((bW == bW))
856852 then {
857- let ef = ao(aS(bX))
858- let eg = ao(aS(bY))
859- let eh = $Tuple2((ef - ed), (eg - ee))
860- let ei = eh._1
861- let ej = eh._2
862- let ek = if ((ea > 0))
853+ let ej = ao(aS(bY))
854+ let ek = ao(aS(bZ))
855+ let el = $Tuple2((ej - eh), (ek - ei))
856+ let em = el._1
857+ let en = el._2
858+ let eo = if ((ee > 0))
863859 then {
864- let cJ = if (if ((eb == bX))
865- then (ea > ei)
860+ let cO = if (if ((ef == bY))
861+ then (ee > em)
866862 else false)
867- then (ea - ei)
868- else if (if ((eb == bY))
869- then (ea > ej)
863+ then (ee - em)
864+ else if (if ((ef == bZ))
865+ then (ee > en)
870866 else false)
871- then (ea - ej)
867+ then (ee - en)
872868 else 0
873- let el = if ((cJ > 0))
874- then cn(bj, aH, bX, bY, (aB - ei), (aC - ej), cJ, eb)
869+ let ep = if ((cO > 0))
870+ then co(bj, aH, bY, bZ, (aB - em), (aC - en), cO, ef)
875871 else nil
876- if ((el == el))
872+ if ((ep == ep))
877873 then {
878- let em = ao(aS(bX))
879- let en = ao(aS(bY))
880- if ((eb == bX))
881- then $Tuple2(((em - ed) - ea), (en - ee))
882- else $Tuple2((em - ed), ((en - ee) - ea))
874+ let eq = ao(aS(bY))
875+ let er = ao(aS(bZ))
876+ if ((ef == bY))
877+ then $Tuple2(((eq - eh) - ee), (er - ei))
878+ else $Tuple2((eq - eh), ((er - ei) - ee))
883879 }
884880 else throw("Strict value is not equal to itself.")
885881 }
886- else $Tuple2(ei, ej)
887- let eo = ek._1
888- let ep = ek._2
889- $Tuple7(eo, bX, ep, bY, ef, eg, aA)
882+ else $Tuple2(em, en)
883+ let es = eo._1
884+ let et = eo._2
885+ $Tuple7(es, bY, et, bZ, ej, ek, aA)
890886 }
891887 else throw("Strict value is not equal to itself.")
892888 }
896892 }
897893
898894
899-func eq (aK,aH,er,es) = {
900- let et = valueOrErrorMessage(getInteger(this, (((((aH + "_") + aK) + "_") + er) + u)), "Unknown position")
901- let eu = getIntegerValue(this, (((((aH + "_") + aK) + "_") + er) + z))
902- let ev = if (es)
895+func eu (aK,aH,ev,ew) = {
896+ let ex = valueOrErrorMessage(getInteger(this, (((((aH + "_") + aK) + "_") + ev) + u)), "Unknown position")
897+ let ey = getIntegerValue(this, (((((aH + "_") + aK) + "_") + ev) + z))
898+ let ez = if (ew)
903899 then getIntegerValue(this, (aH + C))
904900 else getIntegerValue(this, (aH + D))
905- (et + fraction(et, (ev - eu), k))
901+ (ex + fraction(ex, (ez - ey), k))
906902 }
907903
908904
909-func ew (aK,aH,er,ex) = {
910- let et = valueOrErrorMessage(getInteger(this, (((((aH + "_") + aK) + "_") + er) + u)), "Unknown position")
911- let cD = valueOrElse(getInteger(this, (((((aH + "_") + aK) + "_") + er) + w)), 0)
912- let dZ = eq(aK, aH, er, (cD > 0))
913- let ey = aG(aH)
914- let ez = Address(fromBase58String(aK))
915- let eb = valueOrElse(getString(this, (((((aH + "_") + aK) + "_") + er) + x)), "")
916- let ea = if ((cD > 0))
905+func eA (aK,aH,ev,eB) = {
906+ let ex = valueOrErrorMessage(getInteger(this, (((((aH + "_") + aK) + "_") + ev) + u)), "Unknown position")
907+ let cJ = valueOrElse(getInteger(this, (((((aH + "_") + aK) + "_") + ev) + w)), 0)
908+ let cE = eu(aK, aH, ev, (cJ > 0))
909+ let eC = aG(aH)
910+ let eD = Address(fromBase58String(aK))
911+ let ef = valueOrElse(getString(this, (((((aH + "_") + aK) + "_") + ev) + x)), "")
912+ let ee = if ((cJ > 0))
917913 then {
918- let ax = invoke(ai(), "getAssetDebt", [false, ((aK + "_") + er), eb], nil)
914+ let ax = invoke(ai(), "getAssetDebt", [false, ((aK + "_") + ev), ef], nil)
919915 if ($isInstanceOf(ax, "Int"))
920916 then ax
921917 else throw(($getType(ax) + " couldn't be cast to Int"))
922918 }
923919 else 0
924- let eA = dY(aH, dZ, ea, eb)
925- if ((eA == eA))
920+ let eE = ed(aH, cE, ee, ef)
921+ if ((eE == eE))
926922 then {
927- let aA = eA._7
928- let eg = eA._6
929- let ef = eA._5
930- let bY = eA._4
931- let eB = eA._3
932- let bX = eA._2
933- let eC = eA._1
934- let eD = if ((ea > 0))
935- then invoke(ai(), "repayFor", [((aK + "_") + er)], [AttachedPayment(aS(eb), ea)])
923+ let aA = eE._7
924+ let ek = eE._6
925+ let ej = eE._5
926+ let bZ = eE._4
927+ let eF = eE._3
928+ let bY = eE._2
929+ let eG = eE._1
930+ let eH = if ((ee > 0))
931+ then invoke(ai(), "repayFor", [((aK + "_") + ev)], [AttachedPayment(aS(ef), ee)])
936932 else 0
937- if ((eD == eD))
938- then ([DeleteEntry((((((aH + "_") + aK) + "_") + er) + u)), DeleteEntry((((((aH + "_") + aK) + "_") + er) + z)), IntegerEntry((aH + A), (ey - dZ)), ScriptTransfer(ez, eC, aS(bX)), ScriptTransfer(ez, eB, aS(bY))] ++ bw(bX, bY, aA))
933+ if ((eH == eH))
934+ then ([DeleteEntry((((((aH + "_") + aK) + "_") + ev) + u)), DeleteEntry((((((aH + "_") + aK) + "_") + ev) + z)), IntegerEntry((aH + A), (eC - cE)), ScriptTransfer(eD, eG, aS(bY)), ScriptTransfer(eD, eF, aS(bZ))] ++ bw(bY, bZ, aA, nil))
939935 else throw("Strict value is not equal to itself.")
940936 }
941937 else throw("Strict value is not equal to itself.")
942938 }
943939
944940
945-func eE (eF) = {
946- let eG = split(valueOrErrorMessage(getString(this, (eF + L)), ("No request with id " + eF)), ",")
947- let aK = eG[0]
948- let aH = eG[1]
949- let bB = parseIntValue(eG[2])
950- let dH = eG[3]
951- let bC = parseIntValue(eG[4])
952- let dI = eG[5]
953- let aB = parseIntValue(eG[6])
954- let aC = parseIntValue(eG[7])
955- let aA = eG[8]
956- let eH = eG[9]
957- let eI = parseIntValue(eG[10])
958- $Tuple11(aK, aH, bB, dH, bC, dI, aB, aC, aA, eH, eI)
941+func eI (eJ) = {
942+ let eK = split(valueOrErrorMessage(getString(this, (eJ + L)), ("No request with id " + eJ)), ",")
943+ let aK = eK[0]
944+ let aH = eK[1]
945+ let bC = parseIntValue(eK[2])
946+ let dM = eK[3]
947+ let bD = parseIntValue(eK[4])
948+ let dN = eK[5]
949+ let aB = parseIntValue(eK[6])
950+ let aC = parseIntValue(eK[7])
951+ let aA = eK[8]
952+ let eL = eK[9]
953+ let eM = parseIntValue(eK[10])
954+ $Tuple11(aK, aH, bC, dM, bD, dN, aB, aC, aA, eL, eM)
959955 }
960956
961957
962-func eJ (bB,bC,ay,az,eK,eL) = {
958+func eN (bC,bD,ay,az,eO,eP) = {
963959 let bn = getIntegerValue(ae, (ay + R))
964960 let bo = getIntegerValue(ae, (az + R))
965- let eM = pow(10, 0, aT(ay), 0, 0, DOWN)
966- let eN = pow(10, 0, aT(az), 0, 0, DOWN)
967- let eO = (fraction(bn, bB, eM) + fraction(bo, bC, eN))
968- let eP = if ((eL == ay))
969- then $Tuple2(bn, eM)
970- else $Tuple2(bo, eN)
971- let eQ = eP._1
972- let eR = eP._2
973- fraction(fraction(eO, (eK - 100), 100), eR, eQ)
961+ let eQ = pow(10, 0, aT(ay), 0, 0, DOWN)
962+ let eR = pow(10, 0, aT(az), 0, 0, DOWN)
963+ let eS = (fraction(bn, bC, eQ) + fraction(bo, bD, eR))
964+ let eT = if ((eP == ay))
965+ then $Tuple2(bn, eQ)
966+ else $Tuple2(bo, eR)
967+ let eU = eT._1
968+ let eV = eT._2
969+ fraction(fraction(eS, (eO - 100), 100), eV, eU)
974970 }
975971
976972
977973 @Callable(al)
978-func calcPriceImpactEVALONLY (aH,eK,eL,bB,bC) = if (if ((100 > eK))
974+func calcPriceImpactEVALONLY (aH,eO,eP,bC,bD) = if (if ((100 > eO))
979975 then true
980- else (eK > 300))
976+ else (eO > 300))
981977 then throw("Leverage can't be <100 and >300")
982978 else {
983979 let bj = valueOrErrorMessage(getString(this, (N + aH)), "Pool is not inited")
984- let eS = aD(Address(fromBase58String(aH)), bj)
985- let dH = eS._1
986- let dI = eS._2
987- let aB = eS._3
988- let aC = eS._4
989- let aA = eS._5
990- let cD = if ((eK > 100))
991- then eJ(bB, bC, dH, dI, eK, eL)
980+ let eW = aD(Address(fromBase58String(aH)), bj)
981+ let dM = eW._1
982+ let dN = eW._2
983+ let aB = eW._3
984+ let aC = eW._4
985+ let aA = eW._5
986+ let cJ = if ((eO > 100))
987+ then eN(bC, bD, dM, dN, eO, eP)
992988 else 0
993- let eT = if ((eL == dH))
994- then $Tuple2((bB + cD), bC)
995- else $Tuple2(bB, (bC + cD))
996- let eU = eT._1
997- let eV = eT._2
998- let eW = cq(bj, aH, eU, dH, eV, dI, aB, aC)
999- let cx = eW._1
1000- let cB = eW._2
1001- let eX = if ((0 > cB))
1002- then (cB * -1)
1003- else cB
1004- $Tuple2(nil, [eX])
989+ let eX = if ((eP == dM))
990+ then $Tuple2((bC + cJ), bD)
991+ else $Tuple2(bC, (bD + cJ))
992+ let eY = eX._1
993+ let eZ = eX._2
994+ let fa = cr(bj, aH, eY, dM, eZ, dN, aB, aC)
995+ let cy = fa._1
996+ let cC = fa._2
997+ let fb = if ((0 > cC))
998+ then (cC * -1)
999+ else cC
1000+ $Tuple2(nil, [fb])
10051001 }
10061002
10071003
10081004
10091005 @Callable(al)
1006+func replenishFromLandEVALONLY (eJ) = valueOrElse(an(al), {
1007+ let fc = eI(eJ)
1008+ let aK = fc._1
1009+ let aH = fc._2
1010+ let bC = fc._3
1011+ let dM = fc._4
1012+ let bD = fc._5
1013+ let dN = fc._6
1014+ let aB = fc._7
1015+ let aC = fc._8
1016+ let aA = fc._9
1017+ let eL = fc._10
1018+ let eM = fc._11
1019+ if ((size(al.payments) != 1))
1020+ then throw("Wrong payment size")
1021+ else if (if ((aR(al.payments[0].assetId) != eL))
1022+ then true
1023+ else (al.payments[0].amount != eM))
1024+ then throw("Wrong payment")
1025+ else {
1026+ let fd = if ((dM == eL))
1027+ then $Tuple2((bC + al.payments[0].amount), bD)
1028+ else $Tuple2(bC, (bD + al.payments[0].amount))
1029+ let fe = fd._1
1030+ let ff = fd._2
1031+ let bj = valueOrErrorMessage(getString(this, (N + aH)), "Unknown pool")
1032+ let fg = cT(bj, aH, g, fe, dM, ff, dN, aB, aC, aA)
1033+ let fh = fg._1
1034+ let ec = fg._2
1035+ let df = aJ(aK)
1036+ let fi = [IntegerEntry((((((aH + "_") + aK) + "_") + toString(df)) + w), eM), StringEntry((((((aH + "_") + aK) + "_") + toString(df)) + x), eL)]
1037+ let fj = dd(aH, aK, fh, ec, df, aA, bj, true)
1038+ nil
1039+ }
1040+ })
1041+
1042+
1043+
1044+@Callable(al)
10101045 func getShareAssetPriceREADONLY (aA) = {
1011- let eY = bi(aA)
1012- $Tuple2(nil, eY)
1046+ let fk = bi(aA)
1047+ $Tuple2(nil, fk)
10131048 }
10141049
10151050
10161051
10171052 @Callable(al)
1018-func getUserPositionShareAmountREADONLY (aK,da) = {
1019- let aH = valueOrErrorMessage(getString(this, (((aK + "_") + da) + v)), "Unknown position")
1020- let cD = getIntegerValue(this, (((((aH + "_") + aK) + "_") + da) + w))
1021- let dZ = eq(aK, aH, da, (cD > 0))
1022- $Tuple2(nil, dZ)
1053+func getUserPositionShareAmountREADONLY (aK,df) = {
1054+ let aH = valueOrErrorMessage(getString(this, (((aK + "_") + df) + v)), "Unknown position")
1055+ let cJ = getIntegerValue(this, (((((aH + "_") + aK) + "_") + df) + w))
1056+ let cE = eu(aK, aH, df, (cJ > 0))
1057+ $Tuple2(nil, cE)
10231058 }
10241059
10251060
10261061
10271062 @Callable(al)
1028-func getUserPositionInDollarsREADONLY (aK,eZ,da) = {
1029- func fa (aZ,aH) = {
1030- let fb = aZ
1031- let fc = fb._1
1032- let fd = fb._2
1033- let fe = fb._3
1063+func getUserPositionInDollarsREADONLY (aK,fl,df) = {
1064+ func fm (aZ,aH) = {
1065+ let fn = aZ
1066+ let fo = fn._1
1067+ let fp = fn._2
1068+ let fq = fn._3
10341069 let bj = valueOrErrorMessage(getString(this, (N + aH)), "Pool is not inited")
1035- let ff = aD(Address(fromBase58String(aH)), bj)
1036- let dH = ff._1
1037- let dI = ff._2
1038- let aB = ff._3
1039- let aC = ff._4
1040- let aA = ff._5
1041- let cD = valueOrElse(getInteger(this, (((((aH + "_") + aK) + "_") + da[fe]) + w)), 0)
1042- let dZ = eq(aK, aH, da[fe], (cD > 0))
1043- let eY = bi(aA)
1044- let fg = pow(10, 0, aT(aA), 0, 0, DOWN)
1045- let fh = fraction(dZ, eY, fg)
1046- if ((cD == 0))
1047- then $Tuple3((fc :+ fh), (fd :+ 0), (fe + 1))
1070+ let fr = aD(Address(fromBase58String(aH)), bj)
1071+ let dM = fr._1
1072+ let dN = fr._2
1073+ let aB = fr._3
1074+ let aC = fr._4
1075+ let aA = fr._5
1076+ let cJ = valueOrElse(getInteger(this, (((((aH + "_") + aK) + "_") + df[fq]) + w)), 0)
1077+ let cE = eu(aK, aH, df[fq], (cJ > 0))
1078+ let fk = bi(aA)
1079+ let fs = pow(10, 0, aT(aA), 0, 0, DOWN)
1080+ let ft = fraction(cE, fk, fs)
1081+ if ((cJ == 0))
1082+ then $Tuple3((fo :+ ft), (fp :+ 0), (fq + 1))
10481083 else {
1049- let eb = getStringValue(this, (((((aH + "_") + aK) + "_") + da[fe]) + x))
1050- let ea = {
1051- let ax = invoke(ai(), "getAssetDebt", [false, ((aK + "_") + da[fe]), eb], nil)
1084+ let ef = getStringValue(this, (((((aH + "_") + aK) + "_") + df[fq]) + x))
1085+ let ee = {
1086+ let ax = invoke(ai(), "getAssetDebt", [false, ((aK + "_") + df[fq]), ef], nil)
10521087 if ($isInstanceOf(ax, "Int"))
10531088 then ax
10541089 else throw(($getType(ax) + " couldn't be cast to Int"))
10551090 }
1056- let fi = getIntegerValue(ae, (eb + R))
1057- let fj = pow(10, 0, aT(eb), 0, 0, DOWN)
1058- let fk = fraction(ea, fi, fj)
1059- $Tuple3((fc :+ fh), (fd :+ fk), (fe + 1))
1091+ let fu = getIntegerValue(ae, (ef + R))
1092+ let fv = pow(10, 0, aT(ef), 0, 0, DOWN)
1093+ let fw = fraction(ee, fu, fv)
1094+ $Tuple3((fo :+ ft), (fp :+ fw), (fq + 1))
10601095 }
10611096 }
10621097
1063- let fl = {
1064- let bb = eZ
1098+ let fx = {
1099+ let bb = fl
10651100 let bc = size(bb)
10661101 let bd = $Tuple3(nil, nil, 0)
10671102 func be (bf,bg) = if ((bg >= bc))
10681103 then bf
1069- else fa(bf, bb[bg])
1104+ else fm(bf, bb[bg])
10701105
10711106 func bh (bf,bg) = if ((bg >= bc))
10721107 then bf
10741109
10751110 bh(be(be(be(be(be(be(be(be(be(be(be(be(be(be(be(be(be(be(be(be(bd, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20)
10761111 }
1077- let fm = fl._1
1078- let ea = fl._2
1079- $Tuple2(nil, $Tuple2(fm, ea))
1112+ let fy = fx._1
1113+ let ee = fx._2
1114+ $Tuple2(nil, $Tuple2(fy, ee))
10801115 }
10811116
10821117
10831118
10841119 @Callable(al)
1085-func replenish (aH,eK,eL) = if (if ((100 > eK))
1120+func replenish (aH,eO,eP) = if (if ((100 > eO))
10861121 then true
1087- else (eK > 300))
1122+ else (eO > 300))
10881123 then throw("Leverage can't be <100 and >300")
10891124 else if (if (!(getBooleanValue(this, (aH + E))))
1090- then (eK > 100)
1125+ then (eO > 100)
10911126 else false)
10921127 then throw("You can't borrow in this pool")
10931128 else {
10941129 let bj = valueOrErrorMessage(getString(this, (N + aH)), "Pool is not inited")
1095- let fn = aD(Address(fromBase58String(aH)), bj)
1096- let dH = fn._1
1097- let dI = fn._2
1098- let aB = fn._3
1099- let aC = fn._4
1100- let aA = fn._5
1101- let fo = if ((size(al.payments) == 2))
1102- then if ((aR(al.payments[0].assetId) != dH))
1130+ let fz = aD(Address(fromBase58String(aH)), bj)
1131+ let dM = fz._1
1132+ let dN = fz._2
1133+ let aB = fz._3
1134+ let aC = fz._4
1135+ let aA = fz._5
1136+ let fA = if ((size(al.payments) == 2))
1137+ then if ((aR(al.payments[0].assetId) != dM))
11031138 then throw("Wrong payment asset A")
1104- else if ((aR(al.payments[1].assetId) != dI))
1139+ else if ((aR(al.payments[1].assetId) != dN))
11051140 then throw("Wrong payment asset B")
1106- else $Tuple4(al.payments[0].amount, dH, al.payments[1].amount, dI)
1141+ else $Tuple4(al.payments[0].amount, dM, al.payments[1].amount, dN)
11071142 else if ((size(al.payments) == 1))
1108- then if ((aR(al.payments[0].assetId) == dH))
1109- then $Tuple4(al.payments[0].amount, dH, 0, dI)
1110- else if ((aR(al.payments[0].assetId) == dI))
1111- then $Tuple4(0, dH, al.payments[0].amount, dI)
1143+ then if ((aR(al.payments[0].assetId) == dM))
1144+ then $Tuple4(al.payments[0].amount, dM, 0, dN)
1145+ else if ((aR(al.payments[0].assetId) == dN))
1146+ then $Tuple4(0, dM, al.payments[0].amount, dN)
11121147 else throw("Wrong payment")
11131148 else throw("One or two payments expected")
1114- let bB = fo._1
1115- let fp = fo._2
1116- let bC = fo._3
1117- let fq = fo._4
1118- let fr = aJ(toString(al.caller))
1119- if ((eK > 100))
1149+ let bC = fA._1
1150+ let fB = fA._2
1151+ let bD = fA._3
1152+ let fC = fA._4
1153+ let fD = aJ(toString(al.caller))
1154+ if ((eO > 100))
11201155 then {
1121- let cD = eJ(bB, bC, fp, fq, eK, eL)
1122- let eG = makeString([toString(al.caller), aH, toString(bB), fp, toString(bC), fq, toString(aB), toString(aC), aA, eL, toString(cD)], ",")
1123- let fs = {
1124- let ax = invoke(this, "createNewRequest", [eG], nil)
1156+ let cJ = eN(bC, bD, fB, fC, eO, eP)
1157+ let eK = makeString([toString(al.caller), aH, toString(bC), fB, toString(bD), fC, toString(aB), toString(aC), aA, eP, toString(cJ)], ",")
1158+ let fE = {
1159+ let ax = invoke(this, "createNewRequest", [eK], nil)
11251160 if ($isInstanceOf(ax, "Int"))
11261161 then ax
11271162 else throw(($getType(ax) + " couldn't be cast to Int"))
11281163 }
1129- if ((fs == fs))
1164+ if ((fE == fE))
11301165 then {
1131- let ft = [((toString(al.caller) + "_") + toString(fr)), aA, eL, cD, toString(this), "replenishFromLand", toString(valueOrErrorMessage(fs, "Can't create new request"))]
1132- let bV = reentrantInvoke(ai(), "flashPosition", ft, nil)
1133- if ((bV == bV))
1166+ let fF = [((toString(al.caller) + "_") + toString(fD)), aA, eP, cJ, toString(this), "replenishFromLand", toString(valueOrErrorMessage(fE, "Can't create new request"))]
1167+ let bW = reentrantInvoke(ai(), "flashPosition", fF, nil)
1168+ if ((bW == bW))
11341169 then nil
11351170 else throw("Strict value is not equal to itself.")
11361171 }
11371172 else throw("Strict value is not equal to itself.")
11381173 }
11391174 else {
1140- let fu = cO(bj, aH, h, bB, dH, bC, dI, aB, aC, aA)
1141- let fv = fu._1
1142- let dX = fu._2
1143- (cY(aH, toString(al.caller), fv, dX, fr, aA, bj, false) ++ bw(dH, dI, aA))
1175+ let fG = cT(bj, aH, h, bC, dM, bD, dN, aB, aC, aA)
1176+ let fh = fG._1
1177+ let ec = fG._2
1178+ let fH = cD(Address(fromBase58String(aH)), bj, aA, fh)
1179+ let fI = fH._1
1180+ let fJ = fH._2
1181+ (dd(aH, toString(al.caller), fh, ec, fD, aA, bj, false) ++ bw(dM, dN, aA, [toString(fI), toString(fJ)]))
11441182 }
11451183 }
11461184
11471185
11481186
11491187 @Callable(al)
1150-func withdraw (aH,er) = ew(toString(al.caller), aH, toString(er), false)
1188+func withdraw (aH,ev) = eA(toString(al.caller), aH, toString(ev), false)
11511189
11521190
11531191
11541192 @Callable(al)
1155-func createUpdateStopLoss (er,fw,ap,fx) = {
1156- let fy = getIntegerValue(ae, (ap + R))
1157- if (!(isDefined(getInteger(this, (((((fw + "_") + toString(al.caller)) + "_") + toString(er)) + u)))))
1193+func createUpdateStopLoss (ev,fK,ap,fL) = {
1194+ let fM = getIntegerValue(ae, (ap + R))
1195+ if (!(isDefined(getInteger(this, (((((fK + "_") + toString(al.caller)) + "_") + toString(ev)) + u)))))
11581196 then throw("There are no user position")
1159- else if ((0 >= fx))
1197+ else if ((0 >= fL))
11601198 then throw("Price must be greater than 0")
1161- else if ((fx > fy))
1199+ else if ((fL > fM))
11621200 then throw("Price must be less than current token price")
1163- else [IntegerEntry((((((((toString(al.caller) + "_") + toString(er)) + "_") + fw) + "_") + ap) + S), fx)]
1201+ else [IntegerEntry((((((((toString(al.caller) + "_") + toString(ev)) + "_") + fK) + "_") + ap) + S), fL)]
11641202 }
11651203
11661204
11671205
11681206 @Callable(al)
1169-func deleteStopLoss (er,fw,ap) = if (!(isDefined(getInteger(this, (((((((toString(al.caller) + "_") + toString(er)) + "_") + fw) + "_") + ap) + S)))))
1207+func deleteStopLoss (ev,fK,ap) = if (!(isDefined(getInteger(this, (((((((toString(al.caller) + "_") + toString(ev)) + "_") + fK) + "_") + ap) + S)))))
11701208 then throw("No entry")
1171- else [DeleteEntry((((((((toString(al.caller) + "_") + toString(er)) + "_") + fw) + "_") + ap) + S))]
1209+ else [DeleteEntry((((((((toString(al.caller) + "_") + toString(ev)) + "_") + fK) + "_") + ap) + S))]
11721210
11731211
11741212
11751213 @Callable(al)
1176-func init (fz,fA,fB,ae,fC,af,fD,fE,fF) = if (isDefined(getString(T)))
1214+func init (fN,fO,fP,ae,fQ,af,fR,fS,fT) = if (isDefined(getString(T)))
11771215 then throw("Already inited")
1178- else [StringEntry(T, fz), StringEntry(U, fA), StringEntry(V, fB), StringEntry(X, ae), StringEntry(Y, fC), StringEntry(Z, af), StringEntry(aa, fD), StringEntry(ab, fE), StringEntry(W, fF)]
1216+ else [StringEntry(T, fN), StringEntry(U, fO), StringEntry(V, fP), StringEntry(X, ae), StringEntry(Y, fQ), StringEntry(Z, af), StringEntry(aa, fR), StringEntry(ab, fS), StringEntry(W, fT)]
11791217
11801218
11811219
11821220 @Callable(al)
1183-func createNewRequest (bU) = valueOrElse(am(al), {
1184- let fs = (valueOrElse(getInteger(this, M), 0) + 1)
1185- $Tuple2([StringEntry((toString(fs) + L), bU), IntegerEntry(M, fs)], fs)
1221+func createNewRequest (bV) = valueOrElse(am(al), {
1222+ let fE = (valueOrElse(getInteger(this, M), 0) + 1)
1223+ $Tuple2([StringEntry((toString(fE) + L), bV), IntegerEntry(M, fE)], fE)
11861224 })
11871225
11881226
11891227
11901228 @Callable(al)
1191-func replenishFromLand (eF) = valueOrElse(an(al), {
1192- let fG = eE(eF)
1193- let aK = fG._1
1194- let aH = fG._2
1195- let bB = fG._3
1196- let dH = fG._4
1197- let bC = fG._5
1198- let dI = fG._6
1199- let aB = fG._7
1200- let aC = fG._8
1201- let aA = fG._9
1202- let eH = fG._10
1203- let eI = fG._11
1229+func replenishFromLand (eJ) = valueOrElse(an(al), {
1230+ let fU = eI(eJ)
1231+ let aK = fU._1
1232+ let aH = fU._2
1233+ let bC = fU._3
1234+ let dM = fU._4
1235+ let bD = fU._5
1236+ let dN = fU._6
1237+ let aB = fU._7
1238+ let aC = fU._8
1239+ let aA = fU._9
1240+ let eL = fU._10
1241+ let eM = fU._11
12041242 if ((size(al.payments) != 1))
12051243 then throw("Wrong payment size")
1206- else if (if ((aR(al.payments[0].assetId) != eH))
1244+ else if (if ((aR(al.payments[0].assetId) != eL))
12071245 then true
1208- else (al.payments[0].amount != eI))
1246+ else (al.payments[0].amount != eM))
12091247 then throw("Wrong payment")
12101248 else {
1211- let fH = if ((dH == eH))
1212- then $Tuple2((bB + al.payments[0].amount), bC)
1213- else $Tuple2(bB, (bC + al.payments[0].amount))
1214- let fI = fH._1
1215- let fJ = fH._2
1249+ let fV = if ((dM == eL))
1250+ then $Tuple2((bC + al.payments[0].amount), bD)
1251+ else $Tuple2(bC, (bD + al.payments[0].amount))
1252+ let fe = fV._1
1253+ let ff = fV._2
12161254 let bj = valueOrErrorMessage(getString(this, (N + aH)), "Unknown pool")
1217- let fK = cO(bj, aH, g, fI, dH, fJ, dI, aB, aC, aA)
1218- let fv = fK._1
1219- let dX = fK._2
1220- let da = aJ(aK)
1221- let fL = [IntegerEntry((((((aH + "_") + aK) + "_") + toString(da)) + w), eI), StringEntry((((((aH + "_") + aK) + "_") + toString(da)) + x), eH)]
1222- let fM = cY(aH, aK, fv, dX, da, aA, bj, true)
1223- $Tuple2((((fM ++ bw(dH, dI, aA)) ++ fL) :+ DeleteEntry((eF + L))), fv)
1255+ let fW = cT(bj, aH, g, fe, dM, ff, dN, aB, aC, aA)
1256+ let fh = fW._1
1257+ let ec = fW._2
1258+ let df = aJ(aK)
1259+ let fi = [IntegerEntry((((((aH + "_") + aK) + "_") + toString(df)) + w), eM), StringEntry((((((aH + "_") + aK) + "_") + toString(df)) + x), eL)]
1260+ let fj = dd(aH, aK, fh, ec, df, aA, bj, true)
1261+ let fX = cD(Address(fromBase58String(aH)), bj, aA, fh)
1262+ let fI = fX._1
1263+ let fJ = fX._2
1264+ $Tuple2((((fj ++ bw(dM, dN, aA, [toString(fI), toString(fJ)])) ++ fi) :+ DeleteEntry((eJ + L))), fh)
12241265 }
12251266 })
12261267
12271268
12281269
12291270 @Callable(al)
1230-func liquidate (aK,er,fN) = valueOrElse(an(al), {
1231- let aH = valueOrErrorMessage(getString(this, (((aK + "_") + er) + v)), "no position")
1271+func liquidate (aK,ev,fY) = valueOrElse(an(al), {
1272+ let aH = valueOrErrorMessage(getString(this, (((aK + "_") + ev) + v)), "no position")
12321273 let bj = valueOrErrorMessage(getString(this, (N + aH)), "Pool is not inited")
1233- let fO = aD(Address(fromBase58String(aH)), bj)
1234- let dH = fO._1
1235- let dI = fO._2
1236- let aB = fO._3
1237- let aC = fO._4
1238- let aA = fO._5
1239- let bP = bQ(aH, bj, aA, fN)
1240- let cD = getIntegerValue(this, (((((aH + "_") + aK) + "_") + er) + w))
1241- let eb = getStringValue(this, (((((aH + "_") + aK) + "_") + er) + x))
1242- let dZ = eq(aK, aH, er, (cD > 0))
1243- if ((cD == 0))
1274+ let fZ = aD(Address(fromBase58String(aH)), bj)
1275+ let dM = fZ._1
1276+ let dN = fZ._2
1277+ let aB = fZ._3
1278+ let aC = fZ._4
1279+ let aA = fZ._5
1280+ let bQ = bR(aH, bj, aA, fY)
1281+ let cJ = getIntegerValue(this, (((((aH + "_") + aK) + "_") + ev) + w))
1282+ let ef = getStringValue(this, (((((aH + "_") + aK) + "_") + ev) + x))
1283+ let cE = eu(aK, aH, ev, (cJ > 0))
1284+ if ((cJ == 0))
12441285 then throw("You can't liquidate position without borrow")
1245- else [IntegerEntry((((((aH + "_") + aK) + "_") + er) + z), getIntegerValue(this, (aH + C))), IntegerEntry((aH + B), (aI(aH) - fN)), IntegerEntry((aH + A), (aG(aH) - fN)), IntegerEntry((((((aH + "_") + aK) + "_") + er) + u), (dZ - fN)), ScriptTransfer(al.caller, bP, fromBase58String(aA))]
1286+ else [IntegerEntry((((((aH + "_") + aK) + "_") + ev) + z), getIntegerValue(this, (aH + C))), IntegerEntry((aH + B), (aI(aH) - fY)), IntegerEntry((aH + A), (aG(aH) - fY)), IntegerEntry((((((aH + "_") + aK) + "_") + ev) + u), (cE - fY)), ScriptTransfer(al.caller, bQ, fromBase58String(aA))]
12461287 })
12471288
12481289
12491290
12501291 @Callable(al)
1251-func stopLoss (aK,er,aH,ap) = valueOrElse(ak(al), {
1252- let fy = getIntegerValue(ae, (ap + R))
1253- if (!(isDefined(getInteger(this, (((((((aK + "_") + toString(er)) + "_") + aH) + "_") + ap) + S)))))
1292+func stopLoss (aK,ev,aH,ap) = valueOrElse(ak(al), {
1293+ let fM = getIntegerValue(ae, (ap + R))
1294+ if (!(isDefined(getInteger(this, (((((((aK + "_") + toString(ev)) + "_") + aH) + "_") + ap) + S)))))
12541295 then throw("No entry")
1255- else (ew(toString(al.caller), aH, toString(er), true) :+ DeleteEntry((((((((aK + "_") + toString(er)) + "_") + aH) + "_") + ap) + S)))
1296+ else (eA(toString(al.caller), aH, toString(ev), true) :+ DeleteEntry((((((((aK + "_") + toString(ev)) + "_") + aH) + "_") + ap) + S)))
12561297 })
12571298
12581299
12591300
12601301 @Callable(al)
1261-func capitalizeExKeeper (aH,aE,fP,fQ,fR,dl,dm,dn,do,dp,dq,dr) = valueOrElse(ak(al), {
1262- let fS = if (fR)
1263- then cL(aE, aH)
1302+func capitalizeExKeeper (aH,aE,ga,gb,gc,dq,dr,ds,dt,du,dv,dw) = valueOrElse(ak(al), {
1303+ let gd = if (gc)
1304+ then cQ(aE, aH)
12641305 else {
1265- let fT = if ((aE == a))
1306+ let ge = if ((aE == a))
12661307 then ag
12671308 else ah
1268- $Tuple2(fQ, fT)
1309+ $Tuple2(gb, ge)
12691310 }
1270- let fU = fS._1
1271- let fT = fS._2
1272- let fV = dh(fP, fQ, fT, dl, dm, dn, do, dp, dq, dr)
1273- let cv = (fU - fQ)
1274- let fW = if ((cv > 0))
1275- then [IntegerEntry((aH + P), (cv + valueOrElse(getInteger(this, (aH + P)), 0)))]
1311+ let gf = gd._1
1312+ let ge = gd._2
1313+ let gg = dm(ga, gb, ge, dq, dr, ds, dt, du, dv, dw)
1314+ let cw = (gf - gb)
1315+ let gh = if ((cw > 0))
1316+ then [IntegerEntry((aH + P), (cw + valueOrElse(getInteger(this, (aH + P)), 0)))]
12761317 else nil
1277- (dD(aH, aE, fP, fV) ++ fW)
1318+ (dI(aH, aE, ga, gg) ++ gh)
12781319 })
12791320
12801321
12811322
12821323 @Callable(al)
1283-func capitalizeExPuzzle (aH,aE,fP,fQ,fR,du,dv,dr) = valueOrElse(ak(al), {
1284- let fX = if (fR)
1285- then cL(aE, aH)
1324+func capitalizeExPuzzle (aH,aE,ga,gb,gc,dz,dA,dw) = valueOrElse(ak(al), {
1325+ let gi = if (gc)
1326+ then cQ(aE, aH)
12861327 else {
1287- let fT = if ((aE == a))
1328+ let ge = if ((aE == a))
12881329 then ag
12891330 else ah
1290- $Tuple2(fQ, fT)
1331+ $Tuple2(gb, ge)
12911332 }
1292- let fU = fX._1
1293- let fT = fX._2
1294- let fV = dt(fP, fQ, fT, du, dv, dr)
1295- let cv = (fU - fQ)
1296- let fW = if ((cv > 0))
1297- then [IntegerEntry((aH + P), (cv + valueOrElse(getInteger(this, (aH + P)), 0)))]
1333+ let gf = gi._1
1334+ let ge = gi._2
1335+ let gg = dy(ga, gb, ge, dz, dA, dw)
1336+ let cw = (gf - gb)
1337+ let gh = if ((cw > 0))
1338+ then [IntegerEntry((aH + P), (cw + valueOrElse(getInteger(this, (aH + P)), 0)))]
12981339 else nil
1299- (dD(aH, aE, fP, fV) ++ fW)
1340+ (dI(aH, aE, ga, gg) ++ gh)
13001341 })
13011342
13021343
13031344
13041345 @Callable(al)
1305-func capitalizeExSwopFi (aH,aE,fP,fQ,fR,dx,dy,dz,dA,dB,dC,dr) = valueOrElse(ak(al), {
1306- let fY = if (fR)
1307- then cL(aE, aH)
1346+func capitalizeExSwopFi (aH,aE,ga,gb,gc,dC,dD,dE,dF,dG,dH,dw) = valueOrElse(ak(al), {
1347+ let gj = if (gc)
1348+ then cQ(aE, aH)
13081349 else {
1309- let fT = if ((aE == a))
1350+ let ge = if ((aE == a))
13101351 then ag
13111352 else ah
1312- $Tuple2(fQ, fT)
1353+ $Tuple2(gb, ge)
13131354 }
1314- let fU = fY._1
1315- let fT = fY._2
1316- let fV = dw(fP, fQ, fT, dx, dy, dz, dA, dB, dC, dr)
1317- let cv = (fU - fQ)
1318- let fW = if ((cv > 0))
1319- then [IntegerEntry((aH + P), (cv + valueOrElse(getInteger(this, (aH + P)), 0)))]
1355+ let gf = gj._1
1356+ let ge = gj._2
1357+ let gg = dB(ga, gb, ge, dC, dD, dE, dF, dG, dH, dw)
1358+ let cw = (gf - gb)
1359+ let gh = if ((cw > 0))
1360+ then [IntegerEntry((aH + P), (cw + valueOrElse(getInteger(this, (aH + P)), 0)))]
13201361 else nil
1321- (dD(aH, aE, fP, fV) ++ fW)
1362+ (dI(aH, aE, ga, gg) ++ gh)
13221363 })
13231364
13241365
13251366
13261367 @Callable(al)
1327-func initNewPool (aE,au,fZ,ga,gb,gc,gd,ge,gf) = valueOrElse(ak(al), if (if ((aE != a))
1368+func initNewPool (aE,au,gk,gl,gm,gn,go,gp,gq) = valueOrElse(ak(al), if (if ((aE != a))
13281369 then (aE != b)
13291370 else false)
13301371 then throw("Wrong type")
13311372 else {
1332- let gg = aD(Address(fromBase58String(au)), aE)
1333- let ay = gg._1
1334- let az = gg._2
1335- let gh = gg._3
1336- let gi = gg._4
1337- let aA = gg._5
1338-[IntegerEntry((au + F), fZ), IntegerEntry((au + G), ga), IntegerEntry((au + H), gb), IntegerEntry((au + I), gc), IntegerEntry((au + J), gd), IntegerEntry((au + K), ge), IntegerEntry((au + C), 0), IntegerEntry((au + D), 0), StringEntry((N + au), aE), StringEntry((aA + O), au), BooleanEntry((au + E), gf)]
1373+ let gr = aD(Address(fromBase58String(au)), aE)
1374+ let ay = gr._1
1375+ let az = gr._2
1376+ let gs = gr._3
1377+ let gt = gr._4
1378+ let aA = gr._5
1379+[IntegerEntry((au + F), gk), IntegerEntry((au + G), gl), IntegerEntry((au + H), gm), IntegerEntry((au + I), gn), IntegerEntry((au + J), go), IntegerEntry((au + K), gp), IntegerEntry((au + C), 0), IntegerEntry((au + D), 0), StringEntry((N + au), aE), StringEntry((aA + O), au), BooleanEntry((au + E), gq)]
13391380 })
13401381
13411382
1342-@Verifier(gj)
1343-func gk () = sigVerify(gj.bodyBytes, gj.proofs[0], gj.senderPublicKey)
1383+@Verifier(gu)
1384+func gv () = sigVerify(gu.bodyBytes, gu.proofs[0], gu.senderPublicKey)
13441385
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = "SF"
55
66 let b = "WX"
77
88 let c = "capNoLoan"
99
1010 let d = "capLoan"
1111
1212 let e = "stopLossNoLoan"
1313
1414 let f = "stopLossLoan"
1515
1616 let g = "loan"
1717
1818 let h = "noLoan"
1919
2020 let i = "noFee"
2121
2222 let j = 100000000
2323
2424 let k = 10000000000
2525
2626 let l = toBigInt(10000000000000000)
2727
2828 let m = 1000000
2929
3030 let n = "A_asset_balance"
3131
3232 let o = "B_asset_balance"
3333
3434 let p = "A_asset_id"
3535
3636 let q = "B_asset_id"
3737
3838 let r = "share_asset_id"
3939
4040 let s = "share_asset_supply"
4141
4242 let t = "commission"
4343
4444 let u = "_user_position"
4545
4646 let v = "_user_position_pool"
4747
4848 let w = "_user_position_borrow_amount"
4949
5050 let x = "_user_position_borrow_asset_id"
5151
5252 let y = "_user_position_number"
5353
5454 let z = "_user_position_interest"
5555
5656 let A = "_pool_total"
5757
5858 let B = "_pool_total_loan"
5959
6060 let C = "_pool_interest_loan"
6161
6262 let D = "_pool_interest_no_loan"
6363
6464 let E = "_pool_can_borrow"
6565
6666 let F = "_axly_fee_without_loan"
6767
6868 let G = "_axly_fee_with_loan"
6969
7070 let H = "_axly_fee_cap_with_loan"
7171
7272 let I = "_axly_fee_cap_no_loan"
7373
7474 let J = "_axly_fee_stoploss_with_loan"
7575
7676 let K = "_axly_fee_stoploss_no_loan"
7777
7878 let L = "_request_id"
7979
8080 let M = "requests_iter"
8181
8282 let N = "pool_"
8383
8484 let O = "_pool_share_id"
8585
8686 let P = "_pool_cap_change"
8787
8888 let Q = "last_price"
8989
9090 let R = "_twap5B"
9191
9292 let S = "_stop_loss"
9393
9494 let T = "axly_money_box"
9595
9696 let U = "swopfi_farming_addr"
9797
9898 let V = "lend_service_addr"
9999
100100 let W = "admin_call_pub_key"
101101
102102 let X = "price_oracle"
103103
104104 let Y = "exchange_contract"
105105
106106 let Z = "wx_swap_contract"
107107
108108 let aa = "swop_id"
109109
110110 let ab = "wx_id"
111111
112112 let ac = Address(fromBase58String(valueOrErrorMessage(getString(this, T), "No axly moneyBox address")))
113113
114114 let ad = Address(fromBase58String(valueOrErrorMessage(getString(this, Y), "No exchange contract address")))
115115
116116 let ae = Address(fromBase58String(valueOrErrorMessage(getString(this, X), "No price oracle address")))
117117
118118 let af = Address(fromBase58String(valueOrErrorMessage(getString(this, Z), "No wx swap address")))
119119
120120 let ag = fromBase58String(valueOrErrorMessage(getString(this, aa), "No swop id"))
121121
122122 let ah = fromBase58String(valueOrErrorMessage(getString(this, ab), "No wx id"))
123123
124124 func ai () = Address(fromBase58String(valueOrErrorMessage(getString(this, V), "Can't get lend service addr")))
125125
126126
127127 func aj () = addressFromPublicKey(fromBase58String(valueOrErrorMessage(getString(this, W), "Can't get admin addr")))
128128
129129
130130 func ak (al) = if ((al.caller == aj()))
131131 then unit
132132 else throw("Only admin can call this function")
133133
134134
135135 func am (al) = if ((al.caller == this))
136136 then unit
137137 else throw("Only contract itself can call this function")
138138
139139
140140 func an (al) = if ((al.caller == ai()))
141141 then unit
142142 else throw("Only land contract can call this function")
143143
144144
145145 func ao (ap) = {
146146 let aq = ap
147147 if ($isInstanceOf(aq, "ByteVector"))
148148 then {
149149 let ar = aq
150150 assetBalance(this, ar)
151151 }
152152 else if ($isInstanceOf(aq, "Unit"))
153153 then {
154154 let as = aq
155155 wavesBalance(this).available
156156 }
157157 else throw("Match error")
158158 }
159159
160160
161161 func at (au) = $Tuple5(valueOrErrorMessage(getString(au, p), "Can't get pool A asset id"), valueOrErrorMessage(getString(au, q), "Can't get pool B asset id"), valueOrErrorMessage(getInteger(au, n), "Can't get pool A asset balance"), valueOrErrorMessage(getInteger(au, o), "Can't get pool B asset balance"), valueOrErrorMessage(getString(au, r), "Can't get share asset id"))
162162
163163
164164 func av (au) = {
165165 let aw = {
166166 let ax = invoke(au, "getPoolConfigWrapperREADONLY", nil, nil)
167167 if ($isInstanceOf(ax, "List[Any]"))
168168 then ax
169169 else throw(($getType(ax) + " couldn't be cast to List[Any]"))
170170 }
171171 if ((aw == aw))
172172 then {
173173 let ay = valueOrErrorMessage({
174174 let ax = aw[4]
175175 if ($isInstanceOf(ax, "String"))
176176 then ax
177177 else unit
178178 }, "Can't get pool A asset id")
179179 let az = valueOrErrorMessage({
180180 let ax = aw[5]
181181 if ($isInstanceOf(ax, "String"))
182182 then ax
183183 else unit
184184 }, "Can't get pool B asset id")
185185 let aA = valueOrErrorMessage({
186186 let ax = aw[3]
187187 if ($isInstanceOf(ax, "String"))
188188 then ax
189189 else unit
190190 }, "Can't get pool LP asset id")
191191 let aB = {
192192 let ax = invoke(au, "getAccBalanceWrapperREADONLY", [ay], nil)
193193 if ($isInstanceOf(ax, "Int"))
194194 then ax
195195 else throw(($getType(ax) + " couldn't be cast to Int"))
196196 }
197197 if ((aB == aB))
198198 then {
199199 let aC = {
200200 let ax = invoke(au, "getAccBalanceWrapperREADONLY", [az], nil)
201201 if ($isInstanceOf(ax, "Int"))
202202 then ax
203203 else throw(($getType(ax) + " couldn't be cast to Int"))
204204 }
205205 if ((aC == aC))
206206 then $Tuple5(ay, az, aB, aC, aA)
207207 else throw("Strict value is not equal to itself.")
208208 }
209209 else throw("Strict value is not equal to itself.")
210210 }
211211 else throw("Strict value is not equal to itself.")
212212 }
213213
214214
215215 func aD (au,aE) = if ((aE == a))
216216 then at(au)
217217 else if ((aE == b))
218218 then av(au)
219219 else throw("Wrong pool type")
220220
221221
222222 func aF (au,aE,aA) = if ((aE == a))
223223 then valueOrErrorMessage(getInteger(au, s), "Can't get share asset supply")
224224 else if ((aE == b))
225225 then valueOrErrorMessage(assetInfo(fromBase58String(aA)), "Wrong ShareId").quantity
226226 else throw("Wrong pool type")
227227
228228
229229 func aG (aH) = valueOrElse(getInteger(this, (aH + A)), 0)
230230
231231
232232 func aI (aH) = valueOrElse(getInteger(this, (aH + B)), 0)
233233
234234
235235 func aJ (aK) = (valueOrElse(getInteger(this, (aK + y)), 0) + 1)
236236
237237
238238 func aL (aH,aM) = if ((aM == d))
239239 then getIntegerValue(this, (aH + I))
240240 else if ((aM == c))
241241 then getIntegerValue(this, (aH + H))
242242 else if ((aM == g))
243243 then getIntegerValue(this, (aH + G))
244244 else if ((aM == h))
245245 then getIntegerValue(this, (aH + F))
246246 else if ((aM == i))
247247 then 0
248248 else throw("Wrong fee type")
249249
250250
251251 func aN () = Address(fromBase58String(valueOrErrorMessage(getString(this, U), "Can't get swopfi farming addr")))
252252
253253
254254 func aO (au) = {
255255 let aP = Address(fromBase58String(valueOrErrorMessage(getString(au, "%s__factoryContract"), "Can't get WX factory contract addr")))
256256 let aQ = split(valueOrErrorMessage(getString(aP, "%s__factoryConfig"), "Can't get WX factory cfg"), "__")
257257 Address(fromBase58String(aQ[1]))
258258 }
259259
260260
261261 func aR (ap) = {
262262 let aq = ap
263263 if ($isInstanceOf(aq, "ByteVector"))
264264 then {
265265 let ar = aq
266266 toBase58String(ar)
267267 }
268268 else if ($isInstanceOf(aq, "Unit"))
269269 then {
270270 let as = aq
271271 "WAVES"
272272 }
273273 else throw("Not Asset id")
274274 }
275275
276276
277277 func aS (ap) = if ((ap == "WAVES"))
278278 then unit
279279 else fromBase58String(ap)
280280
281281
282282 func aT (ap) = if ((ap == "WAVES"))
283283 then 8
284284 else {
285285 let aq = assetInfo(fromBase58String(ap))
286286 if ($isInstanceOf(aq, "Asset"))
287287 then {
288288 let aU = aq
289289 aU.decimals
290290 }
291291 else throw("Can't find asset")
292292 }
293293
294294
295295 func aV (ap) = pow(10, 0, aT(ap), 0, 0, DOWN)
296296
297297
298298 func aW (aX) = {
299299 func aY (aZ,ap) = {
300300 let ba = getIntegerValue(ae, (ap + R))
301301 (aZ :+ ba)
302302 }
303303
304304 let bb = aX
305305 let bc = size(bb)
306306 let bd = nil
307307 func be (bf,bg) = if ((bg >= bc))
308308 then bf
309309 else aY(bf, bb[bg])
310310
311311 func bh (bf,bg) = if ((bg >= bc))
312312 then bf
313313 else throw("List size exceeds 50")
314314
315315 bh(be(be(be(be(be(be(be(be(be(be(be(be(be(be(be(be(be(be(be(be(be(be(be(be(be(be(be(be(be(be(be(be(be(be(be(be(be(be(be(be(be(be(be(be(be(be(be(be(be(be(bd, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20), 21), 22), 23), 24), 25), 26), 27), 28), 29), 30), 31), 32), 33), 34), 35), 36), 37), 38), 39), 40), 41), 42), 43), 44), 45), 46), 47), 48), 49), 50)
316316 }
317317
318318
319319 func bi (aA) = {
320320 let aH = valueOrErrorMessage(getString(this, (aA + O)), "Can't find pool addr by share id")
321321 let au = Address(fromBase58String(aH))
322322 let bj = valueOrErrorMessage(getString(this, (N + aH)), "Pool is not inited")
323323 let bk = aD(au, bj)
324324 let ay = bk._1
325325 let az = bk._2
326326 let bl = bk._3
327327 let bm = bk._4
328328 let bn = getIntegerValue(ae, (ay + R))
329329 let bo = getIntegerValue(ae, (az + R))
330330 let bp = aF(au, bj, aA)
331331 let bq = pow(10, 0, aT(ay), 0, 0, DOWN)
332332 let br = pow(10, 0, aT(az), 0, 0, DOWN)
333333 let bs = pow(10, 0, aT(aA), 0, 0, DOWN)
334334 let bt = (fraction(bl, bn, bq) + fraction(bm, bo, br))
335335 fraction(bt, bs, bp)
336336 }
337337
338338
339339 func bu (bv) = {
340340 func aY (aZ,aA) = (aZ :+ bi(aA))
341341
342342 let bb = bv
343343 let bc = size(bb)
344344 let bd = nil
345345 func be (bf,bg) = if ((bg >= bc))
346346 then bf
347347 else aY(bf, bb[bg])
348348
349349 func bh (bf,bg) = if ((bg >= bc))
350350 then bf
351351 else throw("List size exceeds 20")
352352
353353 bh(be(be(be(be(be(be(be(be(be(be(be(be(be(be(be(be(be(be(be(be(bd, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20)
354354 }
355355
356356
357-func bw (ay,az,aA) = {
358- let bx = aW([ay, az])
359- let by = bi(aA)
360- let bz = [toString(bx[0]), toString(bx[1]), toString(by)]
361-[StringEntry(Q, makeString(bz, ","))]
357+func bw (ay,az,aA,bx) = {
358+ let by = aW([ay, az])
359+ let bz = bi(aA)
360+ let bA = ([toString(by[0]), toString(by[1]), toString(bz)] ++ bx)
361+[StringEntry(Q, makeString(bA, ","))]
362362 }
363363
364364
365-func bA (bj,au,bB,ay,bC,az,aB,aC) = if ((bj == a))
365+func bB (bj,au,bC,ay,bD,az,aB,aC) = if ((bj == a))
366366 then {
367- let bD = {
368- let ax = invoke(au, "callFunction", ["calcLPReplenishTwoTokensREADONLY", [toString(bB), toString(bC)]], nil)
367+ let bE = {
368+ let ax = invoke(au, "callFunction", ["calcLPReplenishTwoTokensREADONLY", [toString(bC), toString(bD)]], nil)
369369 if ($isInstanceOf(ax, "List[Any]"))
370370 then ax
371371 else throw(($getType(ax) + " couldn't be cast to List[Any]"))
372372 }
373- if ((bD == bD))
373+ if ((bE == bE))
374374 then $Tuple5({
375- let ax = bD[3]
375+ let ax = bE[3]
376376 if ($isInstanceOf(ax, "Int"))
377377 then ax
378378 else throw(($getType(ax) + " couldn't be cast to Int"))
379379 }, {
380- let ax = bD[4]
380+ let ax = bE[4]
381381 if ($isInstanceOf(ax, "Int"))
382382 then ax
383383 else throw(($getType(ax) + " couldn't be cast to Int"))
384384 }, {
385- let ax = bD[1]
385+ let ax = bE[1]
386386 if ($isInstanceOf(ax, "Int"))
387387 then ax
388388 else throw(($getType(ax) + " couldn't be cast to Int"))
389- }, aR(bD[2]), {
390- let ax = bD[0]
389+ }, aR(bE[2]), {
390+ let ax = bE[0]
391391 if ($isInstanceOf(ax, "Int"))
392392 then ax
393393 else throw(($getType(ax) + " couldn't be cast to Int"))
394394 })
395395 else throw("Strict value is not equal to itself.")
396396 }
397397 else {
398- let bE = $Tuple2(split({
399- let ax = invoke(au, "evaluatePutByAmountAssetREADONLY", [bB], nil)
398+ let bF = $Tuple2(split({
399+ let ax = invoke(au, "evaluatePutByAmountAssetREADONLY", [bC], nil)
400400 if ($isInstanceOf(ax, "String"))
401401 then ax
402402 else throw(($getType(ax) + " couldn't be cast to String"))
403403 }, "__"), split({
404- let ax = invoke(au, "evaluatePutByPriceAssetREADONLY", [bC], nil)
404+ let ax = invoke(au, "evaluatePutByPriceAssetREADONLY", [bD], nil)
405405 if ($isInstanceOf(ax, "String"))
406406 then ax
407407 else throw(($getType(ax) + " couldn't be cast to String"))
408408 }, "__"))
409- if ((bE == bE))
409+ if ((bF == bF))
410410 then {
411- let bF = bE._2
412- let bG = bE._1
413- let bH = parseIntValue(bG[1])
414- let bI = parseIntValue(bF[1])
415- if ((bI > bH))
411+ let bG = bF._2
412+ let bH = bF._1
413+ let bI = parseIntValue(bH[1])
414+ let bJ = parseIntValue(bG[1])
415+ if ((bJ > bI))
416416 then {
417- let bJ = parseIntValue(bG[8])
418- $Tuple5(bB, bJ, (bC - bJ), az, bI)
417+ let bK = parseIntValue(bH[8])
418+ $Tuple5(bC, bK, (bD - bK), az, bJ)
419419 }
420420 else {
421- let bJ = parseIntValue(bF[7])
422- $Tuple5(bJ, bC, (bB - bJ), ay, bH)
421+ let bK = parseIntValue(bG[7])
422+ $Tuple5(bK, bD, (bC - bK), ay, bI)
423423 }
424424 }
425425 else throw("Strict value is not equal to itself.")
426426 }
427427
428428
429-func bK (au,bj,bB,ay,bC,az) = {
430- let bL = [AttachedPayment(aS(ay), bB), AttachedPayment(aS(az), bC)]
429+func bL (au,bj,bC,ay,bD,az) = {
430+ let bM = [AttachedPayment(aS(ay), bC), AttachedPayment(aS(az), bD)]
431431 if ((bj == a))
432- then invoke(au, "callFunction", ["replenishWithTwoTokens", ["false", "0"]], bL)
433- else invoke(au, "put", [1000000, false], bL)
432+ then invoke(au, "callFunction", ["replenishWithTwoTokens", ["false", "0"]], bM)
433+ else invoke(au, "put", [1000000, false], bM)
434434 }
435435
436436
437-func bM (au,bj,bJ,bN) = {
438- let bL = [AttachedPayment(aS(bN), bJ)]
437+func bN (au,bj,bK,bO) = {
438+ let bM = [AttachedPayment(aS(bO), bK)]
439439 if ((bj == a))
440- then invoke(au, "callFunction", ["replenishWithOneToken", ["0", "false", "0"]], bL)
441- else invoke(au, "putOneTkn", [0, false], bL)
440+ then invoke(au, "callFunction", ["replenishWithOneToken", ["0", "false", "0"]], bM)
441+ else invoke(au, "putOneTkn", [0, false], bM)
442442 }
443443
444444
445-func bO (aH,bj,aA,bP) = {
446- let bL = [AttachedPayment(fromBase58String(aA), bP)]
445+func bP (aH,bj,aA,bQ) = {
446+ let bM = [AttachedPayment(fromBase58String(aA), bQ)]
447447 if ((bj == a))
448- then invoke(aN(), "lockShareTokens", [aH, 0], bL)
449- else invoke(aO(addressFromStringValue(aH)), "stake", nil, bL)
448+ then invoke(aN(), "lockShareTokens", [aH, 0], bM)
449+ else invoke(aO(addressFromStringValue(aH)), "stake", nil, bM)
450450 }
451451
452452
453-func bQ (aH,bj,aA,bP) = {
454- let bR = if ((bj == a))
455- then $Tuple3(aN(), "withdrawShareTokens", [aH, bP])
453+func bR (aH,bj,aA,bQ) = {
454+ let bS = if ((bj == a))
455+ then $Tuple3(aN(), "withdrawShareTokens", [aH, bQ])
456456 else if ((bj == b))
457- then $Tuple3(aO(Address(fromBase58String(aH))), "unstake", [aA, bP])
457+ then $Tuple3(aO(Address(fromBase58String(aH))), "unstake", [aA, bQ])
458458 else throw("Wrong pool type")
459- let bS = bR._1
460- let bT = bR._2
461- let bU = bR._3
462- let bV = invoke(bS, bT, bU, nil)
463- if ((bV == bV))
464- then bP
459+ let bT = bS._1
460+ let bU = bS._2
461+ let bV = bS._3
462+ let bW = invoke(bT, bU, bV, nil)
463+ if ((bW == bW))
464+ then bQ
465465 else throw("Strict value is not equal to itself.")
466466 }
467467
468468
469-func bW (aH,bX,bY,aB,aC,bZ,ca) = {
469+func bX (aH,bY,bZ,aB,aC,ca,cb) = {
470470 let au = Address(fromBase58String(aH))
471- let cb = 1000000
472- let cc = getIntegerValue(au, t)
473- let cd = fraction(bZ, cb, (cb - cc), CEILING)
474- let ce = if ((ca == bX))
471+ let cc = 1000000
472+ let cd = getIntegerValue(au, t)
473+ let ce = fraction(ca, cc, (cc - cd), CEILING)
474+ let cf = if ((cb == bY))
475475 then {
476- let cf = fraction(cd, aC, (aB - cd), CEILING)
477- $Tuple2(cf, bY)
476+ let cg = fraction(ce, aC, (aB - ce), CEILING)
477+ $Tuple2(cg, bZ)
478478 }
479479 else {
480- let cf = fraction(cd, aB, (aC - cd), CEILING)
481- $Tuple2(cf, bX)
480+ let cg = fraction(ce, aB, (aC - ce), CEILING)
481+ $Tuple2(cg, bY)
482482 }
483- let cf = ce._1
484- let cg = ce._2
485- $Tuple2(cg, cf)
483+ let cg = cf._1
484+ let ch = cf._2
485+ $Tuple2(ch, cg)
486486 }
487487
488488
489-func ch (aH,bX,bY,aB,aC,bZ,ca) = {
490- let ci = getIntegerValue(af, "%s__protocolFee")
491- let cj = getIntegerValue(af, "%s__poolFee")
492- let ck = toBigInt(100000000)
493- let cl = if ((ca == bX))
489+func ci (aH,bY,bZ,aB,aC,ca,cb) = {
490+ let cj = getIntegerValue(af, "%s__protocolFee")
491+ let ck = getIntegerValue(af, "%s__poolFee")
492+ let cl = toBigInt(100000000)
493+ let cm = if ((cb == bY))
494494 then {
495- let cf = fraction(bZ, aC, (aB - bZ))
496- $Tuple2(cf, bY)
495+ let cg = fraction(ca, aC, (aB - ca))
496+ $Tuple2(cg, bZ)
497497 }
498498 else {
499- let cf = fraction(bZ, aB, (aC - bZ))
500- $Tuple2(cf, bX)
499+ let cg = fraction(ca, aB, (aC - ca))
500+ $Tuple2(cg, bY)
501501 }
502- let cf = cl._1
503- let cg = cl._2
504- let cm = toInt(fraction(toBigInt(cf), ck, (ck - toBigInt((ci + cj))), CEILING))
505- $Tuple2(cg, cm)
502+ let cg = cm._1
503+ let ch = cm._2
504+ let cn = toInt(fraction(toBigInt(cg), cl, (cl - toBigInt((cj + ck))), CEILING))
505+ $Tuple2(ch, cn)
506506 }
507507
508508
509-func cn (aE,aH,bX,bY,aB,aC,bZ,ca) = if ((aE == a))
509+func co (aE,aH,bY,bZ,aB,aC,ca,cb) = if ((aE == a))
510510 then {
511- let co = bW(aH, bX, bY, aB, aC, bZ, ca)
512- let cg = co._1
513- let cf = co._2
514- invoke(addressFromStringValue(aH), "callFunction", ["exchange", [toString(bZ)]], [AttachedPayment(aS(cg), cf)])
511+ let cp = bX(aH, bY, bZ, aB, aC, ca, cb)
512+ let ch = cp._1
513+ let cg = cp._2
514+ invoke(addressFromStringValue(aH), "callFunction", ["exchange", [toString(ca)]], [AttachedPayment(aS(ch), cg)])
515515 }
516516 else {
517- let cp = ch(aH, bX, bY, aB, aC, bZ, ca)
518- let cg = cp._1
519- let cf = cp._2
520- invoke(af, "swap", [bZ, ca, toString(this)], [AttachedPayment(aS(cg), cf)])
517+ let cq = ci(aH, bY, bZ, aB, aC, ca, cb)
518+ let ch = cq._1
519+ let cg = cq._2
520+ invoke(af, "swap", [ca, cb, toString(this)], [AttachedPayment(aS(ch), cg)])
521521 }
522522
523523
524-func cq (bj,aH,bB,ay,bC,az,aB,aC) = {
524+func cr (bj,aH,bC,ay,bD,az,aB,aC) = {
525525 let au = addressFromStringValue(aH)
526526 if ((bj == a))
527527 then {
528- let bV = {
529- let ax = invoke(au, "callFunction", ["calcLPReplenishDiffPropREADONLY", [toString(bB), toString(bC), "0"]], nil)
528+ let bW = {
529+ let ax = invoke(au, "callFunction", ["calcLPReplenishDiffPropREADONLY", [toString(bC), toString(bD), "0"]], nil)
530530 if ($isInstanceOf(ax, "List[Any]"))
531531 then ax
532532 else throw(($getType(ax) + " couldn't be cast to List[Any]"))
533533 }
534- if ((bV == bV))
534+ if ((bW == bW))
535535 then $Tuple2({
536- let ax = bV[0]
536+ let ax = bW[0]
537537 if ($isInstanceOf(ax, "Int"))
538538 then ax
539539 else throw(($getType(ax) + " couldn't be cast to Int"))
540540 }, {
541- let ax = bV[1]
541+ let ax = bW[1]
542542 if ($isInstanceOf(ax, "Int"))
543543 then ax
544544 else throw(($getType(ax) + " couldn't be cast to Int"))
545545 })
546546 else throw("Strict value is not equal to itself.")
547547 }
548548 else if ((bj == b))
549549 then {
550- let cr = if (if ((bB > 0))
551- then (bC > 0)
550+ let cs = if (if ((bC > 0))
551+ then (bD > 0)
552552 else false)
553553 then {
554- let cs = bA(bj, au, bB, ay, bC, az, aB, aC)
555- let ct = cs._1
556- let cu = cs._2
557- let cv = cs._3
558- let cw = cs._4
559- let cx = cs._5
560- $Tuple3(cv, cw, cx)
554+ let ct = bB(bj, au, bC, ay, bD, az, aB, aC)
555+ let cu = ct._1
556+ let cv = ct._2
557+ let cw = ct._3
558+ let cx = ct._4
559+ let cy = ct._5
560+ $Tuple3(cw, cx, cy)
561561 }
562- else if ((bB > 0))
563- then $Tuple3(bB, ay, 0)
564- else $Tuple3(bC, az, 0)
565- let cv = cr._1
566- let cw = cr._2
567- let cy = cr._3
568- let cz = if ((cv > 0))
562+ else if ((bC > 0))
563+ then $Tuple3(bC, ay, 0)
564+ else $Tuple3(bD, az, 0)
565+ let cw = cs._1
566+ let cx = cs._2
567+ let cz = cs._3
568+ let cA = if ((cw > 0))
569569 then {
570- let bV = {
571- let ax = invoke(au, "putOneTknREADONLY", [cw, cv], nil)
570+ let bW = {
571+ let ax = invoke(au, "putOneTknREADONLY", [cx, cw], nil)
572572 if ($isInstanceOf(ax, "(Int, Int, Int)"))
573573 then ax
574574 else throw(($getType(ax) + " couldn't be cast to (Int, Int, Int)"))
575575 }
576- if ((bV == bV))
577- then $Tuple2(bV._1, bV._3)
576+ if ((bW == bW))
577+ then $Tuple2(bW._1, bW._3)
578578 else throw("Strict value is not equal to itself.")
579579 }
580580 else $Tuple2(0, 0)
581- let cA = cz._1
582- let cB = cz._2
583- $Tuple2((cy + cA), cB)
581+ let cB = cA._1
582+ let cC = cA._2
583+ $Tuple2((cz + cB), cC)
584584 }
585585 else throw("Wrong pool type")
586586 }
587587
588588
589-func cC (bj,aH,cx,aA,ay,az,aB,aC,cD,cE) = {
590- let au = addressFromStringValue(aH)
589+func cD (au,bj,aA,cE) = {
591590 let cF = if ((bj == a))
592591 then {
593- let bV = {
594- let ax = invoke(au, "callFunction", ["withdrawREADONLY", [toString(cx), toString(aB), toString(aC)]], nil)
595- if ($isInstanceOf(ax, "List[Any]"))
592+ let bW = {
593+ let ax = invoke(au, "callFunction", ["withdrawREADONLY", [toString(cE)]], nil)
594+ if ($isInstanceOf(ax, "(Int, Int)"))
596595 then ax
597- else throw(($getType(ax) + " couldn't be cast to List[Any]"))
596+ else throw(($getType(ax) + " couldn't be cast to (Int, Int)"))
598597 }
599- if ((bV == bV))
600- then $Tuple2({
601- let ax = bV[0]
602- if ($isInstanceOf(ax, "Int"))
603- then ax
604- else throw(($getType(ax) + " couldn't be cast to Int"))
605- }, {
606- let ax = bV[1]
607- if ($isInstanceOf(ax, "Int"))
608- then ax
609- else throw(($getType(ax) + " couldn't be cast to Int"))
610- })
598+ if ((bW == bW))
599+ then $Tuple2(bW._1, bW._2)
611600 else throw("Strict value is not equal to itself.")
612601 }
613- else if ((bj == b))
614- then {
615- let cG = split({
616- let ax = invoke(au, "evaluateGetREADONLY", [aA, cx], nil)
617- if ($isInstanceOf(ax, "String"))
618- then ax
619- else throw(($getType(ax) + " couldn't be cast to String"))
620- }, "__")
621- if ((cG == cG))
622- then $Tuple2(parseIntValue(cG[1]), parseIntValue(cG[2]))
623- else throw("Strict value is not equal to itself.")
624- }
625- else throw("Wrong pool type")
626- let cH = cF._1
627- let cI = cF._2
628- if ((cD > 0))
629- then {
630- let cJ = if (if ((cE == ay))
631- then (cD > cH)
632- else false)
633- then (cD - cH)
634- else if (if ((cE == az))
635- then (cD > cI)
636- else false)
637- then (cD - cI)
638- else 0
639- let cK = if ((cJ > 0))
640- then if ((bj == a))
641- then bW(aH, ay, az, aB, aC, cJ, cE)
642- else ch(aH, ay, az, aB, aC, cJ, cE)
643- else $Tuple2("", 0)
644- let cg = cK._1
645- let cf = cK._2
646- if ((cE == ay))
647- then $Tuple2(((cH + cJ) - cD), (cI - cf))
648- else $Tuple2((cH - cf), ((cI + cJ) - cD))
602+ else {
603+ let bW = split({
604+ let ax = invoke(au, "evaluateGetREADONLY", [aA, cE], nil)
605+ if ($isInstanceOf(ax, "String"))
606+ then ax
607+ else throw(($getType(ax) + " couldn't be cast to String"))
608+ }, "__")
609+ if ((bW == bW))
610+ then $Tuple2(parseIntValue(bW[1]), parseIntValue(bW[2]))
611+ else throw("Strict value is not equal to itself.")
649612 }
650- else $Tuple2(cH, cI)
613+ let cG = cF._1
614+ let cH = cF._2
615+ $Tuple2(cG, cH)
651616 }
652617
653618
654-func cL (aE,aH) = if ((aE == a))
619+func cI (bj,aH,cy,aA,ay,az,aB,aC,cJ,cK) = {
620+ let au = addressFromStringValue(aH)
621+ let cL = cD(au, bj, aA, cy)
622+ let cM = cL._1
623+ let cN = cL._2
624+ if ((cJ > 0))
625+ then {
626+ let cO = if (if ((cK == ay))
627+ then (cJ > cM)
628+ else false)
629+ then (cJ - cM)
630+ else if (if ((cK == az))
631+ then (cJ > cN)
632+ else false)
633+ then (cJ - cN)
634+ else 0
635+ let cP = if ((cO > 0))
636+ then if ((bj == a))
637+ then bX(aH, ay, az, aB, aC, cO, cK)
638+ else ci(aH, ay, az, aB, aC, cO, cK)
639+ else $Tuple2("", 0)
640+ let ch = cP._1
641+ let cg = cP._2
642+ if ((cK == ay))
643+ then $Tuple2(((cM + cO) - cJ), (cN - cg))
644+ else $Tuple2((cM - cg), ((cN + cO) - cJ))
645+ }
646+ else $Tuple2(cM, cN)
647+ }
648+
649+
650+func cQ (aE,aH) = if ((aE == a))
655651 then {
656- let cM = ao(ag)
657- if ((cM == cM))
652+ let cR = ao(ag)
653+ if ((cR == cR))
658654 then {
659- let bV = invoke(aN(), "claim", [aH], nil)
660- if ((bV == bV))
655+ let bW = invoke(aN(), "claim", [aH], nil)
656+ if ((bW == bW))
661657 then {
662- let cN = ao(ag)
663- $Tuple2((cN - cM), ag)
658+ let cS = ao(ag)
659+ $Tuple2((cS - cR), ag)
664660 }
665661 else throw("Strict value is not equal to itself.")
666662 }
667663 else throw("Strict value is not equal to itself.")
668664 }
669665 else if ((aE == b))
670666 then {
671- let cM = ao(ah)
672- if ((cM == cM))
667+ let cR = ao(ah)
668+ if ((cR == cR))
673669 then {
674- let bV = invoke(aO(Address(fromBase58String(aH))), "claimWX", [aH], nil)
675- if ((bV == bV))
670+ let bW = invoke(aO(Address(fromBase58String(aH))), "claimWX", [aH], nil)
671+ if ((bW == bW))
676672 then {
677- let cN = ao(ah)
678- $Tuple2((cN - cM), ah)
673+ let cS = ao(ah)
674+ $Tuple2((cS - cR), ah)
679675 }
680676 else throw("Strict value is not equal to itself.")
681677 }
682678 else throw("Strict value is not equal to itself.")
683679 }
684680 else throw("Wrong pool type")
685681
686682
687-func cO (bj,aH,aM,bB,ay,bC,az,aB,aC,cP) = {
688- let cQ = ao(fromBase58String(cP))
689- if ((cQ == cQ))
683+func cT (bj,aH,aM,bC,ay,bD,az,aB,aC,cU) = {
684+ let cV = ao(fromBase58String(cU))
685+ if ((cV == cV))
690686 then {
691687 let au = addressFromStringValue(aH)
692- let cR = if (if ((bB > 0))
693- then (bC > 0)
688+ let cW = if (if ((bC > 0))
689+ then (bD > 0)
694690 else false)
695691 then {
696- let cS = bA(bj, au, bB, ay, bC, az, aB, aC)
697- let ct = cS._1
698- let cu = cS._2
699- let cv = cS._3
700- let cw = cS._4
701- let bV = bK(au, bj, ct, ay, cu, az)
702- if ((bV == bV))
703- then $Tuple2(cv, cw)
692+ let cX = bB(bj, au, bC, ay, bD, az, aB, aC)
693+ let cu = cX._1
694+ let cv = cX._2
695+ let cw = cX._3
696+ let cx = cX._4
697+ let bW = bL(au, bj, cu, ay, cv, az)
698+ if ((bW == bW))
699+ then $Tuple2(cw, cx)
704700 else throw("Strict value is not equal to itself.")
705701 }
706- else if ((bB > 0))
707- then $Tuple2(bB, ay)
708- else if ((bC > 0))
709- then $Tuple2(bC, az)
702+ else if ((bC > 0))
703+ then $Tuple2(bC, ay)
704+ else if ((bD > 0))
705+ then $Tuple2(bD, az)
710706 else throw("pmts must be > 0")
711- let cv = cR._1
712- let cw = cR._2
713- let bV = if ((cv > 0))
714- then bM(au, bj, cv, cw)
707+ let cw = cW._1
708+ let cx = cW._2
709+ let bW = if ((cw > 0))
710+ then bN(au, bj, cw, cx)
715711 else nil
716- if ((bV == bV))
712+ if ((bW == bW))
717713 then {
718- let cT = ao(fromBase58String(cP))
719- let cU = (cT - cQ)
720- let cV = fraction(cU, aL(aH, aM), m)
721- let cW = (cU - cV)
722- if ((0 >= cW))
714+ let cY = ao(fromBase58String(cU))
715+ let cZ = (cY - cV)
716+ let da = fraction(cZ, aL(aH, aM), m)
717+ let db = (cZ - da)
718+ if ((0 >= db))
723719 then throw("amount of staked sharetokens must be > 0")
724720 else {
725- let cX = bO(aH, bj, cP, cW)
726- if ((cX == cX))
727- then $Tuple2(cW, cV)
721+ let dc = bP(aH, bj, cU, db)
722+ if ((dc == dc))
723+ then $Tuple2(db, da)
728724 else throw("Strict value is not equal to itself.")
729725 }
730726 }
731727 else throw("Strict value is not equal to itself.")
732728 }
733729 else throw("Strict value is not equal to itself.")
734730 }
735731
736732
737-func cY (aH,aK,cZ,cV,da,aA,aE,db) = {
738- let dc = aG(aH)
739- let dd = aI(aH)
740- let de = if (db)
741- then $Tuple2(getIntegerValue(this, (aH + C)), (dd + cZ))
742- else $Tuple2(getIntegerValue(this, (aH + D)), dd)
743- let df = de._1
744- let dg = de._2
745-[IntegerEntry((aH + A), (dc + cZ)), IntegerEntry((aH + B), dg), IntegerEntry((((((aH + "_") + aK) + "_") + toString(da)) + u), cZ), IntegerEntry((((((aH + "_") + aK) + "_") + toString(da)) + z), df), StringEntry((((aK + "_") + toString(da)) + v), aH), IntegerEntry((aK + y), da), ScriptTransfer(ac, cV, fromBase58String(aA))]
733+func dd (aH,aK,de,da,df,aA,aE,dg) = {
734+ let dh = aG(aH)
735+ let di = aI(aH)
736+ let dj = if (dg)
737+ then $Tuple2(getIntegerValue(this, (aH + C)), (di + de))
738+ else $Tuple2(getIntegerValue(this, (aH + D)), di)
739+ let dk = dj._1
740+ let dl = dj._2
741+[IntegerEntry((aH + A), (dh + de)), IntegerEntry((aH + B), dl), IntegerEntry((((((aH + "_") + aK) + "_") + toString(df)) + u), de), IntegerEntry((((((aH + "_") + aK) + "_") + toString(df)) + z), dk), StringEntry((((aK + "_") + toString(df)) + v), aH), IntegerEntry((aK + y), df), ScriptTransfer(ac, da, fromBase58String(aA))]
746742 }
747743
748744
749-func dh (di,dj,dk,dl,dm,dn,do,dp,dq,dr) = {
750- let ds = ao(aS(di))
751- if ((ds == ds))
745+func dm (dn,do,dp,dq,dr,ds,dt,du,dv,dw) = {
746+ let dx = ao(aS(dn))
747+ if ((dx == dx))
752748 then {
753- let bV = invoke(ad, "swap", [dl, dm, dn, do, dp, dq, dr], [AttachedPayment(dk, dj)])
754- if ((bV == bV))
755- then (ao(aS(di)) - ds)
749+ let bW = invoke(ad, "swap", [dq, dr, ds, dt, du, dv, dw], [AttachedPayment(dp, do)])
750+ if ((bW == bW))
751+ then (ao(aS(dn)) - dx)
756752 else throw("Strict value is not equal to itself.")
757753 }
758754 else throw("Strict value is not equal to itself.")
759755 }
760756
761757
762-func dt (di,dj,dk,du,dv,dr) = {
763- let ds = ao(aS(di))
764- if ((ds == ds))
758+func dy (dn,do,dp,dz,dA,dw) = {
759+ let dx = ao(aS(dn))
760+ if ((dx == dx))
765761 then {
766- let bV = invoke(ad, "puzzleSwap", [du, dv, dr], [AttachedPayment(dk, dj)])
767- if ((bV == bV))
768- then (ao(aS(di)) - ds)
762+ let bW = invoke(ad, "puzzleSwap", [dz, dA, dw], [AttachedPayment(dp, do)])
763+ if ((bW == bW))
764+ then (ao(aS(dn)) - dx)
769765 else throw("Strict value is not equal to itself.")
770766 }
771767 else throw("Strict value is not equal to itself.")
772768 }
773769
774770
775-func dw (di,dj,dk,dx,dy,dz,dA,dB,dC,dr) = {
776- let ds = ao(aS(di))
777- if ((ds == ds))
771+func dB (dn,do,dp,dC,dD,dE,dF,dG,dH,dw) = {
772+ let dx = ao(aS(dn))
773+ if ((dx == dx))
778774 then {
779- let bV = invoke(ad, "swopfiSwap", [dx, dy, dz, dA, dB, dC, dr], [AttachedPayment(dk, dj)])
780- if ((bV == bV))
781- then (ao(aS(di)) - ds)
775+ let bW = invoke(ad, "swopfiSwap", [dC, dD, dE, dF, dG, dH, dw], [AttachedPayment(dp, do)])
776+ if ((bW == bW))
777+ then (ao(aS(dn)) - dx)
782778 else throw("Strict value is not equal to itself.")
783779 }
784780 else throw("Strict value is not equal to itself.")
785781 }
786782
787783
788-func dD (aH,bj,dE,dF) = {
784+func dI (aH,bj,dJ,dK) = {
789785 let au = Address(fromBase58String(aH))
790- let dG = aD(au, bj)
791- let dH = dG._1
792- let dI = dG._2
793- let aB = dG._3
794- let aC = dG._4
795- let aA = dG._5
796- if (if ((dE != dH))
797- then (dE != dI)
786+ let dL = aD(au, bj)
787+ let dM = dL._1
788+ let dN = dL._2
789+ let aB = dL._3
790+ let aC = dL._4
791+ let aA = dL._5
792+ if (if ((dJ != dM))
793+ then (dJ != dN)
798794 else false)
799795 then throw("Wrong asset")
800796 else {
801- let dJ = if ((dE == dH))
802- then $Tuple2(dF, 0)
803- else $Tuple2(0, dF)
804- let bB = dJ._1
805- let bC = dJ._2
806- let dK = cO(bj, aH, i, bB, dH, bC, dI, aB, aC, aA)
807- let cZ = dK._1
808- let dL = dK._2
809- let dM = valueOrElse(getInteger(this, (aH + C)), 0)
810- let dN = valueOrElse(getInteger(this, (aH + D)), 0)
811- let dO = aG(aH)
812- let dP = aI(aH)
813- let dQ = fraction(dP, j, dO)
814- let dR = fraction(cZ, dQ, j)
815- let dS = (cZ - dR)
816- let dT = if ((dP > 0))
817- then (dM + fraction(dR, k, dP))
797+ let dO = if ((dJ == dM))
798+ then $Tuple2(dK, 0)
799+ else $Tuple2(0, dK)
800+ let bC = dO._1
801+ let bD = dO._2
802+ let dP = cT(bj, aH, i, bC, dM, bD, dN, aB, aC, aA)
803+ let de = dP._1
804+ let dQ = dP._2
805+ let dR = valueOrElse(getInteger(this, (aH + C)), 0)
806+ let dS = valueOrElse(getInteger(this, (aH + D)), 0)
807+ let dT = aG(aH)
808+ let dU = aI(aH)
809+ let dV = fraction(dU, j, dT)
810+ let dW = fraction(de, dV, j)
811+ let dX = (de - dW)
812+ let dY = if ((dU > 0))
813+ then (dR + fraction(dW, k, dU))
818814 else 0
819- let dU = if (((dO - dP) > 0))
820- then (dN + fraction(dS, k, (dO - dP)))
815+ let dZ = if (((dT - dU) > 0))
816+ then (dS + fraction(dX, k, (dT - dU)))
821817 else 0
822- let dV = fraction(dR, aL(aH, d), m)
823- let dW = fraction(dS, aL(aH, c), m)
824- let dX = bQ(aH, bj, aA, (dV + dW))
825- if ((dX == dX))
826- then ([IntegerEntry((aH + C), dT), IntegerEntry((aH + D), dU), IntegerEntry((aH + A), ((dO + cZ) - dX)), IntegerEntry((aH + B), ((dP + dR) - dV)), ScriptTransfer(ac, (dV + dW), fromBase58String(aA))] ++ bw(dH, dI, aA))
818+ let ea = fraction(dW, aL(aH, d), m)
819+ let eb = fraction(dX, aL(aH, c), m)
820+ let ec = bR(aH, bj, aA, (ea + eb))
821+ if ((ec == ec))
822+ then ([IntegerEntry((aH + C), dY), IntegerEntry((aH + D), dZ), IntegerEntry((aH + A), ((dT + de) - ec)), IntegerEntry((aH + B), ((dU + dW) - ea)), ScriptTransfer(ac, (ea + eb), fromBase58String(aA))] ++ bw(dM, dN, aA, nil))
827823 else throw("Strict value is not equal to itself.")
828824 }
829825 }
830826
831827
832-func dY (aH,dZ,ea,eb) = {
828+func ed (aH,cE,ee,ef) = {
833829 let au = Address(fromBase58String(aH))
834830 let bj = valueOrErrorMessage(getString(this, (N + aH)), "Unknown pool")
835- let ec = aD(au, bj)
836- let bX = ec._1
837- let bY = ec._2
838- let aB = ec._3
839- let aC = ec._4
840- let aA = ec._5
841- let ed = ao(aS(bX))
842- if ((ed == ed))
831+ let eg = aD(au, bj)
832+ let bY = eg._1
833+ let bZ = eg._2
834+ let aB = eg._3
835+ let aC = eg._4
836+ let aA = eg._5
837+ let eh = ao(aS(bY))
838+ if ((eh == eh))
843839 then {
844- let ee = ao(aS(bY))
845- if ((ee == ee))
840+ let ei = ao(aS(bZ))
841+ if ((ei == ei))
846842 then {
847- let bV = if ((bj == a))
848- then invoke(au, "callFunction", ["withdraw", [toString(dZ)]], nil)
843+ let bW = if ((bj == a))
844+ then invoke(au, "callFunction", ["withdraw", [toString(cE)]], nil)
849845 else {
850- let bV = bQ(aH, bj, aA, dZ)
851- if ((bV == bV))
852- then invoke(au, "get", nil, [AttachedPayment(aS(aA), dZ)])
846+ let bW = bR(aH, bj, aA, cE)
847+ if ((bW == bW))
848+ then invoke(au, "get", nil, [AttachedPayment(aS(aA), cE)])
853849 else throw("Strict value is not equal to itself.")
854850 }
855- if ((bV == bV))
851+ if ((bW == bW))
856852 then {
857- let ef = ao(aS(bX))
858- let eg = ao(aS(bY))
859- let eh = $Tuple2((ef - ed), (eg - ee))
860- let ei = eh._1
861- let ej = eh._2
862- let ek = if ((ea > 0))
853+ let ej = ao(aS(bY))
854+ let ek = ao(aS(bZ))
855+ let el = $Tuple2((ej - eh), (ek - ei))
856+ let em = el._1
857+ let en = el._2
858+ let eo = if ((ee > 0))
863859 then {
864- let cJ = if (if ((eb == bX))
865- then (ea > ei)
860+ let cO = if (if ((ef == bY))
861+ then (ee > em)
866862 else false)
867- then (ea - ei)
868- else if (if ((eb == bY))
869- then (ea > ej)
863+ then (ee - em)
864+ else if (if ((ef == bZ))
865+ then (ee > en)
870866 else false)
871- then (ea - ej)
867+ then (ee - en)
872868 else 0
873- let el = if ((cJ > 0))
874- then cn(bj, aH, bX, bY, (aB - ei), (aC - ej), cJ, eb)
869+ let ep = if ((cO > 0))
870+ then co(bj, aH, bY, bZ, (aB - em), (aC - en), cO, ef)
875871 else nil
876- if ((el == el))
872+ if ((ep == ep))
877873 then {
878- let em = ao(aS(bX))
879- let en = ao(aS(bY))
880- if ((eb == bX))
881- then $Tuple2(((em - ed) - ea), (en - ee))
882- else $Tuple2((em - ed), ((en - ee) - ea))
874+ let eq = ao(aS(bY))
875+ let er = ao(aS(bZ))
876+ if ((ef == bY))
877+ then $Tuple2(((eq - eh) - ee), (er - ei))
878+ else $Tuple2((eq - eh), ((er - ei) - ee))
883879 }
884880 else throw("Strict value is not equal to itself.")
885881 }
886- else $Tuple2(ei, ej)
887- let eo = ek._1
888- let ep = ek._2
889- $Tuple7(eo, bX, ep, bY, ef, eg, aA)
882+ else $Tuple2(em, en)
883+ let es = eo._1
884+ let et = eo._2
885+ $Tuple7(es, bY, et, bZ, ej, ek, aA)
890886 }
891887 else throw("Strict value is not equal to itself.")
892888 }
893889 else throw("Strict value is not equal to itself.")
894890 }
895891 else throw("Strict value is not equal to itself.")
896892 }
897893
898894
899-func eq (aK,aH,er,es) = {
900- let et = valueOrErrorMessage(getInteger(this, (((((aH + "_") + aK) + "_") + er) + u)), "Unknown position")
901- let eu = getIntegerValue(this, (((((aH + "_") + aK) + "_") + er) + z))
902- let ev = if (es)
895+func eu (aK,aH,ev,ew) = {
896+ let ex = valueOrErrorMessage(getInteger(this, (((((aH + "_") + aK) + "_") + ev) + u)), "Unknown position")
897+ let ey = getIntegerValue(this, (((((aH + "_") + aK) + "_") + ev) + z))
898+ let ez = if (ew)
903899 then getIntegerValue(this, (aH + C))
904900 else getIntegerValue(this, (aH + D))
905- (et + fraction(et, (ev - eu), k))
901+ (ex + fraction(ex, (ez - ey), k))
906902 }
907903
908904
909-func ew (aK,aH,er,ex) = {
910- let et = valueOrErrorMessage(getInteger(this, (((((aH + "_") + aK) + "_") + er) + u)), "Unknown position")
911- let cD = valueOrElse(getInteger(this, (((((aH + "_") + aK) + "_") + er) + w)), 0)
912- let dZ = eq(aK, aH, er, (cD > 0))
913- let ey = aG(aH)
914- let ez = Address(fromBase58String(aK))
915- let eb = valueOrElse(getString(this, (((((aH + "_") + aK) + "_") + er) + x)), "")
916- let ea = if ((cD > 0))
905+func eA (aK,aH,ev,eB) = {
906+ let ex = valueOrErrorMessage(getInteger(this, (((((aH + "_") + aK) + "_") + ev) + u)), "Unknown position")
907+ let cJ = valueOrElse(getInteger(this, (((((aH + "_") + aK) + "_") + ev) + w)), 0)
908+ let cE = eu(aK, aH, ev, (cJ > 0))
909+ let eC = aG(aH)
910+ let eD = Address(fromBase58String(aK))
911+ let ef = valueOrElse(getString(this, (((((aH + "_") + aK) + "_") + ev) + x)), "")
912+ let ee = if ((cJ > 0))
917913 then {
918- let ax = invoke(ai(), "getAssetDebt", [false, ((aK + "_") + er), eb], nil)
914+ let ax = invoke(ai(), "getAssetDebt", [false, ((aK + "_") + ev), ef], nil)
919915 if ($isInstanceOf(ax, "Int"))
920916 then ax
921917 else throw(($getType(ax) + " couldn't be cast to Int"))
922918 }
923919 else 0
924- let eA = dY(aH, dZ, ea, eb)
925- if ((eA == eA))
920+ let eE = ed(aH, cE, ee, ef)
921+ if ((eE == eE))
926922 then {
927- let aA = eA._7
928- let eg = eA._6
929- let ef = eA._5
930- let bY = eA._4
931- let eB = eA._3
932- let bX = eA._2
933- let eC = eA._1
934- let eD = if ((ea > 0))
935- then invoke(ai(), "repayFor", [((aK + "_") + er)], [AttachedPayment(aS(eb), ea)])
923+ let aA = eE._7
924+ let ek = eE._6
925+ let ej = eE._5
926+ let bZ = eE._4
927+ let eF = eE._3
928+ let bY = eE._2
929+ let eG = eE._1
930+ let eH = if ((ee > 0))
931+ then invoke(ai(), "repayFor", [((aK + "_") + ev)], [AttachedPayment(aS(ef), ee)])
936932 else 0
937- if ((eD == eD))
938- then ([DeleteEntry((((((aH + "_") + aK) + "_") + er) + u)), DeleteEntry((((((aH + "_") + aK) + "_") + er) + z)), IntegerEntry((aH + A), (ey - dZ)), ScriptTransfer(ez, eC, aS(bX)), ScriptTransfer(ez, eB, aS(bY))] ++ bw(bX, bY, aA))
933+ if ((eH == eH))
934+ then ([DeleteEntry((((((aH + "_") + aK) + "_") + ev) + u)), DeleteEntry((((((aH + "_") + aK) + "_") + ev) + z)), IntegerEntry((aH + A), (eC - cE)), ScriptTransfer(eD, eG, aS(bY)), ScriptTransfer(eD, eF, aS(bZ))] ++ bw(bY, bZ, aA, nil))
939935 else throw("Strict value is not equal to itself.")
940936 }
941937 else throw("Strict value is not equal to itself.")
942938 }
943939
944940
945-func eE (eF) = {
946- let eG = split(valueOrErrorMessage(getString(this, (eF + L)), ("No request with id " + eF)), ",")
947- let aK = eG[0]
948- let aH = eG[1]
949- let bB = parseIntValue(eG[2])
950- let dH = eG[3]
951- let bC = parseIntValue(eG[4])
952- let dI = eG[5]
953- let aB = parseIntValue(eG[6])
954- let aC = parseIntValue(eG[7])
955- let aA = eG[8]
956- let eH = eG[9]
957- let eI = parseIntValue(eG[10])
958- $Tuple11(aK, aH, bB, dH, bC, dI, aB, aC, aA, eH, eI)
941+func eI (eJ) = {
942+ let eK = split(valueOrErrorMessage(getString(this, (eJ + L)), ("No request with id " + eJ)), ",")
943+ let aK = eK[0]
944+ let aH = eK[1]
945+ let bC = parseIntValue(eK[2])
946+ let dM = eK[3]
947+ let bD = parseIntValue(eK[4])
948+ let dN = eK[5]
949+ let aB = parseIntValue(eK[6])
950+ let aC = parseIntValue(eK[7])
951+ let aA = eK[8]
952+ let eL = eK[9]
953+ let eM = parseIntValue(eK[10])
954+ $Tuple11(aK, aH, bC, dM, bD, dN, aB, aC, aA, eL, eM)
959955 }
960956
961957
962-func eJ (bB,bC,ay,az,eK,eL) = {
958+func eN (bC,bD,ay,az,eO,eP) = {
963959 let bn = getIntegerValue(ae, (ay + R))
964960 let bo = getIntegerValue(ae, (az + R))
965- let eM = pow(10, 0, aT(ay), 0, 0, DOWN)
966- let eN = pow(10, 0, aT(az), 0, 0, DOWN)
967- let eO = (fraction(bn, bB, eM) + fraction(bo, bC, eN))
968- let eP = if ((eL == ay))
969- then $Tuple2(bn, eM)
970- else $Tuple2(bo, eN)
971- let eQ = eP._1
972- let eR = eP._2
973- fraction(fraction(eO, (eK - 100), 100), eR, eQ)
961+ let eQ = pow(10, 0, aT(ay), 0, 0, DOWN)
962+ let eR = pow(10, 0, aT(az), 0, 0, DOWN)
963+ let eS = (fraction(bn, bC, eQ) + fraction(bo, bD, eR))
964+ let eT = if ((eP == ay))
965+ then $Tuple2(bn, eQ)
966+ else $Tuple2(bo, eR)
967+ let eU = eT._1
968+ let eV = eT._2
969+ fraction(fraction(eS, (eO - 100), 100), eV, eU)
974970 }
975971
976972
977973 @Callable(al)
978-func calcPriceImpactEVALONLY (aH,eK,eL,bB,bC) = if (if ((100 > eK))
974+func calcPriceImpactEVALONLY (aH,eO,eP,bC,bD) = if (if ((100 > eO))
979975 then true
980- else (eK > 300))
976+ else (eO > 300))
981977 then throw("Leverage can't be <100 and >300")
982978 else {
983979 let bj = valueOrErrorMessage(getString(this, (N + aH)), "Pool is not inited")
984- let eS = aD(Address(fromBase58String(aH)), bj)
985- let dH = eS._1
986- let dI = eS._2
987- let aB = eS._3
988- let aC = eS._4
989- let aA = eS._5
990- let cD = if ((eK > 100))
991- then eJ(bB, bC, dH, dI, eK, eL)
980+ let eW = aD(Address(fromBase58String(aH)), bj)
981+ let dM = eW._1
982+ let dN = eW._2
983+ let aB = eW._3
984+ let aC = eW._4
985+ let aA = eW._5
986+ let cJ = if ((eO > 100))
987+ then eN(bC, bD, dM, dN, eO, eP)
992988 else 0
993- let eT = if ((eL == dH))
994- then $Tuple2((bB + cD), bC)
995- else $Tuple2(bB, (bC + cD))
996- let eU = eT._1
997- let eV = eT._2
998- let eW = cq(bj, aH, eU, dH, eV, dI, aB, aC)
999- let cx = eW._1
1000- let cB = eW._2
1001- let eX = if ((0 > cB))
1002- then (cB * -1)
1003- else cB
1004- $Tuple2(nil, [eX])
989+ let eX = if ((eP == dM))
990+ then $Tuple2((bC + cJ), bD)
991+ else $Tuple2(bC, (bD + cJ))
992+ let eY = eX._1
993+ let eZ = eX._2
994+ let fa = cr(bj, aH, eY, dM, eZ, dN, aB, aC)
995+ let cy = fa._1
996+ let cC = fa._2
997+ let fb = if ((0 > cC))
998+ then (cC * -1)
999+ else cC
1000+ $Tuple2(nil, [fb])
10051001 }
10061002
10071003
10081004
10091005 @Callable(al)
1006+func replenishFromLandEVALONLY (eJ) = valueOrElse(an(al), {
1007+ let fc = eI(eJ)
1008+ let aK = fc._1
1009+ let aH = fc._2
1010+ let bC = fc._3
1011+ let dM = fc._4
1012+ let bD = fc._5
1013+ let dN = fc._6
1014+ let aB = fc._7
1015+ let aC = fc._8
1016+ let aA = fc._9
1017+ let eL = fc._10
1018+ let eM = fc._11
1019+ if ((size(al.payments) != 1))
1020+ then throw("Wrong payment size")
1021+ else if (if ((aR(al.payments[0].assetId) != eL))
1022+ then true
1023+ else (al.payments[0].amount != eM))
1024+ then throw("Wrong payment")
1025+ else {
1026+ let fd = if ((dM == eL))
1027+ then $Tuple2((bC + al.payments[0].amount), bD)
1028+ else $Tuple2(bC, (bD + al.payments[0].amount))
1029+ let fe = fd._1
1030+ let ff = fd._2
1031+ let bj = valueOrErrorMessage(getString(this, (N + aH)), "Unknown pool")
1032+ let fg = cT(bj, aH, g, fe, dM, ff, dN, aB, aC, aA)
1033+ let fh = fg._1
1034+ let ec = fg._2
1035+ let df = aJ(aK)
1036+ let fi = [IntegerEntry((((((aH + "_") + aK) + "_") + toString(df)) + w), eM), StringEntry((((((aH + "_") + aK) + "_") + toString(df)) + x), eL)]
1037+ let fj = dd(aH, aK, fh, ec, df, aA, bj, true)
1038+ nil
1039+ }
1040+ })
1041+
1042+
1043+
1044+@Callable(al)
10101045 func getShareAssetPriceREADONLY (aA) = {
1011- let eY = bi(aA)
1012- $Tuple2(nil, eY)
1046+ let fk = bi(aA)
1047+ $Tuple2(nil, fk)
10131048 }
10141049
10151050
10161051
10171052 @Callable(al)
1018-func getUserPositionShareAmountREADONLY (aK,da) = {
1019- let aH = valueOrErrorMessage(getString(this, (((aK + "_") + da) + v)), "Unknown position")
1020- let cD = getIntegerValue(this, (((((aH + "_") + aK) + "_") + da) + w))
1021- let dZ = eq(aK, aH, da, (cD > 0))
1022- $Tuple2(nil, dZ)
1053+func getUserPositionShareAmountREADONLY (aK,df) = {
1054+ let aH = valueOrErrorMessage(getString(this, (((aK + "_") + df) + v)), "Unknown position")
1055+ let cJ = getIntegerValue(this, (((((aH + "_") + aK) + "_") + df) + w))
1056+ let cE = eu(aK, aH, df, (cJ > 0))
1057+ $Tuple2(nil, cE)
10231058 }
10241059
10251060
10261061
10271062 @Callable(al)
1028-func getUserPositionInDollarsREADONLY (aK,eZ,da) = {
1029- func fa (aZ,aH) = {
1030- let fb = aZ
1031- let fc = fb._1
1032- let fd = fb._2
1033- let fe = fb._3
1063+func getUserPositionInDollarsREADONLY (aK,fl,df) = {
1064+ func fm (aZ,aH) = {
1065+ let fn = aZ
1066+ let fo = fn._1
1067+ let fp = fn._2
1068+ let fq = fn._3
10341069 let bj = valueOrErrorMessage(getString(this, (N + aH)), "Pool is not inited")
1035- let ff = aD(Address(fromBase58String(aH)), bj)
1036- let dH = ff._1
1037- let dI = ff._2
1038- let aB = ff._3
1039- let aC = ff._4
1040- let aA = ff._5
1041- let cD = valueOrElse(getInteger(this, (((((aH + "_") + aK) + "_") + da[fe]) + w)), 0)
1042- let dZ = eq(aK, aH, da[fe], (cD > 0))
1043- let eY = bi(aA)
1044- let fg = pow(10, 0, aT(aA), 0, 0, DOWN)
1045- let fh = fraction(dZ, eY, fg)
1046- if ((cD == 0))
1047- then $Tuple3((fc :+ fh), (fd :+ 0), (fe + 1))
1070+ let fr = aD(Address(fromBase58String(aH)), bj)
1071+ let dM = fr._1
1072+ let dN = fr._2
1073+ let aB = fr._3
1074+ let aC = fr._4
1075+ let aA = fr._5
1076+ let cJ = valueOrElse(getInteger(this, (((((aH + "_") + aK) + "_") + df[fq]) + w)), 0)
1077+ let cE = eu(aK, aH, df[fq], (cJ > 0))
1078+ let fk = bi(aA)
1079+ let fs = pow(10, 0, aT(aA), 0, 0, DOWN)
1080+ let ft = fraction(cE, fk, fs)
1081+ if ((cJ == 0))
1082+ then $Tuple3((fo :+ ft), (fp :+ 0), (fq + 1))
10481083 else {
1049- let eb = getStringValue(this, (((((aH + "_") + aK) + "_") + da[fe]) + x))
1050- let ea = {
1051- let ax = invoke(ai(), "getAssetDebt", [false, ((aK + "_") + da[fe]), eb], nil)
1084+ let ef = getStringValue(this, (((((aH + "_") + aK) + "_") + df[fq]) + x))
1085+ let ee = {
1086+ let ax = invoke(ai(), "getAssetDebt", [false, ((aK + "_") + df[fq]), ef], nil)
10521087 if ($isInstanceOf(ax, "Int"))
10531088 then ax
10541089 else throw(($getType(ax) + " couldn't be cast to Int"))
10551090 }
1056- let fi = getIntegerValue(ae, (eb + R))
1057- let fj = pow(10, 0, aT(eb), 0, 0, DOWN)
1058- let fk = fraction(ea, fi, fj)
1059- $Tuple3((fc :+ fh), (fd :+ fk), (fe + 1))
1091+ let fu = getIntegerValue(ae, (ef + R))
1092+ let fv = pow(10, 0, aT(ef), 0, 0, DOWN)
1093+ let fw = fraction(ee, fu, fv)
1094+ $Tuple3((fo :+ ft), (fp :+ fw), (fq + 1))
10601095 }
10611096 }
10621097
1063- let fl = {
1064- let bb = eZ
1098+ let fx = {
1099+ let bb = fl
10651100 let bc = size(bb)
10661101 let bd = $Tuple3(nil, nil, 0)
10671102 func be (bf,bg) = if ((bg >= bc))
10681103 then bf
1069- else fa(bf, bb[bg])
1104+ else fm(bf, bb[bg])
10701105
10711106 func bh (bf,bg) = if ((bg >= bc))
10721107 then bf
10731108 else throw("List size exceeds 20")
10741109
10751110 bh(be(be(be(be(be(be(be(be(be(be(be(be(be(be(be(be(be(be(be(be(bd, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20)
10761111 }
1077- let fm = fl._1
1078- let ea = fl._2
1079- $Tuple2(nil, $Tuple2(fm, ea))
1112+ let fy = fx._1
1113+ let ee = fx._2
1114+ $Tuple2(nil, $Tuple2(fy, ee))
10801115 }
10811116
10821117
10831118
10841119 @Callable(al)
1085-func replenish (aH,eK,eL) = if (if ((100 > eK))
1120+func replenish (aH,eO,eP) = if (if ((100 > eO))
10861121 then true
1087- else (eK > 300))
1122+ else (eO > 300))
10881123 then throw("Leverage can't be <100 and >300")
10891124 else if (if (!(getBooleanValue(this, (aH + E))))
1090- then (eK > 100)
1125+ then (eO > 100)
10911126 else false)
10921127 then throw("You can't borrow in this pool")
10931128 else {
10941129 let bj = valueOrErrorMessage(getString(this, (N + aH)), "Pool is not inited")
1095- let fn = aD(Address(fromBase58String(aH)), bj)
1096- let dH = fn._1
1097- let dI = fn._2
1098- let aB = fn._3
1099- let aC = fn._4
1100- let aA = fn._5
1101- let fo = if ((size(al.payments) == 2))
1102- then if ((aR(al.payments[0].assetId) != dH))
1130+ let fz = aD(Address(fromBase58String(aH)), bj)
1131+ let dM = fz._1
1132+ let dN = fz._2
1133+ let aB = fz._3
1134+ let aC = fz._4
1135+ let aA = fz._5
1136+ let fA = if ((size(al.payments) == 2))
1137+ then if ((aR(al.payments[0].assetId) != dM))
11031138 then throw("Wrong payment asset A")
1104- else if ((aR(al.payments[1].assetId) != dI))
1139+ else if ((aR(al.payments[1].assetId) != dN))
11051140 then throw("Wrong payment asset B")
1106- else $Tuple4(al.payments[0].amount, dH, al.payments[1].amount, dI)
1141+ else $Tuple4(al.payments[0].amount, dM, al.payments[1].amount, dN)
11071142 else if ((size(al.payments) == 1))
1108- then if ((aR(al.payments[0].assetId) == dH))
1109- then $Tuple4(al.payments[0].amount, dH, 0, dI)
1110- else if ((aR(al.payments[0].assetId) == dI))
1111- then $Tuple4(0, dH, al.payments[0].amount, dI)
1143+ then if ((aR(al.payments[0].assetId) == dM))
1144+ then $Tuple4(al.payments[0].amount, dM, 0, dN)
1145+ else if ((aR(al.payments[0].assetId) == dN))
1146+ then $Tuple4(0, dM, al.payments[0].amount, dN)
11121147 else throw("Wrong payment")
11131148 else throw("One or two payments expected")
1114- let bB = fo._1
1115- let fp = fo._2
1116- let bC = fo._3
1117- let fq = fo._4
1118- let fr = aJ(toString(al.caller))
1119- if ((eK > 100))
1149+ let bC = fA._1
1150+ let fB = fA._2
1151+ let bD = fA._3
1152+ let fC = fA._4
1153+ let fD = aJ(toString(al.caller))
1154+ if ((eO > 100))
11201155 then {
1121- let cD = eJ(bB, bC, fp, fq, eK, eL)
1122- let eG = makeString([toString(al.caller), aH, toString(bB), fp, toString(bC), fq, toString(aB), toString(aC), aA, eL, toString(cD)], ",")
1123- let fs = {
1124- let ax = invoke(this, "createNewRequest", [eG], nil)
1156+ let cJ = eN(bC, bD, fB, fC, eO, eP)
1157+ let eK = makeString([toString(al.caller), aH, toString(bC), fB, toString(bD), fC, toString(aB), toString(aC), aA, eP, toString(cJ)], ",")
1158+ let fE = {
1159+ let ax = invoke(this, "createNewRequest", [eK], nil)
11251160 if ($isInstanceOf(ax, "Int"))
11261161 then ax
11271162 else throw(($getType(ax) + " couldn't be cast to Int"))
11281163 }
1129- if ((fs == fs))
1164+ if ((fE == fE))
11301165 then {
1131- let ft = [((toString(al.caller) + "_") + toString(fr)), aA, eL, cD, toString(this), "replenishFromLand", toString(valueOrErrorMessage(fs, "Can't create new request"))]
1132- let bV = reentrantInvoke(ai(), "flashPosition", ft, nil)
1133- if ((bV == bV))
1166+ let fF = [((toString(al.caller) + "_") + toString(fD)), aA, eP, cJ, toString(this), "replenishFromLand", toString(valueOrErrorMessage(fE, "Can't create new request"))]
1167+ let bW = reentrantInvoke(ai(), "flashPosition", fF, nil)
1168+ if ((bW == bW))
11341169 then nil
11351170 else throw("Strict value is not equal to itself.")
11361171 }
11371172 else throw("Strict value is not equal to itself.")
11381173 }
11391174 else {
1140- let fu = cO(bj, aH, h, bB, dH, bC, dI, aB, aC, aA)
1141- let fv = fu._1
1142- let dX = fu._2
1143- (cY(aH, toString(al.caller), fv, dX, fr, aA, bj, false) ++ bw(dH, dI, aA))
1175+ let fG = cT(bj, aH, h, bC, dM, bD, dN, aB, aC, aA)
1176+ let fh = fG._1
1177+ let ec = fG._2
1178+ let fH = cD(Address(fromBase58String(aH)), bj, aA, fh)
1179+ let fI = fH._1
1180+ let fJ = fH._2
1181+ (dd(aH, toString(al.caller), fh, ec, fD, aA, bj, false) ++ bw(dM, dN, aA, [toString(fI), toString(fJ)]))
11441182 }
11451183 }
11461184
11471185
11481186
11491187 @Callable(al)
1150-func withdraw (aH,er) = ew(toString(al.caller), aH, toString(er), false)
1188+func withdraw (aH,ev) = eA(toString(al.caller), aH, toString(ev), false)
11511189
11521190
11531191
11541192 @Callable(al)
1155-func createUpdateStopLoss (er,fw,ap,fx) = {
1156- let fy = getIntegerValue(ae, (ap + R))
1157- if (!(isDefined(getInteger(this, (((((fw + "_") + toString(al.caller)) + "_") + toString(er)) + u)))))
1193+func createUpdateStopLoss (ev,fK,ap,fL) = {
1194+ let fM = getIntegerValue(ae, (ap + R))
1195+ if (!(isDefined(getInteger(this, (((((fK + "_") + toString(al.caller)) + "_") + toString(ev)) + u)))))
11581196 then throw("There are no user position")
1159- else if ((0 >= fx))
1197+ else if ((0 >= fL))
11601198 then throw("Price must be greater than 0")
1161- else if ((fx > fy))
1199+ else if ((fL > fM))
11621200 then throw("Price must be less than current token price")
1163- else [IntegerEntry((((((((toString(al.caller) + "_") + toString(er)) + "_") + fw) + "_") + ap) + S), fx)]
1201+ else [IntegerEntry((((((((toString(al.caller) + "_") + toString(ev)) + "_") + fK) + "_") + ap) + S), fL)]
11641202 }
11651203
11661204
11671205
11681206 @Callable(al)
1169-func deleteStopLoss (er,fw,ap) = if (!(isDefined(getInteger(this, (((((((toString(al.caller) + "_") + toString(er)) + "_") + fw) + "_") + ap) + S)))))
1207+func deleteStopLoss (ev,fK,ap) = if (!(isDefined(getInteger(this, (((((((toString(al.caller) + "_") + toString(ev)) + "_") + fK) + "_") + ap) + S)))))
11701208 then throw("No entry")
1171- else [DeleteEntry((((((((toString(al.caller) + "_") + toString(er)) + "_") + fw) + "_") + ap) + S))]
1209+ else [DeleteEntry((((((((toString(al.caller) + "_") + toString(ev)) + "_") + fK) + "_") + ap) + S))]
11721210
11731211
11741212
11751213 @Callable(al)
1176-func init (fz,fA,fB,ae,fC,af,fD,fE,fF) = if (isDefined(getString(T)))
1214+func init (fN,fO,fP,ae,fQ,af,fR,fS,fT) = if (isDefined(getString(T)))
11771215 then throw("Already inited")
1178- else [StringEntry(T, fz), StringEntry(U, fA), StringEntry(V, fB), StringEntry(X, ae), StringEntry(Y, fC), StringEntry(Z, af), StringEntry(aa, fD), StringEntry(ab, fE), StringEntry(W, fF)]
1216+ else [StringEntry(T, fN), StringEntry(U, fO), StringEntry(V, fP), StringEntry(X, ae), StringEntry(Y, fQ), StringEntry(Z, af), StringEntry(aa, fR), StringEntry(ab, fS), StringEntry(W, fT)]
11791217
11801218
11811219
11821220 @Callable(al)
1183-func createNewRequest (bU) = valueOrElse(am(al), {
1184- let fs = (valueOrElse(getInteger(this, M), 0) + 1)
1185- $Tuple2([StringEntry((toString(fs) + L), bU), IntegerEntry(M, fs)], fs)
1221+func createNewRequest (bV) = valueOrElse(am(al), {
1222+ let fE = (valueOrElse(getInteger(this, M), 0) + 1)
1223+ $Tuple2([StringEntry((toString(fE) + L), bV), IntegerEntry(M, fE)], fE)
11861224 })
11871225
11881226
11891227
11901228 @Callable(al)
1191-func replenishFromLand (eF) = valueOrElse(an(al), {
1192- let fG = eE(eF)
1193- let aK = fG._1
1194- let aH = fG._2
1195- let bB = fG._3
1196- let dH = fG._4
1197- let bC = fG._5
1198- let dI = fG._6
1199- let aB = fG._7
1200- let aC = fG._8
1201- let aA = fG._9
1202- let eH = fG._10
1203- let eI = fG._11
1229+func replenishFromLand (eJ) = valueOrElse(an(al), {
1230+ let fU = eI(eJ)
1231+ let aK = fU._1
1232+ let aH = fU._2
1233+ let bC = fU._3
1234+ let dM = fU._4
1235+ let bD = fU._5
1236+ let dN = fU._6
1237+ let aB = fU._7
1238+ let aC = fU._8
1239+ let aA = fU._9
1240+ let eL = fU._10
1241+ let eM = fU._11
12041242 if ((size(al.payments) != 1))
12051243 then throw("Wrong payment size")
1206- else if (if ((aR(al.payments[0].assetId) != eH))
1244+ else if (if ((aR(al.payments[0].assetId) != eL))
12071245 then true
1208- else (al.payments[0].amount != eI))
1246+ else (al.payments[0].amount != eM))
12091247 then throw("Wrong payment")
12101248 else {
1211- let fH = if ((dH == eH))
1212- then $Tuple2((bB + al.payments[0].amount), bC)
1213- else $Tuple2(bB, (bC + al.payments[0].amount))
1214- let fI = fH._1
1215- let fJ = fH._2
1249+ let fV = if ((dM == eL))
1250+ then $Tuple2((bC + al.payments[0].amount), bD)
1251+ else $Tuple2(bC, (bD + al.payments[0].amount))
1252+ let fe = fV._1
1253+ let ff = fV._2
12161254 let bj = valueOrErrorMessage(getString(this, (N + aH)), "Unknown pool")
1217- let fK = cO(bj, aH, g, fI, dH, fJ, dI, aB, aC, aA)
1218- let fv = fK._1
1219- let dX = fK._2
1220- let da = aJ(aK)
1221- let fL = [IntegerEntry((((((aH + "_") + aK) + "_") + toString(da)) + w), eI), StringEntry((((((aH + "_") + aK) + "_") + toString(da)) + x), eH)]
1222- let fM = cY(aH, aK, fv, dX, da, aA, bj, true)
1223- $Tuple2((((fM ++ bw(dH, dI, aA)) ++ fL) :+ DeleteEntry((eF + L))), fv)
1255+ let fW = cT(bj, aH, g, fe, dM, ff, dN, aB, aC, aA)
1256+ let fh = fW._1
1257+ let ec = fW._2
1258+ let df = aJ(aK)
1259+ let fi = [IntegerEntry((((((aH + "_") + aK) + "_") + toString(df)) + w), eM), StringEntry((((((aH + "_") + aK) + "_") + toString(df)) + x), eL)]
1260+ let fj = dd(aH, aK, fh, ec, df, aA, bj, true)
1261+ let fX = cD(Address(fromBase58String(aH)), bj, aA, fh)
1262+ let fI = fX._1
1263+ let fJ = fX._2
1264+ $Tuple2((((fj ++ bw(dM, dN, aA, [toString(fI), toString(fJ)])) ++ fi) :+ DeleteEntry((eJ + L))), fh)
12241265 }
12251266 })
12261267
12271268
12281269
12291270 @Callable(al)
1230-func liquidate (aK,er,fN) = valueOrElse(an(al), {
1231- let aH = valueOrErrorMessage(getString(this, (((aK + "_") + er) + v)), "no position")
1271+func liquidate (aK,ev,fY) = valueOrElse(an(al), {
1272+ let aH = valueOrErrorMessage(getString(this, (((aK + "_") + ev) + v)), "no position")
12321273 let bj = valueOrErrorMessage(getString(this, (N + aH)), "Pool is not inited")
1233- let fO = aD(Address(fromBase58String(aH)), bj)
1234- let dH = fO._1
1235- let dI = fO._2
1236- let aB = fO._3
1237- let aC = fO._4
1238- let aA = fO._5
1239- let bP = bQ(aH, bj, aA, fN)
1240- let cD = getIntegerValue(this, (((((aH + "_") + aK) + "_") + er) + w))
1241- let eb = getStringValue(this, (((((aH + "_") + aK) + "_") + er) + x))
1242- let dZ = eq(aK, aH, er, (cD > 0))
1243- if ((cD == 0))
1274+ let fZ = aD(Address(fromBase58String(aH)), bj)
1275+ let dM = fZ._1
1276+ let dN = fZ._2
1277+ let aB = fZ._3
1278+ let aC = fZ._4
1279+ let aA = fZ._5
1280+ let bQ = bR(aH, bj, aA, fY)
1281+ let cJ = getIntegerValue(this, (((((aH + "_") + aK) + "_") + ev) + w))
1282+ let ef = getStringValue(this, (((((aH + "_") + aK) + "_") + ev) + x))
1283+ let cE = eu(aK, aH, ev, (cJ > 0))
1284+ if ((cJ == 0))
12441285 then throw("You can't liquidate position without borrow")
1245- else [IntegerEntry((((((aH + "_") + aK) + "_") + er) + z), getIntegerValue(this, (aH + C))), IntegerEntry((aH + B), (aI(aH) - fN)), IntegerEntry((aH + A), (aG(aH) - fN)), IntegerEntry((((((aH + "_") + aK) + "_") + er) + u), (dZ - fN)), ScriptTransfer(al.caller, bP, fromBase58String(aA))]
1286+ else [IntegerEntry((((((aH + "_") + aK) + "_") + ev) + z), getIntegerValue(this, (aH + C))), IntegerEntry((aH + B), (aI(aH) - fY)), IntegerEntry((aH + A), (aG(aH) - fY)), IntegerEntry((((((aH + "_") + aK) + "_") + ev) + u), (cE - fY)), ScriptTransfer(al.caller, bQ, fromBase58String(aA))]
12461287 })
12471288
12481289
12491290
12501291 @Callable(al)
1251-func stopLoss (aK,er,aH,ap) = valueOrElse(ak(al), {
1252- let fy = getIntegerValue(ae, (ap + R))
1253- if (!(isDefined(getInteger(this, (((((((aK + "_") + toString(er)) + "_") + aH) + "_") + ap) + S)))))
1292+func stopLoss (aK,ev,aH,ap) = valueOrElse(ak(al), {
1293+ let fM = getIntegerValue(ae, (ap + R))
1294+ if (!(isDefined(getInteger(this, (((((((aK + "_") + toString(ev)) + "_") + aH) + "_") + ap) + S)))))
12541295 then throw("No entry")
1255- else (ew(toString(al.caller), aH, toString(er), true) :+ DeleteEntry((((((((aK + "_") + toString(er)) + "_") + aH) + "_") + ap) + S)))
1296+ else (eA(toString(al.caller), aH, toString(ev), true) :+ DeleteEntry((((((((aK + "_") + toString(ev)) + "_") + aH) + "_") + ap) + S)))
12561297 })
12571298
12581299
12591300
12601301 @Callable(al)
1261-func capitalizeExKeeper (aH,aE,fP,fQ,fR,dl,dm,dn,do,dp,dq,dr) = valueOrElse(ak(al), {
1262- let fS = if (fR)
1263- then cL(aE, aH)
1302+func capitalizeExKeeper (aH,aE,ga,gb,gc,dq,dr,ds,dt,du,dv,dw) = valueOrElse(ak(al), {
1303+ let gd = if (gc)
1304+ then cQ(aE, aH)
12641305 else {
1265- let fT = if ((aE == a))
1306+ let ge = if ((aE == a))
12661307 then ag
12671308 else ah
1268- $Tuple2(fQ, fT)
1309+ $Tuple2(gb, ge)
12691310 }
1270- let fU = fS._1
1271- let fT = fS._2
1272- let fV = dh(fP, fQ, fT, dl, dm, dn, do, dp, dq, dr)
1273- let cv = (fU - fQ)
1274- let fW = if ((cv > 0))
1275- then [IntegerEntry((aH + P), (cv + valueOrElse(getInteger(this, (aH + P)), 0)))]
1311+ let gf = gd._1
1312+ let ge = gd._2
1313+ let gg = dm(ga, gb, ge, dq, dr, ds, dt, du, dv, dw)
1314+ let cw = (gf - gb)
1315+ let gh = if ((cw > 0))
1316+ then [IntegerEntry((aH + P), (cw + valueOrElse(getInteger(this, (aH + P)), 0)))]
12761317 else nil
1277- (dD(aH, aE, fP, fV) ++ fW)
1318+ (dI(aH, aE, ga, gg) ++ gh)
12781319 })
12791320
12801321
12811322
12821323 @Callable(al)
1283-func capitalizeExPuzzle (aH,aE,fP,fQ,fR,du,dv,dr) = valueOrElse(ak(al), {
1284- let fX = if (fR)
1285- then cL(aE, aH)
1324+func capitalizeExPuzzle (aH,aE,ga,gb,gc,dz,dA,dw) = valueOrElse(ak(al), {
1325+ let gi = if (gc)
1326+ then cQ(aE, aH)
12861327 else {
1287- let fT = if ((aE == a))
1328+ let ge = if ((aE == a))
12881329 then ag
12891330 else ah
1290- $Tuple2(fQ, fT)
1331+ $Tuple2(gb, ge)
12911332 }
1292- let fU = fX._1
1293- let fT = fX._2
1294- let fV = dt(fP, fQ, fT, du, dv, dr)
1295- let cv = (fU - fQ)
1296- let fW = if ((cv > 0))
1297- then [IntegerEntry((aH + P), (cv + valueOrElse(getInteger(this, (aH + P)), 0)))]
1333+ let gf = gi._1
1334+ let ge = gi._2
1335+ let gg = dy(ga, gb, ge, dz, dA, dw)
1336+ let cw = (gf - gb)
1337+ let gh = if ((cw > 0))
1338+ then [IntegerEntry((aH + P), (cw + valueOrElse(getInteger(this, (aH + P)), 0)))]
12981339 else nil
1299- (dD(aH, aE, fP, fV) ++ fW)
1340+ (dI(aH, aE, ga, gg) ++ gh)
13001341 })
13011342
13021343
13031344
13041345 @Callable(al)
1305-func capitalizeExSwopFi (aH,aE,fP,fQ,fR,dx,dy,dz,dA,dB,dC,dr) = valueOrElse(ak(al), {
1306- let fY = if (fR)
1307- then cL(aE, aH)
1346+func capitalizeExSwopFi (aH,aE,ga,gb,gc,dC,dD,dE,dF,dG,dH,dw) = valueOrElse(ak(al), {
1347+ let gj = if (gc)
1348+ then cQ(aE, aH)
13081349 else {
1309- let fT = if ((aE == a))
1350+ let ge = if ((aE == a))
13101351 then ag
13111352 else ah
1312- $Tuple2(fQ, fT)
1353+ $Tuple2(gb, ge)
13131354 }
1314- let fU = fY._1
1315- let fT = fY._2
1316- let fV = dw(fP, fQ, fT, dx, dy, dz, dA, dB, dC, dr)
1317- let cv = (fU - fQ)
1318- let fW = if ((cv > 0))
1319- then [IntegerEntry((aH + P), (cv + valueOrElse(getInteger(this, (aH + P)), 0)))]
1355+ let gf = gj._1
1356+ let ge = gj._2
1357+ let gg = dB(ga, gb, ge, dC, dD, dE, dF, dG, dH, dw)
1358+ let cw = (gf - gb)
1359+ let gh = if ((cw > 0))
1360+ then [IntegerEntry((aH + P), (cw + valueOrElse(getInteger(this, (aH + P)), 0)))]
13201361 else nil
1321- (dD(aH, aE, fP, fV) ++ fW)
1362+ (dI(aH, aE, ga, gg) ++ gh)
13221363 })
13231364
13241365
13251366
13261367 @Callable(al)
1327-func initNewPool (aE,au,fZ,ga,gb,gc,gd,ge,gf) = valueOrElse(ak(al), if (if ((aE != a))
1368+func initNewPool (aE,au,gk,gl,gm,gn,go,gp,gq) = valueOrElse(ak(al), if (if ((aE != a))
13281369 then (aE != b)
13291370 else false)
13301371 then throw("Wrong type")
13311372 else {
1332- let gg = aD(Address(fromBase58String(au)), aE)
1333- let ay = gg._1
1334- let az = gg._2
1335- let gh = gg._3
1336- let gi = gg._4
1337- let aA = gg._5
1338-[IntegerEntry((au + F), fZ), IntegerEntry((au + G), ga), IntegerEntry((au + H), gb), IntegerEntry((au + I), gc), IntegerEntry((au + J), gd), IntegerEntry((au + K), ge), IntegerEntry((au + C), 0), IntegerEntry((au + D), 0), StringEntry((N + au), aE), StringEntry((aA + O), au), BooleanEntry((au + E), gf)]
1373+ let gr = aD(Address(fromBase58String(au)), aE)
1374+ let ay = gr._1
1375+ let az = gr._2
1376+ let gs = gr._3
1377+ let gt = gr._4
1378+ let aA = gr._5
1379+[IntegerEntry((au + F), gk), IntegerEntry((au + G), gl), IntegerEntry((au + H), gm), IntegerEntry((au + I), gn), IntegerEntry((au + J), go), IntegerEntry((au + K), gp), IntegerEntry((au + C), 0), IntegerEntry((au + D), 0), StringEntry((N + au), aE), StringEntry((aA + O), au), BooleanEntry((au + E), gq)]
13391380 })
13401381
13411382
1342-@Verifier(gj)
1343-func gk () = sigVerify(gj.bodyBytes, gj.proofs[0], gj.senderPublicKey)
1383+@Verifier(gu)
1384+func gv () = sigVerify(gu.bodyBytes, gu.proofs[0], gu.senderPublicKey)
13441385

github/deemru/w8io/026f985 
366.50 ms