tx · 6J3xEoD8sZNpRnKNFBbpAj3hGhHy5XUyEHJ3aTavcjWQ

3MsjAKkxKjxVU4gC1BpJ1jKmAZyRufUCErC:  -0.01400000 Waves

2021.05.30 23:46 [1548898] smart account 3MsjAKkxKjxVU4gC1BpJ1jKmAZyRufUCErC > SELF 0.00000000 Waves

{ "type": 13, "id": "6J3xEoD8sZNpRnKNFBbpAj3hGhHy5XUyEHJ3aTavcjWQ", "fee": 1400000, "feeAssetId": null, "timestamp": 1622407617251, "version": 2, "chainId": 84, "sender": "3MsjAKkxKjxVU4gC1BpJ1jKmAZyRufUCErC", "senderPublicKey": "FQ5JNhUjFS3Ty3nSykXrGWHDt4NvXJDCv4JQiJ3dXmKa", "proofs": [ "3d5uKRD5hhWsUiN8d6SJcn1NvabJmtPLiWgTDuwJmiBX2h3C19UWwvx1msfhdk2hdwY6TE3pcv3RoVsuweGyKnQB" ], "script": "base64:AAIEAAAAAAAAACEIAhIDCgEIEgMKAQgSAwoBCBIDCgEIEgQKAggBEgMKAQgAAABVAAAAAAxhZG1pblB1YktleTEBAAAAIATPdeVk0MEPTme5HxNkxBoN6oQkQjF9M5BdQFgKnZNKAAAAAAxhZG1pblB1YktleTIBAAAAIATPdeVk0MEPTme5HxNkxBoN6oQkQjF9M5BdQFgKnZNKAAAAAAxhZG1pblB1YktleTMBAAAAIATPdeVk0MEPTme5HxNkxBoN6oQkQjF9M5BdQFgKnZNKAAAAABRrZXlTaGFyZVRva2Vuc0xvY2tlZAIAAAAaX3RvdGFsX3NoYXJlX3Rva2Vuc19sb2NrZWQAAAAAC2tTaGFyZUxpbWl0AgAAABxzaGFyZV9saW1pdF9vbl9maXJzdF9oYXJ2ZXN0AAAAAAlrZXlBY3RpdmUCAAAABmFjdGl2ZQAAAAAca2V5UmV3YXJkUG9vbEZyYWN0aW9uQ3VycmVudAIAAAAdX2N1cnJlbnRfcG9vbF9mcmFjdGlvbl9yZXdhcmQAAAAAHWtleVJld2FyZFBvb2xGcmFjdGlvblByZ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ABaQAAAAZjYWxsZXIFAAAAEGtleUF2YWlsYWJsZVNXT1AAAAAAAAAAAAAJAARMAAAAAgkBAAAADEludGVnZXJFbnRyeQAAAAIJAAEsAAAAAgkAASwAAAACCQABLAAAAAIFAAAABHBvb2wCAAAAAV8JAAQlAAAAAQgFAAAAAWkAAAAGY2FsbGVyBQAAABhrZXlVc2VyU1dPUENsYWltZWRBbW91bnQFAAAAFHVzZXJDbGFpbWVkQW1vdW50TmV3CQAETAAAAAIJAQAAAAxJbnRlZ2VyRW50cnkAAAACCQABLAAAAAIJAAEsAAAAAgkAASwAAAACBQAAAARwb29sAgAAAAFfCQAEJQAAAAEIBQAAAAFpAAAABmNhbGxlcgUAAAAca2V5VXNlclNXT1BMYXN0Q2xhaW1lZEFtb3VudAUAAAALY2xhaW1BbW91bnQJAARMAAAAAgkBAAAADlNjcmlwdFRyYW5zZmVyAAAAAwgFAAAAAWkAAAAGY2FsbGVyBQAAAA1hdmFpbGFibGVGdW5kBQAAAARTV09QBQAAAANuaWwAAAABAAAAAnR4AQAAAAZ2ZXJpZnkAAAAABAAAAAckbWF0Y2gwBQAAAAJ0eAkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXmJqRgJ", "height": 1548898, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: CqD2ZcqD6vpPryrGrzpbEczFFfx54cJZRjNMtDs5u3G5 Next: XAMLD4ZSpzc5W9CWhzx33AvPDVVZnfDKatVDNMtQ5EV Diff:
OldNewDifferences
298298 let previousRewardPerBlock = $t01170911797._3
299299 let shareTokenLocked = getTotalShareTokenLocked(pool)
300300 if ((shareTokenLocked == 0))
301- then 0
302- else if ((rewardUpdateHeight > height))
301+ then if ((rewardUpdateHeight > height))
303302 then {
304303 let reward = (previousRewardPerBlock * (height - lastInterestHeight))
305304 reward
314313 let reward = (currentRewardPerBlock * (height - rewardUpdateHeight))
315314 (reward + rewardAfterLastInterestBeforeReawardUpdate)
316315 }
316+ else 0
317317 }
318318
319319
344344 func initPoolShareFarming (pool) = if ((i.caller != this))
345345 then throw("Only the DApp itself can call this function")
346346 else {
347- let $t01375913839 = rewardInfo(pool)
348- let currentReward = $t01375913839._1
349- let rewardUpdateHeight = $t01375913839._2
350- let previousRewardPerBlock = $t01375913839._3
347+ let $t01376713847 = rewardInfo(pool)
348+ let currentReward = $t01376713847._1
349+ let rewardUpdateHeight = $t01376713847._2
350+ let previousRewardPerBlock = $t01376713847._3
351351 [IntegerEntry((pool + keyShareTokensLocked), 0), IntegerEntry((pool + keyLastInterest), 0), IntegerEntry((pool + keyLastInterestHeight), height)]
352352 }
353353
357357 func updatePoolInterest (pool) = if ((i.caller != wallet))
358358 then throw("Only the Admin itself can call this function")
359359 else {
360- let $t01425514375 = claimCalc(pool, adminIncreaseInterestAddress, 0)
361- let userNewInterest = $t01425514375._1
362- let currentInterest = $t01425514375._2
363- let claimAmount = $t01425514375._3
364- let userShareTokensAmount = $t01425514375._4
365- let $t01438014460 = rewardInfo(pool)
366- let currentReward = $t01438014460._1
367- let rewardUpdateHeight = $t01438014460._2
368- let previousRewardPerBlock = $t01438014460._3
360+ let $t01426314383 = claimCalc(pool, adminIncreaseInterestAddress, 0)
361+ let userNewInterest = $t01426314383._1
362+ let currentInterest = $t01426314383._2
363+ let claimAmount = $t01426314383._3
364+ let userShareTokensAmount = $t01426314383._4
365+ let $t01438814468 = rewardInfo(pool)
366+ let currentReward = $t01438814468._1
367+ let rewardUpdateHeight = $t01438814468._2
368+ let previousRewardPerBlock = $t01438814468._3
369369 [IntegerEntry((pool + keyShareTokensLocked), 0), IntegerEntry((pool + keyLastInterest), userNewInterest), IntegerEntry((pool + keyLastInterestHeight), height)]
370370 }
371371
373373
374374 @Callable(i)
375375 func lockShareTokens (pool) = {
376- let $t01470614781 = $Tuple2(i.payments[0].amount, i.payments[0].assetId)
377- let pmtAmount = $t01470614781._1
378- let pmtAssetId = $t01470614781._2
379- let $t01478614859 = getAssetInfo(pmtAssetId)
380- let pmtStrAssetId = $t01478614859._1
381- let pmtAssetName = $t01478614859._2
382- let pmtDecimals = $t01478614859._3
383- let $t01486414972 = claimCalc(pool, i.caller, pmtAmount)
384- let userNewInterest = $t01486414972._1
385- let currentInterest = $t01486414972._2
386- let claimAmount = $t01486414972._3
387- let userShareTokensAmount = $t01486414972._4
376+ let $t01471414789 = $Tuple2(i.payments[0].amount, i.payments[0].assetId)
377+ let pmtAmount = $t01471414789._1
378+ let pmtAssetId = $t01471414789._2
379+ let $t01479414867 = getAssetInfo(pmtAssetId)
380+ let pmtStrAssetId = $t01479414867._1
381+ let pmtAssetName = $t01479414867._2
382+ let pmtDecimals = $t01479414867._3
383+ let $t01487214980 = claimCalc(pool, i.caller, pmtAmount)
384+ let userNewInterest = $t01487214980._1
385+ let currentInterest = $t01487214980._2
386+ let claimAmount = $t01487214980._3
387+ let userShareTokensAmount = $t01487214980._4
388388 let userShareAmountNew = (userShareTokensAmount + pmtAmount)
389389 let availableFundsNew = (userAvailableSWOP(pool, i.caller) + claimAmount)
390390 let totalShareAmount = getTotalShareTokenLocked(pool)
436436 @Callable(i)
437437 func withdrawShareTokens (pool,shareTokensWithdrawAmount) = {
438438 let shareTokensId = fromBase58String(getStringValue(value(addressFromString(pool)), "share_asset_id"))
439- let $t01882218922 = claimCalc(pool, i.caller, 1)
440- let userNewInterest = $t01882218922._1
441- let currentInterest = $t01882218922._2
442- let claimAmount = $t01882218922._3
443- let userShareTokensAmount = $t01882218922._4
439+ let $t01883018930 = claimCalc(pool, i.caller, 1)
440+ let userNewInterest = $t01883018930._1
441+ let currentInterest = $t01883018930._2
442+ let claimAmount = $t01883018930._3
443+ let userShareTokensAmount = $t01883018930._4
444444 let userShareAmountNew = (userShareTokensAmount - shareTokensWithdrawAmount)
445445 let availableFundsNew = (userAvailableSWOP(pool, i.caller) + claimAmount)
446446 let totalShareAmount = getTotalShareTokenLocked(pool)
457457 @Callable(i)
458458 func claim (pool) = {
459459 let shareTokenLocked = getTotalShareTokenLocked(pool)
460- let $t02052320588 = getLastInterestInfo(pool)
461- let lastInterestHeight = $t02052320588._1
462- let lastInterest = $t02052320588._2
463- let $t02059320682 = rewardInfo(pool)
464- let currentRewardPerBlock = $t02059320682._1
465- let rewardUpdateHeight = $t02059320682._2
466- let previousRewardPerBlock = $t02059320682._3
467- let $t02068720787 = claimCalc(pool, i.caller, 1)
468- let userNewInterest = $t02068720787._1
469- let currentInterest = $t02068720787._2
470- let claimAmount = $t02068720787._3
471- let userShareTokensAmount = $t02068720787._4
460+ let $t02053120596 = getLastInterestInfo(pool)
461+ let lastInterestHeight = $t02053120596._1
462+ let lastInterest = $t02053120596._2
463+ let $t02060120690 = rewardInfo(pool)
464+ let currentRewardPerBlock = $t02060120690._1
465+ let rewardUpdateHeight = $t02060120690._2
466+ let previousRewardPerBlock = $t02060120690._3
467+ let $t02069520795 = claimCalc(pool, i.caller, 1)
468+ let userNewInterest = $t02069520795._1
469+ let currentInterest = $t02069520795._2
470+ let claimAmount = $t02069520795._3
471+ let userShareTokensAmount = $t02069520795._4
472472 let availableFund = (userAvailableSWOP(pool, i.caller) + claimAmount)
473473 let userClaimedAmount = getUserSWOPClaimedAmount(pool, i.caller)
474474 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 keyActive = "active"
1515
1616 let keyRewardPoolFractionCurrent = "_current_pool_fraction_reward"
1717
1818 let keyRewardPoolFractionPrevious = "_previous_pool_fraction_reward"
1919
2020 let keyTotalRewardPerBlockCurrent = "total_reward_per_block_current"
2121
2222 let keyTotalRewardPerBlockPrevious = "total_reward_per_block_previous"
2323
2424 let keyRewardUpdateHeight = "reward_update_height"
2525
2626 let keyLastInterest = "_last_interest"
2727
2828 let keyLastInterestHeight = "_last_interest_height"
2929
3030 let keyUserShareTokensLocked = "_share_tokens_locked"
3131
3232 let keyUserLastInterest = "_last_interest"
3333
3434 let keySWOPid = "SWOP_id"
3535
3636 let keyUserSWOPClaimedAmount = "_SWOP_claimed_amount"
3737
3838 let keyUserSWOPLastClaimedAmount = "_SWOP_last_claimed_amount"
3939
4040 let keyAvailableSWOP = "_available_SWOP"
4141
4242 let keyFarmingStartHeight = "farming_start_height"
4343
4444 let keyAPY = "apy"
4545
4646 let kPreviousTotalVoteSWOP = "previous_total_vote_SWOP"
4747
4848 let keySwopYearEmission = "swop_year_emission"
4949
5050 let keyBalancecpmmA = "A_asset_balance"
5151
5252 let keyBalancecpmmB = "B_asset_balance"
5353
5454 let kHarvestPoolActiveVoteStrucVoting = "_harvest_pool_activeVote_struc"
5555
5656 let kHarvestUserPoolActiveVoteStrucVoting = "_harvest_user_pool_activeVote_struc"
5757
5858 let keyLimitShareFirstHarvest = "share_limit_on_first_harvest"
5959
6060 let keyAssetIdA = "A_asset_id"
6161
6262 let keyAssetIdB = "B_asset_id"
6363
6464 let keyFirstHarvestHeight = "first_harvest_height"
6565
6666 let keyfirstHarvestCpmm = "first_harvest"
6767
6868 let governanceAddress = Address(base58'3MzJZEn6jzxCPaHEfkrXd7FhbjTyVjdRPLS')
6969
7070 let wallet = Address(base58'3NAGTtZz6WpupSN89NZD5rMZwwziZEg4Kx4')
7171
7272 let votingAddress = Address(base58'3N6CYoCsxrcXKe75pQvvV3JqJrwJjm1t4QN')
7373
7474 let adminIncreaseInterestAddress = Address(base58'3NAGTtZz6WpupSN89NZD5rMZwwziZEg4Kx4')
7575
7676 let oneWeekInBlock = 10106
7777
7878 let totalVoteShare = 10000000000
7979
8080 let scaleValue1 = 10
8181
8282 let scaleValue3 = 1000
8383
8484 let scaleValue5 = 100000
8585
8686 let scaleValue6 = 1000000
8787
8888 let scaleValue8 = 100000000
8989
9090 let scaleValue11 = 100000000000
9191
9292 func strAssetIdA (pool) = getStringValue(pool, keyAssetIdA)
9393
9494
9595 func strAssetIdB (pool) = getStringValue(pool, keyAssetIdB)
9696
9797
9898 func assetIdA (pool) = if ((strAssetIdA(pool) == "WAVES"))
9999 then unit
100100 else fromBase58String(strAssetIdA(pool))
101101
102102
103103 func assetIdB (pool) = if ((strAssetIdB(pool) == "WAVES"))
104104 then unit
105105 else fromBase58String(strAssetIdB(pool))
106106
107107
108108 let kBasePeriod = "base_period"
109109
110110 let kPeriodLength = "period_length"
111111
112112 let kStartHeight = "start_height"
113113
114114 let kFirstHarvestHeight = "first_harvest_height"
115115
116116 let kDurationFullVotePower = "duration_full_vote_power"
117117
118118 let kMinVotePower = "min_vote_power"
119119
120120 let basePeriod = valueOrErrorMessage(getInteger(votingAddress, kBasePeriod), "Empty kBasePeriod")
121121
122122 let startHeight = valueOrErrorMessage(getInteger(votingAddress, kStartHeight), "Empty kStartHeight")
123123
124124 let periodLength = valueOrErrorMessage(getInteger(votingAddress, kPeriodLength), "Empty kPeriodLength")
125125
126126 let durationFullVotePower = valueOrErrorMessage(getInteger(votingAddress, kDurationFullVotePower), "Empty kDurationFullVotePower")
127127
128128 let minVotePower = valueOrErrorMessage(getInteger(votingAddress, kMinVotePower), "Empty kMinVotePower")
129129
130130 let isActive = getBooleanValue(this, keyActive)
131131
132132 let currPeriod = (basePeriod + ((height - startHeight) / periodLength))
133133
134134 func getLimitToken (pool) = valueOrElse(getIntegerValue(pool, keyLimitShareFirstHarvest), 0)
135135
136136
137137 let APY = getIntegerValue(this, keyAPY)
138138
139139 let SwopYearEmission = getIntegerValue(this, keySwopYearEmission)
140140
141141 func assetNameA (pool) = match assetIdA(pool) {
142142 case id: ByteVector =>
143143 value(assetInfo(id)).name
144144 case waves: Unit =>
145145 "WAVES"
146146 case _ =>
147147 throw("Match error")
148148 }
149149
150150
151151 func assetNameB (pool) = match assetIdB(pool) {
152152 case id: ByteVector =>
153153 value(assetInfo(id)).name
154154 case waves: Unit =>
155155 "WAVES"
156156 case _ =>
157157 throw("Match error")
158158 }
159159
160160
161161 let SWOP = fromBase58String(getStringValue(this, keySWOPid))
162162
163163 func isFirstHarvest (pool) = valueOrElse(getBoolean(pool, keyfirstHarvestCpmm), false)
164164
165165
166166 func getHeightFirstHarvest (pool) = valueOrElse(getInteger(pool, keyFirstHarvestHeight), 0)
167167
168168
169169 func getBalanceA (pool) = valueOrErrorMessage(getInteger(pool, keyBalancecpmmA), ("No data on the key: " + keyBalancecpmmA))
170170
171171
172172 func getBalanceB (pool) = valueOrErrorMessage(getInteger(pool, keyBalancecpmmB), ("No data on the key: " + keyBalancecpmmB))
173173
174174
175175 func getShareLimitToken (pool) = valueOrErrorMessage(getInteger(pool, kShareLimit), ("No data on the key: " + kShareLimit))
176176
177177
178178 func getTotalShareTokenLocked (pool) = valueOrErrorMessage(getInteger(this, (pool + keyShareTokensLocked)), (("No data on the key: " + pool) + keyShareTokensLocked))
179179
180180
181181 func getShareAssetId (pool) = fromBase58String(getStringValue(value(addressFromString(pool)), "share_asset_id"))
182182
183183
184184 func getAssetInfo (assetId) = match assetId {
185185 case id: ByteVector =>
186186 let stringId = toBase58String(id)
187187 let info = valueOrErrorMessage(assetInfo(id), (("Asset " + stringId) + " doesn't exist"))
188188 $Tuple3(stringId, info.name, info.decimals)
189189 case waves: Unit =>
190190 $Tuple3("WAVES", "WAVES", 8)
191191 case _ =>
192192 throw("Match error")
193193 }
194194
195195
196196 func calcScaleValue (assetId1,assetId2) = {
197197 let assetId1Decimals = value(assetInfo(assetId1)).decimals
198198 let assetId2Decimals = value(assetInfo(assetId2)).decimals
199199 let scaleDigits = ((assetId2Decimals - assetId1Decimals) + 8)
200200 pow(10, 0, scaleDigits, 0, 0, HALFDOWN)
201201 }
202202
203203
204204 func userAvailableSWOP (pool,user) = valueOrElse(getInteger(this, (((pool + "_") + toString(user)) + keyAvailableSWOP)), 0)
205205
206206
207207 func rewardInfo (pool) = {
208208 let totalRewardPerBlockCurrent = valueOrErrorMessage(getInteger(governanceAddress, keyTotalRewardPerBlockCurrent), ((("No data on the key: " + keyTotalRewardPerBlockCurrent) + " at address ") + toString(governanceAddress)))
209209 let totalRewardPerBlockPrevious = valueOrErrorMessage(getInteger(governanceAddress, keyTotalRewardPerBlockPrevious), ((("No data on the key: " + keyTotalRewardPerBlockPrevious) + " at address ") + toString(governanceAddress)))
210210 let rewardPoolFractionCurrent = valueOrErrorMessage(getInteger(governanceAddress, (pool + keyRewardPoolFractionCurrent)), (((("No data on the key: " + pool) + keyRewardPoolFractionCurrent) + " at address ") + toString(governanceAddress)))
211211 let rewardUpdateHeight = valueOrErrorMessage(getInteger(governanceAddress, keyRewardUpdateHeight), ((("No data on the key: " + keyRewardUpdateHeight) + " at address ") + toString(governanceAddress)))
212212 let rewardPoolFractionPrevious = valueOrErrorMessage(getInteger(governanceAddress, (pool + keyRewardPoolFractionPrevious)), (((("No data on the key: " + pool) + keyRewardPoolFractionPrevious) + " at address ") + toString(governanceAddress)))
213213 let rewardPoolCurrent = fraction(totalRewardPerBlockCurrent, rewardPoolFractionCurrent, totalVoteShare)
214214 let rewardPoolPrevious = fraction(totalRewardPerBlockPrevious, rewardPoolFractionPrevious, totalVoteShare)
215215 if (if ((rewardPoolCurrent > totalRewardPerBlockCurrent))
216216 then true
217217 else (rewardPoolPrevious > totalRewardPerBlockPrevious))
218218 then throw("rewardPoolCurrent > totalRewardPerBlockCurrent or rewardPoolPrevious > totalRewardPerBlockPrevious")
219219 else $Tuple3(rewardPoolCurrent, rewardUpdateHeight, rewardPoolPrevious)
220220 }
221221
222222
223223 func getLastInterestInfo (pool) = {
224224 let lastInterest = valueOrErrorMessage(getInteger(this, (pool + keyLastInterest)), (("No data on the key: " + pool) + keyLastInterest))
225225 let lastInterestHeight = valueOrElse(getInteger(this, (pool + keyLastInterestHeight)), height)
226226 $Tuple2(lastInterestHeight, lastInterest)
227227 }
228228
229229
230230 func getUserInterestInfo (pool,userAddress) = {
231231 let userLastInterest = getInteger(this, (((pool + "_") + toString(userAddress)) + keyUserLastInterest))
232232 let userShare = getInteger(this, (((pool + "_") + toString(userAddress)) + keyUserShareTokensLocked))
233233 let lastInterest = valueOrErrorMessage(getInteger(this, (pool + keyLastInterest)), (("No data on the key: " + pool) + keyLastInterest))
234234 let userLastInterestValue = match userLastInterest {
235235 case userLastInterest: Int =>
236236 userLastInterest
237237 case _ =>
238238 lastInterest
239239 }
240240 let userShareTokensAmount = match userShare {
241241 case userShare: Int =>
242242 userShare
243243 case _ =>
244244 0
245245 }
246246 $Tuple2(userLastInterestValue, userShareTokensAmount)
247247 }
248248
249249
250250 func calcInterest (lastInterestHeight,rewardUpdateHeight,lastInterest,currentRewardPerBlock,shareTokenLocked,previousRewardPerBlock,shareAssetId,scaleValue,pmtAmount) = if ((shareTokenLocked == 0))
251251 then 0
252252 else if ((rewardUpdateHeight > height))
253253 then {
254254 let reward = (previousRewardPerBlock * (height - lastInterestHeight))
255255 (lastInterest + fraction(reward, scaleValue, shareTokenLocked))
256256 }
257257 else if ((lastInterestHeight > rewardUpdateHeight))
258258 then {
259259 let reward = (currentRewardPerBlock * (height - lastInterestHeight))
260260 (lastInterest + fraction(reward, scaleValue, shareTokenLocked))
261261 }
262262 else {
263263 let rewardAfterLastInterestBeforeReawardUpdate = (previousRewardPerBlock * (rewardUpdateHeight - lastInterestHeight))
264264 let interestAfterUpdate = (lastInterest + fraction(rewardAfterLastInterestBeforeReawardUpdate, scaleValue, shareTokenLocked))
265265 let reward = (currentRewardPerBlock * (height - rewardUpdateHeight))
266266 (interestAfterUpdate + fraction(reward, scaleValue, shareTokenLocked))
267267 }
268268
269269
270270 func claimCalc (pool,caller,pmtAmount) = {
271271 let shareAssetId = getShareAssetId(pool)
272272 let scaleValue = calcScaleValue(SWOP, shareAssetId)
273273 let shareTokenLocked = getTotalShareTokenLocked(pool)
274274 let $t01092410989 = getLastInterestInfo(pool)
275275 let lastInterestHeight = $t01092410989._1
276276 let lastInterest = $t01092410989._2
277277 let $t01099411082 = rewardInfo(pool)
278278 let currentRewardPerBlock = $t01099411082._1
279279 let rewardUpdateHeight = $t01099411082._2
280280 let previousRewardPerBlock = $t01099411082._3
281281 let $t01108711166 = getUserInterestInfo(pool, caller)
282282 let userLastInterest = $t01108711166._1
283283 let userShareTokensAmount = $t01108711166._2
284284 let currentInterest = calcInterest(lastInterestHeight, rewardUpdateHeight, lastInterest, currentRewardPerBlock, shareTokenLocked, previousRewardPerBlock, shareAssetId, scaleValue, pmtAmount)
285285 let claimAmount = fraction(userShareTokensAmount, (currentInterest - userLastInterest), scaleValue)
286286 let userNewInterest = currentInterest
287287 $Tuple4(userNewInterest, currentInterest, claimAmount, userShareTokensAmount)
288288 }
289289
290290
291291 func calculateProtocolReward (pool) = {
292292 let $t01163911704 = getLastInterestInfo(pool)
293293 let lastInterestHeight = $t01163911704._1
294294 let lastInterest = $t01163911704._2
295295 let $t01170911797 = rewardInfo(pool)
296296 let currentRewardPerBlock = $t01170911797._1
297297 let rewardUpdateHeight = $t01170911797._2
298298 let previousRewardPerBlock = $t01170911797._3
299299 let shareTokenLocked = getTotalShareTokenLocked(pool)
300300 if ((shareTokenLocked == 0))
301- then 0
302- else if ((rewardUpdateHeight > height))
301+ then if ((rewardUpdateHeight > height))
303302 then {
304303 let reward = (previousRewardPerBlock * (height - lastInterestHeight))
305304 reward
306305 }
307306 else if ((lastInterestHeight > rewardUpdateHeight))
308307 then {
309308 let reward = (currentRewardPerBlock * (height - lastInterestHeight))
310309 reward
311310 }
312311 else {
313312 let rewardAfterLastInterestBeforeReawardUpdate = (previousRewardPerBlock * (rewardUpdateHeight - lastInterestHeight))
314313 let reward = (currentRewardPerBlock * (height - rewardUpdateHeight))
315314 (reward + rewardAfterLastInterestBeforeReawardUpdate)
316315 }
316+ else 0
317317 }
318318
319319
320320 func checkPmtAssetIdCorrect (pool,pmtAssetId) = {
321321 let poolShareAssetId = fromBase58String(getStringValue(value(addressFromString(pool)), "share_asset_id"))
322322 if ((pmtAssetId == poolShareAssetId))
323323 then true
324324 else false
325325 }
326326
327327
328328 func getUserSWOPClaimedAmount (pool,user) = valueOrElse(getInteger(this, (((pool + "_") + toString(user)) + keyUserSWOPClaimedAmount)), 0)
329329
330330
331331 @Callable(i)
332332 func init (earlyLP) = if (isDefined(getString(this, keySWOPid)))
333333 then throw("SWOP already initialized")
334334 else {
335335 let initAmount = 100000000000000
336336 let SWOPissue = Issue("SWOP", "SWOP protocol token", initAmount, 8, true)
337337 let SWOPid = calculateAssetId(SWOPissue)
338338 [BooleanEntry(keyActive, true), Issue("SWOP", "SWOP protocol token", initAmount, 8, true), StringEntry(keySWOPid, toBase58String(SWOPid))]
339339 }
340340
341341
342342
343343 @Callable(i)
344344 func initPoolShareFarming (pool) = if ((i.caller != this))
345345 then throw("Only the DApp itself can call this function")
346346 else {
347- let $t01375913839 = rewardInfo(pool)
348- let currentReward = $t01375913839._1
349- let rewardUpdateHeight = $t01375913839._2
350- let previousRewardPerBlock = $t01375913839._3
347+ let $t01376713847 = rewardInfo(pool)
348+ let currentReward = $t01376713847._1
349+ let rewardUpdateHeight = $t01376713847._2
350+ let previousRewardPerBlock = $t01376713847._3
351351 [IntegerEntry((pool + keyShareTokensLocked), 0), IntegerEntry((pool + keyLastInterest), 0), IntegerEntry((pool + keyLastInterestHeight), height)]
352352 }
353353
354354
355355
356356 @Callable(i)
357357 func updatePoolInterest (pool) = if ((i.caller != wallet))
358358 then throw("Only the Admin itself can call this function")
359359 else {
360- let $t01425514375 = claimCalc(pool, adminIncreaseInterestAddress, 0)
361- let userNewInterest = $t01425514375._1
362- let currentInterest = $t01425514375._2
363- let claimAmount = $t01425514375._3
364- let userShareTokensAmount = $t01425514375._4
365- let $t01438014460 = rewardInfo(pool)
366- let currentReward = $t01438014460._1
367- let rewardUpdateHeight = $t01438014460._2
368- let previousRewardPerBlock = $t01438014460._3
360+ let $t01426314383 = claimCalc(pool, adminIncreaseInterestAddress, 0)
361+ let userNewInterest = $t01426314383._1
362+ let currentInterest = $t01426314383._2
363+ let claimAmount = $t01426314383._3
364+ let userShareTokensAmount = $t01426314383._4
365+ let $t01438814468 = rewardInfo(pool)
366+ let currentReward = $t01438814468._1
367+ let rewardUpdateHeight = $t01438814468._2
368+ let previousRewardPerBlock = $t01438814468._3
369369 [IntegerEntry((pool + keyShareTokensLocked), 0), IntegerEntry((pool + keyLastInterest), userNewInterest), IntegerEntry((pool + keyLastInterestHeight), height)]
370370 }
371371
372372
373373
374374 @Callable(i)
375375 func lockShareTokens (pool) = {
376- let $t01470614781 = $Tuple2(i.payments[0].amount, i.payments[0].assetId)
377- let pmtAmount = $t01470614781._1
378- let pmtAssetId = $t01470614781._2
379- let $t01478614859 = getAssetInfo(pmtAssetId)
380- let pmtStrAssetId = $t01478614859._1
381- let pmtAssetName = $t01478614859._2
382- let pmtDecimals = $t01478614859._3
383- let $t01486414972 = claimCalc(pool, i.caller, pmtAmount)
384- let userNewInterest = $t01486414972._1
385- let currentInterest = $t01486414972._2
386- let claimAmount = $t01486414972._3
387- let userShareTokensAmount = $t01486414972._4
376+ let $t01471414789 = $Tuple2(i.payments[0].amount, i.payments[0].assetId)
377+ let pmtAmount = $t01471414789._1
378+ let pmtAssetId = $t01471414789._2
379+ let $t01479414867 = getAssetInfo(pmtAssetId)
380+ let pmtStrAssetId = $t01479414867._1
381+ let pmtAssetName = $t01479414867._2
382+ let pmtDecimals = $t01479414867._3
383+ let $t01487214980 = claimCalc(pool, i.caller, pmtAmount)
384+ let userNewInterest = $t01487214980._1
385+ let currentInterest = $t01487214980._2
386+ let claimAmount = $t01487214980._3
387+ let userShareTokensAmount = $t01487214980._4
388388 let userShareAmountNew = (userShareTokensAmount + pmtAmount)
389389 let availableFundsNew = (userAvailableSWOP(pool, i.caller) + claimAmount)
390390 let totalShareAmount = getTotalShareTokenLocked(pool)
391391 let totalShareAmountNew = (totalShareAmount + pmtAmount)
392392 let userClaimedAmount = getUserSWOPClaimedAmount(pool, i.caller)
393393 let userClaimedAmountNew = (userClaimedAmount + claimAmount)
394394 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)]
395395 if ((0 >= pmtAmount))
396396 then throw("You can't lock token")
397397 else if (!(checkPmtAssetIdCorrect(pool, pmtAssetId)))
398398 then throw("Incorrect pmtAssetId")
399399 else if (if (isFirstHarvest(Address(fromBase58String(pool))))
400400 then (getHeightFirstHarvest(Address(fromBase58String(pool))) > height)
401401 else false)
402402 then {
403403 let amountOfVoting = split(getStringValue(votingAddress, (((toString(i.caller) + "_") + pool) + "_user_pool_struc")), "_")
404404 let amountPoolStract = split(getStringValue(votingAddress, (pool + "_pool_struc")), "_")
405405 let amountActiveVoteUserPoolStract = split(getStringValue(votingAddress, (((toString(i.caller) + "_") + pool) + kHarvestUserPoolActiveVoteStrucVoting)), "_")
406406 let amountPoolActiveVoteStract = split(getStringValue(votingAddress, (pool + kHarvestPoolActiveVoteStrucVoting)), "_")
407407 let userShareTokenLocked = userShareTokensAmount
408408 let userPoolActiveVote = if ((toString(currPeriod) == amountOfVoting[2]))
409409 then valueOrElse(parseInt(amountActiveVoteUserPoolStract[0]), 0)
410410 else valueOrElse(parseInt(amountOfVoting[1]), 0)
411411 let poolActiveVote = if ((toString(currPeriod) == amountPoolStract[2]))
412412 then valueOrElse(parseInt(amountPoolActiveVoteStract[0]), 0)
413413 else valueOrElse(parseInt(amountPoolStract[1]), 0)
414414 let protocolReward = calculateProtocolReward(pool)
415415 if ((userPoolActiveVote != 0))
416416 then {
417417 let limitShareToken = getShareLimitToken(addressFromStringValue(pool))
418418 let shareToken = (fraction(limitShareToken, userPoolActiveVote, poolActiveVote) - userShareTokenLocked)
419419 if ((pmtAmount > limitShareToken))
420420 then throw(("You can't share token more than " + toString(limitShareToken)))
421421 else if ((shareToken > 0))
422422 then if ((totalShareAmount == 0))
423423 then (baseEntry ++ [ScriptTransfer(wallet, protocolReward, SWOP)])
424424 else if ((shareToken >= pmtAmount))
425425 then baseEntry
426426 else throw(("Your maximum share token is " + toString(shareToken)))
427427 else throw("You can't share token")
428428 }
429429 else throw("Your amount of token less than 0")
430430 }
431431 else baseEntry
432432 }
433433
434434
435435
436436 @Callable(i)
437437 func withdrawShareTokens (pool,shareTokensWithdrawAmount) = {
438438 let shareTokensId = fromBase58String(getStringValue(value(addressFromString(pool)), "share_asset_id"))
439- let $t01882218922 = claimCalc(pool, i.caller, 1)
440- let userNewInterest = $t01882218922._1
441- let currentInterest = $t01882218922._2
442- let claimAmount = $t01882218922._3
443- let userShareTokensAmount = $t01882218922._4
439+ let $t01883018930 = claimCalc(pool, i.caller, 1)
440+ let userNewInterest = $t01883018930._1
441+ let currentInterest = $t01883018930._2
442+ let claimAmount = $t01883018930._3
443+ let userShareTokensAmount = $t01883018930._4
444444 let userShareAmountNew = (userShareTokensAmount - shareTokensWithdrawAmount)
445445 let availableFundsNew = (userAvailableSWOP(pool, i.caller) + claimAmount)
446446 let totalShareAmount = getTotalShareTokenLocked(pool)
447447 let totalShareAmountNew = (totalShareAmount - shareTokensWithdrawAmount)
448448 let userClaimedAmount = getUserSWOPClaimedAmount(pool, i.caller)
449449 let userClaimedAmountNew = (userClaimedAmount + claimAmount)
450450 if ((shareTokensWithdrawAmount > userShareTokensAmount))
451451 then throw("Withdraw amount more then user locked amount")
452452 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)]
453453 }
454454
455455
456456
457457 @Callable(i)
458458 func claim (pool) = {
459459 let shareTokenLocked = getTotalShareTokenLocked(pool)
460- let $t02052320588 = getLastInterestInfo(pool)
461- let lastInterestHeight = $t02052320588._1
462- let lastInterest = $t02052320588._2
463- let $t02059320682 = rewardInfo(pool)
464- let currentRewardPerBlock = $t02059320682._1
465- let rewardUpdateHeight = $t02059320682._2
466- let previousRewardPerBlock = $t02059320682._3
467- let $t02068720787 = claimCalc(pool, i.caller, 1)
468- let userNewInterest = $t02068720787._1
469- let currentInterest = $t02068720787._2
470- let claimAmount = $t02068720787._3
471- let userShareTokensAmount = $t02068720787._4
460+ let $t02053120596 = getLastInterestInfo(pool)
461+ let lastInterestHeight = $t02053120596._1
462+ let lastInterest = $t02053120596._2
463+ let $t02060120690 = rewardInfo(pool)
464+ let currentRewardPerBlock = $t02060120690._1
465+ let rewardUpdateHeight = $t02060120690._2
466+ let previousRewardPerBlock = $t02060120690._3
467+ let $t02069520795 = claimCalc(pool, i.caller, 1)
468+ let userNewInterest = $t02069520795._1
469+ let currentInterest = $t02069520795._2
470+ let claimAmount = $t02069520795._3
471+ let userShareTokensAmount = $t02069520795._4
472472 let availableFund = (userAvailableSWOP(pool, i.caller) + claimAmount)
473473 let userClaimedAmount = getUserSWOPClaimedAmount(pool, i.caller)
474474 let userClaimedAmountNew = (userClaimedAmount + claimAmount)
475475 if ((availableFund == 0))
476476 then throw("You have 0 available SWOP")
477477 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)]
478478 }
479479
480480
481481 @Verifier(tx)
482482 func verify () = match tx {
483483 case _ =>
484484 sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
485485 }
486486

github/deemru/w8io/026f985 
106.27 ms