tx · HbXLRV7N1AzeRxxZ2yH7TUvEYWm9q23k3t3SPyzsfxLV

3N7NyhNuAsjhx5uFqDqt4Y51hK4FBVi4MHn:  -0.01400000 Waves

2021.03.08 01:09 [1427853] smart account 3N7NyhNuAsjhx5uFqDqt4Y51hK4FBVi4MHn > SELF 0.00000000 Waves

{ "type": 13, "id": "HbXLRV7N1AzeRxxZ2yH7TUvEYWm9q23k3t3SPyzsfxLV", "fee": 1400000, "feeAssetId": null, "timestamp": 1615155009985, "version": 1, "sender": "3N7NyhNuAsjhx5uFqDqt4Y51hK4FBVi4MHn", "senderPublicKey": "79j6PNv9aCQZpss88M5Y7J41MDsKbMrG2Lf69wQ6R6Rd", "proofs": [ "5GDQx6sYbbxBAQdz4KnkmodS3BZwBeqBGMt5MEojDxxjxjLtMXP5AH4rvi6jyfpeAHHaApzv3DVumAhxPYoUqkBG" ], "script": "base64:AAIEAAAAAAAAABwIAhIDCgEIEgMKAQgSAwoBCBIECgIIARIDCgEIAAAAIgAAAAAMYWRtaW5QdWJLZXkxAQAAACC6Cdc7iVmk0V2g//G7M9Cq4TlpD8vivZHWO+5PXqjgEwAAAAAMYWRtaW5QdWJLZXkyAQAAACDCkUSZs9KwtA0ipZFYvYi8oTe7CMv/3YzmlO9bFg5+QAAAAAAMYWRtaW5QdWJLZXkzAQAAACCOHhcueLEHO/RITnozKGB2KHf8meWSMKMgws+oq+kOVQAAAAAUa2V5U2hhcmVUb2tlbnNMb2NrZWQCAAAAGl90b3RhbF9zaGFyZV90b2tlbnNfbG9ja2VkAAAAABxrZXlSZXdhcmRQb29sRnJhY3Rpb25DdXJyZW50AgAAAB1fcG9vbF9mcmFjdGlvbl9yZXdhcmRfY3VycmVudAAAAAAda2V5UmV3YXJkUG9vbEZyYWN0aW9uUHJldmlvdXMCAAAAHl9wb29sX2ZyYWN0aW9uX3Jld2FyZF9wcmV2aW91cwAAAAAWa2V5VG90YWxSZXdhcmRQZXJCbG9jawIAAAAWdG90YWxfcmV3YXJkX3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mVzdEhlaWdodAUAAAAGaGVpZ2h0CQAETAAAAAIJAQAAAAxJbnRlZ2VyRW50cnkAAAACCQABLAAAAAIJAAEsAAAAAgkAASwAAAACBQAAAARwb29sAgAAAAFfCQAEJQAAAAEIBQAAAAFpAAAABmNhbGxlcgUAAAAQa2V5QXZhaWxhYmxlU1dPUAAAAAAAAAAAAAkABEwAAAACCQEAAAAHUmVpc3N1ZQAAAAMFAAAABFNXT1AFAAAADWF2YWlsYWJsZUZ1bmQGCQAETAAAAAIJAQAAAAxJbnRlZ2VyRW50cnkAAAACCQABLAAAAAIJAAEsAAAAAgkAASwAAAACBQAAAARwb29sAgAAAAFfCQAEJQAAAAEIBQAAAAFpAAAABmNhbGxlcgUAAAAYa2V5VXNlclNXT1BDbGFpbWVkQW1vdW50BQAAABR1c2VyQ2xhaW1lZEFtb3VudE5ldwkABEwAAAACCQEAAAAMSW50ZWdlckVudHJ5AAAAAgkAASwAAAACCQABLAAAAAIJAAEsAAAAAgUAAAAEcG9vbAIAAAABXwkABCUAAAABCAUAAAABaQAAAAZjYWxsZXIFAAAAHGtleVVzZXJTV09QTGFzdENsYWltZWRBbW91bnQFAAAAC2NsYWltQW1vdW50CQAETAAAAAIJAQAAAA5TY3JpcHRUcmFuc2ZlcgAAAAMIBQAAAAFpAAAABmNhbGxlcgUAAAANYXZhaWxhYmxlRnVuZAUAAAAEU1dPUAUAAAADbmlsAAAAAPRpI+Y=", "chainId": 84, "height": 1427853, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: GR31h5royhWJ3Ussi4ZbJiKcCVVgbmJ6BWLiikqoGjr4 Next: AyqFReN9qX5mGqgp2xSdyBbjMQ8ZWmX9eNL5Zz2LRHNk Diff:
OldNewDifferences
1313
1414 let keyRewardPoolFractionPrevious = "_pool_fraction_reward_previous"
1515
16-let keyTotalRewardPerBlockCurrent = "total_reward_per_block_current"
17-
18-let keyTotalRewardPerBlockPrevious = "total_reward_per_block_previous"
16+let keyTotalRewardPerBlock = "total_reward_per_block"
1917
2018 let keyRewardUpdateHeight = "_reward_update_height"
2119
6765
6866
6967 func rewardInfo (pool) = {
70- let totalRewardPerBlockCurrent = valueOrErrorMessage(getInteger(votingAddress, keyTotalRewardPerBlockCurrent), ((("No data on the key: " + keyTotalRewardPerBlockCurrent) + " at address ") + toString(votingAddress)))
71- let totalRewardPerBlockPrevious = valueOrErrorMessage(getInteger(votingAddress, keyTotalRewardPerBlockPrevious), ((("No data on the key: " + keyTotalRewardPerBlockPrevious) + " at address ") + toString(votingAddress)))
68+ let totalRewardPerBlock = valueOrErrorMessage(getInteger(votingAddress, keyTotalRewardPerBlock), ((("No data on the key: " + keyTotalRewardPerBlock) + " at address ") + toString(votingAddress)))
7269 let rewardPoolFractionCurrent = valueOrErrorMessage(getInteger(votingAddress, (pool + keyRewardPoolFractionCurrent)), (((("No data on the key: " + pool) + keyRewardPoolFractionCurrent) + " at address ") + toString(votingAddress)))
7370 let rewardUpdateHeight = valueOrErrorMessage(getInteger(votingAddress, (pool + keyRewardUpdateHeight)), (((("No data on the key: " + pool) + keyRewardUpdateHeight) + " at address ") + toString(votingAddress)))
7471 let rewardPoolFractionPrevious = valueOrErrorMessage(getInteger(votingAddress, (pool + keyRewardPoolFractionPrevious)), (((("No data on the key: " + pool) + keyRewardPoolFractionPrevious) + " at address ") + toString(votingAddress)))
75- let rewardPoolCurrent = fraction(totalRewardPerBlockCurrent, rewardPoolFractionCurrent, totalVoteShare)
76- let rewardPoolPrevious = fraction(totalRewardPerBlockPrevious, rewardPoolFractionPrevious, totalVoteShare)
77- if (if ((rewardPoolCurrent > totalRewardPerBlockCurrent))
72+ let rewardPoolCurrent = fraction(totalRewardPerBlock, rewardPoolFractionCurrent, totalVoteShare)
73+ let rewardPoolPrevious = fraction(totalRewardPerBlock, rewardPoolFractionPrevious, totalVoteShare)
74+ if (if ((rewardPoolCurrent > totalRewardPerBlock))
7875 then true
79- else (rewardPoolPrevious > totalRewardPerBlockPrevious))
76+ else (rewardPoolPrevious > totalRewardPerBlock))
8077 then throw("rewardPoolCurrent > totalRewardPerBlockCurrent or rewardPoolPrevious > totalRewardPerBlockPrevious")
8178 else $Tuple3(rewardPoolCurrent, rewardUpdateHeight, rewardPoolPrevious)
8279 }
133130 let shareAssetId = getShareAssetId(pool)
134131 let scaleValue = calcScaleValue(SWOP, shareAssetId)
135132 let shareTokenLocked = getTotalShareTokenLocked(pool)
136- let $t071667231 = getLastInterestInfo(pool)
137- let lastInterestHeight = $t071667231._1
138- let lastInterest = $t071667231._2
139- let $t072367324 = rewardInfo(pool)
140- let currentRewardPerBlock = $t072367324._1
141- let rewardUpdateHeight = $t072367324._2
142- let previousRewardPerBlock = $t072367324._3
143- let $t073297408 = getUserInterestInfo(pool, caller)
144- let userLastInterest = $t073297408._1
145- let userShareTokensAmount = $t073297408._2
133+ let $t067766841 = getLastInterestInfo(pool)
134+ let lastInterestHeight = $t067766841._1
135+ let lastInterest = $t067766841._2
136+ let $t068466934 = rewardInfo(pool)
137+ let currentRewardPerBlock = $t068466934._1
138+ let rewardUpdateHeight = $t068466934._2
139+ let previousRewardPerBlock = $t068466934._3
140+ let $t069397018 = getUserInterestInfo(pool, caller)
141+ let userLastInterest = $t069397018._1
142+ let userShareTokensAmount = $t069397018._2
146143 let currentInterest = calcInterest(lastInterestHeight, rewardUpdateHeight, lastInterest, currentRewardPerBlock, shareTokenLocked, previousRewardPerBlock, shareAssetId, scaleValue, pmtAmount)
147144 let claimAmount = fraction(userShareTokensAmount, (currentInterest - userLastInterest), scaleValue)
148145 let userNewInterest = currentInterest
175172
176173 @Callable(i)
177174 func initPoolShareFarming (pool) = {
178- let $t089469026 = rewardInfo(pool)
179- let currentReward = $t089469026._1
180- let rewardUpdateHeight = $t089469026._2
181- let previousRewardPerBlock = $t089469026._3
175+ let $t085568636 = rewardInfo(pool)
176+ let currentReward = $t085568636._1
177+ let rewardUpdateHeight = $t085568636._2
178+ let previousRewardPerBlock = $t085568636._3
182179 [IntegerEntry((pool + keyShareTokensLocked), 0), IntegerEntry((pool + keyLastInterest), 0), IntegerEntry((pool + keyRewardPoolFractionCurrent), currentReward), IntegerEntry((pool + keyRewardUpdateHeight), rewardUpdateHeight), IntegerEntry((pool + keyRewardPoolFractionPrevious), previousRewardPerBlock)]
183180 }
184181
186183
187184 @Callable(i)
188185 func lockShareTokens (pool) = {
189- let $t094299504 = $Tuple2(i.payments[0].amount, i.payments[0].assetId)
190- let pmtAmount = $t094299504._1
191- let pmtAssetId = $t094299504._2
186+ let $t090399114 = $Tuple2(i.payments[0].amount, i.payments[0].assetId)
187+ let pmtAmount = $t090399114._1
188+ let pmtAssetId = $t090399114._2
192189 if ((farmingStartHeight > height))
193190 then if (!(checkPmtAssetIdCorrect(pool, pmtAssetId)))
194191 then throw("Incorrect pmtAssetId")
203200 else if (!(checkPmtAssetIdCorrect(pool, pmtAssetId)))
204201 then throw("Incorrect pmtAssetId")
205202 else {
206- let $t01053110639 = claimCalc(pool, i.caller, pmtAmount)
207- let userNewInterest = $t01053110639._1
208- let currentInterest = $t01053110639._2
209- let claimAmount = $t01053110639._3
210- let userShareTokensAmount = $t01053110639._4
203+ let $t01014110249 = claimCalc(pool, i.caller, pmtAmount)
204+ let userNewInterest = $t01014110249._1
205+ let currentInterest = $t01014110249._2
206+ let claimAmount = $t01014110249._3
207+ let userShareTokensAmount = $t01014110249._4
211208 let userShareAmountNew = (userShareTokensAmount + pmtAmount)
212209 let availableFundsNew = (userAvailableSWOP(pool, i.caller) + claimAmount)
213210 let totalShareAmount = getTotalShareTokenLocked(pool)
237234 }
238235 }
239236 else {
240- let $t01306513165 = claimCalc(pool, i.caller, 1)
241- let userNewInterest = $t01306513165._1
242- let currentInterest = $t01306513165._2
243- let claimAmount = $t01306513165._3
244- let userShareTokensAmount = $t01306513165._4
237+ let $t01267512775 = claimCalc(pool, i.caller, 1)
238+ let userNewInterest = $t01267512775._1
239+ let currentInterest = $t01267512775._2
240+ let claimAmount = $t01267512775._3
241+ let userShareTokensAmount = $t01267512775._4
245242 if ((shareTokensWithdrawAmount > userShareTokensAmount))
246243 then throw("Withdraw amount more then user locked amount")
247244 else {
263260 then throw((("This method will be active after " + toString(farmingStartHeight)) + " height"))
264261 else {
265262 let shareTokenLocked = getTotalShareTokenLocked(pool)
266- let $t01478914854 = getLastInterestInfo(pool)
267- let lastInterestHeight = $t01478914854._1
268- let lastInterest = $t01478914854._2
269- let $t01485914948 = rewardInfo(pool)
270- let currentRewardPerBlock = $t01485914948._1
271- let rewardUpdateHeight = $t01485914948._2
272- let previousRewardPerBlock = $t01485914948._3
273- let $t01495315053 = claimCalc(pool, i.caller, 1)
274- let userNewInterest = $t01495315053._1
275- let currentInterest = $t01495315053._2
276- let claimAmount = $t01495315053._3
277- let userShareTokensAmount = $t01495315053._4
263+ let $t01439914464 = getLastInterestInfo(pool)
264+ let lastInterestHeight = $t01439914464._1
265+ let lastInterest = $t01439914464._2
266+ let $t01446914558 = rewardInfo(pool)
267+ let currentRewardPerBlock = $t01446914558._1
268+ let rewardUpdateHeight = $t01446914558._2
269+ let previousRewardPerBlock = $t01446914558._3
270+ let $t01456314663 = claimCalc(pool, i.caller, 1)
271+ let userNewInterest = $t01456314663._1
272+ let currentInterest = $t01456314663._2
273+ let claimAmount = $t01456314663._3
274+ let userShareTokensAmount = $t01456314663._4
278275 let availableFund = (userAvailableSWOP(pool, i.caller) + claimAmount)
279276 let userClaimedAmount = getUserSWOPClaimedAmount(pool, i.caller)
280277 let userClaimedAmountNew = (userClaimedAmount + claimAmount)
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 4 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let adminPubKey1 = base58'DXDY2itiEcYBtGkVLnkpHtDFyWQUkoLJz79uJ7ECbMrA'
55
66 let adminPubKey2 = base58'E6Wa1SGoktYcjHjsKrvjMiqJY3SWmGKcD8Q5L8kxSPS7'
77
88 let adminPubKey3 = base58'AZmWJtuy4GeVrMmJH4hfFBRApe1StvhJSk4jcbT6bArQ'
99
1010 let keyShareTokensLocked = "_total_share_tokens_locked"
1111
1212 let keyRewardPoolFractionCurrent = "_pool_fraction_reward_current"
1313
1414 let keyRewardPoolFractionPrevious = "_pool_fraction_reward_previous"
1515
16-let keyTotalRewardPerBlockCurrent = "total_reward_per_block_current"
17-
18-let keyTotalRewardPerBlockPrevious = "total_reward_per_block_previous"
16+let keyTotalRewardPerBlock = "total_reward_per_block"
1917
2018 let keyRewardUpdateHeight = "_reward_update_height"
2119
2220 let keyLastInterest = "_last_interest"
2321
2422 let keyLastInterestHeight = "_last_interest_height"
2523
2624 let keyUserShareTokensLocked = "_share_tokens_locked"
2725
2826 let keyUserLastInterest = "_last_interest"
2927
3028 let keySWOPid = "SWOP_id"
3129
3230 let keyUserSWOPClaimedAmount = "_SWOP_claimed_amount"
3331
3432 let keyUserSWOPLastClaimedAmount = "_SWOP_last_claimed_amount"
3533
3634 let keyAvailableSWOP = "_available_SWOP"
3735
3836 let keyFarmingStartHeight = "farming_start_height"
3937
4038 let votingAddress = Address(base58'3MqhxbxHEMtp2Rwy1gUb6cPSJHQepdap1Yp')
4139
4240 let oneWeekInBlock = 10106
4341
4442 let totalVoteShare = 10000000000
4543
4644 let SWOP = fromBase58String(getStringValue(this, keySWOPid))
4745
4846 let farmingStartHeight = valueOrErrorMessage(getInteger(this, keyFarmingStartHeight), ("No data on the key: " + keyFarmingStartHeight))
4947
5048 let farmingPreStartHeight = (farmingStartHeight - oneWeekInBlock)
5149
5250 func getTotalShareTokenLocked (pool) = valueOrErrorMessage(getInteger(this, (pool + keyShareTokensLocked)), (("No data on the key: " + pool) + keyShareTokensLocked))
5351
5452
5553 func getShareAssetId (pool) = fromBase58String(getStringValue(value(addressFromString(pool)), "share_asset_id"))
5654
5755
5856 func calcScaleValue (assetId1,assetId2) = {
5957 let assetId1Decimals = value(assetInfo(assetId1)).decimals
6058 let assetId2Decimals = value(assetInfo(assetId2)).decimals
6159 let scaleDigits = ((assetId2Decimals - assetId1Decimals) + 8)
6260 pow(10, 0, scaleDigits, 0, 0, HALFDOWN)
6361 }
6462
6563
6664 func userAvailableSWOP (pool,user) = valueOrElse(getInteger(this, (((pool + "_") + toString(user)) + keyAvailableSWOP)), 0)
6765
6866
6967 func rewardInfo (pool) = {
70- let totalRewardPerBlockCurrent = valueOrErrorMessage(getInteger(votingAddress, keyTotalRewardPerBlockCurrent), ((("No data on the key: " + keyTotalRewardPerBlockCurrent) + " at address ") + toString(votingAddress)))
71- let totalRewardPerBlockPrevious = valueOrErrorMessage(getInteger(votingAddress, keyTotalRewardPerBlockPrevious), ((("No data on the key: " + keyTotalRewardPerBlockPrevious) + " at address ") + toString(votingAddress)))
68+ let totalRewardPerBlock = valueOrErrorMessage(getInteger(votingAddress, keyTotalRewardPerBlock), ((("No data on the key: " + keyTotalRewardPerBlock) + " at address ") + toString(votingAddress)))
7269 let rewardPoolFractionCurrent = valueOrErrorMessage(getInteger(votingAddress, (pool + keyRewardPoolFractionCurrent)), (((("No data on the key: " + pool) + keyRewardPoolFractionCurrent) + " at address ") + toString(votingAddress)))
7370 let rewardUpdateHeight = valueOrErrorMessage(getInteger(votingAddress, (pool + keyRewardUpdateHeight)), (((("No data on the key: " + pool) + keyRewardUpdateHeight) + " at address ") + toString(votingAddress)))
7471 let rewardPoolFractionPrevious = valueOrErrorMessage(getInteger(votingAddress, (pool + keyRewardPoolFractionPrevious)), (((("No data on the key: " + pool) + keyRewardPoolFractionPrevious) + " at address ") + toString(votingAddress)))
75- let rewardPoolCurrent = fraction(totalRewardPerBlockCurrent, rewardPoolFractionCurrent, totalVoteShare)
76- let rewardPoolPrevious = fraction(totalRewardPerBlockPrevious, rewardPoolFractionPrevious, totalVoteShare)
77- if (if ((rewardPoolCurrent > totalRewardPerBlockCurrent))
72+ let rewardPoolCurrent = fraction(totalRewardPerBlock, rewardPoolFractionCurrent, totalVoteShare)
73+ let rewardPoolPrevious = fraction(totalRewardPerBlock, rewardPoolFractionPrevious, totalVoteShare)
74+ if (if ((rewardPoolCurrent > totalRewardPerBlock))
7875 then true
79- else (rewardPoolPrevious > totalRewardPerBlockPrevious))
76+ else (rewardPoolPrevious > totalRewardPerBlock))
8077 then throw("rewardPoolCurrent > totalRewardPerBlockCurrent or rewardPoolPrevious > totalRewardPerBlockPrevious")
8178 else $Tuple3(rewardPoolCurrent, rewardUpdateHeight, rewardPoolPrevious)
8279 }
8380
8481
8582 func getLastInterestInfo (pool) = {
8683 let lastInterest = valueOrErrorMessage(getInteger(this, (pool + keyLastInterest)), (("No data on the key: " + pool) + keyLastInterest))
8784 let lastInterestHeight = valueOrElse(getInteger(this, (pool + keyLastInterestHeight)), farmingPreStartHeight)
8885 $Tuple2(lastInterestHeight, lastInterest)
8986 }
9087
9188
9289 func getUserInterestInfo (pool,userAddress) = {
9390 let userLastInterest = getInteger(this, (((pool + "_") + toString(userAddress)) + keyUserLastInterest))
9491 let userShare = getInteger(this, (((pool + "_") + toString(userAddress)) + keyUserShareTokensLocked))
9592 let lastInterest = valueOrErrorMessage(getInteger(this, (pool + keyLastInterest)), (("No data on the key: " + pool) + keyLastInterest))
9693 let userLastInterestValue = match userLastInterest {
9794 case userLastInterest: Int =>
9895 userLastInterest
9996 case _ =>
10097 lastInterest
10198 }
10299 let userShareTokensAmount = match userShare {
103100 case userShare: Int =>
104101 userShare
105102 case _ =>
106103 0
107104 }
108105 $Tuple2(userLastInterestValue, userShareTokensAmount)
109106 }
110107
111108
112109 func calcInterest (lastInterestHeight,rewardUpdateHeight,lastInterest,currentRewardPerBlock,shareTokenLocked,previousRewardPerBlock,shareAssetId,scaleValue,pmtAmount) = if ((shareTokenLocked == 0))
113110 then 0
114111 else if ((rewardUpdateHeight > height))
115112 then {
116113 let reward = (previousRewardPerBlock * (height - lastInterestHeight))
117114 (lastInterest + fraction(reward, scaleValue, shareTokenLocked))
118115 }
119116 else if ((lastInterestHeight > rewardUpdateHeight))
120117 then {
121118 let reward = (currentRewardPerBlock * (height - lastInterestHeight))
122119 (lastInterest + fraction(reward, scaleValue, shareTokenLocked))
123120 }
124121 else {
125122 let rewardAfterLastInterestBeforeReawardUpdate = (previousRewardPerBlock * (rewardUpdateHeight - lastInterestHeight))
126123 let interestAfterUpdate = (lastInterest + fraction(rewardAfterLastInterestBeforeReawardUpdate, scaleValue, shareTokenLocked))
127124 let reward = (currentRewardPerBlock * (height - rewardUpdateHeight))
128125 (interestAfterUpdate + fraction(reward, scaleValue, shareTokenLocked))
129126 }
130127
131128
132129 func claimCalc (pool,caller,pmtAmount) = {
133130 let shareAssetId = getShareAssetId(pool)
134131 let scaleValue = calcScaleValue(SWOP, shareAssetId)
135132 let shareTokenLocked = getTotalShareTokenLocked(pool)
136- let $t071667231 = getLastInterestInfo(pool)
137- let lastInterestHeight = $t071667231._1
138- let lastInterest = $t071667231._2
139- let $t072367324 = rewardInfo(pool)
140- let currentRewardPerBlock = $t072367324._1
141- let rewardUpdateHeight = $t072367324._2
142- let previousRewardPerBlock = $t072367324._3
143- let $t073297408 = getUserInterestInfo(pool, caller)
144- let userLastInterest = $t073297408._1
145- let userShareTokensAmount = $t073297408._2
133+ let $t067766841 = getLastInterestInfo(pool)
134+ let lastInterestHeight = $t067766841._1
135+ let lastInterest = $t067766841._2
136+ let $t068466934 = rewardInfo(pool)
137+ let currentRewardPerBlock = $t068466934._1
138+ let rewardUpdateHeight = $t068466934._2
139+ let previousRewardPerBlock = $t068466934._3
140+ let $t069397018 = getUserInterestInfo(pool, caller)
141+ let userLastInterest = $t069397018._1
142+ let userShareTokensAmount = $t069397018._2
146143 let currentInterest = calcInterest(lastInterestHeight, rewardUpdateHeight, lastInterest, currentRewardPerBlock, shareTokenLocked, previousRewardPerBlock, shareAssetId, scaleValue, pmtAmount)
147144 let claimAmount = fraction(userShareTokensAmount, (currentInterest - userLastInterest), scaleValue)
148145 let userNewInterest = currentInterest
149146 $Tuple4(userNewInterest, currentInterest, claimAmount, userShareTokensAmount)
150147 }
151148
152149
153150 func checkPmtAssetIdCorrect (pool,pmtAssetId) = {
154151 let poolShareAssetId = fromBase58String(getStringValue(value(addressFromString(pool)), "share_asset_id"))
155152 if ((pmtAssetId == poolShareAssetId))
156153 then true
157154 else false
158155 }
159156
160157
161158 func getUserSWOPClaimedAmount (pool,user) = valueOrElse(getInteger(this, (((pool + "_") + toString(user)) + keyUserSWOPClaimedAmount)), 0)
162159
163160
164161 @Callable(i)
165162 func init (earlyLP) = if (isDefined(getString(this, "keySWOPid")))
166163 then throw("SWOP already initialized")
167164 else {
168165 let initAmount = 100000000000000
169166 let SWOPissue = Issue("SWOP", "SWOP protocol token", initAmount, 8, true)
170167 let SWOPid = calculateAssetId(SWOPissue)
171168 nil
172169 }
173170
174171
175172
176173 @Callable(i)
177174 func initPoolShareFarming (pool) = {
178- let $t089469026 = rewardInfo(pool)
179- let currentReward = $t089469026._1
180- let rewardUpdateHeight = $t089469026._2
181- let previousRewardPerBlock = $t089469026._3
175+ let $t085568636 = rewardInfo(pool)
176+ let currentReward = $t085568636._1
177+ let rewardUpdateHeight = $t085568636._2
178+ let previousRewardPerBlock = $t085568636._3
182179 [IntegerEntry((pool + keyShareTokensLocked), 0), IntegerEntry((pool + keyLastInterest), 0), IntegerEntry((pool + keyRewardPoolFractionCurrent), currentReward), IntegerEntry((pool + keyRewardUpdateHeight), rewardUpdateHeight), IntegerEntry((pool + keyRewardPoolFractionPrevious), previousRewardPerBlock)]
183180 }
184181
185182
186183
187184 @Callable(i)
188185 func lockShareTokens (pool) = {
189- let $t094299504 = $Tuple2(i.payments[0].amount, i.payments[0].assetId)
190- let pmtAmount = $t094299504._1
191- let pmtAssetId = $t094299504._2
186+ let $t090399114 = $Tuple2(i.payments[0].amount, i.payments[0].assetId)
187+ let pmtAmount = $t090399114._1
188+ let pmtAssetId = $t090399114._2
192189 if ((farmingStartHeight > height))
193190 then if (!(checkPmtAssetIdCorrect(pool, pmtAssetId)))
194191 then throw("Incorrect pmtAssetId")
195192 else {
196193 let userShareTokensAmount = valueOrElse(getInteger(this, (((pool + "_") + toString(i.caller)) + keyUserShareTokensLocked)), 0)
197194 let userNewInterest = 0
198195 let userShareAmountNew = (userShareTokensAmount + pmtAmount)
199196 let totalShareAmount = getTotalShareTokenLocked(pool)
200197 let totalShareAmountNew = (totalShareAmount + pmtAmount)
201198 [IntegerEntry((((pool + "_") + toString(i.caller)) + keyUserLastInterest), userNewInterest), IntegerEntry((((pool + "_") + toString(i.caller)) + keyUserShareTokensLocked), userShareAmountNew), IntegerEntry((pool + keyLastInterest), 0), IntegerEntry((pool + keyShareTokensLocked), totalShareAmountNew), IntegerEntry((((pool + "_") + toString(i.caller)) + keyAvailableSWOP), 0)]
202199 }
203200 else if (!(checkPmtAssetIdCorrect(pool, pmtAssetId)))
204201 then throw("Incorrect pmtAssetId")
205202 else {
206- let $t01053110639 = claimCalc(pool, i.caller, pmtAmount)
207- let userNewInterest = $t01053110639._1
208- let currentInterest = $t01053110639._2
209- let claimAmount = $t01053110639._3
210- let userShareTokensAmount = $t01053110639._4
203+ let $t01014110249 = claimCalc(pool, i.caller, pmtAmount)
204+ let userNewInterest = $t01014110249._1
205+ let currentInterest = $t01014110249._2
206+ let claimAmount = $t01014110249._3
207+ let userShareTokensAmount = $t01014110249._4
211208 let userShareAmountNew = (userShareTokensAmount + pmtAmount)
212209 let availableFundsNew = (userAvailableSWOP(pool, i.caller) + claimAmount)
213210 let totalShareAmount = getTotalShareTokenLocked(pool)
214211 let totalShareAmountNew = (totalShareAmount + pmtAmount)
215212 let userClaimedAmount = getUserSWOPClaimedAmount(pool, i.caller)
216213 let userClaimedAmountNew = (userClaimedAmount + claimAmount)
217214 [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)) + keyUserSWOPClaimedAmount), userClaimedAmountNew), IntegerEntry((((pool + "_") + toString(i.caller)) + keyUserSWOPLastClaimedAmount), claimAmount), IntegerEntry((((pool + "_") + toString(i.caller)) + keyAvailableSWOP), availableFundsNew)]
218215 }
219216 }
220217
221218
222219
223220 @Callable(i)
224221 func withdrawShareTokens (pool,shareTokensWithdrawAmount) = {
225222 let shareTokensId = fromBase58String(getStringValue(value(addressFromString(pool)), "share_asset_id"))
226223 if ((farmingStartHeight > height))
227224 then {
228225 let userShareTokensAmount = valueOrElse(getInteger(this, (((pool + "_") + toString(i.caller)) + keyUserShareTokensLocked)), 0)
229226 if ((shareTokensWithdrawAmount > userShareTokensAmount))
230227 then throw("Withdraw amount more then user locked amount")
231228 else {
232229 let userNewInterest = 0
233230 let userShareAmountNew = (userShareTokensAmount - shareTokensWithdrawAmount)
234231 let totalShareAmount = getTotalShareTokenLocked(pool)
235232 let totalShareAmountNew = (totalShareAmount - shareTokensWithdrawAmount)
236233 [IntegerEntry((((pool + "_") + toString(i.caller)) + keyUserLastInterest), userNewInterest), IntegerEntry((((pool + "_") + toString(i.caller)) + keyUserShareTokensLocked), userShareAmountNew), IntegerEntry((pool + keyLastInterest), 0), IntegerEntry((pool + keyShareTokensLocked), totalShareAmountNew), IntegerEntry((((pool + "_") + toString(i.caller)) + keyAvailableSWOP), 0), ScriptTransfer(i.caller, shareTokensWithdrawAmount, shareTokensId)]
237234 }
238235 }
239236 else {
240- let $t01306513165 = claimCalc(pool, i.caller, 1)
241- let userNewInterest = $t01306513165._1
242- let currentInterest = $t01306513165._2
243- let claimAmount = $t01306513165._3
244- let userShareTokensAmount = $t01306513165._4
237+ let $t01267512775 = claimCalc(pool, i.caller, 1)
238+ let userNewInterest = $t01267512775._1
239+ let currentInterest = $t01267512775._2
240+ let claimAmount = $t01267512775._3
241+ let userShareTokensAmount = $t01267512775._4
245242 if ((shareTokensWithdrawAmount > userShareTokensAmount))
246243 then throw("Withdraw amount more then user locked amount")
247244 else {
248245 let userShareAmountNew = (userShareTokensAmount - shareTokensWithdrawAmount)
249246 let availableFundsNew = (userAvailableSWOP(pool, i.caller) + claimAmount)
250247 let totalShareAmount = getTotalShareTokenLocked(pool)
251248 let totalShareAmountNew = (totalShareAmount - shareTokensWithdrawAmount)
252249 let userClaimedAmount = getUserSWOPClaimedAmount(pool, i.caller)
253250 let userClaimedAmountNew = (userClaimedAmount + claimAmount)
254251 [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)]
255252 }
256253 }
257254 }
258255
259256
260257
261258 @Callable(i)
262259 func claim (pool) = if ((farmingStartHeight > height))
263260 then throw((("This method will be active after " + toString(farmingStartHeight)) + " height"))
264261 else {
265262 let shareTokenLocked = getTotalShareTokenLocked(pool)
266- let $t01478914854 = getLastInterestInfo(pool)
267- let lastInterestHeight = $t01478914854._1
268- let lastInterest = $t01478914854._2
269- let $t01485914948 = rewardInfo(pool)
270- let currentRewardPerBlock = $t01485914948._1
271- let rewardUpdateHeight = $t01485914948._2
272- let previousRewardPerBlock = $t01485914948._3
273- let $t01495315053 = claimCalc(pool, i.caller, 1)
274- let userNewInterest = $t01495315053._1
275- let currentInterest = $t01495315053._2
276- let claimAmount = $t01495315053._3
277- let userShareTokensAmount = $t01495315053._4
263+ let $t01439914464 = getLastInterestInfo(pool)
264+ let lastInterestHeight = $t01439914464._1
265+ let lastInterest = $t01439914464._2
266+ let $t01446914558 = rewardInfo(pool)
267+ let currentRewardPerBlock = $t01446914558._1
268+ let rewardUpdateHeight = $t01446914558._2
269+ let previousRewardPerBlock = $t01446914558._3
270+ let $t01456314663 = claimCalc(pool, i.caller, 1)
271+ let userNewInterest = $t01456314663._1
272+ let currentInterest = $t01456314663._2
273+ let claimAmount = $t01456314663._3
274+ let userShareTokensAmount = $t01456314663._4
278275 let availableFund = (userAvailableSWOP(pool, i.caller) + claimAmount)
279276 let userClaimedAmount = getUserSWOPClaimedAmount(pool, i.caller)
280277 let userClaimedAmountNew = (userClaimedAmount + claimAmount)
281278 if ((availableFund == 0))
282279 then throw("You have 0 available SWOP")
283280 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)]
284281 }
285282
286283

github/deemru/w8io/169f3d6 
64.49 ms