tx · Hy8UmssTBsV9tRnP3KGhEaZX5MQkVbccHxDRKAJW9eaL 3MsNhK6uve98J6DeqbuwGFBRh9GoHPGUFgp: -0.02300000 Waves 2023.03.22 13:32 [2501114] smart account 3MsNhK6uve98J6DeqbuwGFBRh9GoHPGUFgp > SELF 0.00000000 Waves
{ "type": 13, "id": "Hy8UmssTBsV9tRnP3KGhEaZX5MQkVbccHxDRKAJW9eaL", "fee": 2300000, "feeAssetId": null, "timestamp": 1679481252551, "version": 2, "chainId": 84, "sender": "3MsNhK6uve98J6DeqbuwGFBRh9GoHPGUFgp", "senderPublicKey": "86RHVxKovtU7yKnepY8wKsd8niDxGAsiwuA1XA1DNqrS", "proofs": [ "tktCFdMS1bUVkYuLMU7GRS2qYYjj9E1WMUrG6tpNPW3r4bCRuLJ8LpMQ42XgtVRkcfiDKTRPNjVLXe8LPRDmSbr" ], "script": "base64:BgKrIQgCEgMKAQgSAwoBCBIECgIICBIJCgcBERERGAgYEgcKBRERERgIEgcKBQEBAQgIEgASAwoBCBIECgIIARIECgIIARIECgIIARIDCgEIEgYKBAgBCAESBQoDARgYEgMKARgSAwoBCBIAIgZTQ0FMRTgiBU1VTFQ4IgdTQ0FMRTE4IgZNVUxUMTgiA1NFUCIOUE9PTFdFSUdIVE1VTFQiCnplcm9CaWdJbnQiDmlkeFBvb2xBZGRyZXNzIg1pZHhQb29sU3RhdHVzIhBpZHhQb29sTFBBc3NldElkIg1pZHhBbXRBc3NldElkIg9pZHhQcmljZUFzc2V0SWQiDmlkeEFtdEFzc2V0RGNtIhBpZHhQcmljZUFzc2V0RGNtIg5pZHhJQW10QXNzZXRJZCIQaWR4SVByaWNlQXNzZXRJZCINaWR4TFBBc3NldERjbSIPZ2V0U3RyaW5nT3JGYWlsIgNrZXkiGGdldFN0cmluZ0J5QWRkcmVzc09yRmFpbCIHYWRkcmVzcyIMZ2V0SW50T3JaZXJvIgxnZXRJbnRPckZhaWwiCWFzQW55TGlzdCIDdmFsIgckbWF0Y2gwI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AAQIFAXoCBFVuaXQIBQJkWA9zZW5kZXJQdWJsaWNLZXkJAAIBAgtNYXRjaCBlcnJvcgkA9AMDCAUCZFgJYm9keUJ5dGVzCQCRAwIIBQJkWAZwcm9vZnMAAAUCZFr6cd9q", "height": 2501114, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: QoMWcLn8LVACtAydPeMGp63rQjuUay3q9jVbPprTCcU Next: FNZVPxjTJqMXdbmxZu2CkUHQrQsetpDJ4wFgrAKmkdsy 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 = 3 | |
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 | + | } | |
275 | 280 | let bk = (fraction(bh, bg, bf) / bj) | |
276 | 281 | let bl = fraction(bi, bg, bf) | |
277 | 282 | let bm = (bj * b) | |
356 | 361 | let bh = bG[0] | |
357 | 362 | let bm = bG[1] | |
358 | 363 | let bn = bG[2] | |
359 | - | $Tuple2(nil, makeString(["%d%d%d", toString(bh), toString(bm), toString(bn)], e)) | |
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)) | |
360 | 371 | } | |
361 | 372 | ||
362 | 373 | ||
367 | 378 | let bh = bG[0] | |
368 | 379 | let bm = bG[1] | |
369 | 380 | let bn = bG[2] | |
370 | - | let | |
371 | - | let | |
372 | - | let | |
373 | - | let | |
374 | - | let | |
375 | - | let | |
381 | + | let bI = v(aM, aE(am, bd)) | |
382 | + | let bJ = split(D(invoke(aM, "claimWxREADONLY", [bd, am], nil)), e) | |
383 | + | let bK = valueOrErrorMessage(parseInt(bJ[5]), "couldn't parse minRewardPart") | |
384 | + | let bL = valueOrErrorMessage(parseInt(bJ[6]), "couldn't parse boostRewardPart") | |
385 | + | let bM = bJ[7] | |
386 | + | let bN = if ((bL == 0)) | |
376 | 387 | then (1 * b) | |
377 | - | else fraction(( | |
378 | - | $Tuple2(nil, makeString(["%d%d%d%d%d%s", toString(bh), toString(bm), toString(bn), toString( | |
388 | + | else fraction((bK + bL), b, bK) | |
389 | + | $Tuple2(nil, makeString(["%d%d%d%d%d%s", toString(bh), toString(bm), toString(bn), toString(bI), toString(bN), bM], e)) | |
379 | 390 | } | |
380 | 391 | ||
381 | 392 | ||
382 | 393 | ||
383 | 394 | @Callable(bB) | |
384 | - | func calcBoostBulkInternalREADONLY ( | |
385 | - | then $Tuple2(nil, | |
395 | + | func calcBoostBulkInternalREADONLY (bO,bP,bQ,bR,bS,bT,bU) = if ((bO == size(bP))) | |
396 | + | then $Tuple2(nil, bU) | |
386 | 397 | else { | |
387 | - | let | |
388 | - | let | |
389 | - | let | |
390 | - | let | |
391 | - | let | |
392 | - | let ba = invoke(this, "calcBoostREADONLY", [ | |
398 | + | let bV = bP[bO] | |
399 | + | let bW = bQ[bO] | |
400 | + | let bX = bR[bO] | |
401 | + | let bY = bS[bO] | |
402 | + | let bZ = { | |
403 | + | let ba = invoke(this, "calcBoostREADONLY", [bV, bW, bX, bY, bT], nil) | |
393 | 404 | if ($isInstanceOf(ba, "String")) | |
394 | 405 | then ba | |
395 | 406 | else throw(($getType(ba) + " couldn't be cast to String")) | |
396 | 407 | } | |
397 | - | let | |
398 | - | let | |
399 | - | let ba = invoke(this, "calcBoostBulkInternalREADONLY", [( | |
408 | + | let ca = (bU :+ bZ) | |
409 | + | let cb = { | |
410 | + | let ba = invoke(this, "calcBoostBulkInternalREADONLY", [(bO + 1), bP, bQ, bR, bS, bT, ca], nil) | |
400 | 411 | if ($isInstanceOf(ba, "List[Any]")) | |
401 | 412 | then ba | |
402 | 413 | else throw(($getType(ba) + " couldn't be cast to List[Any]")) | |
403 | 414 | } | |
404 | - | if (( | |
405 | - | then $Tuple2(nil, | |
415 | + | if ((cb == cb)) | |
416 | + | then $Tuple2(nil, cb) | |
406 | 417 | else throw("Strict value is not equal to itself.") | |
407 | 418 | } | |
408 | 419 | ||
409 | 420 | ||
410 | 421 | ||
411 | 422 | @Callable(bB) | |
412 | - | func calcBoostBulkREADONLY ( | |
413 | - | let | |
414 | - | $Tuple2(nil, | |
423 | + | func calcBoostBulkREADONLY (bV,bW,bX,bY,bT) = { | |
424 | + | let ca = invoke(this, "calcBoostBulkInternalREADONLY", [0, bV, bW, bX, bY, bT, nil], nil) | |
425 | + | $Tuple2(nil, ca) | |
415 | 426 | } | |
416 | 427 | ||
417 | 428 | ||
418 | 429 | ||
419 | 430 | @Callable(bB) | |
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 = { | |
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 = { | |
449 | 458 | let ba = invoke(aX, "getTotalCachedGwxREADONLY", nil, nil) | |
450 | 459 | if ($isInstanceOf(ba, "Int")) | |
451 | 460 | then ba | |
452 | 461 | else throw(($getType(ba) + " couldn't be cast to Int")) | |
453 | 462 | } | |
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)) | |
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)) | |
463 | 470 | then { | |
464 | 471 | let be = valueOrErrorMessage(getString(aT, R(aG)), ("unsupported lp asset " + aG)) | |
465 | 472 | getIntegerValue(aT, V(be)) | |
466 | 473 | } | |
467 | 474 | else 0 | |
468 | - | let | |
469 | - | let | |
470 | - | then fraction( | |
475 | + | let cw = fraction(cr, bg, (f * cc)) | |
476 | + | let cx = if ((cv != 0)) | |
477 | + | then fraction(cw, b, cv) | |
471 | 478 | else 0 | |
472 | - | let | |
473 | - | let | |
474 | - | let | |
475 | - | let | |
476 | - | let | |
479 | + | let cy = fraction(cx, cu, b) | |
480 | + | let cz = (cw * (cc - 1)) | |
481 | + | let cA = fraction(cn, cz, cp) | |
482 | + | let cB = min([cA, (cy * (cc - 1))]) | |
483 | + | let cC = if ((cy == 0)) | |
477 | 484 | then (1 * b) | |
478 | - | else fraction(( | |
479 | - | $Tuple2(nil, makeString(["%d%d%s", toString( | |
485 | + | else fraction((cB + cy), b, cy) | |
486 | + | $Tuple2(nil, makeString(["%d%d%s", toString(co), toString(cC), "d"], e)) | |
480 | 487 | } | |
481 | 488 | ||
482 | 489 | ||
483 | 490 | ||
484 | 491 | @Callable(bB) | |
485 | 492 | func wxEmissionStatsREADONLY () = { | |
486 | - | let | |
487 | - | let | |
493 | + | let cD = toString(b) | |
494 | + | let cE = "1" | |
488 | 495 | let bh = w(aV, aN()) | |
489 | - | let | |
490 | - | let | |
496 | + | let cF = w(aV, aP()) | |
497 | + | let cG = if ((cF > height)) | |
491 | 498 | then 0 | |
492 | - | else (height - | |
493 | - | let | |
494 | - | let | |
495 | - | let | |
496 | - | then | |
497 | - | else fraction( | |
498 | - | let | |
499 | - | let | |
500 | - | let | |
501 | - | let | |
502 | - | $Tuple2(nil, makeString(["%d%d%d%d", toString( | |
499 | + | else (height - cF) | |
500 | + | let cH = (1440 * 365) | |
501 | + | let cI = (201000000 * b) | |
502 | + | let cJ = if ((cG > cH)) | |
503 | + | then cI | |
504 | + | else fraction(cI, cG, cH) | |
505 | + | let cK = ((bh * cG) + cJ) | |
506 | + | let cL = v(aX, ah()) | |
507 | + | let cM = v(aX, ai()) | |
508 | + | let cN = v(aX, aj()) | |
509 | + | $Tuple2(nil, makeString(["%d%d%d%d", toString(cK), toString(cL), toString(cM), toString(cN)], e)) | |
503 | 510 | } | |
504 | 511 | ||
505 | 512 | ||
506 | 513 | ||
507 | 514 | @Callable(bB) | |
508 | - | func poolStatsREADONLY ( | |
509 | - | let aZ = addressFromStringValue(t(aT, U( | |
510 | - | let | |
515 | + | func poolStatsREADONLY (cO) = { | |
516 | + | let aZ = addressFromStringValue(t(aT, U(cO))) | |
517 | + | let cP = { | |
511 | 518 | let ba = invoke(aT, "getPoolStatusREADONLY", [toString(aZ)], nil) | |
512 | 519 | if ($isInstanceOf(ba, "Int")) | |
513 | 520 | then ba | |
514 | 521 | else throw(($getType(ba) + " couldn't be cast to Int")) | |
515 | 522 | } | |
516 | - | let | |
517 | - | if (( | |
518 | - | then $Tuple2(nil, makeString([ | |
523 | + | let cQ = "%d%d%d%d%d%d%d%d%d%s" | |
524 | + | if ((cP == 4)) | |
525 | + | then $Tuple2(nil, makeString([cQ, toString(0), toString(0), toString(0), toString(0), toString(0), toString(0), toString(0), toString(0), toString(0), toString(false)], e)) | |
519 | 526 | else { | |
520 | - | let | |
521 | - | let bd = fromBase58String(D( | |
522 | - | let | |
523 | - | let | |
524 | - | let | |
525 | - | let | |
526 | - | let | |
527 | - | let | |
528 | - | let | |
529 | - | let | |
530 | - | let | |
531 | - | let | |
527 | + | let cR = x(invoke(aZ, "getPoolConfigWrapperREADONLY", nil, nil)) | |
528 | + | let bd = fromBase58String(D(cR[j])) | |
529 | + | let cS = D(cR[k]) | |
530 | + | let cT = D(cR[l]) | |
531 | + | let cU = D(cR[o]) | |
532 | + | let cV = D(cR[p]) | |
533 | + | let cW = parseIntValue(D(cR[m])) | |
534 | + | let cX = parseIntValue(D(cR[n])) | |
535 | + | let cY = valueOrErrorMessage(assetInfo(bd), (("Asset " + toBase58String(bd)) + " doesn't exist")).quantity | |
536 | + | let cZ = B(invoke(aZ, "getAccBalanceWrapperREADONLY", [cS], nil)) | |
537 | + | let da = B(invoke(aZ, "getAccBalanceWrapperREADONLY", [cT], nil)) | |
538 | + | let db = if ((cY == 0)) | |
532 | 539 | then [toString(g), toString(g), toString(g)] | |
533 | - | else x(invoke(aZ, "calcPricesWrapperREADONLY", [ | |
534 | - | let | |
535 | - | let | |
536 | - | let | |
540 | + | else x(invoke(aZ, "calcPricesWrapperREADONLY", [cZ, da, cY], nil)) | |
541 | + | let dc = 0 | |
542 | + | let dd = B(invoke(aZ, "fromX18WrapperREADONLY", [db[1], b], nil)) | |
543 | + | let de = B(invoke(aZ, "fromX18WrapperREADONLY", [db[2], b], nil)) | |
537 | 544 | let bg = getIntegerValue(aT, V(toString(aZ))) | |
538 | - | let | |
539 | - | let | |
540 | - | let | |
545 | + | let df = aY(aZ) | |
546 | + | let dg = bb(aZ) | |
547 | + | let dh = { | |
541 | 548 | let ba = invoke(aT, "isPoolOneTokenOperationsDisabledREADONLY", [toString(aZ)], nil) | |
542 | 549 | if ($isInstanceOf(ba, "Boolean")) | |
543 | 550 | then ba | |
544 | 551 | else throw(($getType(ba) + " couldn't be cast to Boolean")) | |
545 | 552 | } | |
546 | - | let | |
547 | - | $Tuple2(nil, makeString([ | |
553 | + | let di = !(dh) | |
554 | + | $Tuple2(nil, makeString([cQ, toString(cZ), toString(da), toString(cY), toString(dc), toString(dd), toString(de), toString(bg), toString(df), toString(dg), toString(di)], e)) | |
548 | 555 | } | |
549 | 556 | } | |
550 | 557 | ||
551 | 558 | ||
552 | 559 | ||
553 | 560 | @Callable(bB) | |
554 | - | func poolEvaluatePutByAmountAssetREADONLY ( | |
555 | - | let aZ = addressFromStringValue(t(aT, U( | |
556 | - | let | |
557 | - | let bd = fromBase58String(D( | |
558 | - | let | |
559 | - | let | |
560 | - | let | |
561 | - | let | |
562 | - | let | |
563 | - | let | |
564 | - | let | |
565 | - | let | |
566 | - | let | |
567 | - | let | |
568 | - | let | |
569 | - | let | |
570 | - | let | |
561 | + | func poolEvaluatePutByAmountAssetREADONLY (cO,dj) = { | |
562 | + | let aZ = addressFromStringValue(t(aT, U(cO))) | |
563 | + | let cR = x(invoke(aZ, "getPoolConfigWrapperREADONLY", nil, nil)) | |
564 | + | let bd = fromBase58String(D(cR[j])) | |
565 | + | let dk = D(cR[k]) | |
566 | + | let dl = fromBase58String(dk) | |
567 | + | let dm = D(cR[l]) | |
568 | + | let dn = fromBase58String(dm) | |
569 | + | let cW = parseIntValue(D(cR[m])) | |
570 | + | let cX = parseIntValue(D(cR[n])) | |
571 | + | let do = D(cR[i]) | |
572 | + | let cY = valueOrErrorMessage(assetInfo(bd), (("Asset " + toBase58String(bd)) + " doesn't exist")).quantity | |
573 | + | let cZ = B(invoke(aZ, "getAccBalanceWrapperREADONLY", [dk], nil)) | |
574 | + | let da = B(invoke(aZ, "getAccBalanceWrapperREADONLY", [dm], nil)) | |
575 | + | let dp = parseBigIntValue(D(invoke(aZ, "toX18WrapperREADONLY", [cZ, cW], nil))) | |
576 | + | let dq = parseBigIntValue(D(invoke(aZ, "toX18WrapperREADONLY", [da, cX], nil))) | |
577 | + | let dr = if ((cY == 0)) | |
571 | 578 | then g | |
572 | - | else parseBigIntValue(D(invoke(aZ, "calcPriceBigIntWrapperREADONLY", [toString( | |
573 | - | let | |
574 | - | let | |
575 | - | let | |
576 | - | let | |
577 | - | let | |
578 | - | let | |
579 | - | let z = | |
579 | + | else parseBigIntValue(D(invoke(aZ, "calcPriceBigIntWrapperREADONLY", [toString(dq), toString(dp)], nil))) | |
580 | + | let dc = B(invoke(aZ, "fromX18WrapperREADONLY", [toString(dr), b], nil)) | |
581 | + | let ds = parseBigIntValue(D(invoke(aZ, "toX18WrapperREADONLY", [dj, cW], nil))) | |
582 | + | let dt = fraction(ds, dr, d) | |
583 | + | let du = B(invoke(aZ, "fromX18WrapperREADONLY", [toString(dt), cX], nil)) | |
584 | + | let ca = invoke(aZ, "estimatePutOperationWrapperREADONLY", ["", 500000, dj, dl, du, dn, "", true, false], nil) | |
585 | + | let dv = { | |
586 | + | let z = ca | |
580 | 587 | if (if (if ($isInstanceOf(z._1, "Int")) | |
581 | 588 | then if ($isInstanceOf(z._3, "Int")) | |
582 | 589 | then if ($isInstanceOf(z._4, "Int")) | |
589 | 596 | then (size(z) == 13) | |
590 | 597 | else false) | |
591 | 598 | then { | |
592 | - | let | |
593 | - | let | |
594 | - | let | |
595 | - | let | |
596 | - | let | |
597 | - | $Tuple5( | |
599 | + | let dw = z._1 | |
600 | + | let dx = z._3 | |
601 | + | let dy = z._4 | |
602 | + | let dz = z._5 | |
603 | + | let dA = z._6 | |
604 | + | $Tuple5(dw, dx, dy, dz, dA) | |
598 | 605 | } | |
599 | 606 | else throw("Couldn't cast types") | |
600 | 607 | } | |
601 | - | let | |
602 | - | let | |
603 | - | let | |
604 | - | let | |
605 | - | let | |
606 | - | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d%d", toString( | |
608 | + | let dw = dv._1 | |
609 | + | let dx = dv._2 | |
610 | + | let dy = dv._3 | |
611 | + | let dz = dv._4 | |
612 | + | let dA = dv._5 | |
613 | + | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d%d", toString(dw), toString(dc), toString(dy), toString(dz), toString(dA), do, toString(dj), toString(du)], e)) | |
607 | 614 | } | |
608 | 615 | ||
609 | 616 | ||
610 | 617 | ||
611 | 618 | @Callable(bB) | |
612 | - | func poolEvaluatePutByPriceAssetREADONLY ( | |
613 | - | let aZ = addressFromStringValue(t(aT, U( | |
614 | - | let | |
615 | - | let bd = fromBase58String(D( | |
616 | - | let | |
617 | - | let | |
618 | - | let | |
619 | - | let | |
620 | - | let | |
621 | - | let | |
622 | - | let | |
623 | - | let | |
624 | - | let | |
625 | - | let | |
626 | - | let | |
627 | - | let | |
628 | - | let | |
619 | + | func poolEvaluatePutByPriceAssetREADONLY (cO,du) = { | |
620 | + | let aZ = addressFromStringValue(t(aT, U(cO))) | |
621 | + | let cR = x(invoke(aZ, "getPoolConfigWrapperREADONLY", nil, nil)) | |
622 | + | let bd = fromBase58String(D(cR[j])) | |
623 | + | let dk = D(cR[k]) | |
624 | + | let dl = fromBase58String(dk) | |
625 | + | let dm = D(cR[l]) | |
626 | + | let dn = fromBase58String(dm) | |
627 | + | let cW = parseIntValue(D(cR[m])) | |
628 | + | let cX = parseIntValue(D(cR[n])) | |
629 | + | let do = D(cR[i]) | |
630 | + | let cY = valueOrErrorMessage(assetInfo(bd), (("Asset " + toBase58String(bd)) + " doesn't exist")).quantity | |
631 | + | let dB = B(invoke(aZ, "getAccBalanceWrapperREADONLY", [dk], nil)) | |
632 | + | let dC = B(invoke(aZ, "getAccBalanceWrapperREADONLY", [dm], nil)) | |
633 | + | let dD = parseBigIntValue(D(invoke(aZ, "toX18WrapperREADONLY", [dB, cW], nil))) | |
634 | + | let dE = parseBigIntValue(D(invoke(aZ, "toX18WrapperREADONLY", [dC, cX], nil))) | |
635 | + | let dr = if ((cY == 0)) | |
629 | 636 | then g | |
630 | - | else parseBigIntValue(D(invoke(aZ, "calcPriceBigIntWrapperREADONLY", [toString( | |
631 | - | let | |
632 | - | let | |
633 | - | let | |
634 | - | let | |
635 | - | let | |
636 | - | let | |
637 | - | let z = | |
637 | + | else parseBigIntValue(D(invoke(aZ, "calcPriceBigIntWrapperREADONLY", [toString(dE), toString(dD)], nil))) | |
638 | + | let dc = B(invoke(aZ, "fromX18WrapperREADONLY", [toString(dr), b], nil)) | |
639 | + | let dt = parseBigIntValue(D(invoke(aZ, "toX18WrapperREADONLY", [du, cX], nil))) | |
640 | + | let ds = fraction(dt, d, dr) | |
641 | + | let dj = B(invoke(aZ, "fromX18WrapperREADONLY", [toString(ds), cW], nil)) | |
642 | + | let ca = invoke(aZ, "estimatePutOperationWrapperREADONLY", ["", 500000, dj, dl, du, dn, "", true, false], nil) | |
643 | + | let dF = { | |
644 | + | let z = ca | |
638 | 645 | if (if (if ($isInstanceOf(z._1, "Int")) | |
639 | 646 | then if ($isInstanceOf(z._3, "Int")) | |
640 | 647 | then if ($isInstanceOf(z._4, "Int")) | |
647 | 654 | then (size(z) == 13) | |
648 | 655 | else false) | |
649 | 656 | then { | |
650 | - | let | |
651 | - | let | |
652 | - | let | |
653 | - | let | |
654 | - | let | |
655 | - | $Tuple5( | |
657 | + | let dw = z._1 | |
658 | + | let dx = z._3 | |
659 | + | let dy = z._4 | |
660 | + | let dz = z._5 | |
661 | + | let dA = z._6 | |
662 | + | $Tuple5(dw, dx, dy, dz, dA) | |
656 | 663 | } | |
657 | 664 | else throw("Couldn't cast types") | |
658 | 665 | } | |
659 | - | let | |
660 | - | let | |
661 | - | let | |
662 | - | let | |
663 | - | let | |
664 | - | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d%d", toString( | |
666 | + | let dw = dF._1 | |
667 | + | let dx = dF._2 | |
668 | + | let dy = dF._3 | |
669 | + | let dz = dF._4 | |
670 | + | let dA = dF._5 | |
671 | + | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d%d", toString(dw), toString(dc), toString(dy), toString(dz), toString(dA), do, toString(dj), toString(du)], e)) | |
665 | 672 | } | |
666 | 673 | ||
667 | 674 | ||
668 | 675 | ||
669 | 676 | @Callable(bB) | |
670 | - | func poolEvaluateGetREADONLY ( | |
671 | - | let aZ = addressFromStringValue(t(aT, U( | |
672 | - | let | |
673 | - | let | |
674 | - | let z = | |
677 | + | func poolEvaluateGetREADONLY (dG,dH) = { | |
678 | + | let aZ = addressFromStringValue(t(aT, U(dG))) | |
679 | + | let ca = invoke(aZ, "estimateGetOperationWrapperREADONLY", ["", dG, dH, toString(aZ)], nil) | |
680 | + | let dI = { | |
681 | + | let z = ca | |
675 | 682 | if (if (if ($isInstanceOf(z._1, "Int")) | |
676 | 683 | then if ($isInstanceOf(z._2, "Int")) | |
677 | 684 | then if ($isInstanceOf(z._5, "Int")) | |
688 | 695 | then (size(z) == 10) | |
689 | 696 | else false) | |
690 | 697 | then { | |
691 | - | let | |
692 | - | let | |
693 | - | let | |
694 | - | let | |
695 | - | let | |
696 | - | let | |
697 | - | let | |
698 | - | $Tuple7( | |
698 | + | let dJ = z._1 | |
699 | + | let dK = z._2 | |
700 | + | let dy = z._5 | |
701 | + | let dz = z._6 | |
702 | + | let dA = z._7 | |
703 | + | let dc = z._8 | |
704 | + | let do = z._9 | |
705 | + | $Tuple7(dJ, dK, dy, dz, dA, dc, do) | |
699 | 706 | } | |
700 | 707 | else throw("Couldn't cast types") | |
701 | 708 | } | |
702 | - | let | |
703 | - | let | |
704 | - | let | |
705 | - | let | |
706 | - | let | |
707 | - | let | |
708 | - | let | |
709 | - | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d", toString( | |
709 | + | let dJ = dI._1 | |
710 | + | let dK = dI._2 | |
711 | + | let dy = dI._3 | |
712 | + | let dz = dI._4 | |
713 | + | let dA = dI._5 | |
714 | + | let dc = dI._6 | |
715 | + | let do = dI._7 | |
716 | + | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d", toString(dJ), toString(dK), toString(dy), toString(dz), toString(dA), dc, do], e)) | |
710 | 717 | } | |
711 | 718 | ||
712 | 719 | ||
713 | 720 | ||
714 | 721 | @Callable(bB) | |
715 | 722 | func gwxUserInfoREADONLY (am) = { | |
716 | - | let | |
717 | - | let | |
718 | - | $Tuple2(nil, makeString(["%d", toString( | |
723 | + | let dL = x(invoke(aX, "gwxUserInfoREADONLY", [am], nil)) | |
724 | + | let dM = B(dL[0]) | |
725 | + | $Tuple2(nil, makeString(["%d", toString(dM)], e)) | |
719 | 726 | } | |
720 | 727 | ||
721 | 728 | ||
722 | 729 | ||
723 | 730 | @Callable(bB) | |
724 | - | func unstakeAndGetOneTknV2 (aZ, | |
725 | - | let | |
726 | - | if (( | |
731 | + | func unstakeAndGetOneTknV2 (aZ,dN,dO,dP) = { | |
732 | + | let cb = invoke(addressFromStringValue(aZ), "unstakeAndGetOneTknV2", [dN, dO, dP], nil) | |
733 | + | if ((cb == cb)) | |
727 | 734 | then $Tuple2(nil, unit) | |
728 | 735 | else throw("Strict value is not equal to itself.") | |
729 | 736 | } | |
731 | 738 | ||
732 | 739 | ||
733 | 740 | @Callable(bB) | |
734 | - | func getKeysBulkInternal ( | |
735 | - | then $Tuple2(nil, | |
741 | + | func getKeysBulkInternal (bO,dQ,bU) = if ((bO == size(dQ))) | |
742 | + | then $Tuple2(nil, bU) | |
736 | 743 | else { | |
737 | - | let | |
738 | - | let bv = addressFromStringValue( | |
739 | - | let s = | |
740 | - | let bw = | |
744 | + | let dR = split(dQ[bO], "++") | |
745 | + | let bv = addressFromStringValue(dR[0]) | |
746 | + | let s = dR[1] | |
747 | + | let bw = dR[2] | |
741 | 748 | let y = bu(bv, s, bw) | |
742 | - | let | |
743 | - | let | |
744 | - | if (( | |
745 | - | then $Tuple2(nil, | |
749 | + | let ca = (bU :+ y) | |
750 | + | let cb = invoke(this, "getKeysBulkInternal", [(bO + 1), dQ, ca], nil) | |
751 | + | if ((cb == cb)) | |
752 | + | then $Tuple2(nil, cb) | |
746 | 753 | else throw("Strict value is not equal to itself.") | |
747 | 754 | } | |
748 | 755 | ||
749 | 756 | ||
750 | 757 | ||
751 | 758 | @Callable(bB) | |
752 | - | func getKeysBulk ( | |
753 | - | let | |
754 | - | $Tuple2(nil, | |
759 | + | func getKeysBulk (dQ) = { | |
760 | + | let ca = invoke(this, "getKeysBulkInternal", [0, dQ, nil], nil) | |
761 | + | $Tuple2(nil, ca) | |
755 | 762 | } | |
756 | 763 | ||
757 | 764 | ||
758 | 765 | ||
759 | 766 | @Callable(bB) | |
760 | - | func setManager ( | |
767 | + | func setManager (dS) = { | |
761 | 768 | let bF = bA(bB) | |
762 | 769 | if ((bF == bF)) | |
763 | 770 | then { | |
764 | - | let | |
765 | - | if (( | |
766 | - | then [StringEntry(H(), | |
771 | + | let dT = fromBase58String(dS) | |
772 | + | if ((dT == dT)) | |
773 | + | then [StringEntry(H(), dS)] | |
767 | 774 | else throw("Strict value is not equal to itself.") | |
768 | 775 | } | |
769 | 776 | else throw("Strict value is not equal to itself.") | |
773 | 780 | ||
774 | 781 | @Callable(bB) | |
775 | 782 | func confirmManager () = { | |
776 | - | let | |
777 | - | let | |
783 | + | let dU = bz() | |
784 | + | let dV = if (isDefined(dU)) | |
778 | 785 | then true | |
779 | 786 | else throw("No pending manager") | |
780 | - | if (( | |
787 | + | if ((dV == dV)) | |
781 | 788 | then { | |
782 | - | let | |
789 | + | let dW = if ((bB.callerPublicKey == value(dU))) | |
783 | 790 | then true | |
784 | 791 | else throw("You are not pending manager") | |
785 | - | if (( | |
786 | - | then [StringEntry(G(), toBase58String(value( | |
792 | + | if ((dW == dW)) | |
793 | + | then [StringEntry(G(), toBase58String(value(dU))), DeleteEntry(H())] | |
787 | 794 | else throw("Strict value is not equal to itself.") | |
788 | 795 | } | |
789 | 796 | else throw("Strict value is not equal to itself.") | |
790 | 797 | } | |
791 | 798 | ||
792 | 799 | ||
793 | - | @Verifier( | |
794 | - | func | |
795 | - | let | |
800 | + | @Verifier(dX) | |
801 | + | func dY () = { | |
802 | + | let dZ = { | |
796 | 803 | let z = bx() | |
797 | 804 | if ($isInstanceOf(z, "ByteVector")) | |
798 | 805 | then { | |
800 | 807 | bD | |
801 | 808 | } | |
802 | 809 | else if ($isInstanceOf(z, "Unit")) | |
803 | - | then | |
810 | + | then dX.senderPublicKey | |
804 | 811 | else throw("Match error") | |
805 | 812 | } | |
806 | - | sigVerify( | |
813 | + | sigVerify(dX.bodyBytes, dX.proofs[0], dZ) | |
807 | 814 | } | |
808 | 815 |
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 = 3 | |
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 | + | } | |
275 | 280 | let bk = (fraction(bh, bg, bf) / bj) | |
276 | 281 | let bl = fraction(bi, bg, bf) | |
277 | 282 | let bm = (bj * b) | |
278 | 283 | let bn = v(aM, aH(bd)) | |
279 | 284 | [bk, bm, bn] | |
280 | 285 | } | |
281 | 286 | ||
282 | 287 | ||
283 | 288 | func bo (bp,bq,br) = { | |
284 | 289 | let bs = fraction(bq, b, br) | |
285 | 290 | let bt = fraction(bp, bs, b) | |
286 | 291 | [bt] | |
287 | 292 | } | |
288 | 293 | ||
289 | 294 | ||
290 | 295 | func bu (bv,s,bw) = if ((bw == "string")) | |
291 | 296 | then getStringValue(bv, s) | |
292 | 297 | else if ((bw == "integer")) | |
293 | 298 | then toString(getIntegerValue(bv, s)) | |
294 | 299 | else if ((bw == "boolean")) | |
295 | 300 | then toString(getBooleanValue(bv, s)) | |
296 | 301 | else throw("unknown type. expected string/integer/boolean") | |
297 | 302 | ||
298 | 303 | ||
299 | 304 | func bx () = { | |
300 | 305 | let z = getString(G()) | |
301 | 306 | if ($isInstanceOf(z, "String")) | |
302 | 307 | then { | |
303 | 308 | let by = z | |
304 | 309 | fromBase58String(by) | |
305 | 310 | } | |
306 | 311 | else if ($isInstanceOf(z, "Unit")) | |
307 | 312 | then unit | |
308 | 313 | else throw("Match error") | |
309 | 314 | } | |
310 | 315 | ||
311 | 316 | ||
312 | 317 | func bz () = { | |
313 | 318 | let z = getString(H()) | |
314 | 319 | if ($isInstanceOf(z, "String")) | |
315 | 320 | then { | |
316 | 321 | let by = z | |
317 | 322 | fromBase58String(by) | |
318 | 323 | } | |
319 | 324 | else if ($isInstanceOf(z, "Unit")) | |
320 | 325 | then unit | |
321 | 326 | else throw("Match error") | |
322 | 327 | } | |
323 | 328 | ||
324 | 329 | ||
325 | 330 | func bA (bB) = { | |
326 | 331 | let bC = throw("Permission denied") | |
327 | 332 | let z = bx() | |
328 | 333 | if ($isInstanceOf(z, "ByteVector")) | |
329 | 334 | then { | |
330 | 335 | let bD = z | |
331 | 336 | if ((bB.callerPublicKey == bD)) | |
332 | 337 | then true | |
333 | 338 | else bC | |
334 | 339 | } | |
335 | 340 | else if ($isInstanceOf(z, "Unit")) | |
336 | 341 | then if ((bB.caller == this)) | |
337 | 342 | then true | |
338 | 343 | else bC | |
339 | 344 | else throw("Match error") | |
340 | 345 | } | |
341 | 346 | ||
342 | 347 | ||
343 | 348 | @Callable(bB) | |
344 | 349 | func constructor (bE) = { | |
345 | 350 | let bF = bA(bB) | |
346 | 351 | if ((bF == bF)) | |
347 | 352 | then [StringEntry(F(), bE)] | |
348 | 353 | else throw("Strict value is not equal to itself.") | |
349 | 354 | } | |
350 | 355 | ||
351 | 356 | ||
352 | 357 | ||
353 | 358 | @Callable(bB) | |
354 | 359 | func currentRewardRateREADONLY (bd) = { | |
355 | 360 | let bG = bc(bd) | |
356 | 361 | let bh = bG[0] | |
357 | 362 | let bm = bG[1] | |
358 | 363 | let bn = bG[2] | |
359 | - | $Tuple2(nil, makeString(["%d%d%d", toString(bh), toString(bm), toString(bn)], e)) | |
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)) | |
360 | 371 | } | |
361 | 372 | ||
362 | 373 | ||
363 | 374 | ||
364 | 375 | @Callable(bB) | |
365 | 376 | func currentUserRewardRateREADONLY (bd,am) = { | |
366 | 377 | let bG = bc(bd) | |
367 | 378 | let bh = bG[0] | |
368 | 379 | let bm = bG[1] | |
369 | 380 | let bn = bG[2] | |
370 | - | let | |
371 | - | let | |
372 | - | let | |
373 | - | let | |
374 | - | let | |
375 | - | let | |
381 | + | let bI = v(aM, aE(am, bd)) | |
382 | + | let bJ = split(D(invoke(aM, "claimWxREADONLY", [bd, am], nil)), e) | |
383 | + | let bK = valueOrErrorMessage(parseInt(bJ[5]), "couldn't parse minRewardPart") | |
384 | + | let bL = valueOrErrorMessage(parseInt(bJ[6]), "couldn't parse boostRewardPart") | |
385 | + | let bM = bJ[7] | |
386 | + | let bN = if ((bL == 0)) | |
376 | 387 | then (1 * b) | |
377 | - | else fraction(( | |
378 | - | $Tuple2(nil, makeString(["%d%d%d%d%d%s", toString(bh), toString(bm), toString(bn), toString( | |
388 | + | else fraction((bK + bL), b, bK) | |
389 | + | $Tuple2(nil, makeString(["%d%d%d%d%d%s", toString(bh), toString(bm), toString(bn), toString(bI), toString(bN), bM], e)) | |
379 | 390 | } | |
380 | 391 | ||
381 | 392 | ||
382 | 393 | ||
383 | 394 | @Callable(bB) | |
384 | - | func calcBoostBulkInternalREADONLY ( | |
385 | - | then $Tuple2(nil, | |
395 | + | func calcBoostBulkInternalREADONLY (bO,bP,bQ,bR,bS,bT,bU) = if ((bO == size(bP))) | |
396 | + | then $Tuple2(nil, bU) | |
386 | 397 | else { | |
387 | - | let | |
388 | - | let | |
389 | - | let | |
390 | - | let | |
391 | - | let | |
392 | - | let ba = invoke(this, "calcBoostREADONLY", [ | |
398 | + | let bV = bP[bO] | |
399 | + | let bW = bQ[bO] | |
400 | + | let bX = bR[bO] | |
401 | + | let bY = bS[bO] | |
402 | + | let bZ = { | |
403 | + | let ba = invoke(this, "calcBoostREADONLY", [bV, bW, bX, bY, bT], nil) | |
393 | 404 | if ($isInstanceOf(ba, "String")) | |
394 | 405 | then ba | |
395 | 406 | else throw(($getType(ba) + " couldn't be cast to String")) | |
396 | 407 | } | |
397 | - | let | |
398 | - | let | |
399 | - | let ba = invoke(this, "calcBoostBulkInternalREADONLY", [( | |
408 | + | let ca = (bU :+ bZ) | |
409 | + | let cb = { | |
410 | + | let ba = invoke(this, "calcBoostBulkInternalREADONLY", [(bO + 1), bP, bQ, bR, bS, bT, ca], nil) | |
400 | 411 | if ($isInstanceOf(ba, "List[Any]")) | |
401 | 412 | then ba | |
402 | 413 | else throw(($getType(ba) + " couldn't be cast to List[Any]")) | |
403 | 414 | } | |
404 | - | if (( | |
405 | - | then $Tuple2(nil, | |
415 | + | if ((cb == cb)) | |
416 | + | then $Tuple2(nil, cb) | |
406 | 417 | else throw("Strict value is not equal to itself.") | |
407 | 418 | } | |
408 | 419 | ||
409 | 420 | ||
410 | 421 | ||
411 | 422 | @Callable(bB) | |
412 | - | func calcBoostBulkREADONLY ( | |
413 | - | let | |
414 | - | $Tuple2(nil, | |
423 | + | func calcBoostBulkREADONLY (bV,bW,bX,bY,bT) = { | |
424 | + | let ca = invoke(this, "calcBoostBulkInternalREADONLY", [0, bV, bW, bX, bY, bT, nil], nil) | |
425 | + | $Tuple2(nil, ca) | |
415 | 426 | } | |
416 | 427 | ||
417 | 428 | ||
418 | 429 | ||
419 | 430 | @Callable(bB) | |
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 = { | |
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 = { | |
449 | 458 | let ba = invoke(aX, "getTotalCachedGwxREADONLY", nil, nil) | |
450 | 459 | if ($isInstanceOf(ba, "Int")) | |
451 | 460 | then ba | |
452 | 461 | else throw(($getType(ba) + " couldn't be cast to Int")) | |
453 | 462 | } | |
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)) | |
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)) | |
463 | 470 | then { | |
464 | 471 | let be = valueOrErrorMessage(getString(aT, R(aG)), ("unsupported lp asset " + aG)) | |
465 | 472 | getIntegerValue(aT, V(be)) | |
466 | 473 | } | |
467 | 474 | else 0 | |
468 | - | let | |
469 | - | let | |
470 | - | then fraction( | |
475 | + | let cw = fraction(cr, bg, (f * cc)) | |
476 | + | let cx = if ((cv != 0)) | |
477 | + | then fraction(cw, b, cv) | |
471 | 478 | else 0 | |
472 | - | let | |
473 | - | let | |
474 | - | let | |
475 | - | let | |
476 | - | let | |
479 | + | let cy = fraction(cx, cu, b) | |
480 | + | let cz = (cw * (cc - 1)) | |
481 | + | let cA = fraction(cn, cz, cp) | |
482 | + | let cB = min([cA, (cy * (cc - 1))]) | |
483 | + | let cC = if ((cy == 0)) | |
477 | 484 | then (1 * b) | |
478 | - | else fraction(( | |
479 | - | $Tuple2(nil, makeString(["%d%d%s", toString( | |
485 | + | else fraction((cB + cy), b, cy) | |
486 | + | $Tuple2(nil, makeString(["%d%d%s", toString(co), toString(cC), "d"], e)) | |
480 | 487 | } | |
481 | 488 | ||
482 | 489 | ||
483 | 490 | ||
484 | 491 | @Callable(bB) | |
485 | 492 | func wxEmissionStatsREADONLY () = { | |
486 | - | let | |
487 | - | let | |
493 | + | let cD = toString(b) | |
494 | + | let cE = "1" | |
488 | 495 | let bh = w(aV, aN()) | |
489 | - | let | |
490 | - | let | |
496 | + | let cF = w(aV, aP()) | |
497 | + | let cG = if ((cF > height)) | |
491 | 498 | then 0 | |
492 | - | else (height - | |
493 | - | let | |
494 | - | let | |
495 | - | let | |
496 | - | then | |
497 | - | else fraction( | |
498 | - | let | |
499 | - | let | |
500 | - | let | |
501 | - | let | |
502 | - | $Tuple2(nil, makeString(["%d%d%d%d", toString( | |
499 | + | else (height - cF) | |
500 | + | let cH = (1440 * 365) | |
501 | + | let cI = (201000000 * b) | |
502 | + | let cJ = if ((cG > cH)) | |
503 | + | then cI | |
504 | + | else fraction(cI, cG, cH) | |
505 | + | let cK = ((bh * cG) + cJ) | |
506 | + | let cL = v(aX, ah()) | |
507 | + | let cM = v(aX, ai()) | |
508 | + | let cN = v(aX, aj()) | |
509 | + | $Tuple2(nil, makeString(["%d%d%d%d", toString(cK), toString(cL), toString(cM), toString(cN)], e)) | |
503 | 510 | } | |
504 | 511 | ||
505 | 512 | ||
506 | 513 | ||
507 | 514 | @Callable(bB) | |
508 | - | func poolStatsREADONLY ( | |
509 | - | let aZ = addressFromStringValue(t(aT, U( | |
510 | - | let | |
515 | + | func poolStatsREADONLY (cO) = { | |
516 | + | let aZ = addressFromStringValue(t(aT, U(cO))) | |
517 | + | let cP = { | |
511 | 518 | let ba = invoke(aT, "getPoolStatusREADONLY", [toString(aZ)], nil) | |
512 | 519 | if ($isInstanceOf(ba, "Int")) | |
513 | 520 | then ba | |
514 | 521 | else throw(($getType(ba) + " couldn't be cast to Int")) | |
515 | 522 | } | |
516 | - | let | |
517 | - | if (( | |
518 | - | then $Tuple2(nil, makeString([ | |
523 | + | let cQ = "%d%d%d%d%d%d%d%d%d%s" | |
524 | + | if ((cP == 4)) | |
525 | + | then $Tuple2(nil, makeString([cQ, toString(0), toString(0), toString(0), toString(0), toString(0), toString(0), toString(0), toString(0), toString(0), toString(false)], e)) | |
519 | 526 | else { | |
520 | - | let | |
521 | - | let bd = fromBase58String(D( | |
522 | - | let | |
523 | - | let | |
524 | - | let | |
525 | - | let | |
526 | - | let | |
527 | - | let | |
528 | - | let | |
529 | - | let | |
530 | - | let | |
531 | - | let | |
527 | + | let cR = x(invoke(aZ, "getPoolConfigWrapperREADONLY", nil, nil)) | |
528 | + | let bd = fromBase58String(D(cR[j])) | |
529 | + | let cS = D(cR[k]) | |
530 | + | let cT = D(cR[l]) | |
531 | + | let cU = D(cR[o]) | |
532 | + | let cV = D(cR[p]) | |
533 | + | let cW = parseIntValue(D(cR[m])) | |
534 | + | let cX = parseIntValue(D(cR[n])) | |
535 | + | let cY = valueOrErrorMessage(assetInfo(bd), (("Asset " + toBase58String(bd)) + " doesn't exist")).quantity | |
536 | + | let cZ = B(invoke(aZ, "getAccBalanceWrapperREADONLY", [cS], nil)) | |
537 | + | let da = B(invoke(aZ, "getAccBalanceWrapperREADONLY", [cT], nil)) | |
538 | + | let db = if ((cY == 0)) | |
532 | 539 | then [toString(g), toString(g), toString(g)] | |
533 | - | else x(invoke(aZ, "calcPricesWrapperREADONLY", [ | |
534 | - | let | |
535 | - | let | |
536 | - | let | |
540 | + | else x(invoke(aZ, "calcPricesWrapperREADONLY", [cZ, da, cY], nil)) | |
541 | + | let dc = 0 | |
542 | + | let dd = B(invoke(aZ, "fromX18WrapperREADONLY", [db[1], b], nil)) | |
543 | + | let de = B(invoke(aZ, "fromX18WrapperREADONLY", [db[2], b], nil)) | |
537 | 544 | let bg = getIntegerValue(aT, V(toString(aZ))) | |
538 | - | let | |
539 | - | let | |
540 | - | let | |
545 | + | let df = aY(aZ) | |
546 | + | let dg = bb(aZ) | |
547 | + | let dh = { | |
541 | 548 | let ba = invoke(aT, "isPoolOneTokenOperationsDisabledREADONLY", [toString(aZ)], nil) | |
542 | 549 | if ($isInstanceOf(ba, "Boolean")) | |
543 | 550 | then ba | |
544 | 551 | else throw(($getType(ba) + " couldn't be cast to Boolean")) | |
545 | 552 | } | |
546 | - | let | |
547 | - | $Tuple2(nil, makeString([ | |
553 | + | let di = !(dh) | |
554 | + | $Tuple2(nil, makeString([cQ, toString(cZ), toString(da), toString(cY), toString(dc), toString(dd), toString(de), toString(bg), toString(df), toString(dg), toString(di)], e)) | |
548 | 555 | } | |
549 | 556 | } | |
550 | 557 | ||
551 | 558 | ||
552 | 559 | ||
553 | 560 | @Callable(bB) | |
554 | - | func poolEvaluatePutByAmountAssetREADONLY ( | |
555 | - | let aZ = addressFromStringValue(t(aT, U( | |
556 | - | let | |
557 | - | let bd = fromBase58String(D( | |
558 | - | let | |
559 | - | let | |
560 | - | let | |
561 | - | let | |
562 | - | let | |
563 | - | let | |
564 | - | let | |
565 | - | let | |
566 | - | let | |
567 | - | let | |
568 | - | let | |
569 | - | let | |
570 | - | let | |
561 | + | func poolEvaluatePutByAmountAssetREADONLY (cO,dj) = { | |
562 | + | let aZ = addressFromStringValue(t(aT, U(cO))) | |
563 | + | let cR = x(invoke(aZ, "getPoolConfigWrapperREADONLY", nil, nil)) | |
564 | + | let bd = fromBase58String(D(cR[j])) | |
565 | + | let dk = D(cR[k]) | |
566 | + | let dl = fromBase58String(dk) | |
567 | + | let dm = D(cR[l]) | |
568 | + | let dn = fromBase58String(dm) | |
569 | + | let cW = parseIntValue(D(cR[m])) | |
570 | + | let cX = parseIntValue(D(cR[n])) | |
571 | + | let do = D(cR[i]) | |
572 | + | let cY = valueOrErrorMessage(assetInfo(bd), (("Asset " + toBase58String(bd)) + " doesn't exist")).quantity | |
573 | + | let cZ = B(invoke(aZ, "getAccBalanceWrapperREADONLY", [dk], nil)) | |
574 | + | let da = B(invoke(aZ, "getAccBalanceWrapperREADONLY", [dm], nil)) | |
575 | + | let dp = parseBigIntValue(D(invoke(aZ, "toX18WrapperREADONLY", [cZ, cW], nil))) | |
576 | + | let dq = parseBigIntValue(D(invoke(aZ, "toX18WrapperREADONLY", [da, cX], nil))) | |
577 | + | let dr = if ((cY == 0)) | |
571 | 578 | then g | |
572 | - | else parseBigIntValue(D(invoke(aZ, "calcPriceBigIntWrapperREADONLY", [toString( | |
573 | - | let | |
574 | - | let | |
575 | - | let | |
576 | - | let | |
577 | - | let | |
578 | - | let | |
579 | - | let z = | |
579 | + | else parseBigIntValue(D(invoke(aZ, "calcPriceBigIntWrapperREADONLY", [toString(dq), toString(dp)], nil))) | |
580 | + | let dc = B(invoke(aZ, "fromX18WrapperREADONLY", [toString(dr), b], nil)) | |
581 | + | let ds = parseBigIntValue(D(invoke(aZ, "toX18WrapperREADONLY", [dj, cW], nil))) | |
582 | + | let dt = fraction(ds, dr, d) | |
583 | + | let du = B(invoke(aZ, "fromX18WrapperREADONLY", [toString(dt), cX], nil)) | |
584 | + | let ca = invoke(aZ, "estimatePutOperationWrapperREADONLY", ["", 500000, dj, dl, du, dn, "", true, false], nil) | |
585 | + | let dv = { | |
586 | + | let z = ca | |
580 | 587 | if (if (if ($isInstanceOf(z._1, "Int")) | |
581 | 588 | then if ($isInstanceOf(z._3, "Int")) | |
582 | 589 | then if ($isInstanceOf(z._4, "Int")) | |
583 | 590 | then if ($isInstanceOf(z._5, "Int")) | |
584 | 591 | then $isInstanceOf(z._6, "Int") | |
585 | 592 | else false | |
586 | 593 | else false | |
587 | 594 | else false | |
588 | 595 | else false) | |
589 | 596 | then (size(z) == 13) | |
590 | 597 | else false) | |
591 | 598 | then { | |
592 | - | let | |
593 | - | let | |
594 | - | let | |
595 | - | let | |
596 | - | let | |
597 | - | $Tuple5( | |
599 | + | let dw = z._1 | |
600 | + | let dx = z._3 | |
601 | + | let dy = z._4 | |
602 | + | let dz = z._5 | |
603 | + | let dA = z._6 | |
604 | + | $Tuple5(dw, dx, dy, dz, dA) | |
598 | 605 | } | |
599 | 606 | else throw("Couldn't cast types") | |
600 | 607 | } | |
601 | - | let | |
602 | - | let | |
603 | - | let | |
604 | - | let | |
605 | - | let | |
606 | - | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d%d", toString( | |
608 | + | let dw = dv._1 | |
609 | + | let dx = dv._2 | |
610 | + | let dy = dv._3 | |
611 | + | let dz = dv._4 | |
612 | + | let dA = dv._5 | |
613 | + | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d%d", toString(dw), toString(dc), toString(dy), toString(dz), toString(dA), do, toString(dj), toString(du)], e)) | |
607 | 614 | } | |
608 | 615 | ||
609 | 616 | ||
610 | 617 | ||
611 | 618 | @Callable(bB) | |
612 | - | func poolEvaluatePutByPriceAssetREADONLY ( | |
613 | - | let aZ = addressFromStringValue(t(aT, U( | |
614 | - | let | |
615 | - | let bd = fromBase58String(D( | |
616 | - | let | |
617 | - | let | |
618 | - | let | |
619 | - | let | |
620 | - | let | |
621 | - | let | |
622 | - | let | |
623 | - | let | |
624 | - | let | |
625 | - | let | |
626 | - | let | |
627 | - | let | |
628 | - | let | |
619 | + | func poolEvaluatePutByPriceAssetREADONLY (cO,du) = { | |
620 | + | let aZ = addressFromStringValue(t(aT, U(cO))) | |
621 | + | let cR = x(invoke(aZ, "getPoolConfigWrapperREADONLY", nil, nil)) | |
622 | + | let bd = fromBase58String(D(cR[j])) | |
623 | + | let dk = D(cR[k]) | |
624 | + | let dl = fromBase58String(dk) | |
625 | + | let dm = D(cR[l]) | |
626 | + | let dn = fromBase58String(dm) | |
627 | + | let cW = parseIntValue(D(cR[m])) | |
628 | + | let cX = parseIntValue(D(cR[n])) | |
629 | + | let do = D(cR[i]) | |
630 | + | let cY = valueOrErrorMessage(assetInfo(bd), (("Asset " + toBase58String(bd)) + " doesn't exist")).quantity | |
631 | + | let dB = B(invoke(aZ, "getAccBalanceWrapperREADONLY", [dk], nil)) | |
632 | + | let dC = B(invoke(aZ, "getAccBalanceWrapperREADONLY", [dm], nil)) | |
633 | + | let dD = parseBigIntValue(D(invoke(aZ, "toX18WrapperREADONLY", [dB, cW], nil))) | |
634 | + | let dE = parseBigIntValue(D(invoke(aZ, "toX18WrapperREADONLY", [dC, cX], nil))) | |
635 | + | let dr = if ((cY == 0)) | |
629 | 636 | then g | |
630 | - | else parseBigIntValue(D(invoke(aZ, "calcPriceBigIntWrapperREADONLY", [toString( | |
631 | - | let | |
632 | - | let | |
633 | - | let | |
634 | - | let | |
635 | - | let | |
636 | - | let | |
637 | - | let z = | |
637 | + | else parseBigIntValue(D(invoke(aZ, "calcPriceBigIntWrapperREADONLY", [toString(dE), toString(dD)], nil))) | |
638 | + | let dc = B(invoke(aZ, "fromX18WrapperREADONLY", [toString(dr), b], nil)) | |
639 | + | let dt = parseBigIntValue(D(invoke(aZ, "toX18WrapperREADONLY", [du, cX], nil))) | |
640 | + | let ds = fraction(dt, d, dr) | |
641 | + | let dj = B(invoke(aZ, "fromX18WrapperREADONLY", [toString(ds), cW], nil)) | |
642 | + | let ca = invoke(aZ, "estimatePutOperationWrapperREADONLY", ["", 500000, dj, dl, du, dn, "", true, false], nil) | |
643 | + | let dF = { | |
644 | + | let z = ca | |
638 | 645 | if (if (if ($isInstanceOf(z._1, "Int")) | |
639 | 646 | then if ($isInstanceOf(z._3, "Int")) | |
640 | 647 | then if ($isInstanceOf(z._4, "Int")) | |
641 | 648 | then if ($isInstanceOf(z._5, "Int")) | |
642 | 649 | then $isInstanceOf(z._6, "Int") | |
643 | 650 | else false | |
644 | 651 | else false | |
645 | 652 | else false | |
646 | 653 | else false) | |
647 | 654 | then (size(z) == 13) | |
648 | 655 | else false) | |
649 | 656 | then { | |
650 | - | let | |
651 | - | let | |
652 | - | let | |
653 | - | let | |
654 | - | let | |
655 | - | $Tuple5( | |
657 | + | let dw = z._1 | |
658 | + | let dx = z._3 | |
659 | + | let dy = z._4 | |
660 | + | let dz = z._5 | |
661 | + | let dA = z._6 | |
662 | + | $Tuple5(dw, dx, dy, dz, dA) | |
656 | 663 | } | |
657 | 664 | else throw("Couldn't cast types") | |
658 | 665 | } | |
659 | - | let | |
660 | - | let | |
661 | - | let | |
662 | - | let | |
663 | - | let | |
664 | - | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d%d", toString( | |
666 | + | let dw = dF._1 | |
667 | + | let dx = dF._2 | |
668 | + | let dy = dF._3 | |
669 | + | let dz = dF._4 | |
670 | + | let dA = dF._5 | |
671 | + | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d%d", toString(dw), toString(dc), toString(dy), toString(dz), toString(dA), do, toString(dj), toString(du)], e)) | |
665 | 672 | } | |
666 | 673 | ||
667 | 674 | ||
668 | 675 | ||
669 | 676 | @Callable(bB) | |
670 | - | func poolEvaluateGetREADONLY ( | |
671 | - | let aZ = addressFromStringValue(t(aT, U( | |
672 | - | let | |
673 | - | let | |
674 | - | let z = | |
677 | + | func poolEvaluateGetREADONLY (dG,dH) = { | |
678 | + | let aZ = addressFromStringValue(t(aT, U(dG))) | |
679 | + | let ca = invoke(aZ, "estimateGetOperationWrapperREADONLY", ["", dG, dH, toString(aZ)], nil) | |
680 | + | let dI = { | |
681 | + | let z = ca | |
675 | 682 | if (if (if ($isInstanceOf(z._1, "Int")) | |
676 | 683 | then if ($isInstanceOf(z._2, "Int")) | |
677 | 684 | then if ($isInstanceOf(z._5, "Int")) | |
678 | 685 | then if ($isInstanceOf(z._6, "Int")) | |
679 | 686 | then if ($isInstanceOf(z._7, "Int")) | |
680 | 687 | then if ($isInstanceOf(z._8, "String")) | |
681 | 688 | then $isInstanceOf(z._9, "String") | |
682 | 689 | else false | |
683 | 690 | else false | |
684 | 691 | else false | |
685 | 692 | else false | |
686 | 693 | else false | |
687 | 694 | else false) | |
688 | 695 | then (size(z) == 10) | |
689 | 696 | else false) | |
690 | 697 | then { | |
691 | - | let | |
692 | - | let | |
693 | - | let | |
694 | - | let | |
695 | - | let | |
696 | - | let | |
697 | - | let | |
698 | - | $Tuple7( | |
698 | + | let dJ = z._1 | |
699 | + | let dK = z._2 | |
700 | + | let dy = z._5 | |
701 | + | let dz = z._6 | |
702 | + | let dA = z._7 | |
703 | + | let dc = z._8 | |
704 | + | let do = z._9 | |
705 | + | $Tuple7(dJ, dK, dy, dz, dA, dc, do) | |
699 | 706 | } | |
700 | 707 | else throw("Couldn't cast types") | |
701 | 708 | } | |
702 | - | let | |
703 | - | let | |
704 | - | let | |
705 | - | let | |
706 | - | let | |
707 | - | let | |
708 | - | let | |
709 | - | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d", toString( | |
709 | + | let dJ = dI._1 | |
710 | + | let dK = dI._2 | |
711 | + | let dy = dI._3 | |
712 | + | let dz = dI._4 | |
713 | + | let dA = dI._5 | |
714 | + | let dc = dI._6 | |
715 | + | let do = dI._7 | |
716 | + | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d", toString(dJ), toString(dK), toString(dy), toString(dz), toString(dA), dc, do], e)) | |
710 | 717 | } | |
711 | 718 | ||
712 | 719 | ||
713 | 720 | ||
714 | 721 | @Callable(bB) | |
715 | 722 | func gwxUserInfoREADONLY (am) = { | |
716 | - | let | |
717 | - | let | |
718 | - | $Tuple2(nil, makeString(["%d", toString( | |
723 | + | let dL = x(invoke(aX, "gwxUserInfoREADONLY", [am], nil)) | |
724 | + | let dM = B(dL[0]) | |
725 | + | $Tuple2(nil, makeString(["%d", toString(dM)], e)) | |
719 | 726 | } | |
720 | 727 | ||
721 | 728 | ||
722 | 729 | ||
723 | 730 | @Callable(bB) | |
724 | - | func unstakeAndGetOneTknV2 (aZ, | |
725 | - | let | |
726 | - | if (( | |
731 | + | func unstakeAndGetOneTknV2 (aZ,dN,dO,dP) = { | |
732 | + | let cb = invoke(addressFromStringValue(aZ), "unstakeAndGetOneTknV2", [dN, dO, dP], nil) | |
733 | + | if ((cb == cb)) | |
727 | 734 | then $Tuple2(nil, unit) | |
728 | 735 | else throw("Strict value is not equal to itself.") | |
729 | 736 | } | |
730 | 737 | ||
731 | 738 | ||
732 | 739 | ||
733 | 740 | @Callable(bB) | |
734 | - | func getKeysBulkInternal ( | |
735 | - | then $Tuple2(nil, | |
741 | + | func getKeysBulkInternal (bO,dQ,bU) = if ((bO == size(dQ))) | |
742 | + | then $Tuple2(nil, bU) | |
736 | 743 | else { | |
737 | - | let | |
738 | - | let bv = addressFromStringValue( | |
739 | - | let s = | |
740 | - | let bw = | |
744 | + | let dR = split(dQ[bO], "++") | |
745 | + | let bv = addressFromStringValue(dR[0]) | |
746 | + | let s = dR[1] | |
747 | + | let bw = dR[2] | |
741 | 748 | let y = bu(bv, s, bw) | |
742 | - | let | |
743 | - | let | |
744 | - | if (( | |
745 | - | then $Tuple2(nil, | |
749 | + | let ca = (bU :+ y) | |
750 | + | let cb = invoke(this, "getKeysBulkInternal", [(bO + 1), dQ, ca], nil) | |
751 | + | if ((cb == cb)) | |
752 | + | then $Tuple2(nil, cb) | |
746 | 753 | else throw("Strict value is not equal to itself.") | |
747 | 754 | } | |
748 | 755 | ||
749 | 756 | ||
750 | 757 | ||
751 | 758 | @Callable(bB) | |
752 | - | func getKeysBulk ( | |
753 | - | let | |
754 | - | $Tuple2(nil, | |
759 | + | func getKeysBulk (dQ) = { | |
760 | + | let ca = invoke(this, "getKeysBulkInternal", [0, dQ, nil], nil) | |
761 | + | $Tuple2(nil, ca) | |
755 | 762 | } | |
756 | 763 | ||
757 | 764 | ||
758 | 765 | ||
759 | 766 | @Callable(bB) | |
760 | - | func setManager ( | |
767 | + | func setManager (dS) = { | |
761 | 768 | let bF = bA(bB) | |
762 | 769 | if ((bF == bF)) | |
763 | 770 | then { | |
764 | - | let | |
765 | - | if (( | |
766 | - | then [StringEntry(H(), | |
771 | + | let dT = fromBase58String(dS) | |
772 | + | if ((dT == dT)) | |
773 | + | then [StringEntry(H(), dS)] | |
767 | 774 | else throw("Strict value is not equal to itself.") | |
768 | 775 | } | |
769 | 776 | else throw("Strict value is not equal to itself.") | |
770 | 777 | } | |
771 | 778 | ||
772 | 779 | ||
773 | 780 | ||
774 | 781 | @Callable(bB) | |
775 | 782 | func confirmManager () = { | |
776 | - | let | |
777 | - | let | |
783 | + | let dU = bz() | |
784 | + | let dV = if (isDefined(dU)) | |
778 | 785 | then true | |
779 | 786 | else throw("No pending manager") | |
780 | - | if (( | |
787 | + | if ((dV == dV)) | |
781 | 788 | then { | |
782 | - | let | |
789 | + | let dW = if ((bB.callerPublicKey == value(dU))) | |
783 | 790 | then true | |
784 | 791 | else throw("You are not pending manager") | |
785 | - | if (( | |
786 | - | then [StringEntry(G(), toBase58String(value( | |
792 | + | if ((dW == dW)) | |
793 | + | then [StringEntry(G(), toBase58String(value(dU))), DeleteEntry(H())] | |
787 | 794 | else throw("Strict value is not equal to itself.") | |
788 | 795 | } | |
789 | 796 | else throw("Strict value is not equal to itself.") | |
790 | 797 | } | |
791 | 798 | ||
792 | 799 | ||
793 | - | @Verifier( | |
794 | - | func | |
795 | - | let | |
800 | + | @Verifier(dX) | |
801 | + | func dY () = { | |
802 | + | let dZ = { | |
796 | 803 | let z = bx() | |
797 | 804 | if ($isInstanceOf(z, "ByteVector")) | |
798 | 805 | then { | |
799 | 806 | let bD = z | |
800 | 807 | bD | |
801 | 808 | } | |
802 | 809 | else if ($isInstanceOf(z, "Unit")) | |
803 | - | then | |
810 | + | then dX.senderPublicKey | |
804 | 811 | else throw("Match error") | |
805 | 812 | } | |
806 | - | sigVerify( | |
813 | + | sigVerify(dX.bodyBytes, dX.proofs[0], dZ) | |
807 | 814 | } | |
808 | 815 |
github/deemru/w8io/026f985 165.93 ms ◑