tx · FcLwNePbozB24xgNfDQk9aT57i1ao82nqXT1yUSSfQ9r 3Mp66Sufwhc33Wg9L4fWvD2GR729YxSQPCh: -0.07500000 Waves 2023.06.06 19:32 [2611053] smart account 3Mp66Sufwhc33Wg9L4fWvD2GR729YxSQPCh > SELF 0.00000000 Waves
{ "type": 13, "id": "FcLwNePbozB24xgNfDQk9aT57i1ao82nqXT1yUSSfQ9r", "fee": 7500000, "feeAssetId": null, "timestamp": 1686069138095, "version": 2, "chainId": 84, "sender": "3Mp66Sufwhc33Wg9L4fWvD2GR729YxSQPCh", "senderPublicKey": "42U12q4TTBTVkhjqmAhNWDrxkFhHrg9yFuNjqqg5mF8G", "proofs": [ "2XtLsKaF6seELZCwRAj8v2S6FAaxzK3aSHAuMcfqQvQn1u8J1kSrxRGPGw3W8WtZ6n2e9T9uuhCU8vwf5vveEua3" ], "script": "base64:BgKOAQgCEgASABIAEgASAwoBARIRCg8BAQEBAQEBAQEBAQEBAQESFgoUAQEBAQEBAQgICAEBAQEBAQEBAQESBwoFAQEBCAgSBAoCAQgSBQoDAQEIEgcKBQEBAQQIEgUKAwgBCBIDCgEIEgMKAQgSABIAEgMKAQgSBQoDCAEIEgMKAQESABIDCgEIEgASBAoCCAi2AQAMa19iYXNlT3JhY2xlAgxrX2Jhc2VPcmFjbGUADWtfcXVvdGVPcmFjbGUCDWtfcXVvdGVPcmFjbGUACWtfYmFsYW5jZQIJa19iYWxhbmNlAAprX3NlcXVlbmNlAgprX3NlcXVlbmNlAA5rX3Bvc2l0aW9uU2l6ZQIOa19wb3NpdGlvblNpemUAEGtfcG9zaXRpb25NYXJnaW4CEGtfcG9zaXRpb25NYXJnaW4AFmtfcG9zaXRpb25PcGVuTm90aW9uYWwCFmtfcG9zaXRpb25PcGVuTm90aW9uYWwALmtfcG9zaXRpb25MYXN0VXBkYXRlZEN1bXVsYXRpdmVQcmVtaXVtRnJhY3Rpb24CEmtfcG9zaXRpb25GcmFjdGlvbgASa19wb3NpdGlvblNlcX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JUcmFkZXJXaXRoQXJ0aWZhY3QCB190cmFkZXILX2FydGlmYWN0SWQEBnJlc3VsdAkBGGdldEZvclRyYWRlcldpdGhBcnRpZmFjdAIFB190cmFkZXIFC19hcnRpZmFjdElkCQCUCgIFA25pbAUGcmVzdWx0AQJ0eAEGdmVyaWZ5AAQOY29vcmRpbmF0b3JTdHIJAJ0IAgUEdGhpcwUUa19jb29yZGluYXRvckFkZHJlc3MDCQEJaXNEZWZpbmVkAQUOY29vcmRpbmF0b3JTdHIEBWFkbWluCQCdCAIJARFAZXh0ck5hdGl2ZSgxMDYyKQEJAQV2YWx1ZQEFDmNvb3JkaW5hdG9yU3RyBQ9rX2FkbWluX2FkZHJlc3MDCQEJaXNEZWZpbmVkAQUFYWRtaW4JAQt2YWx1ZU9yRWxzZQIJAJsIAgkBEUBleHRyTmF0aXZlKDEwNjIpAQkBBXZhbHVlAQUFYWRtaW4JAKwCAgkArAICCQCsAgICB3N0YXR1c18JAKUIAQUEdGhpcwIBXwkA2AQBCAUCdHgCaWQHCQACAQIudW5hYmxlIHRvIHZlcmlmeTogYWRtaW4gbm90IHNldCBpbiBjb29yZGluYXRvcgkA9AMDCAUCdHgJYm9keUJ5dGVzCQCRAwIIBQJ0eAZwcm9vZnMAAAgFAnR4D3NlbmRlclB1YmxpY0tleYs4L3Y=", "height": 2611053, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 7KQw4kh2beZiNBzh6oaNLRYC1knFuaJ59iyMs67ue238 Next: BvYw8xmpLP8fKhebHb1R1QFNqwQDdkaLzEUNVwiBSVc2 Diff:
Old | New | Differences | |
---|---|---|---|
217 | 217 | func aU () = aN(c) | |
218 | 218 | ||
219 | 219 | ||
220 | - | func aV () = | |
220 | + | func aV () = aP(c, 0) | |
221 | 221 | ||
222 | 222 | ||
223 | - | func aW () = aN( | |
223 | + | func aW () = aN(o) | |
224 | 224 | ||
225 | 225 | ||
226 | - | func aX () = aN( | |
226 | + | func aX () = aN(p) | |
227 | 227 | ||
228 | 228 | ||
229 | - | func aY () = aN( | |
229 | + | func aY () = aN(r) | |
230 | 230 | ||
231 | 231 | ||
232 | - | func aZ () = aN( | |
232 | + | func aZ () = aN(I) | |
233 | 233 | ||
234 | 234 | ||
235 | - | func ba () = aP( | |
235 | + | func ba () = aP(I, 0) | |
236 | 236 | ||
237 | 237 | ||
238 | - | func bb () = | |
238 | + | func bb () = aN(J) | |
239 | 239 | ||
240 | 240 | ||
241 | - | func bc () = | |
241 | + | func bc () = aP(J, 0) | |
242 | 242 | ||
243 | 243 | ||
244 | - | func bd () = | |
244 | + | func bd () = aP(K, av) | |
245 | 245 | ||
246 | 246 | ||
247 | - | func be () = | |
247 | + | func be () = aP(L, av) | |
248 | 248 | ||
249 | 249 | ||
250 | - | func bf () = aN( | |
250 | + | func bf () = aN(M) | |
251 | 251 | ||
252 | 252 | ||
253 | - | func bg () = aN( | |
253 | + | func bg () = aN(P) | |
254 | 254 | ||
255 | 255 | ||
256 | - | func bh () = aN( | |
256 | + | func bh () = aN(Q) | |
257 | 257 | ||
258 | 258 | ||
259 | - | func bi () = ( | |
259 | + | func bi () = aN(R) | |
260 | 260 | ||
261 | 261 | ||
262 | - | func bj () = ( | |
262 | + | func bj () = aN(F) | |
263 | 263 | ||
264 | 264 | ||
265 | - | func bk () = aN( | |
265 | + | func bk () = aN(q) | |
266 | 266 | ||
267 | 267 | ||
268 | - | func bl () = | |
268 | + | func bl () = (bk() * av) | |
269 | 269 | ||
270 | 270 | ||
271 | - | func bm () = | |
271 | + | func bm () = (bk() * at) | |
272 | 272 | ||
273 | 273 | ||
274 | - | func bn () = aN( | |
274 | + | func bn () = aN(s) | |
275 | 275 | ||
276 | 276 | ||
277 | - | func bo () = aN( | |
277 | + | func bo () = aN(t) | |
278 | 278 | ||
279 | 279 | ||
280 | - | func bp () = aN( | |
280 | + | func bp () = aN(u) | |
281 | 281 | ||
282 | 282 | ||
283 | - | func bq () = aN( | |
283 | + | func bq () = aN(v) | |
284 | 284 | ||
285 | 285 | ||
286 | - | func br () = aN( | |
286 | + | func br () = aN(w) | |
287 | 287 | ||
288 | 288 | ||
289 | - | func bs () = aN( | |
289 | + | func bs () = aN(x) | |
290 | 290 | ||
291 | 291 | ||
292 | - | func bt () = aN( | |
292 | + | func bt () = aN(y) | |
293 | 293 | ||
294 | 294 | ||
295 | - | func bu () = aN( | |
295 | + | func bu () = aN(D) | |
296 | 296 | ||
297 | 297 | ||
298 | - | func bv () = | |
298 | + | func bv () = aN(E) | |
299 | 299 | ||
300 | 300 | ||
301 | - | func bw () = aN( | |
301 | + | func bw () = aN(O) | |
302 | 302 | ||
303 | 303 | ||
304 | - | func bx () = aN( | |
304 | + | func bx () = aN(N) | |
305 | 305 | ||
306 | 306 | ||
307 | - | func by () = aP( | |
307 | + | func by () = aP(d, 0) | |
308 | 308 | ||
309 | 309 | ||
310 | - | func bz () = | |
310 | + | func bz () = aN(z) | |
311 | 311 | ||
312 | 312 | ||
313 | - | func bA () = | |
313 | + | func bA () = aN(A) | |
314 | 314 | ||
315 | 315 | ||
316 | - | func bB ( | |
316 | + | func bB () = aP(B, aA) | |
317 | 317 | ||
318 | 318 | ||
319 | - | func bD (bE,bF,bG) = { | |
320 | - | let bH = (bE - bF) | |
321 | - | if (if (bG) | |
322 | - | then (0 > bH) | |
319 | + | func bC () = aP(C, aC) | |
320 | + | ||
321 | + | ||
322 | + | func bD () = lastBlock.timestamp | |
323 | + | ||
324 | + | ||
325 | + | func bE (bF) = valueOrElse(getString(al(), "k_sender"), toString(bF.caller)) | |
326 | + | ||
327 | + | ||
328 | + | func bG (bH,bI,bJ) = { | |
329 | + | let bK = (bH - bI) | |
330 | + | if (if (bJ) | |
331 | + | then (0 > bK) | |
323 | 332 | else false) | |
324 | - | then throw(((("Invalid margin: " + toString( | |
325 | - | else if (if (!( | |
326 | - | then ( | |
333 | + | then throw(((("Invalid margin: " + toString(bH)) + " < ") + toString(bI))) | |
334 | + | else if (if (!(bJ)) | |
335 | + | then (bK >= 0) | |
327 | 336 | else false) | |
328 | - | then throw(((("Invalid margin: " + toString( | |
337 | + | then throw(((("Invalid margin: " + toString(bH)) + " > ") + toString(bI))) | |
329 | 338 | else true | |
330 | 339 | } | |
331 | 340 | ||
332 | 341 | ||
333 | - | func | |
342 | + | func bL (bM) = if ((bM == 0)) | |
334 | 343 | then throw("Should not be called with _positionSize == 0") | |
335 | - | else if (( | |
336 | - | then | |
337 | - | else | |
344 | + | else if ((bM > 0)) | |
345 | + | then bu() | |
346 | + | else bv() | |
338 | 347 | ||
339 | 348 | ||
340 | - | func | |
341 | - | let | |
342 | - | let | |
343 | - | let | |
344 | - | if ($isInstanceOf( | |
349 | + | func bN (bO,bP) = { | |
350 | + | let bQ = ((bO + "_") + toString(bP)) | |
351 | + | let bR = getInteger(this, ac(e, bQ)) | |
352 | + | let bS = bR | |
353 | + | if ($isInstanceOf(bS, "Int")) | |
345 | 354 | then { | |
346 | - | let | |
347 | - | $Tuple5( | |
355 | + | let bT = bS | |
356 | + | $Tuple5(bT, getIntegerValue(this, ac(f, bQ)), getIntegerValue(this, ac(g, bQ)), getIntegerValue(this, ac(h, bQ)), getIntegerValue(this, ac(k, bQ))) | |
348 | 357 | } | |
349 | 358 | else $Tuple5(0, 0, 0, 0, 0) | |
350 | 359 | } | |
351 | 360 | ||
352 | 361 | ||
353 | - | func | |
362 | + | func bU (bM) = if ((0 > bM)) | |
354 | 363 | then as | |
355 | 364 | else ar | |
356 | 365 | ||
357 | 366 | ||
358 | - | func | |
359 | - | let | |
360 | - | let | |
361 | - | let | |
362 | - | if ($isInstanceOf( | |
367 | + | func bV (bO,bP) = { | |
368 | + | let bQ = ((bO + "_") + toString(bP)) | |
369 | + | let bW = getInteger(this, ac(j, bQ)) | |
370 | + | let bS = bW | |
371 | + | if ($isInstanceOf(bS, "Int")) | |
363 | 372 | then { | |
364 | - | let | |
365 | - | | |
373 | + | let bX = bS | |
374 | + | bX | |
366 | 375 | } | |
367 | - | else | |
376 | + | else aW() | |
368 | 377 | } | |
369 | 378 | ||
370 | 379 | ||
371 | - | func | |
380 | + | func bY (bO,bP) = if ((bN(bO, bP)._1 == 0)) | |
372 | 381 | then throw("No open position") | |
373 | 382 | else true | |
374 | 383 | ||
375 | 384 | ||
376 | - | func | |
377 | - | let | |
378 | - | if (if (isDefined( | |
379 | - | then (value( | |
385 | + | func bZ (ca) = { | |
386 | + | let cb = getString(this, ca) | |
387 | + | if (if (isDefined(cb)) | |
388 | + | then (value(cb) != "") | |
380 | 389 | else false) | |
381 | 390 | then { | |
382 | - | let | |
383 | - | let | |
384 | - | let | |
385 | - | let | |
386 | - | let | |
387 | - | $Tuple4( | |
391 | + | let cc = split(value(cb), ",") | |
392 | + | let cd = valueOrErrorMessage(addressFromString(cc[0]), ("Invalid oracle address in: " + value(cb))) | |
393 | + | let ce = cc[1] | |
394 | + | let cf = cc[2] | |
395 | + | let cg = cc[3] | |
396 | + | $Tuple4(cd, ce, cf, cg) | |
388 | 397 | } | |
389 | 398 | else unit | |
390 | 399 | } | |
391 | 400 | ||
392 | 401 | ||
393 | - | func | |
402 | + | func ch () = valueOrElse(getBoolean(this, l), false) | |
394 | 403 | ||
395 | 404 | ||
396 | - | func | |
405 | + | func ci () = valueOrElse(getBoolean(this, m), false) | |
397 | 406 | ||
398 | 407 | ||
399 | - | func | |
408 | + | func cj () = valueOrElse(getBoolean(this, n), false) | |
400 | 409 | ||
401 | 410 | ||
402 | - | func | |
411 | + | func ck (cl,cm,cn) = if (cl) | |
403 | 412 | then { | |
404 | - | let | |
405 | - | if ((0 >= | |
413 | + | let co = (bb() - cn) | |
414 | + | if ((0 >= co)) | |
406 | 415 | then throw("Tx lead to base asset reserve <= 0, revert") | |
407 | - | else $Tuple3(( | |
416 | + | else $Tuple3((aZ() + cm), co, (bf() + cn)) | |
408 | 417 | } | |
409 | 418 | else { | |
410 | - | let | |
411 | - | if ((0 >= | |
419 | + | let cp = (aZ() - cm) | |
420 | + | if ((0 >= cp)) | |
412 | 421 | then throw("Tx lead to base quote reserve <= 0, revert") | |
413 | - | else $Tuple3( | |
422 | + | else $Tuple3(cp, (bb() + cn), (bf() - cn)) | |
414 | 423 | } | |
415 | 424 | ||
416 | 425 | ||
417 | - | func | |
418 | - | let | |
419 | - | let | |
420 | - | aK( | |
426 | + | func cq (cr,cs) = { | |
427 | + | let ct = toBigInt(cr) | |
428 | + | let cu = toBigInt(cs) | |
429 | + | aK(ct, cu) | |
421 | 430 | } | |
422 | 431 | ||
423 | 432 | ||
424 | - | func | |
425 | - | let | |
426 | - | let | |
427 | - | let | |
428 | - | let | |
429 | - | let | |
430 | - | let aO = | |
431 | - | let | |
432 | - | then ( | |
433 | - | else ( | |
434 | - | let | |
435 | - | let | |
436 | - | let | |
437 | - | then | |
438 | - | else -( | |
439 | - | let | |
440 | - | let | |
441 | - | let | |
442 | - | let | |
443 | - | let | |
444 | - | let | |
445 | - | let | |
446 | - | let | |
447 | - | let | |
448 | - | if (( | |
449 | - | then throw(((((((((((((("Price impact " + toString( | |
450 | - | else $Tuple4( | |
433 | + | func cv (cl,cm) = { | |
434 | + | let cr = aZ() | |
435 | + | let cs = bb() | |
436 | + | let cw = bd() | |
437 | + | let cx = be() | |
438 | + | let cy = aG(cm, cw) | |
439 | + | let aO = cq(cr, cs) | |
440 | + | let cz = if (cl) | |
441 | + | then (cr + cy) | |
442 | + | else (cr - cy) | |
443 | + | let cA = toInt(aJ(aO, toBigInt(cz))) | |
444 | + | let cB = aL((cA - cs)) | |
445 | + | let cC = if (cl) | |
446 | + | then cB | |
447 | + | else -(cB) | |
448 | + | let cD = ck(cl, cy, cB) | |
449 | + | let cE = cD._1 | |
450 | + | let cF = cD._2 | |
451 | + | let cG = cD._3 | |
452 | + | let cH = aG(aI(cr, cw), aI(cs, cx)) | |
453 | + | let cI = aG(cm, cB) | |
454 | + | let cJ = aL((cH - cI)) | |
455 | + | let cK = (av - aG(cH, (cH + cJ))) | |
456 | + | let cL = br() | |
457 | + | if ((cK > cL)) | |
458 | + | then throw(((((((((((((("Price impact " + toString(cK)) + " > max price impact ") + toString(cL)) + " before quote asset: ") + toString(cr)) + " before base asset: ") + toString(cs)) + " quote asset amount to exchange: ") + toString(cm)) + " price before: ") + toString(cH)) + " marketPrice: ") + toString(cI))) | |
459 | + | else $Tuple4(cC, cE, cF, cG) | |
451 | 460 | } | |
452 | 461 | ||
453 | 462 | ||
454 | - | func | |
455 | - | let | |
456 | - | let | |
457 | - | | |
463 | + | func cM (cN,cO) = { | |
464 | + | let cP = ((((bD() - cO) / 1000) / 60) * av) | |
465 | + | let cQ = aG(aI(aI(cN, cP), aX()), aw) | |
466 | + | cQ | |
458 | 467 | } | |
459 | 468 | ||
460 | 469 | ||
461 | - | func | |
462 | - | let | |
470 | + | func cR (cS,cN,cT,cO,cU) = { | |
471 | + | let cV = if ((cS != 0)) | |
463 | 472 | then { | |
464 | - | let | |
465 | - | aI(( | |
473 | + | let cW = bL(cS) | |
474 | + | aI((cW - cT), cS) | |
466 | 475 | } | |
467 | 476 | else 0 | |
468 | - | let | |
469 | - | let | |
470 | - | let | |
471 | - | then $Tuple2(0, aL( | |
472 | - | else $Tuple2(aL( | |
473 | - | let | |
474 | - | let | |
475 | - | $Tuple4( | |
477 | + | let cQ = cM(cN, cO) | |
478 | + | let cX = (((cU - cQ) - cV) + cN) | |
479 | + | let cY = if ((0 > cX)) | |
480 | + | then $Tuple2(0, aL(cX)) | |
481 | + | else $Tuple2(aL(cX), 0) | |
482 | + | let cZ = cY._1 | |
483 | + | let da = cY._2 | |
484 | + | $Tuple4(cZ, da, cV, cQ) | |
476 | 485 | } | |
477 | 486 | ||
478 | 487 | ||
479 | - | func | |
480 | - | let | |
481 | - | if (( | |
488 | + | func db (cl,cn,dc,dd,de,df,dg) = { | |
489 | + | let cH = aG(aI(dd, de), aI(df, dg)) | |
490 | + | if ((cn == 0)) | |
482 | 491 | then throw("Invalid base asset amount") | |
483 | 492 | else { | |
484 | - | let aO = | |
485 | - | let | |
486 | - | then ( | |
487 | - | else ( | |
488 | - | let | |
489 | - | let | |
490 | - | let | |
491 | - | let | |
492 | - | let | |
493 | - | let | |
494 | - | let | |
495 | - | let | |
496 | - | let | |
497 | - | let | |
498 | - | let | |
499 | - | if (if (( | |
500 | - | then | |
493 | + | let aO = cq(dd, df) | |
494 | + | let dh = if (cl) | |
495 | + | then (df + cn) | |
496 | + | else (df - cn) | |
497 | + | let di = toInt(aJ(aO, toBigInt(dh))) | |
498 | + | let dj = aL((di - dd)) | |
499 | + | let dk = aI(dj, de) | |
500 | + | let cL = br() | |
501 | + | let dl = ck(!(cl), dj, cn) | |
502 | + | let cE = dl._1 | |
503 | + | let cF = dl._2 | |
504 | + | let cG = dl._3 | |
505 | + | let cI = aG(dk, cn) | |
506 | + | let cJ = aL((cH - cI)) | |
507 | + | let cK = (av - aG(cH, (cH + cJ))) | |
508 | + | if (if ((cK > cL)) | |
509 | + | then dc | |
501 | 510 | else false) | |
502 | - | then throw(((((((((((((("Price impact " + toString( | |
503 | - | else $Tuple7( | |
504 | - | then aL( | |
505 | - | else 0)), ( | |
506 | - | then aL( | |
507 | - | else 0)), | |
511 | + | then throw(((((((((((((("Price impact " + toString(cK)) + " > max price impact ") + toString(cL)) + " before quote asset: ") + toString(dd)) + " before base asset: ") + toString(df)) + " base asset amount to exchange: ") + toString(cn)) + " price before: ") + toString(cH)) + " market price: ") + toString(cI))) | |
512 | + | else $Tuple7(dk, cE, cF, cG, (bx() - (if (cl) | |
513 | + | then aL(cn) | |
514 | + | else 0)), (bw() - (if (!(cl)) | |
515 | + | then aL(cn) | |
516 | + | else 0)), cK) | |
508 | 517 | } | |
509 | 518 | } | |
510 | 519 | ||
511 | 520 | ||
512 | - | func | |
521 | + | func dm (cl,cn,dc) = db(cl, cn, dc, aZ(), bd(), bb(), be()) | |
513 | 522 | ||
514 | 523 | ||
515 | - | func | |
516 | - | let | |
517 | - | if (( | |
524 | + | func dn (do,ce,cf) = { | |
525 | + | let dp = valueOrErrorMessage(getInteger(do, ce), ((("Can not get oracle price. Oracle: " + toString(do)) + " key: ") + ce)) | |
526 | + | if ((cf != "")) | |
518 | 527 | then { | |
519 | - | let | |
520 | - | let | |
521 | - | if ((( | |
522 | - | then throw(((("Oracle stale data. Last oracle block: " + toString( | |
523 | - | else | |
528 | + | let dq = height | |
529 | + | let dr = valueOrErrorMessage(getInteger(do, cf), ((("Can not get oracle block. Oracle: " + toString(do)) + " key: ") + cf)) | |
530 | + | if (((dq - dr) > bA())) | |
531 | + | then throw(((("Oracle stale data. Last oracle block: " + toString(dr)) + " current block: ") + toString(dq))) | |
532 | + | else dp | |
524 | 533 | } | |
525 | - | else | |
534 | + | else dp | |
526 | 535 | } | |
527 | 536 | ||
528 | 537 | ||
529 | - | func | |
530 | - | let | |
531 | - | let | |
532 | - | let | |
533 | - | let | |
538 | + | func ds () = { | |
539 | + | let dt = valueOrErrorMessage(bZ(a), "No base asset oracle data") | |
540 | + | let du = dn(dt._1, dt._2, dt._3) | |
541 | + | let dv = bZ(b) | |
542 | + | let dw = if (isDefined(dv)) | |
534 | 543 | then { | |
535 | - | let | |
536 | - | | |
544 | + | let dx = value(dv) | |
545 | + | dn(dx._1, dx._2, dx._3) | |
537 | 546 | } | |
538 | 547 | else av | |
539 | - | aG( | |
548 | + | aG(du, dw) | |
540 | 549 | } | |
541 | 550 | ||
542 | 551 | ||
543 | - | func | |
544 | - | let | |
545 | - | let | |
546 | - | let | |
547 | - | if (( | |
552 | + | func dy () = { | |
553 | + | let dt = valueOrErrorMessage(bZ(a), "No base asset oracle data") | |
554 | + | let do = dt._1 | |
555 | + | let cg = dt._4 | |
556 | + | if ((cg != "")) | |
548 | 557 | then { | |
549 | - | let | |
550 | - | !( | |
558 | + | let dz = valueOrErrorMessage(getBoolean(do, cg), ((("Can not get oracle is open/closed. Oracle: " + toString(do)) + " key: ") + cg)) | |
559 | + | !(dz) | |
551 | 560 | } | |
552 | 561 | else false | |
553 | 562 | } | |
554 | 563 | ||
555 | 564 | ||
556 | - | func | |
557 | - | let | |
558 | - | let | |
559 | - | let | |
560 | - | | |
565 | + | func dA (dB,dd,df,cw,cx) = { | |
566 | + | let dC = aG(aI(dd, cw), aI(df, cx)) | |
567 | + | let dD = aG((dB + dC), (2 * av)) | |
568 | + | let dA = aG(aL((dB - dC)), dD) | |
569 | + | dA | |
561 | 570 | } | |
562 | 571 | ||
563 | 572 | ||
564 | - | func | |
565 | - | let | |
566 | - | let | |
567 | - | let | |
568 | - | let | |
569 | - | let | |
570 | - | if (if (( | |
571 | - | then ( | |
573 | + | func dE (dd,df) = { | |
574 | + | let dF = ds() | |
575 | + | let cw = bd() | |
576 | + | let cx = be() | |
577 | + | let dG = dA(dF, aZ(), bb(), cw, cx) | |
578 | + | let dH = dA(dF, dd, df, cw, cx) | |
579 | + | if (if ((dH > bs())) | |
580 | + | then (dH > dG) | |
572 | 581 | else false) | |
573 | - | then throw(((("Price spread " + toString( | |
582 | + | then throw(((("Price spread " + toString(dH)) + " > max price spread ") + toString(bs()))) | |
574 | 583 | else true | |
575 | 584 | } | |
576 | 585 | ||
577 | 586 | ||
578 | - | func | |
579 | - | let | |
580 | - | if (( | |
581 | - | then throw(((("Long open notional " + toString( | |
582 | - | else if (( | |
583 | - | then throw(((("Short open notional " + toString( | |
587 | + | func dI (dJ,dK) = { | |
588 | + | let dL = bt() | |
589 | + | if ((dJ > dL)) | |
590 | + | then throw(((("Long open notional " + toString(dJ)) + " > max open notional ") + toString(dL))) | |
591 | + | else if ((dK > dL)) | |
592 | + | then throw(((("Short open notional " + toString(dK)) + " > max open notional ") + toString(dL))) | |
584 | 593 | else true | |
585 | 594 | } | |
586 | 595 | ||
587 | 596 | ||
588 | - | func | |
589 | - | let | |
590 | - | let | |
591 | - | let | |
592 | - | let | |
593 | - | aG(aI( | |
597 | + | func dM () = { | |
598 | + | let dd = aZ() | |
599 | + | let df = bb() | |
600 | + | let cw = bd() | |
601 | + | let cx = be() | |
602 | + | aG(aI(dd, cw), aI(df, cx)) | |
594 | 603 | } | |
595 | 604 | ||
596 | 605 | ||
597 | - | func | |
598 | - | let | |
599 | - | let | |
600 | - | (aG(aL(( | |
606 | + | func dN () = { | |
607 | + | let dF = ds() | |
608 | + | let dO = dM() | |
609 | + | (aG(aL((dF - dO)), dF) > bq()) | |
601 | 610 | } | |
602 | 611 | ||
603 | 612 | ||
604 | - | func | |
605 | - | let | |
606 | - | let | |
607 | - | let | |
613 | + | func dP (bM,dQ,dd,de,df,dg) = { | |
614 | + | let dR = aL(bM) | |
615 | + | let dS = (0 > bM) | |
616 | + | let dT = if ((dQ == ay)) | |
608 | 617 | then { | |
609 | - | let | |
610 | - | | |
618 | + | let dU = db(!(dS), dR, false, dd, de, df, dg)._1 | |
619 | + | dU | |
611 | 620 | } | |
612 | - | else aI( | |
613 | - | | |
621 | + | else aI(dR, ds()) | |
622 | + | dT | |
614 | 623 | } | |
615 | 624 | ||
616 | 625 | ||
617 | - | func | |
626 | + | func dV (bM,dW,dd,de,df,dg,dQ) = if ((bM == 0)) | |
618 | 627 | then throw("Invalid position size") | |
619 | 628 | else { | |
620 | - | let | |
621 | - | let | |
622 | - | let | |
623 | - | then ( | |
624 | - | else ( | |
625 | - | $Tuple2( | |
629 | + | let dS = (0 > bM) | |
630 | + | let dT = dP(bM, dQ, dd, de, df, dg) | |
631 | + | let dX = if (dS) | |
632 | + | then (dW - dT) | |
633 | + | else (dT - dW) | |
634 | + | $Tuple2(dT, dX) | |
626 | 635 | } | |
627 | 636 | ||
628 | 637 | ||
629 | - | func | |
630 | - | let | |
631 | - | let | |
632 | - | let | |
633 | - | let | |
634 | - | let | |
635 | - | | |
638 | + | func dY (bO,bP,dQ) = { | |
639 | + | let dZ = bN(bO, bP) | |
640 | + | let bT = dZ._1 | |
641 | + | let ea = dZ._2 | |
642 | + | let eb = dZ._3 | |
643 | + | let ec = dZ._4 | |
644 | + | dV(bT, eb, aZ(), bd(), bb(), be(), dQ) | |
636 | 645 | } | |
637 | 646 | ||
638 | 647 | ||
639 | - | func | |
648 | + | func ed (ee,ef,eg) = aG((ee - ef), eg) | |
640 | 649 | ||
641 | 650 | ||
642 | - | func | |
643 | - | let | |
644 | - | let | |
645 | - | let | |
646 | - | let | |
647 | - | let | |
648 | - | let | |
649 | - | let | |
650 | - | let | |
651 | - | let | |
652 | - | let | |
653 | - | let | |
654 | - | let | |
655 | - | | |
651 | + | func eh (bO,bP,dQ) = { | |
652 | + | let ei = bN(bO, bP) | |
653 | + | let bT = ei._1 | |
654 | + | let ea = ei._2 | |
655 | + | let ej = ei._3 | |
656 | + | let ek = ei._4 | |
657 | + | let el = ei._5 | |
658 | + | let em = dY(bO, bP, dQ) | |
659 | + | let dT = em._1 | |
660 | + | let dX = em._2 | |
661 | + | let en = cR(bT, ea, ek, el, dX) | |
662 | + | let cZ = en._1 | |
663 | + | let da = en._2 | |
664 | + | ed(cZ, da, dT) | |
656 | 665 | } | |
657 | 666 | ||
658 | 667 | ||
659 | - | func | |
668 | + | func eo (bO,bP) = eh(bO, bP, ay) | |
660 | 669 | ||
661 | 670 | ||
662 | - | func | |
663 | - | let | |
664 | - | let | |
665 | - | let | |
666 | - | let | |
667 | - | let | |
668 | - | if (( | |
669 | - | then | |
670 | - | else aI(aL( | |
671 | + | func ep (bO,bM) = { | |
672 | + | let eq = aM(bp(), (av - aG(eo(bO, bU(bM)), bn()))) | |
673 | + | let er = aI(aL(bM), eq) | |
674 | + | let es = dm((bM > 0), er, false) | |
675 | + | let et = es._1 | |
676 | + | let cK = es._7 | |
677 | + | if ((br() > cK)) | |
678 | + | then er | |
679 | + | else aI(aL(bM), bp()) | |
671 | 680 | } | |
672 | 681 | ||
673 | 682 | ||
674 | - | func | |
675 | - | let | |
676 | - | let | |
677 | - | let | |
678 | - | let | |
679 | - | let | |
680 | - | let | |
681 | - | let | |
682 | - | let | |
683 | - | if (if (( | |
684 | - | then ( | |
683 | + | func eu (bO,bP,ev,ew,ex,ey,dc,ez) = { | |
684 | + | let eA = bN(bO, bP) | |
685 | + | let eB = eA._1 | |
686 | + | let eC = eA._2 | |
687 | + | let eD = eA._3 | |
688 | + | let eE = eA._4 | |
689 | + | let eF = eA._5 | |
690 | + | let eG = (eB > 0) | |
691 | + | let eH = aL(eB) | |
692 | + | if (if ((eH >= ev)) | |
693 | + | then (ev > 0) | |
685 | 694 | else false) | |
686 | 695 | then { | |
687 | - | let | |
688 | - | let | |
689 | - | let | |
690 | - | let | |
691 | - | let | |
692 | - | let | |
693 | - | let | |
694 | - | then -( | |
695 | - | else | |
696 | - | let | |
697 | - | let | |
698 | - | let | |
699 | - | let | |
700 | - | let | |
701 | - | let | |
702 | - | let | |
703 | - | let | |
704 | - | let | |
705 | - | let | |
706 | - | let | |
707 | - | let | |
708 | - | let | |
709 | - | let | |
710 | - | then (( | |
711 | - | else (( | |
712 | - | let | |
713 | - | let | |
696 | + | let eI = (eH > ev) | |
697 | + | let eJ = dm((eB > 0), ev, dc) | |
698 | + | let eK = eJ._1 | |
699 | + | let cz = eJ._2 | |
700 | + | let cA = eJ._3 | |
701 | + | let eL = eJ._4 | |
702 | + | let eM = if ((eB > 0)) | |
703 | + | then -(ev) | |
704 | + | else ev | |
705 | + | let eN = dY(bO, bP, ay) | |
706 | + | let eO = eN._1 | |
707 | + | let dX = eN._2 | |
708 | + | let eP = aG(aL(eM), eH) | |
709 | + | let eQ = aI(dX, eP) | |
710 | + | let eR = cR(eB, eC, eE, eF, dX) | |
711 | + | let eS = eR._1 | |
712 | + | let eT = eR._2 | |
713 | + | let eU = eR._3 | |
714 | + | let cQ = eR._4 | |
715 | + | let eV = cR(eB, eC, eE, eF, eQ)._2 | |
716 | + | let eW = aI(aI(eO, eP), ew) | |
717 | + | let eX = (dX - eQ) | |
718 | + | let eY = if ((eB > 0)) | |
719 | + | then ((eO - eK) - eX) | |
720 | + | else ((eX + eO) - eK) | |
721 | + | let eZ = (eB + eM) | |
722 | + | let fa = if ((eZ == 0)) | |
714 | 723 | then $Tuple2(0, 0) | |
715 | - | else $Tuple2(aL( | |
716 | - | let | |
717 | - | let | |
718 | - | let | |
719 | - | let | |
720 | - | let | |
721 | - | then (aI(( | |
722 | - | else (aI(( | |
723 | - | let | |
724 | - | let | |
725 | - | then if ( | |
724 | + | else $Tuple2(aL(eY), bL(eZ)) | |
725 | + | let fb = fa._1 | |
726 | + | let fc = fa._2 | |
727 | + | let fd = (eD - fb) | |
728 | + | let fe = eh(bO, bP, ay) | |
729 | + | let ff = if ((eB > 0)) | |
730 | + | then (aI((fb + eX), fe) - eX) | |
731 | + | else (aI((fb - eX), fe) - eX) | |
732 | + | let fg = ((eS - (ff + eX)) - eW) | |
733 | + | let fh = if ((0 > fg)) | |
734 | + | then if (ez) | |
726 | 735 | then 0 | |
727 | 736 | else throw("Invalid internalClosePosition params: unable to pay fee") | |
728 | - | else | |
729 | - | let | |
730 | - | then ( | |
731 | - | else | |
732 | - | if (if (( | |
733 | - | then ( | |
737 | + | else fg | |
738 | + | let fi = if (ey) | |
739 | + | then (ff + fh) | |
740 | + | else ff | |
741 | + | if (if ((ex != 0)) | |
742 | + | then (ex > eK) | |
734 | 743 | else false) | |
735 | - | then throw(((("Limit error: " + toString( | |
736 | - | else $Tuple17( | |
737 | - | then | |
744 | + | then throw(((("Limit error: " + toString(eK)) + " < ") + toString(ex))) | |
745 | + | else $Tuple17(eZ, fi, fb, fc, eV, eQ, if (if (ey) | |
746 | + | then eI | |
738 | 747 | else false) | |
739 | 748 | then 0 | |
740 | - | else | |
741 | - | then aL( | |
742 | - | else 0)), ( | |
743 | - | then aL( | |
744 | - | else 0)), ( | |
745 | - | then | |
746 | - | else 0)), ( | |
747 | - | then | |
748 | - | else 0)), ( | |
749 | + | else fh, cz, cA, eL, (bg() - fd), (bx() - (if (eG) | |
750 | + | then aL(eM) | |
751 | + | else 0)), (bw() - (if (!(eG)) | |
752 | + | then aL(eM) | |
753 | + | else 0)), (bi() - (if (eG) | |
754 | + | then fd | |
755 | + | else 0)), (bh() - (if (!(eG)) | |
756 | + | then fd | |
757 | + | else 0)), (eW + cQ), eK) | |
749 | 758 | } | |
750 | - | else throw(((("Invalid internalClosePosition params: invalid position size: " + toString( | |
759 | + | else throw(((("Invalid internalClosePosition params: invalid position size: " + toString(ev)) + " max: ") + toString(eH))) | |
751 | 760 | } | |
752 | 761 | ||
753 | 762 | ||
754 | - | func | |
755 | - | let | |
756 | - | if (( | |
757 | - | then $Tuple2( | |
763 | + | func fj () = { | |
764 | + | let bM = bf() | |
765 | + | if ((bM == 0)) | |
766 | + | then $Tuple2(aZ(), bb()) | |
758 | 767 | else { | |
759 | - | let | |
760 | - | let | |
761 | - | let | |
762 | - | let | |
763 | - | let | |
764 | - | $Tuple2( | |
768 | + | let fk = (bM > 0) | |
769 | + | let fl = dm(fk, aL(bM), false) | |
770 | + | let fm = fl._1 | |
771 | + | let fn = fl._2 | |
772 | + | let fo = fl._3 | |
773 | + | $Tuple2(fn, fo) | |
765 | 774 | } | |
766 | 775 | } | |
767 | 776 | ||
768 | 777 | ||
769 | - | func | |
770 | - | let | |
771 | - | let | |
772 | - | let | |
773 | - | let | |
774 | - | let aO = aK( | |
775 | - | let | |
776 | - | let | |
777 | - | let | |
778 | - | let | |
779 | - | toInt( | |
778 | + | func fp (fq,bf,fr,fs) = { | |
779 | + | let ft = toBigInt(fq) | |
780 | + | let fu = toBigInt(bf) | |
781 | + | let fv = toBigInt(fr) | |
782 | + | let fw = toBigInt(fs) | |
783 | + | let aO = aK(fv, ft) | |
784 | + | let fx = (ft + fu) | |
785 | + | let fy = aJ(aO, fx) | |
786 | + | let fz = aJ(fy, fx) | |
787 | + | let fA = aJ(fw, fz) | |
788 | + | toInt(fA) | |
780 | 789 | } | |
781 | 790 | ||
782 | 791 | ||
783 | - | func | |
784 | - | let | |
785 | - | if (( | |
792 | + | func fB (fC,cr,cs) = { | |
793 | + | let bM = bf() | |
794 | + | if ((bM == 0)) | |
786 | 795 | then { | |
787 | - | let | |
788 | - | $Tuple3( | |
796 | + | let fD = aG(aI(fC, cs), cr) | |
797 | + | $Tuple3(fD, av, 0) | |
789 | 798 | } | |
790 | 799 | else { | |
791 | - | let | |
792 | - | let | |
793 | - | let | |
794 | - | let | |
795 | - | let | |
796 | - | $Tuple3( | |
800 | + | let fk = (bM > 0) | |
801 | + | let fm = dm(fk, aL(bM), false)._1 | |
802 | + | let fD = fp(cs, bM, cr, fC) | |
803 | + | let fE = av | |
804 | + | let fF = dV(bM, fm, cr, fD, cs, fE, ay)._2 | |
805 | + | $Tuple3(fD, fE, fF) | |
797 | 806 | } | |
798 | 807 | } | |
799 | 808 | ||
800 | 809 | ||
801 | - | func | |
802 | - | let | |
803 | - | let | |
804 | - | let | |
805 | - | if (if ( | |
810 | + | func fG () = { | |
811 | + | let fH = ds() | |
812 | + | let fI = dM() | |
813 | + | let fJ = (fI - fH) | |
814 | + | if (if (dy()) | |
806 | 815 | then true | |
807 | - | else if (( | |
808 | - | then if (( | |
816 | + | else if ((bB() == aA)) | |
817 | + | then if ((bw() == 0)) | |
809 | 818 | then true | |
810 | - | else ( | |
819 | + | else (bx() == 0) | |
811 | 820 | else false) | |
812 | 821 | then $Tuple3(0, 0, 0) | |
813 | - | else if ((0 > | |
822 | + | else if ((0 > fJ)) | |
814 | 823 | then { | |
815 | - | let | |
816 | - | if (( | |
824 | + | let fK = aG(aI(fJ, bl()), ax) | |
825 | + | if ((bB() == aA)) | |
817 | 826 | then { | |
818 | - | let | |
819 | - | $Tuple3( | |
827 | + | let fL = aG(aI(fK, bw()), bx()) | |
828 | + | $Tuple3(fK, fL, 0) | |
820 | 829 | } | |
821 | 830 | else { | |
822 | - | let | |
823 | - | let | |
824 | - | let | |
825 | - | $Tuple3( | |
831 | + | let fM = aL(aI(fK, bw())) | |
832 | + | let fN = aL(aI(fK, bx())) | |
833 | + | let fO = (fM - fN) | |
834 | + | $Tuple3(fK, fK, fO) | |
826 | 835 | } | |
827 | 836 | } | |
828 | 837 | else { | |
829 | - | let | |
830 | - | if (( | |
838 | + | let fL = aG(aI(fJ, bl()), ax) | |
839 | + | if ((bB() == aA)) | |
831 | 840 | then { | |
832 | - | let | |
833 | - | $Tuple3( | |
841 | + | let fK = aG(aI(fL, bx()), bw()) | |
842 | + | $Tuple3(fK, fL, 0) | |
834 | 843 | } | |
835 | 844 | else { | |
836 | - | let | |
837 | - | let | |
838 | - | let | |
839 | - | $Tuple3( | |
845 | + | let fN = aL(aI(fL, bx())) | |
846 | + | let fM = aL(aI(fL, bw())) | |
847 | + | let fO = (fN - fM) | |
848 | + | $Tuple3(fL, fL, fO) | |
840 | 849 | } | |
841 | 850 | } | |
842 | 851 | } | |
843 | 852 | ||
844 | 853 | ||
845 | - | func | |
846 | - | let | |
847 | - | let | |
848 | - | let | |
854 | + | func fP (fQ,fR) = { | |
855 | + | let fS = aW() | |
856 | + | let fT = aI(fS, fR) | |
857 | + | let fU = if ((fQ != "")) | |
849 | 858 | then { | |
850 | - | let | |
851 | - | if (( | |
859 | + | let fV = aR(an(), ac(ap, fQ)) | |
860 | + | if ((fV == aq)) | |
852 | 861 | then { | |
853 | - | let | |
854 | - | let | |
855 | - | $Tuple2( | |
862 | + | let fW = aT(an(), ac(ao, fQ)) | |
863 | + | let fX = aI(fT, fW) | |
864 | + | $Tuple2(fX, true) | |
856 | 865 | } | |
857 | 866 | else throw("Invalid attached artifact") | |
858 | 867 | } | |
859 | - | else $Tuple2( | |
860 | - | let | |
861 | - | let | |
862 | - | $Tuple2( | |
868 | + | else $Tuple2(fT, false) | |
869 | + | let fX = fU._1 | |
870 | + | let fY = fU._2 | |
871 | + | $Tuple2(fX, fY) | |
863 | 872 | } | |
864 | 873 | ||
865 | 874 | ||
866 | - | func | |
867 | - | let | |
868 | - | if (( | |
875 | + | func fZ (bO,fQ) = { | |
876 | + | let ga = invoke(ak(), "computeFeeDiscount", [bO], nil) | |
877 | + | if ((ga == ga)) | |
869 | 878 | then { | |
870 | - | let | |
871 | - | let | |
872 | - | if ($isInstanceOf( | |
879 | + | let gb = { | |
880 | + | let bS = ga | |
881 | + | if ($isInstanceOf(bS, "Int")) | |
873 | 882 | then { | |
874 | - | let | |
875 | - | | |
883 | + | let gc = bS | |
884 | + | gc | |
876 | 885 | } | |
877 | 886 | else throw("Invalid computeFeeDiscount result") | |
878 | 887 | } | |
879 | - | let | |
880 | - | let | |
881 | - | let | |
882 | - | $Tuple2( | |
888 | + | let gd = fP(fQ, gb) | |
889 | + | let fX = gd._1 | |
890 | + | let fY = gd._2 | |
891 | + | $Tuple2(fX, fY) | |
883 | 892 | } | |
884 | 893 | else throw("Strict value is not equal to itself.") | |
885 | 894 | } | |
886 | 895 | ||
887 | 896 | ||
888 | - | func | |
889 | - | let | |
890 | - | then toBase58String(valueOrErrorMessage( | |
897 | + | func ge (bF) = { | |
898 | + | let gf = if ((size(bF.payments) > 1)) | |
899 | + | then toBase58String(valueOrErrorMessage(bF.payments[1].assetId, "Invalid artifactId")) | |
891 | 900 | else "" | |
892 | - | | |
901 | + | gf | |
893 | 902 | } | |
894 | 903 | ||
895 | 904 | ||
896 | - | func | |
897 | - | let | |
898 | - | let | |
899 | - | $Tuple2( | |
905 | + | func gg (gh) = { | |
906 | + | let gi = aI(gh, bz()) | |
907 | + | let gj = (gh - gi) | |
908 | + | $Tuple2(gi, gj) | |
900 | 909 | } | |
901 | 910 | ||
902 | 911 | ||
903 | - | func | |
912 | + | func gk (gl,gm,gn,go,ew,gp,gq,gr,gs,dL,gt,gu,gv,gw,gx) = [IntegerEntry(r, gl), IntegerEntry(s, gm), IntegerEntry(t, gn), IntegerEntry(q, go), IntegerEntry(o, ew), IntegerEntry(v, gp), IntegerEntry(w, gq), IntegerEntry(u, gr), IntegerEntry(x, gs), IntegerEntry(y, dL), IntegerEntry(z, gt), IntegerEntry(A, gu), IntegerEntry(p, gv), IntegerEntry(B, gw), IntegerEntry(C, gx)] | |
904 | 913 | ||
905 | 914 | ||
906 | - | func | |
915 | + | func gy (gz,gA,gB,gC,gD) = [IntegerEntry(F, gz), IntegerEntry(D, gA), IntegerEntry(E, gB), IntegerEntry(G, gC), IntegerEntry(H, gD)] | |
907 | 916 | ||
908 | 917 | ||
909 | - | func | |
910 | - | let | |
911 | - | if ( | |
918 | + | func gE (gF,bO,bP) = { | |
919 | + | let bQ = ((bO + "_") + toString(bP)) | |
920 | + | if (gF) | |
912 | 921 | then { | |
913 | - | let | |
914 | - | [IntegerEntry(ac(i, | |
922 | + | let gG = by() | |
923 | + | [IntegerEntry(ac(i, bQ), (gG + 1)), IntegerEntry(d, (gG + 1))] | |
915 | 924 | } | |
916 | 925 | else nil | |
917 | 926 | } | |
918 | 927 | ||
919 | 928 | ||
920 | - | func | |
921 | - | let | |
922 | - | if ( | |
923 | - | then [IntegerEntry(ac(j, | |
929 | + | func gH (gF,bO,bP,ew) = { | |
930 | + | let bQ = ((bO + "_") + toString(bP)) | |
931 | + | if (gF) | |
932 | + | then [IntegerEntry(ac(j, bQ), ew)] | |
924 | 933 | else nil | |
925 | 934 | } | |
926 | 935 | ||
927 | 936 | ||
928 | - | func | |
929 | - | let | |
930 | - | let | |
931 | - | [IntegerEntry(ac(e, | |
937 | + | func gI (bO,ev,gJ,gK,cW,gL) = { | |
938 | + | let fk = bU(ev) | |
939 | + | let bQ = ((bO + "_") + toString(fk)) | |
940 | + | [IntegerEntry(ac(e, bQ), ev), IntegerEntry(ac(f, bQ), gJ), IntegerEntry(ac(g, bQ), gK), IntegerEntry(ac(h, bQ), cW), IntegerEntry(ac(k, bQ), gL)] | |
932 | 941 | } | |
933 | 942 | ||
934 | 943 | ||
935 | - | func | |
944 | + | func gM (cr,cs) = if (if ((0 > cr)) | |
936 | 945 | then true | |
937 | - | else (0 > | |
946 | + | else (0 > cs)) | |
938 | 947 | then throw("Invalid amount to update reserves") | |
939 | - | else [IntegerEntry(I, co), IntegerEntry(J, cp)] | |
948 | + | else if (if ((cr != ba())) | |
949 | + | then true | |
950 | + | else (cs != bc())) | |
951 | + | then [IntegerEntry(I, cr), IntegerEntry(J, cs)] | |
952 | + | else nil | |
940 | 953 | ||
941 | 954 | ||
942 | - | func gK (ct,cu) = [IntegerEntry(K, ct), IntegerEntry(L, cu)] | |
955 | + | func gN (cw,cx) = if (if ((cw != bd())) | |
956 | + | then true | |
957 | + | else (cx != be())) | |
958 | + | then [IntegerEntry(K, cw), IntegerEntry(L, cx)] | |
959 | + | else nil | |
943 | 960 | ||
944 | 961 | ||
945 | - | func | |
946 | - | let | |
947 | - | let | |
948 | - | if ((( | |
949 | - | then throw(((((("Invalid AMM state data: " + toString( | |
950 | - | else ( | |
962 | + | func gO (cr,cs,gP,gQ,gR,gS,gT,gU) = { | |
963 | + | let cw = bd() | |
964 | + | let cx = be() | |
965 | + | if (((gR - gS) != gP)) | |
966 | + | then throw(((((("Invalid AMM state data: " + toString(gR)) + " + ") + toString(gS)) + " != ") + toString(gP))) | |
967 | + | else (gM(cr, cs) ++ [IntegerEntry(M, gP), IntegerEntry(P, gQ), IntegerEntry(N, gR), IntegerEntry(O, gS), IntegerEntry(R, gT), IntegerEntry(Q, gU)]) | |
951 | 968 | } | |
952 | 969 | ||
953 | 970 | ||
954 | - | func | |
955 | - | let | |
956 | - | [DeleteEntry(ac(e, | |
971 | + | func gV (bO,bP) = { | |
972 | + | let bQ = ((bO + "_") + toString(bP)) | |
973 | + | [DeleteEntry(ac(e, bQ)), DeleteEntry(ac(f, bQ)), DeleteEntry(ac(g, bQ)), DeleteEntry(ac(h, bQ)), DeleteEntry(ac(j, bQ)), DeleteEntry(ac(k, bQ))] | |
957 | 974 | } | |
958 | 975 | ||
959 | 976 | ||
960 | - | func | |
961 | - | let | |
962 | - | if (( | |
963 | - | then throw(((("Unable to withdraw " + toString( | |
964 | - | else [ScriptTransfer(ae, | |
977 | + | func gW (ae,gX) = { | |
978 | + | let gY = assetBalance(this, ah()) | |
979 | + | if ((gX > gY)) | |
980 | + | then throw(((("Unable to withdraw " + toString(gX)) + " from contract balance ") + toString(gY))) | |
981 | + | else [ScriptTransfer(ae, gX, ah())] | |
965 | 982 | } | |
966 | 983 | ||
967 | 984 | ||
968 | - | func | |
985 | + | func gZ (ha) = if ((0 > ha)) | |
969 | 986 | then throw("Balance") | |
970 | - | else [IntegerEntry(c, bC)] | |
987 | + | else if (if ((aV() == 0)) | |
988 | + | then true | |
989 | + | else (aV() != ha)) | |
990 | + | then [IntegerEntry(c, ha)] | |
991 | + | else nil | |
971 | 992 | ||
972 | 993 | ||
973 | - | func | |
994 | + | func hb (bF) = [ScriptTransfer(ai(), bF, ah())] | |
974 | 995 | ||
975 | 996 | ||
976 | - | func | |
977 | - | then [Burn(valueOrErrorMessage( | |
997 | + | func hc (hd,bF) = if (hd) | |
998 | + | then [Burn(valueOrErrorMessage(bF.payments[1].assetId, "Invalid artifact"), 1)] | |
978 | 999 | else nil | |
979 | 1000 | ||
980 | 1001 | ||
981 | - | @Callable( | |
982 | - | func pause () = if (( | |
1002 | + | @Callable(bF) | |
1003 | + | func pause () = if ((bF.caller != ag())) | |
983 | 1004 | then throw("Invalid pause params") | |
984 | 1005 | else [BooleanEntry(m, true)] | |
985 | 1006 | ||
986 | 1007 | ||
987 | 1008 | ||
988 | - | @Callable( | |
989 | - | func unpause () = if (( | |
1009 | + | @Callable(bF) | |
1010 | + | func unpause () = if ((bF.caller != ag())) | |
990 | 1011 | then throw("Invalid unpause params") | |
991 | 1012 | else [BooleanEntry(m, false)] | |
992 | 1013 | ||
993 | 1014 | ||
994 | 1015 | ||
995 | - | @Callable( | |
996 | - | func setCloseOnly () = if (( | |
1016 | + | @Callable(bF) | |
1017 | + | func setCloseOnly () = if ((bF.caller != ag())) | |
997 | 1018 | then throw("Invalid setCloseOnly params") | |
998 | 1019 | else [BooleanEntry(n, true)] | |
999 | 1020 | ||
1000 | 1021 | ||
1001 | 1022 | ||
1002 | - | @Callable( | |
1003 | - | func unsetCloseOnly () = if (( | |
1023 | + | @Callable(bF) | |
1024 | + | func unsetCloseOnly () = if ((bF.caller != ag())) | |
1004 | 1025 | then throw("Invalid unsetCloseOnly params") | |
1005 | 1026 | else [BooleanEntry(n, false)] | |
1006 | 1027 | ||
1007 | 1028 | ||
1008 | 1029 | ||
1009 | - | @Callable( | |
1010 | - | func changeLiquidity ( | |
1030 | + | @Callable(bF) | |
1031 | + | func changeLiquidity (cm) = if (if ((bF.caller != ag())) | |
1011 | 1032 | then true | |
1012 | - | else ( | |
1033 | + | else (cm == 0)) | |
1013 | 1034 | then throw("Invalid changeLiquidity params") | |
1014 | 1035 | else { | |
1015 | - | let | |
1016 | - | let | |
1017 | - | let | |
1018 | - | let | |
1019 | - | let | |
1020 | - | let | |
1021 | - | let | |
1022 | - | let | |
1023 | - | let | |
1024 | - | let | |
1025 | - | let | |
1026 | - | let | |
1027 | - | let | |
1036 | + | let cr = aZ() | |
1037 | + | let cs = bb() | |
1038 | + | let cw = bd() | |
1039 | + | let cx = be() | |
1040 | + | let he = aG(aI(cr, cw), aI(cs, cx)) | |
1041 | + | let hf = (cr + cm) | |
1042 | + | let hg = (aG(aI(hf, cw), he) - cs) | |
1043 | + | let hh = (cs + hg) | |
1044 | + | let hi = fB(ds(), hf, hh) | |
1045 | + | let hj = hi._1 | |
1046 | + | let hk = hi._2 | |
1047 | + | let fF = hi._3 | |
1048 | + | let hl = if ((fF != 0)) | |
1028 | 1049 | then { | |
1029 | - | let | |
1030 | - | if (( | |
1050 | + | let hl = invoke(aj(), "exchangeFreeAndLocked", [fF], nil) | |
1051 | + | if ((hl == hl)) | |
1031 | 1052 | then nil | |
1032 | 1053 | else throw("Strict value is not equal to itself.") | |
1033 | 1054 | } | |
1034 | 1055 | else nil | |
1035 | - | if (( | |
1036 | - | then ( | |
1056 | + | if ((hl == hl)) | |
1057 | + | then (gM(hf, hh) ++ gN(hj, hk)) | |
1037 | 1058 | else throw("Strict value is not equal to itself.") | |
1038 | 1059 | } | |
1039 | 1060 | ||
1040 | 1061 | ||
1041 | 1062 | ||
1042 | - | @Callable( | |
1043 | - | func changeSettings ( | |
1063 | + | @Callable(bF) | |
1064 | + | func changeSettings (gl,gm,gn,go,ew,gp,gq,gr,gs,dL,gt,gu,gv,gw,gx) = if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if ((0 >= go)) | |
1044 | 1065 | then true | |
1045 | - | else (0 >= gi)) | |
1046 | - | then true | |
1047 | - | else (0 >= gj)) | |
1048 | - | then true | |
1049 | - | else (0 >= gk)) | |
1050 | - | then true | |
1051 | - | else (0 >= et)) | |
1066 | + | else (0 >= gl)) | |
1052 | 1067 | then true | |
1053 | 1068 | else (0 >= gm)) | |
1054 | 1069 | then true | |
1055 | 1070 | else (0 >= gn)) | |
1056 | 1071 | then true | |
1057 | - | else (0 >= | |
1072 | + | else (0 >= ew)) | |
1058 | 1073 | then true | |
1059 | 1074 | else (0 >= gp)) | |
1060 | 1075 | then true | |
1061 | - | else (0 >= dI)) | |
1062 | - | then true | |
1063 | 1076 | else (0 >= gq)) | |
1064 | - | then true | |
1065 | - | else (gq > av)) | |
1066 | 1077 | then true | |
1067 | 1078 | else (0 >= gr)) | |
1068 | 1079 | then true | |
1069 | 1080 | else (0 >= gs)) | |
1070 | 1081 | then true | |
1071 | - | else if ((gt != aB)) | |
1072 | - | then (gt != aA) | |
1082 | + | else (0 >= dL)) | |
1083 | + | then true | |
1084 | + | else (0 >= gt)) | |
1085 | + | then true | |
1086 | + | else (gt > av)) | |
1087 | + | then true | |
1088 | + | else (0 >= gu)) | |
1089 | + | then true | |
1090 | + | else (0 >= gv)) | |
1091 | + | then true | |
1092 | + | else if ((gw != aB)) | |
1093 | + | then (gw != aA) | |
1073 | 1094 | else false) | |
1074 | 1095 | then true | |
1075 | - | else if (( | |
1076 | - | then ( | |
1096 | + | else if ((gx != aC)) | |
1097 | + | then (gx != aD) | |
1077 | 1098 | else false) | |
1078 | 1099 | then true | |
1079 | - | else !( | |
1100 | + | else !(ch())) | |
1080 | 1101 | then true | |
1081 | - | else ( | |
1102 | + | else (bF.caller != ag())) | |
1082 | 1103 | then throw("Invalid changeSettings params") | |
1083 | - | else | |
1104 | + | else gk(gl, gm, gn, go, ew, gp, gq, gr, gs, dL, gt, gu, gv, gw, gx) | |
1084 | 1105 | ||
1085 | 1106 | ||
1086 | 1107 | ||
1087 | - | @Callable( | |
1088 | - | func initialize ( | |
1108 | + | @Callable(bF) | |
1109 | + | func initialize (cr,cs,go,gl,gm,gn,ew,hm,hn,ho,gp,gq,gr,gs,dL,gt,gu,gv,gw,gx) = if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if ((0 >= cr)) | |
1089 | 1110 | then true | |
1090 | - | else (0 >= cp)) | |
1111 | + | else (0 >= cs)) | |
1112 | + | then true | |
1113 | + | else (0 >= go)) | |
1091 | 1114 | then true | |
1092 | 1115 | else (0 >= gl)) | |
1093 | - | then true | |
1094 | - | else (0 >= gi)) | |
1095 | - | then true | |
1096 | - | else (0 >= gj)) | |
1097 | - | then true | |
1098 | - | else (0 >= gk)) | |
1099 | - | then true | |
1100 | - | else (0 >= et)) | |
1101 | 1116 | then true | |
1102 | 1117 | else (0 >= gm)) | |
1103 | 1118 | then true | |
1104 | 1119 | else (0 >= gn)) | |
1105 | 1120 | then true | |
1106 | - | else (0 >= | |
1121 | + | else (0 >= ew)) | |
1107 | 1122 | then true | |
1108 | 1123 | else (0 >= gp)) | |
1109 | 1124 | then true | |
1110 | - | else (0 >= dI)) | |
1111 | - | then true | |
1112 | 1125 | else (0 >= gq)) | |
1113 | 1126 | then true | |
1114 | - | else (gq > av)) | |
1115 | - | then true | |
1116 | - | else (0 > gr)) | |
1127 | + | else (0 >= gr)) | |
1117 | 1128 | then true | |
1118 | 1129 | else (0 >= gs)) | |
1119 | 1130 | then true | |
1120 | - | else if ((gt != aB)) | |
1121 | - | then (gt != aA) | |
1131 | + | else (0 >= dL)) | |
1132 | + | then true | |
1133 | + | else (0 >= gt)) | |
1134 | + | then true | |
1135 | + | else (gt > av)) | |
1136 | + | then true | |
1137 | + | else (0 > gu)) | |
1138 | + | then true | |
1139 | + | else (0 >= gv)) | |
1140 | + | then true | |
1141 | + | else if ((gw != aB)) | |
1142 | + | then (gw != aA) | |
1122 | 1143 | else false) | |
1123 | 1144 | then true | |
1124 | - | else if (( | |
1125 | - | then ( | |
1145 | + | else if ((gx != aC)) | |
1146 | + | then (gx != aD) | |
1126 | 1147 | else false) | |
1127 | 1148 | then true | |
1128 | - | else | |
1149 | + | else ch()) | |
1129 | 1150 | then true | |
1130 | - | else ( | |
1151 | + | else (bF.caller != this)) | |
1131 | 1152 | then throw("Invalid initialize parameters") | |
1132 | - | else (((( | |
1153 | + | else ((((gO(cr, cs, 0, 0, 0, 0, 0, 0) ++ gk(gl, gm, gn, go, ew, gp, gq, gr, gs, dL, gt, gu, gv, gw, gx)) ++ gy((bD() + go), 0, 0, 0, 0)) ++ gZ(0)) ++ [BooleanEntry(l, true), StringEntry(a, hm), StringEntry(b, hn), StringEntry(T, toString(addressFromStringValue(ho)))]) | |
1133 | 1154 | ||
1134 | 1155 | ||
1135 | 1156 | ||
1136 | - | @Callable( | |
1137 | - | func increasePosition ( | |
1138 | - | let | |
1139 | - | if (( | |
1157 | + | @Callable(bF) | |
1158 | + | func increasePosition (bP,hp,hq,hr,hs) = { | |
1159 | + | let ht = invoke(this, "updateOracle", [hs], nil) | |
1160 | + | if ((ht == ht)) | |
1140 | 1161 | then { | |
1141 | - | let | |
1142 | - | if (( | |
1162 | + | let hu = invoke(this, "syncTerminalPriceToOracle", nil, nil) | |
1163 | + | if ((hu == hu)) | |
1143 | 1164 | then { | |
1144 | - | let | |
1145 | - | if (( | |
1165 | + | let hv = invoke(this, "ensureCalledOnce", nil, nil) | |
1166 | + | if ((hv == hv)) | |
1146 | 1167 | then { | |
1147 | - | let | |
1148 | - | let | |
1149 | - | let | |
1150 | - | let | |
1151 | - | let | |
1152 | - | if (if (if (if (if (if (if (if (if (( | |
1153 | - | then ( | |
1168 | + | let bO = bE(bF) | |
1169 | + | let hw = bF.payments[0].amount | |
1170 | + | let hx = bF.payments[0].assetId | |
1171 | + | let hy = toBase58String(value(hx)) | |
1172 | + | let hz = (hx == ah()) | |
1173 | + | if (if (if (if (if (if (if (if (if ((bP != ar)) | |
1174 | + | then (bP != as) | |
1154 | 1175 | else false) | |
1155 | 1176 | then true | |
1156 | - | else (0 >= | |
1177 | + | else (0 >= hw)) | |
1157 | 1178 | then true | |
1158 | - | else !( | |
1179 | + | else !(ch())) | |
1159 | 1180 | then true | |
1160 | - | else !( | |
1181 | + | else !(hz)) | |
1161 | 1182 | then true | |
1162 | - | else !( | |
1183 | + | else !(bG(aG(av, hp), aY(), true))) | |
1163 | 1184 | then true | |
1164 | - | else | |
1185 | + | else ci()) | |
1165 | 1186 | then true | |
1166 | - | else | |
1187 | + | else cj()) | |
1167 | 1188 | then true | |
1168 | - | else | |
1189 | + | else dy()) | |
1169 | 1190 | then throw("Invalid increasePosition parameters") | |
1170 | 1191 | else { | |
1171 | - | let | |
1172 | - | let | |
1173 | - | let | |
1174 | - | let | |
1175 | - | let | |
1176 | - | let | |
1177 | - | if (( | |
1192 | + | let hA = fZ(bO, ge(bF)) | |
1193 | + | let fX = hA._1 | |
1194 | + | let fY = hA._2 | |
1195 | + | let gX = aG(hw, (aI(fX, hp) + av)) | |
1196 | + | let hB = (hw - gX) | |
1197 | + | let hC = invoke(am(), "acceptPaymentWithLink", [bO, hr], [AttachedPayment(ah(), hB)]) | |
1198 | + | if ((hC == hC)) | |
1178 | 1199 | then { | |
1179 | - | let | |
1180 | - | let | |
1181 | - | if ($isInstanceOf( | |
1200 | + | let hD = { | |
1201 | + | let bS = hC | |
1202 | + | if ($isInstanceOf(bS, "Int")) | |
1182 | 1203 | then { | |
1183 | - | let | |
1184 | - | | |
1204 | + | let gc = bS | |
1205 | + | gc | |
1185 | 1206 | } | |
1186 | 1207 | else throw("Invalid referrerFee") | |
1187 | 1208 | } | |
1188 | - | let | |
1189 | - | let | |
1190 | - | let | |
1191 | - | let | |
1192 | - | let | |
1193 | - | let | |
1194 | - | let | |
1195 | - | let | |
1196 | - | let | |
1197 | - | then ( | |
1198 | - | else ( | |
1199 | - | let | |
1200 | - | then | |
1209 | + | let hE = (hB - hD) | |
1210 | + | let hF = bN(bO, bP) | |
1211 | + | let eB = hF._1 | |
1212 | + | let eC = hF._2 | |
1213 | + | let eD = hF._3 | |
1214 | + | let eE = hF._4 | |
1215 | + | let eF = hF._5 | |
1216 | + | let hG = (eB == 0) | |
1217 | + | let hH = if ((eB > 0)) | |
1218 | + | then (bP == ar) | |
1219 | + | else (bP == as) | |
1220 | + | let hI = if (!(hG)) | |
1221 | + | then hH | |
1201 | 1222 | else false | |
1202 | - | let | |
1203 | - | let | |
1223 | + | let hJ = (bP == ar) | |
1224 | + | let hK = if (if (hG) | |
1204 | 1225 | then true | |
1205 | - | else | |
1226 | + | else hI) | |
1206 | 1227 | then { | |
1207 | - | let | |
1208 | - | let | |
1209 | - | let | |
1210 | - | let | |
1211 | - | let | |
1212 | - | let | |
1213 | - | if (if (( | |
1214 | - | then ( | |
1228 | + | let hL = aI(gX, hp) | |
1229 | + | let hM = cv(hJ, hL) | |
1230 | + | let cC = hM._1 | |
1231 | + | let cz = hM._2 | |
1232 | + | let cA = hM._3 | |
1233 | + | let eL = hM._4 | |
1234 | + | if (if ((hq != 0)) | |
1235 | + | then (hq > aL(cC)) | |
1215 | 1236 | else false) | |
1216 | - | then throw(((("Limit error: " + toString(aL( | |
1237 | + | then throw(((("Limit error: " + toString(aL(cC))) + " < ") + toString(hq))) | |
1217 | 1238 | else { | |
1218 | - | let | |
1219 | - | let | |
1220 | - | then | |
1239 | + | let eZ = (eB + cC) | |
1240 | + | let hN = (bi() + (if ((eZ > 0)) | |
1241 | + | then hL | |
1221 | 1242 | else 0)) | |
1222 | - | let | |
1223 | - | then | |
1243 | + | let hO = (bh() + (if ((0 > eZ)) | |
1244 | + | then hL | |
1224 | 1245 | else 0)) | |
1225 | - | let | |
1226 | - | let | |
1227 | - | let | |
1228 | - | let | |
1229 | - | let | |
1230 | - | if (!( | |
1246 | + | let hP = cR(eB, eC, eE, eF, gX) | |
1247 | + | let cZ = hP._1 | |
1248 | + | let eT = hP._2 | |
1249 | + | let eU = hP._3 | |
1250 | + | let cQ = hP._4 | |
1251 | + | if (!(dE(cz, cA))) | |
1231 | 1252 | then throw("Over max spread limit") | |
1232 | - | else if (!( | |
1253 | + | else if (!(dI(hN, hO))) | |
1233 | 1254 | then throw("Over max open notional") | |
1234 | - | else $Tuple14( | |
1235 | - | then aL( | |
1236 | - | else 0)), ( | |
1237 | - | then aL( | |
1238 | - | else 0)), | |
1255 | + | else $Tuple14(eZ, cZ, (eD + hL), bL(eZ), bD(), cA, cz, eL, (bg() + hL), (bx() + (if ((eZ > 0)) | |
1256 | + | then aL(cC) | |
1257 | + | else 0)), (bw() + (if ((0 > eZ)) | |
1258 | + | then aL(cC) | |
1259 | + | else 0)), hN, hO, cQ) | |
1239 | 1260 | } | |
1240 | 1261 | } | |
1241 | 1262 | else { | |
1242 | - | let | |
1243 | - | let | |
1244 | - | let | |
1245 | - | let | |
1246 | - | if (( | |
1263 | + | let hL = aI(gX, hp) | |
1264 | + | let hQ = dY(toString(bF.caller), bP, ay) | |
1265 | + | let eO = hQ._1 | |
1266 | + | let dX = hQ._2 | |
1267 | + | if ((eO > hL)) | |
1247 | 1268 | then throw("Use decreasePosition to decrease position size") | |
1248 | 1269 | else throw("Close position first") | |
1249 | 1270 | } | |
1250 | - | let | |
1251 | - | let | |
1252 | - | let | |
1253 | - | let | |
1254 | - | let | |
1255 | - | let | |
1256 | - | let | |
1257 | - | let | |
1258 | - | let | |
1259 | - | let | |
1260 | - | let | |
1261 | - | let | |
1262 | - | let | |
1263 | - | let | |
1264 | - | let | |
1265 | - | let | |
1266 | - | let | |
1267 | - | let | |
1268 | - | then invoke(aj(), "addLocked", nil, [AttachedPayment(ah(), ( | |
1269 | - | else invoke(aj(), "withdrawLocked", [( | |
1270 | - | if (( | |
1271 | + | let eZ = hK._1 | |
1272 | + | let hR = hK._2 | |
1273 | + | let fb = hK._3 | |
1274 | + | let hS = hK._4 | |
1275 | + | let hT = hK._5 | |
1276 | + | let cA = hK._6 | |
1277 | + | let cz = hK._7 | |
1278 | + | let eL = hK._8 | |
1279 | + | let hU = hK._9 | |
1280 | + | let hV = hK._10 | |
1281 | + | let hW = hK._11 | |
1282 | + | let hN = hK._12 | |
1283 | + | let hO = hK._13 | |
1284 | + | let cQ = hK._14 | |
1285 | + | let hX = gg((hE + cQ)) | |
1286 | + | let gi = hX._1 | |
1287 | + | let gj = hX._2 | |
1288 | + | let hY = if ((gX >= cQ)) | |
1289 | + | then invoke(aj(), "addLocked", nil, [AttachedPayment(ah(), (gX - cQ))]) | |
1290 | + | else invoke(aj(), "withdrawLocked", [(cQ - gX)], nil) | |
1291 | + | if ((hY == hY)) | |
1271 | 1292 | then { | |
1272 | - | let | |
1273 | - | if (( | |
1293 | + | let hZ = invoke(aj(), "addFree", nil, [AttachedPayment(ah(), gj)]) | |
1294 | + | if ((hZ == hZ)) | |
1274 | 1295 | then { | |
1275 | - | let | |
1276 | - | if (( | |
1296 | + | let ia = invoke(ak(), "notifyFees", [bO, hE], nil) | |
1297 | + | if ((ia == ia)) | |
1277 | 1298 | then { | |
1278 | - | let | |
1279 | - | if (( | |
1280 | - | then (((((( | |
1299 | + | let ib = invoke(ak(), "notifyNotional", [bO, fb], nil) | |
1300 | + | if ((ib == ib)) | |
1301 | + | then ((((((gI(bO, eZ, hR, fb, hS, hT) ++ gE(hG, bO, bP)) ++ gH(hG, bO, bP, fX)) ++ gO(cz, cA, eL, hU, hV, hW, hN, hO)) ++ hb(gi)) ++ gZ(((aU() + gX) - cQ))) ++ hc(fY, bF)) | |
1281 | 1302 | else throw("Strict value is not equal to itself.") | |
1282 | 1303 | } | |
1283 | 1304 | else throw("Strict value is not equal to itself.") | |
1298 | 1319 | ||
1299 | 1320 | ||
1300 | 1321 | ||
1301 | - | @Callable( | |
1302 | - | func addMargin ( | |
1303 | - | let | |
1304 | - | if (( | |
1322 | + | @Callable(bF) | |
1323 | + | func addMargin (bP,hs) = { | |
1324 | + | let ht = invoke(this, "updateOracle", [hs], nil) | |
1325 | + | if ((ht == ht)) | |
1305 | 1326 | then { | |
1306 | - | let | |
1307 | - | if (( | |
1327 | + | let hu = invoke(this, "syncTerminalPriceToOracle", nil, nil) | |
1328 | + | if ((hu == hu)) | |
1308 | 1329 | then { | |
1309 | - | let | |
1310 | - | if (( | |
1330 | + | let hv = invoke(this, "ensureCalledOnce", nil, nil) | |
1331 | + | if ((hv == hv)) | |
1311 | 1332 | then { | |
1312 | - | let | |
1313 | - | let | |
1314 | - | let | |
1315 | - | let | |
1316 | - | let | |
1317 | - | if (if (if (if (if (!( | |
1333 | + | let bO = toString(bF.caller) | |
1334 | + | let gX = bF.payments[0].amount | |
1335 | + | let hx = bF.payments[0].assetId | |
1336 | + | let hy = toBase58String(value(hx)) | |
1337 | + | let hz = (hx == ah()) | |
1338 | + | if (if (if (if (if (!(hz)) | |
1318 | 1339 | then true | |
1319 | - | else !( | |
1340 | + | else !(bY(toString(bF.caller), bP))) | |
1320 | 1341 | then true | |
1321 | - | else !( | |
1342 | + | else !(ch())) | |
1322 | 1343 | then true | |
1323 | - | else | |
1344 | + | else ci()) | |
1324 | 1345 | then true | |
1325 | - | else | |
1346 | + | else dy()) | |
1326 | 1347 | then throw("Invalid addMargin parameters") | |
1327 | 1348 | else { | |
1328 | - | let | |
1329 | - | let | |
1330 | - | let | |
1331 | - | let | |
1332 | - | let | |
1333 | - | let | |
1334 | - | let | |
1335 | - | if (( | |
1349 | + | let ic = bN(bO, bP) | |
1350 | + | let eB = ic._1 | |
1351 | + | let eC = ic._2 | |
1352 | + | let eD = ic._3 | |
1353 | + | let eE = ic._4 | |
1354 | + | let eF = ic._5 | |
1355 | + | let hY = invoke(aj(), "addLocked", nil, [AttachedPayment(ah(), gX)]) | |
1356 | + | if ((hY == hY)) | |
1336 | 1357 | then { | |
1337 | - | let | |
1338 | - | let | |
1358 | + | let cQ = cM(eC, eF) | |
1359 | + | let id = if ((cQ > 0)) | |
1339 | 1360 | then { | |
1340 | - | let | |
1341 | - | let | |
1342 | - | let | |
1343 | - | let | |
1344 | - | if (( | |
1361 | + | let ie = gg(cQ) | |
1362 | + | let gi = ie._1 | |
1363 | + | let gj = ie._2 | |
1364 | + | let if = invoke(aj(), "withdrawLocked", [gi], nil) | |
1365 | + | if ((if == if)) | |
1345 | 1366 | then { | |
1346 | - | let | |
1347 | - | if (( | |
1348 | - | then | |
1367 | + | let ig = invoke(aj(), "exchangeFreeAndLocked", [-(gj)], nil) | |
1368 | + | if ((ig == ig)) | |
1369 | + | then hb(gi) | |
1349 | 1370 | else throw("Strict value is not equal to itself.") | |
1350 | 1371 | } | |
1351 | 1372 | else throw("Strict value is not equal to itself.") | |
1352 | 1373 | } | |
1353 | 1374 | else nil | |
1354 | - | if (( | |
1355 | - | then (( | |
1375 | + | if ((id == id)) | |
1376 | + | then ((gI(bO, eB, ((eC - cQ) + gX), eD, eE, bD()) ++ gZ(((aU() + gX) - cQ))) ++ id) | |
1356 | 1377 | else throw("Strict value is not equal to itself.") | |
1357 | 1378 | } | |
1358 | 1379 | else throw("Strict value is not equal to itself.") | |
1367 | 1388 | ||
1368 | 1389 | ||
1369 | 1390 | ||
1370 | - | @Callable( | |
1371 | - | func removeMargin ( | |
1372 | - | let | |
1373 | - | if (( | |
1391 | + | @Callable(bF) | |
1392 | + | func removeMargin (gX,bP,hs) = { | |
1393 | + | let ht = invoke(this, "updateOracle", [hs], nil) | |
1394 | + | if ((ht == ht)) | |
1374 | 1395 | then { | |
1375 | - | let | |
1376 | - | if (( | |
1396 | + | let hu = invoke(this, "syncTerminalPriceToOracle", nil, nil) | |
1397 | + | if ((hu == hu)) | |
1377 | 1398 | then { | |
1378 | - | let | |
1379 | - | if (( | |
1399 | + | let hv = invoke(this, "ensureCalledOnce", nil, nil) | |
1400 | + | if ((hv == hv)) | |
1380 | 1401 | then { | |
1381 | - | let | |
1382 | - | if (if (if (if (if ((0 >= | |
1402 | + | let bO = toString(bF.caller) | |
1403 | + | if (if (if (if (if ((0 >= gX)) | |
1383 | 1404 | then true | |
1384 | - | else !( | |
1405 | + | else !(bY(bO, bP))) | |
1385 | 1406 | then true | |
1386 | - | else !( | |
1407 | + | else !(ch())) | |
1387 | 1408 | then true | |
1388 | - | else | |
1409 | + | else ci()) | |
1389 | 1410 | then true | |
1390 | - | else | |
1411 | + | else dy()) | |
1391 | 1412 | then throw("Invalid removeMargin parameters") | |
1392 | 1413 | else { | |
1393 | - | let | |
1394 | - | let | |
1395 | - | let | |
1396 | - | let | |
1397 | - | let | |
1398 | - | let | |
1399 | - | let | |
1400 | - | let | |
1401 | - | let | |
1402 | - | let | |
1403 | - | let | |
1404 | - | if (( | |
1414 | + | let ih = bN(bO, bP) | |
1415 | + | let eB = ih._1 | |
1416 | + | let eC = ih._2 | |
1417 | + | let eD = ih._3 | |
1418 | + | let eE = ih._4 | |
1419 | + | let eF = ih._5 | |
1420 | + | let ii = cR(eB, eC, eE, eF, -(gX)) | |
1421 | + | let cZ = ii._1 | |
1422 | + | let da = ii._2 | |
1423 | + | let cV = ii._3 | |
1424 | + | let cQ = ii._4 | |
1425 | + | if ((da != 0)) | |
1405 | 1426 | then throw("Invalid removed margin amount") | |
1406 | 1427 | else { | |
1407 | - | let | |
1408 | - | if (!( | |
1409 | - | then throw(((("Too much margin removed: " + toString( | |
1428 | + | let fe = ed(cZ, da, eD) | |
1429 | + | if (!(bG(fe, aY(), true))) | |
1430 | + | then throw(((("Too much margin removed: " + toString(fe)) + " < ") + toString(aY()))) | |
1410 | 1431 | else { | |
1411 | - | let | |
1412 | - | let | |
1413 | - | let | |
1414 | - | let | |
1432 | + | let ij = gg(cQ) | |
1433 | + | let gi = ij._1 | |
1434 | + | let gj = ij._2 | |
1435 | + | let id = if ((cQ > 0)) | |
1415 | 1436 | then { | |
1416 | - | let | |
1417 | - | if (( | |
1418 | - | then | |
1437 | + | let ig = invoke(aj(), "exchangeFreeAndLocked", [-(gj)], nil) | |
1438 | + | if ((ig == ig)) | |
1439 | + | then hb(gi) | |
1419 | 1440 | else throw("Strict value is not equal to itself.") | |
1420 | 1441 | } | |
1421 | 1442 | else nil | |
1422 | - | if (( | |
1443 | + | if ((id == id)) | |
1423 | 1444 | then { | |
1424 | - | let | |
1425 | - | if (( | |
1426 | - | then ((( | |
1445 | + | let if = invoke(aj(), "withdrawLocked", [(gX + gi)], nil) | |
1446 | + | if ((if == if)) | |
1447 | + | then (((gI(bO, eB, cZ, eD, bL(eB), bD()) ++ gW(bF.caller, gX)) ++ gZ(((aU() - gX) - cQ))) ++ id) | |
1427 | 1448 | else throw("Strict value is not equal to itself.") | |
1428 | 1449 | } | |
1429 | 1450 | else throw("Strict value is not equal to itself.") | |
1440 | 1461 | ||
1441 | 1462 | ||
1442 | 1463 | ||
1443 | - | @Callable( | |
1444 | - | func closePosition ( | |
1445 | - | let | |
1446 | - | if (( | |
1464 | + | @Callable(bF) | |
1465 | + | func closePosition (ev,bP,ex,ey,hs) = { | |
1466 | + | let ht = invoke(this, "updateOracle", [hs], nil) | |
1467 | + | if ((ht == ht)) | |
1447 | 1468 | then { | |
1448 | - | let | |
1449 | - | if (( | |
1469 | + | let hu = invoke(this, "syncTerminalPriceToOracle", nil, nil) | |
1470 | + | if ((hu == hu)) | |
1450 | 1471 | then { | |
1451 | - | let | |
1452 | - | if (( | |
1472 | + | let hv = invoke(this, "ensureCalledOnce", nil, nil) | |
1473 | + | if ((hv == hv)) | |
1453 | 1474 | then { | |
1454 | - | let | |
1455 | - | let | |
1456 | - | let | |
1457 | - | if (if (if (if (if (if (!( | |
1475 | + | let bO = bE(bF) | |
1476 | + | let ik = valueOrErrorMessage(addressFromString(bO), "Invalid caller") | |
1477 | + | let bX = bV(bO, bP) | |
1478 | + | if (if (if (if (if (if (!(bY(bO, bP))) | |
1458 | 1479 | then true | |
1459 | - | else !( | |
1480 | + | else !(ch())) | |
1460 | 1481 | then true | |
1461 | - | else | |
1482 | + | else ci()) | |
1462 | 1483 | then true | |
1463 | - | else (0 >= | |
1484 | + | else (0 >= ev)) | |
1464 | 1485 | then true | |
1465 | - | else (0 > | |
1486 | + | else (0 > ex)) | |
1466 | 1487 | then true | |
1467 | - | else | |
1488 | + | else dy()) | |
1468 | 1489 | then throw("Invalid closePosition parameters") | |
1469 | 1490 | else { | |
1470 | - | let | |
1471 | - | let | |
1472 | - | let | |
1473 | - | let | |
1474 | - | let | |
1475 | - | let | |
1476 | - | let | |
1477 | - | let | |
1478 | - | let | |
1479 | - | let | |
1480 | - | let | |
1481 | - | let | |
1482 | - | let | |
1483 | - | let | |
1484 | - | let | |
1485 | - | let | |
1486 | - | let | |
1487 | - | let | |
1488 | - | if (( | |
1491 | + | let eF = bN(bO, bP)._5 | |
1492 | + | let il = eu(bO, bP, ev, bX, ex, ey, true, true) | |
1493 | + | let eZ = il._1 | |
1494 | + | let fi = il._2 | |
1495 | + | let fb = il._3 | |
1496 | + | let fc = il._4 | |
1497 | + | let eV = il._5 | |
1498 | + | let eQ = il._6 | |
1499 | + | let fh = il._7 | |
1500 | + | let cz = il._8 | |
1501 | + | let cA = il._9 | |
1502 | + | let eL = il._10 | |
1503 | + | let hU = il._11 | |
1504 | + | let hV = il._12 | |
1505 | + | let hW = il._13 | |
1506 | + | let hN = il._14 | |
1507 | + | let hO = il._15 | |
1508 | + | let im = il._16 | |
1509 | + | if ((eV > 0)) | |
1489 | 1510 | then throw("Invalid closePosition parameters: bad debt") | |
1490 | - | else if (( | |
1511 | + | else if ((eF >= bD())) | |
1491 | 1512 | then throw("Invalid closePosition parameters: wait at least 1 block before closing the position") | |
1492 | 1513 | else { | |
1493 | - | let | |
1494 | - | let | |
1495 | - | let | |
1496 | - | let | |
1514 | + | let eI = (eZ != 0) | |
1515 | + | let in = (fh + im) | |
1516 | + | let io = (aU() - in) | |
1517 | + | let ip = if ((0 > io)) | |
1497 | 1518 | then 0 | |
1498 | - | else | |
1499 | - | let | |
1500 | - | if (( | |
1519 | + | else io | |
1520 | + | let if = invoke(aj(), "withdrawLocked", [in], nil) | |
1521 | + | if ((if == if)) | |
1501 | 1522 | then { | |
1502 | - | let | |
1503 | - | if (( | |
1523 | + | let hC = invoke(am(), "acceptPayment", [bO], [AttachedPayment(ah(), im)]) | |
1524 | + | if ((hC == hC)) | |
1504 | 1525 | then { | |
1505 | - | let | |
1506 | - | let | |
1507 | - | if ($isInstanceOf( | |
1526 | + | let hD = { | |
1527 | + | let bS = hC | |
1528 | + | if ($isInstanceOf(bS, "Int")) | |
1508 | 1529 | then { | |
1509 | - | let | |
1510 | - | | |
1530 | + | let gc = bS | |
1531 | + | gc | |
1511 | 1532 | } | |
1512 | 1533 | else throw("Invalid referrerFee") | |
1513 | 1534 | } | |
1514 | - | let | |
1515 | - | let | |
1516 | - | let | |
1517 | - | let | |
1518 | - | if (( | |
1535 | + | let iq = gg((im - hD)) | |
1536 | + | let gi = iq._1 | |
1537 | + | let gj = iq._2 | |
1538 | + | let hZ = invoke(aj(), "addFree", nil, [AttachedPayment(ah(), gj)]) | |
1539 | + | if ((hZ == hZ)) | |
1519 | 1540 | then { | |
1520 | - | let | |
1521 | - | if (( | |
1541 | + | let ia = invoke(ak(), "notifyFees", [bO, im], nil) | |
1542 | + | if ((ia == ia)) | |
1522 | 1543 | then { | |
1523 | - | let | |
1524 | - | if (( | |
1525 | - | then (((((if ( | |
1526 | - | then | |
1527 | - | else | |
1528 | - | then | |
1529 | - | else nil)) ++ | |
1544 | + | let ib = invoke(ak(), "notifyNotional", [bO, fb], nil) | |
1545 | + | if ((ib == ib)) | |
1546 | + | then (((((if (eI) | |
1547 | + | then gI(bO, eZ, fi, fb, fc, bD()) | |
1548 | + | else gV(bO, bP)) ++ gO(cz, cA, eL, hU, hV, hW, hN, hO)) ++ (if ((fh > 0)) | |
1549 | + | then gW(ik, fh) | |
1550 | + | else nil)) ++ gZ(ip)) ++ hb(gi)) | |
1530 | 1551 | else throw("Strict value is not equal to itself.") | |
1531 | 1552 | } | |
1532 | 1553 | else throw("Strict value is not equal to itself.") | |
1548 | 1569 | ||
1549 | 1570 | ||
1550 | 1571 | ||
1551 | - | @Callable( | |
1552 | - | func liquidate ( | |
1553 | - | let | |
1554 | - | if (( | |
1572 | + | @Callable(bF) | |
1573 | + | func liquidate (bO,bP,hs) = { | |
1574 | + | let ht = invoke(this, "updateOracle", [hs], nil) | |
1575 | + | if ((ht == ht)) | |
1555 | 1576 | then { | |
1556 | - | let | |
1557 | - | if (( | |
1577 | + | let hu = invoke(this, "syncTerminalPriceToOracle", nil, nil) | |
1578 | + | if ((hu == hu)) | |
1558 | 1579 | then { | |
1559 | - | let | |
1560 | - | let | |
1580 | + | let ir = eh(bO, bP, ay) | |
1581 | + | let is = if (dN()) | |
1561 | 1582 | then { | |
1562 | - | let | |
1563 | - | aM( | |
1583 | + | let it = eh(bO, bP, az) | |
1584 | + | aM(ir, it) | |
1564 | 1585 | } | |
1565 | - | else | |
1566 | - | if (if (if (if (if (!( | |
1586 | + | else ir | |
1587 | + | if (if (if (if (if (!(bG(is, bn(), false))) | |
1567 | 1588 | then true | |
1568 | - | else !( | |
1589 | + | else !(bY(bO, bP))) | |
1569 | 1590 | then true | |
1570 | - | else !( | |
1591 | + | else !(ch())) | |
1571 | 1592 | then true | |
1572 | - | else | |
1593 | + | else ci()) | |
1573 | 1594 | then true | |
1574 | - | else | |
1595 | + | else dy()) | |
1575 | 1596 | then throw("Unable to liquidate") | |
1576 | 1597 | else { | |
1577 | - | let | |
1578 | - | then ( | |
1598 | + | let iu = if (if ((ir > bo())) | |
1599 | + | then (bp() > 0) | |
1579 | 1600 | else false) | |
1580 | - | then (av > | |
1601 | + | then (av > bp()) | |
1581 | 1602 | else false | |
1582 | - | let | |
1583 | - | let | |
1584 | - | let | |
1603 | + | let eB = bN(bO, bP)._1 | |
1604 | + | let dR = aL(eB) | |
1605 | + | let iv = if (iu) | |
1585 | 1606 | then { | |
1586 | - | let | |
1587 | - | let | |
1588 | - | $Tuple2( | |
1607 | + | let iw = ep(bO, eB) | |
1608 | + | let ix = aG(aL(iw), dR) | |
1609 | + | $Tuple2(ix, aL(iw)) | |
1589 | 1610 | } | |
1590 | - | else $Tuple2(0, | |
1591 | - | let | |
1592 | - | let | |
1593 | - | let | |
1594 | - | then | |
1595 | - | else | |
1596 | - | let | |
1597 | - | let | |
1598 | - | let | |
1599 | - | let | |
1600 | - | let | |
1601 | - | let | |
1602 | - | let | |
1603 | - | let | |
1604 | - | let | |
1605 | - | let | |
1606 | - | let | |
1607 | - | let | |
1608 | - | let | |
1609 | - | let | |
1610 | - | let | |
1611 | - | let | |
1612 | - | let | |
1613 | - | let | |
1614 | - | let | |
1615 | - | let | |
1611 | + | else $Tuple2(0, dR) | |
1612 | + | let ix = iv._1 | |
1613 | + | let iw = iv._2 | |
1614 | + | let iy = eu(bO, bP, if (iu) | |
1615 | + | then iw | |
1616 | + | else dR, bo(), 0, true, false, true) | |
1617 | + | let eZ = iy._1 | |
1618 | + | let fi = iy._2 | |
1619 | + | let fb = iy._3 | |
1620 | + | let fc = iy._4 | |
1621 | + | let eV = iy._5 | |
1622 | + | let eQ = iy._6 | |
1623 | + | let fh = iy._7 | |
1624 | + | let cz = iy._8 | |
1625 | + | let cA = iy._9 | |
1626 | + | let eL = iy._10 | |
1627 | + | let hU = iy._11 | |
1628 | + | let hV = iy._12 | |
1629 | + | let hW = iy._13 | |
1630 | + | let hN = iy._14 | |
1631 | + | let hO = iy._15 | |
1632 | + | let iz = iy._16 | |
1633 | + | let iA = (iz / 2) | |
1634 | + | let gj = (iz - iA) | |
1635 | + | let io = (aU() - iz) | |
1636 | + | let iB = if ((0 > io)) | |
1616 | 1637 | then 0 | |
1617 | - | else | |
1618 | - | let | |
1638 | + | else io | |
1639 | + | let ig = if ((eV > 0)) | |
1619 | 1640 | then { | |
1620 | - | let | |
1621 | - | if (( | |
1641 | + | let ig = invoke(aj(), "exchangeFreeAndLocked", [(eV + iz)], nil) | |
1642 | + | if ((ig == ig)) | |
1622 | 1643 | then nil | |
1623 | 1644 | else throw("Strict value is not equal to itself.") | |
1624 | 1645 | } | |
1625 | 1646 | else nil | |
1626 | - | if (( | |
1647 | + | if ((ig == ig)) | |
1627 | 1648 | then { | |
1628 | - | let | |
1629 | - | if (( | |
1649 | + | let if = invoke(aj(), "withdrawLocked", [iz], nil) | |
1650 | + | if ((if == if)) | |
1630 | 1651 | then { | |
1631 | - | let | |
1632 | - | if (( | |
1652 | + | let iC = invoke(aj(), "addFree", nil, [AttachedPayment(ah(), gj)]) | |
1653 | + | if ((iC == iC)) | |
1633 | 1654 | then { | |
1634 | - | let | |
1635 | - | if (( | |
1636 | - | then ((((if ( | |
1637 | - | then | |
1638 | - | else | |
1655 | + | let ib = invoke(ak(), "notifyNotional", [bO, fb], nil) | |
1656 | + | if ((ib == ib)) | |
1657 | + | then ((((if (iu) | |
1658 | + | then gI(bO, eZ, fi, fb, fc, bD()) | |
1659 | + | else gV(bO, bP)) ++ gO(cz, cA, eL, hU, hV, hW, hN, hO)) ++ gW(bF.caller, iA)) ++ gZ(iB)) | |
1639 | 1660 | else throw("Strict value is not equal to itself.") | |
1640 | 1661 | } | |
1641 | 1662 | else throw("Strict value is not equal to itself.") | |
1652 | 1673 | ||
1653 | 1674 | ||
1654 | 1675 | ||
1655 | - | @Callable( | |
1656 | - | func payFunding ( | |
1657 | - | let | |
1658 | - | if (( | |
1676 | + | @Callable(bF) | |
1677 | + | func payFunding (hs) = { | |
1678 | + | let ht = invoke(this, "updateOracle", [hs], nil) | |
1679 | + | if ((ht == ht)) | |
1659 | 1680 | then { | |
1660 | - | let | |
1661 | - | if (( | |
1681 | + | let hu = invoke(this, "syncTerminalPriceToOracle", nil, nil) | |
1682 | + | if ((hu == hu)) | |
1662 | 1683 | then { | |
1663 | - | let | |
1664 | - | if (if (if (( | |
1684 | + | let iD = bj() | |
1685 | + | if (if (if ((iD > bD())) | |
1665 | 1686 | then true | |
1666 | - | else !( | |
1687 | + | else !(ch())) | |
1667 | 1688 | then true | |
1668 | - | else | |
1669 | - | then throw(((("Invalid funding block timestamp: " + toString( | |
1689 | + | else ci()) | |
1690 | + | then throw(((("Invalid funding block timestamp: " + toString(bD())) + " < ") + toString(iD))) | |
1670 | 1691 | else { | |
1671 | - | let | |
1672 | - | let | |
1673 | - | let | |
1674 | - | let | |
1675 | - | let | |
1676 | - | let | |
1692 | + | let fH = ds() | |
1693 | + | let iE = fG() | |
1694 | + | let fK = iE._1 | |
1695 | + | let fL = iE._2 | |
1696 | + | let fO = iE._3 | |
1697 | + | let iF = if ((fO > 0)) | |
1677 | 1698 | then { | |
1678 | - | let | |
1679 | - | if (( | |
1699 | + | let iF = invoke(aj(), "exchangeFreeAndLocked", [-(fO)], nil) | |
1700 | + | if ((iF == iF)) | |
1680 | 1701 | then nil | |
1681 | 1702 | else throw("Strict value is not equal to itself.") | |
1682 | 1703 | } | |
1683 | 1704 | else nil | |
1684 | - | if (( | |
1685 | - | then | |
1705 | + | if ((iF == iF)) | |
1706 | + | then gy((iD + bm()), (bu() + fL), (bv() + fK), aG(fL, fH), aG(fK, fH)) | |
1686 | 1707 | else throw("Strict value is not equal to itself.") | |
1687 | 1708 | } | |
1688 | 1709 | } | |
1693 | 1714 | ||
1694 | 1715 | ||
1695 | 1716 | ||
1696 | - | @Callable( | |
1697 | - | func updateOracle ( | |
1717 | + | @Callable(bF) | |
1718 | + | func updateOracle (hs) = if ((bC() == aC)) | |
1698 | 1719 | then nil | |
1699 | 1720 | else { | |
1700 | - | let | |
1701 | - | let | |
1702 | - | let | |
1703 | - | let | |
1704 | - | if (( | |
1721 | + | let iG = split_4C(hs, "::") | |
1722 | + | let dt = valueOrErrorMessage(bZ(a), "No base asset oracle data") | |
1723 | + | let iH = dt._1 | |
1724 | + | let iI = invoke(iH, "updateData", [iG[0]], nil) | |
1725 | + | if ((iI == iI)) | |
1705 | 1726 | then { | |
1706 | - | let | |
1707 | - | let | |
1727 | + | let dv = bZ(b) | |
1728 | + | let iJ = if (isDefined(dv)) | |
1708 | 1729 | then { | |
1709 | - | let | |
1710 | - | let | |
1711 | - | let | |
1712 | - | if (( | |
1730 | + | let dx = value(dv) | |
1731 | + | let iK = dx._1 | |
1732 | + | let iJ = invoke(iK, "updateData", [iG[1]], nil) | |
1733 | + | if ((iJ == iJ)) | |
1713 | 1734 | then nil | |
1714 | 1735 | else throw("Strict value is not equal to itself.") | |
1715 | 1736 | } | |
1716 | 1737 | else nil | |
1717 | - | if (( | |
1738 | + | if ((iJ == iJ)) | |
1718 | 1739 | then nil | |
1719 | 1740 | else throw("Strict value is not equal to itself.") | |
1720 | 1741 | } | |
1723 | 1744 | ||
1724 | 1745 | ||
1725 | 1746 | ||
1726 | - | @Callable( | |
1747 | + | @Callable(bF) | |
1727 | 1748 | func syncTerminalPriceToOracle () = { | |
1728 | - | let | |
1729 | - | let | |
1730 | - | let | |
1731 | - | let | |
1732 | - | let | |
1733 | - | let | |
1734 | - | let | |
1735 | - | then (aL( | |
1749 | + | let cr = aZ() | |
1750 | + | let cs = bb() | |
1751 | + | let iL = fB(ds(), cr, cs) | |
1752 | + | let hj = iL._1 | |
1753 | + | let hk = iL._2 | |
1754 | + | let fF = iL._3 | |
1755 | + | let iM = if (if ((0 > fF)) | |
1756 | + | then (aL(fF) > aU()) | |
1736 | 1757 | else false) | |
1737 | 1758 | then -(aU()) | |
1738 | - | else | |
1739 | - | let | |
1759 | + | else fF | |
1760 | + | let hl = if ((iM != 0)) | |
1740 | 1761 | then { | |
1741 | - | let | |
1742 | - | if (( | |
1762 | + | let hl = invoke(aj(), "exchangeFreeAndLocked", [iM], nil) | |
1763 | + | if ((hl == hl)) | |
1743 | 1764 | then nil | |
1744 | 1765 | else throw("Strict value is not equal to itself.") | |
1745 | 1766 | } | |
1746 | 1767 | else nil | |
1747 | - | if (( | |
1748 | - | then ( | |
1768 | + | if ((hl == hl)) | |
1769 | + | then (gZ((aU() + iM)) ++ gN(hj, hk)) | |
1749 | 1770 | else throw("Strict value is not equal to itself.") | |
1750 | 1771 | } | |
1751 | 1772 | ||
1752 | 1773 | ||
1753 | 1774 | ||
1754 | - | @Callable( | |
1755 | - | func ensureCalledOnce () = if (( | |
1775 | + | @Callable(bF) | |
1776 | + | func ensureCalledOnce () = if ((bF.caller != this)) | |
1756 | 1777 | then throw("Invalid saveCurrentTxId parameters") | |
1757 | 1778 | else { | |
1758 | - | let | |
1759 | - | let | |
1760 | - | if (( | |
1761 | - | then [StringEntry(S, | |
1779 | + | let iN = toBase58String(bF.transactionId) | |
1780 | + | let iO = valueOrElse(getString(this, S), "") | |
1781 | + | if ((iO != iN)) | |
1782 | + | then [StringEntry(S, iN)] | |
1762 | 1783 | else throw("Can not call vAMM methods twice in one tx") | |
1763 | 1784 | } | |
1764 | 1785 | ||
1765 | 1786 | ||
1766 | 1787 | ||
1767 | - | @Callable( | |
1768 | - | func migratePosition ( | |
1769 | - | let | |
1770 | - | if (if (isDefined( | |
1771 | - | then isDefined(addressFromString( | |
1788 | + | @Callable(bF) | |
1789 | + | func migratePosition (bO) = { | |
1790 | + | let bR = getInteger(this, ac(e, bO)) | |
1791 | + | if (if (isDefined(bR)) | |
1792 | + | then isDefined(addressFromString(bO)) | |
1772 | 1793 | else false) | |
1773 | 1794 | then { | |
1774 | - | let | |
1775 | - | let | |
1776 | - | let | |
1777 | - | let | |
1778 | - | let | |
1779 | - | let | |
1780 | - | let | |
1781 | - | let | |
1782 | - | let | |
1783 | - | [DeleteEntry(ac(e, | |
1795 | + | let iP = getIntegerValue(this, ac(e, bO)) | |
1796 | + | let iQ = getIntegerValue(this, ac(f, bO)) | |
1797 | + | let iR = getIntegerValue(this, ac(g, bO)) | |
1798 | + | let iS = getIntegerValue(this, ac(h, bO)) | |
1799 | + | let iT = valueOrElse(getInteger(this, ac(k, bO)), lastBlock.timestamp) | |
1800 | + | let iU = valueOrElse(getInteger(this, ac(j, bO)), aW()) | |
1801 | + | let iV = getIntegerValue(this, ac(i, bO)) | |
1802 | + | let iW = bU(iP) | |
1803 | + | let bQ = ((bO + "_") + toString(iW)) | |
1804 | + | [DeleteEntry(ac(e, bO)), DeleteEntry(ac(f, bO)), DeleteEntry(ac(g, bO)), DeleteEntry(ac(h, bO)), DeleteEntry(ac(k, bO)), DeleteEntry(ac(j, bO)), DeleteEntry(ac(i, bO)), IntegerEntry(ac(e, bQ), iP), IntegerEntry(ac(f, bQ), iQ), IntegerEntry(ac(g, bQ), iR), IntegerEntry(ac(h, bQ), iS), IntegerEntry(ac(k, bQ), iT), IntegerEntry(ac(j, bQ), iU), IntegerEntry(ac(i, bQ), iV)] | |
1784 | 1805 | } | |
1785 | - | else throw(("Nothing to migrate for " + | |
1806 | + | else throw(("Nothing to migrate for " + bO)) | |
1786 | 1807 | } | |
1787 | 1808 | ||
1788 | 1809 | ||
1789 | 1810 | ||
1790 | - | @Callable( | |
1791 | - | func view_calcRemainMarginWithFundingPayment ( | |
1792 | - | let | |
1793 | - | if (( | |
1811 | + | @Callable(bF) | |
1812 | + | func view_calcRemainMarginWithFundingPayment (bO,bP,hs) = { | |
1813 | + | let ht = invoke(this, "updateOracle", [hs], nil) | |
1814 | + | if ((ht == ht)) | |
1794 | 1815 | then { | |
1795 | - | let | |
1796 | - | if (( | |
1816 | + | let hu = invoke(this, "syncTerminalPriceToOracle", nil, nil) | |
1817 | + | if ((hu == hu)) | |
1797 | 1818 | then { | |
1798 | - | let | |
1799 | - | let | |
1800 | - | let | |
1801 | - | let | |
1802 | - | let | |
1803 | - | let | |
1804 | - | let | |
1805 | - | let | |
1806 | - | let | |
1807 | - | let | |
1808 | - | let | |
1809 | - | let | |
1810 | - | let | |
1811 | - | let | |
1812 | - | throw(((((((aE( | |
1819 | + | let iX = bN(bO, bP) | |
1820 | + | let bT = iX._1 | |
1821 | + | let ea = iX._2 | |
1822 | + | let ej = iX._3 | |
1823 | + | let ec = iX._4 | |
1824 | + | let el = iX._5 | |
1825 | + | let iY = dY(bO, bP, ay) | |
1826 | + | let dT = iY._1 | |
1827 | + | let dX = iY._2 | |
1828 | + | let iZ = cR(bT, ea, ec, el, dX) | |
1829 | + | let cZ = iZ._1 | |
1830 | + | let da = iZ._2 | |
1831 | + | let cV = iZ._3 | |
1832 | + | let cQ = iZ._4 | |
1833 | + | throw(((((((aE(cZ) + aE(cV)) + aE(eo(bO, bP))) + aE(dX)) + aE(da)) + aE(dT)) + aE(cQ))) | |
1813 | 1834 | } | |
1814 | 1835 | else throw("Strict value is not equal to itself.") | |
1815 | 1836 | } | |
1818 | 1839 | ||
1819 | 1840 | ||
1820 | 1841 | ||
1821 | - | @Callable( | |
1822 | - | func view_getPegAdjustCost ( | |
1823 | - | let | |
1824 | - | let | |
1825 | - | let | |
1826 | - | throw(toString( | |
1842 | + | @Callable(bF) | |
1843 | + | func view_getPegAdjustCost (ja) = { | |
1844 | + | let cr = aZ() | |
1845 | + | let cs = bb() | |
1846 | + | let fA = fB(ja, cr, cs) | |
1847 | + | throw(toString(fA._3)) | |
1827 | 1848 | } | |
1828 | 1849 | ||
1829 | 1850 | ||
1830 | 1851 | ||
1831 | - | @Callable( | |
1852 | + | @Callable(bF) | |
1832 | 1853 | func view_getTerminalAmmPrice () = { | |
1833 | - | let | |
1834 | - | let | |
1835 | - | let | |
1836 | - | let | |
1837 | - | throw(toString( | |
1854 | + | let jb = fj() | |
1855 | + | let fn = jb._1 | |
1856 | + | let fo = jb._2 | |
1857 | + | let he = aG(aI(fn, bd()), aI(fo, be())) | |
1858 | + | throw(toString(he)) | |
1838 | 1859 | } | |
1839 | 1860 | ||
1840 | 1861 | ||
1841 | 1862 | ||
1842 | - | @Callable( | |
1843 | - | func view_getFunding ( | |
1844 | - | let | |
1845 | - | if (( | |
1863 | + | @Callable(bF) | |
1864 | + | func view_getFunding (hs) = { | |
1865 | + | let ht = invoke(this, "updateOracle", [hs], nil) | |
1866 | + | if ((ht == ht)) | |
1846 | 1867 | then { | |
1847 | - | let | |
1848 | - | if (( | |
1868 | + | let hu = invoke(this, "syncTerminalPriceToOracle", nil, nil) | |
1869 | + | if ((hu == hu)) | |
1849 | 1870 | then { | |
1850 | - | let | |
1851 | - | let | |
1852 | - | let | |
1853 | - | let | |
1854 | - | let | |
1855 | - | let | |
1856 | - | let | |
1857 | - | throw(((((aE( | |
1871 | + | let fH = ds() | |
1872 | + | let jc = fG() | |
1873 | + | let fK = jc._1 | |
1874 | + | let fL = jc._2 | |
1875 | + | let fO = jc._3 | |
1876 | + | let jd = aG(fL, fH) | |
1877 | + | let je = aG(fK, fH) | |
1878 | + | throw(((((aE(jd) + aE(je)) + aE(dM())) + aE(ds())) + aE(fO))) | |
1858 | 1879 | } | |
1859 | 1880 | else throw("Strict value is not equal to itself.") | |
1860 | 1881 | } | |
1863 | 1884 | ||
1864 | 1885 | ||
1865 | 1886 | ||
1866 | - | @Callable( | |
1887 | + | @Callable(bF) | |
1867 | 1888 | func computeSpotPrice () = { | |
1868 | - | let | |
1869 | - | if (( | |
1889 | + | let hu = invoke(this, "syncTerminalPriceToOracle", nil, nil) | |
1890 | + | if ((hu == hu)) | |
1870 | 1891 | then { | |
1871 | - | let | |
1872 | - | $Tuple2(nil, | |
1892 | + | let fA = dM() | |
1893 | + | $Tuple2(nil, fA) | |
1873 | 1894 | } | |
1874 | 1895 | else throw("Strict value is not equal to itself.") | |
1875 | 1896 | } | |
1876 | 1897 | ||
1877 | 1898 | ||
1878 | 1899 | ||
1879 | - | @Callable( | |
1880 | - | func computeFeeForTraderWithArtifact ( | |
1881 | - | let | |
1882 | - | $Tuple2(nil, | |
1900 | + | @Callable(bF) | |
1901 | + | func computeFeeForTraderWithArtifact (bO,fQ) = { | |
1902 | + | let fA = fZ(bO, fQ) | |
1903 | + | $Tuple2(nil, fA) | |
1883 | 1904 | } | |
1884 | 1905 | ||
1885 | 1906 | ||
1886 | - | @Verifier( | |
1887 | - | func | |
1888 | - | let | |
1889 | - | if (isDefined( | |
1907 | + | @Verifier(jf) | |
1908 | + | func jg () = { | |
1909 | + | let jh = getString(this, T) | |
1910 | + | if (isDefined(jh)) | |
1890 | 1911 | then { | |
1891 | - | let | |
1892 | - | if (isDefined( | |
1893 | - | then valueOrElse(getBoolean(addressFromStringValue(value( | |
1912 | + | let ji = getString(addressFromStringValue(value(jh)), V) | |
1913 | + | if (isDefined(ji)) | |
1914 | + | then valueOrElse(getBoolean(addressFromStringValue(value(ji)), ((("status_" + toString(this)) + "_") + toBase58String(jf.id))), false) | |
1894 | 1915 | else throw("unable to verify: admin not set in coordinator") | |
1895 | 1916 | } | |
1896 | - | else sigVerify( | |
1917 | + | else sigVerify(jf.bodyBytes, jf.proofs[0], jf.senderPublicKey) | |
1897 | 1918 | } | |
1898 | 1919 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = "k_baseOracle" | |
5 | 5 | ||
6 | 6 | let b = "k_quoteOracle" | |
7 | 7 | ||
8 | 8 | let c = "k_balance" | |
9 | 9 | ||
10 | 10 | let d = "k_sequence" | |
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_positionSequence" | |
21 | 21 | ||
22 | 22 | let j = "k_positionFee" | |
23 | 23 | ||
24 | 24 | let k = "k_positionTimestamp" | |
25 | 25 | ||
26 | 26 | let l = "k_initialized" | |
27 | 27 | ||
28 | 28 | let m = "k_paused" | |
29 | 29 | ||
30 | 30 | let n = "k_closeOnly" | |
31 | 31 | ||
32 | 32 | let o = "k_fee" | |
33 | 33 | ||
34 | 34 | let p = "k_rollover_fee" | |
35 | 35 | ||
36 | 36 | let q = "k_fundingPeriod" | |
37 | 37 | ||
38 | 38 | let r = "k_initMarginRatio" | |
39 | 39 | ||
40 | 40 | let s = "k_mmr" | |
41 | 41 | ||
42 | 42 | let t = "k_liquidationFeeRatio" | |
43 | 43 | ||
44 | 44 | let u = "k_partLiquidationRatio" | |
45 | 45 | ||
46 | 46 | let v = "k_spreadLimit" | |
47 | 47 | ||
48 | 48 | let w = "k_maxPriceImpact" | |
49 | 49 | ||
50 | 50 | let x = "k_maxPriceSpread" | |
51 | 51 | ||
52 | 52 | let y = "k_maxOpenNotional" | |
53 | 53 | ||
54 | 54 | let z = "k_feeToStakersPercent" | |
55 | 55 | ||
56 | 56 | let A = "k_maxOracleDelay" | |
57 | 57 | ||
58 | 58 | let B = "k_fundingMode" | |
59 | 59 | ||
60 | 60 | let C = "k_oracleMode" | |
61 | 61 | ||
62 | 62 | let D = "k_latestLongPremiumFraction" | |
63 | 63 | ||
64 | 64 | let E = "k_latestShortPremiumFraction" | |
65 | 65 | ||
66 | 66 | let F = "k_nextFundingBlockMinTimestamp" | |
67 | 67 | ||
68 | 68 | let G = "k_longFundingRate" | |
69 | 69 | ||
70 | 70 | let H = "k_shortFundingRate" | |
71 | 71 | ||
72 | 72 | let I = "k_qtAstR" | |
73 | 73 | ||
74 | 74 | let J = "k_bsAstR" | |
75 | 75 | ||
76 | 76 | let K = "k_qtAstW" | |
77 | 77 | ||
78 | 78 | let L = "k_bsAstW" | |
79 | 79 | ||
80 | 80 | let M = "k_totalPositionSize" | |
81 | 81 | ||
82 | 82 | let N = "k_totalLongPositionSize" | |
83 | 83 | ||
84 | 84 | let O = "k_totalShortPositionSize" | |
85 | 85 | ||
86 | 86 | let P = "k_openInterestNotional" | |
87 | 87 | ||
88 | 88 | let Q = "k_openInterestShort" | |
89 | 89 | ||
90 | 90 | let R = "k_openInterestLong" | |
91 | 91 | ||
92 | 92 | let S = "k_lastTx" | |
93 | 93 | ||
94 | 94 | let T = "k_coordinatorAddress" | |
95 | 95 | ||
96 | 96 | let U = "k_vault_address" | |
97 | 97 | ||
98 | 98 | let V = "k_admin_address" | |
99 | 99 | ||
100 | 100 | let W = "k_quote_asset" | |
101 | 101 | ||
102 | 102 | let X = "k_staking_address" | |
103 | 103 | ||
104 | 104 | let Y = "k_miner_address" | |
105 | 105 | ||
106 | 106 | let Z = "k_orders_address" | |
107 | 107 | ||
108 | 108 | let aa = "k_referral_address" | |
109 | 109 | ||
110 | 110 | let ab = "k_nft_manager_address" | |
111 | 111 | ||
112 | 112 | func ac (ad,ae) = ((ad + "_") + ae) | |
113 | 113 | ||
114 | 114 | ||
115 | 115 | func af () = valueOrErrorMessage(addressFromString(getStringValue(this, T)), "Coordinator not set") | |
116 | 116 | ||
117 | 117 | ||
118 | 118 | func ag () = addressFromString(getStringValue(af(), V)) | |
119 | 119 | ||
120 | 120 | ||
121 | 121 | func ah () = fromBase58String(getStringValue(af(), W)) | |
122 | 122 | ||
123 | 123 | ||
124 | 124 | func ai () = valueOrErrorMessage(addressFromString(getStringValue(af(), X)), "Staking not set") | |
125 | 125 | ||
126 | 126 | ||
127 | 127 | func aj () = valueOrErrorMessage(addressFromString(getStringValue(af(), U)), "Vault not set") | |
128 | 128 | ||
129 | 129 | ||
130 | 130 | func ak () = valueOrErrorMessage(addressFromString(getStringValue(af(), Y)), "Miner not set") | |
131 | 131 | ||
132 | 132 | ||
133 | 133 | func al () = valueOrErrorMessage(addressFromString(getStringValue(af(), Z)), "Orders not set") | |
134 | 134 | ||
135 | 135 | ||
136 | 136 | func am () = valueOrErrorMessage(addressFromString(getStringValue(af(), aa)), "Referral not set") | |
137 | 137 | ||
138 | 138 | ||
139 | 139 | func an () = valueOrErrorMessage(addressFromString(getStringValue(af(), ab)), "NFT Manager not set") | |
140 | 140 | ||
141 | 141 | ||
142 | 142 | let ao = "k_token_param" | |
143 | 143 | ||
144 | 144 | let ap = "k_token_type" | |
145 | 145 | ||
146 | 146 | let aq = "fee_reduction" | |
147 | 147 | ||
148 | 148 | let ar = 1 | |
149 | 149 | ||
150 | 150 | let as = 2 | |
151 | 151 | ||
152 | 152 | let at = 1000 | |
153 | 153 | ||
154 | 154 | let au = 6 | |
155 | 155 | ||
156 | 156 | let av = (1 * (((((10 * 10) * 10) * 10) * 10) * 10)) | |
157 | 157 | ||
158 | 158 | let aw = (525600 * av) | |
159 | 159 | ||
160 | 160 | let ax = (86400 * av) | |
161 | 161 | ||
162 | 162 | let ay = 1 | |
163 | 163 | ||
164 | 164 | let az = 2 | |
165 | 165 | ||
166 | 166 | let aA = 1 | |
167 | 167 | ||
168 | 168 | let aB = 2 | |
169 | 169 | ||
170 | 170 | let aC = 1 | |
171 | 171 | ||
172 | 172 | let aD = 2 | |
173 | 173 | ||
174 | 174 | func aE (aF) = (toString(aF) + ",") | |
175 | 175 | ||
176 | 176 | ||
177 | 177 | func aG (aF,aH) = fraction(aF, av, aH, HALFEVEN) | |
178 | 178 | ||
179 | 179 | ||
180 | 180 | func aI (aF,aH) = fraction(aF, aH, av, HALFEVEN) | |
181 | 181 | ||
182 | 182 | ||
183 | 183 | func aJ (aF,aH) = fraction(aF, toBigInt(av), aH, HALFEVEN) | |
184 | 184 | ||
185 | 185 | ||
186 | 186 | func aK (aF,aH) = fraction(aF, aH, toBigInt(av), HALFEVEN) | |
187 | 187 | ||
188 | 188 | ||
189 | 189 | func aL (aF) = if ((aF > 0)) | |
190 | 190 | then aF | |
191 | 191 | else -(aF) | |
192 | 192 | ||
193 | 193 | ||
194 | 194 | func aM (aF,aH) = if ((aF >= aH)) | |
195 | 195 | then aF | |
196 | 196 | else aH | |
197 | 197 | ||
198 | 198 | ||
199 | 199 | func aN (aO) = valueOrErrorMessage(getInteger(this, aO), ("no value for " + aO)) | |
200 | 200 | ||
201 | 201 | ||
202 | 202 | func aP (aO,aQ) = valueOrElse(getInteger(this, aO), aQ) | |
203 | 203 | ||
204 | 204 | ||
205 | 205 | func aR (ae,ad) = { | |
206 | 206 | let aS = valueOrErrorMessage(getString(ae, ad), ("No value for key " + ad)) | |
207 | 207 | aS | |
208 | 208 | } | |
209 | 209 | ||
210 | 210 | ||
211 | 211 | func aT (ae,ad) = { | |
212 | 212 | let aS = valueOrErrorMessage(getInteger(ae, ad), ("No value for key " + ad)) | |
213 | 213 | aS | |
214 | 214 | } | |
215 | 215 | ||
216 | 216 | ||
217 | 217 | func aU () = aN(c) | |
218 | 218 | ||
219 | 219 | ||
220 | - | func aV () = | |
220 | + | func aV () = aP(c, 0) | |
221 | 221 | ||
222 | 222 | ||
223 | - | func aW () = aN( | |
223 | + | func aW () = aN(o) | |
224 | 224 | ||
225 | 225 | ||
226 | - | func aX () = aN( | |
226 | + | func aX () = aN(p) | |
227 | 227 | ||
228 | 228 | ||
229 | - | func aY () = aN( | |
229 | + | func aY () = aN(r) | |
230 | 230 | ||
231 | 231 | ||
232 | - | func aZ () = aN( | |
232 | + | func aZ () = aN(I) | |
233 | 233 | ||
234 | 234 | ||
235 | - | func ba () = aP( | |
235 | + | func ba () = aP(I, 0) | |
236 | 236 | ||
237 | 237 | ||
238 | - | func bb () = | |
238 | + | func bb () = aN(J) | |
239 | 239 | ||
240 | 240 | ||
241 | - | func bc () = | |
241 | + | func bc () = aP(J, 0) | |
242 | 242 | ||
243 | 243 | ||
244 | - | func bd () = | |
244 | + | func bd () = aP(K, av) | |
245 | 245 | ||
246 | 246 | ||
247 | - | func be () = | |
247 | + | func be () = aP(L, av) | |
248 | 248 | ||
249 | 249 | ||
250 | - | func bf () = aN( | |
250 | + | func bf () = aN(M) | |
251 | 251 | ||
252 | 252 | ||
253 | - | func bg () = aN( | |
253 | + | func bg () = aN(P) | |
254 | 254 | ||
255 | 255 | ||
256 | - | func bh () = aN( | |
256 | + | func bh () = aN(Q) | |
257 | 257 | ||
258 | 258 | ||
259 | - | func bi () = ( | |
259 | + | func bi () = aN(R) | |
260 | 260 | ||
261 | 261 | ||
262 | - | func bj () = ( | |
262 | + | func bj () = aN(F) | |
263 | 263 | ||
264 | 264 | ||
265 | - | func bk () = aN( | |
265 | + | func bk () = aN(q) | |
266 | 266 | ||
267 | 267 | ||
268 | - | func bl () = | |
268 | + | func bl () = (bk() * av) | |
269 | 269 | ||
270 | 270 | ||
271 | - | func bm () = | |
271 | + | func bm () = (bk() * at) | |
272 | 272 | ||
273 | 273 | ||
274 | - | func bn () = aN( | |
274 | + | func bn () = aN(s) | |
275 | 275 | ||
276 | 276 | ||
277 | - | func bo () = aN( | |
277 | + | func bo () = aN(t) | |
278 | 278 | ||
279 | 279 | ||
280 | - | func bp () = aN( | |
280 | + | func bp () = aN(u) | |
281 | 281 | ||
282 | 282 | ||
283 | - | func bq () = aN( | |
283 | + | func bq () = aN(v) | |
284 | 284 | ||
285 | 285 | ||
286 | - | func br () = aN( | |
286 | + | func br () = aN(w) | |
287 | 287 | ||
288 | 288 | ||
289 | - | func bs () = aN( | |
289 | + | func bs () = aN(x) | |
290 | 290 | ||
291 | 291 | ||
292 | - | func bt () = aN( | |
292 | + | func bt () = aN(y) | |
293 | 293 | ||
294 | 294 | ||
295 | - | func bu () = aN( | |
295 | + | func bu () = aN(D) | |
296 | 296 | ||
297 | 297 | ||
298 | - | func bv () = | |
298 | + | func bv () = aN(E) | |
299 | 299 | ||
300 | 300 | ||
301 | - | func bw () = aN( | |
301 | + | func bw () = aN(O) | |
302 | 302 | ||
303 | 303 | ||
304 | - | func bx () = aN( | |
304 | + | func bx () = aN(N) | |
305 | 305 | ||
306 | 306 | ||
307 | - | func by () = aP( | |
307 | + | func by () = aP(d, 0) | |
308 | 308 | ||
309 | 309 | ||
310 | - | func bz () = | |
310 | + | func bz () = aN(z) | |
311 | 311 | ||
312 | 312 | ||
313 | - | func bA () = | |
313 | + | func bA () = aN(A) | |
314 | 314 | ||
315 | 315 | ||
316 | - | func bB ( | |
316 | + | func bB () = aP(B, aA) | |
317 | 317 | ||
318 | 318 | ||
319 | - | func bD (bE,bF,bG) = { | |
320 | - | let bH = (bE - bF) | |
321 | - | if (if (bG) | |
322 | - | then (0 > bH) | |
319 | + | func bC () = aP(C, aC) | |
320 | + | ||
321 | + | ||
322 | + | func bD () = lastBlock.timestamp | |
323 | + | ||
324 | + | ||
325 | + | func bE (bF) = valueOrElse(getString(al(), "k_sender"), toString(bF.caller)) | |
326 | + | ||
327 | + | ||
328 | + | func bG (bH,bI,bJ) = { | |
329 | + | let bK = (bH - bI) | |
330 | + | if (if (bJ) | |
331 | + | then (0 > bK) | |
323 | 332 | else false) | |
324 | - | then throw(((("Invalid margin: " + toString( | |
325 | - | else if (if (!( | |
326 | - | then ( | |
333 | + | then throw(((("Invalid margin: " + toString(bH)) + " < ") + toString(bI))) | |
334 | + | else if (if (!(bJ)) | |
335 | + | then (bK >= 0) | |
327 | 336 | else false) | |
328 | - | then throw(((("Invalid margin: " + toString( | |
337 | + | then throw(((("Invalid margin: " + toString(bH)) + " > ") + toString(bI))) | |
329 | 338 | else true | |
330 | 339 | } | |
331 | 340 | ||
332 | 341 | ||
333 | - | func | |
342 | + | func bL (bM) = if ((bM == 0)) | |
334 | 343 | then throw("Should not be called with _positionSize == 0") | |
335 | - | else if (( | |
336 | - | then | |
337 | - | else | |
344 | + | else if ((bM > 0)) | |
345 | + | then bu() | |
346 | + | else bv() | |
338 | 347 | ||
339 | 348 | ||
340 | - | func | |
341 | - | let | |
342 | - | let | |
343 | - | let | |
344 | - | if ($isInstanceOf( | |
349 | + | func bN (bO,bP) = { | |
350 | + | let bQ = ((bO + "_") + toString(bP)) | |
351 | + | let bR = getInteger(this, ac(e, bQ)) | |
352 | + | let bS = bR | |
353 | + | if ($isInstanceOf(bS, "Int")) | |
345 | 354 | then { | |
346 | - | let | |
347 | - | $Tuple5( | |
355 | + | let bT = bS | |
356 | + | $Tuple5(bT, getIntegerValue(this, ac(f, bQ)), getIntegerValue(this, ac(g, bQ)), getIntegerValue(this, ac(h, bQ)), getIntegerValue(this, ac(k, bQ))) | |
348 | 357 | } | |
349 | 358 | else $Tuple5(0, 0, 0, 0, 0) | |
350 | 359 | } | |
351 | 360 | ||
352 | 361 | ||
353 | - | func | |
362 | + | func bU (bM) = if ((0 > bM)) | |
354 | 363 | then as | |
355 | 364 | else ar | |
356 | 365 | ||
357 | 366 | ||
358 | - | func | |
359 | - | let | |
360 | - | let | |
361 | - | let | |
362 | - | if ($isInstanceOf( | |
367 | + | func bV (bO,bP) = { | |
368 | + | let bQ = ((bO + "_") + toString(bP)) | |
369 | + | let bW = getInteger(this, ac(j, bQ)) | |
370 | + | let bS = bW | |
371 | + | if ($isInstanceOf(bS, "Int")) | |
363 | 372 | then { | |
364 | - | let | |
365 | - | | |
373 | + | let bX = bS | |
374 | + | bX | |
366 | 375 | } | |
367 | - | else | |
376 | + | else aW() | |
368 | 377 | } | |
369 | 378 | ||
370 | 379 | ||
371 | - | func | |
380 | + | func bY (bO,bP) = if ((bN(bO, bP)._1 == 0)) | |
372 | 381 | then throw("No open position") | |
373 | 382 | else true | |
374 | 383 | ||
375 | 384 | ||
376 | - | func | |
377 | - | let | |
378 | - | if (if (isDefined( | |
379 | - | then (value( | |
385 | + | func bZ (ca) = { | |
386 | + | let cb = getString(this, ca) | |
387 | + | if (if (isDefined(cb)) | |
388 | + | then (value(cb) != "") | |
380 | 389 | else false) | |
381 | 390 | then { | |
382 | - | let | |
383 | - | let | |
384 | - | let | |
385 | - | let | |
386 | - | let | |
387 | - | $Tuple4( | |
391 | + | let cc = split(value(cb), ",") | |
392 | + | let cd = valueOrErrorMessage(addressFromString(cc[0]), ("Invalid oracle address in: " + value(cb))) | |
393 | + | let ce = cc[1] | |
394 | + | let cf = cc[2] | |
395 | + | let cg = cc[3] | |
396 | + | $Tuple4(cd, ce, cf, cg) | |
388 | 397 | } | |
389 | 398 | else unit | |
390 | 399 | } | |
391 | 400 | ||
392 | 401 | ||
393 | - | func | |
402 | + | func ch () = valueOrElse(getBoolean(this, l), false) | |
394 | 403 | ||
395 | 404 | ||
396 | - | func | |
405 | + | func ci () = valueOrElse(getBoolean(this, m), false) | |
397 | 406 | ||
398 | 407 | ||
399 | - | func | |
408 | + | func cj () = valueOrElse(getBoolean(this, n), false) | |
400 | 409 | ||
401 | 410 | ||
402 | - | func | |
411 | + | func ck (cl,cm,cn) = if (cl) | |
403 | 412 | then { | |
404 | - | let | |
405 | - | if ((0 >= | |
413 | + | let co = (bb() - cn) | |
414 | + | if ((0 >= co)) | |
406 | 415 | then throw("Tx lead to base asset reserve <= 0, revert") | |
407 | - | else $Tuple3(( | |
416 | + | else $Tuple3((aZ() + cm), co, (bf() + cn)) | |
408 | 417 | } | |
409 | 418 | else { | |
410 | - | let | |
411 | - | if ((0 >= | |
419 | + | let cp = (aZ() - cm) | |
420 | + | if ((0 >= cp)) | |
412 | 421 | then throw("Tx lead to base quote reserve <= 0, revert") | |
413 | - | else $Tuple3( | |
422 | + | else $Tuple3(cp, (bb() + cn), (bf() - cn)) | |
414 | 423 | } | |
415 | 424 | ||
416 | 425 | ||
417 | - | func | |
418 | - | let | |
419 | - | let | |
420 | - | aK( | |
426 | + | func cq (cr,cs) = { | |
427 | + | let ct = toBigInt(cr) | |
428 | + | let cu = toBigInt(cs) | |
429 | + | aK(ct, cu) | |
421 | 430 | } | |
422 | 431 | ||
423 | 432 | ||
424 | - | func | |
425 | - | let | |
426 | - | let | |
427 | - | let | |
428 | - | let | |
429 | - | let | |
430 | - | let aO = | |
431 | - | let | |
432 | - | then ( | |
433 | - | else ( | |
434 | - | let | |
435 | - | let | |
436 | - | let | |
437 | - | then | |
438 | - | else -( | |
439 | - | let | |
440 | - | let | |
441 | - | let | |
442 | - | let | |
443 | - | let | |
444 | - | let | |
445 | - | let | |
446 | - | let | |
447 | - | let | |
448 | - | if (( | |
449 | - | then throw(((((((((((((("Price impact " + toString( | |
450 | - | else $Tuple4( | |
433 | + | func cv (cl,cm) = { | |
434 | + | let cr = aZ() | |
435 | + | let cs = bb() | |
436 | + | let cw = bd() | |
437 | + | let cx = be() | |
438 | + | let cy = aG(cm, cw) | |
439 | + | let aO = cq(cr, cs) | |
440 | + | let cz = if (cl) | |
441 | + | then (cr + cy) | |
442 | + | else (cr - cy) | |
443 | + | let cA = toInt(aJ(aO, toBigInt(cz))) | |
444 | + | let cB = aL((cA - cs)) | |
445 | + | let cC = if (cl) | |
446 | + | then cB | |
447 | + | else -(cB) | |
448 | + | let cD = ck(cl, cy, cB) | |
449 | + | let cE = cD._1 | |
450 | + | let cF = cD._2 | |
451 | + | let cG = cD._3 | |
452 | + | let cH = aG(aI(cr, cw), aI(cs, cx)) | |
453 | + | let cI = aG(cm, cB) | |
454 | + | let cJ = aL((cH - cI)) | |
455 | + | let cK = (av - aG(cH, (cH + cJ))) | |
456 | + | let cL = br() | |
457 | + | if ((cK > cL)) | |
458 | + | then throw(((((((((((((("Price impact " + toString(cK)) + " > max price impact ") + toString(cL)) + " before quote asset: ") + toString(cr)) + " before base asset: ") + toString(cs)) + " quote asset amount to exchange: ") + toString(cm)) + " price before: ") + toString(cH)) + " marketPrice: ") + toString(cI))) | |
459 | + | else $Tuple4(cC, cE, cF, cG) | |
451 | 460 | } | |
452 | 461 | ||
453 | 462 | ||
454 | - | func | |
455 | - | let | |
456 | - | let | |
457 | - | | |
463 | + | func cM (cN,cO) = { | |
464 | + | let cP = ((((bD() - cO) / 1000) / 60) * av) | |
465 | + | let cQ = aG(aI(aI(cN, cP), aX()), aw) | |
466 | + | cQ | |
458 | 467 | } | |
459 | 468 | ||
460 | 469 | ||
461 | - | func | |
462 | - | let | |
470 | + | func cR (cS,cN,cT,cO,cU) = { | |
471 | + | let cV = if ((cS != 0)) | |
463 | 472 | then { | |
464 | - | let | |
465 | - | aI(( | |
473 | + | let cW = bL(cS) | |
474 | + | aI((cW - cT), cS) | |
466 | 475 | } | |
467 | 476 | else 0 | |
468 | - | let | |
469 | - | let | |
470 | - | let | |
471 | - | then $Tuple2(0, aL( | |
472 | - | else $Tuple2(aL( | |
473 | - | let | |
474 | - | let | |
475 | - | $Tuple4( | |
477 | + | let cQ = cM(cN, cO) | |
478 | + | let cX = (((cU - cQ) - cV) + cN) | |
479 | + | let cY = if ((0 > cX)) | |
480 | + | then $Tuple2(0, aL(cX)) | |
481 | + | else $Tuple2(aL(cX), 0) | |
482 | + | let cZ = cY._1 | |
483 | + | let da = cY._2 | |
484 | + | $Tuple4(cZ, da, cV, cQ) | |
476 | 485 | } | |
477 | 486 | ||
478 | 487 | ||
479 | - | func | |
480 | - | let | |
481 | - | if (( | |
488 | + | func db (cl,cn,dc,dd,de,df,dg) = { | |
489 | + | let cH = aG(aI(dd, de), aI(df, dg)) | |
490 | + | if ((cn == 0)) | |
482 | 491 | then throw("Invalid base asset amount") | |
483 | 492 | else { | |
484 | - | let aO = | |
485 | - | let | |
486 | - | then ( | |
487 | - | else ( | |
488 | - | let | |
489 | - | let | |
490 | - | let | |
491 | - | let | |
492 | - | let | |
493 | - | let | |
494 | - | let | |
495 | - | let | |
496 | - | let | |
497 | - | let | |
498 | - | let | |
499 | - | if (if (( | |
500 | - | then | |
493 | + | let aO = cq(dd, df) | |
494 | + | let dh = if (cl) | |
495 | + | then (df + cn) | |
496 | + | else (df - cn) | |
497 | + | let di = toInt(aJ(aO, toBigInt(dh))) | |
498 | + | let dj = aL((di - dd)) | |
499 | + | let dk = aI(dj, de) | |
500 | + | let cL = br() | |
501 | + | let dl = ck(!(cl), dj, cn) | |
502 | + | let cE = dl._1 | |
503 | + | let cF = dl._2 | |
504 | + | let cG = dl._3 | |
505 | + | let cI = aG(dk, cn) | |
506 | + | let cJ = aL((cH - cI)) | |
507 | + | let cK = (av - aG(cH, (cH + cJ))) | |
508 | + | if (if ((cK > cL)) | |
509 | + | then dc | |
501 | 510 | else false) | |
502 | - | then throw(((((((((((((("Price impact " + toString( | |
503 | - | else $Tuple7( | |
504 | - | then aL( | |
505 | - | else 0)), ( | |
506 | - | then aL( | |
507 | - | else 0)), | |
511 | + | then throw(((((((((((((("Price impact " + toString(cK)) + " > max price impact ") + toString(cL)) + " before quote asset: ") + toString(dd)) + " before base asset: ") + toString(df)) + " base asset amount to exchange: ") + toString(cn)) + " price before: ") + toString(cH)) + " market price: ") + toString(cI))) | |
512 | + | else $Tuple7(dk, cE, cF, cG, (bx() - (if (cl) | |
513 | + | then aL(cn) | |
514 | + | else 0)), (bw() - (if (!(cl)) | |
515 | + | then aL(cn) | |
516 | + | else 0)), cK) | |
508 | 517 | } | |
509 | 518 | } | |
510 | 519 | ||
511 | 520 | ||
512 | - | func | |
521 | + | func dm (cl,cn,dc) = db(cl, cn, dc, aZ(), bd(), bb(), be()) | |
513 | 522 | ||
514 | 523 | ||
515 | - | func | |
516 | - | let | |
517 | - | if (( | |
524 | + | func dn (do,ce,cf) = { | |
525 | + | let dp = valueOrErrorMessage(getInteger(do, ce), ((("Can not get oracle price. Oracle: " + toString(do)) + " key: ") + ce)) | |
526 | + | if ((cf != "")) | |
518 | 527 | then { | |
519 | - | let | |
520 | - | let | |
521 | - | if ((( | |
522 | - | then throw(((("Oracle stale data. Last oracle block: " + toString( | |
523 | - | else | |
528 | + | let dq = height | |
529 | + | let dr = valueOrErrorMessage(getInteger(do, cf), ((("Can not get oracle block. Oracle: " + toString(do)) + " key: ") + cf)) | |
530 | + | if (((dq - dr) > bA())) | |
531 | + | then throw(((("Oracle stale data. Last oracle block: " + toString(dr)) + " current block: ") + toString(dq))) | |
532 | + | else dp | |
524 | 533 | } | |
525 | - | else | |
534 | + | else dp | |
526 | 535 | } | |
527 | 536 | ||
528 | 537 | ||
529 | - | func | |
530 | - | let | |
531 | - | let | |
532 | - | let | |
533 | - | let | |
538 | + | func ds () = { | |
539 | + | let dt = valueOrErrorMessage(bZ(a), "No base asset oracle data") | |
540 | + | let du = dn(dt._1, dt._2, dt._3) | |
541 | + | let dv = bZ(b) | |
542 | + | let dw = if (isDefined(dv)) | |
534 | 543 | then { | |
535 | - | let | |
536 | - | | |
544 | + | let dx = value(dv) | |
545 | + | dn(dx._1, dx._2, dx._3) | |
537 | 546 | } | |
538 | 547 | else av | |
539 | - | aG( | |
548 | + | aG(du, dw) | |
540 | 549 | } | |
541 | 550 | ||
542 | 551 | ||
543 | - | func | |
544 | - | let | |
545 | - | let | |
546 | - | let | |
547 | - | if (( | |
552 | + | func dy () = { | |
553 | + | let dt = valueOrErrorMessage(bZ(a), "No base asset oracle data") | |
554 | + | let do = dt._1 | |
555 | + | let cg = dt._4 | |
556 | + | if ((cg != "")) | |
548 | 557 | then { | |
549 | - | let | |
550 | - | !( | |
558 | + | let dz = valueOrErrorMessage(getBoolean(do, cg), ((("Can not get oracle is open/closed. Oracle: " + toString(do)) + " key: ") + cg)) | |
559 | + | !(dz) | |
551 | 560 | } | |
552 | 561 | else false | |
553 | 562 | } | |
554 | 563 | ||
555 | 564 | ||
556 | - | func | |
557 | - | let | |
558 | - | let | |
559 | - | let | |
560 | - | | |
565 | + | func dA (dB,dd,df,cw,cx) = { | |
566 | + | let dC = aG(aI(dd, cw), aI(df, cx)) | |
567 | + | let dD = aG((dB + dC), (2 * av)) | |
568 | + | let dA = aG(aL((dB - dC)), dD) | |
569 | + | dA | |
561 | 570 | } | |
562 | 571 | ||
563 | 572 | ||
564 | - | func | |
565 | - | let | |
566 | - | let | |
567 | - | let | |
568 | - | let | |
569 | - | let | |
570 | - | if (if (( | |
571 | - | then ( | |
573 | + | func dE (dd,df) = { | |
574 | + | let dF = ds() | |
575 | + | let cw = bd() | |
576 | + | let cx = be() | |
577 | + | let dG = dA(dF, aZ(), bb(), cw, cx) | |
578 | + | let dH = dA(dF, dd, df, cw, cx) | |
579 | + | if (if ((dH > bs())) | |
580 | + | then (dH > dG) | |
572 | 581 | else false) | |
573 | - | then throw(((("Price spread " + toString( | |
582 | + | then throw(((("Price spread " + toString(dH)) + " > max price spread ") + toString(bs()))) | |
574 | 583 | else true | |
575 | 584 | } | |
576 | 585 | ||
577 | 586 | ||
578 | - | func | |
579 | - | let | |
580 | - | if (( | |
581 | - | then throw(((("Long open notional " + toString( | |
582 | - | else if (( | |
583 | - | then throw(((("Short open notional " + toString( | |
587 | + | func dI (dJ,dK) = { | |
588 | + | let dL = bt() | |
589 | + | if ((dJ > dL)) | |
590 | + | then throw(((("Long open notional " + toString(dJ)) + " > max open notional ") + toString(dL))) | |
591 | + | else if ((dK > dL)) | |
592 | + | then throw(((("Short open notional " + toString(dK)) + " > max open notional ") + toString(dL))) | |
584 | 593 | else true | |
585 | 594 | } | |
586 | 595 | ||
587 | 596 | ||
588 | - | func | |
589 | - | let | |
590 | - | let | |
591 | - | let | |
592 | - | let | |
593 | - | aG(aI( | |
597 | + | func dM () = { | |
598 | + | let dd = aZ() | |
599 | + | let df = bb() | |
600 | + | let cw = bd() | |
601 | + | let cx = be() | |
602 | + | aG(aI(dd, cw), aI(df, cx)) | |
594 | 603 | } | |
595 | 604 | ||
596 | 605 | ||
597 | - | func | |
598 | - | let | |
599 | - | let | |
600 | - | (aG(aL(( | |
606 | + | func dN () = { | |
607 | + | let dF = ds() | |
608 | + | let dO = dM() | |
609 | + | (aG(aL((dF - dO)), dF) > bq()) | |
601 | 610 | } | |
602 | 611 | ||
603 | 612 | ||
604 | - | func | |
605 | - | let | |
606 | - | let | |
607 | - | let | |
613 | + | func dP (bM,dQ,dd,de,df,dg) = { | |
614 | + | let dR = aL(bM) | |
615 | + | let dS = (0 > bM) | |
616 | + | let dT = if ((dQ == ay)) | |
608 | 617 | then { | |
609 | - | let | |
610 | - | | |
618 | + | let dU = db(!(dS), dR, false, dd, de, df, dg)._1 | |
619 | + | dU | |
611 | 620 | } | |
612 | - | else aI( | |
613 | - | | |
621 | + | else aI(dR, ds()) | |
622 | + | dT | |
614 | 623 | } | |
615 | 624 | ||
616 | 625 | ||
617 | - | func | |
626 | + | func dV (bM,dW,dd,de,df,dg,dQ) = if ((bM == 0)) | |
618 | 627 | then throw("Invalid position size") | |
619 | 628 | else { | |
620 | - | let | |
621 | - | let | |
622 | - | let | |
623 | - | then ( | |
624 | - | else ( | |
625 | - | $Tuple2( | |
629 | + | let dS = (0 > bM) | |
630 | + | let dT = dP(bM, dQ, dd, de, df, dg) | |
631 | + | let dX = if (dS) | |
632 | + | then (dW - dT) | |
633 | + | else (dT - dW) | |
634 | + | $Tuple2(dT, dX) | |
626 | 635 | } | |
627 | 636 | ||
628 | 637 | ||
629 | - | func | |
630 | - | let | |
631 | - | let | |
632 | - | let | |
633 | - | let | |
634 | - | let | |
635 | - | | |
638 | + | func dY (bO,bP,dQ) = { | |
639 | + | let dZ = bN(bO, bP) | |
640 | + | let bT = dZ._1 | |
641 | + | let ea = dZ._2 | |
642 | + | let eb = dZ._3 | |
643 | + | let ec = dZ._4 | |
644 | + | dV(bT, eb, aZ(), bd(), bb(), be(), dQ) | |
636 | 645 | } | |
637 | 646 | ||
638 | 647 | ||
639 | - | func | |
648 | + | func ed (ee,ef,eg) = aG((ee - ef), eg) | |
640 | 649 | ||
641 | 650 | ||
642 | - | func | |
643 | - | let | |
644 | - | let | |
645 | - | let | |
646 | - | let | |
647 | - | let | |
648 | - | let | |
649 | - | let | |
650 | - | let | |
651 | - | let | |
652 | - | let | |
653 | - | let | |
654 | - | let | |
655 | - | | |
651 | + | func eh (bO,bP,dQ) = { | |
652 | + | let ei = bN(bO, bP) | |
653 | + | let bT = ei._1 | |
654 | + | let ea = ei._2 | |
655 | + | let ej = ei._3 | |
656 | + | let ek = ei._4 | |
657 | + | let el = ei._5 | |
658 | + | let em = dY(bO, bP, dQ) | |
659 | + | let dT = em._1 | |
660 | + | let dX = em._2 | |
661 | + | let en = cR(bT, ea, ek, el, dX) | |
662 | + | let cZ = en._1 | |
663 | + | let da = en._2 | |
664 | + | ed(cZ, da, dT) | |
656 | 665 | } | |
657 | 666 | ||
658 | 667 | ||
659 | - | func | |
668 | + | func eo (bO,bP) = eh(bO, bP, ay) | |
660 | 669 | ||
661 | 670 | ||
662 | - | func | |
663 | - | let | |
664 | - | let | |
665 | - | let | |
666 | - | let | |
667 | - | let | |
668 | - | if (( | |
669 | - | then | |
670 | - | else aI(aL( | |
671 | + | func ep (bO,bM) = { | |
672 | + | let eq = aM(bp(), (av - aG(eo(bO, bU(bM)), bn()))) | |
673 | + | let er = aI(aL(bM), eq) | |
674 | + | let es = dm((bM > 0), er, false) | |
675 | + | let et = es._1 | |
676 | + | let cK = es._7 | |
677 | + | if ((br() > cK)) | |
678 | + | then er | |
679 | + | else aI(aL(bM), bp()) | |
671 | 680 | } | |
672 | 681 | ||
673 | 682 | ||
674 | - | func | |
675 | - | let | |
676 | - | let | |
677 | - | let | |
678 | - | let | |
679 | - | let | |
680 | - | let | |
681 | - | let | |
682 | - | let | |
683 | - | if (if (( | |
684 | - | then ( | |
683 | + | func eu (bO,bP,ev,ew,ex,ey,dc,ez) = { | |
684 | + | let eA = bN(bO, bP) | |
685 | + | let eB = eA._1 | |
686 | + | let eC = eA._2 | |
687 | + | let eD = eA._3 | |
688 | + | let eE = eA._4 | |
689 | + | let eF = eA._5 | |
690 | + | let eG = (eB > 0) | |
691 | + | let eH = aL(eB) | |
692 | + | if (if ((eH >= ev)) | |
693 | + | then (ev > 0) | |
685 | 694 | else false) | |
686 | 695 | then { | |
687 | - | let | |
688 | - | let | |
689 | - | let | |
690 | - | let | |
691 | - | let | |
692 | - | let | |
693 | - | let | |
694 | - | then -( | |
695 | - | else | |
696 | - | let | |
697 | - | let | |
698 | - | let | |
699 | - | let | |
700 | - | let | |
701 | - | let | |
702 | - | let | |
703 | - | let | |
704 | - | let | |
705 | - | let | |
706 | - | let | |
707 | - | let | |
708 | - | let | |
709 | - | let | |
710 | - | then (( | |
711 | - | else (( | |
712 | - | let | |
713 | - | let | |
696 | + | let eI = (eH > ev) | |
697 | + | let eJ = dm((eB > 0), ev, dc) | |
698 | + | let eK = eJ._1 | |
699 | + | let cz = eJ._2 | |
700 | + | let cA = eJ._3 | |
701 | + | let eL = eJ._4 | |
702 | + | let eM = if ((eB > 0)) | |
703 | + | then -(ev) | |
704 | + | else ev | |
705 | + | let eN = dY(bO, bP, ay) | |
706 | + | let eO = eN._1 | |
707 | + | let dX = eN._2 | |
708 | + | let eP = aG(aL(eM), eH) | |
709 | + | let eQ = aI(dX, eP) | |
710 | + | let eR = cR(eB, eC, eE, eF, dX) | |
711 | + | let eS = eR._1 | |
712 | + | let eT = eR._2 | |
713 | + | let eU = eR._3 | |
714 | + | let cQ = eR._4 | |
715 | + | let eV = cR(eB, eC, eE, eF, eQ)._2 | |
716 | + | let eW = aI(aI(eO, eP), ew) | |
717 | + | let eX = (dX - eQ) | |
718 | + | let eY = if ((eB > 0)) | |
719 | + | then ((eO - eK) - eX) | |
720 | + | else ((eX + eO) - eK) | |
721 | + | let eZ = (eB + eM) | |
722 | + | let fa = if ((eZ == 0)) | |
714 | 723 | then $Tuple2(0, 0) | |
715 | - | else $Tuple2(aL( | |
716 | - | let | |
717 | - | let | |
718 | - | let | |
719 | - | let | |
720 | - | let | |
721 | - | then (aI(( | |
722 | - | else (aI(( | |
723 | - | let | |
724 | - | let | |
725 | - | then if ( | |
724 | + | else $Tuple2(aL(eY), bL(eZ)) | |
725 | + | let fb = fa._1 | |
726 | + | let fc = fa._2 | |
727 | + | let fd = (eD - fb) | |
728 | + | let fe = eh(bO, bP, ay) | |
729 | + | let ff = if ((eB > 0)) | |
730 | + | then (aI((fb + eX), fe) - eX) | |
731 | + | else (aI((fb - eX), fe) - eX) | |
732 | + | let fg = ((eS - (ff + eX)) - eW) | |
733 | + | let fh = if ((0 > fg)) | |
734 | + | then if (ez) | |
726 | 735 | then 0 | |
727 | 736 | else throw("Invalid internalClosePosition params: unable to pay fee") | |
728 | - | else | |
729 | - | let | |
730 | - | then ( | |
731 | - | else | |
732 | - | if (if (( | |
733 | - | then ( | |
737 | + | else fg | |
738 | + | let fi = if (ey) | |
739 | + | then (ff + fh) | |
740 | + | else ff | |
741 | + | if (if ((ex != 0)) | |
742 | + | then (ex > eK) | |
734 | 743 | else false) | |
735 | - | then throw(((("Limit error: " + toString( | |
736 | - | else $Tuple17( | |
737 | - | then | |
744 | + | then throw(((("Limit error: " + toString(eK)) + " < ") + toString(ex))) | |
745 | + | else $Tuple17(eZ, fi, fb, fc, eV, eQ, if (if (ey) | |
746 | + | then eI | |
738 | 747 | else false) | |
739 | 748 | then 0 | |
740 | - | else | |
741 | - | then aL( | |
742 | - | else 0)), ( | |
743 | - | then aL( | |
744 | - | else 0)), ( | |
745 | - | then | |
746 | - | else 0)), ( | |
747 | - | then | |
748 | - | else 0)), ( | |
749 | + | else fh, cz, cA, eL, (bg() - fd), (bx() - (if (eG) | |
750 | + | then aL(eM) | |
751 | + | else 0)), (bw() - (if (!(eG)) | |
752 | + | then aL(eM) | |
753 | + | else 0)), (bi() - (if (eG) | |
754 | + | then fd | |
755 | + | else 0)), (bh() - (if (!(eG)) | |
756 | + | then fd | |
757 | + | else 0)), (eW + cQ), eK) | |
749 | 758 | } | |
750 | - | else throw(((("Invalid internalClosePosition params: invalid position size: " + toString( | |
759 | + | else throw(((("Invalid internalClosePosition params: invalid position size: " + toString(ev)) + " max: ") + toString(eH))) | |
751 | 760 | } | |
752 | 761 | ||
753 | 762 | ||
754 | - | func | |
755 | - | let | |
756 | - | if (( | |
757 | - | then $Tuple2( | |
763 | + | func fj () = { | |
764 | + | let bM = bf() | |
765 | + | if ((bM == 0)) | |
766 | + | then $Tuple2(aZ(), bb()) | |
758 | 767 | else { | |
759 | - | let | |
760 | - | let | |
761 | - | let | |
762 | - | let | |
763 | - | let | |
764 | - | $Tuple2( | |
768 | + | let fk = (bM > 0) | |
769 | + | let fl = dm(fk, aL(bM), false) | |
770 | + | let fm = fl._1 | |
771 | + | let fn = fl._2 | |
772 | + | let fo = fl._3 | |
773 | + | $Tuple2(fn, fo) | |
765 | 774 | } | |
766 | 775 | } | |
767 | 776 | ||
768 | 777 | ||
769 | - | func | |
770 | - | let | |
771 | - | let | |
772 | - | let | |
773 | - | let | |
774 | - | let aO = aK( | |
775 | - | let | |
776 | - | let | |
777 | - | let | |
778 | - | let | |
779 | - | toInt( | |
778 | + | func fp (fq,bf,fr,fs) = { | |
779 | + | let ft = toBigInt(fq) | |
780 | + | let fu = toBigInt(bf) | |
781 | + | let fv = toBigInt(fr) | |
782 | + | let fw = toBigInt(fs) | |
783 | + | let aO = aK(fv, ft) | |
784 | + | let fx = (ft + fu) | |
785 | + | let fy = aJ(aO, fx) | |
786 | + | let fz = aJ(fy, fx) | |
787 | + | let fA = aJ(fw, fz) | |
788 | + | toInt(fA) | |
780 | 789 | } | |
781 | 790 | ||
782 | 791 | ||
783 | - | func | |
784 | - | let | |
785 | - | if (( | |
792 | + | func fB (fC,cr,cs) = { | |
793 | + | let bM = bf() | |
794 | + | if ((bM == 0)) | |
786 | 795 | then { | |
787 | - | let | |
788 | - | $Tuple3( | |
796 | + | let fD = aG(aI(fC, cs), cr) | |
797 | + | $Tuple3(fD, av, 0) | |
789 | 798 | } | |
790 | 799 | else { | |
791 | - | let | |
792 | - | let | |
793 | - | let | |
794 | - | let | |
795 | - | let | |
796 | - | $Tuple3( | |
800 | + | let fk = (bM > 0) | |
801 | + | let fm = dm(fk, aL(bM), false)._1 | |
802 | + | let fD = fp(cs, bM, cr, fC) | |
803 | + | let fE = av | |
804 | + | let fF = dV(bM, fm, cr, fD, cs, fE, ay)._2 | |
805 | + | $Tuple3(fD, fE, fF) | |
797 | 806 | } | |
798 | 807 | } | |
799 | 808 | ||
800 | 809 | ||
801 | - | func | |
802 | - | let | |
803 | - | let | |
804 | - | let | |
805 | - | if (if ( | |
810 | + | func fG () = { | |
811 | + | let fH = ds() | |
812 | + | let fI = dM() | |
813 | + | let fJ = (fI - fH) | |
814 | + | if (if (dy()) | |
806 | 815 | then true | |
807 | - | else if (( | |
808 | - | then if (( | |
816 | + | else if ((bB() == aA)) | |
817 | + | then if ((bw() == 0)) | |
809 | 818 | then true | |
810 | - | else ( | |
819 | + | else (bx() == 0) | |
811 | 820 | else false) | |
812 | 821 | then $Tuple3(0, 0, 0) | |
813 | - | else if ((0 > | |
822 | + | else if ((0 > fJ)) | |
814 | 823 | then { | |
815 | - | let | |
816 | - | if (( | |
824 | + | let fK = aG(aI(fJ, bl()), ax) | |
825 | + | if ((bB() == aA)) | |
817 | 826 | then { | |
818 | - | let | |
819 | - | $Tuple3( | |
827 | + | let fL = aG(aI(fK, bw()), bx()) | |
828 | + | $Tuple3(fK, fL, 0) | |
820 | 829 | } | |
821 | 830 | else { | |
822 | - | let | |
823 | - | let | |
824 | - | let | |
825 | - | $Tuple3( | |
831 | + | let fM = aL(aI(fK, bw())) | |
832 | + | let fN = aL(aI(fK, bx())) | |
833 | + | let fO = (fM - fN) | |
834 | + | $Tuple3(fK, fK, fO) | |
826 | 835 | } | |
827 | 836 | } | |
828 | 837 | else { | |
829 | - | let | |
830 | - | if (( | |
838 | + | let fL = aG(aI(fJ, bl()), ax) | |
839 | + | if ((bB() == aA)) | |
831 | 840 | then { | |
832 | - | let | |
833 | - | $Tuple3( | |
841 | + | let fK = aG(aI(fL, bx()), bw()) | |
842 | + | $Tuple3(fK, fL, 0) | |
834 | 843 | } | |
835 | 844 | else { | |
836 | - | let | |
837 | - | let | |
838 | - | let | |
839 | - | $Tuple3( | |
845 | + | let fN = aL(aI(fL, bx())) | |
846 | + | let fM = aL(aI(fL, bw())) | |
847 | + | let fO = (fN - fM) | |
848 | + | $Tuple3(fL, fL, fO) | |
840 | 849 | } | |
841 | 850 | } | |
842 | 851 | } | |
843 | 852 | ||
844 | 853 | ||
845 | - | func | |
846 | - | let | |
847 | - | let | |
848 | - | let | |
854 | + | func fP (fQ,fR) = { | |
855 | + | let fS = aW() | |
856 | + | let fT = aI(fS, fR) | |
857 | + | let fU = if ((fQ != "")) | |
849 | 858 | then { | |
850 | - | let | |
851 | - | if (( | |
859 | + | let fV = aR(an(), ac(ap, fQ)) | |
860 | + | if ((fV == aq)) | |
852 | 861 | then { | |
853 | - | let | |
854 | - | let | |
855 | - | $Tuple2( | |
862 | + | let fW = aT(an(), ac(ao, fQ)) | |
863 | + | let fX = aI(fT, fW) | |
864 | + | $Tuple2(fX, true) | |
856 | 865 | } | |
857 | 866 | else throw("Invalid attached artifact") | |
858 | 867 | } | |
859 | - | else $Tuple2( | |
860 | - | let | |
861 | - | let | |
862 | - | $Tuple2( | |
868 | + | else $Tuple2(fT, false) | |
869 | + | let fX = fU._1 | |
870 | + | let fY = fU._2 | |
871 | + | $Tuple2(fX, fY) | |
863 | 872 | } | |
864 | 873 | ||
865 | 874 | ||
866 | - | func | |
867 | - | let | |
868 | - | if (( | |
875 | + | func fZ (bO,fQ) = { | |
876 | + | let ga = invoke(ak(), "computeFeeDiscount", [bO], nil) | |
877 | + | if ((ga == ga)) | |
869 | 878 | then { | |
870 | - | let | |
871 | - | let | |
872 | - | if ($isInstanceOf( | |
879 | + | let gb = { | |
880 | + | let bS = ga | |
881 | + | if ($isInstanceOf(bS, "Int")) | |
873 | 882 | then { | |
874 | - | let | |
875 | - | | |
883 | + | let gc = bS | |
884 | + | gc | |
876 | 885 | } | |
877 | 886 | else throw("Invalid computeFeeDiscount result") | |
878 | 887 | } | |
879 | - | let | |
880 | - | let | |
881 | - | let | |
882 | - | $Tuple2( | |
888 | + | let gd = fP(fQ, gb) | |
889 | + | let fX = gd._1 | |
890 | + | let fY = gd._2 | |
891 | + | $Tuple2(fX, fY) | |
883 | 892 | } | |
884 | 893 | else throw("Strict value is not equal to itself.") | |
885 | 894 | } | |
886 | 895 | ||
887 | 896 | ||
888 | - | func | |
889 | - | let | |
890 | - | then toBase58String(valueOrErrorMessage( | |
897 | + | func ge (bF) = { | |
898 | + | let gf = if ((size(bF.payments) > 1)) | |
899 | + | then toBase58String(valueOrErrorMessage(bF.payments[1].assetId, "Invalid artifactId")) | |
891 | 900 | else "" | |
892 | - | | |
901 | + | gf | |
893 | 902 | } | |
894 | 903 | ||
895 | 904 | ||
896 | - | func | |
897 | - | let | |
898 | - | let | |
899 | - | $Tuple2( | |
905 | + | func gg (gh) = { | |
906 | + | let gi = aI(gh, bz()) | |
907 | + | let gj = (gh - gi) | |
908 | + | $Tuple2(gi, gj) | |
900 | 909 | } | |
901 | 910 | ||
902 | 911 | ||
903 | - | func | |
912 | + | func gk (gl,gm,gn,go,ew,gp,gq,gr,gs,dL,gt,gu,gv,gw,gx) = [IntegerEntry(r, gl), IntegerEntry(s, gm), IntegerEntry(t, gn), IntegerEntry(q, go), IntegerEntry(o, ew), IntegerEntry(v, gp), IntegerEntry(w, gq), IntegerEntry(u, gr), IntegerEntry(x, gs), IntegerEntry(y, dL), IntegerEntry(z, gt), IntegerEntry(A, gu), IntegerEntry(p, gv), IntegerEntry(B, gw), IntegerEntry(C, gx)] | |
904 | 913 | ||
905 | 914 | ||
906 | - | func | |
915 | + | func gy (gz,gA,gB,gC,gD) = [IntegerEntry(F, gz), IntegerEntry(D, gA), IntegerEntry(E, gB), IntegerEntry(G, gC), IntegerEntry(H, gD)] | |
907 | 916 | ||
908 | 917 | ||
909 | - | func | |
910 | - | let | |
911 | - | if ( | |
918 | + | func gE (gF,bO,bP) = { | |
919 | + | let bQ = ((bO + "_") + toString(bP)) | |
920 | + | if (gF) | |
912 | 921 | then { | |
913 | - | let | |
914 | - | [IntegerEntry(ac(i, | |
922 | + | let gG = by() | |
923 | + | [IntegerEntry(ac(i, bQ), (gG + 1)), IntegerEntry(d, (gG + 1))] | |
915 | 924 | } | |
916 | 925 | else nil | |
917 | 926 | } | |
918 | 927 | ||
919 | 928 | ||
920 | - | func | |
921 | - | let | |
922 | - | if ( | |
923 | - | then [IntegerEntry(ac(j, | |
929 | + | func gH (gF,bO,bP,ew) = { | |
930 | + | let bQ = ((bO + "_") + toString(bP)) | |
931 | + | if (gF) | |
932 | + | then [IntegerEntry(ac(j, bQ), ew)] | |
924 | 933 | else nil | |
925 | 934 | } | |
926 | 935 | ||
927 | 936 | ||
928 | - | func | |
929 | - | let | |
930 | - | let | |
931 | - | [IntegerEntry(ac(e, | |
937 | + | func gI (bO,ev,gJ,gK,cW,gL) = { | |
938 | + | let fk = bU(ev) | |
939 | + | let bQ = ((bO + "_") + toString(fk)) | |
940 | + | [IntegerEntry(ac(e, bQ), ev), IntegerEntry(ac(f, bQ), gJ), IntegerEntry(ac(g, bQ), gK), IntegerEntry(ac(h, bQ), cW), IntegerEntry(ac(k, bQ), gL)] | |
932 | 941 | } | |
933 | 942 | ||
934 | 943 | ||
935 | - | func | |
944 | + | func gM (cr,cs) = if (if ((0 > cr)) | |
936 | 945 | then true | |
937 | - | else (0 > | |
946 | + | else (0 > cs)) | |
938 | 947 | then throw("Invalid amount to update reserves") | |
939 | - | else [IntegerEntry(I, co), IntegerEntry(J, cp)] | |
948 | + | else if (if ((cr != ba())) | |
949 | + | then true | |
950 | + | else (cs != bc())) | |
951 | + | then [IntegerEntry(I, cr), IntegerEntry(J, cs)] | |
952 | + | else nil | |
940 | 953 | ||
941 | 954 | ||
942 | - | func gK (ct,cu) = [IntegerEntry(K, ct), IntegerEntry(L, cu)] | |
955 | + | func gN (cw,cx) = if (if ((cw != bd())) | |
956 | + | then true | |
957 | + | else (cx != be())) | |
958 | + | then [IntegerEntry(K, cw), IntegerEntry(L, cx)] | |
959 | + | else nil | |
943 | 960 | ||
944 | 961 | ||
945 | - | func | |
946 | - | let | |
947 | - | let | |
948 | - | if ((( | |
949 | - | then throw(((((("Invalid AMM state data: " + toString( | |
950 | - | else ( | |
962 | + | func gO (cr,cs,gP,gQ,gR,gS,gT,gU) = { | |
963 | + | let cw = bd() | |
964 | + | let cx = be() | |
965 | + | if (((gR - gS) != gP)) | |
966 | + | then throw(((((("Invalid AMM state data: " + toString(gR)) + " + ") + toString(gS)) + " != ") + toString(gP))) | |
967 | + | else (gM(cr, cs) ++ [IntegerEntry(M, gP), IntegerEntry(P, gQ), IntegerEntry(N, gR), IntegerEntry(O, gS), IntegerEntry(R, gT), IntegerEntry(Q, gU)]) | |
951 | 968 | } | |
952 | 969 | ||
953 | 970 | ||
954 | - | func | |
955 | - | let | |
956 | - | [DeleteEntry(ac(e, | |
971 | + | func gV (bO,bP) = { | |
972 | + | let bQ = ((bO + "_") + toString(bP)) | |
973 | + | [DeleteEntry(ac(e, bQ)), DeleteEntry(ac(f, bQ)), DeleteEntry(ac(g, bQ)), DeleteEntry(ac(h, bQ)), DeleteEntry(ac(j, bQ)), DeleteEntry(ac(k, bQ))] | |
957 | 974 | } | |
958 | 975 | ||
959 | 976 | ||
960 | - | func | |
961 | - | let | |
962 | - | if (( | |
963 | - | then throw(((("Unable to withdraw " + toString( | |
964 | - | else [ScriptTransfer(ae, | |
977 | + | func gW (ae,gX) = { | |
978 | + | let gY = assetBalance(this, ah()) | |
979 | + | if ((gX > gY)) | |
980 | + | then throw(((("Unable to withdraw " + toString(gX)) + " from contract balance ") + toString(gY))) | |
981 | + | else [ScriptTransfer(ae, gX, ah())] | |
965 | 982 | } | |
966 | 983 | ||
967 | 984 | ||
968 | - | func | |
985 | + | func gZ (ha) = if ((0 > ha)) | |
969 | 986 | then throw("Balance") | |
970 | - | else [IntegerEntry(c, bC)] | |
987 | + | else if (if ((aV() == 0)) | |
988 | + | then true | |
989 | + | else (aV() != ha)) | |
990 | + | then [IntegerEntry(c, ha)] | |
991 | + | else nil | |
971 | 992 | ||
972 | 993 | ||
973 | - | func | |
994 | + | func hb (bF) = [ScriptTransfer(ai(), bF, ah())] | |
974 | 995 | ||
975 | 996 | ||
976 | - | func | |
977 | - | then [Burn(valueOrErrorMessage( | |
997 | + | func hc (hd,bF) = if (hd) | |
998 | + | then [Burn(valueOrErrorMessage(bF.payments[1].assetId, "Invalid artifact"), 1)] | |
978 | 999 | else nil | |
979 | 1000 | ||
980 | 1001 | ||
981 | - | @Callable( | |
982 | - | func pause () = if (( | |
1002 | + | @Callable(bF) | |
1003 | + | func pause () = if ((bF.caller != ag())) | |
983 | 1004 | then throw("Invalid pause params") | |
984 | 1005 | else [BooleanEntry(m, true)] | |
985 | 1006 | ||
986 | 1007 | ||
987 | 1008 | ||
988 | - | @Callable( | |
989 | - | func unpause () = if (( | |
1009 | + | @Callable(bF) | |
1010 | + | func unpause () = if ((bF.caller != ag())) | |
990 | 1011 | then throw("Invalid unpause params") | |
991 | 1012 | else [BooleanEntry(m, false)] | |
992 | 1013 | ||
993 | 1014 | ||
994 | 1015 | ||
995 | - | @Callable( | |
996 | - | func setCloseOnly () = if (( | |
1016 | + | @Callable(bF) | |
1017 | + | func setCloseOnly () = if ((bF.caller != ag())) | |
997 | 1018 | then throw("Invalid setCloseOnly params") | |
998 | 1019 | else [BooleanEntry(n, true)] | |
999 | 1020 | ||
1000 | 1021 | ||
1001 | 1022 | ||
1002 | - | @Callable( | |
1003 | - | func unsetCloseOnly () = if (( | |
1023 | + | @Callable(bF) | |
1024 | + | func unsetCloseOnly () = if ((bF.caller != ag())) | |
1004 | 1025 | then throw("Invalid unsetCloseOnly params") | |
1005 | 1026 | else [BooleanEntry(n, false)] | |
1006 | 1027 | ||
1007 | 1028 | ||
1008 | 1029 | ||
1009 | - | @Callable( | |
1010 | - | func changeLiquidity ( | |
1030 | + | @Callable(bF) | |
1031 | + | func changeLiquidity (cm) = if (if ((bF.caller != ag())) | |
1011 | 1032 | then true | |
1012 | - | else ( | |
1033 | + | else (cm == 0)) | |
1013 | 1034 | then throw("Invalid changeLiquidity params") | |
1014 | 1035 | else { | |
1015 | - | let | |
1016 | - | let | |
1017 | - | let | |
1018 | - | let | |
1019 | - | let | |
1020 | - | let | |
1021 | - | let | |
1022 | - | let | |
1023 | - | let | |
1024 | - | let | |
1025 | - | let | |
1026 | - | let | |
1027 | - | let | |
1036 | + | let cr = aZ() | |
1037 | + | let cs = bb() | |
1038 | + | let cw = bd() | |
1039 | + | let cx = be() | |
1040 | + | let he = aG(aI(cr, cw), aI(cs, cx)) | |
1041 | + | let hf = (cr + cm) | |
1042 | + | let hg = (aG(aI(hf, cw), he) - cs) | |
1043 | + | let hh = (cs + hg) | |
1044 | + | let hi = fB(ds(), hf, hh) | |
1045 | + | let hj = hi._1 | |
1046 | + | let hk = hi._2 | |
1047 | + | let fF = hi._3 | |
1048 | + | let hl = if ((fF != 0)) | |
1028 | 1049 | then { | |
1029 | - | let | |
1030 | - | if (( | |
1050 | + | let hl = invoke(aj(), "exchangeFreeAndLocked", [fF], nil) | |
1051 | + | if ((hl == hl)) | |
1031 | 1052 | then nil | |
1032 | 1053 | else throw("Strict value is not equal to itself.") | |
1033 | 1054 | } | |
1034 | 1055 | else nil | |
1035 | - | if (( | |
1036 | - | then ( | |
1056 | + | if ((hl == hl)) | |
1057 | + | then (gM(hf, hh) ++ gN(hj, hk)) | |
1037 | 1058 | else throw("Strict value is not equal to itself.") | |
1038 | 1059 | } | |
1039 | 1060 | ||
1040 | 1061 | ||
1041 | 1062 | ||
1042 | - | @Callable( | |
1043 | - | func changeSettings ( | |
1063 | + | @Callable(bF) | |
1064 | + | func changeSettings (gl,gm,gn,go,ew,gp,gq,gr,gs,dL,gt,gu,gv,gw,gx) = if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if ((0 >= go)) | |
1044 | 1065 | then true | |
1045 | - | else (0 >= gi)) | |
1046 | - | then true | |
1047 | - | else (0 >= gj)) | |
1048 | - | then true | |
1049 | - | else (0 >= gk)) | |
1050 | - | then true | |
1051 | - | else (0 >= et)) | |
1066 | + | else (0 >= gl)) | |
1052 | 1067 | then true | |
1053 | 1068 | else (0 >= gm)) | |
1054 | 1069 | then true | |
1055 | 1070 | else (0 >= gn)) | |
1056 | 1071 | then true | |
1057 | - | else (0 >= | |
1072 | + | else (0 >= ew)) | |
1058 | 1073 | then true | |
1059 | 1074 | else (0 >= gp)) | |
1060 | 1075 | then true | |
1061 | - | else (0 >= dI)) | |
1062 | - | then true | |
1063 | 1076 | else (0 >= gq)) | |
1064 | - | then true | |
1065 | - | else (gq > av)) | |
1066 | 1077 | then true | |
1067 | 1078 | else (0 >= gr)) | |
1068 | 1079 | then true | |
1069 | 1080 | else (0 >= gs)) | |
1070 | 1081 | then true | |
1071 | - | else if ((gt != aB)) | |
1072 | - | then (gt != aA) | |
1082 | + | else (0 >= dL)) | |
1083 | + | then true | |
1084 | + | else (0 >= gt)) | |
1085 | + | then true | |
1086 | + | else (gt > av)) | |
1087 | + | then true | |
1088 | + | else (0 >= gu)) | |
1089 | + | then true | |
1090 | + | else (0 >= gv)) | |
1091 | + | then true | |
1092 | + | else if ((gw != aB)) | |
1093 | + | then (gw != aA) | |
1073 | 1094 | else false) | |
1074 | 1095 | then true | |
1075 | - | else if (( | |
1076 | - | then ( | |
1096 | + | else if ((gx != aC)) | |
1097 | + | then (gx != aD) | |
1077 | 1098 | else false) | |
1078 | 1099 | then true | |
1079 | - | else !( | |
1100 | + | else !(ch())) | |
1080 | 1101 | then true | |
1081 | - | else ( | |
1102 | + | else (bF.caller != ag())) | |
1082 | 1103 | then throw("Invalid changeSettings params") | |
1083 | - | else | |
1104 | + | else gk(gl, gm, gn, go, ew, gp, gq, gr, gs, dL, gt, gu, gv, gw, gx) | |
1084 | 1105 | ||
1085 | 1106 | ||
1086 | 1107 | ||
1087 | - | @Callable( | |
1088 | - | func initialize ( | |
1108 | + | @Callable(bF) | |
1109 | + | func initialize (cr,cs,go,gl,gm,gn,ew,hm,hn,ho,gp,gq,gr,gs,dL,gt,gu,gv,gw,gx) = if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if ((0 >= cr)) | |
1089 | 1110 | then true | |
1090 | - | else (0 >= cp)) | |
1111 | + | else (0 >= cs)) | |
1112 | + | then true | |
1113 | + | else (0 >= go)) | |
1091 | 1114 | then true | |
1092 | 1115 | else (0 >= gl)) | |
1093 | - | then true | |
1094 | - | else (0 >= gi)) | |
1095 | - | then true | |
1096 | - | else (0 >= gj)) | |
1097 | - | then true | |
1098 | - | else (0 >= gk)) | |
1099 | - | then true | |
1100 | - | else (0 >= et)) | |
1101 | 1116 | then true | |
1102 | 1117 | else (0 >= gm)) | |
1103 | 1118 | then true | |
1104 | 1119 | else (0 >= gn)) | |
1105 | 1120 | then true | |
1106 | - | else (0 >= | |
1121 | + | else (0 >= ew)) | |
1107 | 1122 | then true | |
1108 | 1123 | else (0 >= gp)) | |
1109 | 1124 | then true | |
1110 | - | else (0 >= dI)) | |
1111 | - | then true | |
1112 | 1125 | else (0 >= gq)) | |
1113 | 1126 | then true | |
1114 | - | else (gq > av)) | |
1115 | - | then true | |
1116 | - | else (0 > gr)) | |
1127 | + | else (0 >= gr)) | |
1117 | 1128 | then true | |
1118 | 1129 | else (0 >= gs)) | |
1119 | 1130 | then true | |
1120 | - | else if ((gt != aB)) | |
1121 | - | then (gt != aA) | |
1131 | + | else (0 >= dL)) | |
1132 | + | then true | |
1133 | + | else (0 >= gt)) | |
1134 | + | then true | |
1135 | + | else (gt > av)) | |
1136 | + | then true | |
1137 | + | else (0 > gu)) | |
1138 | + | then true | |
1139 | + | else (0 >= gv)) | |
1140 | + | then true | |
1141 | + | else if ((gw != aB)) | |
1142 | + | then (gw != aA) | |
1122 | 1143 | else false) | |
1123 | 1144 | then true | |
1124 | - | else if (( | |
1125 | - | then ( | |
1145 | + | else if ((gx != aC)) | |
1146 | + | then (gx != aD) | |
1126 | 1147 | else false) | |
1127 | 1148 | then true | |
1128 | - | else | |
1149 | + | else ch()) | |
1129 | 1150 | then true | |
1130 | - | else ( | |
1151 | + | else (bF.caller != this)) | |
1131 | 1152 | then throw("Invalid initialize parameters") | |
1132 | - | else (((( | |
1153 | + | else ((((gO(cr, cs, 0, 0, 0, 0, 0, 0) ++ gk(gl, gm, gn, go, ew, gp, gq, gr, gs, dL, gt, gu, gv, gw, gx)) ++ gy((bD() + go), 0, 0, 0, 0)) ++ gZ(0)) ++ [BooleanEntry(l, true), StringEntry(a, hm), StringEntry(b, hn), StringEntry(T, toString(addressFromStringValue(ho)))]) | |
1133 | 1154 | ||
1134 | 1155 | ||
1135 | 1156 | ||
1136 | - | @Callable( | |
1137 | - | func increasePosition ( | |
1138 | - | let | |
1139 | - | if (( | |
1157 | + | @Callable(bF) | |
1158 | + | func increasePosition (bP,hp,hq,hr,hs) = { | |
1159 | + | let ht = invoke(this, "updateOracle", [hs], nil) | |
1160 | + | if ((ht == ht)) | |
1140 | 1161 | then { | |
1141 | - | let | |
1142 | - | if (( | |
1162 | + | let hu = invoke(this, "syncTerminalPriceToOracle", nil, nil) | |
1163 | + | if ((hu == hu)) | |
1143 | 1164 | then { | |
1144 | - | let | |
1145 | - | if (( | |
1165 | + | let hv = invoke(this, "ensureCalledOnce", nil, nil) | |
1166 | + | if ((hv == hv)) | |
1146 | 1167 | then { | |
1147 | - | let | |
1148 | - | let | |
1149 | - | let | |
1150 | - | let | |
1151 | - | let | |
1152 | - | if (if (if (if (if (if (if (if (if (( | |
1153 | - | then ( | |
1168 | + | let bO = bE(bF) | |
1169 | + | let hw = bF.payments[0].amount | |
1170 | + | let hx = bF.payments[0].assetId | |
1171 | + | let hy = toBase58String(value(hx)) | |
1172 | + | let hz = (hx == ah()) | |
1173 | + | if (if (if (if (if (if (if (if (if ((bP != ar)) | |
1174 | + | then (bP != as) | |
1154 | 1175 | else false) | |
1155 | 1176 | then true | |
1156 | - | else (0 >= | |
1177 | + | else (0 >= hw)) | |
1157 | 1178 | then true | |
1158 | - | else !( | |
1179 | + | else !(ch())) | |
1159 | 1180 | then true | |
1160 | - | else !( | |
1181 | + | else !(hz)) | |
1161 | 1182 | then true | |
1162 | - | else !( | |
1183 | + | else !(bG(aG(av, hp), aY(), true))) | |
1163 | 1184 | then true | |
1164 | - | else | |
1185 | + | else ci()) | |
1165 | 1186 | then true | |
1166 | - | else | |
1187 | + | else cj()) | |
1167 | 1188 | then true | |
1168 | - | else | |
1189 | + | else dy()) | |
1169 | 1190 | then throw("Invalid increasePosition parameters") | |
1170 | 1191 | else { | |
1171 | - | let | |
1172 | - | let | |
1173 | - | let | |
1174 | - | let | |
1175 | - | let | |
1176 | - | let | |
1177 | - | if (( | |
1192 | + | let hA = fZ(bO, ge(bF)) | |
1193 | + | let fX = hA._1 | |
1194 | + | let fY = hA._2 | |
1195 | + | let gX = aG(hw, (aI(fX, hp) + av)) | |
1196 | + | let hB = (hw - gX) | |
1197 | + | let hC = invoke(am(), "acceptPaymentWithLink", [bO, hr], [AttachedPayment(ah(), hB)]) | |
1198 | + | if ((hC == hC)) | |
1178 | 1199 | then { | |
1179 | - | let | |
1180 | - | let | |
1181 | - | if ($isInstanceOf( | |
1200 | + | let hD = { | |
1201 | + | let bS = hC | |
1202 | + | if ($isInstanceOf(bS, "Int")) | |
1182 | 1203 | then { | |
1183 | - | let | |
1184 | - | | |
1204 | + | let gc = bS | |
1205 | + | gc | |
1185 | 1206 | } | |
1186 | 1207 | else throw("Invalid referrerFee") | |
1187 | 1208 | } | |
1188 | - | let | |
1189 | - | let | |
1190 | - | let | |
1191 | - | let | |
1192 | - | let | |
1193 | - | let | |
1194 | - | let | |
1195 | - | let | |
1196 | - | let | |
1197 | - | then ( | |
1198 | - | else ( | |
1199 | - | let | |
1200 | - | then | |
1209 | + | let hE = (hB - hD) | |
1210 | + | let hF = bN(bO, bP) | |
1211 | + | let eB = hF._1 | |
1212 | + | let eC = hF._2 | |
1213 | + | let eD = hF._3 | |
1214 | + | let eE = hF._4 | |
1215 | + | let eF = hF._5 | |
1216 | + | let hG = (eB == 0) | |
1217 | + | let hH = if ((eB > 0)) | |
1218 | + | then (bP == ar) | |
1219 | + | else (bP == as) | |
1220 | + | let hI = if (!(hG)) | |
1221 | + | then hH | |
1201 | 1222 | else false | |
1202 | - | let | |
1203 | - | let | |
1223 | + | let hJ = (bP == ar) | |
1224 | + | let hK = if (if (hG) | |
1204 | 1225 | then true | |
1205 | - | else | |
1226 | + | else hI) | |
1206 | 1227 | then { | |
1207 | - | let | |
1208 | - | let | |
1209 | - | let | |
1210 | - | let | |
1211 | - | let | |
1212 | - | let | |
1213 | - | if (if (( | |
1214 | - | then ( | |
1228 | + | let hL = aI(gX, hp) | |
1229 | + | let hM = cv(hJ, hL) | |
1230 | + | let cC = hM._1 | |
1231 | + | let cz = hM._2 | |
1232 | + | let cA = hM._3 | |
1233 | + | let eL = hM._4 | |
1234 | + | if (if ((hq != 0)) | |
1235 | + | then (hq > aL(cC)) | |
1215 | 1236 | else false) | |
1216 | - | then throw(((("Limit error: " + toString(aL( | |
1237 | + | then throw(((("Limit error: " + toString(aL(cC))) + " < ") + toString(hq))) | |
1217 | 1238 | else { | |
1218 | - | let | |
1219 | - | let | |
1220 | - | then | |
1239 | + | let eZ = (eB + cC) | |
1240 | + | let hN = (bi() + (if ((eZ > 0)) | |
1241 | + | then hL | |
1221 | 1242 | else 0)) | |
1222 | - | let | |
1223 | - | then | |
1243 | + | let hO = (bh() + (if ((0 > eZ)) | |
1244 | + | then hL | |
1224 | 1245 | else 0)) | |
1225 | - | let | |
1226 | - | let | |
1227 | - | let | |
1228 | - | let | |
1229 | - | let | |
1230 | - | if (!( | |
1246 | + | let hP = cR(eB, eC, eE, eF, gX) | |
1247 | + | let cZ = hP._1 | |
1248 | + | let eT = hP._2 | |
1249 | + | let eU = hP._3 | |
1250 | + | let cQ = hP._4 | |
1251 | + | if (!(dE(cz, cA))) | |
1231 | 1252 | then throw("Over max spread limit") | |
1232 | - | else if (!( | |
1253 | + | else if (!(dI(hN, hO))) | |
1233 | 1254 | then throw("Over max open notional") | |
1234 | - | else $Tuple14( | |
1235 | - | then aL( | |
1236 | - | else 0)), ( | |
1237 | - | then aL( | |
1238 | - | else 0)), | |
1255 | + | else $Tuple14(eZ, cZ, (eD + hL), bL(eZ), bD(), cA, cz, eL, (bg() + hL), (bx() + (if ((eZ > 0)) | |
1256 | + | then aL(cC) | |
1257 | + | else 0)), (bw() + (if ((0 > eZ)) | |
1258 | + | then aL(cC) | |
1259 | + | else 0)), hN, hO, cQ) | |
1239 | 1260 | } | |
1240 | 1261 | } | |
1241 | 1262 | else { | |
1242 | - | let | |
1243 | - | let | |
1244 | - | let | |
1245 | - | let | |
1246 | - | if (( | |
1263 | + | let hL = aI(gX, hp) | |
1264 | + | let hQ = dY(toString(bF.caller), bP, ay) | |
1265 | + | let eO = hQ._1 | |
1266 | + | let dX = hQ._2 | |
1267 | + | if ((eO > hL)) | |
1247 | 1268 | then throw("Use decreasePosition to decrease position size") | |
1248 | 1269 | else throw("Close position first") | |
1249 | 1270 | } | |
1250 | - | let | |
1251 | - | let | |
1252 | - | let | |
1253 | - | let | |
1254 | - | let | |
1255 | - | let | |
1256 | - | let | |
1257 | - | let | |
1258 | - | let | |
1259 | - | let | |
1260 | - | let | |
1261 | - | let | |
1262 | - | let | |
1263 | - | let | |
1264 | - | let | |
1265 | - | let | |
1266 | - | let | |
1267 | - | let | |
1268 | - | then invoke(aj(), "addLocked", nil, [AttachedPayment(ah(), ( | |
1269 | - | else invoke(aj(), "withdrawLocked", [( | |
1270 | - | if (( | |
1271 | + | let eZ = hK._1 | |
1272 | + | let hR = hK._2 | |
1273 | + | let fb = hK._3 | |
1274 | + | let hS = hK._4 | |
1275 | + | let hT = hK._5 | |
1276 | + | let cA = hK._6 | |
1277 | + | let cz = hK._7 | |
1278 | + | let eL = hK._8 | |
1279 | + | let hU = hK._9 | |
1280 | + | let hV = hK._10 | |
1281 | + | let hW = hK._11 | |
1282 | + | let hN = hK._12 | |
1283 | + | let hO = hK._13 | |
1284 | + | let cQ = hK._14 | |
1285 | + | let hX = gg((hE + cQ)) | |
1286 | + | let gi = hX._1 | |
1287 | + | let gj = hX._2 | |
1288 | + | let hY = if ((gX >= cQ)) | |
1289 | + | then invoke(aj(), "addLocked", nil, [AttachedPayment(ah(), (gX - cQ))]) | |
1290 | + | else invoke(aj(), "withdrawLocked", [(cQ - gX)], nil) | |
1291 | + | if ((hY == hY)) | |
1271 | 1292 | then { | |
1272 | - | let | |
1273 | - | if (( | |
1293 | + | let hZ = invoke(aj(), "addFree", nil, [AttachedPayment(ah(), gj)]) | |
1294 | + | if ((hZ == hZ)) | |
1274 | 1295 | then { | |
1275 | - | let | |
1276 | - | if (( | |
1296 | + | let ia = invoke(ak(), "notifyFees", [bO, hE], nil) | |
1297 | + | if ((ia == ia)) | |
1277 | 1298 | then { | |
1278 | - | let | |
1279 | - | if (( | |
1280 | - | then (((((( | |
1299 | + | let ib = invoke(ak(), "notifyNotional", [bO, fb], nil) | |
1300 | + | if ((ib == ib)) | |
1301 | + | then ((((((gI(bO, eZ, hR, fb, hS, hT) ++ gE(hG, bO, bP)) ++ gH(hG, bO, bP, fX)) ++ gO(cz, cA, eL, hU, hV, hW, hN, hO)) ++ hb(gi)) ++ gZ(((aU() + gX) - cQ))) ++ hc(fY, bF)) | |
1281 | 1302 | else throw("Strict value is not equal to itself.") | |
1282 | 1303 | } | |
1283 | 1304 | else throw("Strict value is not equal to itself.") | |
1284 | 1305 | } | |
1285 | 1306 | else throw("Strict value is not equal to itself.") | |
1286 | 1307 | } | |
1287 | 1308 | else throw("Strict value is not equal to itself.") | |
1288 | 1309 | } | |
1289 | 1310 | else throw("Strict value is not equal to itself.") | |
1290 | 1311 | } | |
1291 | 1312 | } | |
1292 | 1313 | else throw("Strict value is not equal to itself.") | |
1293 | 1314 | } | |
1294 | 1315 | else throw("Strict value is not equal to itself.") | |
1295 | 1316 | } | |
1296 | 1317 | else throw("Strict value is not equal to itself.") | |
1297 | 1318 | } | |
1298 | 1319 | ||
1299 | 1320 | ||
1300 | 1321 | ||
1301 | - | @Callable( | |
1302 | - | func addMargin ( | |
1303 | - | let | |
1304 | - | if (( | |
1322 | + | @Callable(bF) | |
1323 | + | func addMargin (bP,hs) = { | |
1324 | + | let ht = invoke(this, "updateOracle", [hs], nil) | |
1325 | + | if ((ht == ht)) | |
1305 | 1326 | then { | |
1306 | - | let | |
1307 | - | if (( | |
1327 | + | let hu = invoke(this, "syncTerminalPriceToOracle", nil, nil) | |
1328 | + | if ((hu == hu)) | |
1308 | 1329 | then { | |
1309 | - | let | |
1310 | - | if (( | |
1330 | + | let hv = invoke(this, "ensureCalledOnce", nil, nil) | |
1331 | + | if ((hv == hv)) | |
1311 | 1332 | then { | |
1312 | - | let | |
1313 | - | let | |
1314 | - | let | |
1315 | - | let | |
1316 | - | let | |
1317 | - | if (if (if (if (if (!( | |
1333 | + | let bO = toString(bF.caller) | |
1334 | + | let gX = bF.payments[0].amount | |
1335 | + | let hx = bF.payments[0].assetId | |
1336 | + | let hy = toBase58String(value(hx)) | |
1337 | + | let hz = (hx == ah()) | |
1338 | + | if (if (if (if (if (!(hz)) | |
1318 | 1339 | then true | |
1319 | - | else !( | |
1340 | + | else !(bY(toString(bF.caller), bP))) | |
1320 | 1341 | then true | |
1321 | - | else !( | |
1342 | + | else !(ch())) | |
1322 | 1343 | then true | |
1323 | - | else | |
1344 | + | else ci()) | |
1324 | 1345 | then true | |
1325 | - | else | |
1346 | + | else dy()) | |
1326 | 1347 | then throw("Invalid addMargin parameters") | |
1327 | 1348 | else { | |
1328 | - | let | |
1329 | - | let | |
1330 | - | let | |
1331 | - | let | |
1332 | - | let | |
1333 | - | let | |
1334 | - | let | |
1335 | - | if (( | |
1349 | + | let ic = bN(bO, bP) | |
1350 | + | let eB = ic._1 | |
1351 | + | let eC = ic._2 | |
1352 | + | let eD = ic._3 | |
1353 | + | let eE = ic._4 | |
1354 | + | let eF = ic._5 | |
1355 | + | let hY = invoke(aj(), "addLocked", nil, [AttachedPayment(ah(), gX)]) | |
1356 | + | if ((hY == hY)) | |
1336 | 1357 | then { | |
1337 | - | let | |
1338 | - | let | |
1358 | + | let cQ = cM(eC, eF) | |
1359 | + | let id = if ((cQ > 0)) | |
1339 | 1360 | then { | |
1340 | - | let | |
1341 | - | let | |
1342 | - | let | |
1343 | - | let | |
1344 | - | if (( | |
1361 | + | let ie = gg(cQ) | |
1362 | + | let gi = ie._1 | |
1363 | + | let gj = ie._2 | |
1364 | + | let if = invoke(aj(), "withdrawLocked", [gi], nil) | |
1365 | + | if ((if == if)) | |
1345 | 1366 | then { | |
1346 | - | let | |
1347 | - | if (( | |
1348 | - | then | |
1367 | + | let ig = invoke(aj(), "exchangeFreeAndLocked", [-(gj)], nil) | |
1368 | + | if ((ig == ig)) | |
1369 | + | then hb(gi) | |
1349 | 1370 | else throw("Strict value is not equal to itself.") | |
1350 | 1371 | } | |
1351 | 1372 | else throw("Strict value is not equal to itself.") | |
1352 | 1373 | } | |
1353 | 1374 | else nil | |
1354 | - | if (( | |
1355 | - | then (( | |
1375 | + | if ((id == id)) | |
1376 | + | then ((gI(bO, eB, ((eC - cQ) + gX), eD, eE, bD()) ++ gZ(((aU() + gX) - cQ))) ++ id) | |
1356 | 1377 | else throw("Strict value is not equal to itself.") | |
1357 | 1378 | } | |
1358 | 1379 | else throw("Strict value is not equal to itself.") | |
1359 | 1380 | } | |
1360 | 1381 | } | |
1361 | 1382 | else throw("Strict value is not equal to itself.") | |
1362 | 1383 | } | |
1363 | 1384 | else throw("Strict value is not equal to itself.") | |
1364 | 1385 | } | |
1365 | 1386 | else throw("Strict value is not equal to itself.") | |
1366 | 1387 | } | |
1367 | 1388 | ||
1368 | 1389 | ||
1369 | 1390 | ||
1370 | - | @Callable( | |
1371 | - | func removeMargin ( | |
1372 | - | let | |
1373 | - | if (( | |
1391 | + | @Callable(bF) | |
1392 | + | func removeMargin (gX,bP,hs) = { | |
1393 | + | let ht = invoke(this, "updateOracle", [hs], nil) | |
1394 | + | if ((ht == ht)) | |
1374 | 1395 | then { | |
1375 | - | let | |
1376 | - | if (( | |
1396 | + | let hu = invoke(this, "syncTerminalPriceToOracle", nil, nil) | |
1397 | + | if ((hu == hu)) | |
1377 | 1398 | then { | |
1378 | - | let | |
1379 | - | if (( | |
1399 | + | let hv = invoke(this, "ensureCalledOnce", nil, nil) | |
1400 | + | if ((hv == hv)) | |
1380 | 1401 | then { | |
1381 | - | let | |
1382 | - | if (if (if (if (if ((0 >= | |
1402 | + | let bO = toString(bF.caller) | |
1403 | + | if (if (if (if (if ((0 >= gX)) | |
1383 | 1404 | then true | |
1384 | - | else !( | |
1405 | + | else !(bY(bO, bP))) | |
1385 | 1406 | then true | |
1386 | - | else !( | |
1407 | + | else !(ch())) | |
1387 | 1408 | then true | |
1388 | - | else | |
1409 | + | else ci()) | |
1389 | 1410 | then true | |
1390 | - | else | |
1411 | + | else dy()) | |
1391 | 1412 | then throw("Invalid removeMargin parameters") | |
1392 | 1413 | else { | |
1393 | - | let | |
1394 | - | let | |
1395 | - | let | |
1396 | - | let | |
1397 | - | let | |
1398 | - | let | |
1399 | - | let | |
1400 | - | let | |
1401 | - | let | |
1402 | - | let | |
1403 | - | let | |
1404 | - | if (( | |
1414 | + | let ih = bN(bO, bP) | |
1415 | + | let eB = ih._1 | |
1416 | + | let eC = ih._2 | |
1417 | + | let eD = ih._3 | |
1418 | + | let eE = ih._4 | |
1419 | + | let eF = ih._5 | |
1420 | + | let ii = cR(eB, eC, eE, eF, -(gX)) | |
1421 | + | let cZ = ii._1 | |
1422 | + | let da = ii._2 | |
1423 | + | let cV = ii._3 | |
1424 | + | let cQ = ii._4 | |
1425 | + | if ((da != 0)) | |
1405 | 1426 | then throw("Invalid removed margin amount") | |
1406 | 1427 | else { | |
1407 | - | let | |
1408 | - | if (!( | |
1409 | - | then throw(((("Too much margin removed: " + toString( | |
1428 | + | let fe = ed(cZ, da, eD) | |
1429 | + | if (!(bG(fe, aY(), true))) | |
1430 | + | then throw(((("Too much margin removed: " + toString(fe)) + " < ") + toString(aY()))) | |
1410 | 1431 | else { | |
1411 | - | let | |
1412 | - | let | |
1413 | - | let | |
1414 | - | let | |
1432 | + | let ij = gg(cQ) | |
1433 | + | let gi = ij._1 | |
1434 | + | let gj = ij._2 | |
1435 | + | let id = if ((cQ > 0)) | |
1415 | 1436 | then { | |
1416 | - | let | |
1417 | - | if (( | |
1418 | - | then | |
1437 | + | let ig = invoke(aj(), "exchangeFreeAndLocked", [-(gj)], nil) | |
1438 | + | if ((ig == ig)) | |
1439 | + | then hb(gi) | |
1419 | 1440 | else throw("Strict value is not equal to itself.") | |
1420 | 1441 | } | |
1421 | 1442 | else nil | |
1422 | - | if (( | |
1443 | + | if ((id == id)) | |
1423 | 1444 | then { | |
1424 | - | let | |
1425 | - | if (( | |
1426 | - | then ((( | |
1445 | + | let if = invoke(aj(), "withdrawLocked", [(gX + gi)], nil) | |
1446 | + | if ((if == if)) | |
1447 | + | then (((gI(bO, eB, cZ, eD, bL(eB), bD()) ++ gW(bF.caller, gX)) ++ gZ(((aU() - gX) - cQ))) ++ id) | |
1427 | 1448 | else throw("Strict value is not equal to itself.") | |
1428 | 1449 | } | |
1429 | 1450 | else throw("Strict value is not equal to itself.") | |
1430 | 1451 | } | |
1431 | 1452 | } | |
1432 | 1453 | } | |
1433 | 1454 | } | |
1434 | 1455 | else throw("Strict value is not equal to itself.") | |
1435 | 1456 | } | |
1436 | 1457 | else throw("Strict value is not equal to itself.") | |
1437 | 1458 | } | |
1438 | 1459 | else throw("Strict value is not equal to itself.") | |
1439 | 1460 | } | |
1440 | 1461 | ||
1441 | 1462 | ||
1442 | 1463 | ||
1443 | - | @Callable( | |
1444 | - | func closePosition ( | |
1445 | - | let | |
1446 | - | if (( | |
1464 | + | @Callable(bF) | |
1465 | + | func closePosition (ev,bP,ex,ey,hs) = { | |
1466 | + | let ht = invoke(this, "updateOracle", [hs], nil) | |
1467 | + | if ((ht == ht)) | |
1447 | 1468 | then { | |
1448 | - | let | |
1449 | - | if (( | |
1469 | + | let hu = invoke(this, "syncTerminalPriceToOracle", nil, nil) | |
1470 | + | if ((hu == hu)) | |
1450 | 1471 | then { | |
1451 | - | let | |
1452 | - | if (( | |
1472 | + | let hv = invoke(this, "ensureCalledOnce", nil, nil) | |
1473 | + | if ((hv == hv)) | |
1453 | 1474 | then { | |
1454 | - | let | |
1455 | - | let | |
1456 | - | let | |
1457 | - | if (if (if (if (if (if (!( | |
1475 | + | let bO = bE(bF) | |
1476 | + | let ik = valueOrErrorMessage(addressFromString(bO), "Invalid caller") | |
1477 | + | let bX = bV(bO, bP) | |
1478 | + | if (if (if (if (if (if (!(bY(bO, bP))) | |
1458 | 1479 | then true | |
1459 | - | else !( | |
1480 | + | else !(ch())) | |
1460 | 1481 | then true | |
1461 | - | else | |
1482 | + | else ci()) | |
1462 | 1483 | then true | |
1463 | - | else (0 >= | |
1484 | + | else (0 >= ev)) | |
1464 | 1485 | then true | |
1465 | - | else (0 > | |
1486 | + | else (0 > ex)) | |
1466 | 1487 | then true | |
1467 | - | else | |
1488 | + | else dy()) | |
1468 | 1489 | then throw("Invalid closePosition parameters") | |
1469 | 1490 | else { | |
1470 | - | let | |
1471 | - | let | |
1472 | - | let | |
1473 | - | let | |
1474 | - | let | |
1475 | - | let | |
1476 | - | let | |
1477 | - | let | |
1478 | - | let | |
1479 | - | let | |
1480 | - | let | |
1481 | - | let | |
1482 | - | let | |
1483 | - | let | |
1484 | - | let | |
1485 | - | let | |
1486 | - | let | |
1487 | - | let | |
1488 | - | if (( | |
1491 | + | let eF = bN(bO, bP)._5 | |
1492 | + | let il = eu(bO, bP, ev, bX, ex, ey, true, true) | |
1493 | + | let eZ = il._1 | |
1494 | + | let fi = il._2 | |
1495 | + | let fb = il._3 | |
1496 | + | let fc = il._4 | |
1497 | + | let eV = il._5 | |
1498 | + | let eQ = il._6 | |
1499 | + | let fh = il._7 | |
1500 | + | let cz = il._8 | |
1501 | + | let cA = il._9 | |
1502 | + | let eL = il._10 | |
1503 | + | let hU = il._11 | |
1504 | + | let hV = il._12 | |
1505 | + | let hW = il._13 | |
1506 | + | let hN = il._14 | |
1507 | + | let hO = il._15 | |
1508 | + | let im = il._16 | |
1509 | + | if ((eV > 0)) | |
1489 | 1510 | then throw("Invalid closePosition parameters: bad debt") | |
1490 | - | else if (( | |
1511 | + | else if ((eF >= bD())) | |
1491 | 1512 | then throw("Invalid closePosition parameters: wait at least 1 block before closing the position") | |
1492 | 1513 | else { | |
1493 | - | let | |
1494 | - | let | |
1495 | - | let | |
1496 | - | let | |
1514 | + | let eI = (eZ != 0) | |
1515 | + | let in = (fh + im) | |
1516 | + | let io = (aU() - in) | |
1517 | + | let ip = if ((0 > io)) | |
1497 | 1518 | then 0 | |
1498 | - | else | |
1499 | - | let | |
1500 | - | if (( | |
1519 | + | else io | |
1520 | + | let if = invoke(aj(), "withdrawLocked", [in], nil) | |
1521 | + | if ((if == if)) | |
1501 | 1522 | then { | |
1502 | - | let | |
1503 | - | if (( | |
1523 | + | let hC = invoke(am(), "acceptPayment", [bO], [AttachedPayment(ah(), im)]) | |
1524 | + | if ((hC == hC)) | |
1504 | 1525 | then { | |
1505 | - | let | |
1506 | - | let | |
1507 | - | if ($isInstanceOf( | |
1526 | + | let hD = { | |
1527 | + | let bS = hC | |
1528 | + | if ($isInstanceOf(bS, "Int")) | |
1508 | 1529 | then { | |
1509 | - | let | |
1510 | - | | |
1530 | + | let gc = bS | |
1531 | + | gc | |
1511 | 1532 | } | |
1512 | 1533 | else throw("Invalid referrerFee") | |
1513 | 1534 | } | |
1514 | - | let | |
1515 | - | let | |
1516 | - | let | |
1517 | - | let | |
1518 | - | if (( | |
1535 | + | let iq = gg((im - hD)) | |
1536 | + | let gi = iq._1 | |
1537 | + | let gj = iq._2 | |
1538 | + | let hZ = invoke(aj(), "addFree", nil, [AttachedPayment(ah(), gj)]) | |
1539 | + | if ((hZ == hZ)) | |
1519 | 1540 | then { | |
1520 | - | let | |
1521 | - | if (( | |
1541 | + | let ia = invoke(ak(), "notifyFees", [bO, im], nil) | |
1542 | + | if ((ia == ia)) | |
1522 | 1543 | then { | |
1523 | - | let | |
1524 | - | if (( | |
1525 | - | then (((((if ( | |
1526 | - | then | |
1527 | - | else | |
1528 | - | then | |
1529 | - | else nil)) ++ | |
1544 | + | let ib = invoke(ak(), "notifyNotional", [bO, fb], nil) | |
1545 | + | if ((ib == ib)) | |
1546 | + | then (((((if (eI) | |
1547 | + | then gI(bO, eZ, fi, fb, fc, bD()) | |
1548 | + | else gV(bO, bP)) ++ gO(cz, cA, eL, hU, hV, hW, hN, hO)) ++ (if ((fh > 0)) | |
1549 | + | then gW(ik, fh) | |
1550 | + | else nil)) ++ gZ(ip)) ++ hb(gi)) | |
1530 | 1551 | else throw("Strict value is not equal to itself.") | |
1531 | 1552 | } | |
1532 | 1553 | else throw("Strict value is not equal to itself.") | |
1533 | 1554 | } | |
1534 | 1555 | else throw("Strict value is not equal to itself.") | |
1535 | 1556 | } | |
1536 | 1557 | else throw("Strict value is not equal to itself.") | |
1537 | 1558 | } | |
1538 | 1559 | else throw("Strict value is not equal to itself.") | |
1539 | 1560 | } | |
1540 | 1561 | } | |
1541 | 1562 | } | |
1542 | 1563 | else throw("Strict value is not equal to itself.") | |
1543 | 1564 | } | |
1544 | 1565 | else throw("Strict value is not equal to itself.") | |
1545 | 1566 | } | |
1546 | 1567 | else throw("Strict value is not equal to itself.") | |
1547 | 1568 | } | |
1548 | 1569 | ||
1549 | 1570 | ||
1550 | 1571 | ||
1551 | - | @Callable( | |
1552 | - | func liquidate ( | |
1553 | - | let | |
1554 | - | if (( | |
1572 | + | @Callable(bF) | |
1573 | + | func liquidate (bO,bP,hs) = { | |
1574 | + | let ht = invoke(this, "updateOracle", [hs], nil) | |
1575 | + | if ((ht == ht)) | |
1555 | 1576 | then { | |
1556 | - | let | |
1557 | - | if (( | |
1577 | + | let hu = invoke(this, "syncTerminalPriceToOracle", nil, nil) | |
1578 | + | if ((hu == hu)) | |
1558 | 1579 | then { | |
1559 | - | let | |
1560 | - | let | |
1580 | + | let ir = eh(bO, bP, ay) | |
1581 | + | let is = if (dN()) | |
1561 | 1582 | then { | |
1562 | - | let | |
1563 | - | aM( | |
1583 | + | let it = eh(bO, bP, az) | |
1584 | + | aM(ir, it) | |
1564 | 1585 | } | |
1565 | - | else | |
1566 | - | if (if (if (if (if (!( | |
1586 | + | else ir | |
1587 | + | if (if (if (if (if (!(bG(is, bn(), false))) | |
1567 | 1588 | then true | |
1568 | - | else !( | |
1589 | + | else !(bY(bO, bP))) | |
1569 | 1590 | then true | |
1570 | - | else !( | |
1591 | + | else !(ch())) | |
1571 | 1592 | then true | |
1572 | - | else | |
1593 | + | else ci()) | |
1573 | 1594 | then true | |
1574 | - | else | |
1595 | + | else dy()) | |
1575 | 1596 | then throw("Unable to liquidate") | |
1576 | 1597 | else { | |
1577 | - | let | |
1578 | - | then ( | |
1598 | + | let iu = if (if ((ir > bo())) | |
1599 | + | then (bp() > 0) | |
1579 | 1600 | else false) | |
1580 | - | then (av > | |
1601 | + | then (av > bp()) | |
1581 | 1602 | else false | |
1582 | - | let | |
1583 | - | let | |
1584 | - | let | |
1603 | + | let eB = bN(bO, bP)._1 | |
1604 | + | let dR = aL(eB) | |
1605 | + | let iv = if (iu) | |
1585 | 1606 | then { | |
1586 | - | let | |
1587 | - | let | |
1588 | - | $Tuple2( | |
1607 | + | let iw = ep(bO, eB) | |
1608 | + | let ix = aG(aL(iw), dR) | |
1609 | + | $Tuple2(ix, aL(iw)) | |
1589 | 1610 | } | |
1590 | - | else $Tuple2(0, | |
1591 | - | let | |
1592 | - | let | |
1593 | - | let | |
1594 | - | then | |
1595 | - | else | |
1596 | - | let | |
1597 | - | let | |
1598 | - | let | |
1599 | - | let | |
1600 | - | let | |
1601 | - | let | |
1602 | - | let | |
1603 | - | let | |
1604 | - | let | |
1605 | - | let | |
1606 | - | let | |
1607 | - | let | |
1608 | - | let | |
1609 | - | let | |
1610 | - | let | |
1611 | - | let | |
1612 | - | let | |
1613 | - | let | |
1614 | - | let | |
1615 | - | let | |
1611 | + | else $Tuple2(0, dR) | |
1612 | + | let ix = iv._1 | |
1613 | + | let iw = iv._2 | |
1614 | + | let iy = eu(bO, bP, if (iu) | |
1615 | + | then iw | |
1616 | + | else dR, bo(), 0, true, false, true) | |
1617 | + | let eZ = iy._1 | |
1618 | + | let fi = iy._2 | |
1619 | + | let fb = iy._3 | |
1620 | + | let fc = iy._4 | |
1621 | + | let eV = iy._5 | |
1622 | + | let eQ = iy._6 | |
1623 | + | let fh = iy._7 | |
1624 | + | let cz = iy._8 | |
1625 | + | let cA = iy._9 | |
1626 | + | let eL = iy._10 | |
1627 | + | let hU = iy._11 | |
1628 | + | let hV = iy._12 | |
1629 | + | let hW = iy._13 | |
1630 | + | let hN = iy._14 | |
1631 | + | let hO = iy._15 | |
1632 | + | let iz = iy._16 | |
1633 | + | let iA = (iz / 2) | |
1634 | + | let gj = (iz - iA) | |
1635 | + | let io = (aU() - iz) | |
1636 | + | let iB = if ((0 > io)) | |
1616 | 1637 | then 0 | |
1617 | - | else | |
1618 | - | let | |
1638 | + | else io | |
1639 | + | let ig = if ((eV > 0)) | |
1619 | 1640 | then { | |
1620 | - | let | |
1621 | - | if (( | |
1641 | + | let ig = invoke(aj(), "exchangeFreeAndLocked", [(eV + iz)], nil) | |
1642 | + | if ((ig == ig)) | |
1622 | 1643 | then nil | |
1623 | 1644 | else throw("Strict value is not equal to itself.") | |
1624 | 1645 | } | |
1625 | 1646 | else nil | |
1626 | - | if (( | |
1647 | + | if ((ig == ig)) | |
1627 | 1648 | then { | |
1628 | - | let | |
1629 | - | if (( | |
1649 | + | let if = invoke(aj(), "withdrawLocked", [iz], nil) | |
1650 | + | if ((if == if)) | |
1630 | 1651 | then { | |
1631 | - | let | |
1632 | - | if (( | |
1652 | + | let iC = invoke(aj(), "addFree", nil, [AttachedPayment(ah(), gj)]) | |
1653 | + | if ((iC == iC)) | |
1633 | 1654 | then { | |
1634 | - | let | |
1635 | - | if (( | |
1636 | - | then ((((if ( | |
1637 | - | then | |
1638 | - | else | |
1655 | + | let ib = invoke(ak(), "notifyNotional", [bO, fb], nil) | |
1656 | + | if ((ib == ib)) | |
1657 | + | then ((((if (iu) | |
1658 | + | then gI(bO, eZ, fi, fb, fc, bD()) | |
1659 | + | else gV(bO, bP)) ++ gO(cz, cA, eL, hU, hV, hW, hN, hO)) ++ gW(bF.caller, iA)) ++ gZ(iB)) | |
1639 | 1660 | else throw("Strict value is not equal to itself.") | |
1640 | 1661 | } | |
1641 | 1662 | else throw("Strict value is not equal to itself.") | |
1642 | 1663 | } | |
1643 | 1664 | else throw("Strict value is not equal to itself.") | |
1644 | 1665 | } | |
1645 | 1666 | else throw("Strict value is not equal to itself.") | |
1646 | 1667 | } | |
1647 | 1668 | } | |
1648 | 1669 | else throw("Strict value is not equal to itself.") | |
1649 | 1670 | } | |
1650 | 1671 | else throw("Strict value is not equal to itself.") | |
1651 | 1672 | } | |
1652 | 1673 | ||
1653 | 1674 | ||
1654 | 1675 | ||
1655 | - | @Callable( | |
1656 | - | func payFunding ( | |
1657 | - | let | |
1658 | - | if (( | |
1676 | + | @Callable(bF) | |
1677 | + | func payFunding (hs) = { | |
1678 | + | let ht = invoke(this, "updateOracle", [hs], nil) | |
1679 | + | if ((ht == ht)) | |
1659 | 1680 | then { | |
1660 | - | let | |
1661 | - | if (( | |
1681 | + | let hu = invoke(this, "syncTerminalPriceToOracle", nil, nil) | |
1682 | + | if ((hu == hu)) | |
1662 | 1683 | then { | |
1663 | - | let | |
1664 | - | if (if (if (( | |
1684 | + | let iD = bj() | |
1685 | + | if (if (if ((iD > bD())) | |
1665 | 1686 | then true | |
1666 | - | else !( | |
1687 | + | else !(ch())) | |
1667 | 1688 | then true | |
1668 | - | else | |
1669 | - | then throw(((("Invalid funding block timestamp: " + toString( | |
1689 | + | else ci()) | |
1690 | + | then throw(((("Invalid funding block timestamp: " + toString(bD())) + " < ") + toString(iD))) | |
1670 | 1691 | else { | |
1671 | - | let | |
1672 | - | let | |
1673 | - | let | |
1674 | - | let | |
1675 | - | let | |
1676 | - | let | |
1692 | + | let fH = ds() | |
1693 | + | let iE = fG() | |
1694 | + | let fK = iE._1 | |
1695 | + | let fL = iE._2 | |
1696 | + | let fO = iE._3 | |
1697 | + | let iF = if ((fO > 0)) | |
1677 | 1698 | then { | |
1678 | - | let | |
1679 | - | if (( | |
1699 | + | let iF = invoke(aj(), "exchangeFreeAndLocked", [-(fO)], nil) | |
1700 | + | if ((iF == iF)) | |
1680 | 1701 | then nil | |
1681 | 1702 | else throw("Strict value is not equal to itself.") | |
1682 | 1703 | } | |
1683 | 1704 | else nil | |
1684 | - | if (( | |
1685 | - | then | |
1705 | + | if ((iF == iF)) | |
1706 | + | then gy((iD + bm()), (bu() + fL), (bv() + fK), aG(fL, fH), aG(fK, fH)) | |
1686 | 1707 | else throw("Strict value is not equal to itself.") | |
1687 | 1708 | } | |
1688 | 1709 | } | |
1689 | 1710 | else throw("Strict value is not equal to itself.") | |
1690 | 1711 | } | |
1691 | 1712 | else throw("Strict value is not equal to itself.") | |
1692 | 1713 | } | |
1693 | 1714 | ||
1694 | 1715 | ||
1695 | 1716 | ||
1696 | - | @Callable( | |
1697 | - | func updateOracle ( | |
1717 | + | @Callable(bF) | |
1718 | + | func updateOracle (hs) = if ((bC() == aC)) | |
1698 | 1719 | then nil | |
1699 | 1720 | else { | |
1700 | - | let | |
1701 | - | let | |
1702 | - | let | |
1703 | - | let | |
1704 | - | if (( | |
1721 | + | let iG = split_4C(hs, "::") | |
1722 | + | let dt = valueOrErrorMessage(bZ(a), "No base asset oracle data") | |
1723 | + | let iH = dt._1 | |
1724 | + | let iI = invoke(iH, "updateData", [iG[0]], nil) | |
1725 | + | if ((iI == iI)) | |
1705 | 1726 | then { | |
1706 | - | let | |
1707 | - | let | |
1727 | + | let dv = bZ(b) | |
1728 | + | let iJ = if (isDefined(dv)) | |
1708 | 1729 | then { | |
1709 | - | let | |
1710 | - | let | |
1711 | - | let | |
1712 | - | if (( | |
1730 | + | let dx = value(dv) | |
1731 | + | let iK = dx._1 | |
1732 | + | let iJ = invoke(iK, "updateData", [iG[1]], nil) | |
1733 | + | if ((iJ == iJ)) | |
1713 | 1734 | then nil | |
1714 | 1735 | else throw("Strict value is not equal to itself.") | |
1715 | 1736 | } | |
1716 | 1737 | else nil | |
1717 | - | if (( | |
1738 | + | if ((iJ == iJ)) | |
1718 | 1739 | then nil | |
1719 | 1740 | else throw("Strict value is not equal to itself.") | |
1720 | 1741 | } | |
1721 | 1742 | else throw("Strict value is not equal to itself.") | |
1722 | 1743 | } | |
1723 | 1744 | ||
1724 | 1745 | ||
1725 | 1746 | ||
1726 | - | @Callable( | |
1747 | + | @Callable(bF) | |
1727 | 1748 | func syncTerminalPriceToOracle () = { | |
1728 | - | let | |
1729 | - | let | |
1730 | - | let | |
1731 | - | let | |
1732 | - | let | |
1733 | - | let | |
1734 | - | let | |
1735 | - | then (aL( | |
1749 | + | let cr = aZ() | |
1750 | + | let cs = bb() | |
1751 | + | let iL = fB(ds(), cr, cs) | |
1752 | + | let hj = iL._1 | |
1753 | + | let hk = iL._2 | |
1754 | + | let fF = iL._3 | |
1755 | + | let iM = if (if ((0 > fF)) | |
1756 | + | then (aL(fF) > aU()) | |
1736 | 1757 | else false) | |
1737 | 1758 | then -(aU()) | |
1738 | - | else | |
1739 | - | let | |
1759 | + | else fF | |
1760 | + | let hl = if ((iM != 0)) | |
1740 | 1761 | then { | |
1741 | - | let | |
1742 | - | if (( | |
1762 | + | let hl = invoke(aj(), "exchangeFreeAndLocked", [iM], nil) | |
1763 | + | if ((hl == hl)) | |
1743 | 1764 | then nil | |
1744 | 1765 | else throw("Strict value is not equal to itself.") | |
1745 | 1766 | } | |
1746 | 1767 | else nil | |
1747 | - | if (( | |
1748 | - | then ( | |
1768 | + | if ((hl == hl)) | |
1769 | + | then (gZ((aU() + iM)) ++ gN(hj, hk)) | |
1749 | 1770 | else throw("Strict value is not equal to itself.") | |
1750 | 1771 | } | |
1751 | 1772 | ||
1752 | 1773 | ||
1753 | 1774 | ||
1754 | - | @Callable( | |
1755 | - | func ensureCalledOnce () = if (( | |
1775 | + | @Callable(bF) | |
1776 | + | func ensureCalledOnce () = if ((bF.caller != this)) | |
1756 | 1777 | then throw("Invalid saveCurrentTxId parameters") | |
1757 | 1778 | else { | |
1758 | - | let | |
1759 | - | let | |
1760 | - | if (( | |
1761 | - | then [StringEntry(S, | |
1779 | + | let iN = toBase58String(bF.transactionId) | |
1780 | + | let iO = valueOrElse(getString(this, S), "") | |
1781 | + | if ((iO != iN)) | |
1782 | + | then [StringEntry(S, iN)] | |
1762 | 1783 | else throw("Can not call vAMM methods twice in one tx") | |
1763 | 1784 | } | |
1764 | 1785 | ||
1765 | 1786 | ||
1766 | 1787 | ||
1767 | - | @Callable( | |
1768 | - | func migratePosition ( | |
1769 | - | let | |
1770 | - | if (if (isDefined( | |
1771 | - | then isDefined(addressFromString( | |
1788 | + | @Callable(bF) | |
1789 | + | func migratePosition (bO) = { | |
1790 | + | let bR = getInteger(this, ac(e, bO)) | |
1791 | + | if (if (isDefined(bR)) | |
1792 | + | then isDefined(addressFromString(bO)) | |
1772 | 1793 | else false) | |
1773 | 1794 | then { | |
1774 | - | let | |
1775 | - | let | |
1776 | - | let | |
1777 | - | let | |
1778 | - | let | |
1779 | - | let | |
1780 | - | let | |
1781 | - | let | |
1782 | - | let | |
1783 | - | [DeleteEntry(ac(e, | |
1795 | + | let iP = getIntegerValue(this, ac(e, bO)) | |
1796 | + | let iQ = getIntegerValue(this, ac(f, bO)) | |
1797 | + | let iR = getIntegerValue(this, ac(g, bO)) | |
1798 | + | let iS = getIntegerValue(this, ac(h, bO)) | |
1799 | + | let iT = valueOrElse(getInteger(this, ac(k, bO)), lastBlock.timestamp) | |
1800 | + | let iU = valueOrElse(getInteger(this, ac(j, bO)), aW()) | |
1801 | + | let iV = getIntegerValue(this, ac(i, bO)) | |
1802 | + | let iW = bU(iP) | |
1803 | + | let bQ = ((bO + "_") + toString(iW)) | |
1804 | + | [DeleteEntry(ac(e, bO)), DeleteEntry(ac(f, bO)), DeleteEntry(ac(g, bO)), DeleteEntry(ac(h, bO)), DeleteEntry(ac(k, bO)), DeleteEntry(ac(j, bO)), DeleteEntry(ac(i, bO)), IntegerEntry(ac(e, bQ), iP), IntegerEntry(ac(f, bQ), iQ), IntegerEntry(ac(g, bQ), iR), IntegerEntry(ac(h, bQ), iS), IntegerEntry(ac(k, bQ), iT), IntegerEntry(ac(j, bQ), iU), IntegerEntry(ac(i, bQ), iV)] | |
1784 | 1805 | } | |
1785 | - | else throw(("Nothing to migrate for " + | |
1806 | + | else throw(("Nothing to migrate for " + bO)) | |
1786 | 1807 | } | |
1787 | 1808 | ||
1788 | 1809 | ||
1789 | 1810 | ||
1790 | - | @Callable( | |
1791 | - | func view_calcRemainMarginWithFundingPayment ( | |
1792 | - | let | |
1793 | - | if (( | |
1811 | + | @Callable(bF) | |
1812 | + | func view_calcRemainMarginWithFundingPayment (bO,bP,hs) = { | |
1813 | + | let ht = invoke(this, "updateOracle", [hs], nil) | |
1814 | + | if ((ht == ht)) | |
1794 | 1815 | then { | |
1795 | - | let | |
1796 | - | if (( | |
1816 | + | let hu = invoke(this, "syncTerminalPriceToOracle", nil, nil) | |
1817 | + | if ((hu == hu)) | |
1797 | 1818 | then { | |
1798 | - | let | |
1799 | - | let | |
1800 | - | let | |
1801 | - | let | |
1802 | - | let | |
1803 | - | let | |
1804 | - | let | |
1805 | - | let | |
1806 | - | let | |
1807 | - | let | |
1808 | - | let | |
1809 | - | let | |
1810 | - | let | |
1811 | - | let | |
1812 | - | throw(((((((aE( | |
1819 | + | let iX = bN(bO, bP) | |
1820 | + | let bT = iX._1 | |
1821 | + | let ea = iX._2 | |
1822 | + | let ej = iX._3 | |
1823 | + | let ec = iX._4 | |
1824 | + | let el = iX._5 | |
1825 | + | let iY = dY(bO, bP, ay) | |
1826 | + | let dT = iY._1 | |
1827 | + | let dX = iY._2 | |
1828 | + | let iZ = cR(bT, ea, ec, el, dX) | |
1829 | + | let cZ = iZ._1 | |
1830 | + | let da = iZ._2 | |
1831 | + | let cV = iZ._3 | |
1832 | + | let cQ = iZ._4 | |
1833 | + | throw(((((((aE(cZ) + aE(cV)) + aE(eo(bO, bP))) + aE(dX)) + aE(da)) + aE(dT)) + aE(cQ))) | |
1813 | 1834 | } | |
1814 | 1835 | else throw("Strict value is not equal to itself.") | |
1815 | 1836 | } | |
1816 | 1837 | else throw("Strict value is not equal to itself.") | |
1817 | 1838 | } | |
1818 | 1839 | ||
1819 | 1840 | ||
1820 | 1841 | ||
1821 | - | @Callable( | |
1822 | - | func view_getPegAdjustCost ( | |
1823 | - | let | |
1824 | - | let | |
1825 | - | let | |
1826 | - | throw(toString( | |
1842 | + | @Callable(bF) | |
1843 | + | func view_getPegAdjustCost (ja) = { | |
1844 | + | let cr = aZ() | |
1845 | + | let cs = bb() | |
1846 | + | let fA = fB(ja, cr, cs) | |
1847 | + | throw(toString(fA._3)) | |
1827 | 1848 | } | |
1828 | 1849 | ||
1829 | 1850 | ||
1830 | 1851 | ||
1831 | - | @Callable( | |
1852 | + | @Callable(bF) | |
1832 | 1853 | func view_getTerminalAmmPrice () = { | |
1833 | - | let | |
1834 | - | let | |
1835 | - | let | |
1836 | - | let | |
1837 | - | throw(toString( | |
1854 | + | let jb = fj() | |
1855 | + | let fn = jb._1 | |
1856 | + | let fo = jb._2 | |
1857 | + | let he = aG(aI(fn, bd()), aI(fo, be())) | |
1858 | + | throw(toString(he)) | |
1838 | 1859 | } | |
1839 | 1860 | ||
1840 | 1861 | ||
1841 | 1862 | ||
1842 | - | @Callable( | |
1843 | - | func view_getFunding ( | |
1844 | - | let | |
1845 | - | if (( | |
1863 | + | @Callable(bF) | |
1864 | + | func view_getFunding (hs) = { | |
1865 | + | let ht = invoke(this, "updateOracle", [hs], nil) | |
1866 | + | if ((ht == ht)) | |
1846 | 1867 | then { | |
1847 | - | let | |
1848 | - | if (( | |
1868 | + | let hu = invoke(this, "syncTerminalPriceToOracle", nil, nil) | |
1869 | + | if ((hu == hu)) | |
1849 | 1870 | then { | |
1850 | - | let | |
1851 | - | let | |
1852 | - | let | |
1853 | - | let | |
1854 | - | let | |
1855 | - | let | |
1856 | - | let | |
1857 | - | throw(((((aE( | |
1871 | + | let fH = ds() | |
1872 | + | let jc = fG() | |
1873 | + | let fK = jc._1 | |
1874 | + | let fL = jc._2 | |
1875 | + | let fO = jc._3 | |
1876 | + | let jd = aG(fL, fH) | |
1877 | + | let je = aG(fK, fH) | |
1878 | + | throw(((((aE(jd) + aE(je)) + aE(dM())) + aE(ds())) + aE(fO))) | |
1858 | 1879 | } | |
1859 | 1880 | else throw("Strict value is not equal to itself.") | |
1860 | 1881 | } | |
1861 | 1882 | else throw("Strict value is not equal to itself.") | |
1862 | 1883 | } | |
1863 | 1884 | ||
1864 | 1885 | ||
1865 | 1886 | ||
1866 | - | @Callable( | |
1887 | + | @Callable(bF) | |
1867 | 1888 | func computeSpotPrice () = { | |
1868 | - | let | |
1869 | - | if (( | |
1889 | + | let hu = invoke(this, "syncTerminalPriceToOracle", nil, nil) | |
1890 | + | if ((hu == hu)) | |
1870 | 1891 | then { | |
1871 | - | let | |
1872 | - | $Tuple2(nil, | |
1892 | + | let fA = dM() | |
1893 | + | $Tuple2(nil, fA) | |
1873 | 1894 | } | |
1874 | 1895 | else throw("Strict value is not equal to itself.") | |
1875 | 1896 | } | |
1876 | 1897 | ||
1877 | 1898 | ||
1878 | 1899 | ||
1879 | - | @Callable( | |
1880 | - | func computeFeeForTraderWithArtifact ( | |
1881 | - | let | |
1882 | - | $Tuple2(nil, | |
1900 | + | @Callable(bF) | |
1901 | + | func computeFeeForTraderWithArtifact (bO,fQ) = { | |
1902 | + | let fA = fZ(bO, fQ) | |
1903 | + | $Tuple2(nil, fA) | |
1883 | 1904 | } | |
1884 | 1905 | ||
1885 | 1906 | ||
1886 | - | @Verifier( | |
1887 | - | func | |
1888 | - | let | |
1889 | - | if (isDefined( | |
1907 | + | @Verifier(jf) | |
1908 | + | func jg () = { | |
1909 | + | let jh = getString(this, T) | |
1910 | + | if (isDefined(jh)) | |
1890 | 1911 | then { | |
1891 | - | let | |
1892 | - | if (isDefined( | |
1893 | - | then valueOrElse(getBoolean(addressFromStringValue(value( | |
1912 | + | let ji = getString(addressFromStringValue(value(jh)), V) | |
1913 | + | if (isDefined(ji)) | |
1914 | + | then valueOrElse(getBoolean(addressFromStringValue(value(ji)), ((("status_" + toString(this)) + "_") + toBase58String(jf.id))), false) | |
1894 | 1915 | else throw("unable to verify: admin not set in coordinator") | |
1895 | 1916 | } | |
1896 | - | else sigVerify( | |
1917 | + | else sigVerify(jf.bodyBytes, jf.proofs[0], jf.senderPublicKey) | |
1897 | 1918 | } | |
1898 | 1919 |
github/deemru/w8io/026f985 782.85 ms ◑