tx · 82FDeRevXxKDHHaBfixvgMcjX2TtM2tTWZ7LKfU2Pndw

3N3DnVffnUyZtz2MRbk5U7giN112WempMNd:  -0.02900000 Waves

2023.03.21 11:29 [2499542] smart account 3N3DnVffnUyZtz2MRbk5U7giN112WempMNd > SELF 0.00000000 Waves

{ "type": 13, "id": "82FDeRevXxKDHHaBfixvgMcjX2TtM2tTWZ7LKfU2Pndw", "fee": 2900000, "feeAssetId": null, "timestamp": 1679387371522, "version": 2, "chainId": 84, "sender": "3N3DnVffnUyZtz2MRbk5U7giN112WempMNd", "senderPublicKey": "3c1wAgvTRCNXCGMidVnB1j4gTYUqtwHR9tNNu2v4ZUNk", "proofs": [ "4La4BmyLsPSV9fEf3oVy2vhGSRkssEhFa7adxvoYZ3mLckgDPaRdNznGm1e7t4tbskf5Nfs3YsvzsVMddTDXuLfy" ], "script": "base64:BgKCAQgCEgASBAoCCAESBAoCCAESABIDCgEIEgQKAggBEgQKAggBEgQKAggBEgASBgoECAgICBIECgIICBIECgIICBIDCgEEEgMKAQgSAwoBBBIICgYECAEICAgSBQoDBAgIEgYKBAQIBAgSAwoBBBIECgIIBBIECgIIBBIDCgEEEgMKAQQeABJyZXNlcnZlRnVuZEFkZHJlc3MJAQdBZGRyZXNzAQEaAVR5kbUvJUKjlFFOUXUmV1bpUpTF5flA7NkAC3Jlc2VydmVGdW5kABQAEWFnZ3JlZ2F0b3JBZGRyZXNzCQEHQWRkcmVzcwEBGgFUeZG1LyVCo5RRTlF1JldW6VKUxeX5QOzZAAlvcmFjbGVTdHICIzNONEtiTW5KSDhGYU05NGpxeE5GZTJveVo4R0I3Wjh5VkJQABFzaHV0ZG93bldoaXRlbGlzdAkAzAgCARoBV9fhI1GOfKuIWtXXKJd12Ih104+uIwWm4QkAzAgCARoBV2MNA4Gmf1tU0hy55Cgq86eANPDYtY3VZQkAzAgCARoBV7PVklRJCZoqEPvG+J8QdqvvPw9ypYkVjAkAzAgCARoBV/j6+gImwFGL7Go7RjNJ0hxxs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9keUJ5dGVzCQCRAwIIBQJ0eAZwcm9vZnMAAAgFAnR4D3NlbmRlclB1YmxpY0tleesHjrc=", "height": 2499542, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 8NcsJ8Pf63RnE8RTxhmSRM6s5MMrtPuX4mAHzUWejj8K Next: FpUqhCxdVrAckQS3XYrssKBtFUMMbERUEh11x89LsiYz Diff:
OldNewDifferences
77
88 let aggregatorAddress = Address(base58'3Mzzt65puEs2W9M1m9iFBvMEdfM5bASE1hJ')
99
10-let oracleStr = "3PPXVKjN6nRMzXeegcYhfiic96pd2c98Ekm"
10+let oracleStr = "3N4KbMnJH8FaM94jqxNFe2oyZ8GB7Z8yVBP"
1111
1212 let shutdownWhitelist = [base58'3PMcMiMEs6w56NRGacksXtFG5zS7doE9fpL', base58'3PAxdDSmN758L5SHSGRC5apEtQE2aApZotG', base58'3PJKmXoHJvVeQXjSJdhtkUcFDtdiQqMbUTD', base58'3PQdNxynJy5mche2kxMVc5shXWzK8Gstq3o', base58'3PHbdpaKzz8EiAngGHaFu2hVuNCdsC67qh3', base58'3P6Ksahs71SiKQgQ4qaZuFAVhqncdi2nvJQ']
1313
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let reserveFundAddress = Address(base58'3Mzzt65puEs2W9M1m9iFBvMEdfM5bASE1hJ')
55
66 let reserveFund = 20
77
88 let aggregatorAddress = Address(base58'3Mzzt65puEs2W9M1m9iFBvMEdfM5bASE1hJ')
99
10-let oracleStr = "3PPXVKjN6nRMzXeegcYhfiic96pd2c98Ekm"
10+let oracleStr = "3N4KbMnJH8FaM94jqxNFe2oyZ8GB7Z8yVBP"
1111
1212 let shutdownWhitelist = [base58'3PMcMiMEs6w56NRGacksXtFG5zS7doE9fpL', base58'3PAxdDSmN758L5SHSGRC5apEtQE2aApZotG', base58'3PJKmXoHJvVeQXjSJdhtkUcFDtdiQqMbUTD', base58'3PQdNxynJy5mche2kxMVc5shXWzK8Gstq3o', base58'3PHbdpaKzz8EiAngGHaFu2hVuNCdsC67qh3', base58'3P6Ksahs71SiKQgQ4qaZuFAVhqncdi2nvJQ']
1313
1414 func verifyLiquidatorRights (address) = !((address != Address(base58'3Mzzt65puEs2W9M1m9iFBvMEdfM5bASE1hJ')))
1515
1616
1717 func getRateCurve (assetIdStr) = match assetIdStr {
1818 case _ =>
1919 if (("FLdC14nUVRyiSYjVrMo3X4g8rXQjLbNRaGAyQAm8V68V" == $match0))
2020 then $Tuple4(2000000, 25000000, 80000000, 100000000)
2121 else if (("25FEqEjRkqK6yCkiT7Lz6SAYz7gUFCtxfCChnrVFD5AT" == $match0))
2222 then $Tuple4(2000000, 25000000, 80000000, 100000000)
2323 else if (("WAVES" == $match0))
2424 then $Tuple4(2000000, 30000000, 80000000, 50000000)
2525 else $Tuple4(0, 20000000, 80000000, 80000000)
2626 }
2727
2828
2929 let Scale8 = 100000000
3030
3131 let Scale10 = 10000000000
3232
3333 let Scale16 = (Scale8 * Scale8)
3434
3535 let dayBlocks = 1440
3636
3737 func liIntToStr (li) = {
3838 func f (accum,next) = ((accum + toString(next)) + ",")
3939
4040 let $l = li
4141 let $s = size($l)
4242 let $acc0 = ""
4343 func $f0_1 ($a,$i) = if (($i >= $s))
4444 then $a
4545 else f($a, $l[$i])
4646
4747 func $f0_2 ($a,$i) = if (($i >= $s))
4848 then $a
4949 else throw("List size exceeds 6")
5050
5151 $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6)
5252 }
5353
5454
5555 func tryGetInteger (key) = match getInteger(this, key) {
5656 case b: Int =>
5757 b
5858 case _ =>
5959 0
6060 }
6161
6262
6363 func tryGetBoolean (key) = match getBoolean(this, key) {
6464 case b: Boolean =>
6565 b
6666 case _ =>
6767 false
6868 }
6969
7070
7171 func tryGetString (key) = match getString(this, key) {
7272 case b: String =>
7373 b
7474 case _ =>
7575 ""
7676 }
7777
7878
7979 func tryGetBinary (key) = match getBinary(this, key) {
8080 case b: ByteVector =>
8181 b
8282 case _ =>
8383 base58''
8484 }
8585
8686
8787 func getAssetString (assetId) = match assetId {
8888 case b: ByteVector =>
8989 toBase58String(b)
9090 case _ =>
9191 "WAVES"
9292 }
9393
9494
9595 func getAssetBytes (assetIdStr) = if ((assetIdStr == "WAVES"))
9696 then unit
9797 else fromBase58String(assetIdStr)
9898
9999
100100 func getBalance (assetIdStr) = if ((assetIdStr == "WAVES"))
101101 then wavesBalance(this).available
102102 else assetBalance(this, fromBase58String(assetIdStr))
103103
104104
105105 func getMarketAssets () = split(tryGetString("setup_tokens"), ",")
106106
107107
108108 func getAssetsMaxSupply () = {
109109 let s = tryGetString("setup_maxsupply")
110110 if ((s == ""))
111111 then [-1, -1, -1, -1, -1, -1, -1]
112112 else split(s, ",")
113113 }
114114
115115
116116 func getOutdatedUr (assetIdStr) = {
117117 let down = fraction(tryGetInteger(("total_supplied_" + assetIdStr)), tryGetInteger((assetIdStr + "_sRate")), Scale16)
118118 if ((down == 0))
119119 then 0
120120 else fraction(Scale8, fraction(tryGetInteger(("total_borrowed_" + assetIdStr)), tryGetInteger((assetIdStr + "_bRate")), Scale16), down)
121121 }
122122
123123
124124 func getInterest (assetIdStr) = {
125125 let ur = getOutdatedUr(assetIdStr)
126126 let curve = getRateCurve(assetIdStr)
127127 let rate = (curve._1 + (if ((curve._3 >= ur))
128128 then fraction(ur, curve._2, curve._3)
129129 else (curve._2 + fraction((ur - curve._3), curve._4, (100000000 - curve._3)))))
130130 max([fraction(rate, Scale8, (dayBlocks * 365)), 1])
131131 }
132132
133133
134134 func tokenRatesRecalc (assetIdStr) = {
135135 let interest = getInterest(assetIdStr)
136136 let ur = getOutdatedUr(assetIdStr)
137137 let lastRecalcHeight = tryGetInteger("lastRateHeight")
138138 let lastBRate = max([tryGetInteger((assetIdStr + "_bRate")), Scale16])
139139 let newBRate = (lastBRate + ((height - lastRecalcHeight) * interest))
140140 let lastSRate = max([tryGetInteger((assetIdStr + "_sRate")), Scale16])
141141 let newSRate = (lastSRate + ((((height - lastRecalcHeight) * fraction(interest, ur, Scale8)) * (100 - reserveFund)) / 100))
142142 [IntegerEntry((assetIdStr + "_sRate"), newSRate), IntegerEntry((assetIdStr + "_bRate"), newBRate), IntegerEntry("lastRateHeight", height)]
143143 }
144144
145145
146146 func getActualRate (assetIdStr,rateType) = {
147147 func f (accum,token) = {
148148 let recalc = tokenRatesRecalc(token)
149149 $Tuple2(if ((token != assetIdStr))
150150 then accum._1
151151 else if ((rateType == "sRate"))
152152 then recalc[0].value
153153 else recalc[1].value, (accum._2 ++ recalc))
154154 }
155155
156156 let $l = getMarketAssets()
157157 let $s = size($l)
158158 let $acc0 = $Tuple2(0, nil)
159159 func $f0_1 ($a,$i) = if (($i >= $s))
160160 then $a
161161 else f($a, $l[$i])
162162
163163 func $f0_2 ($a,$i) = if (($i >= $s))
164164 then $a
165165 else throw("List size exceeds 6")
166166
167167 $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6)
168168 }
169169
170170
171171 func getUr (assetIdStr) = {
172172 let rates = tokenRatesRecalc(assetIdStr)
173173 let down = fraction(tryGetInteger(("total_supplied_" + assetIdStr)), rates[0].value, Scale16)
174174 fraction(Scale8, fraction(tryGetInteger(("total_borrowed_" + assetIdStr)), rates[1].value, Scale16), down)
175175 }
176176
177177
178178 func ratesRecalc () = {
179179 func f (accum,token) = (accum ++ tokenRatesRecalc(token))
180180
181181 let $l = getMarketAssets()
182182 let $s = size($l)
183183 let $acc0 = nil
184184 func $f0_1 ($a,$i) = if (($i >= $s))
185185 then $a
186186 else f($a, $l[$i])
187187
188188 func $f0_2 ($a,$i) = if (($i >= $s))
189189 then $a
190190 else throw("List size exceeds 6")
191191
192192 $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6)
193193 }
194194
195195
196196 func getTokenPrice (assetIdStr) = {
197197 let inv3 = invoke(addressFromStringValue(oracleStr), "getTWAP60", [assetIdStr, false], nil)
198198 if ((inv3 == inv3))
199199 then {
200200 let data3 = match inv3 {
201201 case x: (Int, Int) =>
202202 x
203203 case _ =>
204204 throw("error of price oracle")
205205 }
206206 if ((data3 == data3))
207207 then data3
208208 else throw("Strict value is not equal to itself.")
209209 }
210210 else throw("Strict value is not equal to itself.")
211211 }
212212
213213
214214 func calcAssetScale (assetIdStr) = {
215215 let decimals = if ((assetIdStr == "WAVES"))
216216 then 8
217217 else value(assetInfo(fromBase58String(assetIdStr))).decimals
218218 pow(10, 0, decimals, 0, 0, DOWN)
219219 }
220220
221221
222222 func calcUserCollateral (address) = {
223223 let userCollateralInvoke = invoke(this, "getUserCollateral", [false, address, true, ""], nil)
224224 if ((userCollateralInvoke == userCollateralInvoke))
225225 then {
226226 let userCollateralValue = match userCollateralInvoke {
227227 case x: Int =>
228228 x
229229 case _ =>
230230 throw("issue while doing in-dapp invocation")
231231 }
232232 if ((userCollateralValue == userCollateralValue))
233233 then userCollateralValue
234234 else throw("Strict value is not equal to itself.")
235235 }
236236 else throw("Strict value is not equal to itself.")
237237 }
238238
239239
240240 @Callable(i)
241241 func supply () = if (!(tryGetBoolean("setup_active")))
242242 then throw("market is stopped")
243243 else if (if ((size(i.payments) != 1))
244244 then true
245245 else (i.payments[0].amount == 0))
246246 then throw("1 payment has to be attached")
247247 else {
248248 let assetIdStr = getAssetString(i.payments[0].assetId)
249249 let assetAmount = i.payments[0].amount
250250 let $t067486815 = getActualRate(assetIdStr, "sRate")
251251 let sRate = $t067486815._1
252252 let ratesRecalcResult = $t067486815._2
253253 let amount = fraction(assetAmount, Scale16, sRate, DOWN)
254254 let address = toString(i.caller)
255255 let maxSupply = match getString(("setup_maxSupply_" + assetIdStr)) {
256256 case x: String =>
257257 parseIntValue(x)
258258 case _ =>
259259 0
260260 }
261261 let assetPrice = getTokenPrice(assetIdStr)
262262 let newTotalSupplied = (tryGetInteger(((address + "_supplied_") + assetIdStr)) + amount)
263263 let rate = getActualRate(assetIdStr, "sRate")._1
264264 let assetScale = calcAssetScale(assetIdStr)
265265 let newTotalSuppliedUsd = fraction(fraction(newTotalSupplied, rate, Scale16), assetPrice._1, assetScale)
266266 if ((indexOf(tryGetString("setup_tokens"), assetIdStr) == unit))
267267 then throw("this asset is not supported by the market")
268268 else if (if ((maxSupply != 0))
269269 then (newTotalSuppliedUsd > maxSupply)
270270 else false)
271271 then throw("max total supply for this token reached in the pool")
272272 else ([IntegerEntry(((address + "_supplied_") + assetIdStr), newTotalSupplied), IntegerEntry(("total_supplied_" + assetIdStr), (tryGetInteger(("total_supplied_" + assetIdStr)) + amount))] ++ ratesRecalcResult)
273273 }
274274
275275
276276
277277 @Callable(i)
278278 func withdraw (assetIdStr,assetAmount) = {
279279 let $t080758142 = getActualRate(assetIdStr, "sRate")
280280 let sRate = $t080758142._1
281281 let ratesRecalcResult = $t080758142._2
282282 let amount = fraction(assetAmount, Scale16, sRate, CEILING)
283283 let address = toString(i.caller)
284284 let assetSupplied = tryGetInteger(("total_supplied_" + assetIdStr))
285285 let assetBorrowed = tryGetInteger(("total_borrowed_" + assetIdStr))
286286 let userAssetSupplied = tryGetInteger(((address + "_supplied_") + assetIdStr))
287287 let userAssetBorrowed = tryGetInteger(((address + "_borrowed_") + assetIdStr))
288288 let collateralValueInv = invoke(this, "getUserCollateral", [false, address, true, ((assetIdStr + ",supplied,") + toString(-(amount)))], nil)
289289 if ((collateralValueInv == collateralValueInv))
290290 then {
291291 let collateralValue = match collateralValueInv {
292292 case x: Int =>
293293 x
294294 case _ =>
295295 throw("can't get user collateral value")
296296 }
297297 if (!(tryGetBoolean("setup_active")))
298298 then throw("market is stopped")
299299 else if ((0 > collateralValue))
300300 then throw("you dont have enough collateral for this operation")
301301 else if ((amount > (assetSupplied - assetBorrowed)))
302302 then throw("this amount is not available on the market")
303303 else if ((amount > (userAssetSupplied - userAssetBorrowed)))
304304 then throw("this amount is not available for this user")
305305 else ([IntegerEntry(((address + "_supplied_") + assetIdStr), (tryGetInteger(((address + "_supplied_") + assetIdStr)) - amount)), IntegerEntry(("total_supplied_" + assetIdStr), (tryGetInteger(("total_supplied_" + assetIdStr)) - amount)), ScriptTransfer(i.caller, assetAmount, getAssetBytes(assetIdStr))] ++ ratesRecalcResult)
306306 }
307307 else throw("Strict value is not equal to itself.")
308308 }
309309
310310
311311
312312 @Callable(i)
313313 func borrow (assetIdStr,assetAmount) = {
314314 let address = toString(i.caller)
315315 let $t097149781 = getActualRate(assetIdStr, "bRate")
316316 let bRate = $t097149781._1
317317 let ratesRecalcResult = $t097149781._2
318318 let amount = fraction(assetAmount, Scale16, bRate, CEILING)
319319 let collateralValueInv = invoke(this, "getUserCollateral", [false, address, true, ((assetIdStr + ",borrowed,") + toString(amount))], nil)
320320 if ((collateralValueInv == collateralValueInv))
321321 then {
322322 let collateralValue = match collateralValueInv {
323323 case x: Int =>
324324 x
325325 case _ =>
326326 throw("can't get user collateral value")
327327 }
328328 if (!(tryGetBoolean("setup_active")))
329329 then throw("market is stopped")
330330 else if ((0 > collateralValue))
331331 then throw("you have to supply more to borrow")
332332 else {
333333 let assetSupplied = tryGetInteger(("total_supplied_" + assetIdStr))
334334 let assetBorrowed = tryGetInteger(("total_borrowed_" + assetIdStr))
335335 let userAssetBorrowed = tryGetInteger(((address + "_borrowed_") + assetIdStr))
336336 if ((amount > (assetSupplied - assetBorrowed)))
337337 then throw("this amount is not available")
338338 else ([IntegerEntry(((address + "_borrowed_") + assetIdStr), (userAssetBorrowed + amount)), IntegerEntry(("total_borrowed_" + assetIdStr), (assetBorrowed + amount)), ScriptTransfer(i.caller, assetAmount, getAssetBytes(assetIdStr))] ++ ratesRecalcResult)
339339 }
340340 }
341341 else throw("Strict value is not equal to itself.")
342342 }
343343
344344
345345
346346 @Callable(i)
347347 func repay () = if (!(tryGetBoolean("setup_active")))
348348 then throw("market is stopped")
349349 else if (if ((size(i.payments) != 1))
350350 then true
351351 else (i.payments[0].amount == 0))
352352 then throw("1 payment has to be attached")
353353 else {
354354 let assetIdStr = getAssetString(i.payments[0].assetId)
355355 let assetAmount = i.payments[0].amount
356356 let $t01128611353 = getActualRate(assetIdStr, "bRate")
357357 let bRate = $t01128611353._1
358358 let ratesRecalcResult = $t01128611353._2
359359 let amount = fraction(assetAmount, Scale16, bRate, CEILING)
360360 let address = toString(i.caller)
361361 let assetSupplied = tryGetInteger(("total_supplied_" + assetIdStr))
362362 let assetBorrowed = tryGetInteger(("total_borrowed_" + assetIdStr))
363363 let userAssetBorrowed = tryGetInteger(((address + "_borrowed_") + assetIdStr))
364364 let amountLeft = (userAssetBorrowed - amount)
365365 let repayAmount = if ((amountLeft >= 0))
366366 then amount
367367 else userAssetBorrowed
368368 if ((indexOf(tryGetString("setup_tokens"), assetIdStr) == unit))
369369 then throw("this asset is not supported by the market")
370370 else (([IntegerEntry(((address + "_borrowed_") + assetIdStr), (userAssetBorrowed - repayAmount)), IntegerEntry(("total_borrowed_" + assetIdStr), (assetBorrowed - repayAmount))] ++ ratesRecalcResult) ++ (if ((amountLeft >= 0))
371371 then nil
372372 else [ScriptTransfer(i.caller, -(amountLeft), i.payments[0].assetId)]))
373373 }
374374
375375
376376
377377 @Callable(i)
378378 func stakeTokenAll (assetIdStr) = if ((i.caller != this))
379379 then throw("only for internal smart contract invocations")
380380 else {
381381 let amount = getBalance(assetIdStr)
382382 let inv = invoke(this, "stakeToken", [assetIdStr, amount], nil)
383383 if ((inv == inv))
384384 then nil
385385 else throw("Strict value is not equal to itself.")
386386 }
387387
388388
389389
390390 @Callable(i)
391391 func stakeToken (assetIdStr,amount) = if ((i.caller != this))
392392 then throw("only for internal smart contract invocations")
393393 else if ((assetIdStr == "DG2xFkPdDwKUoBkzGAhQtLpSGzfXLiCYPEzeKH2Ad24p"))
394394 then {
395395 let amountStaked = tryGetInteger("autostake_amount_DG2xFkPdDwKUoBkzGAhQtLpSGzfXLiCYPEzeKH2Ad24p")
396396 let inv = invoke(Address(base58'3PNikM6yp4NqcSU8guxQtmR5onr2D4e8yTJ'), "stake", nil, [AttachedPayment(base58'DG2xFkPdDwKUoBkzGAhQtLpSGzfXLiCYPEzeKH2Ad24p', amount)])
397397 if ((inv == inv))
398398 then [IntegerEntry("autostake_amount_DG2xFkPdDwKUoBkzGAhQtLpSGzfXLiCYPEzeKH2Ad24p", (amountStaked + amount))]
399399 else throw("Strict value is not equal to itself.")
400400 }
401401 else if ((assetIdStr == "8t4DPWTwPzpatHA9AkTxWAB47THnYzBsDnoY7fQqbG91"))
402402 then {
403403 let amountStaked = tryGetInteger("autostake_amount_8t4DPWTwPzpatHA9AkTxWAB47THnYzBsDnoY7fQqbG91")
404404 let inv = invoke(Address(base58'3PQTM38wDmAY9vWonK6ha7QL3PAycLz5oPP'), "stake", nil, [AttachedPayment(base58'8t4DPWTwPzpatHA9AkTxWAB47THnYzBsDnoY7fQqbG91', amount)])
405405 if ((inv == inv))
406406 then [IntegerEntry("autostake_amount_8t4DPWTwPzpatHA9AkTxWAB47THnYzBsDnoY7fQqbG91", (amountStaked + amount))]
407407 else throw("Strict value is not equal to itself.")
408408 }
409409 else if ((assetIdStr == "At8D6NFFpheCbvKVnjVoeLL84Eo8NZn6ovManxfLaFWL"))
410410 then {
411411 let amountStaked = tryGetInteger("autostake_amount_At8D6NFFpheCbvKVnjVoeLL84Eo8NZn6ovManxfLaFWL")
412412 let inv = invoke(Address(base58'3PBiotFpqjRMkkeFBccnQNUXUopy7KFez5C'), "stake", nil, [AttachedPayment(base58'At8D6NFFpheCbvKVnjVoeLL84Eo8NZn6ovManxfLaFWL', amount)])
413413 if ((inv == inv))
414414 then [IntegerEntry("autostake_amount_At8D6NFFpheCbvKVnjVoeLL84Eo8NZn6ovManxfLaFWL", (amountStaked + amount))]
415415 else throw("Strict value is not equal to itself.")
416416 }
417417 else nil
418418
419419
420420
421421 @Callable(i)
422422 func unstakeToken (assetIdStr,amount) = if ((i.caller != this))
423423 then throw("only for internal smart contract invocations")
424424 else if ((assetIdStr == "8t4DPWTwPzpatHA9AkTxWAB47THnYzBsDnoY7fQqbG91"))
425425 then {
426426 let amountStaked = tryGetInteger("autostake_amount_8t4DPWTwPzpatHA9AkTxWAB47THnYzBsDnoY7fQqbG91")
427427 let inv = invoke(Address(base58'3PQTM38wDmAY9vWonK6ha7QL3PAycLz5oPP'), "unStake", [amount], nil)
428428 if ((inv == inv))
429429 then [IntegerEntry("autostake_amount_8t4DPWTwPzpatHA9AkTxWAB47THnYzBsDnoY7fQqbG91", (amountStaked - amount))]
430430 else throw("Strict value is not equal to itself.")
431431 }
432432 else if ((assetIdStr == "At8D6NFFpheCbvKVnjVoeLL84Eo8NZn6ovManxfLaFWL"))
433433 then {
434434 let amountStaked = tryGetInteger("autostake_amount_At8D6NFFpheCbvKVnjVoeLL84Eo8NZn6ovManxfLaFWL")
435435 let inv = invoke(Address(base58'3PBiotFpqjRMkkeFBccnQNUXUopy7KFez5C'), "unstake", [amount], nil)
436436 if ((inv == inv))
437437 then {
438438 let bal0 = getBalance("At8D6NFFpheCbvKVnjVoeLL84Eo8NZn6ovManxfLaFWL")
439439 if ((bal0 == bal0))
440440 then {
441441 let inv2 = invoke(Address(base58'3PQrVbTVpqXHqpVKftkNdjy3zZAh4dsRzN6'), "gnsbtRewardsSYSREADONLY", [toString(this)], nil)
442442 if ((inv2 == inv2))
443443 then {
444444 let topupRewards = match inv2 {
445445 case x: List[Any] =>
446446 let secondEl = x[1]
447447 match secondEl {
448448 case secondEl: String =>
449449 let usdnValue = parseIntValue(split(split(secondEl, "_")[1], ":")[1])
450450 let wavesValue = parseIntValue(split(split(secondEl, "_")[0], ":")[1])
451451 if (if ((usdnValue != 0))
452452 then true
453453 else (wavesValue != 0))
454454 then {
455455 let usdnBal0 = getBalance("DG2xFkPdDwKUoBkzGAhQtLpSGzfXLiCYPEzeKH2Ad24p")
456456 if ((usdnBal0 == usdnBal0))
457457 then {
458458 let wavesBal0 = getBalance("WAVES")
459459 if ((wavesBal0 == wavesBal0))
460460 then {
461461 let inv3 = invoke(Address(base58'3PBiotFpqjRMkkeFBccnQNUXUopy7KFez5C'), "claimRewards", nil, nil)
462462 if ((inv3 == inv3))
463463 then {
464464 let wavesBal1 = getBalance("WAVES")
465465 if ((wavesBal1 == wavesBal1))
466466 then {
467467 let inv4 = invoke(Address(base58'3PLiXyywNThdvf3vVEUxwc7TJTucjZvuegh'), "swap", ["DG2xFkPdDwKUoBkzGAhQtLpSGzfXLiCYPEzeKH2Ad24p", 0], [AttachedPayment(unit, (wavesBal1 - wavesBal0))])
468468 if ((inv4 == inv4))
469469 then {
470470 let usdnBal1 = getBalance("DG2xFkPdDwKUoBkzGAhQtLpSGzfXLiCYPEzeKH2Ad24p")
471471 if ((usdnBal1 == usdnBal1))
472472 then {
473473 let inv5 = invoke(Address(base58'3P7r93vXHuusageNJVGwzqaz3WMotAu49Yz'), "swap", ["At8D6NFFpheCbvKVnjVoeLL84Eo8NZn6ovManxfLaFWL", 0], [AttachedPayment(base58'DG2xFkPdDwKUoBkzGAhQtLpSGzfXLiCYPEzeKH2Ad24p', (usdnBal1 - usdnBal0))])
474474 if ((inv5 == inv5))
475475 then {
476476 let inv6 = invoke(this, "addInterest", ["At8D6NFFpheCbvKVnjVoeLL84Eo8NZn6ovManxfLaFWL", (getBalance("At8D6NFFpheCbvKVnjVoeLL84Eo8NZn6ovManxfLaFWL") - bal0)], nil)
477477 if ((inv6 == inv6))
478478 then 2
479479 else throw("Strict value is not equal to itself.")
480480 }
481481 else throw("Strict value is not equal to itself.")
482482 }
483483 else throw("Strict value is not equal to itself.")
484484 }
485485 else throw("Strict value is not equal to itself.")
486486 }
487487 else throw("Strict value is not equal to itself.")
488488 }
489489 else throw("Strict value is not equal to itself.")
490490 }
491491 else throw("Strict value is not equal to itself.")
492492 }
493493 else throw("Strict value is not equal to itself.")
494494 }
495495 else 1
496496 case _ =>
497497 1
498498 }
499499 case _ =>
500500 0
501501 }
502502 if ((topupRewards == topupRewards))
503503 then [IntegerEntry("autostake_amount_At8D6NFFpheCbvKVnjVoeLL84Eo8NZn6ovManxfLaFWL", (amountStaked - amount))]
504504 else throw("Strict value is not equal to itself.")
505505 }
506506 else throw("Strict value is not equal to itself.")
507507 }
508508 else throw("Strict value is not equal to itself.")
509509 }
510510 else throw("Strict value is not equal to itself.")
511511 }
512512 else nil
513513
514514
515515
516516 @Callable(i)
517517 func addInterest (assetIdStr,amount) = if ((i.caller != this))
518518 then throw("only for self invocation")
519519 else {
520520 let earned = tryGetInteger(("autostake_lastEarned_" + assetIdStr))
521521 let lastHeight = tryGetInteger(("autostake_lastBlock_" + assetIdStr))
522522 let cleanAmount = fraction(amount, 80, 100)
523523 let stateChanges = if (if ((lastHeight == height))
524524 then true
525525 else (amount == 0))
526526 then nil
527527 else [IntegerEntry(("autostake_preLastEarned_" + assetIdStr), earned), IntegerEntry(("autostake_preLastBlock_" + assetIdStr), lastHeight), IntegerEntry(("autostake_lastEarned_" + assetIdStr), (earned + cleanAmount)), IntegerEntry(("autostake_lastBlock_" + assetIdStr), height)]
528528 (stateChanges ++ [IntegerEntry((assetIdStr + "_sRate"), (tryGetInteger((assetIdStr + "_sRate")) + fraction(Scale16, cleanAmount, tryGetInteger(("total_supplied_" + assetIdStr)))))])
529529 }
530530
531531
532532
533533 @Callable(i)
534534 func addInterestEXTERNAL () = {
535535 let amount = fraction(i.payments[0].amount, 80, 100)
536536 let assetId = i.payments[0].assetId
537537 let assetIdStr = getAssetString(assetId)
538538 let earned = tryGetInteger(("autostake_lastEarned_" + assetIdStr))
539539 let lastHeight = tryGetInteger(("autostake_lastBlock_" + assetIdStr))
540540 let stateChanges = if (if ((lastHeight == height))
541541 then true
542542 else (amount == 0))
543543 then nil
544544 else [IntegerEntry(("autostake_preLastEarned_" + assetIdStr), earned), IntegerEntry(("autostake_preLastBlock_" + assetIdStr), lastHeight), IntegerEntry(("autostake_lastEarned_" + assetIdStr), (earned + amount)), IntegerEntry(("autostake_lastBlock_" + assetIdStr), height)]
545545 (stateChanges ++ [IntegerEntry((assetIdStr + "_sRate"), (tryGetInteger((assetIdStr + "_sRate")) + fraction(Scale16, amount, tryGetInteger(("total_supplied_" + assetIdStr)))))])
546546 }
547547
548548
549549
550550 @Callable(i)
551551 func preInit (tokens,ltvs,lts,penalties) = {
552552 func f (accum,token) = (accum ++ [IntegerEntry((token + "_bRate"), Scale16), IntegerEntry((token + "_sRate"), Scale16)])
553553
554554 if ((i.caller != this))
555555 then throw("admin only")
556556 else {
557557 let rates = {
558558 let $l = split(tokens, ",")
559559 let $s = size($l)
560560 let $acc0 = nil
561561 func $f0_1 ($a,$i) = if (($i >= $s))
562562 then $a
563563 else f($a, $l[$i])
564564
565565 func $f0_2 ($a,$i) = if (($i >= $s))
566566 then $a
567567 else throw("List size exceeds 6")
568568
569569 $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6)
570570 }
571571 ([StringEntry("setup_tokens", tokens), StringEntry("setup_ltvs", ltvs), StringEntry("setup_lts", lts), StringEntry("setup_penalties", penalties), BooleanEntry("setup_active", true)] ++ rates)
572572 }
573573 }
574574
575575
576576
577577 @Callable(i)
578578 func updateParameter (key,val) = if (if ((i.caller != this))
579579 then (i.caller != Address(base58'3P3o9cLTV2u9N4nYNKRYL6gy6cUEU9DwXW8'))
580580 else false)
581581 then throw("admin only")
582582 else [IntegerEntry(key, parseIntValue(val))]
583583
584584
585585
586586 @Callable(i)
587587 func updateString (key,val) = if (if ((i.caller != this))
588588 then (i.caller != Address(base58'3P3o9cLTV2u9N4nYNKRYL6gy6cUEU9DwXW8'))
589589 else false)
590590 then throw("admin only")
591591 else [StringEntry(key, val)]
592592
593593
594594
595595 @Callable(i)
596596 func claimToReserveFund (debug) = {
597597 let assets = getMarketAssets()
598598 let rates = getActualRate(assets[0], "sRate")._2
599599 let li = [0, 1, 2, 3, 4, 5]
600600 func f (accum,n) = if ((n >= size(assets)))
601601 then accum
602602 else {
603603 let assetIdStr = assets[n]
604604 let autostakeAmount = tryGetString(("autostake_amount_" + assetIdStr))
605605 let amount = ((((getBalance(assetIdStr) + tryGetInteger(("autostake_amount_" + assetIdStr))) + (if ((autostakeAmount != ""))
606606 then parseIntValue(autostakeAmount)
607607 else 0)) + fraction(tryGetInteger(("total_borrowed_" + assetIdStr)), rates[((n * 3) + 1)].value, Scale16)) - fraction(tryGetInteger(("total_supplied_" + assetIdStr)), rates[(n * 3)].value, Scale16))
608608 let inv = if ((tryGetInteger(("autostake_amount_" + assetIdStr)) > 0))
609609 then invoke(this, "unstakeToken", [assetIdStr, max([amount, 0])], nil)
610610 else 0
611611 if ((inv == inv))
612612 then (accum ++ [amount])
613613 else throw("Strict value is not equal to itself.")
614614 }
615615
616616 let parameter = {
617617 let $l = li
618618 let $s = size($l)
619619 let $acc0 = nil
620620 func $f0_1 ($a,$i) = if (($i >= $s))
621621 then $a
622622 else f($a, $l[$i])
623623
624624 func $f0_2 ($a,$i) = if (($i >= $s))
625625 then $a
626626 else throw("List size exceeds 6")
627627
628628 $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6)
629629 }
630630 func f2 (accum,n) = if ((n >= size(assets)))
631631 then accum
632632 else {
633633 let assetIdStr = assets[n]
634634 (accum ++ [ScriptTransfer(reserveFundAddress, max([parameter[n], 0]), getAssetBytes(assetIdStr))])
635635 }
636636
637637 if (debug)
638638 then throw(liIntToStr(parameter))
639639 else $Tuple2({
640640 let $l = li
641641 let $s = size($l)
642642 let $acc0 = nil
643643 func $f1_1 ($a,$i) = if (($i >= $s))
644644 then $a
645645 else f2($a, $l[$i])
646646
647647 func $f1_2 ($a,$i) = if (($i >= $s))
648648 then $a
649649 else throw("List size exceeds 6")
650650
651651 $f1_2($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($acc0, 0), 1), 2), 3), 4), 5), 6)
652652 }, parameter)
653653 }
654654
655655
656656
657657 @Callable(i)
658658 func reSetup (assetIdStr) = {
659659 let lastResetup = tryGetInteger("resetup_lastUpdate")
660660 if ((dayBlocks > (height - lastResetup)))
661661 then throw("can be updated only once per day")
662662 else {
663663 let lts = split(tryGetString("setup_lts"), ",")
664664 let assets = getMarketAssets()
665665 let ur = getUr(assetIdStr)
666666 let tempLT = tryGetInteger((("setup_" + assetIdStr) + "_tempLT"))
667667 let lt = parseIntValue(assets[value(indexOf(assets, assetIdStr))])
668668 if ((ur > 90000000))
669669 then [IntegerEntry((("setup_" + assetIdStr) + "_tempLT"), fraction(tempLT, 9975, 10000))]
670670 else if (if ((lt > tempLT))
671671 then (90000000 > ur)
672672 else false)
673673 then [IntegerEntry((("setup_" + assetIdStr) + "_tempLT"), fraction(tempLT, 10025, 10000))]
674674 else nil
675675 }
676676 }
677677
678678
679679
680680 @Callable(i)
681681 func shutdown (shutdown) = if ((indexOf(shutdownWhitelist, i.caller.bytes) == unit))
682682 then throw("user not in a whitelist")
683683 else [BooleanEntry("setup_active", !(shutdown))]
684684
685685
686686
687687 @Callable(i)
688688 func liquidate (debug,address,assetAmount,sAssetIdStr,bAssetIdStr,routeStr) = if (!(verifyLiquidatorRights(i.caller)))
689689 then throw("temporarily available for whitelist only")
690690 else if (!(tryGetBoolean("setup_active")))
691691 then throw("market is stopped")
692692 else {
693693 let userCollateral = calcUserCollateral(address)
694694 if ((userCollateral == userCollateral))
695695 then {
696696 let $t02427324335 = getActualRate(sAssetIdStr, "sRate")
697697 let sRate = $t02427324335._1
698698 let ratesResult = $t02427324335._2
699699 let $t02434024409 = getActualRate(bAssetIdStr, "bRate")
700700 let bRate = $t02434024409._1
701701 let ratesRecalcResult2 = $t02434024409._2
702702 let sAssetAmount = fraction(assetAmount, Scale16, sRate)
703703 let currentSPosition = tryGetInteger(((address + "_supplied_") + sAssetIdStr))
704704 let currentBPositionVal = tryGetInteger(((address + "_borrowed_") + bAssetIdStr))
705705 let currentBPosition = if ((currentBPositionVal > 0))
706706 then currentBPositionVal
707707 else throw("user has no borrow in this token")
708708 if ((userCollateral > 0))
709709 then throw("user can't be liquidated")
710710 else if ((sAssetAmount > currentSPosition))
711711 then throw("position to liquidate is bigger than user's supply")
712712 else {
713713 let balance0Before = getBalance(sAssetIdStr)
714714 if ((balance0Before == balance0Before))
715715 then {
716716 let balance1Before = getBalance(bAssetIdStr)
717717 if ((balance1Before == balance1Before))
718718 then {
719719 let exchangeInvoke = invoke(aggregatorAddress, "swap", [routeStr, 0], [AttachedPayment(getAssetBytes(sAssetIdStr), assetAmount)])
720720 if ((exchangeInvoke == exchangeInvoke))
721721 then {
722722 let asset0Sold = (balance0Before - getBalance(sAssetIdStr))
723723 if ((asset0Sold == asset0Sold))
724724 then {
725725 let asset1Bought = (getBalance(bAssetIdStr) - balance1Before)
726726 if ((asset1Bought == asset1Bought))
727727 then {
728728 let asset0Price = getTokenPrice(sAssetIdStr)._1
729729 let asset0Scale = calcAssetScale(sAssetIdStr)
730730 let asset0Usd = fraction(asset0Sold, asset0Price, asset0Scale)
731731 let asset1Price = getTokenPrice(bAssetIdStr)._2
732732 let asset1Scale = calcAssetScale(bAssetIdStr)
733733 let asset1Usd = fraction(asset1Bought, asset1Price, asset1Scale)
734734 let penalty = parseIntValue(split(tryGetString("setup_penalties"), ",")[value(indexOf(getMarketAssets(), bAssetIdStr))])
735735 let liquidationProfit = (asset1Usd - fraction(asset0Usd, (Scale8 - penalty), Scale8))
736736 let sAssetChange = fraction(asset0Sold, Scale16, sRate)
737737 let bAssetChange = fraction(fraction(asset1Bought, Scale16, bRate), (Scale8 - fraction(liquidationProfit, Scale8, asset1Usd)), Scale8)
738738 if ((asset0Sold > assetAmount))
739739 then throw("more assets exchanged than expected")
740740 else if ((0 > liquidationProfit))
741741 then throw("price impact is bigger than liquidation penalty")
742742 else [IntegerEntry(((address + "_supplied_") + sAssetIdStr), (currentSPosition - sAssetChange)), IntegerEntry(((address + "_borrowed_") + bAssetIdStr), (currentBPosition - bAssetChange)), IntegerEntry(("total_supplied_" + sAssetIdStr), (tryGetInteger(("total_supplied_" + sAssetIdStr)) - sAssetChange)), IntegerEntry(("total_borrowed_" + bAssetIdStr), (tryGetInteger(("total_borrowed_" + bAssetIdStr)) - bAssetChange))]
743743 }
744744 else throw("Strict value is not equal to itself.")
745745 }
746746 else throw("Strict value is not equal to itself.")
747747 }
748748 else throw("Strict value is not equal to itself.")
749749 }
750750 else throw("Strict value is not equal to itself.")
751751 }
752752 else throw("Strict value is not equal to itself.")
753753 }
754754 }
755755 else throw("Strict value is not equal to itself.")
756756 }
757757
758758
759759
760760 @Callable(i)
761761 func liquidateV2 (debug,address,sAssetIdStr) = if (!(verifyLiquidatorRights(i.caller)))
762762 then throw("temporarily available for whitelist only")
763763 else if (!(tryGetBoolean("setup_active")))
764764 then throw("market is stopped")
765765 else {
766766 let bAssetId = i.payments[0].assetId
767767 let bAssetIdStr = getAssetString(bAssetId)
768768 let bAssetAmount = i.payments[0].amount
769769 let userCollateral = calcUserCollateral(address)
770770 if ((userCollateral == userCollateral))
771771 then if ((userCollateral > 0))
772772 then throw("user can't be liquidated")
773773 else {
774774 let marketAssets = getMarketAssets()
775775 let asset1Num = value(indexOf(marketAssets, bAssetIdStr))
776776 let asset0Num = value(indexOf(marketAssets, sAssetIdStr))
777777 let $t02756427626 = getActualRate(bAssetIdStr, "bRate")
778778 let bRate = $t02756427626._1
779779 let ratesResult = $t02756427626._2
780780 let asset1Price = getTokenPrice(bAssetIdStr)._2
781781 let asset1Scale = calcAssetScale(bAssetIdStr)
782782 let bAmountUsd = fraction(bAssetAmount, asset1Price, asset1Scale)
783783 let penalty = parseIntValue(value(split(tryGetString("setup_penalties"), ",")[asset1Num]))
784784 let asset0Price = getTokenPrice(sAssetIdStr)._1
785785 let asset0Scale = calcAssetScale(sAssetIdStr)
786786 let sAmountUsd = fraction(bAmountUsd, (Scale8 + penalty), Scale8)
787787 let sAssetAmount = fraction(sAmountUsd, asset0Scale, asset0Price)
788788 let bAmount = fraction(bAssetAmount, Scale16, bRate)
789789 let sAmount = fraction(sAssetAmount, Scale16, ratesResult[((asset0Num * 3) + 1)].value)
790790 let currentSPosition = tryGetInteger(((address + "_supplied_") + sAssetIdStr))
791791 let currentBPositionVal = tryGetInteger(((address + "_borrowed_") + bAssetIdStr))
792792 let currentBPosition = if ((currentBPositionVal > 0))
793793 then currentBPositionVal
794794 else throw("user has no borrow in this token")
795795 if ((sAmount > currentSPosition))
796796 then throw("position to liquidate is bigger than user's supply")
797797 else if (debug)
798798 then throw("liquidation will pass")
799799 else ([ScriptTransfer(i.caller, sAssetAmount, getAssetBytes(sAssetIdStr)), IntegerEntry(((address + "_supplied_") + sAssetIdStr), (currentSPosition - sAmount)), IntegerEntry(((address + "_borrowed_") + bAssetIdStr), (currentBPosition - bAmount)), IntegerEntry(("total_supplied_" + sAssetIdStr), (tryGetInteger(("total_supplied_" + sAssetIdStr)) - sAmount)), IntegerEntry(("total_borrowed_" + bAssetIdStr), (tryGetInteger(("total_borrowed_" + bAssetIdStr)) - bAmount))] ++ ratesResult)
800800 }
801801 else throw("Strict value is not equal to itself.")
802802 }
803803
804804
805805
806806 @Callable(i)
807807 func getUserCollateral (debug,address,minusBorrowed,afterChange) = {
808808 let assets = getMarketAssets()
809809 let ltvs = split(tryGetString("setup_ltvs"), ",")
810810 let lts = split(tryGetString("setup_lts"), ",")
811811 let rates = getActualRate(assets[0], "sRate")._2
812812 let changeHandler = split(afterChange, ",")
813813 func f (accum,next) = if ((next >= size(assets)))
814814 then accum
815815 else {
816816 let userSupplied = tryGetInteger(((address + "_supplied_") + assets[next]))
817817 let userBorrowed = tryGetInteger(((address + "_borrowed_") + assets[next]))
818818 let needTokenAccounting = if ((afterChange == ""))
819819 then if (if ((userBorrowed != 0))
820820 then true
821821 else (userSupplied != 0))
822822 then true
823823 else false
824824 else true
825825 if (needTokenAccounting)
826826 then {
827827 let assetScale = calcAssetScale(assets[next])
828828 let assetPrice = getTokenPrice(assets[next])
829829 ((accum + fraction(fraction(fraction((userSupplied + (if (if (if ((afterChange != ""))
830830 then (changeHandler[0] == assets[next])
831831 else false)
832832 then (changeHandler[1] == "supplied")
833833 else false)
834834 then parseIntValue(changeHandler[2])
835835 else 0)), rates[(next * 3)].value, Scale16), parseIntValue(ltvs[next]), Scale8), assetPrice._1, assetScale)) - (if (minusBorrowed)
836836 then fraction(fraction(fraction((userBorrowed + (if (if (if ((afterChange != ""))
837837 then (changeHandler[0] == assets[next])
838838 else false)
839839 then (changeHandler[1] == "borrowed")
840840 else false)
841841 then parseIntValue(changeHandler[2])
842842 else 0)), rates[((next * 3) + 1)].value, Scale16), Scale8, parseIntValue(lts[next])), assetPrice._2, assetScale)
843843 else 0))
844844 }
845845 else accum
846846 }
847847
848848 let result = {
849849 let $l = [0, 1, 2, 3, 4, 5]
850850 let $s = size($l)
851851 let $acc0 = 0
852852 func $f0_1 ($a,$i) = if (($i >= $s))
853853 then $a
854854 else f($a, $l[$i])
855855
856856 func $f0_2 ($a,$i) = if (($i >= $s))
857857 then $a
858858 else throw("List size exceeds 6")
859859
860860 $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6)
861861 }
862862 if (debug)
863863 then throw(toString(result))
864864 else $Tuple2(rates, result)
865865 }
866866
867867
868868
869869 @Callable(i)
870870 func getPrices (debug) = {
871871 let assets = getMarketAssets()
872872 func f (accum,next) = if ((next >= size(assets)))
873873 then accum
874874 else {
875875 let assetPrice = getTokenPrice(assets[next])
876876 ((((accum + toString(assetPrice._1)) + ",") + toString(assetPrice._2)) + "|")
877877 }
878878
879879 let result = {
880880 let $l = [0, 1, 2, 3, 4, 5]
881881 let $s = size($l)
882882 let $acc0 = ""
883883 func $f0_1 ($a,$i) = if (($i >= $s))
884884 then $a
885885 else f($a, $l[$i])
886886
887887 func $f0_2 ($a,$i) = if (($i >= $s))
888888 then $a
889889 else throw("List size exceeds 6")
890890
891891 $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6)
892892 }
893893 if (debug)
894894 then throw(result)
895895 else $Tuple2(nil, result)
896896 }
897897
898898
899899
900900 @Callable(i)
901901 func calculateUtilizationRatio (assetIdStr,debug) = if (debug)
902902 then throw(toString(getUr(assetIdStr)))
903903 else $Tuple2(nil, getUr(assetIdStr))
904904
905905
906906
907907 @Callable(i)
908908 func calculateOutdatedUR (assetIdStr,debug) = if (debug)
909909 then throw(toString(getOutdatedUr(assetIdStr)))
910910 else $Tuple2(nil, getOutdatedUr(assetIdStr))
911911
912912
913913
914914 @Callable(i)
915915 func calculateTokenRates (debug) = {
916916 func f (accum,assetIdStr) = {
917917 let rates = tokenRatesRecalc(assetIdStr)
918918 $Tuple2(((((accum._1 + toString(rates[1].value)) + "|") + toString(rates[0].value)) + ","), (accum._2 ++ rates))
919919 }
920920
921921 let parameter = {
922922 let $l = getMarketAssets()
923923 let $s = size($l)
924924 let $acc0 = $Tuple2("", nil)
925925 func $f0_1 ($a,$i) = if (($i >= $s))
926926 then $a
927927 else f($a, $l[$i])
928928
929929 func $f0_2 ($a,$i) = if (($i >= $s))
930930 then $a
931931 else throw("List size exceeds 6")
932932
933933 $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6)
934934 }
935935 if (debug)
936936 then throw(parameter._1)
937937 else $Tuple2(parameter._2, parameter._1)
938938 }
939939
940940
941941
942942 @Callable(i)
943943 func calculateTokensInterest (debug) = {
944944 func f (accum,assetIdStr) = {
945945 let rate = fraction(getInterest(assetIdStr), dayBlocks, Scale8)
946946 ((accum + toString(rate)) + ",")
947947 }
948948
949949 let parameter = {
950950 let $l = getMarketAssets()
951951 let $s = size($l)
952952 let $acc0 = ""
953953 func $f0_1 ($a,$i) = if (($i >= $s))
954954 then $a
955955 else f($a, $l[$i])
956956
957957 func $f0_2 ($a,$i) = if (($i >= $s))
958958 then $a
959959 else throw("List size exceeds 6")
960960
961961 $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6)
962962 }
963963 if (debug)
964964 then throw(parameter)
965965 else $Tuple2(nil, parameter)
966966 }
967967
968968
969969 @Verifier(tx)
970970 func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
971971

github/deemru/w8io/169f3d6 
107.53 ms