tx · 6RkZDoFQ1rj61B28VRiEuxGmqxVt82rWoeVHkzFF3gbz

3MzqQ3HKdkHmJmk9mDhAeAMxmK5D2ztdAe5:  -0.04200000 Waves

2023.06.05 17:51 [2609517] smart account 3MzqQ3HKdkHmJmk9mDhAeAMxmK5D2ztdAe5 > SELF 0.00000000 Waves

{ "type": 13, "id": "6RkZDoFQ1rj61B28VRiEuxGmqxVt82rWoeVHkzFF3gbz", "fee": 4200000, "feeAssetId": null, "timestamp": 1685976746596, "version": 2, "chainId": 84, "sender": "3MzqQ3HKdkHmJmk9mDhAeAMxmK5D2ztdAe5", "senderPublicKey": "FEnkfXnQZkk1FmjhH6QZqyK2taN6ngnZBexevKxouLUM", "proofs": [ "5EdH8dMX2dUhnLyWFv6bpdteocki3NQNzdiPrLjEnDGuhjP33xBAcduXPLAeP2upUSU24f6RuE87NJbWNBU7tqRc", "T1p8vXVeDGRFrKt7faWc9EV8S7257Do7sakZCykWSpptvSHReX8uVrMwLCCK9ZwMsDwq1MaSmhX6spDxm2fsNDD" ], "script": "base64:BgJaCAISBgoEAhgREhIGCgQCGBESEgYKBAIYERISBgoEAhgREhIGCgQCGBESEgYKBAIYERISBgoEAhgREhIGCgQCGBESEgYKBAIYERISBgoEAhgREhIGCgQCGBESUwAHdmVyc2lvbgIFMS4wLjAACGtWZXJzaW9uAgd2ZXJzaW9uAAdrQWN0aXZlAgZhY3RpdmUAC2tEZXByZWNhdGVkAgtkZXByZWNhdGVkXwAJa0Fzc2V0SWRBAgpBX2Fzc2V0X2lkAAlrQXNzZXRJZEICCkJfYXNzZXRfaWQACWtCYWxhbmNlQQIPQV9hc3NldF9iYWxhbmNlAAlrQmFsYW5jZUICD0JfYXNzZXRfYmFsYW5jZQANa0JhbGFuY2VJbml0QQIMQV9hc3NldF9pbml0AA1rQmFsYW5jZUluaXRCAgxCX2Fzc2V0X2luaXQADWtTaGFyZUFzc2V0SWQCDnNoYXJlX2Fzc2V0X2lkABFrU2hhcmVBc3NldFN1cHBse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MYWRtaW5QdWJLZXkzAAEAAAkAZwIJAGQCCQBkAgUSYWRtaW5QdWJLZXkxU2lnbmVkBRJhZG1pblB1YktleTJTaWduZWQFEmFkbWluUHViS2V5M1NpZ25lZAACBRNtdWx0aVNpZ25lZEJ5QWRtaW5z5LNBkg==", "height": 2609517, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 9jcf6Udfuj74gJqeNQCJLNhypVavEnur9WSqF7T1CT1J Next: 5NnyLDUngfdezLgPNyWGUSU7JRfZphTrx8wFowKPcrbh Diff:
OldNewDifferences
398398
399399
400400 @Callable(i)
401-func calcLPReplanishDiffPropREADONLY (callerBytes,args) = {
402- let $t01380913899 = getPoolAssets(i.caller)
403- let strAssetIdA = $t01380913899._1
404- let strAssetIdB = $t01380913899._2
405- let assetIdA = $t01380913899._3
406- let assetIdB = $t01380913899._4
407- let shareAssetId = $t01380913899._5
408- let $t01390413996 = getPoolBalances(i.caller, assetIdA, assetIdB)
409- let balA = $t01390413996._1
410- let balB = $t01390413996._2
411- let accBalA = $t01390413996._3
412- let accBalB = $t01390413996._4
413- let lpSupply = $t01390413996._5
401+func calcLPReplanishDiffPropREADONLY (callerBytes,args,pAmounts,pAssetIds) = {
402+ let $t01385913949 = getPoolAssets(i.caller)
403+ let strAssetIdA = $t01385913949._1
404+ let strAssetIdB = $t01385913949._2
405+ let assetIdA = $t01385913949._3
406+ let assetIdB = $t01385913949._4
407+ let shareAssetId = $t01385913949._5
408+ let $t01395414046 = getPoolBalances(i.caller, assetIdA, assetIdB)
409+ let balA = $t01395414046._1
410+ let balB = $t01395414046._2
411+ let accBalA = $t01395414046._3
412+ let accBalB = $t01395414046._4
413+ let lpSupply = $t01395414046._5
414414 let pmtA = parseIntValue(args[0])
415415 let pmtB = parseIntValue(args[1])
416416 let virtGetMinAmount = parseIntValue(args[2])
417- let $t01413014197 = getFeeParams(i.caller, i.originCaller)
418- let fee = $t01413014197._1
419- let govFee = $t01413014197._2
420- let teamFee = $t01413014197._3
421- let $t01420214388 = calcLPReplanishDiffProp(pmtA, pmtB, assetIdA, assetIdB, balA, balB, lpSupply, fee, govFee, teamFee, virtGetMinAmount)
422- let lp = $t01420214388._1
423- let newBalanceA = $t01420214388._2
424- let newBalanceB = $t01420214388._3
425- let governanceReward = $t01420214388._4
426- let tReward = $t01420214388._5
427- let aId = $t01420214388._6
417+ let $t01418014247 = getFeeParams(i.caller, i.originCaller)
418+ let fee = $t01418014247._1
419+ let govFee = $t01418014247._2
420+ let teamFee = $t01418014247._3
421+ let $t01425214438 = calcLPReplanishDiffProp(pmtA, pmtB, assetIdA, assetIdB, balA, balB, lpSupply, fee, govFee, teamFee, virtGetMinAmount)
422+ let lp = $t01425214438._1
423+ let newBalanceA = $t01425214438._2
424+ let newBalanceB = $t01425214438._3
425+ let governanceReward = $t01425214438._4
426+ let tReward = $t01425214438._5
427+ let aId = $t01425214438._6
428428 $Tuple2(nil, $Tuple6(lp, newBalanceA, newBalanceB, governanceReward, tReward, aId))
429429 }
430430
431431
432432
433433 @Callable(i)
434-func withdrawREADONLY (callerBytes,args) = {
435- let $t01455314643 = getPoolAssets(i.caller)
436- let strAssetIdA = $t01455314643._1
437- let strAssetIdB = $t01455314643._2
438- let assetIdA = $t01455314643._3
439- let assetIdB = $t01455314643._4
440- let shareAssetId = $t01455314643._5
441- let $t01464814772 = getPoolBalances(i.caller, assetIdA, assetIdB)
442- let balanceA = $t01464814772._1
443- let balanceB = $t01464814772._2
444- let accountBalanceA = $t01464814772._3
445- let accountBalanceB = $t01464814772._4
446- let shareAssetSupply = $t01464814772._5
434+func withdrawREADONLY (callerBytes,args,pAmounts,pAssetIds) = {
435+ let $t01465314743 = getPoolAssets(i.caller)
436+ let strAssetIdA = $t01465314743._1
437+ let strAssetIdB = $t01465314743._2
438+ let assetIdA = $t01465314743._3
439+ let assetIdB = $t01465314743._4
440+ let shareAssetId = $t01465314743._5
441+ let $t01474814872 = getPoolBalances(i.caller, assetIdA, assetIdB)
442+ let balanceA = $t01474814872._1
443+ let balanceB = $t01474814872._2
444+ let accountBalanceA = $t01474814872._3
445+ let accountBalanceB = $t01474814872._4
446+ let shareAssetSupply = $t01474814872._5
447447 let withdrawAmount = parseIntValue(args[0])
448448 let amountToPayA = fraction(withdrawAmount, balanceA, shareAssetSupply)
449449 let amountToPayB = fraction(withdrawAmount, balanceB, shareAssetSupply)
455455 @Callable(i)
456456 func init (callerBytes,args,pAmounts,pAssetIds) = {
457457 let caller = Address(callerBytes)
458- let $t01517815256 = $Tuple2(pAmounts[0], parsePaymentAsset(pAssetIds[0]))
459- let pmtAmountA = $t01517815256._1
460- let pmtAssetIdA = $t01517815256._2
461- let $t01526115339 = $Tuple2(pAmounts[1], parsePaymentAsset(pAssetIds[1]))
462- let pmtAmountB = $t01526115339._1
463- let pmtAssetIdB = $t01526115339._2
458+ let $t01527815356 = $Tuple2(pAmounts[0], parsePaymentAsset(pAssetIds[0]))
459+ let pmtAmountA = $t01527815356._1
460+ let pmtAssetIdA = $t01527815356._2
461+ let $t01536115439 = $Tuple2(pAmounts[1], parsePaymentAsset(pAssetIds[1]))
462+ let pmtAmountB = $t01536115439._1
463+ let pmtAssetIdB = $t01536115439._2
464464 if (!(containsElement([adminPubKey1, adminPubKey2, adminPubKey3, adminInvokePubKey], i.originCallerPublicKey)))
465465 then throw("Only admin can call this function")
466466 else if ((size(args) != 1))
470470 else if ((pmtAssetIdA == pmtAssetIdB))
471471 then throw("Assets must be different")
472472 else {
473- let $t01577415851 = getAssetInfo(pmtAssetIdA)
474- let pmtStrAssetIdA = $t01577415851._1
475- let pmtAssetNameA = $t01577415851._2
476- let pmtDecimalsA = $t01577415851._3
477- let $t01586015937 = getAssetInfo(pmtAssetIdB)
478- let pmtStrAssetIdB = $t01586015937._1
479- let pmtAssetNameB = $t01586015937._2
480- let pmtDecimalsB = $t01586015937._3
473+ let $t01587415951 = getAssetInfo(pmtAssetIdA)
474+ let pmtStrAssetIdA = $t01587415951._1
475+ let pmtAssetNameA = $t01587415951._2
476+ let pmtDecimalsA = $t01587415951._3
477+ let $t01596016037 = getAssetInfo(pmtAssetIdB)
478+ let pmtStrAssetIdB = $t01596016037._1
479+ let pmtAssetNameB = $t01596016037._2
480+ let pmtDecimalsB = $t01596016037._3
481481 let firstHarvest = (args[0] == "true")
482482 let shareName = ((("s" + take(pmtAssetNameA, 7)) + "_") + take(pmtAssetNameB, 7))
483483 let shareDescription = ((((("ShareToken of SwopFi protocol for " + pmtAssetNameA) + " and ") + pmtAssetNameB) + " at address ") + toString(this))
514514 @Callable(i)
515515 func initWithInitRatio (callerBytes,args,pAmounts,pAssetIds) = {
516516 let caller = Address(callerBytes)
517- let $t01815818358 = $Tuple5(parseIntValue(args[0]), parseIntValue(args[1]), args[2], args[3], (args[4] == "true"))
518- let amtAssetA = $t01815818358._1
519- let amtAssetB = $t01815818358._2
520- let assetIdAStr = $t01815818358._3
521- let assetIdBStr = $t01815818358._4
522- let firstHarvest = $t01815818358._5
517+ let $t01825818458 = $Tuple5(parseIntValue(args[0]), parseIntValue(args[1]), args[2], args[3], (args[4] == "true"))
518+ let amtAssetA = $t01825818458._1
519+ let amtAssetB = $t01825818458._2
520+ let assetIdAStr = $t01825818458._3
521+ let assetIdBStr = $t01825818458._4
522+ let firstHarvest = $t01825818458._5
523523 if (!(containsElement([adminPubKey1, adminPubKey2, adminPubKey3, adminInvokePubKey], i.originCallerPublicKey)))
524524 then throw("Only admin can call this function")
525525 else if ((size(args) != 5))
529529 else if ((assetIdAStr == assetIdBStr))
530530 then throw("Assets must be different")
531531 else {
532- let $t01879318870 = getAssetInfo(assetIdAStr)
533- let pmtStrAssetIdA = $t01879318870._1
534- let pmtAssetNameA = $t01879318870._2
535- let pmtDecimalsA = $t01879318870._3
536- let $t01887918956 = getAssetInfo(assetIdBStr)
537- let pmtStrAssetIdB = $t01887918956._1
538- let pmtAssetNameB = $t01887918956._2
539- let pmtDecimalsB = $t01887918956._3
532+ let $t01889318970 = getAssetInfo(assetIdAStr)
533+ let pmtStrAssetIdA = $t01889318970._1
534+ let pmtAssetNameA = $t01889318970._2
535+ let pmtDecimalsA = $t01889318970._3
536+ let $t01897919056 = getAssetInfo(assetIdBStr)
537+ let pmtStrAssetIdB = $t01897919056._1
538+ let pmtAssetNameB = $t01897919056._2
539+ let pmtDecimalsB = $t01897919056._3
540540 let shareName = ((("s" + take(pmtAssetNameA, 7)) + "_") + take(pmtAssetNameB, 7))
541541 let shareDescription = ((((("ShareToken of SwopFi protocol for " + pmtAssetNameA) + " and ") + pmtAssetNameB) + " at address ") + toString(this))
542542 let shareDecimals = ((pmtDecimalsA + pmtDecimalsB) / 2)
567567 @Callable(i)
568568 func exchange (callerBytes,args,pAmounts,pAssetIds) = valueOrElse(isOraclePool(toString(i.caller)), valueOrElse(isDepricated(toString(i.caller)), valueOrElse(isActive(), {
569569 let caller = Address(callerBytes)
570- let $t02138221458 = $Tuple2(pAmounts[0], parsePaymentAsset(pAssetIds[0]))
571- let pmtAmount = $t02138221458._1
572- let pmtAssetId = $t02138221458._2
570+ let $t02148221558 = $Tuple2(pAmounts[0], parsePaymentAsset(pAssetIds[0]))
571+ let pmtAmount = $t02148221558._1
572+ let pmtAssetId = $t02148221558._2
573573 let minAmountToReceive = parseIntValue(args[0])
574- let $t02152321599 = getPoolAssets(i.caller)
575- let strAssetIdA = $t02152321599._1
576- let strAssetIdB = $t02152321599._2
577- let assetIdA = $t02152321599._3
578- let assetIdB = $t02152321599._4
579- let $t02160821714 = getPoolBalances(i.caller, assetIdA, assetIdB)
580- let balanceA = $t02160821714._1
581- let balanceB = $t02160821714._2
582- let accountBalanceA = $t02160821714._3
583- let accountBalanceB = $t02160821714._4
574+ let $t02162321699 = getPoolAssets(i.caller)
575+ let strAssetIdA = $t02162321699._1
576+ let strAssetIdB = $t02162321699._2
577+ let assetIdA = $t02162321699._3
578+ let assetIdB = $t02162321699._4
579+ let $t02170821814 = getPoolBalances(i.caller, assetIdA, assetIdB)
580+ let balanceA = $t02170821814._1
581+ let balanceB = $t02170821814._2
582+ let accountBalanceA = $t02170821814._3
583+ let accountBalanceB = $t02170821814._4
584584 if ((size(args) != 1))
585585 then throw("Wrong args size")
586586 else if (if ((balanceA == 0))
598598 else (balanceB > accountBalanceB))
599599 then $Tuple2(nil, ([ScriptTransfer(caller, pmtAmount, pmtAssetId)] ++ suspendSuspicious(accountBalanceA, accountBalanceB, balanceA, balanceB, strAssetIdA, strAssetIdB)))
600600 else {
601- let $t02261422681 = getFeeParams(i.caller, i.originCaller)
602- let fee = $t02261422681._1
603- let govFee = $t02261422681._2
604- let teamFee = $t02261422681._3
605- let $t02269423045 = if ((pmtAssetId == assetIdA))
601+ let $t02271422781 = getFeeParams(i.caller, i.originCaller)
602+ let fee = $t02271422781._1
603+ let govFee = $t02271422781._2
604+ let teamFee = $t02271422781._3
605+ let $t02279423145 = if ((pmtAssetId == assetIdA))
606606 then calculateFees(pmtAmount, minAmountToReceive, balanceA, balanceB, fee, govFee, teamFee)
607607 else calculateFees(pmtAmount, minAmountToReceive, balanceB, balanceA, fee, govFee, teamFee)
608- let amountWithoutFee = $t02269423045._1
609- let amountWithFee = $t02269423045._2
610- let governanceReward = $t02269423045._3
611- let teamReward = $t02269423045._4
612- let $t02305923394 = if ((pmtAssetId == assetIdA))
608+ let amountWithoutFee = $t02279423145._1
609+ let amountWithFee = $t02279423145._2
610+ let governanceReward = $t02279423145._3
611+ let teamReward = $t02279423145._4
612+ let $t02315923494 = if ((pmtAssetId == assetIdA))
613613 then $Tuple3((balanceA + pmtAmount), (((balanceB - amountWithFee) - governanceReward) - teamReward), assetIdB)
614614 else $Tuple3((((balanceA - amountWithFee) - governanceReward) - teamReward), (balanceB + pmtAmount), assetIdA)
615- let newBalanceA = $t02305923394._1
616- let newBalanceB = $t02305923394._2
617- let assetIdSend = $t02305923394._3
618- let $t02340823668 = if ((pmtAssetId == assetIdA))
615+ let newBalanceA = $t02315923494._1
616+ let newBalanceB = $t02315923494._2
617+ let assetIdSend = $t02315923494._3
618+ let $t02350823768 = if ((pmtAssetId == assetIdA))
619619 then $Tuple2(pmtAmount, ((amountWithFee + governanceReward) + teamReward))
620620 else $Tuple2(((amountWithFee + governanceReward) + teamReward), pmtAmount)
621- let stakeAmountA = $t02340823668._1
622- let stakeAmountB = $t02340823668._2
621+ let stakeAmountA = $t02350823768._1
622+ let stakeAmountB = $t02350823768._2
623623 let stake1 = if (contains(stakingAssets, strAssetIdA))
624624 then invoke(i.caller, "stakeUnstake", [(pmtAssetId == assetIdA), stakeAmountA, strAssetIdA], nil)
625625 else 0
645645 let pmtAssetIdB = parsePaymentAsset(pAssetIds[1])
646646 let stakeFarming = (args[0] == "true")
647647 let lockType = parseIntValue(args[1])
648- let $t02498325073 = getPoolAssets(i.caller)
649- let strAssetIdA = $t02498325073._1
650- let strAssetIdB = $t02498325073._2
651- let assetIdA = $t02498325073._3
652- let assetIdB = $t02498325073._4
653- let shareAssetId = $t02498325073._5
654- let $t02508225206 = getPoolBalances(i.caller, assetIdA, assetIdB)
655- let balanceA = $t02508225206._1
656- let balanceB = $t02508225206._2
657- let accountBalanceA = $t02508225206._3
658- let accountBalanceB = $t02508225206._4
659- let shareAssetSupply = $t02508225206._5
648+ let $t02508325173 = getPoolAssets(i.caller)
649+ let strAssetIdA = $t02508325173._1
650+ let strAssetIdB = $t02508325173._2
651+ let assetIdA = $t02508325173._3
652+ let assetIdB = $t02508325173._4
653+ let shareAssetId = $t02508325173._5
654+ let $t02518225306 = getPoolBalances(i.caller, assetIdA, assetIdB)
655+ let balanceA = $t02518225306._1
656+ let balanceB = $t02518225306._2
657+ let accountBalanceA = $t02518225306._3
658+ let accountBalanceB = $t02518225306._4
659+ let shareAssetSupply = $t02518225306._5
660660 if ((size(args) != 2))
661661 then throw("Wrong args size")
662662 else if (if ((size(pAmounts) != 2))
676676 else pAssetIds[2], pAmounts[2])]
677677 else (nil ++ suspendSuspicious(accountBalanceA, accountBalanceB, balanceA, balanceB, strAssetIdA, strAssetIdB)))))
678678 else {
679- let $t02613526333 = calcLPAmountReplansishTwoTokens(pAmounts[0], pAmounts[1], pmtAssetIdA, pmtAssetIdB, balanceA, balanceB, shareAssetSupply)
680- let shareTokenToPayAmount = $t02613526333._1
681- let change = $t02613526333._2
682- let changeAssetId = $t02613526333._3
683- let pmtAmountA = $t02613526333._4
684- let pmtAmountB = $t02613526333._5
679+ let $t02624326441 = calcLPAmountReplansishTwoTokens(pAmounts[0], pAmounts[1], pmtAssetIdA, pmtAssetIdB, balanceA, balanceB, shareAssetSupply)
680+ let shareTokenToPayAmount = $t02624326441._1
681+ let change = $t02624326441._2
682+ let changeAssetId = $t02624326441._3
683+ let pmtAmountA = $t02624326441._4
684+ let pmtAmountB = $t02624326441._5
685685 if ((shareTokenToPayAmount == 0))
686686 then throw("Too small amount to replenish")
687687 else if ((0 > change))
734734 let virtGetMinAmount = parseIntValue(args[0])
735735 let stakeFarming = (args[1] == "true")
736736 let lockType = parseIntValue(args[2])
737- let $t02858128671 = getPoolAssets(i.caller)
738- let strAssetIdA = $t02858128671._1
739- let strAssetIdB = $t02858128671._2
740- let assetIdA = $t02858128671._3
741- let assetIdB = $t02858128671._4
742- let shareAssetId = $t02858128671._5
743- let $t02867628800 = getPoolBalances(i.caller, assetIdA, assetIdB)
744- let balanceA = $t02867628800._1
745- let balanceB = $t02867628800._2
746- let accountBalanceA = $t02867628800._3
747- let accountBalanceB = $t02867628800._4
748- let shareAssetSupply = $t02867628800._5
737+ let $t02870028790 = getPoolAssets(i.caller)
738+ let strAssetIdA = $t02870028790._1
739+ let strAssetIdB = $t02870028790._2
740+ let assetIdA = $t02870028790._3
741+ let assetIdB = $t02870028790._4
742+ let shareAssetId = $t02870028790._5
743+ let $t02879528919 = getPoolBalances(i.caller, assetIdA, assetIdB)
744+ let balanceA = $t02879528919._1
745+ let balanceB = $t02879528919._2
746+ let accountBalanceA = $t02879528919._3
747+ let accountBalanceB = $t02879528919._4
748+ let shareAssetSupply = $t02879528919._5
749749 let initial = ((balanceA + balanceB) == 0)
750750 if ((size(args) != 3))
751751 then throw("Wrong args size")
768768 else pAssetIds[2], pAmounts[2])]
769769 else (nil ++ suspendSuspicious(accountBalanceA, accountBalanceB, balanceA, balanceB, strAssetIdA, strAssetIdB)))))
770770 else {
771- let $t02971229779 = getFeeParams(i.caller, i.originCaller)
772- let fee = $t02971229779._1
773- let govFee = $t02971229779._2
774- let teamFee = $t02971229779._3
775- let $t02978829850 = getAssetInfo(pmtAssetId)
776- let pmtAssetIdStr = $t02978829850._1
777- let pmtAssetIdName = $t02978829850._2
778- let $t02986030106 = calcLPAmountReplansishOneToken(pmtAmount, pmtAssetId, assetIdA, assetIdB, balanceA, balanceB, shareAssetSupply, fee, govFee, teamFee, virtGetMinAmount)
779- let shareTokenToPayAmount = $t02986030106._1
780- let newBalanceA = $t02986030106._2
781- let newBalanceB = $t02986030106._3
782- let govReward = $t02986030106._4
783- let teamReward = $t02986030106._5
784- let govRewardAsset = $t02986030106._6
771+ let $t02983129898 = getFeeParams(i.caller, i.originCaller)
772+ let fee = $t02983129898._1
773+ let govFee = $t02983129898._2
774+ let teamFee = $t02983129898._3
775+ let $t02990729969 = getAssetInfo(pmtAssetId)
776+ let pmtAssetIdStr = $t02990729969._1
777+ let pmtAssetIdName = $t02990729969._2
778+ let $t02998730233 = calcLPAmountReplansishOneToken(pmtAmount, pmtAssetId, assetIdA, assetIdB, balanceA, balanceB, shareAssetSupply, fee, govFee, teamFee, virtGetMinAmount)
779+ let shareTokenToPayAmount = $t02998730233._1
780+ let newBalanceA = $t02998730233._2
781+ let newBalanceB = $t02998730233._3
782+ let govReward = $t02998730233._4
783+ let teamReward = $t02998730233._5
784+ let govRewardAsset = $t02998730233._6
785785 let govRewardAssetStr = if ((govRewardAsset == assetIdA))
786786 then strAssetIdA
787787 else strAssetIdB
830830 @Callable(i)
831831 func withdraw (callerBytes,args,pAmounts,pAssetIds) = valueOrElse(isOraclePool(toString(i.caller)), valueOrElse(isActive(), {
832832 let caller = Address(callerBytes)
833- let $t03217132261 = getPoolAssets(i.caller)
834- let strAssetIdA = $t03217132261._1
835- let strAssetIdB = $t03217132261._2
836- let assetIdA = $t03217132261._3
837- let assetIdB = $t03217132261._4
838- let shareAssetId = $t03217132261._5
839- let $t03227032394 = getPoolBalances(i.caller, assetIdA, assetIdB)
840- let balanceA = $t03227032394._1
841- let balanceB = $t03227032394._2
842- let accountBalanceA = $t03227032394._3
843- let accountBalanceB = $t03227032394._4
844- let shareAssetSupply = $t03227032394._5
845- let $t03240332783 = if ((size(pAmounts) == 1))
833+ let $t03230132391 = getPoolAssets(i.caller)
834+ let strAssetIdA = $t03230132391._1
835+ let strAssetIdB = $t03230132391._2
836+ let assetIdA = $t03230132391._3
837+ let assetIdB = $t03230132391._4
838+ let shareAssetId = $t03230132391._5
839+ let $t03240032524 = getPoolBalances(i.caller, assetIdA, assetIdB)
840+ let balanceA = $t03240032524._1
841+ let balanceB = $t03240032524._2
842+ let accountBalanceA = $t03240032524._3
843+ let accountBalanceB = $t03240032524._4
844+ let shareAssetSupply = $t03240032524._5
845+ let $t03253332913 = if ((size(pAmounts) == 1))
846846 then {
847847 let pAsset = parsePaymentAsset(pAssetIds[0])
848848 if ((pAsset != shareAssetId))
850850 else $Tuple2(pAmounts[0], pAsset)
851851 }
852852 else $Tuple2(0, shareAssetId)
853- let pmtAmount = $t03240332783._1
854- let pmtAssetId = $t03240332783._2
853+ let pmtAmount = $t03253332913._1
854+ let pmtAssetId = $t03253332913._2
855855 if ((size(args) != 1))
856856 then throw("Wrong args size")
857857 else if ((size(pAmounts) > 1))
896896 let withdrawAsset = if ((args[0] == ""))
897897 then unit
898898 else fromBase58String(args[0])
899- let $t03500135091 = getPoolAssets(i.caller)
900- let strAssetIdA = $t03500135091._1
901- let strAssetIdB = $t03500135091._2
902- let assetIdA = $t03500135091._3
903- let assetIdB = $t03500135091._4
904- let shareAssetId = $t03500135091._5
905- let $t03510035224 = getPoolBalances(i.caller, assetIdA, assetIdB)
906- let balanceA = $t03510035224._1
907- let balanceB = $t03510035224._2
908- let accountBalanceA = $t03510035224._3
909- let accountBalanceB = $t03510035224._4
910- let shareAssetSupply = $t03510035224._5
911- let $t03523335585 = if ((size(pAmounts) == 1))
899+ let $t03513135221 = getPoolAssets(i.caller)
900+ let strAssetIdA = $t03513135221._1
901+ let strAssetIdB = $t03513135221._2
902+ let assetIdA = $t03513135221._3
903+ let assetIdB = $t03513135221._4
904+ let shareAssetId = $t03513135221._5
905+ let $t03523035354 = getPoolBalances(i.caller, assetIdA, assetIdB)
906+ let balanceA = $t03523035354._1
907+ let balanceB = $t03523035354._2
908+ let accountBalanceA = $t03523035354._3
909+ let accountBalanceB = $t03523035354._4
910+ let shareAssetSupply = $t03523035354._5
911+ let $t03536335715 = if ((size(pAmounts) == 1))
912912 then {
913913 let pAsset = parsePaymentAsset(pAssetIds[0])
914914 if ((pAsset != shareAssetId))
916916 else $Tuple2(pAmounts[0], pAsset)
917917 }
918918 else $Tuple2(0, shareAssetId)
919- let pmtAmount = $t03523335585._1
920- let pmtAssetId = $t03523335585._2
919+ let pmtAmount = $t03536335715._1
920+ let pmtAssetId = $t03536335715._2
921921 let virtMinToRecive = parseIntValue(args[1])
922922 if ((size(args) != 3))
923923 then throw("Wrong args size")
941941 let withdrawAmount = (pmtAmount + unlockAmount)
942942 let amountToPayA = fraction(withdrawAmount, balanceA, shareAssetSupply)
943943 let amountToPayB = fraction(withdrawAmount, balanceB, shareAssetSupply)
944- let $t03685236919 = getFeeParams(i.caller, i.originCaller)
945- let fee = $t03685236919._1
946- let govFee = $t03685236919._2
947- let teamFee = $t03685236919._3
948- let $t03693237346 = if ((withdrawAsset == assetIdA))
944+ let $t03698237049 = getFeeParams(i.caller, i.originCaller)
945+ let fee = $t03698237049._1
946+ let govFee = $t03698237049._2
947+ let teamFee = $t03698237049._3
948+ let $t03706237476 = if ((withdrawAsset == assetIdA))
949949 then calculateFees(amountToPayB, virtMinToRecive, (balanceB - amountToPayB), (balanceA - amountToPayA), fee, govFee, teamFee)
950950 else calculateFees(amountToPayA, virtMinToRecive, (balanceA - amountToPayA), (balanceB - amountToPayB), fee, govFee, teamFee)
951- let amountWithoutFee = $t03693237346._1
952- let amountWithFee = $t03693237346._2
953- let governanceReward = $t03693237346._3
954- let teamReward = $t03693237346._4
955- let $t03735938669 = if ((withdrawAsset == assetIdA))
951+ let amountWithoutFee = $t03706237476._1
952+ let amountWithFee = $t03706237476._2
953+ let governanceReward = $t03706237476._3
954+ let teamReward = $t03706237476._4
955+ let $t03748938799 = if ((withdrawAsset == assetIdA))
956956 then {
957957 let unstake = if (contains(stakingAssets, strAssetIdA))
958958 then invoke(i.caller, "stakeUnstake", [false, (((amountToPayA + amountWithFee) + governanceReward) + teamReward), strAssetIdA], nil)
969969 then $Tuple4(balanceA, ((((balanceB - amountToPayB) - amountWithFee) - governanceReward) - teamReward), assetIdB, [ScriptTransfer(caller, (amountToPayB + amountWithFee), assetIdB)])
970970 else throw("Strict value is not equal to itself.")
971971 }
972- let newBalanceA = $t03735938669._1
973- let newBalanceB = $t03735938669._2
974- let govRewardAssetId = $t03735938669._3
975- let userTransfer = $t03735938669._4
972+ let newBalanceA = $t03748938799._1
973+ let newBalanceB = $t03748938799._2
974+ let govRewardAssetId = $t03748938799._3
975+ let userTransfer = $t03748938799._4
976976 $Tuple2([ScriptTransfer(i.caller, unlockAmount, shareAssetId)], $Tuple2(([IntegerEntry(kBalanceA, newBalanceA), IntegerEntry(kBalanceB, newBalanceB), IntegerEntry(kShareAssetSupply, (shareAssetSupply - withdrawAmount)), Burn(shareAssetId, withdrawAmount), ScriptTransfer(moneyBoxAddress, governanceReward, govRewardAssetId), ScriptTransfer(teamBoxAddress, teamReward, govRewardAssetId)] ++ userTransfer), nil))
977977 }
978978 else throw("Strict value is not equal to itself.")
983983
984984 @Callable(i)
985985 func takeIntoAccountExtraFunds (callerBytes,args,pAmounts,pAssetIds) = valueOrElse(isOraclePool(toString(i.caller)), valueOrElse(isActive(), {
986- let $t03942939505 = getPoolAssets(i.caller)
987- let strAssetIdA = $t03942939505._1
988- let strAssetIdB = $t03942939505._2
989- let assetIdA = $t03942939505._3
990- let assetIdB = $t03942939505._4
986+ let $t03955939635 = getPoolAssets(i.caller)
987+ let strAssetIdA = $t03955939635._1
988+ let strAssetIdB = $t03955939635._2
989+ let assetIdA = $t03955939635._3
990+ let assetIdB = $t03955939635._4
991991 let claim = if (if ((assetIdA == USDN))
992992 then true
993993 else (assetIdB == USDN))
995995 else 0
996996 if ((claim == claim))
997997 then {
998- let $t03966539771 = getPoolBalances(i.caller, assetIdA, assetIdB)
999- let balanceA = $t03966539771._1
1000- let balanceB = $t03966539771._2
1001- let accountBalanceA = $t03966539771._3
1002- let accountBalanceB = $t03966539771._4
998+ let $t03979539901 = getPoolBalances(i.caller, assetIdA, assetIdB)
999+ let balanceA = $t03979539901._1
1000+ let balanceB = $t03979539901._2
1001+ let accountBalanceA = $t03979539901._3
1002+ let accountBalanceB = $t03979539901._4
10031003 let amountEnrollA = (accountBalanceA - balanceA)
10041004 let amountEnrollB = (accountBalanceB - balanceB)
10051005 if ((size(args) != 0))
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"
99
1010 let kDeprecated = "deprecated_"
1111
1212 let kAssetIdA = "A_asset_id"
1313
1414 let kAssetIdB = "B_asset_id"
1515
1616 let kBalanceA = "A_asset_balance"
1717
1818 let kBalanceB = "B_asset_balance"
1919
2020 let kBalanceInitA = "A_asset_init"
2121
2222 let kBalanceInitB = "B_asset_init"
2323
2424 let kShareAssetId = "share_asset_id"
2525
2626 let kShareAssetSupply = "share_asset_supply"
2727
2828 let kFee = "commission"
2929
3030 let kCause = "shutdown_cause"
3131
3232 let kFirstHarvest = "first_harvest"
3333
3434 let kFirstHarvestHeight = "first_harvest_height"
3535
3636 let kShareLimit = "share_limit_on_first_harvest"
3737
3838 let kBasePeriod = "base_period"
3939
4040 let kPeriodLength = "period_length"
4141
4242 let kStartHeight = "start_height"
4343
4444 let kUSDNAddress = "staking_usdnnsbt_address"
4545
4646 let kEURNAddress = "staking_eurn_address"
4747
4848 let kLeasingAmount = "leasing_amount"
4949
5050 let kUSDNAssetId = "usdn_asset_id"
5151
5252 let kEURNAssetId = "eurn_asset_id"
5353
5454 let kStakingAssets = "staking_assets"
5555
5656 let kOracleActive = "active_all_contracts"
5757
5858 let kDiscounts = "discounts"
5959
6060 let kDiscountValues = "discount_values"
6161
6262 let kUserGSwopInGov = "_GSwop_amount"
6363
6464 let kUserSwopInGov = "_SWOP_amount"
6565
6666 let kOraclePool = "pool_"
6767
6868 let kAdminPubKey1 = "admin_pub_1"
6969
7070 let kAdminPubKey2 = "admin_pub_2"
7171
7272 let kAdminPubKey3 = "admin_pub_3"
7373
7474 let kAdminInvokePubKey = "admin_invoke_pub"
7575
7676 let kMoneyBoxAddress = "money_box_address"
7777
7878 let kTeamBoxAddress = "team_box_address"
7979
8080 let kVotingAddress = "voting_address"
8181
8282 let kGovAddress = "governance_address"
8383
8484 let kFarmingAddress = "farming_address"
8585
8686 let oracle = Address(base58'3MvVBtsXroQpy1tsPw21TU2ET9A8WfmrNjz')
8787
8888 func getBase58FromOracle (key) = match getString(oracle, key) {
8989 case string: String =>
9090 fromBase58String(string)
9191 case nothing =>
9292 throw((key + "is empty"))
9393 }
9494
9595
9696 let adminPubKey1 = getBase58FromOracle(kAdminPubKey1)
9797
9898 let adminPubKey2 = getBase58FromOracle(kAdminPubKey2)
9999
100100 let adminPubKey3 = getBase58FromOracle(kAdminPubKey3)
101101
102102 let adminInvokePubKey = getBase58FromOracle(kAdminInvokePubKey)
103103
104104 let moneyBoxAddress = Address(getBase58FromOracle(kMoneyBoxAddress))
105105
106106 let teamBoxAddress = Address(getBase58FromOracle(kTeamBoxAddress))
107107
108108 let votingAddress = Address(getBase58FromOracle(kVotingAddress))
109109
110110 let govAddress = Address(getBase58FromOracle(kGovAddress))
111111
112112 let farmingAddress = Address(getBase58FromOracle(kFarmingAddress))
113113
114114 let USDN = getBase58FromOracle(kUSDNAssetId)
115115
116116 let EURN = getBase58FromOracle(kEURNAssetId)
117117
118118 let stakingAssets = getStringValue(oracle, kStakingAssets)
119119
120120 let stakingUSDNAddress = Address(getBase58FromOracle(kUSDNAddress))
121121
122122 let stakingEURNAddress = Address(getBase58FromOracle(kEURNAddress))
123123
124124 let basePeriod = valueOrErrorMessage(getInteger(votingAddress, kBasePeriod), "Empty kBasePeriod")
125125
126126 let startHeight = valueOrErrorMessage(getInteger(votingAddress, kStartHeight), "Empty kStartHeight")
127127
128128 let periodLength = valueOrErrorMessage(getInteger(votingAddress, kPeriodLength), "Empty kPeriodLength")
129129
130130 let firstHarvestEndPeriod = ((basePeriod + ((height - startHeight) / periodLength)) + 3)
131131
132132 let active = getBooleanValue(oracle, kOracleActive)
133133
134134 let feeScale6 = 1000000
135135
136136 let scale8 = 100000000
137137
138138 let scale16 = toBigInt(10000000000000000)
139139
140140 func accountBalance (assetId,pool) = match assetId {
141141 case id: ByteVector =>
142142 assetBalance(pool, id)
143143 case waves: Unit =>
144144 wavesBalance(pool).available
145145 case _ =>
146146 throw("Match error")
147147 }
148148
149149
150150 func stakedAmount (assetId,pool) = {
151151 let stakedAmountCalculated = match assetId {
152152 case aId: ByteVector =>
153153 if ((aId == USDN))
154154 then getInteger(stakingUSDNAddress, ((("rpd_balance_" + toBase58String(aId)) + "_") + toString(pool)))
155155 else if ((aId == EURN))
156156 then getInteger(stakingEURNAddress, ((("%s%s%s__stakingBalance__" + toBase58String(aId)) + "__") + toString(pool)))
157157 else 0
158158 case _: Unit =>
159159 valueOrElse(getInteger(pool, kLeasingAmount), 0)
160160 case _ =>
161161 throw("Match error")
162162 }
163163 match stakedAmountCalculated {
164164 case i: Int =>
165165 i
166166 case _ =>
167167 0
168168 }
169169 }
170170
171171
172172 func getAssetInfo (assetId) = match assetId {
173173 case id: String|ByteVector =>
174174 let $t040794251 = match id {
175175 case aId: ByteVector =>
176176 $Tuple2(toBase58String(aId), aId)
177177 case aId: String =>
178178 $Tuple2(aId, fromBase58String(aId))
179179 case _ =>
180180 throw("Match error")
181181 }
182182 let stringId = $t040794251._1
183183 let bytesId = $t040794251._2
184184 let info = valueOrErrorMessage(assetInfo(bytesId), (("Asset " + stringId) + " doesn't exist"))
185185 $Tuple3(stringId, info.name, info.decimals)
186186 case waves: Unit =>
187187 $Tuple3("WAVES", "WAVES", 8)
188188 case _ =>
189189 throw("Match error")
190190 }
191191
192192
193193 func suspend (cause) = [BooleanEntry(kActive, false), StringEntry(kCause, cause)]
194194
195195
196196 func calculateFeeDiscount (userAddr) = {
197197 let swopAmount = valueOrElse(getInteger(govAddress, (toString(userAddr) + kUserSwopInGov)), 0)
198198 let gSwopAmount = valueOrElse(getInteger(govAddress, (toString(userAddr) + kUserGSwopInGov)), swopAmount)
199199 let discountValues = split(getStringValue(oracle, kDiscountValues), ",")
200200 let discounts = split(getStringValue(oracle, kDiscounts), ",")
201201 if (if ((gSwopAmount >= parseIntValue(discountValues[0])))
202202 then (parseIntValue(discountValues[1]) > gSwopAmount)
203203 else false)
204204 then (feeScale6 - parseIntValue(discounts[0]))
205205 else if (if ((gSwopAmount >= parseIntValue(discountValues[1])))
206206 then (parseIntValue(discountValues[2]) > gSwopAmount)
207207 else false)
208208 then (feeScale6 - parseIntValue(discounts[1]))
209209 else if (if ((gSwopAmount >= parseIntValue(discountValues[2])))
210210 then (parseIntValue(discountValues[3]) > gSwopAmount)
211211 else false)
212212 then (feeScale6 - parseIntValue(discounts[2]))
213213 else if (if ((gSwopAmount >= parseIntValue(discountValues[3])))
214214 then (parseIntValue(discountValues[4]) > gSwopAmount)
215215 else false)
216216 then (feeScale6 - parseIntValue(discounts[3]))
217217 else if ((gSwopAmount >= parseIntValue(discountValues[4])))
218218 then (feeScale6 - parseIntValue(discounts[4]))
219219 else feeScale6
220220 }
221221
222222
223223 func calculateFees (pmtAmount,minAmountToReceive,tokenFrom,tokenTo,fee,feeGov,feeTeam) = {
224224 let amountWithoutFee = fraction(tokenTo, pmtAmount, (pmtAmount + tokenFrom))
225225 let amountWithFee = fraction(amountWithoutFee, (feeScale6 - fee), feeScale6)
226226 let governanceReward = fraction(amountWithoutFee, feeGov, feeScale6)
227227 let teamReward = fraction(amountWithoutFee, feeTeam, feeScale6)
228228 if ((minAmountToReceive > amountWithFee))
229229 then throw(((("Calculated amount to receive " + toString(amountWithFee)) + " is less than specified minimum ") + toString(minAmountToReceive)))
230230 else $Tuple4(amountWithoutFee, amountWithFee, governanceReward, teamReward)
231231 }
232232
233233
234234 func calculateVirtPay (pmtAmount,balance,fee) = {
235235 let F = (feeScale6 - fee)
236236 let k = fraction(fee, 55, 100)
237237 let a = (scale8 + fraction((F * k), scale8, (feeScale6 * feeScale6)))
238238 let b = ((((balance + fraction(balance, F, feeScale6)) + fraction(pmtAmount, F, feeScale6)) - pmtAmount) - fraction(pmtAmount, (F * k), (feeScale6 * feeScale6)))
239239 let c = (-(toBigInt(balance)) * toBigInt(pmtAmount))
240240 let D = ((toBigInt(b) * toBigInt(b)) - fraction((toBigInt(4) * c), toBigInt(a), toBigInt(scale8)))
241241 toInt(fraction((-(toBigInt(b)) + sqrtBigInt(D, 0, 0, DOWN)), toBigInt(scale8), toBigInt((2 * a))))
242242 }
243243
244244
245245 func parsePaymentAsset (assetId) = if ((assetId == base58''))
246246 then unit
247247 else assetId
248248
249249
250250 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))
251251
252252
253253 func isActive () = if (active)
254254 then unit
255255 else throw("DApp is inactive at this moment")
256256
257257
258258 func isOraclePool (poolAddress) = if (isDefined(getString(oracle, (kOraclePool + poolAddress))))
259259 then unit
260260 else throw("DApp is not registered pool")
261261
262262
263263 func isDepricated (poolAddress) = if (!(valueOrElse(getBoolean(oracle, (kDeprecated + poolAddress)), false)))
264264 then unit
265265 else throw("Pool is deprecated. Only withdraw action allowed.")
266266
267267
268268 func getPoolBalances (pool,assetIdA,assetIdB) = {
269269 let balanceA = getIntegerValue(pool, kBalanceA)
270270 let balanceB = getIntegerValue(pool, kBalanceB)
271271 let stakedAmountA = stakedAmount(assetIdA, pool)
272272 let stakedAmountB = stakedAmount(assetIdB, pool)
273273 let accountBalanceA = (accountBalance(assetIdA, pool) + stakedAmountA)
274274 let accountBalanceB = (accountBalance(assetIdB, pool) + stakedAmountB)
275275 let shareSupply = getIntegerValue(pool, kShareAssetSupply)
276276 $Tuple5(balanceA, balanceB, accountBalanceA, accountBalanceB, shareSupply)
277277 }
278278
279279
280280 func getPoolAssets (pool) = {
281281 let strAssetIdA = getStringValue(pool, kAssetIdA)
282282 let strAssetIdB = getStringValue(pool, kAssetIdB)
283283 let assetIdA = if ((strAssetIdA == "WAVES"))
284284 then unit
285285 else fromBase58String(strAssetIdA)
286286 let assetIdB = if ((strAssetIdB == "WAVES"))
287287 then unit
288288 else fromBase58String(strAssetIdB)
289289 let shareAssetId = fromBase58String(getStringValue(pool, kShareAssetId))
290290 $Tuple5(strAssetIdA, strAssetIdB, assetIdA, assetIdB, shareAssetId)
291291 }
292292
293293
294294 func getFeeParams (pool,caller) = {
295295 let feeDiscount = calculateFeeDiscount(caller)
296296 let fee = fraction(getIntegerValue(pool, kFee), feeDiscount, feeScale6, CEILING)
297297 let govFee = fraction(fee, 35, 100)
298298 let teamFee = fraction(fee, 10, 100)
299299 $Tuple3(fee, govFee, teamFee)
300300 }
301301
302302
303303 func calcLPAmountReplansishTwoTokens (pmtA,pmtB,pmtIdA,pmtIdB,balA,balB,shareAssetSupply) = {
304304 let $t095629634 = getAssetInfo(pmtIdA)
305305 let pmtStrAssetIdA = $t095629634._1
306306 let pmtAssetNameA = $t095629634._2
307307 let pmtDecimalsA = $t095629634._3
308308 let $t096399711 = getAssetInfo(pmtIdB)
309309 let pmtStrAssetIdB = $t096399711._1
310310 let pmtAssetNameB = $t096399711._2
311311 let pmtDecimalsB = $t096399711._3
312312 let initial = ((balA + balB) == 0)
313313 let $t0975410413 = if (initial)
314314 then $Tuple5(pmtA, pmtB, 0, pmtIdA, toBigInt(1))
315315 else {
316316 let ratioShareTokensInA = fraction(scale16, toBigInt(pmtA), toBigInt(balA))
317317 let ratioShareTokensInB = fraction(scale16, toBigInt(pmtB), toBigInt(balB))
318318 if ((ratioShareTokensInB > ratioShareTokensInA))
319319 then {
320320 let pmt = fraction(pmtA, balB, balA)
321321 $Tuple5(pmtA, pmt, (pmtB - pmt), pmtIdB, ratioShareTokensInA)
322322 }
323323 else {
324324 let pmt = fraction(pmtB, balA, balB)
325325 $Tuple5(pmt, pmtB, (pmtA - pmt), pmtIdA, ratioShareTokensInB)
326326 }
327327 }
328328 let pmtAmountA = $t0975410413._1
329329 let pmtAmountB = $t0975410413._2
330330 let change = $t0975410413._3
331331 let changeAssetId = $t0975410413._4
332332 let shareTokenRatio = $t0975410413._5
333333 let shareTokenToPayAmount = if (initial)
334334 then {
335335 let shareDecimals = ((pmtDecimalsA + pmtDecimalsB) / 2)
336336 fraction(pow(pmtAmountA, pmtDecimalsA, 5, 1, pmtDecimalsA, DOWN), pow(pmtAmountB, pmtDecimalsB, 5, 1, pmtDecimalsB, DOWN), pow(10, 0, shareDecimals, 0, 0, DOWN))
337337 }
338338 else toInt(fraction(shareTokenRatio, toBigInt(shareAssetSupply), scale16))
339339 $Tuple5(shareTokenToPayAmount, change, changeAssetId, pmtAmountA, pmtAmountB)
340340 }
341341
342342
343343 func calcLPAmountReplansishOneToken (pmtAmount,pmtAssetId,aId,bId,balA,balB,lpSupply,fee,govFee,teamFee,virtGetMinAmount) = if ((pmtAssetId == aId))
344344 then {
345345 let virtPayAmount = calculateVirtPay(pmtAmount, balA, fee)
346346 let $t01127011417 = calculateFees(virtPayAmount, virtGetMinAmount, balA, balB, fee, govFee, teamFee)
347347 let amountWithoutFee = $t01127011417._1
348348 let amountWithFee = $t01127011417._2
349349 let governanceReward = $t01127011417._3
350350 let tReward = $t01127011417._4
351351 let balanceAVirt = (balA + virtPayAmount)
352352 let balanceBVirt = (((balB + amountWithoutFee) - governanceReward) - tReward)
353353 let newBalanceA = (balA + pmtAmount)
354354 let newBalanceB = ((balB - governanceReward) - tReward)
355355 let ratioShareTokensInA = fraction(toBigInt((pmtAmount - virtPayAmount)), scale16, toBigInt(balanceAVirt))
356356 let ratioShareTokensInB = fraction(toBigInt(amountWithFee), scale16, toBigInt(balanceBVirt))
357357 let shareTokenToPayAmount = toInt(fraction(min([ratioShareTokensInA, ratioShareTokensInB]), toBigInt(lpSupply), scale16))
358358 $Tuple6(shareTokenToPayAmount, newBalanceA, newBalanceB, governanceReward, tReward, bId)
359359 }
360360 else {
361361 let virtPayAmount = calculateVirtPay(pmtAmount, balB, fee)
362362 let $t01212912276 = calculateFees(virtPayAmount, virtGetMinAmount, balB, balA, fee, govFee, teamFee)
363363 let amountWithoutFee = $t01212912276._1
364364 let amountWithFee = $t01212912276._2
365365 let governanceReward = $t01212912276._3
366366 let tReward = $t01212912276._4
367367 let balanceAVirt = (((balA + amountWithoutFee) - governanceReward) - tReward)
368368 let balanceBVirt = (balB + virtPayAmount)
369369 let newBalanceA = ((balA - governanceReward) - tReward)
370370 let newBalanceB = (balB + pmtAmount)
371371 let ratioShareTokensInA = fraction(toBigInt(amountWithFee), scale16, toBigInt(balanceAVirt))
372372 let ratioShareTokensInB = fraction(toBigInt((pmtAmount - virtPayAmount)), scale16, toBigInt(balanceBVirt))
373373 let shareTokenToPayAmount = toInt(fraction(min([ratioShareTokensInA, ratioShareTokensInB]), toBigInt(lpSupply), scale16))
374374 $Tuple6(shareTokenToPayAmount, newBalanceA, newBalanceB, governanceReward, tReward, aId)
375375 }
376376
377377
378378 func calcLPReplanishDiffProp (pmtA,pmtB,pmtIdA,pmtIdB,balA,balB,lpSupply,fee,govFee,teamFee,virtGetMinAmount) = {
379379 let $t01312313271 = calcLPAmountReplansishTwoTokens(pmtA, pmtB, pmtIdA, pmtIdB, balA, balB, lpSupply)
380380 let lpTwoAmount = $t01312313271._1
381381 let change = $t01312313271._2
382382 let changeAssetId = $t01312313271._3
383383 let pmtAmountA = $t01312313271._4
384384 let pmtAmountB = $t01312313271._5
385385 if ((change > 0))
386386 then {
387387 let $t01330313532 = calcLPAmountReplansishOneToken(change, changeAssetId, pmtIdA, pmtIdB, (balA + pmtAmountA), (balB + pmtAmountB), lpSupply, fee, govFee, teamFee, virtGetMinAmount)
388388 let lpOne = $t01330313532._1
389389 let newBalanceA = $t01330313532._2
390390 let newBalanceB = $t01330313532._3
391391 let governanceReward = $t01330313532._4
392392 let tReward = $t01330313532._5
393393 let gId = $t01330313532._6
394394 $Tuple6((lpTwoAmount + lpOne), newBalanceA, newBalanceB, governanceReward, tReward, gId)
395395 }
396396 else $Tuple6(lpTwoAmount, (balA + pmtAmountA), (balB + pmtAmountB), 0, 0, unit)
397397 }
398398
399399
400400 @Callable(i)
401-func calcLPReplanishDiffPropREADONLY (callerBytes,args) = {
402- let $t01380913899 = getPoolAssets(i.caller)
403- let strAssetIdA = $t01380913899._1
404- let strAssetIdB = $t01380913899._2
405- let assetIdA = $t01380913899._3
406- let assetIdB = $t01380913899._4
407- let shareAssetId = $t01380913899._5
408- let $t01390413996 = getPoolBalances(i.caller, assetIdA, assetIdB)
409- let balA = $t01390413996._1
410- let balB = $t01390413996._2
411- let accBalA = $t01390413996._3
412- let accBalB = $t01390413996._4
413- let lpSupply = $t01390413996._5
401+func calcLPReplanishDiffPropREADONLY (callerBytes,args,pAmounts,pAssetIds) = {
402+ let $t01385913949 = getPoolAssets(i.caller)
403+ let strAssetIdA = $t01385913949._1
404+ let strAssetIdB = $t01385913949._2
405+ let assetIdA = $t01385913949._3
406+ let assetIdB = $t01385913949._4
407+ let shareAssetId = $t01385913949._5
408+ let $t01395414046 = getPoolBalances(i.caller, assetIdA, assetIdB)
409+ let balA = $t01395414046._1
410+ let balB = $t01395414046._2
411+ let accBalA = $t01395414046._3
412+ let accBalB = $t01395414046._4
413+ let lpSupply = $t01395414046._5
414414 let pmtA = parseIntValue(args[0])
415415 let pmtB = parseIntValue(args[1])
416416 let virtGetMinAmount = parseIntValue(args[2])
417- let $t01413014197 = getFeeParams(i.caller, i.originCaller)
418- let fee = $t01413014197._1
419- let govFee = $t01413014197._2
420- let teamFee = $t01413014197._3
421- let $t01420214388 = calcLPReplanishDiffProp(pmtA, pmtB, assetIdA, assetIdB, balA, balB, lpSupply, fee, govFee, teamFee, virtGetMinAmount)
422- let lp = $t01420214388._1
423- let newBalanceA = $t01420214388._2
424- let newBalanceB = $t01420214388._3
425- let governanceReward = $t01420214388._4
426- let tReward = $t01420214388._5
427- let aId = $t01420214388._6
417+ let $t01418014247 = getFeeParams(i.caller, i.originCaller)
418+ let fee = $t01418014247._1
419+ let govFee = $t01418014247._2
420+ let teamFee = $t01418014247._3
421+ let $t01425214438 = calcLPReplanishDiffProp(pmtA, pmtB, assetIdA, assetIdB, balA, balB, lpSupply, fee, govFee, teamFee, virtGetMinAmount)
422+ let lp = $t01425214438._1
423+ let newBalanceA = $t01425214438._2
424+ let newBalanceB = $t01425214438._3
425+ let governanceReward = $t01425214438._4
426+ let tReward = $t01425214438._5
427+ let aId = $t01425214438._6
428428 $Tuple2(nil, $Tuple6(lp, newBalanceA, newBalanceB, governanceReward, tReward, aId))
429429 }
430430
431431
432432
433433 @Callable(i)
434-func withdrawREADONLY (callerBytes,args) = {
435- let $t01455314643 = getPoolAssets(i.caller)
436- let strAssetIdA = $t01455314643._1
437- let strAssetIdB = $t01455314643._2
438- let assetIdA = $t01455314643._3
439- let assetIdB = $t01455314643._4
440- let shareAssetId = $t01455314643._5
441- let $t01464814772 = getPoolBalances(i.caller, assetIdA, assetIdB)
442- let balanceA = $t01464814772._1
443- let balanceB = $t01464814772._2
444- let accountBalanceA = $t01464814772._3
445- let accountBalanceB = $t01464814772._4
446- let shareAssetSupply = $t01464814772._5
434+func withdrawREADONLY (callerBytes,args,pAmounts,pAssetIds) = {
435+ let $t01465314743 = getPoolAssets(i.caller)
436+ let strAssetIdA = $t01465314743._1
437+ let strAssetIdB = $t01465314743._2
438+ let assetIdA = $t01465314743._3
439+ let assetIdB = $t01465314743._4
440+ let shareAssetId = $t01465314743._5
441+ let $t01474814872 = getPoolBalances(i.caller, assetIdA, assetIdB)
442+ let balanceA = $t01474814872._1
443+ let balanceB = $t01474814872._2
444+ let accountBalanceA = $t01474814872._3
445+ let accountBalanceB = $t01474814872._4
446+ let shareAssetSupply = $t01474814872._5
447447 let withdrawAmount = parseIntValue(args[0])
448448 let amountToPayA = fraction(withdrawAmount, balanceA, shareAssetSupply)
449449 let amountToPayB = fraction(withdrawAmount, balanceB, shareAssetSupply)
450450 $Tuple2(nil, $Tuple2(amountToPayA, amountToPayB))
451451 }
452452
453453
454454
455455 @Callable(i)
456456 func init (callerBytes,args,pAmounts,pAssetIds) = {
457457 let caller = Address(callerBytes)
458- let $t01517815256 = $Tuple2(pAmounts[0], parsePaymentAsset(pAssetIds[0]))
459- let pmtAmountA = $t01517815256._1
460- let pmtAssetIdA = $t01517815256._2
461- let $t01526115339 = $Tuple2(pAmounts[1], parsePaymentAsset(pAssetIds[1]))
462- let pmtAmountB = $t01526115339._1
463- let pmtAssetIdB = $t01526115339._2
458+ let $t01527815356 = $Tuple2(pAmounts[0], parsePaymentAsset(pAssetIds[0]))
459+ let pmtAmountA = $t01527815356._1
460+ let pmtAssetIdA = $t01527815356._2
461+ let $t01536115439 = $Tuple2(pAmounts[1], parsePaymentAsset(pAssetIds[1]))
462+ let pmtAmountB = $t01536115439._1
463+ let pmtAssetIdB = $t01536115439._2
464464 if (!(containsElement([adminPubKey1, adminPubKey2, adminPubKey3, adminInvokePubKey], i.originCallerPublicKey)))
465465 then throw("Only admin can call this function")
466466 else if ((size(args) != 1))
467467 then throw("Wrong args size")
468468 else if (isDefined(getBoolean(caller, kActive)))
469469 then throw("DApp is already active")
470470 else if ((pmtAssetIdA == pmtAssetIdB))
471471 then throw("Assets must be different")
472472 else {
473- let $t01577415851 = getAssetInfo(pmtAssetIdA)
474- let pmtStrAssetIdA = $t01577415851._1
475- let pmtAssetNameA = $t01577415851._2
476- let pmtDecimalsA = $t01577415851._3
477- let $t01586015937 = getAssetInfo(pmtAssetIdB)
478- let pmtStrAssetIdB = $t01586015937._1
479- let pmtAssetNameB = $t01586015937._2
480- let pmtDecimalsB = $t01586015937._3
473+ let $t01587415951 = getAssetInfo(pmtAssetIdA)
474+ let pmtStrAssetIdA = $t01587415951._1
475+ let pmtAssetNameA = $t01587415951._2
476+ let pmtDecimalsA = $t01587415951._3
477+ let $t01596016037 = getAssetInfo(pmtAssetIdB)
478+ let pmtStrAssetIdB = $t01596016037._1
479+ let pmtAssetNameB = $t01596016037._2
480+ let pmtDecimalsB = $t01596016037._3
481481 let firstHarvest = (args[0] == "true")
482482 let shareName = ((("s" + take(pmtAssetNameA, 7)) + "_") + take(pmtAssetNameB, 7))
483483 let shareDescription = ((((("ShareToken of SwopFi protocol for " + pmtAssetNameA) + " and ") + pmtAssetNameB) + " at address ") + toString(this))
484484 let shareDecimals = ((pmtDecimalsA + pmtDecimalsB) / 2)
485485 let arg1 = pow(pmtAmountA, pmtDecimalsA, 5, 1, pmtDecimalsA, DOWN)
486486 let arg2 = pow(pmtAmountB, pmtDecimalsB, 5, 1, pmtDecimalsB, DOWN)
487487 let arg3 = pow(10, 0, shareDecimals, 0, 0, DOWN)
488488 let shareInitialSupply = fraction(arg1, arg2, arg3)
489489 let shareIssue = Issue(shareName, shareDescription, shareInitialSupply, shareDecimals, true)
490490 let shareIssueId = calculateAssetId(shareIssue)
491491 let stake1 = if (contains(stakingAssets, pmtStrAssetIdA))
492492 then invoke(i.caller, "stakeUnstake", [true, pmtAmountA, pmtStrAssetIdA], nil)
493493 else 0
494494 if ((stake1 == stake1))
495495 then {
496496 let stake2 = if (contains(stakingAssets, pmtStrAssetIdB))
497497 then invoke(i.caller, "stakeUnstake", [true, pmtAmountB, pmtStrAssetIdB], nil)
498498 else 0
499499 if ((stake2 == stake2))
500500 then {
501501 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)]
502502 if (firstHarvest)
503503 then $Tuple2(nil, $Tuple2((baseEntry ++ [BooleanEntry(kFirstHarvest, firstHarvest), IntegerEntry(kFirstHarvestHeight, (startHeight + (firstHarvestEndPeriod * periodLength)))]), nil))
504504 else $Tuple2(nil, $Tuple2(baseEntry, nil))
505505 }
506506 else throw("Strict value is not equal to itself.")
507507 }
508508 else throw("Strict value is not equal to itself.")
509509 }
510510 }
511511
512512
513513
514514 @Callable(i)
515515 func initWithInitRatio (callerBytes,args,pAmounts,pAssetIds) = {
516516 let caller = Address(callerBytes)
517- let $t01815818358 = $Tuple5(parseIntValue(args[0]), parseIntValue(args[1]), args[2], args[3], (args[4] == "true"))
518- let amtAssetA = $t01815818358._1
519- let amtAssetB = $t01815818358._2
520- let assetIdAStr = $t01815818358._3
521- let assetIdBStr = $t01815818358._4
522- let firstHarvest = $t01815818358._5
517+ let $t01825818458 = $Tuple5(parseIntValue(args[0]), parseIntValue(args[1]), args[2], args[3], (args[4] == "true"))
518+ let amtAssetA = $t01825818458._1
519+ let amtAssetB = $t01825818458._2
520+ let assetIdAStr = $t01825818458._3
521+ let assetIdBStr = $t01825818458._4
522+ let firstHarvest = $t01825818458._5
523523 if (!(containsElement([adminPubKey1, adminPubKey2, adminPubKey3, adminInvokePubKey], i.originCallerPublicKey)))
524524 then throw("Only admin can call this function")
525525 else if ((size(args) != 5))
526526 then throw("Wrong args size")
527527 else if (isDefined(getBoolean(caller, kActive)))
528528 then throw("DApp is already active")
529529 else if ((assetIdAStr == assetIdBStr))
530530 then throw("Assets must be different")
531531 else {
532- let $t01879318870 = getAssetInfo(assetIdAStr)
533- let pmtStrAssetIdA = $t01879318870._1
534- let pmtAssetNameA = $t01879318870._2
535- let pmtDecimalsA = $t01879318870._3
536- let $t01887918956 = getAssetInfo(assetIdBStr)
537- let pmtStrAssetIdB = $t01887918956._1
538- let pmtAssetNameB = $t01887918956._2
539- let pmtDecimalsB = $t01887918956._3
532+ let $t01889318970 = getAssetInfo(assetIdAStr)
533+ let pmtStrAssetIdA = $t01889318970._1
534+ let pmtAssetNameA = $t01889318970._2
535+ let pmtDecimalsA = $t01889318970._3
536+ let $t01897919056 = getAssetInfo(assetIdBStr)
537+ let pmtStrAssetIdB = $t01897919056._1
538+ let pmtAssetNameB = $t01897919056._2
539+ let pmtDecimalsB = $t01897919056._3
540540 let shareName = ((("s" + take(pmtAssetNameA, 7)) + "_") + take(pmtAssetNameB, 7))
541541 let shareDescription = ((((("ShareToken of SwopFi protocol for " + pmtAssetNameA) + " and ") + pmtAssetNameB) + " at address ") + toString(this))
542542 let shareDecimals = ((pmtDecimalsA + pmtDecimalsB) / 2)
543543 let shareInitialSupply = 0
544544 let shareIssue = Issue(shareName, shareDescription, shareInitialSupply, shareDecimals, true)
545545 let shareIssueId = calculateAssetId(shareIssue)
546546 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)]
547547 if (firstHarvest)
548548 then $Tuple2(nil, $Tuple2((baseEntry ++ [BooleanEntry(kFirstHarvest, firstHarvest), IntegerEntry(kFirstHarvestHeight, (startHeight + (firstHarvestEndPeriod * periodLength)))]), nil))
549549 else $Tuple2(nil, $Tuple2(baseEntry, nil))
550550 }
551551 }
552552
553553
554554
555555 @Callable(i)
556556 func keepLimitForFirstHarvest (callerBytes,args,pAmounts,pAssetIds) = valueOrElse(isOraclePool(toString(i.caller)), valueOrElse(isActive(), if (!(containsElement([adminPubKey1, adminPubKey2, adminPubKey3, adminInvokePubKey], i.originCallerPublicKey)))
557557 then throw("Only admin can call this function")
558558 else if ((size(args) != 1))
559559 then throw("Wrong args size")
560560 else {
561561 let shareLimit = parseIntValue(args[0])
562562 $Tuple2(nil, $Tuple2([IntegerEntry(kShareLimit, shareLimit)], nil))
563563 }))
564564
565565
566566
567567 @Callable(i)
568568 func exchange (callerBytes,args,pAmounts,pAssetIds) = valueOrElse(isOraclePool(toString(i.caller)), valueOrElse(isDepricated(toString(i.caller)), valueOrElse(isActive(), {
569569 let caller = Address(callerBytes)
570- let $t02138221458 = $Tuple2(pAmounts[0], parsePaymentAsset(pAssetIds[0]))
571- let pmtAmount = $t02138221458._1
572- let pmtAssetId = $t02138221458._2
570+ let $t02148221558 = $Tuple2(pAmounts[0], parsePaymentAsset(pAssetIds[0]))
571+ let pmtAmount = $t02148221558._1
572+ let pmtAssetId = $t02148221558._2
573573 let minAmountToReceive = parseIntValue(args[0])
574- let $t02152321599 = getPoolAssets(i.caller)
575- let strAssetIdA = $t02152321599._1
576- let strAssetIdB = $t02152321599._2
577- let assetIdA = $t02152321599._3
578- let assetIdB = $t02152321599._4
579- let $t02160821714 = getPoolBalances(i.caller, assetIdA, assetIdB)
580- let balanceA = $t02160821714._1
581- let balanceB = $t02160821714._2
582- let accountBalanceA = $t02160821714._3
583- let accountBalanceB = $t02160821714._4
574+ let $t02162321699 = getPoolAssets(i.caller)
575+ let strAssetIdA = $t02162321699._1
576+ let strAssetIdB = $t02162321699._2
577+ let assetIdA = $t02162321699._3
578+ let assetIdB = $t02162321699._4
579+ let $t02170821814 = getPoolBalances(i.caller, assetIdA, assetIdB)
580+ let balanceA = $t02170821814._1
581+ let balanceB = $t02170821814._2
582+ let accountBalanceA = $t02170821814._3
583+ let accountBalanceB = $t02170821814._4
584584 if ((size(args) != 1))
585585 then throw("Wrong args size")
586586 else if (if ((balanceA == 0))
587587 then true
588588 else (balanceB == 0))
589589 then throw("Can't exchange with zero balance")
590590 else if ((0 >= minAmountToReceive))
591591 then throw(("Minimal amount to receive must be positive. Actual: " + toString(minAmountToReceive)))
592592 else if ((size(pAmounts) != 1))
593593 then throw("One attached payment expected")
594594 else if (!(containsElement([assetIdA, assetIdB], pmtAssetId)))
595595 then throw(((("Incorrect asset attached. Expected: " + strAssetIdA) + " or ") + strAssetIdB))
596596 else if (if ((balanceA > accountBalanceA))
597597 then true
598598 else (balanceB > accountBalanceB))
599599 then $Tuple2(nil, ([ScriptTransfer(caller, pmtAmount, pmtAssetId)] ++ suspendSuspicious(accountBalanceA, accountBalanceB, balanceA, balanceB, strAssetIdA, strAssetIdB)))
600600 else {
601- let $t02261422681 = getFeeParams(i.caller, i.originCaller)
602- let fee = $t02261422681._1
603- let govFee = $t02261422681._2
604- let teamFee = $t02261422681._3
605- let $t02269423045 = if ((pmtAssetId == assetIdA))
601+ let $t02271422781 = getFeeParams(i.caller, i.originCaller)
602+ let fee = $t02271422781._1
603+ let govFee = $t02271422781._2
604+ let teamFee = $t02271422781._3
605+ let $t02279423145 = if ((pmtAssetId == assetIdA))
606606 then calculateFees(pmtAmount, minAmountToReceive, balanceA, balanceB, fee, govFee, teamFee)
607607 else calculateFees(pmtAmount, minAmountToReceive, balanceB, balanceA, fee, govFee, teamFee)
608- let amountWithoutFee = $t02269423045._1
609- let amountWithFee = $t02269423045._2
610- let governanceReward = $t02269423045._3
611- let teamReward = $t02269423045._4
612- let $t02305923394 = if ((pmtAssetId == assetIdA))
608+ let amountWithoutFee = $t02279423145._1
609+ let amountWithFee = $t02279423145._2
610+ let governanceReward = $t02279423145._3
611+ let teamReward = $t02279423145._4
612+ let $t02315923494 = if ((pmtAssetId == assetIdA))
613613 then $Tuple3((balanceA + pmtAmount), (((balanceB - amountWithFee) - governanceReward) - teamReward), assetIdB)
614614 else $Tuple3((((balanceA - amountWithFee) - governanceReward) - teamReward), (balanceB + pmtAmount), assetIdA)
615- let newBalanceA = $t02305923394._1
616- let newBalanceB = $t02305923394._2
617- let assetIdSend = $t02305923394._3
618- let $t02340823668 = if ((pmtAssetId == assetIdA))
615+ let newBalanceA = $t02315923494._1
616+ let newBalanceB = $t02315923494._2
617+ let assetIdSend = $t02315923494._3
618+ let $t02350823768 = if ((pmtAssetId == assetIdA))
619619 then $Tuple2(pmtAmount, ((amountWithFee + governanceReward) + teamReward))
620620 else $Tuple2(((amountWithFee + governanceReward) + teamReward), pmtAmount)
621- let stakeAmountA = $t02340823668._1
622- let stakeAmountB = $t02340823668._2
621+ let stakeAmountA = $t02350823768._1
622+ let stakeAmountB = $t02350823768._2
623623 let stake1 = if (contains(stakingAssets, strAssetIdA))
624624 then invoke(i.caller, "stakeUnstake", [(pmtAssetId == assetIdA), stakeAmountA, strAssetIdA], nil)
625625 else 0
626626 if ((stake1 == stake1))
627627 then {
628628 let stake2 = if (contains(stakingAssets, strAssetIdB))
629629 then invoke(i.caller, "stakeUnstake", [(pmtAssetId == assetIdB), stakeAmountB, strAssetIdB], nil)
630630 else 0
631631 if ((stake2 == stake2))
632632 then $Tuple2(nil, $Tuple2([IntegerEntry(kBalanceA, newBalanceA), IntegerEntry(kBalanceB, newBalanceB), ScriptTransfer(caller, amountWithFee, assetIdSend), ScriptTransfer(moneyBoxAddress, governanceReward, assetIdSend), ScriptTransfer(teamBoxAddress, teamReward, assetIdSend)], [amountWithFee, assetIdSend]))
633633 else throw("Strict value is not equal to itself.")
634634 }
635635 else throw("Strict value is not equal to itself.")
636636 }
637637 })))
638638
639639
640640
641641 @Callable(i)
642642 func replenishWithTwoTokens (callerBytes,args,pAmounts,pAssetIds) = valueOrElse(isOraclePool(toString(i.caller)), valueOrElse(isDepricated(toString(i.caller)), valueOrElse(isActive(), {
643643 let caller = Address(callerBytes)
644644 let pmtAssetIdA = parsePaymentAsset(pAssetIds[0])
645645 let pmtAssetIdB = parsePaymentAsset(pAssetIds[1])
646646 let stakeFarming = (args[0] == "true")
647647 let lockType = parseIntValue(args[1])
648- let $t02498325073 = getPoolAssets(i.caller)
649- let strAssetIdA = $t02498325073._1
650- let strAssetIdB = $t02498325073._2
651- let assetIdA = $t02498325073._3
652- let assetIdB = $t02498325073._4
653- let shareAssetId = $t02498325073._5
654- let $t02508225206 = getPoolBalances(i.caller, assetIdA, assetIdB)
655- let balanceA = $t02508225206._1
656- let balanceB = $t02508225206._2
657- let accountBalanceA = $t02508225206._3
658- let accountBalanceB = $t02508225206._4
659- let shareAssetSupply = $t02508225206._5
648+ let $t02508325173 = getPoolAssets(i.caller)
649+ let strAssetIdA = $t02508325173._1
650+ let strAssetIdB = $t02508325173._2
651+ let assetIdA = $t02508325173._3
652+ let assetIdB = $t02508325173._4
653+ let shareAssetId = $t02508325173._5
654+ let $t02518225306 = getPoolBalances(i.caller, assetIdA, assetIdB)
655+ let balanceA = $t02518225306._1
656+ let balanceB = $t02518225306._2
657+ let accountBalanceA = $t02518225306._3
658+ let accountBalanceB = $t02518225306._4
659+ let shareAssetSupply = $t02518225306._5
660660 if ((size(args) != 2))
661661 then throw("Wrong args size")
662662 else if (if ((size(pAmounts) != 2))
663663 then (size(pAmounts) != 3)
664664 else false)
665665 then throw("Two or three payments expected")
666666 else if (if ((pmtAssetIdA != assetIdA))
667667 then true
668668 else (pmtAssetIdB != assetIdB))
669669 then throw(((("Incorrect assets attached. Expected: " + strAssetIdA) + " and ") + strAssetIdB))
670670 else if (if ((balanceA > accountBalanceA))
671671 then true
672672 else (balanceB > accountBalanceB))
673673 then $Tuple2(nil, ([ScriptTransfer(caller, pAmounts[0], pmtAssetIdA), ScriptTransfer(caller, pAmounts[1], pmtAssetIdB)] ++ (if ((size(pAmounts) == 3))
674674 then [AttachedPayment(if ((pAssetIds[2] == base58''))
675675 then unit
676676 else pAssetIds[2], pAmounts[2])]
677677 else (nil ++ suspendSuspicious(accountBalanceA, accountBalanceB, balanceA, balanceB, strAssetIdA, strAssetIdB)))))
678678 else {
679- let $t02613526333 = calcLPAmountReplansishTwoTokens(pAmounts[0], pAmounts[1], pmtAssetIdA, pmtAssetIdB, balanceA, balanceB, shareAssetSupply)
680- let shareTokenToPayAmount = $t02613526333._1
681- let change = $t02613526333._2
682- let changeAssetId = $t02613526333._3
683- let pmtAmountA = $t02613526333._4
684- let pmtAmountB = $t02613526333._5
679+ let $t02624326441 = calcLPAmountReplansishTwoTokens(pAmounts[0], pAmounts[1], pmtAssetIdA, pmtAssetIdB, balanceA, balanceB, shareAssetSupply)
680+ let shareTokenToPayAmount = $t02624326441._1
681+ let change = $t02624326441._2
682+ let changeAssetId = $t02624326441._3
683+ let pmtAmountA = $t02624326441._4
684+ let pmtAmountB = $t02624326441._5
685685 if ((shareTokenToPayAmount == 0))
686686 then throw("Too small amount to replenish")
687687 else if ((0 > change))
688688 then throw("Change < 0")
689689 else {
690690 let stake1 = if (contains(stakingAssets, strAssetIdA))
691691 then invoke(i.caller, "stakeUnstake", [true, pmtAmountA, strAssetIdA], nil)
692692 else 0
693693 if ((stake1 == stake1))
694694 then {
695695 let stake2 = if (contains(stakingAssets, strAssetIdB))
696696 then invoke(i.caller, "stakeUnstake", [true, pmtAmountB, strAssetIdB], nil)
697697 else 0
698698 if ((stake2 == stake2))
699699 then {
700700 let shareTokenST = if (stakeFarming)
701701 then {
702702 let stPayments = ([AttachedPayment(shareAssetId, shareTokenToPayAmount)] ++ (if ((size(pAmounts) == 3))
703703 then [AttachedPayment(if ((pAssetIds[2] == base58''))
704704 then unit
705705 else pAssetIds[2], pAmounts[2])]
706706 else nil))
707707 let reissue = invoke(i.caller, "reissueShareToken", [shareTokenToPayAmount], nil)
708708 if ((reissue == reissue))
709709 then {
710710 let stake3 = invoke(farmingAddress, "lockShareTokensFromPool", [callerBytes, toString(i.caller), lockType], stPayments)
711711 if ((stake3 == stake3))
712712 then nil
713713 else throw("Strict value is not equal to itself.")
714714 }
715715 else throw("Strict value is not equal to itself.")
716716 }
717717 else [Reissue(shareAssetId, shareTokenToPayAmount, true), ScriptTransfer(caller, shareTokenToPayAmount, shareAssetId)]
718718 $Tuple2(nil, $Tuple2(([IntegerEntry(kBalanceA, (balanceA + pmtAmountA)), IntegerEntry(kBalanceB, (balanceB + pmtAmountB)), IntegerEntry(kShareAssetSupply, (shareAssetSupply + shareTokenToPayAmount)), ScriptTransfer(caller, change, changeAssetId)] ++ shareTokenST), nil))
719719 }
720720 else throw("Strict value is not equal to itself.")
721721 }
722722 else throw("Strict value is not equal to itself.")
723723 }
724724 }
725725 })))
726726
727727
728728
729729 @Callable(i)
730730 func replenishWithOneToken (callerBytes,args,pAmounts,pAssetIds) = valueOrElse(isOraclePool(toString(i.caller)), valueOrElse(isDepricated(toString(i.caller)), valueOrElse(isActive(), {
731731 let caller = Address(callerBytes)
732732 let pmtAssetId = parsePaymentAsset(pAssetIds[0])
733733 let pmtAmount = pAmounts[0]
734734 let virtGetMinAmount = parseIntValue(args[0])
735735 let stakeFarming = (args[1] == "true")
736736 let lockType = parseIntValue(args[2])
737- let $t02858128671 = getPoolAssets(i.caller)
738- let strAssetIdA = $t02858128671._1
739- let strAssetIdB = $t02858128671._2
740- let assetIdA = $t02858128671._3
741- let assetIdB = $t02858128671._4
742- let shareAssetId = $t02858128671._5
743- let $t02867628800 = getPoolBalances(i.caller, assetIdA, assetIdB)
744- let balanceA = $t02867628800._1
745- let balanceB = $t02867628800._2
746- let accountBalanceA = $t02867628800._3
747- let accountBalanceB = $t02867628800._4
748- let shareAssetSupply = $t02867628800._5
737+ let $t02870028790 = getPoolAssets(i.caller)
738+ let strAssetIdA = $t02870028790._1
739+ let strAssetIdB = $t02870028790._2
740+ let assetIdA = $t02870028790._3
741+ let assetIdB = $t02870028790._4
742+ let shareAssetId = $t02870028790._5
743+ let $t02879528919 = getPoolBalances(i.caller, assetIdA, assetIdB)
744+ let balanceA = $t02879528919._1
745+ let balanceB = $t02879528919._2
746+ let accountBalanceA = $t02879528919._3
747+ let accountBalanceB = $t02879528919._4
748+ let shareAssetSupply = $t02879528919._5
749749 let initial = ((balanceA + balanceB) == 0)
750750 if ((size(args) != 3))
751751 then throw("Wrong args size")
752752 else if (if ((size(pAmounts) != 1))
753753 then (size(pAmounts) != 2)
754754 else false)
755755 then throw("Two or one attached assets expected")
756756 else if (if ((pmtAssetId != assetIdA))
757757 then (pmtAssetId != assetIdB)
758758 else false)
759759 then throw(((("Incorrect asset attached. Expected: " + strAssetIdA) + " or ") + strAssetIdB))
760760 else if (initial)
761761 then throw("For initial exchanger you need to use two tokens")
762762 else if (if ((balanceA > accountBalanceA))
763763 then true
764764 else (balanceB > accountBalanceB))
765765 then $Tuple2(nil, ([ScriptTransfer(caller, pmtAmount, pmtAssetId)] ++ (if ((size(pAmounts) == 2))
766766 then [AttachedPayment(if ((pAssetIds[2] == base58''))
767767 then unit
768768 else pAssetIds[2], pAmounts[2])]
769769 else (nil ++ suspendSuspicious(accountBalanceA, accountBalanceB, balanceA, balanceB, strAssetIdA, strAssetIdB)))))
770770 else {
771- let $t02971229779 = getFeeParams(i.caller, i.originCaller)
772- let fee = $t02971229779._1
773- let govFee = $t02971229779._2
774- let teamFee = $t02971229779._3
775- let $t02978829850 = getAssetInfo(pmtAssetId)
776- let pmtAssetIdStr = $t02978829850._1
777- let pmtAssetIdName = $t02978829850._2
778- let $t02986030106 = calcLPAmountReplansishOneToken(pmtAmount, pmtAssetId, assetIdA, assetIdB, balanceA, balanceB, shareAssetSupply, fee, govFee, teamFee, virtGetMinAmount)
779- let shareTokenToPayAmount = $t02986030106._1
780- let newBalanceA = $t02986030106._2
781- let newBalanceB = $t02986030106._3
782- let govReward = $t02986030106._4
783- let teamReward = $t02986030106._5
784- let govRewardAsset = $t02986030106._6
771+ let $t02983129898 = getFeeParams(i.caller, i.originCaller)
772+ let fee = $t02983129898._1
773+ let govFee = $t02983129898._2
774+ let teamFee = $t02983129898._3
775+ let $t02990729969 = getAssetInfo(pmtAssetId)
776+ let pmtAssetIdStr = $t02990729969._1
777+ let pmtAssetIdName = $t02990729969._2
778+ let $t02998730233 = calcLPAmountReplansishOneToken(pmtAmount, pmtAssetId, assetIdA, assetIdB, balanceA, balanceB, shareAssetSupply, fee, govFee, teamFee, virtGetMinAmount)
779+ let shareTokenToPayAmount = $t02998730233._1
780+ let newBalanceA = $t02998730233._2
781+ let newBalanceB = $t02998730233._3
782+ let govReward = $t02998730233._4
783+ let teamReward = $t02998730233._5
784+ let govRewardAsset = $t02998730233._6
785785 let govRewardAssetStr = if ((govRewardAsset == assetIdA))
786786 then strAssetIdA
787787 else strAssetIdB
788788 if ((shareTokenToPayAmount == 0))
789789 then throw("Too small amount to replenish")
790790 else {
791791 let stake1 = if (contains(stakingAssets, pmtAssetIdStr))
792792 then invoke(i.caller, "stakeUnstake", [true, pmtAmount, pmtAssetIdStr], nil)
793793 else 0
794794 if ((stake1 == stake1))
795795 then {
796796 let stake2 = if (contains(stakingAssets, govRewardAssetStr))
797797 then invoke(i.caller, "stakeUnstake", [false, (govReward + teamReward), govRewardAssetStr], nil)
798798 else 0
799799 if ((stake2 == stake2))
800800 then {
801801 let shareTokenST = if (stakeFarming)
802802 then {
803803 let stPayments = ([AttachedPayment(shareAssetId, shareTokenToPayAmount)] ++ (if ((size(pAmounts) == 2))
804804 then [AttachedPayment(if ((pAssetIds[1] == base58''))
805805 then unit
806806 else pAssetIds[1], pAmounts[1])]
807807 else nil))
808808 let reissue = invoke(i.caller, "reissueShareToken", [shareTokenToPayAmount], nil)
809809 if ((reissue == reissue))
810810 then {
811811 let stake3 = invoke(farmingAddress, "lockShareTokensFromPool", [callerBytes, toString(i.caller), lockType], stPayments)
812812 if ((stake3 == stake3))
813813 then nil
814814 else throw("Strict value is not equal to itself.")
815815 }
816816 else throw("Strict value is not equal to itself.")
817817 }
818818 else [Reissue(shareAssetId, shareTokenToPayAmount, true), ScriptTransfer(caller, shareTokenToPayAmount, shareAssetId)]
819819 $Tuple2(nil, $Tuple2(([IntegerEntry(kBalanceA, newBalanceA), IntegerEntry(kBalanceB, newBalanceB), IntegerEntry(kShareAssetSupply, (shareAssetSupply + shareTokenToPayAmount)), ScriptTransfer(moneyBoxAddress, govReward, govRewardAsset), ScriptTransfer(teamBoxAddress, teamReward, govRewardAsset)] ++ shareTokenST), nil))
820820 }
821821 else throw("Strict value is not equal to itself.")
822822 }
823823 else throw("Strict value is not equal to itself.")
824824 }
825825 }
826826 })))
827827
828828
829829
830830 @Callable(i)
831831 func withdraw (callerBytes,args,pAmounts,pAssetIds) = valueOrElse(isOraclePool(toString(i.caller)), valueOrElse(isActive(), {
832832 let caller = Address(callerBytes)
833- let $t03217132261 = getPoolAssets(i.caller)
834- let strAssetIdA = $t03217132261._1
835- let strAssetIdB = $t03217132261._2
836- let assetIdA = $t03217132261._3
837- let assetIdB = $t03217132261._4
838- let shareAssetId = $t03217132261._5
839- let $t03227032394 = getPoolBalances(i.caller, assetIdA, assetIdB)
840- let balanceA = $t03227032394._1
841- let balanceB = $t03227032394._2
842- let accountBalanceA = $t03227032394._3
843- let accountBalanceB = $t03227032394._4
844- let shareAssetSupply = $t03227032394._5
845- let $t03240332783 = if ((size(pAmounts) == 1))
833+ let $t03230132391 = getPoolAssets(i.caller)
834+ let strAssetIdA = $t03230132391._1
835+ let strAssetIdB = $t03230132391._2
836+ let assetIdA = $t03230132391._3
837+ let assetIdB = $t03230132391._4
838+ let shareAssetId = $t03230132391._5
839+ let $t03240032524 = getPoolBalances(i.caller, assetIdA, assetIdB)
840+ let balanceA = $t03240032524._1
841+ let balanceB = $t03240032524._2
842+ let accountBalanceA = $t03240032524._3
843+ let accountBalanceB = $t03240032524._4
844+ let shareAssetSupply = $t03240032524._5
845+ let $t03253332913 = if ((size(pAmounts) == 1))
846846 then {
847847 let pAsset = parsePaymentAsset(pAssetIds[0])
848848 if ((pAsset != shareAssetId))
849849 then throw(("Incorrect asset attached. Expected: " + toBase58String(shareAssetId)))
850850 else $Tuple2(pAmounts[0], pAsset)
851851 }
852852 else $Tuple2(0, shareAssetId)
853- let pmtAmount = $t03240332783._1
854- let pmtAssetId = $t03240332783._2
853+ let pmtAmount = $t03253332913._1
854+ let pmtAssetId = $t03253332913._2
855855 if ((size(args) != 1))
856856 then throw("Wrong args size")
857857 else if ((size(pAmounts) > 1))
858858 then throw("One attached payment expected")
859859 else if (if ((balanceA > accountBalanceA))
860860 then true
861861 else (balanceB > accountBalanceB))
862862 then $Tuple2(nil, ([ScriptTransfer(caller, pmtAmount, pmtAssetId)] ++ suspendSuspicious(accountBalanceA, accountBalanceB, balanceA, balanceB, strAssetIdA, strAssetIdB)))
863863 else {
864864 let unlockAmount = parseIntValue(valueOrElse(args[0], "0"))
865865 let unlock = if ((unlockAmount > 0))
866866 then invoke(farmingAddress, "withdrawShareTokensFromPool", [callerBytes, toString(i.caller), unlockAmount], nil)
867867 else 0
868868 if ((unlock == unlock))
869869 then {
870870 let withdrawAmount = (pmtAmount + unlockAmount)
871871 let amountToPayA = fraction(withdrawAmount, balanceA, shareAssetSupply)
872872 let amountToPayB = fraction(withdrawAmount, balanceB, shareAssetSupply)
873873 let stake1 = if (contains(stakingAssets, strAssetIdA))
874874 then invoke(i.caller, "stakeUnstake", [false, amountToPayA, strAssetIdA], nil)
875875 else 0
876876 if ((stake1 == stake1))
877877 then {
878878 let stake2 = if (contains(stakingAssets, strAssetIdB))
879879 then invoke(i.caller, "stakeUnstake", [false, amountToPayB, strAssetIdB], nil)
880880 else 0
881881 if ((stake2 == stake2))
882882 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))
883883 else throw("Strict value is not equal to itself.")
884884 }
885885 else throw("Strict value is not equal to itself.")
886886 }
887887 else throw("Strict value is not equal to itself.")
888888 }
889889 }))
890890
891891
892892
893893 @Callable(i)
894894 func withdrawOneToken (callerBytes,args,pAmounts,pAssetIds) = valueOrElse(isOraclePool(toString(i.caller)), valueOrElse(isDepricated(toString(i.caller)), valueOrElse(isActive(), {
895895 let caller = Address(callerBytes)
896896 let withdrawAsset = if ((args[0] == ""))
897897 then unit
898898 else fromBase58String(args[0])
899- let $t03500135091 = getPoolAssets(i.caller)
900- let strAssetIdA = $t03500135091._1
901- let strAssetIdB = $t03500135091._2
902- let assetIdA = $t03500135091._3
903- let assetIdB = $t03500135091._4
904- let shareAssetId = $t03500135091._5
905- let $t03510035224 = getPoolBalances(i.caller, assetIdA, assetIdB)
906- let balanceA = $t03510035224._1
907- let balanceB = $t03510035224._2
908- let accountBalanceA = $t03510035224._3
909- let accountBalanceB = $t03510035224._4
910- let shareAssetSupply = $t03510035224._5
911- let $t03523335585 = if ((size(pAmounts) == 1))
899+ let $t03513135221 = getPoolAssets(i.caller)
900+ let strAssetIdA = $t03513135221._1
901+ let strAssetIdB = $t03513135221._2
902+ let assetIdA = $t03513135221._3
903+ let assetIdB = $t03513135221._4
904+ let shareAssetId = $t03513135221._5
905+ let $t03523035354 = getPoolBalances(i.caller, assetIdA, assetIdB)
906+ let balanceA = $t03523035354._1
907+ let balanceB = $t03523035354._2
908+ let accountBalanceA = $t03523035354._3
909+ let accountBalanceB = $t03523035354._4
910+ let shareAssetSupply = $t03523035354._5
911+ let $t03536335715 = if ((size(pAmounts) == 1))
912912 then {
913913 let pAsset = parsePaymentAsset(pAssetIds[0])
914914 if ((pAsset != shareAssetId))
915915 then throw(("Incorrect asset attached. Expected: " + toBase58String(shareAssetId)))
916916 else $Tuple2(pAmounts[0], pAsset)
917917 }
918918 else $Tuple2(0, shareAssetId)
919- let pmtAmount = $t03523335585._1
920- let pmtAssetId = $t03523335585._2
919+ let pmtAmount = $t03536335715._1
920+ let pmtAssetId = $t03536335715._2
921921 let virtMinToRecive = parseIntValue(args[1])
922922 if ((size(args) != 3))
923923 then throw("Wrong args size")
924924 else if ((size(pAmounts) > 1))
925925 then throw("One attached payment expected")
926926 else if ((pmtAssetId != shareAssetId))
927927 then throw(("Incorrect asset attached. Expected: " + toBase58String(shareAssetId)))
928928 else if (!(containsElement([assetIdA, assetIdB], withdrawAsset)))
929929 then throw("Incorrect withdraw asset.")
930930 else if (if ((balanceA > accountBalanceA))
931931 then true
932932 else (balanceB > accountBalanceB))
933933 then $Tuple2(nil, ([ScriptTransfer(caller, pmtAmount, pmtAssetId)] ++ suspendSuspicious(accountBalanceA, accountBalanceB, balanceA, balanceB, strAssetIdA, strAssetIdB)))
934934 else {
935935 let unlockAmount = parseIntValue(valueOrElse(args[2], "0"))
936936 let unlock = if ((unlockAmount > 0))
937937 then invoke(farmingAddress, "withdrawShareTokensFromPool", [callerBytes, toString(i.caller), unlockAmount], nil)
938938 else 0
939939 if ((unlock == unlock))
940940 then {
941941 let withdrawAmount = (pmtAmount + unlockAmount)
942942 let amountToPayA = fraction(withdrawAmount, balanceA, shareAssetSupply)
943943 let amountToPayB = fraction(withdrawAmount, balanceB, shareAssetSupply)
944- let $t03685236919 = getFeeParams(i.caller, i.originCaller)
945- let fee = $t03685236919._1
946- let govFee = $t03685236919._2
947- let teamFee = $t03685236919._3
948- let $t03693237346 = if ((withdrawAsset == assetIdA))
944+ let $t03698237049 = getFeeParams(i.caller, i.originCaller)
945+ let fee = $t03698237049._1
946+ let govFee = $t03698237049._2
947+ let teamFee = $t03698237049._3
948+ let $t03706237476 = if ((withdrawAsset == assetIdA))
949949 then calculateFees(amountToPayB, virtMinToRecive, (balanceB - amountToPayB), (balanceA - amountToPayA), fee, govFee, teamFee)
950950 else calculateFees(amountToPayA, virtMinToRecive, (balanceA - amountToPayA), (balanceB - amountToPayB), fee, govFee, teamFee)
951- let amountWithoutFee = $t03693237346._1
952- let amountWithFee = $t03693237346._2
953- let governanceReward = $t03693237346._3
954- let teamReward = $t03693237346._4
955- let $t03735938669 = if ((withdrawAsset == assetIdA))
951+ let amountWithoutFee = $t03706237476._1
952+ let amountWithFee = $t03706237476._2
953+ let governanceReward = $t03706237476._3
954+ let teamReward = $t03706237476._4
955+ let $t03748938799 = if ((withdrawAsset == assetIdA))
956956 then {
957957 let unstake = if (contains(stakingAssets, strAssetIdA))
958958 then invoke(i.caller, "stakeUnstake", [false, (((amountToPayA + amountWithFee) + governanceReward) + teamReward), strAssetIdA], nil)
959959 else 0
960960 if ((unstake == unstake))
961961 then $Tuple4(((((balanceA - amountToPayA) - amountWithFee) - governanceReward) - teamReward), balanceB, assetIdA, [ScriptTransfer(caller, (amountToPayA + amountWithFee), assetIdA)])
962962 else throw("Strict value is not equal to itself.")
963963 }
964964 else {
965965 let unstake = if (contains(stakingAssets, strAssetIdB))
966966 then invoke(i.caller, "stakeUnstake", [false, (((amountToPayB + amountWithFee) + governanceReward) + teamReward), strAssetIdB], nil)
967967 else 0
968968 if ((unstake == unstake))
969969 then $Tuple4(balanceA, ((((balanceB - amountToPayB) - amountWithFee) - governanceReward) - teamReward), assetIdB, [ScriptTransfer(caller, (amountToPayB + amountWithFee), assetIdB)])
970970 else throw("Strict value is not equal to itself.")
971971 }
972- let newBalanceA = $t03735938669._1
973- let newBalanceB = $t03735938669._2
974- let govRewardAssetId = $t03735938669._3
975- let userTransfer = $t03735938669._4
972+ let newBalanceA = $t03748938799._1
973+ let newBalanceB = $t03748938799._2
974+ let govRewardAssetId = $t03748938799._3
975+ let userTransfer = $t03748938799._4
976976 $Tuple2([ScriptTransfer(i.caller, unlockAmount, shareAssetId)], $Tuple2(([IntegerEntry(kBalanceA, newBalanceA), IntegerEntry(kBalanceB, newBalanceB), IntegerEntry(kShareAssetSupply, (shareAssetSupply - withdrawAmount)), Burn(shareAssetId, withdrawAmount), ScriptTransfer(moneyBoxAddress, governanceReward, govRewardAssetId), ScriptTransfer(teamBoxAddress, teamReward, govRewardAssetId)] ++ userTransfer), nil))
977977 }
978978 else throw("Strict value is not equal to itself.")
979979 }
980980 })))
981981
982982
983983
984984 @Callable(i)
985985 func takeIntoAccountExtraFunds (callerBytes,args,pAmounts,pAssetIds) = valueOrElse(isOraclePool(toString(i.caller)), valueOrElse(isActive(), {
986- let $t03942939505 = getPoolAssets(i.caller)
987- let strAssetIdA = $t03942939505._1
988- let strAssetIdB = $t03942939505._2
989- let assetIdA = $t03942939505._3
990- let assetIdB = $t03942939505._4
986+ let $t03955939635 = getPoolAssets(i.caller)
987+ let strAssetIdA = $t03955939635._1
988+ let strAssetIdB = $t03955939635._2
989+ let assetIdA = $t03955939635._3
990+ let assetIdB = $t03955939635._4
991991 let claim = if (if ((assetIdA == USDN))
992992 then true
993993 else (assetIdB == USDN))
994994 then invoke(i.caller, "claimNetrinoRewards", nil, nil)
995995 else 0
996996 if ((claim == claim))
997997 then {
998- let $t03966539771 = getPoolBalances(i.caller, assetIdA, assetIdB)
999- let balanceA = $t03966539771._1
1000- let balanceB = $t03966539771._2
1001- let accountBalanceA = $t03966539771._3
1002- let accountBalanceB = $t03966539771._4
998+ let $t03979539901 = getPoolBalances(i.caller, assetIdA, assetIdB)
999+ let balanceA = $t03979539901._1
1000+ let balanceB = $t03979539901._2
1001+ let accountBalanceA = $t03979539901._3
1002+ let accountBalanceB = $t03979539901._4
10031003 let amountEnrollA = (accountBalanceA - balanceA)
10041004 let amountEnrollB = (accountBalanceB - balanceB)
10051005 if ((size(args) != 0))
10061006 then throw("Wrong args size")
10071007 else if ((moneyBoxAddress != i.originCaller))
10081008 then throw("Only the wallet can call this function")
10091009 else if (if ((0 > amountEnrollA))
10101010 then true
10111011 else (0 > amountEnrollB))
10121012 then suspend("Enroll amount negative")
10131013 else if (if ((amountEnrollA == 0))
10141014 then (amountEnrollB == 0)
10151015 else false)
10161016 then throw("No money to take")
10171017 else {
10181018 let stake1 = if (if (contains(stakingAssets, strAssetIdA))
10191019 then (amountEnrollA > 0)
10201020 else false)
10211021 then invoke(i.caller, "stakeUnstake", [true, amountEnrollA, strAssetIdA], nil)
10221022 else 0
10231023 if ((stake1 == stake1))
10241024 then {
10251025 let stake2 = if (if (contains(stakingAssets, strAssetIdB))
10261026 then (amountEnrollB > 0)
10271027 else false)
10281028 then invoke(i.caller, "stakeUnstake", [true, amountEnrollB, strAssetIdB], nil)
10291029 else 0
10301030 if ((stake2 == stake2))
10311031 then $Tuple2(nil, $Tuple2([IntegerEntry(kBalanceA, (balanceA + amountEnrollA)), IntegerEntry(kBalanceB, (balanceB + amountEnrollB))], nil))
10321032 else throw("Strict value is not equal to itself.")
10331033 }
10341034 else throw("Strict value is not equal to itself.")
10351035 }
10361036 }
10371037 else throw("Strict value is not equal to itself.")
10381038 }))
10391039
10401040
10411041 @Verifier(tx)
10421042 func verify () = {
10431043 let multiSignedByAdmins = {
10441044 let adminPubKey1Signed = if (sigVerify(tx.bodyBytes, tx.proofs[0], adminPubKey1))
10451045 then 1
10461046 else 0
10471047 let adminPubKey2Signed = if (sigVerify(tx.bodyBytes, tx.proofs[1], adminPubKey2))
10481048 then 1
10491049 else 0
10501050 let adminPubKey3Signed = if (sigVerify(tx.bodyBytes, tx.proofs[2], adminPubKey3))
10511051 then 1
10521052 else 0
10531053 (((adminPubKey1Signed + adminPubKey2Signed) + adminPubKey3Signed) >= 2)
10541054 }
10551055 multiSignedByAdmins
10561056 }
10571057

github/deemru/w8io/026f985 
220.92 ms