tx · FJwpmhb5qQTfzWQRFNnhoW6UrJXkRE9scZ5kKN4LqKXx 3N8G95pEaYEhZ4U3m3UrzpEzwBFn5vvXsZH: -0.06000000 Waves 2022.10.06 10:16 [2260146] smart account 3N8G95pEaYEhZ4U3m3UrzpEzwBFn5vvXsZH > SELF 0.00000000 Waves
{ "type": 13, "id": "FJwpmhb5qQTfzWQRFNnhoW6UrJXkRE9scZ5kKN4LqKXx", "fee": 6000000, "feeAssetId": null, "timestamp": 1665040660971, "version": 2, "chainId": 84, "sender": "3N8G95pEaYEhZ4U3m3UrzpEzwBFn5vvXsZH", "senderPublicKey": "Hj6oyH6As5UWo8fZ1K4hPsEY7nxH3MvhBqDD6axiwjXs", "proofs": [ "55wd9crnAjpsqM8BAq5d7WVTw9RMVqnU3Sws5VNdwu8PvRPgp1pR6jpoPeNLk3xTRFLtW6fJriymMGuqBdThF651" ], "script": "base64:BgJxCAISABIAEgMKAQESAwoBARILCgkBAQEBAQEBAQESEAoOAQEBAQEBAQgICAEBAQESAwoBARIFCgMBAQESBgoEAQEBCBIAEgMKAQESABIDCgEIEgASBAoCCAESAwoBARIAEgMKAQgSAwoBCBIDCgEBEgCKAQAJa19vcmFfa2V5AglrX29yYV9rZXkAD2tfb3JhX2Jsb2NrX2tleQIPa19vcmFfYmxvY2tfa2V5AAVrX29yYQIFa19vcmEACWtfYmFsYW5jZQIJa19iYWxhbmNlAA5rX3Bvc2l0aW9uU2l6ZQIOa19wb3NpdGlvblNpemUAEGtfcG9zaXRpb25NYXJnaW4CEGtfcG9zaXRpb25NYXJnaW4AFmtfcG9zaXRpb25PcGVuTm90aW9uYWwCFmtfcG9zaXRpb25PcGVuTm90aW9uYWwALmtfcG9zaXRpb25MYXN0VXBkYXRlZEN1bXVsYXRpdmVQcmVtaXVtRnJhY3Rpb24CEmtfcG9zaXRpb25GcmFjdGlvbgAUa19wb3NpdGlvbkNsb3NlZERhdGUCFGtfcG9zaXRpb25DbG9zZWREYXRlAA1rX2luaXRpYWx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RzaG9ydFByZW1pdW1GcmFjdGlvbgUPdW5kZXJseWluZ1ByaWNlCQACAQkArAICCQCsAgIJAKwCAgkBAXMBBQtsb25nRnVuZGluZwkBAXMBBQxzaG9ydEZ1bmRpbmcJAQFzAQkBEGdldFR3YXBTcG90UHJpY2UACQEBcwEJARJnZXRPcmFjbGVUd2FwUHJpY2UAAQJ0eAEGdmVyaWZ5AAkA9AMDCAUCdHgJYm9keUJ5dGVzCQCRAwIIBQJ0eAZwcm9vZnMAAAkBDmFkbWluUHVibGljS2V5ALiUUaw=", "height": 2260146, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: AjybwMU67a7qCVi95U9DeeFjL3rebKb7TeGDSzytFwqq Next: 8iqYrrRAKzR2kHBzQx24RtrsoGKdYdqHsf93zjTd5Ajz Diff:
Old | New | Differences | |
---|---|---|---|
95 | 95 | ||
96 | 96 | let U = "k_referral_address" | |
97 | 97 | ||
98 | - | func V () = valueOrErrorMessage(addressFromString(getStringValue(this, L)), "Coordinator not set") | |
98 | + | let V = "k_manager_address" | |
99 | + | ||
100 | + | func W () = valueOrErrorMessage(addressFromString(getStringValue(this, L)), "Coordinator not set") | |
99 | 101 | ||
100 | 102 | ||
101 | - | func | |
103 | + | func X () = addressFromString(getStringValue(W(), N)) | |
102 | 104 | ||
103 | 105 | ||
104 | - | func | |
106 | + | func Y () = fromBase58String(getStringValue(W(), O)) | |
105 | 107 | ||
106 | 108 | ||
107 | - | func | |
109 | + | func Z () = fromBase58String(getStringValue(W(), P)) | |
108 | 110 | ||
109 | 111 | ||
110 | - | func | |
112 | + | func aa () = valueOrErrorMessage(addressFromString(getStringValue(W(), Q)), "Quote asset staking not set") | |
111 | 113 | ||
112 | 114 | ||
113 | - | func | |
115 | + | func ab () = valueOrErrorMessage(addressFromString(getStringValue(W(), R)), "Staking not set") | |
114 | 116 | ||
115 | 117 | ||
116 | - | func | |
118 | + | func ac () = valueOrErrorMessage(addressFromString(getStringValue(W(), M)), "Insurance not set") | |
117 | 119 | ||
118 | 120 | ||
119 | - | func | |
121 | + | func ad () = valueOrErrorMessage(addressFromString(getStringValue(W(), S)), "Miner not set") | |
120 | 122 | ||
121 | 123 | ||
122 | - | func | |
124 | + | func ae () = valueOrErrorMessage(addressFromString(getStringValue(W(), T)), "Orders not set") | |
123 | 125 | ||
124 | 126 | ||
125 | - | func | |
127 | + | func af () = valueOrErrorMessage(addressFromString(getStringValue(W(), U)), "Referral not set") | |
126 | 128 | ||
127 | 129 | ||
128 | - | let af = 1 | |
129 | - | ||
130 | - | let ag = 2 | |
131 | - | ||
132 | - | let ah = 15 | |
133 | - | ||
134 | - | let ai = 15 | |
135 | - | ||
136 | - | let aj = 1000 | |
137 | - | ||
138 | - | let ak = (1 * (((((10 * 10) * 10) * 10) * 10) * 10)) | |
139 | - | ||
140 | - | let al = (86400 * ak) | |
141 | - | ||
142 | - | let am = 100 | |
143 | - | ||
144 | - | let an = 1 | |
145 | - | ||
146 | - | let ao = 2 | |
147 | - | ||
148 | - | func ap (aq) = (toString(aq) + ",") | |
130 | + | func ag () = valueOrErrorMessage(addressFromString(getStringValue(W(), V)), "Manager not set") | |
149 | 131 | ||
150 | 132 | ||
151 | - | func ar (aq,as) = fraction(aq, ak, as, HALFEVEN) | |
133 | + | let ah = 1 | |
134 | + | ||
135 | + | let ai = 2 | |
136 | + | ||
137 | + | let aj = 15 | |
138 | + | ||
139 | + | let ak = 15 | |
140 | + | ||
141 | + | let al = 1000 | |
142 | + | ||
143 | + | let am = (1 * (((((10 * 10) * 10) * 10) * 10) * 10)) | |
144 | + | ||
145 | + | let an = (86400 * am) | |
146 | + | ||
147 | + | let ao = 100 | |
148 | + | ||
149 | + | let ap = 1 | |
150 | + | ||
151 | + | let aq = 2 | |
152 | + | ||
153 | + | func ar (as) = (toString(as) + ",") | |
152 | 154 | ||
153 | 155 | ||
154 | - | func at ( | |
156 | + | func at (as,au) = fraction(as, am, au, HALFEVEN) | |
155 | 157 | ||
156 | 158 | ||
157 | - | func au (aq) = if ((aq > 0)) | |
158 | - | then aq | |
159 | - | else -(aq) | |
159 | + | func av (as,au) = fraction(as, au, am, HALFEVEN) | |
160 | 160 | ||
161 | 161 | ||
162 | - | func | |
163 | - | then | |
164 | - | else as | |
162 | + | func aw (as) = if ((as > 0)) | |
163 | + | then as | |
164 | + | else -(as) | |
165 | 165 | ||
166 | 166 | ||
167 | - | func aw (ax,ay) = ((ax + "_") + ay) | |
167 | + | func ax (as,au) = if ((as >= au)) | |
168 | + | then as | |
169 | + | else au | |
168 | 170 | ||
169 | 171 | ||
170 | - | func az (aA) = { | |
171 | - | func aB (aC,aD) = ((aC + aD) + ",") | |
172 | + | func ay (az,aA) = ((az + "_") + aA) | |
172 | 173 | ||
173 | - | let aE = { | |
174 | - | let aF = aA | |
175 | - | let aG = size(aF) | |
176 | - | let aH = "" | |
177 | - | func aI (aJ,aK) = if ((aK >= aG)) | |
178 | - | then aJ | |
179 | - | else aB(aJ, aF[aK]) | |
180 | 174 | ||
181 | - | func aL (aJ,aK) = if ((aK >= aG)) | |
182 | - | then aJ | |
175 | + | func aB (aC) = { | |
176 | + | func aD (aE,aF) = ((aE + aF) + ",") | |
177 | + | ||
178 | + | let aG = { | |
179 | + | let aH = aC | |
180 | + | let aI = size(aH) | |
181 | + | let aJ = "" | |
182 | + | func aK (aL,aM) = if ((aM >= aI)) | |
183 | + | then aL | |
184 | + | else aD(aL, aH[aM]) | |
185 | + | ||
186 | + | func aN (aL,aM) = if ((aM >= aI)) | |
187 | + | then aL | |
183 | 188 | else throw("List size exceeds 20") | |
184 | 189 | ||
185 | - | | |
190 | + | aN(aK(aK(aK(aK(aK(aK(aK(aK(aK(aK(aK(aK(aK(aK(aK(aK(aK(aK(aK(aK(aJ, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20) | |
186 | 191 | } | |
187 | - | let | |
188 | - | let | |
189 | - | then drop( | |
190 | - | else | |
191 | - | | |
192 | + | let aO = dropRight(aG, 1) | |
193 | + | let aP = if ((take(aO, 1) == ",")) | |
194 | + | then drop(aO, 1) | |
195 | + | else aO | |
196 | + | aP | |
192 | 197 | } | |
193 | 198 | ||
194 | 199 | ||
195 | - | func | |
200 | + | func aQ (aR) = split(aR, ",") | |
196 | 201 | ||
197 | 202 | ||
198 | - | func | |
199 | - | then (removeByIndex( | |
200 | - | else ( | |
203 | + | func aS (aC,aT,aU) = if ((size(aC) > aT)) | |
204 | + | then (removeByIndex(aC, 0) :+ aU) | |
205 | + | else (aC :+ aU) | |
201 | 206 | ||
202 | 207 | ||
203 | - | func | |
208 | + | func aV (aW) = valueOrErrorMessage(getInteger(this, aW), ("no value for " + aW)) | |
204 | 209 | ||
205 | 210 | ||
206 | - | func | |
211 | + | func aX () = aV(d) | |
207 | 212 | ||
208 | 213 | ||
209 | - | func | |
214 | + | func aY () = aV(l) | |
210 | 215 | ||
211 | 216 | ||
212 | - | func | |
217 | + | func aZ () = aV(n) | |
213 | 218 | ||
214 | 219 | ||
215 | - | func | |
220 | + | func ba () = aV(E) | |
216 | 221 | ||
217 | 222 | ||
218 | - | func | |
223 | + | func bb () = aV(F) | |
219 | 224 | ||
220 | 225 | ||
221 | - | func | |
226 | + | func bc () = aV(G) | |
222 | 227 | ||
223 | 228 | ||
224 | - | func | |
229 | + | func bd () = aV(J) | |
225 | 230 | ||
226 | 231 | ||
227 | - | func | |
232 | + | func be () = aV(K) | |
228 | 233 | ||
229 | 234 | ||
230 | - | func | |
235 | + | func bf () = aV(B) | |
231 | 236 | ||
232 | 237 | ||
233 | - | func | |
238 | + | func bg () = aV(m) | |
234 | 239 | ||
235 | 240 | ||
236 | - | func | |
241 | + | func bh () = (bg() * am) | |
237 | 242 | ||
238 | 243 | ||
239 | - | func | |
244 | + | func bi () = (bg() * al) | |
240 | 245 | ||
241 | 246 | ||
242 | - | func | |
247 | + | func bj () = aV(o) | |
243 | 248 | ||
244 | 249 | ||
245 | - | func | |
250 | + | func bk () = aV(p) | |
246 | 251 | ||
247 | 252 | ||
248 | - | func | |
253 | + | func bl () = aV(q) | |
249 | 254 | ||
250 | 255 | ||
251 | - | func | |
256 | + | func bm () = aV(r) | |
252 | 257 | ||
253 | 258 | ||
254 | - | func | |
259 | + | func bn () = aV(s) | |
255 | 260 | ||
256 | 261 | ||
257 | - | func | |
262 | + | func bo () = aV(t) | |
258 | 263 | ||
259 | 264 | ||
260 | - | func | |
265 | + | func bp () = aV(z) | |
261 | 266 | ||
262 | 267 | ||
263 | - | func | |
268 | + | func bq () = aV(A) | |
264 | 269 | ||
265 | 270 | ||
266 | - | func | |
271 | + | func br () = aV(I) | |
267 | 272 | ||
268 | 273 | ||
269 | - | func | |
274 | + | func bs () = aV(H) | |
270 | 275 | ||
271 | 276 | ||
272 | - | func | |
277 | + | func bt (bu) = valueOrElse(getString(ae(), "k_sender"), toString(bu.caller)) | |
273 | 278 | ||
274 | 279 | ||
275 | - | func | |
276 | - | let | |
277 | - | if (if ( | |
278 | - | then (0 > | |
280 | + | func bv (bw,bx,by) = { | |
281 | + | let bz = (bw - bx) | |
282 | + | if (if (by) | |
283 | + | then (0 > bz) | |
279 | 284 | else false) | |
280 | 285 | then throw("Invalid margin") | |
281 | - | else if (if (!( | |
282 | - | then ( | |
286 | + | else if (if (!(by)) | |
287 | + | then (bz >= 0) | |
283 | 288 | else false) | |
284 | 289 | then throw("Invalid margin") | |
285 | 290 | else true | |
286 | 291 | } | |
287 | 292 | ||
288 | 293 | ||
289 | - | func | |
294 | + | func bA (bB) = if ((bB == 0)) | |
290 | 295 | then throw("Should not be called with _positionSize == 0") | |
291 | - | else if (( | |
292 | - | then | |
293 | - | else | |
296 | + | else if ((bB > 0)) | |
297 | + | then bp() | |
298 | + | else bq() | |
294 | 299 | ||
295 | 300 | ||
296 | - | func | |
297 | - | let | |
298 | - | let | |
299 | - | if ($isInstanceOf( | |
301 | + | func bC (bD) = { | |
302 | + | let bE = getInteger(this, ay(e, bD)) | |
303 | + | let bF = bE | |
304 | + | if ($isInstanceOf(bF, "Int")) | |
300 | 305 | then { | |
301 | - | let | |
302 | - | $Tuple4( | |
306 | + | let bG = bF | |
307 | + | $Tuple4(bG, getIntegerValue(this, ay(f, bD)), getIntegerValue(this, ay(g, bD)), getIntegerValue(this, ay(h, bD))) | |
303 | 308 | } | |
304 | 309 | else $Tuple4(0, 0, 0, 0) | |
305 | 310 | } | |
306 | 311 | ||
307 | 312 | ||
308 | - | func | |
313 | + | func bH (bD) = if ((bC(bD)._1 == 0)) | |
309 | 314 | then throw("No open position") | |
310 | 315 | else true | |
311 | 316 | ||
312 | 317 | ||
313 | - | func | |
318 | + | func bI () = valueOrElse(getBoolean(this, j), false) | |
314 | 319 | ||
315 | 320 | ||
316 | - | func | |
321 | + | func bJ () = valueOrElse(getBoolean(this, k), false) | |
317 | 322 | ||
318 | 323 | ||
319 | - | func | |
324 | + | func bK (bL,bM,bN) = if (bL) | |
320 | 325 | then { | |
321 | - | let | |
322 | - | if ((0 >= | |
326 | + | let bO = (bb() - bN) | |
327 | + | if ((0 >= bO)) | |
323 | 328 | then throw("Tx lead to base asset reserve <= 0, revert") | |
324 | - | else $Tuple4(( | |
329 | + | else $Tuple4((ba() + bM), bO, (bc() + bN), (bd() + bM)) | |
325 | 330 | } | |
326 | 331 | else { | |
327 | - | let | |
328 | - | if ((0 >= | |
332 | + | let bP = (ba() - bM) | |
333 | + | if ((0 >= bP)) | |
329 | 334 | then throw("Tx lead to base quote reserve <= 0, revert") | |
330 | - | else $Tuple4( | |
335 | + | else $Tuple4(bP, (bb() + bN), (bc() - bN), (bd() - bM)) | |
331 | 336 | } | |
332 | 337 | ||
333 | 338 | ||
334 | - | func | |
335 | - | let | |
336 | - | let | |
337 | - | let | |
338 | - | let | |
339 | - | then ( | |
340 | - | else ( | |
341 | - | let | |
342 | - | let | |
343 | - | let | |
344 | - | then | |
345 | - | else -( | |
346 | - | let | |
347 | - | let | |
348 | - | let | |
349 | - | let | |
350 | - | let | |
351 | - | let | |
352 | - | let | |
353 | - | let | |
354 | - | let | |
355 | - | let | |
356 | - | if (( | |
357 | - | then throw(((((((((((((("Price impact " + toString( | |
358 | - | else $Tuple5( | |
339 | + | func bQ (bL,bM) = { | |
340 | + | let bR = ba() | |
341 | + | let bS = bb() | |
342 | + | let aW = av(bR, bS) | |
343 | + | let bT = if (bL) | |
344 | + | then (bR + bM) | |
345 | + | else (bR - bM) | |
346 | + | let bU = at(aW, bT) | |
347 | + | let bV = aw((bU - bS)) | |
348 | + | let bW = if (bL) | |
349 | + | then bV | |
350 | + | else -(bV) | |
351 | + | let bX = bK(bL, bM, bV) | |
352 | + | let bY = bX._1 | |
353 | + | let bZ = bX._2 | |
354 | + | let ca = bX._3 | |
355 | + | let cb = bX._4 | |
356 | + | let cc = at(bR, bS) | |
357 | + | let cd = at(bM, bV) | |
358 | + | let ce = aw((cc - cd)) | |
359 | + | let cf = (am - at(cc, (cc + ce))) | |
360 | + | let cg = bn() | |
361 | + | if ((cf > cg)) | |
362 | + | then throw(((((((((((((("Price impact " + toString(cf)) + " > max price impact ") + toString(cg)) + " before quote asset: ") + toString(bR)) + " before base asset: ") + toString(bS)) + " quote asset amount to exchange: ") + toString(bM)) + " price before: ") + toString(cc)) + " marketPrice: ") + toString(cd))) | |
363 | + | else $Tuple5(bW, bY, bZ, ca, cb) | |
359 | 364 | } | |
360 | 365 | ||
361 | 366 | ||
362 | - | func | |
363 | - | let | |
367 | + | func ch (ci,cj,ck,cl) = { | |
368 | + | let cm = if ((ci != 0)) | |
364 | 369 | then { | |
365 | - | let | |
366 | - | | |
370 | + | let cn = bA(ci) | |
371 | + | av((cn - ck), ci) | |
367 | 372 | } | |
368 | 373 | else 0 | |
369 | - | let | |
370 | - | let | |
371 | - | then $Tuple2(0, | |
372 | - | else $Tuple2( | |
373 | - | let | |
374 | - | let | |
375 | - | $Tuple3( | |
374 | + | let co = ((cl - cm) + cj) | |
375 | + | let cp = if ((0 > co)) | |
376 | + | then $Tuple2(0, aw(co)) | |
377 | + | else $Tuple2(aw(co), 0) | |
378 | + | let cq = cp._1 | |
379 | + | let cr = cp._2 | |
380 | + | $Tuple3(cq, cr, cm) | |
376 | 381 | } | |
377 | 382 | ||
378 | 383 | ||
379 | - | func | |
380 | - | let | |
381 | - | if (( | |
384 | + | func cs (bL,bN,ct,cu,cv) = { | |
385 | + | let cc = at(cu, cv) | |
386 | + | if ((bN == 0)) | |
382 | 387 | then throw("Invalid base asset amount") | |
383 | 388 | else { | |
384 | - | let | |
385 | - | let | |
386 | - | then ( | |
387 | - | else ( | |
388 | - | let | |
389 | - | let | |
390 | - | let | |
391 | - | let | |
392 | - | let | |
393 | - | let | |
394 | - | let | |
395 | - | let | |
396 | - | let | |
397 | - | let | |
398 | - | let | |
399 | - | if (if (( | |
400 | - | then | |
389 | + | let aW = av(cu, cv) | |
390 | + | let cw = if (bL) | |
391 | + | then (cv + bN) | |
392 | + | else (cv - bN) | |
393 | + | let cx = at(aW, cw) | |
394 | + | let cy = aw((cx - cu)) | |
395 | + | let cg = bn() | |
396 | + | let cz = bK(!(bL), cy, bN) | |
397 | + | let bY = cz._1 | |
398 | + | let bZ = cz._2 | |
399 | + | let ca = cz._3 | |
400 | + | let cb = cz._4 | |
401 | + | let cd = at(cy, bN) | |
402 | + | let ce = aw((cc - cd)) | |
403 | + | let cf = (am - at(cc, (cc + ce))) | |
404 | + | if (if ((cf > cg)) | |
405 | + | then ct | |
401 | 406 | else false) | |
402 | - | then throw(((((((((((((("Price impact " + toString( | |
403 | - | else $Tuple8( | |
404 | - | then | |
405 | - | else 0)), ( | |
406 | - | then | |
407 | - | else 0)), | |
407 | + | then throw(((((((((((((("Price impact " + toString(cf)) + " > max price impact ") + toString(cg)) + " before quote asset: ") + toString(cu)) + " before base asset: ") + toString(cv)) + " base asset amount to exchange: ") + toString(bN)) + " price before: ") + toString(cc)) + " market price: ") + toString(cd))) | |
408 | + | else $Tuple8(cy, bY, bZ, ca, cb, (bs() - (if (bL) | |
409 | + | then aw(bN) | |
410 | + | else 0)), (br() - (if (!(bL)) | |
411 | + | then aw(bN) | |
412 | + | else 0)), cf) | |
408 | 413 | } | |
409 | 414 | } | |
410 | 415 | ||
411 | 416 | ||
412 | - | func | |
417 | + | func cA (bL,bN,ct) = cs(bL, bN, ct, ba(), bb()) | |
413 | 418 | ||
414 | 419 | ||
415 | - | func | |
416 | - | let | |
417 | - | let | |
418 | - | let | |
419 | - | let | |
420 | - | | |
420 | + | func cB () = { | |
421 | + | let cC = valueOrErrorMessage(addressFromString(getStringValue(this, c)), "") | |
422 | + | let cD = getStringValue(this, a) | |
423 | + | let cE = getStringValue(this, b) | |
424 | + | let cF = valueOrErrorMessage(getInteger(cC, cD), ((("Can not get oracle price. Oracle: " + toString(cC)) + " key: ") + cD)) | |
425 | + | cF | |
421 | 426 | } | |
422 | 427 | ||
423 | 428 | ||
424 | - | func | |
425 | - | let | |
426 | - | let | |
427 | - | let | |
428 | - | let | |
429 | - | if (( | |
430 | - | then throw(((("Price spread " + toString( | |
429 | + | func cG (cu,cv) = { | |
430 | + | let cH = cB() | |
431 | + | let cI = at(cu, cv) | |
432 | + | let cJ = at((cH + cI), (2 * am)) | |
433 | + | let cK = at(aw((cH - cI)), cJ) | |
434 | + | if ((cK > bo())) | |
435 | + | then throw(((("Price spread " + toString(cK)) + " > max price spread ") + toString(bo()))) | |
431 | 436 | else true | |
432 | 437 | } | |
433 | 438 | ||
434 | 439 | ||
435 | - | func | |
436 | - | let | |
437 | - | let | |
438 | - | | |
440 | + | func cL () = { | |
441 | + | let cu = ba() | |
442 | + | let cv = bb() | |
443 | + | at(cu, cv) | |
439 | 444 | } | |
440 | 445 | ||
441 | 446 | ||
442 | - | func | |
443 | - | let | |
444 | - | let | |
445 | - | ( | |
447 | + | func cM () = { | |
448 | + | let cH = cB() | |
449 | + | let cN = cL() | |
450 | + | (at(aw((cH - cN)), cH) > bm()) | |
446 | 451 | } | |
447 | 452 | ||
448 | 453 | ||
449 | - | func | |
450 | - | let | |
451 | - | let | |
452 | - | let | |
454 | + | func cO (bB,cP,cu,cv) = { | |
455 | + | let cQ = aw(bB) | |
456 | + | let cR = (0 > bB) | |
457 | + | let cS = if ((cP == ap)) | |
453 | 458 | then { | |
454 | - | let | |
455 | - | let | |
456 | - | let | |
457 | - | let | |
458 | - | let | |
459 | - | | |
459 | + | let cT = cs(!(cR), cQ, false, cu, cv) | |
460 | + | let cU = cT._1 | |
461 | + | let cV = cT._2 | |
462 | + | let cW = cT._3 | |
463 | + | let cX = cT._4 | |
464 | + | cU | |
460 | 465 | } | |
461 | - | else | |
462 | - | | |
466 | + | else av(cQ, cB()) | |
467 | + | cS | |
463 | 468 | } | |
464 | 469 | ||
465 | 470 | ||
466 | - | func | |
471 | + | func cY (bB,cZ,cu,cv,cP) = if ((bB == 0)) | |
467 | 472 | then throw("Invalid position size") | |
468 | 473 | else { | |
469 | - | let | |
470 | - | let | |
471 | - | let | |
472 | - | then ( | |
473 | - | else ( | |
474 | - | $Tuple2( | |
474 | + | let cR = (0 > bB) | |
475 | + | let cS = cO(bB, cP, cu, cv) | |
476 | + | let da = if (cR) | |
477 | + | then (cZ - cS) | |
478 | + | else (cS - cZ) | |
479 | + | $Tuple2(cS, da) | |
475 | 480 | } | |
476 | 481 | ||
477 | 482 | ||
478 | - | func | |
479 | - | let | |
480 | - | let | |
481 | - | let | |
482 | - | let | |
483 | - | let | |
484 | - | | |
483 | + | func db (bD,cP) = { | |
484 | + | let dc = bC(bD) | |
485 | + | let bG = dc._1 | |
486 | + | let dd = dc._2 | |
487 | + | let de = dc._3 | |
488 | + | let df = dc._4 | |
489 | + | cY(bG, de, ba(), bb(), cP) | |
485 | 490 | } | |
486 | 491 | ||
487 | 492 | ||
488 | - | func | |
493 | + | func dg (dh,di,dj) = at((dh - di), dj) | |
489 | 494 | ||
490 | 495 | ||
491 | - | func | |
492 | - | let | |
493 | - | let | |
494 | - | let | |
495 | - | let | |
496 | - | let | |
497 | - | let | |
498 | - | let | |
499 | - | let | |
500 | - | let | |
501 | - | let | |
502 | - | let | |
503 | - | | |
496 | + | func dk (bD,cP) = { | |
497 | + | let dl = bC(bD) | |
498 | + | let bG = dl._1 | |
499 | + | let dd = dl._2 | |
500 | + | let dm = dl._3 | |
501 | + | let df = dl._4 | |
502 | + | let dn = db(bD, cP) | |
503 | + | let cS = dn._1 | |
504 | + | let da = dn._2 | |
505 | + | let do = ch(bG, dd, df, da) | |
506 | + | let cq = do._1 | |
507 | + | let cr = do._2 | |
508 | + | dg(cq, cr, cS) | |
504 | 509 | } | |
505 | 510 | ||
506 | 511 | ||
507 | - | func | |
512 | + | func dp (bD) = dk(bD, ap) | |
508 | 513 | ||
509 | 514 | ||
510 | - | func | |
511 | - | let | |
512 | - | let | |
513 | - | let | |
514 | - | let | |
515 | - | let | |
516 | - | if (( | |
517 | - | then | |
515 | + | func dq (bD,bB) = { | |
516 | + | let dr = ax(bl(), (am - at(dp(bD), bj()))) | |
517 | + | let ds = av(aw(bB), dr) | |
518 | + | let dt = cA((bB > 0), ds, false) | |
519 | + | let du = dt._1 | |
520 | + | let cf = dt._8 | |
521 | + | if ((bn() > cf)) | |
522 | + | then du | |
518 | 523 | else { | |
519 | - | let | |
520 | - | let | |
521 | - | | |
524 | + | let dv = av(aw(bB), bl()) | |
525 | + | let dw = cA((bB > 0), dv, false)._1 | |
526 | + | dw | |
522 | 527 | } | |
523 | 528 | } | |
524 | 529 | ||
525 | 530 | ||
526 | - | func | |
527 | - | let | |
528 | - | let | |
529 | - | let | |
530 | - | let | |
531 | - | let | |
532 | - | let | |
533 | - | let | |
534 | - | let | |
535 | - | let | |
536 | - | let | |
537 | - | let | |
538 | - | let | |
539 | - | let | |
540 | - | let | |
541 | - | let | |
542 | - | let | |
543 | - | let | |
544 | - | let | |
545 | - | let | |
546 | - | let | |
547 | - | let | |
548 | - | $Tuple12( | |
531 | + | func dx (bD,ct) = { | |
532 | + | let dy = bC(bD) | |
533 | + | let bG = dy._1 | |
534 | + | let dd = dy._2 | |
535 | + | let de = dy._3 | |
536 | + | let df = dy._4 | |
537 | + | let da = db(bD, ap)._2 | |
538 | + | let dz = ch(bG, dd, df, da) | |
539 | + | let cq = dz._1 | |
540 | + | let cr = dz._2 | |
541 | + | let dv = -(bG) | |
542 | + | let dA = da | |
543 | + | let dB = -(cq) | |
544 | + | let dC = cA((bG > 0), aw(bG), ct) | |
545 | + | let dw = dC._1 | |
546 | + | let bT = dC._2 | |
547 | + | let bU = dC._3 | |
548 | + | let dD = dC._4 | |
549 | + | let dE = dC._5 | |
550 | + | let dF = dC._6 | |
551 | + | let dG = dC._7 | |
552 | + | let dH = (be() - de) | |
553 | + | $Tuple12(dv, cr, dA, dB, bT, bU, dD, dE, dH, dw, dF, dG) | |
549 | 554 | } | |
550 | 555 | ||
551 | 556 | ||
552 | - | func | |
553 | - | let | |
554 | - | let | |
555 | - | let | |
556 | - | let | |
557 | - | func | |
558 | - | then ( | |
559 | - | else | |
557 | + | func dI () = { | |
558 | + | let dJ = ((lastBlock.timestamp / 1000) / 60) | |
559 | + | let dK = (dJ - aj) | |
560 | + | let dL = valueOrElse(getString(this, u), "") | |
561 | + | let dM = split(dL, ",") | |
562 | + | func dN (aE,dO) = if ((dK >= parseIntValue(dO))) | |
563 | + | then (aE :+ parseIntValue(dO)) | |
564 | + | else aE | |
560 | 565 | ||
561 | - | let | |
562 | - | let | |
563 | - | let | |
564 | - | let | |
565 | - | func | |
566 | - | then | |
567 | - | else | |
566 | + | let dP = { | |
567 | + | let aH = dM | |
568 | + | let aI = size(aH) | |
569 | + | let aJ = nil | |
570 | + | func aK (aL,aM) = if ((aM >= aI)) | |
571 | + | then aL | |
572 | + | else dN(aL, aH[aM]) | |
568 | 573 | ||
569 | - | func | |
570 | - | then | |
574 | + | func aN (aL,aM) = if ((aM >= aI)) | |
575 | + | then aL | |
571 | 576 | else throw("List size exceeds 20") | |
572 | 577 | ||
573 | - | | |
578 | + | aN(aK(aK(aK(aK(aK(aK(aK(aK(aK(aK(aK(aK(aK(aK(aK(aK(aK(aK(aK(aK(aJ, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20) | |
574 | 579 | } | |
575 | - | let | |
576 | - | then max( | |
577 | - | else parseIntValue( | |
578 | - | let | |
579 | - | let | |
580 | - | let | |
581 | - | let | |
582 | - | let | |
583 | - | let | |
584 | - | let | |
585 | - | (( | |
580 | + | let dQ = if ((size(dP) > 0)) | |
581 | + | then max(dP) | |
582 | + | else parseIntValue(dM[0]) | |
583 | + | let dR = valueOrElse(getInteger(this, v), 0) | |
584 | + | let dS = valueOrElse(getInteger(this, ((w + "_") + toString(dR))), 0) | |
585 | + | let dT = valueOrElse(getInteger(this, ((x + "_") + toString(dR))), 0) | |
586 | + | let dU = (dS + ((dJ - dR) * dT)) | |
587 | + | let dV = valueOrElse(getInteger(this, ((w + "_") + toString(dQ))), 0) | |
588 | + | let dW = valueOrElse(getInteger(this, ((x + "_") + toString(dQ))), 0) | |
589 | + | let dX = (dV + ((dK - dQ) * dW)) | |
590 | + | ((dU - dX) / aj) | |
586 | 591 | } | |
587 | 592 | ||
588 | 593 | ||
589 | - | func | |
590 | - | let | |
591 | - | let | |
592 | - | let | |
593 | - | let | |
594 | - | let | |
595 | - | let | |
596 | - | $Tuple2( | |
594 | + | func dY (dZ) = { | |
595 | + | let bB = bc() | |
596 | + | let ea = (bB > 0) | |
597 | + | let eb = cA(ea, aw(bB), false)._1 | |
598 | + | let ec = bb() | |
599 | + | let ed = av(ec, dZ) | |
600 | + | let ee = cY(bB, eb, ed, ec, ap)._2 | |
601 | + | $Tuple2(ed, ee) | |
597 | 602 | } | |
598 | 603 | ||
599 | 604 | ||
600 | - | func | |
601 | - | let | |
602 | - | let | |
603 | - | let | |
604 | - | if (if (( | |
605 | + | func ef () = { | |
606 | + | let eg = cB() | |
607 | + | let eh = dI() | |
608 | + | let ei = (eh - eg) | |
609 | + | if (if ((br() == 0)) | |
605 | 610 | then true | |
606 | - | else ( | |
611 | + | else (bs() == 0)) | |
607 | 612 | then $Tuple2(0, 0) | |
608 | - | else if ((0 > | |
613 | + | else if ((0 > ei)) | |
609 | 614 | then { | |
610 | - | let | |
611 | - | let | |
612 | - | $Tuple2( | |
615 | + | let ej = at(av(ei, bh()), an) | |
616 | + | let ek = at(av(ej, br()), bs()) | |
617 | + | $Tuple2(ej, ek) | |
613 | 618 | } | |
614 | 619 | else { | |
615 | - | let | |
616 | - | let | |
617 | - | $Tuple2( | |
620 | + | let ek = at(av(ei, bh()), an) | |
621 | + | let ej = at(av(ek, bs()), br()) | |
622 | + | $Tuple2(ej, ek) | |
618 | 623 | } | |
619 | 624 | } | |
620 | 625 | ||
621 | 626 | ||
622 | - | func | |
627 | + | func el (em,en,eo,ep,eq,er,es,et,eu) = [IntegerEntry(n, em), IntegerEntry(o, en), IntegerEntry(p, eo), IntegerEntry(m, ep), IntegerEntry(l, eq), IntegerEntry(r, er), IntegerEntry(s, es), IntegerEntry(q, et), IntegerEntry(t, eu)] | |
623 | 628 | ||
624 | 629 | ||
625 | - | func | |
630 | + | func ev (ew,ex,ey,ez,eA) = [IntegerEntry(B, ew), IntegerEntry(z, ex), IntegerEntry(A, ey), IntegerEntry(C, ez), IntegerEntry(D, eA)] | |
626 | 631 | ||
627 | 632 | ||
628 | - | func | |
633 | + | func eB (aA,eC,eD,eE,cn) = [IntegerEntry(ay(e, aA), eC), IntegerEntry(ay(f, aA), eD), IntegerEntry(ay(g, aA), eE), IntegerEntry(ay(h, aA), cn)] | |
629 | 634 | ||
630 | 635 | ||
631 | - | func | |
632 | - | let | |
633 | - | let | |
634 | - | if (( | |
636 | + | func eF (eG) = { | |
637 | + | let dJ = ((lastBlock.timestamp / 1000) / 60) | |
638 | + | let eH = valueOrElse(getInteger(this, v), 0) | |
639 | + | if ((eH > dJ)) | |
635 | 640 | then throw("TWAP out-of-order") | |
636 | 641 | else { | |
637 | - | let | |
638 | - | then | |
639 | - | else | |
640 | - | if (( | |
642 | + | let dR = if ((eH == 0)) | |
643 | + | then dJ | |
644 | + | else eH | |
645 | + | if ((dJ > eH)) | |
641 | 646 | then { | |
642 | - | let | |
643 | - | let | |
644 | - | let | |
645 | - | let | |
646 | - | [IntegerEntry( | |
647 | + | let eI = valueOrElse(getInteger(this, ((w + "_") + toString(eH))), 0) | |
648 | + | let eJ = valueOrElse(getInteger(this, ((x + "_") + toString(eH))), eG) | |
649 | + | let eK = (eI + ((dJ - dR) * eJ)) | |
650 | + | let dM = aS(aQ(valueOrElse(getString(this, u), "")), aj, toString(dJ)) | |
651 | + | [IntegerEntry(ay(w, toString(dJ)), eK), IntegerEntry(ay(x, toString(dJ)), eG), IntegerEntry(ay(y, toString(dJ)), eH), IntegerEntry(v, dJ), StringEntry(u, aB(dM))] | |
647 | 652 | } | |
648 | 653 | else { | |
649 | - | let | |
650 | - | let | |
651 | - | let | |
652 | - | let | |
653 | - | [IntegerEntry( | |
654 | + | let eL = valueOrElse(getInteger(this, ay(y, toString(dJ))), 0) | |
655 | + | let eI = valueOrElse(getInteger(this, ay(w, toString(eL))), 0) | |
656 | + | let eJ = valueOrElse(getInteger(this, ay(x, toString(eL))), eG) | |
657 | + | let eK = (eI + ((dJ - eL) * eJ)) | |
658 | + | [IntegerEntry(ay(w, toString(dJ)), eK), IntegerEntry(ay(x, toString(dJ)), eG)] | |
654 | 659 | } | |
655 | 660 | } | |
656 | 661 | } | |
657 | 662 | ||
658 | 663 | ||
659 | - | func | |
664 | + | func eM (bR,bS) = [IntegerEntry(E, bR), IntegerEntry(F, bS)] | |
660 | 665 | ||
661 | 666 | ||
662 | - | func | |
663 | - | then throw(((((("Invalid AMM state data: " + toString( | |
664 | - | else (( | |
667 | + | func eN (bR,bS,eO,eP,eQ,eR,eS) = if (((eR - eS) != eO)) | |
668 | + | then throw(((((("Invalid AMM state data: " + toString(eR)) + " + ") + toString(eS)) + " != ") + toString(eO))) | |
669 | + | else ((eM(bR, bS) ++ [IntegerEntry(G, eO), IntegerEntry(J, eP), IntegerEntry(K, eQ), IntegerEntry(H, eR), IntegerEntry(I, eS)]) ++ eF(at(bR, bS))) | |
665 | 670 | ||
666 | 671 | ||
667 | - | func | |
672 | + | func eT (aA) = [DeleteEntry(ay(e, aA)), DeleteEntry(ay(f, aA)), DeleteEntry(ay(g, aA)), DeleteEntry(ay(h, aA)), IntegerEntry(ay(i, aA), lastBlock.timestamp)] | |
668 | 673 | ||
669 | 674 | ||
670 | - | func | |
671 | - | let | |
672 | - | if (( | |
673 | - | then throw(((("Unable to withdraw " + toString( | |
674 | - | else [ScriptTransfer( | |
675 | + | func eU (aA,eV) = { | |
676 | + | let eW = assetBalance(this, Z()) | |
677 | + | if ((eV > eW)) | |
678 | + | then throw(((("Unable to withdraw " + toString(eV)) + " from contract balance ") + toString(eW))) | |
679 | + | else [ScriptTransfer(aA, eV, Z())] | |
675 | 680 | } | |
676 | 681 | ||
677 | 682 | ||
678 | - | func | |
683 | + | func eX (bu) = if ((0 > bu)) | |
679 | 684 | then throw("Balance") | |
680 | - | else [IntegerEntry(d, | |
685 | + | else [IntegerEntry(d, bu)] | |
681 | 686 | ||
682 | 687 | ||
683 | - | func | |
688 | + | func eY (bu) = [ScriptTransfer(ab(), bu, Z())] | |
684 | 689 | ||
685 | 690 | ||
686 | - | @Callable( | |
687 | - | func pause () = if (( | |
691 | + | @Callable(bu) | |
692 | + | func pause () = if ((bu.caller != X())) | |
688 | 693 | then throw("Invalid togglePause params") | |
689 | 694 | else [BooleanEntry(k, true)] | |
690 | 695 | ||
691 | 696 | ||
692 | 697 | ||
693 | - | @Callable( | |
694 | - | func unpause () = if (( | |
698 | + | @Callable(bu) | |
699 | + | func unpause () = if ((bu.caller != X())) | |
695 | 700 | then throw("Invalid togglePause params") | |
696 | 701 | else [BooleanEntry(k, false)] | |
697 | 702 | ||
698 | 703 | ||
699 | 704 | ||
700 | - | @Callable( | |
701 | - | func addLiquidity ( | |
705 | + | @Callable(bu) | |
706 | + | func addLiquidity (bM) = if (if ((bu.caller != X())) | |
702 | 707 | then true | |
703 | - | else (0 >= | |
708 | + | else (0 >= bM)) | |
704 | 709 | then throw("Invalid addLiquidity params") | |
705 | 710 | else { | |
706 | - | let | |
707 | - | let | |
708 | - | let | |
709 | - | let | |
710 | - | let | |
711 | - | let | |
712 | - | | |
711 | + | let bR = ba() | |
712 | + | let bS = bb() | |
713 | + | let eG = at(bR, bS) | |
714 | + | let eZ = at(bM, eG) | |
715 | + | let fa = (bR + bM) | |
716 | + | let fb = (bS + eZ) | |
717 | + | eM(fa, fb) | |
713 | 718 | } | |
714 | 719 | ||
715 | 720 | ||
716 | 721 | ||
717 | - | @Callable( | |
718 | - | func removeLiquidity ( | |
722 | + | @Callable(bu) | |
723 | + | func removeLiquidity (bM) = if (if ((bu.caller != X())) | |
719 | 724 | then true | |
720 | - | else (0 >= | |
725 | + | else (0 >= bM)) | |
721 | 726 | then throw("Invalid removeLiquidity params") | |
722 | 727 | else { | |
723 | - | let | |
724 | - | let | |
725 | - | let | |
726 | - | let | |
727 | - | let | |
728 | - | let | |
729 | - | | |
728 | + | let bR = ba() | |
729 | + | let bS = bb() | |
730 | + | let eG = at(bR, bS) | |
731 | + | let fc = at(bM, eG) | |
732 | + | let fa = (bR - bM) | |
733 | + | let fb = (bS - fc) | |
734 | + | eM(fa, fb) | |
730 | 735 | } | |
731 | 736 | ||
732 | 737 | ||
733 | 738 | ||
734 | - | @Callable( | |
735 | - | func changeSettings ( | |
739 | + | @Callable(bu) | |
740 | + | func changeSettings (em,en,eo,ep,eq,er,es,et,eu) = if ((bu.caller != X())) | |
736 | 741 | then throw("Invalid changeSettings params") | |
737 | - | else | |
742 | + | else el(em, en, eo, ep, eq, er, es, et, eu) | |
738 | 743 | ||
739 | 744 | ||
740 | 745 | ||
741 | - | @Callable( | |
742 | - | func initialize ( | |
746 | + | @Callable(bu) | |
747 | + | func initialize (bR,bS,ep,em,en,eo,eq,fd,fe,ff,er,es,et,eu) = if (if (if (if (if (if (if (if (if (if (if (if ((0 >= bR)) | |
743 | 748 | then true | |
744 | - | else (0 >= bQ)) | |
749 | + | else (0 >= bS)) | |
750 | + | then true | |
751 | + | else (0 >= ep)) | |
752 | + | then true | |
753 | + | else (0 >= em)) | |
745 | 754 | then true | |
746 | 755 | else (0 >= en)) | |
747 | 756 | then true | |
748 | - | else (0 >= ek)) | |
749 | - | then true | |
750 | - | else (0 >= el)) | |
751 | - | then true | |
752 | - | else (0 >= em)) | |
753 | - | then true | |
754 | 757 | else (0 >= eo)) | |
755 | - | then true | |
756 | - | else (0 >= ep)) | |
757 | 758 | then true | |
758 | 759 | else (0 >= eq)) | |
759 | 760 | then true | |
761 | 762 | then true | |
762 | 763 | else (0 >= es)) | |
763 | 764 | then true | |
764 | - | else bG()) | |
765 | + | else (0 >= et)) | |
766 | + | then true | |
767 | + | else (0 >= eu)) | |
768 | + | then true | |
769 | + | else bI()) | |
765 | 770 | then throw("Invalid initialize parameters") | |
766 | - | else (((( | |
771 | + | else ((((eN(bR, bS, 0, 0, 0, 0, 0) ++ el(em, en, eo, ep, eq, er, es, et, eu)) ++ ev((lastBlock.timestamp + ep), 0, 0, 0, 0)) ++ eX(0)) ++ [BooleanEntry(j, true), StringEntry(c, fd), StringEntry(a, fe), StringEntry(L, ff)]) | |
767 | 772 | ||
768 | 773 | ||
769 | 774 | ||
770 | - | @Callable( | |
771 | - | func setInitMarginRatio ( | |
775 | + | @Callable(bu) | |
776 | + | func setInitMarginRatio (em) = if (if ((0 >= em)) | |
772 | 777 | then true | |
773 | - | else !( | |
778 | + | else !(bI())) | |
774 | 779 | then throw("Invalid setInitMarginRatio parameters") | |
775 | - | else | |
780 | + | else el(em, bj(), bk(), bg(), aY(), bm(), bn(), bl(), bo()) | |
776 | 781 | ||
777 | 782 | ||
778 | 783 | ||
779 | - | @Callable( | |
780 | - | func decreasePosition ( | |
784 | + | @Callable(bu) | |
785 | + | func decreasePosition (eV,fg,fh) = if (if (if (if (if ((0 >= eV)) | |
781 | 786 | then true | |
782 | - | else !( | |
787 | + | else !(bI())) | |
783 | 788 | then true | |
784 | - | else !( | |
789 | + | else !(bv(at(am, fg), aZ(), true))) | |
785 | 790 | then true | |
786 | - | else !( | |
791 | + | else !(bH(toString(bu.caller)))) | |
787 | 792 | then true | |
788 | - | else | |
793 | + | else bJ()) | |
789 | 794 | then throw("Invalid decreasePosition parameters") | |
790 | 795 | else { | |
791 | - | let | |
792 | - | let | |
793 | - | let | |
794 | - | let | |
795 | - | let | |
796 | - | let | |
797 | - | then | |
798 | - | else | |
799 | - | let | |
800 | - | let | |
801 | - | let | |
802 | - | let | |
803 | - | let | |
804 | - | let | |
796 | + | let fi = bC(toString(bu.caller)) | |
797 | + | let fj = fi._1 | |
798 | + | let fk = fi._2 | |
799 | + | let fl = fi._3 | |
800 | + | let fm = fi._4 | |
801 | + | let fn = if ((fj > 0)) | |
802 | + | then ai | |
803 | + | else ah | |
804 | + | let fo = (fn == ah) | |
805 | + | let fp = av(eV, fg) | |
806 | + | let fq = db(toString(bu.caller), ap) | |
807 | + | let fr = fq._1 | |
808 | + | let da = fq._2 | |
809 | + | let fs = if ((fr > fp)) | |
805 | 810 | then { | |
806 | - | let | |
807 | - | let | |
808 | - | let | |
809 | - | let | |
810 | - | let | |
811 | - | let | |
812 | - | let | |
813 | - | if (if (( | |
814 | - | then ( | |
811 | + | let ft = bQ(fo, fp) | |
812 | + | let dv = ft._1 | |
813 | + | let bT = ft._2 | |
814 | + | let bU = ft._3 | |
815 | + | let dD = ft._4 | |
816 | + | let dE = ft._5 | |
817 | + | let fu = aw(dv) | |
818 | + | if (if ((fh != 0)) | |
819 | + | then (fh > fu) | |
815 | 820 | else false) | |
816 | - | then throw(((("Too little base asset exchanged, got " + toString( | |
821 | + | then throw(((("Too little base asset exchanged, got " + toString(fu)) + " expected ") + toString(fh))) | |
817 | 822 | else { | |
818 | - | let | |
819 | - | let | |
820 | - | let | |
821 | - | let | |
822 | - | let | |
823 | - | let | |
824 | - | let | |
825 | - | let | |
826 | - | then (( | |
827 | - | else (( | |
828 | - | let | |
829 | - | $Tuple11( | |
830 | - | then | |
831 | - | else 0)), ( | |
832 | - | then | |
823 | + | let dA = at(av(da, fu), aw(fj)) | |
824 | + | let fv = ch(fj, fk, fm, dA) | |
825 | + | let cq = fv._1 | |
826 | + | let cr = fv._2 | |
827 | + | let cm = fv._3 | |
828 | + | let dw = fp | |
829 | + | let fw = (da - dA) | |
830 | + | let fx = if ((fj > 0)) | |
831 | + | then ((fr - dw) - fw) | |
832 | + | else ((fw + fr) - dw) | |
833 | + | let fy = (fj + dv) | |
834 | + | $Tuple11(fy, cq, aw(fx), bA(fy), bU, bT, dD, dE, (be() - fp), (bs() - (if ((fy > 0)) | |
835 | + | then aw(dv) | |
836 | + | else 0)), (br() - (if ((0 > fy)) | |
837 | + | then aw(dv) | |
833 | 838 | else 0))) | |
834 | 839 | } | |
835 | 840 | } | |
836 | 841 | else throw("Close position first") | |
837 | - | let | |
838 | - | let | |
839 | - | let | |
840 | - | let | |
841 | - | let | |
842 | - | let | |
843 | - | let | |
844 | - | let | |
845 | - | let | |
846 | - | let | |
847 | - | let | |
848 | - | let | |
849 | - | if (( | |
850 | - | then ( | |
842 | + | let fy = fs._1 | |
843 | + | let fz = fs._2 | |
844 | + | let fA = fs._3 | |
845 | + | let fB = fs._4 | |
846 | + | let bU = fs._5 | |
847 | + | let bT = fs._6 | |
848 | + | let dD = fs._7 | |
849 | + | let dE = fs._8 | |
850 | + | let dH = fs._9 | |
851 | + | let dF = fs._10 | |
852 | + | let dG = fs._11 | |
853 | + | let fC = invoke(ad(), "notifyNotional", [toString(bu.caller), fA], nil) | |
854 | + | if ((fC == fC)) | |
855 | + | then (eB(toString(bu.caller), fy, fz, fA, fB) ++ eN(bT, bU, dD, dE, dH, dF, dG)) | |
851 | 856 | else throw("Strict value is not equal to itself.") | |
852 | 857 | } | |
853 | 858 | ||
854 | 859 | ||
855 | 860 | ||
856 | - | @Callable( | |
857 | - | func increasePosition ( | |
858 | - | let | |
859 | - | if (if (if (if (if (if (if (( | |
860 | - | then ( | |
861 | + | @Callable(bu) | |
862 | + | func increasePosition (fn,fg,fh,fD) = { | |
863 | + | let fE = bu.payments[0].amount | |
864 | + | if (if (if (if (if (if (if ((fn != ah)) | |
865 | + | then (fn != ai) | |
861 | 866 | else false) | |
862 | 867 | then true | |
863 | - | else (0 >= | |
868 | + | else (0 >= fE)) | |
864 | 869 | then true | |
865 | - | else !( | |
870 | + | else !(bI())) | |
866 | 871 | then true | |
867 | - | else ( | |
872 | + | else (bu.payments[0].assetId != Z())) | |
868 | 873 | then true | |
869 | - | else !( | |
874 | + | else !(bv(at(am, fg), aZ(), true))) | |
870 | 875 | then true | |
871 | - | else | |
876 | + | else bJ()) | |
872 | 877 | then throw("Invalid increasePosition parameters") | |
873 | 878 | else { | |
874 | - | let | |
875 | - | let | |
876 | - | let | |
877 | - | if (( | |
879 | + | let bD = toString(bu.caller) | |
880 | + | let fF = av(fE, aY()) | |
881 | + | let fG = invoke(af(), "acceptPaymentWithLink", [bD, fD], [AttachedPayment(Z(), fF)]) | |
882 | + | if ((fG == fG)) | |
878 | 883 | then { | |
879 | - | let | |
880 | - | let | |
881 | - | if ($isInstanceOf( | |
884 | + | let fH = { | |
885 | + | let bF = fG | |
886 | + | if ($isInstanceOf(bF, "Int")) | |
882 | 887 | then { | |
883 | - | let | |
884 | - | | |
888 | + | let fI = bF | |
889 | + | fI | |
885 | 890 | } | |
886 | 891 | else throw("Invalid referrerFee") | |
887 | 892 | } | |
888 | - | let | |
889 | - | let | |
890 | - | let | |
891 | - | let | |
892 | - | let | |
893 | - | let | |
894 | - | let | |
895 | - | let | |
896 | - | let | |
897 | - | then ( | |
898 | - | else ( | |
899 | - | let | |
900 | - | then | |
893 | + | let eV = (fE - fF) | |
894 | + | let fJ = (fF - fH) | |
895 | + | let fK = bC(bD) | |
896 | + | let fj = fK._1 | |
897 | + | let fk = fK._2 | |
898 | + | let fl = fK._3 | |
899 | + | let fm = fK._4 | |
900 | + | let fL = (fj == 0) | |
901 | + | let fM = if ((fj > 0)) | |
902 | + | then (fn == ah) | |
903 | + | else (fn == ai) | |
904 | + | let fN = if (!(fL)) | |
905 | + | then fM | |
901 | 906 | else false | |
902 | - | let | |
903 | - | let | |
907 | + | let fo = (fn == ah) | |
908 | + | let fO = if (if (fL) | |
904 | 909 | then true | |
905 | - | else | |
910 | + | else fN) | |
906 | 911 | then { | |
907 | - | let | |
908 | - | let | |
909 | - | let | |
910 | - | let | |
911 | - | let | |
912 | - | let | |
913 | - | let | |
914 | - | if (if (( | |
915 | - | then ( | |
912 | + | let fp = av(eV, fg) | |
913 | + | let fP = bQ(fo, fp) | |
914 | + | let bW = fP._1 | |
915 | + | let bT = fP._2 | |
916 | + | let bU = fP._3 | |
917 | + | let dD = fP._4 | |
918 | + | let dE = fP._5 | |
919 | + | if (if ((fh != 0)) | |
920 | + | then (fh > aw(bW)) | |
916 | 921 | else false) | |
917 | - | then throw(((("Limit error: " + toString( | |
922 | + | then throw(((("Limit error: " + toString(aw(bW))) + " < ") + toString(fh))) | |
918 | 923 | else { | |
919 | - | let | |
920 | - | let | |
921 | - | let | |
922 | - | let | |
923 | - | let | |
924 | - | let | |
925 | - | if (!( | |
924 | + | let fy = (fj + bW) | |
925 | + | let fQ = at(fp, fg) | |
926 | + | let fR = ch(fj, fk, fm, fQ) | |
927 | + | let cq = fR._1 | |
928 | + | let cV = fR._2 | |
929 | + | let cW = fR._3 | |
930 | + | if (!(cG(bT, bU))) | |
926 | 931 | then throw("Over max spread limit") | |
927 | - | else $Tuple11( | |
928 | - | then | |
929 | - | else 0)), ( | |
930 | - | then | |
932 | + | else $Tuple11(fy, cq, (fl + fp), bA(fy), bU, bT, dD, dE, (be() + fp), (bs() + (if ((fy > 0)) | |
933 | + | then aw(bW) | |
934 | + | else 0)), (br() + (if ((0 > fy)) | |
935 | + | then aw(bW) | |
931 | 936 | else 0))) | |
932 | 937 | } | |
933 | 938 | } | |
934 | 939 | else { | |
935 | - | let | |
936 | - | let | |
937 | - | let | |
938 | - | let | |
939 | - | if (( | |
940 | + | let fp = av(eV, fg) | |
941 | + | let fS = db(toString(bu.caller), ap) | |
942 | + | let fr = fS._1 | |
943 | + | let da = fS._2 | |
944 | + | if ((fr > fp)) | |
940 | 945 | then throw("Use decreasePosition to decrease position size") | |
941 | 946 | else throw("Close position first") | |
942 | 947 | } | |
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 | - | if (( | |
948 | + | let fy = fO._1 | |
949 | + | let fz = fO._2 | |
950 | + | let fA = fO._3 | |
951 | + | let fB = fO._4 | |
952 | + | let bU = fO._5 | |
953 | + | let bT = fO._6 | |
954 | + | let dD = fO._7 | |
955 | + | let dE = fO._8 | |
956 | + | let dH = fO._9 | |
957 | + | let dF = fO._10 | |
958 | + | let dG = fO._11 | |
959 | + | let fT = (fJ / 2) | |
960 | + | let fU = (fJ - fT) | |
961 | + | let fV = invoke(ag(), "deposit", nil, [AttachedPayment(Z(), eV)]) | |
962 | + | if ((fV == fV)) | |
958 | 963 | then { | |
959 | - | let | |
960 | - | if (( | |
964 | + | let fW = invoke(ac(), "deposit", nil, [AttachedPayment(Z(), fU)]) | |
965 | + | if ((fW == fW)) | |
961 | 966 | then { | |
962 | - | let | |
963 | - | if (( | |
967 | + | let fX = invoke(ad(), "notifyFees", [bD, fJ], nil) | |
968 | + | if ((fX == fX)) | |
964 | 969 | then { | |
965 | - | let | |
966 | - | if (( | |
967 | - | then ((( | |
970 | + | let fC = invoke(ad(), "notifyNotional", [bD, fA], nil) | |
971 | + | if ((fC == fC)) | |
972 | + | then (((eB(bD, fy, fz, fA, fB) ++ eN(bT, bU, dD, dE, dH, dF, dG)) ++ eY(fT)) ++ eX((aX() + eV))) | |
968 | 973 | else throw("Strict value is not equal to itself.") | |
969 | 974 | } | |
970 | 975 | else throw("Strict value is not equal to itself.") | |
979 | 984 | ||
980 | 985 | ||
981 | 986 | ||
982 | - | @Callable( | |
987 | + | @Callable(bu) | |
983 | 988 | func addMargin () = { | |
984 | - | let | |
985 | - | if (if (if (if (( | |
989 | + | let fE = bu.payments[0].amount | |
990 | + | if (if (if (if ((bu.payments[0].assetId != Z())) | |
986 | 991 | then true | |
987 | - | else !( | |
992 | + | else !(bH(toString(bu.caller)))) | |
988 | 993 | then true | |
989 | - | else !( | |
994 | + | else !(bI())) | |
990 | 995 | then true | |
991 | - | else | |
996 | + | else bJ()) | |
992 | 997 | then throw("Invalid addMargin parameters") | |
993 | 998 | else { | |
994 | - | let | |
995 | - | let | |
996 | - | let | |
997 | - | if (( | |
999 | + | let bD = toString(bu.caller) | |
1000 | + | let fF = av(fE, aY()) | |
1001 | + | let fG = invoke(af(), "acceptPayment", [bD], [AttachedPayment(Z(), fF)]) | |
1002 | + | if ((fG == fG)) | |
998 | 1003 | then { | |
999 | - | let | |
1000 | - | let | |
1001 | - | if ($isInstanceOf( | |
1004 | + | let fH = { | |
1005 | + | let bF = fG | |
1006 | + | if ($isInstanceOf(bF, "Int")) | |
1002 | 1007 | then { | |
1003 | - | let | |
1004 | - | | |
1008 | + | let fI = bF | |
1009 | + | fI | |
1005 | 1010 | } | |
1006 | 1011 | else throw("Invalid referrerFee") | |
1007 | 1012 | } | |
1008 | - | let | |
1009 | - | let | |
1010 | - | let | |
1011 | - | let | |
1012 | - | let | |
1013 | - | let | |
1014 | - | let | |
1015 | - | let | |
1016 | - | let | |
1017 | - | let | |
1018 | - | if (( | |
1013 | + | let fJ = (fF - fH) | |
1014 | + | let eV = (fE - fF) | |
1015 | + | let fY = bC(bD) | |
1016 | + | let fj = fY._1 | |
1017 | + | let fk = fY._2 | |
1018 | + | let fl = fY._3 | |
1019 | + | let fm = fY._4 | |
1020 | + | let fT = (fJ / 2) | |
1021 | + | let fU = (fJ - fT) | |
1022 | + | let fV = invoke(ag(), "deposit", nil, [AttachedPayment(Z(), eV)]) | |
1023 | + | if ((fV == fV)) | |
1019 | 1024 | then { | |
1020 | - | let | |
1021 | - | if (( | |
1025 | + | let fW = invoke(ac(), "deposit", nil, [AttachedPayment(Z(), fU)]) | |
1026 | + | if ((fW == fW)) | |
1022 | 1027 | then { | |
1023 | - | let | |
1024 | - | if (( | |
1025 | - | then (( | |
1028 | + | let fX = invoke(ad(), "notifyFees", [bD, fJ], nil) | |
1029 | + | if ((fX == fX)) | |
1030 | + | then ((eB(bD, fj, (fk + eV), fl, fm) ++ eY(fT)) ++ eX((aX() + eV))) | |
1026 | 1031 | else throw("Strict value is not equal to itself.") | |
1027 | 1032 | } | |
1028 | 1033 | else throw("Strict value is not equal to itself.") | |
1035 | 1040 | ||
1036 | 1041 | ||
1037 | 1042 | ||
1038 | - | @Callable( | |
1039 | - | func removeMargin ( | |
1043 | + | @Callable(bu) | |
1044 | + | func removeMargin (eV) = if (if (if (if ((0 >= eV)) | |
1040 | 1045 | then true | |
1041 | - | else !( | |
1046 | + | else !(bH(toString(bu.caller)))) | |
1042 | 1047 | then true | |
1043 | - | else !( | |
1048 | + | else !(bI())) | |
1044 | 1049 | then true | |
1045 | - | else | |
1050 | + | else bJ()) | |
1046 | 1051 | then throw("Invalid removeMargin parameters") | |
1047 | 1052 | else { | |
1048 | - | let | |
1049 | - | let | |
1050 | - | let | |
1051 | - | let | |
1052 | - | let | |
1053 | - | let | |
1054 | - | let | |
1055 | - | let | |
1056 | - | let | |
1057 | - | if (( | |
1053 | + | let fZ = bC(toString(bu.caller)) | |
1054 | + | let fj = fZ._1 | |
1055 | + | let fk = fZ._2 | |
1056 | + | let fl = fZ._3 | |
1057 | + | let fm = fZ._4 | |
1058 | + | let ga = -(eV) | |
1059 | + | let gb = ch(fj, fk, fm, ga) | |
1060 | + | let cq = gb._1 | |
1061 | + | let cr = gb._2 | |
1062 | + | if ((cr != 0)) | |
1058 | 1063 | then throw("Invalid removed margin amount") | |
1059 | 1064 | else { | |
1060 | - | let | |
1061 | - | if (!( | |
1062 | - | then throw(((("Too much margin removed: " + toString( | |
1065 | + | let gc = dg(cq, cr, fl) | |
1066 | + | if (!(bv(gc, aZ(), true))) | |
1067 | + | then throw(((("Too much margin removed: " + toString(gc)) + " < ") + toString(aZ()))) | |
1063 | 1068 | else { | |
1064 | - | let | |
1065 | - | if (( | |
1066 | - | then (( | |
1069 | + | let gd = invoke(ag(), "withdraw", [toBase58String(Z()), eV], nil) | |
1070 | + | if ((gd == gd)) | |
1071 | + | then ((eB(toString(bu.caller), fj, cq, fl, bA(fj)) ++ eU(bu.caller, eV)) ++ eX((aX() - eV))) | |
1067 | 1072 | else throw("Strict value is not equal to itself.") | |
1068 | 1073 | } | |
1069 | 1074 | } | |
1071 | 1076 | ||
1072 | 1077 | ||
1073 | 1078 | ||
1074 | - | @Callable( | |
1079 | + | @Callable(bu) | |
1075 | 1080 | func closePosition () = { | |
1076 | - | let | |
1077 | - | let | |
1078 | - | if (if (if (!( | |
1081 | + | let ge = bt(bu) | |
1082 | + | let gf = valueOrErrorMessage(addressFromString(ge), "Invalid caller") | |
1083 | + | if (if (if (!(bH(ge))) | |
1079 | 1084 | then true | |
1080 | - | else !( | |
1085 | + | else !(bI())) | |
1081 | 1086 | then true | |
1082 | - | else | |
1087 | + | else bJ()) | |
1083 | 1088 | then throw("Invalid closePosition parameters") | |
1084 | 1089 | else { | |
1085 | - | let | |
1086 | - | let | |
1087 | - | let | |
1088 | - | let | |
1089 | - | let | |
1090 | - | let | |
1091 | - | let | |
1092 | - | let | |
1093 | - | let | |
1094 | - | let | |
1095 | - | let | |
1096 | - | let | |
1097 | - | let | |
1098 | - | if (( | |
1090 | + | let gg = dx(ge, true) | |
1091 | + | let cV = gg._1 | |
1092 | + | let gh = gg._2 | |
1093 | + | let dA = gg._3 | |
1094 | + | let dB = gg._4 | |
1095 | + | let bT = gg._5 | |
1096 | + | let bU = gg._6 | |
1097 | + | let dD = gg._7 | |
1098 | + | let dE = gg._8 | |
1099 | + | let dH = gg._9 | |
1100 | + | let cW = gg._10 | |
1101 | + | let dF = gg._11 | |
1102 | + | let dG = gg._12 | |
1103 | + | if ((gh > 0)) | |
1099 | 1104 | then throw("Unable to close position with bad debt") | |
1100 | 1105 | else { | |
1101 | - | let | |
1102 | - | let | |
1103 | - | let | |
1104 | - | then $Tuple2(0, | |
1105 | - | else $Tuple2( | |
1106 | - | let | |
1107 | - | let | |
1108 | - | let | |
1106 | + | let gi = aw(dB) | |
1107 | + | let gj = (aX() - gi) | |
1108 | + | let gk = if ((0 > gj)) | |
1109 | + | then $Tuple2(0, aw(gj)) | |
1110 | + | else $Tuple2(gj, 0) | |
1111 | + | let gl = gk._1 | |
1112 | + | let gm = gk._2 | |
1113 | + | let fI = if ((gm > 0)) | |
1109 | 1114 | then { | |
1110 | - | let | |
1111 | - | if (( | |
1115 | + | let gn = invoke(ac(), "withdraw", [gm], nil) | |
1116 | + | if ((gn == gn)) | |
1112 | 1117 | then nil | |
1113 | 1118 | else throw("Strict value is not equal to itself.") | |
1114 | 1119 | } | |
1115 | 1120 | else nil | |
1116 | - | if (( | |
1121 | + | if ((fI == fI)) | |
1117 | 1122 | then { | |
1118 | - | let | |
1119 | - | if (( | |
1123 | + | let gd = invoke(ag(), "withdraw", [toBase58String(Z()), (gi - gm)], nil) | |
1124 | + | if ((gd == gd)) | |
1120 | 1125 | then { | |
1121 | - | let | |
1122 | - | if (( | |
1123 | - | then ((( | |
1126 | + | let fC = invoke(ad(), "notifyNotional", [ge, 0], nil) | |
1127 | + | if ((fC == fC)) | |
1128 | + | then (((eT(ge) ++ eN(bT, bU, dD, dE, dH, dF, dG)) ++ eU(gf, gi)) ++ eX(gl)) | |
1124 | 1129 | else throw("Strict value is not equal to itself.") | |
1125 | 1130 | } | |
1126 | 1131 | else throw("Strict value is not equal to itself.") | |
1132 | 1137 | ||
1133 | 1138 | ||
1134 | 1139 | ||
1135 | - | @Callable( | |
1136 | - | func liquidate ( | |
1137 | - | let | |
1138 | - | let | |
1140 | + | @Callable(bu) | |
1141 | + | func liquidate (bD) = { | |
1142 | + | let go = dk(bD, ap) | |
1143 | + | let gc = if (cM()) | |
1139 | 1144 | then { | |
1140 | - | let | |
1141 | - | | |
1145 | + | let gp = dk(bD, aq) | |
1146 | + | ax(go, gp) | |
1142 | 1147 | } | |
1143 | - | else | |
1144 | - | if (if (if (if (!( | |
1148 | + | else go | |
1149 | + | if (if (if (if (!(bv(gc, bj(), false))) | |
1145 | 1150 | then true | |
1146 | - | else !( | |
1151 | + | else !(bH(bD))) | |
1147 | 1152 | then true | |
1148 | - | else !( | |
1153 | + | else !(bI())) | |
1149 | 1154 | then true | |
1150 | - | else | |
1155 | + | else bJ()) | |
1151 | 1156 | then throw("Unable to liquidate") | |
1152 | - | else if (if (if (( | |
1153 | - | then ( | |
1157 | + | else if (if (if ((go > bk())) | |
1158 | + | then (bl() > 0) | |
1154 | 1159 | else false) | |
1155 | - | then ( | |
1160 | + | then (am > bl()) | |
1156 | 1161 | else false) | |
1157 | 1162 | then { | |
1158 | - | let | |
1159 | - | let | |
1160 | - | let | |
1161 | - | let | |
1162 | - | let | |
1163 | - | let | |
1164 | - | then | |
1165 | - | else | |
1166 | - | let | |
1167 | - | let | |
1168 | - | let | |
1169 | - | let | |
1170 | - | let | |
1171 | - | let | |
1172 | - | let | |
1173 | - | let | |
1174 | - | let | |
1175 | - | let | |
1176 | - | let | |
1177 | - | let | |
1178 | - | let | |
1179 | - | let | |
1180 | - | let | |
1181 | - | let | |
1182 | - | let | |
1183 | - | let | |
1184 | - | then (( | |
1185 | - | else (( | |
1186 | - | let | |
1187 | - | let | |
1188 | - | let | |
1189 | - | let | |
1190 | - | let | |
1191 | - | let | |
1192 | - | let | |
1193 | - | let | |
1194 | - | let | |
1195 | - | let | |
1196 | - | then $Tuple2(0, | |
1197 | - | else $Tuple2( | |
1198 | - | let | |
1199 | - | let | |
1200 | - | let | |
1163 | + | let gq = bC(bD) | |
1164 | + | let fj = gq._1 | |
1165 | + | let fk = gq._2 | |
1166 | + | let fl = gq._3 | |
1167 | + | let fm = gq._4 | |
1168 | + | let fn = if ((fj > 0)) | |
1169 | + | then ai | |
1170 | + | else ah | |
1171 | + | let fo = (fn == ah) | |
1172 | + | let dw = dq(bD, fj) | |
1173 | + | let gr = db(bD, ap) | |
1174 | + | let fr = gr._1 | |
1175 | + | let da = gr._2 | |
1176 | + | let gs = bQ(fo, dw) | |
1177 | + | let dv = gs._1 | |
1178 | + | let bT = gs._2 | |
1179 | + | let bU = gs._3 | |
1180 | + | let dD = gs._4 | |
1181 | + | let dE = gs._5 | |
1182 | + | let dA = at(av(da, aw(dv)), aw(fj)) | |
1183 | + | let gt = ch(fj, fk, fm, dA) | |
1184 | + | let cq = gt._1 | |
1185 | + | let cr = gt._2 | |
1186 | + | let cm = gt._3 | |
1187 | + | let fw = (da - dA) | |
1188 | + | let fx = if ((fj > 0)) | |
1189 | + | then ((fr - dw) - fw) | |
1190 | + | else ((fw + fr) - dw) | |
1191 | + | let gu = av(dw, bk()) | |
1192 | + | let gv = (gu / 2) | |
1193 | + | let fU = (gu - gv) | |
1194 | + | let gw = (cq - gu) | |
1195 | + | let fy = (fj + dv) | |
1196 | + | let fA = aw(fx) | |
1197 | + | let gx = bA(fy) | |
1198 | + | let dH = (be() - dw) | |
1199 | + | let gj = (aX() - gu) | |
1200 | + | let gy = if ((0 > gj)) | |
1201 | + | then $Tuple2(0, aw(gj)) | |
1202 | + | else $Tuple2(gj, 0) | |
1203 | + | let gz = gy._1 | |
1204 | + | let gA = gy._2 | |
1205 | + | let fI = if ((gA > 0)) | |
1201 | 1206 | then { | |
1202 | - | let | |
1203 | - | if (( | |
1207 | + | let gn = invoke(ac(), "withdraw", [gA], nil) | |
1208 | + | if ((gn == gn)) | |
1204 | 1209 | then nil | |
1205 | 1210 | else throw("Strict value is not equal to itself.") | |
1206 | 1211 | } | |
1207 | 1212 | else nil | |
1208 | - | if (( | |
1213 | + | if ((fI == fI)) | |
1209 | 1214 | then { | |
1210 | - | let | |
1211 | - | if (( | |
1215 | + | let gd = invoke(ag(), "withdraw", [toBase58String(Z()), (gu - gA)], nil) | |
1216 | + | if ((gd == gd)) | |
1212 | 1217 | then { | |
1213 | - | let | |
1214 | - | if (( | |
1218 | + | let fW = invoke(ac(), "deposit", nil, [AttachedPayment(Z(), fU)]) | |
1219 | + | if ((fW == fW)) | |
1215 | 1220 | then { | |
1216 | - | let | |
1217 | - | if (( | |
1218 | - | then ((( | |
1219 | - | then | |
1220 | - | else 0)), ( | |
1221 | - | then | |
1222 | - | else 0)))) ++ | |
1221 | + | let fC = invoke(ad(), "notifyNotional", [bD, fA], nil) | |
1222 | + | if ((fC == fC)) | |
1223 | + | then (((eB(bD, fy, gw, fA, gx) ++ eN(bT, bU, dD, dE, dH, (bs() - (if ((fy > 0)) | |
1224 | + | then aw(dv) | |
1225 | + | else 0)), (br() - (if ((0 > fy)) | |
1226 | + | then aw(dv) | |
1227 | + | else 0)))) ++ eU(bu.caller, gv)) ++ eX(gz)) | |
1223 | 1228 | else throw("Strict value is not equal to itself.") | |
1224 | 1229 | } | |
1225 | 1230 | else throw("Strict value is not equal to itself.") | |
1229 | 1234 | else throw("Strict value is not equal to itself.") | |
1230 | 1235 | } | |
1231 | 1236 | else { | |
1232 | - | let | |
1233 | - | let | |
1234 | - | let | |
1235 | - | let | |
1236 | - | let | |
1237 | - | let | |
1238 | - | let | |
1239 | - | let | |
1240 | - | let | |
1241 | - | let | |
1242 | - | let | |
1243 | - | let | |
1244 | - | let | |
1245 | - | let | |
1246 | - | let | |
1247 | - | let | |
1248 | - | let | |
1249 | - | let | |
1250 | - | then $Tuple2(0, | |
1251 | - | else $Tuple2( | |
1252 | - | let | |
1253 | - | let | |
1254 | - | let | |
1237 | + | let gB = dx(bD, false) | |
1238 | + | let cV = gB._1 | |
1239 | + | let cr = gB._2 | |
1240 | + | let cW = gB._3 | |
1241 | + | let cX = gB._4 | |
1242 | + | let bT = gB._5 | |
1243 | + | let bU = gB._6 | |
1244 | + | let dD = gB._7 | |
1245 | + | let dE = gB._8 | |
1246 | + | let dH = gB._9 | |
1247 | + | let dw = gB._10 | |
1248 | + | let dF = gB._11 | |
1249 | + | let dG = gB._12 | |
1250 | + | let gu = av(dw, bk()) | |
1251 | + | let gv = (gu / 2) | |
1252 | + | let fU = (gu - gv) | |
1253 | + | let gj = (aX() - gu) | |
1254 | + | let gC = if ((0 > gj)) | |
1255 | + | then $Tuple2(0, aw(gj)) | |
1256 | + | else $Tuple2(gj, 0) | |
1257 | + | let gz = gC._1 | |
1258 | + | let gA = gC._2 | |
1259 | + | let fI = if ((gA > 0)) | |
1255 | 1260 | then { | |
1256 | - | let | |
1257 | - | if (( | |
1261 | + | let gn = invoke(ac(), "withdraw", [gA], nil) | |
1262 | + | if ((gn == gn)) | |
1258 | 1263 | then nil | |
1259 | 1264 | else throw("Strict value is not equal to itself.") | |
1260 | 1265 | } | |
1261 | 1266 | else nil | |
1262 | - | if (( | |
1267 | + | if ((fI == fI)) | |
1263 | 1268 | then { | |
1264 | - | let | |
1265 | - | if (( | |
1269 | + | let gd = invoke(ag(), "withdraw", [toBase58String(Z()), (gu - gA)], nil) | |
1270 | + | if ((gd == gd)) | |
1266 | 1271 | then { | |
1267 | - | let | |
1268 | - | if (( | |
1272 | + | let fW = invoke(ac(), "deposit", nil, [AttachedPayment(Z(), fU)]) | |
1273 | + | if ((fW == fW)) | |
1269 | 1274 | then { | |
1270 | - | let | |
1271 | - | if (( | |
1272 | - | then ((( | |
1275 | + | let fC = invoke(ad(), "notifyNotional", [bD, 0], nil) | |
1276 | + | if ((fC == fC)) | |
1277 | + | then (((eT(bD) ++ eN(bT, bU, dD, dE, dH, dF, dG)) ++ eU(bu.caller, gv)) ++ eX(gz)) | |
1273 | 1278 | else throw("Strict value is not equal to itself.") | |
1274 | 1279 | } | |
1275 | 1280 | else throw("Strict value is not equal to itself.") | |
1282 | 1287 | ||
1283 | 1288 | ||
1284 | 1289 | ||
1285 | - | @Callable( | |
1290 | + | @Callable(bu) | |
1286 | 1291 | func payFunding () = { | |
1287 | - | let | |
1288 | - | if (if (if (( | |
1292 | + | let gD = bf() | |
1293 | + | if (if (if ((gD > lastBlock.timestamp)) | |
1289 | 1294 | then true | |
1290 | - | else !( | |
1295 | + | else !(bI())) | |
1291 | 1296 | then true | |
1292 | - | else | |
1293 | - | then throw(((("Invalid funding block timestamp: " + toString(lastBlock.timestamp)) + " < ") + toString( | |
1297 | + | else bJ()) | |
1298 | + | then throw(((("Invalid funding block timestamp: " + toString(lastBlock.timestamp)) + " < ") + toString(gD))) | |
1294 | 1299 | else { | |
1295 | - | let | |
1296 | - | let | |
1297 | - | let | |
1298 | - | let | |
1299 | - | | |
1300 | + | let eg = cB() | |
1301 | + | let gE = ef() | |
1302 | + | let ej = gE._1 | |
1303 | + | let ek = gE._2 | |
1304 | + | ev((gD + bi()), (bp() + ek), (bq() + ej), at(ek, eg), at(ej, eg)) | |
1300 | 1305 | } | |
1301 | 1306 | } | |
1302 | 1307 | ||
1303 | 1308 | ||
1304 | 1309 | ||
1305 | - | @Callable( | |
1306 | - | func forceMoveAsset ( | |
1310 | + | @Callable(bu) | |
1311 | + | func forceMoveAsset (bD,eV) = if (if ((addressFromPublicKey(Y()) != bu.caller)) | |
1307 | 1312 | then true | |
1308 | - | else (0 > | |
1313 | + | else (0 > eV)) | |
1309 | 1314 | then throw("Invalid forceMoveAsset parameters") | |
1310 | 1315 | else { | |
1311 | - | let | |
1312 | - | if (( | |
1313 | - | then ( | |
1316 | + | let gd = invoke(ag(), "withdraw", [toBase58String(Z()), eV], nil) | |
1317 | + | if ((gd == gd)) | |
1318 | + | then (eU(addressFromStringValue(bD), eV) ++ eX((aX() - eV))) | |
1314 | 1319 | else throw("Strict value is not equal to itself.") | |
1315 | 1320 | } | |
1316 | 1321 | ||
1317 | 1322 | ||
1318 | 1323 | ||
1319 | - | @Callable( | |
1320 | - | func adjustPeg ( | |
1324 | + | @Callable(bu) | |
1325 | + | func adjustPeg (dZ) = if (if ((addressFromPublicKey(Y()) != bu.caller)) | |
1321 | 1326 | then true | |
1322 | - | else (0 > | |
1327 | + | else (0 > dZ)) | |
1323 | 1328 | then throw("Invalid adjustPeg parameters") | |
1324 | 1329 | else { | |
1325 | - | let | |
1326 | - | let | |
1327 | - | let | |
1328 | - | if (( | |
1330 | + | let gF = dY(dZ) | |
1331 | + | let ed = gF._1 | |
1332 | + | let gG = gF._2 | |
1333 | + | if ((gG == 0)) | |
1329 | 1334 | then throw("Nothing to adjust") | |
1330 | - | else if ((gE > 0)) | |
1331 | - | then { | |
1332 | - | let gl = invoke(ab(), "withdraw", [gE], nil) | |
1333 | - | if ((gl == gl)) | |
1335 | + | else if ((gG > 0)) | |
1336 | + | then eM(ed, bb()) | |
1337 | + | else { | |
1338 | + | let gd = invoke(ag(), "withdraw", [toBase58String(Z()), aw(gG)], nil) | |
1339 | + | if ((gd == gd)) | |
1334 | 1340 | then { | |
1335 | - | let fT = invoke(Z(), "lockNeutrinoSP", [toString(aa()), am], [AttachedPayment(Y(), gE)]) | |
1336 | - | if ((fT == fT)) | |
1337 | - | then (eV((aV() + gE)) ++ eK(eb, aZ())) | |
1338 | - | else throw("Strict value is not equal to itself.") | |
1339 | - | } | |
1340 | - | else throw("Strict value is not equal to itself.") | |
1341 | - | } | |
1342 | - | else { | |
1343 | - | let gb = invoke(Z(), "unlockNeutrino", [au(gE), toBase58String(Y())], nil) | |
1344 | - | if ((gb == gb)) | |
1345 | - | then { | |
1346 | - | let fU = invoke(ab(), "deposit", nil, [AttachedPayment(Y(), au(gE))]) | |
1347 | - | if ((fU == fU)) | |
1348 | - | then (eV((aV() - au(gE))) ++ eK(eb, aZ())) | |
1341 | + | let fW = invoke(ac(), "deposit", nil, [AttachedPayment(Z(), aw(gG))]) | |
1342 | + | if ((fW == fW)) | |
1343 | + | then (eX((aX() - aw(gG))) ++ eM(ed, bb())) | |
1349 | 1344 | else throw("Strict value is not equal to itself.") | |
1350 | 1345 | } | |
1351 | 1346 | else throw("Strict value is not equal to itself.") | |
1354 | 1349 | ||
1355 | 1350 | ||
1356 | 1351 | ||
1357 | - | @Callable(bs) | |
1358 | - | func v_get (bB) = { | |
1359 | - | let gF = dv(bB, false) | |
1360 | - | let cT = gF._1 | |
1361 | - | let cU = gF._2 | |
1362 | - | let cV = gF._3 | |
1363 | - | let gG = gF._4 | |
1364 | - | throw((((ap(cU) + ap(cV)) + ap(gG)) + ap(dn(bB)))) | |
1352 | + | @Callable(bu) | |
1353 | + | func migrateLiquidity () = { | |
1354 | + | let gH = aX() | |
1355 | + | let gd = invoke(aa(), "unlockNeutrino", [gH, toBase58String(Z())], nil) | |
1356 | + | if ((gd == gd)) | |
1357 | + | then { | |
1358 | + | let fV = invoke(ag(), "deposit", nil, [AttachedPayment(Z(), gH)]) | |
1359 | + | if ((fV == fV)) | |
1360 | + | then nil | |
1361 | + | else throw("Strict value is not equal to itself.") | |
1362 | + | } | |
1363 | + | else throw("Strict value is not equal to itself.") | |
1365 | 1364 | } | |
1366 | 1365 | ||
1367 | 1366 | ||
1368 | 1367 | ||
1369 | - | @Callable(bs) | |
1370 | - | func view_calcRemainMarginWithFundingPayment (bB) = { | |
1371 | - | let gH = bA(bB) | |
1372 | - | let bE = gH._1 | |
1373 | - | let db = gH._2 | |
1374 | - | let dk = gH._3 | |
1375 | - | let dd = gH._4 | |
1376 | - | let gI = cZ(bB, an) | |
1377 | - | let cQ = gI._1 | |
1378 | - | let cY = gI._2 | |
1379 | - | let gJ = cf(bE, db, dd, cY) | |
1380 | - | let co = gJ._1 | |
1381 | - | let cp = gJ._2 | |
1382 | - | let ck = gJ._3 | |
1383 | - | throw((((((ap(co) + ap(ck)) + ap(dn(bB))) + ap(cY)) + ap(cp)) + ap(cQ))) | |
1368 | + | @Callable(bu) | |
1369 | + | func v_get (bD) = { | |
1370 | + | let gI = dx(bD, false) | |
1371 | + | let cV = gI._1 | |
1372 | + | let cW = gI._2 | |
1373 | + | let cX = gI._3 | |
1374 | + | let gJ = gI._4 | |
1375 | + | throw((((ar(cW) + ar(cX)) + ar(gJ)) + ar(dp(bD)))) | |
1384 | 1376 | } | |
1385 | 1377 | ||
1386 | 1378 | ||
1387 | 1379 | ||
1388 | - | @Callable(bs) | |
1389 | - | func view_getPegAdjustCost (dX) = { | |
1390 | - | let ec = dW(dX) | |
1391 | - | throw(toString(ec._2)) | |
1380 | + | @Callable(bu) | |
1381 | + | func view_calcRemainMarginWithFundingPayment (bD) = { | |
1382 | + | let gK = bC(bD) | |
1383 | + | let bG = gK._1 | |
1384 | + | let dd = gK._2 | |
1385 | + | let dm = gK._3 | |
1386 | + | let df = gK._4 | |
1387 | + | let gL = db(bD, ap) | |
1388 | + | let cS = gL._1 | |
1389 | + | let da = gL._2 | |
1390 | + | let gM = ch(bG, dd, df, da) | |
1391 | + | let cq = gM._1 | |
1392 | + | let cr = gM._2 | |
1393 | + | let cm = gM._3 | |
1394 | + | throw((((((ar(cq) + ar(cm)) + ar(dp(bD))) + ar(da)) + ar(cr)) + ar(cS))) | |
1392 | 1395 | } | |
1393 | 1396 | ||
1394 | 1397 | ||
1395 | 1398 | ||
1396 | - | @Callable(bs) | |
1397 | - | func view_getFunding () = { | |
1398 | - | let ee = cz() | |
1399 | - | let gK = ed() | |
1400 | - | let eh = gK._1 | |
1401 | - | let ei = gK._2 | |
1402 | - | let gL = ar(ei, ee) | |
1403 | - | let gM = ar(eh, ee) | |
1404 | - | throw((((ap(gL) + ap(gM)) + ap(dG())) + ap(cz()))) | |
1399 | + | @Callable(bu) | |
1400 | + | func view_getPegAdjustCost (dZ) = { | |
1401 | + | let ee = dY(dZ) | |
1402 | + | throw(toString(ee._2)) | |
1405 | 1403 | } | |
1406 | 1404 | ||
1407 | 1405 | ||
1408 | - | @Verifier(gN) | |
1409 | - | func gO () = sigVerify(gN.bodyBytes, gN.proofs[0], X()) | |
1406 | + | ||
1407 | + | @Callable(bu) | |
1408 | + | func view_getFunding () = { | |
1409 | + | let eg = cB() | |
1410 | + | let gN = ef() | |
1411 | + | let ej = gN._1 | |
1412 | + | let ek = gN._2 | |
1413 | + | let gO = at(ek, eg) | |
1414 | + | let gP = at(ej, eg) | |
1415 | + | throw((((ar(gO) + ar(gP)) + ar(dI())) + ar(cB()))) | |
1416 | + | } | |
1417 | + | ||
1418 | + | ||
1419 | + | @Verifier(gQ) | |
1420 | + | func gR () = sigVerify(gQ.bodyBytes, gQ.proofs[0], Y()) | |
1410 | 1421 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = "k_ora_key" | |
5 | 5 | ||
6 | 6 | let b = "k_ora_block_key" | |
7 | 7 | ||
8 | 8 | let c = "k_ora" | |
9 | 9 | ||
10 | 10 | let d = "k_balance" | |
11 | 11 | ||
12 | 12 | let e = "k_positionSize" | |
13 | 13 | ||
14 | 14 | let f = "k_positionMargin" | |
15 | 15 | ||
16 | 16 | let g = "k_positionOpenNotional" | |
17 | 17 | ||
18 | 18 | let h = "k_positionFraction" | |
19 | 19 | ||
20 | 20 | let i = "k_positionClosedDate" | |
21 | 21 | ||
22 | 22 | let j = "k_initialized" | |
23 | 23 | ||
24 | 24 | let k = "k_paused" | |
25 | 25 | ||
26 | 26 | let l = "k_fee" | |
27 | 27 | ||
28 | 28 | let m = "k_fundingPeriod" | |
29 | 29 | ||
30 | 30 | let n = "k_initMarginRatio" | |
31 | 31 | ||
32 | 32 | let o = "k_mmr" | |
33 | 33 | ||
34 | 34 | let p = "k_liquidationFeeRatio" | |
35 | 35 | ||
36 | 36 | let q = "k_partLiquidationRatio" | |
37 | 37 | ||
38 | 38 | let r = "k_spreadLimit" | |
39 | 39 | ||
40 | 40 | let s = "k_maxPriceImpact" | |
41 | 41 | ||
42 | 42 | let t = "k_maxPriceSpread" | |
43 | 43 | ||
44 | 44 | let u = "k_lastDataStr" | |
45 | 45 | ||
46 | 46 | let v = "k_lastMinuteId" | |
47 | 47 | ||
48 | 48 | let w = "k_twapDataLastCumulativePrice" | |
49 | 49 | ||
50 | 50 | let x = "k_twapDataLastPrice" | |
51 | 51 | ||
52 | 52 | let y = "k_twapDataPreviousMinuteId" | |
53 | 53 | ||
54 | 54 | let z = "k_latestLongPremiumFraction" | |
55 | 55 | ||
56 | 56 | let A = "k_latestShortPremiumFraction" | |
57 | 57 | ||
58 | 58 | let B = "k_nextFundingBlockMinTimestamp" | |
59 | 59 | ||
60 | 60 | let C = "k_longFundingRate" | |
61 | 61 | ||
62 | 62 | let D = "k_shortFundingRate" | |
63 | 63 | ||
64 | 64 | let E = "k_qtAstR" | |
65 | 65 | ||
66 | 66 | let F = "k_bsAstR" | |
67 | 67 | ||
68 | 68 | let G = "k_totalPositionSize" | |
69 | 69 | ||
70 | 70 | let H = "k_totalLongPositionSize" | |
71 | 71 | ||
72 | 72 | let I = "k_totalShortPositionSize" | |
73 | 73 | ||
74 | 74 | let J = "k_cumulativeNotional" | |
75 | 75 | ||
76 | 76 | let K = "k_openInterestNotional" | |
77 | 77 | ||
78 | 78 | let L = "k_coordinatorAddress" | |
79 | 79 | ||
80 | 80 | let M = "k_insurance_address" | |
81 | 81 | ||
82 | 82 | let N = "k_admin_address" | |
83 | 83 | ||
84 | 84 | let O = "k_admin_public_key" | |
85 | 85 | ||
86 | 86 | let P = "k_quote_asset" | |
87 | 87 | ||
88 | 88 | let Q = "k_quote_staking" | |
89 | 89 | ||
90 | 90 | let R = "k_staking_address" | |
91 | 91 | ||
92 | 92 | let S = "k_miner_address" | |
93 | 93 | ||
94 | 94 | let T = "k_orders_address" | |
95 | 95 | ||
96 | 96 | let U = "k_referral_address" | |
97 | 97 | ||
98 | - | func V () = valueOrErrorMessage(addressFromString(getStringValue(this, L)), "Coordinator not set") | |
98 | + | let V = "k_manager_address" | |
99 | + | ||
100 | + | func W () = valueOrErrorMessage(addressFromString(getStringValue(this, L)), "Coordinator not set") | |
99 | 101 | ||
100 | 102 | ||
101 | - | func | |
103 | + | func X () = addressFromString(getStringValue(W(), N)) | |
102 | 104 | ||
103 | 105 | ||
104 | - | func | |
106 | + | func Y () = fromBase58String(getStringValue(W(), O)) | |
105 | 107 | ||
106 | 108 | ||
107 | - | func | |
109 | + | func Z () = fromBase58String(getStringValue(W(), P)) | |
108 | 110 | ||
109 | 111 | ||
110 | - | func | |
112 | + | func aa () = valueOrErrorMessage(addressFromString(getStringValue(W(), Q)), "Quote asset staking not set") | |
111 | 113 | ||
112 | 114 | ||
113 | - | func | |
115 | + | func ab () = valueOrErrorMessage(addressFromString(getStringValue(W(), R)), "Staking not set") | |
114 | 116 | ||
115 | 117 | ||
116 | - | func | |
118 | + | func ac () = valueOrErrorMessage(addressFromString(getStringValue(W(), M)), "Insurance not set") | |
117 | 119 | ||
118 | 120 | ||
119 | - | func | |
121 | + | func ad () = valueOrErrorMessage(addressFromString(getStringValue(W(), S)), "Miner not set") | |
120 | 122 | ||
121 | 123 | ||
122 | - | func | |
124 | + | func ae () = valueOrErrorMessage(addressFromString(getStringValue(W(), T)), "Orders not set") | |
123 | 125 | ||
124 | 126 | ||
125 | - | func | |
127 | + | func af () = valueOrErrorMessage(addressFromString(getStringValue(W(), U)), "Referral not set") | |
126 | 128 | ||
127 | 129 | ||
128 | - | let af = 1 | |
129 | - | ||
130 | - | let ag = 2 | |
131 | - | ||
132 | - | let ah = 15 | |
133 | - | ||
134 | - | let ai = 15 | |
135 | - | ||
136 | - | let aj = 1000 | |
137 | - | ||
138 | - | let ak = (1 * (((((10 * 10) * 10) * 10) * 10) * 10)) | |
139 | - | ||
140 | - | let al = (86400 * ak) | |
141 | - | ||
142 | - | let am = 100 | |
143 | - | ||
144 | - | let an = 1 | |
145 | - | ||
146 | - | let ao = 2 | |
147 | - | ||
148 | - | func ap (aq) = (toString(aq) + ",") | |
130 | + | func ag () = valueOrErrorMessage(addressFromString(getStringValue(W(), V)), "Manager not set") | |
149 | 131 | ||
150 | 132 | ||
151 | - | func ar (aq,as) = fraction(aq, ak, as, HALFEVEN) | |
133 | + | let ah = 1 | |
134 | + | ||
135 | + | let ai = 2 | |
136 | + | ||
137 | + | let aj = 15 | |
138 | + | ||
139 | + | let ak = 15 | |
140 | + | ||
141 | + | let al = 1000 | |
142 | + | ||
143 | + | let am = (1 * (((((10 * 10) * 10) * 10) * 10) * 10)) | |
144 | + | ||
145 | + | let an = (86400 * am) | |
146 | + | ||
147 | + | let ao = 100 | |
148 | + | ||
149 | + | let ap = 1 | |
150 | + | ||
151 | + | let aq = 2 | |
152 | + | ||
153 | + | func ar (as) = (toString(as) + ",") | |
152 | 154 | ||
153 | 155 | ||
154 | - | func at ( | |
156 | + | func at (as,au) = fraction(as, am, au, HALFEVEN) | |
155 | 157 | ||
156 | 158 | ||
157 | - | func au (aq) = if ((aq > 0)) | |
158 | - | then aq | |
159 | - | else -(aq) | |
159 | + | func av (as,au) = fraction(as, au, am, HALFEVEN) | |
160 | 160 | ||
161 | 161 | ||
162 | - | func | |
163 | - | then | |
164 | - | else as | |
162 | + | func aw (as) = if ((as > 0)) | |
163 | + | then as | |
164 | + | else -(as) | |
165 | 165 | ||
166 | 166 | ||
167 | - | func aw (ax,ay) = ((ax + "_") + ay) | |
167 | + | func ax (as,au) = if ((as >= au)) | |
168 | + | then as | |
169 | + | else au | |
168 | 170 | ||
169 | 171 | ||
170 | - | func az (aA) = { | |
171 | - | func aB (aC,aD) = ((aC + aD) + ",") | |
172 | + | func ay (az,aA) = ((az + "_") + aA) | |
172 | 173 | ||
173 | - | let aE = { | |
174 | - | let aF = aA | |
175 | - | let aG = size(aF) | |
176 | - | let aH = "" | |
177 | - | func aI (aJ,aK) = if ((aK >= aG)) | |
178 | - | then aJ | |
179 | - | else aB(aJ, aF[aK]) | |
180 | 174 | ||
181 | - | func aL (aJ,aK) = if ((aK >= aG)) | |
182 | - | then aJ | |
175 | + | func aB (aC) = { | |
176 | + | func aD (aE,aF) = ((aE + aF) + ",") | |
177 | + | ||
178 | + | let aG = { | |
179 | + | let aH = aC | |
180 | + | let aI = size(aH) | |
181 | + | let aJ = "" | |
182 | + | func aK (aL,aM) = if ((aM >= aI)) | |
183 | + | then aL | |
184 | + | else aD(aL, aH[aM]) | |
185 | + | ||
186 | + | func aN (aL,aM) = if ((aM >= aI)) | |
187 | + | then aL | |
183 | 188 | else throw("List size exceeds 20") | |
184 | 189 | ||
185 | - | | |
190 | + | aN(aK(aK(aK(aK(aK(aK(aK(aK(aK(aK(aK(aK(aK(aK(aK(aK(aK(aK(aK(aK(aJ, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20) | |
186 | 191 | } | |
187 | - | let | |
188 | - | let | |
189 | - | then drop( | |
190 | - | else | |
191 | - | | |
192 | + | let aO = dropRight(aG, 1) | |
193 | + | let aP = if ((take(aO, 1) == ",")) | |
194 | + | then drop(aO, 1) | |
195 | + | else aO | |
196 | + | aP | |
192 | 197 | } | |
193 | 198 | ||
194 | 199 | ||
195 | - | func | |
200 | + | func aQ (aR) = split(aR, ",") | |
196 | 201 | ||
197 | 202 | ||
198 | - | func | |
199 | - | then (removeByIndex( | |
200 | - | else ( | |
203 | + | func aS (aC,aT,aU) = if ((size(aC) > aT)) | |
204 | + | then (removeByIndex(aC, 0) :+ aU) | |
205 | + | else (aC :+ aU) | |
201 | 206 | ||
202 | 207 | ||
203 | - | func | |
208 | + | func aV (aW) = valueOrErrorMessage(getInteger(this, aW), ("no value for " + aW)) | |
204 | 209 | ||
205 | 210 | ||
206 | - | func | |
211 | + | func aX () = aV(d) | |
207 | 212 | ||
208 | 213 | ||
209 | - | func | |
214 | + | func aY () = aV(l) | |
210 | 215 | ||
211 | 216 | ||
212 | - | func | |
217 | + | func aZ () = aV(n) | |
213 | 218 | ||
214 | 219 | ||
215 | - | func | |
220 | + | func ba () = aV(E) | |
216 | 221 | ||
217 | 222 | ||
218 | - | func | |
223 | + | func bb () = aV(F) | |
219 | 224 | ||
220 | 225 | ||
221 | - | func | |
226 | + | func bc () = aV(G) | |
222 | 227 | ||
223 | 228 | ||
224 | - | func | |
229 | + | func bd () = aV(J) | |
225 | 230 | ||
226 | 231 | ||
227 | - | func | |
232 | + | func be () = aV(K) | |
228 | 233 | ||
229 | 234 | ||
230 | - | func | |
235 | + | func bf () = aV(B) | |
231 | 236 | ||
232 | 237 | ||
233 | - | func | |
238 | + | func bg () = aV(m) | |
234 | 239 | ||
235 | 240 | ||
236 | - | func | |
241 | + | func bh () = (bg() * am) | |
237 | 242 | ||
238 | 243 | ||
239 | - | func | |
244 | + | func bi () = (bg() * al) | |
240 | 245 | ||
241 | 246 | ||
242 | - | func | |
247 | + | func bj () = aV(o) | |
243 | 248 | ||
244 | 249 | ||
245 | - | func | |
250 | + | func bk () = aV(p) | |
246 | 251 | ||
247 | 252 | ||
248 | - | func | |
253 | + | func bl () = aV(q) | |
249 | 254 | ||
250 | 255 | ||
251 | - | func | |
256 | + | func bm () = aV(r) | |
252 | 257 | ||
253 | 258 | ||
254 | - | func | |
259 | + | func bn () = aV(s) | |
255 | 260 | ||
256 | 261 | ||
257 | - | func | |
262 | + | func bo () = aV(t) | |
258 | 263 | ||
259 | 264 | ||
260 | - | func | |
265 | + | func bp () = aV(z) | |
261 | 266 | ||
262 | 267 | ||
263 | - | func | |
268 | + | func bq () = aV(A) | |
264 | 269 | ||
265 | 270 | ||
266 | - | func | |
271 | + | func br () = aV(I) | |
267 | 272 | ||
268 | 273 | ||
269 | - | func | |
274 | + | func bs () = aV(H) | |
270 | 275 | ||
271 | 276 | ||
272 | - | func | |
277 | + | func bt (bu) = valueOrElse(getString(ae(), "k_sender"), toString(bu.caller)) | |
273 | 278 | ||
274 | 279 | ||
275 | - | func | |
276 | - | let | |
277 | - | if (if ( | |
278 | - | then (0 > | |
280 | + | func bv (bw,bx,by) = { | |
281 | + | let bz = (bw - bx) | |
282 | + | if (if (by) | |
283 | + | then (0 > bz) | |
279 | 284 | else false) | |
280 | 285 | then throw("Invalid margin") | |
281 | - | else if (if (!( | |
282 | - | then ( | |
286 | + | else if (if (!(by)) | |
287 | + | then (bz >= 0) | |
283 | 288 | else false) | |
284 | 289 | then throw("Invalid margin") | |
285 | 290 | else true | |
286 | 291 | } | |
287 | 292 | ||
288 | 293 | ||
289 | - | func | |
294 | + | func bA (bB) = if ((bB == 0)) | |
290 | 295 | then throw("Should not be called with _positionSize == 0") | |
291 | - | else if (( | |
292 | - | then | |
293 | - | else | |
296 | + | else if ((bB > 0)) | |
297 | + | then bp() | |
298 | + | else bq() | |
294 | 299 | ||
295 | 300 | ||
296 | - | func | |
297 | - | let | |
298 | - | let | |
299 | - | if ($isInstanceOf( | |
301 | + | func bC (bD) = { | |
302 | + | let bE = getInteger(this, ay(e, bD)) | |
303 | + | let bF = bE | |
304 | + | if ($isInstanceOf(bF, "Int")) | |
300 | 305 | then { | |
301 | - | let | |
302 | - | $Tuple4( | |
306 | + | let bG = bF | |
307 | + | $Tuple4(bG, getIntegerValue(this, ay(f, bD)), getIntegerValue(this, ay(g, bD)), getIntegerValue(this, ay(h, bD))) | |
303 | 308 | } | |
304 | 309 | else $Tuple4(0, 0, 0, 0) | |
305 | 310 | } | |
306 | 311 | ||
307 | 312 | ||
308 | - | func | |
313 | + | func bH (bD) = if ((bC(bD)._1 == 0)) | |
309 | 314 | then throw("No open position") | |
310 | 315 | else true | |
311 | 316 | ||
312 | 317 | ||
313 | - | func | |
318 | + | func bI () = valueOrElse(getBoolean(this, j), false) | |
314 | 319 | ||
315 | 320 | ||
316 | - | func | |
321 | + | func bJ () = valueOrElse(getBoolean(this, k), false) | |
317 | 322 | ||
318 | 323 | ||
319 | - | func | |
324 | + | func bK (bL,bM,bN) = if (bL) | |
320 | 325 | then { | |
321 | - | let | |
322 | - | if ((0 >= | |
326 | + | let bO = (bb() - bN) | |
327 | + | if ((0 >= bO)) | |
323 | 328 | then throw("Tx lead to base asset reserve <= 0, revert") | |
324 | - | else $Tuple4(( | |
329 | + | else $Tuple4((ba() + bM), bO, (bc() + bN), (bd() + bM)) | |
325 | 330 | } | |
326 | 331 | else { | |
327 | - | let | |
328 | - | if ((0 >= | |
332 | + | let bP = (ba() - bM) | |
333 | + | if ((0 >= bP)) | |
329 | 334 | then throw("Tx lead to base quote reserve <= 0, revert") | |
330 | - | else $Tuple4( | |
335 | + | else $Tuple4(bP, (bb() + bN), (bc() - bN), (bd() - bM)) | |
331 | 336 | } | |
332 | 337 | ||
333 | 338 | ||
334 | - | func | |
335 | - | let | |
336 | - | let | |
337 | - | let | |
338 | - | let | |
339 | - | then ( | |
340 | - | else ( | |
341 | - | let | |
342 | - | let | |
343 | - | let | |
344 | - | then | |
345 | - | else -( | |
346 | - | let | |
347 | - | let | |
348 | - | let | |
349 | - | let | |
350 | - | let | |
351 | - | let | |
352 | - | let | |
353 | - | let | |
354 | - | let | |
355 | - | let | |
356 | - | if (( | |
357 | - | then throw(((((((((((((("Price impact " + toString( | |
358 | - | else $Tuple5( | |
339 | + | func bQ (bL,bM) = { | |
340 | + | let bR = ba() | |
341 | + | let bS = bb() | |
342 | + | let aW = av(bR, bS) | |
343 | + | let bT = if (bL) | |
344 | + | then (bR + bM) | |
345 | + | else (bR - bM) | |
346 | + | let bU = at(aW, bT) | |
347 | + | let bV = aw((bU - bS)) | |
348 | + | let bW = if (bL) | |
349 | + | then bV | |
350 | + | else -(bV) | |
351 | + | let bX = bK(bL, bM, bV) | |
352 | + | let bY = bX._1 | |
353 | + | let bZ = bX._2 | |
354 | + | let ca = bX._3 | |
355 | + | let cb = bX._4 | |
356 | + | let cc = at(bR, bS) | |
357 | + | let cd = at(bM, bV) | |
358 | + | let ce = aw((cc - cd)) | |
359 | + | let cf = (am - at(cc, (cc + ce))) | |
360 | + | let cg = bn() | |
361 | + | if ((cf > cg)) | |
362 | + | then throw(((((((((((((("Price impact " + toString(cf)) + " > max price impact ") + toString(cg)) + " before quote asset: ") + toString(bR)) + " before base asset: ") + toString(bS)) + " quote asset amount to exchange: ") + toString(bM)) + " price before: ") + toString(cc)) + " marketPrice: ") + toString(cd))) | |
363 | + | else $Tuple5(bW, bY, bZ, ca, cb) | |
359 | 364 | } | |
360 | 365 | ||
361 | 366 | ||
362 | - | func | |
363 | - | let | |
367 | + | func ch (ci,cj,ck,cl) = { | |
368 | + | let cm = if ((ci != 0)) | |
364 | 369 | then { | |
365 | - | let | |
366 | - | | |
370 | + | let cn = bA(ci) | |
371 | + | av((cn - ck), ci) | |
367 | 372 | } | |
368 | 373 | else 0 | |
369 | - | let | |
370 | - | let | |
371 | - | then $Tuple2(0, | |
372 | - | else $Tuple2( | |
373 | - | let | |
374 | - | let | |
375 | - | $Tuple3( | |
374 | + | let co = ((cl - cm) + cj) | |
375 | + | let cp = if ((0 > co)) | |
376 | + | then $Tuple2(0, aw(co)) | |
377 | + | else $Tuple2(aw(co), 0) | |
378 | + | let cq = cp._1 | |
379 | + | let cr = cp._2 | |
380 | + | $Tuple3(cq, cr, cm) | |
376 | 381 | } | |
377 | 382 | ||
378 | 383 | ||
379 | - | func | |
380 | - | let | |
381 | - | if (( | |
384 | + | func cs (bL,bN,ct,cu,cv) = { | |
385 | + | let cc = at(cu, cv) | |
386 | + | if ((bN == 0)) | |
382 | 387 | then throw("Invalid base asset amount") | |
383 | 388 | else { | |
384 | - | let | |
385 | - | let | |
386 | - | then ( | |
387 | - | else ( | |
388 | - | let | |
389 | - | let | |
390 | - | let | |
391 | - | let | |
392 | - | let | |
393 | - | let | |
394 | - | let | |
395 | - | let | |
396 | - | let | |
397 | - | let | |
398 | - | let | |
399 | - | if (if (( | |
400 | - | then | |
389 | + | let aW = av(cu, cv) | |
390 | + | let cw = if (bL) | |
391 | + | then (cv + bN) | |
392 | + | else (cv - bN) | |
393 | + | let cx = at(aW, cw) | |
394 | + | let cy = aw((cx - cu)) | |
395 | + | let cg = bn() | |
396 | + | let cz = bK(!(bL), cy, bN) | |
397 | + | let bY = cz._1 | |
398 | + | let bZ = cz._2 | |
399 | + | let ca = cz._3 | |
400 | + | let cb = cz._4 | |
401 | + | let cd = at(cy, bN) | |
402 | + | let ce = aw((cc - cd)) | |
403 | + | let cf = (am - at(cc, (cc + ce))) | |
404 | + | if (if ((cf > cg)) | |
405 | + | then ct | |
401 | 406 | else false) | |
402 | - | then throw(((((((((((((("Price impact " + toString( | |
403 | - | else $Tuple8( | |
404 | - | then | |
405 | - | else 0)), ( | |
406 | - | then | |
407 | - | else 0)), | |
407 | + | then throw(((((((((((((("Price impact " + toString(cf)) + " > max price impact ") + toString(cg)) + " before quote asset: ") + toString(cu)) + " before base asset: ") + toString(cv)) + " base asset amount to exchange: ") + toString(bN)) + " price before: ") + toString(cc)) + " market price: ") + toString(cd))) | |
408 | + | else $Tuple8(cy, bY, bZ, ca, cb, (bs() - (if (bL) | |
409 | + | then aw(bN) | |
410 | + | else 0)), (br() - (if (!(bL)) | |
411 | + | then aw(bN) | |
412 | + | else 0)), cf) | |
408 | 413 | } | |
409 | 414 | } | |
410 | 415 | ||
411 | 416 | ||
412 | - | func | |
417 | + | func cA (bL,bN,ct) = cs(bL, bN, ct, ba(), bb()) | |
413 | 418 | ||
414 | 419 | ||
415 | - | func | |
416 | - | let | |
417 | - | let | |
418 | - | let | |
419 | - | let | |
420 | - | | |
420 | + | func cB () = { | |
421 | + | let cC = valueOrErrorMessage(addressFromString(getStringValue(this, c)), "") | |
422 | + | let cD = getStringValue(this, a) | |
423 | + | let cE = getStringValue(this, b) | |
424 | + | let cF = valueOrErrorMessage(getInteger(cC, cD), ((("Can not get oracle price. Oracle: " + toString(cC)) + " key: ") + cD)) | |
425 | + | cF | |
421 | 426 | } | |
422 | 427 | ||
423 | 428 | ||
424 | - | func | |
425 | - | let | |
426 | - | let | |
427 | - | let | |
428 | - | let | |
429 | - | if (( | |
430 | - | then throw(((("Price spread " + toString( | |
429 | + | func cG (cu,cv) = { | |
430 | + | let cH = cB() | |
431 | + | let cI = at(cu, cv) | |
432 | + | let cJ = at((cH + cI), (2 * am)) | |
433 | + | let cK = at(aw((cH - cI)), cJ) | |
434 | + | if ((cK > bo())) | |
435 | + | then throw(((("Price spread " + toString(cK)) + " > max price spread ") + toString(bo()))) | |
431 | 436 | else true | |
432 | 437 | } | |
433 | 438 | ||
434 | 439 | ||
435 | - | func | |
436 | - | let | |
437 | - | let | |
438 | - | | |
440 | + | func cL () = { | |
441 | + | let cu = ba() | |
442 | + | let cv = bb() | |
443 | + | at(cu, cv) | |
439 | 444 | } | |
440 | 445 | ||
441 | 446 | ||
442 | - | func | |
443 | - | let | |
444 | - | let | |
445 | - | ( | |
447 | + | func cM () = { | |
448 | + | let cH = cB() | |
449 | + | let cN = cL() | |
450 | + | (at(aw((cH - cN)), cH) > bm()) | |
446 | 451 | } | |
447 | 452 | ||
448 | 453 | ||
449 | - | func | |
450 | - | let | |
451 | - | let | |
452 | - | let | |
454 | + | func cO (bB,cP,cu,cv) = { | |
455 | + | let cQ = aw(bB) | |
456 | + | let cR = (0 > bB) | |
457 | + | let cS = if ((cP == ap)) | |
453 | 458 | then { | |
454 | - | let | |
455 | - | let | |
456 | - | let | |
457 | - | let | |
458 | - | let | |
459 | - | | |
459 | + | let cT = cs(!(cR), cQ, false, cu, cv) | |
460 | + | let cU = cT._1 | |
461 | + | let cV = cT._2 | |
462 | + | let cW = cT._3 | |
463 | + | let cX = cT._4 | |
464 | + | cU | |
460 | 465 | } | |
461 | - | else | |
462 | - | | |
466 | + | else av(cQ, cB()) | |
467 | + | cS | |
463 | 468 | } | |
464 | 469 | ||
465 | 470 | ||
466 | - | func | |
471 | + | func cY (bB,cZ,cu,cv,cP) = if ((bB == 0)) | |
467 | 472 | then throw("Invalid position size") | |
468 | 473 | else { | |
469 | - | let | |
470 | - | let | |
471 | - | let | |
472 | - | then ( | |
473 | - | else ( | |
474 | - | $Tuple2( | |
474 | + | let cR = (0 > bB) | |
475 | + | let cS = cO(bB, cP, cu, cv) | |
476 | + | let da = if (cR) | |
477 | + | then (cZ - cS) | |
478 | + | else (cS - cZ) | |
479 | + | $Tuple2(cS, da) | |
475 | 480 | } | |
476 | 481 | ||
477 | 482 | ||
478 | - | func | |
479 | - | let | |
480 | - | let | |
481 | - | let | |
482 | - | let | |
483 | - | let | |
484 | - | | |
483 | + | func db (bD,cP) = { | |
484 | + | let dc = bC(bD) | |
485 | + | let bG = dc._1 | |
486 | + | let dd = dc._2 | |
487 | + | let de = dc._3 | |
488 | + | let df = dc._4 | |
489 | + | cY(bG, de, ba(), bb(), cP) | |
485 | 490 | } | |
486 | 491 | ||
487 | 492 | ||
488 | - | func | |
493 | + | func dg (dh,di,dj) = at((dh - di), dj) | |
489 | 494 | ||
490 | 495 | ||
491 | - | func | |
492 | - | let | |
493 | - | let | |
494 | - | let | |
495 | - | let | |
496 | - | let | |
497 | - | let | |
498 | - | let | |
499 | - | let | |
500 | - | let | |
501 | - | let | |
502 | - | let | |
503 | - | | |
496 | + | func dk (bD,cP) = { | |
497 | + | let dl = bC(bD) | |
498 | + | let bG = dl._1 | |
499 | + | let dd = dl._2 | |
500 | + | let dm = dl._3 | |
501 | + | let df = dl._4 | |
502 | + | let dn = db(bD, cP) | |
503 | + | let cS = dn._1 | |
504 | + | let da = dn._2 | |
505 | + | let do = ch(bG, dd, df, da) | |
506 | + | let cq = do._1 | |
507 | + | let cr = do._2 | |
508 | + | dg(cq, cr, cS) | |
504 | 509 | } | |
505 | 510 | ||
506 | 511 | ||
507 | - | func | |
512 | + | func dp (bD) = dk(bD, ap) | |
508 | 513 | ||
509 | 514 | ||
510 | - | func | |
511 | - | let | |
512 | - | let | |
513 | - | let | |
514 | - | let | |
515 | - | let | |
516 | - | if (( | |
517 | - | then | |
515 | + | func dq (bD,bB) = { | |
516 | + | let dr = ax(bl(), (am - at(dp(bD), bj()))) | |
517 | + | let ds = av(aw(bB), dr) | |
518 | + | let dt = cA((bB > 0), ds, false) | |
519 | + | let du = dt._1 | |
520 | + | let cf = dt._8 | |
521 | + | if ((bn() > cf)) | |
522 | + | then du | |
518 | 523 | else { | |
519 | - | let | |
520 | - | let | |
521 | - | | |
524 | + | let dv = av(aw(bB), bl()) | |
525 | + | let dw = cA((bB > 0), dv, false)._1 | |
526 | + | dw | |
522 | 527 | } | |
523 | 528 | } | |
524 | 529 | ||
525 | 530 | ||
526 | - | func | |
527 | - | let | |
528 | - | let | |
529 | - | let | |
530 | - | let | |
531 | - | let | |
532 | - | let | |
533 | - | let | |
534 | - | let | |
535 | - | let | |
536 | - | let | |
537 | - | let | |
538 | - | let | |
539 | - | let | |
540 | - | let | |
541 | - | let | |
542 | - | let | |
543 | - | let | |
544 | - | let | |
545 | - | let | |
546 | - | let | |
547 | - | let | |
548 | - | $Tuple12( | |
531 | + | func dx (bD,ct) = { | |
532 | + | let dy = bC(bD) | |
533 | + | let bG = dy._1 | |
534 | + | let dd = dy._2 | |
535 | + | let de = dy._3 | |
536 | + | let df = dy._4 | |
537 | + | let da = db(bD, ap)._2 | |
538 | + | let dz = ch(bG, dd, df, da) | |
539 | + | let cq = dz._1 | |
540 | + | let cr = dz._2 | |
541 | + | let dv = -(bG) | |
542 | + | let dA = da | |
543 | + | let dB = -(cq) | |
544 | + | let dC = cA((bG > 0), aw(bG), ct) | |
545 | + | let dw = dC._1 | |
546 | + | let bT = dC._2 | |
547 | + | let bU = dC._3 | |
548 | + | let dD = dC._4 | |
549 | + | let dE = dC._5 | |
550 | + | let dF = dC._6 | |
551 | + | let dG = dC._7 | |
552 | + | let dH = (be() - de) | |
553 | + | $Tuple12(dv, cr, dA, dB, bT, bU, dD, dE, dH, dw, dF, dG) | |
549 | 554 | } | |
550 | 555 | ||
551 | 556 | ||
552 | - | func | |
553 | - | let | |
554 | - | let | |
555 | - | let | |
556 | - | let | |
557 | - | func | |
558 | - | then ( | |
559 | - | else | |
557 | + | func dI () = { | |
558 | + | let dJ = ((lastBlock.timestamp / 1000) / 60) | |
559 | + | let dK = (dJ - aj) | |
560 | + | let dL = valueOrElse(getString(this, u), "") | |
561 | + | let dM = split(dL, ",") | |
562 | + | func dN (aE,dO) = if ((dK >= parseIntValue(dO))) | |
563 | + | then (aE :+ parseIntValue(dO)) | |
564 | + | else aE | |
560 | 565 | ||
561 | - | let | |
562 | - | let | |
563 | - | let | |
564 | - | let | |
565 | - | func | |
566 | - | then | |
567 | - | else | |
566 | + | let dP = { | |
567 | + | let aH = dM | |
568 | + | let aI = size(aH) | |
569 | + | let aJ = nil | |
570 | + | func aK (aL,aM) = if ((aM >= aI)) | |
571 | + | then aL | |
572 | + | else dN(aL, aH[aM]) | |
568 | 573 | ||
569 | - | func | |
570 | - | then | |
574 | + | func aN (aL,aM) = if ((aM >= aI)) | |
575 | + | then aL | |
571 | 576 | else throw("List size exceeds 20") | |
572 | 577 | ||
573 | - | | |
578 | + | aN(aK(aK(aK(aK(aK(aK(aK(aK(aK(aK(aK(aK(aK(aK(aK(aK(aK(aK(aK(aK(aJ, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20) | |
574 | 579 | } | |
575 | - | let | |
576 | - | then max( | |
577 | - | else parseIntValue( | |
578 | - | let | |
579 | - | let | |
580 | - | let | |
581 | - | let | |
582 | - | let | |
583 | - | let | |
584 | - | let | |
585 | - | (( | |
580 | + | let dQ = if ((size(dP) > 0)) | |
581 | + | then max(dP) | |
582 | + | else parseIntValue(dM[0]) | |
583 | + | let dR = valueOrElse(getInteger(this, v), 0) | |
584 | + | let dS = valueOrElse(getInteger(this, ((w + "_") + toString(dR))), 0) | |
585 | + | let dT = valueOrElse(getInteger(this, ((x + "_") + toString(dR))), 0) | |
586 | + | let dU = (dS + ((dJ - dR) * dT)) | |
587 | + | let dV = valueOrElse(getInteger(this, ((w + "_") + toString(dQ))), 0) | |
588 | + | let dW = valueOrElse(getInteger(this, ((x + "_") + toString(dQ))), 0) | |
589 | + | let dX = (dV + ((dK - dQ) * dW)) | |
590 | + | ((dU - dX) / aj) | |
586 | 591 | } | |
587 | 592 | ||
588 | 593 | ||
589 | - | func | |
590 | - | let | |
591 | - | let | |
592 | - | let | |
593 | - | let | |
594 | - | let | |
595 | - | let | |
596 | - | $Tuple2( | |
594 | + | func dY (dZ) = { | |
595 | + | let bB = bc() | |
596 | + | let ea = (bB > 0) | |
597 | + | let eb = cA(ea, aw(bB), false)._1 | |
598 | + | let ec = bb() | |
599 | + | let ed = av(ec, dZ) | |
600 | + | let ee = cY(bB, eb, ed, ec, ap)._2 | |
601 | + | $Tuple2(ed, ee) | |
597 | 602 | } | |
598 | 603 | ||
599 | 604 | ||
600 | - | func | |
601 | - | let | |
602 | - | let | |
603 | - | let | |
604 | - | if (if (( | |
605 | + | func ef () = { | |
606 | + | let eg = cB() | |
607 | + | let eh = dI() | |
608 | + | let ei = (eh - eg) | |
609 | + | if (if ((br() == 0)) | |
605 | 610 | then true | |
606 | - | else ( | |
611 | + | else (bs() == 0)) | |
607 | 612 | then $Tuple2(0, 0) | |
608 | - | else if ((0 > | |
613 | + | else if ((0 > ei)) | |
609 | 614 | then { | |
610 | - | let | |
611 | - | let | |
612 | - | $Tuple2( | |
615 | + | let ej = at(av(ei, bh()), an) | |
616 | + | let ek = at(av(ej, br()), bs()) | |
617 | + | $Tuple2(ej, ek) | |
613 | 618 | } | |
614 | 619 | else { | |
615 | - | let | |
616 | - | let | |
617 | - | $Tuple2( | |
620 | + | let ek = at(av(ei, bh()), an) | |
621 | + | let ej = at(av(ek, bs()), br()) | |
622 | + | $Tuple2(ej, ek) | |
618 | 623 | } | |
619 | 624 | } | |
620 | 625 | ||
621 | 626 | ||
622 | - | func | |
627 | + | func el (em,en,eo,ep,eq,er,es,et,eu) = [IntegerEntry(n, em), IntegerEntry(o, en), IntegerEntry(p, eo), IntegerEntry(m, ep), IntegerEntry(l, eq), IntegerEntry(r, er), IntegerEntry(s, es), IntegerEntry(q, et), IntegerEntry(t, eu)] | |
623 | 628 | ||
624 | 629 | ||
625 | - | func | |
630 | + | func ev (ew,ex,ey,ez,eA) = [IntegerEntry(B, ew), IntegerEntry(z, ex), IntegerEntry(A, ey), IntegerEntry(C, ez), IntegerEntry(D, eA)] | |
626 | 631 | ||
627 | 632 | ||
628 | - | func | |
633 | + | func eB (aA,eC,eD,eE,cn) = [IntegerEntry(ay(e, aA), eC), IntegerEntry(ay(f, aA), eD), IntegerEntry(ay(g, aA), eE), IntegerEntry(ay(h, aA), cn)] | |
629 | 634 | ||
630 | 635 | ||
631 | - | func | |
632 | - | let | |
633 | - | let | |
634 | - | if (( | |
636 | + | func eF (eG) = { | |
637 | + | let dJ = ((lastBlock.timestamp / 1000) / 60) | |
638 | + | let eH = valueOrElse(getInteger(this, v), 0) | |
639 | + | if ((eH > dJ)) | |
635 | 640 | then throw("TWAP out-of-order") | |
636 | 641 | else { | |
637 | - | let | |
638 | - | then | |
639 | - | else | |
640 | - | if (( | |
642 | + | let dR = if ((eH == 0)) | |
643 | + | then dJ | |
644 | + | else eH | |
645 | + | if ((dJ > eH)) | |
641 | 646 | then { | |
642 | - | let | |
643 | - | let | |
644 | - | let | |
645 | - | let | |
646 | - | [IntegerEntry( | |
647 | + | let eI = valueOrElse(getInteger(this, ((w + "_") + toString(eH))), 0) | |
648 | + | let eJ = valueOrElse(getInteger(this, ((x + "_") + toString(eH))), eG) | |
649 | + | let eK = (eI + ((dJ - dR) * eJ)) | |
650 | + | let dM = aS(aQ(valueOrElse(getString(this, u), "")), aj, toString(dJ)) | |
651 | + | [IntegerEntry(ay(w, toString(dJ)), eK), IntegerEntry(ay(x, toString(dJ)), eG), IntegerEntry(ay(y, toString(dJ)), eH), IntegerEntry(v, dJ), StringEntry(u, aB(dM))] | |
647 | 652 | } | |
648 | 653 | else { | |
649 | - | let | |
650 | - | let | |
651 | - | let | |
652 | - | let | |
653 | - | [IntegerEntry( | |
654 | + | let eL = valueOrElse(getInteger(this, ay(y, toString(dJ))), 0) | |
655 | + | let eI = valueOrElse(getInteger(this, ay(w, toString(eL))), 0) | |
656 | + | let eJ = valueOrElse(getInteger(this, ay(x, toString(eL))), eG) | |
657 | + | let eK = (eI + ((dJ - eL) * eJ)) | |
658 | + | [IntegerEntry(ay(w, toString(dJ)), eK), IntegerEntry(ay(x, toString(dJ)), eG)] | |
654 | 659 | } | |
655 | 660 | } | |
656 | 661 | } | |
657 | 662 | ||
658 | 663 | ||
659 | - | func | |
664 | + | func eM (bR,bS) = [IntegerEntry(E, bR), IntegerEntry(F, bS)] | |
660 | 665 | ||
661 | 666 | ||
662 | - | func | |
663 | - | then throw(((((("Invalid AMM state data: " + toString( | |
664 | - | else (( | |
667 | + | func eN (bR,bS,eO,eP,eQ,eR,eS) = if (((eR - eS) != eO)) | |
668 | + | then throw(((((("Invalid AMM state data: " + toString(eR)) + " + ") + toString(eS)) + " != ") + toString(eO))) | |
669 | + | else ((eM(bR, bS) ++ [IntegerEntry(G, eO), IntegerEntry(J, eP), IntegerEntry(K, eQ), IntegerEntry(H, eR), IntegerEntry(I, eS)]) ++ eF(at(bR, bS))) | |
665 | 670 | ||
666 | 671 | ||
667 | - | func | |
672 | + | func eT (aA) = [DeleteEntry(ay(e, aA)), DeleteEntry(ay(f, aA)), DeleteEntry(ay(g, aA)), DeleteEntry(ay(h, aA)), IntegerEntry(ay(i, aA), lastBlock.timestamp)] | |
668 | 673 | ||
669 | 674 | ||
670 | - | func | |
671 | - | let | |
672 | - | if (( | |
673 | - | then throw(((("Unable to withdraw " + toString( | |
674 | - | else [ScriptTransfer( | |
675 | + | func eU (aA,eV) = { | |
676 | + | let eW = assetBalance(this, Z()) | |
677 | + | if ((eV > eW)) | |
678 | + | then throw(((("Unable to withdraw " + toString(eV)) + " from contract balance ") + toString(eW))) | |
679 | + | else [ScriptTransfer(aA, eV, Z())] | |
675 | 680 | } | |
676 | 681 | ||
677 | 682 | ||
678 | - | func | |
683 | + | func eX (bu) = if ((0 > bu)) | |
679 | 684 | then throw("Balance") | |
680 | - | else [IntegerEntry(d, | |
685 | + | else [IntegerEntry(d, bu)] | |
681 | 686 | ||
682 | 687 | ||
683 | - | func | |
688 | + | func eY (bu) = [ScriptTransfer(ab(), bu, Z())] | |
684 | 689 | ||
685 | 690 | ||
686 | - | @Callable( | |
687 | - | func pause () = if (( | |
691 | + | @Callable(bu) | |
692 | + | func pause () = if ((bu.caller != X())) | |
688 | 693 | then throw("Invalid togglePause params") | |
689 | 694 | else [BooleanEntry(k, true)] | |
690 | 695 | ||
691 | 696 | ||
692 | 697 | ||
693 | - | @Callable( | |
694 | - | func unpause () = if (( | |
698 | + | @Callable(bu) | |
699 | + | func unpause () = if ((bu.caller != X())) | |
695 | 700 | then throw("Invalid togglePause params") | |
696 | 701 | else [BooleanEntry(k, false)] | |
697 | 702 | ||
698 | 703 | ||
699 | 704 | ||
700 | - | @Callable( | |
701 | - | func addLiquidity ( | |
705 | + | @Callable(bu) | |
706 | + | func addLiquidity (bM) = if (if ((bu.caller != X())) | |
702 | 707 | then true | |
703 | - | else (0 >= | |
708 | + | else (0 >= bM)) | |
704 | 709 | then throw("Invalid addLiquidity params") | |
705 | 710 | else { | |
706 | - | let | |
707 | - | let | |
708 | - | let | |
709 | - | let | |
710 | - | let | |
711 | - | let | |
712 | - | | |
711 | + | let bR = ba() | |
712 | + | let bS = bb() | |
713 | + | let eG = at(bR, bS) | |
714 | + | let eZ = at(bM, eG) | |
715 | + | let fa = (bR + bM) | |
716 | + | let fb = (bS + eZ) | |
717 | + | eM(fa, fb) | |
713 | 718 | } | |
714 | 719 | ||
715 | 720 | ||
716 | 721 | ||
717 | - | @Callable( | |
718 | - | func removeLiquidity ( | |
722 | + | @Callable(bu) | |
723 | + | func removeLiquidity (bM) = if (if ((bu.caller != X())) | |
719 | 724 | then true | |
720 | - | else (0 >= | |
725 | + | else (0 >= bM)) | |
721 | 726 | then throw("Invalid removeLiquidity params") | |
722 | 727 | else { | |
723 | - | let | |
724 | - | let | |
725 | - | let | |
726 | - | let | |
727 | - | let | |
728 | - | let | |
729 | - | | |
728 | + | let bR = ba() | |
729 | + | let bS = bb() | |
730 | + | let eG = at(bR, bS) | |
731 | + | let fc = at(bM, eG) | |
732 | + | let fa = (bR - bM) | |
733 | + | let fb = (bS - fc) | |
734 | + | eM(fa, fb) | |
730 | 735 | } | |
731 | 736 | ||
732 | 737 | ||
733 | 738 | ||
734 | - | @Callable( | |
735 | - | func changeSettings ( | |
739 | + | @Callable(bu) | |
740 | + | func changeSettings (em,en,eo,ep,eq,er,es,et,eu) = if ((bu.caller != X())) | |
736 | 741 | then throw("Invalid changeSettings params") | |
737 | - | else | |
742 | + | else el(em, en, eo, ep, eq, er, es, et, eu) | |
738 | 743 | ||
739 | 744 | ||
740 | 745 | ||
741 | - | @Callable( | |
742 | - | func initialize ( | |
746 | + | @Callable(bu) | |
747 | + | func initialize (bR,bS,ep,em,en,eo,eq,fd,fe,ff,er,es,et,eu) = if (if (if (if (if (if (if (if (if (if (if (if ((0 >= bR)) | |
743 | 748 | then true | |
744 | - | else (0 >= bQ)) | |
749 | + | else (0 >= bS)) | |
750 | + | then true | |
751 | + | else (0 >= ep)) | |
752 | + | then true | |
753 | + | else (0 >= em)) | |
745 | 754 | then true | |
746 | 755 | else (0 >= en)) | |
747 | 756 | then true | |
748 | - | else (0 >= ek)) | |
749 | - | then true | |
750 | - | else (0 >= el)) | |
751 | - | then true | |
752 | - | else (0 >= em)) | |
753 | - | then true | |
754 | 757 | else (0 >= eo)) | |
755 | - | then true | |
756 | - | else (0 >= ep)) | |
757 | 758 | then true | |
758 | 759 | else (0 >= eq)) | |
759 | 760 | then true | |
760 | 761 | else (0 >= er)) | |
761 | 762 | then true | |
762 | 763 | else (0 >= es)) | |
763 | 764 | then true | |
764 | - | else bG()) | |
765 | + | else (0 >= et)) | |
766 | + | then true | |
767 | + | else (0 >= eu)) | |
768 | + | then true | |
769 | + | else bI()) | |
765 | 770 | then throw("Invalid initialize parameters") | |
766 | - | else (((( | |
771 | + | else ((((eN(bR, bS, 0, 0, 0, 0, 0) ++ el(em, en, eo, ep, eq, er, es, et, eu)) ++ ev((lastBlock.timestamp + ep), 0, 0, 0, 0)) ++ eX(0)) ++ [BooleanEntry(j, true), StringEntry(c, fd), StringEntry(a, fe), StringEntry(L, ff)]) | |
767 | 772 | ||
768 | 773 | ||
769 | 774 | ||
770 | - | @Callable( | |
771 | - | func setInitMarginRatio ( | |
775 | + | @Callable(bu) | |
776 | + | func setInitMarginRatio (em) = if (if ((0 >= em)) | |
772 | 777 | then true | |
773 | - | else !( | |
778 | + | else !(bI())) | |
774 | 779 | then throw("Invalid setInitMarginRatio parameters") | |
775 | - | else | |
780 | + | else el(em, bj(), bk(), bg(), aY(), bm(), bn(), bl(), bo()) | |
776 | 781 | ||
777 | 782 | ||
778 | 783 | ||
779 | - | @Callable( | |
780 | - | func decreasePosition ( | |
784 | + | @Callable(bu) | |
785 | + | func decreasePosition (eV,fg,fh) = if (if (if (if (if ((0 >= eV)) | |
781 | 786 | then true | |
782 | - | else !( | |
787 | + | else !(bI())) | |
783 | 788 | then true | |
784 | - | else !( | |
789 | + | else !(bv(at(am, fg), aZ(), true))) | |
785 | 790 | then true | |
786 | - | else !( | |
791 | + | else !(bH(toString(bu.caller)))) | |
787 | 792 | then true | |
788 | - | else | |
793 | + | else bJ()) | |
789 | 794 | then throw("Invalid decreasePosition parameters") | |
790 | 795 | else { | |
791 | - | let | |
792 | - | let | |
793 | - | let | |
794 | - | let | |
795 | - | let | |
796 | - | let | |
797 | - | then | |
798 | - | else | |
799 | - | let | |
800 | - | let | |
801 | - | let | |
802 | - | let | |
803 | - | let | |
804 | - | let | |
796 | + | let fi = bC(toString(bu.caller)) | |
797 | + | let fj = fi._1 | |
798 | + | let fk = fi._2 | |
799 | + | let fl = fi._3 | |
800 | + | let fm = fi._4 | |
801 | + | let fn = if ((fj > 0)) | |
802 | + | then ai | |
803 | + | else ah | |
804 | + | let fo = (fn == ah) | |
805 | + | let fp = av(eV, fg) | |
806 | + | let fq = db(toString(bu.caller), ap) | |
807 | + | let fr = fq._1 | |
808 | + | let da = fq._2 | |
809 | + | let fs = if ((fr > fp)) | |
805 | 810 | then { | |
806 | - | let | |
807 | - | let | |
808 | - | let | |
809 | - | let | |
810 | - | let | |
811 | - | let | |
812 | - | let | |
813 | - | if (if (( | |
814 | - | then ( | |
811 | + | let ft = bQ(fo, fp) | |
812 | + | let dv = ft._1 | |
813 | + | let bT = ft._2 | |
814 | + | let bU = ft._3 | |
815 | + | let dD = ft._4 | |
816 | + | let dE = ft._5 | |
817 | + | let fu = aw(dv) | |
818 | + | if (if ((fh != 0)) | |
819 | + | then (fh > fu) | |
815 | 820 | else false) | |
816 | - | then throw(((("Too little base asset exchanged, got " + toString( | |
821 | + | then throw(((("Too little base asset exchanged, got " + toString(fu)) + " expected ") + toString(fh))) | |
817 | 822 | else { | |
818 | - | let | |
819 | - | let | |
820 | - | let | |
821 | - | let | |
822 | - | let | |
823 | - | let | |
824 | - | let | |
825 | - | let | |
826 | - | then (( | |
827 | - | else (( | |
828 | - | let | |
829 | - | $Tuple11( | |
830 | - | then | |
831 | - | else 0)), ( | |
832 | - | then | |
823 | + | let dA = at(av(da, fu), aw(fj)) | |
824 | + | let fv = ch(fj, fk, fm, dA) | |
825 | + | let cq = fv._1 | |
826 | + | let cr = fv._2 | |
827 | + | let cm = fv._3 | |
828 | + | let dw = fp | |
829 | + | let fw = (da - dA) | |
830 | + | let fx = if ((fj > 0)) | |
831 | + | then ((fr - dw) - fw) | |
832 | + | else ((fw + fr) - dw) | |
833 | + | let fy = (fj + dv) | |
834 | + | $Tuple11(fy, cq, aw(fx), bA(fy), bU, bT, dD, dE, (be() - fp), (bs() - (if ((fy > 0)) | |
835 | + | then aw(dv) | |
836 | + | else 0)), (br() - (if ((0 > fy)) | |
837 | + | then aw(dv) | |
833 | 838 | else 0))) | |
834 | 839 | } | |
835 | 840 | } | |
836 | 841 | else throw("Close position first") | |
837 | - | let | |
838 | - | let | |
839 | - | let | |
840 | - | let | |
841 | - | let | |
842 | - | let | |
843 | - | let | |
844 | - | let | |
845 | - | let | |
846 | - | let | |
847 | - | let | |
848 | - | let | |
849 | - | if (( | |
850 | - | then ( | |
842 | + | let fy = fs._1 | |
843 | + | let fz = fs._2 | |
844 | + | let fA = fs._3 | |
845 | + | let fB = fs._4 | |
846 | + | let bU = fs._5 | |
847 | + | let bT = fs._6 | |
848 | + | let dD = fs._7 | |
849 | + | let dE = fs._8 | |
850 | + | let dH = fs._9 | |
851 | + | let dF = fs._10 | |
852 | + | let dG = fs._11 | |
853 | + | let fC = invoke(ad(), "notifyNotional", [toString(bu.caller), fA], nil) | |
854 | + | if ((fC == fC)) | |
855 | + | then (eB(toString(bu.caller), fy, fz, fA, fB) ++ eN(bT, bU, dD, dE, dH, dF, dG)) | |
851 | 856 | else throw("Strict value is not equal to itself.") | |
852 | 857 | } | |
853 | 858 | ||
854 | 859 | ||
855 | 860 | ||
856 | - | @Callable( | |
857 | - | func increasePosition ( | |
858 | - | let | |
859 | - | if (if (if (if (if (if (if (( | |
860 | - | then ( | |
861 | + | @Callable(bu) | |
862 | + | func increasePosition (fn,fg,fh,fD) = { | |
863 | + | let fE = bu.payments[0].amount | |
864 | + | if (if (if (if (if (if (if ((fn != ah)) | |
865 | + | then (fn != ai) | |
861 | 866 | else false) | |
862 | 867 | then true | |
863 | - | else (0 >= | |
868 | + | else (0 >= fE)) | |
864 | 869 | then true | |
865 | - | else !( | |
870 | + | else !(bI())) | |
866 | 871 | then true | |
867 | - | else ( | |
872 | + | else (bu.payments[0].assetId != Z())) | |
868 | 873 | then true | |
869 | - | else !( | |
874 | + | else !(bv(at(am, fg), aZ(), true))) | |
870 | 875 | then true | |
871 | - | else | |
876 | + | else bJ()) | |
872 | 877 | then throw("Invalid increasePosition parameters") | |
873 | 878 | else { | |
874 | - | let | |
875 | - | let | |
876 | - | let | |
877 | - | if (( | |
879 | + | let bD = toString(bu.caller) | |
880 | + | let fF = av(fE, aY()) | |
881 | + | let fG = invoke(af(), "acceptPaymentWithLink", [bD, fD], [AttachedPayment(Z(), fF)]) | |
882 | + | if ((fG == fG)) | |
878 | 883 | then { | |
879 | - | let | |
880 | - | let | |
881 | - | if ($isInstanceOf( | |
884 | + | let fH = { | |
885 | + | let bF = fG | |
886 | + | if ($isInstanceOf(bF, "Int")) | |
882 | 887 | then { | |
883 | - | let | |
884 | - | | |
888 | + | let fI = bF | |
889 | + | fI | |
885 | 890 | } | |
886 | 891 | else throw("Invalid referrerFee") | |
887 | 892 | } | |
888 | - | let | |
889 | - | let | |
890 | - | let | |
891 | - | let | |
892 | - | let | |
893 | - | let | |
894 | - | let | |
895 | - | let | |
896 | - | let | |
897 | - | then ( | |
898 | - | else ( | |
899 | - | let | |
900 | - | then | |
893 | + | let eV = (fE - fF) | |
894 | + | let fJ = (fF - fH) | |
895 | + | let fK = bC(bD) | |
896 | + | let fj = fK._1 | |
897 | + | let fk = fK._2 | |
898 | + | let fl = fK._3 | |
899 | + | let fm = fK._4 | |
900 | + | let fL = (fj == 0) | |
901 | + | let fM = if ((fj > 0)) | |
902 | + | then (fn == ah) | |
903 | + | else (fn == ai) | |
904 | + | let fN = if (!(fL)) | |
905 | + | then fM | |
901 | 906 | else false | |
902 | - | let | |
903 | - | let | |
907 | + | let fo = (fn == ah) | |
908 | + | let fO = if (if (fL) | |
904 | 909 | then true | |
905 | - | else | |
910 | + | else fN) | |
906 | 911 | then { | |
907 | - | let | |
908 | - | let | |
909 | - | let | |
910 | - | let | |
911 | - | let | |
912 | - | let | |
913 | - | let | |
914 | - | if (if (( | |
915 | - | then ( | |
912 | + | let fp = av(eV, fg) | |
913 | + | let fP = bQ(fo, fp) | |
914 | + | let bW = fP._1 | |
915 | + | let bT = fP._2 | |
916 | + | let bU = fP._3 | |
917 | + | let dD = fP._4 | |
918 | + | let dE = fP._5 | |
919 | + | if (if ((fh != 0)) | |
920 | + | then (fh > aw(bW)) | |
916 | 921 | else false) | |
917 | - | then throw(((("Limit error: " + toString( | |
922 | + | then throw(((("Limit error: " + toString(aw(bW))) + " < ") + toString(fh))) | |
918 | 923 | else { | |
919 | - | let | |
920 | - | let | |
921 | - | let | |
922 | - | let | |
923 | - | let | |
924 | - | let | |
925 | - | if (!( | |
924 | + | let fy = (fj + bW) | |
925 | + | let fQ = at(fp, fg) | |
926 | + | let fR = ch(fj, fk, fm, fQ) | |
927 | + | let cq = fR._1 | |
928 | + | let cV = fR._2 | |
929 | + | let cW = fR._3 | |
930 | + | if (!(cG(bT, bU))) | |
926 | 931 | then throw("Over max spread limit") | |
927 | - | else $Tuple11( | |
928 | - | then | |
929 | - | else 0)), ( | |
930 | - | then | |
932 | + | else $Tuple11(fy, cq, (fl + fp), bA(fy), bU, bT, dD, dE, (be() + fp), (bs() + (if ((fy > 0)) | |
933 | + | then aw(bW) | |
934 | + | else 0)), (br() + (if ((0 > fy)) | |
935 | + | then aw(bW) | |
931 | 936 | else 0))) | |
932 | 937 | } | |
933 | 938 | } | |
934 | 939 | else { | |
935 | - | let | |
936 | - | let | |
937 | - | let | |
938 | - | let | |
939 | - | if (( | |
940 | + | let fp = av(eV, fg) | |
941 | + | let fS = db(toString(bu.caller), ap) | |
942 | + | let fr = fS._1 | |
943 | + | let da = fS._2 | |
944 | + | if ((fr > fp)) | |
940 | 945 | then throw("Use decreasePosition to decrease position size") | |
941 | 946 | else throw("Close position first") | |
942 | 947 | } | |
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 | - | if (( | |
948 | + | let fy = fO._1 | |
949 | + | let fz = fO._2 | |
950 | + | let fA = fO._3 | |
951 | + | let fB = fO._4 | |
952 | + | let bU = fO._5 | |
953 | + | let bT = fO._6 | |
954 | + | let dD = fO._7 | |
955 | + | let dE = fO._8 | |
956 | + | let dH = fO._9 | |
957 | + | let dF = fO._10 | |
958 | + | let dG = fO._11 | |
959 | + | let fT = (fJ / 2) | |
960 | + | let fU = (fJ - fT) | |
961 | + | let fV = invoke(ag(), "deposit", nil, [AttachedPayment(Z(), eV)]) | |
962 | + | if ((fV == fV)) | |
958 | 963 | then { | |
959 | - | let | |
960 | - | if (( | |
964 | + | let fW = invoke(ac(), "deposit", nil, [AttachedPayment(Z(), fU)]) | |
965 | + | if ((fW == fW)) | |
961 | 966 | then { | |
962 | - | let | |
963 | - | if (( | |
967 | + | let fX = invoke(ad(), "notifyFees", [bD, fJ], nil) | |
968 | + | if ((fX == fX)) | |
964 | 969 | then { | |
965 | - | let | |
966 | - | if (( | |
967 | - | then ((( | |
970 | + | let fC = invoke(ad(), "notifyNotional", [bD, fA], nil) | |
971 | + | if ((fC == fC)) | |
972 | + | then (((eB(bD, fy, fz, fA, fB) ++ eN(bT, bU, dD, dE, dH, dF, dG)) ++ eY(fT)) ++ eX((aX() + eV))) | |
968 | 973 | else throw("Strict value is not equal to itself.") | |
969 | 974 | } | |
970 | 975 | else throw("Strict value is not equal to itself.") | |
971 | 976 | } | |
972 | 977 | else throw("Strict value is not equal to itself.") | |
973 | 978 | } | |
974 | 979 | else throw("Strict value is not equal to itself.") | |
975 | 980 | } | |
976 | 981 | else throw("Strict value is not equal to itself.") | |
977 | 982 | } | |
978 | 983 | } | |
979 | 984 | ||
980 | 985 | ||
981 | 986 | ||
982 | - | @Callable( | |
987 | + | @Callable(bu) | |
983 | 988 | func addMargin () = { | |
984 | - | let | |
985 | - | if (if (if (if (( | |
989 | + | let fE = bu.payments[0].amount | |
990 | + | if (if (if (if ((bu.payments[0].assetId != Z())) | |
986 | 991 | then true | |
987 | - | else !( | |
992 | + | else !(bH(toString(bu.caller)))) | |
988 | 993 | then true | |
989 | - | else !( | |
994 | + | else !(bI())) | |
990 | 995 | then true | |
991 | - | else | |
996 | + | else bJ()) | |
992 | 997 | then throw("Invalid addMargin parameters") | |
993 | 998 | else { | |
994 | - | let | |
995 | - | let | |
996 | - | let | |
997 | - | if (( | |
999 | + | let bD = toString(bu.caller) | |
1000 | + | let fF = av(fE, aY()) | |
1001 | + | let fG = invoke(af(), "acceptPayment", [bD], [AttachedPayment(Z(), fF)]) | |
1002 | + | if ((fG == fG)) | |
998 | 1003 | then { | |
999 | - | let | |
1000 | - | let | |
1001 | - | if ($isInstanceOf( | |
1004 | + | let fH = { | |
1005 | + | let bF = fG | |
1006 | + | if ($isInstanceOf(bF, "Int")) | |
1002 | 1007 | then { | |
1003 | - | let | |
1004 | - | | |
1008 | + | let fI = bF | |
1009 | + | fI | |
1005 | 1010 | } | |
1006 | 1011 | else throw("Invalid referrerFee") | |
1007 | 1012 | } | |
1008 | - | let | |
1009 | - | let | |
1010 | - | let | |
1011 | - | let | |
1012 | - | let | |
1013 | - | let | |
1014 | - | let | |
1015 | - | let | |
1016 | - | let | |
1017 | - | let | |
1018 | - | if (( | |
1013 | + | let fJ = (fF - fH) | |
1014 | + | let eV = (fE - fF) | |
1015 | + | let fY = bC(bD) | |
1016 | + | let fj = fY._1 | |
1017 | + | let fk = fY._2 | |
1018 | + | let fl = fY._3 | |
1019 | + | let fm = fY._4 | |
1020 | + | let fT = (fJ / 2) | |
1021 | + | let fU = (fJ - fT) | |
1022 | + | let fV = invoke(ag(), "deposit", nil, [AttachedPayment(Z(), eV)]) | |
1023 | + | if ((fV == fV)) | |
1019 | 1024 | then { | |
1020 | - | let | |
1021 | - | if (( | |
1025 | + | let fW = invoke(ac(), "deposit", nil, [AttachedPayment(Z(), fU)]) | |
1026 | + | if ((fW == fW)) | |
1022 | 1027 | then { | |
1023 | - | let | |
1024 | - | if (( | |
1025 | - | then (( | |
1028 | + | let fX = invoke(ad(), "notifyFees", [bD, fJ], nil) | |
1029 | + | if ((fX == fX)) | |
1030 | + | then ((eB(bD, fj, (fk + eV), fl, fm) ++ eY(fT)) ++ eX((aX() + eV))) | |
1026 | 1031 | else throw("Strict value is not equal to itself.") | |
1027 | 1032 | } | |
1028 | 1033 | else throw("Strict value is not equal to itself.") | |
1029 | 1034 | } | |
1030 | 1035 | else throw("Strict value is not equal to itself.") | |
1031 | 1036 | } | |
1032 | 1037 | else throw("Strict value is not equal to itself.") | |
1033 | 1038 | } | |
1034 | 1039 | } | |
1035 | 1040 | ||
1036 | 1041 | ||
1037 | 1042 | ||
1038 | - | @Callable( | |
1039 | - | func removeMargin ( | |
1043 | + | @Callable(bu) | |
1044 | + | func removeMargin (eV) = if (if (if (if ((0 >= eV)) | |
1040 | 1045 | then true | |
1041 | - | else !( | |
1046 | + | else !(bH(toString(bu.caller)))) | |
1042 | 1047 | then true | |
1043 | - | else !( | |
1048 | + | else !(bI())) | |
1044 | 1049 | then true | |
1045 | - | else | |
1050 | + | else bJ()) | |
1046 | 1051 | then throw("Invalid removeMargin parameters") | |
1047 | 1052 | else { | |
1048 | - | let | |
1049 | - | let | |
1050 | - | let | |
1051 | - | let | |
1052 | - | let | |
1053 | - | let | |
1054 | - | let | |
1055 | - | let | |
1056 | - | let | |
1057 | - | if (( | |
1053 | + | let fZ = bC(toString(bu.caller)) | |
1054 | + | let fj = fZ._1 | |
1055 | + | let fk = fZ._2 | |
1056 | + | let fl = fZ._3 | |
1057 | + | let fm = fZ._4 | |
1058 | + | let ga = -(eV) | |
1059 | + | let gb = ch(fj, fk, fm, ga) | |
1060 | + | let cq = gb._1 | |
1061 | + | let cr = gb._2 | |
1062 | + | if ((cr != 0)) | |
1058 | 1063 | then throw("Invalid removed margin amount") | |
1059 | 1064 | else { | |
1060 | - | let | |
1061 | - | if (!( | |
1062 | - | then throw(((("Too much margin removed: " + toString( | |
1065 | + | let gc = dg(cq, cr, fl) | |
1066 | + | if (!(bv(gc, aZ(), true))) | |
1067 | + | then throw(((("Too much margin removed: " + toString(gc)) + " < ") + toString(aZ()))) | |
1063 | 1068 | else { | |
1064 | - | let | |
1065 | - | if (( | |
1066 | - | then (( | |
1069 | + | let gd = invoke(ag(), "withdraw", [toBase58String(Z()), eV], nil) | |
1070 | + | if ((gd == gd)) | |
1071 | + | then ((eB(toString(bu.caller), fj, cq, fl, bA(fj)) ++ eU(bu.caller, eV)) ++ eX((aX() - eV))) | |
1067 | 1072 | else throw("Strict value is not equal to itself.") | |
1068 | 1073 | } | |
1069 | 1074 | } | |
1070 | 1075 | } | |
1071 | 1076 | ||
1072 | 1077 | ||
1073 | 1078 | ||
1074 | - | @Callable( | |
1079 | + | @Callable(bu) | |
1075 | 1080 | func closePosition () = { | |
1076 | - | let | |
1077 | - | let | |
1078 | - | if (if (if (!( | |
1081 | + | let ge = bt(bu) | |
1082 | + | let gf = valueOrErrorMessage(addressFromString(ge), "Invalid caller") | |
1083 | + | if (if (if (!(bH(ge))) | |
1079 | 1084 | then true | |
1080 | - | else !( | |
1085 | + | else !(bI())) | |
1081 | 1086 | then true | |
1082 | - | else | |
1087 | + | else bJ()) | |
1083 | 1088 | then throw("Invalid closePosition parameters") | |
1084 | 1089 | else { | |
1085 | - | let | |
1086 | - | let | |
1087 | - | let | |
1088 | - | let | |
1089 | - | let | |
1090 | - | let | |
1091 | - | let | |
1092 | - | let | |
1093 | - | let | |
1094 | - | let | |
1095 | - | let | |
1096 | - | let | |
1097 | - | let | |
1098 | - | if (( | |
1090 | + | let gg = dx(ge, true) | |
1091 | + | let cV = gg._1 | |
1092 | + | let gh = gg._2 | |
1093 | + | let dA = gg._3 | |
1094 | + | let dB = gg._4 | |
1095 | + | let bT = gg._5 | |
1096 | + | let bU = gg._6 | |
1097 | + | let dD = gg._7 | |
1098 | + | let dE = gg._8 | |
1099 | + | let dH = gg._9 | |
1100 | + | let cW = gg._10 | |
1101 | + | let dF = gg._11 | |
1102 | + | let dG = gg._12 | |
1103 | + | if ((gh > 0)) | |
1099 | 1104 | then throw("Unable to close position with bad debt") | |
1100 | 1105 | else { | |
1101 | - | let | |
1102 | - | let | |
1103 | - | let | |
1104 | - | then $Tuple2(0, | |
1105 | - | else $Tuple2( | |
1106 | - | let | |
1107 | - | let | |
1108 | - | let | |
1106 | + | let gi = aw(dB) | |
1107 | + | let gj = (aX() - gi) | |
1108 | + | let gk = if ((0 > gj)) | |
1109 | + | then $Tuple2(0, aw(gj)) | |
1110 | + | else $Tuple2(gj, 0) | |
1111 | + | let gl = gk._1 | |
1112 | + | let gm = gk._2 | |
1113 | + | let fI = if ((gm > 0)) | |
1109 | 1114 | then { | |
1110 | - | let | |
1111 | - | if (( | |
1115 | + | let gn = invoke(ac(), "withdraw", [gm], nil) | |
1116 | + | if ((gn == gn)) | |
1112 | 1117 | then nil | |
1113 | 1118 | else throw("Strict value is not equal to itself.") | |
1114 | 1119 | } | |
1115 | 1120 | else nil | |
1116 | - | if (( | |
1121 | + | if ((fI == fI)) | |
1117 | 1122 | then { | |
1118 | - | let | |
1119 | - | if (( | |
1123 | + | let gd = invoke(ag(), "withdraw", [toBase58String(Z()), (gi - gm)], nil) | |
1124 | + | if ((gd == gd)) | |
1120 | 1125 | then { | |
1121 | - | let | |
1122 | - | if (( | |
1123 | - | then ((( | |
1126 | + | let fC = invoke(ad(), "notifyNotional", [ge, 0], nil) | |
1127 | + | if ((fC == fC)) | |
1128 | + | then (((eT(ge) ++ eN(bT, bU, dD, dE, dH, dF, dG)) ++ eU(gf, gi)) ++ eX(gl)) | |
1124 | 1129 | else throw("Strict value is not equal to itself.") | |
1125 | 1130 | } | |
1126 | 1131 | else throw("Strict value is not equal to itself.") | |
1127 | 1132 | } | |
1128 | 1133 | else throw("Strict value is not equal to itself.") | |
1129 | 1134 | } | |
1130 | 1135 | } | |
1131 | 1136 | } | |
1132 | 1137 | ||
1133 | 1138 | ||
1134 | 1139 | ||
1135 | - | @Callable( | |
1136 | - | func liquidate ( | |
1137 | - | let | |
1138 | - | let | |
1140 | + | @Callable(bu) | |
1141 | + | func liquidate (bD) = { | |
1142 | + | let go = dk(bD, ap) | |
1143 | + | let gc = if (cM()) | |
1139 | 1144 | then { | |
1140 | - | let | |
1141 | - | | |
1145 | + | let gp = dk(bD, aq) | |
1146 | + | ax(go, gp) | |
1142 | 1147 | } | |
1143 | - | else | |
1144 | - | if (if (if (if (!( | |
1148 | + | else go | |
1149 | + | if (if (if (if (!(bv(gc, bj(), false))) | |
1145 | 1150 | then true | |
1146 | - | else !( | |
1151 | + | else !(bH(bD))) | |
1147 | 1152 | then true | |
1148 | - | else !( | |
1153 | + | else !(bI())) | |
1149 | 1154 | then true | |
1150 | - | else | |
1155 | + | else bJ()) | |
1151 | 1156 | then throw("Unable to liquidate") | |
1152 | - | else if (if (if (( | |
1153 | - | then ( | |
1157 | + | else if (if (if ((go > bk())) | |
1158 | + | then (bl() > 0) | |
1154 | 1159 | else false) | |
1155 | - | then ( | |
1160 | + | then (am > bl()) | |
1156 | 1161 | else false) | |
1157 | 1162 | then { | |
1158 | - | let | |
1159 | - | let | |
1160 | - | let | |
1161 | - | let | |
1162 | - | let | |
1163 | - | let | |
1164 | - | then | |
1165 | - | else | |
1166 | - | let | |
1167 | - | let | |
1168 | - | let | |
1169 | - | let | |
1170 | - | let | |
1171 | - | let | |
1172 | - | let | |
1173 | - | let | |
1174 | - | let | |
1175 | - | let | |
1176 | - | let | |
1177 | - | let | |
1178 | - | let | |
1179 | - | let | |
1180 | - | let | |
1181 | - | let | |
1182 | - | let | |
1183 | - | let | |
1184 | - | then (( | |
1185 | - | else (( | |
1186 | - | let | |
1187 | - | let | |
1188 | - | let | |
1189 | - | let | |
1190 | - | let | |
1191 | - | let | |
1192 | - | let | |
1193 | - | let | |
1194 | - | let | |
1195 | - | let | |
1196 | - | then $Tuple2(0, | |
1197 | - | else $Tuple2( | |
1198 | - | let | |
1199 | - | let | |
1200 | - | let | |
1163 | + | let gq = bC(bD) | |
1164 | + | let fj = gq._1 | |
1165 | + | let fk = gq._2 | |
1166 | + | let fl = gq._3 | |
1167 | + | let fm = gq._4 | |
1168 | + | let fn = if ((fj > 0)) | |
1169 | + | then ai | |
1170 | + | else ah | |
1171 | + | let fo = (fn == ah) | |
1172 | + | let dw = dq(bD, fj) | |
1173 | + | let gr = db(bD, ap) | |
1174 | + | let fr = gr._1 | |
1175 | + | let da = gr._2 | |
1176 | + | let gs = bQ(fo, dw) | |
1177 | + | let dv = gs._1 | |
1178 | + | let bT = gs._2 | |
1179 | + | let bU = gs._3 | |
1180 | + | let dD = gs._4 | |
1181 | + | let dE = gs._5 | |
1182 | + | let dA = at(av(da, aw(dv)), aw(fj)) | |
1183 | + | let gt = ch(fj, fk, fm, dA) | |
1184 | + | let cq = gt._1 | |
1185 | + | let cr = gt._2 | |
1186 | + | let cm = gt._3 | |
1187 | + | let fw = (da - dA) | |
1188 | + | let fx = if ((fj > 0)) | |
1189 | + | then ((fr - dw) - fw) | |
1190 | + | else ((fw + fr) - dw) | |
1191 | + | let gu = av(dw, bk()) | |
1192 | + | let gv = (gu / 2) | |
1193 | + | let fU = (gu - gv) | |
1194 | + | let gw = (cq - gu) | |
1195 | + | let fy = (fj + dv) | |
1196 | + | let fA = aw(fx) | |
1197 | + | let gx = bA(fy) | |
1198 | + | let dH = (be() - dw) | |
1199 | + | let gj = (aX() - gu) | |
1200 | + | let gy = if ((0 > gj)) | |
1201 | + | then $Tuple2(0, aw(gj)) | |
1202 | + | else $Tuple2(gj, 0) | |
1203 | + | let gz = gy._1 | |
1204 | + | let gA = gy._2 | |
1205 | + | let fI = if ((gA > 0)) | |
1201 | 1206 | then { | |
1202 | - | let | |
1203 | - | if (( | |
1207 | + | let gn = invoke(ac(), "withdraw", [gA], nil) | |
1208 | + | if ((gn == gn)) | |
1204 | 1209 | then nil | |
1205 | 1210 | else throw("Strict value is not equal to itself.") | |
1206 | 1211 | } | |
1207 | 1212 | else nil | |
1208 | - | if (( | |
1213 | + | if ((fI == fI)) | |
1209 | 1214 | then { | |
1210 | - | let | |
1211 | - | if (( | |
1215 | + | let gd = invoke(ag(), "withdraw", [toBase58String(Z()), (gu - gA)], nil) | |
1216 | + | if ((gd == gd)) | |
1212 | 1217 | then { | |
1213 | - | let | |
1214 | - | if (( | |
1218 | + | let fW = invoke(ac(), "deposit", nil, [AttachedPayment(Z(), fU)]) | |
1219 | + | if ((fW == fW)) | |
1215 | 1220 | then { | |
1216 | - | let | |
1217 | - | if (( | |
1218 | - | then ((( | |
1219 | - | then | |
1220 | - | else 0)), ( | |
1221 | - | then | |
1222 | - | else 0)))) ++ | |
1221 | + | let fC = invoke(ad(), "notifyNotional", [bD, fA], nil) | |
1222 | + | if ((fC == fC)) | |
1223 | + | then (((eB(bD, fy, gw, fA, gx) ++ eN(bT, bU, dD, dE, dH, (bs() - (if ((fy > 0)) | |
1224 | + | then aw(dv) | |
1225 | + | else 0)), (br() - (if ((0 > fy)) | |
1226 | + | then aw(dv) | |
1227 | + | else 0)))) ++ eU(bu.caller, gv)) ++ eX(gz)) | |
1223 | 1228 | else throw("Strict value is not equal to itself.") | |
1224 | 1229 | } | |
1225 | 1230 | else throw("Strict value is not equal to itself.") | |
1226 | 1231 | } | |
1227 | 1232 | else throw("Strict value is not equal to itself.") | |
1228 | 1233 | } | |
1229 | 1234 | else throw("Strict value is not equal to itself.") | |
1230 | 1235 | } | |
1231 | 1236 | else { | |
1232 | - | let | |
1233 | - | let | |
1234 | - | let | |
1235 | - | let | |
1236 | - | let | |
1237 | - | let | |
1238 | - | let | |
1239 | - | let | |
1240 | - | let | |
1241 | - | let | |
1242 | - | let | |
1243 | - | let | |
1244 | - | let | |
1245 | - | let | |
1246 | - | let | |
1247 | - | let | |
1248 | - | let | |
1249 | - | let | |
1250 | - | then $Tuple2(0, | |
1251 | - | else $Tuple2( | |
1252 | - | let | |
1253 | - | let | |
1254 | - | let | |
1237 | + | let gB = dx(bD, false) | |
1238 | + | let cV = gB._1 | |
1239 | + | let cr = gB._2 | |
1240 | + | let cW = gB._3 | |
1241 | + | let cX = gB._4 | |
1242 | + | let bT = gB._5 | |
1243 | + | let bU = gB._6 | |
1244 | + | let dD = gB._7 | |
1245 | + | let dE = gB._8 | |
1246 | + | let dH = gB._9 | |
1247 | + | let dw = gB._10 | |
1248 | + | let dF = gB._11 | |
1249 | + | let dG = gB._12 | |
1250 | + | let gu = av(dw, bk()) | |
1251 | + | let gv = (gu / 2) | |
1252 | + | let fU = (gu - gv) | |
1253 | + | let gj = (aX() - gu) | |
1254 | + | let gC = if ((0 > gj)) | |
1255 | + | then $Tuple2(0, aw(gj)) | |
1256 | + | else $Tuple2(gj, 0) | |
1257 | + | let gz = gC._1 | |
1258 | + | let gA = gC._2 | |
1259 | + | let fI = if ((gA > 0)) | |
1255 | 1260 | then { | |
1256 | - | let | |
1257 | - | if (( | |
1261 | + | let gn = invoke(ac(), "withdraw", [gA], nil) | |
1262 | + | if ((gn == gn)) | |
1258 | 1263 | then nil | |
1259 | 1264 | else throw("Strict value is not equal to itself.") | |
1260 | 1265 | } | |
1261 | 1266 | else nil | |
1262 | - | if (( | |
1267 | + | if ((fI == fI)) | |
1263 | 1268 | then { | |
1264 | - | let | |
1265 | - | if (( | |
1269 | + | let gd = invoke(ag(), "withdraw", [toBase58String(Z()), (gu - gA)], nil) | |
1270 | + | if ((gd == gd)) | |
1266 | 1271 | then { | |
1267 | - | let | |
1268 | - | if (( | |
1272 | + | let fW = invoke(ac(), "deposit", nil, [AttachedPayment(Z(), fU)]) | |
1273 | + | if ((fW == fW)) | |
1269 | 1274 | then { | |
1270 | - | let | |
1271 | - | if (( | |
1272 | - | then ((( | |
1275 | + | let fC = invoke(ad(), "notifyNotional", [bD, 0], nil) | |
1276 | + | if ((fC == fC)) | |
1277 | + | then (((eT(bD) ++ eN(bT, bU, dD, dE, dH, dF, dG)) ++ eU(bu.caller, gv)) ++ eX(gz)) | |
1273 | 1278 | else throw("Strict value is not equal to itself.") | |
1274 | 1279 | } | |
1275 | 1280 | else throw("Strict value is not equal to itself.") | |
1276 | 1281 | } | |
1277 | 1282 | else throw("Strict value is not equal to itself.") | |
1278 | 1283 | } | |
1279 | 1284 | else throw("Strict value is not equal to itself.") | |
1280 | 1285 | } | |
1281 | 1286 | } | |
1282 | 1287 | ||
1283 | 1288 | ||
1284 | 1289 | ||
1285 | - | @Callable( | |
1290 | + | @Callable(bu) | |
1286 | 1291 | func payFunding () = { | |
1287 | - | let | |
1288 | - | if (if (if (( | |
1292 | + | let gD = bf() | |
1293 | + | if (if (if ((gD > lastBlock.timestamp)) | |
1289 | 1294 | then true | |
1290 | - | else !( | |
1295 | + | else !(bI())) | |
1291 | 1296 | then true | |
1292 | - | else | |
1293 | - | then throw(((("Invalid funding block timestamp: " + toString(lastBlock.timestamp)) + " < ") + toString( | |
1297 | + | else bJ()) | |
1298 | + | then throw(((("Invalid funding block timestamp: " + toString(lastBlock.timestamp)) + " < ") + toString(gD))) | |
1294 | 1299 | else { | |
1295 | - | let | |
1296 | - | let | |
1297 | - | let | |
1298 | - | let | |
1299 | - | | |
1300 | + | let eg = cB() | |
1301 | + | let gE = ef() | |
1302 | + | let ej = gE._1 | |
1303 | + | let ek = gE._2 | |
1304 | + | ev((gD + bi()), (bp() + ek), (bq() + ej), at(ek, eg), at(ej, eg)) | |
1300 | 1305 | } | |
1301 | 1306 | } | |
1302 | 1307 | ||
1303 | 1308 | ||
1304 | 1309 | ||
1305 | - | @Callable( | |
1306 | - | func forceMoveAsset ( | |
1310 | + | @Callable(bu) | |
1311 | + | func forceMoveAsset (bD,eV) = if (if ((addressFromPublicKey(Y()) != bu.caller)) | |
1307 | 1312 | then true | |
1308 | - | else (0 > | |
1313 | + | else (0 > eV)) | |
1309 | 1314 | then throw("Invalid forceMoveAsset parameters") | |
1310 | 1315 | else { | |
1311 | - | let | |
1312 | - | if (( | |
1313 | - | then ( | |
1316 | + | let gd = invoke(ag(), "withdraw", [toBase58String(Z()), eV], nil) | |
1317 | + | if ((gd == gd)) | |
1318 | + | then (eU(addressFromStringValue(bD), eV) ++ eX((aX() - eV))) | |
1314 | 1319 | else throw("Strict value is not equal to itself.") | |
1315 | 1320 | } | |
1316 | 1321 | ||
1317 | 1322 | ||
1318 | 1323 | ||
1319 | - | @Callable( | |
1320 | - | func adjustPeg ( | |
1324 | + | @Callable(bu) | |
1325 | + | func adjustPeg (dZ) = if (if ((addressFromPublicKey(Y()) != bu.caller)) | |
1321 | 1326 | then true | |
1322 | - | else (0 > | |
1327 | + | else (0 > dZ)) | |
1323 | 1328 | then throw("Invalid adjustPeg parameters") | |
1324 | 1329 | else { | |
1325 | - | let | |
1326 | - | let | |
1327 | - | let | |
1328 | - | if (( | |
1330 | + | let gF = dY(dZ) | |
1331 | + | let ed = gF._1 | |
1332 | + | let gG = gF._2 | |
1333 | + | if ((gG == 0)) | |
1329 | 1334 | then throw("Nothing to adjust") | |
1330 | - | else if ((gE > 0)) | |
1331 | - | then { | |
1332 | - | let gl = invoke(ab(), "withdraw", [gE], nil) | |
1333 | - | if ((gl == gl)) | |
1335 | + | else if ((gG > 0)) | |
1336 | + | then eM(ed, bb()) | |
1337 | + | else { | |
1338 | + | let gd = invoke(ag(), "withdraw", [toBase58String(Z()), aw(gG)], nil) | |
1339 | + | if ((gd == gd)) | |
1334 | 1340 | then { | |
1335 | - | let fT = invoke(Z(), "lockNeutrinoSP", [toString(aa()), am], [AttachedPayment(Y(), gE)]) | |
1336 | - | if ((fT == fT)) | |
1337 | - | then (eV((aV() + gE)) ++ eK(eb, aZ())) | |
1338 | - | else throw("Strict value is not equal to itself.") | |
1339 | - | } | |
1340 | - | else throw("Strict value is not equal to itself.") | |
1341 | - | } | |
1342 | - | else { | |
1343 | - | let gb = invoke(Z(), "unlockNeutrino", [au(gE), toBase58String(Y())], nil) | |
1344 | - | if ((gb == gb)) | |
1345 | - | then { | |
1346 | - | let fU = invoke(ab(), "deposit", nil, [AttachedPayment(Y(), au(gE))]) | |
1347 | - | if ((fU == fU)) | |
1348 | - | then (eV((aV() - au(gE))) ++ eK(eb, aZ())) | |
1341 | + | let fW = invoke(ac(), "deposit", nil, [AttachedPayment(Z(), aw(gG))]) | |
1342 | + | if ((fW == fW)) | |
1343 | + | then (eX((aX() - aw(gG))) ++ eM(ed, bb())) | |
1349 | 1344 | else throw("Strict value is not equal to itself.") | |
1350 | 1345 | } | |
1351 | 1346 | else throw("Strict value is not equal to itself.") | |
1352 | 1347 | } | |
1353 | 1348 | } | |
1354 | 1349 | ||
1355 | 1350 | ||
1356 | 1351 | ||
1357 | - | @Callable(bs) | |
1358 | - | func v_get (bB) = { | |
1359 | - | let gF = dv(bB, false) | |
1360 | - | let cT = gF._1 | |
1361 | - | let cU = gF._2 | |
1362 | - | let cV = gF._3 | |
1363 | - | let gG = gF._4 | |
1364 | - | throw((((ap(cU) + ap(cV)) + ap(gG)) + ap(dn(bB)))) | |
1352 | + | @Callable(bu) | |
1353 | + | func migrateLiquidity () = { | |
1354 | + | let gH = aX() | |
1355 | + | let gd = invoke(aa(), "unlockNeutrino", [gH, toBase58String(Z())], nil) | |
1356 | + | if ((gd == gd)) | |
1357 | + | then { | |
1358 | + | let fV = invoke(ag(), "deposit", nil, [AttachedPayment(Z(), gH)]) | |
1359 | + | if ((fV == fV)) | |
1360 | + | then nil | |
1361 | + | else throw("Strict value is not equal to itself.") | |
1362 | + | } | |
1363 | + | else throw("Strict value is not equal to itself.") | |
1365 | 1364 | } | |
1366 | 1365 | ||
1367 | 1366 | ||
1368 | 1367 | ||
1369 | - | @Callable(bs) | |
1370 | - | func view_calcRemainMarginWithFundingPayment (bB) = { | |
1371 | - | let gH = bA(bB) | |
1372 | - | let bE = gH._1 | |
1373 | - | let db = gH._2 | |
1374 | - | let dk = gH._3 | |
1375 | - | let dd = gH._4 | |
1376 | - | let gI = cZ(bB, an) | |
1377 | - | let cQ = gI._1 | |
1378 | - | let cY = gI._2 | |
1379 | - | let gJ = cf(bE, db, dd, cY) | |
1380 | - | let co = gJ._1 | |
1381 | - | let cp = gJ._2 | |
1382 | - | let ck = gJ._3 | |
1383 | - | throw((((((ap(co) + ap(ck)) + ap(dn(bB))) + ap(cY)) + ap(cp)) + ap(cQ))) | |
1368 | + | @Callable(bu) | |
1369 | + | func v_get (bD) = { | |
1370 | + | let gI = dx(bD, false) | |
1371 | + | let cV = gI._1 | |
1372 | + | let cW = gI._2 | |
1373 | + | let cX = gI._3 | |
1374 | + | let gJ = gI._4 | |
1375 | + | throw((((ar(cW) + ar(cX)) + ar(gJ)) + ar(dp(bD)))) | |
1384 | 1376 | } | |
1385 | 1377 | ||
1386 | 1378 | ||
1387 | 1379 | ||
1388 | - | @Callable(bs) | |
1389 | - | func view_getPegAdjustCost (dX) = { | |
1390 | - | let ec = dW(dX) | |
1391 | - | throw(toString(ec._2)) | |
1380 | + | @Callable(bu) | |
1381 | + | func view_calcRemainMarginWithFundingPayment (bD) = { | |
1382 | + | let gK = bC(bD) | |
1383 | + | let bG = gK._1 | |
1384 | + | let dd = gK._2 | |
1385 | + | let dm = gK._3 | |
1386 | + | let df = gK._4 | |
1387 | + | let gL = db(bD, ap) | |
1388 | + | let cS = gL._1 | |
1389 | + | let da = gL._2 | |
1390 | + | let gM = ch(bG, dd, df, da) | |
1391 | + | let cq = gM._1 | |
1392 | + | let cr = gM._2 | |
1393 | + | let cm = gM._3 | |
1394 | + | throw((((((ar(cq) + ar(cm)) + ar(dp(bD))) + ar(da)) + ar(cr)) + ar(cS))) | |
1392 | 1395 | } | |
1393 | 1396 | ||
1394 | 1397 | ||
1395 | 1398 | ||
1396 | - | @Callable(bs) | |
1397 | - | func view_getFunding () = { | |
1398 | - | let ee = cz() | |
1399 | - | let gK = ed() | |
1400 | - | let eh = gK._1 | |
1401 | - | let ei = gK._2 | |
1402 | - | let gL = ar(ei, ee) | |
1403 | - | let gM = ar(eh, ee) | |
1404 | - | throw((((ap(gL) + ap(gM)) + ap(dG())) + ap(cz()))) | |
1399 | + | @Callable(bu) | |
1400 | + | func view_getPegAdjustCost (dZ) = { | |
1401 | + | let ee = dY(dZ) | |
1402 | + | throw(toString(ee._2)) | |
1405 | 1403 | } | |
1406 | 1404 | ||
1407 | 1405 | ||
1408 | - | @Verifier(gN) | |
1409 | - | func gO () = sigVerify(gN.bodyBytes, gN.proofs[0], X()) | |
1406 | + | ||
1407 | + | @Callable(bu) | |
1408 | + | func view_getFunding () = { | |
1409 | + | let eg = cB() | |
1410 | + | let gN = ef() | |
1411 | + | let ej = gN._1 | |
1412 | + | let ek = gN._2 | |
1413 | + | let gO = at(ek, eg) | |
1414 | + | let gP = at(ej, eg) | |
1415 | + | throw((((ar(gO) + ar(gP)) + ar(dI())) + ar(cB()))) | |
1416 | + | } | |
1417 | + | ||
1418 | + | ||
1419 | + | @Verifier(gQ) | |
1420 | + | func gR () = sigVerify(gQ.bodyBytes, gQ.proofs[0], Y()) | |
1410 | 1421 |
github/deemru/w8io/169f3d6 536.61 ms ◑