tx · AzvBKi1Rn5LX2nwRd14t6BCsXiXzBeT5W435XQM3bkaV

3MvRWw2FPEimFCTGtK7qY9uAJbM7XJ4ZfJS:  -0.03000000 Waves

2023.04.19 20:30 [2541737] smart account 3MvRWw2FPEimFCTGtK7qY9uAJbM7XJ4ZfJS > SELF 0.00000000 Waves

{ "type": 13, "id": "AzvBKi1Rn5LX2nwRd14t6BCsXiXzBeT5W435XQM3bkaV", "fee": 3000000, "feeAssetId": null, "timestamp": 1681925423121, "version": 2, "chainId": 84, "sender": "3MvRWw2FPEimFCTGtK7qY9uAJbM7XJ4ZfJS", "senderPublicKey": "HP8sssVq1866F7CaPQJwgFrt6fsqhQjKwM84cL1wjD2a", "proofs": [ "4k714y4xfHfvCQmwXCDPw2v6XSMsWA7u7WnmAvFrqaZBcKEeiJHr25q9kMEBX7J9XocBCGy6WFemX5jGukybiUJQ" ], "script": "base64:BgJaCAISBQoDCAEIEgMKAQgSBQoDCAEIEgMKAQgSBAoCCAESAwoBCBIOCgwICAgBBBEYGBEBARgSCgoICAgIAQQIARgSDgoMCAgIAQQYGBgYGAEYEgcKBQgIAQEBRAAHU0ZfUE9PTAICU0YAB1dYX1BPT0wCAldYAAdDQVBfRkVFAgNjYXAACExPQU5fRkVFAgRsb2FuAAtOT19MT0FOX0ZFRQIGbm9Mb2FuAAZTQ0FMRTgAgMLXLwAHU0NBTEUxMACAyK+gJQAKRkVFX1NDQUxFNgDAhD0AFGtTRlBvb2xBQXNzZXRCYWxhbmNlAg9BX2Fzc2V0X2JhbGFuY2UAFGtTRlBvb2xCQXNzZXRCYWxhbmNlAg9CX2Fzc2V0X2JhbGFuY2UAD2tTRlBvb2xBQXNzZXRJZAIKQV9hc3NldF9pZAAPa1NGUG9vbEJBc3NldElkAgpCX2Fzc2V0X2lkAA5rU0ZQb29sU2hhcmVJZAIOc2hhcmVfYXNzZXRfaWQACmtTRlBvb2xGZWUCCmNvbW1pc3Npb24ADWtVc2VyUG9zaXRpb24CDl91c2VyX3B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QCsAgIFBWtQb29sBQhwb29sQWRkcgUEdHlwZQUDbmlsAQJ0eAEGdmVyaWZ5AAkA9AMDCAUCdHgJYm9keUJ5dGVzCQCRAwIIBQJ0eAZwcm9vZnMAAAgFAnR4D3NlbmRlclB1YmxpY0tleUPDgVI=", "height": 2541737, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 39TFbC5mtxkszWZnZGrJZdY5VTSohx4Hbh2QmrWm16oU Next: 3hoWt5UxKr2tE3ZN9Rdp28thqzX28PitvoW7kvgnDkXN Diff:
OldNewDifferences
682682 let $t02216522274 = replenishByType(pType, pool, LOAN_FEE, pmtA, AId, pmtB, BId, balA, balB, shareId)
683683 let userStaked = $t02216522274._1
684684 let axlyFee = $t02216522274._2
685- nil
685+ $Tuple2(nil, userStaked)
686686 }
687687 }
688688
695695 then throw("Leverage can't be <100 and >300")
696696 else {
697697 let pType = valueOrErrorMessage(getString(this, (kPool + pool)), "Pool is not inited")
698- let $t02258822678 = getPoolData(Address(fromBase58String(pool)), pType)
699- let AId = $t02258822678._1
700- let BId = $t02258822678._2
701- let balA = $t02258822678._3
702- let balB = $t02258822678._4
703- let shareId = $t02258822678._5
704- let $t02268123318 = if ((size(i.payments) == 2))
698+ let $t02260222692 = getPoolData(Address(fromBase58String(pool)), pType)
699+ let AId = $t02260222692._1
700+ let BId = $t02260222692._2
701+ let balA = $t02260222692._3
702+ let balB = $t02260222692._4
703+ let shareId = $t02260222692._5
704+ let $t02269523332 = if ((size(i.payments) == 2))
705705 then if ((assetIdToStr(i.payments[0].assetId) != AId))
706706 then throw("Wrong payment asset A")
707707 else if ((assetIdToStr(i.payments[1].assetId) != BId))
714714 then $Tuple4(0, AId, i.payments[0].amount, BId)
715715 else throw("Wrong payment")
716716 else throw("One or two payments expected")
717- let pmtA = $t02268123318._1
718- let pmtAssetA = $t02268123318._2
719- let pmtB = $t02268123318._3
720- let pmtAssetB = $t02268123318._4
717+ let pmtA = $t02269523332._1
718+ let pmtAssetA = $t02269523332._2
719+ let pmtB = $t02269523332._3
720+ let pmtAssetB = $t02269523332._4
721721 let newPosNum = getNewUserPositionNumber(pool, toString(i.caller))
722722 if ((leverage > 100))
723723 then {
749749 else throw("Strict value is not equal to itself.")
750750 }
751751 else {
752- let $t02461524727 = replenishByType(pType, pool, NO_LOAN_FEE, pmtA, AId, pmtB, BId, balA, balB, shareId)
753- let userStaked = $t02461524727._1
754- let axlyFee = $t02461524727._2
752+ let $t02462924741 = replenishByType(pType, pool, NO_LOAN_FEE, pmtA, AId, pmtB, BId, balA, balB, shareId)
753+ let userStaked = $t02462924741._1
754+ let axlyFee = $t02462924741._2
755755 replenishEntries(pool, toString(i.caller), userStaked, axlyFee, newPosNum, shareId, pType)
756756 }
757757 }
760760
761761 @Callable(i)
762762 func replenishFromLand (requestId) = {
763- let $t02488924993 = parseRequest(requestId)
764- let user = $t02488924993._1
765- let pool = $t02488924993._2
766- let pmtA = $t02488924993._3
767- let AId = $t02488924993._4
768- let pmtB = $t02488924993._5
769- let BId = $t02488924993._6
770- let balA = $t02488924993._7
771- let balB = $t02488924993._8
772- let shareId = $t02488924993._9
773- let bwAsset = $t02488924993._10
774- let bwAmount = $t02488924993._11
763+ let $t02490325007 = parseRequest(requestId)
764+ let user = $t02490325007._1
765+ let pool = $t02490325007._2
766+ let pmtA = $t02490325007._3
767+ let AId = $t02490325007._4
768+ let pmtB = $t02490325007._5
769+ let BId = $t02490325007._6
770+ let balA = $t02490325007._7
771+ let balB = $t02490325007._8
772+ let shareId = $t02490325007._9
773+ let bwAsset = $t02490325007._10
774+ let bwAmount = $t02490325007._11
775775 if ((size(i.payments) != 1))
776776 then throw("Wrong payment size")
777777 else if (if ((assetIdToStr(i.payments[0].assetId) != bwAsset))
779779 else (i.payments[0].amount != bwAmount))
780780 then throw("Wrong payment")
781781 else {
782- let $t02518325307 = if ((AId == bwAsset))
782+ let $t02519725321 = if ((AId == bwAsset))
783783 then $Tuple2((pmtA + i.payments[0].amount), pmtB)
784784 else $Tuple2(pmtA, (pmtB + i.payments[0].amount))
785- let pmtAllA = $t02518325307._1
786- let pmtAllB = $t02518325307._2
785+ let pmtAllA = $t02519725321._1
786+ let pmtAllB = $t02519725321._2
787787 let pType = valueOrErrorMessage(getString(this, (kPool + pool)), "Unknown pool")
788- let $t02538925498 = replenishByType(pType, pool, LOAN_FEE, pmtA, AId, pmtB, BId, balA, balB, shareId)
789- let userStaked = $t02538925498._1
790- let axlyFee = $t02538925498._2
788+ let $t02540325512 = replenishByType(pType, pool, LOAN_FEE, pmtA, AId, pmtB, BId, balA, balB, shareId)
789+ let userStaked = $t02540325512._1
790+ let axlyFee = $t02540325512._2
791791 let posNum = getNewUserPositionNumber(pool, toString(i.caller))
792792 let borrowEntries = [IntegerEntry((((((pool + "_") + user) + "_") + toString(posNum)) + kUserBorrowAmount), bwAmount), StringEntry((((((pool + "_") + user) + "_") + toString(posNum)) + kUserBorrowAssetId), bwAsset)]
793793 let entries = replenishEntries(pool, user, userStaked, axlyFee, posNum, shareId, pType)
816816 else throw(($getType(@) + " couldn't be cast to Int"))
817817 }
818818 else 0
819- let $t02694027060 = withdrawAmountCalc(pool, userCanWithdraw, debt, borrowAsset)
820- if (($t02694027060 == $t02694027060))
819+ let $t02695427074 = withdrawAmountCalc(pool, userCanWithdraw, debt, borrowAsset)
820+ if (($t02695427074 == $t02695427074))
821821 then {
822- let assetIdB = $t02694027060._4
823- let toUserAmountB = $t02694027060._3
824- let assetIdA = $t02694027060._2
825- let toUserAmountA = $t02694027060._1
822+ let assetIdB = $t02695427074._4
823+ let toUserAmountB = $t02695427074._3
824+ let assetIdA = $t02695427074._2
825+ let toUserAmountA = $t02695427074._1
826826 let closeDbtInv = if ((debt > 0))
827827 then invoke(getLendSrvAddr(), "repayFor", [((user + "_") + toString(posId))], [AttachedPayment(assetIdFromStr(borrowAsset), debt)])
828828 else 0
845845
846846 @Callable(i)
847847 func capitalizeExKeeper (pool,type,tokenToId,amountToExchange,claim,amountsIn,addresses,assetsToReceive,estReceived,slippageTolerance,minReceived,options) = {
848- let $t02835728551 = if (claim)
848+ let $t02837128565 = if (claim)
849849 then claimFarmed(type, pool)
850850 else {
851851 let claimedAsset = if ((type == SF_POOL))
853853 else WXID
854854 $Tuple2(amountToExchange, claimedAsset)
855855 }
856- let claimedAmount = $t02835728551._1
857- let claimedAsset = $t02835728551._2
856+ let claimedAmount = $t02837128565._1
857+ let claimedAsset = $t02837128565._2
858858 let exchangedAmount = exchangeKeeper(tokenToId, amountToExchange, claimedAsset, amountsIn, addresses, assetsToReceive, estReceived, slippageTolerance, minReceived, options)
859859 let change = (claimedAmount - amountToExchange)
860860 let changeEntry = if ((change > 0))
867867
868868 @Callable(i)
869869 func capitalizeExPazzle (pool,type,tokenToId,amountToExchange,claim,routesStr,minToReceive,options) = {
870- let $t02920729401 = if (claim)
870+ let $t02922129415 = if (claim)
871871 then claimFarmed(type, pool)
872872 else {
873873 let claimedAsset = if ((type == SF_POOL))
875875 else WXID
876876 $Tuple2(amountToExchange, claimedAsset)
877877 }
878- let claimedAmount = $t02920729401._1
879- let claimedAsset = $t02920729401._2
878+ let claimedAmount = $t02922129415._1
879+ let claimedAsset = $t02922129415._2
880880 let exchangedAmount = exchangePazzle(tokenToId, amountToExchange, claimedAsset, routesStr, minToReceive, options)
881881 let change = (claimedAmount - amountToExchange)
882882 let changeEntry = if ((change > 0))
889889
890890 @Callable(i)
891891 func capitalizeExSwopFi (pool,type,tokenToId,amountToExchange,claim,exchangers,exchangersType,args1,args2,routingAssetsKeys,minAmountToReceive,options) = {
892- let $t03012430318 = if (claim)
892+ let $t03013830332 = if (claim)
893893 then claimFarmed(type, pool)
894894 else {
895895 let claimedAsset = if ((type == SF_POOL))
897897 else WXID
898898 $Tuple2(amountToExchange, claimedAsset)
899899 }
900- let claimedAmount = $t03012430318._1
901- let claimedAsset = $t03012430318._2
900+ let claimedAmount = $t03013830332._1
901+ let claimedAsset = $t03013830332._2
902902 let exchangedAmount = exchangeSwopFi(tokenToId, amountToExchange, claimedAsset, exchangers, exchangersType, args1, args2, routingAssetsKeys, minAmountToReceive, options)
903903 let change = (claimedAmount - amountToExchange)
904904 let changeEntry = if ((change > 0))
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 = "cap"
99
1010 let LOAN_FEE = "loan"
1111
1212 let NO_LOAN_FEE = "noLoan"
1313
1414 let SCALE8 = 100000000
1515
1616 let SCALE10 = 10000000000
1717
1818 let FEE_SCALE6 = 1000000
1919
2020 let kSFPoolAAssetBalance = "A_asset_balance"
2121
2222 let kSFPoolBAssetBalance = "B_asset_balance"
2323
2424 let kSFPoolAAssetId = "A_asset_id"
2525
2626 let kSFPoolBAssetId = "B_asset_id"
2727
2828 let kSFPoolShareId = "share_asset_id"
2929
3030 let kSFPoolFee = "commission"
3131
3232 let kUserPosition = "_user_position"
3333
3434 let kUserBorrowAmount = "_user_position_borrow_amount"
3535
3636 let kUserBorrowAssetId = "_user_position_borrow_asset_id"
3737
3838 let kUserPositionNum = "_user_position_number"
3939
4040 let kUserPositionInterest = "_user_position_interest"
4141
4242 let kPoolTotal = "_pool_total"
4343
4444 let kPoolInterest = "_pool_interest"
4545
4646 let kAxlyInFeeWithoutLoan = "_axly_fee_without_loan"
4747
4848 let kAxlyInFeeWithLoan = "_axly_fee_with_loan"
4949
5050 let kAxlyCapFee = "_axly_fee_cap"
5151
5252 let kRequestId = "_request_id"
5353
5454 let kRequestIter = "requests_iter"
5555
5656 let kPool = "pool_"
5757
5858 let kPoolCapChange = "_pool_cap_change"
5959
6060 let kMoneyBox = "axly_money_box"
6161
6262 let kSFFarmingAddr = "swopfi_farming_addr"
6363
6464 let kLendService = "lend_service_addr"
6565
6666 let kPriceOracle = "price_oracle"
6767
6868 let kExContract = "exchange_contract"
6969
7070 let kWxSwapContract = "wx_swap_contract"
7171
7272 let moneyBox = Address(fromBase58String(valueOrErrorMessage(getString(this, kMoneyBox), "No axly moneyBox address")))
7373
7474 let exContract = Address(fromBase58String(valueOrErrorMessage(getString(this, kExContract), "No exchange contract address")))
7575
7676 let priceOracleAddr = Address(fromBase58String(valueOrErrorMessage(getString(this, kPriceOracle), "No price oracle address")))
7777
7878 let wxSwapContract = Address(fromBase58String(valueOrErrorMessage(getString(this, kWxSwapContract), "No wx swap address")))
7979
8080 let SWOPID = base58'4W19ndijcc2CsQa9HGW2dfXKTVXhnneWWttxXrtjPmEp'
8181
8282 let WXID = base58'EMAMLxDnv3xiz8RXg8Btj33jcEw3wLczL3JKYYmuubpc'
8383
8484 func isSelfCall (i) = if ((i.caller == this))
8585 then unit
8686 else throw("Only contract itself can call this function")
8787
8888
8989 func accountBalance (assetId) = match assetId {
9090 case id: ByteVector =>
9191 assetBalance(this, id)
9292 case waves: Unit =>
9393 wavesBalance(this).available
9494 case _ =>
9595 throw("Match error")
9696 }
9797
9898
9999 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"))
100100
101101
102102 func getWXPoolData (poolAddr) = {
103103 let cfg = {
104104 let @ = invoke(poolAddr, "getPoolConfigWrapperREADONLY", nil, nil)
105105 if ($isInstanceOf(@, "List[Any]"))
106106 then @
107107 else throw(($getType(@) + " couldn't be cast to List[Any]"))
108108 }
109109 if ((cfg == cfg))
110110 then $Tuple5(valueOrErrorMessage({
111111 let @ = cfg[4]
112112 if ($isInstanceOf(@, "String"))
113113 then @
114114 else unit
115115 }, "Can't get pool A asset id"), valueOrErrorMessage({
116116 let @ = cfg[5]
117117 if ($isInstanceOf(@, "String"))
118118 then @
119119 else unit
120120 }, "Can't get pool B asset id"), 0, 0, valueOrErrorMessage({
121121 let @ = cfg[3]
122122 if ($isInstanceOf(@, "String"))
123123 then @
124124 else unit
125125 }, "Can't get pool LP asset id"))
126126 else throw("Strict value is not equal to itself.")
127127 }
128128
129129
130130 func getPoolData (poolAddr,type) = if ((type == SF_POOL))
131131 then getSFPoolData(poolAddr)
132132 else if ((type == WX_POOL))
133133 then getWXPoolData(poolAddr)
134134 else throw("Wrong pool type")
135135
136136
137137 func getPoolTotalShare (pool) = valueOrElse(getInteger(this, (pool + kPoolTotal)), 0)
138138
139139
140140 func getNewUserPositionNumber (pool,user) = (valueOrElse(getInteger(this, (((pool + "_") + user) + kUserPositionNum)), 0) + 1)
141141
142142
143143 func getAxlyFee (pool,feeType) = if ((feeType == "cap"))
144144 then getIntegerValue(this, (pool + kAxlyCapFee))
145145 else if ((feeType == "loan"))
146146 then getIntegerValue(this, (pool + kAxlyInFeeWithLoan))
147147 else if ((feeType == "noLoan"))
148148 then getIntegerValue(this, (pool + kAxlyInFeeWithoutLoan))
149149 else throw("Wrong fee type")
150150
151151
152152 func getSFFarmingAddr () = Address(fromBase58String(valueOrErrorMessage(getString(this, kSFFarmingAddr), "Can't get swopfi farming addr")))
153153
154154
155155 func getWXFarmingAddr (poolAddr) = {
156156 let fContract = Address(fromBase58String(valueOrErrorMessage(getString(poolAddr, "%s__factoryContract"), "Can't get WX factory contract addr")))
157157 let factroyCfg = split(valueOrErrorMessage(getString(fContract, "%s__factoryConfig"), "Can't get WX factory cfg"), "__")
158158 Address(fromBase58String(factroyCfg[1]))
159159 }
160160
161161
162162 func getLendSrvAddr () = Address(fromBase58String(valueOrErrorMessage(getString(this, kLendService), "Can't get lend service addr")))
163163
164164
165165 func assetIdToStr (assetId) = match assetId {
166166 case id: ByteVector =>
167167 toBase58String(id)
168168 case waves: Unit =>
169169 "WAVES"
170170 case _ =>
171171 throw("Match error")
172172 }
173173
174174
175175 func assetIdFromStr (assetId) = if ((assetId == "WAVES"))
176176 then unit
177177 else fromBase58String(assetId)
178178
179179
180180 func getAssetDecimals (assetId) = if ((assetId == "WAVES"))
181181 then 8
182182 else match assetInfo(fromBase58String(assetId)) {
183183 case asset: Asset =>
184184 asset.decimals
185185 case _ =>
186186 throw("Can't find asset")
187187 }
188188
189189
190190 func replenishSwopFi (pool,feeType,pmtA,pmtAssetA,pmtB,pmtAssetB,balA,balB,shareId) = {
191191 let shareBalanceBefore = accountBalance(fromBase58String(shareId))
192192 if ((shareBalanceBefore == shareBalanceBefore))
193193 then {
194194 let poolAddr = Address(fromBase58String(pool))
195195 let ratioA = fraction(SCALE8, pmtA, balA)
196196 let ratioB = fraction(SCALE8, pmtB, balB)
197197 let $t063976689 = if ((ratioB > ratioA))
198198 then {
199199 let pmt = fraction(balB, ratioA, SCALE8, CEILING)
200200 $Tuple4(pmtA, pmt, (pmtB - pmt), pmtAssetB)
201201 }
202202 else {
203203 let pmt = fraction(balA, ratioB, SCALE8, CEILING)
204204 $Tuple4(pmt, pmtB, (pmtA - pmt), pmtAssetA)
205205 }
206206 let pmtAmountA = $t063976689._1
207207 let pmtAmountB = $t063976689._2
208208 let change = $t063976689._3
209209 let changeAssetId = $t063976689._4
210210 let inv1 = if (if ((pmtAmountA > 0))
211211 then (pmtAmountB > 0)
212212 else false)
213213 then {
214214 let payments = [AttachedPayment(assetIdFromStr(pmtAssetA), pmtAmountA), AttachedPayment(assetIdFromStr(pmtAssetB), pmtAmountB)]
215215 invoke(poolAddr, "callFunction", ["replenishWithTwoTokens", ["false", "0"]], payments)
216216 }
217217 else 0
218218 if ((inv1 == inv1))
219219 then {
220220 let inv2 = if ((change > 0))
221221 then {
222222 let payments = [AttachedPayment(assetIdFromStr(changeAssetId), change)]
223223 let vars = ["0", "false", "0"]
224224 invoke(poolAddr, "callFunction", ["replenishWithOneToken", vars], payments)
225225 }
226226 else 0
227227 if ((inv2 == inv2))
228228 then {
229229 let shareBalanceAfter = accountBalance(fromBase58String(shareId))
230230 let totalStaked = (shareBalanceAfter - shareBalanceBefore)
231231 let axlyFeeAmount = fraction(totalStaked, getAxlyFee(pool, feeType), FEE_SCALE6)
232232 let userShareForStake = (totalStaked - axlyFeeAmount)
233233 if ((0 >= userShareForStake))
234234 then throw("amount of staked sharetokens must be > 0")
235235 else {
236236 let inv3 = invoke(getSFFarmingAddr(), "lockShareTokens", [pool, 0], [AttachedPayment(fromBase58String(shareId), userShareForStake)])
237237 if ((inv3 == inv3))
238238 then $Tuple2(userShareForStake, axlyFeeAmount)
239239 else throw("Strict value is not equal to itself.")
240240 }
241241 }
242242 else throw("Strict value is not equal to itself.")
243243 }
244244 else throw("Strict value is not equal to itself.")
245245 }
246246 else throw("Strict value is not equal to itself.")
247247 }
248248
249249
250250 func replenishWX (pool,feeType,pmtA,pmtAssetA,pmtB,pmtAssetB,shareId) = {
251251 let poolAddr = Address(fromBase58String(pool))
252252 let $t081408989 = if (if ((pmtA > 0))
253253 then (pmtB > 0)
254254 else false)
255255 then {
256256 let evalPutInA = split({
257257 let @ = invoke(poolAddr, "evaluatePutByAmountAssetREADONLY", [pmtA], nil)
258258 if ($isInstanceOf(@, "String"))
259259 then @
260260 else throw(($getType(@) + " couldn't be cast to String"))
261261 }, "__")
262262 if ((evalPutInA == evalPutInA))
263263 then {
264264 let evalPutInB = split({
265265 let @ = invoke(poolAddr, "evaluatePutByPriceAssetREADONLY", [pmtB], nil)
266266 if ($isInstanceOf(@, "String"))
267267 then @
268268 else throw(($getType(@) + " couldn't be cast to String"))
269269 }, "__")
270270 if ((evalPutInB == evalPutInB))
271271 then {
272272 let lpInA = parseIntValue(evalPutInA[1])
273273 let lpInB = parseIntValue(evalPutInB[1])
274274 if ((lpInB > lpInA))
275275 then {
276276 let pmtInB = parseIntValue(evalPutInA[8])
277277 $Tuple4(pmtA, pmtInB, (pmtB - pmtInB), pmtAssetB)
278278 }
279279 else {
280280 let pmtInA = parseIntValue(evalPutInB[7])
281281 $Tuple4(pmtInA, pmtB, (pmtA - pmtInA), pmtAssetA)
282282 }
283283 }
284284 else throw("Strict value is not equal to itself.")
285285 }
286286 else throw("Strict value is not equal to itself.")
287287 }
288288 else if ((pmtA > 0))
289289 then $Tuple4(pmtA, pmtB, pmtA, pmtAssetA)
290290 else if ((pmtB > 0))
291291 then $Tuple4(pmtA, pmtB, pmtB, pmtAssetB)
292292 else throw("pmts must be > 0")
293293 let pmtAmountA = $t081408989._1
294294 let pmtAmountB = $t081408989._2
295295 let change = $t081408989._3
296296 let changeAssetId = $t081408989._4
297297 let shareBalanceBefore = accountBalance(fromBase58String(shareId))
298298 if ((shareBalanceBefore == shareBalanceBefore))
299299 then {
300300 let inv1 = if (if ((pmtAmountA > 0))
301301 then (pmtAmountB > 0)
302302 else false)
303303 then {
304304 let payments = [AttachedPayment(assetIdFromStr(pmtAssetA), pmtAmountA), AttachedPayment(assetIdFromStr(pmtAssetB), pmtAmountB)]
305305 invoke(poolAddr, "put", [1000000, false], payments)
306306 }
307307 else 0
308308 if ((inv1 == inv1))
309309 then {
310310 let inv2 = if ((change > 0))
311311 then {
312312 let payments = [AttachedPayment(assetIdFromStr(changeAssetId), change)]
313313 invoke(poolAddr, "putOneTkn", [0, false], payments)
314314 }
315315 else 0
316316 if ((inv2 == inv2))
317317 then {
318318 let shareBalanceAfter = accountBalance(fromBase58String(shareId))
319319 let totalStaked = (shareBalanceAfter - shareBalanceBefore)
320320 let axlyFeeAmount = fraction(totalStaked, getAxlyFee(pool, feeType), FEE_SCALE6)
321321 let userShareForStake = (totalStaked - axlyFeeAmount)
322322 if ((0 >= userShareForStake))
323323 then throw("amount of staked sharetokens must be > 0")
324324 else {
325325 let inv3 = invoke(getWXFarmingAddr(poolAddr), "stake", nil, [AttachedPayment(fromBase58String(shareId), userShareForStake)])
326326 if ((inv3 == inv3))
327327 then $Tuple2(userShareForStake, axlyFeeAmount)
328328 else throw("Strict value is not equal to itself.")
329329 }
330330 }
331331 else throw("Strict value is not equal to itself.")
332332 }
333333 else throw("Strict value is not equal to itself.")
334334 }
335335 else throw("Strict value is not equal to itself.")
336336 }
337337
338338
339339 func replenishByType (type,pool,feeType,pmtA,AId,pmtB,BId,balA,balB,shareId) = if ((type == SF_POOL))
340340 then replenishSwopFi(pool, LOAN_FEE, pmtA, AId, pmtB, BId, balA, balB, shareId)
341341 else if ((type == WX_POOL))
342342 then replenishWX(pool, LOAN_FEE, pmtA, AId, pmtB, BId, shareId)
343343 else throw("Wrong pool type")
344344
345345
346346 func replenishEntries (pool,user,stakedAmount,axlyFeeAmount,posNum,shareId,type) = {
347347 let totalAmount = getPoolTotalShare(pool)
348348 let curPoolInterest = getIntegerValue(this, (pool + kPoolInterest))
349349 [IntegerEntry((pool + kPoolTotal), (totalAmount + stakedAmount)), IntegerEntry((((((pool + "_") + user) + "_") + toString(posNum)) + kUserPosition), stakedAmount), IntegerEntry((((((pool + "_") + user) + "_") + toString(posNum)) + kUserPositionInterest), curPoolInterest), IntegerEntry((((pool + "_") + user) + kUserPositionNum), posNum), ScriptTransfer(moneyBox, axlyFeeAmount, fromBase58String(shareId))]
350350 }
351351
352352
353353 func claimFarmed (type,pool) = if ((type == SF_POOL))
354354 then {
355355 let balBefore = accountBalance(SWOPID)
356356 if ((balBefore == balBefore))
357357 then {
358358 let inv = invoke(getSFFarmingAddr(), "claim", [pool], nil)
359359 if ((inv == inv))
360360 then {
361361 let balAfter = accountBalance(SWOPID)
362362 $Tuple2((balAfter - balBefore), SWOPID)
363363 }
364364 else throw("Strict value is not equal to itself.")
365365 }
366366 else throw("Strict value is not equal to itself.")
367367 }
368368 else if ((type == WX_POOL))
369369 then {
370370 let balBefore = accountBalance(WXID)
371371 if ((balBefore == balBefore))
372372 then {
373373 let inv = invoke(getWXFarmingAddr(Address(fromBase58String(pool))), "claimWX", [pool], nil)
374374 if ((inv == inv))
375375 then {
376376 let balAfter = accountBalance(WXID)
377377 $Tuple2((balAfter - balBefore), WXID)
378378 }
379379 else throw("Strict value is not equal to itself.")
380380 }
381381 else throw("Strict value is not equal to itself.")
382382 }
383383 else throw("Wrong pool type")
384384
385385
386386 func exchangeKeeper (toToken,pmtAmount,pmtAsset,amountsIn,addresses,assetsToReceive,estReceived,slippageTolerance,minReceived,options) = {
387387 let tokenBalanceBefore = accountBalance(assetIdFromStr(toToken))
388388 if ((tokenBalanceBefore == tokenBalanceBefore))
389389 then {
390390 let inv = invoke(exContract, "swap", [amountsIn, addresses, assetsToReceive, estReceived, slippageTolerance, minReceived, options], [AttachedPayment(pmtAsset, pmtAmount)])
391391 if ((inv == inv))
392392 then (accountBalance(assetIdFromStr(toToken)) - tokenBalanceBefore)
393393 else throw("Strict value is not equal to itself.")
394394 }
395395 else throw("Strict value is not equal to itself.")
396396 }
397397
398398
399399 func exchangePazzle (toToken,pmtAmount,pmtAsset,routesStr,minToReceive,options) = {
400400 let tokenBalanceBefore = accountBalance(assetIdFromStr(toToken))
401401 if ((tokenBalanceBefore == tokenBalanceBefore))
402402 then {
403403 let inv = invoke(exContract, "puzzleSwap", [routesStr, minToReceive, options], [AttachedPayment(pmtAsset, pmtAmount)])
404404 if ((inv == inv))
405405 then (accountBalance(assetIdFromStr(toToken)) - tokenBalanceBefore)
406406 else throw("Strict value is not equal to itself.")
407407 }
408408 else throw("Strict value is not equal to itself.")
409409 }
410410
411411
412412 func exchangeSwopFi (toToken,pmtAmount,pmtAsset,exchangers,exchangersType,args1,args2,routingAssetsKeys,minAmountToReceive,options) = {
413413 let tokenBalanceBefore = accountBalance(assetIdFromStr(toToken))
414414 if ((tokenBalanceBefore == tokenBalanceBefore))
415415 then {
416416 let inv = invoke(exContract, "swopfiSwap", [exchangers, exchangersType, args1, args2, routingAssetsKeys, minAmountToReceive, options], [AttachedPayment(pmtAsset, pmtAmount)])
417417 if ((inv == inv))
418418 then (accountBalance(assetIdFromStr(toToken)) - tokenBalanceBefore)
419419 else throw("Strict value is not equal to itself.")
420420 }
421421 else throw("Strict value is not equal to itself.")
422422 }
423423
424424
425425 func capitalize (pool,pType,tokenId,tokenAmount) = {
426426 let poolAddr = Address(fromBase58String(pool))
427427 let $t01382413903 = getPoolData(poolAddr, pType)
428428 let AId = $t01382413903._1
429429 let BId = $t01382413903._2
430430 let balA = $t01382413903._3
431431 let balB = $t01382413903._4
432432 let shareId = $t01382413903._5
433433 let $t01390613986 = if ((tokenId == AId))
434434 then $Tuple2(tokenAmount, 0)
435435 else $Tuple2(0, tokenAmount)
436436 let pmtA = $t01390613986._1
437437 let pmtB = $t01390613986._2
438438 let $t01398914099 = replenishByType(pType, pool, CAP_FEE, pmtA, AId, pmtB, BId, balA, balB, shareId)
439439 let stakedAmount = $t01398914099._1
440440 let axlyFee = $t01398914099._2
441441 let curPoolInterest = valueOrElse(getInteger(this, (pool + kPoolInterest)), 0)
442442 let totalShareAmount = getPoolTotalShare(pool)
443443 let newInterest = (curPoolInterest + fraction(stakedAmount, SCALE10, totalShareAmount))
444444 [IntegerEntry((pool + kPoolInterest), newInterest), ScriptTransfer(moneyBox, axlyFee, fromBase58String(shareId))]
445445 }
446446
447447
448448 func exchangeDirectlySF (pool,assetIdA,assetIdB,balA,balB,amountTokenToGet,assetTokenToGet) = {
449449 let poolAddr = Address(fromBase58String(pool))
450450 let feeScale6 = 1000000
451451 let fee = getIntegerValue(poolAddr, kSFPoolFee)
452452 let amntGetNoFee = fraction(amountTokenToGet, feeScale6, (feeScale6 - fee))
453453 let $t01479215080 = if ((assetTokenToGet == assetIdA))
454454 then {
455455 let amountToPay = fraction(balA, amntGetNoFee, (balB - amntGetNoFee))
456456 $Tuple2(amountToPay, assetIdB)
457457 }
458458 else {
459459 let amountToPay = fraction(balB, amntGetNoFee, (balA - amntGetNoFee))
460460 $Tuple2(amountToPay, assetIdA)
461461 }
462462 let amountToPay = $t01479215080._1
463463 let assetToPay = $t01479215080._2
464464 invoke(poolAddr, "callFunction", ["exchange", ["1"]], [AttachedPayment(assetIdFromStr(assetToPay), amountToPay)])
465465 }
466466
467467
468468 func exchangeDirectlyWX (pool,assetIdA,assetIdB,balA,balB,amountTokenToGet,assetTokenToGet) = {
469469 let poolAddr = Address(fromBase58String(pool))
470470 let prFee = getIntegerValue(wxSwapContract, "%s__protocolFee")
471471 let pFee = getIntegerValue(wxSwapContract, "%s__poolFee")
472472 let feeScale = toBigInt(100000000)
473473 let $t01555915867 = if ((assetTokenToGet == assetIdA))
474474 then {
475475 let amountToPay = fraction(balA, amountTokenToGet, (balB - amountTokenToGet))
476476 $Tuple2(amountToPay, assetIdB)
477477 }
478478 else {
479479 let amountToPay = fraction(balB, amountTokenToGet, (balA - amountTokenToGet))
480480 $Tuple2(amountToPay, assetIdA)
481481 }
482482 let amountToPay = $t01555915867._1
483483 let assetToPay = $t01555915867._2
484484 let amountToPayWithFee = toInt(fraction(toBigInt(amountToPay), feeScale, (feeScale - toBigInt((prFee + pFee)))))
485485 invoke(wxSwapContract, "swap", [1, assetTokenToGet, toString(this)], [AttachedPayment(assetIdFromStr(assetToPay), amountToPayWithFee)])
486486 }
487487
488488
489489 func exchangeDirectly (type,pool,assetIdA,assetIdB,balA,balB,amountTokenToGet,assetTokenToGet) = if ((type == SF_POOL))
490490 then exchangeDirectlySF(pool, assetIdA, assetIdB, balA, balB, amountTokenToGet, assetTokenToGet)
491491 else exchangeDirectlyWX(pool, assetIdA, assetIdB, balA, balB, amountTokenToGet, assetTokenToGet)
492492
493493
494494 func withdrawAmountCalc (pool,userCanWithdraw,debt,borrowAsset) = {
495495 let poolAddr = Address(fromBase58String(pool))
496496 let pType = valueOrErrorMessage(getString(this, (kPool + pool)), "Unknown pool")
497497 let $t01673216799 = getPoolData(poolAddr, pType)
498498 let assetIdA = $t01673216799._1
499499 let assetIdB = $t01673216799._2
500500 let balA = $t01673216799._3
501501 let balB = $t01673216799._4
502502 let cBalABefore = accountBalance(assetIdFromStr(assetIdA))
503503 if ((cBalABefore == cBalABefore))
504504 then {
505505 let cBalBBefore = accountBalance(assetIdFromStr(assetIdB))
506506 if ((cBalBBefore == cBalBBefore))
507507 then {
508508 let inv = if ((pType == SF_POOL))
509509 then invoke(poolAddr, "callFunction", ["withdraw", [toString(userCanWithdraw)]], nil)
510510 else if ((pType == WX_POOL))
511511 then invoke(poolAddr, "unstakeAndGet", [userCanWithdraw], nil)
512512 else throw("Wrong position type")
513513 if ((inv == inv))
514514 then {
515515 let cBalAAfter = accountBalance(assetIdFromStr(assetIdA))
516516 let cBalBAfter = accountBalance(assetIdFromStr(assetIdB))
517517 let $t01731117400 = $Tuple2((cBalAAfter - cBalABefore), (cBalBAfter - cBalBBefore))
518518 let tokensAmountA = $t01731117400._1
519519 let tokensAmountB = $t01731117400._2
520520 let $t01740318099 = if ((debt > 0))
521521 then {
522522 let amountToGetEx = if (if ((borrowAsset == assetIdA))
523523 then (debt > tokensAmountA)
524524 else false)
525525 then (debt - tokensAmountA)
526526 else if (if ((borrowAsset == assetIdB))
527527 then (debt > tokensAmountB)
528528 else false)
529529 then (debt - tokensAmountB)
530530 else 0
531531 let exInv = if ((amountToGetEx > 0))
532532 then exchangeDirectly(pType, pool, assetIdA, assetIdB, balA, balB, amountToGetEx, borrowAsset)
533533 else 0
534534 if ((exInv == exInv))
535535 then {
536536 let cBalAAfterRepay = accountBalance(assetIdFromStr(assetIdA))
537537 let cBalBAfterRepay = accountBalance(assetIdFromStr(assetIdB))
538538 $Tuple2((cBalAAfterRepay - cBalABefore), (cBalBAfterRepay - cBalBBefore))
539539 }
540540 else throw("Strict value is not equal to itself.")
541541 }
542542 else $Tuple2(tokensAmountA, tokensAmountB)
543543 let toUserAmountA = $t01740318099._1
544544 let toUserAmountB = $t01740318099._2
545545 $Tuple4(toUserAmountA, assetIdA, toUserAmountB, assetIdB)
546546 }
547547 else throw("Strict value is not equal to itself.")
548548 }
549549 else throw("Strict value is not equal to itself.")
550550 }
551551 else throw("Strict value is not equal to itself.")
552552 }
553553
554554
555555 func parseRequest (requestId) = {
556556 let request = split(valueOrErrorMessage(getString(this, (requestId + kRequestId)), ("No request with id " + requestId)), ",")
557557 let user = request[0]
558558 let pool = request[1]
559559 let pmtA = parseIntValue(request[2])
560560 let AId = request[3]
561561 let pmtB = parseIntValue(request[4])
562562 let BId = request[5]
563563 let balA = parseIntValue(request[6])
564564 let balB = parseIntValue(request[7])
565565 let shareId = request[8]
566566 let bwAsset = request[9]
567567 let bwAmount = parseIntValue(request[10])
568568 $Tuple11(user, pool, pmtA, AId, pmtB, BId, balA, balB, shareId, bwAsset, bwAmount)
569569 }
570570
571571
572572 @Callable(i)
573573 func replenishREADONLY (pool,leverage,borrowAssetId) = if (if ((100 > leverage))
574574 then true
575575 else (leverage > 300))
576576 then throw("Leverage can't be <100 and >300")
577577 else {
578578 let pType = valueOrErrorMessage(getString(this, (kPool + pool)), "Pool is not inited")
579579 let $t01905319143 = getPoolData(Address(fromBase58String(pool)), pType)
580580 let AId = $t01905319143._1
581581 let BId = $t01905319143._2
582582 let balA = $t01905319143._3
583583 let balB = $t01905319143._4
584584 let shareId = $t01905319143._5
585585 let $t01914619783 = if ((size(i.payments) == 2))
586586 then if ((assetIdToStr(i.payments[0].assetId) != AId))
587587 then throw("Wrong payment asset A")
588588 else if ((assetIdToStr(i.payments[1].assetId) != BId))
589589 then throw("Wrong payment asset B")
590590 else $Tuple4(i.payments[0].amount, AId, i.payments[1].amount, BId)
591591 else if ((size(i.payments) == 1))
592592 then if ((assetIdToStr(i.payments[0].assetId) == AId))
593593 then $Tuple4(i.payments[0].amount, AId, 0, BId)
594594 else if ((assetIdToStr(i.payments[0].assetId) == BId))
595595 then $Tuple4(0, AId, i.payments[0].amount, BId)
596596 else throw("Wrong payment")
597597 else throw("One or two payments expected")
598598 let pmtA = $t01914619783._1
599599 let pmtAssetA = $t01914619783._2
600600 let pmtB = $t01914619783._3
601601 let pmtAssetB = $t01914619783._4
602602 let $t01978621297 = if ((leverage > 100))
603603 then {
604604 let dPriceA = ( let @ = invoke(priceOracleAddr, "getTWAP60", [pmtAssetA, false], nil)
605605 if ($isInstanceOf(@, "(Int, Int)"))
606606 then @
607607 else throw(($getType(@) + " couldn't be cast to (Int, Int)")))._1
608608 let dPriceB = ( let @ = invoke(priceOracleAddr, "getTWAP60", [pmtAssetB, false], nil)
609609 if ($isInstanceOf(@, "(Int, Int)"))
610610 then @
611611 else throw(($getType(@) + " couldn't be cast to (Int, Int)")))._1
612612 let paydInDollar = (fraction(dPriceA, pmtA, pow(10, 0, getAssetDecimals(pmtAssetA), 0, 0, DOWN)) + fraction(dPriceB, pmtB, pow(10, 0, getAssetDecimals(pmtAssetB), 0, 0, DOWN)))
613613 let borrowAmount = fraction(paydInDollar, (leverage - 100), 100)
614614 let request = makeString([toString(i.caller), pool, toString(pmtA), pmtAssetA, toString(pmtB), pmtAssetB, toString(balA), toString(balB), shareId, borrowAssetId, toString(borrowAmount), toString(1)], ",")
615615 let newRequestId = {
616616 let @ = invoke(this, "createNewRequest", [request], nil)
617617 if ($isInstanceOf(@, "Int"))
618618 then @
619619 else throw(($getType(@) + " couldn't be cast to Int"))
620620 }
621621 if ((newRequestId == newRequestId))
622622 then {
623623 let args = [((toString(i.caller) + "_") + toString(1)), shareId, borrowAssetId, borrowAmount, toString(this), "replenishFromLandReadOnly", toString(valueOrErrorMessage(newRequestId, "Can't create new request"))]
624624 let inv = reentrantInvoke(getLendSrvAddr(), "flashPosition", args, nil)
625625 if ((inv == inv))
626626 then if ((borrowAssetId == pmtAssetA))
627627 then $Tuple4((pmtA + borrowAmount), pmtB, LOAN_FEE, borrowAmount)
628628 else $Tuple4(pmtA, (pmtB + borrowAmount), LOAN_FEE, borrowAmount)
629629 else throw("Strict value is not equal to itself.")
630630 }
631631 else throw("Strict value is not equal to itself.")
632632 }
633633 else $Tuple4(pmtA, pmtB, NO_LOAN_FEE, 0)
634634 let paymentA = $t01978621297._1
635635 let paymentB = $t01978621297._2
636636 let feeType = $t01978621297._3
637637 let borrowAmount = $t01978621297._4
638638 let $t02130021412 = replenishByType(pType, pool, NO_LOAN_FEE, pmtA, AId, pmtB, BId, balA, balB, shareId)
639639 let userStaked = $t02130021412._1
640640 let axlyFee = $t02130021412._2
641641 let $t02141621541 = withdrawAmountCalc(pool, userStaked, borrowAmount, borrowAssetId)
642642 if (($t02141621541 == $t02141621541))
643643 then {
644644 let assetIdB = $t02141621541._4
645645 let toUserAmountB = $t02141621541._3
646646 let assetIdA = $t02141621541._2
647647 let toUserAmountA = $t02141621541._1
648648 $Tuple2(nil, [userStaked, toUserAmountA, toUserAmountB])
649649 }
650650 else throw("Strict value is not equal to itself.")
651651 }
652652
653653
654654
655655 @Callable(i)
656656 func replenishFromLandReadOnly (requestId) = {
657657 let $t02166521769 = parseRequest(requestId)
658658 let user = $t02166521769._1
659659 let pool = $t02166521769._2
660660 let pmtA = $t02166521769._3
661661 let AId = $t02166521769._4
662662 let pmtB = $t02166521769._5
663663 let BId = $t02166521769._6
664664 let balA = $t02166521769._7
665665 let balB = $t02166521769._8
666666 let shareId = $t02166521769._9
667667 let bwAsset = $t02166521769._10
668668 let bwAmount = $t02166521769._11
669669 if ((size(i.payments) != 1))
670670 then throw("Wrong payment size")
671671 else if (if ((assetIdToStr(i.payments[0].assetId) != bwAsset))
672672 then true
673673 else (i.payments[0].amount != bwAmount))
674674 then throw("Wrong payment")
675675 else {
676676 let $t02195922083 = if ((AId == bwAsset))
677677 then $Tuple2((pmtA + i.payments[0].amount), pmtB)
678678 else $Tuple2(pmtA, (pmtB + i.payments[0].amount))
679679 let pmtAllA = $t02195922083._1
680680 let pmtAllB = $t02195922083._2
681681 let pType = valueOrErrorMessage(getString(this, (kPool + pool)), "Unknown pool")
682682 let $t02216522274 = replenishByType(pType, pool, LOAN_FEE, pmtA, AId, pmtB, BId, balA, balB, shareId)
683683 let userStaked = $t02216522274._1
684684 let axlyFee = $t02216522274._2
685- nil
685+ $Tuple2(nil, userStaked)
686686 }
687687 }
688688
689689
690690
691691 @Callable(i)
692692 func replenish (pool,leverage,borrowAssetId) = if (if ((100 > leverage))
693693 then true
694694 else (leverage > 300))
695695 then throw("Leverage can't be <100 and >300")
696696 else {
697697 let pType = valueOrErrorMessage(getString(this, (kPool + pool)), "Pool is not inited")
698- let $t02258822678 = getPoolData(Address(fromBase58String(pool)), pType)
699- let AId = $t02258822678._1
700- let BId = $t02258822678._2
701- let balA = $t02258822678._3
702- let balB = $t02258822678._4
703- let shareId = $t02258822678._5
704- let $t02268123318 = if ((size(i.payments) == 2))
698+ let $t02260222692 = getPoolData(Address(fromBase58String(pool)), pType)
699+ let AId = $t02260222692._1
700+ let BId = $t02260222692._2
701+ let balA = $t02260222692._3
702+ let balB = $t02260222692._4
703+ let shareId = $t02260222692._5
704+ let $t02269523332 = if ((size(i.payments) == 2))
705705 then if ((assetIdToStr(i.payments[0].assetId) != AId))
706706 then throw("Wrong payment asset A")
707707 else if ((assetIdToStr(i.payments[1].assetId) != BId))
708708 then throw("Wrong payment asset B")
709709 else $Tuple4(i.payments[0].amount, AId, i.payments[1].amount, BId)
710710 else if ((size(i.payments) == 1))
711711 then if ((assetIdToStr(i.payments[0].assetId) == AId))
712712 then $Tuple4(i.payments[0].amount, AId, 0, BId)
713713 else if ((assetIdToStr(i.payments[0].assetId) == BId))
714714 then $Tuple4(0, AId, i.payments[0].amount, BId)
715715 else throw("Wrong payment")
716716 else throw("One or two payments expected")
717- let pmtA = $t02268123318._1
718- let pmtAssetA = $t02268123318._2
719- let pmtB = $t02268123318._3
720- let pmtAssetB = $t02268123318._4
717+ let pmtA = $t02269523332._1
718+ let pmtAssetA = $t02269523332._2
719+ let pmtB = $t02269523332._3
720+ let pmtAssetB = $t02269523332._4
721721 let newPosNum = getNewUserPositionNumber(pool, toString(i.caller))
722722 if ((leverage > 100))
723723 then {
724724 let dPriceA = ( let @ = invoke(priceOracleAddr, "getTWAP60", [pmtAssetA, false], nil)
725725 if ($isInstanceOf(@, "(Int, Int)"))
726726 then @
727727 else throw(($getType(@) + " couldn't be cast to (Int, Int)")))._1
728728 let dPriceB = ( let @ = invoke(priceOracleAddr, "getTWAP60", [pmtAssetB, false], nil)
729729 if ($isInstanceOf(@, "(Int, Int)"))
730730 then @
731731 else throw(($getType(@) + " couldn't be cast to (Int, Int)")))._1
732732 let paydInDollar = (fraction(dPriceA, pmtA, pow(10, 0, getAssetDecimals(pmtAssetA), 0, 0, DOWN)) + fraction(dPriceB, pmtB, pow(10, 0, getAssetDecimals(pmtAssetB), 0, 0, DOWN)))
733733 let borrowAmount = fraction(paydInDollar, (leverage - 100), 100)
734734 let request = makeString([toString(i.caller), pool, toString(pmtA), pmtAssetA, toString(pmtB), pmtAssetB, toString(balA), toString(balB), shareId, borrowAssetId, toString(borrowAmount)], ",")
735735 let newRequestId = {
736736 let @ = invoke(this, "createNewRequest", [request], nil)
737737 if ($isInstanceOf(@, "Int"))
738738 then @
739739 else throw(($getType(@) + " couldn't be cast to Int"))
740740 }
741741 if ((newRequestId == newRequestId))
742742 then {
743743 let args = [((toString(i.caller) + "_") + toString(newPosNum)), shareId, borrowAssetId, borrowAmount, toString(this), "replenishFromLand", toString(valueOrErrorMessage(newRequestId, "Can't create new request"))]
744744 let inv = reentrantInvoke(getLendSrvAddr(), "flashPosition", args, nil)
745745 if ((inv == inv))
746746 then nil
747747 else throw("Strict value is not equal to itself.")
748748 }
749749 else throw("Strict value is not equal to itself.")
750750 }
751751 else {
752- let $t02461524727 = replenishByType(pType, pool, NO_LOAN_FEE, pmtA, AId, pmtB, BId, balA, balB, shareId)
753- let userStaked = $t02461524727._1
754- let axlyFee = $t02461524727._2
752+ let $t02462924741 = replenishByType(pType, pool, NO_LOAN_FEE, pmtA, AId, pmtB, BId, balA, balB, shareId)
753+ let userStaked = $t02462924741._1
754+ let axlyFee = $t02462924741._2
755755 replenishEntries(pool, toString(i.caller), userStaked, axlyFee, newPosNum, shareId, pType)
756756 }
757757 }
758758
759759
760760
761761 @Callable(i)
762762 func replenishFromLand (requestId) = {
763- let $t02488924993 = parseRequest(requestId)
764- let user = $t02488924993._1
765- let pool = $t02488924993._2
766- let pmtA = $t02488924993._3
767- let AId = $t02488924993._4
768- let pmtB = $t02488924993._5
769- let BId = $t02488924993._6
770- let balA = $t02488924993._7
771- let balB = $t02488924993._8
772- let shareId = $t02488924993._9
773- let bwAsset = $t02488924993._10
774- let bwAmount = $t02488924993._11
763+ let $t02490325007 = parseRequest(requestId)
764+ let user = $t02490325007._1
765+ let pool = $t02490325007._2
766+ let pmtA = $t02490325007._3
767+ let AId = $t02490325007._4
768+ let pmtB = $t02490325007._5
769+ let BId = $t02490325007._6
770+ let balA = $t02490325007._7
771+ let balB = $t02490325007._8
772+ let shareId = $t02490325007._9
773+ let bwAsset = $t02490325007._10
774+ let bwAmount = $t02490325007._11
775775 if ((size(i.payments) != 1))
776776 then throw("Wrong payment size")
777777 else if (if ((assetIdToStr(i.payments[0].assetId) != bwAsset))
778778 then true
779779 else (i.payments[0].amount != bwAmount))
780780 then throw("Wrong payment")
781781 else {
782- let $t02518325307 = if ((AId == bwAsset))
782+ let $t02519725321 = if ((AId == bwAsset))
783783 then $Tuple2((pmtA + i.payments[0].amount), pmtB)
784784 else $Tuple2(pmtA, (pmtB + i.payments[0].amount))
785- let pmtAllA = $t02518325307._1
786- let pmtAllB = $t02518325307._2
785+ let pmtAllA = $t02519725321._1
786+ let pmtAllB = $t02519725321._2
787787 let pType = valueOrErrorMessage(getString(this, (kPool + pool)), "Unknown pool")
788- let $t02538925498 = replenishByType(pType, pool, LOAN_FEE, pmtA, AId, pmtB, BId, balA, balB, shareId)
789- let userStaked = $t02538925498._1
790- let axlyFee = $t02538925498._2
788+ let $t02540325512 = replenishByType(pType, pool, LOAN_FEE, pmtA, AId, pmtB, BId, balA, balB, shareId)
789+ let userStaked = $t02540325512._1
790+ let axlyFee = $t02540325512._2
791791 let posNum = getNewUserPositionNumber(pool, toString(i.caller))
792792 let borrowEntries = [IntegerEntry((((((pool + "_") + user) + "_") + toString(posNum)) + kUserBorrowAmount), bwAmount), StringEntry((((((pool + "_") + user) + "_") + toString(posNum)) + kUserBorrowAssetId), bwAsset)]
793793 let entries = replenishEntries(pool, user, userStaked, axlyFee, posNum, shareId, pType)
794794 $Tuple2(((entries ++ borrowEntries) :+ DeleteEntry((requestId + kRequestId))), userStaked)
795795 }
796796 }
797797
798798
799799
800800 @Callable(i)
801801 func withdraw (pool,posId) = {
802802 let user = toString(i.caller)
803803 let pAmount = valueOrErrorMessage(getInteger(this, (((((pool + "_") + user) + "_") + toString(posId)) + kUserPosition)), "Unknown position")
804804 let userInterest = getIntegerValue(this, (((((pool + "_") + user) + "_") + toString(posId)) + kUserPositionInterest))
805805 let poolInterst = getIntegerValue(this, (pool + kPoolInterest))
806806 let poolTotalShare = getPoolTotalShare(pool)
807807 let userCanWithdraw = (pAmount + fraction(pAmount, (poolInterst - userInterest), SCALE10))
808808 let userAddr = Address(fromBase58String(user))
809809 let borrowAmount = getIntegerValue(this, (((((pool + "_") + user) + "_") + toString(posId)) + kUserBorrowAmount))
810810 let borrowAsset = getStringValue(this, (((((pool + "_") + user) + "_") + toString(posId)) + kUserBorrowAssetId))
811811 let debt = if ((borrowAmount > 0))
812812 then {
813813 let @ = invoke(getLendSrvAddr(), "getAssetDebt", [false, ((((pool + "_") + user) + "_") + toString(posId)), borrowAsset], nil)
814814 if ($isInstanceOf(@, "Int"))
815815 then @
816816 else throw(($getType(@) + " couldn't be cast to Int"))
817817 }
818818 else 0
819- let $t02694027060 = withdrawAmountCalc(pool, userCanWithdraw, debt, borrowAsset)
820- if (($t02694027060 == $t02694027060))
819+ let $t02695427074 = withdrawAmountCalc(pool, userCanWithdraw, debt, borrowAsset)
820+ if (($t02695427074 == $t02695427074))
821821 then {
822- let assetIdB = $t02694027060._4
823- let toUserAmountB = $t02694027060._3
824- let assetIdA = $t02694027060._2
825- let toUserAmountA = $t02694027060._1
822+ let assetIdB = $t02695427074._4
823+ let toUserAmountB = $t02695427074._3
824+ let assetIdA = $t02695427074._2
825+ let toUserAmountA = $t02695427074._1
826826 let closeDbtInv = if ((debt > 0))
827827 then invoke(getLendSrvAddr(), "repayFor", [((user + "_") + toString(posId))], [AttachedPayment(assetIdFromStr(borrowAsset), debt)])
828828 else 0
829829 if ((closeDbtInv == closeDbtInv))
830830 then [DeleteEntry((((((pool + "_") + user) + "_") + toString(posId)) + kUserPosition)), DeleteEntry((((((pool + "_") + user) + "_") + toString(posId)) + kUserPositionInterest)), IntegerEntry((pool + kPoolTotal), (poolTotalShare - userCanWithdraw)), ScriptTransfer(userAddr, toUserAmountA, assetIdFromStr(assetIdA)), ScriptTransfer(userAddr, toUserAmountB, assetIdFromStr(assetIdB))]
831831 else throw("Strict value is not equal to itself.")
832832 }
833833 else throw("Strict value is not equal to itself.")
834834 }
835835
836836
837837
838838 @Callable(i)
839839 func createNewRequest (params) = valueOrElse(isSelfCall(i), {
840840 let newRequestId = (valueOrElse(getInteger(this, kRequestIter), 0) + 1)
841841 $Tuple2([StringEntry((toString(newRequestId) + kRequestId), params), IntegerEntry(kRequestIter, newRequestId)], newRequestId)
842842 })
843843
844844
845845
846846 @Callable(i)
847847 func capitalizeExKeeper (pool,type,tokenToId,amountToExchange,claim,amountsIn,addresses,assetsToReceive,estReceived,slippageTolerance,minReceived,options) = {
848- let $t02835728551 = if (claim)
848+ let $t02837128565 = if (claim)
849849 then claimFarmed(type, pool)
850850 else {
851851 let claimedAsset = if ((type == SF_POOL))
852852 then SWOPID
853853 else WXID
854854 $Tuple2(amountToExchange, claimedAsset)
855855 }
856- let claimedAmount = $t02835728551._1
857- let claimedAsset = $t02835728551._2
856+ let claimedAmount = $t02837128565._1
857+ let claimedAsset = $t02837128565._2
858858 let exchangedAmount = exchangeKeeper(tokenToId, amountToExchange, claimedAsset, amountsIn, addresses, assetsToReceive, estReceived, slippageTolerance, minReceived, options)
859859 let change = (claimedAmount - amountToExchange)
860860 let changeEntry = if ((change > 0))
861861 then [IntegerEntry((pool + kPoolCapChange), (change + valueOrElse(getInteger(this, (pool + kPoolCapChange)), 0)))]
862862 else nil
863863 (capitalize(pool, type, tokenToId, exchangedAmount) ++ changeEntry)
864864 }
865865
866866
867867
868868 @Callable(i)
869869 func capitalizeExPazzle (pool,type,tokenToId,amountToExchange,claim,routesStr,minToReceive,options) = {
870- let $t02920729401 = if (claim)
870+ let $t02922129415 = if (claim)
871871 then claimFarmed(type, pool)
872872 else {
873873 let claimedAsset = if ((type == SF_POOL))
874874 then SWOPID
875875 else WXID
876876 $Tuple2(amountToExchange, claimedAsset)
877877 }
878- let claimedAmount = $t02920729401._1
879- let claimedAsset = $t02920729401._2
878+ let claimedAmount = $t02922129415._1
879+ let claimedAsset = $t02922129415._2
880880 let exchangedAmount = exchangePazzle(tokenToId, amountToExchange, claimedAsset, routesStr, minToReceive, options)
881881 let change = (claimedAmount - amountToExchange)
882882 let changeEntry = if ((change > 0))
883883 then [IntegerEntry((pool + kPoolCapChange), (change + valueOrElse(getInteger(this, (pool + kPoolCapChange)), 0)))]
884884 else nil
885885 (capitalize(pool, type, tokenToId, exchangedAmount) ++ changeEntry)
886886 }
887887
888888
889889
890890 @Callable(i)
891891 func capitalizeExSwopFi (pool,type,tokenToId,amountToExchange,claim,exchangers,exchangersType,args1,args2,routingAssetsKeys,minAmountToReceive,options) = {
892- let $t03012430318 = if (claim)
892+ let $t03013830332 = if (claim)
893893 then claimFarmed(type, pool)
894894 else {
895895 let claimedAsset = if ((type == SF_POOL))
896896 then SWOPID
897897 else WXID
898898 $Tuple2(amountToExchange, claimedAsset)
899899 }
900- let claimedAmount = $t03012430318._1
901- let claimedAsset = $t03012430318._2
900+ let claimedAmount = $t03013830332._1
901+ let claimedAsset = $t03013830332._2
902902 let exchangedAmount = exchangeSwopFi(tokenToId, amountToExchange, claimedAsset, exchangers, exchangersType, args1, args2, routingAssetsKeys, minAmountToReceive, options)
903903 let change = (claimedAmount - amountToExchange)
904904 let changeEntry = if ((change > 0))
905905 then [IntegerEntry((pool + kPoolCapChange), (change + valueOrElse(getInteger(this, (pool + kPoolCapChange)), 0)))]
906906 else nil
907907 (capitalize(pool, type, tokenToId, exchangedAmount) ++ changeEntry)
908908 }
909909
910910
911911
912912 @Callable(i)
913913 func initNewPool (type,poolAddr,inFeeNoLoan,inFeeLoan,capFee) = if (if ((type != SF_POOL))
914914 then (type != WX_POOL)
915915 else false)
916916 then throw("Wrong type")
917917 else [IntegerEntry((poolAddr + kAxlyInFeeWithoutLoan), inFeeNoLoan), IntegerEntry((poolAddr + kAxlyInFeeWithLoan), inFeeLoan), IntegerEntry((poolAddr + kAxlyCapFee), capFee), IntegerEntry((poolAddr + kPoolInterest), 0), StringEntry((kPool + poolAddr), type)]
918918
919919
920920 @Verifier(tx)
921921 func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
922922

github/deemru/w8io/026f985 
128.69 ms