tx · DzEczqjtCrhvmn6FYUBn76etRhsNj6p3sGG48wKMu7UD

3N7hFU6dFSFKGGwDyF9WJ1jVsrB9w8RHT37:  -0.01000000 Waves

2022.11.01 11:54 [2297828] smart account 3N7hFU6dFSFKGGwDyF9WJ1jVsrB9w8RHT37 > SELF 0.00000000 Waves

{ "type": 13, "id": "DzEczqjtCrhvmn6FYUBn76etRhsNj6p3sGG48wKMu7UD", "fee": 1000000, "feeAssetId": null, "timestamp": 1667292898958, "version": 2, "chainId": 84, "sender": "3N7hFU6dFSFKGGwDyF9WJ1jVsrB9w8RHT37", "senderPublicKey": "J6bcbr8r9usSLYw72NzzrKVCvKDDLe1uDx8bnWp3uFAV", "proofs": [ "5UAPpbQzvir6Th5QeKHaHqq7eZN4iXvHEvFpzEXxKgcBvJHfiyWjFA5E41xA994gkMu8yu4xiFrbnML8WNP9wJCp" ], "script": "base64:BgICCAIEAANPTkUJALYCAQABAAdudW1iZXJzCQDMCAIAAQkAzAgCAAIJAMwIAgADCQDMCAIABAkAzAgCAAUJAMwIAgAGCQDMCAIABwkAzAgCAAgJAMwIAgAJCQDMCAIACgkAzAgCAAsJAMwIAgAMCQDMCAIADQkAzAgCAA4JAMwIAgAPCQDMCAIAEAkAzAgCABEJAMwIAgASCQDMCAIAEwkAzAgCABQJAMwIAgAVCQDMCAIAFgkAzAgCABcJAMwIAgAYCQDMCAIAGQkAzAgCABoJAMwIAgAbCQDMCAIAHAkAzAgCAB0JAMwIAgAeCQDMCAIAHwkAzAgCACAJAMwIAgAhCQDMCAIAIgkAzAgCACMJAMwIAgAkCQDMCAIAJQkAzAgCACYJAMwIAgAnCQDMCAIAKAkAzAgCACkJAMwIAgAqCQDMCAIAKwkAzAgCACwJAMwIAgAtCQDMCAIALgkAzAgCAC8JAMwIAgAwCQDMCAIAMQkAzAgCADIJAMwIAgAzCQDMCAIANAkAzAgCADUJAMwIAgA2CQDMCAIANwkAzAgCADgJAMwIAgA5CQDMCAIAOgkAzAgCADsJAMwIAg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BBSRmMF8xAgkBBSRmMF8xAgkBBSRmMF8xAgkBBSRmMF8xAgkBBSRmMF8xAgkBBSRmMF8xAgkBBSRmMF8xAgkBBSRmMF8xAgkBBSRmMF8xAgkBBSRmMF8xAgkBBSRmMF8xAgkBBSRmMF8xAgkBBSRmMF8xAgkBBSRmMF8xAgkBBSRmMF8xAgkBBSRmMF8xAgkBBSRmMF8xAgkBBSRmMF8xAgkBBSRmMF8xAgUFJGFjYzAAAAABAAIAAwAEAAUABgAHAAgACQAKAAsADAANAA4ADwAQABEAEgATABQAFQAWABcAGAAZABoAGwAcAB0AHgAfACAAIQAiACMAJAAlACYAJwAoACkAKgArACwALQAuAC8AMAAxADIAMwA0ADUANgA3ADgAOQA6ADsAPAA9AD4APwBAAEEAQgBDAEQARQBGAEcASABJAEoASwBMAE0ATgBPAFAAUQBSAFMAVABVAFYAVwBYAFkAWgBbAFwAXQBeAF8AYABhAGIAYwgFAXgCXzEAAL+/LOg=", "height": 2297828, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: Ey3hNgnLLgh1Rrtdw9CtFmypvTKxdEozML3wcqzAgP9r Next: GP9iozU2MfvTbtZjuiiRDDDxVUDMnpD4NMfycqXshR7J Full:
OldNewDifferences
11 {-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
4-let a = parseBigIntValue("1000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000")
4+let a = toBigInt(1)
55
6-func b (c) = {
7- let d = (c._1 - a)
8- $Tuple2(d, (d + fraction(d, a, c._2)))
6+let b = [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, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99]
7+
8+let c = value(parseBigInt("10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"))
9+
10+func d () = {
11+ func e (f,g) = {
12+ let h = f
13+ let i = h._1
14+ let j = h._2
15+ let k = fraction(j, toBigInt(g), a)
16+ if ((k > c))
17+ then f
18+ else $Tuple2((i + fraction(c, a, k)), k)
19+ }
20+
21+ let l = {
22+ let m = b
23+ let n = size(m)
24+ let o = $Tuple2(c, a)
25+ func p (q,r) = if ((r >= n))
26+ then q
27+ else e(q, m[r])
28+
29+ func s (q,r) = if ((r >= n))
30+ then q
31+ else throw("List size exceeds 99")
32+
33+ s(p(p(p(p(p(p(p(p(p(p(p(p(p(p(p(p(p(p(p(p(p(p(p(p(p(p(p(p(p(p(p(p(p(p(p(p(p(p(p(p(p(p(p(p(p(p(p(p(p(p(p(p(p(p(p(p(p(p(p(p(p(p(p(p(p(p(p(p(p(p(p(p(p(p(p(p(p(p(p(p(p(p(p(p(p(p(p(p(p(p(p(p(p(p(p(p(p(p(p(o, 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), 41), 42), 43), 44), 45), 46), 47), 48), 49), 50), 51), 52), 53), 54), 55), 56), 57), 58), 59), 60), 61), 62), 63), 64), 65), 66), 67), 68), 69), 70), 71), 72), 73), 74), 75), 76), 77), 78), 79), 80), 81), 82), 83), 84), 85), 86), 87), 88), 89), 90), 91), 92), 93), 94), 95), 96), 97), 98), 99)
34+ }
35+ l._1
936 }
1037
11-
12-func e (c) = b(b(b(b(b(b(b(b(b(b(b(b(b(b(b(b(b(b(b(b(b(b(b(b(b(b(b(b(b(b(b(b(b(b(b(b(b(b(b(b(b(b(b(b(b(b(b(b(b(b(b(b(b(b(b(b(b(b(b(b(b(b(b(b(c))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))
13-
14-
15-@Callable(f)
16-func calc () = {
17- let g = ((64 * 22) + 1)
18- let h = (toBigInt(g) * a)
19- let i = ((a + a) + fraction(a, a, e(e(e(e(e(e(e(e(e(e(e(e(e(e(e(e(e(e(e(e(e(e($Tuple2(h, h)))))))))))))))))))))))._2))
20- $Tuple2(nil, toString(i))
21- }
2238
2339

github/deemru/w8io/169f3d6 
27.12 ms