tx · 3qGRKp6MRVwx9wsMF15ynQEffnnypCfAVoz54Hu2HRWF 3MvRWw2FPEimFCTGtK7qY9uAJbM7XJ4ZfJS: -0.04100000 Waves 2023.06.02 11:51 [2604846] smart account 3MvRWw2FPEimFCTGtK7qY9uAJbM7XJ4ZfJS > SELF 0.00000000 Waves
{ "type": 13, "id": "3qGRKp6MRVwx9wsMF15ynQEffnnypCfAVoz54Hu2HRWF", "fee": 4100000, "feeAssetId": null, "timestamp": 1685695873800, "version": 2, "chainId": 84, "sender": "3MvRWw2FPEimFCTGtK7qY9uAJbM7XJ4ZfJS", "senderPublicKey": "HP8sssVq1866F7CaPQJwgFrt6fsqhQjKwM84cL1wjD2a", "proofs": [ "52wp3jLGpctE5QnWTNU8qYHfdsPKDg3GucWyuRfmbU2JvsAoQYNXAn9jZC6Wmtx9gJJNVSBrG55B56qLTvTDs2NF" ], "script": "base64:BgKRAQgCEgcKBQgBCAEBEgMKAQgSBAoCCAgSBQoDCAEIEgMKAQgSBAoCCAESBgoEAQgIARIFCgMBCAgSAwoBCBIGCgQIAQgIEgUKAwgIARIOCgwICAgBBBEYGBEBARgSCgoICAgIAQQIARgSDgoMCAgIAQQYGBgYGAEYEgoKCAgIAQEBAQEBEgYKBAgICAESBAoCCAheAAdTRl9QT09MAgJTRgAHV1hfUE9PTAICV1gAD0NBUF9GRUVfTk9fTE9BTgIJY2FwTm9Mb2FuAAxDQVBfRkVFX0xPQU4CB2NhcExvYW4AFFNUT1BMT1NTX0ZFRV9OT19MT0FOAg5zdG9wTG9zc05vTG9hbgANU1RPUExPU1NfTE9BTgIMc3RvcExvc3NMb2FuAAhMT0FOX0ZFRQIEbG9hbgALTk9fTE9BTl9GRUUCBm5vTG9hbgAGTk9fRkVFAgVub0ZlZQAGU0NBTEU4AIDC1y8AB1NDQUxFMTAAgMivoCUACkZFRV9TQ0FMRTYAwIQ9ABRrU0ZQb29sQUFzc2V0QmFsYW5jZQIPQV9hc3NldF9iYWxhbmNlABRrU0ZQb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0eA9zZW5kZXJQdWJsaWNLZXmlQa9O", "height": 2604846, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: GXwAxZXERgcp37f6kmjBUgwH4EZQuaKKXbwDRE1SSJau Next: 4Nmuj87oojgH7knq8avW9wWYWAHYrZ3Cj8Zqnb5s2pzf Diff:
Old | New | Differences | |
---|---|---|---|
732 | 732 | func withdrawToUser (user,pool,posId,stopLoss) = { | |
733 | 733 | let pAmount = valueOrErrorMessage(getInteger(this, (((((pool + "_") + user) + "_") + posId) + kUserPosition)), "Unknown position") | |
734 | 734 | let userInterest = getIntegerValue(this, (((((pool + "_") + user) + "_") + posId) + kUserPositionInterest)) | |
735 | - | let borrowAmount = getIntegerValue(this, (((((pool + "_") + user) + "_") + posId) + kUserBorrowAmount)) | |
735 | + | let borrowAmount = valueOrElse(getIntegerValue(this, (((((pool + "_") + user) + "_") + posId) + kUserBorrowAmount)), 0) | |
736 | 736 | let userCanWithdraw = userCanWithdrawShareCalc(user, pool, posId, (borrowAmount > 0)) | |
737 | 737 | let poolTotalShare = getPoolTotalShare(pool) | |
738 | 738 | let userAddr = Address(fromBase58String(user)) | |
745 | 745 | else throw(($getType(@) + " couldn't be cast to Int")) | |
746 | 746 | } | |
747 | 747 | else 0 | |
748 | - | let $ | |
749 | - | if (($ | |
748 | + | let $t02462224775 = withdrawAmountCalc(pool, userCanWithdraw, debt, borrowAsset) | |
749 | + | if (($t02462224775 == $t02462224775)) | |
750 | 750 | then { | |
751 | - | let shareId = $ | |
752 | - | let cBalBAfter = $ | |
753 | - | let cBalAAfter = $ | |
754 | - | let assetIdB = $ | |
755 | - | let toUserAmountB = $ | |
756 | - | let assetIdA = $ | |
757 | - | let toUserAmountA = $ | |
751 | + | let shareId = $t02462224775._7 | |
752 | + | let cBalBAfter = $t02462224775._6 | |
753 | + | let cBalAAfter = $t02462224775._5 | |
754 | + | let assetIdB = $t02462224775._4 | |
755 | + | let toUserAmountB = $t02462224775._3 | |
756 | + | let assetIdA = $t02462224775._2 | |
757 | + | let toUserAmountA = $t02462224775._1 | |
758 | 758 | let closeDbtInv = if ((debt > 0)) | |
759 | 759 | then invoke(getLendSrvAddr(), "repayFor", [((user + "_") + posId)], [AttachedPayment(assetIdFromStr(borrowAsset), debt)]) | |
760 | 760 | else 0 | |
790 | 790 | then throw("Leverage can't be <100 and >300") | |
791 | 791 | else { | |
792 | 792 | let pType = valueOrErrorMessage(getString(this, (kPool + pool)), "Pool is not inited") | |
793 | - | let $ | |
794 | - | let AId = $ | |
795 | - | let BId = $ | |
796 | - | let balA = $ | |
797 | - | let balB = $ | |
798 | - | let shareId = $ | |
793 | + | let $t02628726377 = getPoolData(Address(fromBase58String(pool)), pType) | |
794 | + | let AId = $t02628726377._1 | |
795 | + | let BId = $t02628726377._2 | |
796 | + | let balA = $t02628726377._3 | |
797 | + | let balB = $t02628726377._4 | |
798 | + | let shareId = $t02628726377._5 | |
799 | 799 | let borrowAmount = if ((leverage > 100)) | |
800 | 800 | then { | |
801 | 801 | let dPriceA = ( let @ = invoke(priceOracleAddr, "getTWAP60", [AId, false], nil) | |
813 | 813 | (fraction(paydInDollar, (leverage - 100), 100) / borrowPrice) | |
814 | 814 | } | |
815 | 815 | else 0 | |
816 | - | let $ | |
816 | + | let $t02694827060 = if ((borrowAssetId == AId)) | |
817 | 817 | then $Tuple2((pmtA + borrowAmount), pmtB) | |
818 | 818 | else $Tuple2(pmtA, (pmtB + borrowAmount)) | |
819 | - | let payInA = $ | |
820 | - | let payInB = $ | |
819 | + | let payInA = $t02694827060._1 | |
820 | + | let payInB = $t02694827060._2 | |
821 | 821 | let lpAmount = calcReplanishLPVirt(pType, pool, pmtA, AId, pmtB, BId, balA, balB) | |
822 | 822 | nil | |
823 | 823 | } | |
849 | 849 | then throw("Leverage can't be <100 and >300") | |
850 | 850 | else { | |
851 | 851 | let pType = valueOrErrorMessage(getString(this, (kPool + pool)), "Pool is not inited") | |
852 | - | let $ | |
853 | - | let AId = $ | |
854 | - | let BId = $ | |
855 | - | let balA = $ | |
856 | - | let balB = $ | |
857 | - | let shareId = $ | |
858 | - | let $ | |
852 | + | let $t02859128681 = getPoolData(Address(fromBase58String(pool)), pType) | |
853 | + | let AId = $t02859128681._1 | |
854 | + | let BId = $t02859128681._2 | |
855 | + | let balA = $t02859128681._3 | |
856 | + | let balB = $t02859128681._4 | |
857 | + | let shareId = $t02859128681._5 | |
858 | + | let $t02868429321 = if ((size(i.payments) == 2)) | |
859 | 859 | then if ((assetIdToStr(i.payments[0].assetId) != AId)) | |
860 | 860 | then throw("Wrong payment asset A") | |
861 | 861 | else if ((assetIdToStr(i.payments[1].assetId) != BId)) | |
868 | 868 | then $Tuple4(0, AId, i.payments[0].amount, BId) | |
869 | 869 | else throw("Wrong payment") | |
870 | 870 | else throw("One or two payments expected") | |
871 | - | let pmtA = $ | |
872 | - | let pmtAssetA = $ | |
873 | - | let pmtB = $ | |
874 | - | let pmtAssetB = $ | |
871 | + | let pmtA = $t02868429321._1 | |
872 | + | let pmtAssetA = $t02868429321._2 | |
873 | + | let pmtB = $t02868429321._3 | |
874 | + | let pmtAssetB = $t02868429321._4 | |
875 | 875 | let newPosNum = getNewUserPositionNumber(pool, toString(i.caller)) | |
876 | 876 | if ((leverage > 100)) | |
877 | 877 | then { | |
906 | 906 | else throw("Strict value is not equal to itself.") | |
907 | 907 | } | |
908 | 908 | else { | |
909 | - | let $ | |
910 | - | let userStaked = $ | |
911 | - | let axlyFee = $ | |
909 | + | let $t03070430816 = replenishByType(pType, pool, NO_LOAN_FEE, pmtA, AId, pmtB, BId, balA, balB, shareId) | |
910 | + | let userStaked = $t03070430816._1 | |
911 | + | let axlyFee = $t03070430816._2 | |
912 | 912 | (replenishEntries(pool, toString(i.caller), userStaked, axlyFee, newPosNum, shareId, pType, false) ++ getCursEntries(AId, BId, shareId)) | |
913 | 913 | } | |
914 | 914 | } | |
917 | 917 | ||
918 | 918 | @Callable(i) | |
919 | 919 | func replenishFromLand (requestId) = { | |
920 | - | let $ | |
921 | - | let user = $ | |
922 | - | let pool = $ | |
923 | - | let pmtA = $ | |
924 | - | let AId = $ | |
925 | - | let pmtB = $ | |
926 | - | let BId = $ | |
927 | - | let balA = $ | |
928 | - | let balB = $ | |
929 | - | let shareId = $ | |
930 | - | let bwAsset = $ | |
931 | - | let bwAmount = $ | |
920 | + | let $t03102731131 = parseRequest(requestId) | |
921 | + | let user = $t03102731131._1 | |
922 | + | let pool = $t03102731131._2 | |
923 | + | let pmtA = $t03102731131._3 | |
924 | + | let AId = $t03102731131._4 | |
925 | + | let pmtB = $t03102731131._5 | |
926 | + | let BId = $t03102731131._6 | |
927 | + | let balA = $t03102731131._7 | |
928 | + | let balB = $t03102731131._8 | |
929 | + | let shareId = $t03102731131._9 | |
930 | + | let bwAsset = $t03102731131._10 | |
931 | + | let bwAmount = $t03102731131._11 | |
932 | 932 | if ((size(i.payments) != 1)) | |
933 | 933 | then throw("Wrong payment size") | |
934 | 934 | else if (if ((assetIdToStr(i.payments[0].assetId) != bwAsset)) | |
936 | 936 | else (i.payments[0].amount != bwAmount)) | |
937 | 937 | then throw("Wrong payment") | |
938 | 938 | else { | |
939 | - | let $ | |
939 | + | let $t03132131445 = if ((AId == bwAsset)) | |
940 | 940 | then $Tuple2((pmtA + i.payments[0].amount), pmtB) | |
941 | 941 | else $Tuple2(pmtA, (pmtB + i.payments[0].amount)) | |
942 | - | let pmtAllA = $ | |
943 | - | let pmtAllB = $ | |
942 | + | let pmtAllA = $t03132131445._1 | |
943 | + | let pmtAllB = $t03132131445._2 | |
944 | 944 | let pType = valueOrErrorMessage(getString(this, (kPool + pool)), "Unknown pool") | |
945 | - | let $ | |
946 | - | let userStaked = $ | |
947 | - | let axlyFee = $ | |
945 | + | let $t03152731636 = replenishByType(pType, pool, LOAN_FEE, pmtA, AId, pmtB, BId, balA, balB, shareId) | |
946 | + | let userStaked = $t03152731636._1 | |
947 | + | let axlyFee = $t03152731636._2 | |
948 | 948 | let posNum = getNewUserPositionNumber(pool, toString(i.caller)) | |
949 | 949 | let borrowEntries = [IntegerEntry((((((pool + "_") + user) + "_") + toString(posNum)) + kUserBorrowAmount), bwAmount), StringEntry((((((pool + "_") + user) + "_") + toString(posNum)) + kUserBorrowAssetId), bwAsset)] | |
950 | 950 | let entries = replenishEntries(pool, user, userStaked, axlyFee, posNum, shareId, pType, true) | |
1008 | 1008 | func liquidate (user,posId,liquidateAmount) = { | |
1009 | 1009 | let pool = valueOrErrorMessage(getString(this, (((user + "_") + posId) + kUserPositionPool)), "no position") | |
1010 | 1010 | let pType = valueOrErrorMessage(getString(this, (kPool + pool)), "Pool is not inited") | |
1011 | - | let $ | |
1012 | - | let AId = $ | |
1013 | - | let BId = $ | |
1014 | - | let balA = $ | |
1015 | - | let balB = $ | |
1016 | - | let shareId = $ | |
1011 | + | let $t03441934509 = getPoolData(Address(fromBase58String(pool)), pType) | |
1012 | + | let AId = $t03441934509._1 | |
1013 | + | let BId = $t03441934509._2 | |
1014 | + | let balA = $t03441934509._3 | |
1015 | + | let balB = $t03441934509._4 | |
1016 | + | let shareId = $t03441934509._5 | |
1017 | 1017 | let amount = unstakeLP(pool, pType, shareId, liquidateAmount) | |
1018 | 1018 | let borrowAmount = getIntegerValue(this, (((((pool + "_") + user) + "_") + posId) + kUserBorrowAmount)) | |
1019 | 1019 | let borrowAsset = getStringValue(this, (((((pool + "_") + user) + "_") + posId) + kUserBorrowAssetId)) | |
1027 | 1027 | ||
1028 | 1028 | @Callable(i) | |
1029 | 1029 | func capitalizeExKeeper (pool,type,tokenToId,amountToExchange,claim,amountsIn,addresses,assetsToReceive,estReceived,slippageTolerance,minReceived,options) = { | |
1030 | - | let $ | |
1030 | + | let $t03584936043 = if (claim) | |
1031 | 1031 | then claimFarmed(type, pool) | |
1032 | 1032 | else { | |
1033 | 1033 | let claimedAsset = if ((type == SF_POOL)) | |
1035 | 1035 | else WXID | |
1036 | 1036 | $Tuple2(amountToExchange, claimedAsset) | |
1037 | 1037 | } | |
1038 | - | let claimedAmount = $ | |
1039 | - | let claimedAsset = $ | |
1038 | + | let claimedAmount = $t03584936043._1 | |
1039 | + | let claimedAsset = $t03584936043._2 | |
1040 | 1040 | let exchangedAmount = exchangeKeeper(tokenToId, amountToExchange, claimedAsset, amountsIn, addresses, assetsToReceive, estReceived, slippageTolerance, minReceived, options) | |
1041 | 1041 | let change = (claimedAmount - amountToExchange) | |
1042 | 1042 | let changeEntry = if ((change > 0)) | |
1049 | 1049 | ||
1050 | 1050 | @Callable(i) | |
1051 | 1051 | func capitalizeExPuzzle (pool,type,tokenToId,amountToExchange,claim,routesStr,minToReceive,options) = { | |
1052 | - | let $ | |
1052 | + | let $t03670036894 = if (claim) | |
1053 | 1053 | then claimFarmed(type, pool) | |
1054 | 1054 | else { | |
1055 | 1055 | let claimedAsset = if ((type == SF_POOL)) | |
1057 | 1057 | else WXID | |
1058 | 1058 | $Tuple2(amountToExchange, claimedAsset) | |
1059 | 1059 | } | |
1060 | - | let claimedAmount = $ | |
1061 | - | let claimedAsset = $ | |
1060 | + | let claimedAmount = $t03670036894._1 | |
1061 | + | let claimedAsset = $t03670036894._2 | |
1062 | 1062 | let exchangedAmount = exchangePuzzle(tokenToId, amountToExchange, claimedAsset, routesStr, minToReceive, options) | |
1063 | 1063 | let change = (claimedAmount - amountToExchange) | |
1064 | 1064 | let changeEntry = if ((change > 0)) | |
1071 | 1071 | ||
1072 | 1072 | @Callable(i) | |
1073 | 1073 | func capitalizeExSwopFi (pool,type,tokenToId,amountToExchange,claim,exchangers,exchangersType,args1,args2,routingAssetsKeys,minAmountToReceive,options) = { | |
1074 | - | let $ | |
1074 | + | let $t03761737811 = if (claim) | |
1075 | 1075 | then claimFarmed(type, pool) | |
1076 | 1076 | else { | |
1077 | 1077 | let claimedAsset = if ((type == SF_POOL)) | |
1079 | 1079 | else WXID | |
1080 | 1080 | $Tuple2(amountToExchange, claimedAsset) | |
1081 | 1081 | } | |
1082 | - | let claimedAmount = $ | |
1083 | - | let claimedAsset = $ | |
1082 | + | let claimedAmount = $t03761737811._1 | |
1083 | + | let claimedAsset = $t03761737811._2 | |
1084 | 1084 | let exchangedAmount = exchangeSwopFi(tokenToId, amountToExchange, claimedAsset, exchangers, exchangersType, args1, args2, routingAssetsKeys, minAmountToReceive, options) | |
1085 | 1085 | let change = (claimedAmount - amountToExchange) | |
1086 | 1086 | let changeEntry = if ((change > 0)) | |
1097 | 1097 | else false) | |
1098 | 1098 | then throw("Wrong type") | |
1099 | 1099 | else { | |
1100 | - | let $ | |
1101 | - | let aId = $ | |
1102 | - | let bId = $ | |
1103 | - | let aBal = $ | |
1104 | - | let bBal = $ | |
1105 | - | let shareId = $ | |
1100 | + | let $t03850438598 = getPoolData(Address(fromBase58String(poolAddr)), type) | |
1101 | + | let aId = $t03850438598._1 | |
1102 | + | let bId = $t03850438598._2 | |
1103 | + | let aBal = $t03850438598._3 | |
1104 | + | let bBal = $t03850438598._4 | |
1105 | + | let shareId = $t03850438598._5 | |
1106 | 1106 | [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)] | |
1107 | 1107 | } | |
1108 | 1108 | ||
1111 | 1111 | @Callable(i) | |
1112 | 1112 | func capitalizeTest (pool,pType,tokenId,tokenAmount) = { | |
1113 | 1113 | let poolAddr = Address(fromBase58String(pool)) | |
1114 | - | let $ | |
1115 | - | let AId = $ | |
1116 | - | let BId = $ | |
1117 | - | let balA = $ | |
1118 | - | let balB = $ | |
1119 | - | let shareId = $ | |
1120 | - | let $ | |
1114 | + | let $t03939439473 = getPoolData(poolAddr, pType) | |
1115 | + | let AId = $t03939439473._1 | |
1116 | + | let BId = $t03939439473._2 | |
1117 | + | let balA = $t03939439473._3 | |
1118 | + | let balB = $t03939439473._4 | |
1119 | + | let shareId = $t03939439473._5 | |
1120 | + | let $t03947639556 = if ((tokenId == AId)) | |
1121 | 1121 | then $Tuple2(tokenAmount, 0) | |
1122 | 1122 | else $Tuple2(0, tokenAmount) | |
1123 | - | let pmtA = $ | |
1124 | - | let pmtB = $ | |
1125 | - | let $ | |
1126 | - | let stakedAmount = $ | |
1127 | - | let nf = $ | |
1123 | + | let pmtA = $t03947639556._1 | |
1124 | + | let pmtB = $t03947639556._2 | |
1125 | + | let $t03955939663 = replenishByType(pType, pool, NO_FEE, pmtA, AId, pmtB, BId, balA, balB, shareId) | |
1126 | + | let stakedAmount = $t03955939663._1 | |
1127 | + | let nf = $t03955939663._2 | |
1128 | 1128 | let curPoolInterestLoan = valueOrElse(getInteger(this, (pool + kPoolInterestLoan)), 0) | |
1129 | 1129 | let curPoolInterestNoLoan = valueOrElse(getInteger(this, (pool + kPoolInterestNoLoan)), 0) | |
1130 | 1130 | let totalShareAmount = getPoolTotalShare(pool) |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let SF_POOL = "SF" | |
5 | 5 | ||
6 | 6 | let WX_POOL = "WX" | |
7 | 7 | ||
8 | 8 | let CAP_FEE_NO_LOAN = "capNoLoan" | |
9 | 9 | ||
10 | 10 | let CAP_FEE_LOAN = "capLoan" | |
11 | 11 | ||
12 | 12 | let STOPLOSS_FEE_NO_LOAN = "stopLossNoLoan" | |
13 | 13 | ||
14 | 14 | let STOPLOSS_LOAN = "stopLossLoan" | |
15 | 15 | ||
16 | 16 | let LOAN_FEE = "loan" | |
17 | 17 | ||
18 | 18 | let NO_LOAN_FEE = "noLoan" | |
19 | 19 | ||
20 | 20 | let NO_FEE = "noFee" | |
21 | 21 | ||
22 | 22 | let SCALE8 = 100000000 | |
23 | 23 | ||
24 | 24 | let SCALE10 = 10000000000 | |
25 | 25 | ||
26 | 26 | let FEE_SCALE6 = 1000000 | |
27 | 27 | ||
28 | 28 | let kSFPoolAAssetBalance = "A_asset_balance" | |
29 | 29 | ||
30 | 30 | let kSFPoolBAssetBalance = "B_asset_balance" | |
31 | 31 | ||
32 | 32 | let kSFPoolAAssetId = "A_asset_id" | |
33 | 33 | ||
34 | 34 | let kSFPoolBAssetId = "B_asset_id" | |
35 | 35 | ||
36 | 36 | let kSFPoolShareId = "share_asset_id" | |
37 | 37 | ||
38 | 38 | let kSFPoolShareSupply = "share_asset_supply" | |
39 | 39 | ||
40 | 40 | let kSFPoolFee = "commission" | |
41 | 41 | ||
42 | 42 | let kUserPosition = "_user_position" | |
43 | 43 | ||
44 | 44 | let kUserPositionPool = "_user_position_pool" | |
45 | 45 | ||
46 | 46 | let kUserBorrowAmount = "_user_position_borrow_amount" | |
47 | 47 | ||
48 | 48 | let kUserBorrowAssetId = "_user_position_borrow_asset_id" | |
49 | 49 | ||
50 | 50 | let kUserPositionNum = "_user_position_number" | |
51 | 51 | ||
52 | 52 | let kUserPositionInterest = "_user_position_interest" | |
53 | 53 | ||
54 | 54 | let kPoolTotal = "_pool_total" | |
55 | 55 | ||
56 | 56 | let kPoolTotalLoan = "_pool_total_loan" | |
57 | 57 | ||
58 | 58 | let kPoolInterestLoan = "_pool_interest_loan" | |
59 | 59 | ||
60 | 60 | let kPoolInterestNoLoan = "_pool_interest_no_loan" | |
61 | 61 | ||
62 | 62 | let kAxlyInFeeWithoutLoan = "_axly_fee_without_loan" | |
63 | 63 | ||
64 | 64 | let kAxlyInFeeWithLoan = "_axly_fee_with_loan" | |
65 | 65 | ||
66 | 66 | let kAxlyNoLoanCapFee = "_axly_fee_cap_with_loan" | |
67 | 67 | ||
68 | 68 | let kAxlyWithLoanCapFee = "_axly_fee_cap_no_loan" | |
69 | 69 | ||
70 | 70 | let kAxlyStopLossNoLoanFee = "_axly_fee_stoploss_with_loan" | |
71 | 71 | ||
72 | 72 | let kAxlyStopLossLoanFee = "_axly_fee_stoploss_no_loan" | |
73 | 73 | ||
74 | 74 | let kRequestId = "_request_id" | |
75 | 75 | ||
76 | 76 | let kRequestIter = "requests_iter" | |
77 | 77 | ||
78 | 78 | let kPool = "pool_" | |
79 | 79 | ||
80 | 80 | let kSharePool = "_pool_share_id" | |
81 | 81 | ||
82 | 82 | let kPoolCapChange = "_pool_cap_change" | |
83 | 83 | ||
84 | 84 | let kTokenLastPrice = "_last_price" | |
85 | 85 | ||
86 | 86 | let kUserStopLoss = "_stop_loss" | |
87 | 87 | ||
88 | 88 | let kMoneyBox = "axly_money_box" | |
89 | 89 | ||
90 | 90 | let kSFFarmingAddr = "swopfi_farming_addr" | |
91 | 91 | ||
92 | 92 | let kLendService = "lend_service_addr" | |
93 | 93 | ||
94 | 94 | let kPriceOracle = "price_oracle" | |
95 | 95 | ||
96 | 96 | let kExContract = "exchange_contract" | |
97 | 97 | ||
98 | 98 | let kWxSwapContract = "wx_swap_contract" | |
99 | 99 | ||
100 | 100 | let moneyBox = Address(fromBase58String(valueOrErrorMessage(getString(this, kMoneyBox), "No axly moneyBox address"))) | |
101 | 101 | ||
102 | 102 | let exContract = Address(fromBase58String(valueOrErrorMessage(getString(this, kExContract), "No exchange contract address"))) | |
103 | 103 | ||
104 | 104 | let priceOracleAddr = Address(fromBase58String(valueOrErrorMessage(getString(this, kPriceOracle), "No price oracle address"))) | |
105 | 105 | ||
106 | 106 | let wxSwapContract = Address(fromBase58String(valueOrErrorMessage(getString(this, kWxSwapContract), "No wx swap address"))) | |
107 | 107 | ||
108 | 108 | let SWOPID = base58'4W19ndijcc2CsQa9HGW2dfXKTVXhnneWWttxXrtjPmEp' | |
109 | 109 | ||
110 | 110 | let WXID = base58'EMAMLxDnv3xiz8RXg8Btj33jcEw3wLczL3JKYYmuubpc' | |
111 | 111 | ||
112 | 112 | func isSelfCall (i) = if ((i.caller == this)) | |
113 | 113 | then unit | |
114 | 114 | else throw("Only contract itself can call this function") | |
115 | 115 | ||
116 | 116 | ||
117 | 117 | func accountBalance (assetId) = match assetId { | |
118 | 118 | case id: ByteVector => | |
119 | 119 | assetBalance(this, id) | |
120 | 120 | case waves: Unit => | |
121 | 121 | wavesBalance(this).available | |
122 | 122 | case _ => | |
123 | 123 | throw("Match error") | |
124 | 124 | } | |
125 | 125 | ||
126 | 126 | ||
127 | 127 | 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")) | |
128 | 128 | ||
129 | 129 | ||
130 | 130 | func getWXPoolData (poolAddr) = { | |
131 | 131 | let cfg = { | |
132 | 132 | let @ = invoke(poolAddr, "getPoolConfigWrapperREADONLY", nil, nil) | |
133 | 133 | if ($isInstanceOf(@, "List[Any]")) | |
134 | 134 | then @ | |
135 | 135 | else throw(($getType(@) + " couldn't be cast to List[Any]")) | |
136 | 136 | } | |
137 | 137 | if ((cfg == cfg)) | |
138 | 138 | then { | |
139 | 139 | let aId = valueOrErrorMessage({ | |
140 | 140 | let @ = cfg[4] | |
141 | 141 | if ($isInstanceOf(@, "String")) | |
142 | 142 | then @ | |
143 | 143 | else unit | |
144 | 144 | }, "Can't get pool A asset id") | |
145 | 145 | let bId = valueOrErrorMessage({ | |
146 | 146 | let @ = cfg[5] | |
147 | 147 | if ($isInstanceOf(@, "String")) | |
148 | 148 | then @ | |
149 | 149 | else unit | |
150 | 150 | }, "Can't get pool B asset id") | |
151 | 151 | let shareId = valueOrErrorMessage({ | |
152 | 152 | let @ = cfg[3] | |
153 | 153 | if ($isInstanceOf(@, "String")) | |
154 | 154 | then @ | |
155 | 155 | else unit | |
156 | 156 | }, "Can't get pool LP asset id") | |
157 | 157 | let balA = { | |
158 | 158 | let @ = invoke(poolAddr, "getAccBalanceWrapperREADONLY", [aId], nil) | |
159 | 159 | if ($isInstanceOf(@, "Int")) | |
160 | 160 | then @ | |
161 | 161 | else throw(($getType(@) + " couldn't be cast to Int")) | |
162 | 162 | } | |
163 | 163 | if ((balA == balA)) | |
164 | 164 | then { | |
165 | 165 | let balB = { | |
166 | 166 | let @ = invoke(poolAddr, "getAccBalanceWrapperREADONLY", [bId], nil) | |
167 | 167 | if ($isInstanceOf(@, "Int")) | |
168 | 168 | then @ | |
169 | 169 | else throw(($getType(@) + " couldn't be cast to Int")) | |
170 | 170 | } | |
171 | 171 | if ((balB == balB)) | |
172 | 172 | then $Tuple5(aId, bId, balA, balB, shareId) | |
173 | 173 | else throw("Strict value is not equal to itself.") | |
174 | 174 | } | |
175 | 175 | else throw("Strict value is not equal to itself.") | |
176 | 176 | } | |
177 | 177 | else throw("Strict value is not equal to itself.") | |
178 | 178 | } | |
179 | 179 | ||
180 | 180 | ||
181 | 181 | func getPoolData (poolAddr,type) = if ((type == SF_POOL)) | |
182 | 182 | then getSFPoolData(poolAddr) | |
183 | 183 | else if ((type == WX_POOL)) | |
184 | 184 | then getWXPoolData(poolAddr) | |
185 | 185 | else throw("Wrong pool type") | |
186 | 186 | ||
187 | 187 | ||
188 | 188 | func getShareSupply (poolAddr,type,shareId) = if ((type == SF_POOL)) | |
189 | 189 | then valueOrErrorMessage(getInteger(poolAddr, kSFPoolShareSupply), "Can't get share asset supply") | |
190 | 190 | else if ((type == WX_POOL)) | |
191 | 191 | then valueOrErrorMessage(assetInfo(fromBase58String(shareId)), "Wrong ShareId").quantity | |
192 | 192 | else throw("Wrong pool type") | |
193 | 193 | ||
194 | 194 | ||
195 | 195 | func getPoolTotalShare (pool) = valueOrElse(getInteger(this, (pool + kPoolTotal)), 0) | |
196 | 196 | ||
197 | 197 | ||
198 | 198 | func getPoolTotalShareWithLoan (pool) = valueOrElse(getInteger(this, (pool + kPoolTotalLoan)), 0) | |
199 | 199 | ||
200 | 200 | ||
201 | 201 | func getNewUserPositionNumber (pool,user) = (valueOrElse(getInteger(this, (user + kUserPositionNum)), 0) + 1) | |
202 | 202 | ||
203 | 203 | ||
204 | 204 | func getAxlyFee (pool,feeType) = if ((feeType == CAP_FEE_LOAN)) | |
205 | 205 | then getIntegerValue(this, (pool + kAxlyWithLoanCapFee)) | |
206 | 206 | else if ((feeType == CAP_FEE_NO_LOAN)) | |
207 | 207 | then getIntegerValue(this, (pool + kAxlyNoLoanCapFee)) | |
208 | 208 | else if ((feeType == LOAN_FEE)) | |
209 | 209 | then getIntegerValue(this, (pool + kAxlyInFeeWithLoan)) | |
210 | 210 | else if ((feeType == NO_LOAN_FEE)) | |
211 | 211 | then getIntegerValue(this, (pool + kAxlyInFeeWithoutLoan)) | |
212 | 212 | else if ((feeType == NO_FEE)) | |
213 | 213 | then 0 | |
214 | 214 | else throw("Wrong fee type") | |
215 | 215 | ||
216 | 216 | ||
217 | 217 | func getSFFarmingAddr () = Address(fromBase58String(valueOrErrorMessage(getString(this, kSFFarmingAddr), "Can't get swopfi farming addr"))) | |
218 | 218 | ||
219 | 219 | ||
220 | 220 | func getWXFarmingAddr (poolAddr) = { | |
221 | 221 | let fContract = Address(fromBase58String(valueOrErrorMessage(getString(poolAddr, "%s__factoryContract"), "Can't get WX factory contract addr"))) | |
222 | 222 | let factroyCfg = split(valueOrErrorMessage(getString(fContract, "%s__factoryConfig"), "Can't get WX factory cfg"), "__") | |
223 | 223 | Address(fromBase58String(factroyCfg[1])) | |
224 | 224 | } | |
225 | 225 | ||
226 | 226 | ||
227 | 227 | func getLendSrvAddr () = Address(fromBase58String(valueOrErrorMessage(getString(this, kLendService), "Can't get lend service addr"))) | |
228 | 228 | ||
229 | 229 | ||
230 | 230 | func assetIdToStr (assetId) = match assetId { | |
231 | 231 | case id: ByteVector => | |
232 | 232 | toBase58String(id) | |
233 | 233 | case waves: Unit => | |
234 | 234 | "WAVES" | |
235 | 235 | case _ => | |
236 | 236 | throw("Match error") | |
237 | 237 | } | |
238 | 238 | ||
239 | 239 | ||
240 | 240 | func assetIdFromStr (assetId) = if ((assetId == "WAVES")) | |
241 | 241 | then unit | |
242 | 242 | else fromBase58String(assetId) | |
243 | 243 | ||
244 | 244 | ||
245 | 245 | func getAssetDecimals (assetId) = if ((assetId == "WAVES")) | |
246 | 246 | then 8 | |
247 | 247 | else match assetInfo(fromBase58String(assetId)) { | |
248 | 248 | case asset: Asset => | |
249 | 249 | asset.decimals | |
250 | 250 | case _ => | |
251 | 251 | throw("Can't find asset") | |
252 | 252 | } | |
253 | 253 | ||
254 | 254 | ||
255 | 255 | func getAssetPrecition (assetId) = pow(10, 0, getAssetDecimals(assetId), 0, 0, DOWN) | |
256 | 256 | ||
257 | 257 | ||
258 | 258 | func getAssetsPrice (assetIds) = { | |
259 | 259 | func getPrices (a,assetId) = { | |
260 | 260 | let assetPrice = ( let @ = invoke(priceOracleAddr, "getTWAP60", [assetId, false], nil) | |
261 | 261 | if ($isInstanceOf(@, "(Int, Int)")) | |
262 | 262 | then @ | |
263 | 263 | else throw(($getType(@) + " couldn't be cast to (Int, Int)")))._2 | |
264 | 264 | (a :+ assetPrice) | |
265 | 265 | } | |
266 | 266 | ||
267 | 267 | let $l = assetIds | |
268 | 268 | let $s = size($l) | |
269 | 269 | let $acc0 = nil | |
270 | 270 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
271 | 271 | then $a | |
272 | 272 | else getPrices($a, $l[$i]) | |
273 | 273 | ||
274 | 274 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
275 | 275 | then $a | |
276 | 276 | else throw("List size exceeds 100") | |
277 | 277 | ||
278 | 278 | $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) | |
279 | 279 | } | |
280 | 280 | ||
281 | 281 | ||
282 | 282 | func getSharePrice (shareIds) = { | |
283 | 283 | func getPrices (a,shareId) = { | |
284 | 284 | let pool = valueOrErrorMessage(getString(this, (shareId + kSharePool)), "Can't find pool addr by share id") | |
285 | 285 | let poolAddr = Address(fromBase58String(pool)) | |
286 | 286 | let pType = valueOrErrorMessage(getString(this, (kPool + pool)), "Pool is not inited") | |
287 | 287 | let $t084298494 = getPoolData(poolAddr, pType) | |
288 | 288 | let aId = $t084298494._1 | |
289 | 289 | let bId = $t084298494._2 | |
290 | 290 | let aBalance = $t084298494._3 | |
291 | 291 | let bBalance = $t084298494._4 | |
292 | 292 | let dPriceA = ( let @ = invoke(priceOracleAddr, "getTWAP60", [aId, false], nil) | |
293 | 293 | if ($isInstanceOf(@, "(Int, Int)")) | |
294 | 294 | then @ | |
295 | 295 | else throw(($getType(@) + " couldn't be cast to (Int, Int)")))._2 | |
296 | 296 | let dPriceB = ( let @ = invoke(priceOracleAddr, "getTWAP60", [bId, false], nil) | |
297 | 297 | if ($isInstanceOf(@, "(Int, Int)")) | |
298 | 298 | then @ | |
299 | 299 | else throw(($getType(@) + " couldn't be cast to (Int, Int)")))._2 | |
300 | 300 | let shareSupply = getShareSupply(poolAddr, pType, shareId) | |
301 | 301 | let APrecision = pow(10, 0, getAssetDecimals(aId), 0, 0, DOWN) | |
302 | 302 | let BPrecision = pow(10, 0, getAssetDecimals(bId), 0, 0, DOWN) | |
303 | 303 | let sharePrecision = pow(10, 0, getAssetDecimals(shareId), 0, 0, DOWN) | |
304 | 304 | let sum = (fraction(aBalance, dPriceA, APrecision) + fraction(bBalance, dPriceB, BPrecision)) | |
305 | 305 | let sharePrice = fraction(sum, sharePrecision, shareSupply) | |
306 | 306 | (a :+ sharePrice) | |
307 | 307 | } | |
308 | 308 | ||
309 | 309 | let $l = shareIds | |
310 | 310 | let $s = size($l) | |
311 | 311 | let $acc0 = nil | |
312 | 312 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
313 | 313 | then $a | |
314 | 314 | else getPrices($a, $l[$i]) | |
315 | 315 | ||
316 | 316 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
317 | 317 | then $a | |
318 | 318 | else throw("List size exceeds 50") | |
319 | 319 | ||
320 | 320 | $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) | |
321 | 321 | } | |
322 | 322 | ||
323 | 323 | ||
324 | 324 | func getCursEntries (aId,bId,shareId) = { | |
325 | 325 | let assetsPrices = getAssetsPrice([aId, bId]) | |
326 | 326 | let sharePrice = getSharePrice([shareId]) | |
327 | 327 | [IntegerEntry((aId + kTokenLastPrice), assetsPrices[0]), IntegerEntry((bId + kTokenLastPrice), assetsPrices[1]), IntegerEntry((shareId + kTokenLastPrice), sharePrice[0])] | |
328 | 328 | } | |
329 | 329 | ||
330 | 330 | ||
331 | 331 | func calcReplenishByTwoTokens (pType,poolAddr,pmtA,aId,pmtB,bId,balA,balB) = { | |
332 | 332 | let $t096669971 = if ((pType == SF_POOL)) | |
333 | 333 | then $Tuple2(nil, nil) | |
334 | 334 | else $Tuple2(split({ | |
335 | 335 | let @ = invoke(poolAddr, "evaluatePutByAmountAssetREADONLY", [pmtA], nil) | |
336 | 336 | if ($isInstanceOf(@, "String")) | |
337 | 337 | then @ | |
338 | 338 | else throw(($getType(@) + " couldn't be cast to String")) | |
339 | 339 | }, "__"), split({ | |
340 | 340 | let @ = invoke(poolAddr, "evaluatePutByPriceAssetREADONLY", [pmtB], nil) | |
341 | 341 | if ($isInstanceOf(@, "String")) | |
342 | 342 | then @ | |
343 | 343 | else throw(($getType(@) + " couldn't be cast to String")) | |
344 | 344 | }, "__")) | |
345 | 345 | if (($t096669971 == $t096669971)) | |
346 | 346 | then { | |
347 | 347 | let evalPutInB = $t096669971._2 | |
348 | 348 | let evalPutInA = $t096669971._1 | |
349 | 349 | let $t0998110177 = if ((pType == SF_POOL)) | |
350 | 350 | then $Tuple2(fraction(SCALE8, pmtA, balA), fraction(SCALE8, pmtB, balB)) | |
351 | 351 | else $Tuple2(parseIntValue(evalPutInA[1]), parseIntValue(evalPutInB[1])) | |
352 | 352 | let ratioA = $t0998110177._1 | |
353 | 353 | let ratioB = $t0998110177._2 | |
354 | 354 | let $t01018310646 = if ((ratioB > ratioA)) | |
355 | 355 | then { | |
356 | 356 | let pmt = if ((pType == SF_POOL)) | |
357 | 357 | then fraction(balB, ratioA, SCALE8, CEILING) | |
358 | 358 | else parseIntValue(evalPutInA[8]) | |
359 | 359 | $Tuple4(pmtA, pmt, (pmtB - pmt), bId) | |
360 | 360 | } | |
361 | 361 | else { | |
362 | 362 | let pmt = if ((pType == SF_POOL)) | |
363 | 363 | then fraction(balA, ratioB, SCALE8, CEILING) | |
364 | 364 | else parseIntValue(evalPutInB[8]) | |
365 | 365 | $Tuple4(pmtA, pmtB, (pmtA - pmt), aId) | |
366 | 366 | } | |
367 | 367 | let pmtInA = $t01018310646._1 | |
368 | 368 | let pmtInB = $t01018310646._2 | |
369 | 369 | let change = $t01018310646._3 | |
370 | 370 | let changeAssetId = $t01018310646._4 | |
371 | 371 | $Tuple4(pmtInA, pmtInB, change, changeAssetId) | |
372 | 372 | } | |
373 | 373 | else throw("Strict value is not equal to itself.") | |
374 | 374 | } | |
375 | 375 | ||
376 | 376 | ||
377 | 377 | func replenishTwoTokensByType (poolAddr,pType,pmtA,aId,pmtB,bId) = { | |
378 | 378 | let payments = [AttachedPayment(assetIdFromStr(aId), pmtA), AttachedPayment(assetIdFromStr(bId), pmtB)] | |
379 | 379 | if ((pType == SF_POOL)) | |
380 | 380 | then invoke(poolAddr, "callFunction", ["replenishWithTwoTokens", ["false", "0"]], payments) | |
381 | 381 | else invoke(poolAddr, "put", [1000000, false], payments) | |
382 | 382 | } | |
383 | 383 | ||
384 | 384 | ||
385 | 385 | func replenishOneTokenByType (poolAddr,pType,pmt,pmtId) = { | |
386 | 386 | let payments = [AttachedPayment(assetIdFromStr(pmtId), pmt)] | |
387 | 387 | if ((pType == SF_POOL)) | |
388 | 388 | then invoke(poolAddr, "callFunction", ["replenishWithOneToken", ["0", "false", "0"]], payments) | |
389 | 389 | else invoke(poolAddr, "putOneTkn", [0, false], payments) | |
390 | 390 | } | |
391 | 391 | ||
392 | 392 | ||
393 | 393 | func stakeLP (pool,pType,shareId,amount) = { | |
394 | 394 | let payments = [AttachedPayment(fromBase58String(shareId), amount)] | |
395 | 395 | if ((pType == SF_POOL)) | |
396 | 396 | then invoke(getSFFarmingAddr(), "lockShareTokens", [pool, 0], payments) | |
397 | 397 | else invoke(getWXFarmingAddr(addressFromStringValue(pool)), "stake", nil, payments) | |
398 | 398 | } | |
399 | 399 | ||
400 | 400 | ||
401 | 401 | func unstakeLP (pool,pType,shareId,amount) = { | |
402 | 402 | let $t01187212229 = if ((pType == SF_POOL)) | |
403 | 403 | then $Tuple3(getSFFarmingAddr(), "withdrawShareTokens", [pool, amount]) | |
404 | 404 | else if ((pType == WX_POOL)) | |
405 | 405 | then $Tuple3(getWXFarmingAddr(Address(fromBase58String(pool))), "unstake", [shareId, amount]) | |
406 | 406 | else throw("Wrong pool type") | |
407 | 407 | let farmAddr = $t01187212229._1 | |
408 | 408 | let fName = $t01187212229._2 | |
409 | 409 | let params = $t01187212229._3 | |
410 | 410 | let inv = invoke(farmAddr, fName, params, nil) | |
411 | 411 | if ((inv == inv)) | |
412 | 412 | then amount | |
413 | 413 | else throw("Strict value is not equal to itself.") | |
414 | 414 | } | |
415 | 415 | ||
416 | 416 | ||
417 | 417 | func calcReplanishLPVirt (pType,pool,pmtA,aId,pmtB,bId,balA,balB) = { | |
418 | 418 | let poolAddr = addressFromStringValue(pool) | |
419 | 419 | if ((pType == SF_POOL)) | |
420 | 420 | then nil | |
421 | 421 | else if ((pType == WX_POOL)) | |
422 | 422 | then { | |
423 | 423 | let $t01254312659 = calcReplenishByTwoTokens(pType, poolAddr, pmtA, aId, pmtB, bId, balA, balB) | |
424 | 424 | let pmtInA = $t01254312659._1 | |
425 | 425 | let pmtInB = $t01254312659._2 | |
426 | 426 | let change = $t01254312659._3 | |
427 | 427 | let changeId = $t01254312659._4 | |
428 | 428 | let inv = split({ | |
429 | 429 | let @ = invoke(poolAddr, "estimatePutOperationWrapperREADONLY", [pmtInA], nil) | |
430 | 430 | if ($isInstanceOf(@, "String")) | |
431 | 431 | then @ | |
432 | 432 | else throw(($getType(@) + " couldn't be cast to String")) | |
433 | 433 | }, "__") | |
434 | 434 | if ((inv == inv)) | |
435 | 435 | then nil | |
436 | 436 | else throw("Strict value is not equal to itself.") | |
437 | 437 | } | |
438 | 438 | else throw("Wrong pool type") | |
439 | 439 | } | |
440 | 440 | ||
441 | 441 | ||
442 | 442 | func claimFarmed (type,pool) = if ((type == SF_POOL)) | |
443 | 443 | then { | |
444 | 444 | let balBefore = accountBalance(SWOPID) | |
445 | 445 | if ((balBefore == balBefore)) | |
446 | 446 | then { | |
447 | 447 | let inv = invoke(getSFFarmingAddr(), "claim", [pool], nil) | |
448 | 448 | if ((inv == inv)) | |
449 | 449 | then { | |
450 | 450 | let balAfter = accountBalance(SWOPID) | |
451 | 451 | $Tuple2((balAfter - balBefore), SWOPID) | |
452 | 452 | } | |
453 | 453 | else throw("Strict value is not equal to itself.") | |
454 | 454 | } | |
455 | 455 | else throw("Strict value is not equal to itself.") | |
456 | 456 | } | |
457 | 457 | else if ((type == WX_POOL)) | |
458 | 458 | then { | |
459 | 459 | let balBefore = accountBalance(WXID) | |
460 | 460 | if ((balBefore == balBefore)) | |
461 | 461 | then { | |
462 | 462 | let inv = invoke(getWXFarmingAddr(Address(fromBase58String(pool))), "claimWX", [pool], nil) | |
463 | 463 | if ((inv == inv)) | |
464 | 464 | then { | |
465 | 465 | let balAfter = accountBalance(WXID) | |
466 | 466 | $Tuple2((balAfter - balBefore), WXID) | |
467 | 467 | } | |
468 | 468 | else throw("Strict value is not equal to itself.") | |
469 | 469 | } | |
470 | 470 | else throw("Strict value is not equal to itself.") | |
471 | 471 | } | |
472 | 472 | else throw("Wrong pool type") | |
473 | 473 | ||
474 | 474 | ||
475 | 475 | func replenishByType (pType,pool,feeType,pmtA,aId,pmtB,bId,balA,balB,LPId) = { | |
476 | 476 | let lpBalanceBefore = accountBalance(fromBase58String(LPId)) | |
477 | 477 | if ((lpBalanceBefore == lpBalanceBefore)) | |
478 | 478 | then { | |
479 | 479 | let poolAddr = addressFromStringValue(pool) | |
480 | 480 | let $t01377814194 = if (if ((pmtA > 0)) | |
481 | 481 | then (pmtB > 0) | |
482 | 482 | else false) | |
483 | 483 | then { | |
484 | 484 | let $t01384413960 = calcReplenishByTwoTokens(pType, poolAddr, pmtA, aId, pmtB, bId, balA, balB) | |
485 | 485 | let pmtInA = $t01384413960._1 | |
486 | 486 | let pmtInB = $t01384413960._2 | |
487 | 487 | let change = $t01384413960._3 | |
488 | 488 | let changeId = $t01384413960._4 | |
489 | 489 | let inv = replenishTwoTokensByType(poolAddr, pType, pmtInA, aId, pmtInB, bId) | |
490 | 490 | if ((inv == inv)) | |
491 | 491 | then $Tuple2(change, changeId) | |
492 | 492 | else throw("Strict value is not equal to itself.") | |
493 | 493 | } | |
494 | 494 | else if ((pmtA > 0)) | |
495 | 495 | then $Tuple2(pmtA, aId) | |
496 | 496 | else if ((pmtB > 0)) | |
497 | 497 | then $Tuple2(pmtB, bId) | |
498 | 498 | else throw("pmts must be > 0") | |
499 | 499 | let change = $t01377814194._1 | |
500 | 500 | let changeId = $t01377814194._2 | |
501 | 501 | let inv = if ((change > 0)) | |
502 | 502 | then replenishOneTokenByType(poolAddr, pType, change, changeId) | |
503 | 503 | else nil | |
504 | 504 | if ((inv == inv)) | |
505 | 505 | then { | |
506 | 506 | let lpBalanceAfter = accountBalance(fromBase58String(LPId)) | |
507 | 507 | let totalStaked = (lpBalanceAfter - lpBalanceBefore) | |
508 | 508 | let axlyFeeAmount = fraction(totalStaked, getAxlyFee(pool, feeType), FEE_SCALE6) | |
509 | 509 | let userShareForStake = (totalStaked - axlyFeeAmount) | |
510 | 510 | if ((0 >= userShareForStake)) | |
511 | 511 | then throw("amount of staked sharetokens must be > 0") | |
512 | 512 | else { | |
513 | 513 | let invLP = stakeLP(pool, pType, LPId, userShareForStake) | |
514 | 514 | if ((invLP == invLP)) | |
515 | 515 | then $Tuple2(userShareForStake, axlyFeeAmount) | |
516 | 516 | else throw("Strict value is not equal to itself.") | |
517 | 517 | } | |
518 | 518 | } | |
519 | 519 | else throw("Strict value is not equal to itself.") | |
520 | 520 | } | |
521 | 521 | else throw("Strict value is not equal to itself.") | |
522 | 522 | } | |
523 | 523 | ||
524 | 524 | ||
525 | 525 | func replenishEntries (pool,user,stakedAmount,axlyFeeAmount,posNum,shareId,type,withLoan) = { | |
526 | 526 | let totalAmount = getPoolTotalShare(pool) | |
527 | 527 | let totalAmountLoan = getPoolTotalShareWithLoan(pool) | |
528 | 528 | let $t01505215290 = if (withLoan) | |
529 | 529 | then $Tuple2(getIntegerValue(this, (pool + kPoolInterestLoan)), (totalAmountLoan + stakedAmount)) | |
530 | 530 | else $Tuple2(getIntegerValue(this, (pool + kPoolInterestNoLoan)), totalAmountLoan) | |
531 | 531 | let curPoolInterest = $t01505215290._1 | |
532 | 532 | let totalStakedWithLoan = $t01505215290._2 | |
533 | 533 | [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))] | |
534 | 534 | } | |
535 | 535 | ||
536 | 536 | ||
537 | 537 | func exchangeKeeper (toToken,pmtAmount,pmtAsset,amountsIn,addresses,assetsToReceive,estReceived,slippageTolerance,minReceived,options) = { | |
538 | 538 | let tokenBalanceBefore = accountBalance(assetIdFromStr(toToken)) | |
539 | 539 | if ((tokenBalanceBefore == tokenBalanceBefore)) | |
540 | 540 | then { | |
541 | 541 | let inv = invoke(exContract, "swap", [amountsIn, addresses, assetsToReceive, estReceived, slippageTolerance, minReceived, options], [AttachedPayment(pmtAsset, pmtAmount)]) | |
542 | 542 | if ((inv == inv)) | |
543 | 543 | then (accountBalance(assetIdFromStr(toToken)) - tokenBalanceBefore) | |
544 | 544 | else throw("Strict value is not equal to itself.") | |
545 | 545 | } | |
546 | 546 | else throw("Strict value is not equal to itself.") | |
547 | 547 | } | |
548 | 548 | ||
549 | 549 | ||
550 | 550 | func exchangePuzzle (toToken,pmtAmount,pmtAsset,routesStr,minToReceive,options) = { | |
551 | 551 | let tokenBalanceBefore = accountBalance(assetIdFromStr(toToken)) | |
552 | 552 | if ((tokenBalanceBefore == tokenBalanceBefore)) | |
553 | 553 | then { | |
554 | 554 | let inv = invoke(exContract, "puzzleSwap", [routesStr, minToReceive, options], [AttachedPayment(pmtAsset, pmtAmount)]) | |
555 | 555 | if ((inv == inv)) | |
556 | 556 | then (accountBalance(assetIdFromStr(toToken)) - tokenBalanceBefore) | |
557 | 557 | else throw("Strict value is not equal to itself.") | |
558 | 558 | } | |
559 | 559 | else throw("Strict value is not equal to itself.") | |
560 | 560 | } | |
561 | 561 | ||
562 | 562 | ||
563 | 563 | func exchangeSwopFi (toToken,pmtAmount,pmtAsset,exchangers,exchangersType,args1,args2,routingAssetsKeys,minAmountToReceive,options) = { | |
564 | 564 | let tokenBalanceBefore = accountBalance(assetIdFromStr(toToken)) | |
565 | 565 | if ((tokenBalanceBefore == tokenBalanceBefore)) | |
566 | 566 | then { | |
567 | 567 | let inv = invoke(exContract, "swopfiSwap", [exchangers, exchangersType, args1, args2, routingAssetsKeys, minAmountToReceive, options], [AttachedPayment(pmtAsset, pmtAmount)]) | |
568 | 568 | if ((inv == inv)) | |
569 | 569 | then (accountBalance(assetIdFromStr(toToken)) - tokenBalanceBefore) | |
570 | 570 | else throw("Strict value is not equal to itself.") | |
571 | 571 | } | |
572 | 572 | else throw("Strict value is not equal to itself.") | |
573 | 573 | } | |
574 | 574 | ||
575 | 575 | ||
576 | 576 | func capitalize (pool,pType,tokenId,tokenAmount) = { | |
577 | 577 | let poolAddr = Address(fromBase58String(pool)) | |
578 | 578 | let $t01764117720 = getPoolData(poolAddr, pType) | |
579 | 579 | let AId = $t01764117720._1 | |
580 | 580 | let BId = $t01764117720._2 | |
581 | 581 | let balA = $t01764117720._3 | |
582 | 582 | let balB = $t01764117720._4 | |
583 | 583 | let shareId = $t01764117720._5 | |
584 | 584 | let $t01772317803 = if ((tokenId == AId)) | |
585 | 585 | then $Tuple2(tokenAmount, 0) | |
586 | 586 | else $Tuple2(0, tokenAmount) | |
587 | 587 | let pmtA = $t01772317803._1 | |
588 | 588 | let pmtB = $t01772317803._2 | |
589 | 589 | let $t01780617910 = replenishByType(pType, pool, NO_FEE, pmtA, AId, pmtB, BId, balA, balB, shareId) | |
590 | 590 | let stakedAmount = $t01780617910._1 | |
591 | 591 | let nf = $t01780617910._2 | |
592 | 592 | let curPoolInterestLoan = valueOrElse(getInteger(this, (pool + kPoolInterestLoan)), 0) | |
593 | 593 | let curPoolInterestNoLoan = valueOrElse(getInteger(this, (pool + kPoolInterestNoLoan)), 0) | |
594 | 594 | let totalShareAmount = getPoolTotalShare(pool) | |
595 | 595 | let totalShareAmountWithLoan = getPoolTotalShareWithLoan(pool) | |
596 | 596 | let loanPercent = fraction(totalShareAmountWithLoan, SCALE8, totalShareAmount) | |
597 | 597 | let stakedLoan = fraction(stakedAmount, loanPercent, SCALE8) | |
598 | 598 | let stakedNoLoan = (stakedAmount - stakedLoan) | |
599 | 599 | let newInterestLoan = if ((totalShareAmountWithLoan > 0)) | |
600 | 600 | then (curPoolInterestLoan + fraction(stakedLoan, SCALE10, totalShareAmountWithLoan)) | |
601 | 601 | else 0 | |
602 | 602 | let newInterestNoLoan = if (((totalShareAmount - totalShareAmountWithLoan) > 0)) | |
603 | 603 | then (curPoolInterestNoLoan + fraction(stakedNoLoan, SCALE10, (totalShareAmount - totalShareAmountWithLoan))) | |
604 | 604 | else 0 | |
605 | 605 | let axlyFeeLoan = fraction(stakedLoan, getAxlyFee(pool, CAP_FEE_LOAN), FEE_SCALE6) | |
606 | 606 | let axlyFeeNoLoan = fraction(stakedNoLoan, getAxlyFee(pool, CAP_FEE_NO_LOAN), FEE_SCALE6) | |
607 | 607 | let axlyFee = unstakeLP(pool, pType, shareId, (axlyFeeLoan + axlyFeeNoLoan)) | |
608 | 608 | if ((axlyFee == axlyFee)) | |
609 | 609 | then ([IntegerEntry((pool + kPoolInterestLoan), newInterestLoan), IntegerEntry((pool + kPoolInterestNoLoan), newInterestNoLoan), IntegerEntry((pool + kPoolTotal), ((totalShareAmount + stakedAmount) - axlyFee)), IntegerEntry((pool + kPoolTotalLoan), ((totalShareAmountWithLoan + stakedLoan) - axlyFeeLoan)), ScriptTransfer(moneyBox, (axlyFeeLoan + axlyFeeNoLoan), fromBase58String(shareId))] ++ getCursEntries(AId, BId, shareId)) | |
610 | 610 | else throw("Strict value is not equal to itself.") | |
611 | 611 | } | |
612 | 612 | ||
613 | 613 | ||
614 | 614 | func exchangeDirectlySF (pool,assetIdA,assetIdB,balA,balB,amountTokenToGet,assetTokenToGet) = { | |
615 | 615 | let poolAddr = Address(fromBase58String(pool)) | |
616 | 616 | let feeScale6 = 1000000 | |
617 | 617 | let fee = getIntegerValue(poolAddr, kSFPoolFee) | |
618 | 618 | let amntGetNoFee = fraction(amountTokenToGet, feeScale6, (feeScale6 - fee)) | |
619 | 619 | let $t01980020088 = if ((assetTokenToGet == assetIdA)) | |
620 | 620 | then { | |
621 | 621 | let amountToPay = fraction(balA, amntGetNoFee, (balB - amntGetNoFee)) | |
622 | 622 | $Tuple2(amountToPay, assetIdB) | |
623 | 623 | } | |
624 | 624 | else { | |
625 | 625 | let amountToPay = fraction(balB, amntGetNoFee, (balA - amntGetNoFee)) | |
626 | 626 | $Tuple2(amountToPay, assetIdA) | |
627 | 627 | } | |
628 | 628 | let amountToPay = $t01980020088._1 | |
629 | 629 | let assetToPay = $t01980020088._2 | |
630 | 630 | invoke(poolAddr, "callFunction", ["exchange", ["1"]], [AttachedPayment(assetIdFromStr(assetToPay), amountToPay)]) | |
631 | 631 | } | |
632 | 632 | ||
633 | 633 | ||
634 | 634 | func exchangeDirectlyWX (pool,assetIdA,assetIdB,balA,balB,amountTokenToGet,assetTokenToGet) = { | |
635 | 635 | let poolAddr = Address(fromBase58String(pool)) | |
636 | 636 | let prFee = getIntegerValue(wxSwapContract, "%s__protocolFee") | |
637 | 637 | let pFee = getIntegerValue(wxSwapContract, "%s__poolFee") | |
638 | 638 | let feeScale = toBigInt(100000000) | |
639 | 639 | let $t02056720875 = if ((assetTokenToGet == assetIdA)) | |
640 | 640 | then { | |
641 | 641 | let amountToPay = fraction(balA, amountTokenToGet, (balB - amountTokenToGet)) | |
642 | 642 | $Tuple2(amountToPay, assetIdB) | |
643 | 643 | } | |
644 | 644 | else { | |
645 | 645 | let amountToPay = fraction(balB, amountTokenToGet, (balA - amountTokenToGet)) | |
646 | 646 | $Tuple2(amountToPay, assetIdA) | |
647 | 647 | } | |
648 | 648 | let amountToPay = $t02056720875._1 | |
649 | 649 | let assetToPay = $t02056720875._2 | |
650 | 650 | let amountToPayWithFee = toInt(fraction(toBigInt(amountToPay), feeScale, (feeScale - toBigInt((prFee + pFee))))) | |
651 | 651 | invoke(wxSwapContract, "swap", [1, assetTokenToGet, toString(this)], [AttachedPayment(assetIdFromStr(assetToPay), amountToPayWithFee)]) | |
652 | 652 | } | |
653 | 653 | ||
654 | 654 | ||
655 | 655 | func exchangeDirectly (type,pool,assetIdA,assetIdB,balA,balB,amountTokenToGet,assetTokenToGet) = if ((type == SF_POOL)) | |
656 | 656 | then exchangeDirectlySF(pool, assetIdA, assetIdB, balA, balB, amountTokenToGet, assetTokenToGet) | |
657 | 657 | else exchangeDirectlyWX(pool, assetIdA, assetIdB, balA, balB, amountTokenToGet, assetTokenToGet) | |
658 | 658 | ||
659 | 659 | ||
660 | 660 | func withdrawAmountCalc (pool,userCanWithdraw,debt,borrowAsset) = { | |
661 | 661 | let poolAddr = Address(fromBase58String(pool)) | |
662 | 662 | let pType = valueOrErrorMessage(getString(this, (kPool + pool)), "Unknown pool") | |
663 | 663 | let $t02174021816 = getPoolData(poolAddr, pType) | |
664 | 664 | let assetIdA = $t02174021816._1 | |
665 | 665 | let assetIdB = $t02174021816._2 | |
666 | 666 | let balA = $t02174021816._3 | |
667 | 667 | let balB = $t02174021816._4 | |
668 | 668 | let shareId = $t02174021816._5 | |
669 | 669 | let cBalABefore = accountBalance(assetIdFromStr(assetIdA)) | |
670 | 670 | if ((cBalABefore == cBalABefore)) | |
671 | 671 | then { | |
672 | 672 | let cBalBBefore = accountBalance(assetIdFromStr(assetIdB)) | |
673 | 673 | if ((cBalBBefore == cBalBBefore)) | |
674 | 674 | then { | |
675 | 675 | let inv = if ((pType == SF_POOL)) | |
676 | 676 | then invoke(poolAddr, "callFunction", ["withdraw", [toString(userCanWithdraw)]], nil) | |
677 | 677 | else if ((pType == WX_POOL)) | |
678 | 678 | then invoke(poolAddr, "unstakeAndGet", [userCanWithdraw], nil) | |
679 | 679 | else throw("Wrong position type") | |
680 | 680 | if ((inv == inv)) | |
681 | 681 | then { | |
682 | 682 | let cBalAAfter = accountBalance(assetIdFromStr(assetIdA)) | |
683 | 683 | let cBalBAfter = accountBalance(assetIdFromStr(assetIdB)) | |
684 | 684 | let $t02232822417 = $Tuple2((cBalAAfter - cBalABefore), (cBalBAfter - cBalBBefore)) | |
685 | 685 | let tokensAmountA = $t02232822417._1 | |
686 | 686 | let tokensAmountB = $t02232822417._2 | |
687 | 687 | let $t02242023116 = if ((debt > 0)) | |
688 | 688 | then { | |
689 | 689 | let amountToGetEx = if (if ((borrowAsset == assetIdA)) | |
690 | 690 | then (debt > tokensAmountA) | |
691 | 691 | else false) | |
692 | 692 | then (debt - tokensAmountA) | |
693 | 693 | else if (if ((borrowAsset == assetIdB)) | |
694 | 694 | then (debt > tokensAmountB) | |
695 | 695 | else false) | |
696 | 696 | then (debt - tokensAmountB) | |
697 | 697 | else 0 | |
698 | 698 | let exInv = if ((amountToGetEx > 0)) | |
699 | 699 | then exchangeDirectly(pType, pool, assetIdA, assetIdB, balA, balB, amountToGetEx, borrowAsset) | |
700 | 700 | else 0 | |
701 | 701 | if ((exInv == exInv)) | |
702 | 702 | then { | |
703 | 703 | let cBalAAfterRepay = accountBalance(assetIdFromStr(assetIdA)) | |
704 | 704 | let cBalBAfterRepay = accountBalance(assetIdFromStr(assetIdB)) | |
705 | 705 | $Tuple2((cBalAAfterRepay - cBalABefore), (cBalBAfterRepay - cBalBBefore)) | |
706 | 706 | } | |
707 | 707 | else throw("Strict value is not equal to itself.") | |
708 | 708 | } | |
709 | 709 | else $Tuple2(tokensAmountA, tokensAmountB) | |
710 | 710 | let toUserAmountA = $t02242023116._1 | |
711 | 711 | let toUserAmountB = $t02242023116._2 | |
712 | 712 | $Tuple7(toUserAmountA, assetIdA, toUserAmountB, assetIdB, cBalAAfter, cBalBAfter, shareId) | |
713 | 713 | } | |
714 | 714 | else throw("Strict value is not equal to itself.") | |
715 | 715 | } | |
716 | 716 | else throw("Strict value is not equal to itself.") | |
717 | 717 | } | |
718 | 718 | else throw("Strict value is not equal to itself.") | |
719 | 719 | } | |
720 | 720 | ||
721 | 721 | ||
722 | 722 | func userCanWithdrawShareCalc (user,pool,posId,borrowed) = { | |
723 | 723 | let pAmount = valueOrErrorMessage(getInteger(this, (((((pool + "_") + user) + "_") + posId) + kUserPosition)), "Unknown position") | |
724 | 724 | let userInterest = getIntegerValue(this, (((((pool + "_") + user) + "_") + posId) + kUserPositionInterest)) | |
725 | 725 | let poolInterest = if (borrowed) | |
726 | 726 | then getIntegerValue(this, (pool + kPoolInterestLoan)) | |
727 | 727 | else getIntegerValue(this, (pool + kPoolInterestNoLoan)) | |
728 | 728 | (pAmount + fraction(pAmount, (poolInterest - userInterest), SCALE10)) | |
729 | 729 | } | |
730 | 730 | ||
731 | 731 | ||
732 | 732 | func withdrawToUser (user,pool,posId,stopLoss) = { | |
733 | 733 | let pAmount = valueOrErrorMessage(getInteger(this, (((((pool + "_") + user) + "_") + posId) + kUserPosition)), "Unknown position") | |
734 | 734 | let userInterest = getIntegerValue(this, (((((pool + "_") + user) + "_") + posId) + kUserPositionInterest)) | |
735 | - | let borrowAmount = getIntegerValue(this, (((((pool + "_") + user) + "_") + posId) + kUserBorrowAmount)) | |
735 | + | let borrowAmount = valueOrElse(getIntegerValue(this, (((((pool + "_") + user) + "_") + posId) + kUserBorrowAmount)), 0) | |
736 | 736 | let userCanWithdraw = userCanWithdrawShareCalc(user, pool, posId, (borrowAmount > 0)) | |
737 | 737 | let poolTotalShare = getPoolTotalShare(pool) | |
738 | 738 | let userAddr = Address(fromBase58String(user)) | |
739 | 739 | let borrowAsset = getStringValue(this, (((((pool + "_") + user) + "_") + posId) + kUserBorrowAssetId)) | |
740 | 740 | let debt = if ((borrowAmount > 0)) | |
741 | 741 | then { | |
742 | 742 | let @ = invoke(getLendSrvAddr(), "getAssetDebt", [false, ((((pool + "_") + user) + "_") + posId), borrowAsset], nil) | |
743 | 743 | if ($isInstanceOf(@, "Int")) | |
744 | 744 | then @ | |
745 | 745 | else throw(($getType(@) + " couldn't be cast to Int")) | |
746 | 746 | } | |
747 | 747 | else 0 | |
748 | - | let $ | |
749 | - | if (($ | |
748 | + | let $t02462224775 = withdrawAmountCalc(pool, userCanWithdraw, debt, borrowAsset) | |
749 | + | if (($t02462224775 == $t02462224775)) | |
750 | 750 | then { | |
751 | - | let shareId = $ | |
752 | - | let cBalBAfter = $ | |
753 | - | let cBalAAfter = $ | |
754 | - | let assetIdB = $ | |
755 | - | let toUserAmountB = $ | |
756 | - | let assetIdA = $ | |
757 | - | let toUserAmountA = $ | |
751 | + | let shareId = $t02462224775._7 | |
752 | + | let cBalBAfter = $t02462224775._6 | |
753 | + | let cBalAAfter = $t02462224775._5 | |
754 | + | let assetIdB = $t02462224775._4 | |
755 | + | let toUserAmountB = $t02462224775._3 | |
756 | + | let assetIdA = $t02462224775._2 | |
757 | + | let toUserAmountA = $t02462224775._1 | |
758 | 758 | let closeDbtInv = if ((debt > 0)) | |
759 | 759 | then invoke(getLendSrvAddr(), "repayFor", [((user + "_") + posId)], [AttachedPayment(assetIdFromStr(borrowAsset), debt)]) | |
760 | 760 | else 0 | |
761 | 761 | if ((closeDbtInv == closeDbtInv)) | |
762 | 762 | 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)) | |
763 | 763 | else throw("Strict value is not equal to itself.") | |
764 | 764 | } | |
765 | 765 | else throw("Strict value is not equal to itself.") | |
766 | 766 | } | |
767 | 767 | ||
768 | 768 | ||
769 | 769 | func parseRequest (requestId) = { | |
770 | 770 | let request = split(valueOrErrorMessage(getString(this, (requestId + kRequestId)), ("No request with id " + requestId)), ",") | |
771 | 771 | let user = request[0] | |
772 | 772 | let pool = request[1] | |
773 | 773 | let pmtA = parseIntValue(request[2]) | |
774 | 774 | let AId = request[3] | |
775 | 775 | let pmtB = parseIntValue(request[4]) | |
776 | 776 | let BId = request[5] | |
777 | 777 | let balA = parseIntValue(request[6]) | |
778 | 778 | let balB = parseIntValue(request[7]) | |
779 | 779 | let shareId = request[8] | |
780 | 780 | let bwAsset = request[9] | |
781 | 781 | let bwAmount = parseIntValue(request[10]) | |
782 | 782 | $Tuple11(user, pool, pmtA, AId, pmtB, BId, balA, balB, shareId, bwAsset, bwAmount) | |
783 | 783 | } | |
784 | 784 | ||
785 | 785 | ||
786 | 786 | @Callable(i) | |
787 | 787 | func replenishEVALONLY (pool,leverage,borrowAssetId,pmtA,pmtB) = if (if ((100 > leverage)) | |
788 | 788 | then true | |
789 | 789 | else (leverage > 300)) | |
790 | 790 | then throw("Leverage can't be <100 and >300") | |
791 | 791 | else { | |
792 | 792 | let pType = valueOrErrorMessage(getString(this, (kPool + pool)), "Pool is not inited") | |
793 | - | let $ | |
794 | - | let AId = $ | |
795 | - | let BId = $ | |
796 | - | let balA = $ | |
797 | - | let balB = $ | |
798 | - | let shareId = $ | |
793 | + | let $t02628726377 = getPoolData(Address(fromBase58String(pool)), pType) | |
794 | + | let AId = $t02628726377._1 | |
795 | + | let BId = $t02628726377._2 | |
796 | + | let balA = $t02628726377._3 | |
797 | + | let balB = $t02628726377._4 | |
798 | + | let shareId = $t02628726377._5 | |
799 | 799 | let borrowAmount = if ((leverage > 100)) | |
800 | 800 | then { | |
801 | 801 | let dPriceA = ( let @ = invoke(priceOracleAddr, "getTWAP60", [AId, false], nil) | |
802 | 802 | if ($isInstanceOf(@, "(Int, Int)")) | |
803 | 803 | then @ | |
804 | 804 | else throw(($getType(@) + " couldn't be cast to (Int, Int)")))._2 | |
805 | 805 | let dPriceB = ( let @ = invoke(priceOracleAddr, "getTWAP60", [BId, false], nil) | |
806 | 806 | if ($isInstanceOf(@, "(Int, Int)")) | |
807 | 807 | then @ | |
808 | 808 | else throw(($getType(@) + " couldn't be cast to (Int, Int)")))._2 | |
809 | 809 | let paydInDollar = (fraction(dPriceA, pmtA, pow(10, 0, getAssetDecimals(AId), 0, 0, DOWN)) + fraction(dPriceB, pmtB, pow(10, 0, getAssetDecimals(BId), 0, 0, DOWN))) | |
810 | 810 | let borrowPrice = if ((borrowAssetId == AId)) | |
811 | 811 | then dPriceA | |
812 | 812 | else dPriceB | |
813 | 813 | (fraction(paydInDollar, (leverage - 100), 100) / borrowPrice) | |
814 | 814 | } | |
815 | 815 | else 0 | |
816 | - | let $ | |
816 | + | let $t02694827060 = if ((borrowAssetId == AId)) | |
817 | 817 | then $Tuple2((pmtA + borrowAmount), pmtB) | |
818 | 818 | else $Tuple2(pmtA, (pmtB + borrowAmount)) | |
819 | - | let payInA = $ | |
820 | - | let payInB = $ | |
819 | + | let payInA = $t02694827060._1 | |
820 | + | let payInB = $t02694827060._2 | |
821 | 821 | let lpAmount = calcReplanishLPVirt(pType, pool, pmtA, AId, pmtB, BId, balA, balB) | |
822 | 822 | nil | |
823 | 823 | } | |
824 | 824 | ||
825 | 825 | ||
826 | 826 | ||
827 | 827 | @Callable(i) | |
828 | 828 | func getShareAssetPriceREADONLY (shareId) = { | |
829 | 829 | let sharePrices = getSharePrice([shareId]) | |
830 | 830 | $Tuple2(nil, sharePrices[0]) | |
831 | 831 | } | |
832 | 832 | ||
833 | 833 | ||
834 | 834 | ||
835 | 835 | @Callable(i) | |
836 | 836 | func getUserPositionShareAmountREADONLY (user,posNum) = { | |
837 | 837 | let pool = valueOrErrorMessage(getString(this, (((user + "_") + posNum) + kUserPositionPool)), "Unknown position") | |
838 | 838 | let borrowAmount = getIntegerValue(this, (((((pool + "_") + user) + "_") + posNum) + kUserBorrowAmount)) | |
839 | 839 | let userCanWithdraw = userCanWithdrawShareCalc(user, pool, posNum, (borrowAmount > 0)) | |
840 | 840 | $Tuple2(nil, userCanWithdraw) | |
841 | 841 | } | |
842 | 842 | ||
843 | 843 | ||
844 | 844 | ||
845 | 845 | @Callable(i) | |
846 | 846 | func replenish (pool,leverage,borrowAssetId) = if (if ((100 > leverage)) | |
847 | 847 | then true | |
848 | 848 | else (leverage > 300)) | |
849 | 849 | then throw("Leverage can't be <100 and >300") | |
850 | 850 | else { | |
851 | 851 | let pType = valueOrErrorMessage(getString(this, (kPool + pool)), "Pool is not inited") | |
852 | - | let $ | |
853 | - | let AId = $ | |
854 | - | let BId = $ | |
855 | - | let balA = $ | |
856 | - | let balB = $ | |
857 | - | let shareId = $ | |
858 | - | let $ | |
852 | + | let $t02859128681 = getPoolData(Address(fromBase58String(pool)), pType) | |
853 | + | let AId = $t02859128681._1 | |
854 | + | let BId = $t02859128681._2 | |
855 | + | let balA = $t02859128681._3 | |
856 | + | let balB = $t02859128681._4 | |
857 | + | let shareId = $t02859128681._5 | |
858 | + | let $t02868429321 = if ((size(i.payments) == 2)) | |
859 | 859 | then if ((assetIdToStr(i.payments[0].assetId) != AId)) | |
860 | 860 | then throw("Wrong payment asset A") | |
861 | 861 | else if ((assetIdToStr(i.payments[1].assetId) != BId)) | |
862 | 862 | then throw("Wrong payment asset B") | |
863 | 863 | else $Tuple4(i.payments[0].amount, AId, i.payments[1].amount, BId) | |
864 | 864 | else if ((size(i.payments) == 1)) | |
865 | 865 | then if ((assetIdToStr(i.payments[0].assetId) == AId)) | |
866 | 866 | then $Tuple4(i.payments[0].amount, AId, 0, BId) | |
867 | 867 | else if ((assetIdToStr(i.payments[0].assetId) == BId)) | |
868 | 868 | then $Tuple4(0, AId, i.payments[0].amount, BId) | |
869 | 869 | else throw("Wrong payment") | |
870 | 870 | else throw("One or two payments expected") | |
871 | - | let pmtA = $ | |
872 | - | let pmtAssetA = $ | |
873 | - | let pmtB = $ | |
874 | - | let pmtAssetB = $ | |
871 | + | let pmtA = $t02868429321._1 | |
872 | + | let pmtAssetA = $t02868429321._2 | |
873 | + | let pmtB = $t02868429321._3 | |
874 | + | let pmtAssetB = $t02868429321._4 | |
875 | 875 | let newPosNum = getNewUserPositionNumber(pool, toString(i.caller)) | |
876 | 876 | if ((leverage > 100)) | |
877 | 877 | then { | |
878 | 878 | let dPriceA = ( let @ = invoke(priceOracleAddr, "getTWAP60", [pmtAssetA, false], nil) | |
879 | 879 | if ($isInstanceOf(@, "(Int, Int)")) | |
880 | 880 | then @ | |
881 | 881 | else throw(($getType(@) + " couldn't be cast to (Int, Int)")))._2 | |
882 | 882 | let dPriceB = ( let @ = invoke(priceOracleAddr, "getTWAP60", [pmtAssetB, false], nil) | |
883 | 883 | if ($isInstanceOf(@, "(Int, Int)")) | |
884 | 884 | then @ | |
885 | 885 | else throw(($getType(@) + " couldn't be cast to (Int, Int)")))._2 | |
886 | 886 | let paydInDollar = (fraction(dPriceA, pmtA, pow(10, 0, getAssetDecimals(pmtAssetA), 0, 0, DOWN)) + fraction(dPriceB, pmtB, pow(10, 0, getAssetDecimals(pmtAssetB), 0, 0, DOWN))) | |
887 | 887 | let borrowPrice = if ((borrowAssetId == AId)) | |
888 | 888 | then dPriceA | |
889 | 889 | else dPriceB | |
890 | 890 | let borrowAmount = (fraction(paydInDollar, (leverage - 100), 100) / borrowPrice) | |
891 | 891 | let request = makeString([toString(i.caller), pool, toString(pmtA), pmtAssetA, toString(pmtB), pmtAssetB, toString(balA), toString(balB), shareId, borrowAssetId, toString(borrowAmount)], ",") | |
892 | 892 | let newRequestId = { | |
893 | 893 | let @ = invoke(this, "createNewRequest", [request], nil) | |
894 | 894 | if ($isInstanceOf(@, "Int")) | |
895 | 895 | then @ | |
896 | 896 | else throw(($getType(@) + " couldn't be cast to Int")) | |
897 | 897 | } | |
898 | 898 | if ((newRequestId == newRequestId)) | |
899 | 899 | then { | |
900 | 900 | let args = [((toString(i.caller) + "_") + toString(newPosNum)), shareId, borrowAssetId, borrowAmount, toString(this), "replenishFromLand", toString(valueOrErrorMessage(newRequestId, "Can't create new request"))] | |
901 | 901 | let inv = reentrantInvoke(getLendSrvAddr(), "flashPosition", args, nil) | |
902 | 902 | if ((inv == inv)) | |
903 | 903 | then nil | |
904 | 904 | else throw("Strict value is not equal to itself.") | |
905 | 905 | } | |
906 | 906 | else throw("Strict value is not equal to itself.") | |
907 | 907 | } | |
908 | 908 | else { | |
909 | - | let $ | |
910 | - | let userStaked = $ | |
911 | - | let axlyFee = $ | |
909 | + | let $t03070430816 = replenishByType(pType, pool, NO_LOAN_FEE, pmtA, AId, pmtB, BId, balA, balB, shareId) | |
910 | + | let userStaked = $t03070430816._1 | |
911 | + | let axlyFee = $t03070430816._2 | |
912 | 912 | (replenishEntries(pool, toString(i.caller), userStaked, axlyFee, newPosNum, shareId, pType, false) ++ getCursEntries(AId, BId, shareId)) | |
913 | 913 | } | |
914 | 914 | } | |
915 | 915 | ||
916 | 916 | ||
917 | 917 | ||
918 | 918 | @Callable(i) | |
919 | 919 | func replenishFromLand (requestId) = { | |
920 | - | let $ | |
921 | - | let user = $ | |
922 | - | let pool = $ | |
923 | - | let pmtA = $ | |
924 | - | let AId = $ | |
925 | - | let pmtB = $ | |
926 | - | let BId = $ | |
927 | - | let balA = $ | |
928 | - | let balB = $ | |
929 | - | let shareId = $ | |
930 | - | let bwAsset = $ | |
931 | - | let bwAmount = $ | |
920 | + | let $t03102731131 = parseRequest(requestId) | |
921 | + | let user = $t03102731131._1 | |
922 | + | let pool = $t03102731131._2 | |
923 | + | let pmtA = $t03102731131._3 | |
924 | + | let AId = $t03102731131._4 | |
925 | + | let pmtB = $t03102731131._5 | |
926 | + | let BId = $t03102731131._6 | |
927 | + | let balA = $t03102731131._7 | |
928 | + | let balB = $t03102731131._8 | |
929 | + | let shareId = $t03102731131._9 | |
930 | + | let bwAsset = $t03102731131._10 | |
931 | + | let bwAmount = $t03102731131._11 | |
932 | 932 | if ((size(i.payments) != 1)) | |
933 | 933 | then throw("Wrong payment size") | |
934 | 934 | else if (if ((assetIdToStr(i.payments[0].assetId) != bwAsset)) | |
935 | 935 | then true | |
936 | 936 | else (i.payments[0].amount != bwAmount)) | |
937 | 937 | then throw("Wrong payment") | |
938 | 938 | else { | |
939 | - | let $ | |
939 | + | let $t03132131445 = if ((AId == bwAsset)) | |
940 | 940 | then $Tuple2((pmtA + i.payments[0].amount), pmtB) | |
941 | 941 | else $Tuple2(pmtA, (pmtB + i.payments[0].amount)) | |
942 | - | let pmtAllA = $ | |
943 | - | let pmtAllB = $ | |
942 | + | let pmtAllA = $t03132131445._1 | |
943 | + | let pmtAllB = $t03132131445._2 | |
944 | 944 | let pType = valueOrErrorMessage(getString(this, (kPool + pool)), "Unknown pool") | |
945 | - | let $ | |
946 | - | let userStaked = $ | |
947 | - | let axlyFee = $ | |
945 | + | let $t03152731636 = replenishByType(pType, pool, LOAN_FEE, pmtA, AId, pmtB, BId, balA, balB, shareId) | |
946 | + | let userStaked = $t03152731636._1 | |
947 | + | let axlyFee = $t03152731636._2 | |
948 | 948 | let posNum = getNewUserPositionNumber(pool, toString(i.caller)) | |
949 | 949 | let borrowEntries = [IntegerEntry((((((pool + "_") + user) + "_") + toString(posNum)) + kUserBorrowAmount), bwAmount), StringEntry((((((pool + "_") + user) + "_") + toString(posNum)) + kUserBorrowAssetId), bwAsset)] | |
950 | 950 | let entries = replenishEntries(pool, user, userStaked, axlyFee, posNum, shareId, pType, true) | |
951 | 951 | $Tuple2((((entries ++ getCursEntries(AId, BId, shareId)) ++ borrowEntries) :+ DeleteEntry((requestId + kRequestId))), userStaked) | |
952 | 952 | } | |
953 | 953 | } | |
954 | 954 | ||
955 | 955 | ||
956 | 956 | ||
957 | 957 | @Callable(i) | |
958 | 958 | func withdraw (pool,posId) = withdrawToUser(toString(i.caller), pool, toString(posId), false) | |
959 | 959 | ||
960 | 960 | ||
961 | 961 | ||
962 | 962 | @Callable(i) | |
963 | 963 | func createUpdateStopLoss (posId,poolId,assetId,price) = { | |
964 | 964 | let tokenOraclePrice = ( let @ = invoke(priceOracleAddr, "getTWAP60", [assetId, false], nil) | |
965 | 965 | if ($isInstanceOf(@, "(Int, Int)")) | |
966 | 966 | then @ | |
967 | 967 | else throw(($getType(@) + " couldn't be cast to (Int, Int)")))._1 | |
968 | 968 | if (!(isDefined(getInteger(this, (((((poolId + "_") + toString(i.caller)) + "_") + toString(posId)) + kUserPosition))))) | |
969 | 969 | then throw("There are no user position") | |
970 | 970 | else if ((0 >= price)) | |
971 | 971 | then throw("Price must be greater than 0") | |
972 | 972 | else if ((price > tokenOraclePrice)) | |
973 | 973 | then throw("Price must be less than current token price") | |
974 | 974 | else [IntegerEntry((((((((toString(i.caller) + "_") + toString(posId)) + "_") + poolId) + "_") + assetId) + kUserStopLoss), price)] | |
975 | 975 | } | |
976 | 976 | ||
977 | 977 | ||
978 | 978 | ||
979 | 979 | @Callable(i) | |
980 | 980 | func deleteStopLoss (posId,poolId,assetId) = if (!(isDefined(getInteger(this, (((((((toString(i.caller) + "_") + toString(posId)) + "_") + poolId) + "_") + assetId) + kUserStopLoss))))) | |
981 | 981 | then throw("No entry") | |
982 | 982 | else [DeleteEntry((((((((toString(i.caller) + "_") + toString(posId)) + "_") + poolId) + "_") + assetId) + kUserStopLoss))] | |
983 | 983 | ||
984 | 984 | ||
985 | 985 | ||
986 | 986 | @Callable(i) | |
987 | 987 | func createNewRequest (params) = valueOrElse(isSelfCall(i), { | |
988 | 988 | let newRequestId = (valueOrElse(getInteger(this, kRequestIter), 0) + 1) | |
989 | 989 | $Tuple2([StringEntry((toString(newRequestId) + kRequestId), params), IntegerEntry(kRequestIter, newRequestId)], newRequestId) | |
990 | 990 | }) | |
991 | 991 | ||
992 | 992 | ||
993 | 993 | ||
994 | 994 | @Callable(i) | |
995 | 995 | func stopLoss (user,posId,pool,assetId) = { | |
996 | 996 | let tokenOraclePrice = ( let @ = invoke(priceOracleAddr, "getTWAP60", [assetId, false], nil) | |
997 | 997 | if ($isInstanceOf(@, "(Int, Int)")) | |
998 | 998 | then @ | |
999 | 999 | else throw(($getType(@) + " couldn't be cast to (Int, Int)")))._1 | |
1000 | 1000 | if (!(isDefined(getInteger(this, (((((((user + "_") + toString(posId)) + "_") + pool) + "_") + assetId) + kUserStopLoss))))) | |
1001 | 1001 | then throw("No entry") | |
1002 | 1002 | else (withdrawToUser(toString(i.caller), pool, toString(posId), true) :+ DeleteEntry((((((((user + "_") + toString(posId)) + "_") + pool) + "_") + assetId) + kUserStopLoss))) | |
1003 | 1003 | } | |
1004 | 1004 | ||
1005 | 1005 | ||
1006 | 1006 | ||
1007 | 1007 | @Callable(i) | |
1008 | 1008 | func liquidate (user,posId,liquidateAmount) = { | |
1009 | 1009 | let pool = valueOrErrorMessage(getString(this, (((user + "_") + posId) + kUserPositionPool)), "no position") | |
1010 | 1010 | let pType = valueOrErrorMessage(getString(this, (kPool + pool)), "Pool is not inited") | |
1011 | - | let $ | |
1012 | - | let AId = $ | |
1013 | - | let BId = $ | |
1014 | - | let balA = $ | |
1015 | - | let balB = $ | |
1016 | - | let shareId = $ | |
1011 | + | let $t03441934509 = getPoolData(Address(fromBase58String(pool)), pType) | |
1012 | + | let AId = $t03441934509._1 | |
1013 | + | let BId = $t03441934509._2 | |
1014 | + | let balA = $t03441934509._3 | |
1015 | + | let balB = $t03441934509._4 | |
1016 | + | let shareId = $t03441934509._5 | |
1017 | 1017 | let amount = unstakeLP(pool, pType, shareId, liquidateAmount) | |
1018 | 1018 | let borrowAmount = getIntegerValue(this, (((((pool + "_") + user) + "_") + posId) + kUserBorrowAmount)) | |
1019 | 1019 | let borrowAsset = getStringValue(this, (((((pool + "_") + user) + "_") + posId) + kUserBorrowAssetId)) | |
1020 | 1020 | let userCanWithdraw = userCanWithdrawShareCalc(user, pool, posId, (borrowAmount > 0)) | |
1021 | 1021 | if ((borrowAmount > 0)) | |
1022 | 1022 | then [IntegerEntry((((((pool + "_") + user) + "_") + posId) + kUserPositionInterest), getIntegerValue(this, (pool + kPoolInterestLoan))), IntegerEntry((pool + kPoolTotalLoan), (getPoolTotalShareWithLoan(pool) - liquidateAmount))] | |
1023 | 1023 | 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))]) | |
1024 | 1024 | } | |
1025 | 1025 | ||
1026 | 1026 | ||
1027 | 1027 | ||
1028 | 1028 | @Callable(i) | |
1029 | 1029 | func capitalizeExKeeper (pool,type,tokenToId,amountToExchange,claim,amountsIn,addresses,assetsToReceive,estReceived,slippageTolerance,minReceived,options) = { | |
1030 | - | let $ | |
1030 | + | let $t03584936043 = if (claim) | |
1031 | 1031 | then claimFarmed(type, pool) | |
1032 | 1032 | else { | |
1033 | 1033 | let claimedAsset = if ((type == SF_POOL)) | |
1034 | 1034 | then SWOPID | |
1035 | 1035 | else WXID | |
1036 | 1036 | $Tuple2(amountToExchange, claimedAsset) | |
1037 | 1037 | } | |
1038 | - | let claimedAmount = $ | |
1039 | - | let claimedAsset = $ | |
1038 | + | let claimedAmount = $t03584936043._1 | |
1039 | + | let claimedAsset = $t03584936043._2 | |
1040 | 1040 | let exchangedAmount = exchangeKeeper(tokenToId, amountToExchange, claimedAsset, amountsIn, addresses, assetsToReceive, estReceived, slippageTolerance, minReceived, options) | |
1041 | 1041 | let change = (claimedAmount - amountToExchange) | |
1042 | 1042 | let changeEntry = if ((change > 0)) | |
1043 | 1043 | then [IntegerEntry((pool + kPoolCapChange), (change + valueOrElse(getInteger(this, (pool + kPoolCapChange)), 0)))] | |
1044 | 1044 | else nil | |
1045 | 1045 | (capitalize(pool, type, tokenToId, exchangedAmount) ++ changeEntry) | |
1046 | 1046 | } | |
1047 | 1047 | ||
1048 | 1048 | ||
1049 | 1049 | ||
1050 | 1050 | @Callable(i) | |
1051 | 1051 | func capitalizeExPuzzle (pool,type,tokenToId,amountToExchange,claim,routesStr,minToReceive,options) = { | |
1052 | - | let $ | |
1052 | + | let $t03670036894 = if (claim) | |
1053 | 1053 | then claimFarmed(type, pool) | |
1054 | 1054 | else { | |
1055 | 1055 | let claimedAsset = if ((type == SF_POOL)) | |
1056 | 1056 | then SWOPID | |
1057 | 1057 | else WXID | |
1058 | 1058 | $Tuple2(amountToExchange, claimedAsset) | |
1059 | 1059 | } | |
1060 | - | let claimedAmount = $ | |
1061 | - | let claimedAsset = $ | |
1060 | + | let claimedAmount = $t03670036894._1 | |
1061 | + | let claimedAsset = $t03670036894._2 | |
1062 | 1062 | let exchangedAmount = exchangePuzzle(tokenToId, amountToExchange, claimedAsset, routesStr, minToReceive, options) | |
1063 | 1063 | let change = (claimedAmount - amountToExchange) | |
1064 | 1064 | let changeEntry = if ((change > 0)) | |
1065 | 1065 | then [IntegerEntry((pool + kPoolCapChange), (change + valueOrElse(getInteger(this, (pool + kPoolCapChange)), 0)))] | |
1066 | 1066 | else nil | |
1067 | 1067 | (capitalize(pool, type, tokenToId, exchangedAmount) ++ changeEntry) | |
1068 | 1068 | } | |
1069 | 1069 | ||
1070 | 1070 | ||
1071 | 1071 | ||
1072 | 1072 | @Callable(i) | |
1073 | 1073 | func capitalizeExSwopFi (pool,type,tokenToId,amountToExchange,claim,exchangers,exchangersType,args1,args2,routingAssetsKeys,minAmountToReceive,options) = { | |
1074 | - | let $ | |
1074 | + | let $t03761737811 = if (claim) | |
1075 | 1075 | then claimFarmed(type, pool) | |
1076 | 1076 | else { | |
1077 | 1077 | let claimedAsset = if ((type == SF_POOL)) | |
1078 | 1078 | then SWOPID | |
1079 | 1079 | else WXID | |
1080 | 1080 | $Tuple2(amountToExchange, claimedAsset) | |
1081 | 1081 | } | |
1082 | - | let claimedAmount = $ | |
1083 | - | let claimedAsset = $ | |
1082 | + | let claimedAmount = $t03761737811._1 | |
1083 | + | let claimedAsset = $t03761737811._2 | |
1084 | 1084 | let exchangedAmount = exchangeSwopFi(tokenToId, amountToExchange, claimedAsset, exchangers, exchangersType, args1, args2, routingAssetsKeys, minAmountToReceive, options) | |
1085 | 1085 | let change = (claimedAmount - amountToExchange) | |
1086 | 1086 | let changeEntry = if ((change > 0)) | |
1087 | 1087 | then [IntegerEntry((pool + kPoolCapChange), (change + valueOrElse(getInteger(this, (pool + kPoolCapChange)), 0)))] | |
1088 | 1088 | else nil | |
1089 | 1089 | (capitalize(pool, type, tokenToId, exchangedAmount) ++ changeEntry) | |
1090 | 1090 | } | |
1091 | 1091 | ||
1092 | 1092 | ||
1093 | 1093 | ||
1094 | 1094 | @Callable(i) | |
1095 | 1095 | func initNewPool (type,poolAddr,inFeeNoLoan,inFeeLoan,capFeeNoLoan,capFeeWithLoan,stoplossFeeNoLoan,stoplossFeeWithLoan) = if (if ((type != SF_POOL)) | |
1096 | 1096 | then (type != WX_POOL) | |
1097 | 1097 | else false) | |
1098 | 1098 | then throw("Wrong type") | |
1099 | 1099 | else { | |
1100 | - | let $ | |
1101 | - | let aId = $ | |
1102 | - | let bId = $ | |
1103 | - | let aBal = $ | |
1104 | - | let bBal = $ | |
1105 | - | let shareId = $ | |
1100 | + | let $t03850438598 = getPoolData(Address(fromBase58String(poolAddr)), type) | |
1101 | + | let aId = $t03850438598._1 | |
1102 | + | let bId = $t03850438598._2 | |
1103 | + | let aBal = $t03850438598._3 | |
1104 | + | let bBal = $t03850438598._4 | |
1105 | + | let shareId = $t03850438598._5 | |
1106 | 1106 | [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)] | |
1107 | 1107 | } | |
1108 | 1108 | ||
1109 | 1109 | ||
1110 | 1110 | ||
1111 | 1111 | @Callable(i) | |
1112 | 1112 | func capitalizeTest (pool,pType,tokenId,tokenAmount) = { | |
1113 | 1113 | let poolAddr = Address(fromBase58String(pool)) | |
1114 | - | let $ | |
1115 | - | let AId = $ | |
1116 | - | let BId = $ | |
1117 | - | let balA = $ | |
1118 | - | let balB = $ | |
1119 | - | let shareId = $ | |
1120 | - | let $ | |
1114 | + | let $t03939439473 = getPoolData(poolAddr, pType) | |
1115 | + | let AId = $t03939439473._1 | |
1116 | + | let BId = $t03939439473._2 | |
1117 | + | let balA = $t03939439473._3 | |
1118 | + | let balB = $t03939439473._4 | |
1119 | + | let shareId = $t03939439473._5 | |
1120 | + | let $t03947639556 = if ((tokenId == AId)) | |
1121 | 1121 | then $Tuple2(tokenAmount, 0) | |
1122 | 1122 | else $Tuple2(0, tokenAmount) | |
1123 | - | let pmtA = $ | |
1124 | - | let pmtB = $ | |
1125 | - | let $ | |
1126 | - | let stakedAmount = $ | |
1127 | - | let nf = $ | |
1123 | + | let pmtA = $t03947639556._1 | |
1124 | + | let pmtB = $t03947639556._2 | |
1125 | + | let $t03955939663 = replenishByType(pType, pool, NO_FEE, pmtA, AId, pmtB, BId, balA, balB, shareId) | |
1126 | + | let stakedAmount = $t03955939663._1 | |
1127 | + | let nf = $t03955939663._2 | |
1128 | 1128 | let curPoolInterestLoan = valueOrElse(getInteger(this, (pool + kPoolInterestLoan)), 0) | |
1129 | 1129 | let curPoolInterestNoLoan = valueOrElse(getInteger(this, (pool + kPoolInterestNoLoan)), 0) | |
1130 | 1130 | let totalShareAmount = getPoolTotalShare(pool) | |
1131 | 1131 | let totalShareAmountWithLoan = getPoolTotalShareWithLoan(pool) | |
1132 | 1132 | let loanPercent = fraction(totalShareAmountWithLoan, SCALE8, totalShareAmount) | |
1133 | 1133 | let stakedLoan = fraction(stakedAmount, loanPercent, SCALE8) | |
1134 | 1134 | let stakedNoLoan = (stakedAmount - stakedLoan) | |
1135 | 1135 | let newInterestLoan = if ((totalShareAmountWithLoan > 0)) | |
1136 | 1136 | then (curPoolInterestLoan + fraction(stakedLoan, SCALE10, totalShareAmountWithLoan)) | |
1137 | 1137 | else 0 | |
1138 | 1138 | let newInterestNoLoan = if (((totalShareAmount - totalShareAmountWithLoan) > 0)) | |
1139 | 1139 | then (curPoolInterestNoLoan + fraction(stakedNoLoan, SCALE10, (totalShareAmount - totalShareAmountWithLoan))) | |
1140 | 1140 | else 0 | |
1141 | 1141 | let axlyFeeLoan = fraction(stakedLoan, getAxlyFee(pool, CAP_FEE_LOAN), FEE_SCALE6) | |
1142 | 1142 | let axlyFeeNoLoan = fraction(stakedNoLoan, getAxlyFee(pool, CAP_FEE_NO_LOAN), FEE_SCALE6) | |
1143 | 1143 | let axlyFee = unstakeLP(pool, pType, shareId, (axlyFeeLoan + axlyFeeNoLoan)) | |
1144 | 1144 | if ((axlyFee == axlyFee)) | |
1145 | 1145 | then ([IntegerEntry((pool + kPoolInterestLoan), newInterestLoan), IntegerEntry((pool + kPoolInterestNoLoan), newInterestNoLoan), IntegerEntry((pool + kPoolTotal), ((totalShareAmount + stakedAmount) - axlyFee)), IntegerEntry((pool + kPoolTotalLoan), ((totalShareAmountWithLoan + stakedLoan) - axlyFeeLoan)), ScriptTransfer(moneyBox, (axlyFeeLoan + axlyFeeNoLoan), fromBase58String(shareId))] ++ getCursEntries(AId, BId, shareId)) | |
1146 | 1146 | else throw("Strict value is not equal to itself.") | |
1147 | 1147 | } | |
1148 | 1148 | ||
1149 | 1149 | ||
1150 | 1150 | ||
1151 | 1151 | @Callable(i) | |
1152 | 1152 | func claimFarmedTest (type,pool) = if ((type == SF_POOL)) | |
1153 | 1153 | then { | |
1154 | 1154 | let balBefore = accountBalance(SWOPID) | |
1155 | 1155 | if ((balBefore == balBefore)) | |
1156 | 1156 | then { | |
1157 | 1157 | let inv = invoke(getSFFarmingAddr(), "claim", [pool], nil) | |
1158 | 1158 | if ((inv == inv)) | |
1159 | 1159 | then { | |
1160 | 1160 | let balAfter = accountBalance(SWOPID) | |
1161 | 1161 | $Tuple2(nil, $Tuple2((balAfter - balBefore), SWOPID)) | |
1162 | 1162 | } | |
1163 | 1163 | else throw("Strict value is not equal to itself.") | |
1164 | 1164 | } | |
1165 | 1165 | else throw("Strict value is not equal to itself.") | |
1166 | 1166 | } | |
1167 | 1167 | else if ((type == WX_POOL)) | |
1168 | 1168 | then { | |
1169 | 1169 | let balBefore = accountBalance(WXID) | |
1170 | 1170 | if ((balBefore == balBefore)) | |
1171 | 1171 | then { | |
1172 | 1172 | let inv = invoke(getWXFarmingAddr(Address(fromBase58String(pool))), "claimWX", [pool], nil) | |
1173 | 1173 | if ((inv == inv)) | |
1174 | 1174 | then { | |
1175 | 1175 | let balAfter = accountBalance(WXID) | |
1176 | 1176 | $Tuple2(nil, $Tuple2((balAfter - balBefore), WXID)) | |
1177 | 1177 | } | |
1178 | 1178 | else throw("Strict value is not equal to itself.") | |
1179 | 1179 | } | |
1180 | 1180 | else throw("Strict value is not equal to itself.") | |
1181 | 1181 | } | |
1182 | 1182 | else throw("Wrong pool type") | |
1183 | 1183 | ||
1184 | 1184 | ||
1185 | 1185 | @Verifier(tx) | |
1186 | 1186 | func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) | |
1187 | 1187 |
github/deemru/w8io/026f985 142.39 ms ◑