tx · FYY5e1t899S1xjoEgphoEeWuywfGRLTVAt65iBN8Pxv9

3N3n75UqB8G1GKmXFr4zPhKCjGcqJPRSuJY:  -0.01000000 Waves

2024.05.26 22:09 [3123362] smart account 3N3n75UqB8G1GKmXFr4zPhKCjGcqJPRSuJY > SELF 0.00000000 Waves

{ "type": 13, "id": "FYY5e1t899S1xjoEgphoEeWuywfGRLTVAt65iBN8Pxv9", "fee": 1000000, "feeAssetId": null, "timestamp": 1716750539690, "version": 2, "chainId": 84, "sender": "3N3n75UqB8G1GKmXFr4zPhKCjGcqJPRSuJY", "senderPublicKey": "2AWdnJuBMzufXSjTvzVcawBQQhnhF1iXR6QNVgwn33oc", "proofs": [ "2qdkweuCvzG2Nn3VHBtU7C799U9TLti6Bdr5x1WtDec1HvGkuLeV4XBtGzwZ4qyXQuHTh7xvHHWcsx36b5Fp9msH" ], "script": "base64:BwIICAISBAoCAQEIAA93ZWlnaHRzX2xheWVyXzEJAMwIAgkAzAgCAJHVAwkAzAgCAKnVAwUDbmlsCQDMCAIJAMwIAgDLwwIJAMwIAgDRwwIFA25pbAUDbmlsAA5iaWFzZXNfbGF5ZXJfMQkAzAgCAM+1/v///////wEJAMwIAgC1j/z///////8BBQNuaWwAD3dlaWdodHNfbGF5ZXJfMgkAzAgCCQDMCAIA4IoFCQDMCAIAjsP6////////AQUDbmlsBQNuaWwADmJpYXNlc19sYXllcl8yCQDMCAIAm9b9////////AQUDbmlsARBsaW5lYXJfZm9yd2FyZF8xAwVpbnB1dAd3ZWlnaHRzBmJpYXNlcwQNd2VpZ2h0ZWRfc3VtMQkAZAIJAGkCCQBkAgkAaAIJAJEDAgUFaW5wdXQAAAkAkQMCCQCRAwIFB3dlaWdodHMAAAAACQBoAgkAkQMCBQVpbnB1dAABCQCRAwIJAJEDAgUHd2VpZ2h0cwAAAAEAkE4JAJEDAgUGYmlhc2VzAAAEDXdlaWdodGVkX3N1bTIJAGQCCQBpAgkAZAIJAGgCCQCRAwIFBWlucHV0AAAJ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dHMFA25pbAkAlAoCBQ1kZWJ1Z19vdXRwdXRzBQZyZXN1bHQAfKg7uA==", "height": 3123362, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 8bA5jMEQ6Vm9Rh4z9C9TER3GXZ2QKwTuAjWySbzGzVBv Next: 6E7zaZ4wjSB9fjAqTL9Py14raWfez4jogsN994iBCpPg Diff:
OldNewDifferences
1616 }
1717
1818
19-func k (f) = if ((-10000 > f))
19+func k (f,g,h) = {
20+ let i = ((((f[0] * g[0][0]) + (f[1] * g[0][1])) / 10000) + h[0])
21+[i]
22+ }
23+
24+
25+func l (f) = if ((-10000 > f))
2026 then 0
2127 else if ((f > 10000))
2228 then 10000
2329 else (5000 + (f / 2))
2430
2531
26-func l (m) = [k(m[0]), k(m[1])]
32+func m (n) = [l(n[0])]
2733
2834
29-@Callable(n)
30-func predict (o,p) = {
31- let q = (o * 10000)
35+@Callable(o)
36+func predict (p,q) = {
3237 let r = (p * 10000)
33- let m = [q, r]
34- let s = e(m, a, b)
35- let t = l(s)
36- let u = ((((t[0] * c[0][0]) + (t[1] * c[0][1])) / 10000) + d[0])
37- let v = k(u)
38- let w = (v / 10000)
39- let x = [IntegerEntry("debug_z1_1", s[0]), IntegerEntry("debug_a1_1", t[0]), IntegerEntry("debug_z1_2", s[1]), IntegerEntry("debug_a1_2", t[1]), IntegerEntry("debug_a2", v), IntegerEntry("debug_z2", u), IntegerEntry("debug_result", w)]
40- $Tuple2(x, w)
38+ let s = (q * 10000)
39+ let n = [r, s]
40+ let t = e(n, a, b)
41+ let u = m(t)
42+ let v = k(u, c, d)
43+ let w = l(v[0])
44+ let x = (w / 10000)
45+ let y = nil
46+ $Tuple2(y, x)
4147 }
4248
4349
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 7 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = [[60049, 60073], [41419, 41425]]
55
66 let b = [-25905, -63563]
77
88 let c = [[83296, -89714]]
99
1010 let d = [-38117]
1111
1212 func e (f,g,h) = {
1313 let i = ((((f[0] * g[0][0]) + (f[1] * g[0][1])) / 10000) + h[0])
1414 let j = ((((f[0] * g[1][0]) + (f[1] * g[1][1])) / 10000) + h[1])
1515 [i, j]
1616 }
1717
1818
19-func k (f) = if ((-10000 > f))
19+func k (f,g,h) = {
20+ let i = ((((f[0] * g[0][0]) + (f[1] * g[0][1])) / 10000) + h[0])
21+[i]
22+ }
23+
24+
25+func l (f) = if ((-10000 > f))
2026 then 0
2127 else if ((f > 10000))
2228 then 10000
2329 else (5000 + (f / 2))
2430
2531
26-func l (m) = [k(m[0]), k(m[1])]
32+func m (n) = [l(n[0])]
2733
2834
29-@Callable(n)
30-func predict (o,p) = {
31- let q = (o * 10000)
35+@Callable(o)
36+func predict (p,q) = {
3237 let r = (p * 10000)
33- let m = [q, r]
34- let s = e(m, a, b)
35- let t = l(s)
36- let u = ((((t[0] * c[0][0]) + (t[1] * c[0][1])) / 10000) + d[0])
37- let v = k(u)
38- let w = (v / 10000)
39- let x = [IntegerEntry("debug_z1_1", s[0]), IntegerEntry("debug_a1_1", t[0]), IntegerEntry("debug_z1_2", s[1]), IntegerEntry("debug_a1_2", t[1]), IntegerEntry("debug_a2", v), IntegerEntry("debug_z2", u), IntegerEntry("debug_result", w)]
40- $Tuple2(x, w)
38+ let s = (q * 10000)
39+ let n = [r, s]
40+ let t = e(n, a, b)
41+ let u = m(t)
42+ let v = k(u, c, d)
43+ let w = l(v[0])
44+ let x = (w / 10000)
45+ let y = nil
46+ $Tuple2(y, x)
4147 }
4248
4349

github/deemru/w8io/169f3d6 
21.33 ms