tx · BnaGG5ncnTWdNBj5v4CgrKssH8b5AjZNJa8AVKQMTyRT 3N78mWnEqz1PUDVJjBgoyivJpitqpxwVAgH: -0.01400000 Waves 2019.09.16 19:08 [679002] smart account 3N78mWnEqz1PUDVJjBgoyivJpitqpxwVAgH > SELF 0.00000000 Waves
{ "type": 13, "id": "BnaGG5ncnTWdNBj5v4CgrKssH8b5AjZNJa8AVKQMTyRT", "fee": 1400000, "feeAssetId": null, "timestamp": 1568650096646, "version": 1, "sender": "3N78mWnEqz1PUDVJjBgoyivJpitqpxwVAgH", "senderPublicKey": "88re7tFwGU4jjye6Kxg3U4cKzYz7FooSWnqP2NNMfRt5", "proofs": [ "2MjSVYA3NsqkdpJcbcFPctvsH2h1KHZU4fDgWaok7E1fUHKTNdaxbTJofU83CavqQ91RNjfDZ9bT3CzbUtV5Brep" ], "script": "base64:AAIDAAAAAAAAAAAAAAAFAAAAAAdxMXN0YXJ0AAAAAAAAAAC+AAAAAAdxMnN0YXJ0AAAAAAAAAAC+AAAAAAFzAAAAAAAAAAAKAQAAAARjb2VmAAAAAgAAAAFxAAAAA2RpZgkAAGkAAAACCQAAaAAAAAIFAAAAAXEJAABkAAAAAgkAAGgAAAACCQAAaAAAAAIA/////////9EFAAAAA2RpZgUAAAADZGlmAAAAAAAAACcQAAAAAAAAACcQAQAAAAthbm90aGVyY29lZgAAAAEAAAABcQQAAAADdmlnAAAAAAAAAAA0CQAAbAAAAAYJAABlAAAAAgkAAGQAAAACBQAAAAN2aWcAAAAAAAAAA+gJAABpAAAAAgAAAAAAAAGGoAUAAAABcQAAAAAAAAAAAAD//////////wAAAAAAAAAAAAAAAAAAAAAABQUAAAAERE9XTgAAAAEAAAAKY29udGV4dE9iagEAAAADYmV0AAAAAQAAAAVldmVudAQAAAABbgkBAAAAEUBleHRyTmF0aXZlKDEwNTApAAAAAgUAAAAEdGhpcwIAAAABbgQAAAABbQkBAAAAEUBleHRyTmF0aXZlKDEwNTApAAAAAgUAAAAEdGhpcwIA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AAAAECAAAAC3RvIGxvdyBjb2VmBAAAAARtTmV3CQAAZAAAAAIFAAAAAW0AAAAAAAAAAAEEAAAACGNvdW50TmV3CQAAZAAAAAIFAAAABWNvdW50AAAAAAAAAAABCQEAAAAIV3JpdGVTZXQAAAABCQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACCQABLAAAAAIJAAGkAAAAAQUAAAAIY291bnROZXcCAAAABl9ldmVudAUAAAAFZXZlbnQJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAIJAAEsAAAAAgkAAaQAAAABBQAAAAhjb3VudE5ldwIAAAAGX3FvZWYyCQEAAAAEY29lZgAAAAIFAAAAB3Eyc3RhcnQJAABlAAAAAgUAAAABbgUAAAABbQkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgkAASwAAAACCQABpAAAAAEFAAAACGNvdW50TmV3AgAAAAZfcW9lZjEJAQAAAAthbm90aGVyY29lZgAAAAEJAQAAAARjb2VmAAAAAgUAAAAHcTJzdGFydAkAAGUAAAACBQAAAAFuBQAAAAFtCQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACAgAAAAFtBQAAAARtTmV3CQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACAgAAAAVjb3VudAUAAAAIY291bnROZXcFAAAAA25pbAAAAAEAAAAKY29udGV4dE9iagEAAAAGdmVyaWZ5AAAAAAZ5G85y", "chainId": 84, "height": 679002, "spentComplexity": 0 } View: original | compacted Prev: 6qJLz6njC65JSDj1z7NF4N9rf564fNLBxZHaoujHX2xS Next: 7CgfLohpKFEA7qvk38RVk7yP6tHQYyDMX7dG72Lehk8g Diff:
Old | New | Differences | |
---|---|---|---|
7 | 7 | ||
8 | 8 | let c = 10 | |
9 | 9 | ||
10 | - | func d (e,f) = ((e * (((- | |
10 | + | func d (e,f) = ((e * (((-47 * f) * f) + 10000)) / 10000) | |
11 | 11 | ||
12 | 12 | ||
13 | 13 | func g (e) = { |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 3 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = 190 | |
5 | 5 | ||
6 | 6 | let b = 190 | |
7 | 7 | ||
8 | 8 | let c = 10 | |
9 | 9 | ||
10 | - | func d (e,f) = ((e * (((- | |
10 | + | func d (e,f) = ((e * (((-47 * f) * f) + 10000)) / 10000) | |
11 | 11 | ||
12 | 12 | ||
13 | 13 | func g (e) = { | |
14 | 14 | let h = 52 | |
15 | 15 | pow(((h + 1000) - (100000 / e)), 0, -1, 0, 5, DOWN) | |
16 | 16 | } | |
17 | 17 | ||
18 | 18 | ||
19 | 19 | @Callable(i) | |
20 | 20 | func bet (j) = { | |
21 | 21 | let k = getIntegerValue(this, "n") | |
22 | 22 | let l = getIntegerValue(this, "m") | |
23 | 23 | let m = getIntegerValue(this, "count") | |
24 | 24 | let f = (k - l) | |
25 | 25 | if ((j == 1)) | |
26 | 26 | then if ((100 > d(a, ((k + 1) - l)))) | |
27 | 27 | then throw("to low coef") | |
28 | 28 | else { | |
29 | 29 | let n = (k + 1) | |
30 | 30 | let o = (m + 1) | |
31 | 31 | WriteSet([DataEntry((toString(o) + "_event"), j), DataEntry((toString(o) + "_qoef1"), d(a, (k - l))), DataEntry((toString(o) + "_qoef2"), g(d(a, (k - l)))), DataEntry("n", n), DataEntry("count", o)]) | |
32 | 32 | } | |
33 | 33 | else if ((100 > d(b, ((l - k) + 1)))) | |
34 | 34 | then throw("to low coef") | |
35 | 35 | else { | |
36 | 36 | let p = (l + 1) | |
37 | 37 | let o = (m + 1) | |
38 | 38 | WriteSet([DataEntry((toString(o) + "_event"), j), DataEntry((toString(o) + "_qoef2"), d(b, (k - l))), DataEntry((toString(o) + "_qoef1"), g(d(b, (k - l)))), DataEntry("m", p), DataEntry("count", o)]) | |
39 | 39 | } | |
40 | 40 | } | |
41 | 41 | ||
42 | 42 | ||
43 | 43 | @Verifier(i) | |
44 | 44 | func q () = true | |
45 | 45 |
github/deemru/w8io/169f3d6 25.04 ms ◑