tx · 8Gj7pvk4kVwwcxeKVDg81cZnoygqWjkarGn8EDqbumU1 3N7hFU6dFSFKGGwDyF9WJ1jVsrB9w8RHT37: -0.01000000 Waves 2023.03.17 23:38 [2494487] smart account 3N7hFU6dFSFKGGwDyF9WJ1jVsrB9w8RHT37 > SELF 0.00000000 Waves
{ "type": 13, "id": "8Gj7pvk4kVwwcxeKVDg81cZnoygqWjkarGn8EDqbumU1", "fee": 1000000, "feeAssetId": null, "timestamp": 1679085534366, "version": 2, "chainId": 84, "sender": "3N7hFU6dFSFKGGwDyF9WJ1jVsrB9w8RHT37", "senderPublicKey": "J6bcbr8r9usSLYw72NzzrKVCvKDDLe1uDx8bnWp3uFAV", "proofs": [ "nmz5Fzz3mhcEzjShZD7TZMcZAohueEhdsh2TR5sVCygCQEY2WPmGsRy6BxycXYqVeFBapQtgHgWkBhvemZNXB3p" ], "script": "base64:BgIHCAISAwoBCAMAB01VTFQzNlgJAKcDAQIlMTAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMAAHTVVMVDE4WAkApwMBAhMxMDAwMDAwMDAwMDAwMDAwMDAwAARFMThYCQCnAwECEzI3MTgyODE4Mjg0NTkwNDUyMzUBAWkBBWdhbW1hAQZ6U3RyMTgEA3oxOAkApwMBBQZ6U3RyMTgEA3ozNgkAuQICBQN6MTgFB01VTFQxOFgKAQVjaGFpbgIDYWNjAWkJALgCAgkAtwICBQN6MzYJALkCAgkAtgIBCQBlAgkAZAIFAWkFAWkAAQUHTVVMVDM2WAkAvAIDCQC5AgIJALYCAQkAaAIFAWkFAWkFB01VTFQzNlgFB01VTFQzNlgFA2FjYwQBZgoAAiRsCQDMCAIAHAkAzAgCABsJAMwIAgAaCQDMCAIAGQkAzAgCABgJAMwIAgAXCQDMCAIAFgkAzAgCABUJAMwIAgAUCQDMCAIAEwkAzAgCABIJAMwIAgARCQDMCAIAEAkAzAgCAA8JAMwIAgAOCQDMCAIADQkAzAgCAAwJAMwIAgALCQDMCAIACgkAzAgCAAkJAMwIAgAICQDMCAIABwkAzAgCAAYJAMwIAgAFCQDMCAIABAkAzAgCAAMJAMwIAgACCQDMCAIAAQUDbmlsCgACJHMJAJADAQUCJGwKAAUkYWNjMAUHTVVMVDM2WAoBBSRmMF8xAgIkYQIkaQMJAGcCBQIkaQUCJHMFAiRhCQEFY2hhaW4CBQIkYQkAkQMCBQIkbAUCJGkKAQUkZjBfMgICJGECJGkDCQBnAgUCJGkFAiRzBQIkYQkAAgECFExpc3Qgc2l6ZSBleGNlZWRzIDQwCQEFJGYwXzICCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECCQEFJGYwXzECBQUkYWNjMAAAAAEAAgADAAQABQAGAAcACAAJAAoACwAMAA0ADgAPABAAEQASABMAFAAVABYAFwAYABkAGgAbABwAHQAeAB8AIAAhACIAIwAkACUAJgAnACgEA2V4cAkAdgYFBEUxOFgAEgkAvgIBBQN6MTgAEgASBQZIQUxGVVAJAJQKAgUDbmlsCQDMCAIJAKYDAQkAvAIDBQNleHAFB01VTFQzNlgFAWYJAMwIAgkApgMBBQNleHAJAMwIAgkApgMBBQFmBQNuaWwA8oAEtg==", "height": 2494487, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 8THwKQcgHFsc5MvfhcZSr5AfMArVUAURGwv25MnVGCEW Next: Wm7tJxnmCueFn5aNXaUWCq2q4SF6Bf8NGrpWQ9D2VpS Diff:
Old | New | Differences | |
---|---|---|---|
14 | 14 | func chain (acc,i) = ((z36 + (toBigInt(((i + i) - 1)) * MULT36X)) - fraction((toBigInt((i * i)) * MULT36X), MULT36X, acc)) | |
15 | 15 | ||
16 | 16 | let f = { | |
17 | - | let $l = [27, 26, 25, 24, 23, 22, 21, 20, 19, 18, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1] | |
17 | + | let $l = [28, 27, 26, 25, 24, 23, 22, 21, 20, 19, 18, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1] | |
18 | 18 | let $s = size($l) | |
19 | 19 | let $acc0 = MULT36X | |
20 | 20 | func $f0_1 ($a,$i) = if (($i >= $s)) |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let MULT36X = parseBigIntValue("1000000000000000000000000000000000000") | |
5 | 5 | ||
6 | 6 | let MULT18X = parseBigIntValue("1000000000000000000") | |
7 | 7 | ||
8 | 8 | let E18X = parseBigIntValue("2718281828459045235") | |
9 | 9 | ||
10 | 10 | @Callable(i) | |
11 | 11 | func gamma (zStr18) = { | |
12 | 12 | let z18 = parseBigIntValue(zStr18) | |
13 | 13 | let z36 = (z18 * MULT18X) | |
14 | 14 | func chain (acc,i) = ((z36 + (toBigInt(((i + i) - 1)) * MULT36X)) - fraction((toBigInt((i * i)) * MULT36X), MULT36X, acc)) | |
15 | 15 | ||
16 | 16 | let f = { | |
17 | - | let $l = [27, 26, 25, 24, 23, 22, 21, 20, 19, 18, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1] | |
17 | + | let $l = [28, 27, 26, 25, 24, 23, 22, 21, 20, 19, 18, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1] | |
18 | 18 | let $s = size($l) | |
19 | 19 | let $acc0 = MULT36X | |
20 | 20 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
21 | 21 | then $a | |
22 | 22 | else chain($a, $l[$i]) | |
23 | 23 | ||
24 | 24 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
25 | 25 | then $a | |
26 | 26 | else throw("List size exceeds 40") | |
27 | 27 | ||
28 | 28 | $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($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), 21), 22), 23), 24), 25), 26), 27), 28), 29), 30), 31), 32), 33), 34), 35), 36), 37), 38), 39), 40) | |
29 | 29 | } | |
30 | 30 | let exp = pow(E18X, 18, -(z18), 18, 18, HALFUP) | |
31 | 31 | $Tuple2(nil, [toString(fraction(exp, MULT36X, f)), toString(exp), toString(f)]) | |
32 | 32 | } | |
33 | 33 | ||
34 | 34 |
github/deemru/w8io/169f3d6 43.00 ms ◑