tx · 2R9Jhcf848sqmypzBzgvt9hXwitw3TBDpri5VT9Ghi8Y 3N69YR9dGN9tJnhxGrURt5cQycjAN1zbQ9t: -0.05000000 Waves 2021.01.29 17:21 [1374871] smart account 3N69YR9dGN9tJnhxGrURt5cQycjAN1zbQ9t > SELF 0.00000000 Waves
{ "type": 13, "id": "2R9Jhcf848sqmypzBzgvt9hXwitw3TBDpri5VT9Ghi8Y", "fee": 5000000, "feeAssetId": null, "timestamp": 1611930114601, "version": 2, "chainId": 84, "sender": "3N69YR9dGN9tJnhxGrURt5cQycjAN1zbQ9t", "senderPublicKey": "Bo16mjUNTGCeZDYvQc6gHh46P21B3DqYCHoDt9CyzxHf", "proofs": [ "2peZUhp6dxoRMxDApjyPZLjwBSDmqzLtvaedG5GQocmZbFa8BZSrrEFBKuZTCnj64jpagwi1tEitKscPt5qU32uV" ], "script": "base64:AAIEAAAAAAAAAAkIAhIAEgMKAQEAAAALAAAAAAFlAAAAAAAQM8TWAAAAAA5rd290YXJvd25vd2FnaQAAAAkYTnKgAAAAAAAEYmF6YQkAAGgAAAACBQAAAA5rd290YXJvd25vd2FnaQAAAAAAAAAAEgAAAAAGcG96aW9tCQEAAAARQGV4dHJOYXRpdmUoMTA1MCkAAAACBQAAAAR0aGlzAgAAAAZQb3ppb20AAAAACmJhbGFuc1VTRE4JAABoAAAAAgkAA/AAAAACBQAAAAR0aGlzAQAAACC3MBFQ8wB+fyiYVgPsUQGuNeyj0fuUvJsmtCYHI6unSgAAAAAAAAAAZAAAAAAKYmFsYW5zVVNEVAkAAGgAAAACCQAD8AAAAAIFAAAABHRoaXMBAAAAIAkJCHNUpU6AUOoObKxslXw6Rw4k6YFcgvYpXmoWsYPOAAAAAAAAAABkAQAAAAJsbgAAAAEAAAABeAkAAG0AAAAGBQAAAAF4AAAAAAAAAAAIBQAAAAFlAAAAAAAAAAAIAAAAAAAAAAAIBQAAAARET1dOAQAAAANleHAAAAABAAAAAXgJAABsAAAABgUAAAABZQAAAAAAAAA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YW55IGFzc2V0AAAAAWkBAAAADVdMYW1iZXJ0dmFsdWUAAAABAAAAAXgEAAAABXd5bmlrCQEAAAAIV0xhbWJlcnQAAAABBQAAAAF4CQAETAAAAAIJAQAAAAxJbnRlZ2VyRW50cnkAAAACAgAAAA1XTGFtYmVydHZhbHVlBQAAAAV3eW5pawUAAAADbmlsAAAAAP/ypvM=", "height": 1374871, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 4aYgWQT5kmFfPKhrwCurEHdnAkJ7wUYknTv5dceiDpsz Next: FaxL65iYQFRRXoPWwxSnAfbZneVRPZD8Uru1fns1Dh16 Diff:
Old | New | Differences | |
---|---|---|---|
25 | 25 | func l (h,k) = fraction(h, 100000000, k) | |
26 | 26 | ||
27 | 27 | ||
28 | - | func m (h) = l(h, i(l(h, i(h)))) | |
28 | + | func m (h) = l(h, i(l(h, i(l(h, i(l(h, i(l(h, i(l(h, i(l(h, i(l(h, i(l(h, i(l(h, i(l(h, i(l(h, i(l(h, i(l(h, i(l(h, i(l(h, i(l(h, i(l(h, i(l(h, i(l(h, i(l(h, i(h)))))))))))))))))))))))))))))))))))))))))) | |
29 | 29 | ||
30 | 30 | ||
31 | 31 | @Callable(n) |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 4 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = 271828182 | |
5 | 5 | ||
6 | 6 | let b = 10000000000000 | |
7 | 7 | ||
8 | 8 | let c = (b * 18) | |
9 | 9 | ||
10 | 10 | let d = getIntegerValue(this, "Poziom") | |
11 | 11 | ||
12 | 12 | let e = (assetBalance(this, base58'DL67xXsNV42GiRUY1XMTXNyLCs42gnEL8jizPLBbrb8d') * 100) | |
13 | 13 | ||
14 | 14 | let f = (assetBalance(this, base58'cGfAv1s7NxGWL913wR2Lp9yFSY7DrkWip6YPQGJGc6y') * 100) | |
15 | 15 | ||
16 | 16 | func g (h) = log(h, 8, a, 8, 8, DOWN) | |
17 | 17 | ||
18 | 18 | ||
19 | 19 | func i (h) = pow(a, 8, h, 8, 8, DOWN) | |
20 | 20 | ||
21 | 21 | ||
22 | 22 | func j (h,k) = fraction(h, k, 100000000) | |
23 | 23 | ||
24 | 24 | ||
25 | 25 | func l (h,k) = fraction(h, 100000000, k) | |
26 | 26 | ||
27 | 27 | ||
28 | - | func m (h) = l(h, i(l(h, i(h)))) | |
28 | + | func m (h) = l(h, i(l(h, i(l(h, i(l(h, i(l(h, i(l(h, i(l(h, i(l(h, i(l(h, i(l(h, i(l(h, i(l(h, i(l(h, i(l(h, i(l(h, i(l(h, i(l(h, i(l(h, i(l(h, i(l(h, i(l(h, i(h)))))))))))))))))))))))))))))))))))))))))) | |
29 | 29 | ||
30 | 30 | ||
31 | 31 | @Callable(n) | |
32 | 32 | func USDTnaUSDNnaUSDT () = { | |
33 | 33 | let o = fraction(n.payments[0].amount, 4, 10000) | |
34 | 34 | let p = fraction((n.payments[0].amount - o), 100, 1) | |
35 | 35 | if ((n.payments[0].assetId == base58'cGfAv1s7NxGWL913wR2Lp9yFSY7DrkWip6YPQGJGc6y')) | |
36 | 36 | then if ((p > (b - f))) | |
37 | 37 | then if ((f >= b)) | |
38 | 38 | then { | |
39 | 39 | let q = (d + p) | |
40 | 40 | let r = j(c, (g(q) - g(d))) | |
41 | 41 | [ScriptTransfer(n.caller, (r / 100), base58'DL67xXsNV42GiRUY1XMTXNyLCs42gnEL8jizPLBbrb8d'), ScriptTransfer(addressFromStringValue("3MreQWCMA3vhziCq8yMCf9BdBmHcZGrbW4S"), o, base58'cGfAv1s7NxGWL913wR2Lp9yFSY7DrkWip6YPQGJGc6y'), IntegerEntry("Poziom", q), IntegerEntry("Wyplata", fraction(r, 1, 100)), IntegerEntry("Warunek", 1)] | |
42 | 42 | } | |
43 | 43 | else { | |
44 | 44 | let s = (b - f) | |
45 | 45 | let q = (((f + p) + c) - b) | |
46 | 46 | let r = ((j(c, (g(q) - g(c))) + d) - l(d, i(l(s, c)))) | |
47 | 47 | [ScriptTransfer(n.caller, (r / 100), base58'DL67xXsNV42GiRUY1XMTXNyLCs42gnEL8jizPLBbrb8d'), ScriptTransfer(addressFromStringValue("3MreQWCMA3vhziCq8yMCf9BdBmHcZGrbW4S"), o, base58'cGfAv1s7NxGWL913wR2Lp9yFSY7DrkWip6YPQGJGc6y'), IntegerEntry("Wyplata", fraction(r, 1, 100)), IntegerEntry("Poziom", q), IntegerEntry("Warunek", 2)] | |
48 | 48 | } | |
49 | 49 | else { | |
50 | 50 | let r = (d - l(d, i(l(p, c)))) | |
51 | 51 | let q = (d - r) | |
52 | 52 | [ScriptTransfer(n.caller, (r / 100), base58'DL67xXsNV42GiRUY1XMTXNyLCs42gnEL8jizPLBbrb8d'), ScriptTransfer(addressFromStringValue("3MreQWCMA3vhziCq8yMCf9BdBmHcZGrbW4S"), o, base58'cGfAv1s7NxGWL913wR2Lp9yFSY7DrkWip6YPQGJGc6y'), IntegerEntry("Wyplata", fraction(r, 1, 100)), IntegerEntry("Poziom", q), IntegerEntry("Warunek", 3)] | |
53 | 53 | } | |
54 | 54 | else if ((n.payments[0].assetId == base58'DL67xXsNV42GiRUY1XMTXNyLCs42gnEL8jizPLBbrb8d')) | |
55 | 55 | then if ((p > (b - e))) | |
56 | 56 | then if ((e >= b)) | |
57 | 57 | then { | |
58 | 58 | let q = (d + p) | |
59 | 59 | let r = j(c, (g(q) - g(d))) | |
60 | 60 | [ScriptTransfer(n.caller, (r / 100), base58'cGfAv1s7NxGWL913wR2Lp9yFSY7DrkWip6YPQGJGc6y'), ScriptTransfer(addressFromStringValue("3MreQWCMA3vhziCq8yMCf9BdBmHcZGrbW4S"), o, base58'DL67xXsNV42GiRUY1XMTXNyLCs42gnEL8jizPLBbrb8d'), IntegerEntry("Poziom", q), IntegerEntry("Wyplata", fraction(r, 1, 100)), IntegerEntry("Warunek", 11)] | |
61 | 61 | } | |
62 | 62 | else { | |
63 | 63 | let s = (b - e) | |
64 | 64 | let q = (((e + p) + c) - b) | |
65 | 65 | let r = ((j(c, (g(q) - g(c))) + d) - l(d, i(l(s, c)))) | |
66 | 66 | [ScriptTransfer(n.caller, (r / 100), base58'cGfAv1s7NxGWL913wR2Lp9yFSY7DrkWip6YPQGJGc6y'), ScriptTransfer(addressFromStringValue("3MreQWCMA3vhziCq8yMCf9BdBmHcZGrbW4S"), o, base58'DL67xXsNV42GiRUY1XMTXNyLCs42gnEL8jizPLBbrb8d'), IntegerEntry("Wyplata", fraction(r, 1, 100)), IntegerEntry("Poziom", q), IntegerEntry("Warunek", 21)] | |
67 | 67 | } | |
68 | 68 | else { | |
69 | 69 | let r = (d - l(d, i(l(p, c)))) | |
70 | 70 | let q = (d - r) | |
71 | 71 | [ScriptTransfer(n.caller, (r / 100), base58'cGfAv1s7NxGWL913wR2Lp9yFSY7DrkWip6YPQGJGc6y'), ScriptTransfer(addressFromStringValue("3MreQWCMA3vhziCq8yMCf9BdBmHcZGrbW4S"), o, base58'DL67xXsNV42GiRUY1XMTXNyLCs42gnEL8jizPLBbrb8d'), IntegerEntry("Wyplata", fraction(r, 1, 100)), IntegerEntry("Poziom", q), IntegerEntry("Warunek", 31)] | |
72 | 72 | } | |
73 | 73 | else throw("Nieobsługiwany asset") | |
74 | 74 | } | |
75 | 75 | ||
76 | 76 | ||
77 | 77 | ||
78 | 78 | @Callable(n) | |
79 | 79 | func WLambertvalue (h) = { | |
80 | 80 | let t = m(h) | |
81 | 81 | [IntegerEntry("WLambertvalue", t)] | |
82 | 82 | } | |
83 | 83 | ||
84 | 84 |
github/deemru/w8io/026f985 40.33 ms ◑