tx · 6XUBAgt8nbyVNgdVf4dhhA5Rx9nDvxVLHdPVV8qzRXp8 3N69YR9dGN9tJnhxGrURt5cQycjAN1zbQ9t: -0.05000000 Waves 2021.01.29 16:43 [1374836] smart account 3N69YR9dGN9tJnhxGrURt5cQycjAN1zbQ9t > SELF 0.00000000 Waves
{ "type": 13, "id": "6XUBAgt8nbyVNgdVf4dhhA5Rx9nDvxVLHdPVV8qzRXp8", "fee": 5000000, "feeAssetId": null, "timestamp": 1611927864047, "version": 2, "chainId": 84, "sender": "3N69YR9dGN9tJnhxGrURt5cQycjAN1zbQ9t", "senderPublicKey": "Bo16mjUNTGCeZDYvQc6gHh46P21B3DqYCHoDt9CyzxHf", "proofs": [ "45nkZzStDYPQZvJ2DaB2r71LsuwAqxR49UG7PGrLZQ6Xa4BHr2Sb1cJLqiJPL6cwDVBDA9pJRYonucwu5Q1VexLq" ], "script": "base64:AAIEAAAAAAAAAAkIAhIAEgMKAQEAAAALAAAAAAFlAAAAAAAQM8TWAAAAAA5rd290YXJvd25vd2FnaQAAAAkYTnKgAAAAAAAEYmF6YQkAAGgAAAACBQAAAA5rd290YXJvd25vd2FnaQAAAAAAAAAAEgAAAAAGcG96aW9tCQEAAAARQGV4dHJOYXRpdmUoMTA1MCkAAAACBQAAAAR0aGlzAgAAAAZQb3ppb20AAAAACmJhbGFuc1VTRE4JAABoAAAAAgkAA/AAAAACBQAAAAR0aGlzAQAAACC3MBFQ8wB+fyiYVgPsUQGuNeyj0fuUvJsmtCYHI6unSgAAAAAAAAAAZAAAAAAKYmFsYW5zVVNEVAkAAGgAAAACCQAD8AAAAAIFAAAABHRoaXMBAAAAIAkJCHNUpU6AUOoObKxslXw6Rw4k6YFcgvYpXmoWsYPOAAAAAAAAAABkAQAAAAJsbgAAAAEAAAABeAkAAG0AAAAGBQAAAAF4AAAAAAAAAAAIBQAAAAFlAAAAAAAAAAAIAAAAAAAAAAAIBQAAAARET1dOAQAAAANleHAAAAABAAAAAXgJAABsAAAABgUAA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m5vd3lwb3ppb20JAARMAAAAAgkBAAAADEludGVnZXJFbnRyeQAAAAICAAAAB1dhcnVuZWsAAAAAAAAAAB8FAAAAA25pbAkAAAIAAAABAgAAABVOaWVvYnPFgnVnaXdhbnkgYXNzZXQAAAABaQEAAAANV0xhbWJlcnR2YWx1ZQAAAAEAAAABeAQAAAAFd3luaWsJAQAAAAhXTGFtYmVydAAAAAEFAAAAAXgJAARMAAAAAgkBAAAADEludGVnZXJFbnRyeQAAAAICAAAADVdMYW1iZXJ0dmFsdWUFAAAABXd5bmlrBQAAAANuaWwAAAAATb0H5g==", "height": 1374836, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 3B7r7AW4Yt4wRGxMM8jJyBdwGHUmmR4fLhTgWqtRnrEY Next: 4aYgWQT5kmFfPKhrwCurEHdnAkJ7wUYknTv5dceiDpsz Diff:
Old | New | Differences | |
---|---|---|---|
25 | 25 | func l (h,k) = fraction(h, 100000000, k) | |
26 | 26 | ||
27 | 27 | ||
28 | - | @Callable(m) | |
28 | + | func m (h) = l(h, i(h)) | |
29 | + | ||
30 | + | ||
31 | + | @Callable(n) | |
29 | 32 | func USDTnaUSDNnaUSDT () = { | |
30 | - | let | |
31 | - | let | |
32 | - | if (( | |
33 | - | then if (( | |
33 | + | let o = fraction(n.payments[0].amount, 4, 10000) | |
34 | + | let p = fraction((n.payments[0].amount - o), 100, 1) | |
35 | + | if ((n.payments[0].assetId == base58'cGfAv1s7NxGWL913wR2Lp9yFSY7DrkWip6YPQGJGc6y')) | |
36 | + | then if ((p > (b - f))) | |
34 | 37 | then if ((f >= b)) | |
35 | 38 | then { | |
36 | - | let | |
37 | - | let | |
38 | - | [ScriptTransfer( | |
39 | + | let q = (d + p) | |
40 | + | let r = j(c, (g(q) - g(d))) | |
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)] | |
39 | 42 | } | |
40 | 43 | else { | |
41 | - | let | |
42 | - | let | |
43 | - | let | |
44 | - | [ScriptTransfer( | |
44 | + | let s = (b - f) | |
45 | + | let q = (((f + p) + c) - b) | |
46 | + | let r = ((j(c, (g(q) - g(c))) + d) - l(d, i(l(s, c)))) | |
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)] | |
45 | 48 | } | |
46 | 49 | else { | |
47 | - | let | |
48 | - | let | |
49 | - | [ScriptTransfer( | |
50 | + | let r = (d - l(d, i(l(p, c)))) | |
51 | + | let q = (d - r) | |
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)] | |
50 | 53 | } | |
51 | - | else if (( | |
52 | - | then if (( | |
54 | + | else if ((n.payments[0].assetId == base58'DL67xXsNV42GiRUY1XMTXNyLCs42gnEL8jizPLBbrb8d')) | |
55 | + | then if ((p > (b - e))) | |
53 | 56 | then if ((e >= b)) | |
54 | 57 | then { | |
55 | - | let | |
56 | - | let | |
57 | - | [ScriptTransfer( | |
58 | + | let q = (d + p) | |
59 | + | let r = j(c, (g(q) - g(d))) | |
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)] | |
58 | 61 | } | |
59 | 62 | else { | |
60 | - | let | |
61 | - | let | |
62 | - | let | |
63 | - | [ScriptTransfer( | |
63 | + | let s = (b - e) | |
64 | + | let q = (((e + p) + c) - b) | |
65 | + | let r = ((j(c, (g(q) - g(c))) + d) - l(d, i(l(s, c)))) | |
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)] | |
64 | 67 | } | |
65 | 68 | else { | |
66 | - | let | |
67 | - | let | |
68 | - | [ScriptTransfer( | |
69 | + | let r = (d - l(d, i(l(p, c)))) | |
70 | + | let q = (d - r) | |
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)] | |
69 | 72 | } | |
70 | 73 | else throw("Nieobsługiwany asset") | |
74 | + | } | |
75 | + | ||
76 | + | ||
77 | + | ||
78 | + | @Callable(n) | |
79 | + | func WLambertvalue (h) = { | |
80 | + | let t = m(h) | |
81 | + | [IntegerEntry("WLambertvalue", t)] | |
71 | 82 | } | |
72 | 83 | ||
73 | 84 |
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 | - | @Callable(m) | |
28 | + | func m (h) = l(h, i(h)) | |
29 | + | ||
30 | + | ||
31 | + | @Callable(n) | |
29 | 32 | func USDTnaUSDNnaUSDT () = { | |
30 | - | let | |
31 | - | let | |
32 | - | if (( | |
33 | - | then if (( | |
33 | + | let o = fraction(n.payments[0].amount, 4, 10000) | |
34 | + | let p = fraction((n.payments[0].amount - o), 100, 1) | |
35 | + | if ((n.payments[0].assetId == base58'cGfAv1s7NxGWL913wR2Lp9yFSY7DrkWip6YPQGJGc6y')) | |
36 | + | then if ((p > (b - f))) | |
34 | 37 | then if ((f >= b)) | |
35 | 38 | then { | |
36 | - | let | |
37 | - | let | |
38 | - | [ScriptTransfer( | |
39 | + | let q = (d + p) | |
40 | + | let r = j(c, (g(q) - g(d))) | |
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)] | |
39 | 42 | } | |
40 | 43 | else { | |
41 | - | let | |
42 | - | let | |
43 | - | let | |
44 | - | [ScriptTransfer( | |
44 | + | let s = (b - f) | |
45 | + | let q = (((f + p) + c) - b) | |
46 | + | let r = ((j(c, (g(q) - g(c))) + d) - l(d, i(l(s, c)))) | |
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)] | |
45 | 48 | } | |
46 | 49 | else { | |
47 | - | let | |
48 | - | let | |
49 | - | [ScriptTransfer( | |
50 | + | let r = (d - l(d, i(l(p, c)))) | |
51 | + | let q = (d - r) | |
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)] | |
50 | 53 | } | |
51 | - | else if (( | |
52 | - | then if (( | |
54 | + | else if ((n.payments[0].assetId == base58'DL67xXsNV42GiRUY1XMTXNyLCs42gnEL8jizPLBbrb8d')) | |
55 | + | then if ((p > (b - e))) | |
53 | 56 | then if ((e >= b)) | |
54 | 57 | then { | |
55 | - | let | |
56 | - | let | |
57 | - | [ScriptTransfer( | |
58 | + | let q = (d + p) | |
59 | + | let r = j(c, (g(q) - g(d))) | |
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)] | |
58 | 61 | } | |
59 | 62 | else { | |
60 | - | let | |
61 | - | let | |
62 | - | let | |
63 | - | [ScriptTransfer( | |
63 | + | let s = (b - e) | |
64 | + | let q = (((e + p) + c) - b) | |
65 | + | let r = ((j(c, (g(q) - g(c))) + d) - l(d, i(l(s, c)))) | |
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)] | |
64 | 67 | } | |
65 | 68 | else { | |
66 | - | let | |
67 | - | let | |
68 | - | [ScriptTransfer( | |
69 | + | let r = (d - l(d, i(l(p, c)))) | |
70 | + | let q = (d - r) | |
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)] | |
69 | 72 | } | |
70 | 73 | else throw("Nieobsługiwany asset") | |
74 | + | } | |
75 | + | ||
76 | + | ||
77 | + | ||
78 | + | @Callable(n) | |
79 | + | func WLambertvalue (h) = { | |
80 | + | let t = m(h) | |
81 | + | [IntegerEntry("WLambertvalue", t)] | |
71 | 82 | } | |
72 | 83 | ||
73 | 84 |
github/deemru/w8io/169f3d6 48.52 ms ◑