tx · 2zQmk5sL4QGGFAhn9BuaN4tH2uzF88oby1x3jBTPfxcL

3MsXpzisJAwnzUr7XrEoW1BZo4U6rw4tsYK:  -0.14000000 Waves

2022.12.13 16:18 [2358595] smart account 3MsXpzisJAwnzUr7XrEoW1BZo4U6rw4tsYK > SELF 0.00000000 Waves

{ "type": 13, "id": "2zQmk5sL4QGGFAhn9BuaN4tH2uzF88oby1x3jBTPfxcL", "fee": 14000000, "feeAssetId": null, "timestamp": 1670937496956, "version": 2, "chainId": 84, "sender": "3MsXpzisJAwnzUr7XrEoW1BZo4U6rw4tsYK", "senderPublicKey": "FFdBua5rzzMkZebvsvmN7sAdU7XhFK8QNJ3hiwwxAYRA", "proofs": [ "3MELHaZHVbcFmgdPQhWh3ZwAxtNUH8LyLhFRx9sRBp2ZnSNz6bLHLrZ9AvaTjEooa9V6vpkeRWMaoHdkpC9zwQPB", "2LmChiiDL77ayjg3eag98jyDwHx5gp5n6eNoKrTk662RYRATKCBDX3LGP5GQfvYHGvPFF972jMNp6QcRGPabz5pd" ], "script": "base64:BgJhCAISAwoBCBIDCgEIEgMKAQgSBAoCCAESBQoDAggBEgUKAwgBARIECgIICBIDCgEIEgQKAggBEgUKAwIIARIDCgEIEgQKAggCEgMKAQgSAwoBGBIDCgEYEgQKAggIEgASAFwAB2tBY3RpdmUCBmFjdGl2ZQALa0FjdGl2ZUdsb2ICFGFjdGl2ZV9hbGxfY29udHJhY3RzAAZrQ2F1c2UCDnNodXRkb3duX2NhdXNlABprUmV3YXJkUG9vbEZyYWN0aW9uQ3VycmVudAIdX2N1cnJlbnRfcG9vbF9mcmFjdGlvbl9yZXdhcmQAG2tSZXdhcmRQb29sRnJhY3Rpb25QcmV2aW91cwIeX3ByZXZpb3VzX3Bvb2xfZnJhY3Rpb25fcmV3YXJkABNrSGVpZ2h0UG9vbEZyYWN0aW9uAhpfcG9vbF9yZXdhcmRfdXBkYXRlX2hlaWdodAAba1RvdGFsUmV3YXJkUGVyQmxvY2tDdXJyZ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595, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 3S7KLXSCCPqraMyA6W4wGE5QsVR8g43RNVpoYtD9iTzf Next: 8apwSkDMttUUEx6axjrXFJ8VtmNXfk8oTPRi6cR1JDkf Diff:
OldNewDifferences
288288 $Tuple4(farmInterest, boostInterest, 0, toTreasury)
289289 }
290290 else {
291- let $t01243712829 = calcInterest(pool, lastInterestHeight, rewardUpdateHeight, poolRewardUpdateHeight, farmInterest, boostInterest, poolVoted, currentRewardPerBlock, totalShareVirtual, previousRewardPerBlock, scaleValue)
292- let newFarmInterest = $t01243712829._1
293- let newBoostInterest = $t01243712829._2
291+ let $t01244212834 = calcInterest(pool, lastInterestHeight, rewardUpdateHeight, poolRewardUpdateHeight, farmInterest, boostInterest, poolVoted, currentRewardPerBlock, totalShareVirtual, previousRewardPerBlock, scaleValue)
292+ let newFarmInterest = $t01244212834._1
293+ let newBoostInterest = $t01244212834._2
294294 let farmRwd = fraction(uShareTokensVirt, (newFarmInterest - uFarmInterest), scaleValue)
295295 let poolBoostCoef = valueOrElse(getInteger(this, (pool + kPoolBoostCoef)), defPoolBoostCoef)
296296 let boostRwdMax = fraction(fraction(uShareTokensVirt, (newFarmInterest - max([uFarmInterest, stratBFarmInterest])), scaleValue), poolBoostCoef, lockBoostCoefScale)
306306
307307 func availableClaimCalcAllByUser (pools,user) = {
308308 func calcAvailable (acc,pool) = {
309- let $t01369813727 = acc
310- let newPools = $t01369813727._1
311- let amounts = $t01369813727._2
312- let $t01373613789 = claimCalc(pool, user)
313- let fi = $t01373613789._1
314- let bi = $t01373613789._2
315- let claimAmount = $t01373613789._3
316- let tt = $t01373613789._4
309+ let $t01370313732 = acc
310+ let newPools = $t01370313732._1
311+ let amounts = $t01370313732._2
312+ let $t01374113794 = claimCalc(pool, user)
313+ let fi = $t01374113794._1
314+ let bi = $t01374113794._2
315+ let claimAmount = $t01374113794._3
316+ let tt = $t01374113794._4
317317 let availableFund = (userAvailableSWOP(pool, user) + claimAmount)
318318 $Tuple2((newPools :+ pool), (amounts :+ availableFund))
319319 }
393393 let userLockedAmount = valueOrElse(getInteger(this, (((pool + "_") + user) + kUserShareTokensLocked)), 0)
394394 let userAmountVirtual = valueOrElse(getInteger(this, (((pool + "_") + user) + kUserShareTokensVirtual)), userStakedAmount)
395395 let totalUserShareTokens = ((userStakedAmount + userLockedAmount) + i.payments[0].amount)
396- let $t01659016642 = getLockParams(lockType)
397- let lockPeriod = $t01659016642._1
398- let lockCoef = $t01659016642._2
396+ let $t01659516647 = getLockParams(lockType)
397+ let lockPeriod = $t01659516647._1
398+ let lockCoef = $t01659516647._2
399399 let lockWavesFee = getIntegerValue(this, kLockWavesFee)
400400 if ((i.payments[0].assetId != shareAssetId))
401401 then throw("Wrong sharetoken in payment")
407407 let shareTokensChangeOnFH = canLockInFirstHarvest(pool, user, userStakedAmount, i.payments[0].amount, lockType)
408408 if ((shareTokensChangeOnFH == shareTokensChangeOnFH))
409409 then {
410- let $t01706919003 = if ((lockType == 0))
410+ let $t01707419008 = if ((lockType == 0))
411411 then {
412412 let userAmountVirtualNew = ((userAmountVirtual + i.payments[0].amount) - shareTokensChangeOnFH)
413413 $Tuple2([IntegerEntry((((pool + "_") + user) + kUserShareTokensStaked), ((userStakedAmount + i.payments[0].amount) - shareTokensChangeOnFH)), IntegerEntry((((pool + "_") + user) + kUserShareTokensVirtual), userAmountVirtualNew), IntegerEntry((pool + kShareTokensVirtual), ((totalShareVirtual + i.payments[0].amount) - shareTokensChangeOnFH)), ScriptTransfer(caller, shareTokensChangeOnFH, i.payments[0].assetId)], ((totalShare + i.payments[0].amount) - shareTokensChangeOnFH))
428428 let userAmountVirtualNew = (fraction(userLockedAmountNew, lockCoef, lockBoostCoefScale) + userStakedAmount)
429429 $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))
430430 }
431- let lockEntries = $t01706919003._1
432- let totalShareNew = $t01706919003._2
431+ let lockEntries = $t01707419008._1
432+ let totalShareNew = $t01707419008._2
433433 if ((accountBalance(shareAssetId) > totalShareNew))
434434 then throw("Balance of share-token is lower than totalAmount")
435435 else {
436- let $t01912819210 = claimCalc(pool, user)
437- let farmInterest = $t01912819210._1
438- let boostInterest = $t01912819210._2
439- let claimAmount = $t01912819210._3
440- let toTreasure = $t01912819210._4
436+ let $t01913319215 = claimCalc(pool, user)
437+ let farmInterest = $t01913319215._1
438+ let boostInterest = $t01913319215._2
439+ let claimAmount = $t01913319215._3
440+ let toTreasure = $t01913319215._4
441441 let availableFundsNew = (userAvailableSWOP(pool, user) + claimAmount)
442442 let uplp = if ((getString(Address(fromBase58String(pool)), "version") == "3.0.0"))
443443 then invoke(lpFarmingAddress, "updateUserInterest", [user, pool, totalUserShareTokens], nil)
455455 func calcWithdrawShareTokens (i,caller,pool,shareTokensWithdrawAmount) = valueOrElse(isActive(), {
456456 let shareTokensId = fromBase58String(getStringValue(value(addressFromString(pool)), "share_asset_id"))
457457 let user = toString(caller)
458- let $t02040220484 = claimCalc(pool, user)
459- let farmInterest = $t02040220484._1
460- let boostInterest = $t02040220484._2
461- let claimAmount = $t02040220484._3
462- let toTreasure = $t02040220484._4
458+ let $t02040720489 = claimCalc(pool, user)
459+ let farmInterest = $t02040720489._1
460+ let boostInterest = $t02040720489._2
461+ let claimAmount = $t02040720489._3
462+ let toTreasure = $t02040720489._4
463463 let userStakedAmount = valueOrElse(getInteger(this, (((pool + "_") + user) + kUserShareTokensStaked)), 0)
464464 let userLockedAmount = valueOrElse(getInteger(this, (((pool + "_") + user) + kUserShareTokensLocked)), 0)
465465 let userAmountVirtual = valueOrElse(getInteger(this, (((pool + "_") + user) + kUserShareTokensVirtual)), userStakedAmount)
489489 let shareTokensId = fromBase58String(getStringValue(value(addressFromString(pool)), "share_asset_id"))
490490 let user = toString(caller)
491491 let shareTokenLocked = getTotalShareToken(pool)
492- let $t02299723079 = claimCalc(pool, user)
493- let farmInterest = $t02299723079._1
494- let boostInterest = $t02299723079._2
495- let claimAmount = $t02299723079._3
496- let toTreasure = $t02299723079._4
492+ let $t02300223084 = claimCalc(pool, user)
493+ let farmInterest = $t02300223084._1
494+ let boostInterest = $t02300223084._2
495+ let claimAmount = $t02300223084._3
496+ let toTreasure = $t02300223084._4
497497 let availableFund = (userAvailableSWOP(pool, user) + claimAmount)
498498 if ((accountBalance(shareTokensId) > shareTokenLocked))
499499 then throw("Balance of share-token is lower than totalAmount")
528528 then throw("Only Governance can call this function")
529529 else {
530530 let user = toString(addressFromPublicKey(adminInvokePubKey))
531- let $t02495625030 = claimCalc(pool, user)
532- let farmInterest = $t02495625030._1
533- let boostInterest = $t02495625030._2
534- let boostLPinterest = $t02495625030._3
531+ let $t02496125035 = claimCalc(pool, user)
532+ let farmInterest = $t02496125035._1
533+ let boostInterest = $t02496125035._2
534+ let boostLPinterest = $t02496125035._3
535535 [IntegerEntry((pool + kFarmLastInterest), farmInterest), IntegerEntry((pool + kBoostLastInterest), boostInterest), IntegerEntry((pool + kLastInterestHeight), height)]
536536 })
537537
558558 let userLockedAmount = valueOrElse(getInteger(this, (((pool + "_") + user) + kUserShareTokensLocked)), 0)
559559 let userAmountVirtual = valueOrElse(getInteger(this, (((pool + "_") + user) + kUserShareTokensVirtual)), userStakedAmount)
560560 let totalUserShareTokens = (userStakedAmount + userLockedAmount)
561- let $t02644926501 = getLockParams(lockType)
562- let lockPeriod = $t02644926501._1
563- let lockCoef = $t02644926501._2
561+ let $t02645426506 = getLockParams(lockType)
562+ let lockPeriod = $t02645426506._1
563+ let lockCoef = $t02645426506._2
564564 let lockWavesFee = getIntegerValue(this, kLockWavesFee)
565565 if ((getHeightFirstHarvest(pool) > height))
566566 then throw("You can't lock shareTokens till first harvest end.")
591591 let userStakedAmountNew = (userStakedAmount - lockAmount)
592592 let userLockedHeigtNew = (height + lockPeriod)
593593 let userAmountVirtualNew = (fraction(userLockedAmountNew, lockCoef, lockBoostCoefScale) + userStakedAmountNew)
594- let $t02779127873 = claimCalc(pool, user)
595- let farmInterest = $t02779127873._1
596- let boostInterest = $t02779127873._2
597- let claimAmount = $t02779127873._3
598- let toTreasure = $t02779127873._4
594+ let $t02779627878 = claimCalc(pool, user)
595+ let farmInterest = $t02779627878._1
596+ let boostInterest = $t02779627878._2
597+ let claimAmount = $t02779627878._3
598+ let toTreasure = $t02779627878._4
599599 let availableFundsNew = (userAvailableSWOP(pool, user) + claimAmount)
600600 [IntegerEntry((((pool + "_") + user) + kUserShareTokensStaked), userStakedAmountNew), IntegerEntry((((pool + "_") + user) + kUserShareTokensLocked), userLockedAmountNew), IntegerEntry((((pool + "_") + user) + kUserShareTokensLockedHeight), userLockedHeigtNew), IntegerEntry((((pool + "_") + user) + kUserShareTokensLockedType), lockType), IntegerEntry((((pool + "_") + user) + kUserShareTokensVirtual), userAmountVirtualNew), IntegerEntry((pool + kShareTokensVirtual), ((totalShareVirtual - userAmountVirtual) + userAmountVirtualNew)), IntegerEntry((((pool + "_") + user) + kFarmUserLastInterest), farmInterest), IntegerEntry((((pool + "_") + user) + kBoostUserLastInterest), boostInterest), IntegerEntry((pool + kFarmLastInterest), farmInterest), IntegerEntry((pool + kBoostLastInterest), boostInterest), IntegerEntry((pool + kLastInterestHeight), height), IntegerEntry((((pool + "_") + user) + kAvailableSWOP), availableFundsNew), Reissue(SWOP, toTreasure, true), ScriptTransfer(farmingTreasureAddr, toTreasure, SWOP)]
601601 }
615615 then throw(("You can't unlock sharetokens till " + toString(userLockedHeigt)))
616616 else {
617617 let userStakedAmountNew = (userStakedAmount + userLockedAmount)
618- let $t02995030032 = claimCalc(pool, user)
619- let farmInterest = $t02995030032._1
620- let boostInterest = $t02995030032._2
621- let claimAmount = $t02995030032._3
622- let toTreasure = $t02995030032._4
618+ let $t02995530037 = claimCalc(pool, user)
619+ let farmInterest = $t02995530037._1
620+ let boostInterest = $t02995530037._2
621+ let claimAmount = $t02995530037._3
622+ let toTreasure = $t02995530037._4
623623 let availableFundsNew = (userAvailableSWOP(pool, user) + claimAmount)
624624 [IntegerEntry((((pool + "_") + user) + kFarmUserLastInterest), farmInterest), IntegerEntry((((pool + "_") + user) + kBoostUserLastInterest), boostInterest), IntegerEntry((pool + kFarmLastInterest), farmInterest), IntegerEntry((pool + kBoostLastInterest), boostInterest), IntegerEntry((pool + kLastInterestHeight), height), IntegerEntry((((pool + "_") + user) + kUserShareTokensStaked), userStakedAmountNew), IntegerEntry((((pool + "_") + user) + kUserShareTokensVirtual), userStakedAmountNew), IntegerEntry((pool + kShareTokensVirtual), ((totalShareVirtual - userAmountVirtual) + userStakedAmountNew)), IntegerEntry((((pool + "_") + user) + kAvailableSWOP), availableFundsNew), DeleteEntry((((pool + "_") + user) + kUserShareTokensLocked)), DeleteEntry((((pool + "_") + user) + kUserShareTokensLockedHeight)), DeleteEntry((((pool + "_") + user) + kUserShareTokensLockedType)), Reissue(SWOP, toTreasure, true), ScriptTransfer(farmingTreasureAddr, toTreasure, SWOP), ScriptTransfer(i.caller, lockWavesFee, unit)]
625+ }
626+ })
627+
628+
629+
630+@Callable(i)
631+func unlockStableLock (user) = valueOrElse(isActive(), {
632+ let allowedCaller = Address(base58'3MpNDxa2QpcAzbaLaV6qacbuASgtH7wcric')
633+ let stablePools = ["3MpygN8qm376tUAHB6mhC5BxG5NKYortiyX", "3MvMXhKFMPz4BuZj9Jr9UysuxbWFKRJZgb3"]
634+ let lockWavesFee = getIntegerValue(this, kLockWavesFee)
635+ if ((i.caller != allowedCaller))
636+ then throw((("Only " + toString(allowedCaller)) + "can call this function"))
637+ else {
638+ func unlock (a,pool) = {
639+ let $t03178531826 = a
640+ let entries = $t03178531826._1
641+ let toTreasureSum = $t03178531826._2
642+ let feesSum = $t03178531826._3
643+ let userLockedHeigt = valueOrElse(getInteger(this, (((pool + "_") + user) + kUserShareTokensLockedHeight)), 0)
644+ if ((userLockedHeigt == 0))
645+ then a
646+ else {
647+ let totalShareVirtual = getIntegerValue(this, (pool + kShareTokensVirtual))
648+ let userStakedAmount = valueOrElse(getInteger(this, (((pool + "_") + user) + kUserShareTokensStaked)), 0)
649+ let userLockedAmount = valueOrElse(getInteger(this, (((pool + "_") + user) + kUserShareTokensLocked)), 0)
650+ let userAmountVirtual = valueOrElse(getInteger(this, (((pool + "_") + user) + kUserShareTokensVirtual)), userStakedAmount)
651+ let userStakedAmountNew = (userStakedAmount + userLockedAmount)
652+ let $t03246732549 = claimCalc(pool, user)
653+ let farmInterest = $t03246732549._1
654+ let boostInterest = $t03246732549._2
655+ let claimAmount = $t03246732549._3
656+ let toTreasure = $t03246732549._4
657+ let availableFundsNew = (userAvailableSWOP(pool, user) + claimAmount)
658+ $Tuple3((entries ++ [IntegerEntry((((pool + "_") + user) + kFarmUserLastInterest), farmInterest), IntegerEntry((((pool + "_") + user) + kBoostUserLastInterest), boostInterest), IntegerEntry((pool + kFarmLastInterest), farmInterest), IntegerEntry((pool + kBoostLastInterest), boostInterest), IntegerEntry((pool + kLastInterestHeight), height), IntegerEntry((((pool + "_") + user) + kUserShareTokensStaked), userStakedAmountNew), IntegerEntry((((pool + "_") + user) + kUserShareTokensVirtual), userStakedAmountNew), IntegerEntry((pool + kShareTokensVirtual), ((totalShareVirtual - userAmountVirtual) + userStakedAmountNew)), IntegerEntry((((pool + "_") + user) + kAvailableSWOP), availableFundsNew), DeleteEntry((((pool + "_") + user) + kUserShareTokensLocked)), DeleteEntry((((pool + "_") + user) + kUserShareTokensLockedHeight)), DeleteEntry((((pool + "_") + user) + kUserShareTokensLockedType))]), (toTreasureSum + toTreasure), (feesSum + lockWavesFee))
659+ }
660+ }
661+
662+ let $t03368433757 = {
663+ let $l = stablePools
664+ let $s = size($l)
665+ let $acc0 = $Tuple3(nil, 0, 0)
666+ func $f0_1 ($a,$i) = if (($i >= $s))
667+ then $a
668+ else unlock($a, $l[$i])
669+
670+ func $f0_2 ($a,$i) = if (($i >= $s))
671+ then $a
672+ else throw("List size exceeds 2")
673+
674+ $f0_2($f0_1($f0_1($acc0, 0), 1), 2)
675+ }
676+ let entries = $t03368433757._1
677+ let toTresure = $t03368433757._2
678+ let fees = $t03368433757._3
679+ if ((size(entries) == 0))
680+ then throw("Nothing to unlock")
681+ else ([Reissue(SWOP, toTresure, true), ScriptTransfer(farmingTreasureAddr, toTresure, SWOP), ScriptTransfer(moneyBoxAddress, fees, unit)] ++ entries)
625682 }
626683 })
627684
753810 func updateUserBoostInterest (pool,user) = valueOrElse(isActive(), if ((i.caller != votingAddress))
754811 then throw("Only voiting can call this function")
755812 else {
756- let $t03350633588 = claimCalc(pool, user)
757- let farmInterest = $t03350633588._1
758- let boostInterest = $t03350633588._2
759- let claimAmount = $t03350633588._3
760- let toTreasure = $t03350633588._4
813+ let $t03632136403 = claimCalc(pool, user)
814+ let farmInterest = $t03632136403._1
815+ let boostInterest = $t03632136403._2
816+ let claimAmount = $t03632136403._3
817+ let toTreasure = $t03632136403._4
761818 let availableFundsNew = (userAvailableSWOP(pool, user) + claimAmount)
762819 [IntegerEntry((((pool + "_") + user) + kFarmUserLastInterest), farmInterest), IntegerEntry((((pool + "_") + user) + kBoostUserLastInterest), boostInterest), IntegerEntry((pool + kFarmLastInterest), farmInterest), IntegerEntry((pool + kBoostLastInterest), boostInterest), IntegerEntry((pool + kLastInterestHeight), height), IntegerEntry((((pool + "_") + user) + kAvailableSWOP), availableFundsNew), Reissue(SWOP, toTreasure, true), ScriptTransfer(farmingTreasureAddr, toTreasure, SWOP)]
763820 })
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 kLastInterestHeight = "_last_interest_height"
5151
5252 let kSWOPid = "SWOP_id"
5353
5454 let kAvailableSWOP = "_available_SWOP"
5555
5656 let kSwopYearEmission = "swop_year_emission"
5757
5858 let kHarvestPoolVote = "_harvest_pool_vote_gSWOP"
5959
6060 let kPoolVote = "_pool_vote_gSWOP"
6161
6262 let kUserPoolVote = "_user_vote_gSWOP"
6363
6464 let kPoolStruc = "_pool_struc"
6565
6666 let kUserPoolStruc = "_user_pool_struc"
6767
6868 let kHarvestUserPoolVote = "_harvest_user_pool_vote_gSWOP"
6969
7070 let kFirstHarvestHeight = "first_harvest_height"
7171
7272 let kShareLimitFH = "share_limit_on_first_harvest"
7373
7474 let kStratBFarmInterest = "_strat_b_farm_interest"
7575
7676 let kCpmmContract = "cpmm_contract"
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 kFarmingTreasureAddr = "farming_treasure"
9595
9696 let oracle = Address(base58'3MvVBtsXroQpy1tsPw21TU2ET9A8WfmrNjz')
9797
9898 let totalVoteShare = 10000000000
9999
100100 let scaleValue8 = 100000000
101101
102102 let lockBoostCoefScale = 1000
103103
104104 let defPoolBoostCoef = 500
105105
106106 let bStartH = 3397850
107107
108108 func getBase58FromOracle (key) = match getString(oracle, key) {
109109 case string: String =>
110110 fromBase58String(string)
111111 case nothing =>
112112 throw((key + "is empty"))
113113 }
114114
115115
116116 let adminPubKey1 = getBase58FromOracle(kAdminPubKey1)
117117
118118 let adminPubKey2 = getBase58FromOracle(kAdminPubKey2)
119119
120120 let adminPubKey3 = getBase58FromOracle(kAdminPubKey3)
121121
122122 let moneyBoxAddress = Address(getBase58FromOracle(kMoneyBoxAddress))
123123
124124 let votingAddress = Address(getBase58FromOracle(kVotingAddress))
125125
126126 let govAddress = Address(getBase58FromOracle(kGovAddress))
127127
128128 let adminInvokePubKey = getBase58FromOracle(kAdminInvokePubKey)
129129
130130 let lpFarmingAddress = Address(getBase58FromOracle(kLPFarmingAddress))
131131
132132 let farmingTreasureAddr = Address(getBase58FromOracle(kFarmingTreasureAddr))
133133
134134 let cpmmContract = Address(getBase58FromOracle(kCpmmContract))
135135
136136 let active = getBooleanValue(this, kActive)
137137
138138 let activeGlob = valueOrElse(getBoolean(oracle, kActiveGlob), true)
139139
140140 let SWOP = fromBase58String(getStringValue(this, kSWOPid))
141141
142142 func getHeightFirstHarvest (pool) = valueOrElse(getInteger(Address(fromBase58String(pool)), kFirstHarvestHeight), 0)
143143
144144
145145 func getFHShareLimitToken (pool) = valueOrErrorMessage(getInteger(pool, kShareLimitFH), ("No data on the key: " + kShareLimitFH))
146146
147147
148148 func getTotalShareToken (pool) = valueOrErrorMessage(getInteger(this, (pool + kShareTotalShareTokens)), (("No data on the key: " + pool) + kShareTotalShareTokens))
149149
150150
151151 func getPoolVoted (pool) = valueOrElse(getInteger(votingAddress, (pool + kPoolVote)), valueOrElse(parseInt(split(valueOrElse(getString(votingAddress, (pool + kPoolStruc)), ""), "_")[0]), 0))
152152
153153
154154 func getUserPoolVoted (pool,user) = valueOrElse(getInteger(votingAddress, (((user + "_") + pool) + kUserPoolVote)), valueOrElse(parseInt(split(valueOrElse(getString(votingAddress, (((user + "_") + pool) + kUserPoolStruc)), ""), "_")[0]), 0))
155155
156156
157157 func getShareAssetId (pool) = fromBase58String(getStringValue(value(addressFromString(pool)), "share_asset_id"))
158158
159159
160160 func accountBalance (assetId) = match assetId {
161161 case id: ByteVector =>
162162 assetBalance(this, id)
163163 case waves: Unit =>
164164 wavesBalance(this).available
165165 case _ =>
166166 throw("Match error")
167167 }
168168
169169
170170 func calcScaleValue (assetId1,assetId2) = {
171171 let assetId1Decimals = value(assetInfo(assetId1)).decimals
172172 let assetId2Decimals = value(assetInfo(assetId2)).decimals
173173 let scaleDigits = ((assetId2Decimals - assetId1Decimals) + 8)
174174 pow(10, 0, scaleDigits, 0, 0, DOWN)
175175 }
176176
177177
178178 func userAvailableSWOP (pool,user) = valueOrElse(getInteger(this, (((pool + "_") + user) + kAvailableSWOP)), 0)
179179
180180
181181 func rewardInfo (pool) = {
182182 let totalRewardPerBlockCurrent = valueOrErrorMessage(getInteger(govAddress, kTotalRewardPerBlockCurrent), ((("No data on the key: " + kTotalRewardPerBlockCurrent) + " at address ") + toString(govAddress)))
183183 let totalRewardPerBlockPrevious = valueOrErrorMessage(getInteger(govAddress, kTotalRewardPerBlockPrevious), ((("No data on the key: " + kTotalRewardPerBlockPrevious) + " at address ") + toString(govAddress)))
184184 let rewardPoolFractionCurrent = valueOrErrorMessage(getInteger(govAddress, (pool + kRewardPoolFractionCurrent)), (((("No data on the key: " + pool) + kRewardPoolFractionCurrent) + " at address ") + toString(govAddress)))
185185 let rewardUpdateHeight = valueOrErrorMessage(getInteger(govAddress, kRewardUpdateHeight), ((("No data on the key: " + kRewardUpdateHeight) + " at address ") + toString(govAddress)))
186186 let poolRewardUpdateHeight = valueOrElse(getInteger(govAddress, (pool + kHeightPoolFraction)), rewardUpdateHeight)
187187 let rewardPoolFractionPrevious = valueOrErrorMessage(getInteger(govAddress, (pool + kRewardPoolFractionPrevious)), (((("No data on the key: " + pool) + kRewardPoolFractionPrevious) + " at address ") + toString(govAddress)))
188188 let rewardPoolCurrent = fraction(totalRewardPerBlockCurrent, rewardPoolFractionCurrent, totalVoteShare)
189189 let rewardPoolPrevious = fraction(totalRewardPerBlockCurrent, rewardPoolFractionPrevious, totalVoteShare)
190190 if (if ((rewardPoolCurrent > totalRewardPerBlockCurrent))
191191 then true
192192 else (rewardPoolPrevious > totalRewardPerBlockPrevious))
193193 then throw("rewardPoolCurrent > totalRewardPerBlockCurrent or rewardPoolPrevious > totalRewardPerBlockPrevious")
194194 else $Tuple4(rewardPoolCurrent, rewardUpdateHeight, rewardPoolPrevious, poolRewardUpdateHeight)
195195 }
196196
197197
198198 func getLastInterestInfo (pool) = {
199199 let farmInterest = valueOrErrorMessage(getInteger(this, (pool + kFarmLastInterest)), (("No data on the key: " + pool) + kFarmLastInterest))
200200 let boostInterest = valueOrElse(getInteger(this, (pool + kBoostLastInterest)), 0)
201201 let lastInterestHeight = valueOrElse(getInteger(this, (pool + kLastInterestHeight)), height)
202202 $Tuple3(lastInterestHeight, farmInterest, boostInterest)
203203 }
204204
205205
206206 func calcFarmRwd (pool,curTotalReward) = {
207207 let poolBoostCoef = valueOrElse(getInteger(this, (pool + kPoolBoostCoef)), defPoolBoostCoef)
208208 fraction(curTotalReward, lockBoostCoefScale, (poolBoostCoef + lockBoostCoefScale))
209209 }
210210
211211
212212 func calcBoostRwd (pool,curTotalReward) = {
213213 let poolBoostCoef = valueOrElse(getInteger(this, (pool + kPoolBoostCoef)), defPoolBoostCoef)
214214 fraction(curTotalReward, poolBoostCoef, (poolBoostCoef + lockBoostCoefScale))
215215 }
216216
217217
218218 func calcInterest (pool,lastInterestHeight,rewardUpdateHeight,poolRewardUpdateHeight,farmInterest,boostInterest,poolVoted,currentRewardPerBlock,shareTokenLocked,previousRewardPerBlock,scaleValue) = {
219219 let $t0948010653 = if (if (if ((rewardUpdateHeight > height))
220220 then (rewardUpdateHeight == poolRewardUpdateHeight)
221221 else false)
222222 then true
223223 else if ((height > rewardUpdateHeight))
224224 then (rewardUpdateHeight != poolRewardUpdateHeight)
225225 else false)
226226 then {
227227 let r = (previousRewardPerBlock * (height - lastInterestHeight))
228228 $Tuple3(r, farmInterest, boostInterest)
229229 }
230230 else if (if (if ((height > rewardUpdateHeight))
231231 then (rewardUpdateHeight == poolRewardUpdateHeight)
232232 else false)
233233 then (lastInterestHeight > rewardUpdateHeight)
234234 else false)
235235 then {
236236 let r = (currentRewardPerBlock * (height - lastInterestHeight))
237237 $Tuple3(r, farmInterest, boostInterest)
238238 }
239239 else {
240240 let rwdBfrUpd = (previousRewardPerBlock * (rewardUpdateHeight - lastInterestHeight))
241241 let fBfrUp = (farmInterest + fraction(calcFarmRwd(pool, rwdBfrUpd), scaleValue, shareTokenLocked))
242242 let bBfrUp = (boostInterest + (if ((poolVoted > 0))
243243 then fraction(calcBoostRwd(pool, rwdBfrUpd), scaleValue8, poolVoted)
244244 else 0))
245245 let rwd = (currentRewardPerBlock * (height - rewardUpdateHeight))
246246 $Tuple3(rwd, fBfrUp, bBfrUp)
247247 }
248248 let reward = $t0948010653._1
249249 let farmIntrBefore = $t0948010653._2
250250 let boostIntrBefore = $t0948010653._3
251251 let newFarmInterest = (farmIntrBefore + fraction(calcFarmRwd(pool, reward), scaleValue, shareTokenLocked))
252252 let newBoostInterest = (boostIntrBefore + (if ((poolVoted > 0))
253253 then fraction(calcBoostRwd(pool, reward), scaleValue8, poolVoted)
254254 else 0))
255255 $Tuple2(newFarmInterest, newBoostInterest)
256256 }
257257
258258
259259 func claimCalc (pool,user) = {
260260 let scaleValue = calcScaleValue(SWOP, getShareAssetId(pool))
261261 let poolVoted = getPoolVoted(pool)
262262 let uPoolVoted = getUserPoolVoted(pool, user)
263263 let shareToken = getTotalShareToken(pool)
264264 let totalShareVirtual = valueOrElse(getInteger(this, (pool + kShareTokensVirtual)), shareToken)
265265 let stratBFarmInterest = valueOrElse(getInteger(this, (pool + kStratBFarmInterest)), 0)
266266 let $t01149111572 = getLastInterestInfo(pool)
267267 let lastInterestHeight = $t01149111572._1
268268 let farmInterest = $t01149111572._2
269269 let boostInterest = $t01149111572._3
270270 let $t01157711691 = rewardInfo(pool)
271271 let currentRewardPerBlock = $t01157711691._1
272272 let rewardUpdateHeight = $t01157711691._2
273273 let previousRewardPerBlock = $t01157711691._3
274274 let poolRewardUpdateHeight = $t01157711691._4
275275 let uFarmInterest = valueOrElse(getInteger(this, (((pool + "_") + user) + kFarmUserLastInterest)), farmInterest)
276276 let uBoostInterest = valueOrElse(getInteger(this, (((pool + "_") + user) + kBoostUserLastInterest)), if (if ((stratBFarmInterest > uFarmInterest))
277277 then (uPoolVoted > 0)
278278 else false)
279279 then 0
280280 else boostInterest)
281281 let uShareTokensStaked = valueOrElse(getInteger(this, (((pool + "_") + user) + kUserShareTokensStaked)), 0)
282282 let uShareTokensVirt = valueOrElse(getInteger(this, (((pool + "_") + user) + kUserShareTokensVirtual)), uShareTokensStaked)
283283 if ((totalShareVirtual == 0))
284284 then {
285285 let toTreasury = if ((farmInterest == 0))
286286 then (currentRewardPerBlock * (height - lastInterestHeight))
287287 else 0
288288 $Tuple4(farmInterest, boostInterest, 0, toTreasury)
289289 }
290290 else {
291- let $t01243712829 = calcInterest(pool, lastInterestHeight, rewardUpdateHeight, poolRewardUpdateHeight, farmInterest, boostInterest, poolVoted, currentRewardPerBlock, totalShareVirtual, previousRewardPerBlock, scaleValue)
292- let newFarmInterest = $t01243712829._1
293- let newBoostInterest = $t01243712829._2
291+ let $t01244212834 = calcInterest(pool, lastInterestHeight, rewardUpdateHeight, poolRewardUpdateHeight, farmInterest, boostInterest, poolVoted, currentRewardPerBlock, totalShareVirtual, previousRewardPerBlock, scaleValue)
292+ let newFarmInterest = $t01244212834._1
293+ let newBoostInterest = $t01244212834._2
294294 let farmRwd = fraction(uShareTokensVirt, (newFarmInterest - uFarmInterest), scaleValue)
295295 let poolBoostCoef = valueOrElse(getInteger(this, (pool + kPoolBoostCoef)), defPoolBoostCoef)
296296 let boostRwdMax = fraction(fraction(uShareTokensVirt, (newFarmInterest - max([uFarmInterest, stratBFarmInterest])), scaleValue), poolBoostCoef, lockBoostCoefScale)
297297 let curBoostRwd = fraction((newBoostInterest - uBoostInterest), uPoolVoted, scaleValue8)
298298 let boostRwd = min([boostRwdMax, curBoostRwd])
299299 let toTreasury = (boostRwdMax - boostRwd)
300300 if ((0 > toTreasury))
301301 then throw("toTreasury < 0")
302302 else $Tuple4(newFarmInterest, newBoostInterest, (farmRwd + boostRwd), toTreasury)
303303 }
304304 }
305305
306306
307307 func availableClaimCalcAllByUser (pools,user) = {
308308 func calcAvailable (acc,pool) = {
309- let $t01369813727 = acc
310- let newPools = $t01369813727._1
311- let amounts = $t01369813727._2
312- let $t01373613789 = claimCalc(pool, user)
313- let fi = $t01373613789._1
314- let bi = $t01373613789._2
315- let claimAmount = $t01373613789._3
316- let tt = $t01373613789._4
309+ let $t01370313732 = acc
310+ let newPools = $t01370313732._1
311+ let amounts = $t01370313732._2
312+ let $t01374113794 = claimCalc(pool, user)
313+ let fi = $t01374113794._1
314+ let bi = $t01374113794._2
315+ let claimAmount = $t01374113794._3
316+ let tt = $t01374113794._4
317317 let availableFund = (userAvailableSWOP(pool, user) + claimAmount)
318318 $Tuple2((newPools :+ pool), (amounts :+ availableFund))
319319 }
320320
321321 let $l = pools
322322 let $s = size($l)
323323 let $acc0 = $Tuple2(nil, nil)
324324 func $f0_1 ($a,$i) = if (($i >= $s))
325325 then $a
326326 else calcAvailable($a, $l[$i])
327327
328328 func $f0_2 ($a,$i) = if (($i >= $s))
329329 then $a
330330 else throw("List size exceeds 60")
331331
332332 $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)
333333 }
334334
335335
336336 func canLockInFirstHarvest (pool,user,userShareTokensStaked,pmtAmount,lockType) = if ((getHeightFirstHarvest(pool) > height))
337337 then {
338338 let totalVoteAmount = valueOrElse(getInteger(votingAddress, (pool + kHarvestPoolVote)), 0)
339339 let userVoteAmount = valueOrElse(getInteger(votingAddress, (((user + "_") + pool) + kHarvestUserPoolVote)), 0)
340340 let FHShareTokenLimit = getFHShareLimitToken(addressFromStringValue(pool))
341341 let FHShareTokenUserLimit = (fraction(FHShareTokenLimit, userVoteAmount, totalVoteAmount) - userShareTokensStaked)
342342 if ((lockType > 0))
343343 then throw("You can't lock shareTokens till first harvest end.")
344344 else if ((userVoteAmount == 0))
345345 then 0
346346 else if ((pmtAmount >= FHShareTokenUserLimit))
347347 then (pmtAmount - FHShareTokenUserLimit)
348348 else 0
349349 }
350350 else 0
351351
352352
353353 func getLockParams (type) = {
354354 let lockParams = split(valueOrErrorMessage(getString(this, (toString(type) + kLockParams)), ("There are no key for lock type" + toString(type))), "_")
355355 $Tuple2(parseIntValue(lockParams[0]), parseIntValue(lockParams[1]))
356356 }
357357
358358
359359 func suspend (cause) = [BooleanEntry(kActive, false), StringEntry(kCause, cause)]
360360
361361
362362 func isActive () = if (if (active)
363363 then activeGlob
364364 else false)
365365 then unit
366366 else throw("DApp is inactive at this moment")
367367
368368
369369 func isAdminCall (i) = if (containsElement([adminPubKey1, adminPubKey2, adminPubKey3], i.callerPublicKey))
370370 then unit
371371 else throw("Only admin can call this function")
372372
373373
374374 func isPoolCall (i,pool) = if (if ((toString(i.caller) == pool))
375375 then true
376376 else (i.caller == cpmmContract))
377377 then unit
378378 else throw("Only pool can call this function")
379379
380380
381381 func isSelfCall (i) = if ((i.caller == this))
382382 then unit
383383 else throw("Only contract itself can call this function")
384384
385385
386386 func calcLockShareTokens (i,caller,pool,lockType) = {
387387 let shareAssetId = getShareAssetId(pool)
388388 let user = toString(caller)
389389 let totalShare = getTotalShareToken(pool)
390390 let totalShareVirtual = valueOrElse(getInteger(this, (pool + kShareTokensVirtual)), totalShare)
391391 let userStakedAmount = valueOrElse(getInteger(this, (((pool + "_") + user) + kUserShareTokensStaked)), 0)
392392 let userLockedHeigt = valueOrElse(getInteger(this, (((pool + "_") + user) + kUserShareTokensLockedHeight)), 0)
393393 let userLockedAmount = valueOrElse(getInteger(this, (((pool + "_") + user) + kUserShareTokensLocked)), 0)
394394 let userAmountVirtual = valueOrElse(getInteger(this, (((pool + "_") + user) + kUserShareTokensVirtual)), userStakedAmount)
395395 let totalUserShareTokens = ((userStakedAmount + userLockedAmount) + i.payments[0].amount)
396- let $t01659016642 = getLockParams(lockType)
397- let lockPeriod = $t01659016642._1
398- let lockCoef = $t01659016642._2
396+ let $t01659516647 = getLockParams(lockType)
397+ let lockPeriod = $t01659516647._1
398+ let lockCoef = $t01659516647._2
399399 let lockWavesFee = getIntegerValue(this, kLockWavesFee)
400400 if ((i.payments[0].assetId != shareAssetId))
401401 then throw("Wrong sharetoken in payment")
402402 else if ((0 >= i.payments[0].amount))
403403 then throw("Payment amount must be greater than 0")
404404 else if ((0 > lockType))
405405 then throw("lockType must be >= 0")
406406 else {
407407 let shareTokensChangeOnFH = canLockInFirstHarvest(pool, user, userStakedAmount, i.payments[0].amount, lockType)
408408 if ((shareTokensChangeOnFH == shareTokensChangeOnFH))
409409 then {
410- let $t01706919003 = if ((lockType == 0))
410+ let $t01707419008 = if ((lockType == 0))
411411 then {
412412 let userAmountVirtualNew = ((userAmountVirtual + i.payments[0].amount) - shareTokensChangeOnFH)
413413 $Tuple2([IntegerEntry((((pool + "_") + user) + kUserShareTokensStaked), ((userStakedAmount + i.payments[0].amount) - shareTokensChangeOnFH)), IntegerEntry((((pool + "_") + user) + kUserShareTokensVirtual), userAmountVirtualNew), IntegerEntry((pool + kShareTokensVirtual), ((totalShareVirtual + i.payments[0].amount) - shareTokensChangeOnFH)), ScriptTransfer(caller, shareTokensChangeOnFH, i.payments[0].assetId)], ((totalShare + i.payments[0].amount) - shareTokensChangeOnFH))
414414 }
415415 else if (if ((userLockedHeigt == 0))
416416 then if (if ((2 > size(i.payments)))
417417 then true
418418 else (i.payments[1].assetId != unit))
419419 then true
420420 else (lockWavesFee > i.payments[1].amount)
421421 else false)
422422 then throw((("You need to pay additional waves comission " + toString(lockWavesFee)) + "WAVES"))
423423 else if ((userLockedHeigt > (height + lockPeriod)))
424424 then throw("You cannot lock sharetokens for a period less than what you have already locked")
425425 else {
426426 let userLockedAmountNew = (userLockedAmount + i.payments[0].amount)
427427 let userLockedHeigtNew = (height + lockPeriod)
428428 let userAmountVirtualNew = (fraction(userLockedAmountNew, lockCoef, lockBoostCoefScale) + userStakedAmount)
429429 $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))
430430 }
431- let lockEntries = $t01706919003._1
432- let totalShareNew = $t01706919003._2
431+ let lockEntries = $t01707419008._1
432+ let totalShareNew = $t01707419008._2
433433 if ((accountBalance(shareAssetId) > totalShareNew))
434434 then throw("Balance of share-token is lower than totalAmount")
435435 else {
436- let $t01912819210 = claimCalc(pool, user)
437- let farmInterest = $t01912819210._1
438- let boostInterest = $t01912819210._2
439- let claimAmount = $t01912819210._3
440- let toTreasure = $t01912819210._4
436+ let $t01913319215 = claimCalc(pool, user)
437+ let farmInterest = $t01913319215._1
438+ let boostInterest = $t01913319215._2
439+ let claimAmount = $t01913319215._3
440+ let toTreasure = $t01913319215._4
441441 let availableFundsNew = (userAvailableSWOP(pool, user) + claimAmount)
442442 let uplp = if ((getString(Address(fromBase58String(pool)), "version") == "3.0.0"))
443443 then invoke(lpFarmingAddress, "updateUserInterest", [user, pool, totalUserShareTokens], nil)
444444 else 0
445445 if ((uplp == uplp))
446446 then ([IntegerEntry((((pool + "_") + user) + kFarmUserLastInterest), farmInterest), IntegerEntry((((pool + "_") + user) + kBoostUserLastInterest), boostInterest), IntegerEntry((pool + kFarmLastInterest), farmInterest), IntegerEntry((pool + kBoostLastInterest), boostInterest), IntegerEntry((pool + kLastInterestHeight), height), IntegerEntry((pool + kShareTotalShareTokens), totalShareNew), IntegerEntry((((pool + "_") + user) + kAvailableSWOP), availableFundsNew), Reissue(SWOP, toTreasure, true), ScriptTransfer(farmingTreasureAddr, toTreasure, SWOP)] ++ lockEntries)
447447 else throw("Strict value is not equal to itself.")
448448 }
449449 }
450450 else throw("Strict value is not equal to itself.")
451451 }
452452 }
453453
454454
455455 func calcWithdrawShareTokens (i,caller,pool,shareTokensWithdrawAmount) = valueOrElse(isActive(), {
456456 let shareTokensId = fromBase58String(getStringValue(value(addressFromString(pool)), "share_asset_id"))
457457 let user = toString(caller)
458- let $t02040220484 = claimCalc(pool, user)
459- let farmInterest = $t02040220484._1
460- let boostInterest = $t02040220484._2
461- let claimAmount = $t02040220484._3
462- let toTreasure = $t02040220484._4
458+ let $t02040720489 = claimCalc(pool, user)
459+ let farmInterest = $t02040720489._1
460+ let boostInterest = $t02040720489._2
461+ let claimAmount = $t02040720489._3
462+ let toTreasure = $t02040720489._4
463463 let userStakedAmount = valueOrElse(getInteger(this, (((pool + "_") + user) + kUserShareTokensStaked)), 0)
464464 let userLockedAmount = valueOrElse(getInteger(this, (((pool + "_") + user) + kUserShareTokensLocked)), 0)
465465 let userAmountVirtual = valueOrElse(getInteger(this, (((pool + "_") + user) + kUserShareTokensVirtual)), userStakedAmount)
466466 let userStakedAmountNew = (userStakedAmount - shareTokensWithdrawAmount)
467467 let availableFundsNew = (userAvailableSWOP(pool, user) + claimAmount)
468468 let totalShareAmount = getTotalShareToken(pool)
469469 let totalShareVirtual = valueOrElse(getInteger(this, (pool + kShareTokensVirtual)), totalShareAmount)
470470 let totalShareAmountNew = (totalShareAmount - shareTokensWithdrawAmount)
471471 let totalShareVirtualNew = (totalShareVirtual - shareTokensWithdrawAmount)
472472 let userAmountVirtualNew = (userAmountVirtual - shareTokensWithdrawAmount)
473473 if ((shareTokensWithdrawAmount > userStakedAmount))
474474 then throw("Withdraw amount more then user locked amount")
475475 else if ((accountBalance(shareTokensId) > totalShareAmount))
476476 then throw("Balance of share-token is lower than totalAmount")
477477 else {
478478 let uplp = if ((getString(Address(fromBase58String(pool)), "version") == "3.0.0"))
479479 then invoke(lpFarmingAddress, "updateUserInterest", [user, pool, (userStakedAmount + userLockedAmount)], nil)
480480 else 0
481481 if ((uplp == uplp))
482482 then [IntegerEntry((((pool + "_") + user) + kFarmUserLastInterest), farmInterest), IntegerEntry((((pool + "_") + user) + kBoostUserLastInterest), boostInterest), IntegerEntry((pool + kFarmLastInterest), farmInterest), IntegerEntry((pool + kBoostLastInterest), boostInterest), IntegerEntry((pool + kLastInterestHeight), height), IntegerEntry((((pool + "_") + user) + kUserShareTokensStaked), userStakedAmountNew), IntegerEntry((((pool + "_") + user) + kUserShareTokensVirtual), userAmountVirtualNew), IntegerEntry((pool + kShareTotalShareTokens), totalShareAmountNew), IntegerEntry((pool + kShareTokensVirtual), totalShareVirtualNew), IntegerEntry((((pool + "_") + user) + kAvailableSWOP), availableFundsNew), Reissue(SWOP, toTreasure, true), ScriptTransfer(farmingTreasureAddr, toTreasure, SWOP), ScriptTransfer(i.caller, shareTokensWithdrawAmount, shareTokensId)]
483483 else throw("Strict value is not equal to itself.")
484484 }
485485 })
486486
487487
488488 func calcClaim (i,pool,caller) = {
489489 let shareTokensId = fromBase58String(getStringValue(value(addressFromString(pool)), "share_asset_id"))
490490 let user = toString(caller)
491491 let shareTokenLocked = getTotalShareToken(pool)
492- let $t02299723079 = claimCalc(pool, user)
493- let farmInterest = $t02299723079._1
494- let boostInterest = $t02299723079._2
495- let claimAmount = $t02299723079._3
496- let toTreasure = $t02299723079._4
492+ let $t02300223084 = claimCalc(pool, user)
493+ let farmInterest = $t02300223084._1
494+ let boostInterest = $t02300223084._2
495+ let claimAmount = $t02300223084._3
496+ let toTreasure = $t02300223084._4
497497 let availableFund = (userAvailableSWOP(pool, user) + claimAmount)
498498 if ((accountBalance(shareTokensId) > shareTokenLocked))
499499 then throw("Balance of share-token is lower than totalAmount")
500500 else {
501501 let uTrans = if ((i.caller != this))
502502 then [ScriptTransfer(i.caller, availableFund, SWOP)]
503503 else nil
504504 $Tuple2(([IntegerEntry((((pool + "_") + user) + kFarmUserLastInterest), farmInterest), IntegerEntry((((pool + "_") + user) + kBoostUserLastInterest), boostInterest), IntegerEntry((pool + kFarmLastInterest), farmInterest), IntegerEntry((pool + kBoostLastInterest), boostInterest), IntegerEntry((pool + kLastInterestHeight), height), IntegerEntry((((pool + "_") + user) + kAvailableSWOP), 0), Reissue(SWOP, (toTreasure + availableFund), true), ScriptTransfer(farmingTreasureAddr, toTreasure, SWOP)] ++ uTrans), availableFund)
505505 }
506506 }
507507
508508
509509 @Callable(i)
510510 func init (earlyLP) = if (isDefined(getString(this, kSWOPid)))
511511 then throw("SWOP already initialized")
512512 else {
513513 let initAmount = 100000000000000
514514 let SWOPissue = Issue("SWOP", "SWOP protocol token", initAmount, 8, true)
515515 let SWOPid = calculateAssetId(SWOPissue)
516516 [BooleanEntry(kActive, true), Issue("SWOP", "SWOP protocol token", initAmount, 8, true), StringEntry(kSWOPid, toBase58String(SWOPid))]
517517 }
518518
519519
520520
521521 @Callable(i)
522522 func initPoolShareFarming (pool) = valueOrElse(isAdminCall(i), [IntegerEntry((pool + kShareTotalShareTokens), 0), IntegerEntry((pool + kFarmLastInterest), 0), IntegerEntry((pool + kBoostLastInterest), 0), IntegerEntry((pool + kLastInterestHeight), height)])
523523
524524
525525
526526 @Callable(i)
527527 func updatePoolInterest (pool) = valueOrElse(isActive(), if ((i.caller != govAddress))
528528 then throw("Only Governance can call this function")
529529 else {
530530 let user = toString(addressFromPublicKey(adminInvokePubKey))
531- let $t02495625030 = claimCalc(pool, user)
532- let farmInterest = $t02495625030._1
533- let boostInterest = $t02495625030._2
534- let boostLPinterest = $t02495625030._3
531+ let $t02496125035 = claimCalc(pool, user)
532+ let farmInterest = $t02496125035._1
533+ let boostInterest = $t02496125035._2
534+ let boostLPinterest = $t02496125035._3
535535 [IntegerEntry((pool + kFarmLastInterest), farmInterest), IntegerEntry((pool + kBoostLastInterest), boostInterest), IntegerEntry((pool + kLastInterestHeight), height)]
536536 })
537537
538538
539539
540540 @Callable(i)
541541 func lockShareTokens (pool,lockType) = valueOrElse(isActive(), calcLockShareTokens(i, i.caller, pool, lockType))
542542
543543
544544
545545 @Callable(i)
546546 func lockShareTokensFromPool (callerBytes,pool,lockType) = valueOrElse(isActive(), valueOrElse(isPoolCall(i, pool), calcLockShareTokens(i, Address(callerBytes), pool, lockType)))
547547
548548
549549
550550 @Callable(i)
551551 func lockStakedShareTokens (pool,lockType,lockAmount) = valueOrElse(isActive(), {
552552 let shareAssetId = getShareAssetId(pool)
553553 let user = toString(i.caller)
554554 let totalShare = getTotalShareToken(pool)
555555 let totalShareVirtual = valueOrElse(getInteger(this, (pool + kShareTokensVirtual)), totalShare)
556556 let userStakedAmount = valueOrElse(getInteger(this, (((pool + "_") + user) + kUserShareTokensStaked)), 0)
557557 let userLockedHeigt = valueOrElse(getInteger(this, (((pool + "_") + user) + kUserShareTokensLockedHeight)), 0)
558558 let userLockedAmount = valueOrElse(getInteger(this, (((pool + "_") + user) + kUserShareTokensLocked)), 0)
559559 let userAmountVirtual = valueOrElse(getInteger(this, (((pool + "_") + user) + kUserShareTokensVirtual)), userStakedAmount)
560560 let totalUserShareTokens = (userStakedAmount + userLockedAmount)
561- let $t02644926501 = getLockParams(lockType)
562- let lockPeriod = $t02644926501._1
563- let lockCoef = $t02644926501._2
561+ let $t02645426506 = getLockParams(lockType)
562+ let lockPeriod = $t02645426506._1
563+ let lockCoef = $t02645426506._2
564564 let lockWavesFee = getIntegerValue(this, kLockWavesFee)
565565 if ((getHeightFirstHarvest(pool) > height))
566566 then throw("You can't lock shareTokens till first harvest end.")
567567 else if ((0 >= lockType))
568568 then throw("lockType must be > 0")
569569 else if ((lockAmount > userStakedAmount))
570570 then throw(("You can't lock more than " + toString(userStakedAmount)))
571571 else if ((accountBalance(shareAssetId) > totalShare))
572572 then throw("Balance of share-token is lower than totalAmount")
573573 else if (if ((userLockedHeigt == 0))
574574 then if (if ((1 > size(i.payments)))
575575 then true
576576 else (i.payments[0].assetId != unit))
577577 then true
578578 else (lockWavesFee > i.payments[0].amount)
579579 else false)
580580 then throw((("You need to pay additional waves comission " + toString(lockWavesFee)) + "WAVES"))
581581 else if (if ((userLockedHeigt == 0))
582582 then (0 >= lockAmount)
583583 else false)
584584 then throw("lockAmount must be greater than 0")
585585 else if ((0 > lockAmount))
586586 then throw("lockAmount must be positive")
587587 else if ((userLockedHeigt > (height + lockPeriod)))
588588 then throw("You cannot lock sharetokens for a period less than what you have already locked")
589589 else {
590590 let userLockedAmountNew = (userLockedAmount + lockAmount)
591591 let userStakedAmountNew = (userStakedAmount - lockAmount)
592592 let userLockedHeigtNew = (height + lockPeriod)
593593 let userAmountVirtualNew = (fraction(userLockedAmountNew, lockCoef, lockBoostCoefScale) + userStakedAmountNew)
594- let $t02779127873 = claimCalc(pool, user)
595- let farmInterest = $t02779127873._1
596- let boostInterest = $t02779127873._2
597- let claimAmount = $t02779127873._3
598- let toTreasure = $t02779127873._4
594+ let $t02779627878 = claimCalc(pool, user)
595+ let farmInterest = $t02779627878._1
596+ let boostInterest = $t02779627878._2
597+ let claimAmount = $t02779627878._3
598+ let toTreasure = $t02779627878._4
599599 let availableFundsNew = (userAvailableSWOP(pool, user) + claimAmount)
600600 [IntegerEntry((((pool + "_") + user) + kUserShareTokensStaked), userStakedAmountNew), IntegerEntry((((pool + "_") + user) + kUserShareTokensLocked), userLockedAmountNew), IntegerEntry((((pool + "_") + user) + kUserShareTokensLockedHeight), userLockedHeigtNew), IntegerEntry((((pool + "_") + user) + kUserShareTokensLockedType), lockType), IntegerEntry((((pool + "_") + user) + kUserShareTokensVirtual), userAmountVirtualNew), IntegerEntry((pool + kShareTokensVirtual), ((totalShareVirtual - userAmountVirtual) + userAmountVirtualNew)), IntegerEntry((((pool + "_") + user) + kFarmUserLastInterest), farmInterest), IntegerEntry((((pool + "_") + user) + kBoostUserLastInterest), boostInterest), IntegerEntry((pool + kFarmLastInterest), farmInterest), IntegerEntry((pool + kBoostLastInterest), boostInterest), IntegerEntry((pool + kLastInterestHeight), height), IntegerEntry((((pool + "_") + user) + kAvailableSWOP), availableFundsNew), Reissue(SWOP, toTreasure, true), ScriptTransfer(farmingTreasureAddr, toTreasure, SWOP)]
601601 }
602602 })
603603
604604
605605
606606 @Callable(i)
607607 func unlockUserLock (pool,user) = valueOrElse(isActive(), {
608608 let lockWavesFee = getIntegerValue(this, kLockWavesFee)
609609 let userLockedHeigt = valueOrErrorMessage(getInteger(this, (((pool + "_") + user) + kUserShareTokensLockedHeight)), (((("There is no pool " + pool) + " or user ") + user) + "with lock"))
610610 let totalShareVirtual = getIntegerValue(this, (pool + kShareTokensVirtual))
611611 let userStakedAmount = valueOrElse(getInteger(this, (((pool + "_") + user) + kUserShareTokensStaked)), 0)
612612 let userLockedAmount = valueOrElse(getInteger(this, (((pool + "_") + user) + kUserShareTokensLocked)), 0)
613613 let userAmountVirtual = valueOrElse(getInteger(this, (((pool + "_") + user) + kUserShareTokensVirtual)), userStakedAmount)
614614 if ((userLockedHeigt > height))
615615 then throw(("You can't unlock sharetokens till " + toString(userLockedHeigt)))
616616 else {
617617 let userStakedAmountNew = (userStakedAmount + userLockedAmount)
618- let $t02995030032 = claimCalc(pool, user)
619- let farmInterest = $t02995030032._1
620- let boostInterest = $t02995030032._2
621- let claimAmount = $t02995030032._3
622- let toTreasure = $t02995030032._4
618+ let $t02995530037 = claimCalc(pool, user)
619+ let farmInterest = $t02995530037._1
620+ let boostInterest = $t02995530037._2
621+ let claimAmount = $t02995530037._3
622+ let toTreasure = $t02995530037._4
623623 let availableFundsNew = (userAvailableSWOP(pool, user) + claimAmount)
624624 [IntegerEntry((((pool + "_") + user) + kFarmUserLastInterest), farmInterest), IntegerEntry((((pool + "_") + user) + kBoostUserLastInterest), boostInterest), IntegerEntry((pool + kFarmLastInterest), farmInterest), IntegerEntry((pool + kBoostLastInterest), boostInterest), IntegerEntry((pool + kLastInterestHeight), height), IntegerEntry((((pool + "_") + user) + kUserShareTokensStaked), userStakedAmountNew), IntegerEntry((((pool + "_") + user) + kUserShareTokensVirtual), userStakedAmountNew), IntegerEntry((pool + kShareTokensVirtual), ((totalShareVirtual - userAmountVirtual) + userStakedAmountNew)), IntegerEntry((((pool + "_") + user) + kAvailableSWOP), availableFundsNew), DeleteEntry((((pool + "_") + user) + kUserShareTokensLocked)), DeleteEntry((((pool + "_") + user) + kUserShareTokensLockedHeight)), DeleteEntry((((pool + "_") + user) + kUserShareTokensLockedType)), Reissue(SWOP, toTreasure, true), ScriptTransfer(farmingTreasureAddr, toTreasure, SWOP), ScriptTransfer(i.caller, lockWavesFee, unit)]
625+ }
626+ })
627+
628+
629+
630+@Callable(i)
631+func unlockStableLock (user) = valueOrElse(isActive(), {
632+ let allowedCaller = Address(base58'3MpNDxa2QpcAzbaLaV6qacbuASgtH7wcric')
633+ let stablePools = ["3MpygN8qm376tUAHB6mhC5BxG5NKYortiyX", "3MvMXhKFMPz4BuZj9Jr9UysuxbWFKRJZgb3"]
634+ let lockWavesFee = getIntegerValue(this, kLockWavesFee)
635+ if ((i.caller != allowedCaller))
636+ then throw((("Only " + toString(allowedCaller)) + "can call this function"))
637+ else {
638+ func unlock (a,pool) = {
639+ let $t03178531826 = a
640+ let entries = $t03178531826._1
641+ let toTreasureSum = $t03178531826._2
642+ let feesSum = $t03178531826._3
643+ let userLockedHeigt = valueOrElse(getInteger(this, (((pool + "_") + user) + kUserShareTokensLockedHeight)), 0)
644+ if ((userLockedHeigt == 0))
645+ then a
646+ else {
647+ let totalShareVirtual = getIntegerValue(this, (pool + kShareTokensVirtual))
648+ let userStakedAmount = valueOrElse(getInteger(this, (((pool + "_") + user) + kUserShareTokensStaked)), 0)
649+ let userLockedAmount = valueOrElse(getInteger(this, (((pool + "_") + user) + kUserShareTokensLocked)), 0)
650+ let userAmountVirtual = valueOrElse(getInteger(this, (((pool + "_") + user) + kUserShareTokensVirtual)), userStakedAmount)
651+ let userStakedAmountNew = (userStakedAmount + userLockedAmount)
652+ let $t03246732549 = claimCalc(pool, user)
653+ let farmInterest = $t03246732549._1
654+ let boostInterest = $t03246732549._2
655+ let claimAmount = $t03246732549._3
656+ let toTreasure = $t03246732549._4
657+ let availableFundsNew = (userAvailableSWOP(pool, user) + claimAmount)
658+ $Tuple3((entries ++ [IntegerEntry((((pool + "_") + user) + kFarmUserLastInterest), farmInterest), IntegerEntry((((pool + "_") + user) + kBoostUserLastInterest), boostInterest), IntegerEntry((pool + kFarmLastInterest), farmInterest), IntegerEntry((pool + kBoostLastInterest), boostInterest), IntegerEntry((pool + kLastInterestHeight), height), IntegerEntry((((pool + "_") + user) + kUserShareTokensStaked), userStakedAmountNew), IntegerEntry((((pool + "_") + user) + kUserShareTokensVirtual), userStakedAmountNew), IntegerEntry((pool + kShareTokensVirtual), ((totalShareVirtual - userAmountVirtual) + userStakedAmountNew)), IntegerEntry((((pool + "_") + user) + kAvailableSWOP), availableFundsNew), DeleteEntry((((pool + "_") + user) + kUserShareTokensLocked)), DeleteEntry((((pool + "_") + user) + kUserShareTokensLockedHeight)), DeleteEntry((((pool + "_") + user) + kUserShareTokensLockedType))]), (toTreasureSum + toTreasure), (feesSum + lockWavesFee))
659+ }
660+ }
661+
662+ let $t03368433757 = {
663+ let $l = stablePools
664+ let $s = size($l)
665+ let $acc0 = $Tuple3(nil, 0, 0)
666+ func $f0_1 ($a,$i) = if (($i >= $s))
667+ then $a
668+ else unlock($a, $l[$i])
669+
670+ func $f0_2 ($a,$i) = if (($i >= $s))
671+ then $a
672+ else throw("List size exceeds 2")
673+
674+ $f0_2($f0_1($f0_1($acc0, 0), 1), 2)
675+ }
676+ let entries = $t03368433757._1
677+ let toTresure = $t03368433757._2
678+ let fees = $t03368433757._3
679+ if ((size(entries) == 0))
680+ then throw("Nothing to unlock")
681+ else ([Reissue(SWOP, toTresure, true), ScriptTransfer(farmingTreasureAddr, toTresure, SWOP), ScriptTransfer(moneyBoxAddress, fees, unit)] ++ entries)
625682 }
626683 })
627684
628685
629686
630687 @Callable(i)
631688 func withdrawShareTokens (pool,shareTokensWithdrawAmount) = valueOrElse(isActive(), calcWithdrawShareTokens(i, i.caller, pool, shareTokensWithdrawAmount))
632689
633690
634691
635692 @Callable(i)
636693 func withdrawShareTokensFromPool (callerBytes,pool,shareTokensWithdrawAmount) = valueOrElse(isActive(), valueOrElse(isPoolCall(i, pool), calcWithdrawShareTokens(i, Address(callerBytes), pool, shareTokensWithdrawAmount)))
637694
638695
639696
640697 @Callable(i)
641698 func claim (pool) = valueOrElse(isActive(), {
642699 let r = calcClaim(i, pool, i.caller)
643700 if ((r._2 == 0))
644701 then throw("You have 0 available SWOP")
645702 else r
646703 })
647704
648705
649706
650707 @Callable(i)
651708 func claimInternal (pool,caller) = valueOrElse(isActive(), valueOrElse(isSelfCall(i), calcClaim(i, pool, Address(caller))))
652709
653710
654711
655712 @Callable(i)
656713 func claimAndStake (pool) = valueOrElse(isActive(), {
657714 let claimAmount = {
658715 let @ = invoke(this, "claimInternal", [pool, i.caller.bytes], nil)
659716 if ($isInstanceOf(@, "Int"))
660717 then @
661718 else throw(($getType(@) + " couldn't be cast to Int"))
662719 }
663720 if ((claimAmount == claimAmount))
664721 then if ((claimAmount == 0))
665722 then throw("You have 0 available SWOP")
666723 else {
667724 let stakeToGov = invoke(govAddress, "lockSWOPFromFarming", nil, [AttachedPayment(SWOP, claimAmount)])
668725 if ((stakeToGov == stakeToGov))
669726 then nil
670727 else throw("Strict value is not equal to itself.")
671728 }
672729 else throw("Strict value is not equal to itself.")
673730 })
674731
675732
676733
677734 @Callable(i)
678735 func claimAll (pools) = valueOrElse(isActive(), {
679736 func claimInv (claimTotal,pool) = {
680737 let claimAmount = {
681738 let @ = invoke(this, "claimInternal", [pool, i.caller.bytes], nil)
682739 if ($isInstanceOf(@, "Int"))
683740 then @
684741 else throw(($getType(@) + " couldn't be cast to Int"))
685742 }
686743 if ((claimAmount == claimAmount))
687744 then (claimTotal + claimAmount)
688745 else throw("Strict value is not equal to itself.")
689746 }
690747
691748 let claimTotal = {
692749 let $l = pools
693750 let $s = size($l)
694751 let $acc0 = 0
695752 func $f0_1 ($a,$i) = if (($i >= $s))
696753 then $a
697754 else claimInv($a, $l[$i])
698755
699756 func $f0_2 ($a,$i) = if (($i >= $s))
700757 then $a
701758 else throw("List size exceeds 60")
702759
703760 $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)
704761 }
705762 if ((claimTotal == 0))
706763 then throw("You have 0 available SWOP")
707764 else [ScriptTransfer(i.caller, claimTotal, SWOP)]
708765 })
709766
710767
711768
712769 @Callable(i)
713770 func claimAllAndStake (pools) = valueOrElse(isActive(), {
714771 func claimInv (claimTotal,pool) = {
715772 let claimAmount = {
716773 let @ = invoke(this, "claimInternal", [pool, i.caller.bytes], nil)
717774 if ($isInstanceOf(@, "Int"))
718775 then @
719776 else throw(($getType(@) + " couldn't be cast to Int"))
720777 }
721778 if ((claimAmount == claimAmount))
722779 then (claimTotal + claimAmount)
723780 else throw("Strict value is not equal to itself.")
724781 }
725782
726783 let claimTotal = {
727784 let $l = pools
728785 let $s = size($l)
729786 let $acc0 = 0
730787 func $f0_1 ($a,$i) = if (($i >= $s))
731788 then $a
732789 else claimInv($a, $l[$i])
733790
734791 func $f0_2 ($a,$i) = if (($i >= $s))
735792 then $a
736793 else throw("List size exceeds 60")
737794
738795 $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)
739796 }
740797 if ((claimTotal == 0))
741798 then throw("You have 0 available SWOP")
742799 else {
743800 let stakeToGov = invoke(govAddress, "lockSWOPFromFarming", nil, [AttachedPayment(SWOP, claimTotal)])
744801 if ((stakeToGov == stakeToGov))
745802 then nil
746803 else throw("Strict value is not equal to itself.")
747804 }
748805 })
749806
750807
751808
752809 @Callable(i)
753810 func updateUserBoostInterest (pool,user) = valueOrElse(isActive(), if ((i.caller != votingAddress))
754811 then throw("Only voiting can call this function")
755812 else {
756- let $t03350633588 = claimCalc(pool, user)
757- let farmInterest = $t03350633588._1
758- let boostInterest = $t03350633588._2
759- let claimAmount = $t03350633588._3
760- let toTreasure = $t03350633588._4
813+ let $t03632136403 = claimCalc(pool, user)
814+ let farmInterest = $t03632136403._1
815+ let boostInterest = $t03632136403._2
816+ let claimAmount = $t03632136403._3
817+ let toTreasure = $t03632136403._4
761818 let availableFundsNew = (userAvailableSWOP(pool, user) + claimAmount)
762819 [IntegerEntry((((pool + "_") + user) + kFarmUserLastInterest), farmInterest), IntegerEntry((((pool + "_") + user) + kBoostUserLastInterest), boostInterest), IntegerEntry((pool + kFarmLastInterest), farmInterest), IntegerEntry((pool + kBoostLastInterest), boostInterest), IntegerEntry((pool + kLastInterestHeight), height), IntegerEntry((((pool + "_") + user) + kAvailableSWOP), availableFundsNew), Reissue(SWOP, toTreasure, true), ScriptTransfer(farmingTreasureAddr, toTreasure, SWOP)]
763820 })
764821
765822
766823
767824 @Callable(i)
768825 func shutdown () = valueOrElse(isAdminCall(i), if (!(active))
769826 then throw(("DApp is already suspended. Cause: " + valueOrElse(getString(this, kCause), "the cause wasn't specified")))
770827 else suspend("Paused by admin"))
771828
772829
773830
774831 @Callable(i)
775832 func activate () = valueOrElse(isAdminCall(i), if (active)
776833 then throw("DApp is already active")
777834 else [BooleanEntry(kActive, true), DeleteEntry(kCause)])
778835
779836
780837 @Verifier(tx)
781838 func verify () = match tx {
782839 case _ =>
783840 let adminPubKey1Signed = if (sigVerify(tx.bodyBytes, tx.proofs[0], adminPubKey1))
784841 then 1
785842 else 0
786843 let adminPubKey2Signed = if (sigVerify(tx.bodyBytes, tx.proofs[1], adminPubKey2))
787844 then 1
788845 else 0
789846 let adminPubKey3Signed = if (sigVerify(tx.bodyBytes, tx.proofs[2], adminPubKey3))
790847 then 1
791848 else 0
792849 (((adminPubKey1Signed + adminPubKey2Signed) + adminPubKey3Signed) >= 2)
793850 }
794851

github/deemru/w8io/169f3d6 
121.19 ms