tx · 5McoSvfwCwE9qVWNc49Vbq3DJ4rEwZKwxwvjj2fD52Re
3N3n75UqB8G1GKmXFr4zPhKCjGcqJPRSuJY: -0.01000000 Waves
2024.05.28 00:20 [3124938] smart account 3N3n75UqB8G1GKmXFr4zPhKCjGcqJPRSuJY > SELF 0.00000000 Waves
{
"type": 13,
"id": "5McoSvfwCwE9qVWNc49Vbq3DJ4rEwZKwxwvjj2fD52Re",
"fee": 1000000,
"feeAssetId": null,
"timestamp": 1716844866455,
"version": 2,
"chainId": 84,
"sender": "3N3n75UqB8G1GKmXFr4zPhKCjGcqJPRSuJY",
"senderPublicKey": "2AWdnJuBMzufXSjTvzVcawBQQhnhF1iXR6QNVgwn33oc",
"proofs": [
"3ANzwhcL6JURXTTxT2jn9v6RAcSkAiMzGfrkwKDP99P2SJAtEhKszaDruHQsgi1QkuvEZD1FvSUeVnW8DtYeRvT5"
],
"script": "base64:BwIICAISBAoCAQEIAA93ZWlnaHRzX2xheWVyXzEJAMwIAgkAzAgCAJHVAwkAzAgCAKnVAwUDbmlsCQDMCAIJAMwIAgDLwwIJAMwIAgDRwwIFA25pbAUDbmlsAA5iaWFzZXNfbGF5ZXJfMQkAzAgCAM+1/v///////wEJAMwIAgC1j/z///////8BBQNuaWwAD3dlaWdodHNfbGF5ZXJfMgkAzAgCCQDMCAIA4IoFCQDMCAIAjsP6////////AQUDbmlsBQNuaWwADmJpYXNlc19sYXllcl8yCQDMCAIAm9b9////////AQUDbmlsARBsaW5lYXJfZm9yd2FyZF8xAwVpbnB1dAd3ZWlnaHRzBmJpYXNlcwQNd2VpZ2h0ZWRfc3VtMQkAZAIJAGkCCQBkAgkAaAIJAJEDAgUFaW5wdXQAAAkAkQMCCQCRAwIFB3dlaWdodHMAAAAACQBoAgkAkQMCBQVpbnB1dAABCQCRAwIJAJEDAgUHd2VpZ2h0cwAAAAEAkE4JAJEDAgUGYmlhc2VzAAAEDXdlaWdodGVkX3N1bTIJAGQCCQBpAgkAZAIJAGgCCQCR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IEAmEyCQESc2lnbW9pZF9hY3RpdmF0aW9uAgUCejIAAQQHcmVzdWx0cwkAzAgCCQCRAwIFAmEyAAAFA25pbAQNZGVidWdfb3V0cHV0cwUDbmlsCQCUCgIFDWRlYnVnX291dHB1dHMFB3Jlc3VsdHMATuA7JQ==",
"height": 3124938,
"applicationStatus": "succeeded",
"spentComplexity": 0
}
View: original | compacted
Prev: 6E7zaZ4wjSB9fjAqTL9Py14raWfez4jogsN994iBCpPg
Next: 9XFRoSJd97UhDGN3GiVsETsmcVuDKxrGVgqxaqPhWeY4
Diff:
Old | New | | Differences |
---|
40 | 40 | | let u = e(n, a, b) |
---|
41 | 41 | | let v = m(u, 2) |
---|
42 | 42 | | let w = k(v, c, d) |
---|
43 | | - | let x = l(w[0]) |
---|
44 | | - | let y = (x / 10000) |
---|
| 43 | + | let x = m(w, 1) |
---|
| 44 | + | let y = [x[0]] |
---|
45 | 45 | | let z = nil |
---|
46 | 46 | | $Tuple2(z, y) |
---|
47 | 47 | | } |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 7 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | 4 | | let a = [[60049, 60073], [41419, 41425]] |
---|
5 | 5 | | |
---|
6 | 6 | | let b = [-25905, -63563] |
---|
7 | 7 | | |
---|
8 | 8 | | let c = [[83296, -89714]] |
---|
9 | 9 | | |
---|
10 | 10 | | let d = [-38117] |
---|
11 | 11 | | |
---|
12 | 12 | | func e (f,g,h) = { |
---|
13 | 13 | | let i = ((((f[0] * g[0][0]) + (f[1] * g[0][1])) / 10000) + h[0]) |
---|
14 | 14 | | let j = ((((f[0] * g[1][0]) + (f[1] * g[1][1])) / 10000) + h[1]) |
---|
15 | 15 | | [i, j] |
---|
16 | 16 | | } |
---|
17 | 17 | | |
---|
18 | 18 | | |
---|
19 | 19 | | func k (f,g,h) = { |
---|
20 | 20 | | let i = ((((f[0] * g[0][0]) + (f[1] * g[0][1])) / 10000) + h[0]) |
---|
21 | 21 | | [i] |
---|
22 | 22 | | } |
---|
23 | 23 | | |
---|
24 | 24 | | |
---|
25 | 25 | | func l (f) = if ((-10000 > f)) |
---|
26 | 26 | | then 0 |
---|
27 | 27 | | else if ((f > 10000)) |
---|
28 | 28 | | then 10000 |
---|
29 | 29 | | else (5000 + (f / 2)) |
---|
30 | 30 | | |
---|
31 | 31 | | |
---|
32 | 32 | | func m (n,o) = [l(n[0]), l(n[1])] |
---|
33 | 33 | | |
---|
34 | 34 | | |
---|
35 | 35 | | @Callable(p) |
---|
36 | 36 | | func predict (q,r) = { |
---|
37 | 37 | | let s = (q * 10000) |
---|
38 | 38 | | let t = (r * 10000) |
---|
39 | 39 | | let n = [s, t] |
---|
40 | 40 | | let u = e(n, a, b) |
---|
41 | 41 | | let v = m(u, 2) |
---|
42 | 42 | | let w = k(v, c, d) |
---|
43 | | - | let x = l(w[0]) |
---|
44 | | - | let y = (x / 10000) |
---|
| 43 | + | let x = m(w, 1) |
---|
| 44 | + | let y = [x[0]] |
---|
45 | 45 | | let z = nil |
---|
46 | 46 | | $Tuple2(z, y) |
---|
47 | 47 | | } |
---|
48 | 48 | | |
---|
49 | 49 | | |
---|