tx · D5ACfPU2pD8u68txzcjrEATedxkXyZJTcEMxCbshGPpU 3N4Pj4MutKVgrmcuX7jgyVGWoBhDyKYFZBj: -0.01400000 Waves 2019.10.08 13:44 [710719] smart account 3N4Pj4MutKVgrmcuX7jgyVGWoBhDyKYFZBj > SELF 0.00000000 Waves
{ "type": 13, "id": "D5ACfPU2pD8u68txzcjrEATedxkXyZJTcEMxCbshGPpU", "fee": 1400000, "feeAssetId": null, "timestamp": 1570531455426, "version": 1, "sender": "3N4Pj4MutKVgrmcuX7jgyVGWoBhDyKYFZBj", "senderPublicKey": "7YuxEiQSearE3DvFS84DXzV5gad9qxsq4bTy633SAYBj", "proofs": [ "44Z5xduJACeyY5QQjK3nLqJc8ighfCf4S6ZufWVJPUEkubr1s4W6E9MMHWYrLozfn1pbszkehA3QUcxQYs8dBvZg" ], "script": "base64:AAIDAAAAAAAAAAAAAAB3AQAAAA5nZXROdW1iZXJCeUtleQAAAAEAAAADa2V5BAAAAAckbWF0Y2gwCQAEGgAAAAIFAAAABHRoaXMFAAAAA2tleQMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAADSW50BAAAAAFhBQAAAAckbWF0Y2gwBQAAAAFhAAAAAAAAAAAAAQAAAA5nZXRTdHJpbmdCeUtleQAAAAEAAAADa2V5BAAAAAckbWF0Y2gwCQAEHQAAAAIFAAAABHRoaXMFAAAAA2tleQMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAGU3RyaW5nBAAAAAFhBQAAAAckbWF0Y2gwBQAAAAFhAgAAAAABAAAADGdldEJvb2xCeUtleQAAAAEAAAADa2V5BAAAAAckbWF0Y2gwCQAEGwAAAAIFAAAABHRoaXMFAAAAA2tleQMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAHQm9vbGVhbgQAAAABYQUAAAAHJG1hdGNoMAUAAAABYQcBAAAAGGdldE51bWJlckJ5QWRkcmVzc0FuZEtleQAAAAIAAAAHYWRkcmVzcwAAAANrZXkEAAAAByRtYXRjaDAJAA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AnR4AQAAAAZ2ZXJpZnkAAAAABAAAAAckbWF0Y2gwBQAAAAJ0eAMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAQTGVhc2VUcmFuc2FjdGlvbgQAAAAHbGVhc2VUeAUAAAAHJG1hdGNoMAkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAJAAJZAAAAAQkBAAAAGWdldE93bmVyUHViS2V5QnlMZWFzZVR4SWQAAAABCQACWAAAAAEIBQAAAAdsZWFzZVR4AAAAAmlkAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAABZMZWFzZUNhbmNlbFRyYW5zYWN0aW9uBAAAAAl1bmxlYXNlVHgFAAAAByRtYXRjaDAJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACQACWQAAAAEJAQAAABlnZXRPd25lclB1YktleUJ5TGVhc2VUeElkAAAAAQkAAlgAAAABCAUAAAAJdW5sZWFzZVR4AAAAB2xlYXNlSWQJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V5F4Gytw==", "chainId": 84, "height": 710719, "spentComplexity": 0 } View: original | compacted Prev: J28N8ukZMQ82gAEvaPjJiVtKJT5RMr96uCTGFoYY6dMx Next: 44YpwBoTQpDScBqHTXBfTsNjjdmYNksj3S9hwvje94Mk Diff:
Old | New | Differences | |
---|---|---|---|
45 | 45 | } | |
46 | 46 | ||
47 | 47 | ||
48 | - | let i = "_" | |
49 | - | ||
50 | - | let j = "+" | |
51 | - | ||
52 | - | let k = 100000000 | |
53 | - | ||
54 | - | let l = "canceled" | |
55 | - | ||
56 | - | let m = "new" | |
57 | - | ||
58 | - | let n = "filled" | |
59 | - | ||
60 | - | let o = "neutrino_asset_id" | |
61 | - | ||
62 | - | let p = "bond_asset_id" | |
63 | - | ||
64 | - | let q = "auction_contract" | |
65 | - | ||
66 | - | let r = "rpd_contract" | |
67 | - | ||
68 | - | let s = "balance_lock_interval" | |
69 | - | ||
70 | - | let t = "vote_interval" | |
71 | - | ||
72 | - | let u = "min_swap_amount" | |
73 | - | ||
74 | - | let v = "price_offset" | |
75 | - | ||
76 | - | let w = "providing_interval" | |
77 | - | ||
78 | - | let x = "price" | |
79 | - | ||
80 | - | let y = "neutrino_" | |
81 | - | ||
82 | - | let z = "waves_" | |
83 | - | ||
84 | - | let A = "balance_block_" | |
85 | - | ||
86 | - | let B = "orderbook" | |
87 | - | ||
88 | - | let C = "order_total_" | |
89 | - | ||
90 | - | let D = "order_owner_" | |
91 | - | ||
92 | - | let E = "order_height_" | |
93 | - | ||
94 | - | let F = "order_filled_total_" | |
95 | - | ||
96 | - | let G = "order_status_" | |
97 | - | ||
98 | - | let H = "rpd_sync_index" | |
99 | - | ||
100 | - | let I = "rpd_profit" | |
101 | - | ||
102 | - | let J = "rpd_balance" | |
103 | - | ||
104 | - | let K = "is_blocked" | |
105 | - | ||
106 | - | let L = "black_swarm_price" | |
107 | - | ||
108 | - | let M = "admin_vote_" | |
109 | - | ||
110 | - | let N = "admin_vote_price_" | |
111 | - | ||
112 | - | let O = "vote_expire_block" | |
113 | - | ||
114 | - | let P = "admin_" | |
115 | - | ||
116 | - | let Q = "is_pending_price" | |
117 | - | ||
118 | - | let R = "oracle_" | |
119 | - | ||
120 | - | let S = "oracle_is_provide_" | |
121 | - | ||
122 | - | let T = "oracle_price_provide_" | |
123 | - | ||
124 | - | let U = "providing_expire_block" | |
125 | - | ||
126 | - | func V (W) = (P + toString(W)) | |
48 | + | func i (h,b) = { | |
49 | + | let c = getString(this, b) | |
50 | + | if ($isInstanceOf(c, "String")) | |
51 | + | then { | |
52 | + | let d = c | |
53 | + | d | |
54 | + | } | |
55 | + | else "" | |
56 | + | } | |
127 | 57 | ||
128 | 58 | ||
129 | - | func X (Y) = (M + Y) | |
59 | + | let j = "_" | |
60 | + | ||
61 | + | let k = "+" | |
62 | + | ||
63 | + | let l = 100000000 | |
64 | + | ||
65 | + | let m = 100 | |
66 | + | ||
67 | + | let n = "canceled" | |
68 | + | ||
69 | + | let o = "new" | |
70 | + | ||
71 | + | let p = "filled" | |
72 | + | ||
73 | + | let q = "neutrino_asset_id" | |
74 | + | ||
75 | + | let r = "bond_asset_id" | |
76 | + | ||
77 | + | let s = "auction_contract" | |
78 | + | ||
79 | + | let t = "rpd_contract" | |
80 | + | ||
81 | + | let u = "balance_lock_interval" | |
82 | + | ||
83 | + | let v = "vote_interval" | |
84 | + | ||
85 | + | let w = "min_waves_swap_amount" | |
86 | + | ||
87 | + | let x = "min_neutrino_swap_amount" | |
88 | + | ||
89 | + | let y = "price_offset" | |
90 | + | ||
91 | + | let z = "providing_interval" | |
92 | + | ||
93 | + | let A = "price" | |
94 | + | ||
95 | + | let B = "neutrino_" | |
96 | + | ||
97 | + | let C = "waves_" | |
98 | + | ||
99 | + | let D = "balance_block_" | |
100 | + | ||
101 | + | let E = "orderbook" | |
102 | + | ||
103 | + | let F = "order_total_" | |
104 | + | ||
105 | + | let G = "order_owner_" | |
106 | + | ||
107 | + | let H = "order_height_" | |
108 | + | ||
109 | + | let I = "order_filled_total_" | |
110 | + | ||
111 | + | let J = "order_status_" | |
112 | + | ||
113 | + | let K = "rpd_sync_index" | |
114 | + | ||
115 | + | let L = "rpd_profit" | |
116 | + | ||
117 | + | let M = "rpd_balance" | |
118 | + | ||
119 | + | let N = "is_blocked" | |
120 | + | ||
121 | + | let O = "black_swarm_price" | |
122 | + | ||
123 | + | let P = "admin_vote_" | |
124 | + | ||
125 | + | let Q = "admin_vote_price_" | |
126 | + | ||
127 | + | let R = "vote_expire_block" | |
128 | + | ||
129 | + | let S = "admin_" | |
130 | + | ||
131 | + | let T = "is_pending_price" | |
132 | + | ||
133 | + | let U = "oracle_" | |
134 | + | ||
135 | + | let V = "oracle_is_provide_" | |
136 | + | ||
137 | + | let W = "oracle_price_provide_" | |
138 | + | ||
139 | + | let X = "providing_expire_block" | |
140 | + | ||
141 | + | let Y = "leasetx" | |
142 | + | ||
143 | + | let Z = "is_leasing_profit" | |
144 | + | ||
145 | + | func aa (ab) = (S + toString(ab)) | |
130 | 146 | ||
131 | 147 | ||
132 | - | func | |
148 | + | func ac (ad) = (P + ad) | |
133 | 149 | ||
134 | 150 | ||
135 | - | func | |
151 | + | func ae (ad) = (Q + ad) | |
136 | 152 | ||
137 | 153 | ||
138 | - | func | |
154 | + | func af (ab) = (U + toString(ab)) | |
139 | 155 | ||
140 | 156 | ||
141 | - | func | |
157 | + | func ag (ad) = (V + ad) | |
142 | 158 | ||
143 | 159 | ||
144 | - | func | |
160 | + | func ah (ad) = (W + ad) | |
145 | 161 | ||
146 | 162 | ||
147 | - | func | |
163 | + | func ai (ab,aj) = ((((M + "_") + toBase58String(aj)) + "_") + toString(ab)) | |
148 | 164 | ||
149 | 165 | ||
150 | - | func | |
166 | + | func ak (aj) = ((M + "_") + toBase58String(aj)) | |
151 | 167 | ||
152 | 168 | ||
153 | - | func | |
169 | + | func al (ab) = ((L + "_") + toString(ab)) | |
154 | 170 | ||
155 | 171 | ||
156 | - | func | |
172 | + | func am (ad) = (B + ad) | |
157 | 173 | ||
158 | 174 | ||
159 | - | func | |
175 | + | func an (ad) = (C + ad) | |
160 | 176 | ||
161 | 177 | ||
162 | - | func | |
178 | + | func ao (ad) = (D + ad) | |
163 | 179 | ||
164 | 180 | ||
165 | - | func | |
181 | + | func ap (aq) = ((O + "_") + toString(aq)) | |
166 | 182 | ||
167 | 183 | ||
168 | - | func | |
184 | + | func ar (aq) = ((A + "_") + toString(aq)) | |
169 | 185 | ||
170 | 186 | ||
171 | - | func | |
187 | + | func as (at) = ((Y + "_") + at) | |
172 | 188 | ||
173 | 189 | ||
174 | - | func | |
190 | + | func au (at) = ((Z + "_") + at) | |
175 | 191 | ||
176 | 192 | ||
177 | - | func | |
193 | + | func av (aw) = (F + aw) | |
178 | 194 | ||
179 | 195 | ||
180 | - | func | |
196 | + | func ax (aw) = (G + aw) | |
181 | 197 | ||
182 | 198 | ||
183 | - | let at = a(x) | |
184 | - | ||
185 | - | func au (av) = ((av * 100) / at) | |
199 | + | func ay (aw) = (H + aw) | |
186 | 200 | ||
187 | 201 | ||
188 | - | func | |
202 | + | func az (aw) = (J + aw) | |
189 | 203 | ||
190 | 204 | ||
191 | - | func | |
205 | + | func aA (aw) = (I + aw) | |
192 | 206 | ||
193 | 207 | ||
194 | - | func ay (av) = (av * k) | |
208 | + | let aB = a(A) | |
209 | + | ||
210 | + | func aC (aD) = ((((aD * 100) / aB) * l) / m) | |
195 | 211 | ||
196 | 212 | ||
197 | - | func | |
213 | + | func aE (aD) = ((((aD * aB) / 100) * m) / l) | |
198 | 214 | ||
199 | 215 | ||
200 | - | ||
216 | + | func aF (aD) = (aD / m) | |
201 | 217 | ||
202 | - | let aB = a(U) | |
203 | 218 | ||
204 | - | ||
219 | + | func aG (aD) = (aD * m) | |
205 | 220 | ||
206 | - | let aD = a(v) | |
207 | 221 | ||
208 | - | ||
222 | + | func aH (aD) = aF(aE(aD)) | |
209 | 223 | ||
210 | - | let aF = a(t) | |
211 | 224 | ||
212 | - | let | |
225 | + | let aI = a(z) | |
213 | 226 | ||
214 | - | let | |
227 | + | let aJ = a(X) | |
215 | 228 | ||
216 | - | let | |
229 | + | let aK = f(T) | |
217 | 230 | ||
218 | - | let | |
231 | + | let aL = a(y) | |
219 | 232 | ||
220 | - | let | |
233 | + | let aM = a(K) | |
221 | 234 | ||
222 | - | let | |
235 | + | let aN = a(v) | |
223 | 236 | ||
224 | - | let | |
237 | + | let aO = a(R) | |
225 | 238 | ||
226 | - | let | |
239 | + | let aP = a(u) | |
227 | 240 | ||
228 | - | let | |
241 | + | let aQ = f(N) | |
229 | 242 | ||
230 | - | let | |
243 | + | let aR = a(w) | |
231 | 244 | ||
232 | - | let aQ = { | |
233 | - | let aR = extract(assetInfo(aP)) | |
234 | - | (aR.quantity - assetBalance(this, aP)) | |
245 | + | let aS = a(x) | |
246 | + | ||
247 | + | let aT = fromBase58String(e(q)) | |
248 | + | ||
249 | + | let aU = e(s) | |
250 | + | ||
251 | + | let aV = e(t) | |
252 | + | ||
253 | + | let aW = wavesBalance(this) | |
254 | + | ||
255 | + | let aX = e(E) | |
256 | + | ||
257 | + | let aY = fromBase58String(e(r)) | |
258 | + | ||
259 | + | let aZ = { | |
260 | + | let ba = extract(assetInfo(aY)) | |
261 | + | (ba.quantity - assetBalance(this, aY)) | |
235 | 262 | } | |
236 | 263 | ||
237 | - | let | |
238 | - | let | |
239 | - | ( | |
264 | + | let bb = { | |
265 | + | let ba = extract(assetInfo(aT)) | |
266 | + | (ba.quantity - assetBalance(this, aT)) | |
240 | 267 | } | |
241 | 268 | ||
242 | - | let | |
269 | + | let bc = (aE(aW) - bb) | |
243 | 270 | ||
244 | - | let | |
271 | + | let bd = e(af(0)) | |
245 | 272 | ||
246 | - | let | |
273 | + | let be = e(af(1)) | |
247 | 274 | ||
248 | - | let | |
275 | + | let bf = e(af(2)) | |
249 | 276 | ||
250 | - | let | |
277 | + | let bg = e(aa(0)) | |
251 | 278 | ||
252 | - | let | |
279 | + | let bh = e(aa(1)) | |
253 | 280 | ||
254 | - | let | |
281 | + | let bi = e(aa(2)) | |
255 | 282 | ||
256 | - | func | |
283 | + | func bj (ad) = i(aV, as(ad)) | |
257 | 284 | ||
258 | 285 | ||
259 | - | func bb (Y) = if (f(X(Y))) | |
286 | + | func bk (aj) = g(aV, ak(aj)) | |
287 | + | ||
288 | + | ||
289 | + | func bl (at) = f(au(at)) | |
290 | + | ||
291 | + | ||
292 | + | func bm (ad) = if (f(ac(ad))) | |
260 | 293 | then 1 | |
261 | 294 | else 0 | |
262 | 295 | ||
263 | 296 | ||
264 | - | func | |
297 | + | func bn (ad) = a(ae(ad)) | |
265 | 298 | ||
266 | 299 | ||
267 | - | func | |
300 | + | func bo (ad) = f(ag(ad)) | |
268 | 301 | ||
269 | 302 | ||
270 | - | func | |
303 | + | func bp (ad) = if (bo(ad)) | |
271 | 304 | then 1 | |
272 | 305 | else 0 | |
273 | 306 | ||
274 | 307 | ||
275 | - | func | |
308 | + | func bq (ad) = a(ah(ad)) | |
276 | 309 | ||
277 | 310 | ||
278 | - | func | |
311 | + | func br (ad) = a(an(ad)) | |
279 | 312 | ||
280 | 313 | ||
281 | - | func | |
314 | + | func bs (ad) = a(am(ad)) | |
282 | 315 | ||
283 | 316 | ||
284 | - | func | |
317 | + | func bt (ad) = a(ao(ad)) | |
285 | 318 | ||
286 | 319 | ||
287 | - | func | |
320 | + | func bu (bv) = a(av(bv)) | |
288 | 321 | ||
289 | 322 | ||
290 | - | func | |
323 | + | func bw (bv) = e(ax(bv)) | |
291 | 324 | ||
292 | 325 | ||
293 | - | func | |
326 | + | func bx (bv) = a(aA(bv)) | |
294 | 327 | ||
295 | 328 | ||
296 | - | func | |
329 | + | func by (ab) = a(al(ab)) | |
297 | 330 | ||
298 | 331 | ||
299 | - | func | |
332 | + | func bz (bv) = (bv + j) | |
300 | 333 | ||
301 | 334 | ||
302 | - | func | |
335 | + | func bA (aw) = (aX + bz(aw)) | |
303 | 336 | ||
304 | 337 | ||
305 | - | func | |
306 | - | let | |
307 | - | ( | |
338 | + | func bB (aw) = { | |
339 | + | let bC = split(aX, bz(aw)) | |
340 | + | (bC[0] + bC[1]) | |
308 | 341 | } | |
309 | 342 | ||
310 | 343 | ||
311 | - | @Callable( | |
312 | - | func setCurrentPrice ( | |
313 | - | let | |
314 | - | let | |
315 | - | if ( | |
344 | + | @Callable(bD) | |
345 | + | func setCurrentPrice (bE) = { | |
346 | + | let bF = toString(bD.caller) | |
347 | + | let bG = (((bp(bd) + bp(be)) + bp(bf)) + 1) | |
348 | + | if (aQ) | |
316 | 349 | then throw("contract is blocked") | |
317 | - | else if (if (if (( | |
318 | - | then ( | |
350 | + | else if (if (if ((bF != bd)) | |
351 | + | then (bF != be) | |
319 | 352 | else false) | |
320 | - | then ( | |
353 | + | then (bF != bf) | |
321 | 354 | else false) | |
322 | 355 | then throw("permission denied") | |
323 | - | else if (if (( | |
324 | - | then | |
356 | + | else if (if ((aJ >= height)) | |
357 | + | then bo(bF) | |
325 | 358 | else false) | |
326 | 359 | then throw("price is already provided") | |
327 | - | else if (if ((height > | |
328 | - | then | |
360 | + | else if (if ((height > aJ)) | |
361 | + | then aK | |
329 | 362 | else false) | |
330 | 363 | then throw("use finilizeCurrentPrice") | |
331 | - | else WriteSet([DataEntry( | |
332 | - | then (height + | |
333 | - | else | |
364 | + | else WriteSet([DataEntry(ah(bF), bE), DataEntry(X, if ((height > aJ)) | |
365 | + | then (height + aI) | |
366 | + | else aJ), DataEntry(ag(bd), if ((height > aJ)) | |
334 | 367 | then false | |
335 | - | else bd | |
368 | + | else bo(bd)), DataEntry(ag(be), if ((height > aJ)) | |
336 | 369 | then false | |
337 | - | else | |
370 | + | else bo(be)), DataEntry(ag(bf), if ((height > aJ)) | |
338 | 371 | then false | |
339 | - | else | |
340 | - | then ( | |
372 | + | else bo(bf)), DataEntry(ag(bF), true), DataEntry(T, if (if ((aJ >= height)) | |
373 | + | then (bG >= 2) | |
341 | 374 | else false) | |
342 | 375 | then true | |
343 | - | else | |
376 | + | else aK)]) | |
344 | 377 | } | |
345 | 378 | ||
346 | 379 | ||
347 | 380 | ||
348 | - | @Callable( | |
381 | + | @Callable(bD) | |
349 | 382 | func finilizeCurrentPrice () = { | |
350 | - | let | |
351 | - | let | |
352 | - | let | |
353 | - | if ( | |
383 | + | let bF = toString(bD.caller) | |
384 | + | let bG = ((bp(bd) + bp(be)) + bp(bf)) | |
385 | + | let bE = ((((bq(bd) * bp(bd)) + (bq(be) * bp(be))) + (bq(bf) * bp(bf))) / bG) | |
386 | + | if (aQ) | |
354 | 387 | then throw("contract is blocked") | |
355 | - | else if (if (if (( | |
356 | - | then ( | |
388 | + | else if (if (if ((bF != bd)) | |
389 | + | then (bF != be) | |
357 | 390 | else false) | |
358 | - | then ( | |
391 | + | then (bF != bf) | |
359 | 392 | else false) | |
360 | 393 | then throw("permission denied") | |
361 | - | else if (if (!( | |
394 | + | else if (if (!(aK)) | |
362 | 395 | then true | |
363 | - | else ( | |
396 | + | else (aJ >= height)) | |
364 | 397 | then throw("wait for the end of the price providing") | |
365 | - | else if ((2 > | |
398 | + | else if ((2 > bG)) | |
366 | 399 | then throw("2/3 oracles need to set a price") | |
367 | - | else if (if (( | |
400 | + | else if (if ((bE >= (aB + ((aB * aL) / 100)))) | |
368 | 401 | then true | |
369 | - | else (( | |
370 | - | then WriteSet([DataEntry( | |
371 | - | else WriteSet([DataEntry( | |
402 | + | else ((aB - ((aB * aL) / 100)) >= bE)) | |
403 | + | then WriteSet([DataEntry(N, true), DataEntry(ap(height), bE)]) | |
404 | + | else WriteSet([DataEntry(A, bE), DataEntry(ar(height), bE), DataEntry(T, false)]) | |
372 | 405 | } | |
373 | 406 | ||
374 | 407 | ||
375 | 408 | ||
376 | - | @Callable( | |
377 | - | func adminUnlock ( | |
378 | - | let | |
379 | - | let | |
380 | - | then | |
409 | + | @Callable(bD) | |
410 | + | func adminUnlock (bE) = { | |
411 | + | let bF = toString(bD.caller) | |
412 | + | let bH = if ((bF != bg)) | |
413 | + | then bm(bg) | |
381 | 414 | else 0 | |
382 | - | let | |
383 | - | then | |
415 | + | let bI = if ((bF != bh)) | |
416 | + | then bm(bh) | |
384 | 417 | else 0 | |
385 | - | let | |
386 | - | then | |
418 | + | let bJ = if ((bF != bi)) | |
419 | + | then bm(bi) | |
387 | 420 | else 0 | |
388 | - | let | |
421 | + | let bK = if (((bn(bg) * bH) == bE)) | |
389 | 422 | then 1 | |
390 | 423 | else 0 | |
391 | - | let | |
424 | + | let bL = if (((bn(bh) * bI) == bE)) | |
392 | 425 | then 1 | |
393 | 426 | else 0 | |
394 | - | let | |
427 | + | let bM = if (((bn(bi) * bJ) == bE)) | |
395 | 428 | then 1 | |
396 | 429 | else 0 | |
397 | - | if (!( | |
430 | + | if (!(aQ)) | |
398 | 431 | then throw("Contract is not blocked") | |
399 | - | else if (if ((((( | |
400 | - | then ( | |
432 | + | else if (if (((((bK + bL) + bM) + 1) >= 2)) | |
433 | + | then (aO >= height) | |
401 | 434 | else false) | |
402 | - | then WriteSet([DataEntry( | |
403 | - | else WriteSet([DataEntry( | |
404 | - | then (height + | |
405 | - | else | |
435 | + | then WriteSet([DataEntry(N, false), DataEntry(A, bE), DataEntry(ar(height), bE), DataEntry(ac(bg), false), DataEntry(ac(bh), false), DataEntry(ac(bi), false), DataEntry(R, 0), DataEntry(X, 0), DataEntry(T, false)]) | |
436 | + | else WriteSet([DataEntry(ae(bF), bE), DataEntry(R, if ((height > aO)) | |
437 | + | then (height + aN) | |
438 | + | else aO), DataEntry(ac(bg), if ((height > aO)) | |
406 | 439 | then false | |
407 | - | else ( | |
440 | + | else (bH == 1)), DataEntry(ac(bh), if ((height > aO)) | |
408 | 441 | then false | |
409 | - | else ( | |
442 | + | else (bI == 1)), DataEntry(ac(bi), if ((height > aO)) | |
410 | 443 | then false | |
411 | - | else ( | |
444 | + | else (bJ == 1)), DataEntry(ac(bF), true)]) | |
412 | 445 | } | |
413 | 446 | ||
414 | 447 | ||
415 | 448 | ||
416 | - | @Callable( | |
449 | + | @Callable(bD) | |
417 | 450 | func adminLock () = { | |
418 | - | let | |
419 | - | let | |
420 | - | then | |
451 | + | let bF = toString(bD.caller) | |
452 | + | let bH = if ((bF != bg)) | |
453 | + | then bm(bg) | |
421 | 454 | else 1 | |
422 | - | let | |
423 | - | then | |
455 | + | let bI = if ((bF != bh)) | |
456 | + | then bm(bh) | |
424 | 457 | else 1 | |
425 | - | let | |
426 | - | then | |
458 | + | let bJ = if ((bF != bi)) | |
459 | + | then bm(bi) | |
427 | 460 | else 1 | |
428 | - | if ( | |
461 | + | if (aQ) | |
429 | 462 | then throw("Contract is blocked") | |
430 | - | else if (((( | |
431 | - | then WriteSet([DataEntry( | |
432 | - | else WriteSet([DataEntry( | |
433 | - | then (height + | |
434 | - | else | |
463 | + | else if ((((bH + bI) + bJ) >= 2)) | |
464 | + | then WriteSet([DataEntry(N, true), DataEntry(ac(bg), false), DataEntry(ac(bh), false), DataEntry(ac(bi), false), DataEntry(R, 0)]) | |
465 | + | else WriteSet([DataEntry(R, if ((height > aO)) | |
466 | + | then (height + aN) | |
467 | + | else aO), DataEntry(ac(bg), if ((height > aO)) | |
435 | 468 | then false | |
436 | - | else ( | |
469 | + | else (bH == 1)), DataEntry(ac(bh), if ((height > aO)) | |
437 | 470 | then false | |
438 | - | else ( | |
471 | + | else (bI == 1)), DataEntry(ac(bi), if ((height > aO)) | |
439 | 472 | then false | |
440 | - | else ( | |
473 | + | else (bJ == 1))]) | |
441 | 474 | } | |
442 | 475 | ||
443 | 476 | ||
444 | 477 | ||
445 | - | @Callable( | |
478 | + | @Callable(bD) | |
446 | 479 | func swapWavesToNeutrino () = { | |
447 | - | let | |
448 | - | if (( | |
480 | + | let bN = extract(bD.payment) | |
481 | + | if ((aR > bN.amount)) | |
449 | 482 | then throw("amount less min") | |
450 | - | else if (isDefined( | |
483 | + | else if (isDefined(bN.assetId)) | |
451 | 484 | then throw("can use waves only") | |
452 | - | else if ( | |
485 | + | else if (aQ) | |
453 | 486 | then throw("contract is blocked") | |
454 | 487 | else { | |
455 | - | let | |
456 | - | TransferSet([ScriptTransfer( | |
488 | + | let aD = aE(bN.amount) | |
489 | + | TransferSet([ScriptTransfer(bD.caller, aD, aT)]) | |
457 | 490 | } | |
458 | 491 | } | |
459 | 492 | ||
460 | 493 | ||
461 | 494 | ||
462 | - | @Callable( | |
495 | + | @Callable(bD) | |
463 | 496 | func swapNeutrinoToWaves () = { | |
464 | - | let | |
465 | - | if (( | |
497 | + | let bN = extract(bD.payment) | |
498 | + | if ((aS > bN.amount)) | |
466 | 499 | then throw("amount less min") | |
467 | - | else if ( | |
500 | + | else if (aQ) | |
468 | 501 | then throw("contract is blocked") | |
469 | - | else if (( | |
502 | + | else if ((bN.assetId != aT)) | |
470 | 503 | then throw("can use neutrino only") | |
471 | 504 | else { | |
472 | - | let | |
473 | - | let | |
474 | - | WriteSet([DataEntry( | |
505 | + | let bF = toBase58String(bD.caller.bytes) | |
506 | + | let aD = aC(bN.amount) | |
507 | + | WriteSet([DataEntry(an(bF), (br(bF) + aD)), DataEntry(ao(bF), (height + aP))]) | |
475 | 508 | } | |
476 | 509 | } | |
477 | 510 | ||
478 | 511 | ||
479 | 512 | ||
480 | - | @Callable( | |
481 | - | func withdraw ( | |
513 | + | @Callable(bD) | |
514 | + | func withdraw (bF) = if ((bt(bF) > height)) | |
482 | 515 | then throw("wait a couple of blocks for withdraw") | |
483 | - | else ScriptResult(WriteSet([DataEntry( | |
516 | + | else ScriptResult(WriteSet([DataEntry(an(bF), 0), DataEntry(am(bF), 0)]), TransferSet([ScriptTransfer(addressFromStringValue(bF), bs(bF), aT), ScriptTransfer(addressFromStringValue(bF), br(bF), unit)])) | |
484 | 517 | ||
485 | 518 | ||
486 | 519 | ||
487 | - | @Callable( | |
520 | + | @Callable(bD) | |
488 | 521 | func generateBond () = { | |
489 | - | let | |
490 | - | let | |
491 | - | let | |
492 | - | if ( | |
522 | + | let bO = (bb - aE(aW)) | |
523 | + | let bP = assetBalance(addressFromStringValue(aU), aY) | |
524 | + | let aD = (aF(bO) - bP) | |
525 | + | if (aQ) | |
493 | 526 | then throw("contract is blocked") | |
494 | - | else if (( | |
495 | - | then TransferSet([ScriptTransfer(addressFromStringValue( | |
527 | + | else if ((aD > 0)) | |
528 | + | then TransferSet([ScriptTransfer(addressFromStringValue(aU), aD, aY)]) | |
496 | 529 | else throw("bond were generated or do not need it") | |
497 | 530 | } | |
498 | 531 | ||
499 | 532 | ||
500 | 533 | ||
501 | - | @Callable( | |
534 | + | @Callable(bD) | |
502 | 535 | func setOrder () = { | |
503 | - | let | |
504 | - | let | |
505 | - | if (( | |
536 | + | let bN = extract(bD.payment) | |
537 | + | let bQ = toBase58String(keccak256(((toBytes(bN.amount) + bD.caller.bytes) + toBytes(height)))) | |
538 | + | if ((bN.assetId != aY)) | |
506 | 539 | then throw("can use bond only") | |
507 | - | else if (( | |
540 | + | else if ((bw(bQ) != "")) | |
508 | 541 | then throw("order exists") | |
509 | - | else WriteSet([DataEntry( | |
542 | + | else WriteSet([DataEntry(E, bA(bQ)), DataEntry(av(bQ), bN.amount), DataEntry(ax(bQ), toString(bD.caller)), DataEntry(ay(bQ), height), DataEntry(az(bQ), o)]) | |
510 | 543 | } | |
511 | 544 | ||
512 | 545 | ||
513 | 546 | ||
514 | - | @Callable( | |
515 | - | func cancelOrder ( | |
516 | - | let | |
517 | - | let | |
518 | - | if (( | |
547 | + | @Callable(bD) | |
548 | + | func cancelOrder (aw) = { | |
549 | + | let ad = bw(aw) | |
550 | + | let aD = (bu(aw) - bx(aw)) | |
551 | + | if ((ad != toString(bD.caller))) | |
519 | 552 | then throw("permission denied") | |
520 | - | else ScriptResult(WriteSet([DataEntry( | |
553 | + | else ScriptResult(WriteSet([DataEntry(E, bB(aw)), DataEntry(az(aw), n)]), TransferSet([ScriptTransfer(bD.caller, aD, aY)])) | |
521 | 554 | } | |
522 | 555 | ||
523 | 556 | ||
524 | 557 | ||
525 | - | @Callable(bs) | |
558 | + | @Callable(bD) | |
559 | + | func addLeasingCheck (bv) = { | |
560 | + | let bR = value(transferTransactionById(fromBase58String(bv))) | |
561 | + | if (if ((bR.recipient != addressFromStringValue(aV))) | |
562 | + | then true | |
563 | + | else bl(bv)) | |
564 | + | then throw("invalid transaction id") | |
565 | + | else { | |
566 | + | let aD = aE(bR.amount) | |
567 | + | let bS = (aM + 1) | |
568 | + | ScriptResult(WriteSet([DataEntry(K, bS), DataEntry(al(aM), aD), DataEntry(ai(aM, aT), bk(aT)), DataEntry(ai(aM, aY), bk(aY)), DataEntry(au(bv), true)]), TransferSet([ScriptTransfer(addressFromStringValue(aV), aD, aT)])) | |
569 | + | } | |
570 | + | } | |
571 | + | ||
572 | + | ||
573 | + | ||
574 | + | @Callable(bD) | |
526 | 575 | func executeOrder () = { | |
527 | - | let | |
528 | - | let | |
529 | - | let | |
530 | - | let | |
531 | - | if ( | |
576 | + | let aw = split(aX, j)[0] | |
577 | + | let bT = bu(aw) | |
578 | + | let bU = bw(aw) | |
579 | + | let bV = bx(aw) | |
580 | + | if (aQ) | |
532 | 581 | then throw("contract is blocked") | |
533 | - | else if ((0 >= | |
582 | + | else if ((0 >= bc)) | |
534 | 583 | then throw("surplus is less than zero") | |
535 | - | else if (( | |
584 | + | else if ((bU == "")) | |
536 | 585 | then { | |
537 | - | let | |
538 | - | ScriptResult(WriteSet([DataEntry( | |
586 | + | let bS = (aM + 1) | |
587 | + | ScriptResult(WriteSet([DataEntry(K, bS), DataEntry(al(aM), bc), DataEntry(ai(aM, aT), bk(aT)), DataEntry(ai(aM, aY), bk(aY))]), TransferSet([ScriptTransfer(addressFromStringValue(aV), bc, aT)])) | |
539 | 588 | } | |
540 | 589 | else { | |
541 | - | let | |
542 | - | let | |
543 | - | let | |
544 | - | then | |
545 | - | else | |
546 | - | let | |
547 | - | then | |
548 | - | else | |
549 | - | ScriptResult(WriteSet([DataEntry( | |
590 | + | let aD = (bT - bV) | |
591 | + | let bW = aF(bc) | |
592 | + | let bX = if ((bW >= aD)) | |
593 | + | then p | |
594 | + | else o | |
595 | + | let bY = if ((bW >= aD)) | |
596 | + | then bT | |
597 | + | else bW | |
598 | + | ScriptResult(WriteSet([DataEntry(E, bB(aw)), DataEntry(aA(aw), (bV + bY)), DataEntry(az(aw), bX)]), TransferSet([ScriptTransfer(addressFromStringValue(bU), aG(bY), aT)])) | |
550 | 599 | } | |
551 | 600 | } | |
552 | 601 | ||
602 | + | ||
603 | + | ||
604 | + | @Callable(bD) | |
605 | + | func transfer (bF) = { | |
606 | + | let bN = extract(bD.payment) | |
607 | + | if (isDefined(bN.assetId)) | |
608 | + | then throw("can use waves only at the moment") | |
609 | + | else TransferSet([ScriptTransfer(addressFromStringValue(bF), bN.amount, unit)]) | |
610 | + | } | |
611 | + | ||
612 | + | ||
613 | + | @Verifier(bR) | |
614 | + | func bZ () = { | |
615 | + | let c = bR | |
616 | + | if ($isInstanceOf(c, "LeaseTransaction")) | |
617 | + | then { | |
618 | + | let ca = c | |
619 | + | sigVerify(bR.bodyBytes, bR.proofs[0], fromBase58String(bj(toBase58String(ca.id)))) | |
620 | + | } | |
621 | + | else if ($isInstanceOf(c, "LeaseCancelTransaction")) | |
622 | + | then { | |
623 | + | let cb = c | |
624 | + | sigVerify(bR.bodyBytes, bR.proofs[0], fromBase58String(bj(toBase58String(cb.leaseId)))) | |
625 | + | } | |
626 | + | else sigVerify(bR.bodyBytes, bR.proofs[0], bR.senderPublicKey) | |
627 | + | } | |
553 | 628 |
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 | - | let i = "_" | |
49 | - | ||
50 | - | let j = "+" | |
51 | - | ||
52 | - | let k = 100000000 | |
53 | - | ||
54 | - | let l = "canceled" | |
55 | - | ||
56 | - | let m = "new" | |
57 | - | ||
58 | - | let n = "filled" | |
59 | - | ||
60 | - | let o = "neutrino_asset_id" | |
61 | - | ||
62 | - | let p = "bond_asset_id" | |
63 | - | ||
64 | - | let q = "auction_contract" | |
65 | - | ||
66 | - | let r = "rpd_contract" | |
67 | - | ||
68 | - | let s = "balance_lock_interval" | |
69 | - | ||
70 | - | let t = "vote_interval" | |
71 | - | ||
72 | - | let u = "min_swap_amount" | |
73 | - | ||
74 | - | let v = "price_offset" | |
75 | - | ||
76 | - | let w = "providing_interval" | |
77 | - | ||
78 | - | let x = "price" | |
79 | - | ||
80 | - | let y = "neutrino_" | |
81 | - | ||
82 | - | let z = "waves_" | |
83 | - | ||
84 | - | let A = "balance_block_" | |
85 | - | ||
86 | - | let B = "orderbook" | |
87 | - | ||
88 | - | let C = "order_total_" | |
89 | - | ||
90 | - | let D = "order_owner_" | |
91 | - | ||
92 | - | let E = "order_height_" | |
93 | - | ||
94 | - | let F = "order_filled_total_" | |
95 | - | ||
96 | - | let G = "order_status_" | |
97 | - | ||
98 | - | let H = "rpd_sync_index" | |
99 | - | ||
100 | - | let I = "rpd_profit" | |
101 | - | ||
102 | - | let J = "rpd_balance" | |
103 | - | ||
104 | - | let K = "is_blocked" | |
105 | - | ||
106 | - | let L = "black_swarm_price" | |
107 | - | ||
108 | - | let M = "admin_vote_" | |
109 | - | ||
110 | - | let N = "admin_vote_price_" | |
111 | - | ||
112 | - | let O = "vote_expire_block" | |
113 | - | ||
114 | - | let P = "admin_" | |
115 | - | ||
116 | - | let Q = "is_pending_price" | |
117 | - | ||
118 | - | let R = "oracle_" | |
119 | - | ||
120 | - | let S = "oracle_is_provide_" | |
121 | - | ||
122 | - | let T = "oracle_price_provide_" | |
123 | - | ||
124 | - | let U = "providing_expire_block" | |
125 | - | ||
126 | - | func V (W) = (P + toString(W)) | |
48 | + | func i (h,b) = { | |
49 | + | let c = getString(this, b) | |
50 | + | if ($isInstanceOf(c, "String")) | |
51 | + | then { | |
52 | + | let d = c | |
53 | + | d | |
54 | + | } | |
55 | + | else "" | |
56 | + | } | |
127 | 57 | ||
128 | 58 | ||
129 | - | func X (Y) = (M + Y) | |
59 | + | let j = "_" | |
60 | + | ||
61 | + | let k = "+" | |
62 | + | ||
63 | + | let l = 100000000 | |
64 | + | ||
65 | + | let m = 100 | |
66 | + | ||
67 | + | let n = "canceled" | |
68 | + | ||
69 | + | let o = "new" | |
70 | + | ||
71 | + | let p = "filled" | |
72 | + | ||
73 | + | let q = "neutrino_asset_id" | |
74 | + | ||
75 | + | let r = "bond_asset_id" | |
76 | + | ||
77 | + | let s = "auction_contract" | |
78 | + | ||
79 | + | let t = "rpd_contract" | |
80 | + | ||
81 | + | let u = "balance_lock_interval" | |
82 | + | ||
83 | + | let v = "vote_interval" | |
84 | + | ||
85 | + | let w = "min_waves_swap_amount" | |
86 | + | ||
87 | + | let x = "min_neutrino_swap_amount" | |
88 | + | ||
89 | + | let y = "price_offset" | |
90 | + | ||
91 | + | let z = "providing_interval" | |
92 | + | ||
93 | + | let A = "price" | |
94 | + | ||
95 | + | let B = "neutrino_" | |
96 | + | ||
97 | + | let C = "waves_" | |
98 | + | ||
99 | + | let D = "balance_block_" | |
100 | + | ||
101 | + | let E = "orderbook" | |
102 | + | ||
103 | + | let F = "order_total_" | |
104 | + | ||
105 | + | let G = "order_owner_" | |
106 | + | ||
107 | + | let H = "order_height_" | |
108 | + | ||
109 | + | let I = "order_filled_total_" | |
110 | + | ||
111 | + | let J = "order_status_" | |
112 | + | ||
113 | + | let K = "rpd_sync_index" | |
114 | + | ||
115 | + | let L = "rpd_profit" | |
116 | + | ||
117 | + | let M = "rpd_balance" | |
118 | + | ||
119 | + | let N = "is_blocked" | |
120 | + | ||
121 | + | let O = "black_swarm_price" | |
122 | + | ||
123 | + | let P = "admin_vote_" | |
124 | + | ||
125 | + | let Q = "admin_vote_price_" | |
126 | + | ||
127 | + | let R = "vote_expire_block" | |
128 | + | ||
129 | + | let S = "admin_" | |
130 | + | ||
131 | + | let T = "is_pending_price" | |
132 | + | ||
133 | + | let U = "oracle_" | |
134 | + | ||
135 | + | let V = "oracle_is_provide_" | |
136 | + | ||
137 | + | let W = "oracle_price_provide_" | |
138 | + | ||
139 | + | let X = "providing_expire_block" | |
140 | + | ||
141 | + | let Y = "leasetx" | |
142 | + | ||
143 | + | let Z = "is_leasing_profit" | |
144 | + | ||
145 | + | func aa (ab) = (S + toString(ab)) | |
130 | 146 | ||
131 | 147 | ||
132 | - | func | |
148 | + | func ac (ad) = (P + ad) | |
133 | 149 | ||
134 | 150 | ||
135 | - | func | |
151 | + | func ae (ad) = (Q + ad) | |
136 | 152 | ||
137 | 153 | ||
138 | - | func | |
154 | + | func af (ab) = (U + toString(ab)) | |
139 | 155 | ||
140 | 156 | ||
141 | - | func | |
157 | + | func ag (ad) = (V + ad) | |
142 | 158 | ||
143 | 159 | ||
144 | - | func | |
160 | + | func ah (ad) = (W + ad) | |
145 | 161 | ||
146 | 162 | ||
147 | - | func | |
163 | + | func ai (ab,aj) = ((((M + "_") + toBase58String(aj)) + "_") + toString(ab)) | |
148 | 164 | ||
149 | 165 | ||
150 | - | func | |
166 | + | func ak (aj) = ((M + "_") + toBase58String(aj)) | |
151 | 167 | ||
152 | 168 | ||
153 | - | func | |
169 | + | func al (ab) = ((L + "_") + toString(ab)) | |
154 | 170 | ||
155 | 171 | ||
156 | - | func | |
172 | + | func am (ad) = (B + ad) | |
157 | 173 | ||
158 | 174 | ||
159 | - | func | |
175 | + | func an (ad) = (C + ad) | |
160 | 176 | ||
161 | 177 | ||
162 | - | func | |
178 | + | func ao (ad) = (D + ad) | |
163 | 179 | ||
164 | 180 | ||
165 | - | func | |
181 | + | func ap (aq) = ((O + "_") + toString(aq)) | |
166 | 182 | ||
167 | 183 | ||
168 | - | func | |
184 | + | func ar (aq) = ((A + "_") + toString(aq)) | |
169 | 185 | ||
170 | 186 | ||
171 | - | func | |
187 | + | func as (at) = ((Y + "_") + at) | |
172 | 188 | ||
173 | 189 | ||
174 | - | func | |
190 | + | func au (at) = ((Z + "_") + at) | |
175 | 191 | ||
176 | 192 | ||
177 | - | func | |
193 | + | func av (aw) = (F + aw) | |
178 | 194 | ||
179 | 195 | ||
180 | - | func | |
196 | + | func ax (aw) = (G + aw) | |
181 | 197 | ||
182 | 198 | ||
183 | - | let at = a(x) | |
184 | - | ||
185 | - | func au (av) = ((av * 100) / at) | |
199 | + | func ay (aw) = (H + aw) | |
186 | 200 | ||
187 | 201 | ||
188 | - | func | |
202 | + | func az (aw) = (J + aw) | |
189 | 203 | ||
190 | 204 | ||
191 | - | func | |
205 | + | func aA (aw) = (I + aw) | |
192 | 206 | ||
193 | 207 | ||
194 | - | func ay (av) = (av * k) | |
208 | + | let aB = a(A) | |
209 | + | ||
210 | + | func aC (aD) = ((((aD * 100) / aB) * l) / m) | |
195 | 211 | ||
196 | 212 | ||
197 | - | func | |
213 | + | func aE (aD) = ((((aD * aB) / 100) * m) / l) | |
198 | 214 | ||
199 | 215 | ||
200 | - | ||
216 | + | func aF (aD) = (aD / m) | |
201 | 217 | ||
202 | - | let aB = a(U) | |
203 | 218 | ||
204 | - | ||
219 | + | func aG (aD) = (aD * m) | |
205 | 220 | ||
206 | - | let aD = a(v) | |
207 | 221 | ||
208 | - | ||
222 | + | func aH (aD) = aF(aE(aD)) | |
209 | 223 | ||
210 | - | let aF = a(t) | |
211 | 224 | ||
212 | - | let | |
225 | + | let aI = a(z) | |
213 | 226 | ||
214 | - | let | |
227 | + | let aJ = a(X) | |
215 | 228 | ||
216 | - | let | |
229 | + | let aK = f(T) | |
217 | 230 | ||
218 | - | let | |
231 | + | let aL = a(y) | |
219 | 232 | ||
220 | - | let | |
233 | + | let aM = a(K) | |
221 | 234 | ||
222 | - | let | |
235 | + | let aN = a(v) | |
223 | 236 | ||
224 | - | let | |
237 | + | let aO = a(R) | |
225 | 238 | ||
226 | - | let | |
239 | + | let aP = a(u) | |
227 | 240 | ||
228 | - | let | |
241 | + | let aQ = f(N) | |
229 | 242 | ||
230 | - | let | |
243 | + | let aR = a(w) | |
231 | 244 | ||
232 | - | let aQ = { | |
233 | - | let aR = extract(assetInfo(aP)) | |
234 | - | (aR.quantity - assetBalance(this, aP)) | |
245 | + | let aS = a(x) | |
246 | + | ||
247 | + | let aT = fromBase58String(e(q)) | |
248 | + | ||
249 | + | let aU = e(s) | |
250 | + | ||
251 | + | let aV = e(t) | |
252 | + | ||
253 | + | let aW = wavesBalance(this) | |
254 | + | ||
255 | + | let aX = e(E) | |
256 | + | ||
257 | + | let aY = fromBase58String(e(r)) | |
258 | + | ||
259 | + | let aZ = { | |
260 | + | let ba = extract(assetInfo(aY)) | |
261 | + | (ba.quantity - assetBalance(this, aY)) | |
235 | 262 | } | |
236 | 263 | ||
237 | - | let | |
238 | - | let | |
239 | - | ( | |
264 | + | let bb = { | |
265 | + | let ba = extract(assetInfo(aT)) | |
266 | + | (ba.quantity - assetBalance(this, aT)) | |
240 | 267 | } | |
241 | 268 | ||
242 | - | let | |
269 | + | let bc = (aE(aW) - bb) | |
243 | 270 | ||
244 | - | let | |
271 | + | let bd = e(af(0)) | |
245 | 272 | ||
246 | - | let | |
273 | + | let be = e(af(1)) | |
247 | 274 | ||
248 | - | let | |
275 | + | let bf = e(af(2)) | |
249 | 276 | ||
250 | - | let | |
277 | + | let bg = e(aa(0)) | |
251 | 278 | ||
252 | - | let | |
279 | + | let bh = e(aa(1)) | |
253 | 280 | ||
254 | - | let | |
281 | + | let bi = e(aa(2)) | |
255 | 282 | ||
256 | - | func | |
283 | + | func bj (ad) = i(aV, as(ad)) | |
257 | 284 | ||
258 | 285 | ||
259 | - | func bb (Y) = if (f(X(Y))) | |
286 | + | func bk (aj) = g(aV, ak(aj)) | |
287 | + | ||
288 | + | ||
289 | + | func bl (at) = f(au(at)) | |
290 | + | ||
291 | + | ||
292 | + | func bm (ad) = if (f(ac(ad))) | |
260 | 293 | then 1 | |
261 | 294 | else 0 | |
262 | 295 | ||
263 | 296 | ||
264 | - | func | |
297 | + | func bn (ad) = a(ae(ad)) | |
265 | 298 | ||
266 | 299 | ||
267 | - | func | |
300 | + | func bo (ad) = f(ag(ad)) | |
268 | 301 | ||
269 | 302 | ||
270 | - | func | |
303 | + | func bp (ad) = if (bo(ad)) | |
271 | 304 | then 1 | |
272 | 305 | else 0 | |
273 | 306 | ||
274 | 307 | ||
275 | - | func | |
308 | + | func bq (ad) = a(ah(ad)) | |
276 | 309 | ||
277 | 310 | ||
278 | - | func | |
311 | + | func br (ad) = a(an(ad)) | |
279 | 312 | ||
280 | 313 | ||
281 | - | func | |
314 | + | func bs (ad) = a(am(ad)) | |
282 | 315 | ||
283 | 316 | ||
284 | - | func | |
317 | + | func bt (ad) = a(ao(ad)) | |
285 | 318 | ||
286 | 319 | ||
287 | - | func | |
320 | + | func bu (bv) = a(av(bv)) | |
288 | 321 | ||
289 | 322 | ||
290 | - | func | |
323 | + | func bw (bv) = e(ax(bv)) | |
291 | 324 | ||
292 | 325 | ||
293 | - | func | |
326 | + | func bx (bv) = a(aA(bv)) | |
294 | 327 | ||
295 | 328 | ||
296 | - | func | |
329 | + | func by (ab) = a(al(ab)) | |
297 | 330 | ||
298 | 331 | ||
299 | - | func | |
332 | + | func bz (bv) = (bv + j) | |
300 | 333 | ||
301 | 334 | ||
302 | - | func | |
335 | + | func bA (aw) = (aX + bz(aw)) | |
303 | 336 | ||
304 | 337 | ||
305 | - | func | |
306 | - | let | |
307 | - | ( | |
338 | + | func bB (aw) = { | |
339 | + | let bC = split(aX, bz(aw)) | |
340 | + | (bC[0] + bC[1]) | |
308 | 341 | } | |
309 | 342 | ||
310 | 343 | ||
311 | - | @Callable( | |
312 | - | func setCurrentPrice ( | |
313 | - | let | |
314 | - | let | |
315 | - | if ( | |
344 | + | @Callable(bD) | |
345 | + | func setCurrentPrice (bE) = { | |
346 | + | let bF = toString(bD.caller) | |
347 | + | let bG = (((bp(bd) + bp(be)) + bp(bf)) + 1) | |
348 | + | if (aQ) | |
316 | 349 | then throw("contract is blocked") | |
317 | - | else if (if (if (( | |
318 | - | then ( | |
350 | + | else if (if (if ((bF != bd)) | |
351 | + | then (bF != be) | |
319 | 352 | else false) | |
320 | - | then ( | |
353 | + | then (bF != bf) | |
321 | 354 | else false) | |
322 | 355 | then throw("permission denied") | |
323 | - | else if (if (( | |
324 | - | then | |
356 | + | else if (if ((aJ >= height)) | |
357 | + | then bo(bF) | |
325 | 358 | else false) | |
326 | 359 | then throw("price is already provided") | |
327 | - | else if (if ((height > | |
328 | - | then | |
360 | + | else if (if ((height > aJ)) | |
361 | + | then aK | |
329 | 362 | else false) | |
330 | 363 | then throw("use finilizeCurrentPrice") | |
331 | - | else WriteSet([DataEntry( | |
332 | - | then (height + | |
333 | - | else | |
364 | + | else WriteSet([DataEntry(ah(bF), bE), DataEntry(X, if ((height > aJ)) | |
365 | + | then (height + aI) | |
366 | + | else aJ), DataEntry(ag(bd), if ((height > aJ)) | |
334 | 367 | then false | |
335 | - | else bd | |
368 | + | else bo(bd)), DataEntry(ag(be), if ((height > aJ)) | |
336 | 369 | then false | |
337 | - | else | |
370 | + | else bo(be)), DataEntry(ag(bf), if ((height > aJ)) | |
338 | 371 | then false | |
339 | - | else | |
340 | - | then ( | |
372 | + | else bo(bf)), DataEntry(ag(bF), true), DataEntry(T, if (if ((aJ >= height)) | |
373 | + | then (bG >= 2) | |
341 | 374 | else false) | |
342 | 375 | then true | |
343 | - | else | |
376 | + | else aK)]) | |
344 | 377 | } | |
345 | 378 | ||
346 | 379 | ||
347 | 380 | ||
348 | - | @Callable( | |
381 | + | @Callable(bD) | |
349 | 382 | func finilizeCurrentPrice () = { | |
350 | - | let | |
351 | - | let | |
352 | - | let | |
353 | - | if ( | |
383 | + | let bF = toString(bD.caller) | |
384 | + | let bG = ((bp(bd) + bp(be)) + bp(bf)) | |
385 | + | let bE = ((((bq(bd) * bp(bd)) + (bq(be) * bp(be))) + (bq(bf) * bp(bf))) / bG) | |
386 | + | if (aQ) | |
354 | 387 | then throw("contract is blocked") | |
355 | - | else if (if (if (( | |
356 | - | then ( | |
388 | + | else if (if (if ((bF != bd)) | |
389 | + | then (bF != be) | |
357 | 390 | else false) | |
358 | - | then ( | |
391 | + | then (bF != bf) | |
359 | 392 | else false) | |
360 | 393 | then throw("permission denied") | |
361 | - | else if (if (!( | |
394 | + | else if (if (!(aK)) | |
362 | 395 | then true | |
363 | - | else ( | |
396 | + | else (aJ >= height)) | |
364 | 397 | then throw("wait for the end of the price providing") | |
365 | - | else if ((2 > | |
398 | + | else if ((2 > bG)) | |
366 | 399 | then throw("2/3 oracles need to set a price") | |
367 | - | else if (if (( | |
400 | + | else if (if ((bE >= (aB + ((aB * aL) / 100)))) | |
368 | 401 | then true | |
369 | - | else (( | |
370 | - | then WriteSet([DataEntry( | |
371 | - | else WriteSet([DataEntry( | |
402 | + | else ((aB - ((aB * aL) / 100)) >= bE)) | |
403 | + | then WriteSet([DataEntry(N, true), DataEntry(ap(height), bE)]) | |
404 | + | else WriteSet([DataEntry(A, bE), DataEntry(ar(height), bE), DataEntry(T, false)]) | |
372 | 405 | } | |
373 | 406 | ||
374 | 407 | ||
375 | 408 | ||
376 | - | @Callable( | |
377 | - | func adminUnlock ( | |
378 | - | let | |
379 | - | let | |
380 | - | then | |
409 | + | @Callable(bD) | |
410 | + | func adminUnlock (bE) = { | |
411 | + | let bF = toString(bD.caller) | |
412 | + | let bH = if ((bF != bg)) | |
413 | + | then bm(bg) | |
381 | 414 | else 0 | |
382 | - | let | |
383 | - | then | |
415 | + | let bI = if ((bF != bh)) | |
416 | + | then bm(bh) | |
384 | 417 | else 0 | |
385 | - | let | |
386 | - | then | |
418 | + | let bJ = if ((bF != bi)) | |
419 | + | then bm(bi) | |
387 | 420 | else 0 | |
388 | - | let | |
421 | + | let bK = if (((bn(bg) * bH) == bE)) | |
389 | 422 | then 1 | |
390 | 423 | else 0 | |
391 | - | let | |
424 | + | let bL = if (((bn(bh) * bI) == bE)) | |
392 | 425 | then 1 | |
393 | 426 | else 0 | |
394 | - | let | |
427 | + | let bM = if (((bn(bi) * bJ) == bE)) | |
395 | 428 | then 1 | |
396 | 429 | else 0 | |
397 | - | if (!( | |
430 | + | if (!(aQ)) | |
398 | 431 | then throw("Contract is not blocked") | |
399 | - | else if (if ((((( | |
400 | - | then ( | |
432 | + | else if (if (((((bK + bL) + bM) + 1) >= 2)) | |
433 | + | then (aO >= height) | |
401 | 434 | else false) | |
402 | - | then WriteSet([DataEntry( | |
403 | - | else WriteSet([DataEntry( | |
404 | - | then (height + | |
405 | - | else | |
435 | + | then WriteSet([DataEntry(N, false), DataEntry(A, bE), DataEntry(ar(height), bE), DataEntry(ac(bg), false), DataEntry(ac(bh), false), DataEntry(ac(bi), false), DataEntry(R, 0), DataEntry(X, 0), DataEntry(T, false)]) | |
436 | + | else WriteSet([DataEntry(ae(bF), bE), DataEntry(R, if ((height > aO)) | |
437 | + | then (height + aN) | |
438 | + | else aO), DataEntry(ac(bg), if ((height > aO)) | |
406 | 439 | then false | |
407 | - | else ( | |
440 | + | else (bH == 1)), DataEntry(ac(bh), if ((height > aO)) | |
408 | 441 | then false | |
409 | - | else ( | |
442 | + | else (bI == 1)), DataEntry(ac(bi), if ((height > aO)) | |
410 | 443 | then false | |
411 | - | else ( | |
444 | + | else (bJ == 1)), DataEntry(ac(bF), true)]) | |
412 | 445 | } | |
413 | 446 | ||
414 | 447 | ||
415 | 448 | ||
416 | - | @Callable( | |
449 | + | @Callable(bD) | |
417 | 450 | func adminLock () = { | |
418 | - | let | |
419 | - | let | |
420 | - | then | |
451 | + | let bF = toString(bD.caller) | |
452 | + | let bH = if ((bF != bg)) | |
453 | + | then bm(bg) | |
421 | 454 | else 1 | |
422 | - | let | |
423 | - | then | |
455 | + | let bI = if ((bF != bh)) | |
456 | + | then bm(bh) | |
424 | 457 | else 1 | |
425 | - | let | |
426 | - | then | |
458 | + | let bJ = if ((bF != bi)) | |
459 | + | then bm(bi) | |
427 | 460 | else 1 | |
428 | - | if ( | |
461 | + | if (aQ) | |
429 | 462 | then throw("Contract is blocked") | |
430 | - | else if (((( | |
431 | - | then WriteSet([DataEntry( | |
432 | - | else WriteSet([DataEntry( | |
433 | - | then (height + | |
434 | - | else | |
463 | + | else if ((((bH + bI) + bJ) >= 2)) | |
464 | + | then WriteSet([DataEntry(N, true), DataEntry(ac(bg), false), DataEntry(ac(bh), false), DataEntry(ac(bi), false), DataEntry(R, 0)]) | |
465 | + | else WriteSet([DataEntry(R, if ((height > aO)) | |
466 | + | then (height + aN) | |
467 | + | else aO), DataEntry(ac(bg), if ((height > aO)) | |
435 | 468 | then false | |
436 | - | else ( | |
469 | + | else (bH == 1)), DataEntry(ac(bh), if ((height > aO)) | |
437 | 470 | then false | |
438 | - | else ( | |
471 | + | else (bI == 1)), DataEntry(ac(bi), if ((height > aO)) | |
439 | 472 | then false | |
440 | - | else ( | |
473 | + | else (bJ == 1))]) | |
441 | 474 | } | |
442 | 475 | ||
443 | 476 | ||
444 | 477 | ||
445 | - | @Callable( | |
478 | + | @Callable(bD) | |
446 | 479 | func swapWavesToNeutrino () = { | |
447 | - | let | |
448 | - | if (( | |
480 | + | let bN = extract(bD.payment) | |
481 | + | if ((aR > bN.amount)) | |
449 | 482 | then throw("amount less min") | |
450 | - | else if (isDefined( | |
483 | + | else if (isDefined(bN.assetId)) | |
451 | 484 | then throw("can use waves only") | |
452 | - | else if ( | |
485 | + | else if (aQ) | |
453 | 486 | then throw("contract is blocked") | |
454 | 487 | else { | |
455 | - | let | |
456 | - | TransferSet([ScriptTransfer( | |
488 | + | let aD = aE(bN.amount) | |
489 | + | TransferSet([ScriptTransfer(bD.caller, aD, aT)]) | |
457 | 490 | } | |
458 | 491 | } | |
459 | 492 | ||
460 | 493 | ||
461 | 494 | ||
462 | - | @Callable( | |
495 | + | @Callable(bD) | |
463 | 496 | func swapNeutrinoToWaves () = { | |
464 | - | let | |
465 | - | if (( | |
497 | + | let bN = extract(bD.payment) | |
498 | + | if ((aS > bN.amount)) | |
466 | 499 | then throw("amount less min") | |
467 | - | else if ( | |
500 | + | else if (aQ) | |
468 | 501 | then throw("contract is blocked") | |
469 | - | else if (( | |
502 | + | else if ((bN.assetId != aT)) | |
470 | 503 | then throw("can use neutrino only") | |
471 | 504 | else { | |
472 | - | let | |
473 | - | let | |
474 | - | WriteSet([DataEntry( | |
505 | + | let bF = toBase58String(bD.caller.bytes) | |
506 | + | let aD = aC(bN.amount) | |
507 | + | WriteSet([DataEntry(an(bF), (br(bF) + aD)), DataEntry(ao(bF), (height + aP))]) | |
475 | 508 | } | |
476 | 509 | } | |
477 | 510 | ||
478 | 511 | ||
479 | 512 | ||
480 | - | @Callable( | |
481 | - | func withdraw ( | |
513 | + | @Callable(bD) | |
514 | + | func withdraw (bF) = if ((bt(bF) > height)) | |
482 | 515 | then throw("wait a couple of blocks for withdraw") | |
483 | - | else ScriptResult(WriteSet([DataEntry( | |
516 | + | else ScriptResult(WriteSet([DataEntry(an(bF), 0), DataEntry(am(bF), 0)]), TransferSet([ScriptTransfer(addressFromStringValue(bF), bs(bF), aT), ScriptTransfer(addressFromStringValue(bF), br(bF), unit)])) | |
484 | 517 | ||
485 | 518 | ||
486 | 519 | ||
487 | - | @Callable( | |
520 | + | @Callable(bD) | |
488 | 521 | func generateBond () = { | |
489 | - | let | |
490 | - | let | |
491 | - | let | |
492 | - | if ( | |
522 | + | let bO = (bb - aE(aW)) | |
523 | + | let bP = assetBalance(addressFromStringValue(aU), aY) | |
524 | + | let aD = (aF(bO) - bP) | |
525 | + | if (aQ) | |
493 | 526 | then throw("contract is blocked") | |
494 | - | else if (( | |
495 | - | then TransferSet([ScriptTransfer(addressFromStringValue( | |
527 | + | else if ((aD > 0)) | |
528 | + | then TransferSet([ScriptTransfer(addressFromStringValue(aU), aD, aY)]) | |
496 | 529 | else throw("bond were generated or do not need it") | |
497 | 530 | } | |
498 | 531 | ||
499 | 532 | ||
500 | 533 | ||
501 | - | @Callable( | |
534 | + | @Callable(bD) | |
502 | 535 | func setOrder () = { | |
503 | - | let | |
504 | - | let | |
505 | - | if (( | |
536 | + | let bN = extract(bD.payment) | |
537 | + | let bQ = toBase58String(keccak256(((toBytes(bN.amount) + bD.caller.bytes) + toBytes(height)))) | |
538 | + | if ((bN.assetId != aY)) | |
506 | 539 | then throw("can use bond only") | |
507 | - | else if (( | |
540 | + | else if ((bw(bQ) != "")) | |
508 | 541 | then throw("order exists") | |
509 | - | else WriteSet([DataEntry( | |
542 | + | else WriteSet([DataEntry(E, bA(bQ)), DataEntry(av(bQ), bN.amount), DataEntry(ax(bQ), toString(bD.caller)), DataEntry(ay(bQ), height), DataEntry(az(bQ), o)]) | |
510 | 543 | } | |
511 | 544 | ||
512 | 545 | ||
513 | 546 | ||
514 | - | @Callable( | |
515 | - | func cancelOrder ( | |
516 | - | let | |
517 | - | let | |
518 | - | if (( | |
547 | + | @Callable(bD) | |
548 | + | func cancelOrder (aw) = { | |
549 | + | let ad = bw(aw) | |
550 | + | let aD = (bu(aw) - bx(aw)) | |
551 | + | if ((ad != toString(bD.caller))) | |
519 | 552 | then throw("permission denied") | |
520 | - | else ScriptResult(WriteSet([DataEntry( | |
553 | + | else ScriptResult(WriteSet([DataEntry(E, bB(aw)), DataEntry(az(aw), n)]), TransferSet([ScriptTransfer(bD.caller, aD, aY)])) | |
521 | 554 | } | |
522 | 555 | ||
523 | 556 | ||
524 | 557 | ||
525 | - | @Callable(bs) | |
558 | + | @Callable(bD) | |
559 | + | func addLeasingCheck (bv) = { | |
560 | + | let bR = value(transferTransactionById(fromBase58String(bv))) | |
561 | + | if (if ((bR.recipient != addressFromStringValue(aV))) | |
562 | + | then true | |
563 | + | else bl(bv)) | |
564 | + | then throw("invalid transaction id") | |
565 | + | else { | |
566 | + | let aD = aE(bR.amount) | |
567 | + | let bS = (aM + 1) | |
568 | + | ScriptResult(WriteSet([DataEntry(K, bS), DataEntry(al(aM), aD), DataEntry(ai(aM, aT), bk(aT)), DataEntry(ai(aM, aY), bk(aY)), DataEntry(au(bv), true)]), TransferSet([ScriptTransfer(addressFromStringValue(aV), aD, aT)])) | |
569 | + | } | |
570 | + | } | |
571 | + | ||
572 | + | ||
573 | + | ||
574 | + | @Callable(bD) | |
526 | 575 | func executeOrder () = { | |
527 | - | let | |
528 | - | let | |
529 | - | let | |
530 | - | let | |
531 | - | if ( | |
576 | + | let aw = split(aX, j)[0] | |
577 | + | let bT = bu(aw) | |
578 | + | let bU = bw(aw) | |
579 | + | let bV = bx(aw) | |
580 | + | if (aQ) | |
532 | 581 | then throw("contract is blocked") | |
533 | - | else if ((0 >= | |
582 | + | else if ((0 >= bc)) | |
534 | 583 | then throw("surplus is less than zero") | |
535 | - | else if (( | |
584 | + | else if ((bU == "")) | |
536 | 585 | then { | |
537 | - | let | |
538 | - | ScriptResult(WriteSet([DataEntry( | |
586 | + | let bS = (aM + 1) | |
587 | + | ScriptResult(WriteSet([DataEntry(K, bS), DataEntry(al(aM), bc), DataEntry(ai(aM, aT), bk(aT)), DataEntry(ai(aM, aY), bk(aY))]), TransferSet([ScriptTransfer(addressFromStringValue(aV), bc, aT)])) | |
539 | 588 | } | |
540 | 589 | else { | |
541 | - | let | |
542 | - | let | |
543 | - | let | |
544 | - | then | |
545 | - | else | |
546 | - | let | |
547 | - | then | |
548 | - | else | |
549 | - | ScriptResult(WriteSet([DataEntry( | |
590 | + | let aD = (bT - bV) | |
591 | + | let bW = aF(bc) | |
592 | + | let bX = if ((bW >= aD)) | |
593 | + | then p | |
594 | + | else o | |
595 | + | let bY = if ((bW >= aD)) | |
596 | + | then bT | |
597 | + | else bW | |
598 | + | ScriptResult(WriteSet([DataEntry(E, bB(aw)), DataEntry(aA(aw), (bV + bY)), DataEntry(az(aw), bX)]), TransferSet([ScriptTransfer(addressFromStringValue(bU), aG(bY), aT)])) | |
550 | 599 | } | |
551 | 600 | } | |
552 | 601 | ||
602 | + | ||
603 | + | ||
604 | + | @Callable(bD) | |
605 | + | func transfer (bF) = { | |
606 | + | let bN = extract(bD.payment) | |
607 | + | if (isDefined(bN.assetId)) | |
608 | + | then throw("can use waves only at the moment") | |
609 | + | else TransferSet([ScriptTransfer(addressFromStringValue(bF), bN.amount, unit)]) | |
610 | + | } | |
611 | + | ||
612 | + | ||
613 | + | @Verifier(bR) | |
614 | + | func bZ () = { | |
615 | + | let c = bR | |
616 | + | if ($isInstanceOf(c, "LeaseTransaction")) | |
617 | + | then { | |
618 | + | let ca = c | |
619 | + | sigVerify(bR.bodyBytes, bR.proofs[0], fromBase58String(bj(toBase58String(ca.id)))) | |
620 | + | } | |
621 | + | else if ($isInstanceOf(c, "LeaseCancelTransaction")) | |
622 | + | then { | |
623 | + | let cb = c | |
624 | + | sigVerify(bR.bodyBytes, bR.proofs[0], fromBase58String(bj(toBase58String(cb.leaseId)))) | |
625 | + | } | |
626 | + | else sigVerify(bR.bodyBytes, bR.proofs[0], bR.senderPublicKey) | |
627 | + | } | |
553 | 628 |
github/deemru/w8io/026f985 201.13 ms ◑