tx · 9GDJqh7tMaqmqFFHYGC89reXt68bGsNyNuufFpxj1mEp 3MxWgDbE9EmjQj8b3LfFwa91FZizptyeQXS: -0.14000000 Waves 2022.10.18 17:28 [2277958] smart account 3MxWgDbE9EmjQj8b3LfFwa91FZizptyeQXS > SELF 0.00000000 Waves
{ "type": 13, "id": "9GDJqh7tMaqmqFFHYGC89reXt68bGsNyNuufFpxj1mEp", "fee": 14000000, "feeAssetId": null, "timestamp": 1666103317671, "version": 2, "chainId": 84, "sender": "3MxWgDbE9EmjQj8b3LfFwa91FZizptyeQXS", "senderPublicKey": "C7xgcYqQ8qV8rmvzAjhQWq4cz82F6VJfXMNygvrTXsfW", "proofs": [ "5ok3inTw1mx5aWJDiaKiLpn8LENUaD54tsUqRnoki5hne2iazVeRu3zrh58QfwRB4hztFD8KBXutsz8DoDUJe4sD", "XR3GD7EE3qLqK52cHVcQkVwLfJ2iAidyMWEy51pZDJf3AVWQBKwyQTiCN2naUtAKaZANKp5FPGD5ZfxATsTqmsb" ], "script": "base64:BgJmCAISBAoCEQESBQoDCAEBEgUKAwEEARIECgIRCBIDCgEBEgYKBAgIAQgSBAoCCAESAwoBERIECgIRARIFCgMBCAgSBAoCCAESBQoDCAEBEgASABIECgIRBBIECgIBARIAEgASABIAWAAJUFJFQ0lTSU9OAMCEPQAFTUFYX0EAwIQ9AAxNQVhfQV9DSEFOR0UACgAIREVDSU1BTFMABgANTUlOX1JBTVBfVElNRQkAaQIAgKMFADwAB3ZlcnNpb24CBTMuMC4wAAhrVmVyc2lvbgIHdmVyc2lvbgAHa0Fzc2V0cwIJYXNzZXRfaWRzAA1rQXNzZXRCYWxhbmNlAghfYmFsYW5jZQAHa0FjdGl2ZQIGYWN0aXZlAAZrQ2F1c2UCDnNodXRkb3duX2NhdXNlAA1rU2hhcmVBc3NldElkAg5zaGFyZV9hc3NldF9pZAARa1NoYXJlQXNzZXRTdXBwbHkCEnNoYXJlX2Fzc2V0X3N1cHBseQAEa0ZlZQIKY29tbWl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pblB1YktleUludm9rZQMDBRNjYWxsVGFrZUludG9BY2NvdW50BQ1zaWduZWRCeUFkbWluBwYFE211bHRpU2lnbmVkQnlBZG1pbnMFE211bHRpU2lnbmVkQnlBZG1pbnNwbNoh", "height": 2277958, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: FMS6w7BGyn5VFdu3yVE6gM682UXaoiJv9wY2FB3oNUPp Next: Aykfwr5jGhNU1JhkCPYo8TqJ3CeJcoZe7MeXSiyMnhgb Diff:
Old | New | Differences | |
---|---|---|---|
38 | 38 | let kDiscountValues = "discount_values" | |
39 | 39 | ||
40 | 40 | let kUserSwopInGov = "_SWOP_amount" | |
41 | + | ||
42 | + | let kUserGSwopInGov = "_GSwop_amount" | |
41 | 43 | ||
42 | 44 | let kAdminPubKey1 = "admin_pub_1" | |
43 | 45 | ||
87 | 89 | ||
88 | 90 | let lpFarmingAddress = Address(getBase58FromOracle(kLPFarmingAddress)) | |
89 | 91 | ||
90 | - | let USDN = base58' | |
92 | + | let USDN = base58'DG2xFkPdDwKUoBkzGAhQtLpSGzfXLiCYPEzeKH2Ad24p' | |
91 | 93 | ||
92 | 94 | let stakingAssets = [toBase58String(USDN)] | |
93 | 95 | ||
160 | 162 | case _ => | |
161 | 163 | throw("Unknow type of user Addr") | |
162 | 164 | } | |
163 | - | let swopAmount = valueOrElse(getInteger(govAddress, (user + kUserSwopInGov)), 0) | |
165 | + | let swopAmount = valueOrElse(getInteger(govAddress, (user + kUserGSwopInGov)), 0) | |
166 | + | let gSwopAmount = valueOrElse(getInteger(govAddress, (user + kUserGSwopInGov)), swopAmount) | |
164 | 167 | let discountValues = split(getStringValue(oracle, kDiscountValues), ",") | |
165 | 168 | let discounts = split(getStringValue(oracle, kDiscounts), ",") | |
166 | - | if (if (( | |
167 | - | then (parseIntValue(discountValues[1]) > | |
169 | + | if (if ((gSwopAmount >= parseIntValue(discountValues[0]))) | |
170 | + | then (parseIntValue(discountValues[1]) > gSwopAmount) | |
168 | 171 | else false) | |
169 | 172 | then (feeScale6 - parseIntValue(discounts[0])) | |
170 | - | else if (if (( | |
171 | - | then (parseIntValue(discountValues[2]) > | |
173 | + | else if (if ((gSwopAmount >= parseIntValue(discountValues[1]))) | |
174 | + | then (parseIntValue(discountValues[2]) > gSwopAmount) | |
172 | 175 | else false) | |
173 | 176 | then (feeScale6 - parseIntValue(discounts[1])) | |
174 | - | else if (if (( | |
175 | - | then (parseIntValue(discountValues[3]) > | |
177 | + | else if (if ((gSwopAmount >= parseIntValue(discountValues[2]))) | |
178 | + | then (parseIntValue(discountValues[3]) > gSwopAmount) | |
176 | 179 | else false) | |
177 | 180 | then (feeScale6 - parseIntValue(discounts[2])) | |
178 | - | else if (if (( | |
179 | - | then (parseIntValue(discountValues[4]) > | |
181 | + | else if (if ((gSwopAmount >= parseIntValue(discountValues[3]))) | |
182 | + | then (parseIntValue(discountValues[4]) > gSwopAmount) | |
180 | 183 | else false) | |
181 | 184 | then (feeScale6 - parseIntValue(discounts[3])) | |
182 | - | else if (( | |
185 | + | else if ((gSwopAmount >= parseIntValue(discountValues[4]))) | |
183 | 186 | then (feeScale6 - parseIntValue(discounts[4])) | |
184 | 187 | else feeScale6 | |
185 | 188 | } | |
285 | 288 | else $Tuple2(D, false) | |
286 | 289 | } | |
287 | 290 | ||
288 | - | let $ | |
291 | + | let $t064616527 = { | |
289 | 292 | let $l = iter15 | |
290 | 293 | let $s = size($l) | |
291 | 294 | let $acc0 = $Tuple2(toBigInt(S), false) | |
299 | 302 | ||
300 | 303 | $f1_2($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15) | |
301 | 304 | } | |
302 | - | let D = $ | |
303 | - | let finished = $ | |
305 | + | let D = $t064616527._1 | |
306 | + | let finished = $t064616527._2 | |
304 | 307 | if ((finished == false)) | |
305 | 308 | then throw(("get_D() not finished with " + toString(D))) | |
306 | 309 | else toInt(D) | |
326 | 329 | let D = get_D(xp_, amp) | |
327 | 330 | let Ann = (amp * nCoins) | |
328 | 331 | func S_c (acc,i) = { | |
329 | - | let $ | |
330 | - | let S_ = $ | |
331 | - | let c = $ | |
332 | + | let $t070987115 = acc | |
333 | + | let S_ = $t070987115._1 | |
334 | + | let c = $t070987115._2 | |
332 | 335 | let x_ = if ((in == i)) | |
333 | 336 | then x | |
334 | 337 | else xp_[i] | |
339 | 342 | else $Tuple2(S_, c) | |
340 | 343 | } | |
341 | 344 | ||
342 | - | let $ | |
345 | + | let $t073237378 = { | |
343 | 346 | let $l = iter10 | |
344 | 347 | let $s = size($l) | |
345 | 348 | let $acc0 = $Tuple2(0, toBigInt(D)) | |
353 | 356 | ||
354 | 357 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
355 | 358 | } | |
356 | - | let S_ = $ | |
357 | - | let c_ = $ | |
359 | + | let S_ = $t073237378._1 | |
360 | + | let c_ = $t073237378._2 | |
358 | 361 | let c = fraction(c_, toBigInt(D), toBigInt((Ann * nCoins))) | |
359 | 362 | let bD = toBigInt(((S_ + (D / Ann)) - D)) | |
360 | 363 | func y_proc (acc,_i) = if ((acc._2 == true)) | |
371 | 374 | else $Tuple2(y, false) | |
372 | 375 | } | |
373 | 376 | ||
374 | - | let $ | |
377 | + | let $t078607927 = { | |
375 | 378 | let $l = iter16 | |
376 | 379 | let $s = size($l) | |
377 | 380 | let $acc0 = $Tuple2(toBigInt(D), false) | |
385 | 388 | ||
386 | 389 | $f1_2($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16) | |
387 | 390 | } | |
388 | - | let y = $ | |
389 | - | let finished = $ | |
391 | + | let y = $t078607927._1 | |
392 | + | let finished = $t078607927._2 | |
390 | 393 | if ((finished == false)) | |
391 | 394 | then throw(("getY() not finished with " + toString(y))) | |
392 | 395 | else toInt(y) | |
400 | 403 | else { | |
401 | 404 | let Ann = (A_ * nCoins) | |
402 | 405 | func S_c (acc,i) = { | |
403 | - | let $ | |
404 | - | let S_ = $ | |
405 | - | let c = $ | |
406 | + | let $t083068323 = acc | |
407 | + | let S_ = $t083068323._1 | |
408 | + | let c = $t083068323._2 | |
406 | 409 | let x_ = if (if ((in != i)) | |
407 | 410 | then (nCoins > i) | |
408 | 411 | else false) | |
415 | 418 | else $Tuple2(S_, c) | |
416 | 419 | } | |
417 | 420 | ||
418 | - | let $ | |
421 | + | let $t085438598 = { | |
419 | 422 | let $l = iter10 | |
420 | 423 | let $s = size($l) | |
421 | 424 | let $acc0 = $Tuple2(0, toBigInt(D)) | |
429 | 432 | ||
430 | 433 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
431 | 434 | } | |
432 | - | let S_ = $ | |
433 | - | let c_ = $ | |
435 | + | let S_ = $t085438598._1 | |
436 | + | let c_ = $t085438598._2 | |
434 | 437 | let c = fraction(c_, toBigInt(D), toBigInt((Ann * nCoins))) | |
435 | 438 | let bD = toBigInt(((S_ + (D / Ann)) - D)) | |
436 | 439 | func y_D_proc (acc,i) = if ((acc._2 == true)) | |
447 | 450 | else $Tuple2(y, false) | |
448 | 451 | } | |
449 | 452 | ||
450 | - | let $ | |
453 | + | let $t090819150 = { | |
451 | 454 | let $l = iter16 | |
452 | 455 | let $s = size($l) | |
453 | 456 | let $acc0 = $Tuple2(toBigInt(D), false) | |
461 | 464 | ||
462 | 465 | $f1_2($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16) | |
463 | 466 | } | |
464 | - | let y = $ | |
465 | - | let finished = $ | |
467 | + | let y = $t090819150._1 | |
468 | + | let finished = $t090819150._2 | |
466 | 469 | if ((finished == false)) | |
467 | 470 | then throw(("get_y_D() not finished with " + toString(y))) | |
468 | 471 | else toInt(y) | |
479 | 482 | let new_y = get_y_D(amp, i, xp, D1) | |
480 | 483 | let dy_0 = (xp[i] - new_y) | |
481 | 484 | func xp_reduced_proc (acc,xp_j) = { | |
482 | - | let $ | |
483 | - | let xp_reduced = $ | |
484 | - | let index = $ | |
485 | + | let $t097919820 = acc | |
486 | + | let xp_reduced = $t097919820._1 | |
487 | + | let index = $t097919820._2 | |
485 | 488 | let dx_expected = if ((index == i)) | |
486 | 489 | then (fraction(xp_j, D1, D0) - new_y) | |
487 | 490 | else (xp_j - fraction(xp_j, D1, D0)) | |
488 | 491 | $Tuple2((xp_reduced :+ (xp_j - fraction(_fee, dx_expected, feeScale6))), (index + 1)) | |
489 | 492 | } | |
490 | 493 | ||
491 | - | let $ | |
494 | + | let $t01008210146 = { | |
492 | 495 | let $l = xp | |
493 | 496 | let $s = size($l) | |
494 | 497 | let $acc0 = $Tuple2(nil, 0) | |
502 | 505 | ||
503 | 506 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
504 | 507 | } | |
505 | - | let xp_reduced = $ | |
506 | - | let index = $ | |
508 | + | let xp_reduced = $t01008210146._1 | |
509 | + | let index = $t01008210146._2 | |
507 | 510 | let xp_reduced_i = xp_reduced[i] | |
508 | 511 | let dy = ((xp_reduced_i - get_y_D(amp, i, xp_reduced, D1)) - 1) | |
509 | 512 | $Tuple2(dy, (dy_0 - dy)) | |
527 | 530 | ||
528 | 531 | func calcStakingParams (stake,amount,assetId) = if (stake) | |
529 | 532 | then { | |
530 | - | let $ | |
531 | - | let call = $ | |
532 | - | let stakingAddr = $ | |
533 | + | let $t01071010776 = calcStakingFuncAndAddres(stake, assetId) | |
534 | + | let call = $t01071010776._1 | |
535 | + | let stakingAddr = $t01071010776._2 | |
533 | 536 | $Tuple4(call, stakingAddr, nil, [AttachedPayment(assetId, amount)]) | |
534 | 537 | } | |
535 | 538 | else { | |
536 | - | let $ | |
537 | - | let call = $ | |
538 | - | let stakingAddr = $ | |
539 | + | let $t01086210928 = calcStakingFuncAndAddres(stake, assetId) | |
540 | + | let call = $t01086210928._1 | |
541 | + | let stakingAddr = $t01086210928._2 | |
539 | 542 | $Tuple4(call, stakingAddr, [amount, toBase58String(assetId)], nil) | |
540 | 543 | } | |
541 | 544 | ||
542 | 545 | ||
543 | 546 | func stake (amount,assetIdString) = if (containsElement(stakingAssets, assetIdString)) | |
544 | 547 | then { | |
545 | - | let $ | |
546 | - | let call = $ | |
547 | - | let addr = $ | |
548 | - | let params = $ | |
549 | - | let payments = $ | |
548 | + | let $t01111511217 = calcStakingParams(true, amount, fromBase58String(assetIdString)) | |
549 | + | let call = $t01111511217._1 | |
550 | + | let addr = $t01111511217._2 | |
551 | + | let params = $t01111511217._3 | |
552 | + | let payments = $t01111511217._4 | |
550 | 553 | invoke(addr, call, params, payments) | |
551 | 554 | } | |
552 | 555 | else 0 | |
554 | 557 | ||
555 | 558 | func unstake (amount,assetIdString) = if (containsElement(stakingAssets, assetIdString)) | |
556 | 559 | then { | |
557 | - | let $ | |
558 | - | let call = $ | |
559 | - | let addr = $ | |
560 | - | let params = $ | |
561 | - | let payments = $ | |
560 | + | let $t01140211505 = calcStakingParams(false, amount, fromBase58String(assetIdString)) | |
561 | + | let call = $t01140211505._1 | |
562 | + | let addr = $t01140211505._2 | |
563 | + | let params = $t01140211505._3 | |
564 | + | let payments = $t01140211505._4 | |
562 | 565 | invoke(addr, call, params, payments) | |
563 | 566 | } | |
564 | 567 | else 0 | |
587 | 590 | func checkSuspicious () = { | |
588 | 591 | let contractBalances = _xp() | |
589 | 592 | func checkBalance (acc,assetId) = { | |
590 | - | let $ | |
591 | - | let suspicious = $ | |
592 | - | let i = $ | |
593 | + | let $t01211612141 = acc | |
594 | + | let suspicious = $t01211612141._1 | |
595 | + | let i = $t01211612141._2 | |
593 | 596 | if (suspicious) | |
594 | 597 | then $Tuple2(suspicious, i) | |
595 | 598 | else { | |
705 | 708 | ||
706 | 709 | ||
707 | 710 | @Callable(msg) | |
708 | - | func addLiquidity (minMintAmount,stakeFarming) = valueOrElse(isActive(), { | |
711 | + | func addLiquidity (minMintAmount,stakeFarming,lockType) = valueOrElse(isActive(), { | |
709 | 712 | let amp = _A() | |
710 | 713 | let xp = _xp() | |
711 | 714 | let D0 = if ((shareSupply == 0)) | |
748 | 751 | then (suspendSuspicious(suspicious._2) ++ returnPayments(msg.caller, payments)) | |
749 | 752 | else { | |
750 | 753 | func parsePayments (acc,assetId) = { | |
751 | - | let $ | |
752 | - | let newBalances = $ | |
753 | - | let i = $ | |
754 | + | let $t01624716273 = acc | |
755 | + | let newBalances = $t01624716273._1 | |
756 | + | let i = $t01624716273._2 | |
754 | 757 | func parsePayment (newBalance,payment) = if ((getStrAssetId(payment.assetId) == assetId)) | |
755 | 758 | then (newBalance + payment.amount) | |
756 | 759 | else newBalance | |
772 | 775 | $Tuple2((newBalances :+ newBalace), (i + 1)) | |
773 | 776 | } | |
774 | 777 | ||
775 | - | let $ | |
778 | + | let $t01662316690 = { | |
776 | 779 | let $l = assetIds | |
777 | 780 | let $s = size($l) | |
778 | 781 | let $acc0 = $Tuple2(nil, 0) | |
786 | 789 | ||
787 | 790 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
788 | 791 | } | |
789 | - | let newBalances = $ | |
790 | - | let k = $ | |
792 | + | let newBalances = $t01662316690._1 | |
793 | + | let k = $t01662316690._2 | |
791 | 794 | if (checkDAppThreshold(newBalances)) | |
792 | 795 | then throw() | |
793 | 796 | else { | |
797 | 800 | else { | |
798 | 801 | let feeDiscount = calculateFeeDiscount(msg.caller) | |
799 | 802 | func calcScriptActions (acc,newBalance) = { | |
800 | - | let $ | |
801 | - | let invBalances = $ | |
802 | - | let scriptActions = $ | |
803 | - | let i = $ | |
803 | + | let $t01701017051 = acc | |
804 | + | let invBalances = $t01701017051._1 | |
805 | + | let scriptActions = $t01701017051._2 | |
806 | + | let i = $t01701017051._3 | |
804 | 807 | if ((shareSupply > 0)) | |
805 | 808 | then { | |
806 | 809 | let _fee = ((fraction(fee, feeDiscount, feeScale6, CEILING) * nCoins) / (4 * (nCoins - 1))) | |
838 | 841 | } | |
839 | 842 | } | |
840 | 843 | ||
841 | - | let $ | |
844 | + | let $t01875618844 = { | |
842 | 845 | let $l = newBalances | |
843 | 846 | let $s = size($l) | |
844 | 847 | let $acc0 = $Tuple3(nil, nil, 0) | |
852 | 855 | ||
853 | 856 | $f1_2($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
854 | 857 | } | |
855 | - | let invBalances = $ | |
856 | - | let scriptActions = $ | |
858 | + | let invBalances = $t01875618844._1 | |
859 | + | let scriptActions = $t01875618844._2 | |
857 | 860 | let D2 = getDMem(invBalances, amp) | |
858 | 861 | let mint_amount = if ((shareSupply == 0)) | |
859 | 862 | then D1 | |
865 | 868 | let re = invoke(this, "reissueShare", [mint_amount], nil) | |
866 | 869 | if ((re == re)) | |
867 | 870 | then { | |
868 | - | let s = invoke(farmingAddress, "lockShareTokens", [toString(this)], [AttachedPayment(shareAssetId, mint_amount)]) | |
871 | + | let s = invoke(farmingAddress, "lockShareTokens", [toString(this), lockType], [AttachedPayment(shareAssetId, mint_amount)]) | |
869 | 872 | if ((s == s)) | |
870 | 873 | then (scriptActions :+ IntegerEntry(kShareAssetSupply, (shareSupply + mint_amount))) | |
871 | 874 | else throw("Strict value is not equal to itself.") | |
892 | 895 | let D0 = getDMem(xp, amp) | |
893 | 896 | let feeDiscount = calculateFeeDiscount(user) | |
894 | 897 | func calcInvBalances (acc,newBalance) = { | |
895 | - | let $ | |
896 | - | let invBalances = $ | |
897 | - | let i = $ | |
898 | + | let $t02008320109 = acc | |
899 | + | let invBalances = $t02008320109._1 | |
900 | + | let i = $t02008320109._2 | |
898 | 901 | let _fee = ((fraction(fee, feeDiscount, feeScale6, CEILING) * nCoins) / (4 * (nCoins - 1))) | |
899 | 902 | let fees = { | |
900 | 903 | let idealBalance = fraction(D1, xp[i], D0) | |
907 | 910 | $Tuple2((invBalances :+ invariantBalance), (i + 1)) | |
908 | 911 | } | |
909 | 912 | ||
910 | - | let $ | |
913 | + | let $t02071120781 = { | |
911 | 914 | let $l = newBalances | |
912 | 915 | let $s = size($l) | |
913 | 916 | let $acc0 = $Tuple2(nil, 0) | |
921 | 924 | ||
922 | 925 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
923 | 926 | } | |
924 | - | let invBalances = $ | |
925 | - | let k = $ | |
927 | + | let invBalances = $t02071120781._1 | |
928 | + | let k = $t02071120781._2 | |
926 | 929 | let D2 = getDMem(invBalances, amp) | |
927 | 930 | let mintAmount = fraction(shareSupply, (D2 - D0), D0) | |
928 | 931 | $Tuple2(nil, mintAmount) | |
977 | 980 | then throw("Exchange resulted in fewer coins than expected") | |
978 | 981 | else { | |
979 | 982 | func makeNewBalances (acc,tokenBalance) = { | |
980 | - | let $ | |
981 | - | let newBalances = $ | |
982 | - | let i = $ | |
983 | + | let $t02282222848 = acc | |
984 | + | let newBalances = $t02282222848._1 | |
985 | + | let i = $t02282222848._2 | |
983 | 986 | if ((i == fromIndex)) | |
984 | 987 | then $Tuple2((newBalances :+ (tokenBalance + dx)), (i + 1)) | |
985 | 988 | else if ((i == toIndex)) | |
987 | 990 | else $Tuple2((newBalances :+ tokenBalance), (i + 1)) | |
988 | 991 | } | |
989 | 992 | ||
990 | - | let $ | |
993 | + | let $t02309923160 = { | |
991 | 994 | let $l = xp | |
992 | 995 | let $s = size($l) | |
993 | 996 | let $acc0 = $Tuple2(nil, 0) | |
1001 | 1004 | ||
1002 | 1005 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
1003 | 1006 | } | |
1004 | - | let newBalances = $ | |
1005 | - | let i = $ | |
1007 | + | let newBalances = $t02309923160._1 | |
1008 | + | let i = $t02309923160._2 | |
1006 | 1009 | if (checkDAppThreshold(newBalances)) | |
1007 | 1010 | then throw() | |
1008 | 1011 | else { | |
1044 | 1047 | then (suspendSuspicious(suspicious._2) ++ returnPayments(msg.originCaller, msg.payments)) | |
1045 | 1048 | else { | |
1046 | 1049 | func calcScriptActions (acc,balance) = { | |
1047 | - | let $ | |
1048 | - | let scriptActions = $ | |
1049 | - | let i = $ | |
1050 | + | let $t02445124479 = acc | |
1051 | + | let scriptActions = $t02445124479._1 | |
1052 | + | let i = $t02445124479._2 | |
1050 | 1053 | let wAmount = fraction(balance, pmtAmount, shareSupply) | |
1051 | 1054 | if (assert((wAmount >= minAmounts[i]))) | |
1052 | 1055 | then throw("Withdrawal resulted in fewer coins than expected") | |
1058 | 1061 | } | |
1059 | 1062 | } | |
1060 | 1063 | ||
1061 | - | let $ | |
1064 | + | let $t02496925037 = { | |
1062 | 1065 | let $l = _xp() | |
1063 | 1066 | let $s = size($l) | |
1064 | 1067 | let $acc0 = $Tuple2(nil, 0) | |
1072 | 1075 | ||
1073 | 1076 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
1074 | 1077 | } | |
1075 | - | let scriptActions = $ | |
1076 | - | let i = $ | |
1078 | + | let scriptActions = $t02496925037._1 | |
1079 | + | let i = $t02496925037._2 | |
1077 | 1080 | (scriptActions ++ [Burn(shareAssetId, pmtAmount), IntegerEntry(kShareAssetSupply, (shareSupply - pmtAmount))]) | |
1078 | 1081 | } | |
1079 | 1082 | } | |
1140 | 1143 | let outIndex = valueOrErrorMessage(indexOf(assetIds, tokenOut), "unknown token out") | |
1141 | 1144 | let tokenOutB58 = fromBase58String(tokenOut) | |
1142 | 1145 | let xp = _xp() | |
1143 | - | let $ | |
1144 | - | let dy = $ | |
1145 | - | let dy_fee = $ | |
1146 | + | let $t02706927151 = _calcWithdrawOneCoin(xp, pmtAmount, outIndex, msg.originCaller) | |
1147 | + | let dy = $t02706927151._1 | |
1148 | + | let dy_fee = $t02706927151._2 | |
1146 | 1149 | if (assert((dy >= minAmount))) | |
1147 | 1150 | then throw("Not enough coins removed") | |
1148 | 1151 | else { | |
1149 | 1152 | let governanceFees = fraction(dy_fee, feeGovernance, feeScale6) | |
1150 | 1153 | let dy_and_fee = (dy + dy_fee) | |
1151 | 1154 | func makeNewBalances (acc,tokenBalance) = { | |
1152 | - | let $ | |
1153 | - | let newBalances = $ | |
1154 | - | let i = $ | |
1155 | + | let $t02740927435 = acc | |
1156 | + | let newBalances = $t02740927435._1 | |
1157 | + | let i = $t02740927435._2 | |
1155 | 1158 | if ((i == outIndex)) | |
1156 | 1159 | then $Tuple2((newBalances :+ (tokenBalance - dy_and_fee)), (i + 1)) | |
1157 | 1160 | else $Tuple2((newBalances :+ tokenBalance), (i + 1)) | |
1158 | 1161 | } | |
1159 | 1162 | ||
1160 | - | let $ | |
1163 | + | let $t02760227663 = { | |
1161 | 1164 | let $l = xp | |
1162 | 1165 | let $s = size($l) | |
1163 | 1166 | let $acc0 = $Tuple2(nil, 0) | |
1171 | 1174 | ||
1172 | 1175 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
1173 | 1176 | } | |
1174 | - | let newBalances = $ | |
1175 | - | let v = $ | |
1177 | + | let newBalances = $t02760227663._1 | |
1178 | + | let v = $t02760227663._2 | |
1176 | 1179 | if (checkDAppThreshold(newBalances)) | |
1177 | 1180 | then throw() | |
1178 | 1181 | else { | |
1248 | 1251 | let balances = _xp() | |
1249 | 1252 | let D0 = getDMem(balances, amp) | |
1250 | 1253 | func calcNewBalances (acc,balance) = { | |
1251 | - | let $ | |
1252 | - | let newBalances = $ | |
1253 | - | let i = $ | |
1254 | + | let $t02968029706 = acc | |
1255 | + | let newBalances = $t02968029706._1 | |
1256 | + | let i = $t02968029706._2 | |
1254 | 1257 | let newBalance = (balance + (if (deposit) | |
1255 | 1258 | then amounts[i] | |
1256 | 1259 | else -(amounts[i]))) | |
1330 | 1333 | else { | |
1331 | 1334 | let balances = _xp() | |
1332 | 1335 | func takeExtraFunds (acc,assetId) = { | |
1333 | - | let $ | |
1334 | - | let sum = $ | |
1335 | - | let i = $ | |
1336 | + | let $t03204832066 = acc | |
1337 | + | let sum = $t03204832066._1 | |
1338 | + | let i = $t03204832066._2 | |
1336 | 1339 | let tokenB58 = fromBase58String(assetId) | |
1337 | 1340 | let rBalance = (assetBalance(this, tokenB58) + stakedAmount(tokenB58)) | |
1338 | 1341 | let enrollAmount = (rBalance - balances[i]) |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let PRECISION = 1000000 | |
5 | 5 | ||
6 | 6 | let MAX_A = 1000000 | |
7 | 7 | ||
8 | 8 | let MAX_A_CHANGE = 10 | |
9 | 9 | ||
10 | 10 | let DECIMALS = 6 | |
11 | 11 | ||
12 | 12 | let MIN_RAMP_TIME = (86400 / 60) | |
13 | 13 | ||
14 | 14 | let version = "3.0.0" | |
15 | 15 | ||
16 | 16 | let kVersion = "version" | |
17 | 17 | ||
18 | 18 | let kAssets = "asset_ids" | |
19 | 19 | ||
20 | 20 | let kAssetBalance = "_balance" | |
21 | 21 | ||
22 | 22 | let kActive = "active" | |
23 | 23 | ||
24 | 24 | let kCause = "shutdown_cause" | |
25 | 25 | ||
26 | 26 | let kShareAssetId = "share_asset_id" | |
27 | 27 | ||
28 | 28 | let kShareAssetSupply = "share_asset_supply" | |
29 | 29 | ||
30 | 30 | let kFee = "commission" | |
31 | 31 | ||
32 | 32 | let kDAppThresholdCoef = "dAppThresholdCoef" | |
33 | 33 | ||
34 | 34 | let kUSDNAddress = "staking_usdnnsbt_address" | |
35 | 35 | ||
36 | 36 | let kDiscounts = "discounts" | |
37 | 37 | ||
38 | 38 | let kDiscountValues = "discount_values" | |
39 | 39 | ||
40 | 40 | let kUserSwopInGov = "_SWOP_amount" | |
41 | + | ||
42 | + | let kUserGSwopInGov = "_GSwop_amount" | |
41 | 43 | ||
42 | 44 | let kAdminPubKey1 = "admin_pub_1" | |
43 | 45 | ||
44 | 46 | let kAdminPubKey2 = "admin_pub_2" | |
45 | 47 | ||
46 | 48 | let kAdminPubKey3 = "admin_pub_3" | |
47 | 49 | ||
48 | 50 | let kAdminInvokePubKey = "admin_invoke_pub" | |
49 | 51 | ||
50 | 52 | let kMoneyBoxAddress = "money_box_address" | |
51 | 53 | ||
52 | 54 | let kGovAddress = "governance_address" | |
53 | 55 | ||
54 | 56 | let kVotingAddress = "voting_address" | |
55 | 57 | ||
56 | 58 | let kFarmingAddress = "farming_address" | |
57 | 59 | ||
58 | 60 | let kLPFarmingAddress = "lp_farming" | |
59 | 61 | ||
60 | 62 | let oracle = Address(base58'3MvVBtsXroQpy1tsPw21TU2ET9A8WfmrNjz') | |
61 | 63 | ||
62 | 64 | func getBase58FromOracle (key) = match getString(oracle, key) { | |
63 | 65 | case string: String => | |
64 | 66 | fromBase58String(string) | |
65 | 67 | case nothing => | |
66 | 68 | throw((key + "is empty")) | |
67 | 69 | } | |
68 | 70 | ||
69 | 71 | ||
70 | 72 | let adminPubKey1 = getBase58FromOracle(kAdminPubKey1) | |
71 | 73 | ||
72 | 74 | let adminPubKey2 = getBase58FromOracle(kAdminPubKey2) | |
73 | 75 | ||
74 | 76 | let adminPubKey3 = getBase58FromOracle(kAdminPubKey3) | |
75 | 77 | ||
76 | 78 | let adminPubKeyInvoke = getBase58FromOracle(kAdminInvokePubKey) | |
77 | 79 | ||
78 | 80 | let moneyBoxAddress = Address(getBase58FromOracle(kMoneyBoxAddress)) | |
79 | 81 | ||
80 | 82 | let govAddress = Address(getBase58FromOracle(kGovAddress)) | |
81 | 83 | ||
82 | 84 | let stakingUSDNAddress = Address(getBase58FromOracle(kUSDNAddress)) | |
83 | 85 | ||
84 | 86 | let votingAddress = Address(getBase58FromOracle(kVotingAddress)) | |
85 | 87 | ||
86 | 88 | let farmingAddress = Address(getBase58FromOracle(kFarmingAddress)) | |
87 | 89 | ||
88 | 90 | let lpFarmingAddress = Address(getBase58FromOracle(kLPFarmingAddress)) | |
89 | 91 | ||
90 | - | let USDN = base58' | |
92 | + | let USDN = base58'DG2xFkPdDwKUoBkzGAhQtLpSGzfXLiCYPEzeKH2Ad24p' | |
91 | 93 | ||
92 | 94 | let stakingAssets = [toBase58String(USDN)] | |
93 | 95 | ||
94 | 96 | let active = getBooleanValue(this, kActive) | |
95 | 97 | ||
96 | 98 | let shareAssetId = fromBase58String(getStringValue(this, kShareAssetId)) | |
97 | 99 | ||
98 | 100 | let shareSupply = getIntegerValue(this, kShareAssetSupply) | |
99 | 101 | ||
100 | 102 | let feeScale6 = 1000000 | |
101 | 103 | ||
102 | 104 | let fee = getIntegerValue(this, kFee) | |
103 | 105 | ||
104 | 106 | let feeGovernance = fraction(40, feeScale6, 100) | |
105 | 107 | ||
106 | 108 | let initial_A = getIntegerValue(this, "initial_A") | |
107 | 109 | ||
108 | 110 | let future_A = getIntegerValue(this, "future_A") | |
109 | 111 | ||
110 | 112 | let initial_A_time = valueOrElse(getInteger(this, "initial_A_time"), 0) | |
111 | 113 | ||
112 | 114 | let future_A_time = valueOrElse(getInteger(this, "future_A_time"), 0) | |
113 | 115 | ||
114 | 116 | let assetIds = split(getStringValue(this, kAssets), ",") | |
115 | 117 | ||
116 | 118 | let nCoins = size(assetIds) | |
117 | 119 | ||
118 | 120 | func suspend (cause) = [BooleanEntry(kActive, false), StringEntry(kCause, cause)] | |
119 | 121 | ||
120 | 122 | ||
121 | 123 | func throwIsActive () = throw("DApp is already active") | |
122 | 124 | ||
123 | 125 | ||
124 | 126 | func isActive () = if (active) | |
125 | 127 | then unit | |
126 | 128 | else throw("DApp is inactive at this moment") | |
127 | 129 | ||
128 | 130 | ||
129 | 131 | func isAdminCall (i) = if (containsElement([adminPubKey1, adminPubKey2, adminPubKey3], i.callerPublicKey)) | |
130 | 132 | then unit | |
131 | 133 | else throw("Only admin can call this function") | |
132 | 134 | ||
133 | 135 | ||
134 | 136 | func isSelfCall (i) = if ((this == i.caller)) | |
135 | 137 | then unit | |
136 | 138 | else throw("Only contract itself can call this function") | |
137 | 139 | ||
138 | 140 | ||
139 | 141 | let big2 = toBigInt(2) | |
140 | 142 | ||
141 | 143 | let iter10 = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9] | |
142 | 144 | ||
143 | 145 | let iter15 = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14] | |
144 | 146 | ||
145 | 147 | let iter16 = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15] | |
146 | 148 | ||
147 | 149 | let blockTimestamp = height | |
148 | 150 | ||
149 | 151 | func assert (a) = if (a) | |
150 | 152 | then false | |
151 | 153 | else true | |
152 | 154 | ||
153 | 155 | ||
154 | 156 | func calculateFeeDiscount (userAddr) = { | |
155 | 157 | let user = match userAddr { | |
156 | 158 | case u: Address => | |
157 | 159 | toString(u) | |
158 | 160 | case u: String => | |
159 | 161 | u | |
160 | 162 | case _ => | |
161 | 163 | throw("Unknow type of user Addr") | |
162 | 164 | } | |
163 | - | let swopAmount = valueOrElse(getInteger(govAddress, (user + kUserSwopInGov)), 0) | |
165 | + | let swopAmount = valueOrElse(getInteger(govAddress, (user + kUserGSwopInGov)), 0) | |
166 | + | let gSwopAmount = valueOrElse(getInteger(govAddress, (user + kUserGSwopInGov)), swopAmount) | |
164 | 167 | let discountValues = split(getStringValue(oracle, kDiscountValues), ",") | |
165 | 168 | let discounts = split(getStringValue(oracle, kDiscounts), ",") | |
166 | - | if (if (( | |
167 | - | then (parseIntValue(discountValues[1]) > | |
169 | + | if (if ((gSwopAmount >= parseIntValue(discountValues[0]))) | |
170 | + | then (parseIntValue(discountValues[1]) > gSwopAmount) | |
168 | 171 | else false) | |
169 | 172 | then (feeScale6 - parseIntValue(discounts[0])) | |
170 | - | else if (if (( | |
171 | - | then (parseIntValue(discountValues[2]) > | |
173 | + | else if (if ((gSwopAmount >= parseIntValue(discountValues[1]))) | |
174 | + | then (parseIntValue(discountValues[2]) > gSwopAmount) | |
172 | 175 | else false) | |
173 | 176 | then (feeScale6 - parseIntValue(discounts[1])) | |
174 | - | else if (if (( | |
175 | - | then (parseIntValue(discountValues[3]) > | |
177 | + | else if (if ((gSwopAmount >= parseIntValue(discountValues[2]))) | |
178 | + | then (parseIntValue(discountValues[3]) > gSwopAmount) | |
176 | 179 | else false) | |
177 | 180 | then (feeScale6 - parseIntValue(discounts[2])) | |
178 | - | else if (if (( | |
179 | - | then (parseIntValue(discountValues[4]) > | |
181 | + | else if (if ((gSwopAmount >= parseIntValue(discountValues[3]))) | |
182 | + | then (parseIntValue(discountValues[4]) > gSwopAmount) | |
180 | 183 | else false) | |
181 | 184 | then (feeScale6 - parseIntValue(discounts[3])) | |
182 | - | else if (( | |
185 | + | else if ((gSwopAmount >= parseIntValue(discountValues[4]))) | |
183 | 186 | then (feeScale6 - parseIntValue(discounts[4])) | |
184 | 187 | else feeScale6 | |
185 | 188 | } | |
186 | 189 | ||
187 | 190 | ||
188 | 191 | func _A () = { | |
189 | 192 | let t1 = future_A_time | |
190 | 193 | let A1 = future_A | |
191 | 194 | if ((t1 > blockTimestamp)) | |
192 | 195 | then { | |
193 | 196 | let A0 = initial_A | |
194 | 197 | let t0 = initial_A_time | |
195 | 198 | if ((A1 > A0)) | |
196 | 199 | then (A0 + (((A1 - A0) * (blockTimestamp - t0)) / (t1 - t0))) | |
197 | 200 | else (A0 - (((A0 - A1) * (blockTimestamp - t0)) / (t1 - t0))) | |
198 | 201 | } | |
199 | 202 | else A1 | |
200 | 203 | } | |
201 | 204 | ||
202 | 205 | ||
203 | 206 | func _xp () = { | |
204 | 207 | func assetBalances (acc,assetId) = (acc :+ valueOrElse(getInteger(this, (assetId + kAssetBalance)), 0)) | |
205 | 208 | ||
206 | 209 | let $l = assetIds | |
207 | 210 | let $s = size($l) | |
208 | 211 | let $acc0 = nil | |
209 | 212 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
210 | 213 | then $a | |
211 | 214 | else assetBalances($a, $l[$i]) | |
212 | 215 | ||
213 | 216 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
214 | 217 | then $a | |
215 | 218 | else throw("List size exceeds 10") | |
216 | 219 | ||
217 | 220 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
218 | 221 | } | |
219 | 222 | ||
220 | 223 | ||
221 | 224 | func _xp_mem (xp) = xp | |
222 | 225 | ||
223 | 226 | ||
224 | 227 | func sumList (acc,element) = (acc + element) | |
225 | 228 | ||
226 | 229 | ||
227 | 230 | func get_D (xp,amp) = { | |
228 | 231 | let @ = invoke(this, "D", [xp, amp], nil) | |
229 | 232 | if ($isInstanceOf(@, "Int")) | |
230 | 233 | then @ | |
231 | 234 | else throw(($getType(@) + " couldn't be cast to Int")) | |
232 | 235 | } | |
233 | 236 | ||
234 | 237 | ||
235 | 238 | func get_D_internal (xp,amp) = { | |
236 | 239 | let S = { | |
237 | 240 | let $l = xp | |
238 | 241 | let $s = size($l) | |
239 | 242 | let $acc0 = 0 | |
240 | 243 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
241 | 244 | then $a | |
242 | 245 | else sumList($a, $l[$i]) | |
243 | 246 | ||
244 | 247 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
245 | 248 | then $a | |
246 | 249 | else throw("List size exceeds 10") | |
247 | 250 | ||
248 | 251 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
249 | 252 | } | |
250 | 253 | if ((S == 0)) | |
251 | 254 | then 0 | |
252 | 255 | else { | |
253 | 256 | let Ann = (amp * nCoins) | |
254 | 257 | let AnnS = (toBigInt(Ann) * toBigInt(S)) | |
255 | 258 | let Ann1 = toBigInt((Ann - 1)) | |
256 | 259 | func Dproc (acc,i) = if ((acc._2 == true)) | |
257 | 260 | then acc | |
258 | 261 | else { | |
259 | 262 | let Dprev = acc._1 | |
260 | 263 | func D_PProc (D_P,i) = if ((nCoins > i)) | |
261 | 264 | then ((D_P * Dprev) / (toBigInt(xp[i]) * toBigInt(nCoins))) | |
262 | 265 | else D_P | |
263 | 266 | ||
264 | 267 | let D_P = { | |
265 | 268 | let $l = iter10 | |
266 | 269 | let $s = size($l) | |
267 | 270 | let $acc0 = Dprev | |
268 | 271 | func $f1_1 ($a,$i) = if (($i >= $s)) | |
269 | 272 | then $a | |
270 | 273 | else D_PProc($a, $l[$i]) | |
271 | 274 | ||
272 | 275 | func $f1_2 ($a,$i) = if (($i >= $s)) | |
273 | 276 | then $a | |
274 | 277 | else throw("List size exceeds 10") | |
275 | 278 | ||
276 | 279 | $f1_2($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
277 | 280 | } | |
278 | 281 | let D = fraction((AnnS + (toBigInt(nCoins) * D_P)), Dprev, ((Ann1 * Dprev) + (toBigInt((nCoins + 1)) * D_P))) | |
279 | 282 | if ((D > Dprev)) | |
280 | 283 | then if ((1 >= toInt((D - Dprev)))) | |
281 | 284 | then $Tuple2(D, true) | |
282 | 285 | else $Tuple2(D, false) | |
283 | 286 | else if ((1 >= toInt((Dprev - D)))) | |
284 | 287 | then $Tuple2(D, true) | |
285 | 288 | else $Tuple2(D, false) | |
286 | 289 | } | |
287 | 290 | ||
288 | - | let $ | |
291 | + | let $t064616527 = { | |
289 | 292 | let $l = iter15 | |
290 | 293 | let $s = size($l) | |
291 | 294 | let $acc0 = $Tuple2(toBigInt(S), false) | |
292 | 295 | func $f1_1 ($a,$i) = if (($i >= $s)) | |
293 | 296 | then $a | |
294 | 297 | else Dproc($a, $l[$i]) | |
295 | 298 | ||
296 | 299 | func $f1_2 ($a,$i) = if (($i >= $s)) | |
297 | 300 | then $a | |
298 | 301 | else throw("List size exceeds 15") | |
299 | 302 | ||
300 | 303 | $f1_2($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15) | |
301 | 304 | } | |
302 | - | let D = $ | |
303 | - | let finished = $ | |
305 | + | let D = $t064616527._1 | |
306 | + | let finished = $t064616527._2 | |
304 | 307 | if ((finished == false)) | |
305 | 308 | then throw(("get_D() not finished with " + toString(D))) | |
306 | 309 | else toInt(D) | |
307 | 310 | } | |
308 | 311 | } | |
309 | 312 | ||
310 | 313 | ||
311 | 314 | func getDMem (xp,amp) = get_D(_xp_mem(xp), amp) | |
312 | 315 | ||
313 | 316 | ||
314 | 317 | func getY (in,out,x,xp_) = if (assert((in != out))) | |
315 | 318 | then throw("same coin") | |
316 | 319 | else if (assert(if ((out >= 0)) | |
317 | 320 | then (in >= 0) | |
318 | 321 | else false)) | |
319 | 322 | then throw("below zero") | |
320 | 323 | else if (assert(if ((nCoins > out)) | |
321 | 324 | then (nCoins > in) | |
322 | 325 | else false)) | |
323 | 326 | then throw("above N_COINS") | |
324 | 327 | else { | |
325 | 328 | let amp = _A() | |
326 | 329 | let D = get_D(xp_, amp) | |
327 | 330 | let Ann = (amp * nCoins) | |
328 | 331 | func S_c (acc,i) = { | |
329 | - | let $ | |
330 | - | let S_ = $ | |
331 | - | let c = $ | |
332 | + | let $t070987115 = acc | |
333 | + | let S_ = $t070987115._1 | |
334 | + | let c = $t070987115._2 | |
332 | 335 | let x_ = if ((in == i)) | |
333 | 336 | then x | |
334 | 337 | else xp_[i] | |
335 | 338 | if (if ((i != out)) | |
336 | 339 | then (nCoins > i) | |
337 | 340 | else false) | |
338 | 341 | then $Tuple2((S_ + x_), fraction(c, toBigInt(D), toBigInt((x_ * nCoins)))) | |
339 | 342 | else $Tuple2(S_, c) | |
340 | 343 | } | |
341 | 344 | ||
342 | - | let $ | |
345 | + | let $t073237378 = { | |
343 | 346 | let $l = iter10 | |
344 | 347 | let $s = size($l) | |
345 | 348 | let $acc0 = $Tuple2(0, toBigInt(D)) | |
346 | 349 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
347 | 350 | then $a | |
348 | 351 | else S_c($a, $l[$i]) | |
349 | 352 | ||
350 | 353 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
351 | 354 | then $a | |
352 | 355 | else throw("List size exceeds 10") | |
353 | 356 | ||
354 | 357 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
355 | 358 | } | |
356 | - | let S_ = $ | |
357 | - | let c_ = $ | |
359 | + | let S_ = $t073237378._1 | |
360 | + | let c_ = $t073237378._2 | |
358 | 361 | let c = fraction(c_, toBigInt(D), toBigInt((Ann * nCoins))) | |
359 | 362 | let bD = toBigInt(((S_ + (D / Ann)) - D)) | |
360 | 363 | func y_proc (acc,_i) = if ((acc._2 == true)) | |
361 | 364 | then acc | |
362 | 365 | else { | |
363 | 366 | let y_prev = acc._1 | |
364 | 367 | let y = (((y_prev * y_prev) + c) / ((big2 * y_prev) + bD)) | |
365 | 368 | if ((y > y_prev)) | |
366 | 369 | then if ((1 >= toInt((y - y_prev)))) | |
367 | 370 | then $Tuple2(y, true) | |
368 | 371 | else $Tuple2(y, false) | |
369 | 372 | else if ((1 >= toInt((y_prev - y)))) | |
370 | 373 | then $Tuple2(y, true) | |
371 | 374 | else $Tuple2(y, false) | |
372 | 375 | } | |
373 | 376 | ||
374 | - | let $ | |
377 | + | let $t078607927 = { | |
375 | 378 | let $l = iter16 | |
376 | 379 | let $s = size($l) | |
377 | 380 | let $acc0 = $Tuple2(toBigInt(D), false) | |
378 | 381 | func $f1_1 ($a,$i) = if (($i >= $s)) | |
379 | 382 | then $a | |
380 | 383 | else y_proc($a, $l[$i]) | |
381 | 384 | ||
382 | 385 | func $f1_2 ($a,$i) = if (($i >= $s)) | |
383 | 386 | then $a | |
384 | 387 | else throw("List size exceeds 16") | |
385 | 388 | ||
386 | 389 | $f1_2($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16) | |
387 | 390 | } | |
388 | - | let y = $ | |
389 | - | let finished = $ | |
391 | + | let y = $t078607927._1 | |
392 | + | let finished = $t078607927._2 | |
390 | 393 | if ((finished == false)) | |
391 | 394 | then throw(("getY() not finished with " + toString(y))) | |
392 | 395 | else toInt(y) | |
393 | 396 | } | |
394 | 397 | ||
395 | 398 | ||
396 | 399 | func get_y_D (A_,in,xp,D) = if (assert((in >= 0))) | |
397 | 400 | then throw("i below zero") | |
398 | 401 | else if (assert((nCoins > in))) | |
399 | 402 | then throw("i above N_COINS") | |
400 | 403 | else { | |
401 | 404 | let Ann = (A_ * nCoins) | |
402 | 405 | func S_c (acc,i) = { | |
403 | - | let $ | |
404 | - | let S_ = $ | |
405 | - | let c = $ | |
406 | + | let $t083068323 = acc | |
407 | + | let S_ = $t083068323._1 | |
408 | + | let c = $t083068323._2 | |
406 | 409 | let x_ = if (if ((in != i)) | |
407 | 410 | then (nCoins > i) | |
408 | 411 | else false) | |
409 | 412 | then xp[i] | |
410 | 413 | else 0 | |
411 | 414 | if (if ((nCoins > i)) | |
412 | 415 | then (in != i) | |
413 | 416 | else false) | |
414 | 417 | then $Tuple2((S_ + x_), fraction(c, toBigInt(D), toBigInt((x_ * nCoins)))) | |
415 | 418 | else $Tuple2(S_, c) | |
416 | 419 | } | |
417 | 420 | ||
418 | - | let $ | |
421 | + | let $t085438598 = { | |
419 | 422 | let $l = iter10 | |
420 | 423 | let $s = size($l) | |
421 | 424 | let $acc0 = $Tuple2(0, toBigInt(D)) | |
422 | 425 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
423 | 426 | then $a | |
424 | 427 | else S_c($a, $l[$i]) | |
425 | 428 | ||
426 | 429 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
427 | 430 | then $a | |
428 | 431 | else throw("List size exceeds 10") | |
429 | 432 | ||
430 | 433 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
431 | 434 | } | |
432 | - | let S_ = $ | |
433 | - | let c_ = $ | |
435 | + | let S_ = $t085438598._1 | |
436 | + | let c_ = $t085438598._2 | |
434 | 437 | let c = fraction(c_, toBigInt(D), toBigInt((Ann * nCoins))) | |
435 | 438 | let bD = toBigInt(((S_ + (D / Ann)) - D)) | |
436 | 439 | func y_D_proc (acc,i) = if ((acc._2 == true)) | |
437 | 440 | then acc | |
438 | 441 | else { | |
439 | 442 | let y_prev = acc._1 | |
440 | 443 | let y = (((y_prev * y_prev) + c) / ((big2 * y_prev) + bD)) | |
441 | 444 | if ((y > y_prev)) | |
442 | 445 | then if ((1 >= toInt((y - y_prev)))) | |
443 | 446 | then $Tuple2(y, true) | |
444 | 447 | else $Tuple2(y, false) | |
445 | 448 | else if ((1 >= toInt((y_prev - y)))) | |
446 | 449 | then $Tuple2(y, true) | |
447 | 450 | else $Tuple2(y, false) | |
448 | 451 | } | |
449 | 452 | ||
450 | - | let $ | |
453 | + | let $t090819150 = { | |
451 | 454 | let $l = iter16 | |
452 | 455 | let $s = size($l) | |
453 | 456 | let $acc0 = $Tuple2(toBigInt(D), false) | |
454 | 457 | func $f1_1 ($a,$i) = if (($i >= $s)) | |
455 | 458 | then $a | |
456 | 459 | else y_D_proc($a, $l[$i]) | |
457 | 460 | ||
458 | 461 | func $f1_2 ($a,$i) = if (($i >= $s)) | |
459 | 462 | then $a | |
460 | 463 | else throw("List size exceeds 16") | |
461 | 464 | ||
462 | 465 | $f1_2($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16) | |
463 | 466 | } | |
464 | - | let y = $ | |
465 | - | let finished = $ | |
467 | + | let y = $t090819150._1 | |
468 | + | let finished = $t090819150._2 | |
466 | 469 | if ((finished == false)) | |
467 | 470 | then throw(("get_y_D() not finished with " + toString(y))) | |
468 | 471 | else toInt(y) | |
469 | 472 | } | |
470 | 473 | ||
471 | 474 | ||
472 | 475 | func _calcWithdrawOneCoin (xp,_token_amount,i,caller) = { | |
473 | 476 | let feeDiscount = calculateFeeDiscount(caller) | |
474 | 477 | let amp = _A() | |
475 | 478 | let _fee = ((fraction(fee, feeDiscount, feeScale6, CEILING) * nCoins) / (4 * (nCoins - 1))) | |
476 | 479 | let total_supply = shareSupply | |
477 | 480 | let D0 = get_D(xp, amp) | |
478 | 481 | let D1 = (D0 - fraction(_token_amount, D0, total_supply)) | |
479 | 482 | let new_y = get_y_D(amp, i, xp, D1) | |
480 | 483 | let dy_0 = (xp[i] - new_y) | |
481 | 484 | func xp_reduced_proc (acc,xp_j) = { | |
482 | - | let $ | |
483 | - | let xp_reduced = $ | |
484 | - | let index = $ | |
485 | + | let $t097919820 = acc | |
486 | + | let xp_reduced = $t097919820._1 | |
487 | + | let index = $t097919820._2 | |
485 | 488 | let dx_expected = if ((index == i)) | |
486 | 489 | then (fraction(xp_j, D1, D0) - new_y) | |
487 | 490 | else (xp_j - fraction(xp_j, D1, D0)) | |
488 | 491 | $Tuple2((xp_reduced :+ (xp_j - fraction(_fee, dx_expected, feeScale6))), (index + 1)) | |
489 | 492 | } | |
490 | 493 | ||
491 | - | let $ | |
494 | + | let $t01008210146 = { | |
492 | 495 | let $l = xp | |
493 | 496 | let $s = size($l) | |
494 | 497 | let $acc0 = $Tuple2(nil, 0) | |
495 | 498 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
496 | 499 | then $a | |
497 | 500 | else xp_reduced_proc($a, $l[$i]) | |
498 | 501 | ||
499 | 502 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
500 | 503 | then $a | |
501 | 504 | else throw("List size exceeds 10") | |
502 | 505 | ||
503 | 506 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
504 | 507 | } | |
505 | - | let xp_reduced = $ | |
506 | - | let index = $ | |
508 | + | let xp_reduced = $t01008210146._1 | |
509 | + | let index = $t01008210146._2 | |
507 | 510 | let xp_reduced_i = xp_reduced[i] | |
508 | 511 | let dy = ((xp_reduced_i - get_y_D(amp, i, xp_reduced, D1)) - 1) | |
509 | 512 | $Tuple2(dy, (dy_0 - dy)) | |
510 | 513 | } | |
511 | 514 | ||
512 | 515 | ||
513 | 516 | func getStrAssetId (assetId) = match assetId { | |
514 | 517 | case id: ByteVector => | |
515 | 518 | toBase58String(id) | |
516 | 519 | case waves: Unit => | |
517 | 520 | "WAVES" | |
518 | 521 | case _ => | |
519 | 522 | throw("Match error") | |
520 | 523 | } | |
521 | 524 | ||
522 | 525 | ||
523 | 526 | func calcStakingFuncAndAddres (stake,assetId) = if (stake) | |
524 | 527 | then $Tuple2("lockNeutrino", stakingUSDNAddress) | |
525 | 528 | else $Tuple2("unlockNeutrino", stakingUSDNAddress) | |
526 | 529 | ||
527 | 530 | ||
528 | 531 | func calcStakingParams (stake,amount,assetId) = if (stake) | |
529 | 532 | then { | |
530 | - | let $ | |
531 | - | let call = $ | |
532 | - | let stakingAddr = $ | |
533 | + | let $t01071010776 = calcStakingFuncAndAddres(stake, assetId) | |
534 | + | let call = $t01071010776._1 | |
535 | + | let stakingAddr = $t01071010776._2 | |
533 | 536 | $Tuple4(call, stakingAddr, nil, [AttachedPayment(assetId, amount)]) | |
534 | 537 | } | |
535 | 538 | else { | |
536 | - | let $ | |
537 | - | let call = $ | |
538 | - | let stakingAddr = $ | |
539 | + | let $t01086210928 = calcStakingFuncAndAddres(stake, assetId) | |
540 | + | let call = $t01086210928._1 | |
541 | + | let stakingAddr = $t01086210928._2 | |
539 | 542 | $Tuple4(call, stakingAddr, [amount, toBase58String(assetId)], nil) | |
540 | 543 | } | |
541 | 544 | ||
542 | 545 | ||
543 | 546 | func stake (amount,assetIdString) = if (containsElement(stakingAssets, assetIdString)) | |
544 | 547 | then { | |
545 | - | let $ | |
546 | - | let call = $ | |
547 | - | let addr = $ | |
548 | - | let params = $ | |
549 | - | let payments = $ | |
548 | + | let $t01111511217 = calcStakingParams(true, amount, fromBase58String(assetIdString)) | |
549 | + | let call = $t01111511217._1 | |
550 | + | let addr = $t01111511217._2 | |
551 | + | let params = $t01111511217._3 | |
552 | + | let payments = $t01111511217._4 | |
550 | 553 | invoke(addr, call, params, payments) | |
551 | 554 | } | |
552 | 555 | else 0 | |
553 | 556 | ||
554 | 557 | ||
555 | 558 | func unstake (amount,assetIdString) = if (containsElement(stakingAssets, assetIdString)) | |
556 | 559 | then { | |
557 | - | let $ | |
558 | - | let call = $ | |
559 | - | let addr = $ | |
560 | - | let params = $ | |
561 | - | let payments = $ | |
560 | + | let $t01140211505 = calcStakingParams(false, amount, fromBase58String(assetIdString)) | |
561 | + | let call = $t01140211505._1 | |
562 | + | let addr = $t01140211505._2 | |
563 | + | let params = $t01140211505._3 | |
564 | + | let payments = $t01140211505._4 | |
562 | 565 | invoke(addr, call, params, payments) | |
563 | 566 | } | |
564 | 567 | else 0 | |
565 | 568 | ||
566 | 569 | ||
567 | 570 | func stakedAmount (assetId) = { | |
568 | 571 | let stakedAmountCalculated = match assetId { | |
569 | 572 | case aId: ByteVector => | |
570 | 573 | if ((aId == USDN)) | |
571 | 574 | then getInteger(stakingUSDNAddress, ((("rpd_balance_" + toBase58String(aId)) + "_") + toString(this))) | |
572 | 575 | else 0 | |
573 | 576 | case _: Unit => | |
574 | 577 | 0 | |
575 | 578 | case _ => | |
576 | 579 | throw("Match error") | |
577 | 580 | } | |
578 | 581 | match stakedAmountCalculated { | |
579 | 582 | case i: Int => | |
580 | 583 | i | |
581 | 584 | case _ => | |
582 | 585 | 0 | |
583 | 586 | } | |
584 | 587 | } | |
585 | 588 | ||
586 | 589 | ||
587 | 590 | func checkSuspicious () = { | |
588 | 591 | let contractBalances = _xp() | |
589 | 592 | func checkBalance (acc,assetId) = { | |
590 | - | let $ | |
591 | - | let suspicious = $ | |
592 | - | let i = $ | |
593 | + | let $t01211612141 = acc | |
594 | + | let suspicious = $t01211612141._1 | |
595 | + | let i = $t01211612141._2 | |
593 | 596 | if (suspicious) | |
594 | 597 | then $Tuple2(suspicious, i) | |
595 | 598 | else { | |
596 | 599 | let aBalance = (assetBalance(this, fromBase58String(assetId)) + stakedAmount(fromBase58String(assetId))) | |
597 | 600 | if ((contractBalances[i] > aBalance)) | |
598 | 601 | then $Tuple2(true, i) | |
599 | 602 | else $Tuple2(false, (i + 1)) | |
600 | 603 | } | |
601 | 604 | } | |
602 | 605 | ||
603 | 606 | let $l = assetIds | |
604 | 607 | let $s = size($l) | |
605 | 608 | let $acc0 = $Tuple2(false, 0) | |
606 | 609 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
607 | 610 | then $a | |
608 | 611 | else checkBalance($a, $l[$i]) | |
609 | 612 | ||
610 | 613 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
611 | 614 | then $a | |
612 | 615 | else throw("List size exceeds 10") | |
613 | 616 | ||
614 | 617 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
615 | 618 | } | |
616 | 619 | ||
617 | 620 | ||
618 | 621 | func suspendSuspicious (i) = suspend(("Suspicious state with asset: " + assetIds[i])) | |
619 | 622 | ||
620 | 623 | ||
621 | 624 | func returnPayments (caller,payments) = { | |
622 | 625 | func parsePayments (acc,payment) = (acc :+ ScriptTransfer(caller, payment.amount, payment.assetId)) | |
623 | 626 | ||
624 | 627 | let $l = payments | |
625 | 628 | let $s = size($l) | |
626 | 629 | let $acc0 = nil | |
627 | 630 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
628 | 631 | then $a | |
629 | 632 | else parsePayments($a, $l[$i]) | |
630 | 633 | ||
631 | 634 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
632 | 635 | then $a | |
633 | 636 | else throw("List size exceeds 10") | |
634 | 637 | ||
635 | 638 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
636 | 639 | } | |
637 | 640 | ||
638 | 641 | ||
639 | 642 | func checkDAppThreshold (newBalances) = { | |
640 | 643 | let dAppThresholdCoef = valueOrErrorMessage(getInteger(this, kDAppThresholdCoef), "No dAppThresholdCoef key") | |
641 | 644 | let thresholdScale = 10000 | |
642 | 645 | let maxBalance = max(newBalances) | |
643 | 646 | let minBalance = min(newBalances) | |
644 | 647 | let ratio = fraction(maxBalance, thresholdScale, minBalance) | |
645 | 648 | if ((ratio > (dAppThresholdCoef * thresholdScale))) | |
646 | 649 | then throw("New balance in assets of the DApp is less than threshold") | |
647 | 650 | else false | |
648 | 651 | } | |
649 | 652 | ||
650 | 653 | ||
651 | 654 | func checkCoins (assetIds) = { | |
652 | 655 | let coins = split(assetIds, ",") | |
653 | 656 | if ((size(coins) > 10)) | |
654 | 657 | then throw("To many coins, max coins size 10") | |
655 | 658 | else { | |
656 | 659 | func checkCoin (error,assetId) = { | |
657 | 660 | let asset = valueOrErrorMessage(fromBase58String(assetId), ("fromBase58String: " + assetId)) | |
658 | 661 | let decimals = valueOrErrorMessage(assetInfo(asset), ("assetInfo: " + assetId)).decimals | |
659 | 662 | if ((decimals != DECIMALS)) | |
660 | 663 | then throw("wrong decimals") | |
661 | 664 | else false | |
662 | 665 | } | |
663 | 666 | ||
664 | 667 | let $l = coins | |
665 | 668 | let $s = size($l) | |
666 | 669 | let $acc0 = false | |
667 | 670 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
668 | 671 | then $a | |
669 | 672 | else checkCoin($a, $l[$i]) | |
670 | 673 | ||
671 | 674 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
672 | 675 | then $a | |
673 | 676 | else throw("List size exceeds 10") | |
674 | 677 | ||
675 | 678 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
676 | 679 | } | |
677 | 680 | } | |
678 | 681 | ||
679 | 682 | ||
680 | 683 | @Callable(msg) | |
681 | 684 | func D (xp,amp) = { | |
682 | 685 | let D = get_D_internal(xp, amp) | |
683 | 686 | $Tuple2([IntegerEntry("D", D)], D) | |
684 | 687 | } | |
685 | 688 | ||
686 | 689 | ||
687 | 690 | ||
688 | 691 | @Callable(msg) | |
689 | 692 | func init (assetIds,_A,_dAppThresholdCoef) = if (!(isDataStorageUntouched(this))) | |
690 | 693 | then throw("Already initialized") | |
691 | 694 | else if ((0 >= _A)) | |
692 | 695 | then throw("Amp must be must > 0") | |
693 | 696 | else if ((0 >= _dAppThresholdCoef)) | |
694 | 697 | then throw("dApp Threshold Coef must be > 0") | |
695 | 698 | else { | |
696 | 699 | let shareName = "s_Multi_USD" | |
697 | 700 | let shareDescription = ("ShareToken of SwopFi protocol for MultiStable USD pool at address " + toString(this)) | |
698 | 701 | let issueToken = Issue(shareName, shareDescription, 0, 6, true) | |
699 | 702 | let tokenId = calculateAssetId(issueToken) | |
700 | 703 | if (checkCoins(assetIds)) | |
701 | 704 | then throw() | |
702 | 705 | else [StringEntry(kVersion, version), StringEntry(kAssets, assetIds), IntegerEntry("initial_A", _A), IntegerEntry("future_A", _A), IntegerEntry(kFee, getIntegerValue(oracle, "base_fee_flat")), StringEntry(kShareAssetId, toBase58String(tokenId)), IntegerEntry(kShareAssetSupply, 0), IntegerEntry(kDAppThresholdCoef, _dAppThresholdCoef), BooleanEntry(kActive, true), issueToken] | |
703 | 706 | } | |
704 | 707 | ||
705 | 708 | ||
706 | 709 | ||
707 | 710 | @Callable(msg) | |
708 | - | func addLiquidity (minMintAmount,stakeFarming) = valueOrElse(isActive(), { | |
711 | + | func addLiquidity (minMintAmount,stakeFarming,lockType) = valueOrElse(isActive(), { | |
709 | 712 | let amp = _A() | |
710 | 713 | let xp = _xp() | |
711 | 714 | let D0 = if ((shareSupply == 0)) | |
712 | 715 | then 0 | |
713 | 716 | else getDMem(xp, amp) | |
714 | 717 | let payments = msg.payments | |
715 | 718 | let paymentsSize = size(payments) | |
716 | 719 | func validPayments (n) = if ((paymentsSize > nCoins)) | |
717 | 720 | then throw(("payments size > " + toString(nCoins))) | |
718 | 721 | else if ((1 > paymentsSize)) | |
719 | 722 | then throw("payments size < 1") | |
720 | 723 | else if (if ((shareSupply == 0)) | |
721 | 724 | then (nCoins != paymentsSize) | |
722 | 725 | else false) | |
723 | 726 | then throw("initial deposit requires all coins") | |
724 | 727 | else { | |
725 | 728 | func paymantValid (acc,payment) = if (containsElement(assetIds, getStrAssetId(payment.assetId))) | |
726 | 729 | then true | |
727 | 730 | else throw("Invalid asset in payment") | |
728 | 731 | ||
729 | 732 | let $l = payments | |
730 | 733 | let $s = size($l) | |
731 | 734 | let $acc0 = false | |
732 | 735 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
733 | 736 | then $a | |
734 | 737 | else paymantValid($a, $l[$i]) | |
735 | 738 | ||
736 | 739 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
737 | 740 | then $a | |
738 | 741 | else throw("List size exceeds 10") | |
739 | 742 | ||
740 | 743 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
741 | 744 | } | |
742 | 745 | ||
743 | 746 | if (!(validPayments(paymentsSize))) | |
744 | 747 | then throw() | |
745 | 748 | else { | |
746 | 749 | let suspicious = checkSuspicious() | |
747 | 750 | if (suspicious._1) | |
748 | 751 | then (suspendSuspicious(suspicious._2) ++ returnPayments(msg.caller, payments)) | |
749 | 752 | else { | |
750 | 753 | func parsePayments (acc,assetId) = { | |
751 | - | let $ | |
752 | - | let newBalances = $ | |
753 | - | let i = $ | |
754 | + | let $t01624716273 = acc | |
755 | + | let newBalances = $t01624716273._1 | |
756 | + | let i = $t01624716273._2 | |
754 | 757 | func parsePayment (newBalance,payment) = if ((getStrAssetId(payment.assetId) == assetId)) | |
755 | 758 | then (newBalance + payment.amount) | |
756 | 759 | else newBalance | |
757 | 760 | ||
758 | 761 | let newBalace = { | |
759 | 762 | let $l = payments | |
760 | 763 | let $s = size($l) | |
761 | 764 | let $acc0 = xp[i] | |
762 | 765 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
763 | 766 | then $a | |
764 | 767 | else parsePayment($a, $l[$i]) | |
765 | 768 | ||
766 | 769 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
767 | 770 | then $a | |
768 | 771 | else throw("List size exceeds 10") | |
769 | 772 | ||
770 | 773 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
771 | 774 | } | |
772 | 775 | $Tuple2((newBalances :+ newBalace), (i + 1)) | |
773 | 776 | } | |
774 | 777 | ||
775 | - | let $ | |
778 | + | let $t01662316690 = { | |
776 | 779 | let $l = assetIds | |
777 | 780 | let $s = size($l) | |
778 | 781 | let $acc0 = $Tuple2(nil, 0) | |
779 | 782 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
780 | 783 | then $a | |
781 | 784 | else parsePayments($a, $l[$i]) | |
782 | 785 | ||
783 | 786 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
784 | 787 | then $a | |
785 | 788 | else throw("List size exceeds 10") | |
786 | 789 | ||
787 | 790 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
788 | 791 | } | |
789 | - | let newBalances = $ | |
790 | - | let k = $ | |
792 | + | let newBalances = $t01662316690._1 | |
793 | + | let k = $t01662316690._2 | |
791 | 794 | if (checkDAppThreshold(newBalances)) | |
792 | 795 | then throw() | |
793 | 796 | else { | |
794 | 797 | let D1 = getDMem(newBalances, amp) | |
795 | 798 | if (assert((D1 > D0))) | |
796 | 799 | then throw("D1 > D0") | |
797 | 800 | else { | |
798 | 801 | let feeDiscount = calculateFeeDiscount(msg.caller) | |
799 | 802 | func calcScriptActions (acc,newBalance) = { | |
800 | - | let $ | |
801 | - | let invBalances = $ | |
802 | - | let scriptActions = $ | |
803 | - | let i = $ | |
803 | + | let $t01701017051 = acc | |
804 | + | let invBalances = $t01701017051._1 | |
805 | + | let scriptActions = $t01701017051._2 | |
806 | + | let i = $t01701017051._3 | |
804 | 807 | if ((shareSupply > 0)) | |
805 | 808 | then { | |
806 | 809 | let _fee = ((fraction(fee, feeDiscount, feeScale6, CEILING) * nCoins) / (4 * (nCoins - 1))) | |
807 | 810 | let fees = { | |
808 | 811 | let idealBalance = fraction(D1, xp[i], D0) | |
809 | 812 | let difference = if ((idealBalance > newBalance)) | |
810 | 813 | then (idealBalance - newBalance) | |
811 | 814 | else (newBalance - idealBalance) | |
812 | 815 | fraction(_fee, difference, feeScale6) | |
813 | 816 | } | |
814 | 817 | let governanceFees = fraction(fees, feeGovernance, feeScale6) | |
815 | 818 | let finalBalance = (newBalance - fees) | |
816 | 819 | let invariantBalance = (newBalance - fees) | |
817 | 820 | let pmt = (newBalance - xp[i]) | |
818 | 821 | let lpFees = (fees - governanceFees) | |
819 | 822 | let inv = if ((pmt > 0)) | |
820 | 823 | then stake((pmt - fees), assetIds[i]) | |
821 | 824 | else unstake(fees, assetIds[i]) | |
822 | 825 | if ((inv == inv)) | |
823 | 826 | then { | |
824 | 827 | let airdrop = if ((lpFees > 0)) | |
825 | 828 | then invoke(lpFarmingAddress, "airDrop", nil, [AttachedPayment(fromBase58String(assetIds[i]), lpFees)]) | |
826 | 829 | else 0 | |
827 | 830 | if ((airdrop == airdrop)) | |
828 | 831 | then $Tuple3((invBalances :+ invariantBalance), (scriptActions ++ [ScriptTransfer(moneyBoxAddress, governanceFees, fromBase58String(assetIds[i])), IntegerEntry((assetIds[i] + kAssetBalance), finalBalance)]), (i + 1)) | |
829 | 832 | else throw("Strict value is not equal to itself.") | |
830 | 833 | } | |
831 | 834 | else throw("Strict value is not equal to itself.") | |
832 | 835 | } | |
833 | 836 | else { | |
834 | 837 | let inv = stake(newBalance, assetIds[i]) | |
835 | 838 | if ((inv == inv)) | |
836 | 839 | then $Tuple3((invBalances :+ newBalance), (scriptActions :+ IntegerEntry((assetIds[i] + kAssetBalance), newBalance)), (i + 1)) | |
837 | 840 | else throw("Strict value is not equal to itself.") | |
838 | 841 | } | |
839 | 842 | } | |
840 | 843 | ||
841 | - | let $ | |
844 | + | let $t01875618844 = { | |
842 | 845 | let $l = newBalances | |
843 | 846 | let $s = size($l) | |
844 | 847 | let $acc0 = $Tuple3(nil, nil, 0) | |
845 | 848 | func $f1_1 ($a,$i) = if (($i >= $s)) | |
846 | 849 | then $a | |
847 | 850 | else calcScriptActions($a, $l[$i]) | |
848 | 851 | ||
849 | 852 | func $f1_2 ($a,$i) = if (($i >= $s)) | |
850 | 853 | then $a | |
851 | 854 | else throw("List size exceeds 10") | |
852 | 855 | ||
853 | 856 | $f1_2($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($f1_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
854 | 857 | } | |
855 | - | let invBalances = $ | |
856 | - | let scriptActions = $ | |
858 | + | let invBalances = $t01875618844._1 | |
859 | + | let scriptActions = $t01875618844._2 | |
857 | 860 | let D2 = getDMem(invBalances, amp) | |
858 | 861 | let mint_amount = if ((shareSupply == 0)) | |
859 | 862 | then D1 | |
860 | 863 | else fraction(shareSupply, (D2 - D0), D0) | |
861 | 864 | if (assert((mint_amount >= minMintAmount))) | |
862 | 865 | then throw("Slippage screwed you") | |
863 | 866 | else if (stakeFarming) | |
864 | 867 | then { | |
865 | 868 | let re = invoke(this, "reissueShare", [mint_amount], nil) | |
866 | 869 | if ((re == re)) | |
867 | 870 | then { | |
868 | - | let s = invoke(farmingAddress, "lockShareTokens", [toString(this)], [AttachedPayment(shareAssetId, mint_amount)]) | |
871 | + | let s = invoke(farmingAddress, "lockShareTokens", [toString(this), lockType], [AttachedPayment(shareAssetId, mint_amount)]) | |
869 | 872 | if ((s == s)) | |
870 | 873 | then (scriptActions :+ IntegerEntry(kShareAssetSupply, (shareSupply + mint_amount))) | |
871 | 874 | else throw("Strict value is not equal to itself.") | |
872 | 875 | } | |
873 | 876 | else throw("Strict value is not equal to itself.") | |
874 | 877 | } | |
875 | 878 | else (scriptActions ++ [Reissue(shareAssetId, mint_amount, true), ScriptTransfer(msg.caller, mint_amount, shareAssetId), IntegerEntry(kShareAssetSupply, (shareSupply + mint_amount))]) | |
876 | 879 | } | |
877 | 880 | } | |
878 | 881 | } | |
879 | 882 | } | |
880 | 883 | }) | |
881 | 884 | ||
882 | 885 | ||
883 | 886 | ||
884 | 887 | @Callable(msg) | |
885 | 888 | func calcMintAmount (newBalances,user) = { | |
886 | 889 | let amp = _A() | |
887 | 890 | let xp = _xp() | |
888 | 891 | let D1 = getDMem(newBalances, amp) | |
889 | 892 | if ((shareSupply == 0)) | |
890 | 893 | then $Tuple2(nil, D1) | |
891 | 894 | else { | |
892 | 895 | let D0 = getDMem(xp, amp) | |
893 | 896 | let feeDiscount = calculateFeeDiscount(user) | |
894 | 897 | func calcInvBalances (acc,newBalance) = { | |
895 | - | let $ | |
896 | - | let invBalances = $ | |
897 | - | let i = $ | |
898 | + | let $t02008320109 = acc | |
899 | + | let invBalances = $t02008320109._1 | |
900 | + | let i = $t02008320109._2 | |
898 | 901 | let _fee = ((fraction(fee, feeDiscount, feeScale6, CEILING) * nCoins) / (4 * (nCoins - 1))) | |
899 | 902 | let fees = { | |
900 | 903 | let idealBalance = fraction(D1, xp[i], D0) | |
901 | 904 | let difference = if ((idealBalance > newBalance)) | |
902 | 905 | then (idealBalance - newBalance) | |
903 | 906 | else (newBalance - idealBalance) | |
904 | 907 | fraction(_fee, difference, feeScale6) | |
905 | 908 | } | |
906 | 909 | let invariantBalance = (newBalance - fees) | |
907 | 910 | $Tuple2((invBalances :+ invariantBalance), (i + 1)) | |
908 | 911 | } | |
909 | 912 | ||
910 | - | let $ | |
913 | + | let $t02071120781 = { | |
911 | 914 | let $l = newBalances | |
912 | 915 | let $s = size($l) | |
913 | 916 | let $acc0 = $Tuple2(nil, 0) | |
914 | 917 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
915 | 918 | then $a | |
916 | 919 | else calcInvBalances($a, $l[$i]) | |
917 | 920 | ||
918 | 921 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
919 | 922 | then $a | |
920 | 923 | else throw("List size exceeds 10") | |
921 | 924 | ||
922 | 925 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
923 | 926 | } | |
924 | - | let invBalances = $ | |
925 | - | let k = $ | |
927 | + | let invBalances = $t02071120781._1 | |
928 | + | let k = $t02071120781._2 | |
926 | 929 | let D2 = getDMem(invBalances, amp) | |
927 | 930 | let mintAmount = fraction(shareSupply, (D2 - D0), D0) | |
928 | 931 | $Tuple2(nil, mintAmount) | |
929 | 932 | } | |
930 | 933 | } | |
931 | 934 | ||
932 | 935 | ||
933 | 936 | ||
934 | 937 | @Callable(msg) | |
935 | 938 | func reissueShare (amount) = valueOrElse(isSelfCall(msg), [Reissue(shareAssetId, amount, true)]) | |
936 | 939 | ||
937 | 940 | ||
938 | 941 | ||
939 | 942 | @Callable(msg) | |
940 | 943 | func getDy (assetFrom,assetTo,dx,userAddress) = { | |
941 | 944 | let xp = _xp() | |
942 | 945 | let fromIndex = valueOrErrorMessage(indexOf(assetIds, assetFrom), "unknown token in") | |
943 | 946 | let toIndex = valueOrErrorMessage(indexOf(assetIds, assetTo), "unknown token out") | |
944 | 947 | let x = (xp[fromIndex] + dx) | |
945 | 948 | let y = getY(fromIndex, toIndex, x, xp) | |
946 | 949 | let dy = ((xp[toIndex] - y) - 1) | |
947 | 950 | let feeDiscount = calculateFeeDiscount(Address(fromBase58String(userAddress))) | |
948 | 951 | let _fee = fraction(fraction(fee, feeDiscount, feeScale6, CEILING), dy, feeScale6) | |
949 | 952 | $Tuple2(nil, $Tuple2((dy - _fee), _fee)) | |
950 | 953 | } | |
951 | 954 | ||
952 | 955 | ||
953 | 956 | ||
954 | 957 | @Callable(msg) | |
955 | 958 | func exchange (tokenOut,min_dy) = valueOrElse(isActive(), if ((size(msg.payments) != 1)) | |
956 | 959 | then throw("size(payments) != 1") | |
957 | 960 | else { | |
958 | 961 | let suspicious = checkSuspicious() | |
959 | 962 | if (suspicious._1) | |
960 | 963 | then (suspendSuspicious(suspicious._2) ++ returnPayments(msg.caller, msg.payments)) | |
961 | 964 | else { | |
962 | 965 | let payment = msg.payments[0] | |
963 | 966 | let tokenIn = getStrAssetId(payment.assetId) | |
964 | 967 | let tokenOutB58 = fromBase58String(tokenOut) | |
965 | 968 | let dx = payment.amount | |
966 | 969 | let fromIndex = valueOrErrorMessage(indexOf(assetIds, tokenIn), "unknown token in") | |
967 | 970 | let toIndex = valueOrErrorMessage(indexOf(assetIds, tokenOut), "unknown token out") | |
968 | 971 | let xp = _xp() | |
969 | 972 | let x = (xp[fromIndex] + dx) | |
970 | 973 | let y = getY(fromIndex, toIndex, x, xp) | |
971 | 974 | let _dy = ((xp[toIndex] - y) - 1) | |
972 | 975 | let feeDiscount = calculateFeeDiscount(msg.originCaller) | |
973 | 976 | let _fee = fraction(_dy, fraction(fee, feeDiscount, feeScale6, CEILING), feeScale6) | |
974 | 977 | let dy = (_dy - _fee) | |
975 | 978 | let governanceFees = fraction(_fee, feeGovernance, feeScale6) | |
976 | 979 | if (assert((dy >= min_dy))) | |
977 | 980 | then throw("Exchange resulted in fewer coins than expected") | |
978 | 981 | else { | |
979 | 982 | func makeNewBalances (acc,tokenBalance) = { | |
980 | - | let $ | |
981 | - | let newBalances = $ | |
982 | - | let i = $ | |
983 | + | let $t02282222848 = acc | |
984 | + | let newBalances = $t02282222848._1 | |
985 | + | let i = $t02282222848._2 | |
983 | 986 | if ((i == fromIndex)) | |
984 | 987 | then $Tuple2((newBalances :+ (tokenBalance + dx)), (i + 1)) | |
985 | 988 | else if ((i == toIndex)) | |
986 | 989 | then $Tuple2((newBalances :+ (tokenBalance - _dy)), (i + 1)) | |
987 | 990 | else $Tuple2((newBalances :+ tokenBalance), (i + 1)) | |
988 | 991 | } | |
989 | 992 | ||
990 | - | let $ | |
993 | + | let $t02309923160 = { | |
991 | 994 | let $l = xp | |
992 | 995 | let $s = size($l) | |
993 | 996 | let $acc0 = $Tuple2(nil, 0) | |
994 | 997 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
995 | 998 | then $a | |
996 | 999 | else makeNewBalances($a, $l[$i]) | |
997 | 1000 | ||
998 | 1001 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
999 | 1002 | then $a | |
1000 | 1003 | else throw("List size exceeds 10") | |
1001 | 1004 | ||
1002 | 1005 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
1003 | 1006 | } | |
1004 | - | let newBalances = $ | |
1005 | - | let i = $ | |
1007 | + | let newBalances = $t02309923160._1 | |
1008 | + | let i = $t02309923160._2 | |
1006 | 1009 | if (checkDAppThreshold(newBalances)) | |
1007 | 1010 | then throw() | |
1008 | 1011 | else { | |
1009 | 1012 | let s = stake(payment.amount, getStrAssetId(payment.assetId)) | |
1010 | 1013 | if ((s == s)) | |
1011 | 1014 | then { | |
1012 | 1015 | let us = unstake(_dy, tokenOut) | |
1013 | 1016 | if ((us == us)) | |
1014 | 1017 | then { | |
1015 | 1018 | let lpFees = (_fee - governanceFees) | |
1016 | 1019 | let airdrop = if ((lpFees > 0)) | |
1017 | 1020 | then invoke(lpFarmingAddress, "airDrop", nil, [AttachedPayment(tokenOutB58, lpFees)]) | |
1018 | 1021 | else 0 | |
1019 | 1022 | if ((airdrop == airdrop)) | |
1020 | 1023 | then $Tuple2([IntegerEntry((tokenIn + kAssetBalance), x), IntegerEntry((tokenOut + kAssetBalance), (xp[toIndex] - _dy)), ScriptTransfer(msg.caller, dy, tokenOutB58), ScriptTransfer(moneyBoxAddress, governanceFees, tokenOutB58)], [dy, tokenOutB58]) | |
1021 | 1024 | else throw("Strict value is not equal to itself.") | |
1022 | 1025 | } | |
1023 | 1026 | else throw("Strict value is not equal to itself.") | |
1024 | 1027 | } | |
1025 | 1028 | else throw("Strict value is not equal to itself.") | |
1026 | 1029 | } | |
1027 | 1030 | } | |
1028 | 1031 | } | |
1029 | 1032 | }) | |
1030 | 1033 | ||
1031 | 1034 | ||
1032 | 1035 | ||
1033 | 1036 | @Callable(msg) | |
1034 | 1037 | func withdraw (minAmounts) = valueOrElse(isActive(), if ((size(msg.payments) != 1)) | |
1035 | 1038 | then throw("size(payments) != 1") | |
1036 | 1039 | else { | |
1037 | 1040 | let pmtAmount = msg.payments[0].amount | |
1038 | 1041 | let pmtAssetId = msg.payments[0].assetId | |
1039 | 1042 | if ((shareAssetId != pmtAssetId)) | |
1040 | 1043 | then throw("unknown payment token") | |
1041 | 1044 | else { | |
1042 | 1045 | let suspicious = checkSuspicious() | |
1043 | 1046 | if (suspicious._1) | |
1044 | 1047 | then (suspendSuspicious(suspicious._2) ++ returnPayments(msg.originCaller, msg.payments)) | |
1045 | 1048 | else { | |
1046 | 1049 | func calcScriptActions (acc,balance) = { | |
1047 | - | let $ | |
1048 | - | let scriptActions = $ | |
1049 | - | let i = $ | |
1050 | + | let $t02445124479 = acc | |
1051 | + | let scriptActions = $t02445124479._1 | |
1052 | + | let i = $t02445124479._2 | |
1050 | 1053 | let wAmount = fraction(balance, pmtAmount, shareSupply) | |
1051 | 1054 | if (assert((wAmount >= minAmounts[i]))) | |
1052 | 1055 | then throw("Withdrawal resulted in fewer coins than expected") | |
1053 | 1056 | else { | |
1054 | 1057 | let us = unstake(wAmount, assetIds[i]) | |
1055 | 1058 | if ((us == us)) | |
1056 | 1059 | then $Tuple2((scriptActions ++ [IntegerEntry((assetIds[i] + kAssetBalance), (balance - wAmount)), ScriptTransfer(msg.originCaller, wAmount, fromBase58String(assetIds[i]))]), (i + 1)) | |
1057 | 1060 | else throw("Strict value is not equal to itself.") | |
1058 | 1061 | } | |
1059 | 1062 | } | |
1060 | 1063 | ||
1061 | - | let $ | |
1064 | + | let $t02496925037 = { | |
1062 | 1065 | let $l = _xp() | |
1063 | 1066 | let $s = size($l) | |
1064 | 1067 | let $acc0 = $Tuple2(nil, 0) | |
1065 | 1068 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
1066 | 1069 | then $a | |
1067 | 1070 | else calcScriptActions($a, $l[$i]) | |
1068 | 1071 | ||
1069 | 1072 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
1070 | 1073 | then $a | |
1071 | 1074 | else throw("List size exceeds 10") | |
1072 | 1075 | ||
1073 | 1076 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
1074 | 1077 | } | |
1075 | - | let scriptActions = $ | |
1076 | - | let i = $ | |
1078 | + | let scriptActions = $t02496925037._1 | |
1079 | + | let i = $t02496925037._2 | |
1077 | 1080 | (scriptActions ++ [Burn(shareAssetId, pmtAmount), IntegerEntry(kShareAssetSupply, (shareSupply - pmtAmount))]) | |
1078 | 1081 | } | |
1079 | 1082 | } | |
1080 | 1083 | }) | |
1081 | 1084 | ||
1082 | 1085 | ||
1083 | 1086 | ||
1084 | 1087 | @Callable(msg) | |
1085 | 1088 | func withdrawWithUnlock (minAmounts,unlockAmount) = valueOrElse(isActive(), if ((0 >= unlockAmount)) | |
1086 | 1089 | then throw("Unlock amount must be positive") | |
1087 | 1090 | else { | |
1088 | 1091 | let suspicious = checkSuspicious() | |
1089 | 1092 | if (suspicious._1) | |
1090 | 1093 | then (suspendSuspicious(suspicious._2) ++ returnPayments(msg.caller, msg.payments)) | |
1091 | 1094 | else { | |
1092 | 1095 | let pmtAmount = if ((size(msg.payments) > 0)) | |
1093 | 1096 | then if ((size(msg.payments) != 1)) | |
1094 | 1097 | then throw("size(payments) != 1") | |
1095 | 1098 | else { | |
1096 | 1099 | let pmtAssetId = msg.payments[0].assetId | |
1097 | 1100 | if ((shareAssetId != pmtAssetId)) | |
1098 | 1101 | then throw("unknown payment token") | |
1099 | 1102 | else msg.payments[0].amount | |
1100 | 1103 | } | |
1101 | 1104 | else 0 | |
1102 | 1105 | let unlock = invoke(farmingAddress, "withdrawShareTokens", [toString(this), unlockAmount], nil) | |
1103 | 1106 | if ((unlock == unlock)) | |
1104 | 1107 | then { | |
1105 | 1108 | let withdrawAmount = (pmtAmount + unlockAmount) | |
1106 | 1109 | let inv = invoke(this, "withdraw", [minAmounts], [AttachedPayment(shareAssetId, withdrawAmount)]) | |
1107 | 1110 | if ((inv == inv)) | |
1108 | 1111 | then nil | |
1109 | 1112 | else throw("Strict value is not equal to itself.") | |
1110 | 1113 | } | |
1111 | 1114 | else throw("Strict value is not equal to itself.") | |
1112 | 1115 | } | |
1113 | 1116 | }) | |
1114 | 1117 | ||
1115 | 1118 | ||
1116 | 1119 | ||
1117 | 1120 | @Callable(msg) | |
1118 | 1121 | func calcWithdrawOneCoin (tokenAmount,tokenOut,user) = if ((0 >= tokenAmount)) | |
1119 | 1122 | then throw("Amount must be positive") | |
1120 | 1123 | else { | |
1121 | 1124 | let i = valueOrErrorMessage(indexOf(assetIds, tokenOut), "unknown token out") | |
1122 | 1125 | $Tuple2(nil, _calcWithdrawOneCoin(_xp(), tokenAmount, i, Address(fromBase58String(user)))._1) | |
1123 | 1126 | } | |
1124 | 1127 | ||
1125 | 1128 | ||
1126 | 1129 | ||
1127 | 1130 | @Callable(msg) | |
1128 | 1131 | func withdrawOneCoin (tokenOut,minAmount) = valueOrElse(isActive(), if ((size(msg.payments) != 1)) | |
1129 | 1132 | then throw("size(payments) != 1") | |
1130 | 1133 | else { | |
1131 | 1134 | let suspicious = checkSuspicious() | |
1132 | 1135 | if (suspicious._1) | |
1133 | 1136 | then (suspendSuspicious(suspicious._2) ++ returnPayments(msg.originCaller, msg.payments)) | |
1134 | 1137 | else { | |
1135 | 1138 | let pmtAmount = msg.payments[0].amount | |
1136 | 1139 | let pmtAssetId = msg.payments[0].assetId | |
1137 | 1140 | if ((pmtAssetId != shareAssetId)) | |
1138 | 1141 | then throw("unknown token") | |
1139 | 1142 | else { | |
1140 | 1143 | let outIndex = valueOrErrorMessage(indexOf(assetIds, tokenOut), "unknown token out") | |
1141 | 1144 | let tokenOutB58 = fromBase58String(tokenOut) | |
1142 | 1145 | let xp = _xp() | |
1143 | - | let $ | |
1144 | - | let dy = $ | |
1145 | - | let dy_fee = $ | |
1146 | + | let $t02706927151 = _calcWithdrawOneCoin(xp, pmtAmount, outIndex, msg.originCaller) | |
1147 | + | let dy = $t02706927151._1 | |
1148 | + | let dy_fee = $t02706927151._2 | |
1146 | 1149 | if (assert((dy >= minAmount))) | |
1147 | 1150 | then throw("Not enough coins removed") | |
1148 | 1151 | else { | |
1149 | 1152 | let governanceFees = fraction(dy_fee, feeGovernance, feeScale6) | |
1150 | 1153 | let dy_and_fee = (dy + dy_fee) | |
1151 | 1154 | func makeNewBalances (acc,tokenBalance) = { | |
1152 | - | let $ | |
1153 | - | let newBalances = $ | |
1154 | - | let i = $ | |
1155 | + | let $t02740927435 = acc | |
1156 | + | let newBalances = $t02740927435._1 | |
1157 | + | let i = $t02740927435._2 | |
1155 | 1158 | if ((i == outIndex)) | |
1156 | 1159 | then $Tuple2((newBalances :+ (tokenBalance - dy_and_fee)), (i + 1)) | |
1157 | 1160 | else $Tuple2((newBalances :+ tokenBalance), (i + 1)) | |
1158 | 1161 | } | |
1159 | 1162 | ||
1160 | - | let $ | |
1163 | + | let $t02760227663 = { | |
1161 | 1164 | let $l = xp | |
1162 | 1165 | let $s = size($l) | |
1163 | 1166 | let $acc0 = $Tuple2(nil, 0) | |
1164 | 1167 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
1165 | 1168 | then $a | |
1166 | 1169 | else makeNewBalances($a, $l[$i]) | |
1167 | 1170 | ||
1168 | 1171 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
1169 | 1172 | then $a | |
1170 | 1173 | else throw("List size exceeds 10") | |
1171 | 1174 | ||
1172 | 1175 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
1173 | 1176 | } | |
1174 | - | let newBalances = $ | |
1175 | - | let v = $ | |
1177 | + | let newBalances = $t02760227663._1 | |
1178 | + | let v = $t02760227663._2 | |
1176 | 1179 | if (checkDAppThreshold(newBalances)) | |
1177 | 1180 | then throw() | |
1178 | 1181 | else { | |
1179 | 1182 | let us = unstake(dy_and_fee, tokenOut) | |
1180 | 1183 | if ((us == us)) | |
1181 | 1184 | then { | |
1182 | 1185 | let lpFees = (dy_fee - governanceFees) | |
1183 | 1186 | let airdrop = if ((lpFees > 0)) | |
1184 | 1187 | then invoke(lpFarmingAddress, "airDrop", nil, [AttachedPayment(tokenOutB58, lpFees)]) | |
1185 | 1188 | else 0 | |
1186 | 1189 | if ((airdrop == airdrop)) | |
1187 | 1190 | then [ScriptTransfer(msg.originCaller, dy, tokenOutB58), IntegerEntry((assetIds[outIndex] + kAssetBalance), (xp[outIndex] - dy_and_fee)), Burn(shareAssetId, pmtAmount), ScriptTransfer(moneyBoxAddress, governanceFees, tokenOutB58), IntegerEntry(kShareAssetSupply, (shareSupply - pmtAmount))] | |
1188 | 1191 | else throw("Strict value is not equal to itself.") | |
1189 | 1192 | } | |
1190 | 1193 | else throw("Strict value is not equal to itself.") | |
1191 | 1194 | } | |
1192 | 1195 | } | |
1193 | 1196 | } | |
1194 | 1197 | } | |
1195 | 1198 | }) | |
1196 | 1199 | ||
1197 | 1200 | ||
1198 | 1201 | ||
1199 | 1202 | @Callable(msg) | |
1200 | 1203 | func withdrawOneCoinWithUnlock (tokenOut,minAmount,unlockAmount) = valueOrElse(isActive(), if ((0 >= unlockAmount)) | |
1201 | 1204 | then throw("Unlock amount must be positive") | |
1202 | 1205 | else { | |
1203 | 1206 | let suspicious = checkSuspicious() | |
1204 | 1207 | if (suspicious._1) | |
1205 | 1208 | then (suspendSuspicious(suspicious._2) ++ returnPayments(msg.caller, msg.payments)) | |
1206 | 1209 | else { | |
1207 | 1210 | let pmtAmount = if ((size(msg.payments) > 0)) | |
1208 | 1211 | then if ((size(msg.payments) != 1)) | |
1209 | 1212 | then throw("size(payments) != 1") | |
1210 | 1213 | else { | |
1211 | 1214 | let pmtAssetId = msg.payments[0].assetId | |
1212 | 1215 | if ((shareAssetId != pmtAssetId)) | |
1213 | 1216 | then throw("unknown payment token") | |
1214 | 1217 | else msg.payments[0].amount | |
1215 | 1218 | } | |
1216 | 1219 | else 0 | |
1217 | 1220 | let unlock = invoke(farmingAddress, "withdrawShareTokens", [toString(this), unlockAmount], nil) | |
1218 | 1221 | if ((unlock == unlock)) | |
1219 | 1222 | then { | |
1220 | 1223 | let withdrawAmount = (pmtAmount + unlockAmount) | |
1221 | 1224 | let inv = invoke(this, "withdrawOneCoin", [tokenOut, minAmount], [AttachedPayment(shareAssetId, withdrawAmount)]) | |
1222 | 1225 | if ((inv == inv)) | |
1223 | 1226 | then nil | |
1224 | 1227 | else throw("Strict value is not equal to itself.") | |
1225 | 1228 | } | |
1226 | 1229 | else throw("Strict value is not equal to itself.") | |
1227 | 1230 | } | |
1228 | 1231 | }) | |
1229 | 1232 | ||
1230 | 1233 | ||
1231 | 1234 | ||
1232 | 1235 | @Callable(msg) | |
1233 | 1236 | func A () = $Tuple2(nil, _A()) | |
1234 | 1237 | ||
1235 | 1238 | ||
1236 | 1239 | ||
1237 | 1240 | @Callable(msg) | |
1238 | 1241 | func getVirtualPrice () = { | |
1239 | 1242 | let D = get_D(_xp(), _A()) | |
1240 | 1243 | $Tuple2(nil, fraction(D, PRECISION, shareSupply)) | |
1241 | 1244 | } | |
1242 | 1245 | ||
1243 | 1246 | ||
1244 | 1247 | ||
1245 | 1248 | @Callable(msg) | |
1246 | 1249 | func calcTokenAmount (amounts,deposit) = { | |
1247 | 1250 | let amp = _A() | |
1248 | 1251 | let balances = _xp() | |
1249 | 1252 | let D0 = getDMem(balances, amp) | |
1250 | 1253 | func calcNewBalances (acc,balance) = { | |
1251 | - | let $ | |
1252 | - | let newBalances = $ | |
1253 | - | let i = $ | |
1254 | + | let $t02968029706 = acc | |
1255 | + | let newBalances = $t02968029706._1 | |
1256 | + | let i = $t02968029706._2 | |
1254 | 1257 | let newBalance = (balance + (if (deposit) | |
1255 | 1258 | then amounts[i] | |
1256 | 1259 | else -(amounts[i]))) | |
1257 | 1260 | $Tuple2((newBalances :+ newBalance), (i + 1)) | |
1258 | 1261 | } | |
1259 | 1262 | ||
1260 | 1263 | let newBalances = ( let $l = balances | |
1261 | 1264 | let $s = size($l) | |
1262 | 1265 | let $acc0 = $Tuple2(nil, 0) | |
1263 | 1266 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
1264 | 1267 | then $a | |
1265 | 1268 | else calcNewBalances($a, $l[$i]) | |
1266 | 1269 | ||
1267 | 1270 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
1268 | 1271 | then $a | |
1269 | 1272 | else throw("List size exceeds 10") | |
1270 | 1273 | ||
1271 | 1274 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10))._1 | |
1272 | 1275 | let D1 = getDMem(newBalances, amp) | |
1273 | 1276 | let diff = if (deposit) | |
1274 | 1277 | then (D1 - D0) | |
1275 | 1278 | else (D0 - D1) | |
1276 | 1279 | $Tuple2(nil, fraction(diff, shareSupply, D0)) | |
1277 | 1280 | } | |
1278 | 1281 | ||
1279 | 1282 | ||
1280 | 1283 | ||
1281 | 1284 | @Callable(msg) | |
1282 | 1285 | func rampA (_futureA,_futureTime) = valueOrElse(isActive(), valueOrElse(isAdminCall(msg), if (assert((blockTimestamp >= (initial_A_time + MIN_RAMP_TIME)))) | |
1283 | 1286 | then throw("too often") | |
1284 | 1287 | else if (assert((_futureTime >= (blockTimestamp + MIN_RAMP_TIME)))) | |
1285 | 1288 | then throw("insufficient time") | |
1286 | 1289 | else { | |
1287 | 1290 | let _initial_A = _A() | |
1288 | 1291 | if (assert(if ((_futureA > 0)) | |
1289 | 1292 | then (MAX_A > _futureA) | |
1290 | 1293 | else false)) | |
1291 | 1294 | then throw("out of base range") | |
1292 | 1295 | else if (assert(if (if ((_futureA >= _initial_A)) | |
1293 | 1296 | then ((_initial_A * MAX_A_CHANGE) >= _futureA) | |
1294 | 1297 | else false) | |
1295 | 1298 | then true | |
1296 | 1299 | else if ((_initial_A > _futureA)) | |
1297 | 1300 | then ((_futureA * MAX_A_CHANGE) >= _initial_A) | |
1298 | 1301 | else false)) | |
1299 | 1302 | then throw("out of range") | |
1300 | 1303 | else [IntegerEntry("initial_A", _initial_A), IntegerEntry("future_A", _futureA), IntegerEntry("initial_A_time", blockTimestamp), IntegerEntry("future_A_time", _futureTime)] | |
1301 | 1304 | })) | |
1302 | 1305 | ||
1303 | 1306 | ||
1304 | 1307 | ||
1305 | 1308 | @Callable(msg) | |
1306 | 1309 | func stopRampA () = valueOrElse(isActive(), valueOrElse(isAdminCall(msg), { | |
1307 | 1310 | let currentA = _A() | |
1308 | 1311 | [IntegerEntry("initial_A", currentA), IntegerEntry("future_A", currentA), IntegerEntry("initial_A_time", blockTimestamp), IntegerEntry("future_A_time", blockTimestamp)] | |
1309 | 1312 | })) | |
1310 | 1313 | ||
1311 | 1314 | ||
1312 | 1315 | ||
1313 | 1316 | @Callable(msg) | |
1314 | 1317 | func shutdown () = valueOrElse(isAdminCall(msg), if (!(active)) | |
1315 | 1318 | then throw(("DApp is already suspended. Cause: " + valueOrElse(getString(this, kCause), "the cause wasn't specified"))) | |
1316 | 1319 | else suspend("Paused by admin")) | |
1317 | 1320 | ||
1318 | 1321 | ||
1319 | 1322 | ||
1320 | 1323 | @Callable(msg) | |
1321 | 1324 | func activate () = valueOrElse(isAdminCall(msg), if (active) | |
1322 | 1325 | then throwIsActive() | |
1323 | 1326 | else [BooleanEntry(kActive, true), DeleteEntry(kCause)]) | |
1324 | 1327 | ||
1325 | 1328 | ||
1326 | 1329 | ||
1327 | 1330 | @Callable(msg) | |
1328 | 1331 | func takeIntoAccountExtraFunds () = valueOrElse(isActive(), if ((msg.caller != moneyBoxAddress)) | |
1329 | 1332 | then throw("Only the wallet can call this function") | |
1330 | 1333 | else { | |
1331 | 1334 | let balances = _xp() | |
1332 | 1335 | func takeExtraFunds (acc,assetId) = { | |
1333 | - | let $ | |
1334 | - | let sum = $ | |
1335 | - | let i = $ | |
1336 | + | let $t03204832066 = acc | |
1337 | + | let sum = $t03204832066._1 | |
1338 | + | let i = $t03204832066._2 | |
1336 | 1339 | let tokenB58 = fromBase58String(assetId) | |
1337 | 1340 | let rBalance = (assetBalance(this, tokenB58) + stakedAmount(tokenB58)) | |
1338 | 1341 | let enrollAmount = (rBalance - balances[i]) | |
1339 | 1342 | if ((0 > enrollAmount)) | |
1340 | 1343 | then suspend(("Enroll amount negative for asset" + assetId)) | |
1341 | 1344 | else { | |
1342 | 1345 | let airdrop = if ((enrollAmount > 0)) | |
1343 | 1346 | then invoke(lpFarmingAddress, "airDrop", nil, [AttachedPayment(tokenB58, enrollAmount)]) | |
1344 | 1347 | else 0 | |
1345 | 1348 | if ((airdrop == airdrop)) | |
1346 | 1349 | then $Tuple2((sum + enrollAmount), (i + 1)) | |
1347 | 1350 | else throw("Strict value is not equal to itself.") | |
1348 | 1351 | } | |
1349 | 1352 | } | |
1350 | 1353 | ||
1351 | 1354 | let k = { | |
1352 | 1355 | let $l = assetIds | |
1353 | 1356 | let $s = size($l) | |
1354 | 1357 | let $acc0 = $Tuple2(0, 0) | |
1355 | 1358 | func $f0_1 ($a,$i) = if (($i >= $s)) | |
1356 | 1359 | then $a | |
1357 | 1360 | else takeExtraFunds($a, $l[$i]) | |
1358 | 1361 | ||
1359 | 1362 | func $f0_2 ($a,$i) = if (($i >= $s)) | |
1360 | 1363 | then $a | |
1361 | 1364 | else throw("List size exceeds 10") | |
1362 | 1365 | ||
1363 | 1366 | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10) | |
1364 | 1367 | } | |
1365 | 1368 | if ((k._1 == 0)) | |
1366 | 1369 | then throw("No money to take") | |
1367 | 1370 | else nil | |
1368 | 1371 | }) | |
1369 | 1372 | ||
1370 | 1373 | ||
1371 | 1374 | @Verifier(tx) | |
1372 | 1375 | func verify () = { | |
1373 | 1376 | let multiSignedByAdmins = { | |
1374 | 1377 | let adminPubKey1Signed = if (sigVerify(tx.bodyBytes, tx.proofs[0], adminPubKey1)) | |
1375 | 1378 | then 1 | |
1376 | 1379 | else 0 | |
1377 | 1380 | let adminPubKey2Signed = if (sigVerify(tx.bodyBytes, tx.proofs[1], adminPubKey2)) | |
1378 | 1381 | then 1 | |
1379 | 1382 | else 0 | |
1380 | 1383 | let adminPubKey3Signed = if (sigVerify(tx.bodyBytes, tx.proofs[2], adminPubKey3)) | |
1381 | 1384 | then 1 | |
1382 | 1385 | else 0 | |
1383 | 1386 | (((adminPubKey1Signed + adminPubKey2Signed) + adminPubKey3Signed) >= 2) | |
1384 | 1387 | } | |
1385 | 1388 | match tx { | |
1386 | 1389 | case inv: InvokeScriptTransaction => | |
1387 | 1390 | let callTakeIntoAccount = if ((inv.dApp == this)) | |
1388 | 1391 | then (inv.function == "takeIntoAccountExtraFunds") | |
1389 | 1392 | else false | |
1390 | 1393 | let signedByAdmin = if (if (if (sigVerify(tx.bodyBytes, tx.proofs[0], adminPubKey1)) | |
1391 | 1394 | then true | |
1392 | 1395 | else sigVerify(tx.bodyBytes, tx.proofs[0], adminPubKey2)) | |
1393 | 1396 | then true | |
1394 | 1397 | else sigVerify(tx.bodyBytes, tx.proofs[0], adminPubKey3)) | |
1395 | 1398 | then true | |
1396 | 1399 | else sigVerify(tx.bodyBytes, tx.proofs[0], adminPubKeyInvoke) | |
1397 | 1400 | if (if (callTakeIntoAccount) | |
1398 | 1401 | then signedByAdmin | |
1399 | 1402 | else false) | |
1400 | 1403 | then true | |
1401 | 1404 | else multiSignedByAdmins | |
1402 | 1405 | case _ => | |
1403 | 1406 | multiSignedByAdmins | |
1404 | 1407 | } | |
1405 | 1408 | } | |
1406 | 1409 |
github/deemru/w8io/026f985 204.05 ms ◑