tx · CJiJrXDdFYXgKdqoRYvnyCtSfbmXB6dBxURCHn1RUuFF

3MsXpzisJAwnzUr7XrEoW1BZo4U6rw4tsYK:  -0.04200000 Waves

2023.08.17 13:53 [2714503] smart account 3MsXpzisJAwnzUr7XrEoW1BZo4U6rw4tsYK > SELF 0.00000000 Waves

{ "type": 13, "id": "CJiJrXDdFYXgKdqoRYvnyCtSfbmXB6dBxURCHn1RUuFF", "fee": 4200000, "feeAssetId": null, "timestamp": 1692269700893, "version": 2, "chainId": 84, "sender": "3MsXpzisJAwnzUr7XrEoW1BZo4U6rw4tsYK", "senderPublicKey": "FFdBua5rzzMkZebvsvmN7sAdU7XhFK8QNJ3hiwwxAYRA", "proofs": [ "4BHbHauboSGcq3AtpbCAM68FG6PFKtc7F79j3EFrdNYnAPda36h2A9MbD7Lyw1futiZa2cPXqZRReuBmXYNCKr6Z", "4idwa6B9b9ZevuiZ3X5t6Pt3NthTRQmeLd1f1eUPwvp6ySYHrG8ARGDwVbN19ryPuX7noTvxTXzNq7voE1KKBoYL" ], "script": "base64:BgJiCAISAwoBCBIDCgEIEgMKAQgSBAoCCAESBQoDAggBEgUKAwgBARIECgIICBIECgIICBIECgIIARIFCgMCCAESAwoBCBIECgIIAhIDCgEIEgMKARgSAwoBGBIECgIICBIAEgBpAAdrQWN0aXZlAgZhY3RpdmUAC2tBY3RpdmVHbG9iAhRhY3RpdmVfYWxsX2NvbnRyYWN0cwAPa0RlcHJlY2F0ZWRQb29sAgtkZXByZWNhdGVkXwAGa0NhdXNlAg5zaHV0ZG93bl9jYXVzZQAaa1Jld2FyZFBvb2xGcmFjdGlvbkN1cnJlbnQCHV9jdXJyZW50X3Bvb2xfZnJhY3Rpb25fcmV3YXJkABtrUmV3YXJkUG9vbEZyYWN0aW9uUHJldmlvdXMCHl9wcmV2aW91c19wb29sX2ZyYWN0aW9uX3Jld2FyZAATa0hlaWdodFBvb2xGcmFjdGlvbgIaX3Bvb2xfcmV3YXJkX3VwZGF0ZV9oZWl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BaQMFBmFjdGl2ZQkAAgECFkRBcHAgaXMgYWxyZWFkeSBhY3RpdmUJAMwIAgkBDEJvb2xlYW5FbnRyeQIFB2tBY3RpdmUGCQDMCAIJAQtEZWxldGVFbnRyeQEFBmtDYXVzZQUDbmlsAQJ0eAEGdmVyaWZ5AAQHJG1hdGNoMAUCdHgEEmFkbWluUHViS2V5MVNpZ25lZAMJAPQDAwgFAnR4CWJvZHlCeXRlcwkAkQMCCAUCdHgGcHJvb2ZzAAAFDGFkbWluUHViS2V5MQABAAAEEmFkbWluUHViS2V5MlNpZ25lZAMJAPQDAwgFAnR4CWJvZHlCeXRlcwkAkQMCCAUCdHgGcHJvb2ZzAAEFDGFkbWluUHViS2V5MgABAAAEEmFkbWluUHViS2V5M1NpZ25lZAMJAPQDAwgFAnR4CWJvZHlCeXRlcwkAkQMCCAUCdHgGcHJvb2ZzAAIFDGFkbWluUHViS2V5MwABAAAJAGcCCQBkAgkAZAIFEmFkbWluUHViS2V5MVNpZ25lZAUSYWRtaW5QdWJLZXkyU2lnbmVkBRJhZG1pblB1YktleTNTaWduZWQAAl7Za14=", "height": 2714503, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 5uVntR9kpZ69bPn5GWmWVsVgFkoycLi1R5wH4UdgpUvv Next: 3hHUTTcJbRMnH3YvGipvoZgsiKJW4T6gZW8vks7fbrpw Diff:
OldNewDifferences
9393
9494 let kFarmingTreasureAddr = "farming_treasure"
9595
96+let kAxlyFarming = "axly_farming"
97+
98+let kAxlyLpId = "axly_lp_id"
99+
96100 let oracle = Address(base58'3MvVBtsXroQpy1tsPw21TU2ET9A8WfmrNjz')
97101
98102 let totalVoteShare = 10000000000
143147
144148 let cpmmContract = Address(getBase58FromOracle(kCpmmContract))
145149
150+let axlyFarmAddr = Address(getBase58FromOracle(kAxlyFarming))
151+
152+let axlyLpId = getBase58FromOracle(kAxlyLpId)
153+
146154 let active = getBooleanValue(this, kActive)
147155
148156 let activeGlob = valueOrElse(getBoolean(oracle, kActiveGlob), true)
152160 func getRewardsPerBlockInfo () = {
153161 let emissionPeriods = ((height - startEmissionH) / blocksPerYear)
154162 func calcEmission (acc,i) = {
155- let $t049564993 = acc
156- let curEmission = $t049564993._1
157- let prevEmission = $t049564993._2
163+ let $t051275164 = acc
164+ let curEmission = $t051275164._1
165+ let prevEmission = $t051275164._2
158166 if ((emissionPeriods > i))
159167 then $Tuple2(fraction(curEmission, 75, 100), curEmission)
160168 else $Tuple2(curEmission, prevEmission)
161169 }
162170
163- let $t051515317 = {
171+ let $t053225488 = {
164172 let $l = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19]
165173 let $s = size($l)
166174 let $acc0 = $Tuple2(swopYearEmission, swopYearEmission)
174182
175183 $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)
176184 }
177- let curEmission = $t051515317._1
178- let prevEmission = $t051515317._2
185+ let curEmission = $t053225488._1
186+ let prevEmission = $t053225488._2
179187 $Tuple3((curEmission / blocksPerYear), (prevEmission / blocksPerYear), (startEmissionH + (blocksPerYear * emissionPeriods)))
180188 }
181189
220228
221229
222230 func rewardInfo (pool) = {
223- let $t071327247 = getRewardsPerBlockInfo()
224- let totalRewardPerBlockCurrent = $t071327247._1
225- let totalRewardPerBlockPrevious = $t071327247._2
226- let lastEmissionUpdateHeight = $t071327247._3
231+ let $t073037418 = getRewardsPerBlockInfo()
232+ let totalRewardPerBlockCurrent = $t073037418._1
233+ let totalRewardPerBlockPrevious = $t073037418._2
234+ let lastEmissionUpdateHeight = $t073037418._3
227235 let rewardPoolFractionCurrent = valueOrErrorMessage(getInteger(govAddress, (pool + kRewardPoolFractionCurrent)), (((("No data on the key: " + pool) + kRewardPoolFractionCurrent) + " at address ") + toString(govAddress)))
228236 let rewardUpdateHeight = valueOrErrorMessage(getInteger(govAddress, kRewardUpdateHeight), ((("No data on the key: " + kRewardUpdateHeight) + " at address ") + toString(govAddress)))
229237 let poolRewardUpdateHeight = valueOrElse(getInteger(govAddress, (pool + kHeightPoolFraction)), rewardUpdateHeight)
261269
262270
263271 func calcInterest (pool,lastInterestHeight,rewardUpdateHeight,poolRewardUpdateHeight,farmInterest,boostInterest,poolVoted,currentRewardPerBlock,shareTokenLocked,previousRewardPerBlock,scaleValue,toHeight) = {
264- let $t01026111446 = if (if (if ((rewardUpdateHeight > toHeight))
272+ let $t01043211617 = if (if (if ((rewardUpdateHeight > toHeight))
265273 then (rewardUpdateHeight == poolRewardUpdateHeight)
266274 else false)
267275 then true
290298 let rwd = (currentRewardPerBlock * (toHeight - rewardUpdateHeight))
291299 $Tuple3(rwd, fBfrUp, bBfrUp)
292300 }
293- let reward = $t01026111446._1
294- let farmIntrBefore = $t01026111446._2
295- let boostIntrBefore = $t01026111446._3
301+ let reward = $t01043211617._1
302+ let farmIntrBefore = $t01043211617._2
303+ let boostIntrBefore = $t01043211617._3
296304 let newFarmInterest = (farmIntrBefore + fraction(calcFarmRwd(pool, reward), scaleValue, shareTokenLocked))
297305 let newBoostInterest = (boostIntrBefore + (if ((poolVoted > 0))
298306 then fraction(calcBoostRwd(pool, reward), scaleValue8, poolVoted)
308316 let shareToken = getTotalShareToken(pool)
309317 let totalShareVirtual = valueOrElse(getInteger(this, (pool + kShareTokensVirtual)), shareToken)
310318 let stratBFarmInterest = valueOrElse(getInteger(this, (pool + kStratBFarmInterest)), 0)
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
319+ let $t01245512536 = getLastInterestInfo(pool)
320+ let lastInterestHeight = $t01245512536._1
321+ let farmInterest = $t01245512536._2
322+ let boostInterest = $t01245512536._3
323+ let $t01254112798 = rewardInfo(pool)
324+ let currentRewardPerBlock = $t01254112798._1
325+ let rewardUpdateHeight = $t01254112798._2
326+ let previousRewardPerBlock = $t01254112798._3
327+ let poolRewardUpdateHeight = $t01254112798._4
328+ let emissionUpdateHeight = $t01254112798._5
329+ let prevCurrentRewardPerBlock = $t01254112798._6
330+ let prevPreviousRewardPerBlock = $t01254112798._7
323331 let uFarmInterest = valueOrElse(getInteger(this, (((pool + "_") + user) + kFarmUserLastInterest)), farmInterest)
324332 let uBoostInterest = valueOrElse(getInteger(this, (((pool + "_") + user) + kBoostUserLastInterest)), if (if ((stratBFarmInterest > uFarmInterest))
325333 then (uPoolVoted > 0)
337345 $Tuple5(farmInterest, boostInterest, 0, (toTreasury - teamReward), teamReward)
338346 }
339347 else {
340- let $t01367014807 = if ((emissionUpdateHeight > lastInterestHeight))
348+ let $t01384114978 = if ((emissionUpdateHeight > lastInterestHeight))
341349 then {
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
350+ let $t01425414813 = calcInterest(pool, lastInterestHeight, rewardUpdateHeight, poolRewardUpdateHeight, farmInterest, boostInterest, poolVoted, prevCurrentRewardPerBlock, totalShareVirtual, prevPreviousRewardPerBlock, scaleValue, emissionUpdateHeight)
351+ let prevNewFarmInterest = $t01425414813._1
352+ let prevNewBoostInterest = $t01425414813._2
345353 $Tuple3(prevNewFarmInterest, prevNewBoostInterest, emissionUpdateHeight)
346354 }
347355 else $Tuple3(farmInterest, boostInterest, lastInterestHeight)
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
356+ let prevFarmInterest = $t01384114978._1
357+ let prevBoostInterest = $t01384114978._2
358+ let LIHeight = $t01384114978._3
359+ let $t01498715410 = calcInterest(pool, LIHeight, rewardUpdateHeight, poolRewardUpdateHeight, prevFarmInterest, prevBoostInterest, poolVoted, currentRewardPerBlock, totalShareVirtual, previousRewardPerBlock, scaleValue, height)
360+ let newFarmInterest = $t01498715410._1
361+ let newBoostInterest = $t01498715410._2
354362 let farmRwd = fraction(uShareTokensVirt, (newFarmInterest - uFarmInterest), scaleValue)
355363 let poolBoostCoef = valueOrElse(getInteger(this, (pool + kPoolBoostCoef)), defPoolBoostCoef)
356364 let boostRwdMax = fraction(fraction(uShareTokensVirt, (newFarmInterest - max([uFarmInterest, stratBFarmInterest])), scaleValue), poolBoostCoef, lockBoostCoefScale)
367375
368376 func availableClaimCalcAllByUser (pools,user) = {
369377 func calcAvailable (acc,pool) = {
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
378+ let $t01636416393 = acc
379+ let newPools = $t01636416393._1
380+ let amounts = $t01636416393._2
381+ let $t01640216455 = claimCalc(pool, user)
382+ let fi = $t01640216455._1
383+ let bi = $t01640216455._2
384+ let claimAmount = $t01640216455._3
385+ let tt = $t01640216455._4
378386 let availableFund = (userAvailableSWOP(pool, user) + claimAmount)
379387 $Tuple2((newPools :+ pool), (amounts :+ availableFund))
380388 }
453461
454462
455463 func calcLockShareTokens (i,caller,pool,lockType) = {
464+ let inv = if ((i.payments[0].assetId == axlyLpId))
465+ then invoke(axlyFarmAddr, "lpAction", nil, nil)
466+ else nil
456467 let shareAssetId = getShareAssetId(pool)
457468 let user = toString(caller)
458469 let totalShare = getTotalShareToken(pool)
462473 let userLockedAmount = valueOrElse(getInteger(this, (((pool + "_") + user) + kUserShareTokensLocked)), 0)
463474 let userAmountVirtual = valueOrElse(getInteger(this, (((pool + "_") + user) + kUserShareTokensVirtual)), userStakedAmount)
464475 let totalUserShareTokens = ((userStakedAmount + userLockedAmount) + i.payments[0].amount)
465- let $t01940819460 = getLockParams(lockType)
466- let lockPeriod = $t01940819460._1
467- let lockCoef = $t01940819460._2
476+ let $t01968419736 = getLockParams(lockType)
477+ let lockPeriod = $t01968419736._1
478+ let lockCoef = $t01968419736._2
468479 let lockWavesFee = getIntegerValue(this, kLockWavesFee)
469480 if ((i.payments[0].assetId != shareAssetId))
470481 then throw("Wrong sharetoken in payment")
476487 let shareTokensChangeOnFH = canLockInFirstHarvest(pool, user, userStakedAmount, i.payments[0].amount, lockType)
477488 if ((shareTokensChangeOnFH == shareTokensChangeOnFH))
478489 then {
479- let $t01988721821 = if ((lockType == 0))
490+ let $t02016322097 = if ((lockType == 0))
480491 then {
481492 let userAmountVirtualNew = ((userAmountVirtual + i.payments[0].amount) - shareTokensChangeOnFH)
482493 $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))
497508 let userAmountVirtualNew = (fraction(userLockedAmountNew, lockCoef, lockBoostCoefScale) + userStakedAmount)
498509 $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))
499510 }
500- let lockEntries = $t01988721821._1
501- let totalShareNew = $t01988721821._2
511+ let lockEntries = $t02016322097._1
512+ let totalShareNew = $t02016322097._2
502513 if ((totalShareNew > accountBalance(shareAssetId)))
503514 then throw("Balance of share-token is lower than totalAmount")
504515 else {
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
516+ let $t02222222316 = claimCalc(pool, user)
517+ let farmInterest = $t02222222316._1
518+ let boostInterest = $t02222222316._2
519+ let claimAmount = $t02222222316._3
520+ let toTreasure = $t02222222316._4
521+ let teamReward = $t02222222316._5
511522 let availableFundsNew = (userAvailableSWOP(pool, user) + claimAmount)
512523 let uplp = if ((getString(Address(fromBase58String(pool)), "version") == "3.0.0"))
513524 then invoke(lpFarmingAddress, "updateUserInterest", [user, pool, totalUserShareTokens], nil)
529540 if ((inv == inv))
530541 then {
531542 let shareTokensId = fromBase58String(getStringValue(value(addressFromString(pool)), "share_asset_id"))
543+ let inv1 = if ((shareTokensId == axlyLpId))
544+ then invoke(axlyFarmAddr, "lpAction", nil, nil)
545+ else nil
532546 let user = toString(caller)
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
547+ let $t02378223876 = claimCalc(pool, user)
548+ let farmInterest = $t02378223876._1
549+ let boostInterest = $t02378223876._2
550+ let claimAmount = $t02378223876._3
551+ let toTreasure = $t02378223876._4
552+ let teamReward = $t02378223876._5
539553 let userStakedAmount = valueOrElse(getInteger(this, (((pool + "_") + user) + kUserShareTokensStaked)), 0)
540554 let userLockedAmount = valueOrElse(getInteger(this, (((pool + "_") + user) + kUserShareTokensLocked)), 0)
541555 let userAmountVirtual = valueOrElse(getInteger(this, (((pool + "_") + user) + kUserShareTokensVirtual)), userStakedAmount)
555569 then invoke(lpFarmingAddress, "updateUserInterest", [user, pool, (userStakedAmount + userLockedAmount)], nil)
556570 else 0
557571 if ((uplp == uplp))
558- 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)]
572+ then [IntegerEntry((((pool + "_") + user) + kFarmUserLastInterest), farmInterest), IntegerEntry((((pool + "_") + user) + kBoostUserLastInterest), boostInterest), IntegerEntry((pool + kFarmLastInterest), farmInterest), IntegerEntry((pool + kBoostLastInterest), boostInterest), IntegerEntry((pool + kLastInterestHeight), height), IntegerEntry((((pool + "_") + user) + kUserShareTokensStaked), userStakedAmountNew), IntegerEntry((((pool + "_") + user) + kUserShareTokensVirtual), userAmountVirtualNew), IntegerEntry((pool + kShareTotalShareTokens), totalShareAmountNew), IntegerEntry((pool + kShareTokensVirtual), totalShareVirtualNew), IntegerEntry((((pool + "_") + user) + kAvailableSWOP), availableFundsNew), Reissue(SWOP, toTreasure, true), ScriptTransfer(farmingTreasureAddr, toTreasure, SWOP), ScriptTransfer(teamBoxAddress, teamReward, SWOP), ScriptTransfer(i.caller, shareTokensWithdrawAmount, shareTokensId)]
559573 else throw("Strict value is not equal to itself.")
560574 }
561575 }
567581 let shareTokensId = fromBase58String(getStringValue(value(addressFromString(pool)), "share_asset_id"))
568582 let user = toString(caller)
569583 let shareTokenLocked = getTotalShareToken(pool)
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
584+ let $t02644626540 = claimCalc(pool, user)
585+ let farmInterest = $t02644626540._1
586+ let boostInterest = $t02644626540._2
587+ let claimAmount = $t02644626540._3
588+ let toTreasure = $t02644626540._4
589+ let teamReward = $t02644626540._5
576590 let availableFund = (userAvailableSWOP(pool, user) + claimAmount)
577591 if ((accountBalance(shareTokensId) > shareTokenLocked))
578592 then throw("Balance of share-token is lower than totalAmount")
591605 let userLockedAmount = valueOrElse(getInteger(this, (((pool + "_") + user) + kUserShareTokensLocked)), 0)
592606 let userAmountVirtual = valueOrElse(getInteger(this, (((pool + "_") + user) + kUserShareTokensVirtual)), userStakedAmount)
593607 let userStakedAmountNew = (userStakedAmount + userLockedAmount)
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
608+ let $t02801428108 = claimCalc(pool, user)
609+ let farmInterest = $t02801428108._1
610+ let boostInterest = $t02801428108._2
611+ let claimAmount = $t02801428108._3
612+ let toTreasure = $t02801428108._4
613+ let teamReward = $t02801428108._5
600614 let availableFundsNew = (userAvailableSWOP(pool, user) + claimAmount)
601615 [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)]
602616 }
628642 then throw("Only Governance can call this function")
629643 else {
630644 let user = toString(addressFromPublicKey(adminInvokePubKey))
631- let $t03019730271 = claimCalc(pool, user)
632- let farmInterest = $t03019730271._1
633- let boostInterest = $t03019730271._2
634- let boostLPinterest = $t03019730271._3
645+ let $t03055830632 = claimCalc(pool, user)
646+ let farmInterest = $t03055830632._1
647+ let boostInterest = $t03055830632._2
648+ let boostLPinterest = $t03055830632._3
635649 [IntegerEntry((pool + kFarmLastInterest), farmInterest), IntegerEntry((pool + kBoostLastInterest), boostInterest), IntegerEntry((pool + kLastInterestHeight), height)]
636650 })
637651
658672 let userLockedAmount = valueOrElse(getInteger(this, (((pool + "_") + user) + kUserShareTokensLocked)), 0)
659673 let userAmountVirtual = valueOrElse(getInteger(this, (((pool + "_") + user) + kUserShareTokensVirtual)), userStakedAmount)
660674 let totalUserShareTokens = (userStakedAmount + userLockedAmount)
661- let $t03190031952 = getLockParams(lockType)
662- let lockPeriod = $t03190031952._1
663- let lockCoef = $t03190031952._2
675+ let $t03226132313 = getLockParams(lockType)
676+ let lockPeriod = $t03226132313._1
677+ let lockCoef = $t03226132313._2
664678 let lockWavesFee = getIntegerValue(this, kLockWavesFee)
665679 if ((getHeightFirstHarvest(pool) > height))
666680 then throw("You can't lock shareTokens till first harvest end.")
691705 let userStakedAmountNew = (userStakedAmount - lockAmount)
692706 let userLockedHeigtNew = (height + lockPeriod)
693707 let userAmountVirtualNew = (fraction(userLockedAmountNew, lockCoef, lockBoostCoefScale) + userStakedAmountNew)
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
708+ let $t03365933753 = claimCalc(pool, user)
709+ let farmInterest = $t03365933753._1
710+ let boostInterest = $t03365933753._2
711+ let claimAmount = $t03365933753._3
712+ let toTreasure = $t03365933753._4
713+ let teamReward = $t03365933753._5
700714 let availableFundsNew = (userAvailableSWOP(pool, user) + claimAmount)
701715 [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)]
702716 }
849863 func updateUserBoostInterest (pool,user) = valueOrElse(isActive(), if ((i.caller != votingAddress))
850864 then throw("Only voiting can call this function")
851865 else {
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
866+ let $t03857738671 = claimCalc(pool, user)
867+ let farmInterest = $t03857738671._1
868+ let boostInterest = $t03857738671._2
869+ let claimAmount = $t03857738671._3
870+ let toTreasure = $t03857738671._4
871+ let teamReward = $t03857738671._5
858872 let availableFundsNew = (userAvailableSWOP(pool, user) + claimAmount)
859873 [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)]
860874 })
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let kActive = "active"
55
66 let kActiveGlob = "active_all_contracts"
77
88 let kDeprecatedPool = "deprecated_"
99
1010 let kCause = "shutdown_cause"
1111
1212 let kRewardPoolFractionCurrent = "_current_pool_fraction_reward"
1313
1414 let kRewardPoolFractionPrevious = "_previous_pool_fraction_reward"
1515
1616 let kHeightPoolFraction = "_pool_reward_update_height"
1717
1818 let kRewardUpdateHeight = "reward_update_height"
1919
2020 let kUserShareTokensStaked = "_share_tokens_locked"
2121
2222 let kUserShareTokensLocked = "_share_tokens_blocked"
2323
2424 let kUserShareTokensLockedType = "_share_tokens_blocked_type"
2525
2626 let kUserShareTokensLockedHeight = "_share_tokens_blocked_height"
2727
2828 let kUserShareTokensVirtual = "_share_tokens_virtual"
2929
3030 let kShareTotalShareTokens = "_total_share_tokens_locked"
3131
3232 let kShareTokensVirtual = "_total_share_tokens_virtual"
3333
3434 let kLockParams = "_lock_params"
3535
3636 let kLockWavesFee = "lock_waves_fee"
3737
3838 let kPoolBoostCoef = "_boost_coef"
3939
4040 let kFarmLastInterest = "_last_interest"
4141
4242 let kFarmUserLastInterest = "_last_interest"
4343
4444 let kBoostLastInterest = "_last_interest_b"
4545
4646 let kBoostUserLastInterest = "_last_interest_u_b"
4747
4848 let kLastInterestHeight = "_last_interest_height"
4949
5050 let kSWOPid = "SWOP_id"
5151
5252 let kAvailableSWOP = "_available_SWOP"
5353
5454 let kHarvestPoolVote = "_harvest_pool_vote_gSWOP"
5555
5656 let kPoolVote = "_pool_vote_gSWOP"
5757
5858 let kUserPoolVote = "_user_vote_gSWOP"
5959
6060 let kPoolStruc = "_pool_struc"
6161
6262 let kUserPoolStruc = "_user_pool_struc"
6363
6464 let kHarvestUserPoolVote = "_harvest_user_pool_vote_gSWOP"
6565
6666 let kFirstHarvestHeight = "first_harvest_height"
6767
6868 let kShareLimitFH = "share_limit_on_first_harvest"
6969
7070 let kStratBFarmInterest = "_strat_b_farm_interest"
7171
7272 let kPoolInOracle = "pool_"
7373
7474 let kCpmmContract = "cpmm_contract"
7575
7676 let kAdminPubKey1 = "admin_pub_1"
7777
7878 let kAdminPubKey2 = "admin_pub_2"
7979
8080 let kAdminPubKey3 = "admin_pub_3"
8181
8282 let kAdminInvokePubKey = "admin_invoke_pub"
8383
8484 let kMoneyBoxAddress = "money_box_address"
8585
8686 let kTeamBoxAddress = "team_box_address"
8787
8888 let kVotingAddress = "voting_address"
8989
9090 let kGovAddress = "governance_address"
9191
9292 let kLPFarmingAddress = "lp_farming"
9393
9494 let kFarmingTreasureAddr = "farming_treasure"
9595
96+let kAxlyFarming = "axly_farming"
97+
98+let kAxlyLpId = "axly_lp_id"
99+
96100 let oracle = Address(base58'3MvVBtsXroQpy1tsPw21TU2ET9A8WfmrNjz')
97101
98102 let totalVoteShare = 10000000000
99103
100104 let scaleValue8 = 100000000
101105
102106 let scaleValue6 = 1000000
103107
104108 let lockBoostCoefScale = 1000
105109
106110 let defPoolBoostCoef = 500
107111
108112 let startEmissionH = 2976848
109113
110114 let swopYearEmission = 100000000000000
111115
112116 let blocksPerYear = 526330
113117
114118 let teamFee = 25
115119
116120 func getBase58FromOracle (key) = match getString(oracle, key) {
117121 case string: String =>
118122 fromBase58String(string)
119123 case nothing =>
120124 throw((key + "is empty"))
121125 }
122126
123127
124128 let adminPubKey1 = getBase58FromOracle(kAdminPubKey1)
125129
126130 let adminPubKey2 = getBase58FromOracle(kAdminPubKey2)
127131
128132 let adminPubKey3 = getBase58FromOracle(kAdminPubKey3)
129133
130134 let moneyBoxAddress = Address(getBase58FromOracle(kMoneyBoxAddress))
131135
132136 let teamBoxAddress = Address(getBase58FromOracle(kTeamBoxAddress))
133137
134138 let votingAddress = Address(getBase58FromOracle(kVotingAddress))
135139
136140 let govAddress = Address(getBase58FromOracle(kGovAddress))
137141
138142 let adminInvokePubKey = getBase58FromOracle(kAdminInvokePubKey)
139143
140144 let lpFarmingAddress = Address(getBase58FromOracle(kLPFarmingAddress))
141145
142146 let farmingTreasureAddr = Address(getBase58FromOracle(kFarmingTreasureAddr))
143147
144148 let cpmmContract = Address(getBase58FromOracle(kCpmmContract))
145149
150+let axlyFarmAddr = Address(getBase58FromOracle(kAxlyFarming))
151+
152+let axlyLpId = getBase58FromOracle(kAxlyLpId)
153+
146154 let active = getBooleanValue(this, kActive)
147155
148156 let activeGlob = valueOrElse(getBoolean(oracle, kActiveGlob), true)
149157
150158 let SWOP = fromBase58String(getStringValue(this, kSWOPid))
151159
152160 func getRewardsPerBlockInfo () = {
153161 let emissionPeriods = ((height - startEmissionH) / blocksPerYear)
154162 func calcEmission (acc,i) = {
155- let $t049564993 = acc
156- let curEmission = $t049564993._1
157- let prevEmission = $t049564993._2
163+ let $t051275164 = acc
164+ let curEmission = $t051275164._1
165+ let prevEmission = $t051275164._2
158166 if ((emissionPeriods > i))
159167 then $Tuple2(fraction(curEmission, 75, 100), curEmission)
160168 else $Tuple2(curEmission, prevEmission)
161169 }
162170
163- let $t051515317 = {
171+ let $t053225488 = {
164172 let $l = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19]
165173 let $s = size($l)
166174 let $acc0 = $Tuple2(swopYearEmission, swopYearEmission)
167175 func $f0_1 ($a,$i) = if (($i >= $s))
168176 then $a
169177 else calcEmission($a, $l[$i])
170178
171179 func $f0_2 ($a,$i) = if (($i >= $s))
172180 then $a
173181 else throw("List size exceeds 20")
174182
175183 $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)
176184 }
177- let curEmission = $t051515317._1
178- let prevEmission = $t051515317._2
185+ let curEmission = $t053225488._1
186+ let prevEmission = $t053225488._2
179187 $Tuple3((curEmission / blocksPerYear), (prevEmission / blocksPerYear), (startEmissionH + (blocksPerYear * emissionPeriods)))
180188 }
181189
182190
183191 func getHeightFirstHarvest (pool) = valueOrElse(getInteger(Address(fromBase58String(pool)), kFirstHarvestHeight), 0)
184192
185193
186194 func getFHShareLimitToken (pool) = valueOrErrorMessage(getInteger(pool, kShareLimitFH), ("No data on the key: " + kShareLimitFH))
187195
188196
189197 func getTotalShareToken (pool) = valueOrErrorMessage(getInteger(this, (pool + kShareTotalShareTokens)), (("No data on the key: " + pool) + kShareTotalShareTokens))
190198
191199
192200 func getPoolVoted (pool) = valueOrElse(getInteger(votingAddress, (pool + kPoolVote)), valueOrElse(parseInt(split(valueOrElse(getString(votingAddress, (pool + kPoolStruc)), ""), "_")[0]), 0))
193201
194202
195203 func getUserPoolVoted (pool,user) = valueOrElse(getInteger(votingAddress, (((user + "_") + pool) + kUserPoolVote)), valueOrElse(parseInt(split(valueOrElse(getString(votingAddress, (((user + "_") + pool) + kUserPoolStruc)), ""), "_")[0]), 0))
196204
197205
198206 func getShareAssetId (pool) = fromBase58String(getStringValue(value(addressFromString(pool)), "share_asset_id"))
199207
200208
201209 func accountBalance (assetId) = match assetId {
202210 case id: ByteVector =>
203211 assetBalance(this, id)
204212 case waves: Unit =>
205213 wavesBalance(this).available
206214 case _ =>
207215 throw("Match error")
208216 }
209217
210218
211219 func calcScaleValue (assetId1,assetId2) = {
212220 let assetId1Decimals = value(assetInfo(assetId1)).decimals
213221 let assetId2Decimals = value(assetInfo(assetId2)).decimals
214222 let scaleDigits = ((assetId2Decimals - assetId1Decimals) + 8)
215223 pow(10, 0, scaleDigits, 0, 0, DOWN)
216224 }
217225
218226
219227 func userAvailableSWOP (pool,user) = valueOrElse(getInteger(this, (((pool + "_") + user) + kAvailableSWOP)), 0)
220228
221229
222230 func rewardInfo (pool) = {
223- let $t071327247 = getRewardsPerBlockInfo()
224- let totalRewardPerBlockCurrent = $t071327247._1
225- let totalRewardPerBlockPrevious = $t071327247._2
226- let lastEmissionUpdateHeight = $t071327247._3
231+ let $t073037418 = getRewardsPerBlockInfo()
232+ let totalRewardPerBlockCurrent = $t073037418._1
233+ let totalRewardPerBlockPrevious = $t073037418._2
234+ let lastEmissionUpdateHeight = $t073037418._3
227235 let rewardPoolFractionCurrent = valueOrErrorMessage(getInteger(govAddress, (pool + kRewardPoolFractionCurrent)), (((("No data on the key: " + pool) + kRewardPoolFractionCurrent) + " at address ") + toString(govAddress)))
228236 let rewardUpdateHeight = valueOrErrorMessage(getInteger(govAddress, kRewardUpdateHeight), ((("No data on the key: " + kRewardUpdateHeight) + " at address ") + toString(govAddress)))
229237 let poolRewardUpdateHeight = valueOrElse(getInteger(govAddress, (pool + kHeightPoolFraction)), rewardUpdateHeight)
230238 let rewardPoolFractionPrevious = valueOrErrorMessage(getInteger(govAddress, (pool + kRewardPoolFractionPrevious)), (((("No data on the key: " + pool) + kRewardPoolFractionPrevious) + " at address ") + toString(govAddress)))
231239 let rewardPoolCurrent = fraction(totalRewardPerBlockCurrent, rewardPoolFractionCurrent, totalVoteShare)
232240 let rewardPoolPrevious = fraction(totalRewardPerBlockCurrent, rewardPoolFractionPrevious, totalVoteShare)
233241 let rewardPoolPrevCurrent = fraction(totalRewardPerBlockPrevious, rewardPoolFractionCurrent, totalVoteShare)
234242 let rewardPoolPrevPrevious = fraction(totalRewardPerBlockPrevious, rewardPoolFractionPrevious, totalVoteShare)
235243 if (if ((rewardPoolCurrent > totalRewardPerBlockCurrent))
236244 then true
237245 else (rewardPoolPrevious > totalRewardPerBlockPrevious))
238246 then throw("rewardPoolCurrent > totalRewardPerBlockCurrent or rewardPoolPrevious > totalRewardPerBlockPrevious")
239247 else $Tuple7(rewardPoolCurrent, rewardUpdateHeight, rewardPoolPrevious, poolRewardUpdateHeight, lastEmissionUpdateHeight, rewardPoolPrevCurrent, rewardPoolPrevPrevious)
240248 }
241249
242250
243251 func getLastInterestInfo (pool) = {
244252 let farmInterest = valueOrErrorMessage(getInteger(this, (pool + kFarmLastInterest)), (("No data on the key: " + pool) + kFarmLastInterest))
245253 let boostInterest = valueOrElse(getInteger(this, (pool + kBoostLastInterest)), 0)
246254 let lastInterestHeight = valueOrElse(getInteger(this, (pool + kLastInterestHeight)), height)
247255 $Tuple3(lastInterestHeight, farmInterest, boostInterest)
248256 }
249257
250258
251259 func calcFarmRwd (pool,curTotalReward) = {
252260 let poolBoostCoef = valueOrElse(getInteger(this, (pool + kPoolBoostCoef)), defPoolBoostCoef)
253261 fraction(curTotalReward, lockBoostCoefScale, (poolBoostCoef + lockBoostCoefScale))
254262 }
255263
256264
257265 func calcBoostRwd (pool,curTotalReward) = {
258266 let poolBoostCoef = valueOrElse(getInteger(this, (pool + kPoolBoostCoef)), defPoolBoostCoef)
259267 fraction(curTotalReward, poolBoostCoef, (poolBoostCoef + lockBoostCoefScale))
260268 }
261269
262270
263271 func calcInterest (pool,lastInterestHeight,rewardUpdateHeight,poolRewardUpdateHeight,farmInterest,boostInterest,poolVoted,currentRewardPerBlock,shareTokenLocked,previousRewardPerBlock,scaleValue,toHeight) = {
264- let $t01026111446 = if (if (if ((rewardUpdateHeight > toHeight))
272+ let $t01043211617 = if (if (if ((rewardUpdateHeight > toHeight))
265273 then (rewardUpdateHeight == poolRewardUpdateHeight)
266274 else false)
267275 then true
268276 else if ((toHeight > rewardUpdateHeight))
269277 then (rewardUpdateHeight != poolRewardUpdateHeight)
270278 else false)
271279 then {
272280 let r = (previousRewardPerBlock * (toHeight - lastInterestHeight))
273281 $Tuple3(r, farmInterest, boostInterest)
274282 }
275283 else if (if (if ((toHeight > rewardUpdateHeight))
276284 then (rewardUpdateHeight == poolRewardUpdateHeight)
277285 else false)
278286 then (lastInterestHeight > rewardUpdateHeight)
279287 else false)
280288 then {
281289 let r = (currentRewardPerBlock * (toHeight - lastInterestHeight))
282290 $Tuple3(r, farmInterest, boostInterest)
283291 }
284292 else {
285293 let rwdBfrUpd = (previousRewardPerBlock * (rewardUpdateHeight - lastInterestHeight))
286294 let fBfrUp = (farmInterest + fraction(calcFarmRwd(pool, rwdBfrUpd), scaleValue, shareTokenLocked))
287295 let bBfrUp = (boostInterest + (if ((poolVoted > 0))
288296 then fraction(calcBoostRwd(pool, rwdBfrUpd), scaleValue8, poolVoted)
289297 else 0))
290298 let rwd = (currentRewardPerBlock * (toHeight - rewardUpdateHeight))
291299 $Tuple3(rwd, fBfrUp, bBfrUp)
292300 }
293- let reward = $t01026111446._1
294- let farmIntrBefore = $t01026111446._2
295- let boostIntrBefore = $t01026111446._3
301+ let reward = $t01043211617._1
302+ let farmIntrBefore = $t01043211617._2
303+ let boostIntrBefore = $t01043211617._3
296304 let newFarmInterest = (farmIntrBefore + fraction(calcFarmRwd(pool, reward), scaleValue, shareTokenLocked))
297305 let newBoostInterest = (boostIntrBefore + (if ((poolVoted > 0))
298306 then fraction(calcBoostRwd(pool, reward), scaleValue8, poolVoted)
299307 else 0))
300308 $Tuple2(newFarmInterest, newBoostInterest)
301309 }
302310
303311
304312 func claimCalc (pool,user) = {
305313 let scaleValue = calcScaleValue(SWOP, getShareAssetId(pool))
306314 let poolVoted = getPoolVoted(pool)
307315 let uPoolVoted = getUserPoolVoted(pool, user)
308316 let shareToken = getTotalShareToken(pool)
309317 let totalShareVirtual = valueOrElse(getInteger(this, (pool + kShareTokensVirtual)), shareToken)
310318 let stratBFarmInterest = valueOrElse(getInteger(this, (pool + kStratBFarmInterest)), 0)
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
319+ let $t01245512536 = getLastInterestInfo(pool)
320+ let lastInterestHeight = $t01245512536._1
321+ let farmInterest = $t01245512536._2
322+ let boostInterest = $t01245512536._3
323+ let $t01254112798 = rewardInfo(pool)
324+ let currentRewardPerBlock = $t01254112798._1
325+ let rewardUpdateHeight = $t01254112798._2
326+ let previousRewardPerBlock = $t01254112798._3
327+ let poolRewardUpdateHeight = $t01254112798._4
328+ let emissionUpdateHeight = $t01254112798._5
329+ let prevCurrentRewardPerBlock = $t01254112798._6
330+ let prevPreviousRewardPerBlock = $t01254112798._7
323331 let uFarmInterest = valueOrElse(getInteger(this, (((pool + "_") + user) + kFarmUserLastInterest)), farmInterest)
324332 let uBoostInterest = valueOrElse(getInteger(this, (((pool + "_") + user) + kBoostUserLastInterest)), if (if ((stratBFarmInterest > uFarmInterest))
325333 then (uPoolVoted > 0)
326334 else false)
327335 then 0
328336 else boostInterest)
329337 let uShareTokensStaked = valueOrElse(getInteger(this, (((pool + "_") + user) + kUserShareTokensStaked)), 0)
330338 let uShareTokensVirt = valueOrElse(getInteger(this, (((pool + "_") + user) + kUserShareTokensVirtual)), uShareTokensStaked)
331339 if ((totalShareVirtual == 0))
332340 then {
333341 let toTreasury = if ((emissionUpdateHeight > lastInterestHeight))
334342 then ((prevCurrentRewardPerBlock * (emissionUpdateHeight - lastInterestHeight)) + (currentRewardPerBlock * (height - emissionUpdateHeight)))
335343 else (currentRewardPerBlock * (height - lastInterestHeight))
336344 let teamReward = fraction(toTreasury, teamFee, 100)
337345 $Tuple5(farmInterest, boostInterest, 0, (toTreasury - teamReward), teamReward)
338346 }
339347 else {
340- let $t01367014807 = if ((emissionUpdateHeight > lastInterestHeight))
348+ let $t01384114978 = if ((emissionUpdateHeight > lastInterestHeight))
341349 then {
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
350+ let $t01425414813 = calcInterest(pool, lastInterestHeight, rewardUpdateHeight, poolRewardUpdateHeight, farmInterest, boostInterest, poolVoted, prevCurrentRewardPerBlock, totalShareVirtual, prevPreviousRewardPerBlock, scaleValue, emissionUpdateHeight)
351+ let prevNewFarmInterest = $t01425414813._1
352+ let prevNewBoostInterest = $t01425414813._2
345353 $Tuple3(prevNewFarmInterest, prevNewBoostInterest, emissionUpdateHeight)
346354 }
347355 else $Tuple3(farmInterest, boostInterest, lastInterestHeight)
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
356+ let prevFarmInterest = $t01384114978._1
357+ let prevBoostInterest = $t01384114978._2
358+ let LIHeight = $t01384114978._3
359+ let $t01498715410 = calcInterest(pool, LIHeight, rewardUpdateHeight, poolRewardUpdateHeight, prevFarmInterest, prevBoostInterest, poolVoted, currentRewardPerBlock, totalShareVirtual, previousRewardPerBlock, scaleValue, height)
360+ let newFarmInterest = $t01498715410._1
361+ let newBoostInterest = $t01498715410._2
354362 let farmRwd = fraction(uShareTokensVirt, (newFarmInterest - uFarmInterest), scaleValue)
355363 let poolBoostCoef = valueOrElse(getInteger(this, (pool + kPoolBoostCoef)), defPoolBoostCoef)
356364 let boostRwdMax = fraction(fraction(uShareTokensVirt, (newFarmInterest - max([uFarmInterest, stratBFarmInterest])), scaleValue), poolBoostCoef, lockBoostCoefScale)
357365 let curBoostRwd = fraction((newBoostInterest - uBoostInterest), uPoolVoted, scaleValue8)
358366 let boostRwd = min([boostRwdMax, curBoostRwd])
359367 let toTreasury = (boostRwdMax - boostRwd)
360368 let teamReward = fraction(toTreasury, teamFee, 100)
361369 if ((0 > toTreasury))
362370 then throw("toTreasury < 0")
363371 else $Tuple5(newFarmInterest, newBoostInterest, (farmRwd + boostRwd), (toTreasury - teamReward), teamReward)
364372 }
365373 }
366374
367375
368376 func availableClaimCalcAllByUser (pools,user) = {
369377 func calcAvailable (acc,pool) = {
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
378+ let $t01636416393 = acc
379+ let newPools = $t01636416393._1
380+ let amounts = $t01636416393._2
381+ let $t01640216455 = claimCalc(pool, user)
382+ let fi = $t01640216455._1
383+ let bi = $t01640216455._2
384+ let claimAmount = $t01640216455._3
385+ let tt = $t01640216455._4
378386 let availableFund = (userAvailableSWOP(pool, user) + claimAmount)
379387 $Tuple2((newPools :+ pool), (amounts :+ availableFund))
380388 }
381389
382390 let $l = pools
383391 let $s = size($l)
384392 let $acc0 = $Tuple2(nil, nil)
385393 func $f0_1 ($a,$i) = if (($i >= $s))
386394 then $a
387395 else calcAvailable($a, $l[$i])
388396
389397 func $f0_2 ($a,$i) = if (($i >= $s))
390398 then $a
391399 else throw("List size exceeds 60")
392400
393401 $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)
394402 }
395403
396404
397405 func canLockInFirstHarvest (pool,user,userShareTokensStaked,pmtAmount,lockType) = if ((getHeightFirstHarvest(pool) > height))
398406 then {
399407 let totalVoteAmount = valueOrElse(getInteger(votingAddress, (pool + kHarvestPoolVote)), 0)
400408 let userVoteAmount = valueOrElse(getInteger(votingAddress, (((user + "_") + pool) + kHarvestUserPoolVote)), 0)
401409 let FHShareTokenLimit = getFHShareLimitToken(addressFromStringValue(pool))
402410 let FHShareTokenUserLimit = (fraction(FHShareTokenLimit, userVoteAmount, totalVoteAmount) - userShareTokensStaked)
403411 if ((lockType > 0))
404412 then throw("You can't lock shareTokens till first harvest end.")
405413 else if ((userVoteAmount == 0))
406414 then throw("You can't lock shareTokens. You didn't vote for pool in first week.")
407415 else if ((pmtAmount >= FHShareTokenUserLimit))
408416 then (pmtAmount - FHShareTokenUserLimit)
409417 else 0
410418 }
411419 else 0
412420
413421
414422 func getLockParams (type) = {
415423 let lockParams = split(valueOrErrorMessage(getString(this, (toString(type) + kLockParams)), ("There are no key for lock type" + toString(type))), "_")
416424 $Tuple2(parseIntValue(lockParams[0]), parseIntValue(lockParams[1]))
417425 }
418426
419427
420428 func suspend (cause) = [BooleanEntry(kActive, false), StringEntry(kCause, cause)]
421429
422430
423431 func isActive () = if (if (active)
424432 then activeGlob
425433 else false)
426434 then unit
427435 else throw("DApp is inactive at this moment")
428436
429437
430438 func isAdminCall (i) = if (containsElement([adminPubKey1, adminPubKey2, adminPubKey3], i.callerPublicKey))
431439 then unit
432440 else throw("Only admin can call this function")
433441
434442
435443 func isPoolCall (i,pool) = if (if ((toString(i.caller) == pool))
436444 then true
437445 else (i.caller == cpmmContract))
438446 then unit
439447 else throw("Only pool can call this function")
440448
441449
442450 func getDeprecatedPool (pool) = valueOrElse(getBoolean(oracle, (kDeprecatedPool + pool)), false)
443451
444452
445453 func isDeprecatedPool (pool) = if (!(getDeprecatedPool(pool)))
446454 then unit
447455 else throw("Pool is deprecated. Only unlock action allowed.")
448456
449457
450458 func isSelfCall (i) = if ((i.caller == this))
451459 then unit
452460 else throw("Only contract itself can call this function")
453461
454462
455463 func calcLockShareTokens (i,caller,pool,lockType) = {
464+ let inv = if ((i.payments[0].assetId == axlyLpId))
465+ then invoke(axlyFarmAddr, "lpAction", nil, nil)
466+ else nil
456467 let shareAssetId = getShareAssetId(pool)
457468 let user = toString(caller)
458469 let totalShare = getTotalShareToken(pool)
459470 let totalShareVirtual = valueOrElse(getInteger(this, (pool + kShareTokensVirtual)), totalShare)
460471 let userStakedAmount = valueOrElse(getInteger(this, (((pool + "_") + user) + kUserShareTokensStaked)), 0)
461472 let userLockedHeigt = valueOrElse(getInteger(this, (((pool + "_") + user) + kUserShareTokensLockedHeight)), 0)
462473 let userLockedAmount = valueOrElse(getInteger(this, (((pool + "_") + user) + kUserShareTokensLocked)), 0)
463474 let userAmountVirtual = valueOrElse(getInteger(this, (((pool + "_") + user) + kUserShareTokensVirtual)), userStakedAmount)
464475 let totalUserShareTokens = ((userStakedAmount + userLockedAmount) + i.payments[0].amount)
465- let $t01940819460 = getLockParams(lockType)
466- let lockPeriod = $t01940819460._1
467- let lockCoef = $t01940819460._2
476+ let $t01968419736 = getLockParams(lockType)
477+ let lockPeriod = $t01968419736._1
478+ let lockCoef = $t01968419736._2
468479 let lockWavesFee = getIntegerValue(this, kLockWavesFee)
469480 if ((i.payments[0].assetId != shareAssetId))
470481 then throw("Wrong sharetoken in payment")
471482 else if ((0 >= i.payments[0].amount))
472483 then throw("Payment amount must be greater than 0")
473484 else if ((0 > lockType))
474485 then throw("lockType must be >= 0")
475486 else {
476487 let shareTokensChangeOnFH = canLockInFirstHarvest(pool, user, userStakedAmount, i.payments[0].amount, lockType)
477488 if ((shareTokensChangeOnFH == shareTokensChangeOnFH))
478489 then {
479- let $t01988721821 = if ((lockType == 0))
490+ let $t02016322097 = if ((lockType == 0))
480491 then {
481492 let userAmountVirtualNew = ((userAmountVirtual + i.payments[0].amount) - shareTokensChangeOnFH)
482493 $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))
483494 }
484495 else if (if ((userLockedHeigt == 0))
485496 then if (if ((2 > size(i.payments)))
486497 then true
487498 else (i.payments[1].assetId != unit))
488499 then true
489500 else (lockWavesFee > i.payments[1].amount)
490501 else false)
491502 then throw((("You need to pay additional waves comission " + toString(lockWavesFee)) + "WAVES"))
492503 else if ((userLockedHeigt > (height + lockPeriod)))
493504 then throw("You cannot lock sharetokens for a period less than what you have already locked")
494505 else {
495506 let userLockedAmountNew = (userLockedAmount + i.payments[0].amount)
496507 let userLockedHeigtNew = (height + lockPeriod)
497508 let userAmountVirtualNew = (fraction(userLockedAmountNew, lockCoef, lockBoostCoefScale) + userStakedAmount)
498509 $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))
499510 }
500- let lockEntries = $t01988721821._1
501- let totalShareNew = $t01988721821._2
511+ let lockEntries = $t02016322097._1
512+ let totalShareNew = $t02016322097._2
502513 if ((totalShareNew > accountBalance(shareAssetId)))
503514 then throw("Balance of share-token is lower than totalAmount")
504515 else {
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
516+ let $t02222222316 = claimCalc(pool, user)
517+ let farmInterest = $t02222222316._1
518+ let boostInterest = $t02222222316._2
519+ let claimAmount = $t02222222316._3
520+ let toTreasure = $t02222222316._4
521+ let teamReward = $t02222222316._5
511522 let availableFundsNew = (userAvailableSWOP(pool, user) + claimAmount)
512523 let uplp = if ((getString(Address(fromBase58String(pool)), "version") == "3.0.0"))
513524 then invoke(lpFarmingAddress, "updateUserInterest", [user, pool, totalUserShareTokens], nil)
514525 else 0
515526 if ((uplp == uplp))
516527 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)
517528 else throw("Strict value is not equal to itself.")
518529 }
519530 }
520531 else throw("Strict value is not equal to itself.")
521532 }
522533 }
523534
524535
525536 func calcWithdrawShareTokens (i,caller,pool,shareTokensWithdrawAmount) = {
526537 let inv = if (getDeprecatedPool(pool))
527538 then invoke(this, "unlockUserLockDeprecated", [pool, toString(caller)], nil)
528539 else 0
529540 if ((inv == inv))
530541 then {
531542 let shareTokensId = fromBase58String(getStringValue(value(addressFromString(pool)), "share_asset_id"))
543+ let inv1 = if ((shareTokensId == axlyLpId))
544+ then invoke(axlyFarmAddr, "lpAction", nil, nil)
545+ else nil
532546 let user = toString(caller)
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
547+ let $t02378223876 = claimCalc(pool, user)
548+ let farmInterest = $t02378223876._1
549+ let boostInterest = $t02378223876._2
550+ let claimAmount = $t02378223876._3
551+ let toTreasure = $t02378223876._4
552+ let teamReward = $t02378223876._5
539553 let userStakedAmount = valueOrElse(getInteger(this, (((pool + "_") + user) + kUserShareTokensStaked)), 0)
540554 let userLockedAmount = valueOrElse(getInteger(this, (((pool + "_") + user) + kUserShareTokensLocked)), 0)
541555 let userAmountVirtual = valueOrElse(getInteger(this, (((pool + "_") + user) + kUserShareTokensVirtual)), userStakedAmount)
542556 let userStakedAmountNew = (userStakedAmount - shareTokensWithdrawAmount)
543557 let availableFundsNew = (userAvailableSWOP(pool, user) + claimAmount)
544558 let totalShareAmount = getTotalShareToken(pool)
545559 let totalShareVirtual = valueOrElse(getInteger(this, (pool + kShareTokensVirtual)), totalShareAmount)
546560 let totalShareAmountNew = (totalShareAmount - shareTokensWithdrawAmount)
547561 let totalShareVirtualNew = (totalShareVirtual - shareTokensWithdrawAmount)
548562 let userAmountVirtualNew = (userAmountVirtual - shareTokensWithdrawAmount)
549563 if ((shareTokensWithdrawAmount > userStakedAmount))
550564 then throw("Withdraw amount more then user locked amount")
551565 else if ((accountBalance(shareTokensId) > totalShareAmount))
552566 then throw("Balance of share-token is lower than totalAmount")
553567 else {
554568 let uplp = if ((getString(Address(fromBase58String(pool)), "version") == "3.0.0"))
555569 then invoke(lpFarmingAddress, "updateUserInterest", [user, pool, (userStakedAmount + userLockedAmount)], nil)
556570 else 0
557571 if ((uplp == uplp))
558- 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)]
572+ then [IntegerEntry((((pool + "_") + user) + kFarmUserLastInterest), farmInterest), IntegerEntry((((pool + "_") + user) + kBoostUserLastInterest), boostInterest), IntegerEntry((pool + kFarmLastInterest), farmInterest), IntegerEntry((pool + kBoostLastInterest), boostInterest), IntegerEntry((pool + kLastInterestHeight), height), IntegerEntry((((pool + "_") + user) + kUserShareTokensStaked), userStakedAmountNew), IntegerEntry((((pool + "_") + user) + kUserShareTokensVirtual), userAmountVirtualNew), IntegerEntry((pool + kShareTotalShareTokens), totalShareAmountNew), IntegerEntry((pool + kShareTokensVirtual), totalShareVirtualNew), IntegerEntry((((pool + "_") + user) + kAvailableSWOP), availableFundsNew), Reissue(SWOP, toTreasure, true), ScriptTransfer(farmingTreasureAddr, toTreasure, SWOP), ScriptTransfer(teamBoxAddress, teamReward, SWOP), ScriptTransfer(i.caller, shareTokensWithdrawAmount, shareTokensId)]
559573 else throw("Strict value is not equal to itself.")
560574 }
561575 }
562576 else throw("Strict value is not equal to itself.")
563577 }
564578
565579
566580 func calcClaim (i,pool,caller) = {
567581 let shareTokensId = fromBase58String(getStringValue(value(addressFromString(pool)), "share_asset_id"))
568582 let user = toString(caller)
569583 let shareTokenLocked = getTotalShareToken(pool)
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
584+ let $t02644626540 = claimCalc(pool, user)
585+ let farmInterest = $t02644626540._1
586+ let boostInterest = $t02644626540._2
587+ let claimAmount = $t02644626540._3
588+ let toTreasure = $t02644626540._4
589+ let teamReward = $t02644626540._5
576590 let availableFund = (userAvailableSWOP(pool, user) + claimAmount)
577591 if ((accountBalance(shareTokensId) > shareTokenLocked))
578592 then throw("Balance of share-token is lower than totalAmount")
579593 else {
580594 let uTrans = if ((i.caller != this))
581595 then [ScriptTransfer(i.caller, availableFund, SWOP)]
582596 else nil
583597 $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)
584598 }
585599 }
586600
587601
588602 func unlockUserLockCalc (i,pool,user) = {
589603 let totalShareVirtual = getIntegerValue(this, (pool + kShareTokensVirtual))
590604 let userStakedAmount = valueOrElse(getInteger(this, (((pool + "_") + user) + kUserShareTokensStaked)), 0)
591605 let userLockedAmount = valueOrElse(getInteger(this, (((pool + "_") + user) + kUserShareTokensLocked)), 0)
592606 let userAmountVirtual = valueOrElse(getInteger(this, (((pool + "_") + user) + kUserShareTokensVirtual)), userStakedAmount)
593607 let userStakedAmountNew = (userStakedAmount + userLockedAmount)
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
608+ let $t02801428108 = claimCalc(pool, user)
609+ let farmInterest = $t02801428108._1
610+ let boostInterest = $t02801428108._2
611+ let claimAmount = $t02801428108._3
612+ let toTreasure = $t02801428108._4
613+ let teamReward = $t02801428108._5
600614 let availableFundsNew = (userAvailableSWOP(pool, user) + claimAmount)
601615 [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)]
602616 }
603617
604618
605619 @Callable(i)
606620 func init (earlyLP) = if (isDefined(getString(this, kSWOPid)))
607621 then throw("SWOP already initialized")
608622 else {
609623 let initAmount = 100000000000000
610624 let SWOPissue = Issue("SWOP", "SWOP protocol token", initAmount, 8, true)
611625 let SWOPid = calculateAssetId(SWOPissue)
612626 [BooleanEntry(kActive, true), Issue("SWOP", "SWOP protocol token", initAmount, 8, true), StringEntry(kSWOPid, toBase58String(SWOPid))]
613627 }
614628
615629
616630
617631 @Callable(i)
618632 func initPoolShareFarming (pool) = valueOrElse(isAdminCall(i), if (!(isDefined(getString(oracle, (kPoolInOracle + pool)))))
619633 then throw("Pool is not in oracle")
620634 else if (isDefined(getInteger(this, (pool + kShareTotalShareTokens))))
621635 then throw("Pool already inited")
622636 else [IntegerEntry((pool + kShareTotalShareTokens), 0), IntegerEntry((pool + kFarmLastInterest), 0), IntegerEntry((pool + kBoostLastInterest), 0), IntegerEntry((pool + kLastInterestHeight), height)])
623637
624638
625639
626640 @Callable(i)
627641 func updatePoolInterest (pool) = valueOrElse(isActive(), if ((i.caller != govAddress))
628642 then throw("Only Governance can call this function")
629643 else {
630644 let user = toString(addressFromPublicKey(adminInvokePubKey))
631- let $t03019730271 = claimCalc(pool, user)
632- let farmInterest = $t03019730271._1
633- let boostInterest = $t03019730271._2
634- let boostLPinterest = $t03019730271._3
645+ let $t03055830632 = claimCalc(pool, user)
646+ let farmInterest = $t03055830632._1
647+ let boostInterest = $t03055830632._2
648+ let boostLPinterest = $t03055830632._3
635649 [IntegerEntry((pool + kFarmLastInterest), farmInterest), IntegerEntry((pool + kBoostLastInterest), boostInterest), IntegerEntry((pool + kLastInterestHeight), height)]
636650 })
637651
638652
639653
640654 @Callable(i)
641655 func lockShareTokens (pool,lockType) = valueOrElse(isDeprecatedPool(pool), valueOrElse(isActive(), calcLockShareTokens(i, i.caller, pool, lockType)))
642656
643657
644658
645659 @Callable(i)
646660 func lockShareTokensFromPool (callerBytes,pool,lockType) = valueOrElse(isDeprecatedPool(pool), valueOrElse(isActive(), valueOrElse(isPoolCall(i, pool), calcLockShareTokens(i, Address(callerBytes), pool, lockType))))
647661
648662
649663
650664 @Callable(i)
651665 func lockStakedShareTokens (pool,lockType,lockAmount) = valueOrElse(isDeprecatedPool(pool), valueOrElse(isActive(), {
652666 let shareAssetId = getShareAssetId(pool)
653667 let user = toString(i.caller)
654668 let totalShare = getTotalShareToken(pool)
655669 let totalShareVirtual = valueOrElse(getInteger(this, (pool + kShareTokensVirtual)), totalShare)
656670 let userStakedAmount = valueOrElse(getInteger(this, (((pool + "_") + user) + kUserShareTokensStaked)), 0)
657671 let userLockedHeigt = valueOrElse(getInteger(this, (((pool + "_") + user) + kUserShareTokensLockedHeight)), 0)
658672 let userLockedAmount = valueOrElse(getInteger(this, (((pool + "_") + user) + kUserShareTokensLocked)), 0)
659673 let userAmountVirtual = valueOrElse(getInteger(this, (((pool + "_") + user) + kUserShareTokensVirtual)), userStakedAmount)
660674 let totalUserShareTokens = (userStakedAmount + userLockedAmount)
661- let $t03190031952 = getLockParams(lockType)
662- let lockPeriod = $t03190031952._1
663- let lockCoef = $t03190031952._2
675+ let $t03226132313 = getLockParams(lockType)
676+ let lockPeriod = $t03226132313._1
677+ let lockCoef = $t03226132313._2
664678 let lockWavesFee = getIntegerValue(this, kLockWavesFee)
665679 if ((getHeightFirstHarvest(pool) > height))
666680 then throw("You can't lock shareTokens till first harvest end.")
667681 else if ((0 >= lockType))
668682 then throw("lockType must be > 0")
669683 else if ((lockAmount > userStakedAmount))
670684 then throw(("You can't lock more than " + toString(userStakedAmount)))
671685 else if ((accountBalance(shareAssetId) > totalShare))
672686 then throw("Balance of share-token is lower than totalAmount")
673687 else if (if ((userLockedHeigt == 0))
674688 then if (if ((1 > size(i.payments)))
675689 then true
676690 else (i.payments[0].assetId != unit))
677691 then true
678692 else (lockWavesFee > i.payments[0].amount)
679693 else false)
680694 then throw((("You need to pay additional waves comission " + toString(lockWavesFee)) + "WAVES"))
681695 else if (if ((userLockedHeigt == 0))
682696 then (0 >= lockAmount)
683697 else false)
684698 then throw("lockAmount must be greater than 0")
685699 else if ((0 > lockAmount))
686700 then throw("lockAmount must be positive")
687701 else if ((userLockedHeigt > (height + lockPeriod)))
688702 then throw("You cannot lock sharetokens for a period less than what you have already locked")
689703 else {
690704 let userLockedAmountNew = (userLockedAmount + lockAmount)
691705 let userStakedAmountNew = (userStakedAmount - lockAmount)
692706 let userLockedHeigtNew = (height + lockPeriod)
693707 let userAmountVirtualNew = (fraction(userLockedAmountNew, lockCoef, lockBoostCoefScale) + userStakedAmountNew)
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
708+ let $t03365933753 = claimCalc(pool, user)
709+ let farmInterest = $t03365933753._1
710+ let boostInterest = $t03365933753._2
711+ let claimAmount = $t03365933753._3
712+ let toTreasure = $t03365933753._4
713+ let teamReward = $t03365933753._5
700714 let availableFundsNew = (userAvailableSWOP(pool, user) + claimAmount)
701715 [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)]
702716 }
703717 }))
704718
705719
706720
707721 @Callable(i)
708722 func unlockUserLock (pool,user) = valueOrElse(isActive(), {
709723 let userLockedHeigt = valueOrErrorMessage(getInteger(this, (((pool + "_") + user) + kUserShareTokensLockedHeight)), (((("There is no pool " + pool) + " or user ") + user) + "with lock"))
710724 if ((userLockedHeigt > height))
711725 then throw(("You can't unlock sharetokens till " + toString(userLockedHeigt)))
712726 else (unlockUserLockCalc(i, pool, user) ++ [ScriptTransfer(i.caller, getIntegerValue(this, kLockWavesFee), unit)])
713727 })
714728
715729
716730
717731 @Callable(i)
718732 func unlockUserLockDeprecated (pool,user) = valueOrElse(isActive(), valueOrElse(isSelfCall(i), if (!(getDeprecatedPool(pool)))
719733 then throw("Pool must be deprecated")
720734 else if (isDefined(getInteger(this, (((pool + "_") + user) + kUserShareTokensLockedHeight))))
721735 then (unlockUserLockCalc(i, pool, user) ++ [ScriptTransfer(moneyBoxAddress, getIntegerValue(this, kLockWavesFee), unit)])
722736 else nil))
723737
724738
725739
726740 @Callable(i)
727741 func withdrawShareTokens (pool,shareTokensWithdrawAmount) = valueOrElse(isActive(), calcWithdrawShareTokens(i, i.caller, pool, shareTokensWithdrawAmount))
728742
729743
730744
731745 @Callable(i)
732746 func withdrawShareTokensFromPool (callerBytes,pool,shareTokensWithdrawAmount) = valueOrElse(isActive(), valueOrElse(isPoolCall(i, pool), calcWithdrawShareTokens(i, Address(callerBytes), pool, shareTokensWithdrawAmount)))
733747
734748
735749
736750 @Callable(i)
737751 func claim (pool) = valueOrElse(isActive(), {
738752 let r = calcClaim(i, pool, i.caller)
739753 if ((r._2 == 0))
740754 then throw("You have 0 available SWOP")
741755 else r
742756 })
743757
744758
745759
746760 @Callable(i)
747761 func claimInternal (pool,caller) = valueOrElse(isActive(), valueOrElse(isSelfCall(i), calcClaim(i, pool, Address(caller))))
748762
749763
750764
751765 @Callable(i)
752766 func claimAndStake (pool) = valueOrElse(isActive(), {
753767 let claimAmount = {
754768 let @ = invoke(this, "claimInternal", [pool, i.caller.bytes], nil)
755769 if ($isInstanceOf(@, "Int"))
756770 then @
757771 else throw(($getType(@) + " couldn't be cast to Int"))
758772 }
759773 if ((claimAmount == claimAmount))
760774 then if ((claimAmount == 0))
761775 then throw("You have 0 available SWOP")
762776 else {
763777 let stakeToGov = invoke(govAddress, "lockSWOPFromFarming", nil, [AttachedPayment(SWOP, claimAmount)])
764778 if ((stakeToGov == stakeToGov))
765779 then nil
766780 else throw("Strict value is not equal to itself.")
767781 }
768782 else throw("Strict value is not equal to itself.")
769783 })
770784
771785
772786
773787 @Callable(i)
774788 func claimAll (pools) = valueOrElse(isActive(), {
775789 func claimInv (claimTotal,pool) = {
776790 let claimAmount = {
777791 let @ = invoke(this, "claimInternal", [pool, i.caller.bytes], nil)
778792 if ($isInstanceOf(@, "Int"))
779793 then @
780794 else throw(($getType(@) + " couldn't be cast to Int"))
781795 }
782796 if ((claimAmount == claimAmount))
783797 then (claimTotal + claimAmount)
784798 else throw("Strict value is not equal to itself.")
785799 }
786800
787801 let claimTotal = {
788802 let $l = pools
789803 let $s = size($l)
790804 let $acc0 = 0
791805 func $f0_1 ($a,$i) = if (($i >= $s))
792806 then $a
793807 else claimInv($a, $l[$i])
794808
795809 func $f0_2 ($a,$i) = if (($i >= $s))
796810 then $a
797811 else throw("List size exceeds 60")
798812
799813 $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)
800814 }
801815 if ((claimTotal == 0))
802816 then throw("You have 0 available SWOP")
803817 else [ScriptTransfer(i.caller, claimTotal, SWOP)]
804818 })
805819
806820
807821
808822 @Callable(i)
809823 func claimAllAndStake (pools) = valueOrElse(isActive(), {
810824 func claimInv (claimTotal,pool) = {
811825 let claimAmount = {
812826 let @ = invoke(this, "claimInternal", [pool, i.caller.bytes], nil)
813827 if ($isInstanceOf(@, "Int"))
814828 then @
815829 else throw(($getType(@) + " couldn't be cast to Int"))
816830 }
817831 if ((claimAmount == claimAmount))
818832 then (claimTotal + claimAmount)
819833 else throw("Strict value is not equal to itself.")
820834 }
821835
822836 let claimTotal = {
823837 let $l = pools
824838 let $s = size($l)
825839 let $acc0 = 0
826840 func $f0_1 ($a,$i) = if (($i >= $s))
827841 then $a
828842 else claimInv($a, $l[$i])
829843
830844 func $f0_2 ($a,$i) = if (($i >= $s))
831845 then $a
832846 else throw("List size exceeds 60")
833847
834848 $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)
835849 }
836850 if ((claimTotal == 0))
837851 then throw("You have 0 available SWOP")
838852 else {
839853 let stakeToGov = invoke(govAddress, "lockSWOPFromFarming", nil, [AttachedPayment(SWOP, claimTotal)])
840854 if ((stakeToGov == stakeToGov))
841855 then nil
842856 else throw("Strict value is not equal to itself.")
843857 }
844858 })
845859
846860
847861
848862 @Callable(i)
849863 func updateUserBoostInterest (pool,user) = valueOrElse(isActive(), if ((i.caller != votingAddress))
850864 then throw("Only voiting can call this function")
851865 else {
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
866+ let $t03857738671 = claimCalc(pool, user)
867+ let farmInterest = $t03857738671._1
868+ let boostInterest = $t03857738671._2
869+ let claimAmount = $t03857738671._3
870+ let toTreasure = $t03857738671._4
871+ let teamReward = $t03857738671._5
858872 let availableFundsNew = (userAvailableSWOP(pool, user) + claimAmount)
859873 [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)]
860874 })
861875
862876
863877
864878 @Callable(i)
865879 func shutdown () = valueOrElse(isAdminCall(i), if (!(active))
866880 then throw(("DApp is already suspended. Cause: " + valueOrElse(getString(this, kCause), "the cause wasn't specified")))
867881 else suspend("Paused by admin"))
868882
869883
870884
871885 @Callable(i)
872886 func activate () = valueOrElse(isAdminCall(i), if (active)
873887 then throw("DApp is already active")
874888 else [BooleanEntry(kActive, true), DeleteEntry(kCause)])
875889
876890
877891 @Verifier(tx)
878892 func verify () = match tx {
879893 case _ =>
880894 let adminPubKey1Signed = if (sigVerify(tx.bodyBytes, tx.proofs[0], adminPubKey1))
881895 then 1
882896 else 0
883897 let adminPubKey2Signed = if (sigVerify(tx.bodyBytes, tx.proofs[1], adminPubKey2))
884898 then 1
885899 else 0
886900 let adminPubKey3Signed = if (sigVerify(tx.bodyBytes, tx.proofs[2], adminPubKey3))
887901 then 1
888902 else 0
889903 (((adminPubKey1Signed + adminPubKey2Signed) + adminPubKey3Signed) >= 2)
890904 }
891905

github/deemru/w8io/169f3d6 
172.97 ms