tx · 39TFbC5mtxkszWZnZGrJZdY5VTSohx4Hbh2QmrWm16oU 3MvRWw2FPEimFCTGtK7qY9uAJbM7XJ4ZfJS: -0.28000000 Waves 2023.04.19 20:28 [2541735] smart account 3MvRWw2FPEimFCTGtK7qY9uAJbM7XJ4ZfJS > SELF 0.00000000 Waves
{ "type": 13, "id": "39TFbC5mtxkszWZnZGrJZdY5VTSohx4Hbh2QmrWm16oU", "fee": 28000000, "feeAssetId": null, "timestamp": 1681925359249, "version": 2, "chainId": 84, "sender": "3MvRWw2FPEimFCTGtK7qY9uAJbM7XJ4ZfJS", "senderPublicKey": "HP8sssVq1866F7CaPQJwgFrt6fsqhQjKwM84cL1wjD2a", "proofs": [ "4wVCznkrtq5bpgHqv97ierf3gssEoczXrrzZ4C7ueUrjHQ3KD5FdGxzGvrBgW5DePgKpGbYCmsfstJtKcHUUunoH" ], "script": "base64:BgJaCAISBQoDCAEIEgMKAQgSBQoDCAEIEgMKAQgSBAoCCAESAwoBCBIOCgwICAgBBBEYGBEBARgSCgoICAgIAQQIARgSDgoMCAgIAQQYGBgYGAEYEgcKBQgIAQEBRAAHU0ZfUE9PTAICU0YAB1dYX1BPT0wCAldYAAdDQVBfRkVFAgNjYXAACExPQU5fRkVFAgRsb2FuAAtOT19MT0FOX0ZFRQIGbm9Mb2FuAAZTQ0FMRTgAgMLXLwAHU0NBTEUxMACAyK+gJQAKRkVFX1NDQUxFNgDAhD0AFGtTRlBvb2xBQXNzZXRCYWxhbmNlAg9BX2Fzc2V0X2JhbGFuY2UAFGtTRlBvb2xCQXNzZXRCYWxhbmNlAg9CX2Fzc2V0X2JhbGFuY2UAD2tTRlBvb2xBQXNzZXRJZAIKQV9hc3NldF9pZAAPa1NGUG9vbEJBc3NldElkAgpCX2Fzc2V0X2lkAA5rU0ZQb29sU2hhcmVJZAIOc2hhcmVfYXNzZXRfaWQACmtTRlBvb2xGZWUCCmNvbW1pc3Npb24ADWtVc2VyUG9zaXRpb24CDl91c2VyX3Bvc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C1N0cmluZ0VudHJ5AgkArAICBQVrUG9vbAUIcG9vbEFkZHIFBHR5cGUFA25pbAECdHgBBnZlcmlmeQAJAPQDAwgFAnR4CWJvZHlCeXRlcwkAkQMCCAUCdHgGcHJvb2ZzAAAIBQJ0eA9zZW5kZXJQdWJsaWNLZXmkTWIo", "height": 2541735, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 4xywBKP5PNVxYfCzvzWiAYkzdUtQmzuKRVtWZoWcHg3V Next: AzvBKi1Rn5LX2nwRd14t6BCsXiXzBeT5W435XQM3bkaV Diff:
Old | New | Differences | |
---|---|---|---|
351 | 351 | } | |
352 | 352 | ||
353 | 353 | ||
354 | - | func aZ (ad,af,ba,aO,bb,ay,ab) = { | |
355 | - | let bc = ac(ad) | |
356 | - | let bd = getIntegerValue(this, (ad + u)) | |
357 | - | [IntegerEntry((ad + t), (bc + ba)), IntegerEntry((((((ad + "_") + af) + "_") + toString(bb)) + o), ba), IntegerEntry((((((ad + "_") + af) + "_") + toString(bb)) + s), bd), IntegerEntry((((ad + "_") + af) + r), bb), ScriptTransfer(I, aO, fromBase58String(ay))] | |
354 | + | func aZ (ab,ad,ah,as,ba,au,bb,aw,ax,ay) = if ((ab == a)) | |
355 | + | then ar(ad, d, as, ba, au, bb, aw, ax, ay) | |
356 | + | else if ((ab == b)) | |
357 | + | then aR(ad, d, as, ba, au, bb, ay) | |
358 | + | else throw("Wrong pool type") | |
359 | + | ||
360 | + | ||
361 | + | func bc (ad,af,bd,aO,be,ay,ab) = { | |
362 | + | let bf = ac(ad) | |
363 | + | let bg = getIntegerValue(this, (ad + u)) | |
364 | + | [IntegerEntry((ad + t), (bf + bd)), IntegerEntry((((((ad + "_") + af) + "_") + toString(be)) + o), bd), IntegerEntry((((((ad + "_") + af) + "_") + toString(be)) + s), bg), IntegerEntry((((ad + "_") + af) + r), be), ScriptTransfer(I, aO, fromBase58String(ay))] | |
358 | 365 | } | |
359 | 366 | ||
360 | 367 | ||
361 | - | func | |
368 | + | func bh (ab,ad) = if ((ab == a)) | |
362 | 369 | then { | |
363 | - | let | |
364 | - | if (( | |
370 | + | let bi = Q(M) | |
371 | + | if ((bi == bi)) | |
365 | 372 | then { | |
366 | - | let | |
367 | - | if (( | |
373 | + | let bj = invoke(ai(), "claim", [ad], nil) | |
374 | + | if ((bj == bj)) | |
368 | 375 | then { | |
369 | - | let | |
370 | - | $Tuple2(( | |
376 | + | let bk = Q(M) | |
377 | + | $Tuple2((bk - bi), M) | |
371 | 378 | } | |
372 | 379 | else throw("Strict value is not equal to itself.") | |
373 | 380 | } | |
375 | 382 | } | |
376 | 383 | else if ((ab == b)) | |
377 | 384 | then { | |
378 | - | let | |
379 | - | if (( | |
385 | + | let bi = Q(N) | |
386 | + | if ((bi == bi)) | |
380 | 387 | then { | |
381 | - | let | |
382 | - | if (( | |
388 | + | let bj = invoke(aj(Address(fromBase58String(ad))), "claimWX", [ad], nil) | |
389 | + | if ((bj == bj)) | |
383 | 390 | then { | |
384 | - | let | |
385 | - | $Tuple2(( | |
391 | + | let bk = Q(N) | |
392 | + | $Tuple2((bk - bi), N) | |
386 | 393 | } | |
387 | 394 | else throw("Strict value is not equal to itself.") | |
388 | 395 | } | |
391 | 398 | else throw("Wrong pool type") | |
392 | 399 | ||
393 | 400 | ||
394 | - | func | |
395 | - | let | |
396 | - | if (( | |
401 | + | func bl (bm,bn,bo,bp,bq,br,bs,bt,bu,bv) = { | |
402 | + | let bw = Q(ao(bm)) | |
403 | + | if ((bw == bw)) | |
397 | 404 | then { | |
398 | - | let | |
399 | - | if (( | |
400 | - | then (Q(ao( | |
405 | + | let bj = invoke(J, "swap", [bp, bq, br, bs, bt, bu, bv], [AttachedPayment(bo, bn)]) | |
406 | + | if ((bj == bj)) | |
407 | + | then (Q(ao(bm)) - bw) | |
401 | 408 | else throw("Strict value is not equal to itself.") | |
402 | 409 | } | |
403 | 410 | else throw("Strict value is not equal to itself.") | |
404 | 411 | } | |
405 | 412 | ||
406 | 413 | ||
407 | - | func | |
408 | - | let | |
409 | - | if (( | |
414 | + | func bx (bm,bn,bo,by,bz,bv) = { | |
415 | + | let bw = Q(ao(bm)) | |
416 | + | if ((bw == bw)) | |
410 | 417 | then { | |
411 | - | let | |
412 | - | if (( | |
413 | - | then (Q(ao( | |
418 | + | let bj = invoke(J, "puzzleSwap", [by, bz, bv], [AttachedPayment(bo, bn)]) | |
419 | + | if ((bj == bj)) | |
420 | + | then (Q(ao(bm)) - bw) | |
414 | 421 | else throw("Strict value is not equal to itself.") | |
415 | 422 | } | |
416 | 423 | else throw("Strict value is not equal to itself.") | |
417 | 424 | } | |
418 | 425 | ||
419 | 426 | ||
420 | - | func | |
421 | - | let | |
422 | - | if (( | |
427 | + | func bA (bm,bn,bo,bB,bC,bD,bE,bF,bG,bv) = { | |
428 | + | let bw = Q(ao(bm)) | |
429 | + | if ((bw == bw)) | |
423 | 430 | then { | |
424 | - | let | |
425 | - | if (( | |
426 | - | then (Q(ao( | |
431 | + | let bj = invoke(J, "swopfiSwap", [bB, bC, bD, bE, bF, bG, bv], [AttachedPayment(bo, bn)]) | |
432 | + | if ((bj == bj)) | |
433 | + | then (Q(ao(bm)) - bw) | |
427 | 434 | else throw("Strict value is not equal to itself.") | |
428 | 435 | } | |
429 | 436 | else throw("Strict value is not equal to itself.") | |
430 | 437 | } | |
431 | 438 | ||
432 | 439 | ||
433 | - | func | |
440 | + | func bH (ad,bI,bJ,bK) = { | |
434 | 441 | let W = Address(fromBase58String(ad)) | |
435 | - | let bH = aa(W, ab) | |
436 | - | let bI = bH._1 | |
437 | - | let bJ = bH._2 | |
438 | - | let aw = bH._3 | |
439 | - | let ax = bH._4 | |
440 | - | let ay = bH._5 | |
441 | - | let bK = if ((bF == bI)) | |
442 | - | then $Tuple2(bG, 0) | |
443 | - | else $Tuple2(0, bG) | |
444 | - | let as = bK._1 | |
445 | - | let au = bK._2 | |
446 | - | let bL = if ((ab == a)) | |
447 | - | then ar(ad, c, as, bI, au, bJ, aw, ax, ay) | |
448 | - | else aR(ad, c, as, bI, au, bJ, ay) | |
442 | + | let bL = aa(W, bI) | |
449 | 443 | let ba = bL._1 | |
450 | - | let bM = bL._2 | |
451 | - | let bd = valueOrElse(getInteger(this, (ad + u)), 0) | |
452 | - | let bN = ac(ad) | |
453 | - | let bO = (bd + fraction(ba, g, bN)) | |
454 | - | [IntegerEntry((ad + u), bO), ScriptTransfer(I, bM, fromBase58String(ay))] | |
444 | + | let bb = bL._2 | |
445 | + | let aw = bL._3 | |
446 | + | let ax = bL._4 | |
447 | + | let ay = bL._5 | |
448 | + | let bM = if ((bJ == ba)) | |
449 | + | then $Tuple2(bK, 0) | |
450 | + | else $Tuple2(0, bK) | |
451 | + | let as = bM._1 | |
452 | + | let au = bM._2 | |
453 | + | let bN = aZ(bI, ad, c, as, ba, au, bb, aw, ax, ay) | |
454 | + | let bd = bN._1 | |
455 | + | let bO = bN._2 | |
456 | + | let bg = valueOrElse(getInteger(this, (ad + u)), 0) | |
457 | + | let bP = ac(ad) | |
458 | + | let bQ = (bg + fraction(bd, g, bP)) | |
459 | + | [IntegerEntry((ad + u), bQ), ScriptTransfer(I, bO, fromBase58String(ay))] | |
455 | 460 | } | |
456 | 461 | ||
457 | 462 | ||
458 | - | func | |
463 | + | func bR (ad,bS,bT,aw,ax,bU,bV) = { | |
459 | 464 | let W = Address(fromBase58String(ad)) | |
460 | - | let | |
461 | - | let | |
462 | - | let | |
463 | - | let | |
465 | + | let bW = 1000000 | |
466 | + | let bX = getIntegerValue(W, n) | |
467 | + | let bY = fraction(bU, bW, (bW - bX)) | |
468 | + | let bZ = if ((bV == bS)) | |
464 | 469 | then { | |
465 | - | let | |
466 | - | $Tuple2( | |
470 | + | let ca = fraction(aw, bY, (ax - bY)) | |
471 | + | $Tuple2(ca, bT) | |
467 | 472 | } | |
468 | 473 | else { | |
469 | - | let | |
470 | - | $Tuple2( | |
474 | + | let ca = fraction(ax, bY, (aw - bY)) | |
475 | + | $Tuple2(ca, bS) | |
471 | 476 | } | |
472 | - | let | |
473 | - | let | |
474 | - | invoke(W, "callFunction", ["exchange", ["1"]], [AttachedPayment(ao( | |
477 | + | let ca = bZ._1 | |
478 | + | let cb = bZ._2 | |
479 | + | invoke(W, "callFunction", ["exchange", ["1"]], [AttachedPayment(ao(cb), ca)]) | |
475 | 480 | } | |
476 | 481 | ||
477 | 482 | ||
478 | - | func | |
483 | + | func cc (ad,bS,bT,aw,ax,bU,bV) = { | |
479 | 484 | let W = Address(fromBase58String(ad)) | |
480 | - | let | |
481 | - | let | |
482 | - | let | |
483 | - | let | |
485 | + | let cd = getIntegerValue(L, "%s__protocolFee") | |
486 | + | let ce = getIntegerValue(L, "%s__poolFee") | |
487 | + | let cf = toBigInt(100000000) | |
488 | + | let cg = if ((bV == bS)) | |
484 | 489 | then { | |
485 | - | let | |
486 | - | $Tuple2( | |
490 | + | let ca = fraction(aw, bU, (ax - bU)) | |
491 | + | $Tuple2(ca, bT) | |
487 | 492 | } | |
488 | 493 | else { | |
489 | - | let | |
490 | - | $Tuple2( | |
494 | + | let ca = fraction(ax, bU, (aw - bU)) | |
495 | + | $Tuple2(ca, bS) | |
491 | 496 | } | |
492 | - | let | |
493 | - | let | |
494 | - | let | |
495 | - | invoke(L, "swap", [1, | |
497 | + | let ca = cg._1 | |
498 | + | let cb = cg._2 | |
499 | + | let ch = toInt(fraction(toBigInt(ca), cf, (cf - toBigInt((cd + ce))))) | |
500 | + | invoke(L, "swap", [1, bV, toString(this)], [AttachedPayment(ao(cb), ch)]) | |
496 | 501 | } | |
497 | 502 | ||
498 | 503 | ||
499 | - | func | |
500 | - | then | |
501 | - | else | |
504 | + | func ci (ab,ad,bS,bT,aw,ax,bU,bV) = if ((ab == a)) | |
505 | + | then bR(ad, bS, bT, aw, ax, bU, bV) | |
506 | + | else cc(ad, bS, bT, aw, ax, bU, bV) | |
502 | 507 | ||
503 | 508 | ||
504 | - | func | |
509 | + | func cj (ad,ck,cl,cm) = { | |
505 | 510 | let W = Address(fromBase58String(ad)) | |
506 | - | let | |
507 | - | let | |
508 | - | let | |
509 | - | let | |
510 | - | let aw = | |
511 | - | let ax = | |
512 | - | let | |
513 | - | if (( | |
511 | + | let bI = valueOrErrorMessage(getString(this, (A + ad)), "Unknown pool") | |
512 | + | let cn = aa(W, bI) | |
513 | + | let bS = cn._1 | |
514 | + | let bT = cn._2 | |
515 | + | let aw = cn._3 | |
516 | + | let ax = cn._4 | |
517 | + | let co = Q(ao(bS)) | |
518 | + | if ((co == co)) | |
514 | 519 | then { | |
515 | - | let | |
516 | - | if (( | |
520 | + | let cp = Q(ao(bT)) | |
521 | + | if ((cp == cp)) | |
517 | 522 | then { | |
518 | - | let | |
519 | - | then invoke(W, "callFunction", ["withdraw", [toString( | |
520 | - | else if (( | |
521 | - | then invoke(W, "unstakeAndGet", [ | |
523 | + | let bj = if ((bI == a)) | |
524 | + | then invoke(W, "callFunction", ["withdraw", [toString(ck)]], nil) | |
525 | + | else if ((bI == b)) | |
526 | + | then invoke(W, "unstakeAndGet", [ck], nil) | |
522 | 527 | else throw("Wrong position type") | |
523 | - | if (( | |
528 | + | if ((bj == bj)) | |
524 | 529 | then { | |
525 | - | let | |
526 | - | let | |
527 | - | let | |
528 | - | let | |
529 | - | let | |
530 | - | let | |
530 | + | let cq = Q(ao(bS)) | |
531 | + | let cr = Q(ao(bT)) | |
532 | + | let cs = $Tuple2((cq - co), (cr - cp)) | |
533 | + | let ct = cs._1 | |
534 | + | let cu = cs._2 | |
535 | + | let cv = if ((cl > 0)) | |
531 | 536 | then { | |
532 | - | let | |
533 | - | then ( | |
537 | + | let cw = if (if ((cm == bS)) | |
538 | + | then (cl > ct) | |
534 | 539 | else false) | |
535 | - | then ( | |
536 | - | else if (if (( | |
537 | - | then ( | |
540 | + | then (cl - ct) | |
541 | + | else if (if ((cm == bT)) | |
542 | + | then (cl > cu) | |
538 | 543 | else false) | |
539 | - | then ( | |
544 | + | then (cl - cu) | |
540 | 545 | else 0 | |
541 | - | let | |
542 | - | then | |
546 | + | let cx = if ((cw > 0)) | |
547 | + | then ci(bI, ad, bS, bT, aw, ax, cw, cm) | |
543 | 548 | else 0 | |
544 | - | if (( | |
549 | + | if ((cx == cx)) | |
545 | 550 | then { | |
546 | - | let | |
547 | - | let | |
548 | - | $Tuple2(( | |
551 | + | let cy = Q(ao(bS)) | |
552 | + | let cz = Q(ao(bT)) | |
553 | + | $Tuple2((cy - co), (cz - cp)) | |
549 | 554 | } | |
550 | 555 | else throw("Strict value is not equal to itself.") | |
551 | 556 | } | |
552 | - | else $Tuple2( | |
553 | - | let | |
554 | - | let | |
555 | - | $Tuple4( | |
557 | + | else $Tuple2(ct, cu) | |
558 | + | let cA = cv._1 | |
559 | + | let cB = cv._2 | |
560 | + | $Tuple4(cA, bS, cB, bT) | |
556 | 561 | } | |
557 | 562 | else throw("Strict value is not equal to itself.") | |
558 | 563 | } | |
562 | 567 | } | |
563 | 568 | ||
564 | 569 | ||
570 | + | func cC (cD) = { | |
571 | + | let cE = split(valueOrErrorMessage(getString(this, (cD + y)), ("No request with id " + cD)), ",") | |
572 | + | let af = cE[0] | |
573 | + | let ad = cE[1] | |
574 | + | let as = parseIntValue(cE[2]) | |
575 | + | let ba = cE[3] | |
576 | + | let au = parseIntValue(cE[4]) | |
577 | + | let bb = cE[5] | |
578 | + | let aw = parseIntValue(cE[6]) | |
579 | + | let ax = parseIntValue(cE[7]) | |
580 | + | let ay = cE[8] | |
581 | + | let cF = cE[9] | |
582 | + | let cG = parseIntValue(cE[10]) | |
583 | + | $Tuple11(af, ad, as, ba, au, bb, aw, ax, ay, cF, cG) | |
584 | + | } | |
585 | + | ||
586 | + | ||
565 | 587 | @Callable(P) | |
566 | - | func replenishREADONLY (ad, | |
588 | + | func replenishREADONLY (ad,cH,cI) = if (if ((100 > cH)) | |
567 | 589 | then true | |
568 | - | else ( | |
590 | + | else (cH > 300)) | |
569 | 591 | then throw("Leverage can't be <100 and >300") | |
570 | 592 | else { | |
571 | - | let | |
572 | - | let | |
573 | - | let | |
574 | - | let | |
575 | - | let aw = | |
576 | - | let ax = | |
577 | - | let ay = | |
578 | - | let | |
579 | - | then if ((an(P.payments[0].assetId) != | |
593 | + | let bI = valueOrErrorMessage(getString(this, (A + ad)), "Pool is not inited") | |
594 | + | let cJ = aa(Address(fromBase58String(ad)), bI) | |
595 | + | let ba = cJ._1 | |
596 | + | let bb = cJ._2 | |
597 | + | let aw = cJ._3 | |
598 | + | let ax = cJ._4 | |
599 | + | let ay = cJ._5 | |
600 | + | let cK = if ((size(P.payments) == 2)) | |
601 | + | then if ((an(P.payments[0].assetId) != ba)) | |
580 | 602 | then throw("Wrong payment asset A") | |
581 | - | else if ((an(P.payments[1].assetId) != | |
603 | + | else if ((an(P.payments[1].assetId) != bb)) | |
582 | 604 | then throw("Wrong payment asset B") | |
583 | - | else $Tuple4(P.payments[0].amount, | |
605 | + | else $Tuple4(P.payments[0].amount, ba, P.payments[1].amount, bb) | |
584 | 606 | else if ((size(P.payments) == 1)) | |
585 | - | then if ((an(P.payments[0].assetId) == | |
586 | - | then $Tuple4(P.payments[0].amount, | |
587 | - | else if ((an(P.payments[0].assetId) == | |
588 | - | then $Tuple4(0, | |
607 | + | then if ((an(P.payments[0].assetId) == ba)) | |
608 | + | then $Tuple4(P.payments[0].amount, ba, 0, bb) | |
609 | + | else if ((an(P.payments[0].assetId) == bb)) | |
610 | + | then $Tuple4(0, ba, P.payments[0].amount, bb) | |
589 | 611 | else throw("Wrong payment") | |
590 | 612 | else throw("One or two payments expected") | |
591 | - | let as = | |
592 | - | let at = | |
593 | - | let au = | |
594 | - | let av = | |
595 | - | let | |
613 | + | let as = cK._1 | |
614 | + | let at = cK._2 | |
615 | + | let au = cK._3 | |
616 | + | let av = cK._4 | |
617 | + | let cL = if ((cH > 100)) | |
596 | 618 | then { | |
597 | - | let | |
619 | + | let cM = ( let Z = invoke(K, "getTWAP60", [at, false], nil) | |
598 | 620 | if ($isInstanceOf(Z, "(Int, Int)")) | |
599 | 621 | then Z | |
600 | 622 | else throw(($getType(Z) + " couldn't be cast to (Int, Int)")))._1 | |
601 | - | let | |
623 | + | let cN = ( let Z = invoke(K, "getTWAP60", [av, false], nil) | |
602 | 624 | if ($isInstanceOf(Z, "(Int, Int)")) | |
603 | 625 | then Z | |
604 | 626 | else throw(($getType(Z) + " couldn't be cast to (Int, Int)")))._1 | |
605 | - | let | |
606 | - | let | |
607 | - | let | |
608 | - | let | |
609 | - | let Z = invoke(this, "createNewRequest", [ | |
627 | + | let cO = (fraction(cM, as, pow(10, 0, ap(at), 0, 0, DOWN)) + fraction(cN, au, pow(10, 0, ap(av), 0, 0, DOWN))) | |
628 | + | let cP = fraction(cO, (cH - 100), 100) | |
629 | + | let cE = makeString([toString(P.caller), ad, toString(as), at, toString(au), av, toString(aw), toString(ax), ay, cI, toString(cP), toString(1)], ",") | |
630 | + | let cQ = { | |
631 | + | let Z = invoke(this, "createNewRequest", [cE], nil) | |
610 | 632 | if ($isInstanceOf(Z, "Int")) | |
611 | 633 | then Z | |
612 | 634 | else throw(($getType(Z) + " couldn't be cast to Int")) | |
613 | 635 | } | |
614 | - | if (( | |
636 | + | if ((cQ == cQ)) | |
615 | 637 | then { | |
616 | - | let | |
617 | - | let | |
618 | - | if (( | |
619 | - | then if (( | |
620 | - | then $Tuple4((as + | |
621 | - | else $Tuple4(as, (au + | |
638 | + | let cR = [((toString(P.caller) + "_") + toString(1)), ay, cI, cP, toString(this), "replenishFromLandReadOnly", toString(valueOrErrorMessage(cQ, "Can't create new request"))] | |
639 | + | let bj = reentrantInvoke(am(), "flashPosition", cR, nil) | |
640 | + | if ((bj == bj)) | |
641 | + | then if ((cI == at)) | |
642 | + | then $Tuple4((as + cP), au, d, cP) | |
643 | + | else $Tuple4(as, (au + cP), d, cP) | |
622 | 644 | else throw("Strict value is not equal to itself.") | |
623 | 645 | } | |
624 | 646 | else throw("Strict value is not equal to itself.") | |
625 | 647 | } | |
626 | 648 | else $Tuple4(as, au, e, 0) | |
627 | - | let cN = cF._1 | |
628 | - | let cO = cF._2 | |
629 | - | let ah = cF._3 | |
630 | - | let cJ = cF._4 | |
631 | - | let cP = if ((ab == a)) | |
632 | - | then ar(ad, ah, cN, at, cO, av, aw, ax, ay) | |
633 | - | else aR(ad, ah, as, at, au, av, ay) | |
634 | - | let cQ = cP._1 | |
635 | - | let bM = cP._2 | |
636 | - | let cR = ch(ad, cQ, cJ, cC) | |
637 | - | if ((cR == cR)) | |
649 | + | let cS = cL._1 | |
650 | + | let cT = cL._2 | |
651 | + | let ah = cL._3 | |
652 | + | let cP = cL._4 | |
653 | + | let cU = aZ(bI, ad, e, as, ba, au, bb, aw, ax, ay) | |
654 | + | let cV = cU._1 | |
655 | + | let bO = cU._2 | |
656 | + | let cW = cj(ad, cV, cP, cI) | |
657 | + | if ((cW == cW)) | |
638 | 658 | then { | |
639 | - | let | |
640 | - | let | |
641 | - | let | |
642 | - | let | |
643 | - | $Tuple2(nil, [ | |
659 | + | let bT = cW._4 | |
660 | + | let cB = cW._3 | |
661 | + | let bS = cW._2 | |
662 | + | let cA = cW._1 | |
663 | + | $Tuple2(nil, [cV, cA, cB]) | |
644 | 664 | } | |
645 | 665 | else throw("Strict value is not equal to itself.") | |
646 | 666 | } | |
648 | 668 | ||
649 | 669 | ||
650 | 670 | @Callable(P) | |
651 | - | func replenishFromLandReadOnly (cS) = $Tuple2(nil, 11111) | |
671 | + | func replenishFromLandReadOnly (cD) = { | |
672 | + | let cX = cC(cD) | |
673 | + | let af = cX._1 | |
674 | + | let ad = cX._2 | |
675 | + | let as = cX._3 | |
676 | + | let ba = cX._4 | |
677 | + | let au = cX._5 | |
678 | + | let bb = cX._6 | |
679 | + | let aw = cX._7 | |
680 | + | let ax = cX._8 | |
681 | + | let ay = cX._9 | |
682 | + | let cF = cX._10 | |
683 | + | let cG = cX._11 | |
684 | + | if ((size(P.payments) != 1)) | |
685 | + | then throw("Wrong payment size") | |
686 | + | else if (if ((an(P.payments[0].assetId) != cF)) | |
687 | + | then true | |
688 | + | else (P.payments[0].amount != cG)) | |
689 | + | then throw("Wrong payment") | |
690 | + | else { | |
691 | + | let cY = if ((ba == cF)) | |
692 | + | then $Tuple2((as + P.payments[0].amount), au) | |
693 | + | else $Tuple2(as, (au + P.payments[0].amount)) | |
694 | + | let cZ = cY._1 | |
695 | + | let da = cY._2 | |
696 | + | let bI = valueOrErrorMessage(getString(this, (A + ad)), "Unknown pool") | |
697 | + | let db = aZ(bI, ad, d, as, ba, au, bb, aw, ax, ay) | |
698 | + | let cV = db._1 | |
699 | + | let bO = db._2 | |
700 | + | nil | |
701 | + | } | |
702 | + | } | |
652 | 703 | ||
653 | 704 | ||
654 | 705 | ||
655 | 706 | @Callable(P) | |
656 | - | func replenish (ad, | |
707 | + | func replenish (ad,cH,cI) = if (if ((100 > cH)) | |
657 | 708 | then true | |
658 | - | else ( | |
709 | + | else (cH > 300)) | |
659 | 710 | then throw("Leverage can't be <100 and >300") | |
660 | 711 | else { | |
661 | - | let | |
662 | - | let | |
663 | - | let | |
664 | - | let | |
665 | - | let aw = | |
666 | - | let ax = | |
667 | - | let ay = | |
668 | - | let | |
669 | - | then if ((an(P.payments[0].assetId) != | |
712 | + | let bI = valueOrErrorMessage(getString(this, (A + ad)), "Pool is not inited") | |
713 | + | let dc = aa(Address(fromBase58String(ad)), bI) | |
714 | + | let ba = dc._1 | |
715 | + | let bb = dc._2 | |
716 | + | let aw = dc._3 | |
717 | + | let ax = dc._4 | |
718 | + | let ay = dc._5 | |
719 | + | let dd = if ((size(P.payments) == 2)) | |
720 | + | then if ((an(P.payments[0].assetId) != ba)) | |
670 | 721 | then throw("Wrong payment asset A") | |
671 | - | else if ((an(P.payments[1].assetId) != | |
722 | + | else if ((an(P.payments[1].assetId) != bb)) | |
672 | 723 | then throw("Wrong payment asset B") | |
673 | - | else $Tuple4(P.payments[0].amount, | |
724 | + | else $Tuple4(P.payments[0].amount, ba, P.payments[1].amount, bb) | |
674 | 725 | else if ((size(P.payments) == 1)) | |
675 | - | then if ((an(P.payments[0].assetId) == | |
676 | - | then $Tuple4(P.payments[0].amount, | |
677 | - | else if ((an(P.payments[0].assetId) == | |
678 | - | then $Tuple4(0, | |
726 | + | then if ((an(P.payments[0].assetId) == ba)) | |
727 | + | then $Tuple4(P.payments[0].amount, ba, 0, bb) | |
728 | + | else if ((an(P.payments[0].assetId) == bb)) | |
729 | + | then $Tuple4(0, ba, P.payments[0].amount, bb) | |
679 | 730 | else throw("Wrong payment") | |
680 | 731 | else throw("One or two payments expected") | |
681 | - | let as = | |
682 | - | let at = | |
683 | - | let au = | |
684 | - | let av = | |
685 | - | let | |
686 | - | if (( | |
732 | + | let as = dd._1 | |
733 | + | let at = dd._2 | |
734 | + | let au = dd._3 | |
735 | + | let av = dd._4 | |
736 | + | let de = ae(ad, toString(P.caller)) | |
737 | + | if ((cH > 100)) | |
687 | 738 | then { | |
688 | - | let | |
739 | + | let cM = ( let Z = invoke(K, "getTWAP60", [at, false], nil) | |
689 | 740 | if ($isInstanceOf(Z, "(Int, Int)")) | |
690 | 741 | then Z | |
691 | 742 | else throw(($getType(Z) + " couldn't be cast to (Int, Int)")))._1 | |
692 | - | let | |
743 | + | let cN = ( let Z = invoke(K, "getTWAP60", [av, false], nil) | |
693 | 744 | if ($isInstanceOf(Z, "(Int, Int)")) | |
694 | 745 | then Z | |
695 | 746 | else throw(($getType(Z) + " couldn't be cast to (Int, Int)")))._1 | |
696 | - | let | |
697 | - | let | |
698 | - | let | |
699 | - | let | |
700 | - | let Z = invoke(this, "createNewRequest", [ | |
747 | + | let cO = (fraction(cM, as, pow(10, 0, ap(at), 0, 0, DOWN)) + fraction(cN, au, pow(10, 0, ap(av), 0, 0, DOWN))) | |
748 | + | let cP = fraction(cO, (cH - 100), 100) | |
749 | + | let cE = makeString([toString(P.caller), ad, toString(as), at, toString(au), av, toString(aw), toString(ax), ay, cI, toString(cP)], ",") | |
750 | + | let cQ = { | |
751 | + | let Z = invoke(this, "createNewRequest", [cE], nil) | |
701 | 752 | if ($isInstanceOf(Z, "Int")) | |
702 | 753 | then Z | |
703 | 754 | else throw(($getType(Z) + " couldn't be cast to Int")) | |
704 | 755 | } | |
705 | - | if (( | |
756 | + | if ((cQ == cQ)) | |
706 | 757 | then { | |
707 | - | let | |
708 | - | let | |
709 | - | if (( | |
758 | + | let cR = [((toString(P.caller) + "_") + toString(de)), ay, cI, cP, toString(this), "replenishFromLand", toString(valueOrErrorMessage(cQ, "Can't create new request"))] | |
759 | + | let bj = reentrantInvoke(am(), "flashPosition", cR, nil) | |
760 | + | if ((bj == bj)) | |
710 | 761 | then nil | |
711 | 762 | else throw("Strict value is not equal to itself.") | |
712 | 763 | } | |
713 | 764 | else throw("Strict value is not equal to itself.") | |
714 | 765 | } | |
715 | 766 | else { | |
716 | - | let cW = if ((ab == a)) | |
717 | - | then ar(ad, e, as, at, au, av, aw, ax, ay) | |
718 | - | else aR(ad, e, as, at, au, av, ay) | |
719 | - | let cQ = cW._1 | |
720 | - | let bM = cW._2 | |
721 | - | aZ(ad, toString(P.caller), cQ, bM, cV, ay, ab) | |
767 | + | let df = aZ(bI, ad, e, as, ba, au, bb, aw, ax, ay) | |
768 | + | let cV = df._1 | |
769 | + | let bO = df._2 | |
770 | + | bc(ad, toString(P.caller), cV, bO, de, ay, bI) | |
722 | 771 | } | |
723 | 772 | } | |
724 | 773 | ||
725 | 774 | ||
726 | 775 | ||
727 | 776 | @Callable(P) | |
728 | - | func replenishFromLand (cS) = { | |
729 | - | let cK = split(valueOrErrorMessage(getString(this, (cS + y)), ("No request with id " + cS)), ",") | |
777 | + | func replenishFromLand (cD) = { | |
778 | + | let dg = cC(cD) | |
779 | + | let af = dg._1 | |
780 | + | let ad = dg._2 | |
781 | + | let as = dg._3 | |
782 | + | let ba = dg._4 | |
783 | + | let au = dg._5 | |
784 | + | let bb = dg._6 | |
785 | + | let aw = dg._7 | |
786 | + | let ax = dg._8 | |
787 | + | let ay = dg._9 | |
788 | + | let cF = dg._10 | |
789 | + | let cG = dg._11 | |
730 | 790 | if ((size(P.payments) != 1)) | |
731 | 791 | then throw("Wrong payment size") | |
732 | - | else if (if ((an(P.payments[0].assetId) != | |
792 | + | else if (if ((an(P.payments[0].assetId) != cF)) | |
733 | 793 | then true | |
734 | - | else (P.payments[0].amount != | |
794 | + | else (P.payments[0].amount != cG)) | |
735 | 795 | then throw("Wrong payment") | |
736 | 796 | else { | |
737 | - | let as = if ((cK[4] == an(P.payments[0].assetId))) | |
738 | - | then (parseIntValue(cK[3]) + P.payments[0].amount) | |
739 | - | else parseIntValue(cK[3]) | |
740 | - | let au = if ((cK[6] == an(P.payments[0].assetId))) | |
741 | - | then (parseIntValue(cK[5]) + P.payments[0].amount) | |
742 | - | else parseIntValue(cK[3]) | |
743 | - | let ad = cK[2] | |
744 | - | let af = cK[1] | |
745 | - | let ay = cK[9] | |
746 | - | let bb = parseIntValue(cK[12]) | |
747 | - | let cX = if ((cK[0] == a)) | |
748 | - | then ar(ad, d, as, cK[4], au, cK[6], parseIntValue(cK[7]), parseIntValue(cK[8]), ay) | |
749 | - | else if ((cK[0] == b)) | |
750 | - | then aR(ad, d, as, cK[4], au, cK[6], ay) | |
751 | - | else throw("Wrong request type") | |
752 | - | let cQ = cX._1 | |
753 | - | let bM = cX._2 | |
754 | - | let cY = [IntegerEntry((((((cK[2] + "_") + cK[1]) + "_") + cK[12]) + p), P.payments[0].amount), StringEntry((((((cK[2] + "_") + cK[1]) + "_") + cK[12]) + q), cK[10])] | |
755 | - | let cZ = aZ(ad, af, cQ, bM, bb, ay, cK[0]) | |
756 | - | $Tuple2(((cZ ++ cY) :+ DeleteEntry((cS + y))), cQ) | |
797 | + | let dh = if ((ba == cF)) | |
798 | + | then $Tuple2((as + P.payments[0].amount), au) | |
799 | + | else $Tuple2(as, (au + P.payments[0].amount)) | |
800 | + | let cZ = dh._1 | |
801 | + | let da = dh._2 | |
802 | + | let bI = valueOrErrorMessage(getString(this, (A + ad)), "Unknown pool") | |
803 | + | let di = aZ(bI, ad, d, as, ba, au, bb, aw, ax, ay) | |
804 | + | let cV = di._1 | |
805 | + | let bO = di._2 | |
806 | + | let be = ae(ad, toString(P.caller)) | |
807 | + | let dj = [IntegerEntry((((((ad + "_") + af) + "_") + toString(be)) + p), cG), StringEntry((((((ad + "_") + af) + "_") + toString(be)) + q), cF)] | |
808 | + | let dk = bc(ad, af, cV, bO, be, ay, bI) | |
809 | + | $Tuple2(((dk ++ dj) :+ DeleteEntry((cD + y))), cV) | |
757 | 810 | } | |
758 | 811 | } | |
759 | 812 | ||
760 | 813 | ||
761 | 814 | ||
762 | 815 | @Callable(P) | |
763 | - | func withdraw (ad, | |
816 | + | func withdraw (ad,dl) = { | |
764 | 817 | let af = toString(P.caller) | |
765 | - | let | |
766 | - | let | |
767 | - | let | |
768 | - | let | |
769 | - | let | |
770 | - | let | |
771 | - | let | |
772 | - | let | |
773 | - | let | |
818 | + | let dm = valueOrErrorMessage(getInteger(this, (((((ad + "_") + af) + "_") + toString(dl)) + o)), "Unknown position") | |
819 | + | let dn = getIntegerValue(this, (((((ad + "_") + af) + "_") + toString(dl)) + s)) | |
820 | + | let do = getIntegerValue(this, (ad + u)) | |
821 | + | let dp = ac(ad) | |
822 | + | let ck = (dm + fraction(dm, (do - dn), g)) | |
823 | + | let dq = Address(fromBase58String(af)) | |
824 | + | let cP = getIntegerValue(this, (((((ad + "_") + af) + "_") + toString(dl)) + p)) | |
825 | + | let cm = getStringValue(this, (((((ad + "_") + af) + "_") + toString(dl)) + q)) | |
826 | + | let cl = if ((cP > 0)) | |
774 | 827 | then { | |
775 | - | let Z = invoke(am(), "getAssetDebt", [false, ((((ad + "_") + af) + "_") + toString( | |
828 | + | let Z = invoke(am(), "getAssetDebt", [false, ((((ad + "_") + af) + "_") + toString(dl)), cm], nil) | |
776 | 829 | if ($isInstanceOf(Z, "Int")) | |
777 | 830 | then Z | |
778 | 831 | else throw(($getType(Z) + " couldn't be cast to Int")) | |
779 | 832 | } | |
780 | 833 | else 0 | |
781 | - | let | |
782 | - | if (( | |
834 | + | let dr = cj(ad, ck, cl, cm) | |
835 | + | if ((dr == dr)) | |
783 | 836 | then { | |
784 | - | let | |
785 | - | let | |
786 | - | let | |
787 | - | let | |
788 | - | let | |
789 | - | then invoke(am(), "repayFor", [((af + "_") + toString( | |
837 | + | let bT = dr._4 | |
838 | + | let cB = dr._3 | |
839 | + | let bS = dr._2 | |
840 | + | let cA = dr._1 | |
841 | + | let ds = if ((cl > 0)) | |
842 | + | then invoke(am(), "repayFor", [((af + "_") + toString(dl))], [AttachedPayment(ao(cm), cl)]) | |
790 | 843 | else 0 | |
791 | - | if (( | |
792 | - | then [DeleteEntry((((((ad + "_") + af) + "_") + toString( | |
844 | + | if ((ds == ds)) | |
845 | + | then [DeleteEntry((((((ad + "_") + af) + "_") + toString(dl)) + o)), DeleteEntry((((((ad + "_") + af) + "_") + toString(dl)) + s)), IntegerEntry((ad + t), (dp - ck)), ScriptTransfer(dq, cA, ao(bS)), ScriptTransfer(dq, cB, ao(bT))] | |
793 | 846 | else throw("Strict value is not equal to itself.") | |
794 | 847 | } | |
795 | 848 | else throw("Strict value is not equal to itself.") | |
798 | 851 | ||
799 | 852 | ||
800 | 853 | @Callable(P) | |
801 | - | func createNewRequest ( | |
802 | - | let | |
803 | - | $Tuple2([StringEntry((toString( | |
854 | + | func createNewRequest (dt) = valueOrElse(O(P), { | |
855 | + | let cQ = (valueOrElse(getInteger(this, z), 0) + 1) | |
856 | + | $Tuple2([StringEntry((toString(cQ) + y), dt), IntegerEntry(z, cQ)], cQ) | |
804 | 857 | }) | |
805 | 858 | ||
806 | 859 | ||
807 | 860 | ||
808 | 861 | @Callable(P) | |
809 | - | func capitalizeExKeeper (ad,ab, | |
810 | - | let | |
811 | - | then | |
862 | + | func capitalizeExKeeper (ad,ab,du,dv,dw,bp,bq,br,bs,bt,bu,bv) = { | |
863 | + | let dx = if (dw) | |
864 | + | then bh(ab, ad) | |
812 | 865 | else { | |
813 | - | let | |
866 | + | let dy = if ((ab == a)) | |
814 | 867 | then M | |
815 | 868 | else N | |
816 | - | $Tuple2( | |
869 | + | $Tuple2(dv, dy) | |
817 | 870 | } | |
818 | - | let | |
819 | - | let | |
820 | - | let | |
821 | - | let aG = ( | |
822 | - | let | |
871 | + | let dz = dx._1 | |
872 | + | let dy = dx._2 | |
873 | + | let dA = bl(du, dv, dy, bp, bq, br, bs, bt, bu, bv) | |
874 | + | let aG = (dz - dv) | |
875 | + | let dB = if ((aG > 0)) | |
823 | 876 | then [IntegerEntry((ad + B), (aG + valueOrElse(getInteger(this, (ad + B)), 0)))] | |
824 | 877 | else nil | |
825 | - | ( | |
878 | + | (bH(ad, ab, du, dA) ++ dB) | |
826 | 879 | } | |
827 | 880 | ||
828 | 881 | ||
829 | 882 | ||
830 | 883 | @Callable(P) | |
831 | - | func capitalizeExPazzle (ad,ab, | |
832 | - | let | |
833 | - | then | |
884 | + | func capitalizeExPazzle (ad,ab,du,dv,dw,by,bz,bv) = { | |
885 | + | let dC = if (dw) | |
886 | + | then bh(ab, ad) | |
834 | 887 | else { | |
835 | - | let | |
888 | + | let dy = if ((ab == a)) | |
836 | 889 | then M | |
837 | 890 | else N | |
838 | - | $Tuple2( | |
891 | + | $Tuple2(dv, dy) | |
839 | 892 | } | |
840 | - | let | |
841 | - | let | |
842 | - | let | |
843 | - | let aG = ( | |
844 | - | let | |
893 | + | let dz = dC._1 | |
894 | + | let dy = dC._2 | |
895 | + | let dA = bx(du, dv, dy, by, bz, bv) | |
896 | + | let aG = (dz - dv) | |
897 | + | let dB = if ((aG > 0)) | |
845 | 898 | then [IntegerEntry((ad + B), (aG + valueOrElse(getInteger(this, (ad + B)), 0)))] | |
846 | 899 | else nil | |
847 | - | ( | |
900 | + | (bH(ad, ab, du, dA) ++ dB) | |
848 | 901 | } | |
849 | 902 | ||
850 | 903 | ||
851 | 904 | ||
852 | 905 | @Callable(P) | |
853 | - | func capitalizeExSwopFi (ad,ab, | |
854 | - | let | |
855 | - | then | |
906 | + | func capitalizeExSwopFi (ad,ab,du,dv,dw,bB,bC,bD,bE,bF,bG,bv) = { | |
907 | + | let dD = if (dw) | |
908 | + | then bh(ab, ad) | |
856 | 909 | else { | |
857 | - | let | |
910 | + | let dy = if ((ab == a)) | |
858 | 911 | then M | |
859 | 912 | else N | |
860 | - | $Tuple2( | |
913 | + | $Tuple2(dv, dy) | |
861 | 914 | } | |
862 | - | let | |
863 | - | let | |
864 | - | let | |
865 | - | let aG = ( | |
866 | - | let | |
915 | + | let dz = dD._1 | |
916 | + | let dy = dD._2 | |
917 | + | let dA = bA(du, dv, dy, bB, bC, bD, bE, bF, bG, bv) | |
918 | + | let aG = (dz - dv) | |
919 | + | let dB = if ((aG > 0)) | |
867 | 920 | then [IntegerEntry((ad + B), (aG + valueOrElse(getInteger(this, (ad + B)), 0)))] | |
868 | 921 | else nil | |
869 | - | ( | |
922 | + | (bH(ad, ab, du, dA) ++ dB) | |
870 | 923 | } | |
871 | 924 | ||
872 | 925 | ||
873 | 926 | ||
874 | 927 | @Callable(P) | |
875 | - | func initNewPool (ab,W, | |
928 | + | func initNewPool (ab,W,dE,dF,dG) = if (if ((ab != a)) | |
876 | 929 | then (ab != b) | |
877 | 930 | else false) | |
878 | 931 | then throw("Wrong type") | |
879 | - | else [IntegerEntry((W + v), | |
932 | + | else [IntegerEntry((W + v), dE), IntegerEntry((W + w), dF), IntegerEntry((W + x), dG), IntegerEntry((W + u), 0), StringEntry((A + W), ab)] | |
880 | 933 | ||
881 | 934 | ||
882 | - | @Verifier( | |
883 | - | func | |
935 | + | @Verifier(dH) | |
936 | + | func dI () = sigVerify(dH.bodyBytes, dH.proofs[0], dH.senderPublicKey) | |
884 | 937 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = "SF" | |
5 | 5 | ||
6 | 6 | let b = "WX" | |
7 | 7 | ||
8 | 8 | let c = "cap" | |
9 | 9 | ||
10 | 10 | let d = "loan" | |
11 | 11 | ||
12 | 12 | let e = "noLoan" | |
13 | 13 | ||
14 | 14 | let f = 100000000 | |
15 | 15 | ||
16 | 16 | let g = 10000000000 | |
17 | 17 | ||
18 | 18 | let h = 1000000 | |
19 | 19 | ||
20 | 20 | let i = "A_asset_balance" | |
21 | 21 | ||
22 | 22 | let j = "B_asset_balance" | |
23 | 23 | ||
24 | 24 | let k = "A_asset_id" | |
25 | 25 | ||
26 | 26 | let l = "B_asset_id" | |
27 | 27 | ||
28 | 28 | let m = "share_asset_id" | |
29 | 29 | ||
30 | 30 | let n = "commission" | |
31 | 31 | ||
32 | 32 | let o = "_user_position" | |
33 | 33 | ||
34 | 34 | let p = "_user_position_borrow_amount" | |
35 | 35 | ||
36 | 36 | let q = "_user_position_borrow_asset_id" | |
37 | 37 | ||
38 | 38 | let r = "_user_position_number" | |
39 | 39 | ||
40 | 40 | let s = "_user_position_interest" | |
41 | 41 | ||
42 | 42 | let t = "_pool_total" | |
43 | 43 | ||
44 | 44 | let u = "_pool_interest" | |
45 | 45 | ||
46 | 46 | let v = "_axly_fee_without_loan" | |
47 | 47 | ||
48 | 48 | let w = "_axly_fee_with_loan" | |
49 | 49 | ||
50 | 50 | let x = "_axly_fee_cap" | |
51 | 51 | ||
52 | 52 | let y = "_request_id" | |
53 | 53 | ||
54 | 54 | let z = "requests_iter" | |
55 | 55 | ||
56 | 56 | let A = "pool_" | |
57 | 57 | ||
58 | 58 | let B = "_pool_cap_change" | |
59 | 59 | ||
60 | 60 | let C = "axly_money_box" | |
61 | 61 | ||
62 | 62 | let D = "swopfi_farming_addr" | |
63 | 63 | ||
64 | 64 | let E = "lend_service_addr" | |
65 | 65 | ||
66 | 66 | let F = "price_oracle" | |
67 | 67 | ||
68 | 68 | let G = "exchange_contract" | |
69 | 69 | ||
70 | 70 | let H = "wx_swap_contract" | |
71 | 71 | ||
72 | 72 | let I = Address(fromBase58String(valueOrErrorMessage(getString(this, C), "No axly moneyBox address"))) | |
73 | 73 | ||
74 | 74 | let J = Address(fromBase58String(valueOrErrorMessage(getString(this, G), "No exchange contract address"))) | |
75 | 75 | ||
76 | 76 | let K = Address(fromBase58String(valueOrErrorMessage(getString(this, F), "No price oracle address"))) | |
77 | 77 | ||
78 | 78 | let L = Address(fromBase58String(valueOrErrorMessage(getString(this, H), "No wx swap address"))) | |
79 | 79 | ||
80 | 80 | let M = base58'4W19ndijcc2CsQa9HGW2dfXKTVXhnneWWttxXrtjPmEp' | |
81 | 81 | ||
82 | 82 | let N = base58'EMAMLxDnv3xiz8RXg8Btj33jcEw3wLczL3JKYYmuubpc' | |
83 | 83 | ||
84 | 84 | func O (P) = if ((P.caller == this)) | |
85 | 85 | then unit | |
86 | 86 | else throw("Only contract itself can call this function") | |
87 | 87 | ||
88 | 88 | ||
89 | 89 | func Q (R) = { | |
90 | 90 | let S = R | |
91 | 91 | if ($isInstanceOf(S, "ByteVector")) | |
92 | 92 | then { | |
93 | 93 | let T = S | |
94 | 94 | assetBalance(this, T) | |
95 | 95 | } | |
96 | 96 | else if ($isInstanceOf(S, "Unit")) | |
97 | 97 | then { | |
98 | 98 | let U = S | |
99 | 99 | wavesBalance(this).available | |
100 | 100 | } | |
101 | 101 | else throw("Match error") | |
102 | 102 | } | |
103 | 103 | ||
104 | 104 | ||
105 | 105 | func V (W) = $Tuple5(valueOrErrorMessage(getString(W, k), "Can't get pool A asset id"), valueOrErrorMessage(getString(W, l), "Can't get pool B asset id"), valueOrErrorMessage(getInteger(W, i), "Can't get pool A asset balance"), valueOrErrorMessage(getInteger(W, j), "Can't get pool B asset balance"), valueOrErrorMessage(getString(W, m), "Can't get share asset id")) | |
106 | 106 | ||
107 | 107 | ||
108 | 108 | func X (W) = { | |
109 | 109 | let Y = { | |
110 | 110 | let Z = invoke(W, "getPoolConfigWrapperREADONLY", nil, nil) | |
111 | 111 | if ($isInstanceOf(Z, "List[Any]")) | |
112 | 112 | then Z | |
113 | 113 | else throw(($getType(Z) + " couldn't be cast to List[Any]")) | |
114 | 114 | } | |
115 | 115 | if ((Y == Y)) | |
116 | 116 | then $Tuple5(valueOrErrorMessage({ | |
117 | 117 | let Z = Y[4] | |
118 | 118 | if ($isInstanceOf(Z, "String")) | |
119 | 119 | then Z | |
120 | 120 | else unit | |
121 | 121 | }, "Can't get pool A asset id"), valueOrErrorMessage({ | |
122 | 122 | let Z = Y[5] | |
123 | 123 | if ($isInstanceOf(Z, "String")) | |
124 | 124 | then Z | |
125 | 125 | else unit | |
126 | 126 | }, "Can't get pool B asset id"), 0, 0, valueOrErrorMessage({ | |
127 | 127 | let Z = Y[3] | |
128 | 128 | if ($isInstanceOf(Z, "String")) | |
129 | 129 | then Z | |
130 | 130 | else unit | |
131 | 131 | }, "Can't get pool LP asset id")) | |
132 | 132 | else throw("Strict value is not equal to itself.") | |
133 | 133 | } | |
134 | 134 | ||
135 | 135 | ||
136 | 136 | func aa (W,ab) = if ((ab == a)) | |
137 | 137 | then V(W) | |
138 | 138 | else if ((ab == b)) | |
139 | 139 | then X(W) | |
140 | 140 | else throw("Wrong pool type") | |
141 | 141 | ||
142 | 142 | ||
143 | 143 | func ac (ad) = valueOrElse(getInteger(this, (ad + t)), 0) | |
144 | 144 | ||
145 | 145 | ||
146 | 146 | func ae (ad,af) = (valueOrElse(getInteger(this, (((ad + "_") + af) + r)), 0) + 1) | |
147 | 147 | ||
148 | 148 | ||
149 | 149 | func ag (ad,ah) = if ((ah == "cap")) | |
150 | 150 | then getIntegerValue(this, (ad + x)) | |
151 | 151 | else if ((ah == "loan")) | |
152 | 152 | then getIntegerValue(this, (ad + w)) | |
153 | 153 | else if ((ah == "noLoan")) | |
154 | 154 | then getIntegerValue(this, (ad + v)) | |
155 | 155 | else throw("Wrong fee type") | |
156 | 156 | ||
157 | 157 | ||
158 | 158 | func ai () = Address(fromBase58String(valueOrErrorMessage(getString(this, D), "Can't get swopfi farming addr"))) | |
159 | 159 | ||
160 | 160 | ||
161 | 161 | func aj (W) = { | |
162 | 162 | let ak = Address(fromBase58String(valueOrErrorMessage(getString(W, "%s__factoryContract"), "Can't get WX factory contract addr"))) | |
163 | 163 | let al = split(valueOrErrorMessage(getString(ak, "%s__factoryConfig"), "Can't get WX factory cfg"), "__") | |
164 | 164 | Address(fromBase58String(al[1])) | |
165 | 165 | } | |
166 | 166 | ||
167 | 167 | ||
168 | 168 | func am () = Address(fromBase58String(valueOrErrorMessage(getString(this, E), "Can't get lend service addr"))) | |
169 | 169 | ||
170 | 170 | ||
171 | 171 | func an (R) = { | |
172 | 172 | let S = R | |
173 | 173 | if ($isInstanceOf(S, "ByteVector")) | |
174 | 174 | then { | |
175 | 175 | let T = S | |
176 | 176 | toBase58String(T) | |
177 | 177 | } | |
178 | 178 | else if ($isInstanceOf(S, "Unit")) | |
179 | 179 | then { | |
180 | 180 | let U = S | |
181 | 181 | "WAVES" | |
182 | 182 | } | |
183 | 183 | else throw("Match error") | |
184 | 184 | } | |
185 | 185 | ||
186 | 186 | ||
187 | 187 | func ao (R) = if ((R == "WAVES")) | |
188 | 188 | then unit | |
189 | 189 | else fromBase58String(R) | |
190 | 190 | ||
191 | 191 | ||
192 | 192 | func ap (R) = if ((R == "WAVES")) | |
193 | 193 | then 8 | |
194 | 194 | else { | |
195 | 195 | let S = assetInfo(fromBase58String(R)) | |
196 | 196 | if ($isInstanceOf(S, "Asset")) | |
197 | 197 | then { | |
198 | 198 | let aq = S | |
199 | 199 | aq.decimals | |
200 | 200 | } | |
201 | 201 | else throw("Can't find asset") | |
202 | 202 | } | |
203 | 203 | ||
204 | 204 | ||
205 | 205 | func ar (ad,ah,as,at,au,av,aw,ax,ay) = { | |
206 | 206 | let az = Q(fromBase58String(ay)) | |
207 | 207 | if ((az == az)) | |
208 | 208 | then { | |
209 | 209 | let W = Address(fromBase58String(ad)) | |
210 | 210 | let aA = fraction(f, as, aw) | |
211 | 211 | let aB = fraction(f, au, ax) | |
212 | 212 | let aC = if ((aB > aA)) | |
213 | 213 | then { | |
214 | 214 | let aD = fraction(ax, aA, f, CEILING) | |
215 | 215 | $Tuple4(as, aD, (au - aD), av) | |
216 | 216 | } | |
217 | 217 | else { | |
218 | 218 | let aD = fraction(aw, aB, f, CEILING) | |
219 | 219 | $Tuple4(aD, au, (as - aD), at) | |
220 | 220 | } | |
221 | 221 | let aE = aC._1 | |
222 | 222 | let aF = aC._2 | |
223 | 223 | let aG = aC._3 | |
224 | 224 | let aH = aC._4 | |
225 | 225 | let aI = if (if ((aE > 0)) | |
226 | 226 | then (aF > 0) | |
227 | 227 | else false) | |
228 | 228 | then { | |
229 | 229 | let aJ = [AttachedPayment(ao(at), aE), AttachedPayment(ao(av), aF)] | |
230 | 230 | invoke(W, "callFunction", ["replenishWithTwoTokens", ["false", "0"]], aJ) | |
231 | 231 | } | |
232 | 232 | else 0 | |
233 | 233 | if ((aI == aI)) | |
234 | 234 | then { | |
235 | 235 | let aK = if ((aG > 0)) | |
236 | 236 | then { | |
237 | 237 | let aJ = [AttachedPayment(ao(aH), aG)] | |
238 | 238 | let aL = ["0", "false", "0"] | |
239 | 239 | invoke(W, "callFunction", ["replenishWithOneToken", aL], aJ) | |
240 | 240 | } | |
241 | 241 | else 0 | |
242 | 242 | if ((aK == aK)) | |
243 | 243 | then { | |
244 | 244 | let aM = Q(fromBase58String(ay)) | |
245 | 245 | let aN = (aM - az) | |
246 | 246 | let aO = fraction(aN, ag(ad, ah), h) | |
247 | 247 | let aP = (aN - aO) | |
248 | 248 | if ((0 >= aP)) | |
249 | 249 | then throw("amount of staked sharetokens must be > 0") | |
250 | 250 | else { | |
251 | 251 | let aQ = invoke(ai(), "lockShareTokens", [ad, 0], [AttachedPayment(fromBase58String(ay), aP)]) | |
252 | 252 | if ((aQ == aQ)) | |
253 | 253 | then $Tuple2(aP, aO) | |
254 | 254 | else throw("Strict value is not equal to itself.") | |
255 | 255 | } | |
256 | 256 | } | |
257 | 257 | else throw("Strict value is not equal to itself.") | |
258 | 258 | } | |
259 | 259 | else throw("Strict value is not equal to itself.") | |
260 | 260 | } | |
261 | 261 | else throw("Strict value is not equal to itself.") | |
262 | 262 | } | |
263 | 263 | ||
264 | 264 | ||
265 | 265 | func aR (ad,ah,as,at,au,av,ay) = { | |
266 | 266 | let W = Address(fromBase58String(ad)) | |
267 | 267 | let aS = if (if ((as > 0)) | |
268 | 268 | then (au > 0) | |
269 | 269 | else false) | |
270 | 270 | then { | |
271 | 271 | let aT = split({ | |
272 | 272 | let Z = invoke(W, "evaluatePutByAmountAssetREADONLY", [as], nil) | |
273 | 273 | if ($isInstanceOf(Z, "String")) | |
274 | 274 | then Z | |
275 | 275 | else throw(($getType(Z) + " couldn't be cast to String")) | |
276 | 276 | }, "__") | |
277 | 277 | if ((aT == aT)) | |
278 | 278 | then { | |
279 | 279 | let aU = split({ | |
280 | 280 | let Z = invoke(W, "evaluatePutByPriceAssetREADONLY", [au], nil) | |
281 | 281 | if ($isInstanceOf(Z, "String")) | |
282 | 282 | then Z | |
283 | 283 | else throw(($getType(Z) + " couldn't be cast to String")) | |
284 | 284 | }, "__") | |
285 | 285 | if ((aU == aU)) | |
286 | 286 | then { | |
287 | 287 | let aV = parseIntValue(aT[1]) | |
288 | 288 | let aW = parseIntValue(aU[1]) | |
289 | 289 | if ((aW > aV)) | |
290 | 290 | then { | |
291 | 291 | let aX = parseIntValue(aT[8]) | |
292 | 292 | $Tuple4(as, aX, (au - aX), av) | |
293 | 293 | } | |
294 | 294 | else { | |
295 | 295 | let aY = parseIntValue(aU[7]) | |
296 | 296 | $Tuple4(aY, au, (as - aY), at) | |
297 | 297 | } | |
298 | 298 | } | |
299 | 299 | else throw("Strict value is not equal to itself.") | |
300 | 300 | } | |
301 | 301 | else throw("Strict value is not equal to itself.") | |
302 | 302 | } | |
303 | 303 | else if ((as > 0)) | |
304 | 304 | then $Tuple4(as, au, as, at) | |
305 | 305 | else if ((au > 0)) | |
306 | 306 | then $Tuple4(as, au, au, av) | |
307 | 307 | else throw("pmts must be > 0") | |
308 | 308 | let aE = aS._1 | |
309 | 309 | let aF = aS._2 | |
310 | 310 | let aG = aS._3 | |
311 | 311 | let aH = aS._4 | |
312 | 312 | let az = Q(fromBase58String(ay)) | |
313 | 313 | if ((az == az)) | |
314 | 314 | then { | |
315 | 315 | let aI = if (if ((aE > 0)) | |
316 | 316 | then (aF > 0) | |
317 | 317 | else false) | |
318 | 318 | then { | |
319 | 319 | let aJ = [AttachedPayment(ao(at), aE), AttachedPayment(ao(av), aF)] | |
320 | 320 | invoke(W, "put", [1000000, false], aJ) | |
321 | 321 | } | |
322 | 322 | else 0 | |
323 | 323 | if ((aI == aI)) | |
324 | 324 | then { | |
325 | 325 | let aK = if ((aG > 0)) | |
326 | 326 | then { | |
327 | 327 | let aJ = [AttachedPayment(ao(aH), aG)] | |
328 | 328 | invoke(W, "putOneTkn", [0, false], aJ) | |
329 | 329 | } | |
330 | 330 | else 0 | |
331 | 331 | if ((aK == aK)) | |
332 | 332 | then { | |
333 | 333 | let aM = Q(fromBase58String(ay)) | |
334 | 334 | let aN = (aM - az) | |
335 | 335 | let aO = fraction(aN, ag(ad, ah), h) | |
336 | 336 | let aP = (aN - aO) | |
337 | 337 | if ((0 >= aP)) | |
338 | 338 | then throw("amount of staked sharetokens must be > 0") | |
339 | 339 | else { | |
340 | 340 | let aQ = invoke(aj(W), "stake", nil, [AttachedPayment(fromBase58String(ay), aP)]) | |
341 | 341 | if ((aQ == aQ)) | |
342 | 342 | then $Tuple2(aP, aO) | |
343 | 343 | else throw("Strict value is not equal to itself.") | |
344 | 344 | } | |
345 | 345 | } | |
346 | 346 | else throw("Strict value is not equal to itself.") | |
347 | 347 | } | |
348 | 348 | else throw("Strict value is not equal to itself.") | |
349 | 349 | } | |
350 | 350 | else throw("Strict value is not equal to itself.") | |
351 | 351 | } | |
352 | 352 | ||
353 | 353 | ||
354 | - | func aZ (ad,af,ba,aO,bb,ay,ab) = { | |
355 | - | let bc = ac(ad) | |
356 | - | let bd = getIntegerValue(this, (ad + u)) | |
357 | - | [IntegerEntry((ad + t), (bc + ba)), IntegerEntry((((((ad + "_") + af) + "_") + toString(bb)) + o), ba), IntegerEntry((((((ad + "_") + af) + "_") + toString(bb)) + s), bd), IntegerEntry((((ad + "_") + af) + r), bb), ScriptTransfer(I, aO, fromBase58String(ay))] | |
354 | + | func aZ (ab,ad,ah,as,ba,au,bb,aw,ax,ay) = if ((ab == a)) | |
355 | + | then ar(ad, d, as, ba, au, bb, aw, ax, ay) | |
356 | + | else if ((ab == b)) | |
357 | + | then aR(ad, d, as, ba, au, bb, ay) | |
358 | + | else throw("Wrong pool type") | |
359 | + | ||
360 | + | ||
361 | + | func bc (ad,af,bd,aO,be,ay,ab) = { | |
362 | + | let bf = ac(ad) | |
363 | + | let bg = getIntegerValue(this, (ad + u)) | |
364 | + | [IntegerEntry((ad + t), (bf + bd)), IntegerEntry((((((ad + "_") + af) + "_") + toString(be)) + o), bd), IntegerEntry((((((ad + "_") + af) + "_") + toString(be)) + s), bg), IntegerEntry((((ad + "_") + af) + r), be), ScriptTransfer(I, aO, fromBase58String(ay))] | |
358 | 365 | } | |
359 | 366 | ||
360 | 367 | ||
361 | - | func | |
368 | + | func bh (ab,ad) = if ((ab == a)) | |
362 | 369 | then { | |
363 | - | let | |
364 | - | if (( | |
370 | + | let bi = Q(M) | |
371 | + | if ((bi == bi)) | |
365 | 372 | then { | |
366 | - | let | |
367 | - | if (( | |
373 | + | let bj = invoke(ai(), "claim", [ad], nil) | |
374 | + | if ((bj == bj)) | |
368 | 375 | then { | |
369 | - | let | |
370 | - | $Tuple2(( | |
376 | + | let bk = Q(M) | |
377 | + | $Tuple2((bk - bi), M) | |
371 | 378 | } | |
372 | 379 | else throw("Strict value is not equal to itself.") | |
373 | 380 | } | |
374 | 381 | else throw("Strict value is not equal to itself.") | |
375 | 382 | } | |
376 | 383 | else if ((ab == b)) | |
377 | 384 | then { | |
378 | - | let | |
379 | - | if (( | |
385 | + | let bi = Q(N) | |
386 | + | if ((bi == bi)) | |
380 | 387 | then { | |
381 | - | let | |
382 | - | if (( | |
388 | + | let bj = invoke(aj(Address(fromBase58String(ad))), "claimWX", [ad], nil) | |
389 | + | if ((bj == bj)) | |
383 | 390 | then { | |
384 | - | let | |
385 | - | $Tuple2(( | |
391 | + | let bk = Q(N) | |
392 | + | $Tuple2((bk - bi), N) | |
386 | 393 | } | |
387 | 394 | else throw("Strict value is not equal to itself.") | |
388 | 395 | } | |
389 | 396 | else throw("Strict value is not equal to itself.") | |
390 | 397 | } | |
391 | 398 | else throw("Wrong pool type") | |
392 | 399 | ||
393 | 400 | ||
394 | - | func | |
395 | - | let | |
396 | - | if (( | |
401 | + | func bl (bm,bn,bo,bp,bq,br,bs,bt,bu,bv) = { | |
402 | + | let bw = Q(ao(bm)) | |
403 | + | if ((bw == bw)) | |
397 | 404 | then { | |
398 | - | let | |
399 | - | if (( | |
400 | - | then (Q(ao( | |
405 | + | let bj = invoke(J, "swap", [bp, bq, br, bs, bt, bu, bv], [AttachedPayment(bo, bn)]) | |
406 | + | if ((bj == bj)) | |
407 | + | then (Q(ao(bm)) - bw) | |
401 | 408 | else throw("Strict value is not equal to itself.") | |
402 | 409 | } | |
403 | 410 | else throw("Strict value is not equal to itself.") | |
404 | 411 | } | |
405 | 412 | ||
406 | 413 | ||
407 | - | func | |
408 | - | let | |
409 | - | if (( | |
414 | + | func bx (bm,bn,bo,by,bz,bv) = { | |
415 | + | let bw = Q(ao(bm)) | |
416 | + | if ((bw == bw)) | |
410 | 417 | then { | |
411 | - | let | |
412 | - | if (( | |
413 | - | then (Q(ao( | |
418 | + | let bj = invoke(J, "puzzleSwap", [by, bz, bv], [AttachedPayment(bo, bn)]) | |
419 | + | if ((bj == bj)) | |
420 | + | then (Q(ao(bm)) - bw) | |
414 | 421 | else throw("Strict value is not equal to itself.") | |
415 | 422 | } | |
416 | 423 | else throw("Strict value is not equal to itself.") | |
417 | 424 | } | |
418 | 425 | ||
419 | 426 | ||
420 | - | func | |
421 | - | let | |
422 | - | if (( | |
427 | + | func bA (bm,bn,bo,bB,bC,bD,bE,bF,bG,bv) = { | |
428 | + | let bw = Q(ao(bm)) | |
429 | + | if ((bw == bw)) | |
423 | 430 | then { | |
424 | - | let | |
425 | - | if (( | |
426 | - | then (Q(ao( | |
431 | + | let bj = invoke(J, "swopfiSwap", [bB, bC, bD, bE, bF, bG, bv], [AttachedPayment(bo, bn)]) | |
432 | + | if ((bj == bj)) | |
433 | + | then (Q(ao(bm)) - bw) | |
427 | 434 | else throw("Strict value is not equal to itself.") | |
428 | 435 | } | |
429 | 436 | else throw("Strict value is not equal to itself.") | |
430 | 437 | } | |
431 | 438 | ||
432 | 439 | ||
433 | - | func | |
440 | + | func bH (ad,bI,bJ,bK) = { | |
434 | 441 | let W = Address(fromBase58String(ad)) | |
435 | - | let bH = aa(W, ab) | |
436 | - | let bI = bH._1 | |
437 | - | let bJ = bH._2 | |
438 | - | let aw = bH._3 | |
439 | - | let ax = bH._4 | |
440 | - | let ay = bH._5 | |
441 | - | let bK = if ((bF == bI)) | |
442 | - | then $Tuple2(bG, 0) | |
443 | - | else $Tuple2(0, bG) | |
444 | - | let as = bK._1 | |
445 | - | let au = bK._2 | |
446 | - | let bL = if ((ab == a)) | |
447 | - | then ar(ad, c, as, bI, au, bJ, aw, ax, ay) | |
448 | - | else aR(ad, c, as, bI, au, bJ, ay) | |
442 | + | let bL = aa(W, bI) | |
449 | 443 | let ba = bL._1 | |
450 | - | let bM = bL._2 | |
451 | - | let bd = valueOrElse(getInteger(this, (ad + u)), 0) | |
452 | - | let bN = ac(ad) | |
453 | - | let bO = (bd + fraction(ba, g, bN)) | |
454 | - | [IntegerEntry((ad + u), bO), ScriptTransfer(I, bM, fromBase58String(ay))] | |
444 | + | let bb = bL._2 | |
445 | + | let aw = bL._3 | |
446 | + | let ax = bL._4 | |
447 | + | let ay = bL._5 | |
448 | + | let bM = if ((bJ == ba)) | |
449 | + | then $Tuple2(bK, 0) | |
450 | + | else $Tuple2(0, bK) | |
451 | + | let as = bM._1 | |
452 | + | let au = bM._2 | |
453 | + | let bN = aZ(bI, ad, c, as, ba, au, bb, aw, ax, ay) | |
454 | + | let bd = bN._1 | |
455 | + | let bO = bN._2 | |
456 | + | let bg = valueOrElse(getInteger(this, (ad + u)), 0) | |
457 | + | let bP = ac(ad) | |
458 | + | let bQ = (bg + fraction(bd, g, bP)) | |
459 | + | [IntegerEntry((ad + u), bQ), ScriptTransfer(I, bO, fromBase58String(ay))] | |
455 | 460 | } | |
456 | 461 | ||
457 | 462 | ||
458 | - | func | |
463 | + | func bR (ad,bS,bT,aw,ax,bU,bV) = { | |
459 | 464 | let W = Address(fromBase58String(ad)) | |
460 | - | let | |
461 | - | let | |
462 | - | let | |
463 | - | let | |
465 | + | let bW = 1000000 | |
466 | + | let bX = getIntegerValue(W, n) | |
467 | + | let bY = fraction(bU, bW, (bW - bX)) | |
468 | + | let bZ = if ((bV == bS)) | |
464 | 469 | then { | |
465 | - | let | |
466 | - | $Tuple2( | |
470 | + | let ca = fraction(aw, bY, (ax - bY)) | |
471 | + | $Tuple2(ca, bT) | |
467 | 472 | } | |
468 | 473 | else { | |
469 | - | let | |
470 | - | $Tuple2( | |
474 | + | let ca = fraction(ax, bY, (aw - bY)) | |
475 | + | $Tuple2(ca, bS) | |
471 | 476 | } | |
472 | - | let | |
473 | - | let | |
474 | - | invoke(W, "callFunction", ["exchange", ["1"]], [AttachedPayment(ao( | |
477 | + | let ca = bZ._1 | |
478 | + | let cb = bZ._2 | |
479 | + | invoke(W, "callFunction", ["exchange", ["1"]], [AttachedPayment(ao(cb), ca)]) | |
475 | 480 | } | |
476 | 481 | ||
477 | 482 | ||
478 | - | func | |
483 | + | func cc (ad,bS,bT,aw,ax,bU,bV) = { | |
479 | 484 | let W = Address(fromBase58String(ad)) | |
480 | - | let | |
481 | - | let | |
482 | - | let | |
483 | - | let | |
485 | + | let cd = getIntegerValue(L, "%s__protocolFee") | |
486 | + | let ce = getIntegerValue(L, "%s__poolFee") | |
487 | + | let cf = toBigInt(100000000) | |
488 | + | let cg = if ((bV == bS)) | |
484 | 489 | then { | |
485 | - | let | |
486 | - | $Tuple2( | |
490 | + | let ca = fraction(aw, bU, (ax - bU)) | |
491 | + | $Tuple2(ca, bT) | |
487 | 492 | } | |
488 | 493 | else { | |
489 | - | let | |
490 | - | $Tuple2( | |
494 | + | let ca = fraction(ax, bU, (aw - bU)) | |
495 | + | $Tuple2(ca, bS) | |
491 | 496 | } | |
492 | - | let | |
493 | - | let | |
494 | - | let | |
495 | - | invoke(L, "swap", [1, | |
497 | + | let ca = cg._1 | |
498 | + | let cb = cg._2 | |
499 | + | let ch = toInt(fraction(toBigInt(ca), cf, (cf - toBigInt((cd + ce))))) | |
500 | + | invoke(L, "swap", [1, bV, toString(this)], [AttachedPayment(ao(cb), ch)]) | |
496 | 501 | } | |
497 | 502 | ||
498 | 503 | ||
499 | - | func | |
500 | - | then | |
501 | - | else | |
504 | + | func ci (ab,ad,bS,bT,aw,ax,bU,bV) = if ((ab == a)) | |
505 | + | then bR(ad, bS, bT, aw, ax, bU, bV) | |
506 | + | else cc(ad, bS, bT, aw, ax, bU, bV) | |
502 | 507 | ||
503 | 508 | ||
504 | - | func | |
509 | + | func cj (ad,ck,cl,cm) = { | |
505 | 510 | let W = Address(fromBase58String(ad)) | |
506 | - | let | |
507 | - | let | |
508 | - | let | |
509 | - | let | |
510 | - | let aw = | |
511 | - | let ax = | |
512 | - | let | |
513 | - | if (( | |
511 | + | let bI = valueOrErrorMessage(getString(this, (A + ad)), "Unknown pool") | |
512 | + | let cn = aa(W, bI) | |
513 | + | let bS = cn._1 | |
514 | + | let bT = cn._2 | |
515 | + | let aw = cn._3 | |
516 | + | let ax = cn._4 | |
517 | + | let co = Q(ao(bS)) | |
518 | + | if ((co == co)) | |
514 | 519 | then { | |
515 | - | let | |
516 | - | if (( | |
520 | + | let cp = Q(ao(bT)) | |
521 | + | if ((cp == cp)) | |
517 | 522 | then { | |
518 | - | let | |
519 | - | then invoke(W, "callFunction", ["withdraw", [toString( | |
520 | - | else if (( | |
521 | - | then invoke(W, "unstakeAndGet", [ | |
523 | + | let bj = if ((bI == a)) | |
524 | + | then invoke(W, "callFunction", ["withdraw", [toString(ck)]], nil) | |
525 | + | else if ((bI == b)) | |
526 | + | then invoke(W, "unstakeAndGet", [ck], nil) | |
522 | 527 | else throw("Wrong position type") | |
523 | - | if (( | |
528 | + | if ((bj == bj)) | |
524 | 529 | then { | |
525 | - | let | |
526 | - | let | |
527 | - | let | |
528 | - | let | |
529 | - | let | |
530 | - | let | |
530 | + | let cq = Q(ao(bS)) | |
531 | + | let cr = Q(ao(bT)) | |
532 | + | let cs = $Tuple2((cq - co), (cr - cp)) | |
533 | + | let ct = cs._1 | |
534 | + | let cu = cs._2 | |
535 | + | let cv = if ((cl > 0)) | |
531 | 536 | then { | |
532 | - | let | |
533 | - | then ( | |
537 | + | let cw = if (if ((cm == bS)) | |
538 | + | then (cl > ct) | |
534 | 539 | else false) | |
535 | - | then ( | |
536 | - | else if (if (( | |
537 | - | then ( | |
540 | + | then (cl - ct) | |
541 | + | else if (if ((cm == bT)) | |
542 | + | then (cl > cu) | |
538 | 543 | else false) | |
539 | - | then ( | |
544 | + | then (cl - cu) | |
540 | 545 | else 0 | |
541 | - | let | |
542 | - | then | |
546 | + | let cx = if ((cw > 0)) | |
547 | + | then ci(bI, ad, bS, bT, aw, ax, cw, cm) | |
543 | 548 | else 0 | |
544 | - | if (( | |
549 | + | if ((cx == cx)) | |
545 | 550 | then { | |
546 | - | let | |
547 | - | let | |
548 | - | $Tuple2(( | |
551 | + | let cy = Q(ao(bS)) | |
552 | + | let cz = Q(ao(bT)) | |
553 | + | $Tuple2((cy - co), (cz - cp)) | |
549 | 554 | } | |
550 | 555 | else throw("Strict value is not equal to itself.") | |
551 | 556 | } | |
552 | - | else $Tuple2( | |
553 | - | let | |
554 | - | let | |
555 | - | $Tuple4( | |
557 | + | else $Tuple2(ct, cu) | |
558 | + | let cA = cv._1 | |
559 | + | let cB = cv._2 | |
560 | + | $Tuple4(cA, bS, cB, bT) | |
556 | 561 | } | |
557 | 562 | else throw("Strict value is not equal to itself.") | |
558 | 563 | } | |
559 | 564 | else throw("Strict value is not equal to itself.") | |
560 | 565 | } | |
561 | 566 | else throw("Strict value is not equal to itself.") | |
562 | 567 | } | |
563 | 568 | ||
564 | 569 | ||
570 | + | func cC (cD) = { | |
571 | + | let cE = split(valueOrErrorMessage(getString(this, (cD + y)), ("No request with id " + cD)), ",") | |
572 | + | let af = cE[0] | |
573 | + | let ad = cE[1] | |
574 | + | let as = parseIntValue(cE[2]) | |
575 | + | let ba = cE[3] | |
576 | + | let au = parseIntValue(cE[4]) | |
577 | + | let bb = cE[5] | |
578 | + | let aw = parseIntValue(cE[6]) | |
579 | + | let ax = parseIntValue(cE[7]) | |
580 | + | let ay = cE[8] | |
581 | + | let cF = cE[9] | |
582 | + | let cG = parseIntValue(cE[10]) | |
583 | + | $Tuple11(af, ad, as, ba, au, bb, aw, ax, ay, cF, cG) | |
584 | + | } | |
585 | + | ||
586 | + | ||
565 | 587 | @Callable(P) | |
566 | - | func replenishREADONLY (ad, | |
588 | + | func replenishREADONLY (ad,cH,cI) = if (if ((100 > cH)) | |
567 | 589 | then true | |
568 | - | else ( | |
590 | + | else (cH > 300)) | |
569 | 591 | then throw("Leverage can't be <100 and >300") | |
570 | 592 | else { | |
571 | - | let | |
572 | - | let | |
573 | - | let | |
574 | - | let | |
575 | - | let aw = | |
576 | - | let ax = | |
577 | - | let ay = | |
578 | - | let | |
579 | - | then if ((an(P.payments[0].assetId) != | |
593 | + | let bI = valueOrErrorMessage(getString(this, (A + ad)), "Pool is not inited") | |
594 | + | let cJ = aa(Address(fromBase58String(ad)), bI) | |
595 | + | let ba = cJ._1 | |
596 | + | let bb = cJ._2 | |
597 | + | let aw = cJ._3 | |
598 | + | let ax = cJ._4 | |
599 | + | let ay = cJ._5 | |
600 | + | let cK = if ((size(P.payments) == 2)) | |
601 | + | then if ((an(P.payments[0].assetId) != ba)) | |
580 | 602 | then throw("Wrong payment asset A") | |
581 | - | else if ((an(P.payments[1].assetId) != | |
603 | + | else if ((an(P.payments[1].assetId) != bb)) | |
582 | 604 | then throw("Wrong payment asset B") | |
583 | - | else $Tuple4(P.payments[0].amount, | |
605 | + | else $Tuple4(P.payments[0].amount, ba, P.payments[1].amount, bb) | |
584 | 606 | else if ((size(P.payments) == 1)) | |
585 | - | then if ((an(P.payments[0].assetId) == | |
586 | - | then $Tuple4(P.payments[0].amount, | |
587 | - | else if ((an(P.payments[0].assetId) == | |
588 | - | then $Tuple4(0, | |
607 | + | then if ((an(P.payments[0].assetId) == ba)) | |
608 | + | then $Tuple4(P.payments[0].amount, ba, 0, bb) | |
609 | + | else if ((an(P.payments[0].assetId) == bb)) | |
610 | + | then $Tuple4(0, ba, P.payments[0].amount, bb) | |
589 | 611 | else throw("Wrong payment") | |
590 | 612 | else throw("One or two payments expected") | |
591 | - | let as = | |
592 | - | let at = | |
593 | - | let au = | |
594 | - | let av = | |
595 | - | let | |
613 | + | let as = cK._1 | |
614 | + | let at = cK._2 | |
615 | + | let au = cK._3 | |
616 | + | let av = cK._4 | |
617 | + | let cL = if ((cH > 100)) | |
596 | 618 | then { | |
597 | - | let | |
619 | + | let cM = ( let Z = invoke(K, "getTWAP60", [at, false], nil) | |
598 | 620 | if ($isInstanceOf(Z, "(Int, Int)")) | |
599 | 621 | then Z | |
600 | 622 | else throw(($getType(Z) + " couldn't be cast to (Int, Int)")))._1 | |
601 | - | let | |
623 | + | let cN = ( let Z = invoke(K, "getTWAP60", [av, false], nil) | |
602 | 624 | if ($isInstanceOf(Z, "(Int, Int)")) | |
603 | 625 | then Z | |
604 | 626 | else throw(($getType(Z) + " couldn't be cast to (Int, Int)")))._1 | |
605 | - | let | |
606 | - | let | |
607 | - | let | |
608 | - | let | |
609 | - | let Z = invoke(this, "createNewRequest", [ | |
627 | + | let cO = (fraction(cM, as, pow(10, 0, ap(at), 0, 0, DOWN)) + fraction(cN, au, pow(10, 0, ap(av), 0, 0, DOWN))) | |
628 | + | let cP = fraction(cO, (cH - 100), 100) | |
629 | + | let cE = makeString([toString(P.caller), ad, toString(as), at, toString(au), av, toString(aw), toString(ax), ay, cI, toString(cP), toString(1)], ",") | |
630 | + | let cQ = { | |
631 | + | let Z = invoke(this, "createNewRequest", [cE], nil) | |
610 | 632 | if ($isInstanceOf(Z, "Int")) | |
611 | 633 | then Z | |
612 | 634 | else throw(($getType(Z) + " couldn't be cast to Int")) | |
613 | 635 | } | |
614 | - | if (( | |
636 | + | if ((cQ == cQ)) | |
615 | 637 | then { | |
616 | - | let | |
617 | - | let | |
618 | - | if (( | |
619 | - | then if (( | |
620 | - | then $Tuple4((as + | |
621 | - | else $Tuple4(as, (au + | |
638 | + | let cR = [((toString(P.caller) + "_") + toString(1)), ay, cI, cP, toString(this), "replenishFromLandReadOnly", toString(valueOrErrorMessage(cQ, "Can't create new request"))] | |
639 | + | let bj = reentrantInvoke(am(), "flashPosition", cR, nil) | |
640 | + | if ((bj == bj)) | |
641 | + | then if ((cI == at)) | |
642 | + | then $Tuple4((as + cP), au, d, cP) | |
643 | + | else $Tuple4(as, (au + cP), d, cP) | |
622 | 644 | else throw("Strict value is not equal to itself.") | |
623 | 645 | } | |
624 | 646 | else throw("Strict value is not equal to itself.") | |
625 | 647 | } | |
626 | 648 | else $Tuple4(as, au, e, 0) | |
627 | - | let cN = cF._1 | |
628 | - | let cO = cF._2 | |
629 | - | let ah = cF._3 | |
630 | - | let cJ = cF._4 | |
631 | - | let cP = if ((ab == a)) | |
632 | - | then ar(ad, ah, cN, at, cO, av, aw, ax, ay) | |
633 | - | else aR(ad, ah, as, at, au, av, ay) | |
634 | - | let cQ = cP._1 | |
635 | - | let bM = cP._2 | |
636 | - | let cR = ch(ad, cQ, cJ, cC) | |
637 | - | if ((cR == cR)) | |
649 | + | let cS = cL._1 | |
650 | + | let cT = cL._2 | |
651 | + | let ah = cL._3 | |
652 | + | let cP = cL._4 | |
653 | + | let cU = aZ(bI, ad, e, as, ba, au, bb, aw, ax, ay) | |
654 | + | let cV = cU._1 | |
655 | + | let bO = cU._2 | |
656 | + | let cW = cj(ad, cV, cP, cI) | |
657 | + | if ((cW == cW)) | |
638 | 658 | then { | |
639 | - | let | |
640 | - | let | |
641 | - | let | |
642 | - | let | |
643 | - | $Tuple2(nil, [ | |
659 | + | let bT = cW._4 | |
660 | + | let cB = cW._3 | |
661 | + | let bS = cW._2 | |
662 | + | let cA = cW._1 | |
663 | + | $Tuple2(nil, [cV, cA, cB]) | |
644 | 664 | } | |
645 | 665 | else throw("Strict value is not equal to itself.") | |
646 | 666 | } | |
647 | 667 | ||
648 | 668 | ||
649 | 669 | ||
650 | 670 | @Callable(P) | |
651 | - | func replenishFromLandReadOnly (cS) = $Tuple2(nil, 11111) | |
671 | + | func replenishFromLandReadOnly (cD) = { | |
672 | + | let cX = cC(cD) | |
673 | + | let af = cX._1 | |
674 | + | let ad = cX._2 | |
675 | + | let as = cX._3 | |
676 | + | let ba = cX._4 | |
677 | + | let au = cX._5 | |
678 | + | let bb = cX._6 | |
679 | + | let aw = cX._7 | |
680 | + | let ax = cX._8 | |
681 | + | let ay = cX._9 | |
682 | + | let cF = cX._10 | |
683 | + | let cG = cX._11 | |
684 | + | if ((size(P.payments) != 1)) | |
685 | + | then throw("Wrong payment size") | |
686 | + | else if (if ((an(P.payments[0].assetId) != cF)) | |
687 | + | then true | |
688 | + | else (P.payments[0].amount != cG)) | |
689 | + | then throw("Wrong payment") | |
690 | + | else { | |
691 | + | let cY = if ((ba == cF)) | |
692 | + | then $Tuple2((as + P.payments[0].amount), au) | |
693 | + | else $Tuple2(as, (au + P.payments[0].amount)) | |
694 | + | let cZ = cY._1 | |
695 | + | let da = cY._2 | |
696 | + | let bI = valueOrErrorMessage(getString(this, (A + ad)), "Unknown pool") | |
697 | + | let db = aZ(bI, ad, d, as, ba, au, bb, aw, ax, ay) | |
698 | + | let cV = db._1 | |
699 | + | let bO = db._2 | |
700 | + | nil | |
701 | + | } | |
702 | + | } | |
652 | 703 | ||
653 | 704 | ||
654 | 705 | ||
655 | 706 | @Callable(P) | |
656 | - | func replenish (ad, | |
707 | + | func replenish (ad,cH,cI) = if (if ((100 > cH)) | |
657 | 708 | then true | |
658 | - | else ( | |
709 | + | else (cH > 300)) | |
659 | 710 | then throw("Leverage can't be <100 and >300") | |
660 | 711 | else { | |
661 | - | let | |
662 | - | let | |
663 | - | let | |
664 | - | let | |
665 | - | let aw = | |
666 | - | let ax = | |
667 | - | let ay = | |
668 | - | let | |
669 | - | then if ((an(P.payments[0].assetId) != | |
712 | + | let bI = valueOrErrorMessage(getString(this, (A + ad)), "Pool is not inited") | |
713 | + | let dc = aa(Address(fromBase58String(ad)), bI) | |
714 | + | let ba = dc._1 | |
715 | + | let bb = dc._2 | |
716 | + | let aw = dc._3 | |
717 | + | let ax = dc._4 | |
718 | + | let ay = dc._5 | |
719 | + | let dd = if ((size(P.payments) == 2)) | |
720 | + | then if ((an(P.payments[0].assetId) != ba)) | |
670 | 721 | then throw("Wrong payment asset A") | |
671 | - | else if ((an(P.payments[1].assetId) != | |
722 | + | else if ((an(P.payments[1].assetId) != bb)) | |
672 | 723 | then throw("Wrong payment asset B") | |
673 | - | else $Tuple4(P.payments[0].amount, | |
724 | + | else $Tuple4(P.payments[0].amount, ba, P.payments[1].amount, bb) | |
674 | 725 | else if ((size(P.payments) == 1)) | |
675 | - | then if ((an(P.payments[0].assetId) == | |
676 | - | then $Tuple4(P.payments[0].amount, | |
677 | - | else if ((an(P.payments[0].assetId) == | |
678 | - | then $Tuple4(0, | |
726 | + | then if ((an(P.payments[0].assetId) == ba)) | |
727 | + | then $Tuple4(P.payments[0].amount, ba, 0, bb) | |
728 | + | else if ((an(P.payments[0].assetId) == bb)) | |
729 | + | then $Tuple4(0, ba, P.payments[0].amount, bb) | |
679 | 730 | else throw("Wrong payment") | |
680 | 731 | else throw("One or two payments expected") | |
681 | - | let as = | |
682 | - | let at = | |
683 | - | let au = | |
684 | - | let av = | |
685 | - | let | |
686 | - | if (( | |
732 | + | let as = dd._1 | |
733 | + | let at = dd._2 | |
734 | + | let au = dd._3 | |
735 | + | let av = dd._4 | |
736 | + | let de = ae(ad, toString(P.caller)) | |
737 | + | if ((cH > 100)) | |
687 | 738 | then { | |
688 | - | let | |
739 | + | let cM = ( let Z = invoke(K, "getTWAP60", [at, false], nil) | |
689 | 740 | if ($isInstanceOf(Z, "(Int, Int)")) | |
690 | 741 | then Z | |
691 | 742 | else throw(($getType(Z) + " couldn't be cast to (Int, Int)")))._1 | |
692 | - | let | |
743 | + | let cN = ( let Z = invoke(K, "getTWAP60", [av, false], nil) | |
693 | 744 | if ($isInstanceOf(Z, "(Int, Int)")) | |
694 | 745 | then Z | |
695 | 746 | else throw(($getType(Z) + " couldn't be cast to (Int, Int)")))._1 | |
696 | - | let | |
697 | - | let | |
698 | - | let | |
699 | - | let | |
700 | - | let Z = invoke(this, "createNewRequest", [ | |
747 | + | let cO = (fraction(cM, as, pow(10, 0, ap(at), 0, 0, DOWN)) + fraction(cN, au, pow(10, 0, ap(av), 0, 0, DOWN))) | |
748 | + | let cP = fraction(cO, (cH - 100), 100) | |
749 | + | let cE = makeString([toString(P.caller), ad, toString(as), at, toString(au), av, toString(aw), toString(ax), ay, cI, toString(cP)], ",") | |
750 | + | let cQ = { | |
751 | + | let Z = invoke(this, "createNewRequest", [cE], nil) | |
701 | 752 | if ($isInstanceOf(Z, "Int")) | |
702 | 753 | then Z | |
703 | 754 | else throw(($getType(Z) + " couldn't be cast to Int")) | |
704 | 755 | } | |
705 | - | if (( | |
756 | + | if ((cQ == cQ)) | |
706 | 757 | then { | |
707 | - | let | |
708 | - | let | |
709 | - | if (( | |
758 | + | let cR = [((toString(P.caller) + "_") + toString(de)), ay, cI, cP, toString(this), "replenishFromLand", toString(valueOrErrorMessage(cQ, "Can't create new request"))] | |
759 | + | let bj = reentrantInvoke(am(), "flashPosition", cR, nil) | |
760 | + | if ((bj == bj)) | |
710 | 761 | then nil | |
711 | 762 | else throw("Strict value is not equal to itself.") | |
712 | 763 | } | |
713 | 764 | else throw("Strict value is not equal to itself.") | |
714 | 765 | } | |
715 | 766 | else { | |
716 | - | let cW = if ((ab == a)) | |
717 | - | then ar(ad, e, as, at, au, av, aw, ax, ay) | |
718 | - | else aR(ad, e, as, at, au, av, ay) | |
719 | - | let cQ = cW._1 | |
720 | - | let bM = cW._2 | |
721 | - | aZ(ad, toString(P.caller), cQ, bM, cV, ay, ab) | |
767 | + | let df = aZ(bI, ad, e, as, ba, au, bb, aw, ax, ay) | |
768 | + | let cV = df._1 | |
769 | + | let bO = df._2 | |
770 | + | bc(ad, toString(P.caller), cV, bO, de, ay, bI) | |
722 | 771 | } | |
723 | 772 | } | |
724 | 773 | ||
725 | 774 | ||
726 | 775 | ||
727 | 776 | @Callable(P) | |
728 | - | func replenishFromLand (cS) = { | |
729 | - | let cK = split(valueOrErrorMessage(getString(this, (cS + y)), ("No request with id " + cS)), ",") | |
777 | + | func replenishFromLand (cD) = { | |
778 | + | let dg = cC(cD) | |
779 | + | let af = dg._1 | |
780 | + | let ad = dg._2 | |
781 | + | let as = dg._3 | |
782 | + | let ba = dg._4 | |
783 | + | let au = dg._5 | |
784 | + | let bb = dg._6 | |
785 | + | let aw = dg._7 | |
786 | + | let ax = dg._8 | |
787 | + | let ay = dg._9 | |
788 | + | let cF = dg._10 | |
789 | + | let cG = dg._11 | |
730 | 790 | if ((size(P.payments) != 1)) | |
731 | 791 | then throw("Wrong payment size") | |
732 | - | else if (if ((an(P.payments[0].assetId) != | |
792 | + | else if (if ((an(P.payments[0].assetId) != cF)) | |
733 | 793 | then true | |
734 | - | else (P.payments[0].amount != | |
794 | + | else (P.payments[0].amount != cG)) | |
735 | 795 | then throw("Wrong payment") | |
736 | 796 | else { | |
737 | - | let as = if ((cK[4] == an(P.payments[0].assetId))) | |
738 | - | then (parseIntValue(cK[3]) + P.payments[0].amount) | |
739 | - | else parseIntValue(cK[3]) | |
740 | - | let au = if ((cK[6] == an(P.payments[0].assetId))) | |
741 | - | then (parseIntValue(cK[5]) + P.payments[0].amount) | |
742 | - | else parseIntValue(cK[3]) | |
743 | - | let ad = cK[2] | |
744 | - | let af = cK[1] | |
745 | - | let ay = cK[9] | |
746 | - | let bb = parseIntValue(cK[12]) | |
747 | - | let cX = if ((cK[0] == a)) | |
748 | - | then ar(ad, d, as, cK[4], au, cK[6], parseIntValue(cK[7]), parseIntValue(cK[8]), ay) | |
749 | - | else if ((cK[0] == b)) | |
750 | - | then aR(ad, d, as, cK[4], au, cK[6], ay) | |
751 | - | else throw("Wrong request type") | |
752 | - | let cQ = cX._1 | |
753 | - | let bM = cX._2 | |
754 | - | let cY = [IntegerEntry((((((cK[2] + "_") + cK[1]) + "_") + cK[12]) + p), P.payments[0].amount), StringEntry((((((cK[2] + "_") + cK[1]) + "_") + cK[12]) + q), cK[10])] | |
755 | - | let cZ = aZ(ad, af, cQ, bM, bb, ay, cK[0]) | |
756 | - | $Tuple2(((cZ ++ cY) :+ DeleteEntry((cS + y))), cQ) | |
797 | + | let dh = if ((ba == cF)) | |
798 | + | then $Tuple2((as + P.payments[0].amount), au) | |
799 | + | else $Tuple2(as, (au + P.payments[0].amount)) | |
800 | + | let cZ = dh._1 | |
801 | + | let da = dh._2 | |
802 | + | let bI = valueOrErrorMessage(getString(this, (A + ad)), "Unknown pool") | |
803 | + | let di = aZ(bI, ad, d, as, ba, au, bb, aw, ax, ay) | |
804 | + | let cV = di._1 | |
805 | + | let bO = di._2 | |
806 | + | let be = ae(ad, toString(P.caller)) | |
807 | + | let dj = [IntegerEntry((((((ad + "_") + af) + "_") + toString(be)) + p), cG), StringEntry((((((ad + "_") + af) + "_") + toString(be)) + q), cF)] | |
808 | + | let dk = bc(ad, af, cV, bO, be, ay, bI) | |
809 | + | $Tuple2(((dk ++ dj) :+ DeleteEntry((cD + y))), cV) | |
757 | 810 | } | |
758 | 811 | } | |
759 | 812 | ||
760 | 813 | ||
761 | 814 | ||
762 | 815 | @Callable(P) | |
763 | - | func withdraw (ad, | |
816 | + | func withdraw (ad,dl) = { | |
764 | 817 | let af = toString(P.caller) | |
765 | - | let | |
766 | - | let | |
767 | - | let | |
768 | - | let | |
769 | - | let | |
770 | - | let | |
771 | - | let | |
772 | - | let | |
773 | - | let | |
818 | + | let dm = valueOrErrorMessage(getInteger(this, (((((ad + "_") + af) + "_") + toString(dl)) + o)), "Unknown position") | |
819 | + | let dn = getIntegerValue(this, (((((ad + "_") + af) + "_") + toString(dl)) + s)) | |
820 | + | let do = getIntegerValue(this, (ad + u)) | |
821 | + | let dp = ac(ad) | |
822 | + | let ck = (dm + fraction(dm, (do - dn), g)) | |
823 | + | let dq = Address(fromBase58String(af)) | |
824 | + | let cP = getIntegerValue(this, (((((ad + "_") + af) + "_") + toString(dl)) + p)) | |
825 | + | let cm = getStringValue(this, (((((ad + "_") + af) + "_") + toString(dl)) + q)) | |
826 | + | let cl = if ((cP > 0)) | |
774 | 827 | then { | |
775 | - | let Z = invoke(am(), "getAssetDebt", [false, ((((ad + "_") + af) + "_") + toString( | |
828 | + | let Z = invoke(am(), "getAssetDebt", [false, ((((ad + "_") + af) + "_") + toString(dl)), cm], nil) | |
776 | 829 | if ($isInstanceOf(Z, "Int")) | |
777 | 830 | then Z | |
778 | 831 | else throw(($getType(Z) + " couldn't be cast to Int")) | |
779 | 832 | } | |
780 | 833 | else 0 | |
781 | - | let | |
782 | - | if (( | |
834 | + | let dr = cj(ad, ck, cl, cm) | |
835 | + | if ((dr == dr)) | |
783 | 836 | then { | |
784 | - | let | |
785 | - | let | |
786 | - | let | |
787 | - | let | |
788 | - | let | |
789 | - | then invoke(am(), "repayFor", [((af + "_") + toString( | |
837 | + | let bT = dr._4 | |
838 | + | let cB = dr._3 | |
839 | + | let bS = dr._2 | |
840 | + | let cA = dr._1 | |
841 | + | let ds = if ((cl > 0)) | |
842 | + | then invoke(am(), "repayFor", [((af + "_") + toString(dl))], [AttachedPayment(ao(cm), cl)]) | |
790 | 843 | else 0 | |
791 | - | if (( | |
792 | - | then [DeleteEntry((((((ad + "_") + af) + "_") + toString( | |
844 | + | if ((ds == ds)) | |
845 | + | then [DeleteEntry((((((ad + "_") + af) + "_") + toString(dl)) + o)), DeleteEntry((((((ad + "_") + af) + "_") + toString(dl)) + s)), IntegerEntry((ad + t), (dp - ck)), ScriptTransfer(dq, cA, ao(bS)), ScriptTransfer(dq, cB, ao(bT))] | |
793 | 846 | else throw("Strict value is not equal to itself.") | |
794 | 847 | } | |
795 | 848 | else throw("Strict value is not equal to itself.") | |
796 | 849 | } | |
797 | 850 | ||
798 | 851 | ||
799 | 852 | ||
800 | 853 | @Callable(P) | |
801 | - | func createNewRequest ( | |
802 | - | let | |
803 | - | $Tuple2([StringEntry((toString( | |
854 | + | func createNewRequest (dt) = valueOrElse(O(P), { | |
855 | + | let cQ = (valueOrElse(getInteger(this, z), 0) + 1) | |
856 | + | $Tuple2([StringEntry((toString(cQ) + y), dt), IntegerEntry(z, cQ)], cQ) | |
804 | 857 | }) | |
805 | 858 | ||
806 | 859 | ||
807 | 860 | ||
808 | 861 | @Callable(P) | |
809 | - | func capitalizeExKeeper (ad,ab, | |
810 | - | let | |
811 | - | then | |
862 | + | func capitalizeExKeeper (ad,ab,du,dv,dw,bp,bq,br,bs,bt,bu,bv) = { | |
863 | + | let dx = if (dw) | |
864 | + | then bh(ab, ad) | |
812 | 865 | else { | |
813 | - | let | |
866 | + | let dy = if ((ab == a)) | |
814 | 867 | then M | |
815 | 868 | else N | |
816 | - | $Tuple2( | |
869 | + | $Tuple2(dv, dy) | |
817 | 870 | } | |
818 | - | let | |
819 | - | let | |
820 | - | let | |
821 | - | let aG = ( | |
822 | - | let | |
871 | + | let dz = dx._1 | |
872 | + | let dy = dx._2 | |
873 | + | let dA = bl(du, dv, dy, bp, bq, br, bs, bt, bu, bv) | |
874 | + | let aG = (dz - dv) | |
875 | + | let dB = if ((aG > 0)) | |
823 | 876 | then [IntegerEntry((ad + B), (aG + valueOrElse(getInteger(this, (ad + B)), 0)))] | |
824 | 877 | else nil | |
825 | - | ( | |
878 | + | (bH(ad, ab, du, dA) ++ dB) | |
826 | 879 | } | |
827 | 880 | ||
828 | 881 | ||
829 | 882 | ||
830 | 883 | @Callable(P) | |
831 | - | func capitalizeExPazzle (ad,ab, | |
832 | - | let | |
833 | - | then | |
884 | + | func capitalizeExPazzle (ad,ab,du,dv,dw,by,bz,bv) = { | |
885 | + | let dC = if (dw) | |
886 | + | then bh(ab, ad) | |
834 | 887 | else { | |
835 | - | let | |
888 | + | let dy = if ((ab == a)) | |
836 | 889 | then M | |
837 | 890 | else N | |
838 | - | $Tuple2( | |
891 | + | $Tuple2(dv, dy) | |
839 | 892 | } | |
840 | - | let | |
841 | - | let | |
842 | - | let | |
843 | - | let aG = ( | |
844 | - | let | |
893 | + | let dz = dC._1 | |
894 | + | let dy = dC._2 | |
895 | + | let dA = bx(du, dv, dy, by, bz, bv) | |
896 | + | let aG = (dz - dv) | |
897 | + | let dB = if ((aG > 0)) | |
845 | 898 | then [IntegerEntry((ad + B), (aG + valueOrElse(getInteger(this, (ad + B)), 0)))] | |
846 | 899 | else nil | |
847 | - | ( | |
900 | + | (bH(ad, ab, du, dA) ++ dB) | |
848 | 901 | } | |
849 | 902 | ||
850 | 903 | ||
851 | 904 | ||
852 | 905 | @Callable(P) | |
853 | - | func capitalizeExSwopFi (ad,ab, | |
854 | - | let | |
855 | - | then | |
906 | + | func capitalizeExSwopFi (ad,ab,du,dv,dw,bB,bC,bD,bE,bF,bG,bv) = { | |
907 | + | let dD = if (dw) | |
908 | + | then bh(ab, ad) | |
856 | 909 | else { | |
857 | - | let | |
910 | + | let dy = if ((ab == a)) | |
858 | 911 | then M | |
859 | 912 | else N | |
860 | - | $Tuple2( | |
913 | + | $Tuple2(dv, dy) | |
861 | 914 | } | |
862 | - | let | |
863 | - | let | |
864 | - | let | |
865 | - | let aG = ( | |
866 | - | let | |
915 | + | let dz = dD._1 | |
916 | + | let dy = dD._2 | |
917 | + | let dA = bA(du, dv, dy, bB, bC, bD, bE, bF, bG, bv) | |
918 | + | let aG = (dz - dv) | |
919 | + | let dB = if ((aG > 0)) | |
867 | 920 | then [IntegerEntry((ad + B), (aG + valueOrElse(getInteger(this, (ad + B)), 0)))] | |
868 | 921 | else nil | |
869 | - | ( | |
922 | + | (bH(ad, ab, du, dA) ++ dB) | |
870 | 923 | } | |
871 | 924 | ||
872 | 925 | ||
873 | 926 | ||
874 | 927 | @Callable(P) | |
875 | - | func initNewPool (ab,W, | |
928 | + | func initNewPool (ab,W,dE,dF,dG) = if (if ((ab != a)) | |
876 | 929 | then (ab != b) | |
877 | 930 | else false) | |
878 | 931 | then throw("Wrong type") | |
879 | - | else [IntegerEntry((W + v), | |
932 | + | else [IntegerEntry((W + v), dE), IntegerEntry((W + w), dF), IntegerEntry((W + x), dG), IntegerEntry((W + u), 0), StringEntry((A + W), ab)] | |
880 | 933 | ||
881 | 934 | ||
882 | - | @Verifier( | |
883 | - | func | |
935 | + | @Verifier(dH) | |
936 | + | func dI () = sigVerify(dH.bodyBytes, dH.proofs[0], dH.senderPublicKey) | |
884 | 937 |
github/deemru/w8io/026f985 194.27 ms ◑