tx · H5rvSmHfZ2Zn7K4uEUhYt7WZeh1XoEHNE9RMpwNpDWxs 3MwLuek2V6JjKybacSPjk4uo78pNkttERW1: -0.01400000 Waves 2019.10.10 13:40 [713640] smart account 3MwLuek2V6JjKybacSPjk4uo78pNkttERW1 > SELF 0.00000000 Waves
{ "type": 13, "id": "H5rvSmHfZ2Zn7K4uEUhYt7WZeh1XoEHNE9RMpwNpDWxs", "fee": 1400000, "feeAssetId": null, "timestamp": 1570704029905, "version": 1, "sender": "3MwLuek2V6JjKybacSPjk4uo78pNkttERW1", "senderPublicKey": "J9XYsY58fH56YchACAvg2gFhmBF95dSf8LXAJB499n1J", "proofs": [ "5hGDHh7vgvMTnsMyggMbGCjKVVRHuNdnMh23NJbUSs1Bw2bopZQzKWwbirYX6A9SRAP24mhVZnLhRsp5TweiXG3L" ], "script": "base64:AAIDAAAAAAAAAAAAAAApAQAAABhnZXROdW1iZXJCeUFkZHJlc3NBbmRLZXkAAAACAAAAB2FkZHJlc3MAAAADa2V5BAAAAAckbWF0Y2gwCQAEGgAAAAIJAQAAABxAZXh0clVzZXIoYWRkcmVzc0Zyb21TdHJpbmcpAAAAAQUAAAAHYWRkcmVzcwUAAAADa2V5AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAANJbnQEAAAAAWEFAAAAByRtYXRjaDAFAAAAAWEAAAAAAAAAAAABAAAADmdldE51bWJlckJ5S2V5AAAAAQAAAANrZXkEAAAAByRtYXRjaDAJAAQaAAAAAgUAAAAEdGhpcwUAAAADa2V5AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAANJbnQEAAAAAWEFAAAAByRtYXRjaDAFAAAAAWEAAAAAAAAAAAABAAAADmdldFN0cmluZ0J5S2V5AAAAAQAAAANrZXkEAAAAByRtYXRjaDAJAAQdAAAAAgUAAAAEdGhpcwUAAAADa2V5AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAAZTdHJpbmcEAAAAAWEFAAAAByRtYXRjaDAFAAAAAWECAAAAAA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90YWwJAABoAAAAAgkAAGkAAAACCQAAaAAAAAIFAAAADGZpbGxlZEFtb3VudAUAAAAKb3JkZXJQcmljZQAAAAAAAAAAZAUAAAANQ0VOVFNJTkRPTExBUgQAAAAGc3RhdHVzAwkAAGcAAAACBQAAAApib25kQW1vdW50BQAAAAZhbW91bnQFAAAABkZJTExFRAUAAAADTkVXCQEAAAAMU2NyaXB0UmVzdWx0AAAAAgkBAAAACFdyaXRlU2V0AAAAAQkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgUAAAAMT3JkZXJCb29rS2V5BQAAAAxuZXdPcmRlcmJvb2sJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAIJAQAAABZnZXRPcmRlckZpbGxlZFRvdGFsS2V5AAAAAQUAAAAHb3JkZXJJZAkAAGQAAAACBQAAAAtmaWxsZWRUb3RhbAUAAAAFdG90YWwJAARMAAAAAgkBAAAACURhdGFFbnRyeQAAAAIJAQAAABFnZXRPcmRlclN0YXR1c0tleQAAAAEFAAAAB29yZGVySWQFAAAABnN0YXR1cwUAAAADbmlsCQEAAAALVHJhbnNmZXJTZXQAAAABCQAETAAAAAIJAQAAAA5TY3JpcHRUcmFuc2ZlcgAAAAMJAQAAABxAZXh0clVzZXIoYWRkcmVzc0Zyb21TdHJpbmcpAAAAAQUAAAAKb3JkZXJPd25lcgUAAAAMZmlsbGVkQW1vdW50BQAAAAtib25kQXNzZXRJZAkABEwAAAACCQEAAAAOU2NyaXB0VHJhbnNmZXIAAAADCQEAAAAcQGV4dHJVc2VyKGFkZHJlc3NGcm9tU3RyaW5nKQAAAAEFAAAAEG5ldXRyaW5vQ29udHJhY3QFAAAABXRvdGFsBQAAAA9uZXV0cmlub0Fzc2V0SWQFAAAAA25pbAAAAAAJin7r", "chainId": 84, "height": 713640, "spentComplexity": 0 } View: original | compacted Prev: 9wZwj18qCh1QMfRKaxzXwxG7uwvchbS6utsMjc6td8ML Next: EQdcXgtX1Epvqoxk5kKJCyXb8AQnhV2kHFbe59PmW1YU Full:
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 3 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | func a (b,c) = { | |
5 | 5 | let d = getInteger(addressFromStringValue(b), c) | |
6 | 6 | if ($isInstanceOf(d, "Int")) | |
7 | 7 | then { | |
8 | 8 | let e = d | |
9 | 9 | e | |
10 | 10 | } | |
11 | 11 | else 0 | |
12 | 12 | } | |
13 | 13 | ||
14 | 14 | ||
15 | 15 | func f (c) = { | |
16 | 16 | let d = getInteger(this, c) | |
17 | 17 | if ($isInstanceOf(d, "Int")) | |
18 | 18 | then { | |
19 | 19 | let e = d | |
20 | 20 | e | |
21 | 21 | } | |
22 | 22 | else 0 | |
23 | 23 | } | |
24 | 24 | ||
25 | 25 | ||
26 | 26 | func g (c) = { | |
27 | 27 | let d = getString(this, c) | |
28 | 28 | if ($isInstanceOf(d, "String")) | |
29 | 29 | then { | |
30 | 30 | let e = d | |
31 | 31 | e | |
32 | 32 | } | |
33 | 33 | else "" | |
34 | 34 | } | |
35 | 35 | ||
36 | 36 | ||
37 | 37 | func h (b,c) = { | |
38 | 38 | let d = getString(this, c) | |
39 | 39 | if ($isInstanceOf(d, "String")) | |
40 | 40 | then { | |
41 | 41 | let e = d | |
42 | 42 | e | |
43 | 43 | } | |
44 | 44 | else "" | |
45 | 45 | } | |
46 | 46 | ||
47 | 47 | ||
48 | 48 | let i = "_" | |
49 | 49 | ||
50 | 50 | let j = 100 | |
51 | 51 | ||
52 | 52 | let k = "canceled" | |
53 | 53 | ||
54 | 54 | let l = "new" | |
55 | 55 | ||
56 | 56 | let m = "filled" | |
57 | 57 | ||
58 | 58 | let n = "orderbook" | |
59 | 59 | ||
60 | 60 | let o = "order_price_" | |
61 | 61 | ||
62 | 62 | let p = "order_total_" | |
63 | 63 | ||
64 | 64 | let q = "order_filled_total_" | |
65 | 65 | ||
66 | 66 | let r = "order_owner_" | |
67 | 67 | ||
68 | 68 | let s = "order_height_" | |
69 | 69 | ||
70 | 70 | let t = "order_status_" | |
71 | 71 | ||
72 | 72 | let u = "price" | |
73 | 73 | ||
74 | 74 | let v = "bond_asset_id" | |
75 | 75 | ||
76 | 76 | let w = "neutrino_asset_id" | |
77 | 77 | ||
78 | 78 | let x = "neutrino_contract" | |
79 | 79 | ||
80 | 80 | func y (z) = (o + z) | |
81 | 81 | ||
82 | 82 | ||
83 | 83 | func A (z) = (p + z) | |
84 | 84 | ||
85 | 85 | ||
86 | 86 | func B (z) = (r + z) | |
87 | 87 | ||
88 | 88 | ||
89 | 89 | func C (z) = (s + z) | |
90 | 90 | ||
91 | 91 | ||
92 | 92 | func D (z) = (t + z) | |
93 | 93 | ||
94 | 94 | ||
95 | 95 | func E (z) = (q + z) | |
96 | 96 | ||
97 | 97 | ||
98 | 98 | let F = g(x) | |
99 | 99 | ||
100 | 100 | let G = a(F, u) | |
101 | 101 | ||
102 | 102 | let H = fromBase58String(h(F, w)) | |
103 | 103 | ||
104 | 104 | let I = fromBase58String(h(F, v)) | |
105 | 105 | ||
106 | 106 | let J = g(n) | |
107 | 107 | ||
108 | 108 | let K = wavesBalance(addressFromStringValue(F)) | |
109 | 109 | ||
110 | 110 | let L = { | |
111 | 111 | let M = extract(assetInfo(H)) | |
112 | 112 | (M.quantity - assetBalance(addressFromStringValue(F), H)) | |
113 | 113 | } | |
114 | 114 | ||
115 | 115 | func N (O) = f(y(O)) | |
116 | 116 | ||
117 | 117 | ||
118 | 118 | func P (O) = f(A(O)) | |
119 | 119 | ||
120 | 120 | ||
121 | 121 | func Q (O) = g(B(O)) | |
122 | 122 | ||
123 | 123 | ||
124 | 124 | func R (O) = g(D(O)) | |
125 | 125 | ||
126 | 126 | ||
127 | 127 | func S (O) = f(E(O)) | |
128 | 128 | ||
129 | 129 | ||
130 | 130 | func T (O) = (O + i) | |
131 | 131 | ||
132 | 132 | ||
133 | 133 | func U (z,V) = { | |
134 | 134 | let W = split(J, i) | |
135 | 135 | let X = T(z) | |
136 | 136 | if ((V == 0)) | |
137 | 137 | then (X + J) | |
138 | 138 | else if ((V >= (size(W) - 1))) | |
139 | 139 | then (J + X) | |
140 | 140 | else { | |
141 | 141 | let Y = split(J, T(W[V])) | |
142 | 142 | (((Y[0] + X) + T(W[V])) + Y[1]) | |
143 | 143 | } | |
144 | 144 | } | |
145 | 145 | ||
146 | 146 | ||
147 | 147 | func Z (z) = { | |
148 | 148 | let Y = split(J, T(z)) | |
149 | 149 | (Y[0] + Y[1]) | |
150 | 150 | } | |
151 | 151 | ||
152 | 152 | ||
153 | 153 | @Callable(aa) | |
154 | 154 | func setOrder (G,V) = { | |
155 | 155 | let ab = extract(aa.payment) | |
156 | 156 | let ac = toBase58String(keccak256((((toBytes(G) + toBytes(ab.amount)) + aa.caller.bytes) + toBytes(height)))) | |
157 | 157 | if ((ab.assetId != H)) | |
158 | 158 | then throw("can use neutrino only") | |
159 | 159 | else if ((0 >= G)) | |
160 | 160 | then throw("price less zero") | |
161 | 161 | else if ((Q(ac) != "")) | |
162 | 162 | then throw("order exists") | |
163 | 163 | else { | |
164 | 164 | let W = split(J, i) | |
165 | 165 | let ad = if ((V == 0)) | |
166 | 166 | then "" | |
167 | 167 | else W[(V - 1)] | |
168 | 168 | let ae = N(ad) | |
169 | 169 | let af = if (if ((ad != "")) | |
170 | 170 | then (G > ae) | |
171 | 171 | else false) | |
172 | 172 | then true | |
173 | 173 | else false | |
174 | 174 | let ag = W[V] | |
175 | 175 | let ah = N(ag) | |
176 | 176 | let ai = if ((ah >= G)) | |
177 | 177 | then true | |
178 | 178 | else false | |
179 | 179 | if (if (af) | |
180 | 180 | then true | |
181 | 181 | else ai) | |
182 | 182 | then throw(((("invalid order isPrevOrderError:" + toString(ai)) + " isNextOrderError:") + toString(af))) | |
183 | 183 | else WriteSet([DataEntry(n, U(ac, V)), DataEntry(y(ac), G), DataEntry(A(ac), ab.amount), DataEntry(B(ac), toString(aa.caller)), DataEntry(C(ac), height), DataEntry(D(ac), l)]) | |
184 | 184 | } | |
185 | 185 | } | |
186 | 186 | ||
187 | 187 | ||
188 | 188 | ||
189 | 189 | @Callable(aa) | |
190 | 190 | func cancelOrder (z) = { | |
191 | 191 | let aj = Q(z) | |
192 | 192 | let ak = (P(z) - S(z)) | |
193 | 193 | if ((aj != toString(aa.caller))) | |
194 | 194 | then throw("permission denied") | |
195 | 195 | else ScriptResult(WriteSet([DataEntry(n, Z(z)), DataEntry(D(z), k)]), TransferSet([ScriptTransfer(aa.caller, ak, H)])) | |
196 | 196 | } | |
197 | 197 | ||
198 | 198 | ||
199 | 199 | ||
200 | 200 | @Callable(aa) | |
201 | 201 | func executeOrder () = { | |
202 | 202 | let al = assetBalance(this, I) | |
203 | 203 | let am = ((L - ((K * G) / 100)) / j) | |
204 | 204 | let an = if ((0 >= am)) | |
205 | 205 | then 0 | |
206 | 206 | else am | |
207 | 207 | let ao = if ((an >= al)) | |
208 | 208 | then al | |
209 | 209 | else an | |
210 | 210 | let ap = if ((an >= al)) | |
211 | 211 | then 0 | |
212 | 212 | else (al - an) | |
213 | 213 | if ((ao == 0)) | |
214 | 214 | then TransferSet([ScriptTransfer(addressFromStringValue(F), ap, I)]) | |
215 | 215 | else { | |
216 | 216 | let z = split(J, i)[0] | |
217 | 217 | let aq = S(z) | |
218 | 218 | let ar = P(z) | |
219 | 219 | let as = N(z) | |
220 | 220 | let at = Q(z) | |
221 | 221 | let ak = ((((ar - aq) * 100) / as) / j) | |
222 | 222 | let au = if ((ao >= ak)) | |
223 | 223 | then Z(z) | |
224 | 224 | else J | |
225 | 225 | let av = if ((ao >= ak)) | |
226 | 226 | then ak | |
227 | 227 | else ao | |
228 | 228 | let aw = (((av * as) / 100) * j) | |
229 | 229 | let ax = if ((ao >= ak)) | |
230 | 230 | then m | |
231 | 231 | else l | |
232 | 232 | ScriptResult(WriteSet([DataEntry(n, au), DataEntry(E(z), (aq + aw)), DataEntry(D(z), ax)]), TransferSet([ScriptTransfer(addressFromStringValue(at), av, I), ScriptTransfer(addressFromStringValue(F), aw, H)])) | |
233 | 233 | } | |
234 | 234 | } | |
235 | 235 | ||
236 | 236 |
github/deemru/w8io/169f3d6 77.49 ms ◑