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