tx · mt9yjf1u8QQ9PePg6KSn1CtyjntwDtTWKKFyTu49e4K 3NAefciWv6f9fWvEXdGgpHfanJFG8HqfjuT: -0.01400000 Waves 2021.10.29 11:29 [1767368] smart account 3NAefciWv6f9fWvEXdGgpHfanJFG8HqfjuT > SELF 0.00000000 Waves
{ "type": 13, "id": "mt9yjf1u8QQ9PePg6KSn1CtyjntwDtTWKKFyTu49e4K", "fee": 1400000, "feeAssetId": null, "timestamp": 1635496236166, "version": 1, "sender": "3NAefciWv6f9fWvEXdGgpHfanJFG8HqfjuT", "senderPublicKey": "D1BL65meykxFZTCuq7jq9HSGLLnWvQamQPUNrguW5w39", "proofs": [ "4TeoUzbbbbQoMrNtPdNpzD6Er4RaanWMAXufNrhpip9giQPbAcJZfCZwLAoQZLNAKEzvoA1QExh66LZs5CyuranH" ], "script": "base64:AAIFAAAAAAAAADMIAhIECgIICBIECgIBBBIDCgEBEgASBAoCAQESBAoCCAgSABIDCgEBEgMKAQESBAoCCAEAAABCAAAAAApsUGRlY2ltYWxzAAAAAAAAAAAIAAAAAAZzY2FsZTgAAAAAAAX14QAAAAAADHNjYWxlOEJpZ0ludAkAATYAAAABAAAAAAAF9eEAAAAAAAdzY2FsZTE4CQABNgAAAAEADeC2s6dkAAAAAAAACnplcm9CaWdJbnQJAAE2AAAAAQAAAAAAAAAAAAAAAAADU0VQAgAAAAJfXwAAAAAFRU1QVFkCAAAAAAAAAAAKUG9vbEFjdGl2ZQAAAAAAAAAAAQAAAAAPUG9vbFB1dERpc2FibGVkAAAAAAAAAAACAAAAABNQb29sTWF0Y2hlckRpc2FibGVkAAAAAAAAAAADAAAAAAxQb29sU2h1dGRvd24AAAAAAAAAAAQAAAAADmlkeFBvb2xBZGRyZXNzAAAAAAAAAAABAAAAAA1pZHhQb29sU3RhdHVzAAAAAAAAAAACAAAAABBpZHhQb29sTFBBc3NldElkAAAAAAAAAAADAAAAAA1pZHhBbXRBc3NldElkAAAAAAAAAAAEAAAAAA9pZHhQcmljZU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ACCAUAAAAFb3JkZXIAAAAGcHJvb2ZzAAAAAAAAAAABBQAAAAptYXRjaGVyUHViAwMDBQAAAApvcmRlclZhbGlkBQAAAAtzZW5kZXJWYWxpZAcFAAAADG1hdGNoZXJWYWxpZAcGCQEAAAAPdGhyb3dPcmRlckVycm9yAAAAAwUAAAAKb3JkZXJWYWxpZAUAAAALc2VuZGVyVmFsaWQFAAAADG1hdGNoZXJWYWxpZAQAAAANbWFuYWdlclB1YmxpYwkBAAAAC3ZhbHVlT3JFbHNlAAAAAgkABB0AAAACBQAAAAR0aGlzCQEAAAATa2V5TWFuYWdlclB1YmxpY0tleQAAAAAFAAAABUVNUFRZAwkAAAAAAAACBQAAAA1tYW5hZ2VyUHVibGljBQAAAAVFTVBUWQkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXkJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACQACWQAAAAEFAAAADW1hbmFnZXJQdWJsaWNFIpGR", "chainId": 84, "height": 1767368, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: HwMZfHfFD6b5TxojgFv4XUMRnYoi79TYhSs5ChZznbFs Next: 5bnYChNkkyrNNQ8Xif5fwjWDz7zipKkJebdmG5fcsLo3 Diff:
Old | New | Differences | |
---|---|---|---|
97 | 97 | func Y () = "%s__factoryConfig" | |
98 | 98 | ||
99 | 99 | ||
100 | - | func Z ( | |
100 | + | func Z () = "%s%s__matcher__publicKey" | |
101 | 101 | ||
102 | 102 | ||
103 | - | func | |
103 | + | func aa (ab) = (("%s%s%s__" + ab) + "__mappings__poolContract2LpAsset") | |
104 | 104 | ||
105 | 105 | ||
106 | - | func | |
106 | + | func ac (ad,ae) = (((("%d%d%s__" + ad) + "__") + ae) + "__config") | |
107 | 107 | ||
108 | 108 | ||
109 | - | func | |
109 | + | func af (ag) = ("%s%s%s__mappings__baseAsset2internalId__" + ag) | |
110 | 110 | ||
111 | 111 | ||
112 | - | func ah ( | |
112 | + | func ah () = "%s__shutdown" | |
113 | 113 | ||
114 | 114 | ||
115 | - | func | |
115 | + | func ai (aj) = ("%s%s__poolWeight__" + aj) | |
116 | 116 | ||
117 | 117 | ||
118 | - | func | |
118 | + | func ak (al,am,an) = throw(((((("order validation failed: orderValid=" + toString(al)) + " senderValid=") + toString(am)) + " matcherValid=") + toString(an))) | |
119 | 119 | ||
120 | 120 | ||
121 | - | let an = addressFromStringValue(aj(this, L())) | |
122 | - | ||
123 | - | func ao () = valueOrElse(getBoolean(an, ag()), false) | |
121 | + | func ao (ap,aq) = valueOrErrorMessage(getString(ap, aq), makeString(["mandatory ", toString(ap), ".", aq, " is not defined"], "")) | |
124 | 122 | ||
125 | 123 | ||
126 | - | func ap () = { | |
127 | - | let aq = aj(this, V()) | |
128 | - | let ar = aj(this, W()) | |
129 | - | let ad = am(an, ae(ar)) | |
130 | - | let ac = am(an, ae(aq)) | |
131 | - | split(aj(an, ab(toString(ac), toString(ad))), f) | |
124 | + | func ar (ap,aq) = valueOrErrorMessage(getInteger(ap, aq), makeString(["mandatory ", toString(ap), ".", aq, " is not defined"], "")) | |
125 | + | ||
126 | + | ||
127 | + | let as = addressFromStringValue(ao(this, L())) | |
128 | + | ||
129 | + | func at () = valueOrElse(getBoolean(as, ah()), false) | |
130 | + | ||
131 | + | ||
132 | + | func au () = fromBase58String(ao(as, Z())) | |
133 | + | ||
134 | + | ||
135 | + | func av () = { | |
136 | + | let aw = ao(this, V()) | |
137 | + | let ax = ao(this, W()) | |
138 | + | let ae = ar(as, af(ax)) | |
139 | + | let ad = ar(as, af(aw)) | |
140 | + | split(ao(as, ac(toString(ad), toString(ae))), f) | |
132 | 141 | } | |
133 | 142 | ||
134 | 143 | ||
135 | - | func | |
144 | + | func ay () = split(ao(as, Y()), f) | |
136 | 145 | ||
137 | 146 | ||
138 | - | func | |
147 | + | func az (aA,aB,aC,aD,aE,aF,aG,aH,aI,aJ) = makeString(["%d%d%d%d%d%d%d%d%d%d", toString(aA), toString(aB), toString(aC), toString(aD), toString(aE), toString(aF), toString(aG), toString(aH), toString(aI), toString(aJ)], f) | |
139 | 148 | ||
140 | 149 | ||
141 | - | func | |
150 | + | func aK (aL,aM,aN,aD,aG,aH) = makeString(["%d%d%d%d%d%d", toString(aL), toString(aM), toString(aN), toString(aD), toString(aG), toString(aH)], f) | |
142 | 151 | ||
143 | 152 | ||
144 | - | func | |
153 | + | func aO (aP) = if ((aP == "WAVES")) | |
145 | 154 | then wavesBalance(this).available | |
146 | - | else assetBalance(this, fromBase58String( | |
155 | + | else assetBalance(this, fromBase58String(aP)) | |
147 | 156 | ||
148 | 157 | ||
149 | - | func | |
158 | + | func aQ (aR,aS) = fraction(aR, d, aS) | |
150 | 159 | ||
151 | 160 | ||
152 | - | func | |
153 | - | let | |
154 | - | let | |
155 | - | | |
161 | + | func aT (aU,aV,aW,aX) = { | |
162 | + | let aY = A(aW, aU) | |
163 | + | let aZ = A(aX, aV) | |
164 | + | aQ(aZ, aY) | |
156 | 165 | } | |
157 | 166 | ||
158 | 167 | ||
159 | - | func | |
160 | - | let | |
161 | - | let | |
162 | - | let | |
163 | - | let | |
164 | - | let | |
165 | - | let | |
166 | - | let | |
167 | - | let | |
168 | - | let | |
169 | - | [ | |
168 | + | func ba (aW,aX,bb) = { | |
169 | + | let bc = av() | |
170 | + | let bd = parseIntValue(bc[q]) | |
171 | + | let be = parseIntValue(bc[r]) | |
172 | + | let bf = aT(bd, be, aW, aX) | |
173 | + | let aS = A(aW, bd) | |
174 | + | let aR = A(aX, be) | |
175 | + | let bg = A(bb, b) | |
176 | + | let bh = aQ(aS, bg) | |
177 | + | let bi = aQ(aR, bg) | |
178 | + | [bf, bh, bi] | |
170 | 179 | } | |
171 | 180 | ||
172 | 181 | ||
173 | - | func | |
174 | - | let | |
175 | - | [D( | |
182 | + | func bj (aW,aX,bb) = { | |
183 | + | let bk = ba(aW, aX, bb) | |
184 | + | [D(bk[0], b), D(bk[1], b), D(bk[2], b)] | |
176 | 185 | } | |
177 | 186 | ||
178 | 187 | ||
179 | - | func | |
180 | - | let | |
181 | - | let | |
182 | - | let | |
183 | - | let | |
184 | - | let | |
185 | - | let | |
186 | - | let | |
187 | - | let | |
188 | - | if (( | |
188 | + | func bl (bm,bn,bo,S) = { | |
189 | + | let bc = av() | |
190 | + | let bp = bc[n] | |
191 | + | let bq = bc[o] | |
192 | + | let br = bc[p] | |
193 | + | let aU = parseIntValue(bc[q]) | |
194 | + | let aV = parseIntValue(bc[r]) | |
195 | + | let bs = bc[m] | |
196 | + | let bt = valueOrErrorMessage(assetInfo(fromBase58String(bp)), (("Asset " + bp) + " doesn't exist")).quantity | |
197 | + | if ((bp != bn)) | |
189 | 198 | then throw("Invalid asset passed.") | |
190 | 199 | else { | |
191 | - | let | |
192 | - | let | |
193 | - | let | |
194 | - | let | |
195 | - | let | |
196 | - | let | |
197 | - | let | |
198 | - | let | |
199 | - | let | |
200 | - | let | |
201 | - | let | |
202 | - | let | |
203 | - | let | |
200 | + | let bu = aO(bq) | |
201 | + | let bv = A(bu, aU) | |
202 | + | let bw = aO(br) | |
203 | + | let bx = A(bw, aV) | |
204 | + | let by = aQ(bx, bv) | |
205 | + | let bz = D(by, b) | |
206 | + | let bA = A(bo, b) | |
207 | + | let bB = A(bt, b) | |
208 | + | let bC = fraction(bv, bA, bB) | |
209 | + | let bD = fraction(bx, bA, bB) | |
210 | + | let bE = D(bC, aU) | |
211 | + | let bF = D(bD, aV) | |
212 | + | let bG = if ((bm == "")) | |
204 | 213 | then nil | |
205 | - | else [ScriptTransfer(S, | |
214 | + | else [ScriptTransfer(S, bE, if ((bq == "WAVES")) | |
206 | 215 | then unit | |
207 | - | else fromBase58String( | |
216 | + | else fromBase58String(bq)), ScriptTransfer(S, bF, if ((br == "WAVES")) | |
208 | 217 | then unit | |
209 | - | else fromBase58String( | |
210 | - | $Tuple10( | |
218 | + | else fromBase58String(br)), StringEntry(U(toString(S), bm), aK(bE, bF, bo, bz, height, lastBlock.timestamp)), IntegerEntry(N(), bz), IntegerEntry(O(height, lastBlock.timestamp), bz)] | |
219 | + | $Tuple10(bE, bF, bq, br, bu, bw, bt, by, bs, bG) | |
211 | 220 | } | |
212 | 221 | } | |
213 | 222 | ||
214 | 223 | ||
215 | - | func | |
216 | - | let | |
217 | - | let | |
218 | - | let | |
219 | - | let | |
220 | - | let | |
221 | - | let | |
222 | - | let | |
223 | - | let | |
224 | - | let | |
225 | - | let | |
226 | - | let | |
227 | - | let | |
228 | - | if (if (( | |
224 | + | func bH (bm,bI,bJ,bK,bL,bM,S,bN,bO) = { | |
225 | + | let bc = av() | |
226 | + | let bp = fromBase58String(bc[n]) | |
227 | + | let bP = bc[o] | |
228 | + | let bQ = bc[p] | |
229 | + | let bR = bc[s] | |
230 | + | let bS = bc[t] | |
231 | + | let bd = parseIntValue(bc[q]) | |
232 | + | let be = parseIntValue(bc[r]) | |
233 | + | let bs = bc[m] | |
234 | + | let bt = valueOrErrorMessage(assetInfo(bp), (("Asset " + toBase58String(bp)) + " doesn't exist")).quantity | |
235 | + | let bT = toBase58String(valueOrElse(bK, fromBase58String("WAVES"))) | |
236 | + | let bU = toBase58String(valueOrElse(bM, fromBase58String("WAVES"))) | |
237 | + | if (if ((bP != bT)) | |
229 | 238 | then true | |
230 | - | else ( | |
239 | + | else (bQ != bU)) | |
231 | 240 | then throw("Invalid amt or price asset passed.") | |
232 | 241 | else { | |
233 | - | let | |
234 | - | then | |
235 | - | else ( | |
236 | - | let | |
237 | - | then | |
238 | - | else ( | |
239 | - | let | |
240 | - | let | |
241 | - | let | |
242 | - | let | |
243 | - | let | |
244 | - | let | |
242 | + | let bu = if (bN) | |
243 | + | then aO(bP) | |
244 | + | else (aO(bP) - bJ) | |
245 | + | let bw = if (bN) | |
246 | + | then aO(bQ) | |
247 | + | else (aO(bQ) - bL) | |
248 | + | let bV = A(bJ, bd) | |
249 | + | let bW = A(bL, be) | |
250 | + | let bX = aQ(bW, bV) | |
251 | + | let bv = A(bu, bd) | |
252 | + | let bx = A(bw, be) | |
253 | + | let bY = if ((bt == 0)) | |
245 | 254 | then { | |
246 | - | let | |
247 | - | let | |
248 | - | let | |
249 | - | $Tuple5(D( | |
255 | + | let by = e | |
256 | + | let bZ = e | |
257 | + | let bg = pow((bV * bW), 0, toBigInt(5), 1, 0, DOWN) | |
258 | + | $Tuple5(D(bg, b), D(bV, bd), D(bW, be), aQ((bx + bW), (bv + bV)), bZ) | |
250 | 259 | } | |
251 | 260 | else { | |
252 | - | let | |
253 | - | let | |
254 | - | let | |
255 | - | if (if (( | |
256 | - | then ( | |
261 | + | let by = aQ(bx, bv) | |
262 | + | let bZ = fraction(K((by - bX)), d, by) | |
263 | + | let ca = A(bI, b) | |
264 | + | if (if ((by != e)) | |
265 | + | then (bZ > ca) | |
257 | 266 | else false) | |
258 | - | then throw(((("Price slippage " + toString( | |
267 | + | then throw(((("Price slippage " + toString(bZ)) + " exceeded the passed limit of ") + toString(ca))) | |
259 | 268 | else { | |
260 | - | let | |
261 | - | let | |
262 | - | let | |
263 | - | let | |
264 | - | then $Tuple2( | |
265 | - | else $Tuple2( | |
266 | - | let | |
267 | - | let | |
268 | - | let | |
269 | - | $Tuple5(D( | |
269 | + | let bB = A(bt, b) | |
270 | + | let cb = fraction(bV, by, d) | |
271 | + | let cc = fraction(bW, d, by) | |
272 | + | let cd = if ((cb > bW)) | |
273 | + | then $Tuple2(cc, bW) | |
274 | + | else $Tuple2(bV, cb) | |
275 | + | let ce = cd._1 | |
276 | + | let cf = cd._2 | |
277 | + | let bg = fraction(bB, cf, bx) | |
278 | + | $Tuple5(D(bg, b), D(ce, bd), D(cf, be), by, bZ) | |
270 | 279 | } | |
271 | 280 | } | |
272 | - | let | |
273 | - | let | |
274 | - | let | |
275 | - | let | |
276 | - | let | |
277 | - | if ((0 >= | |
281 | + | let cg = bY._1 | |
282 | + | let ch = bY._2 | |
283 | + | let ci = bY._3 | |
284 | + | let bz = D(bY._4, b) | |
285 | + | let cj = D(bY._5, b) | |
286 | + | if ((0 >= cg)) | |
278 | 287 | then throw("Invalid calculations. LP calculated is less than zero.") | |
279 | 288 | else { | |
280 | - | let | |
289 | + | let ck = if (!(bO)) | |
281 | 290 | then 0 | |
282 | - | else | |
283 | - | let | |
284 | - | let | |
285 | - | let | |
286 | - | $Tuple13( | |
291 | + | else cg | |
292 | + | let cl = (bJ - ch) | |
293 | + | let cm = (bL - ci) | |
294 | + | let cn = [IntegerEntry(N(), bz), IntegerEntry(O(height, lastBlock.timestamp), bz), StringEntry(R(S, bm), az(ch, ci, ck, bz, bI, cj, height, lastBlock.timestamp, cl, cm))] | |
295 | + | $Tuple13(cg, ck, bz, bu, bw, bt, bp, bs, cn, cl, cm, bK, bM) | |
287 | 296 | } | |
288 | 297 | } | |
289 | 298 | } | |
290 | 299 | ||
291 | 300 | ||
292 | - | func | |
293 | - | let | |
294 | - | let | |
295 | - | let | |
296 | - | let | |
297 | - | let | |
298 | - | let | |
299 | - | let | |
300 | - | let | |
301 | - | let | |
302 | - | then | |
303 | - | else | |
304 | - | let | |
305 | - | if (if (if ( | |
301 | + | func co (cp) = { | |
302 | + | let bc = av() | |
303 | + | let cq = bc[o] | |
304 | + | let cr = bc[p] | |
305 | + | let bs = parseIntValue(bc[m]) | |
306 | + | let bd = parseIntValue(bc[q]) | |
307 | + | let be = parseIntValue(bc[r]) | |
308 | + | let cs = aO(cq) | |
309 | + | let ct = aO(cr) | |
310 | + | let by = if ((cp.orderType == Buy)) | |
311 | + | then aT(bd, be, (cs + cp.amount), ct) | |
312 | + | else aT(bd, be, (cs - cp.amount), ct) | |
313 | + | let bz = D(by, b) | |
314 | + | if (if (if (at()) | |
306 | 315 | then true | |
307 | - | else ( | |
316 | + | else (bs == j)) | |
308 | 317 | then true | |
309 | - | else ( | |
318 | + | else (bs == k)) | |
310 | 319 | then throw("Exchange operations disabled") | |
311 | 320 | else { | |
312 | - | let | |
313 | - | let | |
321 | + | let cu = cp.assetPair.amountAsset | |
322 | + | let cv = if ((cu == unit)) | |
314 | 323 | then "WAVES" | |
315 | - | else toBase58String(value( | |
316 | - | let | |
317 | - | let | |
324 | + | else toBase58String(value(cu)) | |
325 | + | let cw = cp.assetPair.priceAsset | |
326 | + | let cx = if ((cw == unit)) | |
318 | 327 | then "WAVES" | |
319 | - | else toBase58String(value( | |
320 | - | if (if (( | |
328 | + | else toBase58String(value(cw)) | |
329 | + | if (if ((cv != cq)) | |
321 | 330 | then true | |
322 | - | else ( | |
331 | + | else (cx != cr)) | |
323 | 332 | then throw("Wrong order assets.") | |
324 | 333 | else { | |
325 | - | let | |
326 | - | let | |
327 | - | let | |
328 | - | let | |
329 | - | then ( | |
330 | - | else ( | |
334 | + | let cy = cp.price | |
335 | + | let cz = fraction(b, be, bd) | |
336 | + | let cA = G(cy, b, cz) | |
337 | + | let cB = if ((cp.orderType == Buy)) | |
338 | + | then (bz >= cA) | |
339 | + | else (cA >= bz) | |
331 | 340 | true | |
332 | 341 | } | |
333 | 342 | } | |
334 | 343 | } | |
335 | 344 | ||
336 | 345 | ||
337 | - | func | |
346 | + | func cC (cD) = if ((size(cD.payments) != 1)) | |
338 | 347 | then throw("exactly 1 payment is expected") | |
339 | 348 | else { | |
340 | - | let | |
341 | - | let | |
342 | - | let | |
343 | - | let | |
344 | - | let | |
345 | - | let | |
346 | - | let | |
347 | - | let | |
348 | - | if (if ( | |
349 | + | let cE = value(cD.payments[0]) | |
350 | + | let bn = value(cE.assetId) | |
351 | + | let cF = cE.amount | |
352 | + | let bY = bl(toBase58String(cD.transactionId), toBase58String(bn), cF, cD.caller) | |
353 | + | let bE = bY._1 | |
354 | + | let bF = bY._2 | |
355 | + | let bs = parseIntValue(bY._9) | |
356 | + | let bG = bY._10 | |
357 | + | if (if (at()) | |
349 | 358 | then true | |
350 | - | else ( | |
351 | - | then throw(("Get operation is blocked by admin. Status = " + toString( | |
352 | - | else $Tuple5( | |
359 | + | else (bs == k)) | |
360 | + | then throw(("Get operation is blocked by admin. Status = " + toString(bs))) | |
361 | + | else $Tuple5(bE, bF, cF, bn, bG) | |
353 | 362 | } | |
354 | 363 | ||
355 | 364 | ||
356 | - | func | |
365 | + | func cG (cD,bI,bO) = if ((size(cD.payments) != 2)) | |
357 | 366 | then throw("exactly 2 payments are expected") | |
358 | 367 | else { | |
359 | - | let | |
360 | - | let | |
361 | - | let | |
362 | - | let | |
363 | - | if (if (if ( | |
368 | + | let cH = value(cD.payments[0]) | |
369 | + | let cI = value(cD.payments[1]) | |
370 | + | let cJ = bH(toBase58String(cD.transactionId), bI, cH.amount, cH.assetId, cI.amount, cI.assetId, toString(cD.caller), false, bO) | |
371 | + | let bs = parseIntValue(cJ._8) | |
372 | + | if (if (if (at()) | |
364 | 373 | then true | |
365 | - | else ( | |
374 | + | else (bs == i)) | |
366 | 375 | then true | |
367 | - | else ( | |
368 | - | then throw(("Put operation is blocked by admin. Status = " + toString( | |
369 | - | else | |
376 | + | else (bs == k)) | |
377 | + | then throw(("Put operation is blocked by admin. Status = " + toString(bs))) | |
378 | + | else cJ | |
370 | 379 | } | |
371 | 380 | ||
372 | 381 | ||
373 | - | @Callable( | |
374 | - | func constructor ( | |
382 | + | @Callable(cD) | |
383 | + | func constructor (as,cK) = if ((cD.caller != this)) | |
375 | 384 | then throw("permissions denied") | |
376 | - | else [StringEntry(L(), | |
385 | + | else [StringEntry(L(), as), StringEntry(M(), cK)] | |
377 | 386 | ||
378 | 387 | ||
379 | 388 | ||
380 | - | @Callable( | |
381 | - | func put ( | |
382 | - | let | |
383 | - | let | |
384 | - | let | |
385 | - | if ((0 > | |
389 | + | @Callable(cD) | |
390 | + | func put (bI,cL) = { | |
391 | + | let cM = ay() | |
392 | + | let cN = valueOrErrorMessage(addressFromString(cM[y]), "Error. Incorrect staking address.") | |
393 | + | let cO = valueOrErrorMessage(addressFromString(cM[z]), "Error. Incorrect slippage contract address.") | |
394 | + | if ((0 > bI)) | |
386 | 395 | then throw("Invalid slippageTolerance passed") | |
387 | 396 | else { | |
388 | - | let | |
389 | - | let | |
390 | - | let | |
391 | - | let | |
392 | - | let | |
393 | - | let | |
394 | - | let | |
395 | - | let | |
396 | - | let | |
397 | - | if (( | |
397 | + | let cJ = cG(cD, bI, true) | |
398 | + | let ck = cJ._2 | |
399 | + | let bp = cJ._7 | |
400 | + | let bG = cJ._9 | |
401 | + | let cl = cJ._10 | |
402 | + | let cm = cJ._11 | |
403 | + | let cP = cJ._12 | |
404 | + | let cQ = cJ._13 | |
405 | + | let cR = invoke(as, "emit", [ck], nil) | |
406 | + | if ((cR == cR)) | |
398 | 407 | then { | |
399 | - | let | |
400 | - | then invoke( | |
408 | + | let cS = if ((cl > 0)) | |
409 | + | then invoke(cO, "put", nil, [AttachedPayment(cP, cl)]) | |
401 | 410 | else nil | |
402 | - | if (( | |
411 | + | if ((cS == cS)) | |
403 | 412 | then { | |
404 | - | let | |
405 | - | then invoke( | |
413 | + | let cT = if ((cm > 0)) | |
414 | + | then invoke(cO, "put", nil, [AttachedPayment(cQ, cm)]) | |
406 | 415 | else nil | |
407 | - | if (( | |
416 | + | if ((cT == cT)) | |
408 | 417 | then { | |
409 | - | let | |
418 | + | let cU = if (cL) | |
410 | 419 | then { | |
411 | - | let | |
412 | - | if (( | |
420 | + | let cV = invoke(cN, "stake", nil, [AttachedPayment(bp, ck)]) | |
421 | + | if ((cV == cV)) | |
413 | 422 | then nil | |
414 | 423 | else throw("Strict value is not equal to itself.") | |
415 | 424 | } | |
416 | - | else [ScriptTransfer( | |
417 | - | ( | |
425 | + | else [ScriptTransfer(cD.caller, ck, bp)] | |
426 | + | (bG ++ cU) | |
418 | 427 | } | |
419 | 428 | else throw("Strict value is not equal to itself.") | |
420 | 429 | } | |
426 | 435 | ||
427 | 436 | ||
428 | 437 | ||
429 | - | @Callable( | |
430 | - | func putForFree ( | |
438 | + | @Callable(cD) | |
439 | + | func putForFree (cW) = if ((0 > cW)) | |
431 | 440 | then throw("Invalid value passed") | |
432 | 441 | else { | |
433 | - | let | |
434 | - | | |
442 | + | let cJ = cG(cD, cW, false) | |
443 | + | cJ._9 | |
435 | 444 | } | |
436 | 445 | ||
437 | 446 | ||
438 | 447 | ||
439 | - | @Callable( | |
448 | + | @Callable(cD) | |
440 | 449 | func get () = { | |
441 | - | let | |
442 | - | let | |
443 | - | let | |
444 | - | let | |
445 | - | let | |
446 | - | let | |
447 | - | let | |
448 | - | if (( | |
449 | - | then | |
450 | + | let bY = cC(cD) | |
451 | + | let cX = bY._1 | |
452 | + | let bF = bY._2 | |
453 | + | let cF = bY._3 | |
454 | + | let bn = bY._4 | |
455 | + | let bG = bY._5 | |
456 | + | let cY = invoke(as, "burn", [cF], [AttachedPayment(bn, cF)]) | |
457 | + | if ((cY == cY)) | |
458 | + | then bG | |
450 | 459 | else throw("Strict value is not equal to itself.") | |
451 | 460 | } | |
452 | 461 | ||
453 | 462 | ||
454 | 463 | ||
455 | - | @Callable( | |
456 | - | func getNoLess ( | |
457 | - | let | |
458 | - | let | |
459 | - | let | |
460 | - | let | |
461 | - | let | |
462 | - | let | |
463 | - | if (( | |
464 | - | then throw(((("noLessThenAmtAsset failed: " + toString( | |
465 | - | else if (( | |
466 | - | then throw(((("noLessThenPriceAsset failed: " + toString( | |
464 | + | @Callable(cD) | |
465 | + | func getNoLess (cZ,da) = { | |
466 | + | let bY = cC(cD) | |
467 | + | let bE = bY._1 | |
468 | + | let bF = bY._2 | |
469 | + | let cF = bY._3 | |
470 | + | let bn = bY._4 | |
471 | + | let bG = bY._5 | |
472 | + | if ((cZ > bE)) | |
473 | + | then throw(((("noLessThenAmtAsset failed: " + toString(bE)) + " < ") + toString(cZ))) | |
474 | + | else if ((da > bF)) | |
475 | + | then throw(((("noLessThenPriceAsset failed: " + toString(bF)) + " < ") + toString(da))) | |
467 | 476 | else { | |
468 | - | let | |
469 | - | if (( | |
470 | - | then | |
477 | + | let cY = invoke(as, "burn", [cF], [AttachedPayment(bn, cF)]) | |
478 | + | if ((cY == cY)) | |
479 | + | then bG | |
471 | 480 | else throw("Strict value is not equal to itself.") | |
472 | 481 | } | |
473 | 482 | } | |
474 | 483 | ||
475 | 484 | ||
476 | 485 | ||
477 | - | @Callable( | |
478 | - | func activate ( | |
486 | + | @Callable(cD) | |
487 | + | func activate (db,dc) = if ((toString(cD.caller) != toString(as))) | |
479 | 488 | then throw("permissions denied") | |
480 | - | else $Tuple2([StringEntry(V(), | |
489 | + | else $Tuple2([StringEntry(V(), db), StringEntry(W(), dc)], "success") | |
481 | 490 | ||
482 | 491 | ||
483 | 492 | ||
484 | - | @Callable( | |
493 | + | @Callable(cD) | |
485 | 494 | func statsREADONLY () = { | |
486 | - | let | |
487 | - | let | |
488 | - | let | |
489 | - | let | |
490 | - | let | |
491 | - | let | |
492 | - | let | |
493 | - | let | |
494 | - | let | |
495 | - | let | |
496 | - | let | |
497 | - | let | |
498 | - | let | |
499 | - | let | |
500 | - | let | |
501 | - | let | |
502 | - | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d", toString( | |
495 | + | let bc = av() | |
496 | + | let bp = fromBase58String(bc[n]) | |
497 | + | let cq = bc[o] | |
498 | + | let cr = bc[p] | |
499 | + | let bR = bc[s] | |
500 | + | let bS = bc[t] | |
501 | + | let bd = parseIntValue(bc[q]) | |
502 | + | let be = parseIntValue(bc[r]) | |
503 | + | let dd = valueOrErrorMessage(assetInfo(bp), (("Asset " + toBase58String(bp)) + " doesn't exist")).quantity | |
504 | + | let cs = aO(cq) | |
505 | + | let ct = aO(cr) | |
506 | + | let de = ba(cs, ct, dd) | |
507 | + | let bz = 0 | |
508 | + | let df = D(de[1], b) | |
509 | + | let dg = D(de[2], b) | |
510 | + | let dh = value(getInteger(as, ai(toString(this)))) | |
511 | + | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d", toString(cs), toString(ct), toString(dd), toString(bz), toString(df), toString(dg), toString(dh)], f)) | |
503 | 512 | } | |
504 | 513 | ||
505 | 514 | ||
506 | 515 | ||
507 | - | @Callable( | |
508 | - | func evaluatePutByAmountAssetREADONLY ( | |
509 | - | let | |
510 | - | let | |
511 | - | let | |
512 | - | let | |
513 | - | let | |
514 | - | let | |
515 | - | let | |
516 | - | let | |
517 | - | let | |
518 | - | let | |
519 | - | let | |
520 | - | let | |
521 | - | let | |
522 | - | let | |
523 | - | let | |
516 | + | @Callable(cD) | |
517 | + | func evaluatePutByAmountAssetREADONLY (bJ) = { | |
518 | + | let bc = av() | |
519 | + | let bp = fromBase58String(bc[n]) | |
520 | + | let bP = bc[o] | |
521 | + | let bq = fromBase58String(bP) | |
522 | + | let bQ = bc[p] | |
523 | + | let br = fromBase58String(bQ) | |
524 | + | let bd = parseIntValue(bc[q]) | |
525 | + | let be = parseIntValue(bc[r]) | |
526 | + | let bs = bc[m] | |
527 | + | let dd = valueOrErrorMessage(assetInfo(bp), (("Asset " + toBase58String(bp)) + " doesn't exist")).quantity | |
528 | + | let cs = aO(bP) | |
529 | + | let ct = aO(bQ) | |
530 | + | let aY = A(cs, bd) | |
531 | + | let aZ = A(ct, be) | |
532 | + | let by = if ((dd == 0)) | |
524 | 533 | then e | |
525 | - | else | |
526 | - | let | |
527 | - | let | |
528 | - | let | |
529 | - | let | |
530 | - | let | |
531 | - | let | |
532 | - | let | |
533 | - | let | |
534 | - | let | |
535 | - | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d%d", toString( | |
534 | + | else aQ(aZ, aY) | |
535 | + | let bV = A(bJ, bd) | |
536 | + | let bW = fraction(bV, by, d) | |
537 | + | let bL = D(bW, be) | |
538 | + | let cJ = bH("", 500000, bJ, bq, bL, br, "", true, false) | |
539 | + | let cg = cJ._1 | |
540 | + | let di = cJ._3 | |
541 | + | let bu = cJ._4 | |
542 | + | let bw = cJ._5 | |
543 | + | let bt = cJ._6 | |
544 | + | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d%d", toString(cg), toString(D(by, b)), toString(bu), toString(bw), toString(bt), bs, toString(bJ), toString(bL)], f)) | |
536 | 545 | } | |
537 | 546 | ||
538 | 547 | ||
539 | 548 | ||
540 | - | @Callable( | |
541 | - | func evaluatePutByPriceAssetREADONLY ( | |
542 | - | let | |
543 | - | let | |
544 | - | let | |
545 | - | let | |
546 | - | let | |
547 | - | let | |
548 | - | let | |
549 | - | let | |
550 | - | let | |
551 | - | let | |
552 | - | let | |
553 | - | let | |
554 | - | let | |
555 | - | let | |
556 | - | let | |
549 | + | @Callable(cD) | |
550 | + | func evaluatePutByPriceAssetREADONLY (bL) = { | |
551 | + | let bc = av() | |
552 | + | let bp = fromBase58String(bc[n]) | |
553 | + | let bP = bc[o] | |
554 | + | let bq = fromBase58String(bP) | |
555 | + | let bQ = bc[p] | |
556 | + | let br = fromBase58String(bQ) | |
557 | + | let bd = parseIntValue(bc[q]) | |
558 | + | let be = parseIntValue(bc[r]) | |
559 | + | let bs = bc[m] | |
560 | + | let dd = valueOrErrorMessage(assetInfo(bp), (("Asset " + toBase58String(bp)) + " doesn't exist")).quantity | |
561 | + | let dj = aO(bP) | |
562 | + | let dk = aO(bQ) | |
563 | + | let dl = A(dj, bd) | |
564 | + | let dm = A(dk, be) | |
565 | + | let by = if ((dd == 0)) | |
557 | 566 | then e | |
558 | - | else | |
559 | - | let | |
560 | - | let | |
561 | - | let | |
562 | - | let | |
563 | - | let | |
564 | - | let | |
565 | - | let | |
566 | - | let | |
567 | - | let | |
568 | - | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d%d", toString( | |
567 | + | else aQ(dm, dl) | |
568 | + | let bW = A(bL, be) | |
569 | + | let bV = fraction(bW, d, by) | |
570 | + | let bJ = D(bV, bd) | |
571 | + | let cJ = bH("", 500000, bJ, bq, bL, br, "", true, false) | |
572 | + | let cg = cJ._1 | |
573 | + | let di = cJ._3 | |
574 | + | let bu = cJ._4 | |
575 | + | let bw = cJ._5 | |
576 | + | let bt = cJ._6 | |
577 | + | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d%d", toString(cg), toString(D(by, b)), toString(bu), toString(bw), toString(bt), bs, toString(bJ), toString(bL)], f)) | |
569 | 578 | } | |
570 | 579 | ||
571 | 580 | ||
572 | 581 | ||
573 | - | @Callable( | |
574 | - | func evaluateGetREADONLY ( | |
575 | - | let | |
576 | - | let | |
577 | - | let | |
578 | - | let | |
579 | - | let | |
580 | - | let | |
581 | - | let | |
582 | - | let | |
583 | - | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d", toString( | |
582 | + | @Callable(cD) | |
583 | + | func evaluateGetREADONLY (dn,do) = { | |
584 | + | let bY = bl("", dn, do, this) | |
585 | + | let bE = bY._1 | |
586 | + | let bF = bY._2 | |
587 | + | let bu = bY._5 | |
588 | + | let bw = bY._6 | |
589 | + | let bt = bY._7 | |
590 | + | let bz = bY._8 | |
591 | + | let bs = parseIntValue(bY._9) | |
592 | + | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d", toString(bE), toString(bF), toString(bu), toString(bw), toString(bt), toString(bz), toString(bs)], f)) | |
584 | 593 | } | |
585 | 594 | ||
586 | 595 | ||
587 | - | @Verifier( | |
588 | - | func | |
589 | - | let | |
590 | - | if ($isInstanceOf( | |
596 | + | @Verifier(dp) | |
597 | + | func dq () = { | |
598 | + | let dr = dp | |
599 | + | if ($isInstanceOf(dr, "Order")) | |
591 | 600 | then { | |
592 | - | let cj = dl | |
593 | - | if (ci(cj)) | |
594 | - | then sigVerify(cj.bodyBytes, cj.proofs[0], cj.senderPublicKey) | |
595 | - | else false | |
601 | + | let cp = dr | |
602 | + | let ds = au() | |
603 | + | let al = co(cp) | |
604 | + | let am = sigVerify(cp.bodyBytes, cp.proofs[0], cp.senderPublicKey) | |
605 | + | let an = sigVerify(cp.bodyBytes, cp.proofs[1], ds) | |
606 | + | if (if (if (al) | |
607 | + | then am | |
608 | + | else false) | |
609 | + | then an | |
610 | + | else false) | |
611 | + | then true | |
612 | + | else ak(al, am, an) | |
596 | 613 | } | |
597 | 614 | else { | |
598 | - | let | |
599 | - | if (( | |
600 | - | then sigVerify( | |
601 | - | else sigVerify( | |
615 | + | let dt = valueOrElse(getString(this, M()), g) | |
616 | + | if ((dt == g)) | |
617 | + | then sigVerify(dp.bodyBytes, dp.proofs[0], dp.senderPublicKey) | |
618 | + | else sigVerify(dp.bodyBytes, dp.proofs[0], fromBase58String(dt)) | |
602 | 619 | } | |
603 | 620 | } | |
604 | 621 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = 8 | |
5 | 5 | ||
6 | 6 | let b = 100000000 | |
7 | 7 | ||
8 | 8 | let c = toBigInt(100000000) | |
9 | 9 | ||
10 | 10 | let d = toBigInt(1000000000000000000) | |
11 | 11 | ||
12 | 12 | let e = toBigInt(0) | |
13 | 13 | ||
14 | 14 | let f = "__" | |
15 | 15 | ||
16 | 16 | let g = "" | |
17 | 17 | ||
18 | 18 | let h = 1 | |
19 | 19 | ||
20 | 20 | let i = 2 | |
21 | 21 | ||
22 | 22 | let j = 3 | |
23 | 23 | ||
24 | 24 | let k = 4 | |
25 | 25 | ||
26 | 26 | let l = 1 | |
27 | 27 | ||
28 | 28 | let m = 2 | |
29 | 29 | ||
30 | 30 | let n = 3 | |
31 | 31 | ||
32 | 32 | let o = 4 | |
33 | 33 | ||
34 | 34 | let p = 5 | |
35 | 35 | ||
36 | 36 | let q = 6 | |
37 | 37 | ||
38 | 38 | let r = 7 | |
39 | 39 | ||
40 | 40 | let s = 8 | |
41 | 41 | ||
42 | 42 | let t = 9 | |
43 | 43 | ||
44 | 44 | let u = 10 | |
45 | 45 | ||
46 | 46 | let v = 1 | |
47 | 47 | ||
48 | 48 | let w = 2 | |
49 | 49 | ||
50 | 50 | let x = 3 | |
51 | 51 | ||
52 | 52 | let y = 1 | |
53 | 53 | ||
54 | 54 | let z = 7 | |
55 | 55 | ||
56 | 56 | func A (B,C) = fraction(toBigInt(B), d, toBigInt(C)) | |
57 | 57 | ||
58 | 58 | ||
59 | 59 | func D (E,F) = toInt(fraction(E, toBigInt(F), d)) | |
60 | 60 | ||
61 | 61 | ||
62 | 62 | func G (H,I,J) = fraction(H, I, J) | |
63 | 63 | ||
64 | 64 | ||
65 | 65 | func K (E) = if ((e > E)) | |
66 | 66 | then -(E) | |
67 | 67 | else E | |
68 | 68 | ||
69 | 69 | ||
70 | 70 | func L () = "%s__factoryContract" | |
71 | 71 | ||
72 | 72 | ||
73 | 73 | func M () = "%s__managerPublicKey" | |
74 | 74 | ||
75 | 75 | ||
76 | 76 | func N () = "%s%s__price__last" | |
77 | 77 | ||
78 | 78 | ||
79 | 79 | func O (P,Q) = makeString(["%s%s%d%d__price__history", toString(P), toString(Q)], f) | |
80 | 80 | ||
81 | 81 | ||
82 | 82 | func R (S,T) = ((("%s%s%s__P__" + S) + "__") + T) | |
83 | 83 | ||
84 | 84 | ||
85 | 85 | func U (S,T) = ((("%s%s%s__G__" + S) + "__") + T) | |
86 | 86 | ||
87 | 87 | ||
88 | 88 | func V () = "%s__amountAsset" | |
89 | 89 | ||
90 | 90 | ||
91 | 91 | func W () = "%s__priceAsset" | |
92 | 92 | ||
93 | 93 | ||
94 | 94 | func X (P,Q) = makeString(["%s%s%d%d__K_history", toString(P), toString(Q)], f) | |
95 | 95 | ||
96 | 96 | ||
97 | 97 | func Y () = "%s__factoryConfig" | |
98 | 98 | ||
99 | 99 | ||
100 | - | func Z ( | |
100 | + | func Z () = "%s%s__matcher__publicKey" | |
101 | 101 | ||
102 | 102 | ||
103 | - | func | |
103 | + | func aa (ab) = (("%s%s%s__" + ab) + "__mappings__poolContract2LpAsset") | |
104 | 104 | ||
105 | 105 | ||
106 | - | func | |
106 | + | func ac (ad,ae) = (((("%d%d%s__" + ad) + "__") + ae) + "__config") | |
107 | 107 | ||
108 | 108 | ||
109 | - | func | |
109 | + | func af (ag) = ("%s%s%s__mappings__baseAsset2internalId__" + ag) | |
110 | 110 | ||
111 | 111 | ||
112 | - | func ah ( | |
112 | + | func ah () = "%s__shutdown" | |
113 | 113 | ||
114 | 114 | ||
115 | - | func | |
115 | + | func ai (aj) = ("%s%s__poolWeight__" + aj) | |
116 | 116 | ||
117 | 117 | ||
118 | - | func | |
118 | + | func ak (al,am,an) = throw(((((("order validation failed: orderValid=" + toString(al)) + " senderValid=") + toString(am)) + " matcherValid=") + toString(an))) | |
119 | 119 | ||
120 | 120 | ||
121 | - | let an = addressFromStringValue(aj(this, L())) | |
122 | - | ||
123 | - | func ao () = valueOrElse(getBoolean(an, ag()), false) | |
121 | + | func ao (ap,aq) = valueOrErrorMessage(getString(ap, aq), makeString(["mandatory ", toString(ap), ".", aq, " is not defined"], "")) | |
124 | 122 | ||
125 | 123 | ||
126 | - | func ap () = { | |
127 | - | let aq = aj(this, V()) | |
128 | - | let ar = aj(this, W()) | |
129 | - | let ad = am(an, ae(ar)) | |
130 | - | let ac = am(an, ae(aq)) | |
131 | - | split(aj(an, ab(toString(ac), toString(ad))), f) | |
124 | + | func ar (ap,aq) = valueOrErrorMessage(getInteger(ap, aq), makeString(["mandatory ", toString(ap), ".", aq, " is not defined"], "")) | |
125 | + | ||
126 | + | ||
127 | + | let as = addressFromStringValue(ao(this, L())) | |
128 | + | ||
129 | + | func at () = valueOrElse(getBoolean(as, ah()), false) | |
130 | + | ||
131 | + | ||
132 | + | func au () = fromBase58String(ao(as, Z())) | |
133 | + | ||
134 | + | ||
135 | + | func av () = { | |
136 | + | let aw = ao(this, V()) | |
137 | + | let ax = ao(this, W()) | |
138 | + | let ae = ar(as, af(ax)) | |
139 | + | let ad = ar(as, af(aw)) | |
140 | + | split(ao(as, ac(toString(ad), toString(ae))), f) | |
132 | 141 | } | |
133 | 142 | ||
134 | 143 | ||
135 | - | func | |
144 | + | func ay () = split(ao(as, Y()), f) | |
136 | 145 | ||
137 | 146 | ||
138 | - | func | |
147 | + | func az (aA,aB,aC,aD,aE,aF,aG,aH,aI,aJ) = makeString(["%d%d%d%d%d%d%d%d%d%d", toString(aA), toString(aB), toString(aC), toString(aD), toString(aE), toString(aF), toString(aG), toString(aH), toString(aI), toString(aJ)], f) | |
139 | 148 | ||
140 | 149 | ||
141 | - | func | |
150 | + | func aK (aL,aM,aN,aD,aG,aH) = makeString(["%d%d%d%d%d%d", toString(aL), toString(aM), toString(aN), toString(aD), toString(aG), toString(aH)], f) | |
142 | 151 | ||
143 | 152 | ||
144 | - | func | |
153 | + | func aO (aP) = if ((aP == "WAVES")) | |
145 | 154 | then wavesBalance(this).available | |
146 | - | else assetBalance(this, fromBase58String( | |
155 | + | else assetBalance(this, fromBase58String(aP)) | |
147 | 156 | ||
148 | 157 | ||
149 | - | func | |
158 | + | func aQ (aR,aS) = fraction(aR, d, aS) | |
150 | 159 | ||
151 | 160 | ||
152 | - | func | |
153 | - | let | |
154 | - | let | |
155 | - | | |
161 | + | func aT (aU,aV,aW,aX) = { | |
162 | + | let aY = A(aW, aU) | |
163 | + | let aZ = A(aX, aV) | |
164 | + | aQ(aZ, aY) | |
156 | 165 | } | |
157 | 166 | ||
158 | 167 | ||
159 | - | func | |
160 | - | let | |
161 | - | let | |
162 | - | let | |
163 | - | let | |
164 | - | let | |
165 | - | let | |
166 | - | let | |
167 | - | let | |
168 | - | let | |
169 | - | [ | |
168 | + | func ba (aW,aX,bb) = { | |
169 | + | let bc = av() | |
170 | + | let bd = parseIntValue(bc[q]) | |
171 | + | let be = parseIntValue(bc[r]) | |
172 | + | let bf = aT(bd, be, aW, aX) | |
173 | + | let aS = A(aW, bd) | |
174 | + | let aR = A(aX, be) | |
175 | + | let bg = A(bb, b) | |
176 | + | let bh = aQ(aS, bg) | |
177 | + | let bi = aQ(aR, bg) | |
178 | + | [bf, bh, bi] | |
170 | 179 | } | |
171 | 180 | ||
172 | 181 | ||
173 | - | func | |
174 | - | let | |
175 | - | [D( | |
182 | + | func bj (aW,aX,bb) = { | |
183 | + | let bk = ba(aW, aX, bb) | |
184 | + | [D(bk[0], b), D(bk[1], b), D(bk[2], b)] | |
176 | 185 | } | |
177 | 186 | ||
178 | 187 | ||
179 | - | func | |
180 | - | let | |
181 | - | let | |
182 | - | let | |
183 | - | let | |
184 | - | let | |
185 | - | let | |
186 | - | let | |
187 | - | let | |
188 | - | if (( | |
188 | + | func bl (bm,bn,bo,S) = { | |
189 | + | let bc = av() | |
190 | + | let bp = bc[n] | |
191 | + | let bq = bc[o] | |
192 | + | let br = bc[p] | |
193 | + | let aU = parseIntValue(bc[q]) | |
194 | + | let aV = parseIntValue(bc[r]) | |
195 | + | let bs = bc[m] | |
196 | + | let bt = valueOrErrorMessage(assetInfo(fromBase58String(bp)), (("Asset " + bp) + " doesn't exist")).quantity | |
197 | + | if ((bp != bn)) | |
189 | 198 | then throw("Invalid asset passed.") | |
190 | 199 | else { | |
191 | - | let | |
192 | - | let | |
193 | - | let | |
194 | - | let | |
195 | - | let | |
196 | - | let | |
197 | - | let | |
198 | - | let | |
199 | - | let | |
200 | - | let | |
201 | - | let | |
202 | - | let | |
203 | - | let | |
200 | + | let bu = aO(bq) | |
201 | + | let bv = A(bu, aU) | |
202 | + | let bw = aO(br) | |
203 | + | let bx = A(bw, aV) | |
204 | + | let by = aQ(bx, bv) | |
205 | + | let bz = D(by, b) | |
206 | + | let bA = A(bo, b) | |
207 | + | let bB = A(bt, b) | |
208 | + | let bC = fraction(bv, bA, bB) | |
209 | + | let bD = fraction(bx, bA, bB) | |
210 | + | let bE = D(bC, aU) | |
211 | + | let bF = D(bD, aV) | |
212 | + | let bG = if ((bm == "")) | |
204 | 213 | then nil | |
205 | - | else [ScriptTransfer(S, | |
214 | + | else [ScriptTransfer(S, bE, if ((bq == "WAVES")) | |
206 | 215 | then unit | |
207 | - | else fromBase58String( | |
216 | + | else fromBase58String(bq)), ScriptTransfer(S, bF, if ((br == "WAVES")) | |
208 | 217 | then unit | |
209 | - | else fromBase58String( | |
210 | - | $Tuple10( | |
218 | + | else fromBase58String(br)), StringEntry(U(toString(S), bm), aK(bE, bF, bo, bz, height, lastBlock.timestamp)), IntegerEntry(N(), bz), IntegerEntry(O(height, lastBlock.timestamp), bz)] | |
219 | + | $Tuple10(bE, bF, bq, br, bu, bw, bt, by, bs, bG) | |
211 | 220 | } | |
212 | 221 | } | |
213 | 222 | ||
214 | 223 | ||
215 | - | func | |
216 | - | let | |
217 | - | let | |
218 | - | let | |
219 | - | let | |
220 | - | let | |
221 | - | let | |
222 | - | let | |
223 | - | let | |
224 | - | let | |
225 | - | let | |
226 | - | let | |
227 | - | let | |
228 | - | if (if (( | |
224 | + | func bH (bm,bI,bJ,bK,bL,bM,S,bN,bO) = { | |
225 | + | let bc = av() | |
226 | + | let bp = fromBase58String(bc[n]) | |
227 | + | let bP = bc[o] | |
228 | + | let bQ = bc[p] | |
229 | + | let bR = bc[s] | |
230 | + | let bS = bc[t] | |
231 | + | let bd = parseIntValue(bc[q]) | |
232 | + | let be = parseIntValue(bc[r]) | |
233 | + | let bs = bc[m] | |
234 | + | let bt = valueOrErrorMessage(assetInfo(bp), (("Asset " + toBase58String(bp)) + " doesn't exist")).quantity | |
235 | + | let bT = toBase58String(valueOrElse(bK, fromBase58String("WAVES"))) | |
236 | + | let bU = toBase58String(valueOrElse(bM, fromBase58String("WAVES"))) | |
237 | + | if (if ((bP != bT)) | |
229 | 238 | then true | |
230 | - | else ( | |
239 | + | else (bQ != bU)) | |
231 | 240 | then throw("Invalid amt or price asset passed.") | |
232 | 241 | else { | |
233 | - | let | |
234 | - | then | |
235 | - | else ( | |
236 | - | let | |
237 | - | then | |
238 | - | else ( | |
239 | - | let | |
240 | - | let | |
241 | - | let | |
242 | - | let | |
243 | - | let | |
244 | - | let | |
242 | + | let bu = if (bN) | |
243 | + | then aO(bP) | |
244 | + | else (aO(bP) - bJ) | |
245 | + | let bw = if (bN) | |
246 | + | then aO(bQ) | |
247 | + | else (aO(bQ) - bL) | |
248 | + | let bV = A(bJ, bd) | |
249 | + | let bW = A(bL, be) | |
250 | + | let bX = aQ(bW, bV) | |
251 | + | let bv = A(bu, bd) | |
252 | + | let bx = A(bw, be) | |
253 | + | let bY = if ((bt == 0)) | |
245 | 254 | then { | |
246 | - | let | |
247 | - | let | |
248 | - | let | |
249 | - | $Tuple5(D( | |
255 | + | let by = e | |
256 | + | let bZ = e | |
257 | + | let bg = pow((bV * bW), 0, toBigInt(5), 1, 0, DOWN) | |
258 | + | $Tuple5(D(bg, b), D(bV, bd), D(bW, be), aQ((bx + bW), (bv + bV)), bZ) | |
250 | 259 | } | |
251 | 260 | else { | |
252 | - | let | |
253 | - | let | |
254 | - | let | |
255 | - | if (if (( | |
256 | - | then ( | |
261 | + | let by = aQ(bx, bv) | |
262 | + | let bZ = fraction(K((by - bX)), d, by) | |
263 | + | let ca = A(bI, b) | |
264 | + | if (if ((by != e)) | |
265 | + | then (bZ > ca) | |
257 | 266 | else false) | |
258 | - | then throw(((("Price slippage " + toString( | |
267 | + | then throw(((("Price slippage " + toString(bZ)) + " exceeded the passed limit of ") + toString(ca))) | |
259 | 268 | else { | |
260 | - | let | |
261 | - | let | |
262 | - | let | |
263 | - | let | |
264 | - | then $Tuple2( | |
265 | - | else $Tuple2( | |
266 | - | let | |
267 | - | let | |
268 | - | let | |
269 | - | $Tuple5(D( | |
269 | + | let bB = A(bt, b) | |
270 | + | let cb = fraction(bV, by, d) | |
271 | + | let cc = fraction(bW, d, by) | |
272 | + | let cd = if ((cb > bW)) | |
273 | + | then $Tuple2(cc, bW) | |
274 | + | else $Tuple2(bV, cb) | |
275 | + | let ce = cd._1 | |
276 | + | let cf = cd._2 | |
277 | + | let bg = fraction(bB, cf, bx) | |
278 | + | $Tuple5(D(bg, b), D(ce, bd), D(cf, be), by, bZ) | |
270 | 279 | } | |
271 | 280 | } | |
272 | - | let | |
273 | - | let | |
274 | - | let | |
275 | - | let | |
276 | - | let | |
277 | - | if ((0 >= | |
281 | + | let cg = bY._1 | |
282 | + | let ch = bY._2 | |
283 | + | let ci = bY._3 | |
284 | + | let bz = D(bY._4, b) | |
285 | + | let cj = D(bY._5, b) | |
286 | + | if ((0 >= cg)) | |
278 | 287 | then throw("Invalid calculations. LP calculated is less than zero.") | |
279 | 288 | else { | |
280 | - | let | |
289 | + | let ck = if (!(bO)) | |
281 | 290 | then 0 | |
282 | - | else | |
283 | - | let | |
284 | - | let | |
285 | - | let | |
286 | - | $Tuple13( | |
291 | + | else cg | |
292 | + | let cl = (bJ - ch) | |
293 | + | let cm = (bL - ci) | |
294 | + | let cn = [IntegerEntry(N(), bz), IntegerEntry(O(height, lastBlock.timestamp), bz), StringEntry(R(S, bm), az(ch, ci, ck, bz, bI, cj, height, lastBlock.timestamp, cl, cm))] | |
295 | + | $Tuple13(cg, ck, bz, bu, bw, bt, bp, bs, cn, cl, cm, bK, bM) | |
287 | 296 | } | |
288 | 297 | } | |
289 | 298 | } | |
290 | 299 | ||
291 | 300 | ||
292 | - | func | |
293 | - | let | |
294 | - | let | |
295 | - | let | |
296 | - | let | |
297 | - | let | |
298 | - | let | |
299 | - | let | |
300 | - | let | |
301 | - | let | |
302 | - | then | |
303 | - | else | |
304 | - | let | |
305 | - | if (if (if ( | |
301 | + | func co (cp) = { | |
302 | + | let bc = av() | |
303 | + | let cq = bc[o] | |
304 | + | let cr = bc[p] | |
305 | + | let bs = parseIntValue(bc[m]) | |
306 | + | let bd = parseIntValue(bc[q]) | |
307 | + | let be = parseIntValue(bc[r]) | |
308 | + | let cs = aO(cq) | |
309 | + | let ct = aO(cr) | |
310 | + | let by = if ((cp.orderType == Buy)) | |
311 | + | then aT(bd, be, (cs + cp.amount), ct) | |
312 | + | else aT(bd, be, (cs - cp.amount), ct) | |
313 | + | let bz = D(by, b) | |
314 | + | if (if (if (at()) | |
306 | 315 | then true | |
307 | - | else ( | |
316 | + | else (bs == j)) | |
308 | 317 | then true | |
309 | - | else ( | |
318 | + | else (bs == k)) | |
310 | 319 | then throw("Exchange operations disabled") | |
311 | 320 | else { | |
312 | - | let | |
313 | - | let | |
321 | + | let cu = cp.assetPair.amountAsset | |
322 | + | let cv = if ((cu == unit)) | |
314 | 323 | then "WAVES" | |
315 | - | else toBase58String(value( | |
316 | - | let | |
317 | - | let | |
324 | + | else toBase58String(value(cu)) | |
325 | + | let cw = cp.assetPair.priceAsset | |
326 | + | let cx = if ((cw == unit)) | |
318 | 327 | then "WAVES" | |
319 | - | else toBase58String(value( | |
320 | - | if (if (( | |
328 | + | else toBase58String(value(cw)) | |
329 | + | if (if ((cv != cq)) | |
321 | 330 | then true | |
322 | - | else ( | |
331 | + | else (cx != cr)) | |
323 | 332 | then throw("Wrong order assets.") | |
324 | 333 | else { | |
325 | - | let | |
326 | - | let | |
327 | - | let | |
328 | - | let | |
329 | - | then ( | |
330 | - | else ( | |
334 | + | let cy = cp.price | |
335 | + | let cz = fraction(b, be, bd) | |
336 | + | let cA = G(cy, b, cz) | |
337 | + | let cB = if ((cp.orderType == Buy)) | |
338 | + | then (bz >= cA) | |
339 | + | else (cA >= bz) | |
331 | 340 | true | |
332 | 341 | } | |
333 | 342 | } | |
334 | 343 | } | |
335 | 344 | ||
336 | 345 | ||
337 | - | func | |
346 | + | func cC (cD) = if ((size(cD.payments) != 1)) | |
338 | 347 | then throw("exactly 1 payment is expected") | |
339 | 348 | else { | |
340 | - | let | |
341 | - | let | |
342 | - | let | |
343 | - | let | |
344 | - | let | |
345 | - | let | |
346 | - | let | |
347 | - | let | |
348 | - | if (if ( | |
349 | + | let cE = value(cD.payments[0]) | |
350 | + | let bn = value(cE.assetId) | |
351 | + | let cF = cE.amount | |
352 | + | let bY = bl(toBase58String(cD.transactionId), toBase58String(bn), cF, cD.caller) | |
353 | + | let bE = bY._1 | |
354 | + | let bF = bY._2 | |
355 | + | let bs = parseIntValue(bY._9) | |
356 | + | let bG = bY._10 | |
357 | + | if (if (at()) | |
349 | 358 | then true | |
350 | - | else ( | |
351 | - | then throw(("Get operation is blocked by admin. Status = " + toString( | |
352 | - | else $Tuple5( | |
359 | + | else (bs == k)) | |
360 | + | then throw(("Get operation is blocked by admin. Status = " + toString(bs))) | |
361 | + | else $Tuple5(bE, bF, cF, bn, bG) | |
353 | 362 | } | |
354 | 363 | ||
355 | 364 | ||
356 | - | func | |
365 | + | func cG (cD,bI,bO) = if ((size(cD.payments) != 2)) | |
357 | 366 | then throw("exactly 2 payments are expected") | |
358 | 367 | else { | |
359 | - | let | |
360 | - | let | |
361 | - | let | |
362 | - | let | |
363 | - | if (if (if ( | |
368 | + | let cH = value(cD.payments[0]) | |
369 | + | let cI = value(cD.payments[1]) | |
370 | + | let cJ = bH(toBase58String(cD.transactionId), bI, cH.amount, cH.assetId, cI.amount, cI.assetId, toString(cD.caller), false, bO) | |
371 | + | let bs = parseIntValue(cJ._8) | |
372 | + | if (if (if (at()) | |
364 | 373 | then true | |
365 | - | else ( | |
374 | + | else (bs == i)) | |
366 | 375 | then true | |
367 | - | else ( | |
368 | - | then throw(("Put operation is blocked by admin. Status = " + toString( | |
369 | - | else | |
376 | + | else (bs == k)) | |
377 | + | then throw(("Put operation is blocked by admin. Status = " + toString(bs))) | |
378 | + | else cJ | |
370 | 379 | } | |
371 | 380 | ||
372 | 381 | ||
373 | - | @Callable( | |
374 | - | func constructor ( | |
382 | + | @Callable(cD) | |
383 | + | func constructor (as,cK) = if ((cD.caller != this)) | |
375 | 384 | then throw("permissions denied") | |
376 | - | else [StringEntry(L(), | |
385 | + | else [StringEntry(L(), as), StringEntry(M(), cK)] | |
377 | 386 | ||
378 | 387 | ||
379 | 388 | ||
380 | - | @Callable( | |
381 | - | func put ( | |
382 | - | let | |
383 | - | let | |
384 | - | let | |
385 | - | if ((0 > | |
389 | + | @Callable(cD) | |
390 | + | func put (bI,cL) = { | |
391 | + | let cM = ay() | |
392 | + | let cN = valueOrErrorMessage(addressFromString(cM[y]), "Error. Incorrect staking address.") | |
393 | + | let cO = valueOrErrorMessage(addressFromString(cM[z]), "Error. Incorrect slippage contract address.") | |
394 | + | if ((0 > bI)) | |
386 | 395 | then throw("Invalid slippageTolerance passed") | |
387 | 396 | else { | |
388 | - | let | |
389 | - | let | |
390 | - | let | |
391 | - | let | |
392 | - | let | |
393 | - | let | |
394 | - | let | |
395 | - | let | |
396 | - | let | |
397 | - | if (( | |
397 | + | let cJ = cG(cD, bI, true) | |
398 | + | let ck = cJ._2 | |
399 | + | let bp = cJ._7 | |
400 | + | let bG = cJ._9 | |
401 | + | let cl = cJ._10 | |
402 | + | let cm = cJ._11 | |
403 | + | let cP = cJ._12 | |
404 | + | let cQ = cJ._13 | |
405 | + | let cR = invoke(as, "emit", [ck], nil) | |
406 | + | if ((cR == cR)) | |
398 | 407 | then { | |
399 | - | let | |
400 | - | then invoke( | |
408 | + | let cS = if ((cl > 0)) | |
409 | + | then invoke(cO, "put", nil, [AttachedPayment(cP, cl)]) | |
401 | 410 | else nil | |
402 | - | if (( | |
411 | + | if ((cS == cS)) | |
403 | 412 | then { | |
404 | - | let | |
405 | - | then invoke( | |
413 | + | let cT = if ((cm > 0)) | |
414 | + | then invoke(cO, "put", nil, [AttachedPayment(cQ, cm)]) | |
406 | 415 | else nil | |
407 | - | if (( | |
416 | + | if ((cT == cT)) | |
408 | 417 | then { | |
409 | - | let | |
418 | + | let cU = if (cL) | |
410 | 419 | then { | |
411 | - | let | |
412 | - | if (( | |
420 | + | let cV = invoke(cN, "stake", nil, [AttachedPayment(bp, ck)]) | |
421 | + | if ((cV == cV)) | |
413 | 422 | then nil | |
414 | 423 | else throw("Strict value is not equal to itself.") | |
415 | 424 | } | |
416 | - | else [ScriptTransfer( | |
417 | - | ( | |
425 | + | else [ScriptTransfer(cD.caller, ck, bp)] | |
426 | + | (bG ++ cU) | |
418 | 427 | } | |
419 | 428 | else throw("Strict value is not equal to itself.") | |
420 | 429 | } | |
421 | 430 | else throw("Strict value is not equal to itself.") | |
422 | 431 | } | |
423 | 432 | else throw("Strict value is not equal to itself.") | |
424 | 433 | } | |
425 | 434 | } | |
426 | 435 | ||
427 | 436 | ||
428 | 437 | ||
429 | - | @Callable( | |
430 | - | func putForFree ( | |
438 | + | @Callable(cD) | |
439 | + | func putForFree (cW) = if ((0 > cW)) | |
431 | 440 | then throw("Invalid value passed") | |
432 | 441 | else { | |
433 | - | let | |
434 | - | | |
442 | + | let cJ = cG(cD, cW, false) | |
443 | + | cJ._9 | |
435 | 444 | } | |
436 | 445 | ||
437 | 446 | ||
438 | 447 | ||
439 | - | @Callable( | |
448 | + | @Callable(cD) | |
440 | 449 | func get () = { | |
441 | - | let | |
442 | - | let | |
443 | - | let | |
444 | - | let | |
445 | - | let | |
446 | - | let | |
447 | - | let | |
448 | - | if (( | |
449 | - | then | |
450 | + | let bY = cC(cD) | |
451 | + | let cX = bY._1 | |
452 | + | let bF = bY._2 | |
453 | + | let cF = bY._3 | |
454 | + | let bn = bY._4 | |
455 | + | let bG = bY._5 | |
456 | + | let cY = invoke(as, "burn", [cF], [AttachedPayment(bn, cF)]) | |
457 | + | if ((cY == cY)) | |
458 | + | then bG | |
450 | 459 | else throw("Strict value is not equal to itself.") | |
451 | 460 | } | |
452 | 461 | ||
453 | 462 | ||
454 | 463 | ||
455 | - | @Callable( | |
456 | - | func getNoLess ( | |
457 | - | let | |
458 | - | let | |
459 | - | let | |
460 | - | let | |
461 | - | let | |
462 | - | let | |
463 | - | if (( | |
464 | - | then throw(((("noLessThenAmtAsset failed: " + toString( | |
465 | - | else if (( | |
466 | - | then throw(((("noLessThenPriceAsset failed: " + toString( | |
464 | + | @Callable(cD) | |
465 | + | func getNoLess (cZ,da) = { | |
466 | + | let bY = cC(cD) | |
467 | + | let bE = bY._1 | |
468 | + | let bF = bY._2 | |
469 | + | let cF = bY._3 | |
470 | + | let bn = bY._4 | |
471 | + | let bG = bY._5 | |
472 | + | if ((cZ > bE)) | |
473 | + | then throw(((("noLessThenAmtAsset failed: " + toString(bE)) + " < ") + toString(cZ))) | |
474 | + | else if ((da > bF)) | |
475 | + | then throw(((("noLessThenPriceAsset failed: " + toString(bF)) + " < ") + toString(da))) | |
467 | 476 | else { | |
468 | - | let | |
469 | - | if (( | |
470 | - | then | |
477 | + | let cY = invoke(as, "burn", [cF], [AttachedPayment(bn, cF)]) | |
478 | + | if ((cY == cY)) | |
479 | + | then bG | |
471 | 480 | else throw("Strict value is not equal to itself.") | |
472 | 481 | } | |
473 | 482 | } | |
474 | 483 | ||
475 | 484 | ||
476 | 485 | ||
477 | - | @Callable( | |
478 | - | func activate ( | |
486 | + | @Callable(cD) | |
487 | + | func activate (db,dc) = if ((toString(cD.caller) != toString(as))) | |
479 | 488 | then throw("permissions denied") | |
480 | - | else $Tuple2([StringEntry(V(), | |
489 | + | else $Tuple2([StringEntry(V(), db), StringEntry(W(), dc)], "success") | |
481 | 490 | ||
482 | 491 | ||
483 | 492 | ||
484 | - | @Callable( | |
493 | + | @Callable(cD) | |
485 | 494 | func statsREADONLY () = { | |
486 | - | let | |
487 | - | let | |
488 | - | let | |
489 | - | let | |
490 | - | let | |
491 | - | let | |
492 | - | let | |
493 | - | let | |
494 | - | let | |
495 | - | let | |
496 | - | let | |
497 | - | let | |
498 | - | let | |
499 | - | let | |
500 | - | let | |
501 | - | let | |
502 | - | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d", toString( | |
495 | + | let bc = av() | |
496 | + | let bp = fromBase58String(bc[n]) | |
497 | + | let cq = bc[o] | |
498 | + | let cr = bc[p] | |
499 | + | let bR = bc[s] | |
500 | + | let bS = bc[t] | |
501 | + | let bd = parseIntValue(bc[q]) | |
502 | + | let be = parseIntValue(bc[r]) | |
503 | + | let dd = valueOrErrorMessage(assetInfo(bp), (("Asset " + toBase58String(bp)) + " doesn't exist")).quantity | |
504 | + | let cs = aO(cq) | |
505 | + | let ct = aO(cr) | |
506 | + | let de = ba(cs, ct, dd) | |
507 | + | let bz = 0 | |
508 | + | let df = D(de[1], b) | |
509 | + | let dg = D(de[2], b) | |
510 | + | let dh = value(getInteger(as, ai(toString(this)))) | |
511 | + | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d", toString(cs), toString(ct), toString(dd), toString(bz), toString(df), toString(dg), toString(dh)], f)) | |
503 | 512 | } | |
504 | 513 | ||
505 | 514 | ||
506 | 515 | ||
507 | - | @Callable( | |
508 | - | func evaluatePutByAmountAssetREADONLY ( | |
509 | - | let | |
510 | - | let | |
511 | - | let | |
512 | - | let | |
513 | - | let | |
514 | - | let | |
515 | - | let | |
516 | - | let | |
517 | - | let | |
518 | - | let | |
519 | - | let | |
520 | - | let | |
521 | - | let | |
522 | - | let | |
523 | - | let | |
516 | + | @Callable(cD) | |
517 | + | func evaluatePutByAmountAssetREADONLY (bJ) = { | |
518 | + | let bc = av() | |
519 | + | let bp = fromBase58String(bc[n]) | |
520 | + | let bP = bc[o] | |
521 | + | let bq = fromBase58String(bP) | |
522 | + | let bQ = bc[p] | |
523 | + | let br = fromBase58String(bQ) | |
524 | + | let bd = parseIntValue(bc[q]) | |
525 | + | let be = parseIntValue(bc[r]) | |
526 | + | let bs = bc[m] | |
527 | + | let dd = valueOrErrorMessage(assetInfo(bp), (("Asset " + toBase58String(bp)) + " doesn't exist")).quantity | |
528 | + | let cs = aO(bP) | |
529 | + | let ct = aO(bQ) | |
530 | + | let aY = A(cs, bd) | |
531 | + | let aZ = A(ct, be) | |
532 | + | let by = if ((dd == 0)) | |
524 | 533 | then e | |
525 | - | else | |
526 | - | let | |
527 | - | let | |
528 | - | let | |
529 | - | let | |
530 | - | let | |
531 | - | let | |
532 | - | let | |
533 | - | let | |
534 | - | let | |
535 | - | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d%d", toString( | |
534 | + | else aQ(aZ, aY) | |
535 | + | let bV = A(bJ, bd) | |
536 | + | let bW = fraction(bV, by, d) | |
537 | + | let bL = D(bW, be) | |
538 | + | let cJ = bH("", 500000, bJ, bq, bL, br, "", true, false) | |
539 | + | let cg = cJ._1 | |
540 | + | let di = cJ._3 | |
541 | + | let bu = cJ._4 | |
542 | + | let bw = cJ._5 | |
543 | + | let bt = cJ._6 | |
544 | + | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d%d", toString(cg), toString(D(by, b)), toString(bu), toString(bw), toString(bt), bs, toString(bJ), toString(bL)], f)) | |
536 | 545 | } | |
537 | 546 | ||
538 | 547 | ||
539 | 548 | ||
540 | - | @Callable( | |
541 | - | func evaluatePutByPriceAssetREADONLY ( | |
542 | - | let | |
543 | - | let | |
544 | - | let | |
545 | - | let | |
546 | - | let | |
547 | - | let | |
548 | - | let | |
549 | - | let | |
550 | - | let | |
551 | - | let | |
552 | - | let | |
553 | - | let | |
554 | - | let | |
555 | - | let | |
556 | - | let | |
549 | + | @Callable(cD) | |
550 | + | func evaluatePutByPriceAssetREADONLY (bL) = { | |
551 | + | let bc = av() | |
552 | + | let bp = fromBase58String(bc[n]) | |
553 | + | let bP = bc[o] | |
554 | + | let bq = fromBase58String(bP) | |
555 | + | let bQ = bc[p] | |
556 | + | let br = fromBase58String(bQ) | |
557 | + | let bd = parseIntValue(bc[q]) | |
558 | + | let be = parseIntValue(bc[r]) | |
559 | + | let bs = bc[m] | |
560 | + | let dd = valueOrErrorMessage(assetInfo(bp), (("Asset " + toBase58String(bp)) + " doesn't exist")).quantity | |
561 | + | let dj = aO(bP) | |
562 | + | let dk = aO(bQ) | |
563 | + | let dl = A(dj, bd) | |
564 | + | let dm = A(dk, be) | |
565 | + | let by = if ((dd == 0)) | |
557 | 566 | then e | |
558 | - | else | |
559 | - | let | |
560 | - | let | |
561 | - | let | |
562 | - | let | |
563 | - | let | |
564 | - | let | |
565 | - | let | |
566 | - | let | |
567 | - | let | |
568 | - | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d%d", toString( | |
567 | + | else aQ(dm, dl) | |
568 | + | let bW = A(bL, be) | |
569 | + | let bV = fraction(bW, d, by) | |
570 | + | let bJ = D(bV, bd) | |
571 | + | let cJ = bH("", 500000, bJ, bq, bL, br, "", true, false) | |
572 | + | let cg = cJ._1 | |
573 | + | let di = cJ._3 | |
574 | + | let bu = cJ._4 | |
575 | + | let bw = cJ._5 | |
576 | + | let bt = cJ._6 | |
577 | + | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d%d", toString(cg), toString(D(by, b)), toString(bu), toString(bw), toString(bt), bs, toString(bJ), toString(bL)], f)) | |
569 | 578 | } | |
570 | 579 | ||
571 | 580 | ||
572 | 581 | ||
573 | - | @Callable( | |
574 | - | func evaluateGetREADONLY ( | |
575 | - | let | |
576 | - | let | |
577 | - | let | |
578 | - | let | |
579 | - | let | |
580 | - | let | |
581 | - | let | |
582 | - | let | |
583 | - | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d", toString( | |
582 | + | @Callable(cD) | |
583 | + | func evaluateGetREADONLY (dn,do) = { | |
584 | + | let bY = bl("", dn, do, this) | |
585 | + | let bE = bY._1 | |
586 | + | let bF = bY._2 | |
587 | + | let bu = bY._5 | |
588 | + | let bw = bY._6 | |
589 | + | let bt = bY._7 | |
590 | + | let bz = bY._8 | |
591 | + | let bs = parseIntValue(bY._9) | |
592 | + | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d", toString(bE), toString(bF), toString(bu), toString(bw), toString(bt), toString(bz), toString(bs)], f)) | |
584 | 593 | } | |
585 | 594 | ||
586 | 595 | ||
587 | - | @Verifier( | |
588 | - | func | |
589 | - | let | |
590 | - | if ($isInstanceOf( | |
596 | + | @Verifier(dp) | |
597 | + | func dq () = { | |
598 | + | let dr = dp | |
599 | + | if ($isInstanceOf(dr, "Order")) | |
591 | 600 | then { | |
592 | - | let cj = dl | |
593 | - | if (ci(cj)) | |
594 | - | then sigVerify(cj.bodyBytes, cj.proofs[0], cj.senderPublicKey) | |
595 | - | else false | |
601 | + | let cp = dr | |
602 | + | let ds = au() | |
603 | + | let al = co(cp) | |
604 | + | let am = sigVerify(cp.bodyBytes, cp.proofs[0], cp.senderPublicKey) | |
605 | + | let an = sigVerify(cp.bodyBytes, cp.proofs[1], ds) | |
606 | + | if (if (if (al) | |
607 | + | then am | |
608 | + | else false) | |
609 | + | then an | |
610 | + | else false) | |
611 | + | then true | |
612 | + | else ak(al, am, an) | |
596 | 613 | } | |
597 | 614 | else { | |
598 | - | let | |
599 | - | if (( | |
600 | - | then sigVerify( | |
601 | - | else sigVerify( | |
615 | + | let dt = valueOrElse(getString(this, M()), g) | |
616 | + | if ((dt == g)) | |
617 | + | then sigVerify(dp.bodyBytes, dp.proofs[0], dp.senderPublicKey) | |
618 | + | else sigVerify(dp.bodyBytes, dp.proofs[0], fromBase58String(dt)) | |
602 | 619 | } | |
603 | 620 | } | |
604 | 621 |
github/deemru/w8io/169f3d6 201.86 ms ◑