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
339339 }
340340
341341
342-func getCursEntries (aId,bId,shareId) = {
342+func getCursEntries (aId,bId,shareId,wAmounts) = {
343343 let assetsPrices = getAssetsPrice([aId, bId])
344344 let sharePrice = getSharePrice(shareId)
345- let prices = [toString(assetsPrices[0]), toString(assetsPrices[1]), toString(sharePrice)]
345+ let prices = ([toString(assetsPrices[0]), toString(assetsPrices[1]), toString(sharePrice)] ++ wAmounts)
346346 [StringEntry(kTokenLastPrice, makeString(prices, ","))]
347347 }
348348
380380 else throw("Strict value is not equal to itself.")
381381 }
382382 else {
383- let $t01075911009 = $Tuple2(split({
383+ let $t01079511045 = $Tuple2(split({
384384 let @ = invoke(poolAddr, "evaluatePutByAmountAssetREADONLY", [pmtA], nil)
385385 if ($isInstanceOf(@, "String"))
386386 then @
391391 then @
392392 else throw(($getType(@) + " couldn't be cast to String"))
393393 }, "__"))
394- if (($t01075911009 == $t01075911009))
394+ if (($t01079511045 == $t01079511045))
395395 then {
396- let evalPutInB = $t01075911009._2
397- let evalPutInA = $t01075911009._1
396+ let evalPutInB = $t01079511045._2
397+ let evalPutInA = $t01079511045._1
398398 let lpInA = parseIntValue(evalPutInA[1])
399399 let lpInB = parseIntValue(evalPutInB[1])
400400 if ((lpInB > lpInA))
436436
437437
438438 func unstakeLP (pool,pType,shareId,amount) = {
439- let $t01249412851 = if ((pType == SF_POOL))
439+ let $t01253012887 = if ((pType == SF_POOL))
440440 then $Tuple3(getSFFarmingAddr(), "withdrawShareTokens", [pool, amount])
441441 else if ((pType == WX_POOL))
442442 then $Tuple3(getWXFarmingAddr(Address(fromBase58String(pool))), "unstake", [shareId, amount])
443443 else throw("Wrong pool type")
444- let farmAddr = $t01249412851._1
445- let fName = $t01249412851._2
446- let params = $t01249412851._3
444+ let farmAddr = $t01253012887._1
445+ let fName = $t01253012887._2
446+ let params = $t01253012887._3
447447 let inv = invoke(farmAddr, fName, params, nil)
448448 if ((inv == inv))
449449 then amount
456456 let feeScale6 = 1000000
457457 let fee = getIntegerValue(poolAddr, kSFPoolFee)
458458 let amntGetNoFee = fraction(amountTokenToGet, feeScale6, (feeScale6 - fee), CEILING)
459- let $t01327313579 = if ((assetTokenToGet == assetIdA))
459+ let $t01330913615 = if ((assetTokenToGet == assetIdA))
460460 then {
461461 let amountToPay = fraction(amntGetNoFee, balB, (balA - amntGetNoFee), CEILING)
462462 $Tuple2(amountToPay, assetIdB)
465465 let amountToPay = fraction(amntGetNoFee, balA, (balB - amntGetNoFee), CEILING)
466466 $Tuple2(amountToPay, assetIdA)
467467 }
468- let amountToPay = $t01327313579._1
469- let assetToPay = $t01327313579._2
468+ let amountToPay = $t01330913615._1
469+ let assetToPay = $t01330913615._2
470470 $Tuple2(assetToPay, amountToPay)
471471 }
472472
475475 let prFee = getIntegerValue(wxSwapContract, "%s__protocolFee")
476476 let pFee = getIntegerValue(wxSwapContract, "%s__poolFee")
477477 let feeScale = toBigInt(100000000)
478- let $t01391814226 = if ((assetTokenToGet == assetIdA))
478+ let $t01395414262 = if ((assetTokenToGet == assetIdA))
479479 then {
480480 let amountToPay = fraction(amountTokenToGet, balB, (balA - amountTokenToGet))
481481 $Tuple2(amountToPay, assetIdB)
484484 let amountToPay = fraction(amountTokenToGet, balA, (balB - amountTokenToGet))
485485 $Tuple2(amountToPay, assetIdA)
486486 }
487- let amountToPay = $t01391814226._1
488- let assetToPay = $t01391814226._2
487+ let amountToPay = $t01395414262._1
488+ let assetToPay = $t01395414262._2
489489 let amountToPayWithFee = toInt(fraction(toBigInt(amountToPay), feeScale, (feeScale - toBigInt((prFee + pFee))), CEILING))
490490 $Tuple2(assetToPay, amountToPayWithFee)
491491 }
493493
494494 func exchangeDirectly (type,pool,assetIdA,assetIdB,balA,balB,amountTokenToGet,assetTokenToGet) = if ((type == SF_POOL))
495495 then {
496- let $t01457114693 = calcAmountToPaySF(pool, assetIdA, assetIdB, balA, balB, amountTokenToGet, assetTokenToGet)
497- let assetToPay = $t01457114693._1
498- let amountToPay = $t01457114693._2
496+ let $t01460714729 = calcAmountToPaySF(pool, assetIdA, assetIdB, balA, balB, amountTokenToGet, assetTokenToGet)
497+ let assetToPay = $t01460714729._1
498+ let amountToPay = $t01460714729._2
499499 invoke(addressFromStringValue(pool), "callFunction", ["exchange", [toString(amountTokenToGet)]], [AttachedPayment(assetIdFromStr(assetToPay), amountToPay)])
500500 }
501501 else {
502- let $t01486814990 = calcAmountToPayWX(pool, assetIdA, assetIdB, balA, balB, amountTokenToGet, assetTokenToGet)
503- let assetToPay = $t01486814990._1
504- let amountToPay = $t01486814990._2
502+ let $t01490415026 = calcAmountToPayWX(pool, assetIdA, assetIdB, balA, balB, amountTokenToGet, assetTokenToGet)
503+ let assetToPay = $t01490415026._1
504+ let amountToPay = $t01490415026._2
505505 invoke(wxSwapContract, "swap", [amountTokenToGet, assetTokenToGet, toString(this)], [AttachedPayment(assetIdFromStr(assetToPay), amountToPay)])
506506 }
507507
532532 }
533533 else if ((pType == WX_POOL))
534534 then {
535- let $t01559315934 = if (if ((pmtA > 0))
535+ let $t01562915970 = if (if ((pmtA > 0))
536536 then (pmtB > 0)
537537 else false)
538538 then {
539- let $t01567415800 = calcReplenishByTwoTokens(pType, poolAddr, pmtA, aId, pmtB, bId, balA, balB)
540- let pmtInA = $t01567415800._1
541- let pmtInB = $t01567415800._2
542- let change = $t01567415800._3
543- let changeId = $t01567415800._4
544- let lpAmount = $t01567415800._5
539+ let $t01571015836 = calcReplenishByTwoTokens(pType, poolAddr, pmtA, aId, pmtB, bId, balA, balB)
540+ let pmtInA = $t01571015836._1
541+ let pmtInB = $t01571015836._2
542+ let change = $t01571015836._3
543+ let changeId = $t01571015836._4
544+ let lpAmount = $t01571015836._5
545545 $Tuple3(change, changeId, lpAmount)
546546 }
547547 else if ((pmtA > 0))
548548 then $Tuple3(pmtA, aId, 0)
549549 else $Tuple3(pmtB, bId, 0)
550- let change = $t01559315934._1
551- let changeId = $t01559315934._2
552- let lpTwo = $t01559315934._3
553- let $t01594116157 = if ((change > 0))
550+ let change = $t01562915970._1
551+ let changeId = $t01562915970._2
552+ let lpTwo = $t01562915970._3
553+ let $t01597716193 = if ((change > 0))
554554 then {
555555 let inv = {
556556 let @ = invoke(poolAddr, "putOneTknREADONLY", [changeId, change], nil)
563563 else throw("Strict value is not equal to itself.")
564564 }
565565 else $Tuple2(0, 0)
566- let lpOne = $t01594116157._1
567- let loss = $t01594116157._2
566+ let lpOne = $t01597716193._1
567+ let loss = $t01597716193._2
568568 $Tuple2((lpTwo + lpOne), loss)
569569 }
570570 else throw("Wrong pool type")
571571 }
572572
573573
574+func calcWithdrawLPFromPoolVirt (poolAddr,pType,shareId,userCanWithdraw) = {
575+ let $t01636816755 = if ((pType == SF_POOL))
576+ then {
577+ let inv = {
578+ let @ = invoke(poolAddr, "callFunction", ["withdrawREADONLY", [toString(userCanWithdraw)]], nil)
579+ if ($isInstanceOf(@, "(Int, Int)"))
580+ then @
581+ else throw(($getType(@) + " couldn't be cast to (Int, Int)"))
582+ }
583+ if ((inv == inv))
584+ then $Tuple2(inv._1, inv._2)
585+ else throw("Strict value is not equal to itself.")
586+ }
587+ else {
588+ let inv = split({
589+ let @ = invoke(poolAddr, "evaluateGetREADONLY", [shareId, userCanWithdraw], nil)
590+ if ($isInstanceOf(@, "String"))
591+ then @
592+ else throw(($getType(@) + " couldn't be cast to String"))
593+ }, "__")
594+ if ((inv == inv))
595+ then $Tuple2(parseIntValue(inv[1]), parseIntValue(inv[2]))
596+ else throw("Strict value is not equal to itself.")
597+ }
598+ let amountA = $t01636816755._1
599+ let amountB = $t01636816755._2
600+ $Tuple2(amountA, amountB)
601+ }
602+
603+
574604 func calcWithdrawLPVirt (pType,pool,lpAmount,shareId,aId,bId,balA,balB,borrowAmount,borrowAssetId) = {
575605 let poolAddr = addressFromStringValue(pool)
576- let $t01645116951 = if ((pType == SF_POOL))
577- then {
578- let inv = {
579- let @ = invoke(poolAddr, "callFunction", ["withdrawREADONLY", [toString(lpAmount), toString(balA), toString(balB)]], nil)
580- if ($isInstanceOf(@, "List[Any]"))
581- then @
582- else throw(($getType(@) + " couldn't be cast to List[Any]"))
583- }
584- if ((inv == inv))
585- then $Tuple2({
586- let @ = inv[0]
587- if ($isInstanceOf(@, "Int"))
588- then @
589- else throw(($getType(@) + " couldn't be cast to Int"))
590- }, {
591- let @ = inv[1]
592- if ($isInstanceOf(@, "Int"))
593- then @
594- else throw(($getType(@) + " couldn't be cast to Int"))
595- })
596- else throw("Strict value is not equal to itself.")
597- }
598- else if ((pType == WX_POOL))
599- then {
600- let get = split({
601- let @ = invoke(poolAddr, "evaluateGetREADONLY", [shareId, lpAmount], nil)
602- if ($isInstanceOf(@, "String"))
603- then @
604- else throw(($getType(@) + " couldn't be cast to String"))
605- }, "__")
606- if ((get == get))
607- then $Tuple2(parseIntValue(get[1]), parseIntValue(get[2]))
608- else throw("Strict value is not equal to itself.")
609- }
610- else throw("Wrong pool type")
611- let getAmountA = $t01645116951._1
612- let getAmountB = $t01645116951._2
606+ let $t01700817101 = calcWithdrawLPFromPoolVirt(poolAddr, pType, shareId, lpAmount)
607+ let getAmountA = $t01700817101._1
608+ let getAmountB = $t01700817101._2
613609 if ((borrowAmount > 0))
614610 then {
615611 let amountToGetEx = if (if ((borrowAssetId == aId))
621617 else false)
622618 then (borrowAmount - getAmountB)
623619 else 0
624- let $t01722917532 = if ((amountToGetEx > 0))
620+ let $t01737917682 = if ((amountToGetEx > 0))
625621 then if ((pType == SF_POOL))
626622 then calcAmountToPaySF(pool, aId, bId, balA, balB, amountToGetEx, borrowAssetId)
627623 else calcAmountToPayWX(pool, aId, bId, balA, balB, amountToGetEx, borrowAssetId)
628624 else $Tuple2("", 0)
629- let assetToPay = $t01722917532._1
630- let amountToPay = $t01722917532._2
625+ let assetToPay = $t01737917682._1
626+ let amountToPay = $t01737917682._2
631627 if ((borrowAssetId == aId))
632628 then $Tuple2(((getAmountA + amountToGetEx) - borrowAmount), (getAmountB - amountToPay))
633629 else $Tuple2((getAmountA - amountToPay), ((getAmountB + amountToGetEx) - borrowAmount))
674670 if ((lpBalanceBefore == lpBalanceBefore))
675671 then {
676672 let poolAddr = addressFromStringValue(pool)
677- let $t01872919145 = if (if ((pmtA > 0))
673+ let $t01887919295 = if (if ((pmtA > 0))
678674 then (pmtB > 0)
679675 else false)
680676 then {
681- let $t01879518911 = calcReplenishByTwoTokens(pType, poolAddr, pmtA, aId, pmtB, bId, balA, balB)
682- let pmtInA = $t01879518911._1
683- let pmtInB = $t01879518911._2
684- let change = $t01879518911._3
685- let changeId = $t01879518911._4
677+ let $t01894519061 = calcReplenishByTwoTokens(pType, poolAddr, pmtA, aId, pmtB, bId, balA, balB)
678+ let pmtInA = $t01894519061._1
679+ let pmtInB = $t01894519061._2
680+ let change = $t01894519061._3
681+ let changeId = $t01894519061._4
686682 let inv = replenishTwoTokensByType(poolAddr, pType, pmtInA, aId, pmtInB, bId)
687683 if ((inv == inv))
688684 then $Tuple2(change, changeId)
693689 else if ((pmtB > 0))
694690 then $Tuple2(pmtB, bId)
695691 else throw("pmts must be > 0")
696- let change = $t01872919145._1
697- let changeId = $t01872919145._2
692+ let change = $t01887919295._1
693+ let changeId = $t01887919295._2
698694 let inv = if ((change > 0))
699695 then replenishOneTokenByType(poolAddr, pType, change, changeId)
700696 else nil
722718 func replenishEntries (pool,user,stakedAmount,axlyFeeAmount,posNum,shareId,type,withLoan) = {
723719 let totalAmount = getPoolTotalShare(pool)
724720 let totalAmountLoan = getPoolTotalShareWithLoan(pool)
725- let $t02000320241 = if (withLoan)
721+ let $t02015320391 = if (withLoan)
726722 then $Tuple2(getIntegerValue(this, (pool + kPoolInterestLoan)), (totalAmountLoan + stakedAmount))
727723 else $Tuple2(getIntegerValue(this, (pool + kPoolInterestNoLoan)), totalAmountLoan)
728- let curPoolInterest = $t02000320241._1
729- let totalStakedWithLoan = $t02000320241._2
724+ let curPoolInterest = $t02015320391._1
725+ let totalStakedWithLoan = $t02015320391._2
730726 [IntegerEntry((pool + kPoolTotal), (totalAmount + stakedAmount)), IntegerEntry((pool + kPoolTotalLoan), totalStakedWithLoan), IntegerEntry((((((pool + "_") + user) + "_") + toString(posNum)) + kUserPosition), stakedAmount), IntegerEntry((((((pool + "_") + user) + "_") + toString(posNum)) + kUserPositionInterest), curPoolInterest), StringEntry((((user + "_") + toString(posNum)) + kUserPositionPool), pool), IntegerEntry((user + kUserPositionNum), posNum), ScriptTransfer(moneyBox, axlyFeeAmount, fromBase58String(shareId))]
731727 }
732728
772768
773769 func capitalize (pool,pType,tokenId,tokenAmount) = {
774770 let poolAddr = Address(fromBase58String(pool))
775- let $t02259222658 = getPoolData(poolAddr, pType)
776- let AId = $t02259222658._1
777- let BId = $t02259222658._2
778- let balA = $t02259222658._3
779- let balB = $t02259222658._4
780- let shareId = $t02259222658._5
771+ let $t02274222808 = getPoolData(poolAddr, pType)
772+ let AId = $t02274222808._1
773+ let BId = $t02274222808._2
774+ let balA = $t02274222808._3
775+ let balB = $t02274222808._4
776+ let shareId = $t02274222808._5
781777 if (if ((tokenId != AId))
782778 then (tokenId != BId)
783779 else false)
784780 then throw("Wrong asset")
785781 else {
786- let $t02274322823 = if ((tokenId == AId))
782+ let $t02289322973 = if ((tokenId == AId))
787783 then $Tuple2(tokenAmount, 0)
788784 else $Tuple2(0, tokenAmount)
789- let pmtA = $t02274322823._1
790- let pmtB = $t02274322823._2
791- let $t02282622930 = replenishByType(pType, pool, NO_FEE, pmtA, AId, pmtB, BId, balA, balB, shareId)
792- let stakedAmount = $t02282622930._1
793- let nf = $t02282622930._2
785+ let pmtA = $t02289322973._1
786+ let pmtB = $t02289322973._2
787+ let $t02297623080 = replenishByType(pType, pool, NO_FEE, pmtA, AId, pmtB, BId, balA, balB, shareId)
788+ let stakedAmount = $t02297623080._1
789+ let nf = $t02297623080._2
794790 let curPoolInterestLoan = valueOrElse(getInteger(this, (pool + kPoolInterestLoan)), 0)
795791 let curPoolInterestNoLoan = valueOrElse(getInteger(this, (pool + kPoolInterestNoLoan)), 0)
796792 let totalShareAmount = getPoolTotalShare(pool)
808804 let axlyFeeNoLoan = fraction(stakedNoLoan, getAxlyFee(pool, CAP_FEE_NO_LOAN), FEE_SCALE6)
809805 let axlyFee = unstakeLP(pool, pType, shareId, (axlyFeeLoan + axlyFeeNoLoan))
810806 if ((axlyFee == axlyFee))
811- then ([IntegerEntry((pool + kPoolInterestLoan), newInterestLoan), IntegerEntry((pool + kPoolInterestNoLoan), newInterestNoLoan), IntegerEntry((pool + kPoolTotal), ((totalShareAmount + stakedAmount) - axlyFee)), IntegerEntry((pool + kPoolTotalLoan), ((totalShareAmountWithLoan + stakedLoan) - axlyFeeLoan)), ScriptTransfer(moneyBox, (axlyFeeLoan + axlyFeeNoLoan), fromBase58String(shareId))] ++ getCursEntries(AId, BId, shareId))
807+ then ([IntegerEntry((pool + kPoolInterestLoan), newInterestLoan), IntegerEntry((pool + kPoolInterestNoLoan), newInterestNoLoan), IntegerEntry((pool + kPoolTotal), ((totalShareAmount + stakedAmount) - axlyFee)), IntegerEntry((pool + kPoolTotalLoan), ((totalShareAmountWithLoan + stakedLoan) - axlyFeeLoan)), ScriptTransfer(moneyBox, (axlyFeeLoan + axlyFeeNoLoan), fromBase58String(shareId))] ++ getCursEntries(AId, BId, shareId, nil))
812808 else throw("Strict value is not equal to itself.")
813809 }
814810 }
817813 func withdrawAmountCalc (pool,userCanWithdraw,debt,borrowAsset) = {
818814 let poolAddr = Address(fromBase58String(pool))
819815 let pType = valueOrErrorMessage(getString(this, (kPool + pool)), "Unknown pool")
820- let $t02469824774 = getPoolData(poolAddr, pType)
821- let assetIdA = $t02469824774._1
822- let assetIdB = $t02469824774._2
823- let balA = $t02469824774._3
824- let balB = $t02469824774._4
825- let shareId = $t02469824774._5
816+ let $t02485224928 = getPoolData(poolAddr, pType)
817+ let assetIdA = $t02485224928._1
818+ let assetIdB = $t02485224928._2
819+ let balA = $t02485224928._3
820+ let balB = $t02485224928._4
821+ let shareId = $t02485224928._5
826822 let cBalABefore = accountBalance(assetIdFromStr(assetIdA))
827823 if ((cBalABefore == cBalABefore))
828824 then {
841837 then {
842838 let cBalAAfter = accountBalance(assetIdFromStr(assetIdA))
843839 let cBalBAfter = accountBalance(assetIdFromStr(assetIdB))
844- let $t02533725426 = $Tuple2((cBalAAfter - cBalABefore), (cBalBAfter - cBalBBefore))
845- let tokensAmountA = $t02533725426._1
846- let tokensAmountB = $t02533725426._2
847- let $t02542926283 = if ((debt > 0))
840+ let $t02549125580 = $Tuple2((cBalAAfter - cBalABefore), (cBalBAfter - cBalBBefore))
841+ let tokensAmountA = $t02549125580._1
842+ let tokensAmountB = $t02549125580._2
843+ let $t02558326437 = if ((debt > 0))
848844 then {
849845 let amountToGetEx = if (if ((borrowAsset == assetIdA))
850846 then (debt > tokensAmountA)
869865 else throw("Strict value is not equal to itself.")
870866 }
871867 else $Tuple2(tokensAmountA, tokensAmountB)
872- let toUserA = $t02542926283._1
873- let toUserB = $t02542926283._2
868+ let toUserA = $t02558326437._1
869+ let toUserB = $t02558326437._2
874870 $Tuple7(toUserA, assetIdA, toUserB, assetIdB, cBalAAfter, cBalBAfter, shareId)
875871 }
876872 else throw("Strict value is not equal to itself.")
906902 else throw(($getType(@) + " couldn't be cast to Int"))
907903 }
908904 else 0
909- let $t02767127824 = withdrawAmountCalc(pool, userCanWithdraw, debt, borrowAsset)
910- if (($t02767127824 == $t02767127824))
905+ let $t02782527978 = withdrawAmountCalc(pool, userCanWithdraw, debt, borrowAsset)
906+ if (($t02782527978 == $t02782527978))
911907 then {
912- let shareId = $t02767127824._7
913- let cBalBAfter = $t02767127824._6
914- let cBalAAfter = $t02767127824._5
915- let assetIdB = $t02767127824._4
916- let toUserAmountB = $t02767127824._3
917- let assetIdA = $t02767127824._2
918- let toUserAmountA = $t02767127824._1
908+ let shareId = $t02782527978._7
909+ let cBalBAfter = $t02782527978._6
910+ let cBalAAfter = $t02782527978._5
911+ let assetIdB = $t02782527978._4
912+ let toUserAmountB = $t02782527978._3
913+ let assetIdA = $t02782527978._2
914+ let toUserAmountA = $t02782527978._1
919915 let closeDbtInv = if ((debt > 0))
920916 then invoke(getLendSrvAddr(), "repayFor", [((user + "_") + posId)], [AttachedPayment(assetIdFromStr(borrowAsset), debt)])
921917 else 0
922918 if ((closeDbtInv == closeDbtInv))
923- then ([DeleteEntry((((((pool + "_") + user) + "_") + posId) + kUserPosition)), DeleteEntry((((((pool + "_") + user) + "_") + posId) + kUserPositionInterest)), IntegerEntry((pool + kPoolTotal), (poolTotalShare - userCanWithdraw)), ScriptTransfer(userAddr, toUserAmountA, assetIdFromStr(assetIdA)), ScriptTransfer(userAddr, toUserAmountB, assetIdFromStr(assetIdB))] ++ getCursEntries(assetIdA, assetIdB, shareId))
919+ then ([DeleteEntry((((((pool + "_") + user) + "_") + posId) + kUserPosition)), DeleteEntry((((((pool + "_") + user) + "_") + posId) + kUserPositionInterest)), IntegerEntry((pool + kPoolTotal), (poolTotalShare - userCanWithdraw)), ScriptTransfer(userAddr, toUserAmountA, assetIdFromStr(assetIdA)), ScriptTransfer(userAddr, toUserAmountB, assetIdFromStr(assetIdB))] ++ getCursEntries(assetIdA, assetIdB, shareId, nil))
924920 else throw("Strict value is not equal to itself.")
925921 }
926922 else throw("Strict value is not equal to itself.")
950946 let decPrA = pow(10, 0, getAssetDecimals(aId), 0, 0, DOWN)
951947 let decPrB = pow(10, 0, getAssetDecimals(bId), 0, 0, DOWN)
952948 let paydInDollar = (fraction(dPriceA, pmtA, decPrA) + fraction(dPriceB, pmtB, decPrB))
953- let $t02946429561 = if ((borrowId == aId))
949+ let $t02962229719 = if ((borrowId == aId))
954950 then $Tuple2(dPriceA, decPrA)
955951 else $Tuple2(dPriceB, decPrB)
956- let borrowPrice = $t02946429561._1
957- let borrowDecPr = $t02946429561._2
952+ let borrowPrice = $t02962229719._1
953+ let borrowDecPr = $t02962229719._2
958954 fraction(fraction(paydInDollar, (leverage - 100), 100), borrowDecPr, borrowPrice)
959955 }
960956
966962 then throw("Leverage can't be <100 and >300")
967963 else {
968964 let pType = valueOrErrorMessage(getString(this, (kPool + pool)), "Pool is not inited")
969- let $t02997930069 = getPoolData(Address(fromBase58String(pool)), pType)
970- let AId = $t02997930069._1
971- let BId = $t02997930069._2
972- let balA = $t02997930069._3
973- let balB = $t02997930069._4
974- let shareId = $t02997930069._5
965+ let $t03013730227 = getPoolData(Address(fromBase58String(pool)), pType)
966+ let AId = $t03013730227._1
967+ let BId = $t03013730227._2
968+ let balA = $t03013730227._3
969+ let balB = $t03013730227._4
970+ let shareId = $t03013730227._5
975971 let borrowAmount = if ((leverage > 100))
976972 then calcBorrowAmount(pmtA, pmtB, AId, BId, leverage, borrowId)
977973 else 0
978- let $t03020430311 = if ((borrowId == AId))
974+ let $t03036230469 = if ((borrowId == AId))
979975 then $Tuple2((pmtA + borrowAmount), pmtB)
980976 else $Tuple2(pmtA, (pmtB + borrowAmount))
981- let payInA = $t03020430311._1
982- let payInB = $t03020430311._2
983- let $t03031430407 = calcReplenishLPVirt(pType, pool, payInA, AId, payInB, BId, balA, balB)
984- let lpAmount = $t03031430407._1
985- let loss = $t03031430407._2
977+ let payInA = $t03036230469._1
978+ let payInB = $t03036230469._2
979+ let $t03047230565 = calcReplenishLPVirt(pType, pool, payInA, AId, payInB, BId, balA, balB)
980+ let lpAmount = $t03047230565._1
981+ let loss = $t03047230565._2
986982 let impactMod = if ((0 > loss))
987983 then (loss * -1)
988984 else loss
989985 $Tuple2(nil, [impactMod])
990986 }
987+
988+
989+
990+@Callable(i)
991+func replenishFromLandEVALONLY (requestId) = valueOrElse(isLandCall(i), {
992+ let $t03074230846 = parseRequest(requestId)
993+ let user = $t03074230846._1
994+ let pool = $t03074230846._2
995+ let pmtA = $t03074230846._3
996+ let AId = $t03074230846._4
997+ let pmtB = $t03074230846._5
998+ let BId = $t03074230846._6
999+ let balA = $t03074230846._7
1000+ let balB = $t03074230846._8
1001+ let shareId = $t03074230846._9
1002+ let bwAsset = $t03074230846._10
1003+ let bwAmount = $t03074230846._11
1004+ if ((size(i.payments) != 1))
1005+ then throw("Wrong payment size")
1006+ else if (if ((assetIdToStr(i.payments[0].assetId) != bwAsset))
1007+ then true
1008+ else (i.payments[0].amount != bwAmount))
1009+ then throw("Wrong payment")
1010+ else {
1011+ let $t03103631160 = if ((AId == bwAsset))
1012+ then $Tuple2((pmtA + i.payments[0].amount), pmtB)
1013+ else $Tuple2(pmtA, (pmtB + i.payments[0].amount))
1014+ let pmtAllA = $t03103631160._1
1015+ let pmtAllB = $t03103631160._2
1016+ let pType = valueOrErrorMessage(getString(this, (kPool + pool)), "Unknown pool")
1017+ let $t03124231357 = replenishByType(pType, pool, LOAN_FEE, pmtAllA, AId, pmtAllB, BId, balA, balB, shareId)
1018+ let userStaked = $t03124231357._1
1019+ let axlyFee = $t03124231357._2
1020+ let posNum = getNewUserPositionNumber(user)
1021+ let borrowEntries = [IntegerEntry((((((pool + "_") + user) + "_") + toString(posNum)) + kUserBorrowAmount), bwAmount), StringEntry((((((pool + "_") + user) + "_") + toString(posNum)) + kUserBorrowAssetId), bwAsset)]
1022+ let entries = replenishEntries(pool, user, userStaked, axlyFee, posNum, shareId, pType, true)
1023+ nil
1024+ }
1025+ })
9911026
9921027
9931028
10121047 @Callable(i)
10131048 func getUserPositionInDollarsREADONLY (user,pools,posNum) = {
10141049 func userPos (a,pool) = {
1015- let $t03122031254 = a
1016- let totalPos = $t03122031254._1
1017- let posDebt = $t03122031254._2
1018- let index = $t03122031254._3
1050+ let $t03245532489 = a
1051+ let totalPos = $t03245532489._1
1052+ let posDebt = $t03245532489._2
1053+ let index = $t03245532489._3
10191054 let pType = valueOrErrorMessage(getString(this, (kPool + pool)), "Pool is not inited")
1020- let $t03134631436 = getPoolData(Address(fromBase58String(pool)), pType)
1021- let AId = $t03134631436._1
1022- let BId = $t03134631436._2
1023- let balA = $t03134631436._3
1024- let balB = $t03134631436._4
1025- let shareId = $t03134631436._5
1055+ let $t03258132671 = getPoolData(Address(fromBase58String(pool)), pType)
1056+ let AId = $t03258132671._1
1057+ let BId = $t03258132671._2
1058+ let balA = $t03258132671._3
1059+ let balB = $t03258132671._4
1060+ let shareId = $t03258132671._5
10261061 let borrowAmount = valueOrElse(getInteger(this, (((((pool + "_") + user) + "_") + posNum[index]) + kUserBorrowAmount)), 0)
10271062 let userCanWithdraw = userCanWithdrawShareCalc(user, pool, posNum[index], (borrowAmount > 0))
10281063 let sharePrices = getSharePrice(shareId)
10451080 }
10461081 }
10471082
1048- let $t03245632511 = {
1083+ let $t03369133746 = {
10491084 let $l = pools
10501085 let $s = size($l)
10511086 let $acc0 = $Tuple3(nil, nil, 0)
10591094
10601095 $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20)
10611096 }
1062- let pos = $t03245632511._1
1063- let debt = $t03245632511._2
1097+ let pos = $t03369133746._1
1098+ let debt = $t03369133746._2
10641099 $Tuple2(nil, $Tuple2(pos, debt))
10651100 }
10661101
10771112 then throw("You can't borrow in this pool")
10781113 else {
10791114 let pType = valueOrErrorMessage(getString(this, (kPool + pool)), "Pool is not inited")
1080- let $t03295133041 = getPoolData(Address(fromBase58String(pool)), pType)
1081- let AId = $t03295133041._1
1082- let BId = $t03295133041._2
1083- let balA = $t03295133041._3
1084- let balB = $t03295133041._4
1085- let shareId = $t03295133041._5
1086- let $t03304433681 = if ((size(i.payments) == 2))
1115+ let $t03418634276 = getPoolData(Address(fromBase58String(pool)), pType)
1116+ let AId = $t03418634276._1
1117+ let BId = $t03418634276._2
1118+ let balA = $t03418634276._3
1119+ let balB = $t03418634276._4
1120+ let shareId = $t03418634276._5
1121+ let $t03427934916 = if ((size(i.payments) == 2))
10871122 then if ((assetIdToStr(i.payments[0].assetId) != AId))
10881123 then throw("Wrong payment asset A")
10891124 else if ((assetIdToStr(i.payments[1].assetId) != BId))
10961131 then $Tuple4(0, AId, i.payments[0].amount, BId)
10971132 else throw("Wrong payment")
10981133 else throw("One or two payments expected")
1099- let pmtA = $t03304433681._1
1100- let pmtAssetA = $t03304433681._2
1101- let pmtB = $t03304433681._3
1102- let pmtAssetB = $t03304433681._4
1134+ let pmtA = $t03427934916._1
1135+ let pmtAssetA = $t03427934916._2
1136+ let pmtB = $t03427934916._3
1137+ let pmtAssetB = $t03427934916._4
11031138 let newPosNum = getNewUserPositionNumber(toString(i.caller))
11041139 if ((leverage > 100))
11051140 then {
11221157 else throw("Strict value is not equal to itself.")
11231158 }
11241159 else {
1125- let $t03460934721 = replenishByType(pType, pool, NO_LOAN_FEE, pmtA, AId, pmtB, BId, balA, balB, shareId)
1126- let userStaked = $t03460934721._1
1127- let axlyFee = $t03460934721._2
1128- (replenishEntries(pool, toString(i.caller), userStaked, axlyFee, newPosNum, shareId, pType, false) ++ getCursEntries(AId, BId, shareId))
1160+ let $t03584435956 = replenishByType(pType, pool, NO_LOAN_FEE, pmtA, AId, pmtB, BId, balA, balB, shareId)
1161+ let userStaked = $t03584435956._1
1162+ let axlyFee = $t03584435956._2
1163+ let $t03596236077 = calcWithdrawLPFromPoolVirt(Address(fromBase58String(pool)), pType, shareId, userStaked)
1164+ let wAmountA = $t03596236077._1
1165+ let wAmountB = $t03596236077._2
1166+ (replenishEntries(pool, toString(i.caller), userStaked, axlyFee, newPosNum, shareId, pType, false) ++ getCursEntries(AId, BId, shareId, [toString(wAmountA), toString(wAmountB)]))
11291167 }
11301168 }
11311169
11741212
11751213 @Callable(i)
11761214 func replenishFromLand (requestId) = valueOrElse(isLandCall(i), {
1177- let $t03717837282 = parseRequest(requestId)
1178- let user = $t03717837282._1
1179- let pool = $t03717837282._2
1180- let pmtA = $t03717837282._3
1181- let AId = $t03717837282._4
1182- let pmtB = $t03717837282._5
1183- let BId = $t03717837282._6
1184- let balA = $t03717837282._7
1185- let balB = $t03717837282._8
1186- let shareId = $t03717837282._9
1187- let bwAsset = $t03717837282._10
1188- let bwAmount = $t03717837282._11
1215+ let $t03857738681 = parseRequest(requestId)
1216+ let user = $t03857738681._1
1217+ let pool = $t03857738681._2
1218+ let pmtA = $t03857738681._3
1219+ let AId = $t03857738681._4
1220+ let pmtB = $t03857738681._5
1221+ let BId = $t03857738681._6
1222+ let balA = $t03857738681._7
1223+ let balB = $t03857738681._8
1224+ let shareId = $t03857738681._9
1225+ let bwAsset = $t03857738681._10
1226+ let bwAmount = $t03857738681._11
11891227 if ((size(i.payments) != 1))
11901228 then throw("Wrong payment size")
11911229 else if (if ((assetIdToStr(i.payments[0].assetId) != bwAsset))
11931231 else (i.payments[0].amount != bwAmount))
11941232 then throw("Wrong payment")
11951233 else {
1196- let $t03747237596 = if ((AId == bwAsset))
1234+ let $t03887138995 = if ((AId == bwAsset))
11971235 then $Tuple2((pmtA + i.payments[0].amount), pmtB)
11981236 else $Tuple2(pmtA, (pmtB + i.payments[0].amount))
1199- let pmtAllA = $t03747237596._1
1200- let pmtAllB = $t03747237596._2
1237+ let pmtAllA = $t03887138995._1
1238+ let pmtAllB = $t03887138995._2
12011239 let pType = valueOrErrorMessage(getString(this, (kPool + pool)), "Unknown pool")
1202- let $t03767837793 = replenishByType(pType, pool, LOAN_FEE, pmtAllA, AId, pmtAllB, BId, balA, balB, shareId)
1203- let userStaked = $t03767837793._1
1204- let axlyFee = $t03767837793._2
1240+ let $t03907739192 = replenishByType(pType, pool, LOAN_FEE, pmtAllA, AId, pmtAllB, BId, balA, balB, shareId)
1241+ let userStaked = $t03907739192._1
1242+ let axlyFee = $t03907739192._2
12051243 let posNum = getNewUserPositionNumber(user)
12061244 let borrowEntries = [IntegerEntry((((((pool + "_") + user) + "_") + toString(posNum)) + kUserBorrowAmount), bwAmount), StringEntry((((((pool + "_") + user) + "_") + toString(posNum)) + kUserBorrowAssetId), bwAsset)]
12071245 let entries = replenishEntries(pool, user, userStaked, axlyFee, posNum, shareId, pType, true)
1208- $Tuple2((((entries ++ getCursEntries(AId, BId, shareId)) ++ borrowEntries) :+ DeleteEntry((requestId + kRequestId))), userStaked)
1246+ let $t03955239667 = calcWithdrawLPFromPoolVirt(Address(fromBase58String(pool)), pType, shareId, userStaked)
1247+ let wAmountA = $t03955239667._1
1248+ let wAmountB = $t03955239667._2
1249+ $Tuple2((((entries ++ getCursEntries(AId, BId, shareId, [toString(wAmountA), toString(wAmountB)])) ++ borrowEntries) :+ DeleteEntry((requestId + kRequestId))), userStaked)
12091250 }
12101251 })
12111252
12151256 func liquidate (user,posId,liquidateAmount) = valueOrElse(isLandCall(i), {
12161257 let pool = valueOrErrorMessage(getString(this, (((user + "_") + posId) + kUserPositionPool)), "no position")
12171258 let pType = valueOrErrorMessage(getString(this, (kPool + pool)), "Pool is not inited")
1218- let $t03857238662 = getPoolData(Address(fromBase58String(pool)), pType)
1219- let AId = $t03857238662._1
1220- let BId = $t03857238662._2
1221- let balA = $t03857238662._3
1222- let balB = $t03857238662._4
1223- let shareId = $t03857238662._5
1259+ let $t04016140251 = getPoolData(Address(fromBase58String(pool)), pType)
1260+ let AId = $t04016140251._1
1261+ let BId = $t04016140251._2
1262+ let balA = $t04016140251._3
1263+ let balB = $t04016140251._4
1264+ let shareId = $t04016140251._5
12241265 let amount = unstakeLP(pool, pType, shareId, liquidateAmount)
12251266 let borrowAmount = getIntegerValue(this, (((((pool + "_") + user) + "_") + posId) + kUserBorrowAmount))
12261267 let borrowAsset = getStringValue(this, (((((pool + "_") + user) + "_") + posId) + kUserBorrowAssetId))
12441285
12451286 @Callable(i)
12461287 func capitalizeExKeeper (pool,type,tokenToId,amountToExchange,claim,amountsIn,addresses,assetsToReceive,estReceived,slippageTolerance,minReceived,options) = valueOrElse(isAdminCall(i), {
1247- let $t04042540619 = if (claim)
1288+ let $t04201442208 = if (claim)
12481289 then claimFarmed(type, pool)
12491290 else {
12501291 let claimedAsset = if ((type == SF_POOL))
12521293 else WXID
12531294 $Tuple2(amountToExchange, claimedAsset)
12541295 }
1255- let claimedAmount = $t04042540619._1
1256- let claimedAsset = $t04042540619._2
1296+ let claimedAmount = $t04201442208._1
1297+ let claimedAsset = $t04201442208._2
12571298 let exchangedAmount = exchangeKeeper(tokenToId, amountToExchange, claimedAsset, amountsIn, addresses, assetsToReceive, estReceived, slippageTolerance, minReceived, options)
12581299 let change = (claimedAmount - amountToExchange)
12591300 let changeEntry = if ((change > 0))
12661307
12671308 @Callable(i)
12681309 func capitalizeExPuzzle (pool,type,tokenToId,amountToExchange,claim,routesStr,minToReceive,options) = valueOrElse(isAdminCall(i), {
1269- let $t04130441498 = if (claim)
1310+ let $t04289343087 = if (claim)
12701311 then claimFarmed(type, pool)
12711312 else {
12721313 let claimedAsset = if ((type == SF_POOL))
12741315 else WXID
12751316 $Tuple2(amountToExchange, claimedAsset)
12761317 }
1277- let claimedAmount = $t04130441498._1
1278- let claimedAsset = $t04130441498._2
1318+ let claimedAmount = $t04289343087._1
1319+ let claimedAsset = $t04289343087._2
12791320 let exchangedAmount = exchangePuzzle(tokenToId, amountToExchange, claimedAsset, routesStr, minToReceive, options)
12801321 let change = (claimedAmount - amountToExchange)
12811322 let changeEntry = if ((change > 0))
12881329
12891330 @Callable(i)
12901331 func capitalizeExSwopFi (pool,type,tokenToId,amountToExchange,claim,exchangers,exchangersType,args1,args2,routingAssetsKeys,minAmountToReceive,options) = valueOrElse(isAdminCall(i), {
1291- let $t04224942443 = if (claim)
1332+ let $t04383844032 = if (claim)
12921333 then claimFarmed(type, pool)
12931334 else {
12941335 let claimedAsset = if ((type == SF_POOL))
12961337 else WXID
12971338 $Tuple2(amountToExchange, claimedAsset)
12981339 }
1299- let claimedAmount = $t04224942443._1
1300- let claimedAsset = $t04224942443._2
1340+ let claimedAmount = $t04383844032._1
1341+ let claimedAsset = $t04383844032._2
13011342 let exchangedAmount = exchangeSwopFi(tokenToId, amountToExchange, claimedAsset, exchangers, exchangersType, args1, args2, routingAssetsKeys, minAmountToReceive, options)
13021343 let change = (claimedAmount - amountToExchange)
13031344 let changeEntry = if ((change > 0))
13141355 else false)
13151356 then throw("Wrong type")
13161357 else {
1317- let $t04318443278 = getPoolData(Address(fromBase58String(poolAddr)), type)
1318- let aId = $t04318443278._1
1319- let bId = $t04318443278._2
1320- let aBal = $t04318443278._3
1321- let bBal = $t04318443278._4
1322- let shareId = $t04318443278._5
1358+ let $t04477344867 = getPoolData(Address(fromBase58String(poolAddr)), type)
1359+ let aId = $t04477344867._1
1360+ let bId = $t04477344867._2
1361+ let aBal = $t04477344867._3
1362+ let bBal = $t04477344867._4
1363+ let shareId = $t04477344867._5
13231364 [IntegerEntry((poolAddr + kAxlyInFeeWithoutLoan), inFeeNoLoan), IntegerEntry((poolAddr + kAxlyInFeeWithLoan), inFeeLoan), IntegerEntry((poolAddr + kAxlyNoLoanCapFee), capFeeNoLoan), IntegerEntry((poolAddr + kAxlyWithLoanCapFee), capFeeWithLoan), IntegerEntry((poolAddr + kAxlyStopLossNoLoanFee), stoplossFeeNoLoan), IntegerEntry((poolAddr + kAxlyStopLossLoanFee), stoplossFeeWithLoan), IntegerEntry((poolAddr + kPoolInterestLoan), 0), IntegerEntry((poolAddr + kPoolInterestNoLoan), 0), StringEntry((kPool + poolAddr), type), StringEntry((shareId + kSharePool), poolAddr), BooleanEntry((poolAddr + kPoolCanBorrow), canBorrow)]
13241365 })
13251366
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let SF_POOL = "SF"
55
66 let WX_POOL = "WX"
77
88 let CAP_FEE_NO_LOAN = "capNoLoan"
99
1010 let CAP_FEE_LOAN = "capLoan"
1111
1212 let STOPLOSS_FEE_NO_LOAN = "stopLossNoLoan"
1313
1414 let STOPLOSS_LOAN = "stopLossLoan"
1515
1616 let LOAN_FEE = "loan"
1717
1818 let NO_LOAN_FEE = "noLoan"
1919
2020 let NO_FEE = "noFee"
2121
2222 let SCALE8 = 100000000
2323
2424 let SCALE10 = 10000000000
2525
2626 let SCALE16 = toBigInt(10000000000000000)
2727
2828 let FEE_SCALE6 = 1000000
2929
3030 let kSFPoolAAssetBalance = "A_asset_balance"
3131
3232 let kSFPoolBAssetBalance = "B_asset_balance"
3333
3434 let kSFPoolAAssetId = "A_asset_id"
3535
3636 let kSFPoolBAssetId = "B_asset_id"
3737
3838 let kSFPoolShareId = "share_asset_id"
3939
4040 let kSFPoolShareSupply = "share_asset_supply"
4141
4242 let kSFPoolFee = "commission"
4343
4444 let kUserPosition = "_user_position"
4545
4646 let kUserPositionPool = "_user_position_pool"
4747
4848 let kUserBorrowAmount = "_user_position_borrow_amount"
4949
5050 let kUserBorrowAssetId = "_user_position_borrow_asset_id"
5151
5252 let kUserPositionNum = "_user_position_number"
5353
5454 let kUserPositionInterest = "_user_position_interest"
5555
5656 let kPoolTotal = "_pool_total"
5757
5858 let kPoolTotalLoan = "_pool_total_loan"
5959
6060 let kPoolInterestLoan = "_pool_interest_loan"
6161
6262 let kPoolInterestNoLoan = "_pool_interest_no_loan"
6363
6464 let kPoolCanBorrow = "_pool_can_borrow"
6565
6666 let kAxlyInFeeWithoutLoan = "_axly_fee_without_loan"
6767
6868 let kAxlyInFeeWithLoan = "_axly_fee_with_loan"
6969
7070 let kAxlyNoLoanCapFee = "_axly_fee_cap_with_loan"
7171
7272 let kAxlyWithLoanCapFee = "_axly_fee_cap_no_loan"
7373
7474 let kAxlyStopLossNoLoanFee = "_axly_fee_stoploss_with_loan"
7575
7676 let kAxlyStopLossLoanFee = "_axly_fee_stoploss_no_loan"
7777
7878 let kRequestId = "_request_id"
7979
8080 let kRequestIter = "requests_iter"
8181
8282 let kPool = "pool_"
8383
8484 let kSharePool = "_pool_share_id"
8585
8686 let kPoolCapChange = "_pool_cap_change"
8787
8888 let kTokenLastPrice = "last_price"
8989
9090 let kPriceInOracle = "_twap5B"
9191
9292 let kUserStopLoss = "_stop_loss"
9393
9494 let kMoneyBox = "axly_money_box"
9595
9696 let kSFFarmingAddr = "swopfi_farming_addr"
9797
9898 let kLendService = "lend_service_addr"
9999
100100 let kAdminCallPK = "admin_call_pub_key"
101101
102102 let kPriceOracle = "price_oracle"
103103
104104 let kExContract = "exchange_contract"
105105
106106 let kWxSwapContract = "wx_swap_contract"
107107
108108 let kSwopId = "swop_id"
109109
110110 let kWxId = "wx_id"
111111
112112 let moneyBox = Address(fromBase58String(valueOrErrorMessage(getString(this, kMoneyBox), "No axly moneyBox address")))
113113
114114 let exContract = Address(fromBase58String(valueOrErrorMessage(getString(this, kExContract), "No exchange contract address")))
115115
116116 let priceOracleAddr = Address(fromBase58String(valueOrErrorMessage(getString(this, kPriceOracle), "No price oracle address")))
117117
118118 let wxSwapContract = Address(fromBase58String(valueOrErrorMessage(getString(this, kWxSwapContract), "No wx swap address")))
119119
120120 let SWOPID = fromBase58String(valueOrErrorMessage(getString(this, kSwopId), "No swop id"))
121121
122122 let WXID = fromBase58String(valueOrErrorMessage(getString(this, kWxId), "No wx id"))
123123
124124 func getLendSrvAddr () = Address(fromBase58String(valueOrErrorMessage(getString(this, kLendService), "Can't get lend service addr")))
125125
126126
127127 func getAdminCallAddr () = addressFromPublicKey(fromBase58String(valueOrErrorMessage(getString(this, kAdminCallPK), "Can't get admin addr")))
128128
129129
130130 func isAdminCall (i) = if ((i.caller == getAdminCallAddr()))
131131 then unit
132132 else throw("Only admin can call this function")
133133
134134
135135 func isSelfCall (i) = if ((i.caller == this))
136136 then unit
137137 else throw("Only contract itself can call this function")
138138
139139
140140 func isLandCall (i) = if ((i.caller == getLendSrvAddr()))
141141 then unit
142142 else throw("Only land contract can call this function")
143143
144144
145145 func accountBalance (assetId) = match assetId {
146146 case id: ByteVector =>
147147 assetBalance(this, id)
148148 case waves: Unit =>
149149 wavesBalance(this).available
150150 case _ =>
151151 throw("Match error")
152152 }
153153
154154
155155 func getSFPoolData (poolAddr) = $Tuple5(valueOrErrorMessage(getString(poolAddr, kSFPoolAAssetId), "Can't get pool A asset id"), valueOrErrorMessage(getString(poolAddr, kSFPoolBAssetId), "Can't get pool B asset id"), valueOrErrorMessage(getInteger(poolAddr, kSFPoolAAssetBalance), "Can't get pool A asset balance"), valueOrErrorMessage(getInteger(poolAddr, kSFPoolBAssetBalance), "Can't get pool B asset balance"), valueOrErrorMessage(getString(poolAddr, kSFPoolShareId), "Can't get share asset id"))
156156
157157
158158 func getWXPoolData (poolAddr) = {
159159 let cfg = {
160160 let @ = invoke(poolAddr, "getPoolConfigWrapperREADONLY", nil, nil)
161161 if ($isInstanceOf(@, "List[Any]"))
162162 then @
163163 else throw(($getType(@) + " couldn't be cast to List[Any]"))
164164 }
165165 if ((cfg == cfg))
166166 then {
167167 let aId = valueOrErrorMessage({
168168 let @ = cfg[4]
169169 if ($isInstanceOf(@, "String"))
170170 then @
171171 else unit
172172 }, "Can't get pool A asset id")
173173 let bId = valueOrErrorMessage({
174174 let @ = cfg[5]
175175 if ($isInstanceOf(@, "String"))
176176 then @
177177 else unit
178178 }, "Can't get pool B asset id")
179179 let shareId = valueOrErrorMessage({
180180 let @ = cfg[3]
181181 if ($isInstanceOf(@, "String"))
182182 then @
183183 else unit
184184 }, "Can't get pool LP asset id")
185185 let balA = {
186186 let @ = invoke(poolAddr, "getAccBalanceWrapperREADONLY", [aId], nil)
187187 if ($isInstanceOf(@, "Int"))
188188 then @
189189 else throw(($getType(@) + " couldn't be cast to Int"))
190190 }
191191 if ((balA == balA))
192192 then {
193193 let balB = {
194194 let @ = invoke(poolAddr, "getAccBalanceWrapperREADONLY", [bId], nil)
195195 if ($isInstanceOf(@, "Int"))
196196 then @
197197 else throw(($getType(@) + " couldn't be cast to Int"))
198198 }
199199 if ((balB == balB))
200200 then $Tuple5(aId, bId, balA, balB, shareId)
201201 else throw("Strict value is not equal to itself.")
202202 }
203203 else throw("Strict value is not equal to itself.")
204204 }
205205 else throw("Strict value is not equal to itself.")
206206 }
207207
208208
209209 func getPoolData (poolAddr,type) = if ((type == SF_POOL))
210210 then getSFPoolData(poolAddr)
211211 else if ((type == WX_POOL))
212212 then getWXPoolData(poolAddr)
213213 else throw("Wrong pool type")
214214
215215
216216 func getShareSupply (poolAddr,type,shareId) = if ((type == SF_POOL))
217217 then valueOrErrorMessage(getInteger(poolAddr, kSFPoolShareSupply), "Can't get share asset supply")
218218 else if ((type == WX_POOL))
219219 then valueOrErrorMessage(assetInfo(fromBase58String(shareId)), "Wrong ShareId").quantity
220220 else throw("Wrong pool type")
221221
222222
223223 func getPoolTotalShare (pool) = valueOrElse(getInteger(this, (pool + kPoolTotal)), 0)
224224
225225
226226 func getPoolTotalShareWithLoan (pool) = valueOrElse(getInteger(this, (pool + kPoolTotalLoan)), 0)
227227
228228
229229 func getNewUserPositionNumber (user) = (valueOrElse(getInteger(this, (user + kUserPositionNum)), 0) + 1)
230230
231231
232232 func getAxlyFee (pool,feeType) = if ((feeType == CAP_FEE_LOAN))
233233 then getIntegerValue(this, (pool + kAxlyWithLoanCapFee))
234234 else if ((feeType == CAP_FEE_NO_LOAN))
235235 then getIntegerValue(this, (pool + kAxlyNoLoanCapFee))
236236 else if ((feeType == LOAN_FEE))
237237 then getIntegerValue(this, (pool + kAxlyInFeeWithLoan))
238238 else if ((feeType == NO_LOAN_FEE))
239239 then getIntegerValue(this, (pool + kAxlyInFeeWithoutLoan))
240240 else if ((feeType == NO_FEE))
241241 then 0
242242 else throw("Wrong fee type")
243243
244244
245245 func getSFFarmingAddr () = Address(fromBase58String(valueOrErrorMessage(getString(this, kSFFarmingAddr), "Can't get swopfi farming addr")))
246246
247247
248248 func getWXFarmingAddr (poolAddr) = {
249249 let fContract = Address(fromBase58String(valueOrErrorMessage(getString(poolAddr, "%s__factoryContract"), "Can't get WX factory contract addr")))
250250 let factroyCfg = split(valueOrErrorMessage(getString(fContract, "%s__factoryConfig"), "Can't get WX factory cfg"), "__")
251251 Address(fromBase58String(factroyCfg[1]))
252252 }
253253
254254
255255 func assetIdToStr (assetId) = match assetId {
256256 case id: ByteVector =>
257257 toBase58String(id)
258258 case waves: Unit =>
259259 "WAVES"
260260 case _ =>
261261 throw("Not Asset id")
262262 }
263263
264264
265265 func assetIdFromStr (assetId) = if ((assetId == "WAVES"))
266266 then unit
267267 else fromBase58String(assetId)
268268
269269
270270 func getAssetDecimals (assetId) = if ((assetId == "WAVES"))
271271 then 8
272272 else match assetInfo(fromBase58String(assetId)) {
273273 case asset: Asset =>
274274 asset.decimals
275275 case _ =>
276276 throw("Can't find asset")
277277 }
278278
279279
280280 func getAssetPrecition (assetId) = pow(10, 0, getAssetDecimals(assetId), 0, 0, DOWN)
281281
282282
283283 func getAssetsPrice (assetIds) = {
284284 func getPrices (a,assetId) = {
285285 let assetPrice = getIntegerValue(priceOracleAddr, (assetId + kPriceInOracle))
286286 (a :+ assetPrice)
287287 }
288288
289289 let $l = assetIds
290290 let $s = size($l)
291291 let $acc0 = nil
292292 func $f0_1 ($a,$i) = if (($i >= $s))
293293 then $a
294294 else getPrices($a, $l[$i])
295295
296296 func $f0_2 ($a,$i) = if (($i >= $s))
297297 then $a
298298 else throw("List size exceeds 50")
299299
300300 $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 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)
301301 }
302302
303303
304304 func getSharePrice (shareId) = {
305305 let pool = valueOrErrorMessage(getString(this, (shareId + kSharePool)), "Can't find pool addr by share id")
306306 let poolAddr = Address(fromBase58String(pool))
307307 let pType = valueOrErrorMessage(getString(this, (kPool + pool)), "Pool is not inited")
308308 let $t092109275 = getPoolData(poolAddr, pType)
309309 let aId = $t092109275._1
310310 let bId = $t092109275._2
311311 let aBalance = $t092109275._3
312312 let bBalance = $t092109275._4
313313 let dPriceA = getIntegerValue(priceOracleAddr, (aId + kPriceInOracle))
314314 let dPriceB = getIntegerValue(priceOracleAddr, (bId + kPriceInOracle))
315315 let shareSupply = getShareSupply(poolAddr, pType, shareId)
316316 let APrecision = pow(10, 0, getAssetDecimals(aId), 0, 0, DOWN)
317317 let BPrecision = pow(10, 0, getAssetDecimals(bId), 0, 0, DOWN)
318318 let sharePrecision = pow(10, 0, getAssetDecimals(shareId), 0, 0, DOWN)
319319 let sum = (fraction(aBalance, dPriceA, APrecision) + fraction(bBalance, dPriceB, BPrecision))
320320 fraction(sum, sharePrecision, shareSupply)
321321 }
322322
323323
324324 func getSharePrices (shareIds) = {
325325 func getPrices (a,shareId) = (a :+ getSharePrice(shareId))
326326
327327 let $l = shareIds
328328 let $s = size($l)
329329 let $acc0 = nil
330330 func $f0_1 ($a,$i) = if (($i >= $s))
331331 then $a
332332 else getPrices($a, $l[$i])
333333
334334 func $f0_2 ($a,$i) = if (($i >= $s))
335335 then $a
336336 else throw("List size exceeds 20")
337337
338338 $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20)
339339 }
340340
341341
342-func getCursEntries (aId,bId,shareId) = {
342+func getCursEntries (aId,bId,shareId,wAmounts) = {
343343 let assetsPrices = getAssetsPrice([aId, bId])
344344 let sharePrice = getSharePrice(shareId)
345- let prices = [toString(assetsPrices[0]), toString(assetsPrices[1]), toString(sharePrice)]
345+ let prices = ([toString(assetsPrices[0]), toString(assetsPrices[1]), toString(sharePrice)] ++ wAmounts)
346346 [StringEntry(kTokenLastPrice, makeString(prices, ","))]
347347 }
348348
349349
350350 func calcReplenishByTwoTokens (pType,poolAddr,pmtA,aId,pmtB,bId,balA,balB) = if ((pType == SF_POOL))
351351 then {
352352 let repl = {
353353 let @ = invoke(poolAddr, "callFunction", ["calcLPReplenishTwoTokensREADONLY", [toString(pmtA), toString(pmtB)]], nil)
354354 if ($isInstanceOf(@, "List[Any]"))
355355 then @
356356 else throw(($getType(@) + " couldn't be cast to List[Any]"))
357357 }
358358 if ((repl == repl))
359359 then $Tuple5({
360360 let @ = repl[3]
361361 if ($isInstanceOf(@, "Int"))
362362 then @
363363 else throw(($getType(@) + " couldn't be cast to Int"))
364364 }, {
365365 let @ = repl[4]
366366 if ($isInstanceOf(@, "Int"))
367367 then @
368368 else throw(($getType(@) + " couldn't be cast to Int"))
369369 }, {
370370 let @ = repl[1]
371371 if ($isInstanceOf(@, "Int"))
372372 then @
373373 else throw(($getType(@) + " couldn't be cast to Int"))
374374 }, assetIdToStr(repl[2]), {
375375 let @ = repl[0]
376376 if ($isInstanceOf(@, "Int"))
377377 then @
378378 else throw(($getType(@) + " couldn't be cast to Int"))
379379 })
380380 else throw("Strict value is not equal to itself.")
381381 }
382382 else {
383- let $t01075911009 = $Tuple2(split({
383+ let $t01079511045 = $Tuple2(split({
384384 let @ = invoke(poolAddr, "evaluatePutByAmountAssetREADONLY", [pmtA], nil)
385385 if ($isInstanceOf(@, "String"))
386386 then @
387387 else throw(($getType(@) + " couldn't be cast to String"))
388388 }, "__"), split({
389389 let @ = invoke(poolAddr, "evaluatePutByPriceAssetREADONLY", [pmtB], nil)
390390 if ($isInstanceOf(@, "String"))
391391 then @
392392 else throw(($getType(@) + " couldn't be cast to String"))
393393 }, "__"))
394- if (($t01075911009 == $t01075911009))
394+ if (($t01079511045 == $t01079511045))
395395 then {
396- let evalPutInB = $t01075911009._2
397- let evalPutInA = $t01075911009._1
396+ let evalPutInB = $t01079511045._2
397+ let evalPutInA = $t01079511045._1
398398 let lpInA = parseIntValue(evalPutInA[1])
399399 let lpInB = parseIntValue(evalPutInB[1])
400400 if ((lpInB > lpInA))
401401 then {
402402 let pmt = parseIntValue(evalPutInA[8])
403403 $Tuple5(pmtA, pmt, (pmtB - pmt), bId, lpInB)
404404 }
405405 else {
406406 let pmt = parseIntValue(evalPutInB[7])
407407 $Tuple5(pmt, pmtB, (pmtA - pmt), aId, lpInA)
408408 }
409409 }
410410 else throw("Strict value is not equal to itself.")
411411 }
412412
413413
414414 func replenishTwoTokensByType (poolAddr,pType,pmtA,aId,pmtB,bId) = {
415415 let payments = [AttachedPayment(assetIdFromStr(aId), pmtA), AttachedPayment(assetIdFromStr(bId), pmtB)]
416416 if ((pType == SF_POOL))
417417 then invoke(poolAddr, "callFunction", ["replenishWithTwoTokens", ["false", "0"]], payments)
418418 else invoke(poolAddr, "put", [1000000, false], payments)
419419 }
420420
421421
422422 func replenishOneTokenByType (poolAddr,pType,pmt,pmtId) = {
423423 let payments = [AttachedPayment(assetIdFromStr(pmtId), pmt)]
424424 if ((pType == SF_POOL))
425425 then invoke(poolAddr, "callFunction", ["replenishWithOneToken", ["0", "false", "0"]], payments)
426426 else invoke(poolAddr, "putOneTkn", [0, false], payments)
427427 }
428428
429429
430430 func stakeLP (pool,pType,shareId,amount) = {
431431 let payments = [AttachedPayment(fromBase58String(shareId), amount)]
432432 if ((pType == SF_POOL))
433433 then invoke(getSFFarmingAddr(), "lockShareTokens", [pool, 0], payments)
434434 else invoke(getWXFarmingAddr(addressFromStringValue(pool)), "stake", nil, payments)
435435 }
436436
437437
438438 func unstakeLP (pool,pType,shareId,amount) = {
439- let $t01249412851 = if ((pType == SF_POOL))
439+ let $t01253012887 = if ((pType == SF_POOL))
440440 then $Tuple3(getSFFarmingAddr(), "withdrawShareTokens", [pool, amount])
441441 else if ((pType == WX_POOL))
442442 then $Tuple3(getWXFarmingAddr(Address(fromBase58String(pool))), "unstake", [shareId, amount])
443443 else throw("Wrong pool type")
444- let farmAddr = $t01249412851._1
445- let fName = $t01249412851._2
446- let params = $t01249412851._3
444+ let farmAddr = $t01253012887._1
445+ let fName = $t01253012887._2
446+ let params = $t01253012887._3
447447 let inv = invoke(farmAddr, fName, params, nil)
448448 if ((inv == inv))
449449 then amount
450450 else throw("Strict value is not equal to itself.")
451451 }
452452
453453
454454 func calcAmountToPaySF (pool,assetIdA,assetIdB,balA,balB,amountTokenToGet,assetTokenToGet) = {
455455 let poolAddr = Address(fromBase58String(pool))
456456 let feeScale6 = 1000000
457457 let fee = getIntegerValue(poolAddr, kSFPoolFee)
458458 let amntGetNoFee = fraction(amountTokenToGet, feeScale6, (feeScale6 - fee), CEILING)
459- let $t01327313579 = if ((assetTokenToGet == assetIdA))
459+ let $t01330913615 = if ((assetTokenToGet == assetIdA))
460460 then {
461461 let amountToPay = fraction(amntGetNoFee, balB, (balA - amntGetNoFee), CEILING)
462462 $Tuple2(amountToPay, assetIdB)
463463 }
464464 else {
465465 let amountToPay = fraction(amntGetNoFee, balA, (balB - amntGetNoFee), CEILING)
466466 $Tuple2(amountToPay, assetIdA)
467467 }
468- let amountToPay = $t01327313579._1
469- let assetToPay = $t01327313579._2
468+ let amountToPay = $t01330913615._1
469+ let assetToPay = $t01330913615._2
470470 $Tuple2(assetToPay, amountToPay)
471471 }
472472
473473
474474 func calcAmountToPayWX (pool,assetIdA,assetIdB,balA,balB,amountTokenToGet,assetTokenToGet) = {
475475 let prFee = getIntegerValue(wxSwapContract, "%s__protocolFee")
476476 let pFee = getIntegerValue(wxSwapContract, "%s__poolFee")
477477 let feeScale = toBigInt(100000000)
478- let $t01391814226 = if ((assetTokenToGet == assetIdA))
478+ let $t01395414262 = if ((assetTokenToGet == assetIdA))
479479 then {
480480 let amountToPay = fraction(amountTokenToGet, balB, (balA - amountTokenToGet))
481481 $Tuple2(amountToPay, assetIdB)
482482 }
483483 else {
484484 let amountToPay = fraction(amountTokenToGet, balA, (balB - amountTokenToGet))
485485 $Tuple2(amountToPay, assetIdA)
486486 }
487- let amountToPay = $t01391814226._1
488- let assetToPay = $t01391814226._2
487+ let amountToPay = $t01395414262._1
488+ let assetToPay = $t01395414262._2
489489 let amountToPayWithFee = toInt(fraction(toBigInt(amountToPay), feeScale, (feeScale - toBigInt((prFee + pFee))), CEILING))
490490 $Tuple2(assetToPay, amountToPayWithFee)
491491 }
492492
493493
494494 func exchangeDirectly (type,pool,assetIdA,assetIdB,balA,balB,amountTokenToGet,assetTokenToGet) = if ((type == SF_POOL))
495495 then {
496- let $t01457114693 = calcAmountToPaySF(pool, assetIdA, assetIdB, balA, balB, amountTokenToGet, assetTokenToGet)
497- let assetToPay = $t01457114693._1
498- let amountToPay = $t01457114693._2
496+ let $t01460714729 = calcAmountToPaySF(pool, assetIdA, assetIdB, balA, balB, amountTokenToGet, assetTokenToGet)
497+ let assetToPay = $t01460714729._1
498+ let amountToPay = $t01460714729._2
499499 invoke(addressFromStringValue(pool), "callFunction", ["exchange", [toString(amountTokenToGet)]], [AttachedPayment(assetIdFromStr(assetToPay), amountToPay)])
500500 }
501501 else {
502- let $t01486814990 = calcAmountToPayWX(pool, assetIdA, assetIdB, balA, balB, amountTokenToGet, assetTokenToGet)
503- let assetToPay = $t01486814990._1
504- let amountToPay = $t01486814990._2
502+ let $t01490415026 = calcAmountToPayWX(pool, assetIdA, assetIdB, balA, balB, amountTokenToGet, assetTokenToGet)
503+ let assetToPay = $t01490415026._1
504+ let amountToPay = $t01490415026._2
505505 invoke(wxSwapContract, "swap", [amountTokenToGet, assetTokenToGet, toString(this)], [AttachedPayment(assetIdFromStr(assetToPay), amountToPay)])
506506 }
507507
508508
509509 func calcReplenishLPVirt (pType,pool,pmtA,aId,pmtB,bId,balA,balB) = {
510510 let poolAddr = addressFromStringValue(pool)
511511 if ((pType == SF_POOL))
512512 then {
513513 let inv = {
514514 let @ = invoke(poolAddr, "callFunction", ["calcLPReplenishDiffPropREADONLY", [toString(pmtA), toString(pmtB), "0"]], nil)
515515 if ($isInstanceOf(@, "List[Any]"))
516516 then @
517517 else throw(($getType(@) + " couldn't be cast to List[Any]"))
518518 }
519519 if ((inv == inv))
520520 then $Tuple2({
521521 let @ = inv[0]
522522 if ($isInstanceOf(@, "Int"))
523523 then @
524524 else throw(($getType(@) + " couldn't be cast to Int"))
525525 }, {
526526 let @ = inv[1]
527527 if ($isInstanceOf(@, "Int"))
528528 then @
529529 else throw(($getType(@) + " couldn't be cast to Int"))
530530 })
531531 else throw("Strict value is not equal to itself.")
532532 }
533533 else if ((pType == WX_POOL))
534534 then {
535- let $t01559315934 = if (if ((pmtA > 0))
535+ let $t01562915970 = if (if ((pmtA > 0))
536536 then (pmtB > 0)
537537 else false)
538538 then {
539- let $t01567415800 = calcReplenishByTwoTokens(pType, poolAddr, pmtA, aId, pmtB, bId, balA, balB)
540- let pmtInA = $t01567415800._1
541- let pmtInB = $t01567415800._2
542- let change = $t01567415800._3
543- let changeId = $t01567415800._4
544- let lpAmount = $t01567415800._5
539+ let $t01571015836 = calcReplenishByTwoTokens(pType, poolAddr, pmtA, aId, pmtB, bId, balA, balB)
540+ let pmtInA = $t01571015836._1
541+ let pmtInB = $t01571015836._2
542+ let change = $t01571015836._3
543+ let changeId = $t01571015836._4
544+ let lpAmount = $t01571015836._5
545545 $Tuple3(change, changeId, lpAmount)
546546 }
547547 else if ((pmtA > 0))
548548 then $Tuple3(pmtA, aId, 0)
549549 else $Tuple3(pmtB, bId, 0)
550- let change = $t01559315934._1
551- let changeId = $t01559315934._2
552- let lpTwo = $t01559315934._3
553- let $t01594116157 = if ((change > 0))
550+ let change = $t01562915970._1
551+ let changeId = $t01562915970._2
552+ let lpTwo = $t01562915970._3
553+ let $t01597716193 = if ((change > 0))
554554 then {
555555 let inv = {
556556 let @ = invoke(poolAddr, "putOneTknREADONLY", [changeId, change], nil)
557557 if ($isInstanceOf(@, "(Int, Int, Int)"))
558558 then @
559559 else throw(($getType(@) + " couldn't be cast to (Int, Int, Int)"))
560560 }
561561 if ((inv == inv))
562562 then $Tuple2(inv._1, inv._3)
563563 else throw("Strict value is not equal to itself.")
564564 }
565565 else $Tuple2(0, 0)
566- let lpOne = $t01594116157._1
567- let loss = $t01594116157._2
566+ let lpOne = $t01597716193._1
567+ let loss = $t01597716193._2
568568 $Tuple2((lpTwo + lpOne), loss)
569569 }
570570 else throw("Wrong pool type")
571571 }
572572
573573
574+func calcWithdrawLPFromPoolVirt (poolAddr,pType,shareId,userCanWithdraw) = {
575+ let $t01636816755 = if ((pType == SF_POOL))
576+ then {
577+ let inv = {
578+ let @ = invoke(poolAddr, "callFunction", ["withdrawREADONLY", [toString(userCanWithdraw)]], nil)
579+ if ($isInstanceOf(@, "(Int, Int)"))
580+ then @
581+ else throw(($getType(@) + " couldn't be cast to (Int, Int)"))
582+ }
583+ if ((inv == inv))
584+ then $Tuple2(inv._1, inv._2)
585+ else throw("Strict value is not equal to itself.")
586+ }
587+ else {
588+ let inv = split({
589+ let @ = invoke(poolAddr, "evaluateGetREADONLY", [shareId, userCanWithdraw], nil)
590+ if ($isInstanceOf(@, "String"))
591+ then @
592+ else throw(($getType(@) + " couldn't be cast to String"))
593+ }, "__")
594+ if ((inv == inv))
595+ then $Tuple2(parseIntValue(inv[1]), parseIntValue(inv[2]))
596+ else throw("Strict value is not equal to itself.")
597+ }
598+ let amountA = $t01636816755._1
599+ let amountB = $t01636816755._2
600+ $Tuple2(amountA, amountB)
601+ }
602+
603+
574604 func calcWithdrawLPVirt (pType,pool,lpAmount,shareId,aId,bId,balA,balB,borrowAmount,borrowAssetId) = {
575605 let poolAddr = addressFromStringValue(pool)
576- let $t01645116951 = if ((pType == SF_POOL))
577- then {
578- let inv = {
579- let @ = invoke(poolAddr, "callFunction", ["withdrawREADONLY", [toString(lpAmount), toString(balA), toString(balB)]], nil)
580- if ($isInstanceOf(@, "List[Any]"))
581- then @
582- else throw(($getType(@) + " couldn't be cast to List[Any]"))
583- }
584- if ((inv == inv))
585- then $Tuple2({
586- let @ = inv[0]
587- if ($isInstanceOf(@, "Int"))
588- then @
589- else throw(($getType(@) + " couldn't be cast to Int"))
590- }, {
591- let @ = inv[1]
592- if ($isInstanceOf(@, "Int"))
593- then @
594- else throw(($getType(@) + " couldn't be cast to Int"))
595- })
596- else throw("Strict value is not equal to itself.")
597- }
598- else if ((pType == WX_POOL))
599- then {
600- let get = split({
601- let @ = invoke(poolAddr, "evaluateGetREADONLY", [shareId, lpAmount], nil)
602- if ($isInstanceOf(@, "String"))
603- then @
604- else throw(($getType(@) + " couldn't be cast to String"))
605- }, "__")
606- if ((get == get))
607- then $Tuple2(parseIntValue(get[1]), parseIntValue(get[2]))
608- else throw("Strict value is not equal to itself.")
609- }
610- else throw("Wrong pool type")
611- let getAmountA = $t01645116951._1
612- let getAmountB = $t01645116951._2
606+ let $t01700817101 = calcWithdrawLPFromPoolVirt(poolAddr, pType, shareId, lpAmount)
607+ let getAmountA = $t01700817101._1
608+ let getAmountB = $t01700817101._2
613609 if ((borrowAmount > 0))
614610 then {
615611 let amountToGetEx = if (if ((borrowAssetId == aId))
616612 then (borrowAmount > getAmountA)
617613 else false)
618614 then (borrowAmount - getAmountA)
619615 else if (if ((borrowAssetId == bId))
620616 then (borrowAmount > getAmountB)
621617 else false)
622618 then (borrowAmount - getAmountB)
623619 else 0
624- let $t01722917532 = if ((amountToGetEx > 0))
620+ let $t01737917682 = if ((amountToGetEx > 0))
625621 then if ((pType == SF_POOL))
626622 then calcAmountToPaySF(pool, aId, bId, balA, balB, amountToGetEx, borrowAssetId)
627623 else calcAmountToPayWX(pool, aId, bId, balA, balB, amountToGetEx, borrowAssetId)
628624 else $Tuple2("", 0)
629- let assetToPay = $t01722917532._1
630- let amountToPay = $t01722917532._2
625+ let assetToPay = $t01737917682._1
626+ let amountToPay = $t01737917682._2
631627 if ((borrowAssetId == aId))
632628 then $Tuple2(((getAmountA + amountToGetEx) - borrowAmount), (getAmountB - amountToPay))
633629 else $Tuple2((getAmountA - amountToPay), ((getAmountB + amountToGetEx) - borrowAmount))
634630 }
635631 else $Tuple2(getAmountA, getAmountB)
636632 }
637633
638634
639635 func claimFarmed (type,pool) = if ((type == SF_POOL))
640636 then {
641637 let balBefore = accountBalance(SWOPID)
642638 if ((balBefore == balBefore))
643639 then {
644640 let inv = invoke(getSFFarmingAddr(), "claim", [pool], nil)
645641 if ((inv == inv))
646642 then {
647643 let balAfter = accountBalance(SWOPID)
648644 $Tuple2((balAfter - balBefore), SWOPID)
649645 }
650646 else throw("Strict value is not equal to itself.")
651647 }
652648 else throw("Strict value is not equal to itself.")
653649 }
654650 else if ((type == WX_POOL))
655651 then {
656652 let balBefore = accountBalance(WXID)
657653 if ((balBefore == balBefore))
658654 then {
659655 let inv = invoke(getWXFarmingAddr(Address(fromBase58String(pool))), "claimWX", [pool], nil)
660656 if ((inv == inv))
661657 then {
662658 let balAfter = accountBalance(WXID)
663659 $Tuple2((balAfter - balBefore), WXID)
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 throw("Wrong pool type")
670666
671667
672668 func replenishByType (pType,pool,feeType,pmtA,aId,pmtB,bId,balA,balB,LPId) = {
673669 let lpBalanceBefore = accountBalance(fromBase58String(LPId))
674670 if ((lpBalanceBefore == lpBalanceBefore))
675671 then {
676672 let poolAddr = addressFromStringValue(pool)
677- let $t01872919145 = if (if ((pmtA > 0))
673+ let $t01887919295 = if (if ((pmtA > 0))
678674 then (pmtB > 0)
679675 else false)
680676 then {
681- let $t01879518911 = calcReplenishByTwoTokens(pType, poolAddr, pmtA, aId, pmtB, bId, balA, balB)
682- let pmtInA = $t01879518911._1
683- let pmtInB = $t01879518911._2
684- let change = $t01879518911._3
685- let changeId = $t01879518911._4
677+ let $t01894519061 = calcReplenishByTwoTokens(pType, poolAddr, pmtA, aId, pmtB, bId, balA, balB)
678+ let pmtInA = $t01894519061._1
679+ let pmtInB = $t01894519061._2
680+ let change = $t01894519061._3
681+ let changeId = $t01894519061._4
686682 let inv = replenishTwoTokensByType(poolAddr, pType, pmtInA, aId, pmtInB, bId)
687683 if ((inv == inv))
688684 then $Tuple2(change, changeId)
689685 else throw("Strict value is not equal to itself.")
690686 }
691687 else if ((pmtA > 0))
692688 then $Tuple2(pmtA, aId)
693689 else if ((pmtB > 0))
694690 then $Tuple2(pmtB, bId)
695691 else throw("pmts must be > 0")
696- let change = $t01872919145._1
697- let changeId = $t01872919145._2
692+ let change = $t01887919295._1
693+ let changeId = $t01887919295._2
698694 let inv = if ((change > 0))
699695 then replenishOneTokenByType(poolAddr, pType, change, changeId)
700696 else nil
701697 if ((inv == inv))
702698 then {
703699 let lpBalanceAfter = accountBalance(fromBase58String(LPId))
704700 let totalStaked = (lpBalanceAfter - lpBalanceBefore)
705701 let axlyFeeAmount = fraction(totalStaked, getAxlyFee(pool, feeType), FEE_SCALE6)
706702 let userShareForStake = (totalStaked - axlyFeeAmount)
707703 if ((0 >= userShareForStake))
708704 then throw("amount of staked sharetokens must be > 0")
709705 else {
710706 let invLP = stakeLP(pool, pType, LPId, userShareForStake)
711707 if ((invLP == invLP))
712708 then $Tuple2(userShareForStake, axlyFeeAmount)
713709 else throw("Strict value is not equal to itself.")
714710 }
715711 }
716712 else throw("Strict value is not equal to itself.")
717713 }
718714 else throw("Strict value is not equal to itself.")
719715 }
720716
721717
722718 func replenishEntries (pool,user,stakedAmount,axlyFeeAmount,posNum,shareId,type,withLoan) = {
723719 let totalAmount = getPoolTotalShare(pool)
724720 let totalAmountLoan = getPoolTotalShareWithLoan(pool)
725- let $t02000320241 = if (withLoan)
721+ let $t02015320391 = if (withLoan)
726722 then $Tuple2(getIntegerValue(this, (pool + kPoolInterestLoan)), (totalAmountLoan + stakedAmount))
727723 else $Tuple2(getIntegerValue(this, (pool + kPoolInterestNoLoan)), totalAmountLoan)
728- let curPoolInterest = $t02000320241._1
729- let totalStakedWithLoan = $t02000320241._2
724+ let curPoolInterest = $t02015320391._1
725+ let totalStakedWithLoan = $t02015320391._2
730726 [IntegerEntry((pool + kPoolTotal), (totalAmount + stakedAmount)), IntegerEntry((pool + kPoolTotalLoan), totalStakedWithLoan), IntegerEntry((((((pool + "_") + user) + "_") + toString(posNum)) + kUserPosition), stakedAmount), IntegerEntry((((((pool + "_") + user) + "_") + toString(posNum)) + kUserPositionInterest), curPoolInterest), StringEntry((((user + "_") + toString(posNum)) + kUserPositionPool), pool), IntegerEntry((user + kUserPositionNum), posNum), ScriptTransfer(moneyBox, axlyFeeAmount, fromBase58String(shareId))]
731727 }
732728
733729
734730 func exchangeKeeper (toToken,pmtAmount,pmtAsset,amountsIn,addresses,assetsToReceive,estReceived,slippageTolerance,minReceived,options) = {
735731 let tokenBalanceBefore = accountBalance(assetIdFromStr(toToken))
736732 if ((tokenBalanceBefore == tokenBalanceBefore))
737733 then {
738734 let inv = invoke(exContract, "swap", [amountsIn, addresses, assetsToReceive, estReceived, slippageTolerance, minReceived, options], [AttachedPayment(pmtAsset, pmtAmount)])
739735 if ((inv == inv))
740736 then (accountBalance(assetIdFromStr(toToken)) - tokenBalanceBefore)
741737 else throw("Strict value is not equal to itself.")
742738 }
743739 else throw("Strict value is not equal to itself.")
744740 }
745741
746742
747743 func exchangePuzzle (toToken,pmtAmount,pmtAsset,routesStr,minToReceive,options) = {
748744 let tokenBalanceBefore = accountBalance(assetIdFromStr(toToken))
749745 if ((tokenBalanceBefore == tokenBalanceBefore))
750746 then {
751747 let inv = invoke(exContract, "puzzleSwap", [routesStr, minToReceive, options], [AttachedPayment(pmtAsset, pmtAmount)])
752748 if ((inv == inv))
753749 then (accountBalance(assetIdFromStr(toToken)) - tokenBalanceBefore)
754750 else throw("Strict value is not equal to itself.")
755751 }
756752 else throw("Strict value is not equal to itself.")
757753 }
758754
759755
760756 func exchangeSwopFi (toToken,pmtAmount,pmtAsset,exchangers,exchangersType,args1,args2,routingAssetsKeys,minAmountToReceive,options) = {
761757 let tokenBalanceBefore = accountBalance(assetIdFromStr(toToken))
762758 if ((tokenBalanceBefore == tokenBalanceBefore))
763759 then {
764760 let inv = invoke(exContract, "swopfiSwap", [exchangers, exchangersType, args1, args2, routingAssetsKeys, minAmountToReceive, options], [AttachedPayment(pmtAsset, pmtAmount)])
765761 if ((inv == inv))
766762 then (accountBalance(assetIdFromStr(toToken)) - tokenBalanceBefore)
767763 else throw("Strict value is not equal to itself.")
768764 }
769765 else throw("Strict value is not equal to itself.")
770766 }
771767
772768
773769 func capitalize (pool,pType,tokenId,tokenAmount) = {
774770 let poolAddr = Address(fromBase58String(pool))
775- let $t02259222658 = getPoolData(poolAddr, pType)
776- let AId = $t02259222658._1
777- let BId = $t02259222658._2
778- let balA = $t02259222658._3
779- let balB = $t02259222658._4
780- let shareId = $t02259222658._5
771+ let $t02274222808 = getPoolData(poolAddr, pType)
772+ let AId = $t02274222808._1
773+ let BId = $t02274222808._2
774+ let balA = $t02274222808._3
775+ let balB = $t02274222808._4
776+ let shareId = $t02274222808._5
781777 if (if ((tokenId != AId))
782778 then (tokenId != BId)
783779 else false)
784780 then throw("Wrong asset")
785781 else {
786- let $t02274322823 = if ((tokenId == AId))
782+ let $t02289322973 = if ((tokenId == AId))
787783 then $Tuple2(tokenAmount, 0)
788784 else $Tuple2(0, tokenAmount)
789- let pmtA = $t02274322823._1
790- let pmtB = $t02274322823._2
791- let $t02282622930 = replenishByType(pType, pool, NO_FEE, pmtA, AId, pmtB, BId, balA, balB, shareId)
792- let stakedAmount = $t02282622930._1
793- let nf = $t02282622930._2
785+ let pmtA = $t02289322973._1
786+ let pmtB = $t02289322973._2
787+ let $t02297623080 = replenishByType(pType, pool, NO_FEE, pmtA, AId, pmtB, BId, balA, balB, shareId)
788+ let stakedAmount = $t02297623080._1
789+ let nf = $t02297623080._2
794790 let curPoolInterestLoan = valueOrElse(getInteger(this, (pool + kPoolInterestLoan)), 0)
795791 let curPoolInterestNoLoan = valueOrElse(getInteger(this, (pool + kPoolInterestNoLoan)), 0)
796792 let totalShareAmount = getPoolTotalShare(pool)
797793 let totalShareAmountWithLoan = getPoolTotalShareWithLoan(pool)
798794 let loanPercent = fraction(totalShareAmountWithLoan, SCALE8, totalShareAmount)
799795 let stakedLoan = fraction(stakedAmount, loanPercent, SCALE8)
800796 let stakedNoLoan = (stakedAmount - stakedLoan)
801797 let newInterestLoan = if ((totalShareAmountWithLoan > 0))
802798 then (curPoolInterestLoan + fraction(stakedLoan, SCALE10, totalShareAmountWithLoan))
803799 else 0
804800 let newInterestNoLoan = if (((totalShareAmount - totalShareAmountWithLoan) > 0))
805801 then (curPoolInterestNoLoan + fraction(stakedNoLoan, SCALE10, (totalShareAmount - totalShareAmountWithLoan)))
806802 else 0
807803 let axlyFeeLoan = fraction(stakedLoan, getAxlyFee(pool, CAP_FEE_LOAN), FEE_SCALE6)
808804 let axlyFeeNoLoan = fraction(stakedNoLoan, getAxlyFee(pool, CAP_FEE_NO_LOAN), FEE_SCALE6)
809805 let axlyFee = unstakeLP(pool, pType, shareId, (axlyFeeLoan + axlyFeeNoLoan))
810806 if ((axlyFee == axlyFee))
811- then ([IntegerEntry((pool + kPoolInterestLoan), newInterestLoan), IntegerEntry((pool + kPoolInterestNoLoan), newInterestNoLoan), IntegerEntry((pool + kPoolTotal), ((totalShareAmount + stakedAmount) - axlyFee)), IntegerEntry((pool + kPoolTotalLoan), ((totalShareAmountWithLoan + stakedLoan) - axlyFeeLoan)), ScriptTransfer(moneyBox, (axlyFeeLoan + axlyFeeNoLoan), fromBase58String(shareId))] ++ getCursEntries(AId, BId, shareId))
807+ then ([IntegerEntry((pool + kPoolInterestLoan), newInterestLoan), IntegerEntry((pool + kPoolInterestNoLoan), newInterestNoLoan), IntegerEntry((pool + kPoolTotal), ((totalShareAmount + stakedAmount) - axlyFee)), IntegerEntry((pool + kPoolTotalLoan), ((totalShareAmountWithLoan + stakedLoan) - axlyFeeLoan)), ScriptTransfer(moneyBox, (axlyFeeLoan + axlyFeeNoLoan), fromBase58String(shareId))] ++ getCursEntries(AId, BId, shareId, nil))
812808 else throw("Strict value is not equal to itself.")
813809 }
814810 }
815811
816812
817813 func withdrawAmountCalc (pool,userCanWithdraw,debt,borrowAsset) = {
818814 let poolAddr = Address(fromBase58String(pool))
819815 let pType = valueOrErrorMessage(getString(this, (kPool + pool)), "Unknown pool")
820- let $t02469824774 = getPoolData(poolAddr, pType)
821- let assetIdA = $t02469824774._1
822- let assetIdB = $t02469824774._2
823- let balA = $t02469824774._3
824- let balB = $t02469824774._4
825- let shareId = $t02469824774._5
816+ let $t02485224928 = getPoolData(poolAddr, pType)
817+ let assetIdA = $t02485224928._1
818+ let assetIdB = $t02485224928._2
819+ let balA = $t02485224928._3
820+ let balB = $t02485224928._4
821+ let shareId = $t02485224928._5
826822 let cBalABefore = accountBalance(assetIdFromStr(assetIdA))
827823 if ((cBalABefore == cBalABefore))
828824 then {
829825 let cBalBBefore = accountBalance(assetIdFromStr(assetIdB))
830826 if ((cBalBBefore == cBalBBefore))
831827 then {
832828 let inv = if ((pType == SF_POOL))
833829 then invoke(poolAddr, "callFunction", ["withdraw", [toString(userCanWithdraw)]], nil)
834830 else {
835831 let inv = unstakeLP(pool, pType, shareId, userCanWithdraw)
836832 if ((inv == inv))
837833 then invoke(poolAddr, "get", nil, [AttachedPayment(assetIdFromStr(shareId), userCanWithdraw)])
838834 else throw("Strict value is not equal to itself.")
839835 }
840836 if ((inv == inv))
841837 then {
842838 let cBalAAfter = accountBalance(assetIdFromStr(assetIdA))
843839 let cBalBAfter = accountBalance(assetIdFromStr(assetIdB))
844- let $t02533725426 = $Tuple2((cBalAAfter - cBalABefore), (cBalBAfter - cBalBBefore))
845- let tokensAmountA = $t02533725426._1
846- let tokensAmountB = $t02533725426._2
847- let $t02542926283 = if ((debt > 0))
840+ let $t02549125580 = $Tuple2((cBalAAfter - cBalABefore), (cBalBAfter - cBalBBefore))
841+ let tokensAmountA = $t02549125580._1
842+ let tokensAmountB = $t02549125580._2
843+ let $t02558326437 = if ((debt > 0))
848844 then {
849845 let amountToGetEx = if (if ((borrowAsset == assetIdA))
850846 then (debt > tokensAmountA)
851847 else false)
852848 then (debt - tokensAmountA)
853849 else if (if ((borrowAsset == assetIdB))
854850 then (debt > tokensAmountB)
855851 else false)
856852 then (debt - tokensAmountB)
857853 else 0
858854 let exInv = if ((amountToGetEx > 0))
859855 then exchangeDirectly(pType, pool, assetIdA, assetIdB, (balA - tokensAmountA), (balB - tokensAmountB), amountToGetEx, borrowAsset)
860856 else nil
861857 if ((exInv == exInv))
862858 then {
863859 let cBalAAfterRepay = accountBalance(assetIdFromStr(assetIdA))
864860 let cBalBAfterRepay = accountBalance(assetIdFromStr(assetIdB))
865861 if ((borrowAsset == assetIdA))
866862 then $Tuple2(((cBalAAfterRepay - cBalABefore) - debt), (cBalBAfterRepay - cBalBBefore))
867863 else $Tuple2((cBalAAfterRepay - cBalABefore), ((cBalBAfterRepay - cBalBBefore) - debt))
868864 }
869865 else throw("Strict value is not equal to itself.")
870866 }
871867 else $Tuple2(tokensAmountA, tokensAmountB)
872- let toUserA = $t02542926283._1
873- let toUserB = $t02542926283._2
868+ let toUserA = $t02558326437._1
869+ let toUserB = $t02558326437._2
874870 $Tuple7(toUserA, assetIdA, toUserB, assetIdB, cBalAAfter, cBalBAfter, shareId)
875871 }
876872 else throw("Strict value is not equal to itself.")
877873 }
878874 else throw("Strict value is not equal to itself.")
879875 }
880876 else throw("Strict value is not equal to itself.")
881877 }
882878
883879
884880 func userCanWithdrawShareCalc (user,pool,posId,borrowed) = {
885881 let pAmount = valueOrErrorMessage(getInteger(this, (((((pool + "_") + user) + "_") + posId) + kUserPosition)), "Unknown position")
886882 let userInterest = getIntegerValue(this, (((((pool + "_") + user) + "_") + posId) + kUserPositionInterest))
887883 let poolInterest = if (borrowed)
888884 then getIntegerValue(this, (pool + kPoolInterestLoan))
889885 else getIntegerValue(this, (pool + kPoolInterestNoLoan))
890886 (pAmount + fraction(pAmount, (poolInterest - userInterest), SCALE10))
891887 }
892888
893889
894890 func withdrawToUser (user,pool,posId,stopLoss) = {
895891 let pAmount = valueOrErrorMessage(getInteger(this, (((((pool + "_") + user) + "_") + posId) + kUserPosition)), "Unknown position")
896892 let borrowAmount = valueOrElse(getInteger(this, (((((pool + "_") + user) + "_") + posId) + kUserBorrowAmount)), 0)
897893 let userCanWithdraw = userCanWithdrawShareCalc(user, pool, posId, (borrowAmount > 0))
898894 let poolTotalShare = getPoolTotalShare(pool)
899895 let userAddr = Address(fromBase58String(user))
900896 let borrowAsset = valueOrElse(getString(this, (((((pool + "_") + user) + "_") + posId) + kUserBorrowAssetId)), "")
901897 let debt = if ((borrowAmount > 0))
902898 then {
903899 let @ = invoke(getLendSrvAddr(), "getAssetDebt", [false, ((user + "_") + posId), borrowAsset], nil)
904900 if ($isInstanceOf(@, "Int"))
905901 then @
906902 else throw(($getType(@) + " couldn't be cast to Int"))
907903 }
908904 else 0
909- let $t02767127824 = withdrawAmountCalc(pool, userCanWithdraw, debt, borrowAsset)
910- if (($t02767127824 == $t02767127824))
905+ let $t02782527978 = withdrawAmountCalc(pool, userCanWithdraw, debt, borrowAsset)
906+ if (($t02782527978 == $t02782527978))
911907 then {
912- let shareId = $t02767127824._7
913- let cBalBAfter = $t02767127824._6
914- let cBalAAfter = $t02767127824._5
915- let assetIdB = $t02767127824._4
916- let toUserAmountB = $t02767127824._3
917- let assetIdA = $t02767127824._2
918- let toUserAmountA = $t02767127824._1
908+ let shareId = $t02782527978._7
909+ let cBalBAfter = $t02782527978._6
910+ let cBalAAfter = $t02782527978._5
911+ let assetIdB = $t02782527978._4
912+ let toUserAmountB = $t02782527978._3
913+ let assetIdA = $t02782527978._2
914+ let toUserAmountA = $t02782527978._1
919915 let closeDbtInv = if ((debt > 0))
920916 then invoke(getLendSrvAddr(), "repayFor", [((user + "_") + posId)], [AttachedPayment(assetIdFromStr(borrowAsset), debt)])
921917 else 0
922918 if ((closeDbtInv == closeDbtInv))
923- then ([DeleteEntry((((((pool + "_") + user) + "_") + posId) + kUserPosition)), DeleteEntry((((((pool + "_") + user) + "_") + posId) + kUserPositionInterest)), IntegerEntry((pool + kPoolTotal), (poolTotalShare - userCanWithdraw)), ScriptTransfer(userAddr, toUserAmountA, assetIdFromStr(assetIdA)), ScriptTransfer(userAddr, toUserAmountB, assetIdFromStr(assetIdB))] ++ getCursEntries(assetIdA, assetIdB, shareId))
919+ then ([DeleteEntry((((((pool + "_") + user) + "_") + posId) + kUserPosition)), DeleteEntry((((((pool + "_") + user) + "_") + posId) + kUserPositionInterest)), IntegerEntry((pool + kPoolTotal), (poolTotalShare - userCanWithdraw)), ScriptTransfer(userAddr, toUserAmountA, assetIdFromStr(assetIdA)), ScriptTransfer(userAddr, toUserAmountB, assetIdFromStr(assetIdB))] ++ getCursEntries(assetIdA, assetIdB, shareId, nil))
924920 else throw("Strict value is not equal to itself.")
925921 }
926922 else throw("Strict value is not equal to itself.")
927923 }
928924
929925
930926 func parseRequest (requestId) = {
931927 let request = split(valueOrErrorMessage(getString(this, (requestId + kRequestId)), ("No request with id " + requestId)), ",")
932928 let user = request[0]
933929 let pool = request[1]
934930 let pmtA = parseIntValue(request[2])
935931 let AId = request[3]
936932 let pmtB = parseIntValue(request[4])
937933 let BId = request[5]
938934 let balA = parseIntValue(request[6])
939935 let balB = parseIntValue(request[7])
940936 let shareId = request[8]
941937 let bwAsset = request[9]
942938 let bwAmount = parseIntValue(request[10])
943939 $Tuple11(user, pool, pmtA, AId, pmtB, BId, balA, balB, shareId, bwAsset, bwAmount)
944940 }
945941
946942
947943 func calcBorrowAmount (pmtA,pmtB,aId,bId,leverage,borrowId) = {
948944 let dPriceA = getIntegerValue(priceOracleAddr, (aId + kPriceInOracle))
949945 let dPriceB = getIntegerValue(priceOracleAddr, (bId + kPriceInOracle))
950946 let decPrA = pow(10, 0, getAssetDecimals(aId), 0, 0, DOWN)
951947 let decPrB = pow(10, 0, getAssetDecimals(bId), 0, 0, DOWN)
952948 let paydInDollar = (fraction(dPriceA, pmtA, decPrA) + fraction(dPriceB, pmtB, decPrB))
953- let $t02946429561 = if ((borrowId == aId))
949+ let $t02962229719 = if ((borrowId == aId))
954950 then $Tuple2(dPriceA, decPrA)
955951 else $Tuple2(dPriceB, decPrB)
956- let borrowPrice = $t02946429561._1
957- let borrowDecPr = $t02946429561._2
952+ let borrowPrice = $t02962229719._1
953+ let borrowDecPr = $t02962229719._2
958954 fraction(fraction(paydInDollar, (leverage - 100), 100), borrowDecPr, borrowPrice)
959955 }
960956
961957
962958 @Callable(i)
963959 func calcPriceImpactEVALONLY (pool,leverage,borrowId,pmtA,pmtB) = if (if ((100 > leverage))
964960 then true
965961 else (leverage > 300))
966962 then throw("Leverage can't be <100 and >300")
967963 else {
968964 let pType = valueOrErrorMessage(getString(this, (kPool + pool)), "Pool is not inited")
969- let $t02997930069 = getPoolData(Address(fromBase58String(pool)), pType)
970- let AId = $t02997930069._1
971- let BId = $t02997930069._2
972- let balA = $t02997930069._3
973- let balB = $t02997930069._4
974- let shareId = $t02997930069._5
965+ let $t03013730227 = getPoolData(Address(fromBase58String(pool)), pType)
966+ let AId = $t03013730227._1
967+ let BId = $t03013730227._2
968+ let balA = $t03013730227._3
969+ let balB = $t03013730227._4
970+ let shareId = $t03013730227._5
975971 let borrowAmount = if ((leverage > 100))
976972 then calcBorrowAmount(pmtA, pmtB, AId, BId, leverage, borrowId)
977973 else 0
978- let $t03020430311 = if ((borrowId == AId))
974+ let $t03036230469 = if ((borrowId == AId))
979975 then $Tuple2((pmtA + borrowAmount), pmtB)
980976 else $Tuple2(pmtA, (pmtB + borrowAmount))
981- let payInA = $t03020430311._1
982- let payInB = $t03020430311._2
983- let $t03031430407 = calcReplenishLPVirt(pType, pool, payInA, AId, payInB, BId, balA, balB)
984- let lpAmount = $t03031430407._1
985- let loss = $t03031430407._2
977+ let payInA = $t03036230469._1
978+ let payInB = $t03036230469._2
979+ let $t03047230565 = calcReplenishLPVirt(pType, pool, payInA, AId, payInB, BId, balA, balB)
980+ let lpAmount = $t03047230565._1
981+ let loss = $t03047230565._2
986982 let impactMod = if ((0 > loss))
987983 then (loss * -1)
988984 else loss
989985 $Tuple2(nil, [impactMod])
990986 }
987+
988+
989+
990+@Callable(i)
991+func replenishFromLandEVALONLY (requestId) = valueOrElse(isLandCall(i), {
992+ let $t03074230846 = parseRequest(requestId)
993+ let user = $t03074230846._1
994+ let pool = $t03074230846._2
995+ let pmtA = $t03074230846._3
996+ let AId = $t03074230846._4
997+ let pmtB = $t03074230846._5
998+ let BId = $t03074230846._6
999+ let balA = $t03074230846._7
1000+ let balB = $t03074230846._8
1001+ let shareId = $t03074230846._9
1002+ let bwAsset = $t03074230846._10
1003+ let bwAmount = $t03074230846._11
1004+ if ((size(i.payments) != 1))
1005+ then throw("Wrong payment size")
1006+ else if (if ((assetIdToStr(i.payments[0].assetId) != bwAsset))
1007+ then true
1008+ else (i.payments[0].amount != bwAmount))
1009+ then throw("Wrong payment")
1010+ else {
1011+ let $t03103631160 = if ((AId == bwAsset))
1012+ then $Tuple2((pmtA + i.payments[0].amount), pmtB)
1013+ else $Tuple2(pmtA, (pmtB + i.payments[0].amount))
1014+ let pmtAllA = $t03103631160._1
1015+ let pmtAllB = $t03103631160._2
1016+ let pType = valueOrErrorMessage(getString(this, (kPool + pool)), "Unknown pool")
1017+ let $t03124231357 = replenishByType(pType, pool, LOAN_FEE, pmtAllA, AId, pmtAllB, BId, balA, balB, shareId)
1018+ let userStaked = $t03124231357._1
1019+ let axlyFee = $t03124231357._2
1020+ let posNum = getNewUserPositionNumber(user)
1021+ let borrowEntries = [IntegerEntry((((((pool + "_") + user) + "_") + toString(posNum)) + kUserBorrowAmount), bwAmount), StringEntry((((((pool + "_") + user) + "_") + toString(posNum)) + kUserBorrowAssetId), bwAsset)]
1022+ let entries = replenishEntries(pool, user, userStaked, axlyFee, posNum, shareId, pType, true)
1023+ nil
1024+ }
1025+ })
9911026
9921027
9931028
9941029 @Callable(i)
9951030 func getShareAssetPriceREADONLY (shareId) = {
9961031 let sharePrices = getSharePrice(shareId)
9971032 $Tuple2(nil, sharePrices)
9981033 }
9991034
10001035
10011036
10021037 @Callable(i)
10031038 func getUserPositionShareAmountREADONLY (user,posNum) = {
10041039 let pool = valueOrErrorMessage(getString(this, (((user + "_") + posNum) + kUserPositionPool)), "Unknown position")
10051040 let borrowAmount = getIntegerValue(this, (((((pool + "_") + user) + "_") + posNum) + kUserBorrowAmount))
10061041 let userCanWithdraw = userCanWithdrawShareCalc(user, pool, posNum, (borrowAmount > 0))
10071042 $Tuple2(nil, userCanWithdraw)
10081043 }
10091044
10101045
10111046
10121047 @Callable(i)
10131048 func getUserPositionInDollarsREADONLY (user,pools,posNum) = {
10141049 func userPos (a,pool) = {
1015- let $t03122031254 = a
1016- let totalPos = $t03122031254._1
1017- let posDebt = $t03122031254._2
1018- let index = $t03122031254._3
1050+ let $t03245532489 = a
1051+ let totalPos = $t03245532489._1
1052+ let posDebt = $t03245532489._2
1053+ let index = $t03245532489._3
10191054 let pType = valueOrErrorMessage(getString(this, (kPool + pool)), "Pool is not inited")
1020- let $t03134631436 = getPoolData(Address(fromBase58String(pool)), pType)
1021- let AId = $t03134631436._1
1022- let BId = $t03134631436._2
1023- let balA = $t03134631436._3
1024- let balB = $t03134631436._4
1025- let shareId = $t03134631436._5
1055+ let $t03258132671 = getPoolData(Address(fromBase58String(pool)), pType)
1056+ let AId = $t03258132671._1
1057+ let BId = $t03258132671._2
1058+ let balA = $t03258132671._3
1059+ let balB = $t03258132671._4
1060+ let shareId = $t03258132671._5
10261061 let borrowAmount = valueOrElse(getInteger(this, (((((pool + "_") + user) + "_") + posNum[index]) + kUserBorrowAmount)), 0)
10271062 let userCanWithdraw = userCanWithdrawShareCalc(user, pool, posNum[index], (borrowAmount > 0))
10281063 let sharePrices = getSharePrice(shareId)
10291064 let decPrShare = pow(10, 0, getAssetDecimals(shareId), 0, 0, DOWN)
10301065 let shareD = fraction(userCanWithdraw, sharePrices, decPrShare)
10311066 if ((borrowAmount == 0))
10321067 then $Tuple3((totalPos :+ shareD), (posDebt :+ 0), (index + 1))
10331068 else {
10341069 let borrowAsset = getStringValue(this, (((((pool + "_") + user) + "_") + posNum[index]) + kUserBorrowAssetId))
10351070 let debt = {
10361071 let @ = invoke(getLendSrvAddr(), "getAssetDebt", [false, ((user + "_") + posNum[index]), borrowAsset], nil)
10371072 if ($isInstanceOf(@, "Int"))
10381073 then @
10391074 else throw(($getType(@) + " couldn't be cast to Int"))
10401075 }
10411076 let borrowAssetPrice = getIntegerValue(priceOracleAddr, (borrowAsset + kPriceInOracle))
10421077 let decPrBorrowId = pow(10, 0, getAssetDecimals(borrowAsset), 0, 0, DOWN)
10431078 let debtD = fraction(debt, borrowAssetPrice, decPrBorrowId)
10441079 $Tuple3((totalPos :+ shareD), (posDebt :+ debtD), (index + 1))
10451080 }
10461081 }
10471082
1048- let $t03245632511 = {
1083+ let $t03369133746 = {
10491084 let $l = pools
10501085 let $s = size($l)
10511086 let $acc0 = $Tuple3(nil, nil, 0)
10521087 func $f0_1 ($a,$i) = if (($i >= $s))
10531088 then $a
10541089 else userPos($a, $l[$i])
10551090
10561091 func $f0_2 ($a,$i) = if (($i >= $s))
10571092 then $a
10581093 else throw("List size exceeds 20")
10591094
10601095 $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20)
10611096 }
1062- let pos = $t03245632511._1
1063- let debt = $t03245632511._2
1097+ let pos = $t03369133746._1
1098+ let debt = $t03369133746._2
10641099 $Tuple2(nil, $Tuple2(pos, debt))
10651100 }
10661101
10671102
10681103
10691104 @Callable(i)
10701105 func replenish (pool,leverage,borrowId) = if (if ((100 > leverage))
10711106 then true
10721107 else (leverage > 300))
10731108 then throw("Leverage can't be <100 and >300")
10741109 else if (if (!(getBooleanValue(this, (pool + kPoolCanBorrow))))
10751110 then (leverage > 100)
10761111 else false)
10771112 then throw("You can't borrow in this pool")
10781113 else {
10791114 let pType = valueOrErrorMessage(getString(this, (kPool + pool)), "Pool is not inited")
1080- let $t03295133041 = getPoolData(Address(fromBase58String(pool)), pType)
1081- let AId = $t03295133041._1
1082- let BId = $t03295133041._2
1083- let balA = $t03295133041._3
1084- let balB = $t03295133041._4
1085- let shareId = $t03295133041._5
1086- let $t03304433681 = if ((size(i.payments) == 2))
1115+ let $t03418634276 = getPoolData(Address(fromBase58String(pool)), pType)
1116+ let AId = $t03418634276._1
1117+ let BId = $t03418634276._2
1118+ let balA = $t03418634276._3
1119+ let balB = $t03418634276._4
1120+ let shareId = $t03418634276._5
1121+ let $t03427934916 = if ((size(i.payments) == 2))
10871122 then if ((assetIdToStr(i.payments[0].assetId) != AId))
10881123 then throw("Wrong payment asset A")
10891124 else if ((assetIdToStr(i.payments[1].assetId) != BId))
10901125 then throw("Wrong payment asset B")
10911126 else $Tuple4(i.payments[0].amount, AId, i.payments[1].amount, BId)
10921127 else if ((size(i.payments) == 1))
10931128 then if ((assetIdToStr(i.payments[0].assetId) == AId))
10941129 then $Tuple4(i.payments[0].amount, AId, 0, BId)
10951130 else if ((assetIdToStr(i.payments[0].assetId) == BId))
10961131 then $Tuple4(0, AId, i.payments[0].amount, BId)
10971132 else throw("Wrong payment")
10981133 else throw("One or two payments expected")
1099- let pmtA = $t03304433681._1
1100- let pmtAssetA = $t03304433681._2
1101- let pmtB = $t03304433681._3
1102- let pmtAssetB = $t03304433681._4
1134+ let pmtA = $t03427934916._1
1135+ let pmtAssetA = $t03427934916._2
1136+ let pmtB = $t03427934916._3
1137+ let pmtAssetB = $t03427934916._4
11031138 let newPosNum = getNewUserPositionNumber(toString(i.caller))
11041139 if ((leverage > 100))
11051140 then {
11061141 let borrowAmount = calcBorrowAmount(pmtA, pmtB, pmtAssetA, pmtAssetB, leverage, borrowId)
11071142 let request = makeString([toString(i.caller), pool, toString(pmtA), pmtAssetA, toString(pmtB), pmtAssetB, toString(balA), toString(balB), shareId, borrowId, toString(borrowAmount)], ",")
11081143 let newRequestId = {
11091144 let @ = invoke(this, "createNewRequest", [request], nil)
11101145 if ($isInstanceOf(@, "Int"))
11111146 then @
11121147 else throw(($getType(@) + " couldn't be cast to Int"))
11131148 }
11141149 if ((newRequestId == newRequestId))
11151150 then {
11161151 let args = [((toString(i.caller) + "_") + toString(newPosNum)), shareId, borrowId, borrowAmount, toString(this), "replenishFromLand", toString(valueOrErrorMessage(newRequestId, "Can't create new request"))]
11171152 let inv = reentrantInvoke(getLendSrvAddr(), "flashPosition", args, nil)
11181153 if ((inv == inv))
11191154 then nil
11201155 else throw("Strict value is not equal to itself.")
11211156 }
11221157 else throw("Strict value is not equal to itself.")
11231158 }
11241159 else {
1125- let $t03460934721 = replenishByType(pType, pool, NO_LOAN_FEE, pmtA, AId, pmtB, BId, balA, balB, shareId)
1126- let userStaked = $t03460934721._1
1127- let axlyFee = $t03460934721._2
1128- (replenishEntries(pool, toString(i.caller), userStaked, axlyFee, newPosNum, shareId, pType, false) ++ getCursEntries(AId, BId, shareId))
1160+ let $t03584435956 = replenishByType(pType, pool, NO_LOAN_FEE, pmtA, AId, pmtB, BId, balA, balB, shareId)
1161+ let userStaked = $t03584435956._1
1162+ let axlyFee = $t03584435956._2
1163+ let $t03596236077 = calcWithdrawLPFromPoolVirt(Address(fromBase58String(pool)), pType, shareId, userStaked)
1164+ let wAmountA = $t03596236077._1
1165+ let wAmountB = $t03596236077._2
1166+ (replenishEntries(pool, toString(i.caller), userStaked, axlyFee, newPosNum, shareId, pType, false) ++ getCursEntries(AId, BId, shareId, [toString(wAmountA), toString(wAmountB)]))
11291167 }
11301168 }
11311169
11321170
11331171
11341172 @Callable(i)
11351173 func withdraw (pool,posId) = withdrawToUser(toString(i.caller), pool, toString(posId), false)
11361174
11371175
11381176
11391177 @Callable(i)
11401178 func createUpdateStopLoss (posId,poolId,assetId,price) = {
11411179 let tokenOraclePrice = getIntegerValue(priceOracleAddr, (assetId + kPriceInOracle))
11421180 if (!(isDefined(getInteger(this, (((((poolId + "_") + toString(i.caller)) + "_") + toString(posId)) + kUserPosition)))))
11431181 then throw("There are no user position")
11441182 else if ((0 >= price))
11451183 then throw("Price must be greater than 0")
11461184 else if ((price > tokenOraclePrice))
11471185 then throw("Price must be less than current token price")
11481186 else [IntegerEntry((((((((toString(i.caller) + "_") + toString(posId)) + "_") + poolId) + "_") + assetId) + kUserStopLoss), price)]
11491187 }
11501188
11511189
11521190
11531191 @Callable(i)
11541192 func deleteStopLoss (posId,poolId,assetId) = if (!(isDefined(getInteger(this, (((((((toString(i.caller) + "_") + toString(posId)) + "_") + poolId) + "_") + assetId) + kUserStopLoss)))))
11551193 then throw("No entry")
11561194 else [DeleteEntry((((((((toString(i.caller) + "_") + toString(posId)) + "_") + poolId) + "_") + assetId) + kUserStopLoss))]
11571195
11581196
11591197
11601198 @Callable(i)
11611199 func init (moneyBoxAddr,sfFarmingAddr,lendAddr,priceOracleAddr,keeperExContract,wxSwapContract,swopAssetId,wxAssetId,adminPubKey) = if (isDefined(getString(kMoneyBox)))
11621200 then throw("Already inited")
11631201 else [StringEntry(kMoneyBox, moneyBoxAddr), StringEntry(kSFFarmingAddr, sfFarmingAddr), StringEntry(kLendService, lendAddr), StringEntry(kPriceOracle, priceOracleAddr), StringEntry(kExContract, keeperExContract), StringEntry(kWxSwapContract, wxSwapContract), StringEntry(kSwopId, swopAssetId), StringEntry(kWxId, wxAssetId), StringEntry(kAdminCallPK, adminPubKey)]
11641202
11651203
11661204
11671205 @Callable(i)
11681206 func createNewRequest (params) = valueOrElse(isSelfCall(i), {
11691207 let newRequestId = (valueOrElse(getInteger(this, kRequestIter), 0) + 1)
11701208 $Tuple2([StringEntry((toString(newRequestId) + kRequestId), params), IntegerEntry(kRequestIter, newRequestId)], newRequestId)
11711209 })
11721210
11731211
11741212
11751213 @Callable(i)
11761214 func replenishFromLand (requestId) = valueOrElse(isLandCall(i), {
1177- let $t03717837282 = parseRequest(requestId)
1178- let user = $t03717837282._1
1179- let pool = $t03717837282._2
1180- let pmtA = $t03717837282._3
1181- let AId = $t03717837282._4
1182- let pmtB = $t03717837282._5
1183- let BId = $t03717837282._6
1184- let balA = $t03717837282._7
1185- let balB = $t03717837282._8
1186- let shareId = $t03717837282._9
1187- let bwAsset = $t03717837282._10
1188- let bwAmount = $t03717837282._11
1215+ let $t03857738681 = parseRequest(requestId)
1216+ let user = $t03857738681._1
1217+ let pool = $t03857738681._2
1218+ let pmtA = $t03857738681._3
1219+ let AId = $t03857738681._4
1220+ let pmtB = $t03857738681._5
1221+ let BId = $t03857738681._6
1222+ let balA = $t03857738681._7
1223+ let balB = $t03857738681._8
1224+ let shareId = $t03857738681._9
1225+ let bwAsset = $t03857738681._10
1226+ let bwAmount = $t03857738681._11
11891227 if ((size(i.payments) != 1))
11901228 then throw("Wrong payment size")
11911229 else if (if ((assetIdToStr(i.payments[0].assetId) != bwAsset))
11921230 then true
11931231 else (i.payments[0].amount != bwAmount))
11941232 then throw("Wrong payment")
11951233 else {
1196- let $t03747237596 = if ((AId == bwAsset))
1234+ let $t03887138995 = if ((AId == bwAsset))
11971235 then $Tuple2((pmtA + i.payments[0].amount), pmtB)
11981236 else $Tuple2(pmtA, (pmtB + i.payments[0].amount))
1199- let pmtAllA = $t03747237596._1
1200- let pmtAllB = $t03747237596._2
1237+ let pmtAllA = $t03887138995._1
1238+ let pmtAllB = $t03887138995._2
12011239 let pType = valueOrErrorMessage(getString(this, (kPool + pool)), "Unknown pool")
1202- let $t03767837793 = replenishByType(pType, pool, LOAN_FEE, pmtAllA, AId, pmtAllB, BId, balA, balB, shareId)
1203- let userStaked = $t03767837793._1
1204- let axlyFee = $t03767837793._2
1240+ let $t03907739192 = replenishByType(pType, pool, LOAN_FEE, pmtAllA, AId, pmtAllB, BId, balA, balB, shareId)
1241+ let userStaked = $t03907739192._1
1242+ let axlyFee = $t03907739192._2
12051243 let posNum = getNewUserPositionNumber(user)
12061244 let borrowEntries = [IntegerEntry((((((pool + "_") + user) + "_") + toString(posNum)) + kUserBorrowAmount), bwAmount), StringEntry((((((pool + "_") + user) + "_") + toString(posNum)) + kUserBorrowAssetId), bwAsset)]
12071245 let entries = replenishEntries(pool, user, userStaked, axlyFee, posNum, shareId, pType, true)
1208- $Tuple2((((entries ++ getCursEntries(AId, BId, shareId)) ++ borrowEntries) :+ DeleteEntry((requestId + kRequestId))), userStaked)
1246+ let $t03955239667 = calcWithdrawLPFromPoolVirt(Address(fromBase58String(pool)), pType, shareId, userStaked)
1247+ let wAmountA = $t03955239667._1
1248+ let wAmountB = $t03955239667._2
1249+ $Tuple2((((entries ++ getCursEntries(AId, BId, shareId, [toString(wAmountA), toString(wAmountB)])) ++ borrowEntries) :+ DeleteEntry((requestId + kRequestId))), userStaked)
12091250 }
12101251 })
12111252
12121253
12131254
12141255 @Callable(i)
12151256 func liquidate (user,posId,liquidateAmount) = valueOrElse(isLandCall(i), {
12161257 let pool = valueOrErrorMessage(getString(this, (((user + "_") + posId) + kUserPositionPool)), "no position")
12171258 let pType = valueOrErrorMessage(getString(this, (kPool + pool)), "Pool is not inited")
1218- let $t03857238662 = getPoolData(Address(fromBase58String(pool)), pType)
1219- let AId = $t03857238662._1
1220- let BId = $t03857238662._2
1221- let balA = $t03857238662._3
1222- let balB = $t03857238662._4
1223- let shareId = $t03857238662._5
1259+ let $t04016140251 = getPoolData(Address(fromBase58String(pool)), pType)
1260+ let AId = $t04016140251._1
1261+ let BId = $t04016140251._2
1262+ let balA = $t04016140251._3
1263+ let balB = $t04016140251._4
1264+ let shareId = $t04016140251._5
12241265 let amount = unstakeLP(pool, pType, shareId, liquidateAmount)
12251266 let borrowAmount = getIntegerValue(this, (((((pool + "_") + user) + "_") + posId) + kUserBorrowAmount))
12261267 let borrowAsset = getStringValue(this, (((((pool + "_") + user) + "_") + posId) + kUserBorrowAssetId))
12271268 let userCanWithdraw = userCanWithdrawShareCalc(user, pool, posId, (borrowAmount > 0))
12281269 if ((borrowAmount == 0))
12291270 then throw("You can't liquidate position without borrow")
12301271 else [IntegerEntry((((((pool + "_") + user) + "_") + posId) + kUserPositionInterest), getIntegerValue(this, (pool + kPoolInterestLoan))), IntegerEntry((pool + kPoolTotalLoan), (getPoolTotalShareWithLoan(pool) - liquidateAmount)), IntegerEntry((pool + kPoolTotal), (getPoolTotalShare(pool) - liquidateAmount)), IntegerEntry((((((pool + "_") + user) + "_") + posId) + kUserPosition), (userCanWithdraw - liquidateAmount)), ScriptTransfer(i.caller, amount, fromBase58String(shareId))]
12311272 })
12321273
12331274
12341275
12351276 @Callable(i)
12361277 func stopLoss (user,posId,pool,assetId) = valueOrElse(isAdminCall(i), {
12371278 let tokenOraclePrice = getIntegerValue(priceOracleAddr, (assetId + kPriceInOracle))
12381279 if (!(isDefined(getInteger(this, (((((((user + "_") + toString(posId)) + "_") + pool) + "_") + assetId) + kUserStopLoss)))))
12391280 then throw("No entry")
12401281 else (withdrawToUser(toString(i.caller), pool, toString(posId), true) :+ DeleteEntry((((((((user + "_") + toString(posId)) + "_") + pool) + "_") + assetId) + kUserStopLoss)))
12411282 })
12421283
12431284
12441285
12451286 @Callable(i)
12461287 func capitalizeExKeeper (pool,type,tokenToId,amountToExchange,claim,amountsIn,addresses,assetsToReceive,estReceived,slippageTolerance,minReceived,options) = valueOrElse(isAdminCall(i), {
1247- let $t04042540619 = if (claim)
1288+ let $t04201442208 = if (claim)
12481289 then claimFarmed(type, pool)
12491290 else {
12501291 let claimedAsset = if ((type == SF_POOL))
12511292 then SWOPID
12521293 else WXID
12531294 $Tuple2(amountToExchange, claimedAsset)
12541295 }
1255- let claimedAmount = $t04042540619._1
1256- let claimedAsset = $t04042540619._2
1296+ let claimedAmount = $t04201442208._1
1297+ let claimedAsset = $t04201442208._2
12571298 let exchangedAmount = exchangeKeeper(tokenToId, amountToExchange, claimedAsset, amountsIn, addresses, assetsToReceive, estReceived, slippageTolerance, minReceived, options)
12581299 let change = (claimedAmount - amountToExchange)
12591300 let changeEntry = if ((change > 0))
12601301 then [IntegerEntry((pool + kPoolCapChange), (change + valueOrElse(getInteger(this, (pool + kPoolCapChange)), 0)))]
12611302 else nil
12621303 (capitalize(pool, type, tokenToId, exchangedAmount) ++ changeEntry)
12631304 })
12641305
12651306
12661307
12671308 @Callable(i)
12681309 func capitalizeExPuzzle (pool,type,tokenToId,amountToExchange,claim,routesStr,minToReceive,options) = valueOrElse(isAdminCall(i), {
1269- let $t04130441498 = if (claim)
1310+ let $t04289343087 = if (claim)
12701311 then claimFarmed(type, pool)
12711312 else {
12721313 let claimedAsset = if ((type == SF_POOL))
12731314 then SWOPID
12741315 else WXID
12751316 $Tuple2(amountToExchange, claimedAsset)
12761317 }
1277- let claimedAmount = $t04130441498._1
1278- let claimedAsset = $t04130441498._2
1318+ let claimedAmount = $t04289343087._1
1319+ let claimedAsset = $t04289343087._2
12791320 let exchangedAmount = exchangePuzzle(tokenToId, amountToExchange, claimedAsset, routesStr, minToReceive, options)
12801321 let change = (claimedAmount - amountToExchange)
12811322 let changeEntry = if ((change > 0))
12821323 then [IntegerEntry((pool + kPoolCapChange), (change + valueOrElse(getInteger(this, (pool + kPoolCapChange)), 0)))]
12831324 else nil
12841325 (capitalize(pool, type, tokenToId, exchangedAmount) ++ changeEntry)
12851326 })
12861327
12871328
12881329
12891330 @Callable(i)
12901331 func capitalizeExSwopFi (pool,type,tokenToId,amountToExchange,claim,exchangers,exchangersType,args1,args2,routingAssetsKeys,minAmountToReceive,options) = valueOrElse(isAdminCall(i), {
1291- let $t04224942443 = if (claim)
1332+ let $t04383844032 = if (claim)
12921333 then claimFarmed(type, pool)
12931334 else {
12941335 let claimedAsset = if ((type == SF_POOL))
12951336 then SWOPID
12961337 else WXID
12971338 $Tuple2(amountToExchange, claimedAsset)
12981339 }
1299- let claimedAmount = $t04224942443._1
1300- let claimedAsset = $t04224942443._2
1340+ let claimedAmount = $t04383844032._1
1341+ let claimedAsset = $t04383844032._2
13011342 let exchangedAmount = exchangeSwopFi(tokenToId, amountToExchange, claimedAsset, exchangers, exchangersType, args1, args2, routingAssetsKeys, minAmountToReceive, options)
13021343 let change = (claimedAmount - amountToExchange)
13031344 let changeEntry = if ((change > 0))
13041345 then [IntegerEntry((pool + kPoolCapChange), (change + valueOrElse(getInteger(this, (pool + kPoolCapChange)), 0)))]
13051346 else nil
13061347 (capitalize(pool, type, tokenToId, exchangedAmount) ++ changeEntry)
13071348 })
13081349
13091350
13101351
13111352 @Callable(i)
13121353 func initNewPool (type,poolAddr,inFeeNoLoan,inFeeLoan,capFeeNoLoan,capFeeWithLoan,stoplossFeeNoLoan,stoplossFeeWithLoan,canBorrow) = valueOrElse(isAdminCall(i), if (if ((type != SF_POOL))
13131354 then (type != WX_POOL)
13141355 else false)
13151356 then throw("Wrong type")
13161357 else {
1317- let $t04318443278 = getPoolData(Address(fromBase58String(poolAddr)), type)
1318- let aId = $t04318443278._1
1319- let bId = $t04318443278._2
1320- let aBal = $t04318443278._3
1321- let bBal = $t04318443278._4
1322- let shareId = $t04318443278._5
1358+ let $t04477344867 = getPoolData(Address(fromBase58String(poolAddr)), type)
1359+ let aId = $t04477344867._1
1360+ let bId = $t04477344867._2
1361+ let aBal = $t04477344867._3
1362+ let bBal = $t04477344867._4
1363+ let shareId = $t04477344867._5
13231364 [IntegerEntry((poolAddr + kAxlyInFeeWithoutLoan), inFeeNoLoan), IntegerEntry((poolAddr + kAxlyInFeeWithLoan), inFeeLoan), IntegerEntry((poolAddr + kAxlyNoLoanCapFee), capFeeNoLoan), IntegerEntry((poolAddr + kAxlyWithLoanCapFee), capFeeWithLoan), IntegerEntry((poolAddr + kAxlyStopLossNoLoanFee), stoplossFeeNoLoan), IntegerEntry((poolAddr + kAxlyStopLossLoanFee), stoplossFeeWithLoan), IntegerEntry((poolAddr + kPoolInterestLoan), 0), IntegerEntry((poolAddr + kPoolInterestNoLoan), 0), StringEntry((kPool + poolAddr), type), StringEntry((shareId + kSharePool), poolAddr), BooleanEntry((poolAddr + kPoolCanBorrow), canBorrow)]
13241365 })
13251366
13261367
13271368 @Verifier(tx)
13281369 func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
13291370

github/deemru/w8io/026f985 
185.88 ms