tx · GJKQucaJxpvGSKW9PXakFKusttYosYYXoCxFNQcwthJQ 3Muh4FMqQEciR4eM8aRSHaeSsezQpwgsewY: -0.01000000 Waves 2023.01.10 13:12 [2398711] smart account 3Muh4FMqQEciR4eM8aRSHaeSsezQpwgsewY > SELF 0.00000000 Waves
{ "type": 13, "id": "GJKQucaJxpvGSKW9PXakFKusttYosYYXoCxFNQcwthJQ", "fee": 1000000, "feeAssetId": null, "timestamp": 1673345612887, "version": 2, "chainId": 84, "sender": "3Muh4FMqQEciR4eM8aRSHaeSsezQpwgsewY", "senderPublicKey": "AbKSXC77cdmH8X3UJXcPzxsXqAX2mr2mkYZRjfRBQ7te", "proofs": [ "5LFFm9usSSAide8WqjxVAZogHuAGGpM2grVdW16LvomjKkayXmFbeYUqMvcMh2tPTb3PJMYK5dE8SvLvB4KD5XZt" ], "script": "base64:AAIFAAAAAAAAAAIIAgAAAAQAAAAADnN0YXJ0RW1pc3Npb25IAAAAAAAAHJH/AAAAABBzd29wWWVhckVtaXNzaW9uAAAAWvMQekAAAAAAAA1ibG9ja3NQZXJZZWFyAAAAAAAACAf6AQAAABJnZXRSZXdhcmRzUGVyQmxvY2sAAAAABAAAAA9lbWlzc2lvblBlcmlvZHMJAABpAAAAAgkAAGUAAAACBQAAAAZoZWlnaHQFAAAADnN0YXJ0RW1pc3Npb25IBQAAAA1ibG9ja3NQZXJZZWFyCgEAAAAMY2FsY0VtaXNzaW9uAAAAAgAAAANhY2MAAAABaQQAAAAJJHQwNDAzNDQwBQAAAANhY2MEAAAAC2N1ckVtaXNzaW9uCAUAAAAJJHQwNDAzNDQwAAAAAl8xBAAAAAxwcmV2RW1pc3Npb24IBQAAAAkkdDA0MDM0NDAAAAACXzIDCQAAZgAAAAIFAAAAD2VtaXNzaW9uUGVyaW9kcwUAAAABaQkABRQAAAACCQAAawAAAAMFAAAAC2N1ckVtaXNzaW9uAAAAAAAAAABLAAAAAAAAAABkBQAAAAtjdXJFbWlzc2lvbgkABRQAAAACBQA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AAAAAgkBAAAABSRmMF8xAAAAAgkBAAAABSRmMF8xAAAAAgkBAAAABSRmMF8xAAAAAgkBAAAABSRmMF8xAAAAAgkBAAAABSRmMF8xAAAAAgkBAAAABSRmMF8xAAAAAgkBAAAABSRmMF8xAAAAAgkBAAAABSRmMF8xAAAAAgkBAAAABSRmMF8xAAAAAgkBAAAABSRmMF8xAAAAAgkBAAAABSRmMF8xAAAAAgkBAAAABSRmMF8xAAAAAgUAAAAFJGFjYzAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAIAAAAAAAAAAAMAAAAAAAAAAAQAAAAAAAAAAAUAAAAAAAAAAAYAAAAAAAAAAAcAAAAAAAAAAAgAAAAAAAAAAAkAAAAAAAAAAAoAAAAAAAAAAAsAAAAAAAAAAAwAAAAAAAAAAA0AAAAAAAAAAA4AAAAAAAAAAA8AAAAAAAAAABAAAAAAAAAAABEAAAAAAAAAABIAAAAAAAAAABMAAAAAAAAAABQEAAAAC2N1ckVtaXNzaW9uCAUAAAAJJHQwNTk5NzY1AAAAAl8xBAAAAAxwcmV2RW1pc3Npb24IBQAAAAkkdDA1OTk3NjUAAAACXzIJAAUUAAAAAgkAAGkAAAACBQAAAAtjdXJFbWlzc2lvbgUAAAANYmxvY2tzUGVyWWVhcgkAAGkAAAACBQAAAAxwcmV2RW1pc3Npb24FAAAADWJsb2Nrc1BlclllYXIAAAAAAAAAAPUfVxo=", "height": 2398711, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: HGQ7biNoVWuW69QqdJ8uGfKN5pPz2a1B3FbW2rRLxgGU Next: none Diff:
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | - | let startEmissionH = | |
4 | + | let startEmissionH = 1872383 | |
5 | 5 | ||
6 | 6 | let swopYearEmission = 100000000000000 | |
7 | 7 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | - | let startEmissionH = | |
4 | + | let startEmissionH = 1872383 | |
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 $t0403440 = acc | |
14 | 14 | let curEmission = $t0403440._1 | |
15 | 15 | let prevEmission = $t0403440._2 | |
16 | 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 $t0599765 = { | |
22 | 22 | let $l = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19] | |
23 | 23 | let $s = size($l) | |
24 | 24 | let $acc0 = $Tuple2(swopYearEmission, swopYearEmission) | |
25 | 25 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
26 | 26 | then $a | |
27 | 27 | else calcEmission($a, $l[$i]) | |
28 | 28 | ||
29 | 29 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
30 | 30 | then $a | |
31 | 31 | else throw("List size exceeds 20") | |
32 | 32 | ||
33 | 33 | $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) | |
34 | 34 | } | |
35 | 35 | let curEmission = $t0599765._1 | |
36 | 36 | let prevEmission = $t0599765._2 | |
37 | 37 | $Tuple2((curEmission / blocksPerYear), (prevEmission / blocksPerYear)) | |
38 | 38 | } | |
39 | 39 | ||
40 | 40 | ||
41 | 41 |
github/deemru/w8io/169f3d6 34.60 ms ◑