tx · C88pEe8ERr25Sv4xniD8KiCGEv9gD4tGLXW8pmaZUK8R 3MsNhK6uve98J6DeqbuwGFBRh9GoHPGUFgp: -0.02300000 Waves 2023.03.14 10:09 [2489387] smart account 3MsNhK6uve98J6DeqbuwGFBRh9GoHPGUFgp > SELF 0.00000000 Waves
{ "type": 13, "id": "C88pEe8ERr25Sv4xniD8KiCGEv9gD4tGLXW8pmaZUK8R", "fee": 2300000, "feeAssetId": null, "timestamp": 1678777792548, "version": 2, "chainId": 84, "sender": "3MsNhK6uve98J6DeqbuwGFBRh9GoHPGUFgp", "senderPublicKey": "86RHVxKovtU7yKnepY8wKsd8niDxGAsiwuA1XA1DNqrS", "proofs": [ "CcLngTcsJFXshNMpguPKjKGKck1XWCg7MUNh4PMr8XJPfQ57s3jqCLXWes41JMNLSRwvHa9BMazouECFLpWyreE" ], "script": "base64:BgKPIggCEgMKAQgSAwoBCBIECgIICBIJCgcBERERGAgYEgcKBRERERgIEgcKBQEBAQgIEgASAwoBCBIECgIIARIECgIIARIECgIIARIDCgEIEgYKBAgBCAESBQoDARgYEgMKARgSAwoBCBIAIgZTQ0FMRTgiBU1VTFQ4IgdTQ0FMRTE4IgZNVUxUMTgiA1NFUCIOUE9PTFdFSUdIVE1VTFQiCnplcm9CaWdJbnQiDmlkeFBvb2xBZGRyZXNzIg1pZHhQb29sU3RhdHVzIhBpZHhQb29sTFBBc3NldElkIg1pZHhBbXRBc3NldElkIg9pZHhQcmljZUFzc2V0SWQiDmlkeEFtdEFzc2V0RGNtIhBpZHhQcmljZUFzc2V0RGNtIg5pZHhJQW10QXNzZXRJZCIQaWR4SVByaWNlQXNzZXRJZCINaWR4TFBBc3NldERjbSIPZ2V0U3RyaW5nT3JGYWlsIgNrZXkiGGdldFN0cmluZ0J5QWRkcmVzc09yRmFpbCIHYWRkcmVzcyIMZ2V0SW50T3JaZXJvIgxnZXRJbnRPckZhaWwiCWFzQW55TGlzdCIDdmFsIgckbWF0Y2gwIgp2YWxBbnlMeX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GVyUHVibGljS2V5CQACAQILTWF0Y2ggZXJyb3IJAPQDAwgFAmVkCWJvZHlCeXRlcwkAkQMCCAUCZWQGcHJvb2ZzAAAFAmVm12kILA==", "height": 2489387, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 9wffeaxtZvF138KggTXUBRUQ8aawWewMwA2HhPnhHix8 Next: 3sP46B82SrCe9y5ADGbDhpeoJatM1cZjBPFad6VaupFm Diff:
Old | New | Differences | |
---|---|---|---|
271 | 271 | let bg = getIntegerValue(aT, V(be)) | |
272 | 272 | let bh = w(aV, aN()) | |
273 | 273 | let bi = w(aV, aO()) | |
274 | - | let bj = { | |
275 | - | let ba = invoke(aV, "getBoostCoeffREADONLY", nil, nil) | |
276 | - | if ($isInstanceOf(ba, "Int")) | |
277 | - | then ba | |
278 | - | else throw(($getType(ba) + " couldn't be cast to Int")) | |
279 | - | } | |
274 | + | let bj = 3 | |
280 | 275 | let bk = (fraction(bh, bg, bf) / bj) | |
281 | 276 | let bl = fraction(bi, bg, bf) | |
282 | 277 | let bm = (bj * b) | |
361 | 356 | let bh = bG[0] | |
362 | 357 | let bm = bG[1] | |
363 | 358 | let bn = bG[2] | |
364 | - | let bH = { | |
365 | - | let ba = invoke(aX, "getVotingResultStakedREADONLY", [bd], nil) | |
366 | - | if ($isInstanceOf(ba, "Int")) | |
367 | - | then ba | |
368 | - | else throw(($getType(ba) + " couldn't be cast to Int")) | |
369 | - | } | |
370 | - | $Tuple2(nil, makeString(["%d%d%d%d", toString(bh), toString(bm), toString(bn), toString(bH)], e)) | |
359 | + | $Tuple2(nil, makeString(["%d%d%d", toString(bh), toString(bm), toString(bn)], e)) | |
371 | 360 | } | |
372 | 361 | ||
373 | 362 | ||
378 | 367 | let bh = bG[0] | |
379 | 368 | let bm = bG[1] | |
380 | 369 | let bn = bG[2] | |
381 | - | let | |
382 | - | let | |
383 | - | let | |
384 | - | let | |
385 | - | let | |
386 | - | let | |
370 | + | let bH = v(aM, aE(am, bd)) | |
371 | + | let bI = split(D(invoke(aM, "claimWxREADONLY", [bd, am], nil)), e) | |
372 | + | let bJ = valueOrErrorMessage(parseInt(bI[5]), "couldn't parse minRewardPart") | |
373 | + | let bK = valueOrErrorMessage(parseInt(bI[6]), "couldn't parse boostRewardPart") | |
374 | + | let bL = bI[7] | |
375 | + | let bM = if ((bK == 0)) | |
387 | 376 | then (1 * b) | |
388 | - | else fraction(( | |
389 | - | $Tuple2(nil, makeString(["%d%d%d%d%d%s", toString(bh), toString(bm), toString(bn), toString( | |
377 | + | else fraction((bJ + bK), b, bJ) | |
378 | + | $Tuple2(nil, makeString(["%d%d%d%d%d%s", toString(bh), toString(bm), toString(bn), toString(bH), toString(bM), bL], e)) | |
390 | 379 | } | |
391 | 380 | ||
392 | 381 | ||
393 | 382 | ||
394 | 383 | @Callable(bB) | |
395 | - | func calcBoostBulkInternalREADONLY (bO,bP,bQ,bR,bS,bT | |
396 | - | then $Tuple2(nil, | |
384 | + | func calcBoostBulkInternalREADONLY (bN,bO,bP,bQ,bR,bS,bT) = if ((bN == size(bO))) | |
385 | + | then $Tuple2(nil, bT) | |
397 | 386 | else { | |
398 | - | let | |
399 | - | let | |
400 | - | let | |
401 | - | let | |
402 | - | let | |
403 | - | let ba = invoke(this, "calcBoostREADONLY", [bV, bW, bX, | |
387 | + | let bU = bO[bN] | |
388 | + | let bV = bP[bN] | |
389 | + | let bW = bQ[bN] | |
390 | + | let bX = bR[bN] | |
391 | + | let bY = { | |
392 | + | let ba = invoke(this, "calcBoostREADONLY", [bU, bV, bW, bX, bS], nil) | |
404 | 393 | if ($isInstanceOf(ba, "String")) | |
405 | 394 | then ba | |
406 | 395 | else throw(($getType(ba) + " couldn't be cast to String")) | |
407 | 396 | } | |
408 | - | let | |
409 | - | let | |
410 | - | let ba = invoke(this, "calcBoostBulkInternalREADONLY", [( | |
397 | + | let bZ = (bT :+ bY) | |
398 | + | let ca = { | |
399 | + | let ba = invoke(this, "calcBoostBulkInternalREADONLY", [(bN + 1), bO, bP, bQ, bR, bS, bZ], nil) | |
411 | 400 | if ($isInstanceOf(ba, "List[Any]")) | |
412 | 401 | then ba | |
413 | 402 | else throw(($getType(ba) + " couldn't be cast to List[Any]")) | |
414 | 403 | } | |
415 | - | if (( | |
416 | - | then $Tuple2(nil, | |
404 | + | if ((ca == ca)) | |
405 | + | then $Tuple2(nil, ca) | |
417 | 406 | else throw("Strict value is not equal to itself.") | |
418 | 407 | } | |
419 | 408 | ||
420 | 409 | ||
421 | 410 | ||
422 | 411 | @Callable(bB) | |
423 | - | func calcBoostBulkREADONLY (bV,bW,bX, | |
424 | - | let | |
425 | - | $Tuple2(nil, | |
412 | + | func calcBoostBulkREADONLY (bU,bV,bW,bX,bS) = { | |
413 | + | let bZ = invoke(this, "calcBoostBulkInternalREADONLY", [0, bU, bV, bW, bX, bS, nil], nil) | |
414 | + | $Tuple2(nil, bZ) | |
426 | 415 | } | |
427 | 416 | ||
428 | 417 | ||
429 | 418 | ||
430 | 419 | @Callable(bB) | |
431 | - | func calcBoostREADONLY (bV,bW,bX,bY,bT) = { | |
432 | - | let cc = { | |
433 | - | let ba = invoke(aV, "getBoostCoeffREADONLY", nil, nil) | |
434 | - | if ($isInstanceOf(ba, "Int")) | |
435 | - | then ba | |
436 | - | else throw(($getType(ba) + " couldn't be cast to Int")) | |
437 | - | } | |
438 | - | let cd = aW | |
439 | - | let ce = "empty" | |
440 | - | let cf = parseIntValue(split(t(aX, ag()), e)[4]) | |
441 | - | let aG = if ((bY == "")) | |
442 | - | then ce | |
443 | - | else bY | |
444 | - | let aF = if ((bT == "")) | |
445 | - | then ce | |
446 | - | else bT | |
447 | - | let cg = valueOrElse(getString(aX, al(bT)), ce) | |
448 | - | let ch = valueOrElse(getInteger(aX, ap(cg)), 0) | |
449 | - | let ci = valueOrElse(getInteger(aX, ar(cg)), height) | |
450 | - | let bq = valueOrElse(getInteger(aX, as(cg)), 0) | |
451 | - | let cj = (ci + bq) | |
452 | - | let ck = max([(cj - height), 0]) | |
453 | - | let cl = (ch + bV) | |
454 | - | let cm = min([(ck + bW), cf]) | |
455 | - | let cn = B(x(invoke(aX, "gwxUserInfoREADONLY", [aF], nil))[0]) | |
456 | - | let co = bo(cl, cm, cf)[0] | |
457 | - | let cp = { | |
420 | + | func calcBoostREADONLY (bU,bV,bW,bX,bS) = { | |
421 | + | let cb = aW | |
422 | + | let cc = "empty" | |
423 | + | let cd = parseIntValue(split(t(aX, ag()), e)[4]) | |
424 | + | let aG = if ((bX == "")) | |
425 | + | then cc | |
426 | + | else bX | |
427 | + | let aF = if ((bS == "")) | |
428 | + | then cc | |
429 | + | else bS | |
430 | + | let ce = valueOrElse(getString(aX, al(bS)), cc) | |
431 | + | let cf = valueOrElse(getInteger(aX, ap(ce)), 0) | |
432 | + | let cg = valueOrElse(getInteger(aX, ar(ce)), height) | |
433 | + | let bq = valueOrElse(getInteger(aX, as(ce)), 0) | |
434 | + | let ch = (cg + bq) | |
435 | + | let ci = max([(ch - height), 0]) | |
436 | + | let cj = (cf + bU) | |
437 | + | let ck = min([(ci + bV), cd]) | |
438 | + | let cl = B(x(invoke(aX, "gwxUserInfoREADONLY", [aF], nil))[0]) | |
439 | + | let cm = bo(cj, ck, cd)[0] | |
440 | + | let cn = x(invoke(cb, "calcGwxParamsREADONLY", [cm, height, ck], nil)) | |
441 | + | let co = (cm - cl) | |
442 | + | let cp = B(cn[0]) | |
443 | + | let cq = B(cn[1]) | |
444 | + | let aw = toString(B(cn[2])) | |
445 | + | let cr = aA() | |
446 | + | let cs = ((cm * ck) / 2) | |
447 | + | let ct = v(aX, cr) | |
448 | + | let cu = { | |
458 | 449 | let ba = invoke(aX, "getTotalCachedGwxREADONLY", nil, nil) | |
459 | 450 | if ($isInstanceOf(ba, "Int")) | |
460 | 451 | then ba | |
461 | 452 | else throw(($getType(ba) + " couldn't be cast to Int")) | |
462 | 453 | } | |
463 | - | let cq = 1000 | |
464 | - | let cr = (w(aV, aN()) * cq) | |
465 | - | let cs = aE(aF, aG) | |
466 | - | let ct = aH(aG) | |
467 | - | let cu = aL(aM, cs) | |
468 | - | let cv = aL(aM, ct) | |
469 | - | let bg = if ((aG != ce)) | |
454 | + | let cv = 1000 | |
455 | + | let cw = (w(aV, aN()) * cv) | |
456 | + | let cx = aE(aF, aG) | |
457 | + | let cy = aH(aG) | |
458 | + | let cz = aL(aM, cx) | |
459 | + | let cA = aL(aM, cy) | |
460 | + | let cB = (cz + bW) | |
461 | + | let cC = (cA + bW) | |
462 | + | let bg = if ((aG != cc)) | |
470 | 463 | then { | |
471 | 464 | let be = valueOrErrorMessage(getString(aT, R(aG)), ("unsupported lp asset " + aG)) | |
472 | 465 | getIntegerValue(aT, V(be)) | |
473 | 466 | } | |
474 | 467 | else 0 | |
475 | - | let | |
476 | - | let | |
477 | - | then fraction( | |
468 | + | let cD = fraction(cw, bg, (f * 3)) | |
469 | + | let cE = if ((cC != 0)) | |
470 | + | then fraction(cD, b, cC) | |
478 | 471 | else 0 | |
479 | - | let | |
480 | - | let | |
481 | - | let | |
482 | - | let | |
483 | - | let | |
472 | + | let cF = fraction(cE, cB, b) | |
473 | + | let cG = (cD * 2) | |
474 | + | let cH = fraction(cm, cG, (cu + co)) | |
475 | + | let cI = min([cH, (cF * 2)]) | |
476 | + | let cJ = if ((cF == 0)) | |
484 | 477 | then (1 * b) | |
485 | - | else fraction(( | |
486 | - | $Tuple2(nil, makeString(["%d%d%s", toString( | |
478 | + | else fraction((cI + cF), b, cF) | |
479 | + | $Tuple2(nil, makeString(["%d%d%s", toString(cm), toString(cJ), "d"], e)) | |
487 | 480 | } | |
488 | 481 | ||
489 | 482 | ||
490 | 483 | ||
491 | 484 | @Callable(bB) | |
492 | 485 | func wxEmissionStatsREADONLY () = { | |
493 | - | let | |
494 | - | let | |
486 | + | let cK = toString(b) | |
487 | + | let cL = "1" | |
495 | 488 | let bh = w(aV, aN()) | |
496 | - | let | |
497 | - | let | |
489 | + | let cM = w(aV, aP()) | |
490 | + | let cN = if ((cM > height)) | |
498 | 491 | then 0 | |
499 | - | else (height - | |
500 | - | let | |
501 | - | let | |
502 | - | let | |
503 | - | then | |
504 | - | else fraction( | |
505 | - | let | |
506 | - | let | |
507 | - | let | |
508 | - | let | |
509 | - | $Tuple2(nil, makeString(["%d%d%d%d", toString( | |
492 | + | else (height - cM) | |
493 | + | let cO = (1440 * 365) | |
494 | + | let cP = (201000000 * b) | |
495 | + | let cQ = if ((cN > cO)) | |
496 | + | then cP | |
497 | + | else fraction(cP, cN, cO) | |
498 | + | let cR = ((bh * cN) + cQ) | |
499 | + | let cS = v(aX, ah()) | |
500 | + | let cT = v(aX, ai()) | |
501 | + | let cU = v(aX, aj()) | |
502 | + | $Tuple2(nil, makeString(["%d%d%d%d", toString(cR), toString(cS), toString(cT), toString(cU)], e)) | |
510 | 503 | } | |
511 | 504 | ||
512 | 505 | ||
513 | 506 | ||
514 | 507 | @Callable(bB) | |
515 | - | func poolStatsREADONLY ( | |
516 | - | let aZ = addressFromStringValue(t(aT, U( | |
517 | - | let | |
508 | + | func poolStatsREADONLY (cV) = { | |
509 | + | let aZ = addressFromStringValue(t(aT, U(cV))) | |
510 | + | let cW = { | |
518 | 511 | let ba = invoke(aT, "getPoolStatusREADONLY", [toString(aZ)], nil) | |
519 | 512 | if ($isInstanceOf(ba, "Int")) | |
520 | 513 | then ba | |
521 | 514 | else throw(($getType(ba) + " couldn't be cast to Int")) | |
522 | 515 | } | |
523 | - | let | |
524 | - | if (( | |
525 | - | then $Tuple2(nil, makeString([ | |
516 | + | let cX = "%d%d%d%d%d%d%d%d%d%s" | |
517 | + | if ((cW == 4)) | |
518 | + | then $Tuple2(nil, makeString([cX, toString(0), toString(0), toString(0), toString(0), toString(0), toString(0), toString(0), toString(0), toString(0), toString(false)], e)) | |
526 | 519 | else { | |
527 | - | let | |
528 | - | let bd = fromBase58String(D( | |
529 | - | let | |
530 | - | let | |
531 | - | let | |
532 | - | let | |
533 | - | let | |
534 | - | let | |
535 | - | let | |
536 | - | let | |
537 | - | let | |
538 | - | let | |
520 | + | let cY = x(invoke(aZ, "getPoolConfigWrapperREADONLY", nil, nil)) | |
521 | + | let bd = fromBase58String(D(cY[j])) | |
522 | + | let cZ = D(cY[k]) | |
523 | + | let da = D(cY[l]) | |
524 | + | let db = D(cY[o]) | |
525 | + | let dc = D(cY[p]) | |
526 | + | let dd = parseIntValue(D(cY[m])) | |
527 | + | let de = parseIntValue(D(cY[n])) | |
528 | + | let df = valueOrErrorMessage(assetInfo(bd), (("Asset " + toBase58String(bd)) + " doesn't exist")).quantity | |
529 | + | let dg = B(invoke(aZ, "getAccBalanceWrapperREADONLY", [cZ], nil)) | |
530 | + | let dh = B(invoke(aZ, "getAccBalanceWrapperREADONLY", [da], nil)) | |
531 | + | let di = if ((df == 0)) | |
539 | 532 | then [toString(g), toString(g), toString(g)] | |
540 | - | else x(invoke(aZ, "calcPricesWrapperREADONLY", [ | |
541 | - | let | |
542 | - | let | |
543 | - | let | |
533 | + | else x(invoke(aZ, "calcPricesWrapperREADONLY", [dg, dh, df], nil)) | |
534 | + | let dj = 0 | |
535 | + | let dk = B(invoke(aZ, "fromX18WrapperREADONLY", [di[1], b], nil)) | |
536 | + | let dl = B(invoke(aZ, "fromX18WrapperREADONLY", [di[2], b], nil)) | |
544 | 537 | let bg = getIntegerValue(aT, V(toString(aZ))) | |
545 | - | let | |
546 | - | let | |
547 | - | let | |
538 | + | let dm = aY(aZ) | |
539 | + | let dn = bb(aZ) | |
540 | + | let do = { | |
548 | 541 | let ba = invoke(aT, "isPoolOneTokenOperationsDisabledREADONLY", [toString(aZ)], nil) | |
549 | 542 | if ($isInstanceOf(ba, "Boolean")) | |
550 | 543 | then ba | |
551 | 544 | else throw(($getType(ba) + " couldn't be cast to Boolean")) | |
552 | 545 | } | |
553 | - | let | |
554 | - | $Tuple2(nil, makeString([ | |
546 | + | let dp = !(do) | |
547 | + | $Tuple2(nil, makeString([cX, toString(dg), toString(dh), toString(df), toString(dj), toString(dk), toString(dl), toString(bg), toString(dm), toString(dn), toString(dp)], e)) | |
555 | 548 | } | |
556 | 549 | } | |
557 | 550 | ||
558 | 551 | ||
559 | 552 | ||
560 | 553 | @Callable(bB) | |
561 | - | func poolEvaluatePutByAmountAssetREADONLY ( | |
562 | - | let aZ = addressFromStringValue(t(aT, U( | |
563 | - | let | |
564 | - | let bd = fromBase58String(D( | |
565 | - | let | |
566 | - | let | |
567 | - | let | |
568 | - | let | |
569 | - | let | |
570 | - | let | |
571 | - | let | |
572 | - | let | |
573 | - | let | |
574 | - | let | |
575 | - | let | |
576 | - | let | |
577 | - | let | |
554 | + | func poolEvaluatePutByAmountAssetREADONLY (cV,dq) = { | |
555 | + | let aZ = addressFromStringValue(t(aT, U(cV))) | |
556 | + | let cY = x(invoke(aZ, "getPoolConfigWrapperREADONLY", nil, nil)) | |
557 | + | let bd = fromBase58String(D(cY[j])) | |
558 | + | let dr = D(cY[k]) | |
559 | + | let ds = fromBase58String(dr) | |
560 | + | let dt = D(cY[l]) | |
561 | + | let du = fromBase58String(dt) | |
562 | + | let dd = parseIntValue(D(cY[m])) | |
563 | + | let de = parseIntValue(D(cY[n])) | |
564 | + | let dv = D(cY[i]) | |
565 | + | let df = valueOrErrorMessage(assetInfo(bd), (("Asset " + toBase58String(bd)) + " doesn't exist")).quantity | |
566 | + | let dg = B(invoke(aZ, "getAccBalanceWrapperREADONLY", [dr], nil)) | |
567 | + | let dh = B(invoke(aZ, "getAccBalanceWrapperREADONLY", [dt], nil)) | |
568 | + | let dw = parseBigIntValue(D(invoke(aZ, "toX18WrapperREADONLY", [dg, dd], nil))) | |
569 | + | let dx = parseBigIntValue(D(invoke(aZ, "toX18WrapperREADONLY", [dh, de], nil))) | |
570 | + | let dy = if ((df == 0)) | |
578 | 571 | then g | |
579 | - | else parseBigIntValue(D(invoke(aZ, "calcPriceBigIntWrapperREADONLY", [toString( | |
580 | - | let | |
581 | - | let | |
582 | - | let | |
583 | - | let | |
584 | - | let | |
585 | - | let | |
586 | - | let z = | |
572 | + | else parseBigIntValue(D(invoke(aZ, "calcPriceBigIntWrapperREADONLY", [toString(dx), toString(dw)], nil))) | |
573 | + | let dj = B(invoke(aZ, "fromX18WrapperREADONLY", [toString(dy), b], nil)) | |
574 | + | let dz = parseBigIntValue(D(invoke(aZ, "toX18WrapperREADONLY", [dq, dd], nil))) | |
575 | + | let dA = fraction(dz, dy, d) | |
576 | + | let dB = B(invoke(aZ, "fromX18WrapperREADONLY", [toString(dA), de], nil)) | |
577 | + | let bZ = invoke(aZ, "estimatePutOperationWrapperREADONLY", ["", 500000, dq, ds, dB, du, "", true, false], nil) | |
578 | + | let dC = { | |
579 | + | let z = bZ | |
587 | 580 | if (if (if ($isInstanceOf(z._1, "Int")) | |
588 | 581 | then if ($isInstanceOf(z._3, "Int")) | |
589 | 582 | then if ($isInstanceOf(z._4, "Int")) | |
596 | 589 | then (size(z) == 13) | |
597 | 590 | else false) | |
598 | 591 | then { | |
599 | - | let | |
600 | - | let | |
601 | - | let | |
602 | - | let | |
603 | - | let | |
604 | - | $Tuple5( | |
592 | + | let dD = z._1 | |
593 | + | let dE = z._3 | |
594 | + | let dF = z._4 | |
595 | + | let dG = z._5 | |
596 | + | let dH = z._6 | |
597 | + | $Tuple5(dD, dE, dF, dG, dH) | |
605 | 598 | } | |
606 | 599 | else throw("Couldn't cast types") | |
607 | 600 | } | |
608 | - | let | |
609 | - | let | |
610 | - | let | |
611 | - | let | |
612 | - | let | |
613 | - | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d%d", toString( | |
601 | + | let dD = dC._1 | |
602 | + | let dE = dC._2 | |
603 | + | let dF = dC._3 | |
604 | + | let dG = dC._4 | |
605 | + | let dH = dC._5 | |
606 | + | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d%d", toString(dD), toString(dj), toString(dF), toString(dG), toString(dH), dv, toString(dq), toString(dB)], e)) | |
614 | 607 | } | |
615 | 608 | ||
616 | 609 | ||
617 | 610 | ||
618 | 611 | @Callable(bB) | |
619 | - | func poolEvaluatePutByPriceAssetREADONLY ( | |
620 | - | let aZ = addressFromStringValue(t(aT, U( | |
621 | - | let | |
622 | - | let bd = fromBase58String(D( | |
623 | - | let | |
624 | - | let | |
625 | - | let | |
626 | - | let | |
627 | - | let | |
628 | - | let | |
629 | - | let | |
630 | - | let | |
631 | - | let | |
632 | - | let | |
633 | - | let | |
634 | - | let | |
635 | - | let | |
612 | + | func poolEvaluatePutByPriceAssetREADONLY (cV,dB) = { | |
613 | + | let aZ = addressFromStringValue(t(aT, U(cV))) | |
614 | + | let cY = x(invoke(aZ, "getPoolConfigWrapperREADONLY", nil, nil)) | |
615 | + | let bd = fromBase58String(D(cY[j])) | |
616 | + | let dr = D(cY[k]) | |
617 | + | let ds = fromBase58String(dr) | |
618 | + | let dt = D(cY[l]) | |
619 | + | let du = fromBase58String(dt) | |
620 | + | let dd = parseIntValue(D(cY[m])) | |
621 | + | let de = parseIntValue(D(cY[n])) | |
622 | + | let dv = D(cY[i]) | |
623 | + | let df = valueOrErrorMessage(assetInfo(bd), (("Asset " + toBase58String(bd)) + " doesn't exist")).quantity | |
624 | + | let dI = B(invoke(aZ, "getAccBalanceWrapperREADONLY", [dr], nil)) | |
625 | + | let dJ = B(invoke(aZ, "getAccBalanceWrapperREADONLY", [dt], nil)) | |
626 | + | let dK = parseBigIntValue(D(invoke(aZ, "toX18WrapperREADONLY", [dI, dd], nil))) | |
627 | + | let dL = parseBigIntValue(D(invoke(aZ, "toX18WrapperREADONLY", [dJ, de], nil))) | |
628 | + | let dy = if ((df == 0)) | |
636 | 629 | then g | |
637 | - | else parseBigIntValue(D(invoke(aZ, "calcPriceBigIntWrapperREADONLY", [toString( | |
638 | - | let | |
639 | - | let | |
640 | - | let | |
641 | - | let | |
642 | - | let | |
643 | - | let | |
644 | - | let z = | |
630 | + | else parseBigIntValue(D(invoke(aZ, "calcPriceBigIntWrapperREADONLY", [toString(dL), toString(dK)], nil))) | |
631 | + | let dj = B(invoke(aZ, "fromX18WrapperREADONLY", [toString(dy), b], nil)) | |
632 | + | let dA = parseBigIntValue(D(invoke(aZ, "toX18WrapperREADONLY", [dB, de], nil))) | |
633 | + | let dz = fraction(dA, d, dy) | |
634 | + | let dq = B(invoke(aZ, "fromX18WrapperREADONLY", [toString(dz), dd], nil)) | |
635 | + | let bZ = invoke(aZ, "estimatePutOperationWrapperREADONLY", ["", 500000, dq, ds, dB, du, "", true, false], nil) | |
636 | + | let dM = { | |
637 | + | let z = bZ | |
645 | 638 | if (if (if ($isInstanceOf(z._1, "Int")) | |
646 | 639 | then if ($isInstanceOf(z._3, "Int")) | |
647 | 640 | then if ($isInstanceOf(z._4, "Int")) | |
654 | 647 | then (size(z) == 13) | |
655 | 648 | else false) | |
656 | 649 | then { | |
657 | - | let | |
658 | - | let | |
659 | - | let | |
660 | - | let | |
661 | - | let | |
662 | - | $Tuple5( | |
650 | + | let dD = z._1 | |
651 | + | let dE = z._3 | |
652 | + | let dF = z._4 | |
653 | + | let dG = z._5 | |
654 | + | let dH = z._6 | |
655 | + | $Tuple5(dD, dE, dF, dG, dH) | |
663 | 656 | } | |
664 | 657 | else throw("Couldn't cast types") | |
665 | 658 | } | |
666 | - | let | |
667 | - | let | |
668 | - | let | |
669 | - | let | |
670 | - | let | |
671 | - | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d%d", toString( | |
659 | + | let dD = dM._1 | |
660 | + | let dE = dM._2 | |
661 | + | let dF = dM._3 | |
662 | + | let dG = dM._4 | |
663 | + | let dH = dM._5 | |
664 | + | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d%d", toString(dD), toString(dj), toString(dF), toString(dG), toString(dH), dv, toString(dq), toString(dB)], e)) | |
672 | 665 | } | |
673 | 666 | ||
674 | 667 | ||
675 | 668 | ||
676 | 669 | @Callable(bB) | |
677 | - | func poolEvaluateGetREADONLY ( | |
678 | - | let aZ = addressFromStringValue(t(aT, U( | |
679 | - | let | |
680 | - | let | |
681 | - | let z = | |
670 | + | func poolEvaluateGetREADONLY (dN,dO) = { | |
671 | + | let aZ = addressFromStringValue(t(aT, U(dN))) | |
672 | + | let bZ = invoke(aZ, "estimateGetOperationWrapperREADONLY", ["", dN, dO, toString(aZ)], nil) | |
673 | + | let dP = { | |
674 | + | let z = bZ | |
682 | 675 | if (if (if ($isInstanceOf(z._1, "Int")) | |
683 | 676 | then if ($isInstanceOf(z._2, "Int")) | |
684 | 677 | then if ($isInstanceOf(z._5, "Int")) | |
695 | 688 | then (size(z) == 10) | |
696 | 689 | else false) | |
697 | 690 | then { | |
698 | - | let | |
699 | - | let | |
700 | - | let | |
701 | - | let | |
702 | - | let | |
703 | - | let | |
704 | - | let | |
705 | - | $Tuple7( | |
691 | + | let dQ = z._1 | |
692 | + | let dR = z._2 | |
693 | + | let dF = z._5 | |
694 | + | let dG = z._6 | |
695 | + | let dH = z._7 | |
696 | + | let dj = z._8 | |
697 | + | let dv = z._9 | |
698 | + | $Tuple7(dQ, dR, dF, dG, dH, dj, dv) | |
706 | 699 | } | |
707 | 700 | else throw("Couldn't cast types") | |
708 | 701 | } | |
709 | - | let | |
710 | - | let | |
711 | - | let | |
712 | - | let | |
713 | - | let | |
714 | - | let | |
715 | - | let | |
716 | - | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d", toString( | |
702 | + | let dQ = dP._1 | |
703 | + | let dR = dP._2 | |
704 | + | let dF = dP._3 | |
705 | + | let dG = dP._4 | |
706 | + | let dH = dP._5 | |
707 | + | let dj = dP._6 | |
708 | + | let dv = dP._7 | |
709 | + | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d", toString(dQ), toString(dR), toString(dF), toString(dG), toString(dH), dj, dv], e)) | |
717 | 710 | } | |
718 | 711 | ||
719 | 712 | ||
720 | 713 | ||
721 | 714 | @Callable(bB) | |
722 | 715 | func gwxUserInfoREADONLY (am) = { | |
723 | - | let | |
724 | - | let | |
725 | - | $Tuple2(nil, makeString(["%d", toString( | |
716 | + | let dS = x(invoke(aX, "gwxUserInfoREADONLY", [am], nil)) | |
717 | + | let dT = B(dS[0]) | |
718 | + | $Tuple2(nil, makeString(["%d", toString(dT)], e)) | |
726 | 719 | } | |
727 | 720 | ||
728 | 721 | ||
729 | 722 | ||
730 | 723 | @Callable(bB) | |
731 | - | func unstakeAndGetOneTknV2 (aZ, | |
732 | - | let | |
733 | - | if (( | |
724 | + | func unstakeAndGetOneTknV2 (aZ,dU,dV,dW) = { | |
725 | + | let ca = invoke(addressFromStringValue(aZ), "unstakeAndGetOneTknV2", [dU, dV, dW], nil) | |
726 | + | if ((ca == ca)) | |
734 | 727 | then $Tuple2(nil, unit) | |
735 | 728 | else throw("Strict value is not equal to itself.") | |
736 | 729 | } | |
738 | 731 | ||
739 | 732 | ||
740 | 733 | @Callable(bB) | |
741 | - | func getKeysBulkInternal ( | |
742 | - | then $Tuple2(nil, | |
734 | + | func getKeysBulkInternal (bN,dX,bT) = if ((bN == size(dX))) | |
735 | + | then $Tuple2(nil, bT) | |
743 | 736 | else { | |
744 | - | let | |
745 | - | let bv = addressFromStringValue( | |
746 | - | let s = | |
747 | - | let bw = | |
737 | + | let cp = split(dX[bN], "++") | |
738 | + | let bv = addressFromStringValue(cp[0]) | |
739 | + | let s = cp[1] | |
740 | + | let bw = cp[2] | |
748 | 741 | let y = bu(bv, s, bw) | |
749 | - | let | |
750 | - | let | |
751 | - | if (( | |
752 | - | then $Tuple2(nil, | |
742 | + | let bZ = (bT :+ y) | |
743 | + | let ca = invoke(this, "getKeysBulkInternal", [(bN + 1), dX, bZ], nil) | |
744 | + | if ((ca == ca)) | |
745 | + | then $Tuple2(nil, ca) | |
753 | 746 | else throw("Strict value is not equal to itself.") | |
754 | 747 | } | |
755 | 748 | ||
756 | 749 | ||
757 | 750 | ||
758 | 751 | @Callable(bB) | |
759 | - | func getKeysBulk ( | |
760 | - | let | |
761 | - | $Tuple2(nil, | |
752 | + | func getKeysBulk (dX) = { | |
753 | + | let bZ = invoke(this, "getKeysBulkInternal", [0, dX, nil], nil) | |
754 | + | $Tuple2(nil, bZ) | |
762 | 755 | } | |
763 | 756 | ||
764 | 757 | ||
765 | 758 | ||
766 | 759 | @Callable(bB) | |
767 | - | func setManager ( | |
760 | + | func setManager (dY) = { | |
768 | 761 | let bF = bA(bB) | |
769 | 762 | if ((bF == bF)) | |
770 | 763 | then { | |
771 | - | let | |
772 | - | if (( | |
773 | - | then [StringEntry(H(), | |
764 | + | let dZ = fromBase58String(dY) | |
765 | + | if ((dZ == dZ)) | |
766 | + | then [StringEntry(H(), dY)] | |
774 | 767 | else throw("Strict value is not equal to itself.") | |
775 | 768 | } | |
776 | 769 | else throw("Strict value is not equal to itself.") | |
780 | 773 | ||
781 | 774 | @Callable(bB) | |
782 | 775 | func confirmManager () = { | |
783 | - | let | |
784 | - | let | |
776 | + | let ea = bz() | |
777 | + | let eb = if (isDefined(ea)) | |
785 | 778 | then true | |
786 | 779 | else throw("No pending manager") | |
787 | - | if (( | |
780 | + | if ((eb == eb)) | |
788 | 781 | then { | |
789 | - | let | |
782 | + | let ec = if ((bB.callerPublicKey == value(ea))) | |
790 | 783 | then true | |
791 | 784 | else throw("You are not pending manager") | |
792 | - | if (( | |
793 | - | then [StringEntry(G(), toBase58String(value( | |
785 | + | if ((ec == ec)) | |
786 | + | then [StringEntry(G(), toBase58String(value(ea))), DeleteEntry(H())] | |
794 | 787 | else throw("Strict value is not equal to itself.") | |
795 | 788 | } | |
796 | 789 | else throw("Strict value is not equal to itself.") | |
797 | 790 | } | |
798 | 791 | ||
799 | 792 | ||
800 | - | @Verifier( | |
801 | - | func | |
802 | - | let | |
793 | + | @Verifier(ed) | |
794 | + | func ee () = { | |
795 | + | let ef = { | |
803 | 796 | let z = bx() | |
804 | 797 | if ($isInstanceOf(z, "ByteVector")) | |
805 | 798 | then { | |
807 | 800 | bD | |
808 | 801 | } | |
809 | 802 | else if ($isInstanceOf(z, "Unit")) | |
810 | - | then | |
803 | + | then ed.senderPublicKey | |
811 | 804 | else throw("Match error") | |
812 | 805 | } | |
813 | - | sigVerify( | |
806 | + | sigVerify(ed.bodyBytes, ed.proofs[0], ef) | |
814 | 807 | } | |
815 | 808 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = 8 | |
5 | 5 | ||
6 | 6 | let b = 100000000 | |
7 | 7 | ||
8 | 8 | let c = 18 | |
9 | 9 | ||
10 | 10 | let d = toBigInt(1000000000000000000) | |
11 | 11 | ||
12 | 12 | let e = "__" | |
13 | 13 | ||
14 | 14 | let f = b | |
15 | 15 | ||
16 | 16 | let g = toBigInt(0) | |
17 | 17 | ||
18 | 18 | let h = 1 | |
19 | 19 | ||
20 | 20 | let i = 2 | |
21 | 21 | ||
22 | 22 | let j = 3 | |
23 | 23 | ||
24 | 24 | let k = 4 | |
25 | 25 | ||
26 | 26 | let l = 5 | |
27 | 27 | ||
28 | 28 | let m = 6 | |
29 | 29 | ||
30 | 30 | let n = 7 | |
31 | 31 | ||
32 | 32 | let o = 8 | |
33 | 33 | ||
34 | 34 | let p = 9 | |
35 | 35 | ||
36 | 36 | let q = 10 | |
37 | 37 | ||
38 | 38 | func r (s) = valueOrErrorMessage(getString(s), (("mandatory this." + s) + " is not defined")) | |
39 | 39 | ||
40 | 40 | ||
41 | 41 | func t (u,s) = valueOrErrorMessage(getString(u, s), (((("mandatory " + toString(u)) + ".") + s) + " is not defined")) | |
42 | 42 | ||
43 | 43 | ||
44 | 44 | func v (u,s) = valueOrElse(getInteger(u, s), 0) | |
45 | 45 | ||
46 | 46 | ||
47 | 47 | func w (u,s) = valueOrErrorMessage(getInteger(u, s), (("mandatory this." + s) + " is not defined")) | |
48 | 48 | ||
49 | 49 | ||
50 | 50 | func x (y) = { | |
51 | 51 | let z = y | |
52 | 52 | if ($isInstanceOf(z, "List[Any]")) | |
53 | 53 | then { | |
54 | 54 | let A = z | |
55 | 55 | A | |
56 | 56 | } | |
57 | 57 | else throw("fail to cast into List[Any]") | |
58 | 58 | } | |
59 | 59 | ||
60 | 60 | ||
61 | 61 | func B (y) = { | |
62 | 62 | let z = y | |
63 | 63 | if ($isInstanceOf(z, "Int")) | |
64 | 64 | then { | |
65 | 65 | let C = z | |
66 | 66 | C | |
67 | 67 | } | |
68 | 68 | else throw("fail to cast into Int") | |
69 | 69 | } | |
70 | 70 | ||
71 | 71 | ||
72 | 72 | func D (y) = { | |
73 | 73 | let z = y | |
74 | 74 | if ($isInstanceOf(z, "String")) | |
75 | 75 | then { | |
76 | 76 | let E = z | |
77 | 77 | E | |
78 | 78 | } | |
79 | 79 | else throw("fail to cast into String") | |
80 | 80 | } | |
81 | 81 | ||
82 | 82 | ||
83 | 83 | func F () = "%s%s__config__factoryAddress" | |
84 | 84 | ||
85 | 85 | ||
86 | 86 | func G () = "%s__managerPublicKey" | |
87 | 87 | ||
88 | 88 | ||
89 | 89 | func H () = "%s__pendingManagerPublicKey" | |
90 | 90 | ||
91 | 91 | ||
92 | 92 | let I = 1 | |
93 | 93 | ||
94 | 94 | let J = 2 | |
95 | 95 | ||
96 | 96 | let K = 3 | |
97 | 97 | ||
98 | 98 | let L = 4 | |
99 | 99 | ||
100 | 100 | let M = 5 | |
101 | 101 | ||
102 | 102 | let N = 6 | |
103 | 103 | ||
104 | 104 | let O = 7 | |
105 | 105 | ||
106 | 106 | let P = 8 | |
107 | 107 | ||
108 | 108 | func Q () = "%s__factoryConfig" | |
109 | 109 | ||
110 | 110 | ||
111 | 111 | func R (S) = makeString(["%s%s%s", S, "mappings__lpAsset2PoolContract"], e) | |
112 | 112 | ||
113 | 113 | ||
114 | 114 | func T () = "%s__lpTokensList" | |
115 | 115 | ||
116 | 116 | ||
117 | 117 | func U (S) = makeString(["%s%s%s", S, "mappings__lpAsset2PoolContract"], e) | |
118 | 118 | ||
119 | 119 | ||
120 | 120 | func V (W) = makeString(["%s%s", "poolWeight", W], e) | |
121 | 121 | ||
122 | 122 | ||
123 | 123 | func X () = addressFromStringValue(r(F())) | |
124 | 124 | ||
125 | 125 | ||
126 | 126 | func Y () = split(valueOrElse(getString(X(), T()), ""), e) | |
127 | 127 | ||
128 | 128 | ||
129 | 129 | func Z (aa) = split(t(aa, Q()), e) | |
130 | 130 | ||
131 | 131 | ||
132 | 132 | func ab (ac) = addressFromStringValue(ac[J]) | |
133 | 133 | ||
134 | 134 | ||
135 | 135 | func ad (ac) = addressFromStringValue(ac[M]) | |
136 | 136 | ||
137 | 137 | ||
138 | 138 | func ae (ac) = addressFromStringValue(ac[I]) | |
139 | 139 | ||
140 | 140 | ||
141 | 141 | func af (ac) = addressFromStringValue(ac[P]) | |
142 | 142 | ||
143 | 143 | ||
144 | 144 | func ag () = "%s__config" | |
145 | 145 | ||
146 | 146 | ||
147 | 147 | func ah () = "%s%s__stats__activeTotalLocked" | |
148 | 148 | ||
149 | 149 | ||
150 | 150 | func ai () = "%s%s__stats__locksDurationSumInBlocks" | |
151 | 151 | ||
152 | 152 | ||
153 | 153 | func aj () = "%s%s__stats__locksCount" | |
154 | 154 | ||
155 | 155 | ||
156 | 156 | func ak () = "%s%s__stats__activeUsersCount" | |
157 | 157 | ||
158 | 158 | ||
159 | 159 | func al (am) = makeString(["%s%s%s__mapping__user2num", am], e) | |
160 | 160 | ||
161 | 161 | ||
162 | 162 | func an (ao) = makeString(["%s%s%s__mapping__num2user", ao], e) | |
163 | 163 | ||
164 | 164 | ||
165 | 165 | func ap (aq) = makeString(["%s%d%s__paramByUserNum", aq, "amount"], e) | |
166 | 166 | ||
167 | 167 | ||
168 | 168 | func ar (aq) = makeString(["%s%d%s__paramByUserNum", aq, "start"], e) | |
169 | 169 | ||
170 | 170 | ||
171 | 171 | func as (aq) = makeString(["%s%d%s__paramByUserNum", aq, "duration"], e) | |
172 | 172 | ||
173 | 173 | ||
174 | 174 | func at (aq) = makeString(["%s%d%s__paramByUserNum", aq, "k"], e) | |
175 | 175 | ||
176 | 176 | ||
177 | 177 | func au (aq) = makeString(["%s%d%s__paramByUserNum", aq, "b"], e) | |
178 | 178 | ||
179 | 179 | ||
180 | 180 | func av (aq,aw) = makeString(["%s%d%s%d__paramByPeriod", aq, "k", aw], e) | |
181 | 181 | ||
182 | 182 | ||
183 | 183 | func ax (aq,aw) = makeString(["%s%d%s%d__paramByPeriod", aq, "b", aw], e) | |
184 | 184 | ||
185 | 185 | ||
186 | 186 | func ay (aq) = makeString(["%s%d__userBoostEmissionLastInt", aq], e) | |
187 | 187 | ||
188 | 188 | ||
189 | 189 | func az (aq) = makeString(["%s%d__maxBoostInt", aq], e) | |
190 | 190 | ||
191 | 191 | ||
192 | 192 | func aA () = "%s%s__maxBoostInt__total" | |
193 | 193 | ||
194 | 194 | ||
195 | 195 | func aB (aq) = makeString(["%s%d__userBoostAvaliableToClaimTotal", aq], e) | |
196 | 196 | ||
197 | 197 | ||
198 | 198 | func aC (aq) = makeString(["%s%d__userBoostClaimed", aq], e) | |
199 | 199 | ||
200 | 200 | ||
201 | 201 | func aD () = "%s%s__gwxCached__total" | |
202 | 202 | ||
203 | 203 | ||
204 | 204 | func aE (aF,aG) = makeString(["%s%s%s__staked", aF, aG], e) | |
205 | 205 | ||
206 | 206 | ||
207 | 207 | func aH (aG) = ("%s%s%s__staked__total__" + aG) | |
208 | 208 | ||
209 | 209 | ||
210 | 210 | func aI (aG,aF) = makeString(["%s%s%s__claimed", aF, aG], e) | |
211 | 211 | ||
212 | 212 | ||
213 | 213 | func aJ (aG,aF) = makeString(["%s%s%s__claimedMinReward", aF, aG], e) | |
214 | 214 | ||
215 | 215 | ||
216 | 216 | func aK (aG,aF) = makeString(["%s%s%s__claimedBoostReward", aF, aG], e) | |
217 | 217 | ||
218 | 218 | ||
219 | 219 | func aL (aM,s) = valueOrElse(getInteger(aM, s), 0) | |
220 | 220 | ||
221 | 221 | ||
222 | 222 | func aN () = "%s%s__ratePerBlock__current" | |
223 | 223 | ||
224 | 224 | ||
225 | 225 | func aO () = "%s%s__ratePerBlockMax__current" | |
226 | 226 | ||
227 | 227 | ||
228 | 228 | func aP () = "%s%s__emission__startBlock" | |
229 | 229 | ||
230 | 230 | ||
231 | 231 | func aQ () = "%s%s__emission__duration" | |
232 | 232 | ||
233 | 233 | ||
234 | 234 | func aR () = "%s%s__emission__endBlock" | |
235 | 235 | ||
236 | 236 | ||
237 | 237 | func aS () = "%s__addonAddr" | |
238 | 238 | ||
239 | 239 | ||
240 | 240 | let aT = X() | |
241 | 241 | ||
242 | 242 | let aU = Z(aT) | |
243 | 243 | ||
244 | 244 | let aV = ad(aU) | |
245 | 245 | ||
246 | 246 | let aM = ae(aU) | |
247 | 247 | ||
248 | 248 | let aW = af(aU) | |
249 | 249 | ||
250 | 250 | let aX = ab(aU) | |
251 | 251 | ||
252 | 252 | func aY (aZ) = { | |
253 | 253 | let ba = invoke(aT, "getInFeeREADONLY", [toString(aZ)], nil) | |
254 | 254 | if ($isInstanceOf(ba, "Int")) | |
255 | 255 | then ba | |
256 | 256 | else throw(($getType(ba) + " couldn't be cast to Int")) | |
257 | 257 | } | |
258 | 258 | ||
259 | 259 | ||
260 | 260 | func bb (aZ) = { | |
261 | 261 | let ba = invoke(aT, "getOutFeeREADONLY", [toString(aZ)], nil) | |
262 | 262 | if ($isInstanceOf(ba, "Int")) | |
263 | 263 | then ba | |
264 | 264 | else throw(($getType(ba) + " couldn't be cast to Int")) | |
265 | 265 | } | |
266 | 266 | ||
267 | 267 | ||
268 | 268 | func bc (bd) = { | |
269 | 269 | let be = t(aT, U(bd)) | |
270 | 270 | let bf = b | |
271 | 271 | let bg = getIntegerValue(aT, V(be)) | |
272 | 272 | let bh = w(aV, aN()) | |
273 | 273 | let bi = w(aV, aO()) | |
274 | - | let bj = { | |
275 | - | let ba = invoke(aV, "getBoostCoeffREADONLY", nil, nil) | |
276 | - | if ($isInstanceOf(ba, "Int")) | |
277 | - | then ba | |
278 | - | else throw(($getType(ba) + " couldn't be cast to Int")) | |
279 | - | } | |
274 | + | let bj = 3 | |
280 | 275 | let bk = (fraction(bh, bg, bf) / bj) | |
281 | 276 | let bl = fraction(bi, bg, bf) | |
282 | 277 | let bm = (bj * b) | |
283 | 278 | let bn = v(aM, aH(bd)) | |
284 | 279 | [bk, bm, bn] | |
285 | 280 | } | |
286 | 281 | ||
287 | 282 | ||
288 | 283 | func bo (bp,bq,br) = { | |
289 | 284 | let bs = fraction(bq, b, br) | |
290 | 285 | let bt = fraction(bp, bs, b) | |
291 | 286 | [bt] | |
292 | 287 | } | |
293 | 288 | ||
294 | 289 | ||
295 | 290 | func bu (bv,s,bw) = if ((bw == "string")) | |
296 | 291 | then getStringValue(bv, s) | |
297 | 292 | else if ((bw == "integer")) | |
298 | 293 | then toString(getIntegerValue(bv, s)) | |
299 | 294 | else if ((bw == "boolean")) | |
300 | 295 | then toString(getBooleanValue(bv, s)) | |
301 | 296 | else throw("unknown type. expected string/integer/boolean") | |
302 | 297 | ||
303 | 298 | ||
304 | 299 | func bx () = { | |
305 | 300 | let z = getString(G()) | |
306 | 301 | if ($isInstanceOf(z, "String")) | |
307 | 302 | then { | |
308 | 303 | let by = z | |
309 | 304 | fromBase58String(by) | |
310 | 305 | } | |
311 | 306 | else if ($isInstanceOf(z, "Unit")) | |
312 | 307 | then unit | |
313 | 308 | else throw("Match error") | |
314 | 309 | } | |
315 | 310 | ||
316 | 311 | ||
317 | 312 | func bz () = { | |
318 | 313 | let z = getString(H()) | |
319 | 314 | if ($isInstanceOf(z, "String")) | |
320 | 315 | then { | |
321 | 316 | let by = z | |
322 | 317 | fromBase58String(by) | |
323 | 318 | } | |
324 | 319 | else if ($isInstanceOf(z, "Unit")) | |
325 | 320 | then unit | |
326 | 321 | else throw("Match error") | |
327 | 322 | } | |
328 | 323 | ||
329 | 324 | ||
330 | 325 | func bA (bB) = { | |
331 | 326 | let bC = throw("Permission denied") | |
332 | 327 | let z = bx() | |
333 | 328 | if ($isInstanceOf(z, "ByteVector")) | |
334 | 329 | then { | |
335 | 330 | let bD = z | |
336 | 331 | if ((bB.callerPublicKey == bD)) | |
337 | 332 | then true | |
338 | 333 | else bC | |
339 | 334 | } | |
340 | 335 | else if ($isInstanceOf(z, "Unit")) | |
341 | 336 | then if ((bB.caller == this)) | |
342 | 337 | then true | |
343 | 338 | else bC | |
344 | 339 | else throw("Match error") | |
345 | 340 | } | |
346 | 341 | ||
347 | 342 | ||
348 | 343 | @Callable(bB) | |
349 | 344 | func constructor (bE) = { | |
350 | 345 | let bF = bA(bB) | |
351 | 346 | if ((bF == bF)) | |
352 | 347 | then [StringEntry(F(), bE)] | |
353 | 348 | else throw("Strict value is not equal to itself.") | |
354 | 349 | } | |
355 | 350 | ||
356 | 351 | ||
357 | 352 | ||
358 | 353 | @Callable(bB) | |
359 | 354 | func currentRewardRateREADONLY (bd) = { | |
360 | 355 | let bG = bc(bd) | |
361 | 356 | let bh = bG[0] | |
362 | 357 | let bm = bG[1] | |
363 | 358 | let bn = bG[2] | |
364 | - | let bH = { | |
365 | - | let ba = invoke(aX, "getVotingResultStakedREADONLY", [bd], nil) | |
366 | - | if ($isInstanceOf(ba, "Int")) | |
367 | - | then ba | |
368 | - | else throw(($getType(ba) + " couldn't be cast to Int")) | |
369 | - | } | |
370 | - | $Tuple2(nil, makeString(["%d%d%d%d", toString(bh), toString(bm), toString(bn), toString(bH)], e)) | |
359 | + | $Tuple2(nil, makeString(["%d%d%d", toString(bh), toString(bm), toString(bn)], e)) | |
371 | 360 | } | |
372 | 361 | ||
373 | 362 | ||
374 | 363 | ||
375 | 364 | @Callable(bB) | |
376 | 365 | func currentUserRewardRateREADONLY (bd,am) = { | |
377 | 366 | let bG = bc(bd) | |
378 | 367 | let bh = bG[0] | |
379 | 368 | let bm = bG[1] | |
380 | 369 | let bn = bG[2] | |
381 | - | let | |
382 | - | let | |
383 | - | let | |
384 | - | let | |
385 | - | let | |
386 | - | let | |
370 | + | let bH = v(aM, aE(am, bd)) | |
371 | + | let bI = split(D(invoke(aM, "claimWxREADONLY", [bd, am], nil)), e) | |
372 | + | let bJ = valueOrErrorMessage(parseInt(bI[5]), "couldn't parse minRewardPart") | |
373 | + | let bK = valueOrErrorMessage(parseInt(bI[6]), "couldn't parse boostRewardPart") | |
374 | + | let bL = bI[7] | |
375 | + | let bM = if ((bK == 0)) | |
387 | 376 | then (1 * b) | |
388 | - | else fraction(( | |
389 | - | $Tuple2(nil, makeString(["%d%d%d%d%d%s", toString(bh), toString(bm), toString(bn), toString( | |
377 | + | else fraction((bJ + bK), b, bJ) | |
378 | + | $Tuple2(nil, makeString(["%d%d%d%d%d%s", toString(bh), toString(bm), toString(bn), toString(bH), toString(bM), bL], e)) | |
390 | 379 | } | |
391 | 380 | ||
392 | 381 | ||
393 | 382 | ||
394 | 383 | @Callable(bB) | |
395 | - | func calcBoostBulkInternalREADONLY (bO,bP,bQ,bR,bS,bT | |
396 | - | then $Tuple2(nil, | |
384 | + | func calcBoostBulkInternalREADONLY (bN,bO,bP,bQ,bR,bS,bT) = if ((bN == size(bO))) | |
385 | + | then $Tuple2(nil, bT) | |
397 | 386 | else { | |
398 | - | let | |
399 | - | let | |
400 | - | let | |
401 | - | let | |
402 | - | let | |
403 | - | let ba = invoke(this, "calcBoostREADONLY", [bV, bW, bX, | |
387 | + | let bU = bO[bN] | |
388 | + | let bV = bP[bN] | |
389 | + | let bW = bQ[bN] | |
390 | + | let bX = bR[bN] | |
391 | + | let bY = { | |
392 | + | let ba = invoke(this, "calcBoostREADONLY", [bU, bV, bW, bX, bS], nil) | |
404 | 393 | if ($isInstanceOf(ba, "String")) | |
405 | 394 | then ba | |
406 | 395 | else throw(($getType(ba) + " couldn't be cast to String")) | |
407 | 396 | } | |
408 | - | let | |
409 | - | let | |
410 | - | let ba = invoke(this, "calcBoostBulkInternalREADONLY", [( | |
397 | + | let bZ = (bT :+ bY) | |
398 | + | let ca = { | |
399 | + | let ba = invoke(this, "calcBoostBulkInternalREADONLY", [(bN + 1), bO, bP, bQ, bR, bS, bZ], nil) | |
411 | 400 | if ($isInstanceOf(ba, "List[Any]")) | |
412 | 401 | then ba | |
413 | 402 | else throw(($getType(ba) + " couldn't be cast to List[Any]")) | |
414 | 403 | } | |
415 | - | if (( | |
416 | - | then $Tuple2(nil, | |
404 | + | if ((ca == ca)) | |
405 | + | then $Tuple2(nil, ca) | |
417 | 406 | else throw("Strict value is not equal to itself.") | |
418 | 407 | } | |
419 | 408 | ||
420 | 409 | ||
421 | 410 | ||
422 | 411 | @Callable(bB) | |
423 | - | func calcBoostBulkREADONLY (bV,bW,bX, | |
424 | - | let | |
425 | - | $Tuple2(nil, | |
412 | + | func calcBoostBulkREADONLY (bU,bV,bW,bX,bS) = { | |
413 | + | let bZ = invoke(this, "calcBoostBulkInternalREADONLY", [0, bU, bV, bW, bX, bS, nil], nil) | |
414 | + | $Tuple2(nil, bZ) | |
426 | 415 | } | |
427 | 416 | ||
428 | 417 | ||
429 | 418 | ||
430 | 419 | @Callable(bB) | |
431 | - | func calcBoostREADONLY (bV,bW,bX,bY,bT) = { | |
432 | - | let cc = { | |
433 | - | let ba = invoke(aV, "getBoostCoeffREADONLY", nil, nil) | |
434 | - | if ($isInstanceOf(ba, "Int")) | |
435 | - | then ba | |
436 | - | else throw(($getType(ba) + " couldn't be cast to Int")) | |
437 | - | } | |
438 | - | let cd = aW | |
439 | - | let ce = "empty" | |
440 | - | let cf = parseIntValue(split(t(aX, ag()), e)[4]) | |
441 | - | let aG = if ((bY == "")) | |
442 | - | then ce | |
443 | - | else bY | |
444 | - | let aF = if ((bT == "")) | |
445 | - | then ce | |
446 | - | else bT | |
447 | - | let cg = valueOrElse(getString(aX, al(bT)), ce) | |
448 | - | let ch = valueOrElse(getInteger(aX, ap(cg)), 0) | |
449 | - | let ci = valueOrElse(getInteger(aX, ar(cg)), height) | |
450 | - | let bq = valueOrElse(getInteger(aX, as(cg)), 0) | |
451 | - | let cj = (ci + bq) | |
452 | - | let ck = max([(cj - height), 0]) | |
453 | - | let cl = (ch + bV) | |
454 | - | let cm = min([(ck + bW), cf]) | |
455 | - | let cn = B(x(invoke(aX, "gwxUserInfoREADONLY", [aF], nil))[0]) | |
456 | - | let co = bo(cl, cm, cf)[0] | |
457 | - | let cp = { | |
420 | + | func calcBoostREADONLY (bU,bV,bW,bX,bS) = { | |
421 | + | let cb = aW | |
422 | + | let cc = "empty" | |
423 | + | let cd = parseIntValue(split(t(aX, ag()), e)[4]) | |
424 | + | let aG = if ((bX == "")) | |
425 | + | then cc | |
426 | + | else bX | |
427 | + | let aF = if ((bS == "")) | |
428 | + | then cc | |
429 | + | else bS | |
430 | + | let ce = valueOrElse(getString(aX, al(bS)), cc) | |
431 | + | let cf = valueOrElse(getInteger(aX, ap(ce)), 0) | |
432 | + | let cg = valueOrElse(getInteger(aX, ar(ce)), height) | |
433 | + | let bq = valueOrElse(getInteger(aX, as(ce)), 0) | |
434 | + | let ch = (cg + bq) | |
435 | + | let ci = max([(ch - height), 0]) | |
436 | + | let cj = (cf + bU) | |
437 | + | let ck = min([(ci + bV), cd]) | |
438 | + | let cl = B(x(invoke(aX, "gwxUserInfoREADONLY", [aF], nil))[0]) | |
439 | + | let cm = bo(cj, ck, cd)[0] | |
440 | + | let cn = x(invoke(cb, "calcGwxParamsREADONLY", [cm, height, ck], nil)) | |
441 | + | let co = (cm - cl) | |
442 | + | let cp = B(cn[0]) | |
443 | + | let cq = B(cn[1]) | |
444 | + | let aw = toString(B(cn[2])) | |
445 | + | let cr = aA() | |
446 | + | let cs = ((cm * ck) / 2) | |
447 | + | let ct = v(aX, cr) | |
448 | + | let cu = { | |
458 | 449 | let ba = invoke(aX, "getTotalCachedGwxREADONLY", nil, nil) | |
459 | 450 | if ($isInstanceOf(ba, "Int")) | |
460 | 451 | then ba | |
461 | 452 | else throw(($getType(ba) + " couldn't be cast to Int")) | |
462 | 453 | } | |
463 | - | let cq = 1000 | |
464 | - | let cr = (w(aV, aN()) * cq) | |
465 | - | let cs = aE(aF, aG) | |
466 | - | let ct = aH(aG) | |
467 | - | let cu = aL(aM, cs) | |
468 | - | let cv = aL(aM, ct) | |
469 | - | let bg = if ((aG != ce)) | |
454 | + | let cv = 1000 | |
455 | + | let cw = (w(aV, aN()) * cv) | |
456 | + | let cx = aE(aF, aG) | |
457 | + | let cy = aH(aG) | |
458 | + | let cz = aL(aM, cx) | |
459 | + | let cA = aL(aM, cy) | |
460 | + | let cB = (cz + bW) | |
461 | + | let cC = (cA + bW) | |
462 | + | let bg = if ((aG != cc)) | |
470 | 463 | then { | |
471 | 464 | let be = valueOrErrorMessage(getString(aT, R(aG)), ("unsupported lp asset " + aG)) | |
472 | 465 | getIntegerValue(aT, V(be)) | |
473 | 466 | } | |
474 | 467 | else 0 | |
475 | - | let | |
476 | - | let | |
477 | - | then fraction( | |
468 | + | let cD = fraction(cw, bg, (f * 3)) | |
469 | + | let cE = if ((cC != 0)) | |
470 | + | then fraction(cD, b, cC) | |
478 | 471 | else 0 | |
479 | - | let | |
480 | - | let | |
481 | - | let | |
482 | - | let | |
483 | - | let | |
472 | + | let cF = fraction(cE, cB, b) | |
473 | + | let cG = (cD * 2) | |
474 | + | let cH = fraction(cm, cG, (cu + co)) | |
475 | + | let cI = min([cH, (cF * 2)]) | |
476 | + | let cJ = if ((cF == 0)) | |
484 | 477 | then (1 * b) | |
485 | - | else fraction(( | |
486 | - | $Tuple2(nil, makeString(["%d%d%s", toString( | |
478 | + | else fraction((cI + cF), b, cF) | |
479 | + | $Tuple2(nil, makeString(["%d%d%s", toString(cm), toString(cJ), "d"], e)) | |
487 | 480 | } | |
488 | 481 | ||
489 | 482 | ||
490 | 483 | ||
491 | 484 | @Callable(bB) | |
492 | 485 | func wxEmissionStatsREADONLY () = { | |
493 | - | let | |
494 | - | let | |
486 | + | let cK = toString(b) | |
487 | + | let cL = "1" | |
495 | 488 | let bh = w(aV, aN()) | |
496 | - | let | |
497 | - | let | |
489 | + | let cM = w(aV, aP()) | |
490 | + | let cN = if ((cM > height)) | |
498 | 491 | then 0 | |
499 | - | else (height - | |
500 | - | let | |
501 | - | let | |
502 | - | let | |
503 | - | then | |
504 | - | else fraction( | |
505 | - | let | |
506 | - | let | |
507 | - | let | |
508 | - | let | |
509 | - | $Tuple2(nil, makeString(["%d%d%d%d", toString( | |
492 | + | else (height - cM) | |
493 | + | let cO = (1440 * 365) | |
494 | + | let cP = (201000000 * b) | |
495 | + | let cQ = if ((cN > cO)) | |
496 | + | then cP | |
497 | + | else fraction(cP, cN, cO) | |
498 | + | let cR = ((bh * cN) + cQ) | |
499 | + | let cS = v(aX, ah()) | |
500 | + | let cT = v(aX, ai()) | |
501 | + | let cU = v(aX, aj()) | |
502 | + | $Tuple2(nil, makeString(["%d%d%d%d", toString(cR), toString(cS), toString(cT), toString(cU)], e)) | |
510 | 503 | } | |
511 | 504 | ||
512 | 505 | ||
513 | 506 | ||
514 | 507 | @Callable(bB) | |
515 | - | func poolStatsREADONLY ( | |
516 | - | let aZ = addressFromStringValue(t(aT, U( | |
517 | - | let | |
508 | + | func poolStatsREADONLY (cV) = { | |
509 | + | let aZ = addressFromStringValue(t(aT, U(cV))) | |
510 | + | let cW = { | |
518 | 511 | let ba = invoke(aT, "getPoolStatusREADONLY", [toString(aZ)], nil) | |
519 | 512 | if ($isInstanceOf(ba, "Int")) | |
520 | 513 | then ba | |
521 | 514 | else throw(($getType(ba) + " couldn't be cast to Int")) | |
522 | 515 | } | |
523 | - | let | |
524 | - | if (( | |
525 | - | then $Tuple2(nil, makeString([ | |
516 | + | let cX = "%d%d%d%d%d%d%d%d%d%s" | |
517 | + | if ((cW == 4)) | |
518 | + | then $Tuple2(nil, makeString([cX, toString(0), toString(0), toString(0), toString(0), toString(0), toString(0), toString(0), toString(0), toString(0), toString(false)], e)) | |
526 | 519 | else { | |
527 | - | let | |
528 | - | let bd = fromBase58String(D( | |
529 | - | let | |
530 | - | let | |
531 | - | let | |
532 | - | let | |
533 | - | let | |
534 | - | let | |
535 | - | let | |
536 | - | let | |
537 | - | let | |
538 | - | let | |
520 | + | let cY = x(invoke(aZ, "getPoolConfigWrapperREADONLY", nil, nil)) | |
521 | + | let bd = fromBase58String(D(cY[j])) | |
522 | + | let cZ = D(cY[k]) | |
523 | + | let da = D(cY[l]) | |
524 | + | let db = D(cY[o]) | |
525 | + | let dc = D(cY[p]) | |
526 | + | let dd = parseIntValue(D(cY[m])) | |
527 | + | let de = parseIntValue(D(cY[n])) | |
528 | + | let df = valueOrErrorMessage(assetInfo(bd), (("Asset " + toBase58String(bd)) + " doesn't exist")).quantity | |
529 | + | let dg = B(invoke(aZ, "getAccBalanceWrapperREADONLY", [cZ], nil)) | |
530 | + | let dh = B(invoke(aZ, "getAccBalanceWrapperREADONLY", [da], nil)) | |
531 | + | let di = if ((df == 0)) | |
539 | 532 | then [toString(g), toString(g), toString(g)] | |
540 | - | else x(invoke(aZ, "calcPricesWrapperREADONLY", [ | |
541 | - | let | |
542 | - | let | |
543 | - | let | |
533 | + | else x(invoke(aZ, "calcPricesWrapperREADONLY", [dg, dh, df], nil)) | |
534 | + | let dj = 0 | |
535 | + | let dk = B(invoke(aZ, "fromX18WrapperREADONLY", [di[1], b], nil)) | |
536 | + | let dl = B(invoke(aZ, "fromX18WrapperREADONLY", [di[2], b], nil)) | |
544 | 537 | let bg = getIntegerValue(aT, V(toString(aZ))) | |
545 | - | let | |
546 | - | let | |
547 | - | let | |
538 | + | let dm = aY(aZ) | |
539 | + | let dn = bb(aZ) | |
540 | + | let do = { | |
548 | 541 | let ba = invoke(aT, "isPoolOneTokenOperationsDisabledREADONLY", [toString(aZ)], nil) | |
549 | 542 | if ($isInstanceOf(ba, "Boolean")) | |
550 | 543 | then ba | |
551 | 544 | else throw(($getType(ba) + " couldn't be cast to Boolean")) | |
552 | 545 | } | |
553 | - | let | |
554 | - | $Tuple2(nil, makeString([ | |
546 | + | let dp = !(do) | |
547 | + | $Tuple2(nil, makeString([cX, toString(dg), toString(dh), toString(df), toString(dj), toString(dk), toString(dl), toString(bg), toString(dm), toString(dn), toString(dp)], e)) | |
555 | 548 | } | |
556 | 549 | } | |
557 | 550 | ||
558 | 551 | ||
559 | 552 | ||
560 | 553 | @Callable(bB) | |
561 | - | func poolEvaluatePutByAmountAssetREADONLY ( | |
562 | - | let aZ = addressFromStringValue(t(aT, U( | |
563 | - | let | |
564 | - | let bd = fromBase58String(D( | |
565 | - | let | |
566 | - | let | |
567 | - | let | |
568 | - | let | |
569 | - | let | |
570 | - | let | |
571 | - | let | |
572 | - | let | |
573 | - | let | |
574 | - | let | |
575 | - | let | |
576 | - | let | |
577 | - | let | |
554 | + | func poolEvaluatePutByAmountAssetREADONLY (cV,dq) = { | |
555 | + | let aZ = addressFromStringValue(t(aT, U(cV))) | |
556 | + | let cY = x(invoke(aZ, "getPoolConfigWrapperREADONLY", nil, nil)) | |
557 | + | let bd = fromBase58String(D(cY[j])) | |
558 | + | let dr = D(cY[k]) | |
559 | + | let ds = fromBase58String(dr) | |
560 | + | let dt = D(cY[l]) | |
561 | + | let du = fromBase58String(dt) | |
562 | + | let dd = parseIntValue(D(cY[m])) | |
563 | + | let de = parseIntValue(D(cY[n])) | |
564 | + | let dv = D(cY[i]) | |
565 | + | let df = valueOrErrorMessage(assetInfo(bd), (("Asset " + toBase58String(bd)) + " doesn't exist")).quantity | |
566 | + | let dg = B(invoke(aZ, "getAccBalanceWrapperREADONLY", [dr], nil)) | |
567 | + | let dh = B(invoke(aZ, "getAccBalanceWrapperREADONLY", [dt], nil)) | |
568 | + | let dw = parseBigIntValue(D(invoke(aZ, "toX18WrapperREADONLY", [dg, dd], nil))) | |
569 | + | let dx = parseBigIntValue(D(invoke(aZ, "toX18WrapperREADONLY", [dh, de], nil))) | |
570 | + | let dy = if ((df == 0)) | |
578 | 571 | then g | |
579 | - | else parseBigIntValue(D(invoke(aZ, "calcPriceBigIntWrapperREADONLY", [toString( | |
580 | - | let | |
581 | - | let | |
582 | - | let | |
583 | - | let | |
584 | - | let | |
585 | - | let | |
586 | - | let z = | |
572 | + | else parseBigIntValue(D(invoke(aZ, "calcPriceBigIntWrapperREADONLY", [toString(dx), toString(dw)], nil))) | |
573 | + | let dj = B(invoke(aZ, "fromX18WrapperREADONLY", [toString(dy), b], nil)) | |
574 | + | let dz = parseBigIntValue(D(invoke(aZ, "toX18WrapperREADONLY", [dq, dd], nil))) | |
575 | + | let dA = fraction(dz, dy, d) | |
576 | + | let dB = B(invoke(aZ, "fromX18WrapperREADONLY", [toString(dA), de], nil)) | |
577 | + | let bZ = invoke(aZ, "estimatePutOperationWrapperREADONLY", ["", 500000, dq, ds, dB, du, "", true, false], nil) | |
578 | + | let dC = { | |
579 | + | let z = bZ | |
587 | 580 | if (if (if ($isInstanceOf(z._1, "Int")) | |
588 | 581 | then if ($isInstanceOf(z._3, "Int")) | |
589 | 582 | then if ($isInstanceOf(z._4, "Int")) | |
590 | 583 | then if ($isInstanceOf(z._5, "Int")) | |
591 | 584 | then $isInstanceOf(z._6, "Int") | |
592 | 585 | else false | |
593 | 586 | else false | |
594 | 587 | else false | |
595 | 588 | else false) | |
596 | 589 | then (size(z) == 13) | |
597 | 590 | else false) | |
598 | 591 | then { | |
599 | - | let | |
600 | - | let | |
601 | - | let | |
602 | - | let | |
603 | - | let | |
604 | - | $Tuple5( | |
592 | + | let dD = z._1 | |
593 | + | let dE = z._3 | |
594 | + | let dF = z._4 | |
595 | + | let dG = z._5 | |
596 | + | let dH = z._6 | |
597 | + | $Tuple5(dD, dE, dF, dG, dH) | |
605 | 598 | } | |
606 | 599 | else throw("Couldn't cast types") | |
607 | 600 | } | |
608 | - | let | |
609 | - | let | |
610 | - | let | |
611 | - | let | |
612 | - | let | |
613 | - | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d%d", toString( | |
601 | + | let dD = dC._1 | |
602 | + | let dE = dC._2 | |
603 | + | let dF = dC._3 | |
604 | + | let dG = dC._4 | |
605 | + | let dH = dC._5 | |
606 | + | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d%d", toString(dD), toString(dj), toString(dF), toString(dG), toString(dH), dv, toString(dq), toString(dB)], e)) | |
614 | 607 | } | |
615 | 608 | ||
616 | 609 | ||
617 | 610 | ||
618 | 611 | @Callable(bB) | |
619 | - | func poolEvaluatePutByPriceAssetREADONLY ( | |
620 | - | let aZ = addressFromStringValue(t(aT, U( | |
621 | - | let | |
622 | - | let bd = fromBase58String(D( | |
623 | - | let | |
624 | - | let | |
625 | - | let | |
626 | - | let | |
627 | - | let | |
628 | - | let | |
629 | - | let | |
630 | - | let | |
631 | - | let | |
632 | - | let | |
633 | - | let | |
634 | - | let | |
635 | - | let | |
612 | + | func poolEvaluatePutByPriceAssetREADONLY (cV,dB) = { | |
613 | + | let aZ = addressFromStringValue(t(aT, U(cV))) | |
614 | + | let cY = x(invoke(aZ, "getPoolConfigWrapperREADONLY", nil, nil)) | |
615 | + | let bd = fromBase58String(D(cY[j])) | |
616 | + | let dr = D(cY[k]) | |
617 | + | let ds = fromBase58String(dr) | |
618 | + | let dt = D(cY[l]) | |
619 | + | let du = fromBase58String(dt) | |
620 | + | let dd = parseIntValue(D(cY[m])) | |
621 | + | let de = parseIntValue(D(cY[n])) | |
622 | + | let dv = D(cY[i]) | |
623 | + | let df = valueOrErrorMessage(assetInfo(bd), (("Asset " + toBase58String(bd)) + " doesn't exist")).quantity | |
624 | + | let dI = B(invoke(aZ, "getAccBalanceWrapperREADONLY", [dr], nil)) | |
625 | + | let dJ = B(invoke(aZ, "getAccBalanceWrapperREADONLY", [dt], nil)) | |
626 | + | let dK = parseBigIntValue(D(invoke(aZ, "toX18WrapperREADONLY", [dI, dd], nil))) | |
627 | + | let dL = parseBigIntValue(D(invoke(aZ, "toX18WrapperREADONLY", [dJ, de], nil))) | |
628 | + | let dy = if ((df == 0)) | |
636 | 629 | then g | |
637 | - | else parseBigIntValue(D(invoke(aZ, "calcPriceBigIntWrapperREADONLY", [toString( | |
638 | - | let | |
639 | - | let | |
640 | - | let | |
641 | - | let | |
642 | - | let | |
643 | - | let | |
644 | - | let z = | |
630 | + | else parseBigIntValue(D(invoke(aZ, "calcPriceBigIntWrapperREADONLY", [toString(dL), toString(dK)], nil))) | |
631 | + | let dj = B(invoke(aZ, "fromX18WrapperREADONLY", [toString(dy), b], nil)) | |
632 | + | let dA = parseBigIntValue(D(invoke(aZ, "toX18WrapperREADONLY", [dB, de], nil))) | |
633 | + | let dz = fraction(dA, d, dy) | |
634 | + | let dq = B(invoke(aZ, "fromX18WrapperREADONLY", [toString(dz), dd], nil)) | |
635 | + | let bZ = invoke(aZ, "estimatePutOperationWrapperREADONLY", ["", 500000, dq, ds, dB, du, "", true, false], nil) | |
636 | + | let dM = { | |
637 | + | let z = bZ | |
645 | 638 | if (if (if ($isInstanceOf(z._1, "Int")) | |
646 | 639 | then if ($isInstanceOf(z._3, "Int")) | |
647 | 640 | then if ($isInstanceOf(z._4, "Int")) | |
648 | 641 | then if ($isInstanceOf(z._5, "Int")) | |
649 | 642 | then $isInstanceOf(z._6, "Int") | |
650 | 643 | else false | |
651 | 644 | else false | |
652 | 645 | else false | |
653 | 646 | else false) | |
654 | 647 | then (size(z) == 13) | |
655 | 648 | else false) | |
656 | 649 | then { | |
657 | - | let | |
658 | - | let | |
659 | - | let | |
660 | - | let | |
661 | - | let | |
662 | - | $Tuple5( | |
650 | + | let dD = z._1 | |
651 | + | let dE = z._3 | |
652 | + | let dF = z._4 | |
653 | + | let dG = z._5 | |
654 | + | let dH = z._6 | |
655 | + | $Tuple5(dD, dE, dF, dG, dH) | |
663 | 656 | } | |
664 | 657 | else throw("Couldn't cast types") | |
665 | 658 | } | |
666 | - | let | |
667 | - | let | |
668 | - | let | |
669 | - | let | |
670 | - | let | |
671 | - | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d%d", toString( | |
659 | + | let dD = dM._1 | |
660 | + | let dE = dM._2 | |
661 | + | let dF = dM._3 | |
662 | + | let dG = dM._4 | |
663 | + | let dH = dM._5 | |
664 | + | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d%d", toString(dD), toString(dj), toString(dF), toString(dG), toString(dH), dv, toString(dq), toString(dB)], e)) | |
672 | 665 | } | |
673 | 666 | ||
674 | 667 | ||
675 | 668 | ||
676 | 669 | @Callable(bB) | |
677 | - | func poolEvaluateGetREADONLY ( | |
678 | - | let aZ = addressFromStringValue(t(aT, U( | |
679 | - | let | |
680 | - | let | |
681 | - | let z = | |
670 | + | func poolEvaluateGetREADONLY (dN,dO) = { | |
671 | + | let aZ = addressFromStringValue(t(aT, U(dN))) | |
672 | + | let bZ = invoke(aZ, "estimateGetOperationWrapperREADONLY", ["", dN, dO, toString(aZ)], nil) | |
673 | + | let dP = { | |
674 | + | let z = bZ | |
682 | 675 | if (if (if ($isInstanceOf(z._1, "Int")) | |
683 | 676 | then if ($isInstanceOf(z._2, "Int")) | |
684 | 677 | then if ($isInstanceOf(z._5, "Int")) | |
685 | 678 | then if ($isInstanceOf(z._6, "Int")) | |
686 | 679 | then if ($isInstanceOf(z._7, "Int")) | |
687 | 680 | then if ($isInstanceOf(z._8, "String")) | |
688 | 681 | then $isInstanceOf(z._9, "String") | |
689 | 682 | else false | |
690 | 683 | else false | |
691 | 684 | else false | |
692 | 685 | else false | |
693 | 686 | else false | |
694 | 687 | else false) | |
695 | 688 | then (size(z) == 10) | |
696 | 689 | else false) | |
697 | 690 | then { | |
698 | - | let | |
699 | - | let | |
700 | - | let | |
701 | - | let | |
702 | - | let | |
703 | - | let | |
704 | - | let | |
705 | - | $Tuple7( | |
691 | + | let dQ = z._1 | |
692 | + | let dR = z._2 | |
693 | + | let dF = z._5 | |
694 | + | let dG = z._6 | |
695 | + | let dH = z._7 | |
696 | + | let dj = z._8 | |
697 | + | let dv = z._9 | |
698 | + | $Tuple7(dQ, dR, dF, dG, dH, dj, dv) | |
706 | 699 | } | |
707 | 700 | else throw("Couldn't cast types") | |
708 | 701 | } | |
709 | - | let | |
710 | - | let | |
711 | - | let | |
712 | - | let | |
713 | - | let | |
714 | - | let | |
715 | - | let | |
716 | - | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d", toString( | |
702 | + | let dQ = dP._1 | |
703 | + | let dR = dP._2 | |
704 | + | let dF = dP._3 | |
705 | + | let dG = dP._4 | |
706 | + | let dH = dP._5 | |
707 | + | let dj = dP._6 | |
708 | + | let dv = dP._7 | |
709 | + | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d", toString(dQ), toString(dR), toString(dF), toString(dG), toString(dH), dj, dv], e)) | |
717 | 710 | } | |
718 | 711 | ||
719 | 712 | ||
720 | 713 | ||
721 | 714 | @Callable(bB) | |
722 | 715 | func gwxUserInfoREADONLY (am) = { | |
723 | - | let | |
724 | - | let | |
725 | - | $Tuple2(nil, makeString(["%d", toString( | |
716 | + | let dS = x(invoke(aX, "gwxUserInfoREADONLY", [am], nil)) | |
717 | + | let dT = B(dS[0]) | |
718 | + | $Tuple2(nil, makeString(["%d", toString(dT)], e)) | |
726 | 719 | } | |
727 | 720 | ||
728 | 721 | ||
729 | 722 | ||
730 | 723 | @Callable(bB) | |
731 | - | func unstakeAndGetOneTknV2 (aZ, | |
732 | - | let | |
733 | - | if (( | |
724 | + | func unstakeAndGetOneTknV2 (aZ,dU,dV,dW) = { | |
725 | + | let ca = invoke(addressFromStringValue(aZ), "unstakeAndGetOneTknV2", [dU, dV, dW], nil) | |
726 | + | if ((ca == ca)) | |
734 | 727 | then $Tuple2(nil, unit) | |
735 | 728 | else throw("Strict value is not equal to itself.") | |
736 | 729 | } | |
737 | 730 | ||
738 | 731 | ||
739 | 732 | ||
740 | 733 | @Callable(bB) | |
741 | - | func getKeysBulkInternal ( | |
742 | - | then $Tuple2(nil, | |
734 | + | func getKeysBulkInternal (bN,dX,bT) = if ((bN == size(dX))) | |
735 | + | then $Tuple2(nil, bT) | |
743 | 736 | else { | |
744 | - | let | |
745 | - | let bv = addressFromStringValue( | |
746 | - | let s = | |
747 | - | let bw = | |
737 | + | let cp = split(dX[bN], "++") | |
738 | + | let bv = addressFromStringValue(cp[0]) | |
739 | + | let s = cp[1] | |
740 | + | let bw = cp[2] | |
748 | 741 | let y = bu(bv, s, bw) | |
749 | - | let | |
750 | - | let | |
751 | - | if (( | |
752 | - | then $Tuple2(nil, | |
742 | + | let bZ = (bT :+ y) | |
743 | + | let ca = invoke(this, "getKeysBulkInternal", [(bN + 1), dX, bZ], nil) | |
744 | + | if ((ca == ca)) | |
745 | + | then $Tuple2(nil, ca) | |
753 | 746 | else throw("Strict value is not equal to itself.") | |
754 | 747 | } | |
755 | 748 | ||
756 | 749 | ||
757 | 750 | ||
758 | 751 | @Callable(bB) | |
759 | - | func getKeysBulk ( | |
760 | - | let | |
761 | - | $Tuple2(nil, | |
752 | + | func getKeysBulk (dX) = { | |
753 | + | let bZ = invoke(this, "getKeysBulkInternal", [0, dX, nil], nil) | |
754 | + | $Tuple2(nil, bZ) | |
762 | 755 | } | |
763 | 756 | ||
764 | 757 | ||
765 | 758 | ||
766 | 759 | @Callable(bB) | |
767 | - | func setManager ( | |
760 | + | func setManager (dY) = { | |
768 | 761 | let bF = bA(bB) | |
769 | 762 | if ((bF == bF)) | |
770 | 763 | then { | |
771 | - | let | |
772 | - | if (( | |
773 | - | then [StringEntry(H(), | |
764 | + | let dZ = fromBase58String(dY) | |
765 | + | if ((dZ == dZ)) | |
766 | + | then [StringEntry(H(), dY)] | |
774 | 767 | else throw("Strict value is not equal to itself.") | |
775 | 768 | } | |
776 | 769 | else throw("Strict value is not equal to itself.") | |
777 | 770 | } | |
778 | 771 | ||
779 | 772 | ||
780 | 773 | ||
781 | 774 | @Callable(bB) | |
782 | 775 | func confirmManager () = { | |
783 | - | let | |
784 | - | let | |
776 | + | let ea = bz() | |
777 | + | let eb = if (isDefined(ea)) | |
785 | 778 | then true | |
786 | 779 | else throw("No pending manager") | |
787 | - | if (( | |
780 | + | if ((eb == eb)) | |
788 | 781 | then { | |
789 | - | let | |
782 | + | let ec = if ((bB.callerPublicKey == value(ea))) | |
790 | 783 | then true | |
791 | 784 | else throw("You are not pending manager") | |
792 | - | if (( | |
793 | - | then [StringEntry(G(), toBase58String(value( | |
785 | + | if ((ec == ec)) | |
786 | + | then [StringEntry(G(), toBase58String(value(ea))), DeleteEntry(H())] | |
794 | 787 | else throw("Strict value is not equal to itself.") | |
795 | 788 | } | |
796 | 789 | else throw("Strict value is not equal to itself.") | |
797 | 790 | } | |
798 | 791 | ||
799 | 792 | ||
800 | - | @Verifier( | |
801 | - | func | |
802 | - | let | |
793 | + | @Verifier(ed) | |
794 | + | func ee () = { | |
795 | + | let ef = { | |
803 | 796 | let z = bx() | |
804 | 797 | if ($isInstanceOf(z, "ByteVector")) | |
805 | 798 | then { | |
806 | 799 | let bD = z | |
807 | 800 | bD | |
808 | 801 | } | |
809 | 802 | else if ($isInstanceOf(z, "Unit")) | |
810 | - | then | |
803 | + | then ed.senderPublicKey | |
811 | 804 | else throw("Match error") | |
812 | 805 | } | |
813 | - | sigVerify( | |
806 | + | sigVerify(ed.bodyBytes, ed.proofs[0], ef) | |
814 | 807 | } | |
815 | 808 |
github/deemru/w8io/169f3d6 173.95 ms ◑