tx · DSF66GStJe5vyjV8emZZXmJMmJsMeG52mGBqK5ABjmrd 3MvRWw2FPEimFCTGtK7qY9uAJbM7XJ4ZfJS: -0.53000000 Waves 2023.10.18 13:04 [2803901] smart account 3MvRWw2FPEimFCTGtK7qY9uAJbM7XJ4ZfJS > SELF 0.00000000 Waves
{ "type": 13, "id": "DSF66GStJe5vyjV8emZZXmJMmJsMeG52mGBqK5ABjmrd", "fee": 53000000, "feeAssetId": null, "timestamp": 1697623455911, "version": 2, "chainId": 84, "sender": "3MvRWw2FPEimFCTGtK7qY9uAJbM7XJ4ZfJS", "senderPublicKey": "HP8sssVq1866F7CaPQJwgFrt6fsqhQjKwM84cL1wjD2a", "proofs": [ "4jsMDm9zvRXXNQdNXNztabkUP4bJ5C1MLWwLbj9JQFMg1jqEVKaDuz71nhnVh6rHLMXxsU5Q3BMQ47j98QUHe6Bf" ], "script": "base64:BgKiAQgCEgMKAQgSAwoBCBIECgIICBIFCgMIGBgSBQoDCAEIEgQKAggBEgYKBAEICAESBQoDAQgIEg8KDQgICAgICAgICAgICAgSAwoBCBIDCgEIEgUKAwgIARIGCgQIAQgIEgcKBQgICAEEEgUKAwgEARIMCgoICAgBAQEBAQEEEgkKBwgBAQEBAQESABIAEgASABIAEgASABIAEgMKAQgSAwoBCIUBAAdTRl9QT09MAgJTRgAHV1hfUE9PTAICV1gABENQTU0CBGNwbW0ABEZMQVQCBGZsYXQAD0NBUF9GRUVfTk9fTE9BTgIJY2FwTm9Mb2FuAAxDQVBfRkVFX0xPQU4CB2NhcExvYW4AFFNUT1BMT1NTX0ZFRV9OT19MT0FOAg5zdG9wTG9zc05vTG9hbgANU1RPUExPU1NfTE9BTgIMc3RvcExvc3NMb2FuAAhMT0FOX0ZFRQIEbG9hbgALTk9fTE9BTl9GRUUCBm5vTG9hbgAGTk9fRkVFAgVub0ZlZQAGU0NBTEU4AIDC1y8AB1NDQUxFMTAAgMivoCUAB1NDQUxFMTYJALYCAQCAgIT+pt7hEQAKRkVFX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CAIFBHRoaXMJAKwCAgUHV1hfUE9PTAULa0FjdGl2ZVNGV1gGCQACAQITV1ggYWxyZWFkeSBzaHV0ZG93bgkAzAgCCQEMQm9vbGVhbkVudHJ5AgkArAICBQdXWF9QT09MBQtrQWN0aXZlU0ZXWAcFA25pbAFpAQxhY3RpdmF0ZVBvb2wBBHBvb2wJAQt2YWx1ZU9yRWxzZQIJAQtpc0FkbWluQ2FsbAEFAWkDCQEBIQEJAQlpc0RlZmluZWQBCQCdCAIFBHRoaXMJAKwCAgUFa1Bvb2wFBHBvb2wJAAIBAgxVbmtub3duIHBvb2wDCQELdmFsdWVPckVsc2UCCQCbCAIFBHRoaXMJAKwCAgUEcG9vbAULa1Bvb2xBY3RpdmUGCQACAQITUG9vbCBhbHJlYWR5IGFjdGl2ZQkAzAgCCQEMQm9vbGVhbkVudHJ5AgkArAICBQRwb29sBQtrUG9vbEFjdGl2ZQYFA25pbAFpAQxzaHV0ZG93blBvb2wBBHBvb2wJAQt2YWx1ZU9yRWxzZQIJAQtpc0FkbWluQ2FsbAEFAWkDCQEBIQEJAQlpc0RlZmluZWQBCQCdCAIFBHRoaXMJAKwCAgUFa1Bvb2wFBHBvb2wJAAIBAgxVbmtub3duIHBvb2wDCQEBIQEJAQt2YWx1ZU9yRWxzZQIJAJsIAgUEdGhpcwkArAICBQRwb29sBQtrUG9vbEFjdGl2ZQYJAAIBAhVQb29sIGFscmVhZHkgc2h1dGRvd24JAMwIAgkBDEJvb2xlYW5FbnRyeQIJAKwCAgUEcG9vbAULa1Bvb2xBY3RpdmUHBQNuaWwAG1VqsA==", "height": 2803901, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: CUiARNrn5WceECGMy34NycbZ3AfeBxHLYWXWzM8bYR5u Next: 4M2PVDWnzvVtmNfFftF8nMZfRvKBHCoeedabQqmhBELP Diff:
Old | New | Differences | |
---|---|---|---|
85 | 85 | ||
86 | 86 | let P = "pool_" | |
87 | 87 | ||
88 | - | let Q = "_ | |
88 | + | let Q = "_poolType" | |
89 | 89 | ||
90 | - | let R = "_ | |
90 | + | let R = "_poolShareId" | |
91 | 91 | ||
92 | - | let S = " | |
92 | + | let S = "_poolCapChange" | |
93 | 93 | ||
94 | - | let T = "_ | |
94 | + | let T = "last_price" | |
95 | 95 | ||
96 | - | let U = " | |
96 | + | let U = "_twap5B" | |
97 | 97 | ||
98 | - | let V = " | |
98 | + | let V = "active" | |
99 | 99 | ||
100 | - | let W = " | |
100 | + | let W = "activeUsers" | |
101 | 101 | ||
102 | - | let X = "_ | |
102 | + | let X = "_active" | |
103 | 103 | ||
104 | - | let Y = "_ | |
104 | + | let Y = "_activePool" | |
105 | 105 | ||
106 | - | let Z = "_ | |
106 | + | let Z = "_stopLoss" | |
107 | 107 | ||
108 | - | let aa = " | |
108 | + | let aa = "_fallbackExchangeSwopfi" | |
109 | 109 | ||
110 | - | let ab = " | |
110 | + | let ab = "axly_money_box" | |
111 | 111 | ||
112 | - | let ac = " | |
112 | + | let ac = "swopfi_farming_addr" | |
113 | 113 | ||
114 | - | let ad = " | |
114 | + | let ad = "lend_service_addr" | |
115 | 115 | ||
116 | - | let ae = " | |
116 | + | let ae = "admin_call_pub_key" | |
117 | 117 | ||
118 | - | let af = " | |
118 | + | let af = "price_oracle" | |
119 | 119 | ||
120 | - | let ag = " | |
120 | + | let ag = "exchange_contract" | |
121 | 121 | ||
122 | - | let ah = " | |
122 | + | let ah = "wx_swap_contract" | |
123 | 123 | ||
124 | - | let ai = " | |
124 | + | let ai = "swop_id" | |
125 | 125 | ||
126 | - | let aj = " | |
126 | + | let aj = "wx_id" | |
127 | 127 | ||
128 | - | let ak = "group1_ | |
128 | + | let ak = "group1_admin1_pub_key" | |
129 | 129 | ||
130 | - | let al = " | |
130 | + | let al = "group1_admin2_pub_key" | |
131 | 131 | ||
132 | - | let am = "group2_ | |
132 | + | let am = "group2_admin1_pub_key" | |
133 | 133 | ||
134 | - | let an = | |
134 | + | let an = "group2_admin2_pub_key" | |
135 | 135 | ||
136 | - | let ao = Address(fromBase58String(valueOrErrorMessage(getString(this, | |
136 | + | let ao = Address(fromBase58String(valueOrErrorMessage(getString(this, ab), "No axly moneyBox address"))) | |
137 | 137 | ||
138 | - | let ap = Address(fromBase58String(valueOrErrorMessage(getString(this, | |
138 | + | let ap = Address(fromBase58String(valueOrErrorMessage(getString(this, ag), "No exchange contract address"))) | |
139 | 139 | ||
140 | - | let aq = Address(fromBase58String(valueOrErrorMessage(getString(this, | |
140 | + | let aq = Address(fromBase58String(valueOrErrorMessage(getString(this, af), "No price oracle address"))) | |
141 | 141 | ||
142 | - | let ar = fromBase58String(valueOrErrorMessage(getString(this, ah), "No | |
142 | + | let ar = Address(fromBase58String(valueOrErrorMessage(getString(this, ah), "No wx swap address"))) | |
143 | 143 | ||
144 | - | let as = fromBase58String(valueOrErrorMessage(getString(this, ai), "No | |
144 | + | let as = fromBase58String(valueOrErrorMessage(getString(this, ai), "No swop id")) | |
145 | 145 | ||
146 | - | let at = fromBase58String(valueOrErrorMessage(getString(this, aj), " | |
146 | + | let at = fromBase58String(valueOrErrorMessage(getString(this, aj), "No wx id")) | |
147 | 147 | ||
148 | - | let au = fromBase58String(valueOrErrorMessage(getString(this, ak), "Can't get | |
148 | + | let au = fromBase58String(valueOrErrorMessage(getString(this, ak), "Can't get kGroup1Admin1PK")) | |
149 | 149 | ||
150 | - | let av = fromBase58String(valueOrErrorMessage(getString(this, al), "Can't get | |
150 | + | let av = fromBase58String(valueOrErrorMessage(getString(this, al), "Can't get kGroup1Admin2PK")) | |
151 | 151 | ||
152 | 152 | let aw = fromBase58String(valueOrErrorMessage(getString(this, am), "Can't get kGroup2Admin1PK")) | |
153 | 153 | ||
154 | - | let ax = fromBase58String(valueOrErrorMessage(getString(this, | |
154 | + | let ax = fromBase58String(valueOrErrorMessage(getString(this, an), "Can't get kGroup2Admin1PK")) | |
155 | 155 | ||
156 | - | func ay () = throw("Wrong pool type") | |
156 | + | let ay = fromBase58String(valueOrErrorMessage(getString(this, ae), "Can't get operatorPK")) | |
157 | + | ||
158 | + | func az () = throw("Wrong pool type") | |
157 | 159 | ||
158 | 160 | ||
159 | - | func | |
161 | + | func aA () = Address(fromBase58String(valueOrErrorMessage(getString(this, ad), "Can't get lend service addr"))) | |
160 | 162 | ||
161 | 163 | ||
162 | - | func | |
164 | + | func aB (aC) = if ((aC.callerPublicKey == ay)) | |
163 | 165 | then unit | |
164 | 166 | else throw("Only operator can call this function") | |
165 | 167 | ||
166 | 168 | ||
167 | - | func | |
169 | + | func aD (aC) = if (if ((aC.callerPublicKey == au)) | |
168 | 170 | then true | |
169 | - | else ( | |
171 | + | else (aC.callerPublicKey == av)) | |
170 | 172 | then unit | |
171 | 173 | else throw("Only admin group1 can call this function") | |
172 | 174 | ||
173 | 175 | ||
174 | - | func | |
176 | + | func aE (aC) = if ((aC.caller == this)) | |
175 | 177 | then unit | |
176 | 178 | else throw("Only contract itself can call this function") | |
177 | 179 | ||
178 | 180 | ||
179 | - | func | |
181 | + | func aF (aC) = if ((aC.caller == aA())) | |
180 | 182 | then unit | |
181 | 183 | else throw("Only land contract can call this function") | |
182 | 184 | ||
183 | 185 | ||
184 | - | func | |
186 | + | func aG () = if ((valueOrElse(getBoolean(this, V), true) == true)) | |
185 | 187 | then unit | |
186 | 188 | else throw("DApp is inactive at this moment") | |
187 | 189 | ||
188 | 190 | ||
189 | - | func | |
190 | - | then (valueOrElse(getBoolean(this, | |
191 | + | func aH () = if (if (valueOrElse(getBoolean(this, V), true)) | |
192 | + | then (valueOrElse(getBoolean(this, W), true) == true) | |
191 | 193 | else false) | |
192 | 194 | then unit | |
193 | 195 | else throw("DApp is inactive for users at this moment") | |
194 | 196 | ||
195 | 197 | ||
196 | - | func | |
197 | - | let | |
198 | - | let | |
199 | - | if (if ( | |
200 | - | then | |
198 | + | func aI (aJ,aK) = { | |
199 | + | let aL = valueOrElse(getBoolean(this, (aK + X)), true) | |
200 | + | let aM = valueOrElse(getBoolean(this, (aJ + Y)), true) | |
201 | + | if (if (aL) | |
202 | + | then aM | |
201 | 203 | else false) | |
202 | 204 | then true | |
203 | 205 | else false | |
204 | 206 | } | |
205 | 207 | ||
206 | 208 | ||
207 | - | func | |
208 | - | let | |
209 | - | if ($isInstanceOf( | |
209 | + | func aN (aO) = { | |
210 | + | let aP = aO | |
211 | + | if ($isInstanceOf(aP, "ByteVector")) | |
210 | 212 | then { | |
211 | - | let | |
212 | - | assetBalance(this, | |
213 | + | let aQ = aP | |
214 | + | assetBalance(this, aQ) | |
213 | 215 | } | |
214 | - | else if ($isInstanceOf( | |
216 | + | else if ($isInstanceOf(aP, "Unit")) | |
215 | 217 | then { | |
216 | - | let | |
218 | + | let aR = aP | |
217 | 219 | wavesBalance(this).available | |
218 | 220 | } | |
219 | 221 | else throw("Match error") | |
220 | 222 | } | |
221 | 223 | ||
222 | 224 | ||
223 | - | func | |
225 | + | func aS (aT) = $Tuple2(valueOrErrorMessage(getInteger(aT, p), "Can't get pool A asset balance"), valueOrErrorMessage(getInteger(aT, q), "Can't get pool B asset balance")) | |
224 | 226 | ||
225 | 227 | ||
226 | - | func | |
227 | - | let | |
228 | - | if ($isInstanceOf( | |
229 | - | then | |
230 | - | else throw(($getType( | |
228 | + | func aU (aT,aV,aW) = $Tuple2({ | |
229 | + | let aX = invoke(aT, "getAccBalanceWrapperREADONLY", [aV], nil) | |
230 | + | if ($isInstanceOf(aX, "Int")) | |
231 | + | then aX | |
232 | + | else throw(($getType(aX) + " couldn't be cast to Int")) | |
231 | 233 | }, { | |
232 | - | let | |
233 | - | if ($isInstanceOf( | |
234 | - | then | |
235 | - | else throw(($getType( | |
234 | + | let aX = invoke(aT, "getAccBalanceWrapperREADONLY", [aW], nil) | |
235 | + | if ($isInstanceOf(aX, "Int")) | |
236 | + | then aX | |
237 | + | else throw(($getType(aX) + " couldn't be cast to Int")) | |
236 | 238 | }) | |
237 | 239 | ||
238 | 240 | ||
239 | - | func | |
240 | - | then | |
241 | - | else if (( | |
242 | - | then aT | |
243 | - | else | |
241 | + | func aY (aT,aK,aV,aW) = if ((aK == a)) | |
242 | + | then aS(aT) | |
243 | + | else if ((aK == b)) | |
244 | + | then aU(aT, aV, aW) | |
245 | + | else az() | |
244 | 246 | ||
245 | 247 | ||
246 | - | func | |
247 | - | let | |
248 | - | if (( | |
248 | + | func aZ (aT) = { | |
249 | + | let ba = aS(aT) | |
250 | + | if ((ba == ba)) | |
249 | 251 | then { | |
250 | - | let | |
251 | - | let | |
252 | - | $Tuple5(valueOrErrorMessage(getString( | |
252 | + | let bb = ba._2 | |
253 | + | let bc = ba._1 | |
254 | + | $Tuple5(valueOrErrorMessage(getString(aT, r), "Can't get pool A asset id"), valueOrErrorMessage(getString(aT, s), "Can't get pool B asset id"), bc, bb, valueOrErrorMessage(getString(aT, t), "Can't get share asset id")) | |
253 | 255 | } | |
254 | 256 | else throw("Strict value is not equal to itself.") | |
255 | 257 | } | |
256 | 258 | ||
257 | 259 | ||
258 | - | func | |
259 | - | let | |
260 | - | let | |
261 | - | if ($isInstanceOf( | |
262 | - | then | |
263 | - | else throw(($getType( | |
260 | + | func bd (aT) = { | |
261 | + | let be = { | |
262 | + | let aX = invoke(aT, "getPoolConfigWrapperREADONLY", nil, nil) | |
263 | + | if ($isInstanceOf(aX, "List[Any]")) | |
264 | + | then aX | |
265 | + | else throw(($getType(aX) + " couldn't be cast to List[Any]")) | |
264 | 266 | } | |
265 | - | if (( | |
267 | + | if ((be == be)) | |
266 | 268 | then { | |
267 | - | let | |
268 | - | let | |
269 | - | if ($isInstanceOf( | |
270 | - | then | |
269 | + | let aV = valueOrErrorMessage({ | |
270 | + | let aX = be[4] | |
271 | + | if ($isInstanceOf(aX, "String")) | |
272 | + | then aX | |
271 | 273 | else unit | |
272 | 274 | }, "Can't get pool A asset id") | |
273 | - | let | |
274 | - | let | |
275 | - | if ($isInstanceOf( | |
276 | - | then | |
275 | + | let aW = valueOrErrorMessage({ | |
276 | + | let aX = be[5] | |
277 | + | if ($isInstanceOf(aX, "String")) | |
278 | + | then aX | |
277 | 279 | else unit | |
278 | 280 | }, "Can't get pool B asset id") | |
279 | - | let | |
280 | - | let | |
281 | - | if ($isInstanceOf( | |
282 | - | then | |
281 | + | let bf = valueOrErrorMessage({ | |
282 | + | let aX = be[3] | |
283 | + | if ($isInstanceOf(aX, "String")) | |
284 | + | then aX | |
283 | 285 | else unit | |
284 | 286 | }, "Can't get pool LP asset id") | |
285 | - | let | |
286 | - | if (( | |
287 | + | let bg = aU(aT, aV, aW) | |
288 | + | if ((bg == bg)) | |
287 | 289 | then { | |
288 | - | let | |
289 | - | let | |
290 | - | $Tuple5( | |
290 | + | let bb = bg._2 | |
291 | + | let bc = bg._1 | |
292 | + | $Tuple5(aV, aW, bc, bb, bf) | |
291 | 293 | } | |
292 | 294 | else throw("Strict value is not equal to itself.") | |
293 | 295 | } | |
295 | 297 | } | |
296 | 298 | ||
297 | 299 | ||
298 | - | func | |
299 | - | then | |
300 | - | else if (( | |
301 | - | then | |
302 | - | else | |
300 | + | func bh (aT,aK) = if ((aK == a)) | |
301 | + | then aZ(aT) | |
302 | + | else if ((aK == b)) | |
303 | + | then bd(aT) | |
304 | + | else az() | |
303 | 305 | ||
304 | 306 | ||
305 | - | func | |
306 | - | then valueOrErrorMessage(getInteger( | |
307 | - | else if (( | |
308 | - | then valueOrErrorMessage(assetInfo(fromBase58String( | |
309 | - | else | |
307 | + | func bi (aT,aK,bf) = if ((aK == a)) | |
308 | + | then valueOrErrorMessage(getInteger(aT, u), "Can't get share asset supply") | |
309 | + | else if ((aK == b)) | |
310 | + | then valueOrErrorMessage(assetInfo(fromBase58String(bf)), "Wrong ShareId").quantity | |
311 | + | else az() | |
310 | 312 | ||
311 | 313 | ||
312 | - | func | |
314 | + | func bj (aJ) = valueOrElse(getInteger(this, (aJ + C)), 0) | |
313 | 315 | ||
314 | 316 | ||
315 | - | func | |
317 | + | func bk (aJ) = valueOrElse(getInteger(this, (aJ + D)), 0) | |
316 | 318 | ||
317 | 319 | ||
318 | - | func | |
320 | + | func bl (bm) = (valueOrElse(getInteger(this, (bm + A)), 0) + 1) | |
319 | 321 | ||
320 | 322 | ||
321 | - | func | |
322 | - | then getIntegerValue(this, ( | |
323 | - | else if (( | |
324 | - | then getIntegerValue(this, ( | |
325 | - | else if (( | |
326 | - | then getIntegerValue(this, ( | |
327 | - | else if (( | |
328 | - | then getIntegerValue(this, ( | |
329 | - | else if (( | |
323 | + | func bn (aJ,bo) = if ((bo == f)) | |
324 | + | then getIntegerValue(this, (aJ + K)) | |
325 | + | else if ((bo == e)) | |
326 | + | then getIntegerValue(this, (aJ + J)) | |
327 | + | else if ((bo == i)) | |
328 | + | then getIntegerValue(this, (aJ + I)) | |
329 | + | else if ((bo == j)) | |
330 | + | then getIntegerValue(this, (aJ + H)) | |
331 | + | else if ((bo == k)) | |
330 | 332 | then 0 | |
331 | 333 | else throw("Wrong fee type") | |
332 | 334 | ||
333 | 335 | ||
334 | - | func | |
336 | + | func bp () = Address(fromBase58String(valueOrErrorMessage(getString(this, ac), "Can't get swopfi farming addr"))) | |
335 | 337 | ||
336 | 338 | ||
337 | - | func | |
338 | - | let | |
339 | - | let | |
340 | - | Address(fromBase58String( | |
339 | + | func bq (aT) = { | |
340 | + | let br = Address(fromBase58String(valueOrErrorMessage(getString(aT, "%s__factoryContract"), "Can't get WX factory contract addr"))) | |
341 | + | let bs = split(valueOrErrorMessage(getString(br, "%s__factoryConfig"), "Can't get WX factory cfg"), "__") | |
342 | + | Address(fromBase58String(bs[1])) | |
341 | 343 | } | |
342 | 344 | ||
343 | 345 | ||
344 | - | func | |
345 | - | let | |
346 | - | if ($isInstanceOf( | |
346 | + | func bt (aO) = { | |
347 | + | let aP = aO | |
348 | + | if ($isInstanceOf(aP, "ByteVector")) | |
347 | 349 | then { | |
348 | - | let | |
349 | - | toBase58String( | |
350 | + | let aQ = aP | |
351 | + | toBase58String(aQ) | |
350 | 352 | } | |
351 | - | else if ($isInstanceOf( | |
353 | + | else if ($isInstanceOf(aP, "Unit")) | |
352 | 354 | then { | |
353 | - | let | |
355 | + | let aR = aP | |
354 | 356 | "WAVES" | |
355 | 357 | } | |
356 | 358 | else throw("Not Asset id") | |
357 | 359 | } | |
358 | 360 | ||
359 | 361 | ||
360 | - | func | |
362 | + | func bu (aO) = if ((aO == "WAVES")) | |
361 | 363 | then unit | |
362 | - | else fromBase58String( | |
364 | + | else fromBase58String(aO) | |
363 | 365 | ||
364 | 366 | ||
365 | - | func | |
367 | + | func bv (aO) = if ((aO == "WAVES")) | |
366 | 368 | then 8 | |
367 | 369 | else { | |
368 | - | let | |
369 | - | if ($isInstanceOf( | |
370 | + | let aP = assetInfo(fromBase58String(aO)) | |
371 | + | if ($isInstanceOf(aP, "Asset")) | |
370 | 372 | then { | |
371 | - | let | |
372 | - | | |
373 | + | let bw = aP | |
374 | + | bw.decimals | |
373 | 375 | } | |
374 | 376 | else throw("Can't find asset") | |
375 | 377 | } | |
376 | 378 | ||
377 | 379 | ||
378 | - | func | |
380 | + | func bx (aO) = pow(10, 0, bv(aO), 0, 0, DOWN) | |
379 | 381 | ||
380 | 382 | ||
381 | - | func | |
382 | - | func | |
383 | - | let | |
384 | - | ( | |
383 | + | func by (bz) = { | |
384 | + | func bA (bB,aO) = { | |
385 | + | let bC = valueOrElse(getInteger(aq, (aO + U)), -1) | |
386 | + | (bB :+ bC) | |
385 | 387 | } | |
386 | 388 | ||
387 | - | let | |
388 | - | let | |
389 | - | let | |
390 | - | func | |
391 | - | then | |
392 | - | else | |
389 | + | let bD = bz | |
390 | + | let bE = size(bD) | |
391 | + | let bF = nil | |
392 | + | func bG (bH,bI) = if ((bI >= bE)) | |
393 | + | then bH | |
394 | + | else bA(bH, bD[bI]) | |
393 | 395 | ||
394 | - | func | |
395 | - | then | |
396 | + | func bJ (bH,bI) = if ((bI >= bE)) | |
397 | + | then bH | |
396 | 398 | else throw("List size exceeds 50") | |
397 | 399 | ||
398 | - | | |
400 | + | bJ(bG(bG(bG(bG(bG(bG(bG(bG(bG(bG(bG(bG(bG(bG(bG(bG(bG(bG(bG(bG(bG(bG(bG(bG(bG(bG(bG(bG(bG(bG(bG(bG(bG(bG(bG(bG(bG(bG(bG(bG(bG(bG(bG(bG(bG(bG(bG(bG(bG(bG(bF, 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) | |
399 | 401 | } | |
400 | 402 | ||
401 | 403 | ||
402 | - | func | |
403 | - | let | |
404 | - | let | |
405 | - | let | |
406 | - | let | |
407 | - | let | |
408 | - | let | |
409 | - | let | |
410 | - | let | |
411 | - | let | |
412 | - | let | |
413 | - | let | |
414 | - | if (if ((0 > | |
404 | + | func bK (bf) = { | |
405 | + | let aJ = valueOrErrorMessage(getString(this, (bf + R)), "Can't find pool addr by share id") | |
406 | + | let aT = Address(fromBase58String(aJ)) | |
407 | + | let bL = valueOrErrorMessage(getString(this, (P + aJ)), "Pool is not inited") | |
408 | + | let bM = bh(aT, bL) | |
409 | + | let aV = bM._1 | |
410 | + | let aW = bM._2 | |
411 | + | let bN = bM._3 | |
412 | + | let bO = bM._4 | |
413 | + | let bP = by([aV, aW]) | |
414 | + | let bQ = bP[0] | |
415 | + | let bR = bP[1] | |
416 | + | if (if ((0 > bQ)) | |
415 | 417 | then true | |
416 | - | else (0 > | |
418 | + | else (0 > bR)) | |
417 | 419 | then -1 | |
418 | 420 | else { | |
419 | - | let | |
420 | - | let | |
421 | - | let | |
422 | - | let | |
423 | - | let | |
424 | - | fraction(bV, | |
421 | + | let bS = bi(aT, bL, bf) | |
422 | + | let bT = pow(10, 0, bv(aV), 0, 0, DOWN) | |
423 | + | let bU = pow(10, 0, bv(aW), 0, 0, DOWN) | |
424 | + | let bV = pow(10, 0, bv(bf), 0, 0, DOWN) | |
425 | + | let bW = (fraction(bN, bQ, bT) + fraction(bO, bR, bU)) | |
426 | + | fraction(bW, bV, bS) | |
425 | 427 | } | |
426 | 428 | } | |
427 | 429 | ||
428 | 430 | ||
429 | - | func | |
430 | - | func | |
431 | + | func bX (bY) = { | |
432 | + | func bA (bB,bf) = (bB :+ bK(bf)) | |
431 | 433 | ||
432 | - | let | |
433 | - | let | |
434 | - | let | |
435 | - | func | |
436 | - | then | |
437 | - | else | |
434 | + | let bD = bY | |
435 | + | let bE = size(bD) | |
436 | + | let bF = nil | |
437 | + | func bG (bH,bI) = if ((bI >= bE)) | |
438 | + | then bH | |
439 | + | else bA(bH, bD[bI]) | |
438 | 440 | ||
439 | - | func | |
440 | - | then | |
441 | + | func bJ (bH,bI) = if ((bI >= bE)) | |
442 | + | then bH | |
441 | 443 | else throw("List size exceeds 20") | |
442 | 444 | ||
443 | - | | |
445 | + | bJ(bG(bG(bG(bG(bG(bG(bG(bG(bG(bG(bG(bG(bG(bG(bG(bG(bG(bG(bG(bG(bF, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20) | |
444 | 446 | } | |
445 | 447 | ||
446 | 448 | ||
447 | - | func | |
448 | - | let | |
449 | - | let | |
450 | - | let | |
451 | - | [StringEntry( | |
449 | + | func bZ (aV,aW,bf,ca) = { | |
450 | + | let cb = by([aV, aW]) | |
451 | + | let cc = bK(bf) | |
452 | + | let bP = ([toString(cb[0]), toString(cb[1]), toString(cc)] ++ ca) | |
453 | + | [StringEntry(T, makeString(bP, ","))] | |
452 | 454 | } | |
453 | 455 | ||
454 | 456 | ||
455 | - | func | |
457 | + | func cd (bL,aT,ce,aV,cf,aW,bc,bb) = if ((bL == a)) | |
456 | 458 | then { | |
457 | - | let | |
458 | - | let | |
459 | - | if ($isInstanceOf( | |
460 | - | then | |
461 | - | else throw(($getType( | |
459 | + | let cg = { | |
460 | + | let aX = invoke(aT, "callFunction", ["calcLPReplenishTwoTokensREADONLY", [toString(ce), toString(cf)]], nil) | |
461 | + | if ($isInstanceOf(aX, "List[Any]")) | |
462 | + | then aX | |
463 | + | else throw(($getType(aX) + " couldn't be cast to List[Any]")) | |
462 | 464 | } | |
463 | - | if (( | |
465 | + | if ((cg == cg)) | |
464 | 466 | then $Tuple5({ | |
465 | - | let | |
466 | - | if ($isInstanceOf( | |
467 | - | then | |
468 | - | else throw(($getType( | |
467 | + | let aX = cg[3] | |
468 | + | if ($isInstanceOf(aX, "Int")) | |
469 | + | then aX | |
470 | + | else throw(($getType(aX) + " couldn't be cast to Int")) | |
469 | 471 | }, { | |
470 | - | let | |
471 | - | if ($isInstanceOf( | |
472 | - | then | |
473 | - | else throw(($getType( | |
472 | + | let aX = cg[4] | |
473 | + | if ($isInstanceOf(aX, "Int")) | |
474 | + | then aX | |
475 | + | else throw(($getType(aX) + " couldn't be cast to Int")) | |
474 | 476 | }, { | |
475 | - | let | |
476 | - | if ($isInstanceOf( | |
477 | - | then | |
478 | - | else throw(($getType( | |
479 | - | }, | |
480 | - | let | |
481 | - | if ($isInstanceOf( | |
482 | - | then | |
483 | - | else throw(($getType( | |
477 | + | let aX = cg[1] | |
478 | + | if ($isInstanceOf(aX, "Int")) | |
479 | + | then aX | |
480 | + | else throw(($getType(aX) + " couldn't be cast to Int")) | |
481 | + | }, bt(cg[2]), { | |
482 | + | let aX = cg[0] | |
483 | + | if ($isInstanceOf(aX, "Int")) | |
484 | + | then aX | |
485 | + | else throw(($getType(aX) + " couldn't be cast to Int")) | |
484 | 486 | }) | |
485 | 487 | else throw("Strict value is not equal to itself.") | |
486 | 488 | } | |
487 | - | else if (( | |
489 | + | else if ((bL == b)) | |
488 | 490 | then { | |
489 | - | let | |
490 | - | let | |
491 | - | if ($isInstanceOf( | |
492 | - | then | |
493 | - | else throw(($getType( | |
491 | + | let ch = $Tuple2(split({ | |
492 | + | let aX = invoke(aT, "evaluatePutByAmountAssetREADONLY", [ce], nil) | |
493 | + | if ($isInstanceOf(aX, "String")) | |
494 | + | then aX | |
495 | + | else throw(($getType(aX) + " couldn't be cast to String")) | |
494 | 496 | }, "__"), split({ | |
495 | - | let | |
496 | - | if ($isInstanceOf( | |
497 | - | then | |
498 | - | else throw(($getType( | |
497 | + | let aX = invoke(aT, "evaluatePutByPriceAssetREADONLY", [cf], nil) | |
498 | + | if ($isInstanceOf(aX, "String")) | |
499 | + | then aX | |
500 | + | else throw(($getType(aX) + " couldn't be cast to String")) | |
499 | 501 | }, "__")) | |
500 | - | if (( | |
502 | + | if ((ch == ch)) | |
501 | 503 | then { | |
502 | - | let | |
503 | - | let | |
504 | - | let | |
505 | - | let | |
506 | - | if (( | |
504 | + | let ci = ch._2 | |
505 | + | let cj = ch._1 | |
506 | + | let ck = parseIntValue(cj[1]) | |
507 | + | let cl = parseIntValue(ci[1]) | |
508 | + | if ((cl > ck)) | |
507 | 509 | then { | |
508 | - | let | |
509 | - | $Tuple5( | |
510 | + | let cm = parseIntValue(cj[8]) | |
511 | + | $Tuple5(ce, cm, (cf - cm), aW, cl) | |
510 | 512 | } | |
511 | 513 | else { | |
512 | - | let | |
513 | - | $Tuple5( | |
514 | + | let cm = parseIntValue(ci[7]) | |
515 | + | $Tuple5(cm, cf, (ce - cm), aV, ck) | |
514 | 516 | } | |
515 | 517 | } | |
516 | 518 | else throw("Strict value is not equal to itself.") | |
517 | 519 | } | |
518 | - | else | |
520 | + | else az() | |
519 | 521 | ||
520 | 522 | ||
521 | - | func | |
522 | - | let | |
523 | - | if (( | |
524 | - | then invoke( | |
525 | - | else if (( | |
526 | - | then invoke( | |
527 | - | else | |
523 | + | func cn (aT,bL,ce,aV,cf,aW) = { | |
524 | + | let co = [AttachedPayment(bu(aV), ce), AttachedPayment(bu(aW), cf)] | |
525 | + | if ((bL == a)) | |
526 | + | then invoke(aT, "callFunction", ["replenishWithTwoTokens", ["false", "0"]], co) | |
527 | + | else if ((bL == b)) | |
528 | + | then invoke(aT, "put", [1000000, false], co) | |
529 | + | else az() | |
528 | 530 | } | |
529 | 531 | ||
530 | 532 | ||
531 | - | func co (aS,bK,cl,cp) = { | |
532 | - | let cn = [AttachedPayment(bt(cp), cl)] | |
533 | - | if ((bK == a)) | |
534 | - | then invoke(aS, "callFunction", ["replenishWithOneToken", ["0", "false", "0"]], cn) | |
535 | - | else if ((bK == b)) | |
536 | - | then invoke(aS, "putOneTkn", [0, false], cn) | |
537 | - | else ay() | |
533 | + | func cp (aT,bL,cm,cq) = { | |
534 | + | let co = [AttachedPayment(bu(cq), cm)] | |
535 | + | if ((bL == a)) | |
536 | + | then invoke(aT, "callFunction", ["replenishWithOneToken", ["0", "false", "0"]], co) | |
537 | + | else if ((bL == b)) | |
538 | + | then { | |
539 | + | let cr = if ((valueOrElse(getString(this, (toString(aT) + Q)), "cpmm") == d)) | |
540 | + | then "putOneTknV2" | |
541 | + | else "putOneTkn" | |
542 | + | invoke(aT, cr, [0, false], co) | |
543 | + | } | |
544 | + | else az() | |
538 | 545 | } | |
539 | 546 | ||
540 | 547 | ||
541 | - | func | |
542 | - | let | |
543 | - | if (( | |
544 | - | then invoke( | |
545 | - | else if (( | |
546 | - | then invoke( | |
547 | - | else | |
548 | + | func cs (aJ,bL,bf,ct) = { | |
549 | + | let co = [AttachedPayment(fromBase58String(bf), ct)] | |
550 | + | if ((bL == a)) | |
551 | + | then invoke(bp(), "lockShareTokens", [aJ, 0], co) | |
552 | + | else if ((bL == b)) | |
553 | + | then invoke(bq(addressFromStringValue(aJ)), "stake", nil, co) | |
554 | + | else az() | |
548 | 555 | } | |
549 | 556 | ||
550 | 557 | ||
551 | - | func | |
552 | - | let | |
553 | - | then $Tuple3( | |
554 | - | else if (( | |
555 | - | then $Tuple3( | |
556 | - | else | |
557 | - | let | |
558 | - | let | |
559 | - | let | |
560 | - | let | |
561 | - | if (( | |
562 | - | then | |
558 | + | func cu (aJ,bL,bf,ct) = { | |
559 | + | let cv = if ((bL == a)) | |
560 | + | then $Tuple3(bp(), "withdrawShareTokens", [aJ, ct]) | |
561 | + | else if ((bL == b)) | |
562 | + | then $Tuple3(bq(Address(fromBase58String(aJ))), "unstake", [bf, ct]) | |
563 | + | else az() | |
564 | + | let cw = cv._1 | |
565 | + | let cx = cv._2 | |
566 | + | let cy = cv._3 | |
567 | + | let cz = invoke(cw, cx, cy, nil) | |
568 | + | if ((cz == cz)) | |
569 | + | then ct | |
563 | 570 | else throw("Strict value is not equal to itself.") | |
564 | 571 | } | |
565 | 572 | ||
566 | 573 | ||
567 | - | func | |
568 | - | let | |
569 | - | let | |
570 | - | let | |
571 | - | let | |
572 | - | let | |
574 | + | func cA (aJ,cB,cC,bc,bb,cD,cE) = { | |
575 | + | let aT = Address(fromBase58String(aJ)) | |
576 | + | let cF = 1000000 | |
577 | + | let cG = getIntegerValue(aT, v) | |
578 | + | let cH = fraction(cD, cF, (cF - cG), CEILING) | |
579 | + | let cI = if ((cE == cB)) | |
573 | 580 | then { | |
574 | - | let | |
575 | - | $Tuple2( | |
581 | + | let cJ = fraction(cH, bb, (bc - cH), CEILING) | |
582 | + | $Tuple2(cJ, cC) | |
576 | 583 | } | |
577 | 584 | else { | |
578 | - | let | |
579 | - | $Tuple2( | |
585 | + | let cJ = fraction(cH, bc, (bb - cH), CEILING) | |
586 | + | $Tuple2(cJ, cB) | |
580 | 587 | } | |
581 | - | let | |
582 | - | let | |
583 | - | $Tuple2( | |
588 | + | let cJ = cI._1 | |
589 | + | let cK = cI._2 | |
590 | + | $Tuple2(cK, cJ) | |
584 | 591 | } | |
585 | 592 | ||
586 | 593 | ||
587 | - | func | |
588 | - | let | |
589 | - | let | |
590 | - | let | |
591 | - | let | |
592 | - | let | |
593 | - | if ($isInstanceOf( | |
594 | + | func cL (aJ) = { | |
595 | + | let aT = addressFromStringValue(aJ) | |
596 | + | let br = addressFromStringValue(valueOrErrorMessage(getString(aT, "%s__factoryContract"), "Can't get WX factory contract addr")) | |
597 | + | let cM = value(getInteger(ar, "%s__poolFee")) | |
598 | + | let cN = value(getInteger(ar, "%s__protocolFee")) | |
599 | + | let aP = invoke(br, "getSwapFeeREADONLY", [toString(aT)], nil) | |
600 | + | if ($isInstanceOf(aP, "(Int, Int)")) | |
594 | 601 | then { | |
595 | - | let | |
596 | - | $Tuple2( | |
602 | + | let cO = aP | |
603 | + | $Tuple2(cO._1, cO._2) | |
597 | 604 | } | |
598 | - | else $Tuple2( | |
605 | + | else $Tuple2(cM, cN) | |
599 | 606 | } | |
600 | 607 | ||
601 | 608 | ||
602 | - | func | |
603 | - | let | |
604 | - | let | |
605 | - | let | |
606 | - | let | |
607 | - | let | |
609 | + | func cP (aJ,cB,cC,bc,bb,cD,cE) = { | |
610 | + | let cQ = cL(aJ) | |
611 | + | let cR = cQ._1 | |
612 | + | let cS = cQ._2 | |
613 | + | let cT = toBigInt(100000000) | |
614 | + | let cU = if ((cE == cB)) | |
608 | 615 | then { | |
609 | - | let | |
610 | - | $Tuple2( | |
616 | + | let cJ = fraction(cD, bb, (bc - cD)) | |
617 | + | $Tuple2(cJ, cC) | |
611 | 618 | } | |
612 | 619 | else { | |
613 | - | let | |
614 | - | $Tuple2( | |
620 | + | let cJ = fraction(cD, bc, (bb - cD)) | |
621 | + | $Tuple2(cJ, cB) | |
615 | 622 | } | |
616 | - | let | |
617 | - | let | |
618 | - | let | |
619 | - | $Tuple2( | |
623 | + | let cJ = cU._1 | |
624 | + | let cK = cU._2 | |
625 | + | let cV = toInt(fraction(toBigInt(cJ), cT, (cT - toBigInt((cS + cR))), CEILING)) | |
626 | + | $Tuple2(cK, cV) | |
620 | 627 | } | |
621 | 628 | ||
622 | 629 | ||
623 | - | func | |
624 | - | let | |
625 | - | if (if (( | |
630 | + | func cW (bL,aJ,cB,cC,bc,bb,cD,cE) = { | |
631 | + | let cX = valueOrElse(getString(this, (aJ + aa)), "") | |
632 | + | if (if ((bL == a)) | |
626 | 633 | then true | |
627 | - | else ( | |
634 | + | else (cX != "")) | |
628 | 635 | then { | |
629 | - | let | |
630 | - | then $Tuple3(bb, | |
636 | + | let cY = if ((cX == "")) | |
637 | + | then $Tuple3(bc, bb, aJ) | |
631 | 638 | else { | |
632 | - | let | |
633 | - | let | |
634 | - | let | |
635 | - | $Tuple3( | |
639 | + | let cZ = aS(addressFromStringValue(cX)) | |
640 | + | let da = cZ._1 | |
641 | + | let db = cZ._2 | |
642 | + | $Tuple3(da, db, cX) | |
636 | 643 | } | |
637 | - | let | |
638 | - | let | |
639 | - | let | |
640 | - | let | |
641 | - | let | |
642 | - | let | |
643 | - | invoke(addressFromStringValue( | |
644 | + | let dc = cY._1 | |
645 | + | let dd = cY._2 | |
646 | + | let de = cY._3 | |
647 | + | let df = cA(de, cB, cC, dc, dd, cD, cE) | |
648 | + | let cK = df._1 | |
649 | + | let cJ = df._2 | |
650 | + | invoke(addressFromStringValue(de), "callFunction", ["exchange", [toString(cD)]], [AttachedPayment(bu(cK), cJ)]) | |
644 | 651 | } | |
645 | - | else if (( | |
652 | + | else if ((bL == b)) | |
646 | 653 | then { | |
647 | - | let | |
648 | - | let | |
649 | - | let | |
650 | - | invoke( | |
654 | + | let dg = cP(aJ, cB, cC, bc, bb, cD, cE) | |
655 | + | let cK = dg._1 | |
656 | + | let cJ = dg._2 | |
657 | + | invoke(ar, "swap", [cD, cE, toString(this)], [AttachedPayment(bu(cK), cJ)]) | |
651 | 658 | } | |
652 | - | else | |
659 | + | else az() | |
653 | 660 | } | |
654 | 661 | ||
655 | 662 | ||
656 | - | func | |
657 | - | let | |
663 | + | func dh (aT,bL,bf,di) = { | |
664 | + | let dj = if ((bL == a)) | |
658 | 665 | then { | |
659 | - | let | |
660 | - | let | |
661 | - | if ($isInstanceOf( | |
662 | - | then | |
663 | - | else throw(($getType( | |
666 | + | let cz = { | |
667 | + | let aX = invoke(aT, "callFunction", ["withdrawREADONLY", [toString(di)]], nil) | |
668 | + | if ($isInstanceOf(aX, "List[Any]")) | |
669 | + | then aX | |
670 | + | else throw(($getType(aX) + " couldn't be cast to List[Any]")) | |
664 | 671 | } | |
665 | - | if (( | |
672 | + | if ((cz == cz)) | |
666 | 673 | then $Tuple2({ | |
667 | - | let | |
668 | - | if ($isInstanceOf( | |
669 | - | then | |
670 | - | else throw(($getType( | |
674 | + | let aX = cz[0] | |
675 | + | if ($isInstanceOf(aX, "Int")) | |
676 | + | then aX | |
677 | + | else throw(($getType(aX) + " couldn't be cast to Int")) | |
671 | 678 | }, { | |
672 | - | let | |
673 | - | if ($isInstanceOf( | |
674 | - | then | |
675 | - | else throw(($getType( | |
679 | + | let aX = cz[1] | |
680 | + | if ($isInstanceOf(aX, "Int")) | |
681 | + | then aX | |
682 | + | else throw(($getType(aX) + " couldn't be cast to Int")) | |
676 | 683 | }) | |
677 | 684 | else throw("Strict value is not equal to itself.") | |
678 | 685 | } | |
679 | - | else if (( | |
686 | + | else if ((bL == b)) | |
680 | 687 | then { | |
681 | - | let | |
682 | - | let | |
683 | - | if ($isInstanceOf( | |
684 | - | then | |
685 | - | else throw(($getType( | |
688 | + | let cz = split({ | |
689 | + | let aX = invoke(aT, "evaluateGetREADONLY", [bf, di], nil) | |
690 | + | if ($isInstanceOf(aX, "String")) | |
691 | + | then aX | |
692 | + | else throw(($getType(aX) + " couldn't be cast to String")) | |
686 | 693 | }, "__") | |
687 | - | if (( | |
688 | - | then $Tuple2(parseIntValue( | |
694 | + | if ((cz == cz)) | |
695 | + | then $Tuple2(parseIntValue(cz[1]), parseIntValue(cz[2])) | |
689 | 696 | else throw("Strict value is not equal to itself.") | |
690 | 697 | } | |
691 | - | else | |
692 | - | let | |
693 | - | let | |
694 | - | $Tuple2( | |
698 | + | else az() | |
699 | + | let dk = dj._1 | |
700 | + | let dl = dj._2 | |
701 | + | $Tuple2(dk, dl) | |
695 | 702 | } | |
696 | 703 | ||
697 | 704 | ||
698 | - | func | |
705 | + | func dm (bL,aJ) = if ((bL == a)) | |
699 | 706 | then { | |
700 | - | let | |
701 | - | if (( | |
707 | + | let dn = aN(as) | |
708 | + | if ((dn == dn)) | |
702 | 709 | then { | |
703 | - | let | |
704 | - | if (( | |
710 | + | let cz = invoke(bp(), "claim", [aJ], nil) | |
711 | + | if ((cz == cz)) | |
705 | 712 | then { | |
706 | - | let | |
707 | - | $Tuple2(( | |
713 | + | let do = aN(as) | |
714 | + | $Tuple2((do - dn), as) | |
708 | 715 | } | |
709 | 716 | else throw("Strict value is not equal to itself.") | |
710 | 717 | } | |
711 | 718 | else throw("Strict value is not equal to itself.") | |
712 | 719 | } | |
713 | - | else if (( | |
720 | + | else if ((bL == b)) | |
714 | 721 | then { | |
715 | - | let | |
716 | - | let | |
717 | - | let | |
718 | - | let | |
719 | - | let | |
720 | - | let | |
721 | - | let | |
722 | - | if (( | |
722 | + | let dp = bd(addressFromStringValue(aJ)) | |
723 | + | let aV = dp._1 | |
724 | + | let aW = dp._2 | |
725 | + | let dq = dp._3 | |
726 | + | let dr = dp._4 | |
727 | + | let ds = dp._5 | |
728 | + | let dn = aN(at) | |
729 | + | if ((dn == dn)) | |
723 | 730 | then { | |
724 | - | let | |
725 | - | if (( | |
731 | + | let cz = invoke(bq(addressFromStringValue(aJ)), "claimWx", [ds], nil) | |
732 | + | if ((cz == cz)) | |
726 | 733 | then { | |
727 | - | let | |
728 | - | $Tuple2(( | |
734 | + | let do = aN(at) | |
735 | + | $Tuple2((do - dn), at) | |
729 | 736 | } | |
730 | 737 | else throw("Strict value is not equal to itself.") | |
731 | 738 | } | |
732 | 739 | else throw("Strict value is not equal to itself.") | |
733 | 740 | } | |
734 | - | else | |
741 | + | else az() | |
735 | 742 | ||
736 | 743 | ||
737 | - | func | |
738 | - | let | |
739 | - | if (( | |
744 | + | func dt (bL,aJ,bo,ce,aV,cf,aW,bc,bb,du) = { | |
745 | + | let dv = aN(fromBase58String(du)) | |
746 | + | if ((dv == dv)) | |
740 | 747 | then { | |
741 | - | let | |
742 | - | let | |
743 | - | then ( | |
748 | + | let aT = addressFromStringValue(aJ) | |
749 | + | let dw = if (if ((ce > 0)) | |
750 | + | then (cf > 0) | |
744 | 751 | else false) | |
745 | 752 | then { | |
746 | - | let | |
747 | - | let | |
748 | - | let | |
749 | - | let | |
750 | - | let | |
751 | - | let | |
752 | - | if (( | |
753 | - | then $Tuple2( | |
753 | + | let dx = cd(bL, aT, ce, aV, cf, aW, bc, bb) | |
754 | + | let dy = dx._1 | |
755 | + | let dz = dx._2 | |
756 | + | let dA = dx._3 | |
757 | + | let dB = dx._4 | |
758 | + | let cz = cn(aT, bL, dy, aV, dz, aW) | |
759 | + | if ((cz == cz)) | |
760 | + | then $Tuple2(dA, dB) | |
754 | 761 | else throw("Strict value is not equal to itself.") | |
755 | 762 | } | |
756 | - | else if (( | |
757 | - | then $Tuple2( | |
758 | - | else if (( | |
759 | - | then $Tuple2( | |
763 | + | else if ((ce > 0)) | |
764 | + | then $Tuple2(ce, aV) | |
765 | + | else if ((cf > 0)) | |
766 | + | then $Tuple2(cf, aW) | |
760 | 767 | else throw("pmts must be > 0") | |
761 | - | let | |
762 | - | let | |
763 | - | let | |
764 | - | then | |
768 | + | let dA = dw._1 | |
769 | + | let dB = dw._2 | |
770 | + | let cz = if ((dA > 0)) | |
771 | + | then cp(aT, bL, dA, dB) | |
765 | 772 | else nil | |
766 | - | if (( | |
773 | + | if ((cz == cz)) | |
767 | 774 | then { | |
768 | - | let | |
769 | - | let | |
770 | - | let | |
771 | - | let | |
772 | - | if ((0 >= | |
775 | + | let dC = aN(fromBase58String(du)) | |
776 | + | let dD = (dC - dv) | |
777 | + | let dE = fraction(dD, bn(aJ, bo), o) | |
778 | + | let dF = (dD - dE) | |
779 | + | if ((0 >= dF)) | |
773 | 780 | then throw("amount of staked sharetokens must be > 0") | |
774 | 781 | else { | |
775 | - | let | |
776 | - | if (( | |
777 | - | then $Tuple2( | |
782 | + | let dG = cs(aJ, bL, du, dF) | |
783 | + | if ((dG == dG)) | |
784 | + | then $Tuple2(dF, dE) | |
778 | 785 | else throw("Strict value is not equal to itself.") | |
779 | 786 | } | |
780 | 787 | } | |
784 | 791 | } | |
785 | 792 | ||
786 | 793 | ||
787 | - | func | |
788 | - | let | |
789 | - | let | |
790 | - | let | |
791 | - | then $Tuple2(getIntegerValue(this, ( | |
792 | - | else $Tuple2(getIntegerValue(this, ( | |
793 | - | let | |
794 | - | let | |
795 | - | [IntegerEntry(( | |
794 | + | func dH (aJ,bm,dI,dE,dJ,bf,aK,dK) = { | |
795 | + | let dL = bj(aJ) | |
796 | + | let dM = bk(aJ) | |
797 | + | let dN = if (dK) | |
798 | + | then $Tuple2(getIntegerValue(this, (aJ + E)), (dM + dI)) | |
799 | + | else $Tuple2(getIntegerValue(this, (aJ + F)), dM) | |
800 | + | let dO = dN._1 | |
801 | + | let dP = dN._2 | |
802 | + | [IntegerEntry((aJ + C), (dL + dI)), IntegerEntry((aJ + D), dP), IntegerEntry((((((aJ + "_") + bm) + "_") + toString(dJ)) + w), dI), IntegerEntry((((((aJ + "_") + bm) + "_") + toString(dJ)) + B), dO), StringEntry((((bm + "_") + toString(dJ)) + x), aJ), IntegerEntry((bm + A), dJ), ScriptTransfer(ao, dE, fromBase58String(bf))] | |
796 | 803 | } | |
797 | 804 | ||
798 | 805 | ||
799 | - | func | |
806 | + | func dQ (bB,dR) = (bB :+ parseIntValue(dR)) | |
800 | 807 | ||
801 | 808 | ||
802 | - | func | |
803 | - | let | |
804 | - | let | |
805 | - | let | |
806 | - | if (( | |
809 | + | func dS (dT,dU) = { | |
810 | + | let dV = addressFromStringValue(dT[1]) | |
811 | + | let dW = split(dT[2], "|") | |
812 | + | let dX = aN(bu(dU)) | |
813 | + | if ((dX == dX)) | |
807 | 814 | then { | |
808 | - | let | |
809 | - | let | |
810 | - | let | |
811 | - | if (( | |
812 | - | then ( | |
815 | + | let cm = [AttachedPayment(bu(dW[0]), parseIntValue(dW[1]))] | |
816 | + | let dY = dT[3] | |
817 | + | let cz = invoke(dV, "callFunction", ["exchange", [dY]], cm) | |
818 | + | if ((cz == cz)) | |
819 | + | then (aN(bu(dU)) - dX) | |
813 | 820 | else throw("Strict value is not equal to itself.") | |
814 | 821 | } | |
815 | 822 | else throw("Strict value is not equal to itself.") | |
816 | 823 | } | |
817 | 824 | ||
818 | 825 | ||
819 | - | func | |
820 | - | let | |
821 | - | let | |
822 | - | if (( | |
826 | + | func dZ (dT,dU) = { | |
827 | + | let dV = addressFromStringValue(dT[1]) | |
828 | + | let dX = aN(bu(dU)) | |
829 | + | if ((dX == dX)) | |
823 | 830 | then { | |
824 | - | let | |
825 | - | let | |
826 | - | [AttachedPayment(fromBase58String( | |
831 | + | let cm = { | |
832 | + | let dW = split(dT[2], "|") | |
833 | + | [AttachedPayment(fromBase58String(dW[0]), parseIntValue(dW[1]))] | |
827 | 834 | } | |
828 | - | let | |
829 | - | let | |
830 | - | let | |
831 | - | let | |
832 | - | let | |
833 | - | let | |
834 | - | let | |
835 | - | let | |
836 | - | func | |
837 | - | then | |
838 | - | else | |
835 | + | let ea = { | |
836 | + | let eb = split(dT[3], "|") | |
837 | + | let ec = split(eb[0], ",") | |
838 | + | let ed = split(eb[1], ",") | |
839 | + | let ee = { | |
840 | + | let bD = split(eb[2], ",") | |
841 | + | let bE = size(bD) | |
842 | + | let bF = nil | |
843 | + | func bG (bH,bI) = if ((bI >= bE)) | |
844 | + | then bH | |
845 | + | else dQ(bH, bD[bI]) | |
839 | 846 | ||
840 | - | func | |
841 | - | then | |
847 | + | func bJ (bH,bI) = if ((bI >= bE)) | |
848 | + | then bH | |
842 | 849 | else throw("List size exceeds 3") | |
843 | 850 | ||
844 | - | | |
851 | + | bJ(bG(bG(bG(bF, 0), 1), 2), 3) | |
845 | 852 | } | |
846 | - | let | |
847 | - | let | |
848 | - | let | |
849 | - | let | |
850 | - | func | |
851 | - | then | |
852 | - | else | |
853 | + | let ef = { | |
854 | + | let bD = split(eb[3], ",") | |
855 | + | let bE = size(bD) | |
856 | + | let bF = nil | |
857 | + | func eg (bH,bI) = if ((bI >= bE)) | |
858 | + | then bH | |
859 | + | else dQ(bH, bD[bI]) | |
853 | 860 | ||
854 | - | func | |
855 | - | then | |
861 | + | func eh (bH,bI) = if ((bI >= bE)) | |
862 | + | then bH | |
856 | 863 | else throw("List size exceeds 3") | |
857 | 864 | ||
858 | - | | |
865 | + | eh(eg(eg(eg(bF, 0), 1), 2), 3) | |
859 | 866 | } | |
860 | - | let | |
861 | - | let | |
862 | - | [ | |
867 | + | let ei = split(eb[4], ",") | |
868 | + | let dY = parseIntValue(eb[5]) | |
869 | + | [ec, ed, ee, ef, ei, dY] | |
863 | 870 | } | |
864 | - | let | |
865 | - | if (( | |
866 | - | then ( | |
871 | + | let cz = invoke(dV, "routingTrade", ea, cm) | |
872 | + | if ((cz == cz)) | |
873 | + | then (aN(bu(dU)) - dX) | |
867 | 874 | else throw("Strict value is not equal to itself.") | |
868 | 875 | } | |
869 | 876 | else throw("Strict value is not equal to itself.") | |
870 | 877 | } | |
871 | 878 | ||
872 | 879 | ||
873 | - | func | |
874 | - | let | |
875 | - | let | |
876 | - | let | |
877 | - | let | |
878 | - | let | |
879 | - | let | |
880 | - | let | |
881 | - | if (if (( | |
882 | - | then ( | |
880 | + | func ej (aJ,bL,ek,el) = { | |
881 | + | let aT = Address(fromBase58String(aJ)) | |
882 | + | let em = bh(aT, bL) | |
883 | + | let en = em._1 | |
884 | + | let eo = em._2 | |
885 | + | let bc = em._3 | |
886 | + | let bb = em._4 | |
887 | + | let bf = em._5 | |
888 | + | if (if ((ek != en)) | |
889 | + | then (ek != eo) | |
883 | 890 | else false) | |
884 | 891 | then throw("Wrong asset") | |
885 | 892 | else { | |
886 | - | let | |
887 | - | if (( | |
888 | - | then [ScriptTransfer( | |
893 | + | let ep = bj(aJ) | |
894 | + | if ((ep == 0)) | |
895 | + | then [ScriptTransfer(ao, el, fromBase58String(ek))] | |
889 | 896 | else { | |
890 | - | let | |
891 | - | let | |
892 | - | let | |
893 | - | let | |
894 | - | let | |
895 | - | let | |
896 | - | let | |
897 | - | let | |
898 | - | then $Tuple2(( | |
899 | - | else $Tuple2(0, ( | |
900 | - | let | |
901 | - | let | |
902 | - | let | |
903 | - | let | |
904 | - | let | |
905 | - | let | |
906 | - | let | |
907 | - | let | |
908 | - | let | |
909 | - | let | |
910 | - | then ( | |
897 | + | let eq = bk(aJ) | |
898 | + | let er = fraction(eq, l, ep) | |
899 | + | let es = fraction(el, er, l) | |
900 | + | let et = (el - es) | |
901 | + | let eu = fraction(es, bn(aJ, f), o) | |
902 | + | let ev = fraction(et, bn(aJ, e), o) | |
903 | + | let ew = (eu + ev) | |
904 | + | let ex = if ((ek == en)) | |
905 | + | then $Tuple2((el - ew), 0) | |
906 | + | else $Tuple2(0, (el - ew)) | |
907 | + | let ce = ex._1 | |
908 | + | let cf = ex._2 | |
909 | + | let ey = dt(bL, aJ, k, ce, en, cf, eo, bc, bb, bf) | |
910 | + | let dI = ey._1 | |
911 | + | let ez = ey._2 | |
912 | + | let eA = valueOrElse(getInteger(this, (aJ + E)), 0) | |
913 | + | let eB = valueOrElse(getInteger(this, (aJ + F)), 0) | |
914 | + | let eC = fraction(dI, er, l) | |
915 | + | let eD = (dI - eC) | |
916 | + | let eE = if ((eq > 0)) | |
917 | + | then (eA + fraction(eC, m, eq)) | |
911 | 918 | else 0 | |
912 | - | let | |
913 | - | then ( | |
919 | + | let eF = if (((ep - eq) > 0)) | |
920 | + | then (eB + fraction(eD, m, (ep - eq))) | |
914 | 921 | else 0 | |
915 | - | ([IntegerEntry(( | |
922 | + | ([IntegerEntry((aJ + E), eE), IntegerEntry((aJ + F), eF), IntegerEntry((aJ + C), (ep + dI)), IntegerEntry((aJ + D), (eq + eC)), ScriptTransfer(ao, ew, bu(ek))] ++ bZ(en, eo, bf, nil)) | |
916 | 923 | } | |
917 | 924 | } | |
918 | 925 | } | |
919 | 926 | ||
920 | 927 | ||
921 | - | func | |
922 | - | let | |
923 | - | let | |
924 | - | let | |
925 | - | then getIntegerValue(this, ( | |
926 | - | else getIntegerValue(this, ( | |
927 | - | ( | |
928 | + | func eG (bm,aJ,eH,eI) = { | |
929 | + | let eJ = valueOrErrorMessage(getInteger(this, (((((aJ + "_") + bm) + "_") + eH) + w)), "Unknown position") | |
930 | + | let eK = getIntegerValue(this, (((((aJ + "_") + bm) + "_") + eH) + B)) | |
931 | + | let eL = if (eI) | |
932 | + | then getIntegerValue(this, (aJ + E)) | |
933 | + | else getIntegerValue(this, (aJ + F)) | |
934 | + | (eJ + fraction(eJ, (eL - eK), m)) | |
928 | 935 | } | |
929 | 936 | ||
930 | 937 | ||
931 | - | func | |
932 | - | let | |
938 | + | func eM (aJ,eN,eO,eP) = { | |
939 | + | let bo = if (eN) | |
933 | 940 | then h | |
934 | 941 | else g | |
935 | - | if ( | |
936 | - | then fraction( | |
942 | + | if (eO) | |
943 | + | then fraction(eP, bn(aJ, bo), o) | |
937 | 944 | else 0 | |
938 | 945 | } | |
939 | 946 | ||
940 | 947 | ||
941 | - | func | |
942 | - | let | |
943 | - | let | |
944 | - | let | |
945 | - | let | |
946 | - | let | |
947 | - | let | |
948 | - | let | |
949 | - | let | |
950 | - | let | |
951 | - | let | |
952 | - | let | |
953 | - | let | |
954 | - | let | |
955 | - | let | |
956 | - | let | |
957 | - | let | |
958 | - | let | |
959 | - | let | |
960 | - | let | |
961 | - | if (( | |
948 | + | func eQ (bm,aJ,eH,eO) = { | |
949 | + | let eJ = valueOrErrorMessage(getInteger(this, (((((aJ + "_") + bm) + "_") + eH) + w)), "Unknown position") | |
950 | + | let eN = (valueOrElse(getInteger(this, (((((aJ + "_") + bm) + "_") + eH) + y)), 0) > 0) | |
951 | + | let di = eG(bm, aJ, eH, eN) | |
952 | + | let eR = bj(aJ) | |
953 | + | let eS = bk(aJ) | |
954 | + | let eT = Address(fromBase58String(bm)) | |
955 | + | let aT = Address(fromBase58String(aJ)) | |
956 | + | let bL = valueOrErrorMessage(getString(this, (P + aJ)), "Unknown pool") | |
957 | + | let eU = bh(aT, bL) | |
958 | + | let eV = eU._1 | |
959 | + | let eW = eU._2 | |
960 | + | let bc = eU._3 | |
961 | + | let bb = eU._4 | |
962 | + | let bf = eU._5 | |
963 | + | let eX = $Tuple2(bu(eV), bu(eW)) | |
964 | + | let eY = eX._1 | |
965 | + | let eZ = eX._2 | |
966 | + | let fa = eM(aJ, eN, eO, di) | |
967 | + | let fb = aN(eY) | |
968 | + | if ((fb == fb)) | |
962 | 969 | then { | |
963 | - | let | |
964 | - | if (( | |
970 | + | let fc = aN(eZ) | |
971 | + | if ((fc == fc)) | |
965 | 972 | then { | |
966 | - | let | |
973 | + | let cz = if ((bL == a)) | |
967 | 974 | then { | |
968 | - | let | |
969 | - | if (( | |
970 | - | then invoke( | |
975 | + | let cz = cu(aJ, bL, bf, fa) | |
976 | + | if ((cz == cz)) | |
977 | + | then invoke(aT, "callFunction", ["withdraw", [toString(di)]], nil) | |
971 | 978 | else throw("Strict value is not equal to itself.") | |
972 | 979 | } | |
973 | - | else if (( | |
980 | + | else if ((bL == b)) | |
974 | 981 | then { | |
975 | - | let | |
976 | - | if (( | |
977 | - | then invoke( | |
982 | + | let cz = cu(aJ, bL, bf, (di + fa)) | |
983 | + | if ((cz == cz)) | |
984 | + | then invoke(aT, "get", nil, [AttachedPayment(bu(bf), di)]) | |
978 | 985 | else throw("Strict value is not equal to itself.") | |
979 | 986 | } | |
980 | - | else | |
981 | - | if (( | |
987 | + | else az() | |
988 | + | if ((cz == cz)) | |
982 | 989 | then { | |
983 | - | let | |
984 | - | if (( | |
990 | + | let fd = aN(eY) | |
991 | + | if ((fd == fd)) | |
985 | 992 | then { | |
986 | - | let | |
987 | - | if (( | |
993 | + | let fe = aN(eZ) | |
994 | + | if ((fe == fe)) | |
988 | 995 | then { | |
989 | - | let | |
990 | - | let | |
991 | - | let | |
992 | - | let | |
996 | + | let ff = $Tuple2((fd - fb), (fe - fc)) | |
997 | + | let fg = ff._1 | |
998 | + | let fh = ff._2 | |
999 | + | let fi = if (eN) | |
993 | 1000 | then { | |
994 | - | let | |
995 | - | let | |
996 | - | let | |
997 | - | if ($isInstanceOf( | |
998 | - | then | |
999 | - | else throw(($getType( | |
1001 | + | let fj = getStringValue(this, (((((aJ + "_") + bm) + "_") + eH) + z)) | |
1002 | + | let fk = { | |
1003 | + | let aX = invoke(aA(), "getAssetDebt", [false, ((bm + "_") + eH), fj], nil) | |
1004 | + | if ($isInstanceOf(aX, "Int")) | |
1005 | + | then aX | |
1006 | + | else throw(($getType(aX) + " couldn't be cast to Int")) | |
1000 | 1007 | } | |
1001 | - | if (( | |
1008 | + | if ((fk == fk)) | |
1002 | 1009 | then { | |
1003 | - | let | |
1004 | - | then ( | |
1010 | + | let fl = if (if ((fj == eV)) | |
1011 | + | then (fk > fg) | |
1005 | 1012 | else false) | |
1006 | - | then ( | |
1007 | - | else if (if (( | |
1008 | - | then ( | |
1013 | + | then (fk - fg) | |
1014 | + | else if (if ((fj == eW)) | |
1015 | + | then (fk > fh) | |
1009 | 1016 | else false) | |
1010 | - | then ( | |
1017 | + | then (fk - fh) | |
1011 | 1018 | else 0 | |
1012 | - | let | |
1013 | - | then | |
1019 | + | let fm = if ((fl > 0)) | |
1020 | + | then cW(bL, aJ, eV, eW, (bc - fg), (bb - fh), fl, fj) | |
1014 | 1021 | else nil | |
1015 | - | if (( | |
1022 | + | if ((fm == fm)) | |
1016 | 1023 | then { | |
1017 | - | let | |
1018 | - | if (( | |
1024 | + | let fn = aN(eY) | |
1025 | + | if ((fn == fn)) | |
1019 | 1026 | then { | |
1020 | - | let | |
1021 | - | if (( | |
1027 | + | let fo = aN(eZ) | |
1028 | + | if ((fo == fo)) | |
1022 | 1029 | then { | |
1023 | - | let | |
1024 | - | then invoke( | |
1030 | + | let fp = if ((fk > 0)) | |
1031 | + | then invoke(aA(), "repayFor", [((bm + "_") + eH)], [AttachedPayment(bu(fj), fk)]) | |
1025 | 1032 | else 0 | |
1026 | - | if (( | |
1027 | - | then if (( | |
1028 | - | then $Tuple2((( | |
1029 | - | else $Tuple2(( | |
1033 | + | if ((fp == fp)) | |
1034 | + | then if ((fj == eV)) | |
1035 | + | then $Tuple2(((fn - fb) - fk), (fo - fc)) | |
1036 | + | else $Tuple2((fn - fb), ((fo - fc) - fk)) | |
1030 | 1037 | else throw("Strict value is not equal to itself.") | |
1031 | 1038 | } | |
1032 | 1039 | else throw("Strict value is not equal to itself.") | |
1037 | 1044 | } | |
1038 | 1045 | else throw("Strict value is not equal to itself.") | |
1039 | 1046 | } | |
1040 | - | else $Tuple2( | |
1041 | - | let | |
1042 | - | let | |
1043 | - | let | |
1044 | - | then [IntegerEntry(( | |
1047 | + | else $Tuple2(fg, fh) | |
1048 | + | let fq = fi._1 | |
1049 | + | let fr = fi._2 | |
1050 | + | let fs = if (eN) | |
1051 | + | then [IntegerEntry((aJ + D), ((eS - di) - fa))] | |
1045 | 1052 | else nil | |
1046 | - | let | |
1047 | - | $Tuple2( | |
1053 | + | let ft = (([DeleteEntry((((((aJ + "_") + bm) + "_") + eH) + w)), DeleteEntry((((bm + "_") + eH) + x)), DeleteEntry((((((aJ + "_") + bm) + "_") + eH) + y)), DeleteEntry((((((aJ + "_") + bm) + "_") + eH) + z)), DeleteEntry((((((aJ + "_") + bm) + "_") + eH) + B)), IntegerEntry((aJ + C), ((eR - di) - fa)), ScriptTransfer(eT, fq, eY), ScriptTransfer(eT, fr, eZ), ScriptTransfer(ao, fa, fromBase58String(bf))] ++ fs) ++ bZ(eV, eW, bf, nil)) | |
1054 | + | $Tuple2(ft, [fq, fr]) | |
1048 | 1055 | } | |
1049 | 1056 | else throw("Strict value is not equal to itself.") | |
1050 | 1057 | } | |
1058 | 1065 | } | |
1059 | 1066 | ||
1060 | 1067 | ||
1061 | - | func | |
1062 | - | let | |
1063 | - | let | |
1064 | - | let | |
1065 | - | let | |
1066 | - | let | |
1067 | - | let | |
1068 | - | let | |
1069 | - | let | |
1070 | - | let | |
1071 | - | let | |
1072 | - | let | |
1073 | - | let | |
1074 | - | $Tuple11( | |
1068 | + | func fu (fv) = { | |
1069 | + | let fw = split(valueOrErrorMessage(getString(this, (fv + N)), ("No request with id " + fv)), ",") | |
1070 | + | let bm = fw[0] | |
1071 | + | let aJ = fw[1] | |
1072 | + | let ce = parseIntValue(fw[2]) | |
1073 | + | let en = fw[3] | |
1074 | + | let cf = parseIntValue(fw[4]) | |
1075 | + | let eo = fw[5] | |
1076 | + | let bc = parseIntValue(fw[6]) | |
1077 | + | let bb = parseIntValue(fw[7]) | |
1078 | + | let bf = fw[8] | |
1079 | + | let fx = fw[9] | |
1080 | + | let fy = parseIntValue(fw[10]) | |
1081 | + | $Tuple11(bm, aJ, ce, en, cf, eo, bc, bb, bf, fx, fy) | |
1075 | 1082 | } | |
1076 | 1083 | ||
1077 | 1084 | ||
1078 | - | func | |
1079 | - | then ( | |
1085 | + | func fz (ce,cf,aV,aW,fA,fB) = if (if ((fB != aV)) | |
1086 | + | then (fB != aW) | |
1080 | 1087 | else false) | |
1081 | 1088 | then throw("Wrong borrow asset") | |
1082 | 1089 | else { | |
1083 | - | let | |
1084 | - | let | |
1085 | - | let | |
1086 | - | let | |
1087 | - | let | |
1088 | - | let | |
1089 | - | then $Tuple2( | |
1090 | - | else $Tuple2( | |
1091 | - | let | |
1092 | - | let | |
1093 | - | fraction(fraction( | |
1090 | + | let bQ = getIntegerValue(aq, (aV + U)) | |
1091 | + | let bR = getIntegerValue(aq, (aW + U)) | |
1092 | + | let fC = pow(10, 0, bv(aV), 0, 0, DOWN) | |
1093 | + | let fD = pow(10, 0, bv(aW), 0, 0, DOWN) | |
1094 | + | let fE = (fraction(bQ, ce, fC) + fraction(bR, cf, fD)) | |
1095 | + | let fF = if ((fB == aV)) | |
1096 | + | then $Tuple2(bQ, fC) | |
1097 | + | else $Tuple2(bR, fD) | |
1098 | + | let fG = fF._1 | |
1099 | + | let fH = fF._2 | |
1100 | + | fraction(fraction(fE, (fA - 100), 100), fH, fG) | |
1094 | 1101 | } | |
1095 | 1102 | ||
1096 | 1103 | ||
1097 | - | func | |
1098 | - | then if (( | |
1104 | + | func fI (fJ,en,eo) = if ((size(fJ) == 2)) | |
1105 | + | then if ((bt(fJ[0].assetId) != en)) | |
1099 | 1106 | then throw("Wrong payment asset A") | |
1100 | - | else if (( | |
1107 | + | else if ((bt(fJ[1].assetId) != eo)) | |
1101 | 1108 | then throw("Wrong payment asset B") | |
1102 | - | else $Tuple2( | |
1103 | - | else if ((size( | |
1104 | - | then if (( | |
1105 | - | then $Tuple2( | |
1106 | - | else if (( | |
1107 | - | then $Tuple2(0, | |
1109 | + | else $Tuple2(fJ[0].amount, fJ[1].amount) | |
1110 | + | else if ((size(fJ) == 1)) | |
1111 | + | then if ((bt(fJ[0].assetId) == en)) | |
1112 | + | then $Tuple2(fJ[0].amount, 0) | |
1113 | + | else if ((bt(fJ[0].assetId) == eo)) | |
1114 | + | then $Tuple2(0, fJ[0].amount) | |
1108 | 1115 | else throw("Wrong payment") | |
1109 | 1116 | else throw("One or two payments expected") | |
1110 | 1117 | ||
1111 | 1118 | ||
1112 | - | func | |
1113 | - | let | |
1114 | - | if ((0 > | |
1115 | - | then ( | |
1116 | - | else | |
1119 | + | func fK (bc,bb,fL,fM) = { | |
1120 | + | let fN = ((l - fraction(fraction(bb, l, bc), l, fraction(fM, l, fL))) * 100) | |
1121 | + | if ((0 > fN)) | |
1122 | + | then (fN * -1) | |
1123 | + | else fN | |
1117 | 1124 | } | |
1118 | 1125 | ||
1119 | 1126 | ||
1120 | - | func | |
1121 | - | let | |
1122 | - | then | |
1127 | + | func fO (aJ,bL,fP,ct,dA) = { | |
1128 | + | let fQ = if (fP) | |
1129 | + | then dm(bL, aJ) | |
1123 | 1130 | else { | |
1124 | - | let | |
1125 | - | then | |
1126 | - | else if (( | |
1127 | - | then | |
1128 | - | else | |
1129 | - | $Tuple2( | |
1131 | + | let fR = if ((bL == a)) | |
1132 | + | then as | |
1133 | + | else if ((bL == b)) | |
1134 | + | then at | |
1135 | + | else az() | |
1136 | + | $Tuple2(ct, fR) | |
1130 | 1137 | } | |
1131 | - | if (( | |
1138 | + | if ((fQ == fQ)) | |
1132 | 1139 | then { | |
1133 | - | let | |
1134 | - | let | |
1135 | - | let | |
1136 | - | if (( | |
1137 | - | then if (( | |
1140 | + | let fS = fQ._2 | |
1141 | + | let fT = fQ._1 | |
1142 | + | let fU = aN(fS) | |
1143 | + | if ((fU == fU)) | |
1144 | + | then if ((ct > fU)) | |
1138 | 1145 | then throw("To big amount to exchange") | |
1139 | - | else $Tuple2( | |
1146 | + | else $Tuple2(fT, fS) | |
1140 | 1147 | else throw("Strict value is not equal to itself.") | |
1141 | 1148 | } | |
1142 | 1149 | else throw("Strict value is not equal to itself.") | |
1143 | 1150 | } | |
1144 | 1151 | ||
1145 | 1152 | ||
1146 | - | @Callable( | |
1147 | - | func getPoolInfoREADONLY ( | |
1148 | - | let | |
1149 | - | let | |
1150 | - | let | |
1151 | - | let | |
1152 | - | let | |
1153 | - | let | |
1154 | - | let | |
1155 | - | let | |
1156 | - | let | |
1157 | - | $Tuple2(nil, $Tuple6( | |
1153 | + | @Callable(aC) | |
1154 | + | func getPoolInfoREADONLY (aJ) = { | |
1155 | + | let aT = addressFromStringValue(aJ) | |
1156 | + | let bL = valueOrErrorMessage(getString(this, (P + aJ)), "Pool is not inited") | |
1157 | + | let fV = bh(Address(fromBase58String(aJ)), bL) | |
1158 | + | let en = fV._1 | |
1159 | + | let eo = fV._2 | |
1160 | + | let bc = fV._3 | |
1161 | + | let bb = fV._4 | |
1162 | + | let bf = fV._5 | |
1163 | + | let bS = bi(aT, bL, bf) | |
1164 | + | $Tuple2(nil, $Tuple6(en, eo, bf, bc, bb, bS)) | |
1158 | 1165 | } | |
1159 | 1166 | ||
1160 | 1167 | ||
1161 | 1168 | ||
1162 | - | @Callable( | |
1163 | - | func getShareAssetPriceREADONLY ( | |
1164 | - | let | |
1165 | - | $Tuple2(nil, | |
1169 | + | @Callable(aC) | |
1170 | + | func getShareAssetPriceREADONLY (bf) = { | |
1171 | + | let fW = bK(bf) | |
1172 | + | $Tuple2(nil, fW) | |
1166 | 1173 | } | |
1167 | 1174 | ||
1168 | 1175 | ||
1169 | 1176 | ||
1170 | - | @Callable( | |
1171 | - | func getUserPositionShareAmountREADONLY ( | |
1172 | - | let | |
1173 | - | let | |
1174 | - | let | |
1175 | - | $Tuple2(nil, | |
1177 | + | @Callable(aC) | |
1178 | + | func getUserPositionShareAmountREADONLY (bm,dJ) = { | |
1179 | + | let aJ = valueOrErrorMessage(getString(this, (((bm + "_") + dJ) + x)), "Unknown position") | |
1180 | + | let fX = getIntegerValue(this, (((((aJ + "_") + bm) + "_") + dJ) + y)) | |
1181 | + | let di = eG(bm, aJ, dJ, (fX > 0)) | |
1182 | + | $Tuple2(nil, di) | |
1176 | 1183 | } | |
1177 | 1184 | ||
1178 | 1185 | ||
1179 | 1186 | ||
1180 | - | @Callable( | |
1181 | - | func getUserPositionREADONLY ( | |
1182 | - | func | |
1183 | - | let | |
1184 | - | let | |
1185 | - | let | |
1186 | - | let | |
1187 | - | let | |
1188 | - | let | |
1189 | - | let | |
1190 | - | if (!(isDefined(getInteger(this, ((((( | |
1191 | - | then $Tuple6( | |
1187 | + | @Callable(aC) | |
1188 | + | func getUserPositionREADONLY (bm,fY,dJ) = { | |
1189 | + | func fZ (bB,aJ) = { | |
1190 | + | let ga = bB | |
1191 | + | let gb = ga._1 | |
1192 | + | let gc = ga._2 | |
1193 | + | let gd = ga._3 | |
1194 | + | let ge = ga._4 | |
1195 | + | let gf = ga._5 | |
1196 | + | let gg = ga._6 | |
1197 | + | if (!(isDefined(getInteger(this, (((((aJ + "_") + bm) + "_") + dJ[gg]) + w))))) | |
1198 | + | then $Tuple6((gb :+ 0), (gc :+ 0), (gd :+ 0), (ge :+ 0), (gf :+ 0), (gg + 1)) | |
1192 | 1199 | else { | |
1193 | - | let | |
1194 | - | let | |
1195 | - | let | |
1196 | - | let | |
1197 | - | let | |
1198 | - | let | |
1199 | - | let | |
1200 | - | let | |
1201 | - | let | |
1202 | - | let | |
1203 | - | let | |
1204 | - | let | |
1205 | - | if (( | |
1200 | + | let bL = valueOrErrorMessage(getString(this, (P + aJ)), "Pool is not inited") | |
1201 | + | let gh = bh(Address(fromBase58String(aJ)), bL) | |
1202 | + | let en = gh._1 | |
1203 | + | let eo = gh._2 | |
1204 | + | let bc = gh._3 | |
1205 | + | let bb = gh._4 | |
1206 | + | let bf = gh._5 | |
1207 | + | let fX = valueOrElse(getInteger(this, (((((aJ + "_") + bm) + "_") + dJ[gg]) + y)), 0) | |
1208 | + | let di = eG(bm, aJ, dJ[gg], (fX > 0)) | |
1209 | + | let gi = dh(Address(fromBase58String(aJ)), bL, bf, di) | |
1210 | + | let gj = gi._1 | |
1211 | + | let gk = gi._2 | |
1212 | + | if ((fX > 0)) | |
1206 | 1213 | then { | |
1207 | - | let | |
1208 | - | let | |
1209 | - | let | |
1210 | - | if ($isInstanceOf( | |
1211 | - | then | |
1212 | - | else throw(($getType( | |
1214 | + | let fj = getStringValue(this, (((((aJ + "_") + bm) + "_") + dJ[gg]) + z)) | |
1215 | + | let fk = { | |
1216 | + | let aX = invoke(aA(), "getAssetDebt", [false, ((bm + "_") + dJ[gg]), fj], nil) | |
1217 | + | if ($isInstanceOf(aX, "Int")) | |
1218 | + | then aX | |
1219 | + | else throw(($getType(aX) + " couldn't be cast to Int")) | |
1213 | 1220 | } | |
1214 | - | if (( | |
1221 | + | if ((fk == fk)) | |
1215 | 1222 | then { | |
1216 | - | let | |
1217 | - | then ( | |
1223 | + | let fl = if (if ((fj == en)) | |
1224 | + | then (fk > gj) | |
1218 | 1225 | else false) | |
1219 | - | then ( | |
1220 | - | else if (if (( | |
1221 | - | then ( | |
1226 | + | then (fk - gj) | |
1227 | + | else if (if ((fj == eo)) | |
1228 | + | then (fk > gk) | |
1222 | 1229 | else false) | |
1223 | - | then ( | |
1230 | + | then (fk - gk) | |
1224 | 1231 | else 0 | |
1225 | - | let | |
1226 | - | then if (( | |
1232 | + | let cJ = if ((fl > 0)) | |
1233 | + | then if ((bL == a)) | |
1227 | 1234 | then { | |
1228 | - | let | |
1229 | - | | |
1235 | + | let gl = cA(aJ, en, eo, bc, bb, fl, fj) | |
1236 | + | gl._2 | |
1230 | 1237 | } | |
1231 | - | else if (( | |
1238 | + | else if ((bL == b)) | |
1232 | 1239 | then { | |
1233 | - | let | |
1234 | - | | |
1240 | + | let gl = cP(aJ, en, eo, bc, bb, fl, fj) | |
1241 | + | gl._2 | |
1235 | 1242 | } | |
1236 | - | else | |
1243 | + | else az() | |
1237 | 1244 | else 0 | |
1238 | - | let | |
1239 | - | then $Tuple2((( | |
1240 | - | else $Tuple2(( | |
1241 | - | let | |
1242 | - | let | |
1243 | - | $Tuple6(( | |
1245 | + | let gm = if ((fj == en)) | |
1246 | + | then $Tuple2(((gj + fl) - fk), (gk - cJ)) | |
1247 | + | else $Tuple2((gj - cJ), ((gk + fl) - fk)) | |
1248 | + | let gn = gm._1 | |
1249 | + | let go = gm._2 | |
1250 | + | $Tuple6((gb :+ gj), (gc :+ gk), (gd :+ fk), (ge :+ gn), (gf :+ go), (gg + 1)) | |
1244 | 1251 | } | |
1245 | 1252 | else throw("Strict value is not equal to itself.") | |
1246 | 1253 | } | |
1247 | - | else $Tuple6(( | |
1254 | + | else $Tuple6((gb :+ gj), (gc :+ gk), gd, (gb :+ gj), (gc :+ gk), (gg + 1)) | |
1248 | 1255 | } | |
1249 | 1256 | } | |
1250 | 1257 | ||
1251 | - | let | |
1252 | - | let | |
1253 | - | let | |
1254 | - | let | |
1255 | - | func | |
1256 | - | then | |
1257 | - | else | |
1258 | + | let gp = { | |
1259 | + | let bD = fY | |
1260 | + | let bE = size(bD) | |
1261 | + | let bF = $Tuple6(nil, nil, nil, nil, nil, 0) | |
1262 | + | func bG (bH,bI) = if ((bI >= bE)) | |
1263 | + | then bH | |
1264 | + | else fZ(bH, bD[bI]) | |
1258 | 1265 | ||
1259 | - | func | |
1260 | - | then | |
1266 | + | func bJ (bH,bI) = if ((bI >= bE)) | |
1267 | + | then bH | |
1261 | 1268 | else throw("List size exceeds 20") | |
1262 | 1269 | ||
1263 | - | | |
1270 | + | bJ(bG(bG(bG(bG(bG(bG(bG(bG(bG(bG(bG(bG(bG(bG(bG(bG(bG(bG(bG(bG(bF, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20) | |
1264 | 1271 | } | |
1265 | - | let | |
1266 | - | let | |
1267 | - | let | |
1268 | - | let | |
1269 | - | let | |
1270 | - | $Tuple2(nil, $Tuple5( | |
1272 | + | let gb = gp._1 | |
1273 | + | let gc = gp._2 | |
1274 | + | let gd = gp._3 | |
1275 | + | let ge = gp._4 | |
1276 | + | let gf = gp._5 | |
1277 | + | $Tuple2(nil, $Tuple5(gb, gc, gd, ge, gf)) | |
1271 | 1278 | } | |
1272 | 1279 | ||
1273 | 1280 | ||
1274 | 1281 | ||
1275 | - | @Callable( | |
1276 | - | func replenish ( | |
1277 | - | let | |
1278 | - | if (!( | |
1282 | + | @Callable(aC) | |
1283 | + | func replenish (aJ,fA,fB) = valueOrElse(aH(), { | |
1284 | + | let bL = valueOrErrorMessage(getString(this, (P + aJ)), "Pool is not inited") | |
1285 | + | if (!(aI(aJ, bL))) | |
1279 | 1286 | then throw("Pool not active at this moment") | |
1280 | - | else if (if ((100 > | |
1287 | + | else if (if ((100 > fA)) | |
1281 | 1288 | then true | |
1282 | - | else ( | |
1289 | + | else (fA > 300)) | |
1283 | 1290 | then throw("Leverage can't be <100 and >300") | |
1284 | - | else if (if (!(getBooleanValue(this, ( | |
1285 | - | then ( | |
1291 | + | else if (if (!(getBooleanValue(this, (aJ + G)))) | |
1292 | + | then (fA > 100) | |
1286 | 1293 | else false) | |
1287 | 1294 | then throw("You can't borrow in this pool") | |
1288 | 1295 | else { | |
1289 | - | let | |
1290 | - | let | |
1291 | - | let | |
1292 | - | let | |
1293 | - | let | |
1294 | - | let | |
1295 | - | if (if (( | |
1296 | - | then ( | |
1296 | + | let gq = bh(Address(fromBase58String(aJ)), bL) | |
1297 | + | let en = gq._1 | |
1298 | + | let eo = gq._2 | |
1299 | + | let bc = gq._3 | |
1300 | + | let bb = gq._4 | |
1301 | + | let bf = gq._5 | |
1302 | + | if (if ((fB != en)) | |
1303 | + | then (fB != eo) | |
1297 | 1304 | else false) | |
1298 | 1305 | then throw("Wrong borrow asset") | |
1299 | 1306 | else { | |
1300 | - | let | |
1301 | - | let | |
1302 | - | let | |
1303 | - | let | |
1304 | - | let | |
1305 | - | if (( | |
1307 | + | let gr = fI(aC.payments, en, eo) | |
1308 | + | let ce = gr._1 | |
1309 | + | let cf = gr._2 | |
1310 | + | let bm = toString(aC.caller) | |
1311 | + | let gs = bl(bm) | |
1312 | + | if ((fA > 100)) | |
1306 | 1313 | then { | |
1307 | - | let | |
1308 | - | let | |
1309 | - | let | |
1310 | - | let | |
1311 | - | if ($isInstanceOf( | |
1312 | - | then | |
1313 | - | else throw(($getType( | |
1314 | + | let fX = fz(ce, cf, en, eo, fA, fB) | |
1315 | + | let fw = makeString([bm, aJ, toString(ce), en, toString(cf), eo, toString(bc), toString(bb), bf, fB, toString(fX)], ",") | |
1316 | + | let gt = { | |
1317 | + | let aX = invoke(this, "createNewRequest", [fw], nil) | |
1318 | + | if ($isInstanceOf(aX, "Int")) | |
1319 | + | then aX | |
1320 | + | else throw(($getType(aX) + " couldn't be cast to Int")) | |
1314 | 1321 | } | |
1315 | - | if (( | |
1322 | + | if ((gt == gt)) | |
1316 | 1323 | then { | |
1317 | - | let | |
1318 | - | let | |
1319 | - | if (( | |
1324 | + | let ea = [((bm + "_") + toString(gs)), bf, fB, fX, toString(this), "replenishFromLand", toString(valueOrErrorMessage(gt, "Can't create new request"))] | |
1325 | + | let cz = reentrantInvoke(aA(), "flashPosition", ea, nil) | |
1326 | + | if ((cz == cz)) | |
1320 | 1327 | then { | |
1321 | - | let | |
1322 | - | let | |
1323 | - | if (( | |
1328 | + | let gu = getIntegerValue(this, (((((aJ + "_") + bm) + "_") + toString(gs)) + w)) | |
1329 | + | let gv = aY(Address(fromBase58String(aJ)), bL, en, eo) | |
1330 | + | if ((gv == gv)) | |
1324 | 1331 | then { | |
1325 | - | let | |
1326 | - | let | |
1327 | - | let | |
1328 | - | let | |
1329 | - | let | |
1330 | - | let | |
1331 | - | $Tuple2(nil, [ | |
1332 | + | let fM = gv._2 | |
1333 | + | let fL = gv._1 | |
1334 | + | let gw = fK(bc, bb, fL, fM) | |
1335 | + | let gx = dh(Address(fromBase58String(aJ)), bL, bf, gu) | |
1336 | + | let gj = gx._1 | |
1337 | + | let gk = gx._2 | |
1338 | + | $Tuple2(nil, [gw, gj, gk]) | |
1332 | 1339 | } | |
1333 | 1340 | else throw("Strict value is not equal to itself.") | |
1334 | 1341 | } | |
1337 | 1344 | else throw("Strict value is not equal to itself.") | |
1338 | 1345 | } | |
1339 | 1346 | else { | |
1340 | - | let | |
1341 | - | if (( | |
1347 | + | let gy = dt(bL, aJ, j, ce, en, cf, eo, bc, bb, bf) | |
1348 | + | if ((gy == gy)) | |
1342 | 1349 | then { | |
1343 | - | let | |
1344 | - | let | |
1345 | - | let | |
1346 | - | if (( | |
1350 | + | let ew = gy._2 | |
1351 | + | let gu = gy._1 | |
1352 | + | let gz = aY(Address(fromBase58String(aJ)), bL, en, eo) | |
1353 | + | if ((gz == gz)) | |
1347 | 1354 | then { | |
1348 | - | let | |
1349 | - | let | |
1350 | - | let | |
1351 | - | let | |
1352 | - | let | |
1353 | - | let | |
1354 | - | $Tuple2(( | |
1355 | + | let fM = gz._2 | |
1356 | + | let fL = gz._1 | |
1357 | + | let gw = fK(bc, bb, fL, fM) | |
1358 | + | let gA = dh(Address(fromBase58String(aJ)), bL, bf, gu) | |
1359 | + | let gj = gA._1 | |
1360 | + | let gk = gA._2 | |
1361 | + | $Tuple2((dH(aJ, bm, gu, ew, gs, bf, bL, false) ++ bZ(en, eo, bf, [toString(gj), toString(gk)])), [gw, gj, gk]) | |
1355 | 1362 | } | |
1356 | 1363 | else throw("Strict value is not equal to itself.") | |
1357 | 1364 | } | |
1363 | 1370 | ||
1364 | 1371 | ||
1365 | 1372 | ||
1366 | - | @Callable( | |
1367 | - | func withdraw ( | |
1368 | - | let | |
1369 | - | if (!( | |
1373 | + | @Callable(aC) | |
1374 | + | func withdraw (aJ,eH) = valueOrElse(aH(), { | |
1375 | + | let bL = valueOrErrorMessage(getString(this, (P + aJ)), "Pool is not inited") | |
1376 | + | if (!(aI(aJ, bL))) | |
1370 | 1377 | then throw("Pool not active at this moment") | |
1371 | - | else | |
1378 | + | else eQ(toString(aC.caller), aJ, toString(eH), false) | |
1372 | 1379 | }) | |
1373 | 1380 | ||
1374 | 1381 | ||
1375 | 1382 | ||
1376 | - | @Callable( | |
1377 | - | func createUpdateStopLoss ( | |
1378 | - | let | |
1379 | - | let | |
1380 | - | if (!( | |
1383 | + | @Callable(aC) | |
1384 | + | func createUpdateStopLoss (eH,gB,aO,gC) = valueOrElse(aH(), { | |
1385 | + | let gD = getIntegerValue(aq, (aO + U)) | |
1386 | + | let bL = valueOrErrorMessage(getString(this, (P + gB)), "Pool is not inited") | |
1387 | + | if (!(aI(gB, bL))) | |
1381 | 1388 | then throw("Pool not active at this moment") | |
1382 | - | else if (!(isDefined(getInteger(this, ((((( | |
1389 | + | else if (!(isDefined(getInteger(this, (((((gB + "_") + toString(aC.caller)) + "_") + toString(eH)) + w))))) | |
1383 | 1390 | then throw("There are no user position") | |
1384 | - | else if ((0 >= | |
1391 | + | else if ((0 >= gC)) | |
1385 | 1392 | then throw("Price must be greater than 0") | |
1386 | - | else if (( | |
1393 | + | else if ((gC > gD)) | |
1387 | 1394 | then throw("Price must be less than current token price") | |
1388 | - | else [IntegerEntry((((((((toString( | |
1395 | + | else [IntegerEntry((((((((toString(aC.caller) + "_") + toString(eH)) + "_") + gB) + "_") + aO) + Z), gC)] | |
1389 | 1396 | }) | |
1390 | 1397 | ||
1391 | 1398 | ||
1392 | 1399 | ||
1393 | - | @Callable( | |
1394 | - | func deleteStopLoss ( | |
1395 | - | let | |
1396 | - | if (!( | |
1400 | + | @Callable(aC) | |
1401 | + | func deleteStopLoss (eH,gB,aO) = valueOrElse(aH(), { | |
1402 | + | let bL = valueOrErrorMessage(getString(this, (P + gB)), "Pool is not inited") | |
1403 | + | if (!(aI(gB, bL))) | |
1397 | 1404 | then throw("Pool not active at this moment") | |
1398 | - | else if (!(isDefined(getInteger(this, (((((((toString( | |
1405 | + | else if (!(isDefined(getInteger(this, (((((((toString(aC.caller) + "_") + toString(eH)) + "_") + gB) + "_") + aO) + Z))))) | |
1399 | 1406 | then throw("No entry") | |
1400 | - | else [DeleteEntry((((((((toString( | |
1407 | + | else [DeleteEntry((((((((toString(aC.caller) + "_") + toString(eH)) + "_") + gB) + "_") + aO) + Z))] | |
1401 | 1408 | }) | |
1402 | 1409 | ||
1403 | 1410 | ||
1404 | 1411 | ||
1405 | - | @Callable( | |
1406 | - | func init ( | |
1412 | + | @Callable(aC) | |
1413 | + | func init (gE,gF,gG,aq,gH,ar,gI,gJ,gK,gL,gM,gN,gO) = valueOrElse(aE(aC), if (isDefined(getString(ae))) | |
1407 | 1414 | then throw("Already inited") | |
1408 | - | else if (!(isDefined(addressFromString( | |
1415 | + | else if (!(isDefined(addressFromString(gE)))) | |
1409 | 1416 | then throw("moneyBoxAddr is not correct address") | |
1410 | - | else if (!(isDefined(addressFromString( | |
1417 | + | else if (!(isDefined(addressFromString(gF)))) | |
1411 | 1418 | then throw("sfFarmingAddr is not correct address") | |
1412 | - | else if (!(isDefined(addressFromString( | |
1419 | + | else if (!(isDefined(addressFromString(gG)))) | |
1413 | 1420 | then throw("lendAddr is not correct address") | |
1414 | - | else if (!(isDefined(addressFromString( | |
1421 | + | else if (!(isDefined(addressFromString(aq)))) | |
1415 | 1422 | then throw("priceOracleAddr is not correct address") | |
1416 | - | else if (!(isDefined(addressFromString( | |
1423 | + | else if (!(isDefined(addressFromString(gH)))) | |
1417 | 1424 | then throw("keeperExContract is not correct address") | |
1418 | - | else if (!(isDefined(assetInfo(fromBase58String( | |
1425 | + | else if (!(isDefined(assetInfo(fromBase58String(gI))))) | |
1419 | 1426 | then throw("swopAssetId is not correct asset id") | |
1420 | - | else if (!(isDefined(assetInfo(fromBase58String( | |
1427 | + | else if (!(isDefined(assetInfo(fromBase58String(gJ))))) | |
1421 | 1428 | then throw("swopAssetId is not correct asset id") | |
1422 | - | else if ((size(fromBase58String( | |
1429 | + | else if ((size(fromBase58String(gK)) != 32)) | |
1423 | 1430 | then throw("operatorPubKey is not correct") | |
1424 | - | else if ((size(fromBase58String( | |
1431 | + | else if ((size(fromBase58String(gL)) != 32)) | |
1425 | 1432 | then throw("group1Admin1PubKey is not correct") | |
1426 | - | else if ((size(fromBase58String( | |
1433 | + | else if ((size(fromBase58String(gM)) != 32)) | |
1427 | 1434 | then throw("group1Admin2PubKey is not correct") | |
1428 | - | else if ((size(fromBase58String( | |
1435 | + | else if ((size(fromBase58String(gN)) != 32)) | |
1429 | 1436 | then throw("group2Admin1PubKey is not correct") | |
1430 | - | else if ((size(fromBase58String( | |
1437 | + | else if ((size(fromBase58String(gO)) != 32)) | |
1431 | 1438 | then throw("group2Admin2PubKey is not correct") | |
1432 | - | else [StringEntry( | |
1439 | + | else [StringEntry(ab, gE), StringEntry(ac, gF), StringEntry(ad, gG), StringEntry(af, aq), StringEntry(ag, gH), StringEntry(ah, ar), StringEntry(ai, gI), StringEntry(aj, gJ), StringEntry(ae, gK), StringEntry(ak, gL), StringEntry(al, gM), StringEntry(am, gN), StringEntry(an, gO)]) | |
1433 | 1440 | ||
1434 | 1441 | ||
1435 | 1442 | ||
1436 | - | @Callable( | |
1437 | - | func createNewRequest ( | |
1438 | - | let | |
1439 | - | $Tuple2([StringEntry((toString( | |
1443 | + | @Callable(aC) | |
1444 | + | func createNewRequest (cy) = valueOrElse(aE(aC), { | |
1445 | + | let gt = (valueOrElse(getInteger(this, O), 0) + 1) | |
1446 | + | $Tuple2([StringEntry((toString(gt) + N), cy), IntegerEntry(O, gt)], gt) | |
1440 | 1447 | }) | |
1441 | 1448 | ||
1442 | 1449 | ||
1443 | 1450 | ||
1444 | - | @Callable( | |
1445 | - | func replenishFromLand ( | |
1446 | - | let | |
1447 | - | let | |
1448 | - | let | |
1449 | - | let | |
1450 | - | let | |
1451 | - | let | |
1452 | - | let | |
1453 | - | let | |
1454 | - | let | |
1455 | - | let | |
1456 | - | let | |
1457 | - | let | |
1458 | - | if ((size( | |
1451 | + | @Callable(aC) | |
1452 | + | func replenishFromLand (fv) = valueOrElse(aG(), valueOrElse(aF(aC), { | |
1453 | + | let gP = fu(fv) | |
1454 | + | let bm = gP._1 | |
1455 | + | let aJ = gP._2 | |
1456 | + | let ce = gP._3 | |
1457 | + | let en = gP._4 | |
1458 | + | let cf = gP._5 | |
1459 | + | let eo = gP._6 | |
1460 | + | let bc = gP._7 | |
1461 | + | let bb = gP._8 | |
1462 | + | let bf = gP._9 | |
1463 | + | let fx = gP._10 | |
1464 | + | let fy = gP._11 | |
1465 | + | if ((size(aC.payments) != 1)) | |
1459 | 1466 | then throw("Wrong payment size") | |
1460 | - | else if (if (( | |
1467 | + | else if (if ((bt(aC.payments[0].assetId) != fx)) | |
1461 | 1468 | then true | |
1462 | - | else ( | |
1469 | + | else (aC.payments[0].amount != fy)) | |
1463 | 1470 | then throw("Wrong payment") | |
1464 | 1471 | else { | |
1465 | - | let | |
1466 | - | then $Tuple2(( | |
1467 | - | else $Tuple2( | |
1468 | - | let | |
1469 | - | let | |
1470 | - | let | |
1471 | - | let | |
1472 | - | let | |
1473 | - | let | |
1474 | - | let | |
1475 | - | let | |
1476 | - | let | |
1477 | - | let | |
1478 | - | let | |
1479 | - | let | |
1480 | - | $Tuple2(((( | |
1472 | + | let gQ = if ((en == fx)) | |
1473 | + | then $Tuple2((ce + fy), cf) | |
1474 | + | else $Tuple2(ce, (cf + fy)) | |
1475 | + | let gR = gQ._1 | |
1476 | + | let gS = gQ._2 | |
1477 | + | let bL = valueOrErrorMessage(getString(this, (P + aJ)), "Unknown pool") | |
1478 | + | let gT = dt(bL, aJ, i, gR, en, gS, eo, bc, bb, bf) | |
1479 | + | let gu = gT._1 | |
1480 | + | let ew = gT._2 | |
1481 | + | let dJ = bl(bm) | |
1482 | + | let gU = [IntegerEntry((((((aJ + "_") + bm) + "_") + toString(dJ)) + y), fy), StringEntry((((((aJ + "_") + bm) + "_") + toString(dJ)) + z), fx)] | |
1483 | + | let ft = dH(aJ, bm, gu, ew, dJ, bf, bL, true) | |
1484 | + | let gV = dh(Address(fromBase58String(aJ)), bL, bf, gu) | |
1485 | + | let gj = gV._1 | |
1486 | + | let gk = gV._2 | |
1487 | + | $Tuple2((((ft ++ bZ(en, eo, bf, [toString(gj), toString(gk)])) ++ gU) :+ DeleteEntry((fv + N))), gu) | |
1481 | 1488 | } | |
1482 | 1489 | })) | |
1483 | 1490 | ||
1484 | 1491 | ||
1485 | 1492 | ||
1486 | - | @Callable( | |
1487 | - | func liquidate ( | |
1488 | - | let | |
1489 | - | let | |
1490 | - | let | |
1491 | - | let | |
1492 | - | let | |
1493 | - | let | |
1494 | - | let | |
1495 | - | let | |
1496 | - | let | |
1497 | - | let | |
1498 | - | let | |
1499 | - | let | |
1500 | - | if (( | |
1493 | + | @Callable(aC) | |
1494 | + | func liquidate (bm,eH,gW) = valueOrElse(aG(), valueOrElse(aF(aC), { | |
1495 | + | let aJ = valueOrErrorMessage(getString(this, (((bm + "_") + eH) + x)), "no position") | |
1496 | + | let bL = valueOrErrorMessage(getString(this, (P + aJ)), "Pool is not inited") | |
1497 | + | let gX = bh(Address(fromBase58String(aJ)), bL) | |
1498 | + | let en = gX._1 | |
1499 | + | let eo = gX._2 | |
1500 | + | let bc = gX._3 | |
1501 | + | let bb = gX._4 | |
1502 | + | let bf = gX._5 | |
1503 | + | let ct = cu(aJ, bL, bf, gW) | |
1504 | + | let fX = getIntegerValue(this, (((((aJ + "_") + bm) + "_") + eH) + y)) | |
1505 | + | let fj = getStringValue(this, (((((aJ + "_") + bm) + "_") + eH) + z)) | |
1506 | + | let di = eG(bm, aJ, eH, (fX > 0)) | |
1507 | + | if ((gW > di)) | |
1501 | 1508 | then throw("You can't liquidate more than user have") | |
1502 | - | else if (( | |
1509 | + | else if ((fX == 0)) | |
1503 | 1510 | then throw("You can't liquidate position without borrow") | |
1504 | - | else [IntegerEntry(((((( | |
1511 | + | else [IntegerEntry((((((aJ + "_") + bm) + "_") + eH) + B), getIntegerValue(this, (aJ + E))), IntegerEntry((aJ + D), (bk(aJ) - gW)), IntegerEntry((aJ + C), (bj(aJ) - gW)), IntegerEntry((((((aJ + "_") + bm) + "_") + eH) + w), (di - gW)), ScriptTransfer(aC.caller, ct, fromBase58String(bf))] | |
1505 | 1512 | })) | |
1506 | 1513 | ||
1507 | 1514 | ||
1508 | 1515 | ||
1509 | - | @Callable( | |
1510 | - | func stopLoss ( | |
1511 | - | let | |
1512 | - | let | |
1513 | - | if (( | |
1516 | + | @Callable(aC) | |
1517 | + | func stopLoss (bm,eH,aJ,aO) = valueOrElse(aG(), valueOrElse(aB(aC), { | |
1518 | + | let gD = getIntegerValue(aq, (aO + U)) | |
1519 | + | let gY = valueOrErrorMessage(getInteger(this, (((((((bm + "_") + toString(eH)) + "_") + aJ) + "_") + aO) + Z)), "No entry") | |
1520 | + | if ((gD > gY)) | |
1514 | 1521 | then throw("Token price greater stop loss price") | |
1515 | 1522 | else { | |
1516 | - | let | |
1517 | - | $Tuple2(( | |
1523 | + | let gZ = eQ(bm, aJ, toString(eH), true) | |
1524 | + | $Tuple2((gZ._1 :+ DeleteEntry((((((((bm + "_") + toString(eH)) + "_") + aJ) + "_") + aO) + Z))), gZ._2) | |
1518 | 1525 | } | |
1519 | 1526 | })) | |
1520 | 1527 | ||
1521 | 1528 | ||
1522 | 1529 | ||
1523 | - | @Callable( | |
1524 | - | func capitalizeEx ( | |
1525 | - | let | |
1526 | - | let | |
1527 | - | let | |
1528 | - | if (( | |
1530 | + | @Callable(aC) | |
1531 | + | func capitalizeEx (aJ,ha,hb,hc,fP) = valueOrElse(aG(), valueOrElse(aB(aC), { | |
1532 | + | let bL = getStringValue(this, (P + aJ)) | |
1533 | + | let dA = valueOrElse(getInteger(this, (aJ + S)), 0) | |
1534 | + | let hd = fO(aJ, bL, fP, hc, dA) | |
1535 | + | if ((hd == hd)) | |
1529 | 1536 | then { | |
1530 | - | let | |
1531 | - | let | |
1532 | - | let | |
1533 | - | let | |
1534 | - | then | |
1535 | - | else if (( | |
1536 | - | then | |
1537 | + | let fR = hd._2 | |
1538 | + | let he = hd._1 | |
1539 | + | let dT = split(ha, "__") | |
1540 | + | let hf = if ((dT[0] == "directSwopfiCPMM")) | |
1541 | + | then dS(dT, hb) | |
1542 | + | else if ((dT[0] == "routingSwopfi")) | |
1543 | + | then dZ(dT, hb) | |
1537 | 1544 | else throw("Wrong route") | |
1538 | - | if (( | |
1545 | + | if ((hf == hf)) | |
1539 | 1546 | then { | |
1540 | - | let | |
1541 | - | let | |
1542 | - | then [IntegerEntry(( | |
1547 | + | let hg = ((he + dA) - hc) | |
1548 | + | let hh = if ((hg >= 0)) | |
1549 | + | then [IntegerEntry((aJ + S), hg)] | |
1543 | 1550 | else nil | |
1544 | - | ( | |
1551 | + | (ej(aJ, bL, hb, hf) ++ hh) | |
1545 | 1552 | } | |
1546 | 1553 | else throw("Strict value is not equal to itself.") | |
1547 | 1554 | } | |
1550 | 1557 | ||
1551 | 1558 | ||
1552 | 1559 | ||
1553 | - | @Callable( | |
1554 | - | func capitalizeNoEx ( | |
1555 | - | let | |
1556 | - | let | |
1557 | - | if (( | |
1560 | + | @Callable(aC) | |
1561 | + | func capitalizeNoEx (aJ,fP,hi) = valueOrElse(aG(), valueOrElse(aB(aC), { | |
1562 | + | let bL = getStringValue(this, (P + aJ)) | |
1563 | + | let hj = fO(aJ, bL, fP, hi, 0) | |
1564 | + | if ((hj == hj)) | |
1558 | 1565 | then { | |
1559 | - | let | |
1560 | - | let | |
1561 | - | | |
1566 | + | let fR = hj._2 | |
1567 | + | let he = hj._1 | |
1568 | + | ej(aJ, bL, bt(fR), (he + hi)) | |
1562 | 1569 | } | |
1563 | 1570 | else throw("Strict value is not equal to itself.") | |
1564 | 1571 | })) | |
1565 | 1572 | ||
1566 | 1573 | ||
1567 | 1574 | ||
1568 | - | @Callable( | |
1569 | - | func initNewPool ( | |
1570 | - | then ( | |
1575 | + | @Callable(aC) | |
1576 | + | func initNewPool (aK,hk,aT,hl,hm,hn,ho,hp,hq,hr) = valueOrElse(aG(), valueOrElse(aD(aC), if (if ((aK != a)) | |
1577 | + | then (aK != b) | |
1571 | 1578 | else false) | |
1572 | 1579 | then throw("Wrong type") | |
1573 | - | else if (if (( | |
1574 | - | then ( | |
1580 | + | else if (if ((hk != c)) | |
1581 | + | then (hk != d) | |
1575 | 1582 | else false) | |
1576 | 1583 | then throw("Wrong pool type") | |
1577 | 1584 | else { | |
1578 | - | let | |
1579 | - | let | |
1580 | - | let | |
1581 | - | let | |
1582 | - | let | |
1583 | - | let | |
1584 | - | if ((0 > | |
1585 | + | let hs = bh(Address(fromBase58String(aT)), aK) | |
1586 | + | let aV = hs._1 | |
1587 | + | let aW = hs._2 | |
1588 | + | let dq = hs._3 | |
1589 | + | let dr = hs._4 | |
1590 | + | let bf = hs._5 | |
1591 | + | if ((0 > hl)) | |
1585 | 1592 | then throw("inFeeNoLoan must be greater than 0") | |
1586 | - | else if ((0 > | |
1593 | + | else if ((0 > hm)) | |
1587 | 1594 | then throw("inFeeLoan must be greater than 0") | |
1588 | - | else if ((0 > | |
1595 | + | else if ((0 > hn)) | |
1589 | 1596 | then throw("capFeeNoLoan must be greater than 0") | |
1590 | - | else if ((0 > | |
1597 | + | else if ((0 > ho)) | |
1591 | 1598 | then throw("capFeeWithLoan must be greater than 0") | |
1592 | - | else if ((0 > | |
1599 | + | else if ((0 > hp)) | |
1593 | 1600 | then throw("stoplossFeeNoLoan must be greater than 0") | |
1594 | - | else if ((0 > | |
1601 | + | else if ((0 > hq)) | |
1595 | 1602 | then throw("stoplossFeeWithLoan must be greater than 0") | |
1596 | - | else [IntegerEntry(( | |
1603 | + | else [IntegerEntry((aT + H), hl), IntegerEntry((aT + I), hm), IntegerEntry((aT + J), hn), IntegerEntry((aT + K), ho), IntegerEntry((aT + L), hp), IntegerEntry((aT + M), hq), IntegerEntry((aT + E), 0), IntegerEntry((aT + F), 0), StringEntry((P + aT), aK), StringEntry((aT + Q), hk), StringEntry((bf + R), aT), BooleanEntry((aT + G), hr)] | |
1597 | 1604 | })) | |
1598 | 1605 | ||
1599 | 1606 | ||
1600 | 1607 | ||
1601 | - | @Callable( | |
1602 | - | func updatePoolFees ( | |
1603 | - | then throw(("Can't find pool with addr " + | |
1604 | - | else if ((0 > | |
1608 | + | @Callable(aC) | |
1609 | + | func updatePoolFees (aT,hl,hm,hn,ho,hp,hq) = valueOrElse(aG(), valueOrElse(aD(aC), if (!(isDefined(getString(this, (P + aT))))) | |
1610 | + | then throw(("Can't find pool with addr " + aT)) | |
1611 | + | else if ((0 > hl)) | |
1605 | 1612 | then throw("inFeeNoLoan must be greater than 0") | |
1606 | - | else if ((0 > | |
1613 | + | else if ((0 > hm)) | |
1607 | 1614 | then throw("inFeeLoan must be greater than 0") | |
1608 | - | else if ((0 > | |
1615 | + | else if ((0 > hn)) | |
1609 | 1616 | then throw("capFeeNoLoan must be greater than 0") | |
1610 | - | else if ((0 > | |
1617 | + | else if ((0 > ho)) | |
1611 | 1618 | then throw("capFeeWithLoan must be greater than 0") | |
1612 | - | else if ((0 > | |
1619 | + | else if ((0 > hp)) | |
1613 | 1620 | then throw("stoplossFeeNoLoan must be greater than 0") | |
1614 | - | else if ((0 > | |
1621 | + | else if ((0 > hq)) | |
1615 | 1622 | then throw("stoplossFeeWithLoan must be greater than 0") | |
1616 | - | else [IntegerEntry(( | |
1623 | + | else [IntegerEntry((aT + H), hl), IntegerEntry((aT + I), hm), IntegerEntry((aT + J), hn), IntegerEntry((aT + K), ho), IntegerEntry((aT + L), hp), IntegerEntry((aT + M), hq)])) | |
1617 | 1624 | ||
1618 | 1625 | ||
1619 | 1626 | ||
1620 | - | @Callable( | |
1621 | - | func activate () = valueOrElse(aC | |
1627 | + | @Callable(aC) | |
1628 | + | func activate () = valueOrElse(aD(aC), if (valueOrElse(getBoolean(this, V), true)) | |
1622 | 1629 | then throw("dApp already active") | |
1623 | - | else [BooleanEntry(U, true)]) | |
1624 | - | ||
1625 | - | ||
1626 | - | ||
1627 | - | @Callable(aB) | |
1628 | - | func shutdown () = valueOrElse(aC(aB), if (!(valueOrElse(getBoolean(this, U), true))) | |
1629 | - | then throw("dApp already shutdown") | |
1630 | - | else [BooleanEntry(U, false)]) | |
1631 | - | ||
1632 | - | ||
1633 | - | ||
1634 | - | @Callable(aB) | |
1635 | - | func activateForUsers () = valueOrElse(aC(aB), if (valueOrElse(getBoolean(this, V), true)) | |
1636 | - | then throw("dApp already active for users") | |
1637 | 1630 | else [BooleanEntry(V, true)]) | |
1638 | 1631 | ||
1639 | 1632 | ||
1640 | 1633 | ||
1641 | - | @Callable( | |
1642 | - | func | |
1643 | - | then throw("dApp already shutdown | |
1634 | + | @Callable(aC) | |
1635 | + | func shutdown () = valueOrElse(aD(aC), if (!(valueOrElse(getBoolean(this, V), true))) | |
1636 | + | then throw("dApp already shutdown") | |
1644 | 1637 | else [BooleanEntry(V, false)]) | |
1645 | 1638 | ||
1646 | 1639 | ||
1647 | 1640 | ||
1648 | - | @Callable( | |
1649 | - | func | |
1650 | - | then throw(" | |
1651 | - | else [BooleanEntry( | |
1641 | + | @Callable(aC) | |
1642 | + | func activateForUsers () = valueOrElse(aD(aC), if (valueOrElse(getBoolean(this, W), true)) | |
1643 | + | then throw("dApp already active for users") | |
1644 | + | else [BooleanEntry(W, true)]) | |
1652 | 1645 | ||
1653 | 1646 | ||
1654 | 1647 | ||
1655 | - | @Callable( | |
1656 | - | func | |
1657 | - | then throw(" | |
1658 | - | else [BooleanEntry( | |
1648 | + | @Callable(aC) | |
1649 | + | func shutdownForUsers () = valueOrElse(aD(aC), if (!(valueOrElse(getBoolean(this, W), true))) | |
1650 | + | then throw("dApp already shutdown for users") | |
1651 | + | else [BooleanEntry(W, false)]) | |
1659 | 1652 | ||
1660 | 1653 | ||
1661 | 1654 | ||
1662 | - | @Callable( | |
1663 | - | func | |
1664 | - | then throw(" | |
1665 | - | else [BooleanEntry(( | |
1655 | + | @Callable(aC) | |
1656 | + | func activateSF () = valueOrElse(aD(aC), if (valueOrElse(getBoolean(this, (a + X)), true)) | |
1657 | + | then throw("SWOPFI already active") | |
1658 | + | else [BooleanEntry((a + X), true)]) | |
1666 | 1659 | ||
1667 | 1660 | ||
1668 | 1661 | ||
1669 | - | @Callable( | |
1670 | - | func | |
1671 | - | then throw(" | |
1672 | - | else [BooleanEntry(( | |
1662 | + | @Callable(aC) | |
1663 | + | func shutdownSF () = valueOrElse(aD(aC), if (!(valueOrElse(getBoolean(this, (a + X)), true))) | |
1664 | + | then throw("SWOPFI already shutdown") | |
1665 | + | else [BooleanEntry((a + X), false)]) | |
1673 | 1666 | ||
1674 | 1667 | ||
1675 | 1668 | ||
1676 | - | @Callable(aB) | |
1677 | - | func activatePool (aI) = valueOrElse(aC(aB), if (!(isDefined(getString(this, (P + aI))))) | |
1678 | - | then throw("Unknown pool") | |
1679 | - | else if (valueOrElse(getBoolean(this, (aI + X)), true)) | |
1680 | - | then throw("Pool already active") | |
1681 | - | else [BooleanEntry((aI + X), true)]) | |
1669 | + | @Callable(aC) | |
1670 | + | func activateWX () = valueOrElse(aD(aC), if (valueOrElse(getBoolean(this, (b + X)), true)) | |
1671 | + | then throw("WX already active") | |
1672 | + | else [BooleanEntry((b + X), true)]) | |
1682 | 1673 | ||
1683 | 1674 | ||
1684 | 1675 | ||
1685 | - | @Callable(aB) | |
1686 | - | func shutdownPool (aI) = valueOrElse(aC(aB), if (!(isDefined(getString(this, (P + aI))))) | |
1676 | + | @Callable(aC) | |
1677 | + | func shutdownWX () = valueOrElse(aD(aC), if (!(valueOrElse(getBoolean(this, (b + X)), true))) | |
1678 | + | then throw("WX already shutdown") | |
1679 | + | else [BooleanEntry((b + X), false)]) | |
1680 | + | ||
1681 | + | ||
1682 | + | ||
1683 | + | @Callable(aC) | |
1684 | + | func activatePool (aJ) = valueOrElse(aD(aC), if (!(isDefined(getString(this, (P + aJ))))) | |
1687 | 1685 | then throw("Unknown pool") | |
1688 | - | else if (!(valueOrElse(getBoolean(this, (aI + X)), true))) | |
1686 | + | else if (valueOrElse(getBoolean(this, (aJ + Y)), true)) | |
1687 | + | then throw("Pool already active") | |
1688 | + | else [BooleanEntry((aJ + Y), true)]) | |
1689 | + | ||
1690 | + | ||
1691 | + | ||
1692 | + | @Callable(aC) | |
1693 | + | func shutdownPool (aJ) = valueOrElse(aD(aC), if (!(isDefined(getString(this, (P + aJ))))) | |
1694 | + | then throw("Unknown pool") | |
1695 | + | else if (!(valueOrElse(getBoolean(this, (aJ + Y)), true))) | |
1689 | 1696 | then throw("Pool already shutdown") | |
1690 | - | else [BooleanEntry(( | |
1697 | + | else [BooleanEntry((aJ + Y), false)]) | |
1691 | 1698 | ||
1692 | 1699 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = "SF" | |
5 | 5 | ||
6 | 6 | let b = "WX" | |
7 | 7 | ||
8 | 8 | let c = "cpmm" | |
9 | 9 | ||
10 | 10 | let d = "flat" | |
11 | 11 | ||
12 | 12 | let e = "capNoLoan" | |
13 | 13 | ||
14 | 14 | let f = "capLoan" | |
15 | 15 | ||
16 | 16 | let g = "stopLossNoLoan" | |
17 | 17 | ||
18 | 18 | let h = "stopLossLoan" | |
19 | 19 | ||
20 | 20 | let i = "loan" | |
21 | 21 | ||
22 | 22 | let j = "noLoan" | |
23 | 23 | ||
24 | 24 | let k = "noFee" | |
25 | 25 | ||
26 | 26 | let l = 100000000 | |
27 | 27 | ||
28 | 28 | let m = 10000000000 | |
29 | 29 | ||
30 | 30 | let n = toBigInt(10000000000000000) | |
31 | 31 | ||
32 | 32 | let o = 1000000 | |
33 | 33 | ||
34 | 34 | let p = "A_asset_balance" | |
35 | 35 | ||
36 | 36 | let q = "B_asset_balance" | |
37 | 37 | ||
38 | 38 | let r = "A_asset_id" | |
39 | 39 | ||
40 | 40 | let s = "B_asset_id" | |
41 | 41 | ||
42 | 42 | let t = "share_asset_id" | |
43 | 43 | ||
44 | 44 | let u = "share_asset_supply" | |
45 | 45 | ||
46 | 46 | let v = "commission" | |
47 | 47 | ||
48 | 48 | let w = "_userPosition" | |
49 | 49 | ||
50 | 50 | let x = "_userPositionPool" | |
51 | 51 | ||
52 | 52 | let y = "_userPositionBorrowAmount" | |
53 | 53 | ||
54 | 54 | let z = "_userPositionBorrowAssetId" | |
55 | 55 | ||
56 | 56 | let A = "_userPositionNumber" | |
57 | 57 | ||
58 | 58 | let B = "_userPositionInterest" | |
59 | 59 | ||
60 | 60 | let C = "_poolTotal" | |
61 | 61 | ||
62 | 62 | let D = "_poolTotalLoan" | |
63 | 63 | ||
64 | 64 | let E = "_poolInterestLoan" | |
65 | 65 | ||
66 | 66 | let F = "_poolInterestNoLoan" | |
67 | 67 | ||
68 | 68 | let G = "_poolCanBorrow" | |
69 | 69 | ||
70 | 70 | let H = "_axlyFeeNoLoan" | |
71 | 71 | ||
72 | 72 | let I = "_axlyFeeWithLoan" | |
73 | 73 | ||
74 | 74 | let J = "_axlyFeeCapNoLoan" | |
75 | 75 | ||
76 | 76 | let K = "_axlyFeeCapWithLoan" | |
77 | 77 | ||
78 | 78 | let L = "_axlyFeeStoplossWithLoan" | |
79 | 79 | ||
80 | 80 | let M = "_axlyFeeStoplossNoLoan" | |
81 | 81 | ||
82 | 82 | let N = "_request_id" | |
83 | 83 | ||
84 | 84 | let O = "requests_iter" | |
85 | 85 | ||
86 | 86 | let P = "pool_" | |
87 | 87 | ||
88 | - | let Q = "_ | |
88 | + | let Q = "_poolType" | |
89 | 89 | ||
90 | - | let R = "_ | |
90 | + | let R = "_poolShareId" | |
91 | 91 | ||
92 | - | let S = " | |
92 | + | let S = "_poolCapChange" | |
93 | 93 | ||
94 | - | let T = "_ | |
94 | + | let T = "last_price" | |
95 | 95 | ||
96 | - | let U = " | |
96 | + | let U = "_twap5B" | |
97 | 97 | ||
98 | - | let V = " | |
98 | + | let V = "active" | |
99 | 99 | ||
100 | - | let W = " | |
100 | + | let W = "activeUsers" | |
101 | 101 | ||
102 | - | let X = "_ | |
102 | + | let X = "_active" | |
103 | 103 | ||
104 | - | let Y = "_ | |
104 | + | let Y = "_activePool" | |
105 | 105 | ||
106 | - | let Z = "_ | |
106 | + | let Z = "_stopLoss" | |
107 | 107 | ||
108 | - | let aa = " | |
108 | + | let aa = "_fallbackExchangeSwopfi" | |
109 | 109 | ||
110 | - | let ab = " | |
110 | + | let ab = "axly_money_box" | |
111 | 111 | ||
112 | - | let ac = " | |
112 | + | let ac = "swopfi_farming_addr" | |
113 | 113 | ||
114 | - | let ad = " | |
114 | + | let ad = "lend_service_addr" | |
115 | 115 | ||
116 | - | let ae = " | |
116 | + | let ae = "admin_call_pub_key" | |
117 | 117 | ||
118 | - | let af = " | |
118 | + | let af = "price_oracle" | |
119 | 119 | ||
120 | - | let ag = " | |
120 | + | let ag = "exchange_contract" | |
121 | 121 | ||
122 | - | let ah = " | |
122 | + | let ah = "wx_swap_contract" | |
123 | 123 | ||
124 | - | let ai = " | |
124 | + | let ai = "swop_id" | |
125 | 125 | ||
126 | - | let aj = " | |
126 | + | let aj = "wx_id" | |
127 | 127 | ||
128 | - | let ak = "group1_ | |
128 | + | let ak = "group1_admin1_pub_key" | |
129 | 129 | ||
130 | - | let al = " | |
130 | + | let al = "group1_admin2_pub_key" | |
131 | 131 | ||
132 | - | let am = "group2_ | |
132 | + | let am = "group2_admin1_pub_key" | |
133 | 133 | ||
134 | - | let an = | |
134 | + | let an = "group2_admin2_pub_key" | |
135 | 135 | ||
136 | - | let ao = Address(fromBase58String(valueOrErrorMessage(getString(this, | |
136 | + | let ao = Address(fromBase58String(valueOrErrorMessage(getString(this, ab), "No axly moneyBox address"))) | |
137 | 137 | ||
138 | - | let ap = Address(fromBase58String(valueOrErrorMessage(getString(this, | |
138 | + | let ap = Address(fromBase58String(valueOrErrorMessage(getString(this, ag), "No exchange contract address"))) | |
139 | 139 | ||
140 | - | let aq = Address(fromBase58String(valueOrErrorMessage(getString(this, | |
140 | + | let aq = Address(fromBase58String(valueOrErrorMessage(getString(this, af), "No price oracle address"))) | |
141 | 141 | ||
142 | - | let ar = fromBase58String(valueOrErrorMessage(getString(this, ah), "No | |
142 | + | let ar = Address(fromBase58String(valueOrErrorMessage(getString(this, ah), "No wx swap address"))) | |
143 | 143 | ||
144 | - | let as = fromBase58String(valueOrErrorMessage(getString(this, ai), "No | |
144 | + | let as = fromBase58String(valueOrErrorMessage(getString(this, ai), "No swop id")) | |
145 | 145 | ||
146 | - | let at = fromBase58String(valueOrErrorMessage(getString(this, aj), " | |
146 | + | let at = fromBase58String(valueOrErrorMessage(getString(this, aj), "No wx id")) | |
147 | 147 | ||
148 | - | let au = fromBase58String(valueOrErrorMessage(getString(this, ak), "Can't get | |
148 | + | let au = fromBase58String(valueOrErrorMessage(getString(this, ak), "Can't get kGroup1Admin1PK")) | |
149 | 149 | ||
150 | - | let av = fromBase58String(valueOrErrorMessage(getString(this, al), "Can't get | |
150 | + | let av = fromBase58String(valueOrErrorMessage(getString(this, al), "Can't get kGroup1Admin2PK")) | |
151 | 151 | ||
152 | 152 | let aw = fromBase58String(valueOrErrorMessage(getString(this, am), "Can't get kGroup2Admin1PK")) | |
153 | 153 | ||
154 | - | let ax = fromBase58String(valueOrErrorMessage(getString(this, | |
154 | + | let ax = fromBase58String(valueOrErrorMessage(getString(this, an), "Can't get kGroup2Admin1PK")) | |
155 | 155 | ||
156 | - | func ay () = throw("Wrong pool type") | |
156 | + | let ay = fromBase58String(valueOrErrorMessage(getString(this, ae), "Can't get operatorPK")) | |
157 | + | ||
158 | + | func az () = throw("Wrong pool type") | |
157 | 159 | ||
158 | 160 | ||
159 | - | func | |
161 | + | func aA () = Address(fromBase58String(valueOrErrorMessage(getString(this, ad), "Can't get lend service addr"))) | |
160 | 162 | ||
161 | 163 | ||
162 | - | func | |
164 | + | func aB (aC) = if ((aC.callerPublicKey == ay)) | |
163 | 165 | then unit | |
164 | 166 | else throw("Only operator can call this function") | |
165 | 167 | ||
166 | 168 | ||
167 | - | func | |
169 | + | func aD (aC) = if (if ((aC.callerPublicKey == au)) | |
168 | 170 | then true | |
169 | - | else ( | |
171 | + | else (aC.callerPublicKey == av)) | |
170 | 172 | then unit | |
171 | 173 | else throw("Only admin group1 can call this function") | |
172 | 174 | ||
173 | 175 | ||
174 | - | func | |
176 | + | func aE (aC) = if ((aC.caller == this)) | |
175 | 177 | then unit | |
176 | 178 | else throw("Only contract itself can call this function") | |
177 | 179 | ||
178 | 180 | ||
179 | - | func | |
181 | + | func aF (aC) = if ((aC.caller == aA())) | |
180 | 182 | then unit | |
181 | 183 | else throw("Only land contract can call this function") | |
182 | 184 | ||
183 | 185 | ||
184 | - | func | |
186 | + | func aG () = if ((valueOrElse(getBoolean(this, V), true) == true)) | |
185 | 187 | then unit | |
186 | 188 | else throw("DApp is inactive at this moment") | |
187 | 189 | ||
188 | 190 | ||
189 | - | func | |
190 | - | then (valueOrElse(getBoolean(this, | |
191 | + | func aH () = if (if (valueOrElse(getBoolean(this, V), true)) | |
192 | + | then (valueOrElse(getBoolean(this, W), true) == true) | |
191 | 193 | else false) | |
192 | 194 | then unit | |
193 | 195 | else throw("DApp is inactive for users at this moment") | |
194 | 196 | ||
195 | 197 | ||
196 | - | func | |
197 | - | let | |
198 | - | let | |
199 | - | if (if ( | |
200 | - | then | |
198 | + | func aI (aJ,aK) = { | |
199 | + | let aL = valueOrElse(getBoolean(this, (aK + X)), true) | |
200 | + | let aM = valueOrElse(getBoolean(this, (aJ + Y)), true) | |
201 | + | if (if (aL) | |
202 | + | then aM | |
201 | 203 | else false) | |
202 | 204 | then true | |
203 | 205 | else false | |
204 | 206 | } | |
205 | 207 | ||
206 | 208 | ||
207 | - | func | |
208 | - | let | |
209 | - | if ($isInstanceOf( | |
209 | + | func aN (aO) = { | |
210 | + | let aP = aO | |
211 | + | if ($isInstanceOf(aP, "ByteVector")) | |
210 | 212 | then { | |
211 | - | let | |
212 | - | assetBalance(this, | |
213 | + | let aQ = aP | |
214 | + | assetBalance(this, aQ) | |
213 | 215 | } | |
214 | - | else if ($isInstanceOf( | |
216 | + | else if ($isInstanceOf(aP, "Unit")) | |
215 | 217 | then { | |
216 | - | let | |
218 | + | let aR = aP | |
217 | 219 | wavesBalance(this).available | |
218 | 220 | } | |
219 | 221 | else throw("Match error") | |
220 | 222 | } | |
221 | 223 | ||
222 | 224 | ||
223 | - | func | |
225 | + | func aS (aT) = $Tuple2(valueOrErrorMessage(getInteger(aT, p), "Can't get pool A asset balance"), valueOrErrorMessage(getInteger(aT, q), "Can't get pool B asset balance")) | |
224 | 226 | ||
225 | 227 | ||
226 | - | func | |
227 | - | let | |
228 | - | if ($isInstanceOf( | |
229 | - | then | |
230 | - | else throw(($getType( | |
228 | + | func aU (aT,aV,aW) = $Tuple2({ | |
229 | + | let aX = invoke(aT, "getAccBalanceWrapperREADONLY", [aV], nil) | |
230 | + | if ($isInstanceOf(aX, "Int")) | |
231 | + | then aX | |
232 | + | else throw(($getType(aX) + " couldn't be cast to Int")) | |
231 | 233 | }, { | |
232 | - | let | |
233 | - | if ($isInstanceOf( | |
234 | - | then | |
235 | - | else throw(($getType( | |
234 | + | let aX = invoke(aT, "getAccBalanceWrapperREADONLY", [aW], nil) | |
235 | + | if ($isInstanceOf(aX, "Int")) | |
236 | + | then aX | |
237 | + | else throw(($getType(aX) + " couldn't be cast to Int")) | |
236 | 238 | }) | |
237 | 239 | ||
238 | 240 | ||
239 | - | func | |
240 | - | then | |
241 | - | else if (( | |
242 | - | then aT | |
243 | - | else | |
241 | + | func aY (aT,aK,aV,aW) = if ((aK == a)) | |
242 | + | then aS(aT) | |
243 | + | else if ((aK == b)) | |
244 | + | then aU(aT, aV, aW) | |
245 | + | else az() | |
244 | 246 | ||
245 | 247 | ||
246 | - | func | |
247 | - | let | |
248 | - | if (( | |
248 | + | func aZ (aT) = { | |
249 | + | let ba = aS(aT) | |
250 | + | if ((ba == ba)) | |
249 | 251 | then { | |
250 | - | let | |
251 | - | let | |
252 | - | $Tuple5(valueOrErrorMessage(getString( | |
252 | + | let bb = ba._2 | |
253 | + | let bc = ba._1 | |
254 | + | $Tuple5(valueOrErrorMessage(getString(aT, r), "Can't get pool A asset id"), valueOrErrorMessage(getString(aT, s), "Can't get pool B asset id"), bc, bb, valueOrErrorMessage(getString(aT, t), "Can't get share asset id")) | |
253 | 255 | } | |
254 | 256 | else throw("Strict value is not equal to itself.") | |
255 | 257 | } | |
256 | 258 | ||
257 | 259 | ||
258 | - | func | |
259 | - | let | |
260 | - | let | |
261 | - | if ($isInstanceOf( | |
262 | - | then | |
263 | - | else throw(($getType( | |
260 | + | func bd (aT) = { | |
261 | + | let be = { | |
262 | + | let aX = invoke(aT, "getPoolConfigWrapperREADONLY", nil, nil) | |
263 | + | if ($isInstanceOf(aX, "List[Any]")) | |
264 | + | then aX | |
265 | + | else throw(($getType(aX) + " couldn't be cast to List[Any]")) | |
264 | 266 | } | |
265 | - | if (( | |
267 | + | if ((be == be)) | |
266 | 268 | then { | |
267 | - | let | |
268 | - | let | |
269 | - | if ($isInstanceOf( | |
270 | - | then | |
269 | + | let aV = valueOrErrorMessage({ | |
270 | + | let aX = be[4] | |
271 | + | if ($isInstanceOf(aX, "String")) | |
272 | + | then aX | |
271 | 273 | else unit | |
272 | 274 | }, "Can't get pool A asset id") | |
273 | - | let | |
274 | - | let | |
275 | - | if ($isInstanceOf( | |
276 | - | then | |
275 | + | let aW = valueOrErrorMessage({ | |
276 | + | let aX = be[5] | |
277 | + | if ($isInstanceOf(aX, "String")) | |
278 | + | then aX | |
277 | 279 | else unit | |
278 | 280 | }, "Can't get pool B asset id") | |
279 | - | let | |
280 | - | let | |
281 | - | if ($isInstanceOf( | |
282 | - | then | |
281 | + | let bf = valueOrErrorMessage({ | |
282 | + | let aX = be[3] | |
283 | + | if ($isInstanceOf(aX, "String")) | |
284 | + | then aX | |
283 | 285 | else unit | |
284 | 286 | }, "Can't get pool LP asset id") | |
285 | - | let | |
286 | - | if (( | |
287 | + | let bg = aU(aT, aV, aW) | |
288 | + | if ((bg == bg)) | |
287 | 289 | then { | |
288 | - | let | |
289 | - | let | |
290 | - | $Tuple5( | |
290 | + | let bb = bg._2 | |
291 | + | let bc = bg._1 | |
292 | + | $Tuple5(aV, aW, bc, bb, bf) | |
291 | 293 | } | |
292 | 294 | else throw("Strict value is not equal to itself.") | |
293 | 295 | } | |
294 | 296 | else throw("Strict value is not equal to itself.") | |
295 | 297 | } | |
296 | 298 | ||
297 | 299 | ||
298 | - | func | |
299 | - | then | |
300 | - | else if (( | |
301 | - | then | |
302 | - | else | |
300 | + | func bh (aT,aK) = if ((aK == a)) | |
301 | + | then aZ(aT) | |
302 | + | else if ((aK == b)) | |
303 | + | then bd(aT) | |
304 | + | else az() | |
303 | 305 | ||
304 | 306 | ||
305 | - | func | |
306 | - | then valueOrErrorMessage(getInteger( | |
307 | - | else if (( | |
308 | - | then valueOrErrorMessage(assetInfo(fromBase58String( | |
309 | - | else | |
307 | + | func bi (aT,aK,bf) = if ((aK == a)) | |
308 | + | then valueOrErrorMessage(getInteger(aT, u), "Can't get share asset supply") | |
309 | + | else if ((aK == b)) | |
310 | + | then valueOrErrorMessage(assetInfo(fromBase58String(bf)), "Wrong ShareId").quantity | |
311 | + | else az() | |
310 | 312 | ||
311 | 313 | ||
312 | - | func | |
314 | + | func bj (aJ) = valueOrElse(getInteger(this, (aJ + C)), 0) | |
313 | 315 | ||
314 | 316 | ||
315 | - | func | |
317 | + | func bk (aJ) = valueOrElse(getInteger(this, (aJ + D)), 0) | |
316 | 318 | ||
317 | 319 | ||
318 | - | func | |
320 | + | func bl (bm) = (valueOrElse(getInteger(this, (bm + A)), 0) + 1) | |
319 | 321 | ||
320 | 322 | ||
321 | - | func | |
322 | - | then getIntegerValue(this, ( | |
323 | - | else if (( | |
324 | - | then getIntegerValue(this, ( | |
325 | - | else if (( | |
326 | - | then getIntegerValue(this, ( | |
327 | - | else if (( | |
328 | - | then getIntegerValue(this, ( | |
329 | - | else if (( | |
323 | + | func bn (aJ,bo) = if ((bo == f)) | |
324 | + | then getIntegerValue(this, (aJ + K)) | |
325 | + | else if ((bo == e)) | |
326 | + | then getIntegerValue(this, (aJ + J)) | |
327 | + | else if ((bo == i)) | |
328 | + | then getIntegerValue(this, (aJ + I)) | |
329 | + | else if ((bo == j)) | |
330 | + | then getIntegerValue(this, (aJ + H)) | |
331 | + | else if ((bo == k)) | |
330 | 332 | then 0 | |
331 | 333 | else throw("Wrong fee type") | |
332 | 334 | ||
333 | 335 | ||
334 | - | func | |
336 | + | func bp () = Address(fromBase58String(valueOrErrorMessage(getString(this, ac), "Can't get swopfi farming addr"))) | |
335 | 337 | ||
336 | 338 | ||
337 | - | func | |
338 | - | let | |
339 | - | let | |
340 | - | Address(fromBase58String( | |
339 | + | func bq (aT) = { | |
340 | + | let br = Address(fromBase58String(valueOrErrorMessage(getString(aT, "%s__factoryContract"), "Can't get WX factory contract addr"))) | |
341 | + | let bs = split(valueOrErrorMessage(getString(br, "%s__factoryConfig"), "Can't get WX factory cfg"), "__") | |
342 | + | Address(fromBase58String(bs[1])) | |
341 | 343 | } | |
342 | 344 | ||
343 | 345 | ||
344 | - | func | |
345 | - | let | |
346 | - | if ($isInstanceOf( | |
346 | + | func bt (aO) = { | |
347 | + | let aP = aO | |
348 | + | if ($isInstanceOf(aP, "ByteVector")) | |
347 | 349 | then { | |
348 | - | let | |
349 | - | toBase58String( | |
350 | + | let aQ = aP | |
351 | + | toBase58String(aQ) | |
350 | 352 | } | |
351 | - | else if ($isInstanceOf( | |
353 | + | else if ($isInstanceOf(aP, "Unit")) | |
352 | 354 | then { | |
353 | - | let | |
355 | + | let aR = aP | |
354 | 356 | "WAVES" | |
355 | 357 | } | |
356 | 358 | else throw("Not Asset id") | |
357 | 359 | } | |
358 | 360 | ||
359 | 361 | ||
360 | - | func | |
362 | + | func bu (aO) = if ((aO == "WAVES")) | |
361 | 363 | then unit | |
362 | - | else fromBase58String( | |
364 | + | else fromBase58String(aO) | |
363 | 365 | ||
364 | 366 | ||
365 | - | func | |
367 | + | func bv (aO) = if ((aO == "WAVES")) | |
366 | 368 | then 8 | |
367 | 369 | else { | |
368 | - | let | |
369 | - | if ($isInstanceOf( | |
370 | + | let aP = assetInfo(fromBase58String(aO)) | |
371 | + | if ($isInstanceOf(aP, "Asset")) | |
370 | 372 | then { | |
371 | - | let | |
372 | - | | |
373 | + | let bw = aP | |
374 | + | bw.decimals | |
373 | 375 | } | |
374 | 376 | else throw("Can't find asset") | |
375 | 377 | } | |
376 | 378 | ||
377 | 379 | ||
378 | - | func | |
380 | + | func bx (aO) = pow(10, 0, bv(aO), 0, 0, DOWN) | |
379 | 381 | ||
380 | 382 | ||
381 | - | func | |
382 | - | func | |
383 | - | let | |
384 | - | ( | |
383 | + | func by (bz) = { | |
384 | + | func bA (bB,aO) = { | |
385 | + | let bC = valueOrElse(getInteger(aq, (aO + U)), -1) | |
386 | + | (bB :+ bC) | |
385 | 387 | } | |
386 | 388 | ||
387 | - | let | |
388 | - | let | |
389 | - | let | |
390 | - | func | |
391 | - | then | |
392 | - | else | |
389 | + | let bD = bz | |
390 | + | let bE = size(bD) | |
391 | + | let bF = nil | |
392 | + | func bG (bH,bI) = if ((bI >= bE)) | |
393 | + | then bH | |
394 | + | else bA(bH, bD[bI]) | |
393 | 395 | ||
394 | - | func | |
395 | - | then | |
396 | + | func bJ (bH,bI) = if ((bI >= bE)) | |
397 | + | then bH | |
396 | 398 | else throw("List size exceeds 50") | |
397 | 399 | ||
398 | - | | |
400 | + | bJ(bG(bG(bG(bG(bG(bG(bG(bG(bG(bG(bG(bG(bG(bG(bG(bG(bG(bG(bG(bG(bG(bG(bG(bG(bG(bG(bG(bG(bG(bG(bG(bG(bG(bG(bG(bG(bG(bG(bG(bG(bG(bG(bG(bG(bG(bG(bG(bG(bG(bG(bF, 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) | |
399 | 401 | } | |
400 | 402 | ||
401 | 403 | ||
402 | - | func | |
403 | - | let | |
404 | - | let | |
405 | - | let | |
406 | - | let | |
407 | - | let | |
408 | - | let | |
409 | - | let | |
410 | - | let | |
411 | - | let | |
412 | - | let | |
413 | - | let | |
414 | - | if (if ((0 > | |
404 | + | func bK (bf) = { | |
405 | + | let aJ = valueOrErrorMessage(getString(this, (bf + R)), "Can't find pool addr by share id") | |
406 | + | let aT = Address(fromBase58String(aJ)) | |
407 | + | let bL = valueOrErrorMessage(getString(this, (P + aJ)), "Pool is not inited") | |
408 | + | let bM = bh(aT, bL) | |
409 | + | let aV = bM._1 | |
410 | + | let aW = bM._2 | |
411 | + | let bN = bM._3 | |
412 | + | let bO = bM._4 | |
413 | + | let bP = by([aV, aW]) | |
414 | + | let bQ = bP[0] | |
415 | + | let bR = bP[1] | |
416 | + | if (if ((0 > bQ)) | |
415 | 417 | then true | |
416 | - | else (0 > | |
418 | + | else (0 > bR)) | |
417 | 419 | then -1 | |
418 | 420 | else { | |
419 | - | let | |
420 | - | let | |
421 | - | let | |
422 | - | let | |
423 | - | let | |
424 | - | fraction(bV, | |
421 | + | let bS = bi(aT, bL, bf) | |
422 | + | let bT = pow(10, 0, bv(aV), 0, 0, DOWN) | |
423 | + | let bU = pow(10, 0, bv(aW), 0, 0, DOWN) | |
424 | + | let bV = pow(10, 0, bv(bf), 0, 0, DOWN) | |
425 | + | let bW = (fraction(bN, bQ, bT) + fraction(bO, bR, bU)) | |
426 | + | fraction(bW, bV, bS) | |
425 | 427 | } | |
426 | 428 | } | |
427 | 429 | ||
428 | 430 | ||
429 | - | func | |
430 | - | func | |
431 | + | func bX (bY) = { | |
432 | + | func bA (bB,bf) = (bB :+ bK(bf)) | |
431 | 433 | ||
432 | - | let | |
433 | - | let | |
434 | - | let | |
435 | - | func | |
436 | - | then | |
437 | - | else | |
434 | + | let bD = bY | |
435 | + | let bE = size(bD) | |
436 | + | let bF = nil | |
437 | + | func bG (bH,bI) = if ((bI >= bE)) | |
438 | + | then bH | |
439 | + | else bA(bH, bD[bI]) | |
438 | 440 | ||
439 | - | func | |
440 | - | then | |
441 | + | func bJ (bH,bI) = if ((bI >= bE)) | |
442 | + | then bH | |
441 | 443 | else throw("List size exceeds 20") | |
442 | 444 | ||
443 | - | | |
445 | + | bJ(bG(bG(bG(bG(bG(bG(bG(bG(bG(bG(bG(bG(bG(bG(bG(bG(bG(bG(bG(bG(bF, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20) | |
444 | 446 | } | |
445 | 447 | ||
446 | 448 | ||
447 | - | func | |
448 | - | let | |
449 | - | let | |
450 | - | let | |
451 | - | [StringEntry( | |
449 | + | func bZ (aV,aW,bf,ca) = { | |
450 | + | let cb = by([aV, aW]) | |
451 | + | let cc = bK(bf) | |
452 | + | let bP = ([toString(cb[0]), toString(cb[1]), toString(cc)] ++ ca) | |
453 | + | [StringEntry(T, makeString(bP, ","))] | |
452 | 454 | } | |
453 | 455 | ||
454 | 456 | ||
455 | - | func | |
457 | + | func cd (bL,aT,ce,aV,cf,aW,bc,bb) = if ((bL == a)) | |
456 | 458 | then { | |
457 | - | let | |
458 | - | let | |
459 | - | if ($isInstanceOf( | |
460 | - | then | |
461 | - | else throw(($getType( | |
459 | + | let cg = { | |
460 | + | let aX = invoke(aT, "callFunction", ["calcLPReplenishTwoTokensREADONLY", [toString(ce), toString(cf)]], nil) | |
461 | + | if ($isInstanceOf(aX, "List[Any]")) | |
462 | + | then aX | |
463 | + | else throw(($getType(aX) + " couldn't be cast to List[Any]")) | |
462 | 464 | } | |
463 | - | if (( | |
465 | + | if ((cg == cg)) | |
464 | 466 | then $Tuple5({ | |
465 | - | let | |
466 | - | if ($isInstanceOf( | |
467 | - | then | |
468 | - | else throw(($getType( | |
467 | + | let aX = cg[3] | |
468 | + | if ($isInstanceOf(aX, "Int")) | |
469 | + | then aX | |
470 | + | else throw(($getType(aX) + " couldn't be cast to Int")) | |
469 | 471 | }, { | |
470 | - | let | |
471 | - | if ($isInstanceOf( | |
472 | - | then | |
473 | - | else throw(($getType( | |
472 | + | let aX = cg[4] | |
473 | + | if ($isInstanceOf(aX, "Int")) | |
474 | + | then aX | |
475 | + | else throw(($getType(aX) + " couldn't be cast to Int")) | |
474 | 476 | }, { | |
475 | - | let | |
476 | - | if ($isInstanceOf( | |
477 | - | then | |
478 | - | else throw(($getType( | |
479 | - | }, | |
480 | - | let | |
481 | - | if ($isInstanceOf( | |
482 | - | then | |
483 | - | else throw(($getType( | |
477 | + | let aX = cg[1] | |
478 | + | if ($isInstanceOf(aX, "Int")) | |
479 | + | then aX | |
480 | + | else throw(($getType(aX) + " couldn't be cast to Int")) | |
481 | + | }, bt(cg[2]), { | |
482 | + | let aX = cg[0] | |
483 | + | if ($isInstanceOf(aX, "Int")) | |
484 | + | then aX | |
485 | + | else throw(($getType(aX) + " couldn't be cast to Int")) | |
484 | 486 | }) | |
485 | 487 | else throw("Strict value is not equal to itself.") | |
486 | 488 | } | |
487 | - | else if (( | |
489 | + | else if ((bL == b)) | |
488 | 490 | then { | |
489 | - | let | |
490 | - | let | |
491 | - | if ($isInstanceOf( | |
492 | - | then | |
493 | - | else throw(($getType( | |
491 | + | let ch = $Tuple2(split({ | |
492 | + | let aX = invoke(aT, "evaluatePutByAmountAssetREADONLY", [ce], nil) | |
493 | + | if ($isInstanceOf(aX, "String")) | |
494 | + | then aX | |
495 | + | else throw(($getType(aX) + " couldn't be cast to String")) | |
494 | 496 | }, "__"), split({ | |
495 | - | let | |
496 | - | if ($isInstanceOf( | |
497 | - | then | |
498 | - | else throw(($getType( | |
497 | + | let aX = invoke(aT, "evaluatePutByPriceAssetREADONLY", [cf], nil) | |
498 | + | if ($isInstanceOf(aX, "String")) | |
499 | + | then aX | |
500 | + | else throw(($getType(aX) + " couldn't be cast to String")) | |
499 | 501 | }, "__")) | |
500 | - | if (( | |
502 | + | if ((ch == ch)) | |
501 | 503 | then { | |
502 | - | let | |
503 | - | let | |
504 | - | let | |
505 | - | let | |
506 | - | if (( | |
504 | + | let ci = ch._2 | |
505 | + | let cj = ch._1 | |
506 | + | let ck = parseIntValue(cj[1]) | |
507 | + | let cl = parseIntValue(ci[1]) | |
508 | + | if ((cl > ck)) | |
507 | 509 | then { | |
508 | - | let | |
509 | - | $Tuple5( | |
510 | + | let cm = parseIntValue(cj[8]) | |
511 | + | $Tuple5(ce, cm, (cf - cm), aW, cl) | |
510 | 512 | } | |
511 | 513 | else { | |
512 | - | let | |
513 | - | $Tuple5( | |
514 | + | let cm = parseIntValue(ci[7]) | |
515 | + | $Tuple5(cm, cf, (ce - cm), aV, ck) | |
514 | 516 | } | |
515 | 517 | } | |
516 | 518 | else throw("Strict value is not equal to itself.") | |
517 | 519 | } | |
518 | - | else | |
520 | + | else az() | |
519 | 521 | ||
520 | 522 | ||
521 | - | func | |
522 | - | let | |
523 | - | if (( | |
524 | - | then invoke( | |
525 | - | else if (( | |
526 | - | then invoke( | |
527 | - | else | |
523 | + | func cn (aT,bL,ce,aV,cf,aW) = { | |
524 | + | let co = [AttachedPayment(bu(aV), ce), AttachedPayment(bu(aW), cf)] | |
525 | + | if ((bL == a)) | |
526 | + | then invoke(aT, "callFunction", ["replenishWithTwoTokens", ["false", "0"]], co) | |
527 | + | else if ((bL == b)) | |
528 | + | then invoke(aT, "put", [1000000, false], co) | |
529 | + | else az() | |
528 | 530 | } | |
529 | 531 | ||
530 | 532 | ||
531 | - | func co (aS,bK,cl,cp) = { | |
532 | - | let cn = [AttachedPayment(bt(cp), cl)] | |
533 | - | if ((bK == a)) | |
534 | - | then invoke(aS, "callFunction", ["replenishWithOneToken", ["0", "false", "0"]], cn) | |
535 | - | else if ((bK == b)) | |
536 | - | then invoke(aS, "putOneTkn", [0, false], cn) | |
537 | - | else ay() | |
533 | + | func cp (aT,bL,cm,cq) = { | |
534 | + | let co = [AttachedPayment(bu(cq), cm)] | |
535 | + | if ((bL == a)) | |
536 | + | then invoke(aT, "callFunction", ["replenishWithOneToken", ["0", "false", "0"]], co) | |
537 | + | else if ((bL == b)) | |
538 | + | then { | |
539 | + | let cr = if ((valueOrElse(getString(this, (toString(aT) + Q)), "cpmm") == d)) | |
540 | + | then "putOneTknV2" | |
541 | + | else "putOneTkn" | |
542 | + | invoke(aT, cr, [0, false], co) | |
543 | + | } | |
544 | + | else az() | |
538 | 545 | } | |
539 | 546 | ||
540 | 547 | ||
541 | - | func | |
542 | - | let | |
543 | - | if (( | |
544 | - | then invoke( | |
545 | - | else if (( | |
546 | - | then invoke( | |
547 | - | else | |
548 | + | func cs (aJ,bL,bf,ct) = { | |
549 | + | let co = [AttachedPayment(fromBase58String(bf), ct)] | |
550 | + | if ((bL == a)) | |
551 | + | then invoke(bp(), "lockShareTokens", [aJ, 0], co) | |
552 | + | else if ((bL == b)) | |
553 | + | then invoke(bq(addressFromStringValue(aJ)), "stake", nil, co) | |
554 | + | else az() | |
548 | 555 | } | |
549 | 556 | ||
550 | 557 | ||
551 | - | func | |
552 | - | let | |
553 | - | then $Tuple3( | |
554 | - | else if (( | |
555 | - | then $Tuple3( | |
556 | - | else | |
557 | - | let | |
558 | - | let | |
559 | - | let | |
560 | - | let | |
561 | - | if (( | |
562 | - | then | |
558 | + | func cu (aJ,bL,bf,ct) = { | |
559 | + | let cv = if ((bL == a)) | |
560 | + | then $Tuple3(bp(), "withdrawShareTokens", [aJ, ct]) | |
561 | + | else if ((bL == b)) | |
562 | + | then $Tuple3(bq(Address(fromBase58String(aJ))), "unstake", [bf, ct]) | |
563 | + | else az() | |
564 | + | let cw = cv._1 | |
565 | + | let cx = cv._2 | |
566 | + | let cy = cv._3 | |
567 | + | let cz = invoke(cw, cx, cy, nil) | |
568 | + | if ((cz == cz)) | |
569 | + | then ct | |
563 | 570 | else throw("Strict value is not equal to itself.") | |
564 | 571 | } | |
565 | 572 | ||
566 | 573 | ||
567 | - | func | |
568 | - | let | |
569 | - | let | |
570 | - | let | |
571 | - | let | |
572 | - | let | |
574 | + | func cA (aJ,cB,cC,bc,bb,cD,cE) = { | |
575 | + | let aT = Address(fromBase58String(aJ)) | |
576 | + | let cF = 1000000 | |
577 | + | let cG = getIntegerValue(aT, v) | |
578 | + | let cH = fraction(cD, cF, (cF - cG), CEILING) | |
579 | + | let cI = if ((cE == cB)) | |
573 | 580 | then { | |
574 | - | let | |
575 | - | $Tuple2( | |
581 | + | let cJ = fraction(cH, bb, (bc - cH), CEILING) | |
582 | + | $Tuple2(cJ, cC) | |
576 | 583 | } | |
577 | 584 | else { | |
578 | - | let | |
579 | - | $Tuple2( | |
585 | + | let cJ = fraction(cH, bc, (bb - cH), CEILING) | |
586 | + | $Tuple2(cJ, cB) | |
580 | 587 | } | |
581 | - | let | |
582 | - | let | |
583 | - | $Tuple2( | |
588 | + | let cJ = cI._1 | |
589 | + | let cK = cI._2 | |
590 | + | $Tuple2(cK, cJ) | |
584 | 591 | } | |
585 | 592 | ||
586 | 593 | ||
587 | - | func | |
588 | - | let | |
589 | - | let | |
590 | - | let | |
591 | - | let | |
592 | - | let | |
593 | - | if ($isInstanceOf( | |
594 | + | func cL (aJ) = { | |
595 | + | let aT = addressFromStringValue(aJ) | |
596 | + | let br = addressFromStringValue(valueOrErrorMessage(getString(aT, "%s__factoryContract"), "Can't get WX factory contract addr")) | |
597 | + | let cM = value(getInteger(ar, "%s__poolFee")) | |
598 | + | let cN = value(getInteger(ar, "%s__protocolFee")) | |
599 | + | let aP = invoke(br, "getSwapFeeREADONLY", [toString(aT)], nil) | |
600 | + | if ($isInstanceOf(aP, "(Int, Int)")) | |
594 | 601 | then { | |
595 | - | let | |
596 | - | $Tuple2( | |
602 | + | let cO = aP | |
603 | + | $Tuple2(cO._1, cO._2) | |
597 | 604 | } | |
598 | - | else $Tuple2( | |
605 | + | else $Tuple2(cM, cN) | |
599 | 606 | } | |
600 | 607 | ||
601 | 608 | ||
602 | - | func | |
603 | - | let | |
604 | - | let | |
605 | - | let | |
606 | - | let | |
607 | - | let | |
609 | + | func cP (aJ,cB,cC,bc,bb,cD,cE) = { | |
610 | + | let cQ = cL(aJ) | |
611 | + | let cR = cQ._1 | |
612 | + | let cS = cQ._2 | |
613 | + | let cT = toBigInt(100000000) | |
614 | + | let cU = if ((cE == cB)) | |
608 | 615 | then { | |
609 | - | let | |
610 | - | $Tuple2( | |
616 | + | let cJ = fraction(cD, bb, (bc - cD)) | |
617 | + | $Tuple2(cJ, cC) | |
611 | 618 | } | |
612 | 619 | else { | |
613 | - | let | |
614 | - | $Tuple2( | |
620 | + | let cJ = fraction(cD, bc, (bb - cD)) | |
621 | + | $Tuple2(cJ, cB) | |
615 | 622 | } | |
616 | - | let | |
617 | - | let | |
618 | - | let | |
619 | - | $Tuple2( | |
623 | + | let cJ = cU._1 | |
624 | + | let cK = cU._2 | |
625 | + | let cV = toInt(fraction(toBigInt(cJ), cT, (cT - toBigInt((cS + cR))), CEILING)) | |
626 | + | $Tuple2(cK, cV) | |
620 | 627 | } | |
621 | 628 | ||
622 | 629 | ||
623 | - | func | |
624 | - | let | |
625 | - | if (if (( | |
630 | + | func cW (bL,aJ,cB,cC,bc,bb,cD,cE) = { | |
631 | + | let cX = valueOrElse(getString(this, (aJ + aa)), "") | |
632 | + | if (if ((bL == a)) | |
626 | 633 | then true | |
627 | - | else ( | |
634 | + | else (cX != "")) | |
628 | 635 | then { | |
629 | - | let | |
630 | - | then $Tuple3(bb, | |
636 | + | let cY = if ((cX == "")) | |
637 | + | then $Tuple3(bc, bb, aJ) | |
631 | 638 | else { | |
632 | - | let | |
633 | - | let | |
634 | - | let | |
635 | - | $Tuple3( | |
639 | + | let cZ = aS(addressFromStringValue(cX)) | |
640 | + | let da = cZ._1 | |
641 | + | let db = cZ._2 | |
642 | + | $Tuple3(da, db, cX) | |
636 | 643 | } | |
637 | - | let | |
638 | - | let | |
639 | - | let | |
640 | - | let | |
641 | - | let | |
642 | - | let | |
643 | - | invoke(addressFromStringValue( | |
644 | + | let dc = cY._1 | |
645 | + | let dd = cY._2 | |
646 | + | let de = cY._3 | |
647 | + | let df = cA(de, cB, cC, dc, dd, cD, cE) | |
648 | + | let cK = df._1 | |
649 | + | let cJ = df._2 | |
650 | + | invoke(addressFromStringValue(de), "callFunction", ["exchange", [toString(cD)]], [AttachedPayment(bu(cK), cJ)]) | |
644 | 651 | } | |
645 | - | else if (( | |
652 | + | else if ((bL == b)) | |
646 | 653 | then { | |
647 | - | let | |
648 | - | let | |
649 | - | let | |
650 | - | invoke( | |
654 | + | let dg = cP(aJ, cB, cC, bc, bb, cD, cE) | |
655 | + | let cK = dg._1 | |
656 | + | let cJ = dg._2 | |
657 | + | invoke(ar, "swap", [cD, cE, toString(this)], [AttachedPayment(bu(cK), cJ)]) | |
651 | 658 | } | |
652 | - | else | |
659 | + | else az() | |
653 | 660 | } | |
654 | 661 | ||
655 | 662 | ||
656 | - | func | |
657 | - | let | |
663 | + | func dh (aT,bL,bf,di) = { | |
664 | + | let dj = if ((bL == a)) | |
658 | 665 | then { | |
659 | - | let | |
660 | - | let | |
661 | - | if ($isInstanceOf( | |
662 | - | then | |
663 | - | else throw(($getType( | |
666 | + | let cz = { | |
667 | + | let aX = invoke(aT, "callFunction", ["withdrawREADONLY", [toString(di)]], nil) | |
668 | + | if ($isInstanceOf(aX, "List[Any]")) | |
669 | + | then aX | |
670 | + | else throw(($getType(aX) + " couldn't be cast to List[Any]")) | |
664 | 671 | } | |
665 | - | if (( | |
672 | + | if ((cz == cz)) | |
666 | 673 | then $Tuple2({ | |
667 | - | let | |
668 | - | if ($isInstanceOf( | |
669 | - | then | |
670 | - | else throw(($getType( | |
674 | + | let aX = cz[0] | |
675 | + | if ($isInstanceOf(aX, "Int")) | |
676 | + | then aX | |
677 | + | else throw(($getType(aX) + " couldn't be cast to Int")) | |
671 | 678 | }, { | |
672 | - | let | |
673 | - | if ($isInstanceOf( | |
674 | - | then | |
675 | - | else throw(($getType( | |
679 | + | let aX = cz[1] | |
680 | + | if ($isInstanceOf(aX, "Int")) | |
681 | + | then aX | |
682 | + | else throw(($getType(aX) + " couldn't be cast to Int")) | |
676 | 683 | }) | |
677 | 684 | else throw("Strict value is not equal to itself.") | |
678 | 685 | } | |
679 | - | else if (( | |
686 | + | else if ((bL == b)) | |
680 | 687 | then { | |
681 | - | let | |
682 | - | let | |
683 | - | if ($isInstanceOf( | |
684 | - | then | |
685 | - | else throw(($getType( | |
688 | + | let cz = split({ | |
689 | + | let aX = invoke(aT, "evaluateGetREADONLY", [bf, di], nil) | |
690 | + | if ($isInstanceOf(aX, "String")) | |
691 | + | then aX | |
692 | + | else throw(($getType(aX) + " couldn't be cast to String")) | |
686 | 693 | }, "__") | |
687 | - | if (( | |
688 | - | then $Tuple2(parseIntValue( | |
694 | + | if ((cz == cz)) | |
695 | + | then $Tuple2(parseIntValue(cz[1]), parseIntValue(cz[2])) | |
689 | 696 | else throw("Strict value is not equal to itself.") | |
690 | 697 | } | |
691 | - | else | |
692 | - | let | |
693 | - | let | |
694 | - | $Tuple2( | |
698 | + | else az() | |
699 | + | let dk = dj._1 | |
700 | + | let dl = dj._2 | |
701 | + | $Tuple2(dk, dl) | |
695 | 702 | } | |
696 | 703 | ||
697 | 704 | ||
698 | - | func | |
705 | + | func dm (bL,aJ) = if ((bL == a)) | |
699 | 706 | then { | |
700 | - | let | |
701 | - | if (( | |
707 | + | let dn = aN(as) | |
708 | + | if ((dn == dn)) | |
702 | 709 | then { | |
703 | - | let | |
704 | - | if (( | |
710 | + | let cz = invoke(bp(), "claim", [aJ], nil) | |
711 | + | if ((cz == cz)) | |
705 | 712 | then { | |
706 | - | let | |
707 | - | $Tuple2(( | |
713 | + | let do = aN(as) | |
714 | + | $Tuple2((do - dn), as) | |
708 | 715 | } | |
709 | 716 | else throw("Strict value is not equal to itself.") | |
710 | 717 | } | |
711 | 718 | else throw("Strict value is not equal to itself.") | |
712 | 719 | } | |
713 | - | else if (( | |
720 | + | else if ((bL == b)) | |
714 | 721 | then { | |
715 | - | let | |
716 | - | let | |
717 | - | let | |
718 | - | let | |
719 | - | let | |
720 | - | let | |
721 | - | let | |
722 | - | if (( | |
722 | + | let dp = bd(addressFromStringValue(aJ)) | |
723 | + | let aV = dp._1 | |
724 | + | let aW = dp._2 | |
725 | + | let dq = dp._3 | |
726 | + | let dr = dp._4 | |
727 | + | let ds = dp._5 | |
728 | + | let dn = aN(at) | |
729 | + | if ((dn == dn)) | |
723 | 730 | then { | |
724 | - | let | |
725 | - | if (( | |
731 | + | let cz = invoke(bq(addressFromStringValue(aJ)), "claimWx", [ds], nil) | |
732 | + | if ((cz == cz)) | |
726 | 733 | then { | |
727 | - | let | |
728 | - | $Tuple2(( | |
734 | + | let do = aN(at) | |
735 | + | $Tuple2((do - dn), at) | |
729 | 736 | } | |
730 | 737 | else throw("Strict value is not equal to itself.") | |
731 | 738 | } | |
732 | 739 | else throw("Strict value is not equal to itself.") | |
733 | 740 | } | |
734 | - | else | |
741 | + | else az() | |
735 | 742 | ||
736 | 743 | ||
737 | - | func | |
738 | - | let | |
739 | - | if (( | |
744 | + | func dt (bL,aJ,bo,ce,aV,cf,aW,bc,bb,du) = { | |
745 | + | let dv = aN(fromBase58String(du)) | |
746 | + | if ((dv == dv)) | |
740 | 747 | then { | |
741 | - | let | |
742 | - | let | |
743 | - | then ( | |
748 | + | let aT = addressFromStringValue(aJ) | |
749 | + | let dw = if (if ((ce > 0)) | |
750 | + | then (cf > 0) | |
744 | 751 | else false) | |
745 | 752 | then { | |
746 | - | let | |
747 | - | let | |
748 | - | let | |
749 | - | let | |
750 | - | let | |
751 | - | let | |
752 | - | if (( | |
753 | - | then $Tuple2( | |
753 | + | let dx = cd(bL, aT, ce, aV, cf, aW, bc, bb) | |
754 | + | let dy = dx._1 | |
755 | + | let dz = dx._2 | |
756 | + | let dA = dx._3 | |
757 | + | let dB = dx._4 | |
758 | + | let cz = cn(aT, bL, dy, aV, dz, aW) | |
759 | + | if ((cz == cz)) | |
760 | + | then $Tuple2(dA, dB) | |
754 | 761 | else throw("Strict value is not equal to itself.") | |
755 | 762 | } | |
756 | - | else if (( | |
757 | - | then $Tuple2( | |
758 | - | else if (( | |
759 | - | then $Tuple2( | |
763 | + | else if ((ce > 0)) | |
764 | + | then $Tuple2(ce, aV) | |
765 | + | else if ((cf > 0)) | |
766 | + | then $Tuple2(cf, aW) | |
760 | 767 | else throw("pmts must be > 0") | |
761 | - | let | |
762 | - | let | |
763 | - | let | |
764 | - | then | |
768 | + | let dA = dw._1 | |
769 | + | let dB = dw._2 | |
770 | + | let cz = if ((dA > 0)) | |
771 | + | then cp(aT, bL, dA, dB) | |
765 | 772 | else nil | |
766 | - | if (( | |
773 | + | if ((cz == cz)) | |
767 | 774 | then { | |
768 | - | let | |
769 | - | let | |
770 | - | let | |
771 | - | let | |
772 | - | if ((0 >= | |
775 | + | let dC = aN(fromBase58String(du)) | |
776 | + | let dD = (dC - dv) | |
777 | + | let dE = fraction(dD, bn(aJ, bo), o) | |
778 | + | let dF = (dD - dE) | |
779 | + | if ((0 >= dF)) | |
773 | 780 | then throw("amount of staked sharetokens must be > 0") | |
774 | 781 | else { | |
775 | - | let | |
776 | - | if (( | |
777 | - | then $Tuple2( | |
782 | + | let dG = cs(aJ, bL, du, dF) | |
783 | + | if ((dG == dG)) | |
784 | + | then $Tuple2(dF, dE) | |
778 | 785 | else throw("Strict value is not equal to itself.") | |
779 | 786 | } | |
780 | 787 | } | |
781 | 788 | else throw("Strict value is not equal to itself.") | |
782 | 789 | } | |
783 | 790 | else throw("Strict value is not equal to itself.") | |
784 | 791 | } | |
785 | 792 | ||
786 | 793 | ||
787 | - | func | |
788 | - | let | |
789 | - | let | |
790 | - | let | |
791 | - | then $Tuple2(getIntegerValue(this, ( | |
792 | - | else $Tuple2(getIntegerValue(this, ( | |
793 | - | let | |
794 | - | let | |
795 | - | [IntegerEntry(( | |
794 | + | func dH (aJ,bm,dI,dE,dJ,bf,aK,dK) = { | |
795 | + | let dL = bj(aJ) | |
796 | + | let dM = bk(aJ) | |
797 | + | let dN = if (dK) | |
798 | + | then $Tuple2(getIntegerValue(this, (aJ + E)), (dM + dI)) | |
799 | + | else $Tuple2(getIntegerValue(this, (aJ + F)), dM) | |
800 | + | let dO = dN._1 | |
801 | + | let dP = dN._2 | |
802 | + | [IntegerEntry((aJ + C), (dL + dI)), IntegerEntry((aJ + D), dP), IntegerEntry((((((aJ + "_") + bm) + "_") + toString(dJ)) + w), dI), IntegerEntry((((((aJ + "_") + bm) + "_") + toString(dJ)) + B), dO), StringEntry((((bm + "_") + toString(dJ)) + x), aJ), IntegerEntry((bm + A), dJ), ScriptTransfer(ao, dE, fromBase58String(bf))] | |
796 | 803 | } | |
797 | 804 | ||
798 | 805 | ||
799 | - | func | |
806 | + | func dQ (bB,dR) = (bB :+ parseIntValue(dR)) | |
800 | 807 | ||
801 | 808 | ||
802 | - | func | |
803 | - | let | |
804 | - | let | |
805 | - | let | |
806 | - | if (( | |
809 | + | func dS (dT,dU) = { | |
810 | + | let dV = addressFromStringValue(dT[1]) | |
811 | + | let dW = split(dT[2], "|") | |
812 | + | let dX = aN(bu(dU)) | |
813 | + | if ((dX == dX)) | |
807 | 814 | then { | |
808 | - | let | |
809 | - | let | |
810 | - | let | |
811 | - | if (( | |
812 | - | then ( | |
815 | + | let cm = [AttachedPayment(bu(dW[0]), parseIntValue(dW[1]))] | |
816 | + | let dY = dT[3] | |
817 | + | let cz = invoke(dV, "callFunction", ["exchange", [dY]], cm) | |
818 | + | if ((cz == cz)) | |
819 | + | then (aN(bu(dU)) - dX) | |
813 | 820 | else throw("Strict value is not equal to itself.") | |
814 | 821 | } | |
815 | 822 | else throw("Strict value is not equal to itself.") | |
816 | 823 | } | |
817 | 824 | ||
818 | 825 | ||
819 | - | func | |
820 | - | let | |
821 | - | let | |
822 | - | if (( | |
826 | + | func dZ (dT,dU) = { | |
827 | + | let dV = addressFromStringValue(dT[1]) | |
828 | + | let dX = aN(bu(dU)) | |
829 | + | if ((dX == dX)) | |
823 | 830 | then { | |
824 | - | let | |
825 | - | let | |
826 | - | [AttachedPayment(fromBase58String( | |
831 | + | let cm = { | |
832 | + | let dW = split(dT[2], "|") | |
833 | + | [AttachedPayment(fromBase58String(dW[0]), parseIntValue(dW[1]))] | |
827 | 834 | } | |
828 | - | let | |
829 | - | let | |
830 | - | let | |
831 | - | let | |
832 | - | let | |
833 | - | let | |
834 | - | let | |
835 | - | let | |
836 | - | func | |
837 | - | then | |
838 | - | else | |
835 | + | let ea = { | |
836 | + | let eb = split(dT[3], "|") | |
837 | + | let ec = split(eb[0], ",") | |
838 | + | let ed = split(eb[1], ",") | |
839 | + | let ee = { | |
840 | + | let bD = split(eb[2], ",") | |
841 | + | let bE = size(bD) | |
842 | + | let bF = nil | |
843 | + | func bG (bH,bI) = if ((bI >= bE)) | |
844 | + | then bH | |
845 | + | else dQ(bH, bD[bI]) | |
839 | 846 | ||
840 | - | func | |
841 | - | then | |
847 | + | func bJ (bH,bI) = if ((bI >= bE)) | |
848 | + | then bH | |
842 | 849 | else throw("List size exceeds 3") | |
843 | 850 | ||
844 | - | | |
851 | + | bJ(bG(bG(bG(bF, 0), 1), 2), 3) | |
845 | 852 | } | |
846 | - | let | |
847 | - | let | |
848 | - | let | |
849 | - | let | |
850 | - | func | |
851 | - | then | |
852 | - | else | |
853 | + | let ef = { | |
854 | + | let bD = split(eb[3], ",") | |
855 | + | let bE = size(bD) | |
856 | + | let bF = nil | |
857 | + | func eg (bH,bI) = if ((bI >= bE)) | |
858 | + | then bH | |
859 | + | else dQ(bH, bD[bI]) | |
853 | 860 | ||
854 | - | func | |
855 | - | then | |
861 | + | func eh (bH,bI) = if ((bI >= bE)) | |
862 | + | then bH | |
856 | 863 | else throw("List size exceeds 3") | |
857 | 864 | ||
858 | - | | |
865 | + | eh(eg(eg(eg(bF, 0), 1), 2), 3) | |
859 | 866 | } | |
860 | - | let | |
861 | - | let | |
862 | - | [ | |
867 | + | let ei = split(eb[4], ",") | |
868 | + | let dY = parseIntValue(eb[5]) | |
869 | + | [ec, ed, ee, ef, ei, dY] | |
863 | 870 | } | |
864 | - | let | |
865 | - | if (( | |
866 | - | then ( | |
871 | + | let cz = invoke(dV, "routingTrade", ea, cm) | |
872 | + | if ((cz == cz)) | |
873 | + | then (aN(bu(dU)) - dX) | |
867 | 874 | else throw("Strict value is not equal to itself.") | |
868 | 875 | } | |
869 | 876 | else throw("Strict value is not equal to itself.") | |
870 | 877 | } | |
871 | 878 | ||
872 | 879 | ||
873 | - | func | |
874 | - | let | |
875 | - | let | |
876 | - | let | |
877 | - | let | |
878 | - | let | |
879 | - | let | |
880 | - | let | |
881 | - | if (if (( | |
882 | - | then ( | |
880 | + | func ej (aJ,bL,ek,el) = { | |
881 | + | let aT = Address(fromBase58String(aJ)) | |
882 | + | let em = bh(aT, bL) | |
883 | + | let en = em._1 | |
884 | + | let eo = em._2 | |
885 | + | let bc = em._3 | |
886 | + | let bb = em._4 | |
887 | + | let bf = em._5 | |
888 | + | if (if ((ek != en)) | |
889 | + | then (ek != eo) | |
883 | 890 | else false) | |
884 | 891 | then throw("Wrong asset") | |
885 | 892 | else { | |
886 | - | let | |
887 | - | if (( | |
888 | - | then [ScriptTransfer( | |
893 | + | let ep = bj(aJ) | |
894 | + | if ((ep == 0)) | |
895 | + | then [ScriptTransfer(ao, el, fromBase58String(ek))] | |
889 | 896 | else { | |
890 | - | let | |
891 | - | let | |
892 | - | let | |
893 | - | let | |
894 | - | let | |
895 | - | let | |
896 | - | let | |
897 | - | let | |
898 | - | then $Tuple2(( | |
899 | - | else $Tuple2(0, ( | |
900 | - | let | |
901 | - | let | |
902 | - | let | |
903 | - | let | |
904 | - | let | |
905 | - | let | |
906 | - | let | |
907 | - | let | |
908 | - | let | |
909 | - | let | |
910 | - | then ( | |
897 | + | let eq = bk(aJ) | |
898 | + | let er = fraction(eq, l, ep) | |
899 | + | let es = fraction(el, er, l) | |
900 | + | let et = (el - es) | |
901 | + | let eu = fraction(es, bn(aJ, f), o) | |
902 | + | let ev = fraction(et, bn(aJ, e), o) | |
903 | + | let ew = (eu + ev) | |
904 | + | let ex = if ((ek == en)) | |
905 | + | then $Tuple2((el - ew), 0) | |
906 | + | else $Tuple2(0, (el - ew)) | |
907 | + | let ce = ex._1 | |
908 | + | let cf = ex._2 | |
909 | + | let ey = dt(bL, aJ, k, ce, en, cf, eo, bc, bb, bf) | |
910 | + | let dI = ey._1 | |
911 | + | let ez = ey._2 | |
912 | + | let eA = valueOrElse(getInteger(this, (aJ + E)), 0) | |
913 | + | let eB = valueOrElse(getInteger(this, (aJ + F)), 0) | |
914 | + | let eC = fraction(dI, er, l) | |
915 | + | let eD = (dI - eC) | |
916 | + | let eE = if ((eq > 0)) | |
917 | + | then (eA + fraction(eC, m, eq)) | |
911 | 918 | else 0 | |
912 | - | let | |
913 | - | then ( | |
919 | + | let eF = if (((ep - eq) > 0)) | |
920 | + | then (eB + fraction(eD, m, (ep - eq))) | |
914 | 921 | else 0 | |
915 | - | ([IntegerEntry(( | |
922 | + | ([IntegerEntry((aJ + E), eE), IntegerEntry((aJ + F), eF), IntegerEntry((aJ + C), (ep + dI)), IntegerEntry((aJ + D), (eq + eC)), ScriptTransfer(ao, ew, bu(ek))] ++ bZ(en, eo, bf, nil)) | |
916 | 923 | } | |
917 | 924 | } | |
918 | 925 | } | |
919 | 926 | ||
920 | 927 | ||
921 | - | func | |
922 | - | let | |
923 | - | let | |
924 | - | let | |
925 | - | then getIntegerValue(this, ( | |
926 | - | else getIntegerValue(this, ( | |
927 | - | ( | |
928 | + | func eG (bm,aJ,eH,eI) = { | |
929 | + | let eJ = valueOrErrorMessage(getInteger(this, (((((aJ + "_") + bm) + "_") + eH) + w)), "Unknown position") | |
930 | + | let eK = getIntegerValue(this, (((((aJ + "_") + bm) + "_") + eH) + B)) | |
931 | + | let eL = if (eI) | |
932 | + | then getIntegerValue(this, (aJ + E)) | |
933 | + | else getIntegerValue(this, (aJ + F)) | |
934 | + | (eJ + fraction(eJ, (eL - eK), m)) | |
928 | 935 | } | |
929 | 936 | ||
930 | 937 | ||
931 | - | func | |
932 | - | let | |
938 | + | func eM (aJ,eN,eO,eP) = { | |
939 | + | let bo = if (eN) | |
933 | 940 | then h | |
934 | 941 | else g | |
935 | - | if ( | |
936 | - | then fraction( | |
942 | + | if (eO) | |
943 | + | then fraction(eP, bn(aJ, bo), o) | |
937 | 944 | else 0 | |
938 | 945 | } | |
939 | 946 | ||
940 | 947 | ||
941 | - | func | |
942 | - | let | |
943 | - | let | |
944 | - | let | |
945 | - | let | |
946 | - | let | |
947 | - | let | |
948 | - | let | |
949 | - | let | |
950 | - | let | |
951 | - | let | |
952 | - | let | |
953 | - | let | |
954 | - | let | |
955 | - | let | |
956 | - | let | |
957 | - | let | |
958 | - | let | |
959 | - | let | |
960 | - | let | |
961 | - | if (( | |
948 | + | func eQ (bm,aJ,eH,eO) = { | |
949 | + | let eJ = valueOrErrorMessage(getInteger(this, (((((aJ + "_") + bm) + "_") + eH) + w)), "Unknown position") | |
950 | + | let eN = (valueOrElse(getInteger(this, (((((aJ + "_") + bm) + "_") + eH) + y)), 0) > 0) | |
951 | + | let di = eG(bm, aJ, eH, eN) | |
952 | + | let eR = bj(aJ) | |
953 | + | let eS = bk(aJ) | |
954 | + | let eT = Address(fromBase58String(bm)) | |
955 | + | let aT = Address(fromBase58String(aJ)) | |
956 | + | let bL = valueOrErrorMessage(getString(this, (P + aJ)), "Unknown pool") | |
957 | + | let eU = bh(aT, bL) | |
958 | + | let eV = eU._1 | |
959 | + | let eW = eU._2 | |
960 | + | let bc = eU._3 | |
961 | + | let bb = eU._4 | |
962 | + | let bf = eU._5 | |
963 | + | let eX = $Tuple2(bu(eV), bu(eW)) | |
964 | + | let eY = eX._1 | |
965 | + | let eZ = eX._2 | |
966 | + | let fa = eM(aJ, eN, eO, di) | |
967 | + | let fb = aN(eY) | |
968 | + | if ((fb == fb)) | |
962 | 969 | then { | |
963 | - | let | |
964 | - | if (( | |
970 | + | let fc = aN(eZ) | |
971 | + | if ((fc == fc)) | |
965 | 972 | then { | |
966 | - | let | |
973 | + | let cz = if ((bL == a)) | |
967 | 974 | then { | |
968 | - | let | |
969 | - | if (( | |
970 | - | then invoke( | |
975 | + | let cz = cu(aJ, bL, bf, fa) | |
976 | + | if ((cz == cz)) | |
977 | + | then invoke(aT, "callFunction", ["withdraw", [toString(di)]], nil) | |
971 | 978 | else throw("Strict value is not equal to itself.") | |
972 | 979 | } | |
973 | - | else if (( | |
980 | + | else if ((bL == b)) | |
974 | 981 | then { | |
975 | - | let | |
976 | - | if (( | |
977 | - | then invoke( | |
982 | + | let cz = cu(aJ, bL, bf, (di + fa)) | |
983 | + | if ((cz == cz)) | |
984 | + | then invoke(aT, "get", nil, [AttachedPayment(bu(bf), di)]) | |
978 | 985 | else throw("Strict value is not equal to itself.") | |
979 | 986 | } | |
980 | - | else | |
981 | - | if (( | |
987 | + | else az() | |
988 | + | if ((cz == cz)) | |
982 | 989 | then { | |
983 | - | let | |
984 | - | if (( | |
990 | + | let fd = aN(eY) | |
991 | + | if ((fd == fd)) | |
985 | 992 | then { | |
986 | - | let | |
987 | - | if (( | |
993 | + | let fe = aN(eZ) | |
994 | + | if ((fe == fe)) | |
988 | 995 | then { | |
989 | - | let | |
990 | - | let | |
991 | - | let | |
992 | - | let | |
996 | + | let ff = $Tuple2((fd - fb), (fe - fc)) | |
997 | + | let fg = ff._1 | |
998 | + | let fh = ff._2 | |
999 | + | let fi = if (eN) | |
993 | 1000 | then { | |
994 | - | let | |
995 | - | let | |
996 | - | let | |
997 | - | if ($isInstanceOf( | |
998 | - | then | |
999 | - | else throw(($getType( | |
1001 | + | let fj = getStringValue(this, (((((aJ + "_") + bm) + "_") + eH) + z)) | |
1002 | + | let fk = { | |
1003 | + | let aX = invoke(aA(), "getAssetDebt", [false, ((bm + "_") + eH), fj], nil) | |
1004 | + | if ($isInstanceOf(aX, "Int")) | |
1005 | + | then aX | |
1006 | + | else throw(($getType(aX) + " couldn't be cast to Int")) | |
1000 | 1007 | } | |
1001 | - | if (( | |
1008 | + | if ((fk == fk)) | |
1002 | 1009 | then { | |
1003 | - | let | |
1004 | - | then ( | |
1010 | + | let fl = if (if ((fj == eV)) | |
1011 | + | then (fk > fg) | |
1005 | 1012 | else false) | |
1006 | - | then ( | |
1007 | - | else if (if (( | |
1008 | - | then ( | |
1013 | + | then (fk - fg) | |
1014 | + | else if (if ((fj == eW)) | |
1015 | + | then (fk > fh) | |
1009 | 1016 | else false) | |
1010 | - | then ( | |
1017 | + | then (fk - fh) | |
1011 | 1018 | else 0 | |
1012 | - | let | |
1013 | - | then | |
1019 | + | let fm = if ((fl > 0)) | |
1020 | + | then cW(bL, aJ, eV, eW, (bc - fg), (bb - fh), fl, fj) | |
1014 | 1021 | else nil | |
1015 | - | if (( | |
1022 | + | if ((fm == fm)) | |
1016 | 1023 | then { | |
1017 | - | let | |
1018 | - | if (( | |
1024 | + | let fn = aN(eY) | |
1025 | + | if ((fn == fn)) | |
1019 | 1026 | then { | |
1020 | - | let | |
1021 | - | if (( | |
1027 | + | let fo = aN(eZ) | |
1028 | + | if ((fo == fo)) | |
1022 | 1029 | then { | |
1023 | - | let | |
1024 | - | then invoke( | |
1030 | + | let fp = if ((fk > 0)) | |
1031 | + | then invoke(aA(), "repayFor", [((bm + "_") + eH)], [AttachedPayment(bu(fj), fk)]) | |
1025 | 1032 | else 0 | |
1026 | - | if (( | |
1027 | - | then if (( | |
1028 | - | then $Tuple2((( | |
1029 | - | else $Tuple2(( | |
1033 | + | if ((fp == fp)) | |
1034 | + | then if ((fj == eV)) | |
1035 | + | then $Tuple2(((fn - fb) - fk), (fo - fc)) | |
1036 | + | else $Tuple2((fn - fb), ((fo - fc) - fk)) | |
1030 | 1037 | else throw("Strict value is not equal to itself.") | |
1031 | 1038 | } | |
1032 | 1039 | else throw("Strict value is not equal to itself.") | |
1033 | 1040 | } | |
1034 | 1041 | else throw("Strict value is not equal to itself.") | |
1035 | 1042 | } | |
1036 | 1043 | else throw("Strict value is not equal to itself.") | |
1037 | 1044 | } | |
1038 | 1045 | else throw("Strict value is not equal to itself.") | |
1039 | 1046 | } | |
1040 | - | else $Tuple2( | |
1041 | - | let | |
1042 | - | let | |
1043 | - | let | |
1044 | - | then [IntegerEntry(( | |
1047 | + | else $Tuple2(fg, fh) | |
1048 | + | let fq = fi._1 | |
1049 | + | let fr = fi._2 | |
1050 | + | let fs = if (eN) | |
1051 | + | then [IntegerEntry((aJ + D), ((eS - di) - fa))] | |
1045 | 1052 | else nil | |
1046 | - | let | |
1047 | - | $Tuple2( | |
1053 | + | let ft = (([DeleteEntry((((((aJ + "_") + bm) + "_") + eH) + w)), DeleteEntry((((bm + "_") + eH) + x)), DeleteEntry((((((aJ + "_") + bm) + "_") + eH) + y)), DeleteEntry((((((aJ + "_") + bm) + "_") + eH) + z)), DeleteEntry((((((aJ + "_") + bm) + "_") + eH) + B)), IntegerEntry((aJ + C), ((eR - di) - fa)), ScriptTransfer(eT, fq, eY), ScriptTransfer(eT, fr, eZ), ScriptTransfer(ao, fa, fromBase58String(bf))] ++ fs) ++ bZ(eV, eW, bf, nil)) | |
1054 | + | $Tuple2(ft, [fq, fr]) | |
1048 | 1055 | } | |
1049 | 1056 | else throw("Strict value is not equal to itself.") | |
1050 | 1057 | } | |
1051 | 1058 | else throw("Strict value is not equal to itself.") | |
1052 | 1059 | } | |
1053 | 1060 | else throw("Strict value is not equal to itself.") | |
1054 | 1061 | } | |
1055 | 1062 | else throw("Strict value is not equal to itself.") | |
1056 | 1063 | } | |
1057 | 1064 | else throw("Strict value is not equal to itself.") | |
1058 | 1065 | } | |
1059 | 1066 | ||
1060 | 1067 | ||
1061 | - | func | |
1062 | - | let | |
1063 | - | let | |
1064 | - | let | |
1065 | - | let | |
1066 | - | let | |
1067 | - | let | |
1068 | - | let | |
1069 | - | let | |
1070 | - | let | |
1071 | - | let | |
1072 | - | let | |
1073 | - | let | |
1074 | - | $Tuple11( | |
1068 | + | func fu (fv) = { | |
1069 | + | let fw = split(valueOrErrorMessage(getString(this, (fv + N)), ("No request with id " + fv)), ",") | |
1070 | + | let bm = fw[0] | |
1071 | + | let aJ = fw[1] | |
1072 | + | let ce = parseIntValue(fw[2]) | |
1073 | + | let en = fw[3] | |
1074 | + | let cf = parseIntValue(fw[4]) | |
1075 | + | let eo = fw[5] | |
1076 | + | let bc = parseIntValue(fw[6]) | |
1077 | + | let bb = parseIntValue(fw[7]) | |
1078 | + | let bf = fw[8] | |
1079 | + | let fx = fw[9] | |
1080 | + | let fy = parseIntValue(fw[10]) | |
1081 | + | $Tuple11(bm, aJ, ce, en, cf, eo, bc, bb, bf, fx, fy) | |
1075 | 1082 | } | |
1076 | 1083 | ||
1077 | 1084 | ||
1078 | - | func | |
1079 | - | then ( | |
1085 | + | func fz (ce,cf,aV,aW,fA,fB) = if (if ((fB != aV)) | |
1086 | + | then (fB != aW) | |
1080 | 1087 | else false) | |
1081 | 1088 | then throw("Wrong borrow asset") | |
1082 | 1089 | else { | |
1083 | - | let | |
1084 | - | let | |
1085 | - | let | |
1086 | - | let | |
1087 | - | let | |
1088 | - | let | |
1089 | - | then $Tuple2( | |
1090 | - | else $Tuple2( | |
1091 | - | let | |
1092 | - | let | |
1093 | - | fraction(fraction( | |
1090 | + | let bQ = getIntegerValue(aq, (aV + U)) | |
1091 | + | let bR = getIntegerValue(aq, (aW + U)) | |
1092 | + | let fC = pow(10, 0, bv(aV), 0, 0, DOWN) | |
1093 | + | let fD = pow(10, 0, bv(aW), 0, 0, DOWN) | |
1094 | + | let fE = (fraction(bQ, ce, fC) + fraction(bR, cf, fD)) | |
1095 | + | let fF = if ((fB == aV)) | |
1096 | + | then $Tuple2(bQ, fC) | |
1097 | + | else $Tuple2(bR, fD) | |
1098 | + | let fG = fF._1 | |
1099 | + | let fH = fF._2 | |
1100 | + | fraction(fraction(fE, (fA - 100), 100), fH, fG) | |
1094 | 1101 | } | |
1095 | 1102 | ||
1096 | 1103 | ||
1097 | - | func | |
1098 | - | then if (( | |
1104 | + | func fI (fJ,en,eo) = if ((size(fJ) == 2)) | |
1105 | + | then if ((bt(fJ[0].assetId) != en)) | |
1099 | 1106 | then throw("Wrong payment asset A") | |
1100 | - | else if (( | |
1107 | + | else if ((bt(fJ[1].assetId) != eo)) | |
1101 | 1108 | then throw("Wrong payment asset B") | |
1102 | - | else $Tuple2( | |
1103 | - | else if ((size( | |
1104 | - | then if (( | |
1105 | - | then $Tuple2( | |
1106 | - | else if (( | |
1107 | - | then $Tuple2(0, | |
1109 | + | else $Tuple2(fJ[0].amount, fJ[1].amount) | |
1110 | + | else if ((size(fJ) == 1)) | |
1111 | + | then if ((bt(fJ[0].assetId) == en)) | |
1112 | + | then $Tuple2(fJ[0].amount, 0) | |
1113 | + | else if ((bt(fJ[0].assetId) == eo)) | |
1114 | + | then $Tuple2(0, fJ[0].amount) | |
1108 | 1115 | else throw("Wrong payment") | |
1109 | 1116 | else throw("One or two payments expected") | |
1110 | 1117 | ||
1111 | 1118 | ||
1112 | - | func | |
1113 | - | let | |
1114 | - | if ((0 > | |
1115 | - | then ( | |
1116 | - | else | |
1119 | + | func fK (bc,bb,fL,fM) = { | |
1120 | + | let fN = ((l - fraction(fraction(bb, l, bc), l, fraction(fM, l, fL))) * 100) | |
1121 | + | if ((0 > fN)) | |
1122 | + | then (fN * -1) | |
1123 | + | else fN | |
1117 | 1124 | } | |
1118 | 1125 | ||
1119 | 1126 | ||
1120 | - | func | |
1121 | - | let | |
1122 | - | then | |
1127 | + | func fO (aJ,bL,fP,ct,dA) = { | |
1128 | + | let fQ = if (fP) | |
1129 | + | then dm(bL, aJ) | |
1123 | 1130 | else { | |
1124 | - | let | |
1125 | - | then | |
1126 | - | else if (( | |
1127 | - | then | |
1128 | - | else | |
1129 | - | $Tuple2( | |
1131 | + | let fR = if ((bL == a)) | |
1132 | + | then as | |
1133 | + | else if ((bL == b)) | |
1134 | + | then at | |
1135 | + | else az() | |
1136 | + | $Tuple2(ct, fR) | |
1130 | 1137 | } | |
1131 | - | if (( | |
1138 | + | if ((fQ == fQ)) | |
1132 | 1139 | then { | |
1133 | - | let | |
1134 | - | let | |
1135 | - | let | |
1136 | - | if (( | |
1137 | - | then if (( | |
1140 | + | let fS = fQ._2 | |
1141 | + | let fT = fQ._1 | |
1142 | + | let fU = aN(fS) | |
1143 | + | if ((fU == fU)) | |
1144 | + | then if ((ct > fU)) | |
1138 | 1145 | then throw("To big amount to exchange") | |
1139 | - | else $Tuple2( | |
1146 | + | else $Tuple2(fT, fS) | |
1140 | 1147 | else throw("Strict value is not equal to itself.") | |
1141 | 1148 | } | |
1142 | 1149 | else throw("Strict value is not equal to itself.") | |
1143 | 1150 | } | |
1144 | 1151 | ||
1145 | 1152 | ||
1146 | - | @Callable( | |
1147 | - | func getPoolInfoREADONLY ( | |
1148 | - | let | |
1149 | - | let | |
1150 | - | let | |
1151 | - | let | |
1152 | - | let | |
1153 | - | let | |
1154 | - | let | |
1155 | - | let | |
1156 | - | let | |
1157 | - | $Tuple2(nil, $Tuple6( | |
1153 | + | @Callable(aC) | |
1154 | + | func getPoolInfoREADONLY (aJ) = { | |
1155 | + | let aT = addressFromStringValue(aJ) | |
1156 | + | let bL = valueOrErrorMessage(getString(this, (P + aJ)), "Pool is not inited") | |
1157 | + | let fV = bh(Address(fromBase58String(aJ)), bL) | |
1158 | + | let en = fV._1 | |
1159 | + | let eo = fV._2 | |
1160 | + | let bc = fV._3 | |
1161 | + | let bb = fV._4 | |
1162 | + | let bf = fV._5 | |
1163 | + | let bS = bi(aT, bL, bf) | |
1164 | + | $Tuple2(nil, $Tuple6(en, eo, bf, bc, bb, bS)) | |
1158 | 1165 | } | |
1159 | 1166 | ||
1160 | 1167 | ||
1161 | 1168 | ||
1162 | - | @Callable( | |
1163 | - | func getShareAssetPriceREADONLY ( | |
1164 | - | let | |
1165 | - | $Tuple2(nil, | |
1169 | + | @Callable(aC) | |
1170 | + | func getShareAssetPriceREADONLY (bf) = { | |
1171 | + | let fW = bK(bf) | |
1172 | + | $Tuple2(nil, fW) | |
1166 | 1173 | } | |
1167 | 1174 | ||
1168 | 1175 | ||
1169 | 1176 | ||
1170 | - | @Callable( | |
1171 | - | func getUserPositionShareAmountREADONLY ( | |
1172 | - | let | |
1173 | - | let | |
1174 | - | let | |
1175 | - | $Tuple2(nil, | |
1177 | + | @Callable(aC) | |
1178 | + | func getUserPositionShareAmountREADONLY (bm,dJ) = { | |
1179 | + | let aJ = valueOrErrorMessage(getString(this, (((bm + "_") + dJ) + x)), "Unknown position") | |
1180 | + | let fX = getIntegerValue(this, (((((aJ + "_") + bm) + "_") + dJ) + y)) | |
1181 | + | let di = eG(bm, aJ, dJ, (fX > 0)) | |
1182 | + | $Tuple2(nil, di) | |
1176 | 1183 | } | |
1177 | 1184 | ||
1178 | 1185 | ||
1179 | 1186 | ||
1180 | - | @Callable( | |
1181 | - | func getUserPositionREADONLY ( | |
1182 | - | func | |
1183 | - | let | |
1184 | - | let | |
1185 | - | let | |
1186 | - | let | |
1187 | - | let | |
1188 | - | let | |
1189 | - | let | |
1190 | - | if (!(isDefined(getInteger(this, ((((( | |
1191 | - | then $Tuple6( | |
1187 | + | @Callable(aC) | |
1188 | + | func getUserPositionREADONLY (bm,fY,dJ) = { | |
1189 | + | func fZ (bB,aJ) = { | |
1190 | + | let ga = bB | |
1191 | + | let gb = ga._1 | |
1192 | + | let gc = ga._2 | |
1193 | + | let gd = ga._3 | |
1194 | + | let ge = ga._4 | |
1195 | + | let gf = ga._5 | |
1196 | + | let gg = ga._6 | |
1197 | + | if (!(isDefined(getInteger(this, (((((aJ + "_") + bm) + "_") + dJ[gg]) + w))))) | |
1198 | + | then $Tuple6((gb :+ 0), (gc :+ 0), (gd :+ 0), (ge :+ 0), (gf :+ 0), (gg + 1)) | |
1192 | 1199 | else { | |
1193 | - | let | |
1194 | - | let | |
1195 | - | let | |
1196 | - | let | |
1197 | - | let | |
1198 | - | let | |
1199 | - | let | |
1200 | - | let | |
1201 | - | let | |
1202 | - | let | |
1203 | - | let | |
1204 | - | let | |
1205 | - | if (( | |
1200 | + | let bL = valueOrErrorMessage(getString(this, (P + aJ)), "Pool is not inited") | |
1201 | + | let gh = bh(Address(fromBase58String(aJ)), bL) | |
1202 | + | let en = gh._1 | |
1203 | + | let eo = gh._2 | |
1204 | + | let bc = gh._3 | |
1205 | + | let bb = gh._4 | |
1206 | + | let bf = gh._5 | |
1207 | + | let fX = valueOrElse(getInteger(this, (((((aJ + "_") + bm) + "_") + dJ[gg]) + y)), 0) | |
1208 | + | let di = eG(bm, aJ, dJ[gg], (fX > 0)) | |
1209 | + | let gi = dh(Address(fromBase58String(aJ)), bL, bf, di) | |
1210 | + | let gj = gi._1 | |
1211 | + | let gk = gi._2 | |
1212 | + | if ((fX > 0)) | |
1206 | 1213 | then { | |
1207 | - | let | |
1208 | - | let | |
1209 | - | let | |
1210 | - | if ($isInstanceOf( | |
1211 | - | then | |
1212 | - | else throw(($getType( | |
1214 | + | let fj = getStringValue(this, (((((aJ + "_") + bm) + "_") + dJ[gg]) + z)) | |
1215 | + | let fk = { | |
1216 | + | let aX = invoke(aA(), "getAssetDebt", [false, ((bm + "_") + dJ[gg]), fj], nil) | |
1217 | + | if ($isInstanceOf(aX, "Int")) | |
1218 | + | then aX | |
1219 | + | else throw(($getType(aX) + " couldn't be cast to Int")) | |
1213 | 1220 | } | |
1214 | - | if (( | |
1221 | + | if ((fk == fk)) | |
1215 | 1222 | then { | |
1216 | - | let | |
1217 | - | then ( | |
1223 | + | let fl = if (if ((fj == en)) | |
1224 | + | then (fk > gj) | |
1218 | 1225 | else false) | |
1219 | - | then ( | |
1220 | - | else if (if (( | |
1221 | - | then ( | |
1226 | + | then (fk - gj) | |
1227 | + | else if (if ((fj == eo)) | |
1228 | + | then (fk > gk) | |
1222 | 1229 | else false) | |
1223 | - | then ( | |
1230 | + | then (fk - gk) | |
1224 | 1231 | else 0 | |
1225 | - | let | |
1226 | - | then if (( | |
1232 | + | let cJ = if ((fl > 0)) | |
1233 | + | then if ((bL == a)) | |
1227 | 1234 | then { | |
1228 | - | let | |
1229 | - | | |
1235 | + | let gl = cA(aJ, en, eo, bc, bb, fl, fj) | |
1236 | + | gl._2 | |
1230 | 1237 | } | |
1231 | - | else if (( | |
1238 | + | else if ((bL == b)) | |
1232 | 1239 | then { | |
1233 | - | let | |
1234 | - | | |
1240 | + | let gl = cP(aJ, en, eo, bc, bb, fl, fj) | |
1241 | + | gl._2 | |
1235 | 1242 | } | |
1236 | - | else | |
1243 | + | else az() | |
1237 | 1244 | else 0 | |
1238 | - | let | |
1239 | - | then $Tuple2((( | |
1240 | - | else $Tuple2(( | |
1241 | - | let | |
1242 | - | let | |
1243 | - | $Tuple6(( | |
1245 | + | let gm = if ((fj == en)) | |
1246 | + | then $Tuple2(((gj + fl) - fk), (gk - cJ)) | |
1247 | + | else $Tuple2((gj - cJ), ((gk + fl) - fk)) | |
1248 | + | let gn = gm._1 | |
1249 | + | let go = gm._2 | |
1250 | + | $Tuple6((gb :+ gj), (gc :+ gk), (gd :+ fk), (ge :+ gn), (gf :+ go), (gg + 1)) | |
1244 | 1251 | } | |
1245 | 1252 | else throw("Strict value is not equal to itself.") | |
1246 | 1253 | } | |
1247 | - | else $Tuple6(( | |
1254 | + | else $Tuple6((gb :+ gj), (gc :+ gk), gd, (gb :+ gj), (gc :+ gk), (gg + 1)) | |
1248 | 1255 | } | |
1249 | 1256 | } | |
1250 | 1257 | ||
1251 | - | let | |
1252 | - | let | |
1253 | - | let | |
1254 | - | let | |
1255 | - | func | |
1256 | - | then | |
1257 | - | else | |
1258 | + | let gp = { | |
1259 | + | let bD = fY | |
1260 | + | let bE = size(bD) | |
1261 | + | let bF = $Tuple6(nil, nil, nil, nil, nil, 0) | |
1262 | + | func bG (bH,bI) = if ((bI >= bE)) | |
1263 | + | then bH | |
1264 | + | else fZ(bH, bD[bI]) | |
1258 | 1265 | ||
1259 | - | func | |
1260 | - | then | |
1266 | + | func bJ (bH,bI) = if ((bI >= bE)) | |
1267 | + | then bH | |
1261 | 1268 | else throw("List size exceeds 20") | |
1262 | 1269 | ||
1263 | - | | |
1270 | + | bJ(bG(bG(bG(bG(bG(bG(bG(bG(bG(bG(bG(bG(bG(bG(bG(bG(bG(bG(bG(bG(bF, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20) | |
1264 | 1271 | } | |
1265 | - | let | |
1266 | - | let | |
1267 | - | let | |
1268 | - | let | |
1269 | - | let | |
1270 | - | $Tuple2(nil, $Tuple5( | |
1272 | + | let gb = gp._1 | |
1273 | + | let gc = gp._2 | |
1274 | + | let gd = gp._3 | |
1275 | + | let ge = gp._4 | |
1276 | + | let gf = gp._5 | |
1277 | + | $Tuple2(nil, $Tuple5(gb, gc, gd, ge, gf)) | |
1271 | 1278 | } | |
1272 | 1279 | ||
1273 | 1280 | ||
1274 | 1281 | ||
1275 | - | @Callable( | |
1276 | - | func replenish ( | |
1277 | - | let | |
1278 | - | if (!( | |
1282 | + | @Callable(aC) | |
1283 | + | func replenish (aJ,fA,fB) = valueOrElse(aH(), { | |
1284 | + | let bL = valueOrErrorMessage(getString(this, (P + aJ)), "Pool is not inited") | |
1285 | + | if (!(aI(aJ, bL))) | |
1279 | 1286 | then throw("Pool not active at this moment") | |
1280 | - | else if (if ((100 > | |
1287 | + | else if (if ((100 > fA)) | |
1281 | 1288 | then true | |
1282 | - | else ( | |
1289 | + | else (fA > 300)) | |
1283 | 1290 | then throw("Leverage can't be <100 and >300") | |
1284 | - | else if (if (!(getBooleanValue(this, ( | |
1285 | - | then ( | |
1291 | + | else if (if (!(getBooleanValue(this, (aJ + G)))) | |
1292 | + | then (fA > 100) | |
1286 | 1293 | else false) | |
1287 | 1294 | then throw("You can't borrow in this pool") | |
1288 | 1295 | else { | |
1289 | - | let | |
1290 | - | let | |
1291 | - | let | |
1292 | - | let | |
1293 | - | let | |
1294 | - | let | |
1295 | - | if (if (( | |
1296 | - | then ( | |
1296 | + | let gq = bh(Address(fromBase58String(aJ)), bL) | |
1297 | + | let en = gq._1 | |
1298 | + | let eo = gq._2 | |
1299 | + | let bc = gq._3 | |
1300 | + | let bb = gq._4 | |
1301 | + | let bf = gq._5 | |
1302 | + | if (if ((fB != en)) | |
1303 | + | then (fB != eo) | |
1297 | 1304 | else false) | |
1298 | 1305 | then throw("Wrong borrow asset") | |
1299 | 1306 | else { | |
1300 | - | let | |
1301 | - | let | |
1302 | - | let | |
1303 | - | let | |
1304 | - | let | |
1305 | - | if (( | |
1307 | + | let gr = fI(aC.payments, en, eo) | |
1308 | + | let ce = gr._1 | |
1309 | + | let cf = gr._2 | |
1310 | + | let bm = toString(aC.caller) | |
1311 | + | let gs = bl(bm) | |
1312 | + | if ((fA > 100)) | |
1306 | 1313 | then { | |
1307 | - | let | |
1308 | - | let | |
1309 | - | let | |
1310 | - | let | |
1311 | - | if ($isInstanceOf( | |
1312 | - | then | |
1313 | - | else throw(($getType( | |
1314 | + | let fX = fz(ce, cf, en, eo, fA, fB) | |
1315 | + | let fw = makeString([bm, aJ, toString(ce), en, toString(cf), eo, toString(bc), toString(bb), bf, fB, toString(fX)], ",") | |
1316 | + | let gt = { | |
1317 | + | let aX = invoke(this, "createNewRequest", [fw], nil) | |
1318 | + | if ($isInstanceOf(aX, "Int")) | |
1319 | + | then aX | |
1320 | + | else throw(($getType(aX) + " couldn't be cast to Int")) | |
1314 | 1321 | } | |
1315 | - | if (( | |
1322 | + | if ((gt == gt)) | |
1316 | 1323 | then { | |
1317 | - | let | |
1318 | - | let | |
1319 | - | if (( | |
1324 | + | let ea = [((bm + "_") + toString(gs)), bf, fB, fX, toString(this), "replenishFromLand", toString(valueOrErrorMessage(gt, "Can't create new request"))] | |
1325 | + | let cz = reentrantInvoke(aA(), "flashPosition", ea, nil) | |
1326 | + | if ((cz == cz)) | |
1320 | 1327 | then { | |
1321 | - | let | |
1322 | - | let | |
1323 | - | if (( | |
1328 | + | let gu = getIntegerValue(this, (((((aJ + "_") + bm) + "_") + toString(gs)) + w)) | |
1329 | + | let gv = aY(Address(fromBase58String(aJ)), bL, en, eo) | |
1330 | + | if ((gv == gv)) | |
1324 | 1331 | then { | |
1325 | - | let | |
1326 | - | let | |
1327 | - | let | |
1328 | - | let | |
1329 | - | let | |
1330 | - | let | |
1331 | - | $Tuple2(nil, [ | |
1332 | + | let fM = gv._2 | |
1333 | + | let fL = gv._1 | |
1334 | + | let gw = fK(bc, bb, fL, fM) | |
1335 | + | let gx = dh(Address(fromBase58String(aJ)), bL, bf, gu) | |
1336 | + | let gj = gx._1 | |
1337 | + | let gk = gx._2 | |
1338 | + | $Tuple2(nil, [gw, gj, gk]) | |
1332 | 1339 | } | |
1333 | 1340 | else throw("Strict value is not equal to itself.") | |
1334 | 1341 | } | |
1335 | 1342 | else throw("Strict value is not equal to itself.") | |
1336 | 1343 | } | |
1337 | 1344 | else throw("Strict value is not equal to itself.") | |
1338 | 1345 | } | |
1339 | 1346 | else { | |
1340 | - | let | |
1341 | - | if (( | |
1347 | + | let gy = dt(bL, aJ, j, ce, en, cf, eo, bc, bb, bf) | |
1348 | + | if ((gy == gy)) | |
1342 | 1349 | then { | |
1343 | - | let | |
1344 | - | let | |
1345 | - | let | |
1346 | - | if (( | |
1350 | + | let ew = gy._2 | |
1351 | + | let gu = gy._1 | |
1352 | + | let gz = aY(Address(fromBase58String(aJ)), bL, en, eo) | |
1353 | + | if ((gz == gz)) | |
1347 | 1354 | then { | |
1348 | - | let | |
1349 | - | let | |
1350 | - | let | |
1351 | - | let | |
1352 | - | let | |
1353 | - | let | |
1354 | - | $Tuple2(( | |
1355 | + | let fM = gz._2 | |
1356 | + | let fL = gz._1 | |
1357 | + | let gw = fK(bc, bb, fL, fM) | |
1358 | + | let gA = dh(Address(fromBase58String(aJ)), bL, bf, gu) | |
1359 | + | let gj = gA._1 | |
1360 | + | let gk = gA._2 | |
1361 | + | $Tuple2((dH(aJ, bm, gu, ew, gs, bf, bL, false) ++ bZ(en, eo, bf, [toString(gj), toString(gk)])), [gw, gj, gk]) | |
1355 | 1362 | } | |
1356 | 1363 | else throw("Strict value is not equal to itself.") | |
1357 | 1364 | } | |
1358 | 1365 | else throw("Strict value is not equal to itself.") | |
1359 | 1366 | } | |
1360 | 1367 | } | |
1361 | 1368 | } | |
1362 | 1369 | }) | |
1363 | 1370 | ||
1364 | 1371 | ||
1365 | 1372 | ||
1366 | - | @Callable( | |
1367 | - | func withdraw ( | |
1368 | - | let | |
1369 | - | if (!( | |
1373 | + | @Callable(aC) | |
1374 | + | func withdraw (aJ,eH) = valueOrElse(aH(), { | |
1375 | + | let bL = valueOrErrorMessage(getString(this, (P + aJ)), "Pool is not inited") | |
1376 | + | if (!(aI(aJ, bL))) | |
1370 | 1377 | then throw("Pool not active at this moment") | |
1371 | - | else | |
1378 | + | else eQ(toString(aC.caller), aJ, toString(eH), false) | |
1372 | 1379 | }) | |
1373 | 1380 | ||
1374 | 1381 | ||
1375 | 1382 | ||
1376 | - | @Callable( | |
1377 | - | func createUpdateStopLoss ( | |
1378 | - | let | |
1379 | - | let | |
1380 | - | if (!( | |
1383 | + | @Callable(aC) | |
1384 | + | func createUpdateStopLoss (eH,gB,aO,gC) = valueOrElse(aH(), { | |
1385 | + | let gD = getIntegerValue(aq, (aO + U)) | |
1386 | + | let bL = valueOrErrorMessage(getString(this, (P + gB)), "Pool is not inited") | |
1387 | + | if (!(aI(gB, bL))) | |
1381 | 1388 | then throw("Pool not active at this moment") | |
1382 | - | else if (!(isDefined(getInteger(this, ((((( | |
1389 | + | else if (!(isDefined(getInteger(this, (((((gB + "_") + toString(aC.caller)) + "_") + toString(eH)) + w))))) | |
1383 | 1390 | then throw("There are no user position") | |
1384 | - | else if ((0 >= | |
1391 | + | else if ((0 >= gC)) | |
1385 | 1392 | then throw("Price must be greater than 0") | |
1386 | - | else if (( | |
1393 | + | else if ((gC > gD)) | |
1387 | 1394 | then throw("Price must be less than current token price") | |
1388 | - | else [IntegerEntry((((((((toString( | |
1395 | + | else [IntegerEntry((((((((toString(aC.caller) + "_") + toString(eH)) + "_") + gB) + "_") + aO) + Z), gC)] | |
1389 | 1396 | }) | |
1390 | 1397 | ||
1391 | 1398 | ||
1392 | 1399 | ||
1393 | - | @Callable( | |
1394 | - | func deleteStopLoss ( | |
1395 | - | let | |
1396 | - | if (!( | |
1400 | + | @Callable(aC) | |
1401 | + | func deleteStopLoss (eH,gB,aO) = valueOrElse(aH(), { | |
1402 | + | let bL = valueOrErrorMessage(getString(this, (P + gB)), "Pool is not inited") | |
1403 | + | if (!(aI(gB, bL))) | |
1397 | 1404 | then throw("Pool not active at this moment") | |
1398 | - | else if (!(isDefined(getInteger(this, (((((((toString( | |
1405 | + | else if (!(isDefined(getInteger(this, (((((((toString(aC.caller) + "_") + toString(eH)) + "_") + gB) + "_") + aO) + Z))))) | |
1399 | 1406 | then throw("No entry") | |
1400 | - | else [DeleteEntry((((((((toString( | |
1407 | + | else [DeleteEntry((((((((toString(aC.caller) + "_") + toString(eH)) + "_") + gB) + "_") + aO) + Z))] | |
1401 | 1408 | }) | |
1402 | 1409 | ||
1403 | 1410 | ||
1404 | 1411 | ||
1405 | - | @Callable( | |
1406 | - | func init ( | |
1412 | + | @Callable(aC) | |
1413 | + | func init (gE,gF,gG,aq,gH,ar,gI,gJ,gK,gL,gM,gN,gO) = valueOrElse(aE(aC), if (isDefined(getString(ae))) | |
1407 | 1414 | then throw("Already inited") | |
1408 | - | else if (!(isDefined(addressFromString( | |
1415 | + | else if (!(isDefined(addressFromString(gE)))) | |
1409 | 1416 | then throw("moneyBoxAddr is not correct address") | |
1410 | - | else if (!(isDefined(addressFromString( | |
1417 | + | else if (!(isDefined(addressFromString(gF)))) | |
1411 | 1418 | then throw("sfFarmingAddr is not correct address") | |
1412 | - | else if (!(isDefined(addressFromString( | |
1419 | + | else if (!(isDefined(addressFromString(gG)))) | |
1413 | 1420 | then throw("lendAddr is not correct address") | |
1414 | - | else if (!(isDefined(addressFromString( | |
1421 | + | else if (!(isDefined(addressFromString(aq)))) | |
1415 | 1422 | then throw("priceOracleAddr is not correct address") | |
1416 | - | else if (!(isDefined(addressFromString( | |
1423 | + | else if (!(isDefined(addressFromString(gH)))) | |
1417 | 1424 | then throw("keeperExContract is not correct address") | |
1418 | - | else if (!(isDefined(assetInfo(fromBase58String( | |
1425 | + | else if (!(isDefined(assetInfo(fromBase58String(gI))))) | |
1419 | 1426 | then throw("swopAssetId is not correct asset id") | |
1420 | - | else if (!(isDefined(assetInfo(fromBase58String( | |
1427 | + | else if (!(isDefined(assetInfo(fromBase58String(gJ))))) | |
1421 | 1428 | then throw("swopAssetId is not correct asset id") | |
1422 | - | else if ((size(fromBase58String( | |
1429 | + | else if ((size(fromBase58String(gK)) != 32)) | |
1423 | 1430 | then throw("operatorPubKey is not correct") | |
1424 | - | else if ((size(fromBase58String( | |
1431 | + | else if ((size(fromBase58String(gL)) != 32)) | |
1425 | 1432 | then throw("group1Admin1PubKey is not correct") | |
1426 | - | else if ((size(fromBase58String( | |
1433 | + | else if ((size(fromBase58String(gM)) != 32)) | |
1427 | 1434 | then throw("group1Admin2PubKey is not correct") | |
1428 | - | else if ((size(fromBase58String( | |
1435 | + | else if ((size(fromBase58String(gN)) != 32)) | |
1429 | 1436 | then throw("group2Admin1PubKey is not correct") | |
1430 | - | else if ((size(fromBase58String( | |
1437 | + | else if ((size(fromBase58String(gO)) != 32)) | |
1431 | 1438 | then throw("group2Admin2PubKey is not correct") | |
1432 | - | else [StringEntry( | |
1439 | + | else [StringEntry(ab, gE), StringEntry(ac, gF), StringEntry(ad, gG), StringEntry(af, aq), StringEntry(ag, gH), StringEntry(ah, ar), StringEntry(ai, gI), StringEntry(aj, gJ), StringEntry(ae, gK), StringEntry(ak, gL), StringEntry(al, gM), StringEntry(am, gN), StringEntry(an, gO)]) | |
1433 | 1440 | ||
1434 | 1441 | ||
1435 | 1442 | ||
1436 | - | @Callable( | |
1437 | - | func createNewRequest ( | |
1438 | - | let | |
1439 | - | $Tuple2([StringEntry((toString( | |
1443 | + | @Callable(aC) | |
1444 | + | func createNewRequest (cy) = valueOrElse(aE(aC), { | |
1445 | + | let gt = (valueOrElse(getInteger(this, O), 0) + 1) | |
1446 | + | $Tuple2([StringEntry((toString(gt) + N), cy), IntegerEntry(O, gt)], gt) | |
1440 | 1447 | }) | |
1441 | 1448 | ||
1442 | 1449 | ||
1443 | 1450 | ||
1444 | - | @Callable( | |
1445 | - | func replenishFromLand ( | |
1446 | - | let | |
1447 | - | let | |
1448 | - | let | |
1449 | - | let | |
1450 | - | let | |
1451 | - | let | |
1452 | - | let | |
1453 | - | let | |
1454 | - | let | |
1455 | - | let | |
1456 | - | let | |
1457 | - | let | |
1458 | - | if ((size( | |
1451 | + | @Callable(aC) | |
1452 | + | func replenishFromLand (fv) = valueOrElse(aG(), valueOrElse(aF(aC), { | |
1453 | + | let gP = fu(fv) | |
1454 | + | let bm = gP._1 | |
1455 | + | let aJ = gP._2 | |
1456 | + | let ce = gP._3 | |
1457 | + | let en = gP._4 | |
1458 | + | let cf = gP._5 | |
1459 | + | let eo = gP._6 | |
1460 | + | let bc = gP._7 | |
1461 | + | let bb = gP._8 | |
1462 | + | let bf = gP._9 | |
1463 | + | let fx = gP._10 | |
1464 | + | let fy = gP._11 | |
1465 | + | if ((size(aC.payments) != 1)) | |
1459 | 1466 | then throw("Wrong payment size") | |
1460 | - | else if (if (( | |
1467 | + | else if (if ((bt(aC.payments[0].assetId) != fx)) | |
1461 | 1468 | then true | |
1462 | - | else ( | |
1469 | + | else (aC.payments[0].amount != fy)) | |
1463 | 1470 | then throw("Wrong payment") | |
1464 | 1471 | else { | |
1465 | - | let | |
1466 | - | then $Tuple2(( | |
1467 | - | else $Tuple2( | |
1468 | - | let | |
1469 | - | let | |
1470 | - | let | |
1471 | - | let | |
1472 | - | let | |
1473 | - | let | |
1474 | - | let | |
1475 | - | let | |
1476 | - | let | |
1477 | - | let | |
1478 | - | let | |
1479 | - | let | |
1480 | - | $Tuple2(((( | |
1472 | + | let gQ = if ((en == fx)) | |
1473 | + | then $Tuple2((ce + fy), cf) | |
1474 | + | else $Tuple2(ce, (cf + fy)) | |
1475 | + | let gR = gQ._1 | |
1476 | + | let gS = gQ._2 | |
1477 | + | let bL = valueOrErrorMessage(getString(this, (P + aJ)), "Unknown pool") | |
1478 | + | let gT = dt(bL, aJ, i, gR, en, gS, eo, bc, bb, bf) | |
1479 | + | let gu = gT._1 | |
1480 | + | let ew = gT._2 | |
1481 | + | let dJ = bl(bm) | |
1482 | + | let gU = [IntegerEntry((((((aJ + "_") + bm) + "_") + toString(dJ)) + y), fy), StringEntry((((((aJ + "_") + bm) + "_") + toString(dJ)) + z), fx)] | |
1483 | + | let ft = dH(aJ, bm, gu, ew, dJ, bf, bL, true) | |
1484 | + | let gV = dh(Address(fromBase58String(aJ)), bL, bf, gu) | |
1485 | + | let gj = gV._1 | |
1486 | + | let gk = gV._2 | |
1487 | + | $Tuple2((((ft ++ bZ(en, eo, bf, [toString(gj), toString(gk)])) ++ gU) :+ DeleteEntry((fv + N))), gu) | |
1481 | 1488 | } | |
1482 | 1489 | })) | |
1483 | 1490 | ||
1484 | 1491 | ||
1485 | 1492 | ||
1486 | - | @Callable( | |
1487 | - | func liquidate ( | |
1488 | - | let | |
1489 | - | let | |
1490 | - | let | |
1491 | - | let | |
1492 | - | let | |
1493 | - | let | |
1494 | - | let | |
1495 | - | let | |
1496 | - | let | |
1497 | - | let | |
1498 | - | let | |
1499 | - | let | |
1500 | - | if (( | |
1493 | + | @Callable(aC) | |
1494 | + | func liquidate (bm,eH,gW) = valueOrElse(aG(), valueOrElse(aF(aC), { | |
1495 | + | let aJ = valueOrErrorMessage(getString(this, (((bm + "_") + eH) + x)), "no position") | |
1496 | + | let bL = valueOrErrorMessage(getString(this, (P + aJ)), "Pool is not inited") | |
1497 | + | let gX = bh(Address(fromBase58String(aJ)), bL) | |
1498 | + | let en = gX._1 | |
1499 | + | let eo = gX._2 | |
1500 | + | let bc = gX._3 | |
1501 | + | let bb = gX._4 | |
1502 | + | let bf = gX._5 | |
1503 | + | let ct = cu(aJ, bL, bf, gW) | |
1504 | + | let fX = getIntegerValue(this, (((((aJ + "_") + bm) + "_") + eH) + y)) | |
1505 | + | let fj = getStringValue(this, (((((aJ + "_") + bm) + "_") + eH) + z)) | |
1506 | + | let di = eG(bm, aJ, eH, (fX > 0)) | |
1507 | + | if ((gW > di)) | |
1501 | 1508 | then throw("You can't liquidate more than user have") | |
1502 | - | else if (( | |
1509 | + | else if ((fX == 0)) | |
1503 | 1510 | then throw("You can't liquidate position without borrow") | |
1504 | - | else [IntegerEntry(((((( | |
1511 | + | else [IntegerEntry((((((aJ + "_") + bm) + "_") + eH) + B), getIntegerValue(this, (aJ + E))), IntegerEntry((aJ + D), (bk(aJ) - gW)), IntegerEntry((aJ + C), (bj(aJ) - gW)), IntegerEntry((((((aJ + "_") + bm) + "_") + eH) + w), (di - gW)), ScriptTransfer(aC.caller, ct, fromBase58String(bf))] | |
1505 | 1512 | })) | |
1506 | 1513 | ||
1507 | 1514 | ||
1508 | 1515 | ||
1509 | - | @Callable( | |
1510 | - | func stopLoss ( | |
1511 | - | let | |
1512 | - | let | |
1513 | - | if (( | |
1516 | + | @Callable(aC) | |
1517 | + | func stopLoss (bm,eH,aJ,aO) = valueOrElse(aG(), valueOrElse(aB(aC), { | |
1518 | + | let gD = getIntegerValue(aq, (aO + U)) | |
1519 | + | let gY = valueOrErrorMessage(getInteger(this, (((((((bm + "_") + toString(eH)) + "_") + aJ) + "_") + aO) + Z)), "No entry") | |
1520 | + | if ((gD > gY)) | |
1514 | 1521 | then throw("Token price greater stop loss price") | |
1515 | 1522 | else { | |
1516 | - | let | |
1517 | - | $Tuple2(( | |
1523 | + | let gZ = eQ(bm, aJ, toString(eH), true) | |
1524 | + | $Tuple2((gZ._1 :+ DeleteEntry((((((((bm + "_") + toString(eH)) + "_") + aJ) + "_") + aO) + Z))), gZ._2) | |
1518 | 1525 | } | |
1519 | 1526 | })) | |
1520 | 1527 | ||
1521 | 1528 | ||
1522 | 1529 | ||
1523 | - | @Callable( | |
1524 | - | func capitalizeEx ( | |
1525 | - | let | |
1526 | - | let | |
1527 | - | let | |
1528 | - | if (( | |
1530 | + | @Callable(aC) | |
1531 | + | func capitalizeEx (aJ,ha,hb,hc,fP) = valueOrElse(aG(), valueOrElse(aB(aC), { | |
1532 | + | let bL = getStringValue(this, (P + aJ)) | |
1533 | + | let dA = valueOrElse(getInteger(this, (aJ + S)), 0) | |
1534 | + | let hd = fO(aJ, bL, fP, hc, dA) | |
1535 | + | if ((hd == hd)) | |
1529 | 1536 | then { | |
1530 | - | let | |
1531 | - | let | |
1532 | - | let | |
1533 | - | let | |
1534 | - | then | |
1535 | - | else if (( | |
1536 | - | then | |
1537 | + | let fR = hd._2 | |
1538 | + | let he = hd._1 | |
1539 | + | let dT = split(ha, "__") | |
1540 | + | let hf = if ((dT[0] == "directSwopfiCPMM")) | |
1541 | + | then dS(dT, hb) | |
1542 | + | else if ((dT[0] == "routingSwopfi")) | |
1543 | + | then dZ(dT, hb) | |
1537 | 1544 | else throw("Wrong route") | |
1538 | - | if (( | |
1545 | + | if ((hf == hf)) | |
1539 | 1546 | then { | |
1540 | - | let | |
1541 | - | let | |
1542 | - | then [IntegerEntry(( | |
1547 | + | let hg = ((he + dA) - hc) | |
1548 | + | let hh = if ((hg >= 0)) | |
1549 | + | then [IntegerEntry((aJ + S), hg)] | |
1543 | 1550 | else nil | |
1544 | - | ( | |
1551 | + | (ej(aJ, bL, hb, hf) ++ hh) | |
1545 | 1552 | } | |
1546 | 1553 | else throw("Strict value is not equal to itself.") | |
1547 | 1554 | } | |
1548 | 1555 | else throw("Strict value is not equal to itself.") | |
1549 | 1556 | })) | |
1550 | 1557 | ||
1551 | 1558 | ||
1552 | 1559 | ||
1553 | - | @Callable( | |
1554 | - | func capitalizeNoEx ( | |
1555 | - | let | |
1556 | - | let | |
1557 | - | if (( | |
1560 | + | @Callable(aC) | |
1561 | + | func capitalizeNoEx (aJ,fP,hi) = valueOrElse(aG(), valueOrElse(aB(aC), { | |
1562 | + | let bL = getStringValue(this, (P + aJ)) | |
1563 | + | let hj = fO(aJ, bL, fP, hi, 0) | |
1564 | + | if ((hj == hj)) | |
1558 | 1565 | then { | |
1559 | - | let | |
1560 | - | let | |
1561 | - | | |
1566 | + | let fR = hj._2 | |
1567 | + | let he = hj._1 | |
1568 | + | ej(aJ, bL, bt(fR), (he + hi)) | |
1562 | 1569 | } | |
1563 | 1570 | else throw("Strict value is not equal to itself.") | |
1564 | 1571 | })) | |
1565 | 1572 | ||
1566 | 1573 | ||
1567 | 1574 | ||
1568 | - | @Callable( | |
1569 | - | func initNewPool ( | |
1570 | - | then ( | |
1575 | + | @Callable(aC) | |
1576 | + | func initNewPool (aK,hk,aT,hl,hm,hn,ho,hp,hq,hr) = valueOrElse(aG(), valueOrElse(aD(aC), if (if ((aK != a)) | |
1577 | + | then (aK != b) | |
1571 | 1578 | else false) | |
1572 | 1579 | then throw("Wrong type") | |
1573 | - | else if (if (( | |
1574 | - | then ( | |
1580 | + | else if (if ((hk != c)) | |
1581 | + | then (hk != d) | |
1575 | 1582 | else false) | |
1576 | 1583 | then throw("Wrong pool type") | |
1577 | 1584 | else { | |
1578 | - | let | |
1579 | - | let | |
1580 | - | let | |
1581 | - | let | |
1582 | - | let | |
1583 | - | let | |
1584 | - | if ((0 > | |
1585 | + | let hs = bh(Address(fromBase58String(aT)), aK) | |
1586 | + | let aV = hs._1 | |
1587 | + | let aW = hs._2 | |
1588 | + | let dq = hs._3 | |
1589 | + | let dr = hs._4 | |
1590 | + | let bf = hs._5 | |
1591 | + | if ((0 > hl)) | |
1585 | 1592 | then throw("inFeeNoLoan must be greater than 0") | |
1586 | - | else if ((0 > | |
1593 | + | else if ((0 > hm)) | |
1587 | 1594 | then throw("inFeeLoan must be greater than 0") | |
1588 | - | else if ((0 > | |
1595 | + | else if ((0 > hn)) | |
1589 | 1596 | then throw("capFeeNoLoan must be greater than 0") | |
1590 | - | else if ((0 > | |
1597 | + | else if ((0 > ho)) | |
1591 | 1598 | then throw("capFeeWithLoan must be greater than 0") | |
1592 | - | else if ((0 > | |
1599 | + | else if ((0 > hp)) | |
1593 | 1600 | then throw("stoplossFeeNoLoan must be greater than 0") | |
1594 | - | else if ((0 > | |
1601 | + | else if ((0 > hq)) | |
1595 | 1602 | then throw("stoplossFeeWithLoan must be greater than 0") | |
1596 | - | else [IntegerEntry(( | |
1603 | + | else [IntegerEntry((aT + H), hl), IntegerEntry((aT + I), hm), IntegerEntry((aT + J), hn), IntegerEntry((aT + K), ho), IntegerEntry((aT + L), hp), IntegerEntry((aT + M), hq), IntegerEntry((aT + E), 0), IntegerEntry((aT + F), 0), StringEntry((P + aT), aK), StringEntry((aT + Q), hk), StringEntry((bf + R), aT), BooleanEntry((aT + G), hr)] | |
1597 | 1604 | })) | |
1598 | 1605 | ||
1599 | 1606 | ||
1600 | 1607 | ||
1601 | - | @Callable( | |
1602 | - | func updatePoolFees ( | |
1603 | - | then throw(("Can't find pool with addr " + | |
1604 | - | else if ((0 > | |
1608 | + | @Callable(aC) | |
1609 | + | func updatePoolFees (aT,hl,hm,hn,ho,hp,hq) = valueOrElse(aG(), valueOrElse(aD(aC), if (!(isDefined(getString(this, (P + aT))))) | |
1610 | + | then throw(("Can't find pool with addr " + aT)) | |
1611 | + | else if ((0 > hl)) | |
1605 | 1612 | then throw("inFeeNoLoan must be greater than 0") | |
1606 | - | else if ((0 > | |
1613 | + | else if ((0 > hm)) | |
1607 | 1614 | then throw("inFeeLoan must be greater than 0") | |
1608 | - | else if ((0 > | |
1615 | + | else if ((0 > hn)) | |
1609 | 1616 | then throw("capFeeNoLoan must be greater than 0") | |
1610 | - | else if ((0 > | |
1617 | + | else if ((0 > ho)) | |
1611 | 1618 | then throw("capFeeWithLoan must be greater than 0") | |
1612 | - | else if ((0 > | |
1619 | + | else if ((0 > hp)) | |
1613 | 1620 | then throw("stoplossFeeNoLoan must be greater than 0") | |
1614 | - | else if ((0 > | |
1621 | + | else if ((0 > hq)) | |
1615 | 1622 | then throw("stoplossFeeWithLoan must be greater than 0") | |
1616 | - | else [IntegerEntry(( | |
1623 | + | else [IntegerEntry((aT + H), hl), IntegerEntry((aT + I), hm), IntegerEntry((aT + J), hn), IntegerEntry((aT + K), ho), IntegerEntry((aT + L), hp), IntegerEntry((aT + M), hq)])) | |
1617 | 1624 | ||
1618 | 1625 | ||
1619 | 1626 | ||
1620 | - | @Callable( | |
1621 | - | func activate () = valueOrElse(aC | |
1627 | + | @Callable(aC) | |
1628 | + | func activate () = valueOrElse(aD(aC), if (valueOrElse(getBoolean(this, V), true)) | |
1622 | 1629 | then throw("dApp already active") | |
1623 | - | else [BooleanEntry(U, true)]) | |
1624 | - | ||
1625 | - | ||
1626 | - | ||
1627 | - | @Callable(aB) | |
1628 | - | func shutdown () = valueOrElse(aC(aB), if (!(valueOrElse(getBoolean(this, U), true))) | |
1629 | - | then throw("dApp already shutdown") | |
1630 | - | else [BooleanEntry(U, false)]) | |
1631 | - | ||
1632 | - | ||
1633 | - | ||
1634 | - | @Callable(aB) | |
1635 | - | func activateForUsers () = valueOrElse(aC(aB), if (valueOrElse(getBoolean(this, V), true)) | |
1636 | - | then throw("dApp already active for users") | |
1637 | 1630 | else [BooleanEntry(V, true)]) | |
1638 | 1631 | ||
1639 | 1632 | ||
1640 | 1633 | ||
1641 | - | @Callable( | |
1642 | - | func | |
1643 | - | then throw("dApp already shutdown | |
1634 | + | @Callable(aC) | |
1635 | + | func shutdown () = valueOrElse(aD(aC), if (!(valueOrElse(getBoolean(this, V), true))) | |
1636 | + | then throw("dApp already shutdown") | |
1644 | 1637 | else [BooleanEntry(V, false)]) | |
1645 | 1638 | ||
1646 | 1639 | ||
1647 | 1640 | ||
1648 | - | @Callable( | |
1649 | - | func | |
1650 | - | then throw(" | |
1651 | - | else [BooleanEntry( | |
1641 | + | @Callable(aC) | |
1642 | + | func activateForUsers () = valueOrElse(aD(aC), if (valueOrElse(getBoolean(this, W), true)) | |
1643 | + | then throw("dApp already active for users") | |
1644 | + | else [BooleanEntry(W, true)]) | |
1652 | 1645 | ||
1653 | 1646 | ||
1654 | 1647 | ||
1655 | - | @Callable( | |
1656 | - | func | |
1657 | - | then throw(" | |
1658 | - | else [BooleanEntry( | |
1648 | + | @Callable(aC) | |
1649 | + | func shutdownForUsers () = valueOrElse(aD(aC), if (!(valueOrElse(getBoolean(this, W), true))) | |
1650 | + | then throw("dApp already shutdown for users") | |
1651 | + | else [BooleanEntry(W, false)]) | |
1659 | 1652 | ||
1660 | 1653 | ||
1661 | 1654 | ||
1662 | - | @Callable( | |
1663 | - | func | |
1664 | - | then throw(" | |
1665 | - | else [BooleanEntry(( | |
1655 | + | @Callable(aC) | |
1656 | + | func activateSF () = valueOrElse(aD(aC), if (valueOrElse(getBoolean(this, (a + X)), true)) | |
1657 | + | then throw("SWOPFI already active") | |
1658 | + | else [BooleanEntry((a + X), true)]) | |
1666 | 1659 | ||
1667 | 1660 | ||
1668 | 1661 | ||
1669 | - | @Callable( | |
1670 | - | func | |
1671 | - | then throw(" | |
1672 | - | else [BooleanEntry(( | |
1662 | + | @Callable(aC) | |
1663 | + | func shutdownSF () = valueOrElse(aD(aC), if (!(valueOrElse(getBoolean(this, (a + X)), true))) | |
1664 | + | then throw("SWOPFI already shutdown") | |
1665 | + | else [BooleanEntry((a + X), false)]) | |
1673 | 1666 | ||
1674 | 1667 | ||
1675 | 1668 | ||
1676 | - | @Callable(aB) | |
1677 | - | func activatePool (aI) = valueOrElse(aC(aB), if (!(isDefined(getString(this, (P + aI))))) | |
1678 | - | then throw("Unknown pool") | |
1679 | - | else if (valueOrElse(getBoolean(this, (aI + X)), true)) | |
1680 | - | then throw("Pool already active") | |
1681 | - | else [BooleanEntry((aI + X), true)]) | |
1669 | + | @Callable(aC) | |
1670 | + | func activateWX () = valueOrElse(aD(aC), if (valueOrElse(getBoolean(this, (b + X)), true)) | |
1671 | + | then throw("WX already active") | |
1672 | + | else [BooleanEntry((b + X), true)]) | |
1682 | 1673 | ||
1683 | 1674 | ||
1684 | 1675 | ||
1685 | - | @Callable(aB) | |
1686 | - | func shutdownPool (aI) = valueOrElse(aC(aB), if (!(isDefined(getString(this, (P + aI))))) | |
1676 | + | @Callable(aC) | |
1677 | + | func shutdownWX () = valueOrElse(aD(aC), if (!(valueOrElse(getBoolean(this, (b + X)), true))) | |
1678 | + | then throw("WX already shutdown") | |
1679 | + | else [BooleanEntry((b + X), false)]) | |
1680 | + | ||
1681 | + | ||
1682 | + | ||
1683 | + | @Callable(aC) | |
1684 | + | func activatePool (aJ) = valueOrElse(aD(aC), if (!(isDefined(getString(this, (P + aJ))))) | |
1687 | 1685 | then throw("Unknown pool") | |
1688 | - | else if (!(valueOrElse(getBoolean(this, (aI + X)), true))) | |
1686 | + | else if (valueOrElse(getBoolean(this, (aJ + Y)), true)) | |
1687 | + | then throw("Pool already active") | |
1688 | + | else [BooleanEntry((aJ + Y), true)]) | |
1689 | + | ||
1690 | + | ||
1691 | + | ||
1692 | + | @Callable(aC) | |
1693 | + | func shutdownPool (aJ) = valueOrElse(aD(aC), if (!(isDefined(getString(this, (P + aJ))))) | |
1694 | + | then throw("Unknown pool") | |
1695 | + | else if (!(valueOrElse(getBoolean(this, (aJ + Y)), true))) | |
1689 | 1696 | then throw("Pool already shutdown") | |
1690 | - | else [BooleanEntry(( | |
1697 | + | else [BooleanEntry((aJ + Y), false)]) | |
1691 | 1698 | ||
1692 | 1699 |
github/deemru/w8io/026f985 708.92 ms ◑