tx · DCAx8MDDkdNncZda2euzyMuTYYQTy6YkZ46XVSYBjZft

3MsXpzisJAwnzUr7XrEoW1BZo4U6rw4tsYK:  -0.14000000 Waves

2022.10.20 15:43 [2280731] smart account 3MsXpzisJAwnzUr7XrEoW1BZo4U6rw4tsYK > SELF 0.00000000 Waves

{ "type": 13, "id": "DCAx8MDDkdNncZda2euzyMuTYYQTy6YkZ46XVSYBjZft", "fee": 14000000, "feeAssetId": null, "timestamp": 1666269788149, "version": 2, "chainId": 84, "sender": "3MsXpzisJAwnzUr7XrEoW1BZo4U6rw4tsYK", "senderPublicKey": "FFdBua5rzzMkZebvsvmN7sAdU7XhFK8QNJ3hiwwxAYRA", "proofs": [ "4Z3t8Bo1sB1B9FxpyW7xfDPg4VvpVLiSTSDKYpTCSfSGpodoSLnyaCYjSg7DWFTzSqhJqFyhZNPmiVKzJ5ZSKvAc", "3g3a3jL3p5T1kro5Ly518xzKH33pbDHsEvjjiMyDQgaw2BvpH3pXJQV9e8SMXMjjCM3p5VhHZPW174Yjy913GkeV" ], "script": "base64:BgJICAISAwoBCBIDCgEIEgMKAQgSBAoCCAESBQoDCAEBEgQKAggIEgQKAggBEgMKAQgSAwoBCBIDCgEYEgMKARgSBAoCCAgSABIAWgAHa0FjdGl2ZQIGYWN0aXZlAAtrQWN0aXZlR2xvYgIUYWN0aXZlX2FsbF9jb250cmFjdHMABmtDYXVzZQIOc2h1dGRvd25fY2F1c2UAGmtSZXdhcmRQb29sRnJhY3Rpb25DdXJyZW50Ah1fY3VycmVudF9wb29sX2ZyYWN0aW9uX3Jld2FyZAAba1Jld2FyZFBvb2xGcmFjdGlvblByZXZpb3VzAh5fcHJldmlvdXNfcG9vbF9mcmFjdGlvbl9yZXdhcmQAE2tIZWlnaHRQb29sRnJhY3Rpb24CGl9wb29sX3Jld2FyZF91cGRhdGVfaGVpZ2h0ABtrVG90YWxSZXdhcmRQZXJCbG9ja0N1cnJlbnQCHnRvdGFsX3Jld2FyZF9wZXJfYmxvY2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ktleTEAAQAABBJhZG1pblB1YktleTJTaWduZWQDCQD0AwMIBQJ0eAlib2R5Qnl0ZXMJAJEDAggFAnR4BnByb29mcwABBQxhZG1pblB1YktleTIAAQAABBJhZG1pblB1YktleTNTaWduZWQDCQD0AwMIBQJ0eAlib2R5Qnl0ZXMJAJEDAggFAnR4BnByb29mcwACBQxhZG1pblB1YktleTMAAQAACQBnAgkAZAIJAGQCBRJhZG1pblB1YktleTFTaWduZWQFEmFkbWluUHViS2V5MlNpZ25lZAUSYWRtaW5QdWJLZXkzU2lnbmVkAAJSFXEV", "height": 2280731, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: Yat37uPdCqfD1maLiPe6WR4HQcVLmeyMY48afutrdGq Next: HM8uwcxPrnYjhbFrMvReGv956yPcSVeQQ5mh2YWT1EEP Diff:
OldNewDifferences
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let kActive = "active"
5+
6+let kActiveGlob = "active_all_contracts"
57
68 let kCause = "shutdown_cause"
79
9193
9294 let kLPFarmingAddress = "lp_farming"
9395
94-let kAirdropMoneyBoxAddr = "airdrop_fee_money_box"
96+let kFarmingTreasureAddr = "farming_treasure"
9597
9698 let oracle = Address(base58'3MvVBtsXroQpy1tsPw21TU2ET9A8WfmrNjz')
9799
125127
126128 let lpFarmingAddress = Address(getBase58FromOracle(kLPFarmingAddress))
127129
128-let airdropMoneyBoxAddr = Address(getBase58FromOracle(kAirdropMoneyBoxAddr))
130+let farmingTreasureAddr = Address(getBase58FromOracle(kFarmingTreasureAddr))
129131
130132 let basePeriod = valueOrErrorMessage(getInteger(votingAddress, kBasePeriod), "Empty kBasePeriod")
131133
136138 let currPeriod = (basePeriod + ((height - startHeight) / periodLength))
137139
138140 let active = getBooleanValue(this, kActive)
141+
142+let activeGlob = valueOrElse(getBoolean(oracle, kActiveGlob), true)
139143
140144 let SwopYearEmission = getIntegerValue(this, kSwopYearEmission)
141145
313317 let uPoolVoted = getUserPoolVoted(pool, user)
314318 let shareTokenStaked = getTotalShareTokenStaked(pool)
315319 let totalShareVirtual = valueOrElse(getInteger(this, (pool + kShareTokensVirtual)), shareTokenStaked)
316- let $t01420114299 = getLastInterestInfo(pool)
317- let lastInterestHeight = $t01420114299._1
318- let farmInterest = $t01420114299._2
319- let boostInterest = $t01420114299._3
320- let boostLPInterest = $t01420114299._4
321- let $t01430414418 = rewardInfo(pool)
322- let currentRewardPerBlock = $t01430414418._1
323- let rewardUpdateHeight = $t01430414418._2
324- let previousRewardPerBlock = $t01430414418._3
325- let poolRewardUpdateHeight = $t01430414418._4
320+ let $t01430314401 = getLastInterestInfo(pool)
321+ let lastInterestHeight = $t01430314401._1
322+ let farmInterest = $t01430314401._2
323+ let boostInterest = $t01430314401._3
324+ let boostLPInterest = $t01430314401._4
325+ let $t01440614520 = rewardInfo(pool)
326+ let currentRewardPerBlock = $t01440614520._1
327+ let rewardUpdateHeight = $t01440614520._2
328+ let previousRewardPerBlock = $t01440614520._3
329+ let poolRewardUpdateHeight = $t01440614520._4
326330 let uFarmInterest = valueOrElse(getInteger(this, (((pool + "_") + user) + kFarmUserLastInterest)), farmInterest)
327331 let uBoostInterest = valueOrElse(getInteger(this, (((pool + "_") + user) + kBoostUserLastInterest)), boostInterest)
328332 let uBoostLPInterest = valueOrElse(getInteger(this, (((pool + "_") + user) + kBoostLPUserLastInterest)), boostLPInterest)
329333 let uShareTokensStaked = valueOrElse(getInteger(this, (((pool + "_") + user) + kUserShareTokensStaked)), 0)
330334 let uShareTokensVirt = valueOrElse(getInteger(this, (((pool + "_") + user) + kUserShareTokensVirtual)), uShareTokensStaked)
331- let $t01498615378 = calcInterest(pool, lastInterestHeight, rewardUpdateHeight, poolRewardUpdateHeight, farmInterest, boostInterest, poolVoted, boostLPInterest, currentRewardPerBlock, shareTokenStaked, previousRewardPerBlock, scaleValue)
332- let newFarmInterest = $t01498615378._1
333- let newBoostInterest = $t01498615378._2
334- let newBoostLPInterest = $t01498615378._3
335+ let $t01508815480 = calcInterest(pool, lastInterestHeight, rewardUpdateHeight, poolRewardUpdateHeight, farmInterest, boostInterest, poolVoted, boostLPInterest, currentRewardPerBlock, shareTokenStaked, previousRewardPerBlock, scaleValue)
336+ let newFarmInterest = $t01508815480._1
337+ let newBoostInterest = $t01508815480._2
338+ let newBoostLPInterest = $t01508815480._3
335339 let claimFarming = fraction(uShareTokensVirt, (newFarmInterest - uFarmInterest), scaleValue)
336340 let claimBoostingMax = fraction(uPoolVoted, (newBoostInterest - uBoostInterest), scaleValue)
337341 let claimBoosting = fraction((uShareTokensVirt * uPoolVoted), (newBoostLPInterest - uBoostLPInterest), scaleValue)
366370 func suspend (cause) = [BooleanEntry(kActive, false), StringEntry(kCause, cause)]
367371
368372
369-func isActive () = if (active)
373+func isActive () = if (if (active)
374+ then activeGlob
375+ else false)
370376 then unit
371377 else throw("DApp is inactive at this moment")
372378
398404 then throw("Only Governance can call this function")
399405 else {
400406 let user = toString(addressFromPublicKey(adminInvokePubKey))
401- let $t01838118455 = claimCalc(pool, user)
402- let farmInterest = $t01838118455._1
403- let boostInterest = $t01838118455._2
404- let boostLPinterest = $t01838118455._3
407+ let $t01849718571 = claimCalc(pool, user)
408+ let farmInterest = $t01849718571._1
409+ let boostInterest = $t01849718571._2
410+ let boostLPinterest = $t01849718571._3
405411 [IntegerEntry((pool + kFarmLastInterest), farmInterest), IntegerEntry((pool + kBoostLastInterest), boostInterest), IntegerEntry((pool + kBoostLPLastInterest), boostLPinterest), IntegerEntry((pool + kLastInterestHeight), height)]
406412 })
407413
418424 let userLockedAmount = valueOrElse(getInteger(this, (((pool + "_") + user) + kUserShareTokensLocked)), 0)
419425 let userAmountVirtual = valueOrElse(getInteger(this, (((pool + "_") + user) + kUserShareTokensVirtual)), userStakedAmount)
420426 let totalUserShareTokens = ((userStakedAmount + userLockedAmount) + i.payments[0].amount)
421- let $t01958219634 = getLockParams(lockType)
422- let lockPeriod = $t01958219634._1
423- let lockCoef = $t01958219634._2
427+ let $t01969819750 = getLockParams(lockType)
428+ let lockPeriod = $t01969819750._1
429+ let lockCoef = $t01969819750._2
424430 let lockWavesFee = getIntegerValue(this, kLockWavesFee)
425431 if ((i.payments[0].assetId != shareAssetId))
426432 then throw("Wrong sharetoken in payment")
432438 let shareTokensChangeOnFH = canLockInFirstHarvest(pool, user, userStakedAmount, i.payments[0].amount, lockType)
433439 if ((shareTokensChangeOnFH == shareTokensChangeOnFH))
434440 then {
435- let $t02006121990 = if ((lockType == 0))
441+ let $t02017722106 = if ((lockType == 0))
436442 then {
437443 let userAmountVirtualNew = ((userAmountVirtual + i.payments[0].amount) - shareTokensChangeOnFH)
438444 $Tuple3([IntegerEntry((((pool + "_") + user) + kUserShareTokensStaked), ((userStakedAmount + i.payments[0].amount) - shareTokensChangeOnFH)), IntegerEntry((pool + kShareTokensVirtual), ((totalShareVirtual + i.payments[0].amount) - shareTokensChangeOnFH)), ScriptTransfer(i.originCaller, shareTokensChangeOnFH, i.payments[0].assetId)], userAmountVirtualNew, ((totalShareStaked + i.payments[0].amount) - shareTokensChangeOnFH))
453459 let userAmountVirtualNew = (fraction(userLockedAmountNew, lockCoef, lockBoostCoefScale) + userStakedAmount)
454460 $Tuple3([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))], userAmountVirtualNew, (totalShareStaked + i.payments[0].amount))
455461 }
456- let lockEntries = $t02006121990._1
457- let userAmountVirtualNew = $t02006121990._2
458- let totalShareStakedNew = $t02006121990._3
462+ let lockEntries = $t02017722106._1
463+ let userAmountVirtualNew = $t02017722106._2
464+ let totalShareStakedNew = $t02017722106._3
459465 if ((accountBalance(shareAssetId) > totalShareStakedNew))
460466 then throw("Balance of share-token is lower than totalAmount")
461467 else {
462- let $t02212122220 = claimCalc(pool, user)
463- let farmInterest = $t02212122220._1
464- let boostInterest = $t02212122220._2
465- let boostLPinterest = $t02212122220._3
466- let claimAmount = $t02212122220._4
467- let toTreasure = $t02212122220._5
468+ let $t02223722336 = claimCalc(pool, user)
469+ let farmInterest = $t02223722336._1
470+ let boostInterest = $t02223722336._2
471+ let boostLPinterest = $t02223722336._3
472+ let claimAmount = $t02223722336._4
473+ let toTreasure = $t02223722336._5
468474 let availableFundsNew = (userAvailableSWOP(pool, i.originCaller) + claimAmount)
469475 let uplp = if ((getString(Address(fromBase58String(pool)), "version") == "3.0.0"))
470476 then invoke(lpFarmingAddress, "updateUserInterest", [pool, totalUserShareTokens], nil)
471477 else 0
472478 if ((uplp == uplp))
473- then ([IntegerEntry((((pool + "_") + user) + kFarmUserLastInterest), farmInterest), IntegerEntry((((pool + "_") + user) + kBoostUserLastInterest), boostInterest), IntegerEntry((((pool + "_") + user) + kBoostLPLastInterest), boostLPinterest), IntegerEntry((pool + kFarmLastInterest), farmInterest), IntegerEntry((pool + kBoostLastInterest), boostInterest), IntegerEntry((pool + kBoostLPLastInterest), boostLPinterest), IntegerEntry((pool + kLastInterestHeight), height), IntegerEntry((pool + kShareTotalShareTokens), totalShareStakedNew), IntegerEntry((((pool + "_") + user) + kAvailableSWOP), availableFundsNew), Reissue(SWOP, toTreasure, true), ScriptTransfer(airdropMoneyBoxAddr, toTreasure, SWOP)] ++ lockEntries)
479+ then ([IntegerEntry((((pool + "_") + user) + kFarmUserLastInterest), farmInterest), IntegerEntry((((pool + "_") + user) + kBoostUserLastInterest), boostInterest), IntegerEntry((((pool + "_") + user) + kBoostLPLastInterest), boostLPinterest), IntegerEntry((pool + kFarmLastInterest), farmInterest), IntegerEntry((pool + kBoostLastInterest), boostInterest), IntegerEntry((pool + kBoostLPLastInterest), boostLPinterest), IntegerEntry((pool + kLastInterestHeight), height), IntegerEntry((pool + kShareTotalShareTokens), totalShareStakedNew), IntegerEntry((((pool + "_") + user) + kAvailableSWOP), availableFundsNew), Reissue(SWOP, toTreasure, true), ScriptTransfer(farmingTreasureAddr, toTreasure, SWOP)] ++ lockEntries)
474480 else throw("Strict value is not equal to itself.")
475481 }
476482 }
491497 let userLockedAmount = valueOrElse(getInteger(this, (((pool + "_") + user) + kUserShareTokensLocked)), 0)
492498 let userAmountVirtual = valueOrElse(getInteger(this, (((pool + "_") + user) + kUserShareTokensVirtual)), userStakedAmount)
493499 let totalUserShareTokens = (userStakedAmount + userLockedAmount)
494- let $t02415224204 = getLockParams(lockType)
495- let lockPeriod = $t02415224204._1
496- let lockCoef = $t02415224204._2
500+ let $t02426824320 = getLockParams(lockType)
501+ let lockPeriod = $t02426824320._1
502+ let lockCoef = $t02426824320._2
497503 let lockWavesFee = getIntegerValue(this, kLockWavesFee)
498504 if ((height > getHeightFirstHarvest(pool)))
499505 then throw("You can't lock shareTokens till first harvest end.")
519525 let userLockedHeigtNew = (height + lockPeriod)
520526 let userAmountVirtualNew = (fraction(userLockedAmountNew, lockCoef, lockBoostCoefScale) + userStakedAmount)
521527 let lockEntries = [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))]
522- let $t02590426003 = claimCalc(pool, user)
523- let farmInterest = $t02590426003._1
524- let boostInterest = $t02590426003._2
525- let boostLPinterest = $t02590426003._3
526- let claimAmount = $t02590426003._4
527- let toTreasure = $t02590426003._5
528+ let $t02602026119 = claimCalc(pool, user)
529+ let farmInterest = $t02602026119._1
530+ let boostInterest = $t02602026119._2
531+ let boostLPinterest = $t02602026119._3
532+ let claimAmount = $t02602026119._4
533+ let toTreasure = $t02602026119._5
528534 let availableFundsNew = (userAvailableSWOP(pool, i.originCaller) + claimAmount)
529-[IntegerEntry((((pool + "_") + user) + kFarmUserLastInterest), farmInterest), IntegerEntry((((pool + "_") + user) + kBoostUserLastInterest), boostInterest), IntegerEntry((((pool + "_") + user) + kBoostLPLastInterest), boostLPinterest), IntegerEntry((pool + kFarmLastInterest), farmInterest), IntegerEntry((pool + kBoostLastInterest), boostInterest), IntegerEntry((pool + kBoostLPLastInterest), boostLPinterest), IntegerEntry((pool + kLastInterestHeight), height), IntegerEntry((((pool + "_") + user) + kAvailableSWOP), availableFundsNew), Reissue(SWOP, toTreasure, true), ScriptTransfer(airdropMoneyBoxAddr, toTreasure, SWOP)]
535+[IntegerEntry((((pool + "_") + user) + kFarmUserLastInterest), farmInterest), IntegerEntry((((pool + "_") + user) + kBoostUserLastInterest), boostInterest), IntegerEntry((((pool + "_") + user) + kBoostLPLastInterest), boostLPinterest), IntegerEntry((pool + kFarmLastInterest), farmInterest), IntegerEntry((pool + kBoostLastInterest), boostInterest), IntegerEntry((pool + kBoostLPLastInterest), boostLPinterest), IntegerEntry((pool + kLastInterestHeight), height), IntegerEntry((((pool + "_") + user) + kAvailableSWOP), availableFundsNew), Reissue(SWOP, toTreasure, true), ScriptTransfer(farmingTreasureAddr, toTreasure, SWOP)]
530536 }
531537 })
532538
544550 then throw(("You can't unlock sharetokens till " + toString(userLockedHeigt)))
545551 else {
546552 let userStakedAmountNew = (userStakedAmount + userLockedAmount)
547- let $t02769127790 = claimCalc(pool, user)
548- let farmInterest = $t02769127790._1
549- let boostInterest = $t02769127790._2
550- let boostLPinterest = $t02769127790._3
551- let claimAmount = $t02769127790._4
552- let toTreasure = $t02769127790._5
553+ let $t02780727906 = claimCalc(pool, user)
554+ let farmInterest = $t02780727906._1
555+ let boostInterest = $t02780727906._2
556+ let boostLPinterest = $t02780727906._3
557+ let claimAmount = $t02780727906._4
558+ let toTreasure = $t02780727906._5
553559 let availableFundsNew = (userAvailableSWOP(pool, i.originCaller) + claimAmount)
554-[IntegerEntry((((pool + "_") + user) + kFarmUserLastInterest), farmInterest), IntegerEntry((((pool + "_") + user) + kBoostUserLastInterest), boostInterest), IntegerEntry((((pool + "_") + user) + kBoostLPLastInterest), boostLPinterest), IntegerEntry((pool + kFarmLastInterest), farmInterest), IntegerEntry((pool + kBoostLastInterest), boostInterest), IntegerEntry((pool + kBoostLPLastInterest), boostLPinterest), IntegerEntry((pool + kLastInterestHeight), height), IntegerEntry((((pool + "_") + user) + kUserShareTokensStaked), userStakedAmountNew), IntegerEntry((((pool + "_") + user) + kUserShareTokensVirtual), userStakedAmountNew), IntegerEntry((pool + kShareTokensVirtual), ((totalShareVirtual - userAmountVirtual) + userStakedAmountNew)), DeleteEntry((((pool + "_") + user) + kUserShareTokensLocked)), DeleteEntry((((pool + "_") + user) + kUserShareTokensLockedHeight)), DeleteEntry((((pool + "_") + user) + kUserShareTokensLockedType)), Reissue(SWOP, toTreasure, true), ScriptTransfer(airdropMoneyBoxAddr, toTreasure, SWOP), ScriptTransfer(i.caller, lockWavesFee, unit)]
560+[IntegerEntry((((pool + "_") + user) + kFarmUserLastInterest), farmInterest), IntegerEntry((((pool + "_") + user) + kBoostUserLastInterest), boostInterest), IntegerEntry((((pool + "_") + user) + kBoostLPLastInterest), boostLPinterest), IntegerEntry((pool + kFarmLastInterest), farmInterest), IntegerEntry((pool + kBoostLastInterest), boostInterest), IntegerEntry((pool + kBoostLPLastInterest), boostLPinterest), IntegerEntry((pool + kLastInterestHeight), height), IntegerEntry((((pool + "_") + user) + kUserShareTokensStaked), userStakedAmountNew), IntegerEntry((((pool + "_") + user) + kUserShareTokensVirtual), userStakedAmountNew), IntegerEntry((pool + kShareTokensVirtual), ((totalShareVirtual - userAmountVirtual) + userStakedAmountNew)), DeleteEntry((((pool + "_") + user) + kUserShareTokensLocked)), DeleteEntry((((pool + "_") + user) + kUserShareTokensLockedHeight)), DeleteEntry((((pool + "_") + user) + kUserShareTokensLockedType)), Reissue(SWOP, toTreasure, true), ScriptTransfer(farmingTreasureAddr, toTreasure, SWOP), ScriptTransfer(i.caller, lockWavesFee, unit)]
555561 }
556562 })
557563
561567 func withdrawShareTokens (pool,shareTokensWithdrawAmount) = valueOrElse(isActive(), {
562568 let shareTokensId = fromBase58String(getStringValue(value(addressFromString(pool)), "share_asset_id"))
563569 let user = toString(i.originCaller)
564- let $t02929429393 = claimCalc(pool, user)
565- let farmInterest = $t02929429393._1
566- let boostInterest = $t02929429393._2
567- let boostLPinterest = $t02929429393._3
568- let claimAmount = $t02929429393._4
569- let toTreasure = $t02929429393._5
570+ let $t02941029509 = claimCalc(pool, user)
571+ let farmInterest = $t02941029509._1
572+ let boostInterest = $t02941029509._2
573+ let boostLPinterest = $t02941029509._3
574+ let claimAmount = $t02941029509._4
575+ let toTreasure = $t02941029509._5
570576 let userStakedAmount = valueOrElse(getInteger(this, (((pool + "_") + user) + kUserShareTokensStaked)), 0)
571577 let userLockedAmount = valueOrElse(getInteger(this, (((pool + "_") + user) + kUserShareTokensLocked)), 0)
572578 let userStakedAmountNew = (userStakedAmount - shareTokensWithdrawAmount)
573579 let availableFundsNew = (userAvailableSWOP(pool, i.originCaller) + claimAmount)
574580 let totalShareAmount = getTotalShareTokenStaked(pool)
575581 let totalShareAmountNew = (totalShareAmount - shareTokensWithdrawAmount)
576- if ((shareTokensWithdrawAmount > userStakedAmountNew))
582+ if ((shareTokensWithdrawAmount > userStakedAmount))
577583 then throw("Withdraw amount more then user locked amount")
578584 else if ((accountBalance(shareTokensId) > totalShareAmount))
579585 then throw("Balance of share-token is lower than totalAmount")
582588 then invoke(lpFarmingAddress, "updateUserInterest", [pool, (userStakedAmount + userLockedAmount)], nil)
583589 else 0
584590 if ((uplp == uplp))
585- then [IntegerEntry((((pool + "_") + user) + kFarmUserLastInterest), farmInterest), IntegerEntry((((pool + "_") + user) + kBoostUserLastInterest), boostInterest), IntegerEntry((((pool + "_") + user) + kBoostLPLastInterest), boostLPinterest), IntegerEntry((pool + kFarmLastInterest), farmInterest), IntegerEntry((pool + kBoostLastInterest), boostInterest), IntegerEntry((pool + kBoostLPLastInterest), boostLPinterest), IntegerEntry((pool + kLastInterestHeight), height), IntegerEntry((((pool + "_") + user) + kUserShareTokensStaked), userStakedAmountNew), IntegerEntry((pool + kShareTotalShareTokens), totalShareAmountNew), IntegerEntry((((pool + "_") + user) + kAvailableSWOP), availableFundsNew), Reissue(SWOP, toTreasure, true), ScriptTransfer(airdropMoneyBoxAddr, toTreasure, SWOP), ScriptTransfer(i.caller, shareTokensWithdrawAmount, shareTokensId)]
591+ then [IntegerEntry((((pool + "_") + user) + kFarmUserLastInterest), farmInterest), IntegerEntry((((pool + "_") + user) + kBoostUserLastInterest), boostInterest), IntegerEntry((((pool + "_") + user) + kBoostLPLastInterest), boostLPinterest), IntegerEntry((pool + kFarmLastInterest), farmInterest), IntegerEntry((pool + kBoostLastInterest), boostInterest), IntegerEntry((pool + kBoostLPLastInterest), boostLPinterest), IntegerEntry((pool + kLastInterestHeight), height), IntegerEntry((((pool + "_") + user) + kUserShareTokensStaked), userStakedAmountNew), IntegerEntry((pool + kShareTotalShareTokens), totalShareAmountNew), IntegerEntry((((pool + "_") + user) + kAvailableSWOP), availableFundsNew), Reissue(SWOP, toTreasure, true), ScriptTransfer(farmingTreasureAddr, toTreasure, SWOP), ScriptTransfer(i.caller, shareTokensWithdrawAmount, shareTokensId)]
586592 else throw("Strict value is not equal to itself.")
587593 }
588594 })
594600 let shareTokensId = fromBase58String(getStringValue(value(addressFromString(pool)), "share_asset_id"))
595601 let user = toString(i.caller)
596602 let shareTokenLocked = getTotalShareTokenStaked(pool)
597- let $t03153931638 = claimCalc(pool, user)
598- let farmInterest = $t03153931638._1
599- let boostInterest = $t03153931638._2
600- let boostLPinterest = $t03153931638._3
601- let claimAmount = $t03153931638._4
602- let toTreasure = $t03153931638._5
603+ let $t03165231751 = claimCalc(pool, user)
604+ let farmInterest = $t03165231751._1
605+ let boostInterest = $t03165231751._2
606+ let boostLPinterest = $t03165231751._3
607+ let claimAmount = $t03165231751._4
608+ let toTreasure = $t03165231751._5
603609 let availableFund = (userAvailableSWOP(pool, i.caller) + claimAmount)
604610 if ((availableFund == 0))
605611 then throw("You have 0 available SWOP")
606612 else if ((accountBalance(shareTokensId) > shareTokenLocked))
607613 then throw("Balance of share-token is lower than totalAmount")
608- else $Tuple2([IntegerEntry((((pool + "_") + user) + kFarmUserLastInterest), farmInterest), IntegerEntry((((pool + "_") + user) + kBoostUserLastInterest), boostInterest), IntegerEntry((((pool + "_") + user) + kBoostLPLastInterest), boostLPinterest), IntegerEntry((pool + kFarmLastInterest), farmInterest), IntegerEntry((pool + kBoostLastInterest), boostInterest), IntegerEntry((pool + kBoostLPLastInterest), boostLPinterest), IntegerEntry((pool + kLastInterestHeight), height), IntegerEntry((((pool + "_") + user) + kAvailableSWOP), 0), Reissue(SWOP, (toTreasure + availableFund), true), ScriptTransfer(airdropMoneyBoxAddr, toTreasure, SWOP), ScriptTransfer(i.caller, availableFund, SWOP)], availableFund)
614+ else $Tuple2([IntegerEntry((((pool + "_") + user) + kFarmUserLastInterest), farmInterest), IntegerEntry((((pool + "_") + user) + kBoostUserLastInterest), boostInterest), IntegerEntry((((pool + "_") + user) + kBoostLPLastInterest), boostLPinterest), IntegerEntry((pool + kFarmLastInterest), farmInterest), IntegerEntry((pool + kBoostLastInterest), boostInterest), IntegerEntry((pool + kBoostLPLastInterest), boostLPinterest), IntegerEntry((pool + kLastInterestHeight), height), IntegerEntry((((pool + "_") + user) + kAvailableSWOP), 0), Reissue(SWOP, (toTreasure + availableFund), true), ScriptTransfer(farmingTreasureAddr, toTreasure, SWOP), ScriptTransfer(i.caller, availableFund, SWOP)], availableFund)
609615 })
610616
611617
709715 func updateUserBoostInterest (pool,user) = valueOrElse(isActive(), if ((i.caller != votingAddress))
710716 then throw("Only voiting can call this function")
711717 else {
712- let $t03401834117 = claimCalc(pool, user)
713- let farmInterest = $t03401834117._1
714- let boostInterest = $t03401834117._2
715- let boostLPinterest = $t03401834117._3
716- let claimAmount = $t03401834117._4
717- let toTreasure = $t03401834117._5
718+ let $t03413134230 = claimCalc(pool, user)
719+ let farmInterest = $t03413134230._1
720+ let boostInterest = $t03413134230._2
721+ let boostLPinterest = $t03413134230._3
722+ let claimAmount = $t03413134230._4
723+ let toTreasure = $t03413134230._5
718724 let availableFundsNew = (userAvailableSWOP(pool, i.originCaller) + claimAmount)
719-[IntegerEntry((((pool + "_") + user) + kFarmUserLastInterest), farmInterest), IntegerEntry((((pool + "_") + user) + kBoostUserLastInterest), boostInterest), IntegerEntry((((pool + "_") + user) + kBoostLPLastInterest), boostLPinterest), IntegerEntry((pool + kFarmLastInterest), farmInterest), IntegerEntry((pool + kBoostLastInterest), boostInterest), IntegerEntry((pool + kBoostLPLastInterest), boostLPinterest), IntegerEntry((pool + kLastInterestHeight), height), IntegerEntry((((pool + "_") + user) + kAvailableSWOP), availableFundsNew), Reissue(SWOP, toTreasure, true), ScriptTransfer(airdropMoneyBoxAddr, toTreasure, SWOP)]
725+[IntegerEntry((((pool + "_") + user) + kFarmUserLastInterest), farmInterest), IntegerEntry((((pool + "_") + user) + kBoostUserLastInterest), boostInterest), IntegerEntry((((pool + "_") + user) + kBoostLPLastInterest), boostLPinterest), IntegerEntry((pool + kFarmLastInterest), farmInterest), IntegerEntry((pool + kBoostLastInterest), boostInterest), IntegerEntry((pool + kBoostLPLastInterest), boostLPinterest), IntegerEntry((pool + kLastInterestHeight), height), IntegerEntry((((pool + "_") + user) + kAvailableSWOP), availableFundsNew), Reissue(SWOP, toTreasure, true), ScriptTransfer(farmingTreasureAddr, toTreasure, SWOP)]
720726 })
721727
722728
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let kActive = "active"
5+
6+let kActiveGlob = "active_all_contracts"
57
68 let kCause = "shutdown_cause"
79
810 let kRewardPoolFractionCurrent = "_current_pool_fraction_reward"
911
1012 let kRewardPoolFractionPrevious = "_previous_pool_fraction_reward"
1113
1214 let kHeightPoolFraction = "_pool_reward_update_height"
1315
1416 let kTotalRewardPerBlockCurrent = "total_reward_per_block_current"
1517
1618 let kTotalRewardPerBlockPrevious = "total_reward_per_block_previous"
1719
1820 let kRewardUpdateHeight = "reward_update_height"
1921
2022 let kUserShareTokensStaked = "_share_tokens_locked"
2123
2224 let kUserShareTokensLocked = "_share_tokens_blocked"
2325
2426 let kUserShareTokensLockedType = "_share_tokens_blocked_type"
2527
2628 let kUserShareTokensLockedHeight = "_share_tokens_blocked_height"
2729
2830 let kUserShareTokensVirtual = "_share_tokens_virtual"
2931
3032 let kShareTotalShareTokens = "_total_share_tokens_locked"
3133
3234 let kShareTokensVirtual = "_total_share_tokens_virtual"
3335
3436 let kLockParams = "_lock_params"
3537
3638 let kLockWavesFee = "lock_waves_fee"
3739
3840 let kPoolBoostCoef = "_boost_coef"
3941
4042 let kFarmLastInterest = "_last_interest"
4143
4244 let kFarmUserLastInterest = "_last_interest"
4345
4446 let kBoostLastInterest = "_last_interest_b"
4547
4648 let kBoostUserLastInterest = "_last_interest_u_b"
4749
4850 let kBoostLPLastInterest = "_last_interest_lpb"
4951
5052 let kBoostLPUserLastInterest = "_last_interest_u_lpb"
5153
5254 let kLastInterestHeight = "_last_interest_height"
5355
5456 let kSWOPid = "SWOP_id"
5557
5658 let kAvailableSWOP = "_available_SWOP"
5759
5860 let kSwopYearEmission = "swop_year_emission"
5961
6062 let kHarvestPoolVote = "_harvest_pool_vote_gSWOP"
6163
6264 let kPoolVote = "_pool_vote_gSWOP"
6365
6466 let kUserPoolVote = "_user_vote_gSWOP"
6567
6668 let kHarvestUserPoolVote = "_harvest_user_pool_vote_gSWOP"
6769
6870 let kBasePeriod = "base_period"
6971
7072 let kPeriodLength = "period_length"
7173
7274 let kStartHeight = "start_height"
7375
7476 let kFirstHarvestHeight = "first_harvest_height"
7577
7678 let kShareLimitFH = "share_limit_on_first_harvest"
7779
7880 let kAdminPubKey1 = "admin_pub_1"
7981
8082 let kAdminPubKey2 = "admin_pub_2"
8183
8284 let kAdminPubKey3 = "admin_pub_3"
8385
8486 let kAdminInvokePubKey = "admin_invoke_pub"
8587
8688 let kMoneyBoxAddress = "money_box_address"
8789
8890 let kVotingAddress = "voting_address"
8991
9092 let kGovAddress = "governance_address"
9193
9294 let kLPFarmingAddress = "lp_farming"
9395
94-let kAirdropMoneyBoxAddr = "airdrop_fee_money_box"
96+let kFarmingTreasureAddr = "farming_treasure"
9597
9698 let oracle = Address(base58'3MvVBtsXroQpy1tsPw21TU2ET9A8WfmrNjz')
9799
98100 let totalVoteShare = 10000000000
99101
100102 let lockBoostCoefScale = 1000
101103
102104 let defPoolBoostCoef = 500
103105
104106 func getBase58FromOracle (key) = match getString(oracle, key) {
105107 case string: String =>
106108 fromBase58String(string)
107109 case nothing =>
108110 throw((key + "is empty"))
109111 }
110112
111113
112114 let adminPubKey1 = getBase58FromOracle(kAdminPubKey1)
113115
114116 let adminPubKey2 = getBase58FromOracle(kAdminPubKey2)
115117
116118 let adminPubKey3 = getBase58FromOracle(kAdminPubKey3)
117119
118120 let moneyBoxAddress = Address(getBase58FromOracle(kMoneyBoxAddress))
119121
120122 let votingAddress = Address(getBase58FromOracle(kVotingAddress))
121123
122124 let govAddress = Address(getBase58FromOracle(kGovAddress))
123125
124126 let adminInvokePubKey = getBase58FromOracle(kAdminInvokePubKey)
125127
126128 let lpFarmingAddress = Address(getBase58FromOracle(kLPFarmingAddress))
127129
128-let airdropMoneyBoxAddr = Address(getBase58FromOracle(kAirdropMoneyBoxAddr))
130+let farmingTreasureAddr = Address(getBase58FromOracle(kFarmingTreasureAddr))
129131
130132 let basePeriod = valueOrErrorMessage(getInteger(votingAddress, kBasePeriod), "Empty kBasePeriod")
131133
132134 let startHeight = valueOrErrorMessage(getInteger(votingAddress, kStartHeight), "Empty kStartHeight")
133135
134136 let periodLength = valueOrErrorMessage(getInteger(votingAddress, kPeriodLength), "Empty kPeriodLength")
135137
136138 let currPeriod = (basePeriod + ((height - startHeight) / periodLength))
137139
138140 let active = getBooleanValue(this, kActive)
141+
142+let activeGlob = valueOrElse(getBoolean(oracle, kActiveGlob), true)
139143
140144 let SwopYearEmission = getIntegerValue(this, kSwopYearEmission)
141145
142146 let SWOP = fromBase58String(getStringValue(this, kSWOPid))
143147
144148 func getHeightFirstHarvest (pool) = valueOrElse(getInteger(Address(fromBase58String(pool)), kFirstHarvestHeight), 0)
145149
146150
147151 func getFHShareLimitToken (pool) = valueOrErrorMessage(getInteger(pool, kShareLimitFH), ("No data on the key: " + kShareLimitFH))
148152
149153
150154 func getTotalShareTokenStaked (pool) = valueOrErrorMessage(getInteger(this, (pool + kShareTotalShareTokens)), (("No data on the key: " + pool) + kShareTotalShareTokens))
151155
152156
153157 func getPoolVoted (pool) = valueOrElse(getInteger(votingAddress, (pool + kPoolVote)), 0)
154158
155159
156160 func getUserPoolVoted (pool,user) = valueOrElse(getInteger(votingAddress, (((user + "_") + pool) + kPoolVote)), 0)
157161
158162
159163 func getShareAssetId (pool) = fromBase58String(getStringValue(value(addressFromString(pool)), "share_asset_id"))
160164
161165
162166 func accountBalance (assetId) = match assetId {
163167 case id: ByteVector =>
164168 assetBalance(this, id)
165169 case waves: Unit =>
166170 wavesBalance(this).available
167171 case _ =>
168172 throw("Match error")
169173 }
170174
171175
172176 func getAssetInfo (assetId) = match assetId {
173177 case id: ByteVector =>
174178 let stringId = toBase58String(id)
175179 let info = valueOrErrorMessage(assetInfo(id), (("Asset " + stringId) + " doesn't exist"))
176180 $Tuple3(stringId, info.name, info.decimals)
177181 case waves: Unit =>
178182 $Tuple3("WAVES", "WAVES", 8)
179183 case _ =>
180184 throw("Match error")
181185 }
182186
183187
184188 func calcScaleValue (assetId1,assetId2) = {
185189 let assetId1Decimals = value(assetInfo(assetId1)).decimals
186190 let assetId2Decimals = value(assetInfo(assetId2)).decimals
187191 let scaleDigits = ((assetId2Decimals - assetId1Decimals) + 8)
188192 pow(10, 0, scaleDigits, 0, 0, DOWN)
189193 }
190194
191195
192196 func userAvailableSWOP (pool,user) = valueOrElse(getInteger(this, (((pool + "_") + toString(user)) + kAvailableSWOP)), 0)
193197
194198
195199 func rewardInfo (pool) = {
196200 let totalRewardPerBlockCurrent = valueOrErrorMessage(getInteger(govAddress, kTotalRewardPerBlockCurrent), ((("No data on the key: " + kTotalRewardPerBlockCurrent) + " at address ") + toString(govAddress)))
197201 let totalRewardPerBlockPrevious = valueOrErrorMessage(getInteger(govAddress, kTotalRewardPerBlockPrevious), ((("No data on the key: " + kTotalRewardPerBlockPrevious) + " at address ") + toString(govAddress)))
198202 let rewardPoolFractionCurrent = valueOrErrorMessage(getInteger(govAddress, (pool + kRewardPoolFractionCurrent)), (((("No data on the key: " + pool) + kRewardPoolFractionCurrent) + " at address ") + toString(govAddress)))
199203 let rewardUpdateHeight = valueOrErrorMessage(getInteger(govAddress, kRewardUpdateHeight), ((("No data on the key: " + kRewardUpdateHeight) + " at address ") + toString(govAddress)))
200204 let poolRewardUpdateHeight = valueOrElse(getInteger(govAddress, (pool + kHeightPoolFraction)), rewardUpdateHeight)
201205 let rewardPoolFractionPrevious = valueOrErrorMessage(getInteger(govAddress, (pool + kRewardPoolFractionPrevious)), (((("No data on the key: " + pool) + kRewardPoolFractionPrevious) + " at address ") + toString(govAddress)))
202206 let rewardPoolCurrent = fraction(totalRewardPerBlockCurrent, rewardPoolFractionCurrent, totalVoteShare)
203207 let rewardPoolPrevious = fraction(totalRewardPerBlockCurrent, rewardPoolFractionPrevious, totalVoteShare)
204208 if (if ((rewardPoolCurrent > totalRewardPerBlockCurrent))
205209 then true
206210 else (rewardPoolPrevious > totalRewardPerBlockPrevious))
207211 then throw("rewardPoolCurrent > totalRewardPerBlockCurrent or rewardPoolPrevious > totalRewardPerBlockPrevious")
208212 else $Tuple4(rewardPoolCurrent, rewardUpdateHeight, rewardPoolPrevious, poolRewardUpdateHeight)
209213 }
210214
211215
212216 func getLastInterestInfo (pool) = {
213217 let farmInterest = valueOrErrorMessage(getInteger(this, (pool + kFarmLastInterest)), (("No data on the key: " + pool) + kFarmLastInterest))
214218 let boostInterest = valueOrErrorMessage(getInteger(this, (pool + kFarmLastInterest)), (("No data on the key: " + pool) + kBoostLastInterest))
215219 let boostLPInterest = valueOrErrorMessage(getInteger(this, (pool + kFarmLastInterest)), (("No data on the key: " + pool) + kBoostLPLastInterest))
216220 let lastInterestHeight = valueOrElse(getInteger(this, (pool + kLastInterestHeight)), height)
217221 $Tuple4(lastInterestHeight, farmInterest, boostInterest, boostLPInterest)
218222 }
219223
220224
221225 func calcFarmRwd (pool,curTotalReward) = {
222226 let poolBoostCoef = valueOrElse(getInteger(this, (pool + kPoolBoostCoef)), defPoolBoostCoef)
223227 ((curTotalReward / (poolBoostCoef + 1)) / lockBoostCoefScale)
224228 }
225229
226230
227231 func calcBoostRwd (pool,curTotalReward) = {
228232 let poolBoostCoef = valueOrElse(getInteger(this, (pool + kPoolBoostCoef)), defPoolBoostCoef)
229233 (fraction(curTotalReward, poolBoostCoef, (poolBoostCoef + 1)) / lockBoostCoefScale)
230234 }
231235
232236
233237 func calcInterest (pool,lastInterestHeight,rewardUpdateHeight,poolRewardUpdateHeight,farmInterest,boostInterest,poolVoted,boostLpInterest,currentRewardPerBlock,shareTokenLocked,previousRewardPerBlock,scaleValue) = if ((shareTokenLocked == 0))
234238 then $Tuple3(0, 0, 0)
235239 else if (if ((rewardUpdateHeight > height))
236240 then (rewardUpdateHeight == poolRewardUpdateHeight)
237241 else false)
238242 then {
239243 let reward = (previousRewardPerBlock * (height - lastInterestHeight))
240244 let newFarmInterest = (farmInterest + fraction(calcFarmRwd(pool, reward), scaleValue, shareTokenLocked))
241245 let newBoostInterest = (boostInterest + (if ((poolVoted > 0))
242246 then fraction(calcBoostRwd(pool, reward), scaleValue, poolVoted)
243247 else 0))
244248 let newBoostLPInterest = (boostLpInterest + (if (if ((poolVoted > 0))
245249 then (shareTokenLocked > 0)
246250 else false)
247251 then (fraction(calcBoostRwd(pool, reward), scaleValue, shareTokenLocked) / poolVoted)
248252 else 0))
249253 $Tuple3(newFarmInterest, newBoostInterest, newBoostLPInterest)
250254 }
251255 else if (if ((height > rewardUpdateHeight))
252256 then (rewardUpdateHeight != poolRewardUpdateHeight)
253257 else false)
254258 then {
255259 let reward = (previousRewardPerBlock * (height - lastInterestHeight))
256260 let newFarmInterest = (farmInterest + fraction(calcFarmRwd(pool, reward), scaleValue, shareTokenLocked))
257261 let newBoostInterest = (boostInterest + (if ((poolVoted > 0))
258262 then fraction(calcBoostRwd(pool, reward), scaleValue, poolVoted)
259263 else 0))
260264 let newBoostLPInterest = (boostLpInterest + (if (if ((poolVoted > 0))
261265 then (shareTokenLocked > 0)
262266 else false)
263267 then (fraction(calcBoostRwd(pool, reward), scaleValue, shareTokenLocked) / poolVoted)
264268 else 0))
265269 $Tuple3(newFarmInterest, newBoostInterest, newBoostLPInterest)
266270 }
267271 else if (if (if ((height > rewardUpdateHeight))
268272 then (rewardUpdateHeight == poolRewardUpdateHeight)
269273 else false)
270274 then (lastInterestHeight > rewardUpdateHeight)
271275 else false)
272276 then {
273277 let reward = (currentRewardPerBlock * (height - lastInterestHeight))
274278 let newFarmInterest = (farmInterest + fraction(calcFarmRwd(pool, reward), scaleValue, shareTokenLocked))
275279 let newBoostInterest = (boostInterest + (if ((poolVoted > 0))
276280 then fraction(calcBoostRwd(pool, reward), scaleValue, poolVoted)
277281 else 0))
278282 let newBoostLPInterest = (boostLpInterest + (if (if ((poolVoted > 0))
279283 then (shareTokenLocked > 0)
280284 else false)
281285 then (fraction(calcBoostRwd(pool, reward), scaleValue, shareTokenLocked) / poolVoted)
282286 else 0))
283287 $Tuple3(newFarmInterest, newBoostInterest, newBoostLPInterest)
284288 }
285289 else {
286290 let rwdBfrUpd = (previousRewardPerBlock * (rewardUpdateHeight - lastInterestHeight))
287291 let framIntrAftrUp = (farmInterest + fraction(calcFarmRwd(pool, rwdBfrUpd), scaleValue, shareTokenLocked))
288292 let boostIntrAftrUp = (boostInterest + (if ((poolVoted > 0))
289293 then fraction(calcBoostRwd(pool, rwdBfrUpd), scaleValue, poolVoted)
290294 else 0))
291295 let bostLPIntrAftrUp = (farmInterest + (if (if ((poolVoted > 0))
292296 then (shareTokenLocked > 0)
293297 else false)
294298 then fraction(calcBoostRwd(pool, rwdBfrUpd), scaleValue, poolVoted)
295299 else 0))
296300 let reward = (currentRewardPerBlock * (height - rewardUpdateHeight))
297301 let newFarmInterest = (framIntrAftrUp + fraction(calcFarmRwd(pool, reward), scaleValue, shareTokenLocked))
298302 let newBoostInterest = (boostIntrAftrUp + (if ((poolVoted > 0))
299303 then fraction(calcBoostRwd(pool, reward), scaleValue, poolVoted)
300304 else 0))
301305 let newBoostLPInterest = (bostLPIntrAftrUp + (if (if ((poolVoted > 0))
302306 then (shareTokenLocked > 0)
303307 else false)
304308 then (fraction(calcBoostRwd(pool, reward), scaleValue, shareTokenLocked) / poolVoted)
305309 else 0))
306310 $Tuple3(newFarmInterest, newBoostInterest, newBoostLPInterest)
307311 }
308312
309313
310314 func claimCalc (pool,user) = {
311315 let scaleValue = calcScaleValue(SWOP, getShareAssetId(pool))
312316 let poolVoted = getPoolVoted(pool)
313317 let uPoolVoted = getUserPoolVoted(pool, user)
314318 let shareTokenStaked = getTotalShareTokenStaked(pool)
315319 let totalShareVirtual = valueOrElse(getInteger(this, (pool + kShareTokensVirtual)), shareTokenStaked)
316- let $t01420114299 = getLastInterestInfo(pool)
317- let lastInterestHeight = $t01420114299._1
318- let farmInterest = $t01420114299._2
319- let boostInterest = $t01420114299._3
320- let boostLPInterest = $t01420114299._4
321- let $t01430414418 = rewardInfo(pool)
322- let currentRewardPerBlock = $t01430414418._1
323- let rewardUpdateHeight = $t01430414418._2
324- let previousRewardPerBlock = $t01430414418._3
325- let poolRewardUpdateHeight = $t01430414418._4
320+ let $t01430314401 = getLastInterestInfo(pool)
321+ let lastInterestHeight = $t01430314401._1
322+ let farmInterest = $t01430314401._2
323+ let boostInterest = $t01430314401._3
324+ let boostLPInterest = $t01430314401._4
325+ let $t01440614520 = rewardInfo(pool)
326+ let currentRewardPerBlock = $t01440614520._1
327+ let rewardUpdateHeight = $t01440614520._2
328+ let previousRewardPerBlock = $t01440614520._3
329+ let poolRewardUpdateHeight = $t01440614520._4
326330 let uFarmInterest = valueOrElse(getInteger(this, (((pool + "_") + user) + kFarmUserLastInterest)), farmInterest)
327331 let uBoostInterest = valueOrElse(getInteger(this, (((pool + "_") + user) + kBoostUserLastInterest)), boostInterest)
328332 let uBoostLPInterest = valueOrElse(getInteger(this, (((pool + "_") + user) + kBoostLPUserLastInterest)), boostLPInterest)
329333 let uShareTokensStaked = valueOrElse(getInteger(this, (((pool + "_") + user) + kUserShareTokensStaked)), 0)
330334 let uShareTokensVirt = valueOrElse(getInteger(this, (((pool + "_") + user) + kUserShareTokensVirtual)), uShareTokensStaked)
331- let $t01498615378 = calcInterest(pool, lastInterestHeight, rewardUpdateHeight, poolRewardUpdateHeight, farmInterest, boostInterest, poolVoted, boostLPInterest, currentRewardPerBlock, shareTokenStaked, previousRewardPerBlock, scaleValue)
332- let newFarmInterest = $t01498615378._1
333- let newBoostInterest = $t01498615378._2
334- let newBoostLPInterest = $t01498615378._3
335+ let $t01508815480 = calcInterest(pool, lastInterestHeight, rewardUpdateHeight, poolRewardUpdateHeight, farmInterest, boostInterest, poolVoted, boostLPInterest, currentRewardPerBlock, shareTokenStaked, previousRewardPerBlock, scaleValue)
336+ let newFarmInterest = $t01508815480._1
337+ let newBoostInterest = $t01508815480._2
338+ let newBoostLPInterest = $t01508815480._3
335339 let claimFarming = fraction(uShareTokensVirt, (newFarmInterest - uFarmInterest), scaleValue)
336340 let claimBoostingMax = fraction(uPoolVoted, (newBoostInterest - uBoostInterest), scaleValue)
337341 let claimBoosting = fraction((uShareTokensVirt * uPoolVoted), (newBoostLPInterest - uBoostLPInterest), scaleValue)
338342 let toTreasury = (claimBoostingMax - claimBoosting)
339343 $Tuple5(newFarmInterest, newBoostInterest, newBoostLPInterest, (claimFarming + claimBoosting), toTreasury)
340344 }
341345
342346
343347 func canLockInFirstHarvest (pool,user,userShareTokensStaked,pmtAmount,lockType) = if ((height > getHeightFirstHarvest(pool)))
344348 then {
345349 let totalVoteAmount = valueOrElse(getInteger(votingAddress, (pool + kHarvestPoolVote)), 0)
346350 let userVoteAmount = valueOrElse(getInteger(votingAddress, (((user + "_") + pool) + kHarvestPoolVote)), 0)
347351 let FHShareTokenLimit = getFHShareLimitToken(addressFromStringValue(pool))
348352 let FHShareTokenUserLimit = (fraction(FHShareTokenLimit, userVoteAmount, totalVoteAmount) - userShareTokensStaked)
349353 if ((lockType > 0))
350354 then throw("You can't lock shareTokens till first harvest end.")
351355 else if ((userVoteAmount == 0))
352356 then 0
353357 else if ((pmtAmount >= FHShareTokenUserLimit))
354358 then (pmtAmount - FHShareTokenUserLimit)
355359 else 0
356360 }
357361 else 0
358362
359363
360364 func getLockParams (type) = {
361365 let lockParams = split(valueOrErrorMessage(getString(this, (toString(type) + kLockParams)), ("There are no key for lock type" + toString(type))), "_")
362366 $Tuple2(parseIntValue(lockParams[0]), parseIntValue(lockParams[1]))
363367 }
364368
365369
366370 func suspend (cause) = [BooleanEntry(kActive, false), StringEntry(kCause, cause)]
367371
368372
369-func isActive () = if (active)
373+func isActive () = if (if (active)
374+ then activeGlob
375+ else false)
370376 then unit
371377 else throw("DApp is inactive at this moment")
372378
373379
374380 func isAdminCall (i) = if (containsElement([adminPubKey1, adminPubKey2, adminPubKey3], i.callerPublicKey))
375381 then unit
376382 else throw("Only admin can call this function")
377383
378384
379385 @Callable(i)
380386 func init (earlyLP) = if (isDefined(getString(this, kSWOPid)))
381387 then throw("SWOP already initialized")
382388 else {
383389 let initAmount = 100000000000000
384390 let SWOPissue = Issue("SWOP", "SWOP protocol token", initAmount, 8, true)
385391 let SWOPid = calculateAssetId(SWOPissue)
386392 [BooleanEntry(kActive, true), Issue("SWOP", "SWOP protocol token", initAmount, 8, true), StringEntry(kSWOPid, toBase58String(SWOPid))]
387393 }
388394
389395
390396
391397 @Callable(i)
392398 func initPoolShareFarming (pool) = valueOrElse(isAdminCall(i), [IntegerEntry((pool + kShareTotalShareTokens), 0), IntegerEntry((pool + kFarmLastInterest), 0), IntegerEntry((pool + kBoostLastInterest), 0), IntegerEntry((pool + kBoostLPLastInterest), 0), IntegerEntry((pool + kLastInterestHeight), height)])
393399
394400
395401
396402 @Callable(i)
397403 func updatePoolInterest (pool) = valueOrElse(isActive(), if ((i.caller != govAddress))
398404 then throw("Only Governance can call this function")
399405 else {
400406 let user = toString(addressFromPublicKey(adminInvokePubKey))
401- let $t01838118455 = claimCalc(pool, user)
402- let farmInterest = $t01838118455._1
403- let boostInterest = $t01838118455._2
404- let boostLPinterest = $t01838118455._3
407+ let $t01849718571 = claimCalc(pool, user)
408+ let farmInterest = $t01849718571._1
409+ let boostInterest = $t01849718571._2
410+ let boostLPinterest = $t01849718571._3
405411 [IntegerEntry((pool + kFarmLastInterest), farmInterest), IntegerEntry((pool + kBoostLastInterest), boostInterest), IntegerEntry((pool + kBoostLPLastInterest), boostLPinterest), IntegerEntry((pool + kLastInterestHeight), height)]
406412 })
407413
408414
409415
410416 @Callable(i)
411417 func lockShareTokens (pool,lockType) = valueOrElse(isActive(), {
412418 let shareAssetId = getShareAssetId(pool)
413419 let user = toString(i.originCaller)
414420 let totalShareStaked = getTotalShareTokenStaked(pool)
415421 let totalShareVirtual = valueOrElse(getInteger(this, (pool + kShareTokensVirtual)), totalShareStaked)
416422 let userStakedAmount = valueOrElse(getInteger(this, (((pool + "_") + user) + kUserShareTokensStaked)), 0)
417423 let userLockedHeigt = valueOrElse(getInteger(this, (((pool + "_") + user) + kUserShareTokensLockedHeight)), 0)
418424 let userLockedAmount = valueOrElse(getInteger(this, (((pool + "_") + user) + kUserShareTokensLocked)), 0)
419425 let userAmountVirtual = valueOrElse(getInteger(this, (((pool + "_") + user) + kUserShareTokensVirtual)), userStakedAmount)
420426 let totalUserShareTokens = ((userStakedAmount + userLockedAmount) + i.payments[0].amount)
421- let $t01958219634 = getLockParams(lockType)
422- let lockPeriod = $t01958219634._1
423- let lockCoef = $t01958219634._2
427+ let $t01969819750 = getLockParams(lockType)
428+ let lockPeriod = $t01969819750._1
429+ let lockCoef = $t01969819750._2
424430 let lockWavesFee = getIntegerValue(this, kLockWavesFee)
425431 if ((i.payments[0].assetId != shareAssetId))
426432 then throw("Wrong sharetoken in payment")
427433 else if ((0 >= i.payments[0].amount))
428434 then throw("Payment amount must be greater than 0")
429435 else if ((0 > lockType))
430436 then throw("lockType must be >= 0")
431437 else {
432438 let shareTokensChangeOnFH = canLockInFirstHarvest(pool, user, userStakedAmount, i.payments[0].amount, lockType)
433439 if ((shareTokensChangeOnFH == shareTokensChangeOnFH))
434440 then {
435- let $t02006121990 = if ((lockType == 0))
441+ let $t02017722106 = if ((lockType == 0))
436442 then {
437443 let userAmountVirtualNew = ((userAmountVirtual + i.payments[0].amount) - shareTokensChangeOnFH)
438444 $Tuple3([IntegerEntry((((pool + "_") + user) + kUserShareTokensStaked), ((userStakedAmount + i.payments[0].amount) - shareTokensChangeOnFH)), IntegerEntry((pool + kShareTokensVirtual), ((totalShareVirtual + i.payments[0].amount) - shareTokensChangeOnFH)), ScriptTransfer(i.originCaller, shareTokensChangeOnFH, i.payments[0].assetId)], userAmountVirtualNew, ((totalShareStaked + i.payments[0].amount) - shareTokensChangeOnFH))
439445 }
440446 else if (if ((userLockedHeigt == 0))
441447 then if (if ((2 > size(i.payments)))
442448 then true
443449 else (i.payments[1].assetId != unit))
444450 then true
445451 else (lockWavesFee > i.payments[1].amount)
446452 else false)
447453 then throw((("You need to pay additional waves comission " + toString(lockWavesFee)) + "WAVES"))
448454 else if ((userLockedHeigt > (height + lockPeriod)))
449455 then throw("You cannot lock sharetokens for a period less than what you have already locked")
450456 else {
451457 let userLockedAmountNew = (userLockedAmount + i.payments[0].amount)
452458 let userLockedHeigtNew = (height + lockPeriod)
453459 let userAmountVirtualNew = (fraction(userLockedAmountNew, lockCoef, lockBoostCoefScale) + userStakedAmount)
454460 $Tuple3([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))], userAmountVirtualNew, (totalShareStaked + i.payments[0].amount))
455461 }
456- let lockEntries = $t02006121990._1
457- let userAmountVirtualNew = $t02006121990._2
458- let totalShareStakedNew = $t02006121990._3
462+ let lockEntries = $t02017722106._1
463+ let userAmountVirtualNew = $t02017722106._2
464+ let totalShareStakedNew = $t02017722106._3
459465 if ((accountBalance(shareAssetId) > totalShareStakedNew))
460466 then throw("Balance of share-token is lower than totalAmount")
461467 else {
462- let $t02212122220 = claimCalc(pool, user)
463- let farmInterest = $t02212122220._1
464- let boostInterest = $t02212122220._2
465- let boostLPinterest = $t02212122220._3
466- let claimAmount = $t02212122220._4
467- let toTreasure = $t02212122220._5
468+ let $t02223722336 = claimCalc(pool, user)
469+ let farmInterest = $t02223722336._1
470+ let boostInterest = $t02223722336._2
471+ let boostLPinterest = $t02223722336._3
472+ let claimAmount = $t02223722336._4
473+ let toTreasure = $t02223722336._5
468474 let availableFundsNew = (userAvailableSWOP(pool, i.originCaller) + claimAmount)
469475 let uplp = if ((getString(Address(fromBase58String(pool)), "version") == "3.0.0"))
470476 then invoke(lpFarmingAddress, "updateUserInterest", [pool, totalUserShareTokens], nil)
471477 else 0
472478 if ((uplp == uplp))
473- then ([IntegerEntry((((pool + "_") + user) + kFarmUserLastInterest), farmInterest), IntegerEntry((((pool + "_") + user) + kBoostUserLastInterest), boostInterest), IntegerEntry((((pool + "_") + user) + kBoostLPLastInterest), boostLPinterest), IntegerEntry((pool + kFarmLastInterest), farmInterest), IntegerEntry((pool + kBoostLastInterest), boostInterest), IntegerEntry((pool + kBoostLPLastInterest), boostLPinterest), IntegerEntry((pool + kLastInterestHeight), height), IntegerEntry((pool + kShareTotalShareTokens), totalShareStakedNew), IntegerEntry((((pool + "_") + user) + kAvailableSWOP), availableFundsNew), Reissue(SWOP, toTreasure, true), ScriptTransfer(airdropMoneyBoxAddr, toTreasure, SWOP)] ++ lockEntries)
479+ then ([IntegerEntry((((pool + "_") + user) + kFarmUserLastInterest), farmInterest), IntegerEntry((((pool + "_") + user) + kBoostUserLastInterest), boostInterest), IntegerEntry((((pool + "_") + user) + kBoostLPLastInterest), boostLPinterest), IntegerEntry((pool + kFarmLastInterest), farmInterest), IntegerEntry((pool + kBoostLastInterest), boostInterest), IntegerEntry((pool + kBoostLPLastInterest), boostLPinterest), IntegerEntry((pool + kLastInterestHeight), height), IntegerEntry((pool + kShareTotalShareTokens), totalShareStakedNew), IntegerEntry((((pool + "_") + user) + kAvailableSWOP), availableFundsNew), Reissue(SWOP, toTreasure, true), ScriptTransfer(farmingTreasureAddr, toTreasure, SWOP)] ++ lockEntries)
474480 else throw("Strict value is not equal to itself.")
475481 }
476482 }
477483 else throw("Strict value is not equal to itself.")
478484 }
479485 })
480486
481487
482488
483489 @Callable(i)
484490 func lockStakedShareTokens (pool,lockType,lockAmount) = valueOrElse(isActive(), {
485491 let shareAssetId = getShareAssetId(pool)
486492 let user = toString(i.originCaller)
487493 let totalShareStaked = getTotalShareTokenStaked(pool)
488494 let totalShareVirtual = valueOrElse(getInteger(this, (pool + kShareTokensVirtual)), totalShareStaked)
489495 let userStakedAmount = valueOrElse(getInteger(this, (((pool + "_") + user) + kUserShareTokensStaked)), 0)
490496 let userLockedHeigt = valueOrElse(getInteger(this, (((pool + "_") + user) + kUserShareTokensLockedHeight)), 0)
491497 let userLockedAmount = valueOrElse(getInteger(this, (((pool + "_") + user) + kUserShareTokensLocked)), 0)
492498 let userAmountVirtual = valueOrElse(getInteger(this, (((pool + "_") + user) + kUserShareTokensVirtual)), userStakedAmount)
493499 let totalUserShareTokens = (userStakedAmount + userLockedAmount)
494- let $t02415224204 = getLockParams(lockType)
495- let lockPeriod = $t02415224204._1
496- let lockCoef = $t02415224204._2
500+ let $t02426824320 = getLockParams(lockType)
501+ let lockPeriod = $t02426824320._1
502+ let lockCoef = $t02426824320._2
497503 let lockWavesFee = getIntegerValue(this, kLockWavesFee)
498504 if ((height > getHeightFirstHarvest(pool)))
499505 then throw("You can't lock shareTokens till first harvest end.")
500506 else if ((lockType > 0))
501507 then throw("lockType must be > 0")
502508 else if ((lockAmount > userStakedAmount))
503509 then throw(("You can't lock more than " + toString(userStakedAmount)))
504510 else if ((accountBalance(shareAssetId) > totalShareStaked))
505511 then throw("Balance of share-token is lower than totalAmount")
506512 else if (if ((userLockedHeigt == 0))
507513 then if (if ((1 > size(i.payments)))
508514 then true
509515 else (i.payments[0].assetId != unit))
510516 then true
511517 else (lockWavesFee > i.payments[0].amount)
512518 else false)
513519 then throw((("You need to pay additional waves comission " + toString(lockWavesFee)) + "WAVES"))
514520 else if ((userLockedHeigt > (height + lockPeriod)))
515521 then throw("You cannot lock sharetokens for a period less than what you have already locked")
516522 else {
517523 let userLockedAmountNew = (userLockedAmount + lockAmount)
518524 let userStakedAmountNew = (userStakedAmount - lockAmount)
519525 let userLockedHeigtNew = (height + lockPeriod)
520526 let userAmountVirtualNew = (fraction(userLockedAmountNew, lockCoef, lockBoostCoefScale) + userStakedAmount)
521527 let lockEntries = [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))]
522- let $t02590426003 = claimCalc(pool, user)
523- let farmInterest = $t02590426003._1
524- let boostInterest = $t02590426003._2
525- let boostLPinterest = $t02590426003._3
526- let claimAmount = $t02590426003._4
527- let toTreasure = $t02590426003._5
528+ let $t02602026119 = claimCalc(pool, user)
529+ let farmInterest = $t02602026119._1
530+ let boostInterest = $t02602026119._2
531+ let boostLPinterest = $t02602026119._3
532+ let claimAmount = $t02602026119._4
533+ let toTreasure = $t02602026119._5
528534 let availableFundsNew = (userAvailableSWOP(pool, i.originCaller) + claimAmount)
529-[IntegerEntry((((pool + "_") + user) + kFarmUserLastInterest), farmInterest), IntegerEntry((((pool + "_") + user) + kBoostUserLastInterest), boostInterest), IntegerEntry((((pool + "_") + user) + kBoostLPLastInterest), boostLPinterest), IntegerEntry((pool + kFarmLastInterest), farmInterest), IntegerEntry((pool + kBoostLastInterest), boostInterest), IntegerEntry((pool + kBoostLPLastInterest), boostLPinterest), IntegerEntry((pool + kLastInterestHeight), height), IntegerEntry((((pool + "_") + user) + kAvailableSWOP), availableFundsNew), Reissue(SWOP, toTreasure, true), ScriptTransfer(airdropMoneyBoxAddr, toTreasure, SWOP)]
535+[IntegerEntry((((pool + "_") + user) + kFarmUserLastInterest), farmInterest), IntegerEntry((((pool + "_") + user) + kBoostUserLastInterest), boostInterest), IntegerEntry((((pool + "_") + user) + kBoostLPLastInterest), boostLPinterest), IntegerEntry((pool + kFarmLastInterest), farmInterest), IntegerEntry((pool + kBoostLastInterest), boostInterest), IntegerEntry((pool + kBoostLPLastInterest), boostLPinterest), IntegerEntry((pool + kLastInterestHeight), height), IntegerEntry((((pool + "_") + user) + kAvailableSWOP), availableFundsNew), Reissue(SWOP, toTreasure, true), ScriptTransfer(farmingTreasureAddr, toTreasure, SWOP)]
530536 }
531537 })
532538
533539
534540
535541 @Callable(i)
536542 func unlockUserLock (pool,user) = valueOrElse(isActive(), {
537543 let lockWavesFee = getIntegerValue(this, kLockWavesFee)
538544 let userLockedHeigt = valueOrErrorMessage(getInteger(this, (((pool + "_") + user) + kUserShareTokensLockedHeight)), (((("There is no pool " + pool) + " or user ") + user) + "with lock"))
539545 let totalShareVirtual = getIntegerValue(this, (pool + kShareTokensVirtual))
540546 let userStakedAmount = valueOrElse(getInteger(this, (((pool + "_") + user) + kUserShareTokensStaked)), 0)
541547 let userLockedAmount = valueOrElse(getInteger(this, (((pool + "_") + user) + kUserShareTokensLocked)), 0)
542548 let userAmountVirtual = valueOrElse(getInteger(this, (((pool + "_") + user) + kUserShareTokensVirtual)), userStakedAmount)
543549 if ((userLockedHeigt > height))
544550 then throw(("You can't unlock sharetokens till " + toString(userLockedHeigt)))
545551 else {
546552 let userStakedAmountNew = (userStakedAmount + userLockedAmount)
547- let $t02769127790 = claimCalc(pool, user)
548- let farmInterest = $t02769127790._1
549- let boostInterest = $t02769127790._2
550- let boostLPinterest = $t02769127790._3
551- let claimAmount = $t02769127790._4
552- let toTreasure = $t02769127790._5
553+ let $t02780727906 = claimCalc(pool, user)
554+ let farmInterest = $t02780727906._1
555+ let boostInterest = $t02780727906._2
556+ let boostLPinterest = $t02780727906._3
557+ let claimAmount = $t02780727906._4
558+ let toTreasure = $t02780727906._5
553559 let availableFundsNew = (userAvailableSWOP(pool, i.originCaller) + claimAmount)
554-[IntegerEntry((((pool + "_") + user) + kFarmUserLastInterest), farmInterest), IntegerEntry((((pool + "_") + user) + kBoostUserLastInterest), boostInterest), IntegerEntry((((pool + "_") + user) + kBoostLPLastInterest), boostLPinterest), IntegerEntry((pool + kFarmLastInterest), farmInterest), IntegerEntry((pool + kBoostLastInterest), boostInterest), IntegerEntry((pool + kBoostLPLastInterest), boostLPinterest), IntegerEntry((pool + kLastInterestHeight), height), IntegerEntry((((pool + "_") + user) + kUserShareTokensStaked), userStakedAmountNew), IntegerEntry((((pool + "_") + user) + kUserShareTokensVirtual), userStakedAmountNew), IntegerEntry((pool + kShareTokensVirtual), ((totalShareVirtual - userAmountVirtual) + userStakedAmountNew)), DeleteEntry((((pool + "_") + user) + kUserShareTokensLocked)), DeleteEntry((((pool + "_") + user) + kUserShareTokensLockedHeight)), DeleteEntry((((pool + "_") + user) + kUserShareTokensLockedType)), Reissue(SWOP, toTreasure, true), ScriptTransfer(airdropMoneyBoxAddr, toTreasure, SWOP), ScriptTransfer(i.caller, lockWavesFee, unit)]
560+[IntegerEntry((((pool + "_") + user) + kFarmUserLastInterest), farmInterest), IntegerEntry((((pool + "_") + user) + kBoostUserLastInterest), boostInterest), IntegerEntry((((pool + "_") + user) + kBoostLPLastInterest), boostLPinterest), IntegerEntry((pool + kFarmLastInterest), farmInterest), IntegerEntry((pool + kBoostLastInterest), boostInterest), IntegerEntry((pool + kBoostLPLastInterest), boostLPinterest), IntegerEntry((pool + kLastInterestHeight), height), IntegerEntry((((pool + "_") + user) + kUserShareTokensStaked), userStakedAmountNew), IntegerEntry((((pool + "_") + user) + kUserShareTokensVirtual), userStakedAmountNew), IntegerEntry((pool + kShareTokensVirtual), ((totalShareVirtual - userAmountVirtual) + userStakedAmountNew)), DeleteEntry((((pool + "_") + user) + kUserShareTokensLocked)), DeleteEntry((((pool + "_") + user) + kUserShareTokensLockedHeight)), DeleteEntry((((pool + "_") + user) + kUserShareTokensLockedType)), Reissue(SWOP, toTreasure, true), ScriptTransfer(farmingTreasureAddr, toTreasure, SWOP), ScriptTransfer(i.caller, lockWavesFee, unit)]
555561 }
556562 })
557563
558564
559565
560566 @Callable(i)
561567 func withdrawShareTokens (pool,shareTokensWithdrawAmount) = valueOrElse(isActive(), {
562568 let shareTokensId = fromBase58String(getStringValue(value(addressFromString(pool)), "share_asset_id"))
563569 let user = toString(i.originCaller)
564- let $t02929429393 = claimCalc(pool, user)
565- let farmInterest = $t02929429393._1
566- let boostInterest = $t02929429393._2
567- let boostLPinterest = $t02929429393._3
568- let claimAmount = $t02929429393._4
569- let toTreasure = $t02929429393._5
570+ let $t02941029509 = claimCalc(pool, user)
571+ let farmInterest = $t02941029509._1
572+ let boostInterest = $t02941029509._2
573+ let boostLPinterest = $t02941029509._3
574+ let claimAmount = $t02941029509._4
575+ let toTreasure = $t02941029509._5
570576 let userStakedAmount = valueOrElse(getInteger(this, (((pool + "_") + user) + kUserShareTokensStaked)), 0)
571577 let userLockedAmount = valueOrElse(getInteger(this, (((pool + "_") + user) + kUserShareTokensLocked)), 0)
572578 let userStakedAmountNew = (userStakedAmount - shareTokensWithdrawAmount)
573579 let availableFundsNew = (userAvailableSWOP(pool, i.originCaller) + claimAmount)
574580 let totalShareAmount = getTotalShareTokenStaked(pool)
575581 let totalShareAmountNew = (totalShareAmount - shareTokensWithdrawAmount)
576- if ((shareTokensWithdrawAmount > userStakedAmountNew))
582+ if ((shareTokensWithdrawAmount > userStakedAmount))
577583 then throw("Withdraw amount more then user locked amount")
578584 else if ((accountBalance(shareTokensId) > totalShareAmount))
579585 then throw("Balance of share-token is lower than totalAmount")
580586 else {
581587 let uplp = if ((getString(Address(fromBase58String(pool)), "version") == "3.0.0"))
582588 then invoke(lpFarmingAddress, "updateUserInterest", [pool, (userStakedAmount + userLockedAmount)], nil)
583589 else 0
584590 if ((uplp == uplp))
585- then [IntegerEntry((((pool + "_") + user) + kFarmUserLastInterest), farmInterest), IntegerEntry((((pool + "_") + user) + kBoostUserLastInterest), boostInterest), IntegerEntry((((pool + "_") + user) + kBoostLPLastInterest), boostLPinterest), IntegerEntry((pool + kFarmLastInterest), farmInterest), IntegerEntry((pool + kBoostLastInterest), boostInterest), IntegerEntry((pool + kBoostLPLastInterest), boostLPinterest), IntegerEntry((pool + kLastInterestHeight), height), IntegerEntry((((pool + "_") + user) + kUserShareTokensStaked), userStakedAmountNew), IntegerEntry((pool + kShareTotalShareTokens), totalShareAmountNew), IntegerEntry((((pool + "_") + user) + kAvailableSWOP), availableFundsNew), Reissue(SWOP, toTreasure, true), ScriptTransfer(airdropMoneyBoxAddr, toTreasure, SWOP), ScriptTransfer(i.caller, shareTokensWithdrawAmount, shareTokensId)]
591+ then [IntegerEntry((((pool + "_") + user) + kFarmUserLastInterest), farmInterest), IntegerEntry((((pool + "_") + user) + kBoostUserLastInterest), boostInterest), IntegerEntry((((pool + "_") + user) + kBoostLPLastInterest), boostLPinterest), IntegerEntry((pool + kFarmLastInterest), farmInterest), IntegerEntry((pool + kBoostLastInterest), boostInterest), IntegerEntry((pool + kBoostLPLastInterest), boostLPinterest), IntegerEntry((pool + kLastInterestHeight), height), IntegerEntry((((pool + "_") + user) + kUserShareTokensStaked), userStakedAmountNew), IntegerEntry((pool + kShareTotalShareTokens), totalShareAmountNew), IntegerEntry((((pool + "_") + user) + kAvailableSWOP), availableFundsNew), Reissue(SWOP, toTreasure, true), ScriptTransfer(farmingTreasureAddr, toTreasure, SWOP), ScriptTransfer(i.caller, shareTokensWithdrawAmount, shareTokensId)]
586592 else throw("Strict value is not equal to itself.")
587593 }
588594 })
589595
590596
591597
592598 @Callable(i)
593599 func claim (pool) = valueOrElse(isActive(), {
594600 let shareTokensId = fromBase58String(getStringValue(value(addressFromString(pool)), "share_asset_id"))
595601 let user = toString(i.caller)
596602 let shareTokenLocked = getTotalShareTokenStaked(pool)
597- let $t03153931638 = claimCalc(pool, user)
598- let farmInterest = $t03153931638._1
599- let boostInterest = $t03153931638._2
600- let boostLPinterest = $t03153931638._3
601- let claimAmount = $t03153931638._4
602- let toTreasure = $t03153931638._5
603+ let $t03165231751 = claimCalc(pool, user)
604+ let farmInterest = $t03165231751._1
605+ let boostInterest = $t03165231751._2
606+ let boostLPinterest = $t03165231751._3
607+ let claimAmount = $t03165231751._4
608+ let toTreasure = $t03165231751._5
603609 let availableFund = (userAvailableSWOP(pool, i.caller) + claimAmount)
604610 if ((availableFund == 0))
605611 then throw("You have 0 available SWOP")
606612 else if ((accountBalance(shareTokensId) > shareTokenLocked))
607613 then throw("Balance of share-token is lower than totalAmount")
608- else $Tuple2([IntegerEntry((((pool + "_") + user) + kFarmUserLastInterest), farmInterest), IntegerEntry((((pool + "_") + user) + kBoostUserLastInterest), boostInterest), IntegerEntry((((pool + "_") + user) + kBoostLPLastInterest), boostLPinterest), IntegerEntry((pool + kFarmLastInterest), farmInterest), IntegerEntry((pool + kBoostLastInterest), boostInterest), IntegerEntry((pool + kBoostLPLastInterest), boostLPinterest), IntegerEntry((pool + kLastInterestHeight), height), IntegerEntry((((pool + "_") + user) + kAvailableSWOP), 0), Reissue(SWOP, (toTreasure + availableFund), true), ScriptTransfer(airdropMoneyBoxAddr, toTreasure, SWOP), ScriptTransfer(i.caller, availableFund, SWOP)], availableFund)
614+ else $Tuple2([IntegerEntry((((pool + "_") + user) + kFarmUserLastInterest), farmInterest), IntegerEntry((((pool + "_") + user) + kBoostUserLastInterest), boostInterest), IntegerEntry((((pool + "_") + user) + kBoostLPLastInterest), boostLPinterest), IntegerEntry((pool + kFarmLastInterest), farmInterest), IntegerEntry((pool + kBoostLastInterest), boostInterest), IntegerEntry((pool + kBoostLPLastInterest), boostLPinterest), IntegerEntry((pool + kLastInterestHeight), height), IntegerEntry((((pool + "_") + user) + kAvailableSWOP), 0), Reissue(SWOP, (toTreasure + availableFund), true), ScriptTransfer(farmingTreasureAddr, toTreasure, SWOP), ScriptTransfer(i.caller, availableFund, SWOP)], availableFund)
609615 })
610616
611617
612618
613619 @Callable(i)
614620 func claimAndStake (pool) = valueOrElse(isActive(), {
615621 let claimAmount = {
616622 let @ = invoke(this, "claim", [pool], nil)
617623 if ($isInstanceOf(@, "Int"))
618624 then @
619625 else throw(($getType(@) + " couldn't be cast to Int"))
620626 }
621627 if ((claimAmount == claimAmount))
622628 then {
623629 let stakeToGov = invoke(govAddress, "lockSWOPFromFarming", nil, [AttachedPayment(SWOP, claimAmount)])
624630 if ((stakeToGov == stakeToGov))
625631 then nil
626632 else throw("Strict value is not equal to itself.")
627633 }
628634 else throw("Strict value is not equal to itself.")
629635 })
630636
631637
632638
633639 @Callable(i)
634640 func claimAll (pools) = valueOrElse(isActive(), {
635641 func claimInv (claimTotal,pool) = {
636642 let claimAmount = {
637643 let @ = invoke(this, "claim", [pool], nil)
638644 if ($isInstanceOf(@, "Int"))
639645 then @
640646 else throw(($getType(@) + " couldn't be cast to Int"))
641647 }
642648 if ((claimAmount == claimAmount))
643649 then (claimTotal + claimAmount)
644650 else throw("Strict value is not equal to itself.")
645651 }
646652
647653 let claimTotal = {
648654 let $l = pools
649655 let $s = size($l)
650656 let $acc0 = 0
651657 func $f0_1 ($a,$i) = if (($i >= $s))
652658 then $a
653659 else claimInv($a, $l[$i])
654660
655661 func $f0_2 ($a,$i) = if (($i >= $s))
656662 then $a
657663 else throw("List size exceeds 60")
658664
659665 $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)
660666 }
661667 if ((claimTotal == 0))
662668 then throw("You have 0 available SWOP")
663669 else [ScriptTransfer(i.caller, claimTotal, SWOP)]
664670 })
665671
666672
667673
668674 @Callable(i)
669675 func claimAllAndStake (pools) = valueOrElse(isActive(), {
670676 func claimInv (claimTotal,pool) = {
671677 let claimAmount = {
672678 let @ = invoke(this, "claim", [pool], nil)
673679 if ($isInstanceOf(@, "Int"))
674680 then @
675681 else throw(($getType(@) + " couldn't be cast to Int"))
676682 }
677683 if ((claimAmount == claimAmount))
678684 then (claimTotal + claimAmount)
679685 else throw("Strict value is not equal to itself.")
680686 }
681687
682688 let claimTotal = {
683689 let $l = pools
684690 let $s = size($l)
685691 let $acc0 = 0
686692 func $f0_1 ($a,$i) = if (($i >= $s))
687693 then $a
688694 else claimInv($a, $l[$i])
689695
690696 func $f0_2 ($a,$i) = if (($i >= $s))
691697 then $a
692698 else throw("List size exceeds 60")
693699
694700 $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)
695701 }
696702 if ((claimTotal == 0))
697703 then throw("You have 0 available SWOP")
698704 else {
699705 let stakeToGov = invoke(govAddress, "lockSWOPFromFarming", nil, [AttachedPayment(SWOP, claimTotal)])
700706 if ((stakeToGov == stakeToGov))
701707 then nil
702708 else throw("Strict value is not equal to itself.")
703709 }
704710 })
705711
706712
707713
708714 @Callable(i)
709715 func updateUserBoostInterest (pool,user) = valueOrElse(isActive(), if ((i.caller != votingAddress))
710716 then throw("Only voiting can call this function")
711717 else {
712- let $t03401834117 = claimCalc(pool, user)
713- let farmInterest = $t03401834117._1
714- let boostInterest = $t03401834117._2
715- let boostLPinterest = $t03401834117._3
716- let claimAmount = $t03401834117._4
717- let toTreasure = $t03401834117._5
718+ let $t03413134230 = claimCalc(pool, user)
719+ let farmInterest = $t03413134230._1
720+ let boostInterest = $t03413134230._2
721+ let boostLPinterest = $t03413134230._3
722+ let claimAmount = $t03413134230._4
723+ let toTreasure = $t03413134230._5
718724 let availableFundsNew = (userAvailableSWOP(pool, i.originCaller) + claimAmount)
719-[IntegerEntry((((pool + "_") + user) + kFarmUserLastInterest), farmInterest), IntegerEntry((((pool + "_") + user) + kBoostUserLastInterest), boostInterest), IntegerEntry((((pool + "_") + user) + kBoostLPLastInterest), boostLPinterest), IntegerEntry((pool + kFarmLastInterest), farmInterest), IntegerEntry((pool + kBoostLastInterest), boostInterest), IntegerEntry((pool + kBoostLPLastInterest), boostLPinterest), IntegerEntry((pool + kLastInterestHeight), height), IntegerEntry((((pool + "_") + user) + kAvailableSWOP), availableFundsNew), Reissue(SWOP, toTreasure, true), ScriptTransfer(airdropMoneyBoxAddr, toTreasure, SWOP)]
725+[IntegerEntry((((pool + "_") + user) + kFarmUserLastInterest), farmInterest), IntegerEntry((((pool + "_") + user) + kBoostUserLastInterest), boostInterest), IntegerEntry((((pool + "_") + user) + kBoostLPLastInterest), boostLPinterest), IntegerEntry((pool + kFarmLastInterest), farmInterest), IntegerEntry((pool + kBoostLastInterest), boostInterest), IntegerEntry((pool + kBoostLPLastInterest), boostLPinterest), IntegerEntry((pool + kLastInterestHeight), height), IntegerEntry((((pool + "_") + user) + kAvailableSWOP), availableFundsNew), Reissue(SWOP, toTreasure, true), ScriptTransfer(farmingTreasureAddr, toTreasure, SWOP)]
720726 })
721727
722728
723729
724730 @Callable(i)
725731 func shutdown () = valueOrElse(isAdminCall(i), if (!(active))
726732 then throw(("DApp is already suspended. Cause: " + valueOrElse(getString(this, kCause), "the cause wasn't specified")))
727733 else suspend("Paused by admin"))
728734
729735
730736
731737 @Callable(i)
732738 func activate () = valueOrElse(isAdminCall(i), if (active)
733739 then throw("DApp is already active")
734740 else [BooleanEntry(kActive, true), DeleteEntry(kCause)])
735741
736742
737743 @Verifier(tx)
738744 func verify () = match tx {
739745 case _ =>
740746 let adminPubKey1Signed = if (sigVerify(tx.bodyBytes, tx.proofs[0], adminPubKey1))
741747 then 1
742748 else 0
743749 let adminPubKey2Signed = if (sigVerify(tx.bodyBytes, tx.proofs[1], adminPubKey2))
744750 then 1
745751 else 0
746752 let adminPubKey3Signed = if (sigVerify(tx.bodyBytes, tx.proofs[2], adminPubKey3))
747753 then 1
748754 else 0
749755 (((adminPubKey1Signed + adminPubKey2Signed) + adminPubKey3Signed) >= 2)
750756 }
751757

github/deemru/w8io/169f3d6 
151.20 ms