tx · A4MpZkcfD8CUmaNtusZTvkrS9RdWe6CQFGoBxPmQmgdq 3N4QFkEYPsR9D54c1pHRQzqRARjubXcbGuA: -0.02500000 Waves 2023.07.05 15:11 [2652603] smart account 3N4QFkEYPsR9D54c1pHRQzqRARjubXcbGuA > SELF 0.00000000 Waves
{ "type": 13, "id": "A4MpZkcfD8CUmaNtusZTvkrS9RdWe6CQFGoBxPmQmgdq", "fee": 2500000, "feeAssetId": null, "timestamp": 1688559103097, "version": 1, "sender": "3N4QFkEYPsR9D54c1pHRQzqRARjubXcbGuA", "senderPublicKey": "8nr9XxGKmrRg6E6Zss6YPynBYEFbCf39Z2D9WvVuUgzY", "proofs": [ "2M5zs1aTEcD5L8MLPkcxSJTmZdZtxrtyff9vd27uzJ2rGKBjv6RT1kqbYYxF1DhDuJ6VFczCBcsy63MyQqtn2LTf" ], "script": "base64:BwIqCAISAwoBAhIGCgQCAQEBEgMKAQISAwoBAhIECgICAhIECgICAhIDCgECKgADU0VQAgJfXwANQ09OVFJBQ1RfTkFNRQIPY2FsY3VsYXRvci5yaWRlAAZTQ0FMRTgAgMLXLwAHUEVORElORwIHUEVORElORwAIRklOSVNIRUQCCEZJTklTSEVEAAVXQVZFUwIFV0FWRVMBB3dyYXBFcnIBAXMJAKwCAgkArAICBQ1DT05UUkFDVF9OQU1FAgI6IAUBcwEIdGhyb3dFcnIBAXMJAAIBCQEHd3JhcEVycgEFAXMBD2Fzc2V0SWRUb1N0cmluZwEHYXNzZXRJZAQHJG1hdGNoMAUHYXNzZXRJZAMJAAECBQckbWF0Y2gwAgpCeXRlVmVjdG9yBAFiBQckbWF0Y2gwCQDYBAEFAWIDCQABAgUHJG1hdGNoMAIEVW5pdAUFV0FWRVMJAAIBAgtNYXRjaCBlcnJvcgEDYWJzAQFuAwkAZgIAAAUBbgkBAS0BBQFuBQFuARFrZXlGYWN0b3J5QWRkcmVzcwAJALkJAgkAzAgCAgIlcwkAzAgCAgdmYWN0b3J5BQNuaWwFA1NFUAET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aWwFA25pbAkAzAgCCQD8BwQFFGZhY3RvcnlBZGRyZXNzT3JGYWlsAgxpbnRlZ2VyRW50cnkJAMwIAgkBC2tleUludmVzdGVkAQUEdW5pdAkAzAgCCQBkAgUIaW52ZXN0ZWQFGnJld2FyZFRvTWFpblRyZWFzdXJ5QW1vdW50BQNuaWwFA25pbAUDbmlsAwkAAAIFB2FjdGlvbnMFB2FjdGlvbnMJAJQKAgUDbmlsBQR1bml0CQACAQIkU3RyaWN0IHZhbHVlIGlzIG5vdCBlcXVhbCB0byBpdHNlbGYuCQACAQIkU3RyaWN0IHZhbHVlIGlzIG5vdCBlcXVhbCB0byBpdHNlbGYuCQACAQIkU3RyaWN0IHZhbHVlIGlzIG5vdCBlcXVhbCB0byBpdHNlbGYuAQJ0eAEGdmVyaWZ5AAQJcHVibGljS2V5BAckbWF0Y2gwCQEZZ2V0TWFuYWdlclB1YmxpY0tleU9yVW5pdAADCQABAgUHJG1hdGNoMAIKQnl0ZVZlY3RvcgQDcHViBQckbWF0Y2gwBQNwdWIIBQJ0eA9zZW5kZXJQdWJsaWNLZXkJAPQDAwgFAnR4CWJvZHlCeXRlcwkAkQMCCAUCdHgGcHJvb2ZzAAAFCXB1YmxpY0tleSKu6e8=", "chainId": 84, "height": 2652603, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 2vR8ERZxpps5k958HXZ4WrVupTxnExYJJu8xUSqPVFi9 Next: DPFPUjQknkXcW39XR6YG7J82qbzUbjTKmSA75aVPE61d Diff:
Old | New | Differences | |
---|---|---|---|
321 | 321 | else 0, c) | |
322 | 322 | let aX = ((aS - aW) + aV) | |
323 | 323 | let aY = ((aT - aV) + aW) | |
324 | - | let aZ = (aM + aY) | |
325 | - | let ba = (aL + aX) | |
326 | - | let bb = (aE + 1) | |
327 | - | let bc = valueOrErrorMessage(assetInfo(Y), g("invalid lpAsset info")).quantity | |
328 | - | let bd = fraction(aZ, c, bc) | |
329 | - | let be = valueOrElse(getInteger(U, I()), 0) | |
330 | - | let bf = max([0, fraction(be, bd, c)]) | |
331 | - | let bg = if ((size(ah.payments) > 0)) | |
324 | + | let aZ = (aL + aX) | |
325 | + | let ba = (aM + aY) | |
326 | + | let bb = min([0, aZ]) | |
327 | + | let bc = min([0, ba]) | |
328 | + | let bd = (max([0, aZ]) + bc) | |
329 | + | let be = (max([0, ba]) + bb) | |
330 | + | let bf = (aE + 1) | |
331 | + | let bg = valueOrErrorMessage(assetInfo(Y), g("invalid lpAsset info")).quantity | |
332 | + | let bh = fraction(be, c, bg) | |
333 | + | let bi = valueOrElse(getInteger(U, I()), 0) | |
334 | + | let bj = max([0, fraction(bi, bh, c)]) | |
335 | + | let bk = if ((size(ah.payments) > 0)) | |
332 | 336 | then ah.payments[0] | |
333 | 337 | else unit | |
334 | - | let | |
335 | - | let | |
336 | - | let | |
338 | + | let bl = value(bk).amount | |
339 | + | let bm = value(bk).assetId | |
340 | + | let bn = if (if ((bj == 0)) | |
337 | 341 | then true | |
338 | - | else if (if (( | |
339 | - | then ( | |
342 | + | else if (if ((bk != unit)) | |
343 | + | then (bm == unit) | |
340 | 344 | else false) | |
341 | - | then ( | |
345 | + | then (bl >= bj) | |
342 | 346 | else false) | |
343 | 347 | then true | |
344 | - | else i(("invalid payments, payment amount min: " + toString( | |
345 | - | if (( | |
348 | + | else i(("invalid payments, payment amount min: " + toString(bj))) | |
349 | + | if ((bn == bn)) | |
346 | 350 | then { | |
347 | - | let | |
348 | - | then [ScriptTransfer(U, | |
351 | + | let bo = if ((bk != unit)) | |
352 | + | then [ScriptTransfer(U, bl, bm)] | |
349 | 353 | else nil | |
350 | - | let aA = [invoke(U, "integerEntry", [z(), | |
351 | - | $Tuple2( | |
354 | + | let aA = [invoke(U, "integerEntry", [z(), bf], nil), invoke(U, "integerEntry", [A(bf), bh], nil), invoke(U, "integerEntry", [C(bf), (aJ + 1)], nil), invoke(U, "burn", [bi], nil), invoke(U, "integerEntry", [I(), 0], nil), invoke(U, "integerEntry", [u(unit), be], nil), invoke(U, "integerEntry", [v(unit), bd], nil)] | |
355 | + | $Tuple2(bo, aA) | |
352 | 356 | } | |
353 | 357 | else throw("Strict value is not equal to itself.") | |
354 | 358 | } | |
367 | 371 | let x = Address(aw) | |
368 | 372 | let aE = valueOrErrorMessage(getInteger(U, z()), g("invalid period")) | |
369 | 373 | let aH = valueOrErrorMessage(getInteger(U, A(aE)), g("invalid price")) | |
370 | - | let | |
374 | + | let bp = if ((size(ah.payments) == 1)) | |
371 | 375 | then ah.payments[0] | |
372 | 376 | else i("invalid payments") | |
373 | - | let | |
374 | - | then ( | |
377 | + | let bq = if (if ((bp.assetId == unit)) | |
378 | + | then (bp.amount > 0) | |
375 | 379 | else false) | |
376 | - | then $Tuple2( | |
380 | + | then $Tuple2(bp.amount, bp.assetId) | |
377 | 381 | else i("invalid payment amount") | |
378 | - | let | |
379 | - | let | |
382 | + | let bl = bq._1 | |
383 | + | let bm = bq._2 | |
380 | 384 | let N = if ((aH > 0)) | |
381 | - | then fraction( | |
385 | + | then fraction(bl, c, aH) | |
382 | 386 | else 0 | |
383 | - | let | |
384 | - | let | |
385 | - | let aA = [invoke(U, "integerEntry", [u(unit), ( | |
386 | - | $Tuple2( | |
387 | + | let br = valueOrElse(getInteger(U, u(unit)), 0) | |
388 | + | let bo = [ScriptTransfer(ac, bl, bm)] | |
389 | + | let aA = [invoke(U, "integerEntry", [u(unit), (br + bl)], nil), invoke(U, "reissue", [N], nil), invoke(U, "transferAsset", [aw, N, Y], nil)] | |
390 | + | $Tuple2(bo, aA) | |
387 | 391 | } | |
388 | 392 | else throw("Strict value is not equal to itself.") | |
389 | 393 | } | |
397 | 401 | then { | |
398 | 402 | let x = Address(aw) | |
399 | 403 | let aE = valueOrErrorMessage(getInteger(U, z()), g("invalid period")) | |
400 | - | let | |
404 | + | let bp = if ((size(ah.payments) == 1)) | |
401 | 405 | then ah.payments[0] | |
402 | 406 | else i(g("invalid payments")) | |
403 | - | let | |
407 | + | let bm = if ((bp.assetId == Y)) | |
404 | 408 | then Y | |
405 | 409 | else i("invalid payment asset") | |
406 | - | let | |
407 | - | then | |
410 | + | let bl = if ((bp.amount > 0)) | |
411 | + | then bp.amount | |
408 | 412 | else i("invalid payment amount") | |
409 | - | let | |
410 | - | let | |
411 | - | let aA = [invoke(U, "integerEntry", [I(), ( | |
413 | + | let bs = valueOrElse(getInteger(U, I()), 0) | |
414 | + | let bo = [ScriptTransfer(U, bl, bm)] | |
415 | + | let aA = [invoke(U, "integerEntry", [I(), (bs + bl)], nil), invoke(U, "stringEntry", [J(x, ah.transactionId), L(d, bl, (aE + 1), unit)], nil)] | |
412 | 416 | if ((aA == aA)) | |
413 | - | then $Tuple2( | |
417 | + | then $Tuple2(bo, aA) | |
414 | 418 | else throw("Strict value is not equal to itself.") | |
415 | 419 | } | |
416 | 420 | else throw("Strict value is not equal to itself.") | |
424 | 428 | if ((ax == ax)) | |
425 | 429 | then { | |
426 | 430 | let x = Address(aw) | |
427 | - | let | |
431 | + | let bt = valueOrErrorMessage(getString(U, J(x, K)), g("invalid withdrawal request")) | |
428 | 432 | let aE = valueOrErrorMessage(getInteger(U, z()), g("invalid period")) | |
429 | - | let | |
430 | - | let M = | |
431 | - | let N = | |
432 | - | let O = | |
433 | - | let P = | |
433 | + | let bu = R(bt) | |
434 | + | let M = bu._1 | |
435 | + | let N = bu._2 | |
436 | + | let O = bu._3 | |
437 | + | let P = bu._4 | |
434 | 438 | let aK = [if ((M == d)) | |
435 | 439 | then true | |
436 | 440 | else i("invalid withdrawal request status"), if ((O > aE)) | |
438 | 442 | else i("invalid withdrawal request period")] | |
439 | 443 | if ((aK == aK)) | |
440 | 444 | then { | |
441 | - | let | |
442 | - | let aA = [invoke(U, "integerEntry", [I(), if (( | |
443 | - | then ( | |
445 | + | let bs = valueOrErrorMessage(getInteger(U, I()), g("invalid total withdrawal amount")) | |
446 | + | let aA = [invoke(U, "integerEntry", [I(), if ((bs >= N)) | |
447 | + | then (bs - N) | |
444 | 448 | else i("invalid withdrawal amount")], nil), invoke(U, "deleteEntry", [J(x, K)], nil), invoke(U, "transferAsset", [aw, N, Y], nil)] | |
445 | 449 | if ((aA == aA)) | |
446 | 450 | then $Tuple2(nil, aA) | |
460 | 464 | then { | |
461 | 465 | let x = Address(aw) | |
462 | 466 | let aE = valueOrErrorMessage(getInteger(U, z()), g("invalid period")) | |
463 | - | let | |
464 | - | let | |
465 | - | let M = | |
466 | - | let N = | |
467 | - | let O = | |
468 | - | let P = | |
467 | + | let bt = valueOrErrorMessage(getString(U, J(x, K)), g("invalid withdrawal request")) | |
468 | + | let bv = R(bt) | |
469 | + | let M = bv._1 | |
470 | + | let N = bv._2 | |
471 | + | let O = bv._3 | |
472 | + | let P = bv._4 | |
469 | 473 | if ((M == e)) | |
470 | 474 | then i("invalid withdrawal request status") | |
471 | 475 | else if ((O > aE)) | |
472 | 476 | then i("invalid withdrawal request period") | |
473 | 477 | else { | |
474 | - | let | |
475 | - | let | |
476 | - | then fraction(N, | |
478 | + | let bw = valueOrErrorMessage(getInteger(U, A(O)), g("invalid price")) | |
479 | + | let bx = if ((bw > 0)) | |
480 | + | then fraction(N, bw, c) | |
477 | 481 | else 0 | |
478 | - | let aA = [invoke(U, "stringEntry", [J(x, K), L(e, N, O, ah.transactionId)], nil), invoke(U, "transferWaves", [aw, | |
482 | + | let aA = [invoke(U, "stringEntry", [J(x, K), L(e, N, O, ah.transactionId)], nil), invoke(U, "transferWaves", [aw, bx], nil)] | |
479 | 483 | $Tuple2(nil, aA) | |
480 | 484 | } | |
481 | 485 | } | |
496 | 500 | let aH = valueOrErrorMessage(getInteger(U, A(aE)), g("invalid price")) | |
497 | 501 | let aI = valueOrErrorMessage(getInteger(U, F()), g("invalid next block to process")) | |
498 | 502 | let aJ = ((aG + aF) - 1) | |
499 | - | let | |
500 | - | let | |
503 | + | let by = 40 | |
504 | + | let bz = if (if (if ((height >= aI)) | |
501 | 505 | then if ((aI >= aG)) | |
502 | 506 | then true | |
503 | 507 | else (aE == 0) | |
504 | 508 | else false) | |
505 | 509 | then (aJ >= aI) | |
506 | 510 | else false) | |
507 | - | then min([((aJ - aI) + 1), | |
511 | + | then min([((aJ - aI) + 1), by]) | |
508 | 512 | else i(g("invalid target block")) | |
509 | - | let | |
510 | - | let | |
511 | - | let | |
512 | - | func | |
513 | - | then | |
513 | + | let bA = valueOrErrorMessage(getInteger(U, E()), g("invalid block processing reward")) | |
514 | + | let bB = (bA / bz) | |
515 | + | let bC = (bA - (bB * bz)) | |
516 | + | func bD (bE,bF) = if ((bF >= bz)) | |
517 | + | then bE | |
514 | 518 | else { | |
515 | - | let | |
516 | - | let | |
517 | - | let | |
518 | - | let | |
519 | - | let ay = valueOrElse(getInteger(U, w( | |
520 | - | let | |
521 | - | then ( | |
522 | - | else | |
519 | + | let bG = (aI + bF) | |
520 | + | let bH = valueOrErrorMessage(blockInfoByHeight(bG), g("invalid block info")) | |
521 | + | let bI = valueOrErrorMessage(ak(bH.rewards, aa), g(("invalid treasury reward for height " + toString(bG)))) | |
522 | + | let bJ = bH.generator | |
523 | + | let ay = valueOrElse(getInteger(U, w(bJ)), 0) | |
524 | + | let bK = if ((bF == (bz - 1))) | |
525 | + | then (bB + bC) | |
526 | + | else bB | |
523 | 527 | let N = if ((aH > 0)) | |
524 | - | then fraction(( | |
528 | + | then fraction((bI - bK), c, aH) | |
525 | 529 | else 0 | |
526 | - | let | |
527 | - | if (( | |
530 | + | let bL = [invoke(U, "stringEntry", [G(bG), makeString([toBase58String(ah.transactionId), toString(aE), toString(bJ), toBase58String(aw), toString(bI), toString(bK), toString(N)], a)], nil), invoke(U, "integerEntry", [w(bJ), (ay + N)], nil)] | |
531 | + | if ((bL == bL)) | |
528 | 532 | then { | |
529 | - | let | |
530 | - | let | |
531 | - | let | |
532 | - | $Tuple2(( | |
533 | + | let bM = bE | |
534 | + | let bN = bM._1 | |
535 | + | let bO = bM._2 | |
536 | + | $Tuple2((bN + N), (bO + bI)) | |
533 | 537 | } | |
534 | 538 | else throw("Strict value is not equal to itself.") | |
535 | 539 | } | |
536 | 540 | ||
537 | - | let | |
538 | - | let | |
539 | - | let | |
540 | - | let | |
541 | - | let | |
542 | - | func | |
543 | - | then | |
544 | - | else | |
541 | + | let bP = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39] | |
542 | + | let bQ = { | |
543 | + | let bR = bP | |
544 | + | let bS = size(bR) | |
545 | + | let bT = $Tuple2(0, 0) | |
546 | + | func bU (bV,bW) = if ((bW >= bS)) | |
547 | + | then bV | |
548 | + | else bD(bV, bR[bW]) | |
545 | 549 | ||
546 | - | func | |
547 | - | then | |
550 | + | func bX (bV,bW) = if ((bW >= bS)) | |
551 | + | then bV | |
548 | 552 | else throw("List size exceeds 40") | |
549 | 553 | ||
550 | - | bT | |
554 | + | bX(bU(bU(bU(bU(bU(bU(bU(bU(bU(bU(bU(bU(bU(bU(bU(bU(bU(bU(bU(bU(bU(bU(bU(bU(bU(bU(bU(bU(bU(bU(bU(bU(bU(bU(bU(bU(bU(bU(bU(bU(bT, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20), 21), 22), 23), 24), 25), 26), 27), 28), 29), 30), 31), 32), 33), 34), 35), 36), 37), 38), 39), 40) | |
551 | 555 | } | |
552 | - | if (( | |
556 | + | if ((bQ == bQ)) | |
553 | 557 | then { | |
554 | - | let | |
555 | - | let | |
556 | - | let | |
557 | - | let | |
558 | - | let | |
559 | - | if (( | |
558 | + | let bY = bQ._2 | |
559 | + | let bZ = bQ._1 | |
560 | + | let ca = (bY - bA) | |
561 | + | let br = valueOrElse(getInteger(U, u(unit)), 0) | |
562 | + | let bo = [invoke(U, "reissue", [bZ], nil), invoke(U, "integerEntry", [F(), (aI + bz)], nil), invoke(U, "transferFromProxyTreasury", [ac.bytes, ca], nil), invoke(U, "transferFromProxyTreasury", [aw, bA], nil), invoke(U, "integerEntry", [u(unit), (br + ca)], nil)] | |
563 | + | if ((bo == bo)) | |
560 | 564 | then $Tuple2(nil, unit) | |
561 | 565 | else throw("Strict value is not equal to itself.") | |
562 | 566 | } | |
566 | 570 | } | |
567 | 571 | ||
568 | 572 | ||
569 | - | @Verifier( | |
570 | - | func | |
571 | - | let | |
573 | + | @Verifier(cb) | |
574 | + | func cc () = { | |
575 | + | let cd = { | |
572 | 576 | let l = ad() | |
573 | 577 | if ($isInstanceOf(l, "ByteVector")) | |
574 | 578 | then { | |
575 | 579 | let af = l | |
576 | 580 | af | |
577 | 581 | } | |
578 | - | else | |
582 | + | else cb.senderPublicKey | |
579 | 583 | } | |
580 | - | sigVerify( | |
584 | + | sigVerify(cb.bodyBytes, cb.proofs[0], cd) | |
581 | 585 | } | |
582 | 586 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 7 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = "__" | |
5 | 5 | ||
6 | 6 | let b = "calculator.ride" | |
7 | 7 | ||
8 | 8 | let c = 100000000 | |
9 | 9 | ||
10 | 10 | let d = "PENDING" | |
11 | 11 | ||
12 | 12 | let e = "FINISHED" | |
13 | 13 | ||
14 | 14 | let f = "WAVES" | |
15 | 15 | ||
16 | 16 | func g (h) = ((b + ": ") + h) | |
17 | 17 | ||
18 | 18 | ||
19 | 19 | func i (h) = throw(g(h)) | |
20 | 20 | ||
21 | 21 | ||
22 | 22 | func j (k) = { | |
23 | 23 | let l = k | |
24 | 24 | if ($isInstanceOf(l, "ByteVector")) | |
25 | 25 | then { | |
26 | 26 | let m = l | |
27 | 27 | toBase58String(m) | |
28 | 28 | } | |
29 | 29 | else if ($isInstanceOf(l, "Unit")) | |
30 | 30 | then f | |
31 | 31 | else throw("Match error") | |
32 | 32 | } | |
33 | 33 | ||
34 | 34 | ||
35 | 35 | func n (o) = if ((0 > o)) | |
36 | 36 | then -(o) | |
37 | 37 | else o | |
38 | 38 | ||
39 | 39 | ||
40 | 40 | func p () = makeString(["%s", "factory"], a) | |
41 | 41 | ||
42 | 42 | ||
43 | 43 | func q () = makeString(["%s", "managerPublicKey"], a) | |
44 | 44 | ||
45 | 45 | ||
46 | 46 | func r () = makeString(["%s", "lpAssetId"], a) | |
47 | 47 | ||
48 | 48 | ||
49 | 49 | func s () = makeString(["%s", "proxyTreasury"], a) | |
50 | 50 | ||
51 | 51 | ||
52 | 52 | func t () = makeString(["%s", "mainTreasury"], a) | |
53 | 53 | ||
54 | 54 | ||
55 | 55 | func u (k) = makeString(["%s%s", "invested", j(k)], a) | |
56 | 56 | ||
57 | 57 | ||
58 | 58 | func v (k) = makeString(["%s%s", "donated", j(k)], a) | |
59 | 59 | ||
60 | 60 | ||
61 | 61 | func w (x) = makeString(["%s%s", "available", toString(x)], a) | |
62 | 62 | ||
63 | 63 | ||
64 | 64 | func y (x) = makeString(["%s%s", "claimed", toString(x)], a) | |
65 | 65 | ||
66 | 66 | ||
67 | 67 | func z () = makeString(["%s", "currentPeriod"], a) | |
68 | 68 | ||
69 | 69 | ||
70 | 70 | func A (B) = makeString(["%s%d", "price", toString(B)], a) | |
71 | 71 | ||
72 | 72 | ||
73 | 73 | func C (B) = makeString(["%s%d", "startHeight", toString(B)], a) | |
74 | 74 | ||
75 | 75 | ||
76 | 76 | func D () = "%s__periodLength" | |
77 | 77 | ||
78 | 78 | ||
79 | 79 | func E () = "%s__blockProcessingReward" | |
80 | 80 | ||
81 | 81 | ||
82 | 82 | func F () = "%s__nextBlockToProcess" | |
83 | 83 | ||
84 | 84 | ||
85 | 85 | func G (H) = makeString(["%s%d", "blockProcessed", toString(H)], a) | |
86 | 86 | ||
87 | 87 | ||
88 | 88 | func I () = "%s__withdrawal" | |
89 | 89 | ||
90 | 90 | ||
91 | 91 | func J (x,K) = makeString(["%s%s%s", "withdrawal", toString(x), toBase58String(K)], a) | |
92 | 92 | ||
93 | 93 | ||
94 | 94 | func L (M,N,O,P) = { | |
95 | 95 | let Q = { | |
96 | 96 | let l = P | |
97 | 97 | if ($isInstanceOf(l, "ByteVector")) | |
98 | 98 | then { | |
99 | 99 | let m = l | |
100 | 100 | toBase58String(m) | |
101 | 101 | } | |
102 | 102 | else if ($isInstanceOf(l, "Unit")) | |
103 | 103 | then "SOON" | |
104 | 104 | else throw("Match error") | |
105 | 105 | } | |
106 | 106 | makeString(["%s%d%d%s", M, toString(N), toString(O), Q], a) | |
107 | 107 | } | |
108 | 108 | ||
109 | 109 | ||
110 | 110 | func R (h) = { | |
111 | 111 | let S = split(h, a) | |
112 | 112 | if ((size(S) == 5)) | |
113 | 113 | then { | |
114 | 114 | let M = S[1] | |
115 | 115 | let N = valueOrErrorMessage(parseInt(S[2]), g("invalid lpAssetAmount")) | |
116 | 116 | let O = valueOrErrorMessage(parseInt(S[3]), g("invalid targetPeriod")) | |
117 | 117 | let P = S[4] | |
118 | 118 | $Tuple4(M, N, O, P) | |
119 | 119 | } | |
120 | 120 | else i("invalid withdrawal request value") | |
121 | 121 | } | |
122 | 122 | ||
123 | 123 | ||
124 | 124 | let T = { | |
125 | 125 | let l = getString(this, p()) | |
126 | 126 | if ($isInstanceOf(l, "String")) | |
127 | 127 | then { | |
128 | 128 | let h = l | |
129 | 129 | addressFromString(h) | |
130 | 130 | } | |
131 | 131 | else if ($isInstanceOf(l, "Unit")) | |
132 | 132 | then unit | |
133 | 133 | else throw("Match error") | |
134 | 134 | } | |
135 | 135 | ||
136 | 136 | let U = valueOrErrorMessage(T, g("invalid factory address")) | |
137 | 137 | ||
138 | 138 | let V = { | |
139 | 139 | let l = T | |
140 | 140 | if ($isInstanceOf(l, "Address")) | |
141 | 141 | then { | |
142 | 142 | let W = l | |
143 | 143 | let X = getString(W, r()) | |
144 | 144 | if ($isInstanceOf(X, "String")) | |
145 | 145 | then { | |
146 | 146 | let h = X | |
147 | 147 | fromBase58String(h) | |
148 | 148 | } | |
149 | 149 | else if ($isInstanceOf(X, "Unit")) | |
150 | 150 | then unit | |
151 | 151 | else throw("Match error") | |
152 | 152 | } | |
153 | 153 | else if ($isInstanceOf(l, "Unit")) | |
154 | 154 | then unit | |
155 | 155 | else throw("Match error") | |
156 | 156 | } | |
157 | 157 | ||
158 | 158 | let Y = valueOrErrorMessage(V, g("invalid lpAssetId")) | |
159 | 159 | ||
160 | 160 | let Z = { | |
161 | 161 | let l = T | |
162 | 162 | if ($isInstanceOf(l, "Address")) | |
163 | 163 | then { | |
164 | 164 | let W = l | |
165 | 165 | let X = getString(W, s()) | |
166 | 166 | if ($isInstanceOf(X, "String")) | |
167 | 167 | then { | |
168 | 168 | let h = X | |
169 | 169 | addressFromString(h) | |
170 | 170 | } | |
171 | 171 | else if ($isInstanceOf(X, "Unit")) | |
172 | 172 | then unit | |
173 | 173 | else throw("Match error") | |
174 | 174 | } | |
175 | 175 | else if ($isInstanceOf(l, "Unit")) | |
176 | 176 | then unit | |
177 | 177 | else throw("Match error") | |
178 | 178 | } | |
179 | 179 | ||
180 | 180 | let aa = valueOrErrorMessage(Z, g("invalid proxy treasury address")) | |
181 | 181 | ||
182 | 182 | let ab = { | |
183 | 183 | let l = T | |
184 | 184 | if ($isInstanceOf(l, "Address")) | |
185 | 185 | then { | |
186 | 186 | let W = l | |
187 | 187 | let X = getString(W, t()) | |
188 | 188 | if ($isInstanceOf(X, "String")) | |
189 | 189 | then { | |
190 | 190 | let h = X | |
191 | 191 | addressFromString(h) | |
192 | 192 | } | |
193 | 193 | else if ($isInstanceOf(X, "Unit")) | |
194 | 194 | then unit | |
195 | 195 | else throw("Match error") | |
196 | 196 | } | |
197 | 197 | else if ($isInstanceOf(l, "Unit")) | |
198 | 198 | then unit | |
199 | 199 | else throw("Match error") | |
200 | 200 | } | |
201 | 201 | ||
202 | 202 | let ac = valueOrErrorMessage(ab, g("invalid main treasury address")) | |
203 | 203 | ||
204 | 204 | func ad () = { | |
205 | 205 | let l = T | |
206 | 206 | if ($isInstanceOf(l, "Address")) | |
207 | 207 | then { | |
208 | 208 | let ae = l | |
209 | 209 | let X = getString(ae, q()) | |
210 | 210 | if ($isInstanceOf(X, "String")) | |
211 | 211 | then { | |
212 | 212 | let af = X | |
213 | 213 | fromBase58String(af) | |
214 | 214 | } | |
215 | 215 | else unit | |
216 | 216 | } | |
217 | 217 | else unit | |
218 | 218 | } | |
219 | 219 | ||
220 | 220 | ||
221 | 221 | func ag (ah,ai) = if ((ah.caller == ai)) | |
222 | 222 | then true | |
223 | 223 | else i("permission denied") | |
224 | 224 | ||
225 | 225 | ||
226 | 226 | func aj (ah) = ag(ah, U) | |
227 | 227 | ||
228 | 228 | ||
229 | 229 | func ak (al,am) = { | |
230 | 230 | let h = size(al) | |
231 | 231 | let an = al[0] | |
232 | 232 | let ao = an._1 | |
233 | 233 | let ap = an._2 | |
234 | 234 | let aq = al[1] | |
235 | 235 | let ar = aq._1 | |
236 | 236 | let as = aq._2 | |
237 | 237 | let at = al[2] | |
238 | 238 | let au = at._1 | |
239 | 239 | let av = at._2 | |
240 | 240 | if (if ((h > 0)) | |
241 | 241 | then (ao == am) | |
242 | 242 | else false) | |
243 | 243 | then ap | |
244 | 244 | else if (if ((h > 1)) | |
245 | 245 | then (ar == am) | |
246 | 246 | else false) | |
247 | 247 | then as | |
248 | 248 | else if (if ((h > 2)) | |
249 | 249 | then (au == am) | |
250 | 250 | else false) | |
251 | 251 | then av | |
252 | 252 | else unit | |
253 | 253 | } | |
254 | 254 | ||
255 | 255 | ||
256 | 256 | @Callable(ah) | |
257 | 257 | func claimLP (aw) = { | |
258 | 258 | let ax = aj(ah) | |
259 | 259 | if ((ax == ax)) | |
260 | 260 | then { | |
261 | 261 | let x = Address(aw) | |
262 | 262 | let ay = valueOrElse(getInteger(U, w(x)), 0) | |
263 | 263 | let az = valueOrElse(getInteger(U, y(x)), 0) | |
264 | 264 | let aA = if ((ay > 0)) | |
265 | 265 | then [invoke(U, "transferAsset", [aw, ay, Y], nil), invoke(U, "integerEntry", [w(x), 0], nil), invoke(U, "integerEntry", [y(x), (az + ay)], nil)] | |
266 | 266 | else i("nothing to claim") | |
267 | 267 | $Tuple2(nil, aA) | |
268 | 268 | } | |
269 | 269 | else throw("Strict value is not equal to itself.") | |
270 | 270 | } | |
271 | 271 | ||
272 | 272 | ||
273 | 273 | ||
274 | 274 | @Callable(ah) | |
275 | 275 | func finalize (aw,aB,aC,aD) = { | |
276 | 276 | let ax = aj(ah) | |
277 | 277 | if ((ax == ax)) | |
278 | 278 | then { | |
279 | 279 | let aE = valueOrErrorMessage(getInteger(U, z()), g("invalid period")) | |
280 | 280 | let aF = valueOrErrorMessage(getInteger(U, D()), g("invalid period length")) | |
281 | 281 | let aG = valueOrErrorMessage(getInteger(U, C(aE)), g("invalid start height")) | |
282 | 282 | let aH = valueOrErrorMessage(getInteger(U, A(aE)), g("invalid price")) | |
283 | 283 | let aI = valueOrErrorMessage(getInteger(U, F()), g("invalid next block to process")) | |
284 | 284 | let aJ = ((aG + aF) - 1) | |
285 | 285 | let aK = [if ((ah.originCaller == ac)) | |
286 | 286 | then true | |
287 | 287 | else i("permission denied"), if ((aI > aJ)) | |
288 | 288 | then true | |
289 | 289 | else i("unprocessed blocks"), if ((aB >= 0)) | |
290 | 290 | then true | |
291 | 291 | else i("invalid new treasury volume"), if ((aC >= 0)) | |
292 | 292 | then true | |
293 | 293 | else i("invalid PWR managers bonus"), if (if ((aD >= -(c))) | |
294 | 294 | then (c >= aD) | |
295 | 295 | else false) | |
296 | 296 | then true | |
297 | 297 | else i("invalid treasury volume diff allocation coefficient")] | |
298 | 298 | if ((aK == aK)) | |
299 | 299 | then { | |
300 | 300 | let aL = valueOrElse(getInteger(U, v(unit)), 0) | |
301 | 301 | let aM = valueOrElse(getInteger(U, u(unit)), 0) | |
302 | 302 | let aN = (aL + aM) | |
303 | 303 | let aO = (aB - aN) | |
304 | 304 | let aP = if (if ((aO > 0)) | |
305 | 305 | then (aO >= aC) | |
306 | 306 | else false) | |
307 | 307 | then aC | |
308 | 308 | else 0 | |
309 | 309 | let aQ = (aO - aP) | |
310 | 310 | let aR = if ((aN > 0)) | |
311 | 311 | then fraction(aL, c, aN) | |
312 | 312 | else 0 | |
313 | 313 | let aS = fraction(aQ, aR, c) | |
314 | 314 | let aT = (aQ - aS) | |
315 | 315 | let aU = n(aD) | |
316 | 316 | let aV = fraction(aT, if ((0 > aD)) | |
317 | 317 | then aU | |
318 | 318 | else 0, c) | |
319 | 319 | let aW = fraction(aS, if ((aD > 0)) | |
320 | 320 | then aU | |
321 | 321 | else 0, c) | |
322 | 322 | let aX = ((aS - aW) + aV) | |
323 | 323 | let aY = ((aT - aV) + aW) | |
324 | - | let aZ = (aM + aY) | |
325 | - | let ba = (aL + aX) | |
326 | - | let bb = (aE + 1) | |
327 | - | let bc = valueOrErrorMessage(assetInfo(Y), g("invalid lpAsset info")).quantity | |
328 | - | let bd = fraction(aZ, c, bc) | |
329 | - | let be = valueOrElse(getInteger(U, I()), 0) | |
330 | - | let bf = max([0, fraction(be, bd, c)]) | |
331 | - | let bg = if ((size(ah.payments) > 0)) | |
324 | + | let aZ = (aL + aX) | |
325 | + | let ba = (aM + aY) | |
326 | + | let bb = min([0, aZ]) | |
327 | + | let bc = min([0, ba]) | |
328 | + | let bd = (max([0, aZ]) + bc) | |
329 | + | let be = (max([0, ba]) + bb) | |
330 | + | let bf = (aE + 1) | |
331 | + | let bg = valueOrErrorMessage(assetInfo(Y), g("invalid lpAsset info")).quantity | |
332 | + | let bh = fraction(be, c, bg) | |
333 | + | let bi = valueOrElse(getInteger(U, I()), 0) | |
334 | + | let bj = max([0, fraction(bi, bh, c)]) | |
335 | + | let bk = if ((size(ah.payments) > 0)) | |
332 | 336 | then ah.payments[0] | |
333 | 337 | else unit | |
334 | - | let | |
335 | - | let | |
336 | - | let | |
338 | + | let bl = value(bk).amount | |
339 | + | let bm = value(bk).assetId | |
340 | + | let bn = if (if ((bj == 0)) | |
337 | 341 | then true | |
338 | - | else if (if (( | |
339 | - | then ( | |
342 | + | else if (if ((bk != unit)) | |
343 | + | then (bm == unit) | |
340 | 344 | else false) | |
341 | - | then ( | |
345 | + | then (bl >= bj) | |
342 | 346 | else false) | |
343 | 347 | then true | |
344 | - | else i(("invalid payments, payment amount min: " + toString( | |
345 | - | if (( | |
348 | + | else i(("invalid payments, payment amount min: " + toString(bj))) | |
349 | + | if ((bn == bn)) | |
346 | 350 | then { | |
347 | - | let | |
348 | - | then [ScriptTransfer(U, | |
351 | + | let bo = if ((bk != unit)) | |
352 | + | then [ScriptTransfer(U, bl, bm)] | |
349 | 353 | else nil | |
350 | - | let aA = [invoke(U, "integerEntry", [z(), | |
351 | - | $Tuple2( | |
354 | + | let aA = [invoke(U, "integerEntry", [z(), bf], nil), invoke(U, "integerEntry", [A(bf), bh], nil), invoke(U, "integerEntry", [C(bf), (aJ + 1)], nil), invoke(U, "burn", [bi], nil), invoke(U, "integerEntry", [I(), 0], nil), invoke(U, "integerEntry", [u(unit), be], nil), invoke(U, "integerEntry", [v(unit), bd], nil)] | |
355 | + | $Tuple2(bo, aA) | |
352 | 356 | } | |
353 | 357 | else throw("Strict value is not equal to itself.") | |
354 | 358 | } | |
355 | 359 | else throw("Strict value is not equal to itself.") | |
356 | 360 | } | |
357 | 361 | else throw("Strict value is not equal to itself.") | |
358 | 362 | } | |
359 | 363 | ||
360 | 364 | ||
361 | 365 | ||
362 | 366 | @Callable(ah) | |
363 | 367 | func invest (aw) = { | |
364 | 368 | let ax = aj(ah) | |
365 | 369 | if ((ax == ax)) | |
366 | 370 | then { | |
367 | 371 | let x = Address(aw) | |
368 | 372 | let aE = valueOrErrorMessage(getInteger(U, z()), g("invalid period")) | |
369 | 373 | let aH = valueOrErrorMessage(getInteger(U, A(aE)), g("invalid price")) | |
370 | - | let | |
374 | + | let bp = if ((size(ah.payments) == 1)) | |
371 | 375 | then ah.payments[0] | |
372 | 376 | else i("invalid payments") | |
373 | - | let | |
374 | - | then ( | |
377 | + | let bq = if (if ((bp.assetId == unit)) | |
378 | + | then (bp.amount > 0) | |
375 | 379 | else false) | |
376 | - | then $Tuple2( | |
380 | + | then $Tuple2(bp.amount, bp.assetId) | |
377 | 381 | else i("invalid payment amount") | |
378 | - | let | |
379 | - | let | |
382 | + | let bl = bq._1 | |
383 | + | let bm = bq._2 | |
380 | 384 | let N = if ((aH > 0)) | |
381 | - | then fraction( | |
385 | + | then fraction(bl, c, aH) | |
382 | 386 | else 0 | |
383 | - | let | |
384 | - | let | |
385 | - | let aA = [invoke(U, "integerEntry", [u(unit), ( | |
386 | - | $Tuple2( | |
387 | + | let br = valueOrElse(getInteger(U, u(unit)), 0) | |
388 | + | let bo = [ScriptTransfer(ac, bl, bm)] | |
389 | + | let aA = [invoke(U, "integerEntry", [u(unit), (br + bl)], nil), invoke(U, "reissue", [N], nil), invoke(U, "transferAsset", [aw, N, Y], nil)] | |
390 | + | $Tuple2(bo, aA) | |
387 | 391 | } | |
388 | 392 | else throw("Strict value is not equal to itself.") | |
389 | 393 | } | |
390 | 394 | ||
391 | 395 | ||
392 | 396 | ||
393 | 397 | @Callable(ah) | |
394 | 398 | func withdraw (aw) = { | |
395 | 399 | let ax = aj(ah) | |
396 | 400 | if ((ax == ax)) | |
397 | 401 | then { | |
398 | 402 | let x = Address(aw) | |
399 | 403 | let aE = valueOrErrorMessage(getInteger(U, z()), g("invalid period")) | |
400 | - | let | |
404 | + | let bp = if ((size(ah.payments) == 1)) | |
401 | 405 | then ah.payments[0] | |
402 | 406 | else i(g("invalid payments")) | |
403 | - | let | |
407 | + | let bm = if ((bp.assetId == Y)) | |
404 | 408 | then Y | |
405 | 409 | else i("invalid payment asset") | |
406 | - | let | |
407 | - | then | |
410 | + | let bl = if ((bp.amount > 0)) | |
411 | + | then bp.amount | |
408 | 412 | else i("invalid payment amount") | |
409 | - | let | |
410 | - | let | |
411 | - | let aA = [invoke(U, "integerEntry", [I(), ( | |
413 | + | let bs = valueOrElse(getInteger(U, I()), 0) | |
414 | + | let bo = [ScriptTransfer(U, bl, bm)] | |
415 | + | let aA = [invoke(U, "integerEntry", [I(), (bs + bl)], nil), invoke(U, "stringEntry", [J(x, ah.transactionId), L(d, bl, (aE + 1), unit)], nil)] | |
412 | 416 | if ((aA == aA)) | |
413 | - | then $Tuple2( | |
417 | + | then $Tuple2(bo, aA) | |
414 | 418 | else throw("Strict value is not equal to itself.") | |
415 | 419 | } | |
416 | 420 | else throw("Strict value is not equal to itself.") | |
417 | 421 | } | |
418 | 422 | ||
419 | 423 | ||
420 | 424 | ||
421 | 425 | @Callable(ah) | |
422 | 426 | func cancelWithdraw (aw,K) = { | |
423 | 427 | let ax = aj(ah) | |
424 | 428 | if ((ax == ax)) | |
425 | 429 | then { | |
426 | 430 | let x = Address(aw) | |
427 | - | let | |
431 | + | let bt = valueOrErrorMessage(getString(U, J(x, K)), g("invalid withdrawal request")) | |
428 | 432 | let aE = valueOrErrorMessage(getInteger(U, z()), g("invalid period")) | |
429 | - | let | |
430 | - | let M = | |
431 | - | let N = | |
432 | - | let O = | |
433 | - | let P = | |
433 | + | let bu = R(bt) | |
434 | + | let M = bu._1 | |
435 | + | let N = bu._2 | |
436 | + | let O = bu._3 | |
437 | + | let P = bu._4 | |
434 | 438 | let aK = [if ((M == d)) | |
435 | 439 | then true | |
436 | 440 | else i("invalid withdrawal request status"), if ((O > aE)) | |
437 | 441 | then true | |
438 | 442 | else i("invalid withdrawal request period")] | |
439 | 443 | if ((aK == aK)) | |
440 | 444 | then { | |
441 | - | let | |
442 | - | let aA = [invoke(U, "integerEntry", [I(), if (( | |
443 | - | then ( | |
445 | + | let bs = valueOrErrorMessage(getInteger(U, I()), g("invalid total withdrawal amount")) | |
446 | + | let aA = [invoke(U, "integerEntry", [I(), if ((bs >= N)) | |
447 | + | then (bs - N) | |
444 | 448 | else i("invalid withdrawal amount")], nil), invoke(U, "deleteEntry", [J(x, K)], nil), invoke(U, "transferAsset", [aw, N, Y], nil)] | |
445 | 449 | if ((aA == aA)) | |
446 | 450 | then $Tuple2(nil, aA) | |
447 | 451 | else throw("Strict value is not equal to itself.") | |
448 | 452 | } | |
449 | 453 | else throw("Strict value is not equal to itself.") | |
450 | 454 | } | |
451 | 455 | else throw("Strict value is not equal to itself.") | |
452 | 456 | } | |
453 | 457 | ||
454 | 458 | ||
455 | 459 | ||
456 | 460 | @Callable(ah) | |
457 | 461 | func claimWaves (aw,K) = { | |
458 | 462 | let ax = aj(ah) | |
459 | 463 | if ((ax == ax)) | |
460 | 464 | then { | |
461 | 465 | let x = Address(aw) | |
462 | 466 | let aE = valueOrErrorMessage(getInteger(U, z()), g("invalid period")) | |
463 | - | let | |
464 | - | let | |
465 | - | let M = | |
466 | - | let N = | |
467 | - | let O = | |
468 | - | let P = | |
467 | + | let bt = valueOrErrorMessage(getString(U, J(x, K)), g("invalid withdrawal request")) | |
468 | + | let bv = R(bt) | |
469 | + | let M = bv._1 | |
470 | + | let N = bv._2 | |
471 | + | let O = bv._3 | |
472 | + | let P = bv._4 | |
469 | 473 | if ((M == e)) | |
470 | 474 | then i("invalid withdrawal request status") | |
471 | 475 | else if ((O > aE)) | |
472 | 476 | then i("invalid withdrawal request period") | |
473 | 477 | else { | |
474 | - | let | |
475 | - | let | |
476 | - | then fraction(N, | |
478 | + | let bw = valueOrErrorMessage(getInteger(U, A(O)), g("invalid price")) | |
479 | + | let bx = if ((bw > 0)) | |
480 | + | then fraction(N, bw, c) | |
477 | 481 | else 0 | |
478 | - | let aA = [invoke(U, "stringEntry", [J(x, K), L(e, N, O, ah.transactionId)], nil), invoke(U, "transferWaves", [aw, | |
482 | + | let aA = [invoke(U, "stringEntry", [J(x, K), L(e, N, O, ah.transactionId)], nil), invoke(U, "transferWaves", [aw, bx], nil)] | |
479 | 483 | $Tuple2(nil, aA) | |
480 | 484 | } | |
481 | 485 | } | |
482 | 486 | else throw("Strict value is not equal to itself.") | |
483 | 487 | } | |
484 | 488 | ||
485 | 489 | ||
486 | 490 | ||
487 | 491 | @Callable(ah) | |
488 | 492 | func processBlocks (aw) = { | |
489 | 493 | let ax = aj(ah) | |
490 | 494 | if ((ax == ax)) | |
491 | 495 | then { | |
492 | 496 | let x = Address(aw) | |
493 | 497 | let aE = valueOrErrorMessage(getInteger(U, z()), g("invalid period")) | |
494 | 498 | let aF = valueOrErrorMessage(getInteger(U, D()), g("invalid period length")) | |
495 | 499 | let aG = valueOrErrorMessage(getInteger(U, C(aE)), g("invalid start height")) | |
496 | 500 | let aH = valueOrErrorMessage(getInteger(U, A(aE)), g("invalid price")) | |
497 | 501 | let aI = valueOrErrorMessage(getInteger(U, F()), g("invalid next block to process")) | |
498 | 502 | let aJ = ((aG + aF) - 1) | |
499 | - | let | |
500 | - | let | |
503 | + | let by = 40 | |
504 | + | let bz = if (if (if ((height >= aI)) | |
501 | 505 | then if ((aI >= aG)) | |
502 | 506 | then true | |
503 | 507 | else (aE == 0) | |
504 | 508 | else false) | |
505 | 509 | then (aJ >= aI) | |
506 | 510 | else false) | |
507 | - | then min([((aJ - aI) + 1), | |
511 | + | then min([((aJ - aI) + 1), by]) | |
508 | 512 | else i(g("invalid target block")) | |
509 | - | let | |
510 | - | let | |
511 | - | let | |
512 | - | func | |
513 | - | then | |
513 | + | let bA = valueOrErrorMessage(getInteger(U, E()), g("invalid block processing reward")) | |
514 | + | let bB = (bA / bz) | |
515 | + | let bC = (bA - (bB * bz)) | |
516 | + | func bD (bE,bF) = if ((bF >= bz)) | |
517 | + | then bE | |
514 | 518 | else { | |
515 | - | let | |
516 | - | let | |
517 | - | let | |
518 | - | let | |
519 | - | let ay = valueOrElse(getInteger(U, w( | |
520 | - | let | |
521 | - | then ( | |
522 | - | else | |
519 | + | let bG = (aI + bF) | |
520 | + | let bH = valueOrErrorMessage(blockInfoByHeight(bG), g("invalid block info")) | |
521 | + | let bI = valueOrErrorMessage(ak(bH.rewards, aa), g(("invalid treasury reward for height " + toString(bG)))) | |
522 | + | let bJ = bH.generator | |
523 | + | let ay = valueOrElse(getInteger(U, w(bJ)), 0) | |
524 | + | let bK = if ((bF == (bz - 1))) | |
525 | + | then (bB + bC) | |
526 | + | else bB | |
523 | 527 | let N = if ((aH > 0)) | |
524 | - | then fraction(( | |
528 | + | then fraction((bI - bK), c, aH) | |
525 | 529 | else 0 | |
526 | - | let | |
527 | - | if (( | |
530 | + | let bL = [invoke(U, "stringEntry", [G(bG), makeString([toBase58String(ah.transactionId), toString(aE), toString(bJ), toBase58String(aw), toString(bI), toString(bK), toString(N)], a)], nil), invoke(U, "integerEntry", [w(bJ), (ay + N)], nil)] | |
531 | + | if ((bL == bL)) | |
528 | 532 | then { | |
529 | - | let | |
530 | - | let | |
531 | - | let | |
532 | - | $Tuple2(( | |
533 | + | let bM = bE | |
534 | + | let bN = bM._1 | |
535 | + | let bO = bM._2 | |
536 | + | $Tuple2((bN + N), (bO + bI)) | |
533 | 537 | } | |
534 | 538 | else throw("Strict value is not equal to itself.") | |
535 | 539 | } | |
536 | 540 | ||
537 | - | let | |
538 | - | let | |
539 | - | let | |
540 | - | let | |
541 | - | let | |
542 | - | func | |
543 | - | then | |
544 | - | else | |
541 | + | let bP = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39] | |
542 | + | let bQ = { | |
543 | + | let bR = bP | |
544 | + | let bS = size(bR) | |
545 | + | let bT = $Tuple2(0, 0) | |
546 | + | func bU (bV,bW) = if ((bW >= bS)) | |
547 | + | then bV | |
548 | + | else bD(bV, bR[bW]) | |
545 | 549 | ||
546 | - | func | |
547 | - | then | |
550 | + | func bX (bV,bW) = if ((bW >= bS)) | |
551 | + | then bV | |
548 | 552 | else throw("List size exceeds 40") | |
549 | 553 | ||
550 | - | bT | |
554 | + | bX(bU(bU(bU(bU(bU(bU(bU(bU(bU(bU(bU(bU(bU(bU(bU(bU(bU(bU(bU(bU(bU(bU(bU(bU(bU(bU(bU(bU(bU(bU(bU(bU(bU(bU(bU(bU(bU(bU(bU(bU(bT, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20), 21), 22), 23), 24), 25), 26), 27), 28), 29), 30), 31), 32), 33), 34), 35), 36), 37), 38), 39), 40) | |
551 | 555 | } | |
552 | - | if (( | |
556 | + | if ((bQ == bQ)) | |
553 | 557 | then { | |
554 | - | let | |
555 | - | let | |
556 | - | let | |
557 | - | let | |
558 | - | let | |
559 | - | if (( | |
558 | + | let bY = bQ._2 | |
559 | + | let bZ = bQ._1 | |
560 | + | let ca = (bY - bA) | |
561 | + | let br = valueOrElse(getInteger(U, u(unit)), 0) | |
562 | + | let bo = [invoke(U, "reissue", [bZ], nil), invoke(U, "integerEntry", [F(), (aI + bz)], nil), invoke(U, "transferFromProxyTreasury", [ac.bytes, ca], nil), invoke(U, "transferFromProxyTreasury", [aw, bA], nil), invoke(U, "integerEntry", [u(unit), (br + ca)], nil)] | |
563 | + | if ((bo == bo)) | |
560 | 564 | then $Tuple2(nil, unit) | |
561 | 565 | else throw("Strict value is not equal to itself.") | |
562 | 566 | } | |
563 | 567 | else throw("Strict value is not equal to itself.") | |
564 | 568 | } | |
565 | 569 | else throw("Strict value is not equal to itself.") | |
566 | 570 | } | |
567 | 571 | ||
568 | 572 | ||
569 | - | @Verifier( | |
570 | - | func | |
571 | - | let | |
573 | + | @Verifier(cb) | |
574 | + | func cc () = { | |
575 | + | let cd = { | |
572 | 576 | let l = ad() | |
573 | 577 | if ($isInstanceOf(l, "ByteVector")) | |
574 | 578 | then { | |
575 | 579 | let af = l | |
576 | 580 | af | |
577 | 581 | } | |
578 | - | else | |
582 | + | else cb.senderPublicKey | |
579 | 583 | } | |
580 | - | sigVerify( | |
584 | + | sigVerify(cb.bodyBytes, cb.proofs[0], cd) | |
581 | 585 | } | |
582 | 586 |
github/deemru/w8io/026f985 131.32 ms ◑