tx · 5g144YvTrtCGfmFNi49BTLkVykjCmRy5gtYUnR2SUeiz 3N2dRaZobzhvApXZdrFKsTWZfczyyx6FboD: -0.01400000 Waves 2021.08.19 20:21 [1665529] smart account 3N2dRaZobzhvApXZdrFKsTWZfczyyx6FboD > SELF 0.00000000 Waves
{ "type": 13, "id": "5g144YvTrtCGfmFNi49BTLkVykjCmRy5gtYUnR2SUeiz", "fee": 1400000, "feeAssetId": null, "timestamp": 1629393698387, "version": 2, "chainId": 84, "sender": "3N2dRaZobzhvApXZdrFKsTWZfczyyx6FboD", "senderPublicKey": "9WSLkkzDD1adiGFyZbCjY47yzFtCW8U5DKWUqpiuaL3p", "proofs": [ "5qNh3XpHPr4hnwUuPwgt64Ho1MGEJPbzWNXSyLQaoL3jt9iFxeZK3JXthZYKi6aqKvARy9Tm6eeUDpXQKn2t9sxt" ], "script": "base64:AAIFAAAAAAAAARMIAhIECgIBARIECgIBARoICgJhMRICV1UaCAoCYTISAlNXGggKAmEzEgJTVRoHCgJhNBIBVxoHCgJhNRIBVRoHCgJhNhIBUxoLCgJhNxIFYWRtaW4aDAoCYTgSBnNjYWxlOBoHCgJhORIBaRoKCgJiMRIEYW1udBoJCgJiMhIDbWluGgkKAmIzEgNiYnUaCQoCYjQSA2JidxoJCgJiNRIDYmJzGgsKAmI2EgVzd2FwMRoLCgJiNxIFZGlmZnUaCwoCYjgSBXN3YXAyGgsKAmI5EgVkaWZmcxoLCgJjMRIFc3dhcDMaCwoCYzISBWRpZmZ3GggKAmMzEgJvaxoICgJjNBICdHgaDAoCYzUSBnZlcmlmeQAAAAgAAAAAAmExCQEAAAARQGV4dHJOYXRpdmUoMTA2MikAAAABCQEAAAAFdmFsdWUAAAABAgAAACMzTkREM2lmQUMxN2NMenh1WXFzZ1hEUlk5RFRRNUJxbXZ3TAAAAAACYTIJAQAAABFAZXh0ck5hdGl2ZSgxMDYyKQAAAAEJAQAAAAV2YWx1ZQAAAAECAAAAIzNOQXpFUzdwU2pmb0hzS051b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AMJAAAAAAAAAgUAAAACYzEFAAAAAmMxBAAAAAJjMgkAAGUAAAACCQAD8AAAAAIFAAAABHRoaXMFAAAAAmE0BQAAAAJiNAMJAAAAAAAAAgUAAAACYzIFAAAAAmMyAwkAAGYAAAACBQAAAAJjMgUAAAACYjIEAAAAAmMzAgAAAAJvawkABEwAAAACCQEAAAAMSW50ZWdlckVudHJ5AAAAAgIAAAAFZGVidWcFAAAAAmMyBQAAAANuaWwJAAACAAAAAQkAAaQAAAABBQAAAAJjMgkAAAIAAAABAgAAAAZzdHJpY3QJAAACAAAAAQIAAAAGc3RyaWN0CQAAAgAAAAECAAAABnN0cmljdAkAAAIAAAABAgAAAAZzdHJpY3QJAAACAAAAAQIAAAAGc3RyaWN0CQAAAgAAAAECAAAABnN0cmljdAkAAAIAAAABAgAAAAZTdHJpY3QAAAABAAAAAmM0AQAAAAJjNQAAAAAJAAH0AAAAAwgFAAAAAmM0AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACYzQAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAACYzQAAAAPc2VuZGVyUHVibGljS2V5+xjJbw==", "height": 1665529, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 3Byyha4Beir9iiLqHTKtkhojsRXnhnZGj45U9BSs5v1p Next: none Diff:
Old | New | Differences | |
---|---|---|---|
16 | 16 | let admin = addressFromStringValue("3N97G98bPF5ghnZ1iMmQ7tMH6MBsNZnS272") | |
17 | 17 | ||
18 | 18 | let scale8 = 100000000 | |
19 | - | ||
20 | - | let scale6 = 1000000 | |
21 | 19 | ||
22 | 20 | @Callable(i) | |
23 | 21 | func call1 (amnt,min) = if ((i.caller != admin)) | |
50 | 48 | let diffw = (assetBalance(this, W) - bbw) | |
51 | 49 | if ((diffw == diffw)) | |
52 | 50 | then if ((diffw > min)) | |
53 | - | then { | |
54 | - | let ok = "ok" | |
55 | - | [IntegerEntry("debug", diffw), ScriptTransfer(admin, diffw, W)] | |
56 | - | } | |
51 | + | then [IntegerEntry("debug", diffw)] | |
57 | 52 | else throw(toString(diffw)) | |
58 | 53 | else throw("strict value what the fuck") | |
59 | 54 | } | |
105 | 100 | then if ((diffw > min)) | |
106 | 101 | then { | |
107 | 102 | let ok = "ok" | |
108 | - | [IntegerEntry("debug", diffw) | |
103 | + | [IntegerEntry("debug", diffw)] | |
109 | 104 | } | |
110 | 105 | else throw(toString(diffw)) | |
111 | 106 | else throw("strict") |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let WU = addressFromStringValue(value("3NDD3ifAC17cLzxuYqsgXDRY9DTQ5BqmvwL")) | |
5 | 5 | ||
6 | 6 | let SW = addressFromStringValue(value("3NAzES7pSjfoHsKNumP5HRtSt3qadbqnHip")) | |
7 | 7 | ||
8 | 8 | let SU = addressFromStringValue(value("3MrBtdped4oUFs1BvLNu53Dm1AMGiTHkT9B")) | |
9 | 9 | ||
10 | 10 | let W = base58'3Tg4GRpKeek5wWAQRJKH1ucjMuKNom3f2h67WNNu6xVS' | |
11 | 11 | ||
12 | 12 | let U = base58'gAAmMoquySsX6q5EmzciFfB8RecAhZR9W1HKNntNekL' | |
13 | 13 | ||
14 | 14 | let S = base58'89G3XEYzMSztS6RPN5h2da7j43r4zgKufReZWn1MqX7g' | |
15 | 15 | ||
16 | 16 | let admin = addressFromStringValue("3N97G98bPF5ghnZ1iMmQ7tMH6MBsNZnS272") | |
17 | 17 | ||
18 | 18 | let scale8 = 100000000 | |
19 | - | ||
20 | - | let scale6 = 1000000 | |
21 | 19 | ||
22 | 20 | @Callable(i) | |
23 | 21 | func call1 (amnt,min) = if ((i.caller != admin)) | |
24 | 22 | then throw("only admin") | |
25 | 23 | else { | |
26 | 24 | let bbu = assetBalance(this, U) | |
27 | 25 | let bbw = assetBalance(this, W) | |
28 | 26 | let bbs = assetBalance(this, S) | |
29 | 27 | if (if (if ((bbu == bbu)) | |
30 | 28 | then (bbw == bbw) | |
31 | 29 | else false) | |
32 | 30 | then (bbs == bbs) | |
33 | 31 | else false) | |
34 | 32 | then { | |
35 | 33 | let swap1 = invoke(WU, "exchange", [1], [AttachedPayment(W, (amnt * scale8))]) | |
36 | 34 | if ((swap1 == swap1)) | |
37 | 35 | then { | |
38 | 36 | let diffu = (assetBalance(this, U) - bbu) | |
39 | 37 | if ((diffu == diffu)) | |
40 | 38 | then { | |
41 | 39 | let swap2 = invoke(SU, "exchange", [1], [AttachedPayment(U, diffu)]) | |
42 | 40 | if ((swap2 == swap2)) | |
43 | 41 | then { | |
44 | 42 | let diffs = (assetBalance(this, S) - bbs) | |
45 | 43 | if ((diffs == diffs)) | |
46 | 44 | then { | |
47 | 45 | let swap3 = invoke(SW, "exchange", [1], [AttachedPayment(S, diffs)]) | |
48 | 46 | if ((swap3 == swap3)) | |
49 | 47 | then { | |
50 | 48 | let diffw = (assetBalance(this, W) - bbw) | |
51 | 49 | if ((diffw == diffw)) | |
52 | 50 | then if ((diffw > min)) | |
53 | - | then { | |
54 | - | let ok = "ok" | |
55 | - | [IntegerEntry("debug", diffw), ScriptTransfer(admin, diffw, W)] | |
56 | - | } | |
51 | + | then [IntegerEntry("debug", diffw)] | |
57 | 52 | else throw(toString(diffw)) | |
58 | 53 | else throw("strict value what the fuck") | |
59 | 54 | } | |
60 | 55 | else throw("strict value what the fuck") | |
61 | 56 | } | |
62 | 57 | else throw("strict value what the fuck") | |
63 | 58 | } | |
64 | 59 | else throw("strict value what the fuck") | |
65 | 60 | } | |
66 | 61 | else throw("strict value what the fuck") | |
67 | 62 | } | |
68 | 63 | else throw("strict value what the fuck") | |
69 | 64 | } | |
70 | 65 | else throw("Strict value is not equal to itself") | |
71 | 66 | } | |
72 | 67 | ||
73 | 68 | ||
74 | 69 | ||
75 | 70 | @Callable(i) | |
76 | 71 | func call2 (amnt,min) = if ((i.caller != admin)) | |
77 | 72 | then throw("only admin") | |
78 | 73 | else { | |
79 | 74 | let bbu = assetBalance(this, U) | |
80 | 75 | let bbw = assetBalance(this, W) | |
81 | 76 | let bbs = assetBalance(this, S) | |
82 | 77 | if (if (if ((bbu == bbu)) | |
83 | 78 | then (bbw == bbw) | |
84 | 79 | else false) | |
85 | 80 | then (bbs == bbs) | |
86 | 81 | else false) | |
87 | 82 | then { | |
88 | 83 | let swap1 = invoke(SW, "exchange", [1], [AttachedPayment(W, (amnt * scale8))]) | |
89 | 84 | if ((swap1 == swap1)) | |
90 | 85 | then { | |
91 | 86 | let diffs = (assetBalance(this, S) - bbs) | |
92 | 87 | if ((diffs == diffs)) | |
93 | 88 | then { | |
94 | 89 | let swap2 = invoke(SU, "exchange", [1], [AttachedPayment(S, diffs)]) | |
95 | 90 | if ((swap2 == swap2)) | |
96 | 91 | then { | |
97 | 92 | let diffu = (assetBalance(this, U) - bbu) | |
98 | 93 | if ((diffu == diffu)) | |
99 | 94 | then { | |
100 | 95 | let swap3 = invoke(WU, "exchange", [1], [AttachedPayment(U, diffu)]) | |
101 | 96 | if ((swap3 == swap3)) | |
102 | 97 | then { | |
103 | 98 | let diffw = (assetBalance(this, W) - bbw) | |
104 | 99 | if ((diffw == diffw)) | |
105 | 100 | then if ((diffw > min)) | |
106 | 101 | then { | |
107 | 102 | let ok = "ok" | |
108 | - | [IntegerEntry("debug", diffw) | |
103 | + | [IntegerEntry("debug", diffw)] | |
109 | 104 | } | |
110 | 105 | else throw(toString(diffw)) | |
111 | 106 | else throw("strict") | |
112 | 107 | } | |
113 | 108 | else throw("strict") | |
114 | 109 | } | |
115 | 110 | else throw("strict") | |
116 | 111 | } | |
117 | 112 | else throw("strict") | |
118 | 113 | } | |
119 | 114 | else throw("strict") | |
120 | 115 | } | |
121 | 116 | else throw("strict") | |
122 | 117 | } | |
123 | 118 | else throw("Strict") | |
124 | 119 | } | |
125 | 120 | ||
126 | 121 | ||
127 | 122 | @Verifier(tx) | |
128 | 123 | func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) | |
129 | 124 |
github/deemru/w8io/169f3d6 64.39 ms ◑