tx · H7171MbudBUunQ4JmeHVJZber43A2PLoLPZoLf9jqJDU 3N5HkfGrou8T5NyAuZVncnAdVuGmSHuMQ5d: -0.01000000 Waves 2023.03.21 18:59 [2499980] smart account 3N5HkfGrou8T5NyAuZVncnAdVuGmSHuMQ5d > SELF 0.00000000 Waves
{ "type": 13, "id": "H7171MbudBUunQ4JmeHVJZber43A2PLoLPZoLf9jqJDU", "fee": 1000000, "feeAssetId": null, "timestamp": 1679414391116, "version": 2, "chainId": 84, "sender": "3N5HkfGrou8T5NyAuZVncnAdVuGmSHuMQ5d", "senderPublicKey": "AZLzseQJi9XUNNp7cN6jwqDdSmQvDPNNqu7aQ6ujbsnJ", "proofs": [ "4ZduZEAUEoMgXwAp3YqJGPniXWSwGC5U957VZd52ec6cEjZsGkEm2nCQPvzrGEV2Fa5FFuiwaFP5LpZG4EiZJY68" ], "script": "base64:BgIJCAISBQoDAQEBDgAGc2NhbGU4AIDC1y8ADHNjYWxlOEJpZ0ludAkAtgIBAIDC1y8AB3NjYWxlMTgJALYCAQCAgJC7utat8A0ACnplcm9CaWdJbnQJALYCAQAAAARiaWcwCQC2AgEAAAAEYmlnMQkAtgIBAAEABGJpZzIJALYCAQACAARiaWczCQC2AgEAAwAEYmlnNAkAtgIBAAQABUFtdWx0AgMxMDAAAUECBDEwMDABBGdldEQBAnhwBAN4cDAJAJEDAgUCeHAAAAQDeHAxCQCRAwIFAnhwAAEEAXMJALcCAgUDeHAwBQN4cDEDCQAAAgUBcwUEYmlnMAUEYmlnMAQBYQkBDXBhcnNlSW50VmFsdWUBBQFBBANhbm4JAGgCBQFhAAIEAXAJALwCAwUDeHAwBQN4cDEFBGJpZzEEC3hwMF94cDFfbl9uCQC8AgMFAXAFBGJpZzQFBGJpZzEEBWFubl9zCQC8AgMJALYCAQUDYW5uBQFzBQRiaWcxBAVhbm5fMQkAtgIBCQBlAgUDYW5uAAEKAQljYWxjRE5leHQBAWQEAmRkCQC8AgMFAWQFAWQFBGJpZzEEA2RkZ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W9uCQCnAwEFBUFtdWx0BAFhCQC5AgIJAKcDAQUBQQUKYVByZWNpc2lvbgQBeAkAtgIBCQBkAgUEYmFsQQUDYUluBAFzBQF4BANhbm4JALkCAgUBYQUBbgQBYwkAugICCQC5AgIJALkCAgkAugICCQC5AgIFAUQFAUQJALkCAgUBeAUBbgUBRAUKYVByZWNpc2lvbgkAuQICBQNhbm4FAW4EAWIJALgCAgkAtwICBQFzCQC6AgIJALkCAgUBRAUKYVByZWNpc2lvbgUDYW5uBQFECQDMCAIJAQxJbnRlZ2VyRW50cnkCAgFECQCgAwEFAUQJAMwIAgkBDEludGVnZXJFbnRyeQICAVkJAKADAQUBeQkAzAgCCQEMSW50ZWdlckVudHJ5AgICZHkJAKADAQUCZHkJAMwIAgkBDEludGVnZXJFbnRyeQICC3RvdGFsR2V0UmF3BQt0b3RhbEdldFJhdwkAzAgCCQELU3RyaW5nRW50cnkCAgNfZGQJAKwCAgkArAICCQCsAgIJAKwCAgkArAICCQCsAgIJAKwCAgkArAICCQCsAgIJAKwCAgkApgMBBQFhAgEvCQCmAwEFAXgCAS8JAKYDAQUBcwIBLwkApgMBBQNhbm4CAS8JAKYDAQUBYwIBLwkApgMBBQFiCQDMCAIJAQtEZWxldGVFbnRyeQECAXAJAMwIAgkBC0RlbGV0ZUVudHJ5AQILeHAwX3hwMV9uX24FA25pbAECdHgBBnZlcmlmeQAGeqH/QA==", "height": 2499980, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: EUqjeHeERkr9K5KRoQoC9DudxC2km1R6U4jqgWNjk8R Next: none Diff:
Old | New | Differences | |
---|---|---|---|
140 | 140 | let af = T(U, toBigInt(aj), toBigInt(ak), toBigInt(al)) | |
141 | 141 | let am = ((toBigInt(al) - af) - toBigInt(1)) | |
142 | 142 | let an = max([0, toInt(am)]) | |
143 | - | [IntegerEntry("D", toInt(U)), IntegerEntry("Y", toInt(af)), IntegerEntry("dy", toInt(am)), IntegerEntry("totalGetRaw", an), DeleteEntry("p"), DeleteEntry("xp0_xp1_n_n")] | |
143 | + | let Y = g | |
144 | + | let Z = parseBigIntValue(j) | |
145 | + | let q = (parseBigIntValue(k) * Z) | |
146 | + | let aa = toBigInt((ak + aj)) | |
147 | + | let p = aa | |
148 | + | let r = (q * Y) | |
149 | + | let ab = (((((U * U) / (aa * Y)) * U) * Z) / (r * Y)) | |
150 | + | let ac = ((p + ((U * Z) / r)) - U) | |
151 | + | [IntegerEntry("D", toInt(U)), IntegerEntry("Y", toInt(af)), IntegerEntry("dy", toInt(am)), IntegerEntry("totalGetRaw", an), StringEntry("_dd", ((((((((((toString(q) + "/") + toString(aa)) + "/") + toString(p)) + "/") + toString(r)) + "/") + toString(ab)) + "/") + toString(ac))), DeleteEntry("p"), DeleteEntry("xp0_xp1_n_n")] | |
144 | 152 | } | |
145 | 153 | ||
146 | 154 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = 100000000 | |
5 | 5 | ||
6 | 6 | let b = toBigInt(100000000) | |
7 | 7 | ||
8 | 8 | let c = toBigInt(1000000000000000000) | |
9 | 9 | ||
10 | 10 | let d = toBigInt(0) | |
11 | 11 | ||
12 | 12 | let e = toBigInt(0) | |
13 | 13 | ||
14 | 14 | let f = toBigInt(1) | |
15 | 15 | ||
16 | 16 | let g = toBigInt(2) | |
17 | 17 | ||
18 | 18 | let h = toBigInt(3) | |
19 | 19 | ||
20 | 20 | let i = toBigInt(4) | |
21 | 21 | ||
22 | 22 | let j = "100" | |
23 | 23 | ||
24 | 24 | let k = "1000" | |
25 | 25 | ||
26 | 26 | func l (m) = { | |
27 | 27 | let n = m[0] | |
28 | 28 | let o = m[1] | |
29 | 29 | let p = (n + o) | |
30 | 30 | if ((p == e)) | |
31 | 31 | then e | |
32 | 32 | else { | |
33 | 33 | let q = parseIntValue(k) | |
34 | 34 | let r = (q * 2) | |
35 | 35 | let s = fraction(n, o, f) | |
36 | 36 | let t = fraction(s, i, f) | |
37 | 37 | let u = fraction(toBigInt(r), p, f) | |
38 | 38 | let v = toBigInt((r - 1)) | |
39 | 39 | func w (x) = { | |
40 | 40 | let y = fraction(x, x, f) | |
41 | 41 | let z = fraction(y, x, f) | |
42 | 42 | let A = fraction(z, f, t) | |
43 | 43 | fraction((u + fraction(A, g, f)), x, (fraction(v, x, f) + fraction(h, A, f))) | |
44 | 44 | } | |
45 | 45 | ||
46 | 46 | func B (C,D) = if (C._2) | |
47 | 47 | then C | |
48 | 48 | else { | |
49 | 49 | let x = C._1 | |
50 | 50 | let E = w(x) | |
51 | 51 | let F = (E - value(x)) | |
52 | 52 | let G = if ((e > F)) | |
53 | 53 | then -(F) | |
54 | 54 | else F | |
55 | 55 | if ((f >= G)) | |
56 | 56 | then $Tuple2(E, true) | |
57 | 57 | else $Tuple2(E, false) | |
58 | 58 | } | |
59 | 59 | ||
60 | 60 | let H = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17] | |
61 | 61 | let I = { | |
62 | 62 | let J = H | |
63 | 63 | let K = size(J) | |
64 | 64 | let L = $Tuple2(p, false) | |
65 | 65 | func M (N,O) = if ((O >= K)) | |
66 | 66 | then N | |
67 | 67 | else B(N, J[O]) | |
68 | 68 | ||
69 | 69 | func P (N,O) = if ((O >= K)) | |
70 | 70 | then N | |
71 | 71 | else throw("List size exceeds 18") | |
72 | 72 | ||
73 | 73 | P(M(M(M(M(M(M(M(M(M(M(M(M(M(M(M(M(M(M(L, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18) | |
74 | 74 | } | |
75 | 75 | let x = I._1 | |
76 | 76 | let Q = I._2 | |
77 | 77 | if (Q) | |
78 | 78 | then x | |
79 | 79 | else throw(("D calculation error, D = " + toString(x))) | |
80 | 80 | } | |
81 | 81 | } | |
82 | 82 | ||
83 | 83 | ||
84 | 84 | func R (S) = if ((d > S)) | |
85 | 85 | then -(S) | |
86 | 86 | else S | |
87 | 87 | ||
88 | 88 | ||
89 | 89 | func T (U,V,W,X) = { | |
90 | 90 | let Y = g | |
91 | 91 | let Z = parseBigIntValue(j) | |
92 | 92 | let q = (parseBigIntValue(k) * Z) | |
93 | 93 | let m = [(W + V), X] | |
94 | 94 | let aa = m[0] | |
95 | 95 | let p = aa | |
96 | 96 | let r = (q * Y) | |
97 | 97 | let ab = (((((U * U) / (aa * Y)) * U) * Z) / (r * Y)) | |
98 | 98 | let ac = ((p + ((U * Z) / r)) - U) | |
99 | 99 | func B (C,ad) = { | |
100 | 100 | let ae = C | |
101 | 101 | let af = ae._1 | |
102 | 102 | let Q = ae._2 | |
103 | 103 | if ((Q != unit)) | |
104 | 104 | then C | |
105 | 105 | else { | |
106 | 106 | let ag = (((af * af) + ab) / ((g * af) + ac)) | |
107 | 107 | let ah = R((ag - value(af))) | |
108 | 108 | if ((f >= ah)) | |
109 | 109 | then $Tuple2(ag, ad) | |
110 | 110 | else $Tuple2(ag, unit) | |
111 | 111 | } | |
112 | 112 | } | |
113 | 113 | ||
114 | 114 | let H = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14] | |
115 | 115 | let ai = { | |
116 | 116 | let J = H | |
117 | 117 | let K = size(J) | |
118 | 118 | let L = $Tuple2(U, unit) | |
119 | 119 | func M (N,O) = if ((O >= K)) | |
120 | 120 | then N | |
121 | 121 | else B(N, J[O]) | |
122 | 122 | ||
123 | 123 | func P (N,O) = if ((O >= K)) | |
124 | 124 | then N | |
125 | 125 | else throw("List size exceeds 15") | |
126 | 126 | ||
127 | 127 | P(M(M(M(M(M(M(M(M(M(M(M(M(M(M(M(L, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15) | |
128 | 128 | } | |
129 | 129 | let af = ai._1 | |
130 | 130 | let Q = ai._2 | |
131 | 131 | if ((Q != unit)) | |
132 | 132 | then af | |
133 | 133 | else throw(("Y calculation error, Y = " + toString(af))) | |
134 | 134 | } | |
135 | 135 | ||
136 | 136 | ||
137 | 137 | @Callable(D) | |
138 | 138 | func calc (aj,ak,al) = { | |
139 | 139 | let U = l([toBigInt(ak), toBigInt(al)]) | |
140 | 140 | let af = T(U, toBigInt(aj), toBigInt(ak), toBigInt(al)) | |
141 | 141 | let am = ((toBigInt(al) - af) - toBigInt(1)) | |
142 | 142 | let an = max([0, toInt(am)]) | |
143 | - | [IntegerEntry("D", toInt(U)), IntegerEntry("Y", toInt(af)), IntegerEntry("dy", toInt(am)), IntegerEntry("totalGetRaw", an), DeleteEntry("p"), DeleteEntry("xp0_xp1_n_n")] | |
143 | + | let Y = g | |
144 | + | let Z = parseBigIntValue(j) | |
145 | + | let q = (parseBigIntValue(k) * Z) | |
146 | + | let aa = toBigInt((ak + aj)) | |
147 | + | let p = aa | |
148 | + | let r = (q * Y) | |
149 | + | let ab = (((((U * U) / (aa * Y)) * U) * Z) / (r * Y)) | |
150 | + | let ac = ((p + ((U * Z) / r)) - U) | |
151 | + | [IntegerEntry("D", toInt(U)), IntegerEntry("Y", toInt(af)), IntegerEntry("dy", toInt(am)), IntegerEntry("totalGetRaw", an), StringEntry("_dd", ((((((((((toString(q) + "/") + toString(aa)) + "/") + toString(p)) + "/") + toString(r)) + "/") + toString(ab)) + "/") + toString(ac))), DeleteEntry("p"), DeleteEntry("xp0_xp1_n_n")] | |
144 | 152 | } | |
145 | 153 | ||
146 | 154 | ||
147 | 155 | @Verifier(ao) | |
148 | 156 | func ap () = true | |
149 | 157 |
github/deemru/w8io/169f3d6 380.26 ms ◑