tx · 5uVntR9kpZ69bPn5GWmWVsVgFkoycLi1R5wH4UdgpUvv

3MsXpzisJAwnzUr7XrEoW1BZo4U6rw4tsYK:  -0.04100000 Waves

2023.04.12 14:24 [2531273] smart account 3MsXpzisJAwnzUr7XrEoW1BZo4U6rw4tsYK > SELF 0.00000000 Waves

{ "type": 13, "id": "5uVntR9kpZ69bPn5GWmWVsVgFkoycLi1R5wH4UdgpUvv", "fee": 4100000, "feeAssetId": null, "timestamp": 1681298602170, "version": 2, "chainId": 84, "sender": "3MsXpzisJAwnzUr7XrEoW1BZo4U6rw4tsYK", "senderPublicKey": "FFdBua5rzzMkZebvsvmN7sAdU7XhFK8QNJ3hiwwxAYRA", "proofs": [ "2i6u1fc9YzvSGFG7NrvRmTiWsR9ibDAsjPe2T84VWzNEP5msA9Du5mfuGMAbbzNusN3Ftm7JmcmcDyP41j2BUTNc", "62QgVJvetfCHFSHmyxqfmmRJiLhKf74TMEKMbCptRhTkLRVh5eGa7vvHkm9bwTzkf3ef1TycV3k2SQ8WnMDP8jtX" ], "script": "base64:BgJiCAISAwoBCBIDCgEIEgMKAQgSBAoCCAESBQoDAggBEgUKAwgBARIECgIICBIECgIICBIECgIIARIFCgMCCAESAwoBCBIECgIIAhIDCgEIEgMKARgSAwoBGBIECgIICBIAEgBlAAdrQWN0aXZlAgZhY3RpdmUAC2tBY3RpdmVHbG9iAhRhY3RpdmVfYWxsX2NvbnRyYWN0cwAPa0RlcHJlY2F0ZWRQb29sAgtkZXByZWNhdGVkXwAGa0NhdXNlAg5zaHV0ZG93bl9jYXVzZQAaa1Jld2FyZFBvb2xGcmFjdGlvbkN1cnJlbnQCHV9jdXJyZW50X3Bvb2xfZnJhY3Rpb25fcmV3YXJkABtrUmV3YXJkUG9vbEZyYWN0aW9uUHJldmlvdXMCHl9wcmV2aW91c19wb29sX2ZyYWN0aW9uX3Jld2FyZAATa0hlaWdodFBvb2xGcmFjdGlvbgIaX3Bvb2xfcmV3YXJkX3VwZGF0ZV9oZ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pblB1YktleTFTaWduZWQDCQD0AwMIBQJ0eAlib2R5Qnl0ZXMJAJEDAggFAnR4BnByb29mcwAABQxhZG1pblB1YktleTEAAQAABBJhZG1pblB1YktleTJTaWduZWQDCQD0AwMIBQJ0eAlib2R5Qnl0ZXMJAJEDAggFAnR4BnByb29mcwABBQxhZG1pblB1YktleTIAAQAABBJhZG1pblB1YktleTNTaWduZWQDCQD0AwMIBQJ0eAlib2R5Qnl0ZXMJAJEDAggFAnR4BnByb29mcwACBQxhZG1pblB1YktleTMAAQAACQBnAgkAZAIJAGQCBRJhZG1pblB1YktleTFTaWduZWQFEmFkbWluUHViS2V5MlNpZ25lZAUSYWRtaW5QdWJLZXkzU2lnbmVkAAKK8C4H", "height": 2531273, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: HRDFC4ah94Ar9JCX9iHWRotevaExRvf4mS7aoPaWMraD Next: CJiJrXDdFYXgKdqoRYvnyCtSfbmXB6dBxURCHn1RUuFF Diff:
OldNewDifferences
6868 let kShareLimitFH = "share_limit_on_first_harvest"
6969
7070 let kStratBFarmInterest = "_strat_b_farm_interest"
71+
72+let kPoolInOracle = "pool_"
7173
7274 let kCpmmContract = "cpmm_contract"
7375
150152 func getRewardsPerBlockInfo () = {
151153 let emissionPeriods = ((height - startEmissionH) / blocksPerYear)
152154 func calcEmission (acc,i) = {
153- let $t049284965 = acc
154- let curEmission = $t049284965._1
155- let prevEmission = $t049284965._2
155+ let $t049564993 = acc
156+ let curEmission = $t049564993._1
157+ let prevEmission = $t049564993._2
156158 if ((emissionPeriods > i))
157159 then $Tuple2(fraction(curEmission, 75, 100), curEmission)
158160 else $Tuple2(curEmission, prevEmission)
159161 }
160162
161- let $t051235289 = {
163+ let $t051515317 = {
162164 let $l = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19]
163165 let $s = size($l)
164166 let $acc0 = $Tuple2(swopYearEmission, swopYearEmission)
172174
173175 $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)
174176 }
175- let curEmission = $t051235289._1
176- let prevEmission = $t051235289._2
177+ let curEmission = $t051515317._1
178+ let prevEmission = $t051515317._2
177179 $Tuple3((curEmission / blocksPerYear), (prevEmission / blocksPerYear), (startEmissionH + (blocksPerYear * emissionPeriods)))
178180 }
179181
218220
219221
220222 func rewardInfo (pool) = {
221- let $t071047219 = getRewardsPerBlockInfo()
222- let totalRewardPerBlockCurrent = $t071047219._1
223- let totalRewardPerBlockPrevious = $t071047219._2
224- let lastEmissionUpdateHeight = $t071047219._3
223+ let $t071327247 = getRewardsPerBlockInfo()
224+ let totalRewardPerBlockCurrent = $t071327247._1
225+ let totalRewardPerBlockPrevious = $t071327247._2
226+ let lastEmissionUpdateHeight = $t071327247._3
225227 let rewardPoolFractionCurrent = valueOrErrorMessage(getInteger(govAddress, (pool + kRewardPoolFractionCurrent)), (((("No data on the key: " + pool) + kRewardPoolFractionCurrent) + " at address ") + toString(govAddress)))
226228 let rewardUpdateHeight = valueOrErrorMessage(getInteger(govAddress, kRewardUpdateHeight), ((("No data on the key: " + kRewardUpdateHeight) + " at address ") + toString(govAddress)))
227229 let poolRewardUpdateHeight = valueOrElse(getInteger(govAddress, (pool + kHeightPoolFraction)), rewardUpdateHeight)
259261
260262
261263 func calcInterest (pool,lastInterestHeight,rewardUpdateHeight,poolRewardUpdateHeight,farmInterest,boostInterest,poolVoted,currentRewardPerBlock,shareTokenLocked,previousRewardPerBlock,scaleValue,toHeight) = {
262- let $t01023311418 = if (if (if ((rewardUpdateHeight > toHeight))
264+ let $t01026111446 = if (if (if ((rewardUpdateHeight > toHeight))
263265 then (rewardUpdateHeight == poolRewardUpdateHeight)
264266 else false)
265267 then true
288290 let rwd = (currentRewardPerBlock * (toHeight - rewardUpdateHeight))
289291 $Tuple3(rwd, fBfrUp, bBfrUp)
290292 }
291- let reward = $t01023311418._1
292- let farmIntrBefore = $t01023311418._2
293- let boostIntrBefore = $t01023311418._3
293+ let reward = $t01026111446._1
294+ let farmIntrBefore = $t01026111446._2
295+ let boostIntrBefore = $t01026111446._3
294296 let newFarmInterest = (farmIntrBefore + fraction(calcFarmRwd(pool, reward), scaleValue, shareTokenLocked))
295297 let newBoostInterest = (boostIntrBefore + (if ((poolVoted > 0))
296298 then fraction(calcBoostRwd(pool, reward), scaleValue8, poolVoted)
306308 let shareToken = getTotalShareToken(pool)
307309 let totalShareVirtual = valueOrElse(getInteger(this, (pool + kShareTokensVirtual)), shareToken)
308310 let stratBFarmInterest = valueOrElse(getInteger(this, (pool + kStratBFarmInterest)), 0)
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
311+ let $t01228412365 = getLastInterestInfo(pool)
312+ let lastInterestHeight = $t01228412365._1
313+ let farmInterest = $t01228412365._2
314+ let boostInterest = $t01228412365._3
315+ let $t01237012627 = rewardInfo(pool)
316+ let currentRewardPerBlock = $t01237012627._1
317+ let rewardUpdateHeight = $t01237012627._2
318+ let previousRewardPerBlock = $t01237012627._3
319+ let poolRewardUpdateHeight = $t01237012627._4
320+ let emissionUpdateHeight = $t01237012627._5
321+ let prevCurrentRewardPerBlock = $t01237012627._6
322+ let prevPreviousRewardPerBlock = $t01237012627._7
321323 let uFarmInterest = valueOrElse(getInteger(this, (((pool + "_") + user) + kFarmUserLastInterest)), farmInterest)
322324 let uBoostInterest = valueOrElse(getInteger(this, (((pool + "_") + user) + kBoostUserLastInterest)), if (if ((stratBFarmInterest > uFarmInterest))
323325 then (uPoolVoted > 0)
335337 $Tuple5(farmInterest, boostInterest, 0, (toTreasury - teamReward), teamReward)
336338 }
337339 else {
338- let $t01364214779 = if ((emissionUpdateHeight > lastInterestHeight))
340+ let $t01367014807 = if ((emissionUpdateHeight > lastInterestHeight))
339341 then {
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
342+ let $t01408314642 = calcInterest(pool, lastInterestHeight, rewardUpdateHeight, poolRewardUpdateHeight, farmInterest, boostInterest, poolVoted, prevCurrentRewardPerBlock, totalShareVirtual, prevPreviousRewardPerBlock, scaleValue, emissionUpdateHeight)
343+ let prevNewFarmInterest = $t01408314642._1
344+ let prevNewBoostInterest = $t01408314642._2
343345 $Tuple3(prevNewFarmInterest, prevNewBoostInterest, emissionUpdateHeight)
344346 }
345347 else $Tuple3(farmInterest, boostInterest, lastInterestHeight)
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
348+ let prevFarmInterest = $t01367014807._1
349+ let prevBoostInterest = $t01367014807._2
350+ let LIHeight = $t01367014807._3
351+ let $t01481615239 = calcInterest(pool, LIHeight, rewardUpdateHeight, poolRewardUpdateHeight, prevFarmInterest, prevBoostInterest, poolVoted, currentRewardPerBlock, totalShareVirtual, previousRewardPerBlock, scaleValue, height)
352+ let newFarmInterest = $t01481615239._1
353+ let newBoostInterest = $t01481615239._2
352354 let farmRwd = fraction(uShareTokensVirt, (newFarmInterest - uFarmInterest), scaleValue)
353355 let poolBoostCoef = valueOrElse(getInteger(this, (pool + kPoolBoostCoef)), defPoolBoostCoef)
354356 let boostRwdMax = fraction(fraction(uShareTokensVirt, (newFarmInterest - max([uFarmInterest, stratBFarmInterest])), scaleValue), poolBoostCoef, lockBoostCoefScale)
365367
366368 func availableClaimCalcAllByUser (pools,user) = {
367369 func calcAvailable (acc,pool) = {
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
370+ let $t01619316222 = acc
371+ let newPools = $t01619316222._1
372+ let amounts = $t01619316222._2
373+ let $t01623116284 = claimCalc(pool, user)
374+ let fi = $t01623116284._1
375+ let bi = $t01623116284._2
376+ let claimAmount = $t01623116284._3
377+ let tt = $t01623116284._4
376378 let availableFund = (userAvailableSWOP(pool, user) + claimAmount)
377379 $Tuple2((newPools :+ pool), (amounts :+ availableFund))
378380 }
460462 let userLockedAmount = valueOrElse(getInteger(this, (((pool + "_") + user) + kUserShareTokensLocked)), 0)
461463 let userAmountVirtual = valueOrElse(getInteger(this, (((pool + "_") + user) + kUserShareTokensVirtual)), userStakedAmount)
462464 let totalUserShareTokens = ((userStakedAmount + userLockedAmount) + i.payments[0].amount)
463- let $t01938019432 = getLockParams(lockType)
464- let lockPeriod = $t01938019432._1
465- let lockCoef = $t01938019432._2
465+ let $t01940819460 = getLockParams(lockType)
466+ let lockPeriod = $t01940819460._1
467+ let lockCoef = $t01940819460._2
466468 let lockWavesFee = getIntegerValue(this, kLockWavesFee)
467469 if ((i.payments[0].assetId != shareAssetId))
468470 then throw("Wrong sharetoken in payment")
474476 let shareTokensChangeOnFH = canLockInFirstHarvest(pool, user, userStakedAmount, i.payments[0].amount, lockType)
475477 if ((shareTokensChangeOnFH == shareTokensChangeOnFH))
476478 then {
477- let $t01985921793 = if ((lockType == 0))
479+ let $t01988721821 = if ((lockType == 0))
478480 then {
479481 let userAmountVirtualNew = ((userAmountVirtual + i.payments[0].amount) - shareTokensChangeOnFH)
480482 $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))
495497 let userAmountVirtualNew = (fraction(userLockedAmountNew, lockCoef, lockBoostCoefScale) + userStakedAmount)
496498 $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))
497499 }
498- let lockEntries = $t01985921793._1
499- let totalShareNew = $t01985921793._2
500+ let lockEntries = $t01988721821._1
501+ let totalShareNew = $t01988721821._2
500502 if ((totalShareNew > accountBalance(shareAssetId)))
501503 then throw("Balance of share-token is lower than totalAmount")
502504 else {
503- let $t02191822012 = claimCalc(pool, user)
504- let farmInterest = $t02191822012._1
505- let boostInterest = $t02191822012._2
506- let claimAmount = $t02191822012._3
507- let toTreasure = $t02191822012._4
508- let teamReward = $t02191822012._5
505+ let $t02194622040 = claimCalc(pool, user)
506+ let farmInterest = $t02194622040._1
507+ let boostInterest = $t02194622040._2
508+ let claimAmount = $t02194622040._3
509+ let toTreasure = $t02194622040._4
510+ let teamReward = $t02194622040._5
509511 let availableFundsNew = (userAvailableSWOP(pool, user) + claimAmount)
510512 let uplp = if ((getString(Address(fromBase58String(pool)), "version") == "3.0.0"))
511513 then invoke(lpFarmingAddress, "updateUserInterest", [user, pool, totalUserShareTokens], nil)
528530 then {
529531 let shareTokensId = fromBase58String(getStringValue(value(addressFromString(pool)), "share_asset_id"))
530532 let user = toString(caller)
531- let $t02338023474 = claimCalc(pool, user)
532- let farmInterest = $t02338023474._1
533- let boostInterest = $t02338023474._2
534- let claimAmount = $t02338023474._3
535- let toTreasure = $t02338023474._4
536- let teamReward = $t02338023474._5
533+ let $t02340823502 = claimCalc(pool, user)
534+ let farmInterest = $t02340823502._1
535+ let boostInterest = $t02340823502._2
536+ let claimAmount = $t02340823502._3
537+ let toTreasure = $t02340823502._4
538+ let teamReward = $t02340823502._5
537539 let userStakedAmount = valueOrElse(getInteger(this, (((pool + "_") + user) + kUserShareTokensStaked)), 0)
538540 let userLockedAmount = valueOrElse(getInteger(this, (((pool + "_") + user) + kUserShareTokensLocked)), 0)
539541 let userAmountVirtual = valueOrElse(getInteger(this, (((pool + "_") + user) + kUserShareTokensVirtual)), userStakedAmount)
565567 let shareTokensId = fromBase58String(getStringValue(value(addressFromString(pool)), "share_asset_id"))
566568 let user = toString(caller)
567569 let shareTokenLocked = getTotalShareToken(pool)
568- let $t02605726151 = claimCalc(pool, user)
569- let farmInterest = $t02605726151._1
570- let boostInterest = $t02605726151._2
571- let claimAmount = $t02605726151._3
572- let toTreasure = $t02605726151._4
573- let teamReward = $t02605726151._5
570+ let $t02608526179 = claimCalc(pool, user)
571+ let farmInterest = $t02608526179._1
572+ let boostInterest = $t02608526179._2
573+ let claimAmount = $t02608526179._3
574+ let toTreasure = $t02608526179._4
575+ let teamReward = $t02608526179._5
574576 let availableFund = (userAvailableSWOP(pool, user) + claimAmount)
575577 if ((accountBalance(shareTokensId) > shareTokenLocked))
576578 then throw("Balance of share-token is lower than totalAmount")
589591 let userLockedAmount = valueOrElse(getInteger(this, (((pool + "_") + user) + kUserShareTokensLocked)), 0)
590592 let userAmountVirtual = valueOrElse(getInteger(this, (((pool + "_") + user) + kUserShareTokensVirtual)), userStakedAmount)
591593 let userStakedAmountNew = (userStakedAmount + userLockedAmount)
592- let $t02762527719 = claimCalc(pool, user)
593- let farmInterest = $t02762527719._1
594- let boostInterest = $t02762527719._2
595- let claimAmount = $t02762527719._3
596- let toTreasure = $t02762527719._4
597- let teamReward = $t02762527719._5
594+ let $t02765327747 = claimCalc(pool, user)
595+ let farmInterest = $t02765327747._1
596+ let boostInterest = $t02765327747._2
597+ let claimAmount = $t02765327747._3
598+ let toTreasure = $t02765327747._4
599+ let teamReward = $t02765327747._5
598600 let availableFundsNew = (userAvailableSWOP(pool, user) + claimAmount)
599601 [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)]
600602 }
613615
614616
615617 @Callable(i)
616-func initPoolShareFarming (pool) = valueOrElse(isAdminCall(i), [IntegerEntry((pool + kShareTotalShareTokens), 0), IntegerEntry((pool + kFarmLastInterest), 0), IntegerEntry((pool + kBoostLastInterest), 0), IntegerEntry((pool + kLastInterestHeight), height)])
618+func initPoolShareFarming (pool) = valueOrElse(isAdminCall(i), if (!(isDefined(getString(oracle, (kPoolInOracle + pool)))))
619+ then throw("Pool is not in oracle")
620+ else if (isDefined(getInteger(this, (pool + kShareTotalShareTokens))))
621+ then throw("Pool already inited")
622+ else [IntegerEntry((pool + kShareTotalShareTokens), 0), IntegerEntry((pool + kFarmLastInterest), 0), IntegerEntry((pool + kBoostLastInterest), 0), IntegerEntry((pool + kLastInterestHeight), height)])
617623
618624
619625
622628 then throw("Only Governance can call this function")
623629 else {
624630 let user = toString(addressFromPublicKey(adminInvokePubKey))
625- let $t02995630030 = claimCalc(pool, user)
626- let farmInterest = $t02995630030._1
627- let boostInterest = $t02995630030._2
628- let boostLPinterest = $t02995630030._3
631+ let $t03019730271 = claimCalc(pool, user)
632+ let farmInterest = $t03019730271._1
633+ let boostInterest = $t03019730271._2
634+ let boostLPinterest = $t03019730271._3
629635 [IntegerEntry((pool + kFarmLastInterest), farmInterest), IntegerEntry((pool + kBoostLastInterest), boostInterest), IntegerEntry((pool + kLastInterestHeight), height)]
630636 })
631637
652658 let userLockedAmount = valueOrElse(getInteger(this, (((pool + "_") + user) + kUserShareTokensLocked)), 0)
653659 let userAmountVirtual = valueOrElse(getInteger(this, (((pool + "_") + user) + kUserShareTokensVirtual)), userStakedAmount)
654660 let totalUserShareTokens = (userStakedAmount + userLockedAmount)
655- let $t03165931711 = getLockParams(lockType)
656- let lockPeriod = $t03165931711._1
657- let lockCoef = $t03165931711._2
661+ let $t03190031952 = getLockParams(lockType)
662+ let lockPeriod = $t03190031952._1
663+ let lockCoef = $t03190031952._2
658664 let lockWavesFee = getIntegerValue(this, kLockWavesFee)
659665 if ((getHeightFirstHarvest(pool) > height))
660666 then throw("You can't lock shareTokens till first harvest end.")
685691 let userStakedAmountNew = (userStakedAmount - lockAmount)
686692 let userLockedHeigtNew = (height + lockPeriod)
687693 let userAmountVirtualNew = (fraction(userLockedAmountNew, lockCoef, lockBoostCoefScale) + userStakedAmountNew)
688- let $t03305733151 = claimCalc(pool, user)
689- let farmInterest = $t03305733151._1
690- let boostInterest = $t03305733151._2
691- let claimAmount = $t03305733151._3
692- let toTreasure = $t03305733151._4
693- let teamReward = $t03305733151._5
694+ let $t03329833392 = claimCalc(pool, user)
695+ let farmInterest = $t03329833392._1
696+ let boostInterest = $t03329833392._2
697+ let claimAmount = $t03329833392._3
698+ let toTreasure = $t03329833392._4
699+ let teamReward = $t03329833392._5
694700 let availableFundsNew = (userAvailableSWOP(pool, user) + claimAmount)
695701 [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)]
696702 }
843849 func updateUserBoostInterest (pool,user) = valueOrElse(isActive(), if ((i.caller != votingAddress))
844850 then throw("Only voiting can call this function")
845851 else {
846- let $t03797538069 = claimCalc(pool, user)
847- let farmInterest = $t03797538069._1
848- let boostInterest = $t03797538069._2
849- let claimAmount = $t03797538069._3
850- let toTreasure = $t03797538069._4
851- let teamReward = $t03797538069._5
852+ let $t03821638310 = claimCalc(pool, user)
853+ let farmInterest = $t03821638310._1
854+ let boostInterest = $t03821638310._2
855+ let claimAmount = $t03821638310._3
856+ let toTreasure = $t03821638310._4
857+ let teamReward = $t03821638310._5
852858 let availableFundsNew = (userAvailableSWOP(pool, user) + claimAmount)
853859 [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)]
854860 })
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"
71+
72+let kPoolInOracle = "pool_"
7173
7274 let kCpmmContract = "cpmm_contract"
7375
7476 let kAdminPubKey1 = "admin_pub_1"
7577
7678 let kAdminPubKey2 = "admin_pub_2"
7779
7880 let kAdminPubKey3 = "admin_pub_3"
7981
8082 let kAdminInvokePubKey = "admin_invoke_pub"
8183
8284 let kMoneyBoxAddress = "money_box_address"
8385
8486 let kTeamBoxAddress = "team_box_address"
8587
8688 let kVotingAddress = "voting_address"
8789
8890 let kGovAddress = "governance_address"
8991
9092 let kLPFarmingAddress = "lp_farming"
9193
9294 let kFarmingTreasureAddr = "farming_treasure"
9395
9496 let oracle = Address(base58'3MvVBtsXroQpy1tsPw21TU2ET9A8WfmrNjz')
9597
9698 let totalVoteShare = 10000000000
9799
98100 let scaleValue8 = 100000000
99101
100102 let scaleValue6 = 1000000
101103
102104 let lockBoostCoefScale = 1000
103105
104106 let defPoolBoostCoef = 500
105107
106108 let startEmissionH = 2976848
107109
108110 let swopYearEmission = 100000000000000
109111
110112 let blocksPerYear = 526330
111113
112114 let teamFee = 25
113115
114116 func getBase58FromOracle (key) = match getString(oracle, key) {
115117 case string: String =>
116118 fromBase58String(string)
117119 case nothing =>
118120 throw((key + "is empty"))
119121 }
120122
121123
122124 let adminPubKey1 = getBase58FromOracle(kAdminPubKey1)
123125
124126 let adminPubKey2 = getBase58FromOracle(kAdminPubKey2)
125127
126128 let adminPubKey3 = getBase58FromOracle(kAdminPubKey3)
127129
128130 let moneyBoxAddress = Address(getBase58FromOracle(kMoneyBoxAddress))
129131
130132 let teamBoxAddress = Address(getBase58FromOracle(kTeamBoxAddress))
131133
132134 let votingAddress = Address(getBase58FromOracle(kVotingAddress))
133135
134136 let govAddress = Address(getBase58FromOracle(kGovAddress))
135137
136138 let adminInvokePubKey = getBase58FromOracle(kAdminInvokePubKey)
137139
138140 let lpFarmingAddress = Address(getBase58FromOracle(kLPFarmingAddress))
139141
140142 let farmingTreasureAddr = Address(getBase58FromOracle(kFarmingTreasureAddr))
141143
142144 let cpmmContract = Address(getBase58FromOracle(kCpmmContract))
143145
144146 let active = getBooleanValue(this, kActive)
145147
146148 let activeGlob = valueOrElse(getBoolean(oracle, kActiveGlob), true)
147149
148150 let SWOP = fromBase58String(getStringValue(this, kSWOPid))
149151
150152 func getRewardsPerBlockInfo () = {
151153 let emissionPeriods = ((height - startEmissionH) / blocksPerYear)
152154 func calcEmission (acc,i) = {
153- let $t049284965 = acc
154- let curEmission = $t049284965._1
155- let prevEmission = $t049284965._2
155+ let $t049564993 = acc
156+ let curEmission = $t049564993._1
157+ let prevEmission = $t049564993._2
156158 if ((emissionPeriods > i))
157159 then $Tuple2(fraction(curEmission, 75, 100), curEmission)
158160 else $Tuple2(curEmission, prevEmission)
159161 }
160162
161- let $t051235289 = {
163+ let $t051515317 = {
162164 let $l = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19]
163165 let $s = size($l)
164166 let $acc0 = $Tuple2(swopYearEmission, swopYearEmission)
165167 func $f0_1 ($a,$i) = if (($i >= $s))
166168 then $a
167169 else calcEmission($a, $l[$i])
168170
169171 func $f0_2 ($a,$i) = if (($i >= $s))
170172 then $a
171173 else throw("List size exceeds 20")
172174
173175 $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)
174176 }
175- let curEmission = $t051235289._1
176- let prevEmission = $t051235289._2
177+ let curEmission = $t051515317._1
178+ let prevEmission = $t051515317._2
177179 $Tuple3((curEmission / blocksPerYear), (prevEmission / blocksPerYear), (startEmissionH + (blocksPerYear * emissionPeriods)))
178180 }
179181
180182
181183 func getHeightFirstHarvest (pool) = valueOrElse(getInteger(Address(fromBase58String(pool)), kFirstHarvestHeight), 0)
182184
183185
184186 func getFHShareLimitToken (pool) = valueOrErrorMessage(getInteger(pool, kShareLimitFH), ("No data on the key: " + kShareLimitFH))
185187
186188
187189 func getTotalShareToken (pool) = valueOrErrorMessage(getInteger(this, (pool + kShareTotalShareTokens)), (("No data on the key: " + pool) + kShareTotalShareTokens))
188190
189191
190192 func getPoolVoted (pool) = valueOrElse(getInteger(votingAddress, (pool + kPoolVote)), valueOrElse(parseInt(split(valueOrElse(getString(votingAddress, (pool + kPoolStruc)), ""), "_")[0]), 0))
191193
192194
193195 func getUserPoolVoted (pool,user) = valueOrElse(getInteger(votingAddress, (((user + "_") + pool) + kUserPoolVote)), valueOrElse(parseInt(split(valueOrElse(getString(votingAddress, (((user + "_") + pool) + kUserPoolStruc)), ""), "_")[0]), 0))
194196
195197
196198 func getShareAssetId (pool) = fromBase58String(getStringValue(value(addressFromString(pool)), "share_asset_id"))
197199
198200
199201 func accountBalance (assetId) = match assetId {
200202 case id: ByteVector =>
201203 assetBalance(this, id)
202204 case waves: Unit =>
203205 wavesBalance(this).available
204206 case _ =>
205207 throw("Match error")
206208 }
207209
208210
209211 func calcScaleValue (assetId1,assetId2) = {
210212 let assetId1Decimals = value(assetInfo(assetId1)).decimals
211213 let assetId2Decimals = value(assetInfo(assetId2)).decimals
212214 let scaleDigits = ((assetId2Decimals - assetId1Decimals) + 8)
213215 pow(10, 0, scaleDigits, 0, 0, DOWN)
214216 }
215217
216218
217219 func userAvailableSWOP (pool,user) = valueOrElse(getInteger(this, (((pool + "_") + user) + kAvailableSWOP)), 0)
218220
219221
220222 func rewardInfo (pool) = {
221- let $t071047219 = getRewardsPerBlockInfo()
222- let totalRewardPerBlockCurrent = $t071047219._1
223- let totalRewardPerBlockPrevious = $t071047219._2
224- let lastEmissionUpdateHeight = $t071047219._3
223+ let $t071327247 = getRewardsPerBlockInfo()
224+ let totalRewardPerBlockCurrent = $t071327247._1
225+ let totalRewardPerBlockPrevious = $t071327247._2
226+ let lastEmissionUpdateHeight = $t071327247._3
225227 let rewardPoolFractionCurrent = valueOrErrorMessage(getInteger(govAddress, (pool + kRewardPoolFractionCurrent)), (((("No data on the key: " + pool) + kRewardPoolFractionCurrent) + " at address ") + toString(govAddress)))
226228 let rewardUpdateHeight = valueOrErrorMessage(getInteger(govAddress, kRewardUpdateHeight), ((("No data on the key: " + kRewardUpdateHeight) + " at address ") + toString(govAddress)))
227229 let poolRewardUpdateHeight = valueOrElse(getInteger(govAddress, (pool + kHeightPoolFraction)), rewardUpdateHeight)
228230 let rewardPoolFractionPrevious = valueOrErrorMessage(getInteger(govAddress, (pool + kRewardPoolFractionPrevious)), (((("No data on the key: " + pool) + kRewardPoolFractionPrevious) + " at address ") + toString(govAddress)))
229231 let rewardPoolCurrent = fraction(totalRewardPerBlockCurrent, rewardPoolFractionCurrent, totalVoteShare)
230232 let rewardPoolPrevious = fraction(totalRewardPerBlockCurrent, rewardPoolFractionPrevious, totalVoteShare)
231233 let rewardPoolPrevCurrent = fraction(totalRewardPerBlockPrevious, rewardPoolFractionCurrent, totalVoteShare)
232234 let rewardPoolPrevPrevious = fraction(totalRewardPerBlockPrevious, rewardPoolFractionPrevious, totalVoteShare)
233235 if (if ((rewardPoolCurrent > totalRewardPerBlockCurrent))
234236 then true
235237 else (rewardPoolPrevious > totalRewardPerBlockPrevious))
236238 then throw("rewardPoolCurrent > totalRewardPerBlockCurrent or rewardPoolPrevious > totalRewardPerBlockPrevious")
237239 else $Tuple7(rewardPoolCurrent, rewardUpdateHeight, rewardPoolPrevious, poolRewardUpdateHeight, lastEmissionUpdateHeight, rewardPoolPrevCurrent, rewardPoolPrevPrevious)
238240 }
239241
240242
241243 func getLastInterestInfo (pool) = {
242244 let farmInterest = valueOrErrorMessage(getInteger(this, (pool + kFarmLastInterest)), (("No data on the key: " + pool) + kFarmLastInterest))
243245 let boostInterest = valueOrElse(getInteger(this, (pool + kBoostLastInterest)), 0)
244246 let lastInterestHeight = valueOrElse(getInteger(this, (pool + kLastInterestHeight)), height)
245247 $Tuple3(lastInterestHeight, farmInterest, boostInterest)
246248 }
247249
248250
249251 func calcFarmRwd (pool,curTotalReward) = {
250252 let poolBoostCoef = valueOrElse(getInteger(this, (pool + kPoolBoostCoef)), defPoolBoostCoef)
251253 fraction(curTotalReward, lockBoostCoefScale, (poolBoostCoef + lockBoostCoefScale))
252254 }
253255
254256
255257 func calcBoostRwd (pool,curTotalReward) = {
256258 let poolBoostCoef = valueOrElse(getInteger(this, (pool + kPoolBoostCoef)), defPoolBoostCoef)
257259 fraction(curTotalReward, poolBoostCoef, (poolBoostCoef + lockBoostCoefScale))
258260 }
259261
260262
261263 func calcInterest (pool,lastInterestHeight,rewardUpdateHeight,poolRewardUpdateHeight,farmInterest,boostInterest,poolVoted,currentRewardPerBlock,shareTokenLocked,previousRewardPerBlock,scaleValue,toHeight) = {
262- let $t01023311418 = if (if (if ((rewardUpdateHeight > toHeight))
264+ let $t01026111446 = if (if (if ((rewardUpdateHeight > toHeight))
263265 then (rewardUpdateHeight == poolRewardUpdateHeight)
264266 else false)
265267 then true
266268 else if ((toHeight > rewardUpdateHeight))
267269 then (rewardUpdateHeight != poolRewardUpdateHeight)
268270 else false)
269271 then {
270272 let r = (previousRewardPerBlock * (toHeight - lastInterestHeight))
271273 $Tuple3(r, farmInterest, boostInterest)
272274 }
273275 else if (if (if ((toHeight > rewardUpdateHeight))
274276 then (rewardUpdateHeight == poolRewardUpdateHeight)
275277 else false)
276278 then (lastInterestHeight > rewardUpdateHeight)
277279 else false)
278280 then {
279281 let r = (currentRewardPerBlock * (toHeight - lastInterestHeight))
280282 $Tuple3(r, farmInterest, boostInterest)
281283 }
282284 else {
283285 let rwdBfrUpd = (previousRewardPerBlock * (rewardUpdateHeight - lastInterestHeight))
284286 let fBfrUp = (farmInterest + fraction(calcFarmRwd(pool, rwdBfrUpd), scaleValue, shareTokenLocked))
285287 let bBfrUp = (boostInterest + (if ((poolVoted > 0))
286288 then fraction(calcBoostRwd(pool, rwdBfrUpd), scaleValue8, poolVoted)
287289 else 0))
288290 let rwd = (currentRewardPerBlock * (toHeight - rewardUpdateHeight))
289291 $Tuple3(rwd, fBfrUp, bBfrUp)
290292 }
291- let reward = $t01023311418._1
292- let farmIntrBefore = $t01023311418._2
293- let boostIntrBefore = $t01023311418._3
293+ let reward = $t01026111446._1
294+ let farmIntrBefore = $t01026111446._2
295+ let boostIntrBefore = $t01026111446._3
294296 let newFarmInterest = (farmIntrBefore + fraction(calcFarmRwd(pool, reward), scaleValue, shareTokenLocked))
295297 let newBoostInterest = (boostIntrBefore + (if ((poolVoted > 0))
296298 then fraction(calcBoostRwd(pool, reward), scaleValue8, poolVoted)
297299 else 0))
298300 $Tuple2(newFarmInterest, newBoostInterest)
299301 }
300302
301303
302304 func claimCalc (pool,user) = {
303305 let scaleValue = calcScaleValue(SWOP, getShareAssetId(pool))
304306 let poolVoted = getPoolVoted(pool)
305307 let uPoolVoted = getUserPoolVoted(pool, user)
306308 let shareToken = getTotalShareToken(pool)
307309 let totalShareVirtual = valueOrElse(getInteger(this, (pool + kShareTokensVirtual)), shareToken)
308310 let stratBFarmInterest = valueOrElse(getInteger(this, (pool + kStratBFarmInterest)), 0)
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
311+ let $t01228412365 = getLastInterestInfo(pool)
312+ let lastInterestHeight = $t01228412365._1
313+ let farmInterest = $t01228412365._2
314+ let boostInterest = $t01228412365._3
315+ let $t01237012627 = rewardInfo(pool)
316+ let currentRewardPerBlock = $t01237012627._1
317+ let rewardUpdateHeight = $t01237012627._2
318+ let previousRewardPerBlock = $t01237012627._3
319+ let poolRewardUpdateHeight = $t01237012627._4
320+ let emissionUpdateHeight = $t01237012627._5
321+ let prevCurrentRewardPerBlock = $t01237012627._6
322+ let prevPreviousRewardPerBlock = $t01237012627._7
321323 let uFarmInterest = valueOrElse(getInteger(this, (((pool + "_") + user) + kFarmUserLastInterest)), farmInterest)
322324 let uBoostInterest = valueOrElse(getInteger(this, (((pool + "_") + user) + kBoostUserLastInterest)), if (if ((stratBFarmInterest > uFarmInterest))
323325 then (uPoolVoted > 0)
324326 else false)
325327 then 0
326328 else boostInterest)
327329 let uShareTokensStaked = valueOrElse(getInteger(this, (((pool + "_") + user) + kUserShareTokensStaked)), 0)
328330 let uShareTokensVirt = valueOrElse(getInteger(this, (((pool + "_") + user) + kUserShareTokensVirtual)), uShareTokensStaked)
329331 if ((totalShareVirtual == 0))
330332 then {
331333 let toTreasury = if ((emissionUpdateHeight > lastInterestHeight))
332334 then ((prevCurrentRewardPerBlock * (emissionUpdateHeight - lastInterestHeight)) + (currentRewardPerBlock * (height - emissionUpdateHeight)))
333335 else (currentRewardPerBlock * (height - lastInterestHeight))
334336 let teamReward = fraction(toTreasury, teamFee, 100)
335337 $Tuple5(farmInterest, boostInterest, 0, (toTreasury - teamReward), teamReward)
336338 }
337339 else {
338- let $t01364214779 = if ((emissionUpdateHeight > lastInterestHeight))
340+ let $t01367014807 = if ((emissionUpdateHeight > lastInterestHeight))
339341 then {
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
342+ let $t01408314642 = calcInterest(pool, lastInterestHeight, rewardUpdateHeight, poolRewardUpdateHeight, farmInterest, boostInterest, poolVoted, prevCurrentRewardPerBlock, totalShareVirtual, prevPreviousRewardPerBlock, scaleValue, emissionUpdateHeight)
343+ let prevNewFarmInterest = $t01408314642._1
344+ let prevNewBoostInterest = $t01408314642._2
343345 $Tuple3(prevNewFarmInterest, prevNewBoostInterest, emissionUpdateHeight)
344346 }
345347 else $Tuple3(farmInterest, boostInterest, lastInterestHeight)
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
348+ let prevFarmInterest = $t01367014807._1
349+ let prevBoostInterest = $t01367014807._2
350+ let LIHeight = $t01367014807._3
351+ let $t01481615239 = calcInterest(pool, LIHeight, rewardUpdateHeight, poolRewardUpdateHeight, prevFarmInterest, prevBoostInterest, poolVoted, currentRewardPerBlock, totalShareVirtual, previousRewardPerBlock, scaleValue, height)
352+ let newFarmInterest = $t01481615239._1
353+ let newBoostInterest = $t01481615239._2
352354 let farmRwd = fraction(uShareTokensVirt, (newFarmInterest - uFarmInterest), scaleValue)
353355 let poolBoostCoef = valueOrElse(getInteger(this, (pool + kPoolBoostCoef)), defPoolBoostCoef)
354356 let boostRwdMax = fraction(fraction(uShareTokensVirt, (newFarmInterest - max([uFarmInterest, stratBFarmInterest])), scaleValue), poolBoostCoef, lockBoostCoefScale)
355357 let curBoostRwd = fraction((newBoostInterest - uBoostInterest), uPoolVoted, scaleValue8)
356358 let boostRwd = min([boostRwdMax, curBoostRwd])
357359 let toTreasury = (boostRwdMax - boostRwd)
358360 let teamReward = fraction(toTreasury, teamFee, 100)
359361 if ((0 > toTreasury))
360362 then throw("toTreasury < 0")
361363 else $Tuple5(newFarmInterest, newBoostInterest, (farmRwd + boostRwd), (toTreasury - teamReward), teamReward)
362364 }
363365 }
364366
365367
366368 func availableClaimCalcAllByUser (pools,user) = {
367369 func calcAvailable (acc,pool) = {
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
370+ let $t01619316222 = acc
371+ let newPools = $t01619316222._1
372+ let amounts = $t01619316222._2
373+ let $t01623116284 = claimCalc(pool, user)
374+ let fi = $t01623116284._1
375+ let bi = $t01623116284._2
376+ let claimAmount = $t01623116284._3
377+ let tt = $t01623116284._4
376378 let availableFund = (userAvailableSWOP(pool, user) + claimAmount)
377379 $Tuple2((newPools :+ pool), (amounts :+ availableFund))
378380 }
379381
380382 let $l = pools
381383 let $s = size($l)
382384 let $acc0 = $Tuple2(nil, nil)
383385 func $f0_1 ($a,$i) = if (($i >= $s))
384386 then $a
385387 else calcAvailable($a, $l[$i])
386388
387389 func $f0_2 ($a,$i) = if (($i >= $s))
388390 then $a
389391 else throw("List size exceeds 60")
390392
391393 $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)
392394 }
393395
394396
395397 func canLockInFirstHarvest (pool,user,userShareTokensStaked,pmtAmount,lockType) = if ((getHeightFirstHarvest(pool) > height))
396398 then {
397399 let totalVoteAmount = valueOrElse(getInteger(votingAddress, (pool + kHarvestPoolVote)), 0)
398400 let userVoteAmount = valueOrElse(getInteger(votingAddress, (((user + "_") + pool) + kHarvestUserPoolVote)), 0)
399401 let FHShareTokenLimit = getFHShareLimitToken(addressFromStringValue(pool))
400402 let FHShareTokenUserLimit = (fraction(FHShareTokenLimit, userVoteAmount, totalVoteAmount) - userShareTokensStaked)
401403 if ((lockType > 0))
402404 then throw("You can't lock shareTokens till first harvest end.")
403405 else if ((userVoteAmount == 0))
404406 then throw("You can't lock shareTokens. You didn't vote for pool in first week.")
405407 else if ((pmtAmount >= FHShareTokenUserLimit))
406408 then (pmtAmount - FHShareTokenUserLimit)
407409 else 0
408410 }
409411 else 0
410412
411413
412414 func getLockParams (type) = {
413415 let lockParams = split(valueOrErrorMessage(getString(this, (toString(type) + kLockParams)), ("There are no key for lock type" + toString(type))), "_")
414416 $Tuple2(parseIntValue(lockParams[0]), parseIntValue(lockParams[1]))
415417 }
416418
417419
418420 func suspend (cause) = [BooleanEntry(kActive, false), StringEntry(kCause, cause)]
419421
420422
421423 func isActive () = if (if (active)
422424 then activeGlob
423425 else false)
424426 then unit
425427 else throw("DApp is inactive at this moment")
426428
427429
428430 func isAdminCall (i) = if (containsElement([adminPubKey1, adminPubKey2, adminPubKey3], i.callerPublicKey))
429431 then unit
430432 else throw("Only admin can call this function")
431433
432434
433435 func isPoolCall (i,pool) = if (if ((toString(i.caller) == pool))
434436 then true
435437 else (i.caller == cpmmContract))
436438 then unit
437439 else throw("Only pool can call this function")
438440
439441
440442 func getDeprecatedPool (pool) = valueOrElse(getBoolean(oracle, (kDeprecatedPool + pool)), false)
441443
442444
443445 func isDeprecatedPool (pool) = if (!(getDeprecatedPool(pool)))
444446 then unit
445447 else throw("Pool is deprecated. Only unlock action allowed.")
446448
447449
448450 func isSelfCall (i) = if ((i.caller == this))
449451 then unit
450452 else throw("Only contract itself can call this function")
451453
452454
453455 func calcLockShareTokens (i,caller,pool,lockType) = {
454456 let shareAssetId = getShareAssetId(pool)
455457 let user = toString(caller)
456458 let totalShare = getTotalShareToken(pool)
457459 let totalShareVirtual = valueOrElse(getInteger(this, (pool + kShareTokensVirtual)), totalShare)
458460 let userStakedAmount = valueOrElse(getInteger(this, (((pool + "_") + user) + kUserShareTokensStaked)), 0)
459461 let userLockedHeigt = valueOrElse(getInteger(this, (((pool + "_") + user) + kUserShareTokensLockedHeight)), 0)
460462 let userLockedAmount = valueOrElse(getInteger(this, (((pool + "_") + user) + kUserShareTokensLocked)), 0)
461463 let userAmountVirtual = valueOrElse(getInteger(this, (((pool + "_") + user) + kUserShareTokensVirtual)), userStakedAmount)
462464 let totalUserShareTokens = ((userStakedAmount + userLockedAmount) + i.payments[0].amount)
463- let $t01938019432 = getLockParams(lockType)
464- let lockPeriod = $t01938019432._1
465- let lockCoef = $t01938019432._2
465+ let $t01940819460 = getLockParams(lockType)
466+ let lockPeriod = $t01940819460._1
467+ let lockCoef = $t01940819460._2
466468 let lockWavesFee = getIntegerValue(this, kLockWavesFee)
467469 if ((i.payments[0].assetId != shareAssetId))
468470 then throw("Wrong sharetoken in payment")
469471 else if ((0 >= i.payments[0].amount))
470472 then throw("Payment amount must be greater than 0")
471473 else if ((0 > lockType))
472474 then throw("lockType must be >= 0")
473475 else {
474476 let shareTokensChangeOnFH = canLockInFirstHarvest(pool, user, userStakedAmount, i.payments[0].amount, lockType)
475477 if ((shareTokensChangeOnFH == shareTokensChangeOnFH))
476478 then {
477- let $t01985921793 = if ((lockType == 0))
479+ let $t01988721821 = if ((lockType == 0))
478480 then {
479481 let userAmountVirtualNew = ((userAmountVirtual + i.payments[0].amount) - shareTokensChangeOnFH)
480482 $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))
481483 }
482484 else if (if ((userLockedHeigt == 0))
483485 then if (if ((2 > size(i.payments)))
484486 then true
485487 else (i.payments[1].assetId != unit))
486488 then true
487489 else (lockWavesFee > i.payments[1].amount)
488490 else false)
489491 then throw((("You need to pay additional waves comission " + toString(lockWavesFee)) + "WAVES"))
490492 else if ((userLockedHeigt > (height + lockPeriod)))
491493 then throw("You cannot lock sharetokens for a period less than what you have already locked")
492494 else {
493495 let userLockedAmountNew = (userLockedAmount + i.payments[0].amount)
494496 let userLockedHeigtNew = (height + lockPeriod)
495497 let userAmountVirtualNew = (fraction(userLockedAmountNew, lockCoef, lockBoostCoefScale) + userStakedAmount)
496498 $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))
497499 }
498- let lockEntries = $t01985921793._1
499- let totalShareNew = $t01985921793._2
500+ let lockEntries = $t01988721821._1
501+ let totalShareNew = $t01988721821._2
500502 if ((totalShareNew > accountBalance(shareAssetId)))
501503 then throw("Balance of share-token is lower than totalAmount")
502504 else {
503- let $t02191822012 = claimCalc(pool, user)
504- let farmInterest = $t02191822012._1
505- let boostInterest = $t02191822012._2
506- let claimAmount = $t02191822012._3
507- let toTreasure = $t02191822012._4
508- let teamReward = $t02191822012._5
505+ let $t02194622040 = claimCalc(pool, user)
506+ let farmInterest = $t02194622040._1
507+ let boostInterest = $t02194622040._2
508+ let claimAmount = $t02194622040._3
509+ let toTreasure = $t02194622040._4
510+ let teamReward = $t02194622040._5
509511 let availableFundsNew = (userAvailableSWOP(pool, user) + claimAmount)
510512 let uplp = if ((getString(Address(fromBase58String(pool)), "version") == "3.0.0"))
511513 then invoke(lpFarmingAddress, "updateUserInterest", [user, pool, totalUserShareTokens], nil)
512514 else 0
513515 if ((uplp == uplp))
514516 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)
515517 else throw("Strict value is not equal to itself.")
516518 }
517519 }
518520 else throw("Strict value is not equal to itself.")
519521 }
520522 }
521523
522524
523525 func calcWithdrawShareTokens (i,caller,pool,shareTokensWithdrawAmount) = {
524526 let inv = if (getDeprecatedPool(pool))
525527 then invoke(this, "unlockUserLockDeprecated", [pool, toString(caller)], nil)
526528 else 0
527529 if ((inv == inv))
528530 then {
529531 let shareTokensId = fromBase58String(getStringValue(value(addressFromString(pool)), "share_asset_id"))
530532 let user = toString(caller)
531- let $t02338023474 = claimCalc(pool, user)
532- let farmInterest = $t02338023474._1
533- let boostInterest = $t02338023474._2
534- let claimAmount = $t02338023474._3
535- let toTreasure = $t02338023474._4
536- let teamReward = $t02338023474._5
533+ let $t02340823502 = claimCalc(pool, user)
534+ let farmInterest = $t02340823502._1
535+ let boostInterest = $t02340823502._2
536+ let claimAmount = $t02340823502._3
537+ let toTreasure = $t02340823502._4
538+ let teamReward = $t02340823502._5
537539 let userStakedAmount = valueOrElse(getInteger(this, (((pool + "_") + user) + kUserShareTokensStaked)), 0)
538540 let userLockedAmount = valueOrElse(getInteger(this, (((pool + "_") + user) + kUserShareTokensLocked)), 0)
539541 let userAmountVirtual = valueOrElse(getInteger(this, (((pool + "_") + user) + kUserShareTokensVirtual)), userStakedAmount)
540542 let userStakedAmountNew = (userStakedAmount - shareTokensWithdrawAmount)
541543 let availableFundsNew = (userAvailableSWOP(pool, user) + claimAmount)
542544 let totalShareAmount = getTotalShareToken(pool)
543545 let totalShareVirtual = valueOrElse(getInteger(this, (pool + kShareTokensVirtual)), totalShareAmount)
544546 let totalShareAmountNew = (totalShareAmount - shareTokensWithdrawAmount)
545547 let totalShareVirtualNew = (totalShareVirtual - shareTokensWithdrawAmount)
546548 let userAmountVirtualNew = (userAmountVirtual - shareTokensWithdrawAmount)
547549 if ((shareTokensWithdrawAmount > userStakedAmount))
548550 then throw("Withdraw amount more then user locked amount")
549551 else if ((accountBalance(shareTokensId) > totalShareAmount))
550552 then throw("Balance of share-token is lower than totalAmount")
551553 else {
552554 let uplp = if ((getString(Address(fromBase58String(pool)), "version") == "3.0.0"))
553555 then invoke(lpFarmingAddress, "updateUserInterest", [user, pool, (userStakedAmount + userLockedAmount)], nil)
554556 else 0
555557 if ((uplp == uplp))
556558 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 + teamReward), true), ScriptTransfer(farmingTreasureAddr, toTreasure, SWOP), ScriptTransfer(teamBoxAddress, teamReward, SWOP), ScriptTransfer(i.caller, shareTokensWithdrawAmount, shareTokensId)]
557559 else throw("Strict value is not equal to itself.")
558560 }
559561 }
560562 else throw("Strict value is not equal to itself.")
561563 }
562564
563565
564566 func calcClaim (i,pool,caller) = {
565567 let shareTokensId = fromBase58String(getStringValue(value(addressFromString(pool)), "share_asset_id"))
566568 let user = toString(caller)
567569 let shareTokenLocked = getTotalShareToken(pool)
568- let $t02605726151 = claimCalc(pool, user)
569- let farmInterest = $t02605726151._1
570- let boostInterest = $t02605726151._2
571- let claimAmount = $t02605726151._3
572- let toTreasure = $t02605726151._4
573- let teamReward = $t02605726151._5
570+ let $t02608526179 = claimCalc(pool, user)
571+ let farmInterest = $t02608526179._1
572+ let boostInterest = $t02608526179._2
573+ let claimAmount = $t02608526179._3
574+ let toTreasure = $t02608526179._4
575+ let teamReward = $t02608526179._5
574576 let availableFund = (userAvailableSWOP(pool, user) + claimAmount)
575577 if ((accountBalance(shareTokensId) > shareTokenLocked))
576578 then throw("Balance of share-token is lower than totalAmount")
577579 else {
578580 let uTrans = if ((i.caller != this))
579581 then [ScriptTransfer(i.caller, availableFund, SWOP)]
580582 else nil
581583 $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)
582584 }
583585 }
584586
585587
586588 func unlockUserLockCalc (i,pool,user) = {
587589 let totalShareVirtual = getIntegerValue(this, (pool + kShareTokensVirtual))
588590 let userStakedAmount = valueOrElse(getInteger(this, (((pool + "_") + user) + kUserShareTokensStaked)), 0)
589591 let userLockedAmount = valueOrElse(getInteger(this, (((pool + "_") + user) + kUserShareTokensLocked)), 0)
590592 let userAmountVirtual = valueOrElse(getInteger(this, (((pool + "_") + user) + kUserShareTokensVirtual)), userStakedAmount)
591593 let userStakedAmountNew = (userStakedAmount + userLockedAmount)
592- let $t02762527719 = claimCalc(pool, user)
593- let farmInterest = $t02762527719._1
594- let boostInterest = $t02762527719._2
595- let claimAmount = $t02762527719._3
596- let toTreasure = $t02762527719._4
597- let teamReward = $t02762527719._5
594+ let $t02765327747 = claimCalc(pool, user)
595+ let farmInterest = $t02765327747._1
596+ let boostInterest = $t02765327747._2
597+ let claimAmount = $t02765327747._3
598+ let toTreasure = $t02765327747._4
599+ let teamReward = $t02765327747._5
598600 let availableFundsNew = (userAvailableSWOP(pool, user) + claimAmount)
599601 [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)]
600602 }
601603
602604
603605 @Callable(i)
604606 func init (earlyLP) = if (isDefined(getString(this, kSWOPid)))
605607 then throw("SWOP already initialized")
606608 else {
607609 let initAmount = 100000000000000
608610 let SWOPissue = Issue("SWOP", "SWOP protocol token", initAmount, 8, true)
609611 let SWOPid = calculateAssetId(SWOPissue)
610612 [BooleanEntry(kActive, true), Issue("SWOP", "SWOP protocol token", initAmount, 8, true), StringEntry(kSWOPid, toBase58String(SWOPid))]
611613 }
612614
613615
614616
615617 @Callable(i)
616-func initPoolShareFarming (pool) = valueOrElse(isAdminCall(i), [IntegerEntry((pool + kShareTotalShareTokens), 0), IntegerEntry((pool + kFarmLastInterest), 0), IntegerEntry((pool + kBoostLastInterest), 0), IntegerEntry((pool + kLastInterestHeight), height)])
618+func initPoolShareFarming (pool) = valueOrElse(isAdminCall(i), if (!(isDefined(getString(oracle, (kPoolInOracle + pool)))))
619+ then throw("Pool is not in oracle")
620+ else if (isDefined(getInteger(this, (pool + kShareTotalShareTokens))))
621+ then throw("Pool already inited")
622+ else [IntegerEntry((pool + kShareTotalShareTokens), 0), IntegerEntry((pool + kFarmLastInterest), 0), IntegerEntry((pool + kBoostLastInterest), 0), IntegerEntry((pool + kLastInterestHeight), height)])
617623
618624
619625
620626 @Callable(i)
621627 func updatePoolInterest (pool) = valueOrElse(isActive(), if ((i.caller != govAddress))
622628 then throw("Only Governance can call this function")
623629 else {
624630 let user = toString(addressFromPublicKey(adminInvokePubKey))
625- let $t02995630030 = claimCalc(pool, user)
626- let farmInterest = $t02995630030._1
627- let boostInterest = $t02995630030._2
628- let boostLPinterest = $t02995630030._3
631+ let $t03019730271 = claimCalc(pool, user)
632+ let farmInterest = $t03019730271._1
633+ let boostInterest = $t03019730271._2
634+ let boostLPinterest = $t03019730271._3
629635 [IntegerEntry((pool + kFarmLastInterest), farmInterest), IntegerEntry((pool + kBoostLastInterest), boostInterest), IntegerEntry((pool + kLastInterestHeight), height)]
630636 })
631637
632638
633639
634640 @Callable(i)
635641 func lockShareTokens (pool,lockType) = valueOrElse(isDeprecatedPool(pool), valueOrElse(isActive(), calcLockShareTokens(i, i.caller, pool, lockType)))
636642
637643
638644
639645 @Callable(i)
640646 func lockShareTokensFromPool (callerBytes,pool,lockType) = valueOrElse(isDeprecatedPool(pool), valueOrElse(isActive(), valueOrElse(isPoolCall(i, pool), calcLockShareTokens(i, Address(callerBytes), pool, lockType))))
641647
642648
643649
644650 @Callable(i)
645651 func lockStakedShareTokens (pool,lockType,lockAmount) = valueOrElse(isDeprecatedPool(pool), valueOrElse(isActive(), {
646652 let shareAssetId = getShareAssetId(pool)
647653 let user = toString(i.caller)
648654 let totalShare = getTotalShareToken(pool)
649655 let totalShareVirtual = valueOrElse(getInteger(this, (pool + kShareTokensVirtual)), totalShare)
650656 let userStakedAmount = valueOrElse(getInteger(this, (((pool + "_") + user) + kUserShareTokensStaked)), 0)
651657 let userLockedHeigt = valueOrElse(getInteger(this, (((pool + "_") + user) + kUserShareTokensLockedHeight)), 0)
652658 let userLockedAmount = valueOrElse(getInteger(this, (((pool + "_") + user) + kUserShareTokensLocked)), 0)
653659 let userAmountVirtual = valueOrElse(getInteger(this, (((pool + "_") + user) + kUserShareTokensVirtual)), userStakedAmount)
654660 let totalUserShareTokens = (userStakedAmount + userLockedAmount)
655- let $t03165931711 = getLockParams(lockType)
656- let lockPeriod = $t03165931711._1
657- let lockCoef = $t03165931711._2
661+ let $t03190031952 = getLockParams(lockType)
662+ let lockPeriod = $t03190031952._1
663+ let lockCoef = $t03190031952._2
658664 let lockWavesFee = getIntegerValue(this, kLockWavesFee)
659665 if ((getHeightFirstHarvest(pool) > height))
660666 then throw("You can't lock shareTokens till first harvest end.")
661667 else if ((0 >= lockType))
662668 then throw("lockType must be > 0")
663669 else if ((lockAmount > userStakedAmount))
664670 then throw(("You can't lock more than " + toString(userStakedAmount)))
665671 else if ((accountBalance(shareAssetId) > totalShare))
666672 then throw("Balance of share-token is lower than totalAmount")
667673 else if (if ((userLockedHeigt == 0))
668674 then if (if ((1 > size(i.payments)))
669675 then true
670676 else (i.payments[0].assetId != unit))
671677 then true
672678 else (lockWavesFee > i.payments[0].amount)
673679 else false)
674680 then throw((("You need to pay additional waves comission " + toString(lockWavesFee)) + "WAVES"))
675681 else if (if ((userLockedHeigt == 0))
676682 then (0 >= lockAmount)
677683 else false)
678684 then throw("lockAmount must be greater than 0")
679685 else if ((0 > lockAmount))
680686 then throw("lockAmount must be positive")
681687 else if ((userLockedHeigt > (height + lockPeriod)))
682688 then throw("You cannot lock sharetokens for a period less than what you have already locked")
683689 else {
684690 let userLockedAmountNew = (userLockedAmount + lockAmount)
685691 let userStakedAmountNew = (userStakedAmount - lockAmount)
686692 let userLockedHeigtNew = (height + lockPeriod)
687693 let userAmountVirtualNew = (fraction(userLockedAmountNew, lockCoef, lockBoostCoefScale) + userStakedAmountNew)
688- let $t03305733151 = claimCalc(pool, user)
689- let farmInterest = $t03305733151._1
690- let boostInterest = $t03305733151._2
691- let claimAmount = $t03305733151._3
692- let toTreasure = $t03305733151._4
693- let teamReward = $t03305733151._5
694+ let $t03329833392 = claimCalc(pool, user)
695+ let farmInterest = $t03329833392._1
696+ let boostInterest = $t03329833392._2
697+ let claimAmount = $t03329833392._3
698+ let toTreasure = $t03329833392._4
699+ let teamReward = $t03329833392._5
694700 let availableFundsNew = (userAvailableSWOP(pool, user) + claimAmount)
695701 [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)]
696702 }
697703 }))
698704
699705
700706
701707 @Callable(i)
702708 func unlockUserLock (pool,user) = valueOrElse(isActive(), {
703709 let userLockedHeigt = valueOrErrorMessage(getInteger(this, (((pool + "_") + user) + kUserShareTokensLockedHeight)), (((("There is no pool " + pool) + " or user ") + user) + "with lock"))
704710 if ((userLockedHeigt > height))
705711 then throw(("You can't unlock sharetokens till " + toString(userLockedHeigt)))
706712 else (unlockUserLockCalc(i, pool, user) ++ [ScriptTransfer(i.caller, getIntegerValue(this, kLockWavesFee), unit)])
707713 })
708714
709715
710716
711717 @Callable(i)
712718 func unlockUserLockDeprecated (pool,user) = valueOrElse(isActive(), valueOrElse(isSelfCall(i), if (!(getDeprecatedPool(pool)))
713719 then throw("Pool must be deprecated")
714720 else if (isDefined(getInteger(this, (((pool + "_") + user) + kUserShareTokensLockedHeight))))
715721 then (unlockUserLockCalc(i, pool, user) ++ [ScriptTransfer(moneyBoxAddress, getIntegerValue(this, kLockWavesFee), unit)])
716722 else nil))
717723
718724
719725
720726 @Callable(i)
721727 func withdrawShareTokens (pool,shareTokensWithdrawAmount) = valueOrElse(isActive(), calcWithdrawShareTokens(i, i.caller, pool, shareTokensWithdrawAmount))
722728
723729
724730
725731 @Callable(i)
726732 func withdrawShareTokensFromPool (callerBytes,pool,shareTokensWithdrawAmount) = valueOrElse(isActive(), valueOrElse(isPoolCall(i, pool), calcWithdrawShareTokens(i, Address(callerBytes), pool, shareTokensWithdrawAmount)))
727733
728734
729735
730736 @Callable(i)
731737 func claim (pool) = valueOrElse(isActive(), {
732738 let r = calcClaim(i, pool, i.caller)
733739 if ((r._2 == 0))
734740 then throw("You have 0 available SWOP")
735741 else r
736742 })
737743
738744
739745
740746 @Callable(i)
741747 func claimInternal (pool,caller) = valueOrElse(isActive(), valueOrElse(isSelfCall(i), calcClaim(i, pool, Address(caller))))
742748
743749
744750
745751 @Callable(i)
746752 func claimAndStake (pool) = valueOrElse(isActive(), {
747753 let claimAmount = {
748754 let @ = invoke(this, "claimInternal", [pool, i.caller.bytes], nil)
749755 if ($isInstanceOf(@, "Int"))
750756 then @
751757 else throw(($getType(@) + " couldn't be cast to Int"))
752758 }
753759 if ((claimAmount == claimAmount))
754760 then if ((claimAmount == 0))
755761 then throw("You have 0 available SWOP")
756762 else {
757763 let stakeToGov = invoke(govAddress, "lockSWOPFromFarming", nil, [AttachedPayment(SWOP, claimAmount)])
758764 if ((stakeToGov == stakeToGov))
759765 then nil
760766 else throw("Strict value is not equal to itself.")
761767 }
762768 else throw("Strict value is not equal to itself.")
763769 })
764770
765771
766772
767773 @Callable(i)
768774 func claimAll (pools) = valueOrElse(isActive(), {
769775 func claimInv (claimTotal,pool) = {
770776 let claimAmount = {
771777 let @ = invoke(this, "claimInternal", [pool, i.caller.bytes], nil)
772778 if ($isInstanceOf(@, "Int"))
773779 then @
774780 else throw(($getType(@) + " couldn't be cast to Int"))
775781 }
776782 if ((claimAmount == claimAmount))
777783 then (claimTotal + claimAmount)
778784 else throw("Strict value is not equal to itself.")
779785 }
780786
781787 let claimTotal = {
782788 let $l = pools
783789 let $s = size($l)
784790 let $acc0 = 0
785791 func $f0_1 ($a,$i) = if (($i >= $s))
786792 then $a
787793 else claimInv($a, $l[$i])
788794
789795 func $f0_2 ($a,$i) = if (($i >= $s))
790796 then $a
791797 else throw("List size exceeds 60")
792798
793799 $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)
794800 }
795801 if ((claimTotal == 0))
796802 then throw("You have 0 available SWOP")
797803 else [ScriptTransfer(i.caller, claimTotal, SWOP)]
798804 })
799805
800806
801807
802808 @Callable(i)
803809 func claimAllAndStake (pools) = valueOrElse(isActive(), {
804810 func claimInv (claimTotal,pool) = {
805811 let claimAmount = {
806812 let @ = invoke(this, "claimInternal", [pool, i.caller.bytes], nil)
807813 if ($isInstanceOf(@, "Int"))
808814 then @
809815 else throw(($getType(@) + " couldn't be cast to Int"))
810816 }
811817 if ((claimAmount == claimAmount))
812818 then (claimTotal + claimAmount)
813819 else throw("Strict value is not equal to itself.")
814820 }
815821
816822 let claimTotal = {
817823 let $l = pools
818824 let $s = size($l)
819825 let $acc0 = 0
820826 func $f0_1 ($a,$i) = if (($i >= $s))
821827 then $a
822828 else claimInv($a, $l[$i])
823829
824830 func $f0_2 ($a,$i) = if (($i >= $s))
825831 then $a
826832 else throw("List size exceeds 60")
827833
828834 $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)
829835 }
830836 if ((claimTotal == 0))
831837 then throw("You have 0 available SWOP")
832838 else {
833839 let stakeToGov = invoke(govAddress, "lockSWOPFromFarming", nil, [AttachedPayment(SWOP, claimTotal)])
834840 if ((stakeToGov == stakeToGov))
835841 then nil
836842 else throw("Strict value is not equal to itself.")
837843 }
838844 })
839845
840846
841847
842848 @Callable(i)
843849 func updateUserBoostInterest (pool,user) = valueOrElse(isActive(), if ((i.caller != votingAddress))
844850 then throw("Only voiting can call this function")
845851 else {
846- let $t03797538069 = claimCalc(pool, user)
847- let farmInterest = $t03797538069._1
848- let boostInterest = $t03797538069._2
849- let claimAmount = $t03797538069._3
850- let toTreasure = $t03797538069._4
851- let teamReward = $t03797538069._5
852+ let $t03821638310 = claimCalc(pool, user)
853+ let farmInterest = $t03821638310._1
854+ let boostInterest = $t03821638310._2
855+ let claimAmount = $t03821638310._3
856+ let toTreasure = $t03821638310._4
857+ let teamReward = $t03821638310._5
852858 let availableFundsNew = (userAvailableSWOP(pool, user) + claimAmount)
853859 [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)]
854860 })
855861
856862
857863
858864 @Callable(i)
859865 func shutdown () = valueOrElse(isAdminCall(i), if (!(active))
860866 then throw(("DApp is already suspended. Cause: " + valueOrElse(getString(this, kCause), "the cause wasn't specified")))
861867 else suspend("Paused by admin"))
862868
863869
864870
865871 @Callable(i)
866872 func activate () = valueOrElse(isAdminCall(i), if (active)
867873 then throw("DApp is already active")
868874 else [BooleanEntry(kActive, true), DeleteEntry(kCause)])
869875
870876
871877 @Verifier(tx)
872878 func verify () = match tx {
873879 case _ =>
874880 let adminPubKey1Signed = if (sigVerify(tx.bodyBytes, tx.proofs[0], adminPubKey1))
875881 then 1
876882 else 0
877883 let adminPubKey2Signed = if (sigVerify(tx.bodyBytes, tx.proofs[1], adminPubKey2))
878884 then 1
879885 else 0
880886 let adminPubKey3Signed = if (sigVerify(tx.bodyBytes, tx.proofs[2], adminPubKey3))
881887 then 1
882888 else 0
883889 (((adminPubKey1Signed + adminPubKey2Signed) + adminPubKey3Signed) >= 2)
884890 }
885891

github/deemru/w8io/026f985 
134.09 ms