tx · 5xMJoKavkFVxdBvFQXTXsnvdqvFWjGpAhQ8JZMJtYGB

3MvRWw2FPEimFCTGtK7qY9uAJbM7XJ4ZfJS:  -0.04500000 Waves

2023.06.14 08:19 [2621908] smart account 3MvRWw2FPEimFCTGtK7qY9uAJbM7XJ4ZfJS > SELF 0.00000000 Waves

{ "type": 13, "id": "5xMJoKavkFVxdBvFQXTXsnvdqvFWjGpAhQ8JZMJtYGB", "fee": 4500000, "feeAssetId": null, "timestamp": 1686719964382, "version": 2, "chainId": 84, "sender": "3MvRWw2FPEimFCTGtK7qY9uAJbM7XJ4ZfJS", "senderPublicKey": "HP8sssVq1866F7CaPQJwgFrt6fsqhQjKwM84cL1wjD2a", "proofs": [ "8vrhyUsPEKkdUscN5bdN4bPJ4PSASMeRv5KdeRCKL3uyjbUWbBjVCkZcji8L1LmK1mbyudAoNdaHycEHntzV8TQ" ], "script": "base64:BgKYAQgCEgcKBQgBCAEBEgMKAQgSBAoCCAgSBQoDCBgYEgUKAwgBCBIDCgEIEgQKAggBEgYKBAEICAESBQoDAQgIEgMKAQgSBgoECAEICBIFCgMICAESDgoMCAgIAQQRGBgRAQEYEgoKCAgICAEECAEYEg4KDAgICAEEGBgYGBgBGBIKCggICAEBAQEBARIGCgQICAgBEgQKAggIYQAHU0ZfUE9PTAICU0YAB1dYX1BPT0wCAldYAA9DQVBfRkVFX05PX0xPQU4CCWNhcE5vTG9hbgAMQ0FQX0ZFRV9MT0FOAgdjYXBMb2FuABRTVE9QTE9TU19GRUVfTk9fTE9BTgIOc3RvcExvc3NOb0xvYW4ADVNUT1BMT1NTX0xPQU4CDHN0b3BMb3NzTG9hbgAITE9BTl9GRUUCBGxvYW4AC05PX0xPQU5fRkVFAgZub0xvYW4ABk5PX0ZFRQIFbm9GZWUABlNDQUxFOACAwtcvAAdTQ0FMRTEwAIDIr6AlAApGRUVfU0NBTEU2AMCEPQAUa1NGUG9vbEFBc3NldEJhbGFuY2UCD0FfYXNzZXRfYmFsYW5jZQA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": 0 } View: original | compacted Prev: AyhzvFQeNbLSeaLq5z1UEcTGbpMRYAba7CrywXMMaqQo Next: HYSUg4AuWBthwUmmmQtJ4vzBUhtN5LuAyYsvqunx2vm Diff:
OldNewDifferences
11351135 let $t03507635185 = replenishByType(pType, pool, LOAN_FEE, pmtA, AId, pmtB, BId, balA, balB, shareId)
11361136 let userStaked = $t03507635185._1
11371137 let axlyFee = $t03507635185._2
1138- let posNum = getNewUserPositionNumber(toString(i.caller))
1138+ let posNum = getNewUserPositionNumber(user)
11391139 let borrowEntries = [IntegerEntry((((((pool + "_") + user) + "_") + toString(posNum)) + kUserBorrowAmount), bwAmount), StringEntry((((((pool + "_") + user) + "_") + toString(posNum)) + kUserBorrowAssetId), bwAsset)]
11401140 let entries = replenishEntries(pool, user, userStaked, axlyFee, posNum, shareId, pType, true)
11411141 $Tuple2((((entries ++ getCursEntries(AId, BId, shareId)) ++ borrowEntries) :+ DeleteEntry((requestId + kRequestId))), userStaked)
11981198 func liquidate (user,posId,liquidateAmount) = {
11991199 let pool = valueOrErrorMessage(getString(this, (((user + "_") + posId) + kUserPositionPool)), "no position")
12001200 let pType = valueOrErrorMessage(getString(this, (kPool + pool)), "Pool is not inited")
1201- let $t03796238052 = getPoolData(Address(fromBase58String(pool)), pType)
1202- let AId = $t03796238052._1
1203- let BId = $t03796238052._2
1204- let balA = $t03796238052._3
1205- let balB = $t03796238052._4
1206- let shareId = $t03796238052._5
1201+ let $t03794738037 = getPoolData(Address(fromBase58String(pool)), pType)
1202+ let AId = $t03794738037._1
1203+ let BId = $t03794738037._2
1204+ let balA = $t03794738037._3
1205+ let balB = $t03794738037._4
1206+ let shareId = $t03794738037._5
12071207 let amount = unstakeLP(pool, pType, shareId, liquidateAmount)
12081208 let borrowAmount = getIntegerValue(this, (((((pool + "_") + user) + "_") + posId) + kUserBorrowAmount))
12091209 let borrowAsset = getStringValue(this, (((((pool + "_") + user) + "_") + posId) + kUserBorrowAssetId))
12171217
12181218 @Callable(i)
12191219 func capitalizeExKeeper (pool,type,tokenToId,amountToExchange,claim,amountsIn,addresses,assetsToReceive,estReceived,slippageTolerance,minReceived,options) = {
1220- let $t03928739481 = if (claim)
1220+ let $t03927239466 = if (claim)
12211221 then claimFarmed(type, pool)
12221222 else {
12231223 let claimedAsset = if ((type == SF_POOL))
12251225 else WXID
12261226 $Tuple2(amountToExchange, claimedAsset)
12271227 }
1228- let claimedAmount = $t03928739481._1
1229- let claimedAsset = $t03928739481._2
1228+ let claimedAmount = $t03927239466._1
1229+ let claimedAsset = $t03927239466._2
12301230 let exchangedAmount = exchangeKeeper(tokenToId, amountToExchange, claimedAsset, amountsIn, addresses, assetsToReceive, estReceived, slippageTolerance, minReceived, options)
12311231 let change = (claimedAmount - amountToExchange)
12321232 let changeEntry = if ((change > 0))
12391239
12401240 @Callable(i)
12411241 func capitalizeExPuzzle (pool,type,tokenToId,amountToExchange,claim,routesStr,minToReceive,options) = {
1242- let $t04013840332 = if (claim)
1242+ let $t04012340317 = if (claim)
12431243 then claimFarmed(type, pool)
12441244 else {
12451245 let claimedAsset = if ((type == SF_POOL))
12471247 else WXID
12481248 $Tuple2(amountToExchange, claimedAsset)
12491249 }
1250- let claimedAmount = $t04013840332._1
1251- let claimedAsset = $t04013840332._2
1250+ let claimedAmount = $t04012340317._1
1251+ let claimedAsset = $t04012340317._2
12521252 let exchangedAmount = exchangePuzzle(tokenToId, amountToExchange, claimedAsset, routesStr, minToReceive, options)
12531253 let change = (claimedAmount - amountToExchange)
12541254 let changeEntry = if ((change > 0))
12611261
12621262 @Callable(i)
12631263 func capitalizeExSwopFi (pool,type,tokenToId,amountToExchange,claim,exchangers,exchangersType,args1,args2,routingAssetsKeys,minAmountToReceive,options) = {
1264- let $t04105541249 = if (claim)
1264+ let $t04104041234 = if (claim)
12651265 then claimFarmed(type, pool)
12661266 else {
12671267 let claimedAsset = if ((type == SF_POOL))
12691269 else WXID
12701270 $Tuple2(amountToExchange, claimedAsset)
12711271 }
1272- let claimedAmount = $t04105541249._1
1273- let claimedAsset = $t04105541249._2
1272+ let claimedAmount = $t04104041234._1
1273+ let claimedAsset = $t04104041234._2
12741274 let exchangedAmount = exchangeSwopFi(tokenToId, amountToExchange, claimedAsset, exchangers, exchangersType, args1, args2, routingAssetsKeys, minAmountToReceive, options)
12751275 let change = (claimedAmount - amountToExchange)
12761276 let changeEntry = if ((change > 0))
12871287 else false)
12881288 then throw("Wrong type")
12891289 else {
1290- let $t04194242036 = getPoolData(Address(fromBase58String(poolAddr)), type)
1291- let aId = $t04194242036._1
1292- let bId = $t04194242036._2
1293- let aBal = $t04194242036._3
1294- let bBal = $t04194242036._4
1295- let shareId = $t04194242036._5
1290+ let $t04192742021 = getPoolData(Address(fromBase58String(poolAddr)), type)
1291+ let aId = $t04192742021._1
1292+ let bId = $t04192742021._2
1293+ let aBal = $t04192742021._3
1294+ let bBal = $t04192742021._4
1295+ let shareId = $t04192742021._5
12961296 [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)]
12971297 }
12981298
13011301 @Callable(i)
13021302 func capitalizeTest (pool,pType,tokenId,tokenAmount) = {
13031303 let poolAddr = Address(fromBase58String(pool))
1304- let $t04283242911 = getPoolData(poolAddr, pType)
1305- let AId = $t04283242911._1
1306- let BId = $t04283242911._2
1307- let balA = $t04283242911._3
1308- let balB = $t04283242911._4
1309- let shareId = $t04283242911._5
1310- let $t04291442994 = if ((tokenId == AId))
1304+ let $t04281742896 = getPoolData(poolAddr, pType)
1305+ let AId = $t04281742896._1
1306+ let BId = $t04281742896._2
1307+ let balA = $t04281742896._3
1308+ let balB = $t04281742896._4
1309+ let shareId = $t04281742896._5
1310+ let $t04289942979 = if ((tokenId == AId))
13111311 then $Tuple2(tokenAmount, 0)
13121312 else $Tuple2(0, tokenAmount)
1313- let pmtA = $t04291442994._1
1314- let pmtB = $t04291442994._2
1315- let $t04299743101 = replenishByType(pType, pool, NO_FEE, pmtA, AId, pmtB, BId, balA, balB, shareId)
1316- let stakedAmount = $t04299743101._1
1317- let nf = $t04299743101._2
1313+ let pmtA = $t04289942979._1
1314+ let pmtB = $t04289942979._2
1315+ let $t04298243086 = replenishByType(pType, pool, NO_FEE, pmtA, AId, pmtB, BId, balA, balB, shareId)
1316+ let stakedAmount = $t04298243086._1
1317+ let nf = $t04298243086._2
13181318 let curPoolInterestLoan = valueOrElse(getInteger(this, (pool + kPoolInterestLoan)), 0)
13191319 let curPoolInterestNoLoan = valueOrElse(getInteger(this, (pool + kPoolInterestNoLoan)), 0)
13201320 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 (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 50")
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($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)
279279 }
280280
281281
282282 func getSharePrice (shareId) = {
283283 let pool = valueOrErrorMessage(getString(this, (shareId + kSharePool)), "Can't find pool addr by share id")
284284 let poolAddr = Address(fromBase58String(pool))
285285 let pType = valueOrErrorMessage(getString(this, (kPool + pool)), "Pool is not inited")
286286 let $t083478412 = getPoolData(poolAddr, pType)
287287 let aId = $t083478412._1
288288 let bId = $t083478412._2
289289 let aBalance = $t083478412._3
290290 let bBalance = $t083478412._4
291291 let dPriceA = ( let @ = invoke(priceOracleAddr, "getTWAP60", [aId, false], nil)
292292 if ($isInstanceOf(@, "(Int, Int)"))
293293 then @
294294 else throw(($getType(@) + " couldn't be cast to (Int, Int)")))._2
295295 let dPriceB = ( let @ = invoke(priceOracleAddr, "getTWAP60", [bId, false], nil)
296296 if ($isInstanceOf(@, "(Int, Int)"))
297297 then @
298298 else throw(($getType(@) + " couldn't be cast to (Int, Int)")))._2
299299 let shareSupply = getShareSupply(poolAddr, pType, shareId)
300300 let APrecision = pow(10, 0, getAssetDecimals(aId), 0, 0, DOWN)
301301 let BPrecision = pow(10, 0, getAssetDecimals(bId), 0, 0, DOWN)
302302 let sharePrecision = pow(10, 0, getAssetDecimals(shareId), 0, 0, DOWN)
303303 let sum = (fraction(aBalance, dPriceA, APrecision) + fraction(bBalance, dPriceB, BPrecision))
304304 fraction(sum, sharePrecision, shareSupply)
305305 }
306306
307307
308308 func getSharePrices (shareIds) = {
309309 func getPrices (a,shareId) = (a :+ getSharePrice(shareId))
310310
311311 let $l = shareIds
312312 let $s = size($l)
313313 let $acc0 = nil
314314 func $f0_1 ($a,$i) = if (($i >= $s))
315315 then $a
316316 else getPrices($a, $l[$i])
317317
318318 func $f0_2 ($a,$i) = if (($i >= $s))
319319 then $a
320320 else throw("List size exceeds 20")
321321
322322 $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($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20)
323323 }
324324
325325
326326 func getCursEntries (aId,bId,shareId) = {
327327 let assetsPrices = getAssetsPrice([aId, bId])
328328 let sharePrice = getSharePrice(shareId)
329329 let prices = [toString(assetsPrices[0]), toString(assetsPrices[1]), toString(sharePrice)]
330330 [StringEntry(kTokenLastPrice, makeString(prices, ","))]
331331 }
332332
333333
334334 func calcReplenishByTwoTokens (pType,poolAddr,pmtA,aId,pmtB,bId,balA,balB) = {
335335 let $t096409945 = if ((pType == SF_POOL))
336336 then $Tuple2(nil, nil)
337337 else $Tuple2(split({
338338 let @ = invoke(poolAddr, "evaluatePutByAmountAssetREADONLY", [pmtA], nil)
339339 if ($isInstanceOf(@, "String"))
340340 then @
341341 else throw(($getType(@) + " couldn't be cast to String"))
342342 }, "__"), split({
343343 let @ = invoke(poolAddr, "evaluatePutByPriceAssetREADONLY", [pmtB], nil)
344344 if ($isInstanceOf(@, "String"))
345345 then @
346346 else throw(($getType(@) + " couldn't be cast to String"))
347347 }, "__"))
348348 if (($t096409945 == $t096409945))
349349 then {
350350 let evalPutInB = $t096409945._2
351351 let evalPutInA = $t096409945._1
352352 let $t0995510151 = if ((pType == SF_POOL))
353353 then $Tuple2(fraction(SCALE8, pmtA, balA), fraction(SCALE8, pmtB, balB))
354354 else $Tuple2(parseIntValue(evalPutInA[1]), parseIntValue(evalPutInB[1]))
355355 let ratioA = $t0995510151._1
356356 let ratioB = $t0995510151._2
357357 let $t01015710639 = if ((ratioB > ratioA))
358358 then {
359359 let pmt = if ((pType == SF_POOL))
360360 then fraction(balB, ratioA, SCALE8, CEILING)
361361 else parseIntValue(evalPutInA[8])
362362 $Tuple5(pmtA, pmt, (pmtB - pmt), bId, ratioB)
363363 }
364364 else {
365365 let pmt = if ((pType == SF_POOL))
366366 then fraction(balA, ratioB, SCALE8, CEILING)
367367 else parseIntValue(evalPutInB[7])
368368 $Tuple5(pmt, pmtB, (pmtA - pmt), aId, ratioA)
369369 }
370370 let pmtInA = $t01015710639._1
371371 let pmtInB = $t01015710639._2
372372 let change = $t01015710639._3
373373 let changeAssetId = $t01015710639._4
374374 let lp = $t01015710639._5
375375 $Tuple5(pmtInA, pmtInB, change, changeAssetId, lp)
376376 }
377377 else throw("Strict value is not equal to itself.")
378378 }
379379
380380
381381 func replenishTwoTokensByType (poolAddr,pType,pmtA,aId,pmtB,bId) = {
382382 let payments = [AttachedPayment(assetIdFromStr(aId), pmtA), AttachedPayment(assetIdFromStr(bId), pmtB)]
383383 if ((pType == SF_POOL))
384384 then invoke(poolAddr, "callFunction", ["replenishWithTwoTokens", ["false", "0"]], payments)
385385 else invoke(poolAddr, "put", [1000000, false], payments)
386386 }
387387
388388
389389 func replenishOneTokenByType (poolAddr,pType,pmt,pmtId) = {
390390 let payments = [AttachedPayment(assetIdFromStr(pmtId), pmt)]
391391 if ((pType == SF_POOL))
392392 then invoke(poolAddr, "callFunction", ["replenishWithOneToken", ["0", "false", "0"]], payments)
393393 else invoke(poolAddr, "putOneTkn", [0, false], payments)
394394 }
395395
396396
397397 func stakeLP (pool,pType,shareId,amount) = {
398398 let payments = [AttachedPayment(fromBase58String(shareId), amount)]
399399 if ((pType == SF_POOL))
400400 then invoke(getSFFarmingAddr(), "lockShareTokens", [pool, 0], payments)
401401 else invoke(getWXFarmingAddr(addressFromStringValue(pool)), "stake", nil, payments)
402402 }
403403
404404
405405 func unstakeLP (pool,pType,shareId,amount) = {
406406 let $t01186912226 = if ((pType == SF_POOL))
407407 then $Tuple3(getSFFarmingAddr(), "withdrawShareTokens", [pool, amount])
408408 else if ((pType == WX_POOL))
409409 then $Tuple3(getWXFarmingAddr(Address(fromBase58String(pool))), "unstake", [shareId, amount])
410410 else throw("Wrong pool type")
411411 let farmAddr = $t01186912226._1
412412 let fName = $t01186912226._2
413413 let params = $t01186912226._3
414414 let inv = invoke(farmAddr, fName, params, nil)
415415 if ((inv == inv))
416416 then amount
417417 else throw("Strict value is not equal to itself.")
418418 }
419419
420420
421421 func calcAmountToPaySF (pool,assetIdA,assetIdB,balA,balB,amountTokenToGet,assetTokenToGet) = {
422422 let poolAddr = Address(fromBase58String(pool))
423423 let feeScale6 = 1000000
424424 let fee = getIntegerValue(poolAddr, kSFPoolFee)
425425 let amntGetNoFee = fraction(amountTokenToGet, feeScale6, (feeScale6 - fee))
426426 let $t01263912927 = if ((assetTokenToGet == assetIdA))
427427 then {
428428 let amountToPay = fraction(balA, amntGetNoFee, (balB - amntGetNoFee))
429429 $Tuple2(amountToPay, assetIdB)
430430 }
431431 else {
432432 let amountToPay = fraction(balB, amntGetNoFee, (balA - amntGetNoFee))
433433 $Tuple2(amountToPay, assetIdA)
434434 }
435435 let amountToPay = $t01263912927._1
436436 let assetToPay = $t01263912927._2
437437 $Tuple2(assetToPay, amountToPay)
438438 }
439439
440440
441441 func calcAmountToPayWX (pool,assetIdA,assetIdB,balA,balB,amountTokenToGet,assetTokenToGet) = {
442442 let prFee = getIntegerValue(wxSwapContract, "%s__protocolFee")
443443 let pFee = getIntegerValue(wxSwapContract, "%s__poolFee")
444444 let feeScale = toBigInt(100000000)
445445 let $t01326613574 = if ((assetTokenToGet == assetIdA))
446446 then {
447447 let amountToPay = fraction(balA, amountTokenToGet, (balB - amountTokenToGet))
448448 $Tuple2(amountToPay, assetIdB)
449449 }
450450 else {
451451 let amountToPay = fraction(balB, amountTokenToGet, (balA - amountTokenToGet))
452452 $Tuple2(amountToPay, assetIdA)
453453 }
454454 let amountToPay = $t01326613574._1
455455 let assetToPay = $t01326613574._2
456456 let amountToPayWithFee = toInt(fraction(toBigInt(amountToPay), feeScale, (feeScale - toBigInt((prFee + pFee)))))
457457 $Tuple2(assetToPay, amountToPayWithFee)
458458 }
459459
460460
461461 func exchangeDirectly (type,pool,assetIdA,assetIdB,balA,balB,amountTokenToGet,assetTokenToGet) = if ((type == SF_POOL))
462462 then {
463463 let $t01391214034 = calcAmountToPaySF(pool, assetIdA, assetIdB, balA, balB, amountTokenToGet, assetTokenToGet)
464464 let assetToPay = $t01391214034._1
465465 let amountToPay = $t01391214034._2
466466 invoke(addressFromStringValue(pool), "callFunction", ["exchange", ["1"]], [AttachedPayment(assetIdFromStr(assetToPay), amountToPay)])
467467 }
468468 else {
469469 let $t01418514307 = calcAmountToPayWX(pool, assetIdA, assetIdB, balA, balB, amountTokenToGet, assetTokenToGet)
470470 let assetToPay = $t01418514307._1
471471 let amountToPay = $t01418514307._2
472472 invoke(wxSwapContract, "swap", [1, assetTokenToGet, toString(this)], [AttachedPayment(assetIdFromStr(assetToPay), amountToPay)])
473473 }
474474
475475
476476 func calcReplenishLPVirt (pType,pool,pmtA,aId,pmtB,bId,balA,balB) = {
477477 let poolAddr = addressFromStringValue(pool)
478478 if ((pType == SF_POOL))
479479 then {
480480 let inv = {
481481 let @ = invoke(poolAddr, "callFunction", ["calcLPReplenishDiffPropREADONLY", [toString(pmtA), toString(pmtB), "0"]], nil)
482482 if ($isInstanceOf(@, "List[Any]"))
483483 then @
484484 else throw(($getType(@) + " couldn't be cast to List[Any]"))
485485 }
486486 if ((inv == inv))
487487 then {
488488 let @ = inv[0]
489489 if ($isInstanceOf(@, "Int"))
490490 then @
491491 else throw(($getType(@) + " couldn't be cast to Int"))
492492 }
493493 else throw("Strict value is not equal to itself.")
494494 }
495495 else if ((pType == WX_POOL))
496496 then {
497497 let $t01487215213 = if (if ((pmtA > 0))
498498 then (pmtB > 0)
499499 else false)
500500 then {
501501 let $t01495315079 = calcReplenishByTwoTokens(pType, poolAddr, pmtA, aId, pmtB, bId, balA, balB)
502502 let pmtInA = $t01495315079._1
503503 let pmtInB = $t01495315079._2
504504 let change = $t01495315079._3
505505 let changeId = $t01495315079._4
506506 let lpAmount = $t01495315079._5
507507 $Tuple3(change, changeId, lpAmount)
508508 }
509509 else if ((pmtA > 0))
510510 then $Tuple3(pmtA, aId, 0)
511511 else $Tuple3(pmtB, bId, 0)
512512 let change = $t01487215213._1
513513 let changeId = $t01487215213._2
514514 let lpTwo = $t01487215213._3
515515 let lpOne = if ((change > 0))
516516 then {
517517 let inv = {
518518 let @ = invoke(poolAddr, "putOneTknREADONLY", [changeId, change], nil)
519519 if ($isInstanceOf(@, "(Int, Int, Int)"))
520520 then @
521521 else throw(($getType(@) + " couldn't be cast to (Int, Int, Int)"))
522522 }
523523 if ((inv == inv))
524524 then inv._1
525525 else throw("Strict value is not equal to itself.")
526526 }
527527 else 0
528528 (lpTwo + lpOne)
529529 }
530530 else throw("Wrong pool type")
531531 }
532532
533533
534534 func calcWithdrawLPVirt (pType,pool,lpAmount,shareId,aId,bId,balA,balB,borrowAmount,borrowAssetId) = {
535535 let poolAddr = addressFromStringValue(pool)
536536 let $t01569916199 = if ((pType == SF_POOL))
537537 then {
538538 let inv = {
539539 let @ = invoke(poolAddr, "callFunction", ["withdrawREADONLY", [toString(lpAmount), toString(balA), toString(balB)]], nil)
540540 if ($isInstanceOf(@, "List[Any]"))
541541 then @
542542 else throw(($getType(@) + " couldn't be cast to List[Any]"))
543543 }
544544 if ((inv == inv))
545545 then $Tuple2({
546546 let @ = inv[0]
547547 if ($isInstanceOf(@, "Int"))
548548 then @
549549 else throw(($getType(@) + " couldn't be cast to Int"))
550550 }, {
551551 let @ = inv[1]
552552 if ($isInstanceOf(@, "Int"))
553553 then @
554554 else throw(($getType(@) + " couldn't be cast to Int"))
555555 })
556556 else throw("Strict value is not equal to itself.")
557557 }
558558 else if ((pType == WX_POOL))
559559 then {
560560 let get = split({
561561 let @ = invoke(poolAddr, "evaluateGetREADONLY", [shareId, lpAmount], nil)
562562 if ($isInstanceOf(@, "String"))
563563 then @
564564 else throw(($getType(@) + " couldn't be cast to String"))
565565 }, "__")
566566 if ((get == get))
567567 then $Tuple2(parseIntValue(get[1]), parseIntValue(get[2]))
568568 else throw("Strict value is not equal to itself.")
569569 }
570570 else throw("Wrong pool type")
571571 let getAmountA = $t01569916199._1
572572 let getAmountB = $t01569916199._2
573573 if ((borrowAmount > 0))
574574 then {
575575 let amountToGetEx = if (if ((borrowAssetId == aId))
576576 then (borrowAmount > getAmountA)
577577 else false)
578578 then (borrowAmount - getAmountA)
579579 else if (if ((borrowAssetId == bId))
580580 then (borrowAmount > getAmountB)
581581 else false)
582582 then (borrowAmount - getAmountB)
583583 else 0
584584 let $t01650216817 = if ((amountToGetEx > 0))
585585 then if ((pType == SF_POOL))
586586 then calcAmountToPaySF(pool, aId, bId, balA, balB, amountToGetEx, borrowAssetId)
587587 else calcAmountToPayWX(pool, aId, bId, balA, balB, amountToGetEx, borrowAssetId)
588588 else $Tuple2("", 0)
589589 let assetToPay = $t01650216817._1
590590 let amountToPay = $t01650216817._2
591591 if ((borrowAssetId == aId))
592592 then $Tuple2(((getAmountA + amountToGetEx) - borrowAmount), (getAmountB - amountToPay))
593593 else $Tuple2((getAmountA - amountToPay), ((getAmountB + amountToGetEx) - borrowAmount))
594594 }
595595 else $Tuple2(getAmountA, getAmountB)
596596 }
597597
598598
599599 func claimFarmed (type,pool) = if ((type == SF_POOL))
600600 then {
601601 let balBefore = accountBalance(SWOPID)
602602 if ((balBefore == balBefore))
603603 then {
604604 let inv = invoke(getSFFarmingAddr(), "claim", [pool], nil)
605605 if ((inv == inv))
606606 then {
607607 let balAfter = accountBalance(SWOPID)
608608 $Tuple2((balAfter - balBefore), SWOPID)
609609 }
610610 else throw("Strict value is not equal to itself.")
611611 }
612612 else throw("Strict value is not equal to itself.")
613613 }
614614 else if ((type == WX_POOL))
615615 then {
616616 let balBefore = accountBalance(WXID)
617617 if ((balBefore == balBefore))
618618 then {
619619 let inv = invoke(getWXFarmingAddr(Address(fromBase58String(pool))), "claimWX", [pool], nil)
620620 if ((inv == inv))
621621 then {
622622 let balAfter = accountBalance(WXID)
623623 $Tuple2((balAfter - balBefore), WXID)
624624 }
625625 else throw("Strict value is not equal to itself.")
626626 }
627627 else throw("Strict value is not equal to itself.")
628628 }
629629 else throw("Wrong pool type")
630630
631631
632632 func replenishByType (pType,pool,feeType,pmtA,aId,pmtB,bId,balA,balB,LPId) = {
633633 let lpBalanceBefore = accountBalance(fromBase58String(LPId))
634634 if ((lpBalanceBefore == lpBalanceBefore))
635635 then {
636636 let poolAddr = addressFromStringValue(pool)
637637 let $t01802618442 = if (if ((pmtA > 0))
638638 then (pmtB > 0)
639639 else false)
640640 then {
641641 let $t01809218208 = calcReplenishByTwoTokens(pType, poolAddr, pmtA, aId, pmtB, bId, balA, balB)
642642 let pmtInA = $t01809218208._1
643643 let pmtInB = $t01809218208._2
644644 let change = $t01809218208._3
645645 let changeId = $t01809218208._4
646646 let inv = replenishTwoTokensByType(poolAddr, pType, pmtInA, aId, pmtInB, bId)
647647 if ((inv == inv))
648648 then $Tuple2(change, changeId)
649649 else throw("Strict value is not equal to itself.")
650650 }
651651 else if ((pmtA > 0))
652652 then $Tuple2(pmtA, aId)
653653 else if ((pmtB > 0))
654654 then $Tuple2(pmtB, bId)
655655 else throw("pmts must be > 0")
656656 let change = $t01802618442._1
657657 let changeId = $t01802618442._2
658658 let inv = if ((change > 0))
659659 then replenishOneTokenByType(poolAddr, pType, change, changeId)
660660 else nil
661661 if ((inv == inv))
662662 then {
663663 let lpBalanceAfter = accountBalance(fromBase58String(LPId))
664664 let totalStaked = (lpBalanceAfter - lpBalanceBefore)
665665 let axlyFeeAmount = fraction(totalStaked, getAxlyFee(pool, feeType), FEE_SCALE6)
666666 let userShareForStake = (totalStaked - axlyFeeAmount)
667667 if ((0 >= userShareForStake))
668668 then throw("amount of staked sharetokens must be > 0")
669669 else {
670670 let invLP = stakeLP(pool, pType, LPId, userShareForStake)
671671 if ((invLP == invLP))
672672 then $Tuple2(userShareForStake, axlyFeeAmount)
673673 else throw("Strict value is not equal to itself.")
674674 }
675675 }
676676 else throw("Strict value is not equal to itself.")
677677 }
678678 else throw("Strict value is not equal to itself.")
679679 }
680680
681681
682682 func replenishEntries (pool,user,stakedAmount,axlyFeeAmount,posNum,shareId,type,withLoan) = {
683683 let totalAmount = getPoolTotalShare(pool)
684684 let totalAmountLoan = getPoolTotalShareWithLoan(pool)
685685 let $t01930019538 = if (withLoan)
686686 then $Tuple2(getIntegerValue(this, (pool + kPoolInterestLoan)), (totalAmountLoan + stakedAmount))
687687 else $Tuple2(getIntegerValue(this, (pool + kPoolInterestNoLoan)), totalAmountLoan)
688688 let curPoolInterest = $t01930019538._1
689689 let totalStakedWithLoan = $t01930019538._2
690690 [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))]
691691 }
692692
693693
694694 func exchangeKeeper (toToken,pmtAmount,pmtAsset,amountsIn,addresses,assetsToReceive,estReceived,slippageTolerance,minReceived,options) = {
695695 let tokenBalanceBefore = accountBalance(assetIdFromStr(toToken))
696696 if ((tokenBalanceBefore == tokenBalanceBefore))
697697 then {
698698 let inv = invoke(exContract, "swap", [amountsIn, addresses, assetsToReceive, estReceived, slippageTolerance, minReceived, options], [AttachedPayment(pmtAsset, pmtAmount)])
699699 if ((inv == inv))
700700 then (accountBalance(assetIdFromStr(toToken)) - tokenBalanceBefore)
701701 else throw("Strict value is not equal to itself.")
702702 }
703703 else throw("Strict value is not equal to itself.")
704704 }
705705
706706
707707 func exchangePuzzle (toToken,pmtAmount,pmtAsset,routesStr,minToReceive,options) = {
708708 let tokenBalanceBefore = accountBalance(assetIdFromStr(toToken))
709709 if ((tokenBalanceBefore == tokenBalanceBefore))
710710 then {
711711 let inv = invoke(exContract, "puzzleSwap", [routesStr, minToReceive, options], [AttachedPayment(pmtAsset, pmtAmount)])
712712 if ((inv == inv))
713713 then (accountBalance(assetIdFromStr(toToken)) - tokenBalanceBefore)
714714 else throw("Strict value is not equal to itself.")
715715 }
716716 else throw("Strict value is not equal to itself.")
717717 }
718718
719719
720720 func exchangeSwopFi (toToken,pmtAmount,pmtAsset,exchangers,exchangersType,args1,args2,routingAssetsKeys,minAmountToReceive,options) = {
721721 let tokenBalanceBefore = accountBalance(assetIdFromStr(toToken))
722722 if ((tokenBalanceBefore == tokenBalanceBefore))
723723 then {
724724 let inv = invoke(exContract, "swopfiSwap", [exchangers, exchangersType, args1, args2, routingAssetsKeys, minAmountToReceive, options], [AttachedPayment(pmtAsset, pmtAmount)])
725725 if ((inv == inv))
726726 then (accountBalance(assetIdFromStr(toToken)) - tokenBalanceBefore)
727727 else throw("Strict value is not equal to itself.")
728728 }
729729 else throw("Strict value is not equal to itself.")
730730 }
731731
732732
733733 func capitalize (pool,pType,tokenId,tokenAmount) = {
734734 let poolAddr = Address(fromBase58String(pool))
735735 let $t02188921955 = getPoolData(poolAddr, pType)
736736 let AId = $t02188921955._1
737737 let BId = $t02188921955._2
738738 let balA = $t02188921955._3
739739 let balB = $t02188921955._4
740740 let shareId = $t02188921955._5
741741 if (if ((tokenId != AId))
742742 then (tokenId != BId)
743743 else false)
744744 then throw("Wrong asset")
745745 else {
746746 let $t02204022120 = if ((tokenId == AId))
747747 then $Tuple2(tokenAmount, 0)
748748 else $Tuple2(0, tokenAmount)
749749 let pmtA = $t02204022120._1
750750 let pmtB = $t02204022120._2
751751 let $t02212322227 = replenishByType(pType, pool, NO_FEE, pmtA, AId, pmtB, BId, balA, balB, shareId)
752752 let stakedAmount = $t02212322227._1
753753 let nf = $t02212322227._2
754754 let curPoolInterestLoan = valueOrElse(getInteger(this, (pool + kPoolInterestLoan)), 0)
755755 let curPoolInterestNoLoan = valueOrElse(getInteger(this, (pool + kPoolInterestNoLoan)), 0)
756756 let totalShareAmount = getPoolTotalShare(pool)
757757 let totalShareAmountWithLoan = getPoolTotalShareWithLoan(pool)
758758 let loanPercent = fraction(totalShareAmountWithLoan, SCALE8, totalShareAmount)
759759 let stakedLoan = fraction(stakedAmount, loanPercent, SCALE8)
760760 let stakedNoLoan = (stakedAmount - stakedLoan)
761761 let newInterestLoan = if ((totalShareAmountWithLoan > 0))
762762 then (curPoolInterestLoan + fraction(stakedLoan, SCALE10, totalShareAmountWithLoan))
763763 else 0
764764 let newInterestNoLoan = if (((totalShareAmount - totalShareAmountWithLoan) > 0))
765765 then (curPoolInterestNoLoan + fraction(stakedNoLoan, SCALE10, (totalShareAmount - totalShareAmountWithLoan)))
766766 else 0
767767 let axlyFeeLoan = fraction(stakedLoan, getAxlyFee(pool, CAP_FEE_LOAN), FEE_SCALE6)
768768 let axlyFeeNoLoan = fraction(stakedNoLoan, getAxlyFee(pool, CAP_FEE_NO_LOAN), FEE_SCALE6)
769769 let axlyFee = unstakeLP(pool, pType, shareId, (axlyFeeLoan + axlyFeeNoLoan))
770770 if ((axlyFee == axlyFee))
771771 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))
772772 else throw("Strict value is not equal to itself.")
773773 }
774774 }
775775
776776
777777 func withdrawAmountCalc (pool,userCanWithdraw,debt,borrowAsset) = {
778778 let poolAddr = Address(fromBase58String(pool))
779779 let pType = valueOrErrorMessage(getString(this, (kPool + pool)), "Unknown pool")
780780 let $t02399524071 = getPoolData(poolAddr, pType)
781781 let assetIdA = $t02399524071._1
782782 let assetIdB = $t02399524071._2
783783 let balA = $t02399524071._3
784784 let balB = $t02399524071._4
785785 let shareId = $t02399524071._5
786786 let cBalABefore = accountBalance(assetIdFromStr(assetIdA))
787787 if ((cBalABefore == cBalABefore))
788788 then {
789789 let cBalBBefore = accountBalance(assetIdFromStr(assetIdB))
790790 if ((cBalBBefore == cBalBBefore))
791791 then {
792792 let inv = if ((pType == SF_POOL))
793793 then invoke(poolAddr, "callFunction", ["withdraw", [toString(userCanWithdraw)]], nil)
794794 else {
795795 let inv = unstakeLP(pool, pType, shareId, userCanWithdraw)
796796 if ((inv == inv))
797797 then invoke(poolAddr, "get", nil, [AttachedPayment(assetIdFromStr(shareId), userCanWithdraw)])
798798 else throw("Strict value is not equal to itself.")
799799 }
800800 if ((inv == inv))
801801 then {
802802 let cBalAAfter = accountBalance(assetIdFromStr(assetIdA))
803803 let cBalBAfter = accountBalance(assetIdFromStr(assetIdB))
804804 let $t02463424723 = $Tuple2((cBalAAfter - cBalABefore), (cBalBAfter - cBalBBefore))
805805 let tokensAmountA = $t02463424723._1
806806 let tokensAmountB = $t02463424723._2
807807 let $t02472625422 = if ((debt > 0))
808808 then {
809809 let amountToGetEx = if (if ((borrowAsset == assetIdA))
810810 then (debt > tokensAmountA)
811811 else false)
812812 then (debt - tokensAmountA)
813813 else if (if ((borrowAsset == assetIdB))
814814 then (debt > tokensAmountB)
815815 else false)
816816 then (debt - tokensAmountB)
817817 else 0
818818 let exInv = if ((amountToGetEx > 0))
819819 then exchangeDirectly(pType, pool, assetIdA, assetIdB, balA, balB, amountToGetEx, borrowAsset)
820820 else 0
821821 if ((exInv == exInv))
822822 then {
823823 let cBalAAfterRepay = accountBalance(assetIdFromStr(assetIdA))
824824 let cBalBAfterRepay = accountBalance(assetIdFromStr(assetIdB))
825825 $Tuple2((cBalAAfterRepay - cBalABefore), (cBalBAfterRepay - cBalBBefore))
826826 }
827827 else throw("Strict value is not equal to itself.")
828828 }
829829 else $Tuple2(tokensAmountA, tokensAmountB)
830830 let toUserAmountA = $t02472625422._1
831831 let toUserAmountB = $t02472625422._2
832832 $Tuple7(toUserAmountA, assetIdA, toUserAmountB, assetIdB, cBalAAfter, cBalBAfter, shareId)
833833 }
834834 else throw("Strict value is not equal to itself.")
835835 }
836836 else throw("Strict value is not equal to itself.")
837837 }
838838 else throw("Strict value is not equal to itself.")
839839 }
840840
841841
842842 func userCanWithdrawShareCalc (user,pool,posId,borrowed) = {
843843 let pAmount = valueOrErrorMessage(getInteger(this, (((((pool + "_") + user) + "_") + posId) + kUserPosition)), "Unknown position")
844844 let userInterest = getIntegerValue(this, (((((pool + "_") + user) + "_") + posId) + kUserPositionInterest))
845845 let poolInterest = if (borrowed)
846846 then getIntegerValue(this, (pool + kPoolInterestLoan))
847847 else getIntegerValue(this, (pool + kPoolInterestNoLoan))
848848 (pAmount + fraction(pAmount, (poolInterest - userInterest), SCALE10))
849849 }
850850
851851
852852 func withdrawToUser (user,pool,posId,stopLoss) = {
853853 let pAmount = valueOrErrorMessage(getInteger(this, (((((pool + "_") + user) + "_") + posId) + kUserPosition)), "Unknown position")
854854 let userInterest = getIntegerValue(this, (((((pool + "_") + user) + "_") + posId) + kUserPositionInterest))
855855 let borrowAmount = valueOrElse(getInteger(this, (((((pool + "_") + user) + "_") + posId) + kUserBorrowAmount)), 0)
856856 let userCanWithdraw = userCanWithdrawShareCalc(user, pool, posId, (borrowAmount > 0))
857857 let poolTotalShare = getPoolTotalShare(pool)
858858 let userAddr = Address(fromBase58String(user))
859859 let borrowAsset = valueOrElse(getString(this, (((((pool + "_") + user) + "_") + posId) + kUserBorrowAssetId)), "")
860860 let debt = if ((borrowAmount > 0))
861861 then {
862862 let @ = invoke(getLendSrvAddr(), "getAssetDebt", [false, ((((pool + "_") + user) + "_") + posId), borrowAsset], nil)
863863 if ($isInstanceOf(@, "Int"))
864864 then @
865865 else throw(($getType(@) + " couldn't be cast to Int"))
866866 }
867867 else 0
868868 let $t02693427087 = withdrawAmountCalc(pool, userCanWithdraw, debt, borrowAsset)
869869 if (($t02693427087 == $t02693427087))
870870 then {
871871 let shareId = $t02693427087._7
872872 let cBalBAfter = $t02693427087._6
873873 let cBalAAfter = $t02693427087._5
874874 let assetIdB = $t02693427087._4
875875 let toUserAmountB = $t02693427087._3
876876 let assetIdA = $t02693427087._2
877877 let toUserAmountA = $t02693427087._1
878878 let closeDbtInv = if ((debt > 0))
879879 then invoke(getLendSrvAddr(), "repayFor", [((user + "_") + posId)], [AttachedPayment(assetIdFromStr(borrowAsset), debt)])
880880 else 0
881881 if ((closeDbtInv == closeDbtInv))
882882 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))
883883 else throw("Strict value is not equal to itself.")
884884 }
885885 else throw("Strict value is not equal to itself.")
886886 }
887887
888888
889889 func parseRequest (requestId) = {
890890 let request = split(valueOrErrorMessage(getString(this, (requestId + kRequestId)), ("No request with id " + requestId)), ",")
891891 let user = request[0]
892892 let pool = request[1]
893893 let pmtA = parseIntValue(request[2])
894894 let AId = request[3]
895895 let pmtB = parseIntValue(request[4])
896896 let BId = request[5]
897897 let balA = parseIntValue(request[6])
898898 let balB = parseIntValue(request[7])
899899 let shareId = request[8]
900900 let bwAsset = request[9]
901901 let bwAmount = parseIntValue(request[10])
902902 $Tuple11(user, pool, pmtA, AId, pmtB, BId, balA, balB, shareId, bwAsset, bwAmount)
903903 }
904904
905905
906906 func calcBorrowAmount (pmtA,pmtB,aId,bId,leverage,borrowId) = {
907907 let dPriceA = ( let @ = invoke(priceOracleAddr, "getTWAP60", [aId, false], nil)
908908 if ($isInstanceOf(@, "(Int, Int)"))
909909 then @
910910 else throw(($getType(@) + " couldn't be cast to (Int, Int)")))._2
911911 let dPriceB = ( let @ = invoke(priceOracleAddr, "getTWAP60", [bId, false], nil)
912912 if ($isInstanceOf(@, "(Int, Int)"))
913913 then @
914914 else throw(($getType(@) + " couldn't be cast to (Int, Int)")))._2
915915 let decPrA = pow(10, 0, getAssetDecimals(aId), 0, 0, DOWN)
916916 let decPrB = pow(10, 0, getAssetDecimals(bId), 0, 0, DOWN)
917917 let paydInDollar = (fraction(dPriceA, pmtA, decPrA) + fraction(dPriceB, pmtB, decPrB))
918918 let $t02877328870 = if ((borrowId == aId))
919919 then $Tuple2(dPriceA, decPrA)
920920 else $Tuple2(dPriceB, decPrB)
921921 let borrowPrice = $t02877328870._1
922922 let borrowDecPr = $t02877328870._2
923923 fraction(fraction(paydInDollar, (leverage - 100), 100), borrowDecPr, borrowPrice)
924924 }
925925
926926
927927 @Callable(i)
928928 func replenishEVALONLY (pool,leverage,borrowId,pmtA,pmtB) = if (if ((100 > leverage))
929929 then true
930930 else (leverage > 300))
931931 then throw("Leverage can't be <100 and >300")
932932 else {
933933 let pType = valueOrErrorMessage(getString(this, (kPool + pool)), "Pool is not inited")
934934 let $t02928229372 = getPoolData(Address(fromBase58String(pool)), pType)
935935 let AId = $t02928229372._1
936936 let BId = $t02928229372._2
937937 let balA = $t02928229372._3
938938 let balB = $t02928229372._4
939939 let shareId = $t02928229372._5
940940 let borrowAmount = if ((leverage > 100))
941941 then calcBorrowAmount(pmtA, pmtB, AId, BId, leverage, borrowId)
942942 else 0
943943 let $t02950729614 = if ((borrowId == AId))
944944 then $Tuple2((pmtA + borrowAmount), pmtB)
945945 else $Tuple2(pmtA, (pmtB + borrowAmount))
946946 let payInA = $t02950729614._1
947947 let payInB = $t02950729614._2
948948 let lpAmount = calcReplenishLPVirt(pType, pool, payInA, AId, payInB, BId, balA, balB)
949949 let newBalA = (balA + payInA)
950950 let newBalB = (balB + payInB)
951951 let $t02977129907 = calcWithdrawLPVirt(pType, pool, lpAmount, shareId, AId, BId, newBalA, newBalB, borrowAmount, borrowId)
952952 if (($t02977129907 == $t02977129907))
953953 then {
954954 let amountGetB = $t02977129907._2
955955 let amountGetA = $t02977129907._1
956956 let ratioBefore = fraction(balB, SCALE8, balA)
957957 let ratioAfter = fraction((newBalB - amountGetB), SCALE8, (newBalA - amountGetA))
958958 let impact = (SCALE8 - fraction(ratioBefore, SCALE8, ratioAfter))
959959 let impactMod = if ((0 > impact))
960960 then (impact * -1)
961961 else impact
962962 $Tuple2(nil, [amountGetA, amountGetB, impactMod])
963963 }
964964 else throw("Strict value is not equal to itself.")
965965 }
966966
967967
968968
969969 @Callable(i)
970970 func getShareAssetPriceREADONLY (shareId) = {
971971 let sharePrices = getSharePrice(shareId)
972972 $Tuple2(nil, sharePrices)
973973 }
974974
975975
976976
977977 @Callable(i)
978978 func getUserPositionShareAmountREADONLY (user,posNum) = {
979979 let pool = valueOrErrorMessage(getString(this, (((user + "_") + posNum) + kUserPositionPool)), "Unknown position")
980980 let borrowAmount = getIntegerValue(this, (((((pool + "_") + user) + "_") + posNum) + kUserBorrowAmount))
981981 let userCanWithdraw = userCanWithdrawShareCalc(user, pool, posNum, (borrowAmount > 0))
982982 $Tuple2(nil, userCanWithdraw)
983983 }
984984
985985
986986
987987 @Callable(i)
988988 func getUserPositionInDollarsREADONLY (user,pools,posNum) = {
989989 func userPos (a,pool) = {
990990 let $t03094530979 = a
991991 let totalPos = $t03094530979._1
992992 let posDebt = $t03094530979._2
993993 let index = $t03094530979._3
994994 let pType = valueOrErrorMessage(getString(this, (kPool + pool)), "Pool is not inited")
995995 let $t03107131161 = getPoolData(Address(fromBase58String(pool)), pType)
996996 let AId = $t03107131161._1
997997 let BId = $t03107131161._2
998998 let balA = $t03107131161._3
999999 let balB = $t03107131161._4
10001000 let shareId = $t03107131161._5
10011001 let borrowAmount = valueOrElse(getInteger(this, (((((pool + "_") + user) + "_") + posNum[index]) + kUserBorrowAmount)), 0)
10021002 let userCanWithdraw = userCanWithdrawShareCalc(user, pool, posNum[index], (borrowAmount > 0))
10031003 let sharePrices = getSharePrice(shareId)
10041004 let decPrShare = pow(10, 0, getAssetDecimals(shareId), 0, 0, DOWN)
10051005 let shareD = fraction(userCanWithdraw, sharePrices, decPrShare)
10061006 if ((borrowAmount == 0))
10071007 then $Tuple3((totalPos :+ shareD), (posDebt :+ 0), (index + 1))
10081008 else {
10091009 let borrowAsset = getStringValue(this, (((((pool + "_") + user) + "_") + posNum[index]) + kUserBorrowAssetId))
10101010 let debt = {
10111011 let @ = invoke(getLendSrvAddr(), "getAssetDebt", [false, ((((pool + "_") + user) + "_") + posNum[index]), borrowAsset], nil)
10121012 if ($isInstanceOf(@, "Int"))
10131013 then @
10141014 else throw(($getType(@) + " couldn't be cast to Int"))
10151015 }
10161016 let borrowAssetPrice = ( let @ = invoke(priceOracleAddr, "getTWAP60", [borrowAsset, false], nil)
10171017 if ($isInstanceOf(@, "(Int, Int)"))
10181018 then @
10191019 else throw(($getType(@) + " couldn't be cast to (Int, Int)")))._1
10201020 let decPrBorrowId = pow(10, 0, getAssetDecimals(borrowAsset), 0, 0, DOWN)
10211021 let debtD = fraction(debt, borrowAssetPrice, decPrBorrowId)
10221022 $Tuple3((totalPos :+ shareD), (posDebt :+ debtD), (index + 1))
10231023 }
10241024 }
10251025
10261026 let $t03221732272 = {
10271027 let $l = pools
10281028 let $s = size($l)
10291029 let $acc0 = $Tuple3(nil, nil, 0)
10301030 func $f0_1 ($a,$i) = if (($i >= $s))
10311031 then $a
10321032 else userPos($a, $l[$i])
10331033
10341034 func $f0_2 ($a,$i) = if (($i >= $s))
10351035 then $a
10361036 else throw("List size exceeds 20")
10371037
10381038 $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($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20)
10391039 }
10401040 let pos = $t03221732272._1
10411041 let debt = $t03221732272._2
10421042 $Tuple2(nil, $Tuple2(pos, debt))
10431043 }
10441044
10451045
10461046
10471047 @Callable(i)
10481048 func replenish (pool,leverage,borrowId) = if (if ((100 > leverage))
10491049 then true
10501050 else (leverage > 300))
10511051 then throw("Leverage can't be <100 and >300")
10521052 else {
10531053 let pType = valueOrErrorMessage(getString(this, (kPool + pool)), "Pool is not inited")
10541054 let $t03259532685 = getPoolData(Address(fromBase58String(pool)), pType)
10551055 let AId = $t03259532685._1
10561056 let BId = $t03259532685._2
10571057 let balA = $t03259532685._3
10581058 let balB = $t03259532685._4
10591059 let shareId = $t03259532685._5
10601060 let $t03268833325 = if ((size(i.payments) == 2))
10611061 then if ((assetIdToStr(i.payments[0].assetId) != AId))
10621062 then throw("Wrong payment asset A")
10631063 else if ((assetIdToStr(i.payments[1].assetId) != BId))
10641064 then throw("Wrong payment asset B")
10651065 else $Tuple4(i.payments[0].amount, AId, i.payments[1].amount, BId)
10661066 else if ((size(i.payments) == 1))
10671067 then if ((assetIdToStr(i.payments[0].assetId) == AId))
10681068 then $Tuple4(i.payments[0].amount, AId, 0, BId)
10691069 else if ((assetIdToStr(i.payments[0].assetId) == BId))
10701070 then $Tuple4(0, AId, i.payments[0].amount, BId)
10711071 else throw("Wrong payment")
10721072 else throw("One or two payments expected")
10731073 let pmtA = $t03268833325._1
10741074 let pmtAssetA = $t03268833325._2
10751075 let pmtB = $t03268833325._3
10761076 let pmtAssetB = $t03268833325._4
10771077 let newPosNum = getNewUserPositionNumber(toString(i.caller))
10781078 if ((leverage > 100))
10791079 then {
10801080 let borrowAmount = calcBorrowAmount(pmtA, pmtB, pmtAssetA, pmtAssetB, leverage, borrowId)
10811081 let request = makeString([toString(i.caller), pool, toString(pmtA), pmtAssetA, toString(pmtB), pmtAssetB, toString(balA), toString(balB), shareId, borrowId, toString(borrowAmount)], ",")
10821082 let newRequestId = {
10831083 let @ = invoke(this, "createNewRequest", [request], nil)
10841084 if ($isInstanceOf(@, "Int"))
10851085 then @
10861086 else throw(($getType(@) + " couldn't be cast to Int"))
10871087 }
10881088 if ((newRequestId == newRequestId))
10891089 then {
10901090 let args = [((toString(i.caller) + "_") + toString(newPosNum)), shareId, borrowId, borrowAmount, toString(this), "replenishFromLand", toString(valueOrErrorMessage(newRequestId, "Can't create new request"))]
10911091 let inv = reentrantInvoke(getLendSrvAddr(), "flashPosition", args, nil)
10921092 if ((inv == inv))
10931093 then nil
10941094 else throw("Strict value is not equal to itself.")
10951095 }
10961096 else throw("Strict value is not equal to itself.")
10971097 }
10981098 else {
10991099 let $t03425334365 = replenishByType(pType, pool, NO_LOAN_FEE, pmtA, AId, pmtB, BId, balA, balB, shareId)
11001100 let userStaked = $t03425334365._1
11011101 let axlyFee = $t03425334365._2
11021102 (replenishEntries(pool, toString(i.caller), userStaked, axlyFee, newPosNum, shareId, pType, false) ++ getCursEntries(AId, BId, shareId))
11031103 }
11041104 }
11051105
11061106
11071107
11081108 @Callable(i)
11091109 func replenishFromLand (requestId) = {
11101110 let $t03457634680 = parseRequest(requestId)
11111111 let user = $t03457634680._1
11121112 let pool = $t03457634680._2
11131113 let pmtA = $t03457634680._3
11141114 let AId = $t03457634680._4
11151115 let pmtB = $t03457634680._5
11161116 let BId = $t03457634680._6
11171117 let balA = $t03457634680._7
11181118 let balB = $t03457634680._8
11191119 let shareId = $t03457634680._9
11201120 let bwAsset = $t03457634680._10
11211121 let bwAmount = $t03457634680._11
11221122 if ((size(i.payments) != 1))
11231123 then throw("Wrong payment size")
11241124 else if (if ((assetIdToStr(i.payments[0].assetId) != bwAsset))
11251125 then true
11261126 else (i.payments[0].amount != bwAmount))
11271127 then throw("Wrong payment")
11281128 else {
11291129 let $t03487034994 = if ((AId == bwAsset))
11301130 then $Tuple2((pmtA + i.payments[0].amount), pmtB)
11311131 else $Tuple2(pmtA, (pmtB + i.payments[0].amount))
11321132 let pmtAllA = $t03487034994._1
11331133 let pmtAllB = $t03487034994._2
11341134 let pType = valueOrErrorMessage(getString(this, (kPool + pool)), "Unknown pool")
11351135 let $t03507635185 = replenishByType(pType, pool, LOAN_FEE, pmtA, AId, pmtB, BId, balA, balB, shareId)
11361136 let userStaked = $t03507635185._1
11371137 let axlyFee = $t03507635185._2
1138- let posNum = getNewUserPositionNumber(toString(i.caller))
1138+ let posNum = getNewUserPositionNumber(user)
11391139 let borrowEntries = [IntegerEntry((((((pool + "_") + user) + "_") + toString(posNum)) + kUserBorrowAmount), bwAmount), StringEntry((((((pool + "_") + user) + "_") + toString(posNum)) + kUserBorrowAssetId), bwAsset)]
11401140 let entries = replenishEntries(pool, user, userStaked, axlyFee, posNum, shareId, pType, true)
11411141 $Tuple2((((entries ++ getCursEntries(AId, BId, shareId)) ++ borrowEntries) :+ DeleteEntry((requestId + kRequestId))), userStaked)
11421142 }
11431143 }
11441144
11451145
11461146
11471147 @Callable(i)
11481148 func withdraw (pool,posId) = withdrawToUser(toString(i.caller), pool, toString(posId), false)
11491149
11501150
11511151
11521152 @Callable(i)
11531153 func createUpdateStopLoss (posId,poolId,assetId,price) = {
11541154 let tokenOraclePrice = ( let @ = invoke(priceOracleAddr, "getTWAP60", [assetId, false], nil)
11551155 if ($isInstanceOf(@, "(Int, Int)"))
11561156 then @
11571157 else throw(($getType(@) + " couldn't be cast to (Int, Int)")))._1
11581158 if (!(isDefined(getInteger(this, (((((poolId + "_") + toString(i.caller)) + "_") + toString(posId)) + kUserPosition)))))
11591159 then throw("There are no user position")
11601160 else if ((0 >= price))
11611161 then throw("Price must be greater than 0")
11621162 else if ((price > tokenOraclePrice))
11631163 then throw("Price must be less than current token price")
11641164 else [IntegerEntry((((((((toString(i.caller) + "_") + toString(posId)) + "_") + poolId) + "_") + assetId) + kUserStopLoss), price)]
11651165 }
11661166
11671167
11681168
11691169 @Callable(i)
11701170 func deleteStopLoss (posId,poolId,assetId) = if (!(isDefined(getInteger(this, (((((((toString(i.caller) + "_") + toString(posId)) + "_") + poolId) + "_") + assetId) + kUserStopLoss)))))
11711171 then throw("No entry")
11721172 else [DeleteEntry((((((((toString(i.caller) + "_") + toString(posId)) + "_") + poolId) + "_") + assetId) + kUserStopLoss))]
11731173
11741174
11751175
11761176 @Callable(i)
11771177 func createNewRequest (params) = valueOrElse(isSelfCall(i), {
11781178 let newRequestId = (valueOrElse(getInteger(this, kRequestIter), 0) + 1)
11791179 $Tuple2([StringEntry((toString(newRequestId) + kRequestId), params), IntegerEntry(kRequestIter, newRequestId)], newRequestId)
11801180 })
11811181
11821182
11831183
11841184 @Callable(i)
11851185 func stopLoss (user,posId,pool,assetId) = {
11861186 let tokenOraclePrice = ( let @ = invoke(priceOracleAddr, "getTWAP60", [assetId, false], nil)
11871187 if ($isInstanceOf(@, "(Int, Int)"))
11881188 then @
11891189 else throw(($getType(@) + " couldn't be cast to (Int, Int)")))._1
11901190 if (!(isDefined(getInteger(this, (((((((user + "_") + toString(posId)) + "_") + pool) + "_") + assetId) + kUserStopLoss)))))
11911191 then throw("No entry")
11921192 else (withdrawToUser(toString(i.caller), pool, toString(posId), true) :+ DeleteEntry((((((((user + "_") + toString(posId)) + "_") + pool) + "_") + assetId) + kUserStopLoss)))
11931193 }
11941194
11951195
11961196
11971197 @Callable(i)
11981198 func liquidate (user,posId,liquidateAmount) = {
11991199 let pool = valueOrErrorMessage(getString(this, (((user + "_") + posId) + kUserPositionPool)), "no position")
12001200 let pType = valueOrErrorMessage(getString(this, (kPool + pool)), "Pool is not inited")
1201- let $t03796238052 = getPoolData(Address(fromBase58String(pool)), pType)
1202- let AId = $t03796238052._1
1203- let BId = $t03796238052._2
1204- let balA = $t03796238052._3
1205- let balB = $t03796238052._4
1206- let shareId = $t03796238052._5
1201+ let $t03794738037 = getPoolData(Address(fromBase58String(pool)), pType)
1202+ let AId = $t03794738037._1
1203+ let BId = $t03794738037._2
1204+ let balA = $t03794738037._3
1205+ let balB = $t03794738037._4
1206+ let shareId = $t03794738037._5
12071207 let amount = unstakeLP(pool, pType, shareId, liquidateAmount)
12081208 let borrowAmount = getIntegerValue(this, (((((pool + "_") + user) + "_") + posId) + kUserBorrowAmount))
12091209 let borrowAsset = getStringValue(this, (((((pool + "_") + user) + "_") + posId) + kUserBorrowAssetId))
12101210 let userCanWithdraw = userCanWithdrawShareCalc(user, pool, posId, (borrowAmount > 0))
12111211 if ((borrowAmount == 0))
12121212 then throw("You can't liquidate position without borrow")
12131213 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))]
12141214 }
12151215
12161216
12171217
12181218 @Callable(i)
12191219 func capitalizeExKeeper (pool,type,tokenToId,amountToExchange,claim,amountsIn,addresses,assetsToReceive,estReceived,slippageTolerance,minReceived,options) = {
1220- let $t03928739481 = if (claim)
1220+ let $t03927239466 = if (claim)
12211221 then claimFarmed(type, pool)
12221222 else {
12231223 let claimedAsset = if ((type == SF_POOL))
12241224 then SWOPID
12251225 else WXID
12261226 $Tuple2(amountToExchange, claimedAsset)
12271227 }
1228- let claimedAmount = $t03928739481._1
1229- let claimedAsset = $t03928739481._2
1228+ let claimedAmount = $t03927239466._1
1229+ let claimedAsset = $t03927239466._2
12301230 let exchangedAmount = exchangeKeeper(tokenToId, amountToExchange, claimedAsset, amountsIn, addresses, assetsToReceive, estReceived, slippageTolerance, minReceived, options)
12311231 let change = (claimedAmount - amountToExchange)
12321232 let changeEntry = if ((change > 0))
12331233 then [IntegerEntry((pool + kPoolCapChange), (change + valueOrElse(getInteger(this, (pool + kPoolCapChange)), 0)))]
12341234 else nil
12351235 (capitalize(pool, type, tokenToId, exchangedAmount) ++ changeEntry)
12361236 }
12371237
12381238
12391239
12401240 @Callable(i)
12411241 func capitalizeExPuzzle (pool,type,tokenToId,amountToExchange,claim,routesStr,minToReceive,options) = {
1242- let $t04013840332 = if (claim)
1242+ let $t04012340317 = if (claim)
12431243 then claimFarmed(type, pool)
12441244 else {
12451245 let claimedAsset = if ((type == SF_POOL))
12461246 then SWOPID
12471247 else WXID
12481248 $Tuple2(amountToExchange, claimedAsset)
12491249 }
1250- let claimedAmount = $t04013840332._1
1251- let claimedAsset = $t04013840332._2
1250+ let claimedAmount = $t04012340317._1
1251+ let claimedAsset = $t04012340317._2
12521252 let exchangedAmount = exchangePuzzle(tokenToId, amountToExchange, claimedAsset, routesStr, minToReceive, options)
12531253 let change = (claimedAmount - amountToExchange)
12541254 let changeEntry = if ((change > 0))
12551255 then [IntegerEntry((pool + kPoolCapChange), (change + valueOrElse(getInteger(this, (pool + kPoolCapChange)), 0)))]
12561256 else nil
12571257 (capitalize(pool, type, tokenToId, exchangedAmount) ++ changeEntry)
12581258 }
12591259
12601260
12611261
12621262 @Callable(i)
12631263 func capitalizeExSwopFi (pool,type,tokenToId,amountToExchange,claim,exchangers,exchangersType,args1,args2,routingAssetsKeys,minAmountToReceive,options) = {
1264- let $t04105541249 = if (claim)
1264+ let $t04104041234 = if (claim)
12651265 then claimFarmed(type, pool)
12661266 else {
12671267 let claimedAsset = if ((type == SF_POOL))
12681268 then SWOPID
12691269 else WXID
12701270 $Tuple2(amountToExchange, claimedAsset)
12711271 }
1272- let claimedAmount = $t04105541249._1
1273- let claimedAsset = $t04105541249._2
1272+ let claimedAmount = $t04104041234._1
1273+ let claimedAsset = $t04104041234._2
12741274 let exchangedAmount = exchangeSwopFi(tokenToId, amountToExchange, claimedAsset, exchangers, exchangersType, args1, args2, routingAssetsKeys, minAmountToReceive, options)
12751275 let change = (claimedAmount - amountToExchange)
12761276 let changeEntry = if ((change > 0))
12771277 then [IntegerEntry((pool + kPoolCapChange), (change + valueOrElse(getInteger(this, (pool + kPoolCapChange)), 0)))]
12781278 else nil
12791279 (capitalize(pool, type, tokenToId, exchangedAmount) ++ changeEntry)
12801280 }
12811281
12821282
12831283
12841284 @Callable(i)
12851285 func initNewPool (type,poolAddr,inFeeNoLoan,inFeeLoan,capFeeNoLoan,capFeeWithLoan,stoplossFeeNoLoan,stoplossFeeWithLoan) = if (if ((type != SF_POOL))
12861286 then (type != WX_POOL)
12871287 else false)
12881288 then throw("Wrong type")
12891289 else {
1290- let $t04194242036 = getPoolData(Address(fromBase58String(poolAddr)), type)
1291- let aId = $t04194242036._1
1292- let bId = $t04194242036._2
1293- let aBal = $t04194242036._3
1294- let bBal = $t04194242036._4
1295- let shareId = $t04194242036._5
1290+ let $t04192742021 = getPoolData(Address(fromBase58String(poolAddr)), type)
1291+ let aId = $t04192742021._1
1292+ let bId = $t04192742021._2
1293+ let aBal = $t04192742021._3
1294+ let bBal = $t04192742021._4
1295+ let shareId = $t04192742021._5
12961296 [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)]
12971297 }
12981298
12991299
13001300
13011301 @Callable(i)
13021302 func capitalizeTest (pool,pType,tokenId,tokenAmount) = {
13031303 let poolAddr = Address(fromBase58String(pool))
1304- let $t04283242911 = getPoolData(poolAddr, pType)
1305- let AId = $t04283242911._1
1306- let BId = $t04283242911._2
1307- let balA = $t04283242911._3
1308- let balB = $t04283242911._4
1309- let shareId = $t04283242911._5
1310- let $t04291442994 = if ((tokenId == AId))
1304+ let $t04281742896 = getPoolData(poolAddr, pType)
1305+ let AId = $t04281742896._1
1306+ let BId = $t04281742896._2
1307+ let balA = $t04281742896._3
1308+ let balB = $t04281742896._4
1309+ let shareId = $t04281742896._5
1310+ let $t04289942979 = if ((tokenId == AId))
13111311 then $Tuple2(tokenAmount, 0)
13121312 else $Tuple2(0, tokenAmount)
1313- let pmtA = $t04291442994._1
1314- let pmtB = $t04291442994._2
1315- let $t04299743101 = replenishByType(pType, pool, NO_FEE, pmtA, AId, pmtB, BId, balA, balB, shareId)
1316- let stakedAmount = $t04299743101._1
1317- let nf = $t04299743101._2
1313+ let pmtA = $t04289942979._1
1314+ let pmtB = $t04289942979._2
1315+ let $t04298243086 = replenishByType(pType, pool, NO_FEE, pmtA, AId, pmtB, BId, balA, balB, shareId)
1316+ let stakedAmount = $t04298243086._1
1317+ let nf = $t04298243086._2
13181318 let curPoolInterestLoan = valueOrElse(getInteger(this, (pool + kPoolInterestLoan)), 0)
13191319 let curPoolInterestNoLoan = valueOrElse(getInteger(this, (pool + kPoolInterestNoLoan)), 0)
13201320 let totalShareAmount = getPoolTotalShare(pool)
13211321 let totalShareAmountWithLoan = getPoolTotalShareWithLoan(pool)
13221322 let loanPercent = fraction(totalShareAmountWithLoan, SCALE8, totalShareAmount)
13231323 let stakedLoan = fraction(stakedAmount, loanPercent, SCALE8)
13241324 let stakedNoLoan = (stakedAmount - stakedLoan)
13251325 let newInterestLoan = if ((totalShareAmountWithLoan > 0))
13261326 then (curPoolInterestLoan + fraction(stakedLoan, SCALE10, totalShareAmountWithLoan))
13271327 else 0
13281328 let newInterestNoLoan = if (((totalShareAmount - totalShareAmountWithLoan) > 0))
13291329 then (curPoolInterestNoLoan + fraction(stakedNoLoan, SCALE10, (totalShareAmount - totalShareAmountWithLoan)))
13301330 else 0
13311331 let axlyFeeLoan = fraction(stakedLoan, getAxlyFee(pool, CAP_FEE_LOAN), FEE_SCALE6)
13321332 let axlyFeeNoLoan = fraction(stakedNoLoan, getAxlyFee(pool, CAP_FEE_NO_LOAN), FEE_SCALE6)
13331333 let axlyFee = unstakeLP(pool, pType, shareId, (axlyFeeLoan + axlyFeeNoLoan))
13341334 if ((axlyFee == axlyFee))
13351335 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))
13361336 else throw("Strict value is not equal to itself.")
13371337 }
13381338
13391339
13401340
13411341 @Callable(i)
13421342 func claimFarmedTest (type,pool) = if ((type == SF_POOL))
13431343 then {
13441344 let balBefore = accountBalance(SWOPID)
13451345 if ((balBefore == balBefore))
13461346 then {
13471347 let inv = invoke(getSFFarmingAddr(), "claim", [pool], nil)
13481348 if ((inv == inv))
13491349 then {
13501350 let balAfter = accountBalance(SWOPID)
13511351 $Tuple2(nil, $Tuple2((balAfter - balBefore), SWOPID))
13521352 }
13531353 else throw("Strict value is not equal to itself.")
13541354 }
13551355 else throw("Strict value is not equal to itself.")
13561356 }
13571357 else if ((type == WX_POOL))
13581358 then {
13591359 let balBefore = accountBalance(WXID)
13601360 if ((balBefore == balBefore))
13611361 then {
13621362 let inv = invoke(getWXFarmingAddr(Address(fromBase58String(pool))), "claimWX", [pool], nil)
13631363 if ((inv == inv))
13641364 then {
13651365 let balAfter = accountBalance(WXID)
13661366 $Tuple2(nil, $Tuple2((balAfter - balBefore), WXID))
13671367 }
13681368 else throw("Strict value is not equal to itself.")
13691369 }
13701370 else throw("Strict value is not equal to itself.")
13711371 }
13721372 else throw("Wrong pool type")
13731373
13741374
13751375 @Verifier(tx)
13761376 func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
13771377

github/deemru/w8io/026f985 
173.23 ms