tx · HPTgsRShEbRWtJ58XCMatJAsh6Rj5ggKzNfUN1ML5s7N 3MzKSdTH2jFbypLsoNfrH7QgkzSbx3EYwCA: -0.03500000 Waves 2022.09.14 13:27 [2228646] smart account 3MzKSdTH2jFbypLsoNfrH7QgkzSbx3EYwCA > SELF 0.00000000 Waves
{ "type": 13, "id": "HPTgsRShEbRWtJ58XCMatJAsh6Rj5ggKzNfUN1ML5s7N", "fee": 3500000, "feeAssetId": null, "timestamp": 1663151277650, "version": 2, "chainId": 84, "sender": "3MzKSdTH2jFbypLsoNfrH7QgkzSbx3EYwCA", "senderPublicKey": "35yd3qw1gxKDxKwGAykHN9fANbXNWwseaUwbWDj24o3x", "proofs": [ "KEXDYSEggKVjDyh8iPRSzFLDn5DB3EtvhvAm6P2N7W9WVWeGKJocmT1EyXhoCRMWb8n7QUPymPaN5W5M7duuKK5" ], "script": "base64:BgKTAQgCEgMKAQgSAwoBCBIAEgQKAgEEEgcKBQEBAQEEEgQKAgEEEgMKAQESABIHCgUBAQEIARIECgIIARIECgIBARIDCgEBEgYKBAEBCAESBAoCCAgSBAoCCAgSBAoCCAESABIDCgEIEgUKAwEBARIECgIIARIECgIBARIECgIICBILCgkIAQECAQIIBAQSBgoECAgBCFIABnNjYWxlOACAwtcvAAxzY2FsZThCaWdJbnQJALYCAQCAwtcvAAdzY2FsZTE4CQC2AgEAgICQu7rWrfANAAp6ZXJvQmlnSW50CQC2AgEAAAAJb25lQmlnSW50CQC2AgEAAQAKc2xpcHBhZ2U0RAkAtgIBCQBlAgUGc2NhbGU4CQBpAgkAaAIFBnNjYWxlOAABBQZzY2FsZTgABUFtdWx0AgMxMDAABURjb252AgExAANTRVACAl9fAAVFTVBUWQIAAApQb29sQWN0aXZlAAEAClBvb2xQdXREaXMAAgAOUG9vbE1hdGNoZXJEaXMAAwAMUG9vbFNodXRkb3duAAQADmlkeFBvb2xBZGRyZXNzAAEACWlkeFBvb2xTdAACAAlpZHhMUEFzSWQAAwAJaWR4QW1Bc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QkBHGtleUFsbG93ZWRMcFN0YWJsZVNjcmlwdEhhc2gABAtjdXJyZW50SGFzaAkA8QcBBQR0aGlzAwMJAAACBQthbGxvd2VkSGFzaAUHbmV3SGFzaAkBAiE9AgULY3VycmVudEhhc2gFB25ld0hhc2gHBgkA9AMDCAUCdHgJYm9keUJ5dGVzCQCRAwIIBQJ0eAZwcm9vZnMAAAUPdGFyZ2V0UHVibGljS2V5CQD0AwMIBQJ0eAlib2R5Qnl0ZXMJAJEDAggFAnR4BnByb29mcwAABQ90YXJnZXRQdWJsaWNLZXlqiZTE", "height": 2228646, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 6F88CMmmrNteAsSwkECQd7zmXLmmB6dVTMC1XFDPdo4g Next: D4S3UkgcwYno1rvAUZxQ7M4H8M7MissbN4xZ7kRh1eFh Diff:
Old | New | Differences | |
---|---|---|---|
273 | 273 | } | |
274 | 274 | ||
275 | 275 | ||
276 | - | func ch (bJ,bi,ci,cj,ck,cl,bM,cm,cn,co,cp,cq) = { | |
276 | + | func ch (bJ,bi,ci,cj,ck,cl,bM,cm,cn,co,cp,cq,cr) = { | |
277 | 277 | let bz = aC() | |
278 | 278 | let bN = fromBase58String(bz[q]) | |
279 | - | let | |
280 | - | let | |
281 | - | let | |
282 | - | let | |
283 | - | let | |
284 | - | let | |
279 | + | let cs = bz[r] | |
280 | + | let ct = bz[s] | |
281 | + | let cu = bz[v] | |
282 | + | let cv = bz[w] | |
283 | + | let cw = parseIntValue(bz[t]) | |
284 | + | let cx = parseIntValue(bz[u]) | |
285 | 285 | let bS = bz[p] | |
286 | - | let | |
286 | + | let cy = valueOrErrorMessage(assetInfo(bN), "Wr lp as").quantity | |
287 | 287 | let bU = if (cm) | |
288 | - | then ba(cr) | |
289 | - | else if (if (co) | |
290 | - | then (cq == cr) | |
291 | - | else false) | |
292 | - | then (ba(cr) - cp) | |
293 | - | else if (co) | |
294 | - | then ba(cr) | |
295 | - | else (ba(cr) - ci) | |
296 | - | let bW = if (cm) | |
297 | 288 | then ba(cs) | |
298 | 289 | else if (if (co) | |
299 | - | then ( | |
290 | + | then (cr == cs) | |
300 | 291 | else false) | |
301 | - | then (ba(cs) - | |
292 | + | then (ba(cs) - cq) | |
302 | 293 | else if (co) | |
303 | 294 | then ba(cs) | |
304 | - | else (ba(cs) - ck) | |
305 | - | let cy = B(ci, cv) | |
306 | - | let cz = B(ck, cw) | |
307 | - | let cA = bc(cz, cy) | |
308 | - | let bV = B(bU, cv) | |
309 | - | let bX = B(bW, cw) | |
310 | - | let cB = if ((cx == 0)) | |
295 | + | else (ba(cs) - ci) | |
296 | + | let bW = if (cm) | |
297 | + | then ba(ct) | |
298 | + | else if (if (co) | |
299 | + | then (cr == ct) | |
300 | + | else false) | |
301 | + | then (ba(ct) - cq) | |
302 | + | else if (co) | |
303 | + | then ba(ct) | |
304 | + | else (ba(ct) - ck) | |
305 | + | let cz = B(ci, cw) | |
306 | + | let cA = B(ck, cx) | |
307 | + | let cB = bc(cA, cz) | |
308 | + | let bV = B(bU, cw) | |
309 | + | let bX = B(bW, cx) | |
310 | + | let cC = if ((cy == 0)) | |
311 | 311 | then { | |
312 | 312 | let bY = d | |
313 | - | let | |
314 | - | let bD = pow(( | |
315 | - | $Tuple5(E(bD, a), E( | |
313 | + | let cD = d | |
314 | + | let bD = pow((cz * cA), 0, toBigInt(5), 1, 0, DOWN) | |
315 | + | $Tuple5(E(bD, a), E(cz, cw), E(cA, cx), bc((bX + cA), (bV + cz)), cD) | |
316 | 316 | } | |
317 | 317 | else { | |
318 | 318 | let bY = bc(bX, bV) | |
319 | - | let | |
320 | - | let | |
321 | - | if (if (( | |
322 | - | then ( | |
319 | + | let cE = fraction(L((bY - cB)), c, bY) | |
320 | + | let cD = B(bi, a) | |
321 | + | if (if (if (cp) | |
322 | + | then (bY != d) | |
323 | 323 | else false) | |
324 | - | then throw(((("Price slippage " + toString(cD)) + " > ") + toString(cC))) | |
324 | + | then (cE > cD) | |
325 | + | else false) | |
326 | + | then throw(((("Price slippage " + toString(cE)) + " > ") + toString(cD))) | |
325 | 327 | else { | |
326 | - | let | |
327 | - | let | |
328 | - | let | |
329 | - | let | |
330 | - | then $Tuple2( | |
331 | - | else $Tuple2( | |
332 | - | let | |
333 | - | let | |
334 | - | let bD = fraction( | |
335 | - | $Tuple5(E(bD, a), E( | |
328 | + | let cF = B(cy, a) | |
329 | + | let cG = fraction(cz, bY, c) | |
330 | + | let cH = fraction(cA, c, bY) | |
331 | + | let cI = if ((cG > cA)) | |
332 | + | then $Tuple2(cH, cA) | |
333 | + | else $Tuple2(cz, cG) | |
334 | + | let cJ = cI._1 | |
335 | + | let cK = cI._2 | |
336 | + | let bD = fraction(cF, cK, bX) | |
337 | + | $Tuple5(E(bD, a), E(cJ, cw), E(cK, cx), bY, cD) | |
336 | 338 | } | |
337 | 339 | } | |
338 | - | let | |
339 | - | let | |
340 | - | let | |
341 | - | let bZ = E( | |
342 | - | let | |
343 | - | if ((0 >= | |
340 | + | let cL = cC._1 | |
341 | + | let cM = cC._2 | |
342 | + | let cN = cC._3 | |
343 | + | let bZ = E(cC._4, a) | |
344 | + | let cO = E(cC._5, a) | |
345 | + | if ((0 >= cL)) | |
344 | 346 | then throw("LP <= 0") | |
345 | 347 | else { | |
346 | - | let | |
348 | + | let cP = if (!(cn)) | |
347 | 349 | then 0 | |
348 | - | else | |
349 | - | let | |
350 | - | let | |
351 | - | let | |
352 | - | then ( | |
350 | + | else cL | |
351 | + | let cQ = (ci - cM) | |
352 | + | let cR = (ck - cN) | |
353 | + | let cS = if (if (co) | |
354 | + | then (cr == cs) | |
353 | 355 | else false) | |
354 | - | then $Tuple2( | |
356 | + | then $Tuple2(cq, 0) | |
355 | 357 | else if (if (co) | |
356 | - | then ( | |
358 | + | then (cr == ct) | |
357 | 359 | else false) | |
358 | - | then $Tuple2(0, | |
359 | - | else $Tuple2( | |
360 | - | let | |
361 | - | let | |
362 | - | let | |
363 | - | $Tuple13( | |
360 | + | then $Tuple2(0, cq) | |
361 | + | else $Tuple2(cM, cN) | |
362 | + | let cT = cS._1 | |
363 | + | let cU = cS._2 | |
364 | + | let cV = [IntegerEntry(P(), bZ), IntegerEntry(Q(height, lastBlock.timestamp), bZ), StringEntry(T(bM, bJ), aL(cT, cU, cP, bZ, bi, cO, height, lastBlock.timestamp, cQ, cR))] | |
365 | + | $Tuple13(cL, cP, bZ, bU, bW, cy, bN, bS, cV, cQ, cR, cj, cl) | |
364 | 366 | } | |
365 | 367 | } | |
366 | 368 | ||
367 | 369 | ||
368 | - | func | |
370 | + | func cW (cX) = { | |
369 | 371 | let bz = aC() | |
370 | - | let | |
371 | - | let | |
372 | + | let cY = bz[r] | |
373 | + | let cZ = bz[s] | |
372 | 374 | let bS = parseIntValue(bz[p]) | |
373 | 375 | let bA = parseIntValue(bz[t]) | |
374 | 376 | let bB = parseIntValue(bz[u]) | |
375 | - | let cZ = ba(cX) | |
376 | 377 | let da = ba(cY) | |
377 | - | let bY = if ((cW.orderType == Buy)) | |
378 | - | then bq(bA, bB, (cZ + cW.amount), da) | |
379 | - | else bq(bA, bB, (cZ - cW.amount), da) | |
378 | + | let db = ba(cZ) | |
379 | + | let bY = if ((cX.orderType == Buy)) | |
380 | + | then bq(bA, bB, (da + cX.amount), db) | |
381 | + | else bq(bA, bB, (da - cX.amount), db) | |
380 | 382 | let bZ = E(bY, a) | |
381 | 383 | if (if (if (aA()) | |
382 | 384 | then true | |
385 | 387 | else (bS == n)) | |
386 | 388 | then throw("Admin blocked") | |
387 | 389 | else { | |
388 | - | let | |
389 | - | let | |
390 | + | let dc = cX.assetPair.amountAsset | |
391 | + | let dd = if ((dc == unit)) | |
390 | 392 | then "WAVES" | |
391 | - | else toBase58String(value( | |
392 | - | let | |
393 | - | let | |
393 | + | else toBase58String(value(dc)) | |
394 | + | let de = cX.assetPair.priceAsset | |
395 | + | let df = if ((de == unit)) | |
394 | 396 | then "WAVES" | |
395 | - | else toBase58String(value( | |
396 | - | if (if (( | |
397 | + | else toBase58String(value(de)) | |
398 | + | if (if ((dd != cY)) | |
397 | 399 | then true | |
398 | - | else ( | |
400 | + | else (df != cZ)) | |
399 | 401 | then throw("Wr assets") | |
400 | 402 | else { | |
401 | - | let | |
402 | - | let | |
403 | - | let | |
404 | - | let | |
405 | - | then (bZ >= | |
406 | - | else ( | |
403 | + | let dg = cX.price | |
404 | + | let cx = fraction(a, bB, bA) | |
405 | + | let dh = H(dg, a, cx) | |
406 | + | let di = if ((cX.orderType == Buy)) | |
407 | + | then (bZ >= dh) | |
408 | + | else (dh >= bZ) | |
407 | 409 | true | |
408 | 410 | } | |
409 | 411 | } | |
410 | 412 | } | |
411 | 413 | ||
412 | 414 | ||
413 | - | func | |
415 | + | func dj (dk) = if ((size(dk.payments) != 1)) | |
414 | 416 | then throw("1 pmnt exp") | |
415 | 417 | else { | |
416 | - | let | |
417 | - | let bK = value( | |
418 | - | let | |
419 | - | let | |
420 | - | let ce = | |
421 | - | let cf = | |
422 | - | let bS = parseIntValue( | |
423 | - | let cg = | |
418 | + | let dl = value(dk.payments[0]) | |
419 | + | let bK = value(dl.assetId) | |
420 | + | let cq = dl.amount | |
421 | + | let cC = bI(toBase58String(dk.transactionId), toBase58String(bK), cq, dk.caller) | |
422 | + | let ce = cC._1 | |
423 | + | let cf = cC._2 | |
424 | + | let bS = parseIntValue(cC._9) | |
425 | + | let cg = cC._10 | |
424 | 426 | if (if (aA()) | |
425 | 427 | then true | |
426 | 428 | else (bS == n)) | |
427 | 429 | then throw(("Admin blocked: " + toString(bS))) | |
428 | - | else $Tuple5(ce, cf, | |
430 | + | else $Tuple5(ce, cf, cq, bK, cg) | |
429 | 431 | } | |
430 | 432 | ||
431 | 433 | ||
432 | - | func | |
433 | - | let | |
434 | - | let bS = parseIntValue( | |
434 | + | func dm (ac,V,dn,do,bi,cn,co,cp,cq,cr) = { | |
435 | + | let cC = ch(V, bi, value(dn).amount, value(dn).assetId, value(do).amount, value(do).assetId, ac, false, cn, co, cp, cq, cr) | |
436 | + | let bS = parseIntValue(cC._8) | |
435 | 437 | if (if (if (aA()) | |
436 | 438 | then true | |
437 | 439 | else (bS == l)) | |
438 | 440 | then true | |
439 | 441 | else (bS == n)) | |
440 | 442 | then throw(("Blocked:" + toString(bS))) | |
441 | - | else | |
443 | + | else cC | |
442 | 444 | } | |
443 | 445 | ||
444 | 446 | ||
445 | - | func | |
447 | + | func dp () = { | |
446 | 448 | let as = getString(N()) | |
447 | 449 | if ($isInstanceOf(as, "String")) | |
448 | 450 | then { | |
449 | - | let | |
450 | - | fromBase58String( | |
451 | + | let dq = as | |
452 | + | fromBase58String(dq) | |
451 | 453 | } | |
452 | 454 | else if ($isInstanceOf(as, "Unit")) | |
453 | 455 | then unit | |
455 | 457 | } | |
456 | 458 | ||
457 | 459 | ||
458 | - | func | |
460 | + | func dr () = { | |
459 | 461 | let as = getString(O()) | |
460 | 462 | if ($isInstanceOf(as, "String")) | |
461 | 463 | then { | |
462 | - | let | |
463 | - | fromBase58String( | |
464 | + | let dq = as | |
465 | + | fromBase58String(dq) | |
464 | 466 | } | |
465 | 467 | else if ($isInstanceOf(as, "Unit")) | |
466 | 468 | then unit | |
468 | 470 | } | |
469 | 471 | ||
470 | 472 | ||
471 | - | let | |
473 | + | let ds = throw("Permission denied") | |
472 | 474 | ||
473 | - | func | |
474 | - | let as = | |
475 | + | func dt (dk) = { | |
476 | + | let as = dp() | |
475 | 477 | if ($isInstanceOf(as, "ByteVector")) | |
476 | 478 | then { | |
477 | - | let | |
478 | - | if (( | |
479 | + | let du = as | |
480 | + | if ((dk.callerPublicKey == du)) | |
479 | 481 | then true | |
480 | - | else | |
482 | + | else ds | |
481 | 483 | } | |
482 | 484 | else if ($isInstanceOf(as, "Unit")) | |
483 | - | then if (( | |
485 | + | then if ((dk.caller == this)) | |
484 | 486 | then true | |
485 | - | else | |
487 | + | else ds | |
486 | 488 | else throw("Match error") | |
487 | 489 | } | |
488 | 490 | ||
489 | 491 | ||
490 | - | @Callable( | |
492 | + | @Callable(dk) | |
491 | 493 | func constructor (M) = { | |
492 | - | let | |
493 | - | if (( | |
494 | + | let dv = dt(dk) | |
495 | + | if ((dv == dv)) | |
494 | 496 | then [StringEntry(M(), M)] | |
495 | 497 | else throw("Strict value is not equal to itself.") | |
496 | 498 | } | |
497 | 499 | ||
498 | 500 | ||
499 | 501 | ||
500 | - | @Callable( | |
501 | - | func setManager ( | |
502 | - | let | |
503 | - | if (( | |
502 | + | @Callable(dk) | |
503 | + | func setManager (dw) = { | |
504 | + | let dv = dt(dk) | |
505 | + | if ((dv == dv)) | |
504 | 506 | then { | |
505 | - | let | |
506 | - | if (( | |
507 | - | then [StringEntry(O(), | |
507 | + | let dx = fromBase58String(dw) | |
508 | + | if ((dx == dx)) | |
509 | + | then [StringEntry(O(), dw)] | |
508 | 510 | else throw("Strict value is not equal to itself.") | |
509 | 511 | } | |
510 | 512 | else throw("Strict value is not equal to itself.") | |
512 | 514 | ||
513 | 515 | ||
514 | 516 | ||
515 | - | @Callable( | |
517 | + | @Callable(dk) | |
516 | 518 | func confirmManager () = { | |
517 | - | let bH = | |
518 | - | let | |
519 | + | let bH = dr() | |
520 | + | let dy = if (isDefined(bH)) | |
519 | 521 | then true | |
520 | 522 | else throw("No pending manager") | |
521 | - | if (( | |
523 | + | if ((dy == dy)) | |
522 | 524 | then { | |
523 | - | let | |
525 | + | let dz = if ((dk.callerPublicKey == value(bH))) | |
524 | 526 | then true | |
525 | 527 | else throw("You are not pending manager") | |
526 | - | if (( | |
528 | + | if ((dz == dz)) | |
527 | 529 | then [StringEntry(N(), toBase58String(value(bH))), DeleteEntry(O())] | |
528 | 530 | else throw("Strict value is not equal to itself.") | |
529 | 531 | } | |
532 | 534 | ||
533 | 535 | ||
534 | 536 | ||
535 | - | @Callable( | |
536 | - | func put ( | |
537 | - | let | |
538 | - | let | |
539 | - | let | |
540 | - | if ((0 > | |
537 | + | @Callable(dk) | |
538 | + | func put (dA,dB) = { | |
539 | + | let dC = aG() | |
540 | + | let dD = valueOrErrorMessage(addressFromString(dC[x]), "Wr st addr") | |
541 | + | let dE = valueOrErrorMessage(addressFromString(dC[y]), "Wr sl addr") | |
542 | + | if ((0 > dA)) | |
541 | 543 | then throw("Wrong slippage") | |
542 | - | else if ((size( | |
544 | + | else if ((size(dk.payments) != 2)) | |
543 | 545 | then throw("2 pmnts expd") | |
544 | 546 | else { | |
545 | - | let | |
546 | - | let | |
547 | - | let | |
548 | - | let cg = | |
549 | - | let | |
550 | - | let | |
551 | - | let bO = | |
552 | - | let bP = | |
553 | - | let | |
554 | - | if (( | |
547 | + | let dF = dm(toString(dk.caller), toBase58String(dk.transactionId), AttachedPayment(value(dk.payments[0]).assetId, value(dk.payments[0]).amount), dk.payments[1], dA, true, false, true, 0, "") | |
548 | + | let cP = dF._2 | |
549 | + | let dG = dF._7 | |
550 | + | let cg = dF._9 | |
551 | + | let cQ = dF._10 | |
552 | + | let cR = dF._11 | |
553 | + | let bO = dF._12 | |
554 | + | let bP = dF._13 | |
555 | + | let cC = invoke(ay, "emit", [cP], nil) | |
556 | + | if ((cC == cC)) | |
555 | 557 | then { | |
556 | - | let | |
557 | - | let as = | |
558 | + | let dH = { | |
559 | + | let as = cC | |
558 | 560 | if ($isInstanceOf(as, "Address")) | |
559 | 561 | then { | |
560 | - | let | |
561 | - | invoke( | |
562 | + | let dI = as | |
563 | + | invoke(dI, "emit", [cP], nil) | |
562 | 564 | } | |
563 | 565 | else unit | |
564 | 566 | } | |
565 | - | if (( | |
567 | + | if ((dH == dH)) | |
566 | 568 | then { | |
567 | - | let | |
568 | - | then invoke( | |
569 | + | let dJ = if ((cQ > 0)) | |
570 | + | then invoke(dE, "put", nil, [AttachedPayment(bO, cQ)]) | |
569 | 571 | else nil | |
570 | - | if (( | |
572 | + | if ((dJ == dJ)) | |
571 | 573 | then { | |
572 | - | let | |
573 | - | then invoke( | |
574 | + | let dK = if ((cR > 0)) | |
575 | + | then invoke(dE, "put", nil, [AttachedPayment(bP, cR)]) | |
574 | 576 | else nil | |
575 | - | if (( | |
577 | + | if ((dK == dK)) | |
576 | 578 | then { | |
577 | - | let | |
579 | + | let dL = if (dB) | |
578 | 580 | then { | |
579 | - | let | |
580 | - | if (( | |
581 | + | let dM = invoke(dD, "stake", nil, [AttachedPayment(dG, cP)]) | |
582 | + | if ((dM == dM)) | |
581 | 583 | then nil | |
582 | 584 | else throw("Strict value is not equal to itself.") | |
583 | 585 | } | |
584 | - | else [ScriptTransfer( | |
585 | - | (cg ++ | |
586 | + | else [ScriptTransfer(dk.caller, cP, dG)] | |
587 | + | (cg ++ dL) | |
586 | 588 | } | |
587 | 589 | else throw("Strict value is not equal to itself.") | |
588 | 590 | } | |
596 | 598 | ||
597 | 599 | ||
598 | 600 | ||
599 | - | @Callable( | |
600 | - | func putOneTkn ( | |
601 | + | @Callable(dk) | |
602 | + | func putOneTkn (dN,dO,dP,bi,dB) = { | |
601 | 603 | let bz = aG() | |
602 | - | let | |
603 | - | let | |
604 | - | let | |
605 | - | let | |
606 | - | let bO = | |
607 | - | let bP = | |
608 | - | let bQ = parseIntValue( | |
609 | - | let bR = parseIntValue( | |
610 | - | let | |
611 | - | let bM = if (( | |
612 | - | then | |
613 | - | else | |
614 | - | let | |
615 | - | let | |
616 | - | if (( | |
604 | + | let dD = valueOrErrorMessage(addressFromString(bz[x]), "Wr st addr") | |
605 | + | let dE = valueOrErrorMessage(addressFromString(bz[y]), "Wr sl addr") | |
606 | + | let dQ = valueOrErrorMessage(addressFromString(bz[z]), "Wr gwx addr") | |
607 | + | let dR = aC() | |
608 | + | let bO = dR[r] | |
609 | + | let bP = dR[s] | |
610 | + | let bQ = parseIntValue(dR[t]) | |
611 | + | let bR = parseIntValue(dR[u]) | |
612 | + | let dS = valueOrElse(getString(this, aa()), "") | |
613 | + | let bM = if ((dS == toString(dk.caller))) | |
614 | + | then dk.originCaller | |
615 | + | else dk.caller | |
616 | + | let dT = valueOrErrorMessage(addressFromString(valueOrErrorMessage(getString(aa()), "no addons")), "addon address in not valid") | |
617 | + | let dU = reentrantInvoke(dT, "ensureCanPutOneTkn", [toString(bM)], nil) | |
618 | + | if ((dU == dU)) | |
617 | 619 | then if (if (if (if ((0 >= bi)) | |
618 | - | then true | |
619 | - | else (0 >= dM)) | |
620 | 620 | then true | |
621 | 621 | else (0 >= dN)) | |
622 | 622 | then true | |
623 | 623 | else (0 >= dO)) | |
624 | + | then true | |
625 | + | else (0 >= dP)) | |
624 | 626 | then throw("Wrong params") | |
625 | - | else if ((size( | |
627 | + | else if ((size(dk.payments) != 1)) | |
626 | 628 | then throw("1 pmnt expd") | |
627 | 629 | else { | |
628 | - | let | |
629 | - | let bK = toBase58String(value( | |
630 | - | let | |
631 | - | if ((10000000 > | |
630 | + | let dl = value(dk.payments[0]) | |
631 | + | let bK = toBase58String(value(dl.assetId)) | |
632 | + | let cq = dl.amount | |
633 | + | if ((10000000 > cq)) | |
632 | 634 | then throw("Wrong pmt amt") | |
633 | 635 | else { | |
634 | 636 | let bU = ba(bO) | |
635 | 637 | let bW = ba(bP) | |
636 | - | let | |
637 | - | then if (if (( | |
638 | + | let dV = if ((bK == bO)) | |
639 | + | then if (if ((cq > bU)) | |
638 | 640 | then true | |
639 | - | else ( | |
641 | + | else (dN > cq)) | |
640 | 642 | then throw("invalid payment amount") | |
641 | - | else $Tuple6((bU - | |
643 | + | else $Tuple6((bU - cq), bW, (cq - dN), dO, 0, 0) | |
642 | 644 | else if ((bK == bP)) | |
643 | - | then if (if (( | |
645 | + | then if (if ((cq > bW)) | |
644 | 646 | then true | |
645 | - | else ( | |
647 | + | else (dO > cq)) | |
646 | 648 | then throw("invalid payment amount") | |
647 | - | else $Tuple6(bU, (bW - | |
649 | + | else $Tuple6(bU, (bW - cq), 0, 0, (cq - dO), dN) | |
648 | 650 | else throw("wrong pmtAssetId") | |
649 | - | let | |
650 | - | let | |
651 | - | let | |
652 | - | let | |
653 | - | let | |
654 | - | let | |
655 | - | let bn = invoke( | |
656 | - | let bm = invoke( | |
657 | - | let | |
658 | - | if (( | |
651 | + | let dW = dV._1 | |
652 | + | let dX = dV._2 | |
653 | + | let dY = dV._3 | |
654 | + | let dZ = dV._4 | |
655 | + | let ea = dV._5 | |
656 | + | let eb = dV._6 | |
657 | + | let bn = invoke(dQ, "calcD", [toString(dW), toString(dX), az, g, h], nil) | |
658 | + | let bm = invoke(dQ, "calcD", [toString(toBigInt(((dW + dY) - eb))), toString(toBigInt(((dX + ea) - dZ))), az, g, h], nil) | |
659 | + | let ec = bl(parseBigIntValue(ar(bm)), parseBigIntValue(ar(bn)), f) | |
660 | + | if ((ec == ec)) | |
659 | 661 | then { | |
660 | - | let | |
661 | - | let | |
662 | - | let | |
663 | - | let cg = | |
664 | - | let | |
665 | - | let | |
666 | - | let | |
667 | - | let | |
668 | - | let | |
669 | - | if (( | |
662 | + | let ed = dm(toString(dk.caller), toBase58String(dk.transactionId), AttachedPayment(fromBase58String(bO), dN), AttachedPayment(fromBase58String(bP), dO), bi, true, true, true, cq, bK) | |
663 | + | let ee = ed._2 | |
664 | + | let dG = ed._7 | |
665 | + | let cg = ed._9 | |
666 | + | let cQ = ed._10 | |
667 | + | let cR = ed._11 | |
668 | + | let ef = bf(toBigInt(ee), toBigInt(dP), toBigInt(bi)) | |
669 | + | let cP = toInt(ef._2) | |
670 | + | let dF = invoke(ay, "emit", [cP], nil) | |
671 | + | if ((dF == dF)) | |
670 | 672 | then { | |
671 | - | let | |
672 | - | let as = | |
673 | + | let dH = { | |
674 | + | let as = dF | |
673 | 675 | if ($isInstanceOf(as, "Address")) | |
674 | 676 | then { | |
675 | - | let | |
676 | - | invoke( | |
677 | + | let dI = as | |
678 | + | invoke(dI, "emit", [cP], nil) | |
677 | 679 | } | |
678 | 680 | else unit | |
679 | 681 | } | |
680 | - | if (( | |
682 | + | if ((dH == dH)) | |
681 | 683 | then { | |
682 | - | let | |
683 | - | then invoke( | |
684 | + | let dJ = if ((cQ > 0)) | |
685 | + | then invoke(dE, "put", nil, [AttachedPayment(fromBase58String(bO), cQ)]) | |
684 | 686 | else nil | |
685 | - | if (( | |
687 | + | if ((dJ == dJ)) | |
686 | 688 | then { | |
687 | - | let | |
688 | - | then invoke( | |
689 | + | let dK = if ((cR > 0)) | |
690 | + | then invoke(dE, "put", nil, [AttachedPayment(fromBase58String(bP), cR)]) | |
689 | 691 | else nil | |
690 | - | if (( | |
692 | + | if ((dK == dK)) | |
691 | 693 | then { | |
692 | - | let | |
694 | + | let dL = if (dB) | |
693 | 695 | then { | |
694 | - | let | |
695 | - | if (( | |
696 | + | let dM = invoke(dD, "stake", nil, [AttachedPayment(dG, cP)]) | |
697 | + | if ((dM == dM)) | |
696 | 698 | then nil | |
697 | 699 | else throw("Strict value is not equal to itself.") | |
698 | 700 | } | |
699 | - | else [ScriptTransfer( | |
700 | - | (cg ++ | |
701 | + | else [ScriptTransfer(dk.caller, cP, dG)] | |
702 | + | (cg ++ dL) | |
701 | 703 | } | |
702 | 704 | else throw("Strict value is not equal to itself.") | |
703 | 705 | } | |
715 | 717 | ||
716 | 718 | ||
717 | 719 | ||
718 | - | @Callable( | |
719 | - | func putOneTknV2 ( | |
720 | + | @Callable(dk) | |
721 | + | func putOneTknV2 (eg,dB) = if ((size(dk.payments) != 1)) | |
720 | 722 | then throw("1 pmnt expd") | |
721 | 723 | else { | |
722 | - | let | |
723 | - | let bO = | |
724 | - | let bP = | |
725 | - | let | |
726 | - | let | |
727 | - | let bM = if (( | |
728 | - | then | |
729 | - | else | |
730 | - | let | |
731 | - | let bK = toBase58String(value( | |
732 | - | let | |
733 | - | if ((10000000 > | |
724 | + | let eh = aC() | |
725 | + | let bO = eh[r] | |
726 | + | let bP = eh[s] | |
727 | + | let ei = parseIntValue(eh[t]) | |
728 | + | let ej = parseIntValue(eh[u]) | |
729 | + | let bM = if ((dk.caller == this)) | |
730 | + | then dk.originCaller | |
731 | + | else dk.caller | |
732 | + | let dl = value(dk.payments[0]) | |
733 | + | let bK = toBase58String(value(dl.assetId)) | |
734 | + | let cq = dl.amount | |
735 | + | if ((10000000 > cq)) | |
734 | 736 | then throw("Wrong pmt amt") | |
735 | 737 | else { | |
736 | 738 | let bU = ba(bO) | |
737 | 739 | let bW = ba(bP) | |
738 | - | let | |
739 | - | then if (( | |
740 | + | let ek = if ((bK == bO)) | |
741 | + | then if ((cq > bU)) | |
740 | 742 | then throw("invalid payment amount") | |
741 | - | else $Tuple2((bU - | |
743 | + | else $Tuple2((bU - cq), bW) | |
742 | 744 | else if ((bK == bP)) | |
743 | - | then if (( | |
745 | + | then if ((cq > bW)) | |
744 | 746 | then throw("invalid payment amount") | |
745 | - | else $Tuple2(bU, (bW - | |
747 | + | else $Tuple2(bU, (bW - cq)) | |
746 | 748 | else throw("wrong pmtAssetId") | |
747 | - | let | |
748 | - | let | |
749 | - | let | |
750 | - | then $Tuple2( | |
751 | - | else $Tuple2( | |
752 | - | let | |
753 | - | let | |
754 | - | let | |
755 | - | let | |
756 | - | let | |
757 | - | if ($isInstanceOf( | |
758 | - | then | |
759 | - | else throw(($getType(invoke(aK, "calcPutXOnly", [toString( | |
749 | + | let dW = ek._1 | |
750 | + | let dX = ek._2 | |
751 | + | let el = if ((bK == bO)) | |
752 | + | then $Tuple2(dW, dX) | |
753 | + | else $Tuple2(dX, dW) | |
754 | + | let em = el._1 | |
755 | + | let en = el._2 | |
756 | + | let eo = 1 | |
757 | + | let ep = { | |
758 | + | let eq = invoke(aK, "calcPutXOnly", [toString(cq), toString(em), toString(en), "", az, g, toString(eo), h], nil) | |
759 | + | if ($isInstanceOf(eq, "(Int, Int)")) | |
760 | + | then eq | |
761 | + | else throw(($getType(invoke(aK, "calcPutXOnly", [toString(cq), toString(em), toString(en), "", az, g, toString(eo), h], nil)) + " couldn't be cast to (Int, Int)")) | |
760 | 762 | } | |
761 | - | let ep = if ((bK == bO)) | |
762 | - | then en | |
763 | - | else $Tuple2(en._2, en._1) | |
764 | - | let dM = ep._1 | |
765 | - | let dN = ep._2 | |
766 | - | let ec = dl(toString(dj.caller), toBase58String(dj.transactionId), AttachedPayment(fromBase58String(bO), dM), AttachedPayment(fromBase58String(bP), dN), bi, true, true, cp, bK) | |
767 | - | let ed = ec._2 | |
768 | - | let dF = ec._7 | |
769 | - | let cg = ec._9 | |
770 | - | let cP = ec._10 | |
771 | - | let cQ = ec._11 | |
772 | - | let cO = if ((dO > 0)) | |
763 | + | let er = if ((bK == bO)) | |
764 | + | then ep | |
765 | + | else $Tuple2(ep._2, ep._1) | |
766 | + | let dN = er._1 | |
767 | + | let dO = er._2 | |
768 | + | let ed = dm(toString(dk.caller), toBase58String(dk.transactionId), AttachedPayment(fromBase58String(bO), dN), AttachedPayment(fromBase58String(bP), dO), 0, true, true, false, cq, bK) | |
769 | + | let ee = ed._2 | |
770 | + | let dG = ed._7 | |
771 | + | let cg = ed._9 | |
772 | + | let cQ = ed._10 | |
773 | + | let cR = ed._11 | |
774 | + | let cP = if (if ((eg > 0)) | |
775 | + | then (eg > ee) | |
776 | + | else false) | |
777 | + | then throw(makeString(["amount to receive is less than ", toString(eg)], "")) | |
778 | + | else ee | |
779 | + | let dF = invoke(ay, "emit", [cP], nil) | |
780 | + | if ((dF == dF)) | |
773 | 781 | then { | |
774 | - | let ee = bf(toBigInt(ed), toBigInt(dO), toBigInt(bi)) | |
775 | - | toInt(ee._2) | |
776 | - | } | |
777 | - | else ed | |
778 | - | let dE = invoke(ay, "emit", [cO], nil) | |
779 | - | if ((dE == dE)) | |
780 | - | then { | |
781 | - | let dG = { | |
782 | - | let as = dE | |
782 | + | let dH = { | |
783 | + | let as = dF | |
783 | 784 | if ($isInstanceOf(as, "Address")) | |
784 | 785 | then { | |
785 | - | let | |
786 | - | invoke( | |
786 | + | let dI = as | |
787 | + | invoke(dI, "emit", [cP], nil) | |
787 | 788 | } | |
788 | 789 | else unit | |
789 | 790 | } | |
790 | - | if (( | |
791 | + | if ((dH == dH)) | |
791 | 792 | then { | |
792 | - | let | |
793 | - | then invoke(aJ, "put", nil, [AttachedPayment(fromBase58String(bO), | |
793 | + | let dJ = if ((cQ > 0)) | |
794 | + | then invoke(aJ, "put", nil, [AttachedPayment(fromBase58String(bO), cQ)]) | |
794 | 795 | else nil | |
795 | - | if (( | |
796 | + | if ((dJ == dJ)) | |
796 | 797 | then { | |
797 | - | let | |
798 | - | then invoke(aJ, "put", nil, [AttachedPayment(fromBase58String(bP), | |
798 | + | let dK = if ((cR > 0)) | |
799 | + | then invoke(aJ, "put", nil, [AttachedPayment(fromBase58String(bP), cR)]) | |
799 | 800 | else nil | |
800 | - | if (( | |
801 | + | if ((dK == dK)) | |
801 | 802 | then { | |
802 | - | let | |
803 | + | let dL = if (dB) | |
803 | 804 | then { | |
804 | - | let | |
805 | - | if (( | |
805 | + | let dM = invoke(aI, "stake", nil, [AttachedPayment(dG, cP)]) | |
806 | + | if ((dM == dM)) | |
806 | 807 | then nil | |
807 | 808 | else throw("Strict value is not equal to itself.") | |
808 | 809 | } | |
809 | - | else [ScriptTransfer( | |
810 | - | (cg ++ | |
810 | + | else [ScriptTransfer(dk.caller, cP, dG)] | |
811 | + | (cg ++ dL) | |
811 | 812 | } | |
812 | 813 | else throw("Strict value is not equal to itself.") | |
813 | 814 | } | |
821 | 822 | ||
822 | 823 | ||
823 | 824 | ||
824 | - | @Callable( | |
825 | - | func putForFree ( | |
825 | + | @Callable(dk) | |
826 | + | func putForFree (es) = if ((0 > es)) | |
826 | 827 | then throw("Wrong slpg") | |
827 | - | else if ((size( | |
828 | + | else if ((size(dk.payments) != 2)) | |
828 | 829 | then throw("2 pmnts expd") | |
829 | 830 | else { | |
830 | - | let | |
831 | - | | |
831 | + | let ed = dm(toString(dk.caller), toBase58String(dk.transactionId), AttachedPayment(value(dk.payments[0]).assetId, value(dk.payments[0]).amount), dk.payments[1], es, false, false, true, 0, "") | |
832 | + | ed._9 | |
832 | 833 | } | |
833 | 834 | ||
834 | 835 | ||
835 | 836 | ||
836 | - | @Callable( | |
837 | + | @Callable(dk) | |
837 | 838 | func get () = { | |
838 | - | let | |
839 | - | let | |
840 | - | let cf = | |
841 | - | let | |
842 | - | let bK = | |
843 | - | let cg = | |
844 | - | let | |
845 | - | if (( | |
839 | + | let cC = dj(dk) | |
840 | + | let et = cC._1 | |
841 | + | let cf = cC._2 | |
842 | + | let cq = cC._3 | |
843 | + | let bK = cC._4 | |
844 | + | let cg = cC._5 | |
845 | + | let eu = invoke(ay, "burn", [cq], [AttachedPayment(bK, cq)]) | |
846 | + | if ((eu == eu)) | |
846 | 847 | then cg | |
847 | 848 | else throw("Strict value is not equal to itself.") | |
848 | 849 | } | |
849 | 850 | ||
850 | 851 | ||
851 | 852 | ||
852 | - | @Callable( | |
853 | - | func getOneTkn ( | |
853 | + | @Callable(dk) | |
854 | + | func getOneTkn (ev,ew,ex,ey,bi) = if ((size(dk.payments) != 1)) | |
854 | 855 | then throw("1 pmnt expd") | |
855 | 856 | else { | |
856 | 857 | let bz = aC() | |
860 | 861 | let bQ = parseIntValue(bz[t]) | |
861 | 862 | let bR = parseIntValue(bz[u]) | |
862 | 863 | let bS = bz[p] | |
863 | - | let | |
864 | - | let | |
865 | - | let | |
866 | - | let | |
867 | - | let bM = if (( | |
868 | - | then | |
869 | - | else | |
870 | - | let bJ = toBase58String( | |
871 | - | let bK = value( | |
872 | - | let | |
873 | - | let | |
874 | - | let | |
875 | - | if (( | |
876 | - | then if ((1000000000 > | |
864 | + | let dC = aG() | |
865 | + | let dQ = valueOrErrorMessage(addressFromString(dC[z]), "Wr sl addr") | |
866 | + | let dl = value(dk.payments[0]) | |
867 | + | let dS = valueOrElse(getString(this, aa()), "") | |
868 | + | let bM = if ((dS == toString(dk.caller))) | |
869 | + | then dk.originCaller | |
870 | + | else dk.caller | |
871 | + | let bJ = toBase58String(dk.transactionId) | |
872 | + | let bK = value(dl.assetId) | |
873 | + | let cq = dl.amount | |
874 | + | let dT = valueOrErrorMessage(addressFromString(valueOrErrorMessage(getString(aa()), "no addons")), "addon address in not valid") | |
875 | + | let dU = reentrantInvoke(dT, "ensureCanGetOneTkn", [toString(bM)], nil) | |
876 | + | if ((dU == dU)) | |
877 | + | then if ((1000000000 > cq)) | |
877 | 878 | then throw("Min pmt 10 LP") | |
878 | 879 | else if (if (if ((0 > bi)) | |
879 | 880 | then true | |
880 | - | else (0 > | |
881 | + | else (0 > ev)) | |
881 | 882 | then true | |
882 | - | else (0 > | |
883 | + | else (0 > ex)) | |
883 | 884 | then throw("Wrong params") | |
884 | 885 | else if ((bN != toBase58String(bK))) | |
885 | 886 | then throw("Wrong LP") | |
886 | 887 | else { | |
887 | - | let | |
888 | - | let | |
889 | - | let | |
888 | + | let cC = bI(toBase58String(dk.transactionId), toBase58String(bK), cq, dk.caller) | |
889 | + | let ez = cC._1 | |
890 | + | let eA = cC._2 | |
890 | 891 | let bU = ba(bO) | |
891 | 892 | let bW = ba(bP) | |
892 | - | let | |
893 | - | then $Tuple7((bU - | |
894 | - | else if (( | |
895 | - | then $Tuple7((bU - | |
893 | + | let eB = if ((ey == bO)) | |
894 | + | then $Tuple7((bU - ez), (bW - eA), ev, eA, 0, 0, (ez + ev)) | |
895 | + | else if ((ey == bP)) | |
896 | + | then $Tuple7((bU - ez), (bW - eA), 0, 0, ev, ez, (eA + ev)) | |
896 | 897 | else throw("wrong outAssetId") | |
897 | - | let | |
898 | - | let | |
899 | - | let | |
900 | - | let | |
901 | - | let | |
902 | - | let | |
903 | - | let | |
904 | - | if (if ((0 > | |
898 | + | let dW = eB._1 | |
899 | + | let dX = eB._2 | |
900 | + | let dY = eB._3 | |
901 | + | let dZ = eB._4 | |
902 | + | let ea = eB._5 | |
903 | + | let eb = eB._6 | |
904 | + | let eC = eB._7 | |
905 | + | if (if ((0 > dY)) | |
905 | 906 | then true | |
906 | - | else (0 > | |
907 | + | else (0 > ea)) | |
907 | 908 | then throw("Wrong calc") | |
908 | 909 | else { | |
909 | - | let bn = invoke( | |
910 | - | let bm = invoke( | |
911 | - | let | |
912 | - | if (( | |
910 | + | let bn = invoke(dQ, "calcD", [toString(dW), toString(dX), az, g, h], nil) | |
911 | + | let bm = invoke(dQ, "calcD", [toString(((dW - dY) + eb)), toString(((dX + dZ) - ea)), az, g, h], nil) | |
912 | + | let ec = bl(parseBigIntValue(ar(bm)), parseBigIntValue(ar(bn)), f) | |
913 | + | if ((ec == ec)) | |
913 | 914 | then { | |
914 | - | let | |
915 | - | if (( | |
915 | + | let eD = bf(toBigInt(eC), toBigInt(ex), toBigInt(bi)) | |
916 | + | if ((eD == eD)) | |
916 | 917 | then { | |
917 | - | let | |
918 | - | then $Tuple2(toInt( | |
919 | - | else $Tuple2(0, toInt( | |
920 | - | let | |
921 | - | let | |
922 | - | let | |
923 | - | let | |
924 | - | let cg = [ScriptTransfer(bM, ( | |
918 | + | let eE = if ((ey == bO)) | |
919 | + | then $Tuple2(toInt(eD._2), 0) | |
920 | + | else $Tuple2(0, toInt(eD._2)) | |
921 | + | let eF = eE._1 | |
922 | + | let eG = eE._2 | |
923 | + | let eH = bc(B(bW, bR), B(bU, bQ)) | |
924 | + | let eI = E(eH, a) | |
925 | + | let cg = [ScriptTransfer(bM, (eF + eG), if ((ey == "WAVES")) | |
925 | 926 | then unit | |
926 | - | else fromBase58String( | |
927 | + | else fromBase58String(ey)), StringEntry(W(toString(bM), bJ), aW(eF, eG, cq, eI, height, lastBlock.timestamp)), IntegerEntry(P(), eI), IntegerEntry(Q(height, lastBlock.timestamp), eI)] | |
927 | 928 | if ((cg == cg)) | |
928 | 929 | then { | |
929 | - | let | |
930 | - | if (( | |
930 | + | let eJ = invoke(ay, "burn", [cq], [AttachedPayment(bK, cq)]) | |
931 | + | if ((eJ == eJ)) | |
931 | 932 | then cg | |
932 | 933 | else throw("Strict value is not equal to itself.") | |
933 | 934 | } | |
943 | 944 | ||
944 | 945 | ||
945 | 946 | ||
946 | - | @Callable( | |
947 | - | func getOneTknV2 ( | |
947 | + | @Callable(dk) | |
948 | + | func getOneTknV2 (ey,eg) = if ((size(dk.payments) != 1)) | |
948 | 949 | then throw("1 pmnt expd") | |
949 | 950 | else { | |
950 | - | let | |
951 | - | let bN = | |
952 | - | let bO = | |
953 | - | let bP = | |
954 | - | let | |
955 | - | let | |
956 | - | let | |
957 | - | let bM = if (( | |
958 | - | then | |
959 | - | else | |
960 | - | let | |
961 | - | let bK = value( | |
962 | - | let | |
963 | - | if ((1000000000 > | |
951 | + | let eh = aC() | |
952 | + | let bN = eh[q] | |
953 | + | let bO = eh[r] | |
954 | + | let bP = eh[s] | |
955 | + | let ei = parseIntValue(eh[t]) | |
956 | + | let ej = parseIntValue(eh[u]) | |
957 | + | let eK = eh[p] | |
958 | + | let bM = if ((dk.caller == this)) | |
959 | + | then dk.originCaller | |
960 | + | else dk.caller | |
961 | + | let dl = value(dk.payments[0]) | |
962 | + | let bK = value(dl.assetId) | |
963 | + | let cq = dl.amount | |
964 | + | if ((1000000000 > cq)) | |
964 | 965 | then throw("Min pmt 10 LP") | |
965 | 966 | else { | |
966 | - | let bJ = toBase58String(dj.transactionId) | |
967 | - | if ((0 > bi)) | |
968 | - | then throw("Wrong params") | |
969 | - | else if ((bN != toBase58String(bK))) | |
970 | - | then throw("Wrong LP") | |
971 | - | else { | |
972 | - | let cB = bI(bJ, toBase58String(bK), cp, dj.caller) | |
973 | - | let ex = cB._1 | |
974 | - | let ey = cB._2 | |
975 | - | let bU = ba(bO) | |
976 | - | let bW = ba(bP) | |
977 | - | let dV = (bU - ex) | |
978 | - | let dW = (bW - ey) | |
979 | - | let eJ = if ((ew == bO)) | |
980 | - | then $Tuple3(dW, dV, ey) | |
981 | - | else if ((ew == bP)) | |
982 | - | then $Tuple3(dV, dW, ex) | |
983 | - | else throw("wrong outAssetId") | |
984 | - | let eK = eJ._1 | |
985 | - | let eL = eJ._2 | |
986 | - | let eM = eJ._3 | |
987 | - | let eN = 1 | |
988 | - | let et = { | |
989 | - | let eo = invoke(aK, "calcSwapXToY", [toString(eM), toString(eK), toString(eL), "", az, g, toString(eN), h], nil) | |
990 | - | if ($isInstanceOf(eo, "Int")) | |
991 | - | then eo | |
992 | - | else throw(($getType(invoke(aK, "calcSwapXToY", [toString(eM), toString(eK), toString(eL), "", az, g, toString(eN), h], nil)) + " couldn't be cast to Int")) | |
967 | + | let bJ = toBase58String(dk.transactionId) | |
968 | + | if ((bN != toBase58String(bK))) | |
969 | + | then throw("Wrong LP") | |
970 | + | else { | |
971 | + | let cC = bI(bJ, toBase58String(bK), cq, dk.caller) | |
972 | + | let ez = cC._1 | |
973 | + | let eA = cC._2 | |
974 | + | let bU = ba(bO) | |
975 | + | let bW = ba(bP) | |
976 | + | let dW = (bU - ez) | |
977 | + | let dX = (bW - eA) | |
978 | + | let eL = if ((ey == bO)) | |
979 | + | then $Tuple3(dX, dW, eA) | |
980 | + | else if ((ey == bP)) | |
981 | + | then $Tuple3(dW, dX, ez) | |
982 | + | else throw("wrong outAssetId") | |
983 | + | let eM = eL._1 | |
984 | + | let eN = eL._2 | |
985 | + | let eO = eL._3 | |
986 | + | let eP = 1 | |
987 | + | let ev = { | |
988 | + | let eq = invoke(aK, "calcSwapXToY", [toString(eO), toString(eM), toString(eN), "", az, g, toString(eP), h], nil) | |
989 | + | if ($isInstanceOf(eq, "Int")) | |
990 | + | then eq | |
991 | + | else throw(($getType(invoke(aK, "calcSwapXToY", [toString(eO), toString(eM), toString(eN), "", az, g, toString(eP), h], nil)) + " couldn't be cast to Int")) | |
992 | + | } | |
993 | + | let eC = (ev + (if ((ey == bO)) | |
994 | + | then ez | |
995 | + | else eA)) | |
996 | + | let eQ = if (if ((eg > 0)) | |
997 | + | then (eg > eC) | |
998 | + | else false) | |
999 | + | then throw(makeString(["amount to receive is less than ", toString(eg)], "")) | |
1000 | + | else eC | |
1001 | + | let eR = if ((ey == bO)) | |
1002 | + | then $Tuple2(eQ, 0) | |
1003 | + | else $Tuple2(0, eQ) | |
1004 | + | let eF = eR._1 | |
1005 | + | let eG = eR._2 | |
1006 | + | let eH = bc(B(bW, ej), B(bU, ei)) | |
1007 | + | let eI = E(eH, a) | |
1008 | + | let cg = [ScriptTransfer(bM, eQ, if ((ey == "WAVES")) | |
1009 | + | then unit | |
1010 | + | else fromBase58String(ey)), StringEntry(W(toString(bM), bJ), aW(eF, eG, cq, eI, height, lastBlock.timestamp)), IntegerEntry(P(), eI), IntegerEntry(Q(height, lastBlock.timestamp), eI)] | |
1011 | + | if ((cg == cg)) | |
1012 | + | then { | |
1013 | + | let eJ = invoke(ay, "burn", [cq], [AttachedPayment(bK, cq)]) | |
1014 | + | if ((eJ == eJ)) | |
1015 | + | then $Tuple2(cg, eQ) | |
1016 | + | else throw("Strict value is not equal to itself.") | |
993 | 1017 | } | |
994 | - | let eA = if ((ew == bO)) | |
995 | - | then (ex + et) | |
996 | - | else (ey + et) | |
997 | - | let eB = if ((ev > 0)) | |
998 | - | then bf(toBigInt(eA), toBigInt(ev), toBigInt(bi)) | |
999 | - | else $Tuple2(true, toBigInt(eA)) | |
1000 | - | let eO = if ((ew == bO)) | |
1001 | - | then $Tuple2(toInt(eB._2), 0) | |
1002 | - | else $Tuple2(0, toInt(eB._2)) | |
1003 | - | let eD = eO._1 | |
1004 | - | let eE = eO._2 | |
1005 | - | let eP = (eD + eE) | |
1006 | - | let eF = bc(B(bW, eh), B(bU, eg)) | |
1007 | - | let eG = E(eF, a) | |
1008 | - | let cg = [ScriptTransfer(bM, eP, if ((ew == "WAVES")) | |
1009 | - | then unit | |
1010 | - | else fromBase58String(ew)), StringEntry(W(toString(bM), bJ), aW(eD, eE, cp, eG, height, lastBlock.timestamp)), IntegerEntry(P(), eG), IntegerEntry(Q(height, lastBlock.timestamp), eG)] | |
1011 | - | if ((cg == cg)) | |
1012 | - | then { | |
1013 | - | let eH = invoke(ay, "burn", [cp], [AttachedPayment(bK, cp)]) | |
1014 | - | if ((eH == eH)) | |
1015 | - | then $Tuple2(cg, eP) | |
1016 | - | else throw("Strict value is not equal to itself.") | |
1017 | - | } | |
1018 | - | else throw("Strict value is not equal to itself.") | |
1019 | - | } | |
1018 | + | else throw("Strict value is not equal to itself.") | |
1019 | + | } | |
1020 | 1020 | } | |
1021 | 1021 | } | |
1022 | 1022 | ||
1023 | 1023 | ||
1024 | 1024 | ||
1025 | - | @Callable( | |
1026 | - | func getNoLess ( | |
1027 | - | let | |
1028 | - | let ce = | |
1029 | - | let cf = | |
1030 | - | let | |
1031 | - | let bK = | |
1032 | - | let cg = | |
1033 | - | if (( | |
1034 | - | then throw(((("Failed: " + toString(ce)) + " < ") + toString( | |
1035 | - | else if (( | |
1036 | - | then throw(((("Failed: " + toString(cf)) + " < ") + toString( | |
1025 | + | @Callable(dk) | |
1026 | + | func getNoLess (eS,eT) = { | |
1027 | + | let cC = dj(dk) | |
1028 | + | let ce = cC._1 | |
1029 | + | let cf = cC._2 | |
1030 | + | let cq = cC._3 | |
1031 | + | let bK = cC._4 | |
1032 | + | let cg = cC._5 | |
1033 | + | if ((eS > ce)) | |
1034 | + | then throw(((("Failed: " + toString(ce)) + " < ") + toString(eS))) | |
1035 | + | else if ((eT > cf)) | |
1036 | + | then throw(((("Failed: " + toString(cf)) + " < ") + toString(eT))) | |
1037 | 1037 | else { | |
1038 | - | let | |
1039 | - | if (( | |
1038 | + | let eU = invoke(ay, "burn", [cq], [AttachedPayment(bK, cq)]) | |
1039 | + | if ((eU == eU)) | |
1040 | 1040 | then cg | |
1041 | 1041 | else throw("Strict value is not equal to itself.") | |
1042 | 1042 | } | |
1044 | 1044 | ||
1045 | 1045 | ||
1046 | 1046 | ||
1047 | - | @Callable( | |
1048 | - | func unstakeAndGet ( | |
1049 | - | let | |
1047 | + | @Callable(dk) | |
1048 | + | func unstakeAndGet (eV) = { | |
1049 | + | let eW = if ((size(dk.payments) != 0)) | |
1050 | 1050 | then throw("No pmnts expd") | |
1051 | 1051 | else true | |
1052 | - | if (( | |
1052 | + | if ((eW == eW)) | |
1053 | 1053 | then { | |
1054 | 1054 | let bz = aC() | |
1055 | - | let | |
1056 | - | let | |
1057 | - | let | |
1058 | - | let | |
1059 | - | if (( | |
1055 | + | let eX = aG() | |
1056 | + | let dG = fromBase58String(bz[q]) | |
1057 | + | let eY = valueOrErrorMessage(addressFromString(eX[x]), "Wr st addr") | |
1058 | + | let eZ = invoke(eY, "unstake", [toBase58String(dG), eV], nil) | |
1059 | + | if ((eZ == eZ)) | |
1060 | 1060 | then { | |
1061 | - | let | |
1062 | - | let bS = parseIntValue( | |
1063 | - | let cg = | |
1064 | - | let | |
1061 | + | let cC = bI(toBase58String(dk.transactionId), toBase58String(dG), eV, dk.caller) | |
1062 | + | let bS = parseIntValue(cC._9) | |
1063 | + | let cg = cC._10 | |
1064 | + | let fa = if (if (aA()) | |
1065 | 1065 | then true | |
1066 | 1066 | else (bS == n)) | |
1067 | 1067 | then throw(("Blocked: " + toString(bS))) | |
1068 | 1068 | else true | |
1069 | - | if (( | |
1069 | + | if ((fa == fa)) | |
1070 | 1070 | then { | |
1071 | - | let | |
1072 | - | if (( | |
1071 | + | let fb = invoke(ay, "burn", [eV], [AttachedPayment(dG, eV)]) | |
1072 | + | if ((fb == fb)) | |
1073 | 1073 | then cg | |
1074 | 1074 | else throw("Strict value is not equal to itself.") | |
1075 | 1075 | } | |
1082 | 1082 | ||
1083 | 1083 | ||
1084 | 1084 | ||
1085 | - | @Callable( | |
1086 | - | func unstakeAndGetOneTkn ( | |
1087 | - | let | |
1085 | + | @Callable(dk) | |
1086 | + | func unstakeAndGetOneTkn (eV,ex,ey,bi) = { | |
1087 | + | let eW = if ((size(dk.payments) != 0)) | |
1088 | 1088 | then throw("No pmnts expd") | |
1089 | 1089 | else true | |
1090 | - | if (( | |
1090 | + | if ((eW == eW)) | |
1091 | 1091 | then { | |
1092 | 1092 | let bz = aC() | |
1093 | - | let | |
1094 | - | let | |
1095 | - | let | |
1096 | - | let | |
1097 | - | if (( | |
1093 | + | let eX = aG() | |
1094 | + | let dG = fromBase58String(bz[q]) | |
1095 | + | let eY = valueOrErrorMessage(addressFromString(eX[x]), "Wr st addr") | |
1096 | + | let eZ = invoke(eY, "unstake", [toBase58String(dG), eV], nil) | |
1097 | + | if ((eZ == eZ)) | |
1098 | 1098 | then { | |
1099 | - | let | |
1100 | - | let | |
1101 | - | if ($isInstanceOf( | |
1102 | - | then | |
1099 | + | let fc = { | |
1100 | + | let eq = invoke(this, "getOneTknV2", [ex, ey, bi], [AttachedPayment(dG, eV)]) | |
1101 | + | if ($isInstanceOf(eq, "Int")) | |
1102 | + | then eq | |
1103 | 1103 | else unit | |
1104 | 1104 | } | |
1105 | - | if (( | |
1106 | - | then $Tuple2(nil, | |
1105 | + | if ((fc == fc)) | |
1106 | + | then $Tuple2(nil, fc) | |
1107 | 1107 | else throw("Strict value is not equal to itself.") | |
1108 | 1108 | } | |
1109 | 1109 | else throw("Strict value is not equal to itself.") | |
1113 | 1113 | ||
1114 | 1114 | ||
1115 | 1115 | ||
1116 | - | @Callable( | |
1117 | - | func activate ( | |
1116 | + | @Callable(dk) | |
1117 | + | func activate (fd,fe) = if ((toString(dk.caller) != toString(ay))) | |
1118 | 1118 | then throw("denied") | |
1119 | - | else $Tuple2([StringEntry(X(), | |
1119 | + | else $Tuple2([StringEntry(X(), fd), StringEntry(Y(), fe)], "success") | |
1120 | 1120 | ||
1121 | 1121 | ||
1122 | 1122 | ||
1123 | - | @Callable( | |
1124 | - | func setS ( | |
1125 | - | then | |
1126 | - | else [StringEntry( | |
1123 | + | @Callable(dk) | |
1124 | + | func setS (ff,fa) = if ((toString(dk.caller) != au(this, aa()))) | |
1125 | + | then ds | |
1126 | + | else [StringEntry(ff, fa)] | |
1127 | 1127 | ||
1128 | 1128 | ||
1129 | 1129 | ||
1130 | - | @Callable( | |
1131 | - | func setI ( | |
1132 | - | then | |
1133 | - | else [IntegerEntry( | |
1130 | + | @Callable(dk) | |
1131 | + | func setI (ff,fa) = if ((toString(dk.caller) != au(this, aa()))) | |
1132 | + | then ds | |
1133 | + | else [IntegerEntry(ff, fa)] | |
1134 | 1134 | ||
1135 | 1135 | ||
1136 | 1136 | ||
1137 | - | @Callable( | |
1137 | + | @Callable(dk) | |
1138 | 1138 | func getPoolConfigWrapperREADONLY () = $Tuple2(nil, aC()) | |
1139 | 1139 | ||
1140 | 1140 | ||
1141 | 1141 | ||
1142 | - | @Callable( | |
1142 | + | @Callable(dk) | |
1143 | 1143 | func getAccBalanceWrapperREADONLY (bb) = $Tuple2(nil, ba(bb)) | |
1144 | 1144 | ||
1145 | 1145 | ||
1146 | 1146 | ||
1147 | - | @Callable( | |
1147 | + | @Callable(dk) | |
1148 | 1148 | func calcPricesWrapperREADONLY (bt,bu,by) = { | |
1149 | - | let | |
1150 | - | $Tuple2(nil, [toString( | |
1149 | + | let fg = bx(bt, bu, by) | |
1150 | + | $Tuple2(nil, [toString(fg[0]), toString(fg[1]), toString(fg[2])]) | |
1151 | 1151 | } | |
1152 | 1152 | ||
1153 | 1153 | ||
1154 | 1154 | ||
1155 | - | @Callable( | |
1156 | - | func fromX18WrapperREADONLY (F, | |
1155 | + | @Callable(dk) | |
1156 | + | func fromX18WrapperREADONLY (F,fh) = $Tuple2(nil, E(parseBigIntValue(F), fh)) | |
1157 | 1157 | ||
1158 | 1158 | ||
1159 | 1159 | ||
1160 | - | @Callable( | |
1160 | + | @Callable(dk) | |
1161 | 1161 | func toX18WrapperREADONLY (C,D) = $Tuple2(nil, toString(B(C, D))) | |
1162 | 1162 | ||
1163 | 1163 | ||
1164 | 1164 | ||
1165 | - | @Callable( | |
1165 | + | @Callable(dk) | |
1166 | 1166 | func calcPriceBigIntWrapperREADONLY (bd,be) = $Tuple2(nil, toString(bc(parseBigIntValue(bd), parseBigIntValue(be)))) | |
1167 | 1167 | ||
1168 | 1168 | ||
1169 | 1169 | ||
1170 | - | @Callable( | |
1171 | - | func estimatePutOperationWrapperREADONLY (bJ,bi,ci,cj,ck,cl, | |
1170 | + | @Callable(dk) | |
1171 | + | func estimatePutOperationWrapperREADONLY (bJ,bi,ci,cj,ck,cl,fi,cm,cn) = $Tuple2(nil, ch(bJ, bi, ci, cj, ck, cl, fi, cm, cn, true, false, 0, "")) | |
1172 | 1172 | ||
1173 | 1173 | ||
1174 | 1174 | ||
1175 | - | @Callable( | |
1176 | - | func estimateGetOperationWrapperREADONLY (bJ, | |
1177 | - | let | |
1178 | - | $Tuple2(nil, $Tuple10( | |
1175 | + | @Callable(dk) | |
1176 | + | func estimateGetOperationWrapperREADONLY (bJ,fj,bL,fi) = { | |
1177 | + | let cC = bI(bJ, fj, bL, addressFromStringValue(fi)) | |
1178 | + | $Tuple2(nil, $Tuple10(cC._1, cC._2, cC._3, cC._4, cC._5, cC._6, cC._7, toString(cC._8), cC._9, cC._10)) | |
1179 | 1179 | } | |
1180 | 1180 | ||
1181 | 1181 | ||
1182 | - | @Verifier( | |
1183 | - | func | |
1184 | - | let | |
1185 | - | let as = | |
1182 | + | @Verifier(fk) | |
1183 | + | func fl () = { | |
1184 | + | let fm = { | |
1185 | + | let as = dp() | |
1186 | 1186 | if ($isInstanceOf(as, "ByteVector")) | |
1187 | 1187 | then { | |
1188 | - | let | |
1189 | - | | |
1188 | + | let du = as | |
1189 | + | du | |
1190 | 1190 | } | |
1191 | 1191 | else if ($isInstanceOf(as, "Unit")) | |
1192 | - | then | |
1192 | + | then fk.senderPublicKey | |
1193 | 1193 | else throw("Match error") | |
1194 | 1194 | } | |
1195 | - | let as = | |
1195 | + | let as = fk | |
1196 | 1196 | if ($isInstanceOf(as, "Order")) | |
1197 | 1197 | then { | |
1198 | - | let | |
1199 | - | let | |
1200 | - | let | |
1201 | - | let | |
1202 | - | let | |
1203 | - | if (if (if ( | |
1204 | - | then | |
1198 | + | let cX = as | |
1199 | + | let fn = aB() | |
1200 | + | let fo = cW(cX) | |
1201 | + | let fp = sigVerify(cX.bodyBytes, cX.proofs[0], cX.senderPublicKey) | |
1202 | + | let fq = sigVerify(cX.bodyBytes, cX.proofs[1], fn) | |
1203 | + | if (if (if (fo) | |
1204 | + | then fp | |
1205 | 1205 | else false) | |
1206 | - | then | |
1206 | + | then fq | |
1207 | 1207 | else false) | |
1208 | 1208 | then true | |
1209 | - | else an( | |
1209 | + | else an(fo, fp, fq) | |
1210 | 1210 | } | |
1211 | 1211 | else if ($isInstanceOf(as, "SetScriptTransaction")) | |
1212 | 1212 | then { | |
1213 | - | let | |
1214 | - | let | |
1215 | - | let | |
1216 | - | let | |
1217 | - | if (if (( | |
1218 | - | then ( | |
1213 | + | let dq = as | |
1214 | + | let fr = blake2b256(value(dq.script)) | |
1215 | + | let fs = fromBase64String(value(getString(ay, am()))) | |
1216 | + | let ft = scriptHash(this) | |
1217 | + | if (if ((fs == fr)) | |
1218 | + | then (ft != fr) | |
1219 | 1219 | else false) | |
1220 | 1220 | then true | |
1221 | - | else sigVerify( | |
1221 | + | else sigVerify(fk.bodyBytes, fk.proofs[0], fm) | |
1222 | 1222 | } | |
1223 | - | else sigVerify( | |
1223 | + | else sigVerify(fk.bodyBytes, fk.proofs[0], fm) | |
1224 | 1224 | } | |
1225 | 1225 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = 100000000 | |
5 | 5 | ||
6 | 6 | let b = toBigInt(100000000) | |
7 | 7 | ||
8 | 8 | let c = toBigInt(1000000000000000000) | |
9 | 9 | ||
10 | 10 | let d = toBigInt(0) | |
11 | 11 | ||
12 | 12 | let e = toBigInt(1) | |
13 | 13 | ||
14 | 14 | let f = toBigInt((a - ((a * 1) / a))) | |
15 | 15 | ||
16 | 16 | let g = "100" | |
17 | 17 | ||
18 | 18 | let h = "1" | |
19 | 19 | ||
20 | 20 | let i = "__" | |
21 | 21 | ||
22 | 22 | let j = "" | |
23 | 23 | ||
24 | 24 | let k = 1 | |
25 | 25 | ||
26 | 26 | let l = 2 | |
27 | 27 | ||
28 | 28 | let m = 3 | |
29 | 29 | ||
30 | 30 | let n = 4 | |
31 | 31 | ||
32 | 32 | let o = 1 | |
33 | 33 | ||
34 | 34 | let p = 2 | |
35 | 35 | ||
36 | 36 | let q = 3 | |
37 | 37 | ||
38 | 38 | let r = 4 | |
39 | 39 | ||
40 | 40 | let s = 5 | |
41 | 41 | ||
42 | 42 | let t = 6 | |
43 | 43 | ||
44 | 44 | let u = 7 | |
45 | 45 | ||
46 | 46 | let v = 8 | |
47 | 47 | ||
48 | 48 | let w = 9 | |
49 | 49 | ||
50 | 50 | let x = 1 | |
51 | 51 | ||
52 | 52 | let y = 7 | |
53 | 53 | ||
54 | 54 | let z = 10 | |
55 | 55 | ||
56 | 56 | let A = "%s__delay" | |
57 | 57 | ||
58 | 58 | func B (C,D) = fraction(toBigInt(C), c, toBigInt(D)) | |
59 | 59 | ||
60 | 60 | ||
61 | 61 | func E (F,G) = toInt(fraction(F, toBigInt(G), c)) | |
62 | 62 | ||
63 | 63 | ||
64 | 64 | func H (I,J,K) = fraction(I, J, K) | |
65 | 65 | ||
66 | 66 | ||
67 | 67 | func L (F) = if ((d > F)) | |
68 | 68 | then -(F) | |
69 | 69 | else F | |
70 | 70 | ||
71 | 71 | ||
72 | 72 | func M () = "%s__factoryContract" | |
73 | 73 | ||
74 | 74 | ||
75 | 75 | func N () = "%s__managerPublicKey" | |
76 | 76 | ||
77 | 77 | ||
78 | 78 | func O () = "%s__pendingManagerPublicKey" | |
79 | 79 | ||
80 | 80 | ||
81 | 81 | func P () = "%s%s__price__last" | |
82 | 82 | ||
83 | 83 | ||
84 | 84 | func Q (R,S) = makeString(["%s%s%d%d__price__history", toString(R), toString(S)], i) | |
85 | 85 | ||
86 | 86 | ||
87 | 87 | func T (U,V) = ((("%s%s%s__P__" + U) + "__") + V) | |
88 | 88 | ||
89 | 89 | ||
90 | 90 | func W (U,V) = ((("%s%s%s__G__" + U) + "__") + V) | |
91 | 91 | ||
92 | 92 | ||
93 | 93 | func X () = "%s__amountAsset" | |
94 | 94 | ||
95 | 95 | ||
96 | 96 | func Y () = "%s__priceAsset" | |
97 | 97 | ||
98 | 98 | ||
99 | 99 | func Z () = "%s__amp" | |
100 | 100 | ||
101 | 101 | ||
102 | 102 | func aa () = "%s__addonAddr" | |
103 | 103 | ||
104 | 104 | ||
105 | 105 | func ab (ac) = makeString(["%s%s__lastGetOneTknCall", ac], i) | |
106 | 106 | ||
107 | 107 | ||
108 | 108 | func ad (ac) = makeString(["%s%s__lastPutOneTknCall", ac], i) | |
109 | 109 | ||
110 | 110 | ||
111 | 111 | func ae () = "%s__factoryConfig" | |
112 | 112 | ||
113 | 113 | ||
114 | 114 | func af () = "%s%s__matcher__publicKey" | |
115 | 115 | ||
116 | 116 | ||
117 | 117 | func ag (ah,ai) = (((("%d%d%s__" + ah) + "__") + ai) + "__config") | |
118 | 118 | ||
119 | 119 | ||
120 | 120 | func aj (ak) = ("%s%s%s__mappings__baseAsset2internalId__" + ak) | |
121 | 121 | ||
122 | 122 | ||
123 | 123 | func al () = "%s__shutdown" | |
124 | 124 | ||
125 | 125 | ||
126 | 126 | func am () = "%s__allowedLpStableScriptHash" | |
127 | 127 | ||
128 | 128 | ||
129 | 129 | func an (ao,ap,aq) = throw(((((("Failed: ordValid=" + toString(ao)) + " sndrValid=") + toString(ap)) + " mtchrValid=") + toString(aq))) | |
130 | 130 | ||
131 | 131 | ||
132 | 132 | func ar (F) = { | |
133 | 133 | let as = F | |
134 | 134 | if ($isInstanceOf(as, "String")) | |
135 | 135 | then { | |
136 | 136 | let at = as | |
137 | 137 | at | |
138 | 138 | } | |
139 | 139 | else throw("fail cast to String") | |
140 | 140 | } | |
141 | 141 | ||
142 | 142 | ||
143 | 143 | func au (av,aw) = valueOrErrorMessage(getString(av, aw), makeString(["mandatory ", toString(av), ".", aw, " not defined"], "")) | |
144 | 144 | ||
145 | 145 | ||
146 | 146 | func ax (av,aw) = valueOrErrorMessage(getInteger(av, aw), makeString(["mandatory ", toString(av), ".", aw, " not defined"], "")) | |
147 | 147 | ||
148 | 148 | ||
149 | 149 | let ay = addressFromStringValue(au(this, M())) | |
150 | 150 | ||
151 | 151 | let az = au(this, Z()) | |
152 | 152 | ||
153 | 153 | func aA () = valueOrElse(getBoolean(ay, al()), false) | |
154 | 154 | ||
155 | 155 | ||
156 | 156 | func aB () = fromBase58String(au(ay, af())) | |
157 | 157 | ||
158 | 158 | ||
159 | 159 | func aC () = { | |
160 | 160 | let aD = au(this, X()) | |
161 | 161 | let aE = au(this, Y()) | |
162 | 162 | let aF = ax(ay, aj(aE)) | |
163 | 163 | let ah = ax(ay, aj(aD)) | |
164 | 164 | split(au(ay, ag(toString(ah), toString(aF))), i) | |
165 | 165 | } | |
166 | 166 | ||
167 | 167 | ||
168 | 168 | func aG () = split(au(ay, ae()), i) | |
169 | 169 | ||
170 | 170 | ||
171 | 171 | let aH = aG() | |
172 | 172 | ||
173 | 173 | let aI = valueOrErrorMessage(addressFromString(aH[x]), "Invalid staking contract address") | |
174 | 174 | ||
175 | 175 | let aJ = valueOrErrorMessage(addressFromString(aH[y]), "Invalid slipage contract address") | |
176 | 176 | ||
177 | 177 | let aK = valueOrErrorMessage(addressFromString(aH[z]), "Invalid gwx contract address") | |
178 | 178 | ||
179 | 179 | func aL (aM,aN,aO,aP,aQ,aR,aS,aT,aU,aV) = makeString(["%d%d%d%d%d%d%d%d%d%d", toString(aM), toString(aN), toString(aO), toString(aP), toString(aQ), toString(aR), toString(aS), toString(aT), toString(aU), toString(aV)], i) | |
180 | 180 | ||
181 | 181 | ||
182 | 182 | func aW (aX,aY,aZ,aP,aS,aT) = makeString(["%d%d%d%d%d%d", toString(aX), toString(aY), toString(aZ), toString(aP), toString(aS), toString(aT)], i) | |
183 | 183 | ||
184 | 184 | ||
185 | 185 | func ba (bb) = if ((bb == "WAVES")) | |
186 | 186 | then wavesBalance(this).available | |
187 | 187 | else assetBalance(this, fromBase58String(bb)) | |
188 | 188 | ||
189 | 189 | ||
190 | 190 | func bc (bd,be) = fraction(bd, c, be) | |
191 | 191 | ||
192 | 192 | ||
193 | 193 | func bf (bg,bh,bi) = { | |
194 | 194 | let bj = fraction((bg - bh), b, bh) | |
195 | 195 | let bk = ((bi - L(bj)) > d) | |
196 | 196 | if (!(bk)) | |
197 | 197 | then throw(("Big slpg: " + toString(bj))) | |
198 | 198 | else $Tuple2(bk, min([bg, bh])) | |
199 | 199 | } | |
200 | 200 | ||
201 | 201 | ||
202 | 202 | func bl (bm,bn,bo) = { | |
203 | 203 | let bj = fraction(bn, b, bm) | |
204 | 204 | let bp = (bo > bj) | |
205 | 205 | if (if (bp) | |
206 | 206 | then true | |
207 | 207 | else (bn > bm)) | |
208 | 208 | then throw(((((((toString(bn) + " ") + toString(bm)) + " ") + toString(bj)) + " ") + toString(bo))) | |
209 | 209 | else bp | |
210 | 210 | } | |
211 | 211 | ||
212 | 212 | ||
213 | 213 | func bq (br,bs,bt,bu) = { | |
214 | 214 | let bv = B(bt, br) | |
215 | 215 | let bw = B(bu, bs) | |
216 | 216 | bc(bw, bv) | |
217 | 217 | } | |
218 | 218 | ||
219 | 219 | ||
220 | 220 | func bx (bt,bu,by) = { | |
221 | 221 | let bz = aC() | |
222 | 222 | let bA = parseIntValue(bz[t]) | |
223 | 223 | let bB = parseIntValue(bz[u]) | |
224 | 224 | let bC = bq(bA, bB, bt, bu) | |
225 | 225 | let be = B(bt, bA) | |
226 | 226 | let bd = B(bu, bB) | |
227 | 227 | let bD = B(by, a) | |
228 | 228 | let bE = bc(be, bD) | |
229 | 229 | let bF = bc(bd, bD) | |
230 | 230 | [bC, bE, bF] | |
231 | 231 | } | |
232 | 232 | ||
233 | 233 | ||
234 | 234 | func bG (bt,bu,by) = { | |
235 | 235 | let bH = bx(bt, bu, by) | |
236 | 236 | [E(bH[0], a), E(bH[1], a), E(bH[2], a)] | |
237 | 237 | } | |
238 | 238 | ||
239 | 239 | ||
240 | 240 | func bI (bJ,bK,bL,bM) = { | |
241 | 241 | let bz = aC() | |
242 | 242 | let bN = bz[q] | |
243 | 243 | let bO = bz[r] | |
244 | 244 | let bP = bz[s] | |
245 | 245 | let bQ = parseIntValue(bz[t]) | |
246 | 246 | let bR = parseIntValue(bz[u]) | |
247 | 247 | let bS = bz[p] | |
248 | 248 | let bT = valueOrErrorMessage(assetInfo(fromBase58String(bN)), "Wrong LP id").quantity | |
249 | 249 | if ((bN != bK)) | |
250 | 250 | then throw("Wrong pmt asset") | |
251 | 251 | else { | |
252 | 252 | let bU = ba(bO) | |
253 | 253 | let bV = B(bU, bQ) | |
254 | 254 | let bW = ba(bP) | |
255 | 255 | let bX = B(bW, bR) | |
256 | 256 | let bY = bc(bX, bV) | |
257 | 257 | let bZ = E(bY, a) | |
258 | 258 | let ca = B(bL, a) | |
259 | 259 | let cb = B(bT, a) | |
260 | 260 | let cc = fraction(bV, ca, cb) | |
261 | 261 | let cd = fraction(bX, ca, cb) | |
262 | 262 | let ce = E(cc, bQ) | |
263 | 263 | let cf = E(cd, bR) | |
264 | 264 | let cg = if ((bJ == "")) | |
265 | 265 | then nil | |
266 | 266 | else [ScriptTransfer(bM, ce, if ((bO == "WAVES")) | |
267 | 267 | then unit | |
268 | 268 | else fromBase58String(bO)), ScriptTransfer(bM, cf, if ((bP == "WAVES")) | |
269 | 269 | then unit | |
270 | 270 | else fromBase58String(bP)), StringEntry(W(toString(bM), bJ), aW(ce, cf, bL, bZ, height, lastBlock.timestamp)), IntegerEntry(P(), bZ), IntegerEntry(Q(height, lastBlock.timestamp), bZ)] | |
271 | 271 | $Tuple10(ce, cf, bO, bP, bU, bW, bT, bY, bS, cg) | |
272 | 272 | } | |
273 | 273 | } | |
274 | 274 | ||
275 | 275 | ||
276 | - | func ch (bJ,bi,ci,cj,ck,cl,bM,cm,cn,co,cp,cq) = { | |
276 | + | func ch (bJ,bi,ci,cj,ck,cl,bM,cm,cn,co,cp,cq,cr) = { | |
277 | 277 | let bz = aC() | |
278 | 278 | let bN = fromBase58String(bz[q]) | |
279 | - | let | |
280 | - | let | |
281 | - | let | |
282 | - | let | |
283 | - | let | |
284 | - | let | |
279 | + | let cs = bz[r] | |
280 | + | let ct = bz[s] | |
281 | + | let cu = bz[v] | |
282 | + | let cv = bz[w] | |
283 | + | let cw = parseIntValue(bz[t]) | |
284 | + | let cx = parseIntValue(bz[u]) | |
285 | 285 | let bS = bz[p] | |
286 | - | let | |
286 | + | let cy = valueOrErrorMessage(assetInfo(bN), "Wr lp as").quantity | |
287 | 287 | let bU = if (cm) | |
288 | - | then ba(cr) | |
289 | - | else if (if (co) | |
290 | - | then (cq == cr) | |
291 | - | else false) | |
292 | - | then (ba(cr) - cp) | |
293 | - | else if (co) | |
294 | - | then ba(cr) | |
295 | - | else (ba(cr) - ci) | |
296 | - | let bW = if (cm) | |
297 | 288 | then ba(cs) | |
298 | 289 | else if (if (co) | |
299 | - | then ( | |
290 | + | then (cr == cs) | |
300 | 291 | else false) | |
301 | - | then (ba(cs) - | |
292 | + | then (ba(cs) - cq) | |
302 | 293 | else if (co) | |
303 | 294 | then ba(cs) | |
304 | - | else (ba(cs) - ck) | |
305 | - | let cy = B(ci, cv) | |
306 | - | let cz = B(ck, cw) | |
307 | - | let cA = bc(cz, cy) | |
308 | - | let bV = B(bU, cv) | |
309 | - | let bX = B(bW, cw) | |
310 | - | let cB = if ((cx == 0)) | |
295 | + | else (ba(cs) - ci) | |
296 | + | let bW = if (cm) | |
297 | + | then ba(ct) | |
298 | + | else if (if (co) | |
299 | + | then (cr == ct) | |
300 | + | else false) | |
301 | + | then (ba(ct) - cq) | |
302 | + | else if (co) | |
303 | + | then ba(ct) | |
304 | + | else (ba(ct) - ck) | |
305 | + | let cz = B(ci, cw) | |
306 | + | let cA = B(ck, cx) | |
307 | + | let cB = bc(cA, cz) | |
308 | + | let bV = B(bU, cw) | |
309 | + | let bX = B(bW, cx) | |
310 | + | let cC = if ((cy == 0)) | |
311 | 311 | then { | |
312 | 312 | let bY = d | |
313 | - | let | |
314 | - | let bD = pow(( | |
315 | - | $Tuple5(E(bD, a), E( | |
313 | + | let cD = d | |
314 | + | let bD = pow((cz * cA), 0, toBigInt(5), 1, 0, DOWN) | |
315 | + | $Tuple5(E(bD, a), E(cz, cw), E(cA, cx), bc((bX + cA), (bV + cz)), cD) | |
316 | 316 | } | |
317 | 317 | else { | |
318 | 318 | let bY = bc(bX, bV) | |
319 | - | let | |
320 | - | let | |
321 | - | if (if (( | |
322 | - | then ( | |
319 | + | let cE = fraction(L((bY - cB)), c, bY) | |
320 | + | let cD = B(bi, a) | |
321 | + | if (if (if (cp) | |
322 | + | then (bY != d) | |
323 | 323 | else false) | |
324 | - | then throw(((("Price slippage " + toString(cD)) + " > ") + toString(cC))) | |
324 | + | then (cE > cD) | |
325 | + | else false) | |
326 | + | then throw(((("Price slippage " + toString(cE)) + " > ") + toString(cD))) | |
325 | 327 | else { | |
326 | - | let | |
327 | - | let | |
328 | - | let | |
329 | - | let | |
330 | - | then $Tuple2( | |
331 | - | else $Tuple2( | |
332 | - | let | |
333 | - | let | |
334 | - | let bD = fraction( | |
335 | - | $Tuple5(E(bD, a), E( | |
328 | + | let cF = B(cy, a) | |
329 | + | let cG = fraction(cz, bY, c) | |
330 | + | let cH = fraction(cA, c, bY) | |
331 | + | let cI = if ((cG > cA)) | |
332 | + | then $Tuple2(cH, cA) | |
333 | + | else $Tuple2(cz, cG) | |
334 | + | let cJ = cI._1 | |
335 | + | let cK = cI._2 | |
336 | + | let bD = fraction(cF, cK, bX) | |
337 | + | $Tuple5(E(bD, a), E(cJ, cw), E(cK, cx), bY, cD) | |
336 | 338 | } | |
337 | 339 | } | |
338 | - | let | |
339 | - | let | |
340 | - | let | |
341 | - | let bZ = E( | |
342 | - | let | |
343 | - | if ((0 >= | |
340 | + | let cL = cC._1 | |
341 | + | let cM = cC._2 | |
342 | + | let cN = cC._3 | |
343 | + | let bZ = E(cC._4, a) | |
344 | + | let cO = E(cC._5, a) | |
345 | + | if ((0 >= cL)) | |
344 | 346 | then throw("LP <= 0") | |
345 | 347 | else { | |
346 | - | let | |
348 | + | let cP = if (!(cn)) | |
347 | 349 | then 0 | |
348 | - | else | |
349 | - | let | |
350 | - | let | |
351 | - | let | |
352 | - | then ( | |
350 | + | else cL | |
351 | + | let cQ = (ci - cM) | |
352 | + | let cR = (ck - cN) | |
353 | + | let cS = if (if (co) | |
354 | + | then (cr == cs) | |
353 | 355 | else false) | |
354 | - | then $Tuple2( | |
356 | + | then $Tuple2(cq, 0) | |
355 | 357 | else if (if (co) | |
356 | - | then ( | |
358 | + | then (cr == ct) | |
357 | 359 | else false) | |
358 | - | then $Tuple2(0, | |
359 | - | else $Tuple2( | |
360 | - | let | |
361 | - | let | |
362 | - | let | |
363 | - | $Tuple13( | |
360 | + | then $Tuple2(0, cq) | |
361 | + | else $Tuple2(cM, cN) | |
362 | + | let cT = cS._1 | |
363 | + | let cU = cS._2 | |
364 | + | let cV = [IntegerEntry(P(), bZ), IntegerEntry(Q(height, lastBlock.timestamp), bZ), StringEntry(T(bM, bJ), aL(cT, cU, cP, bZ, bi, cO, height, lastBlock.timestamp, cQ, cR))] | |
365 | + | $Tuple13(cL, cP, bZ, bU, bW, cy, bN, bS, cV, cQ, cR, cj, cl) | |
364 | 366 | } | |
365 | 367 | } | |
366 | 368 | ||
367 | 369 | ||
368 | - | func | |
370 | + | func cW (cX) = { | |
369 | 371 | let bz = aC() | |
370 | - | let | |
371 | - | let | |
372 | + | let cY = bz[r] | |
373 | + | let cZ = bz[s] | |
372 | 374 | let bS = parseIntValue(bz[p]) | |
373 | 375 | let bA = parseIntValue(bz[t]) | |
374 | 376 | let bB = parseIntValue(bz[u]) | |
375 | - | let cZ = ba(cX) | |
376 | 377 | let da = ba(cY) | |
377 | - | let bY = if ((cW.orderType == Buy)) | |
378 | - | then bq(bA, bB, (cZ + cW.amount), da) | |
379 | - | else bq(bA, bB, (cZ - cW.amount), da) | |
378 | + | let db = ba(cZ) | |
379 | + | let bY = if ((cX.orderType == Buy)) | |
380 | + | then bq(bA, bB, (da + cX.amount), db) | |
381 | + | else bq(bA, bB, (da - cX.amount), db) | |
380 | 382 | let bZ = E(bY, a) | |
381 | 383 | if (if (if (aA()) | |
382 | 384 | then true | |
383 | 385 | else (bS == m)) | |
384 | 386 | then true | |
385 | 387 | else (bS == n)) | |
386 | 388 | then throw("Admin blocked") | |
387 | 389 | else { | |
388 | - | let | |
389 | - | let | |
390 | + | let dc = cX.assetPair.amountAsset | |
391 | + | let dd = if ((dc == unit)) | |
390 | 392 | then "WAVES" | |
391 | - | else toBase58String(value( | |
392 | - | let | |
393 | - | let | |
393 | + | else toBase58String(value(dc)) | |
394 | + | let de = cX.assetPair.priceAsset | |
395 | + | let df = if ((de == unit)) | |
394 | 396 | then "WAVES" | |
395 | - | else toBase58String(value( | |
396 | - | if (if (( | |
397 | + | else toBase58String(value(de)) | |
398 | + | if (if ((dd != cY)) | |
397 | 399 | then true | |
398 | - | else ( | |
400 | + | else (df != cZ)) | |
399 | 401 | then throw("Wr assets") | |
400 | 402 | else { | |
401 | - | let | |
402 | - | let | |
403 | - | let | |
404 | - | let | |
405 | - | then (bZ >= | |
406 | - | else ( | |
403 | + | let dg = cX.price | |
404 | + | let cx = fraction(a, bB, bA) | |
405 | + | let dh = H(dg, a, cx) | |
406 | + | let di = if ((cX.orderType == Buy)) | |
407 | + | then (bZ >= dh) | |
408 | + | else (dh >= bZ) | |
407 | 409 | true | |
408 | 410 | } | |
409 | 411 | } | |
410 | 412 | } | |
411 | 413 | ||
412 | 414 | ||
413 | - | func | |
415 | + | func dj (dk) = if ((size(dk.payments) != 1)) | |
414 | 416 | then throw("1 pmnt exp") | |
415 | 417 | else { | |
416 | - | let | |
417 | - | let bK = value( | |
418 | - | let | |
419 | - | let | |
420 | - | let ce = | |
421 | - | let cf = | |
422 | - | let bS = parseIntValue( | |
423 | - | let cg = | |
418 | + | let dl = value(dk.payments[0]) | |
419 | + | let bK = value(dl.assetId) | |
420 | + | let cq = dl.amount | |
421 | + | let cC = bI(toBase58String(dk.transactionId), toBase58String(bK), cq, dk.caller) | |
422 | + | let ce = cC._1 | |
423 | + | let cf = cC._2 | |
424 | + | let bS = parseIntValue(cC._9) | |
425 | + | let cg = cC._10 | |
424 | 426 | if (if (aA()) | |
425 | 427 | then true | |
426 | 428 | else (bS == n)) | |
427 | 429 | then throw(("Admin blocked: " + toString(bS))) | |
428 | - | else $Tuple5(ce, cf, | |
430 | + | else $Tuple5(ce, cf, cq, bK, cg) | |
429 | 431 | } | |
430 | 432 | ||
431 | 433 | ||
432 | - | func | |
433 | - | let | |
434 | - | let bS = parseIntValue( | |
434 | + | func dm (ac,V,dn,do,bi,cn,co,cp,cq,cr) = { | |
435 | + | let cC = ch(V, bi, value(dn).amount, value(dn).assetId, value(do).amount, value(do).assetId, ac, false, cn, co, cp, cq, cr) | |
436 | + | let bS = parseIntValue(cC._8) | |
435 | 437 | if (if (if (aA()) | |
436 | 438 | then true | |
437 | 439 | else (bS == l)) | |
438 | 440 | then true | |
439 | 441 | else (bS == n)) | |
440 | 442 | then throw(("Blocked:" + toString(bS))) | |
441 | - | else | |
443 | + | else cC | |
442 | 444 | } | |
443 | 445 | ||
444 | 446 | ||
445 | - | func | |
447 | + | func dp () = { | |
446 | 448 | let as = getString(N()) | |
447 | 449 | if ($isInstanceOf(as, "String")) | |
448 | 450 | then { | |
449 | - | let | |
450 | - | fromBase58String( | |
451 | + | let dq = as | |
452 | + | fromBase58String(dq) | |
451 | 453 | } | |
452 | 454 | else if ($isInstanceOf(as, "Unit")) | |
453 | 455 | then unit | |
454 | 456 | else throw("Match error") | |
455 | 457 | } | |
456 | 458 | ||
457 | 459 | ||
458 | - | func | |
460 | + | func dr () = { | |
459 | 461 | let as = getString(O()) | |
460 | 462 | if ($isInstanceOf(as, "String")) | |
461 | 463 | then { | |
462 | - | let | |
463 | - | fromBase58String( | |
464 | + | let dq = as | |
465 | + | fromBase58String(dq) | |
464 | 466 | } | |
465 | 467 | else if ($isInstanceOf(as, "Unit")) | |
466 | 468 | then unit | |
467 | 469 | else throw("Match error") | |
468 | 470 | } | |
469 | 471 | ||
470 | 472 | ||
471 | - | let | |
473 | + | let ds = throw("Permission denied") | |
472 | 474 | ||
473 | - | func | |
474 | - | let as = | |
475 | + | func dt (dk) = { | |
476 | + | let as = dp() | |
475 | 477 | if ($isInstanceOf(as, "ByteVector")) | |
476 | 478 | then { | |
477 | - | let | |
478 | - | if (( | |
479 | + | let du = as | |
480 | + | if ((dk.callerPublicKey == du)) | |
479 | 481 | then true | |
480 | - | else | |
482 | + | else ds | |
481 | 483 | } | |
482 | 484 | else if ($isInstanceOf(as, "Unit")) | |
483 | - | then if (( | |
485 | + | then if ((dk.caller == this)) | |
484 | 486 | then true | |
485 | - | else | |
487 | + | else ds | |
486 | 488 | else throw("Match error") | |
487 | 489 | } | |
488 | 490 | ||
489 | 491 | ||
490 | - | @Callable( | |
492 | + | @Callable(dk) | |
491 | 493 | func constructor (M) = { | |
492 | - | let | |
493 | - | if (( | |
494 | + | let dv = dt(dk) | |
495 | + | if ((dv == dv)) | |
494 | 496 | then [StringEntry(M(), M)] | |
495 | 497 | else throw("Strict value is not equal to itself.") | |
496 | 498 | } | |
497 | 499 | ||
498 | 500 | ||
499 | 501 | ||
500 | - | @Callable( | |
501 | - | func setManager ( | |
502 | - | let | |
503 | - | if (( | |
502 | + | @Callable(dk) | |
503 | + | func setManager (dw) = { | |
504 | + | let dv = dt(dk) | |
505 | + | if ((dv == dv)) | |
504 | 506 | then { | |
505 | - | let | |
506 | - | if (( | |
507 | - | then [StringEntry(O(), | |
507 | + | let dx = fromBase58String(dw) | |
508 | + | if ((dx == dx)) | |
509 | + | then [StringEntry(O(), dw)] | |
508 | 510 | else throw("Strict value is not equal to itself.") | |
509 | 511 | } | |
510 | 512 | else throw("Strict value is not equal to itself.") | |
511 | 513 | } | |
512 | 514 | ||
513 | 515 | ||
514 | 516 | ||
515 | - | @Callable( | |
517 | + | @Callable(dk) | |
516 | 518 | func confirmManager () = { | |
517 | - | let bH = | |
518 | - | let | |
519 | + | let bH = dr() | |
520 | + | let dy = if (isDefined(bH)) | |
519 | 521 | then true | |
520 | 522 | else throw("No pending manager") | |
521 | - | if (( | |
523 | + | if ((dy == dy)) | |
522 | 524 | then { | |
523 | - | let | |
525 | + | let dz = if ((dk.callerPublicKey == value(bH))) | |
524 | 526 | then true | |
525 | 527 | else throw("You are not pending manager") | |
526 | - | if (( | |
528 | + | if ((dz == dz)) | |
527 | 529 | then [StringEntry(N(), toBase58String(value(bH))), DeleteEntry(O())] | |
528 | 530 | else throw("Strict value is not equal to itself.") | |
529 | 531 | } | |
530 | 532 | else throw("Strict value is not equal to itself.") | |
531 | 533 | } | |
532 | 534 | ||
533 | 535 | ||
534 | 536 | ||
535 | - | @Callable( | |
536 | - | func put ( | |
537 | - | let | |
538 | - | let | |
539 | - | let | |
540 | - | if ((0 > | |
537 | + | @Callable(dk) | |
538 | + | func put (dA,dB) = { | |
539 | + | let dC = aG() | |
540 | + | let dD = valueOrErrorMessage(addressFromString(dC[x]), "Wr st addr") | |
541 | + | let dE = valueOrErrorMessage(addressFromString(dC[y]), "Wr sl addr") | |
542 | + | if ((0 > dA)) | |
541 | 543 | then throw("Wrong slippage") | |
542 | - | else if ((size( | |
544 | + | else if ((size(dk.payments) != 2)) | |
543 | 545 | then throw("2 pmnts expd") | |
544 | 546 | else { | |
545 | - | let | |
546 | - | let | |
547 | - | let | |
548 | - | let cg = | |
549 | - | let | |
550 | - | let | |
551 | - | let bO = | |
552 | - | let bP = | |
553 | - | let | |
554 | - | if (( | |
547 | + | let dF = dm(toString(dk.caller), toBase58String(dk.transactionId), AttachedPayment(value(dk.payments[0]).assetId, value(dk.payments[0]).amount), dk.payments[1], dA, true, false, true, 0, "") | |
548 | + | let cP = dF._2 | |
549 | + | let dG = dF._7 | |
550 | + | let cg = dF._9 | |
551 | + | let cQ = dF._10 | |
552 | + | let cR = dF._11 | |
553 | + | let bO = dF._12 | |
554 | + | let bP = dF._13 | |
555 | + | let cC = invoke(ay, "emit", [cP], nil) | |
556 | + | if ((cC == cC)) | |
555 | 557 | then { | |
556 | - | let | |
557 | - | let as = | |
558 | + | let dH = { | |
559 | + | let as = cC | |
558 | 560 | if ($isInstanceOf(as, "Address")) | |
559 | 561 | then { | |
560 | - | let | |
561 | - | invoke( | |
562 | + | let dI = as | |
563 | + | invoke(dI, "emit", [cP], nil) | |
562 | 564 | } | |
563 | 565 | else unit | |
564 | 566 | } | |
565 | - | if (( | |
567 | + | if ((dH == dH)) | |
566 | 568 | then { | |
567 | - | let | |
568 | - | then invoke( | |
569 | + | let dJ = if ((cQ > 0)) | |
570 | + | then invoke(dE, "put", nil, [AttachedPayment(bO, cQ)]) | |
569 | 571 | else nil | |
570 | - | if (( | |
572 | + | if ((dJ == dJ)) | |
571 | 573 | then { | |
572 | - | let | |
573 | - | then invoke( | |
574 | + | let dK = if ((cR > 0)) | |
575 | + | then invoke(dE, "put", nil, [AttachedPayment(bP, cR)]) | |
574 | 576 | else nil | |
575 | - | if (( | |
577 | + | if ((dK == dK)) | |
576 | 578 | then { | |
577 | - | let | |
579 | + | let dL = if (dB) | |
578 | 580 | then { | |
579 | - | let | |
580 | - | if (( | |
581 | + | let dM = invoke(dD, "stake", nil, [AttachedPayment(dG, cP)]) | |
582 | + | if ((dM == dM)) | |
581 | 583 | then nil | |
582 | 584 | else throw("Strict value is not equal to itself.") | |
583 | 585 | } | |
584 | - | else [ScriptTransfer( | |
585 | - | (cg ++ | |
586 | + | else [ScriptTransfer(dk.caller, cP, dG)] | |
587 | + | (cg ++ dL) | |
586 | 588 | } | |
587 | 589 | else throw("Strict value is not equal to itself.") | |
588 | 590 | } | |
589 | 591 | else throw("Strict value is not equal to itself.") | |
590 | 592 | } | |
591 | 593 | else throw("Strict value is not equal to itself.") | |
592 | 594 | } | |
593 | 595 | else throw("Strict value is not equal to itself.") | |
594 | 596 | } | |
595 | 597 | } | |
596 | 598 | ||
597 | 599 | ||
598 | 600 | ||
599 | - | @Callable( | |
600 | - | func putOneTkn ( | |
601 | + | @Callable(dk) | |
602 | + | func putOneTkn (dN,dO,dP,bi,dB) = { | |
601 | 603 | let bz = aG() | |
602 | - | let | |
603 | - | let | |
604 | - | let | |
605 | - | let | |
606 | - | let bO = | |
607 | - | let bP = | |
608 | - | let bQ = parseIntValue( | |
609 | - | let bR = parseIntValue( | |
610 | - | let | |
611 | - | let bM = if (( | |
612 | - | then | |
613 | - | else | |
614 | - | let | |
615 | - | let | |
616 | - | if (( | |
604 | + | let dD = valueOrErrorMessage(addressFromString(bz[x]), "Wr st addr") | |
605 | + | let dE = valueOrErrorMessage(addressFromString(bz[y]), "Wr sl addr") | |
606 | + | let dQ = valueOrErrorMessage(addressFromString(bz[z]), "Wr gwx addr") | |
607 | + | let dR = aC() | |
608 | + | let bO = dR[r] | |
609 | + | let bP = dR[s] | |
610 | + | let bQ = parseIntValue(dR[t]) | |
611 | + | let bR = parseIntValue(dR[u]) | |
612 | + | let dS = valueOrElse(getString(this, aa()), "") | |
613 | + | let bM = if ((dS == toString(dk.caller))) | |
614 | + | then dk.originCaller | |
615 | + | else dk.caller | |
616 | + | let dT = valueOrErrorMessage(addressFromString(valueOrErrorMessage(getString(aa()), "no addons")), "addon address in not valid") | |
617 | + | let dU = reentrantInvoke(dT, "ensureCanPutOneTkn", [toString(bM)], nil) | |
618 | + | if ((dU == dU)) | |
617 | 619 | then if (if (if (if ((0 >= bi)) | |
618 | - | then true | |
619 | - | else (0 >= dM)) | |
620 | 620 | then true | |
621 | 621 | else (0 >= dN)) | |
622 | 622 | then true | |
623 | 623 | else (0 >= dO)) | |
624 | + | then true | |
625 | + | else (0 >= dP)) | |
624 | 626 | then throw("Wrong params") | |
625 | - | else if ((size( | |
627 | + | else if ((size(dk.payments) != 1)) | |
626 | 628 | then throw("1 pmnt expd") | |
627 | 629 | else { | |
628 | - | let | |
629 | - | let bK = toBase58String(value( | |
630 | - | let | |
631 | - | if ((10000000 > | |
630 | + | let dl = value(dk.payments[0]) | |
631 | + | let bK = toBase58String(value(dl.assetId)) | |
632 | + | let cq = dl.amount | |
633 | + | if ((10000000 > cq)) | |
632 | 634 | then throw("Wrong pmt amt") | |
633 | 635 | else { | |
634 | 636 | let bU = ba(bO) | |
635 | 637 | let bW = ba(bP) | |
636 | - | let | |
637 | - | then if (if (( | |
638 | + | let dV = if ((bK == bO)) | |
639 | + | then if (if ((cq > bU)) | |
638 | 640 | then true | |
639 | - | else ( | |
641 | + | else (dN > cq)) | |
640 | 642 | then throw("invalid payment amount") | |
641 | - | else $Tuple6((bU - | |
643 | + | else $Tuple6((bU - cq), bW, (cq - dN), dO, 0, 0) | |
642 | 644 | else if ((bK == bP)) | |
643 | - | then if (if (( | |
645 | + | then if (if ((cq > bW)) | |
644 | 646 | then true | |
645 | - | else ( | |
647 | + | else (dO > cq)) | |
646 | 648 | then throw("invalid payment amount") | |
647 | - | else $Tuple6(bU, (bW - | |
649 | + | else $Tuple6(bU, (bW - cq), 0, 0, (cq - dO), dN) | |
648 | 650 | else throw("wrong pmtAssetId") | |
649 | - | let | |
650 | - | let | |
651 | - | let | |
652 | - | let | |
653 | - | let | |
654 | - | let | |
655 | - | let bn = invoke( | |
656 | - | let bm = invoke( | |
657 | - | let | |
658 | - | if (( | |
651 | + | let dW = dV._1 | |
652 | + | let dX = dV._2 | |
653 | + | let dY = dV._3 | |
654 | + | let dZ = dV._4 | |
655 | + | let ea = dV._5 | |
656 | + | let eb = dV._6 | |
657 | + | let bn = invoke(dQ, "calcD", [toString(dW), toString(dX), az, g, h], nil) | |
658 | + | let bm = invoke(dQ, "calcD", [toString(toBigInt(((dW + dY) - eb))), toString(toBigInt(((dX + ea) - dZ))), az, g, h], nil) | |
659 | + | let ec = bl(parseBigIntValue(ar(bm)), parseBigIntValue(ar(bn)), f) | |
660 | + | if ((ec == ec)) | |
659 | 661 | then { | |
660 | - | let | |
661 | - | let | |
662 | - | let | |
663 | - | let cg = | |
664 | - | let | |
665 | - | let | |
666 | - | let | |
667 | - | let | |
668 | - | let | |
669 | - | if (( | |
662 | + | let ed = dm(toString(dk.caller), toBase58String(dk.transactionId), AttachedPayment(fromBase58String(bO), dN), AttachedPayment(fromBase58String(bP), dO), bi, true, true, true, cq, bK) | |
663 | + | let ee = ed._2 | |
664 | + | let dG = ed._7 | |
665 | + | let cg = ed._9 | |
666 | + | let cQ = ed._10 | |
667 | + | let cR = ed._11 | |
668 | + | let ef = bf(toBigInt(ee), toBigInt(dP), toBigInt(bi)) | |
669 | + | let cP = toInt(ef._2) | |
670 | + | let dF = invoke(ay, "emit", [cP], nil) | |
671 | + | if ((dF == dF)) | |
670 | 672 | then { | |
671 | - | let | |
672 | - | let as = | |
673 | + | let dH = { | |
674 | + | let as = dF | |
673 | 675 | if ($isInstanceOf(as, "Address")) | |
674 | 676 | then { | |
675 | - | let | |
676 | - | invoke( | |
677 | + | let dI = as | |
678 | + | invoke(dI, "emit", [cP], nil) | |
677 | 679 | } | |
678 | 680 | else unit | |
679 | 681 | } | |
680 | - | if (( | |
682 | + | if ((dH == dH)) | |
681 | 683 | then { | |
682 | - | let | |
683 | - | then invoke( | |
684 | + | let dJ = if ((cQ > 0)) | |
685 | + | then invoke(dE, "put", nil, [AttachedPayment(fromBase58String(bO), cQ)]) | |
684 | 686 | else nil | |
685 | - | if (( | |
687 | + | if ((dJ == dJ)) | |
686 | 688 | then { | |
687 | - | let | |
688 | - | then invoke( | |
689 | + | let dK = if ((cR > 0)) | |
690 | + | then invoke(dE, "put", nil, [AttachedPayment(fromBase58String(bP), cR)]) | |
689 | 691 | else nil | |
690 | - | if (( | |
692 | + | if ((dK == dK)) | |
691 | 693 | then { | |
692 | - | let | |
694 | + | let dL = if (dB) | |
693 | 695 | then { | |
694 | - | let | |
695 | - | if (( | |
696 | + | let dM = invoke(dD, "stake", nil, [AttachedPayment(dG, cP)]) | |
697 | + | if ((dM == dM)) | |
696 | 698 | then nil | |
697 | 699 | else throw("Strict value is not equal to itself.") | |
698 | 700 | } | |
699 | - | else [ScriptTransfer( | |
700 | - | (cg ++ | |
701 | + | else [ScriptTransfer(dk.caller, cP, dG)] | |
702 | + | (cg ++ dL) | |
701 | 703 | } | |
702 | 704 | else throw("Strict value is not equal to itself.") | |
703 | 705 | } | |
704 | 706 | else throw("Strict value is not equal to itself.") | |
705 | 707 | } | |
706 | 708 | else throw("Strict value is not equal to itself.") | |
707 | 709 | } | |
708 | 710 | else throw("Strict value is not equal to itself.") | |
709 | 711 | } | |
710 | 712 | else throw("Strict value is not equal to itself.") | |
711 | 713 | } | |
712 | 714 | } | |
713 | 715 | else throw("Strict value is not equal to itself.") | |
714 | 716 | } | |
715 | 717 | ||
716 | 718 | ||
717 | 719 | ||
718 | - | @Callable( | |
719 | - | func putOneTknV2 ( | |
720 | + | @Callable(dk) | |
721 | + | func putOneTknV2 (eg,dB) = if ((size(dk.payments) != 1)) | |
720 | 722 | then throw("1 pmnt expd") | |
721 | 723 | else { | |
722 | - | let | |
723 | - | let bO = | |
724 | - | let bP = | |
725 | - | let | |
726 | - | let | |
727 | - | let bM = if (( | |
728 | - | then | |
729 | - | else | |
730 | - | let | |
731 | - | let bK = toBase58String(value( | |
732 | - | let | |
733 | - | if ((10000000 > | |
724 | + | let eh = aC() | |
725 | + | let bO = eh[r] | |
726 | + | let bP = eh[s] | |
727 | + | let ei = parseIntValue(eh[t]) | |
728 | + | let ej = parseIntValue(eh[u]) | |
729 | + | let bM = if ((dk.caller == this)) | |
730 | + | then dk.originCaller | |
731 | + | else dk.caller | |
732 | + | let dl = value(dk.payments[0]) | |
733 | + | let bK = toBase58String(value(dl.assetId)) | |
734 | + | let cq = dl.amount | |
735 | + | if ((10000000 > cq)) | |
734 | 736 | then throw("Wrong pmt amt") | |
735 | 737 | else { | |
736 | 738 | let bU = ba(bO) | |
737 | 739 | let bW = ba(bP) | |
738 | - | let | |
739 | - | then if (( | |
740 | + | let ek = if ((bK == bO)) | |
741 | + | then if ((cq > bU)) | |
740 | 742 | then throw("invalid payment amount") | |
741 | - | else $Tuple2((bU - | |
743 | + | else $Tuple2((bU - cq), bW) | |
742 | 744 | else if ((bK == bP)) | |
743 | - | then if (( | |
745 | + | then if ((cq > bW)) | |
744 | 746 | then throw("invalid payment amount") | |
745 | - | else $Tuple2(bU, (bW - | |
747 | + | else $Tuple2(bU, (bW - cq)) | |
746 | 748 | else throw("wrong pmtAssetId") | |
747 | - | let | |
748 | - | let | |
749 | - | let | |
750 | - | then $Tuple2( | |
751 | - | else $Tuple2( | |
752 | - | let | |
753 | - | let | |
754 | - | let | |
755 | - | let | |
756 | - | let | |
757 | - | if ($isInstanceOf( | |
758 | - | then | |
759 | - | else throw(($getType(invoke(aK, "calcPutXOnly", [toString( | |
749 | + | let dW = ek._1 | |
750 | + | let dX = ek._2 | |
751 | + | let el = if ((bK == bO)) | |
752 | + | then $Tuple2(dW, dX) | |
753 | + | else $Tuple2(dX, dW) | |
754 | + | let em = el._1 | |
755 | + | let en = el._2 | |
756 | + | let eo = 1 | |
757 | + | let ep = { | |
758 | + | let eq = invoke(aK, "calcPutXOnly", [toString(cq), toString(em), toString(en), "", az, g, toString(eo), h], nil) | |
759 | + | if ($isInstanceOf(eq, "(Int, Int)")) | |
760 | + | then eq | |
761 | + | else throw(($getType(invoke(aK, "calcPutXOnly", [toString(cq), toString(em), toString(en), "", az, g, toString(eo), h], nil)) + " couldn't be cast to (Int, Int)")) | |
760 | 762 | } | |
761 | - | let ep = if ((bK == bO)) | |
762 | - | then en | |
763 | - | else $Tuple2(en._2, en._1) | |
764 | - | let dM = ep._1 | |
765 | - | let dN = ep._2 | |
766 | - | let ec = dl(toString(dj.caller), toBase58String(dj.transactionId), AttachedPayment(fromBase58String(bO), dM), AttachedPayment(fromBase58String(bP), dN), bi, true, true, cp, bK) | |
767 | - | let ed = ec._2 | |
768 | - | let dF = ec._7 | |
769 | - | let cg = ec._9 | |
770 | - | let cP = ec._10 | |
771 | - | let cQ = ec._11 | |
772 | - | let cO = if ((dO > 0)) | |
763 | + | let er = if ((bK == bO)) | |
764 | + | then ep | |
765 | + | else $Tuple2(ep._2, ep._1) | |
766 | + | let dN = er._1 | |
767 | + | let dO = er._2 | |
768 | + | let ed = dm(toString(dk.caller), toBase58String(dk.transactionId), AttachedPayment(fromBase58String(bO), dN), AttachedPayment(fromBase58String(bP), dO), 0, true, true, false, cq, bK) | |
769 | + | let ee = ed._2 | |
770 | + | let dG = ed._7 | |
771 | + | let cg = ed._9 | |
772 | + | let cQ = ed._10 | |
773 | + | let cR = ed._11 | |
774 | + | let cP = if (if ((eg > 0)) | |
775 | + | then (eg > ee) | |
776 | + | else false) | |
777 | + | then throw(makeString(["amount to receive is less than ", toString(eg)], "")) | |
778 | + | else ee | |
779 | + | let dF = invoke(ay, "emit", [cP], nil) | |
780 | + | if ((dF == dF)) | |
773 | 781 | then { | |
774 | - | let ee = bf(toBigInt(ed), toBigInt(dO), toBigInt(bi)) | |
775 | - | toInt(ee._2) | |
776 | - | } | |
777 | - | else ed | |
778 | - | let dE = invoke(ay, "emit", [cO], nil) | |
779 | - | if ((dE == dE)) | |
780 | - | then { | |
781 | - | let dG = { | |
782 | - | let as = dE | |
782 | + | let dH = { | |
783 | + | let as = dF | |
783 | 784 | if ($isInstanceOf(as, "Address")) | |
784 | 785 | then { | |
785 | - | let | |
786 | - | invoke( | |
786 | + | let dI = as | |
787 | + | invoke(dI, "emit", [cP], nil) | |
787 | 788 | } | |
788 | 789 | else unit | |
789 | 790 | } | |
790 | - | if (( | |
791 | + | if ((dH == dH)) | |
791 | 792 | then { | |
792 | - | let | |
793 | - | then invoke(aJ, "put", nil, [AttachedPayment(fromBase58String(bO), | |
793 | + | let dJ = if ((cQ > 0)) | |
794 | + | then invoke(aJ, "put", nil, [AttachedPayment(fromBase58String(bO), cQ)]) | |
794 | 795 | else nil | |
795 | - | if (( | |
796 | + | if ((dJ == dJ)) | |
796 | 797 | then { | |
797 | - | let | |
798 | - | then invoke(aJ, "put", nil, [AttachedPayment(fromBase58String(bP), | |
798 | + | let dK = if ((cR > 0)) | |
799 | + | then invoke(aJ, "put", nil, [AttachedPayment(fromBase58String(bP), cR)]) | |
799 | 800 | else nil | |
800 | - | if (( | |
801 | + | if ((dK == dK)) | |
801 | 802 | then { | |
802 | - | let | |
803 | + | let dL = if (dB) | |
803 | 804 | then { | |
804 | - | let | |
805 | - | if (( | |
805 | + | let dM = invoke(aI, "stake", nil, [AttachedPayment(dG, cP)]) | |
806 | + | if ((dM == dM)) | |
806 | 807 | then nil | |
807 | 808 | else throw("Strict value is not equal to itself.") | |
808 | 809 | } | |
809 | - | else [ScriptTransfer( | |
810 | - | (cg ++ | |
810 | + | else [ScriptTransfer(dk.caller, cP, dG)] | |
811 | + | (cg ++ dL) | |
811 | 812 | } | |
812 | 813 | else throw("Strict value is not equal to itself.") | |
813 | 814 | } | |
814 | 815 | else throw("Strict value is not equal to itself.") | |
815 | 816 | } | |
816 | 817 | else throw("Strict value is not equal to itself.") | |
817 | 818 | } | |
818 | 819 | else throw("Strict value is not equal to itself.") | |
819 | 820 | } | |
820 | 821 | } | |
821 | 822 | ||
822 | 823 | ||
823 | 824 | ||
824 | - | @Callable( | |
825 | - | func putForFree ( | |
825 | + | @Callable(dk) | |
826 | + | func putForFree (es) = if ((0 > es)) | |
826 | 827 | then throw("Wrong slpg") | |
827 | - | else if ((size( | |
828 | + | else if ((size(dk.payments) != 2)) | |
828 | 829 | then throw("2 pmnts expd") | |
829 | 830 | else { | |
830 | - | let | |
831 | - | | |
831 | + | let ed = dm(toString(dk.caller), toBase58String(dk.transactionId), AttachedPayment(value(dk.payments[0]).assetId, value(dk.payments[0]).amount), dk.payments[1], es, false, false, true, 0, "") | |
832 | + | ed._9 | |
832 | 833 | } | |
833 | 834 | ||
834 | 835 | ||
835 | 836 | ||
836 | - | @Callable( | |
837 | + | @Callable(dk) | |
837 | 838 | func get () = { | |
838 | - | let | |
839 | - | let | |
840 | - | let cf = | |
841 | - | let | |
842 | - | let bK = | |
843 | - | let cg = | |
844 | - | let | |
845 | - | if (( | |
839 | + | let cC = dj(dk) | |
840 | + | let et = cC._1 | |
841 | + | let cf = cC._2 | |
842 | + | let cq = cC._3 | |
843 | + | let bK = cC._4 | |
844 | + | let cg = cC._5 | |
845 | + | let eu = invoke(ay, "burn", [cq], [AttachedPayment(bK, cq)]) | |
846 | + | if ((eu == eu)) | |
846 | 847 | then cg | |
847 | 848 | else throw("Strict value is not equal to itself.") | |
848 | 849 | } | |
849 | 850 | ||
850 | 851 | ||
851 | 852 | ||
852 | - | @Callable( | |
853 | - | func getOneTkn ( | |
853 | + | @Callable(dk) | |
854 | + | func getOneTkn (ev,ew,ex,ey,bi) = if ((size(dk.payments) != 1)) | |
854 | 855 | then throw("1 pmnt expd") | |
855 | 856 | else { | |
856 | 857 | let bz = aC() | |
857 | 858 | let bN = bz[q] | |
858 | 859 | let bO = bz[r] | |
859 | 860 | let bP = bz[s] | |
860 | 861 | let bQ = parseIntValue(bz[t]) | |
861 | 862 | let bR = parseIntValue(bz[u]) | |
862 | 863 | let bS = bz[p] | |
863 | - | let | |
864 | - | let | |
865 | - | let | |
866 | - | let | |
867 | - | let bM = if (( | |
868 | - | then | |
869 | - | else | |
870 | - | let bJ = toBase58String( | |
871 | - | let bK = value( | |
872 | - | let | |
873 | - | let | |
874 | - | let | |
875 | - | if (( | |
876 | - | then if ((1000000000 > | |
864 | + | let dC = aG() | |
865 | + | let dQ = valueOrErrorMessage(addressFromString(dC[z]), "Wr sl addr") | |
866 | + | let dl = value(dk.payments[0]) | |
867 | + | let dS = valueOrElse(getString(this, aa()), "") | |
868 | + | let bM = if ((dS == toString(dk.caller))) | |
869 | + | then dk.originCaller | |
870 | + | else dk.caller | |
871 | + | let bJ = toBase58String(dk.transactionId) | |
872 | + | let bK = value(dl.assetId) | |
873 | + | let cq = dl.amount | |
874 | + | let dT = valueOrErrorMessage(addressFromString(valueOrErrorMessage(getString(aa()), "no addons")), "addon address in not valid") | |
875 | + | let dU = reentrantInvoke(dT, "ensureCanGetOneTkn", [toString(bM)], nil) | |
876 | + | if ((dU == dU)) | |
877 | + | then if ((1000000000 > cq)) | |
877 | 878 | then throw("Min pmt 10 LP") | |
878 | 879 | else if (if (if ((0 > bi)) | |
879 | 880 | then true | |
880 | - | else (0 > | |
881 | + | else (0 > ev)) | |
881 | 882 | then true | |
882 | - | else (0 > | |
883 | + | else (0 > ex)) | |
883 | 884 | then throw("Wrong params") | |
884 | 885 | else if ((bN != toBase58String(bK))) | |
885 | 886 | then throw("Wrong LP") | |
886 | 887 | else { | |
887 | - | let | |
888 | - | let | |
889 | - | let | |
888 | + | let cC = bI(toBase58String(dk.transactionId), toBase58String(bK), cq, dk.caller) | |
889 | + | let ez = cC._1 | |
890 | + | let eA = cC._2 | |
890 | 891 | let bU = ba(bO) | |
891 | 892 | let bW = ba(bP) | |
892 | - | let | |
893 | - | then $Tuple7((bU - | |
894 | - | else if (( | |
895 | - | then $Tuple7((bU - | |
893 | + | let eB = if ((ey == bO)) | |
894 | + | then $Tuple7((bU - ez), (bW - eA), ev, eA, 0, 0, (ez + ev)) | |
895 | + | else if ((ey == bP)) | |
896 | + | then $Tuple7((bU - ez), (bW - eA), 0, 0, ev, ez, (eA + ev)) | |
896 | 897 | else throw("wrong outAssetId") | |
897 | - | let | |
898 | - | let | |
899 | - | let | |
900 | - | let | |
901 | - | let | |
902 | - | let | |
903 | - | let | |
904 | - | if (if ((0 > | |
898 | + | let dW = eB._1 | |
899 | + | let dX = eB._2 | |
900 | + | let dY = eB._3 | |
901 | + | let dZ = eB._4 | |
902 | + | let ea = eB._5 | |
903 | + | let eb = eB._6 | |
904 | + | let eC = eB._7 | |
905 | + | if (if ((0 > dY)) | |
905 | 906 | then true | |
906 | - | else (0 > | |
907 | + | else (0 > ea)) | |
907 | 908 | then throw("Wrong calc") | |
908 | 909 | else { | |
909 | - | let bn = invoke( | |
910 | - | let bm = invoke( | |
911 | - | let | |
912 | - | if (( | |
910 | + | let bn = invoke(dQ, "calcD", [toString(dW), toString(dX), az, g, h], nil) | |
911 | + | let bm = invoke(dQ, "calcD", [toString(((dW - dY) + eb)), toString(((dX + dZ) - ea)), az, g, h], nil) | |
912 | + | let ec = bl(parseBigIntValue(ar(bm)), parseBigIntValue(ar(bn)), f) | |
913 | + | if ((ec == ec)) | |
913 | 914 | then { | |
914 | - | let | |
915 | - | if (( | |
915 | + | let eD = bf(toBigInt(eC), toBigInt(ex), toBigInt(bi)) | |
916 | + | if ((eD == eD)) | |
916 | 917 | then { | |
917 | - | let | |
918 | - | then $Tuple2(toInt( | |
919 | - | else $Tuple2(0, toInt( | |
920 | - | let | |
921 | - | let | |
922 | - | let | |
923 | - | let | |
924 | - | let cg = [ScriptTransfer(bM, ( | |
918 | + | let eE = if ((ey == bO)) | |
919 | + | then $Tuple2(toInt(eD._2), 0) | |
920 | + | else $Tuple2(0, toInt(eD._2)) | |
921 | + | let eF = eE._1 | |
922 | + | let eG = eE._2 | |
923 | + | let eH = bc(B(bW, bR), B(bU, bQ)) | |
924 | + | let eI = E(eH, a) | |
925 | + | let cg = [ScriptTransfer(bM, (eF + eG), if ((ey == "WAVES")) | |
925 | 926 | then unit | |
926 | - | else fromBase58String( | |
927 | + | else fromBase58String(ey)), StringEntry(W(toString(bM), bJ), aW(eF, eG, cq, eI, height, lastBlock.timestamp)), IntegerEntry(P(), eI), IntegerEntry(Q(height, lastBlock.timestamp), eI)] | |
927 | 928 | if ((cg == cg)) | |
928 | 929 | then { | |
929 | - | let | |
930 | - | if (( | |
930 | + | let eJ = invoke(ay, "burn", [cq], [AttachedPayment(bK, cq)]) | |
931 | + | if ((eJ == eJ)) | |
931 | 932 | then cg | |
932 | 933 | else throw("Strict value is not equal to itself.") | |
933 | 934 | } | |
934 | 935 | else throw("Strict value is not equal to itself.") | |
935 | 936 | } | |
936 | 937 | else throw("Strict value is not equal to itself.") | |
937 | 938 | } | |
938 | 939 | else throw("Strict value is not equal to itself.") | |
939 | 940 | } | |
940 | 941 | } | |
941 | 942 | else throw("Strict value is not equal to itself.") | |
942 | 943 | } | |
943 | 944 | ||
944 | 945 | ||
945 | 946 | ||
946 | - | @Callable( | |
947 | - | func getOneTknV2 ( | |
947 | + | @Callable(dk) | |
948 | + | func getOneTknV2 (ey,eg) = if ((size(dk.payments) != 1)) | |
948 | 949 | then throw("1 pmnt expd") | |
949 | 950 | else { | |
950 | - | let | |
951 | - | let bN = | |
952 | - | let bO = | |
953 | - | let bP = | |
954 | - | let | |
955 | - | let | |
956 | - | let | |
957 | - | let bM = if (( | |
958 | - | then | |
959 | - | else | |
960 | - | let | |
961 | - | let bK = value( | |
962 | - | let | |
963 | - | if ((1000000000 > | |
951 | + | let eh = aC() | |
952 | + | let bN = eh[q] | |
953 | + | let bO = eh[r] | |
954 | + | let bP = eh[s] | |
955 | + | let ei = parseIntValue(eh[t]) | |
956 | + | let ej = parseIntValue(eh[u]) | |
957 | + | let eK = eh[p] | |
958 | + | let bM = if ((dk.caller == this)) | |
959 | + | then dk.originCaller | |
960 | + | else dk.caller | |
961 | + | let dl = value(dk.payments[0]) | |
962 | + | let bK = value(dl.assetId) | |
963 | + | let cq = dl.amount | |
964 | + | if ((1000000000 > cq)) | |
964 | 965 | then throw("Min pmt 10 LP") | |
965 | 966 | else { | |
966 | - | let bJ = toBase58String(dj.transactionId) | |
967 | - | if ((0 > bi)) | |
968 | - | then throw("Wrong params") | |
969 | - | else if ((bN != toBase58String(bK))) | |
970 | - | then throw("Wrong LP") | |
971 | - | else { | |
972 | - | let cB = bI(bJ, toBase58String(bK), cp, dj.caller) | |
973 | - | let ex = cB._1 | |
974 | - | let ey = cB._2 | |
975 | - | let bU = ba(bO) | |
976 | - | let bW = ba(bP) | |
977 | - | let dV = (bU - ex) | |
978 | - | let dW = (bW - ey) | |
979 | - | let eJ = if ((ew == bO)) | |
980 | - | then $Tuple3(dW, dV, ey) | |
981 | - | else if ((ew == bP)) | |
982 | - | then $Tuple3(dV, dW, ex) | |
983 | - | else throw("wrong outAssetId") | |
984 | - | let eK = eJ._1 | |
985 | - | let eL = eJ._2 | |
986 | - | let eM = eJ._3 | |
987 | - | let eN = 1 | |
988 | - | let et = { | |
989 | - | let eo = invoke(aK, "calcSwapXToY", [toString(eM), toString(eK), toString(eL), "", az, g, toString(eN), h], nil) | |
990 | - | if ($isInstanceOf(eo, "Int")) | |
991 | - | then eo | |
992 | - | else throw(($getType(invoke(aK, "calcSwapXToY", [toString(eM), toString(eK), toString(eL), "", az, g, toString(eN), h], nil)) + " couldn't be cast to Int")) | |
967 | + | let bJ = toBase58String(dk.transactionId) | |
968 | + | if ((bN != toBase58String(bK))) | |
969 | + | then throw("Wrong LP") | |
970 | + | else { | |
971 | + | let cC = bI(bJ, toBase58String(bK), cq, dk.caller) | |
972 | + | let ez = cC._1 | |
973 | + | let eA = cC._2 | |
974 | + | let bU = ba(bO) | |
975 | + | let bW = ba(bP) | |
976 | + | let dW = (bU - ez) | |
977 | + | let dX = (bW - eA) | |
978 | + | let eL = if ((ey == bO)) | |
979 | + | then $Tuple3(dX, dW, eA) | |
980 | + | else if ((ey == bP)) | |
981 | + | then $Tuple3(dW, dX, ez) | |
982 | + | else throw("wrong outAssetId") | |
983 | + | let eM = eL._1 | |
984 | + | let eN = eL._2 | |
985 | + | let eO = eL._3 | |
986 | + | let eP = 1 | |
987 | + | let ev = { | |
988 | + | let eq = invoke(aK, "calcSwapXToY", [toString(eO), toString(eM), toString(eN), "", az, g, toString(eP), h], nil) | |
989 | + | if ($isInstanceOf(eq, "Int")) | |
990 | + | then eq | |
991 | + | else throw(($getType(invoke(aK, "calcSwapXToY", [toString(eO), toString(eM), toString(eN), "", az, g, toString(eP), h], nil)) + " couldn't be cast to Int")) | |
992 | + | } | |
993 | + | let eC = (ev + (if ((ey == bO)) | |
994 | + | then ez | |
995 | + | else eA)) | |
996 | + | let eQ = if (if ((eg > 0)) | |
997 | + | then (eg > eC) | |
998 | + | else false) | |
999 | + | then throw(makeString(["amount to receive is less than ", toString(eg)], "")) | |
1000 | + | else eC | |
1001 | + | let eR = if ((ey == bO)) | |
1002 | + | then $Tuple2(eQ, 0) | |
1003 | + | else $Tuple2(0, eQ) | |
1004 | + | let eF = eR._1 | |
1005 | + | let eG = eR._2 | |
1006 | + | let eH = bc(B(bW, ej), B(bU, ei)) | |
1007 | + | let eI = E(eH, a) | |
1008 | + | let cg = [ScriptTransfer(bM, eQ, if ((ey == "WAVES")) | |
1009 | + | then unit | |
1010 | + | else fromBase58String(ey)), StringEntry(W(toString(bM), bJ), aW(eF, eG, cq, eI, height, lastBlock.timestamp)), IntegerEntry(P(), eI), IntegerEntry(Q(height, lastBlock.timestamp), eI)] | |
1011 | + | if ((cg == cg)) | |
1012 | + | then { | |
1013 | + | let eJ = invoke(ay, "burn", [cq], [AttachedPayment(bK, cq)]) | |
1014 | + | if ((eJ == eJ)) | |
1015 | + | then $Tuple2(cg, eQ) | |
1016 | + | else throw("Strict value is not equal to itself.") | |
993 | 1017 | } | |
994 | - | let eA = if ((ew == bO)) | |
995 | - | then (ex + et) | |
996 | - | else (ey + et) | |
997 | - | let eB = if ((ev > 0)) | |
998 | - | then bf(toBigInt(eA), toBigInt(ev), toBigInt(bi)) | |
999 | - | else $Tuple2(true, toBigInt(eA)) | |
1000 | - | let eO = if ((ew == bO)) | |
1001 | - | then $Tuple2(toInt(eB._2), 0) | |
1002 | - | else $Tuple2(0, toInt(eB._2)) | |
1003 | - | let eD = eO._1 | |
1004 | - | let eE = eO._2 | |
1005 | - | let eP = (eD + eE) | |
1006 | - | let eF = bc(B(bW, eh), B(bU, eg)) | |
1007 | - | let eG = E(eF, a) | |
1008 | - | let cg = [ScriptTransfer(bM, eP, if ((ew == "WAVES")) | |
1009 | - | then unit | |
1010 | - | else fromBase58String(ew)), StringEntry(W(toString(bM), bJ), aW(eD, eE, cp, eG, height, lastBlock.timestamp)), IntegerEntry(P(), eG), IntegerEntry(Q(height, lastBlock.timestamp), eG)] | |
1011 | - | if ((cg == cg)) | |
1012 | - | then { | |
1013 | - | let eH = invoke(ay, "burn", [cp], [AttachedPayment(bK, cp)]) | |
1014 | - | if ((eH == eH)) | |
1015 | - | then $Tuple2(cg, eP) | |
1016 | - | else throw("Strict value is not equal to itself.") | |
1017 | - | } | |
1018 | - | else throw("Strict value is not equal to itself.") | |
1019 | - | } | |
1018 | + | else throw("Strict value is not equal to itself.") | |
1019 | + | } | |
1020 | 1020 | } | |
1021 | 1021 | } | |
1022 | 1022 | ||
1023 | 1023 | ||
1024 | 1024 | ||
1025 | - | @Callable( | |
1026 | - | func getNoLess ( | |
1027 | - | let | |
1028 | - | let ce = | |
1029 | - | let cf = | |
1030 | - | let | |
1031 | - | let bK = | |
1032 | - | let cg = | |
1033 | - | if (( | |
1034 | - | then throw(((("Failed: " + toString(ce)) + " < ") + toString( | |
1035 | - | else if (( | |
1036 | - | then throw(((("Failed: " + toString(cf)) + " < ") + toString( | |
1025 | + | @Callable(dk) | |
1026 | + | func getNoLess (eS,eT) = { | |
1027 | + | let cC = dj(dk) | |
1028 | + | let ce = cC._1 | |
1029 | + | let cf = cC._2 | |
1030 | + | let cq = cC._3 | |
1031 | + | let bK = cC._4 | |
1032 | + | let cg = cC._5 | |
1033 | + | if ((eS > ce)) | |
1034 | + | then throw(((("Failed: " + toString(ce)) + " < ") + toString(eS))) | |
1035 | + | else if ((eT > cf)) | |
1036 | + | then throw(((("Failed: " + toString(cf)) + " < ") + toString(eT))) | |
1037 | 1037 | else { | |
1038 | - | let | |
1039 | - | if (( | |
1038 | + | let eU = invoke(ay, "burn", [cq], [AttachedPayment(bK, cq)]) | |
1039 | + | if ((eU == eU)) | |
1040 | 1040 | then cg | |
1041 | 1041 | else throw("Strict value is not equal to itself.") | |
1042 | 1042 | } | |
1043 | 1043 | } | |
1044 | 1044 | ||
1045 | 1045 | ||
1046 | 1046 | ||
1047 | - | @Callable( | |
1048 | - | func unstakeAndGet ( | |
1049 | - | let | |
1047 | + | @Callable(dk) | |
1048 | + | func unstakeAndGet (eV) = { | |
1049 | + | let eW = if ((size(dk.payments) != 0)) | |
1050 | 1050 | then throw("No pmnts expd") | |
1051 | 1051 | else true | |
1052 | - | if (( | |
1052 | + | if ((eW == eW)) | |
1053 | 1053 | then { | |
1054 | 1054 | let bz = aC() | |
1055 | - | let | |
1056 | - | let | |
1057 | - | let | |
1058 | - | let | |
1059 | - | if (( | |
1055 | + | let eX = aG() | |
1056 | + | let dG = fromBase58String(bz[q]) | |
1057 | + | let eY = valueOrErrorMessage(addressFromString(eX[x]), "Wr st addr") | |
1058 | + | let eZ = invoke(eY, "unstake", [toBase58String(dG), eV], nil) | |
1059 | + | if ((eZ == eZ)) | |
1060 | 1060 | then { | |
1061 | - | let | |
1062 | - | let bS = parseIntValue( | |
1063 | - | let cg = | |
1064 | - | let | |
1061 | + | let cC = bI(toBase58String(dk.transactionId), toBase58String(dG), eV, dk.caller) | |
1062 | + | let bS = parseIntValue(cC._9) | |
1063 | + | let cg = cC._10 | |
1064 | + | let fa = if (if (aA()) | |
1065 | 1065 | then true | |
1066 | 1066 | else (bS == n)) | |
1067 | 1067 | then throw(("Blocked: " + toString(bS))) | |
1068 | 1068 | else true | |
1069 | - | if (( | |
1069 | + | if ((fa == fa)) | |
1070 | 1070 | then { | |
1071 | - | let | |
1072 | - | if (( | |
1071 | + | let fb = invoke(ay, "burn", [eV], [AttachedPayment(dG, eV)]) | |
1072 | + | if ((fb == fb)) | |
1073 | 1073 | then cg | |
1074 | 1074 | else throw("Strict value is not equal to itself.") | |
1075 | 1075 | } | |
1076 | 1076 | else throw("Strict value is not equal to itself.") | |
1077 | 1077 | } | |
1078 | 1078 | else throw("Strict value is not equal to itself.") | |
1079 | 1079 | } | |
1080 | 1080 | else throw("Strict value is not equal to itself.") | |
1081 | 1081 | } | |
1082 | 1082 | ||
1083 | 1083 | ||
1084 | 1084 | ||
1085 | - | @Callable( | |
1086 | - | func unstakeAndGetOneTkn ( | |
1087 | - | let | |
1085 | + | @Callable(dk) | |
1086 | + | func unstakeAndGetOneTkn (eV,ex,ey,bi) = { | |
1087 | + | let eW = if ((size(dk.payments) != 0)) | |
1088 | 1088 | then throw("No pmnts expd") | |
1089 | 1089 | else true | |
1090 | - | if (( | |
1090 | + | if ((eW == eW)) | |
1091 | 1091 | then { | |
1092 | 1092 | let bz = aC() | |
1093 | - | let | |
1094 | - | let | |
1095 | - | let | |
1096 | - | let | |
1097 | - | if (( | |
1093 | + | let eX = aG() | |
1094 | + | let dG = fromBase58String(bz[q]) | |
1095 | + | let eY = valueOrErrorMessage(addressFromString(eX[x]), "Wr st addr") | |
1096 | + | let eZ = invoke(eY, "unstake", [toBase58String(dG), eV], nil) | |
1097 | + | if ((eZ == eZ)) | |
1098 | 1098 | then { | |
1099 | - | let | |
1100 | - | let | |
1101 | - | if ($isInstanceOf( | |
1102 | - | then | |
1099 | + | let fc = { | |
1100 | + | let eq = invoke(this, "getOneTknV2", [ex, ey, bi], [AttachedPayment(dG, eV)]) | |
1101 | + | if ($isInstanceOf(eq, "Int")) | |
1102 | + | then eq | |
1103 | 1103 | else unit | |
1104 | 1104 | } | |
1105 | - | if (( | |
1106 | - | then $Tuple2(nil, | |
1105 | + | if ((fc == fc)) | |
1106 | + | then $Tuple2(nil, fc) | |
1107 | 1107 | else throw("Strict value is not equal to itself.") | |
1108 | 1108 | } | |
1109 | 1109 | else throw("Strict value is not equal to itself.") | |
1110 | 1110 | } | |
1111 | 1111 | else throw("Strict value is not equal to itself.") | |
1112 | 1112 | } | |
1113 | 1113 | ||
1114 | 1114 | ||
1115 | 1115 | ||
1116 | - | @Callable( | |
1117 | - | func activate ( | |
1116 | + | @Callable(dk) | |
1117 | + | func activate (fd,fe) = if ((toString(dk.caller) != toString(ay))) | |
1118 | 1118 | then throw("denied") | |
1119 | - | else $Tuple2([StringEntry(X(), | |
1119 | + | else $Tuple2([StringEntry(X(), fd), StringEntry(Y(), fe)], "success") | |
1120 | 1120 | ||
1121 | 1121 | ||
1122 | 1122 | ||
1123 | - | @Callable( | |
1124 | - | func setS ( | |
1125 | - | then | |
1126 | - | else [StringEntry( | |
1123 | + | @Callable(dk) | |
1124 | + | func setS (ff,fa) = if ((toString(dk.caller) != au(this, aa()))) | |
1125 | + | then ds | |
1126 | + | else [StringEntry(ff, fa)] | |
1127 | 1127 | ||
1128 | 1128 | ||
1129 | 1129 | ||
1130 | - | @Callable( | |
1131 | - | func setI ( | |
1132 | - | then | |
1133 | - | else [IntegerEntry( | |
1130 | + | @Callable(dk) | |
1131 | + | func setI (ff,fa) = if ((toString(dk.caller) != au(this, aa()))) | |
1132 | + | then ds | |
1133 | + | else [IntegerEntry(ff, fa)] | |
1134 | 1134 | ||
1135 | 1135 | ||
1136 | 1136 | ||
1137 | - | @Callable( | |
1137 | + | @Callable(dk) | |
1138 | 1138 | func getPoolConfigWrapperREADONLY () = $Tuple2(nil, aC()) | |
1139 | 1139 | ||
1140 | 1140 | ||
1141 | 1141 | ||
1142 | - | @Callable( | |
1142 | + | @Callable(dk) | |
1143 | 1143 | func getAccBalanceWrapperREADONLY (bb) = $Tuple2(nil, ba(bb)) | |
1144 | 1144 | ||
1145 | 1145 | ||
1146 | 1146 | ||
1147 | - | @Callable( | |
1147 | + | @Callable(dk) | |
1148 | 1148 | func calcPricesWrapperREADONLY (bt,bu,by) = { | |
1149 | - | let | |
1150 | - | $Tuple2(nil, [toString( | |
1149 | + | let fg = bx(bt, bu, by) | |
1150 | + | $Tuple2(nil, [toString(fg[0]), toString(fg[1]), toString(fg[2])]) | |
1151 | 1151 | } | |
1152 | 1152 | ||
1153 | 1153 | ||
1154 | 1154 | ||
1155 | - | @Callable( | |
1156 | - | func fromX18WrapperREADONLY (F, | |
1155 | + | @Callable(dk) | |
1156 | + | func fromX18WrapperREADONLY (F,fh) = $Tuple2(nil, E(parseBigIntValue(F), fh)) | |
1157 | 1157 | ||
1158 | 1158 | ||
1159 | 1159 | ||
1160 | - | @Callable( | |
1160 | + | @Callable(dk) | |
1161 | 1161 | func toX18WrapperREADONLY (C,D) = $Tuple2(nil, toString(B(C, D))) | |
1162 | 1162 | ||
1163 | 1163 | ||
1164 | 1164 | ||
1165 | - | @Callable( | |
1165 | + | @Callable(dk) | |
1166 | 1166 | func calcPriceBigIntWrapperREADONLY (bd,be) = $Tuple2(nil, toString(bc(parseBigIntValue(bd), parseBigIntValue(be)))) | |
1167 | 1167 | ||
1168 | 1168 | ||
1169 | 1169 | ||
1170 | - | @Callable( | |
1171 | - | func estimatePutOperationWrapperREADONLY (bJ,bi,ci,cj,ck,cl, | |
1170 | + | @Callable(dk) | |
1171 | + | func estimatePutOperationWrapperREADONLY (bJ,bi,ci,cj,ck,cl,fi,cm,cn) = $Tuple2(nil, ch(bJ, bi, ci, cj, ck, cl, fi, cm, cn, true, false, 0, "")) | |
1172 | 1172 | ||
1173 | 1173 | ||
1174 | 1174 | ||
1175 | - | @Callable( | |
1176 | - | func estimateGetOperationWrapperREADONLY (bJ, | |
1177 | - | let | |
1178 | - | $Tuple2(nil, $Tuple10( | |
1175 | + | @Callable(dk) | |
1176 | + | func estimateGetOperationWrapperREADONLY (bJ,fj,bL,fi) = { | |
1177 | + | let cC = bI(bJ, fj, bL, addressFromStringValue(fi)) | |
1178 | + | $Tuple2(nil, $Tuple10(cC._1, cC._2, cC._3, cC._4, cC._5, cC._6, cC._7, toString(cC._8), cC._9, cC._10)) | |
1179 | 1179 | } | |
1180 | 1180 | ||
1181 | 1181 | ||
1182 | - | @Verifier( | |
1183 | - | func | |
1184 | - | let | |
1185 | - | let as = | |
1182 | + | @Verifier(fk) | |
1183 | + | func fl () = { | |
1184 | + | let fm = { | |
1185 | + | let as = dp() | |
1186 | 1186 | if ($isInstanceOf(as, "ByteVector")) | |
1187 | 1187 | then { | |
1188 | - | let | |
1189 | - | | |
1188 | + | let du = as | |
1189 | + | du | |
1190 | 1190 | } | |
1191 | 1191 | else if ($isInstanceOf(as, "Unit")) | |
1192 | - | then | |
1192 | + | then fk.senderPublicKey | |
1193 | 1193 | else throw("Match error") | |
1194 | 1194 | } | |
1195 | - | let as = | |
1195 | + | let as = fk | |
1196 | 1196 | if ($isInstanceOf(as, "Order")) | |
1197 | 1197 | then { | |
1198 | - | let | |
1199 | - | let | |
1200 | - | let | |
1201 | - | let | |
1202 | - | let | |
1203 | - | if (if (if ( | |
1204 | - | then | |
1198 | + | let cX = as | |
1199 | + | let fn = aB() | |
1200 | + | let fo = cW(cX) | |
1201 | + | let fp = sigVerify(cX.bodyBytes, cX.proofs[0], cX.senderPublicKey) | |
1202 | + | let fq = sigVerify(cX.bodyBytes, cX.proofs[1], fn) | |
1203 | + | if (if (if (fo) | |
1204 | + | then fp | |
1205 | 1205 | else false) | |
1206 | - | then | |
1206 | + | then fq | |
1207 | 1207 | else false) | |
1208 | 1208 | then true | |
1209 | - | else an( | |
1209 | + | else an(fo, fp, fq) | |
1210 | 1210 | } | |
1211 | 1211 | else if ($isInstanceOf(as, "SetScriptTransaction")) | |
1212 | 1212 | then { | |
1213 | - | let | |
1214 | - | let | |
1215 | - | let | |
1216 | - | let | |
1217 | - | if (if (( | |
1218 | - | then ( | |
1213 | + | let dq = as | |
1214 | + | let fr = blake2b256(value(dq.script)) | |
1215 | + | let fs = fromBase64String(value(getString(ay, am()))) | |
1216 | + | let ft = scriptHash(this) | |
1217 | + | if (if ((fs == fr)) | |
1218 | + | then (ft != fr) | |
1219 | 1219 | else false) | |
1220 | 1220 | then true | |
1221 | - | else sigVerify( | |
1221 | + | else sigVerify(fk.bodyBytes, fk.proofs[0], fm) | |
1222 | 1222 | } | |
1223 | - | else sigVerify( | |
1223 | + | else sigVerify(fk.bodyBytes, fk.proofs[0], fm) | |
1224 | 1224 | } | |
1225 | 1225 |
github/deemru/w8io/169f3d6 352.81 ms ◑