tx · E1NMK6kGvMJGTUusiXB2JpnSzvSb3PzRTovg4VhC8t96

3MsjAKkxKjxVU4gC1BpJ1jKmAZyRufUCErC:  -0.01400000 Waves

2021.05.11 16:57 [1521104] smart account 3MsjAKkxKjxVU4gC1BpJ1jKmAZyRufUCErC > SELF 0.00000000 Waves

{ "type": 13, "id": "E1NMK6kGvMJGTUusiXB2JpnSzvSb3PzRTovg4VhC8t96", "fee": 1400000, "feeAssetId": null, "timestamp": 1620741454565, "version": 2, "chainId": 84, "sender": "3MsjAKkxKjxVU4gC1BpJ1jKmAZyRufUCErC", "senderPublicKey": "FQ5JNhUjFS3Ty3nSykXrGWHDt4NvXJDCv4JQiJ3dXmKa", "proofs": [ "2hqveXTzW4tzvUkWM78NVqHwJiCjduKep85Sp8c6x3J6FQeteenYedr7cigj5VPtf5t7sNCaQFaNYxnp15N11Fic" ], "script": "base64:AAIEAAAAAAAAACEIAhIDCgEIEgMKAQgSAwoBCBIDCgEIEgQKAggBEgMKAQgAAABTAAAAAAxhZG1pblB1YktleTEBAAAAILoJ1zuJWaTRXaD/8bsz0KrhOWkPy+K9kdY77k9eqOATAAAAAAxhZG1pblB1YktleTIBAAAAIMKRRJmz0rC0DSKlkVi9iLyhN7sIy//djOaU71sWDn5AAAAAAAxhZG1pblB1YktleTMBAAAAII4eFy54sQc79EhOejMoYHYod/yZ5ZIwoyDCz6ir6Q5VAAAAABRrZXlTaGFyZVRva2Vuc0xvY2tlZAIAAAAaX3RvdGFsX3NoYXJlX3Rva2Vuc19sb2NrZWQAAAAAHGtleVJld2FyZFBvb2xGcmFjdGlvbkN1cnJlbnQCAAAAHV9jdXJyZW50X3Bvb2xfZnJhY3Rpb25fcmV3YXJkAAAAAB1rZXlSZXdhcmRQb29sRnJhY3Rpb25QcmV2aW91cwIAAAAeX3ByZXZpb3VzX3Bvb2xfZnJhY3Rpb25fcmV3YXJkAAAAAB1rZXlUb3RhbFJld2FyZFBlckJsb2NrQ3VycmVudAIAAAAedG90YWxfcm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AAAAIJAAEsAAAAAgkAASwAAAACBQAAAARwb29sAgAAAAFfCQAEJQAAAAEIBQAAAAFpAAAABmNhbGxlcgUAAAAQa2V5QXZhaWxhYmxlU1dPUAAAAAAAAAAAAAkABEwAAAACCQEAAAAMSW50ZWdlckVudHJ5AAAAAgkAASwAAAACCQABLAAAAAIJAAEsAAAAAgUAAAAEcG9vbAIAAAABXwkABCUAAAABCAUAAAABaQAAAAZjYWxsZXIFAAAAGGtleVVzZXJTV09QQ2xhaW1lZEFtb3VudAUAAAAUdXNlckNsYWltZWRBbW91bnROZXcJAARMAAAAAgkBAAAADEludGVnZXJFbnRyeQAAAAIJAAEsAAAAAgkAASwAAAACCQABLAAAAAIFAAAABHBvb2wCAAAAAV8JAAQlAAAAAQgFAAAAAWkAAAAGY2FsbGVyBQAAABxrZXlVc2VyU1dPUExhc3RDbGFpbWVkQW1vdW50BQAAAAtjbGFpbUFtb3VudAkABEwAAAACCQEAAAAOU2NyaXB0VHJhbnNmZXIAAAADCAUAAAABaQAAAAZjYWxsZXIFAAAADWF2YWlsYWJsZUZ1bmQFAAAABFNXT1AFAAAAA25pbAAAAAEAAAACdHgBAAAABnZlcmlmeQAAAAAEAAAAByRtYXRjaDAFAAAAAnR4CQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAgFAAAAAnR4AAAAD3NlbmRlclB1YmxpY0tleamDSnw=", "height": 1521104, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 5SfFbPUiv9VipdnQKBN3QmB6ZiaaQv8tAaZWNbQhtT7P Next: BhiKn1rU8tGwnMf4j9J28FyFtXCz9tJtxYNi9kWvQCm1 Diff:
OldNewDifferences
324324
325325
326326 @Callable(i)
327-func init (earlyLP) = if (isDefined(getString(this, "keySWOPid")))
327+func init (earlyLP) = if (isDefined(getString(this, keySWOPid)))
328328 then throw("SWOP already initialized")
329329 else {
330330 let initAmount = 100000000000000
339339 func initPoolShareFarming (pool) = if ((i.caller != this))
340340 then throw("Only the DApp itself can call this function")
341341 else {
342- let $t01367913759 = rewardInfo(pool)
343- let currentReward = $t01367913759._1
344- let rewardUpdateHeight = $t01367913759._2
345- let previousRewardPerBlock = $t01367913759._3
342+ let $t01367713757 = rewardInfo(pool)
343+ let currentReward = $t01367713757._1
344+ let rewardUpdateHeight = $t01367713757._2
345+ let previousRewardPerBlock = $t01367713757._3
346346 [IntegerEntry((pool + keyShareTokensLocked), 0), IntegerEntry((pool + keyLastInterest), 0), IntegerEntry((pool + keyLastInterestHeight), height)]
347347 }
348348
352352 func updatePoolInterest (pool) = if ((i.caller != wallet))
353353 then throw("Only the Admin itself can call this function")
354354 else {
355- let $t01410814228 = claimCalc(pool, adminIncreaseInterestAddress, 0)
356- let userNewInterest = $t01410814228._1
357- let currentInterest = $t01410814228._2
358- let claimAmount = $t01410814228._3
359- let userShareTokensAmount = $t01410814228._4
355+ let $t01410614226 = claimCalc(pool, adminIncreaseInterestAddress, 0)
356+ let userNewInterest = $t01410614226._1
357+ let currentInterest = $t01410614226._2
358+ let claimAmount = $t01410614226._3
359+ let userShareTokensAmount = $t01410614226._4
360360 [IntegerEntry((pool + keyLastInterest), userNewInterest)]
361361 }
362362
364364
365365 @Callable(i)
366366 func lockShareTokens (pool) = {
367- let $t01436114436 = $Tuple2(i.payments[0].amount, i.payments[0].assetId)
368- let pmtAmount = $t01436114436._1
369- let pmtAssetId = $t01436114436._2
370- let $t01444114514 = getAssetInfo(pmtAssetId)
371- let pmtStrAssetId = $t01444114514._1
372- let pmtAssetName = $t01444114514._2
373- let pmtDecimals = $t01444114514._3
374- let $t01451914627 = claimCalc(pool, i.caller, pmtAmount)
375- let userNewInterest = $t01451914627._1
376- let currentInterest = $t01451914627._2
377- let claimAmount = $t01451914627._3
378- let userShareTokensAmount = $t01451914627._4
367+ let $t01435914434 = $Tuple2(i.payments[0].amount, i.payments[0].assetId)
368+ let pmtAmount = $t01435914434._1
369+ let pmtAssetId = $t01435914434._2
370+ let $t01443914512 = getAssetInfo(pmtAssetId)
371+ let pmtStrAssetId = $t01443914512._1
372+ let pmtAssetName = $t01443914512._2
373+ let pmtDecimals = $t01443914512._3
374+ let $t01451714625 = claimCalc(pool, i.caller, pmtAmount)
375+ let userNewInterest = $t01451714625._1
376+ let currentInterest = $t01451714625._2
377+ let claimAmount = $t01451714625._3
378+ let userShareTokensAmount = $t01451714625._4
379379 let userShareAmountNew = (userShareTokensAmount + pmtAmount)
380380 let availableFundsNew = (userAvailableSWOP(pool, i.caller) + claimAmount)
381381 let totalShareAmount = getTotalShareTokenLocked(pool)
422422 @Callable(i)
423423 func withdrawShareTokens (pool,shareTokensWithdrawAmount) = {
424424 let shareTokensId = fromBase58String(getStringValue(value(addressFromString(pool)), "share_asset_id"))
425- let $t01813418234 = claimCalc(pool, i.caller, 1)
426- let userNewInterest = $t01813418234._1
427- let currentInterest = $t01813418234._2
428- let claimAmount = $t01813418234._3
429- let userShareTokensAmount = $t01813418234._4
425+ let $t01813218232 = claimCalc(pool, i.caller, 1)
426+ let userNewInterest = $t01813218232._1
427+ let currentInterest = $t01813218232._2
428+ let claimAmount = $t01813218232._3
429+ let userShareTokensAmount = $t01813218232._4
430430 let userShareAmountNew = (userShareTokensAmount - shareTokensWithdrawAmount)
431431 let availableFundsNew = (userAvailableSWOP(pool, i.caller) + claimAmount)
432432 let totalShareAmount = getTotalShareTokenLocked(pool)
443443 @Callable(i)
444444 func claim (pool) = {
445445 let shareTokenLocked = getTotalShareTokenLocked(pool)
446- let $t01972719792 = getLastInterestInfo(pool)
447- let lastInterestHeight = $t01972719792._1
448- let lastInterest = $t01972719792._2
449- let $t01979719886 = rewardInfo(pool)
450- let currentRewardPerBlock = $t01979719886._1
451- let rewardUpdateHeight = $t01979719886._2
452- let previousRewardPerBlock = $t01979719886._3
453- let $t01989119991 = claimCalc(pool, i.caller, 1)
454- let userNewInterest = $t01989119991._1
455- let currentInterest = $t01989119991._2
456- let claimAmount = $t01989119991._3
457- let userShareTokensAmount = $t01989119991._4
446+ let $t01972519790 = getLastInterestInfo(pool)
447+ let lastInterestHeight = $t01972519790._1
448+ let lastInterest = $t01972519790._2
449+ let $t01979519884 = rewardInfo(pool)
450+ let currentRewardPerBlock = $t01979519884._1
451+ let rewardUpdateHeight = $t01979519884._2
452+ let previousRewardPerBlock = $t01979519884._3
453+ let $t01988919989 = claimCalc(pool, i.caller, 1)
454+ let userNewInterest = $t01988919989._1
455+ let currentInterest = $t01988919989._2
456+ let claimAmount = $t01988919989._3
457+ let userShareTokensAmount = $t01988919989._4
458458 let availableFund = (userAvailableSWOP(pool, i.caller) + claimAmount)
459459 let userClaimedAmount = getUserSWOPClaimedAmount(pool, i.caller)
460460 let userClaimedAmountNew = (userClaimedAmount + claimAmount)
461461 if ((availableFund == 0))
462462 then throw("You have 0 available SWOP")
463- 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)]
463+ 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)]
464464 }
465465
466466
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
4242 let kPreviousTotalVoteSWOP = "previous_total_vote_SWOP"
4343
4444 let keySwopYearEmission = "swop_year_emission"
4545
4646 let keyBalancecpmmA = "A_asset_balance"
4747
4848 let keyBalancecpmmB = "B_asset_balance"
4949
5050 let kHarvestPoolActiveVoteStrucVoting = "_harvest_pool_activeVote_struc"
5151
5252 let kHarvestUserPoolActiveVoteStrucVoting = "_harvest_user_pool_ActiveVote_struc"
5353
5454 let keyLimitShareFirstHarvest = "share_limit_on_first_harvest"
5555
5656 let keyAssetIdA = "A_asset_id"
5757
5858 let keyAssetIdB = "B_asset_id"
5959
6060 let keyFirstHarvestHeight = "first_harvest_height"
6161
6262 let keyfirstHarvestCpmm = "first_harvest"
6363
6464 let governanceAddress = Address(base58'3MzJZEn6jzxCPaHEfkrXd7FhbjTyVjdRPLS')
6565
6666 let wallet = Address(base58'3NAGTtZz6WpupSN89NZD5rMZwwziZEg4Kx4')
6767
6868 let votingAddress = Address(base58'3N6CYoCsxrcXKe75pQvvV3JqJrwJjm1t4QN')
6969
7070 let swopUsdnAddress = Address(base58'3N4kooq5242vPtJzBDrmukK6ptrjRRjEBWi')
7171
7272 let wavesUsdnAddress = Address(base58'3MxtJmAsKsfof4X28MJPBtvRUyz1PbCnbhF')
7373
7474 let adminIncreaseInterestAddress = Address(base58'3NAGTtZz6WpupSN89NZD5rMZwwziZEg4Kx4')
7575
7676 let oneWeekInBlock = 10106
7777
7878 let totalVoteShare = 10000000000
7979
8080 let scaleValue1 = 10
8181
8282 let scaleValue3 = 1000
8383
8484 let scaleValue5 = 100000
8585
8686 let scaleValue6 = 1000000
8787
8888 let scaleValue8 = 100000000
8989
9090 let scaleValue11 = 100000000000
9191
9292 func strAssetIdA (pool) = getStringValue(pool, keyAssetIdA)
9393
9494
9595 func strAssetIdB (pool) = getStringValue(pool, keyAssetIdB)
9696
9797
9898 func assetIdA (pool) = if ((strAssetIdA(pool) == "WAVES"))
9999 then unit
100100 else fromBase58String(strAssetIdA(pool))
101101
102102
103103 func assetIdB (pool) = if ((strAssetIdB(pool) == "WAVES"))
104104 then unit
105105 else fromBase58String(strAssetIdB(pool))
106106
107107
108108 let kBasePeriod = "base_period"
109109
110110 let kPeriodLength = "period_length"
111111
112112 let kStartHeight = "start_height"
113113
114114 let kFirstHarvestHeight = "first_harvest_height"
115115
116116 let kDurationFullVotePower = "duration_full_vote_power"
117117
118118 let kMinVotePower = "min_vote_power"
119119
120120 let basePeriod = valueOrErrorMessage(getInteger(votingAddress, kBasePeriod), "Empty kBasePeriod")
121121
122122 let startHeight = valueOrErrorMessage(getInteger(votingAddress, kStartHeight), "Empty kStartHeight")
123123
124124 let periodLength = valueOrErrorMessage(getInteger(votingAddress, kPeriodLength), "Empty kPeriodLength")
125125
126126 let durationFullVotePower = valueOrErrorMessage(getInteger(votingAddress, kDurationFullVotePower), "Empty kDurationFullVotePower")
127127
128128 let minVotePower = valueOrErrorMessage(getInteger(votingAddress, kMinVotePower), "Empty kMinVotePower")
129129
130130 let currPeriod = (basePeriod + ((height - startHeight) / periodLength))
131131
132132 func getLimitToken (pool) = valueOrElse(getIntegerValue(pool, keyLimitShareFirstHarvest), 0)
133133
134134
135135 let APY = getIntegerValue(this, keyAPY)
136136
137137 let SwopYearEmission = getIntegerValue(this, keySwopYearEmission)
138138
139139 func assetNameA (pool) = match assetIdA(pool) {
140140 case id: ByteVector =>
141141 value(assetInfo(id)).name
142142 case waves: Unit =>
143143 "WAVES"
144144 case _ =>
145145 throw("Match error")
146146 }
147147
148148
149149 func assetNameB (pool) = match assetIdB(pool) {
150150 case id: ByteVector =>
151151 value(assetInfo(id)).name
152152 case waves: Unit =>
153153 "WAVES"
154154 case _ =>
155155 throw("Match error")
156156 }
157157
158158
159159 let SWOP = fromBase58String(getStringValue(this, keySWOPid))
160160
161161 func isFirstHarvest (pool) = valueOrElse(getBoolean(pool, keyfirstHarvestCpmm), false)
162162
163163
164164 func getHeightFirstHarvest (pool) = valueOrElse(getInteger(pool, keyFirstHarvestHeight), 0)
165165
166166
167167 func getBalanceA (pool) = valueOrErrorMessage(getInteger(pool, keyBalancecpmmA), ("No data on the key: " + keyBalancecpmmA))
168168
169169
170170 func getBalanceB (pool) = valueOrErrorMessage(getInteger(pool, keyBalancecpmmB), ("No data on the key: " + keyBalancecpmmB))
171171
172172
173173 func getTotalShareTokenLocked (pool) = valueOrErrorMessage(getInteger(this, (pool + keyShareTokensLocked)), (("No data on the key: " + pool) + keyShareTokensLocked))
174174
175175
176176 func getShareAssetId (pool) = fromBase58String(getStringValue(value(addressFromString(pool)), "share_asset_id"))
177177
178178
179179 func getAssetInfo (assetId) = match assetId {
180180 case id: ByteVector =>
181181 let stringId = toBase58String(id)
182182 let info = valueOrErrorMessage(assetInfo(id), (("Asset " + stringId) + " doesn't exist"))
183183 $Tuple3(stringId, info.name, info.decimals)
184184 case waves: Unit =>
185185 $Tuple3("WAVES", "WAVES", 8)
186186 case _ =>
187187 throw("Match error")
188188 }
189189
190190
191191 func calcScaleValue (assetId1,assetId2) = {
192192 let assetId1Decimals = value(assetInfo(assetId1)).decimals
193193 let assetId2Decimals = value(assetInfo(assetId2)).decimals
194194 let scaleDigits = ((assetId2Decimals - assetId1Decimals) + 8)
195195 pow(10, 0, scaleDigits, 0, 0, HALFDOWN)
196196 }
197197
198198
199199 func userAvailableSWOP (pool,user) = valueOrElse(getInteger(this, (((pool + "_") + toString(user)) + keyAvailableSWOP)), 0)
200200
201201
202202 func rewardInfo (pool) = {
203203 let totalRewardPerBlockCurrent = valueOrErrorMessage(getInteger(governanceAddress, keyTotalRewardPerBlockCurrent), ((("No data on the key: " + keyTotalRewardPerBlockCurrent) + " at address ") + toString(governanceAddress)))
204204 let totalRewardPerBlockPrevious = valueOrErrorMessage(getInteger(governanceAddress, keyTotalRewardPerBlockPrevious), ((("No data on the key: " + keyTotalRewardPerBlockPrevious) + " at address ") + toString(governanceAddress)))
205205 let rewardPoolFractionCurrent = valueOrErrorMessage(getInteger(governanceAddress, (pool + keyRewardPoolFractionCurrent)), (((("No data on the key: " + pool) + keyRewardPoolFractionCurrent) + " at address ") + toString(governanceAddress)))
206206 let rewardUpdateHeight = valueOrErrorMessage(getInteger(governanceAddress, keyRewardUpdateHeight), ((("No data on the key: " + keyRewardUpdateHeight) + " at address ") + toString(governanceAddress)))
207207 let rewardPoolFractionPrevious = valueOrErrorMessage(getInteger(governanceAddress, (pool + keyRewardPoolFractionPrevious)), (((("No data on the key: " + pool) + keyRewardPoolFractionPrevious) + " at address ") + toString(governanceAddress)))
208208 let rewardPoolCurrent = fraction(totalRewardPerBlockCurrent, rewardPoolFractionCurrent, totalVoteShare)
209209 let rewardPoolPrevious = fraction(totalRewardPerBlockPrevious, rewardPoolFractionPrevious, totalVoteShare)
210210 if (if ((rewardPoolCurrent > totalRewardPerBlockCurrent))
211211 then true
212212 else (rewardPoolPrevious > totalRewardPerBlockPrevious))
213213 then throw("rewardPoolCurrent > totalRewardPerBlockCurrent or rewardPoolPrevious > totalRewardPerBlockPrevious")
214214 else $Tuple3(rewardPoolCurrent, rewardUpdateHeight, rewardPoolPrevious)
215215 }
216216
217217
218218 func getLastInterestInfo (pool) = {
219219 let lastInterest = valueOrErrorMessage(getInteger(this, (pool + keyLastInterest)), (("No data on the key: " + pool) + keyLastInterest))
220220 let lastInterestHeight = valueOrElse(getInteger(this, (pool + keyLastInterestHeight)), height)
221221 $Tuple2(lastInterestHeight, lastInterest)
222222 }
223223
224224
225225 func getUserInterestInfo (pool,userAddress) = {
226226 let userLastInterest = getInteger(this, (((pool + "_") + toString(userAddress)) + keyUserLastInterest))
227227 let userShare = getInteger(this, (((pool + "_") + toString(userAddress)) + keyUserShareTokensLocked))
228228 let lastInterest = valueOrErrorMessage(getInteger(this, (pool + keyLastInterest)), (("No data on the key: " + pool) + keyLastInterest))
229229 let userLastInterestValue = match userLastInterest {
230230 case userLastInterest: Int =>
231231 userLastInterest
232232 case _ =>
233233 lastInterest
234234 }
235235 let userShareTokensAmount = match userShare {
236236 case userShare: Int =>
237237 userShare
238238 case _ =>
239239 0
240240 }
241241 $Tuple2(userLastInterestValue, userShareTokensAmount)
242242 }
243243
244244
245245 func calcInterest (lastInterestHeight,rewardUpdateHeight,lastInterest,currentRewardPerBlock,shareTokenLocked,previousRewardPerBlock,shareAssetId,scaleValue,pmtAmount) = if ((shareTokenLocked == 0))
246246 then 0
247247 else if ((rewardUpdateHeight > height))
248248 then {
249249 let reward = (previousRewardPerBlock * (height - lastInterestHeight))
250250 (lastInterest + fraction(reward, scaleValue, shareTokenLocked))
251251 }
252252 else if ((lastInterestHeight > rewardUpdateHeight))
253253 then {
254254 let reward = (currentRewardPerBlock * (height - lastInterestHeight))
255255 (lastInterest + fraction(reward, scaleValue, shareTokenLocked))
256256 }
257257 else {
258258 let rewardAfterLastInterestBeforeReawardUpdate = (previousRewardPerBlock * (rewardUpdateHeight - lastInterestHeight))
259259 let interestAfterUpdate = (lastInterest + fraction(rewardAfterLastInterestBeforeReawardUpdate, scaleValue, shareTokenLocked))
260260 let reward = (currentRewardPerBlock * (height - rewardUpdateHeight))
261261 (interestAfterUpdate + fraction(reward, scaleValue, shareTokenLocked))
262262 }
263263
264264
265265 func claimCalc (pool,caller,pmtAmount) = {
266266 let shareAssetId = getShareAssetId(pool)
267267 let scaleValue = calcScaleValue(SWOP, shareAssetId)
268268 let shareTokenLocked = getTotalShareTokenLocked(pool)
269269 let $t01086910934 = getLastInterestInfo(pool)
270270 let lastInterestHeight = $t01086910934._1
271271 let lastInterest = $t01086910934._2
272272 let $t01093911027 = rewardInfo(pool)
273273 let currentRewardPerBlock = $t01093911027._1
274274 let rewardUpdateHeight = $t01093911027._2
275275 let previousRewardPerBlock = $t01093911027._3
276276 let $t01103211111 = getUserInterestInfo(pool, caller)
277277 let userLastInterest = $t01103211111._1
278278 let userShareTokensAmount = $t01103211111._2
279279 let currentInterest = calcInterest(lastInterestHeight, rewardUpdateHeight, lastInterest, currentRewardPerBlock, shareTokenLocked, previousRewardPerBlock, shareAssetId, scaleValue, pmtAmount)
280280 let claimAmount = fraction(userShareTokensAmount, (currentInterest - userLastInterest), scaleValue)
281281 let userNewInterest = currentInterest
282282 $Tuple4(userNewInterest, currentInterest, claimAmount, userShareTokensAmount)
283283 }
284284
285285
286286 func calculateProtocolReward (pool) = {
287287 let $t01158511650 = getLastInterestInfo(pool)
288288 let lastInterestHeight = $t01158511650._1
289289 let lastInterest = $t01158511650._2
290290 let $t01165611744 = rewardInfo(pool)
291291 let currentRewardPerBlock = $t01165611744._1
292292 let rewardUpdateHeight = $t01165611744._2
293293 let previousRewardPerBlock = $t01165611744._3
294294 let shareTokenLocked = getTotalShareTokenLocked(pool)
295295 if ((shareTokenLocked == 0))
296296 then 0
297297 else if ((rewardUpdateHeight > height))
298298 then {
299299 let reward = (previousRewardPerBlock * (height - lastInterestHeight))
300300 reward
301301 }
302302 else if ((lastInterestHeight > rewardUpdateHeight))
303303 then {
304304 let reward = (currentRewardPerBlock * (height - lastInterestHeight))
305305 reward
306306 }
307307 else {
308308 let rewardAfterLastInterestBeforeReawardUpdate = (previousRewardPerBlock * (rewardUpdateHeight - lastInterestHeight))
309309 let reward = (currentRewardPerBlock * (height - rewardUpdateHeight))
310310 (reward + rewardAfterLastInterestBeforeReawardUpdate)
311311 }
312312 }
313313
314314
315315 func checkPmtAssetIdCorrect (pool,pmtAssetId) = {
316316 let poolShareAssetId = fromBase58String(getStringValue(value(addressFromString(pool)), "share_asset_id"))
317317 if ((pmtAssetId == poolShareAssetId))
318318 then true
319319 else false
320320 }
321321
322322
323323 func getUserSWOPClaimedAmount (pool,user) = valueOrElse(getInteger(this, (((pool + "_") + toString(user)) + keyUserSWOPClaimedAmount)), 0)
324324
325325
326326 @Callable(i)
327-func init (earlyLP) = if (isDefined(getString(this, "keySWOPid")))
327+func init (earlyLP) = if (isDefined(getString(this, keySWOPid)))
328328 then throw("SWOP already initialized")
329329 else {
330330 let initAmount = 100000000000000
331331 let SWOPissue = Issue("SWOP", "SWOP protocol token", initAmount, 8, true)
332332 let SWOPid = calculateAssetId(SWOPissue)
333333 [Issue("SWOP", "SWOP protocol token", initAmount, 8, true), StringEntry(keySWOPid, toBase58String(SWOPid))]
334334 }
335335
336336
337337
338338 @Callable(i)
339339 func initPoolShareFarming (pool) = if ((i.caller != this))
340340 then throw("Only the DApp itself can call this function")
341341 else {
342- let $t01367913759 = rewardInfo(pool)
343- let currentReward = $t01367913759._1
344- let rewardUpdateHeight = $t01367913759._2
345- let previousRewardPerBlock = $t01367913759._3
342+ let $t01367713757 = rewardInfo(pool)
343+ let currentReward = $t01367713757._1
344+ let rewardUpdateHeight = $t01367713757._2
345+ let previousRewardPerBlock = $t01367713757._3
346346 [IntegerEntry((pool + keyShareTokensLocked), 0), IntegerEntry((pool + keyLastInterest), 0), IntegerEntry((pool + keyLastInterestHeight), height)]
347347 }
348348
349349
350350
351351 @Callable(i)
352352 func updatePoolInterest (pool) = if ((i.caller != wallet))
353353 then throw("Only the Admin itself can call this function")
354354 else {
355- let $t01410814228 = claimCalc(pool, adminIncreaseInterestAddress, 0)
356- let userNewInterest = $t01410814228._1
357- let currentInterest = $t01410814228._2
358- let claimAmount = $t01410814228._3
359- let userShareTokensAmount = $t01410814228._4
355+ let $t01410614226 = claimCalc(pool, adminIncreaseInterestAddress, 0)
356+ let userNewInterest = $t01410614226._1
357+ let currentInterest = $t01410614226._2
358+ let claimAmount = $t01410614226._3
359+ let userShareTokensAmount = $t01410614226._4
360360 [IntegerEntry((pool + keyLastInterest), userNewInterest)]
361361 }
362362
363363
364364
365365 @Callable(i)
366366 func lockShareTokens (pool) = {
367- let $t01436114436 = $Tuple2(i.payments[0].amount, i.payments[0].assetId)
368- let pmtAmount = $t01436114436._1
369- let pmtAssetId = $t01436114436._2
370- let $t01444114514 = getAssetInfo(pmtAssetId)
371- let pmtStrAssetId = $t01444114514._1
372- let pmtAssetName = $t01444114514._2
373- let pmtDecimals = $t01444114514._3
374- let $t01451914627 = claimCalc(pool, i.caller, pmtAmount)
375- let userNewInterest = $t01451914627._1
376- let currentInterest = $t01451914627._2
377- let claimAmount = $t01451914627._3
378- let userShareTokensAmount = $t01451914627._4
367+ let $t01435914434 = $Tuple2(i.payments[0].amount, i.payments[0].assetId)
368+ let pmtAmount = $t01435914434._1
369+ let pmtAssetId = $t01435914434._2
370+ let $t01443914512 = getAssetInfo(pmtAssetId)
371+ let pmtStrAssetId = $t01443914512._1
372+ let pmtAssetName = $t01443914512._2
373+ let pmtDecimals = $t01443914512._3
374+ let $t01451714625 = claimCalc(pool, i.caller, pmtAmount)
375+ let userNewInterest = $t01451714625._1
376+ let currentInterest = $t01451714625._2
377+ let claimAmount = $t01451714625._3
378+ let userShareTokensAmount = $t01451714625._4
379379 let userShareAmountNew = (userShareTokensAmount + pmtAmount)
380380 let availableFundsNew = (userAvailableSWOP(pool, i.caller) + claimAmount)
381381 let totalShareAmount = getTotalShareTokenLocked(pool)
382382 let totalShareAmountNew = (totalShareAmount + pmtAmount)
383383 let userClaimedAmount = getUserSWOPClaimedAmount(pool, i.caller)
384384 let userClaimedAmountNew = (userClaimedAmount + claimAmount)
385385 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)]
386386 if ((0 >= pmtAmount))
387387 then throw("You can't lock token")
388388 else if (!(checkPmtAssetIdCorrect(pool, pmtAssetId)))
389389 then throw("Incorrect pmtAssetId")
390390 else if (if (isFirstHarvest(Address(fromBase58String(pool))))
391391 then (height > (getHeightFirstHarvest(Address(fromBase58String(pool))) * periodLength))
392392 else false)
393393 then {
394394 let amountOfVoting = split(getStringValue(votingAddress, (((toString(this) + "_") + pool) + "_user_pool_struc")), "_")
395395 let amountPoolStract = split(getStringValue(votingAddress, (((toString(this) + "_") + pool) + "_pool_struc")), "_")
396396 let amountActiveVoteUserPoolStract = split(getStringValue(votingAddress, (((toString(this) + "_") + pool) + kHarvestUserPoolActiveVoteStrucVoting)), "_")
397397 let amountPoolActiveVoteStract = split(getStringValue(votingAddress, (pool + kHarvestPoolActiveVoteStrucVoting)), "_")
398398 let userShareTokenLocked = userShareTokensAmount
399399 let userPoolActiveVote = if ((toString(currPeriod) == amountOfVoting[2]))
400400 then valueOrElse(parseInt(amountActiveVoteUserPoolStract[0]), 0)
401401 else valueOrElse(parseInt(amountOfVoting[0]), 0)
402402 let poolActiveVote = if ((toString(currPeriod) == amountPoolStract[2]))
403403 then valueOrElse(parseInt(amountPoolActiveVoteStract[0]), 0)
404404 else valueOrElse(parseInt(amountPoolStract[0]), 0)
405405 let protocolReward = calculateProtocolReward(pool)
406406 if ((parseInt(amountOfVoting[1]) != 0))
407407 then {
408408 let shareToken = (fraction(getTotalShareTokenLocked(pool), userPoolActiveVote, poolActiveVote) - userShareTokenLocked)
409409 if ((shareToken > 0))
410410 then if ((totalShareAmountNew >= shareToken))
411411 then (baseEntry ++ [ScriptTransfer(wallet, protocolReward, SWOP)])
412412 else throw(("You maximum share token is " + toString(shareToken)))
413413 else throw("You can't share token")
414414 }
415415 else throw("Your amount of token less than 0")
416416 }
417417 else baseEntry
418418 }
419419
420420
421421
422422 @Callable(i)
423423 func withdrawShareTokens (pool,shareTokensWithdrawAmount) = {
424424 let shareTokensId = fromBase58String(getStringValue(value(addressFromString(pool)), "share_asset_id"))
425- let $t01813418234 = claimCalc(pool, i.caller, 1)
426- let userNewInterest = $t01813418234._1
427- let currentInterest = $t01813418234._2
428- let claimAmount = $t01813418234._3
429- let userShareTokensAmount = $t01813418234._4
425+ let $t01813218232 = claimCalc(pool, i.caller, 1)
426+ let userNewInterest = $t01813218232._1
427+ let currentInterest = $t01813218232._2
428+ let claimAmount = $t01813218232._3
429+ let userShareTokensAmount = $t01813218232._4
430430 let userShareAmountNew = (userShareTokensAmount - shareTokensWithdrawAmount)
431431 let availableFundsNew = (userAvailableSWOP(pool, i.caller) + claimAmount)
432432 let totalShareAmount = getTotalShareTokenLocked(pool)
433433 let totalShareAmountNew = (totalShareAmount - shareTokensWithdrawAmount)
434434 let userClaimedAmount = getUserSWOPClaimedAmount(pool, i.caller)
435435 let userClaimedAmountNew = (userClaimedAmount + claimAmount)
436436 if ((shareTokensWithdrawAmount > userShareTokensAmount))
437437 then throw("Withdraw amount more then user locked amount")
438438 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)]
439439 }
440440
441441
442442
443443 @Callable(i)
444444 func claim (pool) = {
445445 let shareTokenLocked = getTotalShareTokenLocked(pool)
446- let $t01972719792 = getLastInterestInfo(pool)
447- let lastInterestHeight = $t01972719792._1
448- let lastInterest = $t01972719792._2
449- let $t01979719886 = rewardInfo(pool)
450- let currentRewardPerBlock = $t01979719886._1
451- let rewardUpdateHeight = $t01979719886._2
452- let previousRewardPerBlock = $t01979719886._3
453- let $t01989119991 = claimCalc(pool, i.caller, 1)
454- let userNewInterest = $t01989119991._1
455- let currentInterest = $t01989119991._2
456- let claimAmount = $t01989119991._3
457- let userShareTokensAmount = $t01989119991._4
446+ let $t01972519790 = getLastInterestInfo(pool)
447+ let lastInterestHeight = $t01972519790._1
448+ let lastInterest = $t01972519790._2
449+ let $t01979519884 = rewardInfo(pool)
450+ let currentRewardPerBlock = $t01979519884._1
451+ let rewardUpdateHeight = $t01979519884._2
452+ let previousRewardPerBlock = $t01979519884._3
453+ let $t01988919989 = claimCalc(pool, i.caller, 1)
454+ let userNewInterest = $t01988919989._1
455+ let currentInterest = $t01988919989._2
456+ let claimAmount = $t01988919989._3
457+ let userShareTokensAmount = $t01988919989._4
458458 let availableFund = (userAvailableSWOP(pool, i.caller) + claimAmount)
459459 let userClaimedAmount = getUserSWOPClaimedAmount(pool, i.caller)
460460 let userClaimedAmountNew = (userClaimedAmount + claimAmount)
461461 if ((availableFund == 0))
462462 then throw("You have 0 available SWOP")
463- 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)]
463+ 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)]
464464 }
465465
466466
467467 @Verifier(tx)
468468 func verify () = match tx {
469469 case _ =>
470470 sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
471471 }
472472

github/deemru/w8io/026f985 
64.32 ms