tx · 8cJ4EYMU8BZc9HUWjUXJ2GKL3c6sqRRmDBggDAVhCdDZ 3N7BEKCGKtgSAqfywYKRDwQMB9yGBP9SuSe: -0.01400000 Waves 2022.03.25 10:34 [1979168] smart account 3N7BEKCGKtgSAqfywYKRDwQMB9yGBP9SuSe > SELF 0.00000000 Waves
{ "type": 13, "id": "8cJ4EYMU8BZc9HUWjUXJ2GKL3c6sqRRmDBggDAVhCdDZ", "fee": 1400000, "feeAssetId": null, "timestamp": 1648193679790, "version": 2, "chainId": 84, "sender": "3N7BEKCGKtgSAqfywYKRDwQMB9yGBP9SuSe", "senderPublicKey": "5h6eNMEnAmx4CY8P35do6SfACsuGxcHMc1BPELwFvyFe", "proofs": [ "3rJ6xqvVQ46SAVoHvxcHzKU8RYwNpUtyFVpzTBEErHcfazjmSypzAamp19NGyaTcnjqqRTuNbDD41HphbENLhpAP", "3N1RvfCLrn2oisNHjyaEXVBwRRUJosH3frcCgqj4Fqt8sb8JbJN3fyBjgaeAKPQcP7dZ1ZUtej7t1vVwD89V9cs7" ], "script": "base64:AAIFAAAAAAAAACMIAhIAEgASBAoCAQESABIECgIBARIAEgASABIAEgUKAwQBCAAAAFIAAAAAB3ZlcnNpb24CAAAABTIuMC4wAAAAAAhrVmVyc2lvbgIAAAAHdmVyc2lvbgAAAAAHa0FjdGl2ZQIAAAAGYWN0aXZlAAAAAAlrQXNzZXRJZEECAAAACkFfYXNzZXRfaWQAAAAACWtBc3NldElkQgIAAAAKQl9hc3NldF9pZAAAAAAJa0JhbGFuY2VBAgAAAA9BX2Fzc2V0X2JhbGFuY2UAAAAACWtCYWxhbmNlQgIAAAAPQl9hc3NldF9iYWxhbmNlAAAAAA1rU2hhcmVBc3NldElkAgAAAA5zaGFyZV9hc3NldF9pZAAAAAARa1NoYXJlQXNzZXRTdXBwbHkCAAAAEnNoYXJlX2Fzc2V0X3N1cHBseQAAAAAEa0ZlZQIAAAAKY29tbWlzc2lvbgAAAAASa0ZlZVNjYWxlRGVsaW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QAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAFAAAACmFkbVN0YWtpbmcDAwUAAAATY2FsbFRha2VJbnRvQWNjb3VudAUAAAANc2lnbmVkQnlBZG1pbgcGBQAAABNtdWx0aVNpZ25lZEJ5QWRtaW5zBQAAABNtdWx0aVNpZ25lZEJ5QWRtaW5zRctgIw==", "height": 1979168, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 5yHdxw2eD3cVJ9kxJnGPabQ1vQLeFrNqmJJEwbp6BzUW Next: none Diff:
Old | New | Differences | |
---|---|---|---|
254 | 254 | else if ((aJ == O)) | |
255 | 255 | then aD((T - aG), aC) | |
256 | 256 | else throw("Wrong asset in payment") | |
257 | - | | |
257 | + | if ((X > aS)) | |
258 | 258 | then if ((aK >= fraction(ac, X, aS))) | |
259 | - | then throw(" | |
259 | + | then throw("The requested price is too not profitable for user") | |
260 | 260 | else { | |
261 | - | let | |
262 | - | let | |
263 | - | let | |
264 | - | let | |
265 | - | func | |
266 | - | then | |
267 | - | else aM( | |
261 | + | let aT = { | |
262 | + | let aU = [25, 200, 500] | |
263 | + | let aV = size(aU) | |
264 | + | let aW = $Tuple2(-1, 0) | |
265 | + | func aX (aY,aZ) = if ((aZ >= aV)) | |
266 | + | then aY | |
267 | + | else aM(aY, aU[aZ]) | |
268 | 268 | ||
269 | - | func | |
270 | - | then | |
269 | + | func ba (aY,aZ) = if ((aZ >= aV)) | |
270 | + | then aY | |
271 | 271 | else throw("List size exceeds 3") | |
272 | 272 | ||
273 | - | | |
273 | + | ba(aX(aX(aX(aW, 0), 1), 2), 3) | |
274 | 274 | } | |
275 | - | if ((0 > | |
276 | - | then aR | |
277 | - | else | |
275 | + | if ((0 > aT._1)) | |
276 | + | then aR._1 | |
277 | + | else aT._1 | |
278 | 278 | } | |
279 | 279 | else { | |
280 | - | let | |
281 | - | let | |
282 | - | let | |
283 | - | let | |
284 | - | func | |
285 | - | then | |
286 | - | else aM( | |
280 | + | let aT = { | |
281 | + | let aU = [-500, -200, -25] | |
282 | + | let aV = size(aU) | |
283 | + | let aW = $Tuple2(-1, 0) | |
284 | + | func aX (aY,aZ) = if ((aZ >= aV)) | |
285 | + | then aY | |
286 | + | else aM(aY, aU[aZ]) | |
287 | 287 | ||
288 | - | func | |
289 | - | then | |
288 | + | func ba (aY,aZ) = if ((aZ >= aV)) | |
289 | + | then aY | |
290 | 290 | else throw("List size exceeds 3") | |
291 | 291 | ||
292 | - | | |
292 | + | ba(aX(aX(aX(aW, 0), 1), 2), 3) | |
293 | 293 | } | |
294 | - | let | |
294 | + | let bb = if ((0 > aT._1)) | |
295 | 295 | then $Tuple2(aG, aS) | |
296 | - | else | |
297 | - | if ((aK >= fraction(ac, X, | |
298 | - | then throw(" | |
299 | - | else | |
296 | + | else aT | |
297 | + | if ((aK >= fraction(ac, X, bb._2))) | |
298 | + | then throw("The requested price is too not profitable for user") | |
299 | + | else bb._1 | |
300 | 300 | } | |
301 | - | aT | |
302 | 301 | } | |
303 | 302 | } | |
304 | 303 | ||
305 | 304 | ||
306 | - | func | |
305 | + | func bc (ao) = { | |
307 | 306 | let w = ao | |
308 | 307 | if ($isInstanceOf(w, "ByteVector")) | |
309 | 308 | then { | |
310 | 309 | let Q = w | |
311 | - | let | |
312 | - | let | |
313 | - | $Tuple3( | |
310 | + | let bd = toBase58String(Q) | |
311 | + | let be = valueOrErrorMessage(assetInfo(Q), (("Asset " + bd) + " doesn't exist")) | |
312 | + | $Tuple3(bd, be.name, be.decimals) | |
314 | 313 | } | |
315 | 314 | else if ($isInstanceOf(w, "Unit")) | |
316 | 315 | then { | |
321 | 320 | } | |
322 | 321 | ||
323 | 322 | ||
324 | - | func | |
323 | + | func bf (bg) = [BooleanEntry(c, false), StringEntry(m, bg)] | |
325 | 324 | ||
326 | 325 | ||
327 | - | func | |
326 | + | func bh () = throw("DApp is already active") | |
328 | 327 | ||
329 | 328 | ||
330 | - | func | |
329 | + | func bi () = if (K) | |
331 | 330 | then unit | |
332 | 331 | else throw("DApp is inactive at this moment") | |
333 | 332 | ||
334 | 333 | ||
335 | - | func | |
334 | + | func bj (as) = if (containsElement([z, A, B], as.callerPublicKey)) | |
336 | 335 | then unit | |
337 | 336 | else throw("Only admin can call this function") | |
338 | 337 | ||
339 | 338 | ||
340 | - | func | |
339 | + | func bk () = throw(((("Incorrect assets attached. Expected: " + L) + " and ") + M)) | |
341 | 340 | ||
342 | 341 | ||
343 | - | func | |
342 | + | func bl () = throw("One attached payment expected") | |
344 | 343 | ||
345 | 344 | ||
346 | - | func | |
345 | + | func bm (bn,bo,bp) = throw(((((((((("New balance in assets of the DApp is less than threshold " + toString(bn)) + ": ") + toString(bo)) + " ") + P) + ", ") + toString(bp)) + " ") + S)) | |
347 | 346 | ||
348 | 347 | ||
349 | - | func | |
348 | + | func bq () = bf(((((((((((((((("Suspicious state. Actual balances: " + toString(T)) + " ") + P) + ", ") + toString(U)) + " ") + S) + ". State: ") + toString(an(N))) + " ") + P) + ", ") + toString(an(O))) + " ") + S)) | |
350 | 349 | ||
351 | 350 | ||
352 | - | func | |
351 | + | func br (bs,ao) = if (bs) | |
353 | 352 | then if ((ao == F)) | |
354 | 353 | then $Tuple2("lockNeutrino", I) | |
355 | 354 | else $Tuple2("startStaking", J) | |
358 | 357 | else $Tuple2("stopStaking", J) | |
359 | 358 | ||
360 | 359 | ||
361 | - | func | |
360 | + | func bt (bs,bu,ao) = if (bs) | |
362 | 361 | then { | |
363 | - | let | |
364 | - | let | |
365 | - | let | |
366 | - | $Tuple4( | |
362 | + | let bv = br(bs, ao) | |
363 | + | let bw = bv._1 | |
364 | + | let bx = bv._2 | |
365 | + | $Tuple4(bw, bx, nil, [AttachedPayment(ao, bu)]) | |
367 | 366 | } | |
368 | 367 | else { | |
369 | - | let | |
370 | - | let | |
371 | - | let | |
372 | - | $Tuple4(bx, | |
368 | + | let by = br(bs, ao) | |
369 | + | let bw = by._1 | |
370 | + | let bx = by._2 | |
371 | + | $Tuple4(bw, bx, [bu, toBase58String(ao)], nil) | |
373 | 372 | } | |
374 | 373 | ||
375 | 374 | ||
376 | 375 | @Callable(as) | |
377 | 376 | func init () = { | |
378 | - | let | |
379 | - | let | |
380 | - | let | |
381 | - | let | |
382 | - | let | |
383 | - | let | |
384 | - | let | |
385 | - | let | |
386 | - | let | |
387 | - | let | |
388 | - | let | |
389 | - | let | |
390 | - | let | |
391 | - | let | |
377 | + | let bz = $Tuple2(as.payments[0].amount, as.payments[0].assetId) | |
378 | + | let bA = bz._1 | |
379 | + | let bB = bz._2 | |
380 | + | let bC = $Tuple2(as.payments[1].amount, as.payments[1].assetId) | |
381 | + | let bD = bC._1 | |
382 | + | let bE = bC._2 | |
383 | + | let bF = bc(bB) | |
384 | + | let bG = bF._1 | |
385 | + | let bH = bF._2 | |
386 | + | let bI = bF._3 | |
387 | + | let bJ = bc(bE) | |
388 | + | let bK = bJ._1 | |
389 | + | let bL = bJ._2 | |
390 | + | let bM = bJ._3 | |
392 | 391 | if (isDefined(getBoolean(this, c))) | |
393 | - | then | |
394 | - | else if (( | |
392 | + | then bh() | |
393 | + | else if ((bB == bE)) | |
395 | 394 | then throw("Assets must be different") | |
396 | 395 | else { | |
397 | - | let | |
398 | - | let | |
399 | - | let | |
400 | - | let | |
401 | - | let | |
402 | - | let | |
403 | - | let | |
404 | - | let | |
405 | - | then invoke(this, "stakeUnstake", [true, | |
396 | + | let bN = ((("s" + take(bH, 7)) + "_") + take(bL, 7)) | |
397 | + | let bO = ((((("ShareToken of SwopFi protocol for " + bH) + " and ") + bL) + " at address ") + toString(this)) | |
398 | + | let bP = ((bI + bM) / 2) | |
399 | + | let bQ = fraction(pow(bA, bI, 5, 1, bI, DOWN), pow(bD, bM, 5, 1, bM, DOWN), pow(10, 0, bP, 0, 0, DOWN)) | |
400 | + | let bR = Issue(bN, bO, bQ, bP, true) | |
401 | + | let bS = calculateAssetId(bR) | |
402 | + | let bT = aD(bA, bD) | |
403 | + | let bU = if (containsElement(H, bG)) | |
404 | + | then invoke(this, "stakeUnstake", [true, bA, bG], nil) | |
406 | 405 | else 0 | |
407 | - | if (( | |
406 | + | if ((bU == bU)) | |
408 | 407 | then { | |
409 | - | let | |
410 | - | then invoke(this, "stakeUnstake", [true, | |
408 | + | let bV = if (containsElement(H, bK)) | |
409 | + | then invoke(this, "stakeUnstake", [true, bD, bK], nil) | |
411 | 410 | else 0 | |
412 | - | if (( | |
413 | - | then [StringEntry(b, a), BooleanEntry(c, true), StringEntry(d, | |
411 | + | if ((bV == bV)) | |
412 | + | then [StringEntry(b, a), BooleanEntry(c, true), StringEntry(d, bG), StringEntry(e, bK), IntegerEntry(f, bA), IntegerEntry(g, bD), IntegerEntry(l, bT), IntegerEntry(j, Y), IntegerEntry(k, aa), bR, StringEntry(h, toBase58String(bS)), IntegerEntry(i, bQ), ScriptTransfer(as.caller, bQ, bS)] | |
414 | 413 | else throw("Strict value is not equal to itself.") | |
415 | 414 | } | |
416 | 415 | else throw("Strict value is not equal to itself.") | |
420 | 419 | ||
421 | 420 | ||
422 | 421 | @Callable(as) | |
423 | - | func replenishWithTwoTokens () = valueOrElse( | |
424 | - | let | |
425 | - | let | |
426 | - | let | |
427 | - | let | |
428 | - | let | |
429 | - | let | |
430 | - | let | |
431 | - | let | |
432 | - | let | |
433 | - | let | |
434 | - | let | |
435 | - | let | |
436 | - | let | |
422 | + | func replenishWithTwoTokens () = valueOrElse(bi(), { | |
423 | + | let bB = as.payments[0].assetId | |
424 | + | let bE = as.payments[1].assetId | |
425 | + | let bW = fraction(ac, as.payments[0].amount, T) | |
426 | + | let bX = fraction(ac, as.payments[1].amount, U) | |
427 | + | let bY = bc(bB) | |
428 | + | let bG = bY._1 | |
429 | + | let bH = bY._2 | |
430 | + | let bI = bY._3 | |
431 | + | let bZ = bc(bE) | |
432 | + | let bK = bZ._1 | |
433 | + | let bL = bZ._2 | |
434 | + | let bM = bZ._3 | |
435 | + | let ca = if ((bX > bW)) | |
437 | 436 | then { | |
438 | - | let | |
439 | - | $Tuple5(as.payments[0].amount, | |
437 | + | let cb = fraction(U, bW, ac, CEILING) | |
438 | + | $Tuple5(as.payments[0].amount, cb, (as.payments[1].amount - cb), bE, bW) | |
440 | 439 | } | |
441 | 440 | else { | |
442 | - | let | |
443 | - | $Tuple5( | |
441 | + | let cb = fraction(T, bX, ac, CEILING) | |
442 | + | $Tuple5(cb, as.payments[1].amount, (as.payments[0].amount - cb), bB, bX) | |
444 | 443 | } | |
445 | - | let | |
446 | - | let | |
447 | - | let | |
448 | - | let | |
449 | - | let | |
450 | - | let | |
444 | + | let bA = ca._1 | |
445 | + | let bD = ca._2 | |
446 | + | let cc = ca._3 | |
447 | + | let cd = ca._4 | |
448 | + | let ce = ca._5 | |
449 | + | let cf = fraction(ce, W, ac) | |
451 | 450 | if ((size(as.payments) != 2)) | |
452 | 451 | then throw("Two attached assets expected") | |
453 | - | else if (if (( | |
452 | + | else if (if ((bB != N)) | |
454 | 453 | then true | |
455 | - | else ( | |
456 | - | then | |
457 | - | else if (( | |
454 | + | else (bE != O)) | |
455 | + | then bk() | |
456 | + | else if ((cf == 0)) | |
458 | 457 | then throw("Too small amount to replenish") | |
459 | - | else if ((0 > | |
458 | + | else if ((0 > cc)) | |
460 | 459 | then throw("Change < 0") | |
461 | 460 | else if (!(az)) | |
462 | - | then ([ScriptTransfer(as.caller, | |
461 | + | then ([ScriptTransfer(as.caller, bA, bB), ScriptTransfer(as.caller, bD, bE)] ++ bq()) | |
463 | 462 | else { | |
464 | - | let | |
465 | - | then invoke(this, "stakeUnstake", [true, | |
463 | + | let bU = if (containsElement(H, bG)) | |
464 | + | then invoke(this, "stakeUnstake", [true, bA, bG], nil) | |
466 | 465 | else 0 | |
467 | - | if (( | |
466 | + | if ((bU == bU)) | |
468 | 467 | then { | |
469 | - | let | |
470 | - | then invoke(this, "stakeUnstake", [true, | |
468 | + | let bV = if (containsElement(H, bK)) | |
469 | + | then invoke(this, "stakeUnstake", [true, bD, bK], nil) | |
471 | 470 | else 0 | |
472 | - | if (( | |
473 | - | then [IntegerEntry(f, (T + | |
471 | + | if ((bV == bV)) | |
472 | + | then [IntegerEntry(f, (T + bA)), IntegerEntry(g, (U + bD)), IntegerEntry(i, (W + cf)), IntegerEntry(l, aD((T + bA), (U + bD))), Reissue(V, cf, true), ScriptTransfer(as.caller, cf, V), ScriptTransfer(as.caller, cc, cd)] | |
474 | 473 | else throw("Strict value is not equal to itself.") | |
475 | 474 | } | |
476 | 475 | else throw("Strict value is not equal to itself.") | |
480 | 479 | ||
481 | 480 | ||
482 | 481 | @Callable(as) | |
483 | - | func replenishWithOneToken (ch | |
484 | - | let | |
485 | - | let | |
486 | - | let | |
487 | - | let | |
488 | - | let | |
489 | - | let | |
490 | - | let | |
491 | - | let | |
492 | - | let | |
493 | - | let | |
482 | + | func replenishWithOneToken (cg,ch) = valueOrElse(bi(), { | |
483 | + | let ci = $Tuple2(as.payments[0].amount, as.payments[0].assetId) | |
484 | + | let cj = ci._1 | |
485 | + | let ck = ci._2 | |
486 | + | let cl = bc(ck) | |
487 | + | let cm = cl._1 | |
488 | + | let cn = cl._2 | |
489 | + | let co = cl._3 | |
490 | + | let cp = 5000000 | |
491 | + | let cq = 50000000 | |
492 | + | let cr = if ((cq > cj)) | |
494 | 493 | then 100000 | |
495 | 494 | else 1 | |
496 | - | let | |
497 | - | let | |
498 | - | let | |
499 | - | if (( | |
500 | - | then throw((((("Payment amount " + toString( | |
495 | + | let cs = (ac - ((ac * cr) / 10000000)) | |
496 | + | let ct = (ac + ((ac * cr) / 10000000)) | |
497 | + | let cu = (ac - ((ac * 1) / 10000000)) | |
498 | + | if ((cp > cj)) | |
499 | + | then throw((((("Payment amount " + toString(cj)) + " does not exceed the minimum amount of ") + toString(cp)) + " tokens")) | |
501 | 500 | else if ((size(as.payments) != 1)) | |
502 | - | then | |
501 | + | then bl() | |
503 | 502 | else if (!(az)) | |
504 | - | then ([ScriptTransfer(as.caller, | |
505 | - | else if (if (( | |
506 | - | then ( | |
503 | + | then ([ScriptTransfer(as.caller, cj, ck)] ++ bq()) | |
504 | + | else if (if ((ck != N)) | |
505 | + | then (ck != O) | |
507 | 506 | else false) | |
508 | - | then | |
507 | + | then bk() | |
509 | 508 | else { | |
510 | - | let | |
511 | - | then $Tuple7(( | |
512 | - | else $Tuple7( | |
513 | - | let | |
514 | - | let | |
515 | - | let | |
516 | - | let | |
517 | - | let | |
518 | - | let | |
519 | - | let | |
520 | - | let | |
521 | - | then IntegerEntry(f, | |
522 | - | else IntegerEntry(g, | |
523 | - | let | |
524 | - | let | |
525 | - | let | |
526 | - | let | |
527 | - | if (if (( | |
509 | + | let cv = if ((ck == N)) | |
510 | + | then $Tuple7((cj - cg), ch, (T + cg), (U - ch), aD((T + cj), U), (T + cj), U) | |
511 | + | else $Tuple7(ch, (cj - cg), (T - ch), (U + cg), aD(T, (U + cj)), T, (U + cj)) | |
512 | + | let cw = cv._1 | |
513 | + | let cx = cv._2 | |
514 | + | let cy = cv._3 | |
515 | + | let cz = cv._4 | |
516 | + | let bT = cv._5 | |
517 | + | let cA = cv._6 | |
518 | + | let cB = cv._7 | |
519 | + | let cC = if ((ck == N)) | |
520 | + | then IntegerEntry(f, cA) | |
521 | + | else IntegerEntry(g, cB) | |
522 | + | let cD = aD(cy, cz) | |
523 | + | let cE = fraction(ac, X, cD) | |
524 | + | let cF = (fraction((ac * ac), cy, cz) / fraction(ac, cw, cx)) | |
525 | + | let cG = fraction((cA + cB), ag, (2 * ah)) | |
526 | + | if (if ((cu >= cE)) | |
528 | 527 | then true | |
529 | - | else (X > | |
530 | - | then throw("Incorrect virtualSwapTokenPay or virtualSwapTokenGet value") | |
531 | - | else if (if (( | |
528 | + | else (X > cD)) | |
529 | + | then throw((((((("Incorrect virtualSwapTokenPay or virtualSwapTokenGet value" + " invariantEstimatedRatio: ") + toString(cE)) + " invariantNew: ") + toString(cD)) + " invariant: ") + toString(X))) | |
530 | + | else if (if ((cs > cF)) | |
532 | 531 | then true | |
533 | - | else ( | |
532 | + | else (cF > ct)) | |
534 | 533 | then throw("Swap with virtualSwapTokenPay and virtualSwapTokenGet is possible, but ratio after virtual swap is incorrect") | |
535 | - | else if (if (( | |
534 | + | else if (if ((cG > cA)) | |
536 | 535 | then true | |
537 | - | else ( | |
538 | - | then | |
536 | + | else (cG > cB)) | |
537 | + | then bm(cG, cA, cB) | |
539 | 538 | else { | |
540 | - | let | |
541 | - | then invoke(this, "stakeUnstake", [true, | |
539 | + | let bU = if (containsElement(H, cm)) | |
540 | + | then invoke(this, "stakeUnstake", [true, cj, cm], nil) | |
542 | 541 | else 0 | |
543 | - | if (( | |
542 | + | if ((bU == bU)) | |
544 | 543 | then { | |
544 | + | let bW = fraction(cw, ac, cy) | |
545 | 545 | let bX = fraction(cx, ac, cz) | |
546 | - | let bY = fraction(cy, ac, cA) | |
547 | - | let cg = fraction(min([bX, bY]), W, ac) | |
548 | - | [Reissue(V, cg, true), ScriptTransfer(as.caller, cg, V), IntegerEntry(i, (W + cg)), cD, IntegerEntry(l, bU)] | |
546 | + | let cf = fraction(min([bW, bX]), W, ac) | |
547 | + | [Reissue(V, cf, true), ScriptTransfer(as.caller, cf, V), IntegerEntry(i, (W + cf)), cC, IntegerEntry(l, bT)] | |
549 | 548 | } | |
550 | 549 | else throw("Strict value is not equal to itself.") | |
551 | 550 | } | |
555 | 554 | ||
556 | 555 | ||
557 | 556 | @Callable(as) | |
558 | - | func withdraw () = valueOrElse( | |
559 | - | let | |
560 | - | let | |
561 | - | let | |
562 | - | let | |
563 | - | let | |
564 | - | let | |
557 | + | func withdraw () = valueOrElse(bi(), { | |
558 | + | let cH = $Tuple2(as.payments[0].amount, as.payments[0].assetId) | |
559 | + | let cj = cH._1 | |
560 | + | let ck = cH._2 | |
561 | + | let cI = fraction(cj, T, W) | |
562 | + | let cJ = fraction(cj, U, W) | |
563 | + | let bT = aD((T - cI), (U - cJ)) | |
565 | 564 | if ((size(as.payments) != 1)) | |
566 | - | then | |
567 | - | else if (( | |
565 | + | then bl() | |
566 | + | else if ((ck != V)) | |
568 | 567 | then throw(("Incorrect asset attached. Expected: " + toBase58String(V))) | |
569 | 568 | else if (!(az)) | |
570 | - | then ([ScriptTransfer(as.caller, | |
569 | + | then ([ScriptTransfer(as.caller, cj, ck)] ++ bq()) | |
571 | 570 | else { | |
572 | - | let | |
573 | - | then invoke(this, "stakeUnstake", [false, | |
571 | + | let bU = if (containsElement(H, L)) | |
572 | + | then invoke(this, "stakeUnstake", [false, cI, L], nil) | |
574 | 573 | else 0 | |
575 | - | if (( | |
574 | + | if ((bU == bU)) | |
576 | 575 | then { | |
577 | - | let | |
578 | - | then invoke(this, "stakeUnstake", [false, | |
576 | + | let bV = if (containsElement(H, M)) | |
577 | + | then invoke(this, "stakeUnstake", [false, cJ, M], nil) | |
579 | 578 | else 0 | |
580 | - | if (( | |
581 | - | then [IntegerEntry(f, (T - | |
579 | + | if ((bV == bV)) | |
580 | + | then [IntegerEntry(f, (T - cI)), IntegerEntry(g, (U - cJ)), IntegerEntry(i, (W - cj)), IntegerEntry(l, bT), Burn(V, cj), ScriptTransfer(as.caller, cI, N), ScriptTransfer(as.caller, cJ, O)] | |
582 | 581 | else throw("Strict value is not equal to itself.") | |
583 | 582 | } | |
584 | 583 | else throw("Strict value is not equal to itself.") | |
588 | 587 | ||
589 | 588 | ||
590 | 589 | @Callable(as) | |
591 | - | func exchange (cL | |
592 | - | let | |
593 | - | let | |
594 | - | let | |
595 | - | if ((0 >= | |
596 | - | then throw(("Estimated amount must be positive. Actual: " + toString( | |
597 | - | else if (( | |
598 | - | then throw(((("Minimal amount can't be greater than estimated. Estimated: " + toString( | |
590 | + | func exchange (cK,cL) = valueOrElse(bi(), { | |
591 | + | let cM = $Tuple2(as.payments[0].amount, as.payments[0].assetId) | |
592 | + | let cj = cM._1 | |
593 | + | let ck = cM._2 | |
594 | + | if ((0 >= cK)) | |
595 | + | then throw(("Estimated amount must be positive. Actual: " + toString(cK))) | |
596 | + | else if ((cL > cK)) | |
597 | + | then throw(((("Minimal amount can't be greater than estimated. Estimated: " + toString(cK)) + ". Minimal: ") + toString(cL))) | |
599 | 598 | else if ((size(as.payments) != 1)) | |
600 | - | then | |
599 | + | then bl() | |
601 | 600 | else if (!(az)) | |
602 | - | then ([ScriptTransfer(as.caller, | |
603 | - | else if (if (( | |
604 | - | then ( | |
601 | + | then ([ScriptTransfer(as.caller, cj, ck)] ++ bq()) | |
602 | + | else if (if ((ck != N)) | |
603 | + | then (ck != O) | |
605 | 604 | else false) | |
606 | - | then | |
607 | - | else if ((10000000 > | |
605 | + | then bk() | |
606 | + | else if ((10000000 > cj)) | |
608 | 607 | then throw("Only swap of 10.000000 or more tokens is allowed") | |
609 | - | else if (if ((ai > fraction(ac, | |
608 | + | else if (if ((ai > fraction(ac, cL, cj))) | |
610 | 609 | then true | |
611 | - | else (fraction(ac, | |
610 | + | else (fraction(ac, cK, cj) > aj)) | |
612 | 611 | then throw("Incorrect args and pmt ratio") | |
613 | 612 | else { | |
614 | - | let | |
613 | + | let cN = if ((ck == N)) | |
615 | 614 | then O | |
616 | 615 | else N | |
617 | - | let cP = aF(cL, cM, ck, cl) | |
618 | - | let bv = cP._1 | |
619 | - | let cQ = cP._2 | |
620 | - | let cR = fraction(bv, Z, aa) | |
621 | - | let cS = fraction(bv, (aa - Y), aa) | |
622 | - | let cT = if ((cl == N)) | |
623 | - | then $Tuple2((T + ck), ((U - cS) - cR)) | |
624 | - | else $Tuple2(((T - cS) - cR), (U + ck)) | |
625 | - | let cB = cT._1 | |
626 | - | let cC = cT._2 | |
627 | - | let cH = fraction((cB + cC), ag, (2 * ah)) | |
628 | - | if (if ((cH > cB)) | |
616 | + | let bu = aF(cK, cL, cj, ck) | |
617 | + | let cO = fraction(bu, Z, aa) | |
618 | + | let cP = fraction(bu, (aa - Y), aa) | |
619 | + | let cQ = if ((ck == N)) | |
620 | + | then $Tuple2((T + cj), ((U - cP) - cO)) | |
621 | + | else $Tuple2(((T - cP) - cO), (U + cj)) | |
622 | + | let cA = cQ._1 | |
623 | + | let cB = cQ._2 | |
624 | + | let cG = fraction((cA + cB), ag, (2 * ah)) | |
625 | + | if (if ((cG > cA)) | |
629 | 626 | then true | |
630 | - | else ( | |
631 | - | then | |
627 | + | else (cG > cB)) | |
628 | + | then bm(cG, cA, cB) | |
632 | 629 | else { | |
633 | - | let | |
634 | - | let | |
635 | - | let | |
636 | - | let | |
637 | - | let | |
638 | - | let | |
639 | - | let | |
640 | - | let | |
641 | - | let | |
642 | - | then invoke(this, "stakeUnstake", [true, | |
630 | + | let cR = bc(ck) | |
631 | + | let cm = cR._1 | |
632 | + | let cn = cR._2 | |
633 | + | let co = cR._3 | |
634 | + | let cS = bc(cN) | |
635 | + | let cT = cS._1 | |
636 | + | let cU = cS._2 | |
637 | + | let cV = cS._3 | |
638 | + | let bU = if (containsElement(H, cm)) | |
639 | + | then invoke(this, "stakeUnstake", [true, cj, cm], nil) | |
643 | 640 | else 0 | |
644 | - | if (( | |
641 | + | if ((bU == bU)) | |
645 | 642 | then { | |
646 | - | let | |
647 | - | then invoke(this, "stakeUnstake", [false, ( | |
643 | + | let bV = if (containsElement(H, cT)) | |
644 | + | then invoke(this, "stakeUnstake", [false, (cP + cO), cT], nil) | |
648 | 645 | else 0 | |
649 | - | if (( | |
650 | - | then [IntegerEntry(f, | |
646 | + | if ((bV == bV)) | |
647 | + | then [IntegerEntry(f, cA), IntegerEntry(g, cB), IntegerEntry(l, aD(cA, cB)), ScriptTransfer(as.caller, cP, cN), ScriptTransfer(E, cO, cN)] | |
651 | 648 | else throw("Strict value is not equal to itself.") | |
652 | 649 | } | |
653 | 650 | else throw("Strict value is not equal to itself.") | |
658 | 655 | ||
659 | 656 | ||
660 | 657 | @Callable(as) | |
661 | - | func shutdown () = valueOrElse( | |
658 | + | func shutdown () = valueOrElse(bj(as), if (!(K)) | |
662 | 659 | then throw(("DApp is already suspended. Cause: " + valueOrElse(getString(this, m), "the cause wasn't specified"))) | |
663 | - | else | |
660 | + | else bf("Paused by admin")) | |
664 | 661 | ||
665 | 662 | ||
666 | 663 | ||
667 | 664 | @Callable(as) | |
668 | - | func activate () = valueOrElse( | |
669 | - | then | |
665 | + | func activate () = valueOrElse(bj(as), if (K) | |
666 | + | then bh() | |
670 | 667 | else [BooleanEntry(c, true), DeleteEntry(m)]) | |
671 | 668 | ||
672 | 669 | ||
673 | 670 | ||
674 | 671 | @Callable(as) | |
675 | - | func takeIntoAccountExtraFunds () = valueOrElse( | |
676 | - | let | |
677 | - | let | |
678 | - | let | |
672 | + | func takeIntoAccountExtraFunds () = valueOrElse(bi(), { | |
673 | + | let cW = (ax - T) | |
674 | + | let cX = (ay - U) | |
675 | + | let cD = aD((T + cW), (U + cX)) | |
679 | 676 | if ((as.caller != E)) | |
680 | 677 | then throw("Only the wallet can call this function") | |
681 | - | else if (if ((0 > | |
678 | + | else if (if ((0 > cW)) | |
682 | 679 | then true | |
683 | - | else (0 > | |
684 | - | then | |
685 | - | else if (if (( | |
686 | - | then ( | |
680 | + | else (0 > cX)) | |
681 | + | then bf("Enroll amount negative") | |
682 | + | else if (if ((cW == 0)) | |
683 | + | then (cX == 0) | |
687 | 684 | else false) | |
688 | 685 | then throw("No money to take") | |
689 | 686 | else { | |
690 | - | let | |
691 | - | then ( | |
687 | + | let bU = if (if (containsElement(H, L)) | |
688 | + | then (cW > 0) | |
692 | 689 | else false) | |
693 | - | then invoke(this, "stakeUnstake", [true, | |
690 | + | then invoke(this, "stakeUnstake", [true, cW, L], nil) | |
694 | 691 | else 0 | |
695 | - | if (( | |
692 | + | if ((bU == bU)) | |
696 | 693 | then { | |
697 | - | let | |
698 | - | then ( | |
694 | + | let bV = if (if (containsElement(H, M)) | |
695 | + | then (cX > 0) | |
699 | 696 | else false) | |
700 | - | then invoke(this, "stakeUnstake", [true, | |
697 | + | then invoke(this, "stakeUnstake", [true, cX, M], nil) | |
701 | 698 | else 0 | |
702 | - | if (( | |
703 | - | then [IntegerEntry(l, | |
699 | + | if ((bV == bV)) | |
700 | + | then [IntegerEntry(l, cD), IntegerEntry(f, (T + cW)), IntegerEntry(g, (U + cX)), IntegerEntry(("last_income_" + L), cW), IntegerEntry(("last_income_" + M), cX)] | |
704 | 701 | else throw("Strict value is not equal to itself.") | |
705 | 702 | } | |
706 | 703 | else throw("Strict value is not equal to itself.") | |
710 | 707 | ||
711 | 708 | ||
712 | 709 | @Callable(as) | |
713 | - | func writeBigIntInvariant () = valueOrElse( | |
714 | - | let | |
715 | - | [IntegerEntry(l, | |
710 | + | func writeBigIntInvariant () = valueOrElse(bj(as), { | |
711 | + | let cD = aD(T, U) | |
712 | + | [IntegerEntry(l, cD)] | |
716 | 713 | }) | |
717 | 714 | ||
718 | 715 | ||
719 | 716 | ||
720 | 717 | @Callable(as) | |
721 | - | func stakeUnstake ( | |
718 | + | func stakeUnstake (bs,bu,cY) = if ((as.caller != this)) | |
722 | 719 | then throw("Only contract itself can invoke this function") | |
723 | 720 | else { | |
724 | - | let | |
725 | - | let | |
726 | - | let | |
727 | - | let | |
728 | - | let | |
729 | - | let | |
730 | - | if (( | |
721 | + | let cZ = bt(bs, bu, fromBase58String(cY)) | |
722 | + | let bw = cZ._1 | |
723 | + | let da = cZ._2 | |
724 | + | let db = cZ._3 | |
725 | + | let dc = cZ._4 | |
726 | + | let dd = invoke(da, bw, db, dc) | |
727 | + | if ((dd == dd)) | |
731 | 728 | then nil | |
732 | 729 | else throw("Strict value is not equal to itself.") | |
733 | 730 | } | |
734 | 731 | ||
735 | 732 | ||
736 | - | @Verifier( | |
737 | - | func | |
738 | - | let | |
739 | - | let | |
733 | + | @Verifier(de) | |
734 | + | func df () = { | |
735 | + | let dg = { | |
736 | + | let dh = if (sigVerify(de.bodyBytes, de.proofs[0], z)) | |
740 | 737 | then 1 | |
741 | 738 | else 0 | |
742 | - | let | |
739 | + | let di = if (sigVerify(de.bodyBytes, de.proofs[1], A)) | |
743 | 740 | then 1 | |
744 | 741 | else 0 | |
745 | - | let | |
742 | + | let dj = if (sigVerify(de.bodyBytes, de.proofs[2], B)) | |
746 | 743 | then 1 | |
747 | 744 | else 0 | |
748 | - | ((( | |
745 | + | (((dh + di) + dj) >= 2) | |
749 | 746 | } | |
750 | - | let w = | |
747 | + | let w = de | |
751 | 748 | if ($isInstanceOf(w, "InvokeScriptTransaction")) | |
752 | 749 | then { | |
753 | - | let | |
754 | - | let | |
755 | - | then ( | |
750 | + | let dd = w | |
751 | + | let dk = if ((dd.dApp == this)) | |
752 | + | then (dd.function == "takeIntoAccountExtraFunds") | |
756 | 753 | else false | |
757 | - | let | |
754 | + | let dl = if (if (if (sigVerify(de.bodyBytes, de.proofs[0], z)) | |
758 | 755 | then true | |
759 | - | else sigVerify( | |
756 | + | else sigVerify(de.bodyBytes, de.proofs[0], A)) | |
760 | 757 | then true | |
761 | - | else sigVerify( | |
758 | + | else sigVerify(de.bodyBytes, de.proofs[0], B)) | |
762 | 759 | then true | |
763 | - | else sigVerify( | |
764 | - | if (if ( | |
765 | - | then | |
760 | + | else sigVerify(de.bodyBytes, de.proofs[0], D) | |
761 | + | if (if (dk) | |
762 | + | then dl | |
766 | 763 | else false) | |
767 | 764 | then true | |
768 | - | else | |
765 | + | else dg | |
769 | 766 | } | |
770 | - | else | |
767 | + | else dg | |
771 | 768 | } | |
772 | 769 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = "2.0.0" | |
5 | 5 | ||
6 | 6 | let b = "version" | |
7 | 7 | ||
8 | 8 | let c = "active" | |
9 | 9 | ||
10 | 10 | let d = "A_asset_id" | |
11 | 11 | ||
12 | 12 | let e = "B_asset_id" | |
13 | 13 | ||
14 | 14 | let f = "A_asset_balance" | |
15 | 15 | ||
16 | 16 | let g = "B_asset_balance" | |
17 | 17 | ||
18 | 18 | let h = "share_asset_id" | |
19 | 19 | ||
20 | 20 | let i = "share_asset_supply" | |
21 | 21 | ||
22 | 22 | let j = "commission" | |
23 | 23 | ||
24 | 24 | let k = "commission_scale_delimiter" | |
25 | 25 | ||
26 | 26 | let l = "invariant" | |
27 | 27 | ||
28 | 28 | let m = "shutdown_cause" | |
29 | 29 | ||
30 | 30 | let n = "staking_usdnnsbt_address" | |
31 | 31 | ||
32 | 32 | let o = "staking_eurn_address" | |
33 | 33 | ||
34 | 34 | let p = "admin_pub_1" | |
35 | 35 | ||
36 | 36 | let q = "admin_pub_2" | |
37 | 37 | ||
38 | 38 | let r = "admin_pub_3" | |
39 | 39 | ||
40 | 40 | let s = Address(base58'3N77kfPbQyjXWpDALX3xjKw3iEGMWEctV37') | |
41 | 41 | ||
42 | 42 | let t = Address(base58'3NBBWfzZtZtszaXbitTKnrB2xXwv26Bn7H9') | |
43 | 43 | ||
44 | 44 | func u (v) = { | |
45 | 45 | let w = getString(t, v) | |
46 | 46 | if ($isInstanceOf(w, "String")) | |
47 | 47 | then { | |
48 | 48 | let x = w | |
49 | 49 | fromBase58String(x) | |
50 | 50 | } | |
51 | 51 | else { | |
52 | 52 | let y = w | |
53 | 53 | throw("Admin public key is empty") | |
54 | 54 | } | |
55 | 55 | } | |
56 | 56 | ||
57 | 57 | ||
58 | 58 | let z = u(p) | |
59 | 59 | ||
60 | 60 | let A = u(q) | |
61 | 61 | ||
62 | 62 | let B = u(r) | |
63 | 63 | ||
64 | 64 | let C = base58'Kn7NpzaG12dLZgcHf2ipUftU6hbJygmrhFqQYE4B7ZK' | |
65 | 65 | ||
66 | 66 | let D = base58'Kn7NpzaG12dLZgcHf2ipUftU6hbJygmrhFqQYE4B7ZK' | |
67 | 67 | ||
68 | 68 | let E = Address(base58'3NAGTtZz6WpupSN89NZD5rMZwwziZEg4Kx4') | |
69 | 69 | ||
70 | 70 | let F = base58'8UrfDVd5GreeUwm7uPk7eYz1eMv376kzR52C6sANPkwS' | |
71 | 71 | ||
72 | 72 | let G = base58'ECBCkHS68DckpBrzLeoRgYbFg7sCVqR176mPqbXsj9pA' | |
73 | 73 | ||
74 | 74 | let H = [toBase58String(F), toBase58String(G)] | |
75 | 75 | ||
76 | 76 | let I = Address(fromBase58String(valueOrErrorMessage(getString(t, n), "no usdn staking address"))) | |
77 | 77 | ||
78 | 78 | let J = Address(fromBase58String(valueOrErrorMessage(getString(t, o), "no usdn staking address"))) | |
79 | 79 | ||
80 | 80 | let K = getBooleanValue(this, c) | |
81 | 81 | ||
82 | 82 | let L = getStringValue(this, d) | |
83 | 83 | ||
84 | 84 | let M = getStringValue(this, e) | |
85 | 85 | ||
86 | 86 | let N = if ((L == "WAVES")) | |
87 | 87 | then unit | |
88 | 88 | else fromBase58String(L) | |
89 | 89 | ||
90 | 90 | let O = if ((M == "WAVES")) | |
91 | 91 | then unit | |
92 | 92 | else fromBase58String(M) | |
93 | 93 | ||
94 | 94 | let P = { | |
95 | 95 | let w = N | |
96 | 96 | if ($isInstanceOf(w, "ByteVector")) | |
97 | 97 | then { | |
98 | 98 | let Q = w | |
99 | 99 | value(assetInfo(Q)).name | |
100 | 100 | } | |
101 | 101 | else if ($isInstanceOf(w, "Unit")) | |
102 | 102 | then { | |
103 | 103 | let R = w | |
104 | 104 | "WAVES" | |
105 | 105 | } | |
106 | 106 | else throw("Match error") | |
107 | 107 | } | |
108 | 108 | ||
109 | 109 | let S = { | |
110 | 110 | let w = O | |
111 | 111 | if ($isInstanceOf(w, "ByteVector")) | |
112 | 112 | then { | |
113 | 113 | let Q = w | |
114 | 114 | value(assetInfo(Q)).name | |
115 | 115 | } | |
116 | 116 | else if ($isInstanceOf(w, "Unit")) | |
117 | 117 | then { | |
118 | 118 | let R = w | |
119 | 119 | "WAVES" | |
120 | 120 | } | |
121 | 121 | else throw("Match error") | |
122 | 122 | } | |
123 | 123 | ||
124 | 124 | let T = getIntegerValue(this, f) | |
125 | 125 | ||
126 | 126 | let U = getIntegerValue(this, g) | |
127 | 127 | ||
128 | 128 | let V = fromBase58String(getStringValue(this, h)) | |
129 | 129 | ||
130 | 130 | let W = getIntegerValue(this, i) | |
131 | 131 | ||
132 | 132 | let X = getIntegerValue(this, l) | |
133 | 133 | ||
134 | 134 | let Y = 500 | |
135 | 135 | ||
136 | 136 | let Z = 200 | |
137 | 137 | ||
138 | 138 | let aa = 1000000 | |
139 | 139 | ||
140 | 140 | let ab = 1000 | |
141 | 141 | ||
142 | 142 | let ac = 100000000 | |
143 | 143 | ||
144 | 144 | let ad = 10000000000000000 | |
145 | 145 | ||
146 | 146 | let ae = 1000 | |
147 | 147 | ||
148 | 148 | let af = 8 | |
149 | 149 | ||
150 | 150 | let ag = 50 | |
151 | 151 | ||
152 | 152 | let ah = 100 | |
153 | 153 | ||
154 | 154 | let ai = 90000000 | |
155 | 155 | ||
156 | 156 | let aj = 110000000 | |
157 | 157 | ||
158 | 158 | let ak = 50 | |
159 | 159 | ||
160 | 160 | let al = 2 | |
161 | 161 | ||
162 | 162 | let am = 4600000000000000 | |
163 | 163 | ||
164 | 164 | func an (ao) = { | |
165 | 165 | let w = ao | |
166 | 166 | if ($isInstanceOf(w, "ByteVector")) | |
167 | 167 | then { | |
168 | 168 | let Q = w | |
169 | 169 | assetBalance(this, Q) | |
170 | 170 | } | |
171 | 171 | else if ($isInstanceOf(w, "Unit")) | |
172 | 172 | then { | |
173 | 173 | let R = w | |
174 | 174 | wavesBalance(this).available | |
175 | 175 | } | |
176 | 176 | else throw("Match error") | |
177 | 177 | } | |
178 | 178 | ||
179 | 179 | ||
180 | 180 | func ap (ao) = { | |
181 | 181 | let aq = { | |
182 | 182 | let w = ao | |
183 | 183 | if ($isInstanceOf(w, "ByteVector")) | |
184 | 184 | then { | |
185 | 185 | let ar = w | |
186 | 186 | if ((ar == F)) | |
187 | 187 | then getInteger(I, ((("rpd_balance_" + toBase58String(ar)) + "_") + toString(this))) | |
188 | 188 | else if ((ar == G)) | |
189 | 189 | then getInteger(J, ((("%s%s%s__stakingBalance__" + toBase58String(ar)) + "__") + toString(this))) | |
190 | 190 | else 0 | |
191 | 191 | } | |
192 | 192 | else if ($isInstanceOf(w, "Unit")) | |
193 | 193 | then 0 | |
194 | 194 | else throw("Match error") | |
195 | 195 | } | |
196 | 196 | let w = aq | |
197 | 197 | if ($isInstanceOf(w, "Int")) | |
198 | 198 | then { | |
199 | 199 | let as = w | |
200 | 200 | as | |
201 | 201 | } | |
202 | 202 | else 0 | |
203 | 203 | } | |
204 | 204 | ||
205 | 205 | ||
206 | 206 | let at = ap(N) | |
207 | 207 | ||
208 | 208 | let au = ap(O) | |
209 | 209 | ||
210 | 210 | let av = (T - at) | |
211 | 211 | ||
212 | 212 | let aw = (U - au) | |
213 | 213 | ||
214 | 214 | let ax = (an(N) + at) | |
215 | 215 | ||
216 | 216 | let ay = (an(O) + au) | |
217 | 217 | ||
218 | 218 | let az = if ((ax >= T)) | |
219 | 219 | then (ay >= U) | |
220 | 220 | else false | |
221 | 221 | ||
222 | 222 | func aA (aB,aC) = ((fraction(ad, aB, aC) + fraction(ad, aC, aB)) / 2) | |
223 | 223 | ||
224 | 224 | ||
225 | 225 | func aD (aB,aC) = { | |
226 | 226 | let aE = aA(aB, aC) | |
227 | 227 | (fraction((aB + aC), ad, pow(aE, af, ak, al, af, CEILING)) + (2 * fraction(toInt(pow(fraction(toBigInt(aB), toBigInt(aC), toBigInt(ac)), 0, toBigInt(5), 1, (af / 2), DOWN)), pow((aE - am), af, ak, al, af, DOWN), ac))) | |
228 | 228 | } | |
229 | 229 | ||
230 | 230 | ||
231 | 231 | func aF (aG,aH,aI,aJ) = { | |
232 | 232 | let aK = (ac - ((ac * 1) / 10000000)) | |
233 | 233 | let aL = (aG - aH) | |
234 | 234 | let aB = (T + aI) | |
235 | 235 | let aC = (U + aI) | |
236 | 236 | func aM (aN,aO) = if ((aN._1 == -1)) | |
237 | 237 | then { | |
238 | 238 | let aP = (aG - (((aO * aL) / 3) / ab)) | |
239 | 239 | let aQ = if ((aJ == N)) | |
240 | 240 | then aD(aB, (U - aP)) | |
241 | 241 | else aD((T - aP), aC) | |
242 | 242 | if ((aQ > X)) | |
243 | 243 | then $Tuple2(aP, aQ) | |
244 | 244 | else $Tuple2(-1, 0) | |
245 | 245 | } | |
246 | 246 | else aN | |
247 | 247 | ||
248 | 248 | let aR = aM($Tuple2(-1, 0), 3000) | |
249 | 249 | if ((0 > aR._1)) | |
250 | 250 | then throw("Price is worse than minReceived") | |
251 | 251 | else { | |
252 | 252 | let aS = if ((aJ == N)) | |
253 | 253 | then aD(aB, (U - aG)) | |
254 | 254 | else if ((aJ == O)) | |
255 | 255 | then aD((T - aG), aC) | |
256 | 256 | else throw("Wrong asset in payment") | |
257 | - | | |
257 | + | if ((X > aS)) | |
258 | 258 | then if ((aK >= fraction(ac, X, aS))) | |
259 | - | then throw(" | |
259 | + | then throw("The requested price is too not profitable for user") | |
260 | 260 | else { | |
261 | - | let | |
262 | - | let | |
263 | - | let | |
264 | - | let | |
265 | - | func | |
266 | - | then | |
267 | - | else aM( | |
261 | + | let aT = { | |
262 | + | let aU = [25, 200, 500] | |
263 | + | let aV = size(aU) | |
264 | + | let aW = $Tuple2(-1, 0) | |
265 | + | func aX (aY,aZ) = if ((aZ >= aV)) | |
266 | + | then aY | |
267 | + | else aM(aY, aU[aZ]) | |
268 | 268 | ||
269 | - | func | |
270 | - | then | |
269 | + | func ba (aY,aZ) = if ((aZ >= aV)) | |
270 | + | then aY | |
271 | 271 | else throw("List size exceeds 3") | |
272 | 272 | ||
273 | - | | |
273 | + | ba(aX(aX(aX(aW, 0), 1), 2), 3) | |
274 | 274 | } | |
275 | - | if ((0 > | |
276 | - | then aR | |
277 | - | else | |
275 | + | if ((0 > aT._1)) | |
276 | + | then aR._1 | |
277 | + | else aT._1 | |
278 | 278 | } | |
279 | 279 | else { | |
280 | - | let | |
281 | - | let | |
282 | - | let | |
283 | - | let | |
284 | - | func | |
285 | - | then | |
286 | - | else aM( | |
280 | + | let aT = { | |
281 | + | let aU = [-500, -200, -25] | |
282 | + | let aV = size(aU) | |
283 | + | let aW = $Tuple2(-1, 0) | |
284 | + | func aX (aY,aZ) = if ((aZ >= aV)) | |
285 | + | then aY | |
286 | + | else aM(aY, aU[aZ]) | |
287 | 287 | ||
288 | - | func | |
289 | - | then | |
288 | + | func ba (aY,aZ) = if ((aZ >= aV)) | |
289 | + | then aY | |
290 | 290 | else throw("List size exceeds 3") | |
291 | 291 | ||
292 | - | | |
292 | + | ba(aX(aX(aX(aW, 0), 1), 2), 3) | |
293 | 293 | } | |
294 | - | let | |
294 | + | let bb = if ((0 > aT._1)) | |
295 | 295 | then $Tuple2(aG, aS) | |
296 | - | else | |
297 | - | if ((aK >= fraction(ac, X, | |
298 | - | then throw(" | |
299 | - | else | |
296 | + | else aT | |
297 | + | if ((aK >= fraction(ac, X, bb._2))) | |
298 | + | then throw("The requested price is too not profitable for user") | |
299 | + | else bb._1 | |
300 | 300 | } | |
301 | - | aT | |
302 | 301 | } | |
303 | 302 | } | |
304 | 303 | ||
305 | 304 | ||
306 | - | func | |
305 | + | func bc (ao) = { | |
307 | 306 | let w = ao | |
308 | 307 | if ($isInstanceOf(w, "ByteVector")) | |
309 | 308 | then { | |
310 | 309 | let Q = w | |
311 | - | let | |
312 | - | let | |
313 | - | $Tuple3( | |
310 | + | let bd = toBase58String(Q) | |
311 | + | let be = valueOrErrorMessage(assetInfo(Q), (("Asset " + bd) + " doesn't exist")) | |
312 | + | $Tuple3(bd, be.name, be.decimals) | |
314 | 313 | } | |
315 | 314 | else if ($isInstanceOf(w, "Unit")) | |
316 | 315 | then { | |
317 | 316 | let R = w | |
318 | 317 | $Tuple3("WAVES", "WAVES", 8) | |
319 | 318 | } | |
320 | 319 | else throw("Match error") | |
321 | 320 | } | |
322 | 321 | ||
323 | 322 | ||
324 | - | func | |
323 | + | func bf (bg) = [BooleanEntry(c, false), StringEntry(m, bg)] | |
325 | 324 | ||
326 | 325 | ||
327 | - | func | |
326 | + | func bh () = throw("DApp is already active") | |
328 | 327 | ||
329 | 328 | ||
330 | - | func | |
329 | + | func bi () = if (K) | |
331 | 330 | then unit | |
332 | 331 | else throw("DApp is inactive at this moment") | |
333 | 332 | ||
334 | 333 | ||
335 | - | func | |
334 | + | func bj (as) = if (containsElement([z, A, B], as.callerPublicKey)) | |
336 | 335 | then unit | |
337 | 336 | else throw("Only admin can call this function") | |
338 | 337 | ||
339 | 338 | ||
340 | - | func | |
339 | + | func bk () = throw(((("Incorrect assets attached. Expected: " + L) + " and ") + M)) | |
341 | 340 | ||
342 | 341 | ||
343 | - | func | |
342 | + | func bl () = throw("One attached payment expected") | |
344 | 343 | ||
345 | 344 | ||
346 | - | func | |
345 | + | func bm (bn,bo,bp) = throw(((((((((("New balance in assets of the DApp is less than threshold " + toString(bn)) + ": ") + toString(bo)) + " ") + P) + ", ") + toString(bp)) + " ") + S)) | |
347 | 346 | ||
348 | 347 | ||
349 | - | func | |
348 | + | func bq () = bf(((((((((((((((("Suspicious state. Actual balances: " + toString(T)) + " ") + P) + ", ") + toString(U)) + " ") + S) + ". State: ") + toString(an(N))) + " ") + P) + ", ") + toString(an(O))) + " ") + S)) | |
350 | 349 | ||
351 | 350 | ||
352 | - | func | |
351 | + | func br (bs,ao) = if (bs) | |
353 | 352 | then if ((ao == F)) | |
354 | 353 | then $Tuple2("lockNeutrino", I) | |
355 | 354 | else $Tuple2("startStaking", J) | |
356 | 355 | else if ((ao == F)) | |
357 | 356 | then $Tuple2("unlockNeutrino", I) | |
358 | 357 | else $Tuple2("stopStaking", J) | |
359 | 358 | ||
360 | 359 | ||
361 | - | func | |
360 | + | func bt (bs,bu,ao) = if (bs) | |
362 | 361 | then { | |
363 | - | let | |
364 | - | let | |
365 | - | let | |
366 | - | $Tuple4( | |
362 | + | let bv = br(bs, ao) | |
363 | + | let bw = bv._1 | |
364 | + | let bx = bv._2 | |
365 | + | $Tuple4(bw, bx, nil, [AttachedPayment(ao, bu)]) | |
367 | 366 | } | |
368 | 367 | else { | |
369 | - | let | |
370 | - | let | |
371 | - | let | |
372 | - | $Tuple4(bx, | |
368 | + | let by = br(bs, ao) | |
369 | + | let bw = by._1 | |
370 | + | let bx = by._2 | |
371 | + | $Tuple4(bw, bx, [bu, toBase58String(ao)], nil) | |
373 | 372 | } | |
374 | 373 | ||
375 | 374 | ||
376 | 375 | @Callable(as) | |
377 | 376 | func init () = { | |
378 | - | let | |
379 | - | let | |
380 | - | let | |
381 | - | let | |
382 | - | let | |
383 | - | let | |
384 | - | let | |
385 | - | let | |
386 | - | let | |
387 | - | let | |
388 | - | let | |
389 | - | let | |
390 | - | let | |
391 | - | let | |
377 | + | let bz = $Tuple2(as.payments[0].amount, as.payments[0].assetId) | |
378 | + | let bA = bz._1 | |
379 | + | let bB = bz._2 | |
380 | + | let bC = $Tuple2(as.payments[1].amount, as.payments[1].assetId) | |
381 | + | let bD = bC._1 | |
382 | + | let bE = bC._2 | |
383 | + | let bF = bc(bB) | |
384 | + | let bG = bF._1 | |
385 | + | let bH = bF._2 | |
386 | + | let bI = bF._3 | |
387 | + | let bJ = bc(bE) | |
388 | + | let bK = bJ._1 | |
389 | + | let bL = bJ._2 | |
390 | + | let bM = bJ._3 | |
392 | 391 | if (isDefined(getBoolean(this, c))) | |
393 | - | then | |
394 | - | else if (( | |
392 | + | then bh() | |
393 | + | else if ((bB == bE)) | |
395 | 394 | then throw("Assets must be different") | |
396 | 395 | else { | |
397 | - | let | |
398 | - | let | |
399 | - | let | |
400 | - | let | |
401 | - | let | |
402 | - | let | |
403 | - | let | |
404 | - | let | |
405 | - | then invoke(this, "stakeUnstake", [true, | |
396 | + | let bN = ((("s" + take(bH, 7)) + "_") + take(bL, 7)) | |
397 | + | let bO = ((((("ShareToken of SwopFi protocol for " + bH) + " and ") + bL) + " at address ") + toString(this)) | |
398 | + | let bP = ((bI + bM) / 2) | |
399 | + | let bQ = fraction(pow(bA, bI, 5, 1, bI, DOWN), pow(bD, bM, 5, 1, bM, DOWN), pow(10, 0, bP, 0, 0, DOWN)) | |
400 | + | let bR = Issue(bN, bO, bQ, bP, true) | |
401 | + | let bS = calculateAssetId(bR) | |
402 | + | let bT = aD(bA, bD) | |
403 | + | let bU = if (containsElement(H, bG)) | |
404 | + | then invoke(this, "stakeUnstake", [true, bA, bG], nil) | |
406 | 405 | else 0 | |
407 | - | if (( | |
406 | + | if ((bU == bU)) | |
408 | 407 | then { | |
409 | - | let | |
410 | - | then invoke(this, "stakeUnstake", [true, | |
408 | + | let bV = if (containsElement(H, bK)) | |
409 | + | then invoke(this, "stakeUnstake", [true, bD, bK], nil) | |
411 | 410 | else 0 | |
412 | - | if (( | |
413 | - | then [StringEntry(b, a), BooleanEntry(c, true), StringEntry(d, | |
411 | + | if ((bV == bV)) | |
412 | + | then [StringEntry(b, a), BooleanEntry(c, true), StringEntry(d, bG), StringEntry(e, bK), IntegerEntry(f, bA), IntegerEntry(g, bD), IntegerEntry(l, bT), IntegerEntry(j, Y), IntegerEntry(k, aa), bR, StringEntry(h, toBase58String(bS)), IntegerEntry(i, bQ), ScriptTransfer(as.caller, bQ, bS)] | |
414 | 413 | else throw("Strict value is not equal to itself.") | |
415 | 414 | } | |
416 | 415 | else throw("Strict value is not equal to itself.") | |
417 | 416 | } | |
418 | 417 | } | |
419 | 418 | ||
420 | 419 | ||
421 | 420 | ||
422 | 421 | @Callable(as) | |
423 | - | func replenishWithTwoTokens () = valueOrElse( | |
424 | - | let | |
425 | - | let | |
426 | - | let | |
427 | - | let | |
428 | - | let | |
429 | - | let | |
430 | - | let | |
431 | - | let | |
432 | - | let | |
433 | - | let | |
434 | - | let | |
435 | - | let | |
436 | - | let | |
422 | + | func replenishWithTwoTokens () = valueOrElse(bi(), { | |
423 | + | let bB = as.payments[0].assetId | |
424 | + | let bE = as.payments[1].assetId | |
425 | + | let bW = fraction(ac, as.payments[0].amount, T) | |
426 | + | let bX = fraction(ac, as.payments[1].amount, U) | |
427 | + | let bY = bc(bB) | |
428 | + | let bG = bY._1 | |
429 | + | let bH = bY._2 | |
430 | + | let bI = bY._3 | |
431 | + | let bZ = bc(bE) | |
432 | + | let bK = bZ._1 | |
433 | + | let bL = bZ._2 | |
434 | + | let bM = bZ._3 | |
435 | + | let ca = if ((bX > bW)) | |
437 | 436 | then { | |
438 | - | let | |
439 | - | $Tuple5(as.payments[0].amount, | |
437 | + | let cb = fraction(U, bW, ac, CEILING) | |
438 | + | $Tuple5(as.payments[0].amount, cb, (as.payments[1].amount - cb), bE, bW) | |
440 | 439 | } | |
441 | 440 | else { | |
442 | - | let | |
443 | - | $Tuple5( | |
441 | + | let cb = fraction(T, bX, ac, CEILING) | |
442 | + | $Tuple5(cb, as.payments[1].amount, (as.payments[0].amount - cb), bB, bX) | |
444 | 443 | } | |
445 | - | let | |
446 | - | let | |
447 | - | let | |
448 | - | let | |
449 | - | let | |
450 | - | let | |
444 | + | let bA = ca._1 | |
445 | + | let bD = ca._2 | |
446 | + | let cc = ca._3 | |
447 | + | let cd = ca._4 | |
448 | + | let ce = ca._5 | |
449 | + | let cf = fraction(ce, W, ac) | |
451 | 450 | if ((size(as.payments) != 2)) | |
452 | 451 | then throw("Two attached assets expected") | |
453 | - | else if (if (( | |
452 | + | else if (if ((bB != N)) | |
454 | 453 | then true | |
455 | - | else ( | |
456 | - | then | |
457 | - | else if (( | |
454 | + | else (bE != O)) | |
455 | + | then bk() | |
456 | + | else if ((cf == 0)) | |
458 | 457 | then throw("Too small amount to replenish") | |
459 | - | else if ((0 > | |
458 | + | else if ((0 > cc)) | |
460 | 459 | then throw("Change < 0") | |
461 | 460 | else if (!(az)) | |
462 | - | then ([ScriptTransfer(as.caller, | |
461 | + | then ([ScriptTransfer(as.caller, bA, bB), ScriptTransfer(as.caller, bD, bE)] ++ bq()) | |
463 | 462 | else { | |
464 | - | let | |
465 | - | then invoke(this, "stakeUnstake", [true, | |
463 | + | let bU = if (containsElement(H, bG)) | |
464 | + | then invoke(this, "stakeUnstake", [true, bA, bG], nil) | |
466 | 465 | else 0 | |
467 | - | if (( | |
466 | + | if ((bU == bU)) | |
468 | 467 | then { | |
469 | - | let | |
470 | - | then invoke(this, "stakeUnstake", [true, | |
468 | + | let bV = if (containsElement(H, bK)) | |
469 | + | then invoke(this, "stakeUnstake", [true, bD, bK], nil) | |
471 | 470 | else 0 | |
472 | - | if (( | |
473 | - | then [IntegerEntry(f, (T + | |
471 | + | if ((bV == bV)) | |
472 | + | then [IntegerEntry(f, (T + bA)), IntegerEntry(g, (U + bD)), IntegerEntry(i, (W + cf)), IntegerEntry(l, aD((T + bA), (U + bD))), Reissue(V, cf, true), ScriptTransfer(as.caller, cf, V), ScriptTransfer(as.caller, cc, cd)] | |
474 | 473 | else throw("Strict value is not equal to itself.") | |
475 | 474 | } | |
476 | 475 | else throw("Strict value is not equal to itself.") | |
477 | 476 | } | |
478 | 477 | }) | |
479 | 478 | ||
480 | 479 | ||
481 | 480 | ||
482 | 481 | @Callable(as) | |
483 | - | func replenishWithOneToken (ch | |
484 | - | let | |
485 | - | let | |
486 | - | let | |
487 | - | let | |
488 | - | let | |
489 | - | let | |
490 | - | let | |
491 | - | let | |
492 | - | let | |
493 | - | let | |
482 | + | func replenishWithOneToken (cg,ch) = valueOrElse(bi(), { | |
483 | + | let ci = $Tuple2(as.payments[0].amount, as.payments[0].assetId) | |
484 | + | let cj = ci._1 | |
485 | + | let ck = ci._2 | |
486 | + | let cl = bc(ck) | |
487 | + | let cm = cl._1 | |
488 | + | let cn = cl._2 | |
489 | + | let co = cl._3 | |
490 | + | let cp = 5000000 | |
491 | + | let cq = 50000000 | |
492 | + | let cr = if ((cq > cj)) | |
494 | 493 | then 100000 | |
495 | 494 | else 1 | |
496 | - | let | |
497 | - | let | |
498 | - | let | |
499 | - | if (( | |
500 | - | then throw((((("Payment amount " + toString( | |
495 | + | let cs = (ac - ((ac * cr) / 10000000)) | |
496 | + | let ct = (ac + ((ac * cr) / 10000000)) | |
497 | + | let cu = (ac - ((ac * 1) / 10000000)) | |
498 | + | if ((cp > cj)) | |
499 | + | then throw((((("Payment amount " + toString(cj)) + " does not exceed the minimum amount of ") + toString(cp)) + " tokens")) | |
501 | 500 | else if ((size(as.payments) != 1)) | |
502 | - | then | |
501 | + | then bl() | |
503 | 502 | else if (!(az)) | |
504 | - | then ([ScriptTransfer(as.caller, | |
505 | - | else if (if (( | |
506 | - | then ( | |
503 | + | then ([ScriptTransfer(as.caller, cj, ck)] ++ bq()) | |
504 | + | else if (if ((ck != N)) | |
505 | + | then (ck != O) | |
507 | 506 | else false) | |
508 | - | then | |
507 | + | then bk() | |
509 | 508 | else { | |
510 | - | let | |
511 | - | then $Tuple7(( | |
512 | - | else $Tuple7( | |
513 | - | let | |
514 | - | let | |
515 | - | let | |
516 | - | let | |
517 | - | let | |
518 | - | let | |
519 | - | let | |
520 | - | let | |
521 | - | then IntegerEntry(f, | |
522 | - | else IntegerEntry(g, | |
523 | - | let | |
524 | - | let | |
525 | - | let | |
526 | - | let | |
527 | - | if (if (( | |
509 | + | let cv = if ((ck == N)) | |
510 | + | then $Tuple7((cj - cg), ch, (T + cg), (U - ch), aD((T + cj), U), (T + cj), U) | |
511 | + | else $Tuple7(ch, (cj - cg), (T - ch), (U + cg), aD(T, (U + cj)), T, (U + cj)) | |
512 | + | let cw = cv._1 | |
513 | + | let cx = cv._2 | |
514 | + | let cy = cv._3 | |
515 | + | let cz = cv._4 | |
516 | + | let bT = cv._5 | |
517 | + | let cA = cv._6 | |
518 | + | let cB = cv._7 | |
519 | + | let cC = if ((ck == N)) | |
520 | + | then IntegerEntry(f, cA) | |
521 | + | else IntegerEntry(g, cB) | |
522 | + | let cD = aD(cy, cz) | |
523 | + | let cE = fraction(ac, X, cD) | |
524 | + | let cF = (fraction((ac * ac), cy, cz) / fraction(ac, cw, cx)) | |
525 | + | let cG = fraction((cA + cB), ag, (2 * ah)) | |
526 | + | if (if ((cu >= cE)) | |
528 | 527 | then true | |
529 | - | else (X > | |
530 | - | then throw("Incorrect virtualSwapTokenPay or virtualSwapTokenGet value") | |
531 | - | else if (if (( | |
528 | + | else (X > cD)) | |
529 | + | then throw((((((("Incorrect virtualSwapTokenPay or virtualSwapTokenGet value" + " invariantEstimatedRatio: ") + toString(cE)) + " invariantNew: ") + toString(cD)) + " invariant: ") + toString(X))) | |
530 | + | else if (if ((cs > cF)) | |
532 | 531 | then true | |
533 | - | else ( | |
532 | + | else (cF > ct)) | |
534 | 533 | then throw("Swap with virtualSwapTokenPay and virtualSwapTokenGet is possible, but ratio after virtual swap is incorrect") | |
535 | - | else if (if (( | |
534 | + | else if (if ((cG > cA)) | |
536 | 535 | then true | |
537 | - | else ( | |
538 | - | then | |
536 | + | else (cG > cB)) | |
537 | + | then bm(cG, cA, cB) | |
539 | 538 | else { | |
540 | - | let | |
541 | - | then invoke(this, "stakeUnstake", [true, | |
539 | + | let bU = if (containsElement(H, cm)) | |
540 | + | then invoke(this, "stakeUnstake", [true, cj, cm], nil) | |
542 | 541 | else 0 | |
543 | - | if (( | |
542 | + | if ((bU == bU)) | |
544 | 543 | then { | |
544 | + | let bW = fraction(cw, ac, cy) | |
545 | 545 | let bX = fraction(cx, ac, cz) | |
546 | - | let bY = fraction(cy, ac, cA) | |
547 | - | let cg = fraction(min([bX, bY]), W, ac) | |
548 | - | [Reissue(V, cg, true), ScriptTransfer(as.caller, cg, V), IntegerEntry(i, (W + cg)), cD, IntegerEntry(l, bU)] | |
546 | + | let cf = fraction(min([bW, bX]), W, ac) | |
547 | + | [Reissue(V, cf, true), ScriptTransfer(as.caller, cf, V), IntegerEntry(i, (W + cf)), cC, IntegerEntry(l, bT)] | |
549 | 548 | } | |
550 | 549 | else throw("Strict value is not equal to itself.") | |
551 | 550 | } | |
552 | 551 | } | |
553 | 552 | }) | |
554 | 553 | ||
555 | 554 | ||
556 | 555 | ||
557 | 556 | @Callable(as) | |
558 | - | func withdraw () = valueOrElse( | |
559 | - | let | |
560 | - | let | |
561 | - | let | |
562 | - | let | |
563 | - | let | |
564 | - | let | |
557 | + | func withdraw () = valueOrElse(bi(), { | |
558 | + | let cH = $Tuple2(as.payments[0].amount, as.payments[0].assetId) | |
559 | + | let cj = cH._1 | |
560 | + | let ck = cH._2 | |
561 | + | let cI = fraction(cj, T, W) | |
562 | + | let cJ = fraction(cj, U, W) | |
563 | + | let bT = aD((T - cI), (U - cJ)) | |
565 | 564 | if ((size(as.payments) != 1)) | |
566 | - | then | |
567 | - | else if (( | |
565 | + | then bl() | |
566 | + | else if ((ck != V)) | |
568 | 567 | then throw(("Incorrect asset attached. Expected: " + toBase58String(V))) | |
569 | 568 | else if (!(az)) | |
570 | - | then ([ScriptTransfer(as.caller, | |
569 | + | then ([ScriptTransfer(as.caller, cj, ck)] ++ bq()) | |
571 | 570 | else { | |
572 | - | let | |
573 | - | then invoke(this, "stakeUnstake", [false, | |
571 | + | let bU = if (containsElement(H, L)) | |
572 | + | then invoke(this, "stakeUnstake", [false, cI, L], nil) | |
574 | 573 | else 0 | |
575 | - | if (( | |
574 | + | if ((bU == bU)) | |
576 | 575 | then { | |
577 | - | let | |
578 | - | then invoke(this, "stakeUnstake", [false, | |
576 | + | let bV = if (containsElement(H, M)) | |
577 | + | then invoke(this, "stakeUnstake", [false, cJ, M], nil) | |
579 | 578 | else 0 | |
580 | - | if (( | |
581 | - | then [IntegerEntry(f, (T - | |
579 | + | if ((bV == bV)) | |
580 | + | then [IntegerEntry(f, (T - cI)), IntegerEntry(g, (U - cJ)), IntegerEntry(i, (W - cj)), IntegerEntry(l, bT), Burn(V, cj), ScriptTransfer(as.caller, cI, N), ScriptTransfer(as.caller, cJ, O)] | |
582 | 581 | else throw("Strict value is not equal to itself.") | |
583 | 582 | } | |
584 | 583 | else throw("Strict value is not equal to itself.") | |
585 | 584 | } | |
586 | 585 | }) | |
587 | 586 | ||
588 | 587 | ||
589 | 588 | ||
590 | 589 | @Callable(as) | |
591 | - | func exchange (cL | |
592 | - | let | |
593 | - | let | |
594 | - | let | |
595 | - | if ((0 >= | |
596 | - | then throw(("Estimated amount must be positive. Actual: " + toString( | |
597 | - | else if (( | |
598 | - | then throw(((("Minimal amount can't be greater than estimated. Estimated: " + toString( | |
590 | + | func exchange (cK,cL) = valueOrElse(bi(), { | |
591 | + | let cM = $Tuple2(as.payments[0].amount, as.payments[0].assetId) | |
592 | + | let cj = cM._1 | |
593 | + | let ck = cM._2 | |
594 | + | if ((0 >= cK)) | |
595 | + | then throw(("Estimated amount must be positive. Actual: " + toString(cK))) | |
596 | + | else if ((cL > cK)) | |
597 | + | then throw(((("Minimal amount can't be greater than estimated. Estimated: " + toString(cK)) + ". Minimal: ") + toString(cL))) | |
599 | 598 | else if ((size(as.payments) != 1)) | |
600 | - | then | |
599 | + | then bl() | |
601 | 600 | else if (!(az)) | |
602 | - | then ([ScriptTransfer(as.caller, | |
603 | - | else if (if (( | |
604 | - | then ( | |
601 | + | then ([ScriptTransfer(as.caller, cj, ck)] ++ bq()) | |
602 | + | else if (if ((ck != N)) | |
603 | + | then (ck != O) | |
605 | 604 | else false) | |
606 | - | then | |
607 | - | else if ((10000000 > | |
605 | + | then bk() | |
606 | + | else if ((10000000 > cj)) | |
608 | 607 | then throw("Only swap of 10.000000 or more tokens is allowed") | |
609 | - | else if (if ((ai > fraction(ac, | |
608 | + | else if (if ((ai > fraction(ac, cL, cj))) | |
610 | 609 | then true | |
611 | - | else (fraction(ac, | |
610 | + | else (fraction(ac, cK, cj) > aj)) | |
612 | 611 | then throw("Incorrect args and pmt ratio") | |
613 | 612 | else { | |
614 | - | let | |
613 | + | let cN = if ((ck == N)) | |
615 | 614 | then O | |
616 | 615 | else N | |
617 | - | let cP = aF(cL, cM, ck, cl) | |
618 | - | let bv = cP._1 | |
619 | - | let cQ = cP._2 | |
620 | - | let cR = fraction(bv, Z, aa) | |
621 | - | let cS = fraction(bv, (aa - Y), aa) | |
622 | - | let cT = if ((cl == N)) | |
623 | - | then $Tuple2((T + ck), ((U - cS) - cR)) | |
624 | - | else $Tuple2(((T - cS) - cR), (U + ck)) | |
625 | - | let cB = cT._1 | |
626 | - | let cC = cT._2 | |
627 | - | let cH = fraction((cB + cC), ag, (2 * ah)) | |
628 | - | if (if ((cH > cB)) | |
616 | + | let bu = aF(cK, cL, cj, ck) | |
617 | + | let cO = fraction(bu, Z, aa) | |
618 | + | let cP = fraction(bu, (aa - Y), aa) | |
619 | + | let cQ = if ((ck == N)) | |
620 | + | then $Tuple2((T + cj), ((U - cP) - cO)) | |
621 | + | else $Tuple2(((T - cP) - cO), (U + cj)) | |
622 | + | let cA = cQ._1 | |
623 | + | let cB = cQ._2 | |
624 | + | let cG = fraction((cA + cB), ag, (2 * ah)) | |
625 | + | if (if ((cG > cA)) | |
629 | 626 | then true | |
630 | - | else ( | |
631 | - | then | |
627 | + | else (cG > cB)) | |
628 | + | then bm(cG, cA, cB) | |
632 | 629 | else { | |
633 | - | let | |
634 | - | let | |
635 | - | let | |
636 | - | let | |
637 | - | let | |
638 | - | let | |
639 | - | let | |
640 | - | let | |
641 | - | let | |
642 | - | then invoke(this, "stakeUnstake", [true, | |
630 | + | let cR = bc(ck) | |
631 | + | let cm = cR._1 | |
632 | + | let cn = cR._2 | |
633 | + | let co = cR._3 | |
634 | + | let cS = bc(cN) | |
635 | + | let cT = cS._1 | |
636 | + | let cU = cS._2 | |
637 | + | let cV = cS._3 | |
638 | + | let bU = if (containsElement(H, cm)) | |
639 | + | then invoke(this, "stakeUnstake", [true, cj, cm], nil) | |
643 | 640 | else 0 | |
644 | - | if (( | |
641 | + | if ((bU == bU)) | |
645 | 642 | then { | |
646 | - | let | |
647 | - | then invoke(this, "stakeUnstake", [false, ( | |
643 | + | let bV = if (containsElement(H, cT)) | |
644 | + | then invoke(this, "stakeUnstake", [false, (cP + cO), cT], nil) | |
648 | 645 | else 0 | |
649 | - | if (( | |
650 | - | then [IntegerEntry(f, | |
646 | + | if ((bV == bV)) | |
647 | + | then [IntegerEntry(f, cA), IntegerEntry(g, cB), IntegerEntry(l, aD(cA, cB)), ScriptTransfer(as.caller, cP, cN), ScriptTransfer(E, cO, cN)] | |
651 | 648 | else throw("Strict value is not equal to itself.") | |
652 | 649 | } | |
653 | 650 | else throw("Strict value is not equal to itself.") | |
654 | 651 | } | |
655 | 652 | } | |
656 | 653 | }) | |
657 | 654 | ||
658 | 655 | ||
659 | 656 | ||
660 | 657 | @Callable(as) | |
661 | - | func shutdown () = valueOrElse( | |
658 | + | func shutdown () = valueOrElse(bj(as), if (!(K)) | |
662 | 659 | then throw(("DApp is already suspended. Cause: " + valueOrElse(getString(this, m), "the cause wasn't specified"))) | |
663 | - | else | |
660 | + | else bf("Paused by admin")) | |
664 | 661 | ||
665 | 662 | ||
666 | 663 | ||
667 | 664 | @Callable(as) | |
668 | - | func activate () = valueOrElse( | |
669 | - | then | |
665 | + | func activate () = valueOrElse(bj(as), if (K) | |
666 | + | then bh() | |
670 | 667 | else [BooleanEntry(c, true), DeleteEntry(m)]) | |
671 | 668 | ||
672 | 669 | ||
673 | 670 | ||
674 | 671 | @Callable(as) | |
675 | - | func takeIntoAccountExtraFunds () = valueOrElse( | |
676 | - | let | |
677 | - | let | |
678 | - | let | |
672 | + | func takeIntoAccountExtraFunds () = valueOrElse(bi(), { | |
673 | + | let cW = (ax - T) | |
674 | + | let cX = (ay - U) | |
675 | + | let cD = aD((T + cW), (U + cX)) | |
679 | 676 | if ((as.caller != E)) | |
680 | 677 | then throw("Only the wallet can call this function") | |
681 | - | else if (if ((0 > | |
678 | + | else if (if ((0 > cW)) | |
682 | 679 | then true | |
683 | - | else (0 > | |
684 | - | then | |
685 | - | else if (if (( | |
686 | - | then ( | |
680 | + | else (0 > cX)) | |
681 | + | then bf("Enroll amount negative") | |
682 | + | else if (if ((cW == 0)) | |
683 | + | then (cX == 0) | |
687 | 684 | else false) | |
688 | 685 | then throw("No money to take") | |
689 | 686 | else { | |
690 | - | let | |
691 | - | then ( | |
687 | + | let bU = if (if (containsElement(H, L)) | |
688 | + | then (cW > 0) | |
692 | 689 | else false) | |
693 | - | then invoke(this, "stakeUnstake", [true, | |
690 | + | then invoke(this, "stakeUnstake", [true, cW, L], nil) | |
694 | 691 | else 0 | |
695 | - | if (( | |
692 | + | if ((bU == bU)) | |
696 | 693 | then { | |
697 | - | let | |
698 | - | then ( | |
694 | + | let bV = if (if (containsElement(H, M)) | |
695 | + | then (cX > 0) | |
699 | 696 | else false) | |
700 | - | then invoke(this, "stakeUnstake", [true, | |
697 | + | then invoke(this, "stakeUnstake", [true, cX, M], nil) | |
701 | 698 | else 0 | |
702 | - | if (( | |
703 | - | then [IntegerEntry(l, | |
699 | + | if ((bV == bV)) | |
700 | + | then [IntegerEntry(l, cD), IntegerEntry(f, (T + cW)), IntegerEntry(g, (U + cX)), IntegerEntry(("last_income_" + L), cW), IntegerEntry(("last_income_" + M), cX)] | |
704 | 701 | else throw("Strict value is not equal to itself.") | |
705 | 702 | } | |
706 | 703 | else throw("Strict value is not equal to itself.") | |
707 | 704 | } | |
708 | 705 | }) | |
709 | 706 | ||
710 | 707 | ||
711 | 708 | ||
712 | 709 | @Callable(as) | |
713 | - | func writeBigIntInvariant () = valueOrElse( | |
714 | - | let | |
715 | - | [IntegerEntry(l, | |
710 | + | func writeBigIntInvariant () = valueOrElse(bj(as), { | |
711 | + | let cD = aD(T, U) | |
712 | + | [IntegerEntry(l, cD)] | |
716 | 713 | }) | |
717 | 714 | ||
718 | 715 | ||
719 | 716 | ||
720 | 717 | @Callable(as) | |
721 | - | func stakeUnstake ( | |
718 | + | func stakeUnstake (bs,bu,cY) = if ((as.caller != this)) | |
722 | 719 | then throw("Only contract itself can invoke this function") | |
723 | 720 | else { | |
724 | - | let | |
725 | - | let | |
726 | - | let | |
727 | - | let | |
728 | - | let | |
729 | - | let | |
730 | - | if (( | |
721 | + | let cZ = bt(bs, bu, fromBase58String(cY)) | |
722 | + | let bw = cZ._1 | |
723 | + | let da = cZ._2 | |
724 | + | let db = cZ._3 | |
725 | + | let dc = cZ._4 | |
726 | + | let dd = invoke(da, bw, db, dc) | |
727 | + | if ((dd == dd)) | |
731 | 728 | then nil | |
732 | 729 | else throw("Strict value is not equal to itself.") | |
733 | 730 | } | |
734 | 731 | ||
735 | 732 | ||
736 | - | @Verifier( | |
737 | - | func | |
738 | - | let | |
739 | - | let | |
733 | + | @Verifier(de) | |
734 | + | func df () = { | |
735 | + | let dg = { | |
736 | + | let dh = if (sigVerify(de.bodyBytes, de.proofs[0], z)) | |
740 | 737 | then 1 | |
741 | 738 | else 0 | |
742 | - | let | |
739 | + | let di = if (sigVerify(de.bodyBytes, de.proofs[1], A)) | |
743 | 740 | then 1 | |
744 | 741 | else 0 | |
745 | - | let | |
742 | + | let dj = if (sigVerify(de.bodyBytes, de.proofs[2], B)) | |
746 | 743 | then 1 | |
747 | 744 | else 0 | |
748 | - | ((( | |
745 | + | (((dh + di) + dj) >= 2) | |
749 | 746 | } | |
750 | - | let w = | |
747 | + | let w = de | |
751 | 748 | if ($isInstanceOf(w, "InvokeScriptTransaction")) | |
752 | 749 | then { | |
753 | - | let | |
754 | - | let | |
755 | - | then ( | |
750 | + | let dd = w | |
751 | + | let dk = if ((dd.dApp == this)) | |
752 | + | then (dd.function == "takeIntoAccountExtraFunds") | |
756 | 753 | else false | |
757 | - | let | |
754 | + | let dl = if (if (if (sigVerify(de.bodyBytes, de.proofs[0], z)) | |
758 | 755 | then true | |
759 | - | else sigVerify( | |
756 | + | else sigVerify(de.bodyBytes, de.proofs[0], A)) | |
760 | 757 | then true | |
761 | - | else sigVerify( | |
758 | + | else sigVerify(de.bodyBytes, de.proofs[0], B)) | |
762 | 759 | then true | |
763 | - | else sigVerify( | |
764 | - | if (if ( | |
765 | - | then | |
760 | + | else sigVerify(de.bodyBytes, de.proofs[0], D) | |
761 | + | if (if (dk) | |
762 | + | then dl | |
766 | 763 | else false) | |
767 | 764 | then true | |
768 | - | else | |
765 | + | else dg | |
769 | 766 | } | |
770 | - | else | |
767 | + | else dg | |
771 | 768 | } | |
772 | 769 |
github/deemru/w8io/169f3d6 258.72 ms ◑