tx · 9hXLeXVbt2xejwvdf76ZyWqKeLBbiJEGqhFTps8a6ZQ8 3MuTR6FqVriefgvXkJtNxj8CNh3nBbuqidJ: -0.01400000 Waves 2019.10.10 13:59 [713662] smart account 3MuTR6FqVriefgvXkJtNxj8CNh3nBbuqidJ > SELF 0.00000000 Waves
{ "type": 13, "id": "9hXLeXVbt2xejwvdf76ZyWqKeLBbiJEGqhFTps8a6ZQ8", "fee": 1400000, "feeAssetId": null, "timestamp": 1570705181094, "version": 1, "sender": "3MuTR6FqVriefgvXkJtNxj8CNh3nBbuqidJ", "senderPublicKey": "7Egc9nr6FA2hbNNbo8H21n8htzQ5nYzsLc6eku6JU5pn", "proofs": [ "4FsxEtZJaJayf4fLjrFNktR5rKeUuFmxtWpq1grZB4YJKH9A6A1x7tThEKvNbb5BrDsYN3bx7UQR6Q1JZib5WVSj" ], "script": "base64:AAIDAAAAAAAAAAAAAAApAQAAABhnZXROdW1iZXJCeUFkZHJlc3NBbmRLZXkAAAACAAAAB2FkZHJlc3MAAAADa2V5BAAAAAckbWF0Y2gwCQAEGgAAAAIJAQAAABxAZXh0clVzZXIoYWRkcmVzc0Zyb21TdHJpbmcpAAAAAQUAAAAHYWRkcmVzcwUAAAADa2V5AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAANJbnQEAAAAAWEFAAAAByRtYXRjaDAFAAAAAWEAAAAAAAAAAAABAAAADmdldE51bWJlckJ5S2V5AAAAAQAAAANrZXkEAAAAByRtYXRjaDAJAAQaAAAAAgUAAAAEdGhpcwUAAAADa2V5AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAANJbnQEAAAAAWEFAAAAByRtYXRjaDAFAAAAAWEAAAAAAAAAAAABAAAADmdldFN0cmluZ0J5S2V5AAAAAQAAAANrZXkEAAAAByRtYXRjaDAJAAQdAAAAAgUAAAAEdGhpcwUAAAADa2V5AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAAZTdHJpbmcEAAAAAWEFAAAAByRtYXRjaDA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 713662, "spentComplexity": 0 } View: original | compacted Prev: 5PEWugAdjt3qCtGzWsuWBS6MJzeANW79VAy7s68h5zwa Next: DgfCe9CF3JJ7jtGd1BSzgnry3QRA1u4jzX2n2BpVN62J Diff:
Old | New | Differences | |
---|---|---|---|
35 | 35 | ||
36 | 36 | ||
37 | 37 | func h (b,c) = { | |
38 | - | let d = getString( | |
38 | + | let d = getString(addressFromStringValue(b), c) | |
39 | 39 | if ($isInstanceOf(d, "String")) | |
40 | 40 | then { | |
41 | 41 | let e = d |
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 | - | let d = getString( | |
38 | + | let d = getString(addressFromStringValue(b), 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 39.64 ms ◑