tx · Aykfwr5jGhNU1JhkCPYo8TqJ3CeJcoZe7MeXSiyMnhgb

3MxWgDbE9EmjQj8b3LfFwa91FZizptyeQXS:  -0.14000000 Waves

2022.10.24 16:06 [2286532] smart account 3MxWgDbE9EmjQj8b3LfFwa91FZizptyeQXS > SELF 0.00000000 Waves

{ "type": 13, "id": "Aykfwr5jGhNU1JhkCPYo8TqJ3CeJcoZe7MeXSiyMnhgb", "fee": 14000000, "feeAssetId": null, "timestamp": 1666616810525, "version": 2, "chainId": 84, "sender": "3MxWgDbE9EmjQj8b3LfFwa91FZizptyeQXS", "senderPublicKey": "C7xgcYqQ8qV8rmvzAjhQWq4cz82F6VJfXMNygvrTXsfW", "proofs": [ "5BZXzsSYq9yZD9Y2Uxc3H4ykVxPn5wUPMqtRW7gytH79Jn1omvsmQdSBFcx7QGMDeiQ8cfxzcT4C8QZqSYWGUGq9", "3AnhyBKhrqvBbai5RR9CGhEn1hQwdmfJanoQ1oPZDKfwcjZTKfbwxUUqSd4dTYA11cjASpFA5HCWLAESp36G4tiD" ], "script": "base64:BgJmCAISBAoCEQESBQoDCAEBEgUKAwEEARIECgIRCBIDCgEBEgYKBAgIAQgSBAoCCAESAwoBERIECgIRARIFCgMBCAgSBAoCCAESBQoDCAEBEgASABIECgIRBBIECgIBARIAEgASABIAWAAJUFJFQ0lTSU9OAMCEPQAFTUFYX0EAwIQ9AAxNQVhfQV9DSEFOR0UACgAIREVDSU1BTFMABgANTUlOX1JBTVBfVElNRQkAaQIAgKMFADwAB3ZlcnNpb24CBTMuMC4wAAhrVmVyc2lvbgIHdmVyc2lvbgAHa0Fzc2V0cwIJYXNzZXRfaWRzAA1rQXNzZXRCYWxhbmNlAghfYmFsYW5jZQAHa0FjdGl2ZQIGYWN0aXZlAAZrQ2F1c2UCDnNodXRkb3duX2NhdXNlAA1rU2hhcmVBc3NldElkAg5zaGFyZV9hc3NldF9pZAARa1NoYXJlQXNzZXRTdXBwbHkCEnNoYXJlX2Fzc2V0X3N1cH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HAFBHRoaXMJAAACCAUDaW52CGZ1bmN0aW9uAhl0YWtlSW50b0FjY291bnRFeHRyYUZ1bmRzBwQNc2lnbmVkQnlBZG1pbgMDAwkA9AMDCAUCdHgJYm9keUJ5dGVzCQCRAwIIBQJ0eAZwcm9vZnMAAAUMYWRtaW5QdWJLZXkxBgkA9AMDCAUCdHgJYm9keUJ5dGVzCQCRAwIIBQJ0eAZwcm9vZnMAAAUMYWRtaW5QdWJLZXkyBgkA9AMDCAUCdHgJYm9keUJ5dGVzCQCRAwIIBQJ0eAZwcm9vZnMAAAUMYWRtaW5QdWJLZXkzBgkA9AMDCAUCdHgJYm9keUJ5dGVzCQCRAwIIBQJ0eAZwcm9vZnMAAAURYWRtaW5QdWJLZXlJbnZva2UDAwUTY2FsbFRha2VJbnRvQWNjb3VudAUNc2lnbmVkQnlBZG1pbgcGBRNtdWx0aVNpZ25lZEJ5QWRtaW5zBRNtdWx0aVNpZ25lZEJ5QWRtaW5z1L0Ezw==", "height": 2286532, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 9GDJqh7tMaqmqFFHYGC89reXt68bGsNyNuufFpxj1mEp Next: H5nDHCAQYfWvdHmpwq6BAKet1aHwZp2YKtdkh8e4rTVo Diff:
OldNewDifferences
714714 let D0 = if ((shareSupply == 0))
715715 then 0
716716 else getDMem(xp, amp)
717- let payments = msg.payments
717+ let $t01534915562 = if ((size(msg.payments) > nCoins))
718+ then $Tuple2(removeByIndex(msg.payments, (size(msg.payments) - 1)), [msg.payments[(size(msg.payments) - 1)]])
719+ else $Tuple2(msg.payments, nil)
720+ let payments = $t01534915562._1
721+ let lockFee = $t01534915562._2
718722 let paymentsSize = size(payments)
719723 func validPayments (n) = if ((paymentsSize > nCoins))
720724 then throw(("payments size > " + toString(nCoins)))
751755 then (suspendSuspicious(suspicious._2) ++ returnPayments(msg.caller, payments))
752756 else {
753757 func parsePayments (acc,assetId) = {
754- let $t01624716273 = acc
755- let newBalances = $t01624716273._1
756- let i = $t01624716273._2
758+ let $t01643216458 = acc
759+ let newBalances = $t01643216458._1
760+ let i = $t01643216458._2
757761 func parsePayment (newBalance,payment) = if ((getStrAssetId(payment.assetId) == assetId))
758762 then (newBalance + payment.amount)
759763 else newBalance
775779 $Tuple2((newBalances :+ newBalace), (i + 1))
776780 }
777781
778- let $t01662316690 = {
782+ let $t01680816875 = {
779783 let $l = assetIds
780784 let $s = size($l)
781785 let $acc0 = $Tuple2(nil, 0)
789793
790794 $f0_2($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)
791795 }
792- let newBalances = $t01662316690._1
793- let k = $t01662316690._2
796+ let newBalances = $t01680816875._1
797+ let k = $t01680816875._2
794798 if (checkDAppThreshold(newBalances))
795799 then throw()
796800 else {
800804 else {
801805 let feeDiscount = calculateFeeDiscount(msg.caller)
802806 func calcScriptActions (acc,newBalance) = {
803- let $t01701017051 = acc
804- let invBalances = $t01701017051._1
805- let scriptActions = $t01701017051._2
806- let i = $t01701017051._3
807+ let $t01719517236 = acc
808+ let invBalances = $t01719517236._1
809+ let scriptActions = $t01719517236._2
810+ let i = $t01719517236._3
807811 if ((shareSupply > 0))
808812 then {
809813 let _fee = ((fraction(fee, feeDiscount, feeScale6, CEILING) * nCoins) / (4 * (nCoins - 1)))
841845 }
842846 }
843847
844- let $t01875618844 = {
848+ let $t01894119029 = {
845849 let $l = newBalances
846850 let $s = size($l)
847851 let $acc0 = $Tuple3(nil, nil, 0)
855859
856860 $f1_2($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10)
857861 }
858- let invBalances = $t01875618844._1
859- let scriptActions = $t01875618844._2
862+ let invBalances = $t01894119029._1
863+ let scriptActions = $t01894119029._2
860864 let D2 = getDMem(invBalances, amp)
861865 let mint_amount = if ((shareSupply == 0))
862866 then D1
868872 let re = invoke(this, "reissueShare", [mint_amount], nil)
869873 if ((re == re))
870874 then {
871- let s = invoke(farmingAddress, "lockShareTokens", [toString(this), lockType], [AttachedPayment(shareAssetId, mint_amount)])
875+ let s = invoke(farmingAddress, "lockShareTokens", [toString(this), lockType], ([AttachedPayment(shareAssetId, mint_amount)] ++ lockFee))
872876 if ((s == s))
873877 then (scriptActions :+ IntegerEntry(kShareAssetSupply, (shareSupply + mint_amount)))
874878 else throw("Strict value is not equal to itself.")
895899 let D0 = getDMem(xp, amp)
896900 let feeDiscount = calculateFeeDiscount(user)
897901 func calcInvBalances (acc,newBalance) = {
898- let $t02008320109 = acc
899- let invBalances = $t02008320109._1
900- let i = $t02008320109._2
902+ let $t02027920305 = acc
903+ let invBalances = $t02027920305._1
904+ let i = $t02027920305._2
901905 let _fee = ((fraction(fee, feeDiscount, feeScale6, CEILING) * nCoins) / (4 * (nCoins - 1)))
902906 let fees = {
903907 let idealBalance = fraction(D1, xp[i], D0)
910914 $Tuple2((invBalances :+ invariantBalance), (i + 1))
911915 }
912916
913- let $t02071120781 = {
917+ let $t02090720977 = {
914918 let $l = newBalances
915919 let $s = size($l)
916920 let $acc0 = $Tuple2(nil, 0)
924928
925929 $f0_2($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)
926930 }
927- let invBalances = $t02071120781._1
928- let k = $t02071120781._2
931+ let invBalances = $t02090720977._1
932+ let k = $t02090720977._2
929933 let D2 = getDMem(invBalances, amp)
930934 let mintAmount = fraction(shareSupply, (D2 - D0), D0)
931935 $Tuple2(nil, mintAmount)
980984 then throw("Exchange resulted in fewer coins than expected")
981985 else {
982986 func makeNewBalances (acc,tokenBalance) = {
983- let $t02282222848 = acc
984- let newBalances = $t02282222848._1
985- let i = $t02282222848._2
987+ let $t02301823044 = acc
988+ let newBalances = $t02301823044._1
989+ let i = $t02301823044._2
986990 if ((i == fromIndex))
987991 then $Tuple2((newBalances :+ (tokenBalance + dx)), (i + 1))
988992 else if ((i == toIndex))
990994 else $Tuple2((newBalances :+ tokenBalance), (i + 1))
991995 }
992996
993- let $t02309923160 = {
997+ let $t02329523356 = {
994998 let $l = xp
995999 let $s = size($l)
9961000 let $acc0 = $Tuple2(nil, 0)
10041008
10051009 $f0_2($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)
10061010 }
1007- let newBalances = $t02309923160._1
1008- let i = $t02309923160._2
1011+ let newBalances = $t02329523356._1
1012+ let i = $t02329523356._2
10091013 if (checkDAppThreshold(newBalances))
10101014 then throw()
10111015 else {
10471051 then (suspendSuspicious(suspicious._2) ++ returnPayments(msg.originCaller, msg.payments))
10481052 else {
10491053 func calcScriptActions (acc,balance) = {
1050- let $t02445124479 = acc
1051- let scriptActions = $t02445124479._1
1052- let i = $t02445124479._2
1054+ let $t02464724675 = acc
1055+ let scriptActions = $t02464724675._1
1056+ let i = $t02464724675._2
10531057 let wAmount = fraction(balance, pmtAmount, shareSupply)
10541058 if (assert((wAmount >= minAmounts[i])))
10551059 then throw("Withdrawal resulted in fewer coins than expected")
10611065 }
10621066 }
10631067
1064- let $t02496925037 = {
1068+ let $t02516525233 = {
10651069 let $l = _xp()
10661070 let $s = size($l)
10671071 let $acc0 = $Tuple2(nil, 0)
10751079
10761080 $f0_2($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)
10771081 }
1078- let scriptActions = $t02496925037._1
1079- let i = $t02496925037._2
1082+ let scriptActions = $t02516525233._1
1083+ let i = $t02516525233._2
10801084 (scriptActions ++ [Burn(shareAssetId, pmtAmount), IntegerEntry(kShareAssetSupply, (shareSupply - pmtAmount))])
10811085 }
10821086 }
11431147 let outIndex = valueOrErrorMessage(indexOf(assetIds, tokenOut), "unknown token out")
11441148 let tokenOutB58 = fromBase58String(tokenOut)
11451149 let xp = _xp()
1146- let $t02706927151 = _calcWithdrawOneCoin(xp, pmtAmount, outIndex, msg.originCaller)
1147- let dy = $t02706927151._1
1148- let dy_fee = $t02706927151._2
1150+ let $t02726527347 = _calcWithdrawOneCoin(xp, pmtAmount, outIndex, msg.originCaller)
1151+ let dy = $t02726527347._1
1152+ let dy_fee = $t02726527347._2
11491153 if (assert((dy >= minAmount)))
11501154 then throw("Not enough coins removed")
11511155 else {
11521156 let governanceFees = fraction(dy_fee, feeGovernance, feeScale6)
11531157 let dy_and_fee = (dy + dy_fee)
11541158 func makeNewBalances (acc,tokenBalance) = {
1155- let $t02740927435 = acc
1156- let newBalances = $t02740927435._1
1157- let i = $t02740927435._2
1159+ let $t02760527631 = acc
1160+ let newBalances = $t02760527631._1
1161+ let i = $t02760527631._2
11581162 if ((i == outIndex))
11591163 then $Tuple2((newBalances :+ (tokenBalance - dy_and_fee)), (i + 1))
11601164 else $Tuple2((newBalances :+ tokenBalance), (i + 1))
11611165 }
11621166
1163- let $t02760227663 = {
1167+ let $t02779827859 = {
11641168 let $l = xp
11651169 let $s = size($l)
11661170 let $acc0 = $Tuple2(nil, 0)
11741178
11751179 $f0_2($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)
11761180 }
1177- let newBalances = $t02760227663._1
1178- let v = $t02760227663._2
1181+ let newBalances = $t02779827859._1
1182+ let v = $t02779827859._2
11791183 if (checkDAppThreshold(newBalances))
11801184 then throw()
11811185 else {
12511255 let balances = _xp()
12521256 let D0 = getDMem(balances, amp)
12531257 func calcNewBalances (acc,balance) = {
1254- let $t02968029706 = acc
1255- let newBalances = $t02968029706._1
1256- let i = $t02968029706._2
1258+ let $t02987629902 = acc
1259+ let newBalances = $t02987629902._1
1260+ let i = $t02987629902._2
12571261 let newBalance = (balance + (if (deposit)
12581262 then amounts[i]
12591263 else -(amounts[i])))
13331337 else {
13341338 let balances = _xp()
13351339 func takeExtraFunds (acc,assetId) = {
1336- let $t03204832066 = acc
1337- let sum = $t03204832066._1
1338- let i = $t03204832066._2
1340+ let $t03224432262 = acc
1341+ let sum = $t03224432262._1
1342+ let i = $t03224432262._2
13391343 let tokenB58 = fromBase58String(assetId)
13401344 let rBalance = (assetBalance(this, tokenB58) + stakedAmount(tokenB58))
13411345 let enrollAmount = (rBalance - balances[i])
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let PRECISION = 1000000
55
66 let MAX_A = 1000000
77
88 let MAX_A_CHANGE = 10
99
1010 let DECIMALS = 6
1111
1212 let MIN_RAMP_TIME = (86400 / 60)
1313
1414 let version = "3.0.0"
1515
1616 let kVersion = "version"
1717
1818 let kAssets = "asset_ids"
1919
2020 let kAssetBalance = "_balance"
2121
2222 let kActive = "active"
2323
2424 let kCause = "shutdown_cause"
2525
2626 let kShareAssetId = "share_asset_id"
2727
2828 let kShareAssetSupply = "share_asset_supply"
2929
3030 let kFee = "commission"
3131
3232 let kDAppThresholdCoef = "dAppThresholdCoef"
3333
3434 let kUSDNAddress = "staking_usdnnsbt_address"
3535
3636 let kDiscounts = "discounts"
3737
3838 let kDiscountValues = "discount_values"
3939
4040 let kUserSwopInGov = "_SWOP_amount"
4141
4242 let kUserGSwopInGov = "_GSwop_amount"
4343
4444 let kAdminPubKey1 = "admin_pub_1"
4545
4646 let kAdminPubKey2 = "admin_pub_2"
4747
4848 let kAdminPubKey3 = "admin_pub_3"
4949
5050 let kAdminInvokePubKey = "admin_invoke_pub"
5151
5252 let kMoneyBoxAddress = "money_box_address"
5353
5454 let kGovAddress = "governance_address"
5555
5656 let kVotingAddress = "voting_address"
5757
5858 let kFarmingAddress = "farming_address"
5959
6060 let kLPFarmingAddress = "lp_farming"
6161
6262 let oracle = Address(base58'3MvVBtsXroQpy1tsPw21TU2ET9A8WfmrNjz')
6363
6464 func getBase58FromOracle (key) = match getString(oracle, key) {
6565 case string: String =>
6666 fromBase58String(string)
6767 case nothing =>
6868 throw((key + "is empty"))
6969 }
7070
7171
7272 let adminPubKey1 = getBase58FromOracle(kAdminPubKey1)
7373
7474 let adminPubKey2 = getBase58FromOracle(kAdminPubKey2)
7575
7676 let adminPubKey3 = getBase58FromOracle(kAdminPubKey3)
7777
7878 let adminPubKeyInvoke = getBase58FromOracle(kAdminInvokePubKey)
7979
8080 let moneyBoxAddress = Address(getBase58FromOracle(kMoneyBoxAddress))
8181
8282 let govAddress = Address(getBase58FromOracle(kGovAddress))
8383
8484 let stakingUSDNAddress = Address(getBase58FromOracle(kUSDNAddress))
8585
8686 let votingAddress = Address(getBase58FromOracle(kVotingAddress))
8787
8888 let farmingAddress = Address(getBase58FromOracle(kFarmingAddress))
8989
9090 let lpFarmingAddress = Address(getBase58FromOracle(kLPFarmingAddress))
9191
9292 let USDN = base58'DG2xFkPdDwKUoBkzGAhQtLpSGzfXLiCYPEzeKH2Ad24p'
9393
9494 let stakingAssets = [toBase58String(USDN)]
9595
9696 let active = getBooleanValue(this, kActive)
9797
9898 let shareAssetId = fromBase58String(getStringValue(this, kShareAssetId))
9999
100100 let shareSupply = getIntegerValue(this, kShareAssetSupply)
101101
102102 let feeScale6 = 1000000
103103
104104 let fee = getIntegerValue(this, kFee)
105105
106106 let feeGovernance = fraction(40, feeScale6, 100)
107107
108108 let initial_A = getIntegerValue(this, "initial_A")
109109
110110 let future_A = getIntegerValue(this, "future_A")
111111
112112 let initial_A_time = valueOrElse(getInteger(this, "initial_A_time"), 0)
113113
114114 let future_A_time = valueOrElse(getInteger(this, "future_A_time"), 0)
115115
116116 let assetIds = split(getStringValue(this, kAssets), ",")
117117
118118 let nCoins = size(assetIds)
119119
120120 func suspend (cause) = [BooleanEntry(kActive, false), StringEntry(kCause, cause)]
121121
122122
123123 func throwIsActive () = throw("DApp is already active")
124124
125125
126126 func isActive () = if (active)
127127 then unit
128128 else throw("DApp is inactive at this moment")
129129
130130
131131 func isAdminCall (i) = if (containsElement([adminPubKey1, adminPubKey2, adminPubKey3], i.callerPublicKey))
132132 then unit
133133 else throw("Only admin can call this function")
134134
135135
136136 func isSelfCall (i) = if ((this == i.caller))
137137 then unit
138138 else throw("Only contract itself can call this function")
139139
140140
141141 let big2 = toBigInt(2)
142142
143143 let iter10 = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
144144
145145 let iter15 = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14]
146146
147147 let iter16 = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15]
148148
149149 let blockTimestamp = height
150150
151151 func assert (a) = if (a)
152152 then false
153153 else true
154154
155155
156156 func calculateFeeDiscount (userAddr) = {
157157 let user = match userAddr {
158158 case u: Address =>
159159 toString(u)
160160 case u: String =>
161161 u
162162 case _ =>
163163 throw("Unknow type of user Addr")
164164 }
165165 let swopAmount = valueOrElse(getInteger(govAddress, (user + kUserGSwopInGov)), 0)
166166 let gSwopAmount = valueOrElse(getInteger(govAddress, (user + kUserGSwopInGov)), swopAmount)
167167 let discountValues = split(getStringValue(oracle, kDiscountValues), ",")
168168 let discounts = split(getStringValue(oracle, kDiscounts), ",")
169169 if (if ((gSwopAmount >= parseIntValue(discountValues[0])))
170170 then (parseIntValue(discountValues[1]) > gSwopAmount)
171171 else false)
172172 then (feeScale6 - parseIntValue(discounts[0]))
173173 else if (if ((gSwopAmount >= parseIntValue(discountValues[1])))
174174 then (parseIntValue(discountValues[2]) > gSwopAmount)
175175 else false)
176176 then (feeScale6 - parseIntValue(discounts[1]))
177177 else if (if ((gSwopAmount >= parseIntValue(discountValues[2])))
178178 then (parseIntValue(discountValues[3]) > gSwopAmount)
179179 else false)
180180 then (feeScale6 - parseIntValue(discounts[2]))
181181 else if (if ((gSwopAmount >= parseIntValue(discountValues[3])))
182182 then (parseIntValue(discountValues[4]) > gSwopAmount)
183183 else false)
184184 then (feeScale6 - parseIntValue(discounts[3]))
185185 else if ((gSwopAmount >= parseIntValue(discountValues[4])))
186186 then (feeScale6 - parseIntValue(discounts[4]))
187187 else feeScale6
188188 }
189189
190190
191191 func _A () = {
192192 let t1 = future_A_time
193193 let A1 = future_A
194194 if ((t1 > blockTimestamp))
195195 then {
196196 let A0 = initial_A
197197 let t0 = initial_A_time
198198 if ((A1 > A0))
199199 then (A0 + (((A1 - A0) * (blockTimestamp - t0)) / (t1 - t0)))
200200 else (A0 - (((A0 - A1) * (blockTimestamp - t0)) / (t1 - t0)))
201201 }
202202 else A1
203203 }
204204
205205
206206 func _xp () = {
207207 func assetBalances (acc,assetId) = (acc :+ valueOrElse(getInteger(this, (assetId + kAssetBalance)), 0))
208208
209209 let $l = assetIds
210210 let $s = size($l)
211211 let $acc0 = nil
212212 func $f0_1 ($a,$i) = if (($i >= $s))
213213 then $a
214214 else assetBalances($a, $l[$i])
215215
216216 func $f0_2 ($a,$i) = if (($i >= $s))
217217 then $a
218218 else throw("List size exceeds 10")
219219
220220 $f0_2($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)
221221 }
222222
223223
224224 func _xp_mem (xp) = xp
225225
226226
227227 func sumList (acc,element) = (acc + element)
228228
229229
230230 func get_D (xp,amp) = {
231231 let @ = invoke(this, "D", [xp, amp], nil)
232232 if ($isInstanceOf(@, "Int"))
233233 then @
234234 else throw(($getType(@) + " couldn't be cast to Int"))
235235 }
236236
237237
238238 func get_D_internal (xp,amp) = {
239239 let S = {
240240 let $l = xp
241241 let $s = size($l)
242242 let $acc0 = 0
243243 func $f0_1 ($a,$i) = if (($i >= $s))
244244 then $a
245245 else sumList($a, $l[$i])
246246
247247 func $f0_2 ($a,$i) = if (($i >= $s))
248248 then $a
249249 else throw("List size exceeds 10")
250250
251251 $f0_2($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)
252252 }
253253 if ((S == 0))
254254 then 0
255255 else {
256256 let Ann = (amp * nCoins)
257257 let AnnS = (toBigInt(Ann) * toBigInt(S))
258258 let Ann1 = toBigInt((Ann - 1))
259259 func Dproc (acc,i) = if ((acc._2 == true))
260260 then acc
261261 else {
262262 let Dprev = acc._1
263263 func D_PProc (D_P,i) = if ((nCoins > i))
264264 then ((D_P * Dprev) / (toBigInt(xp[i]) * toBigInt(nCoins)))
265265 else D_P
266266
267267 let D_P = {
268268 let $l = iter10
269269 let $s = size($l)
270270 let $acc0 = Dprev
271271 func $f1_1 ($a,$i) = if (($i >= $s))
272272 then $a
273273 else D_PProc($a, $l[$i])
274274
275275 func $f1_2 ($a,$i) = if (($i >= $s))
276276 then $a
277277 else throw("List size exceeds 10")
278278
279279 $f1_2($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10)
280280 }
281281 let D = fraction((AnnS + (toBigInt(nCoins) * D_P)), Dprev, ((Ann1 * Dprev) + (toBigInt((nCoins + 1)) * D_P)))
282282 if ((D > Dprev))
283283 then if ((1 >= toInt((D - Dprev))))
284284 then $Tuple2(D, true)
285285 else $Tuple2(D, false)
286286 else if ((1 >= toInt((Dprev - D))))
287287 then $Tuple2(D, true)
288288 else $Tuple2(D, false)
289289 }
290290
291291 let $t064616527 = {
292292 let $l = iter15
293293 let $s = size($l)
294294 let $acc0 = $Tuple2(toBigInt(S), false)
295295 func $f1_1 ($a,$i) = if (($i >= $s))
296296 then $a
297297 else Dproc($a, $l[$i])
298298
299299 func $f1_2 ($a,$i) = if (($i >= $s))
300300 then $a
301301 else throw("List size exceeds 15")
302302
303303 $f1_2($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15)
304304 }
305305 let D = $t064616527._1
306306 let finished = $t064616527._2
307307 if ((finished == false))
308308 then throw(("get_D() not finished with " + toString(D)))
309309 else toInt(D)
310310 }
311311 }
312312
313313
314314 func getDMem (xp,amp) = get_D(_xp_mem(xp), amp)
315315
316316
317317 func getY (in,out,x,xp_) = if (assert((in != out)))
318318 then throw("same coin")
319319 else if (assert(if ((out >= 0))
320320 then (in >= 0)
321321 else false))
322322 then throw("below zero")
323323 else if (assert(if ((nCoins > out))
324324 then (nCoins > in)
325325 else false))
326326 then throw("above N_COINS")
327327 else {
328328 let amp = _A()
329329 let D = get_D(xp_, amp)
330330 let Ann = (amp * nCoins)
331331 func S_c (acc,i) = {
332332 let $t070987115 = acc
333333 let S_ = $t070987115._1
334334 let c = $t070987115._2
335335 let x_ = if ((in == i))
336336 then x
337337 else xp_[i]
338338 if (if ((i != out))
339339 then (nCoins > i)
340340 else false)
341341 then $Tuple2((S_ + x_), fraction(c, toBigInt(D), toBigInt((x_ * nCoins))))
342342 else $Tuple2(S_, c)
343343 }
344344
345345 let $t073237378 = {
346346 let $l = iter10
347347 let $s = size($l)
348348 let $acc0 = $Tuple2(0, toBigInt(D))
349349 func $f0_1 ($a,$i) = if (($i >= $s))
350350 then $a
351351 else S_c($a, $l[$i])
352352
353353 func $f0_2 ($a,$i) = if (($i >= $s))
354354 then $a
355355 else throw("List size exceeds 10")
356356
357357 $f0_2($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)
358358 }
359359 let S_ = $t073237378._1
360360 let c_ = $t073237378._2
361361 let c = fraction(c_, toBigInt(D), toBigInt((Ann * nCoins)))
362362 let bD = toBigInt(((S_ + (D / Ann)) - D))
363363 func y_proc (acc,_i) = if ((acc._2 == true))
364364 then acc
365365 else {
366366 let y_prev = acc._1
367367 let y = (((y_prev * y_prev) + c) / ((big2 * y_prev) + bD))
368368 if ((y > y_prev))
369369 then if ((1 >= toInt((y - y_prev))))
370370 then $Tuple2(y, true)
371371 else $Tuple2(y, false)
372372 else if ((1 >= toInt((y_prev - y))))
373373 then $Tuple2(y, true)
374374 else $Tuple2(y, false)
375375 }
376376
377377 let $t078607927 = {
378378 let $l = iter16
379379 let $s = size($l)
380380 let $acc0 = $Tuple2(toBigInt(D), false)
381381 func $f1_1 ($a,$i) = if (($i >= $s))
382382 then $a
383383 else y_proc($a, $l[$i])
384384
385385 func $f1_2 ($a,$i) = if (($i >= $s))
386386 then $a
387387 else throw("List size exceeds 16")
388388
389389 $f1_2($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16)
390390 }
391391 let y = $t078607927._1
392392 let finished = $t078607927._2
393393 if ((finished == false))
394394 then throw(("getY() not finished with " + toString(y)))
395395 else toInt(y)
396396 }
397397
398398
399399 func get_y_D (A_,in,xp,D) = if (assert((in >= 0)))
400400 then throw("i below zero")
401401 else if (assert((nCoins > in)))
402402 then throw("i above N_COINS")
403403 else {
404404 let Ann = (A_ * nCoins)
405405 func S_c (acc,i) = {
406406 let $t083068323 = acc
407407 let S_ = $t083068323._1
408408 let c = $t083068323._2
409409 let x_ = if (if ((in != i))
410410 then (nCoins > i)
411411 else false)
412412 then xp[i]
413413 else 0
414414 if (if ((nCoins > i))
415415 then (in != i)
416416 else false)
417417 then $Tuple2((S_ + x_), fraction(c, toBigInt(D), toBigInt((x_ * nCoins))))
418418 else $Tuple2(S_, c)
419419 }
420420
421421 let $t085438598 = {
422422 let $l = iter10
423423 let $s = size($l)
424424 let $acc0 = $Tuple2(0, toBigInt(D))
425425 func $f0_1 ($a,$i) = if (($i >= $s))
426426 then $a
427427 else S_c($a, $l[$i])
428428
429429 func $f0_2 ($a,$i) = if (($i >= $s))
430430 then $a
431431 else throw("List size exceeds 10")
432432
433433 $f0_2($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)
434434 }
435435 let S_ = $t085438598._1
436436 let c_ = $t085438598._2
437437 let c = fraction(c_, toBigInt(D), toBigInt((Ann * nCoins)))
438438 let bD = toBigInt(((S_ + (D / Ann)) - D))
439439 func y_D_proc (acc,i) = if ((acc._2 == true))
440440 then acc
441441 else {
442442 let y_prev = acc._1
443443 let y = (((y_prev * y_prev) + c) / ((big2 * y_prev) + bD))
444444 if ((y > y_prev))
445445 then if ((1 >= toInt((y - y_prev))))
446446 then $Tuple2(y, true)
447447 else $Tuple2(y, false)
448448 else if ((1 >= toInt((y_prev - y))))
449449 then $Tuple2(y, true)
450450 else $Tuple2(y, false)
451451 }
452452
453453 let $t090819150 = {
454454 let $l = iter16
455455 let $s = size($l)
456456 let $acc0 = $Tuple2(toBigInt(D), false)
457457 func $f1_1 ($a,$i) = if (($i >= $s))
458458 then $a
459459 else y_D_proc($a, $l[$i])
460460
461461 func $f1_2 ($a,$i) = if (($i >= $s))
462462 then $a
463463 else throw("List size exceeds 16")
464464
465465 $f1_2($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16)
466466 }
467467 let y = $t090819150._1
468468 let finished = $t090819150._2
469469 if ((finished == false))
470470 then throw(("get_y_D() not finished with " + toString(y)))
471471 else toInt(y)
472472 }
473473
474474
475475 func _calcWithdrawOneCoin (xp,_token_amount,i,caller) = {
476476 let feeDiscount = calculateFeeDiscount(caller)
477477 let amp = _A()
478478 let _fee = ((fraction(fee, feeDiscount, feeScale6, CEILING) * nCoins) / (4 * (nCoins - 1)))
479479 let total_supply = shareSupply
480480 let D0 = get_D(xp, amp)
481481 let D1 = (D0 - fraction(_token_amount, D0, total_supply))
482482 let new_y = get_y_D(amp, i, xp, D1)
483483 let dy_0 = (xp[i] - new_y)
484484 func xp_reduced_proc (acc,xp_j) = {
485485 let $t097919820 = acc
486486 let xp_reduced = $t097919820._1
487487 let index = $t097919820._2
488488 let dx_expected = if ((index == i))
489489 then (fraction(xp_j, D1, D0) - new_y)
490490 else (xp_j - fraction(xp_j, D1, D0))
491491 $Tuple2((xp_reduced :+ (xp_j - fraction(_fee, dx_expected, feeScale6))), (index + 1))
492492 }
493493
494494 let $t01008210146 = {
495495 let $l = xp
496496 let $s = size($l)
497497 let $acc0 = $Tuple2(nil, 0)
498498 func $f0_1 ($a,$i) = if (($i >= $s))
499499 then $a
500500 else xp_reduced_proc($a, $l[$i])
501501
502502 func $f0_2 ($a,$i) = if (($i >= $s))
503503 then $a
504504 else throw("List size exceeds 10")
505505
506506 $f0_2($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)
507507 }
508508 let xp_reduced = $t01008210146._1
509509 let index = $t01008210146._2
510510 let xp_reduced_i = xp_reduced[i]
511511 let dy = ((xp_reduced_i - get_y_D(amp, i, xp_reduced, D1)) - 1)
512512 $Tuple2(dy, (dy_0 - dy))
513513 }
514514
515515
516516 func getStrAssetId (assetId) = match assetId {
517517 case id: ByteVector =>
518518 toBase58String(id)
519519 case waves: Unit =>
520520 "WAVES"
521521 case _ =>
522522 throw("Match error")
523523 }
524524
525525
526526 func calcStakingFuncAndAddres (stake,assetId) = if (stake)
527527 then $Tuple2("lockNeutrino", stakingUSDNAddress)
528528 else $Tuple2("unlockNeutrino", stakingUSDNAddress)
529529
530530
531531 func calcStakingParams (stake,amount,assetId) = if (stake)
532532 then {
533533 let $t01071010776 = calcStakingFuncAndAddres(stake, assetId)
534534 let call = $t01071010776._1
535535 let stakingAddr = $t01071010776._2
536536 $Tuple4(call, stakingAddr, nil, [AttachedPayment(assetId, amount)])
537537 }
538538 else {
539539 let $t01086210928 = calcStakingFuncAndAddres(stake, assetId)
540540 let call = $t01086210928._1
541541 let stakingAddr = $t01086210928._2
542542 $Tuple4(call, stakingAddr, [amount, toBase58String(assetId)], nil)
543543 }
544544
545545
546546 func stake (amount,assetIdString) = if (containsElement(stakingAssets, assetIdString))
547547 then {
548548 let $t01111511217 = calcStakingParams(true, amount, fromBase58String(assetIdString))
549549 let call = $t01111511217._1
550550 let addr = $t01111511217._2
551551 let params = $t01111511217._3
552552 let payments = $t01111511217._4
553553 invoke(addr, call, params, payments)
554554 }
555555 else 0
556556
557557
558558 func unstake (amount,assetIdString) = if (containsElement(stakingAssets, assetIdString))
559559 then {
560560 let $t01140211505 = calcStakingParams(false, amount, fromBase58String(assetIdString))
561561 let call = $t01140211505._1
562562 let addr = $t01140211505._2
563563 let params = $t01140211505._3
564564 let payments = $t01140211505._4
565565 invoke(addr, call, params, payments)
566566 }
567567 else 0
568568
569569
570570 func stakedAmount (assetId) = {
571571 let stakedAmountCalculated = match assetId {
572572 case aId: ByteVector =>
573573 if ((aId == USDN))
574574 then getInteger(stakingUSDNAddress, ((("rpd_balance_" + toBase58String(aId)) + "_") + toString(this)))
575575 else 0
576576 case _: Unit =>
577577 0
578578 case _ =>
579579 throw("Match error")
580580 }
581581 match stakedAmountCalculated {
582582 case i: Int =>
583583 i
584584 case _ =>
585585 0
586586 }
587587 }
588588
589589
590590 func checkSuspicious () = {
591591 let contractBalances = _xp()
592592 func checkBalance (acc,assetId) = {
593593 let $t01211612141 = acc
594594 let suspicious = $t01211612141._1
595595 let i = $t01211612141._2
596596 if (suspicious)
597597 then $Tuple2(suspicious, i)
598598 else {
599599 let aBalance = (assetBalance(this, fromBase58String(assetId)) + stakedAmount(fromBase58String(assetId)))
600600 if ((contractBalances[i] > aBalance))
601601 then $Tuple2(true, i)
602602 else $Tuple2(false, (i + 1))
603603 }
604604 }
605605
606606 let $l = assetIds
607607 let $s = size($l)
608608 let $acc0 = $Tuple2(false, 0)
609609 func $f0_1 ($a,$i) = if (($i >= $s))
610610 then $a
611611 else checkBalance($a, $l[$i])
612612
613613 func $f0_2 ($a,$i) = if (($i >= $s))
614614 then $a
615615 else throw("List size exceeds 10")
616616
617617 $f0_2($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)
618618 }
619619
620620
621621 func suspendSuspicious (i) = suspend(("Suspicious state with asset: " + assetIds[i]))
622622
623623
624624 func returnPayments (caller,payments) = {
625625 func parsePayments (acc,payment) = (acc :+ ScriptTransfer(caller, payment.amount, payment.assetId))
626626
627627 let $l = payments
628628 let $s = size($l)
629629 let $acc0 = nil
630630 func $f0_1 ($a,$i) = if (($i >= $s))
631631 then $a
632632 else parsePayments($a, $l[$i])
633633
634634 func $f0_2 ($a,$i) = if (($i >= $s))
635635 then $a
636636 else throw("List size exceeds 10")
637637
638638 $f0_2($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)
639639 }
640640
641641
642642 func checkDAppThreshold (newBalances) = {
643643 let dAppThresholdCoef = valueOrErrorMessage(getInteger(this, kDAppThresholdCoef), "No dAppThresholdCoef key")
644644 let thresholdScale = 10000
645645 let maxBalance = max(newBalances)
646646 let minBalance = min(newBalances)
647647 let ratio = fraction(maxBalance, thresholdScale, minBalance)
648648 if ((ratio > (dAppThresholdCoef * thresholdScale)))
649649 then throw("New balance in assets of the DApp is less than threshold")
650650 else false
651651 }
652652
653653
654654 func checkCoins (assetIds) = {
655655 let coins = split(assetIds, ",")
656656 if ((size(coins) > 10))
657657 then throw("To many coins, max coins size 10")
658658 else {
659659 func checkCoin (error,assetId) = {
660660 let asset = valueOrErrorMessage(fromBase58String(assetId), ("fromBase58String: " + assetId))
661661 let decimals = valueOrErrorMessage(assetInfo(asset), ("assetInfo: " + assetId)).decimals
662662 if ((decimals != DECIMALS))
663663 then throw("wrong decimals")
664664 else false
665665 }
666666
667667 let $l = coins
668668 let $s = size($l)
669669 let $acc0 = false
670670 func $f0_1 ($a,$i) = if (($i >= $s))
671671 then $a
672672 else checkCoin($a, $l[$i])
673673
674674 func $f0_2 ($a,$i) = if (($i >= $s))
675675 then $a
676676 else throw("List size exceeds 10")
677677
678678 $f0_2($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)
679679 }
680680 }
681681
682682
683683 @Callable(msg)
684684 func D (xp,amp) = {
685685 let D = get_D_internal(xp, amp)
686686 $Tuple2([IntegerEntry("D", D)], D)
687687 }
688688
689689
690690
691691 @Callable(msg)
692692 func init (assetIds,_A,_dAppThresholdCoef) = if (!(isDataStorageUntouched(this)))
693693 then throw("Already initialized")
694694 else if ((0 >= _A))
695695 then throw("Amp must be must > 0")
696696 else if ((0 >= _dAppThresholdCoef))
697697 then throw("dApp Threshold Coef must be > 0")
698698 else {
699699 let shareName = "s_Multi_USD"
700700 let shareDescription = ("ShareToken of SwopFi protocol for MultiStable USD pool at address " + toString(this))
701701 let issueToken = Issue(shareName, shareDescription, 0, 6, true)
702702 let tokenId = calculateAssetId(issueToken)
703703 if (checkCoins(assetIds))
704704 then throw()
705705 else [StringEntry(kVersion, version), StringEntry(kAssets, assetIds), IntegerEntry("initial_A", _A), IntegerEntry("future_A", _A), IntegerEntry(kFee, getIntegerValue(oracle, "base_fee_flat")), StringEntry(kShareAssetId, toBase58String(tokenId)), IntegerEntry(kShareAssetSupply, 0), IntegerEntry(kDAppThresholdCoef, _dAppThresholdCoef), BooleanEntry(kActive, true), issueToken]
706706 }
707707
708708
709709
710710 @Callable(msg)
711711 func addLiquidity (minMintAmount,stakeFarming,lockType) = valueOrElse(isActive(), {
712712 let amp = _A()
713713 let xp = _xp()
714714 let D0 = if ((shareSupply == 0))
715715 then 0
716716 else getDMem(xp, amp)
717- let payments = msg.payments
717+ let $t01534915562 = if ((size(msg.payments) > nCoins))
718+ then $Tuple2(removeByIndex(msg.payments, (size(msg.payments) - 1)), [msg.payments[(size(msg.payments) - 1)]])
719+ else $Tuple2(msg.payments, nil)
720+ let payments = $t01534915562._1
721+ let lockFee = $t01534915562._2
718722 let paymentsSize = size(payments)
719723 func validPayments (n) = if ((paymentsSize > nCoins))
720724 then throw(("payments size > " + toString(nCoins)))
721725 else if ((1 > paymentsSize))
722726 then throw("payments size < 1")
723727 else if (if ((shareSupply == 0))
724728 then (nCoins != paymentsSize)
725729 else false)
726730 then throw("initial deposit requires all coins")
727731 else {
728732 func paymantValid (acc,payment) = if (containsElement(assetIds, getStrAssetId(payment.assetId)))
729733 then true
730734 else throw("Invalid asset in payment")
731735
732736 let $l = payments
733737 let $s = size($l)
734738 let $acc0 = false
735739 func $f0_1 ($a,$i) = if (($i >= $s))
736740 then $a
737741 else paymantValid($a, $l[$i])
738742
739743 func $f0_2 ($a,$i) = if (($i >= $s))
740744 then $a
741745 else throw("List size exceeds 10")
742746
743747 $f0_2($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)
744748 }
745749
746750 if (!(validPayments(paymentsSize)))
747751 then throw()
748752 else {
749753 let suspicious = checkSuspicious()
750754 if (suspicious._1)
751755 then (suspendSuspicious(suspicious._2) ++ returnPayments(msg.caller, payments))
752756 else {
753757 func parsePayments (acc,assetId) = {
754- let $t01624716273 = acc
755- let newBalances = $t01624716273._1
756- let i = $t01624716273._2
758+ let $t01643216458 = acc
759+ let newBalances = $t01643216458._1
760+ let i = $t01643216458._2
757761 func parsePayment (newBalance,payment) = if ((getStrAssetId(payment.assetId) == assetId))
758762 then (newBalance + payment.amount)
759763 else newBalance
760764
761765 let newBalace = {
762766 let $l = payments
763767 let $s = size($l)
764768 let $acc0 = xp[i]
765769 func $f0_1 ($a,$i) = if (($i >= $s))
766770 then $a
767771 else parsePayment($a, $l[$i])
768772
769773 func $f0_2 ($a,$i) = if (($i >= $s))
770774 then $a
771775 else throw("List size exceeds 10")
772776
773777 $f0_2($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)
774778 }
775779 $Tuple2((newBalances :+ newBalace), (i + 1))
776780 }
777781
778- let $t01662316690 = {
782+ let $t01680816875 = {
779783 let $l = assetIds
780784 let $s = size($l)
781785 let $acc0 = $Tuple2(nil, 0)
782786 func $f0_1 ($a,$i) = if (($i >= $s))
783787 then $a
784788 else parsePayments($a, $l[$i])
785789
786790 func $f0_2 ($a,$i) = if (($i >= $s))
787791 then $a
788792 else throw("List size exceeds 10")
789793
790794 $f0_2($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)
791795 }
792- let newBalances = $t01662316690._1
793- let k = $t01662316690._2
796+ let newBalances = $t01680816875._1
797+ let k = $t01680816875._2
794798 if (checkDAppThreshold(newBalances))
795799 then throw()
796800 else {
797801 let D1 = getDMem(newBalances, amp)
798802 if (assert((D1 > D0)))
799803 then throw("D1 > D0")
800804 else {
801805 let feeDiscount = calculateFeeDiscount(msg.caller)
802806 func calcScriptActions (acc,newBalance) = {
803- let $t01701017051 = acc
804- let invBalances = $t01701017051._1
805- let scriptActions = $t01701017051._2
806- let i = $t01701017051._3
807+ let $t01719517236 = acc
808+ let invBalances = $t01719517236._1
809+ let scriptActions = $t01719517236._2
810+ let i = $t01719517236._3
807811 if ((shareSupply > 0))
808812 then {
809813 let _fee = ((fraction(fee, feeDiscount, feeScale6, CEILING) * nCoins) / (4 * (nCoins - 1)))
810814 let fees = {
811815 let idealBalance = fraction(D1, xp[i], D0)
812816 let difference = if ((idealBalance > newBalance))
813817 then (idealBalance - newBalance)
814818 else (newBalance - idealBalance)
815819 fraction(_fee, difference, feeScale6)
816820 }
817821 let governanceFees = fraction(fees, feeGovernance, feeScale6)
818822 let finalBalance = (newBalance - fees)
819823 let invariantBalance = (newBalance - fees)
820824 let pmt = (newBalance - xp[i])
821825 let lpFees = (fees - governanceFees)
822826 let inv = if ((pmt > 0))
823827 then stake((pmt - fees), assetIds[i])
824828 else unstake(fees, assetIds[i])
825829 if ((inv == inv))
826830 then {
827831 let airdrop = if ((lpFees > 0))
828832 then invoke(lpFarmingAddress, "airDrop", nil, [AttachedPayment(fromBase58String(assetIds[i]), lpFees)])
829833 else 0
830834 if ((airdrop == airdrop))
831835 then $Tuple3((invBalances :+ invariantBalance), (scriptActions ++ [ScriptTransfer(moneyBoxAddress, governanceFees, fromBase58String(assetIds[i])), IntegerEntry((assetIds[i] + kAssetBalance), finalBalance)]), (i + 1))
832836 else throw("Strict value is not equal to itself.")
833837 }
834838 else throw("Strict value is not equal to itself.")
835839 }
836840 else {
837841 let inv = stake(newBalance, assetIds[i])
838842 if ((inv == inv))
839843 then $Tuple3((invBalances :+ newBalance), (scriptActions :+ IntegerEntry((assetIds[i] + kAssetBalance), newBalance)), (i + 1))
840844 else throw("Strict value is not equal to itself.")
841845 }
842846 }
843847
844- let $t01875618844 = {
848+ let $t01894119029 = {
845849 let $l = newBalances
846850 let $s = size($l)
847851 let $acc0 = $Tuple3(nil, nil, 0)
848852 func $f1_1 ($a,$i) = if (($i >= $s))
849853 then $a
850854 else calcScriptActions($a, $l[$i])
851855
852856 func $f1_2 ($a,$i) = if (($i >= $s))
853857 then $a
854858 else throw("List size exceeds 10")
855859
856860 $f1_2($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10)
857861 }
858- let invBalances = $t01875618844._1
859- let scriptActions = $t01875618844._2
862+ let invBalances = $t01894119029._1
863+ let scriptActions = $t01894119029._2
860864 let D2 = getDMem(invBalances, amp)
861865 let mint_amount = if ((shareSupply == 0))
862866 then D1
863867 else fraction(shareSupply, (D2 - D0), D0)
864868 if (assert((mint_amount >= minMintAmount)))
865869 then throw("Slippage screwed you")
866870 else if (stakeFarming)
867871 then {
868872 let re = invoke(this, "reissueShare", [mint_amount], nil)
869873 if ((re == re))
870874 then {
871- let s = invoke(farmingAddress, "lockShareTokens", [toString(this), lockType], [AttachedPayment(shareAssetId, mint_amount)])
875+ let s = invoke(farmingAddress, "lockShareTokens", [toString(this), lockType], ([AttachedPayment(shareAssetId, mint_amount)] ++ lockFee))
872876 if ((s == s))
873877 then (scriptActions :+ IntegerEntry(kShareAssetSupply, (shareSupply + mint_amount)))
874878 else throw("Strict value is not equal to itself.")
875879 }
876880 else throw("Strict value is not equal to itself.")
877881 }
878882 else (scriptActions ++ [Reissue(shareAssetId, mint_amount, true), ScriptTransfer(msg.caller, mint_amount, shareAssetId), IntegerEntry(kShareAssetSupply, (shareSupply + mint_amount))])
879883 }
880884 }
881885 }
882886 }
883887 })
884888
885889
886890
887891 @Callable(msg)
888892 func calcMintAmount (newBalances,user) = {
889893 let amp = _A()
890894 let xp = _xp()
891895 let D1 = getDMem(newBalances, amp)
892896 if ((shareSupply == 0))
893897 then $Tuple2(nil, D1)
894898 else {
895899 let D0 = getDMem(xp, amp)
896900 let feeDiscount = calculateFeeDiscount(user)
897901 func calcInvBalances (acc,newBalance) = {
898- let $t02008320109 = acc
899- let invBalances = $t02008320109._1
900- let i = $t02008320109._2
902+ let $t02027920305 = acc
903+ let invBalances = $t02027920305._1
904+ let i = $t02027920305._2
901905 let _fee = ((fraction(fee, feeDiscount, feeScale6, CEILING) * nCoins) / (4 * (nCoins - 1)))
902906 let fees = {
903907 let idealBalance = fraction(D1, xp[i], D0)
904908 let difference = if ((idealBalance > newBalance))
905909 then (idealBalance - newBalance)
906910 else (newBalance - idealBalance)
907911 fraction(_fee, difference, feeScale6)
908912 }
909913 let invariantBalance = (newBalance - fees)
910914 $Tuple2((invBalances :+ invariantBalance), (i + 1))
911915 }
912916
913- let $t02071120781 = {
917+ let $t02090720977 = {
914918 let $l = newBalances
915919 let $s = size($l)
916920 let $acc0 = $Tuple2(nil, 0)
917921 func $f0_1 ($a,$i) = if (($i >= $s))
918922 then $a
919923 else calcInvBalances($a, $l[$i])
920924
921925 func $f0_2 ($a,$i) = if (($i >= $s))
922926 then $a
923927 else throw("List size exceeds 10")
924928
925929 $f0_2($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)
926930 }
927- let invBalances = $t02071120781._1
928- let k = $t02071120781._2
931+ let invBalances = $t02090720977._1
932+ let k = $t02090720977._2
929933 let D2 = getDMem(invBalances, amp)
930934 let mintAmount = fraction(shareSupply, (D2 - D0), D0)
931935 $Tuple2(nil, mintAmount)
932936 }
933937 }
934938
935939
936940
937941 @Callable(msg)
938942 func reissueShare (amount) = valueOrElse(isSelfCall(msg), [Reissue(shareAssetId, amount, true)])
939943
940944
941945
942946 @Callable(msg)
943947 func getDy (assetFrom,assetTo,dx,userAddress) = {
944948 let xp = _xp()
945949 let fromIndex = valueOrErrorMessage(indexOf(assetIds, assetFrom), "unknown token in")
946950 let toIndex = valueOrErrorMessage(indexOf(assetIds, assetTo), "unknown token out")
947951 let x = (xp[fromIndex] + dx)
948952 let y = getY(fromIndex, toIndex, x, xp)
949953 let dy = ((xp[toIndex] - y) - 1)
950954 let feeDiscount = calculateFeeDiscount(Address(fromBase58String(userAddress)))
951955 let _fee = fraction(fraction(fee, feeDiscount, feeScale6, CEILING), dy, feeScale6)
952956 $Tuple2(nil, $Tuple2((dy - _fee), _fee))
953957 }
954958
955959
956960
957961 @Callable(msg)
958962 func exchange (tokenOut,min_dy) = valueOrElse(isActive(), if ((size(msg.payments) != 1))
959963 then throw("size(payments) != 1")
960964 else {
961965 let suspicious = checkSuspicious()
962966 if (suspicious._1)
963967 then (suspendSuspicious(suspicious._2) ++ returnPayments(msg.caller, msg.payments))
964968 else {
965969 let payment = msg.payments[0]
966970 let tokenIn = getStrAssetId(payment.assetId)
967971 let tokenOutB58 = fromBase58String(tokenOut)
968972 let dx = payment.amount
969973 let fromIndex = valueOrErrorMessage(indexOf(assetIds, tokenIn), "unknown token in")
970974 let toIndex = valueOrErrorMessage(indexOf(assetIds, tokenOut), "unknown token out")
971975 let xp = _xp()
972976 let x = (xp[fromIndex] + dx)
973977 let y = getY(fromIndex, toIndex, x, xp)
974978 let _dy = ((xp[toIndex] - y) - 1)
975979 let feeDiscount = calculateFeeDiscount(msg.originCaller)
976980 let _fee = fraction(_dy, fraction(fee, feeDiscount, feeScale6, CEILING), feeScale6)
977981 let dy = (_dy - _fee)
978982 let governanceFees = fraction(_fee, feeGovernance, feeScale6)
979983 if (assert((dy >= min_dy)))
980984 then throw("Exchange resulted in fewer coins than expected")
981985 else {
982986 func makeNewBalances (acc,tokenBalance) = {
983- let $t02282222848 = acc
984- let newBalances = $t02282222848._1
985- let i = $t02282222848._2
987+ let $t02301823044 = acc
988+ let newBalances = $t02301823044._1
989+ let i = $t02301823044._2
986990 if ((i == fromIndex))
987991 then $Tuple2((newBalances :+ (tokenBalance + dx)), (i + 1))
988992 else if ((i == toIndex))
989993 then $Tuple2((newBalances :+ (tokenBalance - _dy)), (i + 1))
990994 else $Tuple2((newBalances :+ tokenBalance), (i + 1))
991995 }
992996
993- let $t02309923160 = {
997+ let $t02329523356 = {
994998 let $l = xp
995999 let $s = size($l)
9961000 let $acc0 = $Tuple2(nil, 0)
9971001 func $f0_1 ($a,$i) = if (($i >= $s))
9981002 then $a
9991003 else makeNewBalances($a, $l[$i])
10001004
10011005 func $f0_2 ($a,$i) = if (($i >= $s))
10021006 then $a
10031007 else throw("List size exceeds 10")
10041008
10051009 $f0_2($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)
10061010 }
1007- let newBalances = $t02309923160._1
1008- let i = $t02309923160._2
1011+ let newBalances = $t02329523356._1
1012+ let i = $t02329523356._2
10091013 if (checkDAppThreshold(newBalances))
10101014 then throw()
10111015 else {
10121016 let s = stake(payment.amount, getStrAssetId(payment.assetId))
10131017 if ((s == s))
10141018 then {
10151019 let us = unstake(_dy, tokenOut)
10161020 if ((us == us))
10171021 then {
10181022 let lpFees = (_fee - governanceFees)
10191023 let airdrop = if ((lpFees > 0))
10201024 then invoke(lpFarmingAddress, "airDrop", nil, [AttachedPayment(tokenOutB58, lpFees)])
10211025 else 0
10221026 if ((airdrop == airdrop))
10231027 then $Tuple2([IntegerEntry((tokenIn + kAssetBalance), x), IntegerEntry((tokenOut + kAssetBalance), (xp[toIndex] - _dy)), ScriptTransfer(msg.caller, dy, tokenOutB58), ScriptTransfer(moneyBoxAddress, governanceFees, tokenOutB58)], [dy, tokenOutB58])
10241028 else throw("Strict value is not equal to itself.")
10251029 }
10261030 else throw("Strict value is not equal to itself.")
10271031 }
10281032 else throw("Strict value is not equal to itself.")
10291033 }
10301034 }
10311035 }
10321036 })
10331037
10341038
10351039
10361040 @Callable(msg)
10371041 func withdraw (minAmounts) = valueOrElse(isActive(), if ((size(msg.payments) != 1))
10381042 then throw("size(payments) != 1")
10391043 else {
10401044 let pmtAmount = msg.payments[0].amount
10411045 let pmtAssetId = msg.payments[0].assetId
10421046 if ((shareAssetId != pmtAssetId))
10431047 then throw("unknown payment token")
10441048 else {
10451049 let suspicious = checkSuspicious()
10461050 if (suspicious._1)
10471051 then (suspendSuspicious(suspicious._2) ++ returnPayments(msg.originCaller, msg.payments))
10481052 else {
10491053 func calcScriptActions (acc,balance) = {
1050- let $t02445124479 = acc
1051- let scriptActions = $t02445124479._1
1052- let i = $t02445124479._2
1054+ let $t02464724675 = acc
1055+ let scriptActions = $t02464724675._1
1056+ let i = $t02464724675._2
10531057 let wAmount = fraction(balance, pmtAmount, shareSupply)
10541058 if (assert((wAmount >= minAmounts[i])))
10551059 then throw("Withdrawal resulted in fewer coins than expected")
10561060 else {
10571061 let us = unstake(wAmount, assetIds[i])
10581062 if ((us == us))
10591063 then $Tuple2((scriptActions ++ [IntegerEntry((assetIds[i] + kAssetBalance), (balance - wAmount)), ScriptTransfer(msg.originCaller, wAmount, fromBase58String(assetIds[i]))]), (i + 1))
10601064 else throw("Strict value is not equal to itself.")
10611065 }
10621066 }
10631067
1064- let $t02496925037 = {
1068+ let $t02516525233 = {
10651069 let $l = _xp()
10661070 let $s = size($l)
10671071 let $acc0 = $Tuple2(nil, 0)
10681072 func $f0_1 ($a,$i) = if (($i >= $s))
10691073 then $a
10701074 else calcScriptActions($a, $l[$i])
10711075
10721076 func $f0_2 ($a,$i) = if (($i >= $s))
10731077 then $a
10741078 else throw("List size exceeds 10")
10751079
10761080 $f0_2($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)
10771081 }
1078- let scriptActions = $t02496925037._1
1079- let i = $t02496925037._2
1082+ let scriptActions = $t02516525233._1
1083+ let i = $t02516525233._2
10801084 (scriptActions ++ [Burn(shareAssetId, pmtAmount), IntegerEntry(kShareAssetSupply, (shareSupply - pmtAmount))])
10811085 }
10821086 }
10831087 })
10841088
10851089
10861090
10871091 @Callable(msg)
10881092 func withdrawWithUnlock (minAmounts,unlockAmount) = valueOrElse(isActive(), if ((0 >= unlockAmount))
10891093 then throw("Unlock amount must be positive")
10901094 else {
10911095 let suspicious = checkSuspicious()
10921096 if (suspicious._1)
10931097 then (suspendSuspicious(suspicious._2) ++ returnPayments(msg.caller, msg.payments))
10941098 else {
10951099 let pmtAmount = if ((size(msg.payments) > 0))
10961100 then if ((size(msg.payments) != 1))
10971101 then throw("size(payments) != 1")
10981102 else {
10991103 let pmtAssetId = msg.payments[0].assetId
11001104 if ((shareAssetId != pmtAssetId))
11011105 then throw("unknown payment token")
11021106 else msg.payments[0].amount
11031107 }
11041108 else 0
11051109 let unlock = invoke(farmingAddress, "withdrawShareTokens", [toString(this), unlockAmount], nil)
11061110 if ((unlock == unlock))
11071111 then {
11081112 let withdrawAmount = (pmtAmount + unlockAmount)
11091113 let inv = invoke(this, "withdraw", [minAmounts], [AttachedPayment(shareAssetId, withdrawAmount)])
11101114 if ((inv == inv))
11111115 then nil
11121116 else throw("Strict value is not equal to itself.")
11131117 }
11141118 else throw("Strict value is not equal to itself.")
11151119 }
11161120 })
11171121
11181122
11191123
11201124 @Callable(msg)
11211125 func calcWithdrawOneCoin (tokenAmount,tokenOut,user) = if ((0 >= tokenAmount))
11221126 then throw("Amount must be positive")
11231127 else {
11241128 let i = valueOrErrorMessage(indexOf(assetIds, tokenOut), "unknown token out")
11251129 $Tuple2(nil, _calcWithdrawOneCoin(_xp(), tokenAmount, i, Address(fromBase58String(user)))._1)
11261130 }
11271131
11281132
11291133
11301134 @Callable(msg)
11311135 func withdrawOneCoin (tokenOut,minAmount) = valueOrElse(isActive(), if ((size(msg.payments) != 1))
11321136 then throw("size(payments) != 1")
11331137 else {
11341138 let suspicious = checkSuspicious()
11351139 if (suspicious._1)
11361140 then (suspendSuspicious(suspicious._2) ++ returnPayments(msg.originCaller, msg.payments))
11371141 else {
11381142 let pmtAmount = msg.payments[0].amount
11391143 let pmtAssetId = msg.payments[0].assetId
11401144 if ((pmtAssetId != shareAssetId))
11411145 then throw("unknown token")
11421146 else {
11431147 let outIndex = valueOrErrorMessage(indexOf(assetIds, tokenOut), "unknown token out")
11441148 let tokenOutB58 = fromBase58String(tokenOut)
11451149 let xp = _xp()
1146- let $t02706927151 = _calcWithdrawOneCoin(xp, pmtAmount, outIndex, msg.originCaller)
1147- let dy = $t02706927151._1
1148- let dy_fee = $t02706927151._2
1150+ let $t02726527347 = _calcWithdrawOneCoin(xp, pmtAmount, outIndex, msg.originCaller)
1151+ let dy = $t02726527347._1
1152+ let dy_fee = $t02726527347._2
11491153 if (assert((dy >= minAmount)))
11501154 then throw("Not enough coins removed")
11511155 else {
11521156 let governanceFees = fraction(dy_fee, feeGovernance, feeScale6)
11531157 let dy_and_fee = (dy + dy_fee)
11541158 func makeNewBalances (acc,tokenBalance) = {
1155- let $t02740927435 = acc
1156- let newBalances = $t02740927435._1
1157- let i = $t02740927435._2
1159+ let $t02760527631 = acc
1160+ let newBalances = $t02760527631._1
1161+ let i = $t02760527631._2
11581162 if ((i == outIndex))
11591163 then $Tuple2((newBalances :+ (tokenBalance - dy_and_fee)), (i + 1))
11601164 else $Tuple2((newBalances :+ tokenBalance), (i + 1))
11611165 }
11621166
1163- let $t02760227663 = {
1167+ let $t02779827859 = {
11641168 let $l = xp
11651169 let $s = size($l)
11661170 let $acc0 = $Tuple2(nil, 0)
11671171 func $f0_1 ($a,$i) = if (($i >= $s))
11681172 then $a
11691173 else makeNewBalances($a, $l[$i])
11701174
11711175 func $f0_2 ($a,$i) = if (($i >= $s))
11721176 then $a
11731177 else throw("List size exceeds 10")
11741178
11751179 $f0_2($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)
11761180 }
1177- let newBalances = $t02760227663._1
1178- let v = $t02760227663._2
1181+ let newBalances = $t02779827859._1
1182+ let v = $t02779827859._2
11791183 if (checkDAppThreshold(newBalances))
11801184 then throw()
11811185 else {
11821186 let us = unstake(dy_and_fee, tokenOut)
11831187 if ((us == us))
11841188 then {
11851189 let lpFees = (dy_fee - governanceFees)
11861190 let airdrop = if ((lpFees > 0))
11871191 then invoke(lpFarmingAddress, "airDrop", nil, [AttachedPayment(tokenOutB58, lpFees)])
11881192 else 0
11891193 if ((airdrop == airdrop))
11901194 then [ScriptTransfer(msg.originCaller, dy, tokenOutB58), IntegerEntry((assetIds[outIndex] + kAssetBalance), (xp[outIndex] - dy_and_fee)), Burn(shareAssetId, pmtAmount), ScriptTransfer(moneyBoxAddress, governanceFees, tokenOutB58), IntegerEntry(kShareAssetSupply, (shareSupply - pmtAmount))]
11911195 else throw("Strict value is not equal to itself.")
11921196 }
11931197 else throw("Strict value is not equal to itself.")
11941198 }
11951199 }
11961200 }
11971201 }
11981202 })
11991203
12001204
12011205
12021206 @Callable(msg)
12031207 func withdrawOneCoinWithUnlock (tokenOut,minAmount,unlockAmount) = valueOrElse(isActive(), if ((0 >= unlockAmount))
12041208 then throw("Unlock amount must be positive")
12051209 else {
12061210 let suspicious = checkSuspicious()
12071211 if (suspicious._1)
12081212 then (suspendSuspicious(suspicious._2) ++ returnPayments(msg.caller, msg.payments))
12091213 else {
12101214 let pmtAmount = if ((size(msg.payments) > 0))
12111215 then if ((size(msg.payments) != 1))
12121216 then throw("size(payments) != 1")
12131217 else {
12141218 let pmtAssetId = msg.payments[0].assetId
12151219 if ((shareAssetId != pmtAssetId))
12161220 then throw("unknown payment token")
12171221 else msg.payments[0].amount
12181222 }
12191223 else 0
12201224 let unlock = invoke(farmingAddress, "withdrawShareTokens", [toString(this), unlockAmount], nil)
12211225 if ((unlock == unlock))
12221226 then {
12231227 let withdrawAmount = (pmtAmount + unlockAmount)
12241228 let inv = invoke(this, "withdrawOneCoin", [tokenOut, minAmount], [AttachedPayment(shareAssetId, withdrawAmount)])
12251229 if ((inv == inv))
12261230 then nil
12271231 else throw("Strict value is not equal to itself.")
12281232 }
12291233 else throw("Strict value is not equal to itself.")
12301234 }
12311235 })
12321236
12331237
12341238
12351239 @Callable(msg)
12361240 func A () = $Tuple2(nil, _A())
12371241
12381242
12391243
12401244 @Callable(msg)
12411245 func getVirtualPrice () = {
12421246 let D = get_D(_xp(), _A())
12431247 $Tuple2(nil, fraction(D, PRECISION, shareSupply))
12441248 }
12451249
12461250
12471251
12481252 @Callable(msg)
12491253 func calcTokenAmount (amounts,deposit) = {
12501254 let amp = _A()
12511255 let balances = _xp()
12521256 let D0 = getDMem(balances, amp)
12531257 func calcNewBalances (acc,balance) = {
1254- let $t02968029706 = acc
1255- let newBalances = $t02968029706._1
1256- let i = $t02968029706._2
1258+ let $t02987629902 = acc
1259+ let newBalances = $t02987629902._1
1260+ let i = $t02987629902._2
12571261 let newBalance = (balance + (if (deposit)
12581262 then amounts[i]
12591263 else -(amounts[i])))
12601264 $Tuple2((newBalances :+ newBalance), (i + 1))
12611265 }
12621266
12631267 let newBalances = ( let $l = balances
12641268 let $s = size($l)
12651269 let $acc0 = $Tuple2(nil, 0)
12661270 func $f0_1 ($a,$i) = if (($i >= $s))
12671271 then $a
12681272 else calcNewBalances($a, $l[$i])
12691273
12701274 func $f0_2 ($a,$i) = if (($i >= $s))
12711275 then $a
12721276 else throw("List size exceeds 10")
12731277
12741278 $f0_2($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))._1
12751279 let D1 = getDMem(newBalances, amp)
12761280 let diff = if (deposit)
12771281 then (D1 - D0)
12781282 else (D0 - D1)
12791283 $Tuple2(nil, fraction(diff, shareSupply, D0))
12801284 }
12811285
12821286
12831287
12841288 @Callable(msg)
12851289 func rampA (_futureA,_futureTime) = valueOrElse(isActive(), valueOrElse(isAdminCall(msg), if (assert((blockTimestamp >= (initial_A_time + MIN_RAMP_TIME))))
12861290 then throw("too often")
12871291 else if (assert((_futureTime >= (blockTimestamp + MIN_RAMP_TIME))))
12881292 then throw("insufficient time")
12891293 else {
12901294 let _initial_A = _A()
12911295 if (assert(if ((_futureA > 0))
12921296 then (MAX_A > _futureA)
12931297 else false))
12941298 then throw("out of base range")
12951299 else if (assert(if (if ((_futureA >= _initial_A))
12961300 then ((_initial_A * MAX_A_CHANGE) >= _futureA)
12971301 else false)
12981302 then true
12991303 else if ((_initial_A > _futureA))
13001304 then ((_futureA * MAX_A_CHANGE) >= _initial_A)
13011305 else false))
13021306 then throw("out of range")
13031307 else [IntegerEntry("initial_A", _initial_A), IntegerEntry("future_A", _futureA), IntegerEntry("initial_A_time", blockTimestamp), IntegerEntry("future_A_time", _futureTime)]
13041308 }))
13051309
13061310
13071311
13081312 @Callable(msg)
13091313 func stopRampA () = valueOrElse(isActive(), valueOrElse(isAdminCall(msg), {
13101314 let currentA = _A()
13111315 [IntegerEntry("initial_A", currentA), IntegerEntry("future_A", currentA), IntegerEntry("initial_A_time", blockTimestamp), IntegerEntry("future_A_time", blockTimestamp)]
13121316 }))
13131317
13141318
13151319
13161320 @Callable(msg)
13171321 func shutdown () = valueOrElse(isAdminCall(msg), if (!(active))
13181322 then throw(("DApp is already suspended. Cause: " + valueOrElse(getString(this, kCause), "the cause wasn't specified")))
13191323 else suspend("Paused by admin"))
13201324
13211325
13221326
13231327 @Callable(msg)
13241328 func activate () = valueOrElse(isAdminCall(msg), if (active)
13251329 then throwIsActive()
13261330 else [BooleanEntry(kActive, true), DeleteEntry(kCause)])
13271331
13281332
13291333
13301334 @Callable(msg)
13311335 func takeIntoAccountExtraFunds () = valueOrElse(isActive(), if ((msg.caller != moneyBoxAddress))
13321336 then throw("Only the wallet can call this function")
13331337 else {
13341338 let balances = _xp()
13351339 func takeExtraFunds (acc,assetId) = {
1336- let $t03204832066 = acc
1337- let sum = $t03204832066._1
1338- let i = $t03204832066._2
1340+ let $t03224432262 = acc
1341+ let sum = $t03224432262._1
1342+ let i = $t03224432262._2
13391343 let tokenB58 = fromBase58String(assetId)
13401344 let rBalance = (assetBalance(this, tokenB58) + stakedAmount(tokenB58))
13411345 let enrollAmount = (rBalance - balances[i])
13421346 if ((0 > enrollAmount))
13431347 then suspend(("Enroll amount negative for asset" + assetId))
13441348 else {
13451349 let airdrop = if ((enrollAmount > 0))
13461350 then invoke(lpFarmingAddress, "airDrop", nil, [AttachedPayment(tokenB58, enrollAmount)])
13471351 else 0
13481352 if ((airdrop == airdrop))
13491353 then $Tuple2((sum + enrollAmount), (i + 1))
13501354 else throw("Strict value is not equal to itself.")
13511355 }
13521356 }
13531357
13541358 let k = {
13551359 let $l = assetIds
13561360 let $s = size($l)
13571361 let $acc0 = $Tuple2(0, 0)
13581362 func $f0_1 ($a,$i) = if (($i >= $s))
13591363 then $a
13601364 else takeExtraFunds($a, $l[$i])
13611365
13621366 func $f0_2 ($a,$i) = if (($i >= $s))
13631367 then $a
13641368 else throw("List size exceeds 10")
13651369
13661370 $f0_2($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)
13671371 }
13681372 if ((k._1 == 0))
13691373 then throw("No money to take")
13701374 else nil
13711375 })
13721376
13731377
13741378 @Verifier(tx)
13751379 func verify () = {
13761380 let multiSignedByAdmins = {
13771381 let adminPubKey1Signed = if (sigVerify(tx.bodyBytes, tx.proofs[0], adminPubKey1))
13781382 then 1
13791383 else 0
13801384 let adminPubKey2Signed = if (sigVerify(tx.bodyBytes, tx.proofs[1], adminPubKey2))
13811385 then 1
13821386 else 0
13831387 let adminPubKey3Signed = if (sigVerify(tx.bodyBytes, tx.proofs[2], adminPubKey3))
13841388 then 1
13851389 else 0
13861390 (((adminPubKey1Signed + adminPubKey2Signed) + adminPubKey3Signed) >= 2)
13871391 }
13881392 match tx {
13891393 case inv: InvokeScriptTransaction =>
13901394 let callTakeIntoAccount = if ((inv.dApp == this))
13911395 then (inv.function == "takeIntoAccountExtraFunds")
13921396 else false
13931397 let signedByAdmin = if (if (if (sigVerify(tx.bodyBytes, tx.proofs[0], adminPubKey1))
13941398 then true
13951399 else sigVerify(tx.bodyBytes, tx.proofs[0], adminPubKey2))
13961400 then true
13971401 else sigVerify(tx.bodyBytes, tx.proofs[0], adminPubKey3))
13981402 then true
13991403 else sigVerify(tx.bodyBytes, tx.proofs[0], adminPubKeyInvoke)
14001404 if (if (callTakeIntoAccount)
14011405 then signedByAdmin
14021406 else false)
14031407 then true
14041408 else multiSignedByAdmins
14051409 case _ =>
14061410 multiSignedByAdmins
14071411 }
14081412 }
14091413

github/deemru/w8io/026f985 
149.71 ms