tx · C7tb52V9rThThBmfYDVEQkcCTMr3C6FxXwYsL9seU54y

3MqXV381CXzs2JjPZh9VbL47gNz9aBNxdEt:  -0.01400000 Waves

2022.03.29 15:37 [1985220] smart account 3MqXV381CXzs2JjPZh9VbL47gNz9aBNxdEt > SELF 0.00000000 Waves

{ "type": 13, "id": "C7tb52V9rThThBmfYDVEQkcCTMr3C6FxXwYsL9seU54y", "fee": 1400000, "feeAssetId": null, "timestamp": 1648557457078, "version": 2, "chainId": 84, "sender": "3MqXV381CXzs2JjPZh9VbL47gNz9aBNxdEt", "senderPublicKey": "DgYTTVMZQ9h4qHVivhHDAGGurMVQqMoyxJgEeiFzgbGV", "proofs": [ "49Wa5Nso5e6sB7FsuRsPSRaxN237AdSkAy9oUFCB9bHCsCsCkUSEpEjHmA83iWbmmwMzbY2m21wV9Vf1q7d4Upee", "2X8XwKyWVecd7Nhcx2aeaTegw2zmFP4B22oJ7AJJCHrqhF1s2qJLwQpVTYDk6KPhWDTNW5LVv1X959vdJEJrYyka" ], "script": "base64:AAIFAAAAAAAAACEIAhIAEgASBAoCAQESABIECgIBARIAEgASABIFCgMEAQgAAABSAAAAAAd2ZXJzaW9uAgAAAAUyLjAuMAAAAAAIa1ZlcnNpb24CAAAAB3ZlcnNpb24AAAAAB2tBY3RpdmUCAAAABmFjdGl2ZQAAAAAJa0Fzc2V0SWRBAgAAAApBX2Fzc2V0X2lkAAAAAAlrQXNzZXRJZEICAAAACkJfYXNzZXRfaWQAAAAACWtCYWxhbmNlQQIAAAAPQV9hc3NldF9iYWxhbmNlAAAAAAlrQmFsYW5jZUICAAAAD0JfYXNzZXRfYmFsYW5jZQAAAAANa1NoYXJlQXNzZXRJZAIAAAAOc2hhcmVfYXNzZXRfaWQAAAAAEWtTaGFyZUFzc2V0U3VwcGx5AgAAABJzaGFyZV9hc3NldF9zdXBwbHkAAAAABGtGZWUCAAAACmNvbW1pc3Npb24AAAAAEmtGZWVTY2FsZURlbGltaXRlcgIAAAAaY29tbWlz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AABkAAAAAgUAAAASYWRtaW5QdWJLZXkxU2lnbmVkBQAAABJhZG1pblB1YktleTJTaWduZWQFAAAAEmFkbWluUHViS2V5M1NpZ25lZAAAAAAAAAAAAgQAAAAHJG1hdGNoMAUAAAACdHgDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAF0ludm9rZVNjcmlwdFRyYW5zYWN0aW9uBAAAAANpbnYFAAAAByRtYXRjaDAEAAAAE2NhbGxUYWtlSW50b0FjY291bnQDCQAAAAAAAAIIBQAAAANpbnYAAAAEZEFwcAUAAAAEdGhpcwkAAAAAAAACCAUAAAADaW52AAAACGZ1bmN0aW9uAgAAABl0YWtlSW50b0FjY291bnRFeHRyYUZ1bmRzBwQAAAANc2lnbmVkQnlBZG1pbgMDAwkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAFAAAADGFkbWluUHViS2V5MQYJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAABQAAAAxhZG1pblB1YktleTIGCQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAUAAAAMYWRtaW5QdWJLZXkzBgkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAFAAAACmFkbVN0YWtpbmcDAwUAAAATY2FsbFRha2VJbnRvQWNjb3VudAUAAAANc2lnbmVkQnlBZG1pbgcGBQAAABNtdWx0aVNpZ25lZEJ5QWRtaW5zBQAAABNtdWx0aVNpZ25lZEJ5QWRtaW5zjB0DmA==", "height": 1985220, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 8R6ghfzMwqwoycsQsUynYpKyeTvgsUUPo3s6TRzZwnhf Next: none Diff:
OldNewDifferences
201201
202202
203203 func calculateSendAmount (amountToSendEstimated,minTokenReceiveAmount,tokenReceiveAmount,tokenId) = {
204- let worstAllowedNewInvariantRatio = (scale8 - ((scale8 * 1) / 10000000))
204+ let worstAllowedNewInvariantRatio = (scale16 - ((scale16 * 1) / 10000000))
205205 let deltaBetweenMaxAndMinSendValue = (amountToSendEstimated - minTokenReceiveAmount)
206206 let x = (balanceA + tokenReceiveAmount)
207207 let y = (balanceB + tokenReceiveAmount)
227227 then invariantCalc((balanceA - amountToSendEstimated), y)
228228 else throw("Wrong asset in payment")
229229 if ((invariant > invEstimated))
230- then if ((worstAllowedNewInvariantRatio >= fraction(scale8, invariant, invEstimated)))
230+ then if ((worstAllowedNewInvariantRatio >= fraction(scale16, invariant, invEstimated)))
231231 then throw("The requested price is too not profitable for user")
232232 else {
233233 let a = {
266266 let tupleSendBetter = if ((0 > a._1))
267267 then $Tuple2(amountToSendEstimated, invEstimated)
268268 else a
269- if ((worstAllowedNewInvariantRatio >= fraction(scale8, invariant, tupleSendBetter._2)))
269+ if ((worstAllowedNewInvariantRatio >= fraction(scale16, invariant, tupleSendBetter._2)))
270270 then throw("The requested price is too not profitable for user")
271271 else tupleSendBetter._1
272272 }
325325
326326 func calcStakingParams (stake,amount,assetId) = if (stake)
327327 then {
328- let $t098529918 = calcStakingFuncAndAddres(stake, assetId)
329- let call = $t098529918._1
330- let stakingAddr = $t098529918._2
328+ let $t098569922 = calcStakingFuncAndAddres(stake, assetId)
329+ let call = $t098569922._1
330+ let stakingAddr = $t098569922._2
331331 $Tuple4(call, stakingAddr, nil, [AttachedPayment(assetId, amount)])
332332 }
333333 else {
334- let $t01000410070 = calcStakingFuncAndAddres(stake, assetId)
335- let call = $t01000410070._1
336- let stakingAddr = $t01000410070._2
334+ let $t01000810074 = calcStakingFuncAndAddres(stake, assetId)
335+ let call = $t01000810074._1
336+ let stakingAddr = $t01000810074._2
337337 $Tuple4(call, stakingAddr, [amount, toBase58String(assetId)], nil)
338338 }
339339
340340
341341 @Callable(i)
342342 func init () = {
343- let $t01017510252 = $Tuple2(i.payments[0].amount, i.payments[0].assetId)
344- let pmtAmountA = $t01017510252._1
345- let pmtAssetIdA = $t01017510252._2
346- let $t01025710334 = $Tuple2(i.payments[1].amount, i.payments[1].assetId)
347- let pmtAmountB = $t01025710334._1
348- let pmtAssetIdB = $t01025710334._2
349- let $t01033910416 = getAssetInfo(pmtAssetIdA)
350- let pmtStrAssetIdA = $t01033910416._1
351- let pmtAssetNameA = $t01033910416._2
352- let pmtDecimalsA = $t01033910416._3
353- let $t01042110498 = getAssetInfo(pmtAssetIdB)
354- let pmtStrAssetIdB = $t01042110498._1
355- let pmtAssetNameB = $t01042110498._2
356- let pmtDecimalsB = $t01042110498._3
343+ let $t01017910256 = $Tuple2(i.payments[0].amount, i.payments[0].assetId)
344+ let pmtAmountA = $t01017910256._1
345+ let pmtAssetIdA = $t01017910256._2
346+ let $t01026110338 = $Tuple2(i.payments[1].amount, i.payments[1].assetId)
347+ let pmtAmountB = $t01026110338._1
348+ let pmtAssetIdB = $t01026110338._2
349+ let $t01034310420 = getAssetInfo(pmtAssetIdA)
350+ let pmtStrAssetIdA = $t01034310420._1
351+ let pmtAssetNameA = $t01034310420._2
352+ let pmtDecimalsA = $t01034310420._3
353+ let $t01042510502 = getAssetInfo(pmtAssetIdB)
354+ let pmtStrAssetIdB = $t01042510502._1
355+ let pmtAssetNameB = $t01042510502._2
356+ let pmtDecimalsB = $t01042510502._3
357357 if (isDefined(getBoolean(this, kActive)))
358358 then throwIsActive()
359359 else if ((pmtAssetIdA == pmtAssetIdB))
390390 let pmtAssetIdB = i.payments[1].assetId
391391 let ratioShareTokensInA = fraction(scale8, i.payments[0].amount, balanceA)
392392 let ratioShareTokensInB = fraction(scale8, i.payments[1].amount, balanceB)
393- let $t01307913156 = getAssetInfo(pmtAssetIdA)
394- let pmtStrAssetIdA = $t01307913156._1
395- let pmtAssetNameA = $t01307913156._2
396- let pmtDecimalsA = $t01307913156._3
397- let $t01316113278 = getAssetInfo(pmtAssetIdB)
398- let pmtStrAssetIdB = $t01316113278._1
399- let pmtAssetNameB = $t01316113278._2
400- let pmtDecimalsB = $t01316113278._3
401- let $t01328313787 = if ((ratioShareTokensInB > ratioShareTokensInA))
393+ let $t01308313160 = getAssetInfo(pmtAssetIdA)
394+ let pmtStrAssetIdA = $t01308313160._1
395+ let pmtAssetNameA = $t01308313160._2
396+ let pmtDecimalsA = $t01308313160._3
397+ let $t01316513282 = getAssetInfo(pmtAssetIdB)
398+ let pmtStrAssetIdB = $t01316513282._1
399+ let pmtAssetNameB = $t01316513282._2
400+ let pmtDecimalsB = $t01316513282._3
401+ let $t01328713791 = if ((ratioShareTokensInB > ratioShareTokensInA))
402402 then {
403403 let pmt = fraction(balanceB, ratioShareTokensInA, scale8, CEILING)
404404 $Tuple5(i.payments[0].amount, pmt, (i.payments[1].amount - pmt), pmtAssetIdB, ratioShareTokensInA)
407407 let pmt = fraction(balanceA, ratioShareTokensInB, scale8, CEILING)
408408 $Tuple5(pmt, i.payments[1].amount, (i.payments[0].amount - pmt), pmtAssetIdA, ratioShareTokensInB)
409409 }
410- let pmtAmountA = $t01328313787._1
411- let pmtAmountB = $t01328313787._2
412- let change = $t01328313787._3
413- let changeAssetId = $t01328313787._4
414- let shareTokenRatio = $t01328313787._5
410+ let pmtAmountA = $t01328713791._1
411+ let pmtAmountB = $t01328713791._2
412+ let change = $t01328713791._3
413+ let changeAssetId = $t01328713791._4
414+ let shareTokenRatio = $t01328713791._5
415415 let shareTokenToPayAmount = fraction(shareTokenRatio, shareAssetSupply, scale8)
416416 if ((size(i.payments) != 2))
417417 then throw("Two attached assets expected")
446446
447447 @Callable(i)
448448 func replenishWithOneToken (virtualSwapTokenPay,virtualSwapTokenGet) = valueOrElse(isActive(), {
449- let $t01543615511 = $Tuple2(i.payments[0].amount, i.payments[0].assetId)
450- let pmtAmount = $t01543615511._1
451- let pmtAssetId = $t01543615511._2
452- let $t01551615589 = getAssetInfo(pmtAssetId)
453- let pmtStrAssetId = $t01551615589._1
454- let pmtAssetName = $t01551615589._2
455- let pmtDecimals = $t01551615589._3
449+ let $t01544015515 = $Tuple2(i.payments[0].amount, i.payments[0].assetId)
450+ let pmtAmount = $t01544015515._1
451+ let pmtAssetId = $t01544015515._2
452+ let $t01552015593 = getAssetInfo(pmtAssetId)
453+ let pmtStrAssetId = $t01552015593._1
454+ let pmtAssetName = $t01552015593._2
455+ let pmtDecimals = $t01552015593._3
456456 let pmtMinThreshold = 5000000
457457 let thresholdValueForMinTolerance = 50000000
458458 let tolerance = if ((thresholdValueForMinTolerance > pmtAmount))
472472 else false)
473473 then throwAssets()
474474 else {
475- let $t01652717292 = if ((pmtAssetId == assetIdA))
476- then $Tuple7((pmtAmount - virtualSwapTokenPay), virtualSwapTokenGet, (balanceA + virtualSwapTokenPay), (balanceB - virtualSwapTokenGet), invariantCalc((balanceA + pmtAmount), balanceB), (balanceA + pmtAmount), balanceB)
477- else $Tuple7(virtualSwapTokenGet, (pmtAmount - virtualSwapTokenPay), (balanceA - virtualSwapTokenGet), (balanceB + virtualSwapTokenPay), invariantCalc(balanceA, (balanceB + pmtAmount)), balanceA, (balanceB + pmtAmount))
478- let virtualReplenishA = $t01652717292._1
479- let virtualReplenishB = $t01652717292._2
480- let balanceAfterSwapA = $t01652717292._3
481- let balanceAfterSwapB = $t01652717292._4
482- let invariantCalculated = $t01652717292._5
483- let newBalanceA = $t01652717292._6
484- let newBalanceB = $t01652717292._7
485- let newBalanceEntry = if ((pmtAssetId == assetIdA))
486- then IntegerEntry(kBalanceA, newBalanceA)
487- else IntegerEntry(kBalanceB, newBalanceB)
475+ let $t01653117137 = if ((pmtAssetId == assetIdA))
476+ then $Tuple6((pmtAmount - virtualSwapTokenPay), virtualSwapTokenGet, (balanceA + virtualSwapTokenPay), (balanceB - virtualSwapTokenGet), (balanceA + pmtAmount), balanceB)
477+ else $Tuple6(virtualSwapTokenGet, (pmtAmount - virtualSwapTokenPay), (balanceA - virtualSwapTokenGet), (balanceB + virtualSwapTokenPay), balanceA, (balanceB + pmtAmount))
478+ let virtualReplenishA = $t01653117137._1
479+ let virtualReplenishB = $t01653117137._2
480+ let balanceAfterSwapA = $t01653117137._3
481+ let balanceAfterSwapB = $t01653117137._4
482+ let newBalanceA = $t01653117137._5
483+ let newBalanceB = $t01653117137._6
488484 let invariantNew = invariantCalc(balanceAfterSwapA, balanceAfterSwapB)
489- let invariantEstimatedRatio = fraction(scale8, invariant, invariantNew)
490485 let ratioVirtualBalanceToVirtualReplenish = (fraction((scale8 * scale8), balanceAfterSwapA, balanceAfterSwapB) / fraction(scale8, virtualReplenishA, virtualReplenishB))
491486 let dAppThresholdAmount = fraction((newBalanceA + newBalanceB), dAppThreshold, (2 * dAppThresholdScale2))
492- if (if ((slippageValueMinForSwap >= invariantEstimatedRatio))
487+ if (if ((slippageValueMinForSwap >= fraction(scale8, invariant, invariantNew)))
493488 then true
494489 else (invariant > invariantNew))
495- then throw((((((("Incorrect virtualSwapTokenPay or virtualSwapTokenGet value" + " invariantEstimatedRatio: ") + toString(invariantEstimatedRatio)) + " invariantNew: ") + toString(invariantNew)) + " invariant: ") + toString(invariant)))
490+ then throw("Incorrect virtualSwapTokenPay or virtualSwapTokenGet value")
496491 else if (if ((slippageValueMinForReplenish > ratioVirtualBalanceToVirtualReplenish))
497492 then true
498493 else (ratioVirtualBalanceToVirtualReplenish > slippageValueMaxForReplenish))
502497 else (dAppThresholdAmount > newBalanceB))
503498 then throwThreshold(dAppThresholdAmount, newBalanceA, newBalanceB)
504499 else {
500+ let ratioShareTokensInA = fraction(virtualReplenishA, scale8, balanceAfterSwapA)
501+ let ratioShareTokensInB = fraction(virtualReplenishB, scale8, balanceAfterSwapB)
502+ let shareTokenToPayAmount = fraction(min([ratioShareTokensInA, ratioShareTokensInB]), shareAssetSupply, scale8)
503+ let shareTokenToPayAmountAfterFee = fraction(shareTokenToPayAmount, (feeScale6 - (fee / 2)), feeScale6)
504+ let shareTokenGovernanceReward = fraction(shareTokenToPayAmount, (feeGovernance / 2), feeScale6)
505+ let governanceRewardTokenA = fraction(shareTokenGovernanceReward, balanceA, shareAssetSupply)
506+ let governanceRewardTokenB = fraction(shareTokenGovernanceReward, balanceB, shareAssetSupply)
507+ let $t01913919434 = if ((pmtStrAssetId == strAssetIdA))
508+ then $Tuple3((pmtAmount - governanceRewardTokenA), governanceRewardTokenB, strAssetIdB)
509+ else $Tuple3((pmtAmount - governanceRewardTokenB), governanceRewardTokenA, strAssetIdA)
510+ let stakeAmount = $t01913919434._1
511+ let unstakeAmount = $t01913919434._2
512+ let unstakeAsset = $t01913919434._3
505513 let stake1 = if (containsElement(stakingAssets, pmtStrAssetId))
506- then invoke(this, "stakeUnstake", [true, pmtAmount, pmtStrAssetId], nil)
514+ then invoke(this, "stakeUnstake", [true, stakeAmount, pmtStrAssetId], nil)
507515 else 0
508516 if ((stake1 == stake1))
509517 then {
510- let ratioShareTokensInA = fraction(virtualReplenishA, scale8, balanceAfterSwapA)
511- let ratioShareTokensInB = fraction(virtualReplenishB, scale8, balanceAfterSwapB)
512- let shareTokenToPayAmount = fraction(min([ratioShareTokensInA, ratioShareTokensInB]), shareAssetSupply, scale8)
513-[Reissue(shareAssetId, shareTokenToPayAmount, true), ScriptTransfer(i.caller, shareTokenToPayAmount, shareAssetId), IntegerEntry(kShareAssetSupply, (shareAssetSupply + shareTokenToPayAmount)), newBalanceEntry, IntegerEntry(kInvariant, invariantCalculated)]
518+ let stake2 = if (containsElement(stakingAssets, unstakeAsset))
519+ then invoke(this, "stakeUnstake", [false, unstakeAmount, unstakeAsset], nil)
520+ else 0
521+ if ((stake2 == stake2))
522+ then [Reissue(shareAssetId, shareTokenToPayAmountAfterFee, true), ScriptTransfer(i.caller, shareTokenToPayAmountAfterFee, shareAssetId), ScriptTransfer(walletAddress, governanceRewardTokenA, assetIdA), ScriptTransfer(walletAddress, governanceRewardTokenB, assetIdB), IntegerEntry(kBalanceA, (newBalanceA - governanceRewardTokenA)), IntegerEntry(kBalanceB, (newBalanceB - governanceRewardTokenB)), IntegerEntry(kShareAssetSupply, (shareAssetSupply + shareTokenToPayAmountAfterFee)), IntegerEntry(kInvariant, invariantCalc((newBalanceA - governanceRewardTokenA), (newBalanceB - governanceRewardTokenB)))]
523+ else throw("Strict value is not equal to itself.")
514524 }
515525 else throw("Strict value is not equal to itself.")
516526 }
521531
522532 @Callable(i)
523533 func withdraw () = valueOrElse(isActive(), {
524- let $t01972119796 = $Tuple2(i.payments[0].amount, i.payments[0].assetId)
525- let pmtAmount = $t01972119796._1
526- let pmtAssetId = $t01972119796._2
534+ let $t02061320688 = $Tuple2(i.payments[0].amount, i.payments[0].assetId)
535+ let pmtAmount = $t02061320688._1
536+ let pmtAssetId = $t02061320688._2
527537 let amountToPayA = fraction(pmtAmount, balanceA, shareAssetSupply)
528538 let amountToPayB = fraction(pmtAmount, balanceB, shareAssetSupply)
529539 let invariantCalculated = invariantCalc((balanceA - amountToPayA), (balanceB - amountToPayB))
554564
555565 @Callable(i)
556566 func exchange (estimatedAmountToReceive,minAmountToReceive) = valueOrElse(isActive(), {
557- let $t02125921334 = $Tuple2(i.payments[0].amount, i.payments[0].assetId)
558- let pmtAmount = $t02125921334._1
559- let pmtAssetId = $t02125921334._2
567+ let $t02215122226 = $Tuple2(i.payments[0].amount, i.payments[0].assetId)
568+ let pmtAmount = $t02215122226._1
569+ let pmtAssetId = $t02215122226._2
560570 if ((0 >= estimatedAmountToReceive))
561571 then throw(("Estimated amount must be positive. Actual: " + toString(estimatedAmountToReceive)))
562572 else if ((minAmountToReceive > estimatedAmountToReceive))
563- then throw(((("Minimal amount can't be greater than estimated. Estimated: " + toString(estimatedAmountToReceive)) + ". Minimal: ") + toString(minAmountToReceive)))
573+ then throw("Minimal amount can't be greater than estimated.")
564574 else if ((size(i.payments) != 1))
565575 then throwOnePayment()
566576 else if (!(hasEnoughBalance))
582592 let amount = calculateSendAmount(estimatedAmountToReceive, minAmountToReceive, pmtAmount, pmtAssetId)
583593 let governanceReward = fraction(amount, feeGovernance, feeScale6)
584594 let amountMinusFee = fraction(amount, (feeScale6 - fee), feeScale6)
585- let $t02268222944 = if ((pmtAssetId == assetIdA))
595+ let $t02347623738 = if ((pmtAssetId == assetIdA))
586596 then $Tuple2((balanceA + pmtAmount), ((balanceB - amountMinusFee) - governanceReward))
587597 else $Tuple2(((balanceA - amountMinusFee) - governanceReward), (balanceB + pmtAmount))
588- let newBalanceA = $t02268222944._1
589- let newBalanceB = $t02268222944._2
598+ let newBalanceA = $t02347623738._1
599+ let newBalanceB = $t02347623738._2
590600 let dAppThresholdAmount = fraction((newBalanceA + newBalanceB), dAppThreshold, (2 * dAppThresholdScale2))
591601 if (if ((dAppThresholdAmount > newBalanceA))
592602 then true
593603 else (dAppThresholdAmount > newBalanceB))
594604 then throwThreshold(dAppThresholdAmount, newBalanceA, newBalanceB)
595605 else {
596- let $t02324223315 = getAssetInfo(pmtAssetId)
597- let pmtStrAssetId = $t02324223315._1
598- let pmtAssetName = $t02324223315._2
599- let pmtDecimals = $t02324223315._3
600- let $t02332823405 = getAssetInfo(sendAssetId)
601- let sendStrAssetId = $t02332823405._1
602- let sendAssetName = $t02332823405._2
603- let sendDecimals = $t02332823405._3
606+ let $t02403624109 = getAssetInfo(pmtAssetId)
607+ let pmtStrAssetId = $t02403624109._1
608+ let pmtAssetName = $t02403624109._2
609+ let pmtDecimals = $t02403624109._3
610+ let $t02412224199 = getAssetInfo(sendAssetId)
611+ let sendStrAssetId = $t02412224199._1
612+ let sendAssetName = $t02412224199._2
613+ let sendDecimals = $t02412224199._3
604614 let stake1 = if (containsElement(stakingAssets, pmtStrAssetId))
605615 then invoke(this, "stakeUnstake", [true, pmtAmount, pmtStrAssetId], nil)
606616 else 0
676686 func stakeUnstake (stake,amount,assetIdString) = if ((i.caller != this))
677687 then throw("Only contract itself can invoke this function")
678688 else {
679- let $t02621726320 = calcStakingParams(stake, amount, fromBase58String(assetIdString))
680- let call = $t02621726320._1
681- let addr = $t02621726320._2
682- let params = $t02621726320._3
683- let payments = $t02621726320._4
689+ let $t02701127114 = calcStakingParams(stake, amount, fromBase58String(assetIdString))
690+ let call = $t02701127114._1
691+ let addr = $t02701127114._2
692+ let params = $t02701127114._3
693+ let payments = $t02701127114._4
684694 let inv = invoke(addr, call, params, payments)
685695 if ((inv == inv))
686696 then nil
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
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 kAssetIdA = "A_asset_id"
1111
1212 let kAssetIdB = "B_asset_id"
1313
1414 let kBalanceA = "A_asset_balance"
1515
1616 let kBalanceB = "B_asset_balance"
1717
1818 let kShareAssetId = "share_asset_id"
1919
2020 let kShareAssetSupply = "share_asset_supply"
2121
2222 let kFee = "commission"
2323
2424 let kFeeScaleDelimiter = "commission_scale_delimiter"
2525
2626 let kInvariant = "invariant"
2727
2828 let kCause = "shutdown_cause"
2929
3030 let keyUSDNNSBTAddress = "staking_usdnnsbt_address"
3131
3232 let keyEURNAddress = "staking_eurn_address"
3333
3434 let keyAdminPubKey1 = "admin_pub_1"
3535
3636 let keyAdminPubKey2 = "admin_pub_2"
3737
3838 let keyAdminPubKey3 = "admin_pub_3"
3939
4040 let USDNToWavesExchanger = Address(base58'3N77kfPbQyjXWpDALX3xjKw3iEGMWEctV37')
4141
4242 let oracle = Address(base58'3NBBWfzZtZtszaXbitTKnrB2xXwv26Bn7H9')
4343
4444 func getAdminPub (keyAdminPub) = match getString(oracle, keyAdminPub) {
4545 case string: String =>
4646 fromBase58String(string)
4747 case nothing =>
4848 throw("Admin public key is empty")
4949 }
5050
5151
5252 let adminPubKey1 = getAdminPub(keyAdminPubKey1)
5353
5454 let adminPubKey2 = getAdminPub(keyAdminPubKey2)
5555
5656 let adminPubKey3 = getAdminPub(keyAdminPubKey3)
5757
5858 let admStartStop = base58'Kn7NpzaG12dLZgcHf2ipUftU6hbJygmrhFqQYE4B7ZK'
5959
6060 let admStaking = base58'Kn7NpzaG12dLZgcHf2ipUftU6hbJygmrhFqQYE4B7ZK'
6161
6262 let walletAddress = Address(base58'3NAGTtZz6WpupSN89NZD5rMZwwziZEg4Kx4')
6363
6464 let USDN = base58'8UrfDVd5GreeUwm7uPk7eYz1eMv376kzR52C6sANPkwS'
6565
6666 let EURN = base58'ECBCkHS68DckpBrzLeoRgYbFg7sCVqR176mPqbXsj9pA'
6767
6868 let stakingAssets = [toBase58String(USDN), toBase58String(EURN)]
6969
7070 let stakingUSDNNSBTAddress = Address(fromBase58String(valueOrErrorMessage(getString(oracle, keyUSDNNSBTAddress), "no usdn staking address")))
7171
7272 let stakingEURNAddress = Address(fromBase58String(valueOrErrorMessage(getString(oracle, keyEURNAddress), "no usdn staking address")))
7373
7474 let active = getBooleanValue(this, kActive)
7575
7676 let strAssetIdA = getStringValue(this, kAssetIdA)
7777
7878 let strAssetIdB = getStringValue(this, kAssetIdB)
7979
8080 let assetIdA = if ((strAssetIdA == "WAVES"))
8181 then unit
8282 else fromBase58String(strAssetIdA)
8383
8484 let assetIdB = if ((strAssetIdB == "WAVES"))
8585 then unit
8686 else fromBase58String(strAssetIdB)
8787
8888 let assetNameA = match assetIdA {
8989 case id: ByteVector =>
9090 value(assetInfo(id)).name
9191 case waves: Unit =>
9292 "WAVES"
9393 case _ =>
9494 throw("Match error")
9595 }
9696
9797 let assetNameB = match assetIdB {
9898 case id: ByteVector =>
9999 value(assetInfo(id)).name
100100 case waves: Unit =>
101101 "WAVES"
102102 case _ =>
103103 throw("Match error")
104104 }
105105
106106 let balanceA = getIntegerValue(this, kBalanceA)
107107
108108 let balanceB = getIntegerValue(this, kBalanceB)
109109
110110 let shareAssetId = fromBase58String(getStringValue(this, kShareAssetId))
111111
112112 let shareAssetSupply = getIntegerValue(this, kShareAssetSupply)
113113
114114 let invariant = getIntegerValue(this, kInvariant)
115115
116116 let fee = 500
117117
118118 let feeGovernance = 200
119119
120120 let feeScale6 = 1000000
121121
122122 let scale3 = 1000
123123
124124 let scale8 = 100000000
125125
126126 let scale16 = 10000000000000000
127127
128128 let slippageScale3 = 1000
129129
130130 let digits8 = 8
131131
132132 let dAppThreshold = 50
133133
134134 let dAppThresholdScale2 = 100
135135
136136 let exchangeRatioLimitMin = 90000000
137137
138138 let exchangeRatioLimitMax = 110000000
139139
140140 let alpha = 50
141141
142142 let alphaDigits = 2
143143
144144 let beta = 4600000000000000
145145
146146 func accountBalance (assetId) = match assetId {
147147 case id: ByteVector =>
148148 assetBalance(this, id)
149149 case waves: Unit =>
150150 wavesBalance(this).available
151151 case _ =>
152152 throw("Match error")
153153 }
154154
155155
156156 func stakedAmount (assetId) = {
157157 let stakedAmountCalculated = match assetId {
158158 case aId: ByteVector =>
159159 if ((aId == USDN))
160160 then getInteger(stakingUSDNNSBTAddress, ((("rpd_balance_" + toBase58String(aId)) + "_") + toString(this)))
161161 else if ((aId == EURN))
162162 then getInteger(stakingEURNAddress, ((("%s%s%s__stakingBalance__" + toBase58String(aId)) + "__") + toString(this)))
163163 else 0
164164 case _: Unit =>
165165 0
166166 case _ =>
167167 throw("Match error")
168168 }
169169 match stakedAmountCalculated {
170170 case i: Int =>
171171 i
172172 case _ =>
173173 0
174174 }
175175 }
176176
177177
178178 let stakedAmountA = stakedAmount(assetIdA)
179179
180180 let stakedAmountB = stakedAmount(assetIdB)
181181
182182 let availableBalanceA = (balanceA - stakedAmountA)
183183
184184 let availableBalanceB = (balanceB - stakedAmountB)
185185
186186 let accountBalanceWithStakedA = (accountBalance(assetIdA) + stakedAmountA)
187187
188188 let accountBalanceWithStakedB = (accountBalance(assetIdB) + stakedAmountB)
189189
190190 let hasEnoughBalance = if ((accountBalanceWithStakedA >= balanceA))
191191 then (accountBalanceWithStakedB >= balanceB)
192192 else false
193193
194194 func skewness (x,y) = ((fraction(scale16, x, y) + fraction(scale16, y, x)) / 2)
195195
196196
197197 func invariantCalc (x,y) = {
198198 let sk = skewness(x, y)
199199 (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)))
200200 }
201201
202202
203203 func calculateSendAmount (amountToSendEstimated,minTokenReceiveAmount,tokenReceiveAmount,tokenId) = {
204- let worstAllowedNewInvariantRatio = (scale8 - ((scale8 * 1) / 10000000))
204+ let worstAllowedNewInvariantRatio = (scale16 - ((scale16 * 1) / 10000000))
205205 let deltaBetweenMaxAndMinSendValue = (amountToSendEstimated - minTokenReceiveAmount)
206206 let x = (balanceA + tokenReceiveAmount)
207207 let y = (balanceB + tokenReceiveAmount)
208208 func getStepAmount (acc,step) = if ((acc._1 == -1))
209209 then {
210210 let amountToSend = (amountToSendEstimated - (((step * deltaBetweenMaxAndMinSendValue) / 3) / scale3))
211211 let stepInvariant = if ((tokenId == assetIdA))
212212 then invariantCalc(x, (balanceB - amountToSend))
213213 else invariantCalc((balanceA - amountToSend), y)
214214 if ((stepInvariant > invariant))
215215 then $Tuple2(amountToSend, stepInvariant)
216216 else $Tuple2(-1, 0)
217217 }
218218 else acc
219219
220220 let amountToSendMin = getStepAmount($Tuple2(-1, 0), 3000)
221221 if ((0 > amountToSendMin._1))
222222 then throw("Price is worse than minReceived")
223223 else {
224224 let invEstimated = if ((tokenId == assetIdA))
225225 then invariantCalc(x, (balanceB - amountToSendEstimated))
226226 else if ((tokenId == assetIdB))
227227 then invariantCalc((balanceA - amountToSendEstimated), y)
228228 else throw("Wrong asset in payment")
229229 if ((invariant > invEstimated))
230- then if ((worstAllowedNewInvariantRatio >= fraction(scale8, invariant, invEstimated)))
230+ then if ((worstAllowedNewInvariantRatio >= fraction(scale16, invariant, invEstimated)))
231231 then throw("The requested price is too not profitable for user")
232232 else {
233233 let a = {
234234 let $l = [25, 200, 500]
235235 let $s = size($l)
236236 let $acc0 = $Tuple2(-1, 0)
237237 func $f0_1 ($a,$i) = if (($i >= $s))
238238 then $a
239239 else getStepAmount($a, $l[$i])
240240
241241 func $f0_2 ($a,$i) = if (($i >= $s))
242242 then $a
243243 else throw("List size exceeds 3")
244244
245245 $f0_2($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3)
246246 }
247247 if ((0 > a._1))
248248 then amountToSendMin._1
249249 else a._1
250250 }
251251 else {
252252 let a = {
253253 let $l = [-500, -200, -25]
254254 let $s = size($l)
255255 let $acc0 = $Tuple2(-1, 0)
256256 func $f0_1 ($a,$i) = if (($i >= $s))
257257 then $a
258258 else getStepAmount($a, $l[$i])
259259
260260 func $f0_2 ($a,$i) = if (($i >= $s))
261261 then $a
262262 else throw("List size exceeds 3")
263263
264264 $f0_2($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3)
265265 }
266266 let tupleSendBetter = if ((0 > a._1))
267267 then $Tuple2(amountToSendEstimated, invEstimated)
268268 else a
269- if ((worstAllowedNewInvariantRatio >= fraction(scale8, invariant, tupleSendBetter._2)))
269+ if ((worstAllowedNewInvariantRatio >= fraction(scale16, invariant, tupleSendBetter._2)))
270270 then throw("The requested price is too not profitable for user")
271271 else tupleSendBetter._1
272272 }
273273 }
274274 }
275275
276276
277277 func getAssetInfo (assetId) = match assetId {
278278 case id: ByteVector =>
279279 let stringId = toBase58String(id)
280280 let info = valueOrErrorMessage(assetInfo(id), (("Asset " + stringId) + " doesn't exist"))
281281 $Tuple3(stringId, info.name, info.decimals)
282282 case waves: Unit =>
283283 $Tuple3("WAVES", "WAVES", 8)
284284 case _ =>
285285 throw("Match error")
286286 }
287287
288288
289289 func suspend (cause) = [BooleanEntry(kActive, false), StringEntry(kCause, cause)]
290290
291291
292292 func throwIsActive () = throw("DApp is already active")
293293
294294
295295 func isActive () = if (active)
296296 then unit
297297 else throw("DApp is inactive at this moment")
298298
299299
300300 func isAdminCall (i) = if (containsElement([adminPubKey1, adminPubKey2, adminPubKey3], i.callerPublicKey))
301301 then unit
302302 else throw("Only admin can call this function")
303303
304304
305305 func throwAssets () = throw(((("Incorrect assets attached. Expected: " + strAssetIdA) + " and ") + strAssetIdB))
306306
307307
308308 func throwOnePayment () = throw("One attached payment expected")
309309
310310
311311 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))
312312
313313
314314 func suspendSuspicious () = suspend(((((((((((((((("Suspicious state. Actual balances: " + toString(balanceA)) + " ") + assetNameA) + ", ") + toString(balanceB)) + " ") + assetNameB) + ". State: ") + toString(accountBalance(assetIdA))) + " ") + assetNameA) + ", ") + toString(accountBalance(assetIdB))) + " ") + assetNameB))
315315
316316
317317 func calcStakingFuncAndAddres (stake,assetId) = if (stake)
318318 then if ((assetId == USDN))
319319 then $Tuple2("lockNeutrino", stakingUSDNNSBTAddress)
320320 else $Tuple2("startStaking", stakingEURNAddress)
321321 else if ((assetId == USDN))
322322 then $Tuple2("unlockNeutrino", stakingUSDNNSBTAddress)
323323 else $Tuple2("stopStaking", stakingEURNAddress)
324324
325325
326326 func calcStakingParams (stake,amount,assetId) = if (stake)
327327 then {
328- let $t098529918 = calcStakingFuncAndAddres(stake, assetId)
329- let call = $t098529918._1
330- let stakingAddr = $t098529918._2
328+ let $t098569922 = calcStakingFuncAndAddres(stake, assetId)
329+ let call = $t098569922._1
330+ let stakingAddr = $t098569922._2
331331 $Tuple4(call, stakingAddr, nil, [AttachedPayment(assetId, amount)])
332332 }
333333 else {
334- let $t01000410070 = calcStakingFuncAndAddres(stake, assetId)
335- let call = $t01000410070._1
336- let stakingAddr = $t01000410070._2
334+ let $t01000810074 = calcStakingFuncAndAddres(stake, assetId)
335+ let call = $t01000810074._1
336+ let stakingAddr = $t01000810074._2
337337 $Tuple4(call, stakingAddr, [amount, toBase58String(assetId)], nil)
338338 }
339339
340340
341341 @Callable(i)
342342 func init () = {
343- let $t01017510252 = $Tuple2(i.payments[0].amount, i.payments[0].assetId)
344- let pmtAmountA = $t01017510252._1
345- let pmtAssetIdA = $t01017510252._2
346- let $t01025710334 = $Tuple2(i.payments[1].amount, i.payments[1].assetId)
347- let pmtAmountB = $t01025710334._1
348- let pmtAssetIdB = $t01025710334._2
349- let $t01033910416 = getAssetInfo(pmtAssetIdA)
350- let pmtStrAssetIdA = $t01033910416._1
351- let pmtAssetNameA = $t01033910416._2
352- let pmtDecimalsA = $t01033910416._3
353- let $t01042110498 = getAssetInfo(pmtAssetIdB)
354- let pmtStrAssetIdB = $t01042110498._1
355- let pmtAssetNameB = $t01042110498._2
356- let pmtDecimalsB = $t01042110498._3
343+ let $t01017910256 = $Tuple2(i.payments[0].amount, i.payments[0].assetId)
344+ let pmtAmountA = $t01017910256._1
345+ let pmtAssetIdA = $t01017910256._2
346+ let $t01026110338 = $Tuple2(i.payments[1].amount, i.payments[1].assetId)
347+ let pmtAmountB = $t01026110338._1
348+ let pmtAssetIdB = $t01026110338._2
349+ let $t01034310420 = getAssetInfo(pmtAssetIdA)
350+ let pmtStrAssetIdA = $t01034310420._1
351+ let pmtAssetNameA = $t01034310420._2
352+ let pmtDecimalsA = $t01034310420._3
353+ let $t01042510502 = getAssetInfo(pmtAssetIdB)
354+ let pmtStrAssetIdB = $t01042510502._1
355+ let pmtAssetNameB = $t01042510502._2
356+ let pmtDecimalsB = $t01042510502._3
357357 if (isDefined(getBoolean(this, kActive)))
358358 then throwIsActive()
359359 else if ((pmtAssetIdA == pmtAssetIdB))
360360 then throw("Assets must be different")
361361 else {
362362 let shareName = ((("s" + take(pmtAssetNameA, 7)) + "_") + take(pmtAssetNameB, 7))
363363 let shareDescription = ((((("ShareToken of SwopFi protocol for " + pmtAssetNameA) + " and ") + pmtAssetNameB) + " at address ") + toString(this))
364364 let shareDecimals = ((pmtDecimalsA + pmtDecimalsB) / 2)
365365 let shareInitialSupply = fraction(pow(pmtAmountA, pmtDecimalsA, 5, 1, pmtDecimalsA, DOWN), pow(pmtAmountB, pmtDecimalsB, 5, 1, pmtDecimalsB, DOWN), pow(10, 0, shareDecimals, 0, 0, DOWN))
366366 let shareIssue = Issue(shareName, shareDescription, shareInitialSupply, shareDecimals, true)
367367 let shareIssueId = calculateAssetId(shareIssue)
368368 let invariantCalculated = invariantCalc(pmtAmountA, pmtAmountB)
369369 let stake1 = if (containsElement(stakingAssets, pmtStrAssetIdA))
370370 then invoke(this, "stakeUnstake", [true, pmtAmountA, pmtStrAssetIdA], nil)
371371 else 0
372372 if ((stake1 == stake1))
373373 then {
374374 let stake2 = if (containsElement(stakingAssets, pmtStrAssetIdB))
375375 then invoke(this, "stakeUnstake", [true, pmtAmountB, pmtStrAssetIdB], nil)
376376 else 0
377377 if ((stake2 == stake2))
378378 then [StringEntry(kVersion, version), BooleanEntry(kActive, true), StringEntry(kAssetIdA, pmtStrAssetIdA), StringEntry(kAssetIdB, pmtStrAssetIdB), IntegerEntry(kBalanceA, pmtAmountA), IntegerEntry(kBalanceB, pmtAmountB), IntegerEntry(kInvariant, invariantCalculated), IntegerEntry(kFee, fee), IntegerEntry(kFeeScaleDelimiter, feeScale6), shareIssue, StringEntry(kShareAssetId, toBase58String(shareIssueId)), IntegerEntry(kShareAssetSupply, shareInitialSupply), ScriptTransfer(i.caller, shareInitialSupply, shareIssueId)]
379379 else throw("Strict value is not equal to itself.")
380380 }
381381 else throw("Strict value is not equal to itself.")
382382 }
383383 }
384384
385385
386386
387387 @Callable(i)
388388 func replenishWithTwoTokens () = valueOrElse(isActive(), {
389389 let pmtAssetIdA = i.payments[0].assetId
390390 let pmtAssetIdB = i.payments[1].assetId
391391 let ratioShareTokensInA = fraction(scale8, i.payments[0].amount, balanceA)
392392 let ratioShareTokensInB = fraction(scale8, i.payments[1].amount, balanceB)
393- let $t01307913156 = getAssetInfo(pmtAssetIdA)
394- let pmtStrAssetIdA = $t01307913156._1
395- let pmtAssetNameA = $t01307913156._2
396- let pmtDecimalsA = $t01307913156._3
397- let $t01316113278 = getAssetInfo(pmtAssetIdB)
398- let pmtStrAssetIdB = $t01316113278._1
399- let pmtAssetNameB = $t01316113278._2
400- let pmtDecimalsB = $t01316113278._3
401- let $t01328313787 = if ((ratioShareTokensInB > ratioShareTokensInA))
393+ let $t01308313160 = getAssetInfo(pmtAssetIdA)
394+ let pmtStrAssetIdA = $t01308313160._1
395+ let pmtAssetNameA = $t01308313160._2
396+ let pmtDecimalsA = $t01308313160._3
397+ let $t01316513282 = getAssetInfo(pmtAssetIdB)
398+ let pmtStrAssetIdB = $t01316513282._1
399+ let pmtAssetNameB = $t01316513282._2
400+ let pmtDecimalsB = $t01316513282._3
401+ let $t01328713791 = if ((ratioShareTokensInB > ratioShareTokensInA))
402402 then {
403403 let pmt = fraction(balanceB, ratioShareTokensInA, scale8, CEILING)
404404 $Tuple5(i.payments[0].amount, pmt, (i.payments[1].amount - pmt), pmtAssetIdB, ratioShareTokensInA)
405405 }
406406 else {
407407 let pmt = fraction(balanceA, ratioShareTokensInB, scale8, CEILING)
408408 $Tuple5(pmt, i.payments[1].amount, (i.payments[0].amount - pmt), pmtAssetIdA, ratioShareTokensInB)
409409 }
410- let pmtAmountA = $t01328313787._1
411- let pmtAmountB = $t01328313787._2
412- let change = $t01328313787._3
413- let changeAssetId = $t01328313787._4
414- let shareTokenRatio = $t01328313787._5
410+ let pmtAmountA = $t01328713791._1
411+ let pmtAmountB = $t01328713791._2
412+ let change = $t01328713791._3
413+ let changeAssetId = $t01328713791._4
414+ let shareTokenRatio = $t01328713791._5
415415 let shareTokenToPayAmount = fraction(shareTokenRatio, shareAssetSupply, scale8)
416416 if ((size(i.payments) != 2))
417417 then throw("Two attached assets expected")
418418 else if (if ((pmtAssetIdA != assetIdA))
419419 then true
420420 else (pmtAssetIdB != assetIdB))
421421 then throwAssets()
422422 else if ((shareTokenToPayAmount == 0))
423423 then throw("Too small amount to replenish")
424424 else if ((0 > change))
425425 then throw("Change < 0")
426426 else if (!(hasEnoughBalance))
427427 then ([ScriptTransfer(i.caller, pmtAmountA, pmtAssetIdA), ScriptTransfer(i.caller, pmtAmountB, pmtAssetIdB)] ++ suspendSuspicious())
428428 else {
429429 let stake1 = if (containsElement(stakingAssets, pmtStrAssetIdA))
430430 then invoke(this, "stakeUnstake", [true, pmtAmountA, pmtStrAssetIdA], nil)
431431 else 0
432432 if ((stake1 == stake1))
433433 then {
434434 let stake2 = if (containsElement(stakingAssets, pmtStrAssetIdB))
435435 then invoke(this, "stakeUnstake", [true, pmtAmountB, pmtStrAssetIdB], nil)
436436 else 0
437437 if ((stake2 == stake2))
438438 then [IntegerEntry(kBalanceA, (balanceA + pmtAmountA)), IntegerEntry(kBalanceB, (balanceB + pmtAmountB)), IntegerEntry(kShareAssetSupply, (shareAssetSupply + shareTokenToPayAmount)), IntegerEntry(kInvariant, invariantCalc((balanceA + pmtAmountA), (balanceB + pmtAmountB))), Reissue(shareAssetId, shareTokenToPayAmount, true), ScriptTransfer(i.caller, shareTokenToPayAmount, shareAssetId), ScriptTransfer(i.caller, change, changeAssetId)]
439439 else throw("Strict value is not equal to itself.")
440440 }
441441 else throw("Strict value is not equal to itself.")
442442 }
443443 })
444444
445445
446446
447447 @Callable(i)
448448 func replenishWithOneToken (virtualSwapTokenPay,virtualSwapTokenGet) = valueOrElse(isActive(), {
449- let $t01543615511 = $Tuple2(i.payments[0].amount, i.payments[0].assetId)
450- let pmtAmount = $t01543615511._1
451- let pmtAssetId = $t01543615511._2
452- let $t01551615589 = getAssetInfo(pmtAssetId)
453- let pmtStrAssetId = $t01551615589._1
454- let pmtAssetName = $t01551615589._2
455- let pmtDecimals = $t01551615589._3
449+ let $t01544015515 = $Tuple2(i.payments[0].amount, i.payments[0].assetId)
450+ let pmtAmount = $t01544015515._1
451+ let pmtAssetId = $t01544015515._2
452+ let $t01552015593 = getAssetInfo(pmtAssetId)
453+ let pmtStrAssetId = $t01552015593._1
454+ let pmtAssetName = $t01552015593._2
455+ let pmtDecimals = $t01552015593._3
456456 let pmtMinThreshold = 5000000
457457 let thresholdValueForMinTolerance = 50000000
458458 let tolerance = if ((thresholdValueForMinTolerance > pmtAmount))
459459 then 100000
460460 else 1
461461 let slippageValueMinForReplenish = (scale8 - ((scale8 * tolerance) / 10000000))
462462 let slippageValueMaxForReplenish = (scale8 + ((scale8 * tolerance) / 10000000))
463463 let slippageValueMinForSwap = (scale8 - ((scale8 * 1) / 10000000))
464464 if ((pmtMinThreshold > pmtAmount))
465465 then throw((((("Payment amount " + toString(pmtAmount)) + " does not exceed the minimum amount of ") + toString(pmtMinThreshold)) + " tokens"))
466466 else if ((size(i.payments) != 1))
467467 then throwOnePayment()
468468 else if (!(hasEnoughBalance))
469469 then ([ScriptTransfer(i.caller, pmtAmount, pmtAssetId)] ++ suspendSuspicious())
470470 else if (if ((pmtAssetId != assetIdA))
471471 then (pmtAssetId != assetIdB)
472472 else false)
473473 then throwAssets()
474474 else {
475- let $t01652717292 = if ((pmtAssetId == assetIdA))
476- then $Tuple7((pmtAmount - virtualSwapTokenPay), virtualSwapTokenGet, (balanceA + virtualSwapTokenPay), (balanceB - virtualSwapTokenGet), invariantCalc((balanceA + pmtAmount), balanceB), (balanceA + pmtAmount), balanceB)
477- else $Tuple7(virtualSwapTokenGet, (pmtAmount - virtualSwapTokenPay), (balanceA - virtualSwapTokenGet), (balanceB + virtualSwapTokenPay), invariantCalc(balanceA, (balanceB + pmtAmount)), balanceA, (balanceB + pmtAmount))
478- let virtualReplenishA = $t01652717292._1
479- let virtualReplenishB = $t01652717292._2
480- let balanceAfterSwapA = $t01652717292._3
481- let balanceAfterSwapB = $t01652717292._4
482- let invariantCalculated = $t01652717292._5
483- let newBalanceA = $t01652717292._6
484- let newBalanceB = $t01652717292._7
485- let newBalanceEntry = if ((pmtAssetId == assetIdA))
486- then IntegerEntry(kBalanceA, newBalanceA)
487- else IntegerEntry(kBalanceB, newBalanceB)
475+ let $t01653117137 = if ((pmtAssetId == assetIdA))
476+ then $Tuple6((pmtAmount - virtualSwapTokenPay), virtualSwapTokenGet, (balanceA + virtualSwapTokenPay), (balanceB - virtualSwapTokenGet), (balanceA + pmtAmount), balanceB)
477+ else $Tuple6(virtualSwapTokenGet, (pmtAmount - virtualSwapTokenPay), (balanceA - virtualSwapTokenGet), (balanceB + virtualSwapTokenPay), balanceA, (balanceB + pmtAmount))
478+ let virtualReplenishA = $t01653117137._1
479+ let virtualReplenishB = $t01653117137._2
480+ let balanceAfterSwapA = $t01653117137._3
481+ let balanceAfterSwapB = $t01653117137._4
482+ let newBalanceA = $t01653117137._5
483+ let newBalanceB = $t01653117137._6
488484 let invariantNew = invariantCalc(balanceAfterSwapA, balanceAfterSwapB)
489- let invariantEstimatedRatio = fraction(scale8, invariant, invariantNew)
490485 let ratioVirtualBalanceToVirtualReplenish = (fraction((scale8 * scale8), balanceAfterSwapA, balanceAfterSwapB) / fraction(scale8, virtualReplenishA, virtualReplenishB))
491486 let dAppThresholdAmount = fraction((newBalanceA + newBalanceB), dAppThreshold, (2 * dAppThresholdScale2))
492- if (if ((slippageValueMinForSwap >= invariantEstimatedRatio))
487+ if (if ((slippageValueMinForSwap >= fraction(scale8, invariant, invariantNew)))
493488 then true
494489 else (invariant > invariantNew))
495- then throw((((((("Incorrect virtualSwapTokenPay or virtualSwapTokenGet value" + " invariantEstimatedRatio: ") + toString(invariantEstimatedRatio)) + " invariantNew: ") + toString(invariantNew)) + " invariant: ") + toString(invariant)))
490+ then throw("Incorrect virtualSwapTokenPay or virtualSwapTokenGet value")
496491 else if (if ((slippageValueMinForReplenish > ratioVirtualBalanceToVirtualReplenish))
497492 then true
498493 else (ratioVirtualBalanceToVirtualReplenish > slippageValueMaxForReplenish))
499494 then throw("Swap with virtualSwapTokenPay and virtualSwapTokenGet is possible, but ratio after virtual swap is incorrect")
500495 else if (if ((dAppThresholdAmount > newBalanceA))
501496 then true
502497 else (dAppThresholdAmount > newBalanceB))
503498 then throwThreshold(dAppThresholdAmount, newBalanceA, newBalanceB)
504499 else {
500+ let ratioShareTokensInA = fraction(virtualReplenishA, scale8, balanceAfterSwapA)
501+ let ratioShareTokensInB = fraction(virtualReplenishB, scale8, balanceAfterSwapB)
502+ let shareTokenToPayAmount = fraction(min([ratioShareTokensInA, ratioShareTokensInB]), shareAssetSupply, scale8)
503+ let shareTokenToPayAmountAfterFee = fraction(shareTokenToPayAmount, (feeScale6 - (fee / 2)), feeScale6)
504+ let shareTokenGovernanceReward = fraction(shareTokenToPayAmount, (feeGovernance / 2), feeScale6)
505+ let governanceRewardTokenA = fraction(shareTokenGovernanceReward, balanceA, shareAssetSupply)
506+ let governanceRewardTokenB = fraction(shareTokenGovernanceReward, balanceB, shareAssetSupply)
507+ let $t01913919434 = if ((pmtStrAssetId == strAssetIdA))
508+ then $Tuple3((pmtAmount - governanceRewardTokenA), governanceRewardTokenB, strAssetIdB)
509+ else $Tuple3((pmtAmount - governanceRewardTokenB), governanceRewardTokenA, strAssetIdA)
510+ let stakeAmount = $t01913919434._1
511+ let unstakeAmount = $t01913919434._2
512+ let unstakeAsset = $t01913919434._3
505513 let stake1 = if (containsElement(stakingAssets, pmtStrAssetId))
506- then invoke(this, "stakeUnstake", [true, pmtAmount, pmtStrAssetId], nil)
514+ then invoke(this, "stakeUnstake", [true, stakeAmount, pmtStrAssetId], nil)
507515 else 0
508516 if ((stake1 == stake1))
509517 then {
510- let ratioShareTokensInA = fraction(virtualReplenishA, scale8, balanceAfterSwapA)
511- let ratioShareTokensInB = fraction(virtualReplenishB, scale8, balanceAfterSwapB)
512- let shareTokenToPayAmount = fraction(min([ratioShareTokensInA, ratioShareTokensInB]), shareAssetSupply, scale8)
513-[Reissue(shareAssetId, shareTokenToPayAmount, true), ScriptTransfer(i.caller, shareTokenToPayAmount, shareAssetId), IntegerEntry(kShareAssetSupply, (shareAssetSupply + shareTokenToPayAmount)), newBalanceEntry, IntegerEntry(kInvariant, invariantCalculated)]
518+ let stake2 = if (containsElement(stakingAssets, unstakeAsset))
519+ then invoke(this, "stakeUnstake", [false, unstakeAmount, unstakeAsset], nil)
520+ else 0
521+ if ((stake2 == stake2))
522+ then [Reissue(shareAssetId, shareTokenToPayAmountAfterFee, true), ScriptTransfer(i.caller, shareTokenToPayAmountAfterFee, shareAssetId), ScriptTransfer(walletAddress, governanceRewardTokenA, assetIdA), ScriptTransfer(walletAddress, governanceRewardTokenB, assetIdB), IntegerEntry(kBalanceA, (newBalanceA - governanceRewardTokenA)), IntegerEntry(kBalanceB, (newBalanceB - governanceRewardTokenB)), IntegerEntry(kShareAssetSupply, (shareAssetSupply + shareTokenToPayAmountAfterFee)), IntegerEntry(kInvariant, invariantCalc((newBalanceA - governanceRewardTokenA), (newBalanceB - governanceRewardTokenB)))]
523+ else throw("Strict value is not equal to itself.")
514524 }
515525 else throw("Strict value is not equal to itself.")
516526 }
517527 }
518528 })
519529
520530
521531
522532 @Callable(i)
523533 func withdraw () = valueOrElse(isActive(), {
524- let $t01972119796 = $Tuple2(i.payments[0].amount, i.payments[0].assetId)
525- let pmtAmount = $t01972119796._1
526- let pmtAssetId = $t01972119796._2
534+ let $t02061320688 = $Tuple2(i.payments[0].amount, i.payments[0].assetId)
535+ let pmtAmount = $t02061320688._1
536+ let pmtAssetId = $t02061320688._2
527537 let amountToPayA = fraction(pmtAmount, balanceA, shareAssetSupply)
528538 let amountToPayB = fraction(pmtAmount, balanceB, shareAssetSupply)
529539 let invariantCalculated = invariantCalc((balanceA - amountToPayA), (balanceB - amountToPayB))
530540 if ((size(i.payments) != 1))
531541 then throwOnePayment()
532542 else if ((pmtAssetId != shareAssetId))
533543 then throw(("Incorrect asset attached. Expected: " + toBase58String(shareAssetId)))
534544 else if (!(hasEnoughBalance))
535545 then ([ScriptTransfer(i.caller, pmtAmount, pmtAssetId)] ++ suspendSuspicious())
536546 else {
537547 let stake1 = if (containsElement(stakingAssets, strAssetIdA))
538548 then invoke(this, "stakeUnstake", [false, amountToPayA, strAssetIdA], nil)
539549 else 0
540550 if ((stake1 == stake1))
541551 then {
542552 let stake2 = if (containsElement(stakingAssets, strAssetIdB))
543553 then invoke(this, "stakeUnstake", [false, amountToPayB, strAssetIdB], nil)
544554 else 0
545555 if ((stake2 == stake2))
546556 then [IntegerEntry(kBalanceA, (balanceA - amountToPayA)), IntegerEntry(kBalanceB, (balanceB - amountToPayB)), IntegerEntry(kShareAssetSupply, (shareAssetSupply - pmtAmount)), IntegerEntry(kInvariant, invariantCalculated), Burn(shareAssetId, pmtAmount), ScriptTransfer(i.caller, amountToPayA, assetIdA), ScriptTransfer(i.caller, amountToPayB, assetIdB)]
547557 else throw("Strict value is not equal to itself.")
548558 }
549559 else throw("Strict value is not equal to itself.")
550560 }
551561 })
552562
553563
554564
555565 @Callable(i)
556566 func exchange (estimatedAmountToReceive,minAmountToReceive) = valueOrElse(isActive(), {
557- let $t02125921334 = $Tuple2(i.payments[0].amount, i.payments[0].assetId)
558- let pmtAmount = $t02125921334._1
559- let pmtAssetId = $t02125921334._2
567+ let $t02215122226 = $Tuple2(i.payments[0].amount, i.payments[0].assetId)
568+ let pmtAmount = $t02215122226._1
569+ let pmtAssetId = $t02215122226._2
560570 if ((0 >= estimatedAmountToReceive))
561571 then throw(("Estimated amount must be positive. Actual: " + toString(estimatedAmountToReceive)))
562572 else if ((minAmountToReceive > estimatedAmountToReceive))
563- then throw(((("Minimal amount can't be greater than estimated. Estimated: " + toString(estimatedAmountToReceive)) + ". Minimal: ") + toString(minAmountToReceive)))
573+ then throw("Minimal amount can't be greater than estimated.")
564574 else if ((size(i.payments) != 1))
565575 then throwOnePayment()
566576 else if (!(hasEnoughBalance))
567577 then ([ScriptTransfer(i.caller, pmtAmount, pmtAssetId)] ++ suspendSuspicious())
568578 else if (if ((pmtAssetId != assetIdA))
569579 then (pmtAssetId != assetIdB)
570580 else false)
571581 then throwAssets()
572582 else if ((10000000 > pmtAmount))
573583 then throw("Only swap of 10.000000 or more tokens is allowed")
574584 else if (if ((exchangeRatioLimitMin > fraction(scale8, minAmountToReceive, pmtAmount)))
575585 then true
576586 else (fraction(scale8, estimatedAmountToReceive, pmtAmount) > exchangeRatioLimitMax))
577587 then throw("Incorrect args and pmt ratio")
578588 else {
579589 let sendAssetId = if ((pmtAssetId == assetIdA))
580590 then assetIdB
581591 else assetIdA
582592 let amount = calculateSendAmount(estimatedAmountToReceive, minAmountToReceive, pmtAmount, pmtAssetId)
583593 let governanceReward = fraction(amount, feeGovernance, feeScale6)
584594 let amountMinusFee = fraction(amount, (feeScale6 - fee), feeScale6)
585- let $t02268222944 = if ((pmtAssetId == assetIdA))
595+ let $t02347623738 = if ((pmtAssetId == assetIdA))
586596 then $Tuple2((balanceA + pmtAmount), ((balanceB - amountMinusFee) - governanceReward))
587597 else $Tuple2(((balanceA - amountMinusFee) - governanceReward), (balanceB + pmtAmount))
588- let newBalanceA = $t02268222944._1
589- let newBalanceB = $t02268222944._2
598+ let newBalanceA = $t02347623738._1
599+ let newBalanceB = $t02347623738._2
590600 let dAppThresholdAmount = fraction((newBalanceA + newBalanceB), dAppThreshold, (2 * dAppThresholdScale2))
591601 if (if ((dAppThresholdAmount > newBalanceA))
592602 then true
593603 else (dAppThresholdAmount > newBalanceB))
594604 then throwThreshold(dAppThresholdAmount, newBalanceA, newBalanceB)
595605 else {
596- let $t02324223315 = getAssetInfo(pmtAssetId)
597- let pmtStrAssetId = $t02324223315._1
598- let pmtAssetName = $t02324223315._2
599- let pmtDecimals = $t02324223315._3
600- let $t02332823405 = getAssetInfo(sendAssetId)
601- let sendStrAssetId = $t02332823405._1
602- let sendAssetName = $t02332823405._2
603- let sendDecimals = $t02332823405._3
606+ let $t02403624109 = getAssetInfo(pmtAssetId)
607+ let pmtStrAssetId = $t02403624109._1
608+ let pmtAssetName = $t02403624109._2
609+ let pmtDecimals = $t02403624109._3
610+ let $t02412224199 = getAssetInfo(sendAssetId)
611+ let sendStrAssetId = $t02412224199._1
612+ let sendAssetName = $t02412224199._2
613+ let sendDecimals = $t02412224199._3
604614 let stake1 = if (containsElement(stakingAssets, pmtStrAssetId))
605615 then invoke(this, "stakeUnstake", [true, pmtAmount, pmtStrAssetId], nil)
606616 else 0
607617 if ((stake1 == stake1))
608618 then {
609619 let stake2 = if (containsElement(stakingAssets, sendStrAssetId))
610620 then invoke(this, "stakeUnstake", [false, (amountMinusFee + governanceReward), sendStrAssetId], nil)
611621 else 0
612622 if ((stake2 == stake2))
613623 then [IntegerEntry(kBalanceA, newBalanceA), IntegerEntry(kBalanceB, newBalanceB), IntegerEntry(kInvariant, invariantCalc(newBalanceA, newBalanceB)), ScriptTransfer(i.caller, amountMinusFee, sendAssetId), ScriptTransfer(walletAddress, governanceReward, sendAssetId)]
614624 else throw("Strict value is not equal to itself.")
615625 }
616626 else throw("Strict value is not equal to itself.")
617627 }
618628 }
619629 })
620630
621631
622632
623633 @Callable(i)
624634 func shutdown () = valueOrElse(isAdminCall(i), if (!(active))
625635 then throw(("DApp is already suspended. Cause: " + valueOrElse(getString(this, kCause), "the cause wasn't specified")))
626636 else suspend("Paused by admin"))
627637
628638
629639
630640 @Callable(i)
631641 func activate () = valueOrElse(isAdminCall(i), if (active)
632642 then throwIsActive()
633643 else [BooleanEntry(kActive, true), DeleteEntry(kCause)])
634644
635645
636646
637647 @Callable(i)
638648 func takeIntoAccountExtraFunds () = valueOrElse(isActive(), {
639649 let amountEnrollA = (accountBalanceWithStakedA - balanceA)
640650 let amountEnrollB = (accountBalanceWithStakedB - balanceB)
641651 let invariantNew = invariantCalc((balanceA + amountEnrollA), (balanceB + amountEnrollB))
642652 if ((i.caller != walletAddress))
643653 then throw("Only the wallet can call this function")
644654 else if (if ((0 > amountEnrollA))
645655 then true
646656 else (0 > amountEnrollB))
647657 then suspend("Enroll amount negative")
648658 else if (if ((amountEnrollA == 0))
649659 then (amountEnrollB == 0)
650660 else false)
651661 then throw("No money to take")
652662 else {
653663 let stake1 = if (if (containsElement(stakingAssets, strAssetIdA))
654664 then (amountEnrollA > 0)
655665 else false)
656666 then invoke(this, "stakeUnstake", [true, amountEnrollA, strAssetIdA], nil)
657667 else 0
658668 if ((stake1 == stake1))
659669 then {
660670 let stake2 = if (if (containsElement(stakingAssets, strAssetIdB))
661671 then (amountEnrollB > 0)
662672 else false)
663673 then invoke(this, "stakeUnstake", [true, amountEnrollB, strAssetIdB], nil)
664674 else 0
665675 if ((stake2 == stake2))
666676 then [IntegerEntry(kInvariant, invariantNew), IntegerEntry(kBalanceA, (balanceA + amountEnrollA)), IntegerEntry(kBalanceB, (balanceB + amountEnrollB)), IntegerEntry(("last_income_" + strAssetIdA), amountEnrollA), IntegerEntry(("last_income_" + strAssetIdB), amountEnrollB)]
667677 else throw("Strict value is not equal to itself.")
668678 }
669679 else throw("Strict value is not equal to itself.")
670680 }
671681 })
672682
673683
674684
675685 @Callable(i)
676686 func stakeUnstake (stake,amount,assetIdString) = if ((i.caller != this))
677687 then throw("Only contract itself can invoke this function")
678688 else {
679- let $t02621726320 = calcStakingParams(stake, amount, fromBase58String(assetIdString))
680- let call = $t02621726320._1
681- let addr = $t02621726320._2
682- let params = $t02621726320._3
683- let payments = $t02621726320._4
689+ let $t02701127114 = calcStakingParams(stake, amount, fromBase58String(assetIdString))
690+ let call = $t02701127114._1
691+ let addr = $t02701127114._2
692+ let params = $t02701127114._3
693+ let payments = $t02701127114._4
684694 let inv = invoke(addr, call, params, payments)
685695 if ((inv == inv))
686696 then nil
687697 else throw("Strict value is not equal to itself.")
688698 }
689699
690700
691701 @Verifier(tx)
692702 func verify () = {
693703 let multiSignedByAdmins = {
694704 let adminPubKey1Signed = if (sigVerify(tx.bodyBytes, tx.proofs[0], adminPubKey1))
695705 then 1
696706 else 0
697707 let adminPubKey2Signed = if (sigVerify(tx.bodyBytes, tx.proofs[1], adminPubKey2))
698708 then 1
699709 else 0
700710 let adminPubKey3Signed = if (sigVerify(tx.bodyBytes, tx.proofs[2], adminPubKey3))
701711 then 1
702712 else 0
703713 (((adminPubKey1Signed + adminPubKey2Signed) + adminPubKey3Signed) >= 2)
704714 }
705715 match tx {
706716 case inv: InvokeScriptTransaction =>
707717 let callTakeIntoAccount = if ((inv.dApp == this))
708718 then (inv.function == "takeIntoAccountExtraFunds")
709719 else false
710720 let signedByAdmin = if (if (if (sigVerify(tx.bodyBytes, tx.proofs[0], adminPubKey1))
711721 then true
712722 else sigVerify(tx.bodyBytes, tx.proofs[0], adminPubKey2))
713723 then true
714724 else sigVerify(tx.bodyBytes, tx.proofs[0], adminPubKey3))
715725 then true
716726 else sigVerify(tx.bodyBytes, tx.proofs[0], admStaking)
717727 if (if (callTakeIntoAccount)
718728 then signedByAdmin
719729 else false)
720730 then true
721731 else multiSignedByAdmins
722732 case _ =>
723733 multiSignedByAdmins
724734 }
725735 }
726736

github/deemru/w8io/169f3d6 
109.10 ms