tx · 9xV3NZfnThZWeRC7en7UmY9ZA86EiSDBNfFEPCRJSrwk 3MrtHeXquGPcRd3YjJQHfY1Ss6oSDpfxGuL: -0.01400000 Waves 2019.09.13 11:12 [674139] smart account 3MrtHeXquGPcRd3YjJQHfY1Ss6oSDpfxGuL > SELF 0.00000000 Waves
{ "type": 13, "id": "9xV3NZfnThZWeRC7en7UmY9ZA86EiSDBNfFEPCRJSrwk", "fee": 1400000, "feeAssetId": null, "timestamp": 1568362386296, "version": 1, "sender": "3MrtHeXquGPcRd3YjJQHfY1Ss6oSDpfxGuL", "senderPublicKey": "3nmDHSgwcZ79tNbGjppGBY9MbYm4qLZEJcZ32D2WmxkG", "proofs": [ "2rtHEFJqvC6quzsxKvctkErkEgpgtPRM5eJiVgvog9uCwwpkqk3aWnUsWPNbDWmW141mFHK3MagqTH5AZKJVJkgU" ], "script": "base64:AAIDAAAAAAAAAAAAAABIAQAAAA5nZXROdW1iZXJCeUtleQAAAAEAAAADa2V5BAAAAAckbWF0Y2gwCQAEGgAAAAIFAAAABHRoaXMFAAAAA2tleQMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAADSW50BAAAAAFhBQAAAAckbWF0Y2gwBQAAAAFhAAAAAAAAAAAAAQAAAA5nZXRTdHJpbmdCeUtleQAAAAEAAAADa2V5BAAAAAckbWF0Y2gwCQAEHQAAAAIFAAAABHRoaXMFAAAAA2tleQMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAGU3RyaW5nBAAAAAFhBQAAAAckbWF0Y2gwBQAAAAFhAgAAAAABAAAADGdldEJvb2xCeUtleQAAAAEAAAADa2V5BAAAAAckbWF0Y2gwCQAEGwAAAAIFAAAABHRoaXMFAAAAA2tleQMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAHQm9vbGVhbgQAAAABYQUAAAAHJG1hdGNoMAUAAAABYQcBAAAAGGdldE51bWJlckJ5S2V5QW5kQWRkcmVzcwAAAAIAAAAHYWRkcmVzcwAAAANrZXkEAAAABy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AAAAAIJAAEsAAAAAgkAASwAAAACBQAAABRJc1NlbnROb2RlQmFsYW5jZUtleQUAAAAMbm9kZVByb3ZpZGVyBQAAAA9MaXN0U3BsaXRTeW1ib2wJAAGkAAAAAQUAAAAFYmxvY2sGBQAAAANuaWwJAQAAAAtUcmFuc2ZlclNldAAAAAEJAARMAAAAAgkBAAAADlNjcmlwdFRyYW5zZmVyAAAAAwkBAAAAHEBleHRyVXNlcihhZGRyZXNzRnJvbVN0cmluZykAAAABBQAAAAxub2RlUHJvdmlkZXIFAAAACm5vZGVBbW91bnQFAAAABHVuaXQFAAAAA25pbAAAAADCYeUx", "chainId": 84, "height": 674139, "spentComplexity": 0 } View: original | compacted Prev: D7rMd5wCUNHjsU9MGv2sYXix4gSZab5LT4mVsLrPYZNv Next: BGgBG4KjMnG5GXgBmojNUcK71hmc2MufTovZqsV5zGa6 Diff:
Old | New | Differences | |
---|---|---|---|
202 | 202 | func aw (h,av) = f((((S + h) + k) + toString(av))) | |
203 | 203 | ||
204 | 204 | ||
205 | - | @Callable(ax) | |
205 | + | func ax (ay) = ((ay * 100) / U) | |
206 | + | ||
207 | + | ||
208 | + | func az (ay) = ((ay * U) / 100) | |
209 | + | ||
210 | + | ||
211 | + | func aA (ay) = (ay / o) | |
212 | + | ||
213 | + | ||
214 | + | func aB (ay) = (ay * o) | |
215 | + | ||
216 | + | ||
217 | + | func aC (ay) = aA(az(ay)) | |
218 | + | ||
219 | + | ||
220 | + | @Callable(aD) | |
206 | 221 | func setCurrentPrice (U) = WriteSet([DataEntry(w, U)]) | |
207 | 222 | ||
208 | 223 | ||
209 | 224 | ||
210 | - | @Callable( | |
225 | + | @Callable(aD) | |
211 | 226 | func swapWavesToNeutrino () = { | |
212 | - | let | |
213 | - | if (isDefined( | |
227 | + | let aE = extract(aD.payment) | |
228 | + | if (isDefined(aE.assetId)) | |
214 | 229 | then throw("can use waves only") | |
215 | 230 | else { | |
216 | - | let | |
217 | - | let | |
218 | - | WriteSet([DataEntry((z + toString( | |
231 | + | let aF = toBase58String(aD.caller.bytes) | |
232 | + | let ay = az(aE.amount) | |
233 | + | WriteSet([DataEntry((z + toString(aD.caller)), (ay + am(aF))), DataEntry((B + toString(aD.caller)), height), DataEntry(y, (V + aE.amount)), DataEntry(x, (W + ay))]) | |
219 | 234 | } | |
220 | 235 | } | |
221 | 236 | ||
222 | 237 | ||
223 | 238 | ||
224 | - | @Callable( | |
239 | + | @Callable(aD) | |
225 | 240 | func swapNeutrinoToWaves () = { | |
226 | - | let | |
227 | - | if (( | |
241 | + | let aE = extract(aD.payment) | |
242 | + | if ((aE.assetId != ae)) | |
228 | 243 | then throw("can use neutrino only") | |
229 | 244 | else { | |
230 | - | let | |
231 | - | let | |
232 | - | WriteSet([DataEntry((A + toString( | |
245 | + | let aF = toBase58String(aD.caller.bytes) | |
246 | + | let ay = ax(aE.amount) | |
247 | + | WriteSet([DataEntry((A + toString(aD.caller)), (ay + ak(aF))), DataEntry((B + toString(aD.caller)), height), DataEntry(y, (V - ay)), DataEntry(x, (W - aE.amount))]) | |
233 | 248 | } | |
234 | 249 | } | |
235 | 250 | ||
236 | 251 | ||
237 | 252 | ||
238 | - | @Callable( | |
239 | - | func withdraw ( | |
253 | + | @Callable(aD) | |
254 | + | func withdraw (aF) = if (((an(aF) + m) > height)) | |
240 | 255 | then throw("wait a couple of blocks for withdraw") | |
241 | - | else ScriptResult(WriteSet([DataEntry((A + | |
256 | + | else ScriptResult(WriteSet([DataEntry((A + aF), 0), DataEntry((z + aF), 0)]), TransferSet([ScriptTransfer(aD.caller, am(aF), ae), ScriptTransfer(aD.caller, ak(aF), unit)])) | |
242 | 257 | ||
243 | 258 | ||
244 | 259 | ||
245 | - | @Callable( | |
260 | + | @Callable(aD) | |
246 | 261 | func generateBond () = { | |
247 | - | let | |
248 | - | if (if (( | |
262 | + | let aG = (W - az(V)) | |
263 | + | if (if ((aG >= p)) | |
249 | 264 | then (height > (ab + l)) | |
250 | 265 | else false) | |
251 | - | then ScriptResult(WriteSet([DataEntry(L, height)]), TransferSet([ScriptTransfer(addressFromStringValue(ag), ( | |
252 | - | else throw(("deficit did not reach the threshold. deficit =" + toString( | |
266 | + | then ScriptResult(WriteSet([DataEntry(L, height)]), TransferSet([ScriptTransfer(addressFromStringValue(ag), aA(aG), af)])) | |
267 | + | else throw(("deficit did not reach the threshold. deficit =" + toString(aG))) | |
253 | 268 | } | |
254 | 269 | ||
255 | 270 | ||
256 | 271 | ||
257 | - | @Callable( | |
272 | + | @Callable(aD) | |
258 | 273 | func setOrder () = { | |
259 | - | let | |
260 | - | let | |
261 | - | if (( | |
274 | + | let aE = extract(aD.payment) | |
275 | + | let aH = toBase58String(keccak256(((toBytes(aE.amount) + aD.caller.bytes) + toBytes(height)))) | |
276 | + | if ((aE.assetId != af)) | |
262 | 277 | then throw("can use bond only") | |
263 | - | else if ((aq( | |
278 | + | else if ((aq(aH) != "")) | |
264 | 279 | then throw("order exists") | |
265 | - | else WriteSet([DataEntry(G, (X + | |
280 | + | else WriteSet([DataEntry(G, (X + aE.amount)), DataEntry(C, ((Y + aH) + k)), DataEntry((D + aH), aE.amount), DataEntry((E + aH), toString(aD.caller)), DataEntry((F + aH), height)]) | |
266 | 281 | } | |
267 | 282 | ||
268 | 283 | ||
269 | 284 | ||
270 | - | @Callable( | |
271 | - | func cancelOrder ( | |
272 | - | let al = aq( | |
273 | - | let | |
274 | - | if ((al != toString( | |
285 | + | @Callable(aD) | |
286 | + | func cancelOrder (aI) = { | |
287 | + | let al = aq(aI) | |
288 | + | let aJ = ao(aI) | |
289 | + | if ((al != toString(aD.caller))) | |
275 | 290 | then throw("permission denied") | |
276 | 291 | else { | |
277 | - | let | |
278 | - | let | |
279 | - | ScriptResult(WriteSet([DataEntry(G, (X - | |
292 | + | let aK = split(Y, (aI + k))[0] | |
293 | + | let aL = split(Y, (aI + k))[1] | |
294 | + | ScriptResult(WriteSet([DataEntry(G, (X - aJ)), DataEntry(C, (aK + aL)), DataEntry((D + aI), 0)]), TransferSet([ScriptTransfer(aD.caller, aJ, unit)])) | |
280 | 295 | } | |
281 | 296 | } | |
282 | 297 | ||
283 | 298 | ||
284 | 299 | ||
285 | - | @Callable( | |
300 | + | @Callable(aD) | |
286 | 301 | func executeOrder () = { | |
287 | - | let | |
288 | - | let | |
302 | + | let aI = split(ac, k)[0] | |
303 | + | let aM = ao(aI) | |
289 | 304 | if ((0 >= Z)) | |
290 | 305 | then throw("surplus is less than zero") | |
291 | 306 | else { | |
292 | - | let | |
293 | - | let | |
294 | - | let | |
295 | - | ScriptResult(WriteSet([DataEntry(G, (X - (if ((Z >= | |
296 | - | then | |
297 | - | else Z))), DataEntry(C, | |
307 | + | let aN = split(Y, (aI + k)) | |
308 | + | let aO = (aN[0] + aN[1]) | |
309 | + | let ay = aB((aM - aA(Z))) | |
310 | + | ScriptResult(WriteSet([DataEntry(G, (X - (if ((Z >= aM)) | |
311 | + | then aM | |
312 | + | else Z))), DataEntry(C, aO), DataEntry(K, split(ac, (aI + k))[1]), DataEntry((D + aI), if ((0 >= ay)) | |
298 | 313 | then 0 | |
299 | - | else | |
300 | - | then ( | |
314 | + | else ay)]), TransferSet([ScriptTransfer(aD.caller, if ((Z >= aM)) | |
315 | + | then aB(aM) | |
301 | 316 | else Z, ae)])) | |
302 | 317 | } | |
303 | 318 | } | |
304 | 319 | ||
305 | 320 | ||
306 | 321 | ||
307 | - | @Callable( | |
322 | + | @Callable(aD) | |
308 | 323 | func createSnapshot () = { | |
309 | - | let | |
310 | - | if (if ((0 >= | |
324 | + | let aP = (az(V) - W) | |
325 | + | if (if ((0 >= aP)) | |
311 | 326 | then true | |
312 | - | else (q > | |
327 | + | else (q > aP)) | |
313 | 328 | then throw("surplus is less minimum") | |
314 | 329 | else if ((height >= (aa + l))) | |
315 | 330 | then WriteSet([DataEntry(K, Y), DataEntry(H, X), DataEntry(J, height), DataEntry(I, Z)]) | |
318 | 333 | ||
319 | 334 | ||
320 | 335 | ||
321 | - | @Callable( | |
336 | + | @Callable(aD) | |
322 | 337 | func snapshotNeutrino (h) = { | |
323 | 338 | let al = addressFromStringValue(h) | |
324 | - | let | |
325 | - | let | |
326 | - | let | |
327 | - | let ap = toBase58String(keccak256(((toBytes( | |
339 | + | let aQ = assetBalance(al, ae) | |
340 | + | let aR = assetBalance(al, af) | |
341 | + | let ay = (aR + aQ) | |
342 | + | let ap = toBase58String(keccak256(((toBytes(ay) + al.bytes) + toBytes(height)))) | |
328 | 343 | if ((as(ap) != "")) | |
329 | 344 | then throw("id exists") | |
330 | - | else WriteSet([DataEntry((O + ap), | |
345 | + | else WriteSet([DataEntry((O + ap), ay), DataEntry((M + ap), height), DataEntry((N + ap), toString(aD.caller))]) | |
331 | 346 | } | |
332 | 347 | ||
333 | 348 | ||
334 | 349 | ||
335 | - | @Callable( | |
350 | + | @Callable(aD) | |
336 | 351 | func getNewNeutrino (ap) = { | |
337 | - | let | |
338 | - | let | |
339 | - | let | |
340 | - | let | |
352 | + | let aQ = assetBalance(aD.caller, ae) | |
353 | + | let aR = assetBalance(aD.caller, af) | |
354 | + | let aS = (ai - ad) | |
355 | + | let aT = (Z - aB(ad)) | |
341 | 356 | let av = ar(ap) | |
342 | - | let | |
343 | - | if ((0 >= | |
357 | + | let ay = at(ap) | |
358 | + | if ((0 >= aT)) | |
344 | 359 | then throw("surplus is less than zero") | |
345 | 360 | else if ((av > aa)) | |
346 | 361 | then throw("wait new snapshot") | |
347 | - | else if (( | |
362 | + | else if ((ay > (aR + aQ))) | |
348 | 363 | then throw("invalid balance snapshot") | |
349 | - | else ScriptResult(WriteSet([DataEntry((O + ap), 0), DataEntry((M + ap), 0)]), TransferSet([ScriptTransfer( | |
364 | + | else ScriptResult(WriteSet([DataEntry((O + ap), 0), DataEntry((M + ap), 0)]), TransferSet([ScriptTransfer(aD.caller, ((aT * ((ay * 100) / (W + aS))) / 100), ae)])) | |
350 | 365 | } | |
351 | 366 | ||
352 | 367 | ||
353 | 368 | ||
354 | - | @Callable( | |
355 | - | func sendToLeasing ( | |
356 | - | let | |
357 | - | if ((aw( | |
369 | + | @Callable(aD) | |
370 | + | func sendToLeasing (aU,av) = { | |
371 | + | let aV = au(aU, av) | |
372 | + | if ((aw(aU, av) == true)) | |
358 | 373 | then throw("funds were sent") | |
359 | 374 | else if ((height > (av + r))) | |
360 | 375 | then throw((("apply setting time expire (" + toString((av + r))) + ")")) | |
361 | - | else ScriptResult(WriteSet([DataEntry((((S + | |
376 | + | else ScriptResult(WriteSet([DataEntry((((S + aU) + k) + toString(av)), true)]), TransferSet([ScriptTransfer(addressFromStringValue(aU), aV, unit)])) | |
362 | 377 | } | |
363 | 378 | ||
364 | 379 |
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 (b) = { | |
27 | 27 | let c = getBoolean(this, 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 g (h,b) = { | |
38 | 38 | let c = getInteger(addressFromStringValue(h), b) | |
39 | 39 | if ($isInstanceOf(c, "Int")) | |
40 | 40 | then { | |
41 | 41 | let d = c | |
42 | 42 | d | |
43 | 43 | } | |
44 | 44 | else 0 | |
45 | 45 | } | |
46 | 46 | ||
47 | 47 | ||
48 | 48 | func i (h,b) = { | |
49 | 49 | let c = getString(addressFromStringValue(h), b) | |
50 | 50 | if ($isInstanceOf(c, "String")) | |
51 | 51 | then { | |
52 | 52 | let d = c | |
53 | 53 | d | |
54 | 54 | } | |
55 | 55 | else "" | |
56 | 56 | } | |
57 | 57 | ||
58 | 58 | ||
59 | 59 | func j (h,b) = { | |
60 | 60 | let c = getBoolean(addressFromStringValue(h), b) | |
61 | 61 | if ($isInstanceOf(c, "Boolean")) | |
62 | 62 | then { | |
63 | 63 | let d = c | |
64 | 64 | d | |
65 | 65 | } | |
66 | 66 | else false | |
67 | 67 | } | |
68 | 68 | ||
69 | 69 | ||
70 | 70 | let k = "_" | |
71 | 71 | ||
72 | 72 | let l = 10 | |
73 | 73 | ||
74 | 74 | let m = 2 | |
75 | 75 | ||
76 | 76 | let n = "+" | |
77 | 77 | ||
78 | 78 | let o = 100000000 | |
79 | 79 | ||
80 | 80 | let p = (10 * o) | |
81 | 81 | ||
82 | 82 | let q = (10 * o) | |
83 | 83 | ||
84 | 84 | let r = 10 | |
85 | 85 | ||
86 | 86 | let s = "lease_contract" | |
87 | 87 | ||
88 | 88 | let t = "neutrino_asset_id" | |
89 | 89 | ||
90 | 90 | let u = "bond_asset_id" | |
91 | 91 | ||
92 | 92 | let v = "auction_contract" | |
93 | 93 | ||
94 | 94 | let w = "price" | |
95 | 95 | ||
96 | 96 | let x = "neutrino_supply" | |
97 | 97 | ||
98 | 98 | let y = "waves_reserve" | |
99 | 99 | ||
100 | 100 | let z = "neutrino_" | |
101 | 101 | ||
102 | 102 | let A = "waves_" | |
103 | 103 | ||
104 | 104 | let B = "balance_block_" | |
105 | 105 | ||
106 | 106 | let C = "orderbook" | |
107 | 107 | ||
108 | 108 | let D = "order_total_" | |
109 | 109 | ||
110 | 110 | let E = "order_owner_" | |
111 | 111 | ||
112 | 112 | let F = "order_height_" | |
113 | 113 | ||
114 | 114 | let G = "orderbook_total" | |
115 | 115 | ||
116 | 116 | let H = "orderbook_total_snapshot" | |
117 | 117 | ||
118 | 118 | let I = "surplus" | |
119 | 119 | ||
120 | 120 | let J = "snapshot_block" | |
121 | 121 | ||
122 | 122 | let K = "orderbook_snapshot" | |
123 | 123 | ||
124 | 124 | let L = "bond_generated_block" | |
125 | 125 | ||
126 | 126 | let M = "account_snapshot_block_" | |
127 | 127 | ||
128 | 128 | let N = "account_snapshot_owner_" | |
129 | 129 | ||
130 | 130 | let O = "account_snapshot_amount_" | |
131 | 131 | ||
132 | 132 | let P = "account_snapshot_node_" | |
133 | 133 | ||
134 | 134 | let Q = "snapshot_node_balance_" | |
135 | 135 | ||
136 | 136 | let R = "node_balance_" | |
137 | 137 | ||
138 | 138 | let S = "is_sent_node_balance_" | |
139 | 139 | ||
140 | 140 | let T = "node_status" | |
141 | 141 | ||
142 | 142 | let U = a(w) | |
143 | 143 | ||
144 | 144 | let V = a(y) | |
145 | 145 | ||
146 | 146 | let W = a(x) | |
147 | 147 | ||
148 | 148 | let X = a(G) | |
149 | 149 | ||
150 | 150 | let Y = e(C) | |
151 | 151 | ||
152 | 152 | let Z = a(I) | |
153 | 153 | ||
154 | 154 | let aa = a(J) | |
155 | 155 | ||
156 | 156 | let ab = a(L) | |
157 | 157 | ||
158 | 158 | let ac = e(K) | |
159 | 159 | ||
160 | 160 | let ad = a(H) | |
161 | 161 | ||
162 | 162 | let ae = fromBase58String(e(t)) | |
163 | 163 | ||
164 | 164 | let af = fromBase58String(e(u)) | |
165 | 165 | ||
166 | 166 | let ag = e(v) | |
167 | 167 | ||
168 | 168 | let ah = e(s) | |
169 | 169 | ||
170 | 170 | let ai = { | |
171 | 171 | let aj = extract(assetInfo(af)) | |
172 | 172 | (aj.quantity - assetBalance(this, af)) | |
173 | 173 | } | |
174 | 174 | ||
175 | 175 | func ak (al) = a((A + al)) | |
176 | 176 | ||
177 | 177 | ||
178 | 178 | func am (al) = a((z + al)) | |
179 | 179 | ||
180 | 180 | ||
181 | 181 | func an (al) = a((B + al)) | |
182 | 182 | ||
183 | 183 | ||
184 | 184 | func ao (ap) = a((D + ap)) | |
185 | 185 | ||
186 | 186 | ||
187 | 187 | func aq (ap) = e((E + ap)) | |
188 | 188 | ||
189 | 189 | ||
190 | 190 | func ar (ap) = a((M + ap)) | |
191 | 191 | ||
192 | 192 | ||
193 | 193 | func as (ap) = e((N + ap)) | |
194 | 194 | ||
195 | 195 | ||
196 | 196 | func at (ap) = a((O + ap)) | |
197 | 197 | ||
198 | 198 | ||
199 | 199 | func au (h,av) = g(ah, (((R + h) + k) + toString(av))) | |
200 | 200 | ||
201 | 201 | ||
202 | 202 | func aw (h,av) = f((((S + h) + k) + toString(av))) | |
203 | 203 | ||
204 | 204 | ||
205 | - | @Callable(ax) | |
205 | + | func ax (ay) = ((ay * 100) / U) | |
206 | + | ||
207 | + | ||
208 | + | func az (ay) = ((ay * U) / 100) | |
209 | + | ||
210 | + | ||
211 | + | func aA (ay) = (ay / o) | |
212 | + | ||
213 | + | ||
214 | + | func aB (ay) = (ay * o) | |
215 | + | ||
216 | + | ||
217 | + | func aC (ay) = aA(az(ay)) | |
218 | + | ||
219 | + | ||
220 | + | @Callable(aD) | |
206 | 221 | func setCurrentPrice (U) = WriteSet([DataEntry(w, U)]) | |
207 | 222 | ||
208 | 223 | ||
209 | 224 | ||
210 | - | @Callable( | |
225 | + | @Callable(aD) | |
211 | 226 | func swapWavesToNeutrino () = { | |
212 | - | let | |
213 | - | if (isDefined( | |
227 | + | let aE = extract(aD.payment) | |
228 | + | if (isDefined(aE.assetId)) | |
214 | 229 | then throw("can use waves only") | |
215 | 230 | else { | |
216 | - | let | |
217 | - | let | |
218 | - | WriteSet([DataEntry((z + toString( | |
231 | + | let aF = toBase58String(aD.caller.bytes) | |
232 | + | let ay = az(aE.amount) | |
233 | + | WriteSet([DataEntry((z + toString(aD.caller)), (ay + am(aF))), DataEntry((B + toString(aD.caller)), height), DataEntry(y, (V + aE.amount)), DataEntry(x, (W + ay))]) | |
219 | 234 | } | |
220 | 235 | } | |
221 | 236 | ||
222 | 237 | ||
223 | 238 | ||
224 | - | @Callable( | |
239 | + | @Callable(aD) | |
225 | 240 | func swapNeutrinoToWaves () = { | |
226 | - | let | |
227 | - | if (( | |
241 | + | let aE = extract(aD.payment) | |
242 | + | if ((aE.assetId != ae)) | |
228 | 243 | then throw("can use neutrino only") | |
229 | 244 | else { | |
230 | - | let | |
231 | - | let | |
232 | - | WriteSet([DataEntry((A + toString( | |
245 | + | let aF = toBase58String(aD.caller.bytes) | |
246 | + | let ay = ax(aE.amount) | |
247 | + | WriteSet([DataEntry((A + toString(aD.caller)), (ay + ak(aF))), DataEntry((B + toString(aD.caller)), height), DataEntry(y, (V - ay)), DataEntry(x, (W - aE.amount))]) | |
233 | 248 | } | |
234 | 249 | } | |
235 | 250 | ||
236 | 251 | ||
237 | 252 | ||
238 | - | @Callable( | |
239 | - | func withdraw ( | |
253 | + | @Callable(aD) | |
254 | + | func withdraw (aF) = if (((an(aF) + m) > height)) | |
240 | 255 | then throw("wait a couple of blocks for withdraw") | |
241 | - | else ScriptResult(WriteSet([DataEntry((A + | |
256 | + | else ScriptResult(WriteSet([DataEntry((A + aF), 0), DataEntry((z + aF), 0)]), TransferSet([ScriptTransfer(aD.caller, am(aF), ae), ScriptTransfer(aD.caller, ak(aF), unit)])) | |
242 | 257 | ||
243 | 258 | ||
244 | 259 | ||
245 | - | @Callable( | |
260 | + | @Callable(aD) | |
246 | 261 | func generateBond () = { | |
247 | - | let | |
248 | - | if (if (( | |
262 | + | let aG = (W - az(V)) | |
263 | + | if (if ((aG >= p)) | |
249 | 264 | then (height > (ab + l)) | |
250 | 265 | else false) | |
251 | - | then ScriptResult(WriteSet([DataEntry(L, height)]), TransferSet([ScriptTransfer(addressFromStringValue(ag), ( | |
252 | - | else throw(("deficit did not reach the threshold. deficit =" + toString( | |
266 | + | then ScriptResult(WriteSet([DataEntry(L, height)]), TransferSet([ScriptTransfer(addressFromStringValue(ag), aA(aG), af)])) | |
267 | + | else throw(("deficit did not reach the threshold. deficit =" + toString(aG))) | |
253 | 268 | } | |
254 | 269 | ||
255 | 270 | ||
256 | 271 | ||
257 | - | @Callable( | |
272 | + | @Callable(aD) | |
258 | 273 | func setOrder () = { | |
259 | - | let | |
260 | - | let | |
261 | - | if (( | |
274 | + | let aE = extract(aD.payment) | |
275 | + | let aH = toBase58String(keccak256(((toBytes(aE.amount) + aD.caller.bytes) + toBytes(height)))) | |
276 | + | if ((aE.assetId != af)) | |
262 | 277 | then throw("can use bond only") | |
263 | - | else if ((aq( | |
278 | + | else if ((aq(aH) != "")) | |
264 | 279 | then throw("order exists") | |
265 | - | else WriteSet([DataEntry(G, (X + | |
280 | + | else WriteSet([DataEntry(G, (X + aE.amount)), DataEntry(C, ((Y + aH) + k)), DataEntry((D + aH), aE.amount), DataEntry((E + aH), toString(aD.caller)), DataEntry((F + aH), height)]) | |
266 | 281 | } | |
267 | 282 | ||
268 | 283 | ||
269 | 284 | ||
270 | - | @Callable( | |
271 | - | func cancelOrder ( | |
272 | - | let al = aq( | |
273 | - | let | |
274 | - | if ((al != toString( | |
285 | + | @Callable(aD) | |
286 | + | func cancelOrder (aI) = { | |
287 | + | let al = aq(aI) | |
288 | + | let aJ = ao(aI) | |
289 | + | if ((al != toString(aD.caller))) | |
275 | 290 | then throw("permission denied") | |
276 | 291 | else { | |
277 | - | let | |
278 | - | let | |
279 | - | ScriptResult(WriteSet([DataEntry(G, (X - | |
292 | + | let aK = split(Y, (aI + k))[0] | |
293 | + | let aL = split(Y, (aI + k))[1] | |
294 | + | ScriptResult(WriteSet([DataEntry(G, (X - aJ)), DataEntry(C, (aK + aL)), DataEntry((D + aI), 0)]), TransferSet([ScriptTransfer(aD.caller, aJ, unit)])) | |
280 | 295 | } | |
281 | 296 | } | |
282 | 297 | ||
283 | 298 | ||
284 | 299 | ||
285 | - | @Callable( | |
300 | + | @Callable(aD) | |
286 | 301 | func executeOrder () = { | |
287 | - | let | |
288 | - | let | |
302 | + | let aI = split(ac, k)[0] | |
303 | + | let aM = ao(aI) | |
289 | 304 | if ((0 >= Z)) | |
290 | 305 | then throw("surplus is less than zero") | |
291 | 306 | else { | |
292 | - | let | |
293 | - | let | |
294 | - | let | |
295 | - | ScriptResult(WriteSet([DataEntry(G, (X - (if ((Z >= | |
296 | - | then | |
297 | - | else Z))), DataEntry(C, | |
307 | + | let aN = split(Y, (aI + k)) | |
308 | + | let aO = (aN[0] + aN[1]) | |
309 | + | let ay = aB((aM - aA(Z))) | |
310 | + | ScriptResult(WriteSet([DataEntry(G, (X - (if ((Z >= aM)) | |
311 | + | then aM | |
312 | + | else Z))), DataEntry(C, aO), DataEntry(K, split(ac, (aI + k))[1]), DataEntry((D + aI), if ((0 >= ay)) | |
298 | 313 | then 0 | |
299 | - | else | |
300 | - | then ( | |
314 | + | else ay)]), TransferSet([ScriptTransfer(aD.caller, if ((Z >= aM)) | |
315 | + | then aB(aM) | |
301 | 316 | else Z, ae)])) | |
302 | 317 | } | |
303 | 318 | } | |
304 | 319 | ||
305 | 320 | ||
306 | 321 | ||
307 | - | @Callable( | |
322 | + | @Callable(aD) | |
308 | 323 | func createSnapshot () = { | |
309 | - | let | |
310 | - | if (if ((0 >= | |
324 | + | let aP = (az(V) - W) | |
325 | + | if (if ((0 >= aP)) | |
311 | 326 | then true | |
312 | - | else (q > | |
327 | + | else (q > aP)) | |
313 | 328 | then throw("surplus is less minimum") | |
314 | 329 | else if ((height >= (aa + l))) | |
315 | 330 | then WriteSet([DataEntry(K, Y), DataEntry(H, X), DataEntry(J, height), DataEntry(I, Z)]) | |
316 | 331 | else throw("error create new snapshot") | |
317 | 332 | } | |
318 | 333 | ||
319 | 334 | ||
320 | 335 | ||
321 | - | @Callable( | |
336 | + | @Callable(aD) | |
322 | 337 | func snapshotNeutrino (h) = { | |
323 | 338 | let al = addressFromStringValue(h) | |
324 | - | let | |
325 | - | let | |
326 | - | let | |
327 | - | let ap = toBase58String(keccak256(((toBytes( | |
339 | + | let aQ = assetBalance(al, ae) | |
340 | + | let aR = assetBalance(al, af) | |
341 | + | let ay = (aR + aQ) | |
342 | + | let ap = toBase58String(keccak256(((toBytes(ay) + al.bytes) + toBytes(height)))) | |
328 | 343 | if ((as(ap) != "")) | |
329 | 344 | then throw("id exists") | |
330 | - | else WriteSet([DataEntry((O + ap), | |
345 | + | else WriteSet([DataEntry((O + ap), ay), DataEntry((M + ap), height), DataEntry((N + ap), toString(aD.caller))]) | |
331 | 346 | } | |
332 | 347 | ||
333 | 348 | ||
334 | 349 | ||
335 | - | @Callable( | |
350 | + | @Callable(aD) | |
336 | 351 | func getNewNeutrino (ap) = { | |
337 | - | let | |
338 | - | let | |
339 | - | let | |
340 | - | let | |
352 | + | let aQ = assetBalance(aD.caller, ae) | |
353 | + | let aR = assetBalance(aD.caller, af) | |
354 | + | let aS = (ai - ad) | |
355 | + | let aT = (Z - aB(ad)) | |
341 | 356 | let av = ar(ap) | |
342 | - | let | |
343 | - | if ((0 >= | |
357 | + | let ay = at(ap) | |
358 | + | if ((0 >= aT)) | |
344 | 359 | then throw("surplus is less than zero") | |
345 | 360 | else if ((av > aa)) | |
346 | 361 | then throw("wait new snapshot") | |
347 | - | else if (( | |
362 | + | else if ((ay > (aR + aQ))) | |
348 | 363 | then throw("invalid balance snapshot") | |
349 | - | else ScriptResult(WriteSet([DataEntry((O + ap), 0), DataEntry((M + ap), 0)]), TransferSet([ScriptTransfer( | |
364 | + | else ScriptResult(WriteSet([DataEntry((O + ap), 0), DataEntry((M + ap), 0)]), TransferSet([ScriptTransfer(aD.caller, ((aT * ((ay * 100) / (W + aS))) / 100), ae)])) | |
350 | 365 | } | |
351 | 366 | ||
352 | 367 | ||
353 | 368 | ||
354 | - | @Callable( | |
355 | - | func sendToLeasing ( | |
356 | - | let | |
357 | - | if ((aw( | |
369 | + | @Callable(aD) | |
370 | + | func sendToLeasing (aU,av) = { | |
371 | + | let aV = au(aU, av) | |
372 | + | if ((aw(aU, av) == true)) | |
358 | 373 | then throw("funds were sent") | |
359 | 374 | else if ((height > (av + r))) | |
360 | 375 | then throw((("apply setting time expire (" + toString((av + r))) + ")")) | |
361 | - | else ScriptResult(WriteSet([DataEntry((((S + | |
376 | + | else ScriptResult(WriteSet([DataEntry((((S + aU) + k) + toString(av)), true)]), TransferSet([ScriptTransfer(addressFromStringValue(aU), aV, unit)])) | |
362 | 377 | } | |
363 | 378 | ||
364 | 379 |
github/deemru/w8io/169f3d6 103.66 ms ◑