tx · 4UTFAedCYskK15BEPCtDcX6UhYyJtqYyvd5fe3NAzfPH

3MvRWw2FPEimFCTGtK7qY9uAJbM7XJ4ZfJS:  -0.54000000 Waves

2023.10.19 11:00 [2805184] smart account 3MvRWw2FPEimFCTGtK7qY9uAJbM7XJ4ZfJS > SELF 0.00000000 Waves

{ "type": 13, "id": "4UTFAedCYskK15BEPCtDcX6UhYyJtqYyvd5fe3NAzfPH", "fee": 54000000, "feeAssetId": null, "timestamp": 1697702449947, "version": 2, "chainId": 84, "sender": "3MvRWw2FPEimFCTGtK7qY9uAJbM7XJ4ZfJS", "senderPublicKey": "HP8sssVq1866F7CaPQJwgFrt6fsqhQjKwM84cL1wjD2a", "proofs": [ "4FctnhhHeUuooEF79MvFHhx2MPNoSKEzkRfgVjDfLtddJL58kkzqE9Lmo9RwBUhqPX9JqxNExcbnHN586P98iLM4" ], "script": "base64:BgKiAQgCEgMKAQgSAwoBCBIECgIICBIFCgMIGBgSBQoDCAEIEgQKAggBEgYKBAEICAESBQoDAQgIEg8KDQgICAgICAgICAgICAgSAwoBCBIDCgEIEgUKAwgIARIGCgQIAQgIEgcKBQgICAEEEgUKAwgEARIMCgoICAgBAQEBAQEEEgkKBwgBAQEBAQESABIAEgASABIAEgASABIAEgMKAQgSAwoBCIUBAAdTRl9QT09MAgJTRgAHV1hfUE9PTAICV1gABENQTU0CBGNwbW0ABEZMQVQCBGZsYXQAD0NBUF9GRUVfTk9fTE9BTgIJY2FwTm9Mb2FuAAxDQVBfRkVFX0xPQU4CB2NhcExvYW4AFFNUT1BMT1NTX0ZFRV9OT19MT0FOAg5zdG9wTG9zc05vTG9hbgANU1RPUExPU1NfTE9BTgIMc3RvcExvc3NMb2FuAAhMT0FOX0ZFRQIEbG9hbgALTk9fTE9BTl9GRUUCBm5vTG9hbgAGTk9fRkVFAgVub0ZlZQAGU0NBTEU4AIDC1y8AB1NDQUxFMTAAgMivoCUAB1NDQUxFMTYJALYCAQCAgIT+pt7hEQAKRkVFX1ND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25pbABnL5a2", "height": 2805184, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 4M2PVDWnzvVtmNfFftF8nMZfRvKBHCoeedabQqmhBELP Next: 71ZBgz93Z1nyQaB7fPCbPmjCrZzSAjAeDTumkK46pxSz Diff:
OldNewDifferences
645645
646646
647647 func calcWithdrawLPFromPoolVirt (poolAddr,pType,shareId,userCanWithdraw) = {
648- let $t01912020322 = if ((pType == SF_POOL))
648+ let $t01912020334 = if ((pType == SF_POOL))
649649 then {
650650 let inv = {
651651 let @ = invoke(poolAddr, "callFunction", ["withdrawREADONLY", [toString(userCanWithdraw)]], nil)
670670 else if ((pType == WX_POOL))
671671 then if ((valueOrElse(getString(this, (toString(poolAddr) + kPoolType)), "cpmm") == FLAT))
672672 then {
673- let inv = invoke(poolAddr, "poolEvaluateGetREADONLY", [shareId, userCanWithdraw], nil)
673+ let inv = invoke(poolAddr, "estimateGetOperationWrapperREADONLY", [shareId, userCanWithdraw], nil)
674674 if ((inv == inv))
675675 then {
676- let $t01958020077 = match inv {
676+ let $t01959220089 = match inv {
677677 case _ =>
678678 if (if (if ($isInstanceOf($match0._1, "Int"))
679679 then if ($isInstanceOf($match0._2, "Int"))
702702 }
703703 else throw("Couldn't cast types")
704704 }
705- let outAmAmt = $t01958020077._1
706- let outPrAmt = $t01958020077._2
707- let amBalance = $t01958020077._3
708- let prBalance = $t01958020077._4
709- let lpEmission = $t01958020077._5
710- let curPrice = $t01958020077._6
711- let poolStatus = $t01958020077._7
705+ let outAmAmt = $t01959220089._1
706+ let outPrAmt = $t01959220089._2
707+ let amBalance = $t01959220089._3
708+ let prBalance = $t01959220089._4
709+ let lpEmission = $t01959220089._5
710+ let curPrice = $t01959220089._6
711+ let poolStatus = $t01959220089._7
712712 $Tuple2(outAmAmt, outPrAmt)
713713 }
714714 else throw("Strict value is not equal to itself.")
725725 else throw("Strict value is not equal to itself.")
726726 }
727727 else unknownPoolType()
728- let amountA = $t01912020322._1
729- let amountB = $t01912020322._2
728+ let amountA = $t01912020334._1
729+ let amountB = $t01912020334._2
730730 $Tuple2(amountA, amountB)
731731 }
732732
748748 }
749749 else if ((pType == WX_POOL))
750750 then {
751- let $t02069020769 = getWXPoolData(addressFromStringValue(pool))
752- let aId = $t02069020769._1
753- let bId = $t02069020769._2
754- let aBal = $t02069020769._3
755- let bBal = $t02069020769._4
756- let lpId = $t02069020769._5
751+ let $t02070220781 = getWXPoolData(addressFromStringValue(pool))
752+ let aId = $t02070220781._1
753+ let bId = $t02070220781._2
754+ let aBal = $t02070220781._3
755+ let bBal = $t02070220781._4
756+ let lpId = $t02070220781._5
757757 let balBefore = accountBalance(WXID)
758758 if ((balBefore == balBefore))
759759 then {
775775 if ((lpBalanceBefore == lpBalanceBefore))
776776 then {
777777 let poolAddr = addressFromStringValue(pool)
778- let $t02136721783 = if (if ((pmtA > 0))
778+ let $t02137921795 = if (if ((pmtA > 0))
779779 then (pmtB > 0)
780780 else false)
781781 then {
782- let $t02143321549 = calcReplenishByTwoTokens(pType, poolAddr, pmtA, aId, pmtB, bId, balA, balB)
783- let pmtInA = $t02143321549._1
784- let pmtInB = $t02143321549._2
785- let change = $t02143321549._3
786- let changeId = $t02143321549._4
782+ let $t02144521561 = calcReplenishByTwoTokens(pType, poolAddr, pmtA, aId, pmtB, bId, balA, balB)
783+ let pmtInA = $t02144521561._1
784+ let pmtInB = $t02144521561._2
785+ let change = $t02144521561._3
786+ let changeId = $t02144521561._4
787787 let inv = replenishTwoTokensByType(poolAddr, pType, pmtInA, aId, pmtInB, bId)
788788 if ((inv == inv))
789789 then $Tuple2(change, changeId)
794794 else if ((pmtB > 0))
795795 then $Tuple2(pmtB, bId)
796796 else throw("pmts must be > 0")
797- let change = $t02136721783._1
798- let changeId = $t02136721783._2
797+ let change = $t02137921795._1
798+ let changeId = $t02137921795._2
799799 let inv = if ((change > 0))
800800 then replenishOneTokenByType(poolAddr, pType, change, changeId)
801801 else nil
823823 func replenishEntries (pool,user,stakedAmount,axlyFeeAmount,posNum,shareId,type,withLoan) = {
824824 let totalAmount = getPoolTotalShare(pool)
825825 let totalAmountLoan = getPoolTotalShareWithLoan(pool)
826- let $t02264022878 = if (withLoan)
826+ let $t02265222890 = if (withLoan)
827827 then $Tuple2(getIntegerValue(this, (pool + kPoolInterestLoan)), (totalAmountLoan + stakedAmount))
828828 else $Tuple2(getIntegerValue(this, (pool + kPoolInterestNoLoan)), totalAmountLoan)
829- let curPoolInterest = $t02264022878._1
830- let totalStakedWithLoan = $t02264022878._2
829+ let curPoolInterest = $t02265222890._1
830+ let totalStakedWithLoan = $t02265222890._2
831831 [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))]
832832 }
833833
908908
909909 func capitalize (pool,pType,tokenId,tokenAmount) = {
910910 let poolAddr = Address(fromBase58String(pool))
911- let $t02498525051 = getPoolData(poolAddr, pType)
912- let AId = $t02498525051._1
913- let BId = $t02498525051._2
914- let balA = $t02498525051._3
915- let balB = $t02498525051._4
916- let shareId = $t02498525051._5
911+ let $t02499725063 = getPoolData(poolAddr, pType)
912+ let AId = $t02499725063._1
913+ let BId = $t02499725063._2
914+ let balA = $t02499725063._3
915+ let balB = $t02499725063._4
916+ let shareId = $t02499725063._5
917917 if (if ((tokenId != AId))
918918 then (tokenId != BId)
919919 else false)
930930 let axlyFeeLoan = fraction(tokensForFeeLoan, getAxlyFee(pool, CAP_FEE_LOAN), FEE_SCALE6)
931931 let axlyFeeNoLoan = fraction(tokensForFeeNoLoan, getAxlyFee(pool, CAP_FEE_NO_LOAN), FEE_SCALE6)
932932 let axlyFee = (axlyFeeLoan + axlyFeeNoLoan)
933- let $t02579625896 = if ((tokenId == AId))
933+ let $t02580825908 = if ((tokenId == AId))
934934 then $Tuple2((tokenAmount - axlyFee), 0)
935935 else $Tuple2(0, (tokenAmount - axlyFee))
936- let pmtA = $t02579625896._1
937- let pmtB = $t02579625896._2
938- let $t02589926003 = replenishByType(pType, pool, NO_FEE, pmtA, AId, pmtB, BId, balA, balB, shareId)
939- let stakedAmount = $t02589926003._1
940- let nf = $t02589926003._2
936+ let pmtA = $t02580825908._1
937+ let pmtB = $t02580825908._2
938+ let $t02591126015 = replenishByType(pType, pool, NO_FEE, pmtA, AId, pmtB, BId, balA, balB, shareId)
939+ let stakedAmount = $t02591126015._1
940+ let nf = $t02591126015._2
941941 let curPoolInterestLoan = valueOrElse(getInteger(this, (pool + kPoolInterestLoan)), 0)
942942 let curPoolInterestNoLoan = valueOrElse(getInteger(this, (pool + kPoolInterestNoLoan)), 0)
943943 let stakedLoan = fraction(stakedAmount, loanPercent, SCALE8)
983983 let userAddr = Address(fromBase58String(user))
984984 let poolAddr = Address(fromBase58String(pool))
985985 let pType = valueOrErrorMessage(getString(this, (kPool + pool)), "Unknown pool")
986- let $t02853228604 = getPoolData(poolAddr, pType)
987- let idAStr = $t02853228604._1
988- let idBStr = $t02853228604._2
989- let balA = $t02853228604._3
990- let balB = $t02853228604._4
991- let shareId = $t02853228604._5
992- let $t02860728674 = $Tuple2(assetIdFromStr(idAStr), assetIdFromStr(idBStr))
993- let idA = $t02860728674._1
994- let idB = $t02860728674._2
986+ let $t02854428616 = getPoolData(poolAddr, pType)
987+ let idAStr = $t02854428616._1
988+ let idBStr = $t02854428616._2
989+ let balA = $t02854428616._3
990+ let balB = $t02854428616._4
991+ let shareId = $t02854428616._5
992+ let $t02861928686 = $Tuple2(assetIdFromStr(idAStr), assetIdFromStr(idBStr))
993+ let idA = $t02861928686._1
994+ let idB = $t02861928686._2
995995 let stopLossFee = calcStopLossFee(pool, isBorrowed, stopLoss, userCanWithdraw)
996996 let cBalABefore = accountBalance(idA)
997997 if ((cBalABefore == cBalABefore))
10221022 let cBalBAfter = accountBalance(idB)
10231023 if ((cBalBAfter == cBalBAfter))
10241024 then {
1025- let $t02936929458 = $Tuple2((cBalAAfter - cBalABefore), (cBalBAfter - cBalBBefore))
1026- let tokensAmountA = $t02936929458._1
1027- let tokensAmountB = $t02936929458._2
1028- let $t02946130697 = if (isBorrowed)
1025+ let $t02938129470 = $Tuple2((cBalAAfter - cBalABefore), (cBalBAfter - cBalBBefore))
1026+ let tokensAmountA = $t02938129470._1
1027+ let tokensAmountB = $t02938129470._2
1028+ let $t02947330709 = if (isBorrowed)
10291029 then {
10301030 let borrowAsset = getStringValue(this, (((((pool + "_") + user) + "_") + posId) + kUserBorrowAssetId))
10311031 let debt = {
10741074 else throw("Strict value is not equal to itself.")
10751075 }
10761076 else $Tuple2(tokensAmountA, tokensAmountB)
1077- let toUserA = $t02946130697._1
1078- let toUserB = $t02946130697._2
1077+ let toUserA = $t02947330709._1
1078+ let toUserB = $t02947330709._2
10791079 let poolTotalLoanEntries = if (isBorrowed)
10801080 then [IntegerEntry((pool + kPoolTotalLoan), ((poolTotalShareLoan - userCanWithdraw) - stopLossFee))]
10811081 else nil
11211121 let decPrA = pow(10, 0, getAssetDecimals(aId), 0, 0, DOWN)
11221122 let decPrB = pow(10, 0, getAssetDecimals(bId), 0, 0, DOWN)
11231123 let paydInDollar = (fraction(dPriceA, pmtA, decPrA) + fraction(dPriceB, pmtB, decPrB))
1124- let $t03267932776 = if ((borrowId == aId))
1124+ let $t03269132788 = if ((borrowId == aId))
11251125 then $Tuple2(dPriceA, decPrA)
11261126 else $Tuple2(dPriceB, decPrB)
1127- let borrowPrice = $t03267932776._1
1128- let borrowDecPr = $t03267932776._2
1127+ let borrowPrice = $t03269132788._1
1128+ let borrowDecPr = $t03269132788._2
11291129 fraction(fraction(paydInDollar, (leverage - 100), 100), borrowDecPr, borrowPrice)
11301130 }
11311131
11541154
11551155
11561156 func claimAndCheckAmnt (pool,pType,claim,amount,change) = {
1157- let $t03377634038 = if (claim)
1157+ let $t03378834050 = if (claim)
11581158 then claimFarmed(pType, pool)
11591159 else {
11601160 let claimedAsset = if ((pType == SF_POOL))
11641164 else unknownPoolType()
11651165 $Tuple2(amount, claimedAsset)
11661166 }
1167- if (($t03377634038 == $t03377634038))
1167+ if (($t03378834050 == $t03378834050))
11681168 then {
1169- let claimAsset = $t03377634038._2
1170- let claimAmount = $t03377634038._1
1169+ let claimAsset = $t03378834050._2
1170+ let claimAmount = $t03378834050._1
11711171 let bal = accountBalance(claimAsset)
11721172 if ((bal == bal))
11731173 then if ((amount > bal))
11831183 func getPoolInfoREADONLY (pool) = {
11841184 let poolAddr = addressFromStringValue(pool)
11851185 let pType = valueOrErrorMessage(getString(this, (kPool + pool)), "Pool is not inited")
1186- let $t03440534495 = getPoolData(Address(fromBase58String(pool)), pType)
1187- let AId = $t03440534495._1
1188- let BId = $t03440534495._2
1189- let balA = $t03440534495._3
1190- let balB = $t03440534495._4
1191- let shareId = $t03440534495._5
1186+ let $t03441734507 = getPoolData(Address(fromBase58String(pool)), pType)
1187+ let AId = $t03441734507._1
1188+ let BId = $t03441734507._2
1189+ let balA = $t03441734507._3
1190+ let balB = $t03441734507._4
1191+ let shareId = $t03441734507._5
11921192 let shareSupply = getShareSupply(poolAddr, pType, shareId)
11931193 $Tuple2(nil, $Tuple6(AId, BId, shareId, balA, balB, shareSupply))
11941194 }
12161216 @Callable(i)
12171217 func getUserPositionREADONLY (user,pools,posNum) = {
12181218 func userPos (a,pool) = {
1219- let $t03536835438 = a
1220- let wAmountsA = $t03536835438._1
1221- let wAmountsB = $t03536835438._2
1222- let debts = $t03536835438._3
1223- let eqWAmountsA = $t03536835438._4
1224- let eqWAmountsB = $t03536835438._5
1225- let index = $t03536835438._6
1219+ let $t03538035450 = a
1220+ let wAmountsA = $t03538035450._1
1221+ let wAmountsB = $t03538035450._2
1222+ let debts = $t03538035450._3
1223+ let eqWAmountsA = $t03538035450._4
1224+ let eqWAmountsB = $t03538035450._5
1225+ let index = $t03538035450._6
12261226 if (!(isDefined(getInteger(this, (((((pool + "_") + user) + "_") + posNum[index]) + kUserPosition)))))
12271227 then $Tuple6((wAmountsA :+ 0), (wAmountsB :+ 0), (debts :+ 0), (eqWAmountsA :+ 0), (eqWAmountsB :+ 0), (index + 1))
12281228 else {
12291229 let pType = valueOrErrorMessage(getString(this, (kPool + pool)), "Pool is not inited")
1230- let $t03571735807 = getPoolData(Address(fromBase58String(pool)), pType)
1231- let AId = $t03571735807._1
1232- let BId = $t03571735807._2
1233- let balA = $t03571735807._3
1234- let balB = $t03571735807._4
1235- let shareId = $t03571735807._5
1230+ let $t03572935819 = getPoolData(Address(fromBase58String(pool)), pType)
1231+ let AId = $t03572935819._1
1232+ let BId = $t03572935819._2
1233+ let balA = $t03572935819._3
1234+ let balB = $t03572935819._4
1235+ let shareId = $t03572935819._5
12361236 let borrowAmount = valueOrElse(getInteger(this, (((((pool + "_") + user) + "_") + posNum[index]) + kUserBorrowAmount)), 0)
12371237 let userCanWithdraw = userCanWithdrawShareCalc(user, pool, posNum[index], (borrowAmount > 0))
1238- let $t03602336143 = calcWithdrawLPFromPoolVirt(Address(fromBase58String(pool)), pType, shareId, userCanWithdraw)
1239- let wAmountA = $t03602336143._1
1240- let wAmountB = $t03602336143._2
1238+ let $t03603536155 = calcWithdrawLPFromPoolVirt(Address(fromBase58String(pool)), pType, shareId, userCanWithdraw)
1239+ let wAmountA = $t03603536155._1
1240+ let wAmountB = $t03603536155._2
12411241 if ((borrowAmount > 0))
12421242 then {
12431243 let borrowAsset = getStringValue(this, (((((pool + "_") + user) + "_") + posNum[index]) + kUserBorrowAssetId))
12711271 }
12721272 else unknownPoolType()
12731273 else 0
1274- let $t03705537274 = if ((borrowAsset == AId))
1274+ let $t03706737286 = if ((borrowAsset == AId))
12751275 then $Tuple2(((wAmountA + amountToGetEx) - debt), (wAmountB - amountToPay))
12761276 else $Tuple2((wAmountA - amountToPay), ((wAmountB + amountToGetEx) - debt))
1277- let eqWAmountA = $t03705537274._1
1278- let eqWAmountB = $t03705537274._2
1277+ let eqWAmountA = $t03706737286._1
1278+ let eqWAmountB = $t03706737286._2
12791279 $Tuple6((wAmountsA :+ wAmountA), (wAmountsB :+ wAmountB), (debts :+ debt), (eqWAmountsA :+ eqWAmountA), (eqWAmountsB :+ eqWAmountB), (index + 1))
12801280 }
12811281 else throw("Strict value is not equal to itself.")
12841284 }
12851285 }
12861286
1287- let $t03752937640 = {
1287+ let $t03754137652 = {
12881288 let $l = pools
12891289 let $s = size($l)
12901290 let $acc0 = $Tuple6(nil, nil, nil, nil, nil, 0)
12981298
12991299 $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)
13001300 }
1301- let wAmountsA = $t03752937640._1
1302- let wAmountsB = $t03752937640._2
1303- let debts = $t03752937640._3
1304- let eqWAmountsA = $t03752937640._4
1305- let eqWAmountsB = $t03752937640._5
1301+ let wAmountsA = $t03754137652._1
1302+ let wAmountsB = $t03754137652._2
1303+ let debts = $t03754137652._3
1304+ let eqWAmountsA = $t03754137652._4
1305+ let eqWAmountsB = $t03754137652._5
13061306 $Tuple2(nil, $Tuple5(wAmountsA, wAmountsB, debts, eqWAmountsA, eqWAmountsB))
13071307 }
13081308
13221322 else false)
13231323 then throw("You can't borrow in this pool")
13241324 else {
1325- let $t03823838328 = getPoolData(Address(fromBase58String(pool)), pType)
1326- let AId = $t03823838328._1
1327- let BId = $t03823838328._2
1328- let balA = $t03823838328._3
1329- let balB = $t03823838328._4
1330- let shareId = $t03823838328._5
1325+ let $t03825038340 = getPoolData(Address(fromBase58String(pool)), pType)
1326+ let AId = $t03825038340._1
1327+ let BId = $t03825038340._2
1328+ let balA = $t03825038340._3
1329+ let balB = $t03825038340._4
1330+ let shareId = $t03825038340._5
13311331 if (if ((borrowId != AId))
13321332 then (borrowId != BId)
13331333 else false)
13341334 then throw("Wrong borrow asset")
13351335 else {
1336- let $t03840938468 = parseReplenishPmts(i.payments, AId, BId)
1337- let pmtA = $t03840938468._1
1338- let pmtB = $t03840938468._2
1336+ let $t03842138480 = parseReplenishPmts(i.payments, AId, BId)
1337+ let pmtA = $t03842138480._1
1338+ let pmtB = $t03842138480._2
13391339 let user = toString(i.caller)
13401340 let newPosNum = getNewUserPositionNumber(user)
13411341 if ((leverage > 100))
13551355 if ((inv == inv))
13561356 then {
13571357 let userStaked = getIntegerValue(this, (((((pool + "_") + user) + "_") + toString(newPosNum)) + kUserPosition))
1358- let $t03945739551 = getPoolBalances(Address(fromBase58String(pool)), pType, AId, BId)
1359- if (($t03945739551 == $t03945739551))
1358+ let $t03946939563 = getPoolBalances(Address(fromBase58String(pool)), pType, AId, BId)
1359+ if (($t03946939563 == $t03946939563))
13601360 then {
1361- let newBalB = $t03945739551._2
1362- let newBalA = $t03945739551._1
1361+ let newBalB = $t03946939563._2
1362+ let newBalA = $t03946939563._1
13631363 let prImpact = calcPriceImpact(balA, balB, newBalA, newBalB)
1364- let $t03962139736 = calcWithdrawLPFromPoolVirt(Address(fromBase58String(pool)), pType, shareId, userStaked)
1365- let wAmountA = $t03962139736._1
1366- let wAmountB = $t03962139736._2
1364+ let $t03963339748 = calcWithdrawLPFromPoolVirt(Address(fromBase58String(pool)), pType, shareId, userStaked)
1365+ let wAmountA = $t03963339748._1
1366+ let wAmountB = $t03963339748._2
13671367 $Tuple2(nil, [prImpact, wAmountA, wAmountB])
13681368 }
13691369 else throw("Strict value is not equal to itself.")
13731373 else throw("Strict value is not equal to itself.")
13741374 }
13751375 else {
1376- let $t03978939904 = replenishByType(pType, pool, NO_LOAN_FEE, pmtA, AId, pmtB, BId, balA, balB, shareId)
1377- if (($t03978939904 == $t03978939904))
1376+ let $t03980139916 = replenishByType(pType, pool, NO_LOAN_FEE, pmtA, AId, pmtB, BId, balA, balB, shareId)
1377+ if (($t03980139916 == $t03980139916))
13781378 then {
1379- let axlyFee = $t03978939904._2
1380- let userStaked = $t03978939904._1
1381- let $t03991040004 = getPoolBalances(Address(fromBase58String(pool)), pType, AId, BId)
1382- if (($t03991040004 == $t03991040004))
1379+ let axlyFee = $t03980139916._2
1380+ let userStaked = $t03980139916._1
1381+ let $t03992240016 = getPoolBalances(Address(fromBase58String(pool)), pType, AId, BId)
1382+ if (($t03992240016 == $t03992240016))
13831383 then {
1384- let newBalB = $t03991040004._2
1385- let newBalA = $t03991040004._1
1384+ let newBalB = $t03992240016._2
1385+ let newBalA = $t03992240016._1
13861386 let prImpact = calcPriceImpact(balA, balB, newBalA, newBalB)
1387- let $t04007440189 = calcWithdrawLPFromPoolVirt(Address(fromBase58String(pool)), pType, shareId, userStaked)
1388- let wAmountA = $t04007440189._1
1389- let wAmountB = $t04007440189._2
1387+ let $t04008640201 = calcWithdrawLPFromPoolVirt(Address(fromBase58String(pool)), pType, shareId, userStaked)
1388+ let wAmountA = $t04008640201._1
1389+ let wAmountB = $t04008640201._2
13901390 $Tuple2((replenishEntries(pool, user, userStaked, axlyFee, newPosNum, shareId, pType, false) ++ getCursEntries(AId, BId, shareId, [toString(wAmountA), toString(wAmountB)])), [prImpact, wAmountA, wAmountB])
13911391 }
13921392 else throw("Strict value is not equal to itself.")
14791479
14801480 @Callable(i)
14811481 func replenishFromLand (requestId) = valueOrElse(isActive(), valueOrElse(isLandCall(i), {
1482- let $t04502845132 = parseRequest(requestId)
1483- let user = $t04502845132._1
1484- let pool = $t04502845132._2
1485- let pmtA = $t04502845132._3
1486- let AId = $t04502845132._4
1487- let pmtB = $t04502845132._5
1488- let BId = $t04502845132._6
1489- let balA = $t04502845132._7
1490- let balB = $t04502845132._8
1491- let shareId = $t04502845132._9
1492- let bwAsset = $t04502845132._10
1493- let bwAmount = $t04502845132._11
1482+ let $t04504045144 = parseRequest(requestId)
1483+ let user = $t04504045144._1
1484+ let pool = $t04504045144._2
1485+ let pmtA = $t04504045144._3
1486+ let AId = $t04504045144._4
1487+ let pmtB = $t04504045144._5
1488+ let BId = $t04504045144._6
1489+ let balA = $t04504045144._7
1490+ let balB = $t04504045144._8
1491+ let shareId = $t04504045144._9
1492+ let bwAsset = $t04504045144._10
1493+ let bwAmount = $t04504045144._11
14941494 if ((size(i.payments) != 1))
14951495 then throw("Wrong payment size")
14961496 else if (if ((assetIdToStr(i.payments[0].assetId) != bwAsset))
14981498 else (i.payments[0].amount != bwAmount))
14991499 then throw("Wrong payment")
15001500 else {
1501- let $t04532245422 = if ((AId == bwAsset))
1501+ let $t04533445434 = if ((AId == bwAsset))
15021502 then $Tuple2((pmtA + bwAmount), pmtB)
15031503 else $Tuple2(pmtA, (pmtB + bwAmount))
1504- let pmtAllA = $t04532245422._1
1505- let pmtAllB = $t04532245422._2
1504+ let pmtAllA = $t04533445434._1
1505+ let pmtAllB = $t04533445434._2
15061506 let pType = valueOrErrorMessage(getString(this, (kPool + pool)), "Unknown pool")
1507- let $t04550445619 = replenishByType(pType, pool, LOAN_FEE, pmtAllA, AId, pmtAllB, BId, balA, balB, shareId)
1508- let userStaked = $t04550445619._1
1509- let axlyFee = $t04550445619._2
1507+ let $t04551645631 = replenishByType(pType, pool, LOAN_FEE, pmtAllA, AId, pmtAllB, BId, balA, balB, shareId)
1508+ let userStaked = $t04551645631._1
1509+ let axlyFee = $t04551645631._2
15101510 let posNum = getNewUserPositionNumber(user)
15111511 let borrowEntries = [IntegerEntry((((((pool + "_") + user) + "_") + toString(posNum)) + kUserBorrowAmount), bwAmount), StringEntry((((((pool + "_") + user) + "_") + toString(posNum)) + kUserBorrowAssetId), bwAsset)]
15121512 let entries = replenishEntries(pool, user, userStaked, axlyFee, posNum, shareId, pType, true)
1513- let $t04597946094 = calcWithdrawLPFromPoolVirt(Address(fromBase58String(pool)), pType, shareId, userStaked)
1514- let wAmountA = $t04597946094._1
1515- let wAmountB = $t04597946094._2
1513+ let $t04599146106 = calcWithdrawLPFromPoolVirt(Address(fromBase58String(pool)), pType, shareId, userStaked)
1514+ let wAmountA = $t04599146106._1
1515+ let wAmountB = $t04599146106._2
15161516 $Tuple2((((entries ++ getCursEntries(AId, BId, shareId, [toString(wAmountA), toString(wAmountB)])) ++ borrowEntries) :+ DeleteEntry((requestId + kRequestId))), userStaked)
15171517 }
15181518 }))
15231523 func liquidate (user,posId,liquidateAmount) = valueOrElse(isActive(), valueOrElse(isLandCall(i), {
15241524 let pool = valueOrErrorMessage(getString(this, (((user + "_") + posId) + kUserPositionPool)), "no position")
15251525 let pType = valueOrErrorMessage(getString(this, (kPool + pool)), "Pool is not inited")
1526- let $t04661546705 = getPoolData(Address(fromBase58String(pool)), pType)
1527- let AId = $t04661546705._1
1528- let BId = $t04661546705._2
1529- let balA = $t04661546705._3
1530- let balB = $t04661546705._4
1531- let shareId = $t04661546705._5
1526+ let $t04662746717 = getPoolData(Address(fromBase58String(pool)), pType)
1527+ let AId = $t04662746717._1
1528+ let BId = $t04662746717._2
1529+ let balA = $t04662746717._3
1530+ let balB = $t04662746717._4
1531+ let shareId = $t04662746717._5
15321532 let amount = unstakeLP(pool, pType, shareId, liquidateAmount)
15331533 let borrowAmount = getIntegerValue(this, (((((pool + "_") + user) + "_") + posId) + kUserBorrowAmount))
15341534 let borrowAsset = getStringValue(this, (((((pool + "_") + user) + "_") + posId) + kUserBorrowAssetId))
15601560 func capitalizeEx (pool,route,tokenToId,amountToExchange,claim) = valueOrElse(isActive(), valueOrElse(isOperatorCall(i), {
15611561 let pType = getStringValue(this, (kPool + pool))
15621562 let change = valueOrElse(getInteger(this, (pool + kPoolCapChange)), 0)
1563- let $t04867548777 = claimAndCheckAmnt(pool, pType, claim, amountToExchange, change)
1564- if (($t04867548777 == $t04867548777))
1563+ let $t04868748789 = claimAndCheckAmnt(pool, pType, claim, amountToExchange, change)
1564+ if (($t04868748789 == $t04868748789))
15651565 then {
1566- let claimedAsset = $t04867548777._2
1567- let claimedAmount = $t04867548777._1
1566+ let claimedAsset = $t04868748789._2
1567+ let claimedAmount = $t04868748789._1
15681568 let rArgs = split(route, "__")
15691569 let exchangedAmount = if ((rArgs[0] == "directSwopfiCPMM"))
15701570 then directSwopfiCPMM(rArgs, tokenToId)
15891589 @Callable(i)
15901590 func capitalizeNoEx (pool,claim,amountFromBalance) = valueOrElse(isActive(), valueOrElse(isOperatorCall(i), {
15911591 let pType = getStringValue(this, (kPool + pool))
1592- let $t04946149559 = claimAndCheckAmnt(pool, pType, claim, amountFromBalance, 0)
1593- if (($t04946149559 == $t04946149559))
1592+ let $t04947349571 = claimAndCheckAmnt(pool, pType, claim, amountFromBalance, 0)
1593+ if (($t04947349571 == $t04947349571))
15941594 then {
1595- let claimedAsset = $t04946149559._2
1596- let claimedAmount = $t04946149559._1
1595+ let claimedAsset = $t04947349571._2
1596+ let claimedAmount = $t04947349571._1
15971597 capitalize(pool, pType, assetIdToStr(claimedAsset), (claimedAmount + amountFromBalance))
15981598 }
15991599 else throw("Strict value is not equal to itself.")
16111611 else false)
16121612 then throw("Wrong pool type")
16131613 else {
1614- let $t05008050174 = getPoolData(Address(fromBase58String(poolAddr)), type)
1615- let aId = $t05008050174._1
1616- let bId = $t05008050174._2
1617- let aBal = $t05008050174._3
1618- let bBal = $t05008050174._4
1619- let shareId = $t05008050174._5
1614+ let $t05009250186 = getPoolData(Address(fromBase58String(poolAddr)), type)
1615+ let aId = $t05009250186._1
1616+ let bId = $t05009250186._2
1617+ let aBal = $t05009250186._3
1618+ let bBal = $t05009250186._4
1619+ let shareId = $t05009250186._5
16201620 if ((0 > inFeeNoLoan))
16211621 then throw("inFeeNoLoan must be greater than 0")
16221622 else if ((0 > inFeeLoan))
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 CPMM = "cpmm"
99
1010 let FLAT = "flat"
1111
1212 let CAP_FEE_NO_LOAN = "capNoLoan"
1313
1414 let CAP_FEE_LOAN = "capLoan"
1515
1616 let STOPLOSS_FEE_NO_LOAN = "stopLossNoLoan"
1717
1818 let STOPLOSS_LOAN = "stopLossLoan"
1919
2020 let LOAN_FEE = "loan"
2121
2222 let NO_LOAN_FEE = "noLoan"
2323
2424 let NO_FEE = "noFee"
2525
2626 let SCALE8 = 100000000
2727
2828 let SCALE10 = 10000000000
2929
3030 let SCALE16 = toBigInt(10000000000000000)
3131
3232 let FEE_SCALE6 = 1000000
3333
3434 let kSFPoolAAssetBalance = "A_asset_balance"
3535
3636 let kSFPoolBAssetBalance = "B_asset_balance"
3737
3838 let kSFPoolAAssetId = "A_asset_id"
3939
4040 let kSFPoolBAssetId = "B_asset_id"
4141
4242 let kSFPoolShareId = "share_asset_id"
4343
4444 let kSFPoolShareSupply = "share_asset_supply"
4545
4646 let kSFPoolFee = "commission"
4747
4848 let kUserPosition = "_userPosition"
4949
5050 let kUserPositionPool = "_userPositionPool"
5151
5252 let kUserBorrowAmount = "_userPositionBorrowAmount"
5353
5454 let kUserBorrowAssetId = "_userPositionBorrowAssetId"
5555
5656 let kUserPositionNum = "_userPositionNumber"
5757
5858 let kUserPositionInterest = "_userPositionInterest"
5959
6060 let kPoolTotal = "_poolTotal"
6161
6262 let kPoolTotalLoan = "_poolTotalLoan"
6363
6464 let kPoolInterestLoan = "_poolInterestLoan"
6565
6666 let kPoolInterestNoLoan = "_poolInterestNoLoan"
6767
6868 let kPoolCanBorrow = "_poolCanBorrow"
6969
7070 let kAxlyInFeeWithoutLoan = "_axlyFeeNoLoan"
7171
7272 let kAxlyInFeeWithLoan = "_axlyFeeWithLoan"
7373
7474 let kAxlyNoLoanCapFee = "_axlyFeeCapNoLoan"
7575
7676 let kAxlyWithLoanCapFee = "_axlyFeeCapWithLoan"
7777
7878 let kAxlyStopLossNoLoanFee = "_axlyFeeStoplossWithLoan"
7979
8080 let kAxlyStopLossLoanFee = "_axlyFeeStoplossNoLoan"
8181
8282 let kRequestId = "_request_id"
8383
8484 let kRequestIter = "requests_iter"
8585
8686 let kPool = "pool_"
8787
8888 let kPoolType = "_poolType"
8989
9090 let kSharePool = "_poolShareId"
9191
9292 let kPoolCapChange = "_poolCapChange"
9393
9494 let kTokenLastPrice = "last_price"
9595
9696 let kPriceInOracle = "_twap5B"
9797
9898 let kActive = "active"
9999
100100 let kActiveUsers = "activeUsers"
101101
102102 let kActiveSFWX = "_active"
103103
104104 let kPoolActive = "_activePool"
105105
106106 let kUserStopLoss = "_stopLoss"
107107
108108 let kFallbackExchangeSwopfi = "_fallbackExchangeSwopfi"
109109
110110 let kMoneyBox = "axly_money_box"
111111
112112 let kSFFarmingAddr = "swopfi_farming_addr"
113113
114114 let kLendService = "lend_service_addr"
115115
116116 let kOperatorCallPK = "admin_call_pub_key"
117117
118118 let kPriceOracle = "price_oracle"
119119
120120 let kExContract = "exchange_contract"
121121
122122 let kWxSwapContract = "wx_swap_contract"
123123
124124 let kSwopId = "swop_id"
125125
126126 let kWxId = "wx_id"
127127
128128 let kGroup1Admin1PK = "group1_admin1_pub_key"
129129
130130 let kGroup1Admin2PK = "group1_admin2_pub_key"
131131
132132 let kGroup2Admin1PK = "group2_admin1_pub_key"
133133
134134 let kGroup2Admin2PK = "group2_admin2_pub_key"
135135
136136 let moneyBox = Address(fromBase58String(valueOrErrorMessage(getString(this, kMoneyBox), "No axly moneyBox address")))
137137
138138 let exContract = Address(fromBase58String(valueOrErrorMessage(getString(this, kExContract), "No exchange contract address")))
139139
140140 let priceOracleAddr = Address(fromBase58String(valueOrErrorMessage(getString(this, kPriceOracle), "No price oracle address")))
141141
142142 let wxSwapContract = Address(fromBase58String(valueOrErrorMessage(getString(this, kWxSwapContract), "No wx swap address")))
143143
144144 let SWOPID = fromBase58String(valueOrErrorMessage(getString(this, kSwopId), "No swop id"))
145145
146146 let WXID = fromBase58String(valueOrErrorMessage(getString(this, kWxId), "No wx id"))
147147
148148 let group1Admin1PK = fromBase58String(valueOrErrorMessage(getString(this, kGroup1Admin1PK), "Can't get kGroup1Admin1PK"))
149149
150150 let group1Admin2PK = fromBase58String(valueOrErrorMessage(getString(this, kGroup1Admin2PK), "Can't get kGroup1Admin2PK"))
151151
152152 let group2Admin1PK = fromBase58String(valueOrErrorMessage(getString(this, kGroup2Admin1PK), "Can't get kGroup2Admin1PK"))
153153
154154 let group2Admin2PK = fromBase58String(valueOrErrorMessage(getString(this, kGroup2Admin2PK), "Can't get kGroup2Admin1PK"))
155155
156156 let operatorPK = fromBase58String(valueOrErrorMessage(getString(this, kOperatorCallPK), "Can't get operatorPK"))
157157
158158 func unknownPoolType () = throw("Wrong pool type")
159159
160160
161161 func getLendSrvAddr () = Address(fromBase58String(valueOrErrorMessage(getString(this, kLendService), "Can't get lend service addr")))
162162
163163
164164 func isOperatorCall (i) = if ((i.callerPublicKey == operatorPK))
165165 then unit
166166 else throw("Only operator can call this function")
167167
168168
169169 func isAdminCall (i) = if (if ((i.callerPublicKey == group1Admin1PK))
170170 then true
171171 else (i.callerPublicKey == group1Admin2PK))
172172 then unit
173173 else throw("Only admin group1 can call this function")
174174
175175
176176 func isSelfCall (i) = if ((i.caller == this))
177177 then unit
178178 else throw("Only contract itself can call this function")
179179
180180
181181 func isLandCall (i) = if ((i.caller == getLendSrvAddr()))
182182 then unit
183183 else throw("Only land contract can call this function")
184184
185185
186186 func isActive () = if ((valueOrElse(getBoolean(this, kActive), true) == true))
187187 then unit
188188 else throw("DApp is inactive at this moment")
189189
190190
191191 func isActiveForUsers () = if (if (valueOrElse(getBoolean(this, kActive), true))
192192 then (valueOrElse(getBoolean(this, kActiveUsers), true) == true)
193193 else false)
194194 then unit
195195 else throw("DApp is inactive for users at this moment")
196196
197197
198198 func isPoolActive (pool,type) = {
199199 let WXSFActive = valueOrElse(getBoolean(this, (type + kActiveSFWX)), true)
200200 let poolActive = valueOrElse(getBoolean(this, (pool + kPoolActive)), true)
201201 if (if (WXSFActive)
202202 then poolActive
203203 else false)
204204 then true
205205 else false
206206 }
207207
208208
209209 func accountBalance (assetId) = match assetId {
210210 case id: ByteVector =>
211211 assetBalance(this, id)
212212 case waves: Unit =>
213213 wavesBalance(this).available
214214 case _ =>
215215 throw("Match error")
216216 }
217217
218218
219219 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"))
220220
221221
222222 func getWXPoolBalances (poolAddr,aId,bId) = $Tuple2({
223223 let @ = invoke(poolAddr, "getAccBalanceWrapperREADONLY", [aId], nil)
224224 if ($isInstanceOf(@, "Int"))
225225 then @
226226 else throw(($getType(@) + " couldn't be cast to Int"))
227227 }, {
228228 let @ = invoke(poolAddr, "getAccBalanceWrapperREADONLY", [bId], nil)
229229 if ($isInstanceOf(@, "Int"))
230230 then @
231231 else throw(($getType(@) + " couldn't be cast to Int"))
232232 })
233233
234234
235235 func getPoolBalances (poolAddr,type,aId,bId) = if ((type == SF_POOL))
236236 then getSFPoolBalances(poolAddr)
237237 else if ((type == WX_POOL))
238238 then getWXPoolBalances(poolAddr, aId, bId)
239239 else unknownPoolType()
240240
241241
242242 func getSFPoolData (poolAddr) = {
243243 let $t080898138 = getSFPoolBalances(poolAddr)
244244 if (($t080898138 == $t080898138))
245245 then {
246246 let balB = $t080898138._2
247247 let balA = $t080898138._1
248248 $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"))
249249 }
250250 else throw("Strict value is not equal to itself.")
251251 }
252252
253253
254254 func getWXPoolData (poolAddr) = {
255255 let cfg = {
256256 let @ = invoke(poolAddr, "getPoolConfigWrapperREADONLY", nil, nil)
257257 if ($isInstanceOf(@, "List[Any]"))
258258 then @
259259 else throw(($getType(@) + " couldn't be cast to List[Any]"))
260260 }
261261 if ((cfg == cfg))
262262 then {
263263 let aId = valueOrErrorMessage({
264264 let @ = cfg[4]
265265 if ($isInstanceOf(@, "String"))
266266 then @
267267 else unit
268268 }, "Can't get pool A asset id")
269269 let bId = valueOrErrorMessage({
270270 let @ = cfg[5]
271271 if ($isInstanceOf(@, "String"))
272272 then @
273273 else unit
274274 }, "Can't get pool B asset id")
275275 let shareId = valueOrErrorMessage({
276276 let @ = cfg[3]
277277 if ($isInstanceOf(@, "String"))
278278 then @
279279 else unit
280280 }, "Can't get pool LP asset id")
281281 let $t088358894 = getWXPoolBalances(poolAddr, aId, bId)
282282 if (($t088358894 == $t088358894))
283283 then {
284284 let balB = $t088358894._2
285285 let balA = $t088358894._1
286286 $Tuple5(aId, bId, balA, balB, shareId)
287287 }
288288 else throw("Strict value is not equal to itself.")
289289 }
290290 else throw("Strict value is not equal to itself.")
291291 }
292292
293293
294294 func getPoolData (poolAddr,type) = if ((type == SF_POOL))
295295 then getSFPoolData(poolAddr)
296296 else if ((type == WX_POOL))
297297 then getWXPoolData(poolAddr)
298298 else unknownPoolType()
299299
300300
301301 func getShareSupply (poolAddr,type,shareId) = if ((type == SF_POOL))
302302 then valueOrErrorMessage(getInteger(poolAddr, kSFPoolShareSupply), "Can't get share asset supply")
303303 else if ((type == WX_POOL))
304304 then valueOrErrorMessage(assetInfo(fromBase58String(shareId)), "Wrong ShareId").quantity
305305 else unknownPoolType()
306306
307307
308308 func getPoolTotalShare (pool) = valueOrElse(getInteger(this, (pool + kPoolTotal)), 0)
309309
310310
311311 func getPoolTotalShareWithLoan (pool) = valueOrElse(getInteger(this, (pool + kPoolTotalLoan)), 0)
312312
313313
314314 func getNewUserPositionNumber (user) = (valueOrElse(getInteger(this, (user + kUserPositionNum)), 0) + 1)
315315
316316
317317 func getAxlyFee (pool,feeType) = if ((feeType == CAP_FEE_LOAN))
318318 then getIntegerValue(this, (pool + kAxlyWithLoanCapFee))
319319 else if ((feeType == CAP_FEE_NO_LOAN))
320320 then getIntegerValue(this, (pool + kAxlyNoLoanCapFee))
321321 else if ((feeType == LOAN_FEE))
322322 then getIntegerValue(this, (pool + kAxlyInFeeWithLoan))
323323 else if ((feeType == NO_LOAN_FEE))
324324 then getIntegerValue(this, (pool + kAxlyInFeeWithoutLoan))
325325 else if ((feeType == NO_FEE))
326326 then 0
327327 else throw("Wrong fee type")
328328
329329
330330 func getSFFarmingAddr () = Address(fromBase58String(valueOrErrorMessage(getString(this, kSFFarmingAddr), "Can't get swopfi farming addr")))
331331
332332
333333 func getWXFarmingAddr (poolAddr) = {
334334 let fContract = Address(fromBase58String(valueOrErrorMessage(getString(poolAddr, "%s__factoryContract"), "Can't get WX factory contract addr")))
335335 let factroyCfg = split(valueOrErrorMessage(getString(fContract, "%s__factoryConfig"), "Can't get WX factory cfg"), "__")
336336 Address(fromBase58String(factroyCfg[1]))
337337 }
338338
339339
340340 func assetIdToStr (assetId) = match assetId {
341341 case id: ByteVector =>
342342 toBase58String(id)
343343 case waves: Unit =>
344344 "WAVES"
345345 case _ =>
346346 throw("Not Asset id")
347347 }
348348
349349
350350 func assetIdFromStr (assetId) = if ((assetId == "WAVES"))
351351 then unit
352352 else fromBase58String(assetId)
353353
354354
355355 func getAssetDecimals (assetId) = if ((assetId == "WAVES"))
356356 then 8
357357 else match assetInfo(fromBase58String(assetId)) {
358358 case asset: Asset =>
359359 asset.decimals
360360 case _ =>
361361 throw("Can't find asset")
362362 }
363363
364364
365365 func getAssetPrecition (assetId) = pow(10, 0, getAssetDecimals(assetId), 0, 0, DOWN)
366366
367367
368368 func getAssetsPrice (assetIds) = {
369369 func getPrices (a,assetId) = {
370370 let assetPrice = valueOrElse(getInteger(priceOracleAddr, (assetId + kPriceInOracle)), -1)
371371 (a :+ assetPrice)
372372 }
373373
374374 let $l = assetIds
375375 let $s = size($l)
376376 let $acc0 = nil
377377 func $f0_1 ($a,$i) = if (($i >= $s))
378378 then $a
379379 else getPrices($a, $l[$i])
380380
381381 func $f0_2 ($a,$i) = if (($i >= $s))
382382 then $a
383383 else throw("List size exceeds 50")
384384
385385 $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)
386386 }
387387
388388
389389 func getSharePrice (shareId) = {
390390 let pool = valueOrErrorMessage(getString(this, (shareId + kSharePool)), "Can't find pool addr by share id")
391391 let poolAddr = Address(fromBase58String(pool))
392392 let pType = valueOrErrorMessage(getString(this, (kPool + pool)), "Pool is not inited")
393393 let $t01188311948 = getPoolData(poolAddr, pType)
394394 let aId = $t01188311948._1
395395 let bId = $t01188311948._2
396396 let aBalance = $t01188311948._3
397397 let bBalance = $t01188311948._4
398398 let prices = getAssetsPrice([aId, bId])
399399 let dPriceA = prices[0]
400400 let dPriceB = prices[1]
401401 if (if ((0 > dPriceA))
402402 then true
403403 else (0 > dPriceB))
404404 then -1
405405 else {
406406 let shareSupply = getShareSupply(poolAddr, pType, shareId)
407407 let APrecision = pow(10, 0, getAssetDecimals(aId), 0, 0, DOWN)
408408 let BPrecision = pow(10, 0, getAssetDecimals(bId), 0, 0, DOWN)
409409 let sharePrecision = pow(10, 0, getAssetDecimals(shareId), 0, 0, DOWN)
410410 let sum = (fraction(aBalance, dPriceA, APrecision) + fraction(bBalance, dPriceB, BPrecision))
411411 fraction(sum, sharePrecision, shareSupply)
412412 }
413413 }
414414
415415
416416 func getSharePrices (shareIds) = {
417417 func getPrices (a,shareId) = (a :+ getSharePrice(shareId))
418418
419419 let $l = shareIds
420420 let $s = size($l)
421421 let $acc0 = nil
422422 func $f0_1 ($a,$i) = if (($i >= $s))
423423 then $a
424424 else getPrices($a, $l[$i])
425425
426426 func $f0_2 ($a,$i) = if (($i >= $s))
427427 then $a
428428 else throw("List size exceeds 20")
429429
430430 $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)
431431 }
432432
433433
434434 func getCursEntries (aId,bId,shareId,wAmounts) = {
435435 let assetsPrices = getAssetsPrice([aId, bId])
436436 let sharePrice = getSharePrice(shareId)
437437 let prices = ([toString(assetsPrices[0]), toString(assetsPrices[1]), toString(sharePrice)] ++ wAmounts)
438438 [StringEntry(kTokenLastPrice, makeString(prices, ","))]
439439 }
440440
441441
442442 func calcReplenishByTwoTokens (pType,poolAddr,pmtA,aId,pmtB,bId,balA,balB) = if ((pType == SF_POOL))
443443 then {
444444 let repl = {
445445 let @ = invoke(poolAddr, "callFunction", ["calcLPReplenishTwoTokensREADONLY", [toString(pmtA), toString(pmtB)]], nil)
446446 if ($isInstanceOf(@, "List[Any]"))
447447 then @
448448 else throw(($getType(@) + " couldn't be cast to List[Any]"))
449449 }
450450 if ((repl == repl))
451451 then $Tuple5({
452452 let @ = repl[3]
453453 if ($isInstanceOf(@, "Int"))
454454 then @
455455 else throw(($getType(@) + " couldn't be cast to Int"))
456456 }, {
457457 let @ = repl[4]
458458 if ($isInstanceOf(@, "Int"))
459459 then @
460460 else throw(($getType(@) + " couldn't be cast to Int"))
461461 }, {
462462 let @ = repl[1]
463463 if ($isInstanceOf(@, "Int"))
464464 then @
465465 else throw(($getType(@) + " couldn't be cast to Int"))
466466 }, assetIdToStr(repl[2]), {
467467 let @ = repl[0]
468468 if ($isInstanceOf(@, "Int"))
469469 then @
470470 else throw(($getType(@) + " couldn't be cast to Int"))
471471 })
472472 else throw("Strict value is not equal to itself.")
473473 }
474474 else if ((pType == WX_POOL))
475475 then {
476476 let $t01349213742 = $Tuple2(split({
477477 let @ = invoke(poolAddr, "evaluatePutByAmountAssetREADONLY", [pmtA], nil)
478478 if ($isInstanceOf(@, "String"))
479479 then @
480480 else throw(($getType(@) + " couldn't be cast to String"))
481481 }, "__"), split({
482482 let @ = invoke(poolAddr, "evaluatePutByPriceAssetREADONLY", [pmtB], nil)
483483 if ($isInstanceOf(@, "String"))
484484 then @
485485 else throw(($getType(@) + " couldn't be cast to String"))
486486 }, "__"))
487487 if (($t01349213742 == $t01349213742))
488488 then {
489489 let evalPutInB = $t01349213742._2
490490 let evalPutInA = $t01349213742._1
491491 let lpInA = parseIntValue(evalPutInA[1])
492492 let lpInB = parseIntValue(evalPutInB[1])
493493 if ((lpInB > lpInA))
494494 then {
495495 let pmt = parseIntValue(evalPutInA[8])
496496 $Tuple5(pmtA, pmt, (pmtB - pmt), bId, lpInB)
497497 }
498498 else {
499499 let pmt = parseIntValue(evalPutInB[7])
500500 $Tuple5(pmt, pmtB, (pmtA - pmt), aId, lpInA)
501501 }
502502 }
503503 else throw("Strict value is not equal to itself.")
504504 }
505505 else unknownPoolType()
506506
507507
508508 func replenishTwoTokensByType (poolAddr,pType,pmtA,aId,pmtB,bId) = {
509509 let payments = [AttachedPayment(assetIdFromStr(aId), pmtA), AttachedPayment(assetIdFromStr(bId), pmtB)]
510510 if ((pType == SF_POOL))
511511 then invoke(poolAddr, "callFunction", ["replenishWithTwoTokens", ["false", "0"]], payments)
512512 else if ((pType == WX_POOL))
513513 then invoke(poolAddr, "put", [1000000, false], payments)
514514 else unknownPoolType()
515515 }
516516
517517
518518 func replenishOneTokenByType (poolAddr,pType,pmt,pmtId) = {
519519 let payments = [AttachedPayment(assetIdFromStr(pmtId), pmt)]
520520 if ((pType == SF_POOL))
521521 then invoke(poolAddr, "callFunction", ["replenishWithOneToken", ["0", "false", "0"]], payments)
522522 else if ((pType == WX_POOL))
523523 then {
524524 let fc = if ((valueOrElse(getString(this, (toString(poolAddr) + kPoolType)), "cpmm") == FLAT))
525525 then "putOneTknV2"
526526 else "putOneTkn"
527527 invoke(poolAddr, fc, [0, false], payments)
528528 }
529529 else unknownPoolType()
530530 }
531531
532532
533533 func stakeLP (pool,pType,shareId,amount) = {
534534 let payments = [AttachedPayment(fromBase58String(shareId), amount)]
535535 if ((pType == SF_POOL))
536536 then invoke(getSFFarmingAddr(), "lockShareTokens", [pool, 0], payments)
537537 else if ((pType == WX_POOL))
538538 then invoke(getWXFarmingAddr(addressFromStringValue(pool)), "stake", nil, payments)
539539 else unknownPoolType()
540540 }
541541
542542
543543 func unstakeLP (pool,pType,shareId,amount) = {
544544 let $t01552015870 = if ((pType == SF_POOL))
545545 then $Tuple3(getSFFarmingAddr(), "withdrawShareTokens", [pool, amount])
546546 else if ((pType == WX_POOL))
547547 then $Tuple3(getWXFarmingAddr(Address(fromBase58String(pool))), "unstake", [shareId, amount])
548548 else unknownPoolType()
549549 let farmAddr = $t01552015870._1
550550 let fName = $t01552015870._2
551551 let params = $t01552015870._3
552552 let inv = invoke(farmAddr, fName, params, nil)
553553 if ((inv == inv))
554554 then amount
555555 else throw("Strict value is not equal to itself.")
556556 }
557557
558558
559559 func calcAmountToPaySF (pool,assetIdA,assetIdB,balA,balB,amountTokenToGet,assetTokenToGet) = {
560560 let poolAddr = Address(fromBase58String(pool))
561561 let feeScale6 = 1000000
562562 let fee = getIntegerValue(poolAddr, kSFPoolFee)
563563 let amntGetNoFee = fraction(amountTokenToGet, feeScale6, (feeScale6 - fee), CEILING)
564564 let $t01629216598 = if ((assetTokenToGet == assetIdA))
565565 then {
566566 let amountToPay = fraction(amntGetNoFee, balB, (balA - amntGetNoFee), CEILING)
567567 $Tuple2(amountToPay, assetIdB)
568568 }
569569 else {
570570 let amountToPay = fraction(amntGetNoFee, balA, (balB - amntGetNoFee), CEILING)
571571 $Tuple2(amountToPay, assetIdA)
572572 }
573573 let amountToPay = $t01629216598._1
574574 let assetToPay = $t01629216598._2
575575 $Tuple2(assetToPay, amountToPay)
576576 }
577577
578578
579579 func getWXSwapFees (pool) = {
580580 let poolAddr = addressFromStringValue(pool)
581581 let fContract = addressFromStringValue(valueOrErrorMessage(getString(poolAddr, "%s__factoryContract"), "Can't get WX factory contract addr"))
582582 let poolFeeDefault = value(getInteger(wxSwapContract, "%s__poolFee"))
583583 let protocolFeeDefault = value(getInteger(wxSwapContract, "%s__protocolFee"))
584584 match invoke(fContract, "getSwapFeeREADONLY", [toString(poolAddr)], nil) {
585585 case fees: (Int, Int) =>
586586 $Tuple2(fees._1, fees._2)
587587 case _ =>
588588 $Tuple2(poolFeeDefault, protocolFeeDefault)
589589 }
590590 }
591591
592592
593593 func calcAmountToPayWX (pool,assetIdA,assetIdB,balA,balB,amountTokenToGet,assetTokenToGet) = {
594594 let $t01733817377 = getWXSwapFees(pool)
595595 let pFee = $t01733817377._1
596596 let prFee = $t01733817377._2
597597 let feeScale = toBigInt(100000000)
598598 let $t01741717725 = if ((assetTokenToGet == assetIdA))
599599 then {
600600 let amountToPay = fraction(amountTokenToGet, balB, (balA - amountTokenToGet))
601601 $Tuple2(amountToPay, assetIdB)
602602 }
603603 else {
604604 let amountToPay = fraction(amountTokenToGet, balA, (balB - amountTokenToGet))
605605 $Tuple2(amountToPay, assetIdA)
606606 }
607607 let amountToPay = $t01741717725._1
608608 let assetToPay = $t01741717725._2
609609 let amountToPayWithFee = toInt(fraction(toBigInt(amountToPay), feeScale, (feeScale - toBigInt((prFee + pFee))), CEILING))
610610 $Tuple2(assetToPay, amountToPayWithFee)
611611 }
612612
613613
614614 func exchangeDirectly (pType,pool,assetIdA,assetIdB,balA,balB,amountTokenToGet,assetTokenToGet) = {
615615 let poolFB = valueOrElse(getString(this, (pool + kFallbackExchangeSwopfi)), "")
616616 if (if ((pType == SF_POOL))
617617 then true
618618 else (poolFB != ""))
619619 then {
620620 let $t01816618378 = if ((poolFB == ""))
621621 then $Tuple3(balA, balB, pool)
622622 else {
623623 let $t01827218345 = getSFPoolBalances(addressFromStringValue(poolFB))
624624 let sfBalA = $t01827218345._1
625625 let sfBalB = $t01827218345._2
626626 $Tuple3(sfBalA, sfBalB, poolFB)
627627 }
628628 let pBalA = $t01816618378._1
629629 let pBalB = $t01816618378._2
630630 let exPool = $t01816618378._3
631631 let $t01838318509 = calcAmountToPaySF(exPool, assetIdA, assetIdB, pBalA, pBalB, amountTokenToGet, assetTokenToGet)
632632 let assetToPay = $t01838318509._1
633633 let amountToPay = $t01838318509._2
634634 invoke(addressFromStringValue(exPool), "callFunction", ["exchange", [toString(amountTokenToGet)]], [AttachedPayment(assetIdFromStr(assetToPay), amountToPay)])
635635 }
636636 else if ((pType == WX_POOL))
637637 then {
638638 let $t01871118833 = calcAmountToPayWX(pool, assetIdA, assetIdB, balA, balB, amountTokenToGet, assetTokenToGet)
639639 let assetToPay = $t01871118833._1
640640 let amountToPay = $t01871118833._2
641641 invoke(wxSwapContract, "swap", [amountTokenToGet, assetTokenToGet, toString(this)], [AttachedPayment(assetIdFromStr(assetToPay), amountToPay)])
642642 }
643643 else unknownPoolType()
644644 }
645645
646646
647647 func calcWithdrawLPFromPoolVirt (poolAddr,pType,shareId,userCanWithdraw) = {
648- let $t01912020322 = if ((pType == SF_POOL))
648+ let $t01912020334 = if ((pType == SF_POOL))
649649 then {
650650 let inv = {
651651 let @ = invoke(poolAddr, "callFunction", ["withdrawREADONLY", [toString(userCanWithdraw)]], nil)
652652 if ($isInstanceOf(@, "List[Any]"))
653653 then @
654654 else throw(($getType(@) + " couldn't be cast to List[Any]"))
655655 }
656656 if ((inv == inv))
657657 then $Tuple2({
658658 let @ = inv[0]
659659 if ($isInstanceOf(@, "Int"))
660660 then @
661661 else throw(($getType(@) + " couldn't be cast to Int"))
662662 }, {
663663 let @ = inv[1]
664664 if ($isInstanceOf(@, "Int"))
665665 then @
666666 else throw(($getType(@) + " couldn't be cast to Int"))
667667 })
668668 else throw("Strict value is not equal to itself.")
669669 }
670670 else if ((pType == WX_POOL))
671671 then if ((valueOrElse(getString(this, (toString(poolAddr) + kPoolType)), "cpmm") == FLAT))
672672 then {
673- let inv = invoke(poolAddr, "poolEvaluateGetREADONLY", [shareId, userCanWithdraw], nil)
673+ let inv = invoke(poolAddr, "estimateGetOperationWrapperREADONLY", [shareId, userCanWithdraw], nil)
674674 if ((inv == inv))
675675 then {
676- let $t01958020077 = match inv {
676+ let $t01959220089 = match inv {
677677 case _ =>
678678 if (if (if ($isInstanceOf($match0._1, "Int"))
679679 then if ($isInstanceOf($match0._2, "Int"))
680680 then if ($isInstanceOf($match0._5, "Int"))
681681 then if ($isInstanceOf($match0._6, "Int"))
682682 then if ($isInstanceOf($match0._7, "Int"))
683683 then if ($isInstanceOf($match0._8, "String"))
684684 then $isInstanceOf($match0._9, "String")
685685 else false
686686 else false
687687 else false
688688 else false
689689 else false
690690 else false)
691691 then (size($match0) == 10)
692692 else false)
693693 then {
694694 let outAmAmt = $match0._1
695695 let outPrAmt = $match0._2
696696 let amBalance = $match0._5
697697 let prBalance = $match0._6
698698 let lpEmission = $match0._7
699699 let curPrice = $match0._8
700700 let poolStatus = $match0._9
701701 $Tuple7(outAmAmt, outPrAmt, amBalance, prBalance, lpEmission, curPrice, poolStatus)
702702 }
703703 else throw("Couldn't cast types")
704704 }
705- let outAmAmt = $t01958020077._1
706- let outPrAmt = $t01958020077._2
707- let amBalance = $t01958020077._3
708- let prBalance = $t01958020077._4
709- let lpEmission = $t01958020077._5
710- let curPrice = $t01958020077._6
711- let poolStatus = $t01958020077._7
705+ let outAmAmt = $t01959220089._1
706+ let outPrAmt = $t01959220089._2
707+ let amBalance = $t01959220089._3
708+ let prBalance = $t01959220089._4
709+ let lpEmission = $t01959220089._5
710+ let curPrice = $t01959220089._6
711+ let poolStatus = $t01959220089._7
712712 $Tuple2(outAmAmt, outPrAmt)
713713 }
714714 else throw("Strict value is not equal to itself.")
715715 }
716716 else {
717717 let inv = split({
718718 let @ = invoke(poolAddr, "evaluateGetREADONLY", [shareId, userCanWithdraw], nil)
719719 if ($isInstanceOf(@, "String"))
720720 then @
721721 else throw(($getType(@) + " couldn't be cast to String"))
722722 }, "__")
723723 if ((inv == inv))
724724 then $Tuple2(parseIntValue(inv[1]), parseIntValue(inv[2]))
725725 else throw("Strict value is not equal to itself.")
726726 }
727727 else unknownPoolType()
728- let amountA = $t01912020322._1
729- let amountB = $t01912020322._2
728+ let amountA = $t01912020334._1
729+ let amountB = $t01912020334._2
730730 $Tuple2(amountA, amountB)
731731 }
732732
733733
734734 func claimFarmed (pType,pool) = if ((pType == SF_POOL))
735735 then {
736736 let balBefore = accountBalance(SWOPID)
737737 if ((balBefore == balBefore))
738738 then {
739739 let inv = invoke(getSFFarmingAddr(), "claim", [pool], nil)
740740 if ((inv == inv))
741741 then {
742742 let balAfter = accountBalance(SWOPID)
743743 $Tuple2((balAfter - balBefore), SWOPID)
744744 }
745745 else throw("Strict value is not equal to itself.")
746746 }
747747 else throw("Strict value is not equal to itself.")
748748 }
749749 else if ((pType == WX_POOL))
750750 then {
751- let $t02069020769 = getWXPoolData(addressFromStringValue(pool))
752- let aId = $t02069020769._1
753- let bId = $t02069020769._2
754- let aBal = $t02069020769._3
755- let bBal = $t02069020769._4
756- let lpId = $t02069020769._5
751+ let $t02070220781 = getWXPoolData(addressFromStringValue(pool))
752+ let aId = $t02070220781._1
753+ let bId = $t02070220781._2
754+ let aBal = $t02070220781._3
755+ let bBal = $t02070220781._4
756+ let lpId = $t02070220781._5
757757 let balBefore = accountBalance(WXID)
758758 if ((balBefore == balBefore))
759759 then {
760760 let inv = invoke(getWXFarmingAddr(addressFromStringValue(pool)), "claimWx", [lpId], nil)
761761 if ((inv == inv))
762762 then {
763763 let balAfter = accountBalance(WXID)
764764 $Tuple2((balAfter - balBefore), WXID)
765765 }
766766 else throw("Strict value is not equal to itself.")
767767 }
768768 else throw("Strict value is not equal to itself.")
769769 }
770770 else unknownPoolType()
771771
772772
773773 func replenishByType (pType,pool,feeType,pmtA,aId,pmtB,bId,balA,balB,LPId) = {
774774 let lpBalanceBefore = accountBalance(fromBase58String(LPId))
775775 if ((lpBalanceBefore == lpBalanceBefore))
776776 then {
777777 let poolAddr = addressFromStringValue(pool)
778- let $t02136721783 = if (if ((pmtA > 0))
778+ let $t02137921795 = if (if ((pmtA > 0))
779779 then (pmtB > 0)
780780 else false)
781781 then {
782- let $t02143321549 = calcReplenishByTwoTokens(pType, poolAddr, pmtA, aId, pmtB, bId, balA, balB)
783- let pmtInA = $t02143321549._1
784- let pmtInB = $t02143321549._2
785- let change = $t02143321549._3
786- let changeId = $t02143321549._4
782+ let $t02144521561 = calcReplenishByTwoTokens(pType, poolAddr, pmtA, aId, pmtB, bId, balA, balB)
783+ let pmtInA = $t02144521561._1
784+ let pmtInB = $t02144521561._2
785+ let change = $t02144521561._3
786+ let changeId = $t02144521561._4
787787 let inv = replenishTwoTokensByType(poolAddr, pType, pmtInA, aId, pmtInB, bId)
788788 if ((inv == inv))
789789 then $Tuple2(change, changeId)
790790 else throw("Strict value is not equal to itself.")
791791 }
792792 else if ((pmtA > 0))
793793 then $Tuple2(pmtA, aId)
794794 else if ((pmtB > 0))
795795 then $Tuple2(pmtB, bId)
796796 else throw("pmts must be > 0")
797- let change = $t02136721783._1
798- let changeId = $t02136721783._2
797+ let change = $t02137921795._1
798+ let changeId = $t02137921795._2
799799 let inv = if ((change > 0))
800800 then replenishOneTokenByType(poolAddr, pType, change, changeId)
801801 else nil
802802 if ((inv == inv))
803803 then {
804804 let lpBalanceAfter = accountBalance(fromBase58String(LPId))
805805 let totalStaked = (lpBalanceAfter - lpBalanceBefore)
806806 let axlyFeeAmount = fraction(totalStaked, getAxlyFee(pool, feeType), FEE_SCALE6)
807807 let userShareForStake = (totalStaked - axlyFeeAmount)
808808 if ((0 >= userShareForStake))
809809 then throw("amount of staked sharetokens must be > 0")
810810 else {
811811 let invLP = stakeLP(pool, pType, LPId, userShareForStake)
812812 if ((invLP == invLP))
813813 then $Tuple2(userShareForStake, axlyFeeAmount)
814814 else throw("Strict value is not equal to itself.")
815815 }
816816 }
817817 else throw("Strict value is not equal to itself.")
818818 }
819819 else throw("Strict value is not equal to itself.")
820820 }
821821
822822
823823 func replenishEntries (pool,user,stakedAmount,axlyFeeAmount,posNum,shareId,type,withLoan) = {
824824 let totalAmount = getPoolTotalShare(pool)
825825 let totalAmountLoan = getPoolTotalShareWithLoan(pool)
826- let $t02264022878 = if (withLoan)
826+ let $t02265222890 = if (withLoan)
827827 then $Tuple2(getIntegerValue(this, (pool + kPoolInterestLoan)), (totalAmountLoan + stakedAmount))
828828 else $Tuple2(getIntegerValue(this, (pool + kPoolInterestNoLoan)), totalAmountLoan)
829- let curPoolInterest = $t02264022878._1
830- let totalStakedWithLoan = $t02264022878._2
829+ let curPoolInterest = $t02265222890._1
830+ let totalStakedWithLoan = $t02265222890._2
831831 [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))]
832832 }
833833
834834
835835 func listToInt (a,item) = (a :+ parseIntValue(item))
836836
837837
838838 func directSwopfiCPMM (rArgs,tokenTo) = {
839839 let dApp = addressFromStringValue(rArgs[1])
840840 let pmtP = split(rArgs[2], "|")
841841 let tokenBalanceBefore = accountBalance(assetIdFromStr(tokenTo))
842842 if ((tokenBalanceBefore == tokenBalanceBefore))
843843 then {
844844 let pmt = [AttachedPayment(assetIdFromStr(pmtP[0]), parseIntValue(pmtP[1]))]
845845 let minToRecive = rArgs[3]
846846 let inv = invoke(dApp, "callFunction", ["exchange", [minToRecive]], pmt)
847847 if ((inv == inv))
848848 then (accountBalance(assetIdFromStr(tokenTo)) - tokenBalanceBefore)
849849 else throw("Strict value is not equal to itself.")
850850 }
851851 else throw("Strict value is not equal to itself.")
852852 }
853853
854854
855855 func directRoutingSwopfi (rArgs,tokenTo) = {
856856 let dApp = addressFromStringValue(rArgs[1])
857857 let tokenBalanceBefore = accountBalance(assetIdFromStr(tokenTo))
858858 if ((tokenBalanceBefore == tokenBalanceBefore))
859859 then {
860860 let pmt = {
861861 let pmtP = split(rArgs[2], "|")
862862 [AttachedPayment(fromBase58String(pmtP[0]), parseIntValue(pmtP[1]))]
863863 }
864864 let args = {
865865 let eArgs = split(rArgs[3], "|")
866866 let exchangers = split(eArgs[0], ",")
867867 let exchangersType = split(eArgs[1], ",")
868868 let args1 = {
869869 let $l = split(eArgs[2], ",")
870870 let $s = size($l)
871871 let $acc0 = nil
872872 func $f0_1 ($a,$i) = if (($i >= $s))
873873 then $a
874874 else listToInt($a, $l[$i])
875875
876876 func $f0_2 ($a,$i) = if (($i >= $s))
877877 then $a
878878 else throw("List size exceeds 3")
879879
880880 $f0_2($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3)
881881 }
882882 let args2 = {
883883 let $l = split(eArgs[3], ",")
884884 let $s = size($l)
885885 let $acc0 = nil
886886 func $f1_1 ($a,$i) = if (($i >= $s))
887887 then $a
888888 else listToInt($a, $l[$i])
889889
890890 func $f1_2 ($a,$i) = if (($i >= $s))
891891 then $a
892892 else throw("List size exceeds 3")
893893
894894 $f1_2($f1_1($f1_1($f1_1($acc0, 0), 1), 2), 3)
895895 }
896896 let routingAssetsKeys = split(eArgs[4], ",")
897897 let minToRecive = parseIntValue(eArgs[5])
898898 [exchangers, exchangersType, args1, args2, routingAssetsKeys, minToRecive]
899899 }
900900 let inv = invoke(dApp, "routingTrade", args, pmt)
901901 if ((inv == inv))
902902 then (accountBalance(assetIdFromStr(tokenTo)) - tokenBalanceBefore)
903903 else throw("Strict value is not equal to itself.")
904904 }
905905 else throw("Strict value is not equal to itself.")
906906 }
907907
908908
909909 func capitalize (pool,pType,tokenId,tokenAmount) = {
910910 let poolAddr = Address(fromBase58String(pool))
911- let $t02498525051 = getPoolData(poolAddr, pType)
912- let AId = $t02498525051._1
913- let BId = $t02498525051._2
914- let balA = $t02498525051._3
915- let balB = $t02498525051._4
916- let shareId = $t02498525051._5
911+ let $t02499725063 = getPoolData(poolAddr, pType)
912+ let AId = $t02499725063._1
913+ let BId = $t02499725063._2
914+ let balA = $t02499725063._3
915+ let balB = $t02499725063._4
916+ let shareId = $t02499725063._5
917917 if (if ((tokenId != AId))
918918 then (tokenId != BId)
919919 else false)
920920 then throw("Wrong asset")
921921 else {
922922 let totalShareAmount = getPoolTotalShare(pool)
923923 if ((totalShareAmount == 0))
924924 then [ScriptTransfer(moneyBox, tokenAmount, fromBase58String(tokenId))]
925925 else {
926926 let totalShareAmountWithLoan = getPoolTotalShareWithLoan(pool)
927927 let loanPercent = fraction(totalShareAmountWithLoan, SCALE8, totalShareAmount)
928928 let tokensForFeeLoan = fraction(tokenAmount, loanPercent, SCALE8)
929929 let tokensForFeeNoLoan = (tokenAmount - tokensForFeeLoan)
930930 let axlyFeeLoan = fraction(tokensForFeeLoan, getAxlyFee(pool, CAP_FEE_LOAN), FEE_SCALE6)
931931 let axlyFeeNoLoan = fraction(tokensForFeeNoLoan, getAxlyFee(pool, CAP_FEE_NO_LOAN), FEE_SCALE6)
932932 let axlyFee = (axlyFeeLoan + axlyFeeNoLoan)
933- let $t02579625896 = if ((tokenId == AId))
933+ let $t02580825908 = if ((tokenId == AId))
934934 then $Tuple2((tokenAmount - axlyFee), 0)
935935 else $Tuple2(0, (tokenAmount - axlyFee))
936- let pmtA = $t02579625896._1
937- let pmtB = $t02579625896._2
938- let $t02589926003 = replenishByType(pType, pool, NO_FEE, pmtA, AId, pmtB, BId, balA, balB, shareId)
939- let stakedAmount = $t02589926003._1
940- let nf = $t02589926003._2
936+ let pmtA = $t02580825908._1
937+ let pmtB = $t02580825908._2
938+ let $t02591126015 = replenishByType(pType, pool, NO_FEE, pmtA, AId, pmtB, BId, balA, balB, shareId)
939+ let stakedAmount = $t02591126015._1
940+ let nf = $t02591126015._2
941941 let curPoolInterestLoan = valueOrElse(getInteger(this, (pool + kPoolInterestLoan)), 0)
942942 let curPoolInterestNoLoan = valueOrElse(getInteger(this, (pool + kPoolInterestNoLoan)), 0)
943943 let stakedLoan = fraction(stakedAmount, loanPercent, SCALE8)
944944 let stakedNoLoan = (stakedAmount - stakedLoan)
945945 let newInterestLoan = if ((totalShareAmountWithLoan > 0))
946946 then (curPoolInterestLoan + fraction(stakedLoan, SCALE10, totalShareAmountWithLoan))
947947 else 0
948948 let newInterestNoLoan = if (((totalShareAmount - totalShareAmountWithLoan) > 0))
949949 then (curPoolInterestNoLoan + fraction(stakedNoLoan, SCALE10, (totalShareAmount - totalShareAmountWithLoan)))
950950 else 0
951951 ([IntegerEntry((pool + kPoolInterestLoan), newInterestLoan), IntegerEntry((pool + kPoolInterestNoLoan), newInterestNoLoan), IntegerEntry((pool + kPoolTotal), (totalShareAmount + stakedAmount)), IntegerEntry((pool + kPoolTotalLoan), (totalShareAmountWithLoan + stakedLoan)), ScriptTransfer(moneyBox, axlyFee, assetIdFromStr(tokenId))] ++ getCursEntries(AId, BId, shareId, nil))
952952 }
953953 }
954954 }
955955
956956
957957 func userCanWithdrawShareCalc (user,pool,posId,borrowed) = {
958958 let pAmount = valueOrErrorMessage(getInteger(this, (((((pool + "_") + user) + "_") + posId) + kUserPosition)), "Unknown position")
959959 let userInterest = getIntegerValue(this, (((((pool + "_") + user) + "_") + posId) + kUserPositionInterest))
960960 let poolInterest = if (borrowed)
961961 then getIntegerValue(this, (pool + kPoolInterestLoan))
962962 else getIntegerValue(this, (pool + kPoolInterestNoLoan))
963963 (pAmount + fraction(pAmount, (poolInterest - userInterest), SCALE10))
964964 }
965965
966966
967967 func calcStopLossFee (pool,isBorrowed,stopLoss,lpWithdraw) = {
968968 let feeType = if (isBorrowed)
969969 then STOPLOSS_LOAN
970970 else STOPLOSS_FEE_NO_LOAN
971971 if (stopLoss)
972972 then fraction(lpWithdraw, getAxlyFee(pool, feeType), FEE_SCALE6)
973973 else 0
974974 }
975975
976976
977977 func withdrawToUser (user,pool,posId,stopLoss) = {
978978 let pAmount = valueOrErrorMessage(getInteger(this, (((((pool + "_") + user) + "_") + posId) + kUserPosition)), "Unknown position")
979979 let isBorrowed = (valueOrElse(getInteger(this, (((((pool + "_") + user) + "_") + posId) + kUserBorrowAmount)), 0) > 0)
980980 let userCanWithdraw = userCanWithdrawShareCalc(user, pool, posId, isBorrowed)
981981 let poolTotalShare = getPoolTotalShare(pool)
982982 let poolTotalShareLoan = getPoolTotalShareWithLoan(pool)
983983 let userAddr = Address(fromBase58String(user))
984984 let poolAddr = Address(fromBase58String(pool))
985985 let pType = valueOrErrorMessage(getString(this, (kPool + pool)), "Unknown pool")
986- let $t02853228604 = getPoolData(poolAddr, pType)
987- let idAStr = $t02853228604._1
988- let idBStr = $t02853228604._2
989- let balA = $t02853228604._3
990- let balB = $t02853228604._4
991- let shareId = $t02853228604._5
992- let $t02860728674 = $Tuple2(assetIdFromStr(idAStr), assetIdFromStr(idBStr))
993- let idA = $t02860728674._1
994- let idB = $t02860728674._2
986+ let $t02854428616 = getPoolData(poolAddr, pType)
987+ let idAStr = $t02854428616._1
988+ let idBStr = $t02854428616._2
989+ let balA = $t02854428616._3
990+ let balB = $t02854428616._4
991+ let shareId = $t02854428616._5
992+ let $t02861928686 = $Tuple2(assetIdFromStr(idAStr), assetIdFromStr(idBStr))
993+ let idA = $t02861928686._1
994+ let idB = $t02861928686._2
995995 let stopLossFee = calcStopLossFee(pool, isBorrowed, stopLoss, userCanWithdraw)
996996 let cBalABefore = accountBalance(idA)
997997 if ((cBalABefore == cBalABefore))
998998 then {
999999 let cBalBBefore = accountBalance(idB)
10001000 if ((cBalBBefore == cBalBBefore))
10011001 then {
10021002 let inv = if ((pType == SF_POOL))
10031003 then {
10041004 let inv = unstakeLP(pool, pType, shareId, stopLossFee)
10051005 if ((inv == inv))
10061006 then invoke(poolAddr, "callFunction", ["withdraw", [toString(userCanWithdraw)]], nil)
10071007 else throw("Strict value is not equal to itself.")
10081008 }
10091009 else if ((pType == WX_POOL))
10101010 then {
10111011 let inv = unstakeLP(pool, pType, shareId, (userCanWithdraw + stopLossFee))
10121012 if ((inv == inv))
10131013 then invoke(poolAddr, "get", nil, [AttachedPayment(assetIdFromStr(shareId), userCanWithdraw)])
10141014 else throw("Strict value is not equal to itself.")
10151015 }
10161016 else unknownPoolType()
10171017 if ((inv == inv))
10181018 then {
10191019 let cBalAAfter = accountBalance(idA)
10201020 if ((cBalAAfter == cBalAAfter))
10211021 then {
10221022 let cBalBAfter = accountBalance(idB)
10231023 if ((cBalBAfter == cBalBAfter))
10241024 then {
1025- let $t02936929458 = $Tuple2((cBalAAfter - cBalABefore), (cBalBAfter - cBalBBefore))
1026- let tokensAmountA = $t02936929458._1
1027- let tokensAmountB = $t02936929458._2
1028- let $t02946130697 = if (isBorrowed)
1025+ let $t02938129470 = $Tuple2((cBalAAfter - cBalABefore), (cBalBAfter - cBalBBefore))
1026+ let tokensAmountA = $t02938129470._1
1027+ let tokensAmountB = $t02938129470._2
1028+ let $t02947330709 = if (isBorrowed)
10291029 then {
10301030 let borrowAsset = getStringValue(this, (((((pool + "_") + user) + "_") + posId) + kUserBorrowAssetId))
10311031 let debt = {
10321032 let @ = invoke(getLendSrvAddr(), "getAssetDebt", [false, ((user + "_") + posId), borrowAsset], nil)
10331033 if ($isInstanceOf(@, "Int"))
10341034 then @
10351035 else throw(($getType(@) + " couldn't be cast to Int"))
10361036 }
10371037 if ((debt == debt))
10381038 then {
10391039 let amountToGetEx = if (if ((borrowAsset == idAStr))
10401040 then (debt > tokensAmountA)
10411041 else false)
10421042 then (debt - tokensAmountA)
10431043 else if (if ((borrowAsset == idBStr))
10441044 then (debt > tokensAmountB)
10451045 else false)
10461046 then (debt - tokensAmountB)
10471047 else 0
10481048 let exInv = if ((amountToGetEx > 0))
10491049 then exchangeDirectly(pType, pool, idAStr, idBStr, (balA - tokensAmountA), (balB - tokensAmountB), amountToGetEx, borrowAsset)
10501050 else nil
10511051 if ((exInv == exInv))
10521052 then {
10531053 let cBalAAfterRepay = accountBalance(idA)
10541054 if ((cBalAAfterRepay == cBalAAfterRepay))
10551055 then {
10561056 let cBalBAfterRepay = accountBalance(idB)
10571057 if ((cBalBAfterRepay == cBalBAfterRepay))
10581058 then {
10591059 let closeDbtInv = if ((debt > 0))
10601060 then invoke(getLendSrvAddr(), "repayFor", [((user + "_") + posId)], [AttachedPayment(assetIdFromStr(borrowAsset), debt)])
10611061 else 0
10621062 if ((closeDbtInv == closeDbtInv))
10631063 then if ((borrowAsset == idAStr))
10641064 then $Tuple2(((cBalAAfterRepay - cBalABefore) - debt), (cBalBAfterRepay - cBalBBefore))
10651065 else $Tuple2((cBalAAfterRepay - cBalABefore), ((cBalBAfterRepay - cBalBBefore) - debt))
10661066 else throw("Strict value is not equal to itself.")
10671067 }
10681068 else throw("Strict value is not equal to itself.")
10691069 }
10701070 else throw("Strict value is not equal to itself.")
10711071 }
10721072 else throw("Strict value is not equal to itself.")
10731073 }
10741074 else throw("Strict value is not equal to itself.")
10751075 }
10761076 else $Tuple2(tokensAmountA, tokensAmountB)
1077- let toUserA = $t02946130697._1
1078- let toUserB = $t02946130697._2
1077+ let toUserA = $t02947330709._1
1078+ let toUserB = $t02947330709._2
10791079 let poolTotalLoanEntries = if (isBorrowed)
10801080 then [IntegerEntry((pool + kPoolTotalLoan), ((poolTotalShareLoan - userCanWithdraw) - stopLossFee))]
10811081 else nil
10821082 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, toUserA, idA), ScriptTransfer(userAddr, toUserB, idB), ScriptTransfer(moneyBox, stopLossFee, fromBase58String(shareId))] ++ poolTotalLoanEntries) ++ getCursEntries(idAStr, idBStr, shareId, nil))
10831083 $Tuple2(entries, [toUserA, toUserB])
10841084 }
10851085 else throw("Strict value is not equal to itself.")
10861086 }
10871087 else throw("Strict value is not equal to itself.")
10881088 }
10891089 else throw("Strict value is not equal to itself.")
10901090 }
10911091 else throw("Strict value is not equal to itself.")
10921092 }
10931093 else throw("Strict value is not equal to itself.")
10941094 }
10951095
10961096
10971097 func parseRequest (requestId) = {
10981098 let request = split(valueOrErrorMessage(getString(this, (requestId + kRequestId)), ("No request with id " + requestId)), ",")
10991099 let user = request[0]
11001100 let pool = request[1]
11011101 let pmtA = parseIntValue(request[2])
11021102 let AId = request[3]
11031103 let pmtB = parseIntValue(request[4])
11041104 let BId = request[5]
11051105 let balA = parseIntValue(request[6])
11061106 let balB = parseIntValue(request[7])
11071107 let shareId = request[8]
11081108 let bwAsset = request[9]
11091109 let bwAmount = parseIntValue(request[10])
11101110 $Tuple11(user, pool, pmtA, AId, pmtB, BId, balA, balB, shareId, bwAsset, bwAmount)
11111111 }
11121112
11131113
11141114 func calcBorrowAmount (pmtA,pmtB,aId,bId,leverage,borrowId) = if (if ((borrowId != aId))
11151115 then (borrowId != bId)
11161116 else false)
11171117 then throw("Wrong borrow asset")
11181118 else {
11191119 let dPriceA = getIntegerValue(priceOracleAddr, (aId + kPriceInOracle))
11201120 let dPriceB = getIntegerValue(priceOracleAddr, (bId + kPriceInOracle))
11211121 let decPrA = pow(10, 0, getAssetDecimals(aId), 0, 0, DOWN)
11221122 let decPrB = pow(10, 0, getAssetDecimals(bId), 0, 0, DOWN)
11231123 let paydInDollar = (fraction(dPriceA, pmtA, decPrA) + fraction(dPriceB, pmtB, decPrB))
1124- let $t03267932776 = if ((borrowId == aId))
1124+ let $t03269132788 = if ((borrowId == aId))
11251125 then $Tuple2(dPriceA, decPrA)
11261126 else $Tuple2(dPriceB, decPrB)
1127- let borrowPrice = $t03267932776._1
1128- let borrowDecPr = $t03267932776._2
1127+ let borrowPrice = $t03269132788._1
1128+ let borrowDecPr = $t03269132788._2
11291129 fraction(fraction(paydInDollar, (leverage - 100), 100), borrowDecPr, borrowPrice)
11301130 }
11311131
11321132
11331133 func parseReplenishPmts (pmts,AId,BId) = if ((size(pmts) == 2))
11341134 then if ((assetIdToStr(pmts[0].assetId) != AId))
11351135 then throw("Wrong payment asset A")
11361136 else if ((assetIdToStr(pmts[1].assetId) != BId))
11371137 then throw("Wrong payment asset B")
11381138 else $Tuple2(pmts[0].amount, pmts[1].amount)
11391139 else if ((size(pmts) == 1))
11401140 then if ((assetIdToStr(pmts[0].assetId) == AId))
11411141 then $Tuple2(pmts[0].amount, 0)
11421142 else if ((assetIdToStr(pmts[0].assetId) == BId))
11431143 then $Tuple2(0, pmts[0].amount)
11441144 else throw("Wrong payment")
11451145 else throw("One or two payments expected")
11461146
11471147
11481148 func calcPriceImpact (balA,balB,newBalA,newBalB) = {
11491149 let pri = ((SCALE8 - fraction(fraction(balB, SCALE8, balA), SCALE8, fraction(newBalB, SCALE8, newBalA))) * 100)
11501150 if ((0 > pri))
11511151 then (pri * -1)
11521152 else pri
11531153 }
11541154
11551155
11561156 func claimAndCheckAmnt (pool,pType,claim,amount,change) = {
1157- let $t03377634038 = if (claim)
1157+ let $t03378834050 = if (claim)
11581158 then claimFarmed(pType, pool)
11591159 else {
11601160 let claimedAsset = if ((pType == SF_POOL))
11611161 then SWOPID
11621162 else if ((pType == WX_POOL))
11631163 then WXID
11641164 else unknownPoolType()
11651165 $Tuple2(amount, claimedAsset)
11661166 }
1167- if (($t03377634038 == $t03377634038))
1167+ if (($t03378834050 == $t03378834050))
11681168 then {
1169- let claimAsset = $t03377634038._2
1170- let claimAmount = $t03377634038._1
1169+ let claimAsset = $t03378834050._2
1170+ let claimAmount = $t03378834050._1
11711171 let bal = accountBalance(claimAsset)
11721172 if ((bal == bal))
11731173 then if ((amount > bal))
11741174 then throw("To big amount to exchange")
11751175 else $Tuple2(claimAmount, claimAsset)
11761176 else throw("Strict value is not equal to itself.")
11771177 }
11781178 else throw("Strict value is not equal to itself.")
11791179 }
11801180
11811181
11821182 @Callable(i)
11831183 func getPoolInfoREADONLY (pool) = {
11841184 let poolAddr = addressFromStringValue(pool)
11851185 let pType = valueOrErrorMessage(getString(this, (kPool + pool)), "Pool is not inited")
1186- let $t03440534495 = getPoolData(Address(fromBase58String(pool)), pType)
1187- let AId = $t03440534495._1
1188- let BId = $t03440534495._2
1189- let balA = $t03440534495._3
1190- let balB = $t03440534495._4
1191- let shareId = $t03440534495._5
1186+ let $t03441734507 = getPoolData(Address(fromBase58String(pool)), pType)
1187+ let AId = $t03441734507._1
1188+ let BId = $t03441734507._2
1189+ let balA = $t03441734507._3
1190+ let balB = $t03441734507._4
1191+ let shareId = $t03441734507._5
11921192 let shareSupply = getShareSupply(poolAddr, pType, shareId)
11931193 $Tuple2(nil, $Tuple6(AId, BId, shareId, balA, balB, shareSupply))
11941194 }
11951195
11961196
11971197
11981198 @Callable(i)
11991199 func getShareAssetPriceREADONLY (shareId) = {
12001200 let sharePrices = getSharePrice(shareId)
12011201 $Tuple2(nil, sharePrices)
12021202 }
12031203
12041204
12051205
12061206 @Callable(i)
12071207 func getUserPositionShareAmountREADONLY (user,posNum) = {
12081208 let pool = valueOrErrorMessage(getString(this, (((user + "_") + posNum) + kUserPositionPool)), "Unknown position")
12091209 let borrowAmount = getIntegerValue(this, (((((pool + "_") + user) + "_") + posNum) + kUserBorrowAmount))
12101210 let userCanWithdraw = userCanWithdrawShareCalc(user, pool, posNum, (borrowAmount > 0))
12111211 $Tuple2(nil, userCanWithdraw)
12121212 }
12131213
12141214
12151215
12161216 @Callable(i)
12171217 func getUserPositionREADONLY (user,pools,posNum) = {
12181218 func userPos (a,pool) = {
1219- let $t03536835438 = a
1220- let wAmountsA = $t03536835438._1
1221- let wAmountsB = $t03536835438._2
1222- let debts = $t03536835438._3
1223- let eqWAmountsA = $t03536835438._4
1224- let eqWAmountsB = $t03536835438._5
1225- let index = $t03536835438._6
1219+ let $t03538035450 = a
1220+ let wAmountsA = $t03538035450._1
1221+ let wAmountsB = $t03538035450._2
1222+ let debts = $t03538035450._3
1223+ let eqWAmountsA = $t03538035450._4
1224+ let eqWAmountsB = $t03538035450._5
1225+ let index = $t03538035450._6
12261226 if (!(isDefined(getInteger(this, (((((pool + "_") + user) + "_") + posNum[index]) + kUserPosition)))))
12271227 then $Tuple6((wAmountsA :+ 0), (wAmountsB :+ 0), (debts :+ 0), (eqWAmountsA :+ 0), (eqWAmountsB :+ 0), (index + 1))
12281228 else {
12291229 let pType = valueOrErrorMessage(getString(this, (kPool + pool)), "Pool is not inited")
1230- let $t03571735807 = getPoolData(Address(fromBase58String(pool)), pType)
1231- let AId = $t03571735807._1
1232- let BId = $t03571735807._2
1233- let balA = $t03571735807._3
1234- let balB = $t03571735807._4
1235- let shareId = $t03571735807._5
1230+ let $t03572935819 = getPoolData(Address(fromBase58String(pool)), pType)
1231+ let AId = $t03572935819._1
1232+ let BId = $t03572935819._2
1233+ let balA = $t03572935819._3
1234+ let balB = $t03572935819._4
1235+ let shareId = $t03572935819._5
12361236 let borrowAmount = valueOrElse(getInteger(this, (((((pool + "_") + user) + "_") + posNum[index]) + kUserBorrowAmount)), 0)
12371237 let userCanWithdraw = userCanWithdrawShareCalc(user, pool, posNum[index], (borrowAmount > 0))
1238- let $t03602336143 = calcWithdrawLPFromPoolVirt(Address(fromBase58String(pool)), pType, shareId, userCanWithdraw)
1239- let wAmountA = $t03602336143._1
1240- let wAmountB = $t03602336143._2
1238+ let $t03603536155 = calcWithdrawLPFromPoolVirt(Address(fromBase58String(pool)), pType, shareId, userCanWithdraw)
1239+ let wAmountA = $t03603536155._1
1240+ let wAmountB = $t03603536155._2
12411241 if ((borrowAmount > 0))
12421242 then {
12431243 let borrowAsset = getStringValue(this, (((((pool + "_") + user) + "_") + posNum[index]) + kUserBorrowAssetId))
12441244 let debt = {
12451245 let @ = invoke(getLendSrvAddr(), "getAssetDebt", [false, ((user + "_") + posNum[index]), borrowAsset], nil)
12461246 if ($isInstanceOf(@, "Int"))
12471247 then @
12481248 else throw(($getType(@) + " couldn't be cast to Int"))
12491249 }
12501250 if ((debt == debt))
12511251 then {
12521252 let amountToGetEx = if (if ((borrowAsset == AId))
12531253 then (debt > wAmountA)
12541254 else false)
12551255 then (debt - wAmountA)
12561256 else if (if ((borrowAsset == BId))
12571257 then (debt > wAmountB)
12581258 else false)
12591259 then (debt - wAmountB)
12601260 else 0
12611261 let amountToPay = if ((amountToGetEx > 0))
12621262 then if ((pType == SF_POOL))
12631263 then {
12641264 let ex = calcAmountToPaySF(pool, AId, BId, balA, balB, amountToGetEx, borrowAsset)
12651265 ex._2
12661266 }
12671267 else if ((pType == WX_POOL))
12681268 then {
12691269 let ex = calcAmountToPayWX(pool, AId, BId, balA, balB, amountToGetEx, borrowAsset)
12701270 ex._2
12711271 }
12721272 else unknownPoolType()
12731273 else 0
1274- let $t03705537274 = if ((borrowAsset == AId))
1274+ let $t03706737286 = if ((borrowAsset == AId))
12751275 then $Tuple2(((wAmountA + amountToGetEx) - debt), (wAmountB - amountToPay))
12761276 else $Tuple2((wAmountA - amountToPay), ((wAmountB + amountToGetEx) - debt))
1277- let eqWAmountA = $t03705537274._1
1278- let eqWAmountB = $t03705537274._2
1277+ let eqWAmountA = $t03706737286._1
1278+ let eqWAmountB = $t03706737286._2
12791279 $Tuple6((wAmountsA :+ wAmountA), (wAmountsB :+ wAmountB), (debts :+ debt), (eqWAmountsA :+ eqWAmountA), (eqWAmountsB :+ eqWAmountB), (index + 1))
12801280 }
12811281 else throw("Strict value is not equal to itself.")
12821282 }
12831283 else $Tuple6((wAmountsA :+ wAmountA), (wAmountsB :+ wAmountB), debts, (wAmountsA :+ wAmountA), (wAmountsB :+ wAmountB), (index + 1))
12841284 }
12851285 }
12861286
1287- let $t03752937640 = {
1287+ let $t03754137652 = {
12881288 let $l = pools
12891289 let $s = size($l)
12901290 let $acc0 = $Tuple6(nil, nil, nil, nil, nil, 0)
12911291 func $f0_1 ($a,$i) = if (($i >= $s))
12921292 then $a
12931293 else userPos($a, $l[$i])
12941294
12951295 func $f0_2 ($a,$i) = if (($i >= $s))
12961296 then $a
12971297 else throw("List size exceeds 20")
12981298
12991299 $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)
13001300 }
1301- let wAmountsA = $t03752937640._1
1302- let wAmountsB = $t03752937640._2
1303- let debts = $t03752937640._3
1304- let eqWAmountsA = $t03752937640._4
1305- let eqWAmountsB = $t03752937640._5
1301+ let wAmountsA = $t03754137652._1
1302+ let wAmountsB = $t03754137652._2
1303+ let debts = $t03754137652._3
1304+ let eqWAmountsA = $t03754137652._4
1305+ let eqWAmountsB = $t03754137652._5
13061306 $Tuple2(nil, $Tuple5(wAmountsA, wAmountsB, debts, eqWAmountsA, eqWAmountsB))
13071307 }
13081308
13091309
13101310
13111311 @Callable(i)
13121312 func replenish (pool,leverage,borrowId) = valueOrElse(isActiveForUsers(), {
13131313 let pType = valueOrErrorMessage(getString(this, (kPool + pool)), "Pool is not inited")
13141314 if (!(isPoolActive(pool, pType)))
13151315 then throw("Pool not active at this moment")
13161316 else if (if ((100 > leverage))
13171317 then true
13181318 else (leverage > 300))
13191319 then throw("Leverage can't be <100 and >300")
13201320 else if (if (!(getBooleanValue(this, (pool + kPoolCanBorrow))))
13211321 then (leverage > 100)
13221322 else false)
13231323 then throw("You can't borrow in this pool")
13241324 else {
1325- let $t03823838328 = getPoolData(Address(fromBase58String(pool)), pType)
1326- let AId = $t03823838328._1
1327- let BId = $t03823838328._2
1328- let balA = $t03823838328._3
1329- let balB = $t03823838328._4
1330- let shareId = $t03823838328._5
1325+ let $t03825038340 = getPoolData(Address(fromBase58String(pool)), pType)
1326+ let AId = $t03825038340._1
1327+ let BId = $t03825038340._2
1328+ let balA = $t03825038340._3
1329+ let balB = $t03825038340._4
1330+ let shareId = $t03825038340._5
13311331 if (if ((borrowId != AId))
13321332 then (borrowId != BId)
13331333 else false)
13341334 then throw("Wrong borrow asset")
13351335 else {
1336- let $t03840938468 = parseReplenishPmts(i.payments, AId, BId)
1337- let pmtA = $t03840938468._1
1338- let pmtB = $t03840938468._2
1336+ let $t03842138480 = parseReplenishPmts(i.payments, AId, BId)
1337+ let pmtA = $t03842138480._1
1338+ let pmtB = $t03842138480._2
13391339 let user = toString(i.caller)
13401340 let newPosNum = getNewUserPositionNumber(user)
13411341 if ((leverage > 100))
13421342 then {
13431343 let borrowAmount = calcBorrowAmount(pmtA, pmtB, AId, BId, leverage, borrowId)
13441344 let request = makeString([user, pool, toString(pmtA), AId, toString(pmtB), BId, toString(balA), toString(balB), shareId, borrowId, toString(borrowAmount)], ",")
13451345 let newRequestId = {
13461346 let @ = invoke(this, "createNewRequest", [request], nil)
13471347 if ($isInstanceOf(@, "Int"))
13481348 then @
13491349 else throw(($getType(@) + " couldn't be cast to Int"))
13501350 }
13511351 if ((newRequestId == newRequestId))
13521352 then {
13531353 let args = [((user + "_") + toString(newPosNum)), shareId, borrowId, borrowAmount, toString(this), "replenishFromLand", toString(valueOrErrorMessage(newRequestId, "Can't create new request"))]
13541354 let inv = reentrantInvoke(getLendSrvAddr(), "flashPosition", args, nil)
13551355 if ((inv == inv))
13561356 then {
13571357 let userStaked = getIntegerValue(this, (((((pool + "_") + user) + "_") + toString(newPosNum)) + kUserPosition))
1358- let $t03945739551 = getPoolBalances(Address(fromBase58String(pool)), pType, AId, BId)
1359- if (($t03945739551 == $t03945739551))
1358+ let $t03946939563 = getPoolBalances(Address(fromBase58String(pool)), pType, AId, BId)
1359+ if (($t03946939563 == $t03946939563))
13601360 then {
1361- let newBalB = $t03945739551._2
1362- let newBalA = $t03945739551._1
1361+ let newBalB = $t03946939563._2
1362+ let newBalA = $t03946939563._1
13631363 let prImpact = calcPriceImpact(balA, balB, newBalA, newBalB)
1364- let $t03962139736 = calcWithdrawLPFromPoolVirt(Address(fromBase58String(pool)), pType, shareId, userStaked)
1365- let wAmountA = $t03962139736._1
1366- let wAmountB = $t03962139736._2
1364+ let $t03963339748 = calcWithdrawLPFromPoolVirt(Address(fromBase58String(pool)), pType, shareId, userStaked)
1365+ let wAmountA = $t03963339748._1
1366+ let wAmountB = $t03963339748._2
13671367 $Tuple2(nil, [prImpact, wAmountA, wAmountB])
13681368 }
13691369 else throw("Strict value is not equal to itself.")
13701370 }
13711371 else throw("Strict value is not equal to itself.")
13721372 }
13731373 else throw("Strict value is not equal to itself.")
13741374 }
13751375 else {
1376- let $t03978939904 = replenishByType(pType, pool, NO_LOAN_FEE, pmtA, AId, pmtB, BId, balA, balB, shareId)
1377- if (($t03978939904 == $t03978939904))
1376+ let $t03980139916 = replenishByType(pType, pool, NO_LOAN_FEE, pmtA, AId, pmtB, BId, balA, balB, shareId)
1377+ if (($t03980139916 == $t03980139916))
13781378 then {
1379- let axlyFee = $t03978939904._2
1380- let userStaked = $t03978939904._1
1381- let $t03991040004 = getPoolBalances(Address(fromBase58String(pool)), pType, AId, BId)
1382- if (($t03991040004 == $t03991040004))
1379+ let axlyFee = $t03980139916._2
1380+ let userStaked = $t03980139916._1
1381+ let $t03992240016 = getPoolBalances(Address(fromBase58String(pool)), pType, AId, BId)
1382+ if (($t03992240016 == $t03992240016))
13831383 then {
1384- let newBalB = $t03991040004._2
1385- let newBalA = $t03991040004._1
1384+ let newBalB = $t03992240016._2
1385+ let newBalA = $t03992240016._1
13861386 let prImpact = calcPriceImpact(balA, balB, newBalA, newBalB)
1387- let $t04007440189 = calcWithdrawLPFromPoolVirt(Address(fromBase58String(pool)), pType, shareId, userStaked)
1388- let wAmountA = $t04007440189._1
1389- let wAmountB = $t04007440189._2
1387+ let $t04008640201 = calcWithdrawLPFromPoolVirt(Address(fromBase58String(pool)), pType, shareId, userStaked)
1388+ let wAmountA = $t04008640201._1
1389+ let wAmountB = $t04008640201._2
13901390 $Tuple2((replenishEntries(pool, user, userStaked, axlyFee, newPosNum, shareId, pType, false) ++ getCursEntries(AId, BId, shareId, [toString(wAmountA), toString(wAmountB)])), [prImpact, wAmountA, wAmountB])
13911391 }
13921392 else throw("Strict value is not equal to itself.")
13931393 }
13941394 else throw("Strict value is not equal to itself.")
13951395 }
13961396 }
13971397 }
13981398 })
13991399
14001400
14011401
14021402 @Callable(i)
14031403 func withdraw (pool,posId) = valueOrElse(isActiveForUsers(), {
14041404 let pType = valueOrErrorMessage(getString(this, (kPool + pool)), "Pool is not inited")
14051405 if (!(isPoolActive(pool, pType)))
14061406 then throw("Pool not active at this moment")
14071407 else withdrawToUser(toString(i.caller), pool, toString(posId), false)
14081408 })
14091409
14101410
14111411
14121412 @Callable(i)
14131413 func createUpdateStopLoss (posId,poolId,assetId,price) = valueOrElse(isActiveForUsers(), {
14141414 let tokenOraclePrice = getIntegerValue(priceOracleAddr, (assetId + kPriceInOracle))
14151415 let pType = valueOrErrorMessage(getString(this, (kPool + poolId)), "Pool is not inited")
14161416 if (!(isPoolActive(poolId, pType)))
14171417 then throw("Pool not active at this moment")
14181418 else if (!(isDefined(getInteger(this, (((((poolId + "_") + toString(i.caller)) + "_") + toString(posId)) + kUserPosition)))))
14191419 then throw("There are no user position")
14201420 else if ((0 >= price))
14211421 then throw("Price must be greater than 0")
14221422 else if ((price > tokenOraclePrice))
14231423 then throw("Price must be less than current token price")
14241424 else [IntegerEntry((((((((toString(i.caller) + "_") + toString(posId)) + "_") + poolId) + "_") + assetId) + kUserStopLoss), price)]
14251425 })
14261426
14271427
14281428
14291429 @Callable(i)
14301430 func deleteStopLoss (posId,poolId,assetId) = valueOrElse(isActiveForUsers(), {
14311431 let pType = valueOrErrorMessage(getString(this, (kPool + poolId)), "Pool is not inited")
14321432 if (!(isPoolActive(poolId, pType)))
14331433 then throw("Pool not active at this moment")
14341434 else if (!(isDefined(getInteger(this, (((((((toString(i.caller) + "_") + toString(posId)) + "_") + poolId) + "_") + assetId) + kUserStopLoss)))))
14351435 then throw("No entry")
14361436 else [DeleteEntry((((((((toString(i.caller) + "_") + toString(posId)) + "_") + poolId) + "_") + assetId) + kUserStopLoss))]
14371437 })
14381438
14391439
14401440
14411441 @Callable(i)
14421442 func init (moneyBoxAddr,sfFarmingAddr,lendAddr,priceOracleAddr,keeperExContract,wxSwapContract,swopAssetId,wxAssetId,operatorPubKey,group1Admin1PubKey,group1Admin2PubKey,group2Admin1PubKey,group2Admin2PubKey) = valueOrElse(isSelfCall(i), if (isDefined(getString(kOperatorCallPK)))
14431443 then throw("Already inited")
14441444 else if (!(isDefined(addressFromString(moneyBoxAddr))))
14451445 then throw("moneyBoxAddr is not correct address")
14461446 else if (!(isDefined(addressFromString(sfFarmingAddr))))
14471447 then throw("sfFarmingAddr is not correct address")
14481448 else if (!(isDefined(addressFromString(lendAddr))))
14491449 then throw("lendAddr is not correct address")
14501450 else if (!(isDefined(addressFromString(priceOracleAddr))))
14511451 then throw("priceOracleAddr is not correct address")
14521452 else if (!(isDefined(addressFromString(keeperExContract))))
14531453 then throw("keeperExContract is not correct address")
14541454 else if (!(isDefined(assetInfo(fromBase58String(swopAssetId)))))
14551455 then throw("swopAssetId is not correct asset id")
14561456 else if (!(isDefined(assetInfo(fromBase58String(wxAssetId)))))
14571457 then throw("swopAssetId is not correct asset id")
14581458 else if ((size(fromBase58String(operatorPubKey)) != 32))
14591459 then throw("operatorPubKey is not correct")
14601460 else if ((size(fromBase58String(group1Admin1PubKey)) != 32))
14611461 then throw("group1Admin1PubKey is not correct")
14621462 else if ((size(fromBase58String(group1Admin2PubKey)) != 32))
14631463 then throw("group1Admin2PubKey is not correct")
14641464 else if ((size(fromBase58String(group2Admin1PubKey)) != 32))
14651465 then throw("group2Admin1PubKey is not correct")
14661466 else if ((size(fromBase58String(group2Admin2PubKey)) != 32))
14671467 then throw("group2Admin2PubKey is not correct")
14681468 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(kOperatorCallPK, operatorPubKey), StringEntry(kGroup1Admin1PK, group1Admin1PubKey), StringEntry(kGroup1Admin2PK, group1Admin2PubKey), StringEntry(kGroup2Admin1PK, group2Admin1PubKey), StringEntry(kGroup2Admin2PK, group2Admin2PubKey)])
14691469
14701470
14711471
14721472 @Callable(i)
14731473 func createNewRequest (params) = valueOrElse(isSelfCall(i), {
14741474 let newRequestId = (valueOrElse(getInteger(this, kRequestIter), 0) + 1)
14751475 $Tuple2([StringEntry((toString(newRequestId) + kRequestId), params), IntegerEntry(kRequestIter, newRequestId)], newRequestId)
14761476 })
14771477
14781478
14791479
14801480 @Callable(i)
14811481 func replenishFromLand (requestId) = valueOrElse(isActive(), valueOrElse(isLandCall(i), {
1482- let $t04502845132 = parseRequest(requestId)
1483- let user = $t04502845132._1
1484- let pool = $t04502845132._2
1485- let pmtA = $t04502845132._3
1486- let AId = $t04502845132._4
1487- let pmtB = $t04502845132._5
1488- let BId = $t04502845132._6
1489- let balA = $t04502845132._7
1490- let balB = $t04502845132._8
1491- let shareId = $t04502845132._9
1492- let bwAsset = $t04502845132._10
1493- let bwAmount = $t04502845132._11
1482+ let $t04504045144 = parseRequest(requestId)
1483+ let user = $t04504045144._1
1484+ let pool = $t04504045144._2
1485+ let pmtA = $t04504045144._3
1486+ let AId = $t04504045144._4
1487+ let pmtB = $t04504045144._5
1488+ let BId = $t04504045144._6
1489+ let balA = $t04504045144._7
1490+ let balB = $t04504045144._8
1491+ let shareId = $t04504045144._9
1492+ let bwAsset = $t04504045144._10
1493+ let bwAmount = $t04504045144._11
14941494 if ((size(i.payments) != 1))
14951495 then throw("Wrong payment size")
14961496 else if (if ((assetIdToStr(i.payments[0].assetId) != bwAsset))
14971497 then true
14981498 else (i.payments[0].amount != bwAmount))
14991499 then throw("Wrong payment")
15001500 else {
1501- let $t04532245422 = if ((AId == bwAsset))
1501+ let $t04533445434 = if ((AId == bwAsset))
15021502 then $Tuple2((pmtA + bwAmount), pmtB)
15031503 else $Tuple2(pmtA, (pmtB + bwAmount))
1504- let pmtAllA = $t04532245422._1
1505- let pmtAllB = $t04532245422._2
1504+ let pmtAllA = $t04533445434._1
1505+ let pmtAllB = $t04533445434._2
15061506 let pType = valueOrErrorMessage(getString(this, (kPool + pool)), "Unknown pool")
1507- let $t04550445619 = replenishByType(pType, pool, LOAN_FEE, pmtAllA, AId, pmtAllB, BId, balA, balB, shareId)
1508- let userStaked = $t04550445619._1
1509- let axlyFee = $t04550445619._2
1507+ let $t04551645631 = replenishByType(pType, pool, LOAN_FEE, pmtAllA, AId, pmtAllB, BId, balA, balB, shareId)
1508+ let userStaked = $t04551645631._1
1509+ let axlyFee = $t04551645631._2
15101510 let posNum = getNewUserPositionNumber(user)
15111511 let borrowEntries = [IntegerEntry((((((pool + "_") + user) + "_") + toString(posNum)) + kUserBorrowAmount), bwAmount), StringEntry((((((pool + "_") + user) + "_") + toString(posNum)) + kUserBorrowAssetId), bwAsset)]
15121512 let entries = replenishEntries(pool, user, userStaked, axlyFee, posNum, shareId, pType, true)
1513- let $t04597946094 = calcWithdrawLPFromPoolVirt(Address(fromBase58String(pool)), pType, shareId, userStaked)
1514- let wAmountA = $t04597946094._1
1515- let wAmountB = $t04597946094._2
1513+ let $t04599146106 = calcWithdrawLPFromPoolVirt(Address(fromBase58String(pool)), pType, shareId, userStaked)
1514+ let wAmountA = $t04599146106._1
1515+ let wAmountB = $t04599146106._2
15161516 $Tuple2((((entries ++ getCursEntries(AId, BId, shareId, [toString(wAmountA), toString(wAmountB)])) ++ borrowEntries) :+ DeleteEntry((requestId + kRequestId))), userStaked)
15171517 }
15181518 }))
15191519
15201520
15211521
15221522 @Callable(i)
15231523 func liquidate (user,posId,liquidateAmount) = valueOrElse(isActive(), valueOrElse(isLandCall(i), {
15241524 let pool = valueOrErrorMessage(getString(this, (((user + "_") + posId) + kUserPositionPool)), "no position")
15251525 let pType = valueOrErrorMessage(getString(this, (kPool + pool)), "Pool is not inited")
1526- let $t04661546705 = getPoolData(Address(fromBase58String(pool)), pType)
1527- let AId = $t04661546705._1
1528- let BId = $t04661546705._2
1529- let balA = $t04661546705._3
1530- let balB = $t04661546705._4
1531- let shareId = $t04661546705._5
1526+ let $t04662746717 = getPoolData(Address(fromBase58String(pool)), pType)
1527+ let AId = $t04662746717._1
1528+ let BId = $t04662746717._2
1529+ let balA = $t04662746717._3
1530+ let balB = $t04662746717._4
1531+ let shareId = $t04662746717._5
15321532 let amount = unstakeLP(pool, pType, shareId, liquidateAmount)
15331533 let borrowAmount = getIntegerValue(this, (((((pool + "_") + user) + "_") + posId) + kUserBorrowAmount))
15341534 let borrowAsset = getStringValue(this, (((((pool + "_") + user) + "_") + posId) + kUserBorrowAssetId))
15351535 let userCanWithdraw = userCanWithdrawShareCalc(user, pool, posId, (borrowAmount > 0))
15361536 if ((liquidateAmount > userCanWithdraw))
15371537 then throw("You can't liquidate more than user have")
15381538 else if ((borrowAmount == 0))
15391539 then throw("You can't liquidate position without borrow")
15401540 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))]
15411541 }))
15421542
15431543
15441544
15451545 @Callable(i)
15461546 func stopLoss (user,posId,pool,assetId) = valueOrElse(isActive(), valueOrElse(isOperatorCall(i), {
15471547 let tokenOraclePrice = getIntegerValue(priceOracleAddr, (assetId + kPriceInOracle))
15481548 let stopLossPrice = valueOrErrorMessage(getInteger(this, (((((((user + "_") + toString(posId)) + "_") + pool) + "_") + assetId) + kUserStopLoss)), "No entry")
15491549 if ((tokenOraclePrice > stopLossPrice))
15501550 then throw("Token price greater stop loss price")
15511551 else {
15521552 let res = withdrawToUser(user, pool, toString(posId), true)
15531553 $Tuple2((res._1 :+ DeleteEntry((((((((user + "_") + toString(posId)) + "_") + pool) + "_") + assetId) + kUserStopLoss))), res._2)
15541554 }
15551555 }))
15561556
15571557
15581558
15591559 @Callable(i)
15601560 func capitalizeEx (pool,route,tokenToId,amountToExchange,claim) = valueOrElse(isActive(), valueOrElse(isOperatorCall(i), {
15611561 let pType = getStringValue(this, (kPool + pool))
15621562 let change = valueOrElse(getInteger(this, (pool + kPoolCapChange)), 0)
1563- let $t04867548777 = claimAndCheckAmnt(pool, pType, claim, amountToExchange, change)
1564- if (($t04867548777 == $t04867548777))
1563+ let $t04868748789 = claimAndCheckAmnt(pool, pType, claim, amountToExchange, change)
1564+ if (($t04868748789 == $t04868748789))
15651565 then {
1566- let claimedAsset = $t04867548777._2
1567- let claimedAmount = $t04867548777._1
1566+ let claimedAsset = $t04868748789._2
1567+ let claimedAmount = $t04868748789._1
15681568 let rArgs = split(route, "__")
15691569 let exchangedAmount = if ((rArgs[0] == "directSwopfiCPMM"))
15701570 then directSwopfiCPMM(rArgs, tokenToId)
15711571 else if ((rArgs[0] == "routingSwopfi"))
15721572 then directRoutingSwopfi(rArgs, tokenToId)
15731573 else throw("Wrong route")
15741574 if ((exchangedAmount == exchangedAmount))
15751575 then {
15761576 let newChange = ((claimedAmount + change) - amountToExchange)
15771577 let changeEntry = if ((newChange >= 0))
15781578 then [IntegerEntry((pool + kPoolCapChange), newChange)]
15791579 else nil
15801580 (capitalize(pool, pType, tokenToId, exchangedAmount) ++ changeEntry)
15811581 }
15821582 else throw("Strict value is not equal to itself.")
15831583 }
15841584 else throw("Strict value is not equal to itself.")
15851585 }))
15861586
15871587
15881588
15891589 @Callable(i)
15901590 func capitalizeNoEx (pool,claim,amountFromBalance) = valueOrElse(isActive(), valueOrElse(isOperatorCall(i), {
15911591 let pType = getStringValue(this, (kPool + pool))
1592- let $t04946149559 = claimAndCheckAmnt(pool, pType, claim, amountFromBalance, 0)
1593- if (($t04946149559 == $t04946149559))
1592+ let $t04947349571 = claimAndCheckAmnt(pool, pType, claim, amountFromBalance, 0)
1593+ if (($t04947349571 == $t04947349571))
15941594 then {
1595- let claimedAsset = $t04946149559._2
1596- let claimedAmount = $t04946149559._1
1595+ let claimedAsset = $t04947349571._2
1596+ let claimedAmount = $t04947349571._1
15971597 capitalize(pool, pType, assetIdToStr(claimedAsset), (claimedAmount + amountFromBalance))
15981598 }
15991599 else throw("Strict value is not equal to itself.")
16001600 }))
16011601
16021602
16031603
16041604 @Callable(i)
16051605 func initNewPool (type,poolType,poolAddr,inFeeNoLoan,inFeeLoan,capFeeNoLoan,capFeeWithLoan,stoplossFeeNoLoan,stoplossFeeWithLoan,canBorrow) = valueOrElse(isActive(), valueOrElse(isAdminCall(i), if (if ((type != SF_POOL))
16061606 then (type != WX_POOL)
16071607 else false)
16081608 then throw("Wrong type")
16091609 else if (if ((poolType != CPMM))
16101610 then (poolType != FLAT)
16111611 else false)
16121612 then throw("Wrong pool type")
16131613 else {
1614- let $t05008050174 = getPoolData(Address(fromBase58String(poolAddr)), type)
1615- let aId = $t05008050174._1
1616- let bId = $t05008050174._2
1617- let aBal = $t05008050174._3
1618- let bBal = $t05008050174._4
1619- let shareId = $t05008050174._5
1614+ let $t05009250186 = getPoolData(Address(fromBase58String(poolAddr)), type)
1615+ let aId = $t05009250186._1
1616+ let bId = $t05009250186._2
1617+ let aBal = $t05009250186._3
1618+ let bBal = $t05009250186._4
1619+ let shareId = $t05009250186._5
16201620 if ((0 > inFeeNoLoan))
16211621 then throw("inFeeNoLoan must be greater than 0")
16221622 else if ((0 > inFeeLoan))
16231623 then throw("inFeeLoan must be greater than 0")
16241624 else if ((0 > capFeeNoLoan))
16251625 then throw("capFeeNoLoan must be greater than 0")
16261626 else if ((0 > capFeeWithLoan))
16271627 then throw("capFeeWithLoan must be greater than 0")
16281628 else if ((0 > stoplossFeeNoLoan))
16291629 then throw("stoplossFeeNoLoan must be greater than 0")
16301630 else if ((0 > stoplossFeeWithLoan))
16311631 then throw("stoplossFeeWithLoan must be greater than 0")
16321632 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((poolAddr + kPoolType), poolType), StringEntry((shareId + kSharePool), poolAddr), BooleanEntry((poolAddr + kPoolCanBorrow), canBorrow)]
16331633 }))
16341634
16351635
16361636
16371637 @Callable(i)
16381638 func updatePoolFees (poolAddr,inFeeNoLoan,inFeeLoan,capFeeNoLoan,capFeeWithLoan,stoplossFeeNoLoan,stoplossFeeWithLoan) = valueOrElse(isActive(), valueOrElse(isAdminCall(i), if (!(isDefined(getString(this, (kPool + poolAddr)))))
16391639 then throw(("Can't find pool with addr " + poolAddr))
16401640 else if ((0 > inFeeNoLoan))
16411641 then throw("inFeeNoLoan must be greater than 0")
16421642 else if ((0 > inFeeLoan))
16431643 then throw("inFeeLoan must be greater than 0")
16441644 else if ((0 > capFeeNoLoan))
16451645 then throw("capFeeNoLoan must be greater than 0")
16461646 else if ((0 > capFeeWithLoan))
16471647 then throw("capFeeWithLoan must be greater than 0")
16481648 else if ((0 > stoplossFeeNoLoan))
16491649 then throw("stoplossFeeNoLoan must be greater than 0")
16501650 else if ((0 > stoplossFeeWithLoan))
16511651 then throw("stoplossFeeWithLoan must be greater than 0")
16521652 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)]))
16531653
16541654
16551655
16561656 @Callable(i)
16571657 func activate () = valueOrElse(isAdminCall(i), if (valueOrElse(getBoolean(this, kActive), true))
16581658 then throw("dApp already active")
16591659 else [BooleanEntry(kActive, true)])
16601660
16611661
16621662
16631663 @Callable(i)
16641664 func shutdown () = valueOrElse(isAdminCall(i), if (!(valueOrElse(getBoolean(this, kActive), true)))
16651665 then throw("dApp already shutdown")
16661666 else [BooleanEntry(kActive, false)])
16671667
16681668
16691669
16701670 @Callable(i)
16711671 func activateForUsers () = valueOrElse(isAdminCall(i), if (valueOrElse(getBoolean(this, kActiveUsers), true))
16721672 then throw("dApp already active for users")
16731673 else [BooleanEntry(kActiveUsers, true)])
16741674
16751675
16761676
16771677 @Callable(i)
16781678 func shutdownForUsers () = valueOrElse(isAdminCall(i), if (!(valueOrElse(getBoolean(this, kActiveUsers), true)))
16791679 then throw("dApp already shutdown for users")
16801680 else [BooleanEntry(kActiveUsers, false)])
16811681
16821682
16831683
16841684 @Callable(i)
16851685 func activateSF () = valueOrElse(isAdminCall(i), if (valueOrElse(getBoolean(this, (SF_POOL + kActiveSFWX)), true))
16861686 then throw("SWOPFI already active")
16871687 else [BooleanEntry((SF_POOL + kActiveSFWX), true)])
16881688
16891689
16901690
16911691 @Callable(i)
16921692 func shutdownSF () = valueOrElse(isAdminCall(i), if (!(valueOrElse(getBoolean(this, (SF_POOL + kActiveSFWX)), true)))
16931693 then throw("SWOPFI already shutdown")
16941694 else [BooleanEntry((SF_POOL + kActiveSFWX), false)])
16951695
16961696
16971697
16981698 @Callable(i)
16991699 func activateWX () = valueOrElse(isAdminCall(i), if (valueOrElse(getBoolean(this, (WX_POOL + kActiveSFWX)), true))
17001700 then throw("WX already active")
17011701 else [BooleanEntry((WX_POOL + kActiveSFWX), true)])
17021702
17031703
17041704
17051705 @Callable(i)
17061706 func shutdownWX () = valueOrElse(isAdminCall(i), if (!(valueOrElse(getBoolean(this, (WX_POOL + kActiveSFWX)), true)))
17071707 then throw("WX already shutdown")
17081708 else [BooleanEntry((WX_POOL + kActiveSFWX), false)])
17091709
17101710
17111711
17121712 @Callable(i)
17131713 func activatePool (pool) = valueOrElse(isAdminCall(i), if (!(isDefined(getString(this, (kPool + pool)))))
17141714 then throw("Unknown pool")
17151715 else if (valueOrElse(getBoolean(this, (pool + kPoolActive)), true))
17161716 then throw("Pool already active")
17171717 else [BooleanEntry((pool + kPoolActive), true)])
17181718
17191719
17201720
17211721 @Callable(i)
17221722 func shutdownPool (pool) = valueOrElse(isAdminCall(i), if (!(isDefined(getString(this, (kPool + pool)))))
17231723 then throw("Unknown pool")
17241724 else if (!(valueOrElse(getBoolean(this, (pool + kPoolActive)), true)))
17251725 then throw("Pool already shutdown")
17261726 else [BooleanEntry((pool + kPoolActive), false)])
17271727
17281728

github/deemru/w8io/026f985 
238.47 ms