tx · hi7ChRYMwnJXxPhmvyeU58prNqLe6gbc3x4bHrAyFTb

3N63NoZoyyKJNUah7rUPRqDKgWT17QsWTr2:  -0.01400000 Waves

2021.06.11 14:39 [1565650] smart account 3N63NoZoyyKJNUah7rUPRqDKgWT17QsWTr2 > SELF 0.00000000 Waves

{ "type": 13, "id": "hi7ChRYMwnJXxPhmvyeU58prNqLe6gbc3x4bHrAyFTb", "fee": 1400000, "feeAssetId": null, "timestamp": 1623411672110, "version": 2, "chainId": 84, "sender": "3N63NoZoyyKJNUah7rUPRqDKgWT17QsWTr2", "senderPublicKey": "96iNAhirmCimToEQLtYjUm3MNf4TmkD9rBBTYsrRmqoK", "proofs": [ "mmj7XS2RgDLpGEa5AMEJiwfCERbMt86qoBeBkTKNSUCr3NaGe1H8pRX2voCdseVQJweJTj1PAzEzKF1x15zTQvb" ], "script": "base64:AAIEAAAAAAAAACEIAhIDCgEIEgMKAQgSAwoBCBIDCgEIEgQKAggBEgMKAQgAAABTAAAAAAxhZG1pblB1YktleTEBAAAAIATPdeVk0MEPTme5HxNkxBoN6oQkQjF9M5BdQFgKnZNKAAAAAAxhZG1pblB1YktleTIBAAAAIATPdeVk0MEPTme5HxNkxBoN6oQkQjF9M5BdQFgKnZNKAAAAAAxhZG1pblB1YktleTMBAAAAIATPdeVk0MEPTme5HxNkxBoN6oQkQjF9M5BdQFgKnZNKAAAAABRrZXlTaGFyZVRva2Vuc0xvY2tlZAIAAAAaX3RvdGFsX3NoYXJlX3Rva2Vuc19sb2NrZWQAAAAAC2tTaGFyZUxpbWl0AgAAABxzaGFyZV9saW1pdF9vbl9maXJzdF9oYXJ2ZXN0AAAAABxrZXlSZXdhcmRQb29sRnJhY3Rpb25DdXJyZW50AgAAAB1fY3VycmVudF9wb29sX2ZyYWN0aW9uX3Jld2FyZAAAAAAda2V5UmV3YXJkUG9vbEZyYWN0aW9uUHJldmlvdXMCAAAAHl9wcmV2aW91c19wb29sX2ZyYWN0aW9uX3Jld2FyZAAAAAA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AAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V5OzNb9w==", "height": 1565650, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 44vT9SyrcuFfQUUHo3TkBrzgAYQUssDvQXAdZaRLc9b1 Next: N7BbLWWFdE6kT7kJj2CEwNBHcJrRSGiSVad7FcVZEr3 Diff:
OldNewDifferences
1414 let keyRewardPoolFractionCurrent = "_current_pool_fraction_reward"
1515
1616 let keyRewardPoolFractionPrevious = "_previous_pool_fraction_reward"
17-
18-let keyHeightPoolFraction = "_pool_reward_update_height"
1917
2018 let keyTotalRewardPerBlockCurrent = "total_reward_per_block_current"
2119
6462 let keyFirstHarvestHeight = "first_harvest_height"
6563
6664 let keyfirstHarvestCpmm = "first_harvest"
67-
68-let keyTempPrevSum = "sum_reward_previous"
69-
70-let keyTempCurSum = "sum_reward_current"
7165
7266 let governanceAddress = Address(base58'3N5W8da2iiijVieA6qLGo7KzCJj8B19smWU')
7367
211205 let totalRewardPerBlockPrevious = valueOrErrorMessage(getInteger(governanceAddress, keyTotalRewardPerBlockPrevious), ((("No data on the key: " + keyTotalRewardPerBlockPrevious) + " at address ") + toString(governanceAddress)))
212206 let rewardPoolFractionCurrent = valueOrErrorMessage(getInteger(governanceAddress, (pool + keyRewardPoolFractionCurrent)), (((("No data on the key: " + pool) + keyRewardPoolFractionCurrent) + " at address ") + toString(governanceAddress)))
213207 let rewardUpdateHeight = valueOrErrorMessage(getInteger(governanceAddress, keyRewardUpdateHeight), ((("No data on the key: " + keyRewardUpdateHeight) + " at address ") + toString(governanceAddress)))
214- let poolRewardUpdateHeight = valueOrElse(getInteger(governanceAddress, (pool + keyHeightPoolFraction)), 0)
215208 let rewardPoolFractionPrevious = valueOrErrorMessage(getInteger(governanceAddress, (pool + keyRewardPoolFractionPrevious)), (((("No data on the key: " + pool) + keyRewardPoolFractionPrevious) + " at address ") + toString(governanceAddress)))
216209 let rewardPoolCurrent = fraction(totalRewardPerBlockCurrent, rewardPoolFractionCurrent, totalVoteShare)
217210 let rewardPoolPrevious = fraction(totalRewardPerBlockPrevious, rewardPoolFractionPrevious, totalVoteShare)
219212 then true
220213 else (rewardPoolPrevious > totalRewardPerBlockPrevious))
221214 then throw("rewardPoolCurrent > totalRewardPerBlockCurrent or rewardPoolPrevious > totalRewardPerBlockPrevious")
222- else $Tuple4(rewardPoolCurrent, rewardUpdateHeight, rewardPoolPrevious, poolRewardUpdateHeight)
215+ else $Tuple3(rewardPoolCurrent, rewardUpdateHeight, rewardPoolPrevious)
223216 }
224217
225218
250243 }
251244
252245
253-func calcInterest (lastInterestHeight,rewardUpdateHeight,poolRewardUpdateHeight,lastInterest,currentRewardPerBlock,shareTokenLocked,previousRewardPerBlock,shareAssetId,scaleValue,pmtAmount) = if ((shareTokenLocked == 0))
246+func calcInterest (lastInterestHeight,rewardUpdateHeight,lastInterest,currentRewardPerBlock,shareTokenLocked,previousRewardPerBlock,shareAssetId,scaleValue,pmtAmount) = if ((shareTokenLocked == 0))
254247 then 0
255- else if ((poolRewardUpdateHeight != 0))
256- then if (if ((rewardUpdateHeight > height))
257- then (rewardUpdateHeight == poolRewardUpdateHeight)
258- else false)
248+ else if ((rewardUpdateHeight > height))
249+ then {
250+ let reward = (previousRewardPerBlock * (height - lastInterestHeight))
251+ (lastInterest + fraction(reward, scaleValue, shareTokenLocked))
252+ }
253+ else if ((lastInterestHeight > rewardUpdateHeight))
259254 then {
260- let reward = (previousRewardPerBlock * (height - lastInterestHeight))
255+ let reward = (currentRewardPerBlock * (height - lastInterestHeight))
261256 (lastInterest + fraction(reward, scaleValue, shareTokenLocked))
262257 }
263- else if (if ((height > rewardUpdateHeight))
264- then (rewardUpdateHeight != poolRewardUpdateHeight)
265- else false)
266- then {
267- let reward = (previousRewardPerBlock * (height - lastInterestHeight))
268- (lastInterest + fraction(reward, scaleValue, shareTokenLocked))
269- }
270- else if (if (if ((height > rewardUpdateHeight))
271- then (rewardUpdateHeight == poolRewardUpdateHeight)
272- else false)
273- then (lastInterestHeight > rewardUpdateHeight)
274- else false)
275- then {
276- let reward = (currentRewardPerBlock * (height - lastInterestHeight))
277- (lastInterest + fraction(reward, scaleValue, shareTokenLocked))
278- }
279- else {
280- let rewardAfterLastInterestBeforeReawardUpdate = (previousRewardPerBlock * (rewardUpdateHeight - lastInterestHeight))
281- let interestAfterUpdate = (lastInterest + fraction(rewardAfterLastInterestBeforeReawardUpdate, scaleValue, shareTokenLocked))
282- let reward = (currentRewardPerBlock * (height - rewardUpdateHeight))
283- (interestAfterUpdate + fraction(reward, scaleValue, shareTokenLocked))
284- }
285- else if ((rewardUpdateHeight > height))
286- then {
287- let reward = (previousRewardPerBlock * (height - lastInterestHeight))
288- (lastInterest + fraction(reward, scaleValue, shareTokenLocked))
258+ else {
259+ let rewardAfterLastInterestBeforeReawardUpdate = (previousRewardPerBlock * (rewardUpdateHeight - lastInterestHeight))
260+ let interestAfterUpdate = (lastInterest + fraction(rewardAfterLastInterestBeforeReawardUpdate, scaleValue, shareTokenLocked))
261+ let reward = (currentRewardPerBlock * (height - rewardUpdateHeight))
262+ (interestAfterUpdate + fraction(reward, scaleValue, shareTokenLocked))
289263 }
290- else if ((lastInterestHeight > rewardUpdateHeight))
291- then {
292- let reward = (currentRewardPerBlock * (height - lastInterestHeight))
293- (lastInterest + fraction(reward, scaleValue, shareTokenLocked))
294- }
295- else {
296- let rewardAfterLastInterestBeforeReawardUpdate = (previousRewardPerBlock * (rewardUpdateHeight - lastInterestHeight))
297- let interestAfterUpdate = (lastInterest + fraction(rewardAfterLastInterestBeforeReawardUpdate, scaleValue, shareTokenLocked))
298- let reward = (currentRewardPerBlock * (height - rewardUpdateHeight))
299- (interestAfterUpdate + fraction(reward, scaleValue, shareTokenLocked))
300- }
301264
302265
303266 func claimCalc (pool,caller,pmtAmount) = {
304267 let shareAssetId = getShareAssetId(pool)
305268 let scaleValue = calcScaleValue(SWOP, shareAssetId)
306269 let shareTokenLocked = getTotalShareTokenLocked(pool)
307- let $t01287012935 = getLastInterestInfo(pool)
308- let lastInterestHeight = $t01287012935._1
309- let lastInterest = $t01287012935._2
310- let $t01294013052 = rewardInfo(pool)
311- let currentRewardPerBlock = $t01294013052._1
312- let rewardUpdateHeight = $t01294013052._2
313- let previousRewardPerBlock = $t01294013052._3
314- let poolRewardUpdateHeight = $t01294013052._4
315- let $t01305713136 = getUserInterestInfo(pool, caller)
316- let userLastInterest = $t01305713136._1
317- let userShareTokensAmount = $t01305713136._2
318- let currentInterest = calcInterest(lastInterestHeight, rewardUpdateHeight, poolRewardUpdateHeight, lastInterest, currentRewardPerBlock, shareTokenLocked, previousRewardPerBlock, shareAssetId, scaleValue, pmtAmount)
270+ let $t01086210927 = getLastInterestInfo(pool)
271+ let lastInterestHeight = $t01086210927._1
272+ let lastInterest = $t01086210927._2
273+ let $t01093211020 = rewardInfo(pool)
274+ let currentRewardPerBlock = $t01093211020._1
275+ let rewardUpdateHeight = $t01093211020._2
276+ let previousRewardPerBlock = $t01093211020._3
277+ let $t01102511104 = getUserInterestInfo(pool, caller)
278+ let userLastInterest = $t01102511104._1
279+ let userShareTokensAmount = $t01102511104._2
280+ let currentInterest = calcInterest(lastInterestHeight, rewardUpdateHeight, lastInterest, currentRewardPerBlock, shareTokenLocked, previousRewardPerBlock, shareAssetId, scaleValue, pmtAmount)
319281 let claimAmount = fraction(userShareTokensAmount, (currentInterest - userLastInterest), scaleValue)
320282 let userNewInterest = currentInterest
321283 $Tuple4(userNewInterest, currentInterest, claimAmount, userShareTokensAmount)
323285
324286
325287 func calculateProtocolReward (pool) = {
326- let $t01365413719 = getLastInterestInfo(pool)
327- let lastInterestHeight = $t01365413719._1
328- let lastInterest = $t01365413719._2
329- let $t01372413835 = rewardInfo(pool)
330- let currentRewardPerBlock = $t01372413835._1
331- let rewardUpdateHeight = $t01372413835._2
332- let previousRewardPerBlock = $t01372413835._3
333- let poolRewardUpdateHeight = $t01372413835._4
288+ let $t01157711642 = getLastInterestInfo(pool)
289+ let lastInterestHeight = $t01157711642._1
290+ let lastInterest = $t01157711642._2
291+ let $t01164711735 = rewardInfo(pool)
292+ let currentRewardPerBlock = $t01164711735._1
293+ let rewardUpdateHeight = $t01164711735._2
294+ let previousRewardPerBlock = $t01164711735._3
334295 let shareTokenLocked = getTotalShareTokenLocked(pool)
335- if (if ((shareTokenLocked == 0))
336- then (poolRewardUpdateHeight == 0)
337- else false)
296+ if ((shareTokenLocked == 0))
338297 then if ((rewardUpdateHeight > height))
339298 then {
340299 let reward = (previousRewardPerBlock * (height - lastInterestHeight))
350309 let reward = (currentRewardPerBlock * (height - rewardUpdateHeight))
351310 (reward + rewardAfterLastInterestBeforeReawardUpdate)
352311 }
353- else if (if ((shareTokenLocked == 0))
354- then (poolRewardUpdateHeight != 0)
355- else false)
356- then if (if ((rewardUpdateHeight > height))
357- then (rewardUpdateHeight == poolRewardUpdateHeight)
358- else false)
359- then {
360- let reward = (previousRewardPerBlock * (height - lastInterestHeight))
361- reward
362- }
363- else if (if ((height > rewardUpdateHeight))
364- then (rewardUpdateHeight != poolRewardUpdateHeight)
365- else false)
366- then {
367- let reward = (previousRewardPerBlock * (height - lastInterestHeight))
368- reward
369- }
370- else if (if (if ((height > rewardUpdateHeight))
371- then (rewardUpdateHeight == poolRewardUpdateHeight)
372- else false)
373- then (lastInterestHeight > rewardUpdateHeight)
374- else false)
375- then {
376- let reward = (currentRewardPerBlock * (height - lastInterestHeight))
377- reward
378- }
379- else {
380- let rewardAfterLastInterestBeforeReawardUpdate = (previousRewardPerBlock * (rewardUpdateHeight - lastInterestHeight))
381- let reward = (currentRewardPerBlock * (height - rewardUpdateHeight))
382- (reward + rewardAfterLastInterestBeforeReawardUpdate)
383- }
384- else 0
312+ else 0
385313 }
386314
387315
412340 func initPoolShareFarming (pool) = if ((i.caller != this))
413341 then throw("Only the DApp itself can call this function")
414342 else {
415- let $t01667516778 = rewardInfo(pool)
416- let currentReward = $t01667516778._1
417- let rewardUpdateHeight = $t01667516778._2
418- let previousRewardPerBlock = $t01667516778._3
419- let poolRewardUpdateHeight = $t01667516778._4
343+ let $t01348913569 = rewardInfo(pool)
344+ let currentReward = $t01348913569._1
345+ let rewardUpdateHeight = $t01348913569._2
346+ let previousRewardPerBlock = $t01348913569._3
420347 [IntegerEntry((pool + keyShareTokensLocked), 0), IntegerEntry((pool + keyLastInterest), 0), IntegerEntry((pool + keyLastInterestHeight), height)]
421348 }
422349
426353 func updatePoolInterest (pool) = if ((i.caller != wallet))
427354 then throw("Only the Admin itself can call this function")
428355 else {
429- let $t01711217232 = claimCalc(pool, adminIncreaseInterestAddress, 0)
430- let userNewInterest = $t01711217232._1
431- let currentInterest = $t01711217232._2
432- let claimAmount = $t01711217232._3
433- let userShareTokensAmount = $t01711217232._4
434- let $t01723717340 = rewardInfo(pool)
435- let currentReward = $t01723717340._1
436- let rewardUpdateHeight = $t01723717340._2
437- let previousRewardPerBlock = $t01723717340._3
438- let poolRewardUpdateHeight = $t01723717340._4
439-[IntegerEntry((pool + keyLastInterest), userNewInterest), IntegerEntry((pool + keyLastInterestHeight), height)]
356+ let $t01390714027 = claimCalc(pool, adminIncreaseInterestAddress, 0)
357+ let userNewInterest = $t01390714027._1
358+ let currentInterest = $t01390714027._2
359+ let claimAmount = $t01390714027._3
360+ let userShareTokensAmount = $t01390714027._4
361+ let $t01403214112 = rewardInfo(pool)
362+ let currentReward = $t01403214112._1
363+ let rewardUpdateHeight = $t01403214112._2
364+ let previousRewardPerBlock = $t01403214112._3
365+[IntegerEntry((pool + keyShareTokensLocked), 0), IntegerEntry((pool + keyLastInterest), userNewInterest), IntegerEntry((pool + keyLastInterestHeight), height)]
440366 }
441367
442368
443369
444370 @Callable(i)
445371 func lockShareTokens (pool) = {
446- let $t01753217607 = $Tuple2(i.payments[0].amount, i.payments[0].assetId)
447- let pmtAmount = $t01753217607._1
448- let pmtAssetId = $t01753217607._2
449- let $t01761217685 = getAssetInfo(pmtAssetId)
450- let pmtStrAssetId = $t01761217685._1
451- let pmtAssetName = $t01761217685._2
452- let pmtDecimals = $t01761217685._3
453- let $t01769017798 = claimCalc(pool, i.caller, pmtAmount)
454- let userNewInterest = $t01769017798._1
455- let currentInterest = $t01769017798._2
456- let claimAmount = $t01769017798._3
457- let userShareTokensAmount = $t01769017798._4
372+ let $t01435814433 = $Tuple2(i.payments[0].amount, i.payments[0].assetId)
373+ let pmtAmount = $t01435814433._1
374+ let pmtAssetId = $t01435814433._2
375+ let $t01443814511 = getAssetInfo(pmtAssetId)
376+ let pmtStrAssetId = $t01443814511._1
377+ let pmtAssetName = $t01443814511._2
378+ let pmtDecimals = $t01443814511._3
379+ let $t01451614624 = claimCalc(pool, i.caller, pmtAmount)
380+ let userNewInterest = $t01451614624._1
381+ let currentInterest = $t01451614624._2
382+ let claimAmount = $t01451614624._3
383+ let userShareTokensAmount = $t01451614624._4
458384 let userShareAmountNew = (userShareTokensAmount + pmtAmount)
459385 let availableFundsNew = (userAvailableSWOP(pool, i.caller) + claimAmount)
460386 let totalShareAmount = getTotalShareTokenLocked(pool)
511437 @Callable(i)
512438 func withdrawShareTokens (pool,shareTokensWithdrawAmount) = {
513439 let shareTokensId = fromBase58String(getStringValue(value(addressFromString(pool)), "share_asset_id"))
514- let $t02199222092 = claimCalc(pool, i.caller, 1)
515- let userNewInterest = $t02199222092._1
516- let currentInterest = $t02199222092._2
517- let claimAmount = $t02199222092._3
518- let userShareTokensAmount = $t02199222092._4
440+ let $t01881818918 = claimCalc(pool, i.caller, 1)
441+ let userNewInterest = $t01881818918._1
442+ let currentInterest = $t01881818918._2
443+ let claimAmount = $t01881818918._3
444+ let userShareTokensAmount = $t01881818918._4
519445 let userShareAmountNew = (userShareTokensAmount - shareTokensWithdrawAmount)
520446 let availableFundsNew = (userAvailableSWOP(pool, i.caller) + claimAmount)
521447 let totalShareAmount = getTotalShareTokenLocked(pool)
532458 @Callable(i)
533459 func claim (pool) = {
534460 let shareTokenLocked = getTotalShareTokenLocked(pool)
535- let $t02358523650 = getLastInterestInfo(pool)
536- let lastInterestHeight = $t02358523650._1
537- let lastInterest = $t02358523650._2
538- let $t02365523767 = rewardInfo(pool)
539- let currentRewardPerBlock = $t02365523767._1
540- let rewardUpdateHeight = $t02365523767._2
541- let previousRewardPerBlock = $t02365523767._3
542- let poolRewardUpdateHeight = $t02365523767._4
543- let $t02377223872 = claimCalc(pool, i.caller, 1)
544- let userNewInterest = $t02377223872._1
545- let currentInterest = $t02377223872._2
546- let claimAmount = $t02377223872._3
547- let userShareTokensAmount = $t02377223872._4
461+ let $t02043120496 = getLastInterestInfo(pool)
462+ let lastInterestHeight = $t02043120496._1
463+ let lastInterest = $t02043120496._2
464+ let $t02050120590 = rewardInfo(pool)
465+ let currentRewardPerBlock = $t02050120590._1
466+ let rewardUpdateHeight = $t02050120590._2
467+ let previousRewardPerBlock = $t02050120590._3
468+ let $t02059520695 = claimCalc(pool, i.caller, 1)
469+ let userNewInterest = $t02059520695._1
470+ let currentInterest = $t02059520695._2
471+ let claimAmount = $t02059520695._3
472+ let userShareTokensAmount = $t02059520695._4
548473 let availableFund = (userAvailableSWOP(pool, i.caller) + claimAmount)
549474 let userClaimedAmount = getUserSWOPClaimedAmount(pool, i.caller)
550475 let userClaimedAmountNew = (userClaimedAmount + claimAmount)
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"
1111
1212 let kShareLimit = "share_limit_on_first_harvest"
1313
1414 let keyRewardPoolFractionCurrent = "_current_pool_fraction_reward"
1515
1616 let keyRewardPoolFractionPrevious = "_previous_pool_fraction_reward"
17-
18-let keyHeightPoolFraction = "_pool_reward_update_height"
1917
2018 let keyTotalRewardPerBlockCurrent = "total_reward_per_block_current"
2119
2220 let keyTotalRewardPerBlockPrevious = "total_reward_per_block_previous"
2321
2422 let keyRewardUpdateHeight = "reward_update_height"
2523
2624 let keyLastInterest = "_last_interest"
2725
2826 let keyLastInterestHeight = "_last_interest_height"
2927
3028 let keyUserShareTokensLocked = "_share_tokens_locked"
3129
3230 let keyUserLastInterest = "_last_interest"
3331
3432 let keySWOPid = "SWOP_id"
3533
3634 let keyUserSWOPClaimedAmount = "_SWOP_claimed_amount"
3735
3836 let keyUserSWOPLastClaimedAmount = "_SWOP_last_claimed_amount"
3937
4038 let keyAvailableSWOP = "_available_SWOP"
4139
4240 let keyFarmingStartHeight = "farming_start_height"
4341
4442 let keyAPY = "apy"
4543
4644 let kPreviousTotalVoteSWOP = "previous_total_vote_SWOP"
4745
4846 let keySwopYearEmission = "swop_year_emission"
4947
5048 let keyBalancecpmmA = "A_asset_balance"
5149
5250 let keyBalancecpmmB = "B_asset_balance"
5351
5452 let kHarvestPoolActiveVoteStrucVoting = "_harvest_pool_activeVote_struc"
5553
5654 let kHarvestUserPoolActiveVoteStrucVoting = "_harvest_user_pool_activeVote_struc"
5755
5856 let keyLimitShareFirstHarvest = "share_limit_on_first_harvest"
5957
6058 let keyAssetIdA = "A_asset_id"
6159
6260 let keyAssetIdB = "B_asset_id"
6361
6462 let keyFirstHarvestHeight = "first_harvest_height"
6563
6664 let keyfirstHarvestCpmm = "first_harvest"
67-
68-let keyTempPrevSum = "sum_reward_previous"
69-
70-let keyTempCurSum = "sum_reward_current"
7165
7266 let governanceAddress = Address(base58'3N5W8da2iiijVieA6qLGo7KzCJj8B19smWU')
7367
7468 let wallet = Address(base58'3NAGTtZz6WpupSN89NZD5rMZwwziZEg4Kx4')
7569
7670 let votingAddress = Address(base58'3MrJgdL1GniipErHy44YF9idzLaUL2iX5DQ')
7771
7872 let adminIncreaseInterestAddress = Address(base58'3NAGTtZz6WpupSN89NZD5rMZwwziZEg4Kx4')
7973
8074 let oneWeekInBlock = 10106
8175
8276 let totalVoteShare = 10000000000
8377
8478 let scaleValue1 = 10
8579
8680 let scaleValue3 = 1000
8781
8882 let scaleValue5 = 100000
8983
9084 let scaleValue6 = 1000000
9185
9286 let scaleValue8 = 100000000
9387
9488 let scaleValue11 = 100000000000
9589
9690 func strAssetIdA (pool) = getStringValue(pool, keyAssetIdA)
9791
9892
9993 func strAssetIdB (pool) = getStringValue(pool, keyAssetIdB)
10094
10195
10296 func assetIdA (pool) = if ((strAssetIdA(pool) == "WAVES"))
10397 then unit
10498 else fromBase58String(strAssetIdA(pool))
10599
106100
107101 func assetIdB (pool) = if ((strAssetIdB(pool) == "WAVES"))
108102 then unit
109103 else fromBase58String(strAssetIdB(pool))
110104
111105
112106 let kBasePeriod = "base_period"
113107
114108 let kPeriodLength = "period_length"
115109
116110 let kStartHeight = "start_height"
117111
118112 let kFirstHarvestHeight = "first_harvest_height"
119113
120114 let kDurationFullVotePower = "duration_full_vote_power"
121115
122116 let kMinVotePower = "min_vote_power"
123117
124118 let basePeriod = valueOrErrorMessage(getInteger(votingAddress, kBasePeriod), "Empty kBasePeriod")
125119
126120 let startHeight = valueOrErrorMessage(getInteger(votingAddress, kStartHeight), "Empty kStartHeight")
127121
128122 let periodLength = valueOrErrorMessage(getInteger(votingAddress, kPeriodLength), "Empty kPeriodLength")
129123
130124 let durationFullVotePower = valueOrErrorMessage(getInteger(votingAddress, kDurationFullVotePower), "Empty kDurationFullVotePower")
131125
132126 let minVotePower = valueOrErrorMessage(getInteger(votingAddress, kMinVotePower), "Empty kMinVotePower")
133127
134128 let currPeriod = (basePeriod + ((height - startHeight) / periodLength))
135129
136130 func getLimitToken (pool) = valueOrElse(getIntegerValue(pool, keyLimitShareFirstHarvest), 0)
137131
138132
139133 let APY = getIntegerValue(this, keyAPY)
140134
141135 let SwopYearEmission = getIntegerValue(this, keySwopYearEmission)
142136
143137 func assetNameA (pool) = match assetIdA(pool) {
144138 case id: ByteVector =>
145139 value(assetInfo(id)).name
146140 case waves: Unit =>
147141 "WAVES"
148142 case _ =>
149143 throw("Match error")
150144 }
151145
152146
153147 func assetNameB (pool) = match assetIdB(pool) {
154148 case id: ByteVector =>
155149 value(assetInfo(id)).name
156150 case waves: Unit =>
157151 "WAVES"
158152 case _ =>
159153 throw("Match error")
160154 }
161155
162156
163157 let SWOP = fromBase58String(getStringValue(this, keySWOPid))
164158
165159 func isFirstHarvest (pool) = valueOrElse(getBoolean(pool, keyfirstHarvestCpmm), false)
166160
167161
168162 func getHeightFirstHarvest (pool) = valueOrElse(getInteger(pool, keyFirstHarvestHeight), 0)
169163
170164
171165 func getBalanceA (pool) = valueOrErrorMessage(getInteger(pool, keyBalancecpmmA), ("No data on the key: " + keyBalancecpmmA))
172166
173167
174168 func getBalanceB (pool) = valueOrErrorMessage(getInteger(pool, keyBalancecpmmB), ("No data on the key: " + keyBalancecpmmB))
175169
176170
177171 func getShareLimitToken (pool) = valueOrErrorMessage(getInteger(pool, kShareLimit), ("No data on the key: " + kShareLimit))
178172
179173
180174 func getTotalShareTokenLocked (pool) = valueOrErrorMessage(getInteger(this, (pool + keyShareTokensLocked)), (("No data on the key: " + pool) + keyShareTokensLocked))
181175
182176
183177 func getShareAssetId (pool) = fromBase58String(getStringValue(value(addressFromString(pool)), "share_asset_id"))
184178
185179
186180 func getAssetInfo (assetId) = match assetId {
187181 case id: ByteVector =>
188182 let stringId = toBase58String(id)
189183 let info = valueOrErrorMessage(assetInfo(id), (("Asset " + stringId) + " doesn't exist"))
190184 $Tuple3(stringId, info.name, info.decimals)
191185 case waves: Unit =>
192186 $Tuple3("WAVES", "WAVES", 8)
193187 case _ =>
194188 throw("Match error")
195189 }
196190
197191
198192 func calcScaleValue (assetId1,assetId2) = {
199193 let assetId1Decimals = value(assetInfo(assetId1)).decimals
200194 let assetId2Decimals = value(assetInfo(assetId2)).decimals
201195 let scaleDigits = ((assetId2Decimals - assetId1Decimals) + 8)
202196 pow(10, 0, scaleDigits, 0, 0, HALFDOWN)
203197 }
204198
205199
206200 func userAvailableSWOP (pool,user) = valueOrElse(getInteger(this, (((pool + "_") + toString(user)) + keyAvailableSWOP)), 0)
207201
208202
209203 func rewardInfo (pool) = {
210204 let totalRewardPerBlockCurrent = valueOrErrorMessage(getInteger(governanceAddress, keyTotalRewardPerBlockCurrent), ((("No data on the key: " + keyTotalRewardPerBlockCurrent) + " at address ") + toString(governanceAddress)))
211205 let totalRewardPerBlockPrevious = valueOrErrorMessage(getInteger(governanceAddress, keyTotalRewardPerBlockPrevious), ((("No data on the key: " + keyTotalRewardPerBlockPrevious) + " at address ") + toString(governanceAddress)))
212206 let rewardPoolFractionCurrent = valueOrErrorMessage(getInteger(governanceAddress, (pool + keyRewardPoolFractionCurrent)), (((("No data on the key: " + pool) + keyRewardPoolFractionCurrent) + " at address ") + toString(governanceAddress)))
213207 let rewardUpdateHeight = valueOrErrorMessage(getInteger(governanceAddress, keyRewardUpdateHeight), ((("No data on the key: " + keyRewardUpdateHeight) + " at address ") + toString(governanceAddress)))
214- let poolRewardUpdateHeight = valueOrElse(getInteger(governanceAddress, (pool + keyHeightPoolFraction)), 0)
215208 let rewardPoolFractionPrevious = valueOrErrorMessage(getInteger(governanceAddress, (pool + keyRewardPoolFractionPrevious)), (((("No data on the key: " + pool) + keyRewardPoolFractionPrevious) + " at address ") + toString(governanceAddress)))
216209 let rewardPoolCurrent = fraction(totalRewardPerBlockCurrent, rewardPoolFractionCurrent, totalVoteShare)
217210 let rewardPoolPrevious = fraction(totalRewardPerBlockPrevious, rewardPoolFractionPrevious, totalVoteShare)
218211 if (if ((rewardPoolCurrent > totalRewardPerBlockCurrent))
219212 then true
220213 else (rewardPoolPrevious > totalRewardPerBlockPrevious))
221214 then throw("rewardPoolCurrent > totalRewardPerBlockCurrent or rewardPoolPrevious > totalRewardPerBlockPrevious")
222- else $Tuple4(rewardPoolCurrent, rewardUpdateHeight, rewardPoolPrevious, poolRewardUpdateHeight)
215+ else $Tuple3(rewardPoolCurrent, rewardUpdateHeight, rewardPoolPrevious)
223216 }
224217
225218
226219 func getLastInterestInfo (pool) = {
227220 let lastInterest = valueOrErrorMessage(getInteger(this, (pool + keyLastInterest)), (("No data on the key: " + pool) + keyLastInterest))
228221 let lastInterestHeight = valueOrElse(getInteger(this, (pool + keyLastInterestHeight)), height)
229222 $Tuple2(lastInterestHeight, lastInterest)
230223 }
231224
232225
233226 func getUserInterestInfo (pool,userAddress) = {
234227 let userLastInterest = getInteger(this, (((pool + "_") + toString(userAddress)) + keyUserLastInterest))
235228 let userShare = getInteger(this, (((pool + "_") + toString(userAddress)) + keyUserShareTokensLocked))
236229 let lastInterest = valueOrErrorMessage(getInteger(this, (pool + keyLastInterest)), (("No data on the key: " + pool) + keyLastInterest))
237230 let userLastInterestValue = match userLastInterest {
238231 case userLastInterest: Int =>
239232 userLastInterest
240233 case _ =>
241234 lastInterest
242235 }
243236 let userShareTokensAmount = match userShare {
244237 case userShare: Int =>
245238 userShare
246239 case _ =>
247240 0
248241 }
249242 $Tuple2(userLastInterestValue, userShareTokensAmount)
250243 }
251244
252245
253-func calcInterest (lastInterestHeight,rewardUpdateHeight,poolRewardUpdateHeight,lastInterest,currentRewardPerBlock,shareTokenLocked,previousRewardPerBlock,shareAssetId,scaleValue,pmtAmount) = if ((shareTokenLocked == 0))
246+func calcInterest (lastInterestHeight,rewardUpdateHeight,lastInterest,currentRewardPerBlock,shareTokenLocked,previousRewardPerBlock,shareAssetId,scaleValue,pmtAmount) = if ((shareTokenLocked == 0))
254247 then 0
255- else if ((poolRewardUpdateHeight != 0))
256- then if (if ((rewardUpdateHeight > height))
257- then (rewardUpdateHeight == poolRewardUpdateHeight)
258- else false)
248+ else if ((rewardUpdateHeight > height))
249+ then {
250+ let reward = (previousRewardPerBlock * (height - lastInterestHeight))
251+ (lastInterest + fraction(reward, scaleValue, shareTokenLocked))
252+ }
253+ else if ((lastInterestHeight > rewardUpdateHeight))
259254 then {
260- let reward = (previousRewardPerBlock * (height - lastInterestHeight))
255+ let reward = (currentRewardPerBlock * (height - lastInterestHeight))
261256 (lastInterest + fraction(reward, scaleValue, shareTokenLocked))
262257 }
263- else if (if ((height > rewardUpdateHeight))
264- then (rewardUpdateHeight != poolRewardUpdateHeight)
265- else false)
266- then {
267- let reward = (previousRewardPerBlock * (height - lastInterestHeight))
268- (lastInterest + fraction(reward, scaleValue, shareTokenLocked))
269- }
270- else if (if (if ((height > rewardUpdateHeight))
271- then (rewardUpdateHeight == poolRewardUpdateHeight)
272- else false)
273- then (lastInterestHeight > rewardUpdateHeight)
274- else false)
275- then {
276- let reward = (currentRewardPerBlock * (height - lastInterestHeight))
277- (lastInterest + fraction(reward, scaleValue, shareTokenLocked))
278- }
279- else {
280- let rewardAfterLastInterestBeforeReawardUpdate = (previousRewardPerBlock * (rewardUpdateHeight - lastInterestHeight))
281- let interestAfterUpdate = (lastInterest + fraction(rewardAfterLastInterestBeforeReawardUpdate, scaleValue, shareTokenLocked))
282- let reward = (currentRewardPerBlock * (height - rewardUpdateHeight))
283- (interestAfterUpdate + fraction(reward, scaleValue, shareTokenLocked))
284- }
285- else if ((rewardUpdateHeight > height))
286- then {
287- let reward = (previousRewardPerBlock * (height - lastInterestHeight))
288- (lastInterest + fraction(reward, scaleValue, shareTokenLocked))
258+ else {
259+ let rewardAfterLastInterestBeforeReawardUpdate = (previousRewardPerBlock * (rewardUpdateHeight - lastInterestHeight))
260+ let interestAfterUpdate = (lastInterest + fraction(rewardAfterLastInterestBeforeReawardUpdate, scaleValue, shareTokenLocked))
261+ let reward = (currentRewardPerBlock * (height - rewardUpdateHeight))
262+ (interestAfterUpdate + fraction(reward, scaleValue, shareTokenLocked))
289263 }
290- else if ((lastInterestHeight > rewardUpdateHeight))
291- then {
292- let reward = (currentRewardPerBlock * (height - lastInterestHeight))
293- (lastInterest + fraction(reward, scaleValue, shareTokenLocked))
294- }
295- else {
296- let rewardAfterLastInterestBeforeReawardUpdate = (previousRewardPerBlock * (rewardUpdateHeight - lastInterestHeight))
297- let interestAfterUpdate = (lastInterest + fraction(rewardAfterLastInterestBeforeReawardUpdate, scaleValue, shareTokenLocked))
298- let reward = (currentRewardPerBlock * (height - rewardUpdateHeight))
299- (interestAfterUpdate + fraction(reward, scaleValue, shareTokenLocked))
300- }
301264
302265
303266 func claimCalc (pool,caller,pmtAmount) = {
304267 let shareAssetId = getShareAssetId(pool)
305268 let scaleValue = calcScaleValue(SWOP, shareAssetId)
306269 let shareTokenLocked = getTotalShareTokenLocked(pool)
307- let $t01287012935 = getLastInterestInfo(pool)
308- let lastInterestHeight = $t01287012935._1
309- let lastInterest = $t01287012935._2
310- let $t01294013052 = rewardInfo(pool)
311- let currentRewardPerBlock = $t01294013052._1
312- let rewardUpdateHeight = $t01294013052._2
313- let previousRewardPerBlock = $t01294013052._3
314- let poolRewardUpdateHeight = $t01294013052._4
315- let $t01305713136 = getUserInterestInfo(pool, caller)
316- let userLastInterest = $t01305713136._1
317- let userShareTokensAmount = $t01305713136._2
318- let currentInterest = calcInterest(lastInterestHeight, rewardUpdateHeight, poolRewardUpdateHeight, lastInterest, currentRewardPerBlock, shareTokenLocked, previousRewardPerBlock, shareAssetId, scaleValue, pmtAmount)
270+ let $t01086210927 = getLastInterestInfo(pool)
271+ let lastInterestHeight = $t01086210927._1
272+ let lastInterest = $t01086210927._2
273+ let $t01093211020 = rewardInfo(pool)
274+ let currentRewardPerBlock = $t01093211020._1
275+ let rewardUpdateHeight = $t01093211020._2
276+ let previousRewardPerBlock = $t01093211020._3
277+ let $t01102511104 = getUserInterestInfo(pool, caller)
278+ let userLastInterest = $t01102511104._1
279+ let userShareTokensAmount = $t01102511104._2
280+ let currentInterest = calcInterest(lastInterestHeight, rewardUpdateHeight, lastInterest, currentRewardPerBlock, shareTokenLocked, previousRewardPerBlock, shareAssetId, scaleValue, pmtAmount)
319281 let claimAmount = fraction(userShareTokensAmount, (currentInterest - userLastInterest), scaleValue)
320282 let userNewInterest = currentInterest
321283 $Tuple4(userNewInterest, currentInterest, claimAmount, userShareTokensAmount)
322284 }
323285
324286
325287 func calculateProtocolReward (pool) = {
326- let $t01365413719 = getLastInterestInfo(pool)
327- let lastInterestHeight = $t01365413719._1
328- let lastInterest = $t01365413719._2
329- let $t01372413835 = rewardInfo(pool)
330- let currentRewardPerBlock = $t01372413835._1
331- let rewardUpdateHeight = $t01372413835._2
332- let previousRewardPerBlock = $t01372413835._3
333- let poolRewardUpdateHeight = $t01372413835._4
288+ let $t01157711642 = getLastInterestInfo(pool)
289+ let lastInterestHeight = $t01157711642._1
290+ let lastInterest = $t01157711642._2
291+ let $t01164711735 = rewardInfo(pool)
292+ let currentRewardPerBlock = $t01164711735._1
293+ let rewardUpdateHeight = $t01164711735._2
294+ let previousRewardPerBlock = $t01164711735._3
334295 let shareTokenLocked = getTotalShareTokenLocked(pool)
335- if (if ((shareTokenLocked == 0))
336- then (poolRewardUpdateHeight == 0)
337- else false)
296+ if ((shareTokenLocked == 0))
338297 then if ((rewardUpdateHeight > height))
339298 then {
340299 let reward = (previousRewardPerBlock * (height - lastInterestHeight))
341300 reward
342301 }
343302 else if ((lastInterestHeight > rewardUpdateHeight))
344303 then {
345304 let reward = (currentRewardPerBlock * (height - lastInterestHeight))
346305 reward
347306 }
348307 else {
349308 let rewardAfterLastInterestBeforeReawardUpdate = (previousRewardPerBlock * (rewardUpdateHeight - lastInterestHeight))
350309 let reward = (currentRewardPerBlock * (height - rewardUpdateHeight))
351310 (reward + rewardAfterLastInterestBeforeReawardUpdate)
352311 }
353- else if (if ((shareTokenLocked == 0))
354- then (poolRewardUpdateHeight != 0)
355- else false)
356- then if (if ((rewardUpdateHeight > height))
357- then (rewardUpdateHeight == poolRewardUpdateHeight)
358- else false)
359- then {
360- let reward = (previousRewardPerBlock * (height - lastInterestHeight))
361- reward
362- }
363- else if (if ((height > rewardUpdateHeight))
364- then (rewardUpdateHeight != poolRewardUpdateHeight)
365- else false)
366- then {
367- let reward = (previousRewardPerBlock * (height - lastInterestHeight))
368- reward
369- }
370- else if (if (if ((height > rewardUpdateHeight))
371- then (rewardUpdateHeight == poolRewardUpdateHeight)
372- else false)
373- then (lastInterestHeight > rewardUpdateHeight)
374- else false)
375- then {
376- let reward = (currentRewardPerBlock * (height - lastInterestHeight))
377- reward
378- }
379- else {
380- let rewardAfterLastInterestBeforeReawardUpdate = (previousRewardPerBlock * (rewardUpdateHeight - lastInterestHeight))
381- let reward = (currentRewardPerBlock * (height - rewardUpdateHeight))
382- (reward + rewardAfterLastInterestBeforeReawardUpdate)
383- }
384- else 0
312+ else 0
385313 }
386314
387315
388316 func checkPmtAssetIdCorrect (pool,pmtAssetId) = {
389317 let poolShareAssetId = fromBase58String(getStringValue(value(addressFromString(pool)), "share_asset_id"))
390318 if ((pmtAssetId == poolShareAssetId))
391319 then true
392320 else false
393321 }
394322
395323
396324 func getUserSWOPClaimedAmount (pool,user) = valueOrElse(getInteger(this, (((pool + "_") + toString(user)) + keyUserSWOPClaimedAmount)), 0)
397325
398326
399327 @Callable(i)
400328 func init (earlyLP) = if (isDefined(getString(this, keySWOPid)))
401329 then throw("SWOP already initialized")
402330 else {
403331 let initAmount = 100000000000000
404332 let SWOPissue = Issue("SWOP", "SWOP protocol token", initAmount, 8, true)
405333 let SWOPid = calculateAssetId(SWOPissue)
406334 [Issue("SWOP", "SWOP protocol token", initAmount, 8, true), StringEntry(keySWOPid, toBase58String(SWOPid))]
407335 }
408336
409337
410338
411339 @Callable(i)
412340 func initPoolShareFarming (pool) = if ((i.caller != this))
413341 then throw("Only the DApp itself can call this function")
414342 else {
415- let $t01667516778 = rewardInfo(pool)
416- let currentReward = $t01667516778._1
417- let rewardUpdateHeight = $t01667516778._2
418- let previousRewardPerBlock = $t01667516778._3
419- let poolRewardUpdateHeight = $t01667516778._4
343+ let $t01348913569 = rewardInfo(pool)
344+ let currentReward = $t01348913569._1
345+ let rewardUpdateHeight = $t01348913569._2
346+ let previousRewardPerBlock = $t01348913569._3
420347 [IntegerEntry((pool + keyShareTokensLocked), 0), IntegerEntry((pool + keyLastInterest), 0), IntegerEntry((pool + keyLastInterestHeight), height)]
421348 }
422349
423350
424351
425352 @Callable(i)
426353 func updatePoolInterest (pool) = if ((i.caller != wallet))
427354 then throw("Only the Admin itself can call this function")
428355 else {
429- let $t01711217232 = claimCalc(pool, adminIncreaseInterestAddress, 0)
430- let userNewInterest = $t01711217232._1
431- let currentInterest = $t01711217232._2
432- let claimAmount = $t01711217232._3
433- let userShareTokensAmount = $t01711217232._4
434- let $t01723717340 = rewardInfo(pool)
435- let currentReward = $t01723717340._1
436- let rewardUpdateHeight = $t01723717340._2
437- let previousRewardPerBlock = $t01723717340._3
438- let poolRewardUpdateHeight = $t01723717340._4
439-[IntegerEntry((pool + keyLastInterest), userNewInterest), IntegerEntry((pool + keyLastInterestHeight), height)]
356+ let $t01390714027 = claimCalc(pool, adminIncreaseInterestAddress, 0)
357+ let userNewInterest = $t01390714027._1
358+ let currentInterest = $t01390714027._2
359+ let claimAmount = $t01390714027._3
360+ let userShareTokensAmount = $t01390714027._4
361+ let $t01403214112 = rewardInfo(pool)
362+ let currentReward = $t01403214112._1
363+ let rewardUpdateHeight = $t01403214112._2
364+ let previousRewardPerBlock = $t01403214112._3
365+[IntegerEntry((pool + keyShareTokensLocked), 0), IntegerEntry((pool + keyLastInterest), userNewInterest), IntegerEntry((pool + keyLastInterestHeight), height)]
440366 }
441367
442368
443369
444370 @Callable(i)
445371 func lockShareTokens (pool) = {
446- let $t01753217607 = $Tuple2(i.payments[0].amount, i.payments[0].assetId)
447- let pmtAmount = $t01753217607._1
448- let pmtAssetId = $t01753217607._2
449- let $t01761217685 = getAssetInfo(pmtAssetId)
450- let pmtStrAssetId = $t01761217685._1
451- let pmtAssetName = $t01761217685._2
452- let pmtDecimals = $t01761217685._3
453- let $t01769017798 = claimCalc(pool, i.caller, pmtAmount)
454- let userNewInterest = $t01769017798._1
455- let currentInterest = $t01769017798._2
456- let claimAmount = $t01769017798._3
457- let userShareTokensAmount = $t01769017798._4
372+ let $t01435814433 = $Tuple2(i.payments[0].amount, i.payments[0].assetId)
373+ let pmtAmount = $t01435814433._1
374+ let pmtAssetId = $t01435814433._2
375+ let $t01443814511 = getAssetInfo(pmtAssetId)
376+ let pmtStrAssetId = $t01443814511._1
377+ let pmtAssetName = $t01443814511._2
378+ let pmtDecimals = $t01443814511._3
379+ let $t01451614624 = claimCalc(pool, i.caller, pmtAmount)
380+ let userNewInterest = $t01451614624._1
381+ let currentInterest = $t01451614624._2
382+ let claimAmount = $t01451614624._3
383+ let userShareTokensAmount = $t01451614624._4
458384 let userShareAmountNew = (userShareTokensAmount + pmtAmount)
459385 let availableFundsNew = (userAvailableSWOP(pool, i.caller) + claimAmount)
460386 let totalShareAmount = getTotalShareTokenLocked(pool)
461387 let totalShareAmountNew = (totalShareAmount + pmtAmount)
462388 let userClaimedAmount = getUserSWOPClaimedAmount(pool, i.caller)
463389 let userClaimedAmountNew = (userClaimedAmount + claimAmount)
464390 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)]
465391 if ((0 >= pmtAmount))
466392 then throw("You can't lock token")
467393 else if (!(checkPmtAssetIdCorrect(pool, pmtAssetId)))
468394 then throw("Incorrect pmtAssetId")
469395 else if (if (isFirstHarvest(Address(fromBase58String(pool))))
470396 then (getHeightFirstHarvest(Address(fromBase58String(pool))) > height)
471397 else false)
472398 then {
473399 let harvestPeriod = ((((getHeightFirstHarvest(Address(fromBase58String(pool))) - startHeight) + 1) / periodLength) - 1)
474400 let amountOfVoting = split(getStringValue(votingAddress, (((toString(i.caller) + "_") + pool) + "_user_pool_struc")), "_")
475401 let amountPoolStract = split(getStringValue(votingAddress, (pool + "_pool_struc")), "_")
476402 let amountActiveVoteUserPoolStract = split(valueOrElse(getString(votingAddress, (((toString(i.caller) + "_") + pool) + kHarvestUserPoolActiveVoteStrucVoting)), ""), "_")
477403 let amountPoolActiveVoteStract = split(valueOrElse(getString(votingAddress, (pool + kHarvestPoolActiveVoteStrucVoting)), ""), "_")
478404 let userShareTokenLocked = userShareTokensAmount
479405 let userPoolActiveVote = if ((toString(currPeriod) == amountOfVoting[2]))
480406 then valueOrElse(parseInt(amountActiveVoteUserPoolStract[0]), 0)
481407 else valueOrElse(parseInt(amountOfVoting[1]), 0)
482408 let poolActiveVote = if ((toString(currPeriod) == amountPoolStract[2]))
483409 then valueOrElse(parseInt(amountPoolActiveVoteStract[0]), 0)
484410 else valueOrElse(parseInt(amountPoolStract[1]), 0)
485411 let protocolReward = calculateProtocolReward(pool)
486412 if ((userPoolActiveVote != 0))
487413 then {
488414 let limitShareToken = getShareLimitToken(addressFromStringValue(pool))
489415 let shareToken = (fraction(limitShareToken, userPoolActiveVote, poolActiveVote) - userShareTokenLocked)
490416 if (if ((size(amountActiveVoteUserPoolStract) > 1))
491417 then (valueOrElse(parseInt(amountActiveVoteUserPoolStract[1]), 0) >= harvestPeriod)
492418 else false)
493419 then throw("You can't share token")
494420 else if ((pmtAmount > limitShareToken))
495421 then throw(("You can't share token more than " + toString(limitShareToken)))
496422 else if ((shareToken > 0))
497423 then if ((totalShareAmount == 0))
498424 then (baseEntry ++ [Reissue(SWOP, protocolReward, true), ScriptTransfer(wallet, protocolReward, SWOP)])
499425 else if ((shareToken >= pmtAmount))
500426 then baseEntry
501427 else throw(("Your maximum share token is " + toString(shareToken)))
502428 else throw("You can't share token")
503429 }
504430 else throw("Your amount of token less than 0")
505431 }
506432 else baseEntry
507433 }
508434
509435
510436
511437 @Callable(i)
512438 func withdrawShareTokens (pool,shareTokensWithdrawAmount) = {
513439 let shareTokensId = fromBase58String(getStringValue(value(addressFromString(pool)), "share_asset_id"))
514- let $t02199222092 = claimCalc(pool, i.caller, 1)
515- let userNewInterest = $t02199222092._1
516- let currentInterest = $t02199222092._2
517- let claimAmount = $t02199222092._3
518- let userShareTokensAmount = $t02199222092._4
440+ let $t01881818918 = claimCalc(pool, i.caller, 1)
441+ let userNewInterest = $t01881818918._1
442+ let currentInterest = $t01881818918._2
443+ let claimAmount = $t01881818918._3
444+ let userShareTokensAmount = $t01881818918._4
519445 let userShareAmountNew = (userShareTokensAmount - shareTokensWithdrawAmount)
520446 let availableFundsNew = (userAvailableSWOP(pool, i.caller) + claimAmount)
521447 let totalShareAmount = getTotalShareTokenLocked(pool)
522448 let totalShareAmountNew = (totalShareAmount - shareTokensWithdrawAmount)
523449 let userClaimedAmount = getUserSWOPClaimedAmount(pool, i.caller)
524450 let userClaimedAmountNew = (userClaimedAmount + claimAmount)
525451 if ((shareTokensWithdrawAmount > userShareTokensAmount))
526452 then throw("Withdraw amount more then user locked amount")
527453 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)]
528454 }
529455
530456
531457
532458 @Callable(i)
533459 func claim (pool) = {
534460 let shareTokenLocked = getTotalShareTokenLocked(pool)
535- let $t02358523650 = getLastInterestInfo(pool)
536- let lastInterestHeight = $t02358523650._1
537- let lastInterest = $t02358523650._2
538- let $t02365523767 = rewardInfo(pool)
539- let currentRewardPerBlock = $t02365523767._1
540- let rewardUpdateHeight = $t02365523767._2
541- let previousRewardPerBlock = $t02365523767._3
542- let poolRewardUpdateHeight = $t02365523767._4
543- let $t02377223872 = claimCalc(pool, i.caller, 1)
544- let userNewInterest = $t02377223872._1
545- let currentInterest = $t02377223872._2
546- let claimAmount = $t02377223872._3
547- let userShareTokensAmount = $t02377223872._4
461+ let $t02043120496 = getLastInterestInfo(pool)
462+ let lastInterestHeight = $t02043120496._1
463+ let lastInterest = $t02043120496._2
464+ let $t02050120590 = rewardInfo(pool)
465+ let currentRewardPerBlock = $t02050120590._1
466+ let rewardUpdateHeight = $t02050120590._2
467+ let previousRewardPerBlock = $t02050120590._3
468+ let $t02059520695 = claimCalc(pool, i.caller, 1)
469+ let userNewInterest = $t02059520695._1
470+ let currentInterest = $t02059520695._2
471+ let claimAmount = $t02059520695._3
472+ let userShareTokensAmount = $t02059520695._4
548473 let availableFund = (userAvailableSWOP(pool, i.caller) + claimAmount)
549474 let userClaimedAmount = getUserSWOPClaimedAmount(pool, i.caller)
550475 let userClaimedAmountNew = (userClaimedAmount + claimAmount)
551476 if ((availableFund == 0))
552477 then throw("You have 0 available SWOP")
553478 else [IntegerEntry((((pool + "_") + toString(i.caller)) + keyUserLastInterest), userNewInterest), IntegerEntry((pool + keyLastInterest), currentInterest), IntegerEntry((pool + keyLastInterestHeight), height), IntegerEntry((((pool + "_") + toString(i.caller)) + keyAvailableSWOP), 0), Reissue(SWOP, availableFund, true), IntegerEntry((((pool + "_") + toString(i.caller)) + keyUserSWOPClaimedAmount), userClaimedAmountNew), IntegerEntry((((pool + "_") + toString(i.caller)) + keyUserSWOPLastClaimedAmount), claimAmount), ScriptTransfer(i.caller, availableFund, SWOP)]
554479 }
555480
556481
557482 @Verifier(tx)
558483 func verify () = match tx {
559484 case _ =>
560485 sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
561486 }
562487

github/deemru/w8io/169f3d6 
72.62 ms