tx · Yat37uPdCqfD1maLiPe6WR4HQcVLmeyMY48afutrdGq

3MsXpzisJAwnzUr7XrEoW1BZo4U6rw4tsYK:  -0.14000000 Waves

2022.10.20 11:35 [2280484] smart account 3MsXpzisJAwnzUr7XrEoW1BZo4U6rw4tsYK > SELF 0.00000000 Waves

{ "type": 13, "id": "Yat37uPdCqfD1maLiPe6WR4HQcVLmeyMY48afutrdGq", "fee": 14000000, "feeAssetId": null, "timestamp": 1666254952764, "version": 2, "chainId": 84, "sender": "3MsXpzisJAwnzUr7XrEoW1BZo4U6rw4tsYK", "senderPublicKey": "FFdBua5rzzMkZebvsvmN7sAdU7XhFK8QNJ3hiwwxAYRA", "proofs": [ "4nF58oU8PVt1mjKYtoRq4XFQYnFL8Hr4DstaejkFwTo2Z3bEXgyevYwJUpqxjdzYWddYngQ8peEDyhHxFFAHTijB", "3dY3tBrPVKbnjToUTGmyf5Cg1LZFFP9ZJUd3wE3twCChRmMt2oMiy84pAP4gniXe76GKcaTMSaoUVwEcMVATwEGd" ], "script": "base64:BgJICAISAwoBCBIDCgEIEgMKAQgSBAoCCAESBQoDCAEBEgQKAggIEgQKAggBEgMKAQgSAwoBCBIDCgEYEgMKARgSBAoCCAgSABIAWAAHa0FjdGl2ZQIGYWN0aXZlAAZrQ2F1c2UCDnNodXRkb3duX2NhdXNlABprUmV3YXJkUG9vbEZyYWN0aW9uQ3VycmVudAIdX2N1cnJlbnRfcG9vbF9mcmFjdGlvbl9yZXdhcmQAG2tSZXdhcmRQb29sRnJhY3Rpb25QcmV2aW91cwIeX3ByZXZpb3VzX3Bvb2xfZnJhY3Rpb25fcmV3YXJkABNrSGVpZ2h0UG9vbEZyYWN0aW9uAhpfcG9vbF9yZXdhcmRfdXBkYXRlX2hlaWdodAAba1RvdGFsUmV3YXJkUGVyQmxvY2tDdXJyZW50Ah50b3RhbF9yZXdhcmRfcGVyX2Jsb2NrX2N1cnJlbnQAHGtUb3RhbFJld2FyZFBlckJsb2NrUHJldmlvdXMCH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taW5QdWJLZXkyAAEAAAQSYWRtaW5QdWJLZXkzU2lnbmVkAwkA9AMDCAUCdHgJYm9keUJ5dGVzCQCRAwIIBQJ0eAZwcm9vZnMAAgUMYWRtaW5QdWJLZXkzAAEAAAkAZwIJAGQCCQBkAgUSYWRtaW5QdWJLZXkxU2lnbmVkBRJhZG1pblB1YktleTJTaWduZWQFEmFkbWluUHViS2V5M1NpZ25lZAAChqBMJQ==", "height": 2280484, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 4G6GZo7sucHyRPB4SLjmriLKDCARZMbA3eZLdqa1QdyS Next: DCAx8MDDkdNncZda2euzyMuTYYQTy6YkZ46XVSYBjZft Diff:
OldNewDifferences
349349 if ((lockType > 0))
350350 then throw("You can't lock shareTokens till first harvest end.")
351351 else if ((userVoteAmount == 0))
352- then throw("You can't lock shareTokens because you didn't vote in first harvest")
353- else if ((pmtAmount > FHShareTokenUserLimit))
354- then throw(("You can't lock more than you vote in first harvest. Your can lock " + toString(FHShareTokenUserLimit)))
355- else true
352+ then 0
353+ else if ((pmtAmount >= FHShareTokenUserLimit))
354+ then (pmtAmount - FHShareTokenUserLimit)
355+ else 0
356356 }
357- else true
357+ else 0
358358
359359
360360 func getLockParams (type) = {
398398 then throw("Only Governance can call this function")
399399 else {
400400 let user = toString(addressFromPublicKey(adminInvokePubKey))
401- let $t01853818612 = claimCalc(pool, user)
402- let farmInterest = $t01853818612._1
403- let boostInterest = $t01853818612._2
404- let boostLPinterest = $t01853818612._3
401+ let $t01838118455 = claimCalc(pool, user)
402+ let farmInterest = $t01838118455._1
403+ let boostInterest = $t01838118455._2
404+ let boostLPinterest = $t01838118455._3
405405 [IntegerEntry((pool + kFarmLastInterest), farmInterest), IntegerEntry((pool + kBoostLastInterest), boostInterest), IntegerEntry((pool + kBoostLPLastInterest), boostLPinterest), IntegerEntry((pool + kLastInterestHeight), height)]
406406 })
407407
417417 let userLockedHeigt = valueOrElse(getInteger(this, (((pool + "_") + user) + kUserShareTokensLockedHeight)), 0)
418418 let userLockedAmount = valueOrElse(getInteger(this, (((pool + "_") + user) + kUserShareTokensLocked)), 0)
419419 let userAmountVirtual = valueOrElse(getInteger(this, (((pool + "_") + user) + kUserShareTokensVirtual)), userStakedAmount)
420- let totalShareStakedNew = (totalShareStaked + i.payments[0].amount)
421420 let totalUserShareTokens = ((userStakedAmount + userLockedAmount) + i.payments[0].amount)
422- let $t01980919861 = getLockParams(lockType)
423- let lockPeriod = $t01980919861._1
424- let lockCoef = $t01980919861._2
421+ let $t01958219634 = getLockParams(lockType)
422+ let lockPeriod = $t01958219634._1
423+ let lockCoef = $t01958219634._2
425424 let lockWavesFee = getIntegerValue(this, kLockWavesFee)
426- if ((0 >= i.payments[0].amount))
427- then throw("Payment amount must be greater than 0")
428- else if ((0 > lockType))
429- then throw("lockType must be >= 0")
430- else if ((accountBalance(shareAssetId) > totalShareStakedNew))
431- then throw("Balance of share-token is lower than totalAmount")
432- else if (!(canLockInFirstHarvest(pool, user, userStakedAmount, i.payments[0].amount, lockType)))
433- then throw()
434- else {
435- let $t02031321949 = if ((lockType == 0))
436- then {
437- let userAmountVirtualNew = (userAmountVirtual + i.payments[0].amount)
438- $Tuple2([IntegerEntry((((pool + "_") + user) + kUserShareTokensStaked), (userStakedAmount + i.payments[0].amount)), IntegerEntry((pool + kShareTokensVirtual), (totalShareVirtual + i.payments[0].amount))], userAmountVirtualNew)
439- }
440- else if (if ((userLockedHeigt == 0))
441- then if (if ((2 > size(i.payments)))
442- then true
443- else (i.payments[1].assetId != unit))
444- then true
445- else (lockWavesFee > i.payments[1].amount)
446- else false)
447- then throw((("You need to pay additional waves comission " + toString(lockWavesFee)) + "WAVES"))
448- else if ((userLockedHeigt > (height + lockPeriod)))
449- then throw("You cannot lock sharetokens for a period less than what you have already locked")
450- else {
451- let userLockedAmountNew = (userLockedAmount + i.payments[0].amount)
452- let userLockedHeigtNew = (height + lockPeriod)
453- let userAmountVirtualNew = (fraction(userLockedAmountNew, lockCoef, lockBoostCoefScale) + userStakedAmount)
454- $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))], userAmountVirtualNew)
455- }
456- let lockEntries = $t02031321949._1
457- let userAmountVirtualNew = $t02031321949._2
458- let $t02195522054 = claimCalc(pool, user)
459- let farmInterest = $t02195522054._1
460- let boostInterest = $t02195522054._2
461- let boostLPinterest = $t02195522054._3
462- let claimAmount = $t02195522054._4
463- let toTreasure = $t02195522054._5
464- let availableFundsNew = (userAvailableSWOP(pool, i.originCaller) + claimAmount)
465- let uplp = if ((getString(Address(fromBase58String(pool)), "version") == "3.0.0"))
466- then invoke(lpFarmingAddress, "updateUserInterest", [pool, totalUserShareTokens], nil)
467- else 0
468- if ((uplp == uplp))
469- then ([IntegerEntry((((pool + "_") + user) + kFarmUserLastInterest), farmInterest), IntegerEntry((((pool + "_") + user) + kBoostUserLastInterest), boostInterest), IntegerEntry((((pool + "_") + user) + kBoostLPLastInterest), boostLPinterest), IntegerEntry((pool + kFarmLastInterest), farmInterest), IntegerEntry((pool + kBoostLastInterest), boostInterest), IntegerEntry((pool + kBoostLPLastInterest), boostLPinterest), IntegerEntry((pool + kLastInterestHeight), height), IntegerEntry((pool + kShareTotalShareTokens), totalShareStakedNew), IntegerEntry((((pool + "_") + user) + kAvailableSWOP), availableFundsNew), Reissue(SWOP, toTreasure, true), ScriptTransfer(airdropMoneyBoxAddr, toTreasure, SWOP)] ++ lockEntries)
470- else throw("Strict value is not equal to itself.")
471- }
425+ if ((i.payments[0].assetId != shareAssetId))
426+ then throw("Wrong sharetoken in payment")
427+ else if ((0 >= i.payments[0].amount))
428+ then throw("Payment amount must be greater than 0")
429+ else if ((0 > lockType))
430+ then throw("lockType must be >= 0")
431+ else {
432+ let shareTokensChangeOnFH = canLockInFirstHarvest(pool, user, userStakedAmount, i.payments[0].amount, lockType)
433+ if ((shareTokensChangeOnFH == shareTokensChangeOnFH))
434+ then {
435+ let $t02006121990 = if ((lockType == 0))
436+ then {
437+ let userAmountVirtualNew = ((userAmountVirtual + i.payments[0].amount) - shareTokensChangeOnFH)
438+ $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))
439+ }
440+ else if (if ((userLockedHeigt == 0))
441+ then if (if ((2 > size(i.payments)))
442+ then true
443+ else (i.payments[1].assetId != unit))
444+ then true
445+ else (lockWavesFee > i.payments[1].amount)
446+ else false)
447+ then throw((("You need to pay additional waves comission " + toString(lockWavesFee)) + "WAVES"))
448+ else if ((userLockedHeigt > (height + lockPeriod)))
449+ then throw("You cannot lock sharetokens for a period less than what you have already locked")
450+ else {
451+ let userLockedAmountNew = (userLockedAmount + i.payments[0].amount)
452+ let userLockedHeigtNew = (height + lockPeriod)
453+ let userAmountVirtualNew = (fraction(userLockedAmountNew, lockCoef, lockBoostCoefScale) + userStakedAmount)
454+ $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))
455+ }
456+ let lockEntries = $t02006121990._1
457+ let userAmountVirtualNew = $t02006121990._2
458+ let totalShareStakedNew = $t02006121990._3
459+ if ((accountBalance(shareAssetId) > totalShareStakedNew))
460+ then throw("Balance of share-token is lower than totalAmount")
461+ else {
462+ let $t02212122220 = claimCalc(pool, user)
463+ let farmInterest = $t02212122220._1
464+ let boostInterest = $t02212122220._2
465+ let boostLPinterest = $t02212122220._3
466+ let claimAmount = $t02212122220._4
467+ let toTreasure = $t02212122220._5
468+ let availableFundsNew = (userAvailableSWOP(pool, i.originCaller) + claimAmount)
469+ let uplp = if ((getString(Address(fromBase58String(pool)), "version") == "3.0.0"))
470+ then invoke(lpFarmingAddress, "updateUserInterest", [pool, totalUserShareTokens], nil)
471+ else 0
472+ if ((uplp == uplp))
473+ then ([IntegerEntry((((pool + "_") + user) + kFarmUserLastInterest), farmInterest), IntegerEntry((((pool + "_") + user) + kBoostUserLastInterest), boostInterest), IntegerEntry((((pool + "_") + user) + kBoostLPLastInterest), boostLPinterest), IntegerEntry((pool + kFarmLastInterest), farmInterest), IntegerEntry((pool + kBoostLastInterest), boostInterest), IntegerEntry((pool + kBoostLPLastInterest), boostLPinterest), IntegerEntry((pool + kLastInterestHeight), height), IntegerEntry((pool + kShareTotalShareTokens), totalShareStakedNew), IntegerEntry((((pool + "_") + user) + kAvailableSWOP), availableFundsNew), Reissue(SWOP, toTreasure, true), ScriptTransfer(airdropMoneyBoxAddr, toTreasure, SWOP)] ++ lockEntries)
474+ else throw("Strict value is not equal to itself.")
475+ }
476+ }
477+ else throw("Strict value is not equal to itself.")
478+ }
472479 })
473480
474481
484491 let userLockedAmount = valueOrElse(getInteger(this, (((pool + "_") + user) + kUserShareTokensLocked)), 0)
485492 let userAmountVirtual = valueOrElse(getInteger(this, (((pool + "_") + user) + kUserShareTokensVirtual)), userStakedAmount)
486493 let totalUserShareTokens = (userStakedAmount + userLockedAmount)
487- let $t02398624038 = getLockParams(lockType)
488- let lockPeriod = $t02398624038._1
489- let lockCoef = $t02398624038._2
494+ let $t02415224204 = getLockParams(lockType)
495+ let lockPeriod = $t02415224204._1
496+ let lockCoef = $t02415224204._2
490497 let lockWavesFee = getIntegerValue(this, kLockWavesFee)
491498 if ((height > getHeightFirstHarvest(pool)))
492499 then throw("You can't lock shareTokens till first harvest end.")
512519 let userLockedHeigtNew = (height + lockPeriod)
513520 let userAmountVirtualNew = (fraction(userLockedAmountNew, lockCoef, lockBoostCoefScale) + userStakedAmount)
514521 let lockEntries = [IntegerEntry((((pool + "_") + user) + kUserShareTokensStaked), userStakedAmountNew), IntegerEntry((((pool + "_") + user) + kUserShareTokensLocked), userLockedAmountNew), IntegerEntry((((pool + "_") + user) + kUserShareTokensLockedHeight), userLockedHeigtNew), IntegerEntry((((pool + "_") + user) + kUserShareTokensLockedType), lockType), IntegerEntry((((pool + "_") + user) + kUserShareTokensVirtual), userAmountVirtualNew), IntegerEntry((pool + kShareTokensVirtual), ((totalShareVirtual - userAmountVirtual) + userAmountVirtualNew))]
515- let $t02573825837 = claimCalc(pool, user)
516- let farmInterest = $t02573825837._1
517- let boostInterest = $t02573825837._2
518- let boostLPinterest = $t02573825837._3
519- let claimAmount = $t02573825837._4
520- let toTreasure = $t02573825837._5
522+ let $t02590426003 = claimCalc(pool, user)
523+ let farmInterest = $t02590426003._1
524+ let boostInterest = $t02590426003._2
525+ let boostLPinterest = $t02590426003._3
526+ let claimAmount = $t02590426003._4
527+ let toTreasure = $t02590426003._5
521528 let availableFundsNew = (userAvailableSWOP(pool, i.originCaller) + claimAmount)
522529 [IntegerEntry((((pool + "_") + user) + kFarmUserLastInterest), farmInterest), IntegerEntry((((pool + "_") + user) + kBoostUserLastInterest), boostInterest), IntegerEntry((((pool + "_") + user) + kBoostLPLastInterest), boostLPinterest), IntegerEntry((pool + kFarmLastInterest), farmInterest), IntegerEntry((pool + kBoostLastInterest), boostInterest), IntegerEntry((pool + kBoostLPLastInterest), boostLPinterest), IntegerEntry((pool + kLastInterestHeight), height), IntegerEntry((((pool + "_") + user) + kAvailableSWOP), availableFundsNew), Reissue(SWOP, toTreasure, true), ScriptTransfer(airdropMoneyBoxAddr, toTreasure, SWOP)]
523530 }
537544 then throw(("You can't unlock sharetokens till " + toString(userLockedHeigt)))
538545 else {
539546 let userStakedAmountNew = (userStakedAmount + userLockedAmount)
540- let $t02752527624 = claimCalc(pool, user)
541- let farmInterest = $t02752527624._1
542- let boostInterest = $t02752527624._2
543- let boostLPinterest = $t02752527624._3
544- let claimAmount = $t02752527624._4
545- let toTreasure = $t02752527624._5
547+ let $t02769127790 = claimCalc(pool, user)
548+ let farmInterest = $t02769127790._1
549+ let boostInterest = $t02769127790._2
550+ let boostLPinterest = $t02769127790._3
551+ let claimAmount = $t02769127790._4
552+ let toTreasure = $t02769127790._5
546553 let availableFundsNew = (userAvailableSWOP(pool, i.originCaller) + claimAmount)
547554 [IntegerEntry((((pool + "_") + user) + kFarmUserLastInterest), farmInterest), IntegerEntry((((pool + "_") + user) + kBoostUserLastInterest), boostInterest), IntegerEntry((((pool + "_") + user) + kBoostLPLastInterest), boostLPinterest), IntegerEntry((pool + kFarmLastInterest), farmInterest), IntegerEntry((pool + kBoostLastInterest), boostInterest), IntegerEntry((pool + kBoostLPLastInterest), boostLPinterest), IntegerEntry((pool + kLastInterestHeight), height), IntegerEntry((((pool + "_") + user) + kUserShareTokensStaked), userStakedAmountNew), IntegerEntry((((pool + "_") + user) + kUserShareTokensVirtual), userStakedAmountNew), IntegerEntry((pool + kShareTokensVirtual), ((totalShareVirtual - userAmountVirtual) + userStakedAmountNew)), DeleteEntry((((pool + "_") + user) + kUserShareTokensLocked)), DeleteEntry((((pool + "_") + user) + kUserShareTokensLockedHeight)), DeleteEntry((((pool + "_") + user) + kUserShareTokensLockedType)), Reissue(SWOP, toTreasure, true), ScriptTransfer(airdropMoneyBoxAddr, toTreasure, SWOP), ScriptTransfer(i.caller, lockWavesFee, unit)]
548555 }
554561 func withdrawShareTokens (pool,shareTokensWithdrawAmount) = valueOrElse(isActive(), {
555562 let shareTokensId = fromBase58String(getStringValue(value(addressFromString(pool)), "share_asset_id"))
556563 let user = toString(i.originCaller)
557- let $t02912829227 = claimCalc(pool, user)
558- let farmInterest = $t02912829227._1
559- let boostInterest = $t02912829227._2
560- let boostLPinterest = $t02912829227._3
561- let claimAmount = $t02912829227._4
562- let toTreasure = $t02912829227._5
564+ let $t02929429393 = claimCalc(pool, user)
565+ let farmInterest = $t02929429393._1
566+ let boostInterest = $t02929429393._2
567+ let boostLPinterest = $t02929429393._3
568+ let claimAmount = $t02929429393._4
569+ let toTreasure = $t02929429393._5
563570 let userStakedAmount = valueOrElse(getInteger(this, (((pool + "_") + user) + kUserShareTokensStaked)), 0)
564571 let userLockedAmount = valueOrElse(getInteger(this, (((pool + "_") + user) + kUserShareTokensLocked)), 0)
565572 let userStakedAmountNew = (userStakedAmount - shareTokensWithdrawAmount)
587594 let shareTokensId = fromBase58String(getStringValue(value(addressFromString(pool)), "share_asset_id"))
588595 let user = toString(i.caller)
589596 let shareTokenLocked = getTotalShareTokenStaked(pool)
590- let $t03137331472 = claimCalc(pool, user)
591- let farmInterest = $t03137331472._1
592- let boostInterest = $t03137331472._2
593- let boostLPinterest = $t03137331472._3
594- let claimAmount = $t03137331472._4
595- let toTreasure = $t03137331472._5
597+ let $t03153931638 = claimCalc(pool, user)
598+ let farmInterest = $t03153931638._1
599+ let boostInterest = $t03153931638._2
600+ let boostLPinterest = $t03153931638._3
601+ let claimAmount = $t03153931638._4
602+ let toTreasure = $t03153931638._5
596603 let availableFund = (userAvailableSWOP(pool, i.caller) + claimAmount)
597604 if ((availableFund == 0))
598605 then throw("You have 0 available SWOP")
702709 func updateUserBoostInterest (pool,user) = valueOrElse(isActive(), if ((i.caller != votingAddress))
703710 then throw("Only voiting can call this function")
704711 else {
705- let $t03385233951 = claimCalc(pool, user)
706- let farmInterest = $t03385233951._1
707- let boostInterest = $t03385233951._2
708- let boostLPinterest = $t03385233951._3
709- let claimAmount = $t03385233951._4
710- let toTreasure = $t03385233951._5
712+ let $t03401834117 = claimCalc(pool, user)
713+ let farmInterest = $t03401834117._1
714+ let boostInterest = $t03401834117._2
715+ let boostLPinterest = $t03401834117._3
716+ let claimAmount = $t03401834117._4
717+ let toTreasure = $t03401834117._5
711718 let availableFundsNew = (userAvailableSWOP(pool, i.originCaller) + claimAmount)
712719 [IntegerEntry((((pool + "_") + user) + kFarmUserLastInterest), farmInterest), IntegerEntry((((pool + "_") + user) + kBoostUserLastInterest), boostInterest), IntegerEntry((((pool + "_") + user) + kBoostLPLastInterest), boostLPinterest), IntegerEntry((pool + kFarmLastInterest), farmInterest), IntegerEntry((pool + kBoostLastInterest), boostInterest), IntegerEntry((pool + kBoostLPLastInterest), boostLPinterest), IntegerEntry((pool + kLastInterestHeight), height), IntegerEntry((((pool + "_") + user) + kAvailableSWOP), availableFundsNew), Reissue(SWOP, toTreasure, true), ScriptTransfer(airdropMoneyBoxAddr, toTreasure, SWOP)]
713720 })
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let kActive = "active"
55
66 let kCause = "shutdown_cause"
77
88 let kRewardPoolFractionCurrent = "_current_pool_fraction_reward"
99
1010 let kRewardPoolFractionPrevious = "_previous_pool_fraction_reward"
1111
1212 let kHeightPoolFraction = "_pool_reward_update_height"
1313
1414 let kTotalRewardPerBlockCurrent = "total_reward_per_block_current"
1515
1616 let kTotalRewardPerBlockPrevious = "total_reward_per_block_previous"
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 kBoostLPLastInterest = "_last_interest_lpb"
4949
5050 let kBoostLPUserLastInterest = "_last_interest_u_lpb"
5151
5252 let kLastInterestHeight = "_last_interest_height"
5353
5454 let kSWOPid = "SWOP_id"
5555
5656 let kAvailableSWOP = "_available_SWOP"
5757
5858 let kSwopYearEmission = "swop_year_emission"
5959
6060 let kHarvestPoolVote = "_harvest_pool_vote_gSWOP"
6161
6262 let kPoolVote = "_pool_vote_gSWOP"
6363
6464 let kUserPoolVote = "_user_vote_gSWOP"
6565
6666 let kHarvestUserPoolVote = "_harvest_user_pool_vote_gSWOP"
6767
6868 let kBasePeriod = "base_period"
6969
7070 let kPeriodLength = "period_length"
7171
7272 let kStartHeight = "start_height"
7373
7474 let kFirstHarvestHeight = "first_harvest_height"
7575
7676 let kShareLimitFH = "share_limit_on_first_harvest"
7777
7878 let kAdminPubKey1 = "admin_pub_1"
7979
8080 let kAdminPubKey2 = "admin_pub_2"
8181
8282 let kAdminPubKey3 = "admin_pub_3"
8383
8484 let kAdminInvokePubKey = "admin_invoke_pub"
8585
8686 let kMoneyBoxAddress = "money_box_address"
8787
8888 let kVotingAddress = "voting_address"
8989
9090 let kGovAddress = "governance_address"
9191
9292 let kLPFarmingAddress = "lp_farming"
9393
9494 let kAirdropMoneyBoxAddr = "airdrop_fee_money_box"
9595
9696 let oracle = Address(base58'3MvVBtsXroQpy1tsPw21TU2ET9A8WfmrNjz')
9797
9898 let totalVoteShare = 10000000000
9999
100100 let lockBoostCoefScale = 1000
101101
102102 let defPoolBoostCoef = 500
103103
104104 func getBase58FromOracle (key) = match getString(oracle, key) {
105105 case string: String =>
106106 fromBase58String(string)
107107 case nothing =>
108108 throw((key + "is empty"))
109109 }
110110
111111
112112 let adminPubKey1 = getBase58FromOracle(kAdminPubKey1)
113113
114114 let adminPubKey2 = getBase58FromOracle(kAdminPubKey2)
115115
116116 let adminPubKey3 = getBase58FromOracle(kAdminPubKey3)
117117
118118 let moneyBoxAddress = Address(getBase58FromOracle(kMoneyBoxAddress))
119119
120120 let votingAddress = Address(getBase58FromOracle(kVotingAddress))
121121
122122 let govAddress = Address(getBase58FromOracle(kGovAddress))
123123
124124 let adminInvokePubKey = getBase58FromOracle(kAdminInvokePubKey)
125125
126126 let lpFarmingAddress = Address(getBase58FromOracle(kLPFarmingAddress))
127127
128128 let airdropMoneyBoxAddr = Address(getBase58FromOracle(kAirdropMoneyBoxAddr))
129129
130130 let basePeriod = valueOrErrorMessage(getInteger(votingAddress, kBasePeriod), "Empty kBasePeriod")
131131
132132 let startHeight = valueOrErrorMessage(getInteger(votingAddress, kStartHeight), "Empty kStartHeight")
133133
134134 let periodLength = valueOrErrorMessage(getInteger(votingAddress, kPeriodLength), "Empty kPeriodLength")
135135
136136 let currPeriod = (basePeriod + ((height - startHeight) / periodLength))
137137
138138 let active = getBooleanValue(this, kActive)
139139
140140 let SwopYearEmission = getIntegerValue(this, kSwopYearEmission)
141141
142142 let SWOP = fromBase58String(getStringValue(this, kSWOPid))
143143
144144 func getHeightFirstHarvest (pool) = valueOrElse(getInteger(Address(fromBase58String(pool)), kFirstHarvestHeight), 0)
145145
146146
147147 func getFHShareLimitToken (pool) = valueOrErrorMessage(getInteger(pool, kShareLimitFH), ("No data on the key: " + kShareLimitFH))
148148
149149
150150 func getTotalShareTokenStaked (pool) = valueOrErrorMessage(getInteger(this, (pool + kShareTotalShareTokens)), (("No data on the key: " + pool) + kShareTotalShareTokens))
151151
152152
153153 func getPoolVoted (pool) = valueOrElse(getInteger(votingAddress, (pool + kPoolVote)), 0)
154154
155155
156156 func getUserPoolVoted (pool,user) = valueOrElse(getInteger(votingAddress, (((user + "_") + pool) + kPoolVote)), 0)
157157
158158
159159 func getShareAssetId (pool) = fromBase58String(getStringValue(value(addressFromString(pool)), "share_asset_id"))
160160
161161
162162 func accountBalance (assetId) = match assetId {
163163 case id: ByteVector =>
164164 assetBalance(this, id)
165165 case waves: Unit =>
166166 wavesBalance(this).available
167167 case _ =>
168168 throw("Match error")
169169 }
170170
171171
172172 func getAssetInfo (assetId) = match assetId {
173173 case id: ByteVector =>
174174 let stringId = toBase58String(id)
175175 let info = valueOrErrorMessage(assetInfo(id), (("Asset " + stringId) + " doesn't exist"))
176176 $Tuple3(stringId, info.name, info.decimals)
177177 case waves: Unit =>
178178 $Tuple3("WAVES", "WAVES", 8)
179179 case _ =>
180180 throw("Match error")
181181 }
182182
183183
184184 func calcScaleValue (assetId1,assetId2) = {
185185 let assetId1Decimals = value(assetInfo(assetId1)).decimals
186186 let assetId2Decimals = value(assetInfo(assetId2)).decimals
187187 let scaleDigits = ((assetId2Decimals - assetId1Decimals) + 8)
188188 pow(10, 0, scaleDigits, 0, 0, DOWN)
189189 }
190190
191191
192192 func userAvailableSWOP (pool,user) = valueOrElse(getInteger(this, (((pool + "_") + toString(user)) + kAvailableSWOP)), 0)
193193
194194
195195 func rewardInfo (pool) = {
196196 let totalRewardPerBlockCurrent = valueOrErrorMessage(getInteger(govAddress, kTotalRewardPerBlockCurrent), ((("No data on the key: " + kTotalRewardPerBlockCurrent) + " at address ") + toString(govAddress)))
197197 let totalRewardPerBlockPrevious = valueOrErrorMessage(getInteger(govAddress, kTotalRewardPerBlockPrevious), ((("No data on the key: " + kTotalRewardPerBlockPrevious) + " at address ") + toString(govAddress)))
198198 let rewardPoolFractionCurrent = valueOrErrorMessage(getInteger(govAddress, (pool + kRewardPoolFractionCurrent)), (((("No data on the key: " + pool) + kRewardPoolFractionCurrent) + " at address ") + toString(govAddress)))
199199 let rewardUpdateHeight = valueOrErrorMessage(getInteger(govAddress, kRewardUpdateHeight), ((("No data on the key: " + kRewardUpdateHeight) + " at address ") + toString(govAddress)))
200200 let poolRewardUpdateHeight = valueOrElse(getInteger(govAddress, (pool + kHeightPoolFraction)), rewardUpdateHeight)
201201 let rewardPoolFractionPrevious = valueOrErrorMessage(getInteger(govAddress, (pool + kRewardPoolFractionPrevious)), (((("No data on the key: " + pool) + kRewardPoolFractionPrevious) + " at address ") + toString(govAddress)))
202202 let rewardPoolCurrent = fraction(totalRewardPerBlockCurrent, rewardPoolFractionCurrent, totalVoteShare)
203203 let rewardPoolPrevious = fraction(totalRewardPerBlockCurrent, rewardPoolFractionPrevious, totalVoteShare)
204204 if (if ((rewardPoolCurrent > totalRewardPerBlockCurrent))
205205 then true
206206 else (rewardPoolPrevious > totalRewardPerBlockPrevious))
207207 then throw("rewardPoolCurrent > totalRewardPerBlockCurrent or rewardPoolPrevious > totalRewardPerBlockPrevious")
208208 else $Tuple4(rewardPoolCurrent, rewardUpdateHeight, rewardPoolPrevious, poolRewardUpdateHeight)
209209 }
210210
211211
212212 func getLastInterestInfo (pool) = {
213213 let farmInterest = valueOrErrorMessage(getInteger(this, (pool + kFarmLastInterest)), (("No data on the key: " + pool) + kFarmLastInterest))
214214 let boostInterest = valueOrErrorMessage(getInteger(this, (pool + kFarmLastInterest)), (("No data on the key: " + pool) + kBoostLastInterest))
215215 let boostLPInterest = valueOrErrorMessage(getInteger(this, (pool + kFarmLastInterest)), (("No data on the key: " + pool) + kBoostLPLastInterest))
216216 let lastInterestHeight = valueOrElse(getInteger(this, (pool + kLastInterestHeight)), height)
217217 $Tuple4(lastInterestHeight, farmInterest, boostInterest, boostLPInterest)
218218 }
219219
220220
221221 func calcFarmRwd (pool,curTotalReward) = {
222222 let poolBoostCoef = valueOrElse(getInteger(this, (pool + kPoolBoostCoef)), defPoolBoostCoef)
223223 ((curTotalReward / (poolBoostCoef + 1)) / lockBoostCoefScale)
224224 }
225225
226226
227227 func calcBoostRwd (pool,curTotalReward) = {
228228 let poolBoostCoef = valueOrElse(getInteger(this, (pool + kPoolBoostCoef)), defPoolBoostCoef)
229229 (fraction(curTotalReward, poolBoostCoef, (poolBoostCoef + 1)) / lockBoostCoefScale)
230230 }
231231
232232
233233 func calcInterest (pool,lastInterestHeight,rewardUpdateHeight,poolRewardUpdateHeight,farmInterest,boostInterest,poolVoted,boostLpInterest,currentRewardPerBlock,shareTokenLocked,previousRewardPerBlock,scaleValue) = if ((shareTokenLocked == 0))
234234 then $Tuple3(0, 0, 0)
235235 else if (if ((rewardUpdateHeight > height))
236236 then (rewardUpdateHeight == poolRewardUpdateHeight)
237237 else false)
238238 then {
239239 let reward = (previousRewardPerBlock * (height - lastInterestHeight))
240240 let newFarmInterest = (farmInterest + fraction(calcFarmRwd(pool, reward), scaleValue, shareTokenLocked))
241241 let newBoostInterest = (boostInterest + (if ((poolVoted > 0))
242242 then fraction(calcBoostRwd(pool, reward), scaleValue, poolVoted)
243243 else 0))
244244 let newBoostLPInterest = (boostLpInterest + (if (if ((poolVoted > 0))
245245 then (shareTokenLocked > 0)
246246 else false)
247247 then (fraction(calcBoostRwd(pool, reward), scaleValue, shareTokenLocked) / poolVoted)
248248 else 0))
249249 $Tuple3(newFarmInterest, newBoostInterest, newBoostLPInterest)
250250 }
251251 else if (if ((height > rewardUpdateHeight))
252252 then (rewardUpdateHeight != poolRewardUpdateHeight)
253253 else false)
254254 then {
255255 let reward = (previousRewardPerBlock * (height - lastInterestHeight))
256256 let newFarmInterest = (farmInterest + fraction(calcFarmRwd(pool, reward), scaleValue, shareTokenLocked))
257257 let newBoostInterest = (boostInterest + (if ((poolVoted > 0))
258258 then fraction(calcBoostRwd(pool, reward), scaleValue, poolVoted)
259259 else 0))
260260 let newBoostLPInterest = (boostLpInterest + (if (if ((poolVoted > 0))
261261 then (shareTokenLocked > 0)
262262 else false)
263263 then (fraction(calcBoostRwd(pool, reward), scaleValue, shareTokenLocked) / poolVoted)
264264 else 0))
265265 $Tuple3(newFarmInterest, newBoostInterest, newBoostLPInterest)
266266 }
267267 else if (if (if ((height > rewardUpdateHeight))
268268 then (rewardUpdateHeight == poolRewardUpdateHeight)
269269 else false)
270270 then (lastInterestHeight > rewardUpdateHeight)
271271 else false)
272272 then {
273273 let reward = (currentRewardPerBlock * (height - lastInterestHeight))
274274 let newFarmInterest = (farmInterest + fraction(calcFarmRwd(pool, reward), scaleValue, shareTokenLocked))
275275 let newBoostInterest = (boostInterest + (if ((poolVoted > 0))
276276 then fraction(calcBoostRwd(pool, reward), scaleValue, poolVoted)
277277 else 0))
278278 let newBoostLPInterest = (boostLpInterest + (if (if ((poolVoted > 0))
279279 then (shareTokenLocked > 0)
280280 else false)
281281 then (fraction(calcBoostRwd(pool, reward), scaleValue, shareTokenLocked) / poolVoted)
282282 else 0))
283283 $Tuple3(newFarmInterest, newBoostInterest, newBoostLPInterest)
284284 }
285285 else {
286286 let rwdBfrUpd = (previousRewardPerBlock * (rewardUpdateHeight - lastInterestHeight))
287287 let framIntrAftrUp = (farmInterest + fraction(calcFarmRwd(pool, rwdBfrUpd), scaleValue, shareTokenLocked))
288288 let boostIntrAftrUp = (boostInterest + (if ((poolVoted > 0))
289289 then fraction(calcBoostRwd(pool, rwdBfrUpd), scaleValue, poolVoted)
290290 else 0))
291291 let bostLPIntrAftrUp = (farmInterest + (if (if ((poolVoted > 0))
292292 then (shareTokenLocked > 0)
293293 else false)
294294 then fraction(calcBoostRwd(pool, rwdBfrUpd), scaleValue, poolVoted)
295295 else 0))
296296 let reward = (currentRewardPerBlock * (height - rewardUpdateHeight))
297297 let newFarmInterest = (framIntrAftrUp + fraction(calcFarmRwd(pool, reward), scaleValue, shareTokenLocked))
298298 let newBoostInterest = (boostIntrAftrUp + (if ((poolVoted > 0))
299299 then fraction(calcBoostRwd(pool, reward), scaleValue, poolVoted)
300300 else 0))
301301 let newBoostLPInterest = (bostLPIntrAftrUp + (if (if ((poolVoted > 0))
302302 then (shareTokenLocked > 0)
303303 else false)
304304 then (fraction(calcBoostRwd(pool, reward), scaleValue, shareTokenLocked) / poolVoted)
305305 else 0))
306306 $Tuple3(newFarmInterest, newBoostInterest, newBoostLPInterest)
307307 }
308308
309309
310310 func claimCalc (pool,user) = {
311311 let scaleValue = calcScaleValue(SWOP, getShareAssetId(pool))
312312 let poolVoted = getPoolVoted(pool)
313313 let uPoolVoted = getUserPoolVoted(pool, user)
314314 let shareTokenStaked = getTotalShareTokenStaked(pool)
315315 let totalShareVirtual = valueOrElse(getInteger(this, (pool + kShareTokensVirtual)), shareTokenStaked)
316316 let $t01420114299 = getLastInterestInfo(pool)
317317 let lastInterestHeight = $t01420114299._1
318318 let farmInterest = $t01420114299._2
319319 let boostInterest = $t01420114299._3
320320 let boostLPInterest = $t01420114299._4
321321 let $t01430414418 = rewardInfo(pool)
322322 let currentRewardPerBlock = $t01430414418._1
323323 let rewardUpdateHeight = $t01430414418._2
324324 let previousRewardPerBlock = $t01430414418._3
325325 let poolRewardUpdateHeight = $t01430414418._4
326326 let uFarmInterest = valueOrElse(getInteger(this, (((pool + "_") + user) + kFarmUserLastInterest)), farmInterest)
327327 let uBoostInterest = valueOrElse(getInteger(this, (((pool + "_") + user) + kBoostUserLastInterest)), boostInterest)
328328 let uBoostLPInterest = valueOrElse(getInteger(this, (((pool + "_") + user) + kBoostLPUserLastInterest)), boostLPInterest)
329329 let uShareTokensStaked = valueOrElse(getInteger(this, (((pool + "_") + user) + kUserShareTokensStaked)), 0)
330330 let uShareTokensVirt = valueOrElse(getInteger(this, (((pool + "_") + user) + kUserShareTokensVirtual)), uShareTokensStaked)
331331 let $t01498615378 = calcInterest(pool, lastInterestHeight, rewardUpdateHeight, poolRewardUpdateHeight, farmInterest, boostInterest, poolVoted, boostLPInterest, currentRewardPerBlock, shareTokenStaked, previousRewardPerBlock, scaleValue)
332332 let newFarmInterest = $t01498615378._1
333333 let newBoostInterest = $t01498615378._2
334334 let newBoostLPInterest = $t01498615378._3
335335 let claimFarming = fraction(uShareTokensVirt, (newFarmInterest - uFarmInterest), scaleValue)
336336 let claimBoostingMax = fraction(uPoolVoted, (newBoostInterest - uBoostInterest), scaleValue)
337337 let claimBoosting = fraction((uShareTokensVirt * uPoolVoted), (newBoostLPInterest - uBoostLPInterest), scaleValue)
338338 let toTreasury = (claimBoostingMax - claimBoosting)
339339 $Tuple5(newFarmInterest, newBoostInterest, newBoostLPInterest, (claimFarming + claimBoosting), toTreasury)
340340 }
341341
342342
343343 func canLockInFirstHarvest (pool,user,userShareTokensStaked,pmtAmount,lockType) = if ((height > getHeightFirstHarvest(pool)))
344344 then {
345345 let totalVoteAmount = valueOrElse(getInteger(votingAddress, (pool + kHarvestPoolVote)), 0)
346346 let userVoteAmount = valueOrElse(getInteger(votingAddress, (((user + "_") + pool) + kHarvestPoolVote)), 0)
347347 let FHShareTokenLimit = getFHShareLimitToken(addressFromStringValue(pool))
348348 let FHShareTokenUserLimit = (fraction(FHShareTokenLimit, userVoteAmount, totalVoteAmount) - userShareTokensStaked)
349349 if ((lockType > 0))
350350 then throw("You can't lock shareTokens till first harvest end.")
351351 else if ((userVoteAmount == 0))
352- then throw("You can't lock shareTokens because you didn't vote in first harvest")
353- else if ((pmtAmount > FHShareTokenUserLimit))
354- then throw(("You can't lock more than you vote in first harvest. Your can lock " + toString(FHShareTokenUserLimit)))
355- else true
352+ then 0
353+ else if ((pmtAmount >= FHShareTokenUserLimit))
354+ then (pmtAmount - FHShareTokenUserLimit)
355+ else 0
356356 }
357- else true
357+ else 0
358358
359359
360360 func getLockParams (type) = {
361361 let lockParams = split(valueOrErrorMessage(getString(this, (toString(type) + kLockParams)), ("There are no key for lock type" + toString(type))), "_")
362362 $Tuple2(parseIntValue(lockParams[0]), parseIntValue(lockParams[1]))
363363 }
364364
365365
366366 func suspend (cause) = [BooleanEntry(kActive, false), StringEntry(kCause, cause)]
367367
368368
369369 func isActive () = if (active)
370370 then unit
371371 else throw("DApp is inactive at this moment")
372372
373373
374374 func isAdminCall (i) = if (containsElement([adminPubKey1, adminPubKey2, adminPubKey3], i.callerPublicKey))
375375 then unit
376376 else throw("Only admin can call this function")
377377
378378
379379 @Callable(i)
380380 func init (earlyLP) = if (isDefined(getString(this, kSWOPid)))
381381 then throw("SWOP already initialized")
382382 else {
383383 let initAmount = 100000000000000
384384 let SWOPissue = Issue("SWOP", "SWOP protocol token", initAmount, 8, true)
385385 let SWOPid = calculateAssetId(SWOPissue)
386386 [BooleanEntry(kActive, true), Issue("SWOP", "SWOP protocol token", initAmount, 8, true), StringEntry(kSWOPid, toBase58String(SWOPid))]
387387 }
388388
389389
390390
391391 @Callable(i)
392392 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)])
393393
394394
395395
396396 @Callable(i)
397397 func updatePoolInterest (pool) = valueOrElse(isActive(), if ((i.caller != govAddress))
398398 then throw("Only Governance can call this function")
399399 else {
400400 let user = toString(addressFromPublicKey(adminInvokePubKey))
401- let $t01853818612 = claimCalc(pool, user)
402- let farmInterest = $t01853818612._1
403- let boostInterest = $t01853818612._2
404- let boostLPinterest = $t01853818612._3
401+ let $t01838118455 = claimCalc(pool, user)
402+ let farmInterest = $t01838118455._1
403+ let boostInterest = $t01838118455._2
404+ let boostLPinterest = $t01838118455._3
405405 [IntegerEntry((pool + kFarmLastInterest), farmInterest), IntegerEntry((pool + kBoostLastInterest), boostInterest), IntegerEntry((pool + kBoostLPLastInterest), boostLPinterest), IntegerEntry((pool + kLastInterestHeight), height)]
406406 })
407407
408408
409409
410410 @Callable(i)
411411 func lockShareTokens (pool,lockType) = valueOrElse(isActive(), {
412412 let shareAssetId = getShareAssetId(pool)
413413 let user = toString(i.originCaller)
414414 let totalShareStaked = getTotalShareTokenStaked(pool)
415415 let totalShareVirtual = valueOrElse(getInteger(this, (pool + kShareTokensVirtual)), totalShareStaked)
416416 let userStakedAmount = valueOrElse(getInteger(this, (((pool + "_") + user) + kUserShareTokensStaked)), 0)
417417 let userLockedHeigt = valueOrElse(getInteger(this, (((pool + "_") + user) + kUserShareTokensLockedHeight)), 0)
418418 let userLockedAmount = valueOrElse(getInteger(this, (((pool + "_") + user) + kUserShareTokensLocked)), 0)
419419 let userAmountVirtual = valueOrElse(getInteger(this, (((pool + "_") + user) + kUserShareTokensVirtual)), userStakedAmount)
420- let totalShareStakedNew = (totalShareStaked + i.payments[0].amount)
421420 let totalUserShareTokens = ((userStakedAmount + userLockedAmount) + i.payments[0].amount)
422- let $t01980919861 = getLockParams(lockType)
423- let lockPeriod = $t01980919861._1
424- let lockCoef = $t01980919861._2
421+ let $t01958219634 = getLockParams(lockType)
422+ let lockPeriod = $t01958219634._1
423+ let lockCoef = $t01958219634._2
425424 let lockWavesFee = getIntegerValue(this, kLockWavesFee)
426- if ((0 >= i.payments[0].amount))
427- then throw("Payment amount must be greater than 0")
428- else if ((0 > lockType))
429- then throw("lockType must be >= 0")
430- else if ((accountBalance(shareAssetId) > totalShareStakedNew))
431- then throw("Balance of share-token is lower than totalAmount")
432- else if (!(canLockInFirstHarvest(pool, user, userStakedAmount, i.payments[0].amount, lockType)))
433- then throw()
434- else {
435- let $t02031321949 = if ((lockType == 0))
436- then {
437- let userAmountVirtualNew = (userAmountVirtual + i.payments[0].amount)
438- $Tuple2([IntegerEntry((((pool + "_") + user) + kUserShareTokensStaked), (userStakedAmount + i.payments[0].amount)), IntegerEntry((pool + kShareTokensVirtual), (totalShareVirtual + i.payments[0].amount))], userAmountVirtualNew)
439- }
440- else if (if ((userLockedHeigt == 0))
441- then if (if ((2 > size(i.payments)))
442- then true
443- else (i.payments[1].assetId != unit))
444- then true
445- else (lockWavesFee > i.payments[1].amount)
446- else false)
447- then throw((("You need to pay additional waves comission " + toString(lockWavesFee)) + "WAVES"))
448- else if ((userLockedHeigt > (height + lockPeriod)))
449- then throw("You cannot lock sharetokens for a period less than what you have already locked")
450- else {
451- let userLockedAmountNew = (userLockedAmount + i.payments[0].amount)
452- let userLockedHeigtNew = (height + lockPeriod)
453- let userAmountVirtualNew = (fraction(userLockedAmountNew, lockCoef, lockBoostCoefScale) + userStakedAmount)
454- $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))], userAmountVirtualNew)
455- }
456- let lockEntries = $t02031321949._1
457- let userAmountVirtualNew = $t02031321949._2
458- let $t02195522054 = claimCalc(pool, user)
459- let farmInterest = $t02195522054._1
460- let boostInterest = $t02195522054._2
461- let boostLPinterest = $t02195522054._3
462- let claimAmount = $t02195522054._4
463- let toTreasure = $t02195522054._5
464- let availableFundsNew = (userAvailableSWOP(pool, i.originCaller) + claimAmount)
465- let uplp = if ((getString(Address(fromBase58String(pool)), "version") == "3.0.0"))
466- then invoke(lpFarmingAddress, "updateUserInterest", [pool, totalUserShareTokens], nil)
467- else 0
468- if ((uplp == uplp))
469- then ([IntegerEntry((((pool + "_") + user) + kFarmUserLastInterest), farmInterest), IntegerEntry((((pool + "_") + user) + kBoostUserLastInterest), boostInterest), IntegerEntry((((pool + "_") + user) + kBoostLPLastInterest), boostLPinterest), IntegerEntry((pool + kFarmLastInterest), farmInterest), IntegerEntry((pool + kBoostLastInterest), boostInterest), IntegerEntry((pool + kBoostLPLastInterest), boostLPinterest), IntegerEntry((pool + kLastInterestHeight), height), IntegerEntry((pool + kShareTotalShareTokens), totalShareStakedNew), IntegerEntry((((pool + "_") + user) + kAvailableSWOP), availableFundsNew), Reissue(SWOP, toTreasure, true), ScriptTransfer(airdropMoneyBoxAddr, toTreasure, SWOP)] ++ lockEntries)
470- else throw("Strict value is not equal to itself.")
471- }
425+ if ((i.payments[0].assetId != shareAssetId))
426+ then throw("Wrong sharetoken in payment")
427+ else if ((0 >= i.payments[0].amount))
428+ then throw("Payment amount must be greater than 0")
429+ else if ((0 > lockType))
430+ then throw("lockType must be >= 0")
431+ else {
432+ let shareTokensChangeOnFH = canLockInFirstHarvest(pool, user, userStakedAmount, i.payments[0].amount, lockType)
433+ if ((shareTokensChangeOnFH == shareTokensChangeOnFH))
434+ then {
435+ let $t02006121990 = if ((lockType == 0))
436+ then {
437+ let userAmountVirtualNew = ((userAmountVirtual + i.payments[0].amount) - shareTokensChangeOnFH)
438+ $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))
439+ }
440+ else if (if ((userLockedHeigt == 0))
441+ then if (if ((2 > size(i.payments)))
442+ then true
443+ else (i.payments[1].assetId != unit))
444+ then true
445+ else (lockWavesFee > i.payments[1].amount)
446+ else false)
447+ then throw((("You need to pay additional waves comission " + toString(lockWavesFee)) + "WAVES"))
448+ else if ((userLockedHeigt > (height + lockPeriod)))
449+ then throw("You cannot lock sharetokens for a period less than what you have already locked")
450+ else {
451+ let userLockedAmountNew = (userLockedAmount + i.payments[0].amount)
452+ let userLockedHeigtNew = (height + lockPeriod)
453+ let userAmountVirtualNew = (fraction(userLockedAmountNew, lockCoef, lockBoostCoefScale) + userStakedAmount)
454+ $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))
455+ }
456+ let lockEntries = $t02006121990._1
457+ let userAmountVirtualNew = $t02006121990._2
458+ let totalShareStakedNew = $t02006121990._3
459+ if ((accountBalance(shareAssetId) > totalShareStakedNew))
460+ then throw("Balance of share-token is lower than totalAmount")
461+ else {
462+ let $t02212122220 = claimCalc(pool, user)
463+ let farmInterest = $t02212122220._1
464+ let boostInterest = $t02212122220._2
465+ let boostLPinterest = $t02212122220._3
466+ let claimAmount = $t02212122220._4
467+ let toTreasure = $t02212122220._5
468+ let availableFundsNew = (userAvailableSWOP(pool, i.originCaller) + claimAmount)
469+ let uplp = if ((getString(Address(fromBase58String(pool)), "version") == "3.0.0"))
470+ then invoke(lpFarmingAddress, "updateUserInterest", [pool, totalUserShareTokens], nil)
471+ else 0
472+ if ((uplp == uplp))
473+ then ([IntegerEntry((((pool + "_") + user) + kFarmUserLastInterest), farmInterest), IntegerEntry((((pool + "_") + user) + kBoostUserLastInterest), boostInterest), IntegerEntry((((pool + "_") + user) + kBoostLPLastInterest), boostLPinterest), IntegerEntry((pool + kFarmLastInterest), farmInterest), IntegerEntry((pool + kBoostLastInterest), boostInterest), IntegerEntry((pool + kBoostLPLastInterest), boostLPinterest), IntegerEntry((pool + kLastInterestHeight), height), IntegerEntry((pool + kShareTotalShareTokens), totalShareStakedNew), IntegerEntry((((pool + "_") + user) + kAvailableSWOP), availableFundsNew), Reissue(SWOP, toTreasure, true), ScriptTransfer(airdropMoneyBoxAddr, toTreasure, SWOP)] ++ lockEntries)
474+ else throw("Strict value is not equal to itself.")
475+ }
476+ }
477+ else throw("Strict value is not equal to itself.")
478+ }
472479 })
473480
474481
475482
476483 @Callable(i)
477484 func lockStakedShareTokens (pool,lockType,lockAmount) = valueOrElse(isActive(), {
478485 let shareAssetId = getShareAssetId(pool)
479486 let user = toString(i.originCaller)
480487 let totalShareStaked = getTotalShareTokenStaked(pool)
481488 let totalShareVirtual = valueOrElse(getInteger(this, (pool + kShareTokensVirtual)), totalShareStaked)
482489 let userStakedAmount = valueOrElse(getInteger(this, (((pool + "_") + user) + kUserShareTokensStaked)), 0)
483490 let userLockedHeigt = valueOrElse(getInteger(this, (((pool + "_") + user) + kUserShareTokensLockedHeight)), 0)
484491 let userLockedAmount = valueOrElse(getInteger(this, (((pool + "_") + user) + kUserShareTokensLocked)), 0)
485492 let userAmountVirtual = valueOrElse(getInteger(this, (((pool + "_") + user) + kUserShareTokensVirtual)), userStakedAmount)
486493 let totalUserShareTokens = (userStakedAmount + userLockedAmount)
487- let $t02398624038 = getLockParams(lockType)
488- let lockPeriod = $t02398624038._1
489- let lockCoef = $t02398624038._2
494+ let $t02415224204 = getLockParams(lockType)
495+ let lockPeriod = $t02415224204._1
496+ let lockCoef = $t02415224204._2
490497 let lockWavesFee = getIntegerValue(this, kLockWavesFee)
491498 if ((height > getHeightFirstHarvest(pool)))
492499 then throw("You can't lock shareTokens till first harvest end.")
493500 else if ((lockType > 0))
494501 then throw("lockType must be > 0")
495502 else if ((lockAmount > userStakedAmount))
496503 then throw(("You can't lock more than " + toString(userStakedAmount)))
497504 else if ((accountBalance(shareAssetId) > totalShareStaked))
498505 then throw("Balance of share-token is lower than totalAmount")
499506 else if (if ((userLockedHeigt == 0))
500507 then if (if ((1 > size(i.payments)))
501508 then true
502509 else (i.payments[0].assetId != unit))
503510 then true
504511 else (lockWavesFee > i.payments[0].amount)
505512 else false)
506513 then throw((("You need to pay additional waves comission " + toString(lockWavesFee)) + "WAVES"))
507514 else if ((userLockedHeigt > (height + lockPeriod)))
508515 then throw("You cannot lock sharetokens for a period less than what you have already locked")
509516 else {
510517 let userLockedAmountNew = (userLockedAmount + lockAmount)
511518 let userStakedAmountNew = (userStakedAmount - lockAmount)
512519 let userLockedHeigtNew = (height + lockPeriod)
513520 let userAmountVirtualNew = (fraction(userLockedAmountNew, lockCoef, lockBoostCoefScale) + userStakedAmount)
514521 let lockEntries = [IntegerEntry((((pool + "_") + user) + kUserShareTokensStaked), userStakedAmountNew), IntegerEntry((((pool + "_") + user) + kUserShareTokensLocked), userLockedAmountNew), IntegerEntry((((pool + "_") + user) + kUserShareTokensLockedHeight), userLockedHeigtNew), IntegerEntry((((pool + "_") + user) + kUserShareTokensLockedType), lockType), IntegerEntry((((pool + "_") + user) + kUserShareTokensVirtual), userAmountVirtualNew), IntegerEntry((pool + kShareTokensVirtual), ((totalShareVirtual - userAmountVirtual) + userAmountVirtualNew))]
515- let $t02573825837 = claimCalc(pool, user)
516- let farmInterest = $t02573825837._1
517- let boostInterest = $t02573825837._2
518- let boostLPinterest = $t02573825837._3
519- let claimAmount = $t02573825837._4
520- let toTreasure = $t02573825837._5
522+ let $t02590426003 = claimCalc(pool, user)
523+ let farmInterest = $t02590426003._1
524+ let boostInterest = $t02590426003._2
525+ let boostLPinterest = $t02590426003._3
526+ let claimAmount = $t02590426003._4
527+ let toTreasure = $t02590426003._5
521528 let availableFundsNew = (userAvailableSWOP(pool, i.originCaller) + claimAmount)
522529 [IntegerEntry((((pool + "_") + user) + kFarmUserLastInterest), farmInterest), IntegerEntry((((pool + "_") + user) + kBoostUserLastInterest), boostInterest), IntegerEntry((((pool + "_") + user) + kBoostLPLastInterest), boostLPinterest), IntegerEntry((pool + kFarmLastInterest), farmInterest), IntegerEntry((pool + kBoostLastInterest), boostInterest), IntegerEntry((pool + kBoostLPLastInterest), boostLPinterest), IntegerEntry((pool + kLastInterestHeight), height), IntegerEntry((((pool + "_") + user) + kAvailableSWOP), availableFundsNew), Reissue(SWOP, toTreasure, true), ScriptTransfer(airdropMoneyBoxAddr, toTreasure, SWOP)]
523530 }
524531 })
525532
526533
527534
528535 @Callable(i)
529536 func unlockUserLock (pool,user) = valueOrElse(isActive(), {
530537 let lockWavesFee = getIntegerValue(this, kLockWavesFee)
531538 let userLockedHeigt = valueOrErrorMessage(getInteger(this, (((pool + "_") + user) + kUserShareTokensLockedHeight)), (((("There is no pool " + pool) + " or user ") + user) + "with lock"))
532539 let totalShareVirtual = getIntegerValue(this, (pool + kShareTokensVirtual))
533540 let userStakedAmount = valueOrElse(getInteger(this, (((pool + "_") + user) + kUserShareTokensStaked)), 0)
534541 let userLockedAmount = valueOrElse(getInteger(this, (((pool + "_") + user) + kUserShareTokensLocked)), 0)
535542 let userAmountVirtual = valueOrElse(getInteger(this, (((pool + "_") + user) + kUserShareTokensVirtual)), userStakedAmount)
536543 if ((userLockedHeigt > height))
537544 then throw(("You can't unlock sharetokens till " + toString(userLockedHeigt)))
538545 else {
539546 let userStakedAmountNew = (userStakedAmount + userLockedAmount)
540- let $t02752527624 = claimCalc(pool, user)
541- let farmInterest = $t02752527624._1
542- let boostInterest = $t02752527624._2
543- let boostLPinterest = $t02752527624._3
544- let claimAmount = $t02752527624._4
545- let toTreasure = $t02752527624._5
547+ let $t02769127790 = claimCalc(pool, user)
548+ let farmInterest = $t02769127790._1
549+ let boostInterest = $t02769127790._2
550+ let boostLPinterest = $t02769127790._3
551+ let claimAmount = $t02769127790._4
552+ let toTreasure = $t02769127790._5
546553 let availableFundsNew = (userAvailableSWOP(pool, i.originCaller) + claimAmount)
547554 [IntegerEntry((((pool + "_") + user) + kFarmUserLastInterest), farmInterest), IntegerEntry((((pool + "_") + user) + kBoostUserLastInterest), boostInterest), IntegerEntry((((pool + "_") + user) + kBoostLPLastInterest), boostLPinterest), IntegerEntry((pool + kFarmLastInterest), farmInterest), IntegerEntry((pool + kBoostLastInterest), boostInterest), IntegerEntry((pool + kBoostLPLastInterest), boostLPinterest), IntegerEntry((pool + kLastInterestHeight), height), IntegerEntry((((pool + "_") + user) + kUserShareTokensStaked), userStakedAmountNew), IntegerEntry((((pool + "_") + user) + kUserShareTokensVirtual), userStakedAmountNew), IntegerEntry((pool + kShareTokensVirtual), ((totalShareVirtual - userAmountVirtual) + userStakedAmountNew)), DeleteEntry((((pool + "_") + user) + kUserShareTokensLocked)), DeleteEntry((((pool + "_") + user) + kUserShareTokensLockedHeight)), DeleteEntry((((pool + "_") + user) + kUserShareTokensLockedType)), Reissue(SWOP, toTreasure, true), ScriptTransfer(airdropMoneyBoxAddr, toTreasure, SWOP), ScriptTransfer(i.caller, lockWavesFee, unit)]
548555 }
549556 })
550557
551558
552559
553560 @Callable(i)
554561 func withdrawShareTokens (pool,shareTokensWithdrawAmount) = valueOrElse(isActive(), {
555562 let shareTokensId = fromBase58String(getStringValue(value(addressFromString(pool)), "share_asset_id"))
556563 let user = toString(i.originCaller)
557- let $t02912829227 = claimCalc(pool, user)
558- let farmInterest = $t02912829227._1
559- let boostInterest = $t02912829227._2
560- let boostLPinterest = $t02912829227._3
561- let claimAmount = $t02912829227._4
562- let toTreasure = $t02912829227._5
564+ let $t02929429393 = claimCalc(pool, user)
565+ let farmInterest = $t02929429393._1
566+ let boostInterest = $t02929429393._2
567+ let boostLPinterest = $t02929429393._3
568+ let claimAmount = $t02929429393._4
569+ let toTreasure = $t02929429393._5
563570 let userStakedAmount = valueOrElse(getInteger(this, (((pool + "_") + user) + kUserShareTokensStaked)), 0)
564571 let userLockedAmount = valueOrElse(getInteger(this, (((pool + "_") + user) + kUserShareTokensLocked)), 0)
565572 let userStakedAmountNew = (userStakedAmount - shareTokensWithdrawAmount)
566573 let availableFundsNew = (userAvailableSWOP(pool, i.originCaller) + claimAmount)
567574 let totalShareAmount = getTotalShareTokenStaked(pool)
568575 let totalShareAmountNew = (totalShareAmount - shareTokensWithdrawAmount)
569576 if ((shareTokensWithdrawAmount > userStakedAmountNew))
570577 then throw("Withdraw amount more then user locked amount")
571578 else if ((accountBalance(shareTokensId) > totalShareAmount))
572579 then throw("Balance of share-token is lower than totalAmount")
573580 else {
574581 let uplp = if ((getString(Address(fromBase58String(pool)), "version") == "3.0.0"))
575582 then invoke(lpFarmingAddress, "updateUserInterest", [pool, (userStakedAmount + userLockedAmount)], nil)
576583 else 0
577584 if ((uplp == uplp))
578585 then [IntegerEntry((((pool + "_") + user) + kFarmUserLastInterest), farmInterest), IntegerEntry((((pool + "_") + user) + kBoostUserLastInterest), boostInterest), IntegerEntry((((pool + "_") + user) + kBoostLPLastInterest), boostLPinterest), IntegerEntry((pool + kFarmLastInterest), farmInterest), IntegerEntry((pool + kBoostLastInterest), boostInterest), IntegerEntry((pool + kBoostLPLastInterest), boostLPinterest), IntegerEntry((pool + kLastInterestHeight), height), IntegerEntry((((pool + "_") + user) + kUserShareTokensStaked), userStakedAmountNew), IntegerEntry((pool + kShareTotalShareTokens), totalShareAmountNew), IntegerEntry((((pool + "_") + user) + kAvailableSWOP), availableFundsNew), Reissue(SWOP, toTreasure, true), ScriptTransfer(airdropMoneyBoxAddr, toTreasure, SWOP), ScriptTransfer(i.caller, shareTokensWithdrawAmount, shareTokensId)]
579586 else throw("Strict value is not equal to itself.")
580587 }
581588 })
582589
583590
584591
585592 @Callable(i)
586593 func claim (pool) = valueOrElse(isActive(), {
587594 let shareTokensId = fromBase58String(getStringValue(value(addressFromString(pool)), "share_asset_id"))
588595 let user = toString(i.caller)
589596 let shareTokenLocked = getTotalShareTokenStaked(pool)
590- let $t03137331472 = claimCalc(pool, user)
591- let farmInterest = $t03137331472._1
592- let boostInterest = $t03137331472._2
593- let boostLPinterest = $t03137331472._3
594- let claimAmount = $t03137331472._4
595- let toTreasure = $t03137331472._5
597+ let $t03153931638 = claimCalc(pool, user)
598+ let farmInterest = $t03153931638._1
599+ let boostInterest = $t03153931638._2
600+ let boostLPinterest = $t03153931638._3
601+ let claimAmount = $t03153931638._4
602+ let toTreasure = $t03153931638._5
596603 let availableFund = (userAvailableSWOP(pool, i.caller) + claimAmount)
597604 if ((availableFund == 0))
598605 then throw("You have 0 available SWOP")
599606 else if ((accountBalance(shareTokensId) > shareTokenLocked))
600607 then throw("Balance of share-token is lower than totalAmount")
601608 else $Tuple2([IntegerEntry((((pool + "_") + user) + kFarmUserLastInterest), farmInterest), IntegerEntry((((pool + "_") + user) + kBoostUserLastInterest), boostInterest), IntegerEntry((((pool + "_") + user) + kBoostLPLastInterest), boostLPinterest), IntegerEntry((pool + kFarmLastInterest), farmInterest), IntegerEntry((pool + kBoostLastInterest), boostInterest), IntegerEntry((pool + kBoostLPLastInterest), boostLPinterest), IntegerEntry((pool + kLastInterestHeight), height), IntegerEntry((((pool + "_") + user) + kAvailableSWOP), 0), Reissue(SWOP, (toTreasure + availableFund), true), ScriptTransfer(airdropMoneyBoxAddr, toTreasure, SWOP), ScriptTransfer(i.caller, availableFund, SWOP)], availableFund)
602609 })
603610
604611
605612
606613 @Callable(i)
607614 func claimAndStake (pool) = valueOrElse(isActive(), {
608615 let claimAmount = {
609616 let @ = invoke(this, "claim", [pool], nil)
610617 if ($isInstanceOf(@, "Int"))
611618 then @
612619 else throw(($getType(@) + " couldn't be cast to Int"))
613620 }
614621 if ((claimAmount == claimAmount))
615622 then {
616623 let stakeToGov = invoke(govAddress, "lockSWOPFromFarming", nil, [AttachedPayment(SWOP, claimAmount)])
617624 if ((stakeToGov == stakeToGov))
618625 then nil
619626 else throw("Strict value is not equal to itself.")
620627 }
621628 else throw("Strict value is not equal to itself.")
622629 })
623630
624631
625632
626633 @Callable(i)
627634 func claimAll (pools) = valueOrElse(isActive(), {
628635 func claimInv (claimTotal,pool) = {
629636 let claimAmount = {
630637 let @ = invoke(this, "claim", [pool], nil)
631638 if ($isInstanceOf(@, "Int"))
632639 then @
633640 else throw(($getType(@) + " couldn't be cast to Int"))
634641 }
635642 if ((claimAmount == claimAmount))
636643 then (claimTotal + claimAmount)
637644 else throw("Strict value is not equal to itself.")
638645 }
639646
640647 let claimTotal = {
641648 let $l = pools
642649 let $s = size($l)
643650 let $acc0 = 0
644651 func $f0_1 ($a,$i) = if (($i >= $s))
645652 then $a
646653 else claimInv($a, $l[$i])
647654
648655 func $f0_2 ($a,$i) = if (($i >= $s))
649656 then $a
650657 else throw("List size exceeds 60")
651658
652659 $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)
653660 }
654661 if ((claimTotal == 0))
655662 then throw("You have 0 available SWOP")
656663 else [ScriptTransfer(i.caller, claimTotal, SWOP)]
657664 })
658665
659666
660667
661668 @Callable(i)
662669 func claimAllAndStake (pools) = valueOrElse(isActive(), {
663670 func claimInv (claimTotal,pool) = {
664671 let claimAmount = {
665672 let @ = invoke(this, "claim", [pool], nil)
666673 if ($isInstanceOf(@, "Int"))
667674 then @
668675 else throw(($getType(@) + " couldn't be cast to Int"))
669676 }
670677 if ((claimAmount == claimAmount))
671678 then (claimTotal + claimAmount)
672679 else throw("Strict value is not equal to itself.")
673680 }
674681
675682 let claimTotal = {
676683 let $l = pools
677684 let $s = size($l)
678685 let $acc0 = 0
679686 func $f0_1 ($a,$i) = if (($i >= $s))
680687 then $a
681688 else claimInv($a, $l[$i])
682689
683690 func $f0_2 ($a,$i) = if (($i >= $s))
684691 then $a
685692 else throw("List size exceeds 60")
686693
687694 $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)
688695 }
689696 if ((claimTotal == 0))
690697 then throw("You have 0 available SWOP")
691698 else {
692699 let stakeToGov = invoke(govAddress, "lockSWOPFromFarming", nil, [AttachedPayment(SWOP, claimTotal)])
693700 if ((stakeToGov == stakeToGov))
694701 then nil
695702 else throw("Strict value is not equal to itself.")
696703 }
697704 })
698705
699706
700707
701708 @Callable(i)
702709 func updateUserBoostInterest (pool,user) = valueOrElse(isActive(), if ((i.caller != votingAddress))
703710 then throw("Only voiting can call this function")
704711 else {
705- let $t03385233951 = claimCalc(pool, user)
706- let farmInterest = $t03385233951._1
707- let boostInterest = $t03385233951._2
708- let boostLPinterest = $t03385233951._3
709- let claimAmount = $t03385233951._4
710- let toTreasure = $t03385233951._5
712+ let $t03401834117 = claimCalc(pool, user)
713+ let farmInterest = $t03401834117._1
714+ let boostInterest = $t03401834117._2
715+ let boostLPinterest = $t03401834117._3
716+ let claimAmount = $t03401834117._4
717+ let toTreasure = $t03401834117._5
711718 let availableFundsNew = (userAvailableSWOP(pool, i.originCaller) + claimAmount)
712719 [IntegerEntry((((pool + "_") + user) + kFarmUserLastInterest), farmInterest), IntegerEntry((((pool + "_") + user) + kBoostUserLastInterest), boostInterest), IntegerEntry((((pool + "_") + user) + kBoostLPLastInterest), boostLPinterest), IntegerEntry((pool + kFarmLastInterest), farmInterest), IntegerEntry((pool + kBoostLastInterest), boostInterest), IntegerEntry((pool + kBoostLPLastInterest), boostLPinterest), IntegerEntry((pool + kLastInterestHeight), height), IntegerEntry((((pool + "_") + user) + kAvailableSWOP), availableFundsNew), Reissue(SWOP, toTreasure, true), ScriptTransfer(airdropMoneyBoxAddr, toTreasure, SWOP)]
713720 })
714721
715722
716723
717724 @Callable(i)
718725 func shutdown () = valueOrElse(isAdminCall(i), if (!(active))
719726 then throw(("DApp is already suspended. Cause: " + valueOrElse(getString(this, kCause), "the cause wasn't specified")))
720727 else suspend("Paused by admin"))
721728
722729
723730
724731 @Callable(i)
725732 func activate () = valueOrElse(isAdminCall(i), if (active)
726733 then throw("DApp is already active")
727734 else [BooleanEntry(kActive, true), DeleteEntry(kCause)])
728735
729736
730737 @Verifier(tx)
731738 func verify () = match tx {
732739 case _ =>
733740 let adminPubKey1Signed = if (sigVerify(tx.bodyBytes, tx.proofs[0], adminPubKey1))
734741 then 1
735742 else 0
736743 let adminPubKey2Signed = if (sigVerify(tx.bodyBytes, tx.proofs[1], adminPubKey2))
737744 then 1
738745 else 0
739746 let adminPubKey3Signed = if (sigVerify(tx.bodyBytes, tx.proofs[2], adminPubKey3))
740747 then 1
741748 else 0
742749 (((adminPubKey1Signed + adminPubKey2Signed) + adminPubKey3Signed) >= 2)
743750 }
744751

github/deemru/w8io/026f985 
156.80 ms