tx · GfZCTRHQFL13gPqe2DmzqWHQ5y8XErWRRaP6NKcGSBjV 3MwK9LnnPa74fhkd46WQzyEWo2CGSsqLtQi: -0.05500000 Waves 2023.07.31 16:58 [2690142] smart account 3MwK9LnnPa74fhkd46WQzyEWo2CGSsqLtQi > SELF 0.00000000 Waves
{ "type": 13, "id": "GfZCTRHQFL13gPqe2DmzqWHQ5y8XErWRRaP6NKcGSBjV", "fee": 5500000, "feeAssetId": null, "timestamp": 1690811879897, "version": 2, "chainId": 84, "sender": "3MwK9LnnPa74fhkd46WQzyEWo2CGSsqLtQi", "senderPublicKey": "BbZ6o9SpTxGQ8uCEj3KWwmTGey1bYou2uVeyeFq1J7Hd", "proofs": [ "5Dz7U83wFpsrGjmZCNFptfZ32j3J6fczPxJG73UuMVJtwqcWAPAVfQXdpMkPioUkxDfCUz9v6P8RKQNuXuK6kkHR", "5B6mTSfsNbZ4QqUpR9436W3oS8oQYjSfz6SgGWo1cuLa8wcWMLfEf6srHJk26N2BtYcaejQKmgxkANubryprTErR" ], "script": "base64:BgKxAQgCEgMKAQgSBAoCCAgSBQoDCBgYEgUKAwgBCBIECgIIARIGCgQBCAgBEgUKAwEICBIPCg0ICAgICAgICAgICAgIEgMKAQgSAwoBCBIFCgMICAESBgoECAEICBINCgsICAEEERgYGAEBGBIJCgcICAEECAEYEg0KCwgIAQQYGBgYGAEYEgUKAwgEARILCgkICAEBAQEBAQQSABIAEgASABIAEgASABIAEgMKAQgSAwoBCIEBAAdTRl9QT09MAgJTRgAHV1hfUE9PTAICV1gAD0NBUF9GRUVfTk9fTE9BTgIJY2FwTm9Mb2FuAAxDQVBfRkVFX0xPQU4CB2NhcExvYW4AFFNUT1BMT1NTX0ZFRV9OT19MT0FOAg5zdG9wTG9zc05vTG9hbgANU1RPUExPU1NfTE9BTgIMc3RvcExvc3NMb2FuAAhMT0FOX0ZFRQIEbG9hbgALTk9fTE9BTl9GRUUCBm5vTG9hbgAGTk9fRkVFAgVub0ZlZQAGU0NBT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Ym9keUJ5dGVzCQCRAwIIBQJ0eAZwcm9vZnMAAAUOZ3JvdXAxQWRtaW4yUEsAAQAABAxncm91cDJTaWduZWQDCQD0AwMIBQJ0eAlib2R5Qnl0ZXMJAJEDAggFAnR4BnByb29mcwABBQ5ncm91cDJBZG1pbjFQSwABCQBkAgAAAwkA9AMDCAUCdHgJYm9keUJ5dGVzCQCRAwIIBQJ0eAZwcm9vZnMAAQUOZ3JvdXAyQWRtaW4yUEsAAQAACQAAAgkAZAIFDGdyb3VwMVNpZ25lZAUMZ3JvdXAyU2lnbmVkAAJDKEwK", "height": 2690142, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 271h5FG9hXHYHTbxT3saassCkJGiBgZzE3yPsXrF2qpL Next: none Full:
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 STOPLOSS_FEE_NO_LOAN = "stopLossNoLoan" | |
13 | 13 | ||
14 | 14 | let STOPLOSS_LOAN = "stopLossLoan" | |
15 | 15 | ||
16 | 16 | let LOAN_FEE = "loan" | |
17 | 17 | ||
18 | 18 | let NO_LOAN_FEE = "noLoan" | |
19 | 19 | ||
20 | 20 | let NO_FEE = "noFee" | |
21 | 21 | ||
22 | 22 | let SCALE8 = 100000000 | |
23 | 23 | ||
24 | 24 | let SCALE10 = 10000000000 | |
25 | 25 | ||
26 | 26 | let SCALE16 = toBigInt(10000000000000000) | |
27 | 27 | ||
28 | 28 | let FEE_SCALE6 = 1000000 | |
29 | 29 | ||
30 | 30 | let kSFPoolAAssetBalance = "A_asset_balance" | |
31 | 31 | ||
32 | 32 | let kSFPoolBAssetBalance = "B_asset_balance" | |
33 | 33 | ||
34 | 34 | let kSFPoolAAssetId = "A_asset_id" | |
35 | 35 | ||
36 | 36 | let kSFPoolBAssetId = "B_asset_id" | |
37 | 37 | ||
38 | 38 | let kSFPoolShareId = "share_asset_id" | |
39 | 39 | ||
40 | 40 | let kSFPoolShareSupply = "share_asset_supply" | |
41 | 41 | ||
42 | 42 | let kSFPoolFee = "commission" | |
43 | 43 | ||
44 | 44 | let kUserPosition = "_userPosition" | |
45 | 45 | ||
46 | 46 | let kUserPositionPool = "_userPositionPool" | |
47 | 47 | ||
48 | 48 | let kUserBorrowAmount = "_userPositionBorrowAmount" | |
49 | 49 | ||
50 | 50 | let kUserBorrowAssetId = "_userPositionBorrowAssetId" | |
51 | 51 | ||
52 | 52 | let kUserPositionNum = "_userPositionNumber" | |
53 | 53 | ||
54 | 54 | let kUserPositionInterest = "_userPositionInterest" | |
55 | 55 | ||
56 | 56 | let kPoolTotal = "_poolTotal" | |
57 | 57 | ||
58 | 58 | let kPoolTotalLoan = "_poolTotalLoan" | |
59 | 59 | ||
60 | 60 | let kPoolInterestLoan = "_poolInterestLoan" | |
61 | 61 | ||
62 | 62 | let kPoolInterestNoLoan = "_poolInterestNoLoan" | |
63 | 63 | ||
64 | 64 | let kPoolCanBorrow = "_poolCanBorrow" | |
65 | 65 | ||
66 | 66 | let kAxlyInFeeWithoutLoan = "_axlyFeeNoLoan" | |
67 | 67 | ||
68 | 68 | let kAxlyInFeeWithLoan = "_axlyFeeWithLoan" | |
69 | 69 | ||
70 | 70 | let kAxlyNoLoanCapFee = "_axlyFeeCapWithLoan" | |
71 | 71 | ||
72 | 72 | let kAxlyWithLoanCapFee = "_axlyFeeCapNoLoan" | |
73 | 73 | ||
74 | 74 | let kAxlyStopLossNoLoanFee = "_axlyFeeStoplossWithLoan" | |
75 | 75 | ||
76 | 76 | let kAxlyStopLossLoanFee = "_axlyFeeStoplossNoLoan" | |
77 | 77 | ||
78 | 78 | let kRequestId = "_request_id" | |
79 | 79 | ||
80 | 80 | let kRequestIter = "requests_iter" | |
81 | 81 | ||
82 | 82 | let kPool = "pool_" | |
83 | 83 | ||
84 | 84 | let kSharePool = "_poolShareId" | |
85 | 85 | ||
86 | 86 | let kPoolCapChange = "_poolCapChange" | |
87 | 87 | ||
88 | 88 | let kTokenLastPrice = "last_price" | |
89 | 89 | ||
90 | 90 | let kPriceInOracle = "_twap5B" | |
91 | 91 | ||
92 | 92 | let kActive = "active" | |
93 | 93 | ||
94 | 94 | let kActiveUsers = "activeUsers" | |
95 | 95 | ||
96 | 96 | let kActiveSFWX = "_active" | |
97 | 97 | ||
98 | 98 | let kPoolActive = "_activePool" | |
99 | 99 | ||
100 | 100 | let kUserStopLoss = "_stopLoss" | |
101 | 101 | ||
102 | 102 | let kMoneyBox = "axly_money_box" | |
103 | 103 | ||
104 | 104 | let kSFFarmingAddr = "swopfi_farming_addr" | |
105 | 105 | ||
106 | 106 | let kLendService = "lend_service_addr" | |
107 | 107 | ||
108 | 108 | let kOperatorCallPK = "admin_call_pub_key" | |
109 | 109 | ||
110 | 110 | let kPriceOracle = "price_oracle" | |
111 | 111 | ||
112 | 112 | let kExContract = "exchange_contract" | |
113 | 113 | ||
114 | 114 | let kWxSwapContract = "wx_swap_contract" | |
115 | 115 | ||
116 | 116 | let kSwopId = "swop_id" | |
117 | 117 | ||
118 | 118 | let kWxId = "wx_id" | |
119 | 119 | ||
120 | 120 | let kGroup1Admin1PK = "group1_admin1_pub_key" | |
121 | 121 | ||
122 | 122 | let kGroup1Admin2PK = "group1_admin2_pub_key" | |
123 | 123 | ||
124 | 124 | let kGroup2Admin1PK = "group2_admin1_pub_key" | |
125 | 125 | ||
126 | 126 | let kGroup2Admin2PK = "group2_admin2_pub_key" | |
127 | 127 | ||
128 | 128 | let moneyBox = Address(fromBase58String(valueOrErrorMessage(getString(this, kMoneyBox), "No axly moneyBox address"))) | |
129 | 129 | ||
130 | 130 | let exContract = Address(fromBase58String(valueOrErrorMessage(getString(this, kExContract), "No exchange contract address"))) | |
131 | 131 | ||
132 | 132 | let priceOracleAddr = Address(fromBase58String(valueOrErrorMessage(getString(this, kPriceOracle), "No price oracle address"))) | |
133 | 133 | ||
134 | 134 | let wxSwapContract = Address(fromBase58String(valueOrErrorMessage(getString(this, kWxSwapContract), "No wx swap address"))) | |
135 | 135 | ||
136 | 136 | let SWOPID = fromBase58String(valueOrErrorMessage(getString(this, kSwopId), "No swop id")) | |
137 | 137 | ||
138 | 138 | let WXID = fromBase58String(valueOrErrorMessage(getString(this, kWxId), "No wx id")) | |
139 | 139 | ||
140 | 140 | let group1Admin1PK = fromBase58String(valueOrErrorMessage(getString(this, kGroup1Admin1PK), "Can't get kGroup1Admin1PK")) | |
141 | 141 | ||
142 | 142 | let group1Admin2PK = fromBase58String(valueOrErrorMessage(getString(this, kGroup1Admin2PK), "Can't get kGroup1Admin2PK")) | |
143 | 143 | ||
144 | 144 | let group2Admin1PK = fromBase58String(valueOrErrorMessage(getString(this, kGroup2Admin1PK), "Can't get kGroup2Admin1PK")) | |
145 | 145 | ||
146 | 146 | let group2Admin2PK = fromBase58String(valueOrErrorMessage(getString(this, kGroup2Admin2PK), "Can't get kGroup2Admin1PK")) | |
147 | 147 | ||
148 | 148 | let operatorPK = fromBase58String(valueOrErrorMessage(getString(this, kOperatorCallPK), "Can't get operatorPK")) | |
149 | 149 | ||
150 | 150 | func unknownPoolType () = throw("Wrong pool type") | |
151 | 151 | ||
152 | 152 | ||
153 | 153 | func getLendSrvAddr () = Address(fromBase58String(valueOrErrorMessage(getString(this, kLendService), "Can't get lend service addr"))) | |
154 | 154 | ||
155 | 155 | ||
156 | 156 | func isOperatorCall (i) = if ((i.callerPublicKey == operatorPK)) | |
157 | 157 | then unit | |
158 | 158 | else throw("Only operator can call this function") | |
159 | 159 | ||
160 | 160 | ||
161 | 161 | func isAdminCall (i) = if (if ((i.callerPublicKey == group1Admin1PK)) | |
162 | 162 | then true | |
163 | 163 | else (i.callerPublicKey == group1Admin2PK)) | |
164 | 164 | then unit | |
165 | 165 | else throw("Only admin group1 can call this function") | |
166 | 166 | ||
167 | 167 | ||
168 | 168 | func isSelfCall (i) = if ((i.caller == this)) | |
169 | 169 | then unit | |
170 | 170 | else throw("Only contract itself can call this function") | |
171 | 171 | ||
172 | 172 | ||
173 | 173 | func isLandCall (i) = if ((i.caller == getLendSrvAddr())) | |
174 | 174 | then unit | |
175 | 175 | else throw("Only land contract can call this function") | |
176 | 176 | ||
177 | 177 | ||
178 | 178 | func isActive () = if ((valueOrElse(getBoolean(this, kActive), true) == true)) | |
179 | 179 | then unit | |
180 | 180 | else throw("DApp is inactive at this moment") | |
181 | 181 | ||
182 | 182 | ||
183 | 183 | func isActiveForUsers () = if (if (valueOrElse(getBoolean(this, kActive), true)) | |
184 | 184 | then (valueOrElse(getBoolean(this, kActiveUsers), true) == true) | |
185 | 185 | else false) | |
186 | 186 | then unit | |
187 | 187 | else throw("DApp is inactive for users at this moment") | |
188 | 188 | ||
189 | 189 | ||
190 | 190 | func isPoolActive (pool,type) = { | |
191 | 191 | let WXSFActive = valueOrElse(getBoolean(this, (type + kActiveSFWX)), true) | |
192 | 192 | let poolActive = valueOrElse(getBoolean(this, (pool + kPoolActive)), true) | |
193 | 193 | if (if (WXSFActive) | |
194 | 194 | then poolActive | |
195 | 195 | else false) | |
196 | 196 | then true | |
197 | 197 | else false | |
198 | 198 | } | |
199 | 199 | ||
200 | 200 | ||
201 | 201 | func accountBalance (assetId) = match assetId { | |
202 | 202 | case id: ByteVector => | |
203 | 203 | assetBalance(this, id) | |
204 | 204 | case waves: Unit => | |
205 | 205 | wavesBalance(this).available | |
206 | 206 | case _ => | |
207 | 207 | throw("Match error") | |
208 | 208 | } | |
209 | 209 | ||
210 | 210 | ||
211 | 211 | func getSFPoolBalances (poolAddr) = $Tuple2(valueOrErrorMessage(getInteger(poolAddr, kSFPoolAAssetBalance), "Can't get pool A asset balance"), valueOrErrorMessage(getInteger(poolAddr, kSFPoolBAssetBalance), "Can't get pool B asset balance")) | |
212 | 212 | ||
213 | 213 | ||
214 | 214 | func getWXPoolBalances (poolAddr,aId,bId) = $Tuple2({ | |
215 | 215 | let @ = invoke(poolAddr, "getAccBalanceWrapperREADONLY", [aId], nil) | |
216 | 216 | if ($isInstanceOf(@, "Int")) | |
217 | 217 | then @ | |
218 | 218 | else throw(($getType(@) + " couldn't be cast to Int")) | |
219 | 219 | }, { | |
220 | 220 | let @ = invoke(poolAddr, "getAccBalanceWrapperREADONLY", [bId], nil) | |
221 | 221 | if ($isInstanceOf(@, "Int")) | |
222 | 222 | then @ | |
223 | 223 | else throw(($getType(@) + " couldn't be cast to Int")) | |
224 | 224 | }) | |
225 | 225 | ||
226 | 226 | ||
227 | 227 | func getPoolBalances (poolAddr,type,aId,bId) = if ((type == SF_POOL)) | |
228 | 228 | then getSFPoolBalances(poolAddr) | |
229 | 229 | else if ((type == WX_POOL)) | |
230 | 230 | then getWXPoolBalances(poolAddr, aId, bId) | |
231 | 231 | else unknownPoolType() | |
232 | 232 | ||
233 | 233 | ||
234 | 234 | func getSFPoolData (poolAddr) = { | |
235 | 235 | let $t078997948 = getSFPoolBalances(poolAddr) | |
236 | 236 | if (($t078997948 == $t078997948)) | |
237 | 237 | then { | |
238 | 238 | let balB = $t078997948._2 | |
239 | 239 | let balA = $t078997948._1 | |
240 | 240 | $Tuple5(valueOrErrorMessage(getString(poolAddr, kSFPoolAAssetId), "Can't get pool A asset id"), valueOrErrorMessage(getString(poolAddr, kSFPoolBAssetId), "Can't get pool B asset id"), balA, balB, valueOrErrorMessage(getString(poolAddr, kSFPoolShareId), "Can't get share asset id")) | |
241 | 241 | } | |
242 | 242 | else throw("Strict value is not equal to itself.") | |
243 | 243 | } | |
244 | 244 | ||
245 | 245 | ||
246 | 246 | func getWXPoolData (poolAddr) = { | |
247 | 247 | let cfg = { | |
248 | 248 | let @ = invoke(poolAddr, "getPoolConfigWrapperREADONLY", nil, nil) | |
249 | 249 | if ($isInstanceOf(@, "List[Any]")) | |
250 | 250 | then @ | |
251 | 251 | else throw(($getType(@) + " couldn't be cast to List[Any]")) | |
252 | 252 | } | |
253 | 253 | if ((cfg == cfg)) | |
254 | 254 | then { | |
255 | 255 | let aId = valueOrErrorMessage({ | |
256 | 256 | let @ = cfg[4] | |
257 | 257 | if ($isInstanceOf(@, "String")) | |
258 | 258 | then @ | |
259 | 259 | else unit | |
260 | 260 | }, "Can't get pool A asset id") | |
261 | 261 | let bId = valueOrErrorMessage({ | |
262 | 262 | let @ = cfg[5] | |
263 | 263 | if ($isInstanceOf(@, "String")) | |
264 | 264 | then @ | |
265 | 265 | else unit | |
266 | 266 | }, "Can't get pool B asset id") | |
267 | 267 | let shareId = valueOrErrorMessage({ | |
268 | 268 | let @ = cfg[3] | |
269 | 269 | if ($isInstanceOf(@, "String")) | |
270 | 270 | then @ | |
271 | 271 | else unit | |
272 | 272 | }, "Can't get pool LP asset id") | |
273 | 273 | let $t086458704 = getWXPoolBalances(poolAddr, aId, bId) | |
274 | 274 | if (($t086458704 == $t086458704)) | |
275 | 275 | then { | |
276 | 276 | let balB = $t086458704._2 | |
277 | 277 | let balA = $t086458704._1 | |
278 | 278 | $Tuple5(aId, bId, balA, balB, shareId) | |
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 getPoolData (poolAddr,type) = if ((type == SF_POOL)) | |
287 | 287 | then getSFPoolData(poolAddr) | |
288 | 288 | else if ((type == WX_POOL)) | |
289 | 289 | then getWXPoolData(poolAddr) | |
290 | 290 | else unknownPoolType() | |
291 | 291 | ||
292 | 292 | ||
293 | 293 | func getShareSupply (poolAddr,type,shareId) = if ((type == SF_POOL)) | |
294 | 294 | then valueOrErrorMessage(getInteger(poolAddr, kSFPoolShareSupply), "Can't get share asset supply") | |
295 | 295 | else if ((type == WX_POOL)) | |
296 | 296 | then valueOrErrorMessage(assetInfo(fromBase58String(shareId)), "Wrong ShareId").quantity | |
297 | 297 | else unknownPoolType() | |
298 | 298 | ||
299 | 299 | ||
300 | 300 | func getPoolTotalShare (pool) = valueOrElse(getInteger(this, (pool + kPoolTotal)), 0) | |
301 | 301 | ||
302 | 302 | ||
303 | 303 | func getPoolTotalShareWithLoan (pool) = valueOrElse(getInteger(this, (pool + kPoolTotalLoan)), 0) | |
304 | 304 | ||
305 | 305 | ||
306 | 306 | func getNewUserPositionNumber (user) = (valueOrElse(getInteger(this, (user + kUserPositionNum)), 0) + 1) | |
307 | 307 | ||
308 | 308 | ||
309 | 309 | func getAxlyFee (pool,feeType) = if ((feeType == CAP_FEE_LOAN)) | |
310 | 310 | then getIntegerValue(this, (pool + kAxlyWithLoanCapFee)) | |
311 | 311 | else if ((feeType == CAP_FEE_NO_LOAN)) | |
312 | 312 | then getIntegerValue(this, (pool + kAxlyNoLoanCapFee)) | |
313 | 313 | else if ((feeType == LOAN_FEE)) | |
314 | 314 | then getIntegerValue(this, (pool + kAxlyInFeeWithLoan)) | |
315 | 315 | else if ((feeType == NO_LOAN_FEE)) | |
316 | 316 | then getIntegerValue(this, (pool + kAxlyInFeeWithoutLoan)) | |
317 | 317 | else if ((feeType == NO_FEE)) | |
318 | 318 | then 0 | |
319 | 319 | else throw("Wrong fee type") | |
320 | 320 | ||
321 | 321 | ||
322 | 322 | func getSFFarmingAddr () = Address(fromBase58String(valueOrErrorMessage(getString(this, kSFFarmingAddr), "Can't get swopfi farming addr"))) | |
323 | 323 | ||
324 | 324 | ||
325 | 325 | func getWXFarmingAddr (poolAddr) = { | |
326 | 326 | let fContract = Address(fromBase58String(valueOrErrorMessage(getString(poolAddr, "%s__factoryContract"), "Can't get WX factory contract addr"))) | |
327 | 327 | let factroyCfg = split(valueOrErrorMessage(getString(fContract, "%s__factoryConfig"), "Can't get WX factory cfg"), "__") | |
328 | 328 | Address(fromBase58String(factroyCfg[1])) | |
329 | 329 | } | |
330 | 330 | ||
331 | 331 | ||
332 | 332 | func assetIdToStr (assetId) = match assetId { | |
333 | 333 | case id: ByteVector => | |
334 | 334 | toBase58String(id) | |
335 | 335 | case waves: Unit => | |
336 | 336 | "WAVES" | |
337 | 337 | case _ => | |
338 | 338 | throw("Not Asset id") | |
339 | 339 | } | |
340 | 340 | ||
341 | 341 | ||
342 | 342 | func assetIdFromStr (assetId) = if ((assetId == "WAVES")) | |
343 | 343 | then unit | |
344 | 344 | else fromBase58String(assetId) | |
345 | 345 | ||
346 | 346 | ||
347 | 347 | func getAssetDecimals (assetId) = if ((assetId == "WAVES")) | |
348 | 348 | then 8 | |
349 | 349 | else match assetInfo(fromBase58String(assetId)) { | |
350 | 350 | case asset: Asset => | |
351 | 351 | asset.decimals | |
352 | 352 | case _ => | |
353 | 353 | throw("Can't find asset") | |
354 | 354 | } | |
355 | 355 | ||
356 | 356 | ||
357 | 357 | func getAssetPrecition (assetId) = pow(10, 0, getAssetDecimals(assetId), 0, 0, DOWN) | |
358 | 358 | ||
359 | 359 | ||
360 | 360 | func getAssetsPrice (assetIds) = { | |
361 | 361 | func getPrices (a,assetId) = { | |
362 | 362 | let assetPrice = getIntegerValue(priceOracleAddr, (assetId + kPriceInOracle)) | |
363 | 363 | (a :+ assetPrice) | |
364 | 364 | } | |
365 | 365 | ||
366 | 366 | let $l = assetIds | |
367 | 367 | let $s = size($l) | |
368 | 368 | let $acc0 = nil | |
369 | 369 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
370 | 370 | then $a | |
371 | 371 | else getPrices($a, $l[$i]) | |
372 | 372 | ||
373 | 373 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
374 | 374 | then $a | |
375 | 375 | else throw("List size exceeds 50") | |
376 | 376 | ||
377 | 377 | $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) | |
378 | 378 | } | |
379 | 379 | ||
380 | 380 | ||
381 | 381 | func getSharePrice (shareId) = { | |
382 | 382 | let pool = valueOrErrorMessage(getString(this, (shareId + kSharePool)), "Can't find pool addr by share id") | |
383 | 383 | let poolAddr = Address(fromBase58String(pool)) | |
384 | 384 | let pType = valueOrErrorMessage(getString(this, (kPool + pool)), "Pool is not inited") | |
385 | 385 | let $t01168211747 = getPoolData(poolAddr, pType) | |
386 | 386 | let aId = $t01168211747._1 | |
387 | 387 | let bId = $t01168211747._2 | |
388 | 388 | let aBalance = $t01168211747._3 | |
389 | 389 | let bBalance = $t01168211747._4 | |
390 | 390 | let dPriceA = getIntegerValue(priceOracleAddr, (aId + kPriceInOracle)) | |
391 | 391 | let dPriceB = getIntegerValue(priceOracleAddr, (bId + kPriceInOracle)) | |
392 | 392 | let shareSupply = getShareSupply(poolAddr, pType, shareId) | |
393 | 393 | let APrecision = pow(10, 0, getAssetDecimals(aId), 0, 0, DOWN) | |
394 | 394 | let BPrecision = pow(10, 0, getAssetDecimals(bId), 0, 0, DOWN) | |
395 | 395 | let sharePrecision = pow(10, 0, getAssetDecimals(shareId), 0, 0, DOWN) | |
396 | 396 | let sum = (fraction(aBalance, dPriceA, APrecision) + fraction(bBalance, dPriceB, BPrecision)) | |
397 | 397 | fraction(sum, sharePrecision, shareSupply) | |
398 | 398 | } | |
399 | 399 | ||
400 | 400 | ||
401 | 401 | func getSharePrices (shareIds) = { | |
402 | 402 | func getPrices (a,shareId) = (a :+ getSharePrice(shareId)) | |
403 | 403 | ||
404 | 404 | let $l = shareIds | |
405 | 405 | let $s = size($l) | |
406 | 406 | let $acc0 = nil | |
407 | 407 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
408 | 408 | then $a | |
409 | 409 | else getPrices($a, $l[$i]) | |
410 | 410 | ||
411 | 411 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
412 | 412 | then $a | |
413 | 413 | else throw("List size exceeds 20") | |
414 | 414 | ||
415 | 415 | $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) | |
416 | 416 | } | |
417 | 417 | ||
418 | 418 | ||
419 | 419 | func getCursEntries (aId,bId,shareId,wAmounts) = { | |
420 | 420 | let assetsPrices = getAssetsPrice([aId, bId]) | |
421 | 421 | let sharePrice = getSharePrice(shareId) | |
422 | 422 | let prices = ([toString(assetsPrices[0]), toString(assetsPrices[1]), toString(sharePrice)] ++ wAmounts) | |
423 | 423 | [StringEntry(kTokenLastPrice, makeString(prices, ","))] | |
424 | 424 | } | |
425 | 425 | ||
426 | 426 | ||
427 | 427 | func calcReplenishByTwoTokens (pType,poolAddr,pmtA,aId,pmtB,bId,balA,balB) = if ((pType == SF_POOL)) | |
428 | 428 | then { | |
429 | 429 | let repl = { | |
430 | 430 | let @ = invoke(poolAddr, "callFunction", ["calcLPReplenishTwoTokensREADONLY", [toString(pmtA), toString(pmtB)]], nil) | |
431 | 431 | if ($isInstanceOf(@, "List[Any]")) | |
432 | 432 | then @ | |
433 | 433 | else throw(($getType(@) + " couldn't be cast to List[Any]")) | |
434 | 434 | } | |
435 | 435 | if ((repl == repl)) | |
436 | 436 | then $Tuple5({ | |
437 | 437 | let @ = repl[3] | |
438 | 438 | if ($isInstanceOf(@, "Int")) | |
439 | 439 | then @ | |
440 | 440 | else throw(($getType(@) + " couldn't be cast to Int")) | |
441 | 441 | }, { | |
442 | 442 | let @ = repl[4] | |
443 | 443 | if ($isInstanceOf(@, "Int")) | |
444 | 444 | then @ | |
445 | 445 | else throw(($getType(@) + " couldn't be cast to Int")) | |
446 | 446 | }, { | |
447 | 447 | let @ = repl[1] | |
448 | 448 | if ($isInstanceOf(@, "Int")) | |
449 | 449 | then @ | |
450 | 450 | else throw(($getType(@) + " couldn't be cast to Int")) | |
451 | 451 | }, assetIdToStr(repl[2]), { | |
452 | 452 | let @ = repl[0] | |
453 | 453 | if ($isInstanceOf(@, "Int")) | |
454 | 454 | then @ | |
455 | 455 | else throw(($getType(@) + " couldn't be cast to Int")) | |
456 | 456 | }) | |
457 | 457 | else throw("Strict value is not equal to itself.") | |
458 | 458 | } | |
459 | 459 | else if ((pType == WX_POOL)) | |
460 | 460 | then { | |
461 | 461 | let $t01329213542 = $Tuple2(split({ | |
462 | 462 | let @ = invoke(poolAddr, "evaluatePutByAmountAssetREADONLY", [pmtA], nil) | |
463 | 463 | if ($isInstanceOf(@, "String")) | |
464 | 464 | then @ | |
465 | 465 | else throw(($getType(@) + " couldn't be cast to String")) | |
466 | 466 | }, "__"), split({ | |
467 | 467 | let @ = invoke(poolAddr, "evaluatePutByPriceAssetREADONLY", [pmtB], nil) | |
468 | 468 | if ($isInstanceOf(@, "String")) | |
469 | 469 | then @ | |
470 | 470 | else throw(($getType(@) + " couldn't be cast to String")) | |
471 | 471 | }, "__")) | |
472 | 472 | if (($t01329213542 == $t01329213542)) | |
473 | 473 | then { | |
474 | 474 | let evalPutInB = $t01329213542._2 | |
475 | 475 | let evalPutInA = $t01329213542._1 | |
476 | 476 | let lpInA = parseIntValue(evalPutInA[1]) | |
477 | 477 | let lpInB = parseIntValue(evalPutInB[1]) | |
478 | 478 | if ((lpInB > lpInA)) | |
479 | 479 | then { | |
480 | 480 | let pmt = parseIntValue(evalPutInA[8]) | |
481 | 481 | $Tuple5(pmtA, pmt, (pmtB - pmt), bId, lpInB) | |
482 | 482 | } | |
483 | 483 | else { | |
484 | 484 | let pmt = parseIntValue(evalPutInB[7]) | |
485 | 485 | $Tuple5(pmt, pmtB, (pmtA - pmt), aId, lpInA) | |
486 | 486 | } | |
487 | 487 | } | |
488 | 488 | else throw("Strict value is not equal to itself.") | |
489 | 489 | } | |
490 | 490 | else unknownPoolType() | |
491 | 491 | ||
492 | 492 | ||
493 | 493 | func replenishTwoTokensByType (poolAddr,pType,pmtA,aId,pmtB,bId) = { | |
494 | 494 | let payments = [AttachedPayment(assetIdFromStr(aId), pmtA), AttachedPayment(assetIdFromStr(bId), pmtB)] | |
495 | 495 | if ((pType == SF_POOL)) | |
496 | 496 | then invoke(poolAddr, "callFunction", ["replenishWithTwoTokens", ["false", "0"]], payments) | |
497 | 497 | else if ((pType == WX_POOL)) | |
498 | 498 | then invoke(poolAddr, "put", [1000000, false], payments) | |
499 | 499 | else unknownPoolType() | |
500 | 500 | } | |
501 | 501 | ||
502 | 502 | ||
503 | 503 | func replenishOneTokenByType (poolAddr,pType,pmt,pmtId) = { | |
504 | 504 | let payments = [AttachedPayment(assetIdFromStr(pmtId), pmt)] | |
505 | 505 | if ((pType == SF_POOL)) | |
506 | 506 | then invoke(poolAddr, "callFunction", ["replenishWithOneToken", ["0", "false", "0"]], payments) | |
507 | 507 | else if ((pType == WX_POOL)) | |
508 | 508 | then invoke(poolAddr, "putOneTkn", [0, false], payments) | |
509 | 509 | else unknownPoolType() | |
510 | 510 | } | |
511 | 511 | ||
512 | 512 | ||
513 | 513 | func stakeLP (pool,pType,shareId,amount) = { | |
514 | 514 | let payments = [AttachedPayment(fromBase58String(shareId), amount)] | |
515 | 515 | if ((pType == SF_POOL)) | |
516 | 516 | then invoke(getSFFarmingAddr(), "lockShareTokens", [pool, 0], payments) | |
517 | 517 | else if ((pType == WX_POOL)) | |
518 | 518 | then invoke(getWXFarmingAddr(addressFromStringValue(pool)), "stake", nil, payments) | |
519 | 519 | else unknownPoolType() | |
520 | 520 | } | |
521 | 521 | ||
522 | 522 | ||
523 | 523 | func unstakeLP (pool,pType,shareId,amount) = { | |
524 | 524 | let $t01520115551 = if ((pType == SF_POOL)) | |
525 | 525 | then $Tuple3(getSFFarmingAddr(), "withdrawShareTokens", [pool, amount]) | |
526 | 526 | else if ((pType == WX_POOL)) | |
527 | 527 | then $Tuple3(getWXFarmingAddr(Address(fromBase58String(pool))), "unstake", [shareId, amount]) | |
528 | 528 | else unknownPoolType() | |
529 | 529 | let farmAddr = $t01520115551._1 | |
530 | 530 | let fName = $t01520115551._2 | |
531 | 531 | let params = $t01520115551._3 | |
532 | 532 | let inv = invoke(farmAddr, fName, params, nil) | |
533 | 533 | if ((inv == inv)) | |
534 | 534 | then amount | |
535 | 535 | else throw("Strict value is not equal to itself.") | |
536 | 536 | } | |
537 | 537 | ||
538 | 538 | ||
539 | 539 | func calcAmountToPaySF (pool,assetIdA,assetIdB,balA,balB,amountTokenToGet,assetTokenToGet) = { | |
540 | 540 | let poolAddr = Address(fromBase58String(pool)) | |
541 | 541 | let feeScale6 = 1000000 | |
542 | 542 | let fee = getIntegerValue(poolAddr, kSFPoolFee) | |
543 | 543 | let amntGetNoFee = fraction(amountTokenToGet, feeScale6, (feeScale6 - fee), CEILING) | |
544 | 544 | let $t01597316279 = if ((assetTokenToGet == assetIdA)) | |
545 | 545 | then { | |
546 | 546 | let amountToPay = fraction(amntGetNoFee, balB, (balA - amntGetNoFee), CEILING) | |
547 | 547 | $Tuple2(amountToPay, assetIdB) | |
548 | 548 | } | |
549 | 549 | else { | |
550 | 550 | let amountToPay = fraction(amntGetNoFee, balA, (balB - amntGetNoFee), CEILING) | |
551 | 551 | $Tuple2(amountToPay, assetIdA) | |
552 | 552 | } | |
553 | 553 | let amountToPay = $t01597316279._1 | |
554 | 554 | let assetToPay = $t01597316279._2 | |
555 | 555 | $Tuple2(assetToPay, amountToPay) | |
556 | 556 | } | |
557 | 557 | ||
558 | 558 | ||
559 | 559 | func getWXSwapFees (pool) = { | |
560 | 560 | let poolAddr = addressFromStringValue(pool) | |
561 | 561 | let fContract = addressFromStringValue(valueOrErrorMessage(getString(poolAddr, "%s__factoryContract"), "Can't get WX factory contract addr")) | |
562 | 562 | let poolFeeDefault = value(getInteger(wxSwapContract, "%s__poolFee")) | |
563 | 563 | let protocolFeeDefault = value(getInteger(wxSwapContract, "%s__protocolFee")) | |
564 | 564 | match invoke(fContract, "getSwapFeeREADONLY", [toString(poolAddr)], nil) { | |
565 | 565 | case fees: (Int, Int) => | |
566 | 566 | $Tuple2(fees._1, fees._2) | |
567 | 567 | case _ => | |
568 | 568 | $Tuple2(poolFeeDefault, protocolFeeDefault) | |
569 | 569 | } | |
570 | 570 | } | |
571 | 571 | ||
572 | 572 | ||
573 | 573 | func calcAmountToPayWX (pool,assetIdA,assetIdB,balA,balB,amountTokenToGet,assetTokenToGet) = { | |
574 | 574 | let $t01701917058 = getWXSwapFees(pool) | |
575 | 575 | let pFee = $t01701917058._1 | |
576 | 576 | let prFee = $t01701917058._2 | |
577 | 577 | let feeScale = toBigInt(100000000) | |
578 | 578 | let $t01709817406 = if ((assetTokenToGet == assetIdA)) | |
579 | 579 | then { | |
580 | 580 | let amountToPay = fraction(amountTokenToGet, balB, (balA - amountTokenToGet)) | |
581 | 581 | $Tuple2(amountToPay, assetIdB) | |
582 | 582 | } | |
583 | 583 | else { | |
584 | 584 | let amountToPay = fraction(amountTokenToGet, balA, (balB - amountTokenToGet)) | |
585 | 585 | $Tuple2(amountToPay, assetIdA) | |
586 | 586 | } | |
587 | 587 | let amountToPay = $t01709817406._1 | |
588 | 588 | let assetToPay = $t01709817406._2 | |
589 | 589 | let amountToPayWithFee = toInt(fraction(toBigInt(amountToPay), feeScale, (feeScale - toBigInt((prFee + pFee))), CEILING)) | |
590 | 590 | $Tuple2(assetToPay, amountToPayWithFee) | |
591 | 591 | } | |
592 | 592 | ||
593 | 593 | ||
594 | 594 | func exchangeDirectly (pType,pool,assetIdA,assetIdB,balA,balB,amountTokenToGet,assetTokenToGet) = if ((pType == SF_POOL)) | |
595 | 595 | then { | |
596 | 596 | let $t01775317875 = calcAmountToPaySF(pool, assetIdA, assetIdB, balA, balB, amountTokenToGet, assetTokenToGet) | |
597 | 597 | let assetToPay = $t01775317875._1 | |
598 | 598 | let amountToPay = $t01775317875._2 | |
599 | 599 | invoke(addressFromStringValue(pool), "callFunction", ["exchange", [toString(amountTokenToGet)]], [AttachedPayment(assetIdFromStr(assetToPay), amountToPay)]) | |
600 | 600 | } | |
601 | 601 | else if ((pType == WX_POOL)) | |
602 | 602 | then { | |
603 | 603 | let $t01807518197 = calcAmountToPayWX(pool, assetIdA, assetIdB, balA, balB, amountTokenToGet, assetTokenToGet) | |
604 | 604 | let assetToPay = $t01807518197._1 | |
605 | 605 | let amountToPay = $t01807518197._2 | |
606 | 606 | invoke(wxSwapContract, "swap", [amountTokenToGet, assetTokenToGet, toString(this)], [AttachedPayment(assetIdFromStr(assetToPay), amountToPay)]) | |
607 | 607 | } | |
608 | 608 | else unknownPoolType() | |
609 | 609 | ||
610 | 610 | ||
611 | 611 | func calcWithdrawLPFromPoolVirt (poolAddr,pType,shareId,userCanWithdraw) = { | |
612 | 612 | let $t01848418948 = if ((pType == SF_POOL)) | |
613 | 613 | then { | |
614 | 614 | let inv = { | |
615 | 615 | let @ = invoke(poolAddr, "callFunction", ["withdrawREADONLY", [toString(userCanWithdraw)]], nil) | |
616 | 616 | if ($isInstanceOf(@, "List[Any]")) | |
617 | 617 | then @ | |
618 | 618 | else throw(($getType(@) + " couldn't be cast to List[Any]")) | |
619 | 619 | } | |
620 | 620 | if ((inv == inv)) | |
621 | 621 | then $Tuple2({ | |
622 | 622 | let @ = inv[0] | |
623 | 623 | if ($isInstanceOf(@, "Int")) | |
624 | 624 | then @ | |
625 | 625 | else throw(($getType(@) + " couldn't be cast to Int")) | |
626 | 626 | }, { | |
627 | 627 | let @ = inv[1] | |
628 | 628 | if ($isInstanceOf(@, "Int")) | |
629 | 629 | then @ | |
630 | 630 | else throw(($getType(@) + " couldn't be cast to Int")) | |
631 | 631 | }) | |
632 | 632 | else throw("Strict value is not equal to itself.") | |
633 | 633 | } | |
634 | 634 | else if ((pType == WX_POOL)) | |
635 | 635 | then { | |
636 | 636 | let inv = split({ | |
637 | 637 | let @ = invoke(poolAddr, "evaluateGetREADONLY", [shareId, userCanWithdraw], nil) | |
638 | 638 | if ($isInstanceOf(@, "String")) | |
639 | 639 | then @ | |
640 | 640 | else throw(($getType(@) + " couldn't be cast to String")) | |
641 | 641 | }, "__") | |
642 | 642 | if ((inv == inv)) | |
643 | 643 | then $Tuple2(parseIntValue(inv[1]), parseIntValue(inv[2])) | |
644 | 644 | else throw("Strict value is not equal to itself.") | |
645 | 645 | } | |
646 | 646 | else unknownPoolType() | |
647 | 647 | let amountA = $t01848418948._1 | |
648 | 648 | let amountB = $t01848418948._2 | |
649 | 649 | $Tuple2(amountA, amountB) | |
650 | 650 | } | |
651 | 651 | ||
652 | 652 | ||
653 | 653 | func claimFarmed (pType,pool) = if ((pType == SF_POOL)) | |
654 | 654 | then { | |
655 | 655 | let balBefore = accountBalance(SWOPID) | |
656 | 656 | if ((balBefore == balBefore)) | |
657 | 657 | then { | |
658 | 658 | let inv = invoke(getSFFarmingAddr(), "claim", [pool], nil) | |
659 | 659 | if ((inv == inv)) | |
660 | 660 | then { | |
661 | 661 | let balAfter = accountBalance(SWOPID) | |
662 | 662 | $Tuple2((balAfter - balBefore), SWOPID) | |
663 | 663 | } | |
664 | 664 | else throw("Strict value is not equal to itself.") | |
665 | 665 | } | |
666 | 666 | else throw("Strict value is not equal to itself.") | |
667 | 667 | } | |
668 | 668 | else if ((pType == WX_POOL)) | |
669 | 669 | then { | |
670 | 670 | let $t01931619395 = getWXPoolData(addressFromStringValue(pool)) | |
671 | 671 | let aId = $t01931619395._1 | |
672 | 672 | let bId = $t01931619395._2 | |
673 | 673 | let aBal = $t01931619395._3 | |
674 | 674 | let bBal = $t01931619395._4 | |
675 | 675 | let lpId = $t01931619395._5 | |
676 | 676 | let balBefore = accountBalance(WXID) | |
677 | 677 | if ((balBefore == balBefore)) | |
678 | 678 | then { | |
679 | 679 | let inv = invoke(getWXFarmingAddr(addressFromStringValue(pool)), "claimWx", [lpId], nil) | |
680 | 680 | if ((inv == inv)) | |
681 | 681 | then { | |
682 | 682 | let balAfter = accountBalance(WXID) | |
683 | 683 | $Tuple2((balAfter - balBefore), WXID) | |
684 | 684 | } | |
685 | 685 | else throw("Strict value is not equal to itself.") | |
686 | 686 | } | |
687 | 687 | else throw("Strict value is not equal to itself.") | |
688 | 688 | } | |
689 | 689 | else unknownPoolType() | |
690 | 690 | ||
691 | 691 | ||
692 | 692 | func replenishByType (pType,pool,feeType,pmtA,aId,pmtB,bId,balA,balB,LPId) = { | |
693 | 693 | let lpBalanceBefore = accountBalance(fromBase58String(LPId)) | |
694 | 694 | if ((lpBalanceBefore == lpBalanceBefore)) | |
695 | 695 | then { | |
696 | 696 | let poolAddr = addressFromStringValue(pool) | |
697 | 697 | let $t01999320409 = if (if ((pmtA > 0)) | |
698 | 698 | then (pmtB > 0) | |
699 | 699 | else false) | |
700 | 700 | then { | |
701 | 701 | let $t02005920175 = calcReplenishByTwoTokens(pType, poolAddr, pmtA, aId, pmtB, bId, balA, balB) | |
702 | 702 | let pmtInA = $t02005920175._1 | |
703 | 703 | let pmtInB = $t02005920175._2 | |
704 | 704 | let change = $t02005920175._3 | |
705 | 705 | let changeId = $t02005920175._4 | |
706 | 706 | let inv = replenishTwoTokensByType(poolAddr, pType, pmtInA, aId, pmtInB, bId) | |
707 | 707 | if ((inv == inv)) | |
708 | 708 | then $Tuple2(change, changeId) | |
709 | 709 | else throw("Strict value is not equal to itself.") | |
710 | 710 | } | |
711 | 711 | else if ((pmtA > 0)) | |
712 | 712 | then $Tuple2(pmtA, aId) | |
713 | 713 | else if ((pmtB > 0)) | |
714 | 714 | then $Tuple2(pmtB, bId) | |
715 | 715 | else throw("pmts must be > 0") | |
716 | 716 | let change = $t01999320409._1 | |
717 | 717 | let changeId = $t01999320409._2 | |
718 | 718 | let inv = if ((change > 0)) | |
719 | 719 | then replenishOneTokenByType(poolAddr, pType, change, changeId) | |
720 | 720 | else nil | |
721 | 721 | if ((inv == inv)) | |
722 | 722 | then { | |
723 | 723 | let lpBalanceAfter = accountBalance(fromBase58String(LPId)) | |
724 | 724 | let totalStaked = (lpBalanceAfter - lpBalanceBefore) | |
725 | 725 | let axlyFeeAmount = fraction(totalStaked, getAxlyFee(pool, feeType), FEE_SCALE6) | |
726 | 726 | let userShareForStake = (totalStaked - axlyFeeAmount) | |
727 | 727 | if ((0 >= userShareForStake)) | |
728 | 728 | then throw("amount of staked sharetokens must be > 0") | |
729 | 729 | else { | |
730 | 730 | let invLP = stakeLP(pool, pType, LPId, userShareForStake) | |
731 | 731 | if ((invLP == invLP)) | |
732 | 732 | then $Tuple2(userShareForStake, axlyFeeAmount) | |
733 | 733 | else throw("Strict value is not equal to itself.") | |
734 | 734 | } | |
735 | 735 | } | |
736 | 736 | else throw("Strict value is not equal to itself.") | |
737 | 737 | } | |
738 | 738 | else throw("Strict value is not equal to itself.") | |
739 | 739 | } | |
740 | 740 | ||
741 | 741 | ||
742 | 742 | func replenishEntries (pool,user,stakedAmount,axlyFeeAmount,posNum,shareId,type,withLoan) = { | |
743 | 743 | let totalAmount = getPoolTotalShare(pool) | |
744 | 744 | let totalAmountLoan = getPoolTotalShareWithLoan(pool) | |
745 | 745 | let $t02126721505 = if (withLoan) | |
746 | 746 | then $Tuple2(getIntegerValue(this, (pool + kPoolInterestLoan)), (totalAmountLoan + stakedAmount)) | |
747 | 747 | else $Tuple2(getIntegerValue(this, (pool + kPoolInterestNoLoan)), totalAmountLoan) | |
748 | 748 | let curPoolInterest = $t02126721505._1 | |
749 | 749 | let totalStakedWithLoan = $t02126721505._2 | |
750 | 750 | [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))] | |
751 | 751 | } | |
752 | 752 | ||
753 | 753 | ||
754 | 754 | func exchangeKeeper (toToken,pmtAmount,pmtAsset,amountsIn,addresses,assetsToReceive,estReceived,slippageTolerance,minReceived,options) = { | |
755 | 755 | let tokenBalanceBefore = accountBalance(assetIdFromStr(toToken)) | |
756 | 756 | if ((tokenBalanceBefore == tokenBalanceBefore)) | |
757 | 757 | then { | |
758 | 758 | let inv = invoke(exContract, "swap", [amountsIn, addresses, assetsToReceive, estReceived, slippageTolerance, minReceived, options], [AttachedPayment(pmtAsset, pmtAmount)]) | |
759 | 759 | if ((inv == inv)) | |
760 | 760 | then (accountBalance(assetIdFromStr(toToken)) - tokenBalanceBefore) | |
761 | 761 | else throw("Strict value is not equal to itself.") | |
762 | 762 | } | |
763 | 763 | else throw("Strict value is not equal to itself.") | |
764 | 764 | } | |
765 | 765 | ||
766 | 766 | ||
767 | 767 | func exchangePuzzle (toToken,pmtAmount,pmtAsset,routesStr,minToReceive,options) = { | |
768 | 768 | let tokenBalanceBefore = accountBalance(assetIdFromStr(toToken)) | |
769 | 769 | if ((tokenBalanceBefore == tokenBalanceBefore)) | |
770 | 770 | then { | |
771 | 771 | let inv = invoke(exContract, "puzzleSwap", [routesStr, minToReceive, options], [AttachedPayment(pmtAsset, pmtAmount)]) | |
772 | 772 | if ((inv == inv)) | |
773 | 773 | then (accountBalance(assetIdFromStr(toToken)) - tokenBalanceBefore) | |
774 | 774 | else throw("Strict value is not equal to itself.") | |
775 | 775 | } | |
776 | 776 | else throw("Strict value is not equal to itself.") | |
777 | 777 | } | |
778 | 778 | ||
779 | 779 | ||
780 | 780 | func exchangeSwopFi (toToken,pmtAmount,pmtAsset,exchangers,exchangersType,args1,args2,routingAssetsKeys,minAmountToReceive,options) = { | |
781 | 781 | let tokenBalanceBefore = accountBalance(assetIdFromStr(toToken)) | |
782 | 782 | if ((tokenBalanceBefore == tokenBalanceBefore)) | |
783 | 783 | then { | |
784 | 784 | let inv = invoke(exContract, "swopfiSwap", [exchangers, exchangersType, args1, args2, routingAssetsKeys, minAmountToReceive, options], [AttachedPayment(pmtAsset, pmtAmount)]) | |
785 | 785 | if ((inv == inv)) | |
786 | 786 | then (accountBalance(assetIdFromStr(toToken)) - tokenBalanceBefore) | |
787 | 787 | else throw("Strict value is not equal to itself.") | |
788 | 788 | } | |
789 | 789 | else throw("Strict value is not equal to itself.") | |
790 | 790 | } | |
791 | 791 | ||
792 | 792 | ||
793 | 793 | func capitalize (pool,pType,tokenId,tokenAmount) = { | |
794 | 794 | let poolAddr = Address(fromBase58String(pool)) | |
795 | 795 | let $t02385923925 = getPoolData(poolAddr, pType) | |
796 | 796 | let AId = $t02385923925._1 | |
797 | 797 | let BId = $t02385923925._2 | |
798 | 798 | let balA = $t02385923925._3 | |
799 | 799 | let balB = $t02385923925._4 | |
800 | 800 | let shareId = $t02385923925._5 | |
801 | 801 | if (if ((tokenId != AId)) | |
802 | 802 | then (tokenId != BId) | |
803 | 803 | else false) | |
804 | 804 | then throw("Wrong asset") | |
805 | 805 | else { | |
806 | 806 | let axlyFeeLoan = fraction(tokenAmount, getAxlyFee(pool, CAP_FEE_LOAN), FEE_SCALE6) | |
807 | 807 | let axlyFeeNoLoan = fraction(tokenAmount, getAxlyFee(pool, CAP_FEE_NO_LOAN), FEE_SCALE6) | |
808 | 808 | let axlyFee = (axlyFeeLoan + axlyFeeNoLoan) | |
809 | 809 | let $t02423124331 = if ((tokenId == AId)) | |
810 | 810 | then $Tuple2((tokenAmount - axlyFee), 0) | |
811 | 811 | else $Tuple2(0, (tokenAmount - axlyFee)) | |
812 | 812 | let pmtA = $t02423124331._1 | |
813 | 813 | let pmtB = $t02423124331._2 | |
814 | 814 | let $t02433424438 = replenishByType(pType, pool, NO_FEE, pmtA, AId, pmtB, BId, balA, balB, shareId) | |
815 | 815 | let stakedAmount = $t02433424438._1 | |
816 | 816 | let nf = $t02433424438._2 | |
817 | 817 | let curPoolInterestLoan = valueOrElse(getInteger(this, (pool + kPoolInterestLoan)), 0) | |
818 | 818 | let curPoolInterestNoLoan = valueOrElse(getInteger(this, (pool + kPoolInterestNoLoan)), 0) | |
819 | 819 | let totalShareAmount = getPoolTotalShare(pool) | |
820 | 820 | let totalShareAmountWithLoan = getPoolTotalShareWithLoan(pool) | |
821 | 821 | let loanPercent = fraction(totalShareAmountWithLoan, SCALE8, totalShareAmount) | |
822 | 822 | let stakedLoan = fraction(stakedAmount, loanPercent, SCALE8) | |
823 | 823 | let stakedNoLoan = (stakedAmount - stakedLoan) | |
824 | 824 | let newInterestLoan = if ((totalShareAmountWithLoan > 0)) | |
825 | 825 | then (curPoolInterestLoan + fraction(stakedLoan, SCALE10, totalShareAmountWithLoan)) | |
826 | 826 | else 0 | |
827 | 827 | let newInterestNoLoan = if (((totalShareAmount - totalShareAmountWithLoan) > 0)) | |
828 | 828 | then (curPoolInterestNoLoan + fraction(stakedNoLoan, SCALE10, (totalShareAmount - totalShareAmountWithLoan))) | |
829 | 829 | else 0 | |
830 | 830 | ([IntegerEntry((pool + kPoolInterestLoan), newInterestLoan), IntegerEntry((pool + kPoolInterestNoLoan), newInterestNoLoan), IntegerEntry((pool + kPoolTotal), (totalShareAmount + stakedAmount)), IntegerEntry((pool + kPoolTotalLoan), (totalShareAmountWithLoan + stakedLoan)), ScriptTransfer(moneyBox, axlyFee, fromBase58String(tokenId))] ++ getCursEntries(AId, BId, shareId, nil)) | |
831 | 831 | } | |
832 | 832 | } | |
833 | 833 | ||
834 | 834 | ||
835 | 835 | func userCanWithdrawShareCalc (user,pool,posId,borrowed) = { | |
836 | 836 | let pAmount = valueOrErrorMessage(getInteger(this, (((((pool + "_") + user) + "_") + posId) + kUserPosition)), "Unknown position") | |
837 | 837 | let userInterest = getIntegerValue(this, (((((pool + "_") + user) + "_") + posId) + kUserPositionInterest)) | |
838 | 838 | let poolInterest = if (borrowed) | |
839 | 839 | then getIntegerValue(this, (pool + kPoolInterestLoan)) | |
840 | 840 | else getIntegerValue(this, (pool + kPoolInterestNoLoan)) | |
841 | 841 | (pAmount + fraction(pAmount, (poolInterest - userInterest), SCALE10)) | |
842 | 842 | } | |
843 | 843 | ||
844 | 844 | ||
845 | 845 | func calcStopLossFee (pool,isBorrowed,stopLoss,lpWithdraw) = { | |
846 | 846 | let feeType = if (isBorrowed) | |
847 | 847 | then STOPLOSS_LOAN | |
848 | 848 | else STOPLOSS_FEE_NO_LOAN | |
849 | 849 | if (stopLoss) | |
850 | 850 | then fraction(lpWithdraw, getAxlyFee(pool, feeType), FEE_SCALE6) | |
851 | 851 | else 0 | |
852 | 852 | } | |
853 | 853 | ||
854 | 854 | ||
855 | 855 | func withdrawToUser (user,pool,posId,stopLoss) = { | |
856 | 856 | let pAmount = valueOrErrorMessage(getInteger(this, (((((pool + "_") + user) + "_") + posId) + kUserPosition)), "Unknown position") | |
857 | 857 | let isBorrowed = (valueOrElse(getInteger(this, (((((pool + "_") + user) + "_") + posId) + kUserBorrowAmount)), 0) > 0) | |
858 | 858 | let userCanWithdraw = userCanWithdrawShareCalc(user, pool, posId, isBorrowed) | |
859 | 859 | let poolTotalShare = getPoolTotalShare(pool) | |
860 | 860 | let userAddr = Address(fromBase58String(user)) | |
861 | 861 | let poolAddr = Address(fromBase58String(pool)) | |
862 | 862 | let pType = valueOrErrorMessage(getString(this, (kPool + pool)), "Unknown pool") | |
863 | 863 | let $t02710827180 = getPoolData(poolAddr, pType) | |
864 | 864 | let idAStr = $t02710827180._1 | |
865 | 865 | let idBStr = $t02710827180._2 | |
866 | 866 | let balA = $t02710827180._3 | |
867 | 867 | let balB = $t02710827180._4 | |
868 | 868 | let shareId = $t02710827180._5 | |
869 | 869 | let $t02718327250 = $Tuple2(assetIdFromStr(idAStr), assetIdFromStr(idBStr)) | |
870 | 870 | let idA = $t02718327250._1 | |
871 | 871 | let idB = $t02718327250._2 | |
872 | 872 | let stopLossFee = calcStopLossFee(pool, isBorrowed, stopLoss, userCanWithdraw) | |
873 | 873 | let cBalABefore = accountBalance(idA) | |
874 | 874 | if ((cBalABefore == cBalABefore)) | |
875 | 875 | then { | |
876 | 876 | let cBalBBefore = accountBalance(idB) | |
877 | 877 | if ((cBalBBefore == cBalBBefore)) | |
878 | 878 | then { | |
879 | 879 | let inv = if ((pType == SF_POOL)) | |
880 | 880 | then { | |
881 | 881 | let inv = unstakeLP(pool, pType, shareId, stopLossFee) | |
882 | 882 | if ((inv == inv)) | |
883 | 883 | then invoke(poolAddr, "callFunction", ["withdraw", [toString(userCanWithdraw)]], nil) | |
884 | 884 | else throw("Strict value is not equal to itself.") | |
885 | 885 | } | |
886 | 886 | else if ((pType == WX_POOL)) | |
887 | 887 | then { | |
888 | 888 | let inv = unstakeLP(pool, pType, shareId, (userCanWithdraw + stopLossFee)) | |
889 | 889 | if ((inv == inv)) | |
890 | 890 | then invoke(poolAddr, "get", nil, [AttachedPayment(assetIdFromStr(shareId), userCanWithdraw)]) | |
891 | 891 | else throw("Strict value is not equal to itself.") | |
892 | 892 | } | |
893 | 893 | else unknownPoolType() | |
894 | 894 | if ((inv == inv)) | |
895 | 895 | then { | |
896 | 896 | let cBalAAfter = accountBalance(idA) | |
897 | 897 | if ((cBalAAfter == cBalAAfter)) | |
898 | 898 | then { | |
899 | 899 | let cBalBAfter = accountBalance(idB) | |
900 | 900 | if ((cBalBAfter == cBalBAfter)) | |
901 | 901 | then { | |
902 | 902 | let $t02794528034 = $Tuple2((cBalAAfter - cBalABefore), (cBalBAfter - cBalBBefore)) | |
903 | 903 | let tokensAmountA = $t02794528034._1 | |
904 | 904 | let tokensAmountB = $t02794528034._2 | |
905 | 905 | let $t02803729273 = if (isBorrowed) | |
906 | 906 | then { | |
907 | 907 | let borrowAsset = getStringValue(this, (((((pool + "_") + user) + "_") + posId) + kUserBorrowAssetId)) | |
908 | 908 | let debt = { | |
909 | 909 | let @ = invoke(getLendSrvAddr(), "getAssetDebt", [false, ((user + "_") + posId), borrowAsset], nil) | |
910 | 910 | if ($isInstanceOf(@, "Int")) | |
911 | 911 | then @ | |
912 | 912 | else throw(($getType(@) + " couldn't be cast to Int")) | |
913 | 913 | } | |
914 | 914 | if ((debt == debt)) | |
915 | 915 | then { | |
916 | 916 | let amountToGetEx = if (if ((borrowAsset == idAStr)) | |
917 | 917 | then (debt > tokensAmountA) | |
918 | 918 | else false) | |
919 | 919 | then (debt - tokensAmountA) | |
920 | 920 | else if (if ((borrowAsset == idBStr)) | |
921 | 921 | then (debt > tokensAmountB) | |
922 | 922 | else false) | |
923 | 923 | then (debt - tokensAmountB) | |
924 | 924 | else 0 | |
925 | 925 | let exInv = if ((amountToGetEx > 0)) | |
926 | 926 | then exchangeDirectly(pType, pool, idAStr, idBStr, (balA - tokensAmountA), (balB - tokensAmountB), amountToGetEx, borrowAsset) | |
927 | 927 | else nil | |
928 | 928 | if ((exInv == exInv)) | |
929 | 929 | then { | |
930 | 930 | let cBalAAfterRepay = accountBalance(idA) | |
931 | 931 | if ((cBalAAfterRepay == cBalAAfterRepay)) | |
932 | 932 | then { | |
933 | 933 | let cBalBAfterRepay = accountBalance(idB) | |
934 | 934 | if ((cBalBAfterRepay == cBalBAfterRepay)) | |
935 | 935 | then { | |
936 | 936 | let closeDbtInv = if ((debt > 0)) | |
937 | 937 | then invoke(getLendSrvAddr(), "repayFor", [((user + "_") + posId)], [AttachedPayment(assetIdFromStr(borrowAsset), debt)]) | |
938 | 938 | else 0 | |
939 | 939 | if ((closeDbtInv == closeDbtInv)) | |
940 | 940 | then if ((borrowAsset == idAStr)) | |
941 | 941 | then $Tuple2(((cBalAAfterRepay - cBalABefore) - debt), (cBalBAfterRepay - cBalBBefore)) | |
942 | 942 | else $Tuple2((cBalAAfterRepay - cBalABefore), ((cBalBAfterRepay - cBalBBefore) - debt)) | |
943 | 943 | else throw("Strict value is not equal to itself.") | |
944 | 944 | } | |
945 | 945 | else throw("Strict value is not equal to itself.") | |
946 | 946 | } | |
947 | 947 | else throw("Strict value is not equal to itself.") | |
948 | 948 | } | |
949 | 949 | else throw("Strict value is not equal to itself.") | |
950 | 950 | } | |
951 | 951 | else throw("Strict value is not equal to itself.") | |
952 | 952 | } | |
953 | 953 | else $Tuple2(tokensAmountA, tokensAmountB) | |
954 | 954 | let toUserA = $t02803729273._1 | |
955 | 955 | let toUserB = $t02803729273._2 | |
956 | 956 | let entries = ([DeleteEntry((((((pool + "_") + user) + "_") + posId) + kUserPosition)), DeleteEntry((((user + "_") + posId) + kUserPositionPool)), DeleteEntry((((((pool + "_") + user) + "_") + posId) + kUserBorrowAmount)), DeleteEntry((((((pool + "_") + user) + "_") + posId) + kUserBorrowAssetId)), DeleteEntry((((((pool + "_") + user) + "_") + posId) + kUserPositionInterest)), IntegerEntry((pool + kPoolTotal), ((poolTotalShare - userCanWithdraw) - stopLossFee)), ScriptTransfer(userAddr, toUserA, idA), ScriptTransfer(userAddr, toUserB, idB), ScriptTransfer(moneyBox, stopLossFee, fromBase58String(shareId))] ++ getCursEntries(idAStr, idBStr, shareId, nil)) | |
957 | 957 | $Tuple2(entries, [toUserA, toUserB]) | |
958 | 958 | } | |
959 | 959 | else throw("Strict value is not equal to itself.") | |
960 | 960 | } | |
961 | 961 | else throw("Strict value is not equal to itself.") | |
962 | 962 | } | |
963 | 963 | else throw("Strict value is not equal to itself.") | |
964 | 964 | } | |
965 | 965 | else throw("Strict value is not equal to itself.") | |
966 | 966 | } | |
967 | 967 | else throw("Strict value is not equal to itself.") | |
968 | 968 | } | |
969 | 969 | ||
970 | 970 | ||
971 | 971 | func parseRequest (requestId) = { | |
972 | 972 | let request = split(valueOrErrorMessage(getString(this, (requestId + kRequestId)), ("No request with id " + requestId)), ",") | |
973 | 973 | let user = request[0] | |
974 | 974 | let pool = request[1] | |
975 | 975 | let pmtA = parseIntValue(request[2]) | |
976 | 976 | let AId = request[3] | |
977 | 977 | let pmtB = parseIntValue(request[4]) | |
978 | 978 | let BId = request[5] | |
979 | 979 | let balA = parseIntValue(request[6]) | |
980 | 980 | let balB = parseIntValue(request[7]) | |
981 | 981 | let shareId = request[8] | |
982 | 982 | let bwAsset = request[9] | |
983 | 983 | let bwAmount = parseIntValue(request[10]) | |
984 | 984 | $Tuple11(user, pool, pmtA, AId, pmtB, BId, balA, balB, shareId, bwAsset, bwAmount) | |
985 | 985 | } | |
986 | 986 | ||
987 | 987 | ||
988 | 988 | func calcBorrowAmount (pmtA,pmtB,aId,bId,leverage,borrowId) = if (if ((borrowId != aId)) | |
989 | 989 | then (borrowId != bId) | |
990 | 990 | else false) | |
991 | 991 | then throw("Wrong borrow asset") | |
992 | 992 | else { | |
993 | 993 | let dPriceA = getIntegerValue(priceOracleAddr, (aId + kPriceInOracle)) | |
994 | 994 | let dPriceB = getIntegerValue(priceOracleAddr, (bId + kPriceInOracle)) | |
995 | 995 | let decPrA = pow(10, 0, getAssetDecimals(aId), 0, 0, DOWN) | |
996 | 996 | let decPrB = pow(10, 0, getAssetDecimals(bId), 0, 0, DOWN) | |
997 | 997 | let paydInDollar = (fraction(dPriceA, pmtA, decPrA) + fraction(dPriceB, pmtB, decPrB)) | |
998 | 998 | let $t03108831185 = if ((borrowId == aId)) | |
999 | 999 | then $Tuple2(dPriceA, decPrA) | |
1000 | 1000 | else $Tuple2(dPriceB, decPrB) | |
1001 | 1001 | let borrowPrice = $t03108831185._1 | |
1002 | 1002 | let borrowDecPr = $t03108831185._2 | |
1003 | 1003 | fraction(fraction(paydInDollar, (leverage - 100), 100), borrowDecPr, borrowPrice) | |
1004 | 1004 | } | |
1005 | 1005 | ||
1006 | 1006 | ||
1007 | 1007 | func parseReplenishPmts (pmts,AId,BId) = if ((size(pmts) == 2)) | |
1008 | 1008 | then if ((assetIdToStr(pmts[0].assetId) != AId)) | |
1009 | 1009 | then throw("Wrong payment asset A") | |
1010 | 1010 | else if ((assetIdToStr(pmts[1].assetId) != BId)) | |
1011 | 1011 | then throw("Wrong payment asset B") | |
1012 | 1012 | else $Tuple2(pmts[0].amount, pmts[1].amount) | |
1013 | 1013 | else if ((size(pmts) == 1)) | |
1014 | 1014 | then if ((assetIdToStr(pmts[0].assetId) == AId)) | |
1015 | 1015 | then $Tuple2(pmts[0].amount, 0) | |
1016 | 1016 | else if ((assetIdToStr(pmts[0].assetId) == BId)) | |
1017 | 1017 | then $Tuple2(0, pmts[0].amount) | |
1018 | 1018 | else throw("Wrong payment") | |
1019 | 1019 | else throw("One or two payments expected") | |
1020 | 1020 | ||
1021 | 1021 | ||
1022 | 1022 | func calcPriceImpact (balA,balB,newBalA,newBalB) = { | |
1023 | 1023 | let pri = ((SCALE8 - fraction(fraction(balB, SCALE8, balA), SCALE8, fraction(newBalB, SCALE8, newBalA))) * 100) | |
1024 | 1024 | if ((0 > pri)) | |
1025 | 1025 | then (pri * -1) | |
1026 | 1026 | else pri | |
1027 | 1027 | } | |
1028 | 1028 | ||
1029 | 1029 | ||
1030 | 1030 | func claimAndCheckAmnt (pool,pType,claim,amount,change) = { | |
1031 | 1031 | let $t03218532444 = if (claim) | |
1032 | 1032 | then claimFarmed(pType, pool) | |
1033 | 1033 | else { | |
1034 | 1034 | let claimedAsset = if ((pType == SF_POOL)) | |
1035 | 1035 | then SWOPID | |
1036 | 1036 | else if ((pType == WX_POOL)) | |
1037 | 1037 | then WXID | |
1038 | 1038 | else unknownPoolType() | |
1039 | 1039 | $Tuple2(amount, claimedAsset) | |
1040 | 1040 | } | |
1041 | 1041 | let claimAmount = $t03218532444._1 | |
1042 | 1042 | let claimAsset = $t03218532444._2 | |
1043 | 1043 | let bal = accountBalance(claimAsset) | |
1044 | 1044 | if (if ((amount > (claimAmount + change))) | |
1045 | 1045 | then true | |
1046 | 1046 | else (amount > bal)) | |
1047 | 1047 | then throw("To big amount to exchange") | |
1048 | 1048 | else $Tuple2(claimAmount, claimAsset) | |
1049 | 1049 | } | |
1050 | 1050 | ||
1051 | 1051 | ||
1052 | 1052 | @Callable(i) | |
1053 | 1053 | func getShareAssetPriceREADONLY (shareId) = { | |
1054 | 1054 | let sharePrices = getSharePrice(shareId) | |
1055 | 1055 | $Tuple2(nil, sharePrices) | |
1056 | 1056 | } | |
1057 | 1057 | ||
1058 | 1058 | ||
1059 | 1059 | ||
1060 | 1060 | @Callable(i) | |
1061 | 1061 | func getUserPositionShareAmountREADONLY (user,posNum) = { | |
1062 | 1062 | let pool = valueOrErrorMessage(getString(this, (((user + "_") + posNum) + kUserPositionPool)), "Unknown position") | |
1063 | 1063 | let borrowAmount = getIntegerValue(this, (((((pool + "_") + user) + "_") + posNum) + kUserBorrowAmount)) | |
1064 | 1064 | let userCanWithdraw = userCanWithdrawShareCalc(user, pool, posNum, (borrowAmount > 0)) | |
1065 | 1065 | $Tuple2(nil, userCanWithdraw) | |
1066 | 1066 | } | |
1067 | 1067 | ||
1068 | 1068 | ||
1069 | 1069 | ||
1070 | 1070 | @Callable(i) | |
1071 | 1071 | func getUserPositionREADONLY (user,pools,posNum) = { | |
1072 | 1072 | func userPos (a,pool) = { | |
1073 | 1073 | let $t03340633476 = a | |
1074 | 1074 | let wAmountsA = $t03340633476._1 | |
1075 | 1075 | let wAmountsB = $t03340633476._2 | |
1076 | 1076 | let debts = $t03340633476._3 | |
1077 | 1077 | let eqWAmountsA = $t03340633476._4 | |
1078 | 1078 | let eqWAmountsB = $t03340633476._5 | |
1079 | 1079 | let index = $t03340633476._6 | |
1080 | 1080 | if (!(isDefined(getInteger(this, (((((pool + "_") + user) + "_") + posNum[index]) + kUserPosition))))) | |
1081 | 1081 | then $Tuple6((wAmountsA :+ 0), (wAmountsB :+ 0), (debts :+ 0), (eqWAmountsA :+ 0), (eqWAmountsB :+ 0), (index + 1)) | |
1082 | 1082 | else { | |
1083 | 1083 | let pType = valueOrErrorMessage(getString(this, (kPool + pool)), "Pool is not inited") | |
1084 | 1084 | let $t03375533845 = getPoolData(Address(fromBase58String(pool)), pType) | |
1085 | 1085 | let AId = $t03375533845._1 | |
1086 | 1086 | let BId = $t03375533845._2 | |
1087 | 1087 | let balA = $t03375533845._3 | |
1088 | 1088 | let balB = $t03375533845._4 | |
1089 | 1089 | let shareId = $t03375533845._5 | |
1090 | 1090 | let borrowAmount = valueOrElse(getInteger(this, (((((pool + "_") + user) + "_") + posNum[index]) + kUserBorrowAmount)), 0) | |
1091 | 1091 | let userCanWithdraw = userCanWithdrawShareCalc(user, pool, posNum[index], (borrowAmount > 0)) | |
1092 | 1092 | let $t03406134181 = calcWithdrawLPFromPoolVirt(Address(fromBase58String(pool)), pType, shareId, userCanWithdraw) | |
1093 | 1093 | let wAmountA = $t03406134181._1 | |
1094 | 1094 | let wAmountB = $t03406134181._2 | |
1095 | 1095 | if ((borrowAmount > 0)) | |
1096 | 1096 | then { | |
1097 | 1097 | let borrowAsset = getStringValue(this, (((((pool + "_") + user) + "_") + posNum[index]) + kUserBorrowAssetId)) | |
1098 | 1098 | let debt = { | |
1099 | 1099 | let @ = invoke(getLendSrvAddr(), "getAssetDebt", [false, ((user + "_") + posNum[index]), borrowAsset], nil) | |
1100 | 1100 | if ($isInstanceOf(@, "Int")) | |
1101 | 1101 | then @ | |
1102 | 1102 | else throw(($getType(@) + " couldn't be cast to Int")) | |
1103 | 1103 | } | |
1104 | 1104 | if ((debt == debt)) | |
1105 | 1105 | then { | |
1106 | 1106 | let $t03446534749 = if ((pType == SF_POOL)) | |
1107 | 1107 | then calcAmountToPaySF(pool, AId, BId, balA, balB, debt, borrowAsset) | |
1108 | 1108 | else if ((pType == WX_POOL)) | |
1109 | 1109 | then calcAmountToPayWX(pool, AId, BId, balA, balB, debt, borrowAsset) | |
1110 | 1110 | else unknownPoolType() | |
1111 | 1111 | let assetToPay = $t03446534749._1 | |
1112 | 1112 | let amountToPay = $t03446534749._2 | |
1113 | 1113 | let $t03475634902 = if ((assetToPay == BId)) | |
1114 | 1114 | then $Tuple2((wAmountA - debt), (wAmountB - amountToPay)) | |
1115 | 1115 | else $Tuple2((wAmountA - amountToPay), (wAmountB - debt)) | |
1116 | 1116 | let eqWAmountA = $t03475634902._1 | |
1117 | 1117 | let eqWAmountB = $t03475634902._2 | |
1118 | 1118 | $Tuple6((wAmountsA :+ wAmountA), (wAmountsB :+ wAmountB), (debts :+ debt), (eqWAmountsA :+ eqWAmountA), (eqWAmountsB :+ eqWAmountB), (index + 1)) | |
1119 | 1119 | } | |
1120 | 1120 | else throw("Strict value is not equal to itself.") | |
1121 | 1121 | } | |
1122 | 1122 | else $Tuple6((wAmountsA :+ wAmountA), (wAmountsB :+ wAmountB), debts, (wAmountsA :+ wAmountA), (wAmountsB :+ wAmountB), (index + 1)) | |
1123 | 1123 | } | |
1124 | 1124 | } | |
1125 | 1125 | ||
1126 | 1126 | let $t03515735268 = { | |
1127 | 1127 | let $l = pools | |
1128 | 1128 | let $s = size($l) | |
1129 | 1129 | let $acc0 = $Tuple6(nil, nil, nil, nil, nil, 0) | |
1130 | 1130 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
1131 | 1131 | then $a | |
1132 | 1132 | else userPos($a, $l[$i]) | |
1133 | 1133 | ||
1134 | 1134 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
1135 | 1135 | then $a | |
1136 | 1136 | else throw("List size exceeds 20") | |
1137 | 1137 | ||
1138 | 1138 | $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) | |
1139 | 1139 | } | |
1140 | 1140 | let wAmountsA = $t03515735268._1 | |
1141 | 1141 | let wAmountsB = $t03515735268._2 | |
1142 | 1142 | let debts = $t03515735268._3 | |
1143 | 1143 | let eqWAmountsA = $t03515735268._4 | |
1144 | 1144 | let eqWAmountsB = $t03515735268._5 | |
1145 | 1145 | $Tuple2(nil, $Tuple5(wAmountsA, wAmountsB, debts, eqWAmountsA, eqWAmountsB)) | |
1146 | 1146 | } | |
1147 | 1147 | ||
1148 | 1148 | ||
1149 | 1149 | ||
1150 | 1150 | @Callable(i) | |
1151 | 1151 | func replenish (pool,leverage,borrowId) = valueOrElse(isActiveForUsers(), { | |
1152 | 1152 | let pType = valueOrErrorMessage(getString(this, (kPool + pool)), "Pool is not inited") | |
1153 | 1153 | if (!(isPoolActive(pool, pType))) | |
1154 | 1154 | then throw("Pool not active at this moment") | |
1155 | 1155 | else if (if ((100 > leverage)) | |
1156 | 1156 | then true | |
1157 | 1157 | else (leverage > 300)) | |
1158 | 1158 | then throw("Leverage can't be <100 and >300") | |
1159 | 1159 | else if (if (!(getBooleanValue(this, (pool + kPoolCanBorrow)))) | |
1160 | 1160 | then (leverage > 100) | |
1161 | 1161 | else false) | |
1162 | 1162 | then throw("You can't borrow in this pool") | |
1163 | 1163 | else { | |
1164 | 1164 | let $t03586635956 = getPoolData(Address(fromBase58String(pool)), pType) | |
1165 | 1165 | let AId = $t03586635956._1 | |
1166 | 1166 | let BId = $t03586635956._2 | |
1167 | 1167 | let balA = $t03586635956._3 | |
1168 | 1168 | let balB = $t03586635956._4 | |
1169 | 1169 | let shareId = $t03586635956._5 | |
1170 | 1170 | if (if ((borrowId != AId)) | |
1171 | 1171 | then (borrowId != BId) | |
1172 | 1172 | else false) | |
1173 | 1173 | then throw("Wrong borrow asset") | |
1174 | 1174 | else { | |
1175 | 1175 | let $t03603736096 = parseReplenishPmts(i.payments, AId, BId) | |
1176 | 1176 | let pmtA = $t03603736096._1 | |
1177 | 1177 | let pmtB = $t03603736096._2 | |
1178 | 1178 | let user = toString(i.caller) | |
1179 | 1179 | let newPosNum = getNewUserPositionNumber(user) | |
1180 | 1180 | if ((leverage > 100)) | |
1181 | 1181 | then { | |
1182 | 1182 | let borrowAmount = calcBorrowAmount(pmtA, pmtB, AId, BId, leverage, borrowId) | |
1183 | 1183 | let request = makeString([user, pool, toString(pmtA), AId, toString(pmtB), BId, toString(balA), toString(balB), shareId, borrowId, toString(borrowAmount)], ",") | |
1184 | 1184 | let newRequestId = { | |
1185 | 1185 | let @ = invoke(this, "createNewRequest", [request], nil) | |
1186 | 1186 | if ($isInstanceOf(@, "Int")) | |
1187 | 1187 | then @ | |
1188 | 1188 | else throw(($getType(@) + " couldn't be cast to Int")) | |
1189 | 1189 | } | |
1190 | 1190 | if ((newRequestId == newRequestId)) | |
1191 | 1191 | then { | |
1192 | 1192 | let args = [((user + "_") + toString(newPosNum)), shareId, borrowId, borrowAmount, toString(this), "replenishFromLand", toString(valueOrErrorMessage(newRequestId, "Can't create new request"))] | |
1193 | 1193 | let inv = reentrantInvoke(getLendSrvAddr(), "flashPosition", args, nil) | |
1194 | 1194 | if ((inv == inv)) | |
1195 | 1195 | then { | |
1196 | 1196 | let userStaked = getIntegerValue(this, (((((pool + "_") + user) + "_") + toString(newPosNum)) + kUserPosition)) | |
1197 | 1197 | let $t03708537179 = getPoolBalances(Address(fromBase58String(pool)), pType, AId, BId) | |
1198 | 1198 | if (($t03708537179 == $t03708537179)) | |
1199 | 1199 | then { | |
1200 | 1200 | let newBalB = $t03708537179._2 | |
1201 | 1201 | let newBalA = $t03708537179._1 | |
1202 | 1202 | let prImpact = calcPriceImpact(balA, balB, newBalA, newBalB) | |
1203 | 1203 | let $t03724937364 = calcWithdrawLPFromPoolVirt(Address(fromBase58String(pool)), pType, shareId, userStaked) | |
1204 | 1204 | let wAmountA = $t03724937364._1 | |
1205 | 1205 | let wAmountB = $t03724937364._2 | |
1206 | 1206 | $Tuple2(nil, [prImpact, wAmountA, wAmountB]) | |
1207 | 1207 | } | |
1208 | 1208 | else throw("Strict value is not equal to itself.") | |
1209 | 1209 | } | |
1210 | 1210 | else throw("Strict value is not equal to itself.") | |
1211 | 1211 | } | |
1212 | 1212 | else throw("Strict value is not equal to itself.") | |
1213 | 1213 | } | |
1214 | 1214 | else { | |
1215 | 1215 | let $t03741737532 = replenishByType(pType, pool, NO_LOAN_FEE, pmtA, AId, pmtB, BId, balA, balB, shareId) | |
1216 | 1216 | if (($t03741737532 == $t03741737532)) | |
1217 | 1217 | then { | |
1218 | 1218 | let axlyFee = $t03741737532._2 | |
1219 | 1219 | let userStaked = $t03741737532._1 | |
1220 | 1220 | let $t03753837632 = getPoolBalances(Address(fromBase58String(pool)), pType, AId, BId) | |
1221 | 1221 | if (($t03753837632 == $t03753837632)) | |
1222 | 1222 | then { | |
1223 | 1223 | let newBalB = $t03753837632._2 | |
1224 | 1224 | let newBalA = $t03753837632._1 | |
1225 | 1225 | let prImpact = calcPriceImpact(balA, balB, newBalA, newBalB) | |
1226 | 1226 | let $t03770237817 = calcWithdrawLPFromPoolVirt(Address(fromBase58String(pool)), pType, shareId, userStaked) | |
1227 | 1227 | let wAmountA = $t03770237817._1 | |
1228 | 1228 | let wAmountB = $t03770237817._2 | |
1229 | 1229 | $Tuple2((replenishEntries(pool, user, userStaked, axlyFee, newPosNum, shareId, pType, false) ++ getCursEntries(AId, BId, shareId, [toString(wAmountA), toString(wAmountB)])), [prImpact, wAmountA, wAmountB]) | |
1230 | 1230 | } | |
1231 | 1231 | else throw("Strict value is not equal to itself.") | |
1232 | 1232 | } | |
1233 | 1233 | else throw("Strict value is not equal to itself.") | |
1234 | 1234 | } | |
1235 | 1235 | } | |
1236 | 1236 | } | |
1237 | 1237 | }) | |
1238 | 1238 | ||
1239 | 1239 | ||
1240 | 1240 | ||
1241 | 1241 | @Callable(i) | |
1242 | 1242 | func withdraw (pool,posId) = valueOrElse(isActiveForUsers(), { | |
1243 | 1243 | let pType = valueOrErrorMessage(getString(this, (kPool + pool)), "Pool is not inited") | |
1244 | 1244 | if (!(isPoolActive(pool, pType))) | |
1245 | 1245 | then throw("Pool not active at this moment") | |
1246 | 1246 | else withdrawToUser(toString(i.caller), pool, toString(posId), false) | |
1247 | 1247 | }) | |
1248 | 1248 | ||
1249 | 1249 | ||
1250 | 1250 | ||
1251 | 1251 | @Callable(i) | |
1252 | 1252 | func createUpdateStopLoss (posId,poolId,assetId,price) = valueOrElse(isActiveForUsers(), { | |
1253 | 1253 | let tokenOraclePrice = getIntegerValue(priceOracleAddr, (assetId + kPriceInOracle)) | |
1254 | 1254 | let pType = valueOrErrorMessage(getString(this, (kPool + poolId)), "Pool is not inited") | |
1255 | 1255 | if (!(isPoolActive(poolId, pType))) | |
1256 | 1256 | then throw("Pool not active at this moment") | |
1257 | 1257 | else if (!(isDefined(getInteger(this, (((((poolId + "_") + toString(i.caller)) + "_") + toString(posId)) + kUserPosition))))) | |
1258 | 1258 | then throw("There are no user position") | |
1259 | 1259 | else if ((0 >= price)) | |
1260 | 1260 | then throw("Price must be greater than 0") | |
1261 | 1261 | else if ((price > tokenOraclePrice)) | |
1262 | 1262 | then throw("Price must be less than current token price") | |
1263 | 1263 | else [IntegerEntry((((((((toString(i.caller) + "_") + toString(posId)) + "_") + poolId) + "_") + assetId) + kUserStopLoss), price)] | |
1264 | 1264 | }) | |
1265 | 1265 | ||
1266 | 1266 | ||
1267 | 1267 | ||
1268 | 1268 | @Callable(i) | |
1269 | 1269 | func deleteStopLoss (posId,poolId,assetId) = valueOrElse(isActiveForUsers(), { | |
1270 | 1270 | let pType = valueOrErrorMessage(getString(this, (kPool + poolId)), "Pool is not inited") | |
1271 | 1271 | if (!(isPoolActive(poolId, pType))) | |
1272 | 1272 | then throw("Pool not active at this moment") | |
1273 | 1273 | else if (!(isDefined(getInteger(this, (((((((toString(i.caller) + "_") + toString(posId)) + "_") + poolId) + "_") + assetId) + kUserStopLoss))))) | |
1274 | 1274 | then throw("No entry") | |
1275 | 1275 | else [DeleteEntry((((((((toString(i.caller) + "_") + toString(posId)) + "_") + poolId) + "_") + assetId) + kUserStopLoss))] | |
1276 | 1276 | }) | |
1277 | 1277 | ||
1278 | 1278 | ||
1279 | 1279 | ||
1280 | 1280 | @Callable(i) | |
1281 | 1281 | func init (moneyBoxAddr,sfFarmingAddr,lendAddr,priceOracleAddr,keeperExContract,wxSwapContract,swopAssetId,wxAssetId,operatorPubKey,group1Admin1PubKey,group1Admin2PubKey,group2Admin1PubKey,group2Admin2PubKey) = valueOrElse(isSelfCall(i), if (isDefined(getString(kOperatorCallPK))) | |
1282 | 1282 | then throw("Already inited") | |
1283 | 1283 | else if (!(isDefined(addressFromString(moneyBoxAddr)))) | |
1284 | 1284 | then throw("moneyBoxAddr is not correct address") | |
1285 | 1285 | else if (!(isDefined(addressFromString(sfFarmingAddr)))) | |
1286 | 1286 | then throw("sfFarmingAddr is not correct address") | |
1287 | 1287 | else if (!(isDefined(addressFromString(lendAddr)))) | |
1288 | 1288 | then throw("lendAddr is not correct address") | |
1289 | 1289 | else if (!(isDefined(addressFromString(priceOracleAddr)))) | |
1290 | 1290 | then throw("priceOracleAddr is not correct address") | |
1291 | 1291 | else if (!(isDefined(addressFromString(keeperExContract)))) | |
1292 | 1292 | then throw("keeperExContract is not correct address") | |
1293 | 1293 | else if (!(isDefined(assetInfo(fromBase58String(swopAssetId))))) | |
1294 | 1294 | then throw("swopAssetId is not correct asset id") | |
1295 | 1295 | else if (!(isDefined(assetInfo(fromBase58String(wxAssetId))))) | |
1296 | 1296 | then throw("swopAssetId is not correct asset id") | |
1297 | 1297 | else if ((size(fromBase58String(operatorPubKey)) != 32)) | |
1298 | 1298 | then throw("operatorPubKey is not correct") | |
1299 | 1299 | else if ((size(fromBase58String(group1Admin1PubKey)) != 32)) | |
1300 | 1300 | then throw("operatorPubKey is not correct") | |
1301 | 1301 | else if ((size(fromBase58String(group1Admin2PubKey)) != 32)) | |
1302 | 1302 | then throw("operatorPubKey is not correct") | |
1303 | 1303 | else if ((size(fromBase58String(group2Admin1PubKey)) != 32)) | |
1304 | 1304 | then throw("operatorPubKey is not correct") | |
1305 | 1305 | else if ((size(fromBase58String(group2Admin2PubKey)) != 32)) | |
1306 | 1306 | then throw("operatorPubKey is not correct") | |
1307 | 1307 | else [StringEntry(kMoneyBox, moneyBoxAddr), StringEntry(kSFFarmingAddr, sfFarmingAddr), StringEntry(kLendService, lendAddr), StringEntry(kPriceOracle, priceOracleAddr), StringEntry(kExContract, keeperExContract), StringEntry(kWxSwapContract, wxSwapContract), StringEntry(kSwopId, swopAssetId), StringEntry(kWxId, wxAssetId), StringEntry(kOperatorCallPK, operatorPubKey), StringEntry(kGroup1Admin1PK, group1Admin1PubKey), StringEntry(kGroup1Admin2PK, group1Admin2PubKey), StringEntry(kGroup2Admin1PK, group2Admin1PubKey), StringEntry(kGroup2Admin2PK, group2Admin2PubKey)]) | |
1308 | 1308 | ||
1309 | 1309 | ||
1310 | 1310 | ||
1311 | 1311 | @Callable(i) | |
1312 | 1312 | func createNewRequest (params) = valueOrElse(isSelfCall(i), { | |
1313 | 1313 | let newRequestId = (valueOrElse(getInteger(this, kRequestIter), 0) + 1) | |
1314 | 1314 | $Tuple2([StringEntry((toString(newRequestId) + kRequestId), params), IntegerEntry(kRequestIter, newRequestId)], newRequestId) | |
1315 | 1315 | }) | |
1316 | 1316 | ||
1317 | 1317 | ||
1318 | 1318 | ||
1319 | 1319 | @Callable(i) | |
1320 | 1320 | func replenishFromLand (requestId) = valueOrElse(isActive(), valueOrElse(isLandCall(i), { | |
1321 | 1321 | let $t04264042744 = parseRequest(requestId) | |
1322 | 1322 | let user = $t04264042744._1 | |
1323 | 1323 | let pool = $t04264042744._2 | |
1324 | 1324 | let pmtA = $t04264042744._3 | |
1325 | 1325 | let AId = $t04264042744._4 | |
1326 | 1326 | let pmtB = $t04264042744._5 | |
1327 | 1327 | let BId = $t04264042744._6 | |
1328 | 1328 | let balA = $t04264042744._7 | |
1329 | 1329 | let balB = $t04264042744._8 | |
1330 | 1330 | let shareId = $t04264042744._9 | |
1331 | 1331 | let bwAsset = $t04264042744._10 | |
1332 | 1332 | let bwAmount = $t04264042744._11 | |
1333 | 1333 | if ((size(i.payments) != 1)) | |
1334 | 1334 | then throw("Wrong payment size") | |
1335 | 1335 | else if (if ((assetIdToStr(i.payments[0].assetId) != bwAsset)) | |
1336 | 1336 | then true | |
1337 | 1337 | else (i.payments[0].amount != bwAmount)) | |
1338 | 1338 | then throw("Wrong payment") | |
1339 | 1339 | else { | |
1340 | 1340 | let $t04293443034 = if ((AId == bwAsset)) | |
1341 | 1341 | then $Tuple2((pmtA + bwAmount), pmtB) | |
1342 | 1342 | else $Tuple2(pmtA, (pmtB + bwAmount)) | |
1343 | 1343 | let pmtAllA = $t04293443034._1 | |
1344 | 1344 | let pmtAllB = $t04293443034._2 | |
1345 | 1345 | let pType = valueOrErrorMessage(getString(this, (kPool + pool)), "Unknown pool") | |
1346 | 1346 | let $t04311643231 = replenishByType(pType, pool, LOAN_FEE, pmtAllA, AId, pmtAllB, BId, balA, balB, shareId) | |
1347 | 1347 | let userStaked = $t04311643231._1 | |
1348 | 1348 | let axlyFee = $t04311643231._2 | |
1349 | 1349 | let posNum = getNewUserPositionNumber(user) | |
1350 | 1350 | let borrowEntries = [IntegerEntry((((((pool + "_") + user) + "_") + toString(posNum)) + kUserBorrowAmount), bwAmount), StringEntry((((((pool + "_") + user) + "_") + toString(posNum)) + kUserBorrowAssetId), bwAsset)] | |
1351 | 1351 | let entries = replenishEntries(pool, user, userStaked, axlyFee, posNum, shareId, pType, true) | |
1352 | 1352 | let $t04359143706 = calcWithdrawLPFromPoolVirt(Address(fromBase58String(pool)), pType, shareId, userStaked) | |
1353 | 1353 | let wAmountA = $t04359143706._1 | |
1354 | 1354 | let wAmountB = $t04359143706._2 | |
1355 | 1355 | $Tuple2((((entries ++ getCursEntries(AId, BId, shareId, [toString(wAmountA), toString(wAmountB)])) ++ borrowEntries) :+ DeleteEntry((requestId + kRequestId))), userStaked) | |
1356 | 1356 | } | |
1357 | 1357 | })) | |
1358 | 1358 | ||
1359 | 1359 | ||
1360 | 1360 | ||
1361 | 1361 | @Callable(i) | |
1362 | 1362 | func liquidate (user,posId,liquidateAmount) = valueOrElse(isActive(), valueOrElse(isLandCall(i), { | |
1363 | 1363 | let pool = valueOrErrorMessage(getString(this, (((user + "_") + posId) + kUserPositionPool)), "no position") | |
1364 | 1364 | let pType = valueOrErrorMessage(getString(this, (kPool + pool)), "Pool is not inited") | |
1365 | 1365 | let $t04422744317 = getPoolData(Address(fromBase58String(pool)), pType) | |
1366 | 1366 | let AId = $t04422744317._1 | |
1367 | 1367 | let BId = $t04422744317._2 | |
1368 | 1368 | let balA = $t04422744317._3 | |
1369 | 1369 | let balB = $t04422744317._4 | |
1370 | 1370 | let shareId = $t04422744317._5 | |
1371 | 1371 | let amount = unstakeLP(pool, pType, shareId, liquidateAmount) | |
1372 | 1372 | let borrowAmount = getIntegerValue(this, (((((pool + "_") + user) + "_") + posId) + kUserBorrowAmount)) | |
1373 | 1373 | let borrowAsset = getStringValue(this, (((((pool + "_") + user) + "_") + posId) + kUserBorrowAssetId)) | |
1374 | 1374 | let userCanWithdraw = userCanWithdrawShareCalc(user, pool, posId, (borrowAmount > 0)) | |
1375 | 1375 | if ((liquidateAmount > userCanWithdraw)) | |
1376 | 1376 | then throw("You can't liquidate more than user have") | |
1377 | 1377 | else if ((borrowAmount == 0)) | |
1378 | 1378 | then throw("You can't liquidate position without borrow") | |
1379 | 1379 | 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))] | |
1380 | 1380 | })) | |
1381 | 1381 | ||
1382 | 1382 | ||
1383 | 1383 | ||
1384 | 1384 | @Callable(i) | |
1385 | 1385 | func stopLoss (user,posId,pool,assetId) = valueOrElse(isActive(), valueOrElse(isOperatorCall(i), { | |
1386 | 1386 | let tokenOraclePrice = getIntegerValue(priceOracleAddr, (assetId + kPriceInOracle)) | |
1387 | 1387 | let stopLossPrice = valueOrErrorMessage(getInteger(this, (((((((user + "_") + toString(posId)) + "_") + pool) + "_") + assetId) + kUserStopLoss)), "No entry") | |
1388 | 1388 | if ((tokenOraclePrice > stopLossPrice)) | |
1389 | 1389 | then throw("Token price greater stop loss price") | |
1390 | 1390 | else { | |
1391 | 1391 | let res = withdrawToUser(user, pool, toString(posId), true) | |
1392 | 1392 | $Tuple2((res._1 :+ DeleteEntry((((((((user + "_") + toString(posId)) + "_") + pool) + "_") + assetId) + kUserStopLoss))), res._2) | |
1393 | 1393 | } | |
1394 | 1394 | })) | |
1395 | 1395 | ||
1396 | 1396 | ||
1397 | 1397 | ||
1398 | 1398 | @Callable(i) | |
1399 | 1399 | func capitalizeExKeeper (pool,tokenToId,amountToExchange,claim,amountsIn,addresses,assetsToReceive,estReceived,slippageTolerance,minReceived,options) = valueOrElse(isActive(), valueOrElse(isOperatorCall(i), { | |
1400 | 1400 | let pType = getStringValue(this, (kPool + pool)) | |
1401 | 1401 | let change = valueOrElse(getInteger(this, (pool + kPoolCapChange)), 0) | |
1402 | 1402 | let $t04646946568 = claimAndCheckAmnt(pool, pType, claim, amountToExchange, change) | |
1403 | 1403 | let claimedAmount = $t04646946568._1 | |
1404 | 1404 | let claimedAsset = $t04646946568._2 | |
1405 | 1405 | let exchangedAmount = exchangeKeeper(tokenToId, amountToExchange, claimedAsset, amountsIn, addresses, assetsToReceive, estReceived, slippageTolerance, minReceived, options) | |
1406 | 1406 | let newChange = ((claimedAmount + change) - amountToExchange) | |
1407 | 1407 | let changeEntry = if ((newChange >= 0)) | |
1408 | 1408 | then [IntegerEntry((pool + kPoolCapChange), newChange)] | |
1409 | 1409 | else throw("Negative change") | |
1410 | 1410 | (capitalize(pool, pType, tokenToId, exchangedAmount) ++ changeEntry) | |
1411 | 1411 | })) | |
1412 | 1412 | ||
1413 | 1413 | ||
1414 | 1414 | ||
1415 | 1415 | @Callable(i) | |
1416 | 1416 | func capitalizeExPuzzle (pool,tokenToId,amountToExchange,claim,routesStr,minToReceive,options) = valueOrElse(isActive(), valueOrElse(isOperatorCall(i), { | |
1417 | 1417 | let pType = getStringValue(this, (kPool + pool)) | |
1418 | 1418 | let change = valueOrElse(getInteger(this, (pool + kPoolCapChange)), 0) | |
1419 | 1419 | let $t04736847467 = claimAndCheckAmnt(pool, pType, claim, amountToExchange, change) | |
1420 | 1420 | let claimedAmount = $t04736847467._1 | |
1421 | 1421 | let claimedAsset = $t04736847467._2 | |
1422 | 1422 | let exchangedAmount = exchangePuzzle(tokenToId, amountToExchange, claimedAsset, routesStr, minToReceive, options) | |
1423 | 1423 | let newChange = ((claimedAmount + change) - amountToExchange) | |
1424 | 1424 | let changeEntry = if ((newChange >= 0)) | |
1425 | 1425 | then [IntegerEntry((pool + kPoolCapChange), newChange)] | |
1426 | 1426 | else nil | |
1427 | 1427 | (capitalize(pool, pType, tokenToId, exchangedAmount) ++ changeEntry) | |
1428 | 1428 | })) | |
1429 | 1429 | ||
1430 | 1430 | ||
1431 | 1431 | ||
1432 | 1432 | @Callable(i) | |
1433 | 1433 | func capitalizeExSwopFi (pool,tokenToId,amountToExchange,claim,exchangers,exchangersType,args1,args2,routingAssetsKeys,minAmountToReceive,options) = valueOrElse(isActive(), valueOrElse(isOperatorCall(i), { | |
1434 | 1434 | let pType = getStringValue(this, (kPool + pool)) | |
1435 | 1435 | let change = valueOrElse(getInteger(this, (pool + kPoolCapChange)), 0) | |
1436 | 1436 | let $t04831248411 = claimAndCheckAmnt(pool, pType, claim, amountToExchange, change) | |
1437 | 1437 | let claimedAmount = $t04831248411._1 | |
1438 | 1438 | let claimedAsset = $t04831248411._2 | |
1439 | 1439 | let exchangedAmount = exchangeSwopFi(tokenToId, amountToExchange, claimedAsset, exchangers, exchangersType, args1, args2, routingAssetsKeys, minAmountToReceive, options) | |
1440 | 1440 | let newChange = ((claimedAmount + change) - amountToExchange) | |
1441 | 1441 | let changeEntry = if ((newChange >= 0)) | |
1442 | 1442 | then [IntegerEntry((pool + kPoolCapChange), newChange)] | |
1443 | 1443 | else nil | |
1444 | 1444 | (capitalize(pool, pType, tokenToId, exchangedAmount) ++ changeEntry) | |
1445 | 1445 | })) | |
1446 | 1446 | ||
1447 | 1447 | ||
1448 | 1448 | ||
1449 | 1449 | @Callable(i) | |
1450 | 1450 | func capitalizeNoEx (pool,claim,amountFromBalance) = valueOrElse(isActive(), valueOrElse(isOperatorCall(i), { | |
1451 | 1451 | let pType = getStringValue(this, (kPool + pool)) | |
1452 | 1452 | let $t04900849103 = claimAndCheckAmnt(pool, pType, claim, amountFromBalance, 0) | |
1453 | 1453 | let claimedAmount = $t04900849103._1 | |
1454 | 1454 | let claimedAsset = $t04900849103._2 | |
1455 | 1455 | capitalize(pool, pType, assetIdToStr(claimedAsset), amountFromBalance) | |
1456 | 1456 | })) | |
1457 | 1457 | ||
1458 | 1458 | ||
1459 | 1459 | ||
1460 | 1460 | @Callable(i) | |
1461 | 1461 | func initNewPool (type,poolAddr,inFeeNoLoan,inFeeLoan,capFeeNoLoan,capFeeWithLoan,stoplossFeeNoLoan,stoplossFeeWithLoan,canBorrow) = valueOrElse(isActive(), valueOrElse(isAdminCall(i), if (if ((type != SF_POOL)) | |
1462 | 1462 | then (type != WX_POOL) | |
1463 | 1463 | else false) | |
1464 | 1464 | then throw("Wrong type") | |
1465 | 1465 | else { | |
1466 | 1466 | let $t04951349607 = getPoolData(Address(fromBase58String(poolAddr)), type) | |
1467 | 1467 | let aId = $t04951349607._1 | |
1468 | 1468 | let bId = $t04951349607._2 | |
1469 | 1469 | let aBal = $t04951349607._3 | |
1470 | 1470 | let bBal = $t04951349607._4 | |
1471 | 1471 | let shareId = $t04951349607._5 | |
1472 | 1472 | if ((0 > inFeeNoLoan)) | |
1473 | 1473 | then throw("inFeeNoLoan must be greater than 0") | |
1474 | 1474 | else if ((0 > inFeeLoan)) | |
1475 | 1475 | then throw("inFeeLoan must be greater than 0") | |
1476 | 1476 | else if ((0 > capFeeNoLoan)) | |
1477 | 1477 | then throw("capFeeNoLoan must be greater than 0") | |
1478 | 1478 | else if ((0 > capFeeWithLoan)) | |
1479 | 1479 | then throw("capFeeWithLoan must be greater than 0") | |
1480 | 1480 | else if ((0 > stoplossFeeNoLoan)) | |
1481 | 1481 | then throw("stoplossFeeNoLoan must be greater than 0") | |
1482 | 1482 | else if ((0 > stoplossFeeWithLoan)) | |
1483 | 1483 | then throw("stoplossFeeWithLoan must be greater than 0") | |
1484 | 1484 | else [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), BooleanEntry((poolAddr + kPoolCanBorrow), canBorrow)] | |
1485 | 1485 | })) | |
1486 | 1486 | ||
1487 | 1487 | ||
1488 | 1488 | ||
1489 | 1489 | @Callable(i) | |
1490 | 1490 | func activate () = valueOrElse(isAdminCall(i), if (valueOrElse(getBoolean(this, kActive), true)) | |
1491 | 1491 | then throw("dApp already active") | |
1492 | 1492 | else [BooleanEntry(kActive, true)]) | |
1493 | 1493 | ||
1494 | 1494 | ||
1495 | 1495 | ||
1496 | 1496 | @Callable(i) | |
1497 | 1497 | func shutdown () = valueOrElse(isAdminCall(i), if (!(valueOrElse(getBoolean(this, kActive), true))) | |
1498 | 1498 | then throw("dApp already shutdown") | |
1499 | 1499 | else [BooleanEntry(kActive, false)]) | |
1500 | 1500 | ||
1501 | 1501 | ||
1502 | 1502 | ||
1503 | 1503 | @Callable(i) | |
1504 | 1504 | func activateForUsers () = valueOrElse(isAdminCall(i), if (valueOrElse(getBoolean(this, kActiveUsers), true)) | |
1505 | 1505 | then throw("dApp already active for users") | |
1506 | 1506 | else [BooleanEntry(kActiveUsers, true)]) | |
1507 | 1507 | ||
1508 | 1508 | ||
1509 | 1509 | ||
1510 | 1510 | @Callable(i) | |
1511 | 1511 | func shutdownForUsers () = valueOrElse(isAdminCall(i), if (!(valueOrElse(getBoolean(this, kActiveUsers), true))) | |
1512 | 1512 | then throw("dApp already shutdown for users") | |
1513 | 1513 | else [BooleanEntry(kActiveUsers, false)]) | |
1514 | 1514 | ||
1515 | 1515 | ||
1516 | 1516 | ||
1517 | 1517 | @Callable(i) | |
1518 | 1518 | func activateSF () = valueOrElse(isAdminCall(i), if (valueOrElse(getBoolean(this, (SF_POOL + kActiveSFWX)), true)) | |
1519 | 1519 | then throw("SWOPFI already active") | |
1520 | 1520 | else [BooleanEntry((SF_POOL + kActiveSFWX), true)]) | |
1521 | 1521 | ||
1522 | 1522 | ||
1523 | 1523 | ||
1524 | 1524 | @Callable(i) | |
1525 | 1525 | func shutdownSF () = valueOrElse(isAdminCall(i), if (!(valueOrElse(getBoolean(this, (SF_POOL + kActiveSFWX)), true))) | |
1526 | 1526 | then throw("SWOPFI already shutdown") | |
1527 | 1527 | else [BooleanEntry((SF_POOL + kActiveSFWX), false)]) | |
1528 | 1528 | ||
1529 | 1529 | ||
1530 | 1530 | ||
1531 | 1531 | @Callable(i) | |
1532 | 1532 | func activateWX () = valueOrElse(isAdminCall(i), if (valueOrElse(getBoolean(this, (WX_POOL + kActiveSFWX)), true)) | |
1533 | 1533 | then throw("WX already active") | |
1534 | 1534 | else [BooleanEntry((WX_POOL + kActiveSFWX), true)]) | |
1535 | 1535 | ||
1536 | 1536 | ||
1537 | 1537 | ||
1538 | 1538 | @Callable(i) | |
1539 | 1539 | func shutdownWX () = valueOrElse(isAdminCall(i), if (!(valueOrElse(getBoolean(this, (WX_POOL + kActiveSFWX)), true))) | |
1540 | 1540 | then throw("WX already shutdown") | |
1541 | 1541 | else [BooleanEntry((WX_POOL + kActiveSFWX), false)]) | |
1542 | 1542 | ||
1543 | 1543 | ||
1544 | 1544 | ||
1545 | 1545 | @Callable(i) | |
1546 | 1546 | func activatePool (pool) = valueOrElse(isAdminCall(i), if (!(isDefined(getString(this, (kPool + pool))))) | |
1547 | 1547 | then throw("Unknown pool") | |
1548 | 1548 | else if (valueOrElse(getBoolean(this, (pool + kPoolActive)), true)) | |
1549 | 1549 | then throw("Pool already active") | |
1550 | 1550 | else [BooleanEntry((pool + kPoolActive), true)]) | |
1551 | 1551 | ||
1552 | 1552 | ||
1553 | 1553 | ||
1554 | 1554 | @Callable(i) | |
1555 | 1555 | func shutdownPool (pool) = valueOrElse(isAdminCall(i), if (!(isDefined(getString(this, (kPool + pool))))) | |
1556 | 1556 | then throw("Unknown pool") | |
1557 | 1557 | else if (!(valueOrElse(getBoolean(this, (pool + kPoolActive)), true))) | |
1558 | 1558 | then throw("Pool already shutdown") | |
1559 | 1559 | else [BooleanEntry((pool + kPoolActive), false)]) | |
1560 | 1560 | ||
1561 | 1561 | ||
1562 | 1562 | @Verifier(tx) | |
1563 | 1563 | func verify () = match tx { | |
1564 | 1564 | case inv: InvokeScriptTransaction => | |
1565 | 1565 | let isRightFee = if ((inv.fee == 900000)) | |
1566 | 1566 | then (inv.feeAssetId == unit) | |
1567 | 1567 | else false | |
1568 | 1568 | let isInitCall = (inv.function == "init") | |
1569 | 1569 | if (isRightFee) | |
1570 | 1570 | then isInitCall | |
1571 | 1571 | else false | |
1572 | 1572 | case _ => | |
1573 | 1573 | let group1Signed = if (sigVerify(tx.bodyBytes, tx.proofs[0], group1Admin1PK)) | |
1574 | 1574 | then 1 | |
1575 | 1575 | else (0 + (if (sigVerify(tx.bodyBytes, tx.proofs[0], group1Admin2PK)) | |
1576 | 1576 | then 1 | |
1577 | 1577 | else 0)) | |
1578 | 1578 | let group2Signed = if (sigVerify(tx.bodyBytes, tx.proofs[1], group2Admin1PK)) | |
1579 | 1579 | then 1 | |
1580 | 1580 | else (0 + (if (sigVerify(tx.bodyBytes, tx.proofs[1], group2Admin2PK)) | |
1581 | 1581 | then 1 | |
1582 | 1582 | else 0)) | |
1583 | 1583 | ((group1Signed + group2Signed) == 2) | |
1584 | 1584 | } | |
1585 | 1585 |
github/deemru/w8io/169f3d6 125.04 ms ◑