tx · 9u6QN8bi6cTkE6EZSvwLXGhTvS9PW9U6BjVszUdgAbLL 3MyiJb9yZnpyXJADhdEoNk3MT3FHKmbYRJX: -0.10000000 Waves 2020.04.01 05:29 [934475] smart account 3MyiJb9yZnpyXJADhdEoNk3MT3FHKmbYRJX > SELF 0.00000000 Waves
{ "type": 13, "id": "9u6QN8bi6cTkE6EZSvwLXGhTvS9PW9U6BjVszUdgAbLL", "fee": 10000000, "feeAssetId": null, "timestamp": 1585708247183, "version": 1, "sender": "3MyiJb9yZnpyXJADhdEoNk3MT3FHKmbYRJX", "senderPublicKey": "HDqeggkNi96GMzyGv4AQMQms43nwSrvgMjTDznyivt8R", "proofs": [ "swPxCVtg8h3h7efzhhddCBkGpkxeKuMueVoog7jW7aByYa2sQdvBSF7eGzYhKKRjckayckw7DnTqzz9z2eCo93x" ], "script": "base64:AAIDAAAAAAAAAA0IARIAEgASAwoBCBIAAAAAOAEAAAAOZ2V0TnVtYmVyQnlLZXkAAAABAAAAA2tleQQAAAAHJG1hdGNoMAkABBoAAAACBQAAAAR0aGlzBQAAAANrZXkDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAA0ludAQAAAABYQUAAAAHJG1hdGNoMAUAAAABYQAAAAAAAAAAAAEAAAAOZ2V0U3RyaW5nQnlLZXkAAAABAAAAA2tleQQAAAAHJG1hdGNoMAkABB0AAAACBQAAAAR0aGlzBQAAAANrZXkDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAABlN0cmluZwQAAAABYQUAAAAHJG1hdGNoMAUAAAABYQIAAAAAAQAAABZnZXRCb29sQnlBZGRyZXNzQW5kS2V5AAAAAgAAAAdhZGRyZXNzAAAAA2tleQQAAAAHJG1hdGNoMAkABBsAAAACBQAAAAdhZGRyZXNzBQAAAANrZXkDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAB0Jvb2xlYW4EAAAAAWEFAAAAByRtYXRjaDAFAAAAAWEHAQAAABhnZXRTdHJpbmdCeUFkZHJlc3NBbmRLZX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AACBQAAAA1GaXJzdE9yZGVyS2V5AwkAAAAAAAACBQAAAAluZXdTdGF0dXMFAAAABkZJTExFRAUAAAAJbmV4dE9yZGVyBQAAAApmaXJzdE9yZGVyCQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACBQAAAAxMYXN0T3JkZXJLZXkDAwkAAAAAAAACBQAAAAluZXdTdGF0dXMFAAAABkZJTExFRAkAAAAAAAACBQAAAApmaXJzdE9yZGVyBQAAAAlsYXN0T3JkZXIHAgAAAAAFAAAACWxhc3RPcmRlcgkABEwAAAACCQEAAAAJRGF0YUVudHJ5AAAAAgkBAAAAFmdldE9yZGVyRmlsbGVkVG90YWxLZXkAAAABBQAAAApmaXJzdE9yZGVyCQAAZAAAAAIFAAAAC2ZpbGxlZFRvdGFsBQAAABNmaWxsYWJsZU9yZGVyQW1vdW50CQAETAAAAAIJAQAAAAlEYXRhRW50cnkAAAACCQEAAAARZ2V0T3JkZXJTdGF0dXNLZXkAAAABBQAAAApmaXJzdE9yZGVyBQAAAAluZXdTdGF0dXMFAAAAA25pbAkBAAAAC1RyYW5zZmVyU2V0AAAAAQkABEwAAAACCQEAAAAOU2NyaXB0VHJhbnNmZXIAAAADCQEAAAAcQGV4dHJVc2VyKGFkZHJlc3NGcm9tU3RyaW5nKQAAAAEFAAAACm9yZGVyT3duZXIFAAAAE2ZpbGxhYmxlT3JkZXJBbW91bnQFAAAAD25ldXRyaW5vQXNzZXRJZAUAAAADbmlsAAAAAH5dDXo=", "chainId": 84, "height": 934475, "spentComplexity": 0 } View: original | compacted Prev: E3oRWCRcZLtcdUeKkBt8NiYqEeVrApkNY9xxTKqpcuBi Next: DNsRoo9qyV1GZgFRbnXLjvVJQDFhRp2VCL48XxtJ1grS Diff:
Old | New | Differences | |
---|---|---|---|
212 | 212 | ||
213 | 213 | ||
214 | 214 | @Callable(an) | |
215 | + | func addLiquidationOrderTest () = { | |
216 | + | let ao = extract(an.payment) | |
217 | + | let ap = toBase58String(keccak256((((toBytes(ao.amount) + an.caller.bytes) + toBytes(height)) + an.transactionId))) | |
218 | + | let K = toString(an.caller) | |
219 | + | if (((1 + 1) > 1)) | |
220 | + | then throw("running here!") | |
221 | + | else WriteSet([DataEntry(J(K), ap)]) | |
222 | + | } | |
223 | + | ||
224 | + | ||
225 | + | ||
226 | + | @Callable(an) | |
215 | 227 | func cancelOrder (C) = { | |
216 | 228 | let K = ag(C) | |
217 | 229 | let M = (ae(C) - ai(C)) |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 3 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | func a (b) = { | |
5 | 5 | let c = getInteger(this, b) | |
6 | 6 | if ($isInstanceOf(c, "Int")) | |
7 | 7 | then { | |
8 | 8 | let d = c | |
9 | 9 | d | |
10 | 10 | } | |
11 | 11 | else 0 | |
12 | 12 | } | |
13 | 13 | ||
14 | 14 | ||
15 | 15 | func e (b) = { | |
16 | 16 | let c = getString(this, b) | |
17 | 17 | if ($isInstanceOf(c, "String")) | |
18 | 18 | then { | |
19 | 19 | let d = c | |
20 | 20 | d | |
21 | 21 | } | |
22 | 22 | else "" | |
23 | 23 | } | |
24 | 24 | ||
25 | 25 | ||
26 | 26 | func f (g,b) = { | |
27 | 27 | let c = getBoolean(g, b) | |
28 | 28 | if ($isInstanceOf(c, "Boolean")) | |
29 | 29 | then { | |
30 | 30 | let d = c | |
31 | 31 | d | |
32 | 32 | } | |
33 | 33 | else false | |
34 | 34 | } | |
35 | 35 | ||
36 | 36 | ||
37 | 37 | func h (g,b) = { | |
38 | 38 | let c = getString(g, b) | |
39 | 39 | if ($isInstanceOf(c, "String")) | |
40 | 40 | then { | |
41 | 41 | let d = c | |
42 | 42 | d | |
43 | 43 | } | |
44 | 44 | else "" | |
45 | 45 | } | |
46 | 46 | ||
47 | 47 | ||
48 | 48 | func i (g,b) = { | |
49 | 49 | let c = getInteger(g, b) | |
50 | 50 | if ($isInstanceOf(c, "Int")) | |
51 | 51 | then { | |
52 | 52 | let d = c | |
53 | 53 | d | |
54 | 54 | } | |
55 | 55 | else 0 | |
56 | 56 | } | |
57 | 57 | ||
58 | 58 | ||
59 | 59 | let j = 100000000 | |
60 | 60 | ||
61 | 61 | let k = "_" | |
62 | 62 | ||
63 | 63 | let l = 1000000 | |
64 | 64 | ||
65 | 65 | let m = 1000 | |
66 | 66 | ||
67 | 67 | let n = 50 | |
68 | 68 | ||
69 | 69 | let o = "canceled" | |
70 | 70 | ||
71 | 71 | let p = "new" | |
72 | 72 | ||
73 | 73 | let q = "filled" | |
74 | 74 | ||
75 | 75 | let r = "neutrino_contract" | |
76 | 76 | ||
77 | 77 | let s = "price" | |
78 | 78 | ||
79 | 79 | let t = "bond_asset_id" | |
80 | 80 | ||
81 | 81 | let u = "neutrino_asset_id" | |
82 | 82 | ||
83 | 83 | let v = "control_contract" | |
84 | 84 | ||
85 | 85 | let w = "balance_lock_" | |
86 | 86 | ||
87 | 87 | let x = (w + "waves") | |
88 | 88 | ||
89 | 89 | let y = (w + "neutrino") | |
90 | 90 | ||
91 | 91 | let z = "order_first" | |
92 | 92 | ||
93 | 93 | let A = "order_last" | |
94 | 94 | ||
95 | 95 | func B (C) = ("order_prev_" + C) | |
96 | 96 | ||
97 | 97 | ||
98 | 98 | func D (C) = ("order_next_" + C) | |
99 | 99 | ||
100 | 100 | ||
101 | 101 | func E (C) = ("order_total_" + C) | |
102 | 102 | ||
103 | 103 | ||
104 | 104 | func F (C) = ("order_owner_" + C) | |
105 | 105 | ||
106 | 106 | ||
107 | 107 | func G (C) = ("order_height_" + C) | |
108 | 108 | ||
109 | 109 | ||
110 | 110 | func H (C) = ("order_status_" + C) | |
111 | 111 | ||
112 | 112 | ||
113 | 113 | func I (C) = ("order_filled_total_" + C) | |
114 | 114 | ||
115 | 115 | ||
116 | 116 | func J (K) = ("last_order_owner_" + K) | |
117 | 117 | ||
118 | 118 | ||
119 | 119 | func L (M,N) = fraction(fraction(M, 100, N), j, l) | |
120 | 120 | ||
121 | 121 | ||
122 | 122 | func O (M,N) = fraction(fraction(M, N, 100), l, j) | |
123 | 123 | ||
124 | 124 | ||
125 | 125 | func P (M,N) = O(M, N) | |
126 | 126 | ||
127 | 127 | ||
128 | 128 | let Q = addressFromStringValue(e(r)) | |
129 | 129 | ||
130 | 130 | let R = addressFromStringValue(h(Q, v)) | |
131 | 131 | ||
132 | 132 | let S = this | |
133 | 133 | ||
134 | 134 | let T = fromBase58String(h(Q, u)) | |
135 | 135 | ||
136 | 136 | let U = fromBase58String("Qh28HvUAcFboD1GsAcyURQjNW6mdpuGvXVgFS9e3CzC") | |
137 | 137 | ||
138 | 138 | let V = e(z) | |
139 | 139 | ||
140 | 140 | let W = e(A) | |
141 | 141 | ||
142 | 142 | let X = f(R, "is_blocked") | |
143 | 143 | ||
144 | 144 | let Y = i(R, s) | |
145 | 145 | ||
146 | 146 | let Z = i(Q, y) | |
147 | 147 | ||
148 | 148 | let aa = i(Q, x) | |
149 | 149 | ||
150 | 150 | let ab = (wavesBalance(Q) - aa) | |
151 | 151 | ||
152 | 152 | let ac = (((Z + extract(assetInfo(T)).quantity) - assetBalance(Q, T)) - assetBalance(S, T)) | |
153 | 153 | ||
154 | 154 | let ad = (O(ab, Y) - ac) | |
155 | 155 | ||
156 | 156 | func ae (af) = a(E(af)) | |
157 | 157 | ||
158 | 158 | ||
159 | 159 | func ag (af) = e(F(af)) | |
160 | 160 | ||
161 | 161 | ||
162 | 162 | func ah (af) = e(H(af)) | |
163 | 163 | ||
164 | 164 | ||
165 | 165 | func ai (af) = a(I(af)) | |
166 | 166 | ||
167 | 167 | ||
168 | 168 | func aj (af) = e(B(af)) | |
169 | 169 | ||
170 | 170 | ||
171 | 171 | func ak (af) = e(D(af)) | |
172 | 172 | ||
173 | 173 | ||
174 | 174 | func al (af) = a(G(af)) | |
175 | 175 | ||
176 | 176 | ||
177 | 177 | func am (K) = e(J(K)) | |
178 | 178 | ||
179 | 179 | ||
180 | 180 | @Callable(an) | |
181 | 181 | func addLiquidationOrder () = { | |
182 | 182 | let ao = extract(an.payment) | |
183 | 183 | let ap = toBase58String(keccak256((((toBytes(ao.amount) + an.caller.bytes) + toBytes(height)) + an.transactionId))) | |
184 | 184 | let aq = ak(W) | |
185 | 185 | let ar = ah(W) | |
186 | 186 | let K = toString(an.caller) | |
187 | 187 | if (X) | |
188 | 188 | then throw("contract is blocked by EMERGENCY SHUTDOWN actions untill reactivation by emergency oracles") | |
189 | 189 | else if ((ao.assetId != U)) | |
190 | 190 | then throw("can use appropriate neutrino bonds tokens only") | |
191 | 191 | else if ((ag(ap) != "")) | |
192 | 192 | then throw("an order is already exists") | |
193 | 193 | else if ((aq != "")) | |
194 | 194 | then throw(("nextOrder is not last. Info:" + aq)) | |
195 | 195 | else if (if ((V != "")) | |
196 | 196 | then (W == "") | |
197 | 197 | else false) | |
198 | 198 | then throw("invalid last order") | |
199 | 199 | else if (if ((V != "")) | |
200 | 200 | then (ar != p) | |
201 | 201 | else false) | |
202 | 202 | then throw("last order status is not new") | |
203 | 203 | else if ((l > ao.amount)) | |
204 | 204 | then throw("order amount must be higher than 1 NSBT") | |
205 | 205 | else WriteSet([DataEntry(J(K), ap), DataEntry(B(ap), W), DataEntry(D(W), if ((W == "")) | |
206 | 206 | then "" | |
207 | 207 | else ap), DataEntry(z, if ((V == "")) | |
208 | 208 | then ap | |
209 | 209 | else V), DataEntry(A, ap), DataEntry(E(ap), ao.amount), DataEntry(F(ap), K), DataEntry(G(ap), height), DataEntry(H(ap), p)]) | |
210 | 210 | } | |
211 | 211 | ||
212 | 212 | ||
213 | 213 | ||
214 | 214 | @Callable(an) | |
215 | + | func addLiquidationOrderTest () = { | |
216 | + | let ao = extract(an.payment) | |
217 | + | let ap = toBase58String(keccak256((((toBytes(ao.amount) + an.caller.bytes) + toBytes(height)) + an.transactionId))) | |
218 | + | let K = toString(an.caller) | |
219 | + | if (((1 + 1) > 1)) | |
220 | + | then throw("running here!") | |
221 | + | else WriteSet([DataEntry(J(K), ap)]) | |
222 | + | } | |
223 | + | ||
224 | + | ||
225 | + | ||
226 | + | @Callable(an) | |
215 | 227 | func cancelOrder (C) = { | |
216 | 228 | let K = ag(C) | |
217 | 229 | let M = (ae(C) - ai(C)) | |
218 | 230 | let aq = ak(C) | |
219 | 231 | let as = aj(C) | |
220 | 232 | if (X) | |
221 | 233 | then throw("contract is blocked by EMERGENCY SHUTDOWN actions untill reactivation by emergency oracles") | |
222 | 234 | else if ((K != toString(an.caller))) | |
223 | 235 | then throw("permission denied") | |
224 | 236 | else if ((ah(C) != p)) | |
225 | 237 | then throw("invalid order status") | |
226 | 238 | else ScriptResult(WriteSet([DataEntry(z, if ((V == C)) | |
227 | 239 | then aq | |
228 | 240 | else V), DataEntry(A, if ((W == C)) | |
229 | 241 | then as | |
230 | 242 | else W), DataEntry(D(as), aq), DataEntry(B(aq), as), DataEntry(H(C), o)]), TransferSet([ScriptTransfer(an.caller, M, U)])) | |
231 | 243 | } | |
232 | 244 | ||
233 | 245 | ||
234 | 246 | ||
235 | 247 | @Callable(an) | |
236 | 248 | func liquidateBond () = { | |
237 | 249 | let at = if ((0 >= ad)) | |
238 | 250 | then 0 | |
239 | 251 | else ad | |
240 | 252 | let au = assetBalance(this, T) | |
241 | 253 | let av = if ((at >= au)) | |
242 | 254 | then 0 | |
243 | 255 | else (au - at) | |
244 | 256 | let aw = at | |
245 | 257 | if (X) | |
246 | 258 | then throw("contract is blocked by EMERGENCY SHUTDOWN actions untill reactivation by emergency oracles") | |
247 | 259 | else if (if ((av == 0)) | |
248 | 260 | then (au == 0) | |
249 | 261 | else false) | |
250 | 262 | then throw("cannot liquidate order without neutrino on the smart contract") | |
251 | 263 | else if ((av > 0)) | |
252 | 264 | then TransferSet([ScriptTransfer(Q, av, T)]) | |
253 | 265 | else if ((0 >= aw)) | |
254 | 266 | then throw("there is no proficit on the smart contract now") | |
255 | 267 | else if ((V == "")) | |
256 | 268 | then throw("empty orderbook") | |
257 | 269 | else { | |
258 | 270 | let aq = ak(V) | |
259 | 271 | let ax = ae(V) | |
260 | 272 | let ay = ag(V) | |
261 | 273 | let az = ai(V) | |
262 | 274 | let M = (ax - az) | |
263 | 275 | let aA = if ((aw >= M)) | |
264 | 276 | then q | |
265 | 277 | else p | |
266 | 278 | let aB = if ((aw >= M)) | |
267 | 279 | then M | |
268 | 280 | else aw | |
269 | 281 | ScriptResult(WriteSet([DataEntry(B(aq), if ((aA == q)) | |
270 | 282 | then "" | |
271 | 283 | else V), DataEntry(z, if ((aA == q)) | |
272 | 284 | then aq | |
273 | 285 | else V), DataEntry(A, if (if ((aA == q)) | |
274 | 286 | then (V == W) | |
275 | 287 | else false) | |
276 | 288 | then "" | |
277 | 289 | else W), DataEntry(I(V), (az + aB)), DataEntry(H(V), aA)]), TransferSet([ScriptTransfer(addressFromStringValue(ay), aB, T)])) | |
278 | 290 | } | |
279 | 291 | } | |
280 | 292 | ||
281 | 293 |
github/deemru/w8io/169f3d6 43.76 ms ◑