tx · Huc9dJAsQMcEMPtzfRxuFnEGvsgvTaP8yr696S3opA7G

3MvRWw2FPEimFCTGtK7qY9uAJbM7XJ4ZfJS:  -0.04400000 Waves

2023.06.07 13:51 [2612152] smart account 3MvRWw2FPEimFCTGtK7qY9uAJbM7XJ4ZfJS > SELF 0.00000000 Waves

{ "type": 13, "id": "Huc9dJAsQMcEMPtzfRxuFnEGvsgvTaP8yr696S3opA7G", "fee": 4400000, "feeAssetId": null, "timestamp": 1686135056743, "version": 2, "chainId": 84, "sender": "3MvRWw2FPEimFCTGtK7qY9uAJbM7XJ4ZfJS", "senderPublicKey": "HP8sssVq1866F7CaPQJwgFrt6fsqhQjKwM84cL1wjD2a", "proofs": [ "2zYdXmgxZJ1i4b4FtJLVE9jRcLMHm94VMUE29zcdyXbfthUSSBP4Zmx4AsSZ9Y5hrtvfWErtDSXCmPKJ9PTcBtnh" ], "script": "base64:BgKRAQgCEgcKBQgBCAEBEgMKAQgSBAoCCAgSBQoDCAEIEgMKAQgSBAoCCAESBgoEAQgIARIFCgMBCAgSAwoBCBIGCgQIAQgIEgUKAwgIARIOCgwICAgBBBEYGBEBARgSCgoICAgIAQQIARgSDgoMCAgIAQQYGBgYGAEYEgoKCAgIAQEBAQEBEgYKBAgICAESBAoCCAhfAAdTRl9QT09MAgJTRgAHV1hfUE9PTAICV1gAD0NBUF9GRUVfTk9fTE9BTgIJY2FwTm9Mb2FuAAxDQVBfRkVFX0xPQU4CB2NhcExvYW4AFFNUT1BMT1NTX0ZFRV9OT19MT0FOAg5zdG9wTG9zc05vTG9hbgANU1RPUExPU1NfTE9BTgIMc3RvcExvc3NMb2FuAAhMT0FOX0ZFRQIEbG9hbgALTk9fTE9BTl9GRUUCBm5vTG9hbgAGTk9fRkVFAgVub0ZlZQAGU0NBTEU4AIDC1y8AB1NDQUxFMTAAgMivoCUACkZFRV9TQ0FMRTYAwIQ9ABRrU0ZQb29sQUFzc2V0QmFsYW5jZQIPQV9hc3NldF9iYWxhbmNlABRr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4k Next: EEtZnacX9nseyL8ULE5JuLijwdCfb7ym77Wzz1TSfWCV Diff:
OldNewDifferences
10131013 let borrowPrice = if ((borrowAssetId == AId))
10141014 then dPriceA
10151015 else dPriceB
1016- let borrowAmount = (fraction(paydInDollar, (leverage - 100), 100) / borrowPrice)
1016+ let borrowAmount = fraction(fraction(paydInDollar, (leverage - 100), 100), pow(10, 0, getAssetDecimals(borrowAssetId), 0, 0, DOWN), borrowPrice)
10171017 let request = makeString([toString(i.caller), pool, toString(pmtA), pmtAssetA, toString(pmtB), pmtAssetB, toString(balA), toString(balB), shareId, borrowAssetId, toString(borrowAmount)], ",")
10181018 let newRequestId = {
10191019 let @ = invoke(this, "createNewRequest", [request], nil)
10321032 else throw("Strict value is not equal to itself.")
10331033 }
10341034 else {
1035- let $t03285532967 = replenishByType(pType, pool, NO_LOAN_FEE, pmtA, AId, pmtB, BId, balA, balB, shareId)
1036- let userStaked = $t03285532967._1
1037- let axlyFee = $t03285532967._2
1035+ let $t03292233034 = replenishByType(pType, pool, NO_LOAN_FEE, pmtA, AId, pmtB, BId, balA, balB, shareId)
1036+ let userStaked = $t03292233034._1
1037+ let axlyFee = $t03292233034._2
10381038 (replenishEntries(pool, toString(i.caller), userStaked, axlyFee, newPosNum, shareId, pType, false) ++ getCursEntries(AId, BId, shareId))
10391039 }
10401040 }
10431043
10441044 @Callable(i)
10451045 func replenishFromLand (requestId) = {
1046- let $t03317833282 = parseRequest(requestId)
1047- let user = $t03317833282._1
1048- let pool = $t03317833282._2
1049- let pmtA = $t03317833282._3
1050- let AId = $t03317833282._4
1051- let pmtB = $t03317833282._5
1052- let BId = $t03317833282._6
1053- let balA = $t03317833282._7
1054- let balB = $t03317833282._8
1055- let shareId = $t03317833282._9
1056- let bwAsset = $t03317833282._10
1057- let bwAmount = $t03317833282._11
1046+ let $t03324533349 = parseRequest(requestId)
1047+ let user = $t03324533349._1
1048+ let pool = $t03324533349._2
1049+ let pmtA = $t03324533349._3
1050+ let AId = $t03324533349._4
1051+ let pmtB = $t03324533349._5
1052+ let BId = $t03324533349._6
1053+ let balA = $t03324533349._7
1054+ let balB = $t03324533349._8
1055+ let shareId = $t03324533349._9
1056+ let bwAsset = $t03324533349._10
1057+ let bwAmount = $t03324533349._11
10581058 if ((size(i.payments) != 1))
10591059 then throw("Wrong payment size")
10601060 else if (if ((assetIdToStr(i.payments[0].assetId) != bwAsset))
10621062 else (i.payments[0].amount != bwAmount))
10631063 then throw("Wrong payment")
10641064 else {
1065- let $t03347233596 = if ((AId == bwAsset))
1065+ let $t03353933663 = if ((AId == bwAsset))
10661066 then $Tuple2((pmtA + i.payments[0].amount), pmtB)
10671067 else $Tuple2(pmtA, (pmtB + i.payments[0].amount))
1068- let pmtAllA = $t03347233596._1
1069- let pmtAllB = $t03347233596._2
1068+ let pmtAllA = $t03353933663._1
1069+ let pmtAllB = $t03353933663._2
10701070 let pType = valueOrErrorMessage(getString(this, (kPool + pool)), "Unknown pool")
1071- let $t03367833787 = replenishByType(pType, pool, LOAN_FEE, pmtA, AId, pmtB, BId, balA, balB, shareId)
1072- let userStaked = $t03367833787._1
1073- let axlyFee = $t03367833787._2
1071+ let $t03374533854 = replenishByType(pType, pool, LOAN_FEE, pmtA, AId, pmtB, BId, balA, balB, shareId)
1072+ let userStaked = $t03374533854._1
1073+ let axlyFee = $t03374533854._2
10741074 let posNum = getNewUserPositionNumber(pool, toString(i.caller))
10751075 let borrowEntries = [IntegerEntry((((((pool + "_") + user) + "_") + toString(posNum)) + kUserBorrowAmount), bwAmount), StringEntry((((((pool + "_") + user) + "_") + toString(posNum)) + kUserBorrowAssetId), bwAsset)]
10761076 let entries = replenishEntries(pool, user, userStaked, axlyFee, posNum, shareId, pType, true)
11341134 func liquidate (user,posId,liquidateAmount) = {
11351135 let pool = valueOrErrorMessage(getString(this, (((user + "_") + posId) + kUserPositionPool)), "no position")
11361136 let pType = valueOrErrorMessage(getString(this, (kPool + pool)), "Pool is not inited")
1137- let $t03657036660 = getPoolData(Address(fromBase58String(pool)), pType)
1138- let AId = $t03657036660._1
1139- let BId = $t03657036660._2
1140- let balA = $t03657036660._3
1141- let balB = $t03657036660._4
1142- let shareId = $t03657036660._5
1137+ let $t03663736727 = getPoolData(Address(fromBase58String(pool)), pType)
1138+ let AId = $t03663736727._1
1139+ let BId = $t03663736727._2
1140+ let balA = $t03663736727._3
1141+ let balB = $t03663736727._4
1142+ let shareId = $t03663736727._5
11431143 let amount = unstakeLP(pool, pType, shareId, liquidateAmount)
11441144 let borrowAmount = getIntegerValue(this, (((((pool + "_") + user) + "_") + posId) + kUserBorrowAmount))
11451145 let borrowAsset = getStringValue(this, (((((pool + "_") + user) + "_") + posId) + kUserBorrowAssetId))
11531153
11541154 @Callable(i)
11551155 func capitalizeExKeeper (pool,type,tokenToId,amountToExchange,claim,amountsIn,addresses,assetsToReceive,estReceived,slippageTolerance,minReceived,options) = {
1156- let $t03789538089 = if (claim)
1156+ let $t03796238156 = if (claim)
11571157 then claimFarmed(type, pool)
11581158 else {
11591159 let claimedAsset = if ((type == SF_POOL))
11611161 else WXID
11621162 $Tuple2(amountToExchange, claimedAsset)
11631163 }
1164- let claimedAmount = $t03789538089._1
1165- let claimedAsset = $t03789538089._2
1164+ let claimedAmount = $t03796238156._1
1165+ let claimedAsset = $t03796238156._2
11661166 let exchangedAmount = exchangeKeeper(tokenToId, amountToExchange, claimedAsset, amountsIn, addresses, assetsToReceive, estReceived, slippageTolerance, minReceived, options)
11671167 let change = (claimedAmount - amountToExchange)
11681168 let changeEntry = if ((change > 0))
11751175
11761176 @Callable(i)
11771177 func capitalizeExPuzzle (pool,type,tokenToId,amountToExchange,claim,routesStr,minToReceive,options) = {
1178- let $t03874638940 = if (claim)
1178+ let $t03881339007 = if (claim)
11791179 then claimFarmed(type, pool)
11801180 else {
11811181 let claimedAsset = if ((type == SF_POOL))
11831183 else WXID
11841184 $Tuple2(amountToExchange, claimedAsset)
11851185 }
1186- let claimedAmount = $t03874638940._1
1187- let claimedAsset = $t03874638940._2
1186+ let claimedAmount = $t03881339007._1
1187+ let claimedAsset = $t03881339007._2
11881188 let exchangedAmount = exchangePuzzle(tokenToId, amountToExchange, claimedAsset, routesStr, minToReceive, options)
11891189 let change = (claimedAmount - amountToExchange)
11901190 let changeEntry = if ((change > 0))
11971197
11981198 @Callable(i)
11991199 func capitalizeExSwopFi (pool,type,tokenToId,amountToExchange,claim,exchangers,exchangersType,args1,args2,routingAssetsKeys,minAmountToReceive,options) = {
1200- let $t03966339857 = if (claim)
1200+ let $t03973039924 = if (claim)
12011201 then claimFarmed(type, pool)
12021202 else {
12031203 let claimedAsset = if ((type == SF_POOL))
12051205 else WXID
12061206 $Tuple2(amountToExchange, claimedAsset)
12071207 }
1208- let claimedAmount = $t03966339857._1
1209- let claimedAsset = $t03966339857._2
1208+ let claimedAmount = $t03973039924._1
1209+ let claimedAsset = $t03973039924._2
12101210 let exchangedAmount = exchangeSwopFi(tokenToId, amountToExchange, claimedAsset, exchangers, exchangersType, args1, args2, routingAssetsKeys, minAmountToReceive, options)
12111211 let change = (claimedAmount - amountToExchange)
12121212 let changeEntry = if ((change > 0))
12231223 else false)
12241224 then throw("Wrong type")
12251225 else {
1226- let $t04055040644 = getPoolData(Address(fromBase58String(poolAddr)), type)
1227- let aId = $t04055040644._1
1228- let bId = $t04055040644._2
1229- let aBal = $t04055040644._3
1230- let bBal = $t04055040644._4
1231- let shareId = $t04055040644._5
1226+ let $t04061740711 = getPoolData(Address(fromBase58String(poolAddr)), type)
1227+ let aId = $t04061740711._1
1228+ let bId = $t04061740711._2
1229+ let aBal = $t04061740711._3
1230+ let bBal = $t04061740711._4
1231+ let shareId = $t04061740711._5
12321232 [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)]
12331233 }
12341234
12371237 @Callable(i)
12381238 func capitalizeTest (pool,pType,tokenId,tokenAmount) = {
12391239 let poolAddr = Address(fromBase58String(pool))
1240- let $t04144041519 = getPoolData(poolAddr, pType)
1241- let AId = $t04144041519._1
1242- let BId = $t04144041519._2
1243- let balA = $t04144041519._3
1244- let balB = $t04144041519._4
1245- let shareId = $t04144041519._5
1246- let $t04152241602 = if ((tokenId == AId))
1240+ let $t04150741586 = getPoolData(poolAddr, pType)
1241+ let AId = $t04150741586._1
1242+ let BId = $t04150741586._2
1243+ let balA = $t04150741586._3
1244+ let balB = $t04150741586._4
1245+ let shareId = $t04150741586._5
1246+ let $t04158941669 = if ((tokenId == AId))
12471247 then $Tuple2(tokenAmount, 0)
12481248 else $Tuple2(0, tokenAmount)
1249- let pmtA = $t04152241602._1
1250- let pmtB = $t04152241602._2
1251- let $t04160541709 = replenishByType(pType, pool, NO_FEE, pmtA, AId, pmtB, BId, balA, balB, shareId)
1252- let stakedAmount = $t04160541709._1
1253- let nf = $t04160541709._2
1249+ let pmtA = $t04158941669._1
1250+ let pmtB = $t04158941669._2
1251+ let $t04167241776 = replenishByType(pType, pool, NO_FEE, pmtA, AId, pmtB, BId, balA, balB, shareId)
1252+ let stakedAmount = $t04167241776._1
1253+ let nf = $t04167241776._2
12541254 let curPoolInterestLoan = valueOrElse(getInteger(this, (pool + kPoolInterestLoan)), 0)
12551255 let curPoolInterestNoLoan = valueOrElse(getInteger(this, (pool + kPoolInterestNoLoan)), 0)
12561256 let totalShareAmount = getPoolTotalShare(pool)
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let SF_POOL = "SF"
55
66 let WX_POOL = "WX"
77
88 let CAP_FEE_NO_LOAN = "capNoLoan"
99
1010 let CAP_FEE_LOAN = "capLoan"
1111
1212 let STOPLOSS_FEE_NO_LOAN = "stopLossNoLoan"
1313
1414 let STOPLOSS_LOAN = "stopLossLoan"
1515
1616 let LOAN_FEE = "loan"
1717
1818 let NO_LOAN_FEE = "noLoan"
1919
2020 let NO_FEE = "noFee"
2121
2222 let SCALE8 = 100000000
2323
2424 let SCALE10 = 10000000000
2525
2626 let FEE_SCALE6 = 1000000
2727
2828 let kSFPoolAAssetBalance = "A_asset_balance"
2929
3030 let kSFPoolBAssetBalance = "B_asset_balance"
3131
3232 let kSFPoolAAssetId = "A_asset_id"
3333
3434 let kSFPoolBAssetId = "B_asset_id"
3535
3636 let kSFPoolShareId = "share_asset_id"
3737
3838 let kSFPoolShareSupply = "share_asset_supply"
3939
4040 let kSFPoolFee = "commission"
4141
4242 let kUserPosition = "_user_position"
4343
4444 let kUserPositionPool = "_user_position_pool"
4545
4646 let kUserBorrowAmount = "_user_position_borrow_amount"
4747
4848 let kUserBorrowAssetId = "_user_position_borrow_asset_id"
4949
5050 let kUserPositionNum = "_user_position_number"
5151
5252 let kUserPositionInterest = "_user_position_interest"
5353
5454 let kPoolTotal = "_pool_total"
5555
5656 let kPoolTotalLoan = "_pool_total_loan"
5757
5858 let kPoolInterestLoan = "_pool_interest_loan"
5959
6060 let kPoolInterestNoLoan = "_pool_interest_no_loan"
6161
6262 let kAxlyInFeeWithoutLoan = "_axly_fee_without_loan"
6363
6464 let kAxlyInFeeWithLoan = "_axly_fee_with_loan"
6565
6666 let kAxlyNoLoanCapFee = "_axly_fee_cap_with_loan"
6767
6868 let kAxlyWithLoanCapFee = "_axly_fee_cap_no_loan"
6969
7070 let kAxlyStopLossNoLoanFee = "_axly_fee_stoploss_with_loan"
7171
7272 let kAxlyStopLossLoanFee = "_axly_fee_stoploss_no_loan"
7373
7474 let kRequestId = "_request_id"
7575
7676 let kRequestIter = "requests_iter"
7777
7878 let kPool = "pool_"
7979
8080 let kSharePool = "_pool_share_id"
8181
8282 let kPoolCapChange = "_pool_cap_change"
8383
8484 let kTokenLastPrice = "_last_price"
8585
8686 let kUserStopLoss = "_stop_loss"
8787
8888 let kMoneyBox = "axly_money_box"
8989
9090 let kSFFarmingAddr = "swopfi_farming_addr"
9191
9292 let kLendService = "lend_service_addr"
9393
9494 let kPriceOracle = "price_oracle"
9595
9696 let kExContract = "exchange_contract"
9797
9898 let kWxSwapContract = "wx_swap_contract"
9999
100100 let moneyBox = Address(fromBase58String(valueOrErrorMessage(getString(this, kMoneyBox), "No axly moneyBox address")))
101101
102102 let exContract = Address(fromBase58String(valueOrErrorMessage(getString(this, kExContract), "No exchange contract address")))
103103
104104 let priceOracleAddr = Address(fromBase58String(valueOrErrorMessage(getString(this, kPriceOracle), "No price oracle address")))
105105
106106 let wxSwapContract = Address(fromBase58String(valueOrErrorMessage(getString(this, kWxSwapContract), "No wx swap address")))
107107
108108 let SWOPID = base58'4W19ndijcc2CsQa9HGW2dfXKTVXhnneWWttxXrtjPmEp'
109109
110110 let WXID = base58'EMAMLxDnv3xiz8RXg8Btj33jcEw3wLczL3JKYYmuubpc'
111111
112112 func isSelfCall (i) = if ((i.caller == this))
113113 then unit
114114 else throw("Only contract itself can call this function")
115115
116116
117117 func accountBalance (assetId) = match assetId {
118118 case id: ByteVector =>
119119 assetBalance(this, id)
120120 case waves: Unit =>
121121 wavesBalance(this).available
122122 case _ =>
123123 throw("Match error")
124124 }
125125
126126
127127 func getSFPoolData (poolAddr) = $Tuple5(valueOrErrorMessage(getString(poolAddr, kSFPoolAAssetId), "Can't get pool A asset id"), valueOrErrorMessage(getString(poolAddr, kSFPoolBAssetId), "Can't get pool B asset id"), valueOrErrorMessage(getInteger(poolAddr, kSFPoolAAssetBalance), "Can't get pool A asset balance"), valueOrErrorMessage(getInteger(poolAddr, kSFPoolBAssetBalance), "Can't get pool B asset balance"), valueOrErrorMessage(getString(poolAddr, kSFPoolShareId), "Can't get share asset id"))
128128
129129
130130 func getWXPoolData (poolAddr) = {
131131 let cfg = {
132132 let @ = invoke(poolAddr, "getPoolConfigWrapperREADONLY", nil, nil)
133133 if ($isInstanceOf(@, "List[Any]"))
134134 then @
135135 else throw(($getType(@) + " couldn't be cast to List[Any]"))
136136 }
137137 if ((cfg == cfg))
138138 then {
139139 let aId = valueOrErrorMessage({
140140 let @ = cfg[4]
141141 if ($isInstanceOf(@, "String"))
142142 then @
143143 else unit
144144 }, "Can't get pool A asset id")
145145 let bId = valueOrErrorMessage({
146146 let @ = cfg[5]
147147 if ($isInstanceOf(@, "String"))
148148 then @
149149 else unit
150150 }, "Can't get pool B asset id")
151151 let shareId = valueOrErrorMessage({
152152 let @ = cfg[3]
153153 if ($isInstanceOf(@, "String"))
154154 then @
155155 else unit
156156 }, "Can't get pool LP asset id")
157157 let balA = {
158158 let @ = invoke(poolAddr, "getAccBalanceWrapperREADONLY", [aId], nil)
159159 if ($isInstanceOf(@, "Int"))
160160 then @
161161 else throw(($getType(@) + " couldn't be cast to Int"))
162162 }
163163 if ((balA == balA))
164164 then {
165165 let balB = {
166166 let @ = invoke(poolAddr, "getAccBalanceWrapperREADONLY", [bId], nil)
167167 if ($isInstanceOf(@, "Int"))
168168 then @
169169 else throw(($getType(@) + " couldn't be cast to Int"))
170170 }
171171 if ((balB == balB))
172172 then $Tuple5(aId, bId, balA, balB, shareId)
173173 else throw("Strict value is not equal to itself.")
174174 }
175175 else throw("Strict value is not equal to itself.")
176176 }
177177 else throw("Strict value is not equal to itself.")
178178 }
179179
180180
181181 func getPoolData (poolAddr,type) = if ((type == SF_POOL))
182182 then getSFPoolData(poolAddr)
183183 else if ((type == WX_POOL))
184184 then getWXPoolData(poolAddr)
185185 else throw("Wrong pool type")
186186
187187
188188 func getShareSupply (poolAddr,type,shareId) = if ((type == SF_POOL))
189189 then valueOrErrorMessage(getInteger(poolAddr, kSFPoolShareSupply), "Can't get share asset supply")
190190 else if ((type == WX_POOL))
191191 then valueOrErrorMessage(assetInfo(fromBase58String(shareId)), "Wrong ShareId").quantity
192192 else throw("Wrong pool type")
193193
194194
195195 func getPoolTotalShare (pool) = valueOrElse(getInteger(this, (pool + kPoolTotal)), 0)
196196
197197
198198 func getPoolTotalShareWithLoan (pool) = valueOrElse(getInteger(this, (pool + kPoolTotalLoan)), 0)
199199
200200
201201 func getNewUserPositionNumber (pool,user) = (valueOrElse(getInteger(this, (user + kUserPositionNum)), 0) + 1)
202202
203203
204204 func getAxlyFee (pool,feeType) = if ((feeType == CAP_FEE_LOAN))
205205 then getIntegerValue(this, (pool + kAxlyWithLoanCapFee))
206206 else if ((feeType == CAP_FEE_NO_LOAN))
207207 then getIntegerValue(this, (pool + kAxlyNoLoanCapFee))
208208 else if ((feeType == LOAN_FEE))
209209 then getIntegerValue(this, (pool + kAxlyInFeeWithLoan))
210210 else if ((feeType == NO_LOAN_FEE))
211211 then getIntegerValue(this, (pool + kAxlyInFeeWithoutLoan))
212212 else if ((feeType == NO_FEE))
213213 then 0
214214 else throw("Wrong fee type")
215215
216216
217217 func getSFFarmingAddr () = Address(fromBase58String(valueOrErrorMessage(getString(this, kSFFarmingAddr), "Can't get swopfi farming addr")))
218218
219219
220220 func getWXFarmingAddr (poolAddr) = {
221221 let fContract = Address(fromBase58String(valueOrErrorMessage(getString(poolAddr, "%s__factoryContract"), "Can't get WX factory contract addr")))
222222 let factroyCfg = split(valueOrErrorMessage(getString(fContract, "%s__factoryConfig"), "Can't get WX factory cfg"), "__")
223223 Address(fromBase58String(factroyCfg[1]))
224224 }
225225
226226
227227 func getLendSrvAddr () = Address(fromBase58String(valueOrErrorMessage(getString(this, kLendService), "Can't get lend service addr")))
228228
229229
230230 func assetIdToStr (assetId) = match assetId {
231231 case id: ByteVector =>
232232 toBase58String(id)
233233 case waves: Unit =>
234234 "WAVES"
235235 case _ =>
236236 throw("Match error")
237237 }
238238
239239
240240 func assetIdFromStr (assetId) = if ((assetId == "WAVES"))
241241 then unit
242242 else fromBase58String(assetId)
243243
244244
245245 func getAssetDecimals (assetId) = if ((assetId == "WAVES"))
246246 then 8
247247 else match assetInfo(fromBase58String(assetId)) {
248248 case asset: Asset =>
249249 asset.decimals
250250 case _ =>
251251 throw("Can't find asset")
252252 }
253253
254254
255255 func getAssetPrecition (assetId) = pow(10, 0, getAssetDecimals(assetId), 0, 0, DOWN)
256256
257257
258258 func getAssetsPrice (assetIds) = {
259259 func getPrices (a,assetId) = {
260260 let assetPrice = ( let @ = invoke(priceOracleAddr, "getTWAP60", [assetId, false], nil)
261261 if ($isInstanceOf(@, "(Int, Int)"))
262262 then @
263263 else throw(($getType(@) + " couldn't be cast to (Int, Int)")))._2
264264 (a :+ assetPrice)
265265 }
266266
267267 let $l = assetIds
268268 let $s = size($l)
269269 let $acc0 = nil
270270 func $f0_1 ($a,$i) = if (($i >= $s))
271271 then $a
272272 else getPrices($a, $l[$i])
273273
274274 func $f0_2 ($a,$i) = if (($i >= $s))
275275 then $a
276276 else throw("List size exceeds 100")
277277
278278 $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20), 21), 22), 23), 24), 25), 26), 27), 28), 29), 30), 31), 32), 33), 34), 35), 36), 37), 38), 39), 40), 41), 42), 43), 44), 45), 46), 47), 48), 49), 50), 51), 52), 53), 54), 55), 56), 57), 58), 59), 60), 61), 62), 63), 64), 65), 66), 67), 68), 69), 70), 71), 72), 73), 74), 75), 76), 77), 78), 79), 80), 81), 82), 83), 84), 85), 86), 87), 88), 89), 90), 91), 92), 93), 94), 95), 96), 97), 98), 99), 100)
279279 }
280280
281281
282282 func getSharePrice (shareIds) = {
283283 func getPrices (a,shareId) = {
284284 let pool = valueOrErrorMessage(getString(this, (shareId + kSharePool)), "Can't find pool addr by share id")
285285 let poolAddr = Address(fromBase58String(pool))
286286 let pType = valueOrErrorMessage(getString(this, (kPool + pool)), "Pool is not inited")
287287 let $t084298494 = getPoolData(poolAddr, pType)
288288 let aId = $t084298494._1
289289 let bId = $t084298494._2
290290 let aBalance = $t084298494._3
291291 let bBalance = $t084298494._4
292292 let dPriceA = ( let @ = invoke(priceOracleAddr, "getTWAP60", [aId, false], nil)
293293 if ($isInstanceOf(@, "(Int, Int)"))
294294 then @
295295 else throw(($getType(@) + " couldn't be cast to (Int, Int)")))._2
296296 let dPriceB = ( let @ = invoke(priceOracleAddr, "getTWAP60", [bId, false], nil)
297297 if ($isInstanceOf(@, "(Int, Int)"))
298298 then @
299299 else throw(($getType(@) + " couldn't be cast to (Int, Int)")))._2
300300 let shareSupply = getShareSupply(poolAddr, pType, shareId)
301301 let APrecision = pow(10, 0, getAssetDecimals(aId), 0, 0, DOWN)
302302 let BPrecision = pow(10, 0, getAssetDecimals(bId), 0, 0, DOWN)
303303 let sharePrecision = pow(10, 0, getAssetDecimals(shareId), 0, 0, DOWN)
304304 let sum = (fraction(aBalance, dPriceA, APrecision) + fraction(bBalance, dPriceB, BPrecision))
305305 let sharePrice = fraction(sum, sharePrecision, shareSupply)
306306 (a :+ sharePrice)
307307 }
308308
309309 let $l = shareIds
310310 let $s = size($l)
311311 let $acc0 = nil
312312 func $f0_1 ($a,$i) = if (($i >= $s))
313313 then $a
314314 else getPrices($a, $l[$i])
315315
316316 func $f0_2 ($a,$i) = if (($i >= $s))
317317 then $a
318318 else throw("List size exceeds 50")
319319
320320 $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20), 21), 22), 23), 24), 25), 26), 27), 28), 29), 30), 31), 32), 33), 34), 35), 36), 37), 38), 39), 40), 41), 42), 43), 44), 45), 46), 47), 48), 49), 50)
321321 }
322322
323323
324324 func getCursEntries (aId,bId,shareId) = {
325325 let assetsPrices = getAssetsPrice([aId, bId])
326326 let sharePrice = getSharePrice([shareId])
327327 [IntegerEntry((aId + kTokenLastPrice), assetsPrices[0]), IntegerEntry((bId + kTokenLastPrice), assetsPrices[1]), IntegerEntry((shareId + kTokenLastPrice), sharePrice[0])]
328328 }
329329
330330
331331 func calcReplenishByTwoTokens (pType,poolAddr,pmtA,aId,pmtB,bId,balA,balB) = {
332332 let $t096669971 = if ((pType == SF_POOL))
333333 then $Tuple2(nil, nil)
334334 else $Tuple2(split({
335335 let @ = invoke(poolAddr, "evaluatePutByAmountAssetREADONLY", [pmtA], nil)
336336 if ($isInstanceOf(@, "String"))
337337 then @
338338 else throw(($getType(@) + " couldn't be cast to String"))
339339 }, "__"), split({
340340 let @ = invoke(poolAddr, "evaluatePutByPriceAssetREADONLY", [pmtB], nil)
341341 if ($isInstanceOf(@, "String"))
342342 then @
343343 else throw(($getType(@) + " couldn't be cast to String"))
344344 }, "__"))
345345 if (($t096669971 == $t096669971))
346346 then {
347347 let evalPutInB = $t096669971._2
348348 let evalPutInA = $t096669971._1
349349 let $t0998110177 = if ((pType == SF_POOL))
350350 then $Tuple2(fraction(SCALE8, pmtA, balA), fraction(SCALE8, pmtB, balB))
351351 else $Tuple2(parseIntValue(evalPutInA[1]), parseIntValue(evalPutInB[1]))
352352 let ratioA = $t0998110177._1
353353 let ratioB = $t0998110177._2
354354 let $t01018310666 = if ((ratioB > ratioA))
355355 then {
356356 let pmt = if ((pType == SF_POOL))
357357 then fraction(balB, ratioA, SCALE8, CEILING)
358358 else parseIntValue(evalPutInA[8])
359359 $Tuple5(pmtA, pmt, (pmtB - pmt), bId, ratioB)
360360 }
361361 else {
362362 let pmt = if ((pType == SF_POOL))
363363 then fraction(balA, ratioB, SCALE8, CEILING)
364364 else parseIntValue(evalPutInB[8])
365365 $Tuple5(pmtA, pmtB, (pmtA - pmt), aId, ratioA)
366366 }
367367 let pmtInA = $t01018310666._1
368368 let pmtInB = $t01018310666._2
369369 let change = $t01018310666._3
370370 let changeAssetId = $t01018310666._4
371371 let lp = $t01018310666._5
372372 $Tuple5(pmtInA, pmtInB, change, changeAssetId, lp)
373373 }
374374 else throw("Strict value is not equal to itself.")
375375 }
376376
377377
378378 func replenishTwoTokensByType (poolAddr,pType,pmtA,aId,pmtB,bId) = {
379379 let payments = [AttachedPayment(assetIdFromStr(aId), pmtA), AttachedPayment(assetIdFromStr(bId), pmtB)]
380380 if ((pType == SF_POOL))
381381 then invoke(poolAddr, "callFunction", ["replenishWithTwoTokens", ["false", "0"]], payments)
382382 else invoke(poolAddr, "put", [1000000, false], payments)
383383 }
384384
385385
386386 func replenishOneTokenByType (poolAddr,pType,pmt,pmtId) = {
387387 let payments = [AttachedPayment(assetIdFromStr(pmtId), pmt)]
388388 if ((pType == SF_POOL))
389389 then invoke(poolAddr, "callFunction", ["replenishWithOneToken", ["0", "false", "0"]], payments)
390390 else invoke(poolAddr, "putOneTkn", [0, false], payments)
391391 }
392392
393393
394394 func stakeLP (pool,pType,shareId,amount) = {
395395 let payments = [AttachedPayment(fromBase58String(shareId), amount)]
396396 if ((pType == SF_POOL))
397397 then invoke(getSFFarmingAddr(), "lockShareTokens", [pool, 0], payments)
398398 else invoke(getWXFarmingAddr(addressFromStringValue(pool)), "stake", nil, payments)
399399 }
400400
401401
402402 func unstakeLP (pool,pType,shareId,amount) = {
403403 let $t01189612253 = if ((pType == SF_POOL))
404404 then $Tuple3(getSFFarmingAddr(), "withdrawShareTokens", [pool, amount])
405405 else if ((pType == WX_POOL))
406406 then $Tuple3(getWXFarmingAddr(Address(fromBase58String(pool))), "unstake", [shareId, amount])
407407 else throw("Wrong pool type")
408408 let farmAddr = $t01189612253._1
409409 let fName = $t01189612253._2
410410 let params = $t01189612253._3
411411 let inv = invoke(farmAddr, fName, params, nil)
412412 if ((inv == inv))
413413 then amount
414414 else throw("Strict value is not equal to itself.")
415415 }
416416
417417
418418 func calcAmountToPaySF (pool,assetIdA,assetIdB,balA,balB,amountTokenToGet,assetTokenToGet) = {
419419 let poolAddr = Address(fromBase58String(pool))
420420 let feeScale6 = 1000000
421421 let fee = getIntegerValue(poolAddr, kSFPoolFee)
422422 let amntGetNoFee = fraction(amountTokenToGet, feeScale6, (feeScale6 - fee))
423423 let $t01266612954 = if ((assetTokenToGet == assetIdA))
424424 then {
425425 let amountToPay = fraction(balA, amntGetNoFee, (balB - amntGetNoFee))
426426 $Tuple2(amountToPay, assetIdB)
427427 }
428428 else {
429429 let amountToPay = fraction(balB, amntGetNoFee, (balA - amntGetNoFee))
430430 $Tuple2(amountToPay, assetIdA)
431431 }
432432 let amountToPay = $t01266612954._1
433433 let assetToPay = $t01266612954._2
434434 $Tuple2(assetToPay, amountToPay)
435435 }
436436
437437
438438 func calcAmountToPayWX (pool,assetIdA,assetIdB,balA,balB,amountTokenToGet,assetTokenToGet) = {
439439 let prFee = getIntegerValue(wxSwapContract, "%s__protocolFee")
440440 let pFee = getIntegerValue(wxSwapContract, "%s__poolFee")
441441 let feeScale = toBigInt(100000000)
442442 let $t01329313601 = if ((assetTokenToGet == assetIdA))
443443 then {
444444 let amountToPay = fraction(balA, amountTokenToGet, (balB - amountTokenToGet))
445445 $Tuple2(amountToPay, assetIdB)
446446 }
447447 else {
448448 let amountToPay = fraction(balB, amountTokenToGet, (balA - amountTokenToGet))
449449 $Tuple2(amountToPay, assetIdA)
450450 }
451451 let amountToPay = $t01329313601._1
452452 let assetToPay = $t01329313601._2
453453 let amountToPayWithFee = toInt(fraction(toBigInt(amountToPay), feeScale, (feeScale - toBigInt((prFee + pFee)))))
454454 $Tuple2(assetToPay, amountToPayWithFee)
455455 }
456456
457457
458458 func exchangeDirectly (type,pool,assetIdA,assetIdB,balA,balB,amountTokenToGet,assetTokenToGet) = if ((type == SF_POOL))
459459 then {
460460 let $t01393914061 = calcAmountToPaySF(pool, assetIdA, assetIdB, balA, balB, amountTokenToGet, assetTokenToGet)
461461 let assetToPay = $t01393914061._1
462462 let amountToPay = $t01393914061._2
463463 invoke(addressFromStringValue(pool), "callFunction", ["exchange", ["1"]], [AttachedPayment(assetIdFromStr(assetToPay), amountToPay)])
464464 }
465465 else {
466466 let $t01421214334 = calcAmountToPayWX(pool, assetIdA, assetIdB, balA, balB, amountTokenToGet, assetTokenToGet)
467467 let assetToPay = $t01421214334._1
468468 let amountToPay = $t01421214334._2
469469 invoke(wxSwapContract, "swap", [1, assetTokenToGet, toString(this)], [AttachedPayment(assetIdFromStr(assetToPay), amountToPay)])
470470 }
471471
472472
473473 func calcReplenishLPVirt (pType,pool,pmtA,aId,pmtB,bId,balA,balB) = {
474474 let poolAddr = addressFromStringValue(pool)
475475 if ((pType == SF_POOL))
476476 then {
477477 let inv = {
478478 let @ = invoke(poolAddr, "callFunction", ["calcLPReplenishDiffPropREADONLY", [toString(pmtA), toString(pmtB), "0"]], nil)
479479 if ($isInstanceOf(@, "List[Any]"))
480480 then @
481481 else throw(($getType(@) + " couldn't be cast to List[Any]"))
482482 }
483483 if ((inv == inv))
484484 then {
485485 let @ = inv[0]
486486 if ($isInstanceOf(@, "Int"))
487487 then @
488488 else throw(($getType(@) + " couldn't be cast to Int"))
489489 }
490490 else throw("Strict value is not equal to itself.")
491491 }
492492 else if ((pType == WX_POOL))
493493 then {
494494 let $t01489915240 = if (if ((pmtA > 0))
495495 then (pmtB > 0)
496496 else false)
497497 then {
498498 let $t01498015106 = calcReplenishByTwoTokens(pType, poolAddr, pmtA, aId, pmtB, bId, balA, balB)
499499 let pmtInA = $t01498015106._1
500500 let pmtInB = $t01498015106._2
501501 let change = $t01498015106._3
502502 let changeId = $t01498015106._4
503503 let lpAmount = $t01498015106._5
504504 $Tuple3(change, changeId, lpAmount)
505505 }
506506 else if ((pmtA > 0))
507507 then $Tuple3(pmtA, aId, 0)
508508 else $Tuple3(pmtB, bId, 0)
509509 let change = $t01489915240._1
510510 let changeId = $t01489915240._2
511511 let lpTwo = $t01489915240._3
512512 let lpOne = if ((change > 0))
513513 then {
514514 let inv = {
515515 let @ = invoke(poolAddr, "putOneTknREADONLY", [changeId, change], nil)
516516 if ($isInstanceOf(@, "(Int, Int, Int)"))
517517 then @
518518 else throw(($getType(@) + " couldn't be cast to (Int, Int, Int)"))
519519 }
520520 if ((inv == inv))
521521 then inv._1
522522 else throw("Strict value is not equal to itself.")
523523 }
524524 else 0
525525 (lpTwo + lpOne)
526526 }
527527 else throw("Wrong pool type")
528528 }
529529
530530
531531 func calcWithdrawLPVirt (pType,pool,lpAmount,shareId,aId,bId,balA,balB,borrowAmount,borrowAssetId) = {
532532 let poolAddr = addressFromStringValue(pool)
533533 let $t01572616192 = if ((pType == SF_POOL))
534534 then {
535535 let inv = {
536536 let @ = invoke(poolAddr, "callFunction", ["withdrawREADONLY", [toString(lpAmount)]], nil)
537537 if ($isInstanceOf(@, "List[Any]"))
538538 then @
539539 else throw(($getType(@) + " couldn't be cast to List[Any]"))
540540 }
541541 if ((inv == inv))
542542 then $Tuple2({
543543 let @ = inv[0]
544544 if ($isInstanceOf(@, "Int"))
545545 then @
546546 else throw(($getType(@) + " couldn't be cast to Int"))
547547 }, {
548548 let @ = inv[1]
549549 if ($isInstanceOf(@, "Int"))
550550 then @
551551 else throw(($getType(@) + " couldn't be cast to Int"))
552552 })
553553 else throw("Strict value is not equal to itself.")
554554 }
555555 else if ((pType == WX_POOL))
556556 then {
557557 let get = split({
558558 let @ = invoke(poolAddr, "evaluateGetREADONLY", [shareId, lpAmount], nil)
559559 if ($isInstanceOf(@, "String"))
560560 then @
561561 else throw(($getType(@) + " couldn't be cast to String"))
562562 }, "__")
563563 if ((get == get))
564564 then $Tuple2(parseIntValue(get[1]), parseIntValue(get[2]))
565565 else throw("Strict value is not equal to itself.")
566566 }
567567 else throw("Wrong pool type")
568568 let getAmountA = $t01572616192._1
569569 let getAmountB = $t01572616192._2
570570 if ((borrowAmount > 0))
571571 then {
572572 let amountToGetEx = if (if ((borrowAssetId == aId))
573573 then (borrowAmount > getAmountA)
574574 else false)
575575 then (borrowAmount - getAmountA)
576576 else if (if ((borrowAssetId == bId))
577577 then (borrowAmount > getAmountB)
578578 else false)
579579 then (borrowAmount - getAmountB)
580580 else 0
581581 let $t01649516810 = if ((amountToGetEx > 0))
582582 then if ((pType == SF_POOL))
583583 then calcAmountToPaySF(pool, aId, bId, balA, balB, amountToGetEx, borrowAssetId)
584584 else calcAmountToPayWX(pool, aId, bId, balA, balB, amountToGetEx, borrowAssetId)
585585 else $Tuple2("", 0)
586586 let assetToPay = $t01649516810._1
587587 let amountToPay = $t01649516810._2
588588 if ((borrowAssetId == aId))
589589 then $Tuple2(((getAmountA + amountToGetEx) - borrowAmount), (getAmountB - amountToPay))
590590 else $Tuple2((getAmountA - amountToPay), ((getAmountB + amountToGetEx) - borrowAmount))
591591 }
592592 else $Tuple2(getAmountA, getAmountB)
593593 }
594594
595595
596596 func claimFarmed (type,pool) = if ((type == SF_POOL))
597597 then {
598598 let balBefore = accountBalance(SWOPID)
599599 if ((balBefore == balBefore))
600600 then {
601601 let inv = invoke(getSFFarmingAddr(), "claim", [pool], nil)
602602 if ((inv == inv))
603603 then {
604604 let balAfter = accountBalance(SWOPID)
605605 $Tuple2((balAfter - balBefore), SWOPID)
606606 }
607607 else throw("Strict value is not equal to itself.")
608608 }
609609 else throw("Strict value is not equal to itself.")
610610 }
611611 else if ((type == WX_POOL))
612612 then {
613613 let balBefore = accountBalance(WXID)
614614 if ((balBefore == balBefore))
615615 then {
616616 let inv = invoke(getWXFarmingAddr(Address(fromBase58String(pool))), "claimWX", [pool], nil)
617617 if ((inv == inv))
618618 then {
619619 let balAfter = accountBalance(WXID)
620620 $Tuple2((balAfter - balBefore), WXID)
621621 }
622622 else throw("Strict value is not equal to itself.")
623623 }
624624 else throw("Strict value is not equal to itself.")
625625 }
626626 else throw("Wrong pool type")
627627
628628
629629 func replenishByType (pType,pool,feeType,pmtA,aId,pmtB,bId,balA,balB,LPId) = {
630630 let lpBalanceBefore = accountBalance(fromBase58String(LPId))
631631 if ((lpBalanceBefore == lpBalanceBefore))
632632 then {
633633 let poolAddr = addressFromStringValue(pool)
634634 let $t01801918435 = if (if ((pmtA > 0))
635635 then (pmtB > 0)
636636 else false)
637637 then {
638638 let $t01808518201 = calcReplenishByTwoTokens(pType, poolAddr, pmtA, aId, pmtB, bId, balA, balB)
639639 let pmtInA = $t01808518201._1
640640 let pmtInB = $t01808518201._2
641641 let change = $t01808518201._3
642642 let changeId = $t01808518201._4
643643 let inv = replenishTwoTokensByType(poolAddr, pType, pmtInA, aId, pmtInB, bId)
644644 if ((inv == inv))
645645 then $Tuple2(change, changeId)
646646 else throw("Strict value is not equal to itself.")
647647 }
648648 else if ((pmtA > 0))
649649 then $Tuple2(pmtA, aId)
650650 else if ((pmtB > 0))
651651 then $Tuple2(pmtB, bId)
652652 else throw("pmts must be > 0")
653653 let change = $t01801918435._1
654654 let changeId = $t01801918435._2
655655 let inv = if ((change > 0))
656656 then replenishOneTokenByType(poolAddr, pType, change, changeId)
657657 else nil
658658 if ((inv == inv))
659659 then {
660660 let lpBalanceAfter = accountBalance(fromBase58String(LPId))
661661 let totalStaked = (lpBalanceAfter - lpBalanceBefore)
662662 let axlyFeeAmount = fraction(totalStaked, getAxlyFee(pool, feeType), FEE_SCALE6)
663663 let userShareForStake = (totalStaked - axlyFeeAmount)
664664 if ((0 >= userShareForStake))
665665 then throw("amount of staked sharetokens must be > 0")
666666 else {
667667 let invLP = stakeLP(pool, pType, LPId, userShareForStake)
668668 if ((invLP == invLP))
669669 then $Tuple2(userShareForStake, axlyFeeAmount)
670670 else throw("Strict value is not equal to itself.")
671671 }
672672 }
673673 else throw("Strict value is not equal to itself.")
674674 }
675675 else throw("Strict value is not equal to itself.")
676676 }
677677
678678
679679 func replenishEntries (pool,user,stakedAmount,axlyFeeAmount,posNum,shareId,type,withLoan) = {
680680 let totalAmount = getPoolTotalShare(pool)
681681 let totalAmountLoan = getPoolTotalShareWithLoan(pool)
682682 let $t01929319531 = if (withLoan)
683683 then $Tuple2(getIntegerValue(this, (pool + kPoolInterestLoan)), (totalAmountLoan + stakedAmount))
684684 else $Tuple2(getIntegerValue(this, (pool + kPoolInterestNoLoan)), totalAmountLoan)
685685 let curPoolInterest = $t01929319531._1
686686 let totalStakedWithLoan = $t01929319531._2
687687 [IntegerEntry((pool + kPoolTotal), (totalAmount + stakedAmount)), IntegerEntry((pool + kPoolTotalLoan), totalStakedWithLoan), IntegerEntry((((((pool + "_") + user) + "_") + toString(posNum)) + kUserPosition), stakedAmount), IntegerEntry((((((pool + "_") + user) + "_") + toString(posNum)) + kUserPositionInterest), curPoolInterest), StringEntry((((user + "_") + toString(posNum)) + kUserPositionPool), pool), IntegerEntry((user + kUserPositionNum), posNum), ScriptTransfer(moneyBox, axlyFeeAmount, fromBase58String(shareId))]
688688 }
689689
690690
691691 func exchangeKeeper (toToken,pmtAmount,pmtAsset,amountsIn,addresses,assetsToReceive,estReceived,slippageTolerance,minReceived,options) = {
692692 let tokenBalanceBefore = accountBalance(assetIdFromStr(toToken))
693693 if ((tokenBalanceBefore == tokenBalanceBefore))
694694 then {
695695 let inv = invoke(exContract, "swap", [amountsIn, addresses, assetsToReceive, estReceived, slippageTolerance, minReceived, options], [AttachedPayment(pmtAsset, pmtAmount)])
696696 if ((inv == inv))
697697 then (accountBalance(assetIdFromStr(toToken)) - tokenBalanceBefore)
698698 else throw("Strict value is not equal to itself.")
699699 }
700700 else throw("Strict value is not equal to itself.")
701701 }
702702
703703
704704 func exchangePuzzle (toToken,pmtAmount,pmtAsset,routesStr,minToReceive,options) = {
705705 let tokenBalanceBefore = accountBalance(assetIdFromStr(toToken))
706706 if ((tokenBalanceBefore == tokenBalanceBefore))
707707 then {
708708 let inv = invoke(exContract, "puzzleSwap", [routesStr, minToReceive, options], [AttachedPayment(pmtAsset, pmtAmount)])
709709 if ((inv == inv))
710710 then (accountBalance(assetIdFromStr(toToken)) - tokenBalanceBefore)
711711 else throw("Strict value is not equal to itself.")
712712 }
713713 else throw("Strict value is not equal to itself.")
714714 }
715715
716716
717717 func exchangeSwopFi (toToken,pmtAmount,pmtAsset,exchangers,exchangersType,args1,args2,routingAssetsKeys,minAmountToReceive,options) = {
718718 let tokenBalanceBefore = accountBalance(assetIdFromStr(toToken))
719719 if ((tokenBalanceBefore == tokenBalanceBefore))
720720 then {
721721 let inv = invoke(exContract, "swopfiSwap", [exchangers, exchangersType, args1, args2, routingAssetsKeys, minAmountToReceive, options], [AttachedPayment(pmtAsset, pmtAmount)])
722722 if ((inv == inv))
723723 then (accountBalance(assetIdFromStr(toToken)) - tokenBalanceBefore)
724724 else throw("Strict value is not equal to itself.")
725725 }
726726 else throw("Strict value is not equal to itself.")
727727 }
728728
729729
730730 func capitalize (pool,pType,tokenId,tokenAmount) = {
731731 let poolAddr = Address(fromBase58String(pool))
732732 let $t02188221961 = getPoolData(poolAddr, pType)
733733 let AId = $t02188221961._1
734734 let BId = $t02188221961._2
735735 let balA = $t02188221961._3
736736 let balB = $t02188221961._4
737737 let shareId = $t02188221961._5
738738 let $t02196422044 = if ((tokenId == AId))
739739 then $Tuple2(tokenAmount, 0)
740740 else $Tuple2(0, tokenAmount)
741741 let pmtA = $t02196422044._1
742742 let pmtB = $t02196422044._2
743743 let $t02204722151 = replenishByType(pType, pool, NO_FEE, pmtA, AId, pmtB, BId, balA, balB, shareId)
744744 let stakedAmount = $t02204722151._1
745745 let nf = $t02204722151._2
746746 let curPoolInterestLoan = valueOrElse(getInteger(this, (pool + kPoolInterestLoan)), 0)
747747 let curPoolInterestNoLoan = valueOrElse(getInteger(this, (pool + kPoolInterestNoLoan)), 0)
748748 let totalShareAmount = getPoolTotalShare(pool)
749749 let totalShareAmountWithLoan = getPoolTotalShareWithLoan(pool)
750750 let loanPercent = fraction(totalShareAmountWithLoan, SCALE8, totalShareAmount)
751751 let stakedLoan = fraction(stakedAmount, loanPercent, SCALE8)
752752 let stakedNoLoan = (stakedAmount - stakedLoan)
753753 let newInterestLoan = if ((totalShareAmountWithLoan > 0))
754754 then (curPoolInterestLoan + fraction(stakedLoan, SCALE10, totalShareAmountWithLoan))
755755 else 0
756756 let newInterestNoLoan = if (((totalShareAmount - totalShareAmountWithLoan) > 0))
757757 then (curPoolInterestNoLoan + fraction(stakedNoLoan, SCALE10, (totalShareAmount - totalShareAmountWithLoan)))
758758 else 0
759759 let axlyFeeLoan = fraction(stakedLoan, getAxlyFee(pool, CAP_FEE_LOAN), FEE_SCALE6)
760760 let axlyFeeNoLoan = fraction(stakedNoLoan, getAxlyFee(pool, CAP_FEE_NO_LOAN), FEE_SCALE6)
761761 let axlyFee = unstakeLP(pool, pType, shareId, (axlyFeeLoan + axlyFeeNoLoan))
762762 if ((axlyFee == axlyFee))
763763 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))
764764 else throw("Strict value is not equal to itself.")
765765 }
766766
767767
768768 func withdrawAmountCalc (pool,userCanWithdraw,debt,borrowAsset) = {
769769 let poolAddr = Address(fromBase58String(pool))
770770 let pType = valueOrErrorMessage(getString(this, (kPool + pool)), "Unknown pool")
771771 let $t02391923995 = getPoolData(poolAddr, pType)
772772 let assetIdA = $t02391923995._1
773773 let assetIdB = $t02391923995._2
774774 let balA = $t02391923995._3
775775 let balB = $t02391923995._4
776776 let shareId = $t02391923995._5
777777 let cBalABefore = accountBalance(assetIdFromStr(assetIdA))
778778 if ((cBalABefore == cBalABefore))
779779 then {
780780 let cBalBBefore = accountBalance(assetIdFromStr(assetIdB))
781781 if ((cBalBBefore == cBalBBefore))
782782 then {
783783 let inv = if ((pType == SF_POOL))
784784 then invoke(poolAddr, "callFunction", ["withdraw", [toString(userCanWithdraw)]], nil)
785785 else {
786786 let inv = unstakeLP(pool, pType, shareId, userCanWithdraw)
787787 if ((inv == inv))
788788 then invoke(poolAddr, "get", nil, [AttachedPayment(assetIdFromStr(shareId), userCanWithdraw)])
789789 else throw("Strict value is not equal to itself.")
790790 }
791791 if ((inv == inv))
792792 then {
793793 let cBalAAfter = accountBalance(assetIdFromStr(assetIdA))
794794 let cBalBAfter = accountBalance(assetIdFromStr(assetIdB))
795795 let $t02455824647 = $Tuple2((cBalAAfter - cBalABefore), (cBalBAfter - cBalBBefore))
796796 let tokensAmountA = $t02455824647._1
797797 let tokensAmountB = $t02455824647._2
798798 let $t02465025346 = if ((debt > 0))
799799 then {
800800 let amountToGetEx = if (if ((borrowAsset == assetIdA))
801801 then (debt > tokensAmountA)
802802 else false)
803803 then (debt - tokensAmountA)
804804 else if (if ((borrowAsset == assetIdB))
805805 then (debt > tokensAmountB)
806806 else false)
807807 then (debt - tokensAmountB)
808808 else 0
809809 let exInv = if ((amountToGetEx > 0))
810810 then exchangeDirectly(pType, pool, assetIdA, assetIdB, balA, balB, amountToGetEx, borrowAsset)
811811 else 0
812812 if ((exInv == exInv))
813813 then {
814814 let cBalAAfterRepay = accountBalance(assetIdFromStr(assetIdA))
815815 let cBalBAfterRepay = accountBalance(assetIdFromStr(assetIdB))
816816 $Tuple2((cBalAAfterRepay - cBalABefore), (cBalBAfterRepay - cBalBBefore))
817817 }
818818 else throw("Strict value is not equal to itself.")
819819 }
820820 else $Tuple2(tokensAmountA, tokensAmountB)
821821 let toUserAmountA = $t02465025346._1
822822 let toUserAmountB = $t02465025346._2
823823 $Tuple7(toUserAmountA, assetIdA, toUserAmountB, assetIdB, cBalAAfter, cBalBAfter, shareId)
824824 }
825825 else throw("Strict value is not equal to itself.")
826826 }
827827 else throw("Strict value is not equal to itself.")
828828 }
829829 else throw("Strict value is not equal to itself.")
830830 }
831831
832832
833833 func userCanWithdrawShareCalc (user,pool,posId,borrowed) = {
834834 let pAmount = valueOrErrorMessage(getInteger(this, (((((pool + "_") + user) + "_") + posId) + kUserPosition)), "Unknown position")
835835 let userInterest = getIntegerValue(this, (((((pool + "_") + user) + "_") + posId) + kUserPositionInterest))
836836 let poolInterest = if (borrowed)
837837 then getIntegerValue(this, (pool + kPoolInterestLoan))
838838 else getIntegerValue(this, (pool + kPoolInterestNoLoan))
839839 (pAmount + fraction(pAmount, (poolInterest - userInterest), SCALE10))
840840 }
841841
842842
843843 func withdrawToUser (user,pool,posId,stopLoss) = {
844844 let pAmount = valueOrErrorMessage(getInteger(this, (((((pool + "_") + user) + "_") + posId) + kUserPosition)), "Unknown position")
845845 let userInterest = getIntegerValue(this, (((((pool + "_") + user) + "_") + posId) + kUserPositionInterest))
846846 let borrowAmount = valueOrElse(getInteger(this, (((((pool + "_") + user) + "_") + posId) + kUserBorrowAmount)), 0)
847847 let userCanWithdraw = userCanWithdrawShareCalc(user, pool, posId, (borrowAmount > 0))
848848 let poolTotalShare = getPoolTotalShare(pool)
849849 let userAddr = Address(fromBase58String(user))
850850 let borrowAsset = valueOrElse(getString(this, (((((pool + "_") + user) + "_") + posId) + kUserBorrowAssetId)), "")
851851 let debt = if ((borrowAmount > 0))
852852 then {
853853 let @ = invoke(getLendSrvAddr(), "getAssetDebt", [false, ((((pool + "_") + user) + "_") + posId), borrowAsset], nil)
854854 if ($isInstanceOf(@, "Int"))
855855 then @
856856 else throw(($getType(@) + " couldn't be cast to Int"))
857857 }
858858 else 0
859859 let $t02685827011 = withdrawAmountCalc(pool, userCanWithdraw, debt, borrowAsset)
860860 if (($t02685827011 == $t02685827011))
861861 then {
862862 let shareId = $t02685827011._7
863863 let cBalBAfter = $t02685827011._6
864864 let cBalAAfter = $t02685827011._5
865865 let assetIdB = $t02685827011._4
866866 let toUserAmountB = $t02685827011._3
867867 let assetIdA = $t02685827011._2
868868 let toUserAmountA = $t02685827011._1
869869 let closeDbtInv = if ((debt > 0))
870870 then invoke(getLendSrvAddr(), "repayFor", [((user + "_") + posId)], [AttachedPayment(assetIdFromStr(borrowAsset), debt)])
871871 else 0
872872 if ((closeDbtInv == closeDbtInv))
873873 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))
874874 else throw("Strict value is not equal to itself.")
875875 }
876876 else throw("Strict value is not equal to itself.")
877877 }
878878
879879
880880 func parseRequest (requestId) = {
881881 let request = split(valueOrErrorMessage(getString(this, (requestId + kRequestId)), ("No request with id " + requestId)), ",")
882882 let user = request[0]
883883 let pool = request[1]
884884 let pmtA = parseIntValue(request[2])
885885 let AId = request[3]
886886 let pmtB = parseIntValue(request[4])
887887 let BId = request[5]
888888 let balA = parseIntValue(request[6])
889889 let balB = parseIntValue(request[7])
890890 let shareId = request[8]
891891 let bwAsset = request[9]
892892 let bwAmount = parseIntValue(request[10])
893893 $Tuple11(user, pool, pmtA, AId, pmtB, BId, balA, balB, shareId, bwAsset, bwAmount)
894894 }
895895
896896
897897 @Callable(i)
898898 func replenishEVALONLY (pool,leverage,borrowAssetId,pmtA,pmtB) = if (if ((100 > leverage))
899899 then true
900900 else (leverage > 300))
901901 then throw("Leverage can't be <100 and >300")
902902 else {
903903 let pType = valueOrErrorMessage(getString(this, (kPool + pool)), "Pool is not inited")
904904 let $t02852328613 = getPoolData(Address(fromBase58String(pool)), pType)
905905 let AId = $t02852328613._1
906906 let BId = $t02852328613._2
907907 let balA = $t02852328613._3
908908 let balB = $t02852328613._4
909909 let shareId = $t02852328613._5
910910 let borrowAmount = if ((leverage > 100))
911911 then {
912912 let dPriceA = ( let @ = invoke(priceOracleAddr, "getTWAP60", [AId, false], nil)
913913 if ($isInstanceOf(@, "(Int, Int)"))
914914 then @
915915 else throw(($getType(@) + " couldn't be cast to (Int, Int)")))._2
916916 let dPriceB = ( let @ = invoke(priceOracleAddr, "getTWAP60", [BId, false], nil)
917917 if ($isInstanceOf(@, "(Int, Int)"))
918918 then @
919919 else throw(($getType(@) + " couldn't be cast to (Int, Int)")))._2
920920 let paydInDollar = (fraction(dPriceA, pmtA, pow(10, 0, getAssetDecimals(AId), 0, 0, DOWN)) + fraction(dPriceB, pmtB, pow(10, 0, getAssetDecimals(BId), 0, 0, DOWN)))
921921 let borrowPrice = if ((borrowAssetId == AId))
922922 then dPriceA
923923 else dPriceB
924924 (fraction(paydInDollar, (leverage - 100), 100) / borrowPrice)
925925 }
926926 else 0
927927 let $t02918229294 = if ((borrowAssetId == AId))
928928 then $Tuple2((pmtA + borrowAmount), pmtB)
929929 else $Tuple2(pmtA, (pmtB + borrowAmount))
930930 let payInA = $t02918229294._1
931931 let payInB = $t02918229294._2
932932 let lpAmount = calcReplenishLPVirt(pType, pool, pmtA, AId, pmtB, BId, balA, balB)
933933 let newBalA = (balA + payInA)
934934 let newBalB = (balB + payInB)
935935 let $t02944729588 = calcWithdrawLPVirt(pType, pool, lpAmount, shareId, AId, BId, newBalA, newBalB, borrowAmount, borrowAssetId)
936936 if (($t02944729588 == $t02944729588))
937937 then {
938938 let amountGetB = $t02944729588._2
939939 let amountGetA = $t02944729588._1
940940 let ratioBefore = fraction(balB, SCALE8, balA)
941941 let ratioAfter = fraction((newBalB - amountGetB), SCALE8, (newBalA - amountGetA))
942942 let impact = (SCALE8 - fraction(ratioBefore, SCALE8, ratioAfter))
943943 let impactMod = if ((0 > impact))
944944 then (impact * -1)
945945 else impact
946946 $Tuple2(nil, [amountGetA, amountGetB, impactMod])
947947 }
948948 else throw("Strict value is not equal to itself.")
949949 }
950950
951951
952952
953953 @Callable(i)
954954 func getShareAssetPriceREADONLY (shareId) = {
955955 let sharePrices = getSharePrice([shareId])
956956 $Tuple2(nil, sharePrices[0])
957957 }
958958
959959
960960
961961 @Callable(i)
962962 func getUserPositionShareAmountREADONLY (user,posNum) = {
963963 let pool = valueOrErrorMessage(getString(this, (((user + "_") + posNum) + kUserPositionPool)), "Unknown position")
964964 let borrowAmount = getIntegerValue(this, (((((pool + "_") + user) + "_") + posNum) + kUserBorrowAmount))
965965 let userCanWithdraw = userCanWithdrawShareCalc(user, pool, posNum, (borrowAmount > 0))
966966 $Tuple2(nil, userCanWithdraw)
967967 }
968968
969969
970970
971971 @Callable(i)
972972 func replenish (pool,leverage,borrowAssetId) = if (if ((100 > leverage))
973973 then true
974974 else (leverage > 300))
975975 then throw("Leverage can't be <100 and >300")
976976 else {
977977 let pType = valueOrErrorMessage(getString(this, (kPool + pool)), "Pool is not inited")
978978 let $t03074230832 = getPoolData(Address(fromBase58String(pool)), pType)
979979 let AId = $t03074230832._1
980980 let BId = $t03074230832._2
981981 let balA = $t03074230832._3
982982 let balB = $t03074230832._4
983983 let shareId = $t03074230832._5
984984 let $t03083531472 = if ((size(i.payments) == 2))
985985 then if ((assetIdToStr(i.payments[0].assetId) != AId))
986986 then throw("Wrong payment asset A")
987987 else if ((assetIdToStr(i.payments[1].assetId) != BId))
988988 then throw("Wrong payment asset B")
989989 else $Tuple4(i.payments[0].amount, AId, i.payments[1].amount, BId)
990990 else if ((size(i.payments) == 1))
991991 then if ((assetIdToStr(i.payments[0].assetId) == AId))
992992 then $Tuple4(i.payments[0].amount, AId, 0, BId)
993993 else if ((assetIdToStr(i.payments[0].assetId) == BId))
994994 then $Tuple4(0, AId, i.payments[0].amount, BId)
995995 else throw("Wrong payment")
996996 else throw("One or two payments expected")
997997 let pmtA = $t03083531472._1
998998 let pmtAssetA = $t03083531472._2
999999 let pmtB = $t03083531472._3
10001000 let pmtAssetB = $t03083531472._4
10011001 let newPosNum = getNewUserPositionNumber(pool, toString(i.caller))
10021002 if ((leverage > 100))
10031003 then {
10041004 let dPriceA = ( let @ = invoke(priceOracleAddr, "getTWAP60", [pmtAssetA, false], nil)
10051005 if ($isInstanceOf(@, "(Int, Int)"))
10061006 then @
10071007 else throw(($getType(@) + " couldn't be cast to (Int, Int)")))._2
10081008 let dPriceB = ( let @ = invoke(priceOracleAddr, "getTWAP60", [pmtAssetB, false], nil)
10091009 if ($isInstanceOf(@, "(Int, Int)"))
10101010 then @
10111011 else throw(($getType(@) + " couldn't be cast to (Int, Int)")))._2
10121012 let paydInDollar = (fraction(dPriceA, pmtA, pow(10, 0, getAssetDecimals(pmtAssetA), 0, 0, DOWN)) + fraction(dPriceB, pmtB, pow(10, 0, getAssetDecimals(pmtAssetB), 0, 0, DOWN)))
10131013 let borrowPrice = if ((borrowAssetId == AId))
10141014 then dPriceA
10151015 else dPriceB
1016- let borrowAmount = (fraction(paydInDollar, (leverage - 100), 100) / borrowPrice)
1016+ let borrowAmount = fraction(fraction(paydInDollar, (leverage - 100), 100), pow(10, 0, getAssetDecimals(borrowAssetId), 0, 0, DOWN), borrowPrice)
10171017 let request = makeString([toString(i.caller), pool, toString(pmtA), pmtAssetA, toString(pmtB), pmtAssetB, toString(balA), toString(balB), shareId, borrowAssetId, toString(borrowAmount)], ",")
10181018 let newRequestId = {
10191019 let @ = invoke(this, "createNewRequest", [request], nil)
10201020 if ($isInstanceOf(@, "Int"))
10211021 then @
10221022 else throw(($getType(@) + " couldn't be cast to Int"))
10231023 }
10241024 if ((newRequestId == newRequestId))
10251025 then {
10261026 let args = [((toString(i.caller) + "_") + toString(newPosNum)), shareId, borrowAssetId, borrowAmount, toString(this), "replenishFromLand", toString(valueOrErrorMessage(newRequestId, "Can't create new request"))]
10271027 let inv = reentrantInvoke(getLendSrvAddr(), "flashPosition", args, nil)
10281028 if ((inv == inv))
10291029 then nil
10301030 else throw("Strict value is not equal to itself.")
10311031 }
10321032 else throw("Strict value is not equal to itself.")
10331033 }
10341034 else {
1035- let $t03285532967 = replenishByType(pType, pool, NO_LOAN_FEE, pmtA, AId, pmtB, BId, balA, balB, shareId)
1036- let userStaked = $t03285532967._1
1037- let axlyFee = $t03285532967._2
1035+ let $t03292233034 = replenishByType(pType, pool, NO_LOAN_FEE, pmtA, AId, pmtB, BId, balA, balB, shareId)
1036+ let userStaked = $t03292233034._1
1037+ let axlyFee = $t03292233034._2
10381038 (replenishEntries(pool, toString(i.caller), userStaked, axlyFee, newPosNum, shareId, pType, false) ++ getCursEntries(AId, BId, shareId))
10391039 }
10401040 }
10411041
10421042
10431043
10441044 @Callable(i)
10451045 func replenishFromLand (requestId) = {
1046- let $t03317833282 = parseRequest(requestId)
1047- let user = $t03317833282._1
1048- let pool = $t03317833282._2
1049- let pmtA = $t03317833282._3
1050- let AId = $t03317833282._4
1051- let pmtB = $t03317833282._5
1052- let BId = $t03317833282._6
1053- let balA = $t03317833282._7
1054- let balB = $t03317833282._8
1055- let shareId = $t03317833282._9
1056- let bwAsset = $t03317833282._10
1057- let bwAmount = $t03317833282._11
1046+ let $t03324533349 = parseRequest(requestId)
1047+ let user = $t03324533349._1
1048+ let pool = $t03324533349._2
1049+ let pmtA = $t03324533349._3
1050+ let AId = $t03324533349._4
1051+ let pmtB = $t03324533349._5
1052+ let BId = $t03324533349._6
1053+ let balA = $t03324533349._7
1054+ let balB = $t03324533349._8
1055+ let shareId = $t03324533349._9
1056+ let bwAsset = $t03324533349._10
1057+ let bwAmount = $t03324533349._11
10581058 if ((size(i.payments) != 1))
10591059 then throw("Wrong payment size")
10601060 else if (if ((assetIdToStr(i.payments[0].assetId) != bwAsset))
10611061 then true
10621062 else (i.payments[0].amount != bwAmount))
10631063 then throw("Wrong payment")
10641064 else {
1065- let $t03347233596 = if ((AId == bwAsset))
1065+ let $t03353933663 = if ((AId == bwAsset))
10661066 then $Tuple2((pmtA + i.payments[0].amount), pmtB)
10671067 else $Tuple2(pmtA, (pmtB + i.payments[0].amount))
1068- let pmtAllA = $t03347233596._1
1069- let pmtAllB = $t03347233596._2
1068+ let pmtAllA = $t03353933663._1
1069+ let pmtAllB = $t03353933663._2
10701070 let pType = valueOrErrorMessage(getString(this, (kPool + pool)), "Unknown pool")
1071- let $t03367833787 = replenishByType(pType, pool, LOAN_FEE, pmtA, AId, pmtB, BId, balA, balB, shareId)
1072- let userStaked = $t03367833787._1
1073- let axlyFee = $t03367833787._2
1071+ let $t03374533854 = replenishByType(pType, pool, LOAN_FEE, pmtA, AId, pmtB, BId, balA, balB, shareId)
1072+ let userStaked = $t03374533854._1
1073+ let axlyFee = $t03374533854._2
10741074 let posNum = getNewUserPositionNumber(pool, toString(i.caller))
10751075 let borrowEntries = [IntegerEntry((((((pool + "_") + user) + "_") + toString(posNum)) + kUserBorrowAmount), bwAmount), StringEntry((((((pool + "_") + user) + "_") + toString(posNum)) + kUserBorrowAssetId), bwAsset)]
10761076 let entries = replenishEntries(pool, user, userStaked, axlyFee, posNum, shareId, pType, true)
10771077 $Tuple2((((entries ++ getCursEntries(AId, BId, shareId)) ++ borrowEntries) :+ DeleteEntry((requestId + kRequestId))), userStaked)
10781078 }
10791079 }
10801080
10811081
10821082
10831083 @Callable(i)
10841084 func withdraw (pool,posId) = withdrawToUser(toString(i.caller), pool, toString(posId), false)
10851085
10861086
10871087
10881088 @Callable(i)
10891089 func createUpdateStopLoss (posId,poolId,assetId,price) = {
10901090 let tokenOraclePrice = ( let @ = invoke(priceOracleAddr, "getTWAP60", [assetId, false], nil)
10911091 if ($isInstanceOf(@, "(Int, Int)"))
10921092 then @
10931093 else throw(($getType(@) + " couldn't be cast to (Int, Int)")))._1
10941094 if (!(isDefined(getInteger(this, (((((poolId + "_") + toString(i.caller)) + "_") + toString(posId)) + kUserPosition)))))
10951095 then throw("There are no user position")
10961096 else if ((0 >= price))
10971097 then throw("Price must be greater than 0")
10981098 else if ((price > tokenOraclePrice))
10991099 then throw("Price must be less than current token price")
11001100 else [IntegerEntry((((((((toString(i.caller) + "_") + toString(posId)) + "_") + poolId) + "_") + assetId) + kUserStopLoss), price)]
11011101 }
11021102
11031103
11041104
11051105 @Callable(i)
11061106 func deleteStopLoss (posId,poolId,assetId) = if (!(isDefined(getInteger(this, (((((((toString(i.caller) + "_") + toString(posId)) + "_") + poolId) + "_") + assetId) + kUserStopLoss)))))
11071107 then throw("No entry")
11081108 else [DeleteEntry((((((((toString(i.caller) + "_") + toString(posId)) + "_") + poolId) + "_") + assetId) + kUserStopLoss))]
11091109
11101110
11111111
11121112 @Callable(i)
11131113 func createNewRequest (params) = valueOrElse(isSelfCall(i), {
11141114 let newRequestId = (valueOrElse(getInteger(this, kRequestIter), 0) + 1)
11151115 $Tuple2([StringEntry((toString(newRequestId) + kRequestId), params), IntegerEntry(kRequestIter, newRequestId)], newRequestId)
11161116 })
11171117
11181118
11191119
11201120 @Callable(i)
11211121 func stopLoss (user,posId,pool,assetId) = {
11221122 let tokenOraclePrice = ( let @ = invoke(priceOracleAddr, "getTWAP60", [assetId, false], nil)
11231123 if ($isInstanceOf(@, "(Int, Int)"))
11241124 then @
11251125 else throw(($getType(@) + " couldn't be cast to (Int, Int)")))._1
11261126 if (!(isDefined(getInteger(this, (((((((user + "_") + toString(posId)) + "_") + pool) + "_") + assetId) + kUserStopLoss)))))
11271127 then throw("No entry")
11281128 else (withdrawToUser(toString(i.caller), pool, toString(posId), true) :+ DeleteEntry((((((((user + "_") + toString(posId)) + "_") + pool) + "_") + assetId) + kUserStopLoss)))
11291129 }
11301130
11311131
11321132
11331133 @Callable(i)
11341134 func liquidate (user,posId,liquidateAmount) = {
11351135 let pool = valueOrErrorMessage(getString(this, (((user + "_") + posId) + kUserPositionPool)), "no position")
11361136 let pType = valueOrErrorMessage(getString(this, (kPool + pool)), "Pool is not inited")
1137- let $t03657036660 = getPoolData(Address(fromBase58String(pool)), pType)
1138- let AId = $t03657036660._1
1139- let BId = $t03657036660._2
1140- let balA = $t03657036660._3
1141- let balB = $t03657036660._4
1142- let shareId = $t03657036660._5
1137+ let $t03663736727 = getPoolData(Address(fromBase58String(pool)), pType)
1138+ let AId = $t03663736727._1
1139+ let BId = $t03663736727._2
1140+ let balA = $t03663736727._3
1141+ let balB = $t03663736727._4
1142+ let shareId = $t03663736727._5
11431143 let amount = unstakeLP(pool, pType, shareId, liquidateAmount)
11441144 let borrowAmount = getIntegerValue(this, (((((pool + "_") + user) + "_") + posId) + kUserBorrowAmount))
11451145 let borrowAsset = getStringValue(this, (((((pool + "_") + user) + "_") + posId) + kUserBorrowAssetId))
11461146 let userCanWithdraw = userCanWithdrawShareCalc(user, pool, posId, (borrowAmount > 0))
11471147 if ((borrowAmount == 0))
11481148 then throw("You can't liquidate position without borrow")
11491149 else [IntegerEntry((((((pool + "_") + user) + "_") + posId) + kUserPositionInterest), getIntegerValue(this, (pool + kPoolInterestLoan))), IntegerEntry((pool + kPoolTotalLoan), (getPoolTotalShareWithLoan(pool) - liquidateAmount)), IntegerEntry((pool + kPoolTotal), (getPoolTotalShare(pool) - liquidateAmount)), IntegerEntry((((((pool + "_") + user) + "_") + posId) + kUserPosition), (userCanWithdraw - liquidateAmount)), ScriptTransfer(i.caller, amount, fromBase58String(shareId))]
11501150 }
11511151
11521152
11531153
11541154 @Callable(i)
11551155 func capitalizeExKeeper (pool,type,tokenToId,amountToExchange,claim,amountsIn,addresses,assetsToReceive,estReceived,slippageTolerance,minReceived,options) = {
1156- let $t03789538089 = if (claim)
1156+ let $t03796238156 = if (claim)
11571157 then claimFarmed(type, pool)
11581158 else {
11591159 let claimedAsset = if ((type == SF_POOL))
11601160 then SWOPID
11611161 else WXID
11621162 $Tuple2(amountToExchange, claimedAsset)
11631163 }
1164- let claimedAmount = $t03789538089._1
1165- let claimedAsset = $t03789538089._2
1164+ let claimedAmount = $t03796238156._1
1165+ let claimedAsset = $t03796238156._2
11661166 let exchangedAmount = exchangeKeeper(tokenToId, amountToExchange, claimedAsset, amountsIn, addresses, assetsToReceive, estReceived, slippageTolerance, minReceived, options)
11671167 let change = (claimedAmount - amountToExchange)
11681168 let changeEntry = if ((change > 0))
11691169 then [IntegerEntry((pool + kPoolCapChange), (change + valueOrElse(getInteger(this, (pool + kPoolCapChange)), 0)))]
11701170 else nil
11711171 (capitalize(pool, type, tokenToId, exchangedAmount) ++ changeEntry)
11721172 }
11731173
11741174
11751175
11761176 @Callable(i)
11771177 func capitalizeExPuzzle (pool,type,tokenToId,amountToExchange,claim,routesStr,minToReceive,options) = {
1178- let $t03874638940 = if (claim)
1178+ let $t03881339007 = if (claim)
11791179 then claimFarmed(type, pool)
11801180 else {
11811181 let claimedAsset = if ((type == SF_POOL))
11821182 then SWOPID
11831183 else WXID
11841184 $Tuple2(amountToExchange, claimedAsset)
11851185 }
1186- let claimedAmount = $t03874638940._1
1187- let claimedAsset = $t03874638940._2
1186+ let claimedAmount = $t03881339007._1
1187+ let claimedAsset = $t03881339007._2
11881188 let exchangedAmount = exchangePuzzle(tokenToId, amountToExchange, claimedAsset, routesStr, minToReceive, options)
11891189 let change = (claimedAmount - amountToExchange)
11901190 let changeEntry = if ((change > 0))
11911191 then [IntegerEntry((pool + kPoolCapChange), (change + valueOrElse(getInteger(this, (pool + kPoolCapChange)), 0)))]
11921192 else nil
11931193 (capitalize(pool, type, tokenToId, exchangedAmount) ++ changeEntry)
11941194 }
11951195
11961196
11971197
11981198 @Callable(i)
11991199 func capitalizeExSwopFi (pool,type,tokenToId,amountToExchange,claim,exchangers,exchangersType,args1,args2,routingAssetsKeys,minAmountToReceive,options) = {
1200- let $t03966339857 = if (claim)
1200+ let $t03973039924 = if (claim)
12011201 then claimFarmed(type, pool)
12021202 else {
12031203 let claimedAsset = if ((type == SF_POOL))
12041204 then SWOPID
12051205 else WXID
12061206 $Tuple2(amountToExchange, claimedAsset)
12071207 }
1208- let claimedAmount = $t03966339857._1
1209- let claimedAsset = $t03966339857._2
1208+ let claimedAmount = $t03973039924._1
1209+ let claimedAsset = $t03973039924._2
12101210 let exchangedAmount = exchangeSwopFi(tokenToId, amountToExchange, claimedAsset, exchangers, exchangersType, args1, args2, routingAssetsKeys, minAmountToReceive, options)
12111211 let change = (claimedAmount - amountToExchange)
12121212 let changeEntry = if ((change > 0))
12131213 then [IntegerEntry((pool + kPoolCapChange), (change + valueOrElse(getInteger(this, (pool + kPoolCapChange)), 0)))]
12141214 else nil
12151215 (capitalize(pool, type, tokenToId, exchangedAmount) ++ changeEntry)
12161216 }
12171217
12181218
12191219
12201220 @Callable(i)
12211221 func initNewPool (type,poolAddr,inFeeNoLoan,inFeeLoan,capFeeNoLoan,capFeeWithLoan,stoplossFeeNoLoan,stoplossFeeWithLoan) = if (if ((type != SF_POOL))
12221222 then (type != WX_POOL)
12231223 else false)
12241224 then throw("Wrong type")
12251225 else {
1226- let $t04055040644 = getPoolData(Address(fromBase58String(poolAddr)), type)
1227- let aId = $t04055040644._1
1228- let bId = $t04055040644._2
1229- let aBal = $t04055040644._3
1230- let bBal = $t04055040644._4
1231- let shareId = $t04055040644._5
1226+ let $t04061740711 = getPoolData(Address(fromBase58String(poolAddr)), type)
1227+ let aId = $t04061740711._1
1228+ let bId = $t04061740711._2
1229+ let aBal = $t04061740711._3
1230+ let bBal = $t04061740711._4
1231+ let shareId = $t04061740711._5
12321232 [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)]
12331233 }
12341234
12351235
12361236
12371237 @Callable(i)
12381238 func capitalizeTest (pool,pType,tokenId,tokenAmount) = {
12391239 let poolAddr = Address(fromBase58String(pool))
1240- let $t04144041519 = getPoolData(poolAddr, pType)
1241- let AId = $t04144041519._1
1242- let BId = $t04144041519._2
1243- let balA = $t04144041519._3
1244- let balB = $t04144041519._4
1245- let shareId = $t04144041519._5
1246- let $t04152241602 = if ((tokenId == AId))
1240+ let $t04150741586 = getPoolData(poolAddr, pType)
1241+ let AId = $t04150741586._1
1242+ let BId = $t04150741586._2
1243+ let balA = $t04150741586._3
1244+ let balB = $t04150741586._4
1245+ let shareId = $t04150741586._5
1246+ let $t04158941669 = if ((tokenId == AId))
12471247 then $Tuple2(tokenAmount, 0)
12481248 else $Tuple2(0, tokenAmount)
1249- let pmtA = $t04152241602._1
1250- let pmtB = $t04152241602._2
1251- let $t04160541709 = replenishByType(pType, pool, NO_FEE, pmtA, AId, pmtB, BId, balA, balB, shareId)
1252- let stakedAmount = $t04160541709._1
1253- let nf = $t04160541709._2
1249+ let pmtA = $t04158941669._1
1250+ let pmtB = $t04158941669._2
1251+ let $t04167241776 = replenishByType(pType, pool, NO_FEE, pmtA, AId, pmtB, BId, balA, balB, shareId)
1252+ let stakedAmount = $t04167241776._1
1253+ let nf = $t04167241776._2
12541254 let curPoolInterestLoan = valueOrElse(getInteger(this, (pool + kPoolInterestLoan)), 0)
12551255 let curPoolInterestNoLoan = valueOrElse(getInteger(this, (pool + kPoolInterestNoLoan)), 0)
12561256 let totalShareAmount = getPoolTotalShare(pool)
12571257 let totalShareAmountWithLoan = getPoolTotalShareWithLoan(pool)
12581258 let loanPercent = fraction(totalShareAmountWithLoan, SCALE8, totalShareAmount)
12591259 let stakedLoan = fraction(stakedAmount, loanPercent, SCALE8)
12601260 let stakedNoLoan = (stakedAmount - stakedLoan)
12611261 let newInterestLoan = if ((totalShareAmountWithLoan > 0))
12621262 then (curPoolInterestLoan + fraction(stakedLoan, SCALE10, totalShareAmountWithLoan))
12631263 else 0
12641264 let newInterestNoLoan = if (((totalShareAmount - totalShareAmountWithLoan) > 0))
12651265 then (curPoolInterestNoLoan + fraction(stakedNoLoan, SCALE10, (totalShareAmount - totalShareAmountWithLoan)))
12661266 else 0
12671267 let axlyFeeLoan = fraction(stakedLoan, getAxlyFee(pool, CAP_FEE_LOAN), FEE_SCALE6)
12681268 let axlyFeeNoLoan = fraction(stakedNoLoan, getAxlyFee(pool, CAP_FEE_NO_LOAN), FEE_SCALE6)
12691269 let axlyFee = unstakeLP(pool, pType, shareId, (axlyFeeLoan + axlyFeeNoLoan))
12701270 if ((axlyFee == axlyFee))
12711271 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))
12721272 else throw("Strict value is not equal to itself.")
12731273 }
12741274
12751275
12761276
12771277 @Callable(i)
12781278 func claimFarmedTest (type,pool) = if ((type == SF_POOL))
12791279 then {
12801280 let balBefore = accountBalance(SWOPID)
12811281 if ((balBefore == balBefore))
12821282 then {
12831283 let inv = invoke(getSFFarmingAddr(), "claim", [pool], nil)
12841284 if ((inv == inv))
12851285 then {
12861286 let balAfter = accountBalance(SWOPID)
12871287 $Tuple2(nil, $Tuple2((balAfter - balBefore), SWOPID))
12881288 }
12891289 else throw("Strict value is not equal to itself.")
12901290 }
12911291 else throw("Strict value is not equal to itself.")
12921292 }
12931293 else if ((type == WX_POOL))
12941294 then {
12951295 let balBefore = accountBalance(WXID)
12961296 if ((balBefore == balBefore))
12971297 then {
12981298 let inv = invoke(getWXFarmingAddr(Address(fromBase58String(pool))), "claimWX", [pool], nil)
12991299 if ((inv == inv))
13001300 then {
13011301 let balAfter = accountBalance(WXID)
13021302 $Tuple2(nil, $Tuple2((balAfter - balBefore), WXID))
13031303 }
13041304 else throw("Strict value is not equal to itself.")
13051305 }
13061306 else throw("Strict value is not equal to itself.")
13071307 }
13081308 else throw("Wrong pool type")
13091309
13101310
13111311 @Verifier(tx)
13121312 func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
13131313

github/deemru/w8io/026f985 
177.52 ms