tx · B6wC7JkSMgVMpGyaJEVpjSDZUvjA6atgfQxy41Ap8gS5 3Muh4FMqQEciR4eM8aRSHaeSsezQpwgsewY: -0.01000000 Waves 2023.01.10 13:04 [2398699] smart account 3Muh4FMqQEciR4eM8aRSHaeSsezQpwgsewY > SELF 0.00000000 Waves
{ "type": 13, "id": "B6wC7JkSMgVMpGyaJEVpjSDZUvjA6atgfQxy41Ap8gS5", "fee": 1000000, "feeAssetId": null, "timestamp": 1673345091386, "version": 2, "chainId": 84, "sender": "3Muh4FMqQEciR4eM8aRSHaeSsezQpwgsewY", "senderPublicKey": "AbKSXC77cdmH8X3UJXcPzxsXqAX2mr2mkYZRjfRBQ7te", "proofs": [ "3DscRqcynQnPGg1BkwAPwp1Jo7MYFUCKotVvC2EbQsZ1WRxSAkJCKjkq2c94odDQkbZrmWryBLbMsKdAnC7ZjNj2" ], "script": "base64:AAIFAAAAAAAAAAQIAhIAAAAABAAAAAAOc3RhcnRFbWlzc2lvbkgAAAAAAAAckecAAAAAEHN3b3BZZWFyRW1pc3Npb24AAABa8xB6QAAAAAAADWJsb2Nrc1BlclllYXIAAAAAAAAIB/oBAAAAEmdldFJld2FyZHNQZXJCbG9jawAAAAAEAAAAD2VtaXNzaW9uUGVyaW9kcwkAAGkAAAACCQAAZQAAAAIFAAAABmhlaWdodAUAAAAOc3RhcnRFbWlzc2lvbkgFAAAADWJsb2Nrc1BlclllYXIKAQAAAAxjYWxjRW1pc3Npb24AAAACAAAAA2FjYwAAAAFpBAAAAAkkdDA0MDQ0NDEFAAAAA2FjYwQAAAALY3VyRW1pc3Npb24IBQAAAAkkdDA0MDQ0NDEAAAACXzEEAAAADHByZXZFbWlzc2lvbggFAAAACSR0MDQwNDQ0MQAAAAJfMgMJAABmAAAAAgUAAAAPZW1pc3Npb25QZXJpb2RzBQAAAAFpCQAFFAAAAAIJAABrAAAAAwUAAAALY3VyRW1pc3Npb24AAAAAAAAAAEsAAAAAAAAAAGQFAAAAC2N1ckVtaXNzaW9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AAAEJAARMAAAAAgkBAAAADlNjcmlwdFRyYW5zZmVyAAAAAwgFAAAAAWkAAAAGY2FsbGVyAAAAAAAAAAABBQAAAAdhc3NldElkBQAAAANuaWwAAAABAAAAAnR4AQAAAAZ2ZXJpZnkAAAAACQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAgFAAAAAnR4AAAAD3NlbmRlclB1YmxpY0tlee6OOEY=", "height": 2398699, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 5XpXqnX7REsK9MvPyxmz7vPFZPJy9yfjuo9teboMyY3R Next: HGQ7biNoVWuW69QqdJ8uGfKN5pPz2a1B3FbW2rRLxgGU Diff:
Old | New | Differences | |
---|---|---|---|
13 | 13 | let $t0404441 = acc | |
14 | 14 | let curEmission = $t0404441._1 | |
15 | 15 | let prevEmission = $t0404441._2 | |
16 | - | if (( | |
16 | + | if ((emissionPeriods > i)) | |
17 | 17 | then $Tuple2(fraction(curEmission, 75, 100), curEmission) | |
18 | 18 | else $Tuple2(curEmission, prevEmission) | |
19 | 19 | } |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let startEmissionH = 1872359 | |
5 | 5 | ||
6 | 6 | let swopYearEmission = 100000000000000 | |
7 | 7 | ||
8 | 8 | let blocksPerYear = 526330 | |
9 | 9 | ||
10 | 10 | func getRewardsPerBlock () = { | |
11 | 11 | let emissionPeriods = ((height - startEmissionH) / blocksPerYear) | |
12 | 12 | func calcEmission (acc,i) = { | |
13 | 13 | let $t0404441 = acc | |
14 | 14 | let curEmission = $t0404441._1 | |
15 | 15 | let prevEmission = $t0404441._2 | |
16 | - | if (( | |
16 | + | if ((emissionPeriods > i)) | |
17 | 17 | then $Tuple2(fraction(curEmission, 75, 100), curEmission) | |
18 | 18 | else $Tuple2(curEmission, prevEmission) | |
19 | 19 | } | |
20 | 20 | ||
21 | 21 | let $l = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19] | |
22 | 22 | let $s = size($l) | |
23 | 23 | let $acc0 = $Tuple2(swopYearEmission, swopYearEmission) | |
24 | 24 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
25 | 25 | then $a | |
26 | 26 | else calcEmission($a, $l[$i]) | |
27 | 27 | ||
28 | 28 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
29 | 29 | then $a | |
30 | 30 | else throw("List size exceeds 20") | |
31 | 31 | ||
32 | 32 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20) | |
33 | 33 | } | |
34 | 34 | ||
35 | 35 | ||
36 | 36 | @Callable(i) | |
37 | 37 | func call () = { | |
38 | 38 | let asset = Issue("Asset", "", 1, 0, true, unit, 0) | |
39 | 39 | let assetId = calculateAssetId(asset) | |
40 | 40 | [BinaryEntry("bin", base58''), BooleanEntry("bool", true), IntegerEntry("int", 1), StringEntry("str", ""), DeleteEntry("str"), asset, Reissue(assetId, 1, false), Burn(assetId, 1), ScriptTransfer(i.caller, 1, assetId)] | |
41 | 41 | } | |
42 | 42 | ||
43 | 43 | ||
44 | 44 | @Verifier(tx) | |
45 | 45 | func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) | |
46 | 46 |
github/deemru/w8io/169f3d6 26.86 ms ◑