tx · DjgXQEdjyvnGZLBFERUEAmXmeD3PdpeRbbk9sDGot72x 3N1SXpSHeCeqSewbXS79otbnmP89uKUkWyf: -0.01000000 Waves 2020.06.10 18:06 [1037477] smart account 3N1SXpSHeCeqSewbXS79otbnmP89uKUkWyf > SELF 0.00000000 Waves
{ "type": 13, "id": "DjgXQEdjyvnGZLBFERUEAmXmeD3PdpeRbbk9sDGot72x", "fee": 1000000, "feeAssetId": null, "timestamp": 1591801599899, "version": 1, "sender": "3N1SXpSHeCeqSewbXS79otbnmP89uKUkWyf", "senderPublicKey": "GHUE94wSngxjR6mgyfWLqmuf8wJPJaQypJAwPKGHYoAn", "proofs": [ "4Pbz6qfrfikpr9pNGvN3vE5YXNDuz4zqZxf2DPevkQc3gs5S4vpvo2JdkD57pQ83SJU7Bi1yCnnzdTvR3y3Wa7R4" ], "script": "base64:AAIDAAAAAAAAABMIARIECgIBCBIAEgMKAQgSABIAAAAAOQEAAAAOZ2V0TnVtYmVyQnlLZXkAAAABAAAAA2tleQQAAAAHJG1hdGNoMAkABBoAAAACBQAAAAR0aGlzBQAAAANrZXkDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAA0ludAQAAAABYQUAAAAHJG1hdGNoMAUAAAABYQAAAAAAAAAAAAEAAAAOZ2V0U3RyaW5nQnlLZXkAAAABAAAAA2tleQQAAAAHJG1hdGNoMAkABB0AAAACBQAAAAR0aGlzBQAAAANrZXkDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAABlN0cmluZwQAAAABYQUAAAAHJG1hdGNoMAUAAAABYQIAAAAAAQAAABZnZXRCb29sQnlBZGRyZXNzQW5kS2V5AAAAAgAAAAdhZGRyZXNzAAAAA2tleQQAAAAHJG1hdGNoMAkABBsAAAACBQAAAAdhZGRyZXNzBQAAAANrZXkDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAB0Jvb2xlYW4EAAAAAWEFAAAAByRtYXRjaDAFAAAAAWEHAQAAABhnZXRTdHJpbmdCeUFkZHJlc3N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AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAkAAlkAAAABCQABkQAAAAIFAAAAEHB1YktleUFkbWluc0xpc3QAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAADCQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAQkAAlkAAAABCQABkQAAAAIFAAAAEHB1YktleUFkbWluc0xpc3QAAAAAAAAAAAEAAAAAAAAAAAEAAAAAAAAAAAADCQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAgkAAlkAAAABCQABkQAAAAIFAAAAEHB1YktleUFkbWluc0xpc3QAAAAAAAAAAAIAAAAAAAAAAAEAAAAAAAAAAAADCQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAwkAAlkAAAABCQABkQAAAAIFAAAAEHB1YktleUFkbWluc0xpc3QAAAAAAAAAAAMAAAAAAAAAAAIAAAAAAAAAAAAJAABnAAAAAgUAAAAFY291bnQAAAAAAAAAAAMh6hSd", "chainId": 84, "height": 1037477, "spentComplexity": 0 } View: original | compacted Prev: none Next: F9KfmYNC57KHts2JyXkPAoSq3m3XAxaN3Ctp6nfMWGiY Full:
Old | New | Differences | |
---|---|---|---|
1 | - | # no script | |
1 | + | {-# STDLIB_VERSION 3 #-} | |
2 | + | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | + | {-# CONTENT_TYPE DAPP #-} | |
4 | + | func a (b) = { | |
5 | + | let c = getInteger(this, b) | |
6 | + | if ($isInstanceOf(c, "Int")) | |
7 | + | then { | |
8 | + | let d = c | |
9 | + | d | |
10 | + | } | |
11 | + | else 0 | |
12 | + | } | |
13 | + | ||
14 | + | ||
15 | + | func e (b) = { | |
16 | + | let c = getString(this, b) | |
17 | + | if ($isInstanceOf(c, "String")) | |
18 | + | then { | |
19 | + | let d = c | |
20 | + | d | |
21 | + | } | |
22 | + | else "" | |
23 | + | } | |
24 | + | ||
25 | + | ||
26 | + | func f (g,b) = { | |
27 | + | let c = getBoolean(g, b) | |
28 | + | if ($isInstanceOf(c, "Boolean")) | |
29 | + | then { | |
30 | + | let d = c | |
31 | + | d | |
32 | + | } | |
33 | + | else false | |
34 | + | } | |
35 | + | ||
36 | + | ||
37 | + | func h (g,b) = { | |
38 | + | let c = getString(g, b) | |
39 | + | if ($isInstanceOf(c, "String")) | |
40 | + | then { | |
41 | + | let d = c | |
42 | + | d | |
43 | + | } | |
44 | + | else "" | |
45 | + | } | |
46 | + | ||
47 | + | ||
48 | + | func i (g,b) = { | |
49 | + | let c = getInteger(g, b) | |
50 | + | if ($isInstanceOf(c, "Int")) | |
51 | + | then { | |
52 | + | let d = c | |
53 | + | d | |
54 | + | } | |
55 | + | else 0 | |
56 | + | } | |
57 | + | ||
58 | + | ||
59 | + | let j = 100000000 | |
60 | + | ||
61 | + | let k = 1000000 | |
62 | + | ||
63 | + | let l = 1000000 | |
64 | + | ||
65 | + | let m = "canceled" | |
66 | + | ||
67 | + | let n = "new" | |
68 | + | ||
69 | + | let o = "filled" | |
70 | + | ||
71 | + | let p = "neutrino_contract" | |
72 | + | ||
73 | + | let q = "price" | |
74 | + | ||
75 | + | let r = "bond_asset_id" | |
76 | + | ||
77 | + | let s = "neutrino_asset_id" | |
78 | + | ||
79 | + | let t = "control_contract" | |
80 | + | ||
81 | + | let u = "balance_lock_" | |
82 | + | ||
83 | + | let v = (u + "waves") | |
84 | + | ||
85 | + | let w = (u + "neutrino") | |
86 | + | ||
87 | + | let x = "order_first" | |
88 | + | ||
89 | + | let y = "order_default" | |
90 | + | ||
91 | + | func z (A) = ("order_price_" + A) | |
92 | + | ||
93 | + | ||
94 | + | func B (A) = ("order_total_" + A) | |
95 | + | ||
96 | + | ||
97 | + | func C (A) = ("order_owner_" + A) | |
98 | + | ||
99 | + | ||
100 | + | func D (A) = ("order_height_" + A) | |
101 | + | ||
102 | + | ||
103 | + | func E (A) = ("order_status_" + A) | |
104 | + | ||
105 | + | ||
106 | + | func F (A) = ("order_filled_total_" + A) | |
107 | + | ||
108 | + | ||
109 | + | func G (A) = ("order_prev_" + A) | |
110 | + | ||
111 | + | ||
112 | + | func H (A) = ("order_next_" + A) | |
113 | + | ||
114 | + | ||
115 | + | func I (J,K) = fraction(fraction(J, l, K), j, k) | |
116 | + | ||
117 | + | ||
118 | + | func L (J,K) = fraction(fraction(J, K, l), k, j) | |
119 | + | ||
120 | + | ||
121 | + | func M (J,K) = L(J, K) | |
122 | + | ||
123 | + | ||
124 | + | let N = addressFromStringValue(e(p)) | |
125 | + | ||
126 | + | let O = addressFromStringValue(h(N, t)) | |
127 | + | ||
128 | + | let P = this | |
129 | + | ||
130 | + | let Q = fromBase58String(h(N, s)) | |
131 | + | ||
132 | + | let R = fromBase58String("91QmVf3hZQJeUX11nurBX76Quf94kQgVMDesqALsjQFN") | |
133 | + | ||
134 | + | let S = e(x) | |
135 | + | ||
136 | + | let T = f(O, "is_blocked") | |
137 | + | ||
138 | + | let U = i(O, q) | |
139 | + | ||
140 | + | let V = i(N, w) | |
141 | + | ||
142 | + | let W = i(N, v) | |
143 | + | ||
144 | + | let X = (wavesBalance(N) - W) | |
145 | + | ||
146 | + | let Y = (((V + extract(assetInfo(Q)).quantity) - assetBalance(N, Q)) - assetBalance(P, Q)) | |
147 | + | ||
148 | + | let Z = (L(X, U) - Y) | |
149 | + | ||
150 | + | func aa (ab) = a(z(ab)) | |
151 | + | ||
152 | + | ||
153 | + | func ac (ab) = a(B(ab)) | |
154 | + | ||
155 | + | ||
156 | + | func ad (ab) = e(C(ab)) | |
157 | + | ||
158 | + | ||
159 | + | func ae (ab) = e(E(ab)) | |
160 | + | ||
161 | + | ||
162 | + | func af (ab) = a(F(ab)) | |
163 | + | ||
164 | + | ||
165 | + | func ag (ab) = a(D(ab)) | |
166 | + | ||
167 | + | ||
168 | + | func ah (ab) = e(G(ab)) | |
169 | + | ||
170 | + | ||
171 | + | func ai (ab) = e(H(ab)) | |
172 | + | ||
173 | + | ||
174 | + | let aj = e(y) | |
175 | + | ||
176 | + | func ak (K,al,am,an,ao,S) = { | |
177 | + | let J = extract(am.payment).amount | |
178 | + | let ap = (K == 100) | |
179 | + | let aq = (S == "") | |
180 | + | let ar = (aa(S) > K) | |
181 | + | let as = if (aq) | |
182 | + | then al | |
183 | + | else if (ar) | |
184 | + | then al | |
185 | + | else S | |
186 | + | [DataEntry(G(al), an), DataEntry(H(al), ao), DataEntry(H(an), if ((an == "")) | |
187 | + | then an | |
188 | + | else al), DataEntry(G(ao), if ((ao == "")) | |
189 | + | then ao | |
190 | + | else al), DataEntry(x, as), DataEntry(z(al), K), DataEntry(B(al), J), DataEntry(C(al), toString(am.caller)), DataEntry(D(al), height), DataEntry(E(al), n), DataEntry(y, if (ap) | |
191 | + | then al | |
192 | + | else aj)] | |
193 | + | } | |
194 | + | ||
195 | + | ||
196 | + | func at (am,K,an) = { | |
197 | + | let au = extract(am.payment) | |
198 | + | let al = toBase58String(keccak256((((toBytes(au.amount) + am.caller.bytes) + toBytes(height)) + am.transactionId))) | |
199 | + | let av = toString(am.caller) | |
200 | + | let aw = (an == "") | |
201 | + | let ax = (S == "") | |
202 | + | if (T) | |
203 | + | then throw("contract is blocked by EMERGENCY SHUTDOWN actions until reactivation by emergency oracles") | |
204 | + | else if ((k > au.amount)) | |
205 | + | then throw("order amount should be higher than 1 NSBT") | |
206 | + | else if ((100 > K)) | |
207 | + | then throw(("price should be equal or higher than 1 nsbt for 1 usdn. i.e. >= 100; price: " + toString(K))) | |
208 | + | else if ((au.assetId != R)) | |
209 | + | then throw("can use appropriate neutrino base tokens (nsbt) only") | |
210 | + | else if ((ad(al) != "")) | |
211 | + | then throw("the order already exists") | |
212 | + | else if (if (!(aw)) | |
213 | + | then (ae(an) != n) | |
214 | + | else false) | |
215 | + | then throw("prev order status is not new") | |
216 | + | else if (if (ax) | |
217 | + | then !(aw) | |
218 | + | else false) | |
219 | + | then throw("wrong prev order parameter") | |
220 | + | else { | |
221 | + | let ao = if (aw) | |
222 | + | then S | |
223 | + | else ai(an) | |
224 | + | let ay = (ao == "") | |
225 | + | if (ax) | |
226 | + | then WriteSet(ak(K, al, am, an, ao, S)) | |
227 | + | else { | |
228 | + | let az = a(z(ao)) | |
229 | + | let aA = a(z(an)) | |
230 | + | let aB = if (!(ay)) | |
231 | + | then (K >= az) | |
232 | + | else false | |
233 | + | let aC = if (!(aw)) | |
234 | + | then (aA > K) | |
235 | + | else false | |
236 | + | if (if (aB) | |
237 | + | then true | |
238 | + | else aC) | |
239 | + | then throw(((("invalid order isPrevOrderError:" + toString(aC)) + " isNextOrderError:") + toString(aB))) | |
240 | + | else WriteSet(ak(K, al, am, an, ao, S)) | |
241 | + | } | |
242 | + | } | |
243 | + | } | |
244 | + | ||
245 | + | ||
246 | + | func aD (ab) = if ((ab != aj)) | |
247 | + | then aj | |
248 | + | else "" | |
249 | + | ||
250 | + | ||
251 | + | @Callable(am) | |
252 | + | func addLiquidationOrderWithPrice (K,an) = at(am, K, an) | |
253 | + | ||
254 | + | ||
255 | + | ||
256 | + | @Callable(am) | |
257 | + | func addLiquidationOrder () = at(am, 100, aj) | |
258 | + | ||
259 | + | ||
260 | + | ||
261 | + | @Callable(am) | |
262 | + | func cancelOrder (A) = { | |
263 | + | let av = ad(A) | |
264 | + | let J = (ac(A) - af(A)) | |
265 | + | let aE = toString(am.caller) | |
266 | + | let ao = ai(A) | |
267 | + | let an = ah(A) | |
268 | + | let aF = (A == aj) | |
269 | + | let aG = (ae(an) == n) | |
270 | + | let aH = if (aF) | |
271 | + | then if (aG) | |
272 | + | then an | |
273 | + | else "" | |
274 | + | else aj | |
275 | + | if (T) | |
276 | + | then throw("contract is blocked by EMERGENCY SHUTDOWN actions until reactivation by emergency oracles") | |
277 | + | else if ((av != aE)) | |
278 | + | then throw("permission denied") | |
279 | + | else if ((ae(A) != n)) | |
280 | + | then throw("invalid order status") | |
281 | + | else ScriptResult(WriteSet([DataEntry(y, aH), DataEntry(x, if ((S == A)) | |
282 | + | then ao | |
283 | + | else S), DataEntry(H(an), ao), DataEntry(G(ao), an), DataEntry(E(A), m)]), TransferSet([ScriptTransfer(am.caller, J, R)])) | |
284 | + | } | |
285 | + | ||
286 | + | ||
287 | + | ||
288 | + | @Callable(am) | |
289 | + | func liquidateBond () = { | |
290 | + | let aI = assetBalance(this, Q) | |
291 | + | let aJ = if ((0 >= Z)) | |
292 | + | then 0 | |
293 | + | else Z | |
294 | + | let aK = if ((aJ >= aI)) | |
295 | + | then aI | |
296 | + | else aJ | |
297 | + | let aL = if ((aJ >= aI)) | |
298 | + | then 0 | |
299 | + | else (aI - aJ) | |
300 | + | if (T) | |
301 | + | then throw("contract is blocked by EMERGENCY SHUTDOWN actions until reactivation by emergency oracles") | |
302 | + | else if ((aI == 0)) | |
303 | + | then throw("without base tokens to liquidate") | |
304 | + | else if ((aL > 0)) | |
305 | + | then TransferSet([ScriptTransfer(N, aL, Q)]) | |
306 | + | else if ((S == "")) | |
307 | + | then throw("empty orderbook") | |
308 | + | else { | |
309 | + | let ao = ai(S) | |
310 | + | let aM = af(S) | |
311 | + | let aN = aa(S) | |
312 | + | let aO = (ac(S) - aM) | |
313 | + | let aP = fraction(aO, aN, 100) | |
314 | + | let aQ = (aK >= aP) | |
315 | + | let aR = if (aQ) | |
316 | + | then aP | |
317 | + | else aK | |
318 | + | let aS = fraction(aR, 100, aN) | |
319 | + | let aT = (fraction((Z + Y), 100, Y) >= aN) | |
320 | + | if (!(aT)) | |
321 | + | then throw(("innapropriate surplus: " + toString(Z))) | |
322 | + | else { | |
323 | + | let aU = (aO == 0) | |
324 | + | let aV = ((aM + aS) == ac(S)) | |
325 | + | let aW = if (if (aQ) | |
326 | + | then if (aU) | |
327 | + | then true | |
328 | + | else aV | |
329 | + | else false) | |
330 | + | then o | |
331 | + | else n | |
332 | + | ScriptResult(WriteSet([DataEntry(G(ao), if ((aW == o)) | |
333 | + | then "" | |
334 | + | else S), DataEntry(x, if ((aW == o)) | |
335 | + | then ao | |
336 | + | else S), DataEntry(F(S), (aM + aS)), DataEntry(E(S), aW), DataEntry(y, aD(S))]), TransferSet([ScriptTransfer(addressFromStringValue(ad(S)), aR, Q), ScriptTransfer(N, aS, R)])) | |
337 | + | } | |
338 | + | } | |
339 | + | } | |
340 | + | ||
341 | + | ||
342 | + | ||
343 | + | @Callable(am) | |
344 | + | func updateReservesAndNeutrinoSupply () = { | |
345 | + | func aX (b) = { | |
346 | + | let c = getInteger(this, b) | |
347 | + | if ($isInstanceOf(c, "Int")) | |
348 | + | then { | |
349 | + | let d = c | |
350 | + | d | |
351 | + | } | |
352 | + | else 0 | |
353 | + | } | |
354 | + | ||
355 | + | let aY = aX("updateReservesAndNeutrinoSupplyIdx") | |
356 | + | let aZ = (aY + 1) | |
357 | + | WriteSet([DataEntry("updateReservesAndNeutrinoSupplyIdx", aZ), DataEntry("reserve", X), DataEntry("neutrinoSupply", Y), DataEntry("surplus", Z)]) | |
358 | + | } | |
359 | + | ||
360 | + | ||
361 | + | @Verifier(ba) | |
362 | + | func bb () = { | |
363 | + | let bc = ["D96T5UoL7E2FERaEwov9Frx8XFVPNGqZ4TyDiWvn1urJ", "Fk2zgbrRA8KytTVMVy6Df5i4tTEsKaqg6ybh6x6Hehjj", "37f1yE54FyMKwEkg413peq5Gbze9sBavASVeTYbQLTvJ", "5WRXFSjwcTbNfKcJs8ZqXmSSWYsSVJUtMvMqZj5hH4Nc"] | |
364 | + | let bd = ((((if (sigVerify(ba.bodyBytes, ba.proofs[0], fromBase58String(bc[0]))) | |
365 | + | then 1 | |
366 | + | else 0) + (if (sigVerify(ba.bodyBytes, ba.proofs[1], fromBase58String(bc[1]))) | |
367 | + | then 1 | |
368 | + | else 0)) + (if (sigVerify(ba.bodyBytes, ba.proofs[2], fromBase58String(bc[2]))) | |
369 | + | then 1 | |
370 | + | else 0)) + (if (sigVerify(ba.bodyBytes, ba.proofs[3], fromBase58String(bc[3]))) | |
371 | + | then 2 | |
372 | + | else 0)) | |
373 | + | (bd >= 3) | |
374 | + | } | |
375 | + |
github/deemru/w8io/169f3d6 25.27 ms ◑