tx · DxvhVLHzdYaUYCXvd5L28WacPAnaeqFHhA1C9TDcsZa

3MsjAKkxKjxVU4gC1BpJ1jKmAZyRufUCErC:  -0.01400000 Waves

2021.04.28 11:08 [1502046] smart account 3MsjAKkxKjxVU4gC1BpJ1jKmAZyRufUCErC > SELF 0.00000000 Waves

{ "type": 13, "id": "DxvhVLHzdYaUYCXvd5L28WacPAnaeqFHhA1C9TDcsZa", "fee": 1400000, "feeAssetId": null, "timestamp": 1619597366408, "version": 2, "chainId": 84, "sender": "3MsjAKkxKjxVU4gC1BpJ1jKmAZyRufUCErC", "senderPublicKey": "FQ5JNhUjFS3Ty3nSykXrGWHDt4NvXJDCv4JQiJ3dXmKa", "proofs": [ "4VAVjZeMKpoCTM8PPDstNipMAR5sDBzJPwmfaBtQFTWAd7y2Pz5gAhJab65es4AZThCz8TCN7DnJVxXQ59owqxPt" ], "script": "base64:AAIEAAAAAAAAACEIAhIDCgEIEgMKAQgSAwoBCBIDCgEIEgQKAggBEgMKAQgAAABKAAAAAAxhZG1pblB1YktleTEBAAAAILoJ1zuJWaTRXaD/8bsz0KrhOWkPy+K9kdY77k9eqOATAAAAAAxhZG1pblB1YktleTIBAAAAIMKRRJmz0rC0DSKlkVi9iLyhN7sIy//djOaU71sWDn5AAAAAAAxhZG1pblB1YktleTMBAAAAII4eFy54sQc79EhOejMoYHYod/yZ5ZIwoyDCz6ir6Q5VAAAAABRrZXlTaGFyZVRva2Vuc0xvY2tlZAIAAAAaX3RvdGFsX3NoYXJlX3Rva2Vuc19sb2NrZWQAAAAAHGtleVJld2FyZFBvb2xGcmFjdGlvbkN1cnJlbnQCAAAAHV9jdXJyZW50X3Bvb2xfZnJhY3Rpb25fcmV3YXJkAAAAAB1rZXlSZXdhcmRQb29sRnJhY3Rpb25QcmV2aW91cwIAAAAeX3ByZXZpb3VzX3Bvb2xfZnJhY3Rpb25fcmV3YXJkAAAAAB1rZXlUb3RhbFJld2FyZFBlckJsb2NrQ3VycmVudAIAAAAedG90YW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sAgAAAAFfCQAEJQAAAAEIBQAAAAFpAAAABmNhbGxlcgUAAAAQa2V5QXZhaWxhYmxlU1dPUAAAAAAAAAAAAAkABEwAAAACCQEAAAAMSW50ZWdlckVudHJ5AAAAAgkAASwAAAACCQABLAAAAAIJAAEsAAAAAgUAAAAEcG9vbAIAAAABXwkABCUAAAABCAUAAAABaQAAAAZjYWxsZXIFAAAAGGtleVVzZXJTV09QQ2xhaW1lZEFtb3VudAUAAAAUdXNlckNsYWltZWRBbW91bnROZXcJAARMAAAAAgkBAAAADEludGVnZXJFbnRyeQAAAAIJAAEsAAAAAgkAASwAAAACCQABLAAAAAIFAAAABHBvb2wCAAAAAV8JAAQlAAAAAQgFAAAAAWkAAAAGY2FsbGVyBQAAABxrZXlVc2VyU1dPUExhc3RDbGFpbWVkQW1vdW50BQAAAAtjbGFpbUFtb3VudAkABEwAAAACCQEAAAAOU2NyaXB0VHJhbnNmZXIAAAADCAUAAAABaQAAAAZjYWxsZXIFAAAADWF2YWlsYWJsZUZ1bmQFAAAABFNXT1AFAAAAA25pbAAAAAEAAAACdHgBAAAABnZlcmlmeQAAAAAEAAAAByRtYXRjaDAFAAAAAnR4CQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAgFAAAAAnR4AAAAD3NlbmRlclB1YmxpY0tleR7TTqU=", "height": 1502046, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: BfriY1aHoJmeqHCRgQBssfrfdtn213LV8xynCtetdqmR Next: 5SfFbPUiv9VipdnQKBN3QmB6ZiaaQv8tAaZWNbQhtT7P Diff:
OldNewDifferences
3939
4040 let keyAPY = "apy"
4141
42-let kPreviousTotalVoteSWOP = "previous_total_vote_SWOP"
42+let kPreviousTotalVoteSWOP = "previous_total_struc"
4343
4444 let keySwopYearEmission = "swop_year_emission"
4545
237237 let shareAssetId = getShareAssetId(pool)
238238 let scaleValue = calcScaleValue(SWOP, shareAssetId)
239239 let shareTokenLocked = getTotalShareTokenLocked(pool)
240- let $t01012510190 = getLastInterestInfo(pool)
241- let lastInterestHeight = $t01012510190._1
242- let lastInterest = $t01012510190._2
243- let $t01019510283 = rewardInfo(pool)
244- let currentRewardPerBlock = $t01019510283._1
245- let rewardUpdateHeight = $t01019510283._2
246- let previousRewardPerBlock = $t01019510283._3
247- let $t01028810367 = getUserInterestInfo(pool, caller)
248- let userLastInterest = $t01028810367._1
249- let userShareTokensAmount = $t01028810367._2
240+ let $t01012110186 = getLastInterestInfo(pool)
241+ let lastInterestHeight = $t01012110186._1
242+ let lastInterest = $t01012110186._2
243+ let $t01019110279 = rewardInfo(pool)
244+ let currentRewardPerBlock = $t01019110279._1
245+ let rewardUpdateHeight = $t01019110279._2
246+ let previousRewardPerBlock = $t01019110279._3
247+ let $t01028410363 = getUserInterestInfo(pool, caller)
248+ let userLastInterest = $t01028410363._1
249+ let userShareTokensAmount = $t01028410363._2
250250 let currentInterest = calcInterest(lastInterestHeight, rewardUpdateHeight, lastInterest, currentRewardPerBlock, shareTokenLocked, previousRewardPerBlock, shareAssetId, scaleValue, pmtAmount)
251251 let claimAmount = fraction(userShareTokensAmount, (currentInterest - userLastInterest), scaleValue)
252252 let userNewInterest = currentInterest
255255
256256
257257 func calculateProtocolReward (pool) = {
258- let $t01084110906 = getLastInterestInfo(pool)
259- let lastInterestHeight = $t01084110906._1
260- let lastInterest = $t01084110906._2
261- let $t01091211000 = rewardInfo(pool)
262- let currentRewardPerBlock = $t01091211000._1
263- let rewardUpdateHeight = $t01091211000._2
264- let previousRewardPerBlock = $t01091211000._3
258+ let $t01083710902 = getLastInterestInfo(pool)
259+ let lastInterestHeight = $t01083710902._1
260+ let lastInterest = $t01083710902._2
261+ let $t01090810996 = rewardInfo(pool)
262+ let currentRewardPerBlock = $t01090810996._1
263+ let rewardUpdateHeight = $t01090810996._2
264+ let previousRewardPerBlock = $t01090810996._3
265265 let shareTokenLocked = getTotalShareTokenLocked(pool)
266266 if ((shareTokenLocked == 0))
267267 then 0
310310 func initPoolShareFarming (pool) = if ((i.caller != this))
311311 then throw("Only the DApp itself can call this function")
312312 else {
313- let $t01293513015 = rewardInfo(pool)
314- let currentReward = $t01293513015._1
315- let rewardUpdateHeight = $t01293513015._2
316- let previousRewardPerBlock = $t01293513015._3
313+ let $t01293113011 = rewardInfo(pool)
314+ let currentReward = $t01293113011._1
315+ let rewardUpdateHeight = $t01293113011._2
316+ let previousRewardPerBlock = $t01293113011._3
317317 [IntegerEntry((pool + keyShareTokensLocked), 0), IntegerEntry((pool + keyLastInterest), 0), IntegerEntry((pool + keyLastInterestHeight), height)]
318318 }
319319
323323 func updatePoolInterest (pool) = if ((i.caller != wallet))
324324 then throw("Only the Admin itself can call this function")
325325 else {
326- let $t01336413484 = claimCalc(pool, adminIncreaseInterestAddress, 0)
327- let userNewInterest = $t01336413484._1
328- let currentInterest = $t01336413484._2
329- let claimAmount = $t01336413484._3
330- let userShareTokensAmount = $t01336413484._4
326+ let $t01336013480 = claimCalc(pool, adminIncreaseInterestAddress, 0)
327+ let userNewInterest = $t01336013480._1
328+ let currentInterest = $t01336013480._2
329+ let claimAmount = $t01336013480._3
330+ let userShareTokensAmount = $t01336013480._4
331331 [IntegerEntry((pool + keyLastInterest), userNewInterest)]
332332 }
333333
335335
336336 @Callable(i)
337337 func lockShareTokens (pool) = {
338- let $t01361713692 = $Tuple2(i.payments[0].amount, i.payments[0].assetId)
339- let pmtAmount = $t01361713692._1
340- let pmtAssetId = $t01361713692._2
341- let $t01369713805 = claimCalc(pool, i.caller, pmtAmount)
342- let userNewInterest = $t01369713805._1
343- let currentInterest = $t01369713805._2
344- let claimAmount = $t01369713805._3
345- let userShareTokensAmount = $t01369713805._4
338+ let $t01361313688 = $Tuple2(i.payments[0].amount, i.payments[0].assetId)
339+ let pmtAmount = $t01361313688._1
340+ let pmtAssetId = $t01361313688._2
341+ let $t01369313801 = claimCalc(pool, i.caller, pmtAmount)
342+ let userNewInterest = $t01369313801._1
343+ let currentInterest = $t01369313801._2
344+ let claimAmount = $t01369313801._3
345+ let userShareTokensAmount = $t01369313801._4
346346 let userShareAmountNew = (userShareTokensAmount + pmtAmount)
347347 let availableFundsNew = (userAvailableSWOP(pool, i.caller) + claimAmount)
348348 let totalShareAmount = getTotalShareTokenLocked(pool)
401401 @Callable(i)
402402 func withdrawShareTokens (pool,shareTokensWithdrawAmount) = {
403403 let shareTokensId = fromBase58String(getStringValue(value(addressFromString(pool)), "share_asset_id"))
404- let $t01832118421 = claimCalc(pool, i.caller, 1)
405- let userNewInterest = $t01832118421._1
406- let currentInterest = $t01832118421._2
407- let claimAmount = $t01832118421._3
408- let userShareTokensAmount = $t01832118421._4
404+ let $t01831718417 = claimCalc(pool, i.caller, 1)
405+ let userNewInterest = $t01831718417._1
406+ let currentInterest = $t01831718417._2
407+ let claimAmount = $t01831718417._3
408+ let userShareTokensAmount = $t01831718417._4
409409 let userShareAmountNew = (userShareTokensAmount - shareTokensWithdrawAmount)
410410 let availableFundsNew = (userAvailableSWOP(pool, i.caller) + claimAmount)
411411 let totalShareAmount = getTotalShareTokenLocked(pool)
422422 @Callable(i)
423423 func claim (pool) = {
424424 let shareTokenLocked = getTotalShareTokenLocked(pool)
425- let $t01991419979 = getLastInterestInfo(pool)
426- let lastInterestHeight = $t01991419979._1
427- let lastInterest = $t01991419979._2
428- let $t01998420073 = rewardInfo(pool)
429- let currentRewardPerBlock = $t01998420073._1
430- let rewardUpdateHeight = $t01998420073._2
431- let previousRewardPerBlock = $t01998420073._3
432- let $t02007820178 = claimCalc(pool, i.caller, 1)
433- let userNewInterest = $t02007820178._1
434- let currentInterest = $t02007820178._2
435- let claimAmount = $t02007820178._3
436- let userShareTokensAmount = $t02007820178._4
425+ let $t01991019975 = getLastInterestInfo(pool)
426+ let lastInterestHeight = $t01991019975._1
427+ let lastInterest = $t01991019975._2
428+ let $t01998020069 = rewardInfo(pool)
429+ let currentRewardPerBlock = $t01998020069._1
430+ let rewardUpdateHeight = $t01998020069._2
431+ let previousRewardPerBlock = $t01998020069._3
432+ let $t02007420174 = claimCalc(pool, i.caller, 1)
433+ let userNewInterest = $t02007420174._1
434+ let currentInterest = $t02007420174._2
435+ let claimAmount = $t02007420174._3
436+ let userShareTokensAmount = $t02007420174._4
437437 let availableFund = (userAvailableSWOP(pool, i.caller) + claimAmount)
438438 let userClaimedAmount = getUserSWOPClaimedAmount(pool, i.caller)
439439 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 = "_current_pool_fraction_reward"
1313
1414 let keyRewardPoolFractionPrevious = "_previous_pool_fraction_reward"
1515
1616 let keyTotalRewardPerBlockCurrent = "total_reward_per_block_current"
1717
1818 let keyTotalRewardPerBlockPrevious = "total_reward_per_block_previous"
1919
2020 let keyRewardUpdateHeight = "reward_update_height"
2121
2222 let keyLastInterest = "_last_interest"
2323
2424 let keyLastInterestHeight = "_last_interest_height"
2525
2626 let keyUserShareTokensLocked = "_share_tokens_locked"
2727
2828 let keyUserLastInterest = "_last_interest"
2929
3030 let keySWOPid = "SWOP_id"
3131
3232 let keyUserSWOPClaimedAmount = "_SWOP_claimed_amount"
3333
3434 let keyUserSWOPLastClaimedAmount = "_SWOP_last_claimed_amount"
3535
3636 let keyAvailableSWOP = "_available_SWOP"
3737
3838 let keyFarmingStartHeight = "farming_start_height"
3939
4040 let keyAPY = "apy"
4141
42-let kPreviousTotalVoteSWOP = "previous_total_vote_SWOP"
42+let kPreviousTotalVoteSWOP = "previous_total_struc"
4343
4444 let keySwopYearEmission = "swop_year_emission"
4545
4646 let keyBalancecpmmA = "A_asset_balance"
4747
4848 let keyBalancecpmmB = "B_asset_balance"
4949
5050 let keyAssetIdA = "A_asset_id"
5151
5252 let keyAssetIdB = "B_asset_id"
5353
5454 let keyFirstHarvestHeight = "first_harvest_height"
5555
5656 let keyfirstHarvestCpmm = "first_harvest"
5757
5858 let governanceAddress = Address(base58'3MzJZEn6jzxCPaHEfkrXd7FhbjTyVjdRPLS')
5959
6060 let wallet = Address(base58'3NAGTtZz6WpupSN89NZD5rMZwwziZEg4Kx4')
6161
6262 let votingAddress = Address(base58'3N6CYoCsxrcXKe75pQvvV3JqJrwJjm1t4QN')
6363
6464 let swopUsdnAddress = Address(base58'3N4kooq5242vPtJzBDrmukK6ptrjRRjEBWi')
6565
6666 let wavesUsdnAddress = Address(base58'3MxtJmAsKsfof4X28MJPBtvRUyz1PbCnbhF')
6767
6868 let adminIncreaseInterestAddress = Address(base58'3NAGTtZz6WpupSN89NZD5rMZwwziZEg4Kx4')
6969
7070 let oneWeekInBlock = 10106
7171
7272 let totalVoteShare = 10000000000
7373
7474 let scaleValue6 = 1000000
7575
7676 let scaleValue8 = 100000000
7777
7878 func strAssetIdA (pool) = getStringValue(pool, keyAssetIdA)
7979
8080
8181 func strAssetIdB (pool) = getStringValue(pool, keyAssetIdB)
8282
8383
8484 func assetIdA (pool) = if ((strAssetIdA(pool) == "WAVES"))
8585 then unit
8686 else fromBase58String(strAssetIdA(pool))
8787
8888
8989 func assetIdB (pool) = if ((strAssetIdB(pool) == "WAVES"))
9090 then unit
9191 else fromBase58String(strAssetIdB(pool))
9292
9393
9494 let kBasePeriod = "base_period"
9595
9696 let kPeriodLength = "period_length"
9797
9898 let kStartHeight = "start_height"
9999
100100 let kFirstHarvestHeight = "first_harvest_height"
101101
102102 let kDurationFullVotePower = "duration_full_vote_power"
103103
104104 let kMinVotePower = "min_vote_power"
105105
106106 let basePeriod = valueOrErrorMessage(getInteger(votingAddress, kBasePeriod), "Empty kBasePeriod")
107107
108108 let startHeight = valueOrErrorMessage(getInteger(votingAddress, kStartHeight), "Empty kStartHeight")
109109
110110 let periodLength = valueOrErrorMessage(getInteger(votingAddress, kPeriodLength), "Empty kPeriodLength")
111111
112112 let durationFullVotePower = valueOrErrorMessage(getInteger(votingAddress, kDurationFullVotePower), "Empty kDurationFullVotePower")
113113
114114 let minVotePower = valueOrErrorMessage(getInteger(votingAddress, kMinVotePower), "Empty kMinVotePower")
115115
116116 let currPeriod = (basePeriod + ((height - startHeight) / periodLength))
117117
118118 let APY = getIntegerValue(this, keyAPY)
119119
120120 let SwopYearEmission = getIntegerValue(this, keySwopYearEmission)
121121
122122 func assetNameA (pool) = match assetIdA(pool) {
123123 case id: ByteVector =>
124124 value(assetInfo(id)).name
125125 case waves: Unit =>
126126 "WAVES"
127127 case _ =>
128128 throw("Match error")
129129 }
130130
131131
132132 func assetNameB (pool) = match assetIdB(pool) {
133133 case id: ByteVector =>
134134 value(assetInfo(id)).name
135135 case waves: Unit =>
136136 "WAVES"
137137 case _ =>
138138 throw("Match error")
139139 }
140140
141141
142142 let SWOP = fromBase58String(getStringValue(this, keySWOPid))
143143
144144 func isFirstHarvest (pool) = valueOrElse(getBoolean(pool, keyfirstHarvestCpmm), false)
145145
146146
147147 func getHeightFirstHarvest (pool) = valueOrElse(getInteger(pool, keyFirstHarvestHeight), 0)
148148
149149
150150 func getBalanceA (pool) = valueOrErrorMessage(getInteger(pool, keyBalancecpmmA), ("No data on the key: " + keyBalancecpmmA))
151151
152152
153153 func getBalanceB (pool) = valueOrErrorMessage(getInteger(pool, keyBalancecpmmB), ("No data on the key: " + keyBalancecpmmB))
154154
155155
156156 func getTotalShareTokenLocked (pool) = valueOrErrorMessage(getInteger(this, (pool + keyShareTokensLocked)), (("No data on the key: " + pool) + keyShareTokensLocked))
157157
158158
159159 func getShareAssetId (pool) = fromBase58String(getStringValue(value(addressFromString(pool)), "share_asset_id"))
160160
161161
162162 func calcScaleValue (assetId1,assetId2) = {
163163 let assetId1Decimals = value(assetInfo(assetId1)).decimals
164164 let assetId2Decimals = value(assetInfo(assetId2)).decimals
165165 let scaleDigits = ((assetId2Decimals - assetId1Decimals) + 8)
166166 pow(10, 0, scaleDigits, 0, 0, HALFDOWN)
167167 }
168168
169169
170170 func userAvailableSWOP (pool,user) = valueOrElse(getInteger(this, (((pool + "_") + toString(user)) + keyAvailableSWOP)), 0)
171171
172172
173173 func rewardInfo (pool) = {
174174 let totalRewardPerBlockCurrent = valueOrErrorMessage(getInteger(governanceAddress, keyTotalRewardPerBlockCurrent), ((("No data on the key: " + keyTotalRewardPerBlockCurrent) + " at address ") + toString(governanceAddress)))
175175 let totalRewardPerBlockPrevious = valueOrErrorMessage(getInteger(governanceAddress, keyTotalRewardPerBlockPrevious), ((("No data on the key: " + keyTotalRewardPerBlockPrevious) + " at address ") + toString(governanceAddress)))
176176 let rewardPoolFractionCurrent = valueOrErrorMessage(getInteger(governanceAddress, (pool + keyRewardPoolFractionCurrent)), (((("No data on the key: " + pool) + keyRewardPoolFractionCurrent) + " at address ") + toString(governanceAddress)))
177177 let rewardUpdateHeight = valueOrErrorMessage(getInteger(governanceAddress, keyRewardUpdateHeight), ((("No data on the key: " + keyRewardUpdateHeight) + " at address ") + toString(governanceAddress)))
178178 let rewardPoolFractionPrevious = valueOrErrorMessage(getInteger(governanceAddress, (pool + keyRewardPoolFractionPrevious)), (((("No data on the key: " + pool) + keyRewardPoolFractionPrevious) + " at address ") + toString(governanceAddress)))
179179 let rewardPoolCurrent = fraction(totalRewardPerBlockCurrent, rewardPoolFractionCurrent, totalVoteShare)
180180 let rewardPoolPrevious = fraction(totalRewardPerBlockPrevious, rewardPoolFractionPrevious, totalVoteShare)
181181 if (if ((rewardPoolCurrent > totalRewardPerBlockCurrent))
182182 then true
183183 else (rewardPoolPrevious > totalRewardPerBlockPrevious))
184184 then throw("rewardPoolCurrent > totalRewardPerBlockCurrent or rewardPoolPrevious > totalRewardPerBlockPrevious")
185185 else $Tuple3(rewardPoolCurrent, rewardUpdateHeight, rewardPoolPrevious)
186186 }
187187
188188
189189 func getLastInterestInfo (pool) = {
190190 let lastInterest = valueOrErrorMessage(getInteger(this, (pool + keyLastInterest)), (("No data on the key: " + pool) + keyLastInterest))
191191 let lastInterestHeight = valueOrElse(getInteger(this, (pool + keyLastInterestHeight)), height)
192192 $Tuple2(lastInterestHeight, lastInterest)
193193 }
194194
195195
196196 func getUserInterestInfo (pool,userAddress) = {
197197 let userLastInterest = getInteger(this, (((pool + "_") + toString(userAddress)) + keyUserLastInterest))
198198 let userShare = getInteger(this, (((pool + "_") + toString(userAddress)) + keyUserShareTokensLocked))
199199 let lastInterest = valueOrErrorMessage(getInteger(this, (pool + keyLastInterest)), (("No data on the key: " + pool) + keyLastInterest))
200200 let userLastInterestValue = match userLastInterest {
201201 case userLastInterest: Int =>
202202 userLastInterest
203203 case _ =>
204204 lastInterest
205205 }
206206 let userShareTokensAmount = match userShare {
207207 case userShare: Int =>
208208 userShare
209209 case _ =>
210210 0
211211 }
212212 $Tuple2(userLastInterestValue, userShareTokensAmount)
213213 }
214214
215215
216216 func calcInterest (lastInterestHeight,rewardUpdateHeight,lastInterest,currentRewardPerBlock,shareTokenLocked,previousRewardPerBlock,shareAssetId,scaleValue,pmtAmount) = if ((shareTokenLocked == 0))
217217 then 0
218218 else if ((rewardUpdateHeight > height))
219219 then {
220220 let reward = (previousRewardPerBlock * (height - lastInterestHeight))
221221 (lastInterest + fraction(reward, scaleValue, shareTokenLocked))
222222 }
223223 else if ((lastInterestHeight > rewardUpdateHeight))
224224 then {
225225 let reward = (currentRewardPerBlock * (height - lastInterestHeight))
226226 (lastInterest + fraction(reward, scaleValue, shareTokenLocked))
227227 }
228228 else {
229229 let rewardAfterLastInterestBeforeReawardUpdate = (previousRewardPerBlock * (rewardUpdateHeight - lastInterestHeight))
230230 let interestAfterUpdate = (lastInterest + fraction(rewardAfterLastInterestBeforeReawardUpdate, scaleValue, shareTokenLocked))
231231 let reward = (currentRewardPerBlock * (height - rewardUpdateHeight))
232232 (interestAfterUpdate + fraction(reward, scaleValue, shareTokenLocked))
233233 }
234234
235235
236236 func claimCalc (pool,caller,pmtAmount) = {
237237 let shareAssetId = getShareAssetId(pool)
238238 let scaleValue = calcScaleValue(SWOP, shareAssetId)
239239 let shareTokenLocked = getTotalShareTokenLocked(pool)
240- let $t01012510190 = getLastInterestInfo(pool)
241- let lastInterestHeight = $t01012510190._1
242- let lastInterest = $t01012510190._2
243- let $t01019510283 = rewardInfo(pool)
244- let currentRewardPerBlock = $t01019510283._1
245- let rewardUpdateHeight = $t01019510283._2
246- let previousRewardPerBlock = $t01019510283._3
247- let $t01028810367 = getUserInterestInfo(pool, caller)
248- let userLastInterest = $t01028810367._1
249- let userShareTokensAmount = $t01028810367._2
240+ let $t01012110186 = getLastInterestInfo(pool)
241+ let lastInterestHeight = $t01012110186._1
242+ let lastInterest = $t01012110186._2
243+ let $t01019110279 = rewardInfo(pool)
244+ let currentRewardPerBlock = $t01019110279._1
245+ let rewardUpdateHeight = $t01019110279._2
246+ let previousRewardPerBlock = $t01019110279._3
247+ let $t01028410363 = getUserInterestInfo(pool, caller)
248+ let userLastInterest = $t01028410363._1
249+ let userShareTokensAmount = $t01028410363._2
250250 let currentInterest = calcInterest(lastInterestHeight, rewardUpdateHeight, lastInterest, currentRewardPerBlock, shareTokenLocked, previousRewardPerBlock, shareAssetId, scaleValue, pmtAmount)
251251 let claimAmount = fraction(userShareTokensAmount, (currentInterest - userLastInterest), scaleValue)
252252 let userNewInterest = currentInterest
253253 $Tuple4(userNewInterest, currentInterest, claimAmount, userShareTokensAmount)
254254 }
255255
256256
257257 func calculateProtocolReward (pool) = {
258- let $t01084110906 = getLastInterestInfo(pool)
259- let lastInterestHeight = $t01084110906._1
260- let lastInterest = $t01084110906._2
261- let $t01091211000 = rewardInfo(pool)
262- let currentRewardPerBlock = $t01091211000._1
263- let rewardUpdateHeight = $t01091211000._2
264- let previousRewardPerBlock = $t01091211000._3
258+ let $t01083710902 = getLastInterestInfo(pool)
259+ let lastInterestHeight = $t01083710902._1
260+ let lastInterest = $t01083710902._2
261+ let $t01090810996 = rewardInfo(pool)
262+ let currentRewardPerBlock = $t01090810996._1
263+ let rewardUpdateHeight = $t01090810996._2
264+ let previousRewardPerBlock = $t01090810996._3
265265 let shareTokenLocked = getTotalShareTokenLocked(pool)
266266 if ((shareTokenLocked == 0))
267267 then 0
268268 else if ((rewardUpdateHeight > height))
269269 then {
270270 let reward = (previousRewardPerBlock * (height - lastInterestHeight))
271271 reward
272272 }
273273 else if ((lastInterestHeight > rewardUpdateHeight))
274274 then {
275275 let reward = (currentRewardPerBlock * (height - lastInterestHeight))
276276 reward
277277 }
278278 else {
279279 let rewardAfterLastInterestBeforeReawardUpdate = (previousRewardPerBlock * (rewardUpdateHeight - lastInterestHeight))
280280 let reward = (currentRewardPerBlock * (height - rewardUpdateHeight))
281281 (reward + rewardAfterLastInterestBeforeReawardUpdate)
282282 }
283283 }
284284
285285
286286 func checkPmtAssetIdCorrect (pool,pmtAssetId) = {
287287 let poolShareAssetId = fromBase58String(getStringValue(value(addressFromString(pool)), "share_asset_id"))
288288 if ((pmtAssetId == poolShareAssetId))
289289 then true
290290 else false
291291 }
292292
293293
294294 func getUserSWOPClaimedAmount (pool,user) = valueOrElse(getInteger(this, (((pool + "_") + toString(user)) + keyUserSWOPClaimedAmount)), 0)
295295
296296
297297 @Callable(i)
298298 func init (earlyLP) = if (isDefined(getString(this, "keySWOPid")))
299299 then throw("SWOP already initialized")
300300 else {
301301 let initAmount = 100000000000000
302302 let SWOPissue = Issue("SWOP", "SWOP protocol token", initAmount, 8, true)
303303 let SWOPid = calculateAssetId(SWOPissue)
304304 [Issue("SWOP", "SWOP protocol token", initAmount, 8, true), StringEntry(keySWOPid, toBase58String(SWOPid))]
305305 }
306306
307307
308308
309309 @Callable(i)
310310 func initPoolShareFarming (pool) = if ((i.caller != this))
311311 then throw("Only the DApp itself can call this function")
312312 else {
313- let $t01293513015 = rewardInfo(pool)
314- let currentReward = $t01293513015._1
315- let rewardUpdateHeight = $t01293513015._2
316- let previousRewardPerBlock = $t01293513015._3
313+ let $t01293113011 = rewardInfo(pool)
314+ let currentReward = $t01293113011._1
315+ let rewardUpdateHeight = $t01293113011._2
316+ let previousRewardPerBlock = $t01293113011._3
317317 [IntegerEntry((pool + keyShareTokensLocked), 0), IntegerEntry((pool + keyLastInterest), 0), IntegerEntry((pool + keyLastInterestHeight), height)]
318318 }
319319
320320
321321
322322 @Callable(i)
323323 func updatePoolInterest (pool) = if ((i.caller != wallet))
324324 then throw("Only the Admin itself can call this function")
325325 else {
326- let $t01336413484 = claimCalc(pool, adminIncreaseInterestAddress, 0)
327- let userNewInterest = $t01336413484._1
328- let currentInterest = $t01336413484._2
329- let claimAmount = $t01336413484._3
330- let userShareTokensAmount = $t01336413484._4
326+ let $t01336013480 = claimCalc(pool, adminIncreaseInterestAddress, 0)
327+ let userNewInterest = $t01336013480._1
328+ let currentInterest = $t01336013480._2
329+ let claimAmount = $t01336013480._3
330+ let userShareTokensAmount = $t01336013480._4
331331 [IntegerEntry((pool + keyLastInterest), userNewInterest)]
332332 }
333333
334334
335335
336336 @Callable(i)
337337 func lockShareTokens (pool) = {
338- let $t01361713692 = $Tuple2(i.payments[0].amount, i.payments[0].assetId)
339- let pmtAmount = $t01361713692._1
340- let pmtAssetId = $t01361713692._2
341- let $t01369713805 = claimCalc(pool, i.caller, pmtAmount)
342- let userNewInterest = $t01369713805._1
343- let currentInterest = $t01369713805._2
344- let claimAmount = $t01369713805._3
345- let userShareTokensAmount = $t01369713805._4
338+ let $t01361313688 = $Tuple2(i.payments[0].amount, i.payments[0].assetId)
339+ let pmtAmount = $t01361313688._1
340+ let pmtAssetId = $t01361313688._2
341+ let $t01369313801 = claimCalc(pool, i.caller, pmtAmount)
342+ let userNewInterest = $t01369313801._1
343+ let currentInterest = $t01369313801._2
344+ let claimAmount = $t01369313801._3
345+ let userShareTokensAmount = $t01369313801._4
346346 let userShareAmountNew = (userShareTokensAmount + pmtAmount)
347347 let availableFundsNew = (userAvailableSWOP(pool, i.caller) + claimAmount)
348348 let totalShareAmount = getTotalShareTokenLocked(pool)
349349 let totalShareAmountNew = (totalShareAmount + pmtAmount)
350350 let userClaimedAmount = getUserSWOPClaimedAmount(pool, i.caller)
351351 let userClaimedAmountNew = (userClaimedAmount + claimAmount)
352352 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)]
353353 if (!(checkPmtAssetIdCorrect(pool, pmtAssetId)))
354354 then throw("Incorrect pmtAssetId")
355355 else if (if (isFirstHarvest(Address(fromBase58String(pool))))
356356 then (height > (getHeightFirstHarvest(Address(fromBase58String(pool))) * periodLength))
357357 else false)
358358 then {
359359 let amountOfVoting = split(getStringValue(votingAddress, (((toString(this) + "_") + pool) + "_user_pool_struc")), "_")
360360 let previosTotalVoting = split(getStringValue(votingAddress, kPreviousTotalVoteSWOP), "_")
361361 let assetbalanceswopusdnA = valueOrElse(getIntegerValue(swopUsdnAddress, keyBalancecpmmA), 0)
362362 let assetbalanceswopusdnB = valueOrElse(getIntegerValue(swopUsdnAddress, keyBalancecpmmB), 0)
363363 let assetbalancewavesusdnA = valueOrElse(getIntegerValue(wavesUsdnAddress, keyBalancecpmmA), 0)
364364 let assetbalancewavesusdnB = valueOrElse(getIntegerValue(wavesUsdnAddress, keyBalancecpmmB), 0)
365365 let totalPeriod = previosTotalVoting[1]
366366 let previosTotal = previosTotalVoting[0]
367367 let userShareTokenLocked = userShareTokensAmount
368368 let userSwopVote = if ((toString(currPeriod) == amountOfVoting[2]))
369369 then valueOrElse(parseInt(amountOfVoting[1]), 0)
370370 else valueOrElse(parseInt(amountOfVoting[0]), 0)
371371 let swopRate = ((assetbalanceswopusdnA / scaleValue8) / (assetbalanceswopusdnB / scaleValue6))
372372 let votingTotal = if ((currPeriod == valueOrElse(parseInt(totalPeriod), -1)))
373373 then valueOrElse(parseInt(previosTotal), 0)
374374 else valueOrElse(parseInt(totalPeriod), 0)
375375 let harvestPower = ((SwopYearEmission / votingTotal) / APY)
376376 let protocolReward = calculateProtocolReward(pool)
377377 if ((parseInt(amountOfVoting[1]) != 0))
378378 then {
379379 let assetBalanceB = getBalanceB(Address(fromBase58String(pool)))
380380 let shareTokenRate = if ((assetNameB(Address(fromBase58String(pool))) == "USDN"))
381381 then ((2 * assetBalanceB) / totalShareAmount)
382382 else if ((assetNameA(Address(fromBase58String(pool))) == "SWOP"))
383383 then (((2 * assetBalanceB) * ((assetbalanceswopusdnB / scaleValue8) / (assetbalanceswopusdnA / scaleValue6))) / totalShareAmount)
384384 else if ((assetNameA(Address(fromBase58String(pool))) == "WAVES"))
385385 then (((2 * assetBalanceB) * ((assetbalancewavesusdnB / scaleValue8) / (assetbalancewavesusdnA / scaleValue6))) / totalShareAmount)
386386 else 0
387387 let shareToken = ((((userSwopVote * swopRate) * harvestPower) / shareTokenRate) - userShareTokenLocked)
388388 if ((shareToken > 0))
389389 then if ((totalShareAmountNew >= shareToken))
390390 then (baseEntry ++ [ScriptTransfer(wallet, protocolReward, SWOP)])
391391 else throw(("You maximum share token is " + toString(shareToken)))
392392 else throw("You can't share token")
393393 }
394394 else throw("Your amount of token less than 0")
395395 }
396396 else baseEntry
397397 }
398398
399399
400400
401401 @Callable(i)
402402 func withdrawShareTokens (pool,shareTokensWithdrawAmount) = {
403403 let shareTokensId = fromBase58String(getStringValue(value(addressFromString(pool)), "share_asset_id"))
404- let $t01832118421 = claimCalc(pool, i.caller, 1)
405- let userNewInterest = $t01832118421._1
406- let currentInterest = $t01832118421._2
407- let claimAmount = $t01832118421._3
408- let userShareTokensAmount = $t01832118421._4
404+ let $t01831718417 = claimCalc(pool, i.caller, 1)
405+ let userNewInterest = $t01831718417._1
406+ let currentInterest = $t01831718417._2
407+ let claimAmount = $t01831718417._3
408+ let userShareTokensAmount = $t01831718417._4
409409 let userShareAmountNew = (userShareTokensAmount - shareTokensWithdrawAmount)
410410 let availableFundsNew = (userAvailableSWOP(pool, i.caller) + claimAmount)
411411 let totalShareAmount = getTotalShareTokenLocked(pool)
412412 let totalShareAmountNew = (totalShareAmount - shareTokensWithdrawAmount)
413413 let userClaimedAmount = getUserSWOPClaimedAmount(pool, i.caller)
414414 let userClaimedAmountNew = (userClaimedAmount + claimAmount)
415415 if ((shareTokensWithdrawAmount > userShareTokensAmount))
416416 then throw("Withdraw amount more then user locked amount")
417417 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)]
418418 }
419419
420420
421421
422422 @Callable(i)
423423 func claim (pool) = {
424424 let shareTokenLocked = getTotalShareTokenLocked(pool)
425- let $t01991419979 = getLastInterestInfo(pool)
426- let lastInterestHeight = $t01991419979._1
427- let lastInterest = $t01991419979._2
428- let $t01998420073 = rewardInfo(pool)
429- let currentRewardPerBlock = $t01998420073._1
430- let rewardUpdateHeight = $t01998420073._2
431- let previousRewardPerBlock = $t01998420073._3
432- let $t02007820178 = claimCalc(pool, i.caller, 1)
433- let userNewInterest = $t02007820178._1
434- let currentInterest = $t02007820178._2
435- let claimAmount = $t02007820178._3
436- let userShareTokensAmount = $t02007820178._4
425+ let $t01991019975 = getLastInterestInfo(pool)
426+ let lastInterestHeight = $t01991019975._1
427+ let lastInterest = $t01991019975._2
428+ let $t01998020069 = rewardInfo(pool)
429+ let currentRewardPerBlock = $t01998020069._1
430+ let rewardUpdateHeight = $t01998020069._2
431+ let previousRewardPerBlock = $t01998020069._3
432+ let $t02007420174 = claimCalc(pool, i.caller, 1)
433+ let userNewInterest = $t02007420174._1
434+ let currentInterest = $t02007420174._2
435+ let claimAmount = $t02007420174._3
436+ let userShareTokensAmount = $t02007420174._4
437437 let availableFund = (userAvailableSWOP(pool, i.caller) + claimAmount)
438438 let userClaimedAmount = getUserSWOPClaimedAmount(pool, i.caller)
439439 let userClaimedAmountNew = (userClaimedAmount + claimAmount)
440440 if ((availableFund == 0))
441441 then throw("You have 0 available SWOP")
442442 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)]
443443 }
444444
445445
446446 @Verifier(tx)
447447 func verify () = match tx {
448448 case _ =>
449449 sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
450450 }
451451

github/deemru/w8io/026f985 
75.63 ms