tx · EKSesAnP68WHkuQ7YVvgEicae27p2jtHiVbgJ3s3rZkg

3MpygN8qm376tUAHB6mhC5BxG5NKYortiyX:  -0.14000000 Waves

2022.12.13 12:25 [2358366] smart account 3MpygN8qm376tUAHB6mhC5BxG5NKYortiyX > SELF 0.00000000 Waves

{ "type": 13, "id": "EKSesAnP68WHkuQ7YVvgEicae27p2jtHiVbgJ3s3rZkg", "fee": 14000000, "feeAssetId": null, "timestamp": 1670923532203, "version": 2, "chainId": 84, "sender": "3MpygN8qm376tUAHB6mhC5BxG5NKYortiyX", "senderPublicKey": "BjnLnkAMaJLYAK36vQqSepUNjGeMDHfZGfmdYwGcLbmg", "proofs": [ "2aZSTB5GeXBzBFJex6dD3bAz3pKHY9pviiCoAJBMVF6pHxavp7XNug23UaCP4rLfvhV77p3V7ZqkzoThps2CkNss", "q5ftxmMeZjGyeLBNr6ruSF1ys6TGZj1i6KFfmXYC4ub62e7T5eeGjKpAYBujkqrYgVVSunguGcyMwsMSDYksF3u" ], "script": "base64:BgJJCAISAwoBBBIECgIEARIGCgQBAQQBEgMKAQESBgoEAQgBARIECgIBARIDCgEBEgASABIAEgMKAQESBQoDBAEIEgASBAoCAQESAGoAB3ZlcnNpb24CBTIuMC4wAAhrVmVyc2lvbgIHdmVyc2lvbgAHa0FjdGl2ZQIGYWN0aXZlAAtrQWN0aXZlR2xvYgIUYWN0aXZlX2FsbF9jb250cmFjdHMACWtBc3NldElkQQIKQV9hc3NldF9pZAAJa0Fzc2V0SWRCAgpCX2Fzc2V0X2lkAAlrQmFsYW5jZUECD0FfYXNzZXRfYmFsYW5jZQAJa0JhbGFuY2VCAg9CX2Fzc2V0X2JhbGFuY2UADWtTaGFyZUFzc2V0SWQCDnNoYXJlX2Fzc2V0X2lkABFrU2hhcmVBc3NldFN1cHBseQISc2hhcmVfYXNzZXRfc3VwcGx5AARrRmVlAgpjb21taXNzaW9uAAprSW52YXJpYW50AglpbnZhcmlhbnQABmtDYXVzZQIOc2h1dGRvd25f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QWRtaW5zBRNtdWx0aVNpZ25lZEJ5QWRtaW5zgc0IzQ==", "height": 2358366, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: AxEfEyEs8YwBVVDzHc6ehgNVkhK9mTwTX7Zx7cLsYXDg Next: 9NADwe7v2BerZDrNXTSVe7Fry5p5QAm4eFJLgmrV3XCt Diff:
OldNewDifferences
5050 let kPeriodLength = "period_length"
5151
5252 let kStartHeight = "start_height"
53+
54+let kDAppThreshold = "dApp_threshold"
5355
5456 let kAdminPubKey1 = "admin_pub_1"
5557
169171
170172 let digits8 = 8
171173
172-let dAppThreshold = 50
174+let exchangeRatioLimitMin = 80000000
173175
174-let dAppThresholdScale2 = 100
175-
176-let exchangeRatioLimitMin = 90000000
177-
178-let exchangeRatioLimitMax = 110000000
176+let exchangeRatioLimitMax = 120000000
179177
180178 let alpha = 50
181179
353351 func throwOnePayment () = throw("One attached payment expected")
354352
355353
356-func throwThreshold (threshold,amountA,amountB) = throw(((((((((("New balance in assets of the DApp is less than threshold " + toString(threshold)) + ": ") + toString(amountA)) + " ") + assetNameA) + ", ") + toString(amountB)) + " ") + assetNameB))
357-
358-
359354 func suspendSuspicious () = suspend(((((((((((((((("Suspicious state. Actual balances: " + toString(balanceA)) + " ") + assetNameA) + ", ") + toString(balanceB)) + " ") + assetNameB) + ". State: ") + toString(accountBalance(assetIdA))) + " ") + assetNameA) + ", ") + toString(accountBalance(assetIdB))) + " ") + assetNameB))
360355
361356
366361
367362 func calcStakingParams (stake,amount,assetId) = if (stake)
368363 then {
369- let $t01050410570 = calcStakingFuncAndAddres(stake, assetId)
370- let call = $t01050410570._1
371- let stakingAddr = $t01050410570._2
364+ let $t01020710273 = calcStakingFuncAndAddres(stake, assetId)
365+ let call = $t01020710273._1
366+ let stakingAddr = $t01020710273._2
372367 $Tuple4(call, stakingAddr, nil, [AttachedPayment(assetId, amount)])
373368 }
374369 else {
375- let $t01065610722 = calcStakingFuncAndAddres(stake, assetId)
376- let call = $t01065610722._1
377- let stakingAddr = $t01065610722._2
370+ let $t01035910425 = calcStakingFuncAndAddres(stake, assetId)
371+ let call = $t01035910425._1
372+ let stakingAddr = $t01035910425._2
378373 $Tuple4(call, stakingAddr, [amount, toBase58String(assetId)], nil)
379374 }
380375
406401 }
407402
408403
404+func checkDAppThreshold (newBalanceA,newBalanceB,pmtAssetId) = {
405+ let dAppThreshold = getIntegerValue(this, kDAppThreshold)
406+ let ratio = if (if ((pmtAssetId == assetIdA))
407+ then (newBalanceA > newBalanceB)
408+ else false)
409+ then fraction(newBalanceA, 1, newBalanceB, CEILING)
410+ else if (if ((pmtAssetId == assetIdB))
411+ then (newBalanceB > newBalanceA)
412+ else false)
413+ then fraction(newBalanceB, 1, newBalanceA, CEILING)
414+ else 0
415+ if ((ratio > dAppThreshold))
416+ then {
417+ let $t01217012278 = if ((pmtAssetId == assetIdA))
418+ then $Tuple2(assetNameB, assetNameA)
419+ else $Tuple2(assetNameA, assetNameB)
420+ let token1 = $t01217012278._1
421+ let token2 = $t01217012278._2
422+ throw((((("Buying " + token1) + " is temporarily unavailable due to the ") + token2) + " depeg"))
423+ }
424+ else true
425+ }
426+
427+
409428 func replenishWithTwoTokensCalc (i,stakeFarming,lockType) = {
410429 let pmtAssetIdA = i.payments[0].assetId
411430 let pmtAssetIdB = i.payments[1].assetId
412431 let ratioShareTokensInA = fraction(scale8, i.payments[0].amount, balanceA)
413432 let ratioShareTokensInB = fraction(scale8, i.payments[1].amount, balanceB)
414- let $t01231312390 = getAssetInfo(pmtAssetIdA)
415- let pmtStrAssetIdA = $t01231312390._1
416- let pmtAssetNameA = $t01231312390._2
417- let pmtDecimalsA = $t01231312390._3
418- let $t01239512512 = getAssetInfo(pmtAssetIdB)
419- let pmtStrAssetIdB = $t01239512512._1
420- let pmtAssetNameB = $t01239512512._2
421- let pmtDecimalsB = $t01239512512._3
422- let $t01251713021 = if ((ratioShareTokensInB > ratioShareTokensInA))
433+ let $t01273812815 = getAssetInfo(pmtAssetIdA)
434+ let pmtStrAssetIdA = $t01273812815._1
435+ let pmtAssetNameA = $t01273812815._2
436+ let pmtDecimalsA = $t01273812815._3
437+ let $t01282012937 = getAssetInfo(pmtAssetIdB)
438+ let pmtStrAssetIdB = $t01282012937._1
439+ let pmtAssetNameB = $t01282012937._2
440+ let pmtDecimalsB = $t01282012937._3
441+ let $t01294213446 = if ((ratioShareTokensInB > ratioShareTokensInA))
423442 then {
424443 let pmt = fraction(balanceB, ratioShareTokensInA, scale8, CEILING)
425444 $Tuple5(i.payments[0].amount, pmt, (i.payments[1].amount - pmt), pmtAssetIdB, ratioShareTokensInA)
428447 let pmt = fraction(balanceA, ratioShareTokensInB, scale8, CEILING)
429448 $Tuple5(pmt, i.payments[1].amount, (i.payments[0].amount - pmt), pmtAssetIdA, ratioShareTokensInB)
430449 }
431- let pmtAmountA = $t01251713021._1
432- let pmtAmountB = $t01251713021._2
433- let change = $t01251713021._3
434- let changeAssetId = $t01251713021._4
435- let shareTokenRatio = $t01251713021._5
450+ let pmtAmountA = $t01294213446._1
451+ let pmtAmountB = $t01294213446._2
452+ let change = $t01294213446._3
453+ let changeAssetId = $t01294213446._4
454+ let shareTokenRatio = $t01294213446._5
436455 let shareTokenToPayAmount = fraction(shareTokenRatio, shareAssetSupply, scale8)
437456 if (if ((size(i.payments) != 2))
438457 then (size(i.payments) != 3)
487506
488507
489508 func replenishWithOneTokenCalc (i,virtualSwapTokenPay,virtualSwapTokenGet,stakeFarming,lockType) = {
490- let $t01541115486 = $Tuple2(i.payments[0].amount, i.payments[0].assetId)
491- let pmtAmount = $t01541115486._1
492- let pmtAssetId = $t01541115486._2
493- let $t01549115564 = getAssetInfo(pmtAssetId)
494- let pmtStrAssetId = $t01549115564._1
495- let pmtAssetName = $t01549115564._2
496- let pmtDecimals = $t01549115564._3
509+ let $t01583615911 = $Tuple2(i.payments[0].amount, i.payments[0].assetId)
510+ let pmtAmount = $t01583615911._1
511+ let pmtAssetId = $t01583615911._2
512+ let $t01591615989 = getAssetInfo(pmtAssetId)
513+ let pmtStrAssetId = $t01591615989._1
514+ let pmtAssetName = $t01591615989._2
515+ let pmtDecimals = $t01591615989._3
497516 let pmtMinThreshold = 5000000
498517 let thresholdValueForMinTolerance = 50000000
499518 let tolerance = if ((thresholdValueForMinTolerance > pmtAmount))
515534 else false)
516535 then throwAssets()
517536 else {
518- let $t01657117213 = if ((pmtAssetId == assetIdA))
537+ let $t01699117633 = if ((pmtAssetId == assetIdA))
519538 then $Tuple6((pmtAmount - virtualSwapTokenPay), virtualSwapTokenGet, (balanceA + virtualSwapTokenPay), (balanceB - virtualSwapTokenGet), (balanceA + pmtAmount), balanceB)
520539 else $Tuple6(virtualSwapTokenGet, (pmtAmount - virtualSwapTokenPay), (balanceA - virtualSwapTokenGet), (balanceB + virtualSwapTokenPay), balanceA, (balanceB + pmtAmount))
521- let virtualReplenishA = $t01657117213._1
522- let virtualReplenishB = $t01657117213._2
523- let balanceAfterSwapA = $t01657117213._3
524- let balanceAfterSwapB = $t01657117213._4
525- let newBalanceA = $t01657117213._5
526- let newBalanceB = $t01657117213._6
540+ let virtualReplenishA = $t01699117633._1
541+ let virtualReplenishB = $t01699117633._2
542+ let balanceAfterSwapA = $t01699117633._3
543+ let balanceAfterSwapB = $t01699117633._4
544+ let newBalanceA = $t01699117633._5
545+ let newBalanceB = $t01699117633._6
527546 let invariantNew = invariantCalc(balanceAfterSwapA, balanceAfterSwapB)
528547 let ratioVirtualBalanceToVirtualReplenish = (fraction(scale16, balanceAfterSwapA, balanceAfterSwapB) / fraction(scale8, virtualReplenishA, virtualReplenishB))
529- let dAppThresholdAmount = fraction((newBalanceA + newBalanceB), dAppThreshold, (2 * dAppThresholdScale2))
530548 if (if ((slippageValueMinForSwap >= fraction(scale8, invariant, invariantNew)))
531549 then true
532550 else (invariant > invariantNew))
535553 then true
536554 else (ratioVirtualBalanceToVirtualReplenish > slippageValueMaxForReplenish))
537555 then throw("Swap with virtualSwapTokenPay and virtualSwapTokenGet is possible, but ratio after virtual swap is incorrect")
538- else if (if ((dAppThresholdAmount > newBalanceA))
539- then true
540- else (dAppThresholdAmount > newBalanceB))
541- then throwThreshold(dAppThresholdAmount, newBalanceA, newBalanceB)
556+ else if (!(checkDAppThreshold(newBalanceA, newBalanceB, pmtAssetId)))
557+ then throw()
542558 else {
543559 let ratioShareTokensInA = fraction(virtualReplenishA, scale8, balanceAfterSwapA)
544560 let ratioShareTokensInB = fraction(virtualReplenishB, scale8, balanceAfterSwapB)
547563 let shareTokenGovernanceReward = fraction(shareTokenToPayAmount, (feeGovernance / 2), feeScale6)
548564 let governanceRewardTokenA = fraction(shareTokenGovernanceReward, balanceA, shareAssetSupply)
549565 let governanceRewardTokenB = fraction(shareTokenGovernanceReward, balanceB, shareAssetSupply)
550- let $t01920319498 = if ((pmtStrAssetId == strAssetIdA))
566+ let $t01938419667 = if ((pmtStrAssetId == strAssetIdA))
551567 then $Tuple3((pmtAmount - governanceRewardTokenA), governanceRewardTokenB, strAssetIdB)
552568 else $Tuple3((pmtAmount - governanceRewardTokenB), governanceRewardTokenA, strAssetIdA)
553- let stakeAmount = $t01920319498._1
554- let unstakeAmount = $t01920319498._2
555- let unstakeAsset = $t01920319498._3
569+ let stakeAmount = $t01938419667._1
570+ let unstakeAmount = $t01938419667._2
571+ let unstakeAsset = $t01938419667._3
556572 let stake1 = if (contains(stakingAssets, pmtStrAssetId))
557573 then invoke(this, "stakeUnstake", [true, stakeAmount, pmtStrAssetId], nil)
558574 else 0
592608
593609
594610 func withdrawCalc (i,unlockAmount) = {
595- let $t02148521820 = if ((size(i.payments) == 1))
611+ let $t02151621851 = if ((size(i.payments) == 1))
596612 then if ((i.payments[0].assetId != shareAssetId))
597613 then throw(("Incorrect asset attached. Expected: " + toBase58String(shareAssetId)))
598614 else $Tuple2(i.payments[0].amount, i.payments[0].assetId)
599615 else $Tuple2(0, shareAssetId)
600- let pmtAmount = $t02148521820._1
601- let pmtAssetId = $t02148521820._2
616+ let pmtAmount = $t02151621851._1
617+ let pmtAssetId = $t02151621851._2
602618 if (!(hasEnoughBalance))
603619 then ([ScriptTransfer(i.caller, pmtAmount, pmtAssetId)] ++ suspendSuspicious())
604620 else {
632648
633649 @Callable(i)
634650 func init (firstHarvest) = {
635- let $t02337223449 = $Tuple2(i.payments[0].amount, i.payments[0].assetId)
636- let pmtAmountA = $t02337223449._1
637- let pmtAssetIdA = $t02337223449._2
638- let $t02345423531 = $Tuple2(i.payments[1].amount, i.payments[1].assetId)
639- let pmtAmountB = $t02345423531._1
640- let pmtAssetIdB = $t02345423531._2
641- let $t02353623613 = getAssetInfo(pmtAssetIdA)
642- let pmtStrAssetIdA = $t02353623613._1
643- let pmtAssetNameA = $t02353623613._2
644- let pmtDecimalsA = $t02353623613._3
645- let $t02361823695 = getAssetInfo(pmtAssetIdB)
646- let pmtStrAssetIdB = $t02361823695._1
647- let pmtAssetNameB = $t02361823695._2
648- let pmtDecimalsB = $t02361823695._3
651+ let $t02340323480 = $Tuple2(i.payments[0].amount, i.payments[0].assetId)
652+ let pmtAmountA = $t02340323480._1
653+ let pmtAssetIdA = $t02340323480._2
654+ let $t02348523562 = $Tuple2(i.payments[1].amount, i.payments[1].assetId)
655+ let pmtAmountB = $t02348523562._1
656+ let pmtAssetIdB = $t02348523562._2
657+ let $t02356723644 = getAssetInfo(pmtAssetIdA)
658+ let pmtStrAssetIdA = $t02356723644._1
659+ let pmtAssetNameA = $t02356723644._2
660+ let pmtDecimalsA = $t02356723644._3
661+ let $t02364923726 = getAssetInfo(pmtAssetIdB)
662+ let pmtStrAssetIdB = $t02364923726._1
663+ let pmtAssetNameB = $t02364923726._2
664+ let pmtDecimalsB = $t02364923726._3
649665 if (isDefined(getBoolean(this, kActive)))
650666 then throwIsActive()
651667 else if ((pmtAssetIdA == pmtAssetIdB))
668684 else 0
669685 if ((stake2 == stake2))
670686 then {
671- let baseEntry = [StringEntry(kVersion, version), BooleanEntry(kActive, true), StringEntry(kAssetIdA, pmtStrAssetIdA), StringEntry(kAssetIdB, pmtStrAssetIdB), IntegerEntry(kBalanceA, pmtAmountA), IntegerEntry(kBalanceB, pmtAmountB), IntegerEntry(kInvariant, invariantCalculated), IntegerEntry(kFee, getIntegerValue(oracle, "base_fee_flat")), shareIssue, StringEntry(kShareAssetId, toBase58String(shareIssueId)), IntegerEntry(kShareAssetSupply, shareInitialSupply), ScriptTransfer(i.caller, shareInitialSupply, shareIssueId)]
687+ let baseEntry = [StringEntry(kVersion, version), BooleanEntry(kActive, true), StringEntry(kAssetIdA, pmtStrAssetIdA), StringEntry(kAssetIdB, pmtStrAssetIdB), IntegerEntry(kBalanceA, pmtAmountA), IntegerEntry(kBalanceB, pmtAmountB), IntegerEntry(kInvariant, invariantCalculated), IntegerEntry(kFee, getIntegerValue(oracle, "base_fee_flat")), IntegerEntry(kDAppThreshold, 3), shareIssue, StringEntry(kShareAssetId, toBase58String(shareIssueId)), IntegerEntry(kShareAssetSupply, shareInitialSupply), ScriptTransfer(i.caller, shareInitialSupply, shareIssueId)]
672688 if (firstHarvest)
673689 then (baseEntry ++ [BooleanEntry(kFirstHarvest, firstHarvest), IntegerEntry(kFirstHarvestHeight, (startHeight + (firstHarvestEndPeriod * periodLength)))])
674690 else baseEntry
698714
699715 @Callable(i)
700716 func withdrawOneToken (unlockAmount,withdrawAsset,estimatedAmountToReceive,minAmountToReceive) = valueOrElse(isActive(), {
701- let $t02706527400 = if ((size(i.payments) == 1))
717+ let $t02714127476 = if ((size(i.payments) == 1))
702718 then if ((i.payments[0].assetId != shareAssetId))
703719 then throw(("Incorrect asset attached. Expected: " + toBase58String(shareAssetId)))
704720 else $Tuple2(i.payments[0].amount, i.payments[0].assetId)
705721 else $Tuple2(0, shareAssetId)
706- let pmtAmount = $t02706527400._1
707- let pmtAssetId = $t02706527400._2
722+ let pmtAmount = $t02714127476._1
723+ let pmtAssetId = $t02714127476._2
708724 let withdrawAmount = (pmtAmount + unlockAmount)
709725 if (if ((withdrawAsset != strAssetIdA))
710726 then (withdrawAsset != strAssetIdB)
730746 else calculateSendAmount(estimatedAmountToReceive, minAmountToReceive, amountToPayA, assetIdA, newVirtBalcA, newVirtBalcB, invariantCalc(newVirtBalcA, newVirtBalcB))
731747 let govReward = fraction(amountExchangedWithFee, fraction(feeGovernance, feeDiscount, feeScale6, CEILING), feeScale6)
732748 let amountExchanged = fraction(amountExchangedWithFee, (feeScale6 - fraction(fee, feeDiscount, feeScale6, CEILING)), feeScale6)
733- let $t02900329332 = if ((withdrawAsset == strAssetIdA))
734- then $Tuple3((amountToPayA + amountExchanged), (((balanceA - amountToPayA) - amountExchanged) - govReward), balanceB)
735- else $Tuple3((amountToPayB + amountExchanged), balanceA, (((balanceB - amountToPayB) - amountExchanged) - govReward))
736- let amountToPay = $t02900329332._1
737- let balanceANew = $t02900329332._2
738- let balanceBNew = $t02900329332._3
739- let invariantCalculated = invariantCalc(balanceANew, balanceBNew)
740- let stake1 = if (contains(stakingAssets, withdrawAsset))
741- then invoke(this, "stakeUnstake", [false, (amountToPay + govReward), withdrawAsset], nil)
742- else 0
743- if ((stake1 == stake1))
744- then [IntegerEntry(kBalanceA, balanceANew), IntegerEntry(kBalanceB, balanceBNew), IntegerEntry(kShareAssetSupply, (shareAssetSupply - withdrawAmount)), IntegerEntry(kInvariant, invariantCalculated), Burn(shareAssetId, withdrawAmount), ScriptTransfer(i.caller, amountToPay, fromBase58String(withdrawAsset)), ScriptTransfer(moneyBoxAddress, govReward, fromBase58String(withdrawAsset))]
745- else throw("Strict value is not equal to itself.")
749+ let $t02907929441 = if ((withdrawAsset == strAssetIdA))
750+ then $Tuple4((amountToPayA + amountExchanged), (((balanceA - amountToPayA) - amountExchanged) - govReward), balanceB, assetIdB)
751+ else $Tuple4((amountToPayB + amountExchanged), balanceA, (((balanceB - amountToPayB) - amountExchanged) - govReward), assetIdA)
752+ let amountToPay = $t02907929441._1
753+ let balanceANew = $t02907929441._2
754+ let balanceBNew = $t02907929441._3
755+ let virtAssetId = $t02907929441._4
756+ if (!(checkDAppThreshold(balanceANew, balanceBNew, virtAssetId)))
757+ then throw()
758+ else {
759+ let invariantCalculated = invariantCalc(balanceANew, balanceBNew)
760+ let stake1 = if (contains(stakingAssets, withdrawAsset))
761+ then invoke(this, "stakeUnstake", [false, (amountToPay + govReward), withdrawAsset], nil)
762+ else 0
763+ if ((stake1 == stake1))
764+ then [IntegerEntry(kBalanceA, balanceANew), IntegerEntry(kBalanceB, balanceBNew), IntegerEntry(kShareAssetSupply, (shareAssetSupply - withdrawAmount)), IntegerEntry(kInvariant, invariantCalculated), Burn(shareAssetId, withdrawAmount), ScriptTransfer(i.caller, amountToPay, fromBase58String(withdrawAsset)), ScriptTransfer(moneyBoxAddress, govReward, fromBase58String(withdrawAsset))]
765+ else throw("Strict value is not equal to itself.")
766+ }
746767 }
747768 else throw("Strict value is not equal to itself.")
748769 }
752773
753774 @Callable(i)
754775 func exchange (estimatedAmountToReceive,minAmountToReceive) = valueOrElse(isActive(), {
755- let $t03020530280 = $Tuple2(i.payments[0].amount, i.payments[0].assetId)
756- let pmtAmount = $t03020530280._1
757- let pmtAssetId = $t03020530280._2
776+ let $t03040430479 = $Tuple2(i.payments[0].amount, i.payments[0].assetId)
777+ let pmtAmount = $t03040430479._1
778+ let pmtAssetId = $t03040430479._2
758779 if ((0 >= estimatedAmountToReceive))
759780 then throw(("Estimated amount must be positive. Actual: " + toString(estimatedAmountToReceive)))
760781 else if ((minAmountToReceive > estimatedAmountToReceive))
781802 let feeDiscount = calculateFeeDiscount(i.originCaller)
782803 let governanceReward = fraction(amount, fraction(feeGovernance, feeDiscount, feeScale6, CEILING), feeScale6)
783804 let amountMinusFee = fraction(amount, (feeScale6 - fraction(fee, feeDiscount, feeScale6, CEILING)), feeScale6)
784- let $t03176432026 = if ((pmtAssetId == assetIdA))
805+ let $t03196332225 = if ((pmtAssetId == assetIdA))
785806 then $Tuple2((balanceA + pmtAmount), ((balanceB - amountMinusFee) - governanceReward))
786807 else $Tuple2(((balanceA - amountMinusFee) - governanceReward), (balanceB + pmtAmount))
787- let newBalanceA = $t03176432026._1
788- let newBalanceB = $t03176432026._2
789- let dAppThresholdAmount = fraction((newBalanceA + newBalanceB), dAppThreshold, (2 * dAppThresholdScale2))
790- if (if ((dAppThresholdAmount > newBalanceA))
791- then true
792- else (dAppThresholdAmount > newBalanceB))
793- then throwThreshold(dAppThresholdAmount, newBalanceA, newBalanceB)
808+ let newBalanceA = $t03196332225._1
809+ let newBalanceB = $t03196332225._2
810+ if (!(checkDAppThreshold(newBalanceA, newBalanceB, pmtAssetId)))
811+ then throw()
794812 else {
795- let $t03232532398 = getAssetInfo(pmtAssetId)
796- let pmtStrAssetId = $t03232532398._1
797- let pmtAssetName = $t03232532398._2
798- let pmtDecimals = $t03232532398._3
799- let $t03241132488 = getAssetInfo(sendAssetId)
800- let sendStrAssetId = $t03241132488._1
801- let sendAssetName = $t03241132488._2
802- let sendDecimals = $t03241132488._3
813+ let $t03232332396 = getAssetInfo(pmtAssetId)
814+ let pmtStrAssetId = $t03232332396._1
815+ let pmtAssetName = $t03232332396._2
816+ let pmtDecimals = $t03232332396._3
817+ let $t03240532482 = getAssetInfo(sendAssetId)
818+ let sendStrAssetId = $t03240532482._1
819+ let sendAssetName = $t03240532482._2
820+ let sendDecimals = $t03240532482._3
803821 let stake1 = if (contains(stakingAssets, pmtStrAssetId))
804822 then invoke(this, "stakeUnstake", [true, pmtAmount, pmtStrAssetId], nil)
805823 else 0
840858
841859 @Callable(i)
842860 func takeIntoAccountExtraFunds () = valueOrElse(isActive(), {
843- let amountEnrollA = (accountBalanceWithStakedA - balanceA)
844- let amountEnrollB = (accountBalanceWithStakedB - balanceB)
845- let invariantNew = invariantCalc((balanceA + amountEnrollA), (balanceB + amountEnrollB))
846- if ((i.caller != moneyBoxAddress))
847- then throw("Only the money box can call this function")
848- else if (if ((0 > amountEnrollA))
849- then true
850- else (0 > amountEnrollB))
851- then suspend("Enroll amount negative")
852- else if (if ((amountEnrollA == 0))
853- then (amountEnrollB == 0)
854- else false)
855- then throw("No money to take")
856- else {
857- let stake1 = if (if (contains(stakingAssets, strAssetIdA))
858- then (amountEnrollA > 0)
861+ let claim = if (if ((assetIdA == USDN))
862+ then true
863+ else (assetIdB == USDN))
864+ then invoke(stakingUSDNAddress, "claimRewards", nil, nil)
865+ else 0
866+ if ((claim == claim))
867+ then {
868+ let amountEnrollA = (accountBalanceWithStakedA - balanceA)
869+ let amountEnrollB = (accountBalanceWithStakedB - balanceB)
870+ let invariantNew = invariantCalc((balanceA + amountEnrollA), (balanceB + amountEnrollB))
871+ if ((i.caller != moneyBoxAddress))
872+ then throw("Only the money box can call this function")
873+ else if (if ((0 > amountEnrollA))
874+ then true
875+ else (0 > amountEnrollB))
876+ then suspend("Enroll amount negative")
877+ else if (if ((amountEnrollA == 0))
878+ then (amountEnrollB == 0)
859879 else false)
860- then invoke(this, "stakeUnstake", [true, amountEnrollA, strAssetIdA], nil)
861- else 0
862- if ((stake1 == stake1))
863- then {
864- let stake2 = if (if (contains(stakingAssets, strAssetIdB))
865- then (amountEnrollB > 0)
880+ then throw("No money to take")
881+ else {
882+ let stake1 = if (if (contains(stakingAssets, strAssetIdA))
883+ then (amountEnrollA > 0)
866884 else false)
867- then invoke(this, "stakeUnstake", [true, amountEnrollB, strAssetIdB], nil)
885+ then invoke(this, "stakeUnstake", [true, amountEnrollA, strAssetIdA], nil)
868886 else 0
869- if ((stake2 == stake2))
870- then [IntegerEntry(kInvariant, invariantNew), IntegerEntry(kBalanceA, (balanceA + amountEnrollA)), IntegerEntry(kBalanceB, (balanceB + amountEnrollB))]
887+ if ((stake1 == stake1))
888+ then {
889+ let stake2 = if (if (contains(stakingAssets, strAssetIdB))
890+ then (amountEnrollB > 0)
891+ else false)
892+ then invoke(this, "stakeUnstake", [true, amountEnrollB, strAssetIdB], nil)
893+ else 0
894+ if ((stake2 == stake2))
895+ then [IntegerEntry(kInvariant, invariantNew), IntegerEntry(kBalanceA, (balanceA + amountEnrollA)), IntegerEntry(kBalanceB, (balanceB + amountEnrollB))]
896+ else throw("Strict value is not equal to itself.")
897+ }
871898 else throw("Strict value is not equal to itself.")
872899 }
873- else throw("Strict value is not equal to itself.")
874- }
900+ }
901+ else throw("Strict value is not equal to itself.")
875902 })
876903
877904
885912 func stakeUnstake (stake,amount,assetIdString) = if ((i.caller != this))
886913 then throw("Only contract itself can invoke this function")
887914 else {
888- let $t03579035893 = calcStakingParams(stake, amount, fromBase58String(assetIdString))
889- let call = $t03579035893._1
890- let addr = $t03579035893._2
891- let params = $t03579035893._3
892- let payments = $t03579035893._4
915+ let $t03584535948 = calcStakingParams(stake, amount, fromBase58String(assetIdString))
916+ let call = $t03584535948._1
917+ let addr = $t03584535948._2
918+ let params = $t03584535948._3
919+ let payments = $t03584535948._4
893920 let inv = invoke(addr, call, params, payments)
894921 if ((inv == inv))
895922 then nil
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let version = "2.0.0"
55
66 let kVersion = "version"
77
88 let kActive = "active"
99
1010 let kActiveGlob = "active_all_contracts"
1111
1212 let kAssetIdA = "A_asset_id"
1313
1414 let kAssetIdB = "B_asset_id"
1515
1616 let kBalanceA = "A_asset_balance"
1717
1818 let kBalanceB = "B_asset_balance"
1919
2020 let kShareAssetId = "share_asset_id"
2121
2222 let kShareAssetSupply = "share_asset_supply"
2323
2424 let kFee = "commission"
2525
2626 let kInvariant = "invariant"
2727
2828 let kCause = "shutdown_cause"
2929
3030 let kUSDNAddress = "staking_usdnnsbt_address"
3131
3232 let kEURNAddress = "staking_eurn_address"
3333
3434 let kDiscounts = "discounts"
3535
3636 let kDiscountValues = "discount_values"
3737
3838 let kUserSwopInGov = "_SWOP_amount"
3939
4040 let kUserGSwopInGov = "_GSwop_amount"
4141
4242 let kFirstHarvest = "first_harvest"
4343
4444 let kFirstHarvestHeight = "first_harvest_height"
4545
4646 let kShareLimit = "share_limit_on_first_harvest"
4747
4848 let kBasePeriod = "base_period"
4949
5050 let kPeriodLength = "period_length"
5151
5252 let kStartHeight = "start_height"
53+
54+let kDAppThreshold = "dApp_threshold"
5355
5456 let kAdminPubKey1 = "admin_pub_1"
5557
5658 let kAdminPubKey2 = "admin_pub_2"
5759
5860 let kAdminPubKey3 = "admin_pub_3"
5961
6062 let kAdminInvokePubKey = "admin_invoke_pub"
6163
6264 let kMoneyBoxAddress = "money_box_address"
6365
6466 let kGovAddress = "governance_address"
6567
6668 let kFarmingAddress = "farming_address"
6769
6870 let kVotingAddress = "voting_address"
6971
7072 let kUSDNAssetId = "usdn_asset_id"
7173
7274 let kStakingAssets = "staking_assets"
7375
7476 let oracle = Address(base58'3MvVBtsXroQpy1tsPw21TU2ET9A8WfmrNjz')
7577
7678 func getBase58FromOracle (key) = match getString(oracle, key) {
7779 case string: String =>
7880 fromBase58String(string)
7981 case nothing =>
8082 throw((key + "is empty"))
8183 }
8284
8385
8486 let adminPubKey1 = getBase58FromOracle(kAdminPubKey1)
8587
8688 let adminPubKey2 = getBase58FromOracle(kAdminPubKey2)
8789
8890 let adminPubKey3 = getBase58FromOracle(kAdminPubKey3)
8991
9092 let adminPubKeyInvoke = getBase58FromOracle(kAdminInvokePubKey)
9193
9294 let moneyBoxAddress = Address(getBase58FromOracle(kMoneyBoxAddress))
9395
9496 let govAddress = Address(getBase58FromOracle(kGovAddress))
9597
9698 let stakingUSDNAddress = Address(getBase58FromOracle(kUSDNAddress))
9799
98100 let votingAddress = Address(getBase58FromOracle(kVotingAddress))
99101
100102 let farmingAddress = Address(getBase58FromOracle(kFarmingAddress))
101103
102104 let USDN = getBase58FromOracle(kUSDNAssetId)
103105
104106 let stakingAssets = getStringValue(oracle, kStakingAssets)
105107
106108 let basePeriod = valueOrErrorMessage(getInteger(votingAddress, kBasePeriod), "Empty kBasePeriod")
107109
108110 let startHeight = valueOrErrorMessage(getInteger(votingAddress, kStartHeight), "Empty kStartHeight")
109111
110112 let periodLength = valueOrErrorMessage(getInteger(votingAddress, kPeriodLength), "Empty kPeriodLength")
111113
112114 let firstHarvestEndPeriod = ((basePeriod + ((height - startHeight) / periodLength)) + 3)
113115
114116 let active = getBooleanValue(this, kActive)
115117
116118 let activeGlob = valueOrElse(getBoolean(oracle, kActiveGlob), true)
117119
118120 let strAssetIdA = getStringValue(this, kAssetIdA)
119121
120122 let strAssetIdB = getStringValue(this, kAssetIdB)
121123
122124 let assetIdA = if ((strAssetIdA == "WAVES"))
123125 then unit
124126 else fromBase58String(strAssetIdA)
125127
126128 let assetIdB = if ((strAssetIdB == "WAVES"))
127129 then unit
128130 else fromBase58String(strAssetIdB)
129131
130132 let assetNameA = match assetIdA {
131133 case id: ByteVector =>
132134 value(assetInfo(id)).name
133135 case waves: Unit =>
134136 "WAVES"
135137 case _ =>
136138 throw("Match error")
137139 }
138140
139141 let assetNameB = match assetIdB {
140142 case id: ByteVector =>
141143 value(assetInfo(id)).name
142144 case waves: Unit =>
143145 "WAVES"
144146 case _ =>
145147 throw("Match error")
146148 }
147149
148150 let balanceA = getIntegerValue(this, kBalanceA)
149151
150152 let balanceB = getIntegerValue(this, kBalanceB)
151153
152154 let shareAssetId = fromBase58String(getStringValue(this, kShareAssetId))
153155
154156 let shareAssetSupply = getIntegerValue(this, kShareAssetSupply)
155157
156158 let invariant = getIntegerValue(this, kInvariant)
157159
158160 let fee = getIntegerValue(this, kFee)
159161
160162 let feeGovernance = fraction(fee, 40, 100)
161163
162164 let feeScale6 = 1000000
163165
164166 let scale3 = 1000
165167
166168 let scale8 = 100000000
167169
168170 let scale16 = 10000000000000000
169171
170172 let digits8 = 8
171173
172-let dAppThreshold = 50
174+let exchangeRatioLimitMin = 80000000
173175
174-let dAppThresholdScale2 = 100
175-
176-let exchangeRatioLimitMin = 90000000
177-
178-let exchangeRatioLimitMax = 110000000
176+let exchangeRatioLimitMax = 120000000
179177
180178 let alpha = 50
181179
182180 let alphaDigits = 2
183181
184182 let beta = 4600000000000000
185183
186184 func accountBalance (assetId) = match assetId {
187185 case id: ByteVector =>
188186 assetBalance(this, id)
189187 case waves: Unit =>
190188 wavesBalance(this).available
191189 case _ =>
192190 throw("Match error")
193191 }
194192
195193
196194 func stakedAmount (assetId) = {
197195 let stakedAmountCalculated = match assetId {
198196 case aId: ByteVector =>
199197 if ((aId == USDN))
200198 then getInteger(stakingUSDNAddress, ((("rpd_balance_" + toBase58String(aId)) + "_") + toString(this)))
201199 else 0
202200 case _: Unit =>
203201 0
204202 case _ =>
205203 throw("Match error")
206204 }
207205 match stakedAmountCalculated {
208206 case i: Int =>
209207 i
210208 case _ =>
211209 0
212210 }
213211 }
214212
215213
216214 let stakedAmountA = stakedAmount(assetIdA)
217215
218216 let stakedAmountB = stakedAmount(assetIdB)
219217
220218 let availableBalanceA = (balanceA - stakedAmountA)
221219
222220 let availableBalanceB = (balanceB - stakedAmountB)
223221
224222 let accountBalanceWithStakedA = (accountBalance(assetIdA) + stakedAmountA)
225223
226224 let accountBalanceWithStakedB = (accountBalance(assetIdB) + stakedAmountB)
227225
228226 let hasEnoughBalance = if ((accountBalanceWithStakedA >= balanceA))
229227 then (accountBalanceWithStakedB >= balanceB)
230228 else false
231229
232230 func skewness (x,y) = ((fraction(scale16, x, y) + fraction(scale16, y, x)) / 2)
233231
234232
235233 func invariantCalc (x,y) = {
236234 let sk = skewness(x, y)
237235 (fraction((x + y), scale16, pow(sk, digits8, alpha, alphaDigits, digits8, CEILING)) + (2 * fraction(toInt(pow(fraction(toBigInt(x), toBigInt(y), toBigInt(scale8)), 0, toBigInt(5), 1, (digits8 / 2), DOWN)), pow((sk - beta), digits8, alpha, alphaDigits, digits8, DOWN), scale8)))
238236 }
239237
240238
241239 func calculateSendAmount (amountToSendEstimated,minTokenReceiveAmount,tokenReceiveAmount,tokenId,balcA,balcB,invCur) = {
242240 let worstAllowedNewInvariantRatio = (scale16 - ((scale16 * 1) / 10000000))
243241 let deltaBetweenMaxAndMinSendValue = (amountToSendEstimated - minTokenReceiveAmount)
244242 let x = (balcA + tokenReceiveAmount)
245243 let y = (balcB + tokenReceiveAmount)
246244 func getStepAmount (acc,step) = if ((acc._1 == -1))
247245 then {
248246 let amountToSend = (amountToSendEstimated - (((step * deltaBetweenMaxAndMinSendValue) / 3) / scale3))
249247 let stepInvariant = if ((tokenId == assetIdA))
250248 then invariantCalc(x, (balcB - amountToSend))
251249 else invariantCalc((balcA - amountToSend), y)
252250 if ((stepInvariant > invCur))
253251 then $Tuple2(amountToSend, stepInvariant)
254252 else $Tuple2(-1, 0)
255253 }
256254 else acc
257255
258256 let amountToSendMin = getStepAmount($Tuple2(-1, 0), 3000)
259257 if ((0 > amountToSendMin._1))
260258 then throw("Price is worse than minReceived")
261259 else {
262260 let invEstimated = if ((tokenId == assetIdA))
263261 then invariantCalc(x, (balcB - amountToSendEstimated))
264262 else if ((tokenId == assetIdB))
265263 then invariantCalc((balcA - amountToSendEstimated), y)
266264 else throw("Wrong asset in payment")
267265 if ((invCur > invEstimated))
268266 then if ((worstAllowedNewInvariantRatio >= fraction(scale16, invCur, invEstimated)))
269267 then throw("The requested price is too not profitable for user")
270268 else {
271269 let a = {
272270 let $l = [25, 200, 500]
273271 let $s = size($l)
274272 let $acc0 = $Tuple2(-1, 0)
275273 func $f0_1 ($a,$i) = if (($i >= $s))
276274 then $a
277275 else getStepAmount($a, $l[$i])
278276
279277 func $f0_2 ($a,$i) = if (($i >= $s))
280278 then $a
281279 else throw("List size exceeds 3")
282280
283281 $f0_2($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3)
284282 }
285283 if ((0 > a._1))
286284 then amountToSendMin._1
287285 else a._1
288286 }
289287 else {
290288 let a = {
291289 let $l = [-500, -200, -25]
292290 let $s = size($l)
293291 let $acc0 = $Tuple2(-1, 0)
294292 func $f0_1 ($a,$i) = if (($i >= $s))
295293 then $a
296294 else getStepAmount($a, $l[$i])
297295
298296 func $f0_2 ($a,$i) = if (($i >= $s))
299297 then $a
300298 else throw("List size exceeds 3")
301299
302300 $f0_2($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3)
303301 }
304302 let tupleSendBetter = if ((0 > a._1))
305303 then $Tuple2(amountToSendEstimated, invEstimated)
306304 else a
307305 if ((worstAllowedNewInvariantRatio >= fraction(scale16, invCur, tupleSendBetter._2)))
308306 then throw("The requested price is too not profitable for user")
309307 else tupleSendBetter._1
310308 }
311309 }
312310 }
313311
314312
315313 func getAssetInfo (assetId) = match assetId {
316314 case id: ByteVector =>
317315 let stringId = toBase58String(id)
318316 let info = valueOrErrorMessage(assetInfo(id), (("Asset " + stringId) + " doesn't exist"))
319317 $Tuple3(stringId, info.name, info.decimals)
320318 case waves: Unit =>
321319 $Tuple3("WAVES", "WAVES", 8)
322320 case _ =>
323321 throw("Match error")
324322 }
325323
326324
327325 func suspend (cause) = [BooleanEntry(kActive, false), StringEntry(kCause, cause)]
328326
329327
330328 func throwIsActive () = throw("DApp is already active")
331329
332330
333331 func isActive () = if (if (active)
334332 then activeGlob
335333 else false)
336334 then unit
337335 else throw("DApp is inactive at this moment")
338336
339337
340338 func isAdminCall (i) = if (containsElement([adminPubKey1, adminPubKey2, adminPubKey3], i.callerPublicKey))
341339 then unit
342340 else throw("Only admin can call this function")
343341
344342
345343 func isSelfCall (i) = if ((this == i.caller))
346344 then unit
347345 else throw("Only contract itself can call this function")
348346
349347
350348 func throwAssets () = throw(((("Incorrect assets attached. Expected: " + strAssetIdA) + " and ") + strAssetIdB))
351349
352350
353351 func throwOnePayment () = throw("One attached payment expected")
354352
355353
356-func throwThreshold (threshold,amountA,amountB) = throw(((((((((("New balance in assets of the DApp is less than threshold " + toString(threshold)) + ": ") + toString(amountA)) + " ") + assetNameA) + ", ") + toString(amountB)) + " ") + assetNameB))
357-
358-
359354 func suspendSuspicious () = suspend(((((((((((((((("Suspicious state. Actual balances: " + toString(balanceA)) + " ") + assetNameA) + ", ") + toString(balanceB)) + " ") + assetNameB) + ". State: ") + toString(accountBalance(assetIdA))) + " ") + assetNameA) + ", ") + toString(accountBalance(assetIdB))) + " ") + assetNameB))
360355
361356
362357 func calcStakingFuncAndAddres (stake,assetId) = if (stake)
363358 then $Tuple2("lockNeutrino", stakingUSDNAddress)
364359 else $Tuple2("unlockNeutrino", stakingUSDNAddress)
365360
366361
367362 func calcStakingParams (stake,amount,assetId) = if (stake)
368363 then {
369- let $t01050410570 = calcStakingFuncAndAddres(stake, assetId)
370- let call = $t01050410570._1
371- let stakingAddr = $t01050410570._2
364+ let $t01020710273 = calcStakingFuncAndAddres(stake, assetId)
365+ let call = $t01020710273._1
366+ let stakingAddr = $t01020710273._2
372367 $Tuple4(call, stakingAddr, nil, [AttachedPayment(assetId, amount)])
373368 }
374369 else {
375- let $t01065610722 = calcStakingFuncAndAddres(stake, assetId)
376- let call = $t01065610722._1
377- let stakingAddr = $t01065610722._2
370+ let $t01035910425 = calcStakingFuncAndAddres(stake, assetId)
371+ let call = $t01035910425._1
372+ let stakingAddr = $t01035910425._2
378373 $Tuple4(call, stakingAddr, [amount, toBase58String(assetId)], nil)
379374 }
380375
381376
382377 func calculateFeeDiscount (userAddr) = {
383378 let swopAmount = valueOrElse(getInteger(govAddress, (toString(userAddr) + kUserSwopInGov)), 0)
384379 let gSwopAmount = valueOrElse(getInteger(govAddress, (toString(userAddr) + kUserGSwopInGov)), swopAmount)
385380 let discountValues = split(getStringValue(oracle, kDiscountValues), ",")
386381 let discounts = split(getStringValue(oracle, kDiscounts), ",")
387382 if (if ((gSwopAmount >= parseIntValue(discountValues[0])))
388383 then (parseIntValue(discountValues[1]) > gSwopAmount)
389384 else false)
390385 then (feeScale6 - parseIntValue(discounts[0]))
391386 else if (if ((gSwopAmount >= parseIntValue(discountValues[1])))
392387 then (parseIntValue(discountValues[2]) > gSwopAmount)
393388 else false)
394389 then (feeScale6 - parseIntValue(discounts[1]))
395390 else if (if ((gSwopAmount >= parseIntValue(discountValues[2])))
396391 then (parseIntValue(discountValues[3]) > gSwopAmount)
397392 else false)
398393 then (feeScale6 - parseIntValue(discounts[2]))
399394 else if (if ((gSwopAmount >= parseIntValue(discountValues[3])))
400395 then (parseIntValue(discountValues[4]) > gSwopAmount)
401396 else false)
402397 then (feeScale6 - parseIntValue(discounts[3]))
403398 else if ((gSwopAmount >= parseIntValue(discountValues[4])))
404399 then (feeScale6 - parseIntValue(discounts[4]))
405400 else feeScale6
406401 }
407402
408403
404+func checkDAppThreshold (newBalanceA,newBalanceB,pmtAssetId) = {
405+ let dAppThreshold = getIntegerValue(this, kDAppThreshold)
406+ let ratio = if (if ((pmtAssetId == assetIdA))
407+ then (newBalanceA > newBalanceB)
408+ else false)
409+ then fraction(newBalanceA, 1, newBalanceB, CEILING)
410+ else if (if ((pmtAssetId == assetIdB))
411+ then (newBalanceB > newBalanceA)
412+ else false)
413+ then fraction(newBalanceB, 1, newBalanceA, CEILING)
414+ else 0
415+ if ((ratio > dAppThreshold))
416+ then {
417+ let $t01217012278 = if ((pmtAssetId == assetIdA))
418+ then $Tuple2(assetNameB, assetNameA)
419+ else $Tuple2(assetNameA, assetNameB)
420+ let token1 = $t01217012278._1
421+ let token2 = $t01217012278._2
422+ throw((((("Buying " + token1) + " is temporarily unavailable due to the ") + token2) + " depeg"))
423+ }
424+ else true
425+ }
426+
427+
409428 func replenishWithTwoTokensCalc (i,stakeFarming,lockType) = {
410429 let pmtAssetIdA = i.payments[0].assetId
411430 let pmtAssetIdB = i.payments[1].assetId
412431 let ratioShareTokensInA = fraction(scale8, i.payments[0].amount, balanceA)
413432 let ratioShareTokensInB = fraction(scale8, i.payments[1].amount, balanceB)
414- let $t01231312390 = getAssetInfo(pmtAssetIdA)
415- let pmtStrAssetIdA = $t01231312390._1
416- let pmtAssetNameA = $t01231312390._2
417- let pmtDecimalsA = $t01231312390._3
418- let $t01239512512 = getAssetInfo(pmtAssetIdB)
419- let pmtStrAssetIdB = $t01239512512._1
420- let pmtAssetNameB = $t01239512512._2
421- let pmtDecimalsB = $t01239512512._3
422- let $t01251713021 = if ((ratioShareTokensInB > ratioShareTokensInA))
433+ let $t01273812815 = getAssetInfo(pmtAssetIdA)
434+ let pmtStrAssetIdA = $t01273812815._1
435+ let pmtAssetNameA = $t01273812815._2
436+ let pmtDecimalsA = $t01273812815._3
437+ let $t01282012937 = getAssetInfo(pmtAssetIdB)
438+ let pmtStrAssetIdB = $t01282012937._1
439+ let pmtAssetNameB = $t01282012937._2
440+ let pmtDecimalsB = $t01282012937._3
441+ let $t01294213446 = if ((ratioShareTokensInB > ratioShareTokensInA))
423442 then {
424443 let pmt = fraction(balanceB, ratioShareTokensInA, scale8, CEILING)
425444 $Tuple5(i.payments[0].amount, pmt, (i.payments[1].amount - pmt), pmtAssetIdB, ratioShareTokensInA)
426445 }
427446 else {
428447 let pmt = fraction(balanceA, ratioShareTokensInB, scale8, CEILING)
429448 $Tuple5(pmt, i.payments[1].amount, (i.payments[0].amount - pmt), pmtAssetIdA, ratioShareTokensInB)
430449 }
431- let pmtAmountA = $t01251713021._1
432- let pmtAmountB = $t01251713021._2
433- let change = $t01251713021._3
434- let changeAssetId = $t01251713021._4
435- let shareTokenRatio = $t01251713021._5
450+ let pmtAmountA = $t01294213446._1
451+ let pmtAmountB = $t01294213446._2
452+ let change = $t01294213446._3
453+ let changeAssetId = $t01294213446._4
454+ let shareTokenRatio = $t01294213446._5
436455 let shareTokenToPayAmount = fraction(shareTokenRatio, shareAssetSupply, scale8)
437456 if (if ((size(i.payments) != 2))
438457 then (size(i.payments) != 3)
439458 else false)
440459 then throw("Two or three payments expected")
441460 else if (if ((pmtAssetIdA != assetIdA))
442461 then true
443462 else (pmtAssetIdB != assetIdB))
444463 then throwAssets()
445464 else if ((shareTokenToPayAmount == 0))
446465 then throw("Too small amount to replenish")
447466 else if ((0 > change))
448467 then throw("Change < 0")
449468 else if (!(hasEnoughBalance))
450469 then ([ScriptTransfer(i.caller, pmtAmountA, pmtAssetIdA), ScriptTransfer(i.caller, pmtAmountB, pmtAssetIdB)] ++ suspendSuspicious())
451470 else {
452471 let stake1 = if (contains(stakingAssets, pmtStrAssetIdA))
453472 then invoke(this, "stakeUnstake", [true, pmtAmountA, pmtStrAssetIdA], nil)
454473 else 0
455474 if ((stake1 == stake1))
456475 then {
457476 let stake2 = if (contains(stakingAssets, pmtStrAssetIdB))
458477 then invoke(this, "stakeUnstake", [true, pmtAmountB, pmtStrAssetIdB], nil)
459478 else 0
460479 if ((stake2 == stake2))
461480 then {
462481 let scriptActions = [IntegerEntry(kBalanceA, (balanceA + pmtAmountA)), IntegerEntry(kBalanceB, (balanceB + pmtAmountB)), IntegerEntry(kShareAssetSupply, (shareAssetSupply + shareTokenToPayAmount)), IntegerEntry(kInvariant, invariantCalc((balanceA + pmtAmountA), (balanceB + pmtAmountB))), ScriptTransfer(i.caller, change, changeAssetId)]
463482 if (stakeFarming)
464483 then {
465484 let stPayments = ([AttachedPayment(shareAssetId, shareTokenToPayAmount)] ++ (if ((size(i.payments) == 3))
466485 then [AttachedPayment(if ((i.payments[2].assetId == base58''))
467486 then unit
468487 else i.payments[2].assetId, i.payments[2].amount)]
469488 else nil))
470489 let re = invoke(this, "reissueShare", [shareTokenToPayAmount], nil)
471490 if ((re == re))
472491 then {
473492 let s = invoke(farmingAddress, "lockShareTokensFromPool", [i.caller.bytes, toString(this), lockType], stPayments)
474493 if ((s == s))
475494 then scriptActions
476495 else throw("Strict value is not equal to itself.")
477496 }
478497 else throw("Strict value is not equal to itself.")
479498 }
480499 else (scriptActions ++ [Reissue(shareAssetId, shareTokenToPayAmount, true), ScriptTransfer(i.caller, shareTokenToPayAmount, shareAssetId)])
481500 }
482501 else throw("Strict value is not equal to itself.")
483502 }
484503 else throw("Strict value is not equal to itself.")
485504 }
486505 }
487506
488507
489508 func replenishWithOneTokenCalc (i,virtualSwapTokenPay,virtualSwapTokenGet,stakeFarming,lockType) = {
490- let $t01541115486 = $Tuple2(i.payments[0].amount, i.payments[0].assetId)
491- let pmtAmount = $t01541115486._1
492- let pmtAssetId = $t01541115486._2
493- let $t01549115564 = getAssetInfo(pmtAssetId)
494- let pmtStrAssetId = $t01549115564._1
495- let pmtAssetName = $t01549115564._2
496- let pmtDecimals = $t01549115564._3
509+ let $t01583615911 = $Tuple2(i.payments[0].amount, i.payments[0].assetId)
510+ let pmtAmount = $t01583615911._1
511+ let pmtAssetId = $t01583615911._2
512+ let $t01591615989 = getAssetInfo(pmtAssetId)
513+ let pmtStrAssetId = $t01591615989._1
514+ let pmtAssetName = $t01591615989._2
515+ let pmtDecimals = $t01591615989._3
497516 let pmtMinThreshold = 5000000
498517 let thresholdValueForMinTolerance = 50000000
499518 let tolerance = if ((thresholdValueForMinTolerance > pmtAmount))
500519 then 100000
501520 else 1
502521 let slippageValueMinForReplenish = (scale8 - ((scale8 * tolerance) / 10000000))
503522 let slippageValueMaxForReplenish = (scale8 + ((scale8 * tolerance) / 10000000))
504523 let slippageValueMinForSwap = (scale8 - ((scale8 * 1) / 10000000))
505524 if ((pmtMinThreshold > pmtAmount))
506525 then throw((((("Payment amount " + toString(pmtAmount)) + " does not exceed the minimum amount of ") + toString(pmtMinThreshold)) + " tokens"))
507526 else if (if ((size(i.payments) != 1))
508527 then (size(i.payments) != 2)
509528 else false)
510529 then throw("One or two payments expected")
511530 else if (!(hasEnoughBalance))
512531 then ([ScriptTransfer(i.caller, pmtAmount, pmtAssetId)] ++ suspendSuspicious())
513532 else if (if ((pmtAssetId != assetIdA))
514533 then (pmtAssetId != assetIdB)
515534 else false)
516535 then throwAssets()
517536 else {
518- let $t01657117213 = if ((pmtAssetId == assetIdA))
537+ let $t01699117633 = if ((pmtAssetId == assetIdA))
519538 then $Tuple6((pmtAmount - virtualSwapTokenPay), virtualSwapTokenGet, (balanceA + virtualSwapTokenPay), (balanceB - virtualSwapTokenGet), (balanceA + pmtAmount), balanceB)
520539 else $Tuple6(virtualSwapTokenGet, (pmtAmount - virtualSwapTokenPay), (balanceA - virtualSwapTokenGet), (balanceB + virtualSwapTokenPay), balanceA, (balanceB + pmtAmount))
521- let virtualReplenishA = $t01657117213._1
522- let virtualReplenishB = $t01657117213._2
523- let balanceAfterSwapA = $t01657117213._3
524- let balanceAfterSwapB = $t01657117213._4
525- let newBalanceA = $t01657117213._5
526- let newBalanceB = $t01657117213._6
540+ let virtualReplenishA = $t01699117633._1
541+ let virtualReplenishB = $t01699117633._2
542+ let balanceAfterSwapA = $t01699117633._3
543+ let balanceAfterSwapB = $t01699117633._4
544+ let newBalanceA = $t01699117633._5
545+ let newBalanceB = $t01699117633._6
527546 let invariantNew = invariantCalc(balanceAfterSwapA, balanceAfterSwapB)
528547 let ratioVirtualBalanceToVirtualReplenish = (fraction(scale16, balanceAfterSwapA, balanceAfterSwapB) / fraction(scale8, virtualReplenishA, virtualReplenishB))
529- let dAppThresholdAmount = fraction((newBalanceA + newBalanceB), dAppThreshold, (2 * dAppThresholdScale2))
530548 if (if ((slippageValueMinForSwap >= fraction(scale8, invariant, invariantNew)))
531549 then true
532550 else (invariant > invariantNew))
533551 then throw("Incorrect virtualSwapTokenPay or virtualSwapTokenGet value")
534552 else if (if ((slippageValueMinForReplenish > ratioVirtualBalanceToVirtualReplenish))
535553 then true
536554 else (ratioVirtualBalanceToVirtualReplenish > slippageValueMaxForReplenish))
537555 then throw("Swap with virtualSwapTokenPay and virtualSwapTokenGet is possible, but ratio after virtual swap is incorrect")
538- else if (if ((dAppThresholdAmount > newBalanceA))
539- then true
540- else (dAppThresholdAmount > newBalanceB))
541- then throwThreshold(dAppThresholdAmount, newBalanceA, newBalanceB)
556+ else if (!(checkDAppThreshold(newBalanceA, newBalanceB, pmtAssetId)))
557+ then throw()
542558 else {
543559 let ratioShareTokensInA = fraction(virtualReplenishA, scale8, balanceAfterSwapA)
544560 let ratioShareTokensInB = fraction(virtualReplenishB, scale8, balanceAfterSwapB)
545561 let shareTokenToPayAmount = fraction(min([ratioShareTokensInA, ratioShareTokensInB]), shareAssetSupply, scale8)
546562 let shareTokenToPayAmountAfterFee = fraction(shareTokenToPayAmount, (feeScale6 - (fee / 2)), feeScale6)
547563 let shareTokenGovernanceReward = fraction(shareTokenToPayAmount, (feeGovernance / 2), feeScale6)
548564 let governanceRewardTokenA = fraction(shareTokenGovernanceReward, balanceA, shareAssetSupply)
549565 let governanceRewardTokenB = fraction(shareTokenGovernanceReward, balanceB, shareAssetSupply)
550- let $t01920319498 = if ((pmtStrAssetId == strAssetIdA))
566+ let $t01938419667 = if ((pmtStrAssetId == strAssetIdA))
551567 then $Tuple3((pmtAmount - governanceRewardTokenA), governanceRewardTokenB, strAssetIdB)
552568 else $Tuple3((pmtAmount - governanceRewardTokenB), governanceRewardTokenA, strAssetIdA)
553- let stakeAmount = $t01920319498._1
554- let unstakeAmount = $t01920319498._2
555- let unstakeAsset = $t01920319498._3
569+ let stakeAmount = $t01938419667._1
570+ let unstakeAmount = $t01938419667._2
571+ let unstakeAsset = $t01938419667._3
556572 let stake1 = if (contains(stakingAssets, pmtStrAssetId))
557573 then invoke(this, "stakeUnstake", [true, stakeAmount, pmtStrAssetId], nil)
558574 else 0
559575 if ((stake1 == stake1))
560576 then {
561577 let stake2 = if (contains(stakingAssets, unstakeAsset))
562578 then invoke(this, "stakeUnstake", [false, unstakeAmount, unstakeAsset], nil)
563579 else 0
564580 if ((stake2 == stake2))
565581 then {
566582 let scriptActions = [IntegerEntry(kBalanceA, (newBalanceA - governanceRewardTokenA)), IntegerEntry(kBalanceB, (newBalanceB - governanceRewardTokenB)), IntegerEntry(kShareAssetSupply, (shareAssetSupply + shareTokenToPayAmountAfterFee)), IntegerEntry(kInvariant, invariantCalc((newBalanceA - governanceRewardTokenA), (newBalanceB - governanceRewardTokenB))), ScriptTransfer(moneyBoxAddress, governanceRewardTokenA, assetIdA), ScriptTransfer(moneyBoxAddress, governanceRewardTokenB, assetIdB)]
567583 if (stakeFarming)
568584 then {
569585 let stPayments = ([AttachedPayment(shareAssetId, shareTokenToPayAmountAfterFee)] ++ (if ((size(i.payments) == 2))
570586 then [AttachedPayment(if ((i.payments[1].assetId == base58''))
571587 then unit
572588 else i.payments[1].assetId, i.payments[1].amount)]
573589 else nil))
574590 let re = invoke(this, "reissueShare", [shareTokenToPayAmountAfterFee], nil)
575591 if ((re == re))
576592 then {
577593 let s = invoke(farmingAddress, "lockShareTokensFromPool", [i.caller.bytes, toString(this), lockType], stPayments)
578594 if ((s == s))
579595 then scriptActions
580596 else throw("Strict value is not equal to itself.")
581597 }
582598 else throw("Strict value is not equal to itself.")
583599 }
584600 else (scriptActions ++ [Reissue(shareAssetId, shareTokenToPayAmountAfterFee, true), ScriptTransfer(i.caller, shareTokenToPayAmountAfterFee, shareAssetId)])
585601 }
586602 else throw("Strict value is not equal to itself.")
587603 }
588604 else throw("Strict value is not equal to itself.")
589605 }
590606 }
591607 }
592608
593609
594610 func withdrawCalc (i,unlockAmount) = {
595- let $t02148521820 = if ((size(i.payments) == 1))
611+ let $t02151621851 = if ((size(i.payments) == 1))
596612 then if ((i.payments[0].assetId != shareAssetId))
597613 then throw(("Incorrect asset attached. Expected: " + toBase58String(shareAssetId)))
598614 else $Tuple2(i.payments[0].amount, i.payments[0].assetId)
599615 else $Tuple2(0, shareAssetId)
600- let pmtAmount = $t02148521820._1
601- let pmtAssetId = $t02148521820._2
616+ let pmtAmount = $t02151621851._1
617+ let pmtAssetId = $t02151621851._2
602618 if (!(hasEnoughBalance))
603619 then ([ScriptTransfer(i.caller, pmtAmount, pmtAssetId)] ++ suspendSuspicious())
604620 else {
605621 let unlock = if ((unlockAmount > 0))
606622 then invoke(farmingAddress, "withdrawShareTokensFromPool", [i.caller.bytes, toString(this), unlockAmount], nil)
607623 else 0
608624 if ((unlock == unlock))
609625 then {
610626 let withdrawAmount = (pmtAmount + unlockAmount)
611627 let amountToPayA = fraction(withdrawAmount, balanceA, shareAssetSupply)
612628 let amountToPayB = fraction(withdrawAmount, balanceB, shareAssetSupply)
613629 let invariantCalculated = invariantCalc((balanceA - amountToPayA), (balanceB - amountToPayB))
614630 let stake1 = if (contains(stakingAssets, strAssetIdA))
615631 then invoke(this, "stakeUnstake", [false, amountToPayA, strAssetIdA], nil)
616632 else 0
617633 if ((stake1 == stake1))
618634 then {
619635 let stake2 = if (contains(stakingAssets, strAssetIdB))
620636 then invoke(this, "stakeUnstake", [false, amountToPayB, strAssetIdB], nil)
621637 else 0
622638 if ((stake2 == stake2))
623639 then [IntegerEntry(kBalanceA, (balanceA - amountToPayA)), IntegerEntry(kBalanceB, (balanceB - amountToPayB)), IntegerEntry(kShareAssetSupply, (shareAssetSupply - withdrawAmount)), IntegerEntry(kInvariant, invariantCalculated), Burn(shareAssetId, withdrawAmount), ScriptTransfer(i.caller, amountToPayA, assetIdA), ScriptTransfer(i.caller, amountToPayB, assetIdB)]
624640 else throw("Strict value is not equal to itself.")
625641 }
626642 else throw("Strict value is not equal to itself.")
627643 }
628644 else throw("Strict value is not equal to itself.")
629645 }
630646 }
631647
632648
633649 @Callable(i)
634650 func init (firstHarvest) = {
635- let $t02337223449 = $Tuple2(i.payments[0].amount, i.payments[0].assetId)
636- let pmtAmountA = $t02337223449._1
637- let pmtAssetIdA = $t02337223449._2
638- let $t02345423531 = $Tuple2(i.payments[1].amount, i.payments[1].assetId)
639- let pmtAmountB = $t02345423531._1
640- let pmtAssetIdB = $t02345423531._2
641- let $t02353623613 = getAssetInfo(pmtAssetIdA)
642- let pmtStrAssetIdA = $t02353623613._1
643- let pmtAssetNameA = $t02353623613._2
644- let pmtDecimalsA = $t02353623613._3
645- let $t02361823695 = getAssetInfo(pmtAssetIdB)
646- let pmtStrAssetIdB = $t02361823695._1
647- let pmtAssetNameB = $t02361823695._2
648- let pmtDecimalsB = $t02361823695._3
651+ let $t02340323480 = $Tuple2(i.payments[0].amount, i.payments[0].assetId)
652+ let pmtAmountA = $t02340323480._1
653+ let pmtAssetIdA = $t02340323480._2
654+ let $t02348523562 = $Tuple2(i.payments[1].amount, i.payments[1].assetId)
655+ let pmtAmountB = $t02348523562._1
656+ let pmtAssetIdB = $t02348523562._2
657+ let $t02356723644 = getAssetInfo(pmtAssetIdA)
658+ let pmtStrAssetIdA = $t02356723644._1
659+ let pmtAssetNameA = $t02356723644._2
660+ let pmtDecimalsA = $t02356723644._3
661+ let $t02364923726 = getAssetInfo(pmtAssetIdB)
662+ let pmtStrAssetIdB = $t02364923726._1
663+ let pmtAssetNameB = $t02364923726._2
664+ let pmtDecimalsB = $t02364923726._3
649665 if (isDefined(getBoolean(this, kActive)))
650666 then throwIsActive()
651667 else if ((pmtAssetIdA == pmtAssetIdB))
652668 then throw("Assets must be different")
653669 else {
654670 let shareName = ((("s" + take(pmtAssetNameA, 7)) + "_") + take(pmtAssetNameB, 7))
655671 let shareDescription = ((((("ShareToken of SwopFi protocol for " + pmtAssetNameA) + " and ") + pmtAssetNameB) + " at address ") + toString(this))
656672 let shareDecimals = ((pmtDecimalsA + pmtDecimalsB) / 2)
657673 let shareInitialSupply = fraction(pow(pmtAmountA, pmtDecimalsA, 5, 1, pmtDecimalsA, DOWN), pow(pmtAmountB, pmtDecimalsB, 5, 1, pmtDecimalsB, DOWN), pow(10, 0, shareDecimals, 0, 0, DOWN))
658674 let shareIssue = Issue(shareName, shareDescription, shareInitialSupply, shareDecimals, true)
659675 let shareIssueId = calculateAssetId(shareIssue)
660676 let invariantCalculated = invariantCalc(pmtAmountA, pmtAmountB)
661677 let stake1 = if (contains(stakingAssets, pmtStrAssetIdA))
662678 then invoke(this, "stakeUnstake", [true, pmtAmountA, pmtStrAssetIdA], nil)
663679 else 0
664680 if ((stake1 == stake1))
665681 then {
666682 let stake2 = if (contains(stakingAssets, pmtStrAssetIdB))
667683 then invoke(this, "stakeUnstake", [true, pmtAmountB, pmtStrAssetIdB], nil)
668684 else 0
669685 if ((stake2 == stake2))
670686 then {
671- let baseEntry = [StringEntry(kVersion, version), BooleanEntry(kActive, true), StringEntry(kAssetIdA, pmtStrAssetIdA), StringEntry(kAssetIdB, pmtStrAssetIdB), IntegerEntry(kBalanceA, pmtAmountA), IntegerEntry(kBalanceB, pmtAmountB), IntegerEntry(kInvariant, invariantCalculated), IntegerEntry(kFee, getIntegerValue(oracle, "base_fee_flat")), shareIssue, StringEntry(kShareAssetId, toBase58String(shareIssueId)), IntegerEntry(kShareAssetSupply, shareInitialSupply), ScriptTransfer(i.caller, shareInitialSupply, shareIssueId)]
687+ let baseEntry = [StringEntry(kVersion, version), BooleanEntry(kActive, true), StringEntry(kAssetIdA, pmtStrAssetIdA), StringEntry(kAssetIdB, pmtStrAssetIdB), IntegerEntry(kBalanceA, pmtAmountA), IntegerEntry(kBalanceB, pmtAmountB), IntegerEntry(kInvariant, invariantCalculated), IntegerEntry(kFee, getIntegerValue(oracle, "base_fee_flat")), IntegerEntry(kDAppThreshold, 3), shareIssue, StringEntry(kShareAssetId, toBase58String(shareIssueId)), IntegerEntry(kShareAssetSupply, shareInitialSupply), ScriptTransfer(i.caller, shareInitialSupply, shareIssueId)]
672688 if (firstHarvest)
673689 then (baseEntry ++ [BooleanEntry(kFirstHarvest, firstHarvest), IntegerEntry(kFirstHarvestHeight, (startHeight + (firstHarvestEndPeriod * periodLength)))])
674690 else baseEntry
675691 }
676692 else throw("Strict value is not equal to itself.")
677693 }
678694 else throw("Strict value is not equal to itself.")
679695 }
680696 }
681697
682698
683699
684700 @Callable(i)
685701 func replenishWithTwoTokensV2 (stakeFarming,lockType) = valueOrElse(isActive(), replenishWithTwoTokensCalc(i, stakeFarming, lockType))
686702
687703
688704
689705 @Callable(i)
690706 func replenishWithOneTokenV2 (virtualSwapTokenPay,virtualSwapTokenGet,stakeFarming,lockType) = valueOrElse(isActive(), replenishWithOneTokenCalc(i, virtualSwapTokenPay, virtualSwapTokenGet, stakeFarming, lockType))
691707
692708
693709
694710 @Callable(i)
695711 func withdrawV2 (unlockAmount) = valueOrElse(isActive(), withdrawCalc(i, unlockAmount))
696712
697713
698714
699715 @Callable(i)
700716 func withdrawOneToken (unlockAmount,withdrawAsset,estimatedAmountToReceive,minAmountToReceive) = valueOrElse(isActive(), {
701- let $t02706527400 = if ((size(i.payments) == 1))
717+ let $t02714127476 = if ((size(i.payments) == 1))
702718 then if ((i.payments[0].assetId != shareAssetId))
703719 then throw(("Incorrect asset attached. Expected: " + toBase58String(shareAssetId)))
704720 else $Tuple2(i.payments[0].amount, i.payments[0].assetId)
705721 else $Tuple2(0, shareAssetId)
706- let pmtAmount = $t02706527400._1
707- let pmtAssetId = $t02706527400._2
722+ let pmtAmount = $t02714127476._1
723+ let pmtAssetId = $t02714127476._2
708724 let withdrawAmount = (pmtAmount + unlockAmount)
709725 if (if ((withdrawAsset != strAssetIdA))
710726 then (withdrawAsset != strAssetIdB)
711727 else false)
712728 then throw("Incorrect withdraw asset")
713729 else if ((0 >= withdrawAmount))
714730 then throw("withdraw amount must be grater than 0")
715731 else if (!(hasEnoughBalance))
716732 then ([ScriptTransfer(i.caller, pmtAmount, pmtAssetId)] ++ suspendSuspicious())
717733 else {
718734 let unlock = if ((unlockAmount > 0))
719735 then invoke(farmingAddress, "withdrawShareTokensFromPool", [i.caller.bytes, toString(this), unlockAmount], nil)
720736 else 0
721737 if ((unlock == unlock))
722738 then {
723739 let amountToPayA = fraction(withdrawAmount, balanceA, shareAssetSupply)
724740 let amountToPayB = fraction(withdrawAmount, balanceB, shareAssetSupply)
725741 let newVirtBalcA = (balanceA - amountToPayA)
726742 let newVirtBalcB = (balanceB - amountToPayB)
727743 let feeDiscount = calculateFeeDiscount(i.originCaller)
728744 let amountExchangedWithFee = if ((withdrawAsset == strAssetIdA))
729745 then calculateSendAmount(estimatedAmountToReceive, minAmountToReceive, amountToPayB, assetIdB, newVirtBalcA, newVirtBalcB, invariantCalc(newVirtBalcA, newVirtBalcB))
730746 else calculateSendAmount(estimatedAmountToReceive, minAmountToReceive, amountToPayA, assetIdA, newVirtBalcA, newVirtBalcB, invariantCalc(newVirtBalcA, newVirtBalcB))
731747 let govReward = fraction(amountExchangedWithFee, fraction(feeGovernance, feeDiscount, feeScale6, CEILING), feeScale6)
732748 let amountExchanged = fraction(amountExchangedWithFee, (feeScale6 - fraction(fee, feeDiscount, feeScale6, CEILING)), feeScale6)
733- let $t02900329332 = if ((withdrawAsset == strAssetIdA))
734- then $Tuple3((amountToPayA + amountExchanged), (((balanceA - amountToPayA) - amountExchanged) - govReward), balanceB)
735- else $Tuple3((amountToPayB + amountExchanged), balanceA, (((balanceB - amountToPayB) - amountExchanged) - govReward))
736- let amountToPay = $t02900329332._1
737- let balanceANew = $t02900329332._2
738- let balanceBNew = $t02900329332._3
739- let invariantCalculated = invariantCalc(balanceANew, balanceBNew)
740- let stake1 = if (contains(stakingAssets, withdrawAsset))
741- then invoke(this, "stakeUnstake", [false, (amountToPay + govReward), withdrawAsset], nil)
742- else 0
743- if ((stake1 == stake1))
744- then [IntegerEntry(kBalanceA, balanceANew), IntegerEntry(kBalanceB, balanceBNew), IntegerEntry(kShareAssetSupply, (shareAssetSupply - withdrawAmount)), IntegerEntry(kInvariant, invariantCalculated), Burn(shareAssetId, withdrawAmount), ScriptTransfer(i.caller, amountToPay, fromBase58String(withdrawAsset)), ScriptTransfer(moneyBoxAddress, govReward, fromBase58String(withdrawAsset))]
745- else throw("Strict value is not equal to itself.")
749+ let $t02907929441 = if ((withdrawAsset == strAssetIdA))
750+ then $Tuple4((amountToPayA + amountExchanged), (((balanceA - amountToPayA) - amountExchanged) - govReward), balanceB, assetIdB)
751+ else $Tuple4((amountToPayB + amountExchanged), balanceA, (((balanceB - amountToPayB) - amountExchanged) - govReward), assetIdA)
752+ let amountToPay = $t02907929441._1
753+ let balanceANew = $t02907929441._2
754+ let balanceBNew = $t02907929441._3
755+ let virtAssetId = $t02907929441._4
756+ if (!(checkDAppThreshold(balanceANew, balanceBNew, virtAssetId)))
757+ then throw()
758+ else {
759+ let invariantCalculated = invariantCalc(balanceANew, balanceBNew)
760+ let stake1 = if (contains(stakingAssets, withdrawAsset))
761+ then invoke(this, "stakeUnstake", [false, (amountToPay + govReward), withdrawAsset], nil)
762+ else 0
763+ if ((stake1 == stake1))
764+ then [IntegerEntry(kBalanceA, balanceANew), IntegerEntry(kBalanceB, balanceBNew), IntegerEntry(kShareAssetSupply, (shareAssetSupply - withdrawAmount)), IntegerEntry(kInvariant, invariantCalculated), Burn(shareAssetId, withdrawAmount), ScriptTransfer(i.caller, amountToPay, fromBase58String(withdrawAsset)), ScriptTransfer(moneyBoxAddress, govReward, fromBase58String(withdrawAsset))]
765+ else throw("Strict value is not equal to itself.")
766+ }
746767 }
747768 else throw("Strict value is not equal to itself.")
748769 }
749770 })
750771
751772
752773
753774 @Callable(i)
754775 func exchange (estimatedAmountToReceive,minAmountToReceive) = valueOrElse(isActive(), {
755- let $t03020530280 = $Tuple2(i.payments[0].amount, i.payments[0].assetId)
756- let pmtAmount = $t03020530280._1
757- let pmtAssetId = $t03020530280._2
776+ let $t03040430479 = $Tuple2(i.payments[0].amount, i.payments[0].assetId)
777+ let pmtAmount = $t03040430479._1
778+ let pmtAssetId = $t03040430479._2
758779 if ((0 >= estimatedAmountToReceive))
759780 then throw(("Estimated amount must be positive. Actual: " + toString(estimatedAmountToReceive)))
760781 else if ((minAmountToReceive > estimatedAmountToReceive))
761782 then throw("Minimal amount can't be greater than estimated.")
762783 else if ((size(i.payments) != 1))
763784 then throwOnePayment()
764785 else if (!(hasEnoughBalance))
765786 then ([ScriptTransfer(i.caller, pmtAmount, pmtAssetId)] ++ suspendSuspicious())
766787 else if (if ((pmtAssetId != assetIdA))
767788 then (pmtAssetId != assetIdB)
768789 else false)
769790 then throwAssets()
770791 else if ((10000000 > pmtAmount))
771792 then throw("Only swap of 10.000000 or more tokens is allowed")
772793 else if (if ((exchangeRatioLimitMin > fraction(scale8, minAmountToReceive, pmtAmount)))
773794 then true
774795 else (fraction(scale8, estimatedAmountToReceive, pmtAmount) > exchangeRatioLimitMax))
775796 then throw("Incorrect args and pmt ratio")
776797 else {
777798 let sendAssetId = if ((pmtAssetId == assetIdA))
778799 then assetIdB
779800 else assetIdA
780801 let amount = calculateSendAmount(estimatedAmountToReceive, minAmountToReceive, pmtAmount, pmtAssetId, balanceA, balanceB, invariant)
781802 let feeDiscount = calculateFeeDiscount(i.originCaller)
782803 let governanceReward = fraction(amount, fraction(feeGovernance, feeDiscount, feeScale6, CEILING), feeScale6)
783804 let amountMinusFee = fraction(amount, (feeScale6 - fraction(fee, feeDiscount, feeScale6, CEILING)), feeScale6)
784- let $t03176432026 = if ((pmtAssetId == assetIdA))
805+ let $t03196332225 = if ((pmtAssetId == assetIdA))
785806 then $Tuple2((balanceA + pmtAmount), ((balanceB - amountMinusFee) - governanceReward))
786807 else $Tuple2(((balanceA - amountMinusFee) - governanceReward), (balanceB + pmtAmount))
787- let newBalanceA = $t03176432026._1
788- let newBalanceB = $t03176432026._2
789- let dAppThresholdAmount = fraction((newBalanceA + newBalanceB), dAppThreshold, (2 * dAppThresholdScale2))
790- if (if ((dAppThresholdAmount > newBalanceA))
791- then true
792- else (dAppThresholdAmount > newBalanceB))
793- then throwThreshold(dAppThresholdAmount, newBalanceA, newBalanceB)
808+ let newBalanceA = $t03196332225._1
809+ let newBalanceB = $t03196332225._2
810+ if (!(checkDAppThreshold(newBalanceA, newBalanceB, pmtAssetId)))
811+ then throw()
794812 else {
795- let $t03232532398 = getAssetInfo(pmtAssetId)
796- let pmtStrAssetId = $t03232532398._1
797- let pmtAssetName = $t03232532398._2
798- let pmtDecimals = $t03232532398._3
799- let $t03241132488 = getAssetInfo(sendAssetId)
800- let sendStrAssetId = $t03241132488._1
801- let sendAssetName = $t03241132488._2
802- let sendDecimals = $t03241132488._3
813+ let $t03232332396 = getAssetInfo(pmtAssetId)
814+ let pmtStrAssetId = $t03232332396._1
815+ let pmtAssetName = $t03232332396._2
816+ let pmtDecimals = $t03232332396._3
817+ let $t03240532482 = getAssetInfo(sendAssetId)
818+ let sendStrAssetId = $t03240532482._1
819+ let sendAssetName = $t03240532482._2
820+ let sendDecimals = $t03240532482._3
803821 let stake1 = if (contains(stakingAssets, pmtStrAssetId))
804822 then invoke(this, "stakeUnstake", [true, pmtAmount, pmtStrAssetId], nil)
805823 else 0
806824 if ((stake1 == stake1))
807825 then {
808826 let stake2 = if (contains(stakingAssets, sendStrAssetId))
809827 then invoke(this, "stakeUnstake", [false, (amountMinusFee + governanceReward), sendStrAssetId], nil)
810828 else 0
811829 if ((stake2 == stake2))
812830 then $Tuple2([IntegerEntry(kBalanceA, newBalanceA), IntegerEntry(kBalanceB, newBalanceB), IntegerEntry(kInvariant, invariantCalc(newBalanceA, newBalanceB)), ScriptTransfer(i.caller, amountMinusFee, sendAssetId), ScriptTransfer(moneyBoxAddress, governanceReward, sendAssetId)], [amountMinusFee, sendAssetId])
813831 else throw("Strict value is not equal to itself.")
814832 }
815833 else throw("Strict value is not equal to itself.")
816834 }
817835 }
818836 })
819837
820838
821839
822840 @Callable(msg)
823841 func reissueShare (amount) = valueOrElse(isSelfCall(msg), [Reissue(shareAssetId, amount, true)])
824842
825843
826844
827845 @Callable(i)
828846 func shutdown () = valueOrElse(isAdminCall(i), if (!(active))
829847 then throw(("DApp is already suspended. Cause: " + valueOrElse(getString(this, kCause), "the cause wasn't specified")))
830848 else suspend("Paused by admin"))
831849
832850
833851
834852 @Callable(i)
835853 func activate () = valueOrElse(isAdminCall(i), if (active)
836854 then throwIsActive()
837855 else [BooleanEntry(kActive, true), DeleteEntry(kCause)])
838856
839857
840858
841859 @Callable(i)
842860 func takeIntoAccountExtraFunds () = valueOrElse(isActive(), {
843- let amountEnrollA = (accountBalanceWithStakedA - balanceA)
844- let amountEnrollB = (accountBalanceWithStakedB - balanceB)
845- let invariantNew = invariantCalc((balanceA + amountEnrollA), (balanceB + amountEnrollB))
846- if ((i.caller != moneyBoxAddress))
847- then throw("Only the money box can call this function")
848- else if (if ((0 > amountEnrollA))
849- then true
850- else (0 > amountEnrollB))
851- then suspend("Enroll amount negative")
852- else if (if ((amountEnrollA == 0))
853- then (amountEnrollB == 0)
854- else false)
855- then throw("No money to take")
856- else {
857- let stake1 = if (if (contains(stakingAssets, strAssetIdA))
858- then (amountEnrollA > 0)
861+ let claim = if (if ((assetIdA == USDN))
862+ then true
863+ else (assetIdB == USDN))
864+ then invoke(stakingUSDNAddress, "claimRewards", nil, nil)
865+ else 0
866+ if ((claim == claim))
867+ then {
868+ let amountEnrollA = (accountBalanceWithStakedA - balanceA)
869+ let amountEnrollB = (accountBalanceWithStakedB - balanceB)
870+ let invariantNew = invariantCalc((balanceA + amountEnrollA), (balanceB + amountEnrollB))
871+ if ((i.caller != moneyBoxAddress))
872+ then throw("Only the money box can call this function")
873+ else if (if ((0 > amountEnrollA))
874+ then true
875+ else (0 > amountEnrollB))
876+ then suspend("Enroll amount negative")
877+ else if (if ((amountEnrollA == 0))
878+ then (amountEnrollB == 0)
859879 else false)
860- then invoke(this, "stakeUnstake", [true, amountEnrollA, strAssetIdA], nil)
861- else 0
862- if ((stake1 == stake1))
863- then {
864- let stake2 = if (if (contains(stakingAssets, strAssetIdB))
865- then (amountEnrollB > 0)
880+ then throw("No money to take")
881+ else {
882+ let stake1 = if (if (contains(stakingAssets, strAssetIdA))
883+ then (amountEnrollA > 0)
866884 else false)
867- then invoke(this, "stakeUnstake", [true, amountEnrollB, strAssetIdB], nil)
885+ then invoke(this, "stakeUnstake", [true, amountEnrollA, strAssetIdA], nil)
868886 else 0
869- if ((stake2 == stake2))
870- then [IntegerEntry(kInvariant, invariantNew), IntegerEntry(kBalanceA, (balanceA + amountEnrollA)), IntegerEntry(kBalanceB, (balanceB + amountEnrollB))]
887+ if ((stake1 == stake1))
888+ then {
889+ let stake2 = if (if (contains(stakingAssets, strAssetIdB))
890+ then (amountEnrollB > 0)
891+ else false)
892+ then invoke(this, "stakeUnstake", [true, amountEnrollB, strAssetIdB], nil)
893+ else 0
894+ if ((stake2 == stake2))
895+ then [IntegerEntry(kInvariant, invariantNew), IntegerEntry(kBalanceA, (balanceA + amountEnrollA)), IntegerEntry(kBalanceB, (balanceB + amountEnrollB))]
896+ else throw("Strict value is not equal to itself.")
897+ }
871898 else throw("Strict value is not equal to itself.")
872899 }
873- else throw("Strict value is not equal to itself.")
874- }
900+ }
901+ else throw("Strict value is not equal to itself.")
875902 })
876903
877904
878905
879906 @Callable(i)
880907 func keepLimitForFirstHarvest (shareLimit) = valueOrElse(isActive(), valueOrElse(isAdminCall(i), [IntegerEntry(kShareLimit, shareLimit)]))
881908
882909
883910
884911 @Callable(i)
885912 func stakeUnstake (stake,amount,assetIdString) = if ((i.caller != this))
886913 then throw("Only contract itself can invoke this function")
887914 else {
888- let $t03579035893 = calcStakingParams(stake, amount, fromBase58String(assetIdString))
889- let call = $t03579035893._1
890- let addr = $t03579035893._2
891- let params = $t03579035893._3
892- let payments = $t03579035893._4
915+ let $t03584535948 = calcStakingParams(stake, amount, fromBase58String(assetIdString))
916+ let call = $t03584535948._1
917+ let addr = $t03584535948._2
918+ let params = $t03584535948._3
919+ let payments = $t03584535948._4
893920 let inv = invoke(addr, call, params, payments)
894921 if ((inv == inv))
895922 then nil
896923 else throw("Strict value is not equal to itself.")
897924 }
898925
899926
900927
901928 @Callable(i)
902929 func replenishWithTwoTokens () = valueOrElse(isActive(), replenishWithTwoTokensCalc(i, false, 0))
903930
904931
905932
906933 @Callable(i)
907934 func replenishWithOneToken (virtualSwapTokenPay,virtualSwapTokenGet) = valueOrElse(isActive(), replenishWithOneTokenCalc(i, virtualSwapTokenPay, virtualSwapTokenGet, false, 0))
908935
909936
910937
911938 @Callable(i)
912939 func withdraw () = valueOrElse(isActive(), withdrawCalc(i, 0))
913940
914941
915942 @Verifier(tx)
916943 func verify () = {
917944 let multiSignedByAdmins = {
918945 let adminPubKey1Signed = if (sigVerify(tx.bodyBytes, tx.proofs[0], adminPubKey1))
919946 then 1
920947 else 0
921948 let adminPubKey2Signed = if (sigVerify(tx.bodyBytes, tx.proofs[1], adminPubKey2))
922949 then 1
923950 else 0
924951 let adminPubKey3Signed = if (sigVerify(tx.bodyBytes, tx.proofs[2], adminPubKey3))
925952 then 1
926953 else 0
927954 (((adminPubKey1Signed + adminPubKey2Signed) + adminPubKey3Signed) >= 2)
928955 }
929956 match tx {
930957 case inv: InvokeScriptTransaction =>
931958 let callTakeIntoAccount = if ((inv.dApp == this))
932959 then (inv.function == "takeIntoAccountExtraFunds")
933960 else false
934961 let signedByAdmin = if (if (if (sigVerify(tx.bodyBytes, tx.proofs[0], adminPubKey1))
935962 then true
936963 else sigVerify(tx.bodyBytes, tx.proofs[0], adminPubKey2))
937964 then true
938965 else sigVerify(tx.bodyBytes, tx.proofs[0], adminPubKey3))
939966 then true
940967 else sigVerify(tx.bodyBytes, tx.proofs[0], adminPubKeyInvoke)
941968 if (if (callTakeIntoAccount)
942969 then signedByAdmin
943970 else false)
944971 then true
945972 else multiSignedByAdmins
946973 case _ =>
947974 multiSignedByAdmins
948975 }
949976 }
950977

github/deemru/w8io/026f985 
231.58 ms