tx · B31DZk3ko2YH8wv3zNiqGzLwMABX4ySinT8muNVBTaRX

3MvRWw2FPEimFCTGtK7qY9uAJbM7XJ4ZfJS:  -0.04400000 Waves

2023.05.29 12:16 [2599073] smart account 3MvRWw2FPEimFCTGtK7qY9uAJbM7XJ4ZfJS > SELF 0.00000000 Waves

{ "type": 13, "id": "B31DZk3ko2YH8wv3zNiqGzLwMABX4ySinT8muNVBTaRX", "fee": 4400000, "feeAssetId": null, "timestamp": 1685351856136, "version": 2, "chainId": 84, "sender": "3MvRWw2FPEimFCTGtK7qY9uAJbM7XJ4ZfJS", "senderPublicKey": "HP8sssVq1866F7CaPQJwgFrt6fsqhQjKwM84cL1wjD2a", "proofs": [ "XGnnPrgnLwpPw4J7n7gUC2DSMb4CtbxToVKyArqwWFFnq8xaJBFyR9aSeDfH3gnHApFQReEP8jpAEoYU87cHmmv" ], "script": "base64:BgKUAQgCEgUKAwgBCBIDCgEIEgMKAQgSBAoCCAgSBQoDCAEIEgMKAQgSBAoCCAESBgoEAQgIARIFCgMBCAgSAwoBCBIGCgQIAQgIEgUKAwgIARIOCgwICAgBBBEYGBEBARgSCgoICAgIAQQIARgSDgoMCAgIAQQYGBgYGAEYEgoKCAgIAQEBAQEBEgYKBAgICAESBAoCCAhbAAdTRl9QT09MAgJTRgAHV1hfUE9PTAICV1gAD0NBUF9GRUVfTk9fTE9BTgIJY2FwTm9Mb2FuAAxDQVBfRkVFX0xPQU4CB2NhcExvYW4AFFNUT1BMT1NTX0ZFRV9OT19MT0FOAgljYXBOb0xvYW4ADVNUT1BMT1NTX0xPQU4CB2NhcExvYW4ACExPQU5fRkVFAgRsb2FuAAtOT19MT0FOX0ZFRQIGbm9Mb2FuAAZOT19GRUUCBW5vRmVlAAZTQ0FMRTgAgMLXLwAHU0NBTEUxMACAyK+gJQAKRkVFX1NDQUxFNgDAhD0AFGtTRlBvb2xBQXNzZXRCYWxhbmNlAg9BX2Fzc2V0X2JhbGFuY2UAFGtTRlBvb2xCQXNzZ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bm90IGVxdWFsIHRvIGl0c2VsZi4JAAIBAiRTdHJpY3QgdmFsdWUgaXMgbm90IGVxdWFsIHRvIGl0c2VsZi4DCQAAAgUEdHlwZQUHV1hfUE9PTAQJYmFsQmVmb3JlCQEOYWNjb3VudEJhbGFuY2UBBQRXWElEAwkAAAIFCWJhbEJlZm9yZQUJYmFsQmVmb3JlBANpbnYJAPwHBAkBEGdldFdYRmFybWluZ0FkZHIBCQEHQWRkcmVzcwEJANkEAQUEcG9vbAIHY2xhaW1XWAkAzAgCBQRwb29sBQNuaWwFA25pbAMJAAACBQNpbnYFA2ludgQIYmFsQWZ0ZXIJAQ5hY2NvdW50QmFsYW5jZQEFBFdYSUQJAJQKAgUDbmlsCQCUCgIJAGUCBQhiYWxBZnRlcgUJYmFsQmVmb3JlBQRXWElECQACAQIkU3RyaWN0IHZhbHVlIGlzIG5vdCBlcXVhbCB0byBpdHNlbGYuCQACAQIkU3RyaWN0IHZhbHVlIGlzIG5vdCBlcXVhbCB0byBpdHNlbGYuCQACAQIPV3JvbmcgcG9vbCB0eXBlAQJ0eAEGdmVyaWZ5AAkA9AMDCAUCdHgJYm9keUJ5dGVzCQCRAwIIBQJ0eAZwcm9vZnMAAAgFAnR4D3NlbmRlclB1YmxpY0tleUPgVsc=", "height": 2599073, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: ETtGC1P8ePAT56tYtpKM1n92zYeMTc6xxKMrnRp8CATv Next: 68dT47WUUScS9TySW4QnZK7i6Jt4CktNbH5sQZds1dM8 Diff:
OldNewDifferences
769769 }
770770
771771
772+func unstakeLP (pool,pType,shareId,amount) = {
773+ let $t02593926296 = if ((pType == SF_POOL))
774+ then $Tuple3(getSFFarmingAddr(), "withdrawShareTokens", [pool, amount])
775+ else if ((pType == WX_POOL))
776+ then $Tuple3(getWXFarmingAddr(Address(fromBase58String(pool))), "unstake", [shareId, amount])
777+ else throw("Wrong pool type")
778+ let farmAddr = $t02593926296._1
779+ let fName = $t02593926296._2
780+ let params = $t02593926296._3
781+ let inv = invoke(farmAddr, fName, params, nil)
782+ if ((inv == inv))
783+ then amount
784+ else throw("Strict value is not equal to itself.")
785+ }
786+
787+
772788 @Callable(i)
773789 func replenishEVALONLY (pool,leverage,borrowAssetId) = if (if ((100 > leverage))
774790 then true
776792 then throw("Leverage can't be <100 and >300")
777793 else {
778794 let pType = valueOrErrorMessage(getString(this, (kPool + pool)), "Pool is not inited")
779- let $t02616726257 = getPoolData(Address(fromBase58String(pool)), pType)
780- let AId = $t02616726257._1
781- let BId = $t02616726257._2
782- let balA = $t02616726257._3
783- let balB = $t02616726257._4
784- let shareId = $t02616726257._5
785- let $t02626026897 = if ((size(i.payments) == 2))
795+ let $t02667026760 = getPoolData(Address(fromBase58String(pool)), pType)
796+ let AId = $t02667026760._1
797+ let BId = $t02667026760._2
798+ let balA = $t02667026760._3
799+ let balB = $t02667026760._4
800+ let shareId = $t02667026760._5
801+ let $t02676327400 = if ((size(i.payments) == 2))
786802 then if ((assetIdToStr(i.payments[0].assetId) != AId))
787803 then throw("Wrong payment asset A")
788804 else if ((assetIdToStr(i.payments[1].assetId) != BId))
795811 then $Tuple4(0, AId, i.payments[0].amount, BId)
796812 else throw("Wrong payment")
797813 else throw("One or two payments expected")
798- let pmtA = $t02626026897._1
799- let pmtAssetA = $t02626026897._2
800- let pmtB = $t02626026897._3
801- let pmtAssetB = $t02626026897._4
802- let $t02690028351 = if ((leverage > 100))
814+ let pmtA = $t02676327400._1
815+ let pmtAssetA = $t02676327400._2
816+ let pmtB = $t02676327400._3
817+ let pmtAssetB = $t02676327400._4
818+ let $t02740328854 = if ((leverage > 100))
803819 then {
804820 let dPriceA = ( let @ = invoke(priceOracleAddr, "getTWAP60", [pmtAssetA, false], nil)
805821 if ($isInstanceOf(@, "(Int, Int)"))
829845 else throw("Strict value is not equal to itself.")
830846 }
831847 else $Tuple2(replenishByType(pType, pool, NO_LOAN_FEE, pmtA, AId, pmtB, BId, balA, balB, shareId)._1, 0)
832- let userStaked = $t02690028351._1
833- let borrowAmount = $t02690028351._2
834- let $t02835528522 = withdrawAmountCalc(pool, userStaked, borrowAmount, borrowAssetId)
835- if (($t02835528522 == $t02835528522))
848+ let userStaked = $t02740328854._1
849+ let borrowAmount = $t02740328854._2
850+ let $t02885829025 = withdrawAmountCalc(pool, userStaked, borrowAmount, borrowAssetId)
851+ if (($t02885829025 == $t02885829025))
836852 then {
837- let userGetBBeforeRepay = $t02835528522._6
838- let userGetABeforeRepay = $t02835528522._5
839- let assetIdB = $t02835528522._4
840- let toUserAmountB = $t02835528522._3
841- let assetIdA = $t02835528522._2
842- let toUserAmountA = $t02835528522._1
843- let $t02852528640 = getPoolData(Address(fromBase58String(pool)), pType)
844- let AIdAfter = $t02852528640._1
845- let BIdAfter = $t02852528640._2
846- let balAAfter = $t02852528640._3
847- let balBAfter = $t02852528640._4
848- let shareIdAfter = $t02852528640._5
853+ let userGetBBeforeRepay = $t02885829025._6
854+ let userGetABeforeRepay = $t02885829025._5
855+ let assetIdB = $t02885829025._4
856+ let toUserAmountB = $t02885829025._3
857+ let assetIdA = $t02885829025._2
858+ let toUserAmountA = $t02885829025._1
859+ let $t02902829143 = getPoolData(Address(fromBase58String(pool)), pType)
860+ let AIdAfter = $t02902829143._1
861+ let BIdAfter = $t02902829143._2
862+ let balAAfter = $t02902829143._3
863+ let balBAfter = $t02902829143._4
864+ let shareIdAfter = $t02902829143._5
849865 let ratioBefore = fraction(balB, SCALE8, balA)
850866 let ratioAfter = fraction(balBAfter, SCALE8, balAAfter)
851867 let impact = (SCALE8 - fraction(ratioBefore, SCALE8, ratioAfter))
861877
862878 @Callable(i)
863879 func replenishFromLandEVALONLY (requestId) = {
864- let $t02901029114 = parseRequest(requestId)
865- let user = $t02901029114._1
866- let pool = $t02901029114._2
867- let pmtA = $t02901029114._3
868- let AId = $t02901029114._4
869- let pmtB = $t02901029114._5
870- let BId = $t02901029114._6
871- let balA = $t02901029114._7
872- let balB = $t02901029114._8
873- let shareId = $t02901029114._9
874- let bwAsset = $t02901029114._10
875- let bwAmount = $t02901029114._11
880+ let $t02951329617 = parseRequest(requestId)
881+ let user = $t02951329617._1
882+ let pool = $t02951329617._2
883+ let pmtA = $t02951329617._3
884+ let AId = $t02951329617._4
885+ let pmtB = $t02951329617._5
886+ let BId = $t02951329617._6
887+ let balA = $t02951329617._7
888+ let balB = $t02951329617._8
889+ let shareId = $t02951329617._9
890+ let bwAsset = $t02951329617._10
891+ let bwAmount = $t02951329617._11
876892 if ((size(i.payments) != 1))
877893 then throw("Wrong payment size")
878894 else if (if ((assetIdToStr(i.payments[0].assetId) != bwAsset))
880896 else (i.payments[0].amount != bwAmount))
881897 then throw("Wrong payment")
882898 else {
883- let $t02930429428 = if ((AId == bwAsset))
899+ let $t02980729931 = if ((AId == bwAsset))
884900 then $Tuple2((pmtA + i.payments[0].amount), pmtB)
885901 else $Tuple2(pmtA, (pmtB + i.payments[0].amount))
886- let pmtAllA = $t02930429428._1
887- let pmtAllB = $t02930429428._2
902+ let pmtAllA = $t02980729931._1
903+ let pmtAllB = $t02980729931._2
888904 let pType = valueOrErrorMessage(getString(this, (kPool + pool)), "Unknown pool")
889- let $t02951029619 = replenishByType(pType, pool, LOAN_FEE, pmtA, AId, pmtB, BId, balA, balB, shareId)
890- let userStaked = $t02951029619._1
891- let axlyFee = $t02951029619._2
905+ let $t03001330122 = replenishByType(pType, pool, LOAN_FEE, pmtA, AId, pmtB, BId, balA, balB, shareId)
906+ let userStaked = $t03001330122._1
907+ let axlyFee = $t03001330122._2
892908 $Tuple2([IntegerEntry("EVALONLY_STAKEDAMOUNT", userStaked)], userStaked)
893909 }
894910 }
920936 then throw("Leverage can't be <100 and >300")
921937 else {
922938 let pType = valueOrErrorMessage(getString(this, (kPool + pool)), "Pool is not inited")
923- let $t03053530625 = getPoolData(Address(fromBase58String(pool)), pType)
924- let AId = $t03053530625._1
925- let BId = $t03053530625._2
926- let balA = $t03053530625._3
927- let balB = $t03053530625._4
928- let shareId = $t03053530625._5
929- let $t03062831265 = if ((size(i.payments) == 2))
939+ let $t03103831128 = getPoolData(Address(fromBase58String(pool)), pType)
940+ let AId = $t03103831128._1
941+ let BId = $t03103831128._2
942+ let balA = $t03103831128._3
943+ let balB = $t03103831128._4
944+ let shareId = $t03103831128._5
945+ let $t03113131768 = if ((size(i.payments) == 2))
930946 then if ((assetIdToStr(i.payments[0].assetId) != AId))
931947 then throw("Wrong payment asset A")
932948 else if ((assetIdToStr(i.payments[1].assetId) != BId))
939955 then $Tuple4(0, AId, i.payments[0].amount, BId)
940956 else throw("Wrong payment")
941957 else throw("One or two payments expected")
942- let pmtA = $t03062831265._1
943- let pmtAssetA = $t03062831265._2
944- let pmtB = $t03062831265._3
945- let pmtAssetB = $t03062831265._4
958+ let pmtA = $t03113131768._1
959+ let pmtAssetA = $t03113131768._2
960+ let pmtB = $t03113131768._3
961+ let pmtAssetB = $t03113131768._4
946962 let newPosNum = getNewUserPositionNumber(pool, toString(i.caller))
947963 if ((leverage > 100))
948964 then {
974990 else throw("Strict value is not equal to itself.")
975991 }
976992 else {
977- let $t03256232674 = replenishByType(pType, pool, NO_LOAN_FEE, pmtA, AId, pmtB, BId, balA, balB, shareId)
978- let userStaked = $t03256232674._1
979- let axlyFee = $t03256232674._2
993+ let $t03306533177 = replenishByType(pType, pool, NO_LOAN_FEE, pmtA, AId, pmtB, BId, balA, balB, shareId)
994+ let userStaked = $t03306533177._1
995+ let axlyFee = $t03306533177._2
980996 (replenishEntries(pool, toString(i.caller), userStaked, axlyFee, newPosNum, shareId, pType, false) ++ getCursEntries(AId, BId, shareId))
981997 }
982998 }
9851001
9861002 @Callable(i)
9871003 func replenishFromLand (requestId) = {
988- let $t03288532989 = parseRequest(requestId)
989- let user = $t03288532989._1
990- let pool = $t03288532989._2
991- let pmtA = $t03288532989._3
992- let AId = $t03288532989._4
993- let pmtB = $t03288532989._5
994- let BId = $t03288532989._6
995- let balA = $t03288532989._7
996- let balB = $t03288532989._8
997- let shareId = $t03288532989._9
998- let bwAsset = $t03288532989._10
999- let bwAmount = $t03288532989._11
1004+ let $t03338833492 = parseRequest(requestId)
1005+ let user = $t03338833492._1
1006+ let pool = $t03338833492._2
1007+ let pmtA = $t03338833492._3
1008+ let AId = $t03338833492._4
1009+ let pmtB = $t03338833492._5
1010+ let BId = $t03338833492._6
1011+ let balA = $t03338833492._7
1012+ let balB = $t03338833492._8
1013+ let shareId = $t03338833492._9
1014+ let bwAsset = $t03338833492._10
1015+ let bwAmount = $t03338833492._11
10001016 if ((size(i.payments) != 1))
10011017 then throw("Wrong payment size")
10021018 else if (if ((assetIdToStr(i.payments[0].assetId) != bwAsset))
10041020 else (i.payments[0].amount != bwAmount))
10051021 then throw("Wrong payment")
10061022 else {
1007- let $t03317933303 = if ((AId == bwAsset))
1023+ let $t03368233806 = if ((AId == bwAsset))
10081024 then $Tuple2((pmtA + i.payments[0].amount), pmtB)
10091025 else $Tuple2(pmtA, (pmtB + i.payments[0].amount))
1010- let pmtAllA = $t03317933303._1
1011- let pmtAllB = $t03317933303._2
1026+ let pmtAllA = $t03368233806._1
1027+ let pmtAllB = $t03368233806._2
10121028 let pType = valueOrErrorMessage(getString(this, (kPool + pool)), "Unknown pool")
1013- let $t03338533494 = replenishByType(pType, pool, LOAN_FEE, pmtA, AId, pmtB, BId, balA, balB, shareId)
1014- let userStaked = $t03338533494._1
1015- let axlyFee = $t03338533494._2
1029+ let $t03388833997 = replenishByType(pType, pool, LOAN_FEE, pmtA, AId, pmtB, BId, balA, balB, shareId)
1030+ let userStaked = $t03388833997._1
1031+ let axlyFee = $t03388833997._2
10161032 let posNum = getNewUserPositionNumber(pool, toString(i.caller))
10171033 let borrowEntries = [IntegerEntry((((((pool + "_") + user) + "_") + toString(posNum)) + kUserBorrowAmount), bwAmount), StringEntry((((((pool + "_") + user) + "_") + toString(posNum)) + kUserBorrowAssetId), bwAsset)]
10181034 let entries = replenishEntries(pool, user, userStaked, axlyFee, posNum, shareId, pType, true)
10731089
10741090
10751091 @Callable(i)
1076-func liquidate (user,posId,pool,liquidateAmount) = {
1092+func liquidate (user,posId,liquidateAmount) = {
1093+ let pool = valueOrErrorMessage(getString(this, (((user + "_") + posId) + kUserPositionPool)), "no position")
10771094 let pType = valueOrErrorMessage(getString(this, (kPool + pool)), "Pool is not inited")
1078- let $t03618536275 = getPoolData(Address(fromBase58String(pool)), pType)
1079- let AId = $t03618536275._1
1080- let BId = $t03618536275._2
1081- let balA = $t03618536275._3
1082- let balB = $t03618536275._4
1083- let shareId = $t03618536275._5
1084- let pAmount = valueOrErrorMessage(getInteger(this, (((((pool + "_") + user) + "_") + toString(posId)) + kUserPosition)), "Unknown position")
1085- let userInterest = getIntegerValue(this, (((((pool + "_") + user) + "_") + toString(posId)) + kUserPositionInterest))
1086- let poolTotalShare = getPoolTotalShare(pool)
1087- let userAddr = Address(fromBase58String(user))
1088- let borrowAmount = getIntegerValue(this, (((((pool + "_") + user) + "_") + toString(posId)) + kUserBorrowAmount))
1089- let borrowAsset = getStringValue(this, (((((pool + "_") + user) + "_") + toString(posId)) + kUserBorrowAssetId))
1090- let $t03682937182 = if ((borrowAmount > 0))
1091- then $Tuple2({
1092- let @ = invoke(getLendSrvAddr(), "getAssetDebt", [false, ((((pool + "_") + user) + "_") + toString(posId)), borrowAsset], nil)
1093- if ($isInstanceOf(@, "Int"))
1094- then @
1095- else throw(($getType(@) + " couldn't be cast to Int"))
1096- }, getIntegerValue(this, (pool + kPoolInterestLoan)))
1097- else $Tuple2(0, getIntegerValue(this, (pool + kPoolInterestNoLoan)))
1098- let debt = $t03682937182._1
1099- let poolInterest = $t03682937182._2
1100- let userCanWithdraw = (pAmount + fraction(pAmount, (poolInterest - userInterest), SCALE10))
1101- let sharePrice = getSharePrice([shareId])[0]
1102- let borrowAssetPrice = getAssetsPrice([borrowAsset])[0]
1103- let userCanWithdrawInD = fraction(userCanWithdraw, sharePrice, getAssetDecimals(shareId))
1104- let borrowAmountInD = fraction(borrowAmount, borrowAssetPrice, getAssetPrecition(borrowAsset))
1105- let userAmountInD = (userCanWithdrawInD - borrowAmountInD)
1106- nil
1095+ let $t03678036870 = getPoolData(Address(fromBase58String(pool)), pType)
1096+ let AId = $t03678036870._1
1097+ let BId = $t03678036870._2
1098+ let balA = $t03678036870._3
1099+ let balB = $t03678036870._4
1100+ let shareId = $t03678036870._5
1101+ let amount = unstakeLP(pool, pType, shareId, liquidateAmount)
1102+ let borrowAmount = getIntegerValue(this, (((((pool + "_") + user) + "_") + posId) + kUserBorrowAmount))
1103+ let borrowAsset = getStringValue(this, (((((pool + "_") + user) + "_") + posId) + kUserBorrowAssetId))
1104+ let userCanWithdraw = userCanWithdrawShareCalc(user, pool, posId, (borrowAmount > 0))
1105+ if ((borrowAmount > 0))
1106+ then [IntegerEntry((((((pool + "_") + user) + "_") + posId) + kUserPositionInterest), getIntegerValue(this, (pool + kPoolInterestLoan))), IntegerEntry((pool + kPoolTotalLoan), (getPoolTotalShareWithLoan(pool) - liquidateAmount))]
1107+ else ([IntegerEntry((((((pool + "_") + user) + "_") + posId) + kUserPositionInterest), getIntegerValue(this, (pool + kPoolInterestNoLoan)))] ++ [IntegerEntry((pool + kPoolTotal), (getPoolTotalShare(pool) - liquidateAmount)), IntegerEntry((((((pool + "_") + user) + "_") + posId) + kUserPosition), (userCanWithdraw - liquidateAmount)), ScriptTransfer(i.caller, amount, fromBase58String(shareId))])
11071108 }
11081109
11091110
11101111
11111112 @Callable(i)
11121113 func capitalizeExKeeper (pool,type,tokenToId,amountToExchange,claim,amountsIn,addresses,assetsToReceive,estReceived,slippageTolerance,minReceived,options) = {
1113- let $t03796738161 = if (claim)
1114+ let $t03821038404 = if (claim)
11141115 then claimFarmed(type, pool)
11151116 else {
11161117 let claimedAsset = if ((type == SF_POOL))
11181119 else WXID
11191120 $Tuple2(amountToExchange, claimedAsset)
11201121 }
1121- let claimedAmount = $t03796738161._1
1122- let claimedAsset = $t03796738161._2
1122+ let claimedAmount = $t03821038404._1
1123+ let claimedAsset = $t03821038404._2
11231124 let exchangedAmount = exchangeKeeper(tokenToId, amountToExchange, claimedAsset, amountsIn, addresses, assetsToReceive, estReceived, slippageTolerance, minReceived, options)
11241125 let change = (claimedAmount - amountToExchange)
11251126 let changeEntry = if ((change > 0))
11321133
11331134 @Callable(i)
11341135 func capitalizeExPuzzle (pool,type,tokenToId,amountToExchange,claim,routesStr,minToReceive,options) = {
1135- let $t03881839012 = if (claim)
1136+ let $t03906139255 = if (claim)
11361137 then claimFarmed(type, pool)
11371138 else {
11381139 let claimedAsset = if ((type == SF_POOL))
11401141 else WXID
11411142 $Tuple2(amountToExchange, claimedAsset)
11421143 }
1143- let claimedAmount = $t03881839012._1
1144- let claimedAsset = $t03881839012._2
1144+ let claimedAmount = $t03906139255._1
1145+ let claimedAsset = $t03906139255._2
11451146 let exchangedAmount = exchangePuzzle(tokenToId, amountToExchange, claimedAsset, routesStr, minToReceive, options)
11461147 let change = (claimedAmount - amountToExchange)
11471148 let changeEntry = if ((change > 0))
11541155
11551156 @Callable(i)
11561157 func capitalizeExSwopFi (pool,type,tokenToId,amountToExchange,claim,exchangers,exchangersType,args1,args2,routingAssetsKeys,minAmountToReceive,options) = {
1157- let $t03973539929 = if (claim)
1158+ let $t03997840172 = if (claim)
11581159 then claimFarmed(type, pool)
11591160 else {
11601161 let claimedAsset = if ((type == SF_POOL))
11621163 else WXID
11631164 $Tuple2(amountToExchange, claimedAsset)
11641165 }
1165- let claimedAmount = $t03973539929._1
1166- let claimedAsset = $t03973539929._2
1166+ let claimedAmount = $t03997840172._1
1167+ let claimedAsset = $t03997840172._2
11671168 let exchangedAmount = exchangeSwopFi(tokenToId, amountToExchange, claimedAsset, exchangers, exchangersType, args1, args2, routingAssetsKeys, minAmountToReceive, options)
11681169 let change = (claimedAmount - amountToExchange)
11691170 let changeEntry = if ((change > 0))
11801181 else false)
11811182 then throw("Wrong type")
11821183 else {
1183- let $t04062240716 = getPoolData(Address(fromBase58String(poolAddr)), type)
1184- let aId = $t04062240716._1
1185- let bId = $t04062240716._2
1186- let aBal = $t04062240716._3
1187- let bBal = $t04062240716._4
1188- let shareId = $t04062240716._5
1184+ let $t04086540959 = getPoolData(Address(fromBase58String(poolAddr)), type)
1185+ let aId = $t04086540959._1
1186+ let bId = $t04086540959._2
1187+ let aBal = $t04086540959._3
1188+ let bBal = $t04086540959._4
1189+ let shareId = $t04086540959._5
11891190 [IntegerEntry((poolAddr + kAxlyInFeeWithoutLoan), inFeeNoLoan), IntegerEntry((poolAddr + kAxlyInFeeWithLoan), inFeeLoan), IntegerEntry((poolAddr + kAxlyNoLoanCapFee), capFeeNoLoan), IntegerEntry((poolAddr + kAxlyWithLoanCapFee), capFeeWithLoan), IntegerEntry((poolAddr + kAxlyStopLossNoLoanFee), stoplossFeeNoLoan), IntegerEntry((poolAddr + kAxlyStopLossLoanFee), stoplossFeeWithLoan), IntegerEntry((poolAddr + kPoolInterestLoan), 0), IntegerEntry((poolAddr + kPoolInterestNoLoan), 0), StringEntry((kPool + poolAddr), type), StringEntry((shareId + kSharePool), poolAddr)]
11901191 }
11911192
11941195 @Callable(i)
11951196 func capitalizeTest (pool,pType,tokenId,tokenAmount) = {
11961197 let poolAddr = Address(fromBase58String(pool))
1197- let $t04151241591 = getPoolData(poolAddr, pType)
1198- let AId = $t04151241591._1
1199- let BId = $t04151241591._2
1200- let balA = $t04151241591._3
1201- let balB = $t04151241591._4
1202- let shareId = $t04151241591._5
1203- let $t04159441674 = if ((tokenId == AId))
1198+ let $t04175541834 = getPoolData(poolAddr, pType)
1199+ let AId = $t04175541834._1
1200+ let BId = $t04175541834._2
1201+ let balA = $t04175541834._3
1202+ let balB = $t04175541834._4
1203+ let shareId = $t04175541834._5
1204+ let $t04183741917 = if ((tokenId == AId))
12041205 then $Tuple2(tokenAmount, 0)
12051206 else $Tuple2(0, tokenAmount)
1206- let pmtA = $t04159441674._1
1207- let pmtB = $t04159441674._2
1208- let $t04167741781 = replenishByType(pType, pool, NO_FEE, pmtA, AId, pmtB, BId, balA, balB, shareId)
1209- let stakedAmount = $t04167741781._1
1210- let nf = $t04167741781._2
1207+ let pmtA = $t04183741917._1
1208+ let pmtB = $t04183741917._2
1209+ let $t04192042024 = replenishByType(pType, pool, NO_FEE, pmtA, AId, pmtB, BId, balA, balB, shareId)
1210+ let stakedAmount = $t04192042024._1
1211+ let nf = $t04192042024._2
12111212 let curPoolInterestLoan = valueOrElse(getInteger(this, (pool + kPoolInterestLoan)), 0)
12121213 let curPoolInterestNoLoan = valueOrElse(getInteger(this, (pool + kPoolInterestNoLoan)), 0)
12131214 let totalShareAmount = getPoolTotalShare(pool)
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let SF_POOL = "SF"
55
66 let WX_POOL = "WX"
77
88 let CAP_FEE_NO_LOAN = "capNoLoan"
99
1010 let CAP_FEE_LOAN = "capLoan"
1111
1212 let STOPLOSS_FEE_NO_LOAN = "capNoLoan"
1313
1414 let STOPLOSS_LOAN = "capLoan"
1515
1616 let LOAN_FEE = "loan"
1717
1818 let NO_LOAN_FEE = "noLoan"
1919
2020 let NO_FEE = "noFee"
2121
2222 let SCALE8 = 100000000
2323
2424 let SCALE10 = 10000000000
2525
2626 let FEE_SCALE6 = 1000000
2727
2828 let kSFPoolAAssetBalance = "A_asset_balance"
2929
3030 let kSFPoolBAssetBalance = "B_asset_balance"
3131
3232 let kSFPoolAAssetId = "A_asset_id"
3333
3434 let kSFPoolBAssetId = "B_asset_id"
3535
3636 let kSFPoolShareId = "share_asset_id"
3737
3838 let kSFPoolShareSupply = "share_asset_supply"
3939
4040 let kSFPoolFee = "commission"
4141
4242 let kUserPosition = "_user_position"
4343
4444 let kUserPositionPool = "_user_position_pool"
4545
4646 let kUserBorrowAmount = "_user_position_borrow_amount"
4747
4848 let kUserBorrowAssetId = "_user_position_borrow_asset_id"
4949
5050 let kUserPositionNum = "_user_position_number"
5151
5252 let kUserPositionInterest = "_user_position_interest"
5353
5454 let kPoolTotal = "_pool_total"
5555
5656 let kPoolTotalLoan = "_pool_total_loan"
5757
5858 let kPoolInterestLoan = "_pool_interest_loan"
5959
6060 let kPoolInterestNoLoan = "_pool_interest_no_loan"
6161
6262 let kAxlyInFeeWithoutLoan = "_axly_fee_without_loan"
6363
6464 let kAxlyInFeeWithLoan = "_axly_fee_with_loan"
6565
6666 let kAxlyNoLoanCapFee = "_axly_fee_cap_with_loan"
6767
6868 let kAxlyWithLoanCapFee = "_axly_fee_cap_no_loan"
6969
7070 let kAxlyStopLossNoLoanFee = "_axly_fee_stoploss_with_loan"
7171
7272 let kAxlyStopLossLoanFee = "_axly_fee_stoploss_no_loan"
7373
7474 let kRequestId = "_request_id"
7575
7676 let kRequestIter = "requests_iter"
7777
7878 let kPool = "pool_"
7979
8080 let kSharePool = "_pool_share_id"
8181
8282 let kPoolCapChange = "_pool_cap_change"
8383
8484 let kTokenLastPrice = "_last_price"
8585
8686 let kUserStopLoss = "_stop_loss"
8787
8888 let kMoneyBox = "axly_money_box"
8989
9090 let kSFFarmingAddr = "swopfi_farming_addr"
9191
9292 let kLendService = "lend_service_addr"
9393
9494 let kPriceOracle = "price_oracle"
9595
9696 let kExContract = "exchange_contract"
9797
9898 let kWxSwapContract = "wx_swap_contract"
9999
100100 let moneyBox = Address(fromBase58String(valueOrErrorMessage(getString(this, kMoneyBox), "No axly moneyBox address")))
101101
102102 let exContract = Address(fromBase58String(valueOrErrorMessage(getString(this, kExContract), "No exchange contract address")))
103103
104104 let priceOracleAddr = Address(fromBase58String(valueOrErrorMessage(getString(this, kPriceOracle), "No price oracle address")))
105105
106106 let wxSwapContract = Address(fromBase58String(valueOrErrorMessage(getString(this, kWxSwapContract), "No wx swap address")))
107107
108108 let SWOPID = base58'4W19ndijcc2CsQa9HGW2dfXKTVXhnneWWttxXrtjPmEp'
109109
110110 let WXID = base58'EMAMLxDnv3xiz8RXg8Btj33jcEw3wLczL3JKYYmuubpc'
111111
112112 func isSelfCall (i) = if ((i.caller == this))
113113 then unit
114114 else throw("Only contract itself can call this function")
115115
116116
117117 func accountBalance (assetId) = match assetId {
118118 case id: ByteVector =>
119119 assetBalance(this, id)
120120 case waves: Unit =>
121121 wavesBalance(this).available
122122 case _ =>
123123 throw("Match error")
124124 }
125125
126126
127127 func getSFPoolData (poolAddr) = $Tuple5(valueOrErrorMessage(getString(poolAddr, kSFPoolAAssetId), "Can't get pool A asset id"), valueOrErrorMessage(getString(poolAddr, kSFPoolBAssetId), "Can't get pool B asset id"), valueOrErrorMessage(getInteger(poolAddr, kSFPoolAAssetBalance), "Can't get pool A asset balance"), valueOrErrorMessage(getInteger(poolAddr, kSFPoolBAssetBalance), "Can't get pool B asset balance"), valueOrErrorMessage(getString(poolAddr, kSFPoolShareId), "Can't get share asset id"))
128128
129129
130130 func getWXPoolData (poolAddr) = {
131131 let cfg = {
132132 let @ = invoke(poolAddr, "getPoolConfigWrapperREADONLY", nil, nil)
133133 if ($isInstanceOf(@, "List[Any]"))
134134 then @
135135 else throw(($getType(@) + " couldn't be cast to List[Any]"))
136136 }
137137 if ((cfg == cfg))
138138 then {
139139 let aId = valueOrErrorMessage({
140140 let @ = cfg[4]
141141 if ($isInstanceOf(@, "String"))
142142 then @
143143 else unit
144144 }, "Can't get pool A asset id")
145145 let bId = valueOrErrorMessage({
146146 let @ = cfg[5]
147147 if ($isInstanceOf(@, "String"))
148148 then @
149149 else unit
150150 }, "Can't get pool B asset id")
151151 let shareId = valueOrErrorMessage({
152152 let @ = cfg[3]
153153 if ($isInstanceOf(@, "String"))
154154 then @
155155 else unit
156156 }, "Can't get pool LP asset id")
157157 let balA = {
158158 let @ = invoke(poolAddr, "getAccBalanceWrapperREADONLY", [aId], nil)
159159 if ($isInstanceOf(@, "Int"))
160160 then @
161161 else throw(($getType(@) + " couldn't be cast to Int"))
162162 }
163163 if ((balA == balA))
164164 then {
165165 let balB = {
166166 let @ = invoke(poolAddr, "getAccBalanceWrapperREADONLY", [bId], nil)
167167 if ($isInstanceOf(@, "Int"))
168168 then @
169169 else throw(($getType(@) + " couldn't be cast to Int"))
170170 }
171171 if ((balB == balB))
172172 then $Tuple5(aId, bId, balA, balB, shareId)
173173 else throw("Strict value is not equal to itself.")
174174 }
175175 else throw("Strict value is not equal to itself.")
176176 }
177177 else throw("Strict value is not equal to itself.")
178178 }
179179
180180
181181 func getPoolData (poolAddr,type) = if ((type == SF_POOL))
182182 then getSFPoolData(poolAddr)
183183 else if ((type == WX_POOL))
184184 then getWXPoolData(poolAddr)
185185 else throw("Wrong pool type")
186186
187187
188188 func getShareSupply (poolAddr,type,shareId) = if ((type == SF_POOL))
189189 then valueOrErrorMessage(getInteger(poolAddr, kSFPoolShareSupply), "Can't get share asset supply")
190190 else if ((type == WX_POOL))
191191 then valueOrErrorMessage(assetInfo(fromBase58String(shareId)), "Wrong ShareId").quantity
192192 else throw("Wrong pool type")
193193
194194
195195 func getPoolTotalShare (pool) = valueOrElse(getInteger(this, (pool + kPoolTotal)), 0)
196196
197197
198198 func getPoolTotalShareWithLoan (pool) = valueOrElse(getInteger(this, (pool + kPoolTotalLoan)), 0)
199199
200200
201201 func getNewUserPositionNumber (pool,user) = (valueOrElse(getInteger(this, (user + kUserPositionNum)), 0) + 1)
202202
203203
204204 func getAxlyFee (pool,feeType) = if ((feeType == CAP_FEE_LOAN))
205205 then getIntegerValue(this, (pool + kAxlyWithLoanCapFee))
206206 else if ((feeType == CAP_FEE_NO_LOAN))
207207 then getIntegerValue(this, (pool + kAxlyNoLoanCapFee))
208208 else if ((feeType == LOAN_FEE))
209209 then getIntegerValue(this, (pool + kAxlyInFeeWithLoan))
210210 else if ((feeType == NO_LOAN_FEE))
211211 then getIntegerValue(this, (pool + kAxlyInFeeWithoutLoan))
212212 else throw("Wrong fee type")
213213
214214
215215 func getSFFarmingAddr () = Address(fromBase58String(valueOrErrorMessage(getString(this, kSFFarmingAddr), "Can't get swopfi farming addr")))
216216
217217
218218 func getWXFarmingAddr (poolAddr) = {
219219 let fContract = Address(fromBase58String(valueOrErrorMessage(getString(poolAddr, "%s__factoryContract"), "Can't get WX factory contract addr")))
220220 let factroyCfg = split(valueOrErrorMessage(getString(fContract, "%s__factoryConfig"), "Can't get WX factory cfg"), "__")
221221 Address(fromBase58String(factroyCfg[1]))
222222 }
223223
224224
225225 func getLendSrvAddr () = Address(fromBase58String(valueOrErrorMessage(getString(this, kLendService), "Can't get lend service addr")))
226226
227227
228228 func assetIdToStr (assetId) = match assetId {
229229 case id: ByteVector =>
230230 toBase58String(id)
231231 case waves: Unit =>
232232 "WAVES"
233233 case _ =>
234234 throw("Match error")
235235 }
236236
237237
238238 func assetIdFromStr (assetId) = if ((assetId == "WAVES"))
239239 then unit
240240 else fromBase58String(assetId)
241241
242242
243243 func getAssetDecimals (assetId) = if ((assetId == "WAVES"))
244244 then 8
245245 else match assetInfo(fromBase58String(assetId)) {
246246 case asset: Asset =>
247247 asset.decimals
248248 case _ =>
249249 throw("Can't find asset")
250250 }
251251
252252
253253 func getAssetPrecition (assetId) = pow(10, 0, getAssetDecimals(assetId), 0, 0, DOWN)
254254
255255
256256 func getAssetsPrice (assetIds) = {
257257 func getPrices (a,assetId) = {
258258 let assetPrice = ( let @ = invoke(priceOracleAddr, "getTWAP60", [assetId, false], nil)
259259 if ($isInstanceOf(@, "(Int, Int)"))
260260 then @
261261 else throw(($getType(@) + " couldn't be cast to (Int, Int)")))._2
262262 (a :+ assetPrice)
263263 }
264264
265265 let $l = assetIds
266266 let $s = size($l)
267267 let $acc0 = nil
268268 func $f0_1 ($a,$i) = if (($i >= $s))
269269 then $a
270270 else getPrices($a, $l[$i])
271271
272272 func $f0_2 ($a,$i) = if (($i >= $s))
273273 then $a
274274 else throw("List size exceeds 100")
275275
276276 $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($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), 51), 52), 53), 54), 55), 56), 57), 58), 59), 60), 61), 62), 63), 64), 65), 66), 67), 68), 69), 70), 71), 72), 73), 74), 75), 76), 77), 78), 79), 80), 81), 82), 83), 84), 85), 86), 87), 88), 89), 90), 91), 92), 93), 94), 95), 96), 97), 98), 99), 100)
277277 }
278278
279279
280280 func getSharePrice (shareIds) = {
281281 func getPrices (a,shareId) = {
282282 let pool = valueOrErrorMessage(getString(this, (shareId + kSharePool)), "Can't find pool addr by share id")
283283 let poolAddr = Address(fromBase58String(pool))
284284 let pType = valueOrErrorMessage(getString(this, (kPool + pool)), "Pool is not inited")
285285 let $t083768441 = getPoolData(poolAddr, pType)
286286 let aId = $t083768441._1
287287 let bId = $t083768441._2
288288 let aBalance = $t083768441._3
289289 let bBalance = $t083768441._4
290290 let dPriceA = ( let @ = invoke(priceOracleAddr, "getTWAP60", [aId, false], nil)
291291 if ($isInstanceOf(@, "(Int, Int)"))
292292 then @
293293 else throw(($getType(@) + " couldn't be cast to (Int, Int)")))._2
294294 let dPriceB = ( let @ = invoke(priceOracleAddr, "getTWAP60", [bId, false], nil)
295295 if ($isInstanceOf(@, "(Int, Int)"))
296296 then @
297297 else throw(($getType(@) + " couldn't be cast to (Int, Int)")))._2
298298 let shareSupply = getShareSupply(poolAddr, pType, shareId)
299299 let APrecision = pow(10, 0, getAssetDecimals(aId), 0, 0, DOWN)
300300 let BPrecision = pow(10, 0, getAssetDecimals(bId), 0, 0, DOWN)
301301 let sharePrecision = pow(10, 0, getAssetDecimals(shareId), 0, 0, DOWN)
302302 let sum = (fraction(aBalance, dPriceA, APrecision) + fraction(bBalance, dPriceB, BPrecision))
303303 let sharePrice = fraction(sum, sharePrecision, shareSupply)
304304 (a :+ sharePrice)
305305 }
306306
307307 let $l = shareIds
308308 let $s = size($l)
309309 let $acc0 = nil
310310 func $f0_1 ($a,$i) = if (($i >= $s))
311311 then $a
312312 else getPrices($a, $l[$i])
313313
314314 func $f0_2 ($a,$i) = if (($i >= $s))
315315 then $a
316316 else throw("List size exceeds 50")
317317
318318 $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)
319319 }
320320
321321
322322 func getCursEntries (aId,bId,shareId) = {
323323 let assetsPrices = getAssetsPrice([aId, bId])
324324 let sharePrice = getSharePrice([shareId])
325325 [IntegerEntry((aId + kTokenLastPrice), assetsPrices[0]), IntegerEntry((bId + kTokenLastPrice), assetsPrices[1]), IntegerEntry((shareId + kTokenLastPrice), sharePrice[0])]
326326 }
327327
328328
329329 func replenishSwopFi (pool,feeType,pmtA,pmtAssetA,pmtB,pmtAssetB,balA,balB,shareId) = {
330330 let shareBalanceBefore = accountBalance(fromBase58String(shareId))
331331 if ((shareBalanceBefore == shareBalanceBefore))
332332 then {
333333 let poolAddr = Address(fromBase58String(pool))
334334 let ratioA = fraction(SCALE8, pmtA, balA)
335335 let ratioB = fraction(SCALE8, pmtB, balB)
336336 let $t0994610238 = if ((ratioB > ratioA))
337337 then {
338338 let pmt = fraction(balB, ratioA, SCALE8, CEILING)
339339 $Tuple4(pmtA, pmt, (pmtB - pmt), pmtAssetB)
340340 }
341341 else {
342342 let pmt = fraction(balA, ratioB, SCALE8, CEILING)
343343 $Tuple4(pmt, pmtB, (pmtA - pmt), pmtAssetA)
344344 }
345345 let pmtAmountA = $t0994610238._1
346346 let pmtAmountB = $t0994610238._2
347347 let change = $t0994610238._3
348348 let changeAssetId = $t0994610238._4
349349 let inv1 = if (if ((pmtAmountA > 0))
350350 then (pmtAmountB > 0)
351351 else false)
352352 then {
353353 let payments = [AttachedPayment(assetIdFromStr(pmtAssetA), pmtAmountA), AttachedPayment(assetIdFromStr(pmtAssetB), pmtAmountB)]
354354 invoke(poolAddr, "callFunction", ["replenishWithTwoTokens", ["false", "0"]], payments)
355355 }
356356 else 0
357357 if ((inv1 == inv1))
358358 then {
359359 let inv2 = if ((change > 0))
360360 then {
361361 let payments = [AttachedPayment(assetIdFromStr(changeAssetId), change)]
362362 let vars = ["0", "false", "0"]
363363 invoke(poolAddr, "callFunction", ["replenishWithOneToken", vars], payments)
364364 }
365365 else 0
366366 if ((inv2 == inv2))
367367 then {
368368 let shareBalanceAfter = accountBalance(fromBase58String(shareId))
369369 let totalStaked = (shareBalanceAfter - shareBalanceBefore)
370370 let axlyFeeAmount = fraction(totalStaked, getAxlyFee(pool, feeType), FEE_SCALE6)
371371 let userShareForStake = (totalStaked - axlyFeeAmount)
372372 if ((0 >= userShareForStake))
373373 then throw("amount of staked sharetokens must be > 0")
374374 else {
375375 let inv3 = invoke(getSFFarmingAddr(), "lockShareTokens", [pool, 0], [AttachedPayment(fromBase58String(shareId), userShareForStake)])
376376 if ((inv3 == inv3))
377377 then $Tuple2(userShareForStake, axlyFeeAmount)
378378 else throw("Strict value is not equal to itself.")
379379 }
380380 }
381381 else throw("Strict value is not equal to itself.")
382382 }
383383 else throw("Strict value is not equal to itself.")
384384 }
385385 else throw("Strict value is not equal to itself.")
386386 }
387387
388388
389389 func replenishWX (pool,feeType,pmtA,pmtAssetA,pmtB,pmtAssetB,shareId) = {
390390 let poolAddr = Address(fromBase58String(pool))
391391 let $t01168912538 = if (if ((pmtA > 0))
392392 then (pmtB > 0)
393393 else false)
394394 then {
395395 let evalPutInA = split({
396396 let @ = invoke(poolAddr, "evaluatePutByAmountAssetREADONLY", [pmtA], nil)
397397 if ($isInstanceOf(@, "String"))
398398 then @
399399 else throw(($getType(@) + " couldn't be cast to String"))
400400 }, "__")
401401 if ((evalPutInA == evalPutInA))
402402 then {
403403 let evalPutInB = split({
404404 let @ = invoke(poolAddr, "evaluatePutByPriceAssetREADONLY", [pmtB], nil)
405405 if ($isInstanceOf(@, "String"))
406406 then @
407407 else throw(($getType(@) + " couldn't be cast to String"))
408408 }, "__")
409409 if ((evalPutInB == evalPutInB))
410410 then {
411411 let lpInA = parseIntValue(evalPutInA[1])
412412 let lpInB = parseIntValue(evalPutInB[1])
413413 if ((lpInB > lpInA))
414414 then {
415415 let pmtInB = parseIntValue(evalPutInA[8])
416416 $Tuple4(pmtA, pmtInB, (pmtB - pmtInB), pmtAssetB)
417417 }
418418 else {
419419 let pmtInA = parseIntValue(evalPutInB[7])
420420 $Tuple4(pmtInA, pmtB, (pmtA - pmtInA), pmtAssetA)
421421 }
422422 }
423423 else throw("Strict value is not equal to itself.")
424424 }
425425 else throw("Strict value is not equal to itself.")
426426 }
427427 else if ((pmtA > 0))
428428 then $Tuple4(pmtA, pmtB, pmtA, pmtAssetA)
429429 else if ((pmtB > 0))
430430 then $Tuple4(pmtA, pmtB, pmtB, pmtAssetB)
431431 else throw("pmts must be > 0")
432432 let pmtAmountA = $t01168912538._1
433433 let pmtAmountB = $t01168912538._2
434434 let change = $t01168912538._3
435435 let changeAssetId = $t01168912538._4
436436 let shareBalanceBefore = accountBalance(fromBase58String(shareId))
437437 if ((shareBalanceBefore == shareBalanceBefore))
438438 then {
439439 let inv1 = if (if ((pmtAmountA > 0))
440440 then (pmtAmountB > 0)
441441 else false)
442442 then {
443443 let payments = [AttachedPayment(assetIdFromStr(pmtAssetA), pmtAmountA), AttachedPayment(assetIdFromStr(pmtAssetB), pmtAmountB)]
444444 invoke(poolAddr, "put", [1000000, false], payments)
445445 }
446446 else 0
447447 if ((inv1 == inv1))
448448 then {
449449 let inv2 = if ((change > 0))
450450 then {
451451 let payments = [AttachedPayment(assetIdFromStr(changeAssetId), change)]
452452 invoke(poolAddr, "putOneTkn", [0, false], payments)
453453 }
454454 else 0
455455 if ((inv2 == inv2))
456456 then {
457457 let shareBalanceAfter = accountBalance(fromBase58String(shareId))
458458 let totalStaked = (shareBalanceAfter - shareBalanceBefore)
459459 let axlyFeeAmount = fraction(totalStaked, getAxlyFee(pool, feeType), FEE_SCALE6)
460460 let userShareForStake = (totalStaked - axlyFeeAmount)
461461 if ((0 >= userShareForStake))
462462 then throw("amount of staked sharetokens must be > 0")
463463 else {
464464 let inv3 = invoke(getWXFarmingAddr(poolAddr), "stake", nil, [AttachedPayment(fromBase58String(shareId), userShareForStake)])
465465 if ((inv3 == inv3))
466466 then $Tuple2(userShareForStake, axlyFeeAmount)
467467 else throw("Strict value is not equal to itself.")
468468 }
469469 }
470470 else throw("Strict value is not equal to itself.")
471471 }
472472 else throw("Strict value is not equal to itself.")
473473 }
474474 else throw("Strict value is not equal to itself.")
475475 }
476476
477477
478478 func replenishByType (type,pool,feeType,pmtA,AId,pmtB,BId,balA,balB,shareId) = if ((type == SF_POOL))
479479 then replenishSwopFi(pool, feeType, pmtA, AId, pmtB, BId, balA, balB, shareId)
480480 else if ((type == WX_POOL))
481481 then replenishWX(pool, feeType, pmtA, AId, pmtB, BId, shareId)
482482 else throw("Wrong pool type")
483483
484484
485485 func replenishEntries (pool,user,stakedAmount,axlyFeeAmount,posNum,shareId,type,withLoan) = {
486486 let totalAmount = getPoolTotalShare(pool)
487487 let totalAmountLoan = getPoolTotalShareWithLoan(pool)
488488 let $t01455614794 = if (withLoan)
489489 then $Tuple2(getIntegerValue(this, (pool + kPoolInterestLoan)), (totalAmountLoan + stakedAmount))
490490 else $Tuple2(getIntegerValue(this, (pool + kPoolInterestNoLoan)), totalAmountLoan)
491491 let curPoolInterest = $t01455614794._1
492492 let totalStakedWithLoan = $t01455614794._2
493493 [IntegerEntry((pool + kPoolTotal), (totalAmount + stakedAmount)), IntegerEntry((pool + kPoolTotalLoan), (totalAmountLoan + stakedAmount)), 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))]
494494 }
495495
496496
497497 func claimFarmed (type,pool) = if ((type == SF_POOL))
498498 then {
499499 let balBefore = accountBalance(SWOPID)
500500 if ((balBefore == balBefore))
501501 then {
502502 let inv = invoke(getSFFarmingAddr(), "claim", [pool], nil)
503503 if ((inv == inv))
504504 then {
505505 let balAfter = accountBalance(SWOPID)
506506 $Tuple2((balAfter - balBefore), SWOPID)
507507 }
508508 else throw("Strict value is not equal to itself.")
509509 }
510510 else throw("Strict value is not equal to itself.")
511511 }
512512 else if ((type == WX_POOL))
513513 then {
514514 let balBefore = accountBalance(WXID)
515515 if ((balBefore == balBefore))
516516 then {
517517 let inv = invoke(getWXFarmingAddr(Address(fromBase58String(pool))), "claimWX", [pool], nil)
518518 if ((inv == inv))
519519 then {
520520 let balAfter = accountBalance(WXID)
521521 $Tuple2((balAfter - balBefore), WXID)
522522 }
523523 else throw("Strict value is not equal to itself.")
524524 }
525525 else throw("Strict value is not equal to itself.")
526526 }
527527 else throw("Wrong pool type")
528528
529529
530530 func exchangeKeeper (toToken,pmtAmount,pmtAsset,amountsIn,addresses,assetsToReceive,estReceived,slippageTolerance,minReceived,options) = {
531531 let tokenBalanceBefore = accountBalance(assetIdFromStr(toToken))
532532 if ((tokenBalanceBefore == tokenBalanceBefore))
533533 then {
534534 let inv = invoke(exContract, "swap", [amountsIn, addresses, assetsToReceive, estReceived, slippageTolerance, minReceived, options], [AttachedPayment(pmtAsset, pmtAmount)])
535535 if ((inv == inv))
536536 then (accountBalance(assetIdFromStr(toToken)) - tokenBalanceBefore)
537537 else throw("Strict value is not equal to itself.")
538538 }
539539 else throw("Strict value is not equal to itself.")
540540 }
541541
542542
543543 func exchangePuzzle (toToken,pmtAmount,pmtAsset,routesStr,minToReceive,options) = {
544544 let tokenBalanceBefore = accountBalance(assetIdFromStr(toToken))
545545 if ((tokenBalanceBefore == tokenBalanceBefore))
546546 then {
547547 let inv = invoke(exContract, "puzzleSwap", [routesStr, minToReceive, options], [AttachedPayment(pmtAsset, pmtAmount)])
548548 if ((inv == inv))
549549 then (accountBalance(assetIdFromStr(toToken)) - tokenBalanceBefore)
550550 else throw("Strict value is not equal to itself.")
551551 }
552552 else throw("Strict value is not equal to itself.")
553553 }
554554
555555
556556 func exchangeSwopFi (toToken,pmtAmount,pmtAsset,exchangers,exchangersType,args1,args2,routingAssetsKeys,minAmountToReceive,options) = {
557557 let tokenBalanceBefore = accountBalance(assetIdFromStr(toToken))
558558 if ((tokenBalanceBefore == tokenBalanceBefore))
559559 then {
560560 let inv = invoke(exContract, "swopfiSwap", [exchangers, exchangersType, args1, args2, routingAssetsKeys, minAmountToReceive, options], [AttachedPayment(pmtAsset, pmtAmount)])
561561 if ((inv == inv))
562562 then (accountBalance(assetIdFromStr(toToken)) - tokenBalanceBefore)
563563 else throw("Strict value is not equal to itself.")
564564 }
565565 else throw("Strict value is not equal to itself.")
566566 }
567567
568568
569569 func capitalize (pool,pType,tokenId,tokenAmount) = {
570570 let poolAddr = Address(fromBase58String(pool))
571571 let $t01776017839 = getPoolData(poolAddr, pType)
572572 let AId = $t01776017839._1
573573 let BId = $t01776017839._2
574574 let balA = $t01776017839._3
575575 let balB = $t01776017839._4
576576 let shareId = $t01776017839._5
577577 let $t01784217922 = if ((tokenId == AId))
578578 then $Tuple2(tokenAmount, 0)
579579 else $Tuple2(0, tokenAmount)
580580 let pmtA = $t01784217922._1
581581 let pmtB = $t01784217922._2
582582 let $t01792518029 = replenishByType(pType, pool, NO_FEE, pmtA, AId, pmtB, BId, balA, balB, shareId)
583583 let stakedAmount = $t01792518029._1
584584 let nf = $t01792518029._2
585585 let curPoolInterestLoan = valueOrElse(getInteger(this, (pool + kPoolInterestLoan)), 0)
586586 let curPoolInterestNoLoan = valueOrElse(getInteger(this, (pool + kPoolInterestNoLoan)), 0)
587587 let totalShareAmount = getPoolTotalShare(pool)
588588 let totalShareAmountWithLoan = getPoolTotalShareWithLoan(pool)
589589 let loanPercent = fraction(totalShareAmountWithLoan, SCALE8, totalShareAmount)
590590 let stakedLoan = fraction(stakedAmount, loanPercent, SCALE8)
591591 let stakedNoLoan = (stakedAmount - stakedLoan)
592592 let newInterestLoan = (curPoolInterestLoan + fraction(stakedLoan, SCALE10, totalShareAmountWithLoan))
593593 let newInterestNoLoan = (curPoolInterestNoLoan + fraction(stakedNoLoan, SCALE10, (totalShareAmount - totalShareAmountWithLoan)))
594594 let axlyFeeLoan = fraction(stakedLoan, getAxlyFee(pool, CAP_FEE_LOAN), FEE_SCALE6)
595595 let axlyFeeNoLoan = fraction(stakedNoLoan, getAxlyFee(pool, CAP_FEE_NO_LOAN), FEE_SCALE6)
596596 ([IntegerEntry((pool + kPoolInterestLoan), newInterestLoan), IntegerEntry((pool + kPoolInterestNoLoan), newInterestNoLoan), IntegerEntry((pool + kPoolTotal), (((totalShareAmount + stakedAmount) - axlyFeeLoan) - axlyFeeNoLoan)), IntegerEntry((pool + kPoolTotalLoan), ((totalShareAmountWithLoan + stakedLoan) - axlyFeeLoan)), ScriptTransfer(moneyBox, (axlyFeeLoan + axlyFeeNoLoan), fromBase58String(shareId))] ++ getCursEntries(AId, BId, shareId))
597597 }
598598
599599
600600 func exchangeDirectlySF (pool,assetIdA,assetIdB,balA,balB,amountTokenToGet,assetTokenToGet) = {
601601 let poolAddr = Address(fromBase58String(pool))
602602 let feeScale6 = 1000000
603603 let fee = getIntegerValue(poolAddr, kSFPoolFee)
604604 let amntGetNoFee = fraction(amountTokenToGet, feeScale6, (feeScale6 - fee))
605605 let $t01971720005 = if ((assetTokenToGet == assetIdA))
606606 then {
607607 let amountToPay = fraction(balA, amntGetNoFee, (balB - amntGetNoFee))
608608 $Tuple2(amountToPay, assetIdB)
609609 }
610610 else {
611611 let amountToPay = fraction(balB, amntGetNoFee, (balA - amntGetNoFee))
612612 $Tuple2(amountToPay, assetIdA)
613613 }
614614 let amountToPay = $t01971720005._1
615615 let assetToPay = $t01971720005._2
616616 invoke(poolAddr, "callFunction", ["exchange", ["1"]], [AttachedPayment(assetIdFromStr(assetToPay), amountToPay)])
617617 }
618618
619619
620620 func exchangeDirectlyWX (pool,assetIdA,assetIdB,balA,balB,amountTokenToGet,assetTokenToGet) = {
621621 let poolAddr = Address(fromBase58String(pool))
622622 let prFee = getIntegerValue(wxSwapContract, "%s__protocolFee")
623623 let pFee = getIntegerValue(wxSwapContract, "%s__poolFee")
624624 let feeScale = toBigInt(100000000)
625625 let $t02048420792 = if ((assetTokenToGet == assetIdA))
626626 then {
627627 let amountToPay = fraction(balA, amountTokenToGet, (balB - amountTokenToGet))
628628 $Tuple2(amountToPay, assetIdB)
629629 }
630630 else {
631631 let amountToPay = fraction(balB, amountTokenToGet, (balA - amountTokenToGet))
632632 $Tuple2(amountToPay, assetIdA)
633633 }
634634 let amountToPay = $t02048420792._1
635635 let assetToPay = $t02048420792._2
636636 let amountToPayWithFee = toInt(fraction(toBigInt(amountToPay), feeScale, (feeScale - toBigInt((prFee + pFee)))))
637637 invoke(wxSwapContract, "swap", [1, assetTokenToGet, toString(this)], [AttachedPayment(assetIdFromStr(assetToPay), amountToPayWithFee)])
638638 }
639639
640640
641641 func exchangeDirectly (type,pool,assetIdA,assetIdB,balA,balB,amountTokenToGet,assetTokenToGet) = if ((type == SF_POOL))
642642 then exchangeDirectlySF(pool, assetIdA, assetIdB, balA, balB, amountTokenToGet, assetTokenToGet)
643643 else exchangeDirectlyWX(pool, assetIdA, assetIdB, balA, balB, amountTokenToGet, assetTokenToGet)
644644
645645
646646 func withdrawAmountCalc (pool,userCanWithdraw,debt,borrowAsset) = {
647647 let poolAddr = Address(fromBase58String(pool))
648648 let pType = valueOrErrorMessage(getString(this, (kPool + pool)), "Unknown pool")
649649 let $t02165721733 = getPoolData(poolAddr, pType)
650650 let assetIdA = $t02165721733._1
651651 let assetIdB = $t02165721733._2
652652 let balA = $t02165721733._3
653653 let balB = $t02165721733._4
654654 let shareId = $t02165721733._5
655655 let cBalABefore = accountBalance(assetIdFromStr(assetIdA))
656656 if ((cBalABefore == cBalABefore))
657657 then {
658658 let cBalBBefore = accountBalance(assetIdFromStr(assetIdB))
659659 if ((cBalBBefore == cBalBBefore))
660660 then {
661661 let inv = if ((pType == SF_POOL))
662662 then invoke(poolAddr, "callFunction", ["withdraw", [toString(userCanWithdraw)]], nil)
663663 else if ((pType == WX_POOL))
664664 then invoke(poolAddr, "unstakeAndGet", [userCanWithdraw], nil)
665665 else throw("Wrong position type")
666666 if ((inv == inv))
667667 then {
668668 let cBalAAfter = accountBalance(assetIdFromStr(assetIdA))
669669 let cBalBAfter = accountBalance(assetIdFromStr(assetIdB))
670670 let $t02224522334 = $Tuple2((cBalAAfter - cBalABefore), (cBalBAfter - cBalBBefore))
671671 let tokensAmountA = $t02224522334._1
672672 let tokensAmountB = $t02224522334._2
673673 let $t02233723033 = if ((debt > 0))
674674 then {
675675 let amountToGetEx = if (if ((borrowAsset == assetIdA))
676676 then (debt > tokensAmountA)
677677 else false)
678678 then (debt - tokensAmountA)
679679 else if (if ((borrowAsset == assetIdB))
680680 then (debt > tokensAmountB)
681681 else false)
682682 then (debt - tokensAmountB)
683683 else 0
684684 let exInv = if ((amountToGetEx > 0))
685685 then exchangeDirectly(pType, pool, assetIdA, assetIdB, balA, balB, amountToGetEx, borrowAsset)
686686 else 0
687687 if ((exInv == exInv))
688688 then {
689689 let cBalAAfterRepay = accountBalance(assetIdFromStr(assetIdA))
690690 let cBalBAfterRepay = accountBalance(assetIdFromStr(assetIdB))
691691 $Tuple2((cBalAAfterRepay - cBalABefore), (cBalBAfterRepay - cBalBBefore))
692692 }
693693 else throw("Strict value is not equal to itself.")
694694 }
695695 else $Tuple2(tokensAmountA, tokensAmountB)
696696 let toUserAmountA = $t02233723033._1
697697 let toUserAmountB = $t02233723033._2
698698 $Tuple7(toUserAmountA, assetIdA, toUserAmountB, assetIdB, cBalAAfter, cBalBAfter, shareId)
699699 }
700700 else throw("Strict value is not equal to itself.")
701701 }
702702 else throw("Strict value is not equal to itself.")
703703 }
704704 else throw("Strict value is not equal to itself.")
705705 }
706706
707707
708708 func userCanWithdrawShareCalc (user,pool,posId,borrowed) = {
709709 let pAmount = valueOrErrorMessage(getInteger(this, (((((pool + "_") + user) + "_") + posId) + kUserPosition)), "Unknown position")
710710 let userInterest = getIntegerValue(this, (((((pool + "_") + user) + "_") + posId) + kUserPositionInterest))
711711 let poolInterest = if (borrowed)
712712 then getIntegerValue(this, (pool + kPoolInterestLoan))
713713 else getIntegerValue(this, (pool + kPoolInterestNoLoan))
714714 (pAmount + fraction(pAmount, (poolInterest - userInterest), SCALE10))
715715 }
716716
717717
718718 func withdrawToUser (user,pool,posId,stopLoss) = {
719719 let pAmount = valueOrErrorMessage(getInteger(this, (((((pool + "_") + user) + "_") + posId) + kUserPosition)), "Unknown position")
720720 let userInterest = getIntegerValue(this, (((((pool + "_") + user) + "_") + posId) + kUserPositionInterest))
721721 let borrowAmount = getIntegerValue(this, (((((pool + "_") + user) + "_") + posId) + kUserBorrowAmount))
722722 let userCanWithdraw = userCanWithdrawShareCalc(user, pool, posId, (borrowAmount > 0))
723723 let poolTotalShare = getPoolTotalShare(pool)
724724 let userAddr = Address(fromBase58String(user))
725725 let borrowAsset = getStringValue(this, (((((pool + "_") + user) + "_") + posId) + kUserBorrowAssetId))
726726 let debt = if ((borrowAmount > 0))
727727 then {
728728 let @ = invoke(getLendSrvAddr(), "getAssetDebt", [false, ((((pool + "_") + user) + "_") + posId), borrowAsset], nil)
729729 if ($isInstanceOf(@, "Int"))
730730 then @
731731 else throw(($getType(@) + " couldn't be cast to Int"))
732732 }
733733 else 0
734734 let $t02452424677 = withdrawAmountCalc(pool, userCanWithdraw, debt, borrowAsset)
735735 if (($t02452424677 == $t02452424677))
736736 then {
737737 let shareId = $t02452424677._7
738738 let cBalBAfter = $t02452424677._6
739739 let cBalAAfter = $t02452424677._5
740740 let assetIdB = $t02452424677._4
741741 let toUserAmountB = $t02452424677._3
742742 let assetIdA = $t02452424677._2
743743 let toUserAmountA = $t02452424677._1
744744 let closeDbtInv = if ((debt > 0))
745745 then invoke(getLendSrvAddr(), "repayFor", [((user + "_") + posId)], [AttachedPayment(assetIdFromStr(borrowAsset), debt)])
746746 else 0
747747 if ((closeDbtInv == closeDbtInv))
748748 then ([DeleteEntry((((((pool + "_") + user) + "_") + posId) + kUserPosition)), DeleteEntry((((((pool + "_") + user) + "_") + posId) + kUserPositionInterest)), IntegerEntry((pool + kPoolTotal), (poolTotalShare - userCanWithdraw)), ScriptTransfer(userAddr, toUserAmountA, assetIdFromStr(assetIdA)), ScriptTransfer(userAddr, toUserAmountB, assetIdFromStr(assetIdB))] ++ getCursEntries(assetIdA, assetIdB, shareId))
749749 else throw("Strict value is not equal to itself.")
750750 }
751751 else throw("Strict value is not equal to itself.")
752752 }
753753
754754
755755 func parseRequest (requestId) = {
756756 let request = split(valueOrErrorMessage(getString(this, (requestId + kRequestId)), ("No request with id " + requestId)), ",")
757757 let user = request[0]
758758 let pool = request[1]
759759 let pmtA = parseIntValue(request[2])
760760 let AId = request[3]
761761 let pmtB = parseIntValue(request[4])
762762 let BId = request[5]
763763 let balA = parseIntValue(request[6])
764764 let balB = parseIntValue(request[7])
765765 let shareId = request[8]
766766 let bwAsset = request[9]
767767 let bwAmount = parseIntValue(request[10])
768768 $Tuple11(user, pool, pmtA, AId, pmtB, BId, balA, balB, shareId, bwAsset, bwAmount)
769769 }
770770
771771
772+func unstakeLP (pool,pType,shareId,amount) = {
773+ let $t02593926296 = if ((pType == SF_POOL))
774+ then $Tuple3(getSFFarmingAddr(), "withdrawShareTokens", [pool, amount])
775+ else if ((pType == WX_POOL))
776+ then $Tuple3(getWXFarmingAddr(Address(fromBase58String(pool))), "unstake", [shareId, amount])
777+ else throw("Wrong pool type")
778+ let farmAddr = $t02593926296._1
779+ let fName = $t02593926296._2
780+ let params = $t02593926296._3
781+ let inv = invoke(farmAddr, fName, params, nil)
782+ if ((inv == inv))
783+ then amount
784+ else throw("Strict value is not equal to itself.")
785+ }
786+
787+
772788 @Callable(i)
773789 func replenishEVALONLY (pool,leverage,borrowAssetId) = if (if ((100 > leverage))
774790 then true
775791 else (leverage > 300))
776792 then throw("Leverage can't be <100 and >300")
777793 else {
778794 let pType = valueOrErrorMessage(getString(this, (kPool + pool)), "Pool is not inited")
779- let $t02616726257 = getPoolData(Address(fromBase58String(pool)), pType)
780- let AId = $t02616726257._1
781- let BId = $t02616726257._2
782- let balA = $t02616726257._3
783- let balB = $t02616726257._4
784- let shareId = $t02616726257._5
785- let $t02626026897 = if ((size(i.payments) == 2))
795+ let $t02667026760 = getPoolData(Address(fromBase58String(pool)), pType)
796+ let AId = $t02667026760._1
797+ let BId = $t02667026760._2
798+ let balA = $t02667026760._3
799+ let balB = $t02667026760._4
800+ let shareId = $t02667026760._5
801+ let $t02676327400 = if ((size(i.payments) == 2))
786802 then if ((assetIdToStr(i.payments[0].assetId) != AId))
787803 then throw("Wrong payment asset A")
788804 else if ((assetIdToStr(i.payments[1].assetId) != BId))
789805 then throw("Wrong payment asset B")
790806 else $Tuple4(i.payments[0].amount, AId, i.payments[1].amount, BId)
791807 else if ((size(i.payments) == 1))
792808 then if ((assetIdToStr(i.payments[0].assetId) == AId))
793809 then $Tuple4(i.payments[0].amount, AId, 0, BId)
794810 else if ((assetIdToStr(i.payments[0].assetId) == BId))
795811 then $Tuple4(0, AId, i.payments[0].amount, BId)
796812 else throw("Wrong payment")
797813 else throw("One or two payments expected")
798- let pmtA = $t02626026897._1
799- let pmtAssetA = $t02626026897._2
800- let pmtB = $t02626026897._3
801- let pmtAssetB = $t02626026897._4
802- let $t02690028351 = if ((leverage > 100))
814+ let pmtA = $t02676327400._1
815+ let pmtAssetA = $t02676327400._2
816+ let pmtB = $t02676327400._3
817+ let pmtAssetB = $t02676327400._4
818+ let $t02740328854 = if ((leverage > 100))
803819 then {
804820 let dPriceA = ( let @ = invoke(priceOracleAddr, "getTWAP60", [pmtAssetA, false], nil)
805821 if ($isInstanceOf(@, "(Int, Int)"))
806822 then @
807823 else throw(($getType(@) + " couldn't be cast to (Int, Int)")))._2
808824 let dPriceB = ( let @ = invoke(priceOracleAddr, "getTWAP60", [pmtAssetB, false], nil)
809825 if ($isInstanceOf(@, "(Int, Int)"))
810826 then @
811827 else throw(($getType(@) + " couldn't be cast to (Int, Int)")))._2
812828 let paydInDollar = (fraction(dPriceA, pmtA, pow(10, 0, getAssetDecimals(pmtAssetA), 0, 0, DOWN)) + fraction(dPriceB, pmtB, pow(10, 0, getAssetDecimals(pmtAssetB), 0, 0, DOWN)))
813829 let borrowAmount = fraction(paydInDollar, (leverage - 100), 100)
814830 let request = makeString([toString(i.caller), pool, toString(pmtA), pmtAssetA, toString(pmtB), pmtAssetB, toString(balA), toString(balB), shareId, borrowAssetId, toString(borrowAmount), toString(1)], ",")
815831 let newRequestId = {
816832 let @ = invoke(this, "createNewRequest", [request], nil)
817833 if ($isInstanceOf(@, "Int"))
818834 then @
819835 else throw(($getType(@) + " couldn't be cast to Int"))
820836 }
821837 if ((newRequestId == newRequestId))
822838 then {
823839 let args = [((toString(i.caller) + "_") + toString(1)), shareId, borrowAssetId, borrowAmount, toString(this), "replenishFromLandEVALONLY", toString(valueOrErrorMessage(newRequestId, "Can't create new request"))]
824840 let inv = reentrantInvoke(getLendSrvAddr(), "flashPosition", args, nil)
825841 if ((inv == inv))
826842 then $Tuple2(getIntegerValue(this, "EVALONLY_STAKEDAMOUNT"), borrowAmount)
827843 else throw("Strict value is not equal to itself.")
828844 }
829845 else throw("Strict value is not equal to itself.")
830846 }
831847 else $Tuple2(replenishByType(pType, pool, NO_LOAN_FEE, pmtA, AId, pmtB, BId, balA, balB, shareId)._1, 0)
832- let userStaked = $t02690028351._1
833- let borrowAmount = $t02690028351._2
834- let $t02835528522 = withdrawAmountCalc(pool, userStaked, borrowAmount, borrowAssetId)
835- if (($t02835528522 == $t02835528522))
848+ let userStaked = $t02740328854._1
849+ let borrowAmount = $t02740328854._2
850+ let $t02885829025 = withdrawAmountCalc(pool, userStaked, borrowAmount, borrowAssetId)
851+ if (($t02885829025 == $t02885829025))
836852 then {
837- let userGetBBeforeRepay = $t02835528522._6
838- let userGetABeforeRepay = $t02835528522._5
839- let assetIdB = $t02835528522._4
840- let toUserAmountB = $t02835528522._3
841- let assetIdA = $t02835528522._2
842- let toUserAmountA = $t02835528522._1
843- let $t02852528640 = getPoolData(Address(fromBase58String(pool)), pType)
844- let AIdAfter = $t02852528640._1
845- let BIdAfter = $t02852528640._2
846- let balAAfter = $t02852528640._3
847- let balBAfter = $t02852528640._4
848- let shareIdAfter = $t02852528640._5
853+ let userGetBBeforeRepay = $t02885829025._6
854+ let userGetABeforeRepay = $t02885829025._5
855+ let assetIdB = $t02885829025._4
856+ let toUserAmountB = $t02885829025._3
857+ let assetIdA = $t02885829025._2
858+ let toUserAmountA = $t02885829025._1
859+ let $t02902829143 = getPoolData(Address(fromBase58String(pool)), pType)
860+ let AIdAfter = $t02902829143._1
861+ let BIdAfter = $t02902829143._2
862+ let balAAfter = $t02902829143._3
863+ let balBAfter = $t02902829143._4
864+ let shareIdAfter = $t02902829143._5
849865 let ratioBefore = fraction(balB, SCALE8, balA)
850866 let ratioAfter = fraction(balBAfter, SCALE8, balAAfter)
851867 let impact = (SCALE8 - fraction(ratioBefore, SCALE8, ratioAfter))
852868 let imcatMod = if ((0 > impact))
853869 then (impact * -1)
854870 else impact
855871 $Tuple2(nil, [userGetABeforeRepay, userGetBBeforeRepay, imcatMod])
856872 }
857873 else throw("Strict value is not equal to itself.")
858874 }
859875
860876
861877
862878 @Callable(i)
863879 func replenishFromLandEVALONLY (requestId) = {
864- let $t02901029114 = parseRequest(requestId)
865- let user = $t02901029114._1
866- let pool = $t02901029114._2
867- let pmtA = $t02901029114._3
868- let AId = $t02901029114._4
869- let pmtB = $t02901029114._5
870- let BId = $t02901029114._6
871- let balA = $t02901029114._7
872- let balB = $t02901029114._8
873- let shareId = $t02901029114._9
874- let bwAsset = $t02901029114._10
875- let bwAmount = $t02901029114._11
880+ let $t02951329617 = parseRequest(requestId)
881+ let user = $t02951329617._1
882+ let pool = $t02951329617._2
883+ let pmtA = $t02951329617._3
884+ let AId = $t02951329617._4
885+ let pmtB = $t02951329617._5
886+ let BId = $t02951329617._6
887+ let balA = $t02951329617._7
888+ let balB = $t02951329617._8
889+ let shareId = $t02951329617._9
890+ let bwAsset = $t02951329617._10
891+ let bwAmount = $t02951329617._11
876892 if ((size(i.payments) != 1))
877893 then throw("Wrong payment size")
878894 else if (if ((assetIdToStr(i.payments[0].assetId) != bwAsset))
879895 then true
880896 else (i.payments[0].amount != bwAmount))
881897 then throw("Wrong payment")
882898 else {
883- let $t02930429428 = if ((AId == bwAsset))
899+ let $t02980729931 = if ((AId == bwAsset))
884900 then $Tuple2((pmtA + i.payments[0].amount), pmtB)
885901 else $Tuple2(pmtA, (pmtB + i.payments[0].amount))
886- let pmtAllA = $t02930429428._1
887- let pmtAllB = $t02930429428._2
902+ let pmtAllA = $t02980729931._1
903+ let pmtAllB = $t02980729931._2
888904 let pType = valueOrErrorMessage(getString(this, (kPool + pool)), "Unknown pool")
889- let $t02951029619 = replenishByType(pType, pool, LOAN_FEE, pmtA, AId, pmtB, BId, balA, balB, shareId)
890- let userStaked = $t02951029619._1
891- let axlyFee = $t02951029619._2
905+ let $t03001330122 = replenishByType(pType, pool, LOAN_FEE, pmtA, AId, pmtB, BId, balA, balB, shareId)
906+ let userStaked = $t03001330122._1
907+ let axlyFee = $t03001330122._2
892908 $Tuple2([IntegerEntry("EVALONLY_STAKEDAMOUNT", userStaked)], userStaked)
893909 }
894910 }
895911
896912
897913
898914 @Callable(i)
899915 func getShareAssetPriceREADONLY (shareId) = {
900916 let sharePrices = getSharePrice([shareId])
901917 $Tuple2(nil, sharePrices[0])
902918 }
903919
904920
905921
906922 @Callable(i)
907923 func getUserPositionShareAmountREADONLY (user,posNum) = {
908924 let pool = valueOrErrorMessage(getString(this, (((user + "_") + posNum) + kUserPositionPool)), "Unknown position")
909925 let borrowAmount = getIntegerValue(this, (((((pool + "_") + user) + "_") + posNum) + kUserBorrowAmount))
910926 let userCanWithdraw = userCanWithdrawShareCalc(user, pool, posNum, (borrowAmount > 0))
911927 $Tuple2(nil, userCanWithdraw)
912928 }
913929
914930
915931
916932 @Callable(i)
917933 func replenish (pool,leverage,borrowAssetId) = if (if ((100 > leverage))
918934 then true
919935 else (leverage > 300))
920936 then throw("Leverage can't be <100 and >300")
921937 else {
922938 let pType = valueOrErrorMessage(getString(this, (kPool + pool)), "Pool is not inited")
923- let $t03053530625 = getPoolData(Address(fromBase58String(pool)), pType)
924- let AId = $t03053530625._1
925- let BId = $t03053530625._2
926- let balA = $t03053530625._3
927- let balB = $t03053530625._4
928- let shareId = $t03053530625._5
929- let $t03062831265 = if ((size(i.payments) == 2))
939+ let $t03103831128 = getPoolData(Address(fromBase58String(pool)), pType)
940+ let AId = $t03103831128._1
941+ let BId = $t03103831128._2
942+ let balA = $t03103831128._3
943+ let balB = $t03103831128._4
944+ let shareId = $t03103831128._5
945+ let $t03113131768 = if ((size(i.payments) == 2))
930946 then if ((assetIdToStr(i.payments[0].assetId) != AId))
931947 then throw("Wrong payment asset A")
932948 else if ((assetIdToStr(i.payments[1].assetId) != BId))
933949 then throw("Wrong payment asset B")
934950 else $Tuple4(i.payments[0].amount, AId, i.payments[1].amount, BId)
935951 else if ((size(i.payments) == 1))
936952 then if ((assetIdToStr(i.payments[0].assetId) == AId))
937953 then $Tuple4(i.payments[0].amount, AId, 0, BId)
938954 else if ((assetIdToStr(i.payments[0].assetId) == BId))
939955 then $Tuple4(0, AId, i.payments[0].amount, BId)
940956 else throw("Wrong payment")
941957 else throw("One or two payments expected")
942- let pmtA = $t03062831265._1
943- let pmtAssetA = $t03062831265._2
944- let pmtB = $t03062831265._3
945- let pmtAssetB = $t03062831265._4
958+ let pmtA = $t03113131768._1
959+ let pmtAssetA = $t03113131768._2
960+ let pmtB = $t03113131768._3
961+ let pmtAssetB = $t03113131768._4
946962 let newPosNum = getNewUserPositionNumber(pool, toString(i.caller))
947963 if ((leverage > 100))
948964 then {
949965 let dPriceA = ( let @ = invoke(priceOracleAddr, "getTWAP60", [pmtAssetA, false], nil)
950966 if ($isInstanceOf(@, "(Int, Int)"))
951967 then @
952968 else throw(($getType(@) + " couldn't be cast to (Int, Int)")))._2
953969 let dPriceB = ( let @ = invoke(priceOracleAddr, "getTWAP60", [pmtAssetB, false], nil)
954970 if ($isInstanceOf(@, "(Int, Int)"))
955971 then @
956972 else throw(($getType(@) + " couldn't be cast to (Int, Int)")))._2
957973 let paydInDollar = (fraction(dPriceA, pmtA, pow(10, 0, getAssetDecimals(pmtAssetA), 0, 0, DOWN)) + fraction(dPriceB, pmtB, pow(10, 0, getAssetDecimals(pmtAssetB), 0, 0, DOWN)))
958974 let borrowAmount = fraction(paydInDollar, (leverage - 100), 100)
959975 let request = makeString([toString(i.caller), pool, toString(pmtA), pmtAssetA, toString(pmtB), pmtAssetB, toString(balA), toString(balB), shareId, borrowAssetId, toString(borrowAmount)], ",")
960976 let newRequestId = {
961977 let @ = invoke(this, "createNewRequest", [request], nil)
962978 if ($isInstanceOf(@, "Int"))
963979 then @
964980 else throw(($getType(@) + " couldn't be cast to Int"))
965981 }
966982 if ((newRequestId == newRequestId))
967983 then {
968984 let args = [((toString(i.caller) + "_") + toString(newPosNum)), shareId, borrowAssetId, borrowAmount, toString(this), "replenishFromLand", toString(valueOrErrorMessage(newRequestId, "Can't create new request"))]
969985 let inv = reentrantInvoke(getLendSrvAddr(), "flashPosition", args, nil)
970986 if ((inv == inv))
971987 then nil
972988 else throw("Strict value is not equal to itself.")
973989 }
974990 else throw("Strict value is not equal to itself.")
975991 }
976992 else {
977- let $t03256232674 = replenishByType(pType, pool, NO_LOAN_FEE, pmtA, AId, pmtB, BId, balA, balB, shareId)
978- let userStaked = $t03256232674._1
979- let axlyFee = $t03256232674._2
993+ let $t03306533177 = replenishByType(pType, pool, NO_LOAN_FEE, pmtA, AId, pmtB, BId, balA, balB, shareId)
994+ let userStaked = $t03306533177._1
995+ let axlyFee = $t03306533177._2
980996 (replenishEntries(pool, toString(i.caller), userStaked, axlyFee, newPosNum, shareId, pType, false) ++ getCursEntries(AId, BId, shareId))
981997 }
982998 }
983999
9841000
9851001
9861002 @Callable(i)
9871003 func replenishFromLand (requestId) = {
988- let $t03288532989 = parseRequest(requestId)
989- let user = $t03288532989._1
990- let pool = $t03288532989._2
991- let pmtA = $t03288532989._3
992- let AId = $t03288532989._4
993- let pmtB = $t03288532989._5
994- let BId = $t03288532989._6
995- let balA = $t03288532989._7
996- let balB = $t03288532989._8
997- let shareId = $t03288532989._9
998- let bwAsset = $t03288532989._10
999- let bwAmount = $t03288532989._11
1004+ let $t03338833492 = parseRequest(requestId)
1005+ let user = $t03338833492._1
1006+ let pool = $t03338833492._2
1007+ let pmtA = $t03338833492._3
1008+ let AId = $t03338833492._4
1009+ let pmtB = $t03338833492._5
1010+ let BId = $t03338833492._6
1011+ let balA = $t03338833492._7
1012+ let balB = $t03338833492._8
1013+ let shareId = $t03338833492._9
1014+ let bwAsset = $t03338833492._10
1015+ let bwAmount = $t03338833492._11
10001016 if ((size(i.payments) != 1))
10011017 then throw("Wrong payment size")
10021018 else if (if ((assetIdToStr(i.payments[0].assetId) != bwAsset))
10031019 then true
10041020 else (i.payments[0].amount != bwAmount))
10051021 then throw("Wrong payment")
10061022 else {
1007- let $t03317933303 = if ((AId == bwAsset))
1023+ let $t03368233806 = if ((AId == bwAsset))
10081024 then $Tuple2((pmtA + i.payments[0].amount), pmtB)
10091025 else $Tuple2(pmtA, (pmtB + i.payments[0].amount))
1010- let pmtAllA = $t03317933303._1
1011- let pmtAllB = $t03317933303._2
1026+ let pmtAllA = $t03368233806._1
1027+ let pmtAllB = $t03368233806._2
10121028 let pType = valueOrErrorMessage(getString(this, (kPool + pool)), "Unknown pool")
1013- let $t03338533494 = replenishByType(pType, pool, LOAN_FEE, pmtA, AId, pmtB, BId, balA, balB, shareId)
1014- let userStaked = $t03338533494._1
1015- let axlyFee = $t03338533494._2
1029+ let $t03388833997 = replenishByType(pType, pool, LOAN_FEE, pmtA, AId, pmtB, BId, balA, balB, shareId)
1030+ let userStaked = $t03388833997._1
1031+ let axlyFee = $t03388833997._2
10161032 let posNum = getNewUserPositionNumber(pool, toString(i.caller))
10171033 let borrowEntries = [IntegerEntry((((((pool + "_") + user) + "_") + toString(posNum)) + kUserBorrowAmount), bwAmount), StringEntry((((((pool + "_") + user) + "_") + toString(posNum)) + kUserBorrowAssetId), bwAsset)]
10181034 let entries = replenishEntries(pool, user, userStaked, axlyFee, posNum, shareId, pType, true)
10191035 $Tuple2((((entries ++ getCursEntries(AId, BId, shareId)) ++ borrowEntries) :+ DeleteEntry((requestId + kRequestId))), userStaked)
10201036 }
10211037 }
10221038
10231039
10241040
10251041 @Callable(i)
10261042 func withdraw (pool,posId) = withdrawToUser(toString(i.caller), pool, toString(posId), false)
10271043
10281044
10291045
10301046 @Callable(i)
10311047 func createUpdateStopLoss (posId,poolId,assetId,price) = {
10321048 let tokenOraclePrice = ( let @ = invoke(priceOracleAddr, "getTWAP60", [assetId, false], nil)
10331049 if ($isInstanceOf(@, "(Int, Int)"))
10341050 then @
10351051 else throw(($getType(@) + " couldn't be cast to (Int, Int)")))._1
10361052 if (!(isDefined(getInteger(this, (((((poolId + "_") + toString(i.caller)) + "_") + toString(posId)) + kUserPosition)))))
10371053 then throw("There are no user position")
10381054 else if ((0 >= price))
10391055 then throw("Price must be greater than 0")
10401056 else if ((price > tokenOraclePrice))
10411057 then throw("Price must be less than current token price")
10421058 else [IntegerEntry((((((((toString(i.caller) + "_") + toString(posId)) + "_") + poolId) + "_") + assetId) + kUserStopLoss), price)]
10431059 }
10441060
10451061
10461062
10471063 @Callable(i)
10481064 func deleteStopLoss (posId,poolId,assetId) = if (!(isDefined(getInteger(this, (((((((toString(i.caller) + "_") + toString(posId)) + "_") + poolId) + "_") + assetId) + kUserStopLoss)))))
10491065 then throw("No entry")
10501066 else [DeleteEntry((((((((toString(i.caller) + "_") + toString(posId)) + "_") + poolId) + "_") + assetId) + kUserStopLoss))]
10511067
10521068
10531069
10541070 @Callable(i)
10551071 func createNewRequest (params) = valueOrElse(isSelfCall(i), {
10561072 let newRequestId = (valueOrElse(getInteger(this, kRequestIter), 0) + 1)
10571073 $Tuple2([StringEntry((toString(newRequestId) + kRequestId), params), IntegerEntry(kRequestIter, newRequestId)], newRequestId)
10581074 })
10591075
10601076
10611077
10621078 @Callable(i)
10631079 func stopLoss (user,posId,pool,assetId) = {
10641080 let tokenOraclePrice = ( let @ = invoke(priceOracleAddr, "getTWAP60", [assetId, false], nil)
10651081 if ($isInstanceOf(@, "(Int, Int)"))
10661082 then @
10671083 else throw(($getType(@) + " couldn't be cast to (Int, Int)")))._1
10681084 if (!(isDefined(getInteger(this, (((((((user + "_") + toString(posId)) + "_") + pool) + "_") + assetId) + kUserStopLoss)))))
10691085 then throw("No entry")
10701086 else (withdrawToUser(toString(i.caller), pool, toString(posId), true) :+ DeleteEntry((((((((user + "_") + toString(posId)) + "_") + pool) + "_") + assetId) + kUserStopLoss)))
10711087 }
10721088
10731089
10741090
10751091 @Callable(i)
1076-func liquidate (user,posId,pool,liquidateAmount) = {
1092+func liquidate (user,posId,liquidateAmount) = {
1093+ let pool = valueOrErrorMessage(getString(this, (((user + "_") + posId) + kUserPositionPool)), "no position")
10771094 let pType = valueOrErrorMessage(getString(this, (kPool + pool)), "Pool is not inited")
1078- let $t03618536275 = getPoolData(Address(fromBase58String(pool)), pType)
1079- let AId = $t03618536275._1
1080- let BId = $t03618536275._2
1081- let balA = $t03618536275._3
1082- let balB = $t03618536275._4
1083- let shareId = $t03618536275._5
1084- let pAmount = valueOrErrorMessage(getInteger(this, (((((pool + "_") + user) + "_") + toString(posId)) + kUserPosition)), "Unknown position")
1085- let userInterest = getIntegerValue(this, (((((pool + "_") + user) + "_") + toString(posId)) + kUserPositionInterest))
1086- let poolTotalShare = getPoolTotalShare(pool)
1087- let userAddr = Address(fromBase58String(user))
1088- let borrowAmount = getIntegerValue(this, (((((pool + "_") + user) + "_") + toString(posId)) + kUserBorrowAmount))
1089- let borrowAsset = getStringValue(this, (((((pool + "_") + user) + "_") + toString(posId)) + kUserBorrowAssetId))
1090- let $t03682937182 = if ((borrowAmount > 0))
1091- then $Tuple2({
1092- let @ = invoke(getLendSrvAddr(), "getAssetDebt", [false, ((((pool + "_") + user) + "_") + toString(posId)), borrowAsset], nil)
1093- if ($isInstanceOf(@, "Int"))
1094- then @
1095- else throw(($getType(@) + " couldn't be cast to Int"))
1096- }, getIntegerValue(this, (pool + kPoolInterestLoan)))
1097- else $Tuple2(0, getIntegerValue(this, (pool + kPoolInterestNoLoan)))
1098- let debt = $t03682937182._1
1099- let poolInterest = $t03682937182._2
1100- let userCanWithdraw = (pAmount + fraction(pAmount, (poolInterest - userInterest), SCALE10))
1101- let sharePrice = getSharePrice([shareId])[0]
1102- let borrowAssetPrice = getAssetsPrice([borrowAsset])[0]
1103- let userCanWithdrawInD = fraction(userCanWithdraw, sharePrice, getAssetDecimals(shareId))
1104- let borrowAmountInD = fraction(borrowAmount, borrowAssetPrice, getAssetPrecition(borrowAsset))
1105- let userAmountInD = (userCanWithdrawInD - borrowAmountInD)
1106- nil
1095+ let $t03678036870 = getPoolData(Address(fromBase58String(pool)), pType)
1096+ let AId = $t03678036870._1
1097+ let BId = $t03678036870._2
1098+ let balA = $t03678036870._3
1099+ let balB = $t03678036870._4
1100+ let shareId = $t03678036870._5
1101+ let amount = unstakeLP(pool, pType, shareId, liquidateAmount)
1102+ let borrowAmount = getIntegerValue(this, (((((pool + "_") + user) + "_") + posId) + kUserBorrowAmount))
1103+ let borrowAsset = getStringValue(this, (((((pool + "_") + user) + "_") + posId) + kUserBorrowAssetId))
1104+ let userCanWithdraw = userCanWithdrawShareCalc(user, pool, posId, (borrowAmount > 0))
1105+ if ((borrowAmount > 0))
1106+ then [IntegerEntry((((((pool + "_") + user) + "_") + posId) + kUserPositionInterest), getIntegerValue(this, (pool + kPoolInterestLoan))), IntegerEntry((pool + kPoolTotalLoan), (getPoolTotalShareWithLoan(pool) - liquidateAmount))]
1107+ else ([IntegerEntry((((((pool + "_") + user) + "_") + posId) + kUserPositionInterest), getIntegerValue(this, (pool + kPoolInterestNoLoan)))] ++ [IntegerEntry((pool + kPoolTotal), (getPoolTotalShare(pool) - liquidateAmount)), IntegerEntry((((((pool + "_") + user) + "_") + posId) + kUserPosition), (userCanWithdraw - liquidateAmount)), ScriptTransfer(i.caller, amount, fromBase58String(shareId))])
11071108 }
11081109
11091110
11101111
11111112 @Callable(i)
11121113 func capitalizeExKeeper (pool,type,tokenToId,amountToExchange,claim,amountsIn,addresses,assetsToReceive,estReceived,slippageTolerance,minReceived,options) = {
1113- let $t03796738161 = if (claim)
1114+ let $t03821038404 = if (claim)
11141115 then claimFarmed(type, pool)
11151116 else {
11161117 let claimedAsset = if ((type == SF_POOL))
11171118 then SWOPID
11181119 else WXID
11191120 $Tuple2(amountToExchange, claimedAsset)
11201121 }
1121- let claimedAmount = $t03796738161._1
1122- let claimedAsset = $t03796738161._2
1122+ let claimedAmount = $t03821038404._1
1123+ let claimedAsset = $t03821038404._2
11231124 let exchangedAmount = exchangeKeeper(tokenToId, amountToExchange, claimedAsset, amountsIn, addresses, assetsToReceive, estReceived, slippageTolerance, minReceived, options)
11241125 let change = (claimedAmount - amountToExchange)
11251126 let changeEntry = if ((change > 0))
11261127 then [IntegerEntry((pool + kPoolCapChange), (change + valueOrElse(getInteger(this, (pool + kPoolCapChange)), 0)))]
11271128 else nil
11281129 (capitalize(pool, type, tokenToId, exchangedAmount) ++ changeEntry)
11291130 }
11301131
11311132
11321133
11331134 @Callable(i)
11341135 func capitalizeExPuzzle (pool,type,tokenToId,amountToExchange,claim,routesStr,minToReceive,options) = {
1135- let $t03881839012 = if (claim)
1136+ let $t03906139255 = if (claim)
11361137 then claimFarmed(type, pool)
11371138 else {
11381139 let claimedAsset = if ((type == SF_POOL))
11391140 then SWOPID
11401141 else WXID
11411142 $Tuple2(amountToExchange, claimedAsset)
11421143 }
1143- let claimedAmount = $t03881839012._1
1144- let claimedAsset = $t03881839012._2
1144+ let claimedAmount = $t03906139255._1
1145+ let claimedAsset = $t03906139255._2
11451146 let exchangedAmount = exchangePuzzle(tokenToId, amountToExchange, claimedAsset, routesStr, minToReceive, options)
11461147 let change = (claimedAmount - amountToExchange)
11471148 let changeEntry = if ((change > 0))
11481149 then [IntegerEntry((pool + kPoolCapChange), (change + valueOrElse(getInteger(this, (pool + kPoolCapChange)), 0)))]
11491150 else nil
11501151 (capitalize(pool, type, tokenToId, exchangedAmount) ++ changeEntry)
11511152 }
11521153
11531154
11541155
11551156 @Callable(i)
11561157 func capitalizeExSwopFi (pool,type,tokenToId,amountToExchange,claim,exchangers,exchangersType,args1,args2,routingAssetsKeys,minAmountToReceive,options) = {
1157- let $t03973539929 = if (claim)
1158+ let $t03997840172 = if (claim)
11581159 then claimFarmed(type, pool)
11591160 else {
11601161 let claimedAsset = if ((type == SF_POOL))
11611162 then SWOPID
11621163 else WXID
11631164 $Tuple2(amountToExchange, claimedAsset)
11641165 }
1165- let claimedAmount = $t03973539929._1
1166- let claimedAsset = $t03973539929._2
1166+ let claimedAmount = $t03997840172._1
1167+ let claimedAsset = $t03997840172._2
11671168 let exchangedAmount = exchangeSwopFi(tokenToId, amountToExchange, claimedAsset, exchangers, exchangersType, args1, args2, routingAssetsKeys, minAmountToReceive, options)
11681169 let change = (claimedAmount - amountToExchange)
11691170 let changeEntry = if ((change > 0))
11701171 then [IntegerEntry((pool + kPoolCapChange), (change + valueOrElse(getInteger(this, (pool + kPoolCapChange)), 0)))]
11711172 else nil
11721173 (capitalize(pool, type, tokenToId, exchangedAmount) ++ changeEntry)
11731174 }
11741175
11751176
11761177
11771178 @Callable(i)
11781179 func initNewPool (type,poolAddr,inFeeNoLoan,inFeeLoan,capFeeNoLoan,capFeeWithLoan,stoplossFeeNoLoan,stoplossFeeWithLoan) = if (if ((type != SF_POOL))
11791180 then (type != WX_POOL)
11801181 else false)
11811182 then throw("Wrong type")
11821183 else {
1183- let $t04062240716 = getPoolData(Address(fromBase58String(poolAddr)), type)
1184- let aId = $t04062240716._1
1185- let bId = $t04062240716._2
1186- let aBal = $t04062240716._3
1187- let bBal = $t04062240716._4
1188- let shareId = $t04062240716._5
1184+ let $t04086540959 = getPoolData(Address(fromBase58String(poolAddr)), type)
1185+ let aId = $t04086540959._1
1186+ let bId = $t04086540959._2
1187+ let aBal = $t04086540959._3
1188+ let bBal = $t04086540959._4
1189+ let shareId = $t04086540959._5
11891190 [IntegerEntry((poolAddr + kAxlyInFeeWithoutLoan), inFeeNoLoan), IntegerEntry((poolAddr + kAxlyInFeeWithLoan), inFeeLoan), IntegerEntry((poolAddr + kAxlyNoLoanCapFee), capFeeNoLoan), IntegerEntry((poolAddr + kAxlyWithLoanCapFee), capFeeWithLoan), IntegerEntry((poolAddr + kAxlyStopLossNoLoanFee), stoplossFeeNoLoan), IntegerEntry((poolAddr + kAxlyStopLossLoanFee), stoplossFeeWithLoan), IntegerEntry((poolAddr + kPoolInterestLoan), 0), IntegerEntry((poolAddr + kPoolInterestNoLoan), 0), StringEntry((kPool + poolAddr), type), StringEntry((shareId + kSharePool), poolAddr)]
11901191 }
11911192
11921193
11931194
11941195 @Callable(i)
11951196 func capitalizeTest (pool,pType,tokenId,tokenAmount) = {
11961197 let poolAddr = Address(fromBase58String(pool))
1197- let $t04151241591 = getPoolData(poolAddr, pType)
1198- let AId = $t04151241591._1
1199- let BId = $t04151241591._2
1200- let balA = $t04151241591._3
1201- let balB = $t04151241591._4
1202- let shareId = $t04151241591._5
1203- let $t04159441674 = if ((tokenId == AId))
1198+ let $t04175541834 = getPoolData(poolAddr, pType)
1199+ let AId = $t04175541834._1
1200+ let BId = $t04175541834._2
1201+ let balA = $t04175541834._3
1202+ let balB = $t04175541834._4
1203+ let shareId = $t04175541834._5
1204+ let $t04183741917 = if ((tokenId == AId))
12041205 then $Tuple2(tokenAmount, 0)
12051206 else $Tuple2(0, tokenAmount)
1206- let pmtA = $t04159441674._1
1207- let pmtB = $t04159441674._2
1208- let $t04167741781 = replenishByType(pType, pool, NO_FEE, pmtA, AId, pmtB, BId, balA, balB, shareId)
1209- let stakedAmount = $t04167741781._1
1210- let nf = $t04167741781._2
1207+ let pmtA = $t04183741917._1
1208+ let pmtB = $t04183741917._2
1209+ let $t04192042024 = replenishByType(pType, pool, NO_FEE, pmtA, AId, pmtB, BId, balA, balB, shareId)
1210+ let stakedAmount = $t04192042024._1
1211+ let nf = $t04192042024._2
12111212 let curPoolInterestLoan = valueOrElse(getInteger(this, (pool + kPoolInterestLoan)), 0)
12121213 let curPoolInterestNoLoan = valueOrElse(getInteger(this, (pool + kPoolInterestNoLoan)), 0)
12131214 let totalShareAmount = getPoolTotalShare(pool)
12141215 let totalShareAmountWithLoan = getPoolTotalShareWithLoan(pool)
12151216 let loanPercent = fraction(totalShareAmountWithLoan, SCALE8, totalShareAmount)
12161217 let stakedLoan = fraction(stakedAmount, loanPercent, SCALE8)
12171218 let stakedNoLoan = (stakedAmount - stakedLoan)
12181219 let newInterestLoan = (curPoolInterestLoan + fraction(stakedLoan, SCALE10, totalShareAmountWithLoan))
12191220 let newInterestNoLoan = (curPoolInterestNoLoan + fraction(stakedNoLoan, SCALE10, (totalShareAmount - totalShareAmountWithLoan)))
12201221 let axlyFeeLoan = fraction(stakedLoan, getAxlyFee(pool, CAP_FEE_LOAN), FEE_SCALE6)
12211222 let axlyFeeNoLoan = fraction(stakedNoLoan, getAxlyFee(pool, CAP_FEE_NO_LOAN), FEE_SCALE6)
12221223 ([IntegerEntry((pool + kPoolInterestLoan), newInterestLoan), IntegerEntry((pool + kPoolInterestNoLoan), newInterestNoLoan), IntegerEntry((pool + kPoolTotal), (((totalShareAmount + stakedAmount) - axlyFeeLoan) - axlyFeeNoLoan)), IntegerEntry((pool + kPoolTotalLoan), ((totalShareAmountWithLoan + stakedLoan) - axlyFeeLoan)), ScriptTransfer(moneyBox, (axlyFeeLoan + axlyFeeNoLoan), fromBase58String(shareId))] ++ getCursEntries(AId, BId, shareId))
12231224 }
12241225
12251226
12261227
12271228 @Callable(i)
12281229 func claimFarmedTest (type,pool) = if ((type == SF_POOL))
12291230 then {
12301231 let balBefore = accountBalance(SWOPID)
12311232 if ((balBefore == balBefore))
12321233 then {
12331234 let inv = invoke(getSFFarmingAddr(), "claim", [pool], nil)
12341235 if ((inv == inv))
12351236 then {
12361237 let balAfter = accountBalance(SWOPID)
12371238 $Tuple2(nil, $Tuple2((balAfter - balBefore), SWOPID))
12381239 }
12391240 else throw("Strict value is not equal to itself.")
12401241 }
12411242 else throw("Strict value is not equal to itself.")
12421243 }
12431244 else if ((type == WX_POOL))
12441245 then {
12451246 let balBefore = accountBalance(WXID)
12461247 if ((balBefore == balBefore))
12471248 then {
12481249 let inv = invoke(getWXFarmingAddr(Address(fromBase58String(pool))), "claimWX", [pool], nil)
12491250 if ((inv == inv))
12501251 then {
12511252 let balAfter = accountBalance(WXID)
12521253 $Tuple2(nil, $Tuple2((balAfter - balBefore), WXID))
12531254 }
12541255 else throw("Strict value is not equal to itself.")
12551256 }
12561257 else throw("Strict value is not equal to itself.")
12571258 }
12581259 else throw("Wrong pool type")
12591260
12601261
12611262 @Verifier(tx)
12621263 func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
12631264

github/deemru/w8io/026f985 
174.86 ms