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/oBAAAAEmdldFJld2FyZHNQZXJCbG9jawAAAAAEAAAAD2VtaXNzaW9uUGVyaW9kcwkAAGkAAAACCQAAZQAAAAIFAAAABmhlaWdodAUAAAAOc3RhcnRFbWlzc2lvbkgFAAAADWJsb2Nrc1BlclllYXIKAQAAAAxjYWxjRW1pc3Npb24AAAACAAAAA2FjYwAAAAFpBAAAAAkkdDA0MDQ0NDEFAAAAA2FjYwQAAAALY3VyRW1pc3Npb24IBQAAAAkkdDA0MDQ0NDEAAAACXzEEAAAADHByZXZFbWlzc2lvbggFAAAACSR0MDQwNDQ0MQAAAAJfMgMJAABmAAAAAgUAAAAPZW1pc3Npb25QZXJpb2RzBQAAAAFpCQAFFAAAAAIJAABrAAAAAwUAAAALY3VyRW1pc3Npb24AAAAAAAAAAEsAAAAAAAAAAGQFAAAAC2N1ckVtaXNzaW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AAAAEJAARMAAAAAgkBAAAADlNjcmlwdFRyYW5zZmVyAAAAAwgFAAAAAWkAAAAGY2FsbGVyAAAAAAAAAAABBQAAAAdhc3NldElkBQAAAANuaWwAAAABAAAAAnR4AQAAAAZ2ZXJpZnkAAAAACQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAgFAAAAAnR4AAAAD3NlbmRlclB1YmxpY0tlee6OOEY=", "height": 2398699, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 5XpXqnX7REsK9MvPyxmz7vPFZPJy9yfjuo9teboMyY3R Next: HGQ7biNoVWuW69QqdJ8uGfKN5pPz2a1B3FbW2rRLxgGU Diff:
OldNewDifferences
1313 let $t0404441 = acc
1414 let curEmission = $t0404441._1
1515 let prevEmission = $t0404441._2
16- if ((i > emissionPeriods))
16+ if ((emissionPeriods > i))
1717 then $Tuple2(fraction(curEmission, 75, 100), curEmission)
1818 else $Tuple2(curEmission, prevEmission)
1919 }
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let startEmissionH = 1872359
55
66 let swopYearEmission = 100000000000000
77
88 let blocksPerYear = 526330
99
1010 func getRewardsPerBlock () = {
1111 let emissionPeriods = ((height - startEmissionH) / blocksPerYear)
1212 func calcEmission (acc,i) = {
1313 let $t0404441 = acc
1414 let curEmission = $t0404441._1
1515 let prevEmission = $t0404441._2
16- if ((i > emissionPeriods))
16+ if ((emissionPeriods > i))
1717 then $Tuple2(fraction(curEmission, 75, 100), curEmission)
1818 else $Tuple2(curEmission, prevEmission)
1919 }
2020
2121 let $l = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19]
2222 let $s = size($l)
2323 let $acc0 = $Tuple2(swopYearEmission, swopYearEmission)
2424 func $f0_1 ($a,$i) = if (($i >= $s))
2525 then $a
2626 else calcEmission($a, $l[$i])
2727
2828 func $f0_2 ($a,$i) = if (($i >= $s))
2929 then $a
3030 else throw("List size exceeds 20")
3131
3232 $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)
3333 }
3434
3535
3636 @Callable(i)
3737 func call () = {
3838 let asset = Issue("Asset", "", 1, 0, true, unit, 0)
3939 let assetId = calculateAssetId(asset)
4040 [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)]
4141 }
4242
4343
4444 @Verifier(tx)
4545 func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
4646

github/deemru/w8io/169f3d6 
26.86 ms