tx · APS9CBryVDiQcjrQYu2gCksDfbCLLVSrVsiuDioDZtij

3MsXpzisJAwnzUr7XrEoW1BZo4U6rw4tsYK:  -0.07000000 Waves

2023.03.09 18:00 [2482710] smart account 3MsXpzisJAwnzUr7XrEoW1BZo4U6rw4tsYK > SELF 0.00000000 Waves

{ "type": 13, "id": "APS9CBryVDiQcjrQYu2gCksDfbCLLVSrVsiuDioDZtij", "fee": 7000000, "feeAssetId": null, "timestamp": 1678374043455, "version": 2, "chainId": 84, "sender": "3MsXpzisJAwnzUr7XrEoW1BZo4U6rw4tsYK", "senderPublicKey": "FFdBua5rzzMkZebvsvmN7sAdU7XhFK8QNJ3hiwwxAYRA", "proofs": [ "SWFs2jFnghW6tf1fim2WYnabD7qJqZXUmcxFWqZVmUePfGzPSY9dCf9SjSTmMFpkf9FwuG9zQSc4nVBKj1VhBtR", "3LRFE458E4uhCR9Ti33GTNG3zkaRRRK3pwTQHbfPuuX5jXTLR9Gtaht9mpaCwxRUQYQ9SXyxeUL8NUCe8jytB9KG" ], "script": "base64:BgJiCAISAwoBCBIDCgEIEgMKAQgSBAoCCAESBQoDAggBEgUKAwgBARIECgIICBIECgIICBIECgIIARIFCgMCCAESAwoBCBIECgIIAhIDCgEIEgMKARgSAwoBGBIECgIICBIAEgBkAAdrQWN0aXZlAgZhY3RpdmUAC2tBY3RpdmVHbG9iAhRhY3RpdmVfYWxsX2NvbnRyYWN0cwAPa0RlcHJlY2F0ZWRQb29sAgtkZXByZWNhdGVkXwAGa0NhdXNlAg5zaHV0ZG93bl9jYXVzZQAaa1Jld2FyZFBvb2xGcmFjdGlvbkN1cnJlbnQCHV9jdXJyZW50X3Bvb2xfZnJhY3Rpb25fcmV3YXJkABtrUmV3YXJkUG9vbEZyYWN0aW9uUHJldmlvdXMCHl9wcmV2aW91c19wb29sX2ZyYWN0aW9uX3Jld2FyZAATa0hlaWdodFBvb2xGcmFjdGlvbgIaX3Bvb2xfcmV3YXJkX3VwZGF0ZV9oZWlnaHQA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2V5MlNpZ25lZAUSYWRtaW5QdWJLZXkzU2lnbmVkAAI7qdt6", "height": 2482710, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: D5oToKQmyU1hsQR7F4c6ykY7GdHFuNjP9KS93M3pkZw7 Next: Dp3ZrvmGenWXb9isLsWpWbas4K25dEpJJxpxuy6aHxDL Diff:
OldNewDifferences
8181
8282 let kMoneyBoxAddress = "money_box_address"
8383
84+let kTeamBoxAddress = "team_box_address"
85+
8486 let kVotingAddress = "voting_address"
8587
8688 let kGovAddress = "governance_address"
9597
9698 let scaleValue8 = 100000000
9799
100+let scaleValue6 = 1000000
101+
98102 let lockBoostCoefScale = 1000
99103
100104 let defPoolBoostCoef = 500
104108 let swopYearEmission = 100000000000000
105109
106110 let blocksPerYear = 526330
111+
112+let teamFee = 25
107113
108114 func getBase58FromOracle (key) = match getString(oracle, key) {
109115 case string: String =>
120126 let adminPubKey3 = getBase58FromOracle(kAdminPubKey3)
121127
122128 let moneyBoxAddress = Address(getBase58FromOracle(kMoneyBoxAddress))
129+
130+let teamBoxAddress = Address(getBase58FromOracle(kTeamBoxAddress))
123131
124132 let votingAddress = Address(getBase58FromOracle(kVotingAddress))
125133
142150 func getRewardsPerBlockInfo () = {
143151 let emissionPeriods = ((height - startEmissionH) / blocksPerYear)
144152 func calcEmission (acc,i) = {
145- let $t047464783 = acc
146- let curEmission = $t047464783._1
147- let prevEmission = $t047464783._2
153+ let $t049284965 = acc
154+ let curEmission = $t049284965._1
155+ let prevEmission = $t049284965._2
148156 if ((emissionPeriods > i))
149157 then $Tuple2(fraction(curEmission, 75, 100), curEmission)
150158 else $Tuple2(curEmission, prevEmission)
151159 }
152160
153- let $t049415107 = {
161+ let $t051235289 = {
154162 let $l = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19]
155163 let $s = size($l)
156164 let $acc0 = $Tuple2(swopYearEmission, swopYearEmission)
164172
165173 $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)
166174 }
167- let curEmission = $t049415107._1
168- let prevEmission = $t049415107._2
175+ let curEmission = $t051235289._1
176+ let prevEmission = $t051235289._2
169177 $Tuple3((curEmission / blocksPerYear), (prevEmission / blocksPerYear), (startEmissionH + (blocksPerYear * emissionPeriods)))
170178 }
171179
210218
211219
212220 func rewardInfo (pool) = {
213- let $t069227037 = getRewardsPerBlockInfo()
214- let totalRewardPerBlockCurrent = $t069227037._1
215- let totalRewardPerBlockPrevious = $t069227037._2
216- let lastEmissionUpdateHeight = $t069227037._3
221+ let $t071047219 = getRewardsPerBlockInfo()
222+ let totalRewardPerBlockCurrent = $t071047219._1
223+ let totalRewardPerBlockPrevious = $t071047219._2
224+ let lastEmissionUpdateHeight = $t071047219._3
217225 let rewardPoolFractionCurrent = valueOrErrorMessage(getInteger(govAddress, (pool + kRewardPoolFractionCurrent)), (((("No data on the key: " + pool) + kRewardPoolFractionCurrent) + " at address ") + toString(govAddress)))
218226 let rewardUpdateHeight = valueOrErrorMessage(getInteger(govAddress, kRewardUpdateHeight), ((("No data on the key: " + kRewardUpdateHeight) + " at address ") + toString(govAddress)))
219227 let poolRewardUpdateHeight = valueOrElse(getInteger(govAddress, (pool + kHeightPoolFraction)), rewardUpdateHeight)
251259
252260
253261 func calcInterest (pool,lastInterestHeight,rewardUpdateHeight,poolRewardUpdateHeight,farmInterest,boostInterest,poolVoted,currentRewardPerBlock,shareTokenLocked,previousRewardPerBlock,scaleValue,toHeight) = {
254- let $t01005111236 = if (if (if ((rewardUpdateHeight > toHeight))
262+ let $t01023311418 = if (if (if ((rewardUpdateHeight > toHeight))
255263 then (rewardUpdateHeight == poolRewardUpdateHeight)
256264 else false)
257265 then true
280288 let rwd = (currentRewardPerBlock * (toHeight - rewardUpdateHeight))
281289 $Tuple3(rwd, fBfrUp, bBfrUp)
282290 }
283- let reward = $t01005111236._1
284- let farmIntrBefore = $t01005111236._2
285- let boostIntrBefore = $t01005111236._3
291+ let reward = $t01023311418._1
292+ let farmIntrBefore = $t01023311418._2
293+ let boostIntrBefore = $t01023311418._3
286294 let newFarmInterest = (farmIntrBefore + fraction(calcFarmRwd(pool, reward), scaleValue, shareTokenLocked))
287295 let newBoostInterest = (boostIntrBefore + (if ((poolVoted > 0))
288296 then fraction(calcBoostRwd(pool, reward), scaleValue8, poolVoted)
298306 let shareToken = getTotalShareToken(pool)
299307 let totalShareVirtual = valueOrElse(getInteger(this, (pool + kShareTokensVirtual)), shareToken)
300308 let stratBFarmInterest = valueOrElse(getInteger(this, (pool + kStratBFarmInterest)), 0)
301- let $t01207412155 = getLastInterestInfo(pool)
302- let lastInterestHeight = $t01207412155._1
303- let farmInterest = $t01207412155._2
304- let boostInterest = $t01207412155._3
305- let $t01216012417 = rewardInfo(pool)
306- let currentRewardPerBlock = $t01216012417._1
307- let rewardUpdateHeight = $t01216012417._2
308- let previousRewardPerBlock = $t01216012417._3
309- let poolRewardUpdateHeight = $t01216012417._4
310- let emissionUpdateHeight = $t01216012417._5
311- let prevCurrentRewardPerBlock = $t01216012417._6
312- let prevPreviousRewardPerBlock = $t01216012417._7
309+ let $t01225612337 = getLastInterestInfo(pool)
310+ let lastInterestHeight = $t01225612337._1
311+ let farmInterest = $t01225612337._2
312+ let boostInterest = $t01225612337._3
313+ let $t01234212599 = rewardInfo(pool)
314+ let currentRewardPerBlock = $t01234212599._1
315+ let rewardUpdateHeight = $t01234212599._2
316+ let previousRewardPerBlock = $t01234212599._3
317+ let poolRewardUpdateHeight = $t01234212599._4
318+ let emissionUpdateHeight = $t01234212599._5
319+ let prevCurrentRewardPerBlock = $t01234212599._6
320+ let prevPreviousRewardPerBlock = $t01234212599._7
313321 let uFarmInterest = valueOrElse(getInteger(this, (((pool + "_") + user) + kFarmUserLastInterest)), farmInterest)
314322 let uBoostInterest = valueOrElse(getInteger(this, (((pool + "_") + user) + kBoostUserLastInterest)), if (if ((stratBFarmInterest > uFarmInterest))
315323 then (uPoolVoted > 0)
323331 let toTreasury = if ((emissionUpdateHeight > lastInterestHeight))
324332 then ((prevCurrentRewardPerBlock * (emissionUpdateHeight - lastInterestHeight)) + (currentRewardPerBlock * (height - emissionUpdateHeight)))
325333 else (currentRewardPerBlock * (height - lastInterestHeight))
326- $Tuple4(farmInterest, boostInterest, 0, toTreasury)
334+ let teamReward = fraction(toTreasury, teamFee, 100)
335+ $Tuple5(farmInterest, boostInterest, 0, (toTreasury - teamReward), teamReward)
327336 }
328337 else {
329- let $t01337514512 = if ((emissionUpdateHeight > lastInterestHeight))
338+ let $t01364214779 = if ((emissionUpdateHeight > lastInterestHeight))
330339 then {
331- let $t01378814347 = calcInterest(pool, lastInterestHeight, rewardUpdateHeight, poolRewardUpdateHeight, farmInterest, boostInterest, poolVoted, prevCurrentRewardPerBlock, totalShareVirtual, prevPreviousRewardPerBlock, scaleValue, emissionUpdateHeight)
332- let prevNewFarmInterest = $t01378814347._1
333- let prevNewBoostInterest = $t01378814347._2
340+ let $t01405514614 = calcInterest(pool, lastInterestHeight, rewardUpdateHeight, poolRewardUpdateHeight, farmInterest, boostInterest, poolVoted, prevCurrentRewardPerBlock, totalShareVirtual, prevPreviousRewardPerBlock, scaleValue, emissionUpdateHeight)
341+ let prevNewFarmInterest = $t01405514614._1
342+ let prevNewBoostInterest = $t01405514614._2
334343 $Tuple3(prevNewFarmInterest, prevNewBoostInterest, emissionUpdateHeight)
335344 }
336345 else $Tuple3(farmInterest, boostInterest, lastInterestHeight)
337- let prevFarmInterest = $t01337514512._1
338- let prevBoostInterest = $t01337514512._2
339- let LIHeight = $t01337514512._3
340- let $t01452114944 = calcInterest(pool, LIHeight, rewardUpdateHeight, poolRewardUpdateHeight, prevFarmInterest, prevBoostInterest, poolVoted, currentRewardPerBlock, totalShareVirtual, previousRewardPerBlock, scaleValue, height)
341- let newFarmInterest = $t01452114944._1
342- let newBoostInterest = $t01452114944._2
346+ let prevFarmInterest = $t01364214779._1
347+ let prevBoostInterest = $t01364214779._2
348+ let LIHeight = $t01364214779._3
349+ let $t01478815211 = calcInterest(pool, LIHeight, rewardUpdateHeight, poolRewardUpdateHeight, prevFarmInterest, prevBoostInterest, poolVoted, currentRewardPerBlock, totalShareVirtual, previousRewardPerBlock, scaleValue, height)
350+ let newFarmInterest = $t01478815211._1
351+ let newBoostInterest = $t01478815211._2
343352 let farmRwd = fraction(uShareTokensVirt, (newFarmInterest - uFarmInterest), scaleValue)
344353 let poolBoostCoef = valueOrElse(getInteger(this, (pool + kPoolBoostCoef)), defPoolBoostCoef)
345354 let boostRwdMax = fraction(fraction(uShareTokensVirt, (newFarmInterest - max([uFarmInterest, stratBFarmInterest])), scaleValue), poolBoostCoef, lockBoostCoefScale)
346355 let curBoostRwd = fraction((newBoostInterest - uBoostInterest), uPoolVoted, scaleValue8)
347356 let boostRwd = min([boostRwdMax, curBoostRwd])
348357 let toTreasury = (boostRwdMax - boostRwd)
358+ let teamReward = fraction(toTreasury, teamFee, 100)
349359 if ((0 > toTreasury))
350360 then throw("toTreasury < 0")
351- else $Tuple4(newFarmInterest, newBoostInterest, (farmRwd + boostRwd), toTreasury)
361+ else $Tuple5(newFarmInterest, newBoostInterest, (farmRwd + boostRwd), (toTreasury - teamReward), teamReward)
352362 }
353363 }
354364
355365
356366 func availableClaimCalcAllByUser (pools,user) = {
357367 func calcAvailable (acc,pool) = {
358- let $t01581315842 = acc
359- let newPools = $t01581315842._1
360- let amounts = $t01581315842._2
361- let $t01585115904 = claimCalc(pool, user)
362- let fi = $t01585115904._1
363- let bi = $t01585115904._2
364- let claimAmount = $t01585115904._3
365- let tt = $t01585115904._4
368+ let $t01616516194 = acc
369+ let newPools = $t01616516194._1
370+ let amounts = $t01616516194._2
371+ let $t01620316256 = claimCalc(pool, user)
372+ let fi = $t01620316256._1
373+ let bi = $t01620316256._2
374+ let claimAmount = $t01620316256._3
375+ let tt = $t01620316256._4
366376 let availableFund = (userAvailableSWOP(pool, user) + claimAmount)
367377 $Tuple2((newPools :+ pool), (amounts :+ availableFund))
368378 }
391401 if ((lockType > 0))
392402 then throw("You can't lock shareTokens till first harvest end.")
393403 else if ((userVoteAmount == 0))
394- then throw("You can't lock shareTokens. You didn't vote for pool in first week.")
404+ then 0
395405 else if ((pmtAmount >= FHShareTokenUserLimit))
396406 then (pmtAmount - FHShareTokenUserLimit)
397407 else 0
450460 let userLockedAmount = valueOrElse(getInteger(this, (((pool + "_") + user) + kUserShareTokensLocked)), 0)
451461 let userAmountVirtual = valueOrElse(getInteger(this, (((pool + "_") + user) + kUserShareTokensVirtual)), userStakedAmount)
452462 let totalUserShareTokens = ((userStakedAmount + userLockedAmount) + i.payments[0].amount)
453- let $t01902819080 = getLockParams(lockType)
454- let lockPeriod = $t01902819080._1
455- let lockCoef = $t01902819080._2
463+ let $t01930519357 = getLockParams(lockType)
464+ let lockPeriod = $t01930519357._1
465+ let lockCoef = $t01930519357._2
456466 let lockWavesFee = getIntegerValue(this, kLockWavesFee)
457467 if ((i.payments[0].assetId != shareAssetId))
458468 then throw("Wrong sharetoken in payment")
464474 let shareTokensChangeOnFH = canLockInFirstHarvest(pool, user, userStakedAmount, i.payments[0].amount, lockType)
465475 if ((shareTokensChangeOnFH == shareTokensChangeOnFH))
466476 then {
467- let $t01950721441 = if ((lockType == 0))
477+ let $t01978421718 = if ((lockType == 0))
468478 then {
469479 let userAmountVirtualNew = ((userAmountVirtual + i.payments[0].amount) - shareTokensChangeOnFH)
470480 $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))
485495 let userAmountVirtualNew = (fraction(userLockedAmountNew, lockCoef, lockBoostCoefScale) + userStakedAmount)
486496 $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))
487497 }
488- let lockEntries = $t01950721441._1
489- let totalShareNew = $t01950721441._2
490- if ((accountBalance(shareAssetId) > totalShareNew))
498+ let lockEntries = $t01978421718._1
499+ let totalShareNew = $t01978421718._2
500+ if ((totalShareNew > accountBalance(shareAssetId)))
491501 then throw("Balance of share-token is lower than totalAmount")
492502 else {
493- let $t02156621648 = claimCalc(pool, user)
494- let farmInterest = $t02156621648._1
495- let boostInterest = $t02156621648._2
496- let claimAmount = $t02156621648._3
497- let toTreasure = $t02156621648._4
503+ let $t02184321937 = claimCalc(pool, user)
504+ let farmInterest = $t02184321937._1
505+ let boostInterest = $t02184321937._2
506+ let claimAmount = $t02184321937._3
507+ let toTreasure = $t02184321937._4
508+ let teamReward = $t02184321937._5
498509 let availableFundsNew = (userAvailableSWOP(pool, user) + claimAmount)
499510 let uplp = if ((getString(Address(fromBase58String(pool)), "version") == "3.0.0"))
500511 then invoke(lpFarmingAddress, "updateUserInterest", [user, pool, totalUserShareTokens], nil)
501512 else 0
502513 if ((uplp == uplp))
503- 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, true), ScriptTransfer(farmingTreasureAddr, toTreasure, SWOP)] ++ lockEntries)
514+ 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)
504515 else throw("Strict value is not equal to itself.")
505516 }
506517 }
517528 then {
518529 let shareTokensId = fromBase58String(getStringValue(value(addressFromString(pool)), "share_asset_id"))
519530 let user = toString(caller)
520- let $t02294523027 = claimCalc(pool, user)
521- let farmInterest = $t02294523027._1
522- let boostInterest = $t02294523027._2
523- let claimAmount = $t02294523027._3
524- let toTreasure = $t02294523027._4
531+ let $t02330523399 = claimCalc(pool, user)
532+ let farmInterest = $t02330523399._1
533+ let boostInterest = $t02330523399._2
534+ let claimAmount = $t02330523399._3
535+ let toTreasure = $t02330523399._4
536+ let teamReward = $t02330523399._5
525537 let userStakedAmount = valueOrElse(getInteger(this, (((pool + "_") + user) + kUserShareTokensStaked)), 0)
526538 let userLockedAmount = valueOrElse(getInteger(this, (((pool + "_") + user) + kUserShareTokensLocked)), 0)
527539 let userAmountVirtual = valueOrElse(getInteger(this, (((pool + "_") + user) + kUserShareTokensVirtual)), userStakedAmount)
541553 then invoke(lpFarmingAddress, "updateUserInterest", [user, pool, (userStakedAmount + userLockedAmount)], nil)
542554 else 0
543555 if ((uplp == uplp))
544- 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(i.caller, shareTokensWithdrawAmount, shareTokensId)]
556+ 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)]
545557 else throw("Strict value is not equal to itself.")
546558 }
547559 }
553565 let shareTokensId = fromBase58String(getStringValue(value(addressFromString(pool)), "share_asset_id"))
554566 let user = toString(caller)
555567 let shareTokenLocked = getTotalShareToken(pool)
556- let $t02553825620 = claimCalc(pool, user)
557- let farmInterest = $t02553825620._1
558- let boostInterest = $t02553825620._2
559- let claimAmount = $t02553825620._3
560- let toTreasure = $t02553825620._4
568+ let $t02596926063 = claimCalc(pool, user)
569+ let farmInterest = $t02596926063._1
570+ let boostInterest = $t02596926063._2
571+ let claimAmount = $t02596926063._3
572+ let toTreasure = $t02596926063._4
573+ let teamReward = $t02596926063._5
561574 let availableFund = (userAvailableSWOP(pool, user) + claimAmount)
562575 if ((accountBalance(shareTokensId) > shareTokenLocked))
563576 then throw("Balance of share-token is lower than totalAmount")
565578 let uTrans = if ((i.caller != this))
566579 then [ScriptTransfer(i.caller, availableFund, SWOP)]
567580 else nil
568- $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), true), ScriptTransfer(farmingTreasureAddr, toTreasure, SWOP)] ++ uTrans), availableFund)
581+ $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)
569582 }
570583 }
571584
576589 let userLockedAmount = valueOrElse(getInteger(this, (((pool + "_") + user) + kUserShareTokensLocked)), 0)
577590 let userAmountVirtual = valueOrElse(getInteger(this, (((pool + "_") + user) + kUserShareTokensVirtual)), userStakedAmount)
578591 let userStakedAmountNew = (userStakedAmount + userLockedAmount)
579- let $t02702327105 = claimCalc(pool, user)
580- let farmInterest = $t02702327105._1
581- let boostInterest = $t02702327105._2
582- let claimAmount = $t02702327105._3
583- let toTreasure = $t02702327105._4
592+ let $t02753727631 = claimCalc(pool, user)
593+ let farmInterest = $t02753727631._1
594+ let boostInterest = $t02753727631._2
595+ let claimAmount = $t02753727631._3
596+ let toTreasure = $t02753727631._4
597+ let teamReward = $t02753727631._5
584598 let availableFundsNew = (userAvailableSWOP(pool, user) + claimAmount)
585-[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, true), ScriptTransfer(farmingTreasureAddr, toTreasure, SWOP)]
599+[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)]
586600 }
587601
588602
608622 then throw("Only Governance can call this function")
609623 else {
610624 let user = toString(addressFromPublicKey(adminInvokePubKey))
611- let $t02927129345 = claimCalc(pool, user)
612- let farmInterest = $t02927129345._1
613- let boostInterest = $t02927129345._2
614- let boostLPinterest = $t02927129345._3
625+ let $t02986929943 = claimCalc(pool, user)
626+ let farmInterest = $t02986929943._1
627+ let boostInterest = $t02986929943._2
628+ let boostLPinterest = $t02986929943._3
615629 [IntegerEntry((pool + kFarmLastInterest), farmInterest), IntegerEntry((pool + kBoostLastInterest), boostInterest), IntegerEntry((pool + kLastInterestHeight), height)]
616630 })
617631
638652 let userLockedAmount = valueOrElse(getInteger(this, (((pool + "_") + user) + kUserShareTokensLocked)), 0)
639653 let userAmountVirtual = valueOrElse(getInteger(this, (((pool + "_") + user) + kUserShareTokensVirtual)), userStakedAmount)
640654 let totalUserShareTokens = (userStakedAmount + userLockedAmount)
641- let $t03097431026 = getLockParams(lockType)
642- let lockPeriod = $t03097431026._1
643- let lockCoef = $t03097431026._2
655+ let $t03157231624 = getLockParams(lockType)
656+ let lockPeriod = $t03157231624._1
657+ let lockCoef = $t03157231624._2
644658 let lockWavesFee = getIntegerValue(this, kLockWavesFee)
645659 if ((getHeightFirstHarvest(pool) > height))
646660 then throw("You can't lock shareTokens till first harvest end.")
671685 let userStakedAmountNew = (userStakedAmount - lockAmount)
672686 let userLockedHeigtNew = (height + lockPeriod)
673687 let userAmountVirtualNew = (fraction(userLockedAmountNew, lockCoef, lockBoostCoefScale) + userStakedAmountNew)
674- let $t03237232454 = claimCalc(pool, user)
675- let farmInterest = $t03237232454._1
676- let boostInterest = $t03237232454._2
677- let claimAmount = $t03237232454._3
678- let toTreasure = $t03237232454._4
688+ let $t03297033064 = claimCalc(pool, user)
689+ let farmInterest = $t03297033064._1
690+ let boostInterest = $t03297033064._2
691+ let claimAmount = $t03297033064._3
692+ let toTreasure = $t03297033064._4
693+ let teamReward = $t03297033064._5
679694 let availableFundsNew = (userAvailableSWOP(pool, user) + claimAmount)
680-[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, true), ScriptTransfer(farmingTreasureAddr, toTreasure, SWOP)]
695+[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)]
681696 }
682697 }))
683698
828843 func updateUserBoostInterest (pool,user) = valueOrElse(isActive(), if ((i.caller != votingAddress))
829844 then throw("Only voiting can call this function")
830845 else {
831- let $t03720337285 = claimCalc(pool, user)
832- let farmInterest = $t03720337285._1
833- let boostInterest = $t03720337285._2
834- let claimAmount = $t03720337285._3
835- let toTreasure = $t03720337285._4
846+ let $t03788837982 = claimCalc(pool, user)
847+ let farmInterest = $t03788837982._1
848+ let boostInterest = $t03788837982._2
849+ let claimAmount = $t03788837982._3
850+ let toTreasure = $t03788837982._4
851+ let teamReward = $t03788837982._5
836852 let availableFundsNew = (userAvailableSWOP(pool, user) + claimAmount)
837-[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, true), ScriptTransfer(farmingTreasureAddr, toTreasure, SWOP)]
853+[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)]
838854 })
839855
840856
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 kCpmmContract = "cpmm_contract"
7373
7474 let kAdminPubKey1 = "admin_pub_1"
7575
7676 let kAdminPubKey2 = "admin_pub_2"
7777
7878 let kAdminPubKey3 = "admin_pub_3"
7979
8080 let kAdminInvokePubKey = "admin_invoke_pub"
8181
8282 let kMoneyBoxAddress = "money_box_address"
8383
84+let kTeamBoxAddress = "team_box_address"
85+
8486 let kVotingAddress = "voting_address"
8587
8688 let kGovAddress = "governance_address"
8789
8890 let kLPFarmingAddress = "lp_farming"
8991
9092 let kFarmingTreasureAddr = "farming_treasure"
9193
9294 let oracle = Address(base58'3MvVBtsXroQpy1tsPw21TU2ET9A8WfmrNjz')
9395
9496 let totalVoteShare = 10000000000
9597
9698 let scaleValue8 = 100000000
9799
100+let scaleValue6 = 1000000
101+
98102 let lockBoostCoefScale = 1000
99103
100104 let defPoolBoostCoef = 500
101105
102106 let startEmissionH = 2976848
103107
104108 let swopYearEmission = 100000000000000
105109
106110 let blocksPerYear = 526330
111+
112+let teamFee = 25
107113
108114 func getBase58FromOracle (key) = match getString(oracle, key) {
109115 case string: String =>
110116 fromBase58String(string)
111117 case nothing =>
112118 throw((key + "is empty"))
113119 }
114120
115121
116122 let adminPubKey1 = getBase58FromOracle(kAdminPubKey1)
117123
118124 let adminPubKey2 = getBase58FromOracle(kAdminPubKey2)
119125
120126 let adminPubKey3 = getBase58FromOracle(kAdminPubKey3)
121127
122128 let moneyBoxAddress = Address(getBase58FromOracle(kMoneyBoxAddress))
129+
130+let teamBoxAddress = Address(getBase58FromOracle(kTeamBoxAddress))
123131
124132 let votingAddress = Address(getBase58FromOracle(kVotingAddress))
125133
126134 let govAddress = Address(getBase58FromOracle(kGovAddress))
127135
128136 let adminInvokePubKey = getBase58FromOracle(kAdminInvokePubKey)
129137
130138 let lpFarmingAddress = Address(getBase58FromOracle(kLPFarmingAddress))
131139
132140 let farmingTreasureAddr = Address(getBase58FromOracle(kFarmingTreasureAddr))
133141
134142 let cpmmContract = Address(getBase58FromOracle(kCpmmContract))
135143
136144 let active = getBooleanValue(this, kActive)
137145
138146 let activeGlob = valueOrElse(getBoolean(oracle, kActiveGlob), true)
139147
140148 let SWOP = fromBase58String(getStringValue(this, kSWOPid))
141149
142150 func getRewardsPerBlockInfo () = {
143151 let emissionPeriods = ((height - startEmissionH) / blocksPerYear)
144152 func calcEmission (acc,i) = {
145- let $t047464783 = acc
146- let curEmission = $t047464783._1
147- let prevEmission = $t047464783._2
153+ let $t049284965 = acc
154+ let curEmission = $t049284965._1
155+ let prevEmission = $t049284965._2
148156 if ((emissionPeriods > i))
149157 then $Tuple2(fraction(curEmission, 75, 100), curEmission)
150158 else $Tuple2(curEmission, prevEmission)
151159 }
152160
153- let $t049415107 = {
161+ let $t051235289 = {
154162 let $l = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19]
155163 let $s = size($l)
156164 let $acc0 = $Tuple2(swopYearEmission, swopYearEmission)
157165 func $f0_1 ($a,$i) = if (($i >= $s))
158166 then $a
159167 else calcEmission($a, $l[$i])
160168
161169 func $f0_2 ($a,$i) = if (($i >= $s))
162170 then $a
163171 else throw("List size exceeds 20")
164172
165173 $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)
166174 }
167- let curEmission = $t049415107._1
168- let prevEmission = $t049415107._2
175+ let curEmission = $t051235289._1
176+ let prevEmission = $t051235289._2
169177 $Tuple3((curEmission / blocksPerYear), (prevEmission / blocksPerYear), (startEmissionH + (blocksPerYear * emissionPeriods)))
170178 }
171179
172180
173181 func getHeightFirstHarvest (pool) = valueOrElse(getInteger(Address(fromBase58String(pool)), kFirstHarvestHeight), 0)
174182
175183
176184 func getFHShareLimitToken (pool) = valueOrErrorMessage(getInteger(pool, kShareLimitFH), ("No data on the key: " + kShareLimitFH))
177185
178186
179187 func getTotalShareToken (pool) = valueOrErrorMessage(getInteger(this, (pool + kShareTotalShareTokens)), (("No data on the key: " + pool) + kShareTotalShareTokens))
180188
181189
182190 func getPoolVoted (pool) = valueOrElse(getInteger(votingAddress, (pool + kPoolVote)), valueOrElse(parseInt(split(valueOrElse(getString(votingAddress, (pool + kPoolStruc)), ""), "_")[0]), 0))
183191
184192
185193 func getUserPoolVoted (pool,user) = valueOrElse(getInteger(votingAddress, (((user + "_") + pool) + kUserPoolVote)), valueOrElse(parseInt(split(valueOrElse(getString(votingAddress, (((user + "_") + pool) + kUserPoolStruc)), ""), "_")[0]), 0))
186194
187195
188196 func getShareAssetId (pool) = fromBase58String(getStringValue(value(addressFromString(pool)), "share_asset_id"))
189197
190198
191199 func accountBalance (assetId) = match assetId {
192200 case id: ByteVector =>
193201 assetBalance(this, id)
194202 case waves: Unit =>
195203 wavesBalance(this).available
196204 case _ =>
197205 throw("Match error")
198206 }
199207
200208
201209 func calcScaleValue (assetId1,assetId2) = {
202210 let assetId1Decimals = value(assetInfo(assetId1)).decimals
203211 let assetId2Decimals = value(assetInfo(assetId2)).decimals
204212 let scaleDigits = ((assetId2Decimals - assetId1Decimals) + 8)
205213 pow(10, 0, scaleDigits, 0, 0, DOWN)
206214 }
207215
208216
209217 func userAvailableSWOP (pool,user) = valueOrElse(getInteger(this, (((pool + "_") + user) + kAvailableSWOP)), 0)
210218
211219
212220 func rewardInfo (pool) = {
213- let $t069227037 = getRewardsPerBlockInfo()
214- let totalRewardPerBlockCurrent = $t069227037._1
215- let totalRewardPerBlockPrevious = $t069227037._2
216- let lastEmissionUpdateHeight = $t069227037._3
221+ let $t071047219 = getRewardsPerBlockInfo()
222+ let totalRewardPerBlockCurrent = $t071047219._1
223+ let totalRewardPerBlockPrevious = $t071047219._2
224+ let lastEmissionUpdateHeight = $t071047219._3
217225 let rewardPoolFractionCurrent = valueOrErrorMessage(getInteger(govAddress, (pool + kRewardPoolFractionCurrent)), (((("No data on the key: " + pool) + kRewardPoolFractionCurrent) + " at address ") + toString(govAddress)))
218226 let rewardUpdateHeight = valueOrErrorMessage(getInteger(govAddress, kRewardUpdateHeight), ((("No data on the key: " + kRewardUpdateHeight) + " at address ") + toString(govAddress)))
219227 let poolRewardUpdateHeight = valueOrElse(getInteger(govAddress, (pool + kHeightPoolFraction)), rewardUpdateHeight)
220228 let rewardPoolFractionPrevious = valueOrErrorMessage(getInteger(govAddress, (pool + kRewardPoolFractionPrevious)), (((("No data on the key: " + pool) + kRewardPoolFractionPrevious) + " at address ") + toString(govAddress)))
221229 let rewardPoolCurrent = fraction(totalRewardPerBlockCurrent, rewardPoolFractionCurrent, totalVoteShare)
222230 let rewardPoolPrevious = fraction(totalRewardPerBlockCurrent, rewardPoolFractionPrevious, totalVoteShare)
223231 let rewardPoolPrevCurrent = fraction(totalRewardPerBlockPrevious, rewardPoolFractionCurrent, totalVoteShare)
224232 let rewardPoolPrevPrevious = fraction(totalRewardPerBlockPrevious, rewardPoolFractionPrevious, totalVoteShare)
225233 if (if ((rewardPoolCurrent > totalRewardPerBlockCurrent))
226234 then true
227235 else (rewardPoolPrevious > totalRewardPerBlockPrevious))
228236 then throw("rewardPoolCurrent > totalRewardPerBlockCurrent or rewardPoolPrevious > totalRewardPerBlockPrevious")
229237 else $Tuple7(rewardPoolCurrent, rewardUpdateHeight, rewardPoolPrevious, poolRewardUpdateHeight, lastEmissionUpdateHeight, rewardPoolPrevCurrent, rewardPoolPrevPrevious)
230238 }
231239
232240
233241 func getLastInterestInfo (pool) = {
234242 let farmInterest = valueOrErrorMessage(getInteger(this, (pool + kFarmLastInterest)), (("No data on the key: " + pool) + kFarmLastInterest))
235243 let boostInterest = valueOrElse(getInteger(this, (pool + kBoostLastInterest)), 0)
236244 let lastInterestHeight = valueOrElse(getInteger(this, (pool + kLastInterestHeight)), height)
237245 $Tuple3(lastInterestHeight, farmInterest, boostInterest)
238246 }
239247
240248
241249 func calcFarmRwd (pool,curTotalReward) = {
242250 let poolBoostCoef = valueOrElse(getInteger(this, (pool + kPoolBoostCoef)), defPoolBoostCoef)
243251 fraction(curTotalReward, lockBoostCoefScale, (poolBoostCoef + lockBoostCoefScale))
244252 }
245253
246254
247255 func calcBoostRwd (pool,curTotalReward) = {
248256 let poolBoostCoef = valueOrElse(getInteger(this, (pool + kPoolBoostCoef)), defPoolBoostCoef)
249257 fraction(curTotalReward, poolBoostCoef, (poolBoostCoef + lockBoostCoefScale))
250258 }
251259
252260
253261 func calcInterest (pool,lastInterestHeight,rewardUpdateHeight,poolRewardUpdateHeight,farmInterest,boostInterest,poolVoted,currentRewardPerBlock,shareTokenLocked,previousRewardPerBlock,scaleValue,toHeight) = {
254- let $t01005111236 = if (if (if ((rewardUpdateHeight > toHeight))
262+ let $t01023311418 = if (if (if ((rewardUpdateHeight > toHeight))
255263 then (rewardUpdateHeight == poolRewardUpdateHeight)
256264 else false)
257265 then true
258266 else if ((toHeight > rewardUpdateHeight))
259267 then (rewardUpdateHeight != poolRewardUpdateHeight)
260268 else false)
261269 then {
262270 let r = (previousRewardPerBlock * (toHeight - lastInterestHeight))
263271 $Tuple3(r, farmInterest, boostInterest)
264272 }
265273 else if (if (if ((toHeight > rewardUpdateHeight))
266274 then (rewardUpdateHeight == poolRewardUpdateHeight)
267275 else false)
268276 then (lastInterestHeight > rewardUpdateHeight)
269277 else false)
270278 then {
271279 let r = (currentRewardPerBlock * (toHeight - lastInterestHeight))
272280 $Tuple3(r, farmInterest, boostInterest)
273281 }
274282 else {
275283 let rwdBfrUpd = (previousRewardPerBlock * (rewardUpdateHeight - lastInterestHeight))
276284 let fBfrUp = (farmInterest + fraction(calcFarmRwd(pool, rwdBfrUpd), scaleValue, shareTokenLocked))
277285 let bBfrUp = (boostInterest + (if ((poolVoted > 0))
278286 then fraction(calcBoostRwd(pool, rwdBfrUpd), scaleValue8, poolVoted)
279287 else 0))
280288 let rwd = (currentRewardPerBlock * (toHeight - rewardUpdateHeight))
281289 $Tuple3(rwd, fBfrUp, bBfrUp)
282290 }
283- let reward = $t01005111236._1
284- let farmIntrBefore = $t01005111236._2
285- let boostIntrBefore = $t01005111236._3
291+ let reward = $t01023311418._1
292+ let farmIntrBefore = $t01023311418._2
293+ let boostIntrBefore = $t01023311418._3
286294 let newFarmInterest = (farmIntrBefore + fraction(calcFarmRwd(pool, reward), scaleValue, shareTokenLocked))
287295 let newBoostInterest = (boostIntrBefore + (if ((poolVoted > 0))
288296 then fraction(calcBoostRwd(pool, reward), scaleValue8, poolVoted)
289297 else 0))
290298 $Tuple2(newFarmInterest, newBoostInterest)
291299 }
292300
293301
294302 func claimCalc (pool,user) = {
295303 let scaleValue = calcScaleValue(SWOP, getShareAssetId(pool))
296304 let poolVoted = getPoolVoted(pool)
297305 let uPoolVoted = getUserPoolVoted(pool, user)
298306 let shareToken = getTotalShareToken(pool)
299307 let totalShareVirtual = valueOrElse(getInteger(this, (pool + kShareTokensVirtual)), shareToken)
300308 let stratBFarmInterest = valueOrElse(getInteger(this, (pool + kStratBFarmInterest)), 0)
301- let $t01207412155 = getLastInterestInfo(pool)
302- let lastInterestHeight = $t01207412155._1
303- let farmInterest = $t01207412155._2
304- let boostInterest = $t01207412155._3
305- let $t01216012417 = rewardInfo(pool)
306- let currentRewardPerBlock = $t01216012417._1
307- let rewardUpdateHeight = $t01216012417._2
308- let previousRewardPerBlock = $t01216012417._3
309- let poolRewardUpdateHeight = $t01216012417._4
310- let emissionUpdateHeight = $t01216012417._5
311- let prevCurrentRewardPerBlock = $t01216012417._6
312- let prevPreviousRewardPerBlock = $t01216012417._7
309+ let $t01225612337 = getLastInterestInfo(pool)
310+ let lastInterestHeight = $t01225612337._1
311+ let farmInterest = $t01225612337._2
312+ let boostInterest = $t01225612337._3
313+ let $t01234212599 = rewardInfo(pool)
314+ let currentRewardPerBlock = $t01234212599._1
315+ let rewardUpdateHeight = $t01234212599._2
316+ let previousRewardPerBlock = $t01234212599._3
317+ let poolRewardUpdateHeight = $t01234212599._4
318+ let emissionUpdateHeight = $t01234212599._5
319+ let prevCurrentRewardPerBlock = $t01234212599._6
320+ let prevPreviousRewardPerBlock = $t01234212599._7
313321 let uFarmInterest = valueOrElse(getInteger(this, (((pool + "_") + user) + kFarmUserLastInterest)), farmInterest)
314322 let uBoostInterest = valueOrElse(getInteger(this, (((pool + "_") + user) + kBoostUserLastInterest)), if (if ((stratBFarmInterest > uFarmInterest))
315323 then (uPoolVoted > 0)
316324 else false)
317325 then 0
318326 else boostInterest)
319327 let uShareTokensStaked = valueOrElse(getInteger(this, (((pool + "_") + user) + kUserShareTokensStaked)), 0)
320328 let uShareTokensVirt = valueOrElse(getInteger(this, (((pool + "_") + user) + kUserShareTokensVirtual)), uShareTokensStaked)
321329 if ((totalShareVirtual == 0))
322330 then {
323331 let toTreasury = if ((emissionUpdateHeight > lastInterestHeight))
324332 then ((prevCurrentRewardPerBlock * (emissionUpdateHeight - lastInterestHeight)) + (currentRewardPerBlock * (height - emissionUpdateHeight)))
325333 else (currentRewardPerBlock * (height - lastInterestHeight))
326- $Tuple4(farmInterest, boostInterest, 0, toTreasury)
334+ let teamReward = fraction(toTreasury, teamFee, 100)
335+ $Tuple5(farmInterest, boostInterest, 0, (toTreasury - teamReward), teamReward)
327336 }
328337 else {
329- let $t01337514512 = if ((emissionUpdateHeight > lastInterestHeight))
338+ let $t01364214779 = if ((emissionUpdateHeight > lastInterestHeight))
330339 then {
331- let $t01378814347 = calcInterest(pool, lastInterestHeight, rewardUpdateHeight, poolRewardUpdateHeight, farmInterest, boostInterest, poolVoted, prevCurrentRewardPerBlock, totalShareVirtual, prevPreviousRewardPerBlock, scaleValue, emissionUpdateHeight)
332- let prevNewFarmInterest = $t01378814347._1
333- let prevNewBoostInterest = $t01378814347._2
340+ let $t01405514614 = calcInterest(pool, lastInterestHeight, rewardUpdateHeight, poolRewardUpdateHeight, farmInterest, boostInterest, poolVoted, prevCurrentRewardPerBlock, totalShareVirtual, prevPreviousRewardPerBlock, scaleValue, emissionUpdateHeight)
341+ let prevNewFarmInterest = $t01405514614._1
342+ let prevNewBoostInterest = $t01405514614._2
334343 $Tuple3(prevNewFarmInterest, prevNewBoostInterest, emissionUpdateHeight)
335344 }
336345 else $Tuple3(farmInterest, boostInterest, lastInterestHeight)
337- let prevFarmInterest = $t01337514512._1
338- let prevBoostInterest = $t01337514512._2
339- let LIHeight = $t01337514512._3
340- let $t01452114944 = calcInterest(pool, LIHeight, rewardUpdateHeight, poolRewardUpdateHeight, prevFarmInterest, prevBoostInterest, poolVoted, currentRewardPerBlock, totalShareVirtual, previousRewardPerBlock, scaleValue, height)
341- let newFarmInterest = $t01452114944._1
342- let newBoostInterest = $t01452114944._2
346+ let prevFarmInterest = $t01364214779._1
347+ let prevBoostInterest = $t01364214779._2
348+ let LIHeight = $t01364214779._3
349+ let $t01478815211 = calcInterest(pool, LIHeight, rewardUpdateHeight, poolRewardUpdateHeight, prevFarmInterest, prevBoostInterest, poolVoted, currentRewardPerBlock, totalShareVirtual, previousRewardPerBlock, scaleValue, height)
350+ let newFarmInterest = $t01478815211._1
351+ let newBoostInterest = $t01478815211._2
343352 let farmRwd = fraction(uShareTokensVirt, (newFarmInterest - uFarmInterest), scaleValue)
344353 let poolBoostCoef = valueOrElse(getInteger(this, (pool + kPoolBoostCoef)), defPoolBoostCoef)
345354 let boostRwdMax = fraction(fraction(uShareTokensVirt, (newFarmInterest - max([uFarmInterest, stratBFarmInterest])), scaleValue), poolBoostCoef, lockBoostCoefScale)
346355 let curBoostRwd = fraction((newBoostInterest - uBoostInterest), uPoolVoted, scaleValue8)
347356 let boostRwd = min([boostRwdMax, curBoostRwd])
348357 let toTreasury = (boostRwdMax - boostRwd)
358+ let teamReward = fraction(toTreasury, teamFee, 100)
349359 if ((0 > toTreasury))
350360 then throw("toTreasury < 0")
351- else $Tuple4(newFarmInterest, newBoostInterest, (farmRwd + boostRwd), toTreasury)
361+ else $Tuple5(newFarmInterest, newBoostInterest, (farmRwd + boostRwd), (toTreasury - teamReward), teamReward)
352362 }
353363 }
354364
355365
356366 func availableClaimCalcAllByUser (pools,user) = {
357367 func calcAvailable (acc,pool) = {
358- let $t01581315842 = acc
359- let newPools = $t01581315842._1
360- let amounts = $t01581315842._2
361- let $t01585115904 = claimCalc(pool, user)
362- let fi = $t01585115904._1
363- let bi = $t01585115904._2
364- let claimAmount = $t01585115904._3
365- let tt = $t01585115904._4
368+ let $t01616516194 = acc
369+ let newPools = $t01616516194._1
370+ let amounts = $t01616516194._2
371+ let $t01620316256 = claimCalc(pool, user)
372+ let fi = $t01620316256._1
373+ let bi = $t01620316256._2
374+ let claimAmount = $t01620316256._3
375+ let tt = $t01620316256._4
366376 let availableFund = (userAvailableSWOP(pool, user) + claimAmount)
367377 $Tuple2((newPools :+ pool), (amounts :+ availableFund))
368378 }
369379
370380 let $l = pools
371381 let $s = size($l)
372382 let $acc0 = $Tuple2(nil, nil)
373383 func $f0_1 ($a,$i) = if (($i >= $s))
374384 then $a
375385 else calcAvailable($a, $l[$i])
376386
377387 func $f0_2 ($a,$i) = if (($i >= $s))
378388 then $a
379389 else throw("List size exceeds 60")
380390
381391 $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)
382392 }
383393
384394
385395 func canLockInFirstHarvest (pool,user,userShareTokensStaked,pmtAmount,lockType) = if ((getHeightFirstHarvest(pool) > height))
386396 then {
387397 let totalVoteAmount = valueOrElse(getInteger(votingAddress, (pool + kHarvestPoolVote)), 0)
388398 let userVoteAmount = valueOrElse(getInteger(votingAddress, (((user + "_") + pool) + kHarvestUserPoolVote)), 0)
389399 let FHShareTokenLimit = getFHShareLimitToken(addressFromStringValue(pool))
390400 let FHShareTokenUserLimit = (fraction(FHShareTokenLimit, userVoteAmount, totalVoteAmount) - userShareTokensStaked)
391401 if ((lockType > 0))
392402 then throw("You can't lock shareTokens till first harvest end.")
393403 else if ((userVoteAmount == 0))
394- then throw("You can't lock shareTokens. You didn't vote for pool in first week.")
404+ then 0
395405 else if ((pmtAmount >= FHShareTokenUserLimit))
396406 then (pmtAmount - FHShareTokenUserLimit)
397407 else 0
398408 }
399409 else 0
400410
401411
402412 func getLockParams (type) = {
403413 let lockParams = split(valueOrErrorMessage(getString(this, (toString(type) + kLockParams)), ("There are no key for lock type" + toString(type))), "_")
404414 $Tuple2(parseIntValue(lockParams[0]), parseIntValue(lockParams[1]))
405415 }
406416
407417
408418 func suspend (cause) = [BooleanEntry(kActive, false), StringEntry(kCause, cause)]
409419
410420
411421 func isActive () = if (if (active)
412422 then activeGlob
413423 else false)
414424 then unit
415425 else throw("DApp is inactive at this moment")
416426
417427
418428 func isAdminCall (i) = if (containsElement([adminPubKey1, adminPubKey2, adminPubKey3], i.callerPublicKey))
419429 then unit
420430 else throw("Only admin can call this function")
421431
422432
423433 func isPoolCall (i,pool) = if (if ((toString(i.caller) == pool))
424434 then true
425435 else (i.caller == cpmmContract))
426436 then unit
427437 else throw("Only pool can call this function")
428438
429439
430440 func getDeprecatedPool (pool) = valueOrElse(getBoolean(oracle, (kDeprecatedPool + pool)), false)
431441
432442
433443 func isDeprecatedPool (pool) = if (!(getDeprecatedPool(pool)))
434444 then unit
435445 else throw("Pool is deprecated. Only unlock action allowed.")
436446
437447
438448 func isSelfCall (i) = if ((i.caller == this))
439449 then unit
440450 else throw("Only contract itself can call this function")
441451
442452
443453 func calcLockShareTokens (i,caller,pool,lockType) = {
444454 let shareAssetId = getShareAssetId(pool)
445455 let user = toString(caller)
446456 let totalShare = getTotalShareToken(pool)
447457 let totalShareVirtual = valueOrElse(getInteger(this, (pool + kShareTokensVirtual)), totalShare)
448458 let userStakedAmount = valueOrElse(getInteger(this, (((pool + "_") + user) + kUserShareTokensStaked)), 0)
449459 let userLockedHeigt = valueOrElse(getInteger(this, (((pool + "_") + user) + kUserShareTokensLockedHeight)), 0)
450460 let userLockedAmount = valueOrElse(getInteger(this, (((pool + "_") + user) + kUserShareTokensLocked)), 0)
451461 let userAmountVirtual = valueOrElse(getInteger(this, (((pool + "_") + user) + kUserShareTokensVirtual)), userStakedAmount)
452462 let totalUserShareTokens = ((userStakedAmount + userLockedAmount) + i.payments[0].amount)
453- let $t01902819080 = getLockParams(lockType)
454- let lockPeriod = $t01902819080._1
455- let lockCoef = $t01902819080._2
463+ let $t01930519357 = getLockParams(lockType)
464+ let lockPeriod = $t01930519357._1
465+ let lockCoef = $t01930519357._2
456466 let lockWavesFee = getIntegerValue(this, kLockWavesFee)
457467 if ((i.payments[0].assetId != shareAssetId))
458468 then throw("Wrong sharetoken in payment")
459469 else if ((0 >= i.payments[0].amount))
460470 then throw("Payment amount must be greater than 0")
461471 else if ((0 > lockType))
462472 then throw("lockType must be >= 0")
463473 else {
464474 let shareTokensChangeOnFH = canLockInFirstHarvest(pool, user, userStakedAmount, i.payments[0].amount, lockType)
465475 if ((shareTokensChangeOnFH == shareTokensChangeOnFH))
466476 then {
467- let $t01950721441 = if ((lockType == 0))
477+ let $t01978421718 = if ((lockType == 0))
468478 then {
469479 let userAmountVirtualNew = ((userAmountVirtual + i.payments[0].amount) - shareTokensChangeOnFH)
470480 $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))
471481 }
472482 else if (if ((userLockedHeigt == 0))
473483 then if (if ((2 > size(i.payments)))
474484 then true
475485 else (i.payments[1].assetId != unit))
476486 then true
477487 else (lockWavesFee > i.payments[1].amount)
478488 else false)
479489 then throw((("You need to pay additional waves comission " + toString(lockWavesFee)) + "WAVES"))
480490 else if ((userLockedHeigt > (height + lockPeriod)))
481491 then throw("You cannot lock sharetokens for a period less than what you have already locked")
482492 else {
483493 let userLockedAmountNew = (userLockedAmount + i.payments[0].amount)
484494 let userLockedHeigtNew = (height + lockPeriod)
485495 let userAmountVirtualNew = (fraction(userLockedAmountNew, lockCoef, lockBoostCoefScale) + userStakedAmount)
486496 $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))
487497 }
488- let lockEntries = $t01950721441._1
489- let totalShareNew = $t01950721441._2
490- if ((accountBalance(shareAssetId) > totalShareNew))
498+ let lockEntries = $t01978421718._1
499+ let totalShareNew = $t01978421718._2
500+ if ((totalShareNew > accountBalance(shareAssetId)))
491501 then throw("Balance of share-token is lower than totalAmount")
492502 else {
493- let $t02156621648 = claimCalc(pool, user)
494- let farmInterest = $t02156621648._1
495- let boostInterest = $t02156621648._2
496- let claimAmount = $t02156621648._3
497- let toTreasure = $t02156621648._4
503+ let $t02184321937 = claimCalc(pool, user)
504+ let farmInterest = $t02184321937._1
505+ let boostInterest = $t02184321937._2
506+ let claimAmount = $t02184321937._3
507+ let toTreasure = $t02184321937._4
508+ let teamReward = $t02184321937._5
498509 let availableFundsNew = (userAvailableSWOP(pool, user) + claimAmount)
499510 let uplp = if ((getString(Address(fromBase58String(pool)), "version") == "3.0.0"))
500511 then invoke(lpFarmingAddress, "updateUserInterest", [user, pool, totalUserShareTokens], nil)
501512 else 0
502513 if ((uplp == uplp))
503- 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, true), ScriptTransfer(farmingTreasureAddr, toTreasure, SWOP)] ++ lockEntries)
514+ 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)
504515 else throw("Strict value is not equal to itself.")
505516 }
506517 }
507518 else throw("Strict value is not equal to itself.")
508519 }
509520 }
510521
511522
512523 func calcWithdrawShareTokens (i,caller,pool,shareTokensWithdrawAmount) = {
513524 let inv = if (getDeprecatedPool(pool))
514525 then invoke(this, "unlockUserLockDeprecated", [pool, toString(caller)], nil)
515526 else 0
516527 if ((inv == inv))
517528 then {
518529 let shareTokensId = fromBase58String(getStringValue(value(addressFromString(pool)), "share_asset_id"))
519530 let user = toString(caller)
520- let $t02294523027 = claimCalc(pool, user)
521- let farmInterest = $t02294523027._1
522- let boostInterest = $t02294523027._2
523- let claimAmount = $t02294523027._3
524- let toTreasure = $t02294523027._4
531+ let $t02330523399 = claimCalc(pool, user)
532+ let farmInterest = $t02330523399._1
533+ let boostInterest = $t02330523399._2
534+ let claimAmount = $t02330523399._3
535+ let toTreasure = $t02330523399._4
536+ let teamReward = $t02330523399._5
525537 let userStakedAmount = valueOrElse(getInteger(this, (((pool + "_") + user) + kUserShareTokensStaked)), 0)
526538 let userLockedAmount = valueOrElse(getInteger(this, (((pool + "_") + user) + kUserShareTokensLocked)), 0)
527539 let userAmountVirtual = valueOrElse(getInteger(this, (((pool + "_") + user) + kUserShareTokensVirtual)), userStakedAmount)
528540 let userStakedAmountNew = (userStakedAmount - shareTokensWithdrawAmount)
529541 let availableFundsNew = (userAvailableSWOP(pool, user) + claimAmount)
530542 let totalShareAmount = getTotalShareToken(pool)
531543 let totalShareVirtual = valueOrElse(getInteger(this, (pool + kShareTokensVirtual)), totalShareAmount)
532544 let totalShareAmountNew = (totalShareAmount - shareTokensWithdrawAmount)
533545 let totalShareVirtualNew = (totalShareVirtual - shareTokensWithdrawAmount)
534546 let userAmountVirtualNew = (userAmountVirtual - shareTokensWithdrawAmount)
535547 if ((shareTokensWithdrawAmount > userStakedAmount))
536548 then throw("Withdraw amount more then user locked amount")
537549 else if ((accountBalance(shareTokensId) > totalShareAmount))
538550 then throw("Balance of share-token is lower than totalAmount")
539551 else {
540552 let uplp = if ((getString(Address(fromBase58String(pool)), "version") == "3.0.0"))
541553 then invoke(lpFarmingAddress, "updateUserInterest", [user, pool, (userStakedAmount + userLockedAmount)], nil)
542554 else 0
543555 if ((uplp == uplp))
544- 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(i.caller, shareTokensWithdrawAmount, shareTokensId)]
556+ 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)]
545557 else throw("Strict value is not equal to itself.")
546558 }
547559 }
548560 else throw("Strict value is not equal to itself.")
549561 }
550562
551563
552564 func calcClaim (i,pool,caller) = {
553565 let shareTokensId = fromBase58String(getStringValue(value(addressFromString(pool)), "share_asset_id"))
554566 let user = toString(caller)
555567 let shareTokenLocked = getTotalShareToken(pool)
556- let $t02553825620 = claimCalc(pool, user)
557- let farmInterest = $t02553825620._1
558- let boostInterest = $t02553825620._2
559- let claimAmount = $t02553825620._3
560- let toTreasure = $t02553825620._4
568+ let $t02596926063 = claimCalc(pool, user)
569+ let farmInterest = $t02596926063._1
570+ let boostInterest = $t02596926063._2
571+ let claimAmount = $t02596926063._3
572+ let toTreasure = $t02596926063._4
573+ let teamReward = $t02596926063._5
561574 let availableFund = (userAvailableSWOP(pool, user) + claimAmount)
562575 if ((accountBalance(shareTokensId) > shareTokenLocked))
563576 then throw("Balance of share-token is lower than totalAmount")
564577 else {
565578 let uTrans = if ((i.caller != this))
566579 then [ScriptTransfer(i.caller, availableFund, SWOP)]
567580 else nil
568- $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), true), ScriptTransfer(farmingTreasureAddr, toTreasure, SWOP)] ++ uTrans), availableFund)
581+ $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)
569582 }
570583 }
571584
572585
573586 func unlockUserLockCalc (i,pool,user) = {
574587 let totalShareVirtual = getIntegerValue(this, (pool + kShareTokensVirtual))
575588 let userStakedAmount = valueOrElse(getInteger(this, (((pool + "_") + user) + kUserShareTokensStaked)), 0)
576589 let userLockedAmount = valueOrElse(getInteger(this, (((pool + "_") + user) + kUserShareTokensLocked)), 0)
577590 let userAmountVirtual = valueOrElse(getInteger(this, (((pool + "_") + user) + kUserShareTokensVirtual)), userStakedAmount)
578591 let userStakedAmountNew = (userStakedAmount + userLockedAmount)
579- let $t02702327105 = claimCalc(pool, user)
580- let farmInterest = $t02702327105._1
581- let boostInterest = $t02702327105._2
582- let claimAmount = $t02702327105._3
583- let toTreasure = $t02702327105._4
592+ let $t02753727631 = claimCalc(pool, user)
593+ let farmInterest = $t02753727631._1
594+ let boostInterest = $t02753727631._2
595+ let claimAmount = $t02753727631._3
596+ let toTreasure = $t02753727631._4
597+ let teamReward = $t02753727631._5
584598 let availableFundsNew = (userAvailableSWOP(pool, user) + claimAmount)
585-[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, true), ScriptTransfer(farmingTreasureAddr, toTreasure, SWOP)]
599+[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)]
586600 }
587601
588602
589603 @Callable(i)
590604 func init (earlyLP) = if (isDefined(getString(this, kSWOPid)))
591605 then throw("SWOP already initialized")
592606 else {
593607 let initAmount = 100000000000000
594608 let SWOPissue = Issue("SWOP", "SWOP protocol token", initAmount, 8, true)
595609 let SWOPid = calculateAssetId(SWOPissue)
596610 [BooleanEntry(kActive, true), Issue("SWOP", "SWOP protocol token", initAmount, 8, true), StringEntry(kSWOPid, toBase58String(SWOPid))]
597611 }
598612
599613
600614
601615 @Callable(i)
602616 func initPoolShareFarming (pool) = valueOrElse(isAdminCall(i), [IntegerEntry((pool + kShareTotalShareTokens), 0), IntegerEntry((pool + kFarmLastInterest), 0), IntegerEntry((pool + kBoostLastInterest), 0), IntegerEntry((pool + kLastInterestHeight), height)])
603617
604618
605619
606620 @Callable(i)
607621 func updatePoolInterest (pool) = valueOrElse(isActive(), if ((i.caller != govAddress))
608622 then throw("Only Governance can call this function")
609623 else {
610624 let user = toString(addressFromPublicKey(adminInvokePubKey))
611- let $t02927129345 = claimCalc(pool, user)
612- let farmInterest = $t02927129345._1
613- let boostInterest = $t02927129345._2
614- let boostLPinterest = $t02927129345._3
625+ let $t02986929943 = claimCalc(pool, user)
626+ let farmInterest = $t02986929943._1
627+ let boostInterest = $t02986929943._2
628+ let boostLPinterest = $t02986929943._3
615629 [IntegerEntry((pool + kFarmLastInterest), farmInterest), IntegerEntry((pool + kBoostLastInterest), boostInterest), IntegerEntry((pool + kLastInterestHeight), height)]
616630 })
617631
618632
619633
620634 @Callable(i)
621635 func lockShareTokens (pool,lockType) = valueOrElse(isDeprecatedPool(pool), valueOrElse(isActive(), calcLockShareTokens(i, i.caller, pool, lockType)))
622636
623637
624638
625639 @Callable(i)
626640 func lockShareTokensFromPool (callerBytes,pool,lockType) = valueOrElse(isDeprecatedPool(pool), valueOrElse(isActive(), valueOrElse(isPoolCall(i, pool), calcLockShareTokens(i, Address(callerBytes), pool, lockType))))
627641
628642
629643
630644 @Callable(i)
631645 func lockStakedShareTokens (pool,lockType,lockAmount) = valueOrElse(isDeprecatedPool(pool), valueOrElse(isActive(), {
632646 let shareAssetId = getShareAssetId(pool)
633647 let user = toString(i.caller)
634648 let totalShare = getTotalShareToken(pool)
635649 let totalShareVirtual = valueOrElse(getInteger(this, (pool + kShareTokensVirtual)), totalShare)
636650 let userStakedAmount = valueOrElse(getInteger(this, (((pool + "_") + user) + kUserShareTokensStaked)), 0)
637651 let userLockedHeigt = valueOrElse(getInteger(this, (((pool + "_") + user) + kUserShareTokensLockedHeight)), 0)
638652 let userLockedAmount = valueOrElse(getInteger(this, (((pool + "_") + user) + kUserShareTokensLocked)), 0)
639653 let userAmountVirtual = valueOrElse(getInteger(this, (((pool + "_") + user) + kUserShareTokensVirtual)), userStakedAmount)
640654 let totalUserShareTokens = (userStakedAmount + userLockedAmount)
641- let $t03097431026 = getLockParams(lockType)
642- let lockPeriod = $t03097431026._1
643- let lockCoef = $t03097431026._2
655+ let $t03157231624 = getLockParams(lockType)
656+ let lockPeriod = $t03157231624._1
657+ let lockCoef = $t03157231624._2
644658 let lockWavesFee = getIntegerValue(this, kLockWavesFee)
645659 if ((getHeightFirstHarvest(pool) > height))
646660 then throw("You can't lock shareTokens till first harvest end.")
647661 else if ((0 >= lockType))
648662 then throw("lockType must be > 0")
649663 else if ((lockAmount > userStakedAmount))
650664 then throw(("You can't lock more than " + toString(userStakedAmount)))
651665 else if ((accountBalance(shareAssetId) > totalShare))
652666 then throw("Balance of share-token is lower than totalAmount")
653667 else if (if ((userLockedHeigt == 0))
654668 then if (if ((1 > size(i.payments)))
655669 then true
656670 else (i.payments[0].assetId != unit))
657671 then true
658672 else (lockWavesFee > i.payments[0].amount)
659673 else false)
660674 then throw((("You need to pay additional waves comission " + toString(lockWavesFee)) + "WAVES"))
661675 else if (if ((userLockedHeigt == 0))
662676 then (0 >= lockAmount)
663677 else false)
664678 then throw("lockAmount must be greater than 0")
665679 else if ((0 > lockAmount))
666680 then throw("lockAmount must be positive")
667681 else if ((userLockedHeigt > (height + lockPeriod)))
668682 then throw("You cannot lock sharetokens for a period less than what you have already locked")
669683 else {
670684 let userLockedAmountNew = (userLockedAmount + lockAmount)
671685 let userStakedAmountNew = (userStakedAmount - lockAmount)
672686 let userLockedHeigtNew = (height + lockPeriod)
673687 let userAmountVirtualNew = (fraction(userLockedAmountNew, lockCoef, lockBoostCoefScale) + userStakedAmountNew)
674- let $t03237232454 = claimCalc(pool, user)
675- let farmInterest = $t03237232454._1
676- let boostInterest = $t03237232454._2
677- let claimAmount = $t03237232454._3
678- let toTreasure = $t03237232454._4
688+ let $t03297033064 = claimCalc(pool, user)
689+ let farmInterest = $t03297033064._1
690+ let boostInterest = $t03297033064._2
691+ let claimAmount = $t03297033064._3
692+ let toTreasure = $t03297033064._4
693+ let teamReward = $t03297033064._5
679694 let availableFundsNew = (userAvailableSWOP(pool, user) + claimAmount)
680-[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, true), ScriptTransfer(farmingTreasureAddr, toTreasure, SWOP)]
695+[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)]
681696 }
682697 }))
683698
684699
685700
686701 @Callable(i)
687702 func unlockUserLock (pool,user) = valueOrElse(isActive(), {
688703 let userLockedHeigt = valueOrErrorMessage(getInteger(this, (((pool + "_") + user) + kUserShareTokensLockedHeight)), (((("There is no pool " + pool) + " or user ") + user) + "with lock"))
689704 if ((userLockedHeigt > height))
690705 then throw(("You can't unlock sharetokens till " + toString(userLockedHeigt)))
691706 else (unlockUserLockCalc(i, pool, user) ++ [ScriptTransfer(i.caller, getIntegerValue(this, kLockWavesFee), unit)])
692707 })
693708
694709
695710
696711 @Callable(i)
697712 func unlockUserLockDeprecated (pool,user) = valueOrElse(isActive(), valueOrElse(isSelfCall(i), if (!(getDeprecatedPool(pool)))
698713 then throw("Pool must be deprecated")
699714 else if (isDefined(getInteger(this, (((pool + "_") + user) + kUserShareTokensLockedHeight))))
700715 then (unlockUserLockCalc(i, pool, user) ++ [ScriptTransfer(moneyBoxAddress, getIntegerValue(this, kLockWavesFee), unit)])
701716 else nil))
702717
703718
704719
705720 @Callable(i)
706721 func withdrawShareTokens (pool,shareTokensWithdrawAmount) = valueOrElse(isActive(), calcWithdrawShareTokens(i, i.caller, pool, shareTokensWithdrawAmount))
707722
708723
709724
710725 @Callable(i)
711726 func withdrawShareTokensFromPool (callerBytes,pool,shareTokensWithdrawAmount) = valueOrElse(isActive(), valueOrElse(isPoolCall(i, pool), calcWithdrawShareTokens(i, Address(callerBytes), pool, shareTokensWithdrawAmount)))
712727
713728
714729
715730 @Callable(i)
716731 func claim (pool) = valueOrElse(isActive(), {
717732 let r = calcClaim(i, pool, i.caller)
718733 if ((r._2 == 0))
719734 then throw("You have 0 available SWOP")
720735 else r
721736 })
722737
723738
724739
725740 @Callable(i)
726741 func claimInternal (pool,caller) = valueOrElse(isActive(), valueOrElse(isSelfCall(i), calcClaim(i, pool, Address(caller))))
727742
728743
729744
730745 @Callable(i)
731746 func claimAndStake (pool) = valueOrElse(isActive(), {
732747 let claimAmount = {
733748 let @ = invoke(this, "claimInternal", [pool, i.caller.bytes], nil)
734749 if ($isInstanceOf(@, "Int"))
735750 then @
736751 else throw(($getType(@) + " couldn't be cast to Int"))
737752 }
738753 if ((claimAmount == claimAmount))
739754 then if ((claimAmount == 0))
740755 then throw("You have 0 available SWOP")
741756 else {
742757 let stakeToGov = invoke(govAddress, "lockSWOPFromFarming", nil, [AttachedPayment(SWOP, claimAmount)])
743758 if ((stakeToGov == stakeToGov))
744759 then nil
745760 else throw("Strict value is not equal to itself.")
746761 }
747762 else throw("Strict value is not equal to itself.")
748763 })
749764
750765
751766
752767 @Callable(i)
753768 func claimAll (pools) = valueOrElse(isActive(), {
754769 func claimInv (claimTotal,pool) = {
755770 let claimAmount = {
756771 let @ = invoke(this, "claimInternal", [pool, i.caller.bytes], nil)
757772 if ($isInstanceOf(@, "Int"))
758773 then @
759774 else throw(($getType(@) + " couldn't be cast to Int"))
760775 }
761776 if ((claimAmount == claimAmount))
762777 then (claimTotal + claimAmount)
763778 else throw("Strict value is not equal to itself.")
764779 }
765780
766781 let claimTotal = {
767782 let $l = pools
768783 let $s = size($l)
769784 let $acc0 = 0
770785 func $f0_1 ($a,$i) = if (($i >= $s))
771786 then $a
772787 else claimInv($a, $l[$i])
773788
774789 func $f0_2 ($a,$i) = if (($i >= $s))
775790 then $a
776791 else throw("List size exceeds 60")
777792
778793 $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)
779794 }
780795 if ((claimTotal == 0))
781796 then throw("You have 0 available SWOP")
782797 else [ScriptTransfer(i.caller, claimTotal, SWOP)]
783798 })
784799
785800
786801
787802 @Callable(i)
788803 func claimAllAndStake (pools) = valueOrElse(isActive(), {
789804 func claimInv (claimTotal,pool) = {
790805 let claimAmount = {
791806 let @ = invoke(this, "claimInternal", [pool, i.caller.bytes], nil)
792807 if ($isInstanceOf(@, "Int"))
793808 then @
794809 else throw(($getType(@) + " couldn't be cast to Int"))
795810 }
796811 if ((claimAmount == claimAmount))
797812 then (claimTotal + claimAmount)
798813 else throw("Strict value is not equal to itself.")
799814 }
800815
801816 let claimTotal = {
802817 let $l = pools
803818 let $s = size($l)
804819 let $acc0 = 0
805820 func $f0_1 ($a,$i) = if (($i >= $s))
806821 then $a
807822 else claimInv($a, $l[$i])
808823
809824 func $f0_2 ($a,$i) = if (($i >= $s))
810825 then $a
811826 else throw("List size exceeds 60")
812827
813828 $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)
814829 }
815830 if ((claimTotal == 0))
816831 then throw("You have 0 available SWOP")
817832 else {
818833 let stakeToGov = invoke(govAddress, "lockSWOPFromFarming", nil, [AttachedPayment(SWOP, claimTotal)])
819834 if ((stakeToGov == stakeToGov))
820835 then nil
821836 else throw("Strict value is not equal to itself.")
822837 }
823838 })
824839
825840
826841
827842 @Callable(i)
828843 func updateUserBoostInterest (pool,user) = valueOrElse(isActive(), if ((i.caller != votingAddress))
829844 then throw("Only voiting can call this function")
830845 else {
831- let $t03720337285 = claimCalc(pool, user)
832- let farmInterest = $t03720337285._1
833- let boostInterest = $t03720337285._2
834- let claimAmount = $t03720337285._3
835- let toTreasure = $t03720337285._4
846+ let $t03788837982 = claimCalc(pool, user)
847+ let farmInterest = $t03788837982._1
848+ let boostInterest = $t03788837982._2
849+ let claimAmount = $t03788837982._3
850+ let toTreasure = $t03788837982._4
851+ let teamReward = $t03788837982._5
836852 let availableFundsNew = (userAvailableSWOP(pool, user) + claimAmount)
837-[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, true), ScriptTransfer(farmingTreasureAddr, toTreasure, SWOP)]
853+[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)]
838854 })
839855
840856
841857
842858 @Callable(i)
843859 func shutdown () = valueOrElse(isAdminCall(i), if (!(active))
844860 then throw(("DApp is already suspended. Cause: " + valueOrElse(getString(this, kCause), "the cause wasn't specified")))
845861 else suspend("Paused by admin"))
846862
847863
848864
849865 @Callable(i)
850866 func activate () = valueOrElse(isAdminCall(i), if (active)
851867 then throw("DApp is already active")
852868 else [BooleanEntry(kActive, true), DeleteEntry(kCause)])
853869
854870
855871 @Verifier(tx)
856872 func verify () = match tx {
857873 case _ =>
858874 let adminPubKey1Signed = if (sigVerify(tx.bodyBytes, tx.proofs[0], adminPubKey1))
859875 then 1
860876 else 0
861877 let adminPubKey2Signed = if (sigVerify(tx.bodyBytes, tx.proofs[1], adminPubKey2))
862878 then 1
863879 else 0
864880 let adminPubKey3Signed = if (sigVerify(tx.bodyBytes, tx.proofs[2], adminPubKey3))
865881 then 1
866882 else 0
867883 (((adminPubKey1Signed + adminPubKey2Signed) + adminPubKey3Signed) >= 2)
868884 }
869885

github/deemru/w8io/169f3d6 
155.50 ms