tx · 3hHUTTcJbRMnH3YvGipvoZgsiKJW4T6gZW8vks7fbrpw

3MsXpzisJAwnzUr7XrEoW1BZo4U6rw4tsYK:  -0.04200000 Waves

2023.08.24 15:14 [2724706] smart account 3MsXpzisJAwnzUr7XrEoW1BZo4U6rw4tsYK > SELF 0.00000000 Waves

{ "type": 13, "id": "3hHUTTcJbRMnH3YvGipvoZgsiKJW4T6gZW8vks7fbrpw", "fee": 4200000, "feeAssetId": null, "timestamp": 1692879295582, "version": 2, "chainId": 84, "sender": "3MsXpzisJAwnzUr7XrEoW1BZo4U6rw4tsYK", "senderPublicKey": "FFdBua5rzzMkZebvsvmN7sAdU7XhFK8QNJ3hiwwxAYRA", "proofs": [ "2TqduMUwbV1rmaYrZcMx51zKXQwiXyrJEcDJYSJsx8tc6GwFVixJgvGtC3nTkWRDa2yPARKverqfSAEQoyuhued8", "64dpsQ5R2A7AsUw5bRQcgmYwYDjCV8aj3it8G3WCrjr6pVkkLTzxoxzM2Ekq3KqxLXJx9vjRoC9PwCnmWfCGCHhw" ], "script": "base64:BgJiCAISAwoBCBIDCgEIEgMKAQgSBAoCCAESBQoDAggBEgUKAwgBARIECgIICBIECgIICBIECgIIARIFCgMCCAESAwoBCBIECgIIAhIDCgEIEgMKARgSAwoBGBIECgIICBIAEgBpAAdrQWN0aXZlAgZhY3RpdmUAC2tBY3RpdmVHbG9iAhRhY3RpdmVfYWxsX2NvbnRyYWN0cwAPa0RlcHJlY2F0ZWRQb29sAgtkZXByZWNhdGVkXwAGa0NhdXNlAg5zaHV0ZG93bl9jYXVzZQAaa1Jld2FyZFBvb2xGcmFjdGlvbkN1cnJlbnQCHV9jdXJyZW50X3Bvb2xfZnJhY3Rpb25fcmV3YXJkABtrUmV3YXJkUG9vbEZyYWN0aW9uUHJldmlvdXMCHl9wcmV2aW91c19wb29sX2ZyYWN0aW9uX3Jld2FyZAATa0hlaWdodFBvb2xGcmFjdGlvbgIaX3Bvb2xfcmV3YXJkX3VwZGF0ZV9oZW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gaXMgYWxyZWFkeSBzdXNwZW5kZWQuIENhdXNlOiAJAQt2YWx1ZU9yRWxzZQIJAJ0IAgUEdGhpcwUGa0NhdXNlAhp0aGUgY2F1c2Ugd2Fzbid0IHNwZWNpZmllZAkBB3N1c3BlbmQBAg9QYXVzZWQgYnkgYWRtaW4BaQEIYWN0aXZhdGUACQELdmFsdWVPckVsc2UCCQELaXNBZG1pbkNhbGwBBQFpAwUGYWN0aXZlCQACAQIWREFwcCBpcyBhbHJlYWR5IGFjdGl2ZQkAzAgCCQEMQm9vbGVhbkVudHJ5AgUHa0FjdGl2ZQYJAMwIAgkBC0RlbGV0ZUVudHJ5AQUGa0NhdXNlBQNuaWwBAnR4AQZ2ZXJpZnkABAckbWF0Y2gwBQJ0eAQSYWRtaW5QdWJLZXkxU2lnbmVkAwkA9AMDCAUCdHgJYm9keUJ5dGVzCQCRAwIIBQJ0eAZwcm9vZnMAAAUMYWRtaW5QdWJLZXkxAAEAAAQSYWRtaW5QdWJLZXkyU2lnbmVkAwkA9AMDCAUCdHgJYm9keUJ5dGVzCQCRAwIIBQJ0eAZwcm9vZnMAAQUMYWRtaW5QdWJLZXkyAAEAAAQSYWRtaW5QdWJLZXkzU2lnbmVkAwkA9AMDCAUCdHgJYm9keUJ5dGVzCQCRAwIIBQJ0eAZwcm9vZnMAAgUMYWRtaW5QdWJLZXkzAAEAAAkAZwIJAGQCCQBkAgUSYWRtaW5QdWJLZXkxU2lnbmVkBRJhZG1pblB1YktleTJTaWduZWQFEmFkbWluUHViS2V5M1NpZ25lZAACM8v/iA==", "height": 2724706, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: CJiJrXDdFYXgKdqoRYvnyCtSfbmXB6dBxURCHn1RUuFF Next: 8PS12FAgSzqEoPjVTP23ZTFrNWFJYyjcucKBHCEzWNrF Diff:
OldNewDifferences
464464 let inv = if ((i.payments[0].assetId == axlyLpId))
465465 then invoke(axlyFarmAddr, "lpAction", nil, nil)
466466 else nil
467- let shareAssetId = getShareAssetId(pool)
468- let user = toString(caller)
469- let totalShare = getTotalShareToken(pool)
470- let totalShareVirtual = valueOrElse(getInteger(this, (pool + kShareTokensVirtual)), totalShare)
471- let userStakedAmount = valueOrElse(getInteger(this, (((pool + "_") + user) + kUserShareTokensStaked)), 0)
472- let userLockedHeigt = valueOrElse(getInteger(this, (((pool + "_") + user) + kUserShareTokensLockedHeight)), 0)
473- let userLockedAmount = valueOrElse(getInteger(this, (((pool + "_") + user) + kUserShareTokensLocked)), 0)
474- let userAmountVirtual = valueOrElse(getInteger(this, (((pool + "_") + user) + kUserShareTokensVirtual)), userStakedAmount)
475- let totalUserShareTokens = ((userStakedAmount + userLockedAmount) + i.payments[0].amount)
476- let $t01968419736 = getLockParams(lockType)
477- let lockPeriod = $t01968419736._1
478- let lockCoef = $t01968419736._2
479- let lockWavesFee = getIntegerValue(this, kLockWavesFee)
480- if ((i.payments[0].assetId != shareAssetId))
481- then throw("Wrong sharetoken in payment")
482- else if ((0 >= i.payments[0].amount))
483- then throw("Payment amount must be greater than 0")
484- else if ((0 > lockType))
485- then throw("lockType must be >= 0")
486- else {
487- let shareTokensChangeOnFH = canLockInFirstHarvest(pool, user, userStakedAmount, i.payments[0].amount, lockType)
488- if ((shareTokensChangeOnFH == shareTokensChangeOnFH))
489- then {
490- let $t02016322097 = if ((lockType == 0))
467+ if ((inv == inv))
468+ then {
469+ let shareAssetId = getShareAssetId(pool)
470+ let user = toString(caller)
471+ let totalShare = getTotalShareToken(pool)
472+ let totalShareVirtual = valueOrElse(getInteger(this, (pool + kShareTokensVirtual)), totalShare)
473+ let userStakedAmount = valueOrElse(getInteger(this, (((pool + "_") + user) + kUserShareTokensStaked)), 0)
474+ let userLockedHeigt = valueOrElse(getInteger(this, (((pool + "_") + user) + kUserShareTokensLockedHeight)), 0)
475+ let userLockedAmount = valueOrElse(getInteger(this, (((pool + "_") + user) + kUserShareTokensLocked)), 0)
476+ let userAmountVirtual = valueOrElse(getInteger(this, (((pool + "_") + user) + kUserShareTokensVirtual)), userStakedAmount)
477+ let totalUserShareTokens = ((userStakedAmount + userLockedAmount) + i.payments[0].amount)
478+ let $t01968719739 = getLockParams(lockType)
479+ let lockPeriod = $t01968719739._1
480+ let lockCoef = $t01968719739._2
481+ let lockWavesFee = getIntegerValue(this, kLockWavesFee)
482+ if ((i.payments[0].assetId != shareAssetId))
483+ then throw("Wrong sharetoken in payment")
484+ else if ((0 >= i.payments[0].amount))
485+ then throw("Payment amount must be greater than 0")
486+ else if ((0 > lockType))
487+ then throw("lockType must be >= 0")
488+ else {
489+ let shareTokensChangeOnFH = canLockInFirstHarvest(pool, user, userStakedAmount, i.payments[0].amount, lockType)
490+ if ((shareTokensChangeOnFH == shareTokensChangeOnFH))
491491 then {
492- let userAmountVirtualNew = ((userAmountVirtual + i.payments[0].amount) - shareTokensChangeOnFH)
493- $Tuple2([IntegerEntry((((pool + "_") + user) + kUserShareTokensStaked), ((userStakedAmount + i.payments[0].amount) - shareTokensChangeOnFH)), IntegerEntry((((pool + "_") + user) + kUserShareTokensVirtual), userAmountVirtualNew), IntegerEntry((pool + kShareTokensVirtual), ((totalShareVirtual + i.payments[0].amount) - shareTokensChangeOnFH)), ScriptTransfer(caller, shareTokensChangeOnFH, i.payments[0].assetId)], ((totalShare + i.payments[0].amount) - shareTokensChangeOnFH))
492+ let $t02016622100 = if ((lockType == 0))
493+ then {
494+ let userAmountVirtualNew = ((userAmountVirtual + i.payments[0].amount) - shareTokensChangeOnFH)
495+ $Tuple2([IntegerEntry((((pool + "_") + user) + kUserShareTokensStaked), ((userStakedAmount + i.payments[0].amount) - shareTokensChangeOnFH)), IntegerEntry((((pool + "_") + user) + kUserShareTokensVirtual), userAmountVirtualNew), IntegerEntry((pool + kShareTokensVirtual), ((totalShareVirtual + i.payments[0].amount) - shareTokensChangeOnFH)), ScriptTransfer(caller, shareTokensChangeOnFH, i.payments[0].assetId)], ((totalShare + i.payments[0].amount) - shareTokensChangeOnFH))
496+ }
497+ else if (if ((userLockedHeigt == 0))
498+ then if (if ((2 > size(i.payments)))
499+ then true
500+ else (i.payments[1].assetId != unit))
501+ then true
502+ else (lockWavesFee > i.payments[1].amount)
503+ else false)
504+ then throw((("You need to pay additional waves comission " + toString(lockWavesFee)) + "WAVES"))
505+ else if ((userLockedHeigt > (height + lockPeriod)))
506+ then throw("You cannot lock sharetokens for a period less than what you have already locked")
507+ else {
508+ let userLockedAmountNew = (userLockedAmount + i.payments[0].amount)
509+ let userLockedHeigtNew = (height + lockPeriod)
510+ let userAmountVirtualNew = (fraction(userLockedAmountNew, lockCoef, lockBoostCoefScale) + userStakedAmount)
511+ $Tuple2([IntegerEntry((((pool + "_") + user) + kUserShareTokensLocked), userLockedAmountNew), IntegerEntry((((pool + "_") + user) + kUserShareTokensLockedHeight), userLockedHeigtNew), IntegerEntry((((pool + "_") + user) + kUserShareTokensLockedType), lockType), IntegerEntry((((pool + "_") + user) + kUserShareTokensVirtual), userAmountVirtualNew), IntegerEntry((pool + kShareTokensVirtual), ((totalShareVirtual - userAmountVirtual) + userAmountVirtualNew))], (totalShare + i.payments[0].amount))
512+ }
513+ let lockEntries = $t02016622100._1
514+ let totalShareNew = $t02016622100._2
515+ if ((totalShareNew > accountBalance(shareAssetId)))
516+ then throw("Balance of share-token is lower than totalAmount")
517+ else {
518+ let $t02222522319 = claimCalc(pool, user)
519+ let farmInterest = $t02222522319._1
520+ let boostInterest = $t02222522319._2
521+ let claimAmount = $t02222522319._3
522+ let toTreasure = $t02222522319._4
523+ let teamReward = $t02222522319._5
524+ let availableFundsNew = (userAvailableSWOP(pool, user) + claimAmount)
525+ let uplp = if ((getString(Address(fromBase58String(pool)), "version") == "3.0.0"))
526+ then invoke(lpFarmingAddress, "updateUserInterest", [user, pool, totalUserShareTokens], nil)
527+ else 0
528+ if ((uplp == uplp))
529+ then ([IntegerEntry((((pool + "_") + user) + kFarmUserLastInterest), farmInterest), IntegerEntry((((pool + "_") + user) + kBoostUserLastInterest), boostInterest), IntegerEntry((pool + kFarmLastInterest), farmInterest), IntegerEntry((pool + kBoostLastInterest), boostInterest), IntegerEntry((pool + kLastInterestHeight), height), IntegerEntry((pool + kShareTotalShareTokens), totalShareNew), IntegerEntry((((pool + "_") + user) + kAvailableSWOP), availableFundsNew), Reissue(SWOP, (toTreasure + teamReward), true), ScriptTransfer(farmingTreasureAddr, toTreasure, SWOP), ScriptTransfer(teamBoxAddress, teamReward, SWOP)] ++ lockEntries)
530+ else throw("Strict value is not equal to itself.")
531+ }
494532 }
495- else if (if ((userLockedHeigt == 0))
496- then if (if ((2 > size(i.payments)))
497- then true
498- else (i.payments[1].assetId != unit))
499- then true
500- else (lockWavesFee > i.payments[1].amount)
501- else false)
502- then throw((("You need to pay additional waves comission " + toString(lockWavesFee)) + "WAVES"))
503- else if ((userLockedHeigt > (height + lockPeriod)))
504- then throw("You cannot lock sharetokens for a period less than what you have already locked")
505- else {
506- let userLockedAmountNew = (userLockedAmount + i.payments[0].amount)
507- let userLockedHeigtNew = (height + lockPeriod)
508- let userAmountVirtualNew = (fraction(userLockedAmountNew, lockCoef, lockBoostCoefScale) + userStakedAmount)
509- $Tuple2([IntegerEntry((((pool + "_") + user) + kUserShareTokensLocked), userLockedAmountNew), IntegerEntry((((pool + "_") + user) + kUserShareTokensLockedHeight), userLockedHeigtNew), IntegerEntry((((pool + "_") + user) + kUserShareTokensLockedType), lockType), IntegerEntry((((pool + "_") + user) + kUserShareTokensVirtual), userAmountVirtualNew), IntegerEntry((pool + kShareTokensVirtual), ((totalShareVirtual - userAmountVirtual) + userAmountVirtualNew))], (totalShare + i.payments[0].amount))
510- }
511- let lockEntries = $t02016322097._1
512- let totalShareNew = $t02016322097._2
513- if ((totalShareNew > accountBalance(shareAssetId)))
514- then throw("Balance of share-token is lower than totalAmount")
515- else {
516- let $t02222222316 = claimCalc(pool, user)
517- let farmInterest = $t02222222316._1
518- let boostInterest = $t02222222316._2
519- let claimAmount = $t02222222316._3
520- let toTreasure = $t02222222316._4
521- let teamReward = $t02222222316._5
522- let availableFundsNew = (userAvailableSWOP(pool, user) + claimAmount)
523- let uplp = if ((getString(Address(fromBase58String(pool)), "version") == "3.0.0"))
524- then invoke(lpFarmingAddress, "updateUserInterest", [user, pool, totalUserShareTokens], nil)
525- else 0
526- if ((uplp == uplp))
527- then ([IntegerEntry((((pool + "_") + user) + kFarmUserLastInterest), farmInterest), IntegerEntry((((pool + "_") + user) + kBoostUserLastInterest), boostInterest), IntegerEntry((pool + kFarmLastInterest), farmInterest), IntegerEntry((pool + kBoostLastInterest), boostInterest), IntegerEntry((pool + kLastInterestHeight), height), IntegerEntry((pool + kShareTotalShareTokens), totalShareNew), IntegerEntry((((pool + "_") + user) + kAvailableSWOP), availableFundsNew), Reissue(SWOP, (toTreasure + teamReward), true), ScriptTransfer(farmingTreasureAddr, toTreasure, SWOP), ScriptTransfer(teamBoxAddress, teamReward, SWOP)] ++ lockEntries)
528- else throw("Strict value is not equal to itself.")
529- }
533+ else throw("Strict value is not equal to itself.")
530534 }
531- else throw("Strict value is not equal to itself.")
532- }
535+ }
536+ else throw("Strict value is not equal to itself.")
533537 }
534538
535539
543547 let inv1 = if ((shareTokensId == axlyLpId))
544548 then invoke(axlyFarmAddr, "lpAction", nil, nil)
545549 else nil
546- let user = toString(caller)
547- let $t02378223876 = claimCalc(pool, user)
548- let farmInterest = $t02378223876._1
549- let boostInterest = $t02378223876._2
550- let claimAmount = $t02378223876._3
551- let toTreasure = $t02378223876._4
552- let teamReward = $t02378223876._5
553- let userStakedAmount = valueOrElse(getInteger(this, (((pool + "_") + user) + kUserShareTokensStaked)), 0)
554- let userLockedAmount = valueOrElse(getInteger(this, (((pool + "_") + user) + kUserShareTokensLocked)), 0)
555- let userAmountVirtual = valueOrElse(getInteger(this, (((pool + "_") + user) + kUserShareTokensVirtual)), userStakedAmount)
556- let userStakedAmountNew = (userStakedAmount - shareTokensWithdrawAmount)
557- let availableFundsNew = (userAvailableSWOP(pool, user) + claimAmount)
558- let totalShareAmount = getTotalShareToken(pool)
559- let totalShareVirtual = valueOrElse(getInteger(this, (pool + kShareTokensVirtual)), totalShareAmount)
560- let totalShareAmountNew = (totalShareAmount - shareTokensWithdrawAmount)
561- let totalShareVirtualNew = (totalShareVirtual - shareTokensWithdrawAmount)
562- let userAmountVirtualNew = (userAmountVirtual - shareTokensWithdrawAmount)
563- if ((shareTokensWithdrawAmount > userStakedAmount))
564- then throw("Withdraw amount more then user locked amount")
565- else if ((accountBalance(shareTokensId) > totalShareAmount))
566- then throw("Balance of share-token is lower than totalAmount")
567- else {
568- let uplp = if ((getString(Address(fromBase58String(pool)), "version") == "3.0.0"))
569- then invoke(lpFarmingAddress, "updateUserInterest", [user, pool, (userStakedAmount + userLockedAmount)], nil)
570- else 0
571- if ((uplp == uplp))
572- then [IntegerEntry((((pool + "_") + user) + kFarmUserLastInterest), farmInterest), IntegerEntry((((pool + "_") + user) + kBoostUserLastInterest), boostInterest), IntegerEntry((pool + kFarmLastInterest), farmInterest), IntegerEntry((pool + kBoostLastInterest), boostInterest), IntegerEntry((pool + kLastInterestHeight), height), IntegerEntry((((pool + "_") + user) + kUserShareTokensStaked), userStakedAmountNew), IntegerEntry((((pool + "_") + user) + kUserShareTokensVirtual), userAmountVirtualNew), IntegerEntry((pool + kShareTotalShareTokens), totalShareAmountNew), IntegerEntry((pool + kShareTokensVirtual), totalShareVirtualNew), IntegerEntry((((pool + "_") + user) + kAvailableSWOP), availableFundsNew), Reissue(SWOP, toTreasure, true), ScriptTransfer(farmingTreasureAddr, toTreasure, SWOP), ScriptTransfer(teamBoxAddress, teamReward, SWOP), ScriptTransfer(i.caller, shareTokensWithdrawAmount, shareTokensId)]
573- else throw("Strict value is not equal to itself.")
574- }
550+ if ((inv1 == inv1))
551+ then {
552+ let user = toString(caller)
553+ let $t02378823882 = claimCalc(pool, user)
554+ let farmInterest = $t02378823882._1
555+ let boostInterest = $t02378823882._2
556+ let claimAmount = $t02378823882._3
557+ let toTreasure = $t02378823882._4
558+ let teamReward = $t02378823882._5
559+ let userStakedAmount = valueOrElse(getInteger(this, (((pool + "_") + user) + kUserShareTokensStaked)), 0)
560+ let userLockedAmount = valueOrElse(getInteger(this, (((pool + "_") + user) + kUserShareTokensLocked)), 0)
561+ let userAmountVirtual = valueOrElse(getInteger(this, (((pool + "_") + user) + kUserShareTokensVirtual)), userStakedAmount)
562+ let userStakedAmountNew = (userStakedAmount - shareTokensWithdrawAmount)
563+ let availableFundsNew = (userAvailableSWOP(pool, user) + claimAmount)
564+ let totalShareAmount = getTotalShareToken(pool)
565+ let totalShareVirtual = valueOrElse(getInteger(this, (pool + kShareTokensVirtual)), totalShareAmount)
566+ let totalShareAmountNew = (totalShareAmount - shareTokensWithdrawAmount)
567+ let totalShareVirtualNew = (totalShareVirtual - shareTokensWithdrawAmount)
568+ let userAmountVirtualNew = (userAmountVirtual - shareTokensWithdrawAmount)
569+ if ((shareTokensWithdrawAmount > userStakedAmount))
570+ then throw("Withdraw amount more then user locked amount")
571+ else if ((accountBalance(shareTokensId) > totalShareAmount))
572+ then throw("Balance of share-token is lower than totalAmount")
573+ else {
574+ let uplp = if ((getString(Address(fromBase58String(pool)), "version") == "3.0.0"))
575+ then invoke(lpFarmingAddress, "updateUserInterest", [user, pool, (userStakedAmount + userLockedAmount)], nil)
576+ else 0
577+ if ((uplp == uplp))
578+ then [IntegerEntry((((pool + "_") + user) + kFarmUserLastInterest), farmInterest), IntegerEntry((((pool + "_") + user) + kBoostUserLastInterest), boostInterest), IntegerEntry((pool + kFarmLastInterest), farmInterest), IntegerEntry((pool + kBoostLastInterest), boostInterest), IntegerEntry((pool + kLastInterestHeight), height), IntegerEntry((((pool + "_") + user) + kUserShareTokensStaked), userStakedAmountNew), IntegerEntry((((pool + "_") + user) + kUserShareTokensVirtual), userAmountVirtualNew), IntegerEntry((pool + kShareTotalShareTokens), totalShareAmountNew), IntegerEntry((pool + kShareTokensVirtual), totalShareVirtualNew), IntegerEntry((((pool + "_") + user) + kAvailableSWOP), availableFundsNew), Reissue(SWOP, toTreasure, true), ScriptTransfer(farmingTreasureAddr, toTreasure, SWOP), ScriptTransfer(teamBoxAddress, teamReward, SWOP), ScriptTransfer(i.caller, shareTokensWithdrawAmount, shareTokensId)]
579+ else throw("Strict value is not equal to itself.")
580+ }
581+ }
582+ else throw("Strict value is not equal to itself.")
575583 }
576584 else throw("Strict value is not equal to itself.")
577585 }
581589 let shareTokensId = fromBase58String(getStringValue(value(addressFromString(pool)), "share_asset_id"))
582590 let user = toString(caller)
583591 let shareTokenLocked = getTotalShareToken(pool)
584- let $t02644626540 = claimCalc(pool, user)
585- let farmInterest = $t02644626540._1
586- let boostInterest = $t02644626540._2
587- let claimAmount = $t02644626540._3
588- let toTreasure = $t02644626540._4
589- let teamReward = $t02644626540._5
592+ let $t02645226546 = claimCalc(pool, user)
593+ let farmInterest = $t02645226546._1
594+ let boostInterest = $t02645226546._2
595+ let claimAmount = $t02645226546._3
596+ let toTreasure = $t02645226546._4
597+ let teamReward = $t02645226546._5
590598 let availableFund = (userAvailableSWOP(pool, user) + claimAmount)
591599 if ((accountBalance(shareTokensId) > shareTokenLocked))
592600 then throw("Balance of share-token is lower than totalAmount")
605613 let userLockedAmount = valueOrElse(getInteger(this, (((pool + "_") + user) + kUserShareTokensLocked)), 0)
606614 let userAmountVirtual = valueOrElse(getInteger(this, (((pool + "_") + user) + kUserShareTokensVirtual)), userStakedAmount)
607615 let userStakedAmountNew = (userStakedAmount + userLockedAmount)
608- let $t02801428108 = claimCalc(pool, user)
609- let farmInterest = $t02801428108._1
610- let boostInterest = $t02801428108._2
611- let claimAmount = $t02801428108._3
612- let toTreasure = $t02801428108._4
613- let teamReward = $t02801428108._5
616+ let $t02802028114 = claimCalc(pool, user)
617+ let farmInterest = $t02802028114._1
618+ let boostInterest = $t02802028114._2
619+ let claimAmount = $t02802028114._3
620+ let toTreasure = $t02802028114._4
621+ let teamReward = $t02802028114._5
614622 let availableFundsNew = (userAvailableSWOP(pool, user) + claimAmount)
615623 [IntegerEntry((((pool + "_") + user) + kFarmUserLastInterest), farmInterest), IntegerEntry((((pool + "_") + user) + kBoostUserLastInterest), boostInterest), IntegerEntry((pool + kFarmLastInterest), farmInterest), IntegerEntry((pool + kBoostLastInterest), boostInterest), IntegerEntry((pool + kLastInterestHeight), height), IntegerEntry((((pool + "_") + user) + kUserShareTokensStaked), userStakedAmountNew), IntegerEntry((((pool + "_") + user) + kUserShareTokensVirtual), userStakedAmountNew), IntegerEntry((pool + kShareTokensVirtual), ((totalShareVirtual - userAmountVirtual) + userStakedAmountNew)), IntegerEntry((((pool + "_") + user) + kAvailableSWOP), availableFundsNew), DeleteEntry((((pool + "_") + user) + kUserShareTokensLocked)), DeleteEntry((((pool + "_") + user) + kUserShareTokensLockedHeight)), DeleteEntry((((pool + "_") + user) + kUserShareTokensLockedType)), Reissue(SWOP, (toTreasure + teamReward), true), ScriptTransfer(farmingTreasureAddr, toTreasure, SWOP), ScriptTransfer(teamBoxAddress, teamReward, SWOP)]
616624 }
642650 then throw("Only Governance can call this function")
643651 else {
644652 let user = toString(addressFromPublicKey(adminInvokePubKey))
645- let $t03055830632 = claimCalc(pool, user)
646- let farmInterest = $t03055830632._1
647- let boostInterest = $t03055830632._2
648- let boostLPinterest = $t03055830632._3
653+ let $t03056430638 = claimCalc(pool, user)
654+ let farmInterest = $t03056430638._1
655+ let boostInterest = $t03056430638._2
656+ let boostLPinterest = $t03056430638._3
649657 [IntegerEntry((pool + kFarmLastInterest), farmInterest), IntegerEntry((pool + kBoostLastInterest), boostInterest), IntegerEntry((pool + kLastInterestHeight), height)]
650658 })
651659
672680 let userLockedAmount = valueOrElse(getInteger(this, (((pool + "_") + user) + kUserShareTokensLocked)), 0)
673681 let userAmountVirtual = valueOrElse(getInteger(this, (((pool + "_") + user) + kUserShareTokensVirtual)), userStakedAmount)
674682 let totalUserShareTokens = (userStakedAmount + userLockedAmount)
675- let $t03226132313 = getLockParams(lockType)
676- let lockPeriod = $t03226132313._1
677- let lockCoef = $t03226132313._2
683+ let $t03226732319 = getLockParams(lockType)
684+ let lockPeriod = $t03226732319._1
685+ let lockCoef = $t03226732319._2
678686 let lockWavesFee = getIntegerValue(this, kLockWavesFee)
679687 if ((getHeightFirstHarvest(pool) > height))
680688 then throw("You can't lock shareTokens till first harvest end.")
705713 let userStakedAmountNew = (userStakedAmount - lockAmount)
706714 let userLockedHeigtNew = (height + lockPeriod)
707715 let userAmountVirtualNew = (fraction(userLockedAmountNew, lockCoef, lockBoostCoefScale) + userStakedAmountNew)
708- let $t03365933753 = claimCalc(pool, user)
709- let farmInterest = $t03365933753._1
710- let boostInterest = $t03365933753._2
711- let claimAmount = $t03365933753._3
712- let toTreasure = $t03365933753._4
713- let teamReward = $t03365933753._5
716+ let $t03366533759 = claimCalc(pool, user)
717+ let farmInterest = $t03366533759._1
718+ let boostInterest = $t03366533759._2
719+ let claimAmount = $t03366533759._3
720+ let toTreasure = $t03366533759._4
721+ let teamReward = $t03366533759._5
714722 let availableFundsNew = (userAvailableSWOP(pool, user) + claimAmount)
715723 [IntegerEntry((((pool + "_") + user) + kUserShareTokensStaked), userStakedAmountNew), IntegerEntry((((pool + "_") + user) + kUserShareTokensLocked), userLockedAmountNew), IntegerEntry((((pool + "_") + user) + kUserShareTokensLockedHeight), userLockedHeigtNew), IntegerEntry((((pool + "_") + user) + kUserShareTokensLockedType), lockType), IntegerEntry((((pool + "_") + user) + kUserShareTokensVirtual), userAmountVirtualNew), IntegerEntry((pool + kShareTokensVirtual), ((totalShareVirtual - userAmountVirtual) + userAmountVirtualNew)), IntegerEntry((((pool + "_") + user) + kFarmUserLastInterest), farmInterest), IntegerEntry((((pool + "_") + user) + kBoostUserLastInterest), boostInterest), IntegerEntry((pool + kFarmLastInterest), farmInterest), IntegerEntry((pool + kBoostLastInterest), boostInterest), IntegerEntry((pool + kLastInterestHeight), height), IntegerEntry((((pool + "_") + user) + kAvailableSWOP), availableFundsNew), Reissue(SWOP, (toTreasure + teamReward), true), ScriptTransfer(farmingTreasureAddr, toTreasure, SWOP), ScriptTransfer(teamBoxAddress, teamReward, SWOP)]
716724 }
863871 func updateUserBoostInterest (pool,user) = valueOrElse(isActive(), if ((i.caller != votingAddress))
864872 then throw("Only voiting can call this function")
865873 else {
866- let $t03857738671 = claimCalc(pool, user)
867- let farmInterest = $t03857738671._1
868- let boostInterest = $t03857738671._2
869- let claimAmount = $t03857738671._3
870- let toTreasure = $t03857738671._4
871- let teamReward = $t03857738671._5
874+ let $t03858338677 = claimCalc(pool, user)
875+ let farmInterest = $t03858338677._1
876+ let boostInterest = $t03858338677._2
877+ let claimAmount = $t03858338677._3
878+ let toTreasure = $t03858338677._4
879+ let teamReward = $t03858338677._5
872880 let availableFundsNew = (userAvailableSWOP(pool, user) + claimAmount)
873881 [IntegerEntry((((pool + "_") + user) + kFarmUserLastInterest), farmInterest), IntegerEntry((((pool + "_") + user) + kBoostUserLastInterest), boostInterest), IntegerEntry((pool + kFarmLastInterest), farmInterest), IntegerEntry((pool + kBoostLastInterest), boostInterest), IntegerEntry((pool + kLastInterestHeight), height), IntegerEntry((((pool + "_") + user) + kAvailableSWOP), availableFundsNew), Reissue(SWOP, (toTreasure + teamReward), true), ScriptTransfer(farmingTreasureAddr, toTreasure, SWOP), ScriptTransfer(teamBoxAddress, teamReward, SWOP)]
874882 })
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let kActive = "active"
55
66 let kActiveGlob = "active_all_contracts"
77
88 let kDeprecatedPool = "deprecated_"
99
1010 let kCause = "shutdown_cause"
1111
1212 let kRewardPoolFractionCurrent = "_current_pool_fraction_reward"
1313
1414 let kRewardPoolFractionPrevious = "_previous_pool_fraction_reward"
1515
1616 let kHeightPoolFraction = "_pool_reward_update_height"
1717
1818 let kRewardUpdateHeight = "reward_update_height"
1919
2020 let kUserShareTokensStaked = "_share_tokens_locked"
2121
2222 let kUserShareTokensLocked = "_share_tokens_blocked"
2323
2424 let kUserShareTokensLockedType = "_share_tokens_blocked_type"
2525
2626 let kUserShareTokensLockedHeight = "_share_tokens_blocked_height"
2727
2828 let kUserShareTokensVirtual = "_share_tokens_virtual"
2929
3030 let kShareTotalShareTokens = "_total_share_tokens_locked"
3131
3232 let kShareTokensVirtual = "_total_share_tokens_virtual"
3333
3434 let kLockParams = "_lock_params"
3535
3636 let kLockWavesFee = "lock_waves_fee"
3737
3838 let kPoolBoostCoef = "_boost_coef"
3939
4040 let kFarmLastInterest = "_last_interest"
4141
4242 let kFarmUserLastInterest = "_last_interest"
4343
4444 let kBoostLastInterest = "_last_interest_b"
4545
4646 let kBoostUserLastInterest = "_last_interest_u_b"
4747
4848 let kLastInterestHeight = "_last_interest_height"
4949
5050 let kSWOPid = "SWOP_id"
5151
5252 let kAvailableSWOP = "_available_SWOP"
5353
5454 let kHarvestPoolVote = "_harvest_pool_vote_gSWOP"
5555
5656 let kPoolVote = "_pool_vote_gSWOP"
5757
5858 let kUserPoolVote = "_user_vote_gSWOP"
5959
6060 let kPoolStruc = "_pool_struc"
6161
6262 let kUserPoolStruc = "_user_pool_struc"
6363
6464 let kHarvestUserPoolVote = "_harvest_user_pool_vote_gSWOP"
6565
6666 let kFirstHarvestHeight = "first_harvest_height"
6767
6868 let kShareLimitFH = "share_limit_on_first_harvest"
6969
7070 let kStratBFarmInterest = "_strat_b_farm_interest"
7171
7272 let kPoolInOracle = "pool_"
7373
7474 let kCpmmContract = "cpmm_contract"
7575
7676 let kAdminPubKey1 = "admin_pub_1"
7777
7878 let kAdminPubKey2 = "admin_pub_2"
7979
8080 let kAdminPubKey3 = "admin_pub_3"
8181
8282 let kAdminInvokePubKey = "admin_invoke_pub"
8383
8484 let kMoneyBoxAddress = "money_box_address"
8585
8686 let kTeamBoxAddress = "team_box_address"
8787
8888 let kVotingAddress = "voting_address"
8989
9090 let kGovAddress = "governance_address"
9191
9292 let kLPFarmingAddress = "lp_farming"
9393
9494 let kFarmingTreasureAddr = "farming_treasure"
9595
9696 let kAxlyFarming = "axly_farming"
9797
9898 let kAxlyLpId = "axly_lp_id"
9999
100100 let oracle = Address(base58'3MvVBtsXroQpy1tsPw21TU2ET9A8WfmrNjz')
101101
102102 let totalVoteShare = 10000000000
103103
104104 let scaleValue8 = 100000000
105105
106106 let scaleValue6 = 1000000
107107
108108 let lockBoostCoefScale = 1000
109109
110110 let defPoolBoostCoef = 500
111111
112112 let startEmissionH = 2976848
113113
114114 let swopYearEmission = 100000000000000
115115
116116 let blocksPerYear = 526330
117117
118118 let teamFee = 25
119119
120120 func getBase58FromOracle (key) = match getString(oracle, key) {
121121 case string: String =>
122122 fromBase58String(string)
123123 case nothing =>
124124 throw((key + "is empty"))
125125 }
126126
127127
128128 let adminPubKey1 = getBase58FromOracle(kAdminPubKey1)
129129
130130 let adminPubKey2 = getBase58FromOracle(kAdminPubKey2)
131131
132132 let adminPubKey3 = getBase58FromOracle(kAdminPubKey3)
133133
134134 let moneyBoxAddress = Address(getBase58FromOracle(kMoneyBoxAddress))
135135
136136 let teamBoxAddress = Address(getBase58FromOracle(kTeamBoxAddress))
137137
138138 let votingAddress = Address(getBase58FromOracle(kVotingAddress))
139139
140140 let govAddress = Address(getBase58FromOracle(kGovAddress))
141141
142142 let adminInvokePubKey = getBase58FromOracle(kAdminInvokePubKey)
143143
144144 let lpFarmingAddress = Address(getBase58FromOracle(kLPFarmingAddress))
145145
146146 let farmingTreasureAddr = Address(getBase58FromOracle(kFarmingTreasureAddr))
147147
148148 let cpmmContract = Address(getBase58FromOracle(kCpmmContract))
149149
150150 let axlyFarmAddr = Address(getBase58FromOracle(kAxlyFarming))
151151
152152 let axlyLpId = getBase58FromOracle(kAxlyLpId)
153153
154154 let active = getBooleanValue(this, kActive)
155155
156156 let activeGlob = valueOrElse(getBoolean(oracle, kActiveGlob), true)
157157
158158 let SWOP = fromBase58String(getStringValue(this, kSWOPid))
159159
160160 func getRewardsPerBlockInfo () = {
161161 let emissionPeriods = ((height - startEmissionH) / blocksPerYear)
162162 func calcEmission (acc,i) = {
163163 let $t051275164 = acc
164164 let curEmission = $t051275164._1
165165 let prevEmission = $t051275164._2
166166 if ((emissionPeriods > i))
167167 then $Tuple2(fraction(curEmission, 75, 100), curEmission)
168168 else $Tuple2(curEmission, prevEmission)
169169 }
170170
171171 let $t053225488 = {
172172 let $l = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19]
173173 let $s = size($l)
174174 let $acc0 = $Tuple2(swopYearEmission, swopYearEmission)
175175 func $f0_1 ($a,$i) = if (($i >= $s))
176176 then $a
177177 else calcEmission($a, $l[$i])
178178
179179 func $f0_2 ($a,$i) = if (($i >= $s))
180180 then $a
181181 else throw("List size exceeds 20")
182182
183183 $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20)
184184 }
185185 let curEmission = $t053225488._1
186186 let prevEmission = $t053225488._2
187187 $Tuple3((curEmission / blocksPerYear), (prevEmission / blocksPerYear), (startEmissionH + (blocksPerYear * emissionPeriods)))
188188 }
189189
190190
191191 func getHeightFirstHarvest (pool) = valueOrElse(getInteger(Address(fromBase58String(pool)), kFirstHarvestHeight), 0)
192192
193193
194194 func getFHShareLimitToken (pool) = valueOrErrorMessage(getInteger(pool, kShareLimitFH), ("No data on the key: " + kShareLimitFH))
195195
196196
197197 func getTotalShareToken (pool) = valueOrErrorMessage(getInteger(this, (pool + kShareTotalShareTokens)), (("No data on the key: " + pool) + kShareTotalShareTokens))
198198
199199
200200 func getPoolVoted (pool) = valueOrElse(getInteger(votingAddress, (pool + kPoolVote)), valueOrElse(parseInt(split(valueOrElse(getString(votingAddress, (pool + kPoolStruc)), ""), "_")[0]), 0))
201201
202202
203203 func getUserPoolVoted (pool,user) = valueOrElse(getInteger(votingAddress, (((user + "_") + pool) + kUserPoolVote)), valueOrElse(parseInt(split(valueOrElse(getString(votingAddress, (((user + "_") + pool) + kUserPoolStruc)), ""), "_")[0]), 0))
204204
205205
206206 func getShareAssetId (pool) = fromBase58String(getStringValue(value(addressFromString(pool)), "share_asset_id"))
207207
208208
209209 func accountBalance (assetId) = match assetId {
210210 case id: ByteVector =>
211211 assetBalance(this, id)
212212 case waves: Unit =>
213213 wavesBalance(this).available
214214 case _ =>
215215 throw("Match error")
216216 }
217217
218218
219219 func calcScaleValue (assetId1,assetId2) = {
220220 let assetId1Decimals = value(assetInfo(assetId1)).decimals
221221 let assetId2Decimals = value(assetInfo(assetId2)).decimals
222222 let scaleDigits = ((assetId2Decimals - assetId1Decimals) + 8)
223223 pow(10, 0, scaleDigits, 0, 0, DOWN)
224224 }
225225
226226
227227 func userAvailableSWOP (pool,user) = valueOrElse(getInteger(this, (((pool + "_") + user) + kAvailableSWOP)), 0)
228228
229229
230230 func rewardInfo (pool) = {
231231 let $t073037418 = getRewardsPerBlockInfo()
232232 let totalRewardPerBlockCurrent = $t073037418._1
233233 let totalRewardPerBlockPrevious = $t073037418._2
234234 let lastEmissionUpdateHeight = $t073037418._3
235235 let rewardPoolFractionCurrent = valueOrErrorMessage(getInteger(govAddress, (pool + kRewardPoolFractionCurrent)), (((("No data on the key: " + pool) + kRewardPoolFractionCurrent) + " at address ") + toString(govAddress)))
236236 let rewardUpdateHeight = valueOrErrorMessage(getInteger(govAddress, kRewardUpdateHeight), ((("No data on the key: " + kRewardUpdateHeight) + " at address ") + toString(govAddress)))
237237 let poolRewardUpdateHeight = valueOrElse(getInteger(govAddress, (pool + kHeightPoolFraction)), rewardUpdateHeight)
238238 let rewardPoolFractionPrevious = valueOrErrorMessage(getInteger(govAddress, (pool + kRewardPoolFractionPrevious)), (((("No data on the key: " + pool) + kRewardPoolFractionPrevious) + " at address ") + toString(govAddress)))
239239 let rewardPoolCurrent = fraction(totalRewardPerBlockCurrent, rewardPoolFractionCurrent, totalVoteShare)
240240 let rewardPoolPrevious = fraction(totalRewardPerBlockCurrent, rewardPoolFractionPrevious, totalVoteShare)
241241 let rewardPoolPrevCurrent = fraction(totalRewardPerBlockPrevious, rewardPoolFractionCurrent, totalVoteShare)
242242 let rewardPoolPrevPrevious = fraction(totalRewardPerBlockPrevious, rewardPoolFractionPrevious, totalVoteShare)
243243 if (if ((rewardPoolCurrent > totalRewardPerBlockCurrent))
244244 then true
245245 else (rewardPoolPrevious > totalRewardPerBlockPrevious))
246246 then throw("rewardPoolCurrent > totalRewardPerBlockCurrent or rewardPoolPrevious > totalRewardPerBlockPrevious")
247247 else $Tuple7(rewardPoolCurrent, rewardUpdateHeight, rewardPoolPrevious, poolRewardUpdateHeight, lastEmissionUpdateHeight, rewardPoolPrevCurrent, rewardPoolPrevPrevious)
248248 }
249249
250250
251251 func getLastInterestInfo (pool) = {
252252 let farmInterest = valueOrErrorMessage(getInteger(this, (pool + kFarmLastInterest)), (("No data on the key: " + pool) + kFarmLastInterest))
253253 let boostInterest = valueOrElse(getInteger(this, (pool + kBoostLastInterest)), 0)
254254 let lastInterestHeight = valueOrElse(getInteger(this, (pool + kLastInterestHeight)), height)
255255 $Tuple3(lastInterestHeight, farmInterest, boostInterest)
256256 }
257257
258258
259259 func calcFarmRwd (pool,curTotalReward) = {
260260 let poolBoostCoef = valueOrElse(getInteger(this, (pool + kPoolBoostCoef)), defPoolBoostCoef)
261261 fraction(curTotalReward, lockBoostCoefScale, (poolBoostCoef + lockBoostCoefScale))
262262 }
263263
264264
265265 func calcBoostRwd (pool,curTotalReward) = {
266266 let poolBoostCoef = valueOrElse(getInteger(this, (pool + kPoolBoostCoef)), defPoolBoostCoef)
267267 fraction(curTotalReward, poolBoostCoef, (poolBoostCoef + lockBoostCoefScale))
268268 }
269269
270270
271271 func calcInterest (pool,lastInterestHeight,rewardUpdateHeight,poolRewardUpdateHeight,farmInterest,boostInterest,poolVoted,currentRewardPerBlock,shareTokenLocked,previousRewardPerBlock,scaleValue,toHeight) = {
272272 let $t01043211617 = if (if (if ((rewardUpdateHeight > toHeight))
273273 then (rewardUpdateHeight == poolRewardUpdateHeight)
274274 else false)
275275 then true
276276 else if ((toHeight > rewardUpdateHeight))
277277 then (rewardUpdateHeight != poolRewardUpdateHeight)
278278 else false)
279279 then {
280280 let r = (previousRewardPerBlock * (toHeight - lastInterestHeight))
281281 $Tuple3(r, farmInterest, boostInterest)
282282 }
283283 else if (if (if ((toHeight > rewardUpdateHeight))
284284 then (rewardUpdateHeight == poolRewardUpdateHeight)
285285 else false)
286286 then (lastInterestHeight > rewardUpdateHeight)
287287 else false)
288288 then {
289289 let r = (currentRewardPerBlock * (toHeight - lastInterestHeight))
290290 $Tuple3(r, farmInterest, boostInterest)
291291 }
292292 else {
293293 let rwdBfrUpd = (previousRewardPerBlock * (rewardUpdateHeight - lastInterestHeight))
294294 let fBfrUp = (farmInterest + fraction(calcFarmRwd(pool, rwdBfrUpd), scaleValue, shareTokenLocked))
295295 let bBfrUp = (boostInterest + (if ((poolVoted > 0))
296296 then fraction(calcBoostRwd(pool, rwdBfrUpd), scaleValue8, poolVoted)
297297 else 0))
298298 let rwd = (currentRewardPerBlock * (toHeight - rewardUpdateHeight))
299299 $Tuple3(rwd, fBfrUp, bBfrUp)
300300 }
301301 let reward = $t01043211617._1
302302 let farmIntrBefore = $t01043211617._2
303303 let boostIntrBefore = $t01043211617._3
304304 let newFarmInterest = (farmIntrBefore + fraction(calcFarmRwd(pool, reward), scaleValue, shareTokenLocked))
305305 let newBoostInterest = (boostIntrBefore + (if ((poolVoted > 0))
306306 then fraction(calcBoostRwd(pool, reward), scaleValue8, poolVoted)
307307 else 0))
308308 $Tuple2(newFarmInterest, newBoostInterest)
309309 }
310310
311311
312312 func claimCalc (pool,user) = {
313313 let scaleValue = calcScaleValue(SWOP, getShareAssetId(pool))
314314 let poolVoted = getPoolVoted(pool)
315315 let uPoolVoted = getUserPoolVoted(pool, user)
316316 let shareToken = getTotalShareToken(pool)
317317 let totalShareVirtual = valueOrElse(getInteger(this, (pool + kShareTokensVirtual)), shareToken)
318318 let stratBFarmInterest = valueOrElse(getInteger(this, (pool + kStratBFarmInterest)), 0)
319319 let $t01245512536 = getLastInterestInfo(pool)
320320 let lastInterestHeight = $t01245512536._1
321321 let farmInterest = $t01245512536._2
322322 let boostInterest = $t01245512536._3
323323 let $t01254112798 = rewardInfo(pool)
324324 let currentRewardPerBlock = $t01254112798._1
325325 let rewardUpdateHeight = $t01254112798._2
326326 let previousRewardPerBlock = $t01254112798._3
327327 let poolRewardUpdateHeight = $t01254112798._4
328328 let emissionUpdateHeight = $t01254112798._5
329329 let prevCurrentRewardPerBlock = $t01254112798._6
330330 let prevPreviousRewardPerBlock = $t01254112798._7
331331 let uFarmInterest = valueOrElse(getInteger(this, (((pool + "_") + user) + kFarmUserLastInterest)), farmInterest)
332332 let uBoostInterest = valueOrElse(getInteger(this, (((pool + "_") + user) + kBoostUserLastInterest)), if (if ((stratBFarmInterest > uFarmInterest))
333333 then (uPoolVoted > 0)
334334 else false)
335335 then 0
336336 else boostInterest)
337337 let uShareTokensStaked = valueOrElse(getInteger(this, (((pool + "_") + user) + kUserShareTokensStaked)), 0)
338338 let uShareTokensVirt = valueOrElse(getInteger(this, (((pool + "_") + user) + kUserShareTokensVirtual)), uShareTokensStaked)
339339 if ((totalShareVirtual == 0))
340340 then {
341341 let toTreasury = if ((emissionUpdateHeight > lastInterestHeight))
342342 then ((prevCurrentRewardPerBlock * (emissionUpdateHeight - lastInterestHeight)) + (currentRewardPerBlock * (height - emissionUpdateHeight)))
343343 else (currentRewardPerBlock * (height - lastInterestHeight))
344344 let teamReward = fraction(toTreasury, teamFee, 100)
345345 $Tuple5(farmInterest, boostInterest, 0, (toTreasury - teamReward), teamReward)
346346 }
347347 else {
348348 let $t01384114978 = if ((emissionUpdateHeight > lastInterestHeight))
349349 then {
350350 let $t01425414813 = calcInterest(pool, lastInterestHeight, rewardUpdateHeight, poolRewardUpdateHeight, farmInterest, boostInterest, poolVoted, prevCurrentRewardPerBlock, totalShareVirtual, prevPreviousRewardPerBlock, scaleValue, emissionUpdateHeight)
351351 let prevNewFarmInterest = $t01425414813._1
352352 let prevNewBoostInterest = $t01425414813._2
353353 $Tuple3(prevNewFarmInterest, prevNewBoostInterest, emissionUpdateHeight)
354354 }
355355 else $Tuple3(farmInterest, boostInterest, lastInterestHeight)
356356 let prevFarmInterest = $t01384114978._1
357357 let prevBoostInterest = $t01384114978._2
358358 let LIHeight = $t01384114978._3
359359 let $t01498715410 = calcInterest(pool, LIHeight, rewardUpdateHeight, poolRewardUpdateHeight, prevFarmInterest, prevBoostInterest, poolVoted, currentRewardPerBlock, totalShareVirtual, previousRewardPerBlock, scaleValue, height)
360360 let newFarmInterest = $t01498715410._1
361361 let newBoostInterest = $t01498715410._2
362362 let farmRwd = fraction(uShareTokensVirt, (newFarmInterest - uFarmInterest), scaleValue)
363363 let poolBoostCoef = valueOrElse(getInteger(this, (pool + kPoolBoostCoef)), defPoolBoostCoef)
364364 let boostRwdMax = fraction(fraction(uShareTokensVirt, (newFarmInterest - max([uFarmInterest, stratBFarmInterest])), scaleValue), poolBoostCoef, lockBoostCoefScale)
365365 let curBoostRwd = fraction((newBoostInterest - uBoostInterest), uPoolVoted, scaleValue8)
366366 let boostRwd = min([boostRwdMax, curBoostRwd])
367367 let toTreasury = (boostRwdMax - boostRwd)
368368 let teamReward = fraction(toTreasury, teamFee, 100)
369369 if ((0 > toTreasury))
370370 then throw("toTreasury < 0")
371371 else $Tuple5(newFarmInterest, newBoostInterest, (farmRwd + boostRwd), (toTreasury - teamReward), teamReward)
372372 }
373373 }
374374
375375
376376 func availableClaimCalcAllByUser (pools,user) = {
377377 func calcAvailable (acc,pool) = {
378378 let $t01636416393 = acc
379379 let newPools = $t01636416393._1
380380 let amounts = $t01636416393._2
381381 let $t01640216455 = claimCalc(pool, user)
382382 let fi = $t01640216455._1
383383 let bi = $t01640216455._2
384384 let claimAmount = $t01640216455._3
385385 let tt = $t01640216455._4
386386 let availableFund = (userAvailableSWOP(pool, user) + claimAmount)
387387 $Tuple2((newPools :+ pool), (amounts :+ availableFund))
388388 }
389389
390390 let $l = pools
391391 let $s = size($l)
392392 let $acc0 = $Tuple2(nil, nil)
393393 func $f0_1 ($a,$i) = if (($i >= $s))
394394 then $a
395395 else calcAvailable($a, $l[$i])
396396
397397 func $f0_2 ($a,$i) = if (($i >= $s))
398398 then $a
399399 else throw("List size exceeds 60")
400400
401401 $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20), 21), 22), 23), 24), 25), 26), 27), 28), 29), 30), 31), 32), 33), 34), 35), 36), 37), 38), 39), 40), 41), 42), 43), 44), 45), 46), 47), 48), 49), 50), 51), 52), 53), 54), 55), 56), 57), 58), 59), 60)
402402 }
403403
404404
405405 func canLockInFirstHarvest (pool,user,userShareTokensStaked,pmtAmount,lockType) = if ((getHeightFirstHarvest(pool) > height))
406406 then {
407407 let totalVoteAmount = valueOrElse(getInteger(votingAddress, (pool + kHarvestPoolVote)), 0)
408408 let userVoteAmount = valueOrElse(getInteger(votingAddress, (((user + "_") + pool) + kHarvestUserPoolVote)), 0)
409409 let FHShareTokenLimit = getFHShareLimitToken(addressFromStringValue(pool))
410410 let FHShareTokenUserLimit = (fraction(FHShareTokenLimit, userVoteAmount, totalVoteAmount) - userShareTokensStaked)
411411 if ((lockType > 0))
412412 then throw("You can't lock shareTokens till first harvest end.")
413413 else if ((userVoteAmount == 0))
414414 then throw("You can't lock shareTokens. You didn't vote for pool in first week.")
415415 else if ((pmtAmount >= FHShareTokenUserLimit))
416416 then (pmtAmount - FHShareTokenUserLimit)
417417 else 0
418418 }
419419 else 0
420420
421421
422422 func getLockParams (type) = {
423423 let lockParams = split(valueOrErrorMessage(getString(this, (toString(type) + kLockParams)), ("There are no key for lock type" + toString(type))), "_")
424424 $Tuple2(parseIntValue(lockParams[0]), parseIntValue(lockParams[1]))
425425 }
426426
427427
428428 func suspend (cause) = [BooleanEntry(kActive, false), StringEntry(kCause, cause)]
429429
430430
431431 func isActive () = if (if (active)
432432 then activeGlob
433433 else false)
434434 then unit
435435 else throw("DApp is inactive at this moment")
436436
437437
438438 func isAdminCall (i) = if (containsElement([adminPubKey1, adminPubKey2, adminPubKey3], i.callerPublicKey))
439439 then unit
440440 else throw("Only admin can call this function")
441441
442442
443443 func isPoolCall (i,pool) = if (if ((toString(i.caller) == pool))
444444 then true
445445 else (i.caller == cpmmContract))
446446 then unit
447447 else throw("Only pool can call this function")
448448
449449
450450 func getDeprecatedPool (pool) = valueOrElse(getBoolean(oracle, (kDeprecatedPool + pool)), false)
451451
452452
453453 func isDeprecatedPool (pool) = if (!(getDeprecatedPool(pool)))
454454 then unit
455455 else throw("Pool is deprecated. Only unlock action allowed.")
456456
457457
458458 func isSelfCall (i) = if ((i.caller == this))
459459 then unit
460460 else throw("Only contract itself can call this function")
461461
462462
463463 func calcLockShareTokens (i,caller,pool,lockType) = {
464464 let inv = if ((i.payments[0].assetId == axlyLpId))
465465 then invoke(axlyFarmAddr, "lpAction", nil, nil)
466466 else nil
467- let shareAssetId = getShareAssetId(pool)
468- let user = toString(caller)
469- let totalShare = getTotalShareToken(pool)
470- let totalShareVirtual = valueOrElse(getInteger(this, (pool + kShareTokensVirtual)), totalShare)
471- let userStakedAmount = valueOrElse(getInteger(this, (((pool + "_") + user) + kUserShareTokensStaked)), 0)
472- let userLockedHeigt = valueOrElse(getInteger(this, (((pool + "_") + user) + kUserShareTokensLockedHeight)), 0)
473- let userLockedAmount = valueOrElse(getInteger(this, (((pool + "_") + user) + kUserShareTokensLocked)), 0)
474- let userAmountVirtual = valueOrElse(getInteger(this, (((pool + "_") + user) + kUserShareTokensVirtual)), userStakedAmount)
475- let totalUserShareTokens = ((userStakedAmount + userLockedAmount) + i.payments[0].amount)
476- let $t01968419736 = getLockParams(lockType)
477- let lockPeriod = $t01968419736._1
478- let lockCoef = $t01968419736._2
479- let lockWavesFee = getIntegerValue(this, kLockWavesFee)
480- if ((i.payments[0].assetId != shareAssetId))
481- then throw("Wrong sharetoken in payment")
482- else if ((0 >= i.payments[0].amount))
483- then throw("Payment amount must be greater than 0")
484- else if ((0 > lockType))
485- then throw("lockType must be >= 0")
486- else {
487- let shareTokensChangeOnFH = canLockInFirstHarvest(pool, user, userStakedAmount, i.payments[0].amount, lockType)
488- if ((shareTokensChangeOnFH == shareTokensChangeOnFH))
489- then {
490- let $t02016322097 = if ((lockType == 0))
467+ if ((inv == inv))
468+ then {
469+ let shareAssetId = getShareAssetId(pool)
470+ let user = toString(caller)
471+ let totalShare = getTotalShareToken(pool)
472+ let totalShareVirtual = valueOrElse(getInteger(this, (pool + kShareTokensVirtual)), totalShare)
473+ let userStakedAmount = valueOrElse(getInteger(this, (((pool + "_") + user) + kUserShareTokensStaked)), 0)
474+ let userLockedHeigt = valueOrElse(getInteger(this, (((pool + "_") + user) + kUserShareTokensLockedHeight)), 0)
475+ let userLockedAmount = valueOrElse(getInteger(this, (((pool + "_") + user) + kUserShareTokensLocked)), 0)
476+ let userAmountVirtual = valueOrElse(getInteger(this, (((pool + "_") + user) + kUserShareTokensVirtual)), userStakedAmount)
477+ let totalUserShareTokens = ((userStakedAmount + userLockedAmount) + i.payments[0].amount)
478+ let $t01968719739 = getLockParams(lockType)
479+ let lockPeriod = $t01968719739._1
480+ let lockCoef = $t01968719739._2
481+ let lockWavesFee = getIntegerValue(this, kLockWavesFee)
482+ if ((i.payments[0].assetId != shareAssetId))
483+ then throw("Wrong sharetoken in payment")
484+ else if ((0 >= i.payments[0].amount))
485+ then throw("Payment amount must be greater than 0")
486+ else if ((0 > lockType))
487+ then throw("lockType must be >= 0")
488+ else {
489+ let shareTokensChangeOnFH = canLockInFirstHarvest(pool, user, userStakedAmount, i.payments[0].amount, lockType)
490+ if ((shareTokensChangeOnFH == shareTokensChangeOnFH))
491491 then {
492- let userAmountVirtualNew = ((userAmountVirtual + i.payments[0].amount) - shareTokensChangeOnFH)
493- $Tuple2([IntegerEntry((((pool + "_") + user) + kUserShareTokensStaked), ((userStakedAmount + i.payments[0].amount) - shareTokensChangeOnFH)), IntegerEntry((((pool + "_") + user) + kUserShareTokensVirtual), userAmountVirtualNew), IntegerEntry((pool + kShareTokensVirtual), ((totalShareVirtual + i.payments[0].amount) - shareTokensChangeOnFH)), ScriptTransfer(caller, shareTokensChangeOnFH, i.payments[0].assetId)], ((totalShare + i.payments[0].amount) - shareTokensChangeOnFH))
492+ let $t02016622100 = if ((lockType == 0))
493+ then {
494+ let userAmountVirtualNew = ((userAmountVirtual + i.payments[0].amount) - shareTokensChangeOnFH)
495+ $Tuple2([IntegerEntry((((pool + "_") + user) + kUserShareTokensStaked), ((userStakedAmount + i.payments[0].amount) - shareTokensChangeOnFH)), IntegerEntry((((pool + "_") + user) + kUserShareTokensVirtual), userAmountVirtualNew), IntegerEntry((pool + kShareTokensVirtual), ((totalShareVirtual + i.payments[0].amount) - shareTokensChangeOnFH)), ScriptTransfer(caller, shareTokensChangeOnFH, i.payments[0].assetId)], ((totalShare + i.payments[0].amount) - shareTokensChangeOnFH))
496+ }
497+ else if (if ((userLockedHeigt == 0))
498+ then if (if ((2 > size(i.payments)))
499+ then true
500+ else (i.payments[1].assetId != unit))
501+ then true
502+ else (lockWavesFee > i.payments[1].amount)
503+ else false)
504+ then throw((("You need to pay additional waves comission " + toString(lockWavesFee)) + "WAVES"))
505+ else if ((userLockedHeigt > (height + lockPeriod)))
506+ then throw("You cannot lock sharetokens for a period less than what you have already locked")
507+ else {
508+ let userLockedAmountNew = (userLockedAmount + i.payments[0].amount)
509+ let userLockedHeigtNew = (height + lockPeriod)
510+ let userAmountVirtualNew = (fraction(userLockedAmountNew, lockCoef, lockBoostCoefScale) + userStakedAmount)
511+ $Tuple2([IntegerEntry((((pool + "_") + user) + kUserShareTokensLocked), userLockedAmountNew), IntegerEntry((((pool + "_") + user) + kUserShareTokensLockedHeight), userLockedHeigtNew), IntegerEntry((((pool + "_") + user) + kUserShareTokensLockedType), lockType), IntegerEntry((((pool + "_") + user) + kUserShareTokensVirtual), userAmountVirtualNew), IntegerEntry((pool + kShareTokensVirtual), ((totalShareVirtual - userAmountVirtual) + userAmountVirtualNew))], (totalShare + i.payments[0].amount))
512+ }
513+ let lockEntries = $t02016622100._1
514+ let totalShareNew = $t02016622100._2
515+ if ((totalShareNew > accountBalance(shareAssetId)))
516+ then throw("Balance of share-token is lower than totalAmount")
517+ else {
518+ let $t02222522319 = claimCalc(pool, user)
519+ let farmInterest = $t02222522319._1
520+ let boostInterest = $t02222522319._2
521+ let claimAmount = $t02222522319._3
522+ let toTreasure = $t02222522319._4
523+ let teamReward = $t02222522319._5
524+ let availableFundsNew = (userAvailableSWOP(pool, user) + claimAmount)
525+ let uplp = if ((getString(Address(fromBase58String(pool)), "version") == "3.0.0"))
526+ then invoke(lpFarmingAddress, "updateUserInterest", [user, pool, totalUserShareTokens], nil)
527+ else 0
528+ if ((uplp == uplp))
529+ then ([IntegerEntry((((pool + "_") + user) + kFarmUserLastInterest), farmInterest), IntegerEntry((((pool + "_") + user) + kBoostUserLastInterest), boostInterest), IntegerEntry((pool + kFarmLastInterest), farmInterest), IntegerEntry((pool + kBoostLastInterest), boostInterest), IntegerEntry((pool + kLastInterestHeight), height), IntegerEntry((pool + kShareTotalShareTokens), totalShareNew), IntegerEntry((((pool + "_") + user) + kAvailableSWOP), availableFundsNew), Reissue(SWOP, (toTreasure + teamReward), true), ScriptTransfer(farmingTreasureAddr, toTreasure, SWOP), ScriptTransfer(teamBoxAddress, teamReward, SWOP)] ++ lockEntries)
530+ else throw("Strict value is not equal to itself.")
531+ }
494532 }
495- else if (if ((userLockedHeigt == 0))
496- then if (if ((2 > size(i.payments)))
497- then true
498- else (i.payments[1].assetId != unit))
499- then true
500- else (lockWavesFee > i.payments[1].amount)
501- else false)
502- then throw((("You need to pay additional waves comission " + toString(lockWavesFee)) + "WAVES"))
503- else if ((userLockedHeigt > (height + lockPeriod)))
504- then throw("You cannot lock sharetokens for a period less than what you have already locked")
505- else {
506- let userLockedAmountNew = (userLockedAmount + i.payments[0].amount)
507- let userLockedHeigtNew = (height + lockPeriod)
508- let userAmountVirtualNew = (fraction(userLockedAmountNew, lockCoef, lockBoostCoefScale) + userStakedAmount)
509- $Tuple2([IntegerEntry((((pool + "_") + user) + kUserShareTokensLocked), userLockedAmountNew), IntegerEntry((((pool + "_") + user) + kUserShareTokensLockedHeight), userLockedHeigtNew), IntegerEntry((((pool + "_") + user) + kUserShareTokensLockedType), lockType), IntegerEntry((((pool + "_") + user) + kUserShareTokensVirtual), userAmountVirtualNew), IntegerEntry((pool + kShareTokensVirtual), ((totalShareVirtual - userAmountVirtual) + userAmountVirtualNew))], (totalShare + i.payments[0].amount))
510- }
511- let lockEntries = $t02016322097._1
512- let totalShareNew = $t02016322097._2
513- if ((totalShareNew > accountBalance(shareAssetId)))
514- then throw("Balance of share-token is lower than totalAmount")
515- else {
516- let $t02222222316 = claimCalc(pool, user)
517- let farmInterest = $t02222222316._1
518- let boostInterest = $t02222222316._2
519- let claimAmount = $t02222222316._3
520- let toTreasure = $t02222222316._4
521- let teamReward = $t02222222316._5
522- let availableFundsNew = (userAvailableSWOP(pool, user) + claimAmount)
523- let uplp = if ((getString(Address(fromBase58String(pool)), "version") == "3.0.0"))
524- then invoke(lpFarmingAddress, "updateUserInterest", [user, pool, totalUserShareTokens], nil)
525- else 0
526- if ((uplp == uplp))
527- then ([IntegerEntry((((pool + "_") + user) + kFarmUserLastInterest), farmInterest), IntegerEntry((((pool + "_") + user) + kBoostUserLastInterest), boostInterest), IntegerEntry((pool + kFarmLastInterest), farmInterest), IntegerEntry((pool + kBoostLastInterest), boostInterest), IntegerEntry((pool + kLastInterestHeight), height), IntegerEntry((pool + kShareTotalShareTokens), totalShareNew), IntegerEntry((((pool + "_") + user) + kAvailableSWOP), availableFundsNew), Reissue(SWOP, (toTreasure + teamReward), true), ScriptTransfer(farmingTreasureAddr, toTreasure, SWOP), ScriptTransfer(teamBoxAddress, teamReward, SWOP)] ++ lockEntries)
528- else throw("Strict value is not equal to itself.")
529- }
533+ else throw("Strict value is not equal to itself.")
530534 }
531- else throw("Strict value is not equal to itself.")
532- }
535+ }
536+ else throw("Strict value is not equal to itself.")
533537 }
534538
535539
536540 func calcWithdrawShareTokens (i,caller,pool,shareTokensWithdrawAmount) = {
537541 let inv = if (getDeprecatedPool(pool))
538542 then invoke(this, "unlockUserLockDeprecated", [pool, toString(caller)], nil)
539543 else 0
540544 if ((inv == inv))
541545 then {
542546 let shareTokensId = fromBase58String(getStringValue(value(addressFromString(pool)), "share_asset_id"))
543547 let inv1 = if ((shareTokensId == axlyLpId))
544548 then invoke(axlyFarmAddr, "lpAction", nil, nil)
545549 else nil
546- let user = toString(caller)
547- let $t02378223876 = claimCalc(pool, user)
548- let farmInterest = $t02378223876._1
549- let boostInterest = $t02378223876._2
550- let claimAmount = $t02378223876._3
551- let toTreasure = $t02378223876._4
552- let teamReward = $t02378223876._5
553- let userStakedAmount = valueOrElse(getInteger(this, (((pool + "_") + user) + kUserShareTokensStaked)), 0)
554- let userLockedAmount = valueOrElse(getInteger(this, (((pool + "_") + user) + kUserShareTokensLocked)), 0)
555- let userAmountVirtual = valueOrElse(getInteger(this, (((pool + "_") + user) + kUserShareTokensVirtual)), userStakedAmount)
556- let userStakedAmountNew = (userStakedAmount - shareTokensWithdrawAmount)
557- let availableFundsNew = (userAvailableSWOP(pool, user) + claimAmount)
558- let totalShareAmount = getTotalShareToken(pool)
559- let totalShareVirtual = valueOrElse(getInteger(this, (pool + kShareTokensVirtual)), totalShareAmount)
560- let totalShareAmountNew = (totalShareAmount - shareTokensWithdrawAmount)
561- let totalShareVirtualNew = (totalShareVirtual - shareTokensWithdrawAmount)
562- let userAmountVirtualNew = (userAmountVirtual - shareTokensWithdrawAmount)
563- if ((shareTokensWithdrawAmount > userStakedAmount))
564- then throw("Withdraw amount more then user locked amount")
565- else if ((accountBalance(shareTokensId) > totalShareAmount))
566- then throw("Balance of share-token is lower than totalAmount")
567- else {
568- let uplp = if ((getString(Address(fromBase58String(pool)), "version") == "3.0.0"))
569- then invoke(lpFarmingAddress, "updateUserInterest", [user, pool, (userStakedAmount + userLockedAmount)], nil)
570- else 0
571- if ((uplp == uplp))
572- then [IntegerEntry((((pool + "_") + user) + kFarmUserLastInterest), farmInterest), IntegerEntry((((pool + "_") + user) + kBoostUserLastInterest), boostInterest), IntegerEntry((pool + kFarmLastInterest), farmInterest), IntegerEntry((pool + kBoostLastInterest), boostInterest), IntegerEntry((pool + kLastInterestHeight), height), IntegerEntry((((pool + "_") + user) + kUserShareTokensStaked), userStakedAmountNew), IntegerEntry((((pool + "_") + user) + kUserShareTokensVirtual), userAmountVirtualNew), IntegerEntry((pool + kShareTotalShareTokens), totalShareAmountNew), IntegerEntry((pool + kShareTokensVirtual), totalShareVirtualNew), IntegerEntry((((pool + "_") + user) + kAvailableSWOP), availableFundsNew), Reissue(SWOP, toTreasure, true), ScriptTransfer(farmingTreasureAddr, toTreasure, SWOP), ScriptTransfer(teamBoxAddress, teamReward, SWOP), ScriptTransfer(i.caller, shareTokensWithdrawAmount, shareTokensId)]
573- else throw("Strict value is not equal to itself.")
574- }
550+ if ((inv1 == inv1))
551+ then {
552+ let user = toString(caller)
553+ let $t02378823882 = claimCalc(pool, user)
554+ let farmInterest = $t02378823882._1
555+ let boostInterest = $t02378823882._2
556+ let claimAmount = $t02378823882._3
557+ let toTreasure = $t02378823882._4
558+ let teamReward = $t02378823882._5
559+ let userStakedAmount = valueOrElse(getInteger(this, (((pool + "_") + user) + kUserShareTokensStaked)), 0)
560+ let userLockedAmount = valueOrElse(getInteger(this, (((pool + "_") + user) + kUserShareTokensLocked)), 0)
561+ let userAmountVirtual = valueOrElse(getInteger(this, (((pool + "_") + user) + kUserShareTokensVirtual)), userStakedAmount)
562+ let userStakedAmountNew = (userStakedAmount - shareTokensWithdrawAmount)
563+ let availableFundsNew = (userAvailableSWOP(pool, user) + claimAmount)
564+ let totalShareAmount = getTotalShareToken(pool)
565+ let totalShareVirtual = valueOrElse(getInteger(this, (pool + kShareTokensVirtual)), totalShareAmount)
566+ let totalShareAmountNew = (totalShareAmount - shareTokensWithdrawAmount)
567+ let totalShareVirtualNew = (totalShareVirtual - shareTokensWithdrawAmount)
568+ let userAmountVirtualNew = (userAmountVirtual - shareTokensWithdrawAmount)
569+ if ((shareTokensWithdrawAmount > userStakedAmount))
570+ then throw("Withdraw amount more then user locked amount")
571+ else if ((accountBalance(shareTokensId) > totalShareAmount))
572+ then throw("Balance of share-token is lower than totalAmount")
573+ else {
574+ let uplp = if ((getString(Address(fromBase58String(pool)), "version") == "3.0.0"))
575+ then invoke(lpFarmingAddress, "updateUserInterest", [user, pool, (userStakedAmount + userLockedAmount)], nil)
576+ else 0
577+ if ((uplp == uplp))
578+ then [IntegerEntry((((pool + "_") + user) + kFarmUserLastInterest), farmInterest), IntegerEntry((((pool + "_") + user) + kBoostUserLastInterest), boostInterest), IntegerEntry((pool + kFarmLastInterest), farmInterest), IntegerEntry((pool + kBoostLastInterest), boostInterest), IntegerEntry((pool + kLastInterestHeight), height), IntegerEntry((((pool + "_") + user) + kUserShareTokensStaked), userStakedAmountNew), IntegerEntry((((pool + "_") + user) + kUserShareTokensVirtual), userAmountVirtualNew), IntegerEntry((pool + kShareTotalShareTokens), totalShareAmountNew), IntegerEntry((pool + kShareTokensVirtual), totalShareVirtualNew), IntegerEntry((((pool + "_") + user) + kAvailableSWOP), availableFundsNew), Reissue(SWOP, toTreasure, true), ScriptTransfer(farmingTreasureAddr, toTreasure, SWOP), ScriptTransfer(teamBoxAddress, teamReward, SWOP), ScriptTransfer(i.caller, shareTokensWithdrawAmount, shareTokensId)]
579+ else throw("Strict value is not equal to itself.")
580+ }
581+ }
582+ else throw("Strict value is not equal to itself.")
575583 }
576584 else throw("Strict value is not equal to itself.")
577585 }
578586
579587
580588 func calcClaim (i,pool,caller) = {
581589 let shareTokensId = fromBase58String(getStringValue(value(addressFromString(pool)), "share_asset_id"))
582590 let user = toString(caller)
583591 let shareTokenLocked = getTotalShareToken(pool)
584- let $t02644626540 = claimCalc(pool, user)
585- let farmInterest = $t02644626540._1
586- let boostInterest = $t02644626540._2
587- let claimAmount = $t02644626540._3
588- let toTreasure = $t02644626540._4
589- let teamReward = $t02644626540._5
592+ let $t02645226546 = claimCalc(pool, user)
593+ let farmInterest = $t02645226546._1
594+ let boostInterest = $t02645226546._2
595+ let claimAmount = $t02645226546._3
596+ let toTreasure = $t02645226546._4
597+ let teamReward = $t02645226546._5
590598 let availableFund = (userAvailableSWOP(pool, user) + claimAmount)
591599 if ((accountBalance(shareTokensId) > shareTokenLocked))
592600 then throw("Balance of share-token is lower than totalAmount")
593601 else {
594602 let uTrans = if ((i.caller != this))
595603 then [ScriptTransfer(i.caller, availableFund, SWOP)]
596604 else nil
597605 $Tuple2(([IntegerEntry((((pool + "_") + user) + kFarmUserLastInterest), farmInterest), IntegerEntry((((pool + "_") + user) + kBoostUserLastInterest), boostInterest), IntegerEntry((pool + kFarmLastInterest), farmInterest), IntegerEntry((pool + kBoostLastInterest), boostInterest), IntegerEntry((pool + kLastInterestHeight), height), IntegerEntry((((pool + "_") + user) + kAvailableSWOP), 0), Reissue(SWOP, ((toTreasure + availableFund) + teamReward), true), ScriptTransfer(farmingTreasureAddr, toTreasure, SWOP), ScriptTransfer(teamBoxAddress, teamReward, SWOP)] ++ uTrans), availableFund)
598606 }
599607 }
600608
601609
602610 func unlockUserLockCalc (i,pool,user) = {
603611 let totalShareVirtual = getIntegerValue(this, (pool + kShareTokensVirtual))
604612 let userStakedAmount = valueOrElse(getInteger(this, (((pool + "_") + user) + kUserShareTokensStaked)), 0)
605613 let userLockedAmount = valueOrElse(getInteger(this, (((pool + "_") + user) + kUserShareTokensLocked)), 0)
606614 let userAmountVirtual = valueOrElse(getInteger(this, (((pool + "_") + user) + kUserShareTokensVirtual)), userStakedAmount)
607615 let userStakedAmountNew = (userStakedAmount + userLockedAmount)
608- let $t02801428108 = claimCalc(pool, user)
609- let farmInterest = $t02801428108._1
610- let boostInterest = $t02801428108._2
611- let claimAmount = $t02801428108._3
612- let toTreasure = $t02801428108._4
613- let teamReward = $t02801428108._5
616+ let $t02802028114 = claimCalc(pool, user)
617+ let farmInterest = $t02802028114._1
618+ let boostInterest = $t02802028114._2
619+ let claimAmount = $t02802028114._3
620+ let toTreasure = $t02802028114._4
621+ let teamReward = $t02802028114._5
614622 let availableFundsNew = (userAvailableSWOP(pool, user) + claimAmount)
615623 [IntegerEntry((((pool + "_") + user) + kFarmUserLastInterest), farmInterest), IntegerEntry((((pool + "_") + user) + kBoostUserLastInterest), boostInterest), IntegerEntry((pool + kFarmLastInterest), farmInterest), IntegerEntry((pool + kBoostLastInterest), boostInterest), IntegerEntry((pool + kLastInterestHeight), height), IntegerEntry((((pool + "_") + user) + kUserShareTokensStaked), userStakedAmountNew), IntegerEntry((((pool + "_") + user) + kUserShareTokensVirtual), userStakedAmountNew), IntegerEntry((pool + kShareTokensVirtual), ((totalShareVirtual - userAmountVirtual) + userStakedAmountNew)), IntegerEntry((((pool + "_") + user) + kAvailableSWOP), availableFundsNew), DeleteEntry((((pool + "_") + user) + kUserShareTokensLocked)), DeleteEntry((((pool + "_") + user) + kUserShareTokensLockedHeight)), DeleteEntry((((pool + "_") + user) + kUserShareTokensLockedType)), Reissue(SWOP, (toTreasure + teamReward), true), ScriptTransfer(farmingTreasureAddr, toTreasure, SWOP), ScriptTransfer(teamBoxAddress, teamReward, SWOP)]
616624 }
617625
618626
619627 @Callable(i)
620628 func init (earlyLP) = if (isDefined(getString(this, kSWOPid)))
621629 then throw("SWOP already initialized")
622630 else {
623631 let initAmount = 100000000000000
624632 let SWOPissue = Issue("SWOP", "SWOP protocol token", initAmount, 8, true)
625633 let SWOPid = calculateAssetId(SWOPissue)
626634 [BooleanEntry(kActive, true), Issue("SWOP", "SWOP protocol token", initAmount, 8, true), StringEntry(kSWOPid, toBase58String(SWOPid))]
627635 }
628636
629637
630638
631639 @Callable(i)
632640 func initPoolShareFarming (pool) = valueOrElse(isAdminCall(i), if (!(isDefined(getString(oracle, (kPoolInOracle + pool)))))
633641 then throw("Pool is not in oracle")
634642 else if (isDefined(getInteger(this, (pool + kShareTotalShareTokens))))
635643 then throw("Pool already inited")
636644 else [IntegerEntry((pool + kShareTotalShareTokens), 0), IntegerEntry((pool + kFarmLastInterest), 0), IntegerEntry((pool + kBoostLastInterest), 0), IntegerEntry((pool + kLastInterestHeight), height)])
637645
638646
639647
640648 @Callable(i)
641649 func updatePoolInterest (pool) = valueOrElse(isActive(), if ((i.caller != govAddress))
642650 then throw("Only Governance can call this function")
643651 else {
644652 let user = toString(addressFromPublicKey(adminInvokePubKey))
645- let $t03055830632 = claimCalc(pool, user)
646- let farmInterest = $t03055830632._1
647- let boostInterest = $t03055830632._2
648- let boostLPinterest = $t03055830632._3
653+ let $t03056430638 = claimCalc(pool, user)
654+ let farmInterest = $t03056430638._1
655+ let boostInterest = $t03056430638._2
656+ let boostLPinterest = $t03056430638._3
649657 [IntegerEntry((pool + kFarmLastInterest), farmInterest), IntegerEntry((pool + kBoostLastInterest), boostInterest), IntegerEntry((pool + kLastInterestHeight), height)]
650658 })
651659
652660
653661
654662 @Callable(i)
655663 func lockShareTokens (pool,lockType) = valueOrElse(isDeprecatedPool(pool), valueOrElse(isActive(), calcLockShareTokens(i, i.caller, pool, lockType)))
656664
657665
658666
659667 @Callable(i)
660668 func lockShareTokensFromPool (callerBytes,pool,lockType) = valueOrElse(isDeprecatedPool(pool), valueOrElse(isActive(), valueOrElse(isPoolCall(i, pool), calcLockShareTokens(i, Address(callerBytes), pool, lockType))))
661669
662670
663671
664672 @Callable(i)
665673 func lockStakedShareTokens (pool,lockType,lockAmount) = valueOrElse(isDeprecatedPool(pool), valueOrElse(isActive(), {
666674 let shareAssetId = getShareAssetId(pool)
667675 let user = toString(i.caller)
668676 let totalShare = getTotalShareToken(pool)
669677 let totalShareVirtual = valueOrElse(getInteger(this, (pool + kShareTokensVirtual)), totalShare)
670678 let userStakedAmount = valueOrElse(getInteger(this, (((pool + "_") + user) + kUserShareTokensStaked)), 0)
671679 let userLockedHeigt = valueOrElse(getInteger(this, (((pool + "_") + user) + kUserShareTokensLockedHeight)), 0)
672680 let userLockedAmount = valueOrElse(getInteger(this, (((pool + "_") + user) + kUserShareTokensLocked)), 0)
673681 let userAmountVirtual = valueOrElse(getInteger(this, (((pool + "_") + user) + kUserShareTokensVirtual)), userStakedAmount)
674682 let totalUserShareTokens = (userStakedAmount + userLockedAmount)
675- let $t03226132313 = getLockParams(lockType)
676- let lockPeriod = $t03226132313._1
677- let lockCoef = $t03226132313._2
683+ let $t03226732319 = getLockParams(lockType)
684+ let lockPeriod = $t03226732319._1
685+ let lockCoef = $t03226732319._2
678686 let lockWavesFee = getIntegerValue(this, kLockWavesFee)
679687 if ((getHeightFirstHarvest(pool) > height))
680688 then throw("You can't lock shareTokens till first harvest end.")
681689 else if ((0 >= lockType))
682690 then throw("lockType must be > 0")
683691 else if ((lockAmount > userStakedAmount))
684692 then throw(("You can't lock more than " + toString(userStakedAmount)))
685693 else if ((accountBalance(shareAssetId) > totalShare))
686694 then throw("Balance of share-token is lower than totalAmount")
687695 else if (if ((userLockedHeigt == 0))
688696 then if (if ((1 > size(i.payments)))
689697 then true
690698 else (i.payments[0].assetId != unit))
691699 then true
692700 else (lockWavesFee > i.payments[0].amount)
693701 else false)
694702 then throw((("You need to pay additional waves comission " + toString(lockWavesFee)) + "WAVES"))
695703 else if (if ((userLockedHeigt == 0))
696704 then (0 >= lockAmount)
697705 else false)
698706 then throw("lockAmount must be greater than 0")
699707 else if ((0 > lockAmount))
700708 then throw("lockAmount must be positive")
701709 else if ((userLockedHeigt > (height + lockPeriod)))
702710 then throw("You cannot lock sharetokens for a period less than what you have already locked")
703711 else {
704712 let userLockedAmountNew = (userLockedAmount + lockAmount)
705713 let userStakedAmountNew = (userStakedAmount - lockAmount)
706714 let userLockedHeigtNew = (height + lockPeriod)
707715 let userAmountVirtualNew = (fraction(userLockedAmountNew, lockCoef, lockBoostCoefScale) + userStakedAmountNew)
708- let $t03365933753 = claimCalc(pool, user)
709- let farmInterest = $t03365933753._1
710- let boostInterest = $t03365933753._2
711- let claimAmount = $t03365933753._3
712- let toTreasure = $t03365933753._4
713- let teamReward = $t03365933753._5
716+ let $t03366533759 = claimCalc(pool, user)
717+ let farmInterest = $t03366533759._1
718+ let boostInterest = $t03366533759._2
719+ let claimAmount = $t03366533759._3
720+ let toTreasure = $t03366533759._4
721+ let teamReward = $t03366533759._5
714722 let availableFundsNew = (userAvailableSWOP(pool, user) + claimAmount)
715723 [IntegerEntry((((pool + "_") + user) + kUserShareTokensStaked), userStakedAmountNew), IntegerEntry((((pool + "_") + user) + kUserShareTokensLocked), userLockedAmountNew), IntegerEntry((((pool + "_") + user) + kUserShareTokensLockedHeight), userLockedHeigtNew), IntegerEntry((((pool + "_") + user) + kUserShareTokensLockedType), lockType), IntegerEntry((((pool + "_") + user) + kUserShareTokensVirtual), userAmountVirtualNew), IntegerEntry((pool + kShareTokensVirtual), ((totalShareVirtual - userAmountVirtual) + userAmountVirtualNew)), IntegerEntry((((pool + "_") + user) + kFarmUserLastInterest), farmInterest), IntegerEntry((((pool + "_") + user) + kBoostUserLastInterest), boostInterest), IntegerEntry((pool + kFarmLastInterest), farmInterest), IntegerEntry((pool + kBoostLastInterest), boostInterest), IntegerEntry((pool + kLastInterestHeight), height), IntegerEntry((((pool + "_") + user) + kAvailableSWOP), availableFundsNew), Reissue(SWOP, (toTreasure + teamReward), true), ScriptTransfer(farmingTreasureAddr, toTreasure, SWOP), ScriptTransfer(teamBoxAddress, teamReward, SWOP)]
716724 }
717725 }))
718726
719727
720728
721729 @Callable(i)
722730 func unlockUserLock (pool,user) = valueOrElse(isActive(), {
723731 let userLockedHeigt = valueOrErrorMessage(getInteger(this, (((pool + "_") + user) + kUserShareTokensLockedHeight)), (((("There is no pool " + pool) + " or user ") + user) + "with lock"))
724732 if ((userLockedHeigt > height))
725733 then throw(("You can't unlock sharetokens till " + toString(userLockedHeigt)))
726734 else (unlockUserLockCalc(i, pool, user) ++ [ScriptTransfer(i.caller, getIntegerValue(this, kLockWavesFee), unit)])
727735 })
728736
729737
730738
731739 @Callable(i)
732740 func unlockUserLockDeprecated (pool,user) = valueOrElse(isActive(), valueOrElse(isSelfCall(i), if (!(getDeprecatedPool(pool)))
733741 then throw("Pool must be deprecated")
734742 else if (isDefined(getInteger(this, (((pool + "_") + user) + kUserShareTokensLockedHeight))))
735743 then (unlockUserLockCalc(i, pool, user) ++ [ScriptTransfer(moneyBoxAddress, getIntegerValue(this, kLockWavesFee), unit)])
736744 else nil))
737745
738746
739747
740748 @Callable(i)
741749 func withdrawShareTokens (pool,shareTokensWithdrawAmount) = valueOrElse(isActive(), calcWithdrawShareTokens(i, i.caller, pool, shareTokensWithdrawAmount))
742750
743751
744752
745753 @Callable(i)
746754 func withdrawShareTokensFromPool (callerBytes,pool,shareTokensWithdrawAmount) = valueOrElse(isActive(), valueOrElse(isPoolCall(i, pool), calcWithdrawShareTokens(i, Address(callerBytes), pool, shareTokensWithdrawAmount)))
747755
748756
749757
750758 @Callable(i)
751759 func claim (pool) = valueOrElse(isActive(), {
752760 let r = calcClaim(i, pool, i.caller)
753761 if ((r._2 == 0))
754762 then throw("You have 0 available SWOP")
755763 else r
756764 })
757765
758766
759767
760768 @Callable(i)
761769 func claimInternal (pool,caller) = valueOrElse(isActive(), valueOrElse(isSelfCall(i), calcClaim(i, pool, Address(caller))))
762770
763771
764772
765773 @Callable(i)
766774 func claimAndStake (pool) = valueOrElse(isActive(), {
767775 let claimAmount = {
768776 let @ = invoke(this, "claimInternal", [pool, i.caller.bytes], nil)
769777 if ($isInstanceOf(@, "Int"))
770778 then @
771779 else throw(($getType(@) + " couldn't be cast to Int"))
772780 }
773781 if ((claimAmount == claimAmount))
774782 then if ((claimAmount == 0))
775783 then throw("You have 0 available SWOP")
776784 else {
777785 let stakeToGov = invoke(govAddress, "lockSWOPFromFarming", nil, [AttachedPayment(SWOP, claimAmount)])
778786 if ((stakeToGov == stakeToGov))
779787 then nil
780788 else throw("Strict value is not equal to itself.")
781789 }
782790 else throw("Strict value is not equal to itself.")
783791 })
784792
785793
786794
787795 @Callable(i)
788796 func claimAll (pools) = valueOrElse(isActive(), {
789797 func claimInv (claimTotal,pool) = {
790798 let claimAmount = {
791799 let @ = invoke(this, "claimInternal", [pool, i.caller.bytes], nil)
792800 if ($isInstanceOf(@, "Int"))
793801 then @
794802 else throw(($getType(@) + " couldn't be cast to Int"))
795803 }
796804 if ((claimAmount == claimAmount))
797805 then (claimTotal + claimAmount)
798806 else throw("Strict value is not equal to itself.")
799807 }
800808
801809 let claimTotal = {
802810 let $l = pools
803811 let $s = size($l)
804812 let $acc0 = 0
805813 func $f0_1 ($a,$i) = if (($i >= $s))
806814 then $a
807815 else claimInv($a, $l[$i])
808816
809817 func $f0_2 ($a,$i) = if (($i >= $s))
810818 then $a
811819 else throw("List size exceeds 60")
812820
813821 $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20), 21), 22), 23), 24), 25), 26), 27), 28), 29), 30), 31), 32), 33), 34), 35), 36), 37), 38), 39), 40), 41), 42), 43), 44), 45), 46), 47), 48), 49), 50), 51), 52), 53), 54), 55), 56), 57), 58), 59), 60)
814822 }
815823 if ((claimTotal == 0))
816824 then throw("You have 0 available SWOP")
817825 else [ScriptTransfer(i.caller, claimTotal, SWOP)]
818826 })
819827
820828
821829
822830 @Callable(i)
823831 func claimAllAndStake (pools) = valueOrElse(isActive(), {
824832 func claimInv (claimTotal,pool) = {
825833 let claimAmount = {
826834 let @ = invoke(this, "claimInternal", [pool, i.caller.bytes], nil)
827835 if ($isInstanceOf(@, "Int"))
828836 then @
829837 else throw(($getType(@) + " couldn't be cast to Int"))
830838 }
831839 if ((claimAmount == claimAmount))
832840 then (claimTotal + claimAmount)
833841 else throw("Strict value is not equal to itself.")
834842 }
835843
836844 let claimTotal = {
837845 let $l = pools
838846 let $s = size($l)
839847 let $acc0 = 0
840848 func $f0_1 ($a,$i) = if (($i >= $s))
841849 then $a
842850 else claimInv($a, $l[$i])
843851
844852 func $f0_2 ($a,$i) = if (($i >= $s))
845853 then $a
846854 else throw("List size exceeds 60")
847855
848856 $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20), 21), 22), 23), 24), 25), 26), 27), 28), 29), 30), 31), 32), 33), 34), 35), 36), 37), 38), 39), 40), 41), 42), 43), 44), 45), 46), 47), 48), 49), 50), 51), 52), 53), 54), 55), 56), 57), 58), 59), 60)
849857 }
850858 if ((claimTotal == 0))
851859 then throw("You have 0 available SWOP")
852860 else {
853861 let stakeToGov = invoke(govAddress, "lockSWOPFromFarming", nil, [AttachedPayment(SWOP, claimTotal)])
854862 if ((stakeToGov == stakeToGov))
855863 then nil
856864 else throw("Strict value is not equal to itself.")
857865 }
858866 })
859867
860868
861869
862870 @Callable(i)
863871 func updateUserBoostInterest (pool,user) = valueOrElse(isActive(), if ((i.caller != votingAddress))
864872 then throw("Only voiting can call this function")
865873 else {
866- let $t03857738671 = claimCalc(pool, user)
867- let farmInterest = $t03857738671._1
868- let boostInterest = $t03857738671._2
869- let claimAmount = $t03857738671._3
870- let toTreasure = $t03857738671._4
871- let teamReward = $t03857738671._5
874+ let $t03858338677 = claimCalc(pool, user)
875+ let farmInterest = $t03858338677._1
876+ let boostInterest = $t03858338677._2
877+ let claimAmount = $t03858338677._3
878+ let toTreasure = $t03858338677._4
879+ let teamReward = $t03858338677._5
872880 let availableFundsNew = (userAvailableSWOP(pool, user) + claimAmount)
873881 [IntegerEntry((((pool + "_") + user) + kFarmUserLastInterest), farmInterest), IntegerEntry((((pool + "_") + user) + kBoostUserLastInterest), boostInterest), IntegerEntry((pool + kFarmLastInterest), farmInterest), IntegerEntry((pool + kBoostLastInterest), boostInterest), IntegerEntry((pool + kLastInterestHeight), height), IntegerEntry((((pool + "_") + user) + kAvailableSWOP), availableFundsNew), Reissue(SWOP, (toTreasure + teamReward), true), ScriptTransfer(farmingTreasureAddr, toTreasure, SWOP), ScriptTransfer(teamBoxAddress, teamReward, SWOP)]
874882 })
875883
876884
877885
878886 @Callable(i)
879887 func shutdown () = valueOrElse(isAdminCall(i), if (!(active))
880888 then throw(("DApp is already suspended. Cause: " + valueOrElse(getString(this, kCause), "the cause wasn't specified")))
881889 else suspend("Paused by admin"))
882890
883891
884892
885893 @Callable(i)
886894 func activate () = valueOrElse(isAdminCall(i), if (active)
887895 then throw("DApp is already active")
888896 else [BooleanEntry(kActive, true), DeleteEntry(kCause)])
889897
890898
891899 @Verifier(tx)
892900 func verify () = match tx {
893901 case _ =>
894902 let adminPubKey1Signed = if (sigVerify(tx.bodyBytes, tx.proofs[0], adminPubKey1))
895903 then 1
896904 else 0
897905 let adminPubKey2Signed = if (sigVerify(tx.bodyBytes, tx.proofs[1], adminPubKey2))
898906 then 1
899907 else 0
900908 let adminPubKey3Signed = if (sigVerify(tx.bodyBytes, tx.proofs[2], adminPubKey3))
901909 then 1
902910 else 0
903911 (((adminPubKey1Signed + adminPubKey2Signed) + adminPubKey3Signed) >= 2)
904912 }
905913

github/deemru/w8io/026f985 
148.27 ms