tx · 5HMiBS6JiQu9JCLuKC3vcJq1dySEYFFQoyDhnsmGt27g

3MvRWw2FPEimFCTGtK7qY9uAJbM7XJ4ZfJS:  -0.04100000 Waves

2023.05.30 15:38 [2600714] smart account 3MvRWw2FPEimFCTGtK7qY9uAJbM7XJ4ZfJS > SELF 0.00000000 Waves

{ "type": 13, "id": "5HMiBS6JiQu9JCLuKC3vcJq1dySEYFFQoyDhnsmGt27g", "fee": 4100000, "feeAssetId": null, "timestamp": 1685450344949, "version": 2, "chainId": 84, "sender": "3MvRWw2FPEimFCTGtK7qY9uAJbM7XJ4ZfJS", "senderPublicKey": "HP8sssVq1866F7CaPQJwgFrt6fsqhQjKwM84cL1wjD2a", "proofs": [ "MhNnCUBKVCGaM82AV8QoTfMGAoeZvZstQ9UFqY1ygrX1Ub21d246C6KLKXS7VVWzUpqA35HZ5xGRyDuSDoPrD5n" ], "script": "base64:BgKRAQgCEgcKBQgBCAEBEgMKAQgSBAoCCAgSBQoDCAEIEgMKAQgSBAoCCAESBgoEAQgIARIFCgMBCAgSAwoBCBIGCgQIAQgIEgUKAwgIARIOCgwICAgBBBEYGBEBARgSCgoICAgIAQQIARgSDgoMCAgIAQQYGBgYGAEYEgoKCAgIAQEBAQEBEgYKBAgICAESBAoCCAhbAAdTRl9QT09MAgJTRgAHV1hfUE9PTAICV1gAD0NBUF9GRUVfTk9fTE9BTgIJY2FwTm9Mb2FuAAxDQVBfRkVFX0xPQU4CB2NhcExvYW4AFFNUT1BMT1NTX0ZFRV9OT19MT0FOAg5zdG9wTG9zc05vTG9hbgANU1RPUExPU1NfTE9BTgIMc3RvcExvc3NMb2FuAAhMT0FOX0ZFRQIEbG9hbgALTk9fTE9BTl9GRUUCBm5vTG9hbgAGTk9fRkVFAgVub0ZlZQAGU0NBTEU4AIDC1y8AB1NDQUxFMTAAgMivoCUACkZFRV9TQ0FMRTYAwIQ9ABRrU0ZQb29sQUFzc2V0QmFsYW5jZQIPQV9hc3NldF9iYWxhbmNlABRrU0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AkA9AMDCAUCdHgJYm9keUJ5dGVzCQCRAwIIBQJ0eAZwcm9vZnMAAAgFAnR4D3NlbmRlclB1YmxpY0tleceaaFM=", "height": 2600714, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 7eS7p2qcascyrRY5Cd1Ctg1LAVVmSSpAhUH83QsThSBa Next: 6TbKo8A2zLaJThrj13ersx3KLkfDtus8QY3kXiQUznos Diff:
OldNewDifferences
568568 }
569569
570570
571+func unstakeLP (pool,pType,shareId,amount) = {
572+ let $t01773918096 = if ((pType == SF_POOL))
573+ then $Tuple3(getSFFarmingAddr(), "withdrawShareTokens", [pool, amount])
574+ else if ((pType == WX_POOL))
575+ then $Tuple3(getWXFarmingAddr(Address(fromBase58String(pool))), "unstake", [shareId, amount])
576+ else throw("Wrong pool type")
577+ let farmAddr = $t01773918096._1
578+ let fName = $t01773918096._2
579+ let params = $t01773918096._3
580+ let inv = invoke(farmAddr, fName, params, nil)
581+ if ((inv == inv))
582+ then amount
583+ else throw("Strict value is not equal to itself.")
584+ }
585+
586+
571587 func capitalize (pool,pType,tokenId,tokenAmount) = {
572588 let poolAddr = Address(fromBase58String(pool))
573- let $t01781017889 = getPoolData(poolAddr, pType)
574- let AId = $t01781017889._1
575- let BId = $t01781017889._2
576- let balA = $t01781017889._3
577- let balB = $t01781017889._4
578- let shareId = $t01781017889._5
579- let $t01789217972 = if ((tokenId == AId))
589+ let $t01831318392 = getPoolData(poolAddr, pType)
590+ let AId = $t01831318392._1
591+ let BId = $t01831318392._2
592+ let balA = $t01831318392._3
593+ let balB = $t01831318392._4
594+ let shareId = $t01831318392._5
595+ let $t01839518475 = if ((tokenId == AId))
580596 then $Tuple2(tokenAmount, 0)
581597 else $Tuple2(0, tokenAmount)
582- let pmtA = $t01789217972._1
583- let pmtB = $t01789217972._2
584- let $t01797518079 = replenishByType(pType, pool, NO_FEE, pmtA, AId, pmtB, BId, balA, balB, shareId)
585- let stakedAmount = $t01797518079._1
586- let nf = $t01797518079._2
598+ let pmtA = $t01839518475._1
599+ let pmtB = $t01839518475._2
600+ let $t01847818582 = replenishByType(pType, pool, NO_FEE, pmtA, AId, pmtB, BId, balA, balB, shareId)
601+ let stakedAmount = $t01847818582._1
602+ let nf = $t01847818582._2
587603 let curPoolInterestLoan = valueOrElse(getInteger(this, (pool + kPoolInterestLoan)), 0)
588604 let curPoolInterestNoLoan = valueOrElse(getInteger(this, (pool + kPoolInterestNoLoan)), 0)
589605 let totalShareAmount = getPoolTotalShare(pool)
599615 else 0
600616 let axlyFeeLoan = fraction(stakedLoan, getAxlyFee(pool, CAP_FEE_LOAN), FEE_SCALE6)
601617 let axlyFeeNoLoan = fraction(stakedNoLoan, getAxlyFee(pool, CAP_FEE_NO_LOAN), FEE_SCALE6)
602- ([IntegerEntry((pool + kPoolInterestLoan), newInterestLoan), IntegerEntry((pool + kPoolInterestNoLoan), newInterestNoLoan), IntegerEntry((pool + kPoolTotal), (((totalShareAmount + stakedAmount) - axlyFeeLoan) - axlyFeeNoLoan)), IntegerEntry((pool + kPoolTotalLoan), ((totalShareAmountWithLoan + stakedLoan) - axlyFeeLoan)), ScriptTransfer(moneyBox, (axlyFeeLoan + axlyFeeNoLoan), fromBase58String(shareId))] ++ getCursEntries(AId, BId, shareId))
618+ let axlyFee = unstakeLP(pool, pType, shareId, (axlyFeeLoan + axlyFeeNoLoan))
619+ if ((axlyFee == axlyFee))
620+ 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))
621+ else throw("Strict value is not equal to itself.")
603622 }
604623
605624
608627 let feeScale6 = 1000000
609628 let fee = getIntegerValue(poolAddr, kSFPoolFee)
610629 let amntGetNoFee = fraction(amountTokenToGet, feeScale6, (feeScale6 - fee))
611- let $t01990920197 = if ((assetTokenToGet == assetIdA))
630+ let $t02047220760 = if ((assetTokenToGet == assetIdA))
612631 then {
613632 let amountToPay = fraction(balA, amntGetNoFee, (balB - amntGetNoFee))
614633 $Tuple2(amountToPay, assetIdB)
617636 let amountToPay = fraction(balB, amntGetNoFee, (balA - amntGetNoFee))
618637 $Tuple2(amountToPay, assetIdA)
619638 }
620- let amountToPay = $t01990920197._1
621- let assetToPay = $t01990920197._2
639+ let amountToPay = $t02047220760._1
640+ let assetToPay = $t02047220760._2
622641 invoke(poolAddr, "callFunction", ["exchange", ["1"]], [AttachedPayment(assetIdFromStr(assetToPay), amountToPay)])
623642 }
624643
628647 let prFee = getIntegerValue(wxSwapContract, "%s__protocolFee")
629648 let pFee = getIntegerValue(wxSwapContract, "%s__poolFee")
630649 let feeScale = toBigInt(100000000)
631- let $t02067620984 = if ((assetTokenToGet == assetIdA))
650+ let $t02123921547 = if ((assetTokenToGet == assetIdA))
632651 then {
633652 let amountToPay = fraction(balA, amountTokenToGet, (balB - amountTokenToGet))
634653 $Tuple2(amountToPay, assetIdB)
637656 let amountToPay = fraction(balB, amountTokenToGet, (balA - amountTokenToGet))
638657 $Tuple2(amountToPay, assetIdA)
639658 }
640- let amountToPay = $t02067620984._1
641- let assetToPay = $t02067620984._2
659+ let amountToPay = $t02123921547._1
660+ let assetToPay = $t02123921547._2
642661 let amountToPayWithFee = toInt(fraction(toBigInt(amountToPay), feeScale, (feeScale - toBigInt((prFee + pFee)))))
643662 invoke(wxSwapContract, "swap", [1, assetTokenToGet, toString(this)], [AttachedPayment(assetIdFromStr(assetToPay), amountToPayWithFee)])
644663 }
652671 func withdrawAmountCalc (pool,userCanWithdraw,debt,borrowAsset) = {
653672 let poolAddr = Address(fromBase58String(pool))
654673 let pType = valueOrErrorMessage(getString(this, (kPool + pool)), "Unknown pool")
655- let $t02184921925 = getPoolData(poolAddr, pType)
656- let assetIdA = $t02184921925._1
657- let assetIdB = $t02184921925._2
658- let balA = $t02184921925._3
659- let balB = $t02184921925._4
660- let shareId = $t02184921925._5
674+ let $t02241222488 = getPoolData(poolAddr, pType)
675+ let assetIdA = $t02241222488._1
676+ let assetIdB = $t02241222488._2
677+ let balA = $t02241222488._3
678+ let balB = $t02241222488._4
679+ let shareId = $t02241222488._5
661680 let cBalABefore = accountBalance(assetIdFromStr(assetIdA))
662681 if ((cBalABefore == cBalABefore))
663682 then {
673692 then {
674693 let cBalAAfter = accountBalance(assetIdFromStr(assetIdA))
675694 let cBalBAfter = accountBalance(assetIdFromStr(assetIdB))
676- let $t02243722526 = $Tuple2((cBalAAfter - cBalABefore), (cBalBAfter - cBalBBefore))
677- let tokensAmountA = $t02243722526._1
678- let tokensAmountB = $t02243722526._2
679- let $t02252923225 = if ((debt > 0))
695+ let $t02300023089 = $Tuple2((cBalAAfter - cBalABefore), (cBalBAfter - cBalBBefore))
696+ let tokensAmountA = $t02300023089._1
697+ let tokensAmountB = $t02300023089._2
698+ let $t02309223788 = if ((debt > 0))
680699 then {
681700 let amountToGetEx = if (if ((borrowAsset == assetIdA))
682701 then (debt > tokensAmountA)
699718 else throw("Strict value is not equal to itself.")
700719 }
701720 else $Tuple2(tokensAmountA, tokensAmountB)
702- let toUserAmountA = $t02252923225._1
703- let toUserAmountB = $t02252923225._2
721+ let toUserAmountA = $t02309223788._1
722+ let toUserAmountB = $t02309223788._2
704723 $Tuple7(toUserAmountA, assetIdA, toUserAmountB, assetIdB, cBalAAfter, cBalBAfter, shareId)
705724 }
706725 else throw("Strict value is not equal to itself.")
737756 else throw(($getType(@) + " couldn't be cast to Int"))
738757 }
739758 else 0
740- let $t02471624869 = withdrawAmountCalc(pool, userCanWithdraw, debt, borrowAsset)
741- if (($t02471624869 == $t02471624869))
759+ let $t02527925432 = withdrawAmountCalc(pool, userCanWithdraw, debt, borrowAsset)
760+ if (($t02527925432 == $t02527925432))
742761 then {
743- let shareId = $t02471624869._7
744- let cBalBAfter = $t02471624869._6
745- let cBalAAfter = $t02471624869._5
746- let assetIdB = $t02471624869._4
747- let toUserAmountB = $t02471624869._3
748- let assetIdA = $t02471624869._2
749- let toUserAmountA = $t02471624869._1
762+ let shareId = $t02527925432._7
763+ let cBalBAfter = $t02527925432._6
764+ let cBalAAfter = $t02527925432._5
765+ let assetIdB = $t02527925432._4
766+ let toUserAmountB = $t02527925432._3
767+ let assetIdA = $t02527925432._2
768+ let toUserAmountA = $t02527925432._1
750769 let closeDbtInv = if ((debt > 0))
751770 then invoke(getLendSrvAddr(), "repayFor", [((user + "_") + posId)], [AttachedPayment(assetIdFromStr(borrowAsset), debt)])
752771 else 0
775794 }
776795
777796
778-func unstakeLP (pool,pType,shareId,amount) = {
779- let $t02613126488 = if ((pType == SF_POOL))
780- then $Tuple3(getSFFarmingAddr(), "withdrawShareTokens", [pool, amount])
781- else if ((pType == WX_POOL))
782- then $Tuple3(getWXFarmingAddr(Address(fromBase58String(pool))), "unstake", [shareId, amount])
783- else throw("Wrong pool type")
784- let farmAddr = $t02613126488._1
785- let fName = $t02613126488._2
786- let params = $t02613126488._3
787- let inv = invoke(farmAddr, fName, params, nil)
788- if ((inv == inv))
789- then amount
790- else throw("Strict value is not equal to itself.")
791- }
792-
793-
794797 @Callable(i)
795798 func replenishEVALONLY (pool,leverage,borrowAssetId,pmtA,pmtB) = if (if ((100 > leverage))
796799 then true
798801 then throw("Leverage can't be <100 and >300")
799802 else {
800803 let pType = valueOrErrorMessage(getString(this, (kPool + pool)), "Pool is not inited")
801- let $t02688426974 = getPoolData(Address(fromBase58String(pool)), pType)
802- let AId = $t02688426974._1
803- let BId = $t02688426974._2
804- let balA = $t02688426974._3
805- let balB = $t02688426974._4
806- let shareId = $t02688426974._5
804+ let $t02694427034 = getPoolData(Address(fromBase58String(pool)), pType)
805+ let AId = $t02694427034._1
806+ let BId = $t02694427034._2
807+ let balA = $t02694427034._3
808+ let balB = $t02694427034._4
809+ let shareId = $t02694427034._5
807810 let borrowAmount = if ((leverage > 100))
808811 then {
809812 let dPriceA = ( let @ = invoke(priceOracleAddr, "getTWAP60", [AId, false], nil)
848851 then throw("Leverage can't be <100 and >300")
849852 else {
850853 let pType = valueOrErrorMessage(getString(this, (kPool + pool)), "Pool is not inited")
851- let $t02899029080 = getPoolData(Address(fromBase58String(pool)), pType)
852- let AId = $t02899029080._1
853- let BId = $t02899029080._2
854- let balA = $t02899029080._3
855- let balB = $t02899029080._4
856- let shareId = $t02899029080._5
857- let $t02908329720 = if ((size(i.payments) == 2))
854+ let $t02905029140 = getPoolData(Address(fromBase58String(pool)), pType)
855+ let AId = $t02905029140._1
856+ let BId = $t02905029140._2
857+ let balA = $t02905029140._3
858+ let balB = $t02905029140._4
859+ let shareId = $t02905029140._5
860+ let $t02914329780 = if ((size(i.payments) == 2))
858861 then if ((assetIdToStr(i.payments[0].assetId) != AId))
859862 then throw("Wrong payment asset A")
860863 else if ((assetIdToStr(i.payments[1].assetId) != BId))
867870 then $Tuple4(0, AId, i.payments[0].amount, BId)
868871 else throw("Wrong payment")
869872 else throw("One or two payments expected")
870- let pmtA = $t02908329720._1
871- let pmtAssetA = $t02908329720._2
872- let pmtB = $t02908329720._3
873- let pmtAssetB = $t02908329720._4
873+ let pmtA = $t02914329780._1
874+ let pmtAssetA = $t02914329780._2
875+ let pmtB = $t02914329780._3
876+ let pmtAssetB = $t02914329780._4
874877 let newPosNum = getNewUserPositionNumber(pool, toString(i.caller))
875878 if ((leverage > 100))
876879 then {
905908 else throw("Strict value is not equal to itself.")
906909 }
907910 else {
908- let $t03110331215 = replenishByType(pType, pool, NO_LOAN_FEE, pmtA, AId, pmtB, BId, balA, balB, shareId)
909- let userStaked = $t03110331215._1
910- let axlyFee = $t03110331215._2
911+ let $t03116331275 = replenishByType(pType, pool, NO_LOAN_FEE, pmtA, AId, pmtB, BId, balA, balB, shareId)
912+ let userStaked = $t03116331275._1
913+ let axlyFee = $t03116331275._2
911914 (replenishEntries(pool, toString(i.caller), userStaked, axlyFee, newPosNum, shareId, pType, false) ++ getCursEntries(AId, BId, shareId))
912915 }
913916 }
916919
917920 @Callable(i)
918921 func replenishFromLand (requestId) = {
919- let $t03142631530 = parseRequest(requestId)
920- let user = $t03142631530._1
921- let pool = $t03142631530._2
922- let pmtA = $t03142631530._3
923- let AId = $t03142631530._4
924- let pmtB = $t03142631530._5
925- let BId = $t03142631530._6
926- let balA = $t03142631530._7
927- let balB = $t03142631530._8
928- let shareId = $t03142631530._9
929- let bwAsset = $t03142631530._10
930- let bwAmount = $t03142631530._11
922+ let $t03148631590 = parseRequest(requestId)
923+ let user = $t03148631590._1
924+ let pool = $t03148631590._2
925+ let pmtA = $t03148631590._3
926+ let AId = $t03148631590._4
927+ let pmtB = $t03148631590._5
928+ let BId = $t03148631590._6
929+ let balA = $t03148631590._7
930+ let balB = $t03148631590._8
931+ let shareId = $t03148631590._9
932+ let bwAsset = $t03148631590._10
933+ let bwAmount = $t03148631590._11
931934 if ((size(i.payments) != 1))
932935 then throw("Wrong payment size")
933936 else if (if ((assetIdToStr(i.payments[0].assetId) != bwAsset))
935938 else (i.payments[0].amount != bwAmount))
936939 then throw("Wrong payment")
937940 else {
938- let $t03172031844 = if ((AId == bwAsset))
941+ let $t03178031904 = if ((AId == bwAsset))
939942 then $Tuple2((pmtA + i.payments[0].amount), pmtB)
940943 else $Tuple2(pmtA, (pmtB + i.payments[0].amount))
941- let pmtAllA = $t03172031844._1
942- let pmtAllB = $t03172031844._2
944+ let pmtAllA = $t03178031904._1
945+ let pmtAllB = $t03178031904._2
943946 let pType = valueOrErrorMessage(getString(this, (kPool + pool)), "Unknown pool")
944- let $t03192632035 = replenishByType(pType, pool, LOAN_FEE, pmtA, AId, pmtB, BId, balA, balB, shareId)
945- let userStaked = $t03192632035._1
946- let axlyFee = $t03192632035._2
947+ let $t03198632095 = replenishByType(pType, pool, LOAN_FEE, pmtA, AId, pmtB, BId, balA, balB, shareId)
948+ let userStaked = $t03198632095._1
949+ let axlyFee = $t03198632095._2
947950 let posNum = getNewUserPositionNumber(pool, toString(i.caller))
948951 let borrowEntries = [IntegerEntry((((((pool + "_") + user) + "_") + toString(posNum)) + kUserBorrowAmount), bwAmount), StringEntry((((((pool + "_") + user) + "_") + toString(posNum)) + kUserBorrowAssetId), bwAsset)]
949952 let entries = replenishEntries(pool, user, userStaked, axlyFee, posNum, shareId, pType, true)
10071010 func liquidate (user,posId,liquidateAmount) = {
10081011 let pool = valueOrErrorMessage(getString(this, (((user + "_") + posId) + kUserPositionPool)), "no position")
10091012 let pType = valueOrErrorMessage(getString(this, (kPool + pool)), "Pool is not inited")
1010- let $t03481834908 = getPoolData(Address(fromBase58String(pool)), pType)
1011- let AId = $t03481834908._1
1012- let BId = $t03481834908._2
1013- let balA = $t03481834908._3
1014- let balB = $t03481834908._4
1015- let shareId = $t03481834908._5
1013+ let $t03487834968 = getPoolData(Address(fromBase58String(pool)), pType)
1014+ let AId = $t03487834968._1
1015+ let BId = $t03487834968._2
1016+ let balA = $t03487834968._3
1017+ let balB = $t03487834968._4
1018+ let shareId = $t03487834968._5
10161019 let amount = unstakeLP(pool, pType, shareId, liquidateAmount)
10171020 let borrowAmount = getIntegerValue(this, (((((pool + "_") + user) + "_") + posId) + kUserBorrowAmount))
10181021 let borrowAsset = getStringValue(this, (((((pool + "_") + user) + "_") + posId) + kUserBorrowAssetId))
10261029
10271030 @Callable(i)
10281031 func capitalizeExKeeper (pool,type,tokenToId,amountToExchange,claim,amountsIn,addresses,assetsToReceive,estReceived,slippageTolerance,minReceived,options) = {
1029- let $t03624836442 = if (claim)
1032+ let $t03630836502 = if (claim)
10301033 then claimFarmed(type, pool)
10311034 else {
10321035 let claimedAsset = if ((type == SF_POOL))
10341037 else WXID
10351038 $Tuple2(amountToExchange, claimedAsset)
10361039 }
1037- let claimedAmount = $t03624836442._1
1038- let claimedAsset = $t03624836442._2
1040+ let claimedAmount = $t03630836502._1
1041+ let claimedAsset = $t03630836502._2
10391042 let exchangedAmount = exchangeKeeper(tokenToId, amountToExchange, claimedAsset, amountsIn, addresses, assetsToReceive, estReceived, slippageTolerance, minReceived, options)
10401043 let change = (claimedAmount - amountToExchange)
10411044 let changeEntry = if ((change > 0))
10481051
10491052 @Callable(i)
10501053 func capitalizeExPuzzle (pool,type,tokenToId,amountToExchange,claim,routesStr,minToReceive,options) = {
1051- let $t03709937293 = if (claim)
1054+ let $t03715937353 = if (claim)
10521055 then claimFarmed(type, pool)
10531056 else {
10541057 let claimedAsset = if ((type == SF_POOL))
10561059 else WXID
10571060 $Tuple2(amountToExchange, claimedAsset)
10581061 }
1059- let claimedAmount = $t03709937293._1
1060- let claimedAsset = $t03709937293._2
1062+ let claimedAmount = $t03715937353._1
1063+ let claimedAsset = $t03715937353._2
10611064 let exchangedAmount = exchangePuzzle(tokenToId, amountToExchange, claimedAsset, routesStr, minToReceive, options)
10621065 let change = (claimedAmount - amountToExchange)
10631066 let changeEntry = if ((change > 0))
10701073
10711074 @Callable(i)
10721075 func capitalizeExSwopFi (pool,type,tokenToId,amountToExchange,claim,exchangers,exchangersType,args1,args2,routingAssetsKeys,minAmountToReceive,options) = {
1073- let $t03801638210 = if (claim)
1076+ let $t03807638270 = if (claim)
10741077 then claimFarmed(type, pool)
10751078 else {
10761079 let claimedAsset = if ((type == SF_POOL))
10781081 else WXID
10791082 $Tuple2(amountToExchange, claimedAsset)
10801083 }
1081- let claimedAmount = $t03801638210._1
1082- let claimedAsset = $t03801638210._2
1084+ let claimedAmount = $t03807638270._1
1085+ let claimedAsset = $t03807638270._2
10831086 let exchangedAmount = exchangeSwopFi(tokenToId, amountToExchange, claimedAsset, exchangers, exchangersType, args1, args2, routingAssetsKeys, minAmountToReceive, options)
10841087 let change = (claimedAmount - amountToExchange)
10851088 let changeEntry = if ((change > 0))
10961099 else false)
10971100 then throw("Wrong type")
10981101 else {
1099- let $t03890338997 = getPoolData(Address(fromBase58String(poolAddr)), type)
1100- let aId = $t03890338997._1
1101- let bId = $t03890338997._2
1102- let aBal = $t03890338997._3
1103- let bBal = $t03890338997._4
1104- let shareId = $t03890338997._5
1102+ let $t03896339057 = getPoolData(Address(fromBase58String(poolAddr)), type)
1103+ let aId = $t03896339057._1
1104+ let bId = $t03896339057._2
1105+ let aBal = $t03896339057._3
1106+ let bBal = $t03896339057._4
1107+ let shareId = $t03896339057._5
11051108 [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)]
11061109 }
11071110
11101113 @Callable(i)
11111114 func capitalizeTest (pool,pType,tokenId,tokenAmount) = {
11121115 let poolAddr = Address(fromBase58String(pool))
1113- let $t03979339872 = getPoolData(poolAddr, pType)
1114- let AId = $t03979339872._1
1115- let BId = $t03979339872._2
1116- let balA = $t03979339872._3
1117- let balB = $t03979339872._4
1118- let shareId = $t03979339872._5
1119- let $t03987539955 = if ((tokenId == AId))
1116+ let $t03985339932 = getPoolData(poolAddr, pType)
1117+ let AId = $t03985339932._1
1118+ let BId = $t03985339932._2
1119+ let balA = $t03985339932._3
1120+ let balB = $t03985339932._4
1121+ let shareId = $t03985339932._5
1122+ let $t03993540015 = if ((tokenId == AId))
11201123 then $Tuple2(tokenAmount, 0)
11211124 else $Tuple2(0, tokenAmount)
1122- let pmtA = $t03987539955._1
1123- let pmtB = $t03987539955._2
1124- let $t03995840062 = replenishByType(pType, pool, NO_FEE, pmtA, AId, pmtB, BId, balA, balB, shareId)
1125- let stakedAmount = $t03995840062._1
1126- let nf = $t03995840062._2
1125+ let pmtA = $t03993540015._1
1126+ let pmtB = $t03993540015._2
1127+ let $t04001840122 = replenishByType(pType, pool, NO_FEE, pmtA, AId, pmtB, BId, balA, balB, shareId)
1128+ let stakedAmount = $t04001840122._1
1129+ let nf = $t04001840122._2
11271130 let curPoolInterestLoan = valueOrElse(getInteger(this, (pool + kPoolInterestLoan)), 0)
11281131 let curPoolInterestNoLoan = valueOrElse(getInteger(this, (pool + kPoolInterestNoLoan)), 0)
11291132 let totalShareAmount = getPoolTotalShare(pool)
11391142 else 0
11401143 let axlyFeeLoan = fraction(stakedLoan, getAxlyFee(pool, CAP_FEE_LOAN), FEE_SCALE6)
11411144 let axlyFeeNoLoan = fraction(stakedNoLoan, getAxlyFee(pool, CAP_FEE_NO_LOAN), FEE_SCALE6)
1142- ([IntegerEntry((pool + kPoolInterestLoan), newInterestLoan), IntegerEntry((pool + kPoolInterestNoLoan), newInterestNoLoan), IntegerEntry((pool + kPoolTotal), (((totalShareAmount + stakedAmount) - axlyFeeLoan) - axlyFeeNoLoan)), IntegerEntry((pool + kPoolTotalLoan), ((totalShareAmountWithLoan + stakedLoan) - axlyFeeLoan)), ScriptTransfer(moneyBox, (axlyFeeLoan + axlyFeeNoLoan), fromBase58String(shareId))] ++ getCursEntries(AId, BId, shareId))
1145+ let axlyFee = unstakeLP(pool, pType, shareId, (axlyFeeLoan + axlyFeeNoLoan))
1146+ if ((axlyFee == axlyFee))
1147+ 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))
1148+ else throw("Strict value is not equal to itself.")
11431149 }
11441150
11451151
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 $t084268491 = getPoolData(poolAddr, pType)
288288 let aId = $t084268491._1
289289 let bId = $t084268491._2
290290 let aBalance = $t084268491._3
291291 let bBalance = $t084268491._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 replenishSwopFi (pool,feeType,pmtA,pmtAssetA,pmtB,pmtAssetB,balA,balB,shareId) = {
332332 let shareBalanceBefore = accountBalance(fromBase58String(shareId))
333333 if ((shareBalanceBefore == shareBalanceBefore))
334334 then {
335335 let poolAddr = Address(fromBase58String(pool))
336336 let ratioA = fraction(SCALE8, pmtA, balA)
337337 let ratioB = fraction(SCALE8, pmtB, balB)
338338 let $t0999610288 = if ((ratioB > ratioA))
339339 then {
340340 let pmt = fraction(balB, ratioA, SCALE8, CEILING)
341341 $Tuple4(pmtA, pmt, (pmtB - pmt), pmtAssetB)
342342 }
343343 else {
344344 let pmt = fraction(balA, ratioB, SCALE8, CEILING)
345345 $Tuple4(pmt, pmtB, (pmtA - pmt), pmtAssetA)
346346 }
347347 let pmtAmountA = $t0999610288._1
348348 let pmtAmountB = $t0999610288._2
349349 let change = $t0999610288._3
350350 let changeAssetId = $t0999610288._4
351351 let inv1 = if (if ((pmtAmountA > 0))
352352 then (pmtAmountB > 0)
353353 else false)
354354 then {
355355 let payments = [AttachedPayment(assetIdFromStr(pmtAssetA), pmtAmountA), AttachedPayment(assetIdFromStr(pmtAssetB), pmtAmountB)]
356356 invoke(poolAddr, "callFunction", ["replenishWithTwoTokens", ["false", "0"]], payments)
357357 }
358358 else 0
359359 if ((inv1 == inv1))
360360 then {
361361 let inv2 = if ((change > 0))
362362 then {
363363 let payments = [AttachedPayment(assetIdFromStr(changeAssetId), change)]
364364 let vars = ["0", "false", "0"]
365365 invoke(poolAddr, "callFunction", ["replenishWithOneToken", vars], payments)
366366 }
367367 else 0
368368 if ((inv2 == inv2))
369369 then {
370370 let shareBalanceAfter = accountBalance(fromBase58String(shareId))
371371 let totalStaked = (shareBalanceAfter - shareBalanceBefore)
372372 let axlyFeeAmount = fraction(totalStaked, getAxlyFee(pool, feeType), FEE_SCALE6)
373373 let userShareForStake = (totalStaked - axlyFeeAmount)
374374 if ((0 >= userShareForStake))
375375 then throw("amount of staked sharetokens must be > 0")
376376 else {
377377 let inv3 = invoke(getSFFarmingAddr(), "lockShareTokens", [pool, 0], [AttachedPayment(fromBase58String(shareId), userShareForStake)])
378378 if ((inv3 == inv3))
379379 then $Tuple2(userShareForStake, axlyFeeAmount)
380380 else throw("Strict value is not equal to itself.")
381381 }
382382 }
383383 else throw("Strict value is not equal to itself.")
384384 }
385385 else throw("Strict value is not equal to itself.")
386386 }
387387 else throw("Strict value is not equal to itself.")
388388 }
389389
390390
391391 func replenishWX (pool,feeType,pmtA,pmtAssetA,pmtB,pmtAssetB,shareId) = {
392392 let poolAddr = Address(fromBase58String(pool))
393393 let $t01173912588 = if (if ((pmtA > 0))
394394 then (pmtB > 0)
395395 else false)
396396 then {
397397 let evalPutInA = split({
398398 let @ = invoke(poolAddr, "evaluatePutByAmountAssetREADONLY", [pmtA], nil)
399399 if ($isInstanceOf(@, "String"))
400400 then @
401401 else throw(($getType(@) + " couldn't be cast to String"))
402402 }, "__")
403403 if ((evalPutInA == evalPutInA))
404404 then {
405405 let evalPutInB = split({
406406 let @ = invoke(poolAddr, "evaluatePutByPriceAssetREADONLY", [pmtB], nil)
407407 if ($isInstanceOf(@, "String"))
408408 then @
409409 else throw(($getType(@) + " couldn't be cast to String"))
410410 }, "__")
411411 if ((evalPutInB == evalPutInB))
412412 then {
413413 let lpInA = parseIntValue(evalPutInA[1])
414414 let lpInB = parseIntValue(evalPutInB[1])
415415 if ((lpInB > lpInA))
416416 then {
417417 let pmtInB = parseIntValue(evalPutInA[8])
418418 $Tuple4(pmtA, pmtInB, (pmtB - pmtInB), pmtAssetB)
419419 }
420420 else {
421421 let pmtInA = parseIntValue(evalPutInB[7])
422422 $Tuple4(pmtInA, pmtB, (pmtA - pmtInA), pmtAssetA)
423423 }
424424 }
425425 else throw("Strict value is not equal to itself.")
426426 }
427427 else throw("Strict value is not equal to itself.")
428428 }
429429 else if ((pmtA > 0))
430430 then $Tuple4(pmtA, pmtB, pmtA, pmtAssetA)
431431 else if ((pmtB > 0))
432432 then $Tuple4(pmtA, pmtB, pmtB, pmtAssetB)
433433 else throw("pmts must be > 0")
434434 let pmtAmountA = $t01173912588._1
435435 let pmtAmountB = $t01173912588._2
436436 let change = $t01173912588._3
437437 let changeAssetId = $t01173912588._4
438438 let shareBalanceBefore = accountBalance(fromBase58String(shareId))
439439 if ((shareBalanceBefore == shareBalanceBefore))
440440 then {
441441 let inv1 = if (if ((pmtAmountA > 0))
442442 then (pmtAmountB > 0)
443443 else false)
444444 then {
445445 let payments = [AttachedPayment(assetIdFromStr(pmtAssetA), pmtAmountA), AttachedPayment(assetIdFromStr(pmtAssetB), pmtAmountB)]
446446 invoke(poolAddr, "put", [1000000, false], payments)
447447 }
448448 else 0
449449 if ((inv1 == inv1))
450450 then {
451451 let inv2 = if ((change > 0))
452452 then {
453453 let payments = [AttachedPayment(assetIdFromStr(changeAssetId), change)]
454454 invoke(poolAddr, "putOneTkn", [0, false], payments)
455455 }
456456 else 0
457457 if ((inv2 == inv2))
458458 then {
459459 let shareBalanceAfter = accountBalance(fromBase58String(shareId))
460460 let totalStaked = (shareBalanceAfter - shareBalanceBefore)
461461 let axlyFeeAmount = fraction(totalStaked, getAxlyFee(pool, feeType), FEE_SCALE6)
462462 let userShareForStake = (totalStaked - axlyFeeAmount)
463463 if ((0 >= userShareForStake))
464464 then throw("amount of staked sharetokens must be > 0")
465465 else {
466466 let inv3 = invoke(getWXFarmingAddr(poolAddr), "stake", nil, [AttachedPayment(fromBase58String(shareId), userShareForStake)])
467467 if ((inv3 == inv3))
468468 then $Tuple2(userShareForStake, axlyFeeAmount)
469469 else throw("Strict value is not equal to itself.")
470470 }
471471 }
472472 else throw("Strict value is not equal to itself.")
473473 }
474474 else throw("Strict value is not equal to itself.")
475475 }
476476 else throw("Strict value is not equal to itself.")
477477 }
478478
479479
480480 func replenishByType (type,pool,feeType,pmtA,AId,pmtB,BId,balA,balB,shareId) = if ((type == SF_POOL))
481481 then replenishSwopFi(pool, feeType, pmtA, AId, pmtB, BId, balA, balB, shareId)
482482 else if ((type == WX_POOL))
483483 then replenishWX(pool, feeType, pmtA, AId, pmtB, BId, shareId)
484484 else throw("Wrong pool type")
485485
486486
487487 func replenishEntries (pool,user,stakedAmount,axlyFeeAmount,posNum,shareId,type,withLoan) = {
488488 let totalAmount = getPoolTotalShare(pool)
489489 let totalAmountLoan = getPoolTotalShareWithLoan(pool)
490490 let $t01460614844 = if (withLoan)
491491 then $Tuple2(getIntegerValue(this, (pool + kPoolInterestLoan)), (totalAmountLoan + stakedAmount))
492492 else $Tuple2(getIntegerValue(this, (pool + kPoolInterestNoLoan)), totalAmountLoan)
493493 let curPoolInterest = $t01460614844._1
494494 let totalStakedWithLoan = $t01460614844._2
495495 [IntegerEntry((pool + kPoolTotal), (totalAmount + stakedAmount)), IntegerEntry((pool + kPoolTotalLoan), (totalAmountLoan + stakedAmount)), 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))]
496496 }
497497
498498
499499 func claimFarmed (type,pool) = if ((type == SF_POOL))
500500 then {
501501 let balBefore = accountBalance(SWOPID)
502502 if ((balBefore == balBefore))
503503 then {
504504 let inv = invoke(getSFFarmingAddr(), "claim", [pool], nil)
505505 if ((inv == inv))
506506 then {
507507 let balAfter = accountBalance(SWOPID)
508508 $Tuple2((balAfter - balBefore), SWOPID)
509509 }
510510 else throw("Strict value is not equal to itself.")
511511 }
512512 else throw("Strict value is not equal to itself.")
513513 }
514514 else if ((type == WX_POOL))
515515 then {
516516 let balBefore = accountBalance(WXID)
517517 if ((balBefore == balBefore))
518518 then {
519519 let inv = invoke(getWXFarmingAddr(Address(fromBase58String(pool))), "claimWX", [pool], nil)
520520 if ((inv == inv))
521521 then {
522522 let balAfter = accountBalance(WXID)
523523 $Tuple2((balAfter - balBefore), WXID)
524524 }
525525 else throw("Strict value is not equal to itself.")
526526 }
527527 else throw("Strict value is not equal to itself.")
528528 }
529529 else throw("Wrong pool type")
530530
531531
532532 func exchangeKeeper (toToken,pmtAmount,pmtAsset,amountsIn,addresses,assetsToReceive,estReceived,slippageTolerance,minReceived,options) = {
533533 let tokenBalanceBefore = accountBalance(assetIdFromStr(toToken))
534534 if ((tokenBalanceBefore == tokenBalanceBefore))
535535 then {
536536 let inv = invoke(exContract, "swap", [amountsIn, addresses, assetsToReceive, estReceived, slippageTolerance, minReceived, options], [AttachedPayment(pmtAsset, pmtAmount)])
537537 if ((inv == inv))
538538 then (accountBalance(assetIdFromStr(toToken)) - tokenBalanceBefore)
539539 else throw("Strict value is not equal to itself.")
540540 }
541541 else throw("Strict value is not equal to itself.")
542542 }
543543
544544
545545 func exchangePuzzle (toToken,pmtAmount,pmtAsset,routesStr,minToReceive,options) = {
546546 let tokenBalanceBefore = accountBalance(assetIdFromStr(toToken))
547547 if ((tokenBalanceBefore == tokenBalanceBefore))
548548 then {
549549 let inv = invoke(exContract, "puzzleSwap", [routesStr, minToReceive, options], [AttachedPayment(pmtAsset, pmtAmount)])
550550 if ((inv == inv))
551551 then (accountBalance(assetIdFromStr(toToken)) - tokenBalanceBefore)
552552 else throw("Strict value is not equal to itself.")
553553 }
554554 else throw("Strict value is not equal to itself.")
555555 }
556556
557557
558558 func exchangeSwopFi (toToken,pmtAmount,pmtAsset,exchangers,exchangersType,args1,args2,routingAssetsKeys,minAmountToReceive,options) = {
559559 let tokenBalanceBefore = accountBalance(assetIdFromStr(toToken))
560560 if ((tokenBalanceBefore == tokenBalanceBefore))
561561 then {
562562 let inv = invoke(exContract, "swopfiSwap", [exchangers, exchangersType, args1, args2, routingAssetsKeys, minAmountToReceive, options], [AttachedPayment(pmtAsset, pmtAmount)])
563563 if ((inv == inv))
564564 then (accountBalance(assetIdFromStr(toToken)) - tokenBalanceBefore)
565565 else throw("Strict value is not equal to itself.")
566566 }
567567 else throw("Strict value is not equal to itself.")
568568 }
569569
570570
571+func unstakeLP (pool,pType,shareId,amount) = {
572+ let $t01773918096 = if ((pType == SF_POOL))
573+ then $Tuple3(getSFFarmingAddr(), "withdrawShareTokens", [pool, amount])
574+ else if ((pType == WX_POOL))
575+ then $Tuple3(getWXFarmingAddr(Address(fromBase58String(pool))), "unstake", [shareId, amount])
576+ else throw("Wrong pool type")
577+ let farmAddr = $t01773918096._1
578+ let fName = $t01773918096._2
579+ let params = $t01773918096._3
580+ let inv = invoke(farmAddr, fName, params, nil)
581+ if ((inv == inv))
582+ then amount
583+ else throw("Strict value is not equal to itself.")
584+ }
585+
586+
571587 func capitalize (pool,pType,tokenId,tokenAmount) = {
572588 let poolAddr = Address(fromBase58String(pool))
573- let $t01781017889 = getPoolData(poolAddr, pType)
574- let AId = $t01781017889._1
575- let BId = $t01781017889._2
576- let balA = $t01781017889._3
577- let balB = $t01781017889._4
578- let shareId = $t01781017889._5
579- let $t01789217972 = if ((tokenId == AId))
589+ let $t01831318392 = getPoolData(poolAddr, pType)
590+ let AId = $t01831318392._1
591+ let BId = $t01831318392._2
592+ let balA = $t01831318392._3
593+ let balB = $t01831318392._4
594+ let shareId = $t01831318392._5
595+ let $t01839518475 = if ((tokenId == AId))
580596 then $Tuple2(tokenAmount, 0)
581597 else $Tuple2(0, tokenAmount)
582- let pmtA = $t01789217972._1
583- let pmtB = $t01789217972._2
584- let $t01797518079 = replenishByType(pType, pool, NO_FEE, pmtA, AId, pmtB, BId, balA, balB, shareId)
585- let stakedAmount = $t01797518079._1
586- let nf = $t01797518079._2
598+ let pmtA = $t01839518475._1
599+ let pmtB = $t01839518475._2
600+ let $t01847818582 = replenishByType(pType, pool, NO_FEE, pmtA, AId, pmtB, BId, balA, balB, shareId)
601+ let stakedAmount = $t01847818582._1
602+ let nf = $t01847818582._2
587603 let curPoolInterestLoan = valueOrElse(getInteger(this, (pool + kPoolInterestLoan)), 0)
588604 let curPoolInterestNoLoan = valueOrElse(getInteger(this, (pool + kPoolInterestNoLoan)), 0)
589605 let totalShareAmount = getPoolTotalShare(pool)
590606 let totalShareAmountWithLoan = getPoolTotalShareWithLoan(pool)
591607 let loanPercent = fraction(totalShareAmountWithLoan, SCALE8, totalShareAmount)
592608 let stakedLoan = fraction(stakedAmount, loanPercent, SCALE8)
593609 let stakedNoLoan = (stakedAmount - stakedLoan)
594610 let newInterestLoan = if ((totalShareAmountWithLoan > 0))
595611 then (curPoolInterestLoan + fraction(stakedLoan, SCALE10, totalShareAmountWithLoan))
596612 else 0
597613 let newInterestNoLoan = if (((totalShareAmount - totalShareAmountWithLoan) > 0))
598614 then (curPoolInterestNoLoan + fraction(stakedNoLoan, SCALE10, (totalShareAmount - totalShareAmountWithLoan)))
599615 else 0
600616 let axlyFeeLoan = fraction(stakedLoan, getAxlyFee(pool, CAP_FEE_LOAN), FEE_SCALE6)
601617 let axlyFeeNoLoan = fraction(stakedNoLoan, getAxlyFee(pool, CAP_FEE_NO_LOAN), FEE_SCALE6)
602- ([IntegerEntry((pool + kPoolInterestLoan), newInterestLoan), IntegerEntry((pool + kPoolInterestNoLoan), newInterestNoLoan), IntegerEntry((pool + kPoolTotal), (((totalShareAmount + stakedAmount) - axlyFeeLoan) - axlyFeeNoLoan)), IntegerEntry((pool + kPoolTotalLoan), ((totalShareAmountWithLoan + stakedLoan) - axlyFeeLoan)), ScriptTransfer(moneyBox, (axlyFeeLoan + axlyFeeNoLoan), fromBase58String(shareId))] ++ getCursEntries(AId, BId, shareId))
618+ let axlyFee = unstakeLP(pool, pType, shareId, (axlyFeeLoan + axlyFeeNoLoan))
619+ if ((axlyFee == axlyFee))
620+ 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))
621+ else throw("Strict value is not equal to itself.")
603622 }
604623
605624
606625 func exchangeDirectlySF (pool,assetIdA,assetIdB,balA,balB,amountTokenToGet,assetTokenToGet) = {
607626 let poolAddr = Address(fromBase58String(pool))
608627 let feeScale6 = 1000000
609628 let fee = getIntegerValue(poolAddr, kSFPoolFee)
610629 let amntGetNoFee = fraction(amountTokenToGet, feeScale6, (feeScale6 - fee))
611- let $t01990920197 = if ((assetTokenToGet == assetIdA))
630+ let $t02047220760 = if ((assetTokenToGet == assetIdA))
612631 then {
613632 let amountToPay = fraction(balA, amntGetNoFee, (balB - amntGetNoFee))
614633 $Tuple2(amountToPay, assetIdB)
615634 }
616635 else {
617636 let amountToPay = fraction(balB, amntGetNoFee, (balA - amntGetNoFee))
618637 $Tuple2(amountToPay, assetIdA)
619638 }
620- let amountToPay = $t01990920197._1
621- let assetToPay = $t01990920197._2
639+ let amountToPay = $t02047220760._1
640+ let assetToPay = $t02047220760._2
622641 invoke(poolAddr, "callFunction", ["exchange", ["1"]], [AttachedPayment(assetIdFromStr(assetToPay), amountToPay)])
623642 }
624643
625644
626645 func exchangeDirectlyWX (pool,assetIdA,assetIdB,balA,balB,amountTokenToGet,assetTokenToGet) = {
627646 let poolAddr = Address(fromBase58String(pool))
628647 let prFee = getIntegerValue(wxSwapContract, "%s__protocolFee")
629648 let pFee = getIntegerValue(wxSwapContract, "%s__poolFee")
630649 let feeScale = toBigInt(100000000)
631- let $t02067620984 = if ((assetTokenToGet == assetIdA))
650+ let $t02123921547 = if ((assetTokenToGet == assetIdA))
632651 then {
633652 let amountToPay = fraction(balA, amountTokenToGet, (balB - amountTokenToGet))
634653 $Tuple2(amountToPay, assetIdB)
635654 }
636655 else {
637656 let amountToPay = fraction(balB, amountTokenToGet, (balA - amountTokenToGet))
638657 $Tuple2(amountToPay, assetIdA)
639658 }
640- let amountToPay = $t02067620984._1
641- let assetToPay = $t02067620984._2
659+ let amountToPay = $t02123921547._1
660+ let assetToPay = $t02123921547._2
642661 let amountToPayWithFee = toInt(fraction(toBigInt(amountToPay), feeScale, (feeScale - toBigInt((prFee + pFee)))))
643662 invoke(wxSwapContract, "swap", [1, assetTokenToGet, toString(this)], [AttachedPayment(assetIdFromStr(assetToPay), amountToPayWithFee)])
644663 }
645664
646665
647666 func exchangeDirectly (type,pool,assetIdA,assetIdB,balA,balB,amountTokenToGet,assetTokenToGet) = if ((type == SF_POOL))
648667 then exchangeDirectlySF(pool, assetIdA, assetIdB, balA, balB, amountTokenToGet, assetTokenToGet)
649668 else exchangeDirectlyWX(pool, assetIdA, assetIdB, balA, balB, amountTokenToGet, assetTokenToGet)
650669
651670
652671 func withdrawAmountCalc (pool,userCanWithdraw,debt,borrowAsset) = {
653672 let poolAddr = Address(fromBase58String(pool))
654673 let pType = valueOrErrorMessage(getString(this, (kPool + pool)), "Unknown pool")
655- let $t02184921925 = getPoolData(poolAddr, pType)
656- let assetIdA = $t02184921925._1
657- let assetIdB = $t02184921925._2
658- let balA = $t02184921925._3
659- let balB = $t02184921925._4
660- let shareId = $t02184921925._5
674+ let $t02241222488 = getPoolData(poolAddr, pType)
675+ let assetIdA = $t02241222488._1
676+ let assetIdB = $t02241222488._2
677+ let balA = $t02241222488._3
678+ let balB = $t02241222488._4
679+ let shareId = $t02241222488._5
661680 let cBalABefore = accountBalance(assetIdFromStr(assetIdA))
662681 if ((cBalABefore == cBalABefore))
663682 then {
664683 let cBalBBefore = accountBalance(assetIdFromStr(assetIdB))
665684 if ((cBalBBefore == cBalBBefore))
666685 then {
667686 let inv = if ((pType == SF_POOL))
668687 then invoke(poolAddr, "callFunction", ["withdraw", [toString(userCanWithdraw)]], nil)
669688 else if ((pType == WX_POOL))
670689 then invoke(poolAddr, "unstakeAndGet", [userCanWithdraw], nil)
671690 else throw("Wrong position type")
672691 if ((inv == inv))
673692 then {
674693 let cBalAAfter = accountBalance(assetIdFromStr(assetIdA))
675694 let cBalBAfter = accountBalance(assetIdFromStr(assetIdB))
676- let $t02243722526 = $Tuple2((cBalAAfter - cBalABefore), (cBalBAfter - cBalBBefore))
677- let tokensAmountA = $t02243722526._1
678- let tokensAmountB = $t02243722526._2
679- let $t02252923225 = if ((debt > 0))
695+ let $t02300023089 = $Tuple2((cBalAAfter - cBalABefore), (cBalBAfter - cBalBBefore))
696+ let tokensAmountA = $t02300023089._1
697+ let tokensAmountB = $t02300023089._2
698+ let $t02309223788 = if ((debt > 0))
680699 then {
681700 let amountToGetEx = if (if ((borrowAsset == assetIdA))
682701 then (debt > tokensAmountA)
683702 else false)
684703 then (debt - tokensAmountA)
685704 else if (if ((borrowAsset == assetIdB))
686705 then (debt > tokensAmountB)
687706 else false)
688707 then (debt - tokensAmountB)
689708 else 0
690709 let exInv = if ((amountToGetEx > 0))
691710 then exchangeDirectly(pType, pool, assetIdA, assetIdB, balA, balB, amountToGetEx, borrowAsset)
692711 else 0
693712 if ((exInv == exInv))
694713 then {
695714 let cBalAAfterRepay = accountBalance(assetIdFromStr(assetIdA))
696715 let cBalBAfterRepay = accountBalance(assetIdFromStr(assetIdB))
697716 $Tuple2((cBalAAfterRepay - cBalABefore), (cBalBAfterRepay - cBalBBefore))
698717 }
699718 else throw("Strict value is not equal to itself.")
700719 }
701720 else $Tuple2(tokensAmountA, tokensAmountB)
702- let toUserAmountA = $t02252923225._1
703- let toUserAmountB = $t02252923225._2
721+ let toUserAmountA = $t02309223788._1
722+ let toUserAmountB = $t02309223788._2
704723 $Tuple7(toUserAmountA, assetIdA, toUserAmountB, assetIdB, cBalAAfter, cBalBAfter, shareId)
705724 }
706725 else throw("Strict value is not equal to itself.")
707726 }
708727 else throw("Strict value is not equal to itself.")
709728 }
710729 else throw("Strict value is not equal to itself.")
711730 }
712731
713732
714733 func userCanWithdrawShareCalc (user,pool,posId,borrowed) = {
715734 let pAmount = valueOrErrorMessage(getInteger(this, (((((pool + "_") + user) + "_") + posId) + kUserPosition)), "Unknown position")
716735 let userInterest = getIntegerValue(this, (((((pool + "_") + user) + "_") + posId) + kUserPositionInterest))
717736 let poolInterest = if (borrowed)
718737 then getIntegerValue(this, (pool + kPoolInterestLoan))
719738 else getIntegerValue(this, (pool + kPoolInterestNoLoan))
720739 (pAmount + fraction(pAmount, (poolInterest - userInterest), SCALE10))
721740 }
722741
723742
724743 func withdrawToUser (user,pool,posId,stopLoss) = {
725744 let pAmount = valueOrErrorMessage(getInteger(this, (((((pool + "_") + user) + "_") + posId) + kUserPosition)), "Unknown position")
726745 let userInterest = getIntegerValue(this, (((((pool + "_") + user) + "_") + posId) + kUserPositionInterest))
727746 let borrowAmount = getIntegerValue(this, (((((pool + "_") + user) + "_") + posId) + kUserBorrowAmount))
728747 let userCanWithdraw = userCanWithdrawShareCalc(user, pool, posId, (borrowAmount > 0))
729748 let poolTotalShare = getPoolTotalShare(pool)
730749 let userAddr = Address(fromBase58String(user))
731750 let borrowAsset = getStringValue(this, (((((pool + "_") + user) + "_") + posId) + kUserBorrowAssetId))
732751 let debt = if ((borrowAmount > 0))
733752 then {
734753 let @ = invoke(getLendSrvAddr(), "getAssetDebt", [false, ((((pool + "_") + user) + "_") + posId), borrowAsset], nil)
735754 if ($isInstanceOf(@, "Int"))
736755 then @
737756 else throw(($getType(@) + " couldn't be cast to Int"))
738757 }
739758 else 0
740- let $t02471624869 = withdrawAmountCalc(pool, userCanWithdraw, debt, borrowAsset)
741- if (($t02471624869 == $t02471624869))
759+ let $t02527925432 = withdrawAmountCalc(pool, userCanWithdraw, debt, borrowAsset)
760+ if (($t02527925432 == $t02527925432))
742761 then {
743- let shareId = $t02471624869._7
744- let cBalBAfter = $t02471624869._6
745- let cBalAAfter = $t02471624869._5
746- let assetIdB = $t02471624869._4
747- let toUserAmountB = $t02471624869._3
748- let assetIdA = $t02471624869._2
749- let toUserAmountA = $t02471624869._1
762+ let shareId = $t02527925432._7
763+ let cBalBAfter = $t02527925432._6
764+ let cBalAAfter = $t02527925432._5
765+ let assetIdB = $t02527925432._4
766+ let toUserAmountB = $t02527925432._3
767+ let assetIdA = $t02527925432._2
768+ let toUserAmountA = $t02527925432._1
750769 let closeDbtInv = if ((debt > 0))
751770 then invoke(getLendSrvAddr(), "repayFor", [((user + "_") + posId)], [AttachedPayment(assetIdFromStr(borrowAsset), debt)])
752771 else 0
753772 if ((closeDbtInv == closeDbtInv))
754773 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))
755774 else throw("Strict value is not equal to itself.")
756775 }
757776 else throw("Strict value is not equal to itself.")
758777 }
759778
760779
761780 func parseRequest (requestId) = {
762781 let request = split(valueOrErrorMessage(getString(this, (requestId + kRequestId)), ("No request with id " + requestId)), ",")
763782 let user = request[0]
764783 let pool = request[1]
765784 let pmtA = parseIntValue(request[2])
766785 let AId = request[3]
767786 let pmtB = parseIntValue(request[4])
768787 let BId = request[5]
769788 let balA = parseIntValue(request[6])
770789 let balB = parseIntValue(request[7])
771790 let shareId = request[8]
772791 let bwAsset = request[9]
773792 let bwAmount = parseIntValue(request[10])
774793 $Tuple11(user, pool, pmtA, AId, pmtB, BId, balA, balB, shareId, bwAsset, bwAmount)
775794 }
776795
777796
778-func unstakeLP (pool,pType,shareId,amount) = {
779- let $t02613126488 = if ((pType == SF_POOL))
780- then $Tuple3(getSFFarmingAddr(), "withdrawShareTokens", [pool, amount])
781- else if ((pType == WX_POOL))
782- then $Tuple3(getWXFarmingAddr(Address(fromBase58String(pool))), "unstake", [shareId, amount])
783- else throw("Wrong pool type")
784- let farmAddr = $t02613126488._1
785- let fName = $t02613126488._2
786- let params = $t02613126488._3
787- let inv = invoke(farmAddr, fName, params, nil)
788- if ((inv == inv))
789- then amount
790- else throw("Strict value is not equal to itself.")
791- }
792-
793-
794797 @Callable(i)
795798 func replenishEVALONLY (pool,leverage,borrowAssetId,pmtA,pmtB) = if (if ((100 > leverage))
796799 then true
797800 else (leverage > 300))
798801 then throw("Leverage can't be <100 and >300")
799802 else {
800803 let pType = valueOrErrorMessage(getString(this, (kPool + pool)), "Pool is not inited")
801- let $t02688426974 = getPoolData(Address(fromBase58String(pool)), pType)
802- let AId = $t02688426974._1
803- let BId = $t02688426974._2
804- let balA = $t02688426974._3
805- let balB = $t02688426974._4
806- let shareId = $t02688426974._5
804+ let $t02694427034 = getPoolData(Address(fromBase58String(pool)), pType)
805+ let AId = $t02694427034._1
806+ let BId = $t02694427034._2
807+ let balA = $t02694427034._3
808+ let balB = $t02694427034._4
809+ let shareId = $t02694427034._5
807810 let borrowAmount = if ((leverage > 100))
808811 then {
809812 let dPriceA = ( let @ = invoke(priceOracleAddr, "getTWAP60", [AId, false], nil)
810813 if ($isInstanceOf(@, "(Int, Int)"))
811814 then @
812815 else throw(($getType(@) + " couldn't be cast to (Int, Int)")))._2
813816 let dPriceB = ( let @ = invoke(priceOracleAddr, "getTWAP60", [BId, false], nil)
814817 if ($isInstanceOf(@, "(Int, Int)"))
815818 then @
816819 else throw(($getType(@) + " couldn't be cast to (Int, Int)")))._2
817820 let paydInDollar = (fraction(dPriceA, pmtA, pow(10, 0, getAssetDecimals(AId), 0, 0, DOWN)) + fraction(dPriceB, pmtB, pow(10, 0, getAssetDecimals(BId), 0, 0, DOWN)))
818821 fraction(paydInDollar, (leverage - 100), 100)
819822 }
820823 else $Tuple2(replenishByType(pType, pool, NO_LOAN_FEE, pmtA, AId, pmtB, BId, balA, balB, shareId)._1, 0)
821824 nil
822825 }
823826
824827
825828
826829 @Callable(i)
827830 func getShareAssetPriceREADONLY (shareId) = {
828831 let sharePrices = getSharePrice([shareId])
829832 $Tuple2(nil, sharePrices[0])
830833 }
831834
832835
833836
834837 @Callable(i)
835838 func getUserPositionShareAmountREADONLY (user,posNum) = {
836839 let pool = valueOrErrorMessage(getString(this, (((user + "_") + posNum) + kUserPositionPool)), "Unknown position")
837840 let borrowAmount = getIntegerValue(this, (((((pool + "_") + user) + "_") + posNum) + kUserBorrowAmount))
838841 let userCanWithdraw = userCanWithdrawShareCalc(user, pool, posNum, (borrowAmount > 0))
839842 $Tuple2(nil, userCanWithdraw)
840843 }
841844
842845
843846
844847 @Callable(i)
845848 func replenish (pool,leverage,borrowAssetId) = if (if ((100 > leverage))
846849 then true
847850 else (leverage > 300))
848851 then throw("Leverage can't be <100 and >300")
849852 else {
850853 let pType = valueOrErrorMessage(getString(this, (kPool + pool)), "Pool is not inited")
851- let $t02899029080 = getPoolData(Address(fromBase58String(pool)), pType)
852- let AId = $t02899029080._1
853- let BId = $t02899029080._2
854- let balA = $t02899029080._3
855- let balB = $t02899029080._4
856- let shareId = $t02899029080._5
857- let $t02908329720 = if ((size(i.payments) == 2))
854+ let $t02905029140 = getPoolData(Address(fromBase58String(pool)), pType)
855+ let AId = $t02905029140._1
856+ let BId = $t02905029140._2
857+ let balA = $t02905029140._3
858+ let balB = $t02905029140._4
859+ let shareId = $t02905029140._5
860+ let $t02914329780 = if ((size(i.payments) == 2))
858861 then if ((assetIdToStr(i.payments[0].assetId) != AId))
859862 then throw("Wrong payment asset A")
860863 else if ((assetIdToStr(i.payments[1].assetId) != BId))
861864 then throw("Wrong payment asset B")
862865 else $Tuple4(i.payments[0].amount, AId, i.payments[1].amount, BId)
863866 else if ((size(i.payments) == 1))
864867 then if ((assetIdToStr(i.payments[0].assetId) == AId))
865868 then $Tuple4(i.payments[0].amount, AId, 0, BId)
866869 else if ((assetIdToStr(i.payments[0].assetId) == BId))
867870 then $Tuple4(0, AId, i.payments[0].amount, BId)
868871 else throw("Wrong payment")
869872 else throw("One or two payments expected")
870- let pmtA = $t02908329720._1
871- let pmtAssetA = $t02908329720._2
872- let pmtB = $t02908329720._3
873- let pmtAssetB = $t02908329720._4
873+ let pmtA = $t02914329780._1
874+ let pmtAssetA = $t02914329780._2
875+ let pmtB = $t02914329780._3
876+ let pmtAssetB = $t02914329780._4
874877 let newPosNum = getNewUserPositionNumber(pool, toString(i.caller))
875878 if ((leverage > 100))
876879 then {
877880 let dPriceA = ( let @ = invoke(priceOracleAddr, "getTWAP60", [pmtAssetA, false], nil)
878881 if ($isInstanceOf(@, "(Int, Int)"))
879882 then @
880883 else throw(($getType(@) + " couldn't be cast to (Int, Int)")))._2
881884 let dPriceB = ( let @ = invoke(priceOracleAddr, "getTWAP60", [pmtAssetB, false], nil)
882885 if ($isInstanceOf(@, "(Int, Int)"))
883886 then @
884887 else throw(($getType(@) + " couldn't be cast to (Int, Int)")))._2
885888 let paydInDollar = (fraction(dPriceA, pmtA, pow(10, 0, getAssetDecimals(pmtAssetA), 0, 0, DOWN)) + fraction(dPriceB, pmtB, pow(10, 0, getAssetDecimals(pmtAssetB), 0, 0, DOWN)))
886889 let borrowPrice = if ((borrowAssetId == AId))
887890 then dPriceA
888891 else dPriceB
889892 let borrowAmount = (fraction(paydInDollar, (leverage - 100), 100) / borrowPrice)
890893 let request = makeString([toString(i.caller), pool, toString(pmtA), pmtAssetA, toString(pmtB), pmtAssetB, toString(balA), toString(balB), shareId, borrowAssetId, toString(borrowAmount)], ",")
891894 let newRequestId = {
892895 let @ = invoke(this, "createNewRequest", [request], nil)
893896 if ($isInstanceOf(@, "Int"))
894897 then @
895898 else throw(($getType(@) + " couldn't be cast to Int"))
896899 }
897900 if ((newRequestId == newRequestId))
898901 then {
899902 let args = [((toString(i.caller) + "_") + toString(newPosNum)), shareId, borrowAssetId, borrowAmount, toString(this), "replenishFromLand", toString(valueOrErrorMessage(newRequestId, "Can't create new request"))]
900903 let inv = reentrantInvoke(getLendSrvAddr(), "flashPosition", args, nil)
901904 if ((inv == inv))
902905 then nil
903906 else throw("Strict value is not equal to itself.")
904907 }
905908 else throw("Strict value is not equal to itself.")
906909 }
907910 else {
908- let $t03110331215 = replenishByType(pType, pool, NO_LOAN_FEE, pmtA, AId, pmtB, BId, balA, balB, shareId)
909- let userStaked = $t03110331215._1
910- let axlyFee = $t03110331215._2
911+ let $t03116331275 = replenishByType(pType, pool, NO_LOAN_FEE, pmtA, AId, pmtB, BId, balA, balB, shareId)
912+ let userStaked = $t03116331275._1
913+ let axlyFee = $t03116331275._2
911914 (replenishEntries(pool, toString(i.caller), userStaked, axlyFee, newPosNum, shareId, pType, false) ++ getCursEntries(AId, BId, shareId))
912915 }
913916 }
914917
915918
916919
917920 @Callable(i)
918921 func replenishFromLand (requestId) = {
919- let $t03142631530 = parseRequest(requestId)
920- let user = $t03142631530._1
921- let pool = $t03142631530._2
922- let pmtA = $t03142631530._3
923- let AId = $t03142631530._4
924- let pmtB = $t03142631530._5
925- let BId = $t03142631530._6
926- let balA = $t03142631530._7
927- let balB = $t03142631530._8
928- let shareId = $t03142631530._9
929- let bwAsset = $t03142631530._10
930- let bwAmount = $t03142631530._11
922+ let $t03148631590 = parseRequest(requestId)
923+ let user = $t03148631590._1
924+ let pool = $t03148631590._2
925+ let pmtA = $t03148631590._3
926+ let AId = $t03148631590._4
927+ let pmtB = $t03148631590._5
928+ let BId = $t03148631590._6
929+ let balA = $t03148631590._7
930+ let balB = $t03148631590._8
931+ let shareId = $t03148631590._9
932+ let bwAsset = $t03148631590._10
933+ let bwAmount = $t03148631590._11
931934 if ((size(i.payments) != 1))
932935 then throw("Wrong payment size")
933936 else if (if ((assetIdToStr(i.payments[0].assetId) != bwAsset))
934937 then true
935938 else (i.payments[0].amount != bwAmount))
936939 then throw("Wrong payment")
937940 else {
938- let $t03172031844 = if ((AId == bwAsset))
941+ let $t03178031904 = if ((AId == bwAsset))
939942 then $Tuple2((pmtA + i.payments[0].amount), pmtB)
940943 else $Tuple2(pmtA, (pmtB + i.payments[0].amount))
941- let pmtAllA = $t03172031844._1
942- let pmtAllB = $t03172031844._2
944+ let pmtAllA = $t03178031904._1
945+ let pmtAllB = $t03178031904._2
943946 let pType = valueOrErrorMessage(getString(this, (kPool + pool)), "Unknown pool")
944- let $t03192632035 = replenishByType(pType, pool, LOAN_FEE, pmtA, AId, pmtB, BId, balA, balB, shareId)
945- let userStaked = $t03192632035._1
946- let axlyFee = $t03192632035._2
947+ let $t03198632095 = replenishByType(pType, pool, LOAN_FEE, pmtA, AId, pmtB, BId, balA, balB, shareId)
948+ let userStaked = $t03198632095._1
949+ let axlyFee = $t03198632095._2
947950 let posNum = getNewUserPositionNumber(pool, toString(i.caller))
948951 let borrowEntries = [IntegerEntry((((((pool + "_") + user) + "_") + toString(posNum)) + kUserBorrowAmount), bwAmount), StringEntry((((((pool + "_") + user) + "_") + toString(posNum)) + kUserBorrowAssetId), bwAsset)]
949952 let entries = replenishEntries(pool, user, userStaked, axlyFee, posNum, shareId, pType, true)
950953 $Tuple2((((entries ++ getCursEntries(AId, BId, shareId)) ++ borrowEntries) :+ DeleteEntry((requestId + kRequestId))), userStaked)
951954 }
952955 }
953956
954957
955958
956959 @Callable(i)
957960 func withdraw (pool,posId) = withdrawToUser(toString(i.caller), pool, toString(posId), false)
958961
959962
960963
961964 @Callable(i)
962965 func createUpdateStopLoss (posId,poolId,assetId,price) = {
963966 let tokenOraclePrice = ( let @ = invoke(priceOracleAddr, "getTWAP60", [assetId, false], nil)
964967 if ($isInstanceOf(@, "(Int, Int)"))
965968 then @
966969 else throw(($getType(@) + " couldn't be cast to (Int, Int)")))._1
967970 if (!(isDefined(getInteger(this, (((((poolId + "_") + toString(i.caller)) + "_") + toString(posId)) + kUserPosition)))))
968971 then throw("There are no user position")
969972 else if ((0 >= price))
970973 then throw("Price must be greater than 0")
971974 else if ((price > tokenOraclePrice))
972975 then throw("Price must be less than current token price")
973976 else [IntegerEntry((((((((toString(i.caller) + "_") + toString(posId)) + "_") + poolId) + "_") + assetId) + kUserStopLoss), price)]
974977 }
975978
976979
977980
978981 @Callable(i)
979982 func deleteStopLoss (posId,poolId,assetId) = if (!(isDefined(getInteger(this, (((((((toString(i.caller) + "_") + toString(posId)) + "_") + poolId) + "_") + assetId) + kUserStopLoss)))))
980983 then throw("No entry")
981984 else [DeleteEntry((((((((toString(i.caller) + "_") + toString(posId)) + "_") + poolId) + "_") + assetId) + kUserStopLoss))]
982985
983986
984987
985988 @Callable(i)
986989 func createNewRequest (params) = valueOrElse(isSelfCall(i), {
987990 let newRequestId = (valueOrElse(getInteger(this, kRequestIter), 0) + 1)
988991 $Tuple2([StringEntry((toString(newRequestId) + kRequestId), params), IntegerEntry(kRequestIter, newRequestId)], newRequestId)
989992 })
990993
991994
992995
993996 @Callable(i)
994997 func stopLoss (user,posId,pool,assetId) = {
995998 let tokenOraclePrice = ( let @ = invoke(priceOracleAddr, "getTWAP60", [assetId, false], nil)
996999 if ($isInstanceOf(@, "(Int, Int)"))
9971000 then @
9981001 else throw(($getType(@) + " couldn't be cast to (Int, Int)")))._1
9991002 if (!(isDefined(getInteger(this, (((((((user + "_") + toString(posId)) + "_") + pool) + "_") + assetId) + kUserStopLoss)))))
10001003 then throw("No entry")
10011004 else (withdrawToUser(toString(i.caller), pool, toString(posId), true) :+ DeleteEntry((((((((user + "_") + toString(posId)) + "_") + pool) + "_") + assetId) + kUserStopLoss)))
10021005 }
10031006
10041007
10051008
10061009 @Callable(i)
10071010 func liquidate (user,posId,liquidateAmount) = {
10081011 let pool = valueOrErrorMessage(getString(this, (((user + "_") + posId) + kUserPositionPool)), "no position")
10091012 let pType = valueOrErrorMessage(getString(this, (kPool + pool)), "Pool is not inited")
1010- let $t03481834908 = getPoolData(Address(fromBase58String(pool)), pType)
1011- let AId = $t03481834908._1
1012- let BId = $t03481834908._2
1013- let balA = $t03481834908._3
1014- let balB = $t03481834908._4
1015- let shareId = $t03481834908._5
1013+ let $t03487834968 = getPoolData(Address(fromBase58String(pool)), pType)
1014+ let AId = $t03487834968._1
1015+ let BId = $t03487834968._2
1016+ let balA = $t03487834968._3
1017+ let balB = $t03487834968._4
1018+ let shareId = $t03487834968._5
10161019 let amount = unstakeLP(pool, pType, shareId, liquidateAmount)
10171020 let borrowAmount = getIntegerValue(this, (((((pool + "_") + user) + "_") + posId) + kUserBorrowAmount))
10181021 let borrowAsset = getStringValue(this, (((((pool + "_") + user) + "_") + posId) + kUserBorrowAssetId))
10191022 let userCanWithdraw = userCanWithdrawShareCalc(user, pool, posId, (borrowAmount > 0))
10201023 if ((borrowAmount > 0))
10211024 then [IntegerEntry((((((pool + "_") + user) + "_") + posId) + kUserPositionInterest), getIntegerValue(this, (pool + kPoolInterestLoan))), IntegerEntry((pool + kPoolTotalLoan), (getPoolTotalShareWithLoan(pool) - liquidateAmount))]
10221025 else ([IntegerEntry((((((pool + "_") + user) + "_") + posId) + kUserPositionInterest), getIntegerValue(this, (pool + kPoolInterestNoLoan)))] ++ [IntegerEntry((pool + kPoolTotal), (getPoolTotalShare(pool) - liquidateAmount)), IntegerEntry((((((pool + "_") + user) + "_") + posId) + kUserPosition), (userCanWithdraw - liquidateAmount)), ScriptTransfer(i.caller, amount, fromBase58String(shareId))])
10231026 }
10241027
10251028
10261029
10271030 @Callable(i)
10281031 func capitalizeExKeeper (pool,type,tokenToId,amountToExchange,claim,amountsIn,addresses,assetsToReceive,estReceived,slippageTolerance,minReceived,options) = {
1029- let $t03624836442 = if (claim)
1032+ let $t03630836502 = if (claim)
10301033 then claimFarmed(type, pool)
10311034 else {
10321035 let claimedAsset = if ((type == SF_POOL))
10331036 then SWOPID
10341037 else WXID
10351038 $Tuple2(amountToExchange, claimedAsset)
10361039 }
1037- let claimedAmount = $t03624836442._1
1038- let claimedAsset = $t03624836442._2
1040+ let claimedAmount = $t03630836502._1
1041+ let claimedAsset = $t03630836502._2
10391042 let exchangedAmount = exchangeKeeper(tokenToId, amountToExchange, claimedAsset, amountsIn, addresses, assetsToReceive, estReceived, slippageTolerance, minReceived, options)
10401043 let change = (claimedAmount - amountToExchange)
10411044 let changeEntry = if ((change > 0))
10421045 then [IntegerEntry((pool + kPoolCapChange), (change + valueOrElse(getInteger(this, (pool + kPoolCapChange)), 0)))]
10431046 else nil
10441047 (capitalize(pool, type, tokenToId, exchangedAmount) ++ changeEntry)
10451048 }
10461049
10471050
10481051
10491052 @Callable(i)
10501053 func capitalizeExPuzzle (pool,type,tokenToId,amountToExchange,claim,routesStr,minToReceive,options) = {
1051- let $t03709937293 = if (claim)
1054+ let $t03715937353 = if (claim)
10521055 then claimFarmed(type, pool)
10531056 else {
10541057 let claimedAsset = if ((type == SF_POOL))
10551058 then SWOPID
10561059 else WXID
10571060 $Tuple2(amountToExchange, claimedAsset)
10581061 }
1059- let claimedAmount = $t03709937293._1
1060- let claimedAsset = $t03709937293._2
1062+ let claimedAmount = $t03715937353._1
1063+ let claimedAsset = $t03715937353._2
10611064 let exchangedAmount = exchangePuzzle(tokenToId, amountToExchange, claimedAsset, routesStr, minToReceive, options)
10621065 let change = (claimedAmount - amountToExchange)
10631066 let changeEntry = if ((change > 0))
10641067 then [IntegerEntry((pool + kPoolCapChange), (change + valueOrElse(getInteger(this, (pool + kPoolCapChange)), 0)))]
10651068 else nil
10661069 (capitalize(pool, type, tokenToId, exchangedAmount) ++ changeEntry)
10671070 }
10681071
10691072
10701073
10711074 @Callable(i)
10721075 func capitalizeExSwopFi (pool,type,tokenToId,amountToExchange,claim,exchangers,exchangersType,args1,args2,routingAssetsKeys,minAmountToReceive,options) = {
1073- let $t03801638210 = if (claim)
1076+ let $t03807638270 = if (claim)
10741077 then claimFarmed(type, pool)
10751078 else {
10761079 let claimedAsset = if ((type == SF_POOL))
10771080 then SWOPID
10781081 else WXID
10791082 $Tuple2(amountToExchange, claimedAsset)
10801083 }
1081- let claimedAmount = $t03801638210._1
1082- let claimedAsset = $t03801638210._2
1084+ let claimedAmount = $t03807638270._1
1085+ let claimedAsset = $t03807638270._2
10831086 let exchangedAmount = exchangeSwopFi(tokenToId, amountToExchange, claimedAsset, exchangers, exchangersType, args1, args2, routingAssetsKeys, minAmountToReceive, options)
10841087 let change = (claimedAmount - amountToExchange)
10851088 let changeEntry = if ((change > 0))
10861089 then [IntegerEntry((pool + kPoolCapChange), (change + valueOrElse(getInteger(this, (pool + kPoolCapChange)), 0)))]
10871090 else nil
10881091 (capitalize(pool, type, tokenToId, exchangedAmount) ++ changeEntry)
10891092 }
10901093
10911094
10921095
10931096 @Callable(i)
10941097 func initNewPool (type,poolAddr,inFeeNoLoan,inFeeLoan,capFeeNoLoan,capFeeWithLoan,stoplossFeeNoLoan,stoplossFeeWithLoan) = if (if ((type != SF_POOL))
10951098 then (type != WX_POOL)
10961099 else false)
10971100 then throw("Wrong type")
10981101 else {
1099- let $t03890338997 = getPoolData(Address(fromBase58String(poolAddr)), type)
1100- let aId = $t03890338997._1
1101- let bId = $t03890338997._2
1102- let aBal = $t03890338997._3
1103- let bBal = $t03890338997._4
1104- let shareId = $t03890338997._5
1102+ let $t03896339057 = getPoolData(Address(fromBase58String(poolAddr)), type)
1103+ let aId = $t03896339057._1
1104+ let bId = $t03896339057._2
1105+ let aBal = $t03896339057._3
1106+ let bBal = $t03896339057._4
1107+ let shareId = $t03896339057._5
11051108 [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)]
11061109 }
11071110
11081111
11091112
11101113 @Callable(i)
11111114 func capitalizeTest (pool,pType,tokenId,tokenAmount) = {
11121115 let poolAddr = Address(fromBase58String(pool))
1113- let $t03979339872 = getPoolData(poolAddr, pType)
1114- let AId = $t03979339872._1
1115- let BId = $t03979339872._2
1116- let balA = $t03979339872._3
1117- let balB = $t03979339872._4
1118- let shareId = $t03979339872._5
1119- let $t03987539955 = if ((tokenId == AId))
1116+ let $t03985339932 = getPoolData(poolAddr, pType)
1117+ let AId = $t03985339932._1
1118+ let BId = $t03985339932._2
1119+ let balA = $t03985339932._3
1120+ let balB = $t03985339932._4
1121+ let shareId = $t03985339932._5
1122+ let $t03993540015 = if ((tokenId == AId))
11201123 then $Tuple2(tokenAmount, 0)
11211124 else $Tuple2(0, tokenAmount)
1122- let pmtA = $t03987539955._1
1123- let pmtB = $t03987539955._2
1124- let $t03995840062 = replenishByType(pType, pool, NO_FEE, pmtA, AId, pmtB, BId, balA, balB, shareId)
1125- let stakedAmount = $t03995840062._1
1126- let nf = $t03995840062._2
1125+ let pmtA = $t03993540015._1
1126+ let pmtB = $t03993540015._2
1127+ let $t04001840122 = replenishByType(pType, pool, NO_FEE, pmtA, AId, pmtB, BId, balA, balB, shareId)
1128+ let stakedAmount = $t04001840122._1
1129+ let nf = $t04001840122._2
11271130 let curPoolInterestLoan = valueOrElse(getInteger(this, (pool + kPoolInterestLoan)), 0)
11281131 let curPoolInterestNoLoan = valueOrElse(getInteger(this, (pool + kPoolInterestNoLoan)), 0)
11291132 let totalShareAmount = getPoolTotalShare(pool)
11301133 let totalShareAmountWithLoan = getPoolTotalShareWithLoan(pool)
11311134 let loanPercent = fraction(totalShareAmountWithLoan, SCALE8, totalShareAmount)
11321135 let stakedLoan = fraction(stakedAmount, loanPercent, SCALE8)
11331136 let stakedNoLoan = (stakedAmount - stakedLoan)
11341137 let newInterestLoan = if ((totalShareAmountWithLoan > 0))
11351138 then (curPoolInterestLoan + fraction(stakedLoan, SCALE10, totalShareAmountWithLoan))
11361139 else 0
11371140 let newInterestNoLoan = if (((totalShareAmount - totalShareAmountWithLoan) > 0))
11381141 then (curPoolInterestNoLoan + fraction(stakedNoLoan, SCALE10, (totalShareAmount - totalShareAmountWithLoan)))
11391142 else 0
11401143 let axlyFeeLoan = fraction(stakedLoan, getAxlyFee(pool, CAP_FEE_LOAN), FEE_SCALE6)
11411144 let axlyFeeNoLoan = fraction(stakedNoLoan, getAxlyFee(pool, CAP_FEE_NO_LOAN), FEE_SCALE6)
1142- ([IntegerEntry((pool + kPoolInterestLoan), newInterestLoan), IntegerEntry((pool + kPoolInterestNoLoan), newInterestNoLoan), IntegerEntry((pool + kPoolTotal), (((totalShareAmount + stakedAmount) - axlyFeeLoan) - axlyFeeNoLoan)), IntegerEntry((pool + kPoolTotalLoan), ((totalShareAmountWithLoan + stakedLoan) - axlyFeeLoan)), ScriptTransfer(moneyBox, (axlyFeeLoan + axlyFeeNoLoan), fromBase58String(shareId))] ++ getCursEntries(AId, BId, shareId))
1145+ let axlyFee = unstakeLP(pool, pType, shareId, (axlyFeeLoan + axlyFeeNoLoan))
1146+ if ((axlyFee == axlyFee))
1147+ 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))
1148+ else throw("Strict value is not equal to itself.")
11431149 }
11441150
11451151
11461152
11471153 @Callable(i)
11481154 func claimFarmedTest (type,pool) = if ((type == SF_POOL))
11491155 then {
11501156 let balBefore = accountBalance(SWOPID)
11511157 if ((balBefore == balBefore))
11521158 then {
11531159 let inv = invoke(getSFFarmingAddr(), "claim", [pool], nil)
11541160 if ((inv == inv))
11551161 then {
11561162 let balAfter = accountBalance(SWOPID)
11571163 $Tuple2(nil, $Tuple2((balAfter - balBefore), SWOPID))
11581164 }
11591165 else throw("Strict value is not equal to itself.")
11601166 }
11611167 else throw("Strict value is not equal to itself.")
11621168 }
11631169 else if ((type == WX_POOL))
11641170 then {
11651171 let balBefore = accountBalance(WXID)
11661172 if ((balBefore == balBefore))
11671173 then {
11681174 let inv = invoke(getWXFarmingAddr(Address(fromBase58String(pool))), "claimWX", [pool], nil)
11691175 if ((inv == inv))
11701176 then {
11711177 let balAfter = accountBalance(WXID)
11721178 $Tuple2(nil, $Tuple2((balAfter - balBefore), WXID))
11731179 }
11741180 else throw("Strict value is not equal to itself.")
11751181 }
11761182 else throw("Strict value is not equal to itself.")
11771183 }
11781184 else throw("Wrong pool type")
11791185
11801186
11811187 @Verifier(tx)
11821188 func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
11831189

github/deemru/w8io/026f985 
165.56 ms