tx · D3U1NZrYntYoAQiuS775RNur1fupPcWYyBm42cQB9gqC 3MzGPAZokuNfqjMuP7yDXFATZjhjtEP5UCa: -0.03700000 Waves 2023.05.15 12:58 [2578921] smart account 3MzGPAZokuNfqjMuP7yDXFATZjhjtEP5UCa > SELF 0.00000000 Waves
{ "type": 13, "id": "D3U1NZrYntYoAQiuS775RNur1fupPcWYyBm42cQB9gqC", "fee": 3700000, "feeAssetId": null, "timestamp": 1684144706545, "version": 2, "chainId": 84, "sender": "3MzGPAZokuNfqjMuP7yDXFATZjhjtEP5UCa", "senderPublicKey": "4EBKd2zSCvpiSLeyovT5FUuMvGpi6oxdBAbvQybSYi6p", "proofs": [ "x7n3h64ym5DLCiUQ7QzA9mgAjjoQr3MNkUgVqRkZtbRCt2f8hwZFFGtCUCHUezgktxf79XhYrAEhdQPhmXcSd3t" ], "script": "base64:BgJlCAISBAoCCAgSAwoBCBIAEgMKAQgSDwoNCAEBAQEBAQgBAQEBARIMCgoIAQEBCAEBAQEIEgUKAwgIARIICgYICAEBAQESDgoMCAgBAQEBAQEICAEBEgMKAQESBAoCAQgSBAoCAQhCABRrX2Nvb3JkaW5hdG9yQWRkcmVzcwIUa19jb29yZGluYXRvckFkZHJlc3MAD2tfYWRtaW5fYWRkcmVzcwIPa19hZG1pbl9hZGRyZXNzAA1rX3F1b3RlX2Fzc2V0Ag1rX3F1b3RlX2Fzc2V0AAVrX2FtbQIFa19hbW0AEWtfbWFuYWdlcl9hZGRyZXNzAhFrX21hbmFnZXJfYWRkcmVzcwASa19wb3NpdGlvblNlcXVlbmNlAhJrX3Bvc2l0aW9uU2VxdWVuY2UADmtfcG9zaXRpb25TaXplAg5rX3Bvc2l0aW9uU2l6ZQAQa19leGVjdXRlZE9yZGVycwIQa19leGVjdXRlZE9yZGVycwAQa19jYW5jZWxlZE9yZGVycwIQa19jYW5jZWxlZE9yZGVycwAHa19vcmRlcgIHa19vcmRlcgAOa19vcmRlclJlcXVlc3QCCmtfb3JkZXJSZXE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QgZXF1YWwgdG8gaXRzZWxmLgFpARR2aWV3X2NhbkV4ZWN1dGVPcmRlcgIIX29yZGVySWQKX3ByaWNlRGF0YQQBcwkA/AcEBQR0aGlzAgxleGVjdXRlT3JkZXIJAMwIAgUIX29yZGVySWQJAMwIAgUKX3ByaWNlRGF0YQUDbmlsBQNuaWwDCQAAAgUBcwUBcwkAAgECB1N1Y2Nlc3MJAAIBAiRTdHJpY3QgdmFsdWUgaXMgbm90IGVxdWFsIHRvIGl0c2VsZi4BAnR4AQZ2ZXJpZnkABA5jb29yZGluYXRvclN0cgkAnQgCBQR0aGlzBRRrX2Nvb3JkaW5hdG9yQWRkcmVzcwMJAQlpc0RlZmluZWQBBQ5jb29yZGluYXRvclN0cgQFYWRtaW4JAJ0IAgkBEUBleHRyTmF0aXZlKDEwNjIpAQkBBXZhbHVlAQUOY29vcmRpbmF0b3JTdHIFD2tfYWRtaW5fYWRkcmVzcwMJAQlpc0RlZmluZWQBBQVhZG1pbgkBC3ZhbHVlT3JFbHNlAgkAmwgCCQERQGV4dHJOYXRpdmUoMTA2MikBCQEFdmFsdWUBBQVhZG1pbgkArAICCQCsAgIJAKwCAgIHc3RhdHVzXwkApQgBBQR0aGlzAgFfCQDYBAEIBQJ0eAJpZAcJAAIBAi51bmFibGUgdG8gdmVyaWZ5OiBhZG1pbiBub3Qgc2V0IGluIGNvb3JkaW5hdG9yCQD0AwMIBQJ0eAlib2R5Qnl0ZXMJAJEDAggFAnR4BnByb29mcwAACAUCdHgPc2VuZGVyUHVibGljS2V5GWDpAA==", "height": 2578921, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 8BvDNGLK6j3Up8oKjGFsGXPwf8869XzRh48XkMdCuD2Z Next: 6ZD2cVk8pEHH5nRKaERNwRTzuYhXP6e6UCqqBEQjY1R5 Diff:
Old | New | Differences | |
---|---|---|---|
316 | 316 | let aX = bC._10 | |
317 | 317 | let bL = bC._11 | |
318 | 318 | let aZ = bC._12 | |
319 | - | | |
319 | + | let bM = if (if (if ((P == q)) | |
320 | 320 | then true | |
321 | 321 | else (P == r)) | |
322 | 322 | then (by[0] != aX) | |
323 | 323 | else false) | |
324 | 324 | then (by[1] != aX) | |
325 | - | else false) | |
325 | + | else false | |
326 | + | let bN = if ((P == s)) | |
327 | + | then (lastBlock.timestamp >= aZ) | |
328 | + | else false | |
329 | + | if (if (bM) | |
330 | + | then true | |
331 | + | else bN) | |
326 | 332 | then { | |
327 | - | let | |
328 | - | let | |
329 | - | $Tuple2( | |
333 | + | let bO = bq(bB) | |
334 | + | let bP = be(bA._1, bB, R, S, false) | |
335 | + | $Tuple2(bP, (bA._2 ++ bO)) | |
330 | 336 | } | |
331 | 337 | else bA | |
332 | 338 | } | |
333 | 339 | ||
334 | - | let | |
335 | - | let | |
336 | - | let | |
337 | - | let | |
338 | - | func | |
339 | - | then | |
340 | - | else bz( | |
340 | + | let bQ = { | |
341 | + | let bR = bx | |
342 | + | let bS = size(bR) | |
343 | + | let bT = $Tuple2(bx, nil) | |
344 | + | func bU (bV,bW) = if ((bW >= bS)) | |
345 | + | then bV | |
346 | + | else bz(bV, bR[bW]) | |
341 | 347 | ||
342 | - | func | |
343 | - | then | |
348 | + | func bX (bV,bW) = if ((bW >= bS)) | |
349 | + | then bV | |
344 | 350 | else throw("List size exceeds 10") | |
345 | 351 | ||
346 | - | | |
352 | + | bX(bU(bU(bU(bU(bU(bU(bU(bU(bU(bU(bT, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
347 | 353 | } | |
348 | - | let | |
349 | - | let | |
350 | - | (( | |
354 | + | let bY = bQ._1 | |
355 | + | let bZ = bQ._2 | |
356 | + | ((bZ ++ bl(R, S, size(bY))) ++ bc(makeString(bY, ","), R, S)) | |
351 | 357 | } | |
352 | 358 | ||
353 | 359 | ||
354 | 360 | ||
355 | 361 | @Callable(bw) | |
356 | - | func setContext ( | |
362 | + | func setContext (ca) = if ((bw.caller != this)) | |
357 | 363 | then throw("Only self-call") | |
358 | - | else [StringEntry(o, | |
364 | + | else [StringEntry(o, ca)] | |
359 | 365 | ||
360 | 366 | ||
361 | 367 | ||
367 | 373 | ||
368 | 374 | ||
369 | 375 | @Callable(bw) | |
370 | - | func initialize ( | |
376 | + | func initialize (cb) = if (if (Y()) | |
371 | 377 | then true | |
372 | 378 | else (bw.caller != this)) | |
373 | 379 | then throw("Unable to initialize") | |
374 | - | else [StringEntry(a, toString(addressFromStringValue( | |
380 | + | else [StringEntry(a, toString(addressFromStringValue(cb))), BooleanEntry(p, true)] | |
375 | 381 | ||
376 | 382 | ||
377 | 383 | ||
378 | 384 | @Callable(bw) | |
379 | - | func createOrder (R,P,aT,aY,aR,aS,aV,aW, | |
385 | + | func createOrder (R,P,aT,aY,aR,aS,aV,aW,cc,cd,ce,cf,aZ) = { | |
380 | 386 | let S = toString(bw.caller) | |
381 | - | let | |
382 | - | if (( | |
387 | + | let cg = invoke(this, "cleanUpStaleOrders", [R, S], nil) | |
388 | + | if ((cg == cg)) | |
383 | 389 | then if ((size(bw.payments) > 1)) | |
384 | 390 | then throw("Invalid createOrder parameters: invalid payment count") | |
385 | 391 | else { | |
386 | - | let | |
392 | + | let ch = if ((size(bw.payments) == 1)) | |
387 | 393 | then $Tuple2(toBase58String(valueOrErrorMessage(bw.payments[0].assetId, "Invalid asset id")), bw.payments[0].amount) | |
388 | 394 | else $Tuple2("", 0) | |
389 | - | let | |
390 | - | let | |
391 | - | let | |
392 | - | if (( | |
395 | + | let ci = ch._1 | |
396 | + | let cj = ch._2 | |
397 | + | let ck = invoke(this, "internalCreateOrder", [S, R, P, aT, aY, aR, aS, aV, aW, ci, cj, aZ], nil) | |
398 | + | if ((ck == ck)) | |
393 | 399 | then { | |
394 | 400 | let aj = { | |
395 | - | let aC = | |
401 | + | let aC = ck | |
396 | 402 | if ($isInstanceOf(aC, "Int")) | |
397 | 403 | then { | |
398 | 404 | let aD = aC | |
402 | 408 | } | |
403 | 409 | if ((P == s)) | |
404 | 410 | then { | |
405 | - | let cj = if ((ca > 0)) | |
406 | - | then { | |
407 | - | let ck = invoke(this, "internalCreateOrderRequest", [S, R, aj, q, ca, cb], nil) | |
408 | - | if ((ck == ck)) | |
409 | - | then nil | |
410 | - | else throw("Strict value is not equal to itself.") | |
411 | - | } | |
412 | - | else nil | |
413 | 411 | let cl = if ((cc > 0)) | |
414 | 412 | then { | |
415 | - | let cm = invoke(this, "internalCreateOrderRequest", [S, R, aj, | |
413 | + | let cm = invoke(this, "internalCreateOrderRequest", [S, R, aj, q, cc, cd], nil) | |
416 | 414 | if ((cm == cm)) | |
417 | 415 | then nil | |
418 | 416 | else throw("Strict value is not equal to itself.") | |
419 | 417 | } | |
420 | 418 | else nil | |
421 | - | (cj ++ cl) | |
419 | + | let cn = if ((ce > 0)) | |
420 | + | then { | |
421 | + | let co = invoke(this, "internalCreateOrderRequest", [S, R, aj, r, ce, cf], nil) | |
422 | + | if ((co == co)) | |
423 | + | then nil | |
424 | + | else throw("Strict value is not equal to itself.") | |
425 | + | } | |
426 | + | else nil | |
427 | + | (cl ++ cn) | |
422 | 428 | } | |
423 | 429 | else nil | |
424 | 430 | } | |
430 | 436 | ||
431 | 437 | ||
432 | 438 | @Callable(bw) | |
433 | - | func increasePositionWithStopLoss (R,aJ,aS, | |
439 | + | func increasePositionWithStopLoss (R,aJ,aS,cp,aW,cc,cd,ce,cf,cq) = { | |
434 | 440 | let S = toString(bw.caller) | |
435 | - | let | |
436 | - | if (( | |
441 | + | let cg = invoke(this, "cleanUpStaleOrders", [R, S], nil) | |
442 | + | if ((cg == cg)) | |
437 | 443 | then if (if (!(Y())) | |
438 | 444 | then true | |
439 | 445 | else !(X(R))) | |
440 | 446 | then throw("Invalid increasePositionWithStopLoss parameters") | |
441 | 447 | else { | |
442 | - | let | |
443 | - | if (( | |
448 | + | let cr = aI(R, S, aJ) | |
449 | + | if ((cr != 0)) | |
444 | 450 | then throw("Invalid increasePositionWithStopLoss parameters: only new position") | |
445 | 451 | else { | |
446 | - | let | |
447 | - | if (( | |
452 | + | let cs = invoke(this, "setContext", [S], nil) | |
453 | + | if ((cs == cs)) | |
448 | 454 | then { | |
449 | - | let | |
450 | - | if (( | |
455 | + | let ct = invoke(addressFromStringValue(R), "increasePosition", [aJ, aS, cp, aW, cq], bw.payments) | |
456 | + | if ((ct == ct)) | |
451 | 457 | then { | |
452 | - | let | |
453 | - | if (( | |
458 | + | let cu = invoke(this, "resetContext", nil, nil) | |
459 | + | if ((cu == cu)) | |
454 | 460 | then { | |
455 | - | let | |
456 | - | if (( | |
461 | + | let cv = aI(R, S, aJ) | |
462 | + | if ((cv == cv)) | |
457 | 463 | then { | |
458 | - | let as = B( | |
459 | - | let | |
464 | + | let as = B(cv) | |
465 | + | let cw = if ((0 > cv)) | |
460 | 466 | then t | |
461 | 467 | else u | |
462 | - | let | |
468 | + | let cx = if ((cc > 0)) | |
463 | 469 | then { | |
464 | - | let | |
465 | - | if (( | |
470 | + | let cx = invoke(this, "internalCreateOrder", [S, R, q, cc, cd, as, 0, cw, aW, "", 0, 0], nil) | |
471 | + | if ((cx == cx)) | |
466 | 472 | then nil | |
467 | 473 | else throw("Strict value is not equal to itself.") | |
468 | 474 | } | |
469 | 475 | else nil | |
470 | - | if (( | |
476 | + | if ((cx == cx)) | |
471 | 477 | then { | |
472 | - | let | |
478 | + | let cy = if ((ce > 0)) | |
473 | 479 | then { | |
474 | - | let | |
475 | - | if (( | |
480 | + | let cy = invoke(this, "internalCreateOrder", [S, R, r, ce, cf, as, 0, cw, aW, "", 0, 0], nil) | |
481 | + | if ((cy == cy)) | |
476 | 482 | then nil | |
477 | 483 | else throw("Strict value is not equal to itself.") | |
478 | 484 | } | |
479 | 485 | else nil | |
480 | - | if (( | |
486 | + | if ((cy == cy)) | |
481 | 487 | then nil | |
482 | 488 | else throw("Strict value is not equal to itself.") | |
483 | 489 | } | |
505 | 511 | else !((bw.caller == this))) | |
506 | 512 | then throw("Invalid internalMarkOrderExecuted parameters") | |
507 | 513 | else { | |
508 | - | let | |
509 | - | ((bl(R, S, | |
514 | + | let cz = (ab(R, S) - 1) | |
515 | + | ((bl(R, S, cz) ++ bi(L, R, S, false)) ++ bp(L)) | |
510 | 516 | } | |
511 | 517 | ||
512 | 518 | ||
527 | 533 | ||
528 | 534 | ||
529 | 535 | @Callable(bw) | |
530 | - | func internalCreateOrder (S,R,P,aT,aY,aR,aS,aV,aW, | |
536 | + | func internalCreateOrder (S,R,P,aT,aY,aR,aS,aV,aW,cA,cB,aZ) = if (if (if (if (if (if (if (if (if (if (!(Y())) | |
531 | 537 | then true | |
532 | 538 | else !(X(R))) | |
533 | 539 | then true | |
555 | 561 | then throw("Invalid internalCreateOrder parameters") | |
556 | 562 | else { | |
557 | 563 | let aj = (aa() + 1) | |
558 | - | let | |
559 | - | let | |
560 | - | let | |
561 | - | let aJ = if (if (if (( | |
564 | + | let cC = aF(aV, P) | |
565 | + | let cz = (ab(R, S) + 1) | |
566 | + | let cr = aI(R, S, cC) | |
567 | + | let aJ = if (if (if ((cr == 0)) | |
562 | 568 | then true | |
563 | - | else if (( | |
569 | + | else if ((cr > 0)) | |
564 | 570 | then (aV == t) | |
565 | 571 | else false) | |
566 | 572 | then true | |
567 | - | else if ((0 > | |
573 | + | else if ((0 > cr)) | |
568 | 574 | then (aV == u) | |
569 | 575 | else false) | |
570 | 576 | then v | |
571 | 577 | else w | |
572 | - | if (if (( | |
578 | + | if (if ((cr == 0)) | |
573 | 579 | then if ((P == q)) | |
574 | 580 | then true | |
575 | 581 | else (P == r) | |
576 | 582 | else false) | |
577 | 583 | then throw("Can not create STOP/TAKE order: no position") | |
578 | 584 | else { | |
579 | - | let | |
580 | - | then if (if (( | |
585 | + | let cD = if ((aJ == v)) | |
586 | + | then if (if ((cA != toBase58String(V()))) | |
581 | 587 | then true | |
582 | - | else ( | |
588 | + | else (cB != aR)) | |
583 | 589 | then throw("Invalid createLimitOrder parameters: invalid payment") | |
584 | 590 | else { | |
585 | - | let | |
586 | - | if (( | |
587 | - | then | |
591 | + | let cE = invoke(W(), "deposit", nil, [AttachedPayment(V(), cB)]) | |
592 | + | if ((cE == cE)) | |
593 | + | then cB | |
588 | 594 | else throw("Strict value is not equal to itself.") | |
589 | 595 | } | |
590 | 596 | else 0 | |
591 | - | if (( | |
597 | + | if ((cD == cD)) | |
592 | 598 | then { | |
593 | - | let ax = if (( | |
594 | - | then aM(R, S, | |
599 | + | let ax = if ((cr != 0)) | |
600 | + | then aM(R, S, cC) | |
595 | 601 | else 0 | |
596 | 602 | if (if (if ((P == q)) | |
597 | 603 | then true | |
599 | 605 | then (ax == 0) | |
600 | 606 | else false) | |
601 | 607 | then throw("STOP and TAKE order should be assigned to position with id != 0") | |
602 | - | else if (( | |
608 | + | else if ((cz > x)) | |
603 | 609 | then throw("Invalid createLimitOrder parameters: order count") | |
604 | 610 | else { | |
605 | - | let | |
606 | - | $Tuple2( | |
611 | + | let cF = (((aQ(aj, R, S, aR, aS, P, aT, cD, aV, aW, ax, aY, aZ) ++ bi(aj, R, S, true)) ++ bl(R, S, cz)) ++ bn(aj)) | |
612 | + | $Tuple2(cF, aj) | |
607 | 613 | } | |
608 | 614 | } | |
609 | 615 | else throw("Strict value is not equal to itself.") | |
614 | 620 | ||
615 | 621 | @Callable(bw) | |
616 | 622 | func cancelOrder (L) = { | |
617 | - | let | |
618 | - | let R = | |
619 | - | let S = | |
620 | - | let aR = | |
621 | - | let aS = | |
622 | - | let P = | |
623 | - | let aT = | |
624 | - | let | |
625 | - | let aV = | |
626 | - | let aW = | |
627 | - | let aX = | |
628 | - | let aY = | |
623 | + | let cG = ap(L) | |
624 | + | let R = cG._1 | |
625 | + | let S = cG._2 | |
626 | + | let aR = cG._3 | |
627 | + | let aS = cG._4 | |
628 | + | let P = cG._5 | |
629 | + | let aT = cG._6 | |
630 | + | let cH = cG._7 | |
631 | + | let aV = cG._8 | |
632 | + | let aW = cG._9 | |
633 | + | let aX = cG._10 | |
634 | + | let aY = cG._11 | |
629 | 635 | if (if (if (!(Y())) | |
630 | 636 | then true | |
631 | 637 | else !(Z(L))) | |
633 | 639 | else !((toString(bw.caller) == S))) | |
634 | 640 | then throw("Invalid cancelOrder parameters") | |
635 | 641 | else { | |
636 | - | let | |
637 | - | if (( | |
642 | + | let cg = invoke(this, "cleanUpStaleOrders", [R, S], nil) | |
643 | + | if ((cg == cg)) | |
638 | 644 | then { | |
639 | - | let | |
640 | - | let | |
645 | + | let cz = (ab(R, S) - 1) | |
646 | + | let cI = if ((cH > 0)) | |
641 | 647 | then { | |
642 | - | let | |
643 | - | if (( | |
648 | + | let cJ = invoke(W(), "withdraw", [toBase58String(V()), cH], nil) | |
649 | + | if ((cJ == cJ)) | |
644 | 650 | then nil | |
645 | 651 | else throw("Strict value is not equal to itself.") | |
646 | 652 | } | |
647 | 653 | else nil | |
648 | - | if (( | |
649 | - | then (((bq(L) ++ bi(L, R, S, false)) ++ bl(R, S, | |
650 | - | then [ScriptTransfer(bw.caller, | |
654 | + | if ((cI == cI)) | |
655 | + | then (((bq(L) ++ bi(L, R, S, false)) ++ bl(R, S, cz)) ++ (if ((cH > 0)) | |
656 | + | then [ScriptTransfer(bw.caller, cH, V())] | |
651 | 657 | else nil)) | |
652 | 658 | else throw("Strict value is not equal to itself.") | |
653 | 659 | } | |
658 | 664 | ||
659 | 665 | ||
660 | 666 | @Callable(bw) | |
661 | - | func executeOrder (L) = { | |
662 | - | let | |
663 | - | let R = | |
664 | - | let S = | |
665 | - | let aR = | |
666 | - | let aS = | |
667 | - | let P = | |
668 | - | let aT = | |
669 | - | let | |
670 | - | let aV = | |
671 | - | let aW = | |
672 | - | let aX = | |
673 | - | let aY = | |
674 | - | let | |
675 | - | if (( | |
667 | + | func executeOrder (L,cq) = { | |
668 | + | let cK = ap(L) | |
669 | + | let R = cK._1 | |
670 | + | let S = cK._2 | |
671 | + | let aR = cK._3 | |
672 | + | let aS = cK._4 | |
673 | + | let P = cK._5 | |
674 | + | let aT = cK._6 | |
675 | + | let cH = cK._7 | |
676 | + | let aV = cK._8 | |
677 | + | let aW = cK._9 | |
678 | + | let aX = cK._10 | |
679 | + | let aY = cK._11 | |
680 | + | let cg = invoke(this, "cleanUpStaleOrders", [R, S], nil) | |
681 | + | if ((cg == cg)) | |
676 | 682 | then { | |
677 | - | let | |
683 | + | let cC = aF(aV, P) | |
678 | 684 | if (if (!(Y())) | |
679 | 685 | then true | |
680 | 686 | else !(Z(L))) | |
681 | 687 | then throw("Invalid executeOrder parameters") | |
682 | 688 | else { | |
683 | - | let | |
684 | - | if (( | |
689 | + | let cr = aI(R, S, cC) | |
690 | + | if ((cr == cr)) | |
685 | 691 | then { | |
686 | - | let | |
687 | - | then aM(R, S, | |
692 | + | let cL = if ((cr != 0)) | |
693 | + | then aM(R, S, cC) | |
688 | 694 | else 0 | |
689 | - | let | |
695 | + | let cM = if ((P == q)) | |
690 | 696 | then { | |
691 | - | let | |
697 | + | let cN = if ((cr > 0)) | |
692 | 698 | then t | |
693 | - | else if ((0 > | |
699 | + | else if ((0 > cr)) | |
694 | 700 | then u | |
695 | 701 | else throw("Can not execute STOP order: no open position") | |
696 | - | let | |
697 | - | let | |
702 | + | let cO = az(R) | |
703 | + | let cP = if ((aV == cN)) | |
698 | 704 | then throw("Can not execute STOP order: reduce only") | |
699 | - | else if (( | |
705 | + | else if ((cL != aX)) | |
700 | 706 | then throw("Can not execute STOP order: position closed") | |
701 | - | else if (( | |
702 | - | then (aT >= | |
703 | - | else ( | |
704 | - | if ( | |
705 | - | then $Tuple3("closePosition", [G(aR, B( | |
707 | + | else if ((cN == t)) | |
708 | + | then (aT >= cO) | |
709 | + | else (cO >= aT) | |
710 | + | if (cP) | |
711 | + | then $Tuple3("closePosition", [G(aR, B(cr)), cC, F(aY, B(cr)), false, cq], nil) | |
706 | 712 | else throw("Can not execute STOP order: triggerPrice mismatch") | |
707 | 713 | } | |
708 | 714 | else if ((P == r)) | |
709 | 715 | then { | |
710 | - | let | |
716 | + | let cN = if ((cr > 0)) | |
711 | 717 | then t | |
712 | - | else if ((0 > | |
718 | + | else if ((0 > cr)) | |
713 | 719 | then u | |
714 | 720 | else throw("Can not execute STOP order: no open position") | |
715 | - | let | |
716 | - | let | |
721 | + | let cO = az(R) | |
722 | + | let cP = if ((aV == cN)) | |
717 | 723 | then throw("Can not execute TAKE order: reduce only") | |
718 | - | else if (( | |
719 | - | then throw(((("Can not execute TAKE order: position closed " + toString( | |
720 | - | else if (( | |
721 | - | then ( | |
722 | - | else (aT >= | |
723 | - | if ( | |
724 | - | then $Tuple3("closePosition", [G(aR, B( | |
724 | + | else if ((cL != aX)) | |
725 | + | then throw(((("Can not execute TAKE order: position closed " + toString(cL)) + "!=") + toString(aX))) | |
726 | + | else if ((cN == t)) | |
727 | + | then (cO >= aT) | |
728 | + | else (aT >= cO) | |
729 | + | if (cP) | |
730 | + | then $Tuple3("closePosition", [G(aR, B(cr)), cC, F(aY, B(cr)), false, cq], nil) | |
725 | 731 | else throw("Can not execute TAKE order: triggerPrice mismatch") | |
726 | 732 | } | |
727 | 733 | else if ((P == s)) | |
728 | 734 | then { | |
729 | - | let | |
730 | - | let | |
735 | + | let cO = az(R) | |
736 | + | let cQ = if ((aY == 0)) | |
731 | 737 | then aO(aT) | |
732 | 738 | else B((aT - aY)) | |
733 | - | let | |
734 | - | then ((aT + | |
739 | + | let cP = if ((cO >= (aT - cQ))) | |
740 | + | then ((aT + cQ) >= cO) | |
735 | 741 | else false | |
736 | - | if ( | |
742 | + | if (cP) | |
737 | 743 | then { | |
738 | - | let | |
744 | + | let cR = (cH - F(cH, aE(R, S))) | |
739 | 745 | $Tuple3("increasePosition", [aV, aS, if ((aY == 0)) | |
740 | 746 | then 0 | |
741 | - | else D( | |
747 | + | else D(cR, aY), aW, cq], [AttachedPayment(V(), cH)]) | |
742 | 748 | } | |
743 | 749 | else throw("Can not execute LIMIT order: triggerPrice mismatch") | |
744 | 750 | } | |
745 | 751 | else throw(("Invalid order type: " + toString(P))) | |
746 | - | let | |
747 | - | let | |
748 | - | let | |
749 | - | let | |
752 | + | let cS = cM._1 | |
753 | + | let cT = cM._2 | |
754 | + | let cU = cM._3 | |
755 | + | let cI = if ((size(cU) == 1)) | |
750 | 756 | then { | |
751 | - | let | |
752 | - | if (( | |
757 | + | let cJ = invoke(W(), "withdraw", [toBase58String(V()), cU[0].amount], nil) | |
758 | + | if ((cJ == cJ)) | |
753 | 759 | then nil | |
754 | 760 | else throw("Strict value is not equal to itself.") | |
755 | 761 | } | |
756 | 762 | else nil | |
757 | - | if (( | |
763 | + | if ((cI == cI)) | |
758 | 764 | then { | |
759 | - | let | |
760 | - | if (( | |
765 | + | let cs = invoke(this, "setContext", [S], nil) | |
766 | + | if ((cs == cs)) | |
761 | 767 | then { | |
762 | - | let | |
763 | - | if (( | |
768 | + | let ct = invoke(addressFromStringValue(R), cS, cT, cU) | |
769 | + | if ((ct == ct)) | |
764 | 770 | then { | |
765 | - | let | |
766 | - | if (( | |
771 | + | let cu = invoke(this, "resetContext", nil, nil) | |
772 | + | if ((cu == cu)) | |
767 | 773 | then { | |
768 | - | let | |
774 | + | let cV = if ((P == s)) | |
769 | 775 | then { | |
770 | - | let | |
771 | - | if (( | |
776 | + | let cW = aI(R, S, cC) | |
777 | + | if ((cW == cW)) | |
772 | 778 | then { | |
773 | - | let | |
774 | - | if (( | |
779 | + | let cX = aM(R, S, cC) | |
780 | + | if ((cX == cX)) | |
775 | 781 | then { | |
776 | - | let | |
777 | - | let | |
782 | + | let cY = (cW - cr) | |
783 | + | let cZ = if ((cW > 0)) | |
778 | 784 | then u | |
779 | 785 | else t | |
780 | - | let | |
786 | + | let da = if (af(L, r)) | |
781 | 787 | then { | |
782 | - | let | |
783 | - | let | |
784 | - | let | |
785 | - | let | |
786 | - | let | |
787 | - | let | |
788 | - | let | |
789 | - | let | |
790 | - | if (( | |
788 | + | let db = ag(L, r) | |
789 | + | let dc = db._1 | |
790 | + | let dd = db._2 | |
791 | + | let de = db._3 | |
792 | + | let df = db._4 | |
793 | + | let dg = db._5 | |
794 | + | let dh = db._6 | |
795 | + | let ck = invoke(this, "internalCreateOrder", [de, dd, df, dg, dh, cY, 0, cZ, "", "", 0, 0], nil) | |
796 | + | if ((ck == ck)) | |
791 | 797 | then nil | |
792 | 798 | else throw("Strict value is not equal to itself.") | |
793 | 799 | } | |
794 | 800 | else nil | |
795 | - | if (( | |
801 | + | if ((da == da)) | |
796 | 802 | then { | |
797 | - | let | |
803 | + | let di = if (af(L, q)) | |
798 | 804 | then { | |
799 | - | let | |
800 | - | let | |
801 | - | let | |
802 | - | let | |
803 | - | let | |
804 | - | let | |
805 | - | let | |
806 | - | let | |
807 | - | if (( | |
805 | + | let dj = ag(L, q) | |
806 | + | let dc = dj._1 | |
807 | + | let dd = dj._2 | |
808 | + | let de = dj._3 | |
809 | + | let df = dj._4 | |
810 | + | let dg = dj._5 | |
811 | + | let dh = dj._6 | |
812 | + | let ck = invoke(this, "internalCreateOrder", [de, dd, df, dg, dh, cY, 0, cZ, "", "", 0, 0], nil) | |
813 | + | if ((ck == ck)) | |
808 | 814 | then nil | |
809 | 815 | else throw("Strict value is not equal to itself.") | |
810 | 816 | } | |
811 | 817 | else nil | |
812 | - | if (( | |
813 | - | then ( | |
818 | + | if ((di == di)) | |
819 | + | then (da ++ di) | |
814 | 820 | else throw("Strict value is not equal to itself.") | |
815 | 821 | } | |
816 | 822 | else throw("Strict value is not equal to itself.") | |
820 | 826 | else throw("Strict value is not equal to itself.") | |
821 | 827 | } | |
822 | 828 | else nil | |
823 | - | if (( | |
829 | + | if ((cV == cV)) | |
824 | 830 | then { | |
825 | - | let | |
826 | - | if (( | |
831 | + | let dk = invoke(this, "internalMarkOrderExecuted", [R, S, L], nil) | |
832 | + | if ((dk == dk)) | |
827 | 833 | then nil | |
828 | 834 | else throw("Strict value is not equal to itself.") | |
829 | 835 | } | |
846 | 852 | ||
847 | 853 | ||
848 | 854 | @Callable(bw) | |
849 | - | func view_canExecuteOrder (L) = { | |
850 | - | let aA = invoke(this, "executeOrder", [L], nil) | |
855 | + | func view_canExecuteOrder (L,cq) = { | |
856 | + | let aA = invoke(this, "executeOrder", [L, cq], nil) | |
851 | 857 | if ((aA == aA)) | |
852 | 858 | then throw("Success") | |
853 | 859 | else throw("Strict value is not equal to itself.") | |
854 | 860 | } | |
855 | 861 | ||
856 | 862 | ||
857 | - | @Verifier( | |
858 | - | func | |
859 | - | let | |
860 | - | if (isDefined( | |
863 | + | @Verifier(dl) | |
864 | + | func dm () = { | |
865 | + | let dn = getString(this, a) | |
866 | + | if (isDefined(dn)) | |
861 | 867 | then { | |
862 | - | let | |
863 | - | if (isDefined( | |
864 | - | then valueOrElse(getBoolean(addressFromStringValue(value( | |
868 | + | let do = getString(addressFromStringValue(value(dn)), b) | |
869 | + | if (isDefined(do)) | |
870 | + | then valueOrElse(getBoolean(addressFromStringValue(value(do)), ((("status_" + toString(this)) + "_") + toBase58String(dl.id))), false) | |
865 | 871 | else throw("unable to verify: admin not set in coordinator") | |
866 | 872 | } | |
867 | - | else sigVerify( | |
873 | + | else sigVerify(dl.bodyBytes, dl.proofs[0], dl.senderPublicKey) | |
868 | 874 | } | |
869 | 875 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = "k_coordinatorAddress" | |
5 | 5 | ||
6 | 6 | let b = "k_admin_address" | |
7 | 7 | ||
8 | 8 | let c = "k_quote_asset" | |
9 | 9 | ||
10 | 10 | let d = "k_amm" | |
11 | 11 | ||
12 | 12 | let e = "k_manager_address" | |
13 | 13 | ||
14 | 14 | let f = "k_positionSequence" | |
15 | 15 | ||
16 | 16 | let g = "k_positionSize" | |
17 | 17 | ||
18 | 18 | let h = "k_executedOrders" | |
19 | 19 | ||
20 | 20 | let i = "k_canceledOrders" | |
21 | 21 | ||
22 | 22 | let j = "k_order" | |
23 | 23 | ||
24 | 24 | let k = "k_orderReq" | |
25 | 25 | ||
26 | 26 | let l = "k_lastOrderId" | |
27 | 27 | ||
28 | 28 | let m = "k_traderOrderCnt" | |
29 | 29 | ||
30 | 30 | let n = "k_traderOrderIds" | |
31 | 31 | ||
32 | 32 | let o = "k_sender" | |
33 | 33 | ||
34 | 34 | let p = "k_initialized" | |
35 | 35 | ||
36 | 36 | let q = 1 | |
37 | 37 | ||
38 | 38 | let r = 2 | |
39 | 39 | ||
40 | 40 | let s = 3 | |
41 | 41 | ||
42 | 42 | let t = 1 | |
43 | 43 | ||
44 | 44 | let u = 2 | |
45 | 45 | ||
46 | 46 | let v = 1 | |
47 | 47 | ||
48 | 48 | let w = 2 | |
49 | 49 | ||
50 | 50 | let x = 10 | |
51 | 51 | ||
52 | 52 | let y = lastBlock.timestamp | |
53 | 53 | ||
54 | 54 | let z = (1 * (((((10 * 10) * 10) * 10) * 10) * 10)) | |
55 | 55 | ||
56 | 56 | let A = (z / 200) | |
57 | 57 | ||
58 | 58 | func B (C) = if ((C > 0)) | |
59 | 59 | then C | |
60 | 60 | else -(C) | |
61 | 61 | ||
62 | 62 | ||
63 | 63 | func D (C,E) = fraction(C, z, E, HALFEVEN) | |
64 | 64 | ||
65 | 65 | ||
66 | 66 | func F (C,E) = fraction(C, E, z, HALFEVEN) | |
67 | 67 | ||
68 | 68 | ||
69 | 69 | func G (C,E) = if ((C > E)) | |
70 | 70 | then E | |
71 | 71 | else C | |
72 | 72 | ||
73 | 73 | ||
74 | 74 | func H (I,J) = ((I + "_") + J) | |
75 | 75 | ||
76 | 76 | ||
77 | 77 | func K (L) = ((h + "_") + toString(L)) | |
78 | 78 | ||
79 | 79 | ||
80 | 80 | func M (L) = ((i + "_") + toString(L)) | |
81 | 81 | ||
82 | 82 | ||
83 | 83 | func N (L) = H(j, toString(L)) | |
84 | 84 | ||
85 | 85 | ||
86 | 86 | func O (L,P) = ((((k + "_") + toString(L)) + "_") + toString(P)) | |
87 | 87 | ||
88 | 88 | ||
89 | 89 | func Q (R,S) = ((((m + "_") + R) + "_") + S) | |
90 | 90 | ||
91 | 91 | ||
92 | 92 | func T (R,S) = ((((n + "_") + R) + "_") + S) | |
93 | 93 | ||
94 | 94 | ||
95 | 95 | func U () = valueOrErrorMessage(addressFromString(getStringValue(this, a)), "Coordinator not set") | |
96 | 96 | ||
97 | 97 | ||
98 | 98 | func V () = fromBase58String(getStringValue(U(), c)) | |
99 | 99 | ||
100 | 100 | ||
101 | 101 | func W () = valueOrErrorMessage(addressFromString(getStringValue(U(), e)), "Manager not set") | |
102 | 102 | ||
103 | 103 | ||
104 | 104 | func X (J) = valueOrElse(getBoolean(U(), H(d, J)), false) | |
105 | 105 | ||
106 | 106 | ||
107 | 107 | func Y () = valueOrElse(getBoolean(this, p), false) | |
108 | 108 | ||
109 | 109 | ||
110 | 110 | func Z (L) = if (valueOrElse(getBoolean(this, K(L)), false)) | |
111 | 111 | then throw(("Order already executed: " + toString(L))) | |
112 | 112 | else if (valueOrElse(getBoolean(this, M(L)), false)) | |
113 | 113 | then throw(("Order already cancelled: " + toString(L))) | |
114 | 114 | else true | |
115 | 115 | ||
116 | 116 | ||
117 | 117 | func aa () = valueOrElse(getInteger(this, l), 0) | |
118 | 118 | ||
119 | 119 | ||
120 | 120 | func ab (R,S) = { | |
121 | 121 | let ac = Q(R, S) | |
122 | 122 | valueOrElse(getInteger(this, ac), 0) | |
123 | 123 | } | |
124 | 124 | ||
125 | 125 | ||
126 | 126 | func ad (R,S) = { | |
127 | 127 | let ac = T(R, S) | |
128 | 128 | let ae = valueOrElse(getString(this, ac), "") | |
129 | 129 | if ((ae == "")) | |
130 | 130 | then nil | |
131 | 131 | else split(ae, ",") | |
132 | 132 | } | |
133 | 133 | ||
134 | 134 | ||
135 | 135 | func af (L,P) = { | |
136 | 136 | let ac = O(L, P) | |
137 | 137 | isDefined(getString(this, ac)) | |
138 | 138 | } | |
139 | 139 | ||
140 | 140 | ||
141 | 141 | func ag (L,P) = { | |
142 | 142 | let ac = O(L, P) | |
143 | 143 | let ah = valueOrErrorMessage(getString(this, ac), ("Not order request for key: " + ac)) | |
144 | 144 | let ai = split(ah, ",") | |
145 | 145 | let aj = valueOrErrorMessage(parseInt(ai[0]), "Invalid orderId") | |
146 | 146 | let ak = ai[1] | |
147 | 147 | let al = ai[2] | |
148 | 148 | let am = valueOrErrorMessage(parseInt(ai[3]), "Invalid type") | |
149 | 149 | let an = valueOrErrorMessage(parseInt(ai[4]), "Invalid triggerPrice") | |
150 | 150 | let ao = valueOrErrorMessage(parseInt(ai[5]), "Invalid limitPrice") | |
151 | 151 | $Tuple6(aj, ak, al, am, an, ao) | |
152 | 152 | } | |
153 | 153 | ||
154 | 154 | ||
155 | 155 | func ap (L) = { | |
156 | 156 | let aq = valueOrErrorMessage(getString(this, N(L)), ("Invalid order id: " + toString(L))) | |
157 | 157 | let ar = split(aq, ",") | |
158 | 158 | let ak = ar[0] | |
159 | 159 | let al = ar[1] | |
160 | 160 | let as = valueOrErrorMessage(parseInt(ar[2]), "Invalid amountIn") | |
161 | 161 | let at = valueOrErrorMessage(parseInt(ar[3]), "Invalid leverage") | |
162 | 162 | let am = valueOrErrorMessage(parseInt(ar[4]), "Invalid type") | |
163 | 163 | let an = valueOrErrorMessage(parseInt(ar[5]), "Invalid triggerPrice") | |
164 | 164 | let au = valueOrErrorMessage(parseInt(ar[6]), "Invalid paymentUsdn") | |
165 | 165 | let av = valueOrErrorMessage(parseInt(ar[7]), "Invalid side") | |
166 | 166 | let aw = ar[8] | |
167 | 167 | let ax = valueOrErrorMessage(parseInt(ar[9]), "Invalid positionId") | |
168 | 168 | let ao = valueOrErrorMessage(parseInt(ar[10]), "Invalid limitPrice") | |
169 | 169 | let ay = if ((size(ar) > 11)) | |
170 | 170 | then valueOrErrorMessage(parseInt(ar[11]), "Invalid limitPrice") | |
171 | 171 | else 0 | |
172 | 172 | $Tuple12(ak, al, as, at, am, an, au, av, aw, ax, ao, ay) | |
173 | 173 | } | |
174 | 174 | ||
175 | 175 | ||
176 | 176 | func az (R) = { | |
177 | 177 | let aA = invoke(addressFromStringValue(R), "computeSpotPrice", nil, nil) | |
178 | 178 | if ((aA == aA)) | |
179 | 179 | then { | |
180 | 180 | let aB = { | |
181 | 181 | let aC = aA | |
182 | 182 | if ($isInstanceOf(aC, "Int")) | |
183 | 183 | then { | |
184 | 184 | let aD = aC | |
185 | 185 | aD | |
186 | 186 | } | |
187 | 187 | else throw("Invalid computeSpotPrice result") | |
188 | 188 | } | |
189 | 189 | value(aB) | |
190 | 190 | } | |
191 | 191 | else throw("Strict value is not equal to itself.") | |
192 | 192 | } | |
193 | 193 | ||
194 | 194 | ||
195 | 195 | func aE (R,S) = { | |
196 | 196 | let aA = invoke(addressFromStringValue(R), "computeFeeForTraderWithArtifact", [S, ""], nil) | |
197 | 197 | if ((aA == aA)) | |
198 | 198 | then { | |
199 | 199 | let aB = { | |
200 | 200 | let aC = aA | |
201 | 201 | if ($isInstanceOf(aC, "(Int, Boolean)")) | |
202 | 202 | then { | |
203 | 203 | let aD = aC | |
204 | 204 | aD._1 | |
205 | 205 | } | |
206 | 206 | else throw("Invalid computeFeeForTraderWithArtifact result") | |
207 | 207 | } | |
208 | 208 | value(aB) | |
209 | 209 | } | |
210 | 210 | else throw("Strict value is not equal to itself.") | |
211 | 211 | } | |
212 | 212 | ||
213 | 213 | ||
214 | 214 | func aF (aG,aH) = if (if ((aH == r)) | |
215 | 215 | then true | |
216 | 216 | else (aH == q)) | |
217 | 217 | then if ((aG == t)) | |
218 | 218 | then u | |
219 | 219 | else t | |
220 | 220 | else aG | |
221 | 221 | ||
222 | 222 | ||
223 | 223 | func aI (R,S,aJ) = { | |
224 | 224 | let ak = addressFromStringValue(R) | |
225 | 225 | let aK = ((S + "_") + toString(aJ)) | |
226 | 226 | let aL = H(g, aK) | |
227 | 227 | valueOrElse(getInteger(ak, aL), 0) | |
228 | 228 | } | |
229 | 229 | ||
230 | 230 | ||
231 | 231 | func aM (R,S,aJ) = { | |
232 | 232 | let ak = addressFromStringValue(R) | |
233 | 233 | let aK = ((S + "_") + toString(aJ)) | |
234 | 234 | let aN = H(f, aK) | |
235 | 235 | valueOrElse(getInteger(ak, aN), 0) | |
236 | 236 | } | |
237 | 237 | ||
238 | 238 | ||
239 | 239 | func aO (aP) = F(aP, A) | |
240 | 240 | ||
241 | 241 | ||
242 | 242 | func aQ (L,R,S,aR,aS,P,aT,aU,aV,aW,aX,aY,aZ) = { | |
243 | 243 | let aq = makeString([R, S, toString(aR), toString(aS), toString(P), toString(aT), toString(aU), toString(aV), aW, toString(aX), toString(aY), toString(aZ)], ",") | |
244 | 244 | [StringEntry(N(L), aq)] | |
245 | 245 | } | |
246 | 246 | ||
247 | 247 | ||
248 | 248 | func ba (L,R,S,P,aT,aY) = { | |
249 | 249 | let bb = makeString([toString(L), R, S, toString(P), toString(aT), toString(aY)], ",") | |
250 | 250 | [StringEntry(O(L, P), bb)] | |
251 | 251 | } | |
252 | 252 | ||
253 | 253 | ||
254 | 254 | func bc (bd,R,S) = [StringEntry(T(R, S), bd)] | |
255 | 255 | ||
256 | 256 | ||
257 | 257 | func be (bf,L,R,S,bg) = { | |
258 | 258 | let bh = if (bg) | |
259 | 259 | then (bf :+ toString(L)) | |
260 | 260 | else removeByIndex(bf, valueOrErrorMessage(indexOf(bf, toString(L)), ("No order with id: " + toString(L)))) | |
261 | 261 | bh | |
262 | 262 | } | |
263 | 263 | ||
264 | 264 | ||
265 | 265 | func bi (L,R,S,bg) = { | |
266 | 266 | let bj = ad(R, S) | |
267 | 267 | let bh = be(bj, L, R, S, bg) | |
268 | 268 | let bk = makeString(bh, ",") | |
269 | 269 | bc(bk, R, S) | |
270 | 270 | } | |
271 | 271 | ||
272 | 272 | ||
273 | 273 | func bl (R,S,bm) = if ((0 > bm)) | |
274 | 274 | then throw(("Invalid order count: " + toString(bm))) | |
275 | 275 | else [IntegerEntry(Q(R, S), bm)] | |
276 | 276 | ||
277 | 277 | ||
278 | 278 | func bn (bo) = [IntegerEntry(l, bo)] | |
279 | 279 | ||
280 | 280 | ||
281 | 281 | func bp (L) = [BooleanEntry(H(h, toString(L)), true)] | |
282 | 282 | ||
283 | 283 | ||
284 | 284 | func bq (L) = [BooleanEntry(H(i, toString(L)), true)] | |
285 | 285 | ||
286 | 286 | ||
287 | 287 | func br (R,S) = { | |
288 | 288 | let bs = aI(R, S, t) | |
289 | 289 | let bt = if ((bs != 0)) | |
290 | 290 | then aM(R, S, t) | |
291 | 291 | else 0 | |
292 | 292 | let bu = aI(R, S, u) | |
293 | 293 | let bv = if ((bu != 0)) | |
294 | 294 | then aM(R, S, u) | |
295 | 295 | else 0 | |
296 | 296 | [bt, bv] | |
297 | 297 | } | |
298 | 298 | ||
299 | 299 | ||
300 | 300 | @Callable(bw) | |
301 | 301 | func cleanUpStaleOrders (R,S) = { | |
302 | 302 | let bx = ad(R, S) | |
303 | 303 | let by = br(R, S) | |
304 | 304 | func bz (bA,L) = { | |
305 | 305 | let bB = valueOrErrorMessage(parseInt(L), "Invalid order id") | |
306 | 306 | let bC = ap(bB) | |
307 | 307 | let bD = bC._1 | |
308 | 308 | let bE = bC._2 | |
309 | 309 | let bF = bC._3 | |
310 | 310 | let bG = bC._4 | |
311 | 311 | let P = bC._5 | |
312 | 312 | let bH = bC._6 | |
313 | 313 | let bI = bC._7 | |
314 | 314 | let bJ = bC._8 | |
315 | 315 | let bK = bC._9 | |
316 | 316 | let aX = bC._10 | |
317 | 317 | let bL = bC._11 | |
318 | 318 | let aZ = bC._12 | |
319 | - | | |
319 | + | let bM = if (if (if ((P == q)) | |
320 | 320 | then true | |
321 | 321 | else (P == r)) | |
322 | 322 | then (by[0] != aX) | |
323 | 323 | else false) | |
324 | 324 | then (by[1] != aX) | |
325 | - | else false) | |
325 | + | else false | |
326 | + | let bN = if ((P == s)) | |
327 | + | then (lastBlock.timestamp >= aZ) | |
328 | + | else false | |
329 | + | if (if (bM) | |
330 | + | then true | |
331 | + | else bN) | |
326 | 332 | then { | |
327 | - | let | |
328 | - | let | |
329 | - | $Tuple2( | |
333 | + | let bO = bq(bB) | |
334 | + | let bP = be(bA._1, bB, R, S, false) | |
335 | + | $Tuple2(bP, (bA._2 ++ bO)) | |
330 | 336 | } | |
331 | 337 | else bA | |
332 | 338 | } | |
333 | 339 | ||
334 | - | let | |
335 | - | let | |
336 | - | let | |
337 | - | let | |
338 | - | func | |
339 | - | then | |
340 | - | else bz( | |
340 | + | let bQ = { | |
341 | + | let bR = bx | |
342 | + | let bS = size(bR) | |
343 | + | let bT = $Tuple2(bx, nil) | |
344 | + | func bU (bV,bW) = if ((bW >= bS)) | |
345 | + | then bV | |
346 | + | else bz(bV, bR[bW]) | |
341 | 347 | ||
342 | - | func | |
343 | - | then | |
348 | + | func bX (bV,bW) = if ((bW >= bS)) | |
349 | + | then bV | |
344 | 350 | else throw("List size exceeds 10") | |
345 | 351 | ||
346 | - | | |
352 | + | bX(bU(bU(bU(bU(bU(bU(bU(bU(bU(bU(bT, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
347 | 353 | } | |
348 | - | let | |
349 | - | let | |
350 | - | (( | |
354 | + | let bY = bQ._1 | |
355 | + | let bZ = bQ._2 | |
356 | + | ((bZ ++ bl(R, S, size(bY))) ++ bc(makeString(bY, ","), R, S)) | |
351 | 357 | } | |
352 | 358 | ||
353 | 359 | ||
354 | 360 | ||
355 | 361 | @Callable(bw) | |
356 | - | func setContext ( | |
362 | + | func setContext (ca) = if ((bw.caller != this)) | |
357 | 363 | then throw("Only self-call") | |
358 | - | else [StringEntry(o, | |
364 | + | else [StringEntry(o, ca)] | |
359 | 365 | ||
360 | 366 | ||
361 | 367 | ||
362 | 368 | @Callable(bw) | |
363 | 369 | func resetContext () = if ((bw.caller != this)) | |
364 | 370 | then throw("Only self-call") | |
365 | 371 | else [DeleteEntry(o)] | |
366 | 372 | ||
367 | 373 | ||
368 | 374 | ||
369 | 375 | @Callable(bw) | |
370 | - | func initialize ( | |
376 | + | func initialize (cb) = if (if (Y()) | |
371 | 377 | then true | |
372 | 378 | else (bw.caller != this)) | |
373 | 379 | then throw("Unable to initialize") | |
374 | - | else [StringEntry(a, toString(addressFromStringValue( | |
380 | + | else [StringEntry(a, toString(addressFromStringValue(cb))), BooleanEntry(p, true)] | |
375 | 381 | ||
376 | 382 | ||
377 | 383 | ||
378 | 384 | @Callable(bw) | |
379 | - | func createOrder (R,P,aT,aY,aR,aS,aV,aW, | |
385 | + | func createOrder (R,P,aT,aY,aR,aS,aV,aW,cc,cd,ce,cf,aZ) = { | |
380 | 386 | let S = toString(bw.caller) | |
381 | - | let | |
382 | - | if (( | |
387 | + | let cg = invoke(this, "cleanUpStaleOrders", [R, S], nil) | |
388 | + | if ((cg == cg)) | |
383 | 389 | then if ((size(bw.payments) > 1)) | |
384 | 390 | then throw("Invalid createOrder parameters: invalid payment count") | |
385 | 391 | else { | |
386 | - | let | |
392 | + | let ch = if ((size(bw.payments) == 1)) | |
387 | 393 | then $Tuple2(toBase58String(valueOrErrorMessage(bw.payments[0].assetId, "Invalid asset id")), bw.payments[0].amount) | |
388 | 394 | else $Tuple2("", 0) | |
389 | - | let | |
390 | - | let | |
391 | - | let | |
392 | - | if (( | |
395 | + | let ci = ch._1 | |
396 | + | let cj = ch._2 | |
397 | + | let ck = invoke(this, "internalCreateOrder", [S, R, P, aT, aY, aR, aS, aV, aW, ci, cj, aZ], nil) | |
398 | + | if ((ck == ck)) | |
393 | 399 | then { | |
394 | 400 | let aj = { | |
395 | - | let aC = | |
401 | + | let aC = ck | |
396 | 402 | if ($isInstanceOf(aC, "Int")) | |
397 | 403 | then { | |
398 | 404 | let aD = aC | |
399 | 405 | aD | |
400 | 406 | } | |
401 | 407 | else throw("Invalid ID of created order") | |
402 | 408 | } | |
403 | 409 | if ((P == s)) | |
404 | 410 | then { | |
405 | - | let cj = if ((ca > 0)) | |
406 | - | then { | |
407 | - | let ck = invoke(this, "internalCreateOrderRequest", [S, R, aj, q, ca, cb], nil) | |
408 | - | if ((ck == ck)) | |
409 | - | then nil | |
410 | - | else throw("Strict value is not equal to itself.") | |
411 | - | } | |
412 | - | else nil | |
413 | 411 | let cl = if ((cc > 0)) | |
414 | 412 | then { | |
415 | - | let cm = invoke(this, "internalCreateOrderRequest", [S, R, aj, | |
413 | + | let cm = invoke(this, "internalCreateOrderRequest", [S, R, aj, q, cc, cd], nil) | |
416 | 414 | if ((cm == cm)) | |
417 | 415 | then nil | |
418 | 416 | else throw("Strict value is not equal to itself.") | |
419 | 417 | } | |
420 | 418 | else nil | |
421 | - | (cj ++ cl) | |
419 | + | let cn = if ((ce > 0)) | |
420 | + | then { | |
421 | + | let co = invoke(this, "internalCreateOrderRequest", [S, R, aj, r, ce, cf], nil) | |
422 | + | if ((co == co)) | |
423 | + | then nil | |
424 | + | else throw("Strict value is not equal to itself.") | |
425 | + | } | |
426 | + | else nil | |
427 | + | (cl ++ cn) | |
422 | 428 | } | |
423 | 429 | else nil | |
424 | 430 | } | |
425 | 431 | else throw("Strict value is not equal to itself.") | |
426 | 432 | } | |
427 | 433 | else throw("Strict value is not equal to itself.") | |
428 | 434 | } | |
429 | 435 | ||
430 | 436 | ||
431 | 437 | ||
432 | 438 | @Callable(bw) | |
433 | - | func increasePositionWithStopLoss (R,aJ,aS, | |
439 | + | func increasePositionWithStopLoss (R,aJ,aS,cp,aW,cc,cd,ce,cf,cq) = { | |
434 | 440 | let S = toString(bw.caller) | |
435 | - | let | |
436 | - | if (( | |
441 | + | let cg = invoke(this, "cleanUpStaleOrders", [R, S], nil) | |
442 | + | if ((cg == cg)) | |
437 | 443 | then if (if (!(Y())) | |
438 | 444 | then true | |
439 | 445 | else !(X(R))) | |
440 | 446 | then throw("Invalid increasePositionWithStopLoss parameters") | |
441 | 447 | else { | |
442 | - | let | |
443 | - | if (( | |
448 | + | let cr = aI(R, S, aJ) | |
449 | + | if ((cr != 0)) | |
444 | 450 | then throw("Invalid increasePositionWithStopLoss parameters: only new position") | |
445 | 451 | else { | |
446 | - | let | |
447 | - | if (( | |
452 | + | let cs = invoke(this, "setContext", [S], nil) | |
453 | + | if ((cs == cs)) | |
448 | 454 | then { | |
449 | - | let | |
450 | - | if (( | |
455 | + | let ct = invoke(addressFromStringValue(R), "increasePosition", [aJ, aS, cp, aW, cq], bw.payments) | |
456 | + | if ((ct == ct)) | |
451 | 457 | then { | |
452 | - | let | |
453 | - | if (( | |
458 | + | let cu = invoke(this, "resetContext", nil, nil) | |
459 | + | if ((cu == cu)) | |
454 | 460 | then { | |
455 | - | let | |
456 | - | if (( | |
461 | + | let cv = aI(R, S, aJ) | |
462 | + | if ((cv == cv)) | |
457 | 463 | then { | |
458 | - | let as = B( | |
459 | - | let | |
464 | + | let as = B(cv) | |
465 | + | let cw = if ((0 > cv)) | |
460 | 466 | then t | |
461 | 467 | else u | |
462 | - | let | |
468 | + | let cx = if ((cc > 0)) | |
463 | 469 | then { | |
464 | - | let | |
465 | - | if (( | |
470 | + | let cx = invoke(this, "internalCreateOrder", [S, R, q, cc, cd, as, 0, cw, aW, "", 0, 0], nil) | |
471 | + | if ((cx == cx)) | |
466 | 472 | then nil | |
467 | 473 | else throw("Strict value is not equal to itself.") | |
468 | 474 | } | |
469 | 475 | else nil | |
470 | - | if (( | |
476 | + | if ((cx == cx)) | |
471 | 477 | then { | |
472 | - | let | |
478 | + | let cy = if ((ce > 0)) | |
473 | 479 | then { | |
474 | - | let | |
475 | - | if (( | |
480 | + | let cy = invoke(this, "internalCreateOrder", [S, R, r, ce, cf, as, 0, cw, aW, "", 0, 0], nil) | |
481 | + | if ((cy == cy)) | |
476 | 482 | then nil | |
477 | 483 | else throw("Strict value is not equal to itself.") | |
478 | 484 | } | |
479 | 485 | else nil | |
480 | - | if (( | |
486 | + | if ((cy == cy)) | |
481 | 487 | then nil | |
482 | 488 | else throw("Strict value is not equal to itself.") | |
483 | 489 | } | |
484 | 490 | else throw("Strict value is not equal to itself.") | |
485 | 491 | } | |
486 | 492 | else throw("Strict value is not equal to itself.") | |
487 | 493 | } | |
488 | 494 | else throw("Strict value is not equal to itself.") | |
489 | 495 | } | |
490 | 496 | else throw("Strict value is not equal to itself.") | |
491 | 497 | } | |
492 | 498 | else throw("Strict value is not equal to itself.") | |
493 | 499 | } | |
494 | 500 | } | |
495 | 501 | else throw("Strict value is not equal to itself.") | |
496 | 502 | } | |
497 | 503 | ||
498 | 504 | ||
499 | 505 | ||
500 | 506 | @Callable(bw) | |
501 | 507 | func internalMarkOrderExecuted (R,S,L) = if (if (if (!(Y())) | |
502 | 508 | then true | |
503 | 509 | else !(X(R))) | |
504 | 510 | then true | |
505 | 511 | else !((bw.caller == this))) | |
506 | 512 | then throw("Invalid internalMarkOrderExecuted parameters") | |
507 | 513 | else { | |
508 | - | let | |
509 | - | ((bl(R, S, | |
514 | + | let cz = (ab(R, S) - 1) | |
515 | + | ((bl(R, S, cz) ++ bi(L, R, S, false)) ++ bp(L)) | |
510 | 516 | } | |
511 | 517 | ||
512 | 518 | ||
513 | 519 | ||
514 | 520 | @Callable(bw) | |
515 | 521 | func internalCreateOrderRequest (S,R,L,P,aT,aY) = if (if (if (if (if (!(Y())) | |
516 | 522 | then true | |
517 | 523 | else !(X(R))) | |
518 | 524 | then true | |
519 | 525 | else (0 >= aT)) | |
520 | 526 | then true | |
521 | 527 | else (0 > aY)) | |
522 | 528 | then true | |
523 | 529 | else !((bw.caller == this))) | |
524 | 530 | then throw("Invalid internalCreateOrderRequest parameters") | |
525 | 531 | else ba(L, R, S, P, aT, aY) | |
526 | 532 | ||
527 | 533 | ||
528 | 534 | ||
529 | 535 | @Callable(bw) | |
530 | - | func internalCreateOrder (S,R,P,aT,aY,aR,aS,aV,aW, | |
536 | + | func internalCreateOrder (S,R,P,aT,aY,aR,aS,aV,aW,cA,cB,aZ) = if (if (if (if (if (if (if (if (if (if (!(Y())) | |
531 | 537 | then true | |
532 | 538 | else !(X(R))) | |
533 | 539 | then true | |
534 | 540 | else (0 >= aT)) | |
535 | 541 | then true | |
536 | 542 | else (0 > aY)) | |
537 | 543 | then true | |
538 | 544 | else (0 >= aR)) | |
539 | 545 | then true | |
540 | 546 | else (0 > aS)) | |
541 | 547 | then true | |
542 | 548 | else !(if ((aV == t)) | |
543 | 549 | then true | |
544 | 550 | else (aV == u))) | |
545 | 551 | then true | |
546 | 552 | else !(if (if ((P == q)) | |
547 | 553 | then true | |
548 | 554 | else (P == r)) | |
549 | 555 | then true | |
550 | 556 | else (P == s))) | |
551 | 557 | then true | |
552 | 558 | else !((bw.caller == this))) | |
553 | 559 | then true | |
554 | 560 | else (0 > aZ)) | |
555 | 561 | then throw("Invalid internalCreateOrder parameters") | |
556 | 562 | else { | |
557 | 563 | let aj = (aa() + 1) | |
558 | - | let | |
559 | - | let | |
560 | - | let | |
561 | - | let aJ = if (if (if (( | |
564 | + | let cC = aF(aV, P) | |
565 | + | let cz = (ab(R, S) + 1) | |
566 | + | let cr = aI(R, S, cC) | |
567 | + | let aJ = if (if (if ((cr == 0)) | |
562 | 568 | then true | |
563 | - | else if (( | |
569 | + | else if ((cr > 0)) | |
564 | 570 | then (aV == t) | |
565 | 571 | else false) | |
566 | 572 | then true | |
567 | - | else if ((0 > | |
573 | + | else if ((0 > cr)) | |
568 | 574 | then (aV == u) | |
569 | 575 | else false) | |
570 | 576 | then v | |
571 | 577 | else w | |
572 | - | if (if (( | |
578 | + | if (if ((cr == 0)) | |
573 | 579 | then if ((P == q)) | |
574 | 580 | then true | |
575 | 581 | else (P == r) | |
576 | 582 | else false) | |
577 | 583 | then throw("Can not create STOP/TAKE order: no position") | |
578 | 584 | else { | |
579 | - | let | |
580 | - | then if (if (( | |
585 | + | let cD = if ((aJ == v)) | |
586 | + | then if (if ((cA != toBase58String(V()))) | |
581 | 587 | then true | |
582 | - | else ( | |
588 | + | else (cB != aR)) | |
583 | 589 | then throw("Invalid createLimitOrder parameters: invalid payment") | |
584 | 590 | else { | |
585 | - | let | |
586 | - | if (( | |
587 | - | then | |
591 | + | let cE = invoke(W(), "deposit", nil, [AttachedPayment(V(), cB)]) | |
592 | + | if ((cE == cE)) | |
593 | + | then cB | |
588 | 594 | else throw("Strict value is not equal to itself.") | |
589 | 595 | } | |
590 | 596 | else 0 | |
591 | - | if (( | |
597 | + | if ((cD == cD)) | |
592 | 598 | then { | |
593 | - | let ax = if (( | |
594 | - | then aM(R, S, | |
599 | + | let ax = if ((cr != 0)) | |
600 | + | then aM(R, S, cC) | |
595 | 601 | else 0 | |
596 | 602 | if (if (if ((P == q)) | |
597 | 603 | then true | |
598 | 604 | else (P == r)) | |
599 | 605 | then (ax == 0) | |
600 | 606 | else false) | |
601 | 607 | then throw("STOP and TAKE order should be assigned to position with id != 0") | |
602 | - | else if (( | |
608 | + | else if ((cz > x)) | |
603 | 609 | then throw("Invalid createLimitOrder parameters: order count") | |
604 | 610 | else { | |
605 | - | let | |
606 | - | $Tuple2( | |
611 | + | let cF = (((aQ(aj, R, S, aR, aS, P, aT, cD, aV, aW, ax, aY, aZ) ++ bi(aj, R, S, true)) ++ bl(R, S, cz)) ++ bn(aj)) | |
612 | + | $Tuple2(cF, aj) | |
607 | 613 | } | |
608 | 614 | } | |
609 | 615 | else throw("Strict value is not equal to itself.") | |
610 | 616 | } | |
611 | 617 | } | |
612 | 618 | ||
613 | 619 | ||
614 | 620 | ||
615 | 621 | @Callable(bw) | |
616 | 622 | func cancelOrder (L) = { | |
617 | - | let | |
618 | - | let R = | |
619 | - | let S = | |
620 | - | let aR = | |
621 | - | let aS = | |
622 | - | let P = | |
623 | - | let aT = | |
624 | - | let | |
625 | - | let aV = | |
626 | - | let aW = | |
627 | - | let aX = | |
628 | - | let aY = | |
623 | + | let cG = ap(L) | |
624 | + | let R = cG._1 | |
625 | + | let S = cG._2 | |
626 | + | let aR = cG._3 | |
627 | + | let aS = cG._4 | |
628 | + | let P = cG._5 | |
629 | + | let aT = cG._6 | |
630 | + | let cH = cG._7 | |
631 | + | let aV = cG._8 | |
632 | + | let aW = cG._9 | |
633 | + | let aX = cG._10 | |
634 | + | let aY = cG._11 | |
629 | 635 | if (if (if (!(Y())) | |
630 | 636 | then true | |
631 | 637 | else !(Z(L))) | |
632 | 638 | then true | |
633 | 639 | else !((toString(bw.caller) == S))) | |
634 | 640 | then throw("Invalid cancelOrder parameters") | |
635 | 641 | else { | |
636 | - | let | |
637 | - | if (( | |
642 | + | let cg = invoke(this, "cleanUpStaleOrders", [R, S], nil) | |
643 | + | if ((cg == cg)) | |
638 | 644 | then { | |
639 | - | let | |
640 | - | let | |
645 | + | let cz = (ab(R, S) - 1) | |
646 | + | let cI = if ((cH > 0)) | |
641 | 647 | then { | |
642 | - | let | |
643 | - | if (( | |
648 | + | let cJ = invoke(W(), "withdraw", [toBase58String(V()), cH], nil) | |
649 | + | if ((cJ == cJ)) | |
644 | 650 | then nil | |
645 | 651 | else throw("Strict value is not equal to itself.") | |
646 | 652 | } | |
647 | 653 | else nil | |
648 | - | if (( | |
649 | - | then (((bq(L) ++ bi(L, R, S, false)) ++ bl(R, S, | |
650 | - | then [ScriptTransfer(bw.caller, | |
654 | + | if ((cI == cI)) | |
655 | + | then (((bq(L) ++ bi(L, R, S, false)) ++ bl(R, S, cz)) ++ (if ((cH > 0)) | |
656 | + | then [ScriptTransfer(bw.caller, cH, V())] | |
651 | 657 | else nil)) | |
652 | 658 | else throw("Strict value is not equal to itself.") | |
653 | 659 | } | |
654 | 660 | else throw("Strict value is not equal to itself.") | |
655 | 661 | } | |
656 | 662 | } | |
657 | 663 | ||
658 | 664 | ||
659 | 665 | ||
660 | 666 | @Callable(bw) | |
661 | - | func executeOrder (L) = { | |
662 | - | let | |
663 | - | let R = | |
664 | - | let S = | |
665 | - | let aR = | |
666 | - | let aS = | |
667 | - | let P = | |
668 | - | let aT = | |
669 | - | let | |
670 | - | let aV = | |
671 | - | let aW = | |
672 | - | let aX = | |
673 | - | let aY = | |
674 | - | let | |
675 | - | if (( | |
667 | + | func executeOrder (L,cq) = { | |
668 | + | let cK = ap(L) | |
669 | + | let R = cK._1 | |
670 | + | let S = cK._2 | |
671 | + | let aR = cK._3 | |
672 | + | let aS = cK._4 | |
673 | + | let P = cK._5 | |
674 | + | let aT = cK._6 | |
675 | + | let cH = cK._7 | |
676 | + | let aV = cK._8 | |
677 | + | let aW = cK._9 | |
678 | + | let aX = cK._10 | |
679 | + | let aY = cK._11 | |
680 | + | let cg = invoke(this, "cleanUpStaleOrders", [R, S], nil) | |
681 | + | if ((cg == cg)) | |
676 | 682 | then { | |
677 | - | let | |
683 | + | let cC = aF(aV, P) | |
678 | 684 | if (if (!(Y())) | |
679 | 685 | then true | |
680 | 686 | else !(Z(L))) | |
681 | 687 | then throw("Invalid executeOrder parameters") | |
682 | 688 | else { | |
683 | - | let | |
684 | - | if (( | |
689 | + | let cr = aI(R, S, cC) | |
690 | + | if ((cr == cr)) | |
685 | 691 | then { | |
686 | - | let | |
687 | - | then aM(R, S, | |
692 | + | let cL = if ((cr != 0)) | |
693 | + | then aM(R, S, cC) | |
688 | 694 | else 0 | |
689 | - | let | |
695 | + | let cM = if ((P == q)) | |
690 | 696 | then { | |
691 | - | let | |
697 | + | let cN = if ((cr > 0)) | |
692 | 698 | then t | |
693 | - | else if ((0 > | |
699 | + | else if ((0 > cr)) | |
694 | 700 | then u | |
695 | 701 | else throw("Can not execute STOP order: no open position") | |
696 | - | let | |
697 | - | let | |
702 | + | let cO = az(R) | |
703 | + | let cP = if ((aV == cN)) | |
698 | 704 | then throw("Can not execute STOP order: reduce only") | |
699 | - | else if (( | |
705 | + | else if ((cL != aX)) | |
700 | 706 | then throw("Can not execute STOP order: position closed") | |
701 | - | else if (( | |
702 | - | then (aT >= | |
703 | - | else ( | |
704 | - | if ( | |
705 | - | then $Tuple3("closePosition", [G(aR, B( | |
707 | + | else if ((cN == t)) | |
708 | + | then (aT >= cO) | |
709 | + | else (cO >= aT) | |
710 | + | if (cP) | |
711 | + | then $Tuple3("closePosition", [G(aR, B(cr)), cC, F(aY, B(cr)), false, cq], nil) | |
706 | 712 | else throw("Can not execute STOP order: triggerPrice mismatch") | |
707 | 713 | } | |
708 | 714 | else if ((P == r)) | |
709 | 715 | then { | |
710 | - | let | |
716 | + | let cN = if ((cr > 0)) | |
711 | 717 | then t | |
712 | - | else if ((0 > | |
718 | + | else if ((0 > cr)) | |
713 | 719 | then u | |
714 | 720 | else throw("Can not execute STOP order: no open position") | |
715 | - | let | |
716 | - | let | |
721 | + | let cO = az(R) | |
722 | + | let cP = if ((aV == cN)) | |
717 | 723 | then throw("Can not execute TAKE order: reduce only") | |
718 | - | else if (( | |
719 | - | then throw(((("Can not execute TAKE order: position closed " + toString( | |
720 | - | else if (( | |
721 | - | then ( | |
722 | - | else (aT >= | |
723 | - | if ( | |
724 | - | then $Tuple3("closePosition", [G(aR, B( | |
724 | + | else if ((cL != aX)) | |
725 | + | then throw(((("Can not execute TAKE order: position closed " + toString(cL)) + "!=") + toString(aX))) | |
726 | + | else if ((cN == t)) | |
727 | + | then (cO >= aT) | |
728 | + | else (aT >= cO) | |
729 | + | if (cP) | |
730 | + | then $Tuple3("closePosition", [G(aR, B(cr)), cC, F(aY, B(cr)), false, cq], nil) | |
725 | 731 | else throw("Can not execute TAKE order: triggerPrice mismatch") | |
726 | 732 | } | |
727 | 733 | else if ((P == s)) | |
728 | 734 | then { | |
729 | - | let | |
730 | - | let | |
735 | + | let cO = az(R) | |
736 | + | let cQ = if ((aY == 0)) | |
731 | 737 | then aO(aT) | |
732 | 738 | else B((aT - aY)) | |
733 | - | let | |
734 | - | then ((aT + | |
739 | + | let cP = if ((cO >= (aT - cQ))) | |
740 | + | then ((aT + cQ) >= cO) | |
735 | 741 | else false | |
736 | - | if ( | |
742 | + | if (cP) | |
737 | 743 | then { | |
738 | - | let | |
744 | + | let cR = (cH - F(cH, aE(R, S))) | |
739 | 745 | $Tuple3("increasePosition", [aV, aS, if ((aY == 0)) | |
740 | 746 | then 0 | |
741 | - | else D( | |
747 | + | else D(cR, aY), aW, cq], [AttachedPayment(V(), cH)]) | |
742 | 748 | } | |
743 | 749 | else throw("Can not execute LIMIT order: triggerPrice mismatch") | |
744 | 750 | } | |
745 | 751 | else throw(("Invalid order type: " + toString(P))) | |
746 | - | let | |
747 | - | let | |
748 | - | let | |
749 | - | let | |
752 | + | let cS = cM._1 | |
753 | + | let cT = cM._2 | |
754 | + | let cU = cM._3 | |
755 | + | let cI = if ((size(cU) == 1)) | |
750 | 756 | then { | |
751 | - | let | |
752 | - | if (( | |
757 | + | let cJ = invoke(W(), "withdraw", [toBase58String(V()), cU[0].amount], nil) | |
758 | + | if ((cJ == cJ)) | |
753 | 759 | then nil | |
754 | 760 | else throw("Strict value is not equal to itself.") | |
755 | 761 | } | |
756 | 762 | else nil | |
757 | - | if (( | |
763 | + | if ((cI == cI)) | |
758 | 764 | then { | |
759 | - | let | |
760 | - | if (( | |
765 | + | let cs = invoke(this, "setContext", [S], nil) | |
766 | + | if ((cs == cs)) | |
761 | 767 | then { | |
762 | - | let | |
763 | - | if (( | |
768 | + | let ct = invoke(addressFromStringValue(R), cS, cT, cU) | |
769 | + | if ((ct == ct)) | |
764 | 770 | then { | |
765 | - | let | |
766 | - | if (( | |
771 | + | let cu = invoke(this, "resetContext", nil, nil) | |
772 | + | if ((cu == cu)) | |
767 | 773 | then { | |
768 | - | let | |
774 | + | let cV = if ((P == s)) | |
769 | 775 | then { | |
770 | - | let | |
771 | - | if (( | |
776 | + | let cW = aI(R, S, cC) | |
777 | + | if ((cW == cW)) | |
772 | 778 | then { | |
773 | - | let | |
774 | - | if (( | |
779 | + | let cX = aM(R, S, cC) | |
780 | + | if ((cX == cX)) | |
775 | 781 | then { | |
776 | - | let | |
777 | - | let | |
782 | + | let cY = (cW - cr) | |
783 | + | let cZ = if ((cW > 0)) | |
778 | 784 | then u | |
779 | 785 | else t | |
780 | - | let | |
786 | + | let da = if (af(L, r)) | |
781 | 787 | then { | |
782 | - | let | |
783 | - | let | |
784 | - | let | |
785 | - | let | |
786 | - | let | |
787 | - | let | |
788 | - | let | |
789 | - | let | |
790 | - | if (( | |
788 | + | let db = ag(L, r) | |
789 | + | let dc = db._1 | |
790 | + | let dd = db._2 | |
791 | + | let de = db._3 | |
792 | + | let df = db._4 | |
793 | + | let dg = db._5 | |
794 | + | let dh = db._6 | |
795 | + | let ck = invoke(this, "internalCreateOrder", [de, dd, df, dg, dh, cY, 0, cZ, "", "", 0, 0], nil) | |
796 | + | if ((ck == ck)) | |
791 | 797 | then nil | |
792 | 798 | else throw("Strict value is not equal to itself.") | |
793 | 799 | } | |
794 | 800 | else nil | |
795 | - | if (( | |
801 | + | if ((da == da)) | |
796 | 802 | then { | |
797 | - | let | |
803 | + | let di = if (af(L, q)) | |
798 | 804 | then { | |
799 | - | let | |
800 | - | let | |
801 | - | let | |
802 | - | let | |
803 | - | let | |
804 | - | let | |
805 | - | let | |
806 | - | let | |
807 | - | if (( | |
805 | + | let dj = ag(L, q) | |
806 | + | let dc = dj._1 | |
807 | + | let dd = dj._2 | |
808 | + | let de = dj._3 | |
809 | + | let df = dj._4 | |
810 | + | let dg = dj._5 | |
811 | + | let dh = dj._6 | |
812 | + | let ck = invoke(this, "internalCreateOrder", [de, dd, df, dg, dh, cY, 0, cZ, "", "", 0, 0], nil) | |
813 | + | if ((ck == ck)) | |
808 | 814 | then nil | |
809 | 815 | else throw("Strict value is not equal to itself.") | |
810 | 816 | } | |
811 | 817 | else nil | |
812 | - | if (( | |
813 | - | then ( | |
818 | + | if ((di == di)) | |
819 | + | then (da ++ di) | |
814 | 820 | else throw("Strict value is not equal to itself.") | |
815 | 821 | } | |
816 | 822 | else throw("Strict value is not equal to itself.") | |
817 | 823 | } | |
818 | 824 | else throw("Strict value is not equal to itself.") | |
819 | 825 | } | |
820 | 826 | else throw("Strict value is not equal to itself.") | |
821 | 827 | } | |
822 | 828 | else nil | |
823 | - | if (( | |
829 | + | if ((cV == cV)) | |
824 | 830 | then { | |
825 | - | let | |
826 | - | if (( | |
831 | + | let dk = invoke(this, "internalMarkOrderExecuted", [R, S, L], nil) | |
832 | + | if ((dk == dk)) | |
827 | 833 | then nil | |
828 | 834 | else throw("Strict value is not equal to itself.") | |
829 | 835 | } | |
830 | 836 | else throw("Strict value is not equal to itself.") | |
831 | 837 | } | |
832 | 838 | else throw("Strict value is not equal to itself.") | |
833 | 839 | } | |
834 | 840 | else throw("Strict value is not equal to itself.") | |
835 | 841 | } | |
836 | 842 | else throw("Strict value is not equal to itself.") | |
837 | 843 | } | |
838 | 844 | else throw("Strict value is not equal to itself.") | |
839 | 845 | } | |
840 | 846 | else throw("Strict value is not equal to itself.") | |
841 | 847 | } | |
842 | 848 | } | |
843 | 849 | else throw("Strict value is not equal to itself.") | |
844 | 850 | } | |
845 | 851 | ||
846 | 852 | ||
847 | 853 | ||
848 | 854 | @Callable(bw) | |
849 | - | func view_canExecuteOrder (L) = { | |
850 | - | let aA = invoke(this, "executeOrder", [L], nil) | |
855 | + | func view_canExecuteOrder (L,cq) = { | |
856 | + | let aA = invoke(this, "executeOrder", [L, cq], nil) | |
851 | 857 | if ((aA == aA)) | |
852 | 858 | then throw("Success") | |
853 | 859 | else throw("Strict value is not equal to itself.") | |
854 | 860 | } | |
855 | 861 | ||
856 | 862 | ||
857 | - | @Verifier( | |
858 | - | func | |
859 | - | let | |
860 | - | if (isDefined( | |
863 | + | @Verifier(dl) | |
864 | + | func dm () = { | |
865 | + | let dn = getString(this, a) | |
866 | + | if (isDefined(dn)) | |
861 | 867 | then { | |
862 | - | let | |
863 | - | if (isDefined( | |
864 | - | then valueOrElse(getBoolean(addressFromStringValue(value( | |
868 | + | let do = getString(addressFromStringValue(value(dn)), b) | |
869 | + | if (isDefined(do)) | |
870 | + | then valueOrElse(getBoolean(addressFromStringValue(value(do)), ((("status_" + toString(this)) + "_") + toBase58String(dl.id))), false) | |
865 | 871 | else throw("unable to verify: admin not set in coordinator") | |
866 | 872 | } | |
867 | - | else sigVerify( | |
873 | + | else sigVerify(dl.bodyBytes, dl.proofs[0], dl.senderPublicKey) | |
868 | 874 | } | |
869 | 875 |
github/deemru/w8io/169f3d6 266.15 ms ◑