tx · D5fR9GKAFo54kJi9S7gKH27SmohD7tgNEpmujjBqCHFk 3MvRWw2FPEimFCTGtK7qY9uAJbM7XJ4ZfJS: -0.32000000 Waves 2023.04.20 10:51 [2542595] smart account 3MvRWw2FPEimFCTGtK7qY9uAJbM7XJ4ZfJS > SELF 0.00000000 Waves
{ "type": 13, "id": "D5fR9GKAFo54kJi9S7gKH27SmohD7tgNEpmujjBqCHFk", "fee": 32000000, "feeAssetId": null, "timestamp": 1681977121046, "version": 2, "chainId": 84, "sender": "3MvRWw2FPEimFCTGtK7qY9uAJbM7XJ4ZfJS", "senderPublicKey": "HP8sssVq1866F7CaPQJwgFrt6fsqhQjKwM84cL1wjD2a", "proofs": [ "3a8iEqFs3EmU1Uy3TfHxNgGcpWKCtx7YQcb16U8Cq3onPfgT1tg4dowveutthtnLK55YkSjbo45wRPvHhNfYN1DR" ], "script": "base64:BgJlCAISAwoBCBIDCgEIEgUKAwgBCBIDCgEIEgUKAwgBCBIDCgEIEgQKAggBEgMKAQgSDgoMCAgIAQQRGBgRAQEYEgoKCAgICAEECAEYEg4KDAgICAEEGBgYGBgBGBIICgYICAEBAQFJAAdTRl9QT09MAgJTRgAHV1hfUE9PTAICV1gAD0NBUF9GRUVfTk9fTE9BTgIJY2FwTm9Mb2FuAAxDQVBfRkVFX0xPQU4CB2NhcExvYW4ACExPQU5fRkVFAgRsb2FuAAtOT19MT0FOX0ZFRQIGbm9Mb2FuAAZTQ0FMRTgAgMLXLwAHU0NBTEUxMACAyK+gJQAKRkVFX1NDQUxFNgDAhD0AFGtTRlBvb2xBQXNzZXRCYWxhbmNlAg9BX2Fzc2V0X2JhbGFuY2UAFGtTRlBvb2xCQXNzZXRCYWxhbmNlAg9CX2Fzc2V0X2JhbGFuY2UAD2tTRlBvb2xBQXNzZXRJZAIKQV9hc3NldF9pZAAPa1NGUG9vbEJBc3NldElkAgpCX2Fzc2V0X2lkAA5rU0ZQb29sU2hhcmVJZAIOc2hhcmVfYXNzZXRfaWQACmt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N0AAAJAMwIAgkBC1N0cmluZ0VudHJ5AgkArAICBQVrUG9vbAUIcG9vbEFkZHIFBHR5cGUJAMwIAgkBC1N0cmluZ0VudHJ5AgkArAICBQdzaGFyZUlkBQprU2hhcmVQb29sBQhwb29sQWRkcgUDbmlsAQJ0eAEGdmVyaWZ5AAkA9AMDCAUCdHgJYm9keUJ5dGVzCQCRAwIIBQJ0eAZwcm9vZnMAAAgFAnR4D3NlbmRlclB1YmxpY0tleZx21is=", "height": 2542595, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: G3JAdpq4Jv68ad3r8K5MfoR6xRzXRKU5AKfKPiTPMLfk Next: DLjrR2vLeenXbj8E4QgH17CRKUmoXPhgb72462z7ya4a Diff:
Old | New | Differences | |
---|---|---|---|
685 | 685 | } | |
686 | 686 | if ((newRequestId == newRequestId)) | |
687 | 687 | then { | |
688 | - | let args = [((toString(i.caller) + "_") + toString(1)), shareId, borrowAssetId, borrowAmount, toString(this), " | |
688 | + | let args = [((toString(i.caller) + "_") + toString(1)), shareId, borrowAssetId, borrowAmount, toString(this), "replenishFromLandEVALONLY", toString(valueOrErrorMessage(newRequestId, "Can't create new request"))] | |
689 | 689 | let inv = reentrantInvoke(getLendSrvAddr(), "flashPosition", args, nil) | |
690 | 690 | if ((inv == inv)) | |
691 | 691 | then $Tuple2(getIntegerValue(this, "EVALONLY_STAKEDAMOUNT"), borrowAmount) |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let SF_POOL = "SF" | |
5 | 5 | ||
6 | 6 | let WX_POOL = "WX" | |
7 | 7 | ||
8 | 8 | let CAP_FEE_NO_LOAN = "capNoLoan" | |
9 | 9 | ||
10 | 10 | let CAP_FEE_LOAN = "capLoan" | |
11 | 11 | ||
12 | 12 | let LOAN_FEE = "loan" | |
13 | 13 | ||
14 | 14 | let NO_LOAN_FEE = "noLoan" | |
15 | 15 | ||
16 | 16 | let SCALE8 = 100000000 | |
17 | 17 | ||
18 | 18 | let SCALE10 = 10000000000 | |
19 | 19 | ||
20 | 20 | let FEE_SCALE6 = 1000000 | |
21 | 21 | ||
22 | 22 | let kSFPoolAAssetBalance = "A_asset_balance" | |
23 | 23 | ||
24 | 24 | let kSFPoolBAssetBalance = "B_asset_balance" | |
25 | 25 | ||
26 | 26 | let kSFPoolAAssetId = "A_asset_id" | |
27 | 27 | ||
28 | 28 | let kSFPoolBAssetId = "B_asset_id" | |
29 | 29 | ||
30 | 30 | let kSFPoolShareId = "share_asset_id" | |
31 | 31 | ||
32 | 32 | let kSFPoolFee = "commission" | |
33 | 33 | ||
34 | 34 | let kUserPosition = "_user_position" | |
35 | 35 | ||
36 | 36 | let kUserBorrowAmount = "_user_position_borrow_amount" | |
37 | 37 | ||
38 | 38 | let kUserBorrowAssetId = "_user_position_borrow_asset_id" | |
39 | 39 | ||
40 | 40 | let kUserPositionNum = "_user_position_number" | |
41 | 41 | ||
42 | 42 | let kUserPositionInterest = "_user_position_interest" | |
43 | 43 | ||
44 | 44 | let kPoolTotal = "_pool_total" | |
45 | 45 | ||
46 | 46 | let kPoolTotalLoan = "_pool_total_loan" | |
47 | 47 | ||
48 | 48 | let kPoolInterest = "_pool_interest" | |
49 | 49 | ||
50 | 50 | let kAxlyInFeeWithoutLoan = "_axly_fee_without_loan" | |
51 | 51 | ||
52 | 52 | let kAxlyInFeeWithLoan = "_axly_fee_with_loan" | |
53 | 53 | ||
54 | 54 | let kAxlyNoLoanCapFee = "_axly_fee_cap_with_loan" | |
55 | 55 | ||
56 | 56 | let kAxlyWithLoanCapFee = "_axly_fee_cap_no_loan" | |
57 | 57 | ||
58 | 58 | let kRequestId = "_request_id" | |
59 | 59 | ||
60 | 60 | let kRequestIter = "requests_iter" | |
61 | 61 | ||
62 | 62 | let kPool = "pool_" | |
63 | 63 | ||
64 | 64 | let kSharePool = "_pool_share_id" | |
65 | 65 | ||
66 | 66 | let kPoolCapChange = "_pool_cap_change" | |
67 | 67 | ||
68 | 68 | let kMoneyBox = "axly_money_box" | |
69 | 69 | ||
70 | 70 | let kSFFarmingAddr = "swopfi_farming_addr" | |
71 | 71 | ||
72 | 72 | let kLendService = "lend_service_addr" | |
73 | 73 | ||
74 | 74 | let kPriceOracle = "price_oracle" | |
75 | 75 | ||
76 | 76 | let kExContract = "exchange_contract" | |
77 | 77 | ||
78 | 78 | let kWxSwapContract = "wx_swap_contract" | |
79 | 79 | ||
80 | 80 | let moneyBox = Address(fromBase58String(valueOrErrorMessage(getString(this, kMoneyBox), "No axly moneyBox address"))) | |
81 | 81 | ||
82 | 82 | let exContract = Address(fromBase58String(valueOrErrorMessage(getString(this, kExContract), "No exchange contract address"))) | |
83 | 83 | ||
84 | 84 | let priceOracleAddr = Address(fromBase58String(valueOrErrorMessage(getString(this, kPriceOracle), "No price oracle address"))) | |
85 | 85 | ||
86 | 86 | let wxSwapContract = Address(fromBase58String(valueOrErrorMessage(getString(this, kWxSwapContract), "No wx swap address"))) | |
87 | 87 | ||
88 | 88 | let SWOPID = base58'4W19ndijcc2CsQa9HGW2dfXKTVXhnneWWttxXrtjPmEp' | |
89 | 89 | ||
90 | 90 | let WXID = base58'EMAMLxDnv3xiz8RXg8Btj33jcEw3wLczL3JKYYmuubpc' | |
91 | 91 | ||
92 | 92 | func isSelfCall (i) = if ((i.caller == this)) | |
93 | 93 | then unit | |
94 | 94 | else throw("Only contract itself can call this function") | |
95 | 95 | ||
96 | 96 | ||
97 | 97 | func accountBalance (assetId) = match assetId { | |
98 | 98 | case id: ByteVector => | |
99 | 99 | assetBalance(this, id) | |
100 | 100 | case waves: Unit => | |
101 | 101 | wavesBalance(this).available | |
102 | 102 | case _ => | |
103 | 103 | throw("Match error") | |
104 | 104 | } | |
105 | 105 | ||
106 | 106 | ||
107 | 107 | 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")) | |
108 | 108 | ||
109 | 109 | ||
110 | 110 | func getWXPoolData (poolAddr) = { | |
111 | 111 | let cfg = { | |
112 | 112 | let @ = invoke(poolAddr, "getPoolConfigWrapperREADONLY", nil, nil) | |
113 | 113 | if ($isInstanceOf(@, "List[Any]")) | |
114 | 114 | then @ | |
115 | 115 | else throw(($getType(@) + " couldn't be cast to List[Any]")) | |
116 | 116 | } | |
117 | 117 | if ((cfg == cfg)) | |
118 | 118 | then { | |
119 | 119 | let aId = valueOrErrorMessage({ | |
120 | 120 | let @ = cfg[4] | |
121 | 121 | if ($isInstanceOf(@, "String")) | |
122 | 122 | then @ | |
123 | 123 | else unit | |
124 | 124 | }, "Can't get pool A asset id") | |
125 | 125 | let bId = valueOrErrorMessage({ | |
126 | 126 | let @ = cfg[5] | |
127 | 127 | if ($isInstanceOf(@, "String")) | |
128 | 128 | then @ | |
129 | 129 | else unit | |
130 | 130 | }, "Can't get pool B asset id") | |
131 | 131 | let shareId = valueOrErrorMessage({ | |
132 | 132 | let @ = cfg[3] | |
133 | 133 | if ($isInstanceOf(@, "String")) | |
134 | 134 | then @ | |
135 | 135 | else unit | |
136 | 136 | }, "Can't get pool LP asset id") | |
137 | 137 | let balA = { | |
138 | 138 | let @ = invoke(poolAddr, "getAccBalanceWrapperREADONLY", [aId], nil) | |
139 | 139 | if ($isInstanceOf(@, "Int")) | |
140 | 140 | then @ | |
141 | 141 | else throw(($getType(@) + " couldn't be cast to Int")) | |
142 | 142 | } | |
143 | 143 | if ((balA == balA)) | |
144 | 144 | then { | |
145 | 145 | let balB = { | |
146 | 146 | let @ = invoke(poolAddr, "getAccBalanceWrapperREADONLY", [bId], nil) | |
147 | 147 | if ($isInstanceOf(@, "Int")) | |
148 | 148 | then @ | |
149 | 149 | else throw(($getType(@) + " couldn't be cast to Int")) | |
150 | 150 | } | |
151 | 151 | if ((balB == balB)) | |
152 | 152 | then $Tuple5(aId, bId, balA, balB, shareId) | |
153 | 153 | else throw("Strict value is not equal to itself.") | |
154 | 154 | } | |
155 | 155 | else throw("Strict value is not equal to itself.") | |
156 | 156 | } | |
157 | 157 | else throw("Strict value is not equal to itself.") | |
158 | 158 | } | |
159 | 159 | ||
160 | 160 | ||
161 | 161 | func getPoolData (poolAddr,type) = if ((type == SF_POOL)) | |
162 | 162 | then getSFPoolData(poolAddr) | |
163 | 163 | else if ((type == WX_POOL)) | |
164 | 164 | then getWXPoolData(poolAddr) | |
165 | 165 | else throw("Wrong pool type") | |
166 | 166 | ||
167 | 167 | ||
168 | 168 | func getPoolTotalShare (pool) = valueOrElse(getInteger(this, (pool + kPoolTotal)), 0) | |
169 | 169 | ||
170 | 170 | ||
171 | 171 | func getPoolTotalShareWithLoan (pool) = valueOrElse(getInteger(this, (pool + kPoolTotalLoan)), 0) | |
172 | 172 | ||
173 | 173 | ||
174 | 174 | func getNewUserPositionNumber (pool,user) = (valueOrElse(getInteger(this, (((pool + "_") + user) + kUserPositionNum)), 0) + 1) | |
175 | 175 | ||
176 | 176 | ||
177 | 177 | func getAxlyFee (pool,feeType) = if ((feeType == CAP_FEE_LOAN)) | |
178 | 178 | then getIntegerValue(this, (pool + kAxlyWithLoanCapFee)) | |
179 | 179 | else if ((feeType == CAP_FEE_NO_LOAN)) | |
180 | 180 | then getIntegerValue(this, (pool + kAxlyNoLoanCapFee)) | |
181 | 181 | else if ((feeType == LOAN_FEE)) | |
182 | 182 | then getIntegerValue(this, (pool + kAxlyInFeeWithLoan)) | |
183 | 183 | else if ((feeType == NO_LOAN_FEE)) | |
184 | 184 | then getIntegerValue(this, (pool + kAxlyInFeeWithoutLoan)) | |
185 | 185 | else throw("Wrong fee type") | |
186 | 186 | ||
187 | 187 | ||
188 | 188 | func getSFFarmingAddr () = Address(fromBase58String(valueOrErrorMessage(getString(this, kSFFarmingAddr), "Can't get swopfi farming addr"))) | |
189 | 189 | ||
190 | 190 | ||
191 | 191 | func getWXFarmingAddr (poolAddr) = { | |
192 | 192 | let fContract = Address(fromBase58String(valueOrErrorMessage(getString(poolAddr, "%s__factoryContract"), "Can't get WX factory contract addr"))) | |
193 | 193 | let factroyCfg = split(valueOrErrorMessage(getString(fContract, "%s__factoryConfig"), "Can't get WX factory cfg"), "__") | |
194 | 194 | Address(fromBase58String(factroyCfg[1])) | |
195 | 195 | } | |
196 | 196 | ||
197 | 197 | ||
198 | 198 | func getLendSrvAddr () = Address(fromBase58String(valueOrErrorMessage(getString(this, kLendService), "Can't get lend service addr"))) | |
199 | 199 | ||
200 | 200 | ||
201 | 201 | func assetIdToStr (assetId) = match assetId { | |
202 | 202 | case id: ByteVector => | |
203 | 203 | toBase58String(id) | |
204 | 204 | case waves: Unit => | |
205 | 205 | "WAVES" | |
206 | 206 | case _ => | |
207 | 207 | throw("Match error") | |
208 | 208 | } | |
209 | 209 | ||
210 | 210 | ||
211 | 211 | func assetIdFromStr (assetId) = if ((assetId == "WAVES")) | |
212 | 212 | then unit | |
213 | 213 | else fromBase58String(assetId) | |
214 | 214 | ||
215 | 215 | ||
216 | 216 | func getAssetDecimals (assetId) = if ((assetId == "WAVES")) | |
217 | 217 | then 8 | |
218 | 218 | else match assetInfo(fromBase58String(assetId)) { | |
219 | 219 | case asset: Asset => | |
220 | 220 | asset.decimals | |
221 | 221 | case _ => | |
222 | 222 | throw("Can't find asset") | |
223 | 223 | } | |
224 | 224 | ||
225 | 225 | ||
226 | 226 | func replenishSwopFi (pool,feeType,pmtA,pmtAssetA,pmtB,pmtAssetB,balA,balB,shareId) = { | |
227 | 227 | let shareBalanceBefore = accountBalance(fromBase58String(shareId)) | |
228 | 228 | if ((shareBalanceBefore == shareBalanceBefore)) | |
229 | 229 | then { | |
230 | 230 | let poolAddr = Address(fromBase58String(pool)) | |
231 | 231 | let ratioA = fraction(SCALE8, pmtA, balA) | |
232 | 232 | let ratioB = fraction(SCALE8, pmtB, balB) | |
233 | 233 | let $t071357427 = if ((ratioB > ratioA)) | |
234 | 234 | then { | |
235 | 235 | let pmt = fraction(balB, ratioA, SCALE8, CEILING) | |
236 | 236 | $Tuple4(pmtA, pmt, (pmtB - pmt), pmtAssetB) | |
237 | 237 | } | |
238 | 238 | else { | |
239 | 239 | let pmt = fraction(balA, ratioB, SCALE8, CEILING) | |
240 | 240 | $Tuple4(pmt, pmtB, (pmtA - pmt), pmtAssetA) | |
241 | 241 | } | |
242 | 242 | let pmtAmountA = $t071357427._1 | |
243 | 243 | let pmtAmountB = $t071357427._2 | |
244 | 244 | let change = $t071357427._3 | |
245 | 245 | let changeAssetId = $t071357427._4 | |
246 | 246 | let inv1 = if (if ((pmtAmountA > 0)) | |
247 | 247 | then (pmtAmountB > 0) | |
248 | 248 | else false) | |
249 | 249 | then { | |
250 | 250 | let payments = [AttachedPayment(assetIdFromStr(pmtAssetA), pmtAmountA), AttachedPayment(assetIdFromStr(pmtAssetB), pmtAmountB)] | |
251 | 251 | invoke(poolAddr, "callFunction", ["replenishWithTwoTokens", ["false", "0"]], payments) | |
252 | 252 | } | |
253 | 253 | else 0 | |
254 | 254 | if ((inv1 == inv1)) | |
255 | 255 | then { | |
256 | 256 | let inv2 = if ((change > 0)) | |
257 | 257 | then { | |
258 | 258 | let payments = [AttachedPayment(assetIdFromStr(changeAssetId), change)] | |
259 | 259 | let vars = ["0", "false", "0"] | |
260 | 260 | invoke(poolAddr, "callFunction", ["replenishWithOneToken", vars], payments) | |
261 | 261 | } | |
262 | 262 | else 0 | |
263 | 263 | if ((inv2 == inv2)) | |
264 | 264 | then { | |
265 | 265 | let shareBalanceAfter = accountBalance(fromBase58String(shareId)) | |
266 | 266 | let totalStaked = (shareBalanceAfter - shareBalanceBefore) | |
267 | 267 | let axlyFeeAmount = fraction(totalStaked, getAxlyFee(pool, feeType), FEE_SCALE6) | |
268 | 268 | let userShareForStake = (totalStaked - axlyFeeAmount) | |
269 | 269 | if ((0 >= userShareForStake)) | |
270 | 270 | then throw("amount of staked sharetokens must be > 0") | |
271 | 271 | else { | |
272 | 272 | let inv3 = invoke(getSFFarmingAddr(), "lockShareTokens", [pool, 0], [AttachedPayment(fromBase58String(shareId), userShareForStake)]) | |
273 | 273 | if ((inv3 == inv3)) | |
274 | 274 | then $Tuple2(userShareForStake, axlyFeeAmount) | |
275 | 275 | else throw("Strict value is not equal to itself.") | |
276 | 276 | } | |
277 | 277 | } | |
278 | 278 | else throw("Strict value is not equal to itself.") | |
279 | 279 | } | |
280 | 280 | else throw("Strict value is not equal to itself.") | |
281 | 281 | } | |
282 | 282 | else throw("Strict value is not equal to itself.") | |
283 | 283 | } | |
284 | 284 | ||
285 | 285 | ||
286 | 286 | func replenishWX (pool,feeType,pmtA,pmtAssetA,pmtB,pmtAssetB,shareId) = { | |
287 | 287 | let poolAddr = Address(fromBase58String(pool)) | |
288 | 288 | let $t088789727 = if (if ((pmtA > 0)) | |
289 | 289 | then (pmtB > 0) | |
290 | 290 | else false) | |
291 | 291 | then { | |
292 | 292 | let evalPutInA = split({ | |
293 | 293 | let @ = invoke(poolAddr, "evaluatePutByAmountAssetREADONLY", [pmtA], nil) | |
294 | 294 | if ($isInstanceOf(@, "String")) | |
295 | 295 | then @ | |
296 | 296 | else throw(($getType(@) + " couldn't be cast to String")) | |
297 | 297 | }, "__") | |
298 | 298 | if ((evalPutInA == evalPutInA)) | |
299 | 299 | then { | |
300 | 300 | let evalPutInB = split({ | |
301 | 301 | let @ = invoke(poolAddr, "evaluatePutByPriceAssetREADONLY", [pmtB], nil) | |
302 | 302 | if ($isInstanceOf(@, "String")) | |
303 | 303 | then @ | |
304 | 304 | else throw(($getType(@) + " couldn't be cast to String")) | |
305 | 305 | }, "__") | |
306 | 306 | if ((evalPutInB == evalPutInB)) | |
307 | 307 | then { | |
308 | 308 | let lpInA = parseIntValue(evalPutInA[1]) | |
309 | 309 | let lpInB = parseIntValue(evalPutInB[1]) | |
310 | 310 | if ((lpInB > lpInA)) | |
311 | 311 | then { | |
312 | 312 | let pmtInB = parseIntValue(evalPutInA[8]) | |
313 | 313 | $Tuple4(pmtA, pmtInB, (pmtB - pmtInB), pmtAssetB) | |
314 | 314 | } | |
315 | 315 | else { | |
316 | 316 | let pmtInA = parseIntValue(evalPutInB[7]) | |
317 | 317 | $Tuple4(pmtInA, pmtB, (pmtA - pmtInA), pmtAssetA) | |
318 | 318 | } | |
319 | 319 | } | |
320 | 320 | else throw("Strict value is not equal to itself.") | |
321 | 321 | } | |
322 | 322 | else throw("Strict value is not equal to itself.") | |
323 | 323 | } | |
324 | 324 | else if ((pmtA > 0)) | |
325 | 325 | then $Tuple4(pmtA, pmtB, pmtA, pmtAssetA) | |
326 | 326 | else if ((pmtB > 0)) | |
327 | 327 | then $Tuple4(pmtA, pmtB, pmtB, pmtAssetB) | |
328 | 328 | else throw("pmts must be > 0") | |
329 | 329 | let pmtAmountA = $t088789727._1 | |
330 | 330 | let pmtAmountB = $t088789727._2 | |
331 | 331 | let change = $t088789727._3 | |
332 | 332 | let changeAssetId = $t088789727._4 | |
333 | 333 | let shareBalanceBefore = accountBalance(fromBase58String(shareId)) | |
334 | 334 | if ((shareBalanceBefore == shareBalanceBefore)) | |
335 | 335 | then { | |
336 | 336 | let inv1 = if (if ((pmtAmountA > 0)) | |
337 | 337 | then (pmtAmountB > 0) | |
338 | 338 | else false) | |
339 | 339 | then { | |
340 | 340 | let payments = [AttachedPayment(assetIdFromStr(pmtAssetA), pmtAmountA), AttachedPayment(assetIdFromStr(pmtAssetB), pmtAmountB)] | |
341 | 341 | invoke(poolAddr, "put", [1000000, false], payments) | |
342 | 342 | } | |
343 | 343 | else 0 | |
344 | 344 | if ((inv1 == inv1)) | |
345 | 345 | then { | |
346 | 346 | let inv2 = if ((change > 0)) | |
347 | 347 | then { | |
348 | 348 | let payments = [AttachedPayment(assetIdFromStr(changeAssetId), change)] | |
349 | 349 | invoke(poolAddr, "putOneTkn", [0, false], payments) | |
350 | 350 | } | |
351 | 351 | else 0 | |
352 | 352 | if ((inv2 == inv2)) | |
353 | 353 | then { | |
354 | 354 | let shareBalanceAfter = accountBalance(fromBase58String(shareId)) | |
355 | 355 | let totalStaked = (shareBalanceAfter - shareBalanceBefore) | |
356 | 356 | let axlyFeeAmount = fraction(totalStaked, getAxlyFee(pool, feeType), FEE_SCALE6) | |
357 | 357 | let userShareForStake = (totalStaked - axlyFeeAmount) | |
358 | 358 | if ((0 >= userShareForStake)) | |
359 | 359 | then throw("amount of staked sharetokens must be > 0") | |
360 | 360 | else { | |
361 | 361 | let inv3 = invoke(getWXFarmingAddr(poolAddr), "stake", nil, [AttachedPayment(fromBase58String(shareId), userShareForStake)]) | |
362 | 362 | if ((inv3 == inv3)) | |
363 | 363 | then $Tuple2(userShareForStake, axlyFeeAmount) | |
364 | 364 | else throw("Strict value is not equal to itself.") | |
365 | 365 | } | |
366 | 366 | } | |
367 | 367 | else throw("Strict value is not equal to itself.") | |
368 | 368 | } | |
369 | 369 | else throw("Strict value is not equal to itself.") | |
370 | 370 | } | |
371 | 371 | else throw("Strict value is not equal to itself.") | |
372 | 372 | } | |
373 | 373 | ||
374 | 374 | ||
375 | 375 | func replenishByType (type,pool,feeType,pmtA,AId,pmtB,BId,balA,balB,shareId) = if ((type == SF_POOL)) | |
376 | 376 | then replenishSwopFi(pool, LOAN_FEE, pmtA, AId, pmtB, BId, balA, balB, shareId) | |
377 | 377 | else if ((type == WX_POOL)) | |
378 | 378 | then replenishWX(pool, LOAN_FEE, pmtA, AId, pmtB, BId, shareId) | |
379 | 379 | else throw("Wrong pool type") | |
380 | 380 | ||
381 | 381 | ||
382 | 382 | func replenishEntries (pool,user,stakedAmount,axlyFeeAmount,posNum,shareId,type) = { | |
383 | 383 | let totalAmount = getPoolTotalShare(pool) | |
384 | 384 | let totalAmountLoan = getPoolTotalShareWithLoan(pool) | |
385 | 385 | let curPoolInterest = getIntegerValue(this, (pool + kPoolInterest)) | |
386 | 386 | [IntegerEntry((pool + kPoolTotal), (totalAmount + stakedAmount)), IntegerEntry((pool + kPoolTotalLoan), (totalAmountLoan + stakedAmount)), IntegerEntry((((((pool + "_") + user) + "_") + toString(posNum)) + kUserPosition), stakedAmount), IntegerEntry((((((pool + "_") + user) + "_") + toString(posNum)) + kUserPositionInterest), curPoolInterest), IntegerEntry((((pool + "_") + user) + kUserPositionNum), posNum), ScriptTransfer(moneyBox, axlyFeeAmount, fromBase58String(shareId))] | |
387 | 387 | } | |
388 | 388 | ||
389 | 389 | ||
390 | 390 | func claimFarmed (type,pool) = if ((type == SF_POOL)) | |
391 | 391 | then { | |
392 | 392 | let balBefore = accountBalance(SWOPID) | |
393 | 393 | if ((balBefore == balBefore)) | |
394 | 394 | then { | |
395 | 395 | let inv = invoke(getSFFarmingAddr(), "claim", [pool], nil) | |
396 | 396 | if ((inv == inv)) | |
397 | 397 | then { | |
398 | 398 | let balAfter = accountBalance(SWOPID) | |
399 | 399 | $Tuple2((balAfter - balBefore), SWOPID) | |
400 | 400 | } | |
401 | 401 | else throw("Strict value is not equal to itself.") | |
402 | 402 | } | |
403 | 403 | else throw("Strict value is not equal to itself.") | |
404 | 404 | } | |
405 | 405 | else if ((type == WX_POOL)) | |
406 | 406 | then { | |
407 | 407 | let balBefore = accountBalance(WXID) | |
408 | 408 | if ((balBefore == balBefore)) | |
409 | 409 | then { | |
410 | 410 | let inv = invoke(getWXFarmingAddr(Address(fromBase58String(pool))), "claimWX", [pool], nil) | |
411 | 411 | if ((inv == inv)) | |
412 | 412 | then { | |
413 | 413 | let balAfter = accountBalance(WXID) | |
414 | 414 | $Tuple2((balAfter - balBefore), WXID) | |
415 | 415 | } | |
416 | 416 | else throw("Strict value is not equal to itself.") | |
417 | 417 | } | |
418 | 418 | else throw("Strict value is not equal to itself.") | |
419 | 419 | } | |
420 | 420 | else throw("Wrong pool type") | |
421 | 421 | ||
422 | 422 | ||
423 | 423 | func exchangeKeeper (toToken,pmtAmount,pmtAsset,amountsIn,addresses,assetsToReceive,estReceived,slippageTolerance,minReceived,options) = { | |
424 | 424 | let tokenBalanceBefore = accountBalance(assetIdFromStr(toToken)) | |
425 | 425 | if ((tokenBalanceBefore == tokenBalanceBefore)) | |
426 | 426 | then { | |
427 | 427 | let inv = invoke(exContract, "swap", [amountsIn, addresses, assetsToReceive, estReceived, slippageTolerance, minReceived, options], [AttachedPayment(pmtAsset, pmtAmount)]) | |
428 | 428 | if ((inv == inv)) | |
429 | 429 | then (accountBalance(assetIdFromStr(toToken)) - tokenBalanceBefore) | |
430 | 430 | else throw("Strict value is not equal to itself.") | |
431 | 431 | } | |
432 | 432 | else throw("Strict value is not equal to itself.") | |
433 | 433 | } | |
434 | 434 | ||
435 | 435 | ||
436 | 436 | func exchangePazzle (toToken,pmtAmount,pmtAsset,routesStr,minToReceive,options) = { | |
437 | 437 | let tokenBalanceBefore = accountBalance(assetIdFromStr(toToken)) | |
438 | 438 | if ((tokenBalanceBefore == tokenBalanceBefore)) | |
439 | 439 | then { | |
440 | 440 | let inv = invoke(exContract, "puzzleSwap", [routesStr, minToReceive, options], [AttachedPayment(pmtAsset, pmtAmount)]) | |
441 | 441 | if ((inv == inv)) | |
442 | 442 | then (accountBalance(assetIdFromStr(toToken)) - tokenBalanceBefore) | |
443 | 443 | else throw("Strict value is not equal to itself.") | |
444 | 444 | } | |
445 | 445 | else throw("Strict value is not equal to itself.") | |
446 | 446 | } | |
447 | 447 | ||
448 | 448 | ||
449 | 449 | func exchangeSwopFi (toToken,pmtAmount,pmtAsset,exchangers,exchangersType,args1,args2,routingAssetsKeys,minAmountToReceive,options) = { | |
450 | 450 | let tokenBalanceBefore = accountBalance(assetIdFromStr(toToken)) | |
451 | 451 | if ((tokenBalanceBefore == tokenBalanceBefore)) | |
452 | 452 | then { | |
453 | 453 | let inv = invoke(exContract, "swopfiSwap", [exchangers, exchangersType, args1, args2, routingAssetsKeys, minAmountToReceive, options], [AttachedPayment(pmtAsset, pmtAmount)]) | |
454 | 454 | if ((inv == inv)) | |
455 | 455 | then (accountBalance(assetIdFromStr(toToken)) - tokenBalanceBefore) | |
456 | 456 | else throw("Strict value is not equal to itself.") | |
457 | 457 | } | |
458 | 458 | else throw("Strict value is not equal to itself.") | |
459 | 459 | } | |
460 | 460 | ||
461 | 461 | ||
462 | 462 | func capitalize (pool,pType,tokenId,tokenAmount) = { | |
463 | 463 | let poolAddr = Address(fromBase58String(pool)) | |
464 | 464 | let $t01469114770 = getPoolData(poolAddr, pType) | |
465 | 465 | let AId = $t01469114770._1 | |
466 | 466 | let BId = $t01469114770._2 | |
467 | 467 | let balA = $t01469114770._3 | |
468 | 468 | let balB = $t01469114770._4 | |
469 | 469 | let shareId = $t01469114770._5 | |
470 | 470 | let $t01477314853 = if ((tokenId == AId)) | |
471 | 471 | then $Tuple2(tokenAmount, 0) | |
472 | 472 | else $Tuple2(0, tokenAmount) | |
473 | 473 | let pmtA = $t01477314853._1 | |
474 | 474 | let pmtB = $t01477314853._2 | |
475 | 475 | let $t01485614971 = replenishByType(pType, pool, CAP_FEE_LOAN, pmtA, AId, pmtB, BId, balA, balB, shareId) | |
476 | 476 | let stakedAmount = $t01485614971._1 | |
477 | 477 | let axlyFee = $t01485614971._2 | |
478 | 478 | let curPoolInterest = valueOrElse(getInteger(this, (pool + kPoolInterest)), 0) | |
479 | 479 | let totalShareAmount = getPoolTotalShare(pool) | |
480 | 480 | let newInterest = (curPoolInterest + fraction(stakedAmount, SCALE10, totalShareAmount)) | |
481 | 481 | [IntegerEntry((pool + kPoolInterest), newInterest), ScriptTransfer(moneyBox, axlyFee, fromBase58String(shareId))] | |
482 | 482 | } | |
483 | 483 | ||
484 | 484 | ||
485 | 485 | func exchangeDirectlySF (pool,assetIdA,assetIdB,balA,balB,amountTokenToGet,assetTokenToGet) = { | |
486 | 486 | let poolAddr = Address(fromBase58String(pool)) | |
487 | 487 | let feeScale6 = 1000000 | |
488 | 488 | let fee = getIntegerValue(poolAddr, kSFPoolFee) | |
489 | 489 | let amntGetNoFee = fraction(amountTokenToGet, feeScale6, (feeScale6 - fee)) | |
490 | 490 | let $t01566415952 = if ((assetTokenToGet == assetIdA)) | |
491 | 491 | then { | |
492 | 492 | let amountToPay = fraction(balA, amntGetNoFee, (balB - amntGetNoFee)) | |
493 | 493 | $Tuple2(amountToPay, assetIdB) | |
494 | 494 | } | |
495 | 495 | else { | |
496 | 496 | let amountToPay = fraction(balB, amntGetNoFee, (balA - amntGetNoFee)) | |
497 | 497 | $Tuple2(amountToPay, assetIdA) | |
498 | 498 | } | |
499 | 499 | let amountToPay = $t01566415952._1 | |
500 | 500 | let assetToPay = $t01566415952._2 | |
501 | 501 | invoke(poolAddr, "callFunction", ["exchange", ["1"]], [AttachedPayment(assetIdFromStr(assetToPay), amountToPay)]) | |
502 | 502 | } | |
503 | 503 | ||
504 | 504 | ||
505 | 505 | func exchangeDirectlyWX (pool,assetIdA,assetIdB,balA,balB,amountTokenToGet,assetTokenToGet) = { | |
506 | 506 | let poolAddr = Address(fromBase58String(pool)) | |
507 | 507 | let prFee = getIntegerValue(wxSwapContract, "%s__protocolFee") | |
508 | 508 | let pFee = getIntegerValue(wxSwapContract, "%s__poolFee") | |
509 | 509 | let feeScale = toBigInt(100000000) | |
510 | 510 | let $t01643116739 = if ((assetTokenToGet == assetIdA)) | |
511 | 511 | then { | |
512 | 512 | let amountToPay = fraction(balA, amountTokenToGet, (balB - amountTokenToGet)) | |
513 | 513 | $Tuple2(amountToPay, assetIdB) | |
514 | 514 | } | |
515 | 515 | else { | |
516 | 516 | let amountToPay = fraction(balB, amountTokenToGet, (balA - amountTokenToGet)) | |
517 | 517 | $Tuple2(amountToPay, assetIdA) | |
518 | 518 | } | |
519 | 519 | let amountToPay = $t01643116739._1 | |
520 | 520 | let assetToPay = $t01643116739._2 | |
521 | 521 | let amountToPayWithFee = toInt(fraction(toBigInt(amountToPay), feeScale, (feeScale - toBigInt((prFee + pFee))))) | |
522 | 522 | invoke(wxSwapContract, "swap", [1, assetTokenToGet, toString(this)], [AttachedPayment(assetIdFromStr(assetToPay), amountToPayWithFee)]) | |
523 | 523 | } | |
524 | 524 | ||
525 | 525 | ||
526 | 526 | func exchangeDirectly (type,pool,assetIdA,assetIdB,balA,balB,amountTokenToGet,assetTokenToGet) = if ((type == SF_POOL)) | |
527 | 527 | then exchangeDirectlySF(pool, assetIdA, assetIdB, balA, balB, amountTokenToGet, assetTokenToGet) | |
528 | 528 | else exchangeDirectlyWX(pool, assetIdA, assetIdB, balA, balB, amountTokenToGet, assetTokenToGet) | |
529 | 529 | ||
530 | 530 | ||
531 | 531 | func withdrawAmountCalc (pool,userCanWithdraw,debt,borrowAsset) = { | |
532 | 532 | let poolAddr = Address(fromBase58String(pool)) | |
533 | 533 | let pType = valueOrErrorMessage(getString(this, (kPool + pool)), "Unknown pool") | |
534 | 534 | let $t01760417671 = getPoolData(poolAddr, pType) | |
535 | 535 | let assetIdA = $t01760417671._1 | |
536 | 536 | let assetIdB = $t01760417671._2 | |
537 | 537 | let balA = $t01760417671._3 | |
538 | 538 | let balB = $t01760417671._4 | |
539 | 539 | let cBalABefore = accountBalance(assetIdFromStr(assetIdA)) | |
540 | 540 | if ((cBalABefore == cBalABefore)) | |
541 | 541 | then { | |
542 | 542 | let cBalBBefore = accountBalance(assetIdFromStr(assetIdB)) | |
543 | 543 | if ((cBalBBefore == cBalBBefore)) | |
544 | 544 | then { | |
545 | 545 | let inv = if ((pType == SF_POOL)) | |
546 | 546 | then invoke(poolAddr, "callFunction", ["withdraw", [toString(userCanWithdraw)]], nil) | |
547 | 547 | else if ((pType == WX_POOL)) | |
548 | 548 | then invoke(poolAddr, "unstakeAndGet", [userCanWithdraw], nil) | |
549 | 549 | else throw("Wrong position type") | |
550 | 550 | if ((inv == inv)) | |
551 | 551 | then { | |
552 | 552 | let cBalAAfter = accountBalance(assetIdFromStr(assetIdA)) | |
553 | 553 | let cBalBAfter = accountBalance(assetIdFromStr(assetIdB)) | |
554 | 554 | let $t01818318272 = $Tuple2((cBalAAfter - cBalABefore), (cBalBAfter - cBalBBefore)) | |
555 | 555 | let tokensAmountA = $t01818318272._1 | |
556 | 556 | let tokensAmountB = $t01818318272._2 | |
557 | 557 | let $t01827518971 = if ((debt > 0)) | |
558 | 558 | then { | |
559 | 559 | let amountToGetEx = if (if ((borrowAsset == assetIdA)) | |
560 | 560 | then (debt > tokensAmountA) | |
561 | 561 | else false) | |
562 | 562 | then (debt - tokensAmountA) | |
563 | 563 | else if (if ((borrowAsset == assetIdB)) | |
564 | 564 | then (debt > tokensAmountB) | |
565 | 565 | else false) | |
566 | 566 | then (debt - tokensAmountB) | |
567 | 567 | else 0 | |
568 | 568 | let exInv = if ((amountToGetEx > 0)) | |
569 | 569 | then exchangeDirectly(pType, pool, assetIdA, assetIdB, balA, balB, amountToGetEx, borrowAsset) | |
570 | 570 | else 0 | |
571 | 571 | if ((exInv == exInv)) | |
572 | 572 | then { | |
573 | 573 | let cBalAAfterRepay = accountBalance(assetIdFromStr(assetIdA)) | |
574 | 574 | let cBalBAfterRepay = accountBalance(assetIdFromStr(assetIdB)) | |
575 | 575 | $Tuple2((cBalAAfterRepay - cBalABefore), (cBalBAfterRepay - cBalBBefore)) | |
576 | 576 | } | |
577 | 577 | else throw("Strict value is not equal to itself.") | |
578 | 578 | } | |
579 | 579 | else $Tuple2(tokensAmountA, tokensAmountB) | |
580 | 580 | let toUserAmountA = $t01827518971._1 | |
581 | 581 | let toUserAmountB = $t01827518971._2 | |
582 | 582 | $Tuple6(toUserAmountA, assetIdA, toUserAmountB, assetIdB, cBalAAfter, cBalBAfter) | |
583 | 583 | } | |
584 | 584 | else throw("Strict value is not equal to itself.") | |
585 | 585 | } | |
586 | 586 | else throw("Strict value is not equal to itself.") | |
587 | 587 | } | |
588 | 588 | else throw("Strict value is not equal to itself.") | |
589 | 589 | } | |
590 | 590 | ||
591 | 591 | ||
592 | 592 | func parseRequest (requestId) = { | |
593 | 593 | let request = split(valueOrErrorMessage(getString(this, (requestId + kRequestId)), ("No request with id " + requestId)), ",") | |
594 | 594 | let user = request[0] | |
595 | 595 | let pool = request[1] | |
596 | 596 | let pmtA = parseIntValue(request[2]) | |
597 | 597 | let AId = request[3] | |
598 | 598 | let pmtB = parseIntValue(request[4]) | |
599 | 599 | let BId = request[5] | |
600 | 600 | let balA = parseIntValue(request[6]) | |
601 | 601 | let balB = parseIntValue(request[7]) | |
602 | 602 | let shareId = request[8] | |
603 | 603 | let bwAsset = request[9] | |
604 | 604 | let bwAmount = parseIntValue(request[10]) | |
605 | 605 | $Tuple11(user, pool, pmtA, AId, pmtB, BId, balA, balB, shareId, bwAsset, bwAmount) | |
606 | 606 | } | |
607 | 607 | ||
608 | 608 | ||
609 | 609 | @Callable(i) | |
610 | 610 | func getAssetPrice (assetId) = $Tuple2(nil, (let @ = invoke(priceOracleAddr, "getTWAP60", [assetId, false], nil) | |
611 | 611 | if ($isInstanceOf(@, "(Int, Int)")) | |
612 | 612 | then @ | |
613 | 613 | else throw(($getType(@) + " couldn't be cast to (Int, Int)")))._2) | |
614 | 614 | ||
615 | 615 | ||
616 | 616 | ||
617 | 617 | @Callable(i) | |
618 | 618 | func getSharePrice (shareId) = { | |
619 | 619 | let pool = valueOrErrorMessage(getString(this, (shareId + kSharePool)), "Can't find pool addr by share id") | |
620 | 620 | let pType = valueOrErrorMessage(getString(this, (kPool + pool)), "Pool is not inited") | |
621 | 621 | let $t02006620136 = getPoolData(Address(fromBase58String(pool)), pType) | |
622 | 622 | let aId = $t02006620136._1 | |
623 | 623 | let bId = $t02006620136._2 | |
624 | 624 | let dPriceA = ( let @ = invoke(priceOracleAddr, "getTWAP60", [aId, false], nil) | |
625 | 625 | if ($isInstanceOf(@, "(Int, Int)")) | |
626 | 626 | then @ | |
627 | 627 | else throw(($getType(@) + " couldn't be cast to (Int, Int)")))._2 | |
628 | 628 | let dPriceB = ( let @ = invoke(priceOracleAddr, "getTWAP60", [bId, false], nil) | |
629 | 629 | if ($isInstanceOf(@, "(Int, Int)")) | |
630 | 630 | then @ | |
631 | 631 | else throw(($getType(@) + " couldn't be cast to (Int, Int)")))._2 | |
632 | 632 | $Tuple2(nil, (dPriceA + dPriceB)) | |
633 | 633 | } | |
634 | 634 | ||
635 | 635 | ||
636 | 636 | ||
637 | 637 | @Callable(i) | |
638 | 638 | func replenishEVALONLY (pool,leverage,borrowAssetId) = if (if ((100 > leverage)) | |
639 | 639 | then true | |
640 | 640 | else (leverage > 300)) | |
641 | 641 | then throw("Leverage can't be <100 and >300") | |
642 | 642 | else { | |
643 | 643 | let pType = valueOrErrorMessage(getString(this, (kPool + pool)), "Pool is not inited") | |
644 | 644 | let $t02062120711 = getPoolData(Address(fromBase58String(pool)), pType) | |
645 | 645 | let AId = $t02062120711._1 | |
646 | 646 | let BId = $t02062120711._2 | |
647 | 647 | let balA = $t02062120711._3 | |
648 | 648 | let balB = $t02062120711._4 | |
649 | 649 | let shareId = $t02062120711._5 | |
650 | 650 | let $t02071421351 = if ((size(i.payments) == 2)) | |
651 | 651 | then if ((assetIdToStr(i.payments[0].assetId) != AId)) | |
652 | 652 | then throw("Wrong payment asset A") | |
653 | 653 | else if ((assetIdToStr(i.payments[1].assetId) != BId)) | |
654 | 654 | then throw("Wrong payment asset B") | |
655 | 655 | else $Tuple4(i.payments[0].amount, AId, i.payments[1].amount, BId) | |
656 | 656 | else if ((size(i.payments) == 1)) | |
657 | 657 | then if ((assetIdToStr(i.payments[0].assetId) == AId)) | |
658 | 658 | then $Tuple4(i.payments[0].amount, AId, 0, BId) | |
659 | 659 | else if ((assetIdToStr(i.payments[0].assetId) == BId)) | |
660 | 660 | then $Tuple4(0, AId, i.payments[0].amount, BId) | |
661 | 661 | else throw("Wrong payment") | |
662 | 662 | else throw("One or two payments expected") | |
663 | 663 | let pmtA = $t02071421351._1 | |
664 | 664 | let pmtAssetA = $t02071421351._2 | |
665 | 665 | let pmtB = $t02071421351._3 | |
666 | 666 | let pmtAssetB = $t02071421351._4 | |
667 | 667 | let $t02135422805 = if ((leverage > 100)) | |
668 | 668 | then { | |
669 | 669 | let dPriceA = ( let @ = invoke(priceOracleAddr, "getTWAP60", [pmtAssetA, false], nil) | |
670 | 670 | if ($isInstanceOf(@, "(Int, Int)")) | |
671 | 671 | then @ | |
672 | 672 | else throw(($getType(@) + " couldn't be cast to (Int, Int)")))._2 | |
673 | 673 | let dPriceB = ( let @ = invoke(priceOracleAddr, "getTWAP60", [pmtAssetB, false], nil) | |
674 | 674 | if ($isInstanceOf(@, "(Int, Int)")) | |
675 | 675 | then @ | |
676 | 676 | else throw(($getType(@) + " couldn't be cast to (Int, Int)")))._2 | |
677 | 677 | let paydInDollar = (fraction(dPriceA, pmtA, pow(10, 0, getAssetDecimals(pmtAssetA), 0, 0, DOWN)) + fraction(dPriceB, pmtB, pow(10, 0, getAssetDecimals(pmtAssetB), 0, 0, DOWN))) | |
678 | 678 | let borrowAmount = fraction(paydInDollar, (leverage - 100), 100) | |
679 | 679 | let request = makeString([toString(i.caller), pool, toString(pmtA), pmtAssetA, toString(pmtB), pmtAssetB, toString(balA), toString(balB), shareId, borrowAssetId, toString(borrowAmount), toString(1)], ",") | |
680 | 680 | let newRequestId = { | |
681 | 681 | let @ = invoke(this, "createNewRequest", [request], nil) | |
682 | 682 | if ($isInstanceOf(@, "Int")) | |
683 | 683 | then @ | |
684 | 684 | else throw(($getType(@) + " couldn't be cast to Int")) | |
685 | 685 | } | |
686 | 686 | if ((newRequestId == newRequestId)) | |
687 | 687 | then { | |
688 | - | let args = [((toString(i.caller) + "_") + toString(1)), shareId, borrowAssetId, borrowAmount, toString(this), " | |
688 | + | let args = [((toString(i.caller) + "_") + toString(1)), shareId, borrowAssetId, borrowAmount, toString(this), "replenishFromLandEVALONLY", toString(valueOrErrorMessage(newRequestId, "Can't create new request"))] | |
689 | 689 | let inv = reentrantInvoke(getLendSrvAddr(), "flashPosition", args, nil) | |
690 | 690 | if ((inv == inv)) | |
691 | 691 | then $Tuple2(getIntegerValue(this, "EVALONLY_STAKEDAMOUNT"), borrowAmount) | |
692 | 692 | else throw("Strict value is not equal to itself.") | |
693 | 693 | } | |
694 | 694 | else throw("Strict value is not equal to itself.") | |
695 | 695 | } | |
696 | 696 | else $Tuple2(replenishByType(pType, pool, NO_LOAN_FEE, pmtA, AId, pmtB, BId, balA, balB, shareId)._1, 0) | |
697 | 697 | let userStaked = $t02135422805._1 | |
698 | 698 | let borrowAmount = $t02135422805._2 | |
699 | 699 | let $t02280922976 = withdrawAmountCalc(pool, userStaked, borrowAmount, borrowAssetId) | |
700 | 700 | if (($t02280922976 == $t02280922976)) | |
701 | 701 | then { | |
702 | 702 | let userGetBBeforeRepay = $t02280922976._6 | |
703 | 703 | let userGetABeforeRepay = $t02280922976._5 | |
704 | 704 | let assetIdB = $t02280922976._4 | |
705 | 705 | let toUserAmountB = $t02280922976._3 | |
706 | 706 | let assetIdA = $t02280922976._2 | |
707 | 707 | let toUserAmountA = $t02280922976._1 | |
708 | 708 | let $t02297923094 = getPoolData(Address(fromBase58String(pool)), pType) | |
709 | 709 | let AIdAfter = $t02297923094._1 | |
710 | 710 | let BIdAfter = $t02297923094._2 | |
711 | 711 | let balAAfter = $t02297923094._3 | |
712 | 712 | let balBAfter = $t02297923094._4 | |
713 | 713 | let shareIdAfter = $t02297923094._5 | |
714 | 714 | let ratioBefore = fraction(balB, SCALE8, balA) | |
715 | 715 | let ratioAfter = fraction(balBAfter, SCALE8, balAAfter) | |
716 | 716 | let impact = (SCALE8 - fraction(ratioBefore, SCALE8, ratioAfter)) | |
717 | 717 | let imcatMod = if ((0 > impact)) | |
718 | 718 | then (impact * -1) | |
719 | 719 | else impact | |
720 | 720 | $Tuple2(nil, [userGetABeforeRepay, userGetBBeforeRepay, imcatMod]) | |
721 | 721 | } | |
722 | 722 | else throw("Strict value is not equal to itself.") | |
723 | 723 | } | |
724 | 724 | ||
725 | 725 | ||
726 | 726 | ||
727 | 727 | @Callable(i) | |
728 | 728 | func replenishFromLandEVALONLY (requestId) = { | |
729 | 729 | let $t02346423568 = parseRequest(requestId) | |
730 | 730 | let user = $t02346423568._1 | |
731 | 731 | let pool = $t02346423568._2 | |
732 | 732 | let pmtA = $t02346423568._3 | |
733 | 733 | let AId = $t02346423568._4 | |
734 | 734 | let pmtB = $t02346423568._5 | |
735 | 735 | let BId = $t02346423568._6 | |
736 | 736 | let balA = $t02346423568._7 | |
737 | 737 | let balB = $t02346423568._8 | |
738 | 738 | let shareId = $t02346423568._9 | |
739 | 739 | let bwAsset = $t02346423568._10 | |
740 | 740 | let bwAmount = $t02346423568._11 | |
741 | 741 | if ((size(i.payments) != 1)) | |
742 | 742 | then throw("Wrong payment size") | |
743 | 743 | else if (if ((assetIdToStr(i.payments[0].assetId) != bwAsset)) | |
744 | 744 | then true | |
745 | 745 | else (i.payments[0].amount != bwAmount)) | |
746 | 746 | then throw("Wrong payment") | |
747 | 747 | else { | |
748 | 748 | let $t02375823882 = if ((AId == bwAsset)) | |
749 | 749 | then $Tuple2((pmtA + i.payments[0].amount), pmtB) | |
750 | 750 | else $Tuple2(pmtA, (pmtB + i.payments[0].amount)) | |
751 | 751 | let pmtAllA = $t02375823882._1 | |
752 | 752 | let pmtAllB = $t02375823882._2 | |
753 | 753 | let pType = valueOrErrorMessage(getString(this, (kPool + pool)), "Unknown pool") | |
754 | 754 | let $t02396424073 = replenishByType(pType, pool, LOAN_FEE, pmtA, AId, pmtB, BId, balA, balB, shareId) | |
755 | 755 | let userStaked = $t02396424073._1 | |
756 | 756 | let axlyFee = $t02396424073._2 | |
757 | 757 | $Tuple2([IntegerEntry("EVALONLY_STAKEDAMOUNT", userStaked)], userStaked) | |
758 | 758 | } | |
759 | 759 | } | |
760 | 760 | ||
761 | 761 | ||
762 | 762 | ||
763 | 763 | @Callable(i) | |
764 | 764 | func replenish (pool,leverage,borrowAssetId) = if (if ((100 > leverage)) | |
765 | 765 | then true | |
766 | 766 | else (leverage > 300)) | |
767 | 767 | then throw("Leverage can't be <100 and >300") | |
768 | 768 | else { | |
769 | 769 | let pType = valueOrErrorMessage(getString(this, (kPool + pool)), "Pool is not inited") | |
770 | 770 | let $t02445024540 = getPoolData(Address(fromBase58String(pool)), pType) | |
771 | 771 | let AId = $t02445024540._1 | |
772 | 772 | let BId = $t02445024540._2 | |
773 | 773 | let balA = $t02445024540._3 | |
774 | 774 | let balB = $t02445024540._4 | |
775 | 775 | let shareId = $t02445024540._5 | |
776 | 776 | let $t02454325180 = if ((size(i.payments) == 2)) | |
777 | 777 | then if ((assetIdToStr(i.payments[0].assetId) != AId)) | |
778 | 778 | then throw("Wrong payment asset A") | |
779 | 779 | else if ((assetIdToStr(i.payments[1].assetId) != BId)) | |
780 | 780 | then throw("Wrong payment asset B") | |
781 | 781 | else $Tuple4(i.payments[0].amount, AId, i.payments[1].amount, BId) | |
782 | 782 | else if ((size(i.payments) == 1)) | |
783 | 783 | then if ((assetIdToStr(i.payments[0].assetId) == AId)) | |
784 | 784 | then $Tuple4(i.payments[0].amount, AId, 0, BId) | |
785 | 785 | else if ((assetIdToStr(i.payments[0].assetId) == BId)) | |
786 | 786 | then $Tuple4(0, AId, i.payments[0].amount, BId) | |
787 | 787 | else throw("Wrong payment") | |
788 | 788 | else throw("One or two payments expected") | |
789 | 789 | let pmtA = $t02454325180._1 | |
790 | 790 | let pmtAssetA = $t02454325180._2 | |
791 | 791 | let pmtB = $t02454325180._3 | |
792 | 792 | let pmtAssetB = $t02454325180._4 | |
793 | 793 | let newPosNum = getNewUserPositionNumber(pool, toString(i.caller)) | |
794 | 794 | if ((leverage > 100)) | |
795 | 795 | then { | |
796 | 796 | let dPriceA = ( let @ = invoke(priceOracleAddr, "getTWAP60", [pmtAssetA, false], nil) | |
797 | 797 | if ($isInstanceOf(@, "(Int, Int)")) | |
798 | 798 | then @ | |
799 | 799 | else throw(($getType(@) + " couldn't be cast to (Int, Int)")))._2 | |
800 | 800 | let dPriceB = ( let @ = invoke(priceOracleAddr, "getTWAP60", [pmtAssetB, false], nil) | |
801 | 801 | if ($isInstanceOf(@, "(Int, Int)")) | |
802 | 802 | then @ | |
803 | 803 | else throw(($getType(@) + " couldn't be cast to (Int, Int)")))._2 | |
804 | 804 | let paydInDollar = (fraction(dPriceA, pmtA, pow(10, 0, getAssetDecimals(pmtAssetA), 0, 0, DOWN)) + fraction(dPriceB, pmtB, pow(10, 0, getAssetDecimals(pmtAssetB), 0, 0, DOWN))) | |
805 | 805 | let borrowAmount = fraction(paydInDollar, (leverage - 100), 100) | |
806 | 806 | let request = makeString([toString(i.caller), pool, toString(pmtA), pmtAssetA, toString(pmtB), pmtAssetB, toString(balA), toString(balB), shareId, borrowAssetId, toString(borrowAmount)], ",") | |
807 | 807 | let newRequestId = { | |
808 | 808 | let @ = invoke(this, "createNewRequest", [request], nil) | |
809 | 809 | if ($isInstanceOf(@, "Int")) | |
810 | 810 | then @ | |
811 | 811 | else throw(($getType(@) + " couldn't be cast to Int")) | |
812 | 812 | } | |
813 | 813 | if ((newRequestId == newRequestId)) | |
814 | 814 | then { | |
815 | 815 | let args = [((toString(i.caller) + "_") + toString(newPosNum)), shareId, borrowAssetId, borrowAmount, toString(this), "replenishFromLand", toString(valueOrErrorMessage(newRequestId, "Can't create new request"))] | |
816 | 816 | let inv = reentrantInvoke(getLendSrvAddr(), "flashPosition", args, nil) | |
817 | 817 | if ((inv == inv)) | |
818 | 818 | then nil | |
819 | 819 | else throw("Strict value is not equal to itself.") | |
820 | 820 | } | |
821 | 821 | else throw("Strict value is not equal to itself.") | |
822 | 822 | } | |
823 | 823 | else { | |
824 | 824 | let $t02647726589 = replenishByType(pType, pool, NO_LOAN_FEE, pmtA, AId, pmtB, BId, balA, balB, shareId) | |
825 | 825 | let userStaked = $t02647726589._1 | |
826 | 826 | let axlyFee = $t02647726589._2 | |
827 | 827 | replenishEntries(pool, toString(i.caller), userStaked, axlyFee, newPosNum, shareId, pType) | |
828 | 828 | } | |
829 | 829 | } | |
830 | 830 | ||
831 | 831 | ||
832 | 832 | ||
833 | 833 | @Callable(i) | |
834 | 834 | func replenishFromLand (requestId) = { | |
835 | 835 | let $t02675126855 = parseRequest(requestId) | |
836 | 836 | let user = $t02675126855._1 | |
837 | 837 | let pool = $t02675126855._2 | |
838 | 838 | let pmtA = $t02675126855._3 | |
839 | 839 | let AId = $t02675126855._4 | |
840 | 840 | let pmtB = $t02675126855._5 | |
841 | 841 | let BId = $t02675126855._6 | |
842 | 842 | let balA = $t02675126855._7 | |
843 | 843 | let balB = $t02675126855._8 | |
844 | 844 | let shareId = $t02675126855._9 | |
845 | 845 | let bwAsset = $t02675126855._10 | |
846 | 846 | let bwAmount = $t02675126855._11 | |
847 | 847 | if ((size(i.payments) != 1)) | |
848 | 848 | then throw("Wrong payment size") | |
849 | 849 | else if (if ((assetIdToStr(i.payments[0].assetId) != bwAsset)) | |
850 | 850 | then true | |
851 | 851 | else (i.payments[0].amount != bwAmount)) | |
852 | 852 | then throw("Wrong payment") | |
853 | 853 | else { | |
854 | 854 | let $t02704527169 = if ((AId == bwAsset)) | |
855 | 855 | then $Tuple2((pmtA + i.payments[0].amount), pmtB) | |
856 | 856 | else $Tuple2(pmtA, (pmtB + i.payments[0].amount)) | |
857 | 857 | let pmtAllA = $t02704527169._1 | |
858 | 858 | let pmtAllB = $t02704527169._2 | |
859 | 859 | let pType = valueOrErrorMessage(getString(this, (kPool + pool)), "Unknown pool") | |
860 | 860 | let $t02725127360 = replenishByType(pType, pool, LOAN_FEE, pmtA, AId, pmtB, BId, balA, balB, shareId) | |
861 | 861 | let userStaked = $t02725127360._1 | |
862 | 862 | let axlyFee = $t02725127360._2 | |
863 | 863 | let posNum = getNewUserPositionNumber(pool, toString(i.caller)) | |
864 | 864 | let borrowEntries = [IntegerEntry((((((pool + "_") + user) + "_") + toString(posNum)) + kUserBorrowAmount), bwAmount), StringEntry((((((pool + "_") + user) + "_") + toString(posNum)) + kUserBorrowAssetId), bwAsset)] | |
865 | 865 | let entries = replenishEntries(pool, user, userStaked, axlyFee, posNum, shareId, pType) | |
866 | 866 | $Tuple2(((entries ++ borrowEntries) :+ DeleteEntry((requestId + kRequestId))), userStaked) | |
867 | 867 | } | |
868 | 868 | } | |
869 | 869 | ||
870 | 870 | ||
871 | 871 | ||
872 | 872 | @Callable(i) | |
873 | 873 | func withdraw (pool,posId) = { | |
874 | 874 | let user = toString(i.caller) | |
875 | 875 | let pAmount = valueOrErrorMessage(getInteger(this, (((((pool + "_") + user) + "_") + toString(posId)) + kUserPosition)), "Unknown position") | |
876 | 876 | let userInterest = getIntegerValue(this, (((((pool + "_") + user) + "_") + toString(posId)) + kUserPositionInterest)) | |
877 | 877 | let poolInterst = getIntegerValue(this, (pool + kPoolInterest)) | |
878 | 878 | let poolTotalShare = getPoolTotalShare(pool) | |
879 | 879 | let userCanWithdraw = (pAmount + fraction(pAmount, (poolInterst - userInterest), SCALE10)) | |
880 | 880 | let userAddr = Address(fromBase58String(user)) | |
881 | 881 | let borrowAmount = getIntegerValue(this, (((((pool + "_") + user) + "_") + toString(posId)) + kUserBorrowAmount)) | |
882 | 882 | let borrowAsset = getStringValue(this, (((((pool + "_") + user) + "_") + toString(posId)) + kUserBorrowAssetId)) | |
883 | 883 | let debt = if ((borrowAmount > 0)) | |
884 | 884 | then { | |
885 | 885 | let @ = invoke(getLendSrvAddr(), "getAssetDebt", [false, ((((pool + "_") + user) + "_") + toString(posId)), borrowAsset], nil) | |
886 | 886 | if ($isInstanceOf(@, "Int")) | |
887 | 887 | then @ | |
888 | 888 | else throw(($getType(@) + " couldn't be cast to Int")) | |
889 | 889 | } | |
890 | 890 | else 0 | |
891 | 891 | let $t02880228922 = withdrawAmountCalc(pool, userCanWithdraw, debt, borrowAsset) | |
892 | 892 | if (($t02880228922 == $t02880228922)) | |
893 | 893 | then { | |
894 | 894 | let assetIdB = $t02880228922._4 | |
895 | 895 | let toUserAmountB = $t02880228922._3 | |
896 | 896 | let assetIdA = $t02880228922._2 | |
897 | 897 | let toUserAmountA = $t02880228922._1 | |
898 | 898 | let closeDbtInv = if ((debt > 0)) | |
899 | 899 | then invoke(getLendSrvAddr(), "repayFor", [((user + "_") + toString(posId))], [AttachedPayment(assetIdFromStr(borrowAsset), debt)]) | |
900 | 900 | else 0 | |
901 | 901 | if ((closeDbtInv == closeDbtInv)) | |
902 | 902 | then [DeleteEntry((((((pool + "_") + user) + "_") + toString(posId)) + kUserPosition)), DeleteEntry((((((pool + "_") + user) + "_") + toString(posId)) + kUserPositionInterest)), IntegerEntry((pool + kPoolTotal), (poolTotalShare - userCanWithdraw)), ScriptTransfer(userAddr, toUserAmountA, assetIdFromStr(assetIdA)), ScriptTransfer(userAddr, toUserAmountB, assetIdFromStr(assetIdB))] | |
903 | 903 | else throw("Strict value is not equal to itself.") | |
904 | 904 | } | |
905 | 905 | else throw("Strict value is not equal to itself.") | |
906 | 906 | } | |
907 | 907 | ||
908 | 908 | ||
909 | 909 | ||
910 | 910 | @Callable(i) | |
911 | 911 | func createNewRequest (params) = valueOrElse(isSelfCall(i), { | |
912 | 912 | let newRequestId = (valueOrElse(getInteger(this, kRequestIter), 0) + 1) | |
913 | 913 | $Tuple2([StringEntry((toString(newRequestId) + kRequestId), params), IntegerEntry(kRequestIter, newRequestId)], newRequestId) | |
914 | 914 | }) | |
915 | 915 | ||
916 | 916 | ||
917 | 917 | ||
918 | 918 | @Callable(i) | |
919 | 919 | func capitalizeExKeeper (pool,type,tokenToId,amountToExchange,claim,amountsIn,addresses,assetsToReceive,estReceived,slippageTolerance,minReceived,options) = { | |
920 | 920 | let $t03021930413 = if (claim) | |
921 | 921 | then claimFarmed(type, pool) | |
922 | 922 | else { | |
923 | 923 | let claimedAsset = if ((type == SF_POOL)) | |
924 | 924 | then SWOPID | |
925 | 925 | else WXID | |
926 | 926 | $Tuple2(amountToExchange, claimedAsset) | |
927 | 927 | } | |
928 | 928 | let claimedAmount = $t03021930413._1 | |
929 | 929 | let claimedAsset = $t03021930413._2 | |
930 | 930 | let exchangedAmount = exchangeKeeper(tokenToId, amountToExchange, claimedAsset, amountsIn, addresses, assetsToReceive, estReceived, slippageTolerance, minReceived, options) | |
931 | 931 | let change = (claimedAmount - amountToExchange) | |
932 | 932 | let changeEntry = if ((change > 0)) | |
933 | 933 | then [IntegerEntry((pool + kPoolCapChange), (change + valueOrElse(getInteger(this, (pool + kPoolCapChange)), 0)))] | |
934 | 934 | else nil | |
935 | 935 | (capitalize(pool, type, tokenToId, exchangedAmount) ++ changeEntry) | |
936 | 936 | } | |
937 | 937 | ||
938 | 938 | ||
939 | 939 | ||
940 | 940 | @Callable(i) | |
941 | 941 | func capitalizeExPazzle (pool,type,tokenToId,amountToExchange,claim,routesStr,minToReceive,options) = { | |
942 | 942 | let $t03106931263 = if (claim) | |
943 | 943 | then claimFarmed(type, pool) | |
944 | 944 | else { | |
945 | 945 | let claimedAsset = if ((type == SF_POOL)) | |
946 | 946 | then SWOPID | |
947 | 947 | else WXID | |
948 | 948 | $Tuple2(amountToExchange, claimedAsset) | |
949 | 949 | } | |
950 | 950 | let claimedAmount = $t03106931263._1 | |
951 | 951 | let claimedAsset = $t03106931263._2 | |
952 | 952 | let exchangedAmount = exchangePazzle(tokenToId, amountToExchange, claimedAsset, routesStr, minToReceive, options) | |
953 | 953 | let change = (claimedAmount - amountToExchange) | |
954 | 954 | let changeEntry = if ((change > 0)) | |
955 | 955 | then [IntegerEntry((pool + kPoolCapChange), (change + valueOrElse(getInteger(this, (pool + kPoolCapChange)), 0)))] | |
956 | 956 | else nil | |
957 | 957 | (capitalize(pool, type, tokenToId, exchangedAmount) ++ changeEntry) | |
958 | 958 | } | |
959 | 959 | ||
960 | 960 | ||
961 | 961 | ||
962 | 962 | @Callable(i) | |
963 | 963 | func capitalizeExSwopFi (pool,type,tokenToId,amountToExchange,claim,exchangers,exchangersType,args1,args2,routingAssetsKeys,minAmountToReceive,options) = { | |
964 | 964 | let $t03198632180 = if (claim) | |
965 | 965 | then claimFarmed(type, pool) | |
966 | 966 | else { | |
967 | 967 | let claimedAsset = if ((type == SF_POOL)) | |
968 | 968 | then SWOPID | |
969 | 969 | else WXID | |
970 | 970 | $Tuple2(amountToExchange, claimedAsset) | |
971 | 971 | } | |
972 | 972 | let claimedAmount = $t03198632180._1 | |
973 | 973 | let claimedAsset = $t03198632180._2 | |
974 | 974 | let exchangedAmount = exchangeSwopFi(tokenToId, amountToExchange, claimedAsset, exchangers, exchangersType, args1, args2, routingAssetsKeys, minAmountToReceive, options) | |
975 | 975 | let change = (claimedAmount - amountToExchange) | |
976 | 976 | let changeEntry = if ((change > 0)) | |
977 | 977 | then [IntegerEntry((pool + kPoolCapChange), (change + valueOrElse(getInteger(this, (pool + kPoolCapChange)), 0)))] | |
978 | 978 | else nil | |
979 | 979 | (capitalize(pool, type, tokenToId, exchangedAmount) ++ changeEntry) | |
980 | 980 | } | |
981 | 981 | ||
982 | 982 | ||
983 | 983 | ||
984 | 984 | @Callable(i) | |
985 | 985 | func initNewPool (type,poolAddr,inFeeNoLoan,inFeeLoan,capFeeNoLoan,capFeeWithLoan) = if (if ((type != SF_POOL)) | |
986 | 986 | then (type != WX_POOL) | |
987 | 987 | else false) | |
988 | 988 | then throw("Wrong type") | |
989 | 989 | else { | |
990 | 990 | let $t03282532919 = getPoolData(Address(fromBase58String(poolAddr)), type) | |
991 | 991 | let aId = $t03282532919._1 | |
992 | 992 | let bId = $t03282532919._2 | |
993 | 993 | let aBal = $t03282532919._3 | |
994 | 994 | let bBal = $t03282532919._4 | |
995 | 995 | let shareId = $t03282532919._5 | |
996 | 996 | [IntegerEntry((poolAddr + kAxlyInFeeWithoutLoan), inFeeNoLoan), IntegerEntry((poolAddr + kAxlyInFeeWithLoan), inFeeLoan), IntegerEntry((poolAddr + kAxlyNoLoanCapFee), capFeeNoLoan), IntegerEntry((poolAddr + kAxlyWithLoanCapFee), capFeeWithLoan), IntegerEntry((poolAddr + kPoolInterest), 0), StringEntry((kPool + poolAddr), type), StringEntry((shareId + kSharePool), poolAddr)] | |
997 | 997 | } | |
998 | 998 | ||
999 | 999 | ||
1000 | 1000 | @Verifier(tx) | |
1001 | 1001 | func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) | |
1002 | 1002 |
github/deemru/w8io/026f985 94.62 ms ◑