tx · D97jizeEhZxPwBSwduiLFhDvKB5FZPNXe86phef7QfcF

3MvRWw2FPEimFCTGtK7qY9uAJbM7XJ4ZfJS:  -0.42000000 Waves

2023.07.24 12:15 [2679749] smart account 3MvRWw2FPEimFCTGtK7qY9uAJbM7XJ4ZfJS > SELF 0.00000000 Waves

{ "type": 13, "id": "D97jizeEhZxPwBSwduiLFhDvKB5FZPNXe86phef7QfcF", "fee": 42000000, "feeAssetId": null, "timestamp": 1690190148821, "version": 2, "chainId": 84, "sender": "3MvRWw2FPEimFCTGtK7qY9uAJbM7XJ4ZfJS", "senderPublicKey": "HP8sssVq1866F7CaPQJwgFrt6fsqhQjKwM84cL1wjD2a", "proofs": [ "5wJUrhxPxQ29qSDHBbzDAfrDVB3HEGmhEmF1QobiTByexKs1jNfTFyFoG4dTTQhcGniEaH7ruM66BzMCXbTjc4N8" ], "script": "base64:BgKmAQgCEgMKAQgSBAoCCAgSBQoDCBgYEgUKAwgBCBIECgIIARIGCgQBCAgBEgUKAwEICBILCgkICAgICAgICAgSAwoBCBIDCgEIEgUKAwgIARIGCgQIAQgIEg0KCwgIAQQRGBgRAQEYEgkKBwgIAQQIARgSDQoLCAgBBBgYGBgYARgSCwoJCAgBAQEBAQEEEgASABIAEgASABIAEgASABIDCgEIEgMKAQh3AAdTRl9QT09MAgJTRgAHV1hfUE9PTAICV1gAD0NBUF9GRUVfTk9fTE9BTgIJY2FwTm9Mb2FuAAxDQVBfRkVFX0xPQU4CB2NhcExvYW4AFFNUT1BMT1NTX0ZFRV9OT19MT0FOAg5zdG9wTG9zc05vTG9hbgANU1RPUExPU1NfTE9BTgIMc3RvcExvc3NMb2FuAAhMT0FOX0ZFRQIEbG9hbgALTk9fTE9BTl9GRUUCBm5vTG9hbgAGTk9fRkVFAgVub0ZlZQAGU0NBTEU4AIDC1y8AB1NDQUxFMTAAgMivoCUAB1NDQUxFMTYJALYCAQCAgIT+pt7hEQAKRkVFX1NDQUxFNgDAhD0AFGtTRlBvb2xBQXN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QRwb29sCQELdmFsdWVPckVsc2UCCQELaXNBZG1pbkNhbGwBBQFpAwkBASEBCQEJaXNEZWZpbmVkAQkAnQgCBQR0aGlzCQCsAgIFBWtQb29sBQRwb29sCQACAQIMVW5rbm93biBwb29sAwkBC3ZhbHVlT3JFbHNlAgkAmwgCBQR0aGlzCQCsAgIFBHBvb2wFC2tQb29sQWN0aXZlBgkAAgECE1Bvb2wgYWxyZWFkeSBhY3RpdmUJAMwIAgkBDEJvb2xlYW5FbnRyeQIJAKwCAgUEcG9vbAULa1Bvb2xBY3RpdmUGBQNuaWwBaQEMc2h1dGRvd25Qb29sAQRwb29sCQELdmFsdWVPckVsc2UCCQELaXNBZG1pbkNhbGwBBQFpAwkBASEBCQEJaXNEZWZpbmVkAQkAnQgCBQR0aGlzCQCsAgIFBWtQb29sBQRwb29sCQACAQIMVW5rbm93biBwb29sAwkBASEBCQELdmFsdWVPckVsc2UCCQCbCAIFBHRoaXMJAKwCAgUEcG9vbAULa1Bvb2xBY3RpdmUGCQACAQIVUG9vbCBhbHJlYWR5IHNodXRkb3duCQDMCAIJAQxCb29sZWFuRW50cnkCCQCsAgIFBHBvb2wFC2tQb29sQWN0aXZlBwUDbmlsAQJ0eAEGdmVyaWZ5AAkA9AMDCAUCdHgJYm9keUJ5dGVzCQCRAwIIBQJ0eAZwcm9vZnMAAAgFAnR4D3NlbmRlclB1YmxpY0tleQVSvXk=", "height": 2679749, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: GcqP6R7ct1uNxW47L3RMfT3kn1oXUYdE3xHmE2KZ9EUy Next: FxVCrpoJFb2gwrAJBhMAeUvSjuGMv8pTNvFKARVw2ixj Diff:
OldNewDifferences
572572
573573
574574 func calcWithdrawLPFromPoolVirt (poolAddr,pType,shareId,userCanWithdraw) = {
575- let $t01716917608 = if ((pType == SF_POOL))
575+ let $t01716917633 = if ((pType == SF_POOL))
576576 then {
577577 let inv = {
578578 let @ = invoke(poolAddr, "callFunction", ["withdrawREADONLY", [toString(userCanWithdraw)]], nil)
579- if ($isInstanceOf(@, "(Int, Int)"))
579+ if ($isInstanceOf(@, "List[Any]"))
580580 then @
581- else throw(($getType(@) + " couldn't be cast to (Int, Int)"))
581+ else throw(($getType(@) + " couldn't be cast to List[Any]"))
582582 }
583583 if ((inv == inv))
584- then $Tuple2(inv._1, inv._2)
584+ then $Tuple2({
585+ let @ = inv[0]
586+ if ($isInstanceOf(@, "Int"))
587+ then @
588+ else throw(($getType(@) + " couldn't be cast to Int"))
589+ }, {
590+ let @ = inv[1]
591+ if ($isInstanceOf(@, "Int"))
592+ then @
593+ else throw(($getType(@) + " couldn't be cast to Int"))
594+ })
585595 else throw("Strict value is not equal to itself.")
586596 }
587597 else if ((pType == WX_POOL))
597607 else throw("Strict value is not equal to itself.")
598608 }
599609 else unknownPoolType()
600- let amountA = $t01716917608._1
601- let amountB = $t01716917608._2
610+ let amountA = $t01716917633._1
611+ let amountB = $t01716917633._2
602612 $Tuple2(amountA, amountB)
603613 }
604614
641651 if ((lpBalanceBefore == lpBalanceBefore))
642652 then {
643653 let poolAddr = addressFromStringValue(pool)
644- let $t01857318989 = if (if ((pmtA > 0))
654+ let $t01859819014 = if (if ((pmtA > 0))
645655 then (pmtB > 0)
646656 else false)
647657 then {
648- let $t01863918755 = calcReplenishByTwoTokens(pType, poolAddr, pmtA, aId, pmtB, bId, balA, balB)
649- let pmtInA = $t01863918755._1
650- let pmtInB = $t01863918755._2
651- let change = $t01863918755._3
652- let changeId = $t01863918755._4
658+ let $t01866418780 = calcReplenishByTwoTokens(pType, poolAddr, pmtA, aId, pmtB, bId, balA, balB)
659+ let pmtInA = $t01866418780._1
660+ let pmtInB = $t01866418780._2
661+ let change = $t01866418780._3
662+ let changeId = $t01866418780._4
653663 let inv = replenishTwoTokensByType(poolAddr, pType, pmtInA, aId, pmtInB, bId)
654664 if ((inv == inv))
655665 then $Tuple2(change, changeId)
660670 else if ((pmtB > 0))
661671 then $Tuple2(pmtB, bId)
662672 else throw("pmts must be > 0")
663- let change = $t01857318989._1
664- let changeId = $t01857318989._2
673+ let change = $t01859819014._1
674+ let changeId = $t01859819014._2
665675 let inv = if ((change > 0))
666676 then replenishOneTokenByType(poolAddr, pType, change, changeId)
667677 else nil
689699 func replenishEntries (pool,user,stakedAmount,axlyFeeAmount,posNum,shareId,type,withLoan) = {
690700 let totalAmount = getPoolTotalShare(pool)
691701 let totalAmountLoan = getPoolTotalShareWithLoan(pool)
692- let $t01984720085 = if (withLoan)
702+ let $t01987220110 = if (withLoan)
693703 then $Tuple2(getIntegerValue(this, (pool + kPoolInterestLoan)), (totalAmountLoan + stakedAmount))
694704 else $Tuple2(getIntegerValue(this, (pool + kPoolInterestNoLoan)), totalAmountLoan)
695- let curPoolInterest = $t01984720085._1
696- let totalStakedWithLoan = $t01984720085._2
705+ let curPoolInterest = $t01987220110._1
706+ let totalStakedWithLoan = $t01987220110._2
697707 [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))]
698708 }
699709
739749
740750 func capitalize (pool,pType,tokenId,tokenAmount) = {
741751 let poolAddr = Address(fromBase58String(pool))
742- let $t02243622502 = getPoolData(poolAddr, pType)
743- let AId = $t02243622502._1
744- let BId = $t02243622502._2
745- let balA = $t02243622502._3
746- let balB = $t02243622502._4
747- let shareId = $t02243622502._5
752+ let $t02246122527 = getPoolData(poolAddr, pType)
753+ let AId = $t02246122527._1
754+ let BId = $t02246122527._2
755+ let balA = $t02246122527._3
756+ let balB = $t02246122527._4
757+ let shareId = $t02246122527._5
748758 if (if ((tokenId != AId))
749759 then (tokenId != BId)
750760 else false)
751761 then throw("Wrong asset")
752762 else {
753- let $t02258722667 = if ((tokenId == AId))
763+ let $t02261222692 = if ((tokenId == AId))
754764 then $Tuple2(tokenAmount, 0)
755765 else $Tuple2(0, tokenAmount)
756- let pmtA = $t02258722667._1
757- let pmtB = $t02258722667._2
758- let $t02267022774 = replenishByType(pType, pool, NO_FEE, pmtA, AId, pmtB, BId, balA, balB, shareId)
759- let stakedAmount = $t02267022774._1
760- let nf = $t02267022774._2
766+ let pmtA = $t02261222692._1
767+ let pmtB = $t02261222692._2
768+ let $t02269522799 = replenishByType(pType, pool, NO_FEE, pmtA, AId, pmtB, BId, balA, balB, shareId)
769+ let stakedAmount = $t02269522799._1
770+ let nf = $t02269522799._2
761771 let curPoolInterestLoan = valueOrElse(getInteger(this, (pool + kPoolInterestLoan)), 0)
762772 let curPoolInterestNoLoan = valueOrElse(getInteger(this, (pool + kPoolInterestNoLoan)), 0)
763773 let totalShareAmount = getPoolTotalShare(pool)
784794 func withdrawAmountCalc (pool,userCanWithdraw,debt,borrowAsset,stopLossFee) = {
785795 let poolAddr = Address(fromBase58String(pool))
786796 let pType = valueOrErrorMessage(getString(this, (kPool + pool)), "Unknown pool")
787- let $t02456424640 = getPoolData(poolAddr, pType)
788- let assetIdA = $t02456424640._1
789- let assetIdB = $t02456424640._2
790- let balA = $t02456424640._3
791- let balB = $t02456424640._4
792- let shareId = $t02456424640._5
797+ let $t02458924665 = getPoolData(poolAddr, pType)
798+ let assetIdA = $t02458924665._1
799+ let assetIdB = $t02458924665._2
800+ let balA = $t02458924665._3
801+ let balB = $t02458924665._4
802+ let shareId = $t02458924665._5
793803 let cBalABefore = accountBalance(assetIdFromStr(assetIdA))
794804 if ((cBalABefore == cBalABefore))
795805 then {
815825 then {
816826 let cBalAAfter = accountBalance(assetIdFromStr(assetIdA))
817827 let cBalBAfter = accountBalance(assetIdFromStr(assetIdB))
818- let $t02533325422 = $Tuple2((cBalAAfter - cBalABefore), (cBalBAfter - cBalBBefore))
819- let tokensAmountA = $t02533325422._1
820- let tokensAmountB = $t02533325422._2
821- let $t02542526279 = if ((debt > 0))
828+ let $t02535825447 = $Tuple2((cBalAAfter - cBalABefore), (cBalBAfter - cBalBBefore))
829+ let tokensAmountA = $t02535825447._1
830+ let tokensAmountB = $t02535825447._2
831+ let $t02545026304 = if ((debt > 0))
822832 then {
823833 let amountToGetEx = if (if ((borrowAsset == assetIdA))
824834 then (debt > tokensAmountA)
843853 else throw("Strict value is not equal to itself.")
844854 }
845855 else $Tuple2(tokensAmountA, tokensAmountB)
846- let toUserA = $t02542526279._1
847- let toUserB = $t02542526279._2
856+ let toUserA = $t02545026304._1
857+ let toUserB = $t02545026304._2
848858 $Tuple5(toUserA, assetIdA, toUserB, assetIdB, shareId)
849859 }
850860 else throw("Strict value is not equal to itself.")
872882 let poolTotalShare = getPoolTotalShare(pool)
873883 let userAddr = Address(fromBase58String(user))
874884 let borrowAsset = valueOrElse(getString(this, (((((pool + "_") + user) + "_") + posId) + kUserBorrowAssetId)), "")
875- let $t02747727711 = if ((borrowAmount > 0))
885+ let $t02750227736 = if ((borrowAmount > 0))
876886 then $Tuple2({
877887 let @ = invoke(getLendSrvAddr(), "getAssetDebt", [false, ((user + "_") + posId), borrowAsset], nil)
878888 if ($isInstanceOf(@, "Int"))
880890 else throw(($getType(@) + " couldn't be cast to Int"))
881891 }, STOPLOSS_LOAN)
882892 else $Tuple2(0, STOPLOSS_FEE_NO_LOAN)
883- let debt = $t02747727711._1
884- let feeType = $t02747727711._2
893+ let debt = $t02750227736._1
894+ let feeType = $t02750227736._2
885895 let stopLossFee = if (stopLoss)
886896 then fraction(userCanWithdraw, getAxlyFee(pool, feeType), FEE_SCALE6)
887897 else 0
888- let $t02782827984 = withdrawAmountCalc(pool, (userCanWithdraw - stopLossFee), debt, borrowAsset, stopLossFee)
889- if (($t02782827984 == $t02782827984))
898+ let $t02785328009 = withdrawAmountCalc(pool, (userCanWithdraw - stopLossFee), debt, borrowAsset, stopLossFee)
899+ if (($t02785328009 == $t02785328009))
890900 then {
891- let shareId = $t02782827984._5
892- let assetIdB = $t02782827984._4
893- let toUserAmountB = $t02782827984._3
894- let assetIdA = $t02782827984._2
895- let toUserAmountA = $t02782827984._1
901+ let shareId = $t02785328009._5
902+ let assetIdB = $t02785328009._4
903+ let toUserAmountB = $t02785328009._3
904+ let assetIdA = $t02785328009._2
905+ let toUserAmountA = $t02785328009._1
896906 let closeDbtInv = if ((debt > 0))
897907 then invoke(getLendSrvAddr(), "repayFor", [((user + "_") + posId)], [AttachedPayment(assetIdFromStr(borrowAsset), debt)])
898908 else 0
899909 if ((closeDbtInv == closeDbtInv))
900- then ([DeleteEntry((((((pool + "_") + user) + "_") + posId) + kUserPosition)), DeleteEntry((((user + "_") + posId) + kUserPositionPool)), DeleteEntry((((((pool + "_") + user) + "_") + posId) + kUserBorrowAmount)), DeleteEntry((((((pool + "_") + user) + "_") + posId) + kUserBorrowAssetId)), DeleteEntry((((((pool + "_") + user) + "_") + posId) + kUserPositionInterest)), IntegerEntry((pool + kPoolTotal), ((poolTotalShare - userCanWithdraw) - stopLossFee)), ScriptTransfer(userAddr, toUserAmountA, assetIdFromStr(assetIdA)), ScriptTransfer(userAddr, toUserAmountB, assetIdFromStr(assetIdB)), ScriptTransfer(moneyBox, stopLossFee, fromBase58String(shareId))] ++ getCursEntries(assetIdA, assetIdB, shareId, nil))
910+ then {
911+ let entries = ([DeleteEntry((((((pool + "_") + user) + "_") + posId) + kUserPosition)), DeleteEntry((((user + "_") + posId) + kUserPositionPool)), DeleteEntry((((((pool + "_") + user) + "_") + posId) + kUserBorrowAmount)), DeleteEntry((((((pool + "_") + user) + "_") + posId) + kUserBorrowAssetId)), DeleteEntry((((((pool + "_") + user) + "_") + posId) + kUserPositionInterest)), IntegerEntry((pool + kPoolTotal), ((poolTotalShare - userCanWithdraw) - stopLossFee)), ScriptTransfer(userAddr, toUserAmountA, assetIdFromStr(assetIdA)), ScriptTransfer(userAddr, toUserAmountB, assetIdFromStr(assetIdB)), ScriptTransfer(moneyBox, stopLossFee, fromBase58String(shareId))] ++ getCursEntries(assetIdA, assetIdB, shareId, nil))
912+ $Tuple2(entries, [toUserAmountA, toUserAmountB])
913+ }
901914 else throw("Strict value is not equal to itself.")
902915 }
903916 else throw("Strict value is not equal to itself.")
931944 let decPrA = pow(10, 0, getAssetDecimals(aId), 0, 0, DOWN)
932945 let decPrB = pow(10, 0, getAssetDecimals(bId), 0, 0, DOWN)
933946 let paydInDollar = (fraction(dPriceA, pmtA, decPrA) + fraction(dPriceB, pmtB, decPrB))
934- let $t02998930086 = if ((borrowId == aId))
947+ let $t03007230169 = if ((borrowId == aId))
935948 then $Tuple2(dPriceA, decPrA)
936949 else $Tuple2(dPriceB, decPrB)
937- let borrowPrice = $t02998930086._1
938- let borrowDecPr = $t02998930086._2
950+ let borrowPrice = $t03007230169._1
951+ let borrowDecPr = $t03007230169._2
939952 fraction(fraction(paydInDollar, (leverage - 100), 100), borrowDecPr, borrowPrice)
940953 }
941954
964977
965978
966979 func claimAndCheckAmntEx (pool,pType,claim,amountToExchange,change) = {
967- let $t03110031387 = if (claim)
980+ let $t03118331470 = if (claim)
968981 then claimFarmed(pType, pool)
969982 else {
970983 let claimedAsset = if ((pType == SF_POOL))
974987 else unknownPoolType()
975988 $Tuple2(amountToExchange, claimedAsset)
976989 }
977- let claimAmount = $t03110031387._1
978- let claimAsset = $t03110031387._2
979- if ((amountToExchange > (claimAmount + change)))
990+ let claimAmount = $t03118331470._1
991+ let claimAsset = $t03118331470._2
992+ let bal = accountBalance(claimAsset)
993+ if (if ((amountToExchange > (claimAmount + change)))
994+ then true
995+ else (amountToExchange > bal))
980996 then throw("To big amount to exchange")
981997 else $Tuple2(claimAmount, claimAsset)
982998 }
10011017
10021018
10031019 @Callable(i)
1004-func getUserPositionInDollarsREADONLY (user,pools,posNum) = {
1020+func getUserPositionREADONLY (user,pools,posNum) = {
10051021 func userPos (a,pool) = {
1006- let $t03228332317 = a
1007- let totalPos = $t03228332317._1
1008- let posDebt = $t03228332317._2
1009- let index = $t03228332317._3
1022+ let $t03243632480 = a
1023+ let wAmountsA = $t03243632480._1
1024+ let wAmountsB = $t03243632480._2
1025+ let debts = $t03243632480._3
1026+ let index = $t03243632480._4
10101027 let pType = valueOrErrorMessage(getString(this, (kPool + pool)), "Pool is not inited")
1011- let $t03240932499 = getPoolData(Address(fromBase58String(pool)), pType)
1012- let AId = $t03240932499._1
1013- let BId = $t03240932499._2
1014- let balA = $t03240932499._3
1015- let balB = $t03240932499._4
1016- let shareId = $t03240932499._5
1028+ let $t03257232662 = getPoolData(Address(fromBase58String(pool)), pType)
1029+ let AId = $t03257232662._1
1030+ let BId = $t03257232662._2
1031+ let balA = $t03257232662._3
1032+ let balB = $t03257232662._4
1033+ let shareId = $t03257232662._5
10171034 let borrowAmount = valueOrElse(getInteger(this, (((((pool + "_") + user) + "_") + posNum[index]) + kUserBorrowAmount)), 0)
10181035 if (!(isDefined(getInteger(this, (((((pool + "_") + user) + "_") + posNum[index]) + kUserPosition)))))
1019- then $Tuple3((totalPos :+ 0), (posDebt :+ 0), (index + 1))
1036+ then $Tuple3((wAmountsA :+ 0), (wAmountsB :+ 0), (index + 1))
10201037 else {
10211038 let userCanWithdraw = userCanWithdrawShareCalc(user, pool, posNum[index], (borrowAmount > 0))
1022- let sharePrices = getSharePrice(shareId)
1023- let decPrShare = pow(10, 0, getAssetDecimals(shareId), 0, 0, DOWN)
1024- let shareD = fraction(userCanWithdraw, sharePrices, decPrShare)
1025- if ((borrowAmount == 0))
1026- then $Tuple3((totalPos :+ shareD), (posDebt :+ 0), (index + 1))
1027- else {
1039+ let $t03302333143 = calcWithdrawLPFromPoolVirt(Address(fromBase58String(pool)), pType, shareId, userCanWithdraw)
1040+ let wAmountA = $t03302333143._1
1041+ let wAmountB = $t03302333143._2
1042+ if ((borrowAmount > 0))
1043+ then {
10281044 let borrowAsset = getStringValue(this, (((((pool + "_") + user) + "_") + posNum[index]) + kUserBorrowAssetId))
10291045 let debt = {
10301046 let @ = invoke(getLendSrvAddr(), "getAssetDebt", [false, ((user + "_") + posNum[index]), borrowAsset], nil)
10321048 then @
10331049 else throw(($getType(@) + " couldn't be cast to Int"))
10341050 }
1035- let borrowAssetPrice = getIntegerValue(priceOracleAddr, (borrowAsset + kPriceInOracle))
1036- let decPrBorrowId = pow(10, 0, getAssetDecimals(borrowAsset), 0, 0, DOWN)
1037- let debtD = fraction(debt, borrowAssetPrice, decPrBorrowId)
1038- $Tuple3((totalPos :+ shareD), (posDebt :+ debtD), (index + 1))
1051+ if ((debt == debt))
1052+ then $Tuple4((wAmountsA :+ wAmountA), (wAmountsB :+ wAmountB), (debts :+ debt), (index + 1))
1053+ else throw("Strict value is not equal to itself.")
10391054 }
1055+ else $Tuple3((wAmountsA :+ wAmountA), (wAmountsB :+ wAmountB), (index + 1))
10401056 }
10411057 }
10421058
1043- let $t03366333718 = {
1059+ let $t03356033637 = {
10441060 let $l = pools
10451061 let $s = size($l)
1046- let $acc0 = $Tuple3(nil, nil, 0)
1062+ let $acc0 = $Tuple4(nil, nil, nil, 0)
10471063 func $f0_1 ($a,$i) = if (($i >= $s))
10481064 then $a
10491065 else userPos($a, $l[$i])
10541070
10551071 $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)
10561072 }
1057- let pos = $t03366333718._1
1058- let debt = $t03366333718._2
1059- $Tuple2(nil, $Tuple2(pos, debt))
1073+ let wAmountsA = $t03356033637._1
1074+ let wAmountsB = $t03356033637._2
1075+ let debts = $t03356033637._3
1076+ $Tuple2(nil, $Tuple3(wAmountsA, wAmountsB, debts))
10601077 }
10611078
10621079
10721089 then throw("You can't borrow in this pool")
10731090 else {
10741091 let pType = valueOrErrorMessage(getString(this, (kPool + pool)), "Pool is not inited")
1075- let $t03418934279 = getPoolData(Address(fromBase58String(pool)), pType)
1076- let AId = $t03418934279._1
1077- let BId = $t03418934279._2
1078- let balA = $t03418934279._3
1079- let balB = $t03418934279._4
1080- let shareId = $t03418934279._5
1092+ let $t03412634216 = getPoolData(Address(fromBase58String(pool)), pType)
1093+ let AId = $t03412634216._1
1094+ let BId = $t03412634216._2
1095+ let balA = $t03412634216._3
1096+ let balB = $t03412634216._4
1097+ let shareId = $t03412634216._5
10811098 if (if ((borrowId != AId))
10821099 then (borrowId != BId)
10831100 else false)
10841101 then throw("Wrong borrow asset")
10851102 else {
1086- let $t03436034419 = parseReplenishPmts(i.payments, AId, BId)
1087- let pmtA = $t03436034419._1
1088- let pmtB = $t03436034419._2
1103+ let $t03429734356 = parseReplenishPmts(i.payments, AId, BId)
1104+ let pmtA = $t03429734356._1
1105+ let pmtB = $t03429734356._2
10891106 let user = toString(i.caller)
10901107 let newPosNum = getNewUserPositionNumber(user)
10911108 if ((leverage > 100))
11051122 if ((inv == inv))
11061123 then {
11071124 let userStaked = getIntegerValue(this, (((((pool + "_") + user) + "_") + toString(newPosNum)) + kUserPosition))
1108- let $t03540835502 = getPoolBalances(Address(fromBase58String(pool)), pType, AId, BId)
1109- if (($t03540835502 == $t03540835502))
1125+ let $t03534535439 = getPoolBalances(Address(fromBase58String(pool)), pType, AId, BId)
1126+ if (($t03534535439 == $t03534535439))
11101127 then {
1111- let newBalB = $t03540835502._2
1112- let newBalA = $t03540835502._1
1128+ let newBalB = $t03534535439._2
1129+ let newBalA = $t03534535439._1
11131130 let prImpact = calcPriceImpact(balA, balB, newBalA, newBalB)
1114- let $t03557235687 = calcWithdrawLPFromPoolVirt(Address(fromBase58String(pool)), pType, shareId, userStaked)
1115- let wAmountA = $t03557235687._1
1116- let wAmountB = $t03557235687._2
1131+ let $t03550935624 = calcWithdrawLPFromPoolVirt(Address(fromBase58String(pool)), pType, shareId, userStaked)
1132+ let wAmountA = $t03550935624._1
1133+ let wAmountB = $t03550935624._2
11171134 $Tuple2(nil, [prImpact, wAmountA, wAmountB])
11181135 }
11191136 else throw("Strict value is not equal to itself.")
11231140 else throw("Strict value is not equal to itself.")
11241141 }
11251142 else {
1126- let $t03574035855 = replenishByType(pType, pool, NO_LOAN_FEE, pmtA, AId, pmtB, BId, balA, balB, shareId)
1127- if (($t03574035855 == $t03574035855))
1143+ let $t03567735792 = replenishByType(pType, pool, NO_LOAN_FEE, pmtA, AId, pmtB, BId, balA, balB, shareId)
1144+ if (($t03567735792 == $t03567735792))
11281145 then {
1129- let axlyFee = $t03574035855._2
1130- let userStaked = $t03574035855._1
1131- let $t03586135955 = getPoolBalances(Address(fromBase58String(pool)), pType, AId, BId)
1132- if (($t03586135955 == $t03586135955))
1146+ let axlyFee = $t03567735792._2
1147+ let userStaked = $t03567735792._1
1148+ let $t03579835892 = getPoolBalances(Address(fromBase58String(pool)), pType, AId, BId)
1149+ if (($t03579835892 == $t03579835892))
11331150 then {
1134- let newBalB = $t03586135955._2
1135- let newBalA = $t03586135955._1
1151+ let newBalB = $t03579835892._2
1152+ let newBalA = $t03579835892._1
11361153 let prImpact = calcPriceImpact(balA, balB, newBalA, newBalB)
1137- let $t03602536140 = calcWithdrawLPFromPoolVirt(Address(fromBase58String(pool)), pType, shareId, userStaked)
1138- let wAmountA = $t03602536140._1
1139- let wAmountB = $t03602536140._2
1154+ let $t03596236077 = calcWithdrawLPFromPoolVirt(Address(fromBase58String(pool)), pType, shareId, userStaked)
1155+ let wAmountA = $t03596236077._1
1156+ let wAmountB = $t03596236077._2
11401157 $Tuple2((replenishEntries(pool, user, userStaked, axlyFee, newPosNum, shareId, pType, false) ++ getCursEntries(AId, BId, shareId, [toString(wAmountA), toString(wAmountB)])), [prImpact, wAmountA, wAmountB])
11411158 }
11421159 else throw("Strict value is not equal to itself.")
11931210
11941211 @Callable(i)
11951212 func replenishFromLand (requestId) = valueOrElse(isActive(), valueOrElse(isLandCall(i), {
1196- let $t03890939013 = parseRequest(requestId)
1197- let user = $t03890939013._1
1198- let pool = $t03890939013._2
1199- let pmtA = $t03890939013._3
1200- let AId = $t03890939013._4
1201- let pmtB = $t03890939013._5
1202- let BId = $t03890939013._6
1203- let balA = $t03890939013._7
1204- let balB = $t03890939013._8
1205- let shareId = $t03890939013._9
1206- let bwAsset = $t03890939013._10
1207- let bwAmount = $t03890939013._11
1213+ let $t03884638950 = parseRequest(requestId)
1214+ let user = $t03884638950._1
1215+ let pool = $t03884638950._2
1216+ let pmtA = $t03884638950._3
1217+ let AId = $t03884638950._4
1218+ let pmtB = $t03884638950._5
1219+ let BId = $t03884638950._6
1220+ let balA = $t03884638950._7
1221+ let balB = $t03884638950._8
1222+ let shareId = $t03884638950._9
1223+ let bwAsset = $t03884638950._10
1224+ let bwAmount = $t03884638950._11
12081225 if ((size(i.payments) != 1))
12091226 then throw("Wrong payment size")
12101227 else if (if ((assetIdToStr(i.payments[0].assetId) != bwAsset))
12121229 else (i.payments[0].amount != bwAmount))
12131230 then throw("Wrong payment")
12141231 else {
1215- let $t03920339303 = if ((AId == bwAsset))
1232+ let $t03914039240 = if ((AId == bwAsset))
12161233 then $Tuple2((pmtA + bwAmount), pmtB)
12171234 else $Tuple2(pmtA, (pmtB + bwAmount))
1218- let pmtAllA = $t03920339303._1
1219- let pmtAllB = $t03920339303._2
1235+ let pmtAllA = $t03914039240._1
1236+ let pmtAllB = $t03914039240._2
12201237 let pType = valueOrErrorMessage(getString(this, (kPool + pool)), "Unknown pool")
1221- let $t03938539500 = replenishByType(pType, pool, LOAN_FEE, pmtAllA, AId, pmtAllB, BId, balA, balB, shareId)
1222- let userStaked = $t03938539500._1
1223- let axlyFee = $t03938539500._2
1238+ let $t03932239437 = replenishByType(pType, pool, LOAN_FEE, pmtAllA, AId, pmtAllB, BId, balA, balB, shareId)
1239+ let userStaked = $t03932239437._1
1240+ let axlyFee = $t03932239437._2
12241241 let posNum = getNewUserPositionNumber(user)
12251242 let borrowEntries = [IntegerEntry((((((pool + "_") + user) + "_") + toString(posNum)) + kUserBorrowAmount), bwAmount), StringEntry((((((pool + "_") + user) + "_") + toString(posNum)) + kUserBorrowAssetId), bwAsset)]
12261243 let entries = replenishEntries(pool, user, userStaked, axlyFee, posNum, shareId, pType, true)
1227- let $t03986039975 = calcWithdrawLPFromPoolVirt(Address(fromBase58String(pool)), pType, shareId, userStaked)
1228- let wAmountA = $t03986039975._1
1229- let wAmountB = $t03986039975._2
1244+ let $t03979739912 = calcWithdrawLPFromPoolVirt(Address(fromBase58String(pool)), pType, shareId, userStaked)
1245+ let wAmountA = $t03979739912._1
1246+ let wAmountB = $t03979739912._2
12301247 $Tuple2((((entries ++ getCursEntries(AId, BId, shareId, [toString(wAmountA), toString(wAmountB)])) ++ borrowEntries) :+ DeleteEntry((requestId + kRequestId))), userStaked)
12311248 }
12321249 }))
12371254 func liquidate (user,posId,liquidateAmount) = valueOrElse(isActive(), valueOrElse(isLandCall(i), {
12381255 let pool = valueOrErrorMessage(getString(this, (((user + "_") + posId) + kUserPositionPool)), "no position")
12391256 let pType = valueOrErrorMessage(getString(this, (kPool + pool)), "Pool is not inited")
1240- let $t04049640586 = getPoolData(Address(fromBase58String(pool)), pType)
1241- let AId = $t04049640586._1
1242- let BId = $t04049640586._2
1243- let balA = $t04049640586._3
1244- let balB = $t04049640586._4
1245- let shareId = $t04049640586._5
1257+ let $t04043340523 = getPoolData(Address(fromBase58String(pool)), pType)
1258+ let AId = $t04043340523._1
1259+ let BId = $t04043340523._2
1260+ let balA = $t04043340523._3
1261+ let balB = $t04043340523._4
1262+ let shareId = $t04043340523._5
12461263 let amount = unstakeLP(pool, pType, shareId, liquidateAmount)
12471264 let borrowAmount = getIntegerValue(this, (((((pool + "_") + user) + "_") + posId) + kUserBorrowAmount))
12481265 let borrowAsset = getStringValue(this, (((((pool + "_") + user) + "_") + posId) + kUserBorrowAssetId))
12631280 then throw("Token price greater stop loss price")
12641281 else if (!(isDefined(getInteger(this, (((((((user + "_") + toString(posId)) + "_") + pool) + "_") + assetId) + kUserStopLoss)))))
12651282 then throw("No entry")
1266- else (withdrawToUser(user, pool, toString(posId), true) :+ DeleteEntry((((((((user + "_") + toString(posId)) + "_") + pool) + "_") + assetId) + kUserStopLoss)))
1283+ else {
1284+ let res = withdrawToUser(user, pool, toString(posId), true)
1285+ $Tuple2((res._1 :+ DeleteEntry((((((((user + "_") + toString(posId)) + "_") + pool) + "_") + assetId) + kUserStopLoss))), res._2)
1286+ }
12671287 }))
12681288
12691289
12721292 func capitalizeExKeeper (pool,tokenToId,amountToExchange,claim,amountsIn,addresses,assetsToReceive,estReceived,slippageTolerance,minReceived,options) = valueOrElse(isActive(), valueOrElse(isAdminCall(i), {
12731293 let pType = getStringValue(this, (kPool + pool))
12741294 let change = valueOrElse(getInteger(this, (pool + kPoolCapChange)), 0)
1275- let $t04268042781 = claimAndCheckAmntEx(pool, pType, claim, amountToExchange, change)
1276- let claimedAmount = $t04268042781._1
1277- let claimedAsset = $t04268042781._2
1295+ let $t04266142762 = claimAndCheckAmntEx(pool, pType, claim, amountToExchange, change)
1296+ let claimedAmount = $t04266142762._1
1297+ let claimedAsset = $t04266142762._2
12781298 let exchangedAmount = exchangeKeeper(tokenToId, amountToExchange, claimedAsset, amountsIn, addresses, assetsToReceive, estReceived, slippageTolerance, minReceived, options)
12791299 let newChange = ((claimedAmount + change) - amountToExchange)
12801300 let changeEntry = if ((newChange >= 0))
12891309 func capitalizeExPuzzle (pool,tokenToId,amountToExchange,claim,routesStr,minToReceive,options) = valueOrElse(isActive(), valueOrElse(isAdminCall(i), {
12901310 let pType = getStringValue(this, (kPool + pool))
12911311 let change = valueOrElse(getInteger(this, (pool + kPoolCapChange)), 0)
1292- let $t04355643657 = claimAndCheckAmntEx(pool, pType, claim, amountToExchange, change)
1293- let claimedAmount = $t04355643657._1
1294- let claimedAsset = $t04355643657._2
1312+ let $t04353743638 = claimAndCheckAmntEx(pool, pType, claim, amountToExchange, change)
1313+ let claimedAmount = $t04353743638._1
1314+ let claimedAsset = $t04353743638._2
12951315 let exchangedAmount = exchangePuzzle(tokenToId, amountToExchange, claimedAsset, routesStr, minToReceive, options)
12961316 let newChange = ((claimedAmount + change) - amountToExchange)
12971317 let changeEntry = if ((newChange >= 0))
13061326 func capitalizeExSwopFi (pool,tokenToId,amountToExchange,claim,exchangers,exchangersType,args1,args2,routingAssetsKeys,minAmountToReceive,options) = valueOrElse(isActive(), valueOrElse(isAdminCall(i), {
13071327 let pType = getStringValue(this, (kPool + pool))
13081328 let change = valueOrElse(getInteger(this, (pool + kPoolCapChange)), 0)
1309- let $t04449944600 = claimAndCheckAmntEx(pool, pType, claim, amountToExchange, change)
1310- let claimedAmount = $t04449944600._1
1311- let claimedAsset = $t04449944600._2
1329+ let $t04448044581 = claimAndCheckAmntEx(pool, pType, claim, amountToExchange, change)
1330+ let claimedAmount = $t04448044581._1
1331+ let claimedAsset = $t04448044581._2
13121332 let exchangedAmount = exchangeSwopFi(tokenToId, amountToExchange, claimedAsset, exchangers, exchangersType, args1, args2, routingAssetsKeys, minAmountToReceive, options)
13131333 let newChange = ((claimedAmount + change) - amountToExchange)
13141334 let changeEntry = if ((newChange >= 0))
13251345 else false)
13261346 then throw("Wrong type")
13271347 else {
1328- let $t04533145425 = getPoolData(Address(fromBase58String(poolAddr)), type)
1329- let aId = $t04533145425._1
1330- let bId = $t04533145425._2
1331- let aBal = $t04533145425._3
1332- let bBal = $t04533145425._4
1333- let shareId = $t04533145425._5
1348+ let $t04531245406 = getPoolData(Address(fromBase58String(poolAddr)), type)
1349+ let aId = $t04531245406._1
1350+ let bId = $t04531245406._2
1351+ let aBal = $t04531245406._3
1352+ let bBal = $t04531245406._4
1353+ let shareId = $t04531245406._5
13341354 if ((0 > inFeeNoLoan))
13351355 then throw("inFeeNoLoan must be greater than 0")
13361356 else if ((0 > inFeeLoan))
13651385 @Callable(i)
13661386 func activateForUsers () = valueOrElse(isAdminCall(i), if (valueOrElse(getBoolean(this, kActiveUsers), true))
13671387 then throw("dApp already active for users")
1368- else [BooleanEntry(kActive, true)])
1388+ else [BooleanEntry(kActiveUsers, true)])
13691389
13701390
13711391
13721392 @Callable(i)
13731393 func shutdownForUsers () = valueOrElse(isAdminCall(i), if (!(valueOrElse(getBoolean(this, kActiveUsers), true)))
13741394 then throw("dApp already shutdown for users")
1375- else [BooleanEntry(kActive, false)])
1395+ else [BooleanEntry(kActiveUsers, false)])
13761396
13771397
13781398
13791399 @Callable(i)
13801400 func activateSF () = valueOrElse(isAdminCall(i), if (valueOrElse(getBoolean(this, (SF_POOL + kActiveSFWX)), true))
13811401 then throw("SWOPFI already active")
1382- else [BooleanEntry(kActive, true)])
1402+ else [BooleanEntry((SF_POOL + kActiveSFWX), true)])
13831403
13841404
13851405
13861406 @Callable(i)
13871407 func shutdownSF () = valueOrElse(isAdminCall(i), if (!(valueOrElse(getBoolean(this, (SF_POOL + kActiveSFWX)), true)))
13881408 then throw("SWOPFI already shutdown")
1389- else [BooleanEntry(kActive, false)])
1409+ else [BooleanEntry((SF_POOL + kActiveSFWX), false)])
13901410
13911411
13921412
13931413 @Callable(i)
13941414 func activateWX () = valueOrElse(isAdminCall(i), if (valueOrElse(getBoolean(this, (WX_POOL + kActiveSFWX)), true))
13951415 then throw("WX already active")
1396- else [BooleanEntry(kActive, true)])
1416+ else [BooleanEntry((WX_POOL + kActiveSFWX), true)])
13971417
13981418
13991419
14001420 @Callable(i)
14011421 func shutdownWX () = valueOrElse(isAdminCall(i), if (!(valueOrElse(getBoolean(this, (WX_POOL + kActiveSFWX)), true)))
14021422 then throw("WX already shutdown")
1403- else [BooleanEntry(kActive, false)])
1423+ else [BooleanEntry((WX_POOL + kActiveSFWX), false)])
14041424
14051425
14061426
14091429 then throw("Unknown pool")
14101430 else if (valueOrElse(getBoolean(this, (pool + kPoolActive)), true))
14111431 then throw("Pool already active")
1412- else [BooleanEntry(kActive, true)])
1432+ else [BooleanEntry((pool + kPoolActive), true)])
14131433
14141434
14151435
14181438 then throw("Unknown pool")
14191439 else if (!(valueOrElse(getBoolean(this, (pool + kPoolActive)), true)))
14201440 then throw("Pool already shutdown")
1421- else [BooleanEntry(kActive, false)])
1441+ else [BooleanEntry((pool + kPoolActive), false)])
14221442
14231443
14241444 @Verifier(tx)
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 = "_userPosition"
4545
4646 let kUserPositionPool = "_userPositionPool"
4747
4848 let kUserBorrowAmount = "_userPositionBorrowAmount"
4949
5050 let kUserBorrowAssetId = "_userPositionBorrowAssetId"
5151
5252 let kUserPositionNum = "_userPositionNumber"
5353
5454 let kUserPositionInterest = "_userPositionInterest"
5555
5656 let kPoolTotal = "_poolTotal"
5757
5858 let kPoolTotalLoan = "_poolTotalLoan"
5959
6060 let kPoolInterestLoan = "_poolInterestLoan"
6161
6262 let kPoolInterestNoLoan = "_poolInterestNoLoan"
6363
6464 let kPoolCanBorrow = "_poolCanBorrow"
6565
6666 let kAxlyInFeeWithoutLoan = "_axlyFeeNoLoan"
6767
6868 let kAxlyInFeeWithLoan = "_axlyFeeWithLoan"
6969
7070 let kAxlyNoLoanCapFee = "_axlyFeeCapWithLoan"
7171
7272 let kAxlyWithLoanCapFee = "_axlyFeeCapNoLoan"
7373
7474 let kAxlyStopLossNoLoanFee = "_axlyFeeStoplossWithLoan"
7575
7676 let kAxlyStopLossLoanFee = "_axlyFeeStoplossNoLoan"
7777
7878 let kRequestId = "_request_id"
7979
8080 let kRequestIter = "requests_iter"
8181
8282 let kPool = "pool_"
8383
8484 let kSharePool = "_poolShareId"
8585
8686 let kPoolCapChange = "_poolCapChange"
8787
8888 let kTokenLastPrice = "last_price"
8989
9090 let kPriceInOracle = "_twap5B"
9191
9292 let kActive = "active"
9393
9494 let kActiveUsers = "activeUsers"
9595
9696 let kActiveSFWX = "_active"
9797
9898 let kPoolActive = "_activePool"
9999
100100 let kUserStopLoss = "_stopLoss"
101101
102102 let kMoneyBox = "axly_money_box"
103103
104104 let kSFFarmingAddr = "swopfi_farming_addr"
105105
106106 let kLendService = "lend_service_addr"
107107
108108 let kAdminCallPK = "admin_call_pub_key"
109109
110110 let kPriceOracle = "price_oracle"
111111
112112 let kExContract = "exchange_contract"
113113
114114 let kWxSwapContract = "wx_swap_contract"
115115
116116 let kSwopId = "swop_id"
117117
118118 let kWxId = "wx_id"
119119
120120 let moneyBox = Address(fromBase58String(valueOrErrorMessage(getString(this, kMoneyBox), "No axly moneyBox address")))
121121
122122 let exContract = Address(fromBase58String(valueOrErrorMessage(getString(this, kExContract), "No exchange contract address")))
123123
124124 let priceOracleAddr = Address(fromBase58String(valueOrErrorMessage(getString(this, kPriceOracle), "No price oracle address")))
125125
126126 let wxSwapContract = Address(fromBase58String(valueOrErrorMessage(getString(this, kWxSwapContract), "No wx swap address")))
127127
128128 let SWOPID = fromBase58String(valueOrErrorMessage(getString(this, kSwopId), "No swop id"))
129129
130130 let WXID = fromBase58String(valueOrErrorMessage(getString(this, kWxId), "No wx id"))
131131
132132 func unknownPoolType () = throw("Wrong pool type")
133133
134134
135135 func getLendSrvAddr () = Address(fromBase58String(valueOrErrorMessage(getString(this, kLendService), "Can't get lend service addr")))
136136
137137
138138 func getAdminCallAddr () = addressFromPublicKey(fromBase58String(valueOrErrorMessage(getString(this, kAdminCallPK), "Can't get admin addr")))
139139
140140
141141 func isAdminCall (i) = if ((i.caller == getAdminCallAddr()))
142142 then unit
143143 else throw("Only admin can call this function")
144144
145145
146146 func isSelfCall (i) = if ((i.caller == this))
147147 then unit
148148 else throw("Only contract itself can call this function")
149149
150150
151151 func isLandCall (i) = if ((i.caller == getLendSrvAddr()))
152152 then unit
153153 else throw("Only land contract can call this function")
154154
155155
156156 func isActive () = if ((valueOrElse(getBoolean(this, kActive), true) == true))
157157 then unit
158158 else throw("DApp is inactive at this moment")
159159
160160
161161 func isActiveForUsers () = if (if (valueOrElse(getBoolean(this, kActive), true))
162162 then (valueOrElse(getBoolean(this, kActiveUsers), true) == true)
163163 else false)
164164 then unit
165165 else throw("DApp is inactive for users at this moment")
166166
167167
168168 func isPoolActive (pool,type) = {
169169 let WXSFActive = valueOrElse(getBoolean(this, (type + kActiveSFWX)), true)
170170 let poolActive = valueOrElse(getBoolean(this, (pool + kPoolActive)), true)
171171 if (if (WXSFActive)
172172 then poolActive
173173 else false)
174174 then true
175175 else false
176176 }
177177
178178
179179 func accountBalance (assetId) = match assetId {
180180 case id: ByteVector =>
181181 assetBalance(this, id)
182182 case waves: Unit =>
183183 wavesBalance(this).available
184184 case _ =>
185185 throw("Match error")
186186 }
187187
188188
189189 func getSFPoolBalances (poolAddr) = $Tuple2(valueOrErrorMessage(getInteger(poolAddr, kSFPoolAAssetBalance), "Can't get pool A asset balance"), valueOrErrorMessage(getInteger(poolAddr, kSFPoolBAssetBalance), "Can't get pool B asset balance"))
190190
191191
192192 func getWXPoolBalances (poolAddr,aId,bId) = $Tuple2({
193193 let @ = invoke(poolAddr, "getAccBalanceWrapperREADONLY", [aId], nil)
194194 if ($isInstanceOf(@, "Int"))
195195 then @
196196 else throw(($getType(@) + " couldn't be cast to Int"))
197197 }, {
198198 let @ = invoke(poolAddr, "getAccBalanceWrapperREADONLY", [bId], nil)
199199 if ($isInstanceOf(@, "Int"))
200200 then @
201201 else throw(($getType(@) + " couldn't be cast to Int"))
202202 })
203203
204204
205205 func getPoolBalances (poolAddr,type,aId,bId) = if ((type == SF_POOL))
206206 then getSFPoolBalances(poolAddr)
207207 else if ((type == WX_POOL))
208208 then getWXPoolBalances(poolAddr, aId, bId)
209209 else unknownPoolType()
210210
211211
212212 func getSFPoolData (poolAddr) = {
213213 let $t070647113 = getSFPoolBalances(poolAddr)
214214 if (($t070647113 == $t070647113))
215215 then {
216216 let balB = $t070647113._2
217217 let balA = $t070647113._1
218218 $Tuple5(valueOrErrorMessage(getString(poolAddr, kSFPoolAAssetId), "Can't get pool A asset id"), valueOrErrorMessage(getString(poolAddr, kSFPoolBAssetId), "Can't get pool B asset id"), balA, balB, valueOrErrorMessage(getString(poolAddr, kSFPoolShareId), "Can't get share asset id"))
219219 }
220220 else throw("Strict value is not equal to itself.")
221221 }
222222
223223
224224 func getWXPoolData (poolAddr) = {
225225 let cfg = {
226226 let @ = invoke(poolAddr, "getPoolConfigWrapperREADONLY", nil, nil)
227227 if ($isInstanceOf(@, "List[Any]"))
228228 then @
229229 else throw(($getType(@) + " couldn't be cast to List[Any]"))
230230 }
231231 if ((cfg == cfg))
232232 then {
233233 let aId = valueOrErrorMessage({
234234 let @ = cfg[4]
235235 if ($isInstanceOf(@, "String"))
236236 then @
237237 else unit
238238 }, "Can't get pool A asset id")
239239 let bId = valueOrErrorMessage({
240240 let @ = cfg[5]
241241 if ($isInstanceOf(@, "String"))
242242 then @
243243 else unit
244244 }, "Can't get pool B asset id")
245245 let shareId = valueOrErrorMessage({
246246 let @ = cfg[3]
247247 if ($isInstanceOf(@, "String"))
248248 then @
249249 else unit
250250 }, "Can't get pool LP asset id")
251251 let $t078107869 = getWXPoolBalances(poolAddr, aId, bId)
252252 if (($t078107869 == $t078107869))
253253 then {
254254 let balB = $t078107869._2
255255 let balA = $t078107869._1
256256 $Tuple5(aId, bId, balA, balB, shareId)
257257 }
258258 else throw("Strict value is not equal to itself.")
259259 }
260260 else throw("Strict value is not equal to itself.")
261261 }
262262
263263
264264 func getPoolData (poolAddr,type) = if ((type == SF_POOL))
265265 then getSFPoolData(poolAddr)
266266 else if ((type == WX_POOL))
267267 then getWXPoolData(poolAddr)
268268 else unknownPoolType()
269269
270270
271271 func getShareSupply (poolAddr,type,shareId) = if ((type == SF_POOL))
272272 then valueOrErrorMessage(getInteger(poolAddr, kSFPoolShareSupply), "Can't get share asset supply")
273273 else if ((type == WX_POOL))
274274 then valueOrErrorMessage(assetInfo(fromBase58String(shareId)), "Wrong ShareId").quantity
275275 else unknownPoolType()
276276
277277
278278 func getPoolTotalShare (pool) = valueOrElse(getInteger(this, (pool + kPoolTotal)), 0)
279279
280280
281281 func getPoolTotalShareWithLoan (pool) = valueOrElse(getInteger(this, (pool + kPoolTotalLoan)), 0)
282282
283283
284284 func getNewUserPositionNumber (user) = (valueOrElse(getInteger(this, (user + kUserPositionNum)), 0) + 1)
285285
286286
287287 func getAxlyFee (pool,feeType) = if ((feeType == CAP_FEE_LOAN))
288288 then getIntegerValue(this, (pool + kAxlyWithLoanCapFee))
289289 else if ((feeType == CAP_FEE_NO_LOAN))
290290 then getIntegerValue(this, (pool + kAxlyNoLoanCapFee))
291291 else if ((feeType == LOAN_FEE))
292292 then getIntegerValue(this, (pool + kAxlyInFeeWithLoan))
293293 else if ((feeType == NO_LOAN_FEE))
294294 then getIntegerValue(this, (pool + kAxlyInFeeWithoutLoan))
295295 else if ((feeType == NO_FEE))
296296 then 0
297297 else throw("Wrong fee type")
298298
299299
300300 func getSFFarmingAddr () = Address(fromBase58String(valueOrErrorMessage(getString(this, kSFFarmingAddr), "Can't get swopfi farming addr")))
301301
302302
303303 func getWXFarmingAddr (poolAddr) = {
304304 let fContract = Address(fromBase58String(valueOrErrorMessage(getString(poolAddr, "%s__factoryContract"), "Can't get WX factory contract addr")))
305305 let factroyCfg = split(valueOrErrorMessage(getString(fContract, "%s__factoryConfig"), "Can't get WX factory cfg"), "__")
306306 Address(fromBase58String(factroyCfg[1]))
307307 }
308308
309309
310310 func assetIdToStr (assetId) = match assetId {
311311 case id: ByteVector =>
312312 toBase58String(id)
313313 case waves: Unit =>
314314 "WAVES"
315315 case _ =>
316316 throw("Not Asset id")
317317 }
318318
319319
320320 func assetIdFromStr (assetId) = if ((assetId == "WAVES"))
321321 then unit
322322 else fromBase58String(assetId)
323323
324324
325325 func getAssetDecimals (assetId) = if ((assetId == "WAVES"))
326326 then 8
327327 else match assetInfo(fromBase58String(assetId)) {
328328 case asset: Asset =>
329329 asset.decimals
330330 case _ =>
331331 throw("Can't find asset")
332332 }
333333
334334
335335 func getAssetPrecition (assetId) = pow(10, 0, getAssetDecimals(assetId), 0, 0, DOWN)
336336
337337
338338 func getAssetsPrice (assetIds) = {
339339 func getPrices (a,assetId) = {
340340 let assetPrice = getIntegerValue(priceOracleAddr, (assetId + kPriceInOracle))
341341 (a :+ assetPrice)
342342 }
343343
344344 let $l = assetIds
345345 let $s = size($l)
346346 let $acc0 = nil
347347 func $f0_1 ($a,$i) = if (($i >= $s))
348348 then $a
349349 else getPrices($a, $l[$i])
350350
351351 func $f0_2 ($a,$i) = if (($i >= $s))
352352 then $a
353353 else throw("List size exceeds 50")
354354
355355 $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)
356356 }
357357
358358
359359 func getSharePrice (shareId) = {
360360 let pool = valueOrErrorMessage(getString(this, (shareId + kSharePool)), "Can't find pool addr by share id")
361361 let poolAddr = Address(fromBase58String(pool))
362362 let pType = valueOrErrorMessage(getString(this, (kPool + pool)), "Pool is not inited")
363363 let $t01084710912 = getPoolData(poolAddr, pType)
364364 let aId = $t01084710912._1
365365 let bId = $t01084710912._2
366366 let aBalance = $t01084710912._3
367367 let bBalance = $t01084710912._4
368368 let dPriceA = getIntegerValue(priceOracleAddr, (aId + kPriceInOracle))
369369 let dPriceB = getIntegerValue(priceOracleAddr, (bId + kPriceInOracle))
370370 let shareSupply = getShareSupply(poolAddr, pType, shareId)
371371 let APrecision = pow(10, 0, getAssetDecimals(aId), 0, 0, DOWN)
372372 let BPrecision = pow(10, 0, getAssetDecimals(bId), 0, 0, DOWN)
373373 let sharePrecision = pow(10, 0, getAssetDecimals(shareId), 0, 0, DOWN)
374374 let sum = (fraction(aBalance, dPriceA, APrecision) + fraction(bBalance, dPriceB, BPrecision))
375375 fraction(sum, sharePrecision, shareSupply)
376376 }
377377
378378
379379 func getSharePrices (shareIds) = {
380380 func getPrices (a,shareId) = (a :+ getSharePrice(shareId))
381381
382382 let $l = shareIds
383383 let $s = size($l)
384384 let $acc0 = nil
385385 func $f0_1 ($a,$i) = if (($i >= $s))
386386 then $a
387387 else getPrices($a, $l[$i])
388388
389389 func $f0_2 ($a,$i) = if (($i >= $s))
390390 then $a
391391 else throw("List size exceeds 20")
392392
393393 $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)
394394 }
395395
396396
397397 func getCursEntries (aId,bId,shareId,wAmounts) = {
398398 let assetsPrices = getAssetsPrice([aId, bId])
399399 let sharePrice = getSharePrice(shareId)
400400 let prices = ([toString(assetsPrices[0]), toString(assetsPrices[1]), toString(sharePrice)] ++ wAmounts)
401401 [StringEntry(kTokenLastPrice, makeString(prices, ","))]
402402 }
403403
404404
405405 func calcReplenishByTwoTokens (pType,poolAddr,pmtA,aId,pmtB,bId,balA,balB) = if ((pType == SF_POOL))
406406 then {
407407 let repl = {
408408 let @ = invoke(poolAddr, "callFunction", ["calcLPReplenishTwoTokensREADONLY", [toString(pmtA), toString(pmtB)]], nil)
409409 if ($isInstanceOf(@, "List[Any]"))
410410 then @
411411 else throw(($getType(@) + " couldn't be cast to List[Any]"))
412412 }
413413 if ((repl == repl))
414414 then $Tuple5({
415415 let @ = repl[3]
416416 if ($isInstanceOf(@, "Int"))
417417 then @
418418 else throw(($getType(@) + " couldn't be cast to Int"))
419419 }, {
420420 let @ = repl[4]
421421 if ($isInstanceOf(@, "Int"))
422422 then @
423423 else throw(($getType(@) + " couldn't be cast to Int"))
424424 }, {
425425 let @ = repl[1]
426426 if ($isInstanceOf(@, "Int"))
427427 then @
428428 else throw(($getType(@) + " couldn't be cast to Int"))
429429 }, assetIdToStr(repl[2]), {
430430 let @ = repl[0]
431431 if ($isInstanceOf(@, "Int"))
432432 then @
433433 else throw(($getType(@) + " couldn't be cast to Int"))
434434 })
435435 else throw("Strict value is not equal to itself.")
436436 }
437437 else if ((pType == WX_POOL))
438438 then {
439439 let $t01245712707 = $Tuple2(split({
440440 let @ = invoke(poolAddr, "evaluatePutByAmountAssetREADONLY", [pmtA], nil)
441441 if ($isInstanceOf(@, "String"))
442442 then @
443443 else throw(($getType(@) + " couldn't be cast to String"))
444444 }, "__"), split({
445445 let @ = invoke(poolAddr, "evaluatePutByPriceAssetREADONLY", [pmtB], nil)
446446 if ($isInstanceOf(@, "String"))
447447 then @
448448 else throw(($getType(@) + " couldn't be cast to String"))
449449 }, "__"))
450450 if (($t01245712707 == $t01245712707))
451451 then {
452452 let evalPutInB = $t01245712707._2
453453 let evalPutInA = $t01245712707._1
454454 let lpInA = parseIntValue(evalPutInA[1])
455455 let lpInB = parseIntValue(evalPutInB[1])
456456 if ((lpInB > lpInA))
457457 then {
458458 let pmt = parseIntValue(evalPutInA[8])
459459 $Tuple5(pmtA, pmt, (pmtB - pmt), bId, lpInB)
460460 }
461461 else {
462462 let pmt = parseIntValue(evalPutInB[7])
463463 $Tuple5(pmt, pmtB, (pmtA - pmt), aId, lpInA)
464464 }
465465 }
466466 else throw("Strict value is not equal to itself.")
467467 }
468468 else unknownPoolType()
469469
470470
471471 func replenishTwoTokensByType (poolAddr,pType,pmtA,aId,pmtB,bId) = {
472472 let payments = [AttachedPayment(assetIdFromStr(aId), pmtA), AttachedPayment(assetIdFromStr(bId), pmtB)]
473473 if ((pType == SF_POOL))
474474 then invoke(poolAddr, "callFunction", ["replenishWithTwoTokens", ["false", "0"]], payments)
475475 else if ((pType == WX_POOL))
476476 then invoke(poolAddr, "put", [1000000, false], payments)
477477 else unknownPoolType()
478478 }
479479
480480
481481 func replenishOneTokenByType (poolAddr,pType,pmt,pmtId) = {
482482 let payments = [AttachedPayment(assetIdFromStr(pmtId), pmt)]
483483 if ((pType == SF_POOL))
484484 then invoke(poolAddr, "callFunction", ["replenishWithOneToken", ["0", "false", "0"]], payments)
485485 else if ((pType == WX_POOL))
486486 then invoke(poolAddr, "putOneTkn", [0, false], payments)
487487 else unknownPoolType()
488488 }
489489
490490
491491 func stakeLP (pool,pType,shareId,amount) = {
492492 let payments = [AttachedPayment(fromBase58String(shareId), amount)]
493493 if ((pType == SF_POOL))
494494 then invoke(getSFFarmingAddr(), "lockShareTokens", [pool, 0], payments)
495495 else if ((pType == WX_POOL))
496496 then invoke(getWXFarmingAddr(addressFromStringValue(pool)), "stake", nil, payments)
497497 else unknownPoolType()
498498 }
499499
500500
501501 func unstakeLP (pool,pType,shareId,amount) = {
502502 let $t01436614716 = if ((pType == SF_POOL))
503503 then $Tuple3(getSFFarmingAddr(), "withdrawShareTokens", [pool, amount])
504504 else if ((pType == WX_POOL))
505505 then $Tuple3(getWXFarmingAddr(Address(fromBase58String(pool))), "unstake", [shareId, amount])
506506 else unknownPoolType()
507507 let farmAddr = $t01436614716._1
508508 let fName = $t01436614716._2
509509 let params = $t01436614716._3
510510 let inv = invoke(farmAddr, fName, params, nil)
511511 if ((inv == inv))
512512 then amount
513513 else throw("Strict value is not equal to itself.")
514514 }
515515
516516
517517 func calcAmountToPaySF (pool,assetIdA,assetIdB,balA,balB,amountTokenToGet,assetTokenToGet) = {
518518 let poolAddr = Address(fromBase58String(pool))
519519 let feeScale6 = 1000000
520520 let fee = getIntegerValue(poolAddr, kSFPoolFee)
521521 let amntGetNoFee = fraction(amountTokenToGet, feeScale6, (feeScale6 - fee), CEILING)
522522 let $t01513815444 = if ((assetTokenToGet == assetIdA))
523523 then {
524524 let amountToPay = fraction(amntGetNoFee, balB, (balA - amntGetNoFee), CEILING)
525525 $Tuple2(amountToPay, assetIdB)
526526 }
527527 else {
528528 let amountToPay = fraction(amntGetNoFee, balA, (balB - amntGetNoFee), CEILING)
529529 $Tuple2(amountToPay, assetIdA)
530530 }
531531 let amountToPay = $t01513815444._1
532532 let assetToPay = $t01513815444._2
533533 $Tuple2(assetToPay, amountToPay)
534534 }
535535
536536
537537 func calcAmountToPayWX (pool,assetIdA,assetIdB,balA,balB,amountTokenToGet,assetTokenToGet) = {
538538 let prFee = getIntegerValue(wxSwapContract, "%s__protocolFee")
539539 let pFee = getIntegerValue(wxSwapContract, "%s__poolFee")
540540 let feeScale = toBigInt(100000000)
541541 let $t01578316091 = if ((assetTokenToGet == assetIdA))
542542 then {
543543 let amountToPay = fraction(amountTokenToGet, balB, (balA - amountTokenToGet))
544544 $Tuple2(amountToPay, assetIdB)
545545 }
546546 else {
547547 let amountToPay = fraction(amountTokenToGet, balA, (balB - amountTokenToGet))
548548 $Tuple2(amountToPay, assetIdA)
549549 }
550550 let amountToPay = $t01578316091._1
551551 let assetToPay = $t01578316091._2
552552 let amountToPayWithFee = toInt(fraction(toBigInt(amountToPay), feeScale, (feeScale - toBigInt((prFee + pFee))), CEILING))
553553 $Tuple2(assetToPay, amountToPayWithFee)
554554 }
555555
556556
557557 func exchangeDirectly (pType,pool,assetIdA,assetIdB,balA,balB,amountTokenToGet,assetTokenToGet) = if ((pType == SF_POOL))
558558 then {
559559 let $t01643816560 = calcAmountToPaySF(pool, assetIdA, assetIdB, balA, balB, amountTokenToGet, assetTokenToGet)
560560 let assetToPay = $t01643816560._1
561561 let amountToPay = $t01643816560._2
562562 invoke(addressFromStringValue(pool), "callFunction", ["exchange", [toString(amountTokenToGet)]], [AttachedPayment(assetIdFromStr(assetToPay), amountToPay)])
563563 }
564564 else if ((pType == WX_POOL))
565565 then {
566566 let $t01676016882 = calcAmountToPayWX(pool, assetIdA, assetIdB, balA, balB, amountTokenToGet, assetTokenToGet)
567567 let assetToPay = $t01676016882._1
568568 let amountToPay = $t01676016882._2
569569 invoke(wxSwapContract, "swap", [amountTokenToGet, assetTokenToGet, toString(this)], [AttachedPayment(assetIdFromStr(assetToPay), amountToPay)])
570570 }
571571 else unknownPoolType()
572572
573573
574574 func calcWithdrawLPFromPoolVirt (poolAddr,pType,shareId,userCanWithdraw) = {
575- let $t01716917608 = if ((pType == SF_POOL))
575+ let $t01716917633 = if ((pType == SF_POOL))
576576 then {
577577 let inv = {
578578 let @ = invoke(poolAddr, "callFunction", ["withdrawREADONLY", [toString(userCanWithdraw)]], nil)
579- if ($isInstanceOf(@, "(Int, Int)"))
579+ if ($isInstanceOf(@, "List[Any]"))
580580 then @
581- else throw(($getType(@) + " couldn't be cast to (Int, Int)"))
581+ else throw(($getType(@) + " couldn't be cast to List[Any]"))
582582 }
583583 if ((inv == inv))
584- then $Tuple2(inv._1, inv._2)
584+ then $Tuple2({
585+ let @ = inv[0]
586+ if ($isInstanceOf(@, "Int"))
587+ then @
588+ else throw(($getType(@) + " couldn't be cast to Int"))
589+ }, {
590+ let @ = inv[1]
591+ if ($isInstanceOf(@, "Int"))
592+ then @
593+ else throw(($getType(@) + " couldn't be cast to Int"))
594+ })
585595 else throw("Strict value is not equal to itself.")
586596 }
587597 else if ((pType == WX_POOL))
588598 then {
589599 let inv = split({
590600 let @ = invoke(poolAddr, "evaluateGetREADONLY", [shareId, userCanWithdraw], nil)
591601 if ($isInstanceOf(@, "String"))
592602 then @
593603 else throw(($getType(@) + " couldn't be cast to String"))
594604 }, "__")
595605 if ((inv == inv))
596606 then $Tuple2(parseIntValue(inv[1]), parseIntValue(inv[2]))
597607 else throw("Strict value is not equal to itself.")
598608 }
599609 else unknownPoolType()
600- let amountA = $t01716917608._1
601- let amountB = $t01716917608._2
610+ let amountA = $t01716917633._1
611+ let amountB = $t01716917633._2
602612 $Tuple2(amountA, amountB)
603613 }
604614
605615
606616 func claimFarmed (pType,pool) = if ((pType == SF_POOL))
607617 then {
608618 let balBefore = accountBalance(SWOPID)
609619 if ((balBefore == balBefore))
610620 then {
611621 let inv = invoke(getSFFarmingAddr(), "claim", [pool], nil)
612622 if ((inv == inv))
613623 then {
614624 let balAfter = accountBalance(SWOPID)
615625 $Tuple2((balAfter - balBefore), SWOPID)
616626 }
617627 else throw("Strict value is not equal to itself.")
618628 }
619629 else throw("Strict value is not equal to itself.")
620630 }
621631 else if ((pType == WX_POOL))
622632 then {
623633 let balBefore = accountBalance(WXID)
624634 if ((balBefore == balBefore))
625635 then {
626636 let inv = invoke(getWXFarmingAddr(Address(fromBase58String(pool))), "claimWX", [pool], nil)
627637 if ((inv == inv))
628638 then {
629639 let balAfter = accountBalance(WXID)
630640 $Tuple2((balAfter - balBefore), WXID)
631641 }
632642 else throw("Strict value is not equal to itself.")
633643 }
634644 else throw("Strict value is not equal to itself.")
635645 }
636646 else unknownPoolType()
637647
638648
639649 func replenishByType (pType,pool,feeType,pmtA,aId,pmtB,bId,balA,balB,LPId) = {
640650 let lpBalanceBefore = accountBalance(fromBase58String(LPId))
641651 if ((lpBalanceBefore == lpBalanceBefore))
642652 then {
643653 let poolAddr = addressFromStringValue(pool)
644- let $t01857318989 = if (if ((pmtA > 0))
654+ let $t01859819014 = if (if ((pmtA > 0))
645655 then (pmtB > 0)
646656 else false)
647657 then {
648- let $t01863918755 = calcReplenishByTwoTokens(pType, poolAddr, pmtA, aId, pmtB, bId, balA, balB)
649- let pmtInA = $t01863918755._1
650- let pmtInB = $t01863918755._2
651- let change = $t01863918755._3
652- let changeId = $t01863918755._4
658+ let $t01866418780 = calcReplenishByTwoTokens(pType, poolAddr, pmtA, aId, pmtB, bId, balA, balB)
659+ let pmtInA = $t01866418780._1
660+ let pmtInB = $t01866418780._2
661+ let change = $t01866418780._3
662+ let changeId = $t01866418780._4
653663 let inv = replenishTwoTokensByType(poolAddr, pType, pmtInA, aId, pmtInB, bId)
654664 if ((inv == inv))
655665 then $Tuple2(change, changeId)
656666 else throw("Strict value is not equal to itself.")
657667 }
658668 else if ((pmtA > 0))
659669 then $Tuple2(pmtA, aId)
660670 else if ((pmtB > 0))
661671 then $Tuple2(pmtB, bId)
662672 else throw("pmts must be > 0")
663- let change = $t01857318989._1
664- let changeId = $t01857318989._2
673+ let change = $t01859819014._1
674+ let changeId = $t01859819014._2
665675 let inv = if ((change > 0))
666676 then replenishOneTokenByType(poolAddr, pType, change, changeId)
667677 else nil
668678 if ((inv == inv))
669679 then {
670680 let lpBalanceAfter = accountBalance(fromBase58String(LPId))
671681 let totalStaked = (lpBalanceAfter - lpBalanceBefore)
672682 let axlyFeeAmount = fraction(totalStaked, getAxlyFee(pool, feeType), FEE_SCALE6)
673683 let userShareForStake = (totalStaked - axlyFeeAmount)
674684 if ((0 >= userShareForStake))
675685 then throw("amount of staked sharetokens must be > 0")
676686 else {
677687 let invLP = stakeLP(pool, pType, LPId, userShareForStake)
678688 if ((invLP == invLP))
679689 then $Tuple2(userShareForStake, axlyFeeAmount)
680690 else throw("Strict value is not equal to itself.")
681691 }
682692 }
683693 else throw("Strict value is not equal to itself.")
684694 }
685695 else throw("Strict value is not equal to itself.")
686696 }
687697
688698
689699 func replenishEntries (pool,user,stakedAmount,axlyFeeAmount,posNum,shareId,type,withLoan) = {
690700 let totalAmount = getPoolTotalShare(pool)
691701 let totalAmountLoan = getPoolTotalShareWithLoan(pool)
692- let $t01984720085 = if (withLoan)
702+ let $t01987220110 = if (withLoan)
693703 then $Tuple2(getIntegerValue(this, (pool + kPoolInterestLoan)), (totalAmountLoan + stakedAmount))
694704 else $Tuple2(getIntegerValue(this, (pool + kPoolInterestNoLoan)), totalAmountLoan)
695- let curPoolInterest = $t01984720085._1
696- let totalStakedWithLoan = $t01984720085._2
705+ let curPoolInterest = $t01987220110._1
706+ let totalStakedWithLoan = $t01987220110._2
697707 [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))]
698708 }
699709
700710
701711 func exchangeKeeper (toToken,pmtAmount,pmtAsset,amountsIn,addresses,assetsToReceive,estReceived,slippageTolerance,minReceived,options) = {
702712 let tokenBalanceBefore = accountBalance(assetIdFromStr(toToken))
703713 if ((tokenBalanceBefore == tokenBalanceBefore))
704714 then {
705715 let inv = invoke(exContract, "swap", [amountsIn, addresses, assetsToReceive, estReceived, slippageTolerance, minReceived, options], [AttachedPayment(pmtAsset, pmtAmount)])
706716 if ((inv == inv))
707717 then (accountBalance(assetIdFromStr(toToken)) - tokenBalanceBefore)
708718 else throw("Strict value is not equal to itself.")
709719 }
710720 else throw("Strict value is not equal to itself.")
711721 }
712722
713723
714724 func exchangePuzzle (toToken,pmtAmount,pmtAsset,routesStr,minToReceive,options) = {
715725 let tokenBalanceBefore = accountBalance(assetIdFromStr(toToken))
716726 if ((tokenBalanceBefore == tokenBalanceBefore))
717727 then {
718728 let inv = invoke(exContract, "puzzleSwap", [routesStr, minToReceive, options], [AttachedPayment(pmtAsset, pmtAmount)])
719729 if ((inv == inv))
720730 then (accountBalance(assetIdFromStr(toToken)) - tokenBalanceBefore)
721731 else throw("Strict value is not equal to itself.")
722732 }
723733 else throw("Strict value is not equal to itself.")
724734 }
725735
726736
727737 func exchangeSwopFi (toToken,pmtAmount,pmtAsset,exchangers,exchangersType,args1,args2,routingAssetsKeys,minAmountToReceive,options) = {
728738 let tokenBalanceBefore = accountBalance(assetIdFromStr(toToken))
729739 if ((tokenBalanceBefore == tokenBalanceBefore))
730740 then {
731741 let inv = invoke(exContract, "swopfiSwap", [exchangers, exchangersType, args1, args2, routingAssetsKeys, minAmountToReceive, options], [AttachedPayment(pmtAsset, pmtAmount)])
732742 if ((inv == inv))
733743 then (accountBalance(assetIdFromStr(toToken)) - tokenBalanceBefore)
734744 else throw("Strict value is not equal to itself.")
735745 }
736746 else throw("Strict value is not equal to itself.")
737747 }
738748
739749
740750 func capitalize (pool,pType,tokenId,tokenAmount) = {
741751 let poolAddr = Address(fromBase58String(pool))
742- let $t02243622502 = getPoolData(poolAddr, pType)
743- let AId = $t02243622502._1
744- let BId = $t02243622502._2
745- let balA = $t02243622502._3
746- let balB = $t02243622502._4
747- let shareId = $t02243622502._5
752+ let $t02246122527 = getPoolData(poolAddr, pType)
753+ let AId = $t02246122527._1
754+ let BId = $t02246122527._2
755+ let balA = $t02246122527._3
756+ let balB = $t02246122527._4
757+ let shareId = $t02246122527._5
748758 if (if ((tokenId != AId))
749759 then (tokenId != BId)
750760 else false)
751761 then throw("Wrong asset")
752762 else {
753- let $t02258722667 = if ((tokenId == AId))
763+ let $t02261222692 = if ((tokenId == AId))
754764 then $Tuple2(tokenAmount, 0)
755765 else $Tuple2(0, tokenAmount)
756- let pmtA = $t02258722667._1
757- let pmtB = $t02258722667._2
758- let $t02267022774 = replenishByType(pType, pool, NO_FEE, pmtA, AId, pmtB, BId, balA, balB, shareId)
759- let stakedAmount = $t02267022774._1
760- let nf = $t02267022774._2
766+ let pmtA = $t02261222692._1
767+ let pmtB = $t02261222692._2
768+ let $t02269522799 = replenishByType(pType, pool, NO_FEE, pmtA, AId, pmtB, BId, balA, balB, shareId)
769+ let stakedAmount = $t02269522799._1
770+ let nf = $t02269522799._2
761771 let curPoolInterestLoan = valueOrElse(getInteger(this, (pool + kPoolInterestLoan)), 0)
762772 let curPoolInterestNoLoan = valueOrElse(getInteger(this, (pool + kPoolInterestNoLoan)), 0)
763773 let totalShareAmount = getPoolTotalShare(pool)
764774 let totalShareAmountWithLoan = getPoolTotalShareWithLoan(pool)
765775 let loanPercent = fraction(totalShareAmountWithLoan, SCALE8, totalShareAmount)
766776 let stakedLoan = fraction(stakedAmount, loanPercent, SCALE8)
767777 let stakedNoLoan = (stakedAmount - stakedLoan)
768778 let newInterestLoan = if ((totalShareAmountWithLoan > 0))
769779 then (curPoolInterestLoan + fraction(stakedLoan, SCALE10, totalShareAmountWithLoan))
770780 else 0
771781 let newInterestNoLoan = if (((totalShareAmount - totalShareAmountWithLoan) > 0))
772782 then (curPoolInterestNoLoan + fraction(stakedNoLoan, SCALE10, (totalShareAmount - totalShareAmountWithLoan)))
773783 else 0
774784 let axlyFeeLoan = fraction(stakedLoan, getAxlyFee(pool, CAP_FEE_LOAN), FEE_SCALE6)
775785 let axlyFeeNoLoan = fraction(stakedNoLoan, getAxlyFee(pool, CAP_FEE_NO_LOAN), FEE_SCALE6)
776786 let axlyFee = unstakeLP(pool, pType, shareId, (axlyFeeLoan + axlyFeeNoLoan))
777787 if ((axlyFee == axlyFee))
778788 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))
779789 else throw("Strict value is not equal to itself.")
780790 }
781791 }
782792
783793
784794 func withdrawAmountCalc (pool,userCanWithdraw,debt,borrowAsset,stopLossFee) = {
785795 let poolAddr = Address(fromBase58String(pool))
786796 let pType = valueOrErrorMessage(getString(this, (kPool + pool)), "Unknown pool")
787- let $t02456424640 = getPoolData(poolAddr, pType)
788- let assetIdA = $t02456424640._1
789- let assetIdB = $t02456424640._2
790- let balA = $t02456424640._3
791- let balB = $t02456424640._4
792- let shareId = $t02456424640._5
797+ let $t02458924665 = getPoolData(poolAddr, pType)
798+ let assetIdA = $t02458924665._1
799+ let assetIdB = $t02458924665._2
800+ let balA = $t02458924665._3
801+ let balB = $t02458924665._4
802+ let shareId = $t02458924665._5
793803 let cBalABefore = accountBalance(assetIdFromStr(assetIdA))
794804 if ((cBalABefore == cBalABefore))
795805 then {
796806 let cBalBBefore = accountBalance(assetIdFromStr(assetIdB))
797807 if ((cBalBBefore == cBalBBefore))
798808 then {
799809 let inv = if ((pType == SF_POOL))
800810 then {
801811 let inv = unstakeLP(pool, pType, shareId, stopLossFee)
802812 if ((inv == inv))
803813 then invoke(poolAddr, "callFunction", ["withdraw", [toString(userCanWithdraw)]], nil)
804814 else throw("Strict value is not equal to itself.")
805815 }
806816 else if ((pType == WX_POOL))
807817 then {
808818 let inv = unstakeLP(pool, pType, shareId, (userCanWithdraw + stopLossFee))
809819 if ((inv == inv))
810820 then invoke(poolAddr, "get", nil, [AttachedPayment(assetIdFromStr(shareId), userCanWithdraw)])
811821 else throw("Strict value is not equal to itself.")
812822 }
813823 else unknownPoolType()
814824 if ((inv == inv))
815825 then {
816826 let cBalAAfter = accountBalance(assetIdFromStr(assetIdA))
817827 let cBalBAfter = accountBalance(assetIdFromStr(assetIdB))
818- let $t02533325422 = $Tuple2((cBalAAfter - cBalABefore), (cBalBAfter - cBalBBefore))
819- let tokensAmountA = $t02533325422._1
820- let tokensAmountB = $t02533325422._2
821- let $t02542526279 = if ((debt > 0))
828+ let $t02535825447 = $Tuple2((cBalAAfter - cBalABefore), (cBalBAfter - cBalBBefore))
829+ let tokensAmountA = $t02535825447._1
830+ let tokensAmountB = $t02535825447._2
831+ let $t02545026304 = if ((debt > 0))
822832 then {
823833 let amountToGetEx = if (if ((borrowAsset == assetIdA))
824834 then (debt > tokensAmountA)
825835 else false)
826836 then (debt - tokensAmountA)
827837 else if (if ((borrowAsset == assetIdB))
828838 then (debt > tokensAmountB)
829839 else false)
830840 then (debt - tokensAmountB)
831841 else 0
832842 let exInv = if ((amountToGetEx > 0))
833843 then exchangeDirectly(pType, pool, assetIdA, assetIdB, (balA - tokensAmountA), (balB - tokensAmountB), amountToGetEx, borrowAsset)
834844 else nil
835845 if ((exInv == exInv))
836846 then {
837847 let cBalAAfterRepay = accountBalance(assetIdFromStr(assetIdA))
838848 let cBalBAfterRepay = accountBalance(assetIdFromStr(assetIdB))
839849 if ((borrowAsset == assetIdA))
840850 then $Tuple2(((cBalAAfterRepay - cBalABefore) - debt), (cBalBAfterRepay - cBalBBefore))
841851 else $Tuple2((cBalAAfterRepay - cBalABefore), ((cBalBAfterRepay - cBalBBefore) - debt))
842852 }
843853 else throw("Strict value is not equal to itself.")
844854 }
845855 else $Tuple2(tokensAmountA, tokensAmountB)
846- let toUserA = $t02542526279._1
847- let toUserB = $t02542526279._2
856+ let toUserA = $t02545026304._1
857+ let toUserB = $t02545026304._2
848858 $Tuple5(toUserA, assetIdA, toUserB, assetIdB, shareId)
849859 }
850860 else throw("Strict value is not equal to itself.")
851861 }
852862 else throw("Strict value is not equal to itself.")
853863 }
854864 else throw("Strict value is not equal to itself.")
855865 }
856866
857867
858868 func userCanWithdrawShareCalc (user,pool,posId,borrowed) = {
859869 let pAmount = valueOrErrorMessage(getInteger(this, (((((pool + "_") + user) + "_") + posId) + kUserPosition)), "Unknown position")
860870 let userInterest = getIntegerValue(this, (((((pool + "_") + user) + "_") + posId) + kUserPositionInterest))
861871 let poolInterest = if (borrowed)
862872 then getIntegerValue(this, (pool + kPoolInterestLoan))
863873 else getIntegerValue(this, (pool + kPoolInterestNoLoan))
864874 (pAmount + fraction(pAmount, (poolInterest - userInterest), SCALE10))
865875 }
866876
867877
868878 func withdrawToUser (user,pool,posId,stopLoss) = {
869879 let pAmount = valueOrErrorMessage(getInteger(this, (((((pool + "_") + user) + "_") + posId) + kUserPosition)), "Unknown position")
870880 let borrowAmount = valueOrElse(getInteger(this, (((((pool + "_") + user) + "_") + posId) + kUserBorrowAmount)), 0)
871881 let userCanWithdraw = userCanWithdrawShareCalc(user, pool, posId, (borrowAmount > 0))
872882 let poolTotalShare = getPoolTotalShare(pool)
873883 let userAddr = Address(fromBase58String(user))
874884 let borrowAsset = valueOrElse(getString(this, (((((pool + "_") + user) + "_") + posId) + kUserBorrowAssetId)), "")
875- let $t02747727711 = if ((borrowAmount > 0))
885+ let $t02750227736 = if ((borrowAmount > 0))
876886 then $Tuple2({
877887 let @ = invoke(getLendSrvAddr(), "getAssetDebt", [false, ((user + "_") + posId), borrowAsset], nil)
878888 if ($isInstanceOf(@, "Int"))
879889 then @
880890 else throw(($getType(@) + " couldn't be cast to Int"))
881891 }, STOPLOSS_LOAN)
882892 else $Tuple2(0, STOPLOSS_FEE_NO_LOAN)
883- let debt = $t02747727711._1
884- let feeType = $t02747727711._2
893+ let debt = $t02750227736._1
894+ let feeType = $t02750227736._2
885895 let stopLossFee = if (stopLoss)
886896 then fraction(userCanWithdraw, getAxlyFee(pool, feeType), FEE_SCALE6)
887897 else 0
888- let $t02782827984 = withdrawAmountCalc(pool, (userCanWithdraw - stopLossFee), debt, borrowAsset, stopLossFee)
889- if (($t02782827984 == $t02782827984))
898+ let $t02785328009 = withdrawAmountCalc(pool, (userCanWithdraw - stopLossFee), debt, borrowAsset, stopLossFee)
899+ if (($t02785328009 == $t02785328009))
890900 then {
891- let shareId = $t02782827984._5
892- let assetIdB = $t02782827984._4
893- let toUserAmountB = $t02782827984._3
894- let assetIdA = $t02782827984._2
895- let toUserAmountA = $t02782827984._1
901+ let shareId = $t02785328009._5
902+ let assetIdB = $t02785328009._4
903+ let toUserAmountB = $t02785328009._3
904+ let assetIdA = $t02785328009._2
905+ let toUserAmountA = $t02785328009._1
896906 let closeDbtInv = if ((debt > 0))
897907 then invoke(getLendSrvAddr(), "repayFor", [((user + "_") + posId)], [AttachedPayment(assetIdFromStr(borrowAsset), debt)])
898908 else 0
899909 if ((closeDbtInv == closeDbtInv))
900- then ([DeleteEntry((((((pool + "_") + user) + "_") + posId) + kUserPosition)), DeleteEntry((((user + "_") + posId) + kUserPositionPool)), DeleteEntry((((((pool + "_") + user) + "_") + posId) + kUserBorrowAmount)), DeleteEntry((((((pool + "_") + user) + "_") + posId) + kUserBorrowAssetId)), DeleteEntry((((((pool + "_") + user) + "_") + posId) + kUserPositionInterest)), IntegerEntry((pool + kPoolTotal), ((poolTotalShare - userCanWithdraw) - stopLossFee)), ScriptTransfer(userAddr, toUserAmountA, assetIdFromStr(assetIdA)), ScriptTransfer(userAddr, toUserAmountB, assetIdFromStr(assetIdB)), ScriptTransfer(moneyBox, stopLossFee, fromBase58String(shareId))] ++ getCursEntries(assetIdA, assetIdB, shareId, nil))
910+ then {
911+ let entries = ([DeleteEntry((((((pool + "_") + user) + "_") + posId) + kUserPosition)), DeleteEntry((((user + "_") + posId) + kUserPositionPool)), DeleteEntry((((((pool + "_") + user) + "_") + posId) + kUserBorrowAmount)), DeleteEntry((((((pool + "_") + user) + "_") + posId) + kUserBorrowAssetId)), DeleteEntry((((((pool + "_") + user) + "_") + posId) + kUserPositionInterest)), IntegerEntry((pool + kPoolTotal), ((poolTotalShare - userCanWithdraw) - stopLossFee)), ScriptTransfer(userAddr, toUserAmountA, assetIdFromStr(assetIdA)), ScriptTransfer(userAddr, toUserAmountB, assetIdFromStr(assetIdB)), ScriptTransfer(moneyBox, stopLossFee, fromBase58String(shareId))] ++ getCursEntries(assetIdA, assetIdB, shareId, nil))
912+ $Tuple2(entries, [toUserAmountA, toUserAmountB])
913+ }
901914 else throw("Strict value is not equal to itself.")
902915 }
903916 else throw("Strict value is not equal to itself.")
904917 }
905918
906919
907920 func parseRequest (requestId) = {
908921 let request = split(valueOrErrorMessage(getString(this, (requestId + kRequestId)), ("No request with id " + requestId)), ",")
909922 let user = request[0]
910923 let pool = request[1]
911924 let pmtA = parseIntValue(request[2])
912925 let AId = request[3]
913926 let pmtB = parseIntValue(request[4])
914927 let BId = request[5]
915928 let balA = parseIntValue(request[6])
916929 let balB = parseIntValue(request[7])
917930 let shareId = request[8]
918931 let bwAsset = request[9]
919932 let bwAmount = parseIntValue(request[10])
920933 $Tuple11(user, pool, pmtA, AId, pmtB, BId, balA, balB, shareId, bwAsset, bwAmount)
921934 }
922935
923936
924937 func calcBorrowAmount (pmtA,pmtB,aId,bId,leverage,borrowId) = if (if ((borrowId != aId))
925938 then (borrowId != bId)
926939 else false)
927940 then throw("Wrong borrow asset")
928941 else {
929942 let dPriceA = getIntegerValue(priceOracleAddr, (aId + kPriceInOracle))
930943 let dPriceB = getIntegerValue(priceOracleAddr, (bId + kPriceInOracle))
931944 let decPrA = pow(10, 0, getAssetDecimals(aId), 0, 0, DOWN)
932945 let decPrB = pow(10, 0, getAssetDecimals(bId), 0, 0, DOWN)
933946 let paydInDollar = (fraction(dPriceA, pmtA, decPrA) + fraction(dPriceB, pmtB, decPrB))
934- let $t02998930086 = if ((borrowId == aId))
947+ let $t03007230169 = if ((borrowId == aId))
935948 then $Tuple2(dPriceA, decPrA)
936949 else $Tuple2(dPriceB, decPrB)
937- let borrowPrice = $t02998930086._1
938- let borrowDecPr = $t02998930086._2
950+ let borrowPrice = $t03007230169._1
951+ let borrowDecPr = $t03007230169._2
939952 fraction(fraction(paydInDollar, (leverage - 100), 100), borrowDecPr, borrowPrice)
940953 }
941954
942955
943956 func parseReplenishPmts (pmts,AId,BId) = if ((size(pmts) == 2))
944957 then if ((assetIdToStr(pmts[0].assetId) != AId))
945958 then throw("Wrong payment asset A")
946959 else if ((assetIdToStr(pmts[1].assetId) != BId))
947960 then throw("Wrong payment asset B")
948961 else $Tuple2(pmts[0].amount, pmts[1].amount)
949962 else if ((size(pmts) == 1))
950963 then if ((assetIdToStr(pmts[0].assetId) == AId))
951964 then $Tuple2(pmts[0].amount, 0)
952965 else if ((assetIdToStr(pmts[0].assetId) == BId))
953966 then $Tuple2(0, pmts[0].amount)
954967 else throw("Wrong payment")
955968 else throw("One or two payments expected")
956969
957970
958971 func calcPriceImpact (balA,balB,newBalA,newBalB) = {
959972 let pri = ((SCALE8 - fraction(fraction(balB, SCALE8, balA), SCALE8, fraction(newBalB, SCALE8, newBalA))) * 100)
960973 if ((0 > pri))
961974 then (pri * -1)
962975 else pri
963976 }
964977
965978
966979 func claimAndCheckAmntEx (pool,pType,claim,amountToExchange,change) = {
967- let $t03110031387 = if (claim)
980+ let $t03118331470 = if (claim)
968981 then claimFarmed(pType, pool)
969982 else {
970983 let claimedAsset = if ((pType == SF_POOL))
971984 then SWOPID
972985 else if ((pType == WX_POOL))
973986 then WXID
974987 else unknownPoolType()
975988 $Tuple2(amountToExchange, claimedAsset)
976989 }
977- let claimAmount = $t03110031387._1
978- let claimAsset = $t03110031387._2
979- if ((amountToExchange > (claimAmount + change)))
990+ let claimAmount = $t03118331470._1
991+ let claimAsset = $t03118331470._2
992+ let bal = accountBalance(claimAsset)
993+ if (if ((amountToExchange > (claimAmount + change)))
994+ then true
995+ else (amountToExchange > bal))
980996 then throw("To big amount to exchange")
981997 else $Tuple2(claimAmount, claimAsset)
982998 }
983999
9841000
9851001 @Callable(i)
9861002 func getShareAssetPriceREADONLY (shareId) = {
9871003 let sharePrices = getSharePrice(shareId)
9881004 $Tuple2(nil, sharePrices)
9891005 }
9901006
9911007
9921008
9931009 @Callable(i)
9941010 func getUserPositionShareAmountREADONLY (user,posNum) = {
9951011 let pool = valueOrErrorMessage(getString(this, (((user + "_") + posNum) + kUserPositionPool)), "Unknown position")
9961012 let borrowAmount = getIntegerValue(this, (((((pool + "_") + user) + "_") + posNum) + kUserBorrowAmount))
9971013 let userCanWithdraw = userCanWithdrawShareCalc(user, pool, posNum, (borrowAmount > 0))
9981014 $Tuple2(nil, userCanWithdraw)
9991015 }
10001016
10011017
10021018
10031019 @Callable(i)
1004-func getUserPositionInDollarsREADONLY (user,pools,posNum) = {
1020+func getUserPositionREADONLY (user,pools,posNum) = {
10051021 func userPos (a,pool) = {
1006- let $t03228332317 = a
1007- let totalPos = $t03228332317._1
1008- let posDebt = $t03228332317._2
1009- let index = $t03228332317._3
1022+ let $t03243632480 = a
1023+ let wAmountsA = $t03243632480._1
1024+ let wAmountsB = $t03243632480._2
1025+ let debts = $t03243632480._3
1026+ let index = $t03243632480._4
10101027 let pType = valueOrErrorMessage(getString(this, (kPool + pool)), "Pool is not inited")
1011- let $t03240932499 = getPoolData(Address(fromBase58String(pool)), pType)
1012- let AId = $t03240932499._1
1013- let BId = $t03240932499._2
1014- let balA = $t03240932499._3
1015- let balB = $t03240932499._4
1016- let shareId = $t03240932499._5
1028+ let $t03257232662 = getPoolData(Address(fromBase58String(pool)), pType)
1029+ let AId = $t03257232662._1
1030+ let BId = $t03257232662._2
1031+ let balA = $t03257232662._3
1032+ let balB = $t03257232662._4
1033+ let shareId = $t03257232662._5
10171034 let borrowAmount = valueOrElse(getInteger(this, (((((pool + "_") + user) + "_") + posNum[index]) + kUserBorrowAmount)), 0)
10181035 if (!(isDefined(getInteger(this, (((((pool + "_") + user) + "_") + posNum[index]) + kUserPosition)))))
1019- then $Tuple3((totalPos :+ 0), (posDebt :+ 0), (index + 1))
1036+ then $Tuple3((wAmountsA :+ 0), (wAmountsB :+ 0), (index + 1))
10201037 else {
10211038 let userCanWithdraw = userCanWithdrawShareCalc(user, pool, posNum[index], (borrowAmount > 0))
1022- let sharePrices = getSharePrice(shareId)
1023- let decPrShare = pow(10, 0, getAssetDecimals(shareId), 0, 0, DOWN)
1024- let shareD = fraction(userCanWithdraw, sharePrices, decPrShare)
1025- if ((borrowAmount == 0))
1026- then $Tuple3((totalPos :+ shareD), (posDebt :+ 0), (index + 1))
1027- else {
1039+ let $t03302333143 = calcWithdrawLPFromPoolVirt(Address(fromBase58String(pool)), pType, shareId, userCanWithdraw)
1040+ let wAmountA = $t03302333143._1
1041+ let wAmountB = $t03302333143._2
1042+ if ((borrowAmount > 0))
1043+ then {
10281044 let borrowAsset = getStringValue(this, (((((pool + "_") + user) + "_") + posNum[index]) + kUserBorrowAssetId))
10291045 let debt = {
10301046 let @ = invoke(getLendSrvAddr(), "getAssetDebt", [false, ((user + "_") + posNum[index]), borrowAsset], nil)
10311047 if ($isInstanceOf(@, "Int"))
10321048 then @
10331049 else throw(($getType(@) + " couldn't be cast to Int"))
10341050 }
1035- let borrowAssetPrice = getIntegerValue(priceOracleAddr, (borrowAsset + kPriceInOracle))
1036- let decPrBorrowId = pow(10, 0, getAssetDecimals(borrowAsset), 0, 0, DOWN)
1037- let debtD = fraction(debt, borrowAssetPrice, decPrBorrowId)
1038- $Tuple3((totalPos :+ shareD), (posDebt :+ debtD), (index + 1))
1051+ if ((debt == debt))
1052+ then $Tuple4((wAmountsA :+ wAmountA), (wAmountsB :+ wAmountB), (debts :+ debt), (index + 1))
1053+ else throw("Strict value is not equal to itself.")
10391054 }
1055+ else $Tuple3((wAmountsA :+ wAmountA), (wAmountsB :+ wAmountB), (index + 1))
10401056 }
10411057 }
10421058
1043- let $t03366333718 = {
1059+ let $t03356033637 = {
10441060 let $l = pools
10451061 let $s = size($l)
1046- let $acc0 = $Tuple3(nil, nil, 0)
1062+ let $acc0 = $Tuple4(nil, nil, nil, 0)
10471063 func $f0_1 ($a,$i) = if (($i >= $s))
10481064 then $a
10491065 else userPos($a, $l[$i])
10501066
10511067 func $f0_2 ($a,$i) = if (($i >= $s))
10521068 then $a
10531069 else throw("List size exceeds 20")
10541070
10551071 $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)
10561072 }
1057- let pos = $t03366333718._1
1058- let debt = $t03366333718._2
1059- $Tuple2(nil, $Tuple2(pos, debt))
1073+ let wAmountsA = $t03356033637._1
1074+ let wAmountsB = $t03356033637._2
1075+ let debts = $t03356033637._3
1076+ $Tuple2(nil, $Tuple3(wAmountsA, wAmountsB, debts))
10601077 }
10611078
10621079
10631080
10641081 @Callable(i)
10651082 func replenish (pool,leverage,borrowId) = valueOrElse(isActiveForUsers(), if (if ((100 > leverage))
10661083 then true
10671084 else (leverage > 300))
10681085 then throw("Leverage can't be <100 and >300")
10691086 else if (if (!(getBooleanValue(this, (pool + kPoolCanBorrow))))
10701087 then (leverage > 100)
10711088 else false)
10721089 then throw("You can't borrow in this pool")
10731090 else {
10741091 let pType = valueOrErrorMessage(getString(this, (kPool + pool)), "Pool is not inited")
1075- let $t03418934279 = getPoolData(Address(fromBase58String(pool)), pType)
1076- let AId = $t03418934279._1
1077- let BId = $t03418934279._2
1078- let balA = $t03418934279._3
1079- let balB = $t03418934279._4
1080- let shareId = $t03418934279._5
1092+ let $t03412634216 = getPoolData(Address(fromBase58String(pool)), pType)
1093+ let AId = $t03412634216._1
1094+ let BId = $t03412634216._2
1095+ let balA = $t03412634216._3
1096+ let balB = $t03412634216._4
1097+ let shareId = $t03412634216._5
10811098 if (if ((borrowId != AId))
10821099 then (borrowId != BId)
10831100 else false)
10841101 then throw("Wrong borrow asset")
10851102 else {
1086- let $t03436034419 = parseReplenishPmts(i.payments, AId, BId)
1087- let pmtA = $t03436034419._1
1088- let pmtB = $t03436034419._2
1103+ let $t03429734356 = parseReplenishPmts(i.payments, AId, BId)
1104+ let pmtA = $t03429734356._1
1105+ let pmtB = $t03429734356._2
10891106 let user = toString(i.caller)
10901107 let newPosNum = getNewUserPositionNumber(user)
10911108 if ((leverage > 100))
10921109 then {
10931110 let borrowAmount = calcBorrowAmount(pmtA, pmtB, AId, BId, leverage, borrowId)
10941111 let request = makeString([user, pool, toString(pmtA), AId, toString(pmtB), BId, toString(balA), toString(balB), shareId, borrowId, toString(borrowAmount)], ",")
10951112 let newRequestId = {
10961113 let @ = invoke(this, "createNewRequest", [request], nil)
10971114 if ($isInstanceOf(@, "Int"))
10981115 then @
10991116 else throw(($getType(@) + " couldn't be cast to Int"))
11001117 }
11011118 if ((newRequestId == newRequestId))
11021119 then {
11031120 let args = [((user + "_") + toString(newPosNum)), shareId, borrowId, borrowAmount, toString(this), "replenishFromLand", toString(valueOrErrorMessage(newRequestId, "Can't create new request"))]
11041121 let inv = reentrantInvoke(getLendSrvAddr(), "flashPosition", args, nil)
11051122 if ((inv == inv))
11061123 then {
11071124 let userStaked = getIntegerValue(this, (((((pool + "_") + user) + "_") + toString(newPosNum)) + kUserPosition))
1108- let $t03540835502 = getPoolBalances(Address(fromBase58String(pool)), pType, AId, BId)
1109- if (($t03540835502 == $t03540835502))
1125+ let $t03534535439 = getPoolBalances(Address(fromBase58String(pool)), pType, AId, BId)
1126+ if (($t03534535439 == $t03534535439))
11101127 then {
1111- let newBalB = $t03540835502._2
1112- let newBalA = $t03540835502._1
1128+ let newBalB = $t03534535439._2
1129+ let newBalA = $t03534535439._1
11131130 let prImpact = calcPriceImpact(balA, balB, newBalA, newBalB)
1114- let $t03557235687 = calcWithdrawLPFromPoolVirt(Address(fromBase58String(pool)), pType, shareId, userStaked)
1115- let wAmountA = $t03557235687._1
1116- let wAmountB = $t03557235687._2
1131+ let $t03550935624 = calcWithdrawLPFromPoolVirt(Address(fromBase58String(pool)), pType, shareId, userStaked)
1132+ let wAmountA = $t03550935624._1
1133+ let wAmountB = $t03550935624._2
11171134 $Tuple2(nil, [prImpact, wAmountA, wAmountB])
11181135 }
11191136 else throw("Strict value is not equal to itself.")
11201137 }
11211138 else throw("Strict value is not equal to itself.")
11221139 }
11231140 else throw("Strict value is not equal to itself.")
11241141 }
11251142 else {
1126- let $t03574035855 = replenishByType(pType, pool, NO_LOAN_FEE, pmtA, AId, pmtB, BId, balA, balB, shareId)
1127- if (($t03574035855 == $t03574035855))
1143+ let $t03567735792 = replenishByType(pType, pool, NO_LOAN_FEE, pmtA, AId, pmtB, BId, balA, balB, shareId)
1144+ if (($t03567735792 == $t03567735792))
11281145 then {
1129- let axlyFee = $t03574035855._2
1130- let userStaked = $t03574035855._1
1131- let $t03586135955 = getPoolBalances(Address(fromBase58String(pool)), pType, AId, BId)
1132- if (($t03586135955 == $t03586135955))
1146+ let axlyFee = $t03567735792._2
1147+ let userStaked = $t03567735792._1
1148+ let $t03579835892 = getPoolBalances(Address(fromBase58String(pool)), pType, AId, BId)
1149+ if (($t03579835892 == $t03579835892))
11331150 then {
1134- let newBalB = $t03586135955._2
1135- let newBalA = $t03586135955._1
1151+ let newBalB = $t03579835892._2
1152+ let newBalA = $t03579835892._1
11361153 let prImpact = calcPriceImpact(balA, balB, newBalA, newBalB)
1137- let $t03602536140 = calcWithdrawLPFromPoolVirt(Address(fromBase58String(pool)), pType, shareId, userStaked)
1138- let wAmountA = $t03602536140._1
1139- let wAmountB = $t03602536140._2
1154+ let $t03596236077 = calcWithdrawLPFromPoolVirt(Address(fromBase58String(pool)), pType, shareId, userStaked)
1155+ let wAmountA = $t03596236077._1
1156+ let wAmountB = $t03596236077._2
11401157 $Tuple2((replenishEntries(pool, user, userStaked, axlyFee, newPosNum, shareId, pType, false) ++ getCursEntries(AId, BId, shareId, [toString(wAmountA), toString(wAmountB)])), [prImpact, wAmountA, wAmountB])
11411158 }
11421159 else throw("Strict value is not equal to itself.")
11431160 }
11441161 else throw("Strict value is not equal to itself.")
11451162 }
11461163 }
11471164 })
11481165
11491166
11501167
11511168 @Callable(i)
11521169 func withdraw (pool,posId) = valueOrElse(isActiveForUsers(), withdrawToUser(toString(i.caller), pool, toString(posId), false))
11531170
11541171
11551172
11561173 @Callable(i)
11571174 func createUpdateStopLoss (posId,poolId,assetId,price) = valueOrElse(isActiveForUsers(), {
11581175 let tokenOraclePrice = getIntegerValue(priceOracleAddr, (assetId + kPriceInOracle))
11591176 if (!(isDefined(getInteger(this, (((((poolId + "_") + toString(i.caller)) + "_") + toString(posId)) + kUserPosition)))))
11601177 then throw("There are no user position")
11611178 else if ((0 >= price))
11621179 then throw("Price must be greater than 0")
11631180 else if ((price > tokenOraclePrice))
11641181 then throw("Price must be less than current token price")
11651182 else [IntegerEntry((((((((toString(i.caller) + "_") + toString(posId)) + "_") + poolId) + "_") + assetId) + kUserStopLoss), price)]
11661183 })
11671184
11681185
11691186
11701187 @Callable(i)
11711188 func deleteStopLoss (posId,poolId,assetId) = valueOrElse(isActiveForUsers(), if (!(isDefined(getInteger(this, (((((((toString(i.caller) + "_") + toString(posId)) + "_") + poolId) + "_") + assetId) + kUserStopLoss)))))
11721189 then throw("No entry")
11731190 else [DeleteEntry((((((((toString(i.caller) + "_") + toString(posId)) + "_") + poolId) + "_") + assetId) + kUserStopLoss))])
11741191
11751192
11761193
11771194 @Callable(i)
11781195 func init (moneyBoxAddr,sfFarmingAddr,lendAddr,priceOracleAddr,keeperExContract,wxSwapContract,swopAssetId,wxAssetId,adminPubKey) = if ((toString(i.caller) != "3PG42y6FgT8zM3uX5tEDxJF5rqX8AKGJRAR"))
11791196 then throw("Only admin can call this function")
11801197 else if (isDefined(getString(kAdminCallPK)))
11811198 then throw("Already inited")
11821199 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)]
11831200
11841201
11851202
11861203 @Callable(i)
11871204 func createNewRequest (params) = valueOrElse(isSelfCall(i), {
11881205 let newRequestId = (valueOrElse(getInteger(this, kRequestIter), 0) + 1)
11891206 $Tuple2([StringEntry((toString(newRequestId) + kRequestId), params), IntegerEntry(kRequestIter, newRequestId)], newRequestId)
11901207 })
11911208
11921209
11931210
11941211 @Callable(i)
11951212 func replenishFromLand (requestId) = valueOrElse(isActive(), valueOrElse(isLandCall(i), {
1196- let $t03890939013 = parseRequest(requestId)
1197- let user = $t03890939013._1
1198- let pool = $t03890939013._2
1199- let pmtA = $t03890939013._3
1200- let AId = $t03890939013._4
1201- let pmtB = $t03890939013._5
1202- let BId = $t03890939013._6
1203- let balA = $t03890939013._7
1204- let balB = $t03890939013._8
1205- let shareId = $t03890939013._9
1206- let bwAsset = $t03890939013._10
1207- let bwAmount = $t03890939013._11
1213+ let $t03884638950 = parseRequest(requestId)
1214+ let user = $t03884638950._1
1215+ let pool = $t03884638950._2
1216+ let pmtA = $t03884638950._3
1217+ let AId = $t03884638950._4
1218+ let pmtB = $t03884638950._5
1219+ let BId = $t03884638950._6
1220+ let balA = $t03884638950._7
1221+ let balB = $t03884638950._8
1222+ let shareId = $t03884638950._9
1223+ let bwAsset = $t03884638950._10
1224+ let bwAmount = $t03884638950._11
12081225 if ((size(i.payments) != 1))
12091226 then throw("Wrong payment size")
12101227 else if (if ((assetIdToStr(i.payments[0].assetId) != bwAsset))
12111228 then true
12121229 else (i.payments[0].amount != bwAmount))
12131230 then throw("Wrong payment")
12141231 else {
1215- let $t03920339303 = if ((AId == bwAsset))
1232+ let $t03914039240 = if ((AId == bwAsset))
12161233 then $Tuple2((pmtA + bwAmount), pmtB)
12171234 else $Tuple2(pmtA, (pmtB + bwAmount))
1218- let pmtAllA = $t03920339303._1
1219- let pmtAllB = $t03920339303._2
1235+ let pmtAllA = $t03914039240._1
1236+ let pmtAllB = $t03914039240._2
12201237 let pType = valueOrErrorMessage(getString(this, (kPool + pool)), "Unknown pool")
1221- let $t03938539500 = replenishByType(pType, pool, LOAN_FEE, pmtAllA, AId, pmtAllB, BId, balA, balB, shareId)
1222- let userStaked = $t03938539500._1
1223- let axlyFee = $t03938539500._2
1238+ let $t03932239437 = replenishByType(pType, pool, LOAN_FEE, pmtAllA, AId, pmtAllB, BId, balA, balB, shareId)
1239+ let userStaked = $t03932239437._1
1240+ let axlyFee = $t03932239437._2
12241241 let posNum = getNewUserPositionNumber(user)
12251242 let borrowEntries = [IntegerEntry((((((pool + "_") + user) + "_") + toString(posNum)) + kUserBorrowAmount), bwAmount), StringEntry((((((pool + "_") + user) + "_") + toString(posNum)) + kUserBorrowAssetId), bwAsset)]
12261243 let entries = replenishEntries(pool, user, userStaked, axlyFee, posNum, shareId, pType, true)
1227- let $t03986039975 = calcWithdrawLPFromPoolVirt(Address(fromBase58String(pool)), pType, shareId, userStaked)
1228- let wAmountA = $t03986039975._1
1229- let wAmountB = $t03986039975._2
1244+ let $t03979739912 = calcWithdrawLPFromPoolVirt(Address(fromBase58String(pool)), pType, shareId, userStaked)
1245+ let wAmountA = $t03979739912._1
1246+ let wAmountB = $t03979739912._2
12301247 $Tuple2((((entries ++ getCursEntries(AId, BId, shareId, [toString(wAmountA), toString(wAmountB)])) ++ borrowEntries) :+ DeleteEntry((requestId + kRequestId))), userStaked)
12311248 }
12321249 }))
12331250
12341251
12351252
12361253 @Callable(i)
12371254 func liquidate (user,posId,liquidateAmount) = valueOrElse(isActive(), valueOrElse(isLandCall(i), {
12381255 let pool = valueOrErrorMessage(getString(this, (((user + "_") + posId) + kUserPositionPool)), "no position")
12391256 let pType = valueOrErrorMessage(getString(this, (kPool + pool)), "Pool is not inited")
1240- let $t04049640586 = getPoolData(Address(fromBase58String(pool)), pType)
1241- let AId = $t04049640586._1
1242- let BId = $t04049640586._2
1243- let balA = $t04049640586._3
1244- let balB = $t04049640586._4
1245- let shareId = $t04049640586._5
1257+ let $t04043340523 = getPoolData(Address(fromBase58String(pool)), pType)
1258+ let AId = $t04043340523._1
1259+ let BId = $t04043340523._2
1260+ let balA = $t04043340523._3
1261+ let balB = $t04043340523._4
1262+ let shareId = $t04043340523._5
12461263 let amount = unstakeLP(pool, pType, shareId, liquidateAmount)
12471264 let borrowAmount = getIntegerValue(this, (((((pool + "_") + user) + "_") + posId) + kUserBorrowAmount))
12481265 let borrowAsset = getStringValue(this, (((((pool + "_") + user) + "_") + posId) + kUserBorrowAssetId))
12491266 let userCanWithdraw = userCanWithdrawShareCalc(user, pool, posId, (borrowAmount > 0))
12501267 if ((liquidateAmount > userCanWithdraw))
12511268 then throw("You can't liquidate more than user have")
12521269 else if ((borrowAmount == 0))
12531270 then throw("You can't liquidate position without borrow")
12541271 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))]
12551272 }))
12561273
12571274
12581275
12591276 @Callable(i)
12601277 func stopLoss (user,posId,pool,assetId) = valueOrElse(isActive(), valueOrElse(isAdminCall(i), {
12611278 let tokenOraclePrice = getIntegerValue(priceOracleAddr, (assetId + kPriceInOracle))
12621279 if ((tokenOraclePrice > tokenOraclePrice))
12631280 then throw("Token price greater stop loss price")
12641281 else if (!(isDefined(getInteger(this, (((((((user + "_") + toString(posId)) + "_") + pool) + "_") + assetId) + kUserStopLoss)))))
12651282 then throw("No entry")
1266- else (withdrawToUser(user, pool, toString(posId), true) :+ DeleteEntry((((((((user + "_") + toString(posId)) + "_") + pool) + "_") + assetId) + kUserStopLoss)))
1283+ else {
1284+ let res = withdrawToUser(user, pool, toString(posId), true)
1285+ $Tuple2((res._1 :+ DeleteEntry((((((((user + "_") + toString(posId)) + "_") + pool) + "_") + assetId) + kUserStopLoss))), res._2)
1286+ }
12671287 }))
12681288
12691289
12701290
12711291 @Callable(i)
12721292 func capitalizeExKeeper (pool,tokenToId,amountToExchange,claim,amountsIn,addresses,assetsToReceive,estReceived,slippageTolerance,minReceived,options) = valueOrElse(isActive(), valueOrElse(isAdminCall(i), {
12731293 let pType = getStringValue(this, (kPool + pool))
12741294 let change = valueOrElse(getInteger(this, (pool + kPoolCapChange)), 0)
1275- let $t04268042781 = claimAndCheckAmntEx(pool, pType, claim, amountToExchange, change)
1276- let claimedAmount = $t04268042781._1
1277- let claimedAsset = $t04268042781._2
1295+ let $t04266142762 = claimAndCheckAmntEx(pool, pType, claim, amountToExchange, change)
1296+ let claimedAmount = $t04266142762._1
1297+ let claimedAsset = $t04266142762._2
12781298 let exchangedAmount = exchangeKeeper(tokenToId, amountToExchange, claimedAsset, amountsIn, addresses, assetsToReceive, estReceived, slippageTolerance, minReceived, options)
12791299 let newChange = ((claimedAmount + change) - amountToExchange)
12801300 let changeEntry = if ((newChange >= 0))
12811301 then [IntegerEntry((pool + kPoolCapChange), newChange)]
12821302 else nil
12831303 (capitalize(pool, pType, tokenToId, exchangedAmount) ++ changeEntry)
12841304 }))
12851305
12861306
12871307
12881308 @Callable(i)
12891309 func capitalizeExPuzzle (pool,tokenToId,amountToExchange,claim,routesStr,minToReceive,options) = valueOrElse(isActive(), valueOrElse(isAdminCall(i), {
12901310 let pType = getStringValue(this, (kPool + pool))
12911311 let change = valueOrElse(getInteger(this, (pool + kPoolCapChange)), 0)
1292- let $t04355643657 = claimAndCheckAmntEx(pool, pType, claim, amountToExchange, change)
1293- let claimedAmount = $t04355643657._1
1294- let claimedAsset = $t04355643657._2
1312+ let $t04353743638 = claimAndCheckAmntEx(pool, pType, claim, amountToExchange, change)
1313+ let claimedAmount = $t04353743638._1
1314+ let claimedAsset = $t04353743638._2
12951315 let exchangedAmount = exchangePuzzle(tokenToId, amountToExchange, claimedAsset, routesStr, minToReceive, options)
12961316 let newChange = ((claimedAmount + change) - amountToExchange)
12971317 let changeEntry = if ((newChange >= 0))
12981318 then [IntegerEntry((pool + kPoolCapChange), newChange)]
12991319 else nil
13001320 (capitalize(pool, pType, tokenToId, exchangedAmount) ++ changeEntry)
13011321 }))
13021322
13031323
13041324
13051325 @Callable(i)
13061326 func capitalizeExSwopFi (pool,tokenToId,amountToExchange,claim,exchangers,exchangersType,args1,args2,routingAssetsKeys,minAmountToReceive,options) = valueOrElse(isActive(), valueOrElse(isAdminCall(i), {
13071327 let pType = getStringValue(this, (kPool + pool))
13081328 let change = valueOrElse(getInteger(this, (pool + kPoolCapChange)), 0)
1309- let $t04449944600 = claimAndCheckAmntEx(pool, pType, claim, amountToExchange, change)
1310- let claimedAmount = $t04449944600._1
1311- let claimedAsset = $t04449944600._2
1329+ let $t04448044581 = claimAndCheckAmntEx(pool, pType, claim, amountToExchange, change)
1330+ let claimedAmount = $t04448044581._1
1331+ let claimedAsset = $t04448044581._2
13121332 let exchangedAmount = exchangeSwopFi(tokenToId, amountToExchange, claimedAsset, exchangers, exchangersType, args1, args2, routingAssetsKeys, minAmountToReceive, options)
13131333 let newChange = ((claimedAmount + change) - amountToExchange)
13141334 let changeEntry = if ((newChange >= 0))
13151335 then [IntegerEntry((pool + kPoolCapChange), newChange)]
13161336 else nil
13171337 (capitalize(pool, pType, tokenToId, exchangedAmount) ++ changeEntry)
13181338 }))
13191339
13201340
13211341
13221342 @Callable(i)
13231343 func initNewPool (type,poolAddr,inFeeNoLoan,inFeeLoan,capFeeNoLoan,capFeeWithLoan,stoplossFeeNoLoan,stoplossFeeWithLoan,canBorrow) = valueOrElse(isActive(), valueOrElse(isAdminCall(i), if (if ((type != SF_POOL))
13241344 then (type != WX_POOL)
13251345 else false)
13261346 then throw("Wrong type")
13271347 else {
1328- let $t04533145425 = getPoolData(Address(fromBase58String(poolAddr)), type)
1329- let aId = $t04533145425._1
1330- let bId = $t04533145425._2
1331- let aBal = $t04533145425._3
1332- let bBal = $t04533145425._4
1333- let shareId = $t04533145425._5
1348+ let $t04531245406 = getPoolData(Address(fromBase58String(poolAddr)), type)
1349+ let aId = $t04531245406._1
1350+ let bId = $t04531245406._2
1351+ let aBal = $t04531245406._3
1352+ let bBal = $t04531245406._4
1353+ let shareId = $t04531245406._5
13341354 if ((0 > inFeeNoLoan))
13351355 then throw("inFeeNoLoan must be greater than 0")
13361356 else if ((0 > inFeeLoan))
13371357 then throw("inFeeLoan must be greater than 0")
13381358 else if ((0 > capFeeNoLoan))
13391359 then throw("capFeeNoLoan must be greater than 0")
13401360 else if ((0 > capFeeWithLoan))
13411361 then throw("capFeeWithLoan must be greater than 0")
13421362 else if ((0 > stoplossFeeNoLoan))
13431363 then throw("stoplossFeeNoLoan must be greater than 0")
13441364 else if ((0 > stoplossFeeWithLoan))
13451365 then throw("stoplossFeeWithLoan must be greater than 0")
13461366 else [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)]
13471367 }))
13481368
13491369
13501370
13511371 @Callable(i)
13521372 func activate () = valueOrElse(isAdminCall(i), if (valueOrElse(getBoolean(this, kActive), true))
13531373 then throw("dApp already active")
13541374 else [BooleanEntry(kActive, true)])
13551375
13561376
13571377
13581378 @Callable(i)
13591379 func shutdown () = valueOrElse(isAdminCall(i), if (!(valueOrElse(getBoolean(this, kActive), true)))
13601380 then throw("dApp already shutdown")
13611381 else [BooleanEntry(kActive, false)])
13621382
13631383
13641384
13651385 @Callable(i)
13661386 func activateForUsers () = valueOrElse(isAdminCall(i), if (valueOrElse(getBoolean(this, kActiveUsers), true))
13671387 then throw("dApp already active for users")
1368- else [BooleanEntry(kActive, true)])
1388+ else [BooleanEntry(kActiveUsers, true)])
13691389
13701390
13711391
13721392 @Callable(i)
13731393 func shutdownForUsers () = valueOrElse(isAdminCall(i), if (!(valueOrElse(getBoolean(this, kActiveUsers), true)))
13741394 then throw("dApp already shutdown for users")
1375- else [BooleanEntry(kActive, false)])
1395+ else [BooleanEntry(kActiveUsers, false)])
13761396
13771397
13781398
13791399 @Callable(i)
13801400 func activateSF () = valueOrElse(isAdminCall(i), if (valueOrElse(getBoolean(this, (SF_POOL + kActiveSFWX)), true))
13811401 then throw("SWOPFI already active")
1382- else [BooleanEntry(kActive, true)])
1402+ else [BooleanEntry((SF_POOL + kActiveSFWX), true)])
13831403
13841404
13851405
13861406 @Callable(i)
13871407 func shutdownSF () = valueOrElse(isAdminCall(i), if (!(valueOrElse(getBoolean(this, (SF_POOL + kActiveSFWX)), true)))
13881408 then throw("SWOPFI already shutdown")
1389- else [BooleanEntry(kActive, false)])
1409+ else [BooleanEntry((SF_POOL + kActiveSFWX), false)])
13901410
13911411
13921412
13931413 @Callable(i)
13941414 func activateWX () = valueOrElse(isAdminCall(i), if (valueOrElse(getBoolean(this, (WX_POOL + kActiveSFWX)), true))
13951415 then throw("WX already active")
1396- else [BooleanEntry(kActive, true)])
1416+ else [BooleanEntry((WX_POOL + kActiveSFWX), true)])
13971417
13981418
13991419
14001420 @Callable(i)
14011421 func shutdownWX () = valueOrElse(isAdminCall(i), if (!(valueOrElse(getBoolean(this, (WX_POOL + kActiveSFWX)), true)))
14021422 then throw("WX already shutdown")
1403- else [BooleanEntry(kActive, false)])
1423+ else [BooleanEntry((WX_POOL + kActiveSFWX), false)])
14041424
14051425
14061426
14071427 @Callable(i)
14081428 func activatePool (pool) = valueOrElse(isAdminCall(i), if (!(isDefined(getString(this, (kPool + pool)))))
14091429 then throw("Unknown pool")
14101430 else if (valueOrElse(getBoolean(this, (pool + kPoolActive)), true))
14111431 then throw("Pool already active")
1412- else [BooleanEntry(kActive, true)])
1432+ else [BooleanEntry((pool + kPoolActive), true)])
14131433
14141434
14151435
14161436 @Callable(i)
14171437 func shutdownPool (pool) = valueOrElse(isAdminCall(i), if (!(isDefined(getString(this, (kPool + pool)))))
14181438 then throw("Unknown pool")
14191439 else if (!(valueOrElse(getBoolean(this, (pool + kPoolActive)), true)))
14201440 then throw("Pool already shutdown")
1421- else [BooleanEntry(kActive, false)])
1441+ else [BooleanEntry((pool + kPoolActive), false)])
14221442
14231443
14241444 @Verifier(tx)
14251445 func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
14261446

github/deemru/w8io/026f985 
214.00 ms