tx · 9YzorKuaByCHfGHzJ351tmEPHAbcpibYE6F5my6Cpokw

3MvRWw2FPEimFCTGtK7qY9uAJbM7XJ4ZfJS:  -0.04400000 Waves

2023.06.05 17:43 [2609507] smart account 3MvRWw2FPEimFCTGtK7qY9uAJbM7XJ4ZfJS > SELF 0.00000000 Waves

{ "type": 13, "id": "9YzorKuaByCHfGHzJ351tmEPHAbcpibYE6F5my6Cpokw", "fee": 4400000, "feeAssetId": null, "timestamp": 1685976176943, "version": 2, "chainId": 84, "sender": "3MvRWw2FPEimFCTGtK7qY9uAJbM7XJ4ZfJS", "senderPublicKey": "HP8sssVq1866F7CaPQJwgFrt6fsqhQjKwM84cL1wjD2a", "proofs": [ "4whFbZq1dEXuBBtwUur2RLpvYuEdQsmoSav7AZPG8ydT2PmjRQWcU7nQ8HkXnJxmPza2CeT5sffQTVtfNYaqNEzd" ], "script": "base64:BgKRAQgCEgcKBQgBCAEBEgMKAQgSBAoCCAgSBQoDCAEIEgMKAQgSBAoCCAESBgoEAQgIARIFCgMBCAgSAwoBCBIGCgQIAQgIEgUKAwgIARIOCgwICAgBBBEYGBEBARgSCgoICAgIAQQIARgSDgoMCAgIAQQYGBgYGAEYEgoKCAgIAQEBAQEBEgYKBAgICAESBAoCCAhfAAdTRl9QT09MAgJTRgAHV1hfUE9PTAICV1gAD0NBUF9GRUVfTk9fTE9BTgIJY2FwTm9Mb2FuAAxDQVBfRkVFX0xPQU4CB2NhcExvYW4AFFNUT1BMT1NTX0ZFRV9OT19MT0FOAg5zdG9wTG9zc05vTG9hbgANU1RPUExPU1NfTE9BTgIMc3RvcExvc3NMb2FuAAhMT0FOX0ZFRQIEbG9hbgALTk9fTE9BTl9GRUUCBm5vTG9hbgAGTk9fRkVFAgVub0ZlZQAGU0NBTEU4AIDC1y8AB1NDQUxFMTAAgMivoCUACkZFRV9TQ0FMRTYAwIQ9ABRrU0ZQb29sQUFzc2V0QmFsYW5jZQIPQV9hc3NldF9iYWxhbmNlABRrU0ZQb29s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AAACBQR0eXBlBQdXWF9QT09MBAliYWxCZWZvcmUJAQ5hY2NvdW50QmFsYW5jZQEFBFdYSUQDCQAAAgUJYmFsQmVmb3JlBQliYWxCZWZvcmUEA2ludgkA/AcECQEQZ2V0V1hGYXJtaW5nQWRkcgEJAQdBZGRyZXNzAQkA2QQBBQRwb29sAgdjbGFpbVdYCQDMCAIFBHBvb2wFA25pbAUDbmlsAwkAAAIFA2ludgUDaW52BAhiYWxBZnRlcgkBDmFjY291bnRCYWxhbmNlAQUEV1hJRAkAlAoCBQNuaWwJAJQKAgkAZQIFCGJhbEFmdGVyBQliYWxCZWZvcmUFBFdYSUQJAAIBAiRTdHJpY3QgdmFsdWUgaXMgbm90IGVxdWFsIHRvIGl0c2VsZi4JAAIBAiRTdHJpY3QgdmFsdWUgaXMgbm90IGVxdWFsIHRvIGl0c2VsZi4JAAIBAg9Xcm9uZyBwb29sIHR5cGUBAnR4AQZ2ZXJpZnkACQD0AwMIBQJ0eAlib2R5Qnl0ZXMJAJEDAggFAnR4BnByb29mcwAACAUCdHgPc2VuZGVyUHVibGljS2V5E2HzHw==", "height": 2609507, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 3ieZeCgH8yz4RSxkTeTXdxnV7xdqT6UNNKYhwouedg4Z Next: GFF7qZ7YhMkxuEKB3J76QAqus64HtdhXtmK7paxdrekH Diff:
OldNewDifferences
474474 let poolAddr = addressFromStringValue(pool)
475475 if ((pType == SF_POOL))
476476 then {
477- let args = [toString(pmtA), toString(pmtB), "0"]
478477 let inv = {
479- let @ = invoke(poolAddr, "callFunction", ["calcLPReplanishDiffPropREADONLY", args], nil)
478+ let @ = invoke(poolAddr, "callFunction", ["calcLPReplanishDiffPropREADONLY", [toString(pmtA), toString(pmtB), "0"]], nil)
480479 if ($isInstanceOf(@, "(Int, Int, Int, Int, Int, ByteVector|Unit)"))
481480 then @
482481 else throw(($getType(@) + " couldn't be cast to (Int, Int, Int, Int, Int, ByteVector|Unit)"))
487486 }
488487 else if ((pType == WX_POOL))
489488 then {
490- let $t01497115312 = if (if ((pmtA > 0))
489+ let $t01491915260 = if (if ((pmtA > 0))
491490 then (pmtB > 0)
492491 else false)
493492 then {
494- let $t01505215178 = calcReplenishByTwoTokens(pType, poolAddr, pmtA, aId, pmtB, bId, balA, balB)
495- let pmtInA = $t01505215178._1
496- let pmtInB = $t01505215178._2
497- let change = $t01505215178._3
498- let changeId = $t01505215178._4
499- let lpAmount = $t01505215178._5
493+ let $t01500015126 = calcReplenishByTwoTokens(pType, poolAddr, pmtA, aId, pmtB, bId, balA, balB)
494+ let pmtInA = $t01500015126._1
495+ let pmtInB = $t01500015126._2
496+ let change = $t01500015126._3
497+ let changeId = $t01500015126._4
498+ let lpAmount = $t01500015126._5
500499 $Tuple3(change, changeId, lpAmount)
501500 }
502501 else if ((pmtA > 0))
503502 then $Tuple3(pmtA, aId, 0)
504503 else $Tuple3(pmtB, bId, 0)
505- let change = $t01497115312._1
506- let changeId = $t01497115312._2
507- let lpTwo = $t01497115312._3
504+ let change = $t01491915260._1
505+ let changeId = $t01491915260._2
506+ let lpTwo = $t01491915260._3
508507 let lpOne = if ((change > 0))
509508 then {
510509 let inv = {
526525
527526 func calcWithdrawLPVirt (pType,pool,lpAmount,shareId,aId,bId,balA,balB,borrowAmount,borrowAssetId) = {
528527 let poolAddr = addressFromStringValue(pool)
529- let $t01579816239 = if ((pType == SF_POOL))
528+ let $t01574616187 = if ((pType == SF_POOL))
530529 then {
531530 let inv = {
532531 let @ = invoke(poolAddr, "callFunction", ["withdrawREADONLY", [toString(lpAmount)]], nil)
551550 else throw("Strict value is not equal to itself.")
552551 }
553552 else throw("Wrong pool type")
554- let getAmountA = $t01579816239._1
555- let getAmountB = $t01579816239._2
553+ let getAmountA = $t01574616187._1
554+ let getAmountB = $t01574616187._2
556555 if ((borrowAmount > 0))
557556 then {
558557 let amountToGetEx = if (if ((borrowAssetId == aId))
564563 else false)
565564 then (borrowAmount - getAmountB)
566565 else 0
567- let $t01654216857 = if ((amountToGetEx > 0))
566+ let $t01649016805 = if ((amountToGetEx > 0))
568567 then if ((pType == SF_POOL))
569568 then calcAmountToPaySF(pool, aId, bId, balA, balB, amountToGetEx, borrowAssetId)
570569 else calcAmountToPayWX(pool, aId, bId, balA, balB, amountToGetEx, borrowAssetId)
571570 else $Tuple2("", 0)
572- let assetToPay = $t01654216857._1
573- let amountToPay = $t01654216857._2
571+ let assetToPay = $t01649016805._1
572+ let amountToPay = $t01649016805._2
574573 if ((borrowAssetId == aId))
575574 then $Tuple2(((getAmountA + amountToGetEx) - borrowAmount), (getAmountB - amountToPay))
576575 else $Tuple2((getAmountA - amountToPay), ((getAmountB + amountToGetEx) - borrowAmount))
617616 if ((lpBalanceBefore == lpBalanceBefore))
618617 then {
619618 let poolAddr = addressFromStringValue(pool)
620- let $t01806718483 = if (if ((pmtA > 0))
619+ let $t01801518431 = if (if ((pmtA > 0))
621620 then (pmtB > 0)
622621 else false)
623622 then {
624- let $t01813318249 = calcReplenishByTwoTokens(pType, poolAddr, pmtA, aId, pmtB, bId, balA, balB)
625- let pmtInA = $t01813318249._1
626- let pmtInB = $t01813318249._2
627- let change = $t01813318249._3
628- let changeId = $t01813318249._4
623+ let $t01808118197 = calcReplenishByTwoTokens(pType, poolAddr, pmtA, aId, pmtB, bId, balA, balB)
624+ let pmtInA = $t01808118197._1
625+ let pmtInB = $t01808118197._2
626+ let change = $t01808118197._3
627+ let changeId = $t01808118197._4
629628 let inv = replenishTwoTokensByType(poolAddr, pType, pmtInA, aId, pmtInB, bId)
630629 if ((inv == inv))
631630 then $Tuple2(change, changeId)
636635 else if ((pmtB > 0))
637636 then $Tuple2(pmtB, bId)
638637 else throw("pmts must be > 0")
639- let change = $t01806718483._1
640- let changeId = $t01806718483._2
638+ let change = $t01801518431._1
639+ let changeId = $t01801518431._2
641640 let inv = if ((change > 0))
642641 then replenishOneTokenByType(poolAddr, pType, change, changeId)
643642 else nil
665664 func replenishEntries (pool,user,stakedAmount,axlyFeeAmount,posNum,shareId,type,withLoan) = {
666665 let totalAmount = getPoolTotalShare(pool)
667666 let totalAmountLoan = getPoolTotalShareWithLoan(pool)
668- let $t01934119579 = if (withLoan)
667+ let $t01928919527 = if (withLoan)
669668 then $Tuple2(getIntegerValue(this, (pool + kPoolInterestLoan)), (totalAmountLoan + stakedAmount))
670669 else $Tuple2(getIntegerValue(this, (pool + kPoolInterestNoLoan)), totalAmountLoan)
671- let curPoolInterest = $t01934119579._1
672- let totalStakedWithLoan = $t01934119579._2
670+ let curPoolInterest = $t01928919527._1
671+ let totalStakedWithLoan = $t01928919527._2
673672 [IntegerEntry((pool + kPoolTotal), (totalAmount + stakedAmount)), IntegerEntry((pool + kPoolTotalLoan), totalStakedWithLoan), IntegerEntry((((((pool + "_") + user) + "_") + toString(posNum)) + kUserPosition), stakedAmount), IntegerEntry((((((pool + "_") + user) + "_") + toString(posNum)) + kUserPositionInterest), curPoolInterest), StringEntry((((user + "_") + toString(posNum)) + kUserPositionPool), pool), IntegerEntry((user + kUserPositionNum), posNum), ScriptTransfer(moneyBox, axlyFeeAmount, fromBase58String(shareId))]
674673 }
675674
715714
716715 func capitalize (pool,pType,tokenId,tokenAmount) = {
717716 let poolAddr = Address(fromBase58String(pool))
718- let $t02193022009 = getPoolData(poolAddr, pType)
719- let AId = $t02193022009._1
720- let BId = $t02193022009._2
721- let balA = $t02193022009._3
722- let balB = $t02193022009._4
723- let shareId = $t02193022009._5
724- let $t02201222092 = if ((tokenId == AId))
717+ let $t02187821957 = getPoolData(poolAddr, pType)
718+ let AId = $t02187821957._1
719+ let BId = $t02187821957._2
720+ let balA = $t02187821957._3
721+ let balB = $t02187821957._4
722+ let shareId = $t02187821957._5
723+ let $t02196022040 = if ((tokenId == AId))
725724 then $Tuple2(tokenAmount, 0)
726725 else $Tuple2(0, tokenAmount)
727- let pmtA = $t02201222092._1
728- let pmtB = $t02201222092._2
729- let $t02209522199 = replenishByType(pType, pool, NO_FEE, pmtA, AId, pmtB, BId, balA, balB, shareId)
730- let stakedAmount = $t02209522199._1
731- let nf = $t02209522199._2
726+ let pmtA = $t02196022040._1
727+ let pmtB = $t02196022040._2
728+ let $t02204322147 = replenishByType(pType, pool, NO_FEE, pmtA, AId, pmtB, BId, balA, balB, shareId)
729+ let stakedAmount = $t02204322147._1
730+ let nf = $t02204322147._2
732731 let curPoolInterestLoan = valueOrElse(getInteger(this, (pool + kPoolInterestLoan)), 0)
733732 let curPoolInterestNoLoan = valueOrElse(getInteger(this, (pool + kPoolInterestNoLoan)), 0)
734733 let totalShareAmount = getPoolTotalShare(pool)
754753 func withdrawAmountCalc (pool,userCanWithdraw,debt,borrowAsset) = {
755754 let poolAddr = Address(fromBase58String(pool))
756755 let pType = valueOrErrorMessage(getString(this, (kPool + pool)), "Unknown pool")
757- let $t02396724043 = getPoolData(poolAddr, pType)
758- let assetIdA = $t02396724043._1
759- let assetIdB = $t02396724043._2
760- let balA = $t02396724043._3
761- let balB = $t02396724043._4
762- let shareId = $t02396724043._5
756+ let $t02391523991 = getPoolData(poolAddr, pType)
757+ let assetIdA = $t02391523991._1
758+ let assetIdB = $t02391523991._2
759+ let balA = $t02391523991._3
760+ let balB = $t02391523991._4
761+ let shareId = $t02391523991._5
763762 let cBalABefore = accountBalance(assetIdFromStr(assetIdA))
764763 if ((cBalABefore == cBalABefore))
765764 then {
778777 then {
779778 let cBalAAfter = accountBalance(assetIdFromStr(assetIdA))
780779 let cBalBAfter = accountBalance(assetIdFromStr(assetIdB))
781- let $t02460624695 = $Tuple2((cBalAAfter - cBalABefore), (cBalBAfter - cBalBBefore))
782- let tokensAmountA = $t02460624695._1
783- let tokensAmountB = $t02460624695._2
784- let $t02469825394 = if ((debt > 0))
780+ let $t02455424643 = $Tuple2((cBalAAfter - cBalABefore), (cBalBAfter - cBalBBefore))
781+ let tokensAmountA = $t02455424643._1
782+ let tokensAmountB = $t02455424643._2
783+ let $t02464625342 = if ((debt > 0))
785784 then {
786785 let amountToGetEx = if (if ((borrowAsset == assetIdA))
787786 then (debt > tokensAmountA)
804803 else throw("Strict value is not equal to itself.")
805804 }
806805 else $Tuple2(tokensAmountA, tokensAmountB)
807- let toUserAmountA = $t02469825394._1
808- let toUserAmountB = $t02469825394._2
806+ let toUserAmountA = $t02464625342._1
807+ let toUserAmountB = $t02464625342._2
809808 $Tuple7(toUserAmountA, assetIdA, toUserAmountB, assetIdB, cBalAAfter, cBalBAfter, shareId)
810809 }
811810 else throw("Strict value is not equal to itself.")
842841 else throw(($getType(@) + " couldn't be cast to Int"))
843842 }
844843 else 0
845- let $t02690627059 = withdrawAmountCalc(pool, userCanWithdraw, debt, borrowAsset)
846- if (($t02690627059 == $t02690627059))
844+ let $t02685427007 = withdrawAmountCalc(pool, userCanWithdraw, debt, borrowAsset)
845+ if (($t02685427007 == $t02685427007))
847846 then {
848- let shareId = $t02690627059._7
849- let cBalBAfter = $t02690627059._6
850- let cBalAAfter = $t02690627059._5
851- let assetIdB = $t02690627059._4
852- let toUserAmountB = $t02690627059._3
853- let assetIdA = $t02690627059._2
854- let toUserAmountA = $t02690627059._1
847+ let shareId = $t02685427007._7
848+ let cBalBAfter = $t02685427007._6
849+ let cBalAAfter = $t02685427007._5
850+ let assetIdB = $t02685427007._4
851+ let toUserAmountB = $t02685427007._3
852+ let assetIdA = $t02685427007._2
853+ let toUserAmountA = $t02685427007._1
855854 let closeDbtInv = if ((debt > 0))
856855 then invoke(getLendSrvAddr(), "repayFor", [((user + "_") + posId)], [AttachedPayment(assetIdFromStr(borrowAsset), debt)])
857856 else 0
887886 then throw("Leverage can't be <100 and >300")
888887 else {
889888 let pType = valueOrErrorMessage(getString(this, (kPool + pool)), "Pool is not inited")
890- let $t02857128661 = getPoolData(Address(fromBase58String(pool)), pType)
891- let AId = $t02857128661._1
892- let BId = $t02857128661._2
893- let balA = $t02857128661._3
894- let balB = $t02857128661._4
895- let shareId = $t02857128661._5
889+ let $t02851928609 = getPoolData(Address(fromBase58String(pool)), pType)
890+ let AId = $t02851928609._1
891+ let BId = $t02851928609._2
892+ let balA = $t02851928609._3
893+ let balB = $t02851928609._4
894+ let shareId = $t02851928609._5
896895 let borrowAmount = if ((leverage > 100))
897896 then {
898897 let dPriceA = ( let @ = invoke(priceOracleAddr, "getTWAP60", [AId, false], nil)
910909 (fraction(paydInDollar, (leverage - 100), 100) / borrowPrice)
911910 }
912911 else 0
913- let $t02923029342 = if ((borrowAssetId == AId))
912+ let $t02917829290 = if ((borrowAssetId == AId))
914913 then $Tuple2((pmtA + borrowAmount), pmtB)
915914 else $Tuple2(pmtA, (pmtB + borrowAmount))
916- let payInA = $t02923029342._1
917- let payInB = $t02923029342._2
915+ let payInA = $t02917829290._1
916+ let payInB = $t02917829290._2
918917 let lpAmount = calcReplanishLPVirt(pType, pool, pmtA, AId, pmtB, BId, balA, balB)
919- let $t02943529570 = calcWithdrawLPVirt(pType, pool, lpAmount, shareId, AId, BId, balA, balB, borrowAmount, borrowAssetId)
920- if (($t02943529570 == $t02943529570))
918+ let $t02938329518 = calcWithdrawLPVirt(pType, pool, lpAmount, shareId, AId, BId, balA, balB, borrowAmount, borrowAssetId)
919+ if (($t02938329518 == $t02938329518))
921920 then {
922- let amountGetB = $t02943529570._2
923- let amountGetA = $t02943529570._1
921+ let amountGetB = $t02938329518._2
922+ let amountGetA = $t02938329518._1
924923 let ratioBefore = fraction(balB, SCALE8, balA)
925924 let ratioAfter = fraction((balB - amountGetB), SCALE8, (balA - amountGetA))
926925 let impact = (SCALE8 - fraction(ratioBefore, SCALE8, ratioAfter))
959958 then throw("Leverage can't be <100 and >300")
960959 else {
961960 let pType = valueOrErrorMessage(getString(this, (kPool + pool)), "Pool is not inited")
962- let $t03071230802 = getPoolData(Address(fromBase58String(pool)), pType)
963- let AId = $t03071230802._1
964- let BId = $t03071230802._2
965- let balA = $t03071230802._3
966- let balB = $t03071230802._4
967- let shareId = $t03071230802._5
968- let $t03080531442 = if ((size(i.payments) == 2))
961+ let $t03066030750 = getPoolData(Address(fromBase58String(pool)), pType)
962+ let AId = $t03066030750._1
963+ let BId = $t03066030750._2
964+ let balA = $t03066030750._3
965+ let balB = $t03066030750._4
966+ let shareId = $t03066030750._5
967+ let $t03075331390 = if ((size(i.payments) == 2))
969968 then if ((assetIdToStr(i.payments[0].assetId) != AId))
970969 then throw("Wrong payment asset A")
971970 else if ((assetIdToStr(i.payments[1].assetId) != BId))
978977 then $Tuple4(0, AId, i.payments[0].amount, BId)
979978 else throw("Wrong payment")
980979 else throw("One or two payments expected")
981- let pmtA = $t03080531442._1
982- let pmtAssetA = $t03080531442._2
983- let pmtB = $t03080531442._3
984- let pmtAssetB = $t03080531442._4
980+ let pmtA = $t03075331390._1
981+ let pmtAssetA = $t03075331390._2
982+ let pmtB = $t03075331390._3
983+ let pmtAssetB = $t03075331390._4
985984 let newPosNum = getNewUserPositionNumber(pool, toString(i.caller))
986985 if ((leverage > 100))
987986 then {
10161015 else throw("Strict value is not equal to itself.")
10171016 }
10181017 else {
1019- let $t03282532937 = replenishByType(pType, pool, NO_LOAN_FEE, pmtA, AId, pmtB, BId, balA, balB, shareId)
1020- let userStaked = $t03282532937._1
1021- let axlyFee = $t03282532937._2
1018+ let $t03277332885 = replenishByType(pType, pool, NO_LOAN_FEE, pmtA, AId, pmtB, BId, balA, balB, shareId)
1019+ let userStaked = $t03277332885._1
1020+ let axlyFee = $t03277332885._2
10221021 (replenishEntries(pool, toString(i.caller), userStaked, axlyFee, newPosNum, shareId, pType, false) ++ getCursEntries(AId, BId, shareId))
10231022 }
10241023 }
10271026
10281027 @Callable(i)
10291028 func replenishFromLand (requestId) = {
1030- let $t03314833252 = parseRequest(requestId)
1031- let user = $t03314833252._1
1032- let pool = $t03314833252._2
1033- let pmtA = $t03314833252._3
1034- let AId = $t03314833252._4
1035- let pmtB = $t03314833252._5
1036- let BId = $t03314833252._6
1037- let balA = $t03314833252._7
1038- let balB = $t03314833252._8
1039- let shareId = $t03314833252._9
1040- let bwAsset = $t03314833252._10
1041- let bwAmount = $t03314833252._11
1029+ let $t03309633200 = parseRequest(requestId)
1030+ let user = $t03309633200._1
1031+ let pool = $t03309633200._2
1032+ let pmtA = $t03309633200._3
1033+ let AId = $t03309633200._4
1034+ let pmtB = $t03309633200._5
1035+ let BId = $t03309633200._6
1036+ let balA = $t03309633200._7
1037+ let balB = $t03309633200._8
1038+ let shareId = $t03309633200._9
1039+ let bwAsset = $t03309633200._10
1040+ let bwAmount = $t03309633200._11
10421041 if ((size(i.payments) != 1))
10431042 then throw("Wrong payment size")
10441043 else if (if ((assetIdToStr(i.payments[0].assetId) != bwAsset))
10461045 else (i.payments[0].amount != bwAmount))
10471046 then throw("Wrong payment")
10481047 else {
1049- let $t03344233566 = if ((AId == bwAsset))
1048+ let $t03339033514 = if ((AId == bwAsset))
10501049 then $Tuple2((pmtA + i.payments[0].amount), pmtB)
10511050 else $Tuple2(pmtA, (pmtB + i.payments[0].amount))
1052- let pmtAllA = $t03344233566._1
1053- let pmtAllB = $t03344233566._2
1051+ let pmtAllA = $t03339033514._1
1052+ let pmtAllB = $t03339033514._2
10541053 let pType = valueOrErrorMessage(getString(this, (kPool + pool)), "Unknown pool")
1055- let $t03364833757 = replenishByType(pType, pool, LOAN_FEE, pmtA, AId, pmtB, BId, balA, balB, shareId)
1056- let userStaked = $t03364833757._1
1057- let axlyFee = $t03364833757._2
1054+ let $t03359633705 = replenishByType(pType, pool, LOAN_FEE, pmtA, AId, pmtB, BId, balA, balB, shareId)
1055+ let userStaked = $t03359633705._1
1056+ let axlyFee = $t03359633705._2
10581057 let posNum = getNewUserPositionNumber(pool, toString(i.caller))
10591058 let borrowEntries = [IntegerEntry((((((pool + "_") + user) + "_") + toString(posNum)) + kUserBorrowAmount), bwAmount), StringEntry((((((pool + "_") + user) + "_") + toString(posNum)) + kUserBorrowAssetId), bwAsset)]
10601059 let entries = replenishEntries(pool, user, userStaked, axlyFee, posNum, shareId, pType, true)
11181117 func liquidate (user,posId,liquidateAmount) = {
11191118 let pool = valueOrErrorMessage(getString(this, (((user + "_") + posId) + kUserPositionPool)), "no position")
11201119 let pType = valueOrErrorMessage(getString(this, (kPool + pool)), "Pool is not inited")
1121- let $t03654036630 = getPoolData(Address(fromBase58String(pool)), pType)
1122- let AId = $t03654036630._1
1123- let BId = $t03654036630._2
1124- let balA = $t03654036630._3
1125- let balB = $t03654036630._4
1126- let shareId = $t03654036630._5
1120+ let $t03648836578 = getPoolData(Address(fromBase58String(pool)), pType)
1121+ let AId = $t03648836578._1
1122+ let BId = $t03648836578._2
1123+ let balA = $t03648836578._3
1124+ let balB = $t03648836578._4
1125+ let shareId = $t03648836578._5
11271126 let amount = unstakeLP(pool, pType, shareId, liquidateAmount)
11281127 let borrowAmount = getIntegerValue(this, (((((pool + "_") + user) + "_") + posId) + kUserBorrowAmount))
11291128 let borrowAsset = getStringValue(this, (((((pool + "_") + user) + "_") + posId) + kUserBorrowAssetId))
11371136
11381137 @Callable(i)
11391138 func capitalizeExKeeper (pool,type,tokenToId,amountToExchange,claim,amountsIn,addresses,assetsToReceive,estReceived,slippageTolerance,minReceived,options) = {
1140- let $t03786538059 = if (claim)
1139+ let $t03781338007 = if (claim)
11411140 then claimFarmed(type, pool)
11421141 else {
11431142 let claimedAsset = if ((type == SF_POOL))
11451144 else WXID
11461145 $Tuple2(amountToExchange, claimedAsset)
11471146 }
1148- let claimedAmount = $t03786538059._1
1149- let claimedAsset = $t03786538059._2
1147+ let claimedAmount = $t03781338007._1
1148+ let claimedAsset = $t03781338007._2
11501149 let exchangedAmount = exchangeKeeper(tokenToId, amountToExchange, claimedAsset, amountsIn, addresses, assetsToReceive, estReceived, slippageTolerance, minReceived, options)
11511150 let change = (claimedAmount - amountToExchange)
11521151 let changeEntry = if ((change > 0))
11591158
11601159 @Callable(i)
11611160 func capitalizeExPuzzle (pool,type,tokenToId,amountToExchange,claim,routesStr,minToReceive,options) = {
1162- let $t03871638910 = if (claim)
1161+ let $t03866438858 = if (claim)
11631162 then claimFarmed(type, pool)
11641163 else {
11651164 let claimedAsset = if ((type == SF_POOL))
11671166 else WXID
11681167 $Tuple2(amountToExchange, claimedAsset)
11691168 }
1170- let claimedAmount = $t03871638910._1
1171- let claimedAsset = $t03871638910._2
1169+ let claimedAmount = $t03866438858._1
1170+ let claimedAsset = $t03866438858._2
11721171 let exchangedAmount = exchangePuzzle(tokenToId, amountToExchange, claimedAsset, routesStr, minToReceive, options)
11731172 let change = (claimedAmount - amountToExchange)
11741173 let changeEntry = if ((change > 0))
11811180
11821181 @Callable(i)
11831182 func capitalizeExSwopFi (pool,type,tokenToId,amountToExchange,claim,exchangers,exchangersType,args1,args2,routingAssetsKeys,minAmountToReceive,options) = {
1184- let $t03963339827 = if (claim)
1183+ let $t03958139775 = if (claim)
11851184 then claimFarmed(type, pool)
11861185 else {
11871186 let claimedAsset = if ((type == SF_POOL))
11891188 else WXID
11901189 $Tuple2(amountToExchange, claimedAsset)
11911190 }
1192- let claimedAmount = $t03963339827._1
1193- let claimedAsset = $t03963339827._2
1191+ let claimedAmount = $t03958139775._1
1192+ let claimedAsset = $t03958139775._2
11941193 let exchangedAmount = exchangeSwopFi(tokenToId, amountToExchange, claimedAsset, exchangers, exchangersType, args1, args2, routingAssetsKeys, minAmountToReceive, options)
11951194 let change = (claimedAmount - amountToExchange)
11961195 let changeEntry = if ((change > 0))
12071206 else false)
12081207 then throw("Wrong type")
12091208 else {
1210- let $t04052040614 = getPoolData(Address(fromBase58String(poolAddr)), type)
1211- let aId = $t04052040614._1
1212- let bId = $t04052040614._2
1213- let aBal = $t04052040614._3
1214- let bBal = $t04052040614._4
1215- let shareId = $t04052040614._5
1209+ let $t04046840562 = getPoolData(Address(fromBase58String(poolAddr)), type)
1210+ let aId = $t04046840562._1
1211+ let bId = $t04046840562._2
1212+ let aBal = $t04046840562._3
1213+ let bBal = $t04046840562._4
1214+ let shareId = $t04046840562._5
12161215 [IntegerEntry((poolAddr + kAxlyInFeeWithoutLoan), inFeeNoLoan), IntegerEntry((poolAddr + kAxlyInFeeWithLoan), inFeeLoan), IntegerEntry((poolAddr + kAxlyNoLoanCapFee), capFeeNoLoan), IntegerEntry((poolAddr + kAxlyWithLoanCapFee), capFeeWithLoan), IntegerEntry((poolAddr + kAxlyStopLossNoLoanFee), stoplossFeeNoLoan), IntegerEntry((poolAddr + kAxlyStopLossLoanFee), stoplossFeeWithLoan), IntegerEntry((poolAddr + kPoolInterestLoan), 0), IntegerEntry((poolAddr + kPoolInterestNoLoan), 0), StringEntry((kPool + poolAddr), type), StringEntry((shareId + kSharePool), poolAddr)]
12171216 }
12181217
12211220 @Callable(i)
12221221 func capitalizeTest (pool,pType,tokenId,tokenAmount) = {
12231222 let poolAddr = Address(fromBase58String(pool))
1224- let $t04141041489 = getPoolData(poolAddr, pType)
1225- let AId = $t04141041489._1
1226- let BId = $t04141041489._2
1227- let balA = $t04141041489._3
1228- let balB = $t04141041489._4
1229- let shareId = $t04141041489._5
1230- let $t04149241572 = if ((tokenId == AId))
1223+ let $t04135841437 = getPoolData(poolAddr, pType)
1224+ let AId = $t04135841437._1
1225+ let BId = $t04135841437._2
1226+ let balA = $t04135841437._3
1227+ let balB = $t04135841437._4
1228+ let shareId = $t04135841437._5
1229+ let $t04144041520 = if ((tokenId == AId))
12311230 then $Tuple2(tokenAmount, 0)
12321231 else $Tuple2(0, tokenAmount)
1233- let pmtA = $t04149241572._1
1234- let pmtB = $t04149241572._2
1235- let $t04157541679 = replenishByType(pType, pool, NO_FEE, pmtA, AId, pmtB, BId, balA, balB, shareId)
1236- let stakedAmount = $t04157541679._1
1237- let nf = $t04157541679._2
1232+ let pmtA = $t04144041520._1
1233+ let pmtB = $t04144041520._2
1234+ let $t04152341627 = replenishByType(pType, pool, NO_FEE, pmtA, AId, pmtB, BId, balA, balB, shareId)
1235+ let stakedAmount = $t04152341627._1
1236+ let nf = $t04152341627._2
12381237 let curPoolInterestLoan = valueOrElse(getInteger(this, (pool + kPoolInterestLoan)), 0)
12391238 let curPoolInterestNoLoan = valueOrElse(getInteger(this, (pool + kPoolInterestNoLoan)), 0)
12401239 let totalShareAmount = getPoolTotalShare(pool)
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let SF_POOL = "SF"
55
66 let WX_POOL = "WX"
77
88 let CAP_FEE_NO_LOAN = "capNoLoan"
99
1010 let CAP_FEE_LOAN = "capLoan"
1111
1212 let STOPLOSS_FEE_NO_LOAN = "stopLossNoLoan"
1313
1414 let STOPLOSS_LOAN = "stopLossLoan"
1515
1616 let LOAN_FEE = "loan"
1717
1818 let NO_LOAN_FEE = "noLoan"
1919
2020 let NO_FEE = "noFee"
2121
2222 let SCALE8 = 100000000
2323
2424 let SCALE10 = 10000000000
2525
2626 let FEE_SCALE6 = 1000000
2727
2828 let kSFPoolAAssetBalance = "A_asset_balance"
2929
3030 let kSFPoolBAssetBalance = "B_asset_balance"
3131
3232 let kSFPoolAAssetId = "A_asset_id"
3333
3434 let kSFPoolBAssetId = "B_asset_id"
3535
3636 let kSFPoolShareId = "share_asset_id"
3737
3838 let kSFPoolShareSupply = "share_asset_supply"
3939
4040 let kSFPoolFee = "commission"
4141
4242 let kUserPosition = "_user_position"
4343
4444 let kUserPositionPool = "_user_position_pool"
4545
4646 let kUserBorrowAmount = "_user_position_borrow_amount"
4747
4848 let kUserBorrowAssetId = "_user_position_borrow_asset_id"
4949
5050 let kUserPositionNum = "_user_position_number"
5151
5252 let kUserPositionInterest = "_user_position_interest"
5353
5454 let kPoolTotal = "_pool_total"
5555
5656 let kPoolTotalLoan = "_pool_total_loan"
5757
5858 let kPoolInterestLoan = "_pool_interest_loan"
5959
6060 let kPoolInterestNoLoan = "_pool_interest_no_loan"
6161
6262 let kAxlyInFeeWithoutLoan = "_axly_fee_without_loan"
6363
6464 let kAxlyInFeeWithLoan = "_axly_fee_with_loan"
6565
6666 let kAxlyNoLoanCapFee = "_axly_fee_cap_with_loan"
6767
6868 let kAxlyWithLoanCapFee = "_axly_fee_cap_no_loan"
6969
7070 let kAxlyStopLossNoLoanFee = "_axly_fee_stoploss_with_loan"
7171
7272 let kAxlyStopLossLoanFee = "_axly_fee_stoploss_no_loan"
7373
7474 let kRequestId = "_request_id"
7575
7676 let kRequestIter = "requests_iter"
7777
7878 let kPool = "pool_"
7979
8080 let kSharePool = "_pool_share_id"
8181
8282 let kPoolCapChange = "_pool_cap_change"
8383
8484 let kTokenLastPrice = "_last_price"
8585
8686 let kUserStopLoss = "_stop_loss"
8787
8888 let kMoneyBox = "axly_money_box"
8989
9090 let kSFFarmingAddr = "swopfi_farming_addr"
9191
9292 let kLendService = "lend_service_addr"
9393
9494 let kPriceOracle = "price_oracle"
9595
9696 let kExContract = "exchange_contract"
9797
9898 let kWxSwapContract = "wx_swap_contract"
9999
100100 let moneyBox = Address(fromBase58String(valueOrErrorMessage(getString(this, kMoneyBox), "No axly moneyBox address")))
101101
102102 let exContract = Address(fromBase58String(valueOrErrorMessage(getString(this, kExContract), "No exchange contract address")))
103103
104104 let priceOracleAddr = Address(fromBase58String(valueOrErrorMessage(getString(this, kPriceOracle), "No price oracle address")))
105105
106106 let wxSwapContract = Address(fromBase58String(valueOrErrorMessage(getString(this, kWxSwapContract), "No wx swap address")))
107107
108108 let SWOPID = base58'4W19ndijcc2CsQa9HGW2dfXKTVXhnneWWttxXrtjPmEp'
109109
110110 let WXID = base58'EMAMLxDnv3xiz8RXg8Btj33jcEw3wLczL3JKYYmuubpc'
111111
112112 func isSelfCall (i) = if ((i.caller == this))
113113 then unit
114114 else throw("Only contract itself can call this function")
115115
116116
117117 func accountBalance (assetId) = match assetId {
118118 case id: ByteVector =>
119119 assetBalance(this, id)
120120 case waves: Unit =>
121121 wavesBalance(this).available
122122 case _ =>
123123 throw("Match error")
124124 }
125125
126126
127127 func getSFPoolData (poolAddr) = $Tuple5(valueOrErrorMessage(getString(poolAddr, kSFPoolAAssetId), "Can't get pool A asset id"), valueOrErrorMessage(getString(poolAddr, kSFPoolBAssetId), "Can't get pool B asset id"), valueOrErrorMessage(getInteger(poolAddr, kSFPoolAAssetBalance), "Can't get pool A asset balance"), valueOrErrorMessage(getInteger(poolAddr, kSFPoolBAssetBalance), "Can't get pool B asset balance"), valueOrErrorMessage(getString(poolAddr, kSFPoolShareId), "Can't get share asset id"))
128128
129129
130130 func getWXPoolData (poolAddr) = {
131131 let cfg = {
132132 let @ = invoke(poolAddr, "getPoolConfigWrapperREADONLY", nil, nil)
133133 if ($isInstanceOf(@, "List[Any]"))
134134 then @
135135 else throw(($getType(@) + " couldn't be cast to List[Any]"))
136136 }
137137 if ((cfg == cfg))
138138 then {
139139 let aId = valueOrErrorMessage({
140140 let @ = cfg[4]
141141 if ($isInstanceOf(@, "String"))
142142 then @
143143 else unit
144144 }, "Can't get pool A asset id")
145145 let bId = valueOrErrorMessage({
146146 let @ = cfg[5]
147147 if ($isInstanceOf(@, "String"))
148148 then @
149149 else unit
150150 }, "Can't get pool B asset id")
151151 let shareId = valueOrErrorMessage({
152152 let @ = cfg[3]
153153 if ($isInstanceOf(@, "String"))
154154 then @
155155 else unit
156156 }, "Can't get pool LP asset id")
157157 let balA = {
158158 let @ = invoke(poolAddr, "getAccBalanceWrapperREADONLY", [aId], nil)
159159 if ($isInstanceOf(@, "Int"))
160160 then @
161161 else throw(($getType(@) + " couldn't be cast to Int"))
162162 }
163163 if ((balA == balA))
164164 then {
165165 let balB = {
166166 let @ = invoke(poolAddr, "getAccBalanceWrapperREADONLY", [bId], nil)
167167 if ($isInstanceOf(@, "Int"))
168168 then @
169169 else throw(($getType(@) + " couldn't be cast to Int"))
170170 }
171171 if ((balB == balB))
172172 then $Tuple5(aId, bId, balA, balB, shareId)
173173 else throw("Strict value is not equal to itself.")
174174 }
175175 else throw("Strict value is not equal to itself.")
176176 }
177177 else throw("Strict value is not equal to itself.")
178178 }
179179
180180
181181 func getPoolData (poolAddr,type) = if ((type == SF_POOL))
182182 then getSFPoolData(poolAddr)
183183 else if ((type == WX_POOL))
184184 then getWXPoolData(poolAddr)
185185 else throw("Wrong pool type")
186186
187187
188188 func getShareSupply (poolAddr,type,shareId) = if ((type == SF_POOL))
189189 then valueOrErrorMessage(getInteger(poolAddr, kSFPoolShareSupply), "Can't get share asset supply")
190190 else if ((type == WX_POOL))
191191 then valueOrErrorMessage(assetInfo(fromBase58String(shareId)), "Wrong ShareId").quantity
192192 else throw("Wrong pool type")
193193
194194
195195 func getPoolTotalShare (pool) = valueOrElse(getInteger(this, (pool + kPoolTotal)), 0)
196196
197197
198198 func getPoolTotalShareWithLoan (pool) = valueOrElse(getInteger(this, (pool + kPoolTotalLoan)), 0)
199199
200200
201201 func getNewUserPositionNumber (pool,user) = (valueOrElse(getInteger(this, (user + kUserPositionNum)), 0) + 1)
202202
203203
204204 func getAxlyFee (pool,feeType) = if ((feeType == CAP_FEE_LOAN))
205205 then getIntegerValue(this, (pool + kAxlyWithLoanCapFee))
206206 else if ((feeType == CAP_FEE_NO_LOAN))
207207 then getIntegerValue(this, (pool + kAxlyNoLoanCapFee))
208208 else if ((feeType == LOAN_FEE))
209209 then getIntegerValue(this, (pool + kAxlyInFeeWithLoan))
210210 else if ((feeType == NO_LOAN_FEE))
211211 then getIntegerValue(this, (pool + kAxlyInFeeWithoutLoan))
212212 else if ((feeType == NO_FEE))
213213 then 0
214214 else throw("Wrong fee type")
215215
216216
217217 func getSFFarmingAddr () = Address(fromBase58String(valueOrErrorMessage(getString(this, kSFFarmingAddr), "Can't get swopfi farming addr")))
218218
219219
220220 func getWXFarmingAddr (poolAddr) = {
221221 let fContract = Address(fromBase58String(valueOrErrorMessage(getString(poolAddr, "%s__factoryContract"), "Can't get WX factory contract addr")))
222222 let factroyCfg = split(valueOrErrorMessage(getString(fContract, "%s__factoryConfig"), "Can't get WX factory cfg"), "__")
223223 Address(fromBase58String(factroyCfg[1]))
224224 }
225225
226226
227227 func getLendSrvAddr () = Address(fromBase58String(valueOrErrorMessage(getString(this, kLendService), "Can't get lend service addr")))
228228
229229
230230 func assetIdToStr (assetId) = match assetId {
231231 case id: ByteVector =>
232232 toBase58String(id)
233233 case waves: Unit =>
234234 "WAVES"
235235 case _ =>
236236 throw("Match error")
237237 }
238238
239239
240240 func assetIdFromStr (assetId) = if ((assetId == "WAVES"))
241241 then unit
242242 else fromBase58String(assetId)
243243
244244
245245 func getAssetDecimals (assetId) = if ((assetId == "WAVES"))
246246 then 8
247247 else match assetInfo(fromBase58String(assetId)) {
248248 case asset: Asset =>
249249 asset.decimals
250250 case _ =>
251251 throw("Can't find asset")
252252 }
253253
254254
255255 func getAssetPrecition (assetId) = pow(10, 0, getAssetDecimals(assetId), 0, 0, DOWN)
256256
257257
258258 func getAssetsPrice (assetIds) = {
259259 func getPrices (a,assetId) = {
260260 let assetPrice = ( let @ = invoke(priceOracleAddr, "getTWAP60", [assetId, false], nil)
261261 if ($isInstanceOf(@, "(Int, Int)"))
262262 then @
263263 else throw(($getType(@) + " couldn't be cast to (Int, Int)")))._2
264264 (a :+ assetPrice)
265265 }
266266
267267 let $l = assetIds
268268 let $s = size($l)
269269 let $acc0 = nil
270270 func $f0_1 ($a,$i) = if (($i >= $s))
271271 then $a
272272 else getPrices($a, $l[$i])
273273
274274 func $f0_2 ($a,$i) = if (($i >= $s))
275275 then $a
276276 else throw("List size exceeds 100")
277277
278278 $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20), 21), 22), 23), 24), 25), 26), 27), 28), 29), 30), 31), 32), 33), 34), 35), 36), 37), 38), 39), 40), 41), 42), 43), 44), 45), 46), 47), 48), 49), 50), 51), 52), 53), 54), 55), 56), 57), 58), 59), 60), 61), 62), 63), 64), 65), 66), 67), 68), 69), 70), 71), 72), 73), 74), 75), 76), 77), 78), 79), 80), 81), 82), 83), 84), 85), 86), 87), 88), 89), 90), 91), 92), 93), 94), 95), 96), 97), 98), 99), 100)
279279 }
280280
281281
282282 func getSharePrice (shareIds) = {
283283 func getPrices (a,shareId) = {
284284 let pool = valueOrErrorMessage(getString(this, (shareId + kSharePool)), "Can't find pool addr by share id")
285285 let poolAddr = Address(fromBase58String(pool))
286286 let pType = valueOrErrorMessage(getString(this, (kPool + pool)), "Pool is not inited")
287287 let $t084298494 = getPoolData(poolAddr, pType)
288288 let aId = $t084298494._1
289289 let bId = $t084298494._2
290290 let aBalance = $t084298494._3
291291 let bBalance = $t084298494._4
292292 let dPriceA = ( let @ = invoke(priceOracleAddr, "getTWAP60", [aId, false], nil)
293293 if ($isInstanceOf(@, "(Int, Int)"))
294294 then @
295295 else throw(($getType(@) + " couldn't be cast to (Int, Int)")))._2
296296 let dPriceB = ( let @ = invoke(priceOracleAddr, "getTWAP60", [bId, false], nil)
297297 if ($isInstanceOf(@, "(Int, Int)"))
298298 then @
299299 else throw(($getType(@) + " couldn't be cast to (Int, Int)")))._2
300300 let shareSupply = getShareSupply(poolAddr, pType, shareId)
301301 let APrecision = pow(10, 0, getAssetDecimals(aId), 0, 0, DOWN)
302302 let BPrecision = pow(10, 0, getAssetDecimals(bId), 0, 0, DOWN)
303303 let sharePrecision = pow(10, 0, getAssetDecimals(shareId), 0, 0, DOWN)
304304 let sum = (fraction(aBalance, dPriceA, APrecision) + fraction(bBalance, dPriceB, BPrecision))
305305 let sharePrice = fraction(sum, sharePrecision, shareSupply)
306306 (a :+ sharePrice)
307307 }
308308
309309 let $l = shareIds
310310 let $s = size($l)
311311 let $acc0 = nil
312312 func $f0_1 ($a,$i) = if (($i >= $s))
313313 then $a
314314 else getPrices($a, $l[$i])
315315
316316 func $f0_2 ($a,$i) = if (($i >= $s))
317317 then $a
318318 else throw("List size exceeds 50")
319319
320320 $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20), 21), 22), 23), 24), 25), 26), 27), 28), 29), 30), 31), 32), 33), 34), 35), 36), 37), 38), 39), 40), 41), 42), 43), 44), 45), 46), 47), 48), 49), 50)
321321 }
322322
323323
324324 func getCursEntries (aId,bId,shareId) = {
325325 let assetsPrices = getAssetsPrice([aId, bId])
326326 let sharePrice = getSharePrice([shareId])
327327 [IntegerEntry((aId + kTokenLastPrice), assetsPrices[0]), IntegerEntry((bId + kTokenLastPrice), assetsPrices[1]), IntegerEntry((shareId + kTokenLastPrice), sharePrice[0])]
328328 }
329329
330330
331331 func calcReplenishByTwoTokens (pType,poolAddr,pmtA,aId,pmtB,bId,balA,balB) = {
332332 let $t096669971 = if ((pType == SF_POOL))
333333 then $Tuple2(nil, nil)
334334 else $Tuple2(split({
335335 let @ = invoke(poolAddr, "evaluatePutByAmountAssetREADONLY", [pmtA], nil)
336336 if ($isInstanceOf(@, "String"))
337337 then @
338338 else throw(($getType(@) + " couldn't be cast to String"))
339339 }, "__"), split({
340340 let @ = invoke(poolAddr, "evaluatePutByPriceAssetREADONLY", [pmtB], nil)
341341 if ($isInstanceOf(@, "String"))
342342 then @
343343 else throw(($getType(@) + " couldn't be cast to String"))
344344 }, "__"))
345345 if (($t096669971 == $t096669971))
346346 then {
347347 let evalPutInB = $t096669971._2
348348 let evalPutInA = $t096669971._1
349349 let $t0998110177 = if ((pType == SF_POOL))
350350 then $Tuple2(fraction(SCALE8, pmtA, balA), fraction(SCALE8, pmtB, balB))
351351 else $Tuple2(parseIntValue(evalPutInA[1]), parseIntValue(evalPutInB[1]))
352352 let ratioA = $t0998110177._1
353353 let ratioB = $t0998110177._2
354354 let $t01018310666 = if ((ratioB > ratioA))
355355 then {
356356 let pmt = if ((pType == SF_POOL))
357357 then fraction(balB, ratioA, SCALE8, CEILING)
358358 else parseIntValue(evalPutInA[8])
359359 $Tuple5(pmtA, pmt, (pmtB - pmt), bId, ratioB)
360360 }
361361 else {
362362 let pmt = if ((pType == SF_POOL))
363363 then fraction(balA, ratioB, SCALE8, CEILING)
364364 else parseIntValue(evalPutInB[8])
365365 $Tuple5(pmtA, pmtB, (pmtA - pmt), aId, ratioA)
366366 }
367367 let pmtInA = $t01018310666._1
368368 let pmtInB = $t01018310666._2
369369 let change = $t01018310666._3
370370 let changeAssetId = $t01018310666._4
371371 let lp = $t01018310666._5
372372 $Tuple5(pmtInA, pmtInB, change, changeAssetId, lp)
373373 }
374374 else throw("Strict value is not equal to itself.")
375375 }
376376
377377
378378 func replenishTwoTokensByType (poolAddr,pType,pmtA,aId,pmtB,bId) = {
379379 let payments = [AttachedPayment(assetIdFromStr(aId), pmtA), AttachedPayment(assetIdFromStr(bId), pmtB)]
380380 if ((pType == SF_POOL))
381381 then invoke(poolAddr, "callFunction", ["replenishWithTwoTokens", ["false", "0"]], payments)
382382 else invoke(poolAddr, "put", [1000000, false], payments)
383383 }
384384
385385
386386 func replenishOneTokenByType (poolAddr,pType,pmt,pmtId) = {
387387 let payments = [AttachedPayment(assetIdFromStr(pmtId), pmt)]
388388 if ((pType == SF_POOL))
389389 then invoke(poolAddr, "callFunction", ["replenishWithOneToken", ["0", "false", "0"]], payments)
390390 else invoke(poolAddr, "putOneTkn", [0, false], payments)
391391 }
392392
393393
394394 func stakeLP (pool,pType,shareId,amount) = {
395395 let payments = [AttachedPayment(fromBase58String(shareId), amount)]
396396 if ((pType == SF_POOL))
397397 then invoke(getSFFarmingAddr(), "lockShareTokens", [pool, 0], payments)
398398 else invoke(getWXFarmingAddr(addressFromStringValue(pool)), "stake", nil, payments)
399399 }
400400
401401
402402 func unstakeLP (pool,pType,shareId,amount) = {
403403 let $t01189612253 = if ((pType == SF_POOL))
404404 then $Tuple3(getSFFarmingAddr(), "withdrawShareTokens", [pool, amount])
405405 else if ((pType == WX_POOL))
406406 then $Tuple3(getWXFarmingAddr(Address(fromBase58String(pool))), "unstake", [shareId, amount])
407407 else throw("Wrong pool type")
408408 let farmAddr = $t01189612253._1
409409 let fName = $t01189612253._2
410410 let params = $t01189612253._3
411411 let inv = invoke(farmAddr, fName, params, nil)
412412 if ((inv == inv))
413413 then amount
414414 else throw("Strict value is not equal to itself.")
415415 }
416416
417417
418418 func calcAmountToPaySF (pool,assetIdA,assetIdB,balA,balB,amountTokenToGet,assetTokenToGet) = {
419419 let poolAddr = Address(fromBase58String(pool))
420420 let feeScale6 = 1000000
421421 let fee = getIntegerValue(poolAddr, kSFPoolFee)
422422 let amntGetNoFee = fraction(amountTokenToGet, feeScale6, (feeScale6 - fee))
423423 let $t01266612954 = if ((assetTokenToGet == assetIdA))
424424 then {
425425 let amountToPay = fraction(balA, amntGetNoFee, (balB - amntGetNoFee))
426426 $Tuple2(amountToPay, assetIdB)
427427 }
428428 else {
429429 let amountToPay = fraction(balB, amntGetNoFee, (balA - amntGetNoFee))
430430 $Tuple2(amountToPay, assetIdA)
431431 }
432432 let amountToPay = $t01266612954._1
433433 let assetToPay = $t01266612954._2
434434 $Tuple2(assetToPay, amountToPay)
435435 }
436436
437437
438438 func calcAmountToPayWX (pool,assetIdA,assetIdB,balA,balB,amountTokenToGet,assetTokenToGet) = {
439439 let prFee = getIntegerValue(wxSwapContract, "%s__protocolFee")
440440 let pFee = getIntegerValue(wxSwapContract, "%s__poolFee")
441441 let feeScale = toBigInt(100000000)
442442 let $t01329313601 = if ((assetTokenToGet == assetIdA))
443443 then {
444444 let amountToPay = fraction(balA, amountTokenToGet, (balB - amountTokenToGet))
445445 $Tuple2(amountToPay, assetIdB)
446446 }
447447 else {
448448 let amountToPay = fraction(balB, amountTokenToGet, (balA - amountTokenToGet))
449449 $Tuple2(amountToPay, assetIdA)
450450 }
451451 let amountToPay = $t01329313601._1
452452 let assetToPay = $t01329313601._2
453453 let amountToPayWithFee = toInt(fraction(toBigInt(amountToPay), feeScale, (feeScale - toBigInt((prFee + pFee)))))
454454 $Tuple2(assetToPay, amountToPayWithFee)
455455 }
456456
457457
458458 func exchangeDirectly (type,pool,assetIdA,assetIdB,balA,balB,amountTokenToGet,assetTokenToGet) = if ((type == SF_POOL))
459459 then {
460460 let $t01393914061 = calcAmountToPaySF(pool, assetIdA, assetIdB, balA, balB, amountTokenToGet, assetTokenToGet)
461461 let assetToPay = $t01393914061._1
462462 let amountToPay = $t01393914061._2
463463 invoke(addressFromStringValue(pool), "callFunction", ["exchange", ["1"]], [AttachedPayment(assetIdFromStr(assetToPay), amountToPay)])
464464 }
465465 else {
466466 let $t01421214334 = calcAmountToPayWX(pool, assetIdA, assetIdB, balA, balB, amountTokenToGet, assetTokenToGet)
467467 let assetToPay = $t01421214334._1
468468 let amountToPay = $t01421214334._2
469469 invoke(wxSwapContract, "swap", [1, assetTokenToGet, toString(this)], [AttachedPayment(assetIdFromStr(assetToPay), amountToPay)])
470470 }
471471
472472
473473 func calcReplanishLPVirt (pType,pool,pmtA,aId,pmtB,bId,balA,balB) = {
474474 let poolAddr = addressFromStringValue(pool)
475475 if ((pType == SF_POOL))
476476 then {
477- let args = [toString(pmtA), toString(pmtB), "0"]
478477 let inv = {
479- let @ = invoke(poolAddr, "callFunction", ["calcLPReplanishDiffPropREADONLY", args], nil)
478+ let @ = invoke(poolAddr, "callFunction", ["calcLPReplanishDiffPropREADONLY", [toString(pmtA), toString(pmtB), "0"]], nil)
480479 if ($isInstanceOf(@, "(Int, Int, Int, Int, Int, ByteVector|Unit)"))
481480 then @
482481 else throw(($getType(@) + " couldn't be cast to (Int, Int, Int, Int, Int, ByteVector|Unit)"))
483482 }
484483 if ((inv == inv))
485484 then inv._1
486485 else throw("Strict value is not equal to itself.")
487486 }
488487 else if ((pType == WX_POOL))
489488 then {
490- let $t01497115312 = if (if ((pmtA > 0))
489+ let $t01491915260 = if (if ((pmtA > 0))
491490 then (pmtB > 0)
492491 else false)
493492 then {
494- let $t01505215178 = calcReplenishByTwoTokens(pType, poolAddr, pmtA, aId, pmtB, bId, balA, balB)
495- let pmtInA = $t01505215178._1
496- let pmtInB = $t01505215178._2
497- let change = $t01505215178._3
498- let changeId = $t01505215178._4
499- let lpAmount = $t01505215178._5
493+ let $t01500015126 = calcReplenishByTwoTokens(pType, poolAddr, pmtA, aId, pmtB, bId, balA, balB)
494+ let pmtInA = $t01500015126._1
495+ let pmtInB = $t01500015126._2
496+ let change = $t01500015126._3
497+ let changeId = $t01500015126._4
498+ let lpAmount = $t01500015126._5
500499 $Tuple3(change, changeId, lpAmount)
501500 }
502501 else if ((pmtA > 0))
503502 then $Tuple3(pmtA, aId, 0)
504503 else $Tuple3(pmtB, bId, 0)
505- let change = $t01497115312._1
506- let changeId = $t01497115312._2
507- let lpTwo = $t01497115312._3
504+ let change = $t01491915260._1
505+ let changeId = $t01491915260._2
506+ let lpTwo = $t01491915260._3
508507 let lpOne = if ((change > 0))
509508 then {
510509 let inv = {
511510 let @ = invoke(poolAddr, "putOneTknREADONLY", [changeId, change], nil)
512511 if ($isInstanceOf(@, "(Int, Int, Int)"))
513512 then @
514513 else throw(($getType(@) + " couldn't be cast to (Int, Int, Int)"))
515514 }
516515 if ((inv == inv))
517516 then inv._1
518517 else throw("Strict value is not equal to itself.")
519518 }
520519 else 0
521520 (lpTwo + lpOne)
522521 }
523522 else throw("Wrong pool type")
524523 }
525524
526525
527526 func calcWithdrawLPVirt (pType,pool,lpAmount,shareId,aId,bId,balA,balB,borrowAmount,borrowAssetId) = {
528527 let poolAddr = addressFromStringValue(pool)
529- let $t01579816239 = if ((pType == SF_POOL))
528+ let $t01574616187 = if ((pType == SF_POOL))
530529 then {
531530 let inv = {
532531 let @ = invoke(poolAddr, "callFunction", ["withdrawREADONLY", [toString(lpAmount)]], nil)
533532 if ($isInstanceOf(@, "(Int, Int)"))
534533 then @
535534 else throw(($getType(@) + " couldn't be cast to (Int, Int)"))
536535 }
537536 if ((inv == inv))
538537 then $Tuple2(inv._1, inv._2)
539538 else throw("Strict value is not equal to itself.")
540539 }
541540 else if ((pType == WX_POOL))
542541 then {
543542 let get = split({
544543 let @ = invoke(poolAddr, "evaluateGetREADONLY", [shareId, lpAmount], nil)
545544 if ($isInstanceOf(@, "String"))
546545 then @
547546 else throw(($getType(@) + " couldn't be cast to String"))
548547 }, "__")
549548 if ((get == get))
550549 then $Tuple2(parseIntValue(get[1]), parseIntValue(get[2]))
551550 else throw("Strict value is not equal to itself.")
552551 }
553552 else throw("Wrong pool type")
554- let getAmountA = $t01579816239._1
555- let getAmountB = $t01579816239._2
553+ let getAmountA = $t01574616187._1
554+ let getAmountB = $t01574616187._2
556555 if ((borrowAmount > 0))
557556 then {
558557 let amountToGetEx = if (if ((borrowAssetId == aId))
559558 then (borrowAmount > getAmountA)
560559 else false)
561560 then (borrowAmount - getAmountA)
562561 else if (if ((borrowAssetId == bId))
563562 then (borrowAmount > getAmountB)
564563 else false)
565564 then (borrowAmount - getAmountB)
566565 else 0
567- let $t01654216857 = if ((amountToGetEx > 0))
566+ let $t01649016805 = if ((amountToGetEx > 0))
568567 then if ((pType == SF_POOL))
569568 then calcAmountToPaySF(pool, aId, bId, balA, balB, amountToGetEx, borrowAssetId)
570569 else calcAmountToPayWX(pool, aId, bId, balA, balB, amountToGetEx, borrowAssetId)
571570 else $Tuple2("", 0)
572- let assetToPay = $t01654216857._1
573- let amountToPay = $t01654216857._2
571+ let assetToPay = $t01649016805._1
572+ let amountToPay = $t01649016805._2
574573 if ((borrowAssetId == aId))
575574 then $Tuple2(((getAmountA + amountToGetEx) - borrowAmount), (getAmountB - amountToPay))
576575 else $Tuple2((getAmountA - amountToPay), ((getAmountB + amountToGetEx) - borrowAmount))
577576 }
578577 else $Tuple2(getAmountA, getAmountB)
579578 }
580579
581580
582581 func claimFarmed (type,pool) = if ((type == SF_POOL))
583582 then {
584583 let balBefore = accountBalance(SWOPID)
585584 if ((balBefore == balBefore))
586585 then {
587586 let inv = invoke(getSFFarmingAddr(), "claim", [pool], nil)
588587 if ((inv == inv))
589588 then {
590589 let balAfter = accountBalance(SWOPID)
591590 $Tuple2((balAfter - balBefore), SWOPID)
592591 }
593592 else throw("Strict value is not equal to itself.")
594593 }
595594 else throw("Strict value is not equal to itself.")
596595 }
597596 else if ((type == WX_POOL))
598597 then {
599598 let balBefore = accountBalance(WXID)
600599 if ((balBefore == balBefore))
601600 then {
602601 let inv = invoke(getWXFarmingAddr(Address(fromBase58String(pool))), "claimWX", [pool], nil)
603602 if ((inv == inv))
604603 then {
605604 let balAfter = accountBalance(WXID)
606605 $Tuple2((balAfter - balBefore), WXID)
607606 }
608607 else throw("Strict value is not equal to itself.")
609608 }
610609 else throw("Strict value is not equal to itself.")
611610 }
612611 else throw("Wrong pool type")
613612
614613
615614 func replenishByType (pType,pool,feeType,pmtA,aId,pmtB,bId,balA,balB,LPId) = {
616615 let lpBalanceBefore = accountBalance(fromBase58String(LPId))
617616 if ((lpBalanceBefore == lpBalanceBefore))
618617 then {
619618 let poolAddr = addressFromStringValue(pool)
620- let $t01806718483 = if (if ((pmtA > 0))
619+ let $t01801518431 = if (if ((pmtA > 0))
621620 then (pmtB > 0)
622621 else false)
623622 then {
624- let $t01813318249 = calcReplenishByTwoTokens(pType, poolAddr, pmtA, aId, pmtB, bId, balA, balB)
625- let pmtInA = $t01813318249._1
626- let pmtInB = $t01813318249._2
627- let change = $t01813318249._3
628- let changeId = $t01813318249._4
623+ let $t01808118197 = calcReplenishByTwoTokens(pType, poolAddr, pmtA, aId, pmtB, bId, balA, balB)
624+ let pmtInA = $t01808118197._1
625+ let pmtInB = $t01808118197._2
626+ let change = $t01808118197._3
627+ let changeId = $t01808118197._4
629628 let inv = replenishTwoTokensByType(poolAddr, pType, pmtInA, aId, pmtInB, bId)
630629 if ((inv == inv))
631630 then $Tuple2(change, changeId)
632631 else throw("Strict value is not equal to itself.")
633632 }
634633 else if ((pmtA > 0))
635634 then $Tuple2(pmtA, aId)
636635 else if ((pmtB > 0))
637636 then $Tuple2(pmtB, bId)
638637 else throw("pmts must be > 0")
639- let change = $t01806718483._1
640- let changeId = $t01806718483._2
638+ let change = $t01801518431._1
639+ let changeId = $t01801518431._2
641640 let inv = if ((change > 0))
642641 then replenishOneTokenByType(poolAddr, pType, change, changeId)
643642 else nil
644643 if ((inv == inv))
645644 then {
646645 let lpBalanceAfter = accountBalance(fromBase58String(LPId))
647646 let totalStaked = (lpBalanceAfter - lpBalanceBefore)
648647 let axlyFeeAmount = fraction(totalStaked, getAxlyFee(pool, feeType), FEE_SCALE6)
649648 let userShareForStake = (totalStaked - axlyFeeAmount)
650649 if ((0 >= userShareForStake))
651650 then throw("amount of staked sharetokens must be > 0")
652651 else {
653652 let invLP = stakeLP(pool, pType, LPId, userShareForStake)
654653 if ((invLP == invLP))
655654 then $Tuple2(userShareForStake, axlyFeeAmount)
656655 else throw("Strict value is not equal to itself.")
657656 }
658657 }
659658 else throw("Strict value is not equal to itself.")
660659 }
661660 else throw("Strict value is not equal to itself.")
662661 }
663662
664663
665664 func replenishEntries (pool,user,stakedAmount,axlyFeeAmount,posNum,shareId,type,withLoan) = {
666665 let totalAmount = getPoolTotalShare(pool)
667666 let totalAmountLoan = getPoolTotalShareWithLoan(pool)
668- let $t01934119579 = if (withLoan)
667+ let $t01928919527 = if (withLoan)
669668 then $Tuple2(getIntegerValue(this, (pool + kPoolInterestLoan)), (totalAmountLoan + stakedAmount))
670669 else $Tuple2(getIntegerValue(this, (pool + kPoolInterestNoLoan)), totalAmountLoan)
671- let curPoolInterest = $t01934119579._1
672- let totalStakedWithLoan = $t01934119579._2
670+ let curPoolInterest = $t01928919527._1
671+ let totalStakedWithLoan = $t01928919527._2
673672 [IntegerEntry((pool + kPoolTotal), (totalAmount + stakedAmount)), IntegerEntry((pool + kPoolTotalLoan), totalStakedWithLoan), IntegerEntry((((((pool + "_") + user) + "_") + toString(posNum)) + kUserPosition), stakedAmount), IntegerEntry((((((pool + "_") + user) + "_") + toString(posNum)) + kUserPositionInterest), curPoolInterest), StringEntry((((user + "_") + toString(posNum)) + kUserPositionPool), pool), IntegerEntry((user + kUserPositionNum), posNum), ScriptTransfer(moneyBox, axlyFeeAmount, fromBase58String(shareId))]
674673 }
675674
676675
677676 func exchangeKeeper (toToken,pmtAmount,pmtAsset,amountsIn,addresses,assetsToReceive,estReceived,slippageTolerance,minReceived,options) = {
678677 let tokenBalanceBefore = accountBalance(assetIdFromStr(toToken))
679678 if ((tokenBalanceBefore == tokenBalanceBefore))
680679 then {
681680 let inv = invoke(exContract, "swap", [amountsIn, addresses, assetsToReceive, estReceived, slippageTolerance, minReceived, options], [AttachedPayment(pmtAsset, pmtAmount)])
682681 if ((inv == inv))
683682 then (accountBalance(assetIdFromStr(toToken)) - tokenBalanceBefore)
684683 else throw("Strict value is not equal to itself.")
685684 }
686685 else throw("Strict value is not equal to itself.")
687686 }
688687
689688
690689 func exchangePuzzle (toToken,pmtAmount,pmtAsset,routesStr,minToReceive,options) = {
691690 let tokenBalanceBefore = accountBalance(assetIdFromStr(toToken))
692691 if ((tokenBalanceBefore == tokenBalanceBefore))
693692 then {
694693 let inv = invoke(exContract, "puzzleSwap", [routesStr, minToReceive, options], [AttachedPayment(pmtAsset, pmtAmount)])
695694 if ((inv == inv))
696695 then (accountBalance(assetIdFromStr(toToken)) - tokenBalanceBefore)
697696 else throw("Strict value is not equal to itself.")
698697 }
699698 else throw("Strict value is not equal to itself.")
700699 }
701700
702701
703702 func exchangeSwopFi (toToken,pmtAmount,pmtAsset,exchangers,exchangersType,args1,args2,routingAssetsKeys,minAmountToReceive,options) = {
704703 let tokenBalanceBefore = accountBalance(assetIdFromStr(toToken))
705704 if ((tokenBalanceBefore == tokenBalanceBefore))
706705 then {
707706 let inv = invoke(exContract, "swopfiSwap", [exchangers, exchangersType, args1, args2, routingAssetsKeys, minAmountToReceive, options], [AttachedPayment(pmtAsset, pmtAmount)])
708707 if ((inv == inv))
709708 then (accountBalance(assetIdFromStr(toToken)) - tokenBalanceBefore)
710709 else throw("Strict value is not equal to itself.")
711710 }
712711 else throw("Strict value is not equal to itself.")
713712 }
714713
715714
716715 func capitalize (pool,pType,tokenId,tokenAmount) = {
717716 let poolAddr = Address(fromBase58String(pool))
718- let $t02193022009 = getPoolData(poolAddr, pType)
719- let AId = $t02193022009._1
720- let BId = $t02193022009._2
721- let balA = $t02193022009._3
722- let balB = $t02193022009._4
723- let shareId = $t02193022009._5
724- let $t02201222092 = if ((tokenId == AId))
717+ let $t02187821957 = getPoolData(poolAddr, pType)
718+ let AId = $t02187821957._1
719+ let BId = $t02187821957._2
720+ let balA = $t02187821957._3
721+ let balB = $t02187821957._4
722+ let shareId = $t02187821957._5
723+ let $t02196022040 = if ((tokenId == AId))
725724 then $Tuple2(tokenAmount, 0)
726725 else $Tuple2(0, tokenAmount)
727- let pmtA = $t02201222092._1
728- let pmtB = $t02201222092._2
729- let $t02209522199 = replenishByType(pType, pool, NO_FEE, pmtA, AId, pmtB, BId, balA, balB, shareId)
730- let stakedAmount = $t02209522199._1
731- let nf = $t02209522199._2
726+ let pmtA = $t02196022040._1
727+ let pmtB = $t02196022040._2
728+ let $t02204322147 = replenishByType(pType, pool, NO_FEE, pmtA, AId, pmtB, BId, balA, balB, shareId)
729+ let stakedAmount = $t02204322147._1
730+ let nf = $t02204322147._2
732731 let curPoolInterestLoan = valueOrElse(getInteger(this, (pool + kPoolInterestLoan)), 0)
733732 let curPoolInterestNoLoan = valueOrElse(getInteger(this, (pool + kPoolInterestNoLoan)), 0)
734733 let totalShareAmount = getPoolTotalShare(pool)
735734 let totalShareAmountWithLoan = getPoolTotalShareWithLoan(pool)
736735 let loanPercent = fraction(totalShareAmountWithLoan, SCALE8, totalShareAmount)
737736 let stakedLoan = fraction(stakedAmount, loanPercent, SCALE8)
738737 let stakedNoLoan = (stakedAmount - stakedLoan)
739738 let newInterestLoan = if ((totalShareAmountWithLoan > 0))
740739 then (curPoolInterestLoan + fraction(stakedLoan, SCALE10, totalShareAmountWithLoan))
741740 else 0
742741 let newInterestNoLoan = if (((totalShareAmount - totalShareAmountWithLoan) > 0))
743742 then (curPoolInterestNoLoan + fraction(stakedNoLoan, SCALE10, (totalShareAmount - totalShareAmountWithLoan)))
744743 else 0
745744 let axlyFeeLoan = fraction(stakedLoan, getAxlyFee(pool, CAP_FEE_LOAN), FEE_SCALE6)
746745 let axlyFeeNoLoan = fraction(stakedNoLoan, getAxlyFee(pool, CAP_FEE_NO_LOAN), FEE_SCALE6)
747746 let axlyFee = unstakeLP(pool, pType, shareId, (axlyFeeLoan + axlyFeeNoLoan))
748747 if ((axlyFee == axlyFee))
749748 then ([IntegerEntry((pool + kPoolInterestLoan), newInterestLoan), IntegerEntry((pool + kPoolInterestNoLoan), newInterestNoLoan), IntegerEntry((pool + kPoolTotal), ((totalShareAmount + stakedAmount) - axlyFee)), IntegerEntry((pool + kPoolTotalLoan), ((totalShareAmountWithLoan + stakedLoan) - axlyFeeLoan)), ScriptTransfer(moneyBox, (axlyFeeLoan + axlyFeeNoLoan), fromBase58String(shareId))] ++ getCursEntries(AId, BId, shareId))
750749 else throw("Strict value is not equal to itself.")
751750 }
752751
753752
754753 func withdrawAmountCalc (pool,userCanWithdraw,debt,borrowAsset) = {
755754 let poolAddr = Address(fromBase58String(pool))
756755 let pType = valueOrErrorMessage(getString(this, (kPool + pool)), "Unknown pool")
757- let $t02396724043 = getPoolData(poolAddr, pType)
758- let assetIdA = $t02396724043._1
759- let assetIdB = $t02396724043._2
760- let balA = $t02396724043._3
761- let balB = $t02396724043._4
762- let shareId = $t02396724043._5
756+ let $t02391523991 = getPoolData(poolAddr, pType)
757+ let assetIdA = $t02391523991._1
758+ let assetIdB = $t02391523991._2
759+ let balA = $t02391523991._3
760+ let balB = $t02391523991._4
761+ let shareId = $t02391523991._5
763762 let cBalABefore = accountBalance(assetIdFromStr(assetIdA))
764763 if ((cBalABefore == cBalABefore))
765764 then {
766765 let cBalBBefore = accountBalance(assetIdFromStr(assetIdB))
767766 if ((cBalBBefore == cBalBBefore))
768767 then {
769768 let inv = if ((pType == SF_POOL))
770769 then invoke(poolAddr, "callFunction", ["withdraw", [toString(userCanWithdraw)]], nil)
771770 else {
772771 let inv = unstakeLP(pool, pType, shareId, userCanWithdraw)
773772 if ((inv == inv))
774773 then invoke(poolAddr, "get", nil, [AttachedPayment(assetIdFromStr(shareId), userCanWithdraw)])
775774 else throw("Strict value is not equal to itself.")
776775 }
777776 if ((inv == inv))
778777 then {
779778 let cBalAAfter = accountBalance(assetIdFromStr(assetIdA))
780779 let cBalBAfter = accountBalance(assetIdFromStr(assetIdB))
781- let $t02460624695 = $Tuple2((cBalAAfter - cBalABefore), (cBalBAfter - cBalBBefore))
782- let tokensAmountA = $t02460624695._1
783- let tokensAmountB = $t02460624695._2
784- let $t02469825394 = if ((debt > 0))
780+ let $t02455424643 = $Tuple2((cBalAAfter - cBalABefore), (cBalBAfter - cBalBBefore))
781+ let tokensAmountA = $t02455424643._1
782+ let tokensAmountB = $t02455424643._2
783+ let $t02464625342 = if ((debt > 0))
785784 then {
786785 let amountToGetEx = if (if ((borrowAsset == assetIdA))
787786 then (debt > tokensAmountA)
788787 else false)
789788 then (debt - tokensAmountA)
790789 else if (if ((borrowAsset == assetIdB))
791790 then (debt > tokensAmountB)
792791 else false)
793792 then (debt - tokensAmountB)
794793 else 0
795794 let exInv = if ((amountToGetEx > 0))
796795 then exchangeDirectly(pType, pool, assetIdA, assetIdB, balA, balB, amountToGetEx, borrowAsset)
797796 else 0
798797 if ((exInv == exInv))
799798 then {
800799 let cBalAAfterRepay = accountBalance(assetIdFromStr(assetIdA))
801800 let cBalBAfterRepay = accountBalance(assetIdFromStr(assetIdB))
802801 $Tuple2((cBalAAfterRepay - cBalABefore), (cBalBAfterRepay - cBalBBefore))
803802 }
804803 else throw("Strict value is not equal to itself.")
805804 }
806805 else $Tuple2(tokensAmountA, tokensAmountB)
807- let toUserAmountA = $t02469825394._1
808- let toUserAmountB = $t02469825394._2
806+ let toUserAmountA = $t02464625342._1
807+ let toUserAmountB = $t02464625342._2
809808 $Tuple7(toUserAmountA, assetIdA, toUserAmountB, assetIdB, cBalAAfter, cBalBAfter, shareId)
810809 }
811810 else throw("Strict value is not equal to itself.")
812811 }
813812 else throw("Strict value is not equal to itself.")
814813 }
815814 else throw("Strict value is not equal to itself.")
816815 }
817816
818817
819818 func userCanWithdrawShareCalc (user,pool,posId,borrowed) = {
820819 let pAmount = valueOrErrorMessage(getInteger(this, (((((pool + "_") + user) + "_") + posId) + kUserPosition)), "Unknown position")
821820 let userInterest = getIntegerValue(this, (((((pool + "_") + user) + "_") + posId) + kUserPositionInterest))
822821 let poolInterest = if (borrowed)
823822 then getIntegerValue(this, (pool + kPoolInterestLoan))
824823 else getIntegerValue(this, (pool + kPoolInterestNoLoan))
825824 (pAmount + fraction(pAmount, (poolInterest - userInterest), SCALE10))
826825 }
827826
828827
829828 func withdrawToUser (user,pool,posId,stopLoss) = {
830829 let pAmount = valueOrErrorMessage(getInteger(this, (((((pool + "_") + user) + "_") + posId) + kUserPosition)), "Unknown position")
831830 let userInterest = getIntegerValue(this, (((((pool + "_") + user) + "_") + posId) + kUserPositionInterest))
832831 let borrowAmount = valueOrElse(getInteger(this, (((((pool + "_") + user) + "_") + posId) + kUserBorrowAmount)), 0)
833832 let userCanWithdraw = userCanWithdrawShareCalc(user, pool, posId, (borrowAmount > 0))
834833 let poolTotalShare = getPoolTotalShare(pool)
835834 let userAddr = Address(fromBase58String(user))
836835 let borrowAsset = valueOrElse(getString(this, (((((pool + "_") + user) + "_") + posId) + kUserBorrowAssetId)), "")
837836 let debt = if ((borrowAmount > 0))
838837 then {
839838 let @ = invoke(getLendSrvAddr(), "getAssetDebt", [false, ((((pool + "_") + user) + "_") + posId), borrowAsset], nil)
840839 if ($isInstanceOf(@, "Int"))
841840 then @
842841 else throw(($getType(@) + " couldn't be cast to Int"))
843842 }
844843 else 0
845- let $t02690627059 = withdrawAmountCalc(pool, userCanWithdraw, debt, borrowAsset)
846- if (($t02690627059 == $t02690627059))
844+ let $t02685427007 = withdrawAmountCalc(pool, userCanWithdraw, debt, borrowAsset)
845+ if (($t02685427007 == $t02685427007))
847846 then {
848- let shareId = $t02690627059._7
849- let cBalBAfter = $t02690627059._6
850- let cBalAAfter = $t02690627059._5
851- let assetIdB = $t02690627059._4
852- let toUserAmountB = $t02690627059._3
853- let assetIdA = $t02690627059._2
854- let toUserAmountA = $t02690627059._1
847+ let shareId = $t02685427007._7
848+ let cBalBAfter = $t02685427007._6
849+ let cBalAAfter = $t02685427007._5
850+ let assetIdB = $t02685427007._4
851+ let toUserAmountB = $t02685427007._3
852+ let assetIdA = $t02685427007._2
853+ let toUserAmountA = $t02685427007._1
855854 let closeDbtInv = if ((debt > 0))
856855 then invoke(getLendSrvAddr(), "repayFor", [((user + "_") + posId)], [AttachedPayment(assetIdFromStr(borrowAsset), debt)])
857856 else 0
858857 if ((closeDbtInv == closeDbtInv))
859858 then ([DeleteEntry((((((pool + "_") + user) + "_") + posId) + kUserPosition)), DeleteEntry((((((pool + "_") + user) + "_") + posId) + kUserPositionInterest)), IntegerEntry((pool + kPoolTotal), (poolTotalShare - userCanWithdraw)), ScriptTransfer(userAddr, toUserAmountA, assetIdFromStr(assetIdA)), ScriptTransfer(userAddr, toUserAmountB, assetIdFromStr(assetIdB))] ++ getCursEntries(assetIdA, assetIdB, shareId))
860859 else throw("Strict value is not equal to itself.")
861860 }
862861 else throw("Strict value is not equal to itself.")
863862 }
864863
865864
866865 func parseRequest (requestId) = {
867866 let request = split(valueOrErrorMessage(getString(this, (requestId + kRequestId)), ("No request with id " + requestId)), ",")
868867 let user = request[0]
869868 let pool = request[1]
870869 let pmtA = parseIntValue(request[2])
871870 let AId = request[3]
872871 let pmtB = parseIntValue(request[4])
873872 let BId = request[5]
874873 let balA = parseIntValue(request[6])
875874 let balB = parseIntValue(request[7])
876875 let shareId = request[8]
877876 let bwAsset = request[9]
878877 let bwAmount = parseIntValue(request[10])
879878 $Tuple11(user, pool, pmtA, AId, pmtB, BId, balA, balB, shareId, bwAsset, bwAmount)
880879 }
881880
882881
883882 @Callable(i)
884883 func replenishEVALONLY (pool,leverage,borrowAssetId,pmtA,pmtB) = if (if ((100 > leverage))
885884 then true
886885 else (leverage > 300))
887886 then throw("Leverage can't be <100 and >300")
888887 else {
889888 let pType = valueOrErrorMessage(getString(this, (kPool + pool)), "Pool is not inited")
890- let $t02857128661 = getPoolData(Address(fromBase58String(pool)), pType)
891- let AId = $t02857128661._1
892- let BId = $t02857128661._2
893- let balA = $t02857128661._3
894- let balB = $t02857128661._4
895- let shareId = $t02857128661._5
889+ let $t02851928609 = getPoolData(Address(fromBase58String(pool)), pType)
890+ let AId = $t02851928609._1
891+ let BId = $t02851928609._2
892+ let balA = $t02851928609._3
893+ let balB = $t02851928609._4
894+ let shareId = $t02851928609._5
896895 let borrowAmount = if ((leverage > 100))
897896 then {
898897 let dPriceA = ( let @ = invoke(priceOracleAddr, "getTWAP60", [AId, false], nil)
899898 if ($isInstanceOf(@, "(Int, Int)"))
900899 then @
901900 else throw(($getType(@) + " couldn't be cast to (Int, Int)")))._2
902901 let dPriceB = ( let @ = invoke(priceOracleAddr, "getTWAP60", [BId, false], nil)
903902 if ($isInstanceOf(@, "(Int, Int)"))
904903 then @
905904 else throw(($getType(@) + " couldn't be cast to (Int, Int)")))._2
906905 let paydInDollar = (fraction(dPriceA, pmtA, pow(10, 0, getAssetDecimals(AId), 0, 0, DOWN)) + fraction(dPriceB, pmtB, pow(10, 0, getAssetDecimals(BId), 0, 0, DOWN)))
907906 let borrowPrice = if ((borrowAssetId == AId))
908907 then dPriceA
909908 else dPriceB
910909 (fraction(paydInDollar, (leverage - 100), 100) / borrowPrice)
911910 }
912911 else 0
913- let $t02923029342 = if ((borrowAssetId == AId))
912+ let $t02917829290 = if ((borrowAssetId == AId))
914913 then $Tuple2((pmtA + borrowAmount), pmtB)
915914 else $Tuple2(pmtA, (pmtB + borrowAmount))
916- let payInA = $t02923029342._1
917- let payInB = $t02923029342._2
915+ let payInA = $t02917829290._1
916+ let payInB = $t02917829290._2
918917 let lpAmount = calcReplanishLPVirt(pType, pool, pmtA, AId, pmtB, BId, balA, balB)
919- let $t02943529570 = calcWithdrawLPVirt(pType, pool, lpAmount, shareId, AId, BId, balA, balB, borrowAmount, borrowAssetId)
920- if (($t02943529570 == $t02943529570))
918+ let $t02938329518 = calcWithdrawLPVirt(pType, pool, lpAmount, shareId, AId, BId, balA, balB, borrowAmount, borrowAssetId)
919+ if (($t02938329518 == $t02938329518))
921920 then {
922- let amountGetB = $t02943529570._2
923- let amountGetA = $t02943529570._1
921+ let amountGetB = $t02938329518._2
922+ let amountGetA = $t02938329518._1
924923 let ratioBefore = fraction(balB, SCALE8, balA)
925924 let ratioAfter = fraction((balB - amountGetB), SCALE8, (balA - amountGetA))
926925 let impact = (SCALE8 - fraction(ratioBefore, SCALE8, ratioAfter))
927926 let imcatMod = if ((0 > impact))
928927 then (impact * -1)
929928 else impact
930929 $Tuple2(nil, [amountGetA, amountGetB, imcatMod])
931930 }
932931 else throw("Strict value is not equal to itself.")
933932 }
934933
935934
936935
937936 @Callable(i)
938937 func getShareAssetPriceREADONLY (shareId) = {
939938 let sharePrices = getSharePrice([shareId])
940939 $Tuple2(nil, sharePrices[0])
941940 }
942941
943942
944943
945944 @Callable(i)
946945 func getUserPositionShareAmountREADONLY (user,posNum) = {
947946 let pool = valueOrErrorMessage(getString(this, (((user + "_") + posNum) + kUserPositionPool)), "Unknown position")
948947 let borrowAmount = getIntegerValue(this, (((((pool + "_") + user) + "_") + posNum) + kUserBorrowAmount))
949948 let userCanWithdraw = userCanWithdrawShareCalc(user, pool, posNum, (borrowAmount > 0))
950949 $Tuple2(nil, userCanWithdraw)
951950 }
952951
953952
954953
955954 @Callable(i)
956955 func replenish (pool,leverage,borrowAssetId) = if (if ((100 > leverage))
957956 then true
958957 else (leverage > 300))
959958 then throw("Leverage can't be <100 and >300")
960959 else {
961960 let pType = valueOrErrorMessage(getString(this, (kPool + pool)), "Pool is not inited")
962- let $t03071230802 = getPoolData(Address(fromBase58String(pool)), pType)
963- let AId = $t03071230802._1
964- let BId = $t03071230802._2
965- let balA = $t03071230802._3
966- let balB = $t03071230802._4
967- let shareId = $t03071230802._5
968- let $t03080531442 = if ((size(i.payments) == 2))
961+ let $t03066030750 = getPoolData(Address(fromBase58String(pool)), pType)
962+ let AId = $t03066030750._1
963+ let BId = $t03066030750._2
964+ let balA = $t03066030750._3
965+ let balB = $t03066030750._4
966+ let shareId = $t03066030750._5
967+ let $t03075331390 = if ((size(i.payments) == 2))
969968 then if ((assetIdToStr(i.payments[0].assetId) != AId))
970969 then throw("Wrong payment asset A")
971970 else if ((assetIdToStr(i.payments[1].assetId) != BId))
972971 then throw("Wrong payment asset B")
973972 else $Tuple4(i.payments[0].amount, AId, i.payments[1].amount, BId)
974973 else if ((size(i.payments) == 1))
975974 then if ((assetIdToStr(i.payments[0].assetId) == AId))
976975 then $Tuple4(i.payments[0].amount, AId, 0, BId)
977976 else if ((assetIdToStr(i.payments[0].assetId) == BId))
978977 then $Tuple4(0, AId, i.payments[0].amount, BId)
979978 else throw("Wrong payment")
980979 else throw("One or two payments expected")
981- let pmtA = $t03080531442._1
982- let pmtAssetA = $t03080531442._2
983- let pmtB = $t03080531442._3
984- let pmtAssetB = $t03080531442._4
980+ let pmtA = $t03075331390._1
981+ let pmtAssetA = $t03075331390._2
982+ let pmtB = $t03075331390._3
983+ let pmtAssetB = $t03075331390._4
985984 let newPosNum = getNewUserPositionNumber(pool, toString(i.caller))
986985 if ((leverage > 100))
987986 then {
988987 let dPriceA = ( let @ = invoke(priceOracleAddr, "getTWAP60", [pmtAssetA, false], nil)
989988 if ($isInstanceOf(@, "(Int, Int)"))
990989 then @
991990 else throw(($getType(@) + " couldn't be cast to (Int, Int)")))._2
992991 let dPriceB = ( let @ = invoke(priceOracleAddr, "getTWAP60", [pmtAssetB, false], nil)
993992 if ($isInstanceOf(@, "(Int, Int)"))
994993 then @
995994 else throw(($getType(@) + " couldn't be cast to (Int, Int)")))._2
996995 let paydInDollar = (fraction(dPriceA, pmtA, pow(10, 0, getAssetDecimals(pmtAssetA), 0, 0, DOWN)) + fraction(dPriceB, pmtB, pow(10, 0, getAssetDecimals(pmtAssetB), 0, 0, DOWN)))
997996 let borrowPrice = if ((borrowAssetId == AId))
998997 then dPriceA
999998 else dPriceB
1000999 let borrowAmount = (fraction(paydInDollar, (leverage - 100), 100) / borrowPrice)
10011000 let request = makeString([toString(i.caller), pool, toString(pmtA), pmtAssetA, toString(pmtB), pmtAssetB, toString(balA), toString(balB), shareId, borrowAssetId, toString(borrowAmount)], ",")
10021001 let newRequestId = {
10031002 let @ = invoke(this, "createNewRequest", [request], nil)
10041003 if ($isInstanceOf(@, "Int"))
10051004 then @
10061005 else throw(($getType(@) + " couldn't be cast to Int"))
10071006 }
10081007 if ((newRequestId == newRequestId))
10091008 then {
10101009 let args = [((toString(i.caller) + "_") + toString(newPosNum)), shareId, borrowAssetId, borrowAmount, toString(this), "replenishFromLand", toString(valueOrErrorMessage(newRequestId, "Can't create new request"))]
10111010 let inv = reentrantInvoke(getLendSrvAddr(), "flashPosition", args, nil)
10121011 if ((inv == inv))
10131012 then nil
10141013 else throw("Strict value is not equal to itself.")
10151014 }
10161015 else throw("Strict value is not equal to itself.")
10171016 }
10181017 else {
1019- let $t03282532937 = replenishByType(pType, pool, NO_LOAN_FEE, pmtA, AId, pmtB, BId, balA, balB, shareId)
1020- let userStaked = $t03282532937._1
1021- let axlyFee = $t03282532937._2
1018+ let $t03277332885 = replenishByType(pType, pool, NO_LOAN_FEE, pmtA, AId, pmtB, BId, balA, balB, shareId)
1019+ let userStaked = $t03277332885._1
1020+ let axlyFee = $t03277332885._2
10221021 (replenishEntries(pool, toString(i.caller), userStaked, axlyFee, newPosNum, shareId, pType, false) ++ getCursEntries(AId, BId, shareId))
10231022 }
10241023 }
10251024
10261025
10271026
10281027 @Callable(i)
10291028 func replenishFromLand (requestId) = {
1030- let $t03314833252 = parseRequest(requestId)
1031- let user = $t03314833252._1
1032- let pool = $t03314833252._2
1033- let pmtA = $t03314833252._3
1034- let AId = $t03314833252._4
1035- let pmtB = $t03314833252._5
1036- let BId = $t03314833252._6
1037- let balA = $t03314833252._7
1038- let balB = $t03314833252._8
1039- let shareId = $t03314833252._9
1040- let bwAsset = $t03314833252._10
1041- let bwAmount = $t03314833252._11
1029+ let $t03309633200 = parseRequest(requestId)
1030+ let user = $t03309633200._1
1031+ let pool = $t03309633200._2
1032+ let pmtA = $t03309633200._3
1033+ let AId = $t03309633200._4
1034+ let pmtB = $t03309633200._5
1035+ let BId = $t03309633200._6
1036+ let balA = $t03309633200._7
1037+ let balB = $t03309633200._8
1038+ let shareId = $t03309633200._9
1039+ let bwAsset = $t03309633200._10
1040+ let bwAmount = $t03309633200._11
10421041 if ((size(i.payments) != 1))
10431042 then throw("Wrong payment size")
10441043 else if (if ((assetIdToStr(i.payments[0].assetId) != bwAsset))
10451044 then true
10461045 else (i.payments[0].amount != bwAmount))
10471046 then throw("Wrong payment")
10481047 else {
1049- let $t03344233566 = if ((AId == bwAsset))
1048+ let $t03339033514 = if ((AId == bwAsset))
10501049 then $Tuple2((pmtA + i.payments[0].amount), pmtB)
10511050 else $Tuple2(pmtA, (pmtB + i.payments[0].amount))
1052- let pmtAllA = $t03344233566._1
1053- let pmtAllB = $t03344233566._2
1051+ let pmtAllA = $t03339033514._1
1052+ let pmtAllB = $t03339033514._2
10541053 let pType = valueOrErrorMessage(getString(this, (kPool + pool)), "Unknown pool")
1055- let $t03364833757 = replenishByType(pType, pool, LOAN_FEE, pmtA, AId, pmtB, BId, balA, balB, shareId)
1056- let userStaked = $t03364833757._1
1057- let axlyFee = $t03364833757._2
1054+ let $t03359633705 = replenishByType(pType, pool, LOAN_FEE, pmtA, AId, pmtB, BId, balA, balB, shareId)
1055+ let userStaked = $t03359633705._1
1056+ let axlyFee = $t03359633705._2
10581057 let posNum = getNewUserPositionNumber(pool, toString(i.caller))
10591058 let borrowEntries = [IntegerEntry((((((pool + "_") + user) + "_") + toString(posNum)) + kUserBorrowAmount), bwAmount), StringEntry((((((pool + "_") + user) + "_") + toString(posNum)) + kUserBorrowAssetId), bwAsset)]
10601059 let entries = replenishEntries(pool, user, userStaked, axlyFee, posNum, shareId, pType, true)
10611060 $Tuple2((((entries ++ getCursEntries(AId, BId, shareId)) ++ borrowEntries) :+ DeleteEntry((requestId + kRequestId))), userStaked)
10621061 }
10631062 }
10641063
10651064
10661065
10671066 @Callable(i)
10681067 func withdraw (pool,posId) = withdrawToUser(toString(i.caller), pool, toString(posId), false)
10691068
10701069
10711070
10721071 @Callable(i)
10731072 func createUpdateStopLoss (posId,poolId,assetId,price) = {
10741073 let tokenOraclePrice = ( let @ = invoke(priceOracleAddr, "getTWAP60", [assetId, false], nil)
10751074 if ($isInstanceOf(@, "(Int, Int)"))
10761075 then @
10771076 else throw(($getType(@) + " couldn't be cast to (Int, Int)")))._1
10781077 if (!(isDefined(getInteger(this, (((((poolId + "_") + toString(i.caller)) + "_") + toString(posId)) + kUserPosition)))))
10791078 then throw("There are no user position")
10801079 else if ((0 >= price))
10811080 then throw("Price must be greater than 0")
10821081 else if ((price > tokenOraclePrice))
10831082 then throw("Price must be less than current token price")
10841083 else [IntegerEntry((((((((toString(i.caller) + "_") + toString(posId)) + "_") + poolId) + "_") + assetId) + kUserStopLoss), price)]
10851084 }
10861085
10871086
10881087
10891088 @Callable(i)
10901089 func deleteStopLoss (posId,poolId,assetId) = if (!(isDefined(getInteger(this, (((((((toString(i.caller) + "_") + toString(posId)) + "_") + poolId) + "_") + assetId) + kUserStopLoss)))))
10911090 then throw("No entry")
10921091 else [DeleteEntry((((((((toString(i.caller) + "_") + toString(posId)) + "_") + poolId) + "_") + assetId) + kUserStopLoss))]
10931092
10941093
10951094
10961095 @Callable(i)
10971096 func createNewRequest (params) = valueOrElse(isSelfCall(i), {
10981097 let newRequestId = (valueOrElse(getInteger(this, kRequestIter), 0) + 1)
10991098 $Tuple2([StringEntry((toString(newRequestId) + kRequestId), params), IntegerEntry(kRequestIter, newRequestId)], newRequestId)
11001099 })
11011100
11021101
11031102
11041103 @Callable(i)
11051104 func stopLoss (user,posId,pool,assetId) = {
11061105 let tokenOraclePrice = ( let @ = invoke(priceOracleAddr, "getTWAP60", [assetId, false], nil)
11071106 if ($isInstanceOf(@, "(Int, Int)"))
11081107 then @
11091108 else throw(($getType(@) + " couldn't be cast to (Int, Int)")))._1
11101109 if (!(isDefined(getInteger(this, (((((((user + "_") + toString(posId)) + "_") + pool) + "_") + assetId) + kUserStopLoss)))))
11111110 then throw("No entry")
11121111 else (withdrawToUser(toString(i.caller), pool, toString(posId), true) :+ DeleteEntry((((((((user + "_") + toString(posId)) + "_") + pool) + "_") + assetId) + kUserStopLoss)))
11131112 }
11141113
11151114
11161115
11171116 @Callable(i)
11181117 func liquidate (user,posId,liquidateAmount) = {
11191118 let pool = valueOrErrorMessage(getString(this, (((user + "_") + posId) + kUserPositionPool)), "no position")
11201119 let pType = valueOrErrorMessage(getString(this, (kPool + pool)), "Pool is not inited")
1121- let $t03654036630 = getPoolData(Address(fromBase58String(pool)), pType)
1122- let AId = $t03654036630._1
1123- let BId = $t03654036630._2
1124- let balA = $t03654036630._3
1125- let balB = $t03654036630._4
1126- let shareId = $t03654036630._5
1120+ let $t03648836578 = getPoolData(Address(fromBase58String(pool)), pType)
1121+ let AId = $t03648836578._1
1122+ let BId = $t03648836578._2
1123+ let balA = $t03648836578._3
1124+ let balB = $t03648836578._4
1125+ let shareId = $t03648836578._5
11271126 let amount = unstakeLP(pool, pType, shareId, liquidateAmount)
11281127 let borrowAmount = getIntegerValue(this, (((((pool + "_") + user) + "_") + posId) + kUserBorrowAmount))
11291128 let borrowAsset = getStringValue(this, (((((pool + "_") + user) + "_") + posId) + kUserBorrowAssetId))
11301129 let userCanWithdraw = userCanWithdrawShareCalc(user, pool, posId, (borrowAmount > 0))
11311130 if ((borrowAmount == 0))
11321131 then throw("You can't liquidate position without borrow")
11331132 else [IntegerEntry((((((pool + "_") + user) + "_") + posId) + kUserPositionInterest), getIntegerValue(this, (pool + kPoolInterestLoan))), IntegerEntry((pool + kPoolTotalLoan), (getPoolTotalShareWithLoan(pool) - liquidateAmount)), IntegerEntry((pool + kPoolTotal), (getPoolTotalShare(pool) - liquidateAmount)), IntegerEntry((((((pool + "_") + user) + "_") + posId) + kUserPosition), (userCanWithdraw - liquidateAmount)), ScriptTransfer(i.caller, amount, fromBase58String(shareId))]
11341133 }
11351134
11361135
11371136
11381137 @Callable(i)
11391138 func capitalizeExKeeper (pool,type,tokenToId,amountToExchange,claim,amountsIn,addresses,assetsToReceive,estReceived,slippageTolerance,minReceived,options) = {
1140- let $t03786538059 = if (claim)
1139+ let $t03781338007 = if (claim)
11411140 then claimFarmed(type, pool)
11421141 else {
11431142 let claimedAsset = if ((type == SF_POOL))
11441143 then SWOPID
11451144 else WXID
11461145 $Tuple2(amountToExchange, claimedAsset)
11471146 }
1148- let claimedAmount = $t03786538059._1
1149- let claimedAsset = $t03786538059._2
1147+ let claimedAmount = $t03781338007._1
1148+ let claimedAsset = $t03781338007._2
11501149 let exchangedAmount = exchangeKeeper(tokenToId, amountToExchange, claimedAsset, amountsIn, addresses, assetsToReceive, estReceived, slippageTolerance, minReceived, options)
11511150 let change = (claimedAmount - amountToExchange)
11521151 let changeEntry = if ((change > 0))
11531152 then [IntegerEntry((pool + kPoolCapChange), (change + valueOrElse(getInteger(this, (pool + kPoolCapChange)), 0)))]
11541153 else nil
11551154 (capitalize(pool, type, tokenToId, exchangedAmount) ++ changeEntry)
11561155 }
11571156
11581157
11591158
11601159 @Callable(i)
11611160 func capitalizeExPuzzle (pool,type,tokenToId,amountToExchange,claim,routesStr,minToReceive,options) = {
1162- let $t03871638910 = if (claim)
1161+ let $t03866438858 = if (claim)
11631162 then claimFarmed(type, pool)
11641163 else {
11651164 let claimedAsset = if ((type == SF_POOL))
11661165 then SWOPID
11671166 else WXID
11681167 $Tuple2(amountToExchange, claimedAsset)
11691168 }
1170- let claimedAmount = $t03871638910._1
1171- let claimedAsset = $t03871638910._2
1169+ let claimedAmount = $t03866438858._1
1170+ let claimedAsset = $t03866438858._2
11721171 let exchangedAmount = exchangePuzzle(tokenToId, amountToExchange, claimedAsset, routesStr, minToReceive, options)
11731172 let change = (claimedAmount - amountToExchange)
11741173 let changeEntry = if ((change > 0))
11751174 then [IntegerEntry((pool + kPoolCapChange), (change + valueOrElse(getInteger(this, (pool + kPoolCapChange)), 0)))]
11761175 else nil
11771176 (capitalize(pool, type, tokenToId, exchangedAmount) ++ changeEntry)
11781177 }
11791178
11801179
11811180
11821181 @Callable(i)
11831182 func capitalizeExSwopFi (pool,type,tokenToId,amountToExchange,claim,exchangers,exchangersType,args1,args2,routingAssetsKeys,minAmountToReceive,options) = {
1184- let $t03963339827 = if (claim)
1183+ let $t03958139775 = if (claim)
11851184 then claimFarmed(type, pool)
11861185 else {
11871186 let claimedAsset = if ((type == SF_POOL))
11881187 then SWOPID
11891188 else WXID
11901189 $Tuple2(amountToExchange, claimedAsset)
11911190 }
1192- let claimedAmount = $t03963339827._1
1193- let claimedAsset = $t03963339827._2
1191+ let claimedAmount = $t03958139775._1
1192+ let claimedAsset = $t03958139775._2
11941193 let exchangedAmount = exchangeSwopFi(tokenToId, amountToExchange, claimedAsset, exchangers, exchangersType, args1, args2, routingAssetsKeys, minAmountToReceive, options)
11951194 let change = (claimedAmount - amountToExchange)
11961195 let changeEntry = if ((change > 0))
11971196 then [IntegerEntry((pool + kPoolCapChange), (change + valueOrElse(getInteger(this, (pool + kPoolCapChange)), 0)))]
11981197 else nil
11991198 (capitalize(pool, type, tokenToId, exchangedAmount) ++ changeEntry)
12001199 }
12011200
12021201
12031202
12041203 @Callable(i)
12051204 func initNewPool (type,poolAddr,inFeeNoLoan,inFeeLoan,capFeeNoLoan,capFeeWithLoan,stoplossFeeNoLoan,stoplossFeeWithLoan) = if (if ((type != SF_POOL))
12061205 then (type != WX_POOL)
12071206 else false)
12081207 then throw("Wrong type")
12091208 else {
1210- let $t04052040614 = getPoolData(Address(fromBase58String(poolAddr)), type)
1211- let aId = $t04052040614._1
1212- let bId = $t04052040614._2
1213- let aBal = $t04052040614._3
1214- let bBal = $t04052040614._4
1215- let shareId = $t04052040614._5
1209+ let $t04046840562 = getPoolData(Address(fromBase58String(poolAddr)), type)
1210+ let aId = $t04046840562._1
1211+ let bId = $t04046840562._2
1212+ let aBal = $t04046840562._3
1213+ let bBal = $t04046840562._4
1214+ let shareId = $t04046840562._5
12161215 [IntegerEntry((poolAddr + kAxlyInFeeWithoutLoan), inFeeNoLoan), IntegerEntry((poolAddr + kAxlyInFeeWithLoan), inFeeLoan), IntegerEntry((poolAddr + kAxlyNoLoanCapFee), capFeeNoLoan), IntegerEntry((poolAddr + kAxlyWithLoanCapFee), capFeeWithLoan), IntegerEntry((poolAddr + kAxlyStopLossNoLoanFee), stoplossFeeNoLoan), IntegerEntry((poolAddr + kAxlyStopLossLoanFee), stoplossFeeWithLoan), IntegerEntry((poolAddr + kPoolInterestLoan), 0), IntegerEntry((poolAddr + kPoolInterestNoLoan), 0), StringEntry((kPool + poolAddr), type), StringEntry((shareId + kSharePool), poolAddr)]
12171216 }
12181217
12191218
12201219
12211220 @Callable(i)
12221221 func capitalizeTest (pool,pType,tokenId,tokenAmount) = {
12231222 let poolAddr = Address(fromBase58String(pool))
1224- let $t04141041489 = getPoolData(poolAddr, pType)
1225- let AId = $t04141041489._1
1226- let BId = $t04141041489._2
1227- let balA = $t04141041489._3
1228- let balB = $t04141041489._4
1229- let shareId = $t04141041489._5
1230- let $t04149241572 = if ((tokenId == AId))
1223+ let $t04135841437 = getPoolData(poolAddr, pType)
1224+ let AId = $t04135841437._1
1225+ let BId = $t04135841437._2
1226+ let balA = $t04135841437._3
1227+ let balB = $t04135841437._4
1228+ let shareId = $t04135841437._5
1229+ let $t04144041520 = if ((tokenId == AId))
12311230 then $Tuple2(tokenAmount, 0)
12321231 else $Tuple2(0, tokenAmount)
1233- let pmtA = $t04149241572._1
1234- let pmtB = $t04149241572._2
1235- let $t04157541679 = replenishByType(pType, pool, NO_FEE, pmtA, AId, pmtB, BId, balA, balB, shareId)
1236- let stakedAmount = $t04157541679._1
1237- let nf = $t04157541679._2
1232+ let pmtA = $t04144041520._1
1233+ let pmtB = $t04144041520._2
1234+ let $t04152341627 = replenishByType(pType, pool, NO_FEE, pmtA, AId, pmtB, BId, balA, balB, shareId)
1235+ let stakedAmount = $t04152341627._1
1236+ let nf = $t04152341627._2
12381237 let curPoolInterestLoan = valueOrElse(getInteger(this, (pool + kPoolInterestLoan)), 0)
12391238 let curPoolInterestNoLoan = valueOrElse(getInteger(this, (pool + kPoolInterestNoLoan)), 0)
12401239 let totalShareAmount = getPoolTotalShare(pool)
12411240 let totalShareAmountWithLoan = getPoolTotalShareWithLoan(pool)
12421241 let loanPercent = fraction(totalShareAmountWithLoan, SCALE8, totalShareAmount)
12431242 let stakedLoan = fraction(stakedAmount, loanPercent, SCALE8)
12441243 let stakedNoLoan = (stakedAmount - stakedLoan)
12451244 let newInterestLoan = if ((totalShareAmountWithLoan > 0))
12461245 then (curPoolInterestLoan + fraction(stakedLoan, SCALE10, totalShareAmountWithLoan))
12471246 else 0
12481247 let newInterestNoLoan = if (((totalShareAmount - totalShareAmountWithLoan) > 0))
12491248 then (curPoolInterestNoLoan + fraction(stakedNoLoan, SCALE10, (totalShareAmount - totalShareAmountWithLoan)))
12501249 else 0
12511250 let axlyFeeLoan = fraction(stakedLoan, getAxlyFee(pool, CAP_FEE_LOAN), FEE_SCALE6)
12521251 let axlyFeeNoLoan = fraction(stakedNoLoan, getAxlyFee(pool, CAP_FEE_NO_LOAN), FEE_SCALE6)
12531252 let axlyFee = unstakeLP(pool, pType, shareId, (axlyFeeLoan + axlyFeeNoLoan))
12541253 if ((axlyFee == axlyFee))
12551254 then ([IntegerEntry((pool + kPoolInterestLoan), newInterestLoan), IntegerEntry((pool + kPoolInterestNoLoan), newInterestNoLoan), IntegerEntry((pool + kPoolTotal), ((totalShareAmount + stakedAmount) - axlyFee)), IntegerEntry((pool + kPoolTotalLoan), ((totalShareAmountWithLoan + stakedLoan) - axlyFeeLoan)), ScriptTransfer(moneyBox, (axlyFeeLoan + axlyFeeNoLoan), fromBase58String(shareId))] ++ getCursEntries(AId, BId, shareId))
12561255 else throw("Strict value is not equal to itself.")
12571256 }
12581257
12591258
12601259
12611260 @Callable(i)
12621261 func claimFarmedTest (type,pool) = if ((type == SF_POOL))
12631262 then {
12641263 let balBefore = accountBalance(SWOPID)
12651264 if ((balBefore == balBefore))
12661265 then {
12671266 let inv = invoke(getSFFarmingAddr(), "claim", [pool], nil)
12681267 if ((inv == inv))
12691268 then {
12701269 let balAfter = accountBalance(SWOPID)
12711270 $Tuple2(nil, $Tuple2((balAfter - balBefore), SWOPID))
12721271 }
12731272 else throw("Strict value is not equal to itself.")
12741273 }
12751274 else throw("Strict value is not equal to itself.")
12761275 }
12771276 else if ((type == WX_POOL))
12781277 then {
12791278 let balBefore = accountBalance(WXID)
12801279 if ((balBefore == balBefore))
12811280 then {
12821281 let inv = invoke(getWXFarmingAddr(Address(fromBase58String(pool))), "claimWX", [pool], nil)
12831282 if ((inv == inv))
12841283 then {
12851284 let balAfter = accountBalance(WXID)
12861285 $Tuple2(nil, $Tuple2((balAfter - balBefore), WXID))
12871286 }
12881287 else throw("Strict value is not equal to itself.")
12891288 }
12901289 else throw("Strict value is not equal to itself.")
12911290 }
12921291 else throw("Wrong pool type")
12931292
12941293
12951294 @Verifier(tx)
12961295 func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
12971296

github/deemru/w8io/026f985 
201.91 ms