tx · 3TGwHp1WxPz6xAPP6pqV6PREGnvHkrkYTpgecRpDui8B 3N8iNNRC4UfDK4aJctSvHajiZ81fzSumCeP: -0.04300000 Waves 2023.10.16 18:08 [2801332] smart account 3N8iNNRC4UfDK4aJctSvHajiZ81fzSumCeP > SELF 0.00000000 Waves
{ "type": 13, "id": "3TGwHp1WxPz6xAPP6pqV6PREGnvHkrkYTpgecRpDui8B", "fee": 4300000, "feeAssetId": null, "timestamp": 1697468930877, "version": 2, "chainId": 84, "sender": "3N8iNNRC4UfDK4aJctSvHajiZ81fzSumCeP", "senderPublicKey": "F7NZd812aXMUyDcj1XaB3wgMJXJfUsq3RhPhrEZ9b6ND", "proofs": [ "2KA7tEoQUyaVaiwiKtDbZcxNG63bkdvVYKEWyTzWg6yZyP3JwzbvPs1gtNoz2kDoayjKYRyjQP398cgZAj21f6D9" ], "script": "base64:BgLjOAgCEgASBQoDAQQBEgcKBQEEAQgBEgQKAgEEEgMKAQESBAoCAQQSBAoCCAESBAoCCAESBAoCCAESBQoDAQgBEgASBAoCAQESAwoBARIFCgMBAQESBAoCCAgSABIAEgMKAQgSBQoDAQEBEgQKAgEBEgQKAggBEgQKAggIEgsKCQgBAQIBAggEBBIGCgQICAEIEgASAwoBARIDCgEBEgQKAggBIgpsUGRlY2ltYWxzIgZzY2FsZTgiDHNjYWxlOEJpZ0ludCIHc2NhbGUxOCIKemVyb0JpZ0ludCIEYmlnMCIEYmlnMSIEYmlnMiILd2F2ZXNTdHJpbmciA1NFUCIKUG9vbEFjdGl2ZSIPUG9vbFB1dERpc2FibGVkIhNQb29sTWF0Y2hlckRpc2FibGVkIgxQb29sU2h1dGRvd24iDmlkeFBvb2xBZGRyZXNzIg1pZHhQb29sU3RhdHVzIhBpZHhQb29sTFBBc3NldElkIg1pZHhBbXRBc3NldElkIg9pZHhQcmljZUFzc2V0SWQiDmlkeEFtdEFzc2V0RGNtIhBpZHhQcmljZUFzc2V0RGNtIg5pZHhJQW10QXNzZXRJZCIQaWR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QUCZ3UDCQABAgUCYVECBFVuaXQIBQJpbQ9zZW5kZXJQdWJsaWNLZXkJAAIBAgtNYXRjaCBlcnJvcgQCYVEFAmltAwkAAQIFAmFRAgVPcmRlcgQCZVMFAmFRBAJpcAkBAmJsAAQCaXEDCQECZU8ACQCUCgIGAgAJAQJlUgEFAmVTBAJhSwgFAmlxAl8xBAJhTAgFAmlxAl8yBAJhTQkA9AMDCAUCZVMJYm9keUJ5dGVzCQCRAwIIBQJlUwZwcm9vZnMAAAgFAmVTD3NlbmRlclB1YmxpY0tleQQCYU4JAPQDAwgFAmVTCWJvZHlCeXRlcwkAkQMCCAUCZVMGcHJvb2ZzAAEFAmlwAwMDBQJhSwUCYU0HBQJhTgcGCQECYUoEBQJhSwUCYUwFAmFNBQJhTgMJAAECBQJhUQIUU2V0U2NyaXB0VHJhbnNhY3Rpb24EAmFWBQJhUQMJAPQDAwgFAmltCWJvZHlCeXRlcwkAkQMCCAUCaW0GcHJvb2ZzAAAFAmlvBgQCaXIJAPYDAQkBBXZhbHVlAQgFAmFWBnNjcmlwdAQCaXMJANsEAQkBBXZhbHVlAQkAnQgCBQJiZAkBAmFGAAQCaXQJAPEHAQUEdGhpcwMJAAACBQJpcwUCaXIJAQIhPQIFAml0BQJpcgcJAPQDAwgFAmltCWJvZHlCeXRlcwkAkQMCCAUCaW0GcHJvb2ZzAAAFAmlv1lDrtA==", "height": 2801332, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: BdV2bGBxQ1ZnnQKGmfXGjn65XXfNfBV7BgMoUbUn3TBe Next: 6DV7S5jtjmU38v36dh2oKbgVL88YZaUmZEEHz7zyHybR Diff:
Old | New | Differences | |
---|---|---|---|
235 | 235 | else throw(($getType(bg) + " couldn't be cast to Int")) | |
236 | 236 | } | |
237 | 237 | ||
238 | - | func bi () = | |
238 | + | func bi (aX) = makeString(["%s%s", "whitelisted", toString(aX)], j) | |
239 | 239 | ||
240 | 240 | ||
241 | - | func bj () = | |
241 | + | func bj (aX) = valueOrElse(getBoolean(bd, bi(aX)), false) | |
242 | 242 | ||
243 | 243 | ||
244 | - | func bk () = { | |
245 | - | let bl = aW(this, ae()) | |
246 | - | let bm = aW(this, af()) | |
247 | - | let az = aZ(bd, aA(bm)) | |
248 | - | let ay = aZ(bd, aA(bl)) | |
244 | + | func bk () = valueOrElse(getBoolean(bd, aC()), false) | |
245 | + | ||
246 | + | ||
247 | + | func bl () = fromBase58String(aW(bd, au())) | |
248 | + | ||
249 | + | ||
250 | + | func bm () = { | |
251 | + | let bn = aW(this, ae()) | |
252 | + | let bo = aW(this, af()) | |
253 | + | let az = aZ(bd, aA(bo)) | |
254 | + | let ay = aZ(bd, aA(bn)) | |
249 | 255 | split(aW(bd, ax(toString(ay), toString(az))), j) | |
250 | 256 | } | |
251 | 257 | ||
252 | 258 | ||
253 | - | func | |
259 | + | func bp (bq) = if ((bq == i)) | |
254 | 260 | then unit | |
255 | - | else fromBase58String( | |
261 | + | else fromBase58String(bq) | |
256 | 262 | ||
257 | 263 | ||
258 | - | func | |
264 | + | func br (bq) = if ((bq == unit)) | |
259 | 265 | then i | |
260 | - | else toBase58String(value( | |
266 | + | else toBase58String(value(bq)) | |
261 | 267 | ||
262 | 268 | ||
263 | - | func | |
269 | + | func bs (bt) = $Tuple7(addressFromStringValue(bt[o]), parseIntValue(bt[p]), fromBase58String(bt[q]), bp(bt[r]), bp(bt[s]), parseIntValue(bt[t]), parseIntValue(bt[u])) | |
264 | 270 | ||
265 | 271 | ||
266 | - | let | |
272 | + | let bu = bs(bm()) | |
267 | 273 | ||
268 | - | let | |
274 | + | let bv = bu | |
269 | 275 | ||
270 | - | let | |
276 | + | let bw = bv._1 | |
271 | 277 | ||
272 | - | let | |
278 | + | let bx = bv._2 | |
273 | 279 | ||
274 | - | let | |
280 | + | let by = bv._3 | |
275 | 281 | ||
276 | - | let | |
282 | + | let bz = bv._4 | |
277 | 283 | ||
278 | - | let | |
284 | + | let bA = bv._5 | |
279 | 285 | ||
280 | - | let | |
286 | + | let bB = bv._6 | |
281 | 287 | ||
282 | - | let | |
288 | + | let bC = bv._7 | |
283 | 289 | ||
284 | - | func | |
290 | + | func bD () = split(aW(bd, at()), j) | |
285 | 291 | ||
286 | 292 | ||
287 | - | let | |
293 | + | let bE = valueOrErrorMessage(addressFromString(bD()[B]), "incorrect staking address") | |
288 | 294 | ||
289 | - | let | |
295 | + | let bF = valueOrErrorMessage(addressFromString(bD()[C]), "incorrect staking address") | |
290 | 296 | ||
291 | - | func | |
297 | + | func bG (bH,bI,bJ,bK,bL,bM,bN,bO,bP,bQ) = makeString(["%d%d%d%d%d%d%d%d%d%d", toString(bH), toString(bI), toString(bJ), toString(bK), toString(bL), toString(bM), toString(bN), toString(bO), toString(bP), toString(bQ)], j) | |
292 | 298 | ||
293 | 299 | ||
294 | - | func | |
300 | + | func bR (bS,bT,bU,bK,bN,bO) = makeString(["%d%d%d%d%d%d", toString(bS), toString(bT), toString(bU), toString(bK), toString(bN), toString(bO)], j) | |
295 | 301 | ||
296 | 302 | ||
297 | - | func | |
298 | - | let | |
303 | + | func bV (ap) = { | |
304 | + | let bW = if ((ap == "WAVES")) | |
299 | 305 | then wavesBalance(this).available | |
300 | 306 | else assetBalance(this, fromBase58String(ap)) | |
301 | - | let | |
302 | - | max([0, | |
307 | + | let bX = ((bW + ar(ap)) - as(ap)) | |
308 | + | max([0, bX]) | |
303 | 309 | } | |
304 | 310 | ||
305 | 311 | ||
306 | - | func | |
312 | + | func bY (bZ,ca) = fraction(bZ, d, ca) | |
307 | 313 | ||
308 | 314 | ||
309 | - | func | |
315 | + | func cb (bZ,ca,L) = fraction(bZ, d, ca, L) | |
310 | 316 | ||
311 | 317 | ||
312 | - | func | |
313 | - | let | |
314 | - | if (( | |
318 | + | func cc (cd) = { | |
319 | + | let ce = invoke(cd, "getRate", nil, nil) | |
320 | + | if ((ce == ce)) | |
315 | 321 | then { | |
316 | - | let aQ = | |
322 | + | let aQ = ce | |
317 | 323 | if ($isInstanceOf(aQ, "Int")) | |
318 | 324 | then { | |
319 | - | let | |
320 | - | | |
325 | + | let cf = aQ | |
326 | + | cf | |
321 | 327 | } | |
322 | 328 | else ba("proxy.getRate() unexpected value") | |
323 | 329 | } | |
325 | 331 | } | |
326 | 332 | ||
327 | 333 | ||
328 | - | func | |
329 | - | let | |
330 | - | if (( | |
334 | + | func cg (ap,ch,ci,cd) = { | |
335 | + | let cj = ar(ap) | |
336 | + | if ((cj == cj)) | |
331 | 337 | then { | |
332 | - | let | |
333 | - | if (( | |
338 | + | let ck = as(ci) | |
339 | + | if ((ck == ck)) | |
334 | 340 | then { | |
335 | - | let | |
336 | - | if (( | |
341 | + | let cl = bp(ap) | |
342 | + | if ((ch > 0)) | |
337 | 343 | then { | |
338 | - | let | |
339 | - | if (( | |
344 | + | let cm = invoke(cd, "deposit", nil, [AttachedPayment(cl, ch)]) | |
345 | + | if ((cm == cm)) | |
340 | 346 | then { | |
341 | - | let aQ = | |
347 | + | let aQ = cm | |
342 | 348 | if ($isInstanceOf(aQ, "Int")) | |
343 | 349 | then { | |
344 | - | let | |
345 | - | let | |
346 | - | let | |
347 | - | [IntegerEntry(ao(ap), | |
350 | + | let cn = aQ | |
351 | + | let co = (cj + ch) | |
352 | + | let cp = (ck + cn) | |
353 | + | [IntegerEntry(ao(ap), co), IntegerEntry(aq(ci), cp)] | |
348 | 354 | } | |
349 | 355 | else nil | |
350 | 356 | } | |
358 | 364 | } | |
359 | 365 | ||
360 | 366 | ||
361 | - | func | |
362 | - | let | |
363 | - | if (( | |
367 | + | func cq (ap,ch,ci,cd,cr,cs) = { | |
368 | + | let cj = ar(ap) | |
369 | + | if ((cj == cj)) | |
364 | 370 | then { | |
365 | - | let | |
366 | - | if (( | |
371 | + | let ck = as(ci) | |
372 | + | if ((ck == ck)) | |
367 | 373 | then { | |
368 | - | let | |
369 | - | if (( | |
374 | + | let ct = cc(cd) | |
375 | + | if ((ct == ct)) | |
370 | 376 | then { | |
371 | - | let | |
372 | - | let | |
373 | - | let | |
374 | - | let | |
375 | - | let | |
376 | - | if (( | |
377 | + | let cu = fraction(cr, cj, ck) | |
378 | + | let cv = bp(ci) | |
379 | + | let cw = fraction(cr, ch, cu) | |
380 | + | let cx = fraction(cr, ch, ct) | |
381 | + | let cy = max([0, (cw - cx)]) | |
382 | + | if ((cx > 0)) | |
377 | 383 | then { | |
378 | - | let | |
379 | - | if (( | |
384 | + | let cz = invoke(cd, "withdraw", nil, [AttachedPayment(cv, cx)]) | |
385 | + | if ((cz == cz)) | |
380 | 386 | then { | |
381 | - | let aQ = | |
387 | + | let aQ = cz | |
382 | 388 | if ($isInstanceOf(aQ, "Int")) | |
383 | 389 | then { | |
384 | - | let | |
385 | - | let | |
386 | - | let | |
387 | - | [IntegerEntry(ao(ap), | |
390 | + | let cA = aQ | |
391 | + | let co = (cj - cA) | |
392 | + | let cp = ((ck - cx) - cy) | |
393 | + | [IntegerEntry(ao(ap), co), IntegerEntry(aq(ci), cp), ScriptTransfer(cs, cy, bp(ci))] | |
388 | 394 | } | |
389 | 395 | else nil | |
390 | 396 | } | |
400 | 406 | } | |
401 | 407 | ||
402 | 408 | ||
403 | - | func | |
409 | + | func cB (ap) = { | |
404 | 410 | let aQ = invoke(bd, "getPoolLeaseConfigREADONLY", [toString(this), ap], nil) | |
405 | 411 | if ($isInstanceOf(aQ, "(Boolean, Int, Int, String, String, Int, String)")) | |
406 | 412 | then { | |
411 | 417 | } | |
412 | 418 | ||
413 | 419 | ||
414 | - | func | |
415 | - | let | |
416 | - | if (( | |
420 | + | func cC (cD,ap,ci,cE,cd,cr,cs) = { | |
421 | + | let cj = ar(ap) | |
422 | + | if ((cj == cj)) | |
417 | 423 | then { | |
418 | - | let | |
419 | - | if (( | |
424 | + | let ck = as(ci) | |
425 | + | if ((ck == ck)) | |
420 | 426 | then { | |
421 | - | let | |
422 | - | let | |
423 | - | let | |
424 | - | if (( | |
427 | + | let cF = max([0, (bV(ap) - cE)]) | |
428 | + | let cG = fraction(cD, cF, 100) | |
429 | + | let cH = (cj - cG) | |
430 | + | if ((cH == 0)) | |
425 | 431 | then nil | |
426 | - | else if ((0 > | |
432 | + | else if ((0 > cH)) | |
427 | 433 | then { | |
428 | - | let | |
429 | - | | |
434 | + | let cI = -(cH) | |
435 | + | cg(ap, cI, ci, cd) | |
430 | 436 | } | |
431 | 437 | else { | |
432 | - | let | |
433 | - | | |
438 | + | let cJ = cH | |
439 | + | cq(ap, cJ, ci, cd, cr, cs) | |
434 | 440 | } | |
435 | 441 | } | |
436 | 442 | else throw("Strict value is not equal to itself.") | |
439 | 445 | } | |
440 | 446 | ||
441 | 447 | ||
442 | - | func | |
443 | - | let | |
444 | - | let | |
445 | - | let | |
446 | - | let | |
447 | - | let | |
448 | - | let | |
449 | - | let | |
450 | - | let | |
451 | - | if ( | |
452 | - | then | |
448 | + | func cK (ap) = { | |
449 | + | let cL = cB(ap) | |
450 | + | let cM = cL._1 | |
451 | + | let cN = cL._2 | |
452 | + | let cE = cL._3 | |
453 | + | let cO = cL._4 | |
454 | + | let cP = cL._5 | |
455 | + | let cr = cL._6 | |
456 | + | let cQ = cL._7 | |
457 | + | if (cM) | |
458 | + | then cC(cN, ap, cP, cE, addressFromStringValue(cO), cr, addressFromStringValue(cQ)) | |
453 | 459 | else nil | |
454 | 460 | } | |
455 | 461 | ||
456 | 462 | ||
457 | - | func | |
458 | - | let | |
459 | - | let | |
460 | - | let | |
461 | - | let | |
462 | - | let | |
463 | - | let | |
464 | - | let | |
465 | - | let | |
466 | - | if ( | |
463 | + | func cR (ap,cS) = { | |
464 | + | let cT = cB(ap) | |
465 | + | let cM = cT._1 | |
466 | + | let cN = cT._2 | |
467 | + | let cE = cT._3 | |
468 | + | let cO = cT._4 | |
469 | + | let cP = cT._5 | |
470 | + | let cr = cT._6 | |
471 | + | let cQ = cT._7 | |
472 | + | if (cM) | |
467 | 473 | then { | |
468 | - | let | |
469 | - | if (( | |
474 | + | let cU = max([0, ((bV(ap) - cS) - cE)]) | |
475 | + | if ((cU == cU)) | |
470 | 476 | then { | |
471 | - | let | |
472 | - | if (( | |
477 | + | let co = fraction(cN, cU, 100) | |
478 | + | if ((co == co)) | |
473 | 479 | then { | |
474 | - | let | |
475 | - | if (( | |
476 | - | then if ((0 > | |
477 | - | then | |
478 | - | else | |
480 | + | let cV = (ar(ap) - co) | |
481 | + | if ((cV == cV)) | |
482 | + | then if ((0 > cV)) | |
483 | + | then cg(ap, -(cV), cP, addressFromStringValue(cO)) | |
484 | + | else cq(ap, cV, cP, addressFromStringValue(cO), cr, addressFromStringValue(cQ)) | |
479 | 485 | else throw("Strict value is not equal to itself.") | |
480 | 486 | } | |
481 | 487 | else throw("Strict value is not equal to itself.") | |
486 | 492 | } | |
487 | 493 | ||
488 | 494 | ||
489 | - | func | |
490 | - | let | |
491 | - | let | |
492 | - | ( | |
495 | + | func cW (cX,cY) = { | |
496 | + | let cZ = cR(aW(this, ae()), cX) | |
497 | + | let da = cR(aW(this, af()), cY) | |
498 | + | (cZ ++ da) | |
493 | 499 | } | |
494 | 500 | ||
495 | 501 | ||
496 | - | func | |
497 | - | let | |
498 | - | let | |
499 | - | | |
502 | + | func db (dc,dd,de,df) = { | |
503 | + | let dg = D(de, dc) | |
504 | + | let dh = D(df, dd) | |
505 | + | bY(dh, dg) | |
500 | 506 | } | |
501 | 507 | ||
502 | 508 | ||
503 | - | func | |
504 | - | let | |
505 | - | let | |
506 | - | let | |
507 | - | let | |
508 | - | let | |
509 | - | let | |
510 | - | let | |
511 | - | let | |
512 | - | let | |
513 | - | [ | |
509 | + | func di (de,df,dj) = { | |
510 | + | let dk = bm() | |
511 | + | let dl = parseIntValue(dk[t]) | |
512 | + | let dm = parseIntValue(dk[u]) | |
513 | + | let dn = db(dl, dm, de, df) | |
514 | + | let ca = D(de, dl) | |
515 | + | let bZ = D(df, dm) | |
516 | + | let do = D(dj, b) | |
517 | + | let dp = bY(ca, do) | |
518 | + | let dq = bY(bZ, do) | |
519 | + | [dn, dp, dq] | |
514 | 520 | } | |
515 | 521 | ||
516 | 522 | ||
517 | - | func | |
518 | - | let | |
519 | - | [H( | |
523 | + | func dr (de,df,dj) = { | |
524 | + | let ds = di(de, df, dj) | |
525 | + | [H(ds[0], b), H(ds[1], b), H(ds[2], b)] | |
520 | 526 | } | |
521 | 527 | ||
522 | 528 | ||
523 | - | func | |
524 | - | let | |
525 | - | let | |
526 | - | let | |
527 | - | let | |
528 | - | let | |
529 | - | let | |
530 | - | let | |
531 | - | let | |
532 | - | if (( | |
529 | + | func dt (du,dv,dw,ab) = { | |
530 | + | let dk = bm() | |
531 | + | let dx = dk[q] | |
532 | + | let dy = dk[r] | |
533 | + | let dz = dk[s] | |
534 | + | let dc = parseIntValue(dk[t]) | |
535 | + | let dd = parseIntValue(dk[u]) | |
536 | + | let dA = dk[p] | |
537 | + | let dB = valueOrErrorMessage(assetInfo(fromBase58String(dx)), (("Asset " + dx) + " doesn't exist")).quantity | |
538 | + | if ((dx != dv)) | |
533 | 539 | then throw("Invalid asset passed.") | |
534 | 540 | else { | |
535 | - | let | |
536 | - | let | |
537 | - | let | |
538 | - | let | |
539 | - | let | |
540 | - | let | |
541 | - | let | |
542 | - | let | |
543 | - | let | |
544 | - | let | |
545 | - | let | |
546 | - | let | |
547 | - | let | |
541 | + | let dC = bV(dy) | |
542 | + | let dD = D(dC, dc) | |
543 | + | let dE = bV(dz) | |
544 | + | let dF = D(dE, dd) | |
545 | + | let dG = bY(dF, dD) | |
546 | + | let dH = H(dG, b) | |
547 | + | let dI = D(dw, b) | |
548 | + | let dJ = D(dB, b) | |
549 | + | let dK = fraction(dD, dI, dJ) | |
550 | + | let dL = fraction(dF, dI, dJ) | |
551 | + | let dM = K(dK, dc, FLOOR) | |
552 | + | let dN = K(dL, dd, FLOOR) | |
553 | + | let dO = if ((du == "")) | |
548 | 554 | then nil | |
549 | - | else [ScriptTransfer(ab, | |
555 | + | else [ScriptTransfer(ab, dM, if ((dy == "WAVES")) | |
550 | 556 | then unit | |
551 | - | else fromBase58String( | |
557 | + | else fromBase58String(dy)), ScriptTransfer(ab, dN, if ((dz == "WAVES")) | |
552 | 558 | then unit | |
553 | - | else fromBase58String( | |
554 | - | $Tuple10( | |
559 | + | else fromBase58String(dz)), StringEntry(ad(toString(ab), du), bR(dM, dN, dw, dH, height, lastBlock.timestamp)), IntegerEntry(W(), dH), IntegerEntry(X(height, lastBlock.timestamp), dH)] | |
560 | + | $Tuple10(dM, dN, dy, dz, dC, dE, dB, dG, dA, dO) | |
555 | 561 | } | |
556 | 562 | } | |
557 | 563 | ||
558 | 564 | ||
559 | - | func | |
560 | - | let | |
561 | - | let | |
562 | - | let | |
563 | - | let | |
564 | - | let | |
565 | - | let | |
566 | - | let | |
567 | - | let | |
568 | - | let | |
569 | - | let | |
570 | - | let | |
571 | - | let | |
572 | - | if (if (( | |
565 | + | func dP (du,dQ,dR,dS,dT,dU,ab,dV,dW) = { | |
566 | + | let dk = bm() | |
567 | + | let dx = fromBase58String(dk[q]) | |
568 | + | let dX = dk[r] | |
569 | + | let dY = dk[s] | |
570 | + | let dZ = dk[v] | |
571 | + | let ea = dk[w] | |
572 | + | let dl = parseIntValue(dk[t]) | |
573 | + | let dm = parseIntValue(dk[u]) | |
574 | + | let dA = dk[p] | |
575 | + | let dB = valueOrErrorMessage(assetInfo(dx), (("Asset " + toBase58String(dx)) + " doesn't exist")).quantity | |
576 | + | let eb = toBase58String(valueOrElse(dS, fromBase58String("WAVES"))) | |
577 | + | let ec = toBase58String(valueOrElse(dU, fromBase58String("WAVES"))) | |
578 | + | if (if ((dX != eb)) | |
573 | 579 | then true | |
574 | - | else ( | |
580 | + | else (dY != ec)) | |
575 | 581 | then throw("Invalid amt or price asset passed.") | |
576 | 582 | else { | |
577 | - | let | |
578 | - | then | |
579 | - | else ( | |
580 | - | let | |
581 | - | then | |
582 | - | else ( | |
583 | - | let | |
584 | - | let | |
585 | - | let | |
586 | - | let | |
587 | - | let | |
588 | - | let | |
583 | + | let dC = if (dV) | |
584 | + | then bV(dX) | |
585 | + | else (bV(dX) - dR) | |
586 | + | let dE = if (dV) | |
587 | + | then bV(dY) | |
588 | + | else (bV(dY) - dT) | |
589 | + | let ed = D(dR, dl) | |
590 | + | let ee = D(dT, dm) | |
591 | + | let ef = bY(ee, ed) | |
592 | + | let dD = D(dC, dl) | |
593 | + | let dF = D(dE, dm) | |
594 | + | let eg = if ((dB == 0)) | |
589 | 595 | then { | |
590 | - | let | |
591 | - | let | |
592 | - | let | |
593 | - | $Tuple5(H( | |
596 | + | let dG = e | |
597 | + | let eh = e | |
598 | + | let do = pow((ed * ee), 0, toBigInt(5), 1, 0, DOWN) | |
599 | + | $Tuple5(H(do, b), H(ed, dl), H(ee, dm), bY((dF + ee), (dD + ed)), eh) | |
594 | 600 | } | |
595 | 601 | else { | |
596 | - | let | |
597 | - | let | |
598 | - | let | |
599 | - | if (if (( | |
600 | - | then ( | |
602 | + | let dG = bY(dF, dD) | |
603 | + | let eh = fraction(R((dG - ef)), d, dG) | |
604 | + | let ei = D(dQ, b) | |
605 | + | if (if ((dG != e)) | |
606 | + | then (eh > ei) | |
601 | 607 | else false) | |
602 | - | then throw(((("Price slippage " + toString( | |
608 | + | then throw(((("Price slippage " + toString(eh)) + " exceeded the passed limit of ") + toString(ei))) | |
603 | 609 | else { | |
604 | - | let | |
605 | - | let | |
606 | - | let | |
607 | - | let | |
608 | - | then $Tuple2( | |
609 | - | else $Tuple2( | |
610 | - | let | |
611 | - | let | |
612 | - | let | |
613 | - | $Tuple5(K( | |
610 | + | let dJ = D(dB, b) | |
611 | + | let ej = fraction(ed, cb(dF, dD, CEILING), d, CEILING) | |
612 | + | let ek = fraction(ee, d, cb(dF, dD, FLOOR), CEILING) | |
613 | + | let el = if ((ej > ee)) | |
614 | + | then $Tuple2(ek, ee) | |
615 | + | else $Tuple2(ed, ej) | |
616 | + | let em = el._1 | |
617 | + | let en = el._2 | |
618 | + | let do = fraction(dJ, en, dF, FLOOR) | |
619 | + | $Tuple5(K(do, b, FLOOR), K(em, dl, CEILING), K(en, dm, CEILING), dG, eh) | |
614 | 620 | } | |
615 | 621 | } | |
616 | - | let | |
617 | - | let | |
618 | - | let | |
619 | - | let | |
620 | - | let | |
621 | - | if ((0 >= | |
622 | + | let eo = eg._1 | |
623 | + | let ep = eg._2 | |
624 | + | let eq = eg._3 | |
625 | + | let dH = H(eg._4, b) | |
626 | + | let er = H(eg._5, b) | |
627 | + | if ((0 >= eo)) | |
622 | 628 | then throw("Invalid calculations. LP calculated is less than zero.") | |
623 | 629 | else { | |
624 | - | let | |
630 | + | let es = if (!(dW)) | |
625 | 631 | then 0 | |
626 | - | else | |
627 | - | let | |
628 | - | let | |
629 | - | let | |
630 | - | $Tuple13( | |
632 | + | else eo | |
633 | + | let et = (dR - ep) | |
634 | + | let eu = (dT - eq) | |
635 | + | let ev = [IntegerEntry(W(), dH), IntegerEntry(X(height, lastBlock.timestamp), dH), StringEntry(aa(ab, du), bG(ep, eq, es, dH, dQ, er, height, lastBlock.timestamp, et, eu))] | |
636 | + | $Tuple13(eo, es, dH, dC, dE, dB, dx, dA, ev, et, eu, dS, dU) | |
631 | 637 | } | |
632 | 638 | } | |
633 | 639 | } | |
634 | 640 | ||
635 | 641 | ||
636 | - | func | |
637 | - | let | |
638 | - | let | |
639 | - | let | |
640 | - | if (( | |
642 | + | func ew (ex,ey,dB) = { | |
643 | + | let ez = G(ex, toBigInt(bB)) | |
644 | + | let eA = G(ey, toBigInt(bC)) | |
645 | + | let eB = fraction(pow((ez * eA), 0, toBigInt(5), 1, 18, DOWN), g, dB) | |
646 | + | if ((dB == f)) | |
641 | 647 | then f | |
642 | - | else | |
648 | + | else eB | |
643 | 649 | } | |
644 | 650 | ||
645 | 651 | ||
646 | - | func | |
647 | - | let | |
648 | - | let | |
649 | - | let | |
650 | - | let | |
651 | - | | |
652 | + | func eC (eD,eE,eF) = { | |
653 | + | let eG = (toBigInt(bV(br(bz))) - eD) | |
654 | + | let eH = (toBigInt(bV(br(bA))) - eE) | |
655 | + | let eI = (toBigInt(value(assetInfo(by)).quantity) - eF) | |
656 | + | let eJ = ew(eG, eH, eI) | |
657 | + | eJ | |
652 | 658 | } | |
653 | 659 | ||
654 | 660 | ||
655 | - | func | |
656 | - | let | |
657 | - | let | |
658 | - | let | |
659 | - | let | |
660 | - | let | |
661 | - | $Tuple2( | |
661 | + | func eK (eL,eM,eF) = { | |
662 | + | let eG = (bV(br(bz)) + eL) | |
663 | + | let eH = (bV(br(bA)) + eM) | |
664 | + | let eI = (value(assetInfo(by)).quantity + eF) | |
665 | + | let eB = ew(toBigInt(eG), toBigInt(eH), toBigInt(eI)) | |
666 | + | let eN = [IntegerEntry(ak, height), StringEntry(aj, toString(eB))] | |
667 | + | $Tuple2(eN, eB) | |
662 | 668 | } | |
663 | 669 | ||
664 | 670 | ||
665 | - | func | |
671 | + | func eO () = valueOrElse(getBoolean(bd, aH(toString(this))), false) | |
666 | 672 | ||
667 | 673 | ||
668 | - | func | |
674 | + | func eP (eQ,eB) = if ((eB >= eQ)) | |
669 | 675 | then true | |
670 | - | else ba(makeString(["updated KLp lower than current KLp", toString( | |
676 | + | else ba(makeString(["updated KLp lower than current KLp", toString(eQ), toString(eB)], " ")) | |
671 | 677 | ||
672 | 678 | ||
673 | - | func | |
674 | - | let | |
675 | - | let | |
676 | - | let | |
677 | - | let | |
678 | - | let | |
679 | - | then $Tuple2( | |
680 | - | else $Tuple2(-( | |
681 | - | let | |
682 | - | let | |
683 | - | if (if (if ( | |
679 | + | func eR (eS) = { | |
680 | + | let eG = bV(br(bz)) | |
681 | + | let eH = bV(br(bA)) | |
682 | + | let eT = eS.amount | |
683 | + | let eU = fraction(eS.amount, eS.price, b, FLOOR) | |
684 | + | let eV = if ((eS.orderType == Buy)) | |
685 | + | then $Tuple2(eT, -(eU)) | |
686 | + | else $Tuple2(-(eT), eU) | |
687 | + | let eL = eV._1 | |
688 | + | let eM = eV._2 | |
689 | + | if (if (if (bk()) | |
684 | 690 | then true | |
685 | - | else ( | |
691 | + | else (bx == m)) | |
686 | 692 | then true | |
687 | - | else ( | |
693 | + | else (bx == n)) | |
688 | 694 | then throw("Exchange operations disabled") | |
689 | - | else if (if (( | |
695 | + | else if (if ((eS.assetPair.amountAsset != bz)) | |
690 | 696 | then true | |
691 | - | else ( | |
697 | + | else (eS.assetPair.priceAsset != bA)) | |
692 | 698 | then throw("Wrong order assets.") | |
693 | 699 | else { | |
694 | - | let | |
695 | - | let | |
696 | - | let | |
697 | - | let | |
698 | - | let | |
699 | - | let | |
700 | - | $Tuple2( | |
700 | + | let eW = valueOrErrorMessage(parseBigInt(valueOrElse(getString(this, aj), "0")), bc("invalid kLp")) | |
701 | + | let eX = eK(eL, eM, 0) | |
702 | + | let eY = eX._1 | |
703 | + | let eZ = eX._2 | |
704 | + | let fa = (eZ >= eW) | |
705 | + | let fb = makeString(["kLp=", toString(eW), " kLpNew=", toString(eZ), " amountAssetBalance=", toString(eG), " priceAssetBalance=", toString(eH), " amountAssetBalanceDelta=", toString(eL), " priceAssetBalanceDelta=", toString(eM), " height=", toString(height)], "") | |
706 | + | $Tuple2(fa, fb) | |
701 | 707 | } | |
702 | 708 | } | |
703 | 709 | ||
704 | 710 | ||
705 | - | func | |
711 | + | func fc (fd) = if ((size(fd.payments) != 1)) | |
706 | 712 | then throw("exactly 1 payment is expected") | |
707 | 713 | else { | |
708 | - | let fc = value(fb.payments[0]) | |
709 | - | let dt = value(fc.assetId) | |
710 | - | let fd = fc.amount | |
711 | - | let ee = dr(toBase58String(fb.transactionId), toBase58String(dt), fd, fb.caller) | |
712 | - | let dK = ee._1 | |
713 | - | let dL = ee._2 | |
714 | - | let dy = parseIntValue(ee._9) | |
715 | - | let dM = ee._10 | |
716 | - | if (if (bi()) | |
717 | - | then true | |
718 | - | else (dy == n)) | |
719 | - | then throw(("Get operation is blocked by admin. Status = " + toString(dy))) | |
720 | - | else $Tuple5(dK, dL, fd, dt, dM) | |
714 | + | let fe = value(fd.payments[0]) | |
715 | + | let dv = value(fe.assetId) | |
716 | + | let ff = fe.amount | |
717 | + | let eg = dt(toBase58String(fd.transactionId), toBase58String(dv), ff, fd.caller) | |
718 | + | let dM = eg._1 | |
719 | + | let dN = eg._2 | |
720 | + | let dO = eg._10 | |
721 | + | let fg = if (!(bj(fd.caller))) | |
722 | + | then if (bk()) | |
723 | + | then true | |
724 | + | else (bx == n) | |
725 | + | else false | |
726 | + | if (fg) | |
727 | + | then throw(("Get operation is blocked by admin. Status = " + toString(bx))) | |
728 | + | else $Tuple5(dM, dN, ff, dv, dO) | |
721 | 729 | } | |
722 | 730 | ||
723 | 731 | ||
724 | - | func | |
732 | + | func fh (fd,dQ,dW) = if ((size(fd.payments) != 2)) | |
725 | 733 | then throw("exactly 2 payments are expected") | |
726 | 734 | else { | |
727 | - | let ff = value(fb.payments[0]) | |
728 | - | let fg = value(fb.payments[1]) | |
729 | - | let fh = dN(toBase58String(fb.transactionId), dO, ff.amount, ff.assetId, fg.amount, fg.assetId, toString(fb.caller), false, dU) | |
730 | - | let dy = parseIntValue(fh._8) | |
731 | - | if (if (if (bi()) | |
732 | - | then true | |
733 | - | else (dy == l)) | |
734 | - | then true | |
735 | - | else (dy == n)) | |
736 | - | then throw(("Put operation is blocked by admin. Status = " + toString(dy))) | |
737 | - | else fh | |
735 | + | let fi = value(fd.payments[0]) | |
736 | + | let fj = value(fd.payments[1]) | |
737 | + | let fk = dP(toBase58String(fd.transactionId), dQ, fi.amount, fi.assetId, fj.amount, fj.assetId, toString(fd.caller), false, dW) | |
738 | + | let fl = if (!(bj(fd.caller))) | |
739 | + | then if (if (bk()) | |
740 | + | then true | |
741 | + | else (bx == l)) | |
742 | + | then true | |
743 | + | else (bx == n) | |
744 | + | else false | |
745 | + | if (fl) | |
746 | + | then throw(("Put operation is blocked by admin. Status = " + toString(bx))) | |
747 | + | else fk | |
738 | 748 | } | |
739 | 749 | ||
740 | 750 | ||
741 | - | func | |
742 | - | let | |
743 | - | if (( | |
751 | + | func fm (ch) = { | |
752 | + | let fn = invoke(bd, "emit", [ch], nil) | |
753 | + | if ((fn == fn)) | |
744 | 754 | then { | |
745 | - | let | |
746 | - | let aQ = | |
755 | + | let fo = { | |
756 | + | let aQ = fn | |
747 | 757 | if ($isInstanceOf(aQ, "Address")) | |
748 | 758 | then { | |
749 | - | let | |
750 | - | invoke( | |
759 | + | let fp = aQ | |
760 | + | invoke(fp, "emit", [ch], nil) | |
751 | 761 | } | |
752 | 762 | else unit | |
753 | 763 | } | |
754 | - | if (( | |
755 | - | then | |
764 | + | if ((fo == fo)) | |
765 | + | then ch | |
756 | 766 | else throw("Strict value is not equal to itself.") | |
757 | 767 | } | |
758 | 768 | else throw("Strict value is not equal to itself.") | |
759 | 769 | } | |
760 | 770 | ||
761 | 771 | ||
762 | - | func | |
763 | - | let | |
772 | + | func fq (ch,ai) = { | |
773 | + | let fr = if ((ai == 0)) | |
764 | 774 | then 0 | |
765 | - | else fraction( | |
766 | - | $Tuple2(( | |
775 | + | else fraction(ch, ai, b) | |
776 | + | $Tuple2((ch - fr), fr) | |
767 | 777 | } | |
768 | 778 | ||
769 | 779 | ||
770 | - | func | |
771 | - | let | |
772 | - | let | |
773 | - | let | |
774 | - | let | |
780 | + | func fs (ft,fu,ab,ac) = { | |
781 | + | let fv = (ac == unit) | |
782 | + | let fw = bV(br(bz)) | |
783 | + | let fx = bV(br(bA)) | |
784 | + | let fy = if ((fu == bz)) | |
775 | 785 | then true | |
776 | - | else if (( | |
786 | + | else if ((fu == bA)) | |
777 | 787 | then false | |
778 | 788 | else ba("invalid asset") | |
779 | - | let | |
780 | - | then $Tuple2( | |
781 | - | else if ( | |
782 | - | then $Tuple2(( | |
783 | - | else $Tuple2( | |
784 | - | let | |
785 | - | let | |
786 | - | let | |
787 | - | then $Tuple2( | |
788 | - | else $Tuple2(0, | |
789 | - | let | |
790 | - | let | |
791 | - | let | |
792 | - | let | |
793 | - | let | |
794 | - | let | |
795 | - | let | |
796 | - | let | |
797 | - | let | |
798 | - | let | |
799 | - | let | |
800 | - | let | |
801 | - | then | |
802 | - | else | |
803 | - | let | |
804 | - | let | |
805 | - | let | |
789 | + | let fz = if (fv) | |
790 | + | then $Tuple2(fw, fx) | |
791 | + | else if (fy) | |
792 | + | then $Tuple2((fw - ft), fx) | |
793 | + | else $Tuple2(fw, (fx - ft)) | |
794 | + | let fA = fz._1 | |
795 | + | let fB = fz._2 | |
796 | + | let fC = if (fy) | |
797 | + | then $Tuple2(ft, 0) | |
798 | + | else $Tuple2(0, ft) | |
799 | + | let fD = fC._1 | |
800 | + | let fE = fC._2 | |
801 | + | let eT = fq(fD, bf)._1 | |
802 | + | let eU = fq(fE, bf)._1 | |
803 | + | let fF = fq(ft, bf) | |
804 | + | let fG = fF._1 | |
805 | + | let fr = fF._2 | |
806 | + | let fH = (fA + eT) | |
807 | + | let fI = (fB + eU) | |
808 | + | let fJ = bY(D(fI, bC), D(fH, bB)) | |
809 | + | let fK = H(fJ, b) | |
810 | + | let fL = if (fy) | |
811 | + | then fA | |
812 | + | else fB | |
813 | + | let fM = toBigInt(fL) | |
814 | + | let fN = toBigInt(valueOrErrorMessage(assetInfo(by), (("asset " + toBase58String(by)) + " doesn't exist")).quantity) | |
815 | + | let fO = if ((fN > f)) | |
806 | 816 | then true | |
807 | 817 | else ba("initial deposit requires all coins") | |
808 | - | if (( | |
818 | + | if ((fO == fO)) | |
809 | 819 | then { | |
810 | - | let | |
811 | - | let | |
812 | - | let | |
820 | + | let fP = toBigInt(fG) | |
821 | + | let fQ = max([0, toInt(((fN * (sqrtBigInt((d + ((fP * d) / fM)), 18, 18, DOWN) - d)) / d))]) | |
822 | + | let ev = if (fv) | |
813 | 823 | then nil | |
814 | - | else [IntegerEntry(W(), | |
815 | - | let | |
816 | - | let | |
817 | - | let | |
818 | - | let | |
819 | - | then $Tuple2( | |
820 | - | else $Tuple2( | |
821 | - | let | |
822 | - | let | |
823 | - | let | |
824 | - | fraction(( | |
824 | + | else [IntegerEntry(W(), fK), IntegerEntry(X(height, lastBlock.timestamp), fK), StringEntry(aa(toString(value(ab)), toBase58String(value(ac))), bG(fD, fE, fQ, fK, 0, 0, height, lastBlock.timestamp, 0, 0))] | |
825 | + | let fR = bY(D(fB, bC), D(fA, bB)) | |
826 | + | let fS = H(fR, b) | |
827 | + | let fT = { | |
828 | + | let fU = if (fy) | |
829 | + | then $Tuple2(fD, fA) | |
830 | + | else $Tuple2(fE, fB) | |
831 | + | let ch = fU._1 | |
832 | + | let fV = fU._2 | |
833 | + | let fW = toInt(fraction(fN, toBigInt((ch / 2)), toBigInt(fV))) | |
834 | + | fraction((fQ - fW), b, fW) | |
825 | 835 | } | |
826 | - | $Tuple5( | |
836 | + | $Tuple5(fQ, ev, fr, fT, fy) | |
827 | 837 | } | |
828 | 838 | else throw("Strict value is not equal to itself.") | |
829 | 839 | } | |
830 | 840 | ||
831 | 841 | ||
832 | - | func | |
833 | - | let | |
834 | - | let | |
835 | - | let | |
836 | - | let | |
837 | - | let | |
842 | + | func fX (fY,fG,fu,ab,ac) = { | |
843 | + | let fv = (ac == unit) | |
844 | + | let dk = bm() | |
845 | + | let dl = parseIntValue(dk[t]) | |
846 | + | let dm = parseIntValue(dk[u]) | |
847 | + | let fZ = [if ((fu == by)) | |
838 | 848 | then true | |
839 | 849 | else ba("invalid lp asset")] | |
840 | - | if (( | |
850 | + | if ((fZ == fZ)) | |
841 | 851 | then { | |
842 | - | let | |
852 | + | let ga = if ((fY == bz)) | |
843 | 853 | then true | |
844 | - | else if (( | |
854 | + | else if ((fY == bA)) | |
845 | 855 | then false | |
846 | 856 | else ba("invalid asset") | |
847 | - | let | |
848 | - | then toBigInt( | |
849 | - | else toBigInt( | |
850 | - | let | |
851 | - | then | |
852 | - | else | |
853 | - | let | |
854 | - | let | |
855 | - | let | |
856 | - | then | |
857 | - | else | |
858 | - | let | |
859 | - | let | |
860 | - | let | |
861 | - | let | |
862 | - | let | |
863 | - | let | |
864 | - | let | |
865 | - | let | |
866 | - | then $Tuple4( | |
867 | - | else $Tuple4(0, | |
868 | - | let | |
869 | - | let | |
870 | - | let | |
871 | - | let | |
872 | - | let | |
873 | - | let | |
874 | - | let | |
857 | + | let gb = if (ga) | |
858 | + | then toBigInt(bV(br(bz))) | |
859 | + | else toBigInt(bV(br(bA))) | |
860 | + | let gc = if (ga) | |
861 | + | then dl | |
862 | + | else dm | |
863 | + | let gd = bV(br(bz)) | |
864 | + | let ge = bV(br(bA)) | |
865 | + | let gf = if (ga) | |
866 | + | then gd | |
867 | + | else ge | |
868 | + | let gg = toBigInt(gf) | |
869 | + | let fN = toBigInt(valueOrErrorMessage(assetInfo(by), (("asset " + toBase58String(by)) + " doesn't exist")).quantity) | |
870 | + | let gh = toBigInt(fG) | |
871 | + | let gi = max([0, toInt(((gb * (d - pow((d - ((gh * d) / fN)), 18, h, 0, 18, DOWN))) / d))]) | |
872 | + | let gj = fq(gi, bh) | |
873 | + | let gk = gj._1 | |
874 | + | let fr = gj._2 | |
875 | + | let gl = if (ga) | |
876 | + | then $Tuple4(gk, 0, (gd - gi), ge) | |
877 | + | else $Tuple4(0, gk, gd, (ge - gi)) | |
878 | + | let gm = gl._1 | |
879 | + | let gn = gl._2 | |
880 | + | let go = gl._3 | |
881 | + | let gp = gl._4 | |
882 | + | let fJ = bY(D(gp, bC), D(go, bB)) | |
883 | + | let fK = H(fJ, b) | |
884 | + | let ev = if (fv) | |
875 | 885 | then nil | |
876 | - | else [StringEntry(ad(toString(value(ab)), toBase58String(value(ac))), | |
877 | - | let | |
878 | - | let | |
879 | - | let | |
880 | - | let | |
881 | - | fraction(( | |
886 | + | else [StringEntry(ad(toString(value(ab)), toBase58String(value(ac))), bR(gm, gn, fG, fK, height, lastBlock.timestamp)), IntegerEntry(W(), fK), IntegerEntry(X(height, lastBlock.timestamp), fK)] | |
887 | + | let fR = bY(D(ge, bC), D(gd, bB)) | |
888 | + | let fS = H(fR, b) | |
889 | + | let fT = { | |
890 | + | let gq = (toInt(fraction(gb, gh, fN)) * 2) | |
891 | + | fraction((gk - gq), b, gq) | |
882 | 892 | } | |
883 | - | $Tuple5( | |
893 | + | $Tuple5(gk, ev, fr, fT, ga) | |
884 | 894 | } | |
885 | 895 | else throw("Strict value is not equal to itself.") | |
886 | 896 | } | |
887 | 897 | ||
888 | 898 | ||
889 | - | func | |
890 | - | let | |
891 | - | let aQ = getString( | |
899 | + | func gr () = { | |
900 | + | let gs = aS() | |
901 | + | let aQ = getString(gs, U()) | |
892 | 902 | if ($isInstanceOf(aQ, "String")) | |
893 | 903 | then { | |
894 | 904 | let aV = aQ | |
900 | 910 | } | |
901 | 911 | ||
902 | 912 | ||
903 | - | func | |
904 | - | let aQ = | |
913 | + | func gt (fd) = { | |
914 | + | let aQ = gr() | |
905 | 915 | if ($isInstanceOf(aQ, "ByteVector")) | |
906 | 916 | then { | |
907 | - | let | |
908 | - | ( | |
917 | + | let gu = aQ | |
918 | + | (fd.callerPublicKey == gu) | |
909 | 919 | } | |
910 | 920 | else if ($isInstanceOf(aQ, "Unit")) | |
911 | - | then ( | |
921 | + | then (fd.caller == this) | |
912 | 922 | else throw("Match error") | |
913 | 923 | } | |
914 | 924 | ||
915 | 925 | ||
916 | - | func | |
917 | - | let | |
918 | - | let aQ = | |
926 | + | func gv (fd) = { | |
927 | + | let gw = throw("Permission denied") | |
928 | + | let aQ = gr() | |
919 | 929 | if ($isInstanceOf(aQ, "ByteVector")) | |
920 | 930 | then { | |
921 | - | let | |
922 | - | if (( | |
931 | + | let gu = aQ | |
932 | + | if ((fd.callerPublicKey == gu)) | |
923 | 933 | then true | |
924 | - | else | |
934 | + | else gw | |
925 | 935 | } | |
926 | 936 | else if ($isInstanceOf(aQ, "Unit")) | |
927 | - | then if (( | |
937 | + | then if ((fd.caller == this)) | |
928 | 938 | then true | |
929 | - | else | |
939 | + | else gw | |
930 | 940 | else throw("Match error") | |
931 | 941 | } | |
932 | 942 | ||
933 | 943 | ||
934 | - | @Callable( | |
935 | - | func rebalance () = ( | |
944 | + | @Callable(fd) | |
945 | + | func rebalance () = (cK(aW(this, ae())) ++ cK(aW(this, af()))) | |
936 | 946 | ||
937 | 947 | ||
938 | 948 | ||
939 | - | @Callable( | |
940 | - | func calculateAmountOutForSwapREADONLY ( | |
941 | - | let | |
949 | + | @Callable(fd) | |
950 | + | func calculateAmountOutForSwapREADONLY (gx,gy,gz) = { | |
951 | + | let gA = if ((gy == false)) | |
942 | 952 | then { | |
943 | - | let | |
944 | - | let | |
945 | - | $Tuple2( | |
953 | + | let gB = aW(this, af()) | |
954 | + | let gC = aW(this, ae()) | |
955 | + | $Tuple2(gB, gC) | |
946 | 956 | } | |
947 | 957 | else { | |
948 | - | let | |
949 | - | let | |
950 | - | $Tuple2( | |
958 | + | let gB = aW(this, ae()) | |
959 | + | let gC = aW(this, af()) | |
960 | + | $Tuple2(gB, gC) | |
951 | 961 | } | |
952 | - | let | |
953 | - | let | |
954 | - | let | |
955 | - | let | |
956 | - | let | |
957 | - | let | |
958 | - | let | |
959 | - | let | |
962 | + | let gB = gA._1 | |
963 | + | let gC = gA._2 | |
964 | + | let gD = bV(gC) | |
965 | + | let gE = bV(gB) | |
966 | + | let gF = fraction(gE, gx, (gD + gx)) | |
967 | + | let gG = (toBigInt(gD) * toBigInt(gE)) | |
968 | + | let gH = (((toBigInt(bV(gC)) + toBigInt(gx)) + toBigInt(gz)) * (toBigInt(bV(gB)) - toBigInt(gF))) | |
969 | + | let gI = if ((gH >= gG)) | |
960 | 970 | then true | |
961 | 971 | else throw("new K is fewer error") | |
962 | - | if (( | |
963 | - | then $Tuple2(nil, | |
972 | + | if ((gI == gI)) | |
973 | + | then $Tuple2(nil, gF) | |
964 | 974 | else throw("Strict value is not equal to itself.") | |
965 | 975 | } | |
966 | 976 | ||
967 | 977 | ||
968 | 978 | ||
969 | - | @Callable( | |
970 | - | func calculateAmountOutForSwapAndSendTokens ( | |
971 | - | let | |
979 | + | @Callable(fd) | |
980 | + | func calculateAmountOutForSwapAndSendTokens (gx,gy,gJ,gK,gz) = { | |
981 | + | let gL = { | |
972 | 982 | let bg = invoke(bd, "getSwapContractREADONLY", nil, nil) | |
973 | 983 | if ($isInstanceOf(bg, "String")) | |
974 | 984 | then bg | |
975 | 985 | else throw(($getType(bg) + " couldn't be cast to String")) | |
976 | 986 | } | |
977 | - | let | |
987 | + | let gM = { | |
978 | 988 | let bg = invoke(bd, "isPoolSwapDisabledREADONLY", [toString(this)], nil) | |
979 | 989 | if ($isInstanceOf(bg, "Boolean")) | |
980 | 990 | then bg | |
981 | 991 | else throw(($getType(bg) + " couldn't be cast to Boolean")) | |
982 | 992 | } | |
983 | - | let gJ = if (if (bi()) | |
993 | + | let gN = if (!(bj(fd.caller))) | |
994 | + | then if (if (bk()) | |
995 | + | then true | |
996 | + | else (bx == n)) | |
997 | + | then true | |
998 | + | else gM | |
999 | + | else false | |
1000 | + | let fZ = [if (if (!(gN)) | |
984 | 1001 | then true | |
985 | - | else ( | |
1002 | + | else gt(fd)) | |
986 | 1003 | then true | |
987 | - | else gI | |
988 | - | let fV = [if (if (!(gJ)) | |
1004 | + | else ba("swap operation is blocked by admin"), if ((value(fd.payments[0]).amount >= gx)) | |
989 | 1005 | then true | |
990 | - | else gp(fb)) | |
991 | - | then true | |
992 | - | else ba("swap operation is blocked by admin"), if ((value(fb.payments[0]).amount >= gt)) | |
993 | - | then true | |
994 | - | else ba("Wrong amount"), if ((fb.caller == addressFromStringValue(gH))) | |
1006 | + | else ba("Wrong amount"), if ((fd.caller == addressFromStringValue(gL))) | |
995 | 1007 | then true | |
996 | 1008 | else ba("Permission denied")] | |
997 | - | if (( | |
1009 | + | if ((fZ == fZ)) | |
998 | 1010 | then { | |
999 | - | let | |
1000 | - | let | |
1001 | - | let | |
1011 | + | let fe = value(fd.payments[0]) | |
1012 | + | let gC = br(fe.assetId) | |
1013 | + | let gB = if ((gy == false)) | |
1002 | 1014 | then aW(this, af()) | |
1003 | 1015 | else aW(this, ae()) | |
1004 | - | let | |
1005 | - | let | |
1006 | - | let | |
1007 | - | let | |
1008 | - | let | |
1009 | - | let | |
1016 | + | let gD = ((bV(gC) - value(fd.payments[0]).amount) - gz) | |
1017 | + | let gE = bV(gB) | |
1018 | + | let gF = fraction(gE, gx, (gD + gx)) | |
1019 | + | let gG = (toBigInt(gD) * toBigInt(gE)) | |
1020 | + | let gH = ((toBigInt(bV(gC)) + toBigInt(gz)) * (toBigInt(bV(gB)) - toBigInt(gF))) | |
1021 | + | let gI = if ((gH >= gG)) | |
1010 | 1022 | then true | |
1011 | 1023 | else throw("new K is fewer error") | |
1012 | - | if (( | |
1024 | + | if ((gI == gI)) | |
1013 | 1025 | then { | |
1014 | - | let | |
1026 | + | let gO = if ((gF >= gJ)) | |
1015 | 1027 | then true | |
1016 | 1028 | else throw("Exchange result is fewer coins than expected") | |
1017 | - | if (( | |
1029 | + | if ((gO == gO)) | |
1018 | 1030 | then { | |
1019 | - | let | |
1020 | - | then -( | |
1021 | - | else | |
1022 | - | let | |
1023 | - | then | |
1024 | - | else -( | |
1025 | - | let | |
1026 | - | if (( | |
1031 | + | let eL = if (gy) | |
1032 | + | then -(gF) | |
1033 | + | else gz | |
1034 | + | let eM = if (gy) | |
1035 | + | then gz | |
1036 | + | else -(gF) | |
1037 | + | let gP = eK(eL, eM, 0)._1 | |
1038 | + | if ((gP == gP)) | |
1027 | 1039 | then { | |
1028 | - | let | |
1029 | - | if (( | |
1040 | + | let gQ = cK(gC) | |
1041 | + | if ((gQ == gQ)) | |
1030 | 1042 | then { | |
1031 | - | let | |
1032 | - | if (( | |
1033 | - | then $Tuple2((( | |
1043 | + | let gR = cR(gB, gF) | |
1044 | + | if ((gR == gR)) | |
1045 | + | then $Tuple2(((gR ++ gQ) ++ [ScriptTransfer(addressFromStringValue(gK), gF, bp(gB))]), gF) | |
1034 | 1046 | else throw("Strict value is not equal to itself.") | |
1035 | 1047 | } | |
1036 | 1048 | else throw("Strict value is not equal to itself.") | |
1046 | 1058 | ||
1047 | 1059 | ||
1048 | 1060 | ||
1049 | - | @Callable( | |
1050 | - | func put ( | |
1061 | + | @Callable(fd) | |
1062 | + | func put (dQ,gS) = if ((0 > dQ)) | |
1051 | 1063 | then throw("Invalid slippageTolerance passed") | |
1052 | 1064 | else { | |
1053 | - | let | |
1054 | - | let | |
1055 | - | let | |
1056 | - | let | |
1057 | - | let | |
1058 | - | let | |
1059 | - | let | |
1060 | - | let | |
1061 | - | let | |
1062 | - | let | |
1063 | - | let | |
1064 | - | if (( | |
1065 | + | let fk = fh(fd, dQ, true) | |
1066 | + | let es = fk._2 | |
1067 | + | let dx = fk._7 | |
1068 | + | let dO = fk._9 | |
1069 | + | let et = fk._10 | |
1070 | + | let eu = fk._11 | |
1071 | + | let gT = fk._12 | |
1072 | + | let gU = fk._13 | |
1073 | + | let fi = toBigInt(value(fd.payments[0]).amount) | |
1074 | + | let fj = toBigInt(value(fd.payments[1]).amount) | |
1075 | + | let eJ = eC(fi, fj, toBigInt(0)) | |
1076 | + | if ((eJ == eJ)) | |
1065 | 1077 | then { | |
1066 | - | let | |
1067 | - | if (( | |
1078 | + | let fn = invoke(bd, "emit", [es], nil) | |
1079 | + | if ((fn == fn)) | |
1068 | 1080 | then { | |
1069 | - | let | |
1070 | - | let aQ = | |
1081 | + | let fo = { | |
1082 | + | let aQ = fn | |
1071 | 1083 | if ($isInstanceOf(aQ, "Address")) | |
1072 | 1084 | then { | |
1073 | - | let | |
1074 | - | invoke( | |
1085 | + | let fp = aQ | |
1086 | + | invoke(fp, "emit", [es], nil) | |
1075 | 1087 | } | |
1076 | 1088 | else unit | |
1077 | 1089 | } | |
1078 | - | if (( | |
1090 | + | if ((fo == fo)) | |
1079 | 1091 | then { | |
1080 | - | let | |
1081 | - | then invoke( | |
1092 | + | let gV = if ((et > 0)) | |
1093 | + | then invoke(bF, "put", nil, [AttachedPayment(gT, et)]) | |
1082 | 1094 | else nil | |
1083 | - | if (( | |
1095 | + | if ((gV == gV)) | |
1084 | 1096 | then { | |
1085 | - | let | |
1086 | - | then invoke( | |
1097 | + | let gW = if ((eu > 0)) | |
1098 | + | then invoke(bF, "put", nil, [AttachedPayment(gU, eu)]) | |
1087 | 1099 | else nil | |
1088 | - | if (( | |
1100 | + | if ((gW == gW)) | |
1089 | 1101 | then { | |
1090 | - | let | |
1102 | + | let gX = if (gS) | |
1091 | 1103 | then { | |
1092 | - | let | |
1093 | - | if (( | |
1104 | + | let gY = invoke(bE, "stake", nil, [AttachedPayment(dx, es)]) | |
1105 | + | if ((gY == gY)) | |
1094 | 1106 | then nil | |
1095 | 1107 | else throw("Strict value is not equal to itself.") | |
1096 | 1108 | } | |
1097 | - | else [ScriptTransfer( | |
1098 | - | let | |
1099 | - | if (( | |
1109 | + | else [ScriptTransfer(fd.caller, es, dx)] | |
1110 | + | let gZ = eK(0, 0, 0) | |
1111 | + | if ((gZ == gZ)) | |
1100 | 1112 | then { | |
1101 | - | let | |
1102 | - | let | |
1103 | - | let | |
1104 | - | if (( | |
1113 | + | let eB = gZ._2 | |
1114 | + | let gP = gZ._1 | |
1115 | + | let ha = eP(eJ, eB) | |
1116 | + | if ((ha == ha)) | |
1105 | 1117 | then { | |
1106 | - | let | |
1107 | - | if (( | |
1108 | - | then (( | |
1118 | + | let hb = invoke(this, "rebalance", nil, nil) | |
1119 | + | if ((hb == hb)) | |
1120 | + | then ((dO ++ gX) ++ gP) | |
1109 | 1121 | else throw("Strict value is not equal to itself.") | |
1110 | 1122 | } | |
1111 | 1123 | else throw("Strict value is not equal to itself.") | |
1125 | 1137 | ||
1126 | 1138 | ||
1127 | 1139 | ||
1128 | - | @Callable( | |
1129 | - | func putForFree ( | |
1140 | + | @Callable(fd) | |
1141 | + | func putForFree (hc) = if ((0 > hc)) | |
1130 | 1142 | then throw("Invalid value passed") | |
1131 | 1143 | else { | |
1132 | - | let | |
1133 | - | let | |
1134 | - | let | |
1135 | - | let | |
1136 | - | let | |
1137 | - | if (( | |
1144 | + | let fk = fh(fd, hc, false) | |
1145 | + | let dO = fk._9 | |
1146 | + | let fi = toBigInt(value(fd.payments[0]).amount) | |
1147 | + | let fj = toBigInt(value(fd.payments[1]).amount) | |
1148 | + | let eJ = eC(fi, fj, toBigInt(0)) | |
1149 | + | if ((eJ == eJ)) | |
1138 | 1150 | then { | |
1139 | - | let | |
1140 | - | let | |
1141 | - | let | |
1142 | - | let | |
1143 | - | if (( | |
1144 | - | then ( | |
1151 | + | let hd = eK(0, 0, 0) | |
1152 | + | let gP = hd._1 | |
1153 | + | let eB = hd._2 | |
1154 | + | let ha = eP(eJ, eB) | |
1155 | + | if ((ha == ha)) | |
1156 | + | then (dO ++ gP) | |
1145 | 1157 | else throw("Strict value is not equal to itself.") | |
1146 | 1158 | } | |
1147 | 1159 | else throw("Strict value is not equal to itself.") | |
1149 | 1161 | ||
1150 | 1162 | ||
1151 | 1163 | ||
1152 | - | @Callable( | |
1153 | - | func putOneTkn ( | |
1154 | - | let | |
1164 | + | @Callable(fd) | |
1165 | + | func putOneTkn (he,hf) = { | |
1166 | + | let hg = { | |
1155 | 1167 | let bg = invoke(bd, "isPoolOneTokenOperationsDisabledREADONLY", [toString(this)], nil) | |
1156 | 1168 | if ($isInstanceOf(bg, "Boolean")) | |
1157 | 1169 | then bg | |
1158 | 1170 | else throw(($getType(bg) + " couldn't be cast to Boolean")) | |
1159 | 1171 | } | |
1160 | - | let hd = if (if (if (bi()) | |
1172 | + | let fl = if (!(bj(fd.caller))) | |
1173 | + | then if (if (if (bk()) | |
1174 | + | then true | |
1175 | + | else (bx == l)) | |
1176 | + | then true | |
1177 | + | else (bx == n)) | |
1178 | + | then true | |
1179 | + | else hg | |
1180 | + | else false | |
1181 | + | let fZ = [if (if (!(fl)) | |
1161 | 1182 | then true | |
1162 | - | else ( | |
1183 | + | else gt(fd)) | |
1163 | 1184 | then true | |
1164 | - | else (bv == n)) | |
1165 | - | then true | |
1166 | - | else hc | |
1167 | - | let fV = [if (if (!(hd)) | |
1168 | - | then true | |
1169 | - | else gp(fb)) | |
1170 | - | then true | |
1171 | - | else ba("put operation is blocked by admin"), if ((size(fb.payments) == 1)) | |
1185 | + | else ba("put operation is blocked by admin"), if ((size(fd.payments) == 1)) | |
1172 | 1186 | then true | |
1173 | 1187 | else ba("exactly 1 payment are expected")] | |
1174 | - | if (( | |
1188 | + | if ((fZ == fZ)) | |
1175 | 1189 | then { | |
1176 | - | let | |
1177 | - | let | |
1178 | - | let | |
1179 | - | let | |
1180 | - | then | |
1181 | - | else if (( | |
1182 | - | then | |
1190 | + | let hh = fd.payments[0] | |
1191 | + | let fu = hh.assetId | |
1192 | + | let ft = hh.amount | |
1193 | + | let eJ = if ((fu == bz)) | |
1194 | + | then eC(toBigInt(ft), toBigInt(0), toBigInt(0)) | |
1195 | + | else if ((fu == bA)) | |
1196 | + | then eC(toBigInt(0), toBigInt(ft), toBigInt(0)) | |
1183 | 1197 | else ba("payment asset is not supported") | |
1184 | - | if (( | |
1198 | + | if ((eJ == eJ)) | |
1185 | 1199 | then { | |
1186 | - | let ab = | |
1187 | - | let ac = | |
1188 | - | let | |
1189 | - | if (( | |
1200 | + | let ab = fd.caller | |
1201 | + | let ac = fd.transactionId | |
1202 | + | let hi = fs(ft, fu, ab, ac) | |
1203 | + | if ((hi == hi)) | |
1190 | 1204 | then { | |
1191 | - | let | |
1192 | - | let | |
1193 | - | let | |
1194 | - | let | |
1195 | - | let | |
1196 | - | let | |
1197 | - | then ( | |
1205 | + | let fy = hi._5 | |
1206 | + | let hj = hi._4 | |
1207 | + | let fr = hi._3 | |
1208 | + | let ev = hi._2 | |
1209 | + | let hk = hi._1 | |
1210 | + | let hl = if (if ((he > 0)) | |
1211 | + | then (he > hk) | |
1198 | 1212 | else false) | |
1199 | - | then ba(makeString(["amount to receive is less than ", toString( | |
1200 | - | else | |
1201 | - | let | |
1202 | - | if (( | |
1213 | + | then ba(makeString(["amount to receive is less than ", toString(he)], "")) | |
1214 | + | else hk | |
1215 | + | let fn = fm(hl) | |
1216 | + | if ((fn == fn)) | |
1203 | 1217 | then { | |
1204 | - | let | |
1218 | + | let gX = if (hf) | |
1205 | 1219 | then { | |
1206 | - | let | |
1207 | - | if (( | |
1220 | + | let hm = invoke(bE, "stake", nil, [AttachedPayment(by, hl)]) | |
1221 | + | if ((hm == hm)) | |
1208 | 1222 | then nil | |
1209 | 1223 | else throw("Strict value is not equal to itself.") | |
1210 | 1224 | } | |
1211 | - | else [ScriptTransfer( | |
1212 | - | let | |
1213 | - | then [ScriptTransfer(be, | |
1225 | + | else [ScriptTransfer(fd.caller, hl, by)] | |
1226 | + | let hn = if ((fr > 0)) | |
1227 | + | then [ScriptTransfer(be, fr, fu)] | |
1214 | 1228 | else nil | |
1215 | - | let | |
1229 | + | let ho = if ((this == be)) | |
1216 | 1230 | then $Tuple2(0, 0) | |
1217 | - | else if ( | |
1218 | - | then $Tuple2(-( | |
1219 | - | else $Tuple2(0, -( | |
1220 | - | let | |
1221 | - | let | |
1222 | - | let | |
1223 | - | let | |
1224 | - | let | |
1225 | - | let | |
1226 | - | let | |
1227 | - | if (( | |
1231 | + | else if (fy) | |
1232 | + | then $Tuple2(-(fr), 0) | |
1233 | + | else $Tuple2(0, -(fr)) | |
1234 | + | let eL = ho._1 | |
1235 | + | let eM = ho._2 | |
1236 | + | let hp = eK(eL, eM, 0) | |
1237 | + | let gP = hp._1 | |
1238 | + | let eB = hp._2 | |
1239 | + | let eW = value(getString(aj)) | |
1240 | + | let ha = eP(eJ, eB) | |
1241 | + | if ((ha == ha)) | |
1228 | 1242 | then { | |
1229 | - | let | |
1230 | - | if (( | |
1231 | - | then $Tuple2(((( | |
1243 | + | let hb = invoke(this, "rebalance", nil, nil) | |
1244 | + | if ((hb == hb)) | |
1245 | + | then $Tuple2((((ev ++ gX) ++ hn) ++ gP), hl) | |
1232 | 1246 | else throw("Strict value is not equal to itself.") | |
1233 | 1247 | } | |
1234 | 1248 | else throw("Strict value is not equal to itself.") | |
1244 | 1258 | ||
1245 | 1259 | ||
1246 | 1260 | ||
1247 | - | @Callable( | |
1248 | - | func putOneTknREADONLY ( | |
1249 | - | let | |
1250 | - | let | |
1251 | - | let | |
1252 | - | let | |
1253 | - | let | |
1254 | - | let | |
1255 | - | $Tuple2(nil, $Tuple3( | |
1261 | + | @Callable(fd) | |
1262 | + | func putOneTknREADONLY (fu,ft) = { | |
1263 | + | let hq = fs(ft, bp(fu), unit, unit) | |
1264 | + | let hk = hq._1 | |
1265 | + | let ev = hq._2 | |
1266 | + | let fr = hq._3 | |
1267 | + | let hj = hq._4 | |
1268 | + | let fy = hq._5 | |
1269 | + | $Tuple2(nil, $Tuple3(hk, fr, hj)) | |
1256 | 1270 | } | |
1257 | 1271 | ||
1258 | 1272 | ||
1259 | 1273 | ||
1260 | - | @Callable( | |
1261 | - | func getOneTkn ( | |
1262 | - | let | |
1274 | + | @Callable(fd) | |
1275 | + | func getOneTkn (hr,he) = { | |
1276 | + | let hg = { | |
1263 | 1277 | let bg = invoke(bd, "isPoolOneTokenOperationsDisabledREADONLY", [toString(this)], nil) | |
1264 | 1278 | if ($isInstanceOf(bg, "Boolean")) | |
1265 | 1279 | then bg | |
1266 | 1280 | else throw(($getType(bg) + " couldn't be cast to Boolean")) | |
1267 | 1281 | } | |
1268 | - | let hp = if (if (bi()) | |
1282 | + | let fg = if (!(bj(fd.caller))) | |
1283 | + | then if (if (bk()) | |
1284 | + | then true | |
1285 | + | else (bx == n)) | |
1286 | + | then true | |
1287 | + | else hg | |
1288 | + | else false | |
1289 | + | let fZ = [if (if (!(fg)) | |
1269 | 1290 | then true | |
1270 | - | else ( | |
1291 | + | else gt(fd)) | |
1271 | 1292 | then true | |
1272 | - | else hc | |
1273 | - | let fV = [if (if (!(hp)) | |
1274 | - | then true | |
1275 | - | else gp(fb)) | |
1276 | - | then true | |
1277 | - | else ba("get operation is blocked by admin"), if ((size(fb.payments) == 1)) | |
1293 | + | else ba("get operation is blocked by admin"), if ((size(fd.payments) == 1)) | |
1278 | 1294 | then true | |
1279 | 1295 | else ba("exactly 1 payment are expected")] | |
1280 | - | if (( | |
1296 | + | if ((fZ == fZ)) | |
1281 | 1297 | then { | |
1282 | - | let | |
1283 | - | let | |
1284 | - | let | |
1285 | - | let | |
1286 | - | let | |
1287 | - | if (( | |
1298 | + | let fY = bp(hr) | |
1299 | + | let hh = fd.payments[0] | |
1300 | + | let fu = hh.assetId | |
1301 | + | let fG = hh.amount | |
1302 | + | let eJ = eC(toBigInt(0), toBigInt(0), toBigInt(0)) | |
1303 | + | if ((eJ == eJ)) | |
1288 | 1304 | then { | |
1289 | - | let ab = | |
1290 | - | let ac = | |
1291 | - | let | |
1292 | - | if (( | |
1305 | + | let ab = fd.caller | |
1306 | + | let ac = fd.transactionId | |
1307 | + | let hs = fX(fY, fG, fu, ab, ac) | |
1308 | + | if ((hs == hs)) | |
1293 | 1309 | then { | |
1294 | - | let | |
1295 | - | let | |
1296 | - | let | |
1297 | - | let | |
1298 | - | let | |
1299 | - | let | |
1300 | - | then ( | |
1310 | + | let ga = hs._5 | |
1311 | + | let hj = hs._4 | |
1312 | + | let fr = hs._3 | |
1313 | + | let ev = hs._2 | |
1314 | + | let ht = hs._1 | |
1315 | + | let ch = if (if ((he > 0)) | |
1316 | + | then (he > ht) | |
1301 | 1317 | else false) | |
1302 | - | then ba(makeString(["amount to receive is less than ", toString( | |
1303 | - | else | |
1304 | - | let | |
1305 | - | if (( | |
1318 | + | then ba(makeString(["amount to receive is less than ", toString(he)], "")) | |
1319 | + | else ht | |
1320 | + | let hu = invoke(bd, "burn", [fG], [AttachedPayment(fu, fG)]) | |
1321 | + | if ((hu == hu)) | |
1306 | 1322 | then { | |
1307 | - | let | |
1308 | - | let | |
1309 | - | let | |
1310 | - | then [ScriptTransfer(be, | |
1323 | + | let gR = cR(hr, (ch + max([0, fr]))) | |
1324 | + | let hv = [ScriptTransfer(ab, ch, fY)] | |
1325 | + | let hn = if ((fr > 0)) | |
1326 | + | then [ScriptTransfer(be, fr, fY)] | |
1311 | 1327 | else nil | |
1312 | - | let | |
1313 | - | let | |
1328 | + | let hw = { | |
1329 | + | let hx = if ((this == be)) | |
1314 | 1330 | then 0 | |
1315 | - | else | |
1316 | - | if ( | |
1317 | - | then $Tuple2(-(( | |
1318 | - | else $Tuple2(0, -(( | |
1331 | + | else fr | |
1332 | + | if (ga) | |
1333 | + | then $Tuple2(-((ch + hx)), 0) | |
1334 | + | else $Tuple2(0, -((ch + hx))) | |
1319 | 1335 | } | |
1320 | - | let | |
1321 | - | let | |
1322 | - | let | |
1323 | - | let | |
1324 | - | let | |
1325 | - | let | |
1326 | - | if (( | |
1327 | - | then $Tuple2((((( | |
1336 | + | let eL = hw._1 | |
1337 | + | let eM = hw._2 | |
1338 | + | let hy = eK(eL, eM, 0) | |
1339 | + | let gP = hy._1 | |
1340 | + | let eB = hy._2 | |
1341 | + | let ha = eP(eJ, eB) | |
1342 | + | if ((ha == ha)) | |
1343 | + | then $Tuple2(((((ev ++ gR) ++ hv) ++ hn) ++ gP), ch) | |
1328 | 1344 | else throw("Strict value is not equal to itself.") | |
1329 | 1345 | } | |
1330 | 1346 | else throw("Strict value is not equal to itself.") | |
1338 | 1354 | ||
1339 | 1355 | ||
1340 | 1356 | ||
1341 | - | @Callable( | |
1342 | - | func getOneTknREADONLY ( | |
1343 | - | let | |
1344 | - | let | |
1345 | - | let | |
1346 | - | let | |
1347 | - | let | |
1348 | - | let | |
1349 | - | $Tuple2(nil, $Tuple3( | |
1357 | + | @Callable(fd) | |
1358 | + | func getOneTknREADONLY (fY,fG) = { | |
1359 | + | let hz = fX(bp(fY), fG, by, unit, unit) | |
1360 | + | let ht = hz._1 | |
1361 | + | let ev = hz._2 | |
1362 | + | let fr = hz._3 | |
1363 | + | let hj = hz._4 | |
1364 | + | let ga = hz._5 | |
1365 | + | $Tuple2(nil, $Tuple3(ht, fr, hj)) | |
1350 | 1366 | } | |
1351 | 1367 | ||
1352 | 1368 | ||
1353 | 1369 | ||
1354 | - | @Callable( | |
1355 | - | func unstakeAndGetOneTkn ( | |
1356 | - | let | |
1370 | + | @Callable(fd) | |
1371 | + | func unstakeAndGetOneTkn (hA,hr,he) = { | |
1372 | + | let hg = { | |
1357 | 1373 | let bg = invoke(bd, "isPoolOneTokenOperationsDisabledREADONLY", [toString(this)], nil) | |
1358 | 1374 | if ($isInstanceOf(bg, "Boolean")) | |
1359 | 1375 | then bg | |
1360 | 1376 | else throw(($getType(bg) + " couldn't be cast to Boolean")) | |
1361 | 1377 | } | |
1362 | - | let hp = if (if (bi()) | |
1378 | + | let fg = if (!(bj(fd.caller))) | |
1379 | + | then if (if (bk()) | |
1380 | + | then true | |
1381 | + | else (bx == n)) | |
1382 | + | then true | |
1383 | + | else hg | |
1384 | + | else false | |
1385 | + | let fZ = [if (if (!(fg)) | |
1363 | 1386 | then true | |
1364 | - | else ( | |
1387 | + | else gt(fd)) | |
1365 | 1388 | then true | |
1366 | - | else hc | |
1367 | - | let fV = [if (if (!(hp)) | |
1368 | - | then true | |
1369 | - | else gp(fb)) | |
1370 | - | then true | |
1371 | - | else ba("get operation is blocked by admin"), if ((size(fb.payments) == 0)) | |
1389 | + | else ba("get operation is blocked by admin"), if ((size(fd.payments) == 0)) | |
1372 | 1390 | then true | |
1373 | 1391 | else ba("no payments are expected")] | |
1374 | - | if (( | |
1392 | + | if ((fZ == fZ)) | |
1375 | 1393 | then { | |
1376 | - | let | |
1377 | - | let ab = | |
1378 | - | let ac = | |
1379 | - | let | |
1380 | - | if (( | |
1394 | + | let fY = bp(hr) | |
1395 | + | let ab = fd.caller | |
1396 | + | let ac = fd.transactionId | |
1397 | + | let eJ = eC(toBigInt(0), toBigInt(0), toBigInt(0)) | |
1398 | + | if ((eJ == eJ)) | |
1381 | 1399 | then { | |
1382 | - | let | |
1383 | - | if (( | |
1400 | + | let hB = invoke(bE, "unstake", [toBase58String(by), hA], nil) | |
1401 | + | if ((hB == hB)) | |
1384 | 1402 | then { | |
1385 | - | let | |
1386 | - | if (( | |
1403 | + | let hC = fX(fY, hA, by, ab, ac) | |
1404 | + | if ((hC == hC)) | |
1387 | 1405 | then { | |
1388 | - | let | |
1389 | - | let | |
1390 | - | let | |
1391 | - | let | |
1392 | - | let | |
1393 | - | let | |
1394 | - | then ( | |
1406 | + | let ga = hC._5 | |
1407 | + | let hj = hC._4 | |
1408 | + | let fr = hC._3 | |
1409 | + | let ev = hC._2 | |
1410 | + | let ht = hC._1 | |
1411 | + | let ch = if (if ((he > 0)) | |
1412 | + | then (he > ht) | |
1395 | 1413 | else false) | |
1396 | - | then ba(makeString(["amount to receive is less than ", toString( | |
1397 | - | else | |
1398 | - | let | |
1399 | - | if (( | |
1414 | + | then ba(makeString(["amount to receive is less than ", toString(he)], "")) | |
1415 | + | else ht | |
1416 | + | let hu = invoke(bd, "burn", [hA], [AttachedPayment(by, hA)]) | |
1417 | + | if ((hu == hu)) | |
1400 | 1418 | then { | |
1401 | - | let | |
1402 | - | let | |
1403 | - | let | |
1404 | - | then [ScriptTransfer(be, | |
1419 | + | let gR = cR(hr, (ch + max([0, fr]))) | |
1420 | + | let hv = [ScriptTransfer(fd.caller, ch, fY)] | |
1421 | + | let hn = if ((fr > 0)) | |
1422 | + | then [ScriptTransfer(be, fr, fY)] | |
1405 | 1423 | else nil | |
1406 | - | let | |
1407 | - | let | |
1424 | + | let hD = { | |
1425 | + | let hx = if ((this == be)) | |
1408 | 1426 | then 0 | |
1409 | - | else | |
1410 | - | if ( | |
1411 | - | then $Tuple2(-(( | |
1412 | - | else $Tuple2(0, -(( | |
1427 | + | else fr | |
1428 | + | if (ga) | |
1429 | + | then $Tuple2(-((ch + hx)), 0) | |
1430 | + | else $Tuple2(0, -((ch + hx))) | |
1413 | 1431 | } | |
1414 | - | let | |
1415 | - | let | |
1416 | - | let | |
1417 | - | let | |
1418 | - | let | |
1419 | - | let | |
1420 | - | if (( | |
1421 | - | then $Tuple2((((( | |
1432 | + | let eL = hD._1 | |
1433 | + | let eM = hD._2 | |
1434 | + | let hE = eK(eL, eM, 0) | |
1435 | + | let gP = hE._1 | |
1436 | + | let eB = hE._2 | |
1437 | + | let ha = eP(eJ, eB) | |
1438 | + | if ((ha == ha)) | |
1439 | + | then $Tuple2(((((ev ++ gR) ++ hv) ++ hn) ++ gP), ch) | |
1422 | 1440 | else throw("Strict value is not equal to itself.") | |
1423 | 1441 | } | |
1424 | 1442 | else throw("Strict value is not equal to itself.") | |
1434 | 1452 | ||
1435 | 1453 | ||
1436 | 1454 | ||
1437 | - | @Callable( | |
1455 | + | @Callable(fd) | |
1438 | 1456 | func get () = { | |
1439 | - | let | |
1440 | - | let | |
1441 | - | let | |
1442 | - | let | |
1443 | - | let | |
1444 | - | let | |
1445 | - | let | |
1446 | - | let | |
1447 | - | if (( | |
1457 | + | let eg = fc(fd) | |
1458 | + | let dM = eg._1 | |
1459 | + | let dN = eg._2 | |
1460 | + | let ff = eg._3 | |
1461 | + | let dv = eg._4 | |
1462 | + | let dO = eg._5 | |
1463 | + | let gR = cW(dM, dN) | |
1464 | + | let eJ = eC(toBigInt(0), toBigInt(0), toBigInt(0)) | |
1465 | + | if ((eJ == eJ)) | |
1448 | 1466 | then { | |
1449 | - | let | |
1450 | - | if (( | |
1467 | + | let hF = invoke(bd, "burn", [ff], [AttachedPayment(dv, ff)]) | |
1468 | + | if ((hF == hF)) | |
1451 | 1469 | then { | |
1452 | - | let | |
1453 | - | let | |
1454 | - | let | |
1455 | - | let | |
1456 | - | if (( | |
1457 | - | then (( | |
1470 | + | let hG = eK(-(dM), -(dN), 0) | |
1471 | + | let gP = hG._1 | |
1472 | + | let eB = hG._2 | |
1473 | + | let ha = eP(eJ, eB) | |
1474 | + | if ((ha == ha)) | |
1475 | + | then ((gR ++ dO) ++ gP) | |
1458 | 1476 | else throw("Strict value is not equal to itself.") | |
1459 | 1477 | } | |
1460 | 1478 | else throw("Strict value is not equal to itself.") | |
1464 | 1482 | ||
1465 | 1483 | ||
1466 | 1484 | ||
1467 | - | @Callable( | |
1468 | - | func getNoLess ( | |
1469 | - | let | |
1470 | - | let | |
1471 | - | let | |
1472 | - | let | |
1473 | - | let | |
1474 | - | let | |
1475 | - | if (( | |
1476 | - | then throw(((("noLessThenAmtAsset failed: " + toString( | |
1477 | - | else if (( | |
1478 | - | then throw(((("noLessThenPriceAsset failed: " + toString( | |
1485 | + | @Callable(fd) | |
1486 | + | func getNoLess (hH,hI) = { | |
1487 | + | let eg = fc(fd) | |
1488 | + | let dM = eg._1 | |
1489 | + | let dN = eg._2 | |
1490 | + | let ff = eg._3 | |
1491 | + | let dv = eg._4 | |
1492 | + | let dO = eg._5 | |
1493 | + | if ((hH > dM)) | |
1494 | + | then throw(((("noLessThenAmtAsset failed: " + toString(dM)) + " < ") + toString(hH))) | |
1495 | + | else if ((hI > dN)) | |
1496 | + | then throw(((("noLessThenPriceAsset failed: " + toString(dN)) + " < ") + toString(hI))) | |
1479 | 1497 | else { | |
1480 | - | let | |
1481 | - | let | |
1482 | - | if (( | |
1498 | + | let gR = cW(dM, dN) | |
1499 | + | let eJ = eC(toBigInt(0), toBigInt(0), toBigInt(0)) | |
1500 | + | if ((eJ == eJ)) | |
1483 | 1501 | then { | |
1484 | - | let | |
1485 | - | if (( | |
1502 | + | let hF = invoke(bd, "burn", [ff], [AttachedPayment(dv, ff)]) | |
1503 | + | if ((hF == hF)) | |
1486 | 1504 | then { | |
1487 | - | let | |
1488 | - | let | |
1489 | - | let | |
1490 | - | let | |
1491 | - | if (( | |
1492 | - | then (( | |
1505 | + | let hJ = eK(-(dM), -(dN), 0) | |
1506 | + | let gP = hJ._1 | |
1507 | + | let eB = hJ._2 | |
1508 | + | let ha = eP(eJ, eB) | |
1509 | + | if ((ha == ha)) | |
1510 | + | then ((gR ++ dO) ++ gP) | |
1493 | 1511 | else throw("Strict value is not equal to itself.") | |
1494 | 1512 | } | |
1495 | 1513 | else throw("Strict value is not equal to itself.") | |
1500 | 1518 | ||
1501 | 1519 | ||
1502 | 1520 | ||
1503 | - | @Callable( | |
1504 | - | func unstakeAndGet ( | |
1505 | - | let | |
1521 | + | @Callable(fd) | |
1522 | + | func unstakeAndGet (ch) = { | |
1523 | + | let hK = if ((size(fd.payments) != 0)) | |
1506 | 1524 | then throw("No payments are expected") | |
1507 | 1525 | else true | |
1508 | - | if (( | |
1526 | + | if ((hK == hK)) | |
1509 | 1527 | then { | |
1510 | - | let | |
1511 | - | let | |
1512 | - | let | |
1513 | - | if (( | |
1528 | + | let dk = bm() | |
1529 | + | let dx = fromBase58String(dk[q]) | |
1530 | + | let eJ = eC(toBigInt(0), toBigInt(0), toBigInt(0)) | |
1531 | + | if ((eJ == eJ)) | |
1514 | 1532 | then { | |
1515 | - | let | |
1516 | - | if (( | |
1533 | + | let hB = invoke(bE, "unstake", [toBase58String(dx), ch], nil) | |
1534 | + | if ((hB == hB)) | |
1517 | 1535 | then { | |
1518 | - | let ee = dr(toBase58String(fb.transactionId), toBase58String(dv), cf, fb.caller) | |
1519 | - | let dK = ee._1 | |
1520 | - | let dL = ee._2 | |
1521 | - | let dy = parseIntValue(ee._9) | |
1522 | - | let dM = ee._10 | |
1523 | - | let gN = cU(dK, dL) | |
1524 | - | let hJ = if (if (bi()) | |
1525 | - | then true | |
1526 | - | else (dy == n)) | |
1527 | - | then throw(("Get operation is blocked by admin. Status = " + toString(dy))) | |
1536 | + | let eg = dt(toBase58String(fd.transactionId), toBase58String(dx), ch, fd.caller) | |
1537 | + | let dM = eg._1 | |
1538 | + | let dN = eg._2 | |
1539 | + | let dA = parseIntValue(eg._9) | |
1540 | + | let dO = eg._10 | |
1541 | + | let gR = cW(dM, dN) | |
1542 | + | let fg = if (!(bj(fd.caller))) | |
1543 | + | then if (bk()) | |
1544 | + | then true | |
1545 | + | else (bx == n) | |
1546 | + | else false | |
1547 | + | let hL = if (fg) | |
1548 | + | then throw(("Get operation is blocked by admin. Status = " + toString(dA))) | |
1528 | 1549 | else true | |
1529 | - | if (( | |
1550 | + | if ((hL == hL)) | |
1530 | 1551 | then { | |
1531 | - | let | |
1532 | - | if (( | |
1552 | + | let hF = invoke(bd, "burn", [ch], [AttachedPayment(dx, ch)]) | |
1553 | + | if ((hF == hF)) | |
1533 | 1554 | then { | |
1534 | - | let | |
1535 | - | let | |
1536 | - | let | |
1537 | - | let | |
1538 | - | if (( | |
1539 | - | then (( | |
1555 | + | let hM = eK(-(dM), -(dN), 0) | |
1556 | + | let gP = hM._1 | |
1557 | + | let eB = hM._2 | |
1558 | + | let ha = eP(eJ, eB) | |
1559 | + | if ((ha == ha)) | |
1560 | + | then ((gR ++ dO) ++ gP) | |
1540 | 1561 | else throw("Strict value is not equal to itself.") | |
1541 | 1562 | } | |
1542 | 1563 | else throw("Strict value is not equal to itself.") | |
1552 | 1573 | ||
1553 | 1574 | ||
1554 | 1575 | ||
1555 | - | @Callable(fb) | |
1556 | - | func unstakeAndGetNoLess (hy,hL,hG) = { | |
1557 | - | let hp = if (bi()) | |
1576 | + | @Callable(fd) | |
1577 | + | func unstakeAndGetNoLess (hA,hN,hI) = { | |
1578 | + | let fg = if (!(bj(fd.caller))) | |
1579 | + | then if (bk()) | |
1580 | + | then true | |
1581 | + | else (bx == n) | |
1582 | + | else false | |
1583 | + | let fZ = [if (!(fg)) | |
1558 | 1584 | then true | |
1559 | - | else (bv == n) | |
1560 | - | let fV = [if (!(hp)) | |
1561 | - | then true | |
1562 | - | else throw("get operation is blocked by admin"), if ((size(fb.payments) == 0)) | |
1585 | + | else throw("get operation is blocked by admin"), if ((size(fd.payments) == 0)) | |
1563 | 1586 | then true | |
1564 | 1587 | else throw("no payments are expected")] | |
1565 | - | if (( | |
1588 | + | if ((fZ == fZ)) | |
1566 | 1589 | then { | |
1567 | - | let | |
1568 | - | if (( | |
1590 | + | let eJ = eC(toBigInt(0), toBigInt(0), toBigInt(0)) | |
1591 | + | if ((eJ == eJ)) | |
1569 | 1592 | then { | |
1570 | - | let | |
1571 | - | if (( | |
1593 | + | let hB = invoke(bE, "unstake", [toBase58String(by), hA], nil) | |
1594 | + | if ((hB == hB)) | |
1572 | 1595 | then { | |
1573 | - | let | |
1574 | - | let | |
1575 | - | let | |
1576 | - | let | |
1577 | - | let | |
1578 | - | let | |
1596 | + | let eg = dt(toBase58String(fd.transactionId), toBase58String(by), hA, fd.caller) | |
1597 | + | let dM = eg._1 | |
1598 | + | let dN = eg._2 | |
1599 | + | let dO = eg._10 | |
1600 | + | let gR = cW(dM, dN) | |
1601 | + | let hO = [if ((dM >= hN)) | |
1579 | 1602 | then true | |
1580 | - | else throw(makeString(["amount asset amount to receive is less than ", toString( | |
1603 | + | else throw(makeString(["amount asset amount to receive is less than ", toString(hN)], "")), if ((dN >= hI)) | |
1581 | 1604 | then true | |
1582 | - | else throw(makeString(["price asset amount to receive is less than ", toString( | |
1583 | - | if (( | |
1605 | + | else throw(makeString(["price asset amount to receive is less than ", toString(hI)], ""))] | |
1606 | + | if ((hO == hO)) | |
1584 | 1607 | then { | |
1585 | - | let | |
1586 | - | if (( | |
1608 | + | let hF = invoke(bd, "burn", [hA], [AttachedPayment(by, hA)]) | |
1609 | + | if ((hF == hF)) | |
1587 | 1610 | then { | |
1588 | - | let | |
1589 | - | let | |
1590 | - | let | |
1591 | - | let | |
1592 | - | if (( | |
1593 | - | then (( | |
1611 | + | let hP = eK(-(dM), -(dN), 0) | |
1612 | + | let gP = hP._1 | |
1613 | + | let eB = hP._2 | |
1614 | + | let ha = eP(eJ, eB) | |
1615 | + | if ((ha == ha)) | |
1616 | + | then ((gR ++ dO) ++ gP) | |
1594 | 1617 | else throw("Strict value is not equal to itself.") | |
1595 | 1618 | } | |
1596 | 1619 | else throw("Strict value is not equal to itself.") | |
1606 | 1629 | ||
1607 | 1630 | ||
1608 | 1631 | ||
1609 | - | @Callable( | |
1610 | - | func activate ( | |
1632 | + | @Callable(fd) | |
1633 | + | func activate (hQ,hR) = if ((toString(fd.caller) != toString(bd))) | |
1611 | 1634 | then throw("permissions denied") | |
1612 | - | else $Tuple2([StringEntry(ae(), | |
1635 | + | else $Tuple2([StringEntry(ae(), hQ), StringEntry(af(), hR)], "success") | |
1613 | 1636 | ||
1614 | 1637 | ||
1615 | 1638 | ||
1616 | - | @Callable( | |
1639 | + | @Callable(fd) | |
1617 | 1640 | func refreshKLp () = { | |
1618 | - | let | |
1619 | - | let | |
1641 | + | let hS = valueOrElse(getInteger(ak), 0) | |
1642 | + | let hT = if (((height - hS) >= an)) | |
1620 | 1643 | then unit | |
1621 | 1644 | else ba(makeString([toString(an), " blocks have not passed since the previous call"], "")) | |
1622 | - | if (( | |
1645 | + | if ((hT == hT)) | |
1623 | 1646 | then { | |
1624 | - | let | |
1625 | - | let | |
1626 | - | let | |
1627 | - | let | |
1628 | - | let | |
1629 | - | then | |
1647 | + | let eW = valueOrErrorMessage(parseBigInt(valueOrElse(getString(this, aj), "0")), bc("invalid kLp")) | |
1648 | + | let hU = eK(0, 0, 0) | |
1649 | + | let hV = hU._1 | |
1650 | + | let eB = hU._2 | |
1651 | + | let eN = if ((eW != eB)) | |
1652 | + | then hV | |
1630 | 1653 | else ba("nothing to refresh") | |
1631 | - | $Tuple2( | |
1654 | + | $Tuple2(eN, toString(eB)) | |
1632 | 1655 | } | |
1633 | 1656 | else throw("Strict value is not equal to itself.") | |
1634 | 1657 | } | |
1635 | 1658 | ||
1636 | 1659 | ||
1637 | 1660 | ||
1638 | - | @Callable( | |
1639 | - | func getPoolConfigWrapperREADONLY () = $Tuple2(nil, | |
1661 | + | @Callable(fd) | |
1662 | + | func getPoolConfigWrapperREADONLY () = $Tuple2(nil, bm()) | |
1640 | 1663 | ||
1641 | 1664 | ||
1642 | 1665 | ||
1643 | - | @Callable( | |
1644 | - | func getAccBalanceWrapperREADONLY (ap) = $Tuple2(nil, | |
1666 | + | @Callable(fd) | |
1667 | + | func getAccBalanceWrapperREADONLY (ap) = $Tuple2(nil, bV(ap)) | |
1645 | 1668 | ||
1646 | 1669 | ||
1647 | 1670 | ||
1648 | - | @Callable( | |
1649 | - | func calcPricesWrapperREADONLY ( | |
1650 | - | let | |
1651 | - | $Tuple2(nil, [toString( | |
1671 | + | @Callable(fd) | |
1672 | + | func calcPricesWrapperREADONLY (de,df,dj) = { | |
1673 | + | let ds = di(de, df, dj) | |
1674 | + | $Tuple2(nil, [toString(ds[0]), toString(ds[1]), toString(ds[2])]) | |
1652 | 1675 | } | |
1653 | 1676 | ||
1654 | 1677 | ||
1655 | 1678 | ||
1656 | - | @Callable( | |
1679 | + | @Callable(fd) | |
1657 | 1680 | func toX18WrapperREADONLY (E,F) = $Tuple2(nil, toString(D(E, F))) | |
1658 | 1681 | ||
1659 | 1682 | ||
1660 | 1683 | ||
1661 | - | @Callable( | |
1684 | + | @Callable(fd) | |
1662 | 1685 | func fromX18WrapperREADONLY (I,J) = $Tuple2(nil, H(parseBigIntValue(I), J)) | |
1663 | 1686 | ||
1664 | 1687 | ||
1665 | 1688 | ||
1666 | - | @Callable( | |
1667 | - | func calcPriceBigIntWrapperREADONLY ( | |
1689 | + | @Callable(fd) | |
1690 | + | func calcPriceBigIntWrapperREADONLY (bZ,ca) = $Tuple2(nil, toString(bY(parseBigIntValue(bZ), parseBigIntValue(ca)))) | |
1668 | 1691 | ||
1669 | 1692 | ||
1670 | 1693 | ||
1671 | - | @Callable( | |
1672 | - | func estimatePutOperationWrapperREADONLY ( | |
1694 | + | @Callable(fd) | |
1695 | + | func estimatePutOperationWrapperREADONLY (du,dQ,dR,dS,dT,dU,ab,dV,dW) = $Tuple2(nil, dP(du, dQ, dR, dS, dT, dU, ab, dV, dW)) | |
1673 | 1696 | ||
1674 | 1697 | ||
1675 | 1698 | ||
1676 | - | @Callable( | |
1677 | - | func estimateGetOperationWrapperREADONLY ( | |
1678 | - | let | |
1679 | - | $Tuple2(nil, $Tuple10( | |
1699 | + | @Callable(fd) | |
1700 | + | func estimateGetOperationWrapperREADONLY (du,dv,dw,ab) = { | |
1701 | + | let eg = dt(du, dv, dw, addressFromStringValue(ab)) | |
1702 | + | $Tuple2(nil, $Tuple10(eg._1, eg._2, eg._3, eg._4, eg._5, eg._6, eg._7, toString(eg._8), eg._9, eg._10)) | |
1680 | 1703 | } | |
1681 | 1704 | ||
1682 | 1705 | ||
1683 | 1706 | ||
1684 | - | @Callable( | |
1707 | + | @Callable(fd) | |
1685 | 1708 | func statsREADONLY () = { | |
1686 | - | let | |
1687 | - | let | |
1688 | - | let | |
1689 | - | let | |
1690 | - | let | |
1691 | - | let | |
1692 | - | let | |
1693 | - | let | |
1694 | - | let | |
1695 | - | let | |
1696 | - | let | |
1697 | - | let | |
1709 | + | let dk = bm() | |
1710 | + | let dx = fromBase58String(dk[q]) | |
1711 | + | let hW = dk[r] | |
1712 | + | let hX = dk[s] | |
1713 | + | let dZ = dk[v] | |
1714 | + | let ea = dk[w] | |
1715 | + | let dl = parseIntValue(dk[t]) | |
1716 | + | let dm = parseIntValue(dk[u]) | |
1717 | + | let hY = valueOrErrorMessage(assetInfo(dx), (("Asset " + toBase58String(dx)) + " doesn't exist")).quantity | |
1718 | + | let hZ = bV(hW) | |
1719 | + | let ia = bV(hX) | |
1720 | + | let ib = if ((hY == 0)) | |
1698 | 1721 | then [e, e, e] | |
1699 | - | else | |
1700 | - | let | |
1701 | - | let | |
1702 | - | let | |
1703 | - | let | |
1704 | - | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d", toString( | |
1722 | + | else di(hZ, ia, hY) | |
1723 | + | let dH = 0 | |
1724 | + | let ic = H(ib[1], b) | |
1725 | + | let id = H(ib[2], b) | |
1726 | + | let ie = value(getInteger(bd, aD(toString(this)))) | |
1727 | + | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d", toString(hZ), toString(ia), toString(hY), toString(dH), toString(ic), toString(id), toString(ie)], j)) | |
1705 | 1728 | } | |
1706 | 1729 | ||
1707 | 1730 | ||
1708 | 1731 | ||
1709 | - | @Callable( | |
1710 | - | func evaluatePutByAmountAssetREADONLY ( | |
1711 | - | let | |
1712 | - | let | |
1713 | - | let | |
1714 | - | let | |
1715 | - | let | |
1716 | - | let | |
1717 | - | let | |
1718 | - | let | |
1719 | - | let | |
1720 | - | let | |
1721 | - | let | |
1722 | - | let | |
1723 | - | let | |
1724 | - | let | |
1725 | - | let | |
1732 | + | @Callable(fd) | |
1733 | + | func evaluatePutByAmountAssetREADONLY (dR) = { | |
1734 | + | let dk = bm() | |
1735 | + | let dx = fromBase58String(dk[q]) | |
1736 | + | let dX = dk[r] | |
1737 | + | let dy = fromBase58String(dX) | |
1738 | + | let dY = dk[s] | |
1739 | + | let dz = fromBase58String(dY) | |
1740 | + | let dl = parseIntValue(dk[t]) | |
1741 | + | let dm = parseIntValue(dk[u]) | |
1742 | + | let dA = dk[p] | |
1743 | + | let hY = valueOrErrorMessage(assetInfo(dx), (("Asset " + toBase58String(dx)) + " doesn't exist")).quantity | |
1744 | + | let hZ = bV(dX) | |
1745 | + | let ia = bV(dY) | |
1746 | + | let dg = D(hZ, dl) | |
1747 | + | let dh = D(ia, dm) | |
1748 | + | let dG = if ((hY == 0)) | |
1726 | 1749 | then e | |
1727 | - | else | |
1728 | - | let | |
1729 | - | let | |
1730 | - | let | |
1731 | - | let | |
1732 | - | let | |
1733 | - | let | |
1734 | - | let | |
1735 | - | let | |
1736 | - | let | |
1737 | - | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d%d", toString( | |
1750 | + | else bY(dh, dg) | |
1751 | + | let ed = D(dR, dl) | |
1752 | + | let ee = fraction(ed, dG, d) | |
1753 | + | let dT = H(ee, dm) | |
1754 | + | let fk = dP("", 500000, dR, dy, dT, dz, "", true, false) | |
1755 | + | let eo = fk._1 | |
1756 | + | let if = fk._3 | |
1757 | + | let dC = fk._4 | |
1758 | + | let dE = fk._5 | |
1759 | + | let dB = fk._6 | |
1760 | + | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d%d", toString(eo), toString(H(dG, b)), toString(dC), toString(dE), toString(dB), dA, toString(dR), toString(dT)], j)) | |
1738 | 1761 | } | |
1739 | 1762 | ||
1740 | 1763 | ||
1741 | 1764 | ||
1742 | - | @Callable( | |
1743 | - | func evaluatePutByPriceAssetREADONLY ( | |
1744 | - | let | |
1745 | - | let | |
1746 | - | let | |
1747 | - | let | |
1748 | - | let | |
1749 | - | let | |
1750 | - | let | |
1751 | - | let | |
1752 | - | let | |
1753 | - | let | |
1754 | - | let | |
1755 | - | let | |
1756 | - | let | |
1757 | - | let | |
1758 | - | let | |
1765 | + | @Callable(fd) | |
1766 | + | func evaluatePutByPriceAssetREADONLY (dT) = { | |
1767 | + | let dk = bm() | |
1768 | + | let dx = fromBase58String(dk[q]) | |
1769 | + | let dX = dk[r] | |
1770 | + | let dy = fromBase58String(dX) | |
1771 | + | let dY = dk[s] | |
1772 | + | let dz = fromBase58String(dY) | |
1773 | + | let dl = parseIntValue(dk[t]) | |
1774 | + | let dm = parseIntValue(dk[u]) | |
1775 | + | let dA = dk[p] | |
1776 | + | let hY = valueOrErrorMessage(assetInfo(dx), (("Asset " + toBase58String(dx)) + " doesn't exist")).quantity | |
1777 | + | let ig = bV(dX) | |
1778 | + | let ih = bV(dY) | |
1779 | + | let ii = D(ig, dl) | |
1780 | + | let ij = D(ih, dm) | |
1781 | + | let dG = if ((hY == 0)) | |
1759 | 1782 | then e | |
1760 | - | else | |
1761 | - | let | |
1762 | - | let | |
1763 | - | let | |
1764 | - | let | |
1765 | - | let | |
1766 | - | let | |
1767 | - | let | |
1768 | - | let | |
1769 | - | let | |
1770 | - | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d%d", toString( | |
1783 | + | else bY(ij, ii) | |
1784 | + | let ee = D(dT, dm) | |
1785 | + | let ed = fraction(ee, d, dG) | |
1786 | + | let dR = H(ed, dl) | |
1787 | + | let fk = dP("", 500000, dR, dy, dT, dz, "", true, false) | |
1788 | + | let eo = fk._1 | |
1789 | + | let if = fk._3 | |
1790 | + | let dC = fk._4 | |
1791 | + | let dE = fk._5 | |
1792 | + | let dB = fk._6 | |
1793 | + | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d%d", toString(eo), toString(H(dG, b)), toString(dC), toString(dE), toString(dB), dA, toString(dR), toString(dT)], j)) | |
1771 | 1794 | } | |
1772 | 1795 | ||
1773 | 1796 | ||
1774 | 1797 | ||
1775 | - | @Callable( | |
1776 | - | func evaluateGetREADONLY ( | |
1777 | - | let | |
1778 | - | let | |
1779 | - | let | |
1780 | - | let | |
1781 | - | let | |
1782 | - | let | |
1783 | - | let | |
1784 | - | let | |
1785 | - | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d", toString( | |
1798 | + | @Callable(fd) | |
1799 | + | func evaluateGetREADONLY (ik,il) = { | |
1800 | + | let eg = dt("", ik, il, this) | |
1801 | + | let dM = eg._1 | |
1802 | + | let dN = eg._2 | |
1803 | + | let dC = eg._5 | |
1804 | + | let dE = eg._6 | |
1805 | + | let dB = eg._7 | |
1806 | + | let dH = eg._8 | |
1807 | + | let dA = parseIntValue(eg._9) | |
1808 | + | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d", toString(dM), toString(dN), toString(dC), toString(dE), toString(dB), toString(dH), toString(dA)], j)) | |
1786 | 1809 | } | |
1787 | 1810 | ||
1788 | 1811 | ||
1789 | - | @Verifier( | |
1790 | - | func | |
1791 | - | let | |
1792 | - | let aQ = | |
1812 | + | @Verifier(im) | |
1813 | + | func in () = { | |
1814 | + | let io = { | |
1815 | + | let aQ = gr() | |
1793 | 1816 | if ($isInstanceOf(aQ, "ByteVector")) | |
1794 | 1817 | then { | |
1795 | - | let | |
1796 | - | | |
1818 | + | let gu = aQ | |
1819 | + | gu | |
1797 | 1820 | } | |
1798 | 1821 | else if ($isInstanceOf(aQ, "Unit")) | |
1799 | - | then | |
1822 | + | then im.senderPublicKey | |
1800 | 1823 | else throw("Match error") | |
1801 | 1824 | } | |
1802 | - | let aQ = | |
1825 | + | let aQ = im | |
1803 | 1826 | if ($isInstanceOf(aQ, "Order")) | |
1804 | 1827 | then { | |
1805 | - | let | |
1806 | - | let | |
1807 | - | let | |
1828 | + | let eS = aQ | |
1829 | + | let ip = bl() | |
1830 | + | let iq = if (eO()) | |
1808 | 1831 | then $Tuple2(true, "") | |
1809 | - | else | |
1810 | - | let aK = | |
1811 | - | let aL = | |
1812 | - | let aM = sigVerify( | |
1813 | - | let aN = sigVerify( | |
1832 | + | else eR(eS) | |
1833 | + | let aK = iq._1 | |
1834 | + | let aL = iq._2 | |
1835 | + | let aM = sigVerify(eS.bodyBytes, eS.proofs[0], eS.senderPublicKey) | |
1836 | + | let aN = sigVerify(eS.bodyBytes, eS.proofs[1], ip) | |
1814 | 1837 | if (if (if (aK) | |
1815 | 1838 | then aM | |
1816 | 1839 | else false) | |
1822 | 1845 | else if ($isInstanceOf(aQ, "SetScriptTransaction")) | |
1823 | 1846 | then { | |
1824 | 1847 | let aV = aQ | |
1825 | - | if (sigVerify( | |
1848 | + | if (sigVerify(im.bodyBytes, im.proofs[0], io)) | |
1826 | 1849 | then true | |
1827 | 1850 | else { | |
1828 | - | let | |
1829 | - | let | |
1830 | - | let | |
1831 | - | if (( | |
1832 | - | then ( | |
1851 | + | let ir = blake2b256(value(aV.script)) | |
1852 | + | let is = fromBase64String(value(getString(bd, aF()))) | |
1853 | + | let it = scriptHash(this) | |
1854 | + | if ((is == ir)) | |
1855 | + | then (it != ir) | |
1833 | 1856 | else false | |
1834 | 1857 | } | |
1835 | 1858 | } | |
1836 | - | else sigVerify( | |
1859 | + | else sigVerify(im.bodyBytes, im.proofs[0], io) | |
1837 | 1860 | } | |
1838 | 1861 |
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 (E,F) = fraction(E, d, F) | |
66 | 66 | ||
67 | 67 | ||
68 | 68 | func H (I,J) = toInt(fraction(I, toBigInt(J), d)) | |
69 | 69 | ||
70 | 70 | ||
71 | 71 | func K (I,J,L) = toInt(fraction(I, toBigInt(J), d, L)) | |
72 | 72 | ||
73 | 73 | ||
74 | 74 | func M (N,O,P) = fraction(N, O, P) | |
75 | 75 | ||
76 | 76 | ||
77 | 77 | func Q (I) = if ((0 > I)) | |
78 | 78 | then -(I) | |
79 | 79 | else I | |
80 | 80 | ||
81 | 81 | ||
82 | 82 | func R (I) = if ((e > I)) | |
83 | 83 | then -(I) | |
84 | 84 | else I | |
85 | 85 | ||
86 | 86 | ||
87 | 87 | func S () = "%s__swapContract" | |
88 | 88 | ||
89 | 89 | ||
90 | 90 | func T () = "%s__factoryContract" | |
91 | 91 | ||
92 | 92 | ||
93 | 93 | func U () = "%s__managerPublicKey" | |
94 | 94 | ||
95 | 95 | ||
96 | 96 | func V () = "%s__managerVaultAddress" | |
97 | 97 | ||
98 | 98 | ||
99 | 99 | func W () = "%s%s__price__last" | |
100 | 100 | ||
101 | 101 | ||
102 | 102 | func X (Y,Z) = makeString(["%s%s%d%d__price__history", toString(Y), toString(Z)], j) | |
103 | 103 | ||
104 | 104 | ||
105 | 105 | func aa (ab,ac) = ((("%s%s%s__P__" + ab) + "__") + ac) | |
106 | 106 | ||
107 | 107 | ||
108 | 108 | func ad (ab,ac) = ((("%s%s%s__G__" + ab) + "__") + ac) | |
109 | 109 | ||
110 | 110 | ||
111 | 111 | func ae () = "%s__amountAsset" | |
112 | 112 | ||
113 | 113 | ||
114 | 114 | func af () = "%s__priceAsset" | |
115 | 115 | ||
116 | 116 | ||
117 | 117 | let ag = "%s__fee" | |
118 | 118 | ||
119 | 119 | let ah = fraction(10, b, 10000) | |
120 | 120 | ||
121 | 121 | let ai = valueOrElse(getInteger(this, ag), ah) | |
122 | 122 | ||
123 | 123 | let aj = makeString(["%s", "kLp"], j) | |
124 | 124 | ||
125 | 125 | let ak = makeString(["%s", "kLpRefreshedHeight"], j) | |
126 | 126 | ||
127 | 127 | let al = makeString(["%s", "refreshKLpDelay"], j) | |
128 | 128 | ||
129 | 129 | let am = 30 | |
130 | 130 | ||
131 | 131 | let an = valueOrElse(getInteger(this, al), am) | |
132 | 132 | ||
133 | 133 | func ao (ap) = makeString(["%s%s", "stakedBalance", ap], j) | |
134 | 134 | ||
135 | 135 | ||
136 | 136 | func aq (ap) = makeString(["%s%s", "shareAssetBalance", ap], j) | |
137 | 137 | ||
138 | 138 | ||
139 | 139 | func ar (ap) = valueOrElse(getInteger(this, ao(ap)), 0) | |
140 | 140 | ||
141 | 141 | ||
142 | 142 | func as (ap) = valueOrElse(getInteger(this, aq(ap)), 0) | |
143 | 143 | ||
144 | 144 | ||
145 | 145 | func at () = "%s__factoryConfig" | |
146 | 146 | ||
147 | 147 | ||
148 | 148 | func au () = "%s%s__matcher__publicKey" | |
149 | 149 | ||
150 | 150 | ||
151 | 151 | func av (aw) = (("%s%s%s__" + aw) + "__mappings__poolContract2LpAsset") | |
152 | 152 | ||
153 | 153 | ||
154 | 154 | func ax (ay,az) = (((("%d%d%s__" + ay) + "__") + az) + "__config") | |
155 | 155 | ||
156 | 156 | ||
157 | 157 | func aA (aB) = ("%s%s%s__mappings__baseAsset2internalId__" + aB) | |
158 | 158 | ||
159 | 159 | ||
160 | 160 | func aC () = "%s__shutdown" | |
161 | 161 | ||
162 | 162 | ||
163 | 163 | func aD (aE) = ("%s%s__poolWeight__" + aE) | |
164 | 164 | ||
165 | 165 | ||
166 | 166 | func aF () = "%s__allowedLpScriptHash" | |
167 | 167 | ||
168 | 168 | ||
169 | 169 | let aG = "%s__feeCollectorAddress" | |
170 | 170 | ||
171 | 171 | func aH (aI) = ("%s%s__skipOrderValidation__" + aI) | |
172 | 172 | ||
173 | 173 | ||
174 | 174 | func aJ (aK,aL,aM,aN) = throw((((((((("order validation failed: orderValid=" + toString(aK)) + " (") + aL) + ")") + " senderValid=") + toString(aM)) + " matcherValid=") + toString(aN))) | |
175 | 175 | ||
176 | 176 | ||
177 | 177 | func aO (aP) = { | |
178 | 178 | let aQ = addressFromString(aP) | |
179 | 179 | if ($isInstanceOf(aQ, "Address")) | |
180 | 180 | then { | |
181 | 181 | let aR = aQ | |
182 | 182 | aR | |
183 | 183 | } | |
184 | 184 | else this | |
185 | 185 | } | |
186 | 186 | ||
187 | 187 | ||
188 | 188 | func aS () = { | |
189 | 189 | let aT = { | |
190 | 190 | let aQ = getString(T()) | |
191 | 191 | if ($isInstanceOf(aQ, "String")) | |
192 | 192 | then { | |
193 | 193 | let aU = aQ | |
194 | 194 | aO(aU) | |
195 | 195 | } | |
196 | 196 | else this | |
197 | 197 | } | |
198 | 198 | let aQ = getString(aT, V()) | |
199 | 199 | if ($isInstanceOf(aQ, "String")) | |
200 | 200 | then { | |
201 | 201 | let aV = aQ | |
202 | 202 | aO(aV) | |
203 | 203 | } | |
204 | 204 | else this | |
205 | 205 | } | |
206 | 206 | ||
207 | 207 | ||
208 | 208 | func aW (aX,aY) = valueOrErrorMessage(getString(aX, aY), makeString(["mandatory ", toString(aX), ".", aY, " is not defined"], "")) | |
209 | 209 | ||
210 | 210 | ||
211 | 211 | func aZ (aX,aY) = valueOrErrorMessage(getInteger(aX, aY), makeString(["mandatory ", toString(aX), ".", aY, " is not defined"], "")) | |
212 | 212 | ||
213 | 213 | ||
214 | 214 | func ba (bb) = throw(makeString(["lp.ride:", bb], " ")) | |
215 | 215 | ||
216 | 216 | ||
217 | 217 | func bc (bb) = makeString(["lp.ride:", bb], " ") | |
218 | 218 | ||
219 | 219 | ||
220 | 220 | let bd = addressFromStringValue(aW(this, T())) | |
221 | 221 | ||
222 | 222 | let be = addressFromStringValue(aW(bd, aG)) | |
223 | 223 | ||
224 | 224 | let bf = { | |
225 | 225 | let bg = invoke(bd, "getInFeeREADONLY", [toString(this)], nil) | |
226 | 226 | if ($isInstanceOf(bg, "Int")) | |
227 | 227 | then bg | |
228 | 228 | else throw(($getType(bg) + " couldn't be cast to Int")) | |
229 | 229 | } | |
230 | 230 | ||
231 | 231 | let bh = { | |
232 | 232 | let bg = invoke(bd, "getOutFeeREADONLY", [toString(this)], nil) | |
233 | 233 | if ($isInstanceOf(bg, "Int")) | |
234 | 234 | then bg | |
235 | 235 | else throw(($getType(bg) + " couldn't be cast to Int")) | |
236 | 236 | } | |
237 | 237 | ||
238 | - | func bi () = | |
238 | + | func bi (aX) = makeString(["%s%s", "whitelisted", toString(aX)], j) | |
239 | 239 | ||
240 | 240 | ||
241 | - | func bj () = | |
241 | + | func bj (aX) = valueOrElse(getBoolean(bd, bi(aX)), false) | |
242 | 242 | ||
243 | 243 | ||
244 | - | func bk () = { | |
245 | - | let bl = aW(this, ae()) | |
246 | - | let bm = aW(this, af()) | |
247 | - | let az = aZ(bd, aA(bm)) | |
248 | - | let ay = aZ(bd, aA(bl)) | |
244 | + | func bk () = valueOrElse(getBoolean(bd, aC()), false) | |
245 | + | ||
246 | + | ||
247 | + | func bl () = fromBase58String(aW(bd, au())) | |
248 | + | ||
249 | + | ||
250 | + | func bm () = { | |
251 | + | let bn = aW(this, ae()) | |
252 | + | let bo = aW(this, af()) | |
253 | + | let az = aZ(bd, aA(bo)) | |
254 | + | let ay = aZ(bd, aA(bn)) | |
249 | 255 | split(aW(bd, ax(toString(ay), toString(az))), j) | |
250 | 256 | } | |
251 | 257 | ||
252 | 258 | ||
253 | - | func | |
259 | + | func bp (bq) = if ((bq == i)) | |
254 | 260 | then unit | |
255 | - | else fromBase58String( | |
261 | + | else fromBase58String(bq) | |
256 | 262 | ||
257 | 263 | ||
258 | - | func | |
264 | + | func br (bq) = if ((bq == unit)) | |
259 | 265 | then i | |
260 | - | else toBase58String(value( | |
266 | + | else toBase58String(value(bq)) | |
261 | 267 | ||
262 | 268 | ||
263 | - | func | |
269 | + | func bs (bt) = $Tuple7(addressFromStringValue(bt[o]), parseIntValue(bt[p]), fromBase58String(bt[q]), bp(bt[r]), bp(bt[s]), parseIntValue(bt[t]), parseIntValue(bt[u])) | |
264 | 270 | ||
265 | 271 | ||
266 | - | let | |
272 | + | let bu = bs(bm()) | |
267 | 273 | ||
268 | - | let | |
274 | + | let bv = bu | |
269 | 275 | ||
270 | - | let | |
276 | + | let bw = bv._1 | |
271 | 277 | ||
272 | - | let | |
278 | + | let bx = bv._2 | |
273 | 279 | ||
274 | - | let | |
280 | + | let by = bv._3 | |
275 | 281 | ||
276 | - | let | |
282 | + | let bz = bv._4 | |
277 | 283 | ||
278 | - | let | |
284 | + | let bA = bv._5 | |
279 | 285 | ||
280 | - | let | |
286 | + | let bB = bv._6 | |
281 | 287 | ||
282 | - | let | |
288 | + | let bC = bv._7 | |
283 | 289 | ||
284 | - | func | |
290 | + | func bD () = split(aW(bd, at()), j) | |
285 | 291 | ||
286 | 292 | ||
287 | - | let | |
293 | + | let bE = valueOrErrorMessage(addressFromString(bD()[B]), "incorrect staking address") | |
288 | 294 | ||
289 | - | let | |
295 | + | let bF = valueOrErrorMessage(addressFromString(bD()[C]), "incorrect staking address") | |
290 | 296 | ||
291 | - | func | |
297 | + | func bG (bH,bI,bJ,bK,bL,bM,bN,bO,bP,bQ) = makeString(["%d%d%d%d%d%d%d%d%d%d", toString(bH), toString(bI), toString(bJ), toString(bK), toString(bL), toString(bM), toString(bN), toString(bO), toString(bP), toString(bQ)], j) | |
292 | 298 | ||
293 | 299 | ||
294 | - | func | |
300 | + | func bR (bS,bT,bU,bK,bN,bO) = makeString(["%d%d%d%d%d%d", toString(bS), toString(bT), toString(bU), toString(bK), toString(bN), toString(bO)], j) | |
295 | 301 | ||
296 | 302 | ||
297 | - | func | |
298 | - | let | |
303 | + | func bV (ap) = { | |
304 | + | let bW = if ((ap == "WAVES")) | |
299 | 305 | then wavesBalance(this).available | |
300 | 306 | else assetBalance(this, fromBase58String(ap)) | |
301 | - | let | |
302 | - | max([0, | |
307 | + | let bX = ((bW + ar(ap)) - as(ap)) | |
308 | + | max([0, bX]) | |
303 | 309 | } | |
304 | 310 | ||
305 | 311 | ||
306 | - | func | |
312 | + | func bY (bZ,ca) = fraction(bZ, d, ca) | |
307 | 313 | ||
308 | 314 | ||
309 | - | func | |
315 | + | func cb (bZ,ca,L) = fraction(bZ, d, ca, L) | |
310 | 316 | ||
311 | 317 | ||
312 | - | func | |
313 | - | let | |
314 | - | if (( | |
318 | + | func cc (cd) = { | |
319 | + | let ce = invoke(cd, "getRate", nil, nil) | |
320 | + | if ((ce == ce)) | |
315 | 321 | then { | |
316 | - | let aQ = | |
322 | + | let aQ = ce | |
317 | 323 | if ($isInstanceOf(aQ, "Int")) | |
318 | 324 | then { | |
319 | - | let | |
320 | - | | |
325 | + | let cf = aQ | |
326 | + | cf | |
321 | 327 | } | |
322 | 328 | else ba("proxy.getRate() unexpected value") | |
323 | 329 | } | |
324 | 330 | else throw("Strict value is not equal to itself.") | |
325 | 331 | } | |
326 | 332 | ||
327 | 333 | ||
328 | - | func | |
329 | - | let | |
330 | - | if (( | |
334 | + | func cg (ap,ch,ci,cd) = { | |
335 | + | let cj = ar(ap) | |
336 | + | if ((cj == cj)) | |
331 | 337 | then { | |
332 | - | let | |
333 | - | if (( | |
338 | + | let ck = as(ci) | |
339 | + | if ((ck == ck)) | |
334 | 340 | then { | |
335 | - | let | |
336 | - | if (( | |
341 | + | let cl = bp(ap) | |
342 | + | if ((ch > 0)) | |
337 | 343 | then { | |
338 | - | let | |
339 | - | if (( | |
344 | + | let cm = invoke(cd, "deposit", nil, [AttachedPayment(cl, ch)]) | |
345 | + | if ((cm == cm)) | |
340 | 346 | then { | |
341 | - | let aQ = | |
347 | + | let aQ = cm | |
342 | 348 | if ($isInstanceOf(aQ, "Int")) | |
343 | 349 | then { | |
344 | - | let | |
345 | - | let | |
346 | - | let | |
347 | - | [IntegerEntry(ao(ap), | |
350 | + | let cn = aQ | |
351 | + | let co = (cj + ch) | |
352 | + | let cp = (ck + cn) | |
353 | + | [IntegerEntry(ao(ap), co), IntegerEntry(aq(ci), cp)] | |
348 | 354 | } | |
349 | 355 | else nil | |
350 | 356 | } | |
351 | 357 | else throw("Strict value is not equal to itself.") | |
352 | 358 | } | |
353 | 359 | else nil | |
354 | 360 | } | |
355 | 361 | else throw("Strict value is not equal to itself.") | |
356 | 362 | } | |
357 | 363 | else throw("Strict value is not equal to itself.") | |
358 | 364 | } | |
359 | 365 | ||
360 | 366 | ||
361 | - | func | |
362 | - | let | |
363 | - | if (( | |
367 | + | func cq (ap,ch,ci,cd,cr,cs) = { | |
368 | + | let cj = ar(ap) | |
369 | + | if ((cj == cj)) | |
364 | 370 | then { | |
365 | - | let | |
366 | - | if (( | |
371 | + | let ck = as(ci) | |
372 | + | if ((ck == ck)) | |
367 | 373 | then { | |
368 | - | let | |
369 | - | if (( | |
374 | + | let ct = cc(cd) | |
375 | + | if ((ct == ct)) | |
370 | 376 | then { | |
371 | - | let | |
372 | - | let | |
373 | - | let | |
374 | - | let | |
375 | - | let | |
376 | - | if (( | |
377 | + | let cu = fraction(cr, cj, ck) | |
378 | + | let cv = bp(ci) | |
379 | + | let cw = fraction(cr, ch, cu) | |
380 | + | let cx = fraction(cr, ch, ct) | |
381 | + | let cy = max([0, (cw - cx)]) | |
382 | + | if ((cx > 0)) | |
377 | 383 | then { | |
378 | - | let | |
379 | - | if (( | |
384 | + | let cz = invoke(cd, "withdraw", nil, [AttachedPayment(cv, cx)]) | |
385 | + | if ((cz == cz)) | |
380 | 386 | then { | |
381 | - | let aQ = | |
387 | + | let aQ = cz | |
382 | 388 | if ($isInstanceOf(aQ, "Int")) | |
383 | 389 | then { | |
384 | - | let | |
385 | - | let | |
386 | - | let | |
387 | - | [IntegerEntry(ao(ap), | |
390 | + | let cA = aQ | |
391 | + | let co = (cj - cA) | |
392 | + | let cp = ((ck - cx) - cy) | |
393 | + | [IntegerEntry(ao(ap), co), IntegerEntry(aq(ci), cp), ScriptTransfer(cs, cy, bp(ci))] | |
388 | 394 | } | |
389 | 395 | else nil | |
390 | 396 | } | |
391 | 397 | else throw("Strict value is not equal to itself.") | |
392 | 398 | } | |
393 | 399 | else nil | |
394 | 400 | } | |
395 | 401 | else throw("Strict value is not equal to itself.") | |
396 | 402 | } | |
397 | 403 | else throw("Strict value is not equal to itself.") | |
398 | 404 | } | |
399 | 405 | else throw("Strict value is not equal to itself.") | |
400 | 406 | } | |
401 | 407 | ||
402 | 408 | ||
403 | - | func | |
409 | + | func cB (ap) = { | |
404 | 410 | let aQ = invoke(bd, "getPoolLeaseConfigREADONLY", [toString(this), ap], nil) | |
405 | 411 | if ($isInstanceOf(aQ, "(Boolean, Int, Int, String, String, Int, String)")) | |
406 | 412 | then { | |
407 | 413 | let aR = aQ | |
408 | 414 | aR | |
409 | 415 | } | |
410 | 416 | else ba((("[" + ap) + "] getLeaseProxyConfig() error")) | |
411 | 417 | } | |
412 | 418 | ||
413 | 419 | ||
414 | - | func | |
415 | - | let | |
416 | - | if (( | |
420 | + | func cC (cD,ap,ci,cE,cd,cr,cs) = { | |
421 | + | let cj = ar(ap) | |
422 | + | if ((cj == cj)) | |
417 | 423 | then { | |
418 | - | let | |
419 | - | if (( | |
424 | + | let ck = as(ci) | |
425 | + | if ((ck == ck)) | |
420 | 426 | then { | |
421 | - | let | |
422 | - | let | |
423 | - | let | |
424 | - | if (( | |
427 | + | let cF = max([0, (bV(ap) - cE)]) | |
428 | + | let cG = fraction(cD, cF, 100) | |
429 | + | let cH = (cj - cG) | |
430 | + | if ((cH == 0)) | |
425 | 431 | then nil | |
426 | - | else if ((0 > | |
432 | + | else if ((0 > cH)) | |
427 | 433 | then { | |
428 | - | let | |
429 | - | | |
434 | + | let cI = -(cH) | |
435 | + | cg(ap, cI, ci, cd) | |
430 | 436 | } | |
431 | 437 | else { | |
432 | - | let | |
433 | - | | |
438 | + | let cJ = cH | |
439 | + | cq(ap, cJ, ci, cd, cr, cs) | |
434 | 440 | } | |
435 | 441 | } | |
436 | 442 | else throw("Strict value is not equal to itself.") | |
437 | 443 | } | |
438 | 444 | else throw("Strict value is not equal to itself.") | |
439 | 445 | } | |
440 | 446 | ||
441 | 447 | ||
442 | - | func | |
443 | - | let | |
444 | - | let | |
445 | - | let | |
446 | - | let | |
447 | - | let | |
448 | - | let | |
449 | - | let | |
450 | - | let | |
451 | - | if ( | |
452 | - | then | |
448 | + | func cK (ap) = { | |
449 | + | let cL = cB(ap) | |
450 | + | let cM = cL._1 | |
451 | + | let cN = cL._2 | |
452 | + | let cE = cL._3 | |
453 | + | let cO = cL._4 | |
454 | + | let cP = cL._5 | |
455 | + | let cr = cL._6 | |
456 | + | let cQ = cL._7 | |
457 | + | if (cM) | |
458 | + | then cC(cN, ap, cP, cE, addressFromStringValue(cO), cr, addressFromStringValue(cQ)) | |
453 | 459 | else nil | |
454 | 460 | } | |
455 | 461 | ||
456 | 462 | ||
457 | - | func | |
458 | - | let | |
459 | - | let | |
460 | - | let | |
461 | - | let | |
462 | - | let | |
463 | - | let | |
464 | - | let | |
465 | - | let | |
466 | - | if ( | |
463 | + | func cR (ap,cS) = { | |
464 | + | let cT = cB(ap) | |
465 | + | let cM = cT._1 | |
466 | + | let cN = cT._2 | |
467 | + | let cE = cT._3 | |
468 | + | let cO = cT._4 | |
469 | + | let cP = cT._5 | |
470 | + | let cr = cT._6 | |
471 | + | let cQ = cT._7 | |
472 | + | if (cM) | |
467 | 473 | then { | |
468 | - | let | |
469 | - | if (( | |
474 | + | let cU = max([0, ((bV(ap) - cS) - cE)]) | |
475 | + | if ((cU == cU)) | |
470 | 476 | then { | |
471 | - | let | |
472 | - | if (( | |
477 | + | let co = fraction(cN, cU, 100) | |
478 | + | if ((co == co)) | |
473 | 479 | then { | |
474 | - | let | |
475 | - | if (( | |
476 | - | then if ((0 > | |
477 | - | then | |
478 | - | else | |
480 | + | let cV = (ar(ap) - co) | |
481 | + | if ((cV == cV)) | |
482 | + | then if ((0 > cV)) | |
483 | + | then cg(ap, -(cV), cP, addressFromStringValue(cO)) | |
484 | + | else cq(ap, cV, cP, addressFromStringValue(cO), cr, addressFromStringValue(cQ)) | |
479 | 485 | else throw("Strict value is not equal to itself.") | |
480 | 486 | } | |
481 | 487 | else throw("Strict value is not equal to itself.") | |
482 | 488 | } | |
483 | 489 | else throw("Strict value is not equal to itself.") | |
484 | 490 | } | |
485 | 491 | else nil | |
486 | 492 | } | |
487 | 493 | ||
488 | 494 | ||
489 | - | func | |
490 | - | let | |
491 | - | let | |
492 | - | ( | |
495 | + | func cW (cX,cY) = { | |
496 | + | let cZ = cR(aW(this, ae()), cX) | |
497 | + | let da = cR(aW(this, af()), cY) | |
498 | + | (cZ ++ da) | |
493 | 499 | } | |
494 | 500 | ||
495 | 501 | ||
496 | - | func | |
497 | - | let | |
498 | - | let | |
499 | - | | |
502 | + | func db (dc,dd,de,df) = { | |
503 | + | let dg = D(de, dc) | |
504 | + | let dh = D(df, dd) | |
505 | + | bY(dh, dg) | |
500 | 506 | } | |
501 | 507 | ||
502 | 508 | ||
503 | - | func | |
504 | - | let | |
505 | - | let | |
506 | - | let | |
507 | - | let | |
508 | - | let | |
509 | - | let | |
510 | - | let | |
511 | - | let | |
512 | - | let | |
513 | - | [ | |
509 | + | func di (de,df,dj) = { | |
510 | + | let dk = bm() | |
511 | + | let dl = parseIntValue(dk[t]) | |
512 | + | let dm = parseIntValue(dk[u]) | |
513 | + | let dn = db(dl, dm, de, df) | |
514 | + | let ca = D(de, dl) | |
515 | + | let bZ = D(df, dm) | |
516 | + | let do = D(dj, b) | |
517 | + | let dp = bY(ca, do) | |
518 | + | let dq = bY(bZ, do) | |
519 | + | [dn, dp, dq] | |
514 | 520 | } | |
515 | 521 | ||
516 | 522 | ||
517 | - | func | |
518 | - | let | |
519 | - | [H( | |
523 | + | func dr (de,df,dj) = { | |
524 | + | let ds = di(de, df, dj) | |
525 | + | [H(ds[0], b), H(ds[1], b), H(ds[2], b)] | |
520 | 526 | } | |
521 | 527 | ||
522 | 528 | ||
523 | - | func | |
524 | - | let | |
525 | - | let | |
526 | - | let | |
527 | - | let | |
528 | - | let | |
529 | - | let | |
530 | - | let | |
531 | - | let | |
532 | - | if (( | |
529 | + | func dt (du,dv,dw,ab) = { | |
530 | + | let dk = bm() | |
531 | + | let dx = dk[q] | |
532 | + | let dy = dk[r] | |
533 | + | let dz = dk[s] | |
534 | + | let dc = parseIntValue(dk[t]) | |
535 | + | let dd = parseIntValue(dk[u]) | |
536 | + | let dA = dk[p] | |
537 | + | let dB = valueOrErrorMessage(assetInfo(fromBase58String(dx)), (("Asset " + dx) + " doesn't exist")).quantity | |
538 | + | if ((dx != dv)) | |
533 | 539 | then throw("Invalid asset passed.") | |
534 | 540 | else { | |
535 | - | let | |
536 | - | let | |
537 | - | let | |
538 | - | let | |
539 | - | let | |
540 | - | let | |
541 | - | let | |
542 | - | let | |
543 | - | let | |
544 | - | let | |
545 | - | let | |
546 | - | let | |
547 | - | let | |
541 | + | let dC = bV(dy) | |
542 | + | let dD = D(dC, dc) | |
543 | + | let dE = bV(dz) | |
544 | + | let dF = D(dE, dd) | |
545 | + | let dG = bY(dF, dD) | |
546 | + | let dH = H(dG, b) | |
547 | + | let dI = D(dw, b) | |
548 | + | let dJ = D(dB, b) | |
549 | + | let dK = fraction(dD, dI, dJ) | |
550 | + | let dL = fraction(dF, dI, dJ) | |
551 | + | let dM = K(dK, dc, FLOOR) | |
552 | + | let dN = K(dL, dd, FLOOR) | |
553 | + | let dO = if ((du == "")) | |
548 | 554 | then nil | |
549 | - | else [ScriptTransfer(ab, | |
555 | + | else [ScriptTransfer(ab, dM, if ((dy == "WAVES")) | |
550 | 556 | then unit | |
551 | - | else fromBase58String( | |
557 | + | else fromBase58String(dy)), ScriptTransfer(ab, dN, if ((dz == "WAVES")) | |
552 | 558 | then unit | |
553 | - | else fromBase58String( | |
554 | - | $Tuple10( | |
559 | + | else fromBase58String(dz)), StringEntry(ad(toString(ab), du), bR(dM, dN, dw, dH, height, lastBlock.timestamp)), IntegerEntry(W(), dH), IntegerEntry(X(height, lastBlock.timestamp), dH)] | |
560 | + | $Tuple10(dM, dN, dy, dz, dC, dE, dB, dG, dA, dO) | |
555 | 561 | } | |
556 | 562 | } | |
557 | 563 | ||
558 | 564 | ||
559 | - | func | |
560 | - | let | |
561 | - | let | |
562 | - | let | |
563 | - | let | |
564 | - | let | |
565 | - | let | |
566 | - | let | |
567 | - | let | |
568 | - | let | |
569 | - | let | |
570 | - | let | |
571 | - | let | |
572 | - | if (if (( | |
565 | + | func dP (du,dQ,dR,dS,dT,dU,ab,dV,dW) = { | |
566 | + | let dk = bm() | |
567 | + | let dx = fromBase58String(dk[q]) | |
568 | + | let dX = dk[r] | |
569 | + | let dY = dk[s] | |
570 | + | let dZ = dk[v] | |
571 | + | let ea = dk[w] | |
572 | + | let dl = parseIntValue(dk[t]) | |
573 | + | let dm = parseIntValue(dk[u]) | |
574 | + | let dA = dk[p] | |
575 | + | let dB = valueOrErrorMessage(assetInfo(dx), (("Asset " + toBase58String(dx)) + " doesn't exist")).quantity | |
576 | + | let eb = toBase58String(valueOrElse(dS, fromBase58String("WAVES"))) | |
577 | + | let ec = toBase58String(valueOrElse(dU, fromBase58String("WAVES"))) | |
578 | + | if (if ((dX != eb)) | |
573 | 579 | then true | |
574 | - | else ( | |
580 | + | else (dY != ec)) | |
575 | 581 | then throw("Invalid amt or price asset passed.") | |
576 | 582 | else { | |
577 | - | let | |
578 | - | then | |
579 | - | else ( | |
580 | - | let | |
581 | - | then | |
582 | - | else ( | |
583 | - | let | |
584 | - | let | |
585 | - | let | |
586 | - | let | |
587 | - | let | |
588 | - | let | |
583 | + | let dC = if (dV) | |
584 | + | then bV(dX) | |
585 | + | else (bV(dX) - dR) | |
586 | + | let dE = if (dV) | |
587 | + | then bV(dY) | |
588 | + | else (bV(dY) - dT) | |
589 | + | let ed = D(dR, dl) | |
590 | + | let ee = D(dT, dm) | |
591 | + | let ef = bY(ee, ed) | |
592 | + | let dD = D(dC, dl) | |
593 | + | let dF = D(dE, dm) | |
594 | + | let eg = if ((dB == 0)) | |
589 | 595 | then { | |
590 | - | let | |
591 | - | let | |
592 | - | let | |
593 | - | $Tuple5(H( | |
596 | + | let dG = e | |
597 | + | let eh = e | |
598 | + | let do = pow((ed * ee), 0, toBigInt(5), 1, 0, DOWN) | |
599 | + | $Tuple5(H(do, b), H(ed, dl), H(ee, dm), bY((dF + ee), (dD + ed)), eh) | |
594 | 600 | } | |
595 | 601 | else { | |
596 | - | let | |
597 | - | let | |
598 | - | let | |
599 | - | if (if (( | |
600 | - | then ( | |
602 | + | let dG = bY(dF, dD) | |
603 | + | let eh = fraction(R((dG - ef)), d, dG) | |
604 | + | let ei = D(dQ, b) | |
605 | + | if (if ((dG != e)) | |
606 | + | then (eh > ei) | |
601 | 607 | else false) | |
602 | - | then throw(((("Price slippage " + toString( | |
608 | + | then throw(((("Price slippage " + toString(eh)) + " exceeded the passed limit of ") + toString(ei))) | |
603 | 609 | else { | |
604 | - | let | |
605 | - | let | |
606 | - | let | |
607 | - | let | |
608 | - | then $Tuple2( | |
609 | - | else $Tuple2( | |
610 | - | let | |
611 | - | let | |
612 | - | let | |
613 | - | $Tuple5(K( | |
610 | + | let dJ = D(dB, b) | |
611 | + | let ej = fraction(ed, cb(dF, dD, CEILING), d, CEILING) | |
612 | + | let ek = fraction(ee, d, cb(dF, dD, FLOOR), CEILING) | |
613 | + | let el = if ((ej > ee)) | |
614 | + | then $Tuple2(ek, ee) | |
615 | + | else $Tuple2(ed, ej) | |
616 | + | let em = el._1 | |
617 | + | let en = el._2 | |
618 | + | let do = fraction(dJ, en, dF, FLOOR) | |
619 | + | $Tuple5(K(do, b, FLOOR), K(em, dl, CEILING), K(en, dm, CEILING), dG, eh) | |
614 | 620 | } | |
615 | 621 | } | |
616 | - | let | |
617 | - | let | |
618 | - | let | |
619 | - | let | |
620 | - | let | |
621 | - | if ((0 >= | |
622 | + | let eo = eg._1 | |
623 | + | let ep = eg._2 | |
624 | + | let eq = eg._3 | |
625 | + | let dH = H(eg._4, b) | |
626 | + | let er = H(eg._5, b) | |
627 | + | if ((0 >= eo)) | |
622 | 628 | then throw("Invalid calculations. LP calculated is less than zero.") | |
623 | 629 | else { | |
624 | - | let | |
630 | + | let es = if (!(dW)) | |
625 | 631 | then 0 | |
626 | - | else | |
627 | - | let | |
628 | - | let | |
629 | - | let | |
630 | - | $Tuple13( | |
632 | + | else eo | |
633 | + | let et = (dR - ep) | |
634 | + | let eu = (dT - eq) | |
635 | + | let ev = [IntegerEntry(W(), dH), IntegerEntry(X(height, lastBlock.timestamp), dH), StringEntry(aa(ab, du), bG(ep, eq, es, dH, dQ, er, height, lastBlock.timestamp, et, eu))] | |
636 | + | $Tuple13(eo, es, dH, dC, dE, dB, dx, dA, ev, et, eu, dS, dU) | |
631 | 637 | } | |
632 | 638 | } | |
633 | 639 | } | |
634 | 640 | ||
635 | 641 | ||
636 | - | func | |
637 | - | let | |
638 | - | let | |
639 | - | let | |
640 | - | if (( | |
642 | + | func ew (ex,ey,dB) = { | |
643 | + | let ez = G(ex, toBigInt(bB)) | |
644 | + | let eA = G(ey, toBigInt(bC)) | |
645 | + | let eB = fraction(pow((ez * eA), 0, toBigInt(5), 1, 18, DOWN), g, dB) | |
646 | + | if ((dB == f)) | |
641 | 647 | then f | |
642 | - | else | |
648 | + | else eB | |
643 | 649 | } | |
644 | 650 | ||
645 | 651 | ||
646 | - | func | |
647 | - | let | |
648 | - | let | |
649 | - | let | |
650 | - | let | |
651 | - | | |
652 | + | func eC (eD,eE,eF) = { | |
653 | + | let eG = (toBigInt(bV(br(bz))) - eD) | |
654 | + | let eH = (toBigInt(bV(br(bA))) - eE) | |
655 | + | let eI = (toBigInt(value(assetInfo(by)).quantity) - eF) | |
656 | + | let eJ = ew(eG, eH, eI) | |
657 | + | eJ | |
652 | 658 | } | |
653 | 659 | ||
654 | 660 | ||
655 | - | func | |
656 | - | let | |
657 | - | let | |
658 | - | let | |
659 | - | let | |
660 | - | let | |
661 | - | $Tuple2( | |
661 | + | func eK (eL,eM,eF) = { | |
662 | + | let eG = (bV(br(bz)) + eL) | |
663 | + | let eH = (bV(br(bA)) + eM) | |
664 | + | let eI = (value(assetInfo(by)).quantity + eF) | |
665 | + | let eB = ew(toBigInt(eG), toBigInt(eH), toBigInt(eI)) | |
666 | + | let eN = [IntegerEntry(ak, height), StringEntry(aj, toString(eB))] | |
667 | + | $Tuple2(eN, eB) | |
662 | 668 | } | |
663 | 669 | ||
664 | 670 | ||
665 | - | func | |
671 | + | func eO () = valueOrElse(getBoolean(bd, aH(toString(this))), false) | |
666 | 672 | ||
667 | 673 | ||
668 | - | func | |
674 | + | func eP (eQ,eB) = if ((eB >= eQ)) | |
669 | 675 | then true | |
670 | - | else ba(makeString(["updated KLp lower than current KLp", toString( | |
676 | + | else ba(makeString(["updated KLp lower than current KLp", toString(eQ), toString(eB)], " ")) | |
671 | 677 | ||
672 | 678 | ||
673 | - | func | |
674 | - | let | |
675 | - | let | |
676 | - | let | |
677 | - | let | |
678 | - | let | |
679 | - | then $Tuple2( | |
680 | - | else $Tuple2(-( | |
681 | - | let | |
682 | - | let | |
683 | - | if (if (if ( | |
679 | + | func eR (eS) = { | |
680 | + | let eG = bV(br(bz)) | |
681 | + | let eH = bV(br(bA)) | |
682 | + | let eT = eS.amount | |
683 | + | let eU = fraction(eS.amount, eS.price, b, FLOOR) | |
684 | + | let eV = if ((eS.orderType == Buy)) | |
685 | + | then $Tuple2(eT, -(eU)) | |
686 | + | else $Tuple2(-(eT), eU) | |
687 | + | let eL = eV._1 | |
688 | + | let eM = eV._2 | |
689 | + | if (if (if (bk()) | |
684 | 690 | then true | |
685 | - | else ( | |
691 | + | else (bx == m)) | |
686 | 692 | then true | |
687 | - | else ( | |
693 | + | else (bx == n)) | |
688 | 694 | then throw("Exchange operations disabled") | |
689 | - | else if (if (( | |
695 | + | else if (if ((eS.assetPair.amountAsset != bz)) | |
690 | 696 | then true | |
691 | - | else ( | |
697 | + | else (eS.assetPair.priceAsset != bA)) | |
692 | 698 | then throw("Wrong order assets.") | |
693 | 699 | else { | |
694 | - | let | |
695 | - | let | |
696 | - | let | |
697 | - | let | |
698 | - | let | |
699 | - | let | |
700 | - | $Tuple2( | |
700 | + | let eW = valueOrErrorMessage(parseBigInt(valueOrElse(getString(this, aj), "0")), bc("invalid kLp")) | |
701 | + | let eX = eK(eL, eM, 0) | |
702 | + | let eY = eX._1 | |
703 | + | let eZ = eX._2 | |
704 | + | let fa = (eZ >= eW) | |
705 | + | let fb = makeString(["kLp=", toString(eW), " kLpNew=", toString(eZ), " amountAssetBalance=", toString(eG), " priceAssetBalance=", toString(eH), " amountAssetBalanceDelta=", toString(eL), " priceAssetBalanceDelta=", toString(eM), " height=", toString(height)], "") | |
706 | + | $Tuple2(fa, fb) | |
701 | 707 | } | |
702 | 708 | } | |
703 | 709 | ||
704 | 710 | ||
705 | - | func | |
711 | + | func fc (fd) = if ((size(fd.payments) != 1)) | |
706 | 712 | then throw("exactly 1 payment is expected") | |
707 | 713 | else { | |
708 | - | let fc = value(fb.payments[0]) | |
709 | - | let dt = value(fc.assetId) | |
710 | - | let fd = fc.amount | |
711 | - | let ee = dr(toBase58String(fb.transactionId), toBase58String(dt), fd, fb.caller) | |
712 | - | let dK = ee._1 | |
713 | - | let dL = ee._2 | |
714 | - | let dy = parseIntValue(ee._9) | |
715 | - | let dM = ee._10 | |
716 | - | if (if (bi()) | |
717 | - | then true | |
718 | - | else (dy == n)) | |
719 | - | then throw(("Get operation is blocked by admin. Status = " + toString(dy))) | |
720 | - | else $Tuple5(dK, dL, fd, dt, dM) | |
714 | + | let fe = value(fd.payments[0]) | |
715 | + | let dv = value(fe.assetId) | |
716 | + | let ff = fe.amount | |
717 | + | let eg = dt(toBase58String(fd.transactionId), toBase58String(dv), ff, fd.caller) | |
718 | + | let dM = eg._1 | |
719 | + | let dN = eg._2 | |
720 | + | let dO = eg._10 | |
721 | + | let fg = if (!(bj(fd.caller))) | |
722 | + | then if (bk()) | |
723 | + | then true | |
724 | + | else (bx == n) | |
725 | + | else false | |
726 | + | if (fg) | |
727 | + | then throw(("Get operation is blocked by admin. Status = " + toString(bx))) | |
728 | + | else $Tuple5(dM, dN, ff, dv, dO) | |
721 | 729 | } | |
722 | 730 | ||
723 | 731 | ||
724 | - | func | |
732 | + | func fh (fd,dQ,dW) = if ((size(fd.payments) != 2)) | |
725 | 733 | then throw("exactly 2 payments are expected") | |
726 | 734 | else { | |
727 | - | let ff = value(fb.payments[0]) | |
728 | - | let fg = value(fb.payments[1]) | |
729 | - | let fh = dN(toBase58String(fb.transactionId), dO, ff.amount, ff.assetId, fg.amount, fg.assetId, toString(fb.caller), false, dU) | |
730 | - | let dy = parseIntValue(fh._8) | |
731 | - | if (if (if (bi()) | |
732 | - | then true | |
733 | - | else (dy == l)) | |
734 | - | then true | |
735 | - | else (dy == n)) | |
736 | - | then throw(("Put operation is blocked by admin. Status = " + toString(dy))) | |
737 | - | else fh | |
735 | + | let fi = value(fd.payments[0]) | |
736 | + | let fj = value(fd.payments[1]) | |
737 | + | let fk = dP(toBase58String(fd.transactionId), dQ, fi.amount, fi.assetId, fj.amount, fj.assetId, toString(fd.caller), false, dW) | |
738 | + | let fl = if (!(bj(fd.caller))) | |
739 | + | then if (if (bk()) | |
740 | + | then true | |
741 | + | else (bx == l)) | |
742 | + | then true | |
743 | + | else (bx == n) | |
744 | + | else false | |
745 | + | if (fl) | |
746 | + | then throw(("Put operation is blocked by admin. Status = " + toString(bx))) | |
747 | + | else fk | |
738 | 748 | } | |
739 | 749 | ||
740 | 750 | ||
741 | - | func | |
742 | - | let | |
743 | - | if (( | |
751 | + | func fm (ch) = { | |
752 | + | let fn = invoke(bd, "emit", [ch], nil) | |
753 | + | if ((fn == fn)) | |
744 | 754 | then { | |
745 | - | let | |
746 | - | let aQ = | |
755 | + | let fo = { | |
756 | + | let aQ = fn | |
747 | 757 | if ($isInstanceOf(aQ, "Address")) | |
748 | 758 | then { | |
749 | - | let | |
750 | - | invoke( | |
759 | + | let fp = aQ | |
760 | + | invoke(fp, "emit", [ch], nil) | |
751 | 761 | } | |
752 | 762 | else unit | |
753 | 763 | } | |
754 | - | if (( | |
755 | - | then | |
764 | + | if ((fo == fo)) | |
765 | + | then ch | |
756 | 766 | else throw("Strict value is not equal to itself.") | |
757 | 767 | } | |
758 | 768 | else throw("Strict value is not equal to itself.") | |
759 | 769 | } | |
760 | 770 | ||
761 | 771 | ||
762 | - | func | |
763 | - | let | |
772 | + | func fq (ch,ai) = { | |
773 | + | let fr = if ((ai == 0)) | |
764 | 774 | then 0 | |
765 | - | else fraction( | |
766 | - | $Tuple2(( | |
775 | + | else fraction(ch, ai, b) | |
776 | + | $Tuple2((ch - fr), fr) | |
767 | 777 | } | |
768 | 778 | ||
769 | 779 | ||
770 | - | func | |
771 | - | let | |
772 | - | let | |
773 | - | let | |
774 | - | let | |
780 | + | func fs (ft,fu,ab,ac) = { | |
781 | + | let fv = (ac == unit) | |
782 | + | let fw = bV(br(bz)) | |
783 | + | let fx = bV(br(bA)) | |
784 | + | let fy = if ((fu == bz)) | |
775 | 785 | then true | |
776 | - | else if (( | |
786 | + | else if ((fu == bA)) | |
777 | 787 | then false | |
778 | 788 | else ba("invalid asset") | |
779 | - | let | |
780 | - | then $Tuple2( | |
781 | - | else if ( | |
782 | - | then $Tuple2(( | |
783 | - | else $Tuple2( | |
784 | - | let | |
785 | - | let | |
786 | - | let | |
787 | - | then $Tuple2( | |
788 | - | else $Tuple2(0, | |
789 | - | let | |
790 | - | let | |
791 | - | let | |
792 | - | let | |
793 | - | let | |
794 | - | let | |
795 | - | let | |
796 | - | let | |
797 | - | let | |
798 | - | let | |
799 | - | let | |
800 | - | let | |
801 | - | then | |
802 | - | else | |
803 | - | let | |
804 | - | let | |
805 | - | let | |
789 | + | let fz = if (fv) | |
790 | + | then $Tuple2(fw, fx) | |
791 | + | else if (fy) | |
792 | + | then $Tuple2((fw - ft), fx) | |
793 | + | else $Tuple2(fw, (fx - ft)) | |
794 | + | let fA = fz._1 | |
795 | + | let fB = fz._2 | |
796 | + | let fC = if (fy) | |
797 | + | then $Tuple2(ft, 0) | |
798 | + | else $Tuple2(0, ft) | |
799 | + | let fD = fC._1 | |
800 | + | let fE = fC._2 | |
801 | + | let eT = fq(fD, bf)._1 | |
802 | + | let eU = fq(fE, bf)._1 | |
803 | + | let fF = fq(ft, bf) | |
804 | + | let fG = fF._1 | |
805 | + | let fr = fF._2 | |
806 | + | let fH = (fA + eT) | |
807 | + | let fI = (fB + eU) | |
808 | + | let fJ = bY(D(fI, bC), D(fH, bB)) | |
809 | + | let fK = H(fJ, b) | |
810 | + | let fL = if (fy) | |
811 | + | then fA | |
812 | + | else fB | |
813 | + | let fM = toBigInt(fL) | |
814 | + | let fN = toBigInt(valueOrErrorMessage(assetInfo(by), (("asset " + toBase58String(by)) + " doesn't exist")).quantity) | |
815 | + | let fO = if ((fN > f)) | |
806 | 816 | then true | |
807 | 817 | else ba("initial deposit requires all coins") | |
808 | - | if (( | |
818 | + | if ((fO == fO)) | |
809 | 819 | then { | |
810 | - | let | |
811 | - | let | |
812 | - | let | |
820 | + | let fP = toBigInt(fG) | |
821 | + | let fQ = max([0, toInt(((fN * (sqrtBigInt((d + ((fP * d) / fM)), 18, 18, DOWN) - d)) / d))]) | |
822 | + | let ev = if (fv) | |
813 | 823 | then nil | |
814 | - | else [IntegerEntry(W(), | |
815 | - | let | |
816 | - | let | |
817 | - | let | |
818 | - | let | |
819 | - | then $Tuple2( | |
820 | - | else $Tuple2( | |
821 | - | let | |
822 | - | let | |
823 | - | let | |
824 | - | fraction(( | |
824 | + | else [IntegerEntry(W(), fK), IntegerEntry(X(height, lastBlock.timestamp), fK), StringEntry(aa(toString(value(ab)), toBase58String(value(ac))), bG(fD, fE, fQ, fK, 0, 0, height, lastBlock.timestamp, 0, 0))] | |
825 | + | let fR = bY(D(fB, bC), D(fA, bB)) | |
826 | + | let fS = H(fR, b) | |
827 | + | let fT = { | |
828 | + | let fU = if (fy) | |
829 | + | then $Tuple2(fD, fA) | |
830 | + | else $Tuple2(fE, fB) | |
831 | + | let ch = fU._1 | |
832 | + | let fV = fU._2 | |
833 | + | let fW = toInt(fraction(fN, toBigInt((ch / 2)), toBigInt(fV))) | |
834 | + | fraction((fQ - fW), b, fW) | |
825 | 835 | } | |
826 | - | $Tuple5( | |
836 | + | $Tuple5(fQ, ev, fr, fT, fy) | |
827 | 837 | } | |
828 | 838 | else throw("Strict value is not equal to itself.") | |
829 | 839 | } | |
830 | 840 | ||
831 | 841 | ||
832 | - | func | |
833 | - | let | |
834 | - | let | |
835 | - | let | |
836 | - | let | |
837 | - | let | |
842 | + | func fX (fY,fG,fu,ab,ac) = { | |
843 | + | let fv = (ac == unit) | |
844 | + | let dk = bm() | |
845 | + | let dl = parseIntValue(dk[t]) | |
846 | + | let dm = parseIntValue(dk[u]) | |
847 | + | let fZ = [if ((fu == by)) | |
838 | 848 | then true | |
839 | 849 | else ba("invalid lp asset")] | |
840 | - | if (( | |
850 | + | if ((fZ == fZ)) | |
841 | 851 | then { | |
842 | - | let | |
852 | + | let ga = if ((fY == bz)) | |
843 | 853 | then true | |
844 | - | else if (( | |
854 | + | else if ((fY == bA)) | |
845 | 855 | then false | |
846 | 856 | else ba("invalid asset") | |
847 | - | let | |
848 | - | then toBigInt( | |
849 | - | else toBigInt( | |
850 | - | let | |
851 | - | then | |
852 | - | else | |
853 | - | let | |
854 | - | let | |
855 | - | let | |
856 | - | then | |
857 | - | else | |
858 | - | let | |
859 | - | let | |
860 | - | let | |
861 | - | let | |
862 | - | let | |
863 | - | let | |
864 | - | let | |
865 | - | let | |
866 | - | then $Tuple4( | |
867 | - | else $Tuple4(0, | |
868 | - | let | |
869 | - | let | |
870 | - | let | |
871 | - | let | |
872 | - | let | |
873 | - | let | |
874 | - | let | |
857 | + | let gb = if (ga) | |
858 | + | then toBigInt(bV(br(bz))) | |
859 | + | else toBigInt(bV(br(bA))) | |
860 | + | let gc = if (ga) | |
861 | + | then dl | |
862 | + | else dm | |
863 | + | let gd = bV(br(bz)) | |
864 | + | let ge = bV(br(bA)) | |
865 | + | let gf = if (ga) | |
866 | + | then gd | |
867 | + | else ge | |
868 | + | let gg = toBigInt(gf) | |
869 | + | let fN = toBigInt(valueOrErrorMessage(assetInfo(by), (("asset " + toBase58String(by)) + " doesn't exist")).quantity) | |
870 | + | let gh = toBigInt(fG) | |
871 | + | let gi = max([0, toInt(((gb * (d - pow((d - ((gh * d) / fN)), 18, h, 0, 18, DOWN))) / d))]) | |
872 | + | let gj = fq(gi, bh) | |
873 | + | let gk = gj._1 | |
874 | + | let fr = gj._2 | |
875 | + | let gl = if (ga) | |
876 | + | then $Tuple4(gk, 0, (gd - gi), ge) | |
877 | + | else $Tuple4(0, gk, gd, (ge - gi)) | |
878 | + | let gm = gl._1 | |
879 | + | let gn = gl._2 | |
880 | + | let go = gl._3 | |
881 | + | let gp = gl._4 | |
882 | + | let fJ = bY(D(gp, bC), D(go, bB)) | |
883 | + | let fK = H(fJ, b) | |
884 | + | let ev = if (fv) | |
875 | 885 | then nil | |
876 | - | else [StringEntry(ad(toString(value(ab)), toBase58String(value(ac))), | |
877 | - | let | |
878 | - | let | |
879 | - | let | |
880 | - | let | |
881 | - | fraction(( | |
886 | + | else [StringEntry(ad(toString(value(ab)), toBase58String(value(ac))), bR(gm, gn, fG, fK, height, lastBlock.timestamp)), IntegerEntry(W(), fK), IntegerEntry(X(height, lastBlock.timestamp), fK)] | |
887 | + | let fR = bY(D(ge, bC), D(gd, bB)) | |
888 | + | let fS = H(fR, b) | |
889 | + | let fT = { | |
890 | + | let gq = (toInt(fraction(gb, gh, fN)) * 2) | |
891 | + | fraction((gk - gq), b, gq) | |
882 | 892 | } | |
883 | - | $Tuple5( | |
893 | + | $Tuple5(gk, ev, fr, fT, ga) | |
884 | 894 | } | |
885 | 895 | else throw("Strict value is not equal to itself.") | |
886 | 896 | } | |
887 | 897 | ||
888 | 898 | ||
889 | - | func | |
890 | - | let | |
891 | - | let aQ = getString( | |
899 | + | func gr () = { | |
900 | + | let gs = aS() | |
901 | + | let aQ = getString(gs, U()) | |
892 | 902 | if ($isInstanceOf(aQ, "String")) | |
893 | 903 | then { | |
894 | 904 | let aV = aQ | |
895 | 905 | fromBase58String(aV) | |
896 | 906 | } | |
897 | 907 | else if ($isInstanceOf(aQ, "Unit")) | |
898 | 908 | then unit | |
899 | 909 | else throw("Match error") | |
900 | 910 | } | |
901 | 911 | ||
902 | 912 | ||
903 | - | func | |
904 | - | let aQ = | |
913 | + | func gt (fd) = { | |
914 | + | let aQ = gr() | |
905 | 915 | if ($isInstanceOf(aQ, "ByteVector")) | |
906 | 916 | then { | |
907 | - | let | |
908 | - | ( | |
917 | + | let gu = aQ | |
918 | + | (fd.callerPublicKey == gu) | |
909 | 919 | } | |
910 | 920 | else if ($isInstanceOf(aQ, "Unit")) | |
911 | - | then ( | |
921 | + | then (fd.caller == this) | |
912 | 922 | else throw("Match error") | |
913 | 923 | } | |
914 | 924 | ||
915 | 925 | ||
916 | - | func | |
917 | - | let | |
918 | - | let aQ = | |
926 | + | func gv (fd) = { | |
927 | + | let gw = throw("Permission denied") | |
928 | + | let aQ = gr() | |
919 | 929 | if ($isInstanceOf(aQ, "ByteVector")) | |
920 | 930 | then { | |
921 | - | let | |
922 | - | if (( | |
931 | + | let gu = aQ | |
932 | + | if ((fd.callerPublicKey == gu)) | |
923 | 933 | then true | |
924 | - | else | |
934 | + | else gw | |
925 | 935 | } | |
926 | 936 | else if ($isInstanceOf(aQ, "Unit")) | |
927 | - | then if (( | |
937 | + | then if ((fd.caller == this)) | |
928 | 938 | then true | |
929 | - | else | |
939 | + | else gw | |
930 | 940 | else throw("Match error") | |
931 | 941 | } | |
932 | 942 | ||
933 | 943 | ||
934 | - | @Callable( | |
935 | - | func rebalance () = ( | |
944 | + | @Callable(fd) | |
945 | + | func rebalance () = (cK(aW(this, ae())) ++ cK(aW(this, af()))) | |
936 | 946 | ||
937 | 947 | ||
938 | 948 | ||
939 | - | @Callable( | |
940 | - | func calculateAmountOutForSwapREADONLY ( | |
941 | - | let | |
949 | + | @Callable(fd) | |
950 | + | func calculateAmountOutForSwapREADONLY (gx,gy,gz) = { | |
951 | + | let gA = if ((gy == false)) | |
942 | 952 | then { | |
943 | - | let | |
944 | - | let | |
945 | - | $Tuple2( | |
953 | + | let gB = aW(this, af()) | |
954 | + | let gC = aW(this, ae()) | |
955 | + | $Tuple2(gB, gC) | |
946 | 956 | } | |
947 | 957 | else { | |
948 | - | let | |
949 | - | let | |
950 | - | $Tuple2( | |
958 | + | let gB = aW(this, ae()) | |
959 | + | let gC = aW(this, af()) | |
960 | + | $Tuple2(gB, gC) | |
951 | 961 | } | |
952 | - | let | |
953 | - | let | |
954 | - | let | |
955 | - | let | |
956 | - | let | |
957 | - | let | |
958 | - | let | |
959 | - | let | |
962 | + | let gB = gA._1 | |
963 | + | let gC = gA._2 | |
964 | + | let gD = bV(gC) | |
965 | + | let gE = bV(gB) | |
966 | + | let gF = fraction(gE, gx, (gD + gx)) | |
967 | + | let gG = (toBigInt(gD) * toBigInt(gE)) | |
968 | + | let gH = (((toBigInt(bV(gC)) + toBigInt(gx)) + toBigInt(gz)) * (toBigInt(bV(gB)) - toBigInt(gF))) | |
969 | + | let gI = if ((gH >= gG)) | |
960 | 970 | then true | |
961 | 971 | else throw("new K is fewer error") | |
962 | - | if (( | |
963 | - | then $Tuple2(nil, | |
972 | + | if ((gI == gI)) | |
973 | + | then $Tuple2(nil, gF) | |
964 | 974 | else throw("Strict value is not equal to itself.") | |
965 | 975 | } | |
966 | 976 | ||
967 | 977 | ||
968 | 978 | ||
969 | - | @Callable( | |
970 | - | func calculateAmountOutForSwapAndSendTokens ( | |
971 | - | let | |
979 | + | @Callable(fd) | |
980 | + | func calculateAmountOutForSwapAndSendTokens (gx,gy,gJ,gK,gz) = { | |
981 | + | let gL = { | |
972 | 982 | let bg = invoke(bd, "getSwapContractREADONLY", nil, nil) | |
973 | 983 | if ($isInstanceOf(bg, "String")) | |
974 | 984 | then bg | |
975 | 985 | else throw(($getType(bg) + " couldn't be cast to String")) | |
976 | 986 | } | |
977 | - | let | |
987 | + | let gM = { | |
978 | 988 | let bg = invoke(bd, "isPoolSwapDisabledREADONLY", [toString(this)], nil) | |
979 | 989 | if ($isInstanceOf(bg, "Boolean")) | |
980 | 990 | then bg | |
981 | 991 | else throw(($getType(bg) + " couldn't be cast to Boolean")) | |
982 | 992 | } | |
983 | - | let gJ = if (if (bi()) | |
993 | + | let gN = if (!(bj(fd.caller))) | |
994 | + | then if (if (bk()) | |
995 | + | then true | |
996 | + | else (bx == n)) | |
997 | + | then true | |
998 | + | else gM | |
999 | + | else false | |
1000 | + | let fZ = [if (if (!(gN)) | |
984 | 1001 | then true | |
985 | - | else ( | |
1002 | + | else gt(fd)) | |
986 | 1003 | then true | |
987 | - | else gI | |
988 | - | let fV = [if (if (!(gJ)) | |
1004 | + | else ba("swap operation is blocked by admin"), if ((value(fd.payments[0]).amount >= gx)) | |
989 | 1005 | then true | |
990 | - | else gp(fb)) | |
991 | - | then true | |
992 | - | else ba("swap operation is blocked by admin"), if ((value(fb.payments[0]).amount >= gt)) | |
993 | - | then true | |
994 | - | else ba("Wrong amount"), if ((fb.caller == addressFromStringValue(gH))) | |
1006 | + | else ba("Wrong amount"), if ((fd.caller == addressFromStringValue(gL))) | |
995 | 1007 | then true | |
996 | 1008 | else ba("Permission denied")] | |
997 | - | if (( | |
1009 | + | if ((fZ == fZ)) | |
998 | 1010 | then { | |
999 | - | let | |
1000 | - | let | |
1001 | - | let | |
1011 | + | let fe = value(fd.payments[0]) | |
1012 | + | let gC = br(fe.assetId) | |
1013 | + | let gB = if ((gy == false)) | |
1002 | 1014 | then aW(this, af()) | |
1003 | 1015 | else aW(this, ae()) | |
1004 | - | let | |
1005 | - | let | |
1006 | - | let | |
1007 | - | let | |
1008 | - | let | |
1009 | - | let | |
1016 | + | let gD = ((bV(gC) - value(fd.payments[0]).amount) - gz) | |
1017 | + | let gE = bV(gB) | |
1018 | + | let gF = fraction(gE, gx, (gD + gx)) | |
1019 | + | let gG = (toBigInt(gD) * toBigInt(gE)) | |
1020 | + | let gH = ((toBigInt(bV(gC)) + toBigInt(gz)) * (toBigInt(bV(gB)) - toBigInt(gF))) | |
1021 | + | let gI = if ((gH >= gG)) | |
1010 | 1022 | then true | |
1011 | 1023 | else throw("new K is fewer error") | |
1012 | - | if (( | |
1024 | + | if ((gI == gI)) | |
1013 | 1025 | then { | |
1014 | - | let | |
1026 | + | let gO = if ((gF >= gJ)) | |
1015 | 1027 | then true | |
1016 | 1028 | else throw("Exchange result is fewer coins than expected") | |
1017 | - | if (( | |
1029 | + | if ((gO == gO)) | |
1018 | 1030 | then { | |
1019 | - | let | |
1020 | - | then -( | |
1021 | - | else | |
1022 | - | let | |
1023 | - | then | |
1024 | - | else -( | |
1025 | - | let | |
1026 | - | if (( | |
1031 | + | let eL = if (gy) | |
1032 | + | then -(gF) | |
1033 | + | else gz | |
1034 | + | let eM = if (gy) | |
1035 | + | then gz | |
1036 | + | else -(gF) | |
1037 | + | let gP = eK(eL, eM, 0)._1 | |
1038 | + | if ((gP == gP)) | |
1027 | 1039 | then { | |
1028 | - | let | |
1029 | - | if (( | |
1040 | + | let gQ = cK(gC) | |
1041 | + | if ((gQ == gQ)) | |
1030 | 1042 | then { | |
1031 | - | let | |
1032 | - | if (( | |
1033 | - | then $Tuple2((( | |
1043 | + | let gR = cR(gB, gF) | |
1044 | + | if ((gR == gR)) | |
1045 | + | then $Tuple2(((gR ++ gQ) ++ [ScriptTransfer(addressFromStringValue(gK), gF, bp(gB))]), gF) | |
1034 | 1046 | else throw("Strict value is not equal to itself.") | |
1035 | 1047 | } | |
1036 | 1048 | else throw("Strict value is not equal to itself.") | |
1037 | 1049 | } | |
1038 | 1050 | else throw("Strict value is not equal to itself.") | |
1039 | 1051 | } | |
1040 | 1052 | else throw("Strict value is not equal to itself.") | |
1041 | 1053 | } | |
1042 | 1054 | else throw("Strict value is not equal to itself.") | |
1043 | 1055 | } | |
1044 | 1056 | else throw("Strict value is not equal to itself.") | |
1045 | 1057 | } | |
1046 | 1058 | ||
1047 | 1059 | ||
1048 | 1060 | ||
1049 | - | @Callable( | |
1050 | - | func put ( | |
1061 | + | @Callable(fd) | |
1062 | + | func put (dQ,gS) = if ((0 > dQ)) | |
1051 | 1063 | then throw("Invalid slippageTolerance passed") | |
1052 | 1064 | else { | |
1053 | - | let | |
1054 | - | let | |
1055 | - | let | |
1056 | - | let | |
1057 | - | let | |
1058 | - | let | |
1059 | - | let | |
1060 | - | let | |
1061 | - | let | |
1062 | - | let | |
1063 | - | let | |
1064 | - | if (( | |
1065 | + | let fk = fh(fd, dQ, true) | |
1066 | + | let es = fk._2 | |
1067 | + | let dx = fk._7 | |
1068 | + | let dO = fk._9 | |
1069 | + | let et = fk._10 | |
1070 | + | let eu = fk._11 | |
1071 | + | let gT = fk._12 | |
1072 | + | let gU = fk._13 | |
1073 | + | let fi = toBigInt(value(fd.payments[0]).amount) | |
1074 | + | let fj = toBigInt(value(fd.payments[1]).amount) | |
1075 | + | let eJ = eC(fi, fj, toBigInt(0)) | |
1076 | + | if ((eJ == eJ)) | |
1065 | 1077 | then { | |
1066 | - | let | |
1067 | - | if (( | |
1078 | + | let fn = invoke(bd, "emit", [es], nil) | |
1079 | + | if ((fn == fn)) | |
1068 | 1080 | then { | |
1069 | - | let | |
1070 | - | let aQ = | |
1081 | + | let fo = { | |
1082 | + | let aQ = fn | |
1071 | 1083 | if ($isInstanceOf(aQ, "Address")) | |
1072 | 1084 | then { | |
1073 | - | let | |
1074 | - | invoke( | |
1085 | + | let fp = aQ | |
1086 | + | invoke(fp, "emit", [es], nil) | |
1075 | 1087 | } | |
1076 | 1088 | else unit | |
1077 | 1089 | } | |
1078 | - | if (( | |
1090 | + | if ((fo == fo)) | |
1079 | 1091 | then { | |
1080 | - | let | |
1081 | - | then invoke( | |
1092 | + | let gV = if ((et > 0)) | |
1093 | + | then invoke(bF, "put", nil, [AttachedPayment(gT, et)]) | |
1082 | 1094 | else nil | |
1083 | - | if (( | |
1095 | + | if ((gV == gV)) | |
1084 | 1096 | then { | |
1085 | - | let | |
1086 | - | then invoke( | |
1097 | + | let gW = if ((eu > 0)) | |
1098 | + | then invoke(bF, "put", nil, [AttachedPayment(gU, eu)]) | |
1087 | 1099 | else nil | |
1088 | - | if (( | |
1100 | + | if ((gW == gW)) | |
1089 | 1101 | then { | |
1090 | - | let | |
1102 | + | let gX = if (gS) | |
1091 | 1103 | then { | |
1092 | - | let | |
1093 | - | if (( | |
1104 | + | let gY = invoke(bE, "stake", nil, [AttachedPayment(dx, es)]) | |
1105 | + | if ((gY == gY)) | |
1094 | 1106 | then nil | |
1095 | 1107 | else throw("Strict value is not equal to itself.") | |
1096 | 1108 | } | |
1097 | - | else [ScriptTransfer( | |
1098 | - | let | |
1099 | - | if (( | |
1109 | + | else [ScriptTransfer(fd.caller, es, dx)] | |
1110 | + | let gZ = eK(0, 0, 0) | |
1111 | + | if ((gZ == gZ)) | |
1100 | 1112 | then { | |
1101 | - | let | |
1102 | - | let | |
1103 | - | let | |
1104 | - | if (( | |
1113 | + | let eB = gZ._2 | |
1114 | + | let gP = gZ._1 | |
1115 | + | let ha = eP(eJ, eB) | |
1116 | + | if ((ha == ha)) | |
1105 | 1117 | then { | |
1106 | - | let | |
1107 | - | if (( | |
1108 | - | then (( | |
1118 | + | let hb = invoke(this, "rebalance", nil, nil) | |
1119 | + | if ((hb == hb)) | |
1120 | + | then ((dO ++ gX) ++ gP) | |
1109 | 1121 | else throw("Strict value is not equal to itself.") | |
1110 | 1122 | } | |
1111 | 1123 | else throw("Strict value is not equal to itself.") | |
1112 | 1124 | } | |
1113 | 1125 | else throw("Strict value is not equal to itself.") | |
1114 | 1126 | } | |
1115 | 1127 | else throw("Strict value is not equal to itself.") | |
1116 | 1128 | } | |
1117 | 1129 | else throw("Strict value is not equal to itself.") | |
1118 | 1130 | } | |
1119 | 1131 | else throw("Strict value is not equal to itself.") | |
1120 | 1132 | } | |
1121 | 1133 | else throw("Strict value is not equal to itself.") | |
1122 | 1134 | } | |
1123 | 1135 | else throw("Strict value is not equal to itself.") | |
1124 | 1136 | } | |
1125 | 1137 | ||
1126 | 1138 | ||
1127 | 1139 | ||
1128 | - | @Callable( | |
1129 | - | func putForFree ( | |
1140 | + | @Callable(fd) | |
1141 | + | func putForFree (hc) = if ((0 > hc)) | |
1130 | 1142 | then throw("Invalid value passed") | |
1131 | 1143 | else { | |
1132 | - | let | |
1133 | - | let | |
1134 | - | let | |
1135 | - | let | |
1136 | - | let | |
1137 | - | if (( | |
1144 | + | let fk = fh(fd, hc, false) | |
1145 | + | let dO = fk._9 | |
1146 | + | let fi = toBigInt(value(fd.payments[0]).amount) | |
1147 | + | let fj = toBigInt(value(fd.payments[1]).amount) | |
1148 | + | let eJ = eC(fi, fj, toBigInt(0)) | |
1149 | + | if ((eJ == eJ)) | |
1138 | 1150 | then { | |
1139 | - | let | |
1140 | - | let | |
1141 | - | let | |
1142 | - | let | |
1143 | - | if (( | |
1144 | - | then ( | |
1151 | + | let hd = eK(0, 0, 0) | |
1152 | + | let gP = hd._1 | |
1153 | + | let eB = hd._2 | |
1154 | + | let ha = eP(eJ, eB) | |
1155 | + | if ((ha == ha)) | |
1156 | + | then (dO ++ gP) | |
1145 | 1157 | else throw("Strict value is not equal to itself.") | |
1146 | 1158 | } | |
1147 | 1159 | else throw("Strict value is not equal to itself.") | |
1148 | 1160 | } | |
1149 | 1161 | ||
1150 | 1162 | ||
1151 | 1163 | ||
1152 | - | @Callable( | |
1153 | - | func putOneTkn ( | |
1154 | - | let | |
1164 | + | @Callable(fd) | |
1165 | + | func putOneTkn (he,hf) = { | |
1166 | + | let hg = { | |
1155 | 1167 | let bg = invoke(bd, "isPoolOneTokenOperationsDisabledREADONLY", [toString(this)], nil) | |
1156 | 1168 | if ($isInstanceOf(bg, "Boolean")) | |
1157 | 1169 | then bg | |
1158 | 1170 | else throw(($getType(bg) + " couldn't be cast to Boolean")) | |
1159 | 1171 | } | |
1160 | - | let hd = if (if (if (bi()) | |
1172 | + | let fl = if (!(bj(fd.caller))) | |
1173 | + | then if (if (if (bk()) | |
1174 | + | then true | |
1175 | + | else (bx == l)) | |
1176 | + | then true | |
1177 | + | else (bx == n)) | |
1178 | + | then true | |
1179 | + | else hg | |
1180 | + | else false | |
1181 | + | let fZ = [if (if (!(fl)) | |
1161 | 1182 | then true | |
1162 | - | else ( | |
1183 | + | else gt(fd)) | |
1163 | 1184 | then true | |
1164 | - | else (bv == n)) | |
1165 | - | then true | |
1166 | - | else hc | |
1167 | - | let fV = [if (if (!(hd)) | |
1168 | - | then true | |
1169 | - | else gp(fb)) | |
1170 | - | then true | |
1171 | - | else ba("put operation is blocked by admin"), if ((size(fb.payments) == 1)) | |
1185 | + | else ba("put operation is blocked by admin"), if ((size(fd.payments) == 1)) | |
1172 | 1186 | then true | |
1173 | 1187 | else ba("exactly 1 payment are expected")] | |
1174 | - | if (( | |
1188 | + | if ((fZ == fZ)) | |
1175 | 1189 | then { | |
1176 | - | let | |
1177 | - | let | |
1178 | - | let | |
1179 | - | let | |
1180 | - | then | |
1181 | - | else if (( | |
1182 | - | then | |
1190 | + | let hh = fd.payments[0] | |
1191 | + | let fu = hh.assetId | |
1192 | + | let ft = hh.amount | |
1193 | + | let eJ = if ((fu == bz)) | |
1194 | + | then eC(toBigInt(ft), toBigInt(0), toBigInt(0)) | |
1195 | + | else if ((fu == bA)) | |
1196 | + | then eC(toBigInt(0), toBigInt(ft), toBigInt(0)) | |
1183 | 1197 | else ba("payment asset is not supported") | |
1184 | - | if (( | |
1198 | + | if ((eJ == eJ)) | |
1185 | 1199 | then { | |
1186 | - | let ab = | |
1187 | - | let ac = | |
1188 | - | let | |
1189 | - | if (( | |
1200 | + | let ab = fd.caller | |
1201 | + | let ac = fd.transactionId | |
1202 | + | let hi = fs(ft, fu, ab, ac) | |
1203 | + | if ((hi == hi)) | |
1190 | 1204 | then { | |
1191 | - | let | |
1192 | - | let | |
1193 | - | let | |
1194 | - | let | |
1195 | - | let | |
1196 | - | let | |
1197 | - | then ( | |
1205 | + | let fy = hi._5 | |
1206 | + | let hj = hi._4 | |
1207 | + | let fr = hi._3 | |
1208 | + | let ev = hi._2 | |
1209 | + | let hk = hi._1 | |
1210 | + | let hl = if (if ((he > 0)) | |
1211 | + | then (he > hk) | |
1198 | 1212 | else false) | |
1199 | - | then ba(makeString(["amount to receive is less than ", toString( | |
1200 | - | else | |
1201 | - | let | |
1202 | - | if (( | |
1213 | + | then ba(makeString(["amount to receive is less than ", toString(he)], "")) | |
1214 | + | else hk | |
1215 | + | let fn = fm(hl) | |
1216 | + | if ((fn == fn)) | |
1203 | 1217 | then { | |
1204 | - | let | |
1218 | + | let gX = if (hf) | |
1205 | 1219 | then { | |
1206 | - | let | |
1207 | - | if (( | |
1220 | + | let hm = invoke(bE, "stake", nil, [AttachedPayment(by, hl)]) | |
1221 | + | if ((hm == hm)) | |
1208 | 1222 | then nil | |
1209 | 1223 | else throw("Strict value is not equal to itself.") | |
1210 | 1224 | } | |
1211 | - | else [ScriptTransfer( | |
1212 | - | let | |
1213 | - | then [ScriptTransfer(be, | |
1225 | + | else [ScriptTransfer(fd.caller, hl, by)] | |
1226 | + | let hn = if ((fr > 0)) | |
1227 | + | then [ScriptTransfer(be, fr, fu)] | |
1214 | 1228 | else nil | |
1215 | - | let | |
1229 | + | let ho = if ((this == be)) | |
1216 | 1230 | then $Tuple2(0, 0) | |
1217 | - | else if ( | |
1218 | - | then $Tuple2(-( | |
1219 | - | else $Tuple2(0, -( | |
1220 | - | let | |
1221 | - | let | |
1222 | - | let | |
1223 | - | let | |
1224 | - | let | |
1225 | - | let | |
1226 | - | let | |
1227 | - | if (( | |
1231 | + | else if (fy) | |
1232 | + | then $Tuple2(-(fr), 0) | |
1233 | + | else $Tuple2(0, -(fr)) | |
1234 | + | let eL = ho._1 | |
1235 | + | let eM = ho._2 | |
1236 | + | let hp = eK(eL, eM, 0) | |
1237 | + | let gP = hp._1 | |
1238 | + | let eB = hp._2 | |
1239 | + | let eW = value(getString(aj)) | |
1240 | + | let ha = eP(eJ, eB) | |
1241 | + | if ((ha == ha)) | |
1228 | 1242 | then { | |
1229 | - | let | |
1230 | - | if (( | |
1231 | - | then $Tuple2(((( | |
1243 | + | let hb = invoke(this, "rebalance", nil, nil) | |
1244 | + | if ((hb == hb)) | |
1245 | + | then $Tuple2((((ev ++ gX) ++ hn) ++ gP), hl) | |
1232 | 1246 | else throw("Strict value is not equal to itself.") | |
1233 | 1247 | } | |
1234 | 1248 | else throw("Strict value is not equal to itself.") | |
1235 | 1249 | } | |
1236 | 1250 | else throw("Strict value is not equal to itself.") | |
1237 | 1251 | } | |
1238 | 1252 | else throw("Strict value is not equal to itself.") | |
1239 | 1253 | } | |
1240 | 1254 | else throw("Strict value is not equal to itself.") | |
1241 | 1255 | } | |
1242 | 1256 | else throw("Strict value is not equal to itself.") | |
1243 | 1257 | } | |
1244 | 1258 | ||
1245 | 1259 | ||
1246 | 1260 | ||
1247 | - | @Callable( | |
1248 | - | func putOneTknREADONLY ( | |
1249 | - | let | |
1250 | - | let | |
1251 | - | let | |
1252 | - | let | |
1253 | - | let | |
1254 | - | let | |
1255 | - | $Tuple2(nil, $Tuple3( | |
1261 | + | @Callable(fd) | |
1262 | + | func putOneTknREADONLY (fu,ft) = { | |
1263 | + | let hq = fs(ft, bp(fu), unit, unit) | |
1264 | + | let hk = hq._1 | |
1265 | + | let ev = hq._2 | |
1266 | + | let fr = hq._3 | |
1267 | + | let hj = hq._4 | |
1268 | + | let fy = hq._5 | |
1269 | + | $Tuple2(nil, $Tuple3(hk, fr, hj)) | |
1256 | 1270 | } | |
1257 | 1271 | ||
1258 | 1272 | ||
1259 | 1273 | ||
1260 | - | @Callable( | |
1261 | - | func getOneTkn ( | |
1262 | - | let | |
1274 | + | @Callable(fd) | |
1275 | + | func getOneTkn (hr,he) = { | |
1276 | + | let hg = { | |
1263 | 1277 | let bg = invoke(bd, "isPoolOneTokenOperationsDisabledREADONLY", [toString(this)], nil) | |
1264 | 1278 | if ($isInstanceOf(bg, "Boolean")) | |
1265 | 1279 | then bg | |
1266 | 1280 | else throw(($getType(bg) + " couldn't be cast to Boolean")) | |
1267 | 1281 | } | |
1268 | - | let hp = if (if (bi()) | |
1282 | + | let fg = if (!(bj(fd.caller))) | |
1283 | + | then if (if (bk()) | |
1284 | + | then true | |
1285 | + | else (bx == n)) | |
1286 | + | then true | |
1287 | + | else hg | |
1288 | + | else false | |
1289 | + | let fZ = [if (if (!(fg)) | |
1269 | 1290 | then true | |
1270 | - | else ( | |
1291 | + | else gt(fd)) | |
1271 | 1292 | then true | |
1272 | - | else hc | |
1273 | - | let fV = [if (if (!(hp)) | |
1274 | - | then true | |
1275 | - | else gp(fb)) | |
1276 | - | then true | |
1277 | - | else ba("get operation is blocked by admin"), if ((size(fb.payments) == 1)) | |
1293 | + | else ba("get operation is blocked by admin"), if ((size(fd.payments) == 1)) | |
1278 | 1294 | then true | |
1279 | 1295 | else ba("exactly 1 payment are expected")] | |
1280 | - | if (( | |
1296 | + | if ((fZ == fZ)) | |
1281 | 1297 | then { | |
1282 | - | let | |
1283 | - | let | |
1284 | - | let | |
1285 | - | let | |
1286 | - | let | |
1287 | - | if (( | |
1298 | + | let fY = bp(hr) | |
1299 | + | let hh = fd.payments[0] | |
1300 | + | let fu = hh.assetId | |
1301 | + | let fG = hh.amount | |
1302 | + | let eJ = eC(toBigInt(0), toBigInt(0), toBigInt(0)) | |
1303 | + | if ((eJ == eJ)) | |
1288 | 1304 | then { | |
1289 | - | let ab = | |
1290 | - | let ac = | |
1291 | - | let | |
1292 | - | if (( | |
1305 | + | let ab = fd.caller | |
1306 | + | let ac = fd.transactionId | |
1307 | + | let hs = fX(fY, fG, fu, ab, ac) | |
1308 | + | if ((hs == hs)) | |
1293 | 1309 | then { | |
1294 | - | let | |
1295 | - | let | |
1296 | - | let | |
1297 | - | let | |
1298 | - | let | |
1299 | - | let | |
1300 | - | then ( | |
1310 | + | let ga = hs._5 | |
1311 | + | let hj = hs._4 | |
1312 | + | let fr = hs._3 | |
1313 | + | let ev = hs._2 | |
1314 | + | let ht = hs._1 | |
1315 | + | let ch = if (if ((he > 0)) | |
1316 | + | then (he > ht) | |
1301 | 1317 | else false) | |
1302 | - | then ba(makeString(["amount to receive is less than ", toString( | |
1303 | - | else | |
1304 | - | let | |
1305 | - | if (( | |
1318 | + | then ba(makeString(["amount to receive is less than ", toString(he)], "")) | |
1319 | + | else ht | |
1320 | + | let hu = invoke(bd, "burn", [fG], [AttachedPayment(fu, fG)]) | |
1321 | + | if ((hu == hu)) | |
1306 | 1322 | then { | |
1307 | - | let | |
1308 | - | let | |
1309 | - | let | |
1310 | - | then [ScriptTransfer(be, | |
1323 | + | let gR = cR(hr, (ch + max([0, fr]))) | |
1324 | + | let hv = [ScriptTransfer(ab, ch, fY)] | |
1325 | + | let hn = if ((fr > 0)) | |
1326 | + | then [ScriptTransfer(be, fr, fY)] | |
1311 | 1327 | else nil | |
1312 | - | let | |
1313 | - | let | |
1328 | + | let hw = { | |
1329 | + | let hx = if ((this == be)) | |
1314 | 1330 | then 0 | |
1315 | - | else | |
1316 | - | if ( | |
1317 | - | then $Tuple2(-(( | |
1318 | - | else $Tuple2(0, -(( | |
1331 | + | else fr | |
1332 | + | if (ga) | |
1333 | + | then $Tuple2(-((ch + hx)), 0) | |
1334 | + | else $Tuple2(0, -((ch + hx))) | |
1319 | 1335 | } | |
1320 | - | let | |
1321 | - | let | |
1322 | - | let | |
1323 | - | let | |
1324 | - | let | |
1325 | - | let | |
1326 | - | if (( | |
1327 | - | then $Tuple2((((( | |
1336 | + | let eL = hw._1 | |
1337 | + | let eM = hw._2 | |
1338 | + | let hy = eK(eL, eM, 0) | |
1339 | + | let gP = hy._1 | |
1340 | + | let eB = hy._2 | |
1341 | + | let ha = eP(eJ, eB) | |
1342 | + | if ((ha == ha)) | |
1343 | + | then $Tuple2(((((ev ++ gR) ++ hv) ++ hn) ++ gP), ch) | |
1328 | 1344 | else throw("Strict value is not equal to itself.") | |
1329 | 1345 | } | |
1330 | 1346 | else throw("Strict value is not equal to itself.") | |
1331 | 1347 | } | |
1332 | 1348 | else throw("Strict value is not equal to itself.") | |
1333 | 1349 | } | |
1334 | 1350 | else throw("Strict value is not equal to itself.") | |
1335 | 1351 | } | |
1336 | 1352 | else throw("Strict value is not equal to itself.") | |
1337 | 1353 | } | |
1338 | 1354 | ||
1339 | 1355 | ||
1340 | 1356 | ||
1341 | - | @Callable( | |
1342 | - | func getOneTknREADONLY ( | |
1343 | - | let | |
1344 | - | let | |
1345 | - | let | |
1346 | - | let | |
1347 | - | let | |
1348 | - | let | |
1349 | - | $Tuple2(nil, $Tuple3( | |
1357 | + | @Callable(fd) | |
1358 | + | func getOneTknREADONLY (fY,fG) = { | |
1359 | + | let hz = fX(bp(fY), fG, by, unit, unit) | |
1360 | + | let ht = hz._1 | |
1361 | + | let ev = hz._2 | |
1362 | + | let fr = hz._3 | |
1363 | + | let hj = hz._4 | |
1364 | + | let ga = hz._5 | |
1365 | + | $Tuple2(nil, $Tuple3(ht, fr, hj)) | |
1350 | 1366 | } | |
1351 | 1367 | ||
1352 | 1368 | ||
1353 | 1369 | ||
1354 | - | @Callable( | |
1355 | - | func unstakeAndGetOneTkn ( | |
1356 | - | let | |
1370 | + | @Callable(fd) | |
1371 | + | func unstakeAndGetOneTkn (hA,hr,he) = { | |
1372 | + | let hg = { | |
1357 | 1373 | let bg = invoke(bd, "isPoolOneTokenOperationsDisabledREADONLY", [toString(this)], nil) | |
1358 | 1374 | if ($isInstanceOf(bg, "Boolean")) | |
1359 | 1375 | then bg | |
1360 | 1376 | else throw(($getType(bg) + " couldn't be cast to Boolean")) | |
1361 | 1377 | } | |
1362 | - | let hp = if (if (bi()) | |
1378 | + | let fg = if (!(bj(fd.caller))) | |
1379 | + | then if (if (bk()) | |
1380 | + | then true | |
1381 | + | else (bx == n)) | |
1382 | + | then true | |
1383 | + | else hg | |
1384 | + | else false | |
1385 | + | let fZ = [if (if (!(fg)) | |
1363 | 1386 | then true | |
1364 | - | else ( | |
1387 | + | else gt(fd)) | |
1365 | 1388 | then true | |
1366 | - | else hc | |
1367 | - | let fV = [if (if (!(hp)) | |
1368 | - | then true | |
1369 | - | else gp(fb)) | |
1370 | - | then true | |
1371 | - | else ba("get operation is blocked by admin"), if ((size(fb.payments) == 0)) | |
1389 | + | else ba("get operation is blocked by admin"), if ((size(fd.payments) == 0)) | |
1372 | 1390 | then true | |
1373 | 1391 | else ba("no payments are expected")] | |
1374 | - | if (( | |
1392 | + | if ((fZ == fZ)) | |
1375 | 1393 | then { | |
1376 | - | let | |
1377 | - | let ab = | |
1378 | - | let ac = | |
1379 | - | let | |
1380 | - | if (( | |
1394 | + | let fY = bp(hr) | |
1395 | + | let ab = fd.caller | |
1396 | + | let ac = fd.transactionId | |
1397 | + | let eJ = eC(toBigInt(0), toBigInt(0), toBigInt(0)) | |
1398 | + | if ((eJ == eJ)) | |
1381 | 1399 | then { | |
1382 | - | let | |
1383 | - | if (( | |
1400 | + | let hB = invoke(bE, "unstake", [toBase58String(by), hA], nil) | |
1401 | + | if ((hB == hB)) | |
1384 | 1402 | then { | |
1385 | - | let | |
1386 | - | if (( | |
1403 | + | let hC = fX(fY, hA, by, ab, ac) | |
1404 | + | if ((hC == hC)) | |
1387 | 1405 | then { | |
1388 | - | let | |
1389 | - | let | |
1390 | - | let | |
1391 | - | let | |
1392 | - | let | |
1393 | - | let | |
1394 | - | then ( | |
1406 | + | let ga = hC._5 | |
1407 | + | let hj = hC._4 | |
1408 | + | let fr = hC._3 | |
1409 | + | let ev = hC._2 | |
1410 | + | let ht = hC._1 | |
1411 | + | let ch = if (if ((he > 0)) | |
1412 | + | then (he > ht) | |
1395 | 1413 | else false) | |
1396 | - | then ba(makeString(["amount to receive is less than ", toString( | |
1397 | - | else | |
1398 | - | let | |
1399 | - | if (( | |
1414 | + | then ba(makeString(["amount to receive is less than ", toString(he)], "")) | |
1415 | + | else ht | |
1416 | + | let hu = invoke(bd, "burn", [hA], [AttachedPayment(by, hA)]) | |
1417 | + | if ((hu == hu)) | |
1400 | 1418 | then { | |
1401 | - | let | |
1402 | - | let | |
1403 | - | let | |
1404 | - | then [ScriptTransfer(be, | |
1419 | + | let gR = cR(hr, (ch + max([0, fr]))) | |
1420 | + | let hv = [ScriptTransfer(fd.caller, ch, fY)] | |
1421 | + | let hn = if ((fr > 0)) | |
1422 | + | then [ScriptTransfer(be, fr, fY)] | |
1405 | 1423 | else nil | |
1406 | - | let | |
1407 | - | let | |
1424 | + | let hD = { | |
1425 | + | let hx = if ((this == be)) | |
1408 | 1426 | then 0 | |
1409 | - | else | |
1410 | - | if ( | |
1411 | - | then $Tuple2(-(( | |
1412 | - | else $Tuple2(0, -(( | |
1427 | + | else fr | |
1428 | + | if (ga) | |
1429 | + | then $Tuple2(-((ch + hx)), 0) | |
1430 | + | else $Tuple2(0, -((ch + hx))) | |
1413 | 1431 | } | |
1414 | - | let | |
1415 | - | let | |
1416 | - | let | |
1417 | - | let | |
1418 | - | let | |
1419 | - | let | |
1420 | - | if (( | |
1421 | - | then $Tuple2((((( | |
1432 | + | let eL = hD._1 | |
1433 | + | let eM = hD._2 | |
1434 | + | let hE = eK(eL, eM, 0) | |
1435 | + | let gP = hE._1 | |
1436 | + | let eB = hE._2 | |
1437 | + | let ha = eP(eJ, eB) | |
1438 | + | if ((ha == ha)) | |
1439 | + | then $Tuple2(((((ev ++ gR) ++ hv) ++ hn) ++ gP), ch) | |
1422 | 1440 | else throw("Strict value is not equal to itself.") | |
1423 | 1441 | } | |
1424 | 1442 | else throw("Strict value is not equal to itself.") | |
1425 | 1443 | } | |
1426 | 1444 | else throw("Strict value is not equal to itself.") | |
1427 | 1445 | } | |
1428 | 1446 | else throw("Strict value is not equal to itself.") | |
1429 | 1447 | } | |
1430 | 1448 | else throw("Strict value is not equal to itself.") | |
1431 | 1449 | } | |
1432 | 1450 | else throw("Strict value is not equal to itself.") | |
1433 | 1451 | } | |
1434 | 1452 | ||
1435 | 1453 | ||
1436 | 1454 | ||
1437 | - | @Callable( | |
1455 | + | @Callable(fd) | |
1438 | 1456 | func get () = { | |
1439 | - | let | |
1440 | - | let | |
1441 | - | let | |
1442 | - | let | |
1443 | - | let | |
1444 | - | let | |
1445 | - | let | |
1446 | - | let | |
1447 | - | if (( | |
1457 | + | let eg = fc(fd) | |
1458 | + | let dM = eg._1 | |
1459 | + | let dN = eg._2 | |
1460 | + | let ff = eg._3 | |
1461 | + | let dv = eg._4 | |
1462 | + | let dO = eg._5 | |
1463 | + | let gR = cW(dM, dN) | |
1464 | + | let eJ = eC(toBigInt(0), toBigInt(0), toBigInt(0)) | |
1465 | + | if ((eJ == eJ)) | |
1448 | 1466 | then { | |
1449 | - | let | |
1450 | - | if (( | |
1467 | + | let hF = invoke(bd, "burn", [ff], [AttachedPayment(dv, ff)]) | |
1468 | + | if ((hF == hF)) | |
1451 | 1469 | then { | |
1452 | - | let | |
1453 | - | let | |
1454 | - | let | |
1455 | - | let | |
1456 | - | if (( | |
1457 | - | then (( | |
1470 | + | let hG = eK(-(dM), -(dN), 0) | |
1471 | + | let gP = hG._1 | |
1472 | + | let eB = hG._2 | |
1473 | + | let ha = eP(eJ, eB) | |
1474 | + | if ((ha == ha)) | |
1475 | + | then ((gR ++ dO) ++ gP) | |
1458 | 1476 | else throw("Strict value is not equal to itself.") | |
1459 | 1477 | } | |
1460 | 1478 | else throw("Strict value is not equal to itself.") | |
1461 | 1479 | } | |
1462 | 1480 | else throw("Strict value is not equal to itself.") | |
1463 | 1481 | } | |
1464 | 1482 | ||
1465 | 1483 | ||
1466 | 1484 | ||
1467 | - | @Callable( | |
1468 | - | func getNoLess ( | |
1469 | - | let | |
1470 | - | let | |
1471 | - | let | |
1472 | - | let | |
1473 | - | let | |
1474 | - | let | |
1475 | - | if (( | |
1476 | - | then throw(((("noLessThenAmtAsset failed: " + toString( | |
1477 | - | else if (( | |
1478 | - | then throw(((("noLessThenPriceAsset failed: " + toString( | |
1485 | + | @Callable(fd) | |
1486 | + | func getNoLess (hH,hI) = { | |
1487 | + | let eg = fc(fd) | |
1488 | + | let dM = eg._1 | |
1489 | + | let dN = eg._2 | |
1490 | + | let ff = eg._3 | |
1491 | + | let dv = eg._4 | |
1492 | + | let dO = eg._5 | |
1493 | + | if ((hH > dM)) | |
1494 | + | then throw(((("noLessThenAmtAsset failed: " + toString(dM)) + " < ") + toString(hH))) | |
1495 | + | else if ((hI > dN)) | |
1496 | + | then throw(((("noLessThenPriceAsset failed: " + toString(dN)) + " < ") + toString(hI))) | |
1479 | 1497 | else { | |
1480 | - | let | |
1481 | - | let | |
1482 | - | if (( | |
1498 | + | let gR = cW(dM, dN) | |
1499 | + | let eJ = eC(toBigInt(0), toBigInt(0), toBigInt(0)) | |
1500 | + | if ((eJ == eJ)) | |
1483 | 1501 | then { | |
1484 | - | let | |
1485 | - | if (( | |
1502 | + | let hF = invoke(bd, "burn", [ff], [AttachedPayment(dv, ff)]) | |
1503 | + | if ((hF == hF)) | |
1486 | 1504 | then { | |
1487 | - | let | |
1488 | - | let | |
1489 | - | let | |
1490 | - | let | |
1491 | - | if (( | |
1492 | - | then (( | |
1505 | + | let hJ = eK(-(dM), -(dN), 0) | |
1506 | + | let gP = hJ._1 | |
1507 | + | let eB = hJ._2 | |
1508 | + | let ha = eP(eJ, eB) | |
1509 | + | if ((ha == ha)) | |
1510 | + | then ((gR ++ dO) ++ gP) | |
1493 | 1511 | else throw("Strict value is not equal to itself.") | |
1494 | 1512 | } | |
1495 | 1513 | else throw("Strict value is not equal to itself.") | |
1496 | 1514 | } | |
1497 | 1515 | else throw("Strict value is not equal to itself.") | |
1498 | 1516 | } | |
1499 | 1517 | } | |
1500 | 1518 | ||
1501 | 1519 | ||
1502 | 1520 | ||
1503 | - | @Callable( | |
1504 | - | func unstakeAndGet ( | |
1505 | - | let | |
1521 | + | @Callable(fd) | |
1522 | + | func unstakeAndGet (ch) = { | |
1523 | + | let hK = if ((size(fd.payments) != 0)) | |
1506 | 1524 | then throw("No payments are expected") | |
1507 | 1525 | else true | |
1508 | - | if (( | |
1526 | + | if ((hK == hK)) | |
1509 | 1527 | then { | |
1510 | - | let | |
1511 | - | let | |
1512 | - | let | |
1513 | - | if (( | |
1528 | + | let dk = bm() | |
1529 | + | let dx = fromBase58String(dk[q]) | |
1530 | + | let eJ = eC(toBigInt(0), toBigInt(0), toBigInt(0)) | |
1531 | + | if ((eJ == eJ)) | |
1514 | 1532 | then { | |
1515 | - | let | |
1516 | - | if (( | |
1533 | + | let hB = invoke(bE, "unstake", [toBase58String(dx), ch], nil) | |
1534 | + | if ((hB == hB)) | |
1517 | 1535 | then { | |
1518 | - | let ee = dr(toBase58String(fb.transactionId), toBase58String(dv), cf, fb.caller) | |
1519 | - | let dK = ee._1 | |
1520 | - | let dL = ee._2 | |
1521 | - | let dy = parseIntValue(ee._9) | |
1522 | - | let dM = ee._10 | |
1523 | - | let gN = cU(dK, dL) | |
1524 | - | let hJ = if (if (bi()) | |
1525 | - | then true | |
1526 | - | else (dy == n)) | |
1527 | - | then throw(("Get operation is blocked by admin. Status = " + toString(dy))) | |
1536 | + | let eg = dt(toBase58String(fd.transactionId), toBase58String(dx), ch, fd.caller) | |
1537 | + | let dM = eg._1 | |
1538 | + | let dN = eg._2 | |
1539 | + | let dA = parseIntValue(eg._9) | |
1540 | + | let dO = eg._10 | |
1541 | + | let gR = cW(dM, dN) | |
1542 | + | let fg = if (!(bj(fd.caller))) | |
1543 | + | then if (bk()) | |
1544 | + | then true | |
1545 | + | else (bx == n) | |
1546 | + | else false | |
1547 | + | let hL = if (fg) | |
1548 | + | then throw(("Get operation is blocked by admin. Status = " + toString(dA))) | |
1528 | 1549 | else true | |
1529 | - | if (( | |
1550 | + | if ((hL == hL)) | |
1530 | 1551 | then { | |
1531 | - | let | |
1532 | - | if (( | |
1552 | + | let hF = invoke(bd, "burn", [ch], [AttachedPayment(dx, ch)]) | |
1553 | + | if ((hF == hF)) | |
1533 | 1554 | then { | |
1534 | - | let | |
1535 | - | let | |
1536 | - | let | |
1537 | - | let | |
1538 | - | if (( | |
1539 | - | then (( | |
1555 | + | let hM = eK(-(dM), -(dN), 0) | |
1556 | + | let gP = hM._1 | |
1557 | + | let eB = hM._2 | |
1558 | + | let ha = eP(eJ, eB) | |
1559 | + | if ((ha == ha)) | |
1560 | + | then ((gR ++ dO) ++ gP) | |
1540 | 1561 | else throw("Strict value is not equal to itself.") | |
1541 | 1562 | } | |
1542 | 1563 | else throw("Strict value is not equal to itself.") | |
1543 | 1564 | } | |
1544 | 1565 | else throw("Strict value is not equal to itself.") | |
1545 | 1566 | } | |
1546 | 1567 | else throw("Strict value is not equal to itself.") | |
1547 | 1568 | } | |
1548 | 1569 | else throw("Strict value is not equal to itself.") | |
1549 | 1570 | } | |
1550 | 1571 | else throw("Strict value is not equal to itself.") | |
1551 | 1572 | } | |
1552 | 1573 | ||
1553 | 1574 | ||
1554 | 1575 | ||
1555 | - | @Callable(fb) | |
1556 | - | func unstakeAndGetNoLess (hy,hL,hG) = { | |
1557 | - | let hp = if (bi()) | |
1576 | + | @Callable(fd) | |
1577 | + | func unstakeAndGetNoLess (hA,hN,hI) = { | |
1578 | + | let fg = if (!(bj(fd.caller))) | |
1579 | + | then if (bk()) | |
1580 | + | then true | |
1581 | + | else (bx == n) | |
1582 | + | else false | |
1583 | + | let fZ = [if (!(fg)) | |
1558 | 1584 | then true | |
1559 | - | else (bv == n) | |
1560 | - | let fV = [if (!(hp)) | |
1561 | - | then true | |
1562 | - | else throw("get operation is blocked by admin"), if ((size(fb.payments) == 0)) | |
1585 | + | else throw("get operation is blocked by admin"), if ((size(fd.payments) == 0)) | |
1563 | 1586 | then true | |
1564 | 1587 | else throw("no payments are expected")] | |
1565 | - | if (( | |
1588 | + | if ((fZ == fZ)) | |
1566 | 1589 | then { | |
1567 | - | let | |
1568 | - | if (( | |
1590 | + | let eJ = eC(toBigInt(0), toBigInt(0), toBigInt(0)) | |
1591 | + | if ((eJ == eJ)) | |
1569 | 1592 | then { | |
1570 | - | let | |
1571 | - | if (( | |
1593 | + | let hB = invoke(bE, "unstake", [toBase58String(by), hA], nil) | |
1594 | + | if ((hB == hB)) | |
1572 | 1595 | then { | |
1573 | - | let | |
1574 | - | let | |
1575 | - | let | |
1576 | - | let | |
1577 | - | let | |
1578 | - | let | |
1596 | + | let eg = dt(toBase58String(fd.transactionId), toBase58String(by), hA, fd.caller) | |
1597 | + | let dM = eg._1 | |
1598 | + | let dN = eg._2 | |
1599 | + | let dO = eg._10 | |
1600 | + | let gR = cW(dM, dN) | |
1601 | + | let hO = [if ((dM >= hN)) | |
1579 | 1602 | then true | |
1580 | - | else throw(makeString(["amount asset amount to receive is less than ", toString( | |
1603 | + | else throw(makeString(["amount asset amount to receive is less than ", toString(hN)], "")), if ((dN >= hI)) | |
1581 | 1604 | then true | |
1582 | - | else throw(makeString(["price asset amount to receive is less than ", toString( | |
1583 | - | if (( | |
1605 | + | else throw(makeString(["price asset amount to receive is less than ", toString(hI)], ""))] | |
1606 | + | if ((hO == hO)) | |
1584 | 1607 | then { | |
1585 | - | let | |
1586 | - | if (( | |
1608 | + | let hF = invoke(bd, "burn", [hA], [AttachedPayment(by, hA)]) | |
1609 | + | if ((hF == hF)) | |
1587 | 1610 | then { | |
1588 | - | let | |
1589 | - | let | |
1590 | - | let | |
1591 | - | let | |
1592 | - | if (( | |
1593 | - | then (( | |
1611 | + | let hP = eK(-(dM), -(dN), 0) | |
1612 | + | let gP = hP._1 | |
1613 | + | let eB = hP._2 | |
1614 | + | let ha = eP(eJ, eB) | |
1615 | + | if ((ha == ha)) | |
1616 | + | then ((gR ++ dO) ++ gP) | |
1594 | 1617 | else throw("Strict value is not equal to itself.") | |
1595 | 1618 | } | |
1596 | 1619 | else throw("Strict value is not equal to itself.") | |
1597 | 1620 | } | |
1598 | 1621 | else throw("Strict value is not equal to itself.") | |
1599 | 1622 | } | |
1600 | 1623 | else throw("Strict value is not equal to itself.") | |
1601 | 1624 | } | |
1602 | 1625 | else throw("Strict value is not equal to itself.") | |
1603 | 1626 | } | |
1604 | 1627 | else throw("Strict value is not equal to itself.") | |
1605 | 1628 | } | |
1606 | 1629 | ||
1607 | 1630 | ||
1608 | 1631 | ||
1609 | - | @Callable( | |
1610 | - | func activate ( | |
1632 | + | @Callable(fd) | |
1633 | + | func activate (hQ,hR) = if ((toString(fd.caller) != toString(bd))) | |
1611 | 1634 | then throw("permissions denied") | |
1612 | - | else $Tuple2([StringEntry(ae(), | |
1635 | + | else $Tuple2([StringEntry(ae(), hQ), StringEntry(af(), hR)], "success") | |
1613 | 1636 | ||
1614 | 1637 | ||
1615 | 1638 | ||
1616 | - | @Callable( | |
1639 | + | @Callable(fd) | |
1617 | 1640 | func refreshKLp () = { | |
1618 | - | let | |
1619 | - | let | |
1641 | + | let hS = valueOrElse(getInteger(ak), 0) | |
1642 | + | let hT = if (((height - hS) >= an)) | |
1620 | 1643 | then unit | |
1621 | 1644 | else ba(makeString([toString(an), " blocks have not passed since the previous call"], "")) | |
1622 | - | if (( | |
1645 | + | if ((hT == hT)) | |
1623 | 1646 | then { | |
1624 | - | let | |
1625 | - | let | |
1626 | - | let | |
1627 | - | let | |
1628 | - | let | |
1629 | - | then | |
1647 | + | let eW = valueOrErrorMessage(parseBigInt(valueOrElse(getString(this, aj), "0")), bc("invalid kLp")) | |
1648 | + | let hU = eK(0, 0, 0) | |
1649 | + | let hV = hU._1 | |
1650 | + | let eB = hU._2 | |
1651 | + | let eN = if ((eW != eB)) | |
1652 | + | then hV | |
1630 | 1653 | else ba("nothing to refresh") | |
1631 | - | $Tuple2( | |
1654 | + | $Tuple2(eN, toString(eB)) | |
1632 | 1655 | } | |
1633 | 1656 | else throw("Strict value is not equal to itself.") | |
1634 | 1657 | } | |
1635 | 1658 | ||
1636 | 1659 | ||
1637 | 1660 | ||
1638 | - | @Callable( | |
1639 | - | func getPoolConfigWrapperREADONLY () = $Tuple2(nil, | |
1661 | + | @Callable(fd) | |
1662 | + | func getPoolConfigWrapperREADONLY () = $Tuple2(nil, bm()) | |
1640 | 1663 | ||
1641 | 1664 | ||
1642 | 1665 | ||
1643 | - | @Callable( | |
1644 | - | func getAccBalanceWrapperREADONLY (ap) = $Tuple2(nil, | |
1666 | + | @Callable(fd) | |
1667 | + | func getAccBalanceWrapperREADONLY (ap) = $Tuple2(nil, bV(ap)) | |
1645 | 1668 | ||
1646 | 1669 | ||
1647 | 1670 | ||
1648 | - | @Callable( | |
1649 | - | func calcPricesWrapperREADONLY ( | |
1650 | - | let | |
1651 | - | $Tuple2(nil, [toString( | |
1671 | + | @Callable(fd) | |
1672 | + | func calcPricesWrapperREADONLY (de,df,dj) = { | |
1673 | + | let ds = di(de, df, dj) | |
1674 | + | $Tuple2(nil, [toString(ds[0]), toString(ds[1]), toString(ds[2])]) | |
1652 | 1675 | } | |
1653 | 1676 | ||
1654 | 1677 | ||
1655 | 1678 | ||
1656 | - | @Callable( | |
1679 | + | @Callable(fd) | |
1657 | 1680 | func toX18WrapperREADONLY (E,F) = $Tuple2(nil, toString(D(E, F))) | |
1658 | 1681 | ||
1659 | 1682 | ||
1660 | 1683 | ||
1661 | - | @Callable( | |
1684 | + | @Callable(fd) | |
1662 | 1685 | func fromX18WrapperREADONLY (I,J) = $Tuple2(nil, H(parseBigIntValue(I), J)) | |
1663 | 1686 | ||
1664 | 1687 | ||
1665 | 1688 | ||
1666 | - | @Callable( | |
1667 | - | func calcPriceBigIntWrapperREADONLY ( | |
1689 | + | @Callable(fd) | |
1690 | + | func calcPriceBigIntWrapperREADONLY (bZ,ca) = $Tuple2(nil, toString(bY(parseBigIntValue(bZ), parseBigIntValue(ca)))) | |
1668 | 1691 | ||
1669 | 1692 | ||
1670 | 1693 | ||
1671 | - | @Callable( | |
1672 | - | func estimatePutOperationWrapperREADONLY ( | |
1694 | + | @Callable(fd) | |
1695 | + | func estimatePutOperationWrapperREADONLY (du,dQ,dR,dS,dT,dU,ab,dV,dW) = $Tuple2(nil, dP(du, dQ, dR, dS, dT, dU, ab, dV, dW)) | |
1673 | 1696 | ||
1674 | 1697 | ||
1675 | 1698 | ||
1676 | - | @Callable( | |
1677 | - | func estimateGetOperationWrapperREADONLY ( | |
1678 | - | let | |
1679 | - | $Tuple2(nil, $Tuple10( | |
1699 | + | @Callable(fd) | |
1700 | + | func estimateGetOperationWrapperREADONLY (du,dv,dw,ab) = { | |
1701 | + | let eg = dt(du, dv, dw, addressFromStringValue(ab)) | |
1702 | + | $Tuple2(nil, $Tuple10(eg._1, eg._2, eg._3, eg._4, eg._5, eg._6, eg._7, toString(eg._8), eg._9, eg._10)) | |
1680 | 1703 | } | |
1681 | 1704 | ||
1682 | 1705 | ||
1683 | 1706 | ||
1684 | - | @Callable( | |
1707 | + | @Callable(fd) | |
1685 | 1708 | func statsREADONLY () = { | |
1686 | - | let | |
1687 | - | let | |
1688 | - | let | |
1689 | - | let | |
1690 | - | let | |
1691 | - | let | |
1692 | - | let | |
1693 | - | let | |
1694 | - | let | |
1695 | - | let | |
1696 | - | let | |
1697 | - | let | |
1709 | + | let dk = bm() | |
1710 | + | let dx = fromBase58String(dk[q]) | |
1711 | + | let hW = dk[r] | |
1712 | + | let hX = dk[s] | |
1713 | + | let dZ = dk[v] | |
1714 | + | let ea = dk[w] | |
1715 | + | let dl = parseIntValue(dk[t]) | |
1716 | + | let dm = parseIntValue(dk[u]) | |
1717 | + | let hY = valueOrErrorMessage(assetInfo(dx), (("Asset " + toBase58String(dx)) + " doesn't exist")).quantity | |
1718 | + | let hZ = bV(hW) | |
1719 | + | let ia = bV(hX) | |
1720 | + | let ib = if ((hY == 0)) | |
1698 | 1721 | then [e, e, e] | |
1699 | - | else | |
1700 | - | let | |
1701 | - | let | |
1702 | - | let | |
1703 | - | let | |
1704 | - | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d", toString( | |
1722 | + | else di(hZ, ia, hY) | |
1723 | + | let dH = 0 | |
1724 | + | let ic = H(ib[1], b) | |
1725 | + | let id = H(ib[2], b) | |
1726 | + | let ie = value(getInteger(bd, aD(toString(this)))) | |
1727 | + | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d", toString(hZ), toString(ia), toString(hY), toString(dH), toString(ic), toString(id), toString(ie)], j)) | |
1705 | 1728 | } | |
1706 | 1729 | ||
1707 | 1730 | ||
1708 | 1731 | ||
1709 | - | @Callable( | |
1710 | - | func evaluatePutByAmountAssetREADONLY ( | |
1711 | - | let | |
1712 | - | let | |
1713 | - | let | |
1714 | - | let | |
1715 | - | let | |
1716 | - | let | |
1717 | - | let | |
1718 | - | let | |
1719 | - | let | |
1720 | - | let | |
1721 | - | let | |
1722 | - | let | |
1723 | - | let | |
1724 | - | let | |
1725 | - | let | |
1732 | + | @Callable(fd) | |
1733 | + | func evaluatePutByAmountAssetREADONLY (dR) = { | |
1734 | + | let dk = bm() | |
1735 | + | let dx = fromBase58String(dk[q]) | |
1736 | + | let dX = dk[r] | |
1737 | + | let dy = fromBase58String(dX) | |
1738 | + | let dY = dk[s] | |
1739 | + | let dz = fromBase58String(dY) | |
1740 | + | let dl = parseIntValue(dk[t]) | |
1741 | + | let dm = parseIntValue(dk[u]) | |
1742 | + | let dA = dk[p] | |
1743 | + | let hY = valueOrErrorMessage(assetInfo(dx), (("Asset " + toBase58String(dx)) + " doesn't exist")).quantity | |
1744 | + | let hZ = bV(dX) | |
1745 | + | let ia = bV(dY) | |
1746 | + | let dg = D(hZ, dl) | |
1747 | + | let dh = D(ia, dm) | |
1748 | + | let dG = if ((hY == 0)) | |
1726 | 1749 | then e | |
1727 | - | else | |
1728 | - | let | |
1729 | - | let | |
1730 | - | let | |
1731 | - | let | |
1732 | - | let | |
1733 | - | let | |
1734 | - | let | |
1735 | - | let | |
1736 | - | let | |
1737 | - | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d%d", toString( | |
1750 | + | else bY(dh, dg) | |
1751 | + | let ed = D(dR, dl) | |
1752 | + | let ee = fraction(ed, dG, d) | |
1753 | + | let dT = H(ee, dm) | |
1754 | + | let fk = dP("", 500000, dR, dy, dT, dz, "", true, false) | |
1755 | + | let eo = fk._1 | |
1756 | + | let if = fk._3 | |
1757 | + | let dC = fk._4 | |
1758 | + | let dE = fk._5 | |
1759 | + | let dB = fk._6 | |
1760 | + | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d%d", toString(eo), toString(H(dG, b)), toString(dC), toString(dE), toString(dB), dA, toString(dR), toString(dT)], j)) | |
1738 | 1761 | } | |
1739 | 1762 | ||
1740 | 1763 | ||
1741 | 1764 | ||
1742 | - | @Callable( | |
1743 | - | func evaluatePutByPriceAssetREADONLY ( | |
1744 | - | let | |
1745 | - | let | |
1746 | - | let | |
1747 | - | let | |
1748 | - | let | |
1749 | - | let | |
1750 | - | let | |
1751 | - | let | |
1752 | - | let | |
1753 | - | let | |
1754 | - | let | |
1755 | - | let | |
1756 | - | let | |
1757 | - | let | |
1758 | - | let | |
1765 | + | @Callable(fd) | |
1766 | + | func evaluatePutByPriceAssetREADONLY (dT) = { | |
1767 | + | let dk = bm() | |
1768 | + | let dx = fromBase58String(dk[q]) | |
1769 | + | let dX = dk[r] | |
1770 | + | let dy = fromBase58String(dX) | |
1771 | + | let dY = dk[s] | |
1772 | + | let dz = fromBase58String(dY) | |
1773 | + | let dl = parseIntValue(dk[t]) | |
1774 | + | let dm = parseIntValue(dk[u]) | |
1775 | + | let dA = dk[p] | |
1776 | + | let hY = valueOrErrorMessage(assetInfo(dx), (("Asset " + toBase58String(dx)) + " doesn't exist")).quantity | |
1777 | + | let ig = bV(dX) | |
1778 | + | let ih = bV(dY) | |
1779 | + | let ii = D(ig, dl) | |
1780 | + | let ij = D(ih, dm) | |
1781 | + | let dG = if ((hY == 0)) | |
1759 | 1782 | then e | |
1760 | - | else | |
1761 | - | let | |
1762 | - | let | |
1763 | - | let | |
1764 | - | let | |
1765 | - | let | |
1766 | - | let | |
1767 | - | let | |
1768 | - | let | |
1769 | - | let | |
1770 | - | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d%d", toString( | |
1783 | + | else bY(ij, ii) | |
1784 | + | let ee = D(dT, dm) | |
1785 | + | let ed = fraction(ee, d, dG) | |
1786 | + | let dR = H(ed, dl) | |
1787 | + | let fk = dP("", 500000, dR, dy, dT, dz, "", true, false) | |
1788 | + | let eo = fk._1 | |
1789 | + | let if = fk._3 | |
1790 | + | let dC = fk._4 | |
1791 | + | let dE = fk._5 | |
1792 | + | let dB = fk._6 | |
1793 | + | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d%d", toString(eo), toString(H(dG, b)), toString(dC), toString(dE), toString(dB), dA, toString(dR), toString(dT)], j)) | |
1771 | 1794 | } | |
1772 | 1795 | ||
1773 | 1796 | ||
1774 | 1797 | ||
1775 | - | @Callable( | |
1776 | - | func evaluateGetREADONLY ( | |
1777 | - | let | |
1778 | - | let | |
1779 | - | let | |
1780 | - | let | |
1781 | - | let | |
1782 | - | let | |
1783 | - | let | |
1784 | - | let | |
1785 | - | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d", toString( | |
1798 | + | @Callable(fd) | |
1799 | + | func evaluateGetREADONLY (ik,il) = { | |
1800 | + | let eg = dt("", ik, il, this) | |
1801 | + | let dM = eg._1 | |
1802 | + | let dN = eg._2 | |
1803 | + | let dC = eg._5 | |
1804 | + | let dE = eg._6 | |
1805 | + | let dB = eg._7 | |
1806 | + | let dH = eg._8 | |
1807 | + | let dA = parseIntValue(eg._9) | |
1808 | + | $Tuple2(nil, makeString(["%d%d%d%d%d%d%d", toString(dM), toString(dN), toString(dC), toString(dE), toString(dB), toString(dH), toString(dA)], j)) | |
1786 | 1809 | } | |
1787 | 1810 | ||
1788 | 1811 | ||
1789 | - | @Verifier( | |
1790 | - | func | |
1791 | - | let | |
1792 | - | let aQ = | |
1812 | + | @Verifier(im) | |
1813 | + | func in () = { | |
1814 | + | let io = { | |
1815 | + | let aQ = gr() | |
1793 | 1816 | if ($isInstanceOf(aQ, "ByteVector")) | |
1794 | 1817 | then { | |
1795 | - | let | |
1796 | - | | |
1818 | + | let gu = aQ | |
1819 | + | gu | |
1797 | 1820 | } | |
1798 | 1821 | else if ($isInstanceOf(aQ, "Unit")) | |
1799 | - | then | |
1822 | + | then im.senderPublicKey | |
1800 | 1823 | else throw("Match error") | |
1801 | 1824 | } | |
1802 | - | let aQ = | |
1825 | + | let aQ = im | |
1803 | 1826 | if ($isInstanceOf(aQ, "Order")) | |
1804 | 1827 | then { | |
1805 | - | let | |
1806 | - | let | |
1807 | - | let | |
1828 | + | let eS = aQ | |
1829 | + | let ip = bl() | |
1830 | + | let iq = if (eO()) | |
1808 | 1831 | then $Tuple2(true, "") | |
1809 | - | else | |
1810 | - | let aK = | |
1811 | - | let aL = | |
1812 | - | let aM = sigVerify( | |
1813 | - | let aN = sigVerify( | |
1832 | + | else eR(eS) | |
1833 | + | let aK = iq._1 | |
1834 | + | let aL = iq._2 | |
1835 | + | let aM = sigVerify(eS.bodyBytes, eS.proofs[0], eS.senderPublicKey) | |
1836 | + | let aN = sigVerify(eS.bodyBytes, eS.proofs[1], ip) | |
1814 | 1837 | if (if (if (aK) | |
1815 | 1838 | then aM | |
1816 | 1839 | else false) | |
1817 | 1840 | then aN | |
1818 | 1841 | else false) | |
1819 | 1842 | then true | |
1820 | 1843 | else aJ(aK, aL, aM, aN) | |
1821 | 1844 | } | |
1822 | 1845 | else if ($isInstanceOf(aQ, "SetScriptTransaction")) | |
1823 | 1846 | then { | |
1824 | 1847 | let aV = aQ | |
1825 | - | if (sigVerify( | |
1848 | + | if (sigVerify(im.bodyBytes, im.proofs[0], io)) | |
1826 | 1849 | then true | |
1827 | 1850 | else { | |
1828 | - | let | |
1829 | - | let | |
1830 | - | let | |
1831 | - | if (( | |
1832 | - | then ( | |
1851 | + | let ir = blake2b256(value(aV.script)) | |
1852 | + | let is = fromBase64String(value(getString(bd, aF()))) | |
1853 | + | let it = scriptHash(this) | |
1854 | + | if ((is == ir)) | |
1855 | + | then (it != ir) | |
1833 | 1856 | else false | |
1834 | 1857 | } | |
1835 | 1858 | } | |
1836 | - | else sigVerify( | |
1859 | + | else sigVerify(im.bodyBytes, im.proofs[0], io) | |
1837 | 1860 | } | |
1838 | 1861 |
github/deemru/w8io/026f985 686.91 ms ◑