tx · aK6VykmbRS8JorCBzLxarS72x4eMGBMTqPYyVrkmXJW

3N5Xd7QVQZWntaJwha9Kg42is626GUPjtUW:  -0.03900000 Waves

2022.09.07 11:18 [2218442] smart account 3N5Xd7QVQZWntaJwha9Kg42is626GUPjtUW > SELF 0.00000000 Waves

{ "type": 13, "id": "aK6VykmbRS8JorCBzLxarS72x4eMGBMTqPYyVrkmXJW", "fee": 3900000, "feeAssetId": null, "timestamp": 1662538756502, "version": 2, "chainId": 84, "sender": "3N5Xd7QVQZWntaJwha9Kg42is626GUPjtUW", "senderPublicKey": "DfbjpZJBbZwnUKysUkxCbWTE1ZWuoUb6Y6BZdu5iAE8j", "proofs": [ "5wYdooP52YoWJmovL52DsgbGEPttykA1LTgp5pNvPcC47tzDLccuzvsWWFZL5wHNbDHzfmwChEBVH1UF1m3XDqyY", "2FTRMvmgsFAHz7rxyjvybHE4UXsq3Y8bYaBwxERm5LapvcGVCT6PHtaECqfAC8GrcMLjPobY52hE8zgRaC63yZrp" ], "script": "base64:AAIFAAAAAAAAACkIAhIDCgEEEgASBAoCAQESABIECgIBARIAEgASABIDCgEBEgUKAwQBCAAAAGEAAAAAB3ZlcnNpb24CAAAABTIuMC4wAAAAAAhrVmVyc2lvbgIAAAAHdmVyc2lvbgAAAAAHa0FjdGl2ZQIAAAAGYWN0aXZlAAAAAAlrQXNzZXRJZEECAAAACkFfYXNzZXRfaWQAAAAACWtBc3NldElkQgIAAAAKQl9hc3NldF9pZAAAAAAJa0JhbGFuY2VBAgAAAA9BX2Fzc2V0X2JhbGFuY2UAAAAACWtCYWxhbmNlQgIAAAAPQl9hc3NldF9iYWxhbmNlAAAAAA1rU2hhcmVBc3NldElkAgAAAA5zaGFyZV9hc3NldF9pZAAAAAARa1NoYXJlQXNzZXRTdXBwbHkCAAAAEnNoYXJlX2Fzc2V0X3N1cHBseQAAAAAEa0ZlZQIAAAAKY29tbWlzc2lvbgAAAAAKa0ludmFyaWFudAIAAAAJaW52YXJpYW50AAAAAA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J5QWRtaW5zBQAAABNtdWx0aVNpZ25lZEJ5QWRtaW5zCidljQ==", "height": 2218442, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 7PZS4pQoYkoJJbda7TW5S7AfASibGiArTje36GH5sSHS Next: CbYtV3qbrNkxmttDqXF6W9FuHHsSeaH1gkuKxoS7YJiH Diff:
OldNewDifferences
3535
3636 let kUserSwopInGov = "_SWOP_amount"
3737
38+let kFirstHarvest = "first_harvest"
39+
40+let kFirstHarvestHeight = "first_harvest_height"
41+
42+let kShareLimit = "share_limit_on_first_harvest"
43+
44+let kBasePeriod = "base_period"
45+
46+let kPeriodLength = "period_length"
47+
48+let kStartHeight = "start_height"
49+
3850 let kAdminPubKey1 = "admin_pub_1"
3951
4052 let kAdminPubKey2 = "admin_pub_2"
4658 let kMoneyBoxAddress = "money_box_address"
4759
4860 let kGovAddress = "governance_address"
61+
62+let kVotingAddress = "voting_address"
4963
5064 let oracle = Address(base58'3NBBWfzZtZtszaXbitTKnrB2xXwv26Bn7H9')
5165
7185
7286 let stakingUSDNAddress = Address(getBase58FromOracle(kUSDNAddress))
7387
88+let votingAddress = Address(getBase58FromOracle(kVotingAddress))
89+
7490 let USDN = base58'8UrfDVd5GreeUwm7uPk7eYz1eMv376kzR52C6sANPkwS'
7591
7692 let stakingAssets = [toBase58String(USDN)]
93+
94+let basePeriod = valueOrErrorMessage(getInteger(votingAddress, kBasePeriod), "Empty kBasePeriod")
95+
96+let startHeight = valueOrErrorMessage(getInteger(votingAddress, kStartHeight), "Empty kStartHeight")
97+
98+let periodLength = valueOrErrorMessage(getInteger(votingAddress, kPeriodLength), "Empty kPeriodLength")
99+
100+let firstHarvestEndPeriod = ((basePeriod + ((height - startHeight) / periodLength)) + 3)
77101
78102 let active = getBooleanValue(this, kActive)
79103
323347
324348 func calcStakingParams (stake,amount,assetId) = if (stake)
325349 then {
326- let $t093469412 = calcStakingFuncAndAddres(stake, assetId)
327- let call = $t093469412._1
328- let stakingAddr = $t093469412._2
350+ let $t01006410130 = calcStakingFuncAndAddres(stake, assetId)
351+ let call = $t01006410130._1
352+ let stakingAddr = $t01006410130._2
329353 $Tuple4(call, stakingAddr, nil, [AttachedPayment(assetId, amount)])
330354 }
331355 else {
332- let $t094989564 = calcStakingFuncAndAddres(stake, assetId)
333- let call = $t094989564._1
334- let stakingAddr = $t094989564._2
356+ let $t01021610282 = calcStakingFuncAndAddres(stake, assetId)
357+ let call = $t01021610282._1
358+ let stakingAddr = $t01021610282._2
335359 $Tuple4(call, stakingAddr, [amount, toBase58String(assetId)], nil)
336360 }
337361
363387
364388
365389 @Callable(i)
366-func init () = {
367- let $t01073610813 = $Tuple2(i.payments[0].amount, i.payments[0].assetId)
368- let pmtAmountA = $t01073610813._1
369- let pmtAssetIdA = $t01073610813._2
370- let $t01081810895 = $Tuple2(i.payments[1].amount, i.payments[1].assetId)
371- let pmtAmountB = $t01081810895._1
372- let pmtAssetIdB = $t01081810895._2
373- let $t01090010977 = getAssetInfo(pmtAssetIdA)
374- let pmtStrAssetIdA = $t01090010977._1
375- let pmtAssetNameA = $t01090010977._2
376- let pmtDecimalsA = $t01090010977._3
377- let $t01098211059 = getAssetInfo(pmtAssetIdB)
378- let pmtStrAssetIdB = $t01098211059._1
379- let pmtAssetNameB = $t01098211059._2
380- let pmtDecimalsB = $t01098211059._3
390+func init (firstHarvest) = {
391+ let $t01147511552 = $Tuple2(i.payments[0].amount, i.payments[0].assetId)
392+ let pmtAmountA = $t01147511552._1
393+ let pmtAssetIdA = $t01147511552._2
394+ let $t01155711634 = $Tuple2(i.payments[1].amount, i.payments[1].assetId)
395+ let pmtAmountB = $t01155711634._1
396+ let pmtAssetIdB = $t01155711634._2
397+ let $t01163911716 = getAssetInfo(pmtAssetIdA)
398+ let pmtStrAssetIdA = $t01163911716._1
399+ let pmtAssetNameA = $t01163911716._2
400+ let pmtDecimalsA = $t01163911716._3
401+ let $t01172111798 = getAssetInfo(pmtAssetIdB)
402+ let pmtStrAssetIdB = $t01172111798._1
403+ let pmtAssetNameB = $t01172111798._2
404+ let pmtDecimalsB = $t01172111798._3
381405 if (isDefined(getBoolean(this, kActive)))
382406 then throwIsActive()
383407 else if ((pmtAssetIdA == pmtAssetIdB))
399423 then invoke(this, "stakeUnstake", [true, pmtAmountB, pmtStrAssetIdB], nil)
400424 else 0
401425 if ((stake2 == stake2))
402- then [StringEntry(kVersion, version), BooleanEntry(kActive, true), StringEntry(kAssetIdA, pmtStrAssetIdA), StringEntry(kAssetIdB, pmtStrAssetIdB), IntegerEntry(kBalanceA, pmtAmountA), IntegerEntry(kBalanceB, pmtAmountB), IntegerEntry(kInvariant, invariantCalculated), IntegerEntry(kFee, getIntegerValue(oracle, "base_fee_flat")), shareIssue, StringEntry(kShareAssetId, toBase58String(shareIssueId)), IntegerEntry(kShareAssetSupply, shareInitialSupply), ScriptTransfer(i.caller, shareInitialSupply, shareIssueId)]
426+ then {
427+ let baseEntry = [StringEntry(kVersion, version), BooleanEntry(kActive, true), StringEntry(kAssetIdA, pmtStrAssetIdA), StringEntry(kAssetIdB, pmtStrAssetIdB), IntegerEntry(kBalanceA, pmtAmountA), IntegerEntry(kBalanceB, pmtAmountB), IntegerEntry(kInvariant, invariantCalculated), IntegerEntry(kFee, getIntegerValue(oracle, "base_fee_flat")), shareIssue, StringEntry(kShareAssetId, toBase58String(shareIssueId)), IntegerEntry(kShareAssetSupply, shareInitialSupply), ScriptTransfer(i.caller, shareInitialSupply, shareIssueId)]
428+ if (firstHarvest)
429+ then (baseEntry ++ [BooleanEntry(kFirstHarvest, firstHarvest), IntegerEntry(kFirstHarvestHeight, (startHeight + (firstHarvestEndPeriod * periodLength)))])
430+ else baseEntry
431+ }
403432 else throw("Strict value is not equal to itself.")
404433 }
405434 else throw("Strict value is not equal to itself.")
414443 let pmtAssetIdB = i.payments[1].assetId
415444 let ratioShareTokensInA = fraction(scale8, i.payments[0].amount, balanceA)
416445 let ratioShareTokensInB = fraction(scale8, i.payments[1].amount, balanceB)
417- let $t01370713784 = getAssetInfo(pmtAssetIdA)
418- let pmtStrAssetIdA = $t01370713784._1
419- let pmtAssetNameA = $t01370713784._2
420- let pmtDecimalsA = $t01370713784._3
421- let $t01378913906 = getAssetInfo(pmtAssetIdB)
422- let pmtStrAssetIdB = $t01378913906._1
423- let pmtAssetNameB = $t01378913906._2
424- let pmtDecimalsB = $t01378913906._3
425- let $t01391114415 = if ((ratioShareTokensInB > ratioShareTokensInA))
446+ let $t01474614823 = getAssetInfo(pmtAssetIdA)
447+ let pmtStrAssetIdA = $t01474614823._1
448+ let pmtAssetNameA = $t01474614823._2
449+ let pmtDecimalsA = $t01474614823._3
450+ let $t01482814945 = getAssetInfo(pmtAssetIdB)
451+ let pmtStrAssetIdB = $t01482814945._1
452+ let pmtAssetNameB = $t01482814945._2
453+ let pmtDecimalsB = $t01482814945._3
454+ let $t01495015454 = if ((ratioShareTokensInB > ratioShareTokensInA))
426455 then {
427456 let pmt = fraction(balanceB, ratioShareTokensInA, scale8, CEILING)
428457 $Tuple5(i.payments[0].amount, pmt, (i.payments[1].amount - pmt), pmtAssetIdB, ratioShareTokensInA)
431460 let pmt = fraction(balanceA, ratioShareTokensInB, scale8, CEILING)
432461 $Tuple5(pmt, i.payments[1].amount, (i.payments[0].amount - pmt), pmtAssetIdA, ratioShareTokensInB)
433462 }
434- let pmtAmountA = $t01391114415._1
435- let pmtAmountB = $t01391114415._2
436- let change = $t01391114415._3
437- let changeAssetId = $t01391114415._4
438- let shareTokenRatio = $t01391114415._5
463+ let pmtAmountA = $t01495015454._1
464+ let pmtAmountB = $t01495015454._2
465+ let change = $t01495015454._3
466+ let changeAssetId = $t01495015454._4
467+ let shareTokenRatio = $t01495015454._5
439468 let shareTokenToPayAmount = fraction(shareTokenRatio, shareAssetSupply, scale8)
440469 if ((size(i.payments) != 2))
441470 then throw("Two attached assets expected")
470499
471500 @Callable(i)
472501 func replenishWithOneToken (virtualSwapTokenPay,virtualSwapTokenGet) = valueOrElse(isActive(), {
473- let $t01614816223 = $Tuple2(i.payments[0].amount, i.payments[0].assetId)
474- let pmtAmount = $t01614816223._1
475- let pmtAssetId = $t01614816223._2
476- let $t01622816301 = getAssetInfo(pmtAssetId)
477- let pmtStrAssetId = $t01622816301._1
478- let pmtAssetName = $t01622816301._2
479- let pmtDecimals = $t01622816301._3
502+ let $t01718717262 = $Tuple2(i.payments[0].amount, i.payments[0].assetId)
503+ let pmtAmount = $t01718717262._1
504+ let pmtAssetId = $t01718717262._2
505+ let $t01726717340 = getAssetInfo(pmtAssetId)
506+ let pmtStrAssetId = $t01726717340._1
507+ let pmtAssetName = $t01726717340._2
508+ let pmtDecimals = $t01726717340._3
480509 let pmtMinThreshold = 5000000
481510 let thresholdValueForMinTolerance = 50000000
482511 let tolerance = if ((thresholdValueForMinTolerance > pmtAmount))
496525 else false)
497526 then throwAssets()
498527 else {
499- let $t01727917921 = if ((pmtAssetId == assetIdA))
528+ let $t01831818960 = if ((pmtAssetId == assetIdA))
500529 then $Tuple6((pmtAmount - virtualSwapTokenPay), virtualSwapTokenGet, (balanceA + virtualSwapTokenPay), (balanceB - virtualSwapTokenGet), (balanceA + pmtAmount), balanceB)
501530 else $Tuple6(virtualSwapTokenGet, (pmtAmount - virtualSwapTokenPay), (balanceA - virtualSwapTokenGet), (balanceB + virtualSwapTokenPay), balanceA, (balanceB + pmtAmount))
502- let virtualReplenishA = $t01727917921._1
503- let virtualReplenishB = $t01727917921._2
504- let balanceAfterSwapA = $t01727917921._3
505- let balanceAfterSwapB = $t01727917921._4
506- let newBalanceA = $t01727917921._5
507- let newBalanceB = $t01727917921._6
531+ let virtualReplenishA = $t01831818960._1
532+ let virtualReplenishB = $t01831818960._2
533+ let balanceAfterSwapA = $t01831818960._3
534+ let balanceAfterSwapB = $t01831818960._4
535+ let newBalanceA = $t01831818960._5
536+ let newBalanceB = $t01831818960._6
508537 let invariantNew = invariantCalc(balanceAfterSwapA, balanceAfterSwapB)
509538 let ratioVirtualBalanceToVirtualReplenish = (fraction(scale16, balanceAfterSwapA, balanceAfterSwapB) / fraction(scale8, virtualReplenishA, virtualReplenishB))
510539 let dAppThresholdAmount = fraction((newBalanceA + newBalanceB), dAppThreshold, (2 * dAppThresholdScale2))
528557 let shareTokenGovernanceReward = fraction(shareTokenToPayAmount, (feeGovernance / 2), feeScale6)
529558 let governanceRewardTokenA = fraction(shareTokenGovernanceReward, balanceA, shareAssetSupply)
530559 let governanceRewardTokenB = fraction(shareTokenGovernanceReward, balanceB, shareAssetSupply)
531- let $t01990820203 = if ((pmtStrAssetId == strAssetIdA))
560+ let $t02094721242 = if ((pmtStrAssetId == strAssetIdA))
532561 then $Tuple3((pmtAmount - governanceRewardTokenA), governanceRewardTokenB, strAssetIdB)
533562 else $Tuple3((pmtAmount - governanceRewardTokenB), governanceRewardTokenA, strAssetIdA)
534- let stakeAmount = $t01990820203._1
535- let unstakeAmount = $t01990820203._2
536- let unstakeAsset = $t01990820203._3
563+ let stakeAmount = $t02094721242._1
564+ let unstakeAmount = $t02094721242._2
565+ let unstakeAsset = $t02094721242._3
537566 let stake1 = if (containsElement(stakingAssets, pmtStrAssetId))
538567 then invoke(this, "stakeUnstake", [true, stakeAmount, pmtStrAssetId], nil)
539568 else 0
555584
556585 @Callable(i)
557586 func withdraw () = valueOrElse(isActive(), {
558- let $t02149021565 = $Tuple2(i.payments[0].amount, i.payments[0].assetId)
559- let pmtAmount = $t02149021565._1
560- let pmtAssetId = $t02149021565._2
587+ let $t02252922604 = $Tuple2(i.payments[0].amount, i.payments[0].assetId)
588+ let pmtAmount = $t02252922604._1
589+ let pmtAssetId = $t02252922604._2
561590 let amountToPayA = fraction(pmtAmount, balanceA, shareAssetSupply)
562591 let amountToPayB = fraction(pmtAmount, balanceB, shareAssetSupply)
563592 let invariantCalculated = invariantCalc((balanceA - amountToPayA), (balanceB - amountToPayB))
588617
589618 @Callable(i)
590619 func exchange (estimatedAmountToReceive,minAmountToReceive) = valueOrElse(isActive(), {
591- let $t02311623191 = $Tuple2(i.payments[0].amount, i.payments[0].assetId)
592- let pmtAmount = $t02311623191._1
593- let pmtAssetId = $t02311623191._2
620+ let $t02415524230 = $Tuple2(i.payments[0].amount, i.payments[0].assetId)
621+ let pmtAmount = $t02415524230._1
622+ let pmtAssetId = $t02415524230._2
594623 if ((0 >= estimatedAmountToReceive))
595624 then throw(("Estimated amount must be positive. Actual: " + toString(estimatedAmountToReceive)))
596625 else if ((minAmountToReceive > estimatedAmountToReceive))
617646 let feeDiscount = calculateFeeDiscount(i.originCaller)
618647 let governanceReward = fraction(amount, fraction(feeGovernance, feeDiscount, feeScale6, CEILING), feeScale6)
619648 let amountMinusFee = fraction(amount, (feeScale6 - fraction(fee, feeDiscount, feeScale6, CEILING)), feeScale6)
620- let $t02464424906 = if ((pmtAssetId == assetIdA))
649+ let $t02568325945 = if ((pmtAssetId == assetIdA))
621650 then $Tuple2((balanceA + pmtAmount), ((balanceB - amountMinusFee) - governanceReward))
622651 else $Tuple2(((balanceA - amountMinusFee) - governanceReward), (balanceB + pmtAmount))
623- let newBalanceA = $t02464424906._1
624- let newBalanceB = $t02464424906._2
652+ let newBalanceA = $t02568325945._1
653+ let newBalanceB = $t02568325945._2
625654 let dAppThresholdAmount = fraction((newBalanceA + newBalanceB), dAppThreshold, (2 * dAppThresholdScale2))
626655 if (if ((dAppThresholdAmount > newBalanceA))
627656 then true
628657 else (dAppThresholdAmount > newBalanceB))
629658 then throwThreshold(dAppThresholdAmount, newBalanceA, newBalanceB)
630659 else {
631- let $t02520525278 = getAssetInfo(pmtAssetId)
632- let pmtStrAssetId = $t02520525278._1
633- let pmtAssetName = $t02520525278._2
634- let pmtDecimals = $t02520525278._3
635- let $t02529125368 = getAssetInfo(sendAssetId)
636- let sendStrAssetId = $t02529125368._1
637- let sendAssetName = $t02529125368._2
638- let sendDecimals = $t02529125368._3
660+ let $t02624426317 = getAssetInfo(pmtAssetId)
661+ let pmtStrAssetId = $t02624426317._1
662+ let pmtAssetName = $t02624426317._2
663+ let pmtDecimals = $t02624426317._3
664+ let $t02633026407 = getAssetInfo(sendAssetId)
665+ let sendStrAssetId = $t02633026407._1
666+ let sendAssetName = $t02633026407._2
667+ let sendDecimals = $t02633026407._3
639668 let stake1 = if (containsElement(stakingAssets, pmtStrAssetId))
640669 then invoke(this, "stakeUnstake", [true, pmtAmount, pmtStrAssetId], nil)
641670 else 0
645674 then invoke(this, "stakeUnstake", [false, (amountMinusFee + governanceReward), sendStrAssetId], nil)
646675 else 0
647676 if ((stake2 == stake2))
648- then $Tuple2([IntegerEntry(kBalanceA, newBalanceA), IntegerEntry(kBalanceB, newBalanceB), IntegerEntry(kInvariant, invariantCalc(newBalanceA, newBalanceB)), ScriptTransfer(i.caller, amountMinusFee, sendAssetId), ScriptTransfer(moneyBoxAddress, governanceReward, sendAssetId)], $Tuple2(amountMinusFee, sendAssetId))
677+ then $Tuple2([IntegerEntry(kBalanceA, newBalanceA), IntegerEntry(kBalanceB, newBalanceB), IntegerEntry(kInvariant, invariantCalc(newBalanceA, newBalanceB)), ScriptTransfer(i.caller, amountMinusFee, sendAssetId), ScriptTransfer(moneyBoxAddress, governanceReward, sendAssetId)], [amountMinusFee, sendAssetId])
649678 else throw("Strict value is not equal to itself.")
650679 }
651680 else throw("Strict value is not equal to itself.")
708737
709738
710739 @Callable(i)
740+func keepLimitForFirstHarvest (shareLimit) = valueOrElse(isActive(), valueOrElse(isAdminCall(i), [IntegerEntry(kShareLimit, shareLimit)]))
741+
742+
743+
744+@Callable(i)
711745 func stakeUnstake (stake,amount,assetIdString) = if ((i.caller != this))
712746 then throw("Only contract itself can invoke this function")
713747 else {
714- let $t02837228475 = calcStakingParams(stake, amount, fromBase58String(assetIdString))
715- let call = $t02837228475._1
716- let addr = $t02837228475._2
717- let params = $t02837228475._3
718- let payments = $t02837228475._4
748+ let $t02961429717 = calcStakingParams(stake, amount, fromBase58String(assetIdString))
749+ let call = $t02961429717._1
750+ let addr = $t02961429717._2
751+ let params = $t02961429717._3
752+ let payments = $t02961429717._4
719753 let inv = invoke(addr, call, params, payments)
720754 if ((inv == inv))
721755 then nil
722756 else throw("Strict value is not equal to itself.")
723757 }
724-
725-
726-
727-@Callable(i)
728-func toBigIntInvariant () = valueOrElse(isAdminCall(i), [IntegerEntry(kInvariant, invariantCalc(balanceA, balanceB))])
729758
730759
731760 @Verifier(tx)
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 kInvariant = "invariant"
2525
2626 let kCause = "shutdown_cause"
2727
2828 let kUSDNAddress = "staking_usdnnsbt_address"
2929
3030 let kEURNAddress = "staking_eurn_address"
3131
3232 let kDiscounts = "discounts"
3333
3434 let kDiscountValues = "discount_values"
3535
3636 let kUserSwopInGov = "_SWOP_amount"
3737
38+let kFirstHarvest = "first_harvest"
39+
40+let kFirstHarvestHeight = "first_harvest_height"
41+
42+let kShareLimit = "share_limit_on_first_harvest"
43+
44+let kBasePeriod = "base_period"
45+
46+let kPeriodLength = "period_length"
47+
48+let kStartHeight = "start_height"
49+
3850 let kAdminPubKey1 = "admin_pub_1"
3951
4052 let kAdminPubKey2 = "admin_pub_2"
4153
4254 let kAdminPubKey3 = "admin_pub_3"
4355
4456 let kAdminInvokePubKey = "admin_invoke_pub"
4557
4658 let kMoneyBoxAddress = "money_box_address"
4759
4860 let kGovAddress = "governance_address"
61+
62+let kVotingAddress = "voting_address"
4963
5064 let oracle = Address(base58'3NBBWfzZtZtszaXbitTKnrB2xXwv26Bn7H9')
5165
5266 func getBase58FromOracle (key) = match getString(oracle, key) {
5367 case string: String =>
5468 fromBase58String(string)
5569 case nothing =>
5670 throw((key + "is empty"))
5771 }
5872
5973
6074 let adminPubKey1 = getBase58FromOracle(kAdminPubKey1)
6175
6276 let adminPubKey2 = getBase58FromOracle(kAdminPubKey2)
6377
6478 let adminPubKey3 = getBase58FromOracle(kAdminPubKey3)
6579
6680 let adminPubKeyInvoke = getBase58FromOracle(kAdminInvokePubKey)
6781
6882 let moneyBoxAddress = Address(getBase58FromOracle(kMoneyBoxAddress))
6983
7084 let govAddress = Address(getBase58FromOracle(kGovAddress))
7185
7286 let stakingUSDNAddress = Address(getBase58FromOracle(kUSDNAddress))
7387
88+let votingAddress = Address(getBase58FromOracle(kVotingAddress))
89+
7490 let USDN = base58'8UrfDVd5GreeUwm7uPk7eYz1eMv376kzR52C6sANPkwS'
7591
7692 let stakingAssets = [toBase58String(USDN)]
93+
94+let basePeriod = valueOrErrorMessage(getInteger(votingAddress, kBasePeriod), "Empty kBasePeriod")
95+
96+let startHeight = valueOrErrorMessage(getInteger(votingAddress, kStartHeight), "Empty kStartHeight")
97+
98+let periodLength = valueOrErrorMessage(getInteger(votingAddress, kPeriodLength), "Empty kPeriodLength")
99+
100+let firstHarvestEndPeriod = ((basePeriod + ((height - startHeight) / periodLength)) + 3)
77101
78102 let active = getBooleanValue(this, kActive)
79103
80104 let strAssetIdA = getStringValue(this, kAssetIdA)
81105
82106 let strAssetIdB = getStringValue(this, kAssetIdB)
83107
84108 let assetIdA = if ((strAssetIdA == "WAVES"))
85109 then unit
86110 else fromBase58String(strAssetIdA)
87111
88112 let assetIdB = if ((strAssetIdB == "WAVES"))
89113 then unit
90114 else fromBase58String(strAssetIdB)
91115
92116 let assetNameA = match assetIdA {
93117 case id: ByteVector =>
94118 value(assetInfo(id)).name
95119 case waves: Unit =>
96120 "WAVES"
97121 case _ =>
98122 throw("Match error")
99123 }
100124
101125 let assetNameB = match assetIdB {
102126 case id: ByteVector =>
103127 value(assetInfo(id)).name
104128 case waves: Unit =>
105129 "WAVES"
106130 case _ =>
107131 throw("Match error")
108132 }
109133
110134 let balanceA = getIntegerValue(this, kBalanceA)
111135
112136 let balanceB = getIntegerValue(this, kBalanceB)
113137
114138 let shareAssetId = fromBase58String(getStringValue(this, kShareAssetId))
115139
116140 let shareAssetSupply = getIntegerValue(this, kShareAssetSupply)
117141
118142 let invariant = getIntegerValue(this, kInvariant)
119143
120144 let fee = getIntegerValue(this, kFee)
121145
122146 let feeGovernance = fraction(fee, 40, 100)
123147
124148 let feeScale6 = 1000000
125149
126150 let scale3 = 1000
127151
128152 let scale8 = 100000000
129153
130154 let scale16 = 10000000000000000
131155
132156 let slippageScale3 = 1000
133157
134158 let digits8 = 8
135159
136160 let dAppThreshold = 50
137161
138162 let dAppThresholdScale2 = 100
139163
140164 let exchangeRatioLimitMin = 90000000
141165
142166 let exchangeRatioLimitMax = 110000000
143167
144168 let alpha = 50
145169
146170 let alphaDigits = 2
147171
148172 let beta = 4600000000000000
149173
150174 func accountBalance (assetId) = match assetId {
151175 case id: ByteVector =>
152176 assetBalance(this, id)
153177 case waves: Unit =>
154178 wavesBalance(this).available
155179 case _ =>
156180 throw("Match error")
157181 }
158182
159183
160184 func stakedAmount (assetId) = {
161185 let stakedAmountCalculated = match assetId {
162186 case aId: ByteVector =>
163187 if ((aId == USDN))
164188 then getInteger(stakingUSDNAddress, ((("rpd_balance_" + toBase58String(aId)) + "_") + toString(this)))
165189 else 0
166190 case _: Unit =>
167191 0
168192 case _ =>
169193 throw("Match error")
170194 }
171195 match stakedAmountCalculated {
172196 case i: Int =>
173197 i
174198 case _ =>
175199 0
176200 }
177201 }
178202
179203
180204 let stakedAmountA = stakedAmount(assetIdA)
181205
182206 let stakedAmountB = stakedAmount(assetIdB)
183207
184208 let availableBalanceA = (balanceA - stakedAmountA)
185209
186210 let availableBalanceB = (balanceB - stakedAmountB)
187211
188212 let accountBalanceWithStakedA = (accountBalance(assetIdA) + stakedAmountA)
189213
190214 let accountBalanceWithStakedB = (accountBalance(assetIdB) + stakedAmountB)
191215
192216 let hasEnoughBalance = if ((accountBalanceWithStakedA >= balanceA))
193217 then (accountBalanceWithStakedB >= balanceB)
194218 else false
195219
196220 func skewness (x,y) = ((fraction(scale16, x, y) + fraction(scale16, y, x)) / 2)
197221
198222
199223 func invariantCalc (x,y) = {
200224 let sk = skewness(x, y)
201225 (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)))
202226 }
203227
204228
205229 func calculateSendAmount (amountToSendEstimated,minTokenReceiveAmount,tokenReceiveAmount,tokenId) = {
206230 let worstAllowedNewInvariantRatio = (scale16 - ((scale16 * 1) / 10000000))
207231 let deltaBetweenMaxAndMinSendValue = (amountToSendEstimated - minTokenReceiveAmount)
208232 let x = (balanceA + tokenReceiveAmount)
209233 let y = (balanceB + tokenReceiveAmount)
210234 func getStepAmount (acc,step) = if ((acc._1 == -1))
211235 then {
212236 let amountToSend = (amountToSendEstimated - (((step * deltaBetweenMaxAndMinSendValue) / 3) / scale3))
213237 let stepInvariant = if ((tokenId == assetIdA))
214238 then invariantCalc(x, (balanceB - amountToSend))
215239 else invariantCalc((balanceA - amountToSend), y)
216240 if ((stepInvariant > invariant))
217241 then $Tuple2(amountToSend, stepInvariant)
218242 else $Tuple2(-1, 0)
219243 }
220244 else acc
221245
222246 let amountToSendMin = getStepAmount($Tuple2(-1, 0), 3000)
223247 if ((0 > amountToSendMin._1))
224248 then throw("Price is worse than minReceived")
225249 else {
226250 let invEstimated = if ((tokenId == assetIdA))
227251 then invariantCalc(x, (balanceB - amountToSendEstimated))
228252 else if ((tokenId == assetIdB))
229253 then invariantCalc((balanceA - amountToSendEstimated), y)
230254 else throw("Wrong asset in payment")
231255 if ((invariant > invEstimated))
232256 then if ((worstAllowedNewInvariantRatio >= fraction(scale16, invariant, invEstimated)))
233257 then throw("The requested price is too not profitable for user")
234258 else {
235259 let a = {
236260 let $l = [25, 200, 500]
237261 let $s = size($l)
238262 let $acc0 = $Tuple2(-1, 0)
239263 func $f0_1 ($a,$i) = if (($i >= $s))
240264 then $a
241265 else getStepAmount($a, $l[$i])
242266
243267 func $f0_2 ($a,$i) = if (($i >= $s))
244268 then $a
245269 else throw("List size exceeds 3")
246270
247271 $f0_2($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3)
248272 }
249273 if ((0 > a._1))
250274 then amountToSendMin._1
251275 else a._1
252276 }
253277 else {
254278 let a = {
255279 let $l = [-500, -200, -25]
256280 let $s = size($l)
257281 let $acc0 = $Tuple2(-1, 0)
258282 func $f0_1 ($a,$i) = if (($i >= $s))
259283 then $a
260284 else getStepAmount($a, $l[$i])
261285
262286 func $f0_2 ($a,$i) = if (($i >= $s))
263287 then $a
264288 else throw("List size exceeds 3")
265289
266290 $f0_2($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3)
267291 }
268292 let tupleSendBetter = if ((0 > a._1))
269293 then $Tuple2(amountToSendEstimated, invEstimated)
270294 else a
271295 if ((worstAllowedNewInvariantRatio >= fraction(scale16, invariant, tupleSendBetter._2)))
272296 then throw("The requested price is too not profitable for user")
273297 else tupleSendBetter._1
274298 }
275299 }
276300 }
277301
278302
279303 func getAssetInfo (assetId) = match assetId {
280304 case id: ByteVector =>
281305 let stringId = toBase58String(id)
282306 let info = valueOrErrorMessage(assetInfo(id), (("Asset " + stringId) + " doesn't exist"))
283307 $Tuple3(stringId, info.name, info.decimals)
284308 case waves: Unit =>
285309 $Tuple3("WAVES", "WAVES", 8)
286310 case _ =>
287311 throw("Match error")
288312 }
289313
290314
291315 func suspend (cause) = [BooleanEntry(kActive, false), StringEntry(kCause, cause)]
292316
293317
294318 func throwIsActive () = throw("DApp is already active")
295319
296320
297321 func isActive () = if (active)
298322 then unit
299323 else throw("DApp is inactive at this moment")
300324
301325
302326 func isAdminCall (i) = if (containsElement([adminPubKey1, adminPubKey2, adminPubKey3], i.callerPublicKey))
303327 then unit
304328 else throw("Only admin can call this function")
305329
306330
307331 func throwAssets () = throw(((("Incorrect assets attached. Expected: " + strAssetIdA) + " and ") + strAssetIdB))
308332
309333
310334 func throwOnePayment () = throw("One attached payment expected")
311335
312336
313337 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))
314338
315339
316340 func suspendSuspicious () = suspend(((((((((((((((("Suspicious state. Actual balances: " + toString(balanceA)) + " ") + assetNameA) + ", ") + toString(balanceB)) + " ") + assetNameB) + ". State: ") + toString(accountBalance(assetIdA))) + " ") + assetNameA) + ", ") + toString(accountBalance(assetIdB))) + " ") + assetNameB))
317341
318342
319343 func calcStakingFuncAndAddres (stake,assetId) = if (stake)
320344 then $Tuple2("lockNeutrino", stakingUSDNAddress)
321345 else $Tuple2("unlockNeutrino", stakingUSDNAddress)
322346
323347
324348 func calcStakingParams (stake,amount,assetId) = if (stake)
325349 then {
326- let $t093469412 = calcStakingFuncAndAddres(stake, assetId)
327- let call = $t093469412._1
328- let stakingAddr = $t093469412._2
350+ let $t01006410130 = calcStakingFuncAndAddres(stake, assetId)
351+ let call = $t01006410130._1
352+ let stakingAddr = $t01006410130._2
329353 $Tuple4(call, stakingAddr, nil, [AttachedPayment(assetId, amount)])
330354 }
331355 else {
332- let $t094989564 = calcStakingFuncAndAddres(stake, assetId)
333- let call = $t094989564._1
334- let stakingAddr = $t094989564._2
356+ let $t01021610282 = calcStakingFuncAndAddres(stake, assetId)
357+ let call = $t01021610282._1
358+ let stakingAddr = $t01021610282._2
335359 $Tuple4(call, stakingAddr, [amount, toBase58String(assetId)], nil)
336360 }
337361
338362
339363 func calculateFeeDiscount (userAddr) = {
340364 let swopAmount = valueOrElse(getInteger(govAddress, (toString(userAddr) + kUserSwopInGov)), 0)
341365 let discountValues = split(getStringValue(oracle, kDiscountValues), ",")
342366 let discounts = split(getStringValue(oracle, kDiscounts), ",")
343367 if (if ((swopAmount >= parseIntValue(discountValues[0])))
344368 then (parseIntValue(discountValues[1]) > swopAmount)
345369 else false)
346370 then (feeScale6 - parseIntValue(discounts[0]))
347371 else if (if ((swopAmount >= parseIntValue(discountValues[1])))
348372 then (parseIntValue(discountValues[2]) > swopAmount)
349373 else false)
350374 then (feeScale6 - parseIntValue(discounts[1]))
351375 else if (if ((swopAmount >= parseIntValue(discountValues[2])))
352376 then (parseIntValue(discountValues[3]) > swopAmount)
353377 else false)
354378 then (feeScale6 - parseIntValue(discounts[2]))
355379 else if (if ((swopAmount >= parseIntValue(discountValues[3])))
356380 then (parseIntValue(discountValues[4]) > swopAmount)
357381 else false)
358382 then (feeScale6 - parseIntValue(discounts[3]))
359383 else if ((swopAmount >= parseIntValue(discountValues[4])))
360384 then (feeScale6 - parseIntValue(discounts[4]))
361385 else feeScale6
362386 }
363387
364388
365389 @Callable(i)
366-func init () = {
367- let $t01073610813 = $Tuple2(i.payments[0].amount, i.payments[0].assetId)
368- let pmtAmountA = $t01073610813._1
369- let pmtAssetIdA = $t01073610813._2
370- let $t01081810895 = $Tuple2(i.payments[1].amount, i.payments[1].assetId)
371- let pmtAmountB = $t01081810895._1
372- let pmtAssetIdB = $t01081810895._2
373- let $t01090010977 = getAssetInfo(pmtAssetIdA)
374- let pmtStrAssetIdA = $t01090010977._1
375- let pmtAssetNameA = $t01090010977._2
376- let pmtDecimalsA = $t01090010977._3
377- let $t01098211059 = getAssetInfo(pmtAssetIdB)
378- let pmtStrAssetIdB = $t01098211059._1
379- let pmtAssetNameB = $t01098211059._2
380- let pmtDecimalsB = $t01098211059._3
390+func init (firstHarvest) = {
391+ let $t01147511552 = $Tuple2(i.payments[0].amount, i.payments[0].assetId)
392+ let pmtAmountA = $t01147511552._1
393+ let pmtAssetIdA = $t01147511552._2
394+ let $t01155711634 = $Tuple2(i.payments[1].amount, i.payments[1].assetId)
395+ let pmtAmountB = $t01155711634._1
396+ let pmtAssetIdB = $t01155711634._2
397+ let $t01163911716 = getAssetInfo(pmtAssetIdA)
398+ let pmtStrAssetIdA = $t01163911716._1
399+ let pmtAssetNameA = $t01163911716._2
400+ let pmtDecimalsA = $t01163911716._3
401+ let $t01172111798 = getAssetInfo(pmtAssetIdB)
402+ let pmtStrAssetIdB = $t01172111798._1
403+ let pmtAssetNameB = $t01172111798._2
404+ let pmtDecimalsB = $t01172111798._3
381405 if (isDefined(getBoolean(this, kActive)))
382406 then throwIsActive()
383407 else if ((pmtAssetIdA == pmtAssetIdB))
384408 then throw("Assets must be different")
385409 else {
386410 let shareName = ((("s" + take(pmtAssetNameA, 7)) + "_") + take(pmtAssetNameB, 7))
387411 let shareDescription = ((((("ShareToken of SwopFi protocol for " + pmtAssetNameA) + " and ") + pmtAssetNameB) + " at address ") + toString(this))
388412 let shareDecimals = ((pmtDecimalsA + pmtDecimalsB) / 2)
389413 let shareInitialSupply = fraction(pow(pmtAmountA, pmtDecimalsA, 5, 1, pmtDecimalsA, DOWN), pow(pmtAmountB, pmtDecimalsB, 5, 1, pmtDecimalsB, DOWN), pow(10, 0, shareDecimals, 0, 0, DOWN))
390414 let shareIssue = Issue(shareName, shareDescription, shareInitialSupply, shareDecimals, true)
391415 let shareIssueId = calculateAssetId(shareIssue)
392416 let invariantCalculated = invariantCalc(pmtAmountA, pmtAmountB)
393417 let stake1 = if (containsElement(stakingAssets, pmtStrAssetIdA))
394418 then invoke(this, "stakeUnstake", [true, pmtAmountA, pmtStrAssetIdA], nil)
395419 else 0
396420 if ((stake1 == stake1))
397421 then {
398422 let stake2 = if (containsElement(stakingAssets, pmtStrAssetIdB))
399423 then invoke(this, "stakeUnstake", [true, pmtAmountB, pmtStrAssetIdB], nil)
400424 else 0
401425 if ((stake2 == stake2))
402- then [StringEntry(kVersion, version), BooleanEntry(kActive, true), StringEntry(kAssetIdA, pmtStrAssetIdA), StringEntry(kAssetIdB, pmtStrAssetIdB), IntegerEntry(kBalanceA, pmtAmountA), IntegerEntry(kBalanceB, pmtAmountB), IntegerEntry(kInvariant, invariantCalculated), IntegerEntry(kFee, getIntegerValue(oracle, "base_fee_flat")), shareIssue, StringEntry(kShareAssetId, toBase58String(shareIssueId)), IntegerEntry(kShareAssetSupply, shareInitialSupply), ScriptTransfer(i.caller, shareInitialSupply, shareIssueId)]
426+ then {
427+ let baseEntry = [StringEntry(kVersion, version), BooleanEntry(kActive, true), StringEntry(kAssetIdA, pmtStrAssetIdA), StringEntry(kAssetIdB, pmtStrAssetIdB), IntegerEntry(kBalanceA, pmtAmountA), IntegerEntry(kBalanceB, pmtAmountB), IntegerEntry(kInvariant, invariantCalculated), IntegerEntry(kFee, getIntegerValue(oracle, "base_fee_flat")), shareIssue, StringEntry(kShareAssetId, toBase58String(shareIssueId)), IntegerEntry(kShareAssetSupply, shareInitialSupply), ScriptTransfer(i.caller, shareInitialSupply, shareIssueId)]
428+ if (firstHarvest)
429+ then (baseEntry ++ [BooleanEntry(kFirstHarvest, firstHarvest), IntegerEntry(kFirstHarvestHeight, (startHeight + (firstHarvestEndPeriod * periodLength)))])
430+ else baseEntry
431+ }
403432 else throw("Strict value is not equal to itself.")
404433 }
405434 else throw("Strict value is not equal to itself.")
406435 }
407436 }
408437
409438
410439
411440 @Callable(i)
412441 func replenishWithTwoTokens () = valueOrElse(isActive(), {
413442 let pmtAssetIdA = i.payments[0].assetId
414443 let pmtAssetIdB = i.payments[1].assetId
415444 let ratioShareTokensInA = fraction(scale8, i.payments[0].amount, balanceA)
416445 let ratioShareTokensInB = fraction(scale8, i.payments[1].amount, balanceB)
417- let $t01370713784 = getAssetInfo(pmtAssetIdA)
418- let pmtStrAssetIdA = $t01370713784._1
419- let pmtAssetNameA = $t01370713784._2
420- let pmtDecimalsA = $t01370713784._3
421- let $t01378913906 = getAssetInfo(pmtAssetIdB)
422- let pmtStrAssetIdB = $t01378913906._1
423- let pmtAssetNameB = $t01378913906._2
424- let pmtDecimalsB = $t01378913906._3
425- let $t01391114415 = if ((ratioShareTokensInB > ratioShareTokensInA))
446+ let $t01474614823 = getAssetInfo(pmtAssetIdA)
447+ let pmtStrAssetIdA = $t01474614823._1
448+ let pmtAssetNameA = $t01474614823._2
449+ let pmtDecimalsA = $t01474614823._3
450+ let $t01482814945 = getAssetInfo(pmtAssetIdB)
451+ let pmtStrAssetIdB = $t01482814945._1
452+ let pmtAssetNameB = $t01482814945._2
453+ let pmtDecimalsB = $t01482814945._3
454+ let $t01495015454 = if ((ratioShareTokensInB > ratioShareTokensInA))
426455 then {
427456 let pmt = fraction(balanceB, ratioShareTokensInA, scale8, CEILING)
428457 $Tuple5(i.payments[0].amount, pmt, (i.payments[1].amount - pmt), pmtAssetIdB, ratioShareTokensInA)
429458 }
430459 else {
431460 let pmt = fraction(balanceA, ratioShareTokensInB, scale8, CEILING)
432461 $Tuple5(pmt, i.payments[1].amount, (i.payments[0].amount - pmt), pmtAssetIdA, ratioShareTokensInB)
433462 }
434- let pmtAmountA = $t01391114415._1
435- let pmtAmountB = $t01391114415._2
436- let change = $t01391114415._3
437- let changeAssetId = $t01391114415._4
438- let shareTokenRatio = $t01391114415._5
463+ let pmtAmountA = $t01495015454._1
464+ let pmtAmountB = $t01495015454._2
465+ let change = $t01495015454._3
466+ let changeAssetId = $t01495015454._4
467+ let shareTokenRatio = $t01495015454._5
439468 let shareTokenToPayAmount = fraction(shareTokenRatio, shareAssetSupply, scale8)
440469 if ((size(i.payments) != 2))
441470 then throw("Two attached assets expected")
442471 else if (if ((pmtAssetIdA != assetIdA))
443472 then true
444473 else (pmtAssetIdB != assetIdB))
445474 then throwAssets()
446475 else if ((shareTokenToPayAmount == 0))
447476 then throw("Too small amount to replenish")
448477 else if ((0 > change))
449478 then throw("Change < 0")
450479 else if (!(hasEnoughBalance))
451480 then ([ScriptTransfer(i.caller, pmtAmountA, pmtAssetIdA), ScriptTransfer(i.caller, pmtAmountB, pmtAssetIdB)] ++ suspendSuspicious())
452481 else {
453482 let stake1 = if (containsElement(stakingAssets, pmtStrAssetIdA))
454483 then invoke(this, "stakeUnstake", [true, pmtAmountA, pmtStrAssetIdA], nil)
455484 else 0
456485 if ((stake1 == stake1))
457486 then {
458487 let stake2 = if (containsElement(stakingAssets, pmtStrAssetIdB))
459488 then invoke(this, "stakeUnstake", [true, pmtAmountB, pmtStrAssetIdB], nil)
460489 else 0
461490 if ((stake2 == stake2))
462491 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)]
463492 else throw("Strict value is not equal to itself.")
464493 }
465494 else throw("Strict value is not equal to itself.")
466495 }
467496 })
468497
469498
470499
471500 @Callable(i)
472501 func replenishWithOneToken (virtualSwapTokenPay,virtualSwapTokenGet) = valueOrElse(isActive(), {
473- let $t01614816223 = $Tuple2(i.payments[0].amount, i.payments[0].assetId)
474- let pmtAmount = $t01614816223._1
475- let pmtAssetId = $t01614816223._2
476- let $t01622816301 = getAssetInfo(pmtAssetId)
477- let pmtStrAssetId = $t01622816301._1
478- let pmtAssetName = $t01622816301._2
479- let pmtDecimals = $t01622816301._3
502+ let $t01718717262 = $Tuple2(i.payments[0].amount, i.payments[0].assetId)
503+ let pmtAmount = $t01718717262._1
504+ let pmtAssetId = $t01718717262._2
505+ let $t01726717340 = getAssetInfo(pmtAssetId)
506+ let pmtStrAssetId = $t01726717340._1
507+ let pmtAssetName = $t01726717340._2
508+ let pmtDecimals = $t01726717340._3
480509 let pmtMinThreshold = 5000000
481510 let thresholdValueForMinTolerance = 50000000
482511 let tolerance = if ((thresholdValueForMinTolerance > pmtAmount))
483512 then 100000
484513 else 1
485514 let slippageValueMinForReplenish = (scale8 - ((scale8 * tolerance) / 10000000))
486515 let slippageValueMaxForReplenish = (scale8 + ((scale8 * tolerance) / 10000000))
487516 let slippageValueMinForSwap = (scale8 - ((scale8 * 1) / 10000000))
488517 if ((pmtMinThreshold > pmtAmount))
489518 then throw((((("Payment amount " + toString(pmtAmount)) + " does not exceed the minimum amount of ") + toString(pmtMinThreshold)) + " tokens"))
490519 else if ((size(i.payments) != 1))
491520 then throwOnePayment()
492521 else if (!(hasEnoughBalance))
493522 then ([ScriptTransfer(i.caller, pmtAmount, pmtAssetId)] ++ suspendSuspicious())
494523 else if (if ((pmtAssetId != assetIdA))
495524 then (pmtAssetId != assetIdB)
496525 else false)
497526 then throwAssets()
498527 else {
499- let $t01727917921 = if ((pmtAssetId == assetIdA))
528+ let $t01831818960 = if ((pmtAssetId == assetIdA))
500529 then $Tuple6((pmtAmount - virtualSwapTokenPay), virtualSwapTokenGet, (balanceA + virtualSwapTokenPay), (balanceB - virtualSwapTokenGet), (balanceA + pmtAmount), balanceB)
501530 else $Tuple6(virtualSwapTokenGet, (pmtAmount - virtualSwapTokenPay), (balanceA - virtualSwapTokenGet), (balanceB + virtualSwapTokenPay), balanceA, (balanceB + pmtAmount))
502- let virtualReplenishA = $t01727917921._1
503- let virtualReplenishB = $t01727917921._2
504- let balanceAfterSwapA = $t01727917921._3
505- let balanceAfterSwapB = $t01727917921._4
506- let newBalanceA = $t01727917921._5
507- let newBalanceB = $t01727917921._6
531+ let virtualReplenishA = $t01831818960._1
532+ let virtualReplenishB = $t01831818960._2
533+ let balanceAfterSwapA = $t01831818960._3
534+ let balanceAfterSwapB = $t01831818960._4
535+ let newBalanceA = $t01831818960._5
536+ let newBalanceB = $t01831818960._6
508537 let invariantNew = invariantCalc(balanceAfterSwapA, balanceAfterSwapB)
509538 let ratioVirtualBalanceToVirtualReplenish = (fraction(scale16, balanceAfterSwapA, balanceAfterSwapB) / fraction(scale8, virtualReplenishA, virtualReplenishB))
510539 let dAppThresholdAmount = fraction((newBalanceA + newBalanceB), dAppThreshold, (2 * dAppThresholdScale2))
511540 if (if ((slippageValueMinForSwap >= fraction(scale8, invariant, invariantNew)))
512541 then true
513542 else (invariant > invariantNew))
514543 then throw("Incorrect virtualSwapTokenPay or virtualSwapTokenGet value")
515544 else if (if ((slippageValueMinForReplenish > ratioVirtualBalanceToVirtualReplenish))
516545 then true
517546 else (ratioVirtualBalanceToVirtualReplenish > slippageValueMaxForReplenish))
518547 then throw("Swap with virtualSwapTokenPay and virtualSwapTokenGet is possible, but ratio after virtual swap is incorrect")
519548 else if (if ((dAppThresholdAmount > newBalanceA))
520549 then true
521550 else (dAppThresholdAmount > newBalanceB))
522551 then throwThreshold(dAppThresholdAmount, newBalanceA, newBalanceB)
523552 else {
524553 let ratioShareTokensInA = fraction(virtualReplenishA, scale8, balanceAfterSwapA)
525554 let ratioShareTokensInB = fraction(virtualReplenishB, scale8, balanceAfterSwapB)
526555 let shareTokenToPayAmount = fraction(min([ratioShareTokensInA, ratioShareTokensInB]), shareAssetSupply, scale8)
527556 let shareTokenToPayAmountAfterFee = fraction(shareTokenToPayAmount, (feeScale6 - (fee / 2)), feeScale6)
528557 let shareTokenGovernanceReward = fraction(shareTokenToPayAmount, (feeGovernance / 2), feeScale6)
529558 let governanceRewardTokenA = fraction(shareTokenGovernanceReward, balanceA, shareAssetSupply)
530559 let governanceRewardTokenB = fraction(shareTokenGovernanceReward, balanceB, shareAssetSupply)
531- let $t01990820203 = if ((pmtStrAssetId == strAssetIdA))
560+ let $t02094721242 = if ((pmtStrAssetId == strAssetIdA))
532561 then $Tuple3((pmtAmount - governanceRewardTokenA), governanceRewardTokenB, strAssetIdB)
533562 else $Tuple3((pmtAmount - governanceRewardTokenB), governanceRewardTokenA, strAssetIdA)
534- let stakeAmount = $t01990820203._1
535- let unstakeAmount = $t01990820203._2
536- let unstakeAsset = $t01990820203._3
563+ let stakeAmount = $t02094721242._1
564+ let unstakeAmount = $t02094721242._2
565+ let unstakeAsset = $t02094721242._3
537566 let stake1 = if (containsElement(stakingAssets, pmtStrAssetId))
538567 then invoke(this, "stakeUnstake", [true, stakeAmount, pmtStrAssetId], nil)
539568 else 0
540569 if ((stake1 == stake1))
541570 then {
542571 let stake2 = if (containsElement(stakingAssets, unstakeAsset))
543572 then invoke(this, "stakeUnstake", [false, unstakeAmount, unstakeAsset], nil)
544573 else 0
545574 if ((stake2 == stake2))
546575 then [Reissue(shareAssetId, shareTokenToPayAmountAfterFee, true), ScriptTransfer(i.caller, shareTokenToPayAmountAfterFee, shareAssetId), ScriptTransfer(moneyBoxAddress, governanceRewardTokenA, assetIdA), ScriptTransfer(moneyBoxAddress, governanceRewardTokenB, assetIdB), IntegerEntry(kBalanceA, (newBalanceA - governanceRewardTokenA)), IntegerEntry(kBalanceB, (newBalanceB - governanceRewardTokenB)), IntegerEntry(kShareAssetSupply, (shareAssetSupply + shareTokenToPayAmountAfterFee)), IntegerEntry(kInvariant, invariantCalc((newBalanceA - governanceRewardTokenA), (newBalanceB - governanceRewardTokenB)))]
547576 else throw("Strict value is not equal to itself.")
548577 }
549578 else throw("Strict value is not equal to itself.")
550579 }
551580 }
552581 })
553582
554583
555584
556585 @Callable(i)
557586 func withdraw () = valueOrElse(isActive(), {
558- let $t02149021565 = $Tuple2(i.payments[0].amount, i.payments[0].assetId)
559- let pmtAmount = $t02149021565._1
560- let pmtAssetId = $t02149021565._2
587+ let $t02252922604 = $Tuple2(i.payments[0].amount, i.payments[0].assetId)
588+ let pmtAmount = $t02252922604._1
589+ let pmtAssetId = $t02252922604._2
561590 let amountToPayA = fraction(pmtAmount, balanceA, shareAssetSupply)
562591 let amountToPayB = fraction(pmtAmount, balanceB, shareAssetSupply)
563592 let invariantCalculated = invariantCalc((balanceA - amountToPayA), (balanceB - amountToPayB))
564593 if ((size(i.payments) != 1))
565594 then throwOnePayment()
566595 else if ((pmtAssetId != shareAssetId))
567596 then throw(("Incorrect asset attached. Expected: " + toBase58String(shareAssetId)))
568597 else if (!(hasEnoughBalance))
569598 then ([ScriptTransfer(i.caller, pmtAmount, pmtAssetId)] ++ suspendSuspicious())
570599 else {
571600 let stake1 = if (containsElement(stakingAssets, strAssetIdA))
572601 then invoke(this, "stakeUnstake", [false, amountToPayA, strAssetIdA], nil)
573602 else 0
574603 if ((stake1 == stake1))
575604 then {
576605 let stake2 = if (containsElement(stakingAssets, strAssetIdB))
577606 then invoke(this, "stakeUnstake", [false, amountToPayB, strAssetIdB], nil)
578607 else 0
579608 if ((stake2 == stake2))
580609 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)]
581610 else throw("Strict value is not equal to itself.")
582611 }
583612 else throw("Strict value is not equal to itself.")
584613 }
585614 })
586615
587616
588617
589618 @Callable(i)
590619 func exchange (estimatedAmountToReceive,minAmountToReceive) = valueOrElse(isActive(), {
591- let $t02311623191 = $Tuple2(i.payments[0].amount, i.payments[0].assetId)
592- let pmtAmount = $t02311623191._1
593- let pmtAssetId = $t02311623191._2
620+ let $t02415524230 = $Tuple2(i.payments[0].amount, i.payments[0].assetId)
621+ let pmtAmount = $t02415524230._1
622+ let pmtAssetId = $t02415524230._2
594623 if ((0 >= estimatedAmountToReceive))
595624 then throw(("Estimated amount must be positive. Actual: " + toString(estimatedAmountToReceive)))
596625 else if ((minAmountToReceive > estimatedAmountToReceive))
597626 then throw("Minimal amount can't be greater than estimated.")
598627 else if ((size(i.payments) != 1))
599628 then throwOnePayment()
600629 else if (!(hasEnoughBalance))
601630 then ([ScriptTransfer(i.caller, pmtAmount, pmtAssetId)] ++ suspendSuspicious())
602631 else if (if ((pmtAssetId != assetIdA))
603632 then (pmtAssetId != assetIdB)
604633 else false)
605634 then throwAssets()
606635 else if ((10000000 > pmtAmount))
607636 then throw("Only swap of 10.000000 or more tokens is allowed")
608637 else if (if ((exchangeRatioLimitMin > fraction(scale8, minAmountToReceive, pmtAmount)))
609638 then true
610639 else (fraction(scale8, estimatedAmountToReceive, pmtAmount) > exchangeRatioLimitMax))
611640 then throw("Incorrect args and pmt ratio")
612641 else {
613642 let sendAssetId = if ((pmtAssetId == assetIdA))
614643 then assetIdB
615644 else assetIdA
616645 let amount = calculateSendAmount(estimatedAmountToReceive, minAmountToReceive, pmtAmount, pmtAssetId)
617646 let feeDiscount = calculateFeeDiscount(i.originCaller)
618647 let governanceReward = fraction(amount, fraction(feeGovernance, feeDiscount, feeScale6, CEILING), feeScale6)
619648 let amountMinusFee = fraction(amount, (feeScale6 - fraction(fee, feeDiscount, feeScale6, CEILING)), feeScale6)
620- let $t02464424906 = if ((pmtAssetId == assetIdA))
649+ let $t02568325945 = if ((pmtAssetId == assetIdA))
621650 then $Tuple2((balanceA + pmtAmount), ((balanceB - amountMinusFee) - governanceReward))
622651 else $Tuple2(((balanceA - amountMinusFee) - governanceReward), (balanceB + pmtAmount))
623- let newBalanceA = $t02464424906._1
624- let newBalanceB = $t02464424906._2
652+ let newBalanceA = $t02568325945._1
653+ let newBalanceB = $t02568325945._2
625654 let dAppThresholdAmount = fraction((newBalanceA + newBalanceB), dAppThreshold, (2 * dAppThresholdScale2))
626655 if (if ((dAppThresholdAmount > newBalanceA))
627656 then true
628657 else (dAppThresholdAmount > newBalanceB))
629658 then throwThreshold(dAppThresholdAmount, newBalanceA, newBalanceB)
630659 else {
631- let $t02520525278 = getAssetInfo(pmtAssetId)
632- let pmtStrAssetId = $t02520525278._1
633- let pmtAssetName = $t02520525278._2
634- let pmtDecimals = $t02520525278._3
635- let $t02529125368 = getAssetInfo(sendAssetId)
636- let sendStrAssetId = $t02529125368._1
637- let sendAssetName = $t02529125368._2
638- let sendDecimals = $t02529125368._3
660+ let $t02624426317 = getAssetInfo(pmtAssetId)
661+ let pmtStrAssetId = $t02624426317._1
662+ let pmtAssetName = $t02624426317._2
663+ let pmtDecimals = $t02624426317._3
664+ let $t02633026407 = getAssetInfo(sendAssetId)
665+ let sendStrAssetId = $t02633026407._1
666+ let sendAssetName = $t02633026407._2
667+ let sendDecimals = $t02633026407._3
639668 let stake1 = if (containsElement(stakingAssets, pmtStrAssetId))
640669 then invoke(this, "stakeUnstake", [true, pmtAmount, pmtStrAssetId], nil)
641670 else 0
642671 if ((stake1 == stake1))
643672 then {
644673 let stake2 = if (containsElement(stakingAssets, sendStrAssetId))
645674 then invoke(this, "stakeUnstake", [false, (amountMinusFee + governanceReward), sendStrAssetId], nil)
646675 else 0
647676 if ((stake2 == stake2))
648- then $Tuple2([IntegerEntry(kBalanceA, newBalanceA), IntegerEntry(kBalanceB, newBalanceB), IntegerEntry(kInvariant, invariantCalc(newBalanceA, newBalanceB)), ScriptTransfer(i.caller, amountMinusFee, sendAssetId), ScriptTransfer(moneyBoxAddress, governanceReward, sendAssetId)], $Tuple2(amountMinusFee, sendAssetId))
677+ then $Tuple2([IntegerEntry(kBalanceA, newBalanceA), IntegerEntry(kBalanceB, newBalanceB), IntegerEntry(kInvariant, invariantCalc(newBalanceA, newBalanceB)), ScriptTransfer(i.caller, amountMinusFee, sendAssetId), ScriptTransfer(moneyBoxAddress, governanceReward, sendAssetId)], [amountMinusFee, sendAssetId])
649678 else throw("Strict value is not equal to itself.")
650679 }
651680 else throw("Strict value is not equal to itself.")
652681 }
653682 }
654683 })
655684
656685
657686
658687 @Callable(i)
659688 func shutdown () = valueOrElse(isAdminCall(i), if (!(active))
660689 then throw(("DApp is already suspended. Cause: " + valueOrElse(getString(this, kCause), "the cause wasn't specified")))
661690 else suspend("Paused by admin"))
662691
663692
664693
665694 @Callable(i)
666695 func activate () = valueOrElse(isAdminCall(i), if (active)
667696 then throwIsActive()
668697 else [BooleanEntry(kActive, true), DeleteEntry(kCause)])
669698
670699
671700
672701 @Callable(i)
673702 func takeIntoAccountExtraFunds () = valueOrElse(isActive(), {
674703 let amountEnrollA = (accountBalanceWithStakedA - balanceA)
675704 let amountEnrollB = (accountBalanceWithStakedB - balanceB)
676705 let invariantNew = invariantCalc((balanceA + amountEnrollA), (balanceB + amountEnrollB))
677706 if ((i.caller != moneyBoxAddress))
678707 then throw("Only the money box can call this function")
679708 else if (if ((0 > amountEnrollA))
680709 then true
681710 else (0 > amountEnrollB))
682711 then suspend("Enroll amount negative")
683712 else if (if ((amountEnrollA == 0))
684713 then (amountEnrollB == 0)
685714 else false)
686715 then throw("No money to take")
687716 else {
688717 let stake1 = if (if (containsElement(stakingAssets, strAssetIdA))
689718 then (amountEnrollA > 0)
690719 else false)
691720 then invoke(this, "stakeUnstake", [true, amountEnrollA, strAssetIdA], nil)
692721 else 0
693722 if ((stake1 == stake1))
694723 then {
695724 let stake2 = if (if (containsElement(stakingAssets, strAssetIdB))
696725 then (amountEnrollB > 0)
697726 else false)
698727 then invoke(this, "stakeUnstake", [true, amountEnrollB, strAssetIdB], nil)
699728 else 0
700729 if ((stake2 == stake2))
701730 then [IntegerEntry(kInvariant, invariantNew), IntegerEntry(kBalanceA, (balanceA + amountEnrollA)), IntegerEntry(kBalanceB, (balanceB + amountEnrollB))]
702731 else throw("Strict value is not equal to itself.")
703732 }
704733 else throw("Strict value is not equal to itself.")
705734 }
706735 })
707736
708737
709738
710739 @Callable(i)
740+func keepLimitForFirstHarvest (shareLimit) = valueOrElse(isActive(), valueOrElse(isAdminCall(i), [IntegerEntry(kShareLimit, shareLimit)]))
741+
742+
743+
744+@Callable(i)
711745 func stakeUnstake (stake,amount,assetIdString) = if ((i.caller != this))
712746 then throw("Only contract itself can invoke this function")
713747 else {
714- let $t02837228475 = calcStakingParams(stake, amount, fromBase58String(assetIdString))
715- let call = $t02837228475._1
716- let addr = $t02837228475._2
717- let params = $t02837228475._3
718- let payments = $t02837228475._4
748+ let $t02961429717 = calcStakingParams(stake, amount, fromBase58String(assetIdString))
749+ let call = $t02961429717._1
750+ let addr = $t02961429717._2
751+ let params = $t02961429717._3
752+ let payments = $t02961429717._4
719753 let inv = invoke(addr, call, params, payments)
720754 if ((inv == inv))
721755 then nil
722756 else throw("Strict value is not equal to itself.")
723757 }
724-
725-
726-
727-@Callable(i)
728-func toBigIntInvariant () = valueOrElse(isAdminCall(i), [IntegerEntry(kInvariant, invariantCalc(balanceA, balanceB))])
729758
730759
731760 @Verifier(tx)
732761 func verify () = {
733762 let multiSignedByAdmins = {
734763 let adminPubKey1Signed = if (sigVerify(tx.bodyBytes, tx.proofs[0], adminPubKey1))
735764 then 1
736765 else 0
737766 let adminPubKey2Signed = if (sigVerify(tx.bodyBytes, tx.proofs[1], adminPubKey2))
738767 then 1
739768 else 0
740769 let adminPubKey3Signed = if (sigVerify(tx.bodyBytes, tx.proofs[2], adminPubKey3))
741770 then 1
742771 else 0
743772 (((adminPubKey1Signed + adminPubKey2Signed) + adminPubKey3Signed) >= 2)
744773 }
745774 match tx {
746775 case inv: InvokeScriptTransaction =>
747776 let callTakeIntoAccount = if ((inv.dApp == this))
748777 then (inv.function == "takeIntoAccountExtraFunds")
749778 else false
750779 let signedByAdmin = if (if (if (sigVerify(tx.bodyBytes, tx.proofs[0], adminPubKey1))
751780 then true
752781 else sigVerify(tx.bodyBytes, tx.proofs[0], adminPubKey2))
753782 then true
754783 else sigVerify(tx.bodyBytes, tx.proofs[0], adminPubKey3))
755784 then true
756785 else sigVerify(tx.bodyBytes, tx.proofs[0], adminPubKeyInvoke)
757786 if (if (callTakeIntoAccount)
758787 then signedByAdmin
759788 else false)
760789 then true
761790 else multiSignedByAdmins
762791 case _ =>
763792 multiSignedByAdmins
764793 }
765794 }
766795

github/deemru/w8io/169f3d6 
112.70 ms