tx · 6G2CLdNyFLGjnGEAwZzNXWWqxS8BbkBpYTRctnuYkUFf 3N7LYefWk1WhvCsY5A9nTq244SbVPmhCypi: -0.02700000 Waves 2023.03.01 16:44 [2471076] smart account 3N7LYefWk1WhvCsY5A9nTq244SbVPmhCypi > SELF 0.00000000 Waves
{ "type": 13, "id": "6G2CLdNyFLGjnGEAwZzNXWWqxS8BbkBpYTRctnuYkUFf", "fee": 2700000, "feeAssetId": null, "timestamp": 1677678247884, "version": 2, "chainId": 84, "sender": "3N7LYefWk1WhvCsY5A9nTq244SbVPmhCypi", "senderPublicKey": "4qGVXRFATZNzo2RZZ5UYHXojGyJgSRBwtgJcCU8rJe5A", "proofs": [ "3PVHD6eTbk3M2b2rK8ChQKxGA2fasCNMGJQk6Mv8dCWN7gjQN4FGAaAmiYttLhs8TCNo8nDPxk2cRPVVsjqw92Ww", "37dk7qWUvRM3zD9fHzBwQoVZcVjw6DLizxSWipRNB33eXYaa3LXS9kSbzv2fT8g8KzUk8tbFWhojcLF2StfFQYrV", "EjqBsgcJPCdQCbAgzU7xqqe83PwEuKdf4QUB4nw2PdFnk13uq4icWkhXdXGVeDEx9st62NmSWoGQygt8uNhAhLN" ], "script": "base64:AAIFAAAAAAAAADkIAhIFCgMICAESAwoBARIHCgUBAQEBARIDCgEBEgQKAgECEgMKAQESABIFCgMBAQESBwoFAQEBAQEAAAB1AAAAAAtyZXZpc2lvbk51bQIAAAAAAAAAAAlNVUxUU0NBTEUAAAAAAAAAAAgAAAAAB1NDQUxFMTYAAAAAAAAAABAAAAAAA1NFUAIAAAACX18AAAAABUhBTEY4AAAAAAAC+vCAAAAAAAhFVUxFUlgxNgkAATYAAAABAABgkqET2NV0AAAAAARUV09YCQABNgAAAAEAAAAAAAAAAAIAAAAABU1VTFQ2AAAAAAAAD0JAAAAAAAZNVUxUWDYJAAE2AAAAAQAAAAAAAA9CQAAAAAAFTVVMVDgAAAAAAAX14QAAAAAABk1VTFRYOAkAATYAAAABAAAAAAAF9eE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AAA1NFUAQAAAAQcHViS2V5QWRtaW5zTGlzdAkABLUAAAACCQEAAAALdmFsdWVPckVsc2UAAAACCQAEHQAAAAIFAAAAD2NvbnRyb2xDb250cmFjdAIAAAAMJXNfX211bHRpc2lnBQAAABNwdWJLZXlBZG1pbnNMaXN0U3RyBQAAAANTRVAEAAAABWNvdW50CQAAZAAAAAIJAABkAAAAAgkAAGQAAAACAwkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAJAAJZAAAAAQkAAZEAAAACBQAAABBwdWJLZXlBZG1pbnNMaXN0AAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAwkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAEJAAJZAAAAAQkAAZEAAAACBQAAABBwdWJLZXlBZG1pbnNMaXN0AAAAAAAAAAABAAAAAAAAAAABAAAAAAAAAAAAAwkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAIJAAJZAAAAAQkAAZEAAAACBQAAABBwdWJLZXlBZG1pbnNMaXN0AAAAAAAAAAACAAAAAAAAAAABAAAAAAAAAAAAAwkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAMJAAJZAAAAAQkAAZEAAAACBQAAABBwdWJLZXlBZG1pbnNMaXN0AAAAAAAAAAADAAAAAAAAAAACAAAAAAAAAAAACQAAZwAAAAIFAAAABWNvdW50AAAAAAAAAAADk76XCA==", "height": 2471076, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: DXLpduRhjXjtxyWPg9bK8rahT2CJCibtsK4VeMGpzFr5 Next: 3LgE7R4w5wEhwTjRbtCKAPTMBiFBrLTSVD9dsXg3nULF Diff:
Old | New | Differences | |
---|---|---|---|
328 | 328 | ||
329 | 329 | ||
330 | 330 | func bR (ab) = { | |
331 | - | let bQ = fromBase58String(ab) | |
332 | 331 | let bS = bP(ab) | |
333 | - | if ((bQ == n)) | |
334 | - | then ao(bS, bM) | |
335 | - | else { | |
336 | - | let bT = valueOrElse(getInteger(ba, aa(ab)), h) | |
337 | - | fraction(bS, bT, j) | |
338 | - | } | |
332 | + | let bT = value(getInteger(ba, aa(ab))) | |
333 | + | fraction(bS, bT, j) | |
339 | 334 | } | |
340 | 335 | ||
341 | 336 | ||
346 | 341 | let bW = (bV - bU) | |
347 | 342 | ||
348 | 343 | func bX () = { | |
349 | - | let bY = split( | |
350 | - | func bZ (ca,ab) = (ca + | |
344 | + | let bY = split(value(getString(bb, Y())), d) | |
345 | + | func bZ (ca,ab) = (ca + bR(ab)) | |
351 | 346 | ||
352 | - | let bw = bY | |
353 | - | let bx = size(bw) | |
354 | - | let by = 0 | |
355 | - | func bz (bA,bB) = if ((bB >= bx)) | |
356 | - | then bA | |
357 | - | else bZ(bA, bw[bB]) | |
358 | - | ||
359 | - | func bC (bA,bB) = if ((bB >= bx)) | |
360 | - | then bA | |
361 | - | else throw("List size exceeds 10") | |
362 | - | ||
363 | - | bC(bz(bz(bz(bz(bz(bz(bz(bz(bz(bz(by, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
364 | - | } | |
365 | - | ||
366 | - | ||
367 | - | let cb = if ((bW == 0)) | |
368 | - | then 0 | |
369 | - | else bX() | |
370 | - | ||
371 | - | func cc () = { | |
372 | - | let cd = valueOrElse(getString(bb, Y()), "WAVES") | |
373 | - | let bY = split(cd, d) | |
374 | - | func ce (ca,ab) = { | |
375 | - | let bS = bP(ab) | |
376 | - | let bT = valueOrElse(getInteger(ba, aa(ab)), h) | |
377 | - | let cf = fraction(bS, bT, j) | |
378 | - | $Tuple2((ca._1 :+ $Tuple4(ab, bS, cf, bT)), (ca._2 + cf)) | |
379 | - | } | |
380 | - | ||
381 | - | let cg = { | |
347 | + | let cb = { | |
382 | 348 | let bw = bY | |
383 | 349 | let bx = size(bw) | |
384 | - | let by = | |
350 | + | let by = 0 | |
385 | 351 | func bz (bA,bB) = if ((bB >= bx)) | |
386 | 352 | then bA | |
387 | - | else | |
353 | + | else bZ(bA, bw[bB]) | |
388 | 354 | ||
389 | 355 | func bC (bA,bB) = if ((bB >= bx)) | |
390 | 356 | then bA | |
392 | 358 | ||
393 | 359 | bC(bz(bz(bz(bz(bz(bz(bz(bz(bz(bz(by, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
394 | 360 | } | |
395 | - | func ch (ca,ci) = { | |
396 | - | let cj = if ((cg._2 == 0)) | |
397 | - | then h | |
398 | - | else fraction(ci._3, h, cg._2) | |
399 | - | (ca :+ makeString([ci._1, toString(cj), toString(ci._4), toString(ci._2)], ":")) | |
361 | + | fraction(cb, h, bW) | |
362 | + | } | |
363 | + | ||
364 | + | ||
365 | + | let cc = if ((bW == 0)) | |
366 | + | then 0 | |
367 | + | else bX() | |
368 | + | ||
369 | + | func cd () = { | |
370 | + | let ce = value(getString(bb, Y())) | |
371 | + | let bY = split(ce, d) | |
372 | + | func cf (ca,ab) = { | |
373 | + | let bS = bP(ab) | |
374 | + | let bT = value(getInteger(ba, aa(ab))) | |
375 | + | let cg = fraction(bS, bT, j) | |
376 | + | $Tuple2((ca._1 :+ $Tuple4(ab, bS, cg, bT)), (ca._2 + cg)) | |
400 | 377 | } | |
401 | 378 | ||
402 | - | let ck = if ((bW == 0)) | |
403 | - | then 0 | |
404 | - | else fraction(cg._2, h, bW) | |
405 | - | $Tuple3(makeString({ | |
406 | - | let bw = cg._1 | |
379 | + | let ch = { | |
380 | + | let bw = bY | |
407 | 381 | let bx = size(bw) | |
408 | - | let by = nil | |
409 | - | func | |
382 | + | let by = $Tuple2(nil, 0) | |
383 | + | func bz (bA,bB) = if ((bB >= bx)) | |
410 | 384 | then bA | |
411 | - | else | |
385 | + | else cf(bA, bw[bB]) | |
412 | 386 | ||
413 | - | func | |
387 | + | func bC (bA,bB) = if ((bB >= bx)) | |
414 | 388 | then bA | |
415 | 389 | else throw("List size exceeds 10") | |
416 | 390 | ||
417 | - | cm(cl(cl(cl(cl(cl(cl(cl(cl(cl(cl(by, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
418 | - | }, "_"), ck, cg._2) | |
391 | + | bC(bz(bz(bz(bz(bz(bz(bz(bz(bz(bz(by, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
392 | + | } | |
393 | + | func ci (ca,cj) = { | |
394 | + | let ck = if ((ch._2 == 0)) | |
395 | + | then h | |
396 | + | else fraction(cj._3, h, ch._2) | |
397 | + | (ca :+ makeString([cj._1, toString(ck), toString(cj._4), toString(cj._2)], ":")) | |
398 | + | } | |
399 | + | ||
400 | + | let cl = if ((bW == 0)) | |
401 | + | then 0 | |
402 | + | else fraction(ch._2, h, bW) | |
403 | + | $Tuple3(makeString({ | |
404 | + | let bw = ch._1 | |
405 | + | let bx = size(bw) | |
406 | + | let by = nil | |
407 | + | func cm (bA,bB) = if ((bB >= bx)) | |
408 | + | then bA | |
409 | + | else ci(bA, bw[bB]) | |
410 | + | ||
411 | + | func cn (bA,bB) = if ((bB >= bx)) | |
412 | + | then bA | |
413 | + | else throw("List size exceeds 10") | |
414 | + | ||
415 | + | cn(cm(cm(cm(cm(cm(cm(cm(cm(cm(cm(by, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
416 | + | }, "_"), cl, ch._2) | |
419 | 417 | } | |
420 | 418 | ||
421 | 419 | ||
422 | - | @Callable( | |
423 | - | func constructorV1 ( | |
420 | + | @Callable(co) | |
421 | + | func constructorV1 (cp,cq,cr) = if ((co.caller != this)) | |
424 | 422 | then throw("not authorized") | |
425 | - | else [StringEntry(K(), | |
423 | + | else [StringEntry(K(), cp), IntegerEntry(L(), cr)] | |
426 | 424 | ||
427 | 425 | ||
428 | 426 | ||
429 | - | @Callable( | |
430 | - | func calcSwapLimitREADONLY ( | |
431 | - | let | |
427 | + | @Callable(co) | |
428 | + | func calcSwapLimitREADONLY (cs) = { | |
429 | + | let ct = if ((0 >= cs)) | |
432 | 430 | then 0 | |
433 | 431 | else { | |
434 | - | let | |
435 | - | let | |
436 | - | let | |
437 | - | toInt(fraction( | |
432 | + | let cu = toBigInt(ai(this, L())) | |
433 | + | let cv = toBigInt(ai(this, M())) | |
434 | + | let cw = pow(toBigInt(cs), 6, cv, 16, 8, CEILING) | |
435 | + | toInt(fraction(cu, cw, l)) | |
438 | 436 | } | |
439 | - | let | |
437 | + | let cx = if ((0 >= cs)) | |
440 | 438 | then 0 | |
441 | 439 | else { | |
442 | - | let | |
443 | - | let | |
444 | - | let | |
445 | - | let | |
446 | - | toInt(fraction(fraction( | |
440 | + | let cu = toBigInt(ai(this, N())) | |
441 | + | let cv = toBigInt(ai(this, O())) | |
442 | + | let cy = toBigInt(cc) | |
443 | + | let cw = pow(toBigInt(cs), 6, cv, 16, 8, CEILING) | |
444 | + | toInt(fraction(fraction(cu, cw, l), cy, i)) | |
447 | 445 | } | |
448 | - | $Tuple2(nil, [ | |
446 | + | $Tuple2(nil, [ct, 0, cx]) | |
449 | 447 | } | |
450 | 448 | ||
451 | 449 | ||
452 | 450 | ||
453 | - | @Callable( | |
454 | - | func calculateKREADONLY ( | |
455 | - | let | |
456 | - | let | |
457 | - | let | |
458 | - | let | |
459 | - | let | |
460 | - | let | |
461 | - | if (( | |
462 | - | then throw((("BR=" + toString( | |
451 | + | @Callable(co) | |
452 | + | func calculateKREADONLY (cz,cA,an,cB,cC) = { | |
453 | + | let cD = toBigInt(2718281) | |
454 | + | let cE = 6 | |
455 | + | let cF = valueOrElse(getInteger(bc, "nsbtCurveParam_a"), 3) | |
456 | + | let cG = valueOrElse(getInteger(bc, "nsbtCurveParam_b"), ((3 * h) / 10)) | |
457 | + | let cH = ao(cz, an) | |
458 | + | let cI = fraction(cH, j, cA) | |
459 | + | if ((cI > 10678564816)) | |
460 | + | then throw((("BR=" + toString(cI)) + " > 10678.564816% will overflow exponent")) | |
463 | 461 | else { | |
464 | - | let | |
465 | - | let | |
466 | - | let | |
467 | - | $Tuple2(nil, [ | |
462 | + | let cJ = (cF * (cI - j)) | |
463 | + | let cK = pow(cD, cE, toBigInt(cJ), b, c, DOWN) | |
464 | + | let cL = fraction(toBigInt(cG), cK, i) | |
465 | + | $Tuple2(nil, [cF, cG, cH, cI, cJ, toString(cK), toString(cL)]) | |
468 | 466 | } | |
469 | 467 | } | |
470 | 468 | ||
471 | 469 | ||
472 | 470 | ||
473 | - | @Callable( | |
474 | - | func curveFunctionREADONLY ( | |
475 | - | let | |
476 | - | let an = ay( | |
477 | - | let | |
478 | - | let | |
479 | - | let | |
480 | - | let | |
481 | - | let | |
482 | - | let | |
483 | - | let | |
484 | - | let | |
485 | - | let | |
486 | - | let | |
487 | - | let | |
488 | - | let | |
489 | - | let | |
490 | - | $Tuple2(nil, [ | |
471 | + | @Callable(co) | |
472 | + | func curveFunctionREADONLY (cM) = { | |
473 | + | let cN = av(invoke(this, "calcNeutinoMetricsREADONLY", nil, nil)) | |
474 | + | let an = ay(cN[v]) | |
475 | + | let cz = ay(cN[y]) | |
476 | + | let cA = ay(cN[A]) | |
477 | + | let cC = ay(cN[E]) | |
478 | + | let cB = ay(cN[F]) | |
479 | + | let cO = av(invoke(this, "calculateKREADONLY", [cz, cA, an, cB, cC], nil)) | |
480 | + | let cL = parseBigIntValue(aA(cO[u])) | |
481 | + | let cP = ao(cM, an) | |
482 | + | let cQ = toBigInt(cB) | |
483 | + | let cR = toBigInt((cB - cC)) | |
484 | + | let cS = fraction(toBigInt(cP), m, cL) | |
485 | + | let cT = fraction(cS, cR, cQ) | |
486 | + | let cU = toInt(fraction(cR, cQ, (cT + cQ))) | |
487 | + | let cV = ((cB - cC) - cU) | |
488 | + | $Tuple2(nil, [cV, cP, cz, cA, cB, cC, ay(cO[o]), ay(cO[p]), ay(cO[q]), an, ay(cO[r]), ay(cO[s]), cO[t], cO[u], toString(cS), toString(cT), cU]) | |
491 | 489 | } | |
492 | 490 | ||
493 | 491 | ||
494 | 492 | ||
495 | - | @Callable( | |
493 | + | @Callable(co) | |
496 | 494 | func surfFunctionREADONLY (am,ab) = if ((0 > am)) | |
497 | 495 | then throw("amount should be positive") | |
498 | 496 | else { | |
499 | 497 | let an = bL | |
500 | - | let | |
501 | - | let | |
502 | - | let | |
503 | - | let | |
504 | - | let | |
505 | - | if (( | |
506 | - | then throw((("BR = " + toString( | |
498 | + | let cW = toBigInt(an) | |
499 | + | let cX = bP("WAVES") | |
500 | + | let cY = toBigInt(cX) | |
501 | + | let cZ = bW | |
502 | + | let da = toBigInt(cZ) | |
503 | + | if ((cc >= h)) | |
504 | + | then throw((("BR = " + toString(cc)) + ", cannot buy SURF")) | |
507 | 505 | else { | |
508 | - | let | |
509 | - | let | |
510 | - | let | |
511 | - | then if ((am > | |
512 | - | then | |
506 | + | let db = (fraction(cZ, j, an) - cX) | |
507 | + | let dc = (cZ - fraction(cX, an, j)) | |
508 | + | let dd = if ((ab == bh)) | |
509 | + | then if ((am > dc)) | |
510 | + | then dc | |
513 | 511 | else am | |
514 | 512 | else if ((ab == n)) | |
515 | - | then if ((am > | |
516 | - | then | |
513 | + | then if ((am > db)) | |
514 | + | then db | |
517 | 515 | else am | |
518 | 516 | else 0 | |
519 | - | let | |
517 | + | let de = toBigInt(dd) | |
520 | 518 | if ((ab == bh)) | |
521 | - | then $Tuple2(nil, [toInt(fraction(fraction( | |
519 | + | then $Tuple2(nil, [toInt(fraction(fraction(de, k, cW), (da - (de / g)), cY)), 0, dd, cX, cZ, cc, cX, (cZ - dd), fraction(ao(cX, an), h, (cZ - dd)), (am - dd), an]) | |
522 | 520 | else if ((ab == n)) | |
523 | - | then $Tuple2(nil, [toInt(fraction( | |
521 | + | then $Tuple2(nil, [toInt(fraction(da, log(fraction((cY + de), m, cY), 16, f, 16, 16, HALFUP), m)), dd, 0, cX, cZ, cc, (cX + dd), cZ, fraction(ao((cX + dd), an), h, cZ), (am - dd), an]) | |
524 | 522 | else throw("Unsupported asset") | |
525 | 523 | } | |
526 | 524 | } | |
527 | 525 | ||
528 | 526 | ||
529 | 527 | ||
530 | - | @Callable( | |
531 | - | func calcContractNsbtPriceSYSREADONLY ( | |
532 | - | let | |
533 | - | let an = ay( | |
534 | - | let | |
535 | - | let | |
536 | - | let | |
537 | - | let | |
538 | - | let | |
539 | - | let | |
540 | - | let | |
541 | - | let | |
542 | - | let | |
543 | - | let | |
544 | - | let | |
545 | - | $Tuple2(nil, [ | |
528 | + | @Callable(co) | |
529 | + | func calcContractNsbtPriceSYSREADONLY (df) = { | |
530 | + | let cN = av(invoke(this, "calcNeutinoMetricsREADONLY", nil, nil)) | |
531 | + | let an = ay(cN[v]) | |
532 | + | let cz = ay(cN[y]) | |
533 | + | let cA = (ay(cN[A]) - df) | |
534 | + | let cC = (ay(cN[E]) + df) | |
535 | + | let cB = ay(cN[F]) | |
536 | + | let cO = av(invoke(this, "calculateKREADONLY", [cz, cA, an, cB, cC], nil)) | |
537 | + | let dg = parseBigIntValue(aA(cO[u])) | |
538 | + | let dh = fraction(toBigInt(cB), m, toBigInt((cB - cC))) | |
539 | + | let di = fraction(dh, dh, m) | |
540 | + | let dj = fraction(dg, di, m) | |
541 | + | let dk = toInt(fraction(dj, toBigInt(h), m)) | |
542 | + | let dl = fraction(dk, h, an) | |
543 | + | $Tuple2(nil, [dk, dl]) | |
546 | 544 | } | |
547 | 545 | ||
548 | 546 | ||
549 | 547 | ||
550 | - | @Callable( | |
548 | + | @Callable(co) | |
551 | 549 | func calcNeutinoMetricsREADONLY () = { | |
552 | - | let | |
553 | - | let | |
554 | - | let | |
555 | - | let | |
556 | - | $Tuple2(nil, [bL, bN, bO, bP("WAVES"), bR("WAVES"), bW, bU, bV, | |
550 | + | let dm = value(assetInfo(bi)).quantity | |
551 | + | let dn = (dm - assetBalance(bc, bi)) | |
552 | + | let do = value(assetInfo(bj)).quantity | |
553 | + | let dp = cd() | |
554 | + | $Tuple2(nil, [bL, bN, bO, bP("WAVES"), bR("WAVES"), bW, bU, bV, cc, dn, dm, do, bG, bM, dp._1, dp._2, dp._3]) | |
557 | 555 | } | |
558 | 556 | ||
559 | 557 | ||
560 | 558 | ||
561 | - | @Callable( | |
562 | - | func getUnstakeComissionAmountREADONLY (am, | |
559 | + | @Callable(co) | |
560 | + | func getUnstakeComissionAmountREADONLY (am,dq,dr) = $Tuple2(nil, fraction(am, pow(2, 0, fraction(-((height - dq)), j, dr), 8, 8, HALFUP), j)) | |
563 | 561 | ||
564 | 562 | ||
565 | 563 | ||
566 | - | @Callable( | |
567 | - | func mergeStakesREADONLY ( | |
568 | - | let | |
569 | - | let aD = fraction(( | |
570 | - | $Tuple2(nil, ( | |
564 | + | @Callable(co) | |
565 | + | func mergeStakesREADONLY (ds,dt,du,dv,dr) = { | |
566 | + | let dw = fraction(du, pow(2, 0, fraction((dv - dt), j, dr), 8, 8, HALFUP), j) | |
567 | + | let aD = fraction((ds + du), j, (ds + dw)) | |
568 | + | $Tuple2(nil, (dt + ((e - (dr * log(aD, 8, 2, 0, 8, HALFUP))) / j))) | |
571 | 569 | } | |
572 | 570 | ||
573 | 571 | ||
574 | - | @Verifier( | |
575 | - | func | |
576 | - | let | |
577 | - | let | |
578 | - | let | |
572 | + | @Verifier(dx) | |
573 | + | func dy () = { | |
574 | + | let dz = makeString(["ExtEEK19nmKj9mCpnWyvEEJFYATLMcVEMvohhUHkyHNm", "Ev5py5FfBQX9cZpYKnfQrTB49Byf8QmpZWeDVRim4yV7", "DUuuLjXu98nBwZc7fqwCTjtA3nnRwgTbkMSr5SU2NmDR", "DUuuLjXu98nBwZc7fqwCTjtA3nnRwgTbkMSr5SU2NmDR"], d) | |
575 | + | let dA = split(valueOrElse(getString(ba, "%s__multisig"), dz), d) | |
576 | + | let dB = ((((if (sigVerify(dx.bodyBytes, dx.proofs[0], fromBase58String(dA[0]))) | |
579 | 577 | then 1 | |
580 | - | else 0) + (if (sigVerify( | |
578 | + | else 0) + (if (sigVerify(dx.bodyBytes, dx.proofs[1], fromBase58String(dA[1]))) | |
581 | 579 | then 1 | |
582 | - | else 0)) + (if (sigVerify( | |
580 | + | else 0)) + (if (sigVerify(dx.bodyBytes, dx.proofs[2], fromBase58String(dA[2]))) | |
583 | 581 | then 1 | |
584 | - | else 0)) + (if (sigVerify( | |
582 | + | else 0)) + (if (sigVerify(dx.bodyBytes, dx.proofs[3], fromBase58String(dA[3]))) | |
585 | 583 | then 2 | |
586 | 584 | else 0)) | |
587 | - | ( | |
585 | + | (dB >= 3) | |
588 | 586 | } | |
589 | 587 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = "" | |
5 | 5 | ||
6 | 6 | let b = 8 | |
7 | 7 | ||
8 | 8 | let c = 16 | |
9 | 9 | ||
10 | 10 | let d = "__" | |
11 | 11 | ||
12 | 12 | let e = 50000000 | |
13 | 13 | ||
14 | 14 | let f = toBigInt(27182818284590452) | |
15 | 15 | ||
16 | 16 | let g = toBigInt(2) | |
17 | 17 | ||
18 | 18 | let h = 1000000 | |
19 | 19 | ||
20 | 20 | let i = toBigInt(1000000) | |
21 | 21 | ||
22 | 22 | let j = 100000000 | |
23 | 23 | ||
24 | 24 | let k = toBigInt(100000000) | |
25 | 25 | ||
26 | 26 | let l = toBigInt(10000000000) | |
27 | 27 | ||
28 | 28 | let m = toBigInt(10000000000000000) | |
29 | 29 | ||
30 | 30 | let n = fromBase58String("WAVES") | |
31 | 31 | ||
32 | 32 | let o = 0 | |
33 | 33 | ||
34 | 34 | let p = 1 | |
35 | 35 | ||
36 | 36 | let q = 2 | |
37 | 37 | ||
38 | 38 | let r = 3 | |
39 | 39 | ||
40 | 40 | let s = 4 | |
41 | 41 | ||
42 | 42 | let t = 5 | |
43 | 43 | ||
44 | 44 | let u = 6 | |
45 | 45 | ||
46 | 46 | let v = 0 | |
47 | 47 | ||
48 | 48 | let w = 1 | |
49 | 49 | ||
50 | 50 | let x = 2 | |
51 | 51 | ||
52 | 52 | let y = 3 | |
53 | 53 | ||
54 | 54 | let z = 4 | |
55 | 55 | ||
56 | 56 | let A = 5 | |
57 | 57 | ||
58 | 58 | let B = 6 | |
59 | 59 | ||
60 | 60 | let C = 7 | |
61 | 61 | ||
62 | 62 | let D = 8 | |
63 | 63 | ||
64 | 64 | let E = 9 | |
65 | 65 | ||
66 | 66 | let F = 10 | |
67 | 67 | ||
68 | 68 | let G = 11 | |
69 | 69 | ||
70 | 70 | let H = 12 | |
71 | 71 | ||
72 | 72 | let I = 13 | |
73 | 73 | ||
74 | 74 | let J = 14 | |
75 | 75 | ||
76 | 76 | func K () = "%s%s__config__neutrinoAddress" | |
77 | 77 | ||
78 | 78 | ||
79 | 79 | func L () = "%s%s__config__swapAParam" | |
80 | 80 | ||
81 | 81 | ||
82 | 82 | func M () = "%s%s__config__swapBParam" | |
83 | 83 | ||
84 | 84 | ||
85 | 85 | func N () = "%s%s__config__usdnSwapAParam" | |
86 | 86 | ||
87 | 87 | ||
88 | 88 | func O () = "%s%s__config__usdnSwapBParam" | |
89 | 89 | ||
90 | 90 | ||
91 | 91 | func P () = "%s%s__priceAdj__minCoefficient" | |
92 | 92 | ||
93 | 93 | ||
94 | 94 | func Q () = "%s%s__priceAdj__arbRegulator" | |
95 | 95 | ||
96 | 96 | ||
97 | 97 | func R () = "neutrino_asset_id" | |
98 | 98 | ||
99 | 99 | ||
100 | 100 | func S () = "bond_asset_id" | |
101 | 101 | ||
102 | 102 | ||
103 | 103 | func T () = "surf_asset_id" | |
104 | 104 | ||
105 | 105 | ||
106 | 106 | func U () = "swaps_timeframe" | |
107 | 107 | ||
108 | 108 | ||
109 | 109 | func V (W) = makeString(["%s%s", "userLastQuickSwapHeight", W], d) | |
110 | 110 | ||
111 | 111 | ||
112 | 112 | func X (W) = makeString(["%s%s", "quickSwapUserSpentInPeriod", W], d) | |
113 | 113 | ||
114 | 114 | ||
115 | 115 | func Y () = "%s%s__common__basketAssets" | |
116 | 116 | ||
117 | 117 | ||
118 | 118 | func Z () = "price" | |
119 | 119 | ||
120 | 120 | ||
121 | 121 | func aa (ab) = ("%s%s%s__common__priceByAsset__" + ab) | |
122 | 122 | ||
123 | 123 | ||
124 | 124 | let ac = "rpd_balance" | |
125 | 125 | ||
126 | 126 | func ad (ae,ab) = makeString([ac, ab, ae], "_") | |
127 | 127 | ||
128 | 128 | ||
129 | 129 | func af (ag,ah) = valueOrErrorMessage(getString(ag, ah), makeString(["mandatory ", toString(ag), ".", ah, " is not defined"], "")) | |
130 | 130 | ||
131 | 131 | ||
132 | 132 | func ai (ag,ah) = valueOrErrorMessage(getInteger(ag, ah), makeString(["mandatory ", toString(ag), ".", ah, " is not defined"], "")) | |
133 | 133 | ||
134 | 134 | ||
135 | 135 | func aj (ag,ah) = valueOrElse(getInteger(ag, ah), 0) | |
136 | 136 | ||
137 | 137 | ||
138 | 138 | func ak (ag,ah) = valueOrErrorMessage(getBoolean(ag, ah), makeString(["mandatory ", toString(ag), ".", ah, " is not defined"], "")) | |
139 | 139 | ||
140 | 140 | ||
141 | 141 | func al (am,an) = fraction(am, j, an) | |
142 | 142 | ||
143 | 143 | ||
144 | 144 | func ao (am,an) = fraction(am, an, j) | |
145 | 145 | ||
146 | 146 | ||
147 | 147 | func ap (aq,ar) = fraction(toBigInt(aq), m, toBigInt(ar)) | |
148 | 148 | ||
149 | 149 | ||
150 | 150 | func as (at,au) = toInt(fraction(at, toBigInt(au), m)) | |
151 | 151 | ||
152 | 152 | ||
153 | 153 | func av (at) = { | |
154 | 154 | let aw = at | |
155 | 155 | if ($isInstanceOf(aw, "List[Any]")) | |
156 | 156 | then { | |
157 | 157 | let ax = aw | |
158 | 158 | ax | |
159 | 159 | } | |
160 | 160 | else throw("fail to cast into List[Any]") | |
161 | 161 | } | |
162 | 162 | ||
163 | 163 | ||
164 | 164 | func ay (at) = { | |
165 | 165 | let aw = at | |
166 | 166 | if ($isInstanceOf(aw, "Int")) | |
167 | 167 | then { | |
168 | 168 | let az = aw | |
169 | 169 | az | |
170 | 170 | } | |
171 | 171 | else throw("fail to cast into Int") | |
172 | 172 | } | |
173 | 173 | ||
174 | 174 | ||
175 | 175 | func aA (at) = { | |
176 | 176 | let aw = at | |
177 | 177 | if ($isInstanceOf(aw, "String")) | |
178 | 178 | then { | |
179 | 179 | let aB = aw | |
180 | 180 | aB | |
181 | 181 | } | |
182 | 182 | else throw("fail to cast into String") | |
183 | 183 | } | |
184 | 184 | ||
185 | 185 | ||
186 | 186 | func aC (aD) = { | |
187 | 187 | let aw = aD | |
188 | 188 | if ($isInstanceOf(aw, "(Int, Int, Int, Int)")) | |
189 | 189 | then { | |
190 | 190 | let aE = aw | |
191 | 191 | aE | |
192 | 192 | } | |
193 | 193 | else throw("fail to cast into PriceSTRUCT") | |
194 | 194 | } | |
195 | 195 | ||
196 | 196 | ||
197 | 197 | let aF = 1 | |
198 | 198 | ||
199 | 199 | let aG = 2 | |
200 | 200 | ||
201 | 201 | let aH = 3 | |
202 | 202 | ||
203 | 203 | let aI = 4 | |
204 | 204 | ||
205 | 205 | let aJ = 5 | |
206 | 206 | ||
207 | 207 | let aK = 6 | |
208 | 208 | ||
209 | 209 | let aL = 7 | |
210 | 210 | ||
211 | 211 | let aM = 8 | |
212 | 212 | ||
213 | 213 | let aN = 9 | |
214 | 214 | ||
215 | 215 | let aO = 10 | |
216 | 216 | ||
217 | 217 | let aP = 11 | |
218 | 218 | ||
219 | 219 | let aQ = 12 | |
220 | 220 | ||
221 | 221 | let aR = 13 | |
222 | 222 | ||
223 | 223 | let aS = 14 | |
224 | 224 | ||
225 | 225 | func aT () = "%s%s__config__controlAddress" | |
226 | 226 | ||
227 | 227 | ||
228 | 228 | func aU () = "%s__controlConfig" | |
229 | 229 | ||
230 | 230 | ||
231 | 231 | func aV (aW) = split(af(aW, aU()), d) | |
232 | 232 | ||
233 | 233 | ||
234 | 234 | func aX (aY,aZ) = valueOrErrorMessage(addressFromString(aY[aZ]), ("Control cfg doesn't contain address at index " + toString(aZ))) | |
235 | 235 | ||
236 | 236 | ||
237 | 237 | let ba = addressFromStringValue(valueOrElse(getString(this, aT()), "3N4NS7d4Jo9a6F14LiFUKKYVdUkkf2eP4Zx")) | |
238 | 238 | ||
239 | 239 | let aY = aV(ba) | |
240 | 240 | ||
241 | 241 | let bb = aX(aY, aF) | |
242 | 242 | ||
243 | 243 | let bc = aX(aY, aG) | |
244 | 244 | ||
245 | 245 | let bd = aX(aY, aJ) | |
246 | 246 | ||
247 | 247 | let be = aX(aY, aH) | |
248 | 248 | ||
249 | 249 | let bf = aX(aY, aS) | |
250 | 250 | ||
251 | 251 | let bg = af(bb, R()) | |
252 | 252 | ||
253 | 253 | let bh = fromBase58String(bg) | |
254 | 254 | ||
255 | 255 | let bi = fromBase58String(getStringValue(bb, S())) | |
256 | 256 | ||
257 | 257 | let bj = fromBase58String(getStringValue(bc, T())) | |
258 | 258 | ||
259 | 259 | func bk () = "balance_lock_" | |
260 | 260 | ||
261 | 261 | ||
262 | 262 | func bl (bm,ab) = makeString(["%s%s%s", "balanceLock", bm, ab], d) | |
263 | 263 | ||
264 | 264 | ||
265 | 265 | func bn (ab) = bl("outNeutrino", ab) | |
266 | 266 | ||
267 | 267 | ||
268 | 268 | func bo () = bl("outMulti", bg) | |
269 | 269 | ||
270 | 270 | ||
271 | 271 | func bp () = (bk() + "neutrino") | |
272 | 272 | ||
273 | 273 | ||
274 | 274 | func bq () = (bk() + "waves") | |
275 | 275 | ||
276 | 276 | ||
277 | 277 | func br () = { | |
278 | 278 | let bs = valueOrElse(getString(ba, "%s%s__control__outOfMarketAddressList"), "") | |
279 | 279 | if ((bs == "")) | |
280 | 280 | then 0 | |
281 | 281 | else { | |
282 | 282 | func bt (bu,bv) = ((bu + valueOrElse(getInteger(be, ad(bv, bg)), 0)) + assetBalance(addressFromStringValue(bv), bh)) | |
283 | 283 | ||
284 | 284 | let bw = split(bs, d) | |
285 | 285 | let bx = size(bw) | |
286 | 286 | let by = 0 | |
287 | 287 | func bz (bA,bB) = if ((bB >= bx)) | |
288 | 288 | then bA | |
289 | 289 | else bt(bA, bw[bB]) | |
290 | 290 | ||
291 | 291 | func bC (bA,bB) = if ((bB >= bx)) | |
292 | 292 | then bA | |
293 | 293 | else throw("List size exceeds 7") | |
294 | 294 | ||
295 | 295 | bC(bz(bz(bz(bz(bz(bz(bz(by, 0), 1), 2), 3), 4), 5), 6), 7) | |
296 | 296 | } | |
297 | 297 | } | |
298 | 298 | ||
299 | 299 | ||
300 | 300 | func bD () = aC(invoke(bf, "price", [4], nil))._2 | |
301 | 301 | ||
302 | 302 | ||
303 | 303 | func bE (bF,bG) = { | |
304 | 304 | let bH = valueOrElse(getInteger(this, P()), 600000) | |
305 | 305 | let bI = valueOrElse(getInteger(this, Q()), 150000) | |
306 | 306 | let bJ = max([bH, fraction((h + bI), bG, h)]) | |
307 | 307 | let bK = min([bJ, h]) | |
308 | 308 | fraction(bF, h, bK) | |
309 | 309 | } | |
310 | 310 | ||
311 | 311 | ||
312 | 312 | let bL = getIntegerValue(ba, Z()) | |
313 | 313 | ||
314 | 314 | let bG = bD() | |
315 | 315 | ||
316 | 316 | let bM = bE(bL, bG) | |
317 | 317 | ||
318 | 318 | let bN = (valueOrElse(getInteger(bb, bp()), 0) + valueOrElse(getInteger(bb, bo()), 0)) | |
319 | 319 | ||
320 | 320 | let bO = (valueOrElse(getInteger(bb, bq()), 0) + valueOrElse(getInteger(bb, bn("WAVES")), 0)) | |
321 | 321 | ||
322 | 322 | func bP (ab) = { | |
323 | 323 | let bQ = fromBase58String(ab) | |
324 | 324 | if ((bQ == n)) | |
325 | 325 | then (wavesBalance(bb).regular - bO) | |
326 | 326 | else (assetBalance(bb, bQ) - valueOrElse(getInteger(bb, bn(ab)), 0)) | |
327 | 327 | } | |
328 | 328 | ||
329 | 329 | ||
330 | 330 | func bR (ab) = { | |
331 | - | let bQ = fromBase58String(ab) | |
332 | 331 | let bS = bP(ab) | |
333 | - | if ((bQ == n)) | |
334 | - | then ao(bS, bM) | |
335 | - | else { | |
336 | - | let bT = valueOrElse(getInteger(ba, aa(ab)), h) | |
337 | - | fraction(bS, bT, j) | |
338 | - | } | |
332 | + | let bT = value(getInteger(ba, aa(ab))) | |
333 | + | fraction(bS, bT, j) | |
339 | 334 | } | |
340 | 335 | ||
341 | 336 | ||
342 | 337 | let bU = br() | |
343 | 338 | ||
344 | 339 | let bV = (((bN + value(assetInfo(bh)).quantity) - assetBalance(bb, bh)) - assetBalance(bd, bh)) | |
345 | 340 | ||
346 | 341 | let bW = (bV - bU) | |
347 | 342 | ||
348 | 343 | func bX () = { | |
349 | - | let bY = split( | |
350 | - | func bZ (ca,ab) = (ca + | |
344 | + | let bY = split(value(getString(bb, Y())), d) | |
345 | + | func bZ (ca,ab) = (ca + bR(ab)) | |
351 | 346 | ||
352 | - | let bw = bY | |
353 | - | let bx = size(bw) | |
354 | - | let by = 0 | |
355 | - | func bz (bA,bB) = if ((bB >= bx)) | |
356 | - | then bA | |
357 | - | else bZ(bA, bw[bB]) | |
358 | - | ||
359 | - | func bC (bA,bB) = if ((bB >= bx)) | |
360 | - | then bA | |
361 | - | else throw("List size exceeds 10") | |
362 | - | ||
363 | - | bC(bz(bz(bz(bz(bz(bz(bz(bz(bz(bz(by, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
364 | - | } | |
365 | - | ||
366 | - | ||
367 | - | let cb = if ((bW == 0)) | |
368 | - | then 0 | |
369 | - | else bX() | |
370 | - | ||
371 | - | func cc () = { | |
372 | - | let cd = valueOrElse(getString(bb, Y()), "WAVES") | |
373 | - | let bY = split(cd, d) | |
374 | - | func ce (ca,ab) = { | |
375 | - | let bS = bP(ab) | |
376 | - | let bT = valueOrElse(getInteger(ba, aa(ab)), h) | |
377 | - | let cf = fraction(bS, bT, j) | |
378 | - | $Tuple2((ca._1 :+ $Tuple4(ab, bS, cf, bT)), (ca._2 + cf)) | |
379 | - | } | |
380 | - | ||
381 | - | let cg = { | |
347 | + | let cb = { | |
382 | 348 | let bw = bY | |
383 | 349 | let bx = size(bw) | |
384 | - | let by = | |
350 | + | let by = 0 | |
385 | 351 | func bz (bA,bB) = if ((bB >= bx)) | |
386 | 352 | then bA | |
387 | - | else | |
353 | + | else bZ(bA, bw[bB]) | |
388 | 354 | ||
389 | 355 | func bC (bA,bB) = if ((bB >= bx)) | |
390 | 356 | then bA | |
391 | 357 | else throw("List size exceeds 10") | |
392 | 358 | ||
393 | 359 | bC(bz(bz(bz(bz(bz(bz(bz(bz(bz(bz(by, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
394 | 360 | } | |
395 | - | func ch (ca,ci) = { | |
396 | - | let cj = if ((cg._2 == 0)) | |
397 | - | then h | |
398 | - | else fraction(ci._3, h, cg._2) | |
399 | - | (ca :+ makeString([ci._1, toString(cj), toString(ci._4), toString(ci._2)], ":")) | |
361 | + | fraction(cb, h, bW) | |
362 | + | } | |
363 | + | ||
364 | + | ||
365 | + | let cc = if ((bW == 0)) | |
366 | + | then 0 | |
367 | + | else bX() | |
368 | + | ||
369 | + | func cd () = { | |
370 | + | let ce = value(getString(bb, Y())) | |
371 | + | let bY = split(ce, d) | |
372 | + | func cf (ca,ab) = { | |
373 | + | let bS = bP(ab) | |
374 | + | let bT = value(getInteger(ba, aa(ab))) | |
375 | + | let cg = fraction(bS, bT, j) | |
376 | + | $Tuple2((ca._1 :+ $Tuple4(ab, bS, cg, bT)), (ca._2 + cg)) | |
400 | 377 | } | |
401 | 378 | ||
402 | - | let ck = if ((bW == 0)) | |
403 | - | then 0 | |
404 | - | else fraction(cg._2, h, bW) | |
405 | - | $Tuple3(makeString({ | |
406 | - | let bw = cg._1 | |
379 | + | let ch = { | |
380 | + | let bw = bY | |
407 | 381 | let bx = size(bw) | |
408 | - | let by = nil | |
409 | - | func | |
382 | + | let by = $Tuple2(nil, 0) | |
383 | + | func bz (bA,bB) = if ((bB >= bx)) | |
410 | 384 | then bA | |
411 | - | else | |
385 | + | else cf(bA, bw[bB]) | |
412 | 386 | ||
413 | - | func | |
387 | + | func bC (bA,bB) = if ((bB >= bx)) | |
414 | 388 | then bA | |
415 | 389 | else throw("List size exceeds 10") | |
416 | 390 | ||
417 | - | cm(cl(cl(cl(cl(cl(cl(cl(cl(cl(cl(by, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
418 | - | }, "_"), ck, cg._2) | |
391 | + | bC(bz(bz(bz(bz(bz(bz(bz(bz(bz(bz(by, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
392 | + | } | |
393 | + | func ci (ca,cj) = { | |
394 | + | let ck = if ((ch._2 == 0)) | |
395 | + | then h | |
396 | + | else fraction(cj._3, h, ch._2) | |
397 | + | (ca :+ makeString([cj._1, toString(ck), toString(cj._4), toString(cj._2)], ":")) | |
398 | + | } | |
399 | + | ||
400 | + | let cl = if ((bW == 0)) | |
401 | + | then 0 | |
402 | + | else fraction(ch._2, h, bW) | |
403 | + | $Tuple3(makeString({ | |
404 | + | let bw = ch._1 | |
405 | + | let bx = size(bw) | |
406 | + | let by = nil | |
407 | + | func cm (bA,bB) = if ((bB >= bx)) | |
408 | + | then bA | |
409 | + | else ci(bA, bw[bB]) | |
410 | + | ||
411 | + | func cn (bA,bB) = if ((bB >= bx)) | |
412 | + | then bA | |
413 | + | else throw("List size exceeds 10") | |
414 | + | ||
415 | + | cn(cm(cm(cm(cm(cm(cm(cm(cm(cm(cm(by, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
416 | + | }, "_"), cl, ch._2) | |
419 | 417 | } | |
420 | 418 | ||
421 | 419 | ||
422 | - | @Callable( | |
423 | - | func constructorV1 ( | |
420 | + | @Callable(co) | |
421 | + | func constructorV1 (cp,cq,cr) = if ((co.caller != this)) | |
424 | 422 | then throw("not authorized") | |
425 | - | else [StringEntry(K(), | |
423 | + | else [StringEntry(K(), cp), IntegerEntry(L(), cr)] | |
426 | 424 | ||
427 | 425 | ||
428 | 426 | ||
429 | - | @Callable( | |
430 | - | func calcSwapLimitREADONLY ( | |
431 | - | let | |
427 | + | @Callable(co) | |
428 | + | func calcSwapLimitREADONLY (cs) = { | |
429 | + | let ct = if ((0 >= cs)) | |
432 | 430 | then 0 | |
433 | 431 | else { | |
434 | - | let | |
435 | - | let | |
436 | - | let | |
437 | - | toInt(fraction( | |
432 | + | let cu = toBigInt(ai(this, L())) | |
433 | + | let cv = toBigInt(ai(this, M())) | |
434 | + | let cw = pow(toBigInt(cs), 6, cv, 16, 8, CEILING) | |
435 | + | toInt(fraction(cu, cw, l)) | |
438 | 436 | } | |
439 | - | let | |
437 | + | let cx = if ((0 >= cs)) | |
440 | 438 | then 0 | |
441 | 439 | else { | |
442 | - | let | |
443 | - | let | |
444 | - | let | |
445 | - | let | |
446 | - | toInt(fraction(fraction( | |
440 | + | let cu = toBigInt(ai(this, N())) | |
441 | + | let cv = toBigInt(ai(this, O())) | |
442 | + | let cy = toBigInt(cc) | |
443 | + | let cw = pow(toBigInt(cs), 6, cv, 16, 8, CEILING) | |
444 | + | toInt(fraction(fraction(cu, cw, l), cy, i)) | |
447 | 445 | } | |
448 | - | $Tuple2(nil, [ | |
446 | + | $Tuple2(nil, [ct, 0, cx]) | |
449 | 447 | } | |
450 | 448 | ||
451 | 449 | ||
452 | 450 | ||
453 | - | @Callable( | |
454 | - | func calculateKREADONLY ( | |
455 | - | let | |
456 | - | let | |
457 | - | let | |
458 | - | let | |
459 | - | let | |
460 | - | let | |
461 | - | if (( | |
462 | - | then throw((("BR=" + toString( | |
451 | + | @Callable(co) | |
452 | + | func calculateKREADONLY (cz,cA,an,cB,cC) = { | |
453 | + | let cD = toBigInt(2718281) | |
454 | + | let cE = 6 | |
455 | + | let cF = valueOrElse(getInteger(bc, "nsbtCurveParam_a"), 3) | |
456 | + | let cG = valueOrElse(getInteger(bc, "nsbtCurveParam_b"), ((3 * h) / 10)) | |
457 | + | let cH = ao(cz, an) | |
458 | + | let cI = fraction(cH, j, cA) | |
459 | + | if ((cI > 10678564816)) | |
460 | + | then throw((("BR=" + toString(cI)) + " > 10678.564816% will overflow exponent")) | |
463 | 461 | else { | |
464 | - | let | |
465 | - | let | |
466 | - | let | |
467 | - | $Tuple2(nil, [ | |
462 | + | let cJ = (cF * (cI - j)) | |
463 | + | let cK = pow(cD, cE, toBigInt(cJ), b, c, DOWN) | |
464 | + | let cL = fraction(toBigInt(cG), cK, i) | |
465 | + | $Tuple2(nil, [cF, cG, cH, cI, cJ, toString(cK), toString(cL)]) | |
468 | 466 | } | |
469 | 467 | } | |
470 | 468 | ||
471 | 469 | ||
472 | 470 | ||
473 | - | @Callable( | |
474 | - | func curveFunctionREADONLY ( | |
475 | - | let | |
476 | - | let an = ay( | |
477 | - | let | |
478 | - | let | |
479 | - | let | |
480 | - | let | |
481 | - | let | |
482 | - | let | |
483 | - | let | |
484 | - | let | |
485 | - | let | |
486 | - | let | |
487 | - | let | |
488 | - | let | |
489 | - | let | |
490 | - | $Tuple2(nil, [ | |
471 | + | @Callable(co) | |
472 | + | func curveFunctionREADONLY (cM) = { | |
473 | + | let cN = av(invoke(this, "calcNeutinoMetricsREADONLY", nil, nil)) | |
474 | + | let an = ay(cN[v]) | |
475 | + | let cz = ay(cN[y]) | |
476 | + | let cA = ay(cN[A]) | |
477 | + | let cC = ay(cN[E]) | |
478 | + | let cB = ay(cN[F]) | |
479 | + | let cO = av(invoke(this, "calculateKREADONLY", [cz, cA, an, cB, cC], nil)) | |
480 | + | let cL = parseBigIntValue(aA(cO[u])) | |
481 | + | let cP = ao(cM, an) | |
482 | + | let cQ = toBigInt(cB) | |
483 | + | let cR = toBigInt((cB - cC)) | |
484 | + | let cS = fraction(toBigInt(cP), m, cL) | |
485 | + | let cT = fraction(cS, cR, cQ) | |
486 | + | let cU = toInt(fraction(cR, cQ, (cT + cQ))) | |
487 | + | let cV = ((cB - cC) - cU) | |
488 | + | $Tuple2(nil, [cV, cP, cz, cA, cB, cC, ay(cO[o]), ay(cO[p]), ay(cO[q]), an, ay(cO[r]), ay(cO[s]), cO[t], cO[u], toString(cS), toString(cT), cU]) | |
491 | 489 | } | |
492 | 490 | ||
493 | 491 | ||
494 | 492 | ||
495 | - | @Callable( | |
493 | + | @Callable(co) | |
496 | 494 | func surfFunctionREADONLY (am,ab) = if ((0 > am)) | |
497 | 495 | then throw("amount should be positive") | |
498 | 496 | else { | |
499 | 497 | let an = bL | |
500 | - | let | |
501 | - | let | |
502 | - | let | |
503 | - | let | |
504 | - | let | |
505 | - | if (( | |
506 | - | then throw((("BR = " + toString( | |
498 | + | let cW = toBigInt(an) | |
499 | + | let cX = bP("WAVES") | |
500 | + | let cY = toBigInt(cX) | |
501 | + | let cZ = bW | |
502 | + | let da = toBigInt(cZ) | |
503 | + | if ((cc >= h)) | |
504 | + | then throw((("BR = " + toString(cc)) + ", cannot buy SURF")) | |
507 | 505 | else { | |
508 | - | let | |
509 | - | let | |
510 | - | let | |
511 | - | then if ((am > | |
512 | - | then | |
506 | + | let db = (fraction(cZ, j, an) - cX) | |
507 | + | let dc = (cZ - fraction(cX, an, j)) | |
508 | + | let dd = if ((ab == bh)) | |
509 | + | then if ((am > dc)) | |
510 | + | then dc | |
513 | 511 | else am | |
514 | 512 | else if ((ab == n)) | |
515 | - | then if ((am > | |
516 | - | then | |
513 | + | then if ((am > db)) | |
514 | + | then db | |
517 | 515 | else am | |
518 | 516 | else 0 | |
519 | - | let | |
517 | + | let de = toBigInt(dd) | |
520 | 518 | if ((ab == bh)) | |
521 | - | then $Tuple2(nil, [toInt(fraction(fraction( | |
519 | + | then $Tuple2(nil, [toInt(fraction(fraction(de, k, cW), (da - (de / g)), cY)), 0, dd, cX, cZ, cc, cX, (cZ - dd), fraction(ao(cX, an), h, (cZ - dd)), (am - dd), an]) | |
522 | 520 | else if ((ab == n)) | |
523 | - | then $Tuple2(nil, [toInt(fraction( | |
521 | + | then $Tuple2(nil, [toInt(fraction(da, log(fraction((cY + de), m, cY), 16, f, 16, 16, HALFUP), m)), dd, 0, cX, cZ, cc, (cX + dd), cZ, fraction(ao((cX + dd), an), h, cZ), (am - dd), an]) | |
524 | 522 | else throw("Unsupported asset") | |
525 | 523 | } | |
526 | 524 | } | |
527 | 525 | ||
528 | 526 | ||
529 | 527 | ||
530 | - | @Callable( | |
531 | - | func calcContractNsbtPriceSYSREADONLY ( | |
532 | - | let | |
533 | - | let an = ay( | |
534 | - | let | |
535 | - | let | |
536 | - | let | |
537 | - | let | |
538 | - | let | |
539 | - | let | |
540 | - | let | |
541 | - | let | |
542 | - | let | |
543 | - | let | |
544 | - | let | |
545 | - | $Tuple2(nil, [ | |
528 | + | @Callable(co) | |
529 | + | func calcContractNsbtPriceSYSREADONLY (df) = { | |
530 | + | let cN = av(invoke(this, "calcNeutinoMetricsREADONLY", nil, nil)) | |
531 | + | let an = ay(cN[v]) | |
532 | + | let cz = ay(cN[y]) | |
533 | + | let cA = (ay(cN[A]) - df) | |
534 | + | let cC = (ay(cN[E]) + df) | |
535 | + | let cB = ay(cN[F]) | |
536 | + | let cO = av(invoke(this, "calculateKREADONLY", [cz, cA, an, cB, cC], nil)) | |
537 | + | let dg = parseBigIntValue(aA(cO[u])) | |
538 | + | let dh = fraction(toBigInt(cB), m, toBigInt((cB - cC))) | |
539 | + | let di = fraction(dh, dh, m) | |
540 | + | let dj = fraction(dg, di, m) | |
541 | + | let dk = toInt(fraction(dj, toBigInt(h), m)) | |
542 | + | let dl = fraction(dk, h, an) | |
543 | + | $Tuple2(nil, [dk, dl]) | |
546 | 544 | } | |
547 | 545 | ||
548 | 546 | ||
549 | 547 | ||
550 | - | @Callable( | |
548 | + | @Callable(co) | |
551 | 549 | func calcNeutinoMetricsREADONLY () = { | |
552 | - | let | |
553 | - | let | |
554 | - | let | |
555 | - | let | |
556 | - | $Tuple2(nil, [bL, bN, bO, bP("WAVES"), bR("WAVES"), bW, bU, bV, | |
550 | + | let dm = value(assetInfo(bi)).quantity | |
551 | + | let dn = (dm - assetBalance(bc, bi)) | |
552 | + | let do = value(assetInfo(bj)).quantity | |
553 | + | let dp = cd() | |
554 | + | $Tuple2(nil, [bL, bN, bO, bP("WAVES"), bR("WAVES"), bW, bU, bV, cc, dn, dm, do, bG, bM, dp._1, dp._2, dp._3]) | |
557 | 555 | } | |
558 | 556 | ||
559 | 557 | ||
560 | 558 | ||
561 | - | @Callable( | |
562 | - | func getUnstakeComissionAmountREADONLY (am, | |
559 | + | @Callable(co) | |
560 | + | func getUnstakeComissionAmountREADONLY (am,dq,dr) = $Tuple2(nil, fraction(am, pow(2, 0, fraction(-((height - dq)), j, dr), 8, 8, HALFUP), j)) | |
563 | 561 | ||
564 | 562 | ||
565 | 563 | ||
566 | - | @Callable( | |
567 | - | func mergeStakesREADONLY ( | |
568 | - | let | |
569 | - | let aD = fraction(( | |
570 | - | $Tuple2(nil, ( | |
564 | + | @Callable(co) | |
565 | + | func mergeStakesREADONLY (ds,dt,du,dv,dr) = { | |
566 | + | let dw = fraction(du, pow(2, 0, fraction((dv - dt), j, dr), 8, 8, HALFUP), j) | |
567 | + | let aD = fraction((ds + du), j, (ds + dw)) | |
568 | + | $Tuple2(nil, (dt + ((e - (dr * log(aD, 8, 2, 0, 8, HALFUP))) / j))) | |
571 | 569 | } | |
572 | 570 | ||
573 | 571 | ||
574 | - | @Verifier( | |
575 | - | func | |
576 | - | let | |
577 | - | let | |
578 | - | let | |
572 | + | @Verifier(dx) | |
573 | + | func dy () = { | |
574 | + | let dz = makeString(["ExtEEK19nmKj9mCpnWyvEEJFYATLMcVEMvohhUHkyHNm", "Ev5py5FfBQX9cZpYKnfQrTB49Byf8QmpZWeDVRim4yV7", "DUuuLjXu98nBwZc7fqwCTjtA3nnRwgTbkMSr5SU2NmDR", "DUuuLjXu98nBwZc7fqwCTjtA3nnRwgTbkMSr5SU2NmDR"], d) | |
575 | + | let dA = split(valueOrElse(getString(ba, "%s__multisig"), dz), d) | |
576 | + | let dB = ((((if (sigVerify(dx.bodyBytes, dx.proofs[0], fromBase58String(dA[0]))) | |
579 | 577 | then 1 | |
580 | - | else 0) + (if (sigVerify( | |
578 | + | else 0) + (if (sigVerify(dx.bodyBytes, dx.proofs[1], fromBase58String(dA[1]))) | |
581 | 579 | then 1 | |
582 | - | else 0)) + (if (sigVerify( | |
580 | + | else 0)) + (if (sigVerify(dx.bodyBytes, dx.proofs[2], fromBase58String(dA[2]))) | |
583 | 581 | then 1 | |
584 | - | else 0)) + (if (sigVerify( | |
582 | + | else 0)) + (if (sigVerify(dx.bodyBytes, dx.proofs[3], fromBase58String(dA[3]))) | |
585 | 583 | then 2 | |
586 | 584 | else 0)) | |
587 | - | ( | |
585 | + | (dB >= 3) | |
588 | 586 | } | |
589 | 587 |
github/deemru/w8io/026f985 121.20 ms ◑