tx · 6g952GSssKSzbLGRs2ZBcD2pBDjE3bHZb6JnRpKpbc6h

3MsjAKkxKjxVU4gC1BpJ1jKmAZyRufUCErC:  -0.01400000 Waves

2021.05.28 11:47 [1545295] smart account 3MsjAKkxKjxVU4gC1BpJ1jKmAZyRufUCErC > SELF 0.00000000 Waves

{ "type": 13, "id": "6g952GSssKSzbLGRs2ZBcD2pBDjE3bHZb6JnRpKpbc6h", "fee": 1400000, "feeAssetId": null, "timestamp": 1622191705463, "version": 2, "chainId": 84, "sender": "3MsjAKkxKjxVU4gC1BpJ1jKmAZyRufUCErC", "senderPublicKey": "FQ5JNhUjFS3Ty3nSykXrGWHDt4NvXJDCv4JQiJ3dXmKa", "proofs": [ "YewTCM91EQXKM4srf4jTt3pfJDB3J8qCRoxiXbFRQLfFxNYVEjpsHs2zAGS4mcGXmV1UkS8RJaKuD4kecwviT1h" ], "script": "base64:AAIEAAAAAAAAACEIAhIDCgEIEgMKAQgSAwoBCBIDCgEIEgQKAggBEgMKAQgAAABVAAAAAAxhZG1pblB1YktleTEBAAAAIATPdeVk0MEPTme5HxNkxBoN6oQkQjF9M5BdQFgKnZNKAAAAAAxhZG1pblB1YktleTIBAAAAIATPdeVk0MEPTme5HxNkxBoN6oQkQjF9M5BdQFgKnZNKAAAAAAxhZG1pblB1YktleTMBAAAAIATPdeVk0MEPTme5HxNkxBoN6oQkQjF9M5BdQFgKnZNKAAAAABRrZXlTaGFyZVRva2Vuc0xvY2tlZAIAAAAaX3RvdGFsX3NoYXJlX3Rva2Vuc19sb2NrZWQAAAAAC2tTaGFyZUxpbWl0AgAAABxzaGFyZV9saW1pdF9vbl9maXJzdF9oYXJ2ZXN0AAAAAAlrZXlBY3RpdmUCAAAABmFjdGl2ZQAAAAAca2V5UmV3YXJkUG9vbEZyYWN0aW9uQ3VycmVudAIAAAAdX2N1cnJlbnRfcG9vbF9mcmFjdGlvbl9yZXdhcmQAAAAAHWtleVJld2FyZFBvb2xGcmFjdGlvblByZXZpb3VzA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5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXm10Q+x", "height": 1545295, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 6uoscEBYE8drNmQMLX4JNScjHZTdct89nFPLHNfw7cab Next: F8J4gDDE1dNJMtToxzBBYsf3mFY2h29ai3qV5uuCnhFR Diff:
OldNewDifferences
88 let adminPubKey3 = base58'Kn7NpzaG12dLZgcHf2ipUftU6hbJygmrhFqQYE4B7ZK'
99
1010 let keyShareTokensLocked = "_total_share_tokens_locked"
11+
12+let kShareLimit = "share_limit_on_first_harvest"
13+
14+let keyActive = "active"
1115
1216 let keyRewardPoolFractionCurrent = "_current_pool_fraction_reward"
1317
4953
5054 let kHarvestPoolActiveVoteStrucVoting = "_harvest_pool_activeVote_struc"
5155
52-let kHarvestUserPoolActiveVoteStrucVoting = "_harvest_user_pool_ActiveVote_struc"
56+let kHarvestUserPoolActiveVoteStrucVoting = "_harvest_user_pool_activeVote_struc"
5357
5458 let keyLimitShareFirstHarvest = "share_limit_on_first_harvest"
5559
6670 let wallet = Address(base58'3NAGTtZz6WpupSN89NZD5rMZwwziZEg4Kx4')
6771
6872 let votingAddress = Address(base58'3N6CYoCsxrcXKe75pQvvV3JqJrwJjm1t4QN')
69-
70-let swopUsdnAddress = Address(base58'3N4kooq5242vPtJzBDrmukK6ptrjRRjEBWi')
71-
72-let wavesUsdnAddress = Address(base58'3MxtJmAsKsfof4X28MJPBtvRUyz1PbCnbhF')
7373
7474 let adminIncreaseInterestAddress = Address(base58'3NAGTtZz6WpupSN89NZD5rMZwwziZEg4Kx4')
7575
127127
128128 let minVotePower = valueOrErrorMessage(getInteger(votingAddress, kMinVotePower), "Empty kMinVotePower")
129129
130+let isActive = getBooleanValue(this, keyActive)
131+
130132 let currPeriod = (basePeriod + ((height - startHeight) / periodLength))
131133
132134 func getLimitToken (pool) = valueOrElse(getIntegerValue(pool, keyLimitShareFirstHarvest), 0)
168170
169171
170172 func getBalanceB (pool) = valueOrErrorMessage(getInteger(pool, keyBalancecpmmB), ("No data on the key: " + keyBalancecpmmB))
173+
174+
175+func getShareLimitToken (pool) = valueOrErrorMessage(getInteger(pool, kShareLimit), ("No data on the key: " + kShareLimit))
171176
172177
173178 func getTotalShareTokenLocked (pool) = valueOrErrorMessage(getInteger(this, (pool + keyShareTokensLocked)), (("No data on the key: " + pool) + keyShareTokensLocked))
266271 let shareAssetId = getShareAssetId(pool)
267272 let scaleValue = calcScaleValue(SWOP, shareAssetId)
268273 let shareTokenLocked = getTotalShareTokenLocked(pool)
269- let $t01087410939 = getLastInterestInfo(pool)
270- let lastInterestHeight = $t01087410939._1
271- let lastInterest = $t01087410939._2
272- let $t01094411032 = rewardInfo(pool)
273- let currentRewardPerBlock = $t01094411032._1
274- let rewardUpdateHeight = $t01094411032._2
275- let previousRewardPerBlock = $t01094411032._3
276- let $t01103711116 = getUserInterestInfo(pool, caller)
277- let userLastInterest = $t01103711116._1
278- let userShareTokensAmount = $t01103711116._2
274+ let $t01092410989 = getLastInterestInfo(pool)
275+ let lastInterestHeight = $t01092410989._1
276+ let lastInterest = $t01092410989._2
277+ let $t01099411082 = rewardInfo(pool)
278+ let currentRewardPerBlock = $t01099411082._1
279+ let rewardUpdateHeight = $t01099411082._2
280+ let previousRewardPerBlock = $t01099411082._3
281+ let $t01108711166 = getUserInterestInfo(pool, caller)
282+ let userLastInterest = $t01108711166._1
283+ let userShareTokensAmount = $t01108711166._2
279284 let currentInterest = calcInterest(lastInterestHeight, rewardUpdateHeight, lastInterest, currentRewardPerBlock, shareTokenLocked, previousRewardPerBlock, shareAssetId, scaleValue, pmtAmount)
280285 let claimAmount = fraction(userShareTokensAmount, (currentInterest - userLastInterest), scaleValue)
281286 let userNewInterest = currentInterest
284289
285290
286291 func calculateProtocolReward (pool) = {
287- let $t01187111936 = getLastInterestInfo(pool)
288- let lastInterestHeight = $t01187111936._1
289- let lastInterest = $t01187111936._2
290- let $t01194212030 = rewardInfo(pool)
291- let currentRewardPerBlock = $t01194212030._1
292- let rewardUpdateHeight = $t01194212030._2
293- let previousRewardPerBlock = $t01194212030._3
292+ let $t01163911704 = getLastInterestInfo(pool)
293+ let lastInterestHeight = $t01163911704._1
294+ let lastInterest = $t01163911704._2
295+ let $t01170911797 = rewardInfo(pool)
296+ let currentRewardPerBlock = $t01170911797._1
297+ let rewardUpdateHeight = $t01170911797._2
298+ let previousRewardPerBlock = $t01170911797._3
294299 let shareTokenLocked = getTotalShareTokenLocked(pool)
295300 if ((shareTokenLocked == 0))
296301 then 0
330335 let initAmount = 100000000000000
331336 let SWOPissue = Issue("SWOP", "SWOP protocol token", initAmount, 8, true)
332337 let SWOPid = calculateAssetId(SWOPissue)
333-[Issue("SWOP", "SWOP protocol token", initAmount, 8, true), StringEntry(keySWOPid, toBase58String(SWOPid))]
338+ if (isDefined(getBoolean(this, keyActive)))
339+ then throw("DApp is already active")
340+ else [BooleanEntry(keyActive, true), Issue("SWOP", "SWOP protocol token", initAmount, 8, true), StringEntry(keySWOPid, toBase58String(SWOPid))]
334341 }
335342
336343
338345 @Callable(i)
339346 func initPoolShareFarming (pool) = if ((i.caller != this))
340347 then throw("Only the DApp itself can call this function")
341- else {
342- let $t01410214182 = rewardInfo(pool)
343- let currentReward = $t01410214182._1
344- let rewardUpdateHeight = $t01410214182._2
345- let previousRewardPerBlock = $t01410214182._3
348+ else if (!(isActive))
349+ then throw("DApp is inactive at this moment")
350+ else {
351+ let $t01375413834 = rewardInfo(pool)
352+ let currentReward = $t01375413834._1
353+ let rewardUpdateHeight = $t01375413834._2
354+ let previousRewardPerBlock = $t01375413834._3
346355 [IntegerEntry((pool + keyShareTokensLocked), 0), IntegerEntry((pool + keyLastInterest), 0), IntegerEntry((pool + keyLastInterestHeight), height)]
347- }
356+ }
348357
349358
350359
351360 @Callable(i)
352361 func updatePoolInterest (pool) = if ((i.caller != wallet))
353362 then throw("Only the Admin itself can call this function")
354- else {
355- let $t01457314693 = claimCalc(pool, adminIncreaseInterestAddress, 0)
356- let userNewInterest = $t01457314693._1
357- let currentInterest = $t01457314693._2
358- let claimAmount = $t01457314693._3
359- let userShareTokensAmount = $t01457314693._4
360- let $t01469814778 = rewardInfo(pool)
361- let currentReward = $t01469814778._1
362- let rewardUpdateHeight = $t01469814778._2
363- let previousRewardPerBlock = $t01469814778._3
363+ else if (!(isActive))
364+ then throw("DApp is inactive at this moment")
365+ else {
366+ let $t01424814368 = claimCalc(pool, adminIncreaseInterestAddress, 0)
367+ let userNewInterest = $t01424814368._1
368+ let currentInterest = $t01424814368._2
369+ let claimAmount = $t01424814368._3
370+ let userShareTokensAmount = $t01424814368._4
371+ let $t01437314453 = rewardInfo(pool)
372+ let currentReward = $t01437314453._1
373+ let rewardUpdateHeight = $t01437314453._2
374+ let previousRewardPerBlock = $t01437314453._3
364375 [IntegerEntry((pool + keyShareTokensLocked), 0), IntegerEntry((pool + keyLastInterest), userNewInterest), IntegerEntry((pool + keyLastInterestHeight), height)]
365- }
376+ }
366377
367378
368379
369380 @Callable(i)
370381 func lockShareTokens (pool) = {
371- let $t01502515100 = $Tuple2(i.payments[0].amount, i.payments[0].assetId)
372- let pmtAmount = $t01502515100._1
373- let pmtAssetId = $t01502515100._2
374- let $t01510515178 = getAssetInfo(pmtAssetId)
375- let pmtStrAssetId = $t01510515178._1
376- let pmtAssetName = $t01510515178._2
377- let pmtDecimals = $t01510515178._3
378- let $t01518315291 = claimCalc(pool, i.caller, pmtAmount)
379- let userNewInterest = $t01518315291._1
380- let currentInterest = $t01518315291._2
381- let claimAmount = $t01518315291._3
382- let userShareTokensAmount = $t01518315291._4
382+ let $t01469914774 = $Tuple2(i.payments[0].amount, i.payments[0].assetId)
383+ let pmtAmount = $t01469914774._1
384+ let pmtAssetId = $t01469914774._2
385+ let $t01477914852 = getAssetInfo(pmtAssetId)
386+ let pmtStrAssetId = $t01477914852._1
387+ let pmtAssetName = $t01477914852._2
388+ let pmtDecimals = $t01477914852._3
389+ let $t01485714965 = claimCalc(pool, i.caller, pmtAmount)
390+ let userNewInterest = $t01485714965._1
391+ let currentInterest = $t01485714965._2
392+ let claimAmount = $t01485714965._3
393+ let userShareTokensAmount = $t01485714965._4
383394 let userShareAmountNew = (userShareTokensAmount + pmtAmount)
384395 let availableFundsNew = (userAvailableSWOP(pool, i.caller) + claimAmount)
385396 let totalShareAmount = getTotalShareTokenLocked(pool)
389400 let baseEntry = [IntegerEntry((((pool + "_") + toString(i.caller)) + keyUserLastInterest), userNewInterest), IntegerEntry((((pool + "_") + toString(i.caller)) + keyUserShareTokensLocked), userShareAmountNew), IntegerEntry((pool + keyShareTokensLocked), totalShareAmountNew), IntegerEntry((pool + keyLastInterest), currentInterest), IntegerEntry((pool + keyLastInterestHeight), height), IntegerEntry((((pool + "_") + toString(i.caller)) + keyUserSWOPClaimedAmount), userClaimedAmountNew), IntegerEntry((((pool + "_") + toString(i.caller)) + keyUserSWOPLastClaimedAmount), claimAmount), IntegerEntry((((pool + "_") + toString(i.caller)) + keyAvailableSWOP), availableFundsNew)]
390401 if ((0 >= pmtAmount))
391402 then throw("You can't lock token")
392- else if (!(checkPmtAssetIdCorrect(pool, pmtAssetId)))
393- then throw("Incorrect pmtAssetId")
394- else if (if (isFirstHarvest(Address(fromBase58String(pool))))
395- then (height > (getHeightFirstHarvest(Address(fromBase58String(pool))) * periodLength))
396- else false)
397- then {
398- let amountOfVoting = split(getStringValue(votingAddress, (((toString(this) + "_") + pool) + "_user_pool_struc")), "_")
399- let amountPoolStract = split(getStringValue(votingAddress, (((toString(this) + "_") + pool) + "_pool_struc")), "_")
400- let amountActiveVoteUserPoolStract = split(getStringValue(votingAddress, (((toString(this) + "_") + pool) + kHarvestUserPoolActiveVoteStrucVoting)), "_")
401- let amountPoolActiveVoteStract = split(getStringValue(votingAddress, (pool + kHarvestPoolActiveVoteStrucVoting)), "_")
402- let userShareTokenLocked = userShareTokensAmount
403- let userPoolActiveVote = if ((toString(currPeriod) == amountOfVoting[2]))
404- then valueOrElse(parseInt(amountActiveVoteUserPoolStract[0]), 0)
405- else valueOrElse(parseInt(amountOfVoting[0]), 0)
406- let poolActiveVote = if ((toString(currPeriod) == amountPoolStract[2]))
407- then valueOrElse(parseInt(amountPoolActiveVoteStract[0]), 0)
408- else valueOrElse(parseInt(amountPoolStract[0]), 0)
409- let protocolReward = calculateProtocolReward(pool)
410- if ((parseInt(amountOfVoting[1]) != 0))
411- then {
412- let shareToken = (fraction(getTotalShareTokenLocked(pool), userPoolActiveVote, poolActiveVote) - userShareTokenLocked)
413- if ((shareToken > 0))
414- then if ((totalShareAmountNew >= shareToken))
415- then baseEntry
416- else throw(("You maximum share token is " + toString(shareToken)))
417- else throw("You can't share token")
418- }
419- else throw("Your amount of token less than 0")
420- }
421- else baseEntry
403+ else if (!(isActive))
404+ then throw("DApp is inactive at this moment")
405+ else if (!(checkPmtAssetIdCorrect(pool, pmtAssetId)))
406+ then throw("Incorrect pmtAssetId")
407+ else if (if (isFirstHarvest(Address(fromBase58String(pool))))
408+ then (height > (getHeightFirstHarvest(Address(fromBase58String(pool))) * periodLength))
409+ else false)
410+ then {
411+ let amountOfVoting = split(getStringValue(votingAddress, (((toString(i.caller) + "_") + pool) + "_user_pool_struc")), "_")
412+ let amountPoolStract = split(getStringValue(votingAddress, (pool + "_pool_struc")), "_")
413+ let amountActiveVoteUserPoolStract = split(getStringValue(votingAddress, (((toString(i.caller) + "_") + pool) + kHarvestUserPoolActiveVoteStrucVoting)), "_")
414+ let amountPoolActiveVoteStract = split(getStringValue(votingAddress, (pool + kHarvestPoolActiveVoteStrucVoting)), "_")
415+ let userShareTokenLocked = userShareTokensAmount
416+ let userPoolActiveVote = if ((toString(currPeriod) == amountOfVoting[2]))
417+ then valueOrElse(parseInt(amountActiveVoteUserPoolStract[0]), 0)
418+ else valueOrElse(parseInt(amountOfVoting[0]), 0)
419+ let poolActiveVote = if ((toString(currPeriod) == amountPoolStract[2]))
420+ then valueOrElse(parseInt(amountPoolActiveVoteStract[0]), 0)
421+ else valueOrElse(parseInt(amountPoolStract[0]), 0)
422+ let protocolReward = calculateProtocolReward(pool)
423+ if ((parseInt(amountOfVoting[1]) != 0))
424+ then {
425+ let shareToken = (fraction(getShareLimitToken(addressFromStringValue(pool)), userPoolActiveVote, poolActiveVote) - userShareTokenLocked)
426+ if ((shareToken > 0))
427+ then if ((totalShareAmount == 0))
428+ then (baseEntry ++ [ScriptTransfer(wallet, protocolReward, SWOP)])
429+ else if ((shareToken >= pmtAmount))
430+ then baseEntry
431+ else throw(("You maximum share token is " + toString(shareToken)))
432+ else throw("You can't share token")
433+ }
434+ else throw("Your amount of token less than 0")
435+ }
436+ else baseEntry
422437 }
423438
424439
426441 @Callable(i)
427442 func withdrawShareTokens (pool,shareTokensWithdrawAmount) = {
428443 let shareTokensId = fromBase58String(getStringValue(value(addressFromString(pool)), "share_asset_id"))
429- let $t01882718927 = claimCalc(pool, i.caller, 1)
430- let userNewInterest = $t01882718927._1
431- let currentInterest = $t01882718927._2
432- let claimAmount = $t01882718927._3
433- let userShareTokensAmount = $t01882718927._4
444+ let $t01863218732 = claimCalc(pool, i.caller, 1)
445+ let userNewInterest = $t01863218732._1
446+ let currentInterest = $t01863218732._2
447+ let claimAmount = $t01863218732._3
448+ let userShareTokensAmount = $t01863218732._4
434449 let userShareAmountNew = (userShareTokensAmount - shareTokensWithdrawAmount)
435450 let availableFundsNew = (userAvailableSWOP(pool, i.caller) + claimAmount)
436451 let totalShareAmount = getTotalShareTokenLocked(pool)
439454 let userClaimedAmountNew = (userClaimedAmount + claimAmount)
440455 if ((shareTokensWithdrawAmount > userShareTokensAmount))
441456 then throw("Withdraw amount more then user locked amount")
442- else [IntegerEntry((((pool + "_") + toString(i.caller)) + keyUserLastInterest), userNewInterest), IntegerEntry((((pool + "_") + toString(i.caller)) + keyUserShareTokensLocked), userShareAmountNew), IntegerEntry((pool + keyLastInterest), currentInterest), IntegerEntry((pool + keyLastInterestHeight), height), IntegerEntry((pool + keyShareTokensLocked), totalShareAmountNew), IntegerEntry((((pool + "_") + toString(i.caller)) + keyAvailableSWOP), availableFundsNew), IntegerEntry((((pool + "_") + toString(i.caller)) + keyUserSWOPClaimedAmount), userClaimedAmountNew), IntegerEntry((((pool + "_") + toString(i.caller)) + keyUserSWOPLastClaimedAmount), claimAmount), ScriptTransfer(i.caller, shareTokensWithdrawAmount, shareTokensId)]
457+ else if (!(isActive))
458+ then throw("DApp is inactive at this moment")
459+ else [IntegerEntry((((pool + "_") + toString(i.caller)) + keyUserLastInterest), userNewInterest), IntegerEntry((((pool + "_") + toString(i.caller)) + keyUserShareTokensLocked), userShareAmountNew), IntegerEntry((pool + keyLastInterest), currentInterest), IntegerEntry((pool + keyLastInterestHeight), height), IntegerEntry((pool + keyShareTokensLocked), totalShareAmountNew), IntegerEntry((((pool + "_") + toString(i.caller)) + keyAvailableSWOP), availableFundsNew), IntegerEntry((((pool + "_") + toString(i.caller)) + keyUserSWOPClaimedAmount), userClaimedAmountNew), IntegerEntry((((pool + "_") + toString(i.caller)) + keyUserSWOPLastClaimedAmount), claimAmount), ScriptTransfer(i.caller, shareTokensWithdrawAmount, shareTokensId)]
443460 }
444461
445462
447464 @Callable(i)
448465 func claim (pool) = {
449466 let shareTokenLocked = getTotalShareTokenLocked(pool)
450- let $t02042020485 = getLastInterestInfo(pool)
451- let lastInterestHeight = $t02042020485._1
452- let lastInterest = $t02042020485._2
453- let $t02049020579 = rewardInfo(pool)
454- let currentRewardPerBlock = $t02049020579._1
455- let rewardUpdateHeight = $t02049020579._2
456- let previousRewardPerBlock = $t02049020579._3
457- let $t02058420684 = claimCalc(pool, i.caller, 1)
458- let userNewInterest = $t02058420684._1
459- let currentInterest = $t02058420684._2
460- let claimAmount = $t02058420684._3
461- let userShareTokensAmount = $t02058420684._4
467+ let $t02033120396 = getLastInterestInfo(pool)
468+ let lastInterestHeight = $t02033120396._1
469+ let lastInterest = $t02033120396._2
470+ let $t02040120490 = rewardInfo(pool)
471+ let currentRewardPerBlock = $t02040120490._1
472+ let rewardUpdateHeight = $t02040120490._2
473+ let previousRewardPerBlock = $t02040120490._3
474+ let $t02049520595 = claimCalc(pool, i.caller, 1)
475+ let userNewInterest = $t02049520595._1
476+ let currentInterest = $t02049520595._2
477+ let claimAmount = $t02049520595._3
478+ let userShareTokensAmount = $t02049520595._4
462479 let availableFund = (userAvailableSWOP(pool, i.caller) + claimAmount)
463480 let userClaimedAmount = getUserSWOPClaimedAmount(pool, i.caller)
464481 let userClaimedAmountNew = (userClaimedAmount + claimAmount)
465482 if ((availableFund == 0))
466483 then throw("You have 0 available SWOP")
467- else [IntegerEntry((((pool + "_") + toString(i.caller)) + keyUserLastInterest), userNewInterest), IntegerEntry((pool + keyLastInterest), currentInterest), IntegerEntry((pool + keyLastInterestHeight), height), IntegerEntry((((pool + "_") + toString(i.caller)) + keyAvailableSWOP), 0), IntegerEntry((((pool + "_") + toString(i.caller)) + keyUserSWOPClaimedAmount), userClaimedAmountNew), IntegerEntry((((pool + "_") + toString(i.caller)) + keyUserSWOPLastClaimedAmount), claimAmount), ScriptTransfer(i.caller, availableFund, SWOP)]
484+ else if (!(isActive))
485+ then throw("DApp is inactive at this moment")
486+ else [IntegerEntry((((pool + "_") + toString(i.caller)) + keyUserLastInterest), userNewInterest), IntegerEntry((pool + keyLastInterest), currentInterest), IntegerEntry((pool + keyLastInterestHeight), height), IntegerEntry((((pool + "_") + toString(i.caller)) + keyAvailableSWOP), 0), IntegerEntry((((pool + "_") + toString(i.caller)) + keyUserSWOPClaimedAmount), userClaimedAmountNew), IntegerEntry((((pool + "_") + toString(i.caller)) + keyUserSWOPLastClaimedAmount), claimAmount), ScriptTransfer(i.caller, availableFund, SWOP)]
468487 }
469488
470489
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 4 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let adminPubKey1 = base58'Kn7NpzaG12dLZgcHf2ipUftU6hbJygmrhFqQYE4B7ZK'
55
66 let adminPubKey2 = base58'Kn7NpzaG12dLZgcHf2ipUftU6hbJygmrhFqQYE4B7ZK'
77
88 let adminPubKey3 = base58'Kn7NpzaG12dLZgcHf2ipUftU6hbJygmrhFqQYE4B7ZK'
99
1010 let keyShareTokensLocked = "_total_share_tokens_locked"
11+
12+let kShareLimit = "share_limit_on_first_harvest"
13+
14+let keyActive = "active"
1115
1216 let keyRewardPoolFractionCurrent = "_current_pool_fraction_reward"
1317
1418 let keyRewardPoolFractionPrevious = "_previous_pool_fraction_reward"
1519
1620 let keyTotalRewardPerBlockCurrent = "total_reward_per_block_current"
1721
1822 let keyTotalRewardPerBlockPrevious = "total_reward_per_block_previous"
1923
2024 let keyRewardUpdateHeight = "reward_update_height"
2125
2226 let keyLastInterest = "_last_interest"
2327
2428 let keyLastInterestHeight = "_last_interest_height"
2529
2630 let keyUserShareTokensLocked = "_share_tokens_locked"
2731
2832 let keyUserLastInterest = "_last_interest"
2933
3034 let keySWOPid = "SWOP_id"
3135
3236 let keyUserSWOPClaimedAmount = "_SWOP_claimed_amount"
3337
3438 let keyUserSWOPLastClaimedAmount = "_SWOP_last_claimed_amount"
3539
3640 let keyAvailableSWOP = "_available_SWOP"
3741
3842 let keyFarmingStartHeight = "farming_start_height"
3943
4044 let keyAPY = "apy"
4145
4246 let kPreviousTotalVoteSWOP = "previous_total_vote_SWOP"
4347
4448 let keySwopYearEmission = "swop_year_emission"
4549
4650 let keyBalancecpmmA = "A_asset_balance"
4751
4852 let keyBalancecpmmB = "B_asset_balance"
4953
5054 let kHarvestPoolActiveVoteStrucVoting = "_harvest_pool_activeVote_struc"
5155
52-let kHarvestUserPoolActiveVoteStrucVoting = "_harvest_user_pool_ActiveVote_struc"
56+let kHarvestUserPoolActiveVoteStrucVoting = "_harvest_user_pool_activeVote_struc"
5357
5458 let keyLimitShareFirstHarvest = "share_limit_on_first_harvest"
5559
5660 let keyAssetIdA = "A_asset_id"
5761
5862 let keyAssetIdB = "B_asset_id"
5963
6064 let keyFirstHarvestHeight = "first_harvest_height"
6165
6266 let keyfirstHarvestCpmm = "first_harvest"
6367
6468 let governanceAddress = Address(base58'3MzJZEn6jzxCPaHEfkrXd7FhbjTyVjdRPLS')
6569
6670 let wallet = Address(base58'3NAGTtZz6WpupSN89NZD5rMZwwziZEg4Kx4')
6771
6872 let votingAddress = Address(base58'3N6CYoCsxrcXKe75pQvvV3JqJrwJjm1t4QN')
69-
70-let swopUsdnAddress = Address(base58'3N4kooq5242vPtJzBDrmukK6ptrjRRjEBWi')
71-
72-let wavesUsdnAddress = Address(base58'3MxtJmAsKsfof4X28MJPBtvRUyz1PbCnbhF')
7373
7474 let adminIncreaseInterestAddress = Address(base58'3NAGTtZz6WpupSN89NZD5rMZwwziZEg4Kx4')
7575
7676 let oneWeekInBlock = 10106
7777
7878 let totalVoteShare = 10000000000
7979
8080 let scaleValue1 = 10
8181
8282 let scaleValue3 = 1000
8383
8484 let scaleValue5 = 100000
8585
8686 let scaleValue6 = 1000000
8787
8888 let scaleValue8 = 100000000
8989
9090 let scaleValue11 = 100000000000
9191
9292 func strAssetIdA (pool) = getStringValue(pool, keyAssetIdA)
9393
9494
9595 func strAssetIdB (pool) = getStringValue(pool, keyAssetIdB)
9696
9797
9898 func assetIdA (pool) = if ((strAssetIdA(pool) == "WAVES"))
9999 then unit
100100 else fromBase58String(strAssetIdA(pool))
101101
102102
103103 func assetIdB (pool) = if ((strAssetIdB(pool) == "WAVES"))
104104 then unit
105105 else fromBase58String(strAssetIdB(pool))
106106
107107
108108 let kBasePeriod = "base_period"
109109
110110 let kPeriodLength = "period_length"
111111
112112 let kStartHeight = "start_height"
113113
114114 let kFirstHarvestHeight = "first_harvest_height"
115115
116116 let kDurationFullVotePower = "duration_full_vote_power"
117117
118118 let kMinVotePower = "min_vote_power"
119119
120120 let basePeriod = valueOrErrorMessage(getInteger(votingAddress, kBasePeriod), "Empty kBasePeriod")
121121
122122 let startHeight = valueOrErrorMessage(getInteger(votingAddress, kStartHeight), "Empty kStartHeight")
123123
124124 let periodLength = valueOrErrorMessage(getInteger(votingAddress, kPeriodLength), "Empty kPeriodLength")
125125
126126 let durationFullVotePower = valueOrErrorMessage(getInteger(votingAddress, kDurationFullVotePower), "Empty kDurationFullVotePower")
127127
128128 let minVotePower = valueOrErrorMessage(getInteger(votingAddress, kMinVotePower), "Empty kMinVotePower")
129129
130+let isActive = getBooleanValue(this, keyActive)
131+
130132 let currPeriod = (basePeriod + ((height - startHeight) / periodLength))
131133
132134 func getLimitToken (pool) = valueOrElse(getIntegerValue(pool, keyLimitShareFirstHarvest), 0)
133135
134136
135137 let APY = getIntegerValue(this, keyAPY)
136138
137139 let SwopYearEmission = getIntegerValue(this, keySwopYearEmission)
138140
139141 func assetNameA (pool) = match assetIdA(pool) {
140142 case id: ByteVector =>
141143 value(assetInfo(id)).name
142144 case waves: Unit =>
143145 "WAVES"
144146 case _ =>
145147 throw("Match error")
146148 }
147149
148150
149151 func assetNameB (pool) = match assetIdB(pool) {
150152 case id: ByteVector =>
151153 value(assetInfo(id)).name
152154 case waves: Unit =>
153155 "WAVES"
154156 case _ =>
155157 throw("Match error")
156158 }
157159
158160
159161 let SWOP = fromBase58String(getStringValue(this, keySWOPid))
160162
161163 func isFirstHarvest (pool) = valueOrElse(getBoolean(pool, keyfirstHarvestCpmm), false)
162164
163165
164166 func getHeightFirstHarvest (pool) = valueOrElse(getInteger(pool, keyFirstHarvestHeight), 0)
165167
166168
167169 func getBalanceA (pool) = valueOrErrorMessage(getInteger(pool, keyBalancecpmmA), ("No data on the key: " + keyBalancecpmmA))
168170
169171
170172 func getBalanceB (pool) = valueOrErrorMessage(getInteger(pool, keyBalancecpmmB), ("No data on the key: " + keyBalancecpmmB))
173+
174+
175+func getShareLimitToken (pool) = valueOrErrorMessage(getInteger(pool, kShareLimit), ("No data on the key: " + kShareLimit))
171176
172177
173178 func getTotalShareTokenLocked (pool) = valueOrErrorMessage(getInteger(this, (pool + keyShareTokensLocked)), (("No data on the key: " + pool) + keyShareTokensLocked))
174179
175180
176181 func getShareAssetId (pool) = fromBase58String(getStringValue(value(addressFromString(pool)), "share_asset_id"))
177182
178183
179184 func getAssetInfo (assetId) = match assetId {
180185 case id: ByteVector =>
181186 let stringId = toBase58String(id)
182187 let info = valueOrErrorMessage(assetInfo(id), (("Asset " + stringId) + " doesn't exist"))
183188 $Tuple3(stringId, info.name, info.decimals)
184189 case waves: Unit =>
185190 $Tuple3("WAVES", "WAVES", 8)
186191 case _ =>
187192 throw("Match error")
188193 }
189194
190195
191196 func calcScaleValue (assetId1,assetId2) = {
192197 let assetId1Decimals = value(assetInfo(assetId1)).decimals
193198 let assetId2Decimals = value(assetInfo(assetId2)).decimals
194199 let scaleDigits = ((assetId2Decimals - assetId1Decimals) + 8)
195200 pow(10, 0, scaleDigits, 0, 0, HALFDOWN)
196201 }
197202
198203
199204 func userAvailableSWOP (pool,user) = valueOrElse(getInteger(this, (((pool + "_") + toString(user)) + keyAvailableSWOP)), 0)
200205
201206
202207 func rewardInfo (pool) = {
203208 let totalRewardPerBlockCurrent = valueOrErrorMessage(getInteger(governanceAddress, keyTotalRewardPerBlockCurrent), ((("No data on the key: " + keyTotalRewardPerBlockCurrent) + " at address ") + toString(governanceAddress)))
204209 let totalRewardPerBlockPrevious = valueOrErrorMessage(getInteger(governanceAddress, keyTotalRewardPerBlockPrevious), ((("No data on the key: " + keyTotalRewardPerBlockPrevious) + " at address ") + toString(governanceAddress)))
205210 let rewardPoolFractionCurrent = valueOrErrorMessage(getInteger(governanceAddress, (pool + keyRewardPoolFractionCurrent)), (((("No data on the key: " + pool) + keyRewardPoolFractionCurrent) + " at address ") + toString(governanceAddress)))
206211 let rewardUpdateHeight = valueOrErrorMessage(getInteger(governanceAddress, keyRewardUpdateHeight), ((("No data on the key: " + keyRewardUpdateHeight) + " at address ") + toString(governanceAddress)))
207212 let rewardPoolFractionPrevious = valueOrErrorMessage(getInteger(governanceAddress, (pool + keyRewardPoolFractionPrevious)), (((("No data on the key: " + pool) + keyRewardPoolFractionPrevious) + " at address ") + toString(governanceAddress)))
208213 let rewardPoolCurrent = fraction(totalRewardPerBlockCurrent, rewardPoolFractionCurrent, totalVoteShare)
209214 let rewardPoolPrevious = fraction(totalRewardPerBlockPrevious, rewardPoolFractionPrevious, totalVoteShare)
210215 if (if ((rewardPoolCurrent > totalRewardPerBlockCurrent))
211216 then true
212217 else (rewardPoolPrevious > totalRewardPerBlockPrevious))
213218 then throw("rewardPoolCurrent > totalRewardPerBlockCurrent or rewardPoolPrevious > totalRewardPerBlockPrevious")
214219 else $Tuple3(rewardPoolCurrent, rewardUpdateHeight, rewardPoolPrevious)
215220 }
216221
217222
218223 func getLastInterestInfo (pool) = {
219224 let lastInterest = valueOrErrorMessage(getInteger(this, (pool + keyLastInterest)), (("No data on the key: " + pool) + keyLastInterest))
220225 let lastInterestHeight = valueOrElse(getInteger(this, (pool + keyLastInterestHeight)), height)
221226 $Tuple2(lastInterestHeight, lastInterest)
222227 }
223228
224229
225230 func getUserInterestInfo (pool,userAddress) = {
226231 let userLastInterest = getInteger(this, (((pool + "_") + toString(userAddress)) + keyUserLastInterest))
227232 let userShare = getInteger(this, (((pool + "_") + toString(userAddress)) + keyUserShareTokensLocked))
228233 let lastInterest = valueOrErrorMessage(getInteger(this, (pool + keyLastInterest)), (("No data on the key: " + pool) + keyLastInterest))
229234 let userLastInterestValue = match userLastInterest {
230235 case userLastInterest: Int =>
231236 userLastInterest
232237 case _ =>
233238 lastInterest
234239 }
235240 let userShareTokensAmount = match userShare {
236241 case userShare: Int =>
237242 userShare
238243 case _ =>
239244 0
240245 }
241246 $Tuple2(userLastInterestValue, userShareTokensAmount)
242247 }
243248
244249
245250 func calcInterest (lastInterestHeight,rewardUpdateHeight,lastInterest,currentRewardPerBlock,shareTokenLocked,previousRewardPerBlock,shareAssetId,scaleValue,pmtAmount) = if ((shareTokenLocked == 0))
246251 then 0
247252 else if ((rewardUpdateHeight > height))
248253 then {
249254 let reward = (previousRewardPerBlock * (height - lastInterestHeight))
250255 (lastInterest + fraction(reward, scaleValue, shareTokenLocked))
251256 }
252257 else if ((lastInterestHeight > rewardUpdateHeight))
253258 then {
254259 let reward = (currentRewardPerBlock * (height - lastInterestHeight))
255260 (lastInterest + fraction(reward, scaleValue, shareTokenLocked))
256261 }
257262 else {
258263 let rewardAfterLastInterestBeforeReawardUpdate = (previousRewardPerBlock * (rewardUpdateHeight - lastInterestHeight))
259264 let interestAfterUpdate = (lastInterest + fraction(rewardAfterLastInterestBeforeReawardUpdate, scaleValue, shareTokenLocked))
260265 let reward = (currentRewardPerBlock * (height - rewardUpdateHeight))
261266 (interestAfterUpdate + fraction(reward, scaleValue, shareTokenLocked))
262267 }
263268
264269
265270 func claimCalc (pool,caller,pmtAmount) = {
266271 let shareAssetId = getShareAssetId(pool)
267272 let scaleValue = calcScaleValue(SWOP, shareAssetId)
268273 let shareTokenLocked = getTotalShareTokenLocked(pool)
269- let $t01087410939 = getLastInterestInfo(pool)
270- let lastInterestHeight = $t01087410939._1
271- let lastInterest = $t01087410939._2
272- let $t01094411032 = rewardInfo(pool)
273- let currentRewardPerBlock = $t01094411032._1
274- let rewardUpdateHeight = $t01094411032._2
275- let previousRewardPerBlock = $t01094411032._3
276- let $t01103711116 = getUserInterestInfo(pool, caller)
277- let userLastInterest = $t01103711116._1
278- let userShareTokensAmount = $t01103711116._2
274+ let $t01092410989 = getLastInterestInfo(pool)
275+ let lastInterestHeight = $t01092410989._1
276+ let lastInterest = $t01092410989._2
277+ let $t01099411082 = rewardInfo(pool)
278+ let currentRewardPerBlock = $t01099411082._1
279+ let rewardUpdateHeight = $t01099411082._2
280+ let previousRewardPerBlock = $t01099411082._3
281+ let $t01108711166 = getUserInterestInfo(pool, caller)
282+ let userLastInterest = $t01108711166._1
283+ let userShareTokensAmount = $t01108711166._2
279284 let currentInterest = calcInterest(lastInterestHeight, rewardUpdateHeight, lastInterest, currentRewardPerBlock, shareTokenLocked, previousRewardPerBlock, shareAssetId, scaleValue, pmtAmount)
280285 let claimAmount = fraction(userShareTokensAmount, (currentInterest - userLastInterest), scaleValue)
281286 let userNewInterest = currentInterest
282287 $Tuple4(userNewInterest, currentInterest, claimAmount, userShareTokensAmount)
283288 }
284289
285290
286291 func calculateProtocolReward (pool) = {
287- let $t01187111936 = getLastInterestInfo(pool)
288- let lastInterestHeight = $t01187111936._1
289- let lastInterest = $t01187111936._2
290- let $t01194212030 = rewardInfo(pool)
291- let currentRewardPerBlock = $t01194212030._1
292- let rewardUpdateHeight = $t01194212030._2
293- let previousRewardPerBlock = $t01194212030._3
292+ let $t01163911704 = getLastInterestInfo(pool)
293+ let lastInterestHeight = $t01163911704._1
294+ let lastInterest = $t01163911704._2
295+ let $t01170911797 = rewardInfo(pool)
296+ let currentRewardPerBlock = $t01170911797._1
297+ let rewardUpdateHeight = $t01170911797._2
298+ let previousRewardPerBlock = $t01170911797._3
294299 let shareTokenLocked = getTotalShareTokenLocked(pool)
295300 if ((shareTokenLocked == 0))
296301 then 0
297302 else if ((rewardUpdateHeight > height))
298303 then {
299304 let reward = (previousRewardPerBlock * (height - lastInterestHeight))
300305 reward
301306 }
302307 else if ((lastInterestHeight > rewardUpdateHeight))
303308 then {
304309 let reward = (currentRewardPerBlock * (height - lastInterestHeight))
305310 reward
306311 }
307312 else {
308313 let rewardAfterLastInterestBeforeReawardUpdate = (previousRewardPerBlock * (rewardUpdateHeight - lastInterestHeight))
309314 let reward = (currentRewardPerBlock * (height - rewardUpdateHeight))
310315 (reward + rewardAfterLastInterestBeforeReawardUpdate)
311316 }
312317 }
313318
314319
315320 func checkPmtAssetIdCorrect (pool,pmtAssetId) = {
316321 let poolShareAssetId = fromBase58String(getStringValue(value(addressFromString(pool)), "share_asset_id"))
317322 if ((pmtAssetId == poolShareAssetId))
318323 then true
319324 else false
320325 }
321326
322327
323328 func getUserSWOPClaimedAmount (pool,user) = valueOrElse(getInteger(this, (((pool + "_") + toString(user)) + keyUserSWOPClaimedAmount)), 0)
324329
325330
326331 @Callable(i)
327332 func init (earlyLP) = if (isDefined(getString(this, keySWOPid)))
328333 then throw("SWOP already initialized")
329334 else {
330335 let initAmount = 100000000000000
331336 let SWOPissue = Issue("SWOP", "SWOP protocol token", initAmount, 8, true)
332337 let SWOPid = calculateAssetId(SWOPissue)
333-[Issue("SWOP", "SWOP protocol token", initAmount, 8, true), StringEntry(keySWOPid, toBase58String(SWOPid))]
338+ if (isDefined(getBoolean(this, keyActive)))
339+ then throw("DApp is already active")
340+ else [BooleanEntry(keyActive, true), Issue("SWOP", "SWOP protocol token", initAmount, 8, true), StringEntry(keySWOPid, toBase58String(SWOPid))]
334341 }
335342
336343
337344
338345 @Callable(i)
339346 func initPoolShareFarming (pool) = if ((i.caller != this))
340347 then throw("Only the DApp itself can call this function")
341- else {
342- let $t01410214182 = rewardInfo(pool)
343- let currentReward = $t01410214182._1
344- let rewardUpdateHeight = $t01410214182._2
345- let previousRewardPerBlock = $t01410214182._3
348+ else if (!(isActive))
349+ then throw("DApp is inactive at this moment")
350+ else {
351+ let $t01375413834 = rewardInfo(pool)
352+ let currentReward = $t01375413834._1
353+ let rewardUpdateHeight = $t01375413834._2
354+ let previousRewardPerBlock = $t01375413834._3
346355 [IntegerEntry((pool + keyShareTokensLocked), 0), IntegerEntry((pool + keyLastInterest), 0), IntegerEntry((pool + keyLastInterestHeight), height)]
347- }
356+ }
348357
349358
350359
351360 @Callable(i)
352361 func updatePoolInterest (pool) = if ((i.caller != wallet))
353362 then throw("Only the Admin itself can call this function")
354- else {
355- let $t01457314693 = claimCalc(pool, adminIncreaseInterestAddress, 0)
356- let userNewInterest = $t01457314693._1
357- let currentInterest = $t01457314693._2
358- let claimAmount = $t01457314693._3
359- let userShareTokensAmount = $t01457314693._4
360- let $t01469814778 = rewardInfo(pool)
361- let currentReward = $t01469814778._1
362- let rewardUpdateHeight = $t01469814778._2
363- let previousRewardPerBlock = $t01469814778._3
363+ else if (!(isActive))
364+ then throw("DApp is inactive at this moment")
365+ else {
366+ let $t01424814368 = claimCalc(pool, adminIncreaseInterestAddress, 0)
367+ let userNewInterest = $t01424814368._1
368+ let currentInterest = $t01424814368._2
369+ let claimAmount = $t01424814368._3
370+ let userShareTokensAmount = $t01424814368._4
371+ let $t01437314453 = rewardInfo(pool)
372+ let currentReward = $t01437314453._1
373+ let rewardUpdateHeight = $t01437314453._2
374+ let previousRewardPerBlock = $t01437314453._3
364375 [IntegerEntry((pool + keyShareTokensLocked), 0), IntegerEntry((pool + keyLastInterest), userNewInterest), IntegerEntry((pool + keyLastInterestHeight), height)]
365- }
376+ }
366377
367378
368379
369380 @Callable(i)
370381 func lockShareTokens (pool) = {
371- let $t01502515100 = $Tuple2(i.payments[0].amount, i.payments[0].assetId)
372- let pmtAmount = $t01502515100._1
373- let pmtAssetId = $t01502515100._2
374- let $t01510515178 = getAssetInfo(pmtAssetId)
375- let pmtStrAssetId = $t01510515178._1
376- let pmtAssetName = $t01510515178._2
377- let pmtDecimals = $t01510515178._3
378- let $t01518315291 = claimCalc(pool, i.caller, pmtAmount)
379- let userNewInterest = $t01518315291._1
380- let currentInterest = $t01518315291._2
381- let claimAmount = $t01518315291._3
382- let userShareTokensAmount = $t01518315291._4
382+ let $t01469914774 = $Tuple2(i.payments[0].amount, i.payments[0].assetId)
383+ let pmtAmount = $t01469914774._1
384+ let pmtAssetId = $t01469914774._2
385+ let $t01477914852 = getAssetInfo(pmtAssetId)
386+ let pmtStrAssetId = $t01477914852._1
387+ let pmtAssetName = $t01477914852._2
388+ let pmtDecimals = $t01477914852._3
389+ let $t01485714965 = claimCalc(pool, i.caller, pmtAmount)
390+ let userNewInterest = $t01485714965._1
391+ let currentInterest = $t01485714965._2
392+ let claimAmount = $t01485714965._3
393+ let userShareTokensAmount = $t01485714965._4
383394 let userShareAmountNew = (userShareTokensAmount + pmtAmount)
384395 let availableFundsNew = (userAvailableSWOP(pool, i.caller) + claimAmount)
385396 let totalShareAmount = getTotalShareTokenLocked(pool)
386397 let totalShareAmountNew = (totalShareAmount + pmtAmount)
387398 let userClaimedAmount = getUserSWOPClaimedAmount(pool, i.caller)
388399 let userClaimedAmountNew = (userClaimedAmount + claimAmount)
389400 let baseEntry = [IntegerEntry((((pool + "_") + toString(i.caller)) + keyUserLastInterest), userNewInterest), IntegerEntry((((pool + "_") + toString(i.caller)) + keyUserShareTokensLocked), userShareAmountNew), IntegerEntry((pool + keyShareTokensLocked), totalShareAmountNew), IntegerEntry((pool + keyLastInterest), currentInterest), IntegerEntry((pool + keyLastInterestHeight), height), IntegerEntry((((pool + "_") + toString(i.caller)) + keyUserSWOPClaimedAmount), userClaimedAmountNew), IntegerEntry((((pool + "_") + toString(i.caller)) + keyUserSWOPLastClaimedAmount), claimAmount), IntegerEntry((((pool + "_") + toString(i.caller)) + keyAvailableSWOP), availableFundsNew)]
390401 if ((0 >= pmtAmount))
391402 then throw("You can't lock token")
392- else if (!(checkPmtAssetIdCorrect(pool, pmtAssetId)))
393- then throw("Incorrect pmtAssetId")
394- else if (if (isFirstHarvest(Address(fromBase58String(pool))))
395- then (height > (getHeightFirstHarvest(Address(fromBase58String(pool))) * periodLength))
396- else false)
397- then {
398- let amountOfVoting = split(getStringValue(votingAddress, (((toString(this) + "_") + pool) + "_user_pool_struc")), "_")
399- let amountPoolStract = split(getStringValue(votingAddress, (((toString(this) + "_") + pool) + "_pool_struc")), "_")
400- let amountActiveVoteUserPoolStract = split(getStringValue(votingAddress, (((toString(this) + "_") + pool) + kHarvestUserPoolActiveVoteStrucVoting)), "_")
401- let amountPoolActiveVoteStract = split(getStringValue(votingAddress, (pool + kHarvestPoolActiveVoteStrucVoting)), "_")
402- let userShareTokenLocked = userShareTokensAmount
403- let userPoolActiveVote = if ((toString(currPeriod) == amountOfVoting[2]))
404- then valueOrElse(parseInt(amountActiveVoteUserPoolStract[0]), 0)
405- else valueOrElse(parseInt(amountOfVoting[0]), 0)
406- let poolActiveVote = if ((toString(currPeriod) == amountPoolStract[2]))
407- then valueOrElse(parseInt(amountPoolActiveVoteStract[0]), 0)
408- else valueOrElse(parseInt(amountPoolStract[0]), 0)
409- let protocolReward = calculateProtocolReward(pool)
410- if ((parseInt(amountOfVoting[1]) != 0))
411- then {
412- let shareToken = (fraction(getTotalShareTokenLocked(pool), userPoolActiveVote, poolActiveVote) - userShareTokenLocked)
413- if ((shareToken > 0))
414- then if ((totalShareAmountNew >= shareToken))
415- then baseEntry
416- else throw(("You maximum share token is " + toString(shareToken)))
417- else throw("You can't share token")
418- }
419- else throw("Your amount of token less than 0")
420- }
421- else baseEntry
403+ else if (!(isActive))
404+ then throw("DApp is inactive at this moment")
405+ else if (!(checkPmtAssetIdCorrect(pool, pmtAssetId)))
406+ then throw("Incorrect pmtAssetId")
407+ else if (if (isFirstHarvest(Address(fromBase58String(pool))))
408+ then (height > (getHeightFirstHarvest(Address(fromBase58String(pool))) * periodLength))
409+ else false)
410+ then {
411+ let amountOfVoting = split(getStringValue(votingAddress, (((toString(i.caller) + "_") + pool) + "_user_pool_struc")), "_")
412+ let amountPoolStract = split(getStringValue(votingAddress, (pool + "_pool_struc")), "_")
413+ let amountActiveVoteUserPoolStract = split(getStringValue(votingAddress, (((toString(i.caller) + "_") + pool) + kHarvestUserPoolActiveVoteStrucVoting)), "_")
414+ let amountPoolActiveVoteStract = split(getStringValue(votingAddress, (pool + kHarvestPoolActiveVoteStrucVoting)), "_")
415+ let userShareTokenLocked = userShareTokensAmount
416+ let userPoolActiveVote = if ((toString(currPeriod) == amountOfVoting[2]))
417+ then valueOrElse(parseInt(amountActiveVoteUserPoolStract[0]), 0)
418+ else valueOrElse(parseInt(amountOfVoting[0]), 0)
419+ let poolActiveVote = if ((toString(currPeriod) == amountPoolStract[2]))
420+ then valueOrElse(parseInt(amountPoolActiveVoteStract[0]), 0)
421+ else valueOrElse(parseInt(amountPoolStract[0]), 0)
422+ let protocolReward = calculateProtocolReward(pool)
423+ if ((parseInt(amountOfVoting[1]) != 0))
424+ then {
425+ let shareToken = (fraction(getShareLimitToken(addressFromStringValue(pool)), userPoolActiveVote, poolActiveVote) - userShareTokenLocked)
426+ if ((shareToken > 0))
427+ then if ((totalShareAmount == 0))
428+ then (baseEntry ++ [ScriptTransfer(wallet, protocolReward, SWOP)])
429+ else if ((shareToken >= pmtAmount))
430+ then baseEntry
431+ else throw(("You maximum share token is " + toString(shareToken)))
432+ else throw("You can't share token")
433+ }
434+ else throw("Your amount of token less than 0")
435+ }
436+ else baseEntry
422437 }
423438
424439
425440
426441 @Callable(i)
427442 func withdrawShareTokens (pool,shareTokensWithdrawAmount) = {
428443 let shareTokensId = fromBase58String(getStringValue(value(addressFromString(pool)), "share_asset_id"))
429- let $t01882718927 = claimCalc(pool, i.caller, 1)
430- let userNewInterest = $t01882718927._1
431- let currentInterest = $t01882718927._2
432- let claimAmount = $t01882718927._3
433- let userShareTokensAmount = $t01882718927._4
444+ let $t01863218732 = claimCalc(pool, i.caller, 1)
445+ let userNewInterest = $t01863218732._1
446+ let currentInterest = $t01863218732._2
447+ let claimAmount = $t01863218732._3
448+ let userShareTokensAmount = $t01863218732._4
434449 let userShareAmountNew = (userShareTokensAmount - shareTokensWithdrawAmount)
435450 let availableFundsNew = (userAvailableSWOP(pool, i.caller) + claimAmount)
436451 let totalShareAmount = getTotalShareTokenLocked(pool)
437452 let totalShareAmountNew = (totalShareAmount - shareTokensWithdrawAmount)
438453 let userClaimedAmount = getUserSWOPClaimedAmount(pool, i.caller)
439454 let userClaimedAmountNew = (userClaimedAmount + claimAmount)
440455 if ((shareTokensWithdrawAmount > userShareTokensAmount))
441456 then throw("Withdraw amount more then user locked amount")
442- else [IntegerEntry((((pool + "_") + toString(i.caller)) + keyUserLastInterest), userNewInterest), IntegerEntry((((pool + "_") + toString(i.caller)) + keyUserShareTokensLocked), userShareAmountNew), IntegerEntry((pool + keyLastInterest), currentInterest), IntegerEntry((pool + keyLastInterestHeight), height), IntegerEntry((pool + keyShareTokensLocked), totalShareAmountNew), IntegerEntry((((pool + "_") + toString(i.caller)) + keyAvailableSWOP), availableFundsNew), IntegerEntry((((pool + "_") + toString(i.caller)) + keyUserSWOPClaimedAmount), userClaimedAmountNew), IntegerEntry((((pool + "_") + toString(i.caller)) + keyUserSWOPLastClaimedAmount), claimAmount), ScriptTransfer(i.caller, shareTokensWithdrawAmount, shareTokensId)]
457+ else if (!(isActive))
458+ then throw("DApp is inactive at this moment")
459+ else [IntegerEntry((((pool + "_") + toString(i.caller)) + keyUserLastInterest), userNewInterest), IntegerEntry((((pool + "_") + toString(i.caller)) + keyUserShareTokensLocked), userShareAmountNew), IntegerEntry((pool + keyLastInterest), currentInterest), IntegerEntry((pool + keyLastInterestHeight), height), IntegerEntry((pool + keyShareTokensLocked), totalShareAmountNew), IntegerEntry((((pool + "_") + toString(i.caller)) + keyAvailableSWOP), availableFundsNew), IntegerEntry((((pool + "_") + toString(i.caller)) + keyUserSWOPClaimedAmount), userClaimedAmountNew), IntegerEntry((((pool + "_") + toString(i.caller)) + keyUserSWOPLastClaimedAmount), claimAmount), ScriptTransfer(i.caller, shareTokensWithdrawAmount, shareTokensId)]
443460 }
444461
445462
446463
447464 @Callable(i)
448465 func claim (pool) = {
449466 let shareTokenLocked = getTotalShareTokenLocked(pool)
450- let $t02042020485 = getLastInterestInfo(pool)
451- let lastInterestHeight = $t02042020485._1
452- let lastInterest = $t02042020485._2
453- let $t02049020579 = rewardInfo(pool)
454- let currentRewardPerBlock = $t02049020579._1
455- let rewardUpdateHeight = $t02049020579._2
456- let previousRewardPerBlock = $t02049020579._3
457- let $t02058420684 = claimCalc(pool, i.caller, 1)
458- let userNewInterest = $t02058420684._1
459- let currentInterest = $t02058420684._2
460- let claimAmount = $t02058420684._3
461- let userShareTokensAmount = $t02058420684._4
467+ let $t02033120396 = getLastInterestInfo(pool)
468+ let lastInterestHeight = $t02033120396._1
469+ let lastInterest = $t02033120396._2
470+ let $t02040120490 = rewardInfo(pool)
471+ let currentRewardPerBlock = $t02040120490._1
472+ let rewardUpdateHeight = $t02040120490._2
473+ let previousRewardPerBlock = $t02040120490._3
474+ let $t02049520595 = claimCalc(pool, i.caller, 1)
475+ let userNewInterest = $t02049520595._1
476+ let currentInterest = $t02049520595._2
477+ let claimAmount = $t02049520595._3
478+ let userShareTokensAmount = $t02049520595._4
462479 let availableFund = (userAvailableSWOP(pool, i.caller) + claimAmount)
463480 let userClaimedAmount = getUserSWOPClaimedAmount(pool, i.caller)
464481 let userClaimedAmountNew = (userClaimedAmount + claimAmount)
465482 if ((availableFund == 0))
466483 then throw("You have 0 available SWOP")
467- else [IntegerEntry((((pool + "_") + toString(i.caller)) + keyUserLastInterest), userNewInterest), IntegerEntry((pool + keyLastInterest), currentInterest), IntegerEntry((pool + keyLastInterestHeight), height), IntegerEntry((((pool + "_") + toString(i.caller)) + keyAvailableSWOP), 0), IntegerEntry((((pool + "_") + toString(i.caller)) + keyUserSWOPClaimedAmount), userClaimedAmountNew), IntegerEntry((((pool + "_") + toString(i.caller)) + keyUserSWOPLastClaimedAmount), claimAmount), ScriptTransfer(i.caller, availableFund, SWOP)]
484+ else if (!(isActive))
485+ then throw("DApp is inactive at this moment")
486+ else [IntegerEntry((((pool + "_") + toString(i.caller)) + keyUserLastInterest), userNewInterest), IntegerEntry((pool + keyLastInterest), currentInterest), IntegerEntry((pool + keyLastInterestHeight), height), IntegerEntry((((pool + "_") + toString(i.caller)) + keyAvailableSWOP), 0), IntegerEntry((((pool + "_") + toString(i.caller)) + keyUserSWOPClaimedAmount), userClaimedAmountNew), IntegerEntry((((pool + "_") + toString(i.caller)) + keyUserSWOPLastClaimedAmount), claimAmount), ScriptTransfer(i.caller, availableFund, SWOP)]
468487 }
469488
470489
471490 @Verifier(tx)
472491 func verify () = match tx {
473492 case _ =>
474493 sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
475494 }
476495

github/deemru/w8io/026f985 
70.86 ms