tx · 6QACzCbi8XsmZVwFWSnC6qkL3htxBzLT3yA8C59gSqTh

3MsXpzisJAwnzUr7XrEoW1BZo4U6rw4tsYK:  -0.14000000 Waves

2022.10.21 18:34 [2282360] smart account 3MsXpzisJAwnzUr7XrEoW1BZo4U6rw4tsYK > SELF 0.00000000 Waves

{ "type": 13, "id": "6QACzCbi8XsmZVwFWSnC6qkL3htxBzLT3yA8C59gSqTh", "fee": 14000000, "feeAssetId": null, "timestamp": 1666366446759, "version": 2, "chainId": 84, "sender": "3MsXpzisJAwnzUr7XrEoW1BZo4U6rw4tsYK", "senderPublicKey": "FFdBua5rzzMkZebvsvmN7sAdU7XhFK8QNJ3hiwwxAYRA", "proofs": [ "Vn7PXv4y3821hoytCnSNX6DfdHTAdT3AKfuRaJSnyaCbJzA9ov2m1MomhYk2bn7TxyxqWy3MnpnEitenzHFiBPP", "rFV3gqH6y9P2FfPn99vTwKzLX3KwGkvGS64cZSmtgAZsTRbNu7R3EXtfW88RzAT9MJ1CwV4yp6KsRkpHsvU1t3T" ], "script": "base64:BgJICAISAwoBCBIDCgEIEgMKAQgSBAoCCAESBQoDCAEBEgQKAggIEgQKAggBEgMKAQgSAwoBCBIDCgEYEgMKARgSBAoCCAgSABIAWgAHa0FjdGl2ZQIGYWN0aXZlAAtrQWN0aXZlR2xvYgIUYWN0aXZlX2FsbF9jb250cmFjdHMABmtDYXVzZQIOc2h1dGRvd25fY2F1c2UAGmtSZXdhcmRQb29sRnJhY3Rpb25DdXJyZW50Ah1fY3VycmVudF9wb29sX2ZyYWN0aW9uX3Jld2FyZAAba1Jld2FyZFBvb2xGcmFjdGlvblByZXZpb3VzAh5fcHJldmlvdXNfcG9vbF9mcmFjdGlvbl9yZXdhcmQAE2tIZWlnaHRQb29sRnJhY3Rpb24CGl9wb29sX3Jld2FyZF91cGRhdGVfaGVpZ2h0ABtrVG90YWxSZXdhcmRQZXJCbG9ja0N1cnJlbnQCHnRvdGFsX3Jld2FyZF9wZXJfYmxvY2tfY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Qt2YWx1ZU9yRWxzZQIJAJ0IAgUEdGhpcwUGa0NhdXNlAhp0aGUgY2F1c2Ugd2Fzbid0IHNwZWNpZmllZAkBB3N1c3BlbmQBAg9QYXVzZWQgYnkgYWRtaW4BaQEIYWN0aXZhdGUACQELdmFsdWVPckVsc2UCCQELaXNBZG1pbkNhbGwBBQFpAwUGYWN0aXZlCQACAQIWREFwcCBpcyBhbHJlYWR5IGFjdGl2ZQkAzAgCCQEMQm9vbGVhbkVudHJ5AgUHa0FjdGl2ZQYJAMwIAgkBC0RlbGV0ZUVudHJ5AQUGa0NhdXNlBQNuaWwBAnR4AQZ2ZXJpZnkABAckbWF0Y2gwBQJ0eAQSYWRtaW5QdWJLZXkxU2lnbmVkAwkA9AMDCAUCdHgJYm9keUJ5dGVzCQCRAwIIBQJ0eAZwcm9vZnMAAAUMYWRtaW5QdWJLZXkxAAEAAAQSYWRtaW5QdWJLZXkyU2lnbmVkAwkA9AMDCAUCdHgJYm9keUJ5dGVzCQCRAwIIBQJ0eAZwcm9vZnMAAQUMYWRtaW5QdWJLZXkyAAEAAAQSYWRtaW5QdWJLZXkzU2lnbmVkAwkA9AMDCAUCdHgJYm9keUJ5dGVzCQCRAwIIBQJ0eAZwcm9vZnMAAgUMYWRtaW5QdWJLZXkzAAEAAAkAZwIJAGQCCQBkAgUSYWRtaW5QdWJLZXkxU2lnbmVkBRJhZG1pblB1YktleTJTaWduZWQFEmFkbWluUHViS2V5M1NpZ25lZAAChPyZmA==", "height": 2282360, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: E3v6qChruFFDtEJuLkt9jL1rqTsMZT2Wkz8NZ9bxF4RW Next: FQPudS2DfBSA8X6Wi9M8oHkbMTg2YWBfe8brKb76Zmfu Diff:
OldNewDifferences
151151 func getFHShareLimitToken (pool) = valueOrErrorMessage(getInteger(pool, kShareLimitFH), ("No data on the key: " + kShareLimitFH))
152152
153153
154-func getTotalShareTokenStaked (pool) = valueOrErrorMessage(getInteger(this, (pool + kShareTotalShareTokens)), (("No data on the key: " + pool) + kShareTotalShareTokens))
154+func getTotalShareToken (pool) = valueOrErrorMessage(getInteger(this, (pool + kShareTotalShareTokens)), (("No data on the key: " + pool) + kShareTotalShareTokens))
155155
156156
157157 func getPoolVoted (pool) = valueOrElse(getInteger(votingAddress, (pool + kPoolVote)), 0)
315315 let scaleValue = calcScaleValue(SWOP, getShareAssetId(pool))
316316 let poolVoted = getPoolVoted(pool)
317317 let uPoolVoted = getUserPoolVoted(pool, user)
318- let shareTokenStaked = getTotalShareTokenStaked(pool)
319- let totalShareVirtual = valueOrElse(getInteger(this, (pool + kShareTokensVirtual)), shareTokenStaked)
320- let $t01430914407 = getLastInterestInfo(pool)
321- let lastInterestHeight = $t01430914407._1
322- let farmInterest = $t01430914407._2
323- let boostInterest = $t01430914407._3
324- let boostLPInterest = $t01430914407._4
325- let $t01441214526 = rewardInfo(pool)
326- let currentRewardPerBlock = $t01441214526._1
327- let rewardUpdateHeight = $t01441214526._2
328- let previousRewardPerBlock = $t01441214526._3
329- let poolRewardUpdateHeight = $t01441214526._4
318+ let shareToken = getTotalShareToken(pool)
319+ let totalShareVirtual = valueOrElse(getInteger(this, (pool + kShareTokensVirtual)), shareToken)
320+ let $t01428514383 = getLastInterestInfo(pool)
321+ let lastInterestHeight = $t01428514383._1
322+ let farmInterest = $t01428514383._2
323+ let boostInterest = $t01428514383._3
324+ let boostLPInterest = $t01428514383._4
325+ let $t01438814502 = rewardInfo(pool)
326+ let currentRewardPerBlock = $t01438814502._1
327+ let rewardUpdateHeight = $t01438814502._2
328+ let previousRewardPerBlock = $t01438814502._3
329+ let poolRewardUpdateHeight = $t01438814502._4
330330 let uFarmInterest = valueOrElse(getInteger(this, (((pool + "_") + user) + kFarmUserLastInterest)), farmInterest)
331331 let uBoostInterest = valueOrElse(getInteger(this, (((pool + "_") + user) + kBoostUserLastInterest)), boostInterest)
332332 let uBoostLPInterest = valueOrElse(getInteger(this, (((pool + "_") + user) + kBoostLPUserLastInterest)), boostLPInterest)
333333 let uShareTokensStaked = valueOrElse(getInteger(this, (((pool + "_") + user) + kUserShareTokensStaked)), 0)
334334 let uShareTokensVirt = valueOrElse(getInteger(this, (((pool + "_") + user) + kUserShareTokensVirtual)), uShareTokensStaked)
335- let $t01509415486 = calcInterest(pool, lastInterestHeight, rewardUpdateHeight, poolRewardUpdateHeight, farmInterest, boostInterest, poolVoted, boostLPInterest, currentRewardPerBlock, shareTokenStaked, previousRewardPerBlock, scaleValue)
336- let newFarmInterest = $t01509415486._1
337- let newBoostInterest = $t01509415486._2
338- let newBoostLPInterest = $t01509415486._3
335+ let $t01507015463 = calcInterest(pool, lastInterestHeight, rewardUpdateHeight, poolRewardUpdateHeight, farmInterest, boostInterest, poolVoted, boostLPInterest, currentRewardPerBlock, totalShareVirtual, previousRewardPerBlock, scaleValue)
336+ let newFarmInterest = $t01507015463._1
337+ let newBoostInterest = $t01507015463._2
338+ let newBoostLPInterest = $t01507015463._3
339339 let claimFarming = fraction(uShareTokensVirt, (newFarmInterest - uFarmInterest), scaleValue)
340340 let claimBoostingMax = fraction(uPoolVoted, (newBoostInterest - uBoostInterest), scaleValue)
341341 let claimBoosting = fraction((uShareTokensVirt * uPoolVoted), (newBoostLPInterest - uBoostLPInterest), scaleValue)
404404 then throw("Only Governance can call this function")
405405 else {
406406 let user = toString(addressFromPublicKey(adminInvokePubKey))
407- let $t01850318577 = claimCalc(pool, user)
408- let farmInterest = $t01850318577._1
409- let boostInterest = $t01850318577._2
410- let boostLPinterest = $t01850318577._3
407+ let $t01848018554 = claimCalc(pool, user)
408+ let farmInterest = $t01848018554._1
409+ let boostInterest = $t01848018554._2
410+ let boostLPinterest = $t01848018554._3
411411 [IntegerEntry((pool + kFarmLastInterest), farmInterest), IntegerEntry((pool + kBoostLastInterest), boostInterest), IntegerEntry((pool + kBoostLPLastInterest), boostLPinterest), IntegerEntry((pool + kLastInterestHeight), height)]
412412 })
413413
417417 func lockShareTokens (pool,lockType) = valueOrElse(isActive(), {
418418 let shareAssetId = getShareAssetId(pool)
419419 let user = toString(i.originCaller)
420- let totalShareStaked = getTotalShareTokenStaked(pool)
421- let totalShareVirtual = valueOrElse(getInteger(this, (pool + kShareTokensVirtual)), totalShareStaked)
420+ let totalShare = getTotalShareToken(pool)
421+ let totalShareVirtual = valueOrElse(getInteger(this, (pool + kShareTokensVirtual)), totalShare)
422422 let userStakedAmount = valueOrElse(getInteger(this, (((pool + "_") + user) + kUserShareTokensStaked)), 0)
423423 let userLockedHeigt = valueOrElse(getInteger(this, (((pool + "_") + user) + kUserShareTokensLockedHeight)), 0)
424424 let userLockedAmount = valueOrElse(getInteger(this, (((pool + "_") + user) + kUserShareTokensLocked)), 0)
425425 let userAmountVirtual = valueOrElse(getInteger(this, (((pool + "_") + user) + kUserShareTokensVirtual)), userStakedAmount)
426426 let totalUserShareTokens = ((userStakedAmount + userLockedAmount) + i.payments[0].amount)
427- let $t01970419756 = getLockParams(lockType)
428- let lockPeriod = $t01970419756._1
429- let lockCoef = $t01970419756._2
427+ let $t01966319715 = getLockParams(lockType)
428+ let lockPeriod = $t01966319715._1
429+ let lockCoef = $t01966319715._2
430430 let lockWavesFee = getIntegerValue(this, kLockWavesFee)
431431 if ((i.payments[0].assetId != shareAssetId))
432432 then throw("Wrong sharetoken in payment")
438438 let shareTokensChangeOnFH = canLockInFirstHarvest(pool, user, userStakedAmount, i.payments[0].amount, lockType)
439439 if ((shareTokensChangeOnFH == shareTokensChangeOnFH))
440440 then {
441- let $t02018322112 = if ((lockType == 0))
441+ let $t02014221987 = if ((lockType == 0))
442442 then {
443443 let userAmountVirtualNew = ((userAmountVirtual + i.payments[0].amount) - shareTokensChangeOnFH)
444- $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))
444+ $Tuple2([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)], ((totalShare + i.payments[0].amount) - shareTokensChangeOnFH))
445445 }
446446 else if (if ((userLockedHeigt == 0))
447447 then if (if ((2 > size(i.payments)))
457457 let userLockedAmountNew = (userLockedAmount + i.payments[0].amount)
458458 let userLockedHeigtNew = (height + lockPeriod)
459459 let userAmountVirtualNew = (fraction(userLockedAmountNew, lockCoef, lockBoostCoefScale) + userStakedAmount)
460- $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))
460+ $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))
461461 }
462- let lockEntries = $t02018322112._1
463- let userAmountVirtualNew = $t02018322112._2
464- let totalShareStakedNew = $t02018322112._3
465- if ((accountBalance(shareAssetId) > totalShareStakedNew))
462+ let lockEntries = $t02014221987._1
463+ let totalShareNew = $t02014221987._2
464+ if ((accountBalance(shareAssetId) > totalShareNew))
466465 then throw("Balance of share-token is lower than totalAmount")
467466 else {
468- let $t02224322342 = claimCalc(pool, user)
469- let farmInterest = $t02224322342._1
470- let boostInterest = $t02224322342._2
471- let boostLPinterest = $t02224322342._3
472- let claimAmount = $t02224322342._4
473- let toTreasure = $t02224322342._5
467+ let $t02211222211 = claimCalc(pool, user)
468+ let farmInterest = $t02211222211._1
469+ let boostInterest = $t02211222211._2
470+ let boostLPinterest = $t02211222211._3
471+ let claimAmount = $t02211222211._4
472+ let toTreasure = $t02211222211._5
474473 let availableFundsNew = (userAvailableSWOP(pool, i.originCaller) + claimAmount)
475474 let uplp = if ((getString(Address(fromBase58String(pool)), "version") == "3.0.0"))
476475 then invoke(lpFarmingAddress, "updateUserInterest", [pool, totalUserShareTokens], nil)
477476 else 0
478477 if ((uplp == uplp))
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)
478+ 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), totalShareNew), IntegerEntry((((pool + "_") + user) + kAvailableSWOP), availableFundsNew), Reissue(SWOP, toTreasure, true), ScriptTransfer(farmingTreasureAddr, toTreasure, SWOP)] ++ lockEntries)
480479 else throw("Strict value is not equal to itself.")
481480 }
482481 }
490489 func lockStakedShareTokens (pool,lockType,lockAmount) = valueOrElse(isActive(), {
491490 let shareAssetId = getShareAssetId(pool)
492491 let user = toString(i.originCaller)
493- let totalShareStaked = getTotalShareTokenStaked(pool)
494- let totalShareVirtual = valueOrElse(getInteger(this, (pool + kShareTokensVirtual)), totalShareStaked)
492+ let totalShare = getTotalShareToken(pool)
493+ let totalShareVirtual = valueOrElse(getInteger(this, (pool + kShareTokensVirtual)), totalShare)
495494 let userStakedAmount = valueOrElse(getInteger(this, (((pool + "_") + user) + kUserShareTokensStaked)), 0)
496495 let userLockedHeigt = valueOrElse(getInteger(this, (((pool + "_") + user) + kUserShareTokensLockedHeight)), 0)
497496 let userLockedAmount = valueOrElse(getInteger(this, (((pool + "_") + user) + kUserShareTokensLocked)), 0)
498497 let userAmountVirtual = valueOrElse(getInteger(this, (((pool + "_") + user) + kUserShareTokensVirtual)), userStakedAmount)
499498 let totalUserShareTokens = (userStakedAmount + userLockedAmount)
500- let $t02427424326 = getLockParams(lockType)
501- let lockPeriod = $t02427424326._1
502- let lockCoef = $t02427424326._2
499+ let $t02411924171 = getLockParams(lockType)
500+ let lockPeriod = $t02411924171._1
501+ let lockCoef = $t02411924171._2
503502 let lockWavesFee = getIntegerValue(this, kLockWavesFee)
504503 if ((getHeightFirstHarvest(pool) > height))
505504 then throw("You can't lock shareTokens till first harvest end.")
507506 then throw("lockType must be > 0")
508507 else if ((lockAmount > userStakedAmount))
509508 then throw(("You can't lock more than " + toString(userStakedAmount)))
510- else if ((accountBalance(shareAssetId) > totalShareStaked))
509+ else if ((accountBalance(shareAssetId) > totalShare))
511510 then throw("Balance of share-token is lower than totalAmount")
512511 else if (if ((userLockedHeigt == 0))
513512 then if (if ((1 > size(i.payments)))
524523 let userStakedAmountNew = (userStakedAmount - lockAmount)
525524 let userLockedHeigtNew = (height + lockPeriod)
526525 let userAmountVirtualNew = (fraction(userLockedAmountNew, lockCoef, lockBoostCoefScale) + userStakedAmount)
527- let $t02545025549 = claimCalc(pool, user)
528- let farmInterest = $t02545025549._1
529- let boostInterest = $t02545025549._2
530- let boostLPinterest = $t02545025549._3
531- let claimAmount = $t02545025549._4
532- let toTreasure = $t02545025549._5
526+ let $t02528925388 = claimCalc(pool, user)
527+ let farmInterest = $t02528925388._1
528+ let boostInterest = $t02528925388._2
529+ let boostLPinterest = $t02528925388._3
530+ let claimAmount = $t02528925388._4
531+ let toTreasure = $t02528925388._5
533532 let availableFundsNew = (userAvailableSWOP(pool, i.originCaller) + claimAmount)
534533 [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 + "_") + 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)]
535534 }
549548 then throw(("You can't unlock sharetokens till " + toString(userLockedHeigt)))
550549 else {
551550 let userStakedAmountNew = (userStakedAmount + userLockedAmount)
552- let $t02778527884 = claimCalc(pool, user)
553- let farmInterest = $t02778527884._1
554- let boostInterest = $t02778527884._2
555- let boostLPinterest = $t02778527884._3
556- let claimAmount = $t02778527884._4
557- let toTreasure = $t02778527884._5
551+ let $t02762427723 = claimCalc(pool, user)
552+ let farmInterest = $t02762427723._1
553+ let boostInterest = $t02762427723._2
554+ let boostLPinterest = $t02762427723._3
555+ let claimAmount = $t02762427723._4
556+ let toTreasure = $t02762427723._5
558557 let availableFundsNew = (userAvailableSWOP(pool, i.originCaller) + claimAmount)
559558 [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)]
560559 }
566565 func withdrawShareTokens (pool,shareTokensWithdrawAmount) = valueOrElse(isActive(), {
567566 let shareTokensId = fromBase58String(getStringValue(value(addressFromString(pool)), "share_asset_id"))
568567 let user = toString(i.originCaller)
569- let $t02938829487 = claimCalc(pool, user)
570- let farmInterest = $t02938829487._1
571- let boostInterest = $t02938829487._2
572- let boostLPinterest = $t02938829487._3
573- let claimAmount = $t02938829487._4
574- let toTreasure = $t02938829487._5
568+ let $t02922729326 = claimCalc(pool, user)
569+ let farmInterest = $t02922729326._1
570+ let boostInterest = $t02922729326._2
571+ let boostLPinterest = $t02922729326._3
572+ let claimAmount = $t02922729326._4
573+ let toTreasure = $t02922729326._5
575574 let userStakedAmount = valueOrElse(getInteger(this, (((pool + "_") + user) + kUserShareTokensStaked)), 0)
576575 let userLockedAmount = valueOrElse(getInteger(this, (((pool + "_") + user) + kUserShareTokensLocked)), 0)
577576 let userAmountVirtual = valueOrElse(getInteger(this, (((pool + "_") + user) + kUserShareTokensVirtual)), userStakedAmount)
578577 let userStakedAmountNew = (userStakedAmount - shareTokensWithdrawAmount)
579578 let availableFundsNew = (userAvailableSWOP(pool, i.originCaller) + claimAmount)
580- let totalShareAmount = getTotalShareTokenStaked(pool)
579+ let totalShareAmount = getTotalShareToken(pool)
581580 let totalShareVirtual = valueOrElse(getInteger(this, (pool + kShareTokensVirtual)), totalShareAmount)
582581 let totalShareAmountNew = (totalShareAmount - shareTokensWithdrawAmount)
583582 let totalShareVirtualNew = (totalShareVirtual - shareTokensWithdrawAmount)
602601 func claim (pool) = valueOrElse(isActive(), {
603602 let shareTokensId = fromBase58String(getStringValue(value(addressFromString(pool)), "share_asset_id"))
604603 let user = toString(i.caller)
605- let shareTokenLocked = getTotalShareTokenStaked(pool)
606- let $t03216832267 = claimCalc(pool, user)
607- let farmInterest = $t03216832267._1
608- let boostInterest = $t03216832267._2
609- let boostLPinterest = $t03216832267._3
610- let claimAmount = $t03216832267._4
611- let toTreasure = $t03216832267._5
604+ let shareTokenLocked = getTotalShareToken(pool)
605+ let $t03199532094 = claimCalc(pool, user)
606+ let farmInterest = $t03199532094._1
607+ let boostInterest = $t03199532094._2
608+ let boostLPinterest = $t03199532094._3
609+ let claimAmount = $t03199532094._4
610+ let toTreasure = $t03199532094._5
612611 let availableFund = (userAvailableSWOP(pool, i.caller) + claimAmount)
613612 if ((availableFund == 0))
614613 then throw("You have 0 available SWOP")
718717 func updateUserBoostInterest (pool,user) = valueOrElse(isActive(), if ((i.caller != votingAddress))
719718 then throw("Only voiting can call this function")
720719 else {
721- let $t03464734746 = claimCalc(pool, user)
722- let farmInterest = $t03464734746._1
723- let boostInterest = $t03464734746._2
724- let boostLPinterest = $t03464734746._3
725- let claimAmount = $t03464734746._4
726- let toTreasure = $t03464734746._5
720+ let $t03447434573 = claimCalc(pool, user)
721+ let farmInterest = $t03447434573._1
722+ let boostInterest = $t03447434573._2
723+ let boostLPinterest = $t03447434573._3
724+ let claimAmount = $t03447434573._4
725+ let toTreasure = $t03447434573._5
727726 let availableFundsNew = (userAvailableSWOP(pool, i.originCaller) + claimAmount)
728727 [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)]
729728 })
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 kCause = "shutdown_cause"
99
1010 let kRewardPoolFractionCurrent = "_current_pool_fraction_reward"
1111
1212 let kRewardPoolFractionPrevious = "_previous_pool_fraction_reward"
1313
1414 let kHeightPoolFraction = "_pool_reward_update_height"
1515
1616 let kTotalRewardPerBlockCurrent = "total_reward_per_block_current"
1717
1818 let kTotalRewardPerBlockPrevious = "total_reward_per_block_previous"
1919
2020 let kRewardUpdateHeight = "reward_update_height"
2121
2222 let kUserShareTokensStaked = "_share_tokens_locked"
2323
2424 let kUserShareTokensLocked = "_share_tokens_blocked"
2525
2626 let kUserShareTokensLockedType = "_share_tokens_blocked_type"
2727
2828 let kUserShareTokensLockedHeight = "_share_tokens_blocked_height"
2929
3030 let kUserShareTokensVirtual = "_share_tokens_virtual"
3131
3232 let kShareTotalShareTokens = "_total_share_tokens_locked"
3333
3434 let kShareTokensVirtual = "_total_share_tokens_virtual"
3535
3636 let kLockParams = "_lock_params"
3737
3838 let kLockWavesFee = "lock_waves_fee"
3939
4040 let kPoolBoostCoef = "_boost_coef"
4141
4242 let kFarmLastInterest = "_last_interest"
4343
4444 let kFarmUserLastInterest = "_last_interest"
4545
4646 let kBoostLastInterest = "_last_interest_b"
4747
4848 let kBoostUserLastInterest = "_last_interest_u_b"
4949
5050 let kBoostLPLastInterest = "_last_interest_lpb"
5151
5252 let kBoostLPUserLastInterest = "_last_interest_u_lpb"
5353
5454 let kLastInterestHeight = "_last_interest_height"
5555
5656 let kSWOPid = "SWOP_id"
5757
5858 let kAvailableSWOP = "_available_SWOP"
5959
6060 let kSwopYearEmission = "swop_year_emission"
6161
6262 let kHarvestPoolVote = "_harvest_pool_vote_gSWOP"
6363
6464 let kPoolVote = "_pool_vote_gSWOP"
6565
6666 let kUserPoolVote = "_user_vote_gSWOP"
6767
6868 let kHarvestUserPoolVote = "_harvest_user_pool_vote_gSWOP"
6969
7070 let kBasePeriod = "base_period"
7171
7272 let kPeriodLength = "period_length"
7373
7474 let kStartHeight = "start_height"
7575
7676 let kFirstHarvestHeight = "first_harvest_height"
7777
7878 let kShareLimitFH = "share_limit_on_first_harvest"
7979
8080 let kAdminPubKey1 = "admin_pub_1"
8181
8282 let kAdminPubKey2 = "admin_pub_2"
8383
8484 let kAdminPubKey3 = "admin_pub_3"
8585
8686 let kAdminInvokePubKey = "admin_invoke_pub"
8787
8888 let kMoneyBoxAddress = "money_box_address"
8989
9090 let kVotingAddress = "voting_address"
9191
9292 let kGovAddress = "governance_address"
9393
9494 let kLPFarmingAddress = "lp_farming"
9595
9696 let kFarmingTreasureAddr = "farming_treasure"
9797
9898 let oracle = Address(base58'3MvVBtsXroQpy1tsPw21TU2ET9A8WfmrNjz')
9999
100100 let totalVoteShare = 10000000000
101101
102102 let lockBoostCoefScale = 1000
103103
104104 let defPoolBoostCoef = 500
105105
106106 func getBase58FromOracle (key) = match getString(oracle, key) {
107107 case string: String =>
108108 fromBase58String(string)
109109 case nothing =>
110110 throw((key + "is empty"))
111111 }
112112
113113
114114 let adminPubKey1 = getBase58FromOracle(kAdminPubKey1)
115115
116116 let adminPubKey2 = getBase58FromOracle(kAdminPubKey2)
117117
118118 let adminPubKey3 = getBase58FromOracle(kAdminPubKey3)
119119
120120 let moneyBoxAddress = Address(getBase58FromOracle(kMoneyBoxAddress))
121121
122122 let votingAddress = Address(getBase58FromOracle(kVotingAddress))
123123
124124 let govAddress = Address(getBase58FromOracle(kGovAddress))
125125
126126 let adminInvokePubKey = getBase58FromOracle(kAdminInvokePubKey)
127127
128128 let lpFarmingAddress = Address(getBase58FromOracle(kLPFarmingAddress))
129129
130130 let farmingTreasureAddr = Address(getBase58FromOracle(kFarmingTreasureAddr))
131131
132132 let basePeriod = valueOrErrorMessage(getInteger(votingAddress, kBasePeriod), "Empty kBasePeriod")
133133
134134 let startHeight = valueOrErrorMessage(getInteger(votingAddress, kStartHeight), "Empty kStartHeight")
135135
136136 let periodLength = valueOrErrorMessage(getInteger(votingAddress, kPeriodLength), "Empty kPeriodLength")
137137
138138 let currPeriod = (basePeriod + ((height - startHeight) / periodLength))
139139
140140 let active = getBooleanValue(this, kActive)
141141
142142 let activeGlob = valueOrElse(getBoolean(oracle, kActiveGlob), true)
143143
144144 let SwopYearEmission = getIntegerValue(this, kSwopYearEmission)
145145
146146 let SWOP = fromBase58String(getStringValue(this, kSWOPid))
147147
148148 func getHeightFirstHarvest (pool) = valueOrElse(getInteger(Address(fromBase58String(pool)), kFirstHarvestHeight), 0)
149149
150150
151151 func getFHShareLimitToken (pool) = valueOrErrorMessage(getInteger(pool, kShareLimitFH), ("No data on the key: " + kShareLimitFH))
152152
153153
154-func getTotalShareTokenStaked (pool) = valueOrErrorMessage(getInteger(this, (pool + kShareTotalShareTokens)), (("No data on the key: " + pool) + kShareTotalShareTokens))
154+func getTotalShareToken (pool) = valueOrErrorMessage(getInteger(this, (pool + kShareTotalShareTokens)), (("No data on the key: " + pool) + kShareTotalShareTokens))
155155
156156
157157 func getPoolVoted (pool) = valueOrElse(getInteger(votingAddress, (pool + kPoolVote)), 0)
158158
159159
160160 func getUserPoolVoted (pool,user) = valueOrElse(getInteger(votingAddress, (((user + "_") + pool) + kPoolVote)), 0)
161161
162162
163163 func getShareAssetId (pool) = fromBase58String(getStringValue(value(addressFromString(pool)), "share_asset_id"))
164164
165165
166166 func accountBalance (assetId) = match assetId {
167167 case id: ByteVector =>
168168 assetBalance(this, id)
169169 case waves: Unit =>
170170 wavesBalance(this).available
171171 case _ =>
172172 throw("Match error")
173173 }
174174
175175
176176 func getAssetInfo (assetId) = match assetId {
177177 case id: ByteVector =>
178178 let stringId = toBase58String(id)
179179 let info = valueOrErrorMessage(assetInfo(id), (("Asset " + stringId) + " doesn't exist"))
180180 $Tuple3(stringId, info.name, info.decimals)
181181 case waves: Unit =>
182182 $Tuple3("WAVES", "WAVES", 8)
183183 case _ =>
184184 throw("Match error")
185185 }
186186
187187
188188 func calcScaleValue (assetId1,assetId2) = {
189189 let assetId1Decimals = value(assetInfo(assetId1)).decimals
190190 let assetId2Decimals = value(assetInfo(assetId2)).decimals
191191 let scaleDigits = ((assetId2Decimals - assetId1Decimals) + 8)
192192 pow(10, 0, scaleDigits, 0, 0, DOWN)
193193 }
194194
195195
196196 func userAvailableSWOP (pool,user) = valueOrElse(getInteger(this, (((pool + "_") + toString(user)) + kAvailableSWOP)), 0)
197197
198198
199199 func rewardInfo (pool) = {
200200 let totalRewardPerBlockCurrent = valueOrErrorMessage(getInteger(govAddress, kTotalRewardPerBlockCurrent), ((("No data on the key: " + kTotalRewardPerBlockCurrent) + " at address ") + toString(govAddress)))
201201 let totalRewardPerBlockPrevious = valueOrErrorMessage(getInteger(govAddress, kTotalRewardPerBlockPrevious), ((("No data on the key: " + kTotalRewardPerBlockPrevious) + " at address ") + toString(govAddress)))
202202 let rewardPoolFractionCurrent = valueOrErrorMessage(getInteger(govAddress, (pool + kRewardPoolFractionCurrent)), (((("No data on the key: " + pool) + kRewardPoolFractionCurrent) + " at address ") + toString(govAddress)))
203203 let rewardUpdateHeight = valueOrErrorMessage(getInteger(govAddress, kRewardUpdateHeight), ((("No data on the key: " + kRewardUpdateHeight) + " at address ") + toString(govAddress)))
204204 let poolRewardUpdateHeight = valueOrElse(getInteger(govAddress, (pool + kHeightPoolFraction)), rewardUpdateHeight)
205205 let rewardPoolFractionPrevious = valueOrErrorMessage(getInteger(govAddress, (pool + kRewardPoolFractionPrevious)), (((("No data on the key: " + pool) + kRewardPoolFractionPrevious) + " at address ") + toString(govAddress)))
206206 let rewardPoolCurrent = fraction(totalRewardPerBlockCurrent, rewardPoolFractionCurrent, totalVoteShare)
207207 let rewardPoolPrevious = fraction(totalRewardPerBlockCurrent, rewardPoolFractionPrevious, totalVoteShare)
208208 if (if ((rewardPoolCurrent > totalRewardPerBlockCurrent))
209209 then true
210210 else (rewardPoolPrevious > totalRewardPerBlockPrevious))
211211 then throw("rewardPoolCurrent > totalRewardPerBlockCurrent or rewardPoolPrevious > totalRewardPerBlockPrevious")
212212 else $Tuple4(rewardPoolCurrent, rewardUpdateHeight, rewardPoolPrevious, poolRewardUpdateHeight)
213213 }
214214
215215
216216 func getLastInterestInfo (pool) = {
217217 let farmInterest = valueOrErrorMessage(getInteger(this, (pool + kFarmLastInterest)), (("No data on the key: " + pool) + kFarmLastInterest))
218218 let boostInterest = valueOrErrorMessage(getInteger(this, (pool + kFarmLastInterest)), (("No data on the key: " + pool) + kBoostLastInterest))
219219 let boostLPInterest = valueOrErrorMessage(getInteger(this, (pool + kFarmLastInterest)), (("No data on the key: " + pool) + kBoostLPLastInterest))
220220 let lastInterestHeight = valueOrElse(getInteger(this, (pool + kLastInterestHeight)), height)
221221 $Tuple4(lastInterestHeight, farmInterest, boostInterest, boostLPInterest)
222222 }
223223
224224
225225 func calcFarmRwd (pool,curTotalReward) = {
226226 let poolBoostCoef = valueOrElse(getInteger(this, (pool + kPoolBoostCoef)), defPoolBoostCoef)
227227 ((curTotalReward / (poolBoostCoef + 1000)) / lockBoostCoefScale)
228228 }
229229
230230
231231 func calcBoostRwd (pool,curTotalReward) = {
232232 let poolBoostCoef = valueOrElse(getInteger(this, (pool + kPoolBoostCoef)), defPoolBoostCoef)
233233 (fraction(curTotalReward, poolBoostCoef, (poolBoostCoef + 1000)) / lockBoostCoefScale)
234234 }
235235
236236
237237 func calcInterest (pool,lastInterestHeight,rewardUpdateHeight,poolRewardUpdateHeight,farmInterest,boostInterest,poolVoted,boostLpInterest,currentRewardPerBlock,shareTokenLocked,previousRewardPerBlock,scaleValue) = if ((shareTokenLocked == 0))
238238 then $Tuple3(0, 0, 0)
239239 else if (if ((rewardUpdateHeight > height))
240240 then (rewardUpdateHeight == poolRewardUpdateHeight)
241241 else false)
242242 then {
243243 let reward = (previousRewardPerBlock * (height - lastInterestHeight))
244244 let newFarmInterest = (farmInterest + fraction(calcFarmRwd(pool, reward), scaleValue, shareTokenLocked))
245245 let newBoostInterest = (boostInterest + (if ((poolVoted > 0))
246246 then fraction(calcBoostRwd(pool, reward), scaleValue, poolVoted)
247247 else 0))
248248 let newBoostLPInterest = (boostLpInterest + (if (if ((poolVoted > 0))
249249 then (shareTokenLocked > 0)
250250 else false)
251251 then (fraction(calcBoostRwd(pool, reward), scaleValue, shareTokenLocked) / poolVoted)
252252 else 0))
253253 $Tuple3(newFarmInterest, newBoostInterest, newBoostLPInterest)
254254 }
255255 else if (if ((height > rewardUpdateHeight))
256256 then (rewardUpdateHeight != poolRewardUpdateHeight)
257257 else false)
258258 then {
259259 let reward = (previousRewardPerBlock * (height - lastInterestHeight))
260260 let newFarmInterest = (farmInterest + fraction(calcFarmRwd(pool, reward), scaleValue, shareTokenLocked))
261261 let newBoostInterest = (boostInterest + (if ((poolVoted > 0))
262262 then fraction(calcBoostRwd(pool, reward), scaleValue, poolVoted)
263263 else 0))
264264 let newBoostLPInterest = (boostLpInterest + (if (if ((poolVoted > 0))
265265 then (shareTokenLocked > 0)
266266 else false)
267267 then (fraction(calcBoostRwd(pool, reward), scaleValue, shareTokenLocked) / poolVoted)
268268 else 0))
269269 $Tuple3(newFarmInterest, newBoostInterest, newBoostLPInterest)
270270 }
271271 else if (if (if ((height > rewardUpdateHeight))
272272 then (rewardUpdateHeight == poolRewardUpdateHeight)
273273 else false)
274274 then (lastInterestHeight > rewardUpdateHeight)
275275 else false)
276276 then {
277277 let reward = (currentRewardPerBlock * (height - lastInterestHeight))
278278 let newFarmInterest = (farmInterest + fraction(calcFarmRwd(pool, reward), scaleValue, shareTokenLocked))
279279 let newBoostInterest = (boostInterest + (if ((poolVoted > 0))
280280 then fraction(calcBoostRwd(pool, reward), scaleValue, poolVoted)
281281 else 0))
282282 let newBoostLPInterest = (boostLpInterest + (if (if ((poolVoted > 0))
283283 then (shareTokenLocked > 0)
284284 else false)
285285 then (fraction(calcBoostRwd(pool, reward), scaleValue, shareTokenLocked) / poolVoted)
286286 else 0))
287287 $Tuple3(newFarmInterest, newBoostInterest, newBoostLPInterest)
288288 }
289289 else {
290290 let rwdBfrUpd = (previousRewardPerBlock * (rewardUpdateHeight - lastInterestHeight))
291291 let framIntrAftrUp = (farmInterest + fraction(calcFarmRwd(pool, rwdBfrUpd), scaleValue, shareTokenLocked))
292292 let boostIntrAftrUp = (boostInterest + (if ((poolVoted > 0))
293293 then fraction(calcBoostRwd(pool, rwdBfrUpd), scaleValue, poolVoted)
294294 else 0))
295295 let bostLPIntrAftrUp = (farmInterest + (if (if ((poolVoted > 0))
296296 then (shareTokenLocked > 0)
297297 else false)
298298 then fraction(calcBoostRwd(pool, rwdBfrUpd), scaleValue, poolVoted)
299299 else 0))
300300 let reward = (currentRewardPerBlock * (height - rewardUpdateHeight))
301301 let newFarmInterest = (framIntrAftrUp + fraction(calcFarmRwd(pool, reward), scaleValue, shareTokenLocked))
302302 let newBoostInterest = (boostIntrAftrUp + (if ((poolVoted > 0))
303303 then fraction(calcBoostRwd(pool, reward), scaleValue, poolVoted)
304304 else 0))
305305 let newBoostLPInterest = (bostLPIntrAftrUp + (if (if ((poolVoted > 0))
306306 then (shareTokenLocked > 0)
307307 else false)
308308 then (fraction(calcBoostRwd(pool, reward), scaleValue, shareTokenLocked) / poolVoted)
309309 else 0))
310310 $Tuple3(newFarmInterest, newBoostInterest, newBoostLPInterest)
311311 }
312312
313313
314314 func claimCalc (pool,user) = {
315315 let scaleValue = calcScaleValue(SWOP, getShareAssetId(pool))
316316 let poolVoted = getPoolVoted(pool)
317317 let uPoolVoted = getUserPoolVoted(pool, user)
318- let shareTokenStaked = getTotalShareTokenStaked(pool)
319- let totalShareVirtual = valueOrElse(getInteger(this, (pool + kShareTokensVirtual)), shareTokenStaked)
320- let $t01430914407 = getLastInterestInfo(pool)
321- let lastInterestHeight = $t01430914407._1
322- let farmInterest = $t01430914407._2
323- let boostInterest = $t01430914407._3
324- let boostLPInterest = $t01430914407._4
325- let $t01441214526 = rewardInfo(pool)
326- let currentRewardPerBlock = $t01441214526._1
327- let rewardUpdateHeight = $t01441214526._2
328- let previousRewardPerBlock = $t01441214526._3
329- let poolRewardUpdateHeight = $t01441214526._4
318+ let shareToken = getTotalShareToken(pool)
319+ let totalShareVirtual = valueOrElse(getInteger(this, (pool + kShareTokensVirtual)), shareToken)
320+ let $t01428514383 = getLastInterestInfo(pool)
321+ let lastInterestHeight = $t01428514383._1
322+ let farmInterest = $t01428514383._2
323+ let boostInterest = $t01428514383._3
324+ let boostLPInterest = $t01428514383._4
325+ let $t01438814502 = rewardInfo(pool)
326+ let currentRewardPerBlock = $t01438814502._1
327+ let rewardUpdateHeight = $t01438814502._2
328+ let previousRewardPerBlock = $t01438814502._3
329+ let poolRewardUpdateHeight = $t01438814502._4
330330 let uFarmInterest = valueOrElse(getInteger(this, (((pool + "_") + user) + kFarmUserLastInterest)), farmInterest)
331331 let uBoostInterest = valueOrElse(getInteger(this, (((pool + "_") + user) + kBoostUserLastInterest)), boostInterest)
332332 let uBoostLPInterest = valueOrElse(getInteger(this, (((pool + "_") + user) + kBoostLPUserLastInterest)), boostLPInterest)
333333 let uShareTokensStaked = valueOrElse(getInteger(this, (((pool + "_") + user) + kUserShareTokensStaked)), 0)
334334 let uShareTokensVirt = valueOrElse(getInteger(this, (((pool + "_") + user) + kUserShareTokensVirtual)), uShareTokensStaked)
335- let $t01509415486 = calcInterest(pool, lastInterestHeight, rewardUpdateHeight, poolRewardUpdateHeight, farmInterest, boostInterest, poolVoted, boostLPInterest, currentRewardPerBlock, shareTokenStaked, previousRewardPerBlock, scaleValue)
336- let newFarmInterest = $t01509415486._1
337- let newBoostInterest = $t01509415486._2
338- let newBoostLPInterest = $t01509415486._3
335+ let $t01507015463 = calcInterest(pool, lastInterestHeight, rewardUpdateHeight, poolRewardUpdateHeight, farmInterest, boostInterest, poolVoted, boostLPInterest, currentRewardPerBlock, totalShareVirtual, previousRewardPerBlock, scaleValue)
336+ let newFarmInterest = $t01507015463._1
337+ let newBoostInterest = $t01507015463._2
338+ let newBoostLPInterest = $t01507015463._3
339339 let claimFarming = fraction(uShareTokensVirt, (newFarmInterest - uFarmInterest), scaleValue)
340340 let claimBoostingMax = fraction(uPoolVoted, (newBoostInterest - uBoostInterest), scaleValue)
341341 let claimBoosting = fraction((uShareTokensVirt * uPoolVoted), (newBoostLPInterest - uBoostLPInterest), scaleValue)
342342 let toTreasury = (claimBoostingMax - claimBoosting)
343343 $Tuple5(newFarmInterest, newBoostInterest, newBoostLPInterest, (claimFarming + claimBoosting), toTreasury)
344344 }
345345
346346
347347 func canLockInFirstHarvest (pool,user,userShareTokensStaked,pmtAmount,lockType) = if ((getHeightFirstHarvest(pool) > height))
348348 then {
349349 let totalVoteAmount = valueOrElse(getInteger(votingAddress, (pool + kHarvestPoolVote)), 0)
350350 let userVoteAmount = valueOrElse(getInteger(votingAddress, (((user + "_") + pool) + kHarvestPoolVote)), 0)
351351 let FHShareTokenLimit = getFHShareLimitToken(addressFromStringValue(pool))
352352 let FHShareTokenUserLimit = (fraction(FHShareTokenLimit, userVoteAmount, totalVoteAmount) - userShareTokensStaked)
353353 if ((lockType > 0))
354354 then throw("You can't lock shareTokens till first harvest end.")
355355 else if ((userVoteAmount == 0))
356356 then 0
357357 else if ((pmtAmount >= FHShareTokenUserLimit))
358358 then (pmtAmount - FHShareTokenUserLimit)
359359 else 0
360360 }
361361 else 0
362362
363363
364364 func getLockParams (type) = {
365365 let lockParams = split(valueOrErrorMessage(getString(this, (toString(type) + kLockParams)), ("There are no key for lock type" + toString(type))), "_")
366366 $Tuple2(parseIntValue(lockParams[0]), parseIntValue(lockParams[1]))
367367 }
368368
369369
370370 func suspend (cause) = [BooleanEntry(kActive, false), StringEntry(kCause, cause)]
371371
372372
373373 func isActive () = if (if (active)
374374 then activeGlob
375375 else false)
376376 then unit
377377 else throw("DApp is inactive at this moment")
378378
379379
380380 func isAdminCall (i) = if (containsElement([adminPubKey1, adminPubKey2, adminPubKey3], i.callerPublicKey))
381381 then unit
382382 else throw("Only admin can call this function")
383383
384384
385385 @Callable(i)
386386 func init (earlyLP) = if (isDefined(getString(this, kSWOPid)))
387387 then throw("SWOP already initialized")
388388 else {
389389 let initAmount = 100000000000000
390390 let SWOPissue = Issue("SWOP", "SWOP protocol token", initAmount, 8, true)
391391 let SWOPid = calculateAssetId(SWOPissue)
392392 [BooleanEntry(kActive, true), Issue("SWOP", "SWOP protocol token", initAmount, 8, true), StringEntry(kSWOPid, toBase58String(SWOPid))]
393393 }
394394
395395
396396
397397 @Callable(i)
398398 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)])
399399
400400
401401
402402 @Callable(i)
403403 func updatePoolInterest (pool) = valueOrElse(isActive(), if ((i.caller != govAddress))
404404 then throw("Only Governance can call this function")
405405 else {
406406 let user = toString(addressFromPublicKey(adminInvokePubKey))
407- let $t01850318577 = claimCalc(pool, user)
408- let farmInterest = $t01850318577._1
409- let boostInterest = $t01850318577._2
410- let boostLPinterest = $t01850318577._3
407+ let $t01848018554 = claimCalc(pool, user)
408+ let farmInterest = $t01848018554._1
409+ let boostInterest = $t01848018554._2
410+ let boostLPinterest = $t01848018554._3
411411 [IntegerEntry((pool + kFarmLastInterest), farmInterest), IntegerEntry((pool + kBoostLastInterest), boostInterest), IntegerEntry((pool + kBoostLPLastInterest), boostLPinterest), IntegerEntry((pool + kLastInterestHeight), height)]
412412 })
413413
414414
415415
416416 @Callable(i)
417417 func lockShareTokens (pool,lockType) = valueOrElse(isActive(), {
418418 let shareAssetId = getShareAssetId(pool)
419419 let user = toString(i.originCaller)
420- let totalShareStaked = getTotalShareTokenStaked(pool)
421- let totalShareVirtual = valueOrElse(getInteger(this, (pool + kShareTokensVirtual)), totalShareStaked)
420+ let totalShare = getTotalShareToken(pool)
421+ let totalShareVirtual = valueOrElse(getInteger(this, (pool + kShareTokensVirtual)), totalShare)
422422 let userStakedAmount = valueOrElse(getInteger(this, (((pool + "_") + user) + kUserShareTokensStaked)), 0)
423423 let userLockedHeigt = valueOrElse(getInteger(this, (((pool + "_") + user) + kUserShareTokensLockedHeight)), 0)
424424 let userLockedAmount = valueOrElse(getInteger(this, (((pool + "_") + user) + kUserShareTokensLocked)), 0)
425425 let userAmountVirtual = valueOrElse(getInteger(this, (((pool + "_") + user) + kUserShareTokensVirtual)), userStakedAmount)
426426 let totalUserShareTokens = ((userStakedAmount + userLockedAmount) + i.payments[0].amount)
427- let $t01970419756 = getLockParams(lockType)
428- let lockPeriod = $t01970419756._1
429- let lockCoef = $t01970419756._2
427+ let $t01966319715 = getLockParams(lockType)
428+ let lockPeriod = $t01966319715._1
429+ let lockCoef = $t01966319715._2
430430 let lockWavesFee = getIntegerValue(this, kLockWavesFee)
431431 if ((i.payments[0].assetId != shareAssetId))
432432 then throw("Wrong sharetoken in payment")
433433 else if ((0 >= i.payments[0].amount))
434434 then throw("Payment amount must be greater than 0")
435435 else if ((0 > lockType))
436436 then throw("lockType must be >= 0")
437437 else {
438438 let shareTokensChangeOnFH = canLockInFirstHarvest(pool, user, userStakedAmount, i.payments[0].amount, lockType)
439439 if ((shareTokensChangeOnFH == shareTokensChangeOnFH))
440440 then {
441- let $t02018322112 = if ((lockType == 0))
441+ let $t02014221987 = if ((lockType == 0))
442442 then {
443443 let userAmountVirtualNew = ((userAmountVirtual + i.payments[0].amount) - shareTokensChangeOnFH)
444- $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))
444+ $Tuple2([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)], ((totalShare + i.payments[0].amount) - shareTokensChangeOnFH))
445445 }
446446 else if (if ((userLockedHeigt == 0))
447447 then if (if ((2 > size(i.payments)))
448448 then true
449449 else (i.payments[1].assetId != unit))
450450 then true
451451 else (lockWavesFee > i.payments[1].amount)
452452 else false)
453453 then throw((("You need to pay additional waves comission " + toString(lockWavesFee)) + "WAVES"))
454454 else if ((userLockedHeigt > (height + lockPeriod)))
455455 then throw("You cannot lock sharetokens for a period less than what you have already locked")
456456 else {
457457 let userLockedAmountNew = (userLockedAmount + i.payments[0].amount)
458458 let userLockedHeigtNew = (height + lockPeriod)
459459 let userAmountVirtualNew = (fraction(userLockedAmountNew, lockCoef, lockBoostCoefScale) + userStakedAmount)
460- $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))
460+ $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))
461461 }
462- let lockEntries = $t02018322112._1
463- let userAmountVirtualNew = $t02018322112._2
464- let totalShareStakedNew = $t02018322112._3
465- if ((accountBalance(shareAssetId) > totalShareStakedNew))
462+ let lockEntries = $t02014221987._1
463+ let totalShareNew = $t02014221987._2
464+ if ((accountBalance(shareAssetId) > totalShareNew))
466465 then throw("Balance of share-token is lower than totalAmount")
467466 else {
468- let $t02224322342 = claimCalc(pool, user)
469- let farmInterest = $t02224322342._1
470- let boostInterest = $t02224322342._2
471- let boostLPinterest = $t02224322342._3
472- let claimAmount = $t02224322342._4
473- let toTreasure = $t02224322342._5
467+ let $t02211222211 = claimCalc(pool, user)
468+ let farmInterest = $t02211222211._1
469+ let boostInterest = $t02211222211._2
470+ let boostLPinterest = $t02211222211._3
471+ let claimAmount = $t02211222211._4
472+ let toTreasure = $t02211222211._5
474473 let availableFundsNew = (userAvailableSWOP(pool, i.originCaller) + claimAmount)
475474 let uplp = if ((getString(Address(fromBase58String(pool)), "version") == "3.0.0"))
476475 then invoke(lpFarmingAddress, "updateUserInterest", [pool, totalUserShareTokens], nil)
477476 else 0
478477 if ((uplp == uplp))
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)
478+ 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), totalShareNew), IntegerEntry((((pool + "_") + user) + kAvailableSWOP), availableFundsNew), Reissue(SWOP, toTreasure, true), ScriptTransfer(farmingTreasureAddr, toTreasure, SWOP)] ++ lockEntries)
480479 else throw("Strict value is not equal to itself.")
481480 }
482481 }
483482 else throw("Strict value is not equal to itself.")
484483 }
485484 })
486485
487486
488487
489488 @Callable(i)
490489 func lockStakedShareTokens (pool,lockType,lockAmount) = valueOrElse(isActive(), {
491490 let shareAssetId = getShareAssetId(pool)
492491 let user = toString(i.originCaller)
493- let totalShareStaked = getTotalShareTokenStaked(pool)
494- let totalShareVirtual = valueOrElse(getInteger(this, (pool + kShareTokensVirtual)), totalShareStaked)
492+ let totalShare = getTotalShareToken(pool)
493+ let totalShareVirtual = valueOrElse(getInteger(this, (pool + kShareTokensVirtual)), totalShare)
495494 let userStakedAmount = valueOrElse(getInteger(this, (((pool + "_") + user) + kUserShareTokensStaked)), 0)
496495 let userLockedHeigt = valueOrElse(getInteger(this, (((pool + "_") + user) + kUserShareTokensLockedHeight)), 0)
497496 let userLockedAmount = valueOrElse(getInteger(this, (((pool + "_") + user) + kUserShareTokensLocked)), 0)
498497 let userAmountVirtual = valueOrElse(getInteger(this, (((pool + "_") + user) + kUserShareTokensVirtual)), userStakedAmount)
499498 let totalUserShareTokens = (userStakedAmount + userLockedAmount)
500- let $t02427424326 = getLockParams(lockType)
501- let lockPeriod = $t02427424326._1
502- let lockCoef = $t02427424326._2
499+ let $t02411924171 = getLockParams(lockType)
500+ let lockPeriod = $t02411924171._1
501+ let lockCoef = $t02411924171._2
503502 let lockWavesFee = getIntegerValue(this, kLockWavesFee)
504503 if ((getHeightFirstHarvest(pool) > height))
505504 then throw("You can't lock shareTokens till first harvest end.")
506505 else if ((0 >= lockType))
507506 then throw("lockType must be > 0")
508507 else if ((lockAmount > userStakedAmount))
509508 then throw(("You can't lock more than " + toString(userStakedAmount)))
510- else if ((accountBalance(shareAssetId) > totalShareStaked))
509+ else if ((accountBalance(shareAssetId) > totalShare))
511510 then throw("Balance of share-token is lower than totalAmount")
512511 else if (if ((userLockedHeigt == 0))
513512 then if (if ((1 > size(i.payments)))
514513 then true
515514 else (i.payments[0].assetId != unit))
516515 then true
517516 else (lockWavesFee > i.payments[0].amount)
518517 else false)
519518 then throw((("You need to pay additional waves comission " + toString(lockWavesFee)) + "WAVES"))
520519 else if ((userLockedHeigt > (height + lockPeriod)))
521520 then throw("You cannot lock sharetokens for a period less than what you have already locked")
522521 else {
523522 let userLockedAmountNew = (userLockedAmount + lockAmount)
524523 let userStakedAmountNew = (userStakedAmount - lockAmount)
525524 let userLockedHeigtNew = (height + lockPeriod)
526525 let userAmountVirtualNew = (fraction(userLockedAmountNew, lockCoef, lockBoostCoefScale) + userStakedAmount)
527- let $t02545025549 = claimCalc(pool, user)
528- let farmInterest = $t02545025549._1
529- let boostInterest = $t02545025549._2
530- let boostLPinterest = $t02545025549._3
531- let claimAmount = $t02545025549._4
532- let toTreasure = $t02545025549._5
526+ let $t02528925388 = claimCalc(pool, user)
527+ let farmInterest = $t02528925388._1
528+ let boostInterest = $t02528925388._2
529+ let boostLPinterest = $t02528925388._3
530+ let claimAmount = $t02528925388._4
531+ let toTreasure = $t02528925388._5
533532 let availableFundsNew = (userAvailableSWOP(pool, i.originCaller) + claimAmount)
534533 [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 + "_") + 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)]
535534 }
536535 })
537536
538537
539538
540539 @Callable(i)
541540 func unlockUserLock (pool,user) = valueOrElse(isActive(), {
542541 let lockWavesFee = getIntegerValue(this, kLockWavesFee)
543542 let userLockedHeigt = valueOrErrorMessage(getInteger(this, (((pool + "_") + user) + kUserShareTokensLockedHeight)), (((("There is no pool " + pool) + " or user ") + user) + "with lock"))
544543 let totalShareVirtual = getIntegerValue(this, (pool + kShareTokensVirtual))
545544 let userStakedAmount = valueOrElse(getInteger(this, (((pool + "_") + user) + kUserShareTokensStaked)), 0)
546545 let userLockedAmount = valueOrElse(getInteger(this, (((pool + "_") + user) + kUserShareTokensLocked)), 0)
547546 let userAmountVirtual = valueOrElse(getInteger(this, (((pool + "_") + user) + kUserShareTokensVirtual)), userStakedAmount)
548547 if ((userLockedHeigt > height))
549548 then throw(("You can't unlock sharetokens till " + toString(userLockedHeigt)))
550549 else {
551550 let userStakedAmountNew = (userStakedAmount + userLockedAmount)
552- let $t02778527884 = claimCalc(pool, user)
553- let farmInterest = $t02778527884._1
554- let boostInterest = $t02778527884._2
555- let boostLPinterest = $t02778527884._3
556- let claimAmount = $t02778527884._4
557- let toTreasure = $t02778527884._5
551+ let $t02762427723 = claimCalc(pool, user)
552+ let farmInterest = $t02762427723._1
553+ let boostInterest = $t02762427723._2
554+ let boostLPinterest = $t02762427723._3
555+ let claimAmount = $t02762427723._4
556+ let toTreasure = $t02762427723._5
558557 let availableFundsNew = (userAvailableSWOP(pool, i.originCaller) + claimAmount)
559558 [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)]
560559 }
561560 })
562561
563562
564563
565564 @Callable(i)
566565 func withdrawShareTokens (pool,shareTokensWithdrawAmount) = valueOrElse(isActive(), {
567566 let shareTokensId = fromBase58String(getStringValue(value(addressFromString(pool)), "share_asset_id"))
568567 let user = toString(i.originCaller)
569- let $t02938829487 = claimCalc(pool, user)
570- let farmInterest = $t02938829487._1
571- let boostInterest = $t02938829487._2
572- let boostLPinterest = $t02938829487._3
573- let claimAmount = $t02938829487._4
574- let toTreasure = $t02938829487._5
568+ let $t02922729326 = claimCalc(pool, user)
569+ let farmInterest = $t02922729326._1
570+ let boostInterest = $t02922729326._2
571+ let boostLPinterest = $t02922729326._3
572+ let claimAmount = $t02922729326._4
573+ let toTreasure = $t02922729326._5
575574 let userStakedAmount = valueOrElse(getInteger(this, (((pool + "_") + user) + kUserShareTokensStaked)), 0)
576575 let userLockedAmount = valueOrElse(getInteger(this, (((pool + "_") + user) + kUserShareTokensLocked)), 0)
577576 let userAmountVirtual = valueOrElse(getInteger(this, (((pool + "_") + user) + kUserShareTokensVirtual)), userStakedAmount)
578577 let userStakedAmountNew = (userStakedAmount - shareTokensWithdrawAmount)
579578 let availableFundsNew = (userAvailableSWOP(pool, i.originCaller) + claimAmount)
580- let totalShareAmount = getTotalShareTokenStaked(pool)
579+ let totalShareAmount = getTotalShareToken(pool)
581580 let totalShareVirtual = valueOrElse(getInteger(this, (pool + kShareTokensVirtual)), totalShareAmount)
582581 let totalShareAmountNew = (totalShareAmount - shareTokensWithdrawAmount)
583582 let totalShareVirtualNew = (totalShareVirtual - shareTokensWithdrawAmount)
584583 let userAmountVirtualNew = (userAmountVirtual - shareTokensWithdrawAmount)
585584 if ((shareTokensWithdrawAmount > userStakedAmount))
586585 then throw("Withdraw amount more then user locked amount")
587586 else if ((accountBalance(shareTokensId) > totalShareAmount))
588587 then throw("Balance of share-token is lower than totalAmount")
589588 else {
590589 let uplp = if ((getString(Address(fromBase58String(pool)), "version") == "3.0.0"))
591590 then invoke(lpFarmingAddress, "updateUserInterest", [pool, (userStakedAmount + userLockedAmount)], nil)
592591 else 0
593592 if ((uplp == uplp))
594593 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 + "_") + user) + kUserShareTokensVirtual), userAmountVirtualNew), IntegerEntry((pool + kShareTotalShareTokens), totalShareAmountNew), IntegerEntry((pool + kShareTokensVirtual), totalShareVirtualNew), IntegerEntry((((pool + "_") + user) + kAvailableSWOP), availableFundsNew), Reissue(SWOP, toTreasure, true), ScriptTransfer(farmingTreasureAddr, toTreasure, SWOP), ScriptTransfer(i.caller, shareTokensWithdrawAmount, shareTokensId)]
595594 else throw("Strict value is not equal to itself.")
596595 }
597596 })
598597
599598
600599
601600 @Callable(i)
602601 func claim (pool) = valueOrElse(isActive(), {
603602 let shareTokensId = fromBase58String(getStringValue(value(addressFromString(pool)), "share_asset_id"))
604603 let user = toString(i.caller)
605- let shareTokenLocked = getTotalShareTokenStaked(pool)
606- let $t03216832267 = claimCalc(pool, user)
607- let farmInterest = $t03216832267._1
608- let boostInterest = $t03216832267._2
609- let boostLPinterest = $t03216832267._3
610- let claimAmount = $t03216832267._4
611- let toTreasure = $t03216832267._5
604+ let shareTokenLocked = getTotalShareToken(pool)
605+ let $t03199532094 = claimCalc(pool, user)
606+ let farmInterest = $t03199532094._1
607+ let boostInterest = $t03199532094._2
608+ let boostLPinterest = $t03199532094._3
609+ let claimAmount = $t03199532094._4
610+ let toTreasure = $t03199532094._5
612611 let availableFund = (userAvailableSWOP(pool, i.caller) + claimAmount)
613612 if ((availableFund == 0))
614613 then throw("You have 0 available SWOP")
615614 else if ((accountBalance(shareTokensId) > shareTokenLocked))
616615 then throw("Balance of share-token is lower than totalAmount")
617616 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)
618617 })
619618
620619
621620
622621 @Callable(i)
623622 func claimAndStake (pool) = valueOrElse(isActive(), {
624623 let claimAmount = {
625624 let @ = invoke(this, "claim", [pool], nil)
626625 if ($isInstanceOf(@, "Int"))
627626 then @
628627 else throw(($getType(@) + " couldn't be cast to Int"))
629628 }
630629 if ((claimAmount == claimAmount))
631630 then {
632631 let stakeToGov = invoke(govAddress, "lockSWOPFromFarming", nil, [AttachedPayment(SWOP, claimAmount)])
633632 if ((stakeToGov == stakeToGov))
634633 then nil
635634 else throw("Strict value is not equal to itself.")
636635 }
637636 else throw("Strict value is not equal to itself.")
638637 })
639638
640639
641640
642641 @Callable(i)
643642 func claimAll (pools) = valueOrElse(isActive(), {
644643 func claimInv (claimTotal,pool) = {
645644 let claimAmount = {
646645 let @ = invoke(this, "claim", [pool], nil)
647646 if ($isInstanceOf(@, "Int"))
648647 then @
649648 else throw(($getType(@) + " couldn't be cast to Int"))
650649 }
651650 if ((claimAmount == claimAmount))
652651 then (claimTotal + claimAmount)
653652 else throw("Strict value is not equal to itself.")
654653 }
655654
656655 let claimTotal = {
657656 let $l = pools
658657 let $s = size($l)
659658 let $acc0 = 0
660659 func $f0_1 ($a,$i) = if (($i >= $s))
661660 then $a
662661 else claimInv($a, $l[$i])
663662
664663 func $f0_2 ($a,$i) = if (($i >= $s))
665664 then $a
666665 else throw("List size exceeds 60")
667666
668667 $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)
669668 }
670669 if ((claimTotal == 0))
671670 then throw("You have 0 available SWOP")
672671 else [ScriptTransfer(i.caller, claimTotal, SWOP)]
673672 })
674673
675674
676675
677676 @Callable(i)
678677 func claimAllAndStake (pools) = valueOrElse(isActive(), {
679678 func claimInv (claimTotal,pool) = {
680679 let claimAmount = {
681680 let @ = invoke(this, "claim", [pool], nil)
682681 if ($isInstanceOf(@, "Int"))
683682 then @
684683 else throw(($getType(@) + " couldn't be cast to Int"))
685684 }
686685 if ((claimAmount == claimAmount))
687686 then (claimTotal + claimAmount)
688687 else throw("Strict value is not equal to itself.")
689688 }
690689
691690 let claimTotal = {
692691 let $l = pools
693692 let $s = size($l)
694693 let $acc0 = 0
695694 func $f0_1 ($a,$i) = if (($i >= $s))
696695 then $a
697696 else claimInv($a, $l[$i])
698697
699698 func $f0_2 ($a,$i) = if (($i >= $s))
700699 then $a
701700 else throw("List size exceeds 60")
702701
703702 $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)
704703 }
705704 if ((claimTotal == 0))
706705 then throw("You have 0 available SWOP")
707706 else {
708707 let stakeToGov = invoke(govAddress, "lockSWOPFromFarming", nil, [AttachedPayment(SWOP, claimTotal)])
709708 if ((stakeToGov == stakeToGov))
710709 then nil
711710 else throw("Strict value is not equal to itself.")
712711 }
713712 })
714713
715714
716715
717716 @Callable(i)
718717 func updateUserBoostInterest (pool,user) = valueOrElse(isActive(), if ((i.caller != votingAddress))
719718 then throw("Only voiting can call this function")
720719 else {
721- let $t03464734746 = claimCalc(pool, user)
722- let farmInterest = $t03464734746._1
723- let boostInterest = $t03464734746._2
724- let boostLPinterest = $t03464734746._3
725- let claimAmount = $t03464734746._4
726- let toTreasure = $t03464734746._5
720+ let $t03447434573 = claimCalc(pool, user)
721+ let farmInterest = $t03447434573._1
722+ let boostInterest = $t03447434573._2
723+ let boostLPinterest = $t03447434573._3
724+ let claimAmount = $t03447434573._4
725+ let toTreasure = $t03447434573._5
727726 let availableFundsNew = (userAvailableSWOP(pool, i.originCaller) + claimAmount)
728727 [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)]
729728 })
730729
731730
732731
733732 @Callable(i)
734733 func shutdown () = valueOrElse(isAdminCall(i), if (!(active))
735734 then throw(("DApp is already suspended. Cause: " + valueOrElse(getString(this, kCause), "the cause wasn't specified")))
736735 else suspend("Paused by admin"))
737736
738737
739738
740739 @Callable(i)
741740 func activate () = valueOrElse(isAdminCall(i), if (active)
742741 then throw("DApp is already active")
743742 else [BooleanEntry(kActive, true), DeleteEntry(kCause)])
744743
745744
746745 @Verifier(tx)
747746 func verify () = match tx {
748747 case _ =>
749748 let adminPubKey1Signed = if (sigVerify(tx.bodyBytes, tx.proofs[0], adminPubKey1))
750749 then 1
751750 else 0
752751 let adminPubKey2Signed = if (sigVerify(tx.bodyBytes, tx.proofs[1], adminPubKey2))
753752 then 1
754753 else 0
755754 let adminPubKey3Signed = if (sigVerify(tx.bodyBytes, tx.proofs[2], adminPubKey3))
756755 then 1
757756 else 0
758757 (((adminPubKey1Signed + adminPubKey2Signed) + adminPubKey3Signed) >= 2)
759758 }
760759

github/deemru/w8io/026f985 
124.37 ms