tx · J4rZQ13haGytUsNtNpMkzazxrdaJDiXZXRrx2W54PNxB

3MxWgDbE9EmjQj8b3LfFwa91FZizptyeQXS:  -0.03800000 Waves

2023.03.17 17:11 [2494096] smart account 3MxWgDbE9EmjQj8b3LfFwa91FZizptyeQXS > SELF 0.00000000 Waves

{ "type": 13, "id": "J4rZQ13haGytUsNtNpMkzazxrdaJDiXZXRrx2W54PNxB", "fee": 3800000, "feeAssetId": null, "timestamp": 1679062353759, "version": 2, "chainId": 84, "sender": "3MxWgDbE9EmjQj8b3LfFwa91FZizptyeQXS", "senderPublicKey": "C7xgcYqQ8qV8rmvzAjhQWq4cz82F6VJfXMNygvrTXsfW", "proofs": [ "GWfdWBc8rynWfF6D4RuNVTn2AtKdsrLeTqHtXCmJUXc69LgM6eY1u7TJw8aFbFKzNqYj5kYK7JoCtb6fVwEGfQS", "2VoviyinxvdfQ5PiypkL9irPb23V5wxf36Fkfvf11HsR2n1bPR2UCKvP3qEuZeFxUKzZZpdxH7gmZfB7FCnqBmsN" ], "script": "base64:BgJmCAISBAoCEQESBQoDCAEBEgUKAwEEARIECgIRCBIDCgEBEgYKBAgIAQgSBAoCCAESAwoBERIECgIRARIFCgMBCAgSBAoCCAESBQoDCAEBEgASABIECgIRBBIECgIBARIAEgASABIAYgAJUFJFQ0lTSU9OAMCEPQAFTUFYX0EAwIQ9AAxNQVhfQV9DSEFOR0UACgAIREVDSU1BTFMABgANTUlOX1JBTVBfVElNRQkAaQIAgKMFADwAB3ZlcnNpb24CBTMuMC4wAAhrVmVyc2lvbgIHdmVyc2lvbgAHa0Fzc2V0cwIJYXNzZXRfaWRzAA1rQXNzZXRCYWxhbmNlAghfYmFsYW5jZQAHa0FjdGl2ZQIGYWN0aXZlAAtrQWN0aXZlR2xvYgIUYWN0aXZlX2FsbF9jb250cmFjdHMAC2tEZXByZWNhdGVkAgtkZXByZWNhdGVkXwAGa0NhdXNlAg5zaHV0ZG93bl9jYXVzZQANa1NoYXJlQXNzZXRJZAIOc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MJAJEDAggFAnR4BnByb29mcwAABQxhZG1pblB1YktleTEGCQD0AwMIBQJ0eAlib2R5Qnl0ZXMJAJEDAggFAnR4BnByb29mcwAABQxhZG1pblB1YktleTIGCQD0AwMIBQJ0eAlib2R5Qnl0ZXMJAJEDAggFAnR4BnByb29mcwAABQxhZG1pblB1YktleTMGCQD0AwMIBQJ0eAlib2R5Qnl0ZXMJAJEDAggFAnR4BnByb29mcwAABRFhZG1pblB1YktleUludm9rZQMDBRNjYWxsVGFrZUludG9BY2NvdW50BQ1zaWduZWRCeUFkbWluBwYFE211bHRpU2lnbmVkQnlBZG1pbnMFE211bHRpU2lnbmVkQnlBZG1pbnNbNfbU", "height": 2494096, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 3q8Z8MyQoighBNDkYYZnsmDvY3jStjuN4cibaLpegA4M Next: none Diff:
OldNewDifferences
5555
5656 let kMoneyBoxAddress = "money_box_address"
5757
58+let kTeamBoxAddress = "team_box_address"
59+
5860 let kGovAddress = "governance_address"
5961
6062 let kVotingAddress = "voting_address"
8284 let adminPubKeyInvoke = getBase58FromOracle(kAdminInvokePubKey)
8385
8486 let moneyBoxAddress = Address(getBase58FromOracle(kMoneyBoxAddress))
87+
88+let teamBoxAddress = Address(getBase58FromOracle(kTeamBoxAddress))
8589
8690 let govAddress = Address(getBase58FromOracle(kGovAddress))
8791
111115
112116 let fee = getIntegerValue(this, kFee)
113117
114-let feeGovernance = fraction(40, feeScale6, 100)
118+let feeGovernance = fraction(35, feeScale6, 100)
119+
120+let feeTeam = fraction(10, feeScale6, 100)
115121
116122 let initial_A = getIntegerValue(this, "initial_A")
117123
303309 else $Tuple2(D, false)
304310 }
305311
306- let $t068116877 = {
312+ let $t070047070 = {
307313 let $l = iter15
308314 let $s = size($l)
309315 let $acc0 = $Tuple2(toBigInt(S), false)
317323
318324 $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)
319325 }
320- let D = $t068116877._1
321- let finished = $t068116877._2
326+ let D = $t070047070._1
327+ let finished = $t070047070._2
322328 if ((finished == false))
323329 then throw(("get_D() not finished with " + toString(D)))
324330 else toInt(D)
344350 let D = get_D(xp_, amp)
345351 let Ann = (amp * nCoins)
346352 func S_c (acc,i) = {
347- let $t074487465 = acc
348- let S_ = $t074487465._1
349- let c = $t074487465._2
353+ let $t076417658 = acc
354+ let S_ = $t076417658._1
355+ let c = $t076417658._2
350356 let x_ = if ((in == i))
351357 then x
352358 else xp_[i]
357363 else $Tuple2(S_, c)
358364 }
359365
360- let $t076737728 = {
366+ let $t078667921 = {
361367 let $l = iter10
362368 let $s = size($l)
363369 let $acc0 = $Tuple2(0, toBigInt(D))
371377
372378 $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)
373379 }
374- let S_ = $t076737728._1
375- let c_ = $t076737728._2
380+ let S_ = $t078667921._1
381+ let c_ = $t078667921._2
376382 let c = fraction(c_, toBigInt(D), toBigInt((Ann * nCoins)))
377383 let bD = toBigInt(((S_ + (D / Ann)) - D))
378384 func y_proc (acc,_i) = if ((acc._2 == true))
389395 else $Tuple2(y, false)
390396 }
391397
392- let $t082108277 = {
398+ let $t084038470 = {
393399 let $l = iter16
394400 let $s = size($l)
395401 let $acc0 = $Tuple2(toBigInt(D), false)
403409
404410 $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)
405411 }
406- let y = $t082108277._1
407- let finished = $t082108277._2
412+ let y = $t084038470._1
413+ let finished = $t084038470._2
408414 if ((finished == false))
409415 then throw(("getY() not finished with " + toString(y)))
410416 else toInt(y)
418424 else {
419425 let Ann = (A_ * nCoins)
420426 func S_c (acc,i) = {
421- let $t086568673 = acc
422- let S_ = $t086568673._1
423- let c = $t086568673._2
427+ let $t088498866 = acc
428+ let S_ = $t088498866._1
429+ let c = $t088498866._2
424430 let x_ = if (if ((in != i))
425431 then (nCoins > i)
426432 else false)
433439 else $Tuple2(S_, c)
434440 }
435441
436- let $t088938948 = {
442+ let $t090869141 = {
437443 let $l = iter10
438444 let $s = size($l)
439445 let $acc0 = $Tuple2(0, toBigInt(D))
447453
448454 $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)
449455 }
450- let S_ = $t088938948._1
451- let c_ = $t088938948._2
456+ let S_ = $t090869141._1
457+ let c_ = $t090869141._2
452458 let c = fraction(c_, toBigInt(D), toBigInt((Ann * nCoins)))
453459 let bD = toBigInt(((S_ + (D / Ann)) - D))
454460 func y_D_proc (acc,i) = if ((acc._2 == true))
465471 else $Tuple2(y, false)
466472 }
467473
468- let $t094319500 = {
474+ let $t096249693 = {
469475 let $l = iter16
470476 let $s = size($l)
471477 let $acc0 = $Tuple2(toBigInt(D), false)
479485
480486 $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)
481487 }
482- let y = $t094319500._1
483- let finished = $t094319500._2
488+ let y = $t096249693._1
489+ let finished = $t096249693._2
484490 if ((finished == false))
485491 then throw(("get_y_D() not finished with " + toString(y)))
486492 else toInt(y)
497503 let new_y = get_y_D(amp, i, xp, D1)
498504 let dy_0 = (xp[i] - new_y)
499505 func xp_reduced_proc (acc,xp_j) = {
500- let $t01014110170 = acc
501- let xp_reduced = $t01014110170._1
502- let index = $t01014110170._2
506+ let $t01033410363 = acc
507+ let xp_reduced = $t01033410363._1
508+ let index = $t01033410363._2
503509 let dx_expected = if ((index == i))
504510 then (fraction(xp_j, D1, D0) - new_y)
505511 else (xp_j - fraction(xp_j, D1, D0))
506512 $Tuple2((xp_reduced :+ (xp_j - fraction(_fee, dx_expected, feeScale6))), (index + 1))
507513 }
508514
509- let $t01043210496 = {
515+ let $t01062510689 = {
510516 let $l = xp
511517 let $s = size($l)
512518 let $acc0 = $Tuple2(nil, 0)
520526
521527 $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)
522528 }
523- let xp_reduced = $t01043210496._1
524- let index = $t01043210496._2
529+ let xp_reduced = $t01062510689._1
530+ let index = $t01062510689._2
525531 let xp_reduced_i = xp_reduced[i]
526532 let dy = ((xp_reduced_i - get_y_D(amp, i, xp_reduced, D1)) - 1)
527533 $Tuple2(dy, (dy_0 - dy))
545551
546552 func calcStakingParams (stake,amount,assetId) = if (stake)
547553 then {
548- let $t01106011126 = calcStakingFuncAndAddres(stake, assetId)
549- let call = $t01106011126._1
550- let stakingAddr = $t01106011126._2
554+ let $t01125311319 = calcStakingFuncAndAddres(stake, assetId)
555+ let call = $t01125311319._1
556+ let stakingAddr = $t01125311319._2
551557 $Tuple4(call, stakingAddr, nil, [AttachedPayment(assetId, amount)])
552558 }
553559 else {
554- let $t01121211278 = calcStakingFuncAndAddres(stake, assetId)
555- let call = $t01121211278._1
556- let stakingAddr = $t01121211278._2
560+ let $t01140511471 = calcStakingFuncAndAddres(stake, assetId)
561+ let call = $t01140511471._1
562+ let stakingAddr = $t01140511471._2
557563 $Tuple4(call, stakingAddr, [amount, toBase58String(assetId)], nil)
558564 }
559565
560566
561567 func stake (amount,assetIdString) = if (containsElement(stakingAssets, assetIdString))
562568 then {
563- let $t01146511567 = calcStakingParams(true, amount, fromBase58String(assetIdString))
564- let call = $t01146511567._1
565- let addr = $t01146511567._2
566- let params = $t01146511567._3
567- let payments = $t01146511567._4
569+ let $t01165811760 = calcStakingParams(true, amount, fromBase58String(assetIdString))
570+ let call = $t01165811760._1
571+ let addr = $t01165811760._2
572+ let params = $t01165811760._3
573+ let payments = $t01165811760._4
568574 invoke(addr, call, params, payments)
569575 }
570576 else 0
572578
573579 func unstake (amount,assetIdString) = if (containsElement(stakingAssets, assetIdString))
574580 then {
575- let $t01175211855 = calcStakingParams(false, amount, fromBase58String(assetIdString))
576- let call = $t01175211855._1
577- let addr = $t01175211855._2
578- let params = $t01175211855._3
579- let payments = $t01175211855._4
581+ let $t01194512048 = calcStakingParams(false, amount, fromBase58String(assetIdString))
582+ let call = $t01194512048._1
583+ let addr = $t01194512048._2
584+ let params = $t01194512048._3
585+ let payments = $t01194512048._4
580586 invoke(addr, call, params, payments)
581587 }
582588 else 0
605611 func checkSuspicious () = {
606612 let contractBalances = _xp()
607613 func checkBalance (acc,assetId) = {
608- let $t01246612491 = acc
609- let suspicious = $t01246612491._1
610- let i = $t01246612491._2
614+ let $t01265912684 = acc
615+ let suspicious = $t01265912684._1
616+ let i = $t01265912684._2
611617 if (suspicious)
612618 then $Tuple2(suspicious, i)
613619 else {
712718 else 0
713719 let withdrawAmount = (pmtAmount + unlockAmount)
714720 func calcScriptActions (acc,balance) = {
715- let $t01490714935 = acc
716- let scriptActions = $t01490714935._1
717- let i = $t01490714935._2
721+ let $t01510015128 = acc
722+ let scriptActions = $t01510015128._1
723+ let i = $t01510015128._2
718724 let wAmount = fraction(balance, withdrawAmount, shareSupply)
719725 if (assert((wAmount >= minAmounts[i])))
720726 then throw("Withdrawal resulted in fewer coins than expected")
726732 }
727733 }
728734
729- let $t01542415492 = {
735+ let $t01561715685 = {
730736 let $l = _xp()
731737 let $s = size($l)
732738 let $acc0 = $Tuple2(nil, 0)
740746
741747 $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)
742748 }
743- let scriptActions = $t01542415492._1
744- let i = $t01542415492._2
749+ let scriptActions = $t01561715685._1
750+ let i = $t01561715685._2
745751 (scriptActions ++ [Burn(shareAssetId, withdrawAmount), IntegerEntry(kShareAssetSupply, (shareSupply - withdrawAmount))])
746752 }
747753 }
764770 let tokenOutB58 = fromBase58String(tokenOut)
765771 let withdrawAmount = (pmtAmount + unlockAmount)
766772 let xp = _xp()
767- let $t01635416441 = _calcWithdrawOneCoin(xp, withdrawAmount, outIndex, msg.originCaller)
768- let dy = $t01635416441._1
769- let dy_fee = $t01635416441._2
773+ let $t01654716634 = _calcWithdrawOneCoin(xp, withdrawAmount, outIndex, msg.originCaller)
774+ let dy = $t01654716634._1
775+ let dy_fee = $t01654716634._2
770776 if (assert((dy >= minAmount)))
771777 then throw("Not enough coins removed")
772778 else {
773779 let governanceFees = fraction(dy_fee, feeGovernance, feeScale6)
780+ let teamFees = fraction(dy_fee, feeTeam, feeScale6)
774781 let dy_and_fee = (dy + dy_fee)
775782 func makeNewBalances (acc,tokenBalance) = {
776- let $t01669916725 = acc
777- let newBalances = $t01669916725._1
778- let i = $t01669916725._2
783+ let $t01694816974 = acc
784+ let newBalances = $t01694816974._1
785+ let i = $t01694816974._2
779786 if ((i == outIndex))
780787 then $Tuple2((newBalances :+ (tokenBalance - dy_and_fee)), (i + 1))
781788 else $Tuple2((newBalances :+ tokenBalance), (i + 1))
782789 }
783790
784- let $t01689216953 = {
791+ let $t01714117202 = {
785792 let $l = xp
786793 let $s = size($l)
787794 let $acc0 = $Tuple2(nil, 0)
795802
796803 $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)
797804 }
798- let newBalances = $t01689216953._1
799- let v = $t01689216953._2
805+ let newBalances = $t01714117202._1
806+ let v = $t01714117202._2
800807 if (checkDAppThreshold(newBalances))
801808 then throw()
802809 else {
803810 let us = unstake(dy_and_fee, tokenOut)
804811 if ((us == us))
805812 then {
806- let lpFees = (dy_fee - governanceFees)
813+ let lpFees = ((dy_fee - governanceFees) - teamFees)
807814 let airdrop = if ((lpFees > 0))
808815 then invoke(lpFarmingAddress, "airDrop", nil, [AttachedPayment(tokenOutB58, lpFees)])
809816 else 0
810817 if ((airdrop == airdrop))
811- then [ScriptTransfer(msg.originCaller, dy, tokenOutB58), IntegerEntry((assetIds[outIndex] + kAssetBalance), (xp[outIndex] - dy_and_fee)), Burn(shareAssetId, withdrawAmount), ScriptTransfer(moneyBoxAddress, governanceFees, tokenOutB58), IntegerEntry(kShareAssetSupply, (shareSupply - withdrawAmount))]
818+ then [ScriptTransfer(msg.originCaller, dy, tokenOutB58), IntegerEntry((assetIds[outIndex] + kAssetBalance), (xp[outIndex] - dy_and_fee)), Burn(shareAssetId, withdrawAmount), ScriptTransfer(moneyBoxAddress, governanceFees, tokenOutB58), ScriptTransfer(teamBoxAddress, teamFees, tokenOutB58), IntegerEntry(kShareAssetSupply, (shareSupply - withdrawAmount))]
812819 else throw("Strict value is not equal to itself.")
813820 }
814821 else throw("Strict value is not equal to itself.")
852859 let D0 = if ((shareSupply == 0))
853860 then 0
854861 else getDMem(xp, amp)
855- let $t01912219376 = if (if ((lockType > 0))
862+ let $t01944519699 = if (if ((lockType > 0))
856863 then (msg.payments[(size(msg.payments) - 1)].assetId == unit)
857864 else false)
858865 then $Tuple2(removeByIndex(msg.payments, (size(msg.payments) - 1)), [msg.payments[(size(msg.payments) - 1)]])
859866 else $Tuple2(msg.payments, nil)
860- let payments = $t01912219376._1
861- let lockFee = $t01912219376._2
867+ let payments = $t01944519699._1
868+ let lockFee = $t01944519699._2
862869 let paymentsSize = size(payments)
863870 func validPayments (n) = if ((paymentsSize > nCoins))
864871 then throw(("payments size > " + toString(nCoins)))
895902 then (suspendSuspicious(suspicious._2) ++ returnPayments(msg.caller, payments))
896903 else {
897904 func parsePayments (acc,assetId) = {
898- let $t02024620272 = acc
899- let newBalances = $t02024620272._1
900- let i = $t02024620272._2
905+ let $t02056920595 = acc
906+ let newBalances = $t02056920595._1
907+ let i = $t02056920595._2
901908 func parsePayment (newBalance,payment) = if ((getStrAssetId(payment.assetId) == assetId))
902909 then (newBalance + payment.amount)
903910 else newBalance
919926 $Tuple2((newBalances :+ newBalace), (i + 1))
920927 }
921928
922- let $t02062220689 = {
929+ let $t02094521012 = {
923930 let $l = assetIds
924931 let $s = size($l)
925932 let $acc0 = $Tuple2(nil, 0)
933940
934941 $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)
935942 }
936- let newBalances = $t02062220689._1
937- let k = $t02062220689._2
943+ let newBalances = $t02094521012._1
944+ let k = $t02094521012._2
938945 if (checkDAppThreshold(newBalances))
939946 then throw()
940947 else {
944951 else {
945952 let feeDiscount = calculateFeeDiscount(msg.caller)
946953 func calcScriptActions (acc,newBalance) = {
947- let $t02100921050 = acc
948- let invBalances = $t02100921050._1
949- let scriptActions = $t02100921050._2
950- let i = $t02100921050._3
954+ let $t02133221373 = acc
955+ let invBalances = $t02133221373._1
956+ let scriptActions = $t02133221373._2
957+ let i = $t02133221373._3
951958 if ((shareSupply > 0))
952959 then {
953960 let _fee = ((fraction(fee, feeDiscount, feeScale6, CEILING) * nCoins) / (4 * (nCoins - 1)))
959966 fraction(_fee, difference, feeScale6)
960967 }
961968 let governanceFees = fraction(fees, feeGovernance, feeScale6)
969+ let teamFees = fraction(fees, feeTeam, feeScale6)
962970 let finalBalance = (newBalance - fees)
963971 let invariantBalance = (newBalance - fees)
964972 let pmt = (newBalance - xp[i])
965- let lpFees = (fees - governanceFees)
973+ let lpFees = ((fees - governanceFees) - teamFees)
966974 let inv = if ((pmt > 0))
967975 then stake((pmt - fees), assetIds[i])
968976 else unstake(fees, assetIds[i])
972980 then invoke(lpFarmingAddress, "airDrop", nil, [AttachedPayment(fromBase58String(assetIds[i]), lpFees)])
973981 else 0
974982 if ((airdrop == airdrop))
975- then $Tuple3((invBalances :+ invariantBalance), (scriptActions ++ [ScriptTransfer(moneyBoxAddress, governanceFees, fromBase58String(assetIds[i])), IntegerEntry((assetIds[i] + kAssetBalance), finalBalance)]), (i + 1))
983+ then $Tuple3((invBalances :+ invariantBalance), (scriptActions ++ [ScriptTransfer(moneyBoxAddress, governanceFees, fromBase58String(assetIds[i])), ScriptTransfer(teamBoxAddress, teamFees, fromBase58String(assetIds[i])), IntegerEntry((assetIds[i] + kAssetBalance), finalBalance)]), (i + 1))
976984 else throw("Strict value is not equal to itself.")
977985 }
978986 else throw("Strict value is not equal to itself.")
985993 }
986994 }
987995
988- let $t02275522843 = {
996+ let $t02324523333 = {
989997 let $l = newBalances
990998 let $s = size($l)
991999 let $acc0 = $Tuple3(nil, nil, 0)
9991007
10001008 $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)
10011009 }
1002- let invBalances = $t02275522843._1
1003- let scriptActions = $t02275522843._2
1010+ let invBalances = $t02324523333._1
1011+ let scriptActions = $t02324523333._2
10041012 let D2 = getDMem(invBalances, amp)
10051013 let mint_amount = if ((shareSupply == 0))
10061014 then D1
10391047 let D0 = getDMem(xp, amp)
10401048 let feeDiscount = calculateFeeDiscount(user)
10411049 func calcInvBalances (acc,newBalance) = {
1042- let $t02412124147 = acc
1043- let invBalances = $t02412124147._1
1044- let i = $t02412124147._2
1050+ let $t02461124637 = acc
1051+ let invBalances = $t02461124637._1
1052+ let i = $t02461124637._2
10451053 let _fee = ((fraction(fee, feeDiscount, feeScale6, CEILING) * nCoins) / (4 * (nCoins - 1)))
10461054 let fees = {
10471055 let idealBalance = fraction(D1, xp[i], D0)
10541062 $Tuple2((invBalances :+ invariantBalance), (i + 1))
10551063 }
10561064
1057- let $t02474924819 = {
1065+ let $t02523925309 = {
10581066 let $l = newBalances
10591067 let $s = size($l)
10601068 let $acc0 = $Tuple2(nil, 0)
10681076
10691077 $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)
10701078 }
1071- let invBalances = $t02474924819._1
1072- let k = $t02474924819._2
1079+ let invBalances = $t02523925309._1
1080+ let k = $t02523925309._2
10731081 let D2 = getDMem(invBalances, amp)
10741082 let mintAmount = fraction(shareSupply, (D2 - D0), D0)
10751083 $Tuple2(nil, mintAmount)
11201128 let _fee = fraction(_dy, fraction(fee, feeDiscount, feeScale6, CEILING), feeScale6)
11211129 let dy = (_dy - _fee)
11221130 let governanceFees = fraction(_fee, feeGovernance, feeScale6)
1131+ let teamFees = fraction(_fee, feeTeam, feeScale6)
11231132 if (assert((dy >= min_dy)))
11241133 then throw("Exchange resulted in fewer coins than expected")
11251134 else {
11261135 func makeNewBalances (acc,tokenBalance) = {
1127- let $t02698927015 = acc
1128- let newBalances = $t02698927015._1
1129- let i = $t02698927015._2
1136+ let $t02753727563 = acc
1137+ let newBalances = $t02753727563._1
1138+ let i = $t02753727563._2
11301139 if ((i == fromIndex))
11311140 then $Tuple2((newBalances :+ (tokenBalance + dx)), (i + 1))
11321141 else if ((i == toIndex))
11341143 else $Tuple2((newBalances :+ tokenBalance), (i + 1))
11351144 }
11361145
1137- let $t02729827359 = {
1146+ let $t02784627907 = {
11381147 let $l = xp
11391148 let $s = size($l)
11401149 let $acc0 = $Tuple2(nil, 0)
11481157
11491158 $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)
11501159 }
1151- let newBalances = $t02729827359._1
1152- let i = $t02729827359._2
1160+ let newBalances = $t02784627907._1
1161+ let i = $t02784627907._2
11531162 if (checkDAppThreshold(newBalances))
11541163 then throw()
11551164 else {
11591168 let us = unstake(_dy, tokenOut)
11601169 if ((us == us))
11611170 then {
1162- let lpFees = (_fee - governanceFees)
1171+ let lpFees = ((_fee - governanceFees) - teamFees)
11631172 let airdrop = if ((lpFees > 0))
11641173 then invoke(lpFarmingAddress, "airDrop", nil, [AttachedPayment(tokenOutB58, lpFees)])
11651174 else 0
11661175 if ((airdrop == airdrop))
1167- then $Tuple2([IntegerEntry((tokenIn + kAssetBalance), x), IntegerEntry((tokenOut + kAssetBalance), (xp[toIndex] - _dy)), ScriptTransfer(msg.caller, dy, tokenOutB58), ScriptTransfer(moneyBoxAddress, governanceFees, tokenOutB58)], [dy, tokenOutB58])
1176+ then $Tuple2([IntegerEntry((tokenIn + kAssetBalance), x), IntegerEntry((tokenOut + kAssetBalance), (xp[toIndex] - _dy)), ScriptTransfer(msg.caller, dy, tokenOutB58), ScriptTransfer(moneyBoxAddress, governanceFees, tokenOutB58), ScriptTransfer(teamBoxAddress, teamFees, tokenOutB58)], [dy, tokenOutB58])
11681177 else throw("Strict value is not equal to itself.")
11691178 }
11701179 else throw("Strict value is not equal to itself.")
12421251 let balances = _xp()
12431252 let D0 = getDMem(balances, amp)
12441253 func calcNewBalances (acc,balance) = {
1245- let $t03014930175 = acc
1246- let newBalances = $t03014930175._1
1247- let i = $t03014930175._2
1254+ let $t03077930805 = acc
1255+ let newBalances = $t03077930805._1
1256+ let i = $t03077930805._2
12481257 let newBalance = (balance + (if (deposit)
12491258 then amounts[i]
12501259 else -(amounts[i])))
13291338 else {
13301339 let balances = _xp()
13311340 func takeExtraFunds (acc,assetId) = {
1332- let $t03276032778 = acc
1333- let sum = $t03276032778._1
1334- let i = $t03276032778._2
1341+ let $t03339033408 = acc
1342+ let sum = $t03339033408._1
1343+ let i = $t03339033408._2
13351344 let tokenB58 = fromBase58String(assetId)
13361345 let rBalance = (assetBalance(this, tokenB58) + stakedAmount(tokenB58))
13371346 let enrollAmount = (rBalance - balances[i])
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let PRECISION = 1000000
55
66 let MAX_A = 1000000
77
88 let MAX_A_CHANGE = 10
99
1010 let DECIMALS = 6
1111
1212 let MIN_RAMP_TIME = (86400 / 60)
1313
1414 let version = "3.0.0"
1515
1616 let kVersion = "version"
1717
1818 let kAssets = "asset_ids"
1919
2020 let kAssetBalance = "_balance"
2121
2222 let kActive = "active"
2323
2424 let kActiveGlob = "active_all_contracts"
2525
2626 let kDeprecated = "deprecated_"
2727
2828 let kCause = "shutdown_cause"
2929
3030 let kShareAssetId = "share_asset_id"
3131
3232 let kShareAssetSupply = "share_asset_supply"
3333
3434 let kFee = "commission"
3535
3636 let kDAppThresholdCoef = "dAppThresholdCoef"
3737
3838 let kUSDNAddress = "staking_usdnnsbt_address"
3939
4040 let kDiscounts = "discounts"
4141
4242 let kDiscountValues = "discount_values"
4343
4444 let kUserSwopInGov = "_SWOP_amount"
4545
4646 let kUserGSwopInGov = "_GSwop_amount"
4747
4848 let kAdminPubKey1 = "admin_pub_1"
4949
5050 let kAdminPubKey2 = "admin_pub_2"
5151
5252 let kAdminPubKey3 = "admin_pub_3"
5353
5454 let kAdminInvokePubKey = "admin_invoke_pub"
5555
5656 let kMoneyBoxAddress = "money_box_address"
5757
58+let kTeamBoxAddress = "team_box_address"
59+
5860 let kGovAddress = "governance_address"
5961
6062 let kVotingAddress = "voting_address"
6163
6264 let kFarmingAddress = "farming_address"
6365
6466 let kLPFarmingAddress = "lp_farming"
6567
6668 let oracle = Address(base58'3MvVBtsXroQpy1tsPw21TU2ET9A8WfmrNjz')
6769
6870 func getBase58FromOracle (key) = match getString(oracle, key) {
6971 case string: String =>
7072 fromBase58String(string)
7173 case nothing =>
7274 throw((key + "is empty"))
7375 }
7476
7577
7678 let adminPubKey1 = getBase58FromOracle(kAdminPubKey1)
7779
7880 let adminPubKey2 = getBase58FromOracle(kAdminPubKey2)
7981
8082 let adminPubKey3 = getBase58FromOracle(kAdminPubKey3)
8183
8284 let adminPubKeyInvoke = getBase58FromOracle(kAdminInvokePubKey)
8385
8486 let moneyBoxAddress = Address(getBase58FromOracle(kMoneyBoxAddress))
87+
88+let teamBoxAddress = Address(getBase58FromOracle(kTeamBoxAddress))
8589
8690 let govAddress = Address(getBase58FromOracle(kGovAddress))
8791
8892 let stakingUSDNAddress = Address(getBase58FromOracle(kUSDNAddress))
8993
9094 let votingAddress = Address(getBase58FromOracle(kVotingAddress))
9195
9296 let farmingAddress = Address(getBase58FromOracle(kFarmingAddress))
9397
9498 let lpFarmingAddress = Address(getBase58FromOracle(kLPFarmingAddress))
9599
96100 let USDN = base58'DG2xFkPdDwKUoBkzGAhQtLpSGzfXLiCYPEzeKH2Ad24p'
97101
98102 let stakingAssets = [toBase58String(USDN)]
99103
100104 let active = getBooleanValue(this, kActive)
101105
102106 let activeGlob = valueOrElse(getBoolean(oracle, kActiveGlob), true)
103107
104108 let deprecatedPool = valueOrElse(getBoolean(oracle, (kDeprecated + toString(this))), false)
105109
106110 let shareAssetId = fromBase58String(getStringValue(this, kShareAssetId))
107111
108112 let shareSupply = getIntegerValue(this, kShareAssetSupply)
109113
110114 let feeScale6 = 1000000
111115
112116 let fee = getIntegerValue(this, kFee)
113117
114-let feeGovernance = fraction(40, feeScale6, 100)
118+let feeGovernance = fraction(35, feeScale6, 100)
119+
120+let feeTeam = fraction(10, feeScale6, 100)
115121
116122 let initial_A = getIntegerValue(this, "initial_A")
117123
118124 let future_A = getIntegerValue(this, "future_A")
119125
120126 let initial_A_time = valueOrElse(getInteger(this, "initial_A_time"), 0)
121127
122128 let future_A_time = valueOrElse(getInteger(this, "future_A_time"), 0)
123129
124130 let assetIds = split(getStringValue(this, kAssets), ",")
125131
126132 let nCoins = size(assetIds)
127133
128134 func suspend (cause) = [BooleanEntry(kActive, false), StringEntry(kCause, cause)]
129135
130136
131137 func throwIsActive () = throw("DApp is already active")
132138
133139
134140 func isActive () = if (if (active)
135141 then activeGlob
136142 else false)
137143 then unit
138144 else throw("DApp is inactive at this moment")
139145
140146
141147 func isDepricated () = if (!(deprecatedPool))
142148 then unit
143149 else throw("Pool is deprecated. Only withdraw action allowed.")
144150
145151
146152 func isAdminCall (i) = if (containsElement([adminPubKey1, adminPubKey2, adminPubKey3], i.callerPublicKey))
147153 then unit
148154 else throw("Only admin can call this function")
149155
150156
151157 func isSelfCall (i) = if ((this == i.caller))
152158 then unit
153159 else throw("Only contract itself can call this function")
154160
155161
156162 let big2 = toBigInt(2)
157163
158164 let iter10 = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
159165
160166 let iter15 = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14]
161167
162168 let iter16 = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15]
163169
164170 let blockTimestamp = height
165171
166172 func assert (a) = if (a)
167173 then false
168174 else true
169175
170176
171177 func calculateFeeDiscount (userAddr) = {
172178 let user = match userAddr {
173179 case u: Address =>
174180 toString(u)
175181 case u: String =>
176182 u
177183 case _ =>
178184 throw("Unknow type of user Addr")
179185 }
180186 let swopAmount = valueOrElse(getInteger(govAddress, (user + kUserGSwopInGov)), 0)
181187 let gSwopAmount = valueOrElse(getInteger(govAddress, (user + kUserGSwopInGov)), swopAmount)
182188 let discountValues = split(getStringValue(oracle, kDiscountValues), ",")
183189 let discounts = split(getStringValue(oracle, kDiscounts), ",")
184190 if (if ((gSwopAmount >= parseIntValue(discountValues[0])))
185191 then (parseIntValue(discountValues[1]) > gSwopAmount)
186192 else false)
187193 then (feeScale6 - parseIntValue(discounts[0]))
188194 else if (if ((gSwopAmount >= parseIntValue(discountValues[1])))
189195 then (parseIntValue(discountValues[2]) > gSwopAmount)
190196 else false)
191197 then (feeScale6 - parseIntValue(discounts[1]))
192198 else if (if ((gSwopAmount >= parseIntValue(discountValues[2])))
193199 then (parseIntValue(discountValues[3]) > gSwopAmount)
194200 else false)
195201 then (feeScale6 - parseIntValue(discounts[2]))
196202 else if (if ((gSwopAmount >= parseIntValue(discountValues[3])))
197203 then (parseIntValue(discountValues[4]) > gSwopAmount)
198204 else false)
199205 then (feeScale6 - parseIntValue(discounts[3]))
200206 else if ((gSwopAmount >= parseIntValue(discountValues[4])))
201207 then (feeScale6 - parseIntValue(discounts[4]))
202208 else feeScale6
203209 }
204210
205211
206212 func _A () = {
207213 let t1 = future_A_time
208214 let A1 = future_A
209215 if ((t1 > blockTimestamp))
210216 then {
211217 let A0 = initial_A
212218 let t0 = initial_A_time
213219 if ((A1 > A0))
214220 then (A0 + (((A1 - A0) * (blockTimestamp - t0)) / (t1 - t0)))
215221 else (A0 - (((A0 - A1) * (blockTimestamp - t0)) / (t1 - t0)))
216222 }
217223 else A1
218224 }
219225
220226
221227 func _xp () = {
222228 func assetBalances (acc,assetId) = (acc :+ valueOrElse(getInteger(this, (assetId + kAssetBalance)), 0))
223229
224230 let $l = assetIds
225231 let $s = size($l)
226232 let $acc0 = nil
227233 func $f0_1 ($a,$i) = if (($i >= $s))
228234 then $a
229235 else assetBalances($a, $l[$i])
230236
231237 func $f0_2 ($a,$i) = if (($i >= $s))
232238 then $a
233239 else throw("List size exceeds 10")
234240
235241 $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)
236242 }
237243
238244
239245 func _xp_mem (xp) = xp
240246
241247
242248 func sumList (acc,element) = (acc + element)
243249
244250
245251 func get_D (xp,amp) = {
246252 let @ = invoke(this, "D", [xp, amp], nil)
247253 if ($isInstanceOf(@, "Int"))
248254 then @
249255 else throw(($getType(@) + " couldn't be cast to Int"))
250256 }
251257
252258
253259 func get_D_internal (xp,amp) = {
254260 let S = {
255261 let $l = xp
256262 let $s = size($l)
257263 let $acc0 = 0
258264 func $f0_1 ($a,$i) = if (($i >= $s))
259265 then $a
260266 else sumList($a, $l[$i])
261267
262268 func $f0_2 ($a,$i) = if (($i >= $s))
263269 then $a
264270 else throw("List size exceeds 10")
265271
266272 $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)
267273 }
268274 if ((S == 0))
269275 then 0
270276 else {
271277 let Ann = (amp * nCoins)
272278 let AnnS = (toBigInt(Ann) * toBigInt(S))
273279 let Ann1 = toBigInt((Ann - 1))
274280 func Dproc (acc,i) = if ((acc._2 == true))
275281 then acc
276282 else {
277283 let Dprev = acc._1
278284 func D_PProc (D_P,i) = if ((nCoins > i))
279285 then ((D_P * Dprev) / (toBigInt(xp[i]) * toBigInt(nCoins)))
280286 else D_P
281287
282288 let D_P = {
283289 let $l = iter10
284290 let $s = size($l)
285291 let $acc0 = Dprev
286292 func $f1_1 ($a,$i) = if (($i >= $s))
287293 then $a
288294 else D_PProc($a, $l[$i])
289295
290296 func $f1_2 ($a,$i) = if (($i >= $s))
291297 then $a
292298 else throw("List size exceeds 10")
293299
294300 $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)
295301 }
296302 let D = fraction((AnnS + (toBigInt(nCoins) * D_P)), Dprev, ((Ann1 * Dprev) + (toBigInt((nCoins + 1)) * D_P)))
297303 if ((D > Dprev))
298304 then if ((1 >= toInt((D - Dprev))))
299305 then $Tuple2(D, true)
300306 else $Tuple2(D, false)
301307 else if ((1 >= toInt((Dprev - D))))
302308 then $Tuple2(D, true)
303309 else $Tuple2(D, false)
304310 }
305311
306- let $t068116877 = {
312+ let $t070047070 = {
307313 let $l = iter15
308314 let $s = size($l)
309315 let $acc0 = $Tuple2(toBigInt(S), false)
310316 func $f1_1 ($a,$i) = if (($i >= $s))
311317 then $a
312318 else Dproc($a, $l[$i])
313319
314320 func $f1_2 ($a,$i) = if (($i >= $s))
315321 then $a
316322 else throw("List size exceeds 15")
317323
318324 $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)
319325 }
320- let D = $t068116877._1
321- let finished = $t068116877._2
326+ let D = $t070047070._1
327+ let finished = $t070047070._2
322328 if ((finished == false))
323329 then throw(("get_D() not finished with " + toString(D)))
324330 else toInt(D)
325331 }
326332 }
327333
328334
329335 func getDMem (xp,amp) = get_D(_xp_mem(xp), amp)
330336
331337
332338 func getY (in,out,x,xp_) = if (assert((in != out)))
333339 then throw("same coin")
334340 else if (assert(if ((out >= 0))
335341 then (in >= 0)
336342 else false))
337343 then throw("below zero")
338344 else if (assert(if ((nCoins > out))
339345 then (nCoins > in)
340346 else false))
341347 then throw("above N_COINS")
342348 else {
343349 let amp = _A()
344350 let D = get_D(xp_, amp)
345351 let Ann = (amp * nCoins)
346352 func S_c (acc,i) = {
347- let $t074487465 = acc
348- let S_ = $t074487465._1
349- let c = $t074487465._2
353+ let $t076417658 = acc
354+ let S_ = $t076417658._1
355+ let c = $t076417658._2
350356 let x_ = if ((in == i))
351357 then x
352358 else xp_[i]
353359 if (if ((i != out))
354360 then (nCoins > i)
355361 else false)
356362 then $Tuple2((S_ + x_), fraction(c, toBigInt(D), toBigInt((x_ * nCoins))))
357363 else $Tuple2(S_, c)
358364 }
359365
360- let $t076737728 = {
366+ let $t078667921 = {
361367 let $l = iter10
362368 let $s = size($l)
363369 let $acc0 = $Tuple2(0, toBigInt(D))
364370 func $f0_1 ($a,$i) = if (($i >= $s))
365371 then $a
366372 else S_c($a, $l[$i])
367373
368374 func $f0_2 ($a,$i) = if (($i >= $s))
369375 then $a
370376 else throw("List size exceeds 10")
371377
372378 $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)
373379 }
374- let S_ = $t076737728._1
375- let c_ = $t076737728._2
380+ let S_ = $t078667921._1
381+ let c_ = $t078667921._2
376382 let c = fraction(c_, toBigInt(D), toBigInt((Ann * nCoins)))
377383 let bD = toBigInt(((S_ + (D / Ann)) - D))
378384 func y_proc (acc,_i) = if ((acc._2 == true))
379385 then acc
380386 else {
381387 let y_prev = acc._1
382388 let y = (((y_prev * y_prev) + c) / ((big2 * y_prev) + bD))
383389 if ((y > y_prev))
384390 then if ((1 >= toInt((y - y_prev))))
385391 then $Tuple2(y, true)
386392 else $Tuple2(y, false)
387393 else if ((1 >= toInt((y_prev - y))))
388394 then $Tuple2(y, true)
389395 else $Tuple2(y, false)
390396 }
391397
392- let $t082108277 = {
398+ let $t084038470 = {
393399 let $l = iter16
394400 let $s = size($l)
395401 let $acc0 = $Tuple2(toBigInt(D), false)
396402 func $f1_1 ($a,$i) = if (($i >= $s))
397403 then $a
398404 else y_proc($a, $l[$i])
399405
400406 func $f1_2 ($a,$i) = if (($i >= $s))
401407 then $a
402408 else throw("List size exceeds 16")
403409
404410 $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)
405411 }
406- let y = $t082108277._1
407- let finished = $t082108277._2
412+ let y = $t084038470._1
413+ let finished = $t084038470._2
408414 if ((finished == false))
409415 then throw(("getY() not finished with " + toString(y)))
410416 else toInt(y)
411417 }
412418
413419
414420 func get_y_D (A_,in,xp,D) = if (assert((in >= 0)))
415421 then throw("i below zero")
416422 else if (assert((nCoins > in)))
417423 then throw("i above N_COINS")
418424 else {
419425 let Ann = (A_ * nCoins)
420426 func S_c (acc,i) = {
421- let $t086568673 = acc
422- let S_ = $t086568673._1
423- let c = $t086568673._2
427+ let $t088498866 = acc
428+ let S_ = $t088498866._1
429+ let c = $t088498866._2
424430 let x_ = if (if ((in != i))
425431 then (nCoins > i)
426432 else false)
427433 then xp[i]
428434 else 0
429435 if (if ((nCoins > i))
430436 then (in != i)
431437 else false)
432438 then $Tuple2((S_ + x_), fraction(c, toBigInt(D), toBigInt((x_ * nCoins))))
433439 else $Tuple2(S_, c)
434440 }
435441
436- let $t088938948 = {
442+ let $t090869141 = {
437443 let $l = iter10
438444 let $s = size($l)
439445 let $acc0 = $Tuple2(0, toBigInt(D))
440446 func $f0_1 ($a,$i) = if (($i >= $s))
441447 then $a
442448 else S_c($a, $l[$i])
443449
444450 func $f0_2 ($a,$i) = if (($i >= $s))
445451 then $a
446452 else throw("List size exceeds 10")
447453
448454 $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)
449455 }
450- let S_ = $t088938948._1
451- let c_ = $t088938948._2
456+ let S_ = $t090869141._1
457+ let c_ = $t090869141._2
452458 let c = fraction(c_, toBigInt(D), toBigInt((Ann * nCoins)))
453459 let bD = toBigInt(((S_ + (D / Ann)) - D))
454460 func y_D_proc (acc,i) = if ((acc._2 == true))
455461 then acc
456462 else {
457463 let y_prev = acc._1
458464 let y = (((y_prev * y_prev) + c) / ((big2 * y_prev) + bD))
459465 if ((y > y_prev))
460466 then if ((1 >= toInt((y - y_prev))))
461467 then $Tuple2(y, true)
462468 else $Tuple2(y, false)
463469 else if ((1 >= toInt((y_prev - y))))
464470 then $Tuple2(y, true)
465471 else $Tuple2(y, false)
466472 }
467473
468- let $t094319500 = {
474+ let $t096249693 = {
469475 let $l = iter16
470476 let $s = size($l)
471477 let $acc0 = $Tuple2(toBigInt(D), false)
472478 func $f1_1 ($a,$i) = if (($i >= $s))
473479 then $a
474480 else y_D_proc($a, $l[$i])
475481
476482 func $f1_2 ($a,$i) = if (($i >= $s))
477483 then $a
478484 else throw("List size exceeds 16")
479485
480486 $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)
481487 }
482- let y = $t094319500._1
483- let finished = $t094319500._2
488+ let y = $t096249693._1
489+ let finished = $t096249693._2
484490 if ((finished == false))
485491 then throw(("get_y_D() not finished with " + toString(y)))
486492 else toInt(y)
487493 }
488494
489495
490496 func _calcWithdrawOneCoin (xp,_token_amount,i,caller) = {
491497 let feeDiscount = calculateFeeDiscount(caller)
492498 let amp = _A()
493499 let _fee = ((fraction(fee, feeDiscount, feeScale6, CEILING) * nCoins) / (4 * (nCoins - 1)))
494500 let total_supply = shareSupply
495501 let D0 = get_D(xp, amp)
496502 let D1 = (D0 - fraction(_token_amount, D0, total_supply))
497503 let new_y = get_y_D(amp, i, xp, D1)
498504 let dy_0 = (xp[i] - new_y)
499505 func xp_reduced_proc (acc,xp_j) = {
500- let $t01014110170 = acc
501- let xp_reduced = $t01014110170._1
502- let index = $t01014110170._2
506+ let $t01033410363 = acc
507+ let xp_reduced = $t01033410363._1
508+ let index = $t01033410363._2
503509 let dx_expected = if ((index == i))
504510 then (fraction(xp_j, D1, D0) - new_y)
505511 else (xp_j - fraction(xp_j, D1, D0))
506512 $Tuple2((xp_reduced :+ (xp_j - fraction(_fee, dx_expected, feeScale6))), (index + 1))
507513 }
508514
509- let $t01043210496 = {
515+ let $t01062510689 = {
510516 let $l = xp
511517 let $s = size($l)
512518 let $acc0 = $Tuple2(nil, 0)
513519 func $f0_1 ($a,$i) = if (($i >= $s))
514520 then $a
515521 else xp_reduced_proc($a, $l[$i])
516522
517523 func $f0_2 ($a,$i) = if (($i >= $s))
518524 then $a
519525 else throw("List size exceeds 10")
520526
521527 $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)
522528 }
523- let xp_reduced = $t01043210496._1
524- let index = $t01043210496._2
529+ let xp_reduced = $t01062510689._1
530+ let index = $t01062510689._2
525531 let xp_reduced_i = xp_reduced[i]
526532 let dy = ((xp_reduced_i - get_y_D(amp, i, xp_reduced, D1)) - 1)
527533 $Tuple2(dy, (dy_0 - dy))
528534 }
529535
530536
531537 func getStrAssetId (assetId) = match assetId {
532538 case id: ByteVector =>
533539 toBase58String(id)
534540 case waves: Unit =>
535541 "WAVES"
536542 case _ =>
537543 throw("Match error")
538544 }
539545
540546
541547 func calcStakingFuncAndAddres (stake,assetId) = if (stake)
542548 then $Tuple2("lockNeutrino", stakingUSDNAddress)
543549 else $Tuple2("unlockNeutrino", stakingUSDNAddress)
544550
545551
546552 func calcStakingParams (stake,amount,assetId) = if (stake)
547553 then {
548- let $t01106011126 = calcStakingFuncAndAddres(stake, assetId)
549- let call = $t01106011126._1
550- let stakingAddr = $t01106011126._2
554+ let $t01125311319 = calcStakingFuncAndAddres(stake, assetId)
555+ let call = $t01125311319._1
556+ let stakingAddr = $t01125311319._2
551557 $Tuple4(call, stakingAddr, nil, [AttachedPayment(assetId, amount)])
552558 }
553559 else {
554- let $t01121211278 = calcStakingFuncAndAddres(stake, assetId)
555- let call = $t01121211278._1
556- let stakingAddr = $t01121211278._2
560+ let $t01140511471 = calcStakingFuncAndAddres(stake, assetId)
561+ let call = $t01140511471._1
562+ let stakingAddr = $t01140511471._2
557563 $Tuple4(call, stakingAddr, [amount, toBase58String(assetId)], nil)
558564 }
559565
560566
561567 func stake (amount,assetIdString) = if (containsElement(stakingAssets, assetIdString))
562568 then {
563- let $t01146511567 = calcStakingParams(true, amount, fromBase58String(assetIdString))
564- let call = $t01146511567._1
565- let addr = $t01146511567._2
566- let params = $t01146511567._3
567- let payments = $t01146511567._4
569+ let $t01165811760 = calcStakingParams(true, amount, fromBase58String(assetIdString))
570+ let call = $t01165811760._1
571+ let addr = $t01165811760._2
572+ let params = $t01165811760._3
573+ let payments = $t01165811760._4
568574 invoke(addr, call, params, payments)
569575 }
570576 else 0
571577
572578
573579 func unstake (amount,assetIdString) = if (containsElement(stakingAssets, assetIdString))
574580 then {
575- let $t01175211855 = calcStakingParams(false, amount, fromBase58String(assetIdString))
576- let call = $t01175211855._1
577- let addr = $t01175211855._2
578- let params = $t01175211855._3
579- let payments = $t01175211855._4
581+ let $t01194512048 = calcStakingParams(false, amount, fromBase58String(assetIdString))
582+ let call = $t01194512048._1
583+ let addr = $t01194512048._2
584+ let params = $t01194512048._3
585+ let payments = $t01194512048._4
580586 invoke(addr, call, params, payments)
581587 }
582588 else 0
583589
584590
585591 func stakedAmount (assetId) = {
586592 let stakedAmountCalculated = match assetId {
587593 case aId: ByteVector =>
588594 if ((aId == USDN))
589595 then getInteger(stakingUSDNAddress, ((("rpd_balance_" + toBase58String(aId)) + "_") + toString(this)))
590596 else 0
591597 case _: Unit =>
592598 0
593599 case _ =>
594600 throw("Match error")
595601 }
596602 match stakedAmountCalculated {
597603 case i: Int =>
598604 i
599605 case _ =>
600606 0
601607 }
602608 }
603609
604610
605611 func checkSuspicious () = {
606612 let contractBalances = _xp()
607613 func checkBalance (acc,assetId) = {
608- let $t01246612491 = acc
609- let suspicious = $t01246612491._1
610- let i = $t01246612491._2
614+ let $t01265912684 = acc
615+ let suspicious = $t01265912684._1
616+ let i = $t01265912684._2
611617 if (suspicious)
612618 then $Tuple2(suspicious, i)
613619 else {
614620 let aBalance = (assetBalance(this, fromBase58String(assetId)) + stakedAmount(fromBase58String(assetId)))
615621 if ((contractBalances[i] > aBalance))
616622 then $Tuple2(true, i)
617623 else $Tuple2(false, (i + 1))
618624 }
619625 }
620626
621627 let $l = assetIds
622628 let $s = size($l)
623629 let $acc0 = $Tuple2(false, 0)
624630 func $f0_1 ($a,$i) = if (($i >= $s))
625631 then $a
626632 else checkBalance($a, $l[$i])
627633
628634 func $f0_2 ($a,$i) = if (($i >= $s))
629635 then $a
630636 else throw("List size exceeds 10")
631637
632638 $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)
633639 }
634640
635641
636642 func suspendSuspicious (i) = suspend(("Suspicious state with asset: " + assetIds[i]))
637643
638644
639645 func returnPayments (caller,payments) = {
640646 func parsePayments (acc,payment) = (acc :+ ScriptTransfer(caller, payment.amount, payment.assetId))
641647
642648 let $l = payments
643649 let $s = size($l)
644650 let $acc0 = nil
645651 func $f0_1 ($a,$i) = if (($i >= $s))
646652 then $a
647653 else parsePayments($a, $l[$i])
648654
649655 func $f0_2 ($a,$i) = if (($i >= $s))
650656 then $a
651657 else throw("List size exceeds 10")
652658
653659 $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)
654660 }
655661
656662
657663 func checkDAppThreshold (newBalances) = {
658664 let dAppThresholdCoef = valueOrErrorMessage(getInteger(this, kDAppThresholdCoef), "No dAppThresholdCoef key")
659665 let thresholdScale = 10000
660666 let maxBalance = max(newBalances)
661667 let minBalance = min(newBalances)
662668 let ratio = fraction(maxBalance, thresholdScale, minBalance)
663669 if ((ratio > (dAppThresholdCoef * thresholdScale)))
664670 then throw("New balance in assets of the DApp is less than threshold")
665671 else false
666672 }
667673
668674
669675 func checkCoins (assetIds) = {
670676 let coins = split(assetIds, ",")
671677 if ((size(coins) > 10))
672678 then throw("To many coins, max coins size 10")
673679 else {
674680 func checkCoin (error,assetId) = {
675681 let asset = valueOrErrorMessage(fromBase58String(assetId), ("fromBase58String: " + assetId))
676682 let decimals = valueOrErrorMessage(assetInfo(asset), ("assetInfo: " + assetId)).decimals
677683 if ((decimals != DECIMALS))
678684 then throw("wrong decimals")
679685 else false
680686 }
681687
682688 let $l = coins
683689 let $s = size($l)
684690 let $acc0 = false
685691 func $f0_1 ($a,$i) = if (($i >= $s))
686692 then $a
687693 else checkCoin($a, $l[$i])
688694
689695 func $f0_2 ($a,$i) = if (($i >= $s))
690696 then $a
691697 else throw("List size exceeds 10")
692698
693699 $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)
694700 }
695701 }
696702
697703
698704 func calcWithdraw (msg,minAmounts,unlockAmount) = {
699705 let suspicious = checkSuspicious()
700706 if (suspicious._1)
701707 then (suspendSuspicious(suspicious._2) ++ returnPayments(msg.caller, msg.payments))
702708 else {
703709 let pmtAmount = if ((size(msg.payments) > 0))
704710 then if ((size(msg.payments) != 1))
705711 then throw("size(payments) != 1")
706712 else {
707713 let pmtAssetId = msg.payments[0].assetId
708714 if ((shareAssetId != pmtAssetId))
709715 then throw("unknown payment token")
710716 else msg.payments[0].amount
711717 }
712718 else 0
713719 let withdrawAmount = (pmtAmount + unlockAmount)
714720 func calcScriptActions (acc,balance) = {
715- let $t01490714935 = acc
716- let scriptActions = $t01490714935._1
717- let i = $t01490714935._2
721+ let $t01510015128 = acc
722+ let scriptActions = $t01510015128._1
723+ let i = $t01510015128._2
718724 let wAmount = fraction(balance, withdrawAmount, shareSupply)
719725 if (assert((wAmount >= minAmounts[i])))
720726 then throw("Withdrawal resulted in fewer coins than expected")
721727 else {
722728 let us = unstake(wAmount, assetIds[i])
723729 if ((us == us))
724730 then $Tuple2((scriptActions ++ [IntegerEntry((assetIds[i] + kAssetBalance), (balance - wAmount)), ScriptTransfer(msg.caller, wAmount, fromBase58String(assetIds[i]))]), (i + 1))
725731 else throw("Strict value is not equal to itself.")
726732 }
727733 }
728734
729- let $t01542415492 = {
735+ let $t01561715685 = {
730736 let $l = _xp()
731737 let $s = size($l)
732738 let $acc0 = $Tuple2(nil, 0)
733739 func $f0_1 ($a,$i) = if (($i >= $s))
734740 then $a
735741 else calcScriptActions($a, $l[$i])
736742
737743 func $f0_2 ($a,$i) = if (($i >= $s))
738744 then $a
739745 else throw("List size exceeds 10")
740746
741747 $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)
742748 }
743- let scriptActions = $t01542415492._1
744- let i = $t01542415492._2
749+ let scriptActions = $t01561715685._1
750+ let i = $t01561715685._2
745751 (scriptActions ++ [Burn(shareAssetId, withdrawAmount), IntegerEntry(kShareAssetSupply, (shareSupply - withdrawAmount))])
746752 }
747753 }
748754
749755
750756 func calcWithdrawOneCoinEntries (msg,tokenOut,minAmount,unlockAmount) = {
751757 let suspicious = checkSuspicious()
752758 if (suspicious._1)
753759 then (suspendSuspicious(suspicious._2) ++ returnPayments(msg.originCaller, msg.payments))
754760 else {
755761 let pmtAmount = if ((size(msg.payments) > 0))
756762 then {
757763 let pmtAssetId = msg.payments[0].assetId
758764 if ((shareAssetId != pmtAssetId))
759765 then throw("unknown payment token")
760766 else msg.payments[0].amount
761767 }
762768 else 0
763769 let outIndex = valueOrErrorMessage(indexOf(assetIds, tokenOut), "unknown token out")
764770 let tokenOutB58 = fromBase58String(tokenOut)
765771 let withdrawAmount = (pmtAmount + unlockAmount)
766772 let xp = _xp()
767- let $t01635416441 = _calcWithdrawOneCoin(xp, withdrawAmount, outIndex, msg.originCaller)
768- let dy = $t01635416441._1
769- let dy_fee = $t01635416441._2
773+ let $t01654716634 = _calcWithdrawOneCoin(xp, withdrawAmount, outIndex, msg.originCaller)
774+ let dy = $t01654716634._1
775+ let dy_fee = $t01654716634._2
770776 if (assert((dy >= minAmount)))
771777 then throw("Not enough coins removed")
772778 else {
773779 let governanceFees = fraction(dy_fee, feeGovernance, feeScale6)
780+ let teamFees = fraction(dy_fee, feeTeam, feeScale6)
774781 let dy_and_fee = (dy + dy_fee)
775782 func makeNewBalances (acc,tokenBalance) = {
776- let $t01669916725 = acc
777- let newBalances = $t01669916725._1
778- let i = $t01669916725._2
783+ let $t01694816974 = acc
784+ let newBalances = $t01694816974._1
785+ let i = $t01694816974._2
779786 if ((i == outIndex))
780787 then $Tuple2((newBalances :+ (tokenBalance - dy_and_fee)), (i + 1))
781788 else $Tuple2((newBalances :+ tokenBalance), (i + 1))
782789 }
783790
784- let $t01689216953 = {
791+ let $t01714117202 = {
785792 let $l = xp
786793 let $s = size($l)
787794 let $acc0 = $Tuple2(nil, 0)
788795 func $f0_1 ($a,$i) = if (($i >= $s))
789796 then $a
790797 else makeNewBalances($a, $l[$i])
791798
792799 func $f0_2 ($a,$i) = if (($i >= $s))
793800 then $a
794801 else throw("List size exceeds 10")
795802
796803 $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)
797804 }
798- let newBalances = $t01689216953._1
799- let v = $t01689216953._2
805+ let newBalances = $t01714117202._1
806+ let v = $t01714117202._2
800807 if (checkDAppThreshold(newBalances))
801808 then throw()
802809 else {
803810 let us = unstake(dy_and_fee, tokenOut)
804811 if ((us == us))
805812 then {
806- let lpFees = (dy_fee - governanceFees)
813+ let lpFees = ((dy_fee - governanceFees) - teamFees)
807814 let airdrop = if ((lpFees > 0))
808815 then invoke(lpFarmingAddress, "airDrop", nil, [AttachedPayment(tokenOutB58, lpFees)])
809816 else 0
810817 if ((airdrop == airdrop))
811- then [ScriptTransfer(msg.originCaller, dy, tokenOutB58), IntegerEntry((assetIds[outIndex] + kAssetBalance), (xp[outIndex] - dy_and_fee)), Burn(shareAssetId, withdrawAmount), ScriptTransfer(moneyBoxAddress, governanceFees, tokenOutB58), IntegerEntry(kShareAssetSupply, (shareSupply - withdrawAmount))]
818+ then [ScriptTransfer(msg.originCaller, dy, tokenOutB58), IntegerEntry((assetIds[outIndex] + kAssetBalance), (xp[outIndex] - dy_and_fee)), Burn(shareAssetId, withdrawAmount), ScriptTransfer(moneyBoxAddress, governanceFees, tokenOutB58), ScriptTransfer(teamBoxAddress, teamFees, tokenOutB58), IntegerEntry(kShareAssetSupply, (shareSupply - withdrawAmount))]
812819 else throw("Strict value is not equal to itself.")
813820 }
814821 else throw("Strict value is not equal to itself.")
815822 }
816823 }
817824 }
818825 }
819826
820827
821828 @Callable(msg)
822829 func D (xp,amp) = {
823830 let D = get_D_internal(xp, amp)
824831 $Tuple2([IntegerEntry("D", D)], D)
825832 }
826833
827834
828835
829836 @Callable(msg)
830837 func init (assetIds,_A,_dAppThresholdCoef) = if (!(isDataStorageUntouched(this)))
831838 then throw("Already initialized")
832839 else if ((0 >= _A))
833840 then throw("Amp must be must > 0")
834841 else if ((0 >= _dAppThresholdCoef))
835842 then throw("dApp Threshold Coef must be > 0")
836843 else {
837844 let shareName = "s_Multi_USD"
838845 let shareDescription = ("ShareToken of SwopFi protocol for MultiStable USD pool at address " + toString(this))
839846 let issueToken = Issue(shareName, shareDescription, 0, 6, true)
840847 let tokenId = calculateAssetId(issueToken)
841848 if (checkCoins(assetIds))
842849 then throw()
843850 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]
844851 }
845852
846853
847854
848855 @Callable(msg)
849856 func addLiquidity (minMintAmount,stakeFarming,lockType) = valueOrElse(isActive(), valueOrElse(isDepricated(), {
850857 let amp = _A()
851858 let xp = _xp()
852859 let D0 = if ((shareSupply == 0))
853860 then 0
854861 else getDMem(xp, amp)
855- let $t01912219376 = if (if ((lockType > 0))
862+ let $t01944519699 = if (if ((lockType > 0))
856863 then (msg.payments[(size(msg.payments) - 1)].assetId == unit)
857864 else false)
858865 then $Tuple2(removeByIndex(msg.payments, (size(msg.payments) - 1)), [msg.payments[(size(msg.payments) - 1)]])
859866 else $Tuple2(msg.payments, nil)
860- let payments = $t01912219376._1
861- let lockFee = $t01912219376._2
867+ let payments = $t01944519699._1
868+ let lockFee = $t01944519699._2
862869 let paymentsSize = size(payments)
863870 func validPayments (n) = if ((paymentsSize > nCoins))
864871 then throw(("payments size > " + toString(nCoins)))
865872 else if ((1 > paymentsSize))
866873 then throw("payments size < 1")
867874 else if (if ((shareSupply == 0))
868875 then (nCoins != paymentsSize)
869876 else false)
870877 then throw("initial deposit requires all coins")
871878 else {
872879 func paymantValid (acc,payment) = if (containsElement(assetIds, getStrAssetId(payment.assetId)))
873880 then true
874881 else throw("Invalid asset in payment")
875882
876883 let $l = payments
877884 let $s = size($l)
878885 let $acc0 = false
879886 func $f0_1 ($a,$i) = if (($i >= $s))
880887 then $a
881888 else paymantValid($a, $l[$i])
882889
883890 func $f0_2 ($a,$i) = if (($i >= $s))
884891 then $a
885892 else throw("List size exceeds 10")
886893
887894 $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)
888895 }
889896
890897 if (!(validPayments(paymentsSize)))
891898 then throw()
892899 else {
893900 let suspicious = checkSuspicious()
894901 if (suspicious._1)
895902 then (suspendSuspicious(suspicious._2) ++ returnPayments(msg.caller, payments))
896903 else {
897904 func parsePayments (acc,assetId) = {
898- let $t02024620272 = acc
899- let newBalances = $t02024620272._1
900- let i = $t02024620272._2
905+ let $t02056920595 = acc
906+ let newBalances = $t02056920595._1
907+ let i = $t02056920595._2
901908 func parsePayment (newBalance,payment) = if ((getStrAssetId(payment.assetId) == assetId))
902909 then (newBalance + payment.amount)
903910 else newBalance
904911
905912 let newBalace = {
906913 let $l = payments
907914 let $s = size($l)
908915 let $acc0 = xp[i]
909916 func $f0_1 ($a,$i) = if (($i >= $s))
910917 then $a
911918 else parsePayment($a, $l[$i])
912919
913920 func $f0_2 ($a,$i) = if (($i >= $s))
914921 then $a
915922 else throw("List size exceeds 10")
916923
917924 $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)
918925 }
919926 $Tuple2((newBalances :+ newBalace), (i + 1))
920927 }
921928
922- let $t02062220689 = {
929+ let $t02094521012 = {
923930 let $l = assetIds
924931 let $s = size($l)
925932 let $acc0 = $Tuple2(nil, 0)
926933 func $f0_1 ($a,$i) = if (($i >= $s))
927934 then $a
928935 else parsePayments($a, $l[$i])
929936
930937 func $f0_2 ($a,$i) = if (($i >= $s))
931938 then $a
932939 else throw("List size exceeds 10")
933940
934941 $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)
935942 }
936- let newBalances = $t02062220689._1
937- let k = $t02062220689._2
943+ let newBalances = $t02094521012._1
944+ let k = $t02094521012._2
938945 if (checkDAppThreshold(newBalances))
939946 then throw()
940947 else {
941948 let D1 = getDMem(newBalances, amp)
942949 if (assert((D1 > D0)))
943950 then throw("D1 > D0")
944951 else {
945952 let feeDiscount = calculateFeeDiscount(msg.caller)
946953 func calcScriptActions (acc,newBalance) = {
947- let $t02100921050 = acc
948- let invBalances = $t02100921050._1
949- let scriptActions = $t02100921050._2
950- let i = $t02100921050._3
954+ let $t02133221373 = acc
955+ let invBalances = $t02133221373._1
956+ let scriptActions = $t02133221373._2
957+ let i = $t02133221373._3
951958 if ((shareSupply > 0))
952959 then {
953960 let _fee = ((fraction(fee, feeDiscount, feeScale6, CEILING) * nCoins) / (4 * (nCoins - 1)))
954961 let fees = {
955962 let idealBalance = fraction(D1, xp[i], D0)
956963 let difference = if ((idealBalance > newBalance))
957964 then (idealBalance - newBalance)
958965 else (newBalance - idealBalance)
959966 fraction(_fee, difference, feeScale6)
960967 }
961968 let governanceFees = fraction(fees, feeGovernance, feeScale6)
969+ let teamFees = fraction(fees, feeTeam, feeScale6)
962970 let finalBalance = (newBalance - fees)
963971 let invariantBalance = (newBalance - fees)
964972 let pmt = (newBalance - xp[i])
965- let lpFees = (fees - governanceFees)
973+ let lpFees = ((fees - governanceFees) - teamFees)
966974 let inv = if ((pmt > 0))
967975 then stake((pmt - fees), assetIds[i])
968976 else unstake(fees, assetIds[i])
969977 if ((inv == inv))
970978 then {
971979 let airdrop = if ((lpFees > 0))
972980 then invoke(lpFarmingAddress, "airDrop", nil, [AttachedPayment(fromBase58String(assetIds[i]), lpFees)])
973981 else 0
974982 if ((airdrop == airdrop))
975- then $Tuple3((invBalances :+ invariantBalance), (scriptActions ++ [ScriptTransfer(moneyBoxAddress, governanceFees, fromBase58String(assetIds[i])), IntegerEntry((assetIds[i] + kAssetBalance), finalBalance)]), (i + 1))
983+ then $Tuple3((invBalances :+ invariantBalance), (scriptActions ++ [ScriptTransfer(moneyBoxAddress, governanceFees, fromBase58String(assetIds[i])), ScriptTransfer(teamBoxAddress, teamFees, fromBase58String(assetIds[i])), IntegerEntry((assetIds[i] + kAssetBalance), finalBalance)]), (i + 1))
976984 else throw("Strict value is not equal to itself.")
977985 }
978986 else throw("Strict value is not equal to itself.")
979987 }
980988 else {
981989 let inv = stake(newBalance, assetIds[i])
982990 if ((inv == inv))
983991 then $Tuple3((invBalances :+ newBalance), (scriptActions :+ IntegerEntry((assetIds[i] + kAssetBalance), newBalance)), (i + 1))
984992 else throw("Strict value is not equal to itself.")
985993 }
986994 }
987995
988- let $t02275522843 = {
996+ let $t02324523333 = {
989997 let $l = newBalances
990998 let $s = size($l)
991999 let $acc0 = $Tuple3(nil, nil, 0)
9921000 func $f1_1 ($a,$i) = if (($i >= $s))
9931001 then $a
9941002 else calcScriptActions($a, $l[$i])
9951003
9961004 func $f1_2 ($a,$i) = if (($i >= $s))
9971005 then $a
9981006 else throw("List size exceeds 10")
9991007
10001008 $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)
10011009 }
1002- let invBalances = $t02275522843._1
1003- let scriptActions = $t02275522843._2
1010+ let invBalances = $t02324523333._1
1011+ let scriptActions = $t02324523333._2
10041012 let D2 = getDMem(invBalances, amp)
10051013 let mint_amount = if ((shareSupply == 0))
10061014 then D1
10071015 else fraction(shareSupply, (D2 - D0), D0)
10081016 if (assert((mint_amount >= minMintAmount)))
10091017 then throw("Slippage screwed you")
10101018 else if (stakeFarming)
10111019 then {
10121020 let re = invoke(this, "reissueShare", [mint_amount], nil)
10131021 if ((re == re))
10141022 then {
10151023 let s = invoke(farmingAddress, "lockShareTokensFromPool", [msg.caller.bytes, toString(this), lockType], ([AttachedPayment(shareAssetId, mint_amount)] ++ lockFee))
10161024 if ((s == s))
10171025 then (scriptActions :+ IntegerEntry(kShareAssetSupply, (shareSupply + mint_amount)))
10181026 else throw("Strict value is not equal to itself.")
10191027 }
10201028 else throw("Strict value is not equal to itself.")
10211029 }
10221030 else (scriptActions ++ [Reissue(shareAssetId, mint_amount, true), ScriptTransfer(msg.caller, mint_amount, shareAssetId), IntegerEntry(kShareAssetSupply, (shareSupply + mint_amount))])
10231031 }
10241032 }
10251033 }
10261034 }
10271035 }))
10281036
10291037
10301038
10311039 @Callable(msg)
10321040 func calcMintAmount (newBalances,user) = {
10331041 let amp = _A()
10341042 let xp = _xp()
10351043 let D1 = getDMem(newBalances, amp)
10361044 if ((shareSupply == 0))
10371045 then $Tuple2(nil, D1)
10381046 else {
10391047 let D0 = getDMem(xp, amp)
10401048 let feeDiscount = calculateFeeDiscount(user)
10411049 func calcInvBalances (acc,newBalance) = {
1042- let $t02412124147 = acc
1043- let invBalances = $t02412124147._1
1044- let i = $t02412124147._2
1050+ let $t02461124637 = acc
1051+ let invBalances = $t02461124637._1
1052+ let i = $t02461124637._2
10451053 let _fee = ((fraction(fee, feeDiscount, feeScale6, CEILING) * nCoins) / (4 * (nCoins - 1)))
10461054 let fees = {
10471055 let idealBalance = fraction(D1, xp[i], D0)
10481056 let difference = if ((idealBalance > newBalance))
10491057 then (idealBalance - newBalance)
10501058 else (newBalance - idealBalance)
10511059 fraction(_fee, difference, feeScale6)
10521060 }
10531061 let invariantBalance = (newBalance - fees)
10541062 $Tuple2((invBalances :+ invariantBalance), (i + 1))
10551063 }
10561064
1057- let $t02474924819 = {
1065+ let $t02523925309 = {
10581066 let $l = newBalances
10591067 let $s = size($l)
10601068 let $acc0 = $Tuple2(nil, 0)
10611069 func $f0_1 ($a,$i) = if (($i >= $s))
10621070 then $a
10631071 else calcInvBalances($a, $l[$i])
10641072
10651073 func $f0_2 ($a,$i) = if (($i >= $s))
10661074 then $a
10671075 else throw("List size exceeds 10")
10681076
10691077 $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)
10701078 }
1071- let invBalances = $t02474924819._1
1072- let k = $t02474924819._2
1079+ let invBalances = $t02523925309._1
1080+ let k = $t02523925309._2
10731081 let D2 = getDMem(invBalances, amp)
10741082 let mintAmount = fraction(shareSupply, (D2 - D0), D0)
10751083 $Tuple2(nil, mintAmount)
10761084 }
10771085 }
10781086
10791087
10801088
10811089 @Callable(msg)
10821090 func reissueShare (amount) = valueOrElse(isSelfCall(msg), [Reissue(shareAssetId, amount, true)])
10831091
10841092
10851093
10861094 @Callable(msg)
10871095 func getDy (assetFrom,assetTo,dx,userAddress) = {
10881096 let xp = _xp()
10891097 let fromIndex = valueOrErrorMessage(indexOf(assetIds, assetFrom), "unknown token in")
10901098 let toIndex = valueOrErrorMessage(indexOf(assetIds, assetTo), "unknown token out")
10911099 let x = (xp[fromIndex] + dx)
10921100 let y = getY(fromIndex, toIndex, x, xp)
10931101 let dy = ((xp[toIndex] - y) - 1)
10941102 let feeDiscount = calculateFeeDiscount(Address(fromBase58String(userAddress)))
10951103 let _fee = fraction(fraction(fee, feeDiscount, feeScale6, CEILING), dy, feeScale6)
10961104 $Tuple2(nil, $Tuple2((dy - _fee), _fee))
10971105 }
10981106
10991107
11001108
11011109 @Callable(msg)
11021110 func exchange (tokenOut,min_dy) = valueOrElse(isDepricated(), valueOrElse(isActive(), if ((size(msg.payments) != 1))
11031111 then throw("size(payments) != 1")
11041112 else {
11051113 let suspicious = checkSuspicious()
11061114 if (suspicious._1)
11071115 then (suspendSuspicious(suspicious._2) ++ returnPayments(msg.caller, msg.payments))
11081116 else {
11091117 let payment = msg.payments[0]
11101118 let tokenIn = getStrAssetId(payment.assetId)
11111119 let tokenOutB58 = fromBase58String(tokenOut)
11121120 let dx = payment.amount
11131121 let fromIndex = valueOrErrorMessage(indexOf(assetIds, tokenIn), "unknown token in")
11141122 let toIndex = valueOrErrorMessage(indexOf(assetIds, tokenOut), "unknown token out")
11151123 let xp = _xp()
11161124 let x = (xp[fromIndex] + dx)
11171125 let y = getY(fromIndex, toIndex, x, xp)
11181126 let _dy = ((xp[toIndex] - y) - 1)
11191127 let feeDiscount = calculateFeeDiscount(msg.originCaller)
11201128 let _fee = fraction(_dy, fraction(fee, feeDiscount, feeScale6, CEILING), feeScale6)
11211129 let dy = (_dy - _fee)
11221130 let governanceFees = fraction(_fee, feeGovernance, feeScale6)
1131+ let teamFees = fraction(_fee, feeTeam, feeScale6)
11231132 if (assert((dy >= min_dy)))
11241133 then throw("Exchange resulted in fewer coins than expected")
11251134 else {
11261135 func makeNewBalances (acc,tokenBalance) = {
1127- let $t02698927015 = acc
1128- let newBalances = $t02698927015._1
1129- let i = $t02698927015._2
1136+ let $t02753727563 = acc
1137+ let newBalances = $t02753727563._1
1138+ let i = $t02753727563._2
11301139 if ((i == fromIndex))
11311140 then $Tuple2((newBalances :+ (tokenBalance + dx)), (i + 1))
11321141 else if ((i == toIndex))
11331142 then $Tuple2((newBalances :+ (tokenBalance - _dy)), (i + 1))
11341143 else $Tuple2((newBalances :+ tokenBalance), (i + 1))
11351144 }
11361145
1137- let $t02729827359 = {
1146+ let $t02784627907 = {
11381147 let $l = xp
11391148 let $s = size($l)
11401149 let $acc0 = $Tuple2(nil, 0)
11411150 func $f0_1 ($a,$i) = if (($i >= $s))
11421151 then $a
11431152 else makeNewBalances($a, $l[$i])
11441153
11451154 func $f0_2 ($a,$i) = if (($i >= $s))
11461155 then $a
11471156 else throw("List size exceeds 10")
11481157
11491158 $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)
11501159 }
1151- let newBalances = $t02729827359._1
1152- let i = $t02729827359._2
1160+ let newBalances = $t02784627907._1
1161+ let i = $t02784627907._2
11531162 if (checkDAppThreshold(newBalances))
11541163 then throw()
11551164 else {
11561165 let s = stake(payment.amount, getStrAssetId(payment.assetId))
11571166 if ((s == s))
11581167 then {
11591168 let us = unstake(_dy, tokenOut)
11601169 if ((us == us))
11611170 then {
1162- let lpFees = (_fee - governanceFees)
1171+ let lpFees = ((_fee - governanceFees) - teamFees)
11631172 let airdrop = if ((lpFees > 0))
11641173 then invoke(lpFarmingAddress, "airDrop", nil, [AttachedPayment(tokenOutB58, lpFees)])
11651174 else 0
11661175 if ((airdrop == airdrop))
1167- then $Tuple2([IntegerEntry((tokenIn + kAssetBalance), x), IntegerEntry((tokenOut + kAssetBalance), (xp[toIndex] - _dy)), ScriptTransfer(msg.caller, dy, tokenOutB58), ScriptTransfer(moneyBoxAddress, governanceFees, tokenOutB58)], [dy, tokenOutB58])
1176+ then $Tuple2([IntegerEntry((tokenIn + kAssetBalance), x), IntegerEntry((tokenOut + kAssetBalance), (xp[toIndex] - _dy)), ScriptTransfer(msg.caller, dy, tokenOutB58), ScriptTransfer(moneyBoxAddress, governanceFees, tokenOutB58), ScriptTransfer(teamBoxAddress, teamFees, tokenOutB58)], [dy, tokenOutB58])
11681177 else throw("Strict value is not equal to itself.")
11691178 }
11701179 else throw("Strict value is not equal to itself.")
11711180 }
11721181 else throw("Strict value is not equal to itself.")
11731182 }
11741183 }
11751184 }
11761185 }))
11771186
11781187
11791188
11801189 @Callable(msg)
11811190 func withdraw (minAmounts) = valueOrElse(isActive(), calcWithdraw(msg, minAmounts, 0))
11821191
11831192
11841193
11851194 @Callable(msg)
11861195 func withdrawWithUnlock (minAmounts,unlockAmount) = valueOrElse(isActive(), if ((0 >= unlockAmount))
11871196 then throw("Unlock amount must be positive")
11881197 else {
11891198 let unlock = invoke(farmingAddress, "withdrawShareTokensFromPool", [msg.caller.bytes, toString(this), unlockAmount], nil)
11901199 if ((unlock == unlock))
11911200 then calcWithdraw(msg, minAmounts, unlockAmount)
11921201 else throw("Strict value is not equal to itself.")
11931202 })
11941203
11951204
11961205
11971206 @Callable(msg)
11981207 func calcWithdrawOneCoin (tokenAmount,tokenOut,user) = if ((0 >= tokenAmount))
11991208 then throw("Amount must be positive")
12001209 else {
12011210 let i = valueOrErrorMessage(indexOf(assetIds, tokenOut), "unknown token out")
12021211 $Tuple2(nil, _calcWithdrawOneCoin(_xp(), tokenAmount, i, Address(fromBase58String(user)))._1)
12031212 }
12041213
12051214
12061215
12071216 @Callable(msg)
12081217 func withdrawOneCoin (tokenOut,minAmount) = valueOrElse(isDepricated(), valueOrElse(isActive(), if ((size(msg.payments) != 1))
12091218 then throw("size(payments) != 1")
12101219 else calcWithdrawOneCoinEntries(msg, tokenOut, minAmount, 0)))
12111220
12121221
12131222
12141223 @Callable(msg)
12151224 func withdrawOneCoinWithUnlock (tokenOut,minAmount,unlockAmount) = valueOrElse(isDepricated(), valueOrElse(isActive(), if ((0 > unlockAmount))
12161225 then throw("Unlock amount must be positive")
12171226 else {
12181227 let unlock = invoke(farmingAddress, "withdrawShareTokensFromPool", [msg.caller.bytes, toString(this), unlockAmount], nil)
12191228 if ((unlock == unlock))
12201229 then calcWithdrawOneCoinEntries(msg, tokenOut, minAmount, unlockAmount)
12211230 else throw("Strict value is not equal to itself.")
12221231 }))
12231232
12241233
12251234
12261235 @Callable(msg)
12271236 func A () = $Tuple2(nil, _A())
12281237
12291238
12301239
12311240 @Callable(msg)
12321241 func getVirtualPrice () = {
12331242 let D = get_D(_xp(), _A())
12341243 $Tuple2(nil, fraction(D, PRECISION, shareSupply))
12351244 }
12361245
12371246
12381247
12391248 @Callable(msg)
12401249 func calcTokenAmount (amounts,deposit) = {
12411250 let amp = _A()
12421251 let balances = _xp()
12431252 let D0 = getDMem(balances, amp)
12441253 func calcNewBalances (acc,balance) = {
1245- let $t03014930175 = acc
1246- let newBalances = $t03014930175._1
1247- let i = $t03014930175._2
1254+ let $t03077930805 = acc
1255+ let newBalances = $t03077930805._1
1256+ let i = $t03077930805._2
12481257 let newBalance = (balance + (if (deposit)
12491258 then amounts[i]
12501259 else -(amounts[i])))
12511260 $Tuple2((newBalances :+ newBalance), (i + 1))
12521261 }
12531262
12541263 let newBalances = ( let $l = balances
12551264 let $s = size($l)
12561265 let $acc0 = $Tuple2(nil, 0)
12571266 func $f0_1 ($a,$i) = if (($i >= $s))
12581267 then $a
12591268 else calcNewBalances($a, $l[$i])
12601269
12611270 func $f0_2 ($a,$i) = if (($i >= $s))
12621271 then $a
12631272 else throw("List size exceeds 10")
12641273
12651274 $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
12661275 let D1 = getDMem(newBalances, amp)
12671276 let diff = if (deposit)
12681277 then (D1 - D0)
12691278 else (D0 - D1)
12701279 $Tuple2(nil, fraction(diff, shareSupply, D0))
12711280 }
12721281
12731282
12741283
12751284 @Callable(msg)
12761285 func rampA (_futureA,_futureTime) = valueOrElse(isActive(), valueOrElse(isAdminCall(msg), if (assert((blockTimestamp >= (initial_A_time + MIN_RAMP_TIME))))
12771286 then throw("too often")
12781287 else if (assert((_futureTime >= (blockTimestamp + MIN_RAMP_TIME))))
12791288 then throw("insufficient time")
12801289 else {
12811290 let _initial_A = _A()
12821291 if (assert(if ((_futureA > 0))
12831292 then (MAX_A > _futureA)
12841293 else false))
12851294 then throw("out of base range")
12861295 else if (assert(if (if ((_futureA >= _initial_A))
12871296 then ((_initial_A * MAX_A_CHANGE) >= _futureA)
12881297 else false)
12891298 then true
12901299 else if ((_initial_A > _futureA))
12911300 then ((_futureA * MAX_A_CHANGE) >= _initial_A)
12921301 else false))
12931302 then throw("out of range")
12941303 else [IntegerEntry("initial_A", _initial_A), IntegerEntry("future_A", _futureA), IntegerEntry("initial_A_time", blockTimestamp), IntegerEntry("future_A_time", _futureTime)]
12951304 }))
12961305
12971306
12981307
12991308 @Callable(msg)
13001309 func stopRampA () = valueOrElse(isActive(), valueOrElse(isAdminCall(msg), {
13011310 let currentA = _A()
13021311 [IntegerEntry("initial_A", currentA), IntegerEntry("future_A", currentA), IntegerEntry("initial_A_time", blockTimestamp), IntegerEntry("future_A_time", blockTimestamp)]
13031312 }))
13041313
13051314
13061315
13071316 @Callable(msg)
13081317 func shutdown () = valueOrElse(isAdminCall(msg), if (!(active))
13091318 then throw(("DApp is already suspended. Cause: " + valueOrElse(getString(this, kCause), "the cause wasn't specified")))
13101319 else suspend("Paused by admin"))
13111320
13121321
13131322
13141323 @Callable(msg)
13151324 func activate () = valueOrElse(isAdminCall(msg), if (active)
13161325 then throwIsActive()
13171326 else [BooleanEntry(kActive, true), DeleteEntry(kCause)])
13181327
13191328
13201329
13211330 @Callable(msg)
13221331 func takeIntoAccountExtraFunds () = valueOrElse(isActive(), {
13231332 let claim = if (containsElement(assetIds, toBase58String(USDN)))
13241333 then invoke(stakingUSDNAddress, "claimRewards", nil, nil)
13251334 else 0
13261335 if ((claim == claim))
13271336 then if ((msg.caller != moneyBoxAddress))
13281337 then throw("Only the wallet can call this function")
13291338 else {
13301339 let balances = _xp()
13311340 func takeExtraFunds (acc,assetId) = {
1332- let $t03276032778 = acc
1333- let sum = $t03276032778._1
1334- let i = $t03276032778._2
1341+ let $t03339033408 = acc
1342+ let sum = $t03339033408._1
1343+ let i = $t03339033408._2
13351344 let tokenB58 = fromBase58String(assetId)
13361345 let rBalance = (assetBalance(this, tokenB58) + stakedAmount(tokenB58))
13371346 let enrollAmount = (rBalance - balances[i])
13381347 if ((0 > enrollAmount))
13391348 then suspend(("Enroll amount negative for asset" + assetId))
13401349 else {
13411350 let airdrop = if ((enrollAmount > 0))
13421351 then invoke(lpFarmingAddress, "airDrop", nil, [AttachedPayment(tokenB58, enrollAmount)])
13431352 else 0
13441353 if ((airdrop == airdrop))
13451354 then $Tuple2((sum + enrollAmount), (i + 1))
13461355 else throw("Strict value is not equal to itself.")
13471356 }
13481357 }
13491358
13501359 let k = {
13511360 let $l = assetIds
13521361 let $s = size($l)
13531362 let $acc0 = $Tuple2(0, 0)
13541363 func $f0_1 ($a,$i) = if (($i >= $s))
13551364 then $a
13561365 else takeExtraFunds($a, $l[$i])
13571366
13581367 func $f0_2 ($a,$i) = if (($i >= $s))
13591368 then $a
13601369 else throw("List size exceeds 10")
13611370
13621371 $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)
13631372 }
13641373 if ((k._1 == 0))
13651374 then throw("No money to take")
13661375 else nil
13671376 }
13681377 else throw("Strict value is not equal to itself.")
13691378 })
13701379
13711380
13721381 @Verifier(tx)
13731382 func verify () = {
13741383 let multiSignedByAdmins = {
13751384 let adminPubKey1Signed = if (sigVerify(tx.bodyBytes, tx.proofs[0], adminPubKey1))
13761385 then 1
13771386 else 0
13781387 let adminPubKey2Signed = if (sigVerify(tx.bodyBytes, tx.proofs[1], adminPubKey2))
13791388 then 1
13801389 else 0
13811390 let adminPubKey3Signed = if (sigVerify(tx.bodyBytes, tx.proofs[2], adminPubKey3))
13821391 then 1
13831392 else 0
13841393 (((adminPubKey1Signed + adminPubKey2Signed) + adminPubKey3Signed) >= 2)
13851394 }
13861395 match tx {
13871396 case inv: InvokeScriptTransaction =>
13881397 let callTakeIntoAccount = if ((inv.dApp == this))
13891398 then (inv.function == "takeIntoAccountExtraFunds")
13901399 else false
13911400 let signedByAdmin = if (if (if (sigVerify(tx.bodyBytes, tx.proofs[0], adminPubKey1))
13921401 then true
13931402 else sigVerify(tx.bodyBytes, tx.proofs[0], adminPubKey2))
13941403 then true
13951404 else sigVerify(tx.bodyBytes, tx.proofs[0], adminPubKey3))
13961405 then true
13971406 else sigVerify(tx.bodyBytes, tx.proofs[0], adminPubKeyInvoke)
13981407 if (if (callTakeIntoAccount)
13991408 then signedByAdmin
14001409 else false)
14011410 then true
14021411 else multiSignedByAdmins
14031412 case _ =>
14041413 multiSignedByAdmins
14051414 }
14061415 }
14071416

github/deemru/w8io/026f985 
262.58 ms