tx · 8THwKQcgHFsc5MvfhcZSr5AfMArVUAURGwv25MnVGCEW 3N7hFU6dFSFKGGwDyF9WJ1jVsrB9w8RHT37: -0.01000000 Waves 2023.03.17 23:20 [2494470] smart account 3N7hFU6dFSFKGGwDyF9WJ1jVsrB9w8RHT37 > SELF 0.00000000 Waves
{ "type": 13, "id": "8THwKQcgHFsc5MvfhcZSr5AfMArVUAURGwv25MnVGCEW", "fee": 1000000, "feeAssetId": null, "timestamp": 1679084459727, "version": 2, "chainId": 84, "sender": "3N7hFU6dFSFKGGwDyF9WJ1jVsrB9w8RHT37", "senderPublicKey": "J6bcbr8r9usSLYw72NzzrKVCvKDDLe1uDx8bnWp3uFAV", "proofs": [ "27LfVGhQDYtKGVXT39ZBXnypPF5oSZfSM9z8XhQAaSLQTu7QAUe5h2Eips8FX2517ZCTJPoWrzxrLv1BNGZNvdCX" ], "script": "base64:BgIHCAISAwoBCAMAB01VTFQzNlgJAKcDAQIlMTAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMAAHTVVMVDE4WAkApwMBAhMxMDAwMDAwMDAwMDAwMDAwMDAwAARFMThYCQCnAwECEzI3MTgyODE4Mjg0NTkwNDUyMzUBAWkBBWdhbW1hAQZ6U3RyMTgEA3oxOAkApwMBBQZ6U3RyMTgEA3ozNgkAuQICBQN6MTgFB01VTFQxOFgKAQVjaGFpbgIDYWNjAWkJALgCAgkAtwICBQN6MzYJALkCAgkAtgIBCQBlAgkAZAIFAWkFAWkAAQUHTVVMVDM2WAkAvAIDCQC5AgIJALYCAQkAaAIFAWkFAWkFB01VTFQzNlgFB01VTFQzNlgFA2FjYwQBZgoAAiRsCQDMCAIAGwkAzAgCABoJAMwIAgAZCQDMCAIAGAkAzAgCABcJAMwIAgAWCQDMCAIAFQkAzAgCABQJAMwIAgATCQDMCAIAEgkAzAgCABEJAMwIAgAQCQDMCAIADwkAzAgCAA4JAMwIAgANCQDMCAIADAkAzAgCAAsJAMwIAgAKCQD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c7", "height": 2494470, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 8jEietk42gKaRpQpSfdefSo1QhrcCYQfZdxqztzqCup7 Next: 8Gj7pvk4kVwwcxeKVDg81cZnoygqWjkarGn8EDqbumU1 Diff:
Old | New | Differences | |
---|---|---|---|
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 | - | let exp = pow(E18X, 18, -( | |
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 |
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 | 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] | |
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 | - | let exp = pow(E18X, 18, -( | |
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 21.71 ms ◑