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