tx · DM8GBEKNTKGdAL3E7SnWjz6wUGCFW8vEQZr8bzSuXe4S 3MwLxeC8g15eo3LyuPXtynhdqLLc6H5JYdg: -0.03500000 Waves 2022.12.07 17:38 [2350043] smart account 3MwLxeC8g15eo3LyuPXtynhdqLLc6H5JYdg > SELF 0.00000000 Waves
{ "type": 13, "id": "DM8GBEKNTKGdAL3E7SnWjz6wUGCFW8vEQZr8bzSuXe4S", "fee": 3500000, "feeAssetId": null, "timestamp": 1670423926229, "version": 1, "sender": "3MwLxeC8g15eo3LyuPXtynhdqLLc6H5JYdg", "senderPublicKey": "CGQFUL2JAkPed1b28BAsmGk5AGVrfi3GxXJgKkDNk6hQ", "proofs": [ "3M5PEdPqsaEp71TujjLneQEzNVavF9st5sWuUgH5hRaukWye6Bu1w3wL3RR9mmwAGiduWXL97LeVoMn3RcAVAXw7" ], "script": "base64:BgL1LAgCEgMKAQgSABIECgIBBBIDCgEBEgQKAgEEEgQKAggBEgQKAggBEgQKAggBEgUKAwEIARIAEgQKAgEBEgMKAQESBQoDAQEBEgQKAggIEgASABIDCgEIEgUKAwEBARIECgIBARIECgIIARIECgIICBILCgkIAQECAQIIBAQSBgoECAgBCBIAEgMKAQESAwoBARIECgIIASIKbFBkZWNpbWFscyIGc2NhbGU4IgxzY2FsZThCaWdJbnQiB3NjYWxlMTgiCnplcm9CaWdJbnQiBGJpZzAiBGJpZzEiBGJpZzIiC3dhdmVzU3RyaW5nIgNTRVAiClBvb2xBY3RpdmUiD1Bvb2xQdXREaXNhYmxlZCITUG9vbE1hdGNoZXJEaXNhYmxlZCIMUG9vbFNodXRkb3duIg5pZHhQb29sQWRkcmVzcyINaWR4UG9vbFN0YXR1cyIQaWR4UG9vbExQQXNzZXRJZCINaWR4QW10QXNzZXRJZCIPaWR4UHJpY2VBc3NldElkIg5pZHhBbXRBc3NldERjbSIQaWR4UHJpY2VBc3NldERjbSIOaWR4SUFtdEFzc2V0SWQiEGlkeElQcmljZUFzc2V0SWQiDWlkeExQQX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Pc2VuZGVyUHVibGljS2V5BAJhQgkA9AMDCAUCZHIJYm9keUJ5dGVzCQCRAwIIBQJkcgZwcm9vZnMAAQUCZ0MDAwMFAmF6BQJhQQcFAmFCBwYJAQJheQMFAmF6BQJhQQUCYUIDCQABAgUCZE0CFFNldFNjcmlwdFRyYW5zYWN0aW9uBAJlUAUCZE0EAmdECQD2AwEJAQV2YWx1ZQEIBQJlUAZzY3JpcHQEAmdFCQDbBAEJAQV2YWx1ZQEJAJ0IAgUCYUoJAQJhdwAEAmdGCQDxBwEFBHRoaXMDAwkAAAIFAmdFBQJnRAkBAiE9AgUCZ0YFAmdEBwYJAPQDAwgFAmd6CWJvZHlCeXRlcwkAkQMCCAUCZ3oGcHJvb2ZzAAAFAmdCCQD0AwMIBQJneglib2R5Qnl0ZXMJAJEDAggFAmd6BnByb29mcwAABQJnQsDAXEo=", "chainId": 84, "height": 2350043, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 8y6gFpQQhQZJyx58yorp3PRQwURx5YB1PVnPP97vtNbw Next: HZYWot9upU5jAfunbprVn5ih2dU7dkJ79f4w85Tcdu5t Diff:
Old | New | Differences | |
---|---|---|---|
233 | 233 | func by (bz,bA) = fraction(bz, d, bA) | |
234 | 234 | ||
235 | 235 | ||
236 | - | func bB (bC,bD,bE,bF) = { | |
237 | - | let bG = D(bE, bC) | |
238 | - | let bH = D(bF, bD) | |
239 | - | by(bH, bG) | |
236 | + | func bB (bz,bA,bC) = fraction(bz, d, bA, bC) | |
237 | + | ||
238 | + | ||
239 | + | func bD (bE,bF,bG,bH) = { | |
240 | + | let bI = D(bG, bE) | |
241 | + | let bJ = D(bH, bF) | |
242 | + | by(bJ, bI) | |
240 | 243 | } | |
241 | 244 | ||
242 | 245 | ||
243 | - | func | |
244 | - | let | |
245 | - | let | |
246 | - | let | |
247 | - | let | |
248 | - | let bA = D( | |
249 | - | let bz = D( | |
250 | - | let | |
251 | - | let | |
252 | - | let | |
253 | - | [ | |
246 | + | func bK (bG,bH,bL) = { | |
247 | + | let bM = aN() | |
248 | + | let bN = parseIntValue(bM[t]) | |
249 | + | let bO = parseIntValue(bM[u]) | |
250 | + | let bP = bD(bN, bO, bG, bH) | |
251 | + | let bA = D(bG, bN) | |
252 | + | let bz = D(bH, bO) | |
253 | + | let bQ = D(bL, b) | |
254 | + | let bR = by(bA, bQ) | |
255 | + | let bS = by(bz, bQ) | |
256 | + | [bP, bR, bS] | |
254 | 257 | } | |
255 | 258 | ||
256 | 259 | ||
257 | - | func | |
258 | - | let | |
259 | - | [G( | |
260 | + | func bT (bG,bH,bL) = { | |
261 | + | let bU = bK(bG, bH, bL) | |
262 | + | [G(bU[0], b), G(bU[1], b), G(bU[2], b)] | |
260 | 263 | } | |
261 | 264 | ||
262 | 265 | ||
263 | - | func | |
264 | - | let | |
265 | - | let | |
266 | - | let | |
267 | - | let | |
268 | - | let | |
269 | - | let | |
270 | - | let | |
271 | - | let | |
272 | - | if (( | |
266 | + | func bV (bW,bX,bY,X) = { | |
267 | + | let bM = aN() | |
268 | + | let bZ = bM[q] | |
269 | + | let ca = bM[r] | |
270 | + | let cb = bM[s] | |
271 | + | let bE = parseIntValue(bM[t]) | |
272 | + | let bF = parseIntValue(bM[u]) | |
273 | + | let cc = bM[p] | |
274 | + | let cd = valueOrErrorMessage(assetInfo(fromBase58String(bZ)), (("Asset " + bZ) + " doesn't exist")).quantity | |
275 | + | if ((bZ != bX)) | |
273 | 276 | then throw("Invalid asset passed.") | |
274 | 277 | else { | |
275 | - | let | |
276 | - | let | |
277 | - | let | |
278 | - | let | |
279 | - | let | |
280 | - | let | |
281 | - | let | |
282 | - | let | |
283 | - | let | |
284 | - | let | |
285 | - | let | |
286 | - | let | |
287 | - | let | |
278 | + | let ce = bw(ca) | |
279 | + | let cf = D(ce, bE) | |
280 | + | let cg = bw(cb) | |
281 | + | let ch = D(cg, bF) | |
282 | + | let ci = by(ch, cf) | |
283 | + | let cj = G(ci, b) | |
284 | + | let ck = D(bY, b) | |
285 | + | let cl = D(cd, b) | |
286 | + | let cm = fraction(cf, ck, cl) | |
287 | + | let cn = fraction(ch, ck, cl) | |
288 | + | let co = G(cm, bE) | |
289 | + | let cp = G(cn, bF) | |
290 | + | let cq = if ((bW == "")) | |
288 | 291 | then nil | |
289 | - | else [ScriptTransfer(X, | |
292 | + | else [ScriptTransfer(X, co, if ((ca == "WAVES")) | |
290 | 293 | then unit | |
291 | - | else fromBase58String( | |
294 | + | else fromBase58String(ca)), ScriptTransfer(X, cp, if ((cb == "WAVES")) | |
292 | 295 | then unit | |
293 | - | else fromBase58String( | |
294 | - | $Tuple10( | |
296 | + | else fromBase58String(cb)), StringEntry(Z(toString(X), bW), bs(co, cp, bY, cj, height, lastBlock.timestamp)), IntegerEntry(S(), cj), IntegerEntry(T(height, lastBlock.timestamp), cj)] | |
297 | + | $Tuple10(co, cp, ca, cb, ce, cg, cd, ci, cc, cq) | |
295 | 298 | } | |
296 | 299 | } | |
297 | 300 | ||
298 | 301 | ||
299 | - | func | |
300 | - | let | |
301 | - | let | |
302 | - | let | |
303 | - | let | |
304 | - | let | |
305 | - | let | |
306 | - | let | |
307 | - | let | |
308 | - | let | |
309 | - | let | |
310 | - | let | |
311 | - | let | |
312 | - | if (if (( | |
302 | + | func cr (bW,cs,ct,cu,cv,cw,X,cx,cy) = { | |
303 | + | let bM = aN() | |
304 | + | let bZ = fromBase58String(bM[q]) | |
305 | + | let cz = bM[r] | |
306 | + | let cA = bM[s] | |
307 | + | let cB = bM[v] | |
308 | + | let cC = bM[w] | |
309 | + | let bN = parseIntValue(bM[t]) | |
310 | + | let bO = parseIntValue(bM[u]) | |
311 | + | let cc = bM[p] | |
312 | + | let cd = valueOrErrorMessage(assetInfo(bZ), (("Asset " + toBase58String(bZ)) + " doesn't exist")).quantity | |
313 | + | let cD = toBase58String(valueOrElse(cu, fromBase58String("WAVES"))) | |
314 | + | let cE = toBase58String(valueOrElse(cw, fromBase58String("WAVES"))) | |
315 | + | if (if ((cz != cD)) | |
313 | 316 | then true | |
314 | - | else ( | |
317 | + | else (cA != cE)) | |
315 | 318 | then throw("Invalid amt or price asset passed.") | |
316 | 319 | else { | |
317 | - | let | |
318 | - | then bw( | |
319 | - | else (bw( | |
320 | - | let | |
321 | - | then bw( | |
322 | - | else (bw( | |
323 | - | let | |
324 | - | let | |
325 | - | let | |
326 | - | let | |
327 | - | let | |
328 | - | let | |
320 | + | let ce = if (cx) | |
321 | + | then bw(cz) | |
322 | + | else (bw(cz) - ct) | |
323 | + | let cg = if (cx) | |
324 | + | then bw(cA) | |
325 | + | else (bw(cA) - cv) | |
326 | + | let cF = D(ct, bN) | |
327 | + | let cG = D(cv, bO) | |
328 | + | let cH = by(cG, cF) | |
329 | + | let cf = D(ce, bN) | |
330 | + | let ch = D(cg, bO) | |
331 | + | let cI = if ((cd == 0)) | |
329 | 332 | then { | |
330 | - | let | |
331 | - | let | |
332 | - | let | |
333 | - | $Tuple5(G( | |
333 | + | let ci = e | |
334 | + | let cJ = e | |
335 | + | let bQ = pow((cF * cG), 0, toBigInt(5), 1, 0, DOWN) | |
336 | + | $Tuple5(G(bQ, b), G(cF, bN), G(cG, bO), by((ch + cG), (cf + cF)), cJ) | |
334 | 337 | } | |
335 | 338 | else { | |
336 | - | let | |
337 | - | let | |
338 | - | let | |
339 | - | if (if (( | |
340 | - | then ( | |
339 | + | let ci = by(ch, cf) | |
340 | + | let cJ = fraction(O((ci - cH)), d, ci) | |
341 | + | let cK = D(cs, b) | |
342 | + | if (if ((ci != e)) | |
343 | + | then (cJ > cK) | |
341 | 344 | else false) | |
342 | - | then throw(((("Price slippage " + toString( | |
345 | + | then throw(((("Price slippage " + toString(cJ)) + " exceeded the passed limit of ") + toString(cK))) | |
343 | 346 | else { | |
344 | - | let | |
345 | - | let | |
346 | - | let | |
347 | - | let | |
348 | - | then $Tuple2( | |
349 | - | else $Tuple2( | |
350 | - | let | |
351 | - | let | |
352 | - | let | |
353 | - | $Tuple5(G( | |
347 | + | let cl = D(cd, b) | |
348 | + | let cL = fraction(cF, bB(ch, cf, CEILING), d, CEILING) | |
349 | + | let cM = fraction(cG, d, bB(ch, cf, FLOOR), CEILING) | |
350 | + | let cN = if ((cL > cG)) | |
351 | + | then $Tuple2(cM, cG) | |
352 | + | else $Tuple2(cF, cL) | |
353 | + | let cO = cN._1 | |
354 | + | let cP = cN._2 | |
355 | + | let bQ = fraction(cl, cP, ch, FLOOR) | |
356 | + | $Tuple5(G(bQ, b), G(cO, bN), G(cP, bO), ci, cJ) | |
354 | 357 | } | |
355 | 358 | } | |
356 | - | let | |
357 | - | let | |
358 | - | let | |
359 | - | let | |
360 | - | let | |
361 | - | if ((0 >= | |
359 | + | let cQ = cI._1 | |
360 | + | let cR = cI._2 | |
361 | + | let cS = cI._3 | |
362 | + | let cj = G(cI._4, b) | |
363 | + | let cT = G(cI._5, b) | |
364 | + | if ((0 >= cQ)) | |
362 | 365 | then throw("Invalid calculations. LP calculated is less than zero.") | |
363 | 366 | else { | |
364 | - | let | |
367 | + | let cU = if (!(cy)) | |
365 | 368 | then 0 | |
366 | - | else | |
367 | - | let | |
368 | - | let | |
369 | - | let | |
370 | - | $Tuple13( | |
369 | + | else cQ | |
370 | + | let cV = (ct - cR) | |
371 | + | let cW = (cv - cS) | |
372 | + | let cX = [IntegerEntry(S(), cj), IntegerEntry(T(height, lastBlock.timestamp), cj), StringEntry(W(X, bW), bh(cR, cS, cU, cj, cs, cT, height, lastBlock.timestamp, cV, cW))] | |
373 | + | $Tuple13(cQ, cU, cj, ce, cg, cd, bZ, cc, cX, cV, cW, cu, cw) | |
371 | 374 | } | |
372 | 375 | } | |
373 | 376 | } | |
374 | 377 | ||
375 | 378 | ||
376 | - | func | |
377 | - | let | |
378 | - | if (( | |
379 | + | func cY (cZ,da,cd) = { | |
380 | + | let db = fraction(pow((cZ * da), 0, toBigInt(5), 1, 18, DOWN), g, cd) | |
381 | + | if ((cd == f)) | |
379 | 382 | then f | |
380 | - | else | |
383 | + | else db | |
381 | 384 | } | |
382 | 385 | ||
383 | 386 | ||
384 | - | func | |
385 | - | let | |
386 | - | let | |
387 | - | let | |
388 | - | let | |
389 | - | | |
387 | + | func dc (dd,de,df) = { | |
388 | + | let dg = (toBigInt(bw(aS(ba))) - dd) | |
389 | + | let dh = (toBigInt(bw(aS(bb))) - de) | |
390 | + | let di = (toBigInt(value(assetInfo(aZ)).quantity) - df) | |
391 | + | let dj = cY(dg, dh, di) | |
392 | + | dj | |
390 | 393 | } | |
391 | 394 | ||
392 | 395 | ||
393 | - | func | |
394 | - | let | |
395 | - | let | |
396 | - | let | |
397 | - | let | |
398 | - | let | |
399 | - | $Tuple2( | |
396 | + | func dk (dl,dm,df) = { | |
397 | + | let dg = (bw(aS(ba)) + dl) | |
398 | + | let dh = (bw(aS(bb)) + dm) | |
399 | + | let di = (value(assetInfo(aZ)).quantity + df) | |
400 | + | let db = cY(toBigInt(dg), toBigInt(dh), toBigInt(di)) | |
401 | + | let dn = [IntegerEntry(ag, height), StringEntry(af, toString(db))] | |
402 | + | $Tuple2(dn, db) | |
400 | 403 | } | |
401 | 404 | ||
402 | 405 | ||
403 | - | func | |
406 | + | func do (dp,db) = if ((db >= dp)) | |
404 | 407 | then true | |
405 | - | else aG(makeString(["updated KLp lower than current KLp", toString( | |
408 | + | else aG(makeString(["updated KLp lower than current KLp", toString(dp), toString(db)], " ")) | |
406 | 409 | ||
407 | 410 | ||
408 | - | func | |
409 | - | let | |
410 | - | let | |
411 | - | let | |
412 | - | then $Tuple2( | |
413 | - | else $Tuple2(-( | |
414 | - | let | |
415 | - | let | |
411 | + | func dq (dr) = { | |
412 | + | let ds = dr.amount | |
413 | + | let dt = fraction(dr.amount, dr.price, b, FLOOR) | |
414 | + | let du = if ((dr.orderType == Buy)) | |
415 | + | then $Tuple2(ds, -(dt)) | |
416 | + | else $Tuple2(-(ds), dt) | |
417 | + | let dl = du._1 | |
418 | + | let dm = du._2 | |
416 | 419 | if (if (if (aL()) | |
417 | 420 | then true | |
418 | 421 | else (aY == m)) | |
419 | 422 | then true | |
420 | 423 | else (aY == n)) | |
421 | 424 | then throw("Exchange operations disabled") | |
422 | - | else if (if (( | |
425 | + | else if (if ((dr.assetPair.amountAsset != ba)) | |
423 | 426 | then true | |
424 | - | else ( | |
427 | + | else (dr.assetPair.priceAsset != bb)) | |
425 | 428 | then throw("Wrong order assets.") | |
426 | 429 | else { | |
427 | - | let | |
428 | - | let | |
429 | - | let | |
430 | - | let | |
431 | - | let | |
432 | - | | |
430 | + | let dv = valueOrErrorMessage(parseBigInt(valueOrErrorMessage(getString(this, af), aI("kLp is required"))), aI("invalid kLp")) | |
431 | + | let dw = dk(dl, dm, 0) | |
432 | + | let dx = dw._1 | |
433 | + | let dy = dw._2 | |
434 | + | let dz = (dy >= dv) | |
435 | + | dz | |
433 | 436 | } | |
434 | 437 | } | |
435 | 438 | ||
436 | 439 | ||
437 | - | func | |
440 | + | func dA (dB) = if ((size(dB.payments) != 1)) | |
438 | 441 | then throw("exactly 1 payment is expected") | |
439 | 442 | else { | |
440 | - | let | |
441 | - | let | |
442 | - | let | |
443 | - | let | |
444 | - | let | |
445 | - | let | |
446 | - | let | |
447 | - | let | |
443 | + | let dC = value(dB.payments[0]) | |
444 | + | let bX = value(dC.assetId) | |
445 | + | let dD = dC.amount | |
446 | + | let cI = bV(toBase58String(dB.transactionId), toBase58String(bX), dD, dB.caller) | |
447 | + | let co = cI._1 | |
448 | + | let cp = cI._2 | |
449 | + | let cc = parseIntValue(cI._9) | |
450 | + | let cq = cI._10 | |
448 | 451 | if (if (aL()) | |
449 | 452 | then true | |
450 | - | else ( | |
451 | - | then throw(("Get operation is blocked by admin. Status = " + toString( | |
452 | - | else $Tuple5( | |
453 | + | else (cc == n)) | |
454 | + | then throw(("Get operation is blocked by admin. Status = " + toString(cc))) | |
455 | + | else $Tuple5(co, cp, dD, bX, cq) | |
453 | 456 | } | |
454 | 457 | ||
455 | 458 | ||
456 | - | func | |
459 | + | func dE (dB,cs,cy) = if ((size(dB.payments) != 2)) | |
457 | 460 | then throw("exactly 2 payments are expected") | |
458 | 461 | else { | |
459 | - | let | |
460 | - | let | |
461 | - | let | |
462 | - | let | |
462 | + | let dF = value(dB.payments[0]) | |
463 | + | let dG = value(dB.payments[1]) | |
464 | + | let dH = cr(toBase58String(dB.transactionId), cs, dF.amount, dF.assetId, dG.amount, dG.assetId, toString(dB.caller), false, cy) | |
465 | + | let cc = parseIntValue(dH._8) | |
463 | 466 | if (if (if (aL()) | |
464 | 467 | then true | |
465 | - | else ( | |
468 | + | else (cc == l)) | |
466 | 469 | then true | |
467 | - | else ( | |
468 | - | then throw(("Put operation is blocked by admin. Status = " + toString( | |
469 | - | else | |
470 | + | else (cc == n)) | |
471 | + | then throw(("Put operation is blocked by admin. Status = " + toString(cc))) | |
472 | + | else dH | |
470 | 473 | } | |
471 | 474 | ||
472 | 475 | ||
473 | - | func | |
474 | - | let | |
475 | - | if (( | |
476 | + | func dI (dJ) = { | |
477 | + | let dK = invoke(aJ, "emit", [dJ], nil) | |
478 | + | if ((dK == dK)) | |
476 | 479 | then { | |
477 | - | let | |
478 | - | let | |
479 | - | if ($isInstanceOf( | |
480 | + | let dL = { | |
481 | + | let dM = dK | |
482 | + | if ($isInstanceOf(dM, "Address")) | |
480 | 483 | then { | |
481 | - | let | |
482 | - | invoke( | |
484 | + | let dN = dM | |
485 | + | invoke(dN, "emit", [dJ], nil) | |
483 | 486 | } | |
484 | 487 | else unit | |
485 | 488 | } | |
486 | - | if (( | |
487 | - | then | |
489 | + | if ((dL == dL)) | |
490 | + | then dJ | |
488 | 491 | else throw("Strict value is not equal to itself.") | |
489 | 492 | } | |
490 | 493 | else throw("Strict value is not equal to itself.") | |
491 | 494 | } | |
492 | 495 | ||
493 | 496 | ||
494 | - | func | |
495 | - | let | |
496 | - | $Tuple2(( | |
497 | + | func dO (dJ) = { | |
498 | + | let dP = fraction(dJ, ae, b) | |
499 | + | $Tuple2((dJ - dP), dP) | |
497 | 500 | } | |
498 | 501 | ||
499 | 502 | ||
500 | - | func | |
501 | - | let | |
502 | - | let | |
503 | - | let | |
504 | - | let | |
503 | + | func dQ (dR,dS,X,Y) = { | |
504 | + | let dT = (Y == unit) | |
505 | + | let dU = bw(aS(ba)) | |
506 | + | let dV = bw(aS(bb)) | |
507 | + | let dW = if ((dS == ba)) | |
505 | 508 | then true | |
506 | - | else if (( | |
509 | + | else if ((dS == bb)) | |
507 | 510 | then false | |
508 | 511 | else aG("invalid asset") | |
509 | - | let | |
510 | - | then $Tuple2( | |
511 | - | else if ( | |
512 | - | then $Tuple2(( | |
513 | - | else $Tuple2( | |
514 | - | let | |
515 | - | let | |
516 | - | let | |
517 | - | then $Tuple2( | |
518 | - | else $Tuple2(0, | |
519 | - | let | |
520 | - | let | |
521 | - | let | |
522 | - | let | |
523 | - | let | |
524 | - | let | |
525 | - | let | |
526 | - | let | |
527 | - | let | |
528 | - | let | |
529 | - | let | |
530 | - | let | |
531 | - | then | |
532 | - | else | |
533 | - | let | |
534 | - | let | |
535 | - | let | |
512 | + | let dX = if (dT) | |
513 | + | then $Tuple2(dU, dV) | |
514 | + | else if (dW) | |
515 | + | then $Tuple2((dU - dR), dV) | |
516 | + | else $Tuple2(dU, (dV - dR)) | |
517 | + | let dY = dX._1 | |
518 | + | let dZ = dX._2 | |
519 | + | let ea = if (dW) | |
520 | + | then $Tuple2(dR, 0) | |
521 | + | else $Tuple2(0, dR) | |
522 | + | let eb = ea._1 | |
523 | + | let ec = ea._2 | |
524 | + | let ds = dO(eb)._1 | |
525 | + | let dt = dO(ec)._1 | |
526 | + | let ed = dO(dR) | |
527 | + | let ee = ed._1 | |
528 | + | let dP = ed._2 | |
529 | + | let ef = (dY + ds) | |
530 | + | let eg = (dZ + dt) | |
531 | + | let eh = by(D(eg, bd), D(ef, bc)) | |
532 | + | let ei = G(eh, b) | |
533 | + | let ej = if (dW) | |
534 | + | then dY | |
535 | + | else dZ | |
536 | + | let ek = toBigInt(ej) | |
537 | + | let el = toBigInt(valueOrErrorMessage(assetInfo(aZ), (("asset " + toBase58String(aZ)) + " doesn't exist")).quantity) | |
538 | + | let em = if ((el > f)) | |
536 | 539 | then true | |
537 | 540 | else aG("initial deposit requires all coins") | |
538 | - | if (( | |
541 | + | if ((em == em)) | |
539 | 542 | then { | |
540 | - | let | |
541 | - | let | |
542 | - | let | |
543 | + | let en = toBigInt(ee) | |
544 | + | let eo = max([0, toInt(((el * (sqrtBigInt((d + ((en * d) / ek)), 18, 18, DOWN) - d)) / d))]) | |
545 | + | let cX = if (dT) | |
543 | 546 | then nil | |
544 | - | else [IntegerEntry(S(), | |
545 | - | let | |
546 | - | let | |
547 | - | let | |
548 | - | let | |
549 | - | then $Tuple2( | |
550 | - | else $Tuple2( | |
551 | - | let | |
552 | - | let | |
553 | - | let | |
554 | - | fraction(( | |
547 | + | else [IntegerEntry(S(), ei), IntegerEntry(T(height, lastBlock.timestamp), ei), StringEntry(W(toString(value(X)), toBase58String(value(Y))), bh(eb, ec, eo, ei, 0, 0, height, lastBlock.timestamp, 0, 0))] | |
548 | + | let ep = by(D(dZ, bd), D(dY, bc)) | |
549 | + | let eq = G(ep, b) | |
550 | + | let er = { | |
551 | + | let es = if (dW) | |
552 | + | then $Tuple2(eb, dY) | |
553 | + | else $Tuple2(ec, dZ) | |
554 | + | let dJ = es._1 | |
555 | + | let et = es._2 | |
556 | + | let eu = toInt(fraction(el, toBigInt((dJ / 2)), toBigInt(et))) | |
557 | + | fraction((eo - eu), b, eu) | |
555 | 558 | } | |
556 | - | $Tuple5( | |
559 | + | $Tuple5(eo, cX, dP, er, dW) | |
557 | 560 | } | |
558 | 561 | else throw("Strict value is not equal to itself.") | |
559 | 562 | } | |
560 | 563 | ||
561 | 564 | ||
562 | - | func | |
563 | - | let | |
564 | - | let | |
565 | + | func ev (ew,ee,dS,X,Y) = { | |
566 | + | let dT = (Y == unit) | |
567 | + | let ex = [if ((dS == aZ)) | |
565 | 568 | then true | |
566 | 569 | else aG("invalid lp asset")] | |
567 | - | if (( | |
570 | + | if ((ex == ex)) | |
568 | 571 | then { | |
569 | - | let | |
572 | + | let ey = if ((ew == ba)) | |
570 | 573 | then true | |
571 | - | else if (( | |
574 | + | else if ((ew == bb)) | |
572 | 575 | then false | |
573 | 576 | else aG("invalid asset") | |
574 | - | let | |
577 | + | let ez = if (ey) | |
575 | 578 | then toBigInt(bw(aS(ba))) | |
576 | 579 | else toBigInt(bw(aS(bb))) | |
577 | - | let ey = bw(aS(ba)) | |
578 | - | let ez = bw(aS(bb)) | |
579 | - | let eA = if (ew) | |
580 | - | then ey | |
581 | - | else ez | |
582 | - | let eB = toBigInt(eA) | |
583 | - | let ej = toBigInt(valueOrErrorMessage(assetInfo(aZ), (("asset " + toBase58String(aZ)) + " doesn't exist")).quantity) | |
584 | - | let eC = toBigInt(ec) | |
585 | - | let eD = max([0, toInt(((ex * (d - pow((d - ((eC * d) / ej)), 18, h, 0, 18, DOWN))) / d))]) | |
586 | - | let eE = dM(eD) | |
587 | - | let eF = eE._1 | |
588 | - | let dN = eE._2 | |
589 | - | let eG = if (ew) | |
590 | - | then $Tuple4(eF, 0, (ey - eD), ez) | |
591 | - | else $Tuple4(0, eF, ey, (ez - eD)) | |
580 | + | let eA = bw(aS(ba)) | |
581 | + | let eB = bw(aS(bb)) | |
582 | + | let eC = if (ey) | |
583 | + | then eA | |
584 | + | else eB | |
585 | + | let eD = toBigInt(eC) | |
586 | + | let el = toBigInt(valueOrErrorMessage(assetInfo(aZ), (("asset " + toBase58String(aZ)) + " doesn't exist")).quantity) | |
587 | + | let eE = toBigInt(ee) | |
588 | + | let eF = max([0, toInt(((ez * (d - pow((d - ((eE * d) / el)), 18, h, 0, 18, DOWN))) / d))]) | |
589 | + | let eG = dO(eF) | |
592 | 590 | let eH = eG._1 | |
593 | - | let eI = eG._2 | |
594 | - | let eJ = eG._3 | |
595 | - | let eK = eG._4 | |
596 | - | let ef = by(D(eK, bd), D(eJ, bc)) | |
597 | - | let eg = G(ef, b) | |
598 | - | let cV = if (dR) | |
591 | + | let dP = eG._2 | |
592 | + | let eI = if (ey) | |
593 | + | then $Tuple4(eH, 0, (eA - eF), eB) | |
594 | + | else $Tuple4(0, eH, eA, (eB - eF)) | |
595 | + | let eJ = eI._1 | |
596 | + | let eK = eI._2 | |
597 | + | let eL = eI._3 | |
598 | + | let eM = eI._4 | |
599 | + | let eh = by(D(eM, bd), D(eL, bc)) | |
600 | + | let ei = G(eh, b) | |
601 | + | let cX = if (dT) | |
599 | 602 | then nil | |
600 | - | else [StringEntry(Z(toString(value(X)), toBase58String(value(Y))), bs( | |
601 | - | let | |
602 | - | let | |
603 | - | let | |
604 | - | let | |
605 | - | fraction(( | |
603 | + | else [StringEntry(Z(toString(value(X)), toBase58String(value(Y))), bs(eJ, eK, ee, ei, height, lastBlock.timestamp)), IntegerEntry(S(), ei), IntegerEntry(T(height, lastBlock.timestamp), ei)] | |
604 | + | let ep = by(D(eB, bd), D(eA, bc)) | |
605 | + | let eq = G(ep, b) | |
606 | + | let er = { | |
607 | + | let eN = (toInt(fraction(ez, eE, el)) * 2) | |
608 | + | fraction((eH - eN), b, eN) | |
606 | 609 | } | |
607 | - | $Tuple5( | |
610 | + | $Tuple5(eH, cX, dP, er, ey) | |
608 | 611 | } | |
609 | 612 | else throw("Strict value is not equal to itself.") | |
610 | 613 | } | |
611 | 614 | ||
612 | 615 | ||
613 | - | func | |
614 | - | let | |
615 | - | if ($isInstanceOf( | |
616 | + | func eO () = { | |
617 | + | let dM = getString(Q()) | |
618 | + | if ($isInstanceOf(dM, "String")) | |
616 | 619 | then { | |
617 | - | let | |
618 | - | fromBase58String( | |
620 | + | let eP = dM | |
621 | + | fromBase58String(eP) | |
619 | 622 | } | |
620 | - | else if ($isInstanceOf( | |
623 | + | else if ($isInstanceOf(dM, "Unit")) | |
621 | 624 | then unit | |
622 | 625 | else throw("Match error") | |
623 | 626 | } | |
624 | 627 | ||
625 | 628 | ||
626 | - | func | |
627 | - | let | |
628 | - | if ($isInstanceOf( | |
629 | + | func eQ () = { | |
630 | + | let dM = getString(R()) | |
631 | + | if ($isInstanceOf(dM, "String")) | |
629 | 632 | then { | |
630 | - | let | |
631 | - | fromBase58String( | |
633 | + | let eP = dM | |
634 | + | fromBase58String(eP) | |
632 | 635 | } | |
633 | - | else if ($isInstanceOf( | |
636 | + | else if ($isInstanceOf(dM, "Unit")) | |
634 | 637 | then unit | |
635 | 638 | else throw("Match error") | |
636 | 639 | } | |
637 | 640 | ||
638 | 641 | ||
639 | - | func | |
640 | - | let | |
641 | - | if ($isInstanceOf( | |
642 | + | func eR (dB) = { | |
643 | + | let dM = eO() | |
644 | + | if ($isInstanceOf(dM, "ByteVector")) | |
642 | 645 | then { | |
643 | - | let | |
644 | - | ( | |
646 | + | let eS = dM | |
647 | + | (dB.callerPublicKey == eS) | |
645 | 648 | } | |
646 | - | else if ($isInstanceOf( | |
647 | - | then ( | |
649 | + | else if ($isInstanceOf(dM, "Unit")) | |
650 | + | then (dB.caller == this) | |
648 | 651 | else throw("Match error") | |
649 | 652 | } | |
650 | 653 | ||
651 | 654 | ||
652 | - | func | |
653 | - | let | |
654 | - | let | |
655 | - | if ($isInstanceOf( | |
655 | + | func eT (dB) = { | |
656 | + | let eU = throw("Permission denied") | |
657 | + | let dM = eO() | |
658 | + | if ($isInstanceOf(dM, "ByteVector")) | |
656 | 659 | then { | |
657 | - | let | |
658 | - | if (( | |
660 | + | let eS = dM | |
661 | + | if ((dB.callerPublicKey == eS)) | |
659 | 662 | then true | |
660 | - | else | |
663 | + | else eU | |
661 | 664 | } | |
662 | - | else if ($isInstanceOf( | |
663 | - | then if (( | |
665 | + | else if ($isInstanceOf(dM, "Unit")) | |
666 | + | then if ((dB.caller == this)) | |
664 | 667 | then true | |
665 | - | else | |
668 | + | else eU | |
666 | 669 | else throw("Match error") | |
667 | 670 | } | |
668 | 671 | ||
669 | 672 | ||
670 | - | @Callable( | |
671 | - | func setManager ( | |
672 | - | let | |
673 | - | if (( | |
673 | + | @Callable(dB) | |
674 | + | func setManager (eV) = { | |
675 | + | let eW = eT(dB) | |
676 | + | if ((eW == eW)) | |
674 | 677 | then { | |
675 | - | let | |
676 | - | if (( | |
677 | - | then [StringEntry(R(), | |
678 | + | let eX = fromBase58String(eV) | |
679 | + | if ((eX == eX)) | |
680 | + | then [StringEntry(R(), eV)] | |
678 | 681 | else throw("Strict value is not equal to itself.") | |
679 | 682 | } | |
680 | 683 | else throw("Strict value is not equal to itself.") | |
682 | 685 | ||
683 | 686 | ||
684 | 687 | ||
685 | - | @Callable( | |
688 | + | @Callable(dB) | |
686 | 689 | func confirmManager () = { | |
687 | - | let | |
688 | - | let | |
690 | + | let eY = eQ() | |
691 | + | let eZ = if (isDefined(eY)) | |
689 | 692 | then true | |
690 | 693 | else throw("No pending manager") | |
691 | - | if (( | |
694 | + | if ((eZ == eZ)) | |
692 | 695 | then { | |
693 | - | let | |
696 | + | let fa = if ((dB.callerPublicKey == value(eY))) | |
694 | 697 | then true | |
695 | 698 | else throw("You are not pending manager") | |
696 | - | if (( | |
697 | - | then [StringEntry(Q(), toBase58String(value( | |
699 | + | if ((fa == fa)) | |
700 | + | then [StringEntry(Q(), toBase58String(value(eY))), DeleteEntry(R())] | |
698 | 701 | else throw("Strict value is not equal to itself.") | |
699 | 702 | } | |
700 | 703 | else throw("Strict value is not equal to itself.") | |
702 | 705 | ||
703 | 706 | ||
704 | 707 | ||
705 | - | @Callable( | |
706 | - | func put ( | |
708 | + | @Callable(dB) | |
709 | + | func put (cs,fb) = if ((0 > cs)) | |
707 | 710 | then throw("Invalid slippageTolerance passed") | |
708 | 711 | else { | |
709 | - | let | |
710 | - | let | |
711 | - | let | |
712 | - | let | |
713 | - | let | |
714 | - | let | |
715 | - | let | |
716 | - | let | |
717 | - | let | |
718 | - | let | |
719 | - | let | |
720 | - | if (( | |
712 | + | let dH = dE(dB, cs, true) | |
713 | + | let cU = dH._2 | |
714 | + | let bZ = dH._7 | |
715 | + | let cq = dH._9 | |
716 | + | let cV = dH._10 | |
717 | + | let cW = dH._11 | |
718 | + | let fc = dH._12 | |
719 | + | let fd = dH._13 | |
720 | + | let dF = toBigInt(value(dB.payments[0]).amount) | |
721 | + | let dG = toBigInt(value(dB.payments[1]).amount) | |
722 | + | let dj = dc(dF, dG, toBigInt(0)) | |
723 | + | if ((dj == dj)) | |
721 | 724 | then { | |
722 | - | let | |
723 | - | if (( | |
725 | + | let dK = invoke(aJ, "emit", [cU], nil) | |
726 | + | if ((dK == dK)) | |
724 | 727 | then { | |
725 | - | let | |
726 | - | let | |
727 | - | if ($isInstanceOf( | |
728 | + | let dL = { | |
729 | + | let dM = dK | |
730 | + | if ($isInstanceOf(dM, "Address")) | |
728 | 731 | then { | |
729 | - | let | |
730 | - | invoke( | |
732 | + | let dN = dM | |
733 | + | invoke(dN, "emit", [cU], nil) | |
731 | 734 | } | |
732 | 735 | else unit | |
733 | 736 | } | |
734 | - | if (( | |
737 | + | if ((dL == dL)) | |
735 | 738 | then { | |
736 | - | let | |
737 | - | then invoke(bg, "put", nil, [AttachedPayment( | |
739 | + | let fe = if ((cV > 0)) | |
740 | + | then invoke(bg, "put", nil, [AttachedPayment(fc, cV)]) | |
738 | 741 | else nil | |
739 | - | if (( | |
742 | + | if ((fe == fe)) | |
740 | 743 | then { | |
741 | - | let | |
742 | - | then invoke(bg, "put", nil, [AttachedPayment( | |
744 | + | let ff = if ((cW > 0)) | |
745 | + | then invoke(bg, "put", nil, [AttachedPayment(fd, cW)]) | |
743 | 746 | else nil | |
744 | - | if (( | |
747 | + | if ((ff == ff)) | |
745 | 748 | then { | |
746 | - | let | |
749 | + | let fg = if (fb) | |
747 | 750 | then { | |
748 | - | let | |
749 | - | if (( | |
751 | + | let fh = invoke(bf, "stake", nil, [AttachedPayment(bZ, cU)]) | |
752 | + | if ((fh == fh)) | |
750 | 753 | then nil | |
751 | 754 | else throw("Strict value is not equal to itself.") | |
752 | 755 | } | |
753 | - | else [ScriptTransfer( | |
754 | - | let | |
755 | - | if (( | |
756 | + | else [ScriptTransfer(dB.caller, cU, bZ)] | |
757 | + | let fi = dk(0, 0, 0) | |
758 | + | if ((fi == fi)) | |
756 | 759 | then { | |
757 | - | let | |
758 | - | let | |
759 | - | let | |
760 | - | if (( | |
761 | - | then (( | |
760 | + | let db = fi._2 | |
761 | + | let fj = fi._1 | |
762 | + | let fk = do(dj, db) | |
763 | + | if ((fk == fk)) | |
764 | + | then ((cq ++ fg) ++ fj) | |
762 | 765 | else throw("Strict value is not equal to itself.") | |
763 | 766 | } | |
764 | 767 | else throw("Strict value is not equal to itself.") | |
776 | 779 | ||
777 | 780 | ||
778 | 781 | ||
779 | - | @Callable( | |
780 | - | func putForFree ( | |
782 | + | @Callable(dB) | |
783 | + | func putForFree (fl) = if ((0 > fl)) | |
781 | 784 | then throw("Invalid value passed") | |
782 | 785 | else { | |
783 | - | let | |
784 | - | let | |
785 | - | let | |
786 | - | let | |
787 | - | let | |
788 | - | if (( | |
786 | + | let dH = dE(dB, fl, false) | |
787 | + | let cq = dH._9 | |
788 | + | let dF = toBigInt(value(dB.payments[0]).amount) | |
789 | + | let dG = toBigInt(value(dB.payments[1]).amount) | |
790 | + | let dj = dc(dF, dG, toBigInt(0)) | |
791 | + | if ((dj == dj)) | |
789 | 792 | then { | |
790 | - | let | |
791 | - | let | |
792 | - | let | |
793 | - | let | |
794 | - | if (( | |
795 | - | then ( | |
793 | + | let fm = dk(0, 0, 0) | |
794 | + | let fj = fm._1 | |
795 | + | let db = fm._2 | |
796 | + | let fk = do(dj, db) | |
797 | + | if ((fk == fk)) | |
798 | + | then (cq ++ fj) | |
796 | 799 | else throw("Strict value is not equal to itself.") | |
797 | 800 | } | |
798 | 801 | else throw("Strict value is not equal to itself.") | |
800 | 803 | ||
801 | 804 | ||
802 | 805 | ||
803 | - | @Callable( | |
804 | - | func putOneTkn ( | |
805 | - | let | |
806 | - | let | |
807 | - | if ($isInstanceOf( | |
808 | - | then | |
809 | - | else throw(($getType( | |
806 | + | @Callable(dB) | |
807 | + | func putOneTkn (fn,fo) = { | |
808 | + | let fp = { | |
809 | + | let fq = invoke(aJ, "isPoolOneTokenOperationsDisabledREADONLY", [toString(this)], nil) | |
810 | + | if ($isInstanceOf(fq, "Boolean")) | |
811 | + | then fq | |
812 | + | else throw(($getType(fq) + " couldn't be cast to Boolean")) | |
810 | 813 | } | |
811 | - | let | |
814 | + | let fr = if (if (if (aL()) | |
812 | 815 | then true | |
813 | 816 | else (aY == l)) | |
814 | 817 | then true | |
815 | 818 | else (aY == n)) | |
816 | 819 | then true | |
817 | - | else | |
818 | - | let | |
820 | + | else fp | |
821 | + | let ex = [if (if (!(fr)) | |
819 | 822 | then true | |
820 | - | else | |
823 | + | else eR(dB)) | |
821 | 824 | then true | |
822 | - | else aG("put operation is blocked by admin"), if ((size( | |
825 | + | else aG("put operation is blocked by admin"), if ((size(dB.payments) == 1)) | |
823 | 826 | then true | |
824 | 827 | else aG("exactly 1 payment are expected")] | |
825 | - | if (( | |
828 | + | if ((ex == ex)) | |
826 | 829 | then { | |
827 | - | let | |
828 | - | let | |
829 | - | let | |
830 | - | let | |
831 | - | then | |
832 | - | else if (( | |
833 | - | then | |
830 | + | let fs = dB.payments[0] | |
831 | + | let dS = fs.assetId | |
832 | + | let dR = fs.amount | |
833 | + | let dj = if ((dS == ba)) | |
834 | + | then dc(toBigInt(dR), toBigInt(0), toBigInt(0)) | |
835 | + | else if ((dS == bb)) | |
836 | + | then dc(toBigInt(0), toBigInt(dR), toBigInt(0)) | |
834 | 837 | else aG("payment asset is not supported") | |
835 | - | let X = | |
836 | - | let Y = | |
837 | - | let | |
838 | - | if (( | |
838 | + | let X = dB.caller | |
839 | + | let Y = dB.transactionId | |
840 | + | let ft = dQ(dR, dS, X, Y) | |
841 | + | if ((ft == ft)) | |
839 | 842 | then { | |
840 | - | let | |
841 | - | let | |
842 | - | let | |
843 | - | let | |
844 | - | let | |
845 | - | let | |
846 | - | then ( | |
843 | + | let dW = ft._5 | |
844 | + | let fu = ft._4 | |
845 | + | let dP = ft._3 | |
846 | + | let cX = ft._2 | |
847 | + | let fv = ft._1 | |
848 | + | let fw = if (if ((fn > 0)) | |
849 | + | then (fn > fv) | |
847 | 850 | else false) | |
848 | - | then aG(makeString(["amount to receive is less than ", toString( | |
849 | - | else | |
850 | - | let | |
851 | - | if (( | |
851 | + | then aG(makeString(["amount to receive is less than ", toString(fn)], "")) | |
852 | + | else fv | |
853 | + | let dK = dI(fw) | |
854 | + | if ((dK == dK)) | |
852 | 855 | then { | |
853 | - | let | |
856 | + | let fg = if (fo) | |
854 | 857 | then { | |
855 | - | let | |
856 | - | if (( | |
858 | + | let fx = invoke(bf, "stake", nil, [AttachedPayment(aZ, fw)]) | |
859 | + | if ((fx == fx)) | |
857 | 860 | then nil | |
858 | 861 | else throw("Strict value is not equal to itself.") | |
859 | 862 | } | |
860 | - | else [ScriptTransfer( | |
861 | - | let | |
862 | - | then [ScriptTransfer(aK, | |
863 | + | else [ScriptTransfer(dB.caller, fw, aZ)] | |
864 | + | let fy = if ((dP > 0)) | |
865 | + | then [ScriptTransfer(aK, dP, dS)] | |
863 | 866 | else nil | |
864 | - | let | |
867 | + | let fz = if ((this == aK)) | |
865 | 868 | then $Tuple2(0, 0) | |
866 | - | else if ( | |
867 | - | then $Tuple2(-( | |
868 | - | else $Tuple2(0, -( | |
869 | - | let | |
870 | - | let | |
871 | - | let | |
872 | - | let | |
873 | - | let | |
874 | - | let | |
875 | - | let | |
876 | - | if (( | |
877 | - | then $Tuple2(((( | |
869 | + | else if (dW) | |
870 | + | then $Tuple2(-(dP), 0) | |
871 | + | else $Tuple2(0, -(dP)) | |
872 | + | let dl = fz._1 | |
873 | + | let dm = fz._2 | |
874 | + | let fA = dk(dl, dm, 0) | |
875 | + | let fj = fA._1 | |
876 | + | let db = fA._2 | |
877 | + | let dv = value(getString(af)) | |
878 | + | let fk = do(dj, db) | |
879 | + | if ((fk == fk)) | |
880 | + | then $Tuple2((((cX ++ fg) ++ fy) ++ fj), fw) | |
878 | 881 | else throw("Strict value is not equal to itself.") | |
879 | 882 | } | |
880 | 883 | else throw("Strict value is not equal to itself.") | |
886 | 889 | ||
887 | 890 | ||
888 | 891 | ||
889 | - | @Callable( | |
890 | - | func putOneTknREADONLY ( | |
891 | - | let | |
892 | - | let | |
893 | - | let | |
894 | - | let | |
895 | - | let | |
896 | - | let | |
897 | - | $Tuple2(nil, $Tuple3( | |
892 | + | @Callable(dB) | |
893 | + | func putOneTknREADONLY (dS,dR) = { | |
894 | + | let fB = dQ(dR, aQ(dS), unit, unit) | |
895 | + | let fv = fB._1 | |
896 | + | let cX = fB._2 | |
897 | + | let dP = fB._3 | |
898 | + | let fu = fB._4 | |
899 | + | let dW = fB._5 | |
900 | + | $Tuple2(nil, $Tuple3(fv, dP, fu)) | |
898 | 901 | } | |
899 | 902 | ||
900 | 903 | ||
901 | 904 | ||
902 | - | @Callable( | |
903 | - | func getOneTkn ( | |
904 | - | let | |
905 | - | let | |
906 | - | if ($isInstanceOf( | |
907 | - | then | |
908 | - | else throw(($getType( | |
905 | + | @Callable(dB) | |
906 | + | func getOneTkn (fC,fn) = { | |
907 | + | let fp = { | |
908 | + | let fq = invoke(aJ, "isPoolOneTokenOperationsDisabledREADONLY", [toString(this)], nil) | |
909 | + | if ($isInstanceOf(fq, "Boolean")) | |
910 | + | then fq | |
911 | + | else throw(($getType(fq) + " couldn't be cast to Boolean")) | |
909 | 912 | } | |
910 | - | let | |
913 | + | let fD = if (if (aL()) | |
911 | 914 | then true | |
912 | 915 | else (aY == n)) | |
913 | 916 | then true | |
914 | - | else | |
915 | - | let | |
917 | + | else fp | |
918 | + | let ex = [if (if (!(fD)) | |
916 | 919 | then true | |
917 | - | else | |
920 | + | else eR(dB)) | |
918 | 921 | then true | |
919 | - | else aG("get operation is blocked by admin"), if ((size( | |
922 | + | else aG("get operation is blocked by admin"), if ((size(dB.payments) == 1)) | |
920 | 923 | then true | |
921 | 924 | else aG("exactly 1 payment are expected")] | |
922 | - | if (( | |
925 | + | if ((ex == ex)) | |
923 | 926 | then { | |
924 | - | let | |
925 | - | let | |
926 | - | let | |
927 | - | let | |
928 | - | let | |
929 | - | let X = | |
930 | - | let Y = | |
931 | - | let | |
932 | - | if (( | |
927 | + | let ew = aQ(fC) | |
928 | + | let fs = dB.payments[0] | |
929 | + | let dS = fs.assetId | |
930 | + | let ee = fs.amount | |
931 | + | let dj = dc(toBigInt(0), toBigInt(0), toBigInt(ee)) | |
932 | + | let X = dB.caller | |
933 | + | let Y = dB.transactionId | |
934 | + | let fE = ev(ew, ee, dS, X, Y) | |
935 | + | if ((fE == fE)) | |
933 | 936 | then { | |
934 | - | let | |
935 | - | let | |
936 | - | let | |
937 | - | let | |
938 | - | let | |
939 | - | let | |
940 | - | then ( | |
937 | + | let ey = fE._5 | |
938 | + | let fu = fE._4 | |
939 | + | let dP = fE._3 | |
940 | + | let cX = fE._2 | |
941 | + | let fF = fE._1 | |
942 | + | let dJ = if (if ((fn > 0)) | |
943 | + | then (fn > fF) | |
941 | 944 | else false) | |
942 | - | then aG(makeString(["amount to receive is less than ", toString( | |
943 | - | else | |
944 | - | let | |
945 | - | if (( | |
945 | + | then aG(makeString(["amount to receive is less than ", toString(fn)], "")) | |
946 | + | else fF | |
947 | + | let fG = invoke(aJ, "burn", [ee], [AttachedPayment(dS, ee)]) | |
948 | + | if ((fG == fG)) | |
946 | 949 | then { | |
947 | - | let | |
948 | - | let | |
949 | - | then [ScriptTransfer(aK, | |
950 | + | let fH = [ScriptTransfer(X, dJ, ew)] | |
951 | + | let fy = if ((dP > 0)) | |
952 | + | then [ScriptTransfer(aK, dP, ew)] | |
950 | 953 | else nil | |
951 | - | let | |
952 | - | let | |
954 | + | let fI = { | |
955 | + | let fJ = if ((this == aK)) | |
953 | 956 | then 0 | |
954 | - | else | |
955 | - | if ( | |
956 | - | then $Tuple2(-(( | |
957 | - | else $Tuple2(0, -(( | |
957 | + | else dP | |
958 | + | if (ey) | |
959 | + | then $Tuple2(-((dJ + fJ)), 0) | |
960 | + | else $Tuple2(0, -((dJ + fJ))) | |
958 | 961 | } | |
959 | - | let | |
960 | - | let | |
961 | - | let | |
962 | - | let | |
963 | - | let | |
964 | - | let | |
965 | - | if (( | |
966 | - | then $Tuple2(((( | |
962 | + | let dl = fI._1 | |
963 | + | let dm = fI._2 | |
964 | + | let fK = dk(dl, dm, 0) | |
965 | + | let fj = fK._1 | |
966 | + | let db = fK._2 | |
967 | + | let fk = do(dj, db) | |
968 | + | if ((fk == fk)) | |
969 | + | then $Tuple2((((cX ++ fH) ++ fy) ++ fj), dJ) | |
967 | 970 | else throw("Strict value is not equal to itself.") | |
968 | 971 | } | |
969 | 972 | else throw("Strict value is not equal to itself.") | |
975 | 978 | ||
976 | 979 | ||
977 | 980 | ||
978 | - | @Callable( | |
979 | - | func getOneTknREADONLY ( | |
980 | - | let | |
981 | - | let | |
982 | - | let | |
983 | - | let | |
984 | - | let | |
985 | - | let | |
986 | - | $Tuple2(nil, $Tuple3( | |
981 | + | @Callable(dB) | |
982 | + | func getOneTknREADONLY (ew,ee) = { | |
983 | + | let fL = ev(aQ(ew), ee, aZ, unit, unit) | |
984 | + | let fF = fL._1 | |
985 | + | let cX = fL._2 | |
986 | + | let dP = fL._3 | |
987 | + | let fu = fL._4 | |
988 | + | let ey = fL._5 | |
989 | + | $Tuple2(nil, $Tuple3(fF, dP, fu)) | |
987 | 990 | } | |
988 | 991 | ||
989 | 992 | ||
990 | 993 | ||
991 | - | @Callable( | |
992 | - | func unstakeAndGetOneTkn ( | |
993 | - | let | |
994 | - | let | |
995 | - | if ($isInstanceOf( | |
996 | - | then | |
997 | - | else throw(($getType( | |
994 | + | @Callable(dB) | |
995 | + | func unstakeAndGetOneTkn (fM,fC,fn) = { | |
996 | + | let fp = { | |
997 | + | let fq = invoke(aJ, "isPoolOneTokenOperationsDisabledREADONLY", [toString(this)], nil) | |
998 | + | if ($isInstanceOf(fq, "Boolean")) | |
999 | + | then fq | |
1000 | + | else throw(($getType(fq) + " couldn't be cast to Boolean")) | |
998 | 1001 | } | |
999 | - | let | |
1002 | + | let fD = if (if (aL()) | |
1000 | 1003 | then true | |
1001 | 1004 | else (aY == n)) | |
1002 | 1005 | then true | |
1003 | - | else | |
1004 | - | let | |
1006 | + | else fp | |
1007 | + | let ex = [if (if (!(fD)) | |
1005 | 1008 | then true | |
1006 | - | else | |
1009 | + | else eR(dB)) | |
1007 | 1010 | then true | |
1008 | - | else aG("get operation is blocked by admin"), if ((size( | |
1011 | + | else aG("get operation is blocked by admin"), if ((size(dB.payments) == 0)) | |
1009 | 1012 | then true | |
1010 | 1013 | else aG("no payments are expected")] | |
1011 | - | if (( | |
1014 | + | if ((ex == ex)) | |
1012 | 1015 | then { | |
1013 | - | let | |
1014 | - | let X = | |
1015 | - | let Y = | |
1016 | - | let | |
1017 | - | let | |
1018 | - | if (( | |
1016 | + | let ew = aQ(fC) | |
1017 | + | let X = dB.caller | |
1018 | + | let Y = dB.transactionId | |
1019 | + | let dj = dc(toBigInt(0), toBigInt(0), toBigInt(0)) | |
1020 | + | let fN = invoke(bf, "unstake", [toBase58String(aZ), fM], nil) | |
1021 | + | if ((fN == fN)) | |
1019 | 1022 | then { | |
1020 | - | let | |
1021 | - | if (( | |
1023 | + | let fO = ev(ew, fM, aZ, X, Y) | |
1024 | + | if ((fO == fO)) | |
1022 | 1025 | then { | |
1023 | - | let | |
1024 | - | let | |
1025 | - | let | |
1026 | - | let | |
1027 | - | let | |
1028 | - | let | |
1029 | - | then ( | |
1026 | + | let ey = fO._5 | |
1027 | + | let fu = fO._4 | |
1028 | + | let dP = fO._3 | |
1029 | + | let cX = fO._2 | |
1030 | + | let fF = fO._1 | |
1031 | + | let dJ = if (if ((fn > 0)) | |
1032 | + | then (fn > fF) | |
1030 | 1033 | else false) | |
1031 | - | then aG(makeString(["amount to receive is less than ", toString( | |
1032 | - | else | |
1033 | - | let | |
1034 | - | if (( | |
1034 | + | then aG(makeString(["amount to receive is less than ", toString(fn)], "")) | |
1035 | + | else fF | |
1036 | + | let fG = invoke(aJ, "burn", [fM], [AttachedPayment(aZ, fM)]) | |
1037 | + | if ((fG == fG)) | |
1035 | 1038 | then { | |
1036 | - | let | |
1037 | - | let | |
1038 | - | then [ScriptTransfer(aK, | |
1039 | + | let fH = [ScriptTransfer(dB.caller, dJ, ew)] | |
1040 | + | let fy = if ((dP > 0)) | |
1041 | + | then [ScriptTransfer(aK, dP, ew)] | |
1039 | 1042 | else nil | |
1040 | - | let | |
1041 | - | let | |
1043 | + | let fP = { | |
1044 | + | let fJ = if ((this == aK)) | |
1042 | 1045 | then 0 | |
1043 | - | else | |
1044 | - | if ( | |
1045 | - | then $Tuple2(-(( | |
1046 | - | else $Tuple2(0, -(( | |
1046 | + | else dP | |
1047 | + | if (ey) | |
1048 | + | then $Tuple2(-((dJ + fJ)), 0) | |
1049 | + | else $Tuple2(0, -((dJ + fJ))) | |
1047 | 1050 | } | |
1048 | - | let | |
1049 | - | let | |
1050 | - | let | |
1051 | - | let | |
1052 | - | let | |
1053 | - | let | |
1054 | - | if (( | |
1055 | - | then $Tuple2(((( | |
1051 | + | let dl = fP._1 | |
1052 | + | let dm = fP._2 | |
1053 | + | let fQ = dk(dl, dm, 0) | |
1054 | + | let fj = fQ._1 | |
1055 | + | let db = fQ._2 | |
1056 | + | let fk = do(dj, db) | |
1057 | + | if ((fk == fk)) | |
1058 | + | then $Tuple2((((cX ++ fH) ++ fy) ++ fj), dJ) | |
1056 | 1059 | else throw("Strict value is not equal to itself.") | |
1057 | 1060 | } | |
1058 | 1061 | else throw("Strict value is not equal to itself.") | |
1066 | 1069 | ||
1067 | 1070 | ||
1068 | 1071 | ||
1069 | - | @Callable( | |
1072 | + | @Callable(dB) | |
1070 | 1073 | func get () = { | |
1071 | - | let | |
1072 | - | let | |
1073 | - | let | |
1074 | - | let | |
1075 | - | let | |
1076 | - | let | |
1077 | - | let | |
1078 | - | let | |
1079 | - | if (( | |
1074 | + | let cI = dA(dB) | |
1075 | + | let fR = cI._1 | |
1076 | + | let cp = cI._2 | |
1077 | + | let dD = cI._3 | |
1078 | + | let bX = cI._4 | |
1079 | + | let cq = cI._5 | |
1080 | + | let dj = dc(toBigInt(0), toBigInt(0), toBigInt(dD)) | |
1081 | + | let fS = invoke(aJ, "burn", [dD], [AttachedPayment(bX, dD)]) | |
1082 | + | if ((fS == fS)) | |
1080 | 1083 | then { | |
1081 | - | let | |
1082 | - | let | |
1083 | - | let | |
1084 | - | let | |
1085 | - | if (( | |
1086 | - | then ( | |
1084 | + | let fT = dk(-(fR), -(cp), 0) | |
1085 | + | let fj = fT._1 | |
1086 | + | let db = fT._2 | |
1087 | + | let fk = do(dj, db) | |
1088 | + | if ((fk == fk)) | |
1089 | + | then (cq ++ fj) | |
1087 | 1090 | else throw("Strict value is not equal to itself.") | |
1088 | 1091 | } | |
1089 | 1092 | else throw("Strict value is not equal to itself.") | |
1091 | 1094 | ||
1092 | 1095 | ||
1093 | 1096 | ||
1094 | - | @Callable( | |
1095 | - | func getNoLess ( | |
1096 | - | let | |
1097 | - | let | |
1098 | - | let | |
1099 | - | let | |
1100 | - | let | |
1101 | - | let | |
1102 | - | if (( | |
1103 | - | then throw(((("noLessThenAmtAsset failed: " + toString( | |
1104 | - | else if (( | |
1105 | - | then throw(((("noLessThenPriceAsset failed: " + toString( | |
1097 | + | @Callable(dB) | |
1098 | + | func getNoLess (fU,fV) = { | |
1099 | + | let cI = dA(dB) | |
1100 | + | let co = cI._1 | |
1101 | + | let cp = cI._2 | |
1102 | + | let dD = cI._3 | |
1103 | + | let bX = cI._4 | |
1104 | + | let cq = cI._5 | |
1105 | + | if ((fU > co)) | |
1106 | + | then throw(((("noLessThenAmtAsset failed: " + toString(co)) + " < ") + toString(fU))) | |
1107 | + | else if ((fV > cp)) | |
1108 | + | then throw(((("noLessThenPriceAsset failed: " + toString(cp)) + " < ") + toString(fV))) | |
1106 | 1109 | else { | |
1107 | - | let | |
1108 | - | let | |
1109 | - | if (( | |
1110 | + | let dj = dc(toBigInt(0), toBigInt(0), toBigInt(dD)) | |
1111 | + | let fS = invoke(aJ, "burn", [dD], [AttachedPayment(bX, dD)]) | |
1112 | + | if ((fS == fS)) | |
1110 | 1113 | then { | |
1111 | - | let | |
1112 | - | let | |
1113 | - | let | |
1114 | - | let | |
1115 | - | if (( | |
1116 | - | then ( | |
1114 | + | let fW = dk(-(co), -(cp), 0) | |
1115 | + | let fj = fW._1 | |
1116 | + | let db = fW._2 | |
1117 | + | let fk = do(dj, db) | |
1118 | + | if ((fk == fk)) | |
1119 | + | then (cq ++ fj) | |
1117 | 1120 | else throw("Strict value is not equal to itself.") | |
1118 | 1121 | } | |
1119 | 1122 | else throw("Strict value is not equal to itself.") | |
1122 | 1125 | ||
1123 | 1126 | ||
1124 | 1127 | ||
1125 | - | @Callable( | |
1126 | - | func unstakeAndGet ( | |
1127 | - | let | |
1128 | + | @Callable(dB) | |
1129 | + | func unstakeAndGet (dJ) = { | |
1130 | + | let fX = if ((size(dB.payments) != 0)) | |
1128 | 1131 | then throw("No payments are expected") | |
1129 | 1132 | else true | |
1130 | - | if (( | |
1133 | + | if ((fX == fX)) | |
1131 | 1134 | then { | |
1132 | - | let | |
1133 | - | let | |
1134 | - | let | |
1135 | - | let | |
1136 | - | if (( | |
1135 | + | let bM = aN() | |
1136 | + | let bZ = fromBase58String(bM[q]) | |
1137 | + | let dj = dc(toBigInt(0), toBigInt(0), toBigInt(0)) | |
1138 | + | let fN = invoke(bf, "unstake", [toBase58String(bZ), dJ], nil) | |
1139 | + | if ((fN == fN)) | |
1137 | 1140 | then { | |
1138 | - | let | |
1139 | - | let | |
1140 | - | let | |
1141 | - | let | |
1142 | - | let | |
1143 | - | let | |
1141 | + | let cI = bV(toBase58String(dB.transactionId), toBase58String(bZ), dJ, dB.caller) | |
1142 | + | let co = cI._1 | |
1143 | + | let cp = cI._2 | |
1144 | + | let cc = parseIntValue(cI._9) | |
1145 | + | let cq = cI._10 | |
1146 | + | let fY = if (if (aL()) | |
1144 | 1147 | then true | |
1145 | - | else ( | |
1146 | - | then throw(("Get operation is blocked by admin. Status = " + toString( | |
1148 | + | else (cc == n)) | |
1149 | + | then throw(("Get operation is blocked by admin. Status = " + toString(cc))) | |
1147 | 1150 | else true | |
1148 | - | if (( | |
1151 | + | if ((fY == fY)) | |
1149 | 1152 | then { | |
1150 | - | let | |
1151 | - | if (( | |
1153 | + | let fS = invoke(aJ, "burn", [dJ], [AttachedPayment(bZ, dJ)]) | |
1154 | + | if ((fS == fS)) | |
1152 | 1155 | then { | |
1153 | - | let | |
1154 | - | let | |
1155 | - | let | |
1156 | - | let | |
1157 | - | if (( | |
1158 | - | then ( | |
1156 | + | let fZ = dk(-(co), -(cp), 0) | |
1157 | + | let fj = fZ._1 | |
1158 | + | let db = fZ._2 | |
1159 | + | let fk = do(dj, db) | |
1160 | + | if ((fk == fk)) | |
1161 | + | then (cq ++ fj) | |
1159 | 1162 | else throw("Strict value is not equal to itself.") | |
1160 | 1163 | } | |
1161 | 1164 | else throw("Strict value is not equal to itself.") | |
1169 | 1172 | ||
1170 | 1173 | ||
1171 | 1174 | ||
1172 | - | @Callable( | |
1173 | - | func unstakeAndGetNoLess ( | |
1174 | - | let | |
1175 | + | @Callable(dB) | |
1176 | + | func unstakeAndGetNoLess (fM,ga,fV) = { | |
1177 | + | let fD = if (aL()) | |
1175 | 1178 | then true | |
1176 | 1179 | else (aY == n) | |
1177 | - | let | |
1180 | + | let ex = [if (!(fD)) | |
1178 | 1181 | then true | |
1179 | - | else throw("get operation is blocked by admin"), if ((size( | |
1182 | + | else throw("get operation is blocked by admin"), if ((size(dB.payments) == 0)) | |
1180 | 1183 | then true | |
1181 | 1184 | else throw("no payments are expected")] | |
1182 | - | if (( | |
1185 | + | if ((ex == ex)) | |
1183 | 1186 | then { | |
1184 | - | let | |
1185 | - | let | |
1186 | - | if (( | |
1187 | + | let dj = dc(toBigInt(0), toBigInt(0), toBigInt(0)) | |
1188 | + | let fN = invoke(bf, "unstake", [toBase58String(aZ), fM], nil) | |
1189 | + | if ((fN == fN)) | |
1187 | 1190 | then { | |
1188 | - | let | |
1189 | - | let | |
1190 | - | let | |
1191 | - | let | |
1192 | - | let | |
1191 | + | let cI = bV(toBase58String(dB.transactionId), toBase58String(aZ), fM, dB.caller) | |
1192 | + | let co = cI._1 | |
1193 | + | let cp = cI._2 | |
1194 | + | let cq = cI._10 | |
1195 | + | let gb = [if ((co >= ga)) | |
1193 | 1196 | then true | |
1194 | - | else throw(makeString(["amount asset amount to receive is less than ", toString( | |
1197 | + | else throw(makeString(["amount asset amount to receive is less than ", toString(ga)], "")), if ((cp >= fV)) | |
1195 | 1198 | then true | |
1196 | - | else throw(makeString(["price asset amount to receive is less than ", toString( | |
1197 | - | if (( | |
1199 | + | else throw(makeString(["price asset amount to receive is less than ", toString(fV)], ""))] | |
1200 | + | if ((gb == gb)) | |
1198 | 1201 | then { | |
1199 | - | let | |
1200 | - | if (( | |
1202 | + | let fS = invoke(aJ, "burn", [fM], [AttachedPayment(aZ, fM)]) | |
1203 | + | if ((fS == fS)) | |
1201 | 1204 | then { | |
1202 | - | let | |
1203 | - | let | |
1204 | - | let | |
1205 | - | let | |
1206 | - | if (( | |
1207 | - | then ( | |
1205 | + | let gc = dk(-(co), -(cp), 0) | |
1206 | + | let fj = gc._1 | |
1207 | + | let db = gc._2 | |
1208 | + | let fk = do(dj, db) | |
1209 | + | if ((fk == fk)) | |
1210 | + | then (cq ++ fj) | |
1208 | 1211 | else throw("Strict value is not equal to itself.") | |
1209 | 1212 | } | |
1210 | 1213 | else throw("Strict value is not equal to itself.") | |
1218 | 1221 | ||
1219 | 1222 | ||
1220 | 1223 | ||
1221 | - | @Callable( | |
1222 | - | func activate ( | |
1224 | + | @Callable(dB) | |
1225 | + | func activate (gd,ge) = if ((toString(dB.caller) != toString(aJ))) | |
1223 | 1226 | then throw("permissions denied") | |
1224 | - | else $Tuple2([StringEntry(aa(), | |
1227 | + | else $Tuple2([StringEntry(aa(), gd), StringEntry(ab(), ge)], "success") | |
1225 | 1228 | ||
1226 | 1229 | ||
1227 | 1230 | ||
1228 | - | @Callable( | |
1231 | + | @Callable(dB) | |
1229 | 1232 | func refreshKLp () = { | |
1230 | - | let | |
1231 | - | let | |
1233 | + | let gf = valueOrElse(getInteger(ag), 0) | |
1234 | + | let gg = if (((height - gf) >= aj)) | |
1232 | 1235 | then unit | |
1233 | 1236 | else aG(makeString([toString(aj), " blocks have not passed since the previous call"], "")) | |
1234 | - | if (( | |
1237 | + | if ((gg == gg)) | |
1235 | 1238 | then { | |
1236 | - | let | |
1237 | - | let | |
1238 | - | let | |
1239 | - | let | |
1240 | - | let | |
1241 | - | then | |
1239 | + | let dv = valueOrErrorMessage(parseBigInt(valueOrElse(getString(this, af), "0")), aI("invalid kLp")) | |
1240 | + | let gh = dk(0, 0, 0) | |
1241 | + | let gi = gh._1 | |
1242 | + | let db = gh._2 | |
1243 | + | let dn = if ((dv != db)) | |
1244 | + | then gi | |
1242 | 1245 | else aG("nothing to refresh") | |
1243 | - | $Tuple2( | |
1246 | + | $Tuple2(dn, toString(db)) | |
1244 | 1247 | } | |
1245 | 1248 | else throw("Strict value is not equal to itself.") | |
1246 | 1249 | } | |
1247 | 1250 | ||
1248 | 1251 | ||
1249 | 1252 | ||
1250 | - | @Callable( | |
1253 | + | @Callable(dB) | |
1251 | 1254 | func getPoolConfigWrapperREADONLY () = $Tuple2(nil, aN()) | |
1252 | 1255 | ||
1253 | 1256 | ||
1254 | 1257 | ||
1255 | - | @Callable( | |
1258 | + | @Callable(dB) | |
1256 | 1259 | func getAccBalanceWrapperREADONLY (bx) = $Tuple2(nil, bw(bx)) | |
1257 | 1260 | ||
1258 | 1261 | ||
1259 | 1262 | ||
1260 | - | @Callable( | |
1261 | - | func calcPricesWrapperREADONLY ( | |
1262 | - | let | |
1263 | - | $Tuple2(nil, [toString( | |
1263 | + | @Callable(dB) | |
1264 | + | func calcPricesWrapperREADONLY (bG,bH,bL) = { | |
1265 | + | let bU = bK(bG, bH, bL) | |
1266 | + | $Tuple2(nil, [toString(bU[0]), toString(bU[1]), toString(bU[2])]) | |
1264 | 1267 | } | |
1265 | 1268 | ||
1266 | 1269 | ||
1267 | 1270 | ||
1268 | - | @Callable( | |
1271 | + | @Callable(dB) | |
1269 | 1272 | func toX18WrapperREADONLY (E,F) = $Tuple2(nil, toString(D(E, F))) | |
1270 | 1273 | ||
1271 | 1274 | ||
1272 | 1275 | ||
1273 | - | @Callable( | |
1276 | + | @Callable(dB) | |
1274 | 1277 | func fromX18WrapperREADONLY (H,I) = $Tuple2(nil, G(parseBigIntValue(H), I)) | |
1275 | 1278 | ||
1276 | 1279 | ||
1277 | 1280 | ||
1278 | - | @Callable( | |
1281 | + | @Callable(dB) | |
1279 | 1282 | func calcPriceBigIntWrapperREADONLY (bz,bA) = $Tuple2(nil, toString(by(parseBigIntValue(bz), parseBigIntValue(bA)))) | |
1280 | 1283 | ||
1281 | 1284 | ||
1282 | 1285 | ||
1283 | - | @Callable( | |
1284 | - | func estimatePutOperationWrapperREADONLY ( | |
1286 | + | @Callable(dB) | |
1287 | + | func estimatePutOperationWrapperREADONLY (bW,cs,ct,cu,cv,cw,X,cx,cy) = $Tuple2(nil, cr(bW, cs, ct, cu, cv, cw, X, cx, cy)) | |
1285 | 1288 | ||
1286 | 1289 | ||
1287 | 1290 | ||
1288 | - | @Callable( | |
1289 | - | func estimateGetOperationWrapperREADONLY ( | |
1290 | - | let | |
1291 | - | $Tuple2(nil, $Tuple10( | |
1291 | + | @Callable(dB) | |
1292 | + | func estimateGetOperationWrapperREADONLY (bW,bX,bY,X) = { | |
1293 | + | let cI = bV(bW, bX, bY, addressFromStringValue(X)) | |
1294 | + | $Tuple2(nil, $Tuple10(cI._1, cI._2, cI._3, cI._4, cI._5, cI._6, cI._7, toString(cI._8), cI._9, cI._10)) | |
1292 | 1295 | } | |
1293 | 1296 | ||
1294 | 1297 | ||
1295 | 1298 | ||
1296 | - | @Callable( | |
1299 | + | @Callable(dB) | |
1297 | 1300 | func statsREADONLY () = { | |
1298 | - | let | |
1299 | - | let | |
1300 | - | let | |
1301 | - | let | |
1302 | - | let | |
1303 | - | let | |
1304 | - | let | |
1305 | - | let | |
1306 | - | let | |
1307 | - | let | |
1308 | - | let | |
1309 | - | let | |
1301 | + | let bM = aN() | |
1302 | + | let bZ = fromBase58String(bM[q]) | |
1303 | + | let gj = bM[r] | |
1304 | + | let gk = bM[s] | |
1305 | + | let cB = bM[v] | |
1306 | + | let cC = bM[w] | |
1307 | + | let bN = parseIntValue(bM[t]) | |
1308 | + | let bO = parseIntValue(bM[u]) | |
1309 | + | let gl = valueOrErrorMessage(assetInfo(bZ), (("Asset " + toBase58String(bZ)) + " doesn't exist")).quantity | |
1310 | + | let gm = bw(gj) | |
1311 | + | let gn = bw(gk) | |
1312 | + | let go = if ((gl == 0)) | |
1310 | 1313 | then [e, e, e] | |
1311 | - | else | |
1312 | - | let | |
1313 | - | let | |
1314 | - | let | |
1315 | - | let | |
1316 | - | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d", toString( | |
1314 | + | else bK(gm, gn, gl) | |
1315 | + | let cj = 0 | |
1316 | + | let gp = G(go[1], b) | |
1317 | + | let gq = G(go[2], b) | |
1318 | + | let gr = value(getInteger(aJ, au(toString(this)))) | |
1319 | + | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d", toString(gm), toString(gn), toString(gl), toString(cj), toString(gp), toString(gq), toString(gr)], j)) | |
1317 | 1320 | } | |
1318 | 1321 | ||
1319 | 1322 | ||
1320 | 1323 | ||
1321 | - | @Callable( | |
1322 | - | func evaluatePutByAmountAssetREADONLY ( | |
1323 | - | let | |
1324 | - | let | |
1325 | - | let | |
1326 | - | let | |
1327 | - | let | |
1328 | - | let | |
1329 | - | let | |
1330 | - | let | |
1331 | - | let | |
1332 | - | let | |
1333 | - | let | |
1334 | - | let | |
1335 | - | let | |
1336 | - | let | |
1337 | - | let | |
1324 | + | @Callable(dB) | |
1325 | + | func evaluatePutByAmountAssetREADONLY (ct) = { | |
1326 | + | let bM = aN() | |
1327 | + | let bZ = fromBase58String(bM[q]) | |
1328 | + | let cz = bM[r] | |
1329 | + | let ca = fromBase58String(cz) | |
1330 | + | let cA = bM[s] | |
1331 | + | let cb = fromBase58String(cA) | |
1332 | + | let bN = parseIntValue(bM[t]) | |
1333 | + | let bO = parseIntValue(bM[u]) | |
1334 | + | let cc = bM[p] | |
1335 | + | let gl = valueOrErrorMessage(assetInfo(bZ), (("Asset " + toBase58String(bZ)) + " doesn't exist")).quantity | |
1336 | + | let gm = bw(cz) | |
1337 | + | let gn = bw(cA) | |
1338 | + | let bI = D(gm, bN) | |
1339 | + | let bJ = D(gn, bO) | |
1340 | + | let ci = if ((gl == 0)) | |
1338 | 1341 | then e | |
1339 | - | else by( | |
1340 | - | let | |
1341 | - | let | |
1342 | - | let | |
1343 | - | let | |
1344 | - | let | |
1345 | - | let | |
1346 | - | let | |
1347 | - | let | |
1348 | - | let | |
1349 | - | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d%d", toString( | |
1342 | + | else by(bJ, bI) | |
1343 | + | let cF = D(ct, bN) | |
1344 | + | let cG = fraction(cF, ci, d) | |
1345 | + | let cv = G(cG, bO) | |
1346 | + | let dH = cr("", 500000, ct, ca, cv, cb, "", true, false) | |
1347 | + | let cQ = dH._1 | |
1348 | + | let gs = dH._3 | |
1349 | + | let ce = dH._4 | |
1350 | + | let cg = dH._5 | |
1351 | + | let cd = dH._6 | |
1352 | + | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d%d", toString(cQ), toString(G(ci, b)), toString(ce), toString(cg), toString(cd), cc, toString(ct), toString(cv)], j)) | |
1350 | 1353 | } | |
1351 | 1354 | ||
1352 | 1355 | ||
1353 | 1356 | ||
1354 | - | @Callable( | |
1355 | - | func evaluatePutByPriceAssetREADONLY ( | |
1356 | - | let | |
1357 | - | let | |
1358 | - | let | |
1359 | - | let | |
1360 | - | let | |
1361 | - | let | |
1362 | - | let | |
1363 | - | let | |
1364 | - | let | |
1365 | - | let | |
1366 | - | let | |
1367 | - | let | |
1368 | - | let | |
1369 | - | let | |
1370 | - | let | |
1357 | + | @Callable(dB) | |
1358 | + | func evaluatePutByPriceAssetREADONLY (cv) = { | |
1359 | + | let bM = aN() | |
1360 | + | let bZ = fromBase58String(bM[q]) | |
1361 | + | let cz = bM[r] | |
1362 | + | let ca = fromBase58String(cz) | |
1363 | + | let cA = bM[s] | |
1364 | + | let cb = fromBase58String(cA) | |
1365 | + | let bN = parseIntValue(bM[t]) | |
1366 | + | let bO = parseIntValue(bM[u]) | |
1367 | + | let cc = bM[p] | |
1368 | + | let gl = valueOrErrorMessage(assetInfo(bZ), (("Asset " + toBase58String(bZ)) + " doesn't exist")).quantity | |
1369 | + | let gt = bw(cz) | |
1370 | + | let gu = bw(cA) | |
1371 | + | let gv = D(gt, bN) | |
1372 | + | let gw = D(gu, bO) | |
1373 | + | let ci = if ((gl == 0)) | |
1371 | 1374 | then e | |
1372 | - | else by( | |
1373 | - | let | |
1374 | - | let | |
1375 | - | let | |
1376 | - | let | |
1377 | - | let | |
1378 | - | let | |
1379 | - | let | |
1380 | - | let | |
1381 | - | let | |
1382 | - | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d%d", toString( | |
1375 | + | else by(gw, gv) | |
1376 | + | let cG = D(cv, bO) | |
1377 | + | let cF = fraction(cG, d, ci) | |
1378 | + | let ct = G(cF, bN) | |
1379 | + | let dH = cr("", 500000, ct, ca, cv, cb, "", true, false) | |
1380 | + | let cQ = dH._1 | |
1381 | + | let gs = dH._3 | |
1382 | + | let ce = dH._4 | |
1383 | + | let cg = dH._5 | |
1384 | + | let cd = dH._6 | |
1385 | + | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d%d", toString(cQ), toString(G(ci, b)), toString(ce), toString(cg), toString(cd), cc, toString(ct), toString(cv)], j)) | |
1383 | 1386 | } | |
1384 | 1387 | ||
1385 | 1388 | ||
1386 | 1389 | ||
1387 | - | @Callable( | |
1388 | - | func evaluateGetREADONLY ( | |
1389 | - | let | |
1390 | - | let | |
1391 | - | let | |
1392 | - | let | |
1393 | - | let | |
1394 | - | let | |
1395 | - | let | |
1396 | - | let | |
1397 | - | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d", toString( | |
1390 | + | @Callable(dB) | |
1391 | + | func evaluateGetREADONLY (gx,gy) = { | |
1392 | + | let cI = bV("", gx, gy, this) | |
1393 | + | let co = cI._1 | |
1394 | + | let cp = cI._2 | |
1395 | + | let ce = cI._5 | |
1396 | + | let cg = cI._6 | |
1397 | + | let cd = cI._7 | |
1398 | + | let cj = cI._8 | |
1399 | + | let cc = parseIntValue(cI._9) | |
1400 | + | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d", toString(co), toString(cp), toString(ce), toString(cg), toString(cd), toString(cj), toString(cc)], j)) | |
1398 | 1401 | } | |
1399 | 1402 | ||
1400 | 1403 | ||
1401 | - | @Verifier( | |
1402 | - | func | |
1403 | - | let | |
1404 | - | let | |
1405 | - | if ($isInstanceOf( | |
1404 | + | @Verifier(gz) | |
1405 | + | func gA () = { | |
1406 | + | let gB = { | |
1407 | + | let dM = eO() | |
1408 | + | if ($isInstanceOf(dM, "ByteVector")) | |
1406 | 1409 | then { | |
1407 | - | let | |
1408 | - | | |
1410 | + | let eS = dM | |
1411 | + | eS | |
1409 | 1412 | } | |
1410 | - | else if ($isInstanceOf( | |
1411 | - | then | |
1413 | + | else if ($isInstanceOf(dM, "Unit")) | |
1414 | + | then gz.senderPublicKey | |
1412 | 1415 | else throw("Match error") | |
1413 | 1416 | } | |
1414 | - | let | |
1415 | - | if ($isInstanceOf( | |
1417 | + | let dM = gz | |
1418 | + | if ($isInstanceOf(dM, "Order")) | |
1416 | 1419 | then { | |
1417 | - | let | |
1418 | - | let | |
1419 | - | let az = | |
1420 | - | let aA = sigVerify( | |
1421 | - | let aB = sigVerify( | |
1420 | + | let dr = dM | |
1421 | + | let gC = aM() | |
1422 | + | let az = dq(dr) | |
1423 | + | let aA = sigVerify(dr.bodyBytes, dr.proofs[0], dr.senderPublicKey) | |
1424 | + | let aB = sigVerify(dr.bodyBytes, dr.proofs[1], gC) | |
1422 | 1425 | if (if (if (az) | |
1423 | 1426 | then aA | |
1424 | 1427 | else false) | |
1427 | 1430 | then true | |
1428 | 1431 | else ay(az, aA, aB) | |
1429 | 1432 | } | |
1430 | - | else if ($isInstanceOf( | |
1433 | + | else if ($isInstanceOf(dM, "SetScriptTransaction")) | |
1431 | 1434 | then { | |
1432 | - | let | |
1433 | - | let | |
1434 | - | let | |
1435 | - | let | |
1436 | - | if (if (( | |
1437 | - | then ( | |
1435 | + | let eP = dM | |
1436 | + | let gD = blake2b256(value(eP.script)) | |
1437 | + | let gE = fromBase64String(value(getString(aJ, aw()))) | |
1438 | + | let gF = scriptHash(this) | |
1439 | + | if (if ((gE == gD)) | |
1440 | + | then (gF != gD) | |
1438 | 1441 | else false) | |
1439 | 1442 | then true | |
1440 | - | else sigVerify( | |
1443 | + | else sigVerify(gz.bodyBytes, gz.proofs[0], gB) | |
1441 | 1444 | } | |
1442 | - | else sigVerify( | |
1445 | + | else sigVerify(gz.bodyBytes, gz.proofs[0], gB) | |
1443 | 1446 | } | |
1444 | 1447 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
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 = toBigInt(0) | |
15 | 15 | ||
16 | 16 | let g = toBigInt(1) | |
17 | 17 | ||
18 | 18 | let h = toBigInt(2) | |
19 | 19 | ||
20 | 20 | let i = "WAVES" | |
21 | 21 | ||
22 | 22 | let j = "__" | |
23 | 23 | ||
24 | 24 | let k = 1 | |
25 | 25 | ||
26 | 26 | let l = 2 | |
27 | 27 | ||
28 | 28 | let m = 3 | |
29 | 29 | ||
30 | 30 | let n = 4 | |
31 | 31 | ||
32 | 32 | let o = 1 | |
33 | 33 | ||
34 | 34 | let p = 2 | |
35 | 35 | ||
36 | 36 | let q = 3 | |
37 | 37 | ||
38 | 38 | let r = 4 | |
39 | 39 | ||
40 | 40 | let s = 5 | |
41 | 41 | ||
42 | 42 | let t = 6 | |
43 | 43 | ||
44 | 44 | let u = 7 | |
45 | 45 | ||
46 | 46 | let v = 8 | |
47 | 47 | ||
48 | 48 | let w = 9 | |
49 | 49 | ||
50 | 50 | let x = 10 | |
51 | 51 | ||
52 | 52 | let y = 1 | |
53 | 53 | ||
54 | 54 | let z = 2 | |
55 | 55 | ||
56 | 56 | let A = 3 | |
57 | 57 | ||
58 | 58 | let B = 1 | |
59 | 59 | ||
60 | 60 | let C = 7 | |
61 | 61 | ||
62 | 62 | func D (E,F) = fraction(toBigInt(E), d, toBigInt(F)) | |
63 | 63 | ||
64 | 64 | ||
65 | 65 | func G (H,I) = toInt(fraction(H, toBigInt(I), d)) | |
66 | 66 | ||
67 | 67 | ||
68 | 68 | func J (K,L,M) = fraction(K, L, M) | |
69 | 69 | ||
70 | 70 | ||
71 | 71 | func N (H) = if ((0 > H)) | |
72 | 72 | then -(H) | |
73 | 73 | else H | |
74 | 74 | ||
75 | 75 | ||
76 | 76 | func O (H) = if ((e > H)) | |
77 | 77 | then -(H) | |
78 | 78 | else H | |
79 | 79 | ||
80 | 80 | ||
81 | 81 | func P () = "%s__factoryContract" | |
82 | 82 | ||
83 | 83 | ||
84 | 84 | func Q () = "%s__managerPublicKey" | |
85 | 85 | ||
86 | 86 | ||
87 | 87 | func R () = "%s__pendingManagerPublicKey" | |
88 | 88 | ||
89 | 89 | ||
90 | 90 | func S () = "%s%s__price__last" | |
91 | 91 | ||
92 | 92 | ||
93 | 93 | func T (U,V) = makeString(["%s%s%d%d__price__history", toString(U), toString(V)], j) | |
94 | 94 | ||
95 | 95 | ||
96 | 96 | func W (X,Y) = ((("%s%s%s__P__" + X) + "__") + Y) | |
97 | 97 | ||
98 | 98 | ||
99 | 99 | func Z (X,Y) = ((("%s%s%s__G__" + X) + "__") + Y) | |
100 | 100 | ||
101 | 101 | ||
102 | 102 | func aa () = "%s__amountAsset" | |
103 | 103 | ||
104 | 104 | ||
105 | 105 | func ab () = "%s__priceAsset" | |
106 | 106 | ||
107 | 107 | ||
108 | 108 | let ac = "%s__fee" | |
109 | 109 | ||
110 | 110 | let ad = fraction(10, b, 10000) | |
111 | 111 | ||
112 | 112 | let ae = valueOrElse(getInteger(this, ac), ad) | |
113 | 113 | ||
114 | 114 | let af = makeString(["%s", "kLp"], j) | |
115 | 115 | ||
116 | 116 | let ag = makeString(["%s", "kLpRefreshedHeight"], j) | |
117 | 117 | ||
118 | 118 | let ah = makeString(["%s", "refreshKLpDelay"], j) | |
119 | 119 | ||
120 | 120 | let ai = 30 | |
121 | 121 | ||
122 | 122 | let aj = valueOrElse(getInteger(this, ah), ai) | |
123 | 123 | ||
124 | 124 | func ak () = "%s__factoryConfig" | |
125 | 125 | ||
126 | 126 | ||
127 | 127 | func al () = "%s%s__matcher__publicKey" | |
128 | 128 | ||
129 | 129 | ||
130 | 130 | func am (an) = (("%s%s%s__" + an) + "__mappings__poolContract2LpAsset") | |
131 | 131 | ||
132 | 132 | ||
133 | 133 | func ao (ap,aq) = (((("%d%d%s__" + ap) + "__") + aq) + "__config") | |
134 | 134 | ||
135 | 135 | ||
136 | 136 | func ar (as) = ("%s%s%s__mappings__baseAsset2internalId__" + as) | |
137 | 137 | ||
138 | 138 | ||
139 | 139 | func at () = "%s__shutdown" | |
140 | 140 | ||
141 | 141 | ||
142 | 142 | func au (av) = ("%s%s__poolWeight__" + av) | |
143 | 143 | ||
144 | 144 | ||
145 | 145 | func aw () = "%s__allowedLpScriptHash" | |
146 | 146 | ||
147 | 147 | ||
148 | 148 | let ax = "%s__feeCollectorAddress" | |
149 | 149 | ||
150 | 150 | func ay (az,aA,aB) = throw(((((("order validation failed: orderValid=" + toString(az)) + " senderValid=") + toString(aA)) + " matcherValid=") + toString(aB))) | |
151 | 151 | ||
152 | 152 | ||
153 | 153 | func aC (aD,aE) = valueOrErrorMessage(getString(aD, aE), makeString(["mandatory ", toString(aD), ".", aE, " is not defined"], "")) | |
154 | 154 | ||
155 | 155 | ||
156 | 156 | func aF (aD,aE) = valueOrErrorMessage(getInteger(aD, aE), makeString(["mandatory ", toString(aD), ".", aE, " is not defined"], "")) | |
157 | 157 | ||
158 | 158 | ||
159 | 159 | func aG (aH) = throw(makeString(["lp.ride:", aH], " ")) | |
160 | 160 | ||
161 | 161 | ||
162 | 162 | func aI (aH) = makeString(["lp.ride:", aH], " ") | |
163 | 163 | ||
164 | 164 | ||
165 | 165 | let aJ = addressFromStringValue(aC(this, P())) | |
166 | 166 | ||
167 | 167 | let aK = addressFromStringValue(aC(aJ, ax)) | |
168 | 168 | ||
169 | 169 | func aL () = valueOrElse(getBoolean(aJ, at()), false) | |
170 | 170 | ||
171 | 171 | ||
172 | 172 | func aM () = fromBase58String(aC(aJ, al())) | |
173 | 173 | ||
174 | 174 | ||
175 | 175 | func aN () = { | |
176 | 176 | let aO = aC(this, aa()) | |
177 | 177 | let aP = aC(this, ab()) | |
178 | 178 | let aq = aF(aJ, ar(aP)) | |
179 | 179 | let ap = aF(aJ, ar(aO)) | |
180 | 180 | split(aC(aJ, ao(toString(ap), toString(aq))), j) | |
181 | 181 | } | |
182 | 182 | ||
183 | 183 | ||
184 | 184 | func aQ (aR) = if ((aR == i)) | |
185 | 185 | then unit | |
186 | 186 | else fromBase58String(aR) | |
187 | 187 | ||
188 | 188 | ||
189 | 189 | func aS (aR) = if ((aR == unit)) | |
190 | 190 | then i | |
191 | 191 | else toBase58String(value(aR)) | |
192 | 192 | ||
193 | 193 | ||
194 | 194 | func aT (aU) = $Tuple7(addressFromStringValue(aU[o]), parseIntValue(aU[p]), fromBase58String(aU[q]), aQ(aU[r]), aQ(aU[s]), parseIntValue(aU[t]), parseIntValue(aU[u])) | |
195 | 195 | ||
196 | 196 | ||
197 | 197 | let aV = aT(aN()) | |
198 | 198 | ||
199 | 199 | let aW = aV | |
200 | 200 | ||
201 | 201 | let aX = aW._1 | |
202 | 202 | ||
203 | 203 | let aY = aW._2 | |
204 | 204 | ||
205 | 205 | let aZ = aW._3 | |
206 | 206 | ||
207 | 207 | let ba = aW._4 | |
208 | 208 | ||
209 | 209 | let bb = aW._5 | |
210 | 210 | ||
211 | 211 | let bc = aW._6 | |
212 | 212 | ||
213 | 213 | let bd = aW._7 | |
214 | 214 | ||
215 | 215 | func be () = split(aC(aJ, ak()), j) | |
216 | 216 | ||
217 | 217 | ||
218 | 218 | let bf = valueOrErrorMessage(addressFromString(be()[B]), "incorrect staking address") | |
219 | 219 | ||
220 | 220 | let bg = valueOrErrorMessage(addressFromString(be()[C]), "incorrect staking address") | |
221 | 221 | ||
222 | 222 | func bh (bi,bj,bk,bl,bm,bn,bo,bp,bq,br) = makeString(["%d%d%d%d%d%d%d%d%d%d", toString(bi), toString(bj), toString(bk), toString(bl), toString(bm), toString(bn), toString(bo), toString(bp), toString(bq), toString(br)], j) | |
223 | 223 | ||
224 | 224 | ||
225 | 225 | func bs (bt,bu,bv,bl,bo,bp) = makeString(["%d%d%d%d%d%d", toString(bt), toString(bu), toString(bv), toString(bl), toString(bo), toString(bp)], j) | |
226 | 226 | ||
227 | 227 | ||
228 | 228 | func bw (bx) = if ((bx == "WAVES")) | |
229 | 229 | then wavesBalance(this).available | |
230 | 230 | else assetBalance(this, fromBase58String(bx)) | |
231 | 231 | ||
232 | 232 | ||
233 | 233 | func by (bz,bA) = fraction(bz, d, bA) | |
234 | 234 | ||
235 | 235 | ||
236 | - | func bB (bC,bD,bE,bF) = { | |
237 | - | let bG = D(bE, bC) | |
238 | - | let bH = D(bF, bD) | |
239 | - | by(bH, bG) | |
236 | + | func bB (bz,bA,bC) = fraction(bz, d, bA, bC) | |
237 | + | ||
238 | + | ||
239 | + | func bD (bE,bF,bG,bH) = { | |
240 | + | let bI = D(bG, bE) | |
241 | + | let bJ = D(bH, bF) | |
242 | + | by(bJ, bI) | |
240 | 243 | } | |
241 | 244 | ||
242 | 245 | ||
243 | - | func | |
244 | - | let | |
245 | - | let | |
246 | - | let | |
247 | - | let | |
248 | - | let bA = D( | |
249 | - | let bz = D( | |
250 | - | let | |
251 | - | let | |
252 | - | let | |
253 | - | [ | |
246 | + | func bK (bG,bH,bL) = { | |
247 | + | let bM = aN() | |
248 | + | let bN = parseIntValue(bM[t]) | |
249 | + | let bO = parseIntValue(bM[u]) | |
250 | + | let bP = bD(bN, bO, bG, bH) | |
251 | + | let bA = D(bG, bN) | |
252 | + | let bz = D(bH, bO) | |
253 | + | let bQ = D(bL, b) | |
254 | + | let bR = by(bA, bQ) | |
255 | + | let bS = by(bz, bQ) | |
256 | + | [bP, bR, bS] | |
254 | 257 | } | |
255 | 258 | ||
256 | 259 | ||
257 | - | func | |
258 | - | let | |
259 | - | [G( | |
260 | + | func bT (bG,bH,bL) = { | |
261 | + | let bU = bK(bG, bH, bL) | |
262 | + | [G(bU[0], b), G(bU[1], b), G(bU[2], b)] | |
260 | 263 | } | |
261 | 264 | ||
262 | 265 | ||
263 | - | func | |
264 | - | let | |
265 | - | let | |
266 | - | let | |
267 | - | let | |
268 | - | let | |
269 | - | let | |
270 | - | let | |
271 | - | let | |
272 | - | if (( | |
266 | + | func bV (bW,bX,bY,X) = { | |
267 | + | let bM = aN() | |
268 | + | let bZ = bM[q] | |
269 | + | let ca = bM[r] | |
270 | + | let cb = bM[s] | |
271 | + | let bE = parseIntValue(bM[t]) | |
272 | + | let bF = parseIntValue(bM[u]) | |
273 | + | let cc = bM[p] | |
274 | + | let cd = valueOrErrorMessage(assetInfo(fromBase58String(bZ)), (("Asset " + bZ) + " doesn't exist")).quantity | |
275 | + | if ((bZ != bX)) | |
273 | 276 | then throw("Invalid asset passed.") | |
274 | 277 | else { | |
275 | - | let | |
276 | - | let | |
277 | - | let | |
278 | - | let | |
279 | - | let | |
280 | - | let | |
281 | - | let | |
282 | - | let | |
283 | - | let | |
284 | - | let | |
285 | - | let | |
286 | - | let | |
287 | - | let | |
278 | + | let ce = bw(ca) | |
279 | + | let cf = D(ce, bE) | |
280 | + | let cg = bw(cb) | |
281 | + | let ch = D(cg, bF) | |
282 | + | let ci = by(ch, cf) | |
283 | + | let cj = G(ci, b) | |
284 | + | let ck = D(bY, b) | |
285 | + | let cl = D(cd, b) | |
286 | + | let cm = fraction(cf, ck, cl) | |
287 | + | let cn = fraction(ch, ck, cl) | |
288 | + | let co = G(cm, bE) | |
289 | + | let cp = G(cn, bF) | |
290 | + | let cq = if ((bW == "")) | |
288 | 291 | then nil | |
289 | - | else [ScriptTransfer(X, | |
292 | + | else [ScriptTransfer(X, co, if ((ca == "WAVES")) | |
290 | 293 | then unit | |
291 | - | else fromBase58String( | |
294 | + | else fromBase58String(ca)), ScriptTransfer(X, cp, if ((cb == "WAVES")) | |
292 | 295 | then unit | |
293 | - | else fromBase58String( | |
294 | - | $Tuple10( | |
296 | + | else fromBase58String(cb)), StringEntry(Z(toString(X), bW), bs(co, cp, bY, cj, height, lastBlock.timestamp)), IntegerEntry(S(), cj), IntegerEntry(T(height, lastBlock.timestamp), cj)] | |
297 | + | $Tuple10(co, cp, ca, cb, ce, cg, cd, ci, cc, cq) | |
295 | 298 | } | |
296 | 299 | } | |
297 | 300 | ||
298 | 301 | ||
299 | - | func | |
300 | - | let | |
301 | - | let | |
302 | - | let | |
303 | - | let | |
304 | - | let | |
305 | - | let | |
306 | - | let | |
307 | - | let | |
308 | - | let | |
309 | - | let | |
310 | - | let | |
311 | - | let | |
312 | - | if (if (( | |
302 | + | func cr (bW,cs,ct,cu,cv,cw,X,cx,cy) = { | |
303 | + | let bM = aN() | |
304 | + | let bZ = fromBase58String(bM[q]) | |
305 | + | let cz = bM[r] | |
306 | + | let cA = bM[s] | |
307 | + | let cB = bM[v] | |
308 | + | let cC = bM[w] | |
309 | + | let bN = parseIntValue(bM[t]) | |
310 | + | let bO = parseIntValue(bM[u]) | |
311 | + | let cc = bM[p] | |
312 | + | let cd = valueOrErrorMessage(assetInfo(bZ), (("Asset " + toBase58String(bZ)) + " doesn't exist")).quantity | |
313 | + | let cD = toBase58String(valueOrElse(cu, fromBase58String("WAVES"))) | |
314 | + | let cE = toBase58String(valueOrElse(cw, fromBase58String("WAVES"))) | |
315 | + | if (if ((cz != cD)) | |
313 | 316 | then true | |
314 | - | else ( | |
317 | + | else (cA != cE)) | |
315 | 318 | then throw("Invalid amt or price asset passed.") | |
316 | 319 | else { | |
317 | - | let | |
318 | - | then bw( | |
319 | - | else (bw( | |
320 | - | let | |
321 | - | then bw( | |
322 | - | else (bw( | |
323 | - | let | |
324 | - | let | |
325 | - | let | |
326 | - | let | |
327 | - | let | |
328 | - | let | |
320 | + | let ce = if (cx) | |
321 | + | then bw(cz) | |
322 | + | else (bw(cz) - ct) | |
323 | + | let cg = if (cx) | |
324 | + | then bw(cA) | |
325 | + | else (bw(cA) - cv) | |
326 | + | let cF = D(ct, bN) | |
327 | + | let cG = D(cv, bO) | |
328 | + | let cH = by(cG, cF) | |
329 | + | let cf = D(ce, bN) | |
330 | + | let ch = D(cg, bO) | |
331 | + | let cI = if ((cd == 0)) | |
329 | 332 | then { | |
330 | - | let | |
331 | - | let | |
332 | - | let | |
333 | - | $Tuple5(G( | |
333 | + | let ci = e | |
334 | + | let cJ = e | |
335 | + | let bQ = pow((cF * cG), 0, toBigInt(5), 1, 0, DOWN) | |
336 | + | $Tuple5(G(bQ, b), G(cF, bN), G(cG, bO), by((ch + cG), (cf + cF)), cJ) | |
334 | 337 | } | |
335 | 338 | else { | |
336 | - | let | |
337 | - | let | |
338 | - | let | |
339 | - | if (if (( | |
340 | - | then ( | |
339 | + | let ci = by(ch, cf) | |
340 | + | let cJ = fraction(O((ci - cH)), d, ci) | |
341 | + | let cK = D(cs, b) | |
342 | + | if (if ((ci != e)) | |
343 | + | then (cJ > cK) | |
341 | 344 | else false) | |
342 | - | then throw(((("Price slippage " + toString( | |
345 | + | then throw(((("Price slippage " + toString(cJ)) + " exceeded the passed limit of ") + toString(cK))) | |
343 | 346 | else { | |
344 | - | let | |
345 | - | let | |
346 | - | let | |
347 | - | let | |
348 | - | then $Tuple2( | |
349 | - | else $Tuple2( | |
350 | - | let | |
351 | - | let | |
352 | - | let | |
353 | - | $Tuple5(G( | |
347 | + | let cl = D(cd, b) | |
348 | + | let cL = fraction(cF, bB(ch, cf, CEILING), d, CEILING) | |
349 | + | let cM = fraction(cG, d, bB(ch, cf, FLOOR), CEILING) | |
350 | + | let cN = if ((cL > cG)) | |
351 | + | then $Tuple2(cM, cG) | |
352 | + | else $Tuple2(cF, cL) | |
353 | + | let cO = cN._1 | |
354 | + | let cP = cN._2 | |
355 | + | let bQ = fraction(cl, cP, ch, FLOOR) | |
356 | + | $Tuple5(G(bQ, b), G(cO, bN), G(cP, bO), ci, cJ) | |
354 | 357 | } | |
355 | 358 | } | |
356 | - | let | |
357 | - | let | |
358 | - | let | |
359 | - | let | |
360 | - | let | |
361 | - | if ((0 >= | |
359 | + | let cQ = cI._1 | |
360 | + | let cR = cI._2 | |
361 | + | let cS = cI._3 | |
362 | + | let cj = G(cI._4, b) | |
363 | + | let cT = G(cI._5, b) | |
364 | + | if ((0 >= cQ)) | |
362 | 365 | then throw("Invalid calculations. LP calculated is less than zero.") | |
363 | 366 | else { | |
364 | - | let | |
367 | + | let cU = if (!(cy)) | |
365 | 368 | then 0 | |
366 | - | else | |
367 | - | let | |
368 | - | let | |
369 | - | let | |
370 | - | $Tuple13( | |
369 | + | else cQ | |
370 | + | let cV = (ct - cR) | |
371 | + | let cW = (cv - cS) | |
372 | + | let cX = [IntegerEntry(S(), cj), IntegerEntry(T(height, lastBlock.timestamp), cj), StringEntry(W(X, bW), bh(cR, cS, cU, cj, cs, cT, height, lastBlock.timestamp, cV, cW))] | |
373 | + | $Tuple13(cQ, cU, cj, ce, cg, cd, bZ, cc, cX, cV, cW, cu, cw) | |
371 | 374 | } | |
372 | 375 | } | |
373 | 376 | } | |
374 | 377 | ||
375 | 378 | ||
376 | - | func | |
377 | - | let | |
378 | - | if (( | |
379 | + | func cY (cZ,da,cd) = { | |
380 | + | let db = fraction(pow((cZ * da), 0, toBigInt(5), 1, 18, DOWN), g, cd) | |
381 | + | if ((cd == f)) | |
379 | 382 | then f | |
380 | - | else | |
383 | + | else db | |
381 | 384 | } | |
382 | 385 | ||
383 | 386 | ||
384 | - | func | |
385 | - | let | |
386 | - | let | |
387 | - | let | |
388 | - | let | |
389 | - | | |
387 | + | func dc (dd,de,df) = { | |
388 | + | let dg = (toBigInt(bw(aS(ba))) - dd) | |
389 | + | let dh = (toBigInt(bw(aS(bb))) - de) | |
390 | + | let di = (toBigInt(value(assetInfo(aZ)).quantity) - df) | |
391 | + | let dj = cY(dg, dh, di) | |
392 | + | dj | |
390 | 393 | } | |
391 | 394 | ||
392 | 395 | ||
393 | - | func | |
394 | - | let | |
395 | - | let | |
396 | - | let | |
397 | - | let | |
398 | - | let | |
399 | - | $Tuple2( | |
396 | + | func dk (dl,dm,df) = { | |
397 | + | let dg = (bw(aS(ba)) + dl) | |
398 | + | let dh = (bw(aS(bb)) + dm) | |
399 | + | let di = (value(assetInfo(aZ)).quantity + df) | |
400 | + | let db = cY(toBigInt(dg), toBigInt(dh), toBigInt(di)) | |
401 | + | let dn = [IntegerEntry(ag, height), StringEntry(af, toString(db))] | |
402 | + | $Tuple2(dn, db) | |
400 | 403 | } | |
401 | 404 | ||
402 | 405 | ||
403 | - | func | |
406 | + | func do (dp,db) = if ((db >= dp)) | |
404 | 407 | then true | |
405 | - | else aG(makeString(["updated KLp lower than current KLp", toString( | |
408 | + | else aG(makeString(["updated KLp lower than current KLp", toString(dp), toString(db)], " ")) | |
406 | 409 | ||
407 | 410 | ||
408 | - | func | |
409 | - | let | |
410 | - | let | |
411 | - | let | |
412 | - | then $Tuple2( | |
413 | - | else $Tuple2(-( | |
414 | - | let | |
415 | - | let | |
411 | + | func dq (dr) = { | |
412 | + | let ds = dr.amount | |
413 | + | let dt = fraction(dr.amount, dr.price, b, FLOOR) | |
414 | + | let du = if ((dr.orderType == Buy)) | |
415 | + | then $Tuple2(ds, -(dt)) | |
416 | + | else $Tuple2(-(ds), dt) | |
417 | + | let dl = du._1 | |
418 | + | let dm = du._2 | |
416 | 419 | if (if (if (aL()) | |
417 | 420 | then true | |
418 | 421 | else (aY == m)) | |
419 | 422 | then true | |
420 | 423 | else (aY == n)) | |
421 | 424 | then throw("Exchange operations disabled") | |
422 | - | else if (if (( | |
425 | + | else if (if ((dr.assetPair.amountAsset != ba)) | |
423 | 426 | then true | |
424 | - | else ( | |
427 | + | else (dr.assetPair.priceAsset != bb)) | |
425 | 428 | then throw("Wrong order assets.") | |
426 | 429 | else { | |
427 | - | let | |
428 | - | let | |
429 | - | let | |
430 | - | let | |
431 | - | let | |
432 | - | | |
430 | + | let dv = valueOrErrorMessage(parseBigInt(valueOrErrorMessage(getString(this, af), aI("kLp is required"))), aI("invalid kLp")) | |
431 | + | let dw = dk(dl, dm, 0) | |
432 | + | let dx = dw._1 | |
433 | + | let dy = dw._2 | |
434 | + | let dz = (dy >= dv) | |
435 | + | dz | |
433 | 436 | } | |
434 | 437 | } | |
435 | 438 | ||
436 | 439 | ||
437 | - | func | |
440 | + | func dA (dB) = if ((size(dB.payments) != 1)) | |
438 | 441 | then throw("exactly 1 payment is expected") | |
439 | 442 | else { | |
440 | - | let | |
441 | - | let | |
442 | - | let | |
443 | - | let | |
444 | - | let | |
445 | - | let | |
446 | - | let | |
447 | - | let | |
443 | + | let dC = value(dB.payments[0]) | |
444 | + | let bX = value(dC.assetId) | |
445 | + | let dD = dC.amount | |
446 | + | let cI = bV(toBase58String(dB.transactionId), toBase58String(bX), dD, dB.caller) | |
447 | + | let co = cI._1 | |
448 | + | let cp = cI._2 | |
449 | + | let cc = parseIntValue(cI._9) | |
450 | + | let cq = cI._10 | |
448 | 451 | if (if (aL()) | |
449 | 452 | then true | |
450 | - | else ( | |
451 | - | then throw(("Get operation is blocked by admin. Status = " + toString( | |
452 | - | else $Tuple5( | |
453 | + | else (cc == n)) | |
454 | + | then throw(("Get operation is blocked by admin. Status = " + toString(cc))) | |
455 | + | else $Tuple5(co, cp, dD, bX, cq) | |
453 | 456 | } | |
454 | 457 | ||
455 | 458 | ||
456 | - | func | |
459 | + | func dE (dB,cs,cy) = if ((size(dB.payments) != 2)) | |
457 | 460 | then throw("exactly 2 payments are expected") | |
458 | 461 | else { | |
459 | - | let | |
460 | - | let | |
461 | - | let | |
462 | - | let | |
462 | + | let dF = value(dB.payments[0]) | |
463 | + | let dG = value(dB.payments[1]) | |
464 | + | let dH = cr(toBase58String(dB.transactionId), cs, dF.amount, dF.assetId, dG.amount, dG.assetId, toString(dB.caller), false, cy) | |
465 | + | let cc = parseIntValue(dH._8) | |
463 | 466 | if (if (if (aL()) | |
464 | 467 | then true | |
465 | - | else ( | |
468 | + | else (cc == l)) | |
466 | 469 | then true | |
467 | - | else ( | |
468 | - | then throw(("Put operation is blocked by admin. Status = " + toString( | |
469 | - | else | |
470 | + | else (cc == n)) | |
471 | + | then throw(("Put operation is blocked by admin. Status = " + toString(cc))) | |
472 | + | else dH | |
470 | 473 | } | |
471 | 474 | ||
472 | 475 | ||
473 | - | func | |
474 | - | let | |
475 | - | if (( | |
476 | + | func dI (dJ) = { | |
477 | + | let dK = invoke(aJ, "emit", [dJ], nil) | |
478 | + | if ((dK == dK)) | |
476 | 479 | then { | |
477 | - | let | |
478 | - | let | |
479 | - | if ($isInstanceOf( | |
480 | + | let dL = { | |
481 | + | let dM = dK | |
482 | + | if ($isInstanceOf(dM, "Address")) | |
480 | 483 | then { | |
481 | - | let | |
482 | - | invoke( | |
484 | + | let dN = dM | |
485 | + | invoke(dN, "emit", [dJ], nil) | |
483 | 486 | } | |
484 | 487 | else unit | |
485 | 488 | } | |
486 | - | if (( | |
487 | - | then | |
489 | + | if ((dL == dL)) | |
490 | + | then dJ | |
488 | 491 | else throw("Strict value is not equal to itself.") | |
489 | 492 | } | |
490 | 493 | else throw("Strict value is not equal to itself.") | |
491 | 494 | } | |
492 | 495 | ||
493 | 496 | ||
494 | - | func | |
495 | - | let | |
496 | - | $Tuple2(( | |
497 | + | func dO (dJ) = { | |
498 | + | let dP = fraction(dJ, ae, b) | |
499 | + | $Tuple2((dJ - dP), dP) | |
497 | 500 | } | |
498 | 501 | ||
499 | 502 | ||
500 | - | func | |
501 | - | let | |
502 | - | let | |
503 | - | let | |
504 | - | let | |
503 | + | func dQ (dR,dS,X,Y) = { | |
504 | + | let dT = (Y == unit) | |
505 | + | let dU = bw(aS(ba)) | |
506 | + | let dV = bw(aS(bb)) | |
507 | + | let dW = if ((dS == ba)) | |
505 | 508 | then true | |
506 | - | else if (( | |
509 | + | else if ((dS == bb)) | |
507 | 510 | then false | |
508 | 511 | else aG("invalid asset") | |
509 | - | let | |
510 | - | then $Tuple2( | |
511 | - | else if ( | |
512 | - | then $Tuple2(( | |
513 | - | else $Tuple2( | |
514 | - | let | |
515 | - | let | |
516 | - | let | |
517 | - | then $Tuple2( | |
518 | - | else $Tuple2(0, | |
519 | - | let | |
520 | - | let | |
521 | - | let | |
522 | - | let | |
523 | - | let | |
524 | - | let | |
525 | - | let | |
526 | - | let | |
527 | - | let | |
528 | - | let | |
529 | - | let | |
530 | - | let | |
531 | - | then | |
532 | - | else | |
533 | - | let | |
534 | - | let | |
535 | - | let | |
512 | + | let dX = if (dT) | |
513 | + | then $Tuple2(dU, dV) | |
514 | + | else if (dW) | |
515 | + | then $Tuple2((dU - dR), dV) | |
516 | + | else $Tuple2(dU, (dV - dR)) | |
517 | + | let dY = dX._1 | |
518 | + | let dZ = dX._2 | |
519 | + | let ea = if (dW) | |
520 | + | then $Tuple2(dR, 0) | |
521 | + | else $Tuple2(0, dR) | |
522 | + | let eb = ea._1 | |
523 | + | let ec = ea._2 | |
524 | + | let ds = dO(eb)._1 | |
525 | + | let dt = dO(ec)._1 | |
526 | + | let ed = dO(dR) | |
527 | + | let ee = ed._1 | |
528 | + | let dP = ed._2 | |
529 | + | let ef = (dY + ds) | |
530 | + | let eg = (dZ + dt) | |
531 | + | let eh = by(D(eg, bd), D(ef, bc)) | |
532 | + | let ei = G(eh, b) | |
533 | + | let ej = if (dW) | |
534 | + | then dY | |
535 | + | else dZ | |
536 | + | let ek = toBigInt(ej) | |
537 | + | let el = toBigInt(valueOrErrorMessage(assetInfo(aZ), (("asset " + toBase58String(aZ)) + " doesn't exist")).quantity) | |
538 | + | let em = if ((el > f)) | |
536 | 539 | then true | |
537 | 540 | else aG("initial deposit requires all coins") | |
538 | - | if (( | |
541 | + | if ((em == em)) | |
539 | 542 | then { | |
540 | - | let | |
541 | - | let | |
542 | - | let | |
543 | + | let en = toBigInt(ee) | |
544 | + | let eo = max([0, toInt(((el * (sqrtBigInt((d + ((en * d) / ek)), 18, 18, DOWN) - d)) / d))]) | |
545 | + | let cX = if (dT) | |
543 | 546 | then nil | |
544 | - | else [IntegerEntry(S(), | |
545 | - | let | |
546 | - | let | |
547 | - | let | |
548 | - | let | |
549 | - | then $Tuple2( | |
550 | - | else $Tuple2( | |
551 | - | let | |
552 | - | let | |
553 | - | let | |
554 | - | fraction(( | |
547 | + | else [IntegerEntry(S(), ei), IntegerEntry(T(height, lastBlock.timestamp), ei), StringEntry(W(toString(value(X)), toBase58String(value(Y))), bh(eb, ec, eo, ei, 0, 0, height, lastBlock.timestamp, 0, 0))] | |
548 | + | let ep = by(D(dZ, bd), D(dY, bc)) | |
549 | + | let eq = G(ep, b) | |
550 | + | let er = { | |
551 | + | let es = if (dW) | |
552 | + | then $Tuple2(eb, dY) | |
553 | + | else $Tuple2(ec, dZ) | |
554 | + | let dJ = es._1 | |
555 | + | let et = es._2 | |
556 | + | let eu = toInt(fraction(el, toBigInt((dJ / 2)), toBigInt(et))) | |
557 | + | fraction((eo - eu), b, eu) | |
555 | 558 | } | |
556 | - | $Tuple5( | |
559 | + | $Tuple5(eo, cX, dP, er, dW) | |
557 | 560 | } | |
558 | 561 | else throw("Strict value is not equal to itself.") | |
559 | 562 | } | |
560 | 563 | ||
561 | 564 | ||
562 | - | func | |
563 | - | let | |
564 | - | let | |
565 | + | func ev (ew,ee,dS,X,Y) = { | |
566 | + | let dT = (Y == unit) | |
567 | + | let ex = [if ((dS == aZ)) | |
565 | 568 | then true | |
566 | 569 | else aG("invalid lp asset")] | |
567 | - | if (( | |
570 | + | if ((ex == ex)) | |
568 | 571 | then { | |
569 | - | let | |
572 | + | let ey = if ((ew == ba)) | |
570 | 573 | then true | |
571 | - | else if (( | |
574 | + | else if ((ew == bb)) | |
572 | 575 | then false | |
573 | 576 | else aG("invalid asset") | |
574 | - | let | |
577 | + | let ez = if (ey) | |
575 | 578 | then toBigInt(bw(aS(ba))) | |
576 | 579 | else toBigInt(bw(aS(bb))) | |
577 | - | let ey = bw(aS(ba)) | |
578 | - | let ez = bw(aS(bb)) | |
579 | - | let eA = if (ew) | |
580 | - | then ey | |
581 | - | else ez | |
582 | - | let eB = toBigInt(eA) | |
583 | - | let ej = toBigInt(valueOrErrorMessage(assetInfo(aZ), (("asset " + toBase58String(aZ)) + " doesn't exist")).quantity) | |
584 | - | let eC = toBigInt(ec) | |
585 | - | let eD = max([0, toInt(((ex * (d - pow((d - ((eC * d) / ej)), 18, h, 0, 18, DOWN))) / d))]) | |
586 | - | let eE = dM(eD) | |
587 | - | let eF = eE._1 | |
588 | - | let dN = eE._2 | |
589 | - | let eG = if (ew) | |
590 | - | then $Tuple4(eF, 0, (ey - eD), ez) | |
591 | - | else $Tuple4(0, eF, ey, (ez - eD)) | |
580 | + | let eA = bw(aS(ba)) | |
581 | + | let eB = bw(aS(bb)) | |
582 | + | let eC = if (ey) | |
583 | + | then eA | |
584 | + | else eB | |
585 | + | let eD = toBigInt(eC) | |
586 | + | let el = toBigInt(valueOrErrorMessage(assetInfo(aZ), (("asset " + toBase58String(aZ)) + " doesn't exist")).quantity) | |
587 | + | let eE = toBigInt(ee) | |
588 | + | let eF = max([0, toInt(((ez * (d - pow((d - ((eE * d) / el)), 18, h, 0, 18, DOWN))) / d))]) | |
589 | + | let eG = dO(eF) | |
592 | 590 | let eH = eG._1 | |
593 | - | let eI = eG._2 | |
594 | - | let eJ = eG._3 | |
595 | - | let eK = eG._4 | |
596 | - | let ef = by(D(eK, bd), D(eJ, bc)) | |
597 | - | let eg = G(ef, b) | |
598 | - | let cV = if (dR) | |
591 | + | let dP = eG._2 | |
592 | + | let eI = if (ey) | |
593 | + | then $Tuple4(eH, 0, (eA - eF), eB) | |
594 | + | else $Tuple4(0, eH, eA, (eB - eF)) | |
595 | + | let eJ = eI._1 | |
596 | + | let eK = eI._2 | |
597 | + | let eL = eI._3 | |
598 | + | let eM = eI._4 | |
599 | + | let eh = by(D(eM, bd), D(eL, bc)) | |
600 | + | let ei = G(eh, b) | |
601 | + | let cX = if (dT) | |
599 | 602 | then nil | |
600 | - | else [StringEntry(Z(toString(value(X)), toBase58String(value(Y))), bs( | |
601 | - | let | |
602 | - | let | |
603 | - | let | |
604 | - | let | |
605 | - | fraction(( | |
603 | + | else [StringEntry(Z(toString(value(X)), toBase58String(value(Y))), bs(eJ, eK, ee, ei, height, lastBlock.timestamp)), IntegerEntry(S(), ei), IntegerEntry(T(height, lastBlock.timestamp), ei)] | |
604 | + | let ep = by(D(eB, bd), D(eA, bc)) | |
605 | + | let eq = G(ep, b) | |
606 | + | let er = { | |
607 | + | let eN = (toInt(fraction(ez, eE, el)) * 2) | |
608 | + | fraction((eH - eN), b, eN) | |
606 | 609 | } | |
607 | - | $Tuple5( | |
610 | + | $Tuple5(eH, cX, dP, er, ey) | |
608 | 611 | } | |
609 | 612 | else throw("Strict value is not equal to itself.") | |
610 | 613 | } | |
611 | 614 | ||
612 | 615 | ||
613 | - | func | |
614 | - | let | |
615 | - | if ($isInstanceOf( | |
616 | + | func eO () = { | |
617 | + | let dM = getString(Q()) | |
618 | + | if ($isInstanceOf(dM, "String")) | |
616 | 619 | then { | |
617 | - | let | |
618 | - | fromBase58String( | |
620 | + | let eP = dM | |
621 | + | fromBase58String(eP) | |
619 | 622 | } | |
620 | - | else if ($isInstanceOf( | |
623 | + | else if ($isInstanceOf(dM, "Unit")) | |
621 | 624 | then unit | |
622 | 625 | else throw("Match error") | |
623 | 626 | } | |
624 | 627 | ||
625 | 628 | ||
626 | - | func | |
627 | - | let | |
628 | - | if ($isInstanceOf( | |
629 | + | func eQ () = { | |
630 | + | let dM = getString(R()) | |
631 | + | if ($isInstanceOf(dM, "String")) | |
629 | 632 | then { | |
630 | - | let | |
631 | - | fromBase58String( | |
633 | + | let eP = dM | |
634 | + | fromBase58String(eP) | |
632 | 635 | } | |
633 | - | else if ($isInstanceOf( | |
636 | + | else if ($isInstanceOf(dM, "Unit")) | |
634 | 637 | then unit | |
635 | 638 | else throw("Match error") | |
636 | 639 | } | |
637 | 640 | ||
638 | 641 | ||
639 | - | func | |
640 | - | let | |
641 | - | if ($isInstanceOf( | |
642 | + | func eR (dB) = { | |
643 | + | let dM = eO() | |
644 | + | if ($isInstanceOf(dM, "ByteVector")) | |
642 | 645 | then { | |
643 | - | let | |
644 | - | ( | |
646 | + | let eS = dM | |
647 | + | (dB.callerPublicKey == eS) | |
645 | 648 | } | |
646 | - | else if ($isInstanceOf( | |
647 | - | then ( | |
649 | + | else if ($isInstanceOf(dM, "Unit")) | |
650 | + | then (dB.caller == this) | |
648 | 651 | else throw("Match error") | |
649 | 652 | } | |
650 | 653 | ||
651 | 654 | ||
652 | - | func | |
653 | - | let | |
654 | - | let | |
655 | - | if ($isInstanceOf( | |
655 | + | func eT (dB) = { | |
656 | + | let eU = throw("Permission denied") | |
657 | + | let dM = eO() | |
658 | + | if ($isInstanceOf(dM, "ByteVector")) | |
656 | 659 | then { | |
657 | - | let | |
658 | - | if (( | |
660 | + | let eS = dM | |
661 | + | if ((dB.callerPublicKey == eS)) | |
659 | 662 | then true | |
660 | - | else | |
663 | + | else eU | |
661 | 664 | } | |
662 | - | else if ($isInstanceOf( | |
663 | - | then if (( | |
665 | + | else if ($isInstanceOf(dM, "Unit")) | |
666 | + | then if ((dB.caller == this)) | |
664 | 667 | then true | |
665 | - | else | |
668 | + | else eU | |
666 | 669 | else throw("Match error") | |
667 | 670 | } | |
668 | 671 | ||
669 | 672 | ||
670 | - | @Callable( | |
671 | - | func setManager ( | |
672 | - | let | |
673 | - | if (( | |
673 | + | @Callable(dB) | |
674 | + | func setManager (eV) = { | |
675 | + | let eW = eT(dB) | |
676 | + | if ((eW == eW)) | |
674 | 677 | then { | |
675 | - | let | |
676 | - | if (( | |
677 | - | then [StringEntry(R(), | |
678 | + | let eX = fromBase58String(eV) | |
679 | + | if ((eX == eX)) | |
680 | + | then [StringEntry(R(), eV)] | |
678 | 681 | else throw("Strict value is not equal to itself.") | |
679 | 682 | } | |
680 | 683 | else throw("Strict value is not equal to itself.") | |
681 | 684 | } | |
682 | 685 | ||
683 | 686 | ||
684 | 687 | ||
685 | - | @Callable( | |
688 | + | @Callable(dB) | |
686 | 689 | func confirmManager () = { | |
687 | - | let | |
688 | - | let | |
690 | + | let eY = eQ() | |
691 | + | let eZ = if (isDefined(eY)) | |
689 | 692 | then true | |
690 | 693 | else throw("No pending manager") | |
691 | - | if (( | |
694 | + | if ((eZ == eZ)) | |
692 | 695 | then { | |
693 | - | let | |
696 | + | let fa = if ((dB.callerPublicKey == value(eY))) | |
694 | 697 | then true | |
695 | 698 | else throw("You are not pending manager") | |
696 | - | if (( | |
697 | - | then [StringEntry(Q(), toBase58String(value( | |
699 | + | if ((fa == fa)) | |
700 | + | then [StringEntry(Q(), toBase58String(value(eY))), DeleteEntry(R())] | |
698 | 701 | else throw("Strict value is not equal to itself.") | |
699 | 702 | } | |
700 | 703 | else throw("Strict value is not equal to itself.") | |
701 | 704 | } | |
702 | 705 | ||
703 | 706 | ||
704 | 707 | ||
705 | - | @Callable( | |
706 | - | func put ( | |
708 | + | @Callable(dB) | |
709 | + | func put (cs,fb) = if ((0 > cs)) | |
707 | 710 | then throw("Invalid slippageTolerance passed") | |
708 | 711 | else { | |
709 | - | let | |
710 | - | let | |
711 | - | let | |
712 | - | let | |
713 | - | let | |
714 | - | let | |
715 | - | let | |
716 | - | let | |
717 | - | let | |
718 | - | let | |
719 | - | let | |
720 | - | if (( | |
712 | + | let dH = dE(dB, cs, true) | |
713 | + | let cU = dH._2 | |
714 | + | let bZ = dH._7 | |
715 | + | let cq = dH._9 | |
716 | + | let cV = dH._10 | |
717 | + | let cW = dH._11 | |
718 | + | let fc = dH._12 | |
719 | + | let fd = dH._13 | |
720 | + | let dF = toBigInt(value(dB.payments[0]).amount) | |
721 | + | let dG = toBigInt(value(dB.payments[1]).amount) | |
722 | + | let dj = dc(dF, dG, toBigInt(0)) | |
723 | + | if ((dj == dj)) | |
721 | 724 | then { | |
722 | - | let | |
723 | - | if (( | |
725 | + | let dK = invoke(aJ, "emit", [cU], nil) | |
726 | + | if ((dK == dK)) | |
724 | 727 | then { | |
725 | - | let | |
726 | - | let | |
727 | - | if ($isInstanceOf( | |
728 | + | let dL = { | |
729 | + | let dM = dK | |
730 | + | if ($isInstanceOf(dM, "Address")) | |
728 | 731 | then { | |
729 | - | let | |
730 | - | invoke( | |
732 | + | let dN = dM | |
733 | + | invoke(dN, "emit", [cU], nil) | |
731 | 734 | } | |
732 | 735 | else unit | |
733 | 736 | } | |
734 | - | if (( | |
737 | + | if ((dL == dL)) | |
735 | 738 | then { | |
736 | - | let | |
737 | - | then invoke(bg, "put", nil, [AttachedPayment( | |
739 | + | let fe = if ((cV > 0)) | |
740 | + | then invoke(bg, "put", nil, [AttachedPayment(fc, cV)]) | |
738 | 741 | else nil | |
739 | - | if (( | |
742 | + | if ((fe == fe)) | |
740 | 743 | then { | |
741 | - | let | |
742 | - | then invoke(bg, "put", nil, [AttachedPayment( | |
744 | + | let ff = if ((cW > 0)) | |
745 | + | then invoke(bg, "put", nil, [AttachedPayment(fd, cW)]) | |
743 | 746 | else nil | |
744 | - | if (( | |
747 | + | if ((ff == ff)) | |
745 | 748 | then { | |
746 | - | let | |
749 | + | let fg = if (fb) | |
747 | 750 | then { | |
748 | - | let | |
749 | - | if (( | |
751 | + | let fh = invoke(bf, "stake", nil, [AttachedPayment(bZ, cU)]) | |
752 | + | if ((fh == fh)) | |
750 | 753 | then nil | |
751 | 754 | else throw("Strict value is not equal to itself.") | |
752 | 755 | } | |
753 | - | else [ScriptTransfer( | |
754 | - | let | |
755 | - | if (( | |
756 | + | else [ScriptTransfer(dB.caller, cU, bZ)] | |
757 | + | let fi = dk(0, 0, 0) | |
758 | + | if ((fi == fi)) | |
756 | 759 | then { | |
757 | - | let | |
758 | - | let | |
759 | - | let | |
760 | - | if (( | |
761 | - | then (( | |
760 | + | let db = fi._2 | |
761 | + | let fj = fi._1 | |
762 | + | let fk = do(dj, db) | |
763 | + | if ((fk == fk)) | |
764 | + | then ((cq ++ fg) ++ fj) | |
762 | 765 | else throw("Strict value is not equal to itself.") | |
763 | 766 | } | |
764 | 767 | else throw("Strict value is not equal to itself.") | |
765 | 768 | } | |
766 | 769 | else throw("Strict value is not equal to itself.") | |
767 | 770 | } | |
768 | 771 | else throw("Strict value is not equal to itself.") | |
769 | 772 | } | |
770 | 773 | else throw("Strict value is not equal to itself.") | |
771 | 774 | } | |
772 | 775 | else throw("Strict value is not equal to itself.") | |
773 | 776 | } | |
774 | 777 | else throw("Strict value is not equal to itself.") | |
775 | 778 | } | |
776 | 779 | ||
777 | 780 | ||
778 | 781 | ||
779 | - | @Callable( | |
780 | - | func putForFree ( | |
782 | + | @Callable(dB) | |
783 | + | func putForFree (fl) = if ((0 > fl)) | |
781 | 784 | then throw("Invalid value passed") | |
782 | 785 | else { | |
783 | - | let | |
784 | - | let | |
785 | - | let | |
786 | - | let | |
787 | - | let | |
788 | - | if (( | |
786 | + | let dH = dE(dB, fl, false) | |
787 | + | let cq = dH._9 | |
788 | + | let dF = toBigInt(value(dB.payments[0]).amount) | |
789 | + | let dG = toBigInt(value(dB.payments[1]).amount) | |
790 | + | let dj = dc(dF, dG, toBigInt(0)) | |
791 | + | if ((dj == dj)) | |
789 | 792 | then { | |
790 | - | let | |
791 | - | let | |
792 | - | let | |
793 | - | let | |
794 | - | if (( | |
795 | - | then ( | |
793 | + | let fm = dk(0, 0, 0) | |
794 | + | let fj = fm._1 | |
795 | + | let db = fm._2 | |
796 | + | let fk = do(dj, db) | |
797 | + | if ((fk == fk)) | |
798 | + | then (cq ++ fj) | |
796 | 799 | else throw("Strict value is not equal to itself.") | |
797 | 800 | } | |
798 | 801 | else throw("Strict value is not equal to itself.") | |
799 | 802 | } | |
800 | 803 | ||
801 | 804 | ||
802 | 805 | ||
803 | - | @Callable( | |
804 | - | func putOneTkn ( | |
805 | - | let | |
806 | - | let | |
807 | - | if ($isInstanceOf( | |
808 | - | then | |
809 | - | else throw(($getType( | |
806 | + | @Callable(dB) | |
807 | + | func putOneTkn (fn,fo) = { | |
808 | + | let fp = { | |
809 | + | let fq = invoke(aJ, "isPoolOneTokenOperationsDisabledREADONLY", [toString(this)], nil) | |
810 | + | if ($isInstanceOf(fq, "Boolean")) | |
811 | + | then fq | |
812 | + | else throw(($getType(fq) + " couldn't be cast to Boolean")) | |
810 | 813 | } | |
811 | - | let | |
814 | + | let fr = if (if (if (aL()) | |
812 | 815 | then true | |
813 | 816 | else (aY == l)) | |
814 | 817 | then true | |
815 | 818 | else (aY == n)) | |
816 | 819 | then true | |
817 | - | else | |
818 | - | let | |
820 | + | else fp | |
821 | + | let ex = [if (if (!(fr)) | |
819 | 822 | then true | |
820 | - | else | |
823 | + | else eR(dB)) | |
821 | 824 | then true | |
822 | - | else aG("put operation is blocked by admin"), if ((size( | |
825 | + | else aG("put operation is blocked by admin"), if ((size(dB.payments) == 1)) | |
823 | 826 | then true | |
824 | 827 | else aG("exactly 1 payment are expected")] | |
825 | - | if (( | |
828 | + | if ((ex == ex)) | |
826 | 829 | then { | |
827 | - | let | |
828 | - | let | |
829 | - | let | |
830 | - | let | |
831 | - | then | |
832 | - | else if (( | |
833 | - | then | |
830 | + | let fs = dB.payments[0] | |
831 | + | let dS = fs.assetId | |
832 | + | let dR = fs.amount | |
833 | + | let dj = if ((dS == ba)) | |
834 | + | then dc(toBigInt(dR), toBigInt(0), toBigInt(0)) | |
835 | + | else if ((dS == bb)) | |
836 | + | then dc(toBigInt(0), toBigInt(dR), toBigInt(0)) | |
834 | 837 | else aG("payment asset is not supported") | |
835 | - | let X = | |
836 | - | let Y = | |
837 | - | let | |
838 | - | if (( | |
838 | + | let X = dB.caller | |
839 | + | let Y = dB.transactionId | |
840 | + | let ft = dQ(dR, dS, X, Y) | |
841 | + | if ((ft == ft)) | |
839 | 842 | then { | |
840 | - | let | |
841 | - | let | |
842 | - | let | |
843 | - | let | |
844 | - | let | |
845 | - | let | |
846 | - | then ( | |
843 | + | let dW = ft._5 | |
844 | + | let fu = ft._4 | |
845 | + | let dP = ft._3 | |
846 | + | let cX = ft._2 | |
847 | + | let fv = ft._1 | |
848 | + | let fw = if (if ((fn > 0)) | |
849 | + | then (fn > fv) | |
847 | 850 | else false) | |
848 | - | then aG(makeString(["amount to receive is less than ", toString( | |
849 | - | else | |
850 | - | let | |
851 | - | if (( | |
851 | + | then aG(makeString(["amount to receive is less than ", toString(fn)], "")) | |
852 | + | else fv | |
853 | + | let dK = dI(fw) | |
854 | + | if ((dK == dK)) | |
852 | 855 | then { | |
853 | - | let | |
856 | + | let fg = if (fo) | |
854 | 857 | then { | |
855 | - | let | |
856 | - | if (( | |
858 | + | let fx = invoke(bf, "stake", nil, [AttachedPayment(aZ, fw)]) | |
859 | + | if ((fx == fx)) | |
857 | 860 | then nil | |
858 | 861 | else throw("Strict value is not equal to itself.") | |
859 | 862 | } | |
860 | - | else [ScriptTransfer( | |
861 | - | let | |
862 | - | then [ScriptTransfer(aK, | |
863 | + | else [ScriptTransfer(dB.caller, fw, aZ)] | |
864 | + | let fy = if ((dP > 0)) | |
865 | + | then [ScriptTransfer(aK, dP, dS)] | |
863 | 866 | else nil | |
864 | - | let | |
867 | + | let fz = if ((this == aK)) | |
865 | 868 | then $Tuple2(0, 0) | |
866 | - | else if ( | |
867 | - | then $Tuple2(-( | |
868 | - | else $Tuple2(0, -( | |
869 | - | let | |
870 | - | let | |
871 | - | let | |
872 | - | let | |
873 | - | let | |
874 | - | let | |
875 | - | let | |
876 | - | if (( | |
877 | - | then $Tuple2(((( | |
869 | + | else if (dW) | |
870 | + | then $Tuple2(-(dP), 0) | |
871 | + | else $Tuple2(0, -(dP)) | |
872 | + | let dl = fz._1 | |
873 | + | let dm = fz._2 | |
874 | + | let fA = dk(dl, dm, 0) | |
875 | + | let fj = fA._1 | |
876 | + | let db = fA._2 | |
877 | + | let dv = value(getString(af)) | |
878 | + | let fk = do(dj, db) | |
879 | + | if ((fk == fk)) | |
880 | + | then $Tuple2((((cX ++ fg) ++ fy) ++ fj), fw) | |
878 | 881 | else throw("Strict value is not equal to itself.") | |
879 | 882 | } | |
880 | 883 | else throw("Strict value is not equal to itself.") | |
881 | 884 | } | |
882 | 885 | else throw("Strict value is not equal to itself.") | |
883 | 886 | } | |
884 | 887 | else throw("Strict value is not equal to itself.") | |
885 | 888 | } | |
886 | 889 | ||
887 | 890 | ||
888 | 891 | ||
889 | - | @Callable( | |
890 | - | func putOneTknREADONLY ( | |
891 | - | let | |
892 | - | let | |
893 | - | let | |
894 | - | let | |
895 | - | let | |
896 | - | let | |
897 | - | $Tuple2(nil, $Tuple3( | |
892 | + | @Callable(dB) | |
893 | + | func putOneTknREADONLY (dS,dR) = { | |
894 | + | let fB = dQ(dR, aQ(dS), unit, unit) | |
895 | + | let fv = fB._1 | |
896 | + | let cX = fB._2 | |
897 | + | let dP = fB._3 | |
898 | + | let fu = fB._4 | |
899 | + | let dW = fB._5 | |
900 | + | $Tuple2(nil, $Tuple3(fv, dP, fu)) | |
898 | 901 | } | |
899 | 902 | ||
900 | 903 | ||
901 | 904 | ||
902 | - | @Callable( | |
903 | - | func getOneTkn ( | |
904 | - | let | |
905 | - | let | |
906 | - | if ($isInstanceOf( | |
907 | - | then | |
908 | - | else throw(($getType( | |
905 | + | @Callable(dB) | |
906 | + | func getOneTkn (fC,fn) = { | |
907 | + | let fp = { | |
908 | + | let fq = invoke(aJ, "isPoolOneTokenOperationsDisabledREADONLY", [toString(this)], nil) | |
909 | + | if ($isInstanceOf(fq, "Boolean")) | |
910 | + | then fq | |
911 | + | else throw(($getType(fq) + " couldn't be cast to Boolean")) | |
909 | 912 | } | |
910 | - | let | |
913 | + | let fD = if (if (aL()) | |
911 | 914 | then true | |
912 | 915 | else (aY == n)) | |
913 | 916 | then true | |
914 | - | else | |
915 | - | let | |
917 | + | else fp | |
918 | + | let ex = [if (if (!(fD)) | |
916 | 919 | then true | |
917 | - | else | |
920 | + | else eR(dB)) | |
918 | 921 | then true | |
919 | - | else aG("get operation is blocked by admin"), if ((size( | |
922 | + | else aG("get operation is blocked by admin"), if ((size(dB.payments) == 1)) | |
920 | 923 | then true | |
921 | 924 | else aG("exactly 1 payment are expected")] | |
922 | - | if (( | |
925 | + | if ((ex == ex)) | |
923 | 926 | then { | |
924 | - | let | |
925 | - | let | |
926 | - | let | |
927 | - | let | |
928 | - | let | |
929 | - | let X = | |
930 | - | let Y = | |
931 | - | let | |
932 | - | if (( | |
927 | + | let ew = aQ(fC) | |
928 | + | let fs = dB.payments[0] | |
929 | + | let dS = fs.assetId | |
930 | + | let ee = fs.amount | |
931 | + | let dj = dc(toBigInt(0), toBigInt(0), toBigInt(ee)) | |
932 | + | let X = dB.caller | |
933 | + | let Y = dB.transactionId | |
934 | + | let fE = ev(ew, ee, dS, X, Y) | |
935 | + | if ((fE == fE)) | |
933 | 936 | then { | |
934 | - | let | |
935 | - | let | |
936 | - | let | |
937 | - | let | |
938 | - | let | |
939 | - | let | |
940 | - | then ( | |
937 | + | let ey = fE._5 | |
938 | + | let fu = fE._4 | |
939 | + | let dP = fE._3 | |
940 | + | let cX = fE._2 | |
941 | + | let fF = fE._1 | |
942 | + | let dJ = if (if ((fn > 0)) | |
943 | + | then (fn > fF) | |
941 | 944 | else false) | |
942 | - | then aG(makeString(["amount to receive is less than ", toString( | |
943 | - | else | |
944 | - | let | |
945 | - | if (( | |
945 | + | then aG(makeString(["amount to receive is less than ", toString(fn)], "")) | |
946 | + | else fF | |
947 | + | let fG = invoke(aJ, "burn", [ee], [AttachedPayment(dS, ee)]) | |
948 | + | if ((fG == fG)) | |
946 | 949 | then { | |
947 | - | let | |
948 | - | let | |
949 | - | then [ScriptTransfer(aK, | |
950 | + | let fH = [ScriptTransfer(X, dJ, ew)] | |
951 | + | let fy = if ((dP > 0)) | |
952 | + | then [ScriptTransfer(aK, dP, ew)] | |
950 | 953 | else nil | |
951 | - | let | |
952 | - | let | |
954 | + | let fI = { | |
955 | + | let fJ = if ((this == aK)) | |
953 | 956 | then 0 | |
954 | - | else | |
955 | - | if ( | |
956 | - | then $Tuple2(-(( | |
957 | - | else $Tuple2(0, -(( | |
957 | + | else dP | |
958 | + | if (ey) | |
959 | + | then $Tuple2(-((dJ + fJ)), 0) | |
960 | + | else $Tuple2(0, -((dJ + fJ))) | |
958 | 961 | } | |
959 | - | let | |
960 | - | let | |
961 | - | let | |
962 | - | let | |
963 | - | let | |
964 | - | let | |
965 | - | if (( | |
966 | - | then $Tuple2(((( | |
962 | + | let dl = fI._1 | |
963 | + | let dm = fI._2 | |
964 | + | let fK = dk(dl, dm, 0) | |
965 | + | let fj = fK._1 | |
966 | + | let db = fK._2 | |
967 | + | let fk = do(dj, db) | |
968 | + | if ((fk == fk)) | |
969 | + | then $Tuple2((((cX ++ fH) ++ fy) ++ fj), dJ) | |
967 | 970 | else throw("Strict value is not equal to itself.") | |
968 | 971 | } | |
969 | 972 | else throw("Strict value is not equal to itself.") | |
970 | 973 | } | |
971 | 974 | else throw("Strict value is not equal to itself.") | |
972 | 975 | } | |
973 | 976 | else throw("Strict value is not equal to itself.") | |
974 | 977 | } | |
975 | 978 | ||
976 | 979 | ||
977 | 980 | ||
978 | - | @Callable( | |
979 | - | func getOneTknREADONLY ( | |
980 | - | let | |
981 | - | let | |
982 | - | let | |
983 | - | let | |
984 | - | let | |
985 | - | let | |
986 | - | $Tuple2(nil, $Tuple3( | |
981 | + | @Callable(dB) | |
982 | + | func getOneTknREADONLY (ew,ee) = { | |
983 | + | let fL = ev(aQ(ew), ee, aZ, unit, unit) | |
984 | + | let fF = fL._1 | |
985 | + | let cX = fL._2 | |
986 | + | let dP = fL._3 | |
987 | + | let fu = fL._4 | |
988 | + | let ey = fL._5 | |
989 | + | $Tuple2(nil, $Tuple3(fF, dP, fu)) | |
987 | 990 | } | |
988 | 991 | ||
989 | 992 | ||
990 | 993 | ||
991 | - | @Callable( | |
992 | - | func unstakeAndGetOneTkn ( | |
993 | - | let | |
994 | - | let | |
995 | - | if ($isInstanceOf( | |
996 | - | then | |
997 | - | else throw(($getType( | |
994 | + | @Callable(dB) | |
995 | + | func unstakeAndGetOneTkn (fM,fC,fn) = { | |
996 | + | let fp = { | |
997 | + | let fq = invoke(aJ, "isPoolOneTokenOperationsDisabledREADONLY", [toString(this)], nil) | |
998 | + | if ($isInstanceOf(fq, "Boolean")) | |
999 | + | then fq | |
1000 | + | else throw(($getType(fq) + " couldn't be cast to Boolean")) | |
998 | 1001 | } | |
999 | - | let | |
1002 | + | let fD = if (if (aL()) | |
1000 | 1003 | then true | |
1001 | 1004 | else (aY == n)) | |
1002 | 1005 | then true | |
1003 | - | else | |
1004 | - | let | |
1006 | + | else fp | |
1007 | + | let ex = [if (if (!(fD)) | |
1005 | 1008 | then true | |
1006 | - | else | |
1009 | + | else eR(dB)) | |
1007 | 1010 | then true | |
1008 | - | else aG("get operation is blocked by admin"), if ((size( | |
1011 | + | else aG("get operation is blocked by admin"), if ((size(dB.payments) == 0)) | |
1009 | 1012 | then true | |
1010 | 1013 | else aG("no payments are expected")] | |
1011 | - | if (( | |
1014 | + | if ((ex == ex)) | |
1012 | 1015 | then { | |
1013 | - | let | |
1014 | - | let X = | |
1015 | - | let Y = | |
1016 | - | let | |
1017 | - | let | |
1018 | - | if (( | |
1016 | + | let ew = aQ(fC) | |
1017 | + | let X = dB.caller | |
1018 | + | let Y = dB.transactionId | |
1019 | + | let dj = dc(toBigInt(0), toBigInt(0), toBigInt(0)) | |
1020 | + | let fN = invoke(bf, "unstake", [toBase58String(aZ), fM], nil) | |
1021 | + | if ((fN == fN)) | |
1019 | 1022 | then { | |
1020 | - | let | |
1021 | - | if (( | |
1023 | + | let fO = ev(ew, fM, aZ, X, Y) | |
1024 | + | if ((fO == fO)) | |
1022 | 1025 | then { | |
1023 | - | let | |
1024 | - | let | |
1025 | - | let | |
1026 | - | let | |
1027 | - | let | |
1028 | - | let | |
1029 | - | then ( | |
1026 | + | let ey = fO._5 | |
1027 | + | let fu = fO._4 | |
1028 | + | let dP = fO._3 | |
1029 | + | let cX = fO._2 | |
1030 | + | let fF = fO._1 | |
1031 | + | let dJ = if (if ((fn > 0)) | |
1032 | + | then (fn > fF) | |
1030 | 1033 | else false) | |
1031 | - | then aG(makeString(["amount to receive is less than ", toString( | |
1032 | - | else | |
1033 | - | let | |
1034 | - | if (( | |
1034 | + | then aG(makeString(["amount to receive is less than ", toString(fn)], "")) | |
1035 | + | else fF | |
1036 | + | let fG = invoke(aJ, "burn", [fM], [AttachedPayment(aZ, fM)]) | |
1037 | + | if ((fG == fG)) | |
1035 | 1038 | then { | |
1036 | - | let | |
1037 | - | let | |
1038 | - | then [ScriptTransfer(aK, | |
1039 | + | let fH = [ScriptTransfer(dB.caller, dJ, ew)] | |
1040 | + | let fy = if ((dP > 0)) | |
1041 | + | then [ScriptTransfer(aK, dP, ew)] | |
1039 | 1042 | else nil | |
1040 | - | let | |
1041 | - | let | |
1043 | + | let fP = { | |
1044 | + | let fJ = if ((this == aK)) | |
1042 | 1045 | then 0 | |
1043 | - | else | |
1044 | - | if ( | |
1045 | - | then $Tuple2(-(( | |
1046 | - | else $Tuple2(0, -(( | |
1046 | + | else dP | |
1047 | + | if (ey) | |
1048 | + | then $Tuple2(-((dJ + fJ)), 0) | |
1049 | + | else $Tuple2(0, -((dJ + fJ))) | |
1047 | 1050 | } | |
1048 | - | let | |
1049 | - | let | |
1050 | - | let | |
1051 | - | let | |
1052 | - | let | |
1053 | - | let | |
1054 | - | if (( | |
1055 | - | then $Tuple2(((( | |
1051 | + | let dl = fP._1 | |
1052 | + | let dm = fP._2 | |
1053 | + | let fQ = dk(dl, dm, 0) | |
1054 | + | let fj = fQ._1 | |
1055 | + | let db = fQ._2 | |
1056 | + | let fk = do(dj, db) | |
1057 | + | if ((fk == fk)) | |
1058 | + | then $Tuple2((((cX ++ fH) ++ fy) ++ fj), dJ) | |
1056 | 1059 | else throw("Strict value is not equal to itself.") | |
1057 | 1060 | } | |
1058 | 1061 | else throw("Strict value is not equal to itself.") | |
1059 | 1062 | } | |
1060 | 1063 | else throw("Strict value is not equal to itself.") | |
1061 | 1064 | } | |
1062 | 1065 | else throw("Strict value is not equal to itself.") | |
1063 | 1066 | } | |
1064 | 1067 | else throw("Strict value is not equal to itself.") | |
1065 | 1068 | } | |
1066 | 1069 | ||
1067 | 1070 | ||
1068 | 1071 | ||
1069 | - | @Callable( | |
1072 | + | @Callable(dB) | |
1070 | 1073 | func get () = { | |
1071 | - | let | |
1072 | - | let | |
1073 | - | let | |
1074 | - | let | |
1075 | - | let | |
1076 | - | let | |
1077 | - | let | |
1078 | - | let | |
1079 | - | if (( | |
1074 | + | let cI = dA(dB) | |
1075 | + | let fR = cI._1 | |
1076 | + | let cp = cI._2 | |
1077 | + | let dD = cI._3 | |
1078 | + | let bX = cI._4 | |
1079 | + | let cq = cI._5 | |
1080 | + | let dj = dc(toBigInt(0), toBigInt(0), toBigInt(dD)) | |
1081 | + | let fS = invoke(aJ, "burn", [dD], [AttachedPayment(bX, dD)]) | |
1082 | + | if ((fS == fS)) | |
1080 | 1083 | then { | |
1081 | - | let | |
1082 | - | let | |
1083 | - | let | |
1084 | - | let | |
1085 | - | if (( | |
1086 | - | then ( | |
1084 | + | let fT = dk(-(fR), -(cp), 0) | |
1085 | + | let fj = fT._1 | |
1086 | + | let db = fT._2 | |
1087 | + | let fk = do(dj, db) | |
1088 | + | if ((fk == fk)) | |
1089 | + | then (cq ++ fj) | |
1087 | 1090 | else throw("Strict value is not equal to itself.") | |
1088 | 1091 | } | |
1089 | 1092 | else throw("Strict value is not equal to itself.") | |
1090 | 1093 | } | |
1091 | 1094 | ||
1092 | 1095 | ||
1093 | 1096 | ||
1094 | - | @Callable( | |
1095 | - | func getNoLess ( | |
1096 | - | let | |
1097 | - | let | |
1098 | - | let | |
1099 | - | let | |
1100 | - | let | |
1101 | - | let | |
1102 | - | if (( | |
1103 | - | then throw(((("noLessThenAmtAsset failed: " + toString( | |
1104 | - | else if (( | |
1105 | - | then throw(((("noLessThenPriceAsset failed: " + toString( | |
1097 | + | @Callable(dB) | |
1098 | + | func getNoLess (fU,fV) = { | |
1099 | + | let cI = dA(dB) | |
1100 | + | let co = cI._1 | |
1101 | + | let cp = cI._2 | |
1102 | + | let dD = cI._3 | |
1103 | + | let bX = cI._4 | |
1104 | + | let cq = cI._5 | |
1105 | + | if ((fU > co)) | |
1106 | + | then throw(((("noLessThenAmtAsset failed: " + toString(co)) + " < ") + toString(fU))) | |
1107 | + | else if ((fV > cp)) | |
1108 | + | then throw(((("noLessThenPriceAsset failed: " + toString(cp)) + " < ") + toString(fV))) | |
1106 | 1109 | else { | |
1107 | - | let | |
1108 | - | let | |
1109 | - | if (( | |
1110 | + | let dj = dc(toBigInt(0), toBigInt(0), toBigInt(dD)) | |
1111 | + | let fS = invoke(aJ, "burn", [dD], [AttachedPayment(bX, dD)]) | |
1112 | + | if ((fS == fS)) | |
1110 | 1113 | then { | |
1111 | - | let | |
1112 | - | let | |
1113 | - | let | |
1114 | - | let | |
1115 | - | if (( | |
1116 | - | then ( | |
1114 | + | let fW = dk(-(co), -(cp), 0) | |
1115 | + | let fj = fW._1 | |
1116 | + | let db = fW._2 | |
1117 | + | let fk = do(dj, db) | |
1118 | + | if ((fk == fk)) | |
1119 | + | then (cq ++ fj) | |
1117 | 1120 | else throw("Strict value is not equal to itself.") | |
1118 | 1121 | } | |
1119 | 1122 | else throw("Strict value is not equal to itself.") | |
1120 | 1123 | } | |
1121 | 1124 | } | |
1122 | 1125 | ||
1123 | 1126 | ||
1124 | 1127 | ||
1125 | - | @Callable( | |
1126 | - | func unstakeAndGet ( | |
1127 | - | let | |
1128 | + | @Callable(dB) | |
1129 | + | func unstakeAndGet (dJ) = { | |
1130 | + | let fX = if ((size(dB.payments) != 0)) | |
1128 | 1131 | then throw("No payments are expected") | |
1129 | 1132 | else true | |
1130 | - | if (( | |
1133 | + | if ((fX == fX)) | |
1131 | 1134 | then { | |
1132 | - | let | |
1133 | - | let | |
1134 | - | let | |
1135 | - | let | |
1136 | - | if (( | |
1135 | + | let bM = aN() | |
1136 | + | let bZ = fromBase58String(bM[q]) | |
1137 | + | let dj = dc(toBigInt(0), toBigInt(0), toBigInt(0)) | |
1138 | + | let fN = invoke(bf, "unstake", [toBase58String(bZ), dJ], nil) | |
1139 | + | if ((fN == fN)) | |
1137 | 1140 | then { | |
1138 | - | let | |
1139 | - | let | |
1140 | - | let | |
1141 | - | let | |
1142 | - | let | |
1143 | - | let | |
1141 | + | let cI = bV(toBase58String(dB.transactionId), toBase58String(bZ), dJ, dB.caller) | |
1142 | + | let co = cI._1 | |
1143 | + | let cp = cI._2 | |
1144 | + | let cc = parseIntValue(cI._9) | |
1145 | + | let cq = cI._10 | |
1146 | + | let fY = if (if (aL()) | |
1144 | 1147 | then true | |
1145 | - | else ( | |
1146 | - | then throw(("Get operation is blocked by admin. Status = " + toString( | |
1148 | + | else (cc == n)) | |
1149 | + | then throw(("Get operation is blocked by admin. Status = " + toString(cc))) | |
1147 | 1150 | else true | |
1148 | - | if (( | |
1151 | + | if ((fY == fY)) | |
1149 | 1152 | then { | |
1150 | - | let | |
1151 | - | if (( | |
1153 | + | let fS = invoke(aJ, "burn", [dJ], [AttachedPayment(bZ, dJ)]) | |
1154 | + | if ((fS == fS)) | |
1152 | 1155 | then { | |
1153 | - | let | |
1154 | - | let | |
1155 | - | let | |
1156 | - | let | |
1157 | - | if (( | |
1158 | - | then ( | |
1156 | + | let fZ = dk(-(co), -(cp), 0) | |
1157 | + | let fj = fZ._1 | |
1158 | + | let db = fZ._2 | |
1159 | + | let fk = do(dj, db) | |
1160 | + | if ((fk == fk)) | |
1161 | + | then (cq ++ fj) | |
1159 | 1162 | else throw("Strict value is not equal to itself.") | |
1160 | 1163 | } | |
1161 | 1164 | else throw("Strict value is not equal to itself.") | |
1162 | 1165 | } | |
1163 | 1166 | else throw("Strict value is not equal to itself.") | |
1164 | 1167 | } | |
1165 | 1168 | else throw("Strict value is not equal to itself.") | |
1166 | 1169 | } | |
1167 | 1170 | else throw("Strict value is not equal to itself.") | |
1168 | 1171 | } | |
1169 | 1172 | ||
1170 | 1173 | ||
1171 | 1174 | ||
1172 | - | @Callable( | |
1173 | - | func unstakeAndGetNoLess ( | |
1174 | - | let | |
1175 | + | @Callable(dB) | |
1176 | + | func unstakeAndGetNoLess (fM,ga,fV) = { | |
1177 | + | let fD = if (aL()) | |
1175 | 1178 | then true | |
1176 | 1179 | else (aY == n) | |
1177 | - | let | |
1180 | + | let ex = [if (!(fD)) | |
1178 | 1181 | then true | |
1179 | - | else throw("get operation is blocked by admin"), if ((size( | |
1182 | + | else throw("get operation is blocked by admin"), if ((size(dB.payments) == 0)) | |
1180 | 1183 | then true | |
1181 | 1184 | else throw("no payments are expected")] | |
1182 | - | if (( | |
1185 | + | if ((ex == ex)) | |
1183 | 1186 | then { | |
1184 | - | let | |
1185 | - | let | |
1186 | - | if (( | |
1187 | + | let dj = dc(toBigInt(0), toBigInt(0), toBigInt(0)) | |
1188 | + | let fN = invoke(bf, "unstake", [toBase58String(aZ), fM], nil) | |
1189 | + | if ((fN == fN)) | |
1187 | 1190 | then { | |
1188 | - | let | |
1189 | - | let | |
1190 | - | let | |
1191 | - | let | |
1192 | - | let | |
1191 | + | let cI = bV(toBase58String(dB.transactionId), toBase58String(aZ), fM, dB.caller) | |
1192 | + | let co = cI._1 | |
1193 | + | let cp = cI._2 | |
1194 | + | let cq = cI._10 | |
1195 | + | let gb = [if ((co >= ga)) | |
1193 | 1196 | then true | |
1194 | - | else throw(makeString(["amount asset amount to receive is less than ", toString( | |
1197 | + | else throw(makeString(["amount asset amount to receive is less than ", toString(ga)], "")), if ((cp >= fV)) | |
1195 | 1198 | then true | |
1196 | - | else throw(makeString(["price asset amount to receive is less than ", toString( | |
1197 | - | if (( | |
1199 | + | else throw(makeString(["price asset amount to receive is less than ", toString(fV)], ""))] | |
1200 | + | if ((gb == gb)) | |
1198 | 1201 | then { | |
1199 | - | let | |
1200 | - | if (( | |
1202 | + | let fS = invoke(aJ, "burn", [fM], [AttachedPayment(aZ, fM)]) | |
1203 | + | if ((fS == fS)) | |
1201 | 1204 | then { | |
1202 | - | let | |
1203 | - | let | |
1204 | - | let | |
1205 | - | let | |
1206 | - | if (( | |
1207 | - | then ( | |
1205 | + | let gc = dk(-(co), -(cp), 0) | |
1206 | + | let fj = gc._1 | |
1207 | + | let db = gc._2 | |
1208 | + | let fk = do(dj, db) | |
1209 | + | if ((fk == fk)) | |
1210 | + | then (cq ++ fj) | |
1208 | 1211 | else throw("Strict value is not equal to itself.") | |
1209 | 1212 | } | |
1210 | 1213 | else throw("Strict value is not equal to itself.") | |
1211 | 1214 | } | |
1212 | 1215 | else throw("Strict value is not equal to itself.") | |
1213 | 1216 | } | |
1214 | 1217 | else throw("Strict value is not equal to itself.") | |
1215 | 1218 | } | |
1216 | 1219 | else throw("Strict value is not equal to itself.") | |
1217 | 1220 | } | |
1218 | 1221 | ||
1219 | 1222 | ||
1220 | 1223 | ||
1221 | - | @Callable( | |
1222 | - | func activate ( | |
1224 | + | @Callable(dB) | |
1225 | + | func activate (gd,ge) = if ((toString(dB.caller) != toString(aJ))) | |
1223 | 1226 | then throw("permissions denied") | |
1224 | - | else $Tuple2([StringEntry(aa(), | |
1227 | + | else $Tuple2([StringEntry(aa(), gd), StringEntry(ab(), ge)], "success") | |
1225 | 1228 | ||
1226 | 1229 | ||
1227 | 1230 | ||
1228 | - | @Callable( | |
1231 | + | @Callable(dB) | |
1229 | 1232 | func refreshKLp () = { | |
1230 | - | let | |
1231 | - | let | |
1233 | + | let gf = valueOrElse(getInteger(ag), 0) | |
1234 | + | let gg = if (((height - gf) >= aj)) | |
1232 | 1235 | then unit | |
1233 | 1236 | else aG(makeString([toString(aj), " blocks have not passed since the previous call"], "")) | |
1234 | - | if (( | |
1237 | + | if ((gg == gg)) | |
1235 | 1238 | then { | |
1236 | - | let | |
1237 | - | let | |
1238 | - | let | |
1239 | - | let | |
1240 | - | let | |
1241 | - | then | |
1239 | + | let dv = valueOrErrorMessage(parseBigInt(valueOrElse(getString(this, af), "0")), aI("invalid kLp")) | |
1240 | + | let gh = dk(0, 0, 0) | |
1241 | + | let gi = gh._1 | |
1242 | + | let db = gh._2 | |
1243 | + | let dn = if ((dv != db)) | |
1244 | + | then gi | |
1242 | 1245 | else aG("nothing to refresh") | |
1243 | - | $Tuple2( | |
1246 | + | $Tuple2(dn, toString(db)) | |
1244 | 1247 | } | |
1245 | 1248 | else throw("Strict value is not equal to itself.") | |
1246 | 1249 | } | |
1247 | 1250 | ||
1248 | 1251 | ||
1249 | 1252 | ||
1250 | - | @Callable( | |
1253 | + | @Callable(dB) | |
1251 | 1254 | func getPoolConfigWrapperREADONLY () = $Tuple2(nil, aN()) | |
1252 | 1255 | ||
1253 | 1256 | ||
1254 | 1257 | ||
1255 | - | @Callable( | |
1258 | + | @Callable(dB) | |
1256 | 1259 | func getAccBalanceWrapperREADONLY (bx) = $Tuple2(nil, bw(bx)) | |
1257 | 1260 | ||
1258 | 1261 | ||
1259 | 1262 | ||
1260 | - | @Callable( | |
1261 | - | func calcPricesWrapperREADONLY ( | |
1262 | - | let | |
1263 | - | $Tuple2(nil, [toString( | |
1263 | + | @Callable(dB) | |
1264 | + | func calcPricesWrapperREADONLY (bG,bH,bL) = { | |
1265 | + | let bU = bK(bG, bH, bL) | |
1266 | + | $Tuple2(nil, [toString(bU[0]), toString(bU[1]), toString(bU[2])]) | |
1264 | 1267 | } | |
1265 | 1268 | ||
1266 | 1269 | ||
1267 | 1270 | ||
1268 | - | @Callable( | |
1271 | + | @Callable(dB) | |
1269 | 1272 | func toX18WrapperREADONLY (E,F) = $Tuple2(nil, toString(D(E, F))) | |
1270 | 1273 | ||
1271 | 1274 | ||
1272 | 1275 | ||
1273 | - | @Callable( | |
1276 | + | @Callable(dB) | |
1274 | 1277 | func fromX18WrapperREADONLY (H,I) = $Tuple2(nil, G(parseBigIntValue(H), I)) | |
1275 | 1278 | ||
1276 | 1279 | ||
1277 | 1280 | ||
1278 | - | @Callable( | |
1281 | + | @Callable(dB) | |
1279 | 1282 | func calcPriceBigIntWrapperREADONLY (bz,bA) = $Tuple2(nil, toString(by(parseBigIntValue(bz), parseBigIntValue(bA)))) | |
1280 | 1283 | ||
1281 | 1284 | ||
1282 | 1285 | ||
1283 | - | @Callable( | |
1284 | - | func estimatePutOperationWrapperREADONLY ( | |
1286 | + | @Callable(dB) | |
1287 | + | func estimatePutOperationWrapperREADONLY (bW,cs,ct,cu,cv,cw,X,cx,cy) = $Tuple2(nil, cr(bW, cs, ct, cu, cv, cw, X, cx, cy)) | |
1285 | 1288 | ||
1286 | 1289 | ||
1287 | 1290 | ||
1288 | - | @Callable( | |
1289 | - | func estimateGetOperationWrapperREADONLY ( | |
1290 | - | let | |
1291 | - | $Tuple2(nil, $Tuple10( | |
1291 | + | @Callable(dB) | |
1292 | + | func estimateGetOperationWrapperREADONLY (bW,bX,bY,X) = { | |
1293 | + | let cI = bV(bW, bX, bY, addressFromStringValue(X)) | |
1294 | + | $Tuple2(nil, $Tuple10(cI._1, cI._2, cI._3, cI._4, cI._5, cI._6, cI._7, toString(cI._8), cI._9, cI._10)) | |
1292 | 1295 | } | |
1293 | 1296 | ||
1294 | 1297 | ||
1295 | 1298 | ||
1296 | - | @Callable( | |
1299 | + | @Callable(dB) | |
1297 | 1300 | func statsREADONLY () = { | |
1298 | - | let | |
1299 | - | let | |
1300 | - | let | |
1301 | - | let | |
1302 | - | let | |
1303 | - | let | |
1304 | - | let | |
1305 | - | let | |
1306 | - | let | |
1307 | - | let | |
1308 | - | let | |
1309 | - | let | |
1301 | + | let bM = aN() | |
1302 | + | let bZ = fromBase58String(bM[q]) | |
1303 | + | let gj = bM[r] | |
1304 | + | let gk = bM[s] | |
1305 | + | let cB = bM[v] | |
1306 | + | let cC = bM[w] | |
1307 | + | let bN = parseIntValue(bM[t]) | |
1308 | + | let bO = parseIntValue(bM[u]) | |
1309 | + | let gl = valueOrErrorMessage(assetInfo(bZ), (("Asset " + toBase58String(bZ)) + " doesn't exist")).quantity | |
1310 | + | let gm = bw(gj) | |
1311 | + | let gn = bw(gk) | |
1312 | + | let go = if ((gl == 0)) | |
1310 | 1313 | then [e, e, e] | |
1311 | - | else | |
1312 | - | let | |
1313 | - | let | |
1314 | - | let | |
1315 | - | let | |
1316 | - | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d", toString( | |
1314 | + | else bK(gm, gn, gl) | |
1315 | + | let cj = 0 | |
1316 | + | let gp = G(go[1], b) | |
1317 | + | let gq = G(go[2], b) | |
1318 | + | let gr = value(getInteger(aJ, au(toString(this)))) | |
1319 | + | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d", toString(gm), toString(gn), toString(gl), toString(cj), toString(gp), toString(gq), toString(gr)], j)) | |
1317 | 1320 | } | |
1318 | 1321 | ||
1319 | 1322 | ||
1320 | 1323 | ||
1321 | - | @Callable( | |
1322 | - | func evaluatePutByAmountAssetREADONLY ( | |
1323 | - | let | |
1324 | - | let | |
1325 | - | let | |
1326 | - | let | |
1327 | - | let | |
1328 | - | let | |
1329 | - | let | |
1330 | - | let | |
1331 | - | let | |
1332 | - | let | |
1333 | - | let | |
1334 | - | let | |
1335 | - | let | |
1336 | - | let | |
1337 | - | let | |
1324 | + | @Callable(dB) | |
1325 | + | func evaluatePutByAmountAssetREADONLY (ct) = { | |
1326 | + | let bM = aN() | |
1327 | + | let bZ = fromBase58String(bM[q]) | |
1328 | + | let cz = bM[r] | |
1329 | + | let ca = fromBase58String(cz) | |
1330 | + | let cA = bM[s] | |
1331 | + | let cb = fromBase58String(cA) | |
1332 | + | let bN = parseIntValue(bM[t]) | |
1333 | + | let bO = parseIntValue(bM[u]) | |
1334 | + | let cc = bM[p] | |
1335 | + | let gl = valueOrErrorMessage(assetInfo(bZ), (("Asset " + toBase58String(bZ)) + " doesn't exist")).quantity | |
1336 | + | let gm = bw(cz) | |
1337 | + | let gn = bw(cA) | |
1338 | + | let bI = D(gm, bN) | |
1339 | + | let bJ = D(gn, bO) | |
1340 | + | let ci = if ((gl == 0)) | |
1338 | 1341 | then e | |
1339 | - | else by( | |
1340 | - | let | |
1341 | - | let | |
1342 | - | let | |
1343 | - | let | |
1344 | - | let | |
1345 | - | let | |
1346 | - | let | |
1347 | - | let | |
1348 | - | let | |
1349 | - | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d%d", toString( | |
1342 | + | else by(bJ, bI) | |
1343 | + | let cF = D(ct, bN) | |
1344 | + | let cG = fraction(cF, ci, d) | |
1345 | + | let cv = G(cG, bO) | |
1346 | + | let dH = cr("", 500000, ct, ca, cv, cb, "", true, false) | |
1347 | + | let cQ = dH._1 | |
1348 | + | let gs = dH._3 | |
1349 | + | let ce = dH._4 | |
1350 | + | let cg = dH._5 | |
1351 | + | let cd = dH._6 | |
1352 | + | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d%d", toString(cQ), toString(G(ci, b)), toString(ce), toString(cg), toString(cd), cc, toString(ct), toString(cv)], j)) | |
1350 | 1353 | } | |
1351 | 1354 | ||
1352 | 1355 | ||
1353 | 1356 | ||
1354 | - | @Callable( | |
1355 | - | func evaluatePutByPriceAssetREADONLY ( | |
1356 | - | let | |
1357 | - | let | |
1358 | - | let | |
1359 | - | let | |
1360 | - | let | |
1361 | - | let | |
1362 | - | let | |
1363 | - | let | |
1364 | - | let | |
1365 | - | let | |
1366 | - | let | |
1367 | - | let | |
1368 | - | let | |
1369 | - | let | |
1370 | - | let | |
1357 | + | @Callable(dB) | |
1358 | + | func evaluatePutByPriceAssetREADONLY (cv) = { | |
1359 | + | let bM = aN() | |
1360 | + | let bZ = fromBase58String(bM[q]) | |
1361 | + | let cz = bM[r] | |
1362 | + | let ca = fromBase58String(cz) | |
1363 | + | let cA = bM[s] | |
1364 | + | let cb = fromBase58String(cA) | |
1365 | + | let bN = parseIntValue(bM[t]) | |
1366 | + | let bO = parseIntValue(bM[u]) | |
1367 | + | let cc = bM[p] | |
1368 | + | let gl = valueOrErrorMessage(assetInfo(bZ), (("Asset " + toBase58String(bZ)) + " doesn't exist")).quantity | |
1369 | + | let gt = bw(cz) | |
1370 | + | let gu = bw(cA) | |
1371 | + | let gv = D(gt, bN) | |
1372 | + | let gw = D(gu, bO) | |
1373 | + | let ci = if ((gl == 0)) | |
1371 | 1374 | then e | |
1372 | - | else by( | |
1373 | - | let | |
1374 | - | let | |
1375 | - | let | |
1376 | - | let | |
1377 | - | let | |
1378 | - | let | |
1379 | - | let | |
1380 | - | let | |
1381 | - | let | |
1382 | - | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d%d", toString( | |
1375 | + | else by(gw, gv) | |
1376 | + | let cG = D(cv, bO) | |
1377 | + | let cF = fraction(cG, d, ci) | |
1378 | + | let ct = G(cF, bN) | |
1379 | + | let dH = cr("", 500000, ct, ca, cv, cb, "", true, false) | |
1380 | + | let cQ = dH._1 | |
1381 | + | let gs = dH._3 | |
1382 | + | let ce = dH._4 | |
1383 | + | let cg = dH._5 | |
1384 | + | let cd = dH._6 | |
1385 | + | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d%d", toString(cQ), toString(G(ci, b)), toString(ce), toString(cg), toString(cd), cc, toString(ct), toString(cv)], j)) | |
1383 | 1386 | } | |
1384 | 1387 | ||
1385 | 1388 | ||
1386 | 1389 | ||
1387 | - | @Callable( | |
1388 | - | func evaluateGetREADONLY ( | |
1389 | - | let | |
1390 | - | let | |
1391 | - | let | |
1392 | - | let | |
1393 | - | let | |
1394 | - | let | |
1395 | - | let | |
1396 | - | let | |
1397 | - | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d", toString( | |
1390 | + | @Callable(dB) | |
1391 | + | func evaluateGetREADONLY (gx,gy) = { | |
1392 | + | let cI = bV("", gx, gy, this) | |
1393 | + | let co = cI._1 | |
1394 | + | let cp = cI._2 | |
1395 | + | let ce = cI._5 | |
1396 | + | let cg = cI._6 | |
1397 | + | let cd = cI._7 | |
1398 | + | let cj = cI._8 | |
1399 | + | let cc = parseIntValue(cI._9) | |
1400 | + | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d", toString(co), toString(cp), toString(ce), toString(cg), toString(cd), toString(cj), toString(cc)], j)) | |
1398 | 1401 | } | |
1399 | 1402 | ||
1400 | 1403 | ||
1401 | - | @Verifier( | |
1402 | - | func | |
1403 | - | let | |
1404 | - | let | |
1405 | - | if ($isInstanceOf( | |
1404 | + | @Verifier(gz) | |
1405 | + | func gA () = { | |
1406 | + | let gB = { | |
1407 | + | let dM = eO() | |
1408 | + | if ($isInstanceOf(dM, "ByteVector")) | |
1406 | 1409 | then { | |
1407 | - | let | |
1408 | - | | |
1410 | + | let eS = dM | |
1411 | + | eS | |
1409 | 1412 | } | |
1410 | - | else if ($isInstanceOf( | |
1411 | - | then | |
1413 | + | else if ($isInstanceOf(dM, "Unit")) | |
1414 | + | then gz.senderPublicKey | |
1412 | 1415 | else throw("Match error") | |
1413 | 1416 | } | |
1414 | - | let | |
1415 | - | if ($isInstanceOf( | |
1417 | + | let dM = gz | |
1418 | + | if ($isInstanceOf(dM, "Order")) | |
1416 | 1419 | then { | |
1417 | - | let | |
1418 | - | let | |
1419 | - | let az = | |
1420 | - | let aA = sigVerify( | |
1421 | - | let aB = sigVerify( | |
1420 | + | let dr = dM | |
1421 | + | let gC = aM() | |
1422 | + | let az = dq(dr) | |
1423 | + | let aA = sigVerify(dr.bodyBytes, dr.proofs[0], dr.senderPublicKey) | |
1424 | + | let aB = sigVerify(dr.bodyBytes, dr.proofs[1], gC) | |
1422 | 1425 | if (if (if (az) | |
1423 | 1426 | then aA | |
1424 | 1427 | else false) | |
1425 | 1428 | then aB | |
1426 | 1429 | else false) | |
1427 | 1430 | then true | |
1428 | 1431 | else ay(az, aA, aB) | |
1429 | 1432 | } | |
1430 | - | else if ($isInstanceOf( | |
1433 | + | else if ($isInstanceOf(dM, "SetScriptTransaction")) | |
1431 | 1434 | then { | |
1432 | - | let | |
1433 | - | let | |
1434 | - | let | |
1435 | - | let | |
1436 | - | if (if (( | |
1437 | - | then ( | |
1435 | + | let eP = dM | |
1436 | + | let gD = blake2b256(value(eP.script)) | |
1437 | + | let gE = fromBase64String(value(getString(aJ, aw()))) | |
1438 | + | let gF = scriptHash(this) | |
1439 | + | if (if ((gE == gD)) | |
1440 | + | then (gF != gD) | |
1438 | 1441 | else false) | |
1439 | 1442 | then true | |
1440 | - | else sigVerify( | |
1443 | + | else sigVerify(gz.bodyBytes, gz.proofs[0], gB) | |
1441 | 1444 | } | |
1442 | - | else sigVerify( | |
1445 | + | else sigVerify(gz.bodyBytes, gz.proofs[0], gB) | |
1443 | 1446 | } | |
1444 | 1447 |
github/deemru/w8io/026f985 444.49 ms ◑