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