tx · 9NADwe7v2BerZDrNXTSVe7Fry5p5QAm4eFJLgmrV3XCt

3MpygN8qm376tUAHB6mhC5BxG5NKYortiyX:  -0.14000000 Waves

2023.01.19 16:09 [2411854] smart account 3MpygN8qm376tUAHB6mhC5BxG5NKYortiyX > SELF 0.00000000 Waves

{ "type": 13, "id": "9NADwe7v2BerZDrNXTSVe7Fry5p5QAm4eFJLgmrV3XCt", "fee": 14000000, "feeAssetId": null, "timestamp": 1674133724925, "version": 2, "chainId": 84, "sender": "3MpygN8qm376tUAHB6mhC5BxG5NKYortiyX", "senderPublicKey": "BjnLnkAMaJLYAK36vQqSepUNjGeMDHfZGfmdYwGcLbmg", "proofs": [ "4LydYmwtVy7CCnnBXTpSrMsj8JAQaJZrCdHZRvGZqwrrW9WkXdHK7naAcnpuZPg9nWv1JYSH9SmAZG9oReWvVB1K", "48cEwEAk5VuVUa19ryUrvcQK4w3pJx1urJsDsWosHTwP12z6RF5EAD4LVkSVYXiRLiA4YgMkFMuDTUCNr4D7LeD8" ], "script": "base64:BgJJCAISAwoBBBIECgIEARIGCgQBAQQBEgMKAQESBgoEAQgBARIECgIBARIDCgEBEgASABIAEgMKAQESBQoDBAEIEgASBAoCAQESAG0AB3ZlcnNpb24CBTIuMC4wAAhrVmVyc2lvbgIHdmVyc2lvbgAHa0FjdGl2ZQIGYWN0aXZlAAtrQWN0aXZlR2xvYgIUYWN0aXZlX2FsbF9jb250cmFjdHMAC2tEZXByZWNhdGVkAgtkZXByZWNhdGVkXwAJa0Fzc2V0SWRBAgpBX2Fzc2V0X2lkAAlrQXNzZXRJZEICCkJfYXNzZXRfaWQACWtCYWxhbmNlQQIPQV9hc3NldF9iYWxhbmNlAAlrQmFsYW5jZUICD0JfYXNzZXRfYmFsYW5jZQANa1NoYXJlQXNzZXRJZAIOc2hhcmVfYXNzZXRfaWQAEWtTaGFyZUFzc2V0U3VwcGx5AhJzaGFyZV9hc3NldF9zdXBwbHkABGtGZWUCCmNvbW1pc3Npb24ACmtJ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aW52CGZ1bmN0aW9uAhl0YWtlSW50b0FjY291bnRFeHRyYUZ1bmRzBwQNc2lnbmVkQnlBZG1pbgMDAwkA9AMDCAUCdHgJYm9keUJ5dGVzCQCRAwIIBQJ0eAZwcm9vZnMAAAUMYWRtaW5QdWJLZXkxBgkA9AMDCAUCdHgJYm9keUJ5dGVzCQCRAwIIBQJ0eAZwcm9vZnMAAAUMYWRtaW5QdWJLZXkyBgkA9AMDCAUCdHgJYm9keUJ5dGVzCQCRAwIIBQJ0eAZwcm9vZnMAAAUMYWRtaW5QdWJLZXkzBgkA9AMDCAUCdHgJYm9keUJ5dGVzCQCRAwIIBQJ0eAZwcm9vZnMAAAURYWRtaW5QdWJLZXlJbnZva2UDAwUTY2FsbFRha2VJbnRvQWNjb3VudAUNc2lnbmVkQnlBZG1pbgcGBRNtdWx0aVNpZ25lZEJ5QWRtaW5zBRNtdWx0aVNpZ25lZEJ5QWRtaW5zvhr87A==", "height": 2411854, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: EKSesAnP68WHkuQ7YVvgEicae27p2jtHiVbgJ3s3rZkg Next: DTkeuiaWyQGRdw5pq5R9CRxJB5qk4hxC1egj86hqmBDc Diff:
OldNewDifferences
88 let kActive = "active"
99
1010 let kActiveGlob = "active_all_contracts"
11+
12+let kDeprecated = "deprecated_"
1113
1214 let kAssetIdA = "A_asset_id"
1315
117119
118120 let activeGlob = valueOrElse(getBoolean(oracle, kActiveGlob), true)
119121
122+let deprecatedPool = valueOrElse(getBoolean(oracle, (kDeprecated + toString(this))), false)
123+
120124 let strAssetIdA = getStringValue(this, kAssetIdA)
121125
122126 let strAssetIdB = getStringValue(this, kAssetIdB)
171175
172176 let digits8 = 8
173177
174-let exchangeRatioLimitMin = 80000000
178+let exchangeRatioLimitMin = 60000000
175179
176-let exchangeRatioLimitMax = 120000000
180+let exchangeRatioLimitMax = 140000000
177181
178182 let alpha = 50
179183
335339 else throw("DApp is inactive at this moment")
336340
337341
342+func isDepricated () = if (!(deprecatedPool))
343+ then unit
344+ else throw("Pool is deprecated. Only withdraw action allowed.")
345+
346+
338347 func isAdminCall (i) = if (containsElement([adminPubKey1, adminPubKey2, adminPubKey3], i.callerPublicKey))
339348 then unit
340349 else throw("Only admin can call this function")
361370
362371 func calcStakingParams (stake,amount,assetId) = if (stake)
363372 then {
364- let $t01020710273 = calcStakingFuncAndAddres(stake, assetId)
365- let call = $t01020710273._1
366- let stakingAddr = $t01020710273._2
373+ let $t01044410510 = calcStakingFuncAndAddres(stake, assetId)
374+ let call = $t01044410510._1
375+ let stakingAddr = $t01044410510._2
367376 $Tuple4(call, stakingAddr, nil, [AttachedPayment(assetId, amount)])
368377 }
369378 else {
370- let $t01035910425 = calcStakingFuncAndAddres(stake, assetId)
371- let call = $t01035910425._1
372- let stakingAddr = $t01035910425._2
379+ let $t01059610662 = calcStakingFuncAndAddres(stake, assetId)
380+ let call = $t01059610662._1
381+ let stakingAddr = $t01059610662._2
373382 $Tuple4(call, stakingAddr, [amount, toBase58String(assetId)], nil)
374383 }
375384
414423 else 0
415424 if ((ratio > dAppThreshold))
416425 then {
417- let $t01217012278 = if ((pmtAssetId == assetIdA))
426+ let $t01240712515 = if ((pmtAssetId == assetIdA))
418427 then $Tuple2(assetNameB, assetNameA)
419428 else $Tuple2(assetNameA, assetNameB)
420- let token1 = $t01217012278._1
421- let token2 = $t01217012278._2
429+ let token1 = $t01240712515._1
430+ let token2 = $t01240712515._2
422431 throw((((("Buying " + token1) + " is temporarily unavailable due to the ") + token2) + " depeg"))
423432 }
424433 else true
430439 let pmtAssetIdB = i.payments[1].assetId
431440 let ratioShareTokensInA = fraction(scale8, i.payments[0].amount, balanceA)
432441 let ratioShareTokensInB = fraction(scale8, i.payments[1].amount, balanceB)
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))
442+ let $t01297513052 = getAssetInfo(pmtAssetIdA)
443+ let pmtStrAssetIdA = $t01297513052._1
444+ let pmtAssetNameA = $t01297513052._2
445+ let pmtDecimalsA = $t01297513052._3
446+ let $t01305713174 = getAssetInfo(pmtAssetIdB)
447+ let pmtStrAssetIdB = $t01305713174._1
448+ let pmtAssetNameB = $t01305713174._2
449+ let pmtDecimalsB = $t01305713174._3
450+ let $t01317913683 = if ((ratioShareTokensInB > ratioShareTokensInA))
442451 then {
443452 let pmt = fraction(balanceB, ratioShareTokensInA, scale8, CEILING)
444453 $Tuple5(i.payments[0].amount, pmt, (i.payments[1].amount - pmt), pmtAssetIdB, ratioShareTokensInA)
447456 let pmt = fraction(balanceA, ratioShareTokensInB, scale8, CEILING)
448457 $Tuple5(pmt, i.payments[1].amount, (i.payments[0].amount - pmt), pmtAssetIdA, ratioShareTokensInB)
449458 }
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
459+ let pmtAmountA = $t01317913683._1
460+ let pmtAmountB = $t01317913683._2
461+ let change = $t01317913683._3
462+ let changeAssetId = $t01317913683._4
463+ let shareTokenRatio = $t01317913683._5
455464 let shareTokenToPayAmount = fraction(shareTokenRatio, shareAssetSupply, scale8)
456465 if (if ((size(i.payments) != 2))
457466 then (size(i.payments) != 3)
506515
507516
508517 func replenishWithOneTokenCalc (i,virtualSwapTokenPay,virtualSwapTokenGet,stakeFarming,lockType) = {
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
518+ let $t01607316148 = $Tuple2(i.payments[0].amount, i.payments[0].assetId)
519+ let pmtAmount = $t01607316148._1
520+ let pmtAssetId = $t01607316148._2
521+ let $t01615316226 = getAssetInfo(pmtAssetId)
522+ let pmtStrAssetId = $t01615316226._1
523+ let pmtAssetName = $t01615316226._2
524+ let pmtDecimals = $t01615316226._3
516525 let pmtMinThreshold = 5000000
517526 let thresholdValueForMinTolerance = 50000000
518527 let tolerance = if ((thresholdValueForMinTolerance > pmtAmount))
534543 else false)
535544 then throwAssets()
536545 else {
537- let $t01699117633 = if ((pmtAssetId == assetIdA))
546+ let $t01722817870 = if ((pmtAssetId == assetIdA))
538547 then $Tuple6((pmtAmount - virtualSwapTokenPay), virtualSwapTokenGet, (balanceA + virtualSwapTokenPay), (balanceB - virtualSwapTokenGet), (balanceA + pmtAmount), balanceB)
539548 else $Tuple6(virtualSwapTokenGet, (pmtAmount - virtualSwapTokenPay), (balanceA - virtualSwapTokenGet), (balanceB + virtualSwapTokenPay), balanceA, (balanceB + pmtAmount))
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
549+ let virtualReplenishA = $t01722817870._1
550+ let virtualReplenishB = $t01722817870._2
551+ let balanceAfterSwapA = $t01722817870._3
552+ let balanceAfterSwapB = $t01722817870._4
553+ let newBalanceA = $t01722817870._5
554+ let newBalanceB = $t01722817870._6
546555 let invariantNew = invariantCalc(balanceAfterSwapA, balanceAfterSwapB)
547556 let ratioVirtualBalanceToVirtualReplenish = (fraction(scale16, balanceAfterSwapA, balanceAfterSwapB) / fraction(scale8, virtualReplenishA, virtualReplenishB))
548557 if (if ((slippageValueMinForSwap >= fraction(scale8, invariant, invariantNew)))
563572 let shareTokenGovernanceReward = fraction(shareTokenToPayAmount, (feeGovernance / 2), feeScale6)
564573 let governanceRewardTokenA = fraction(shareTokenGovernanceReward, balanceA, shareAssetSupply)
565574 let governanceRewardTokenB = fraction(shareTokenGovernanceReward, balanceB, shareAssetSupply)
566- let $t01938419667 = if ((pmtStrAssetId == strAssetIdA))
575+ let $t01962119904 = if ((pmtStrAssetId == strAssetIdA))
567576 then $Tuple3((pmtAmount - governanceRewardTokenA), governanceRewardTokenB, strAssetIdB)
568577 else $Tuple3((pmtAmount - governanceRewardTokenB), governanceRewardTokenA, strAssetIdA)
569- let stakeAmount = $t01938419667._1
570- let unstakeAmount = $t01938419667._2
571- let unstakeAsset = $t01938419667._3
578+ let stakeAmount = $t01962119904._1
579+ let unstakeAmount = $t01962119904._2
580+ let unstakeAsset = $t01962119904._3
572581 let stake1 = if (contains(stakingAssets, pmtStrAssetId))
573582 then invoke(this, "stakeUnstake", [true, stakeAmount, pmtStrAssetId], nil)
574583 else 0
608617
609618
610619 func withdrawCalc (i,unlockAmount) = {
611- let $t02151621851 = if ((size(i.payments) == 1))
620+ let $t02175322088 = if ((size(i.payments) == 1))
612621 then if ((i.payments[0].assetId != shareAssetId))
613622 then throw(("Incorrect asset attached. Expected: " + toBase58String(shareAssetId)))
614623 else $Tuple2(i.payments[0].amount, i.payments[0].assetId)
615624 else $Tuple2(0, shareAssetId)
616- let pmtAmount = $t02151621851._1
617- let pmtAssetId = $t02151621851._2
625+ let pmtAmount = $t02175322088._1
626+ let pmtAssetId = $t02175322088._2
618627 if (!(hasEnoughBalance))
619628 then ([ScriptTransfer(i.caller, pmtAmount, pmtAssetId)] ++ suspendSuspicious())
620629 else {
648657
649658 @Callable(i)
650659 func init (firstHarvest) = {
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
660+ let $t02364023717 = $Tuple2(i.payments[0].amount, i.payments[0].assetId)
661+ let pmtAmountA = $t02364023717._1
662+ let pmtAssetIdA = $t02364023717._2
663+ let $t02372223799 = $Tuple2(i.payments[1].amount, i.payments[1].assetId)
664+ let pmtAmountB = $t02372223799._1
665+ let pmtAssetIdB = $t02372223799._2
666+ let $t02380423881 = getAssetInfo(pmtAssetIdA)
667+ let pmtStrAssetIdA = $t02380423881._1
668+ let pmtAssetNameA = $t02380423881._2
669+ let pmtDecimalsA = $t02380423881._3
670+ let $t02388623963 = getAssetInfo(pmtAssetIdB)
671+ let pmtStrAssetIdB = $t02388623963._1
672+ let pmtAssetNameB = $t02388623963._2
673+ let pmtDecimalsB = $t02388623963._3
665674 if (isDefined(getBoolean(this, kActive)))
666675 then throwIsActive()
667676 else if ((pmtAssetIdA == pmtAssetIdB))
698707
699708
700709 @Callable(i)
701-func replenishWithTwoTokensV2 (stakeFarming,lockType) = valueOrElse(isActive(), replenishWithTwoTokensCalc(i, stakeFarming, lockType))
710+func replenishWithTwoTokensV2 (stakeFarming,lockType) = valueOrElse(isActive(), valueOrElse(isDepricated(), replenishWithTwoTokensCalc(i, stakeFarming, lockType)))
702711
703712
704713
705714 @Callable(i)
706-func replenishWithOneTokenV2 (virtualSwapTokenPay,virtualSwapTokenGet,stakeFarming,lockType) = valueOrElse(isActive(), replenishWithOneTokenCalc(i, virtualSwapTokenPay, virtualSwapTokenGet, stakeFarming, lockType))
715+func replenishWithOneTokenV2 (virtualSwapTokenPay,virtualSwapTokenGet,stakeFarming,lockType) = valueOrElse(isActive(), valueOrElse(isDepricated(), replenishWithOneTokenCalc(i, virtualSwapTokenPay, virtualSwapTokenGet, stakeFarming, lockType)))
707716
708717
709718
713722
714723
715724 @Callable(i)
716-func withdrawOneToken (unlockAmount,withdrawAsset,estimatedAmountToReceive,minAmountToReceive) = valueOrElse(isActive(), {
717- let $t02714127476 = if ((size(i.payments) == 1))
725+func withdrawOneToken (unlockAmount,withdrawAsset,estimatedAmountToReceive,minAmountToReceive) = valueOrElse(isActive(), valueOrElse(isDepricated(), {
726+ let $t02752527884 = if ((size(i.payments) == 1))
718727 then if ((i.payments[0].assetId != shareAssetId))
719728 then throw(("Incorrect asset attached. Expected: " + toBase58String(shareAssetId)))
720729 else $Tuple2(i.payments[0].amount, i.payments[0].assetId)
721730 else $Tuple2(0, shareAssetId)
722- let pmtAmount = $t02714127476._1
723- let pmtAssetId = $t02714127476._2
731+ let pmtAmount = $t02752527884._1
732+ let pmtAssetId = $t02752527884._2
724733 let withdrawAmount = (pmtAmount + unlockAmount)
725734 if (if ((withdrawAsset != strAssetIdA))
726735 then (withdrawAsset != strAssetIdB)
746755 else calculateSendAmount(estimatedAmountToReceive, minAmountToReceive, amountToPayA, assetIdA, newVirtBalcA, newVirtBalcB, invariantCalc(newVirtBalcA, newVirtBalcB))
747756 let govReward = fraction(amountExchangedWithFee, fraction(feeGovernance, feeDiscount, feeScale6, CEILING), feeScale6)
748757 let amountExchanged = fraction(amountExchangedWithFee, (feeScale6 - fraction(fee, feeDiscount, feeScale6, CEILING)), feeScale6)
749- let $t02907929441 = if ((withdrawAsset == strAssetIdA))
758+ let $t02957529949 = if ((withdrawAsset == strAssetIdA))
750759 then $Tuple4((amountToPayA + amountExchanged), (((balanceA - amountToPayA) - amountExchanged) - govReward), balanceB, assetIdB)
751760 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
761+ let amountToPay = $t02957529949._1
762+ let balanceANew = $t02957529949._2
763+ let balanceBNew = $t02957529949._3
764+ let virtAssetId = $t02957529949._4
756765 if (!(checkDAppThreshold(balanceANew, balanceBNew, virtAssetId)))
757766 then throw()
758767 else {
767776 }
768777 else throw("Strict value is not equal to itself.")
769778 }
770- })
779+ }))
771780
772781
773782
774783 @Callable(i)
775-func exchange (estimatedAmountToReceive,minAmountToReceive) = valueOrElse(isActive(), {
776- let $t03040430479 = $Tuple2(i.payments[0].amount, i.payments[0].assetId)
777- let pmtAmount = $t03040430479._1
778- let pmtAssetId = $t03040430479._2
784+func exchange (estimatedAmountToReceive,minAmountToReceive) = valueOrElse(isActive(), valueOrElse(isDepricated(), {
785+ let $t03101931094 = $Tuple2(i.payments[0].amount, i.payments[0].assetId)
786+ let pmtAmount = $t03101931094._1
787+ let pmtAssetId = $t03101931094._2
779788 if ((0 >= estimatedAmountToReceive))
780789 then throw(("Estimated amount must be positive. Actual: " + toString(estimatedAmountToReceive)))
781790 else if ((minAmountToReceive > estimatedAmountToReceive))
802811 let feeDiscount = calculateFeeDiscount(i.originCaller)
803812 let governanceReward = fraction(amount, fraction(feeGovernance, feeDiscount, feeScale6, CEILING), feeScale6)
804813 let amountMinusFee = fraction(amount, (feeScale6 - fraction(fee, feeDiscount, feeScale6, CEILING)), feeScale6)
805- let $t03196332225 = if ((pmtAssetId == assetIdA))
814+ let $t03269032968 = if ((pmtAssetId == assetIdA))
806815 then $Tuple2((balanceA + pmtAmount), ((balanceB - amountMinusFee) - governanceReward))
807816 else $Tuple2(((balanceA - amountMinusFee) - governanceReward), (balanceB + pmtAmount))
808- let newBalanceA = $t03196332225._1
809- let newBalanceB = $t03196332225._2
817+ let newBalanceA = $t03269032968._1
818+ let newBalanceB = $t03269032968._2
810819 if (!(checkDAppThreshold(newBalanceA, newBalanceB, pmtAssetId)))
811820 then throw()
812821 else {
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
822+ let $t03307433147 = getAssetInfo(pmtAssetId)
823+ let pmtStrAssetId = $t03307433147._1
824+ let pmtAssetName = $t03307433147._2
825+ let pmtDecimals = $t03307433147._3
826+ let $t03316033237 = getAssetInfo(sendAssetId)
827+ let sendStrAssetId = $t03316033237._1
828+ let sendAssetName = $t03316033237._2
829+ let sendDecimals = $t03316033237._3
821830 let stake1 = if (contains(stakingAssets, pmtStrAssetId))
822831 then invoke(this, "stakeUnstake", [true, pmtAmount, pmtStrAssetId], nil)
823832 else 0
833842 else throw("Strict value is not equal to itself.")
834843 }
835844 }
836- })
845+ }))
837846
838847
839848
912921 func stakeUnstake (stake,amount,assetIdString) = if ((i.caller != this))
913922 then throw("Only contract itself can invoke this function")
914923 else {
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
924+ let $t03688936992 = calcStakingParams(stake, amount, fromBase58String(assetIdString))
925+ let call = $t03688936992._1
926+ let addr = $t03688936992._2
927+ let params = $t03688936992._3
928+ let payments = $t03688936992._4
920929 let inv = invoke(addr, call, params, payments)
921930 if ((inv == inv))
922931 then nil
926935
927936
928937 @Callable(i)
929-func replenishWithTwoTokens () = valueOrElse(isActive(), replenishWithTwoTokensCalc(i, false, 0))
938+func replenishWithTwoTokens () = valueOrElse(isActive(), valueOrElse(isDepricated(), replenishWithTwoTokensCalc(i, false, 0)))
930939
931940
932941
933942 @Callable(i)
934-func replenishWithOneToken (virtualSwapTokenPay,virtualSwapTokenGet) = valueOrElse(isActive(), replenishWithOneTokenCalc(i, virtualSwapTokenPay, virtualSwapTokenGet, false, 0))
943+func replenishWithOneToken (virtualSwapTokenPay,virtualSwapTokenGet) = valueOrElse(isActive(), valueOrElse(isDepricated(), replenishWithOneTokenCalc(i, virtualSwapTokenPay, virtualSwapTokenGet, false, 0)))
935944
936945
937946
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"
11+
12+let kDeprecated = "deprecated_"
1113
1214 let kAssetIdA = "A_asset_id"
1315
1416 let kAssetIdB = "B_asset_id"
1517
1618 let kBalanceA = "A_asset_balance"
1719
1820 let kBalanceB = "B_asset_balance"
1921
2022 let kShareAssetId = "share_asset_id"
2123
2224 let kShareAssetSupply = "share_asset_supply"
2325
2426 let kFee = "commission"
2527
2628 let kInvariant = "invariant"
2729
2830 let kCause = "shutdown_cause"
2931
3032 let kUSDNAddress = "staking_usdnnsbt_address"
3133
3234 let kEURNAddress = "staking_eurn_address"
3335
3436 let kDiscounts = "discounts"
3537
3638 let kDiscountValues = "discount_values"
3739
3840 let kUserSwopInGov = "_SWOP_amount"
3941
4042 let kUserGSwopInGov = "_GSwop_amount"
4143
4244 let kFirstHarvest = "first_harvest"
4345
4446 let kFirstHarvestHeight = "first_harvest_height"
4547
4648 let kShareLimit = "share_limit_on_first_harvest"
4749
4850 let kBasePeriod = "base_period"
4951
5052 let kPeriodLength = "period_length"
5153
5254 let kStartHeight = "start_height"
5355
5456 let kDAppThreshold = "dApp_threshold"
5557
5658 let kAdminPubKey1 = "admin_pub_1"
5759
5860 let kAdminPubKey2 = "admin_pub_2"
5961
6062 let kAdminPubKey3 = "admin_pub_3"
6163
6264 let kAdminInvokePubKey = "admin_invoke_pub"
6365
6466 let kMoneyBoxAddress = "money_box_address"
6567
6668 let kGovAddress = "governance_address"
6769
6870 let kFarmingAddress = "farming_address"
6971
7072 let kVotingAddress = "voting_address"
7173
7274 let kUSDNAssetId = "usdn_asset_id"
7375
7476 let kStakingAssets = "staking_assets"
7577
7678 let oracle = Address(base58'3MvVBtsXroQpy1tsPw21TU2ET9A8WfmrNjz')
7779
7880 func getBase58FromOracle (key) = match getString(oracle, key) {
7981 case string: String =>
8082 fromBase58String(string)
8183 case nothing =>
8284 throw((key + "is empty"))
8385 }
8486
8587
8688 let adminPubKey1 = getBase58FromOracle(kAdminPubKey1)
8789
8890 let adminPubKey2 = getBase58FromOracle(kAdminPubKey2)
8991
9092 let adminPubKey3 = getBase58FromOracle(kAdminPubKey3)
9193
9294 let adminPubKeyInvoke = getBase58FromOracle(kAdminInvokePubKey)
9395
9496 let moneyBoxAddress = Address(getBase58FromOracle(kMoneyBoxAddress))
9597
9698 let govAddress = Address(getBase58FromOracle(kGovAddress))
9799
98100 let stakingUSDNAddress = Address(getBase58FromOracle(kUSDNAddress))
99101
100102 let votingAddress = Address(getBase58FromOracle(kVotingAddress))
101103
102104 let farmingAddress = Address(getBase58FromOracle(kFarmingAddress))
103105
104106 let USDN = getBase58FromOracle(kUSDNAssetId)
105107
106108 let stakingAssets = getStringValue(oracle, kStakingAssets)
107109
108110 let basePeriod = valueOrErrorMessage(getInteger(votingAddress, kBasePeriod), "Empty kBasePeriod")
109111
110112 let startHeight = valueOrErrorMessage(getInteger(votingAddress, kStartHeight), "Empty kStartHeight")
111113
112114 let periodLength = valueOrErrorMessage(getInteger(votingAddress, kPeriodLength), "Empty kPeriodLength")
113115
114116 let firstHarvestEndPeriod = ((basePeriod + ((height - startHeight) / periodLength)) + 3)
115117
116118 let active = getBooleanValue(this, kActive)
117119
118120 let activeGlob = valueOrElse(getBoolean(oracle, kActiveGlob), true)
119121
122+let deprecatedPool = valueOrElse(getBoolean(oracle, (kDeprecated + toString(this))), false)
123+
120124 let strAssetIdA = getStringValue(this, kAssetIdA)
121125
122126 let strAssetIdB = getStringValue(this, kAssetIdB)
123127
124128 let assetIdA = if ((strAssetIdA == "WAVES"))
125129 then unit
126130 else fromBase58String(strAssetIdA)
127131
128132 let assetIdB = if ((strAssetIdB == "WAVES"))
129133 then unit
130134 else fromBase58String(strAssetIdB)
131135
132136 let assetNameA = match assetIdA {
133137 case id: ByteVector =>
134138 value(assetInfo(id)).name
135139 case waves: Unit =>
136140 "WAVES"
137141 case _ =>
138142 throw("Match error")
139143 }
140144
141145 let assetNameB = match assetIdB {
142146 case id: ByteVector =>
143147 value(assetInfo(id)).name
144148 case waves: Unit =>
145149 "WAVES"
146150 case _ =>
147151 throw("Match error")
148152 }
149153
150154 let balanceA = getIntegerValue(this, kBalanceA)
151155
152156 let balanceB = getIntegerValue(this, kBalanceB)
153157
154158 let shareAssetId = fromBase58String(getStringValue(this, kShareAssetId))
155159
156160 let shareAssetSupply = getIntegerValue(this, kShareAssetSupply)
157161
158162 let invariant = getIntegerValue(this, kInvariant)
159163
160164 let fee = getIntegerValue(this, kFee)
161165
162166 let feeGovernance = fraction(fee, 40, 100)
163167
164168 let feeScale6 = 1000000
165169
166170 let scale3 = 1000
167171
168172 let scale8 = 100000000
169173
170174 let scale16 = 10000000000000000
171175
172176 let digits8 = 8
173177
174-let exchangeRatioLimitMin = 80000000
178+let exchangeRatioLimitMin = 60000000
175179
176-let exchangeRatioLimitMax = 120000000
180+let exchangeRatioLimitMax = 140000000
177181
178182 let alpha = 50
179183
180184 let alphaDigits = 2
181185
182186 let beta = 4600000000000000
183187
184188 func accountBalance (assetId) = match assetId {
185189 case id: ByteVector =>
186190 assetBalance(this, id)
187191 case waves: Unit =>
188192 wavesBalance(this).available
189193 case _ =>
190194 throw("Match error")
191195 }
192196
193197
194198 func stakedAmount (assetId) = {
195199 let stakedAmountCalculated = match assetId {
196200 case aId: ByteVector =>
197201 if ((aId == USDN))
198202 then getInteger(stakingUSDNAddress, ((("rpd_balance_" + toBase58String(aId)) + "_") + toString(this)))
199203 else 0
200204 case _: Unit =>
201205 0
202206 case _ =>
203207 throw("Match error")
204208 }
205209 match stakedAmountCalculated {
206210 case i: Int =>
207211 i
208212 case _ =>
209213 0
210214 }
211215 }
212216
213217
214218 let stakedAmountA = stakedAmount(assetIdA)
215219
216220 let stakedAmountB = stakedAmount(assetIdB)
217221
218222 let availableBalanceA = (balanceA - stakedAmountA)
219223
220224 let availableBalanceB = (balanceB - stakedAmountB)
221225
222226 let accountBalanceWithStakedA = (accountBalance(assetIdA) + stakedAmountA)
223227
224228 let accountBalanceWithStakedB = (accountBalance(assetIdB) + stakedAmountB)
225229
226230 let hasEnoughBalance = if ((accountBalanceWithStakedA >= balanceA))
227231 then (accountBalanceWithStakedB >= balanceB)
228232 else false
229233
230234 func skewness (x,y) = ((fraction(scale16, x, y) + fraction(scale16, y, x)) / 2)
231235
232236
233237 func invariantCalc (x,y) = {
234238 let sk = skewness(x, y)
235239 (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)))
236240 }
237241
238242
239243 func calculateSendAmount (amountToSendEstimated,minTokenReceiveAmount,tokenReceiveAmount,tokenId,balcA,balcB,invCur) = {
240244 let worstAllowedNewInvariantRatio = (scale16 - ((scale16 * 1) / 10000000))
241245 let deltaBetweenMaxAndMinSendValue = (amountToSendEstimated - minTokenReceiveAmount)
242246 let x = (balcA + tokenReceiveAmount)
243247 let y = (balcB + tokenReceiveAmount)
244248 func getStepAmount (acc,step) = if ((acc._1 == -1))
245249 then {
246250 let amountToSend = (amountToSendEstimated - (((step * deltaBetweenMaxAndMinSendValue) / 3) / scale3))
247251 let stepInvariant = if ((tokenId == assetIdA))
248252 then invariantCalc(x, (balcB - amountToSend))
249253 else invariantCalc((balcA - amountToSend), y)
250254 if ((stepInvariant > invCur))
251255 then $Tuple2(amountToSend, stepInvariant)
252256 else $Tuple2(-1, 0)
253257 }
254258 else acc
255259
256260 let amountToSendMin = getStepAmount($Tuple2(-1, 0), 3000)
257261 if ((0 > amountToSendMin._1))
258262 then throw("Price is worse than minReceived")
259263 else {
260264 let invEstimated = if ((tokenId == assetIdA))
261265 then invariantCalc(x, (balcB - amountToSendEstimated))
262266 else if ((tokenId == assetIdB))
263267 then invariantCalc((balcA - amountToSendEstimated), y)
264268 else throw("Wrong asset in payment")
265269 if ((invCur > invEstimated))
266270 then if ((worstAllowedNewInvariantRatio >= fraction(scale16, invCur, invEstimated)))
267271 then throw("The requested price is too not profitable for user")
268272 else {
269273 let a = {
270274 let $l = [25, 200, 500]
271275 let $s = size($l)
272276 let $acc0 = $Tuple2(-1, 0)
273277 func $f0_1 ($a,$i) = if (($i >= $s))
274278 then $a
275279 else getStepAmount($a, $l[$i])
276280
277281 func $f0_2 ($a,$i) = if (($i >= $s))
278282 then $a
279283 else throw("List size exceeds 3")
280284
281285 $f0_2($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3)
282286 }
283287 if ((0 > a._1))
284288 then amountToSendMin._1
285289 else a._1
286290 }
287291 else {
288292 let a = {
289293 let $l = [-500, -200, -25]
290294 let $s = size($l)
291295 let $acc0 = $Tuple2(-1, 0)
292296 func $f0_1 ($a,$i) = if (($i >= $s))
293297 then $a
294298 else getStepAmount($a, $l[$i])
295299
296300 func $f0_2 ($a,$i) = if (($i >= $s))
297301 then $a
298302 else throw("List size exceeds 3")
299303
300304 $f0_2($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3)
301305 }
302306 let tupleSendBetter = if ((0 > a._1))
303307 then $Tuple2(amountToSendEstimated, invEstimated)
304308 else a
305309 if ((worstAllowedNewInvariantRatio >= fraction(scale16, invCur, tupleSendBetter._2)))
306310 then throw("The requested price is too not profitable for user")
307311 else tupleSendBetter._1
308312 }
309313 }
310314 }
311315
312316
313317 func getAssetInfo (assetId) = match assetId {
314318 case id: ByteVector =>
315319 let stringId = toBase58String(id)
316320 let info = valueOrErrorMessage(assetInfo(id), (("Asset " + stringId) + " doesn't exist"))
317321 $Tuple3(stringId, info.name, info.decimals)
318322 case waves: Unit =>
319323 $Tuple3("WAVES", "WAVES", 8)
320324 case _ =>
321325 throw("Match error")
322326 }
323327
324328
325329 func suspend (cause) = [BooleanEntry(kActive, false), StringEntry(kCause, cause)]
326330
327331
328332 func throwIsActive () = throw("DApp is already active")
329333
330334
331335 func isActive () = if (if (active)
332336 then activeGlob
333337 else false)
334338 then unit
335339 else throw("DApp is inactive at this moment")
336340
337341
342+func isDepricated () = if (!(deprecatedPool))
343+ then unit
344+ else throw("Pool is deprecated. Only withdraw action allowed.")
345+
346+
338347 func isAdminCall (i) = if (containsElement([adminPubKey1, adminPubKey2, adminPubKey3], i.callerPublicKey))
339348 then unit
340349 else throw("Only admin can call this function")
341350
342351
343352 func isSelfCall (i) = if ((this == i.caller))
344353 then unit
345354 else throw("Only contract itself can call this function")
346355
347356
348357 func throwAssets () = throw(((("Incorrect assets attached. Expected: " + strAssetIdA) + " and ") + strAssetIdB))
349358
350359
351360 func throwOnePayment () = throw("One attached payment expected")
352361
353362
354363 func suspendSuspicious () = suspend(((((((((((((((("Suspicious state. Actual balances: " + toString(balanceA)) + " ") + assetNameA) + ", ") + toString(balanceB)) + " ") + assetNameB) + ". State: ") + toString(accountBalance(assetIdA))) + " ") + assetNameA) + ", ") + toString(accountBalance(assetIdB))) + " ") + assetNameB))
355364
356365
357366 func calcStakingFuncAndAddres (stake,assetId) = if (stake)
358367 then $Tuple2("lockNeutrino", stakingUSDNAddress)
359368 else $Tuple2("unlockNeutrino", stakingUSDNAddress)
360369
361370
362371 func calcStakingParams (stake,amount,assetId) = if (stake)
363372 then {
364- let $t01020710273 = calcStakingFuncAndAddres(stake, assetId)
365- let call = $t01020710273._1
366- let stakingAddr = $t01020710273._2
373+ let $t01044410510 = calcStakingFuncAndAddres(stake, assetId)
374+ let call = $t01044410510._1
375+ let stakingAddr = $t01044410510._2
367376 $Tuple4(call, stakingAddr, nil, [AttachedPayment(assetId, amount)])
368377 }
369378 else {
370- let $t01035910425 = calcStakingFuncAndAddres(stake, assetId)
371- let call = $t01035910425._1
372- let stakingAddr = $t01035910425._2
379+ let $t01059610662 = calcStakingFuncAndAddres(stake, assetId)
380+ let call = $t01059610662._1
381+ let stakingAddr = $t01059610662._2
373382 $Tuple4(call, stakingAddr, [amount, toBase58String(assetId)], nil)
374383 }
375384
376385
377386 func calculateFeeDiscount (userAddr) = {
378387 let swopAmount = valueOrElse(getInteger(govAddress, (toString(userAddr) + kUserSwopInGov)), 0)
379388 let gSwopAmount = valueOrElse(getInteger(govAddress, (toString(userAddr) + kUserGSwopInGov)), swopAmount)
380389 let discountValues = split(getStringValue(oracle, kDiscountValues), ",")
381390 let discounts = split(getStringValue(oracle, kDiscounts), ",")
382391 if (if ((gSwopAmount >= parseIntValue(discountValues[0])))
383392 then (parseIntValue(discountValues[1]) > gSwopAmount)
384393 else false)
385394 then (feeScale6 - parseIntValue(discounts[0]))
386395 else if (if ((gSwopAmount >= parseIntValue(discountValues[1])))
387396 then (parseIntValue(discountValues[2]) > gSwopAmount)
388397 else false)
389398 then (feeScale6 - parseIntValue(discounts[1]))
390399 else if (if ((gSwopAmount >= parseIntValue(discountValues[2])))
391400 then (parseIntValue(discountValues[3]) > gSwopAmount)
392401 else false)
393402 then (feeScale6 - parseIntValue(discounts[2]))
394403 else if (if ((gSwopAmount >= parseIntValue(discountValues[3])))
395404 then (parseIntValue(discountValues[4]) > gSwopAmount)
396405 else false)
397406 then (feeScale6 - parseIntValue(discounts[3]))
398407 else if ((gSwopAmount >= parseIntValue(discountValues[4])))
399408 then (feeScale6 - parseIntValue(discounts[4]))
400409 else feeScale6
401410 }
402411
403412
404413 func checkDAppThreshold (newBalanceA,newBalanceB,pmtAssetId) = {
405414 let dAppThreshold = getIntegerValue(this, kDAppThreshold)
406415 let ratio = if (if ((pmtAssetId == assetIdA))
407416 then (newBalanceA > newBalanceB)
408417 else false)
409418 then fraction(newBalanceA, 1, newBalanceB, CEILING)
410419 else if (if ((pmtAssetId == assetIdB))
411420 then (newBalanceB > newBalanceA)
412421 else false)
413422 then fraction(newBalanceB, 1, newBalanceA, CEILING)
414423 else 0
415424 if ((ratio > dAppThreshold))
416425 then {
417- let $t01217012278 = if ((pmtAssetId == assetIdA))
426+ let $t01240712515 = if ((pmtAssetId == assetIdA))
418427 then $Tuple2(assetNameB, assetNameA)
419428 else $Tuple2(assetNameA, assetNameB)
420- let token1 = $t01217012278._1
421- let token2 = $t01217012278._2
429+ let token1 = $t01240712515._1
430+ let token2 = $t01240712515._2
422431 throw((((("Buying " + token1) + " is temporarily unavailable due to the ") + token2) + " depeg"))
423432 }
424433 else true
425434 }
426435
427436
428437 func replenishWithTwoTokensCalc (i,stakeFarming,lockType) = {
429438 let pmtAssetIdA = i.payments[0].assetId
430439 let pmtAssetIdB = i.payments[1].assetId
431440 let ratioShareTokensInA = fraction(scale8, i.payments[0].amount, balanceA)
432441 let ratioShareTokensInB = fraction(scale8, i.payments[1].amount, balanceB)
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))
442+ let $t01297513052 = getAssetInfo(pmtAssetIdA)
443+ let pmtStrAssetIdA = $t01297513052._1
444+ let pmtAssetNameA = $t01297513052._2
445+ let pmtDecimalsA = $t01297513052._3
446+ let $t01305713174 = getAssetInfo(pmtAssetIdB)
447+ let pmtStrAssetIdB = $t01305713174._1
448+ let pmtAssetNameB = $t01305713174._2
449+ let pmtDecimalsB = $t01305713174._3
450+ let $t01317913683 = if ((ratioShareTokensInB > ratioShareTokensInA))
442451 then {
443452 let pmt = fraction(balanceB, ratioShareTokensInA, scale8, CEILING)
444453 $Tuple5(i.payments[0].amount, pmt, (i.payments[1].amount - pmt), pmtAssetIdB, ratioShareTokensInA)
445454 }
446455 else {
447456 let pmt = fraction(balanceA, ratioShareTokensInB, scale8, CEILING)
448457 $Tuple5(pmt, i.payments[1].amount, (i.payments[0].amount - pmt), pmtAssetIdA, ratioShareTokensInB)
449458 }
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
459+ let pmtAmountA = $t01317913683._1
460+ let pmtAmountB = $t01317913683._2
461+ let change = $t01317913683._3
462+ let changeAssetId = $t01317913683._4
463+ let shareTokenRatio = $t01317913683._5
455464 let shareTokenToPayAmount = fraction(shareTokenRatio, shareAssetSupply, scale8)
456465 if (if ((size(i.payments) != 2))
457466 then (size(i.payments) != 3)
458467 else false)
459468 then throw("Two or three payments expected")
460469 else if (if ((pmtAssetIdA != assetIdA))
461470 then true
462471 else (pmtAssetIdB != assetIdB))
463472 then throwAssets()
464473 else if ((shareTokenToPayAmount == 0))
465474 then throw("Too small amount to replenish")
466475 else if ((0 > change))
467476 then throw("Change < 0")
468477 else if (!(hasEnoughBalance))
469478 then ([ScriptTransfer(i.caller, pmtAmountA, pmtAssetIdA), ScriptTransfer(i.caller, pmtAmountB, pmtAssetIdB)] ++ suspendSuspicious())
470479 else {
471480 let stake1 = if (contains(stakingAssets, pmtStrAssetIdA))
472481 then invoke(this, "stakeUnstake", [true, pmtAmountA, pmtStrAssetIdA], nil)
473482 else 0
474483 if ((stake1 == stake1))
475484 then {
476485 let stake2 = if (contains(stakingAssets, pmtStrAssetIdB))
477486 then invoke(this, "stakeUnstake", [true, pmtAmountB, pmtStrAssetIdB], nil)
478487 else 0
479488 if ((stake2 == stake2))
480489 then {
481490 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)]
482491 if (stakeFarming)
483492 then {
484493 let stPayments = ([AttachedPayment(shareAssetId, shareTokenToPayAmount)] ++ (if ((size(i.payments) == 3))
485494 then [AttachedPayment(if ((i.payments[2].assetId == base58''))
486495 then unit
487496 else i.payments[2].assetId, i.payments[2].amount)]
488497 else nil))
489498 let re = invoke(this, "reissueShare", [shareTokenToPayAmount], nil)
490499 if ((re == re))
491500 then {
492501 let s = invoke(farmingAddress, "lockShareTokensFromPool", [i.caller.bytes, toString(this), lockType], stPayments)
493502 if ((s == s))
494503 then scriptActions
495504 else throw("Strict value is not equal to itself.")
496505 }
497506 else throw("Strict value is not equal to itself.")
498507 }
499508 else (scriptActions ++ [Reissue(shareAssetId, shareTokenToPayAmount, true), ScriptTransfer(i.caller, shareTokenToPayAmount, shareAssetId)])
500509 }
501510 else throw("Strict value is not equal to itself.")
502511 }
503512 else throw("Strict value is not equal to itself.")
504513 }
505514 }
506515
507516
508517 func replenishWithOneTokenCalc (i,virtualSwapTokenPay,virtualSwapTokenGet,stakeFarming,lockType) = {
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
518+ let $t01607316148 = $Tuple2(i.payments[0].amount, i.payments[0].assetId)
519+ let pmtAmount = $t01607316148._1
520+ let pmtAssetId = $t01607316148._2
521+ let $t01615316226 = getAssetInfo(pmtAssetId)
522+ let pmtStrAssetId = $t01615316226._1
523+ let pmtAssetName = $t01615316226._2
524+ let pmtDecimals = $t01615316226._3
516525 let pmtMinThreshold = 5000000
517526 let thresholdValueForMinTolerance = 50000000
518527 let tolerance = if ((thresholdValueForMinTolerance > pmtAmount))
519528 then 100000
520529 else 1
521530 let slippageValueMinForReplenish = (scale8 - ((scale8 * tolerance) / 10000000))
522531 let slippageValueMaxForReplenish = (scale8 + ((scale8 * tolerance) / 10000000))
523532 let slippageValueMinForSwap = (scale8 - ((scale8 * 1) / 10000000))
524533 if ((pmtMinThreshold > pmtAmount))
525534 then throw((((("Payment amount " + toString(pmtAmount)) + " does not exceed the minimum amount of ") + toString(pmtMinThreshold)) + " tokens"))
526535 else if (if ((size(i.payments) != 1))
527536 then (size(i.payments) != 2)
528537 else false)
529538 then throw("One or two payments expected")
530539 else if (!(hasEnoughBalance))
531540 then ([ScriptTransfer(i.caller, pmtAmount, pmtAssetId)] ++ suspendSuspicious())
532541 else if (if ((pmtAssetId != assetIdA))
533542 then (pmtAssetId != assetIdB)
534543 else false)
535544 then throwAssets()
536545 else {
537- let $t01699117633 = if ((pmtAssetId == assetIdA))
546+ let $t01722817870 = if ((pmtAssetId == assetIdA))
538547 then $Tuple6((pmtAmount - virtualSwapTokenPay), virtualSwapTokenGet, (balanceA + virtualSwapTokenPay), (balanceB - virtualSwapTokenGet), (balanceA + pmtAmount), balanceB)
539548 else $Tuple6(virtualSwapTokenGet, (pmtAmount - virtualSwapTokenPay), (balanceA - virtualSwapTokenGet), (balanceB + virtualSwapTokenPay), balanceA, (balanceB + pmtAmount))
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
549+ let virtualReplenishA = $t01722817870._1
550+ let virtualReplenishB = $t01722817870._2
551+ let balanceAfterSwapA = $t01722817870._3
552+ let balanceAfterSwapB = $t01722817870._4
553+ let newBalanceA = $t01722817870._5
554+ let newBalanceB = $t01722817870._6
546555 let invariantNew = invariantCalc(balanceAfterSwapA, balanceAfterSwapB)
547556 let ratioVirtualBalanceToVirtualReplenish = (fraction(scale16, balanceAfterSwapA, balanceAfterSwapB) / fraction(scale8, virtualReplenishA, virtualReplenishB))
548557 if (if ((slippageValueMinForSwap >= fraction(scale8, invariant, invariantNew)))
549558 then true
550559 else (invariant > invariantNew))
551560 then throw("Incorrect virtualSwapTokenPay or virtualSwapTokenGet value")
552561 else if (if ((slippageValueMinForReplenish > ratioVirtualBalanceToVirtualReplenish))
553562 then true
554563 else (ratioVirtualBalanceToVirtualReplenish > slippageValueMaxForReplenish))
555564 then throw("Swap with virtualSwapTokenPay and virtualSwapTokenGet is possible, but ratio after virtual swap is incorrect")
556565 else if (!(checkDAppThreshold(newBalanceA, newBalanceB, pmtAssetId)))
557566 then throw()
558567 else {
559568 let ratioShareTokensInA = fraction(virtualReplenishA, scale8, balanceAfterSwapA)
560569 let ratioShareTokensInB = fraction(virtualReplenishB, scale8, balanceAfterSwapB)
561570 let shareTokenToPayAmount = fraction(min([ratioShareTokensInA, ratioShareTokensInB]), shareAssetSupply, scale8)
562571 let shareTokenToPayAmountAfterFee = fraction(shareTokenToPayAmount, (feeScale6 - (fee / 2)), feeScale6)
563572 let shareTokenGovernanceReward = fraction(shareTokenToPayAmount, (feeGovernance / 2), feeScale6)
564573 let governanceRewardTokenA = fraction(shareTokenGovernanceReward, balanceA, shareAssetSupply)
565574 let governanceRewardTokenB = fraction(shareTokenGovernanceReward, balanceB, shareAssetSupply)
566- let $t01938419667 = if ((pmtStrAssetId == strAssetIdA))
575+ let $t01962119904 = if ((pmtStrAssetId == strAssetIdA))
567576 then $Tuple3((pmtAmount - governanceRewardTokenA), governanceRewardTokenB, strAssetIdB)
568577 else $Tuple3((pmtAmount - governanceRewardTokenB), governanceRewardTokenA, strAssetIdA)
569- let stakeAmount = $t01938419667._1
570- let unstakeAmount = $t01938419667._2
571- let unstakeAsset = $t01938419667._3
578+ let stakeAmount = $t01962119904._1
579+ let unstakeAmount = $t01962119904._2
580+ let unstakeAsset = $t01962119904._3
572581 let stake1 = if (contains(stakingAssets, pmtStrAssetId))
573582 then invoke(this, "stakeUnstake", [true, stakeAmount, pmtStrAssetId], nil)
574583 else 0
575584 if ((stake1 == stake1))
576585 then {
577586 let stake2 = if (contains(stakingAssets, unstakeAsset))
578587 then invoke(this, "stakeUnstake", [false, unstakeAmount, unstakeAsset], nil)
579588 else 0
580589 if ((stake2 == stake2))
581590 then {
582591 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)]
583592 if (stakeFarming)
584593 then {
585594 let stPayments = ([AttachedPayment(shareAssetId, shareTokenToPayAmountAfterFee)] ++ (if ((size(i.payments) == 2))
586595 then [AttachedPayment(if ((i.payments[1].assetId == base58''))
587596 then unit
588597 else i.payments[1].assetId, i.payments[1].amount)]
589598 else nil))
590599 let re = invoke(this, "reissueShare", [shareTokenToPayAmountAfterFee], nil)
591600 if ((re == re))
592601 then {
593602 let s = invoke(farmingAddress, "lockShareTokensFromPool", [i.caller.bytes, toString(this), lockType], stPayments)
594603 if ((s == s))
595604 then scriptActions
596605 else throw("Strict value is not equal to itself.")
597606 }
598607 else throw("Strict value is not equal to itself.")
599608 }
600609 else (scriptActions ++ [Reissue(shareAssetId, shareTokenToPayAmountAfterFee, true), ScriptTransfer(i.caller, shareTokenToPayAmountAfterFee, shareAssetId)])
601610 }
602611 else throw("Strict value is not equal to itself.")
603612 }
604613 else throw("Strict value is not equal to itself.")
605614 }
606615 }
607616 }
608617
609618
610619 func withdrawCalc (i,unlockAmount) = {
611- let $t02151621851 = if ((size(i.payments) == 1))
620+ let $t02175322088 = if ((size(i.payments) == 1))
612621 then if ((i.payments[0].assetId != shareAssetId))
613622 then throw(("Incorrect asset attached. Expected: " + toBase58String(shareAssetId)))
614623 else $Tuple2(i.payments[0].amount, i.payments[0].assetId)
615624 else $Tuple2(0, shareAssetId)
616- let pmtAmount = $t02151621851._1
617- let pmtAssetId = $t02151621851._2
625+ let pmtAmount = $t02175322088._1
626+ let pmtAssetId = $t02175322088._2
618627 if (!(hasEnoughBalance))
619628 then ([ScriptTransfer(i.caller, pmtAmount, pmtAssetId)] ++ suspendSuspicious())
620629 else {
621630 let unlock = if ((unlockAmount > 0))
622631 then invoke(farmingAddress, "withdrawShareTokensFromPool", [i.caller.bytes, toString(this), unlockAmount], nil)
623632 else 0
624633 if ((unlock == unlock))
625634 then {
626635 let withdrawAmount = (pmtAmount + unlockAmount)
627636 let amountToPayA = fraction(withdrawAmount, balanceA, shareAssetSupply)
628637 let amountToPayB = fraction(withdrawAmount, balanceB, shareAssetSupply)
629638 let invariantCalculated = invariantCalc((balanceA - amountToPayA), (balanceB - amountToPayB))
630639 let stake1 = if (contains(stakingAssets, strAssetIdA))
631640 then invoke(this, "stakeUnstake", [false, amountToPayA, strAssetIdA], nil)
632641 else 0
633642 if ((stake1 == stake1))
634643 then {
635644 let stake2 = if (contains(stakingAssets, strAssetIdB))
636645 then invoke(this, "stakeUnstake", [false, amountToPayB, strAssetIdB], nil)
637646 else 0
638647 if ((stake2 == stake2))
639648 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)]
640649 else throw("Strict value is not equal to itself.")
641650 }
642651 else throw("Strict value is not equal to itself.")
643652 }
644653 else throw("Strict value is not equal to itself.")
645654 }
646655 }
647656
648657
649658 @Callable(i)
650659 func init (firstHarvest) = {
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
660+ let $t02364023717 = $Tuple2(i.payments[0].amount, i.payments[0].assetId)
661+ let pmtAmountA = $t02364023717._1
662+ let pmtAssetIdA = $t02364023717._2
663+ let $t02372223799 = $Tuple2(i.payments[1].amount, i.payments[1].assetId)
664+ let pmtAmountB = $t02372223799._1
665+ let pmtAssetIdB = $t02372223799._2
666+ let $t02380423881 = getAssetInfo(pmtAssetIdA)
667+ let pmtStrAssetIdA = $t02380423881._1
668+ let pmtAssetNameA = $t02380423881._2
669+ let pmtDecimalsA = $t02380423881._3
670+ let $t02388623963 = getAssetInfo(pmtAssetIdB)
671+ let pmtStrAssetIdB = $t02388623963._1
672+ let pmtAssetNameB = $t02388623963._2
673+ let pmtDecimalsB = $t02388623963._3
665674 if (isDefined(getBoolean(this, kActive)))
666675 then throwIsActive()
667676 else if ((pmtAssetIdA == pmtAssetIdB))
668677 then throw("Assets must be different")
669678 else {
670679 let shareName = ((("s" + take(pmtAssetNameA, 7)) + "_") + take(pmtAssetNameB, 7))
671680 let shareDescription = ((((("ShareToken of SwopFi protocol for " + pmtAssetNameA) + " and ") + pmtAssetNameB) + " at address ") + toString(this))
672681 let shareDecimals = ((pmtDecimalsA + pmtDecimalsB) / 2)
673682 let shareInitialSupply = fraction(pow(pmtAmountA, pmtDecimalsA, 5, 1, pmtDecimalsA, DOWN), pow(pmtAmountB, pmtDecimalsB, 5, 1, pmtDecimalsB, DOWN), pow(10, 0, shareDecimals, 0, 0, DOWN))
674683 let shareIssue = Issue(shareName, shareDescription, shareInitialSupply, shareDecimals, true)
675684 let shareIssueId = calculateAssetId(shareIssue)
676685 let invariantCalculated = invariantCalc(pmtAmountA, pmtAmountB)
677686 let stake1 = if (contains(stakingAssets, pmtStrAssetIdA))
678687 then invoke(this, "stakeUnstake", [true, pmtAmountA, pmtStrAssetIdA], nil)
679688 else 0
680689 if ((stake1 == stake1))
681690 then {
682691 let stake2 = if (contains(stakingAssets, pmtStrAssetIdB))
683692 then invoke(this, "stakeUnstake", [true, pmtAmountB, pmtStrAssetIdB], nil)
684693 else 0
685694 if ((stake2 == stake2))
686695 then {
687696 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)]
688697 if (firstHarvest)
689698 then (baseEntry ++ [BooleanEntry(kFirstHarvest, firstHarvest), IntegerEntry(kFirstHarvestHeight, (startHeight + (firstHarvestEndPeriod * periodLength)))])
690699 else baseEntry
691700 }
692701 else throw("Strict value is not equal to itself.")
693702 }
694703 else throw("Strict value is not equal to itself.")
695704 }
696705 }
697706
698707
699708
700709 @Callable(i)
701-func replenishWithTwoTokensV2 (stakeFarming,lockType) = valueOrElse(isActive(), replenishWithTwoTokensCalc(i, stakeFarming, lockType))
710+func replenishWithTwoTokensV2 (stakeFarming,lockType) = valueOrElse(isActive(), valueOrElse(isDepricated(), replenishWithTwoTokensCalc(i, stakeFarming, lockType)))
702711
703712
704713
705714 @Callable(i)
706-func replenishWithOneTokenV2 (virtualSwapTokenPay,virtualSwapTokenGet,stakeFarming,lockType) = valueOrElse(isActive(), replenishWithOneTokenCalc(i, virtualSwapTokenPay, virtualSwapTokenGet, stakeFarming, lockType))
715+func replenishWithOneTokenV2 (virtualSwapTokenPay,virtualSwapTokenGet,stakeFarming,lockType) = valueOrElse(isActive(), valueOrElse(isDepricated(), replenishWithOneTokenCalc(i, virtualSwapTokenPay, virtualSwapTokenGet, stakeFarming, lockType)))
707716
708717
709718
710719 @Callable(i)
711720 func withdrawV2 (unlockAmount) = valueOrElse(isActive(), withdrawCalc(i, unlockAmount))
712721
713722
714723
715724 @Callable(i)
716-func withdrawOneToken (unlockAmount,withdrawAsset,estimatedAmountToReceive,minAmountToReceive) = valueOrElse(isActive(), {
717- let $t02714127476 = if ((size(i.payments) == 1))
725+func withdrawOneToken (unlockAmount,withdrawAsset,estimatedAmountToReceive,minAmountToReceive) = valueOrElse(isActive(), valueOrElse(isDepricated(), {
726+ let $t02752527884 = if ((size(i.payments) == 1))
718727 then if ((i.payments[0].assetId != shareAssetId))
719728 then throw(("Incorrect asset attached. Expected: " + toBase58String(shareAssetId)))
720729 else $Tuple2(i.payments[0].amount, i.payments[0].assetId)
721730 else $Tuple2(0, shareAssetId)
722- let pmtAmount = $t02714127476._1
723- let pmtAssetId = $t02714127476._2
731+ let pmtAmount = $t02752527884._1
732+ let pmtAssetId = $t02752527884._2
724733 let withdrawAmount = (pmtAmount + unlockAmount)
725734 if (if ((withdrawAsset != strAssetIdA))
726735 then (withdrawAsset != strAssetIdB)
727736 else false)
728737 then throw("Incorrect withdraw asset")
729738 else if ((0 >= withdrawAmount))
730739 then throw("withdraw amount must be grater than 0")
731740 else if (!(hasEnoughBalance))
732741 then ([ScriptTransfer(i.caller, pmtAmount, pmtAssetId)] ++ suspendSuspicious())
733742 else {
734743 let unlock = if ((unlockAmount > 0))
735744 then invoke(farmingAddress, "withdrawShareTokensFromPool", [i.caller.bytes, toString(this), unlockAmount], nil)
736745 else 0
737746 if ((unlock == unlock))
738747 then {
739748 let amountToPayA = fraction(withdrawAmount, balanceA, shareAssetSupply)
740749 let amountToPayB = fraction(withdrawAmount, balanceB, shareAssetSupply)
741750 let newVirtBalcA = (balanceA - amountToPayA)
742751 let newVirtBalcB = (balanceB - amountToPayB)
743752 let feeDiscount = calculateFeeDiscount(i.originCaller)
744753 let amountExchangedWithFee = if ((withdrawAsset == strAssetIdA))
745754 then calculateSendAmount(estimatedAmountToReceive, minAmountToReceive, amountToPayB, assetIdB, newVirtBalcA, newVirtBalcB, invariantCalc(newVirtBalcA, newVirtBalcB))
746755 else calculateSendAmount(estimatedAmountToReceive, minAmountToReceive, amountToPayA, assetIdA, newVirtBalcA, newVirtBalcB, invariantCalc(newVirtBalcA, newVirtBalcB))
747756 let govReward = fraction(amountExchangedWithFee, fraction(feeGovernance, feeDiscount, feeScale6, CEILING), feeScale6)
748757 let amountExchanged = fraction(amountExchangedWithFee, (feeScale6 - fraction(fee, feeDiscount, feeScale6, CEILING)), feeScale6)
749- let $t02907929441 = if ((withdrawAsset == strAssetIdA))
758+ let $t02957529949 = if ((withdrawAsset == strAssetIdA))
750759 then $Tuple4((amountToPayA + amountExchanged), (((balanceA - amountToPayA) - amountExchanged) - govReward), balanceB, assetIdB)
751760 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
761+ let amountToPay = $t02957529949._1
762+ let balanceANew = $t02957529949._2
763+ let balanceBNew = $t02957529949._3
764+ let virtAssetId = $t02957529949._4
756765 if (!(checkDAppThreshold(balanceANew, balanceBNew, virtAssetId)))
757766 then throw()
758767 else {
759768 let invariantCalculated = invariantCalc(balanceANew, balanceBNew)
760769 let stake1 = if (contains(stakingAssets, withdrawAsset))
761770 then invoke(this, "stakeUnstake", [false, (amountToPay + govReward), withdrawAsset], nil)
762771 else 0
763772 if ((stake1 == stake1))
764773 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))]
765774 else throw("Strict value is not equal to itself.")
766775 }
767776 }
768777 else throw("Strict value is not equal to itself.")
769778 }
770- })
779+ }))
771780
772781
773782
774783 @Callable(i)
775-func exchange (estimatedAmountToReceive,minAmountToReceive) = valueOrElse(isActive(), {
776- let $t03040430479 = $Tuple2(i.payments[0].amount, i.payments[0].assetId)
777- let pmtAmount = $t03040430479._1
778- let pmtAssetId = $t03040430479._2
784+func exchange (estimatedAmountToReceive,minAmountToReceive) = valueOrElse(isActive(), valueOrElse(isDepricated(), {
785+ let $t03101931094 = $Tuple2(i.payments[0].amount, i.payments[0].assetId)
786+ let pmtAmount = $t03101931094._1
787+ let pmtAssetId = $t03101931094._2
779788 if ((0 >= estimatedAmountToReceive))
780789 then throw(("Estimated amount must be positive. Actual: " + toString(estimatedAmountToReceive)))
781790 else if ((minAmountToReceive > estimatedAmountToReceive))
782791 then throw("Minimal amount can't be greater than estimated.")
783792 else if ((size(i.payments) != 1))
784793 then throwOnePayment()
785794 else if (!(hasEnoughBalance))
786795 then ([ScriptTransfer(i.caller, pmtAmount, pmtAssetId)] ++ suspendSuspicious())
787796 else if (if ((pmtAssetId != assetIdA))
788797 then (pmtAssetId != assetIdB)
789798 else false)
790799 then throwAssets()
791800 else if ((10000000 > pmtAmount))
792801 then throw("Only swap of 10.000000 or more tokens is allowed")
793802 else if (if ((exchangeRatioLimitMin > fraction(scale8, minAmountToReceive, pmtAmount)))
794803 then true
795804 else (fraction(scale8, estimatedAmountToReceive, pmtAmount) > exchangeRatioLimitMax))
796805 then throw("Incorrect args and pmt ratio")
797806 else {
798807 let sendAssetId = if ((pmtAssetId == assetIdA))
799808 then assetIdB
800809 else assetIdA
801810 let amount = calculateSendAmount(estimatedAmountToReceive, minAmountToReceive, pmtAmount, pmtAssetId, balanceA, balanceB, invariant)
802811 let feeDiscount = calculateFeeDiscount(i.originCaller)
803812 let governanceReward = fraction(amount, fraction(feeGovernance, feeDiscount, feeScale6, CEILING), feeScale6)
804813 let amountMinusFee = fraction(amount, (feeScale6 - fraction(fee, feeDiscount, feeScale6, CEILING)), feeScale6)
805- let $t03196332225 = if ((pmtAssetId == assetIdA))
814+ let $t03269032968 = if ((pmtAssetId == assetIdA))
806815 then $Tuple2((balanceA + pmtAmount), ((balanceB - amountMinusFee) - governanceReward))
807816 else $Tuple2(((balanceA - amountMinusFee) - governanceReward), (balanceB + pmtAmount))
808- let newBalanceA = $t03196332225._1
809- let newBalanceB = $t03196332225._2
817+ let newBalanceA = $t03269032968._1
818+ let newBalanceB = $t03269032968._2
810819 if (!(checkDAppThreshold(newBalanceA, newBalanceB, pmtAssetId)))
811820 then throw()
812821 else {
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
822+ let $t03307433147 = getAssetInfo(pmtAssetId)
823+ let pmtStrAssetId = $t03307433147._1
824+ let pmtAssetName = $t03307433147._2
825+ let pmtDecimals = $t03307433147._3
826+ let $t03316033237 = getAssetInfo(sendAssetId)
827+ let sendStrAssetId = $t03316033237._1
828+ let sendAssetName = $t03316033237._2
829+ let sendDecimals = $t03316033237._3
821830 let stake1 = if (contains(stakingAssets, pmtStrAssetId))
822831 then invoke(this, "stakeUnstake", [true, pmtAmount, pmtStrAssetId], nil)
823832 else 0
824833 if ((stake1 == stake1))
825834 then {
826835 let stake2 = if (contains(stakingAssets, sendStrAssetId))
827836 then invoke(this, "stakeUnstake", [false, (amountMinusFee + governanceReward), sendStrAssetId], nil)
828837 else 0
829838 if ((stake2 == stake2))
830839 then $Tuple2([IntegerEntry(kBalanceA, newBalanceA), IntegerEntry(kBalanceB, newBalanceB), IntegerEntry(kInvariant, invariantCalc(newBalanceA, newBalanceB)), ScriptTransfer(i.caller, amountMinusFee, sendAssetId), ScriptTransfer(moneyBoxAddress, governanceReward, sendAssetId)], [amountMinusFee, sendAssetId])
831840 else throw("Strict value is not equal to itself.")
832841 }
833842 else throw("Strict value is not equal to itself.")
834843 }
835844 }
836- })
845+ }))
837846
838847
839848
840849 @Callable(msg)
841850 func reissueShare (amount) = valueOrElse(isSelfCall(msg), [Reissue(shareAssetId, amount, true)])
842851
843852
844853
845854 @Callable(i)
846855 func shutdown () = valueOrElse(isAdminCall(i), if (!(active))
847856 then throw(("DApp is already suspended. Cause: " + valueOrElse(getString(this, kCause), "the cause wasn't specified")))
848857 else suspend("Paused by admin"))
849858
850859
851860
852861 @Callable(i)
853862 func activate () = valueOrElse(isAdminCall(i), if (active)
854863 then throwIsActive()
855864 else [BooleanEntry(kActive, true), DeleteEntry(kCause)])
856865
857866
858867
859868 @Callable(i)
860869 func takeIntoAccountExtraFunds () = valueOrElse(isActive(), {
861870 let claim = if (if ((assetIdA == USDN))
862871 then true
863872 else (assetIdB == USDN))
864873 then invoke(stakingUSDNAddress, "claimRewards", nil, nil)
865874 else 0
866875 if ((claim == claim))
867876 then {
868877 let amountEnrollA = (accountBalanceWithStakedA - balanceA)
869878 let amountEnrollB = (accountBalanceWithStakedB - balanceB)
870879 let invariantNew = invariantCalc((balanceA + amountEnrollA), (balanceB + amountEnrollB))
871880 if ((i.caller != moneyBoxAddress))
872881 then throw("Only the money box can call this function")
873882 else if (if ((0 > amountEnrollA))
874883 then true
875884 else (0 > amountEnrollB))
876885 then suspend("Enroll amount negative")
877886 else if (if ((amountEnrollA == 0))
878887 then (amountEnrollB == 0)
879888 else false)
880889 then throw("No money to take")
881890 else {
882891 let stake1 = if (if (contains(stakingAssets, strAssetIdA))
883892 then (amountEnrollA > 0)
884893 else false)
885894 then invoke(this, "stakeUnstake", [true, amountEnrollA, strAssetIdA], nil)
886895 else 0
887896 if ((stake1 == stake1))
888897 then {
889898 let stake2 = if (if (contains(stakingAssets, strAssetIdB))
890899 then (amountEnrollB > 0)
891900 else false)
892901 then invoke(this, "stakeUnstake", [true, amountEnrollB, strAssetIdB], nil)
893902 else 0
894903 if ((stake2 == stake2))
895904 then [IntegerEntry(kInvariant, invariantNew), IntegerEntry(kBalanceA, (balanceA + amountEnrollA)), IntegerEntry(kBalanceB, (balanceB + amountEnrollB))]
896905 else throw("Strict value is not equal to itself.")
897906 }
898907 else throw("Strict value is not equal to itself.")
899908 }
900909 }
901910 else throw("Strict value is not equal to itself.")
902911 })
903912
904913
905914
906915 @Callable(i)
907916 func keepLimitForFirstHarvest (shareLimit) = valueOrElse(isActive(), valueOrElse(isAdminCall(i), [IntegerEntry(kShareLimit, shareLimit)]))
908917
909918
910919
911920 @Callable(i)
912921 func stakeUnstake (stake,amount,assetIdString) = if ((i.caller != this))
913922 then throw("Only contract itself can invoke this function")
914923 else {
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
924+ let $t03688936992 = calcStakingParams(stake, amount, fromBase58String(assetIdString))
925+ let call = $t03688936992._1
926+ let addr = $t03688936992._2
927+ let params = $t03688936992._3
928+ let payments = $t03688936992._4
920929 let inv = invoke(addr, call, params, payments)
921930 if ((inv == inv))
922931 then nil
923932 else throw("Strict value is not equal to itself.")
924933 }
925934
926935
927936
928937 @Callable(i)
929-func replenishWithTwoTokens () = valueOrElse(isActive(), replenishWithTwoTokensCalc(i, false, 0))
938+func replenishWithTwoTokens () = valueOrElse(isActive(), valueOrElse(isDepricated(), replenishWithTwoTokensCalc(i, false, 0)))
930939
931940
932941
933942 @Callable(i)
934-func replenishWithOneToken (virtualSwapTokenPay,virtualSwapTokenGet) = valueOrElse(isActive(), replenishWithOneTokenCalc(i, virtualSwapTokenPay, virtualSwapTokenGet, false, 0))
943+func replenishWithOneToken (virtualSwapTokenPay,virtualSwapTokenGet) = valueOrElse(isActive(), valueOrElse(isDepricated(), replenishWithOneTokenCalc(i, virtualSwapTokenPay, virtualSwapTokenGet, false, 0)))
935944
936945
937946
938947 @Callable(i)
939948 func withdraw () = valueOrElse(isActive(), withdrawCalc(i, 0))
940949
941950
942951 @Verifier(tx)
943952 func verify () = {
944953 let multiSignedByAdmins = {
945954 let adminPubKey1Signed = if (sigVerify(tx.bodyBytes, tx.proofs[0], adminPubKey1))
946955 then 1
947956 else 0
948957 let adminPubKey2Signed = if (sigVerify(tx.bodyBytes, tx.proofs[1], adminPubKey2))
949958 then 1
950959 else 0
951960 let adminPubKey3Signed = if (sigVerify(tx.bodyBytes, tx.proofs[2], adminPubKey3))
952961 then 1
953962 else 0
954963 (((adminPubKey1Signed + adminPubKey2Signed) + adminPubKey3Signed) >= 2)
955964 }
956965 match tx {
957966 case inv: InvokeScriptTransaction =>
958967 let callTakeIntoAccount = if ((inv.dApp == this))
959968 then (inv.function == "takeIntoAccountExtraFunds")
960969 else false
961970 let signedByAdmin = if (if (if (sigVerify(tx.bodyBytes, tx.proofs[0], adminPubKey1))
962971 then true
963972 else sigVerify(tx.bodyBytes, tx.proofs[0], adminPubKey2))
964973 then true
965974 else sigVerify(tx.bodyBytes, tx.proofs[0], adminPubKey3))
966975 then true
967976 else sigVerify(tx.bodyBytes, tx.proofs[0], adminPubKeyInvoke)
968977 if (if (callTakeIntoAccount)
969978 then signedByAdmin
970979 else false)
971980 then true
972981 else multiSignedByAdmins
973982 case _ =>
974983 multiSignedByAdmins
975984 }
976985 }
977986

github/deemru/w8io/026f985 
185.98 ms