tx · 91JUGXmES8EWKB4QEFhDqsuCEbJKsBMJUxYCLT2krad1

3MzqQ3HKdkHmJmk9mDhAeAMxmK5D2ztdAe5:  -0.14000000 Waves

2023.01.19 16:04 [2411850] smart account 3MzqQ3HKdkHmJmk9mDhAeAMxmK5D2ztdAe5 > SELF 0.00000000 Waves

{ "type": 13, "id": "91JUGXmES8EWKB4QEFhDqsuCEbJKsBMJUxYCLT2krad1", "fee": 14000000, "feeAssetId": null, "timestamp": 1674133533289, "version": 2, "chainId": 84, "sender": "3MzqQ3HKdkHmJmk9mDhAeAMxmK5D2ztdAe5", "senderPublicKey": "FEnkfXnQZkk1FmjhH6QZqyK2taN6ngnZBexevKxouLUM", "proofs": [ "2ctY1JTAvWqiKZFLE8B7axSqEQQrKS6aqeEg9firNMu6iHHrFeqCkNUbVpzNxoiVhJoLdAqzAnz7yUEm8hcskdKp", "2pQNpnmUZPXSoE9y4FLWF3ZGe1aovfMbzinVr4otns24hG4NkLBfkxcAejw4bPpUczqjKau5JpS1RhDbTbKg9Dbz" ], "script": "base64:BgJKCAISBgoEAhgREhIGCgQCGBESEgYKBAIYERISBgoEAhgREhIGCgQCGBESEgYKBAIYERISBgoEAhgREhIGCgQCGBESEgYKBAIYERJOAAd2ZXJzaW9uAgUxLjAuMAAIa1ZlcnNpb24CB3ZlcnNpb24AB2tBY3RpdmUCBmFjdGl2ZQALa0RlcHJlY2F0ZWQCC2RlcHJlY2F0ZWRfAAlrQXNzZXRJZEECCkFfYXNzZXRfaWQACWtBc3NldElkQgIKQl9hc3NldF9pZAAJa0JhbGFuY2VBAg9BX2Fzc2V0X2JhbGFuY2UACWtCYWxhbmNlQgIPQl9hc3NldF9iYWxhbmNlAA1rQmFsYW5jZUluaXRBAgxBX2Fzc2V0X2luaXQADWtCYWxhbmNlSW5pdEICDEJfYXNzZXRfaW5pdAANa1NoYXJlQXNzZXRJZAIOc2hhcmVfYXNzZXRfaWQAEWtTaGFyZUFzc2V0U3VwcGx5AhJzaGFyZV9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wAAAMJAAACBQZzdGFrZTIFBnN0YWtlMgkAlAoCBQNuaWwJAJQKAgkAzAgCCQEMSW50ZWdlckVudHJ5AgUJa0JhbGFuY2VBCQBkAgUIYmFsYW5jZUEFDWFtb3VudEVucm9sbEEJAMwIAgkBDEludGVnZXJFbnRyeQIFCWtCYWxhbmNlQgkAZAIFCGJhbGFuY2VCBQ1hbW91bnRFbnJvbGxCBQNuaWwFA25pbAkAAgECJFN0cmljdCB2YWx1ZSBpcyBub3QgZXF1YWwgdG8gaXRzZWxmLgkAAgECJFN0cmljdCB2YWx1ZSBpcyBub3QgZXF1YWwgdG8gaXRzZWxmLgkAAgECJFN0cmljdCB2YWx1ZSBpcyBub3QgZXF1YWwgdG8gaXRzZWxmLgECdHgBBnZlcmlmeQAEE211bHRpU2lnbmVkQnlBZG1pbnMEEmFkbWluUHViS2V5MVNpZ25lZAMJAPQDAwgFAnR4CWJvZHlCeXRlcwkAkQMCCAUCdHgGcHJvb2ZzAAAFDGFkbWluUHViS2V5MQABAAAEEmFkbWluUHViS2V5MlNpZ25lZAMJAPQDAwgFAnR4CWJvZHlCeXRlcwkAkQMCCAUCdHgGcHJvb2ZzAAEFDGFkbWluUHViS2V5MgABAAAEEmFkbWluUHViS2V5M1NpZ25lZAMJAPQDAwgFAnR4CWJvZHlCeXRlcwkAkQMCCAUCdHgGcHJvb2ZzAAIFDGFkbWluUHViS2V5MwABAAAJAGcCCQBkAgkAZAIFEmFkbWluUHViS2V5MVNpZ25lZAUSYWRtaW5QdWJLZXkyU2lnbmVkBRJhZG1pblB1YktleTNTaWduZWQAAgUTbXVsdGlTaWduZWRCeUFkbWluc+hU+uA=", "height": 2411850, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 5QhYqJ8q8Mh2ZoW6hBmMHTxoAAUXpkZk1o9jkKeXTzGm Next: Gsf5XiGstXo92tXDKVhEMD7f8rpo3adZQ4ZCdYs65PYY Diff:
OldNewDifferences
66 let kVersion = "version"
77
88 let kActive = "active"
9+
10+let kDeprecated = "deprecated_"
911
1012 let kAssetIdA = "A_asset_id"
1113
165167
166168 func getAssetInfo (assetId) = match assetId {
167169 case id: String|ByteVector =>
168- let $t039394111 = match id {
170+ let $t039714143 = match id {
169171 case aId: ByteVector =>
170172 $Tuple2(toBase58String(aId), aId)
171173 case aId: String =>
173175 case _ =>
174176 throw("Match error")
175177 }
176- let stringId = $t039394111._1
177- let bytesId = $t039394111._2
178+ let stringId = $t039714143._1
179+ let bytesId = $t039714143._2
178180 let info = valueOrErrorMessage(assetInfo(bytesId), (("Asset " + stringId) + " doesn't exist"))
179181 $Tuple3(stringId, info.name, info.decimals)
180182 case waves: Unit =>
253255 else throw("DApp is not registered pool")
254256
255257
258+func isDepricated (poolAddress) = if (!(valueOrElse(getBoolean(oracle, (kDeprecated + poolAddress)), false)))
259+ then unit
260+ else throw("Pool is deprecated. Only withdraw action allowed.")
261+
262+
256263 func getPoolBalances (pool,assetIdA,assetIdB) = {
257264 let balanceA = getIntegerValue(pool, kBalanceA)
258265 let balanceB = getIntegerValue(pool, kBalanceB)
290297 @Callable(i)
291298 func init (callerBytes,args,pAmounts,pAssetIds) = {
292299 let caller = Address(callerBytes)
293- let $t090769154 = $Tuple2(pAmounts[0], parsePaymentAsset(pAssetIds[0]))
294- let pmtAmountA = $t090769154._1
295- let pmtAssetIdA = $t090769154._2
296- let $t091599237 = $Tuple2(pAmounts[1], parsePaymentAsset(pAssetIds[1]))
297- let pmtAmountB = $t091599237._1
298- let pmtAssetIdB = $t091599237._2
300+ let $t092919369 = $Tuple2(pAmounts[0], parsePaymentAsset(pAssetIds[0]))
301+ let pmtAmountA = $t092919369._1
302+ let pmtAssetIdA = $t092919369._2
303+ let $t093749452 = $Tuple2(pAmounts[1], parsePaymentAsset(pAssetIds[1]))
304+ let pmtAmountB = $t093749452._1
305+ let pmtAssetIdB = $t093749452._2
299306 if (!(containsElement([adminPubKey1, adminPubKey2, adminPubKey3, adminInvokePubKey], i.originCallerPublicKey)))
300307 then throw("Only admin can call this function")
301308 else if ((size(args) != 1))
305312 else if ((pmtAssetIdA == pmtAssetIdB))
306313 then throw("Assets must be different")
307314 else {
308- let $t096729749 = getAssetInfo(pmtAssetIdA)
309- let pmtStrAssetIdA = $t096729749._1
310- let pmtAssetNameA = $t096729749._2
311- let pmtDecimalsA = $t096729749._3
312- let $t097589835 = getAssetInfo(pmtAssetIdB)
313- let pmtStrAssetIdB = $t097589835._1
314- let pmtAssetNameB = $t097589835._2
315- let pmtDecimalsB = $t097589835._3
315+ let $t098879964 = getAssetInfo(pmtAssetIdA)
316+ let pmtStrAssetIdA = $t098879964._1
317+ let pmtAssetNameA = $t098879964._2
318+ let pmtDecimalsA = $t098879964._3
319+ let $t0997310050 = getAssetInfo(pmtAssetIdB)
320+ let pmtStrAssetIdB = $t0997310050._1
321+ let pmtAssetNameB = $t0997310050._2
322+ let pmtDecimalsB = $t0997310050._3
316323 let firstHarvest = (args[0] == "true")
317324 let shareName = ((("s" + take(pmtAssetNameA, 7)) + "_") + take(pmtAssetNameB, 7))
318325 let shareDescription = ((((("ShareToken of SwopFi protocol for " + pmtAssetNameA) + " and ") + pmtAssetNameB) + " at address ") + toString(this))
349356 @Callable(i)
350357 func initWithInitRatio (callerBytes,args,pAmounts,pAssetIds) = {
351358 let caller = Address(callerBytes)
352- let $t01205612256 = $Tuple5(parseIntValue(args[0]), parseIntValue(args[1]), args[2], args[3], (args[4] == "true"))
353- let amtAssetA = $t01205612256._1
354- let amtAssetB = $t01205612256._2
355- let assetIdAStr = $t01205612256._3
356- let assetIdBStr = $t01205612256._4
357- let firstHarvest = $t01205612256._5
359+ let $t01227112471 = $Tuple5(parseIntValue(args[0]), parseIntValue(args[1]), args[2], args[3], (args[4] == "true"))
360+ let amtAssetA = $t01227112471._1
361+ let amtAssetB = $t01227112471._2
362+ let assetIdAStr = $t01227112471._3
363+ let assetIdBStr = $t01227112471._4
364+ let firstHarvest = $t01227112471._5
358365 if (!(containsElement([adminPubKey1, adminPubKey2, adminPubKey3, adminInvokePubKey], i.originCallerPublicKey)))
359366 then throw("Only admin can call this function")
360367 else if ((size(args) != 5))
364371 else if ((assetIdAStr == assetIdBStr))
365372 then throw("Assets must be different")
366373 else {
367- let $t01269112768 = getAssetInfo(assetIdAStr)
368- let pmtStrAssetIdA = $t01269112768._1
369- let pmtAssetNameA = $t01269112768._2
370- let pmtDecimalsA = $t01269112768._3
371- let $t01277712854 = getAssetInfo(assetIdBStr)
372- let pmtStrAssetIdB = $t01277712854._1
373- let pmtAssetNameB = $t01277712854._2
374- let pmtDecimalsB = $t01277712854._3
374+ let $t01290612983 = getAssetInfo(assetIdAStr)
375+ let pmtStrAssetIdA = $t01290612983._1
376+ let pmtAssetNameA = $t01290612983._2
377+ let pmtDecimalsA = $t01290612983._3
378+ let $t01299213069 = getAssetInfo(assetIdBStr)
379+ let pmtStrAssetIdB = $t01299213069._1
380+ let pmtAssetNameB = $t01299213069._2
381+ let pmtDecimalsB = $t01299213069._3
375382 let shareName = ((("s" + take(pmtAssetNameA, 7)) + "_") + take(pmtAssetNameB, 7))
376383 let shareDescription = ((((("ShareToken of SwopFi protocol for " + pmtAssetNameA) + " and ") + pmtAssetNameB) + " at address ") + toString(this))
377384 let shareDecimals = ((pmtDecimalsA + pmtDecimalsB) / 2)
400407
401408
402409 @Callable(i)
403-func exchange (callerBytes,args,pAmounts,pAssetIds) = valueOrElse(isOraclePool(toString(i.caller)), valueOrElse(isActive(), {
410+func exchange (callerBytes,args,pAmounts,pAssetIds) = valueOrElse(isOraclePool(toString(i.caller)), valueOrElse(isDepricated(toString(i.caller)), valueOrElse(isActive(), {
404411 let caller = Address(callerBytes)
405- let $t01524015316 = $Tuple2(pAmounts[0], parsePaymentAsset(pAssetIds[0]))
406- let pmtAmount = $t01524015316._1
407- let pmtAssetId = $t01524015316._2
412+ let $t01549515571 = $Tuple2(pAmounts[0], parsePaymentAsset(pAssetIds[0]))
413+ let pmtAmount = $t01549515571._1
414+ let pmtAssetId = $t01549515571._2
408415 let minAmountToReceive = parseIntValue(args[0])
409- let $t01538915465 = getPoolAssets(i.caller)
410- let strAssetIdA = $t01538915465._1
411- let strAssetIdB = $t01538915465._2
412- let assetIdA = $t01538915465._3
413- let assetIdB = $t01538915465._4
414- let $t01547815584 = getPoolBalances(i.caller, assetIdA, assetIdB)
415- let balanceA = $t01547815584._1
416- let balanceB = $t01547815584._2
417- let accountBalanceA = $t01547815584._3
418- let accountBalanceB = $t01547815584._4
416+ let $t01563615712 = getPoolAssets(i.caller)
417+ let strAssetIdA = $t01563615712._1
418+ let strAssetIdB = $t01563615712._2
419+ let assetIdA = $t01563615712._3
420+ let assetIdB = $t01563615712._4
421+ let $t01572115827 = getPoolBalances(i.caller, assetIdA, assetIdB)
422+ let balanceA = $t01572115827._1
423+ let balanceB = $t01572115827._2
424+ let accountBalanceA = $t01572115827._3
425+ let accountBalanceB = $t01572115827._4
419426 if ((size(args) != 1))
420427 then throw("Wrong args size")
421428 else if (if ((balanceA == 0))
433440 else (balanceB > accountBalanceB))
434441 then $Tuple2(nil, ([ScriptTransfer(caller, pmtAmount, pmtAssetId)] ++ suspendSuspicious(accountBalanceA, accountBalanceB, balanceA, balanceB, strAssetIdA, strAssetIdB)))
435442 else {
436- let $t01655216610 = getFeeParams(i.caller, i.originCaller)
437- let fee = $t01655216610._1
438- let govFee = $t01655216610._2
439- let $t01662716964 = if ((pmtAssetId == assetIdA))
443+ let $t01672716785 = getFeeParams(i.caller, i.originCaller)
444+ let fee = $t01672716785._1
445+ let govFee = $t01672716785._2
446+ let $t01679817119 = if ((pmtAssetId == assetIdA))
440447 then calculateFees(pmtAmount, minAmountToReceive, balanceA, balanceB, fee, govFee)
441448 else calculateFees(pmtAmount, minAmountToReceive, balanceB, balanceA, fee, govFee)
442- let amountWithoutFee = $t01662716964._1
443- let amountWithFee = $t01662716964._2
444- let governanceReward = $t01662716964._3
445- let $t01698217307 = if ((pmtAssetId == assetIdA))
449+ let amountWithoutFee = $t01679817119._1
450+ let amountWithFee = $t01679817119._2
451+ let governanceReward = $t01679817119._3
452+ let $t01713317442 = if ((pmtAssetId == assetIdA))
446453 then $Tuple3((balanceA + pmtAmount), ((balanceB - amountWithFee) - governanceReward), assetIdB)
447454 else $Tuple3(((balanceA - amountWithFee) - governanceReward), (balanceB + pmtAmount), assetIdA)
448- let newBalanceA = $t01698217307._1
449- let newBalanceB = $t01698217307._2
450- let assetIdSend = $t01698217307._3
451- let $t01732517575 = if ((pmtAssetId == assetIdA))
455+ let newBalanceA = $t01713317442._1
456+ let newBalanceB = $t01713317442._2
457+ let assetIdSend = $t01713317442._3
458+ let $t01745617690 = if ((pmtAssetId == assetIdA))
452459 then $Tuple2(pmtAmount, (amountWithFee + governanceReward))
453460 else $Tuple2((amountWithFee + governanceReward), pmtAmount)
454- let stakeAmountA = $t01732517575._1
455- let stakeAmountB = $t01732517575._2
461+ let stakeAmountA = $t01745617690._1
462+ let stakeAmountB = $t01745617690._2
456463 let stake1 = if (contains(stakingAssets, strAssetIdA))
457464 then invoke(i.caller, "stakeUnstake", [(pmtAssetId == assetIdA), stakeAmountA, strAssetIdA], nil)
458465 else 0
467474 }
468475 else throw("Strict value is not equal to itself.")
469476 }
470- }))
477+ })))
471478
472479
473480
474481 @Callable(i)
475-func replenishWithTwoTokens (callerBytes,args,pAmounts,pAssetIds) = valueOrElse(isOraclePool(toString(i.caller)), valueOrElse(isActive(), {
482+func replenishWithTwoTokens (callerBytes,args,pAmounts,pAssetIds) = valueOrElse(isOraclePool(toString(i.caller)), valueOrElse(isDepricated(toString(i.caller)), valueOrElse(isActive(), {
476483 let caller = Address(callerBytes)
477484 let pmtAssetIdA = parsePaymentAsset(pAssetIds[0])
478485 let pmtAssetIdB = parsePaymentAsset(pAssetIds[1])
479486 let stakeFarming = (args[0] == "true")
480487 let lockType = parseIntValue(args[1])
481- let $t01883818928 = getPoolAssets(i.caller)
482- let strAssetIdA = $t01883818928._1
483- let strAssetIdB = $t01883818928._2
484- let assetIdA = $t01883818928._3
485- let assetIdB = $t01883818928._4
486- let shareAssetId = $t01883818928._5
487- let $t01894119065 = getPoolBalances(i.caller, assetIdA, assetIdB)
488- let balanceA = $t01894119065._1
489- let balanceB = $t01894119065._2
490- let accountBalanceA = $t01894119065._3
491- let accountBalanceB = $t01894119065._4
492- let shareAssetSupply = $t01894119065._5
488+ let $t01893219022 = getPoolAssets(i.caller)
489+ let strAssetIdA = $t01893219022._1
490+ let strAssetIdB = $t01893219022._2
491+ let assetIdA = $t01893219022._3
492+ let assetIdB = $t01893219022._4
493+ let shareAssetId = $t01893219022._5
494+ let $t01903119155 = getPoolBalances(i.caller, assetIdA, assetIdB)
495+ let balanceA = $t01903119155._1
496+ let balanceB = $t01903119155._2
497+ let accountBalanceA = $t01903119155._3
498+ let accountBalanceB = $t01903119155._4
499+ let shareAssetSupply = $t01903119155._5
493500 if ((size(args) != 2))
494501 then throw("Wrong args size")
495502 else if (if ((size(pAmounts) != 2))
509516 else pAssetIds[2], pAmounts[2])]
510517 else (nil ++ suspendSuspicious(accountBalanceA, accountBalanceB, balanceA, balanceB, strAssetIdA, strAssetIdB)))))
511518 else {
512- let $t02006620143 = getAssetInfo(pmtAssetIdA)
513- let pmtStrAssetIdA = $t02006620143._1
514- let pmtAssetNameA = $t02006620143._2
515- let pmtDecimalsA = $t02006620143._3
516- let $t02016020237 = getAssetInfo(pmtAssetIdB)
517- let pmtStrAssetIdB = $t02016020237._1
518- let pmtAssetNameB = $t02016020237._2
519- let pmtDecimalsB = $t02016020237._3
519+ let $t02008820165 = getAssetInfo(pmtAssetIdA)
520+ let pmtStrAssetIdA = $t02008820165._1
521+ let pmtAssetNameA = $t02008820165._2
522+ let pmtDecimalsA = $t02008820165._3
523+ let $t02017820255 = getAssetInfo(pmtAssetIdB)
524+ let pmtStrAssetIdB = $t02017820255._1
525+ let pmtAssetNameB = $t02017820255._2
526+ let pmtDecimalsB = $t02017820255._3
520527 let initial = ((balanceA + balanceB) == 0)
521- let $t02031221212 = if (initial)
528+ let $t02032221178 = if (initial)
522529 then $Tuple5(pAmounts[0], pAmounts[1], 0, pmtAssetIdA, toBigInt(1))
523530 else {
524531 let ratioShareTokensInA = fraction(scale16, toBigInt(pAmounts[0]), toBigInt(balanceA))
533540 $Tuple5(pmt, pAmounts[1], (pAmounts[0] - pmt), pmtAssetIdA, ratioShareTokensInB)
534541 }
535542 }
536- let pmtAmountA = $t02031221212._1
537- let pmtAmountB = $t02031221212._2
538- let change = $t02031221212._3
539- let changeAssetId = $t02031221212._4
540- let shareTokenRatio = $t02031221212._5
543+ let pmtAmountA = $t02032221178._1
544+ let pmtAmountB = $t02032221178._2
545+ let change = $t02032221178._3
546+ let changeAssetId = $t02032221178._4
547+ let shareTokenRatio = $t02032221178._5
541548 let shareTokenToPayAmount = if (initial)
542549 then {
543550 let shareDecimals = ((pmtDecimalsA + pmtDecimalsB) / 2)
584591 else throw("Strict value is not equal to itself.")
585592 }
586593 }
587- }))
594+ })))
588595
589596
590597
591598 @Callable(i)
592-func replenishWithOneToken (callerBytes,args,pAmounts,pAssetIds) = valueOrElse(isOraclePool(toString(i.caller)), valueOrElse(isActive(), {
599+func replenishWithOneToken (callerBytes,args,pAmounts,pAssetIds) = valueOrElse(isOraclePool(toString(i.caller)), valueOrElse(isDepricated(toString(i.caller)), valueOrElse(isActive(), {
593600 let caller = Address(callerBytes)
594601 let pmtAssetId = parsePaymentAsset(pAssetIds[0])
595602 let pmtAmount = pAmounts[0]
596603 let virtGetMinAmount = parseIntValue(args[0])
597604 let stakeFarming = (args[1] == "true")
598605 let lockType = parseIntValue(args[2])
599- let $t02413824228 = getPoolAssets(i.caller)
600- let strAssetIdA = $t02413824228._1
601- let strAssetIdB = $t02413824228._2
602- let assetIdA = $t02413824228._3
603- let assetIdB = $t02413824228._4
604- let shareAssetId = $t02413824228._5
605- let $t02424124365 = getPoolBalances(i.caller, assetIdA, assetIdB)
606- let balanceA = $t02424124365._1
607- let balanceB = $t02424124365._2
608- let accountBalanceA = $t02424124365._3
609- let accountBalanceB = $t02424124365._4
610- let shareAssetSupply = $t02424124365._5
606+ let $t02393324023 = getPoolAssets(i.caller)
607+ let strAssetIdA = $t02393324023._1
608+ let strAssetIdB = $t02393324023._2
609+ let assetIdA = $t02393324023._3
610+ let assetIdB = $t02393324023._4
611+ let shareAssetId = $t02393324023._5
612+ let $t02402824152 = getPoolBalances(i.caller, assetIdA, assetIdB)
613+ let balanceA = $t02402824152._1
614+ let balanceB = $t02402824152._2
615+ let accountBalanceA = $t02402824152._3
616+ let accountBalanceB = $t02402824152._4
617+ let shareAssetSupply = $t02402824152._5
611618 let initial = ((balanceA + balanceB) == 0)
612619 if ((size(args) != 3))
613620 then throw("Wrong args size")
630637 else pAssetIds[2], pAmounts[2])]
631638 else (nil ++ suspendSuspicious(accountBalanceA, accountBalanceB, balanceA, balanceB, strAssetIdA, strAssetIdB)))))
632639 else {
633- let $t02542125479 = getFeeParams(i.caller, i.originCaller)
634- let fee = $t02542125479._1
635- let govFee = $t02542125479._2
636- let $t02549627834 = if ((pmtAssetId == assetIdA))
640+ let $t02506425122 = getFeeParams(i.caller, i.originCaller)
641+ let fee = $t02506425122._1
642+ let govFee = $t02506425122._2
643+ let $t02513127293 = if ((pmtAssetId == assetIdA))
637644 then {
638645 let virtPayAmount = calculateVirtPay(pmtAmount, balanceA, fee)
639- let $t02577525912 = calculateFees(virtPayAmount, virtGetMinAmount, balanceA, balanceB, fee, govFee)
640- let amountWithoutFee = $t02577525912._1
641- let amountWithFee = $t02577525912._2
642- let governanceReward = $t02577525912._3
646+ let $t02538625523 = calculateFees(virtPayAmount, virtGetMinAmount, balanceA, balanceB, fee, govFee)
647+ let amountWithoutFee = $t02538625523._1
648+ let amountWithFee = $t02538625523._2
649+ let governanceReward = $t02538625523._3
643650 let balanceAVirt = (balanceA + virtPayAmount)
644651 let balanceBVirt = ((balanceB + amountWithoutFee) - governanceReward)
645652 let newBalanceA = (balanceA + pmtAmount)
651658 }
652659 else {
653660 let virtPayAmount = calculateVirtPay(pmtAmount, balanceB, fee)
654- let $t02687327010 = calculateFees(virtPayAmount, virtGetMinAmount, balanceB, balanceA, fee, govFee)
655- let amountWithoutFee = $t02687327010._1
656- let amountWithFee = $t02687327010._2
657- let governanceReward = $t02687327010._3
661+ let $t02639626533 = calculateFees(virtPayAmount, virtGetMinAmount, balanceB, balanceA, fee, govFee)
662+ let amountWithoutFee = $t02639626533._1
663+ let amountWithFee = $t02639626533._2
664+ let governanceReward = $t02639626533._3
658665 let balanceAVirt = ((balanceA + amountWithoutFee) - governanceReward)
659666 let balanceBVirt = (balanceB + virtPayAmount)
660667 let newBalanceA = (balanceA - governanceReward)
664671 let shareTokenToPayAmount = toInt(fraction(min([ratioShareTokensInA, ratioShareTokensInB]), toBigInt(shareAssetSupply), scale16))
665672 $Tuple7(newBalanceA, newBalanceB, shareTokenToPayAmount, governanceReward, assetIdA, strAssetIdA, strAssetIdB)
666673 }
667- let newBalanceA = $t02549627834._1
668- let newBalanceB = $t02549627834._2
669- let shareTokenToPayAmount = $t02549627834._3
670- let govReward = $t02549627834._4
671- let govRewardAsset = $t02549627834._5
672- let govRewardAssetStr = $t02549627834._6
673- let pmtAssetIdStr = $t02549627834._7
674+ let newBalanceA = $t02513127293._1
675+ let newBalanceB = $t02513127293._2
676+ let shareTokenToPayAmount = $t02513127293._3
677+ let govReward = $t02513127293._4
678+ let govRewardAsset = $t02513127293._5
679+ let govRewardAssetStr = $t02513127293._6
680+ let pmtAssetIdStr = $t02513127293._7
674681 if ((shareTokenToPayAmount == 0))
675682 then throw("Too small amount to replenish")
676683 else {
709716 else throw("Strict value is not equal to itself.")
710717 }
711718 }
712- }))
719+ })))
713720
714721
715722
717724 func withdraw (callerBytes,args,pAmounts,pAssetIds) = valueOrElse(isOraclePool(toString(i.caller)), valueOrElse(isActive(), {
718725 let time = lastBlock.timestamp
719726 let caller = Address(callerBytes)
720- let $t02998830078 = getPoolAssets(i.caller)
721- let strAssetIdA = $t02998830078._1
722- let strAssetIdB = $t02998830078._2
723- let assetIdA = $t02998830078._3
724- let assetIdB = $t02998830078._4
725- let shareAssetId = $t02998830078._5
726- let $t03009130215 = getPoolBalances(i.caller, assetIdA, assetIdB)
727- let balanceA = $t03009130215._1
728- let balanceB = $t03009130215._2
729- let accountBalanceA = $t03009130215._3
730- let accountBalanceB = $t03009130215._4
731- let shareAssetSupply = $t03009130215._5
732- let $t03022830636 = if ((size(pAmounts) == 1))
727+ let $t02920829298 = getPoolAssets(i.caller)
728+ let strAssetIdA = $t02920829298._1
729+ let strAssetIdB = $t02920829298._2
730+ let assetIdA = $t02920829298._3
731+ let assetIdB = $t02920829298._4
732+ let shareAssetId = $t02920829298._5
733+ let $t02930729431 = getPoolBalances(i.caller, assetIdA, assetIdB)
734+ let balanceA = $t02930729431._1
735+ let balanceB = $t02930729431._2
736+ let accountBalanceA = $t02930729431._3
737+ let accountBalanceB = $t02930729431._4
738+ let shareAssetSupply = $t02930729431._5
739+ let $t02944029820 = if ((size(pAmounts) == 1))
733740 then {
734741 let pAsset = parsePaymentAsset(pAssetIds[0])
735742 if ((pAsset != shareAssetId))
737744 else $Tuple2(pAmounts[0], pAsset)
738745 }
739746 else $Tuple2(0, shareAssetId)
740- let pmtAmount = $t03022830636._1
741- let pmtAssetId = $t03022830636._2
747+ let pmtAmount = $t02944029820._1
748+ let pmtAssetId = $t02944029820._2
742749 if ((size(args) != 1))
743750 then throw("Wrong args size")
744751 else if ((size(pAmounts) > 1))
778785
779786
780787 @Callable(i)
781-func withdrawOneToken (callerBytes,args,pAmounts,pAssetIds) = valueOrElse(isOraclePool(toString(i.caller)), valueOrElse(isActive(), {
788+func withdrawOneToken (callerBytes,args,pAmounts,pAssetIds) = valueOrElse(isOraclePool(toString(i.caller)), valueOrElse(isDepricated(toString(i.caller)), valueOrElse(isActive(), {
782789 let caller = Address(callerBytes)
783790 let withdrawAsset = if ((args[0] == ""))
784791 then unit
785792 else fromBase58String(args[0])
786- let $t03294733037 = getPoolAssets(i.caller)
787- let strAssetIdA = $t03294733037._1
788- let strAssetIdB = $t03294733037._2
789- let assetIdA = $t03294733037._3
790- let assetIdB = $t03294733037._4
791- let shareAssetId = $t03294733037._5
792- let $t03305033174 = getPoolBalances(i.caller, assetIdA, assetIdB)
793- let balanceA = $t03305033174._1
794- let balanceB = $t03305033174._2
795- let accountBalanceA = $t03305033174._3
796- let accountBalanceB = $t03305033174._4
797- let shareAssetSupply = $t03305033174._5
798- let $t03318733567 = if ((size(pAmounts) == 1))
793+ let $t03203832128 = getPoolAssets(i.caller)
794+ let strAssetIdA = $t03203832128._1
795+ let strAssetIdB = $t03203832128._2
796+ let assetIdA = $t03203832128._3
797+ let assetIdB = $t03203832128._4
798+ let shareAssetId = $t03203832128._5
799+ let $t03213732261 = getPoolBalances(i.caller, assetIdA, assetIdB)
800+ let balanceA = $t03213732261._1
801+ let balanceB = $t03213732261._2
802+ let accountBalanceA = $t03213732261._3
803+ let accountBalanceB = $t03213732261._4
804+ let shareAssetSupply = $t03213732261._5
805+ let $t03227032622 = if ((size(pAmounts) == 1))
799806 then {
800807 let pAsset = parsePaymentAsset(pAssetIds[0])
801808 if ((pAsset != shareAssetId))
803810 else $Tuple2(pAmounts[0], pAsset)
804811 }
805812 else $Tuple2(0, shareAssetId)
806- let pmtAmount = $t03318733567._1
807- let pmtAssetId = $t03318733567._2
813+ let pmtAmount = $t03227032622._1
814+ let pmtAssetId = $t03227032622._2
808815 let virtMinToRecive = parseIntValue(args[1])
809816 if ((size(args) != 3))
810817 then throw("Wrong args size")
828835 let withdrawAmount = (pmtAmount + unlockAmount)
829836 let amountToPayA = fraction(withdrawAmount, balanceA, shareAssetSupply)
830837 let amountToPayB = fraction(withdrawAmount, balanceB, shareAssetSupply)
831- let $t03491534973 = getFeeParams(i.caller, i.originCaller)
832- let fee = $t03491534973._1
833- let govFee = $t03491534973._2
834- let $t03499035390 = if ((withdrawAsset == assetIdA))
838+ let $t03388933947 = getFeeParams(i.caller, i.originCaller)
839+ let fee = $t03388933947._1
840+ let govFee = $t03388933947._2
841+ let $t03396034344 = if ((withdrawAsset == assetIdA))
835842 then calculateFees(amountToPayB, virtMinToRecive, (balanceB - amountToPayB), (balanceA - amountToPayA), fee, govFee)
836843 else calculateFees(amountToPayA, virtMinToRecive, (balanceA - amountToPayA), (balanceB - amountToPayB), fee, govFee)
837- let amountWithoutFee = $t03499035390._1
838- let amountWithFee = $t03499035390._2
839- let governanceReward = $t03499035390._3
840- let $t03540736753 = if ((withdrawAsset == assetIdA))
844+ let amountWithoutFee = $t03396034344._1
845+ let amountWithFee = $t03396034344._2
846+ let governanceReward = $t03396034344._3
847+ let $t03435735615 = if ((withdrawAsset == assetIdA))
841848 then {
842849 let unstake = if (contains(stakingAssets, strAssetIdA))
843850 then invoke(i.caller, "stakeUnstake", [false, ((amountToPayA + amountWithFee) + governanceReward), strAssetIdA], nil)
854861 then $Tuple4(balanceA, (((balanceB - amountToPayB) - amountWithFee) - governanceReward), assetIdB, [ScriptTransfer(caller, (amountToPayB + amountWithFee), assetIdB)])
855862 else throw("Strict value is not equal to itself.")
856863 }
857- let newBalanceA = $t03540736753._1
858- let newBalanceB = $t03540736753._2
859- let govRewardAssetId = $t03540736753._3
860- let userTransfer = $t03540736753._4
864+ let newBalanceA = $t03435735615._1
865+ let newBalanceB = $t03435735615._2
866+ let govRewardAssetId = $t03435735615._3
867+ let userTransfer = $t03435735615._4
861868 $Tuple2([ScriptTransfer(i.caller, unlockAmount, shareAssetId)], $Tuple2(([IntegerEntry(kBalanceA, newBalanceA), IntegerEntry(kBalanceB, newBalanceB), IntegerEntry(kShareAssetSupply, (shareAssetSupply - withdrawAmount)), Burn(shareAssetId, withdrawAmount), ScriptTransfer(moneyBoxAddress, governanceReward, govRewardAssetId)] ++ userTransfer), nil))
862869 }
863870 else throw("Strict value is not equal to itself.")
864871 }
865- }))
872+ })))
866873
867874
868875
869876 @Callable(i)
870877 func takeIntoAccountExtraFunds (callerBytes,args,pAmounts,pAssetIds) = valueOrElse(isOraclePool(toString(i.caller)), valueOrElse(isActive(), {
871- let $t03747837554 = getPoolAssets(i.caller)
872- let strAssetIdA = $t03747837554._1
873- let strAssetIdB = $t03747837554._2
874- let assetIdA = $t03747837554._3
875- let assetIdB = $t03747837554._4
876- let $t03756737673 = getPoolBalances(i.caller, assetIdA, assetIdB)
877- let balanceA = $t03756737673._1
878- let balanceB = $t03756737673._2
879- let accountBalanceA = $t03756737673._3
880- let accountBalanceB = $t03756737673._4
881- let amountEnrollA = (accountBalanceA - balanceA)
882- let amountEnrollB = (accountBalanceB - balanceB)
883- if ((size(args) != 0))
884- then throw("Wrong args size")
885- else if ((moneyBoxAddress != i.originCaller))
886- then throw("Only the wallet can call this function")
887- else if (if ((0 > amountEnrollA))
888- then true
889- else (0 > amountEnrollB))
890- then suspend("Enroll amount negative")
891- else if (if ((amountEnrollA == 0))
892- then (amountEnrollB == 0)
893- else false)
894- then throw("No money to take")
895- else {
896- let stake1 = if (if (contains(stakingAssets, strAssetIdA))
897- then (amountEnrollA > 0)
878+ let $t03629736373 = getPoolAssets(i.caller)
879+ let strAssetIdA = $t03629736373._1
880+ let strAssetIdB = $t03629736373._2
881+ let assetIdA = $t03629736373._3
882+ let assetIdB = $t03629736373._4
883+ let claim = if (if ((assetIdA == USDN))
884+ then true
885+ else (assetIdB == USDN))
886+ then invoke(i.caller, "claimNetrinoRewards", nil, nil)
887+ else 0
888+ if ((claim == claim))
889+ then {
890+ let $t03653336639 = getPoolBalances(i.caller, assetIdA, assetIdB)
891+ let balanceA = $t03653336639._1
892+ let balanceB = $t03653336639._2
893+ let accountBalanceA = $t03653336639._3
894+ let accountBalanceB = $t03653336639._4
895+ let amountEnrollA = (accountBalanceA - balanceA)
896+ let amountEnrollB = (accountBalanceB - balanceB)
897+ if ((size(args) != 0))
898+ then throw("Wrong args size")
899+ else if ((moneyBoxAddress != i.originCaller))
900+ then throw("Only the wallet can call this function")
901+ else if (if ((0 > amountEnrollA))
902+ then true
903+ else (0 > amountEnrollB))
904+ then suspend("Enroll amount negative")
905+ else if (if ((amountEnrollA == 0))
906+ then (amountEnrollB == 0)
898907 else false)
899- then invoke(i.caller, "stakeUnstake", [true, amountEnrollA, strAssetIdA], nil)
900- else 0
901- if ((stake1 == stake1))
902- then {
903- let stake2 = if (if (contains(stakingAssets, strAssetIdB))
904- then (amountEnrollB > 0)
908+ then throw("No money to take")
909+ else {
910+ let stake1 = if (if (contains(stakingAssets, strAssetIdA))
911+ then (amountEnrollA > 0)
905912 else false)
906- then invoke(i.caller, "stakeUnstake", [true, amountEnrollB, strAssetIdB], nil)
913+ then invoke(i.caller, "stakeUnstake", [true, amountEnrollA, strAssetIdA], nil)
907914 else 0
908- if ((stake2 == stake2))
909- then $Tuple2(nil, $Tuple2([IntegerEntry(kBalanceA, (balanceA + amountEnrollA)), IntegerEntry(kBalanceB, (balanceB + amountEnrollB))], nil))
915+ if ((stake1 == stake1))
916+ then {
917+ let stake2 = if (if (contains(stakingAssets, strAssetIdB))
918+ then (amountEnrollB > 0)
919+ else false)
920+ then invoke(i.caller, "stakeUnstake", [true, amountEnrollB, strAssetIdB], nil)
921+ else 0
922+ if ((stake2 == stake2))
923+ then $Tuple2(nil, $Tuple2([IntegerEntry(kBalanceA, (balanceA + amountEnrollA)), IntegerEntry(kBalanceB, (balanceB + amountEnrollB))], nil))
924+ else throw("Strict value is not equal to itself.")
925+ }
910926 else throw("Strict value is not equal to itself.")
911927 }
912- else throw("Strict value is not equal to itself.")
913- }
928+ }
929+ else throw("Strict value is not equal to itself.")
914930 }))
915931
916932
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let version = "1.0.0"
55
66 let kVersion = "version"
77
88 let kActive = "active"
9+
10+let kDeprecated = "deprecated_"
911
1012 let kAssetIdA = "A_asset_id"
1113
1214 let kAssetIdB = "B_asset_id"
1315
1416 let kBalanceA = "A_asset_balance"
1517
1618 let kBalanceB = "B_asset_balance"
1719
1820 let kBalanceInitA = "A_asset_init"
1921
2022 let kBalanceInitB = "B_asset_init"
2123
2224 let kShareAssetId = "share_asset_id"
2325
2426 let kShareAssetSupply = "share_asset_supply"
2527
2628 let kFee = "commission"
2729
2830 let kCause = "shutdown_cause"
2931
3032 let kFirstHarvest = "first_harvest"
3133
3234 let kFirstHarvestHeight = "first_harvest_height"
3335
3436 let kShareLimit = "share_limit_on_first_harvest"
3537
3638 let kBasePeriod = "base_period"
3739
3840 let kPeriodLength = "period_length"
3941
4042 let kStartHeight = "start_height"
4143
4244 let kUSDNAddress = "staking_usdnnsbt_address"
4345
4446 let kEURNAddress = "staking_eurn_address"
4547
4648 let kLeasingAmount = "leasing_amount"
4749
4850 let kUSDNAssetId = "usdn_asset_id"
4951
5052 let kEURNAssetId = "eurn_asset_id"
5153
5254 let kStakingAssets = "staking_assets"
5355
5456 let kOracleActive = "active_all_contracts"
5557
5658 let kDiscounts = "discounts"
5759
5860 let kDiscountValues = "discount_values"
5961
6062 let kUserGSwopInGov = "_GSwop_amount"
6163
6264 let kUserSwopInGov = "_SWOP_amount"
6365
6466 let kOraclePool = "pool_"
6567
6668 let kAdminPubKey1 = "admin_pub_1"
6769
6870 let kAdminPubKey2 = "admin_pub_2"
6971
7072 let kAdminPubKey3 = "admin_pub_3"
7173
7274 let kAdminInvokePubKey = "admin_invoke_pub"
7375
7476 let kMoneyBoxAddress = "money_box_address"
7577
7678 let kVotingAddress = "voting_address"
7779
7880 let kGovAddress = "governance_address"
7981
8082 let kFarmingAddress = "farming_address"
8183
8284 let oracle = Address(base58'3MvVBtsXroQpy1tsPw21TU2ET9A8WfmrNjz')
8385
8486 func getBase58FromOracle (key) = match getString(oracle, key) {
8587 case string: String =>
8688 fromBase58String(string)
8789 case nothing =>
8890 throw((key + "is empty"))
8991 }
9092
9193
9294 let adminPubKey1 = getBase58FromOracle(kAdminPubKey1)
9395
9496 let adminPubKey2 = getBase58FromOracle(kAdminPubKey2)
9597
9698 let adminPubKey3 = getBase58FromOracle(kAdminPubKey3)
9799
98100 let adminInvokePubKey = getBase58FromOracle(kAdminInvokePubKey)
99101
100102 let moneyBoxAddress = Address(getBase58FromOracle(kMoneyBoxAddress))
101103
102104 let votingAddress = Address(getBase58FromOracle(kVotingAddress))
103105
104106 let govAddress = Address(getBase58FromOracle(kGovAddress))
105107
106108 let farmingAddress = Address(getBase58FromOracle(kFarmingAddress))
107109
108110 let USDN = getBase58FromOracle(kUSDNAssetId)
109111
110112 let EURN = getBase58FromOracle(kEURNAssetId)
111113
112114 let stakingAssets = getStringValue(oracle, kStakingAssets)
113115
114116 let stakingUSDNAddress = Address(getBase58FromOracle(kUSDNAddress))
115117
116118 let stakingEURNAddress = Address(getBase58FromOracle(kEURNAddress))
117119
118120 let basePeriod = valueOrErrorMessage(getInteger(votingAddress, kBasePeriod), "Empty kBasePeriod")
119121
120122 let startHeight = valueOrErrorMessage(getInteger(votingAddress, kStartHeight), "Empty kStartHeight")
121123
122124 let periodLength = valueOrErrorMessage(getInteger(votingAddress, kPeriodLength), "Empty kPeriodLength")
123125
124126 let firstHarvestEndPeriod = ((basePeriod + ((height - startHeight) / periodLength)) + 3)
125127
126128 let active = getBooleanValue(oracle, kOracleActive)
127129
128130 let feeScale6 = 1000000
129131
130132 let scale8 = 100000000
131133
132134 let scale16 = toBigInt(10000000000000000)
133135
134136 func accountBalance (assetId,pool) = match assetId {
135137 case id: ByteVector =>
136138 assetBalance(pool, id)
137139 case waves: Unit =>
138140 wavesBalance(pool).available
139141 case _ =>
140142 throw("Match error")
141143 }
142144
143145
144146 func stakedAmount (assetId,pool) = {
145147 let stakedAmountCalculated = match assetId {
146148 case aId: ByteVector =>
147149 if ((aId == USDN))
148150 then getInteger(stakingUSDNAddress, ((("rpd_balance_" + toBase58String(aId)) + "_") + toString(pool)))
149151 else if ((aId == EURN))
150152 then getInteger(stakingEURNAddress, ((("%s%s%s__stakingBalance__" + toBase58String(aId)) + "__") + toString(pool)))
151153 else 0
152154 case _: Unit =>
153155 valueOrElse(getInteger(pool, kLeasingAmount), 0)
154156 case _ =>
155157 throw("Match error")
156158 }
157159 match stakedAmountCalculated {
158160 case i: Int =>
159161 i
160162 case _ =>
161163 0
162164 }
163165 }
164166
165167
166168 func getAssetInfo (assetId) = match assetId {
167169 case id: String|ByteVector =>
168- let $t039394111 = match id {
170+ let $t039714143 = match id {
169171 case aId: ByteVector =>
170172 $Tuple2(toBase58String(aId), aId)
171173 case aId: String =>
172174 $Tuple2(aId, fromBase58String(aId))
173175 case _ =>
174176 throw("Match error")
175177 }
176- let stringId = $t039394111._1
177- let bytesId = $t039394111._2
178+ let stringId = $t039714143._1
179+ let bytesId = $t039714143._2
178180 let info = valueOrErrorMessage(assetInfo(bytesId), (("Asset " + stringId) + " doesn't exist"))
179181 $Tuple3(stringId, info.name, info.decimals)
180182 case waves: Unit =>
181183 $Tuple3("WAVES", "WAVES", 8)
182184 case _ =>
183185 throw("Match error")
184186 }
185187
186188
187189 func suspend (cause) = [BooleanEntry(kActive, false), StringEntry(kCause, cause)]
188190
189191
190192 func calculateFeeDiscount (userAddr) = {
191193 let swopAmount = valueOrElse(getInteger(govAddress, (toString(userAddr) + kUserSwopInGov)), 0)
192194 let gSwopAmount = valueOrElse(getInteger(govAddress, (toString(userAddr) + kUserGSwopInGov)), swopAmount)
193195 let discountValues = split(getStringValue(oracle, kDiscountValues), ",")
194196 let discounts = split(getStringValue(oracle, kDiscounts), ",")
195197 if (if ((gSwopAmount >= parseIntValue(discountValues[0])))
196198 then (parseIntValue(discountValues[1]) > gSwopAmount)
197199 else false)
198200 then (feeScale6 - parseIntValue(discounts[0]))
199201 else if (if ((gSwopAmount >= parseIntValue(discountValues[1])))
200202 then (parseIntValue(discountValues[2]) > gSwopAmount)
201203 else false)
202204 then (feeScale6 - parseIntValue(discounts[1]))
203205 else if (if ((gSwopAmount >= parseIntValue(discountValues[2])))
204206 then (parseIntValue(discountValues[3]) > gSwopAmount)
205207 else false)
206208 then (feeScale6 - parseIntValue(discounts[2]))
207209 else if (if ((gSwopAmount >= parseIntValue(discountValues[3])))
208210 then (parseIntValue(discountValues[4]) > gSwopAmount)
209211 else false)
210212 then (feeScale6 - parseIntValue(discounts[3]))
211213 else if ((gSwopAmount >= parseIntValue(discountValues[4])))
212214 then (feeScale6 - parseIntValue(discounts[4]))
213215 else feeScale6
214216 }
215217
216218
217219 func calculateFees (pmtAmount,minAmountToReceive,tokenFrom,tokenTo,fee,feeGovernance) = {
218220 let amountWithoutFee = fraction(tokenTo, pmtAmount, (pmtAmount + tokenFrom))
219221 let amountWithFee = fraction(amountWithoutFee, (feeScale6 - fee), feeScale6)
220222 let governanceReward = fraction(amountWithoutFee, feeGovernance, feeScale6)
221223 if ((minAmountToReceive > amountWithFee))
222224 then throw(((("Calculated amount to receive " + toString(amountWithFee)) + " is less than specified minimum ") + toString(minAmountToReceive)))
223225 else $Tuple3(amountWithoutFee, amountWithFee, governanceReward)
224226 }
225227
226228
227229 func calculateVirtPay (pmtAmount,balance,fee) = {
228230 let F = (feeScale6 - fee)
229231 let k = fraction(fee, 60, 100)
230232 let a = (scale8 + fraction((F * k), scale8, (feeScale6 * feeScale6)))
231233 let b = ((((balance + fraction(balance, F, feeScale6)) + fraction(pmtAmount, F, feeScale6)) - pmtAmount) - fraction(pmtAmount, (F * k), (feeScale6 * feeScale6)))
232234 let c = (-(toBigInt(balance)) * toBigInt(pmtAmount))
233235 let D = ((toBigInt(b) * toBigInt(b)) - fraction((toBigInt(4) * c), toBigInt(a), toBigInt(scale8)))
234236 toInt(fraction((-(toBigInt(b)) + sqrtBigInt(D, 0, 0, DOWN)), toBigInt(scale8), toBigInt((2 * a))))
235237 }
236238
237239
238240 func parsePaymentAsset (assetId) = if ((assetId == base58''))
239241 then unit
240242 else assetId
241243
242244
243245 func suspendSuspicious (accountBalanceA,accountBalanceB,balanceA,balanceB,assetIdA,assetIdB) = suspend(((((((((((((((("Suspicious state. Actual balances: " + toString(accountBalanceA)) + " ") + assetIdA) + ", ") + toString(accountBalanceB)) + " ") + assetIdB) + ". State: ") + toString(balanceA)) + " ") + assetIdA) + ", ") + toString(balanceB)) + " ") + assetIdB))
244246
245247
246248 func isActive () = if (active)
247249 then unit
248250 else throw("DApp is inactive at this moment")
249251
250252
251253 func isOraclePool (poolAddress) = if (isDefined(getString(oracle, (kOraclePool + poolAddress))))
252254 then unit
253255 else throw("DApp is not registered pool")
254256
255257
258+func isDepricated (poolAddress) = if (!(valueOrElse(getBoolean(oracle, (kDeprecated + poolAddress)), false)))
259+ then unit
260+ else throw("Pool is deprecated. Only withdraw action allowed.")
261+
262+
256263 func getPoolBalances (pool,assetIdA,assetIdB) = {
257264 let balanceA = getIntegerValue(pool, kBalanceA)
258265 let balanceB = getIntegerValue(pool, kBalanceB)
259266 let stakedAmountA = stakedAmount(assetIdA, pool)
260267 let stakedAmountB = stakedAmount(assetIdB, pool)
261268 let accountBalanceA = (accountBalance(assetIdA, pool) + stakedAmountA)
262269 let accountBalanceB = (accountBalance(assetIdB, pool) + stakedAmountB)
263270 let shareSupply = getIntegerValue(pool, kShareAssetSupply)
264271 $Tuple5(balanceA, balanceB, accountBalanceA, accountBalanceB, shareSupply)
265272 }
266273
267274
268275 func getPoolAssets (pool) = {
269276 let strAssetIdA = getStringValue(pool, kAssetIdA)
270277 let strAssetIdB = getStringValue(pool, kAssetIdB)
271278 let assetIdA = if ((strAssetIdA == "WAVES"))
272279 then unit
273280 else fromBase58String(strAssetIdA)
274281 let assetIdB = if ((strAssetIdB == "WAVES"))
275282 then unit
276283 else fromBase58String(strAssetIdB)
277284 let shareAssetId = fromBase58String(getStringValue(pool, kShareAssetId))
278285 $Tuple5(strAssetIdA, strAssetIdB, assetIdA, assetIdB, shareAssetId)
279286 }
280287
281288
282289 func getFeeParams (pool,caller) = {
283290 let feeDiscount = calculateFeeDiscount(caller)
284291 let fee = fraction(getIntegerValue(pool, kFee), feeDiscount, feeScale6, CEILING)
285292 let govFee = fraction(fee, 40, 100)
286293 $Tuple2(fee, govFee)
287294 }
288295
289296
290297 @Callable(i)
291298 func init (callerBytes,args,pAmounts,pAssetIds) = {
292299 let caller = Address(callerBytes)
293- let $t090769154 = $Tuple2(pAmounts[0], parsePaymentAsset(pAssetIds[0]))
294- let pmtAmountA = $t090769154._1
295- let pmtAssetIdA = $t090769154._2
296- let $t091599237 = $Tuple2(pAmounts[1], parsePaymentAsset(pAssetIds[1]))
297- let pmtAmountB = $t091599237._1
298- let pmtAssetIdB = $t091599237._2
300+ let $t092919369 = $Tuple2(pAmounts[0], parsePaymentAsset(pAssetIds[0]))
301+ let pmtAmountA = $t092919369._1
302+ let pmtAssetIdA = $t092919369._2
303+ let $t093749452 = $Tuple2(pAmounts[1], parsePaymentAsset(pAssetIds[1]))
304+ let pmtAmountB = $t093749452._1
305+ let pmtAssetIdB = $t093749452._2
299306 if (!(containsElement([adminPubKey1, adminPubKey2, adminPubKey3, adminInvokePubKey], i.originCallerPublicKey)))
300307 then throw("Only admin can call this function")
301308 else if ((size(args) != 1))
302309 then throw("Wrong args size")
303310 else if (isDefined(getBoolean(caller, kActive)))
304311 then throw("DApp is already active")
305312 else if ((pmtAssetIdA == pmtAssetIdB))
306313 then throw("Assets must be different")
307314 else {
308- let $t096729749 = getAssetInfo(pmtAssetIdA)
309- let pmtStrAssetIdA = $t096729749._1
310- let pmtAssetNameA = $t096729749._2
311- let pmtDecimalsA = $t096729749._3
312- let $t097589835 = getAssetInfo(pmtAssetIdB)
313- let pmtStrAssetIdB = $t097589835._1
314- let pmtAssetNameB = $t097589835._2
315- let pmtDecimalsB = $t097589835._3
315+ let $t098879964 = getAssetInfo(pmtAssetIdA)
316+ let pmtStrAssetIdA = $t098879964._1
317+ let pmtAssetNameA = $t098879964._2
318+ let pmtDecimalsA = $t098879964._3
319+ let $t0997310050 = getAssetInfo(pmtAssetIdB)
320+ let pmtStrAssetIdB = $t0997310050._1
321+ let pmtAssetNameB = $t0997310050._2
322+ let pmtDecimalsB = $t0997310050._3
316323 let firstHarvest = (args[0] == "true")
317324 let shareName = ((("s" + take(pmtAssetNameA, 7)) + "_") + take(pmtAssetNameB, 7))
318325 let shareDescription = ((((("ShareToken of SwopFi protocol for " + pmtAssetNameA) + " and ") + pmtAssetNameB) + " at address ") + toString(this))
319326 let shareDecimals = ((pmtDecimalsA + pmtDecimalsB) / 2)
320327 let arg1 = pow(pmtAmountA, pmtDecimalsA, 5, 1, pmtDecimalsA, DOWN)
321328 let arg2 = pow(pmtAmountB, pmtDecimalsB, 5, 1, pmtDecimalsB, DOWN)
322329 let arg3 = pow(10, 0, shareDecimals, 0, 0, DOWN)
323330 let shareInitialSupply = fraction(arg1, arg2, arg3)
324331 let shareIssue = Issue(shareName, shareDescription, shareInitialSupply, shareDecimals, true)
325332 let shareIssueId = calculateAssetId(shareIssue)
326333 let stake1 = if (contains(stakingAssets, pmtStrAssetIdA))
327334 then invoke(i.caller, "stakeUnstake", [true, pmtAmountA, pmtStrAssetIdA], nil)
328335 else 0
329336 if ((stake1 == stake1))
330337 then {
331338 let stake2 = if (contains(stakingAssets, pmtStrAssetIdB))
332339 then invoke(i.caller, "stakeUnstake", [true, pmtAmountB, pmtStrAssetIdB], nil)
333340 else 0
334341 if ((stake2 == stake2))
335342 then {
336343 let baseEntry = [StringEntry(kVersion, version), BooleanEntry(kActive, true), StringEntry(kAssetIdA, pmtStrAssetIdA), StringEntry(kAssetIdB, pmtStrAssetIdB), IntegerEntry(kBalanceA, pmtAmountA), IntegerEntry(kBalanceB, pmtAmountB), IntegerEntry(kFee, getIntegerValue(oracle, "base_fee_cpmm")), shareIssue, StringEntry(kShareAssetId, toBase58String(shareIssueId)), IntegerEntry(kShareAssetSupply, shareInitialSupply), ScriptTransfer(caller, shareInitialSupply, shareIssueId)]
337344 if (firstHarvest)
338345 then $Tuple2(nil, $Tuple2((baseEntry ++ [BooleanEntry(kFirstHarvest, firstHarvest), IntegerEntry(kFirstHarvestHeight, (startHeight + (firstHarvestEndPeriod * periodLength)))]), nil))
339346 else $Tuple2(nil, $Tuple2(baseEntry, nil))
340347 }
341348 else throw("Strict value is not equal to itself.")
342349 }
343350 else throw("Strict value is not equal to itself.")
344351 }
345352 }
346353
347354
348355
349356 @Callable(i)
350357 func initWithInitRatio (callerBytes,args,pAmounts,pAssetIds) = {
351358 let caller = Address(callerBytes)
352- let $t01205612256 = $Tuple5(parseIntValue(args[0]), parseIntValue(args[1]), args[2], args[3], (args[4] == "true"))
353- let amtAssetA = $t01205612256._1
354- let amtAssetB = $t01205612256._2
355- let assetIdAStr = $t01205612256._3
356- let assetIdBStr = $t01205612256._4
357- let firstHarvest = $t01205612256._5
359+ let $t01227112471 = $Tuple5(parseIntValue(args[0]), parseIntValue(args[1]), args[2], args[3], (args[4] == "true"))
360+ let amtAssetA = $t01227112471._1
361+ let amtAssetB = $t01227112471._2
362+ let assetIdAStr = $t01227112471._3
363+ let assetIdBStr = $t01227112471._4
364+ let firstHarvest = $t01227112471._5
358365 if (!(containsElement([adminPubKey1, adminPubKey2, adminPubKey3, adminInvokePubKey], i.originCallerPublicKey)))
359366 then throw("Only admin can call this function")
360367 else if ((size(args) != 5))
361368 then throw("Wrong args size")
362369 else if (isDefined(getBoolean(caller, kActive)))
363370 then throw("DApp is already active")
364371 else if ((assetIdAStr == assetIdBStr))
365372 then throw("Assets must be different")
366373 else {
367- let $t01269112768 = getAssetInfo(assetIdAStr)
368- let pmtStrAssetIdA = $t01269112768._1
369- let pmtAssetNameA = $t01269112768._2
370- let pmtDecimalsA = $t01269112768._3
371- let $t01277712854 = getAssetInfo(assetIdBStr)
372- let pmtStrAssetIdB = $t01277712854._1
373- let pmtAssetNameB = $t01277712854._2
374- let pmtDecimalsB = $t01277712854._3
374+ let $t01290612983 = getAssetInfo(assetIdAStr)
375+ let pmtStrAssetIdA = $t01290612983._1
376+ let pmtAssetNameA = $t01290612983._2
377+ let pmtDecimalsA = $t01290612983._3
378+ let $t01299213069 = getAssetInfo(assetIdBStr)
379+ let pmtStrAssetIdB = $t01299213069._1
380+ let pmtAssetNameB = $t01299213069._2
381+ let pmtDecimalsB = $t01299213069._3
375382 let shareName = ((("s" + take(pmtAssetNameA, 7)) + "_") + take(pmtAssetNameB, 7))
376383 let shareDescription = ((((("ShareToken of SwopFi protocol for " + pmtAssetNameA) + " and ") + pmtAssetNameB) + " at address ") + toString(this))
377384 let shareDecimals = ((pmtDecimalsA + pmtDecimalsB) / 2)
378385 let shareInitialSupply = 0
379386 let shareIssue = Issue(shareName, shareDescription, shareInitialSupply, shareDecimals, true)
380387 let shareIssueId = calculateAssetId(shareIssue)
381388 let baseEntry = [StringEntry(kVersion, version), BooleanEntry(kActive, true), StringEntry(kAssetIdA, pmtStrAssetIdA), StringEntry(kAssetIdB, pmtStrAssetIdB), IntegerEntry(kBalanceInitA, amtAssetA), IntegerEntry(kBalanceInitB, amtAssetB), IntegerEntry(kBalanceA, 0), IntegerEntry(kBalanceB, 0), IntegerEntry(kFee, getIntegerValue(oracle, "base_fee_cpmm")), shareIssue, StringEntry(kShareAssetId, toBase58String(shareIssueId)), IntegerEntry(kShareAssetSupply, shareInitialSupply)]
382389 if (firstHarvest)
383390 then $Tuple2(nil, $Tuple2((baseEntry ++ [BooleanEntry(kFirstHarvest, firstHarvest), IntegerEntry(kFirstHarvestHeight, (startHeight + (firstHarvestEndPeriod * periodLength)))]), nil))
384391 else $Tuple2(nil, $Tuple2(baseEntry, nil))
385392 }
386393 }
387394
388395
389396
390397 @Callable(i)
391398 func keepLimitForFirstHarvest (callerBytes,args,pAmounts,pAssetIds) = valueOrElse(isOraclePool(toString(i.caller)), valueOrElse(isActive(), if (!(containsElement([adminPubKey1, adminPubKey2, adminPubKey3, adminInvokePubKey], i.originCallerPublicKey)))
392399 then throw("Only admin can call this function")
393400 else if ((size(args) != 1))
394401 then throw("Wrong args size")
395402 else {
396403 let shareLimit = parseIntValue(args[0])
397404 $Tuple2(nil, $Tuple2([IntegerEntry(kShareLimit, shareLimit)], nil))
398405 }))
399406
400407
401408
402409 @Callable(i)
403-func exchange (callerBytes,args,pAmounts,pAssetIds) = valueOrElse(isOraclePool(toString(i.caller)), valueOrElse(isActive(), {
410+func exchange (callerBytes,args,pAmounts,pAssetIds) = valueOrElse(isOraclePool(toString(i.caller)), valueOrElse(isDepricated(toString(i.caller)), valueOrElse(isActive(), {
404411 let caller = Address(callerBytes)
405- let $t01524015316 = $Tuple2(pAmounts[0], parsePaymentAsset(pAssetIds[0]))
406- let pmtAmount = $t01524015316._1
407- let pmtAssetId = $t01524015316._2
412+ let $t01549515571 = $Tuple2(pAmounts[0], parsePaymentAsset(pAssetIds[0]))
413+ let pmtAmount = $t01549515571._1
414+ let pmtAssetId = $t01549515571._2
408415 let minAmountToReceive = parseIntValue(args[0])
409- let $t01538915465 = getPoolAssets(i.caller)
410- let strAssetIdA = $t01538915465._1
411- let strAssetIdB = $t01538915465._2
412- let assetIdA = $t01538915465._3
413- let assetIdB = $t01538915465._4
414- let $t01547815584 = getPoolBalances(i.caller, assetIdA, assetIdB)
415- let balanceA = $t01547815584._1
416- let balanceB = $t01547815584._2
417- let accountBalanceA = $t01547815584._3
418- let accountBalanceB = $t01547815584._4
416+ let $t01563615712 = getPoolAssets(i.caller)
417+ let strAssetIdA = $t01563615712._1
418+ let strAssetIdB = $t01563615712._2
419+ let assetIdA = $t01563615712._3
420+ let assetIdB = $t01563615712._4
421+ let $t01572115827 = getPoolBalances(i.caller, assetIdA, assetIdB)
422+ let balanceA = $t01572115827._1
423+ let balanceB = $t01572115827._2
424+ let accountBalanceA = $t01572115827._3
425+ let accountBalanceB = $t01572115827._4
419426 if ((size(args) != 1))
420427 then throw("Wrong args size")
421428 else if (if ((balanceA == 0))
422429 then true
423430 else (balanceB == 0))
424431 then throw("Can't exchange with zero balance")
425432 else if ((0 >= minAmountToReceive))
426433 then throw(("Minimal amount to receive must be positive. Actual: " + toString(minAmountToReceive)))
427434 else if ((size(pAmounts) != 1))
428435 then throw("One attached payment expected")
429436 else if (!(containsElement([assetIdA, assetIdB], pmtAssetId)))
430437 then throw(((("Incorrect asset attached. Expected: " + strAssetIdA) + " or ") + strAssetIdB))
431438 else if (if ((balanceA > accountBalanceA))
432439 then true
433440 else (balanceB > accountBalanceB))
434441 then $Tuple2(nil, ([ScriptTransfer(caller, pmtAmount, pmtAssetId)] ++ suspendSuspicious(accountBalanceA, accountBalanceB, balanceA, balanceB, strAssetIdA, strAssetIdB)))
435442 else {
436- let $t01655216610 = getFeeParams(i.caller, i.originCaller)
437- let fee = $t01655216610._1
438- let govFee = $t01655216610._2
439- let $t01662716964 = if ((pmtAssetId == assetIdA))
443+ let $t01672716785 = getFeeParams(i.caller, i.originCaller)
444+ let fee = $t01672716785._1
445+ let govFee = $t01672716785._2
446+ let $t01679817119 = if ((pmtAssetId == assetIdA))
440447 then calculateFees(pmtAmount, minAmountToReceive, balanceA, balanceB, fee, govFee)
441448 else calculateFees(pmtAmount, minAmountToReceive, balanceB, balanceA, fee, govFee)
442- let amountWithoutFee = $t01662716964._1
443- let amountWithFee = $t01662716964._2
444- let governanceReward = $t01662716964._3
445- let $t01698217307 = if ((pmtAssetId == assetIdA))
449+ let amountWithoutFee = $t01679817119._1
450+ let amountWithFee = $t01679817119._2
451+ let governanceReward = $t01679817119._3
452+ let $t01713317442 = if ((pmtAssetId == assetIdA))
446453 then $Tuple3((balanceA + pmtAmount), ((balanceB - amountWithFee) - governanceReward), assetIdB)
447454 else $Tuple3(((balanceA - amountWithFee) - governanceReward), (balanceB + pmtAmount), assetIdA)
448- let newBalanceA = $t01698217307._1
449- let newBalanceB = $t01698217307._2
450- let assetIdSend = $t01698217307._3
451- let $t01732517575 = if ((pmtAssetId == assetIdA))
455+ let newBalanceA = $t01713317442._1
456+ let newBalanceB = $t01713317442._2
457+ let assetIdSend = $t01713317442._3
458+ let $t01745617690 = if ((pmtAssetId == assetIdA))
452459 then $Tuple2(pmtAmount, (amountWithFee + governanceReward))
453460 else $Tuple2((amountWithFee + governanceReward), pmtAmount)
454- let stakeAmountA = $t01732517575._1
455- let stakeAmountB = $t01732517575._2
461+ let stakeAmountA = $t01745617690._1
462+ let stakeAmountB = $t01745617690._2
456463 let stake1 = if (contains(stakingAssets, strAssetIdA))
457464 then invoke(i.caller, "stakeUnstake", [(pmtAssetId == assetIdA), stakeAmountA, strAssetIdA], nil)
458465 else 0
459466 if ((stake1 == stake1))
460467 then {
461468 let stake2 = if (contains(stakingAssets, strAssetIdB))
462469 then invoke(i.caller, "stakeUnstake", [(pmtAssetId == assetIdB), stakeAmountB, strAssetIdB], nil)
463470 else 0
464471 if ((stake2 == stake2))
465472 then $Tuple2(nil, $Tuple2([IntegerEntry(kBalanceA, newBalanceA), IntegerEntry(kBalanceB, newBalanceB), ScriptTransfer(caller, amountWithFee, assetIdSend), ScriptTransfer(moneyBoxAddress, governanceReward, assetIdSend)], [amountWithFee, assetIdSend]))
466473 else throw("Strict value is not equal to itself.")
467474 }
468475 else throw("Strict value is not equal to itself.")
469476 }
470- }))
477+ })))
471478
472479
473480
474481 @Callable(i)
475-func replenishWithTwoTokens (callerBytes,args,pAmounts,pAssetIds) = valueOrElse(isOraclePool(toString(i.caller)), valueOrElse(isActive(), {
482+func replenishWithTwoTokens (callerBytes,args,pAmounts,pAssetIds) = valueOrElse(isOraclePool(toString(i.caller)), valueOrElse(isDepricated(toString(i.caller)), valueOrElse(isActive(), {
476483 let caller = Address(callerBytes)
477484 let pmtAssetIdA = parsePaymentAsset(pAssetIds[0])
478485 let pmtAssetIdB = parsePaymentAsset(pAssetIds[1])
479486 let stakeFarming = (args[0] == "true")
480487 let lockType = parseIntValue(args[1])
481- let $t01883818928 = getPoolAssets(i.caller)
482- let strAssetIdA = $t01883818928._1
483- let strAssetIdB = $t01883818928._2
484- let assetIdA = $t01883818928._3
485- let assetIdB = $t01883818928._4
486- let shareAssetId = $t01883818928._5
487- let $t01894119065 = getPoolBalances(i.caller, assetIdA, assetIdB)
488- let balanceA = $t01894119065._1
489- let balanceB = $t01894119065._2
490- let accountBalanceA = $t01894119065._3
491- let accountBalanceB = $t01894119065._4
492- let shareAssetSupply = $t01894119065._5
488+ let $t01893219022 = getPoolAssets(i.caller)
489+ let strAssetIdA = $t01893219022._1
490+ let strAssetIdB = $t01893219022._2
491+ let assetIdA = $t01893219022._3
492+ let assetIdB = $t01893219022._4
493+ let shareAssetId = $t01893219022._5
494+ let $t01903119155 = getPoolBalances(i.caller, assetIdA, assetIdB)
495+ let balanceA = $t01903119155._1
496+ let balanceB = $t01903119155._2
497+ let accountBalanceA = $t01903119155._3
498+ let accountBalanceB = $t01903119155._4
499+ let shareAssetSupply = $t01903119155._5
493500 if ((size(args) != 2))
494501 then throw("Wrong args size")
495502 else if (if ((size(pAmounts) != 2))
496503 then (size(pAmounts) != 3)
497504 else false)
498505 then throw("Two or three payments expected")
499506 else if (if ((pmtAssetIdA != assetIdA))
500507 then true
501508 else (pmtAssetIdB != assetIdB))
502509 then throw(((("Incorrect assets attached. Expected: " + strAssetIdA) + " and ") + strAssetIdB))
503510 else if (if ((balanceA > accountBalanceA))
504511 then true
505512 else (balanceB > accountBalanceB))
506513 then $Tuple2(nil, ([ScriptTransfer(caller, pAmounts[0], pmtAssetIdA), ScriptTransfer(caller, pAmounts[1], pmtAssetIdB)] ++ (if ((size(pAmounts) == 3))
507514 then [AttachedPayment(if ((pAssetIds[2] == base58''))
508515 then unit
509516 else pAssetIds[2], pAmounts[2])]
510517 else (nil ++ suspendSuspicious(accountBalanceA, accountBalanceB, balanceA, balanceB, strAssetIdA, strAssetIdB)))))
511518 else {
512- let $t02006620143 = getAssetInfo(pmtAssetIdA)
513- let pmtStrAssetIdA = $t02006620143._1
514- let pmtAssetNameA = $t02006620143._2
515- let pmtDecimalsA = $t02006620143._3
516- let $t02016020237 = getAssetInfo(pmtAssetIdB)
517- let pmtStrAssetIdB = $t02016020237._1
518- let pmtAssetNameB = $t02016020237._2
519- let pmtDecimalsB = $t02016020237._3
519+ let $t02008820165 = getAssetInfo(pmtAssetIdA)
520+ let pmtStrAssetIdA = $t02008820165._1
521+ let pmtAssetNameA = $t02008820165._2
522+ let pmtDecimalsA = $t02008820165._3
523+ let $t02017820255 = getAssetInfo(pmtAssetIdB)
524+ let pmtStrAssetIdB = $t02017820255._1
525+ let pmtAssetNameB = $t02017820255._2
526+ let pmtDecimalsB = $t02017820255._3
520527 let initial = ((balanceA + balanceB) == 0)
521- let $t02031221212 = if (initial)
528+ let $t02032221178 = if (initial)
522529 then $Tuple5(pAmounts[0], pAmounts[1], 0, pmtAssetIdA, toBigInt(1))
523530 else {
524531 let ratioShareTokensInA = fraction(scale16, toBigInt(pAmounts[0]), toBigInt(balanceA))
525532 let ratioShareTokensInB = fraction(scale16, toBigInt(pAmounts[1]), toBigInt(balanceB))
526533 if ((ratioShareTokensInB > ratioShareTokensInA))
527534 then {
528535 let pmt = fraction(pAmounts[0], balanceB, balanceA)
529536 $Tuple5(pAmounts[0], pmt, (pAmounts[1] - pmt), pmtAssetIdB, ratioShareTokensInA)
530537 }
531538 else {
532539 let pmt = fraction(pAmounts[1], balanceA, balanceB)
533540 $Tuple5(pmt, pAmounts[1], (pAmounts[0] - pmt), pmtAssetIdA, ratioShareTokensInB)
534541 }
535542 }
536- let pmtAmountA = $t02031221212._1
537- let pmtAmountB = $t02031221212._2
538- let change = $t02031221212._3
539- let changeAssetId = $t02031221212._4
540- let shareTokenRatio = $t02031221212._5
543+ let pmtAmountA = $t02032221178._1
544+ let pmtAmountB = $t02032221178._2
545+ let change = $t02032221178._3
546+ let changeAssetId = $t02032221178._4
547+ let shareTokenRatio = $t02032221178._5
541548 let shareTokenToPayAmount = if (initial)
542549 then {
543550 let shareDecimals = ((pmtDecimalsA + pmtDecimalsB) / 2)
544551 fraction(pow(pmtAmountA, pmtDecimalsA, 5, 1, pmtDecimalsA, DOWN), pow(pmtAmountB, pmtDecimalsB, 5, 1, pmtDecimalsB, DOWN), pow(10, 0, shareDecimals, 0, 0, DOWN))
545552 }
546553 else toInt(fraction(shareTokenRatio, toBigInt(shareAssetSupply), scale16))
547554 if ((shareTokenToPayAmount == 0))
548555 then throw("Too small amount to replenish")
549556 else if ((0 > change))
550557 then throw("Change < 0")
551558 else {
552559 let stake1 = if (contains(stakingAssets, pmtStrAssetIdA))
553560 then invoke(i.caller, "stakeUnstake", [true, pmtAmountA, pmtStrAssetIdA], nil)
554561 else 0
555562 if ((stake1 == stake1))
556563 then {
557564 let stake2 = if (contains(stakingAssets, pmtStrAssetIdB))
558565 then invoke(i.caller, "stakeUnstake", [true, pmtAmountB, pmtStrAssetIdB], nil)
559566 else 0
560567 if ((stake2 == stake2))
561568 then {
562569 let shareTokenST = if (stakeFarming)
563570 then {
564571 let stPayments = ([AttachedPayment(shareAssetId, shareTokenToPayAmount)] ++ (if ((size(pAmounts) == 3))
565572 then [AttachedPayment(if ((pAssetIds[2] == base58''))
566573 then unit
567574 else pAssetIds[2], pAmounts[2])]
568575 else nil))
569576 let reissue = invoke(i.caller, "reissueShareToken", [shareTokenToPayAmount], nil)
570577 if ((reissue == reissue))
571578 then {
572579 let stake3 = invoke(farmingAddress, "lockShareTokensFromPool", [callerBytes, toString(i.caller), lockType], stPayments)
573580 if ((stake3 == stake3))
574581 then nil
575582 else throw("Strict value is not equal to itself.")
576583 }
577584 else throw("Strict value is not equal to itself.")
578585 }
579586 else [Reissue(shareAssetId, shareTokenToPayAmount, true), ScriptTransfer(caller, shareTokenToPayAmount, shareAssetId)]
580587 $Tuple2(nil, $Tuple2(([IntegerEntry(kBalanceA, (balanceA + pmtAmountA)), IntegerEntry(kBalanceB, (balanceB + pmtAmountB)), IntegerEntry(kShareAssetSupply, (shareAssetSupply + shareTokenToPayAmount)), ScriptTransfer(caller, change, changeAssetId)] ++ shareTokenST), nil))
581588 }
582589 else throw("Strict value is not equal to itself.")
583590 }
584591 else throw("Strict value is not equal to itself.")
585592 }
586593 }
587- }))
594+ })))
588595
589596
590597
591598 @Callable(i)
592-func replenishWithOneToken (callerBytes,args,pAmounts,pAssetIds) = valueOrElse(isOraclePool(toString(i.caller)), valueOrElse(isActive(), {
599+func replenishWithOneToken (callerBytes,args,pAmounts,pAssetIds) = valueOrElse(isOraclePool(toString(i.caller)), valueOrElse(isDepricated(toString(i.caller)), valueOrElse(isActive(), {
593600 let caller = Address(callerBytes)
594601 let pmtAssetId = parsePaymentAsset(pAssetIds[0])
595602 let pmtAmount = pAmounts[0]
596603 let virtGetMinAmount = parseIntValue(args[0])
597604 let stakeFarming = (args[1] == "true")
598605 let lockType = parseIntValue(args[2])
599- let $t02413824228 = getPoolAssets(i.caller)
600- let strAssetIdA = $t02413824228._1
601- let strAssetIdB = $t02413824228._2
602- let assetIdA = $t02413824228._3
603- let assetIdB = $t02413824228._4
604- let shareAssetId = $t02413824228._5
605- let $t02424124365 = getPoolBalances(i.caller, assetIdA, assetIdB)
606- let balanceA = $t02424124365._1
607- let balanceB = $t02424124365._2
608- let accountBalanceA = $t02424124365._3
609- let accountBalanceB = $t02424124365._4
610- let shareAssetSupply = $t02424124365._5
606+ let $t02393324023 = getPoolAssets(i.caller)
607+ let strAssetIdA = $t02393324023._1
608+ let strAssetIdB = $t02393324023._2
609+ let assetIdA = $t02393324023._3
610+ let assetIdB = $t02393324023._4
611+ let shareAssetId = $t02393324023._5
612+ let $t02402824152 = getPoolBalances(i.caller, assetIdA, assetIdB)
613+ let balanceA = $t02402824152._1
614+ let balanceB = $t02402824152._2
615+ let accountBalanceA = $t02402824152._3
616+ let accountBalanceB = $t02402824152._4
617+ let shareAssetSupply = $t02402824152._5
611618 let initial = ((balanceA + balanceB) == 0)
612619 if ((size(args) != 3))
613620 then throw("Wrong args size")
614621 else if (if ((size(pAmounts) != 1))
615622 then (size(pAmounts) != 2)
616623 else false)
617624 then throw("Two or one attached assets expected")
618625 else if (if ((pmtAssetId != assetIdA))
619626 then (pmtAssetId != assetIdB)
620627 else false)
621628 then throw(((("Incorrect asset attached. Expected: " + strAssetIdA) + " or ") + strAssetIdB))
622629 else if (initial)
623630 then throw("For initial exchanger you need to use two tokens")
624631 else if (if ((balanceA > accountBalanceA))
625632 then true
626633 else (balanceB > accountBalanceB))
627634 then $Tuple2(nil, ([ScriptTransfer(caller, pmtAmount, pmtAssetId)] ++ (if ((size(pAmounts) == 2))
628635 then [AttachedPayment(if ((pAssetIds[2] == base58''))
629636 then unit
630637 else pAssetIds[2], pAmounts[2])]
631638 else (nil ++ suspendSuspicious(accountBalanceA, accountBalanceB, balanceA, balanceB, strAssetIdA, strAssetIdB)))))
632639 else {
633- let $t02542125479 = getFeeParams(i.caller, i.originCaller)
634- let fee = $t02542125479._1
635- let govFee = $t02542125479._2
636- let $t02549627834 = if ((pmtAssetId == assetIdA))
640+ let $t02506425122 = getFeeParams(i.caller, i.originCaller)
641+ let fee = $t02506425122._1
642+ let govFee = $t02506425122._2
643+ let $t02513127293 = if ((pmtAssetId == assetIdA))
637644 then {
638645 let virtPayAmount = calculateVirtPay(pmtAmount, balanceA, fee)
639- let $t02577525912 = calculateFees(virtPayAmount, virtGetMinAmount, balanceA, balanceB, fee, govFee)
640- let amountWithoutFee = $t02577525912._1
641- let amountWithFee = $t02577525912._2
642- let governanceReward = $t02577525912._3
646+ let $t02538625523 = calculateFees(virtPayAmount, virtGetMinAmount, balanceA, balanceB, fee, govFee)
647+ let amountWithoutFee = $t02538625523._1
648+ let amountWithFee = $t02538625523._2
649+ let governanceReward = $t02538625523._3
643650 let balanceAVirt = (balanceA + virtPayAmount)
644651 let balanceBVirt = ((balanceB + amountWithoutFee) - governanceReward)
645652 let newBalanceA = (balanceA + pmtAmount)
646653 let newBalanceB = (balanceB - governanceReward)
647654 let ratioShareTokensInA = fraction(toBigInt((pmtAmount - virtPayAmount)), scale16, toBigInt(balanceAVirt))
648655 let ratioShareTokensInB = fraction(toBigInt(amountWithFee), scale16, toBigInt(balanceBVirt))
649656 let shareTokenToPayAmount = toInt(fraction(min([ratioShareTokensInA, ratioShareTokensInB]), toBigInt(shareAssetSupply), scale16))
650657 $Tuple7(newBalanceA, newBalanceB, shareTokenToPayAmount, governanceReward, assetIdB, strAssetIdB, strAssetIdA)
651658 }
652659 else {
653660 let virtPayAmount = calculateVirtPay(pmtAmount, balanceB, fee)
654- let $t02687327010 = calculateFees(virtPayAmount, virtGetMinAmount, balanceB, balanceA, fee, govFee)
655- let amountWithoutFee = $t02687327010._1
656- let amountWithFee = $t02687327010._2
657- let governanceReward = $t02687327010._3
661+ let $t02639626533 = calculateFees(virtPayAmount, virtGetMinAmount, balanceB, balanceA, fee, govFee)
662+ let amountWithoutFee = $t02639626533._1
663+ let amountWithFee = $t02639626533._2
664+ let governanceReward = $t02639626533._3
658665 let balanceAVirt = ((balanceA + amountWithoutFee) - governanceReward)
659666 let balanceBVirt = (balanceB + virtPayAmount)
660667 let newBalanceA = (balanceA - governanceReward)
661668 let newBalanceB = (balanceB + pmtAmount)
662669 let ratioShareTokensInA = fraction(toBigInt(amountWithFee), scale16, toBigInt(balanceAVirt))
663670 let ratioShareTokensInB = fraction(toBigInt((pmtAmount - virtPayAmount)), scale16, toBigInt(balanceBVirt))
664671 let shareTokenToPayAmount = toInt(fraction(min([ratioShareTokensInA, ratioShareTokensInB]), toBigInt(shareAssetSupply), scale16))
665672 $Tuple7(newBalanceA, newBalanceB, shareTokenToPayAmount, governanceReward, assetIdA, strAssetIdA, strAssetIdB)
666673 }
667- let newBalanceA = $t02549627834._1
668- let newBalanceB = $t02549627834._2
669- let shareTokenToPayAmount = $t02549627834._3
670- let govReward = $t02549627834._4
671- let govRewardAsset = $t02549627834._5
672- let govRewardAssetStr = $t02549627834._6
673- let pmtAssetIdStr = $t02549627834._7
674+ let newBalanceA = $t02513127293._1
675+ let newBalanceB = $t02513127293._2
676+ let shareTokenToPayAmount = $t02513127293._3
677+ let govReward = $t02513127293._4
678+ let govRewardAsset = $t02513127293._5
679+ let govRewardAssetStr = $t02513127293._6
680+ let pmtAssetIdStr = $t02513127293._7
674681 if ((shareTokenToPayAmount == 0))
675682 then throw("Too small amount to replenish")
676683 else {
677684 let stake1 = if (contains(stakingAssets, pmtAssetIdStr))
678685 then invoke(i.caller, "stakeUnstake", [true, pmtAmount, pmtAssetIdStr], nil)
679686 else 0
680687 if ((stake1 == stake1))
681688 then {
682689 let stake2 = if (contains(stakingAssets, govRewardAssetStr))
683690 then invoke(i.caller, "stakeUnstake", [false, govReward, govRewardAssetStr], nil)
684691 else 0
685692 if ((stake2 == stake2))
686693 then {
687694 let shareTokenST = if (stakeFarming)
688695 then {
689696 let stPayments = ([AttachedPayment(shareAssetId, shareTokenToPayAmount)] ++ (if ((size(pAmounts) == 2))
690697 then [AttachedPayment(if ((pAssetIds[1] == base58''))
691698 then unit
692699 else pAssetIds[1], pAmounts[1])]
693700 else nil))
694701 let reissue = invoke(i.caller, "reissueShareToken", [shareTokenToPayAmount], nil)
695702 if ((reissue == reissue))
696703 then {
697704 let stake3 = invoke(farmingAddress, "lockShareTokensFromPool", [callerBytes, toString(i.caller), lockType], stPayments)
698705 if ((stake3 == stake3))
699706 then nil
700707 else throw("Strict value is not equal to itself.")
701708 }
702709 else throw("Strict value is not equal to itself.")
703710 }
704711 else [Reissue(shareAssetId, shareTokenToPayAmount, true), ScriptTransfer(caller, shareTokenToPayAmount, shareAssetId)]
705712 $Tuple2(nil, $Tuple2(([IntegerEntry(kBalanceA, newBalanceA), IntegerEntry(kBalanceB, newBalanceB), IntegerEntry(kShareAssetSupply, (shareAssetSupply + shareTokenToPayAmount)), ScriptTransfer(moneyBoxAddress, govReward, govRewardAsset)] ++ shareTokenST), nil))
706713 }
707714 else throw("Strict value is not equal to itself.")
708715 }
709716 else throw("Strict value is not equal to itself.")
710717 }
711718 }
712- }))
719+ })))
713720
714721
715722
716723 @Callable(i)
717724 func withdraw (callerBytes,args,pAmounts,pAssetIds) = valueOrElse(isOraclePool(toString(i.caller)), valueOrElse(isActive(), {
718725 let time = lastBlock.timestamp
719726 let caller = Address(callerBytes)
720- let $t02998830078 = getPoolAssets(i.caller)
721- let strAssetIdA = $t02998830078._1
722- let strAssetIdB = $t02998830078._2
723- let assetIdA = $t02998830078._3
724- let assetIdB = $t02998830078._4
725- let shareAssetId = $t02998830078._5
726- let $t03009130215 = getPoolBalances(i.caller, assetIdA, assetIdB)
727- let balanceA = $t03009130215._1
728- let balanceB = $t03009130215._2
729- let accountBalanceA = $t03009130215._3
730- let accountBalanceB = $t03009130215._4
731- let shareAssetSupply = $t03009130215._5
732- let $t03022830636 = if ((size(pAmounts) == 1))
727+ let $t02920829298 = getPoolAssets(i.caller)
728+ let strAssetIdA = $t02920829298._1
729+ let strAssetIdB = $t02920829298._2
730+ let assetIdA = $t02920829298._3
731+ let assetIdB = $t02920829298._4
732+ let shareAssetId = $t02920829298._5
733+ let $t02930729431 = getPoolBalances(i.caller, assetIdA, assetIdB)
734+ let balanceA = $t02930729431._1
735+ let balanceB = $t02930729431._2
736+ let accountBalanceA = $t02930729431._3
737+ let accountBalanceB = $t02930729431._4
738+ let shareAssetSupply = $t02930729431._5
739+ let $t02944029820 = if ((size(pAmounts) == 1))
733740 then {
734741 let pAsset = parsePaymentAsset(pAssetIds[0])
735742 if ((pAsset != shareAssetId))
736743 then throw(("Incorrect asset attached. Expected: " + toBase58String(shareAssetId)))
737744 else $Tuple2(pAmounts[0], pAsset)
738745 }
739746 else $Tuple2(0, shareAssetId)
740- let pmtAmount = $t03022830636._1
741- let pmtAssetId = $t03022830636._2
747+ let pmtAmount = $t02944029820._1
748+ let pmtAssetId = $t02944029820._2
742749 if ((size(args) != 1))
743750 then throw("Wrong args size")
744751 else if ((size(pAmounts) > 1))
745752 then throw("One attached payment expected")
746753 else if (if ((balanceA > accountBalanceA))
747754 then true
748755 else (balanceB > accountBalanceB))
749756 then $Tuple2(nil, ([ScriptTransfer(caller, pmtAmount, pmtAssetId)] ++ suspendSuspicious(accountBalanceA, accountBalanceB, balanceA, balanceB, strAssetIdA, strAssetIdB)))
750757 else {
751758 let unlockAmount = parseIntValue(valueOrElse(args[0], "0"))
752759 let unlock = if ((unlockAmount > 0))
753760 then invoke(farmingAddress, "withdrawShareTokensFromPool", [callerBytes, toString(i.caller), unlockAmount], nil)
754761 else 0
755762 if ((unlock == unlock))
756763 then {
757764 let withdrawAmount = (pmtAmount + unlockAmount)
758765 let amountToPayA = fraction(withdrawAmount, balanceA, shareAssetSupply)
759766 let amountToPayB = fraction(withdrawAmount, balanceB, shareAssetSupply)
760767 let stake1 = if (contains(stakingAssets, strAssetIdA))
761768 then invoke(i.caller, "stakeUnstake", [false, amountToPayA, strAssetIdA], nil)
762769 else 0
763770 if ((stake1 == stake1))
764771 then {
765772 let stake2 = if (contains(stakingAssets, strAssetIdB))
766773 then invoke(i.caller, "stakeUnstake", [false, amountToPayB, strAssetIdB], nil)
767774 else 0
768775 if ((stake2 == stake2))
769776 then $Tuple2([ScriptTransfer(i.caller, unlockAmount, shareAssetId)], $Tuple2([IntegerEntry(kBalanceA, (balanceA - amountToPayA)), IntegerEntry(kBalanceB, (balanceB - amountToPayB)), IntegerEntry(kShareAssetSupply, (shareAssetSupply - withdrawAmount)), Burn(shareAssetId, withdrawAmount), ScriptTransfer(caller, amountToPayA, assetIdA), ScriptTransfer(caller, amountToPayB, assetIdB)], nil))
770777 else throw("Strict value is not equal to itself.")
771778 }
772779 else throw("Strict value is not equal to itself.")
773780 }
774781 else throw("Strict value is not equal to itself.")
775782 }
776783 }))
777784
778785
779786
780787 @Callable(i)
781-func withdrawOneToken (callerBytes,args,pAmounts,pAssetIds) = valueOrElse(isOraclePool(toString(i.caller)), valueOrElse(isActive(), {
788+func withdrawOneToken (callerBytes,args,pAmounts,pAssetIds) = valueOrElse(isOraclePool(toString(i.caller)), valueOrElse(isDepricated(toString(i.caller)), valueOrElse(isActive(), {
782789 let caller = Address(callerBytes)
783790 let withdrawAsset = if ((args[0] == ""))
784791 then unit
785792 else fromBase58String(args[0])
786- let $t03294733037 = getPoolAssets(i.caller)
787- let strAssetIdA = $t03294733037._1
788- let strAssetIdB = $t03294733037._2
789- let assetIdA = $t03294733037._3
790- let assetIdB = $t03294733037._4
791- let shareAssetId = $t03294733037._5
792- let $t03305033174 = getPoolBalances(i.caller, assetIdA, assetIdB)
793- let balanceA = $t03305033174._1
794- let balanceB = $t03305033174._2
795- let accountBalanceA = $t03305033174._3
796- let accountBalanceB = $t03305033174._4
797- let shareAssetSupply = $t03305033174._5
798- let $t03318733567 = if ((size(pAmounts) == 1))
793+ let $t03203832128 = getPoolAssets(i.caller)
794+ let strAssetIdA = $t03203832128._1
795+ let strAssetIdB = $t03203832128._2
796+ let assetIdA = $t03203832128._3
797+ let assetIdB = $t03203832128._4
798+ let shareAssetId = $t03203832128._5
799+ let $t03213732261 = getPoolBalances(i.caller, assetIdA, assetIdB)
800+ let balanceA = $t03213732261._1
801+ let balanceB = $t03213732261._2
802+ let accountBalanceA = $t03213732261._3
803+ let accountBalanceB = $t03213732261._4
804+ let shareAssetSupply = $t03213732261._5
805+ let $t03227032622 = if ((size(pAmounts) == 1))
799806 then {
800807 let pAsset = parsePaymentAsset(pAssetIds[0])
801808 if ((pAsset != shareAssetId))
802809 then throw(("Incorrect asset attached. Expected: " + toBase58String(shareAssetId)))
803810 else $Tuple2(pAmounts[0], pAsset)
804811 }
805812 else $Tuple2(0, shareAssetId)
806- let pmtAmount = $t03318733567._1
807- let pmtAssetId = $t03318733567._2
813+ let pmtAmount = $t03227032622._1
814+ let pmtAssetId = $t03227032622._2
808815 let virtMinToRecive = parseIntValue(args[1])
809816 if ((size(args) != 3))
810817 then throw("Wrong args size")
811818 else if ((size(pAmounts) > 1))
812819 then throw("One attached payment expected")
813820 else if ((pmtAssetId != shareAssetId))
814821 then throw(("Incorrect asset attached. Expected: " + toBase58String(shareAssetId)))
815822 else if (!(containsElement([assetIdA, assetIdB], withdrawAsset)))
816823 then throw("Incorrect withdraw asset.")
817824 else if (if ((balanceA > accountBalanceA))
818825 then true
819826 else (balanceB > accountBalanceB))
820827 then $Tuple2(nil, ([ScriptTransfer(caller, pmtAmount, pmtAssetId)] ++ suspendSuspicious(accountBalanceA, accountBalanceB, balanceA, balanceB, strAssetIdA, strAssetIdB)))
821828 else {
822829 let unlockAmount = parseIntValue(valueOrElse(args[2], "0"))
823830 let unlock = if ((unlockAmount > 0))
824831 then invoke(farmingAddress, "withdrawShareTokensFromPool", [callerBytes, toString(i.caller), unlockAmount], nil)
825832 else 0
826833 if ((unlock == unlock))
827834 then {
828835 let withdrawAmount = (pmtAmount + unlockAmount)
829836 let amountToPayA = fraction(withdrawAmount, balanceA, shareAssetSupply)
830837 let amountToPayB = fraction(withdrawAmount, balanceB, shareAssetSupply)
831- let $t03491534973 = getFeeParams(i.caller, i.originCaller)
832- let fee = $t03491534973._1
833- let govFee = $t03491534973._2
834- let $t03499035390 = if ((withdrawAsset == assetIdA))
838+ let $t03388933947 = getFeeParams(i.caller, i.originCaller)
839+ let fee = $t03388933947._1
840+ let govFee = $t03388933947._2
841+ let $t03396034344 = if ((withdrawAsset == assetIdA))
835842 then calculateFees(amountToPayB, virtMinToRecive, (balanceB - amountToPayB), (balanceA - amountToPayA), fee, govFee)
836843 else calculateFees(amountToPayA, virtMinToRecive, (balanceA - amountToPayA), (balanceB - amountToPayB), fee, govFee)
837- let amountWithoutFee = $t03499035390._1
838- let amountWithFee = $t03499035390._2
839- let governanceReward = $t03499035390._3
840- let $t03540736753 = if ((withdrawAsset == assetIdA))
844+ let amountWithoutFee = $t03396034344._1
845+ let amountWithFee = $t03396034344._2
846+ let governanceReward = $t03396034344._3
847+ let $t03435735615 = if ((withdrawAsset == assetIdA))
841848 then {
842849 let unstake = if (contains(stakingAssets, strAssetIdA))
843850 then invoke(i.caller, "stakeUnstake", [false, ((amountToPayA + amountWithFee) + governanceReward), strAssetIdA], nil)
844851 else 0
845852 if ((unstake == unstake))
846853 then $Tuple4((((balanceA - amountToPayA) - amountWithFee) - governanceReward), balanceB, assetIdA, [ScriptTransfer(caller, (amountToPayA + amountWithFee), assetIdA)])
847854 else throw("Strict value is not equal to itself.")
848855 }
849856 else {
850857 let unstake = if (contains(stakingAssets, strAssetIdB))
851858 then invoke(i.caller, "stakeUnstake", [false, ((amountToPayB + amountWithFee) + governanceReward), strAssetIdB], nil)
852859 else 0
853860 if ((unstake == unstake))
854861 then $Tuple4(balanceA, (((balanceB - amountToPayB) - amountWithFee) - governanceReward), assetIdB, [ScriptTransfer(caller, (amountToPayB + amountWithFee), assetIdB)])
855862 else throw("Strict value is not equal to itself.")
856863 }
857- let newBalanceA = $t03540736753._1
858- let newBalanceB = $t03540736753._2
859- let govRewardAssetId = $t03540736753._3
860- let userTransfer = $t03540736753._4
864+ let newBalanceA = $t03435735615._1
865+ let newBalanceB = $t03435735615._2
866+ let govRewardAssetId = $t03435735615._3
867+ let userTransfer = $t03435735615._4
861868 $Tuple2([ScriptTransfer(i.caller, unlockAmount, shareAssetId)], $Tuple2(([IntegerEntry(kBalanceA, newBalanceA), IntegerEntry(kBalanceB, newBalanceB), IntegerEntry(kShareAssetSupply, (shareAssetSupply - withdrawAmount)), Burn(shareAssetId, withdrawAmount), ScriptTransfer(moneyBoxAddress, governanceReward, govRewardAssetId)] ++ userTransfer), nil))
862869 }
863870 else throw("Strict value is not equal to itself.")
864871 }
865- }))
872+ })))
866873
867874
868875
869876 @Callable(i)
870877 func takeIntoAccountExtraFunds (callerBytes,args,pAmounts,pAssetIds) = valueOrElse(isOraclePool(toString(i.caller)), valueOrElse(isActive(), {
871- let $t03747837554 = getPoolAssets(i.caller)
872- let strAssetIdA = $t03747837554._1
873- let strAssetIdB = $t03747837554._2
874- let assetIdA = $t03747837554._3
875- let assetIdB = $t03747837554._4
876- let $t03756737673 = getPoolBalances(i.caller, assetIdA, assetIdB)
877- let balanceA = $t03756737673._1
878- let balanceB = $t03756737673._2
879- let accountBalanceA = $t03756737673._3
880- let accountBalanceB = $t03756737673._4
881- let amountEnrollA = (accountBalanceA - balanceA)
882- let amountEnrollB = (accountBalanceB - balanceB)
883- if ((size(args) != 0))
884- then throw("Wrong args size")
885- else if ((moneyBoxAddress != i.originCaller))
886- then throw("Only the wallet can call this function")
887- else if (if ((0 > amountEnrollA))
888- then true
889- else (0 > amountEnrollB))
890- then suspend("Enroll amount negative")
891- else if (if ((amountEnrollA == 0))
892- then (amountEnrollB == 0)
893- else false)
894- then throw("No money to take")
895- else {
896- let stake1 = if (if (contains(stakingAssets, strAssetIdA))
897- then (amountEnrollA > 0)
878+ let $t03629736373 = getPoolAssets(i.caller)
879+ let strAssetIdA = $t03629736373._1
880+ let strAssetIdB = $t03629736373._2
881+ let assetIdA = $t03629736373._3
882+ let assetIdB = $t03629736373._4
883+ let claim = if (if ((assetIdA == USDN))
884+ then true
885+ else (assetIdB == USDN))
886+ then invoke(i.caller, "claimNetrinoRewards", nil, nil)
887+ else 0
888+ if ((claim == claim))
889+ then {
890+ let $t03653336639 = getPoolBalances(i.caller, assetIdA, assetIdB)
891+ let balanceA = $t03653336639._1
892+ let balanceB = $t03653336639._2
893+ let accountBalanceA = $t03653336639._3
894+ let accountBalanceB = $t03653336639._4
895+ let amountEnrollA = (accountBalanceA - balanceA)
896+ let amountEnrollB = (accountBalanceB - balanceB)
897+ if ((size(args) != 0))
898+ then throw("Wrong args size")
899+ else if ((moneyBoxAddress != i.originCaller))
900+ then throw("Only the wallet can call this function")
901+ else if (if ((0 > amountEnrollA))
902+ then true
903+ else (0 > amountEnrollB))
904+ then suspend("Enroll amount negative")
905+ else if (if ((amountEnrollA == 0))
906+ then (amountEnrollB == 0)
898907 else false)
899- then invoke(i.caller, "stakeUnstake", [true, amountEnrollA, strAssetIdA], nil)
900- else 0
901- if ((stake1 == stake1))
902- then {
903- let stake2 = if (if (contains(stakingAssets, strAssetIdB))
904- then (amountEnrollB > 0)
908+ then throw("No money to take")
909+ else {
910+ let stake1 = if (if (contains(stakingAssets, strAssetIdA))
911+ then (amountEnrollA > 0)
905912 else false)
906- then invoke(i.caller, "stakeUnstake", [true, amountEnrollB, strAssetIdB], nil)
913+ then invoke(i.caller, "stakeUnstake", [true, amountEnrollA, strAssetIdA], nil)
907914 else 0
908- if ((stake2 == stake2))
909- then $Tuple2(nil, $Tuple2([IntegerEntry(kBalanceA, (balanceA + amountEnrollA)), IntegerEntry(kBalanceB, (balanceB + amountEnrollB))], nil))
915+ if ((stake1 == stake1))
916+ then {
917+ let stake2 = if (if (contains(stakingAssets, strAssetIdB))
918+ then (amountEnrollB > 0)
919+ else false)
920+ then invoke(i.caller, "stakeUnstake", [true, amountEnrollB, strAssetIdB], nil)
921+ else 0
922+ if ((stake2 == stake2))
923+ then $Tuple2(nil, $Tuple2([IntegerEntry(kBalanceA, (balanceA + amountEnrollA)), IntegerEntry(kBalanceB, (balanceB + amountEnrollB))], nil))
924+ else throw("Strict value is not equal to itself.")
925+ }
910926 else throw("Strict value is not equal to itself.")
911927 }
912- else throw("Strict value is not equal to itself.")
913- }
928+ }
929+ else throw("Strict value is not equal to itself.")
914930 }))
915931
916932
917933 @Verifier(tx)
918934 func verify () = {
919935 let multiSignedByAdmins = {
920936 let adminPubKey1Signed = if (sigVerify(tx.bodyBytes, tx.proofs[0], adminPubKey1))
921937 then 1
922938 else 0
923939 let adminPubKey2Signed = if (sigVerify(tx.bodyBytes, tx.proofs[1], adminPubKey2))
924940 then 1
925941 else 0
926942 let adminPubKey3Signed = if (sigVerify(tx.bodyBytes, tx.proofs[2], adminPubKey3))
927943 then 1
928944 else 0
929945 (((adminPubKey1Signed + adminPubKey2Signed) + adminPubKey3Signed) >= 2)
930946 }
931947 multiSignedByAdmins
932948 }
933949

github/deemru/w8io/169f3d6 
213.55 ms