tx · EjqUTei8XRGPqNvE9NdyW8cJHyeABCJ3rZd89j11hKes

3MsjAKkxKjxVU4gC1BpJ1jKmAZyRufUCErC:  -0.01400000 Waves

2021.04.09 12:40 [1474743] smart account 3MsjAKkxKjxVU4gC1BpJ1jKmAZyRufUCErC > SELF 0.00000000 Waves

{ "type": 13, "id": "EjqUTei8XRGPqNvE9NdyW8cJHyeABCJ3rZd89j11hKes", "fee": 1400000, "feeAssetId": null, "timestamp": 1617961232044, "version": 2, "chainId": 84, "sender": "3MsjAKkxKjxVU4gC1BpJ1jKmAZyRufUCErC", "senderPublicKey": "FQ5JNhUjFS3Ty3nSykXrGWHDt4NvXJDCv4JQiJ3dXmKa", "proofs": [ "27iRVVSYn7PrqcfRcm4TWYZduQsn54xcGsQ9jzgjaMog5zH3Y8KeJSSZqqGMnpiCbTg6MGoDEdMtqYCQsdbYwVXd" ], "script": "base64:AAIEAAAAAAAAABwIAhIDCgEIEgMKAQgSAwoBCBIECgIIARIDCgEIAAAAIQAAAAAMYWRtaW5QdWJLZXkxAQAAACC6Cdc7iVmk0V2g//G7M9Cq4TlpD8vivZHWO+5PXqjgEwAAAAAMYWRtaW5QdWJLZXkyAQAAACDCkUSZs9KwtA0ipZFYvYi8oTe7CMv/3YzmlO9bFg5+QAAAAAAMYWRtaW5QdWJLZXkzAQAAACCOHhcueLEHO/RITnozKGB2KHf8meWSMKMgws+oq+kOVQAAAAAUa2V5U2hhcmVUb2tlbnNMb2NrZWQCAAAAGl90b3RhbF9zaGFyZV90b2tlbnNfbG9ja2VkAAAAABxrZXlSZXdhcmRQb29sRnJhY3Rpb25DdXJyZW50AgAAAB1fY3VycmVudF9wb29sX2ZyYWN0aW9uX3Jld2FyZAAAAAAda2V5UmV3YXJkUG9vbEZyYWN0aW9uUHJldmlvdXMCAAAAHl9wcmV2aW91c19wb29sX2ZyYWN0aW9uX3Jld2FyZAAAAAAda2V5VG90YWxSZXdhcmRQZXJCbG9ja0N1cnJlbnQCAAAAHnRvdGFs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AAAgkAASwAAAACBQAAAARwb29sAgAAAAFfCQAEJQAAAAEIBQAAAAFpAAAABmNhbGxlcgUAAAAQa2V5QXZhaWxhYmxlU1dPUAAAAAAAAAAAAAkABEwAAAACCQEAAAAMSW50ZWdlckVudHJ5AAAAAgkAASwAAAACCQABLAAAAAIJAAEsAAAAAgUAAAAEcG9vbAIAAAABXwkABCUAAAABCAUAAAABaQAAAAZjYWxsZXIFAAAAGGtleVVzZXJTV09QQ2xhaW1lZEFtb3VudAUAAAAUdXNlckNsYWltZWRBbW91bnROZXcJAARMAAAAAgkBAAAADEludGVnZXJFbnRyeQAAAAIJAAEsAAAAAgkAASwAAAACCQABLAAAAAIFAAAABHBvb2wCAAAAAV8JAAQlAAAAAQgFAAAAAWkAAAAGY2FsbGVyBQAAABxrZXlVc2VyU1dPUExhc3RDbGFpbWVkQW1vdW50BQAAAAtjbGFpbUFtb3VudAkABEwAAAACCQEAAAAOU2NyaXB0VHJhbnNmZXIAAAADCAUAAAABaQAAAAZjYWxsZXIFAAAADWF2YWlsYWJsZUZ1bmQFAAAABFNXT1AFAAAAA25pbAAAAAEAAAACdHgBAAAABnZlcmlmeQAAAAAEAAAAByRtYXRjaDAFAAAAAnR4CQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAgFAAAAAnR4AAAAD3NlbmRlclB1YmxpY0tleb9nBJQ=", "height": 1474743, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: D64mUsQG7v4CNkdtcbqJm5f8rVZT719iW5XcVAf2NmFp Next: 5z4ZiCbxVUiZtLbvXna1v2rEs4JeACHKqgPfSJwZfgjc Diff:
OldNewDifferences
3737
3838 let keyFarmingStartHeight = "farming_start_height"
3939
40-let governanceAddress = Address(base58'3MzJZEn6jzxCPaHEfkrXd7FhbjTyVjdRPLS')
40+let governanceAddress = Address(base58'3PLHVWCqA9DJPDbadUofTohnCULLauiDWhS')
4141
4242 let oneWeekInBlock = 10106
4343
250250 let userClaimedAmountNew = (userClaimedAmount + claimAmount)
251251 if ((availableFund == 0))
252252 then throw("You have 0 available SWOP")
253- 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)]
253+ 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)]
254254 }
255255
256256
257257 @Verifier(tx)
258-func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
258+func verify () = match tx {
259+ case _ =>
260+ sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
261+}
259262
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
40-let governanceAddress = Address(base58'3MzJZEn6jzxCPaHEfkrXd7FhbjTyVjdRPLS')
40+let governanceAddress = Address(base58'3PLHVWCqA9DJPDbadUofTohnCULLauiDWhS')
4141
4242 let oneWeekInBlock = 10106
4343
4444 let totalVoteShare = 10000000000
4545
4646 let SWOP = fromBase58String(getStringValue(this, keySWOPid))
4747
4848 func getTotalShareTokenLocked (pool) = valueOrErrorMessage(getInteger(this, (pool + keyShareTokensLocked)), (("No data on the key: " + pool) + keyShareTokensLocked))
4949
5050
5151 func getShareAssetId (pool) = fromBase58String(getStringValue(value(addressFromString(pool)), "share_asset_id"))
5252
5353
5454 func calcScaleValue (assetId1,assetId2) = {
5555 let assetId1Decimals = value(assetInfo(assetId1)).decimals
5656 let assetId2Decimals = value(assetInfo(assetId2)).decimals
5757 let scaleDigits = ((assetId2Decimals - assetId1Decimals) + 8)
5858 pow(10, 0, scaleDigits, 0, 0, HALFDOWN)
5959 }
6060
6161
6262 func userAvailableSWOP (pool,user) = valueOrElse(getInteger(this, (((pool + "_") + toString(user)) + keyAvailableSWOP)), 0)
6363
6464
6565 func rewardInfo (pool) = {
6666 let totalRewardPerBlockCurrent = valueOrErrorMessage(getInteger(governanceAddress, keyTotalRewardPerBlockCurrent), ((("No data on the key: " + keyTotalRewardPerBlockCurrent) + " at address ") + toString(governanceAddress)))
6767 let totalRewardPerBlockPrevious = valueOrErrorMessage(getInteger(governanceAddress, keyTotalRewardPerBlockPrevious), ((("No data on the key: " + keyTotalRewardPerBlockPrevious) + " at address ") + toString(governanceAddress)))
6868 let rewardPoolFractionCurrent = valueOrErrorMessage(getInteger(governanceAddress, (pool + keyRewardPoolFractionCurrent)), (((("No data on the key: " + pool) + keyRewardPoolFractionCurrent) + " at address ") + toString(governanceAddress)))
6969 let rewardUpdateHeight = valueOrErrorMessage(getInteger(governanceAddress, keyRewardUpdateHeight), ((("No data on the key: " + keyRewardUpdateHeight) + " at address ") + toString(governanceAddress)))
7070 let rewardPoolFractionPrevious = valueOrErrorMessage(getInteger(governanceAddress, (pool + keyRewardPoolFractionPrevious)), (((("No data on the key: " + pool) + keyRewardPoolFractionPrevious) + " at address ") + toString(governanceAddress)))
7171 let rewardPoolCurrent = fraction(totalRewardPerBlockCurrent, rewardPoolFractionCurrent, totalVoteShare)
7272 let rewardPoolPrevious = fraction(totalRewardPerBlockPrevious, rewardPoolFractionPrevious, totalVoteShare)
7373 if (if ((rewardPoolCurrent > totalRewardPerBlockCurrent))
7474 then true
7575 else (rewardPoolPrevious > totalRewardPerBlockPrevious))
7676 then throw("rewardPoolCurrent > totalRewardPerBlockCurrent or rewardPoolPrevious > totalRewardPerBlockPrevious")
7777 else $Tuple3(rewardPoolCurrent, rewardUpdateHeight, rewardPoolPrevious)
7878 }
7979
8080
8181 func getLastInterestInfo (pool) = {
8282 let lastInterest = valueOrErrorMessage(getInteger(this, (pool + keyLastInterest)), (("No data on the key: " + pool) + keyLastInterest))
8383 let lastInterestHeight = valueOrElse(getInteger(this, (pool + keyLastInterestHeight)), height)
8484 $Tuple2(lastInterestHeight, lastInterest)
8585 }
8686
8787
8888 func getUserInterestInfo (pool,userAddress) = {
8989 let userLastInterest = getInteger(this, (((pool + "_") + toString(userAddress)) + keyUserLastInterest))
9090 let userShare = getInteger(this, (((pool + "_") + toString(userAddress)) + keyUserShareTokensLocked))
9191 let lastInterest = valueOrErrorMessage(getInteger(this, (pool + keyLastInterest)), (("No data on the key: " + pool) + keyLastInterest))
9292 let userLastInterestValue = match userLastInterest {
9393 case userLastInterest: Int =>
9494 userLastInterest
9595 case _ =>
9696 lastInterest
9797 }
9898 let userShareTokensAmount = match userShare {
9999 case userShare: Int =>
100100 userShare
101101 case _ =>
102102 0
103103 }
104104 $Tuple2(userLastInterestValue, userShareTokensAmount)
105105 }
106106
107107
108108 func calcInterest (lastInterestHeight,rewardUpdateHeight,lastInterest,currentRewardPerBlock,shareTokenLocked,previousRewardPerBlock,shareAssetId,scaleValue,pmtAmount) = if ((shareTokenLocked == 0))
109109 then 0
110110 else if ((rewardUpdateHeight > height))
111111 then {
112112 let reward = (previousRewardPerBlock * (height - lastInterestHeight))
113113 (lastInterest + fraction(reward, scaleValue, shareTokenLocked))
114114 }
115115 else if ((lastInterestHeight > rewardUpdateHeight))
116116 then {
117117 let reward = (currentRewardPerBlock * (height - lastInterestHeight))
118118 (lastInterest + fraction(reward, scaleValue, shareTokenLocked))
119119 }
120120 else {
121121 let rewardAfterLastInterestBeforeReawardUpdate = (previousRewardPerBlock * (rewardUpdateHeight - lastInterestHeight))
122122 let interestAfterUpdate = (lastInterest + fraction(rewardAfterLastInterestBeforeReawardUpdate, scaleValue, shareTokenLocked))
123123 let reward = (currentRewardPerBlock * (height - rewardUpdateHeight))
124124 (interestAfterUpdate + fraction(reward, scaleValue, shareTokenLocked))
125125 }
126126
127127
128128 func claimCalc (pool,caller,pmtAmount) = {
129129 let shareAssetId = getShareAssetId(pool)
130130 let scaleValue = calcScaleValue(SWOP, shareAssetId)
131131 let shareTokenLocked = getTotalShareTokenLocked(pool)
132132 let $t069316996 = getLastInterestInfo(pool)
133133 let lastInterestHeight = $t069316996._1
134134 let lastInterest = $t069316996._2
135135 let $t070017089 = rewardInfo(pool)
136136 let currentRewardPerBlock = $t070017089._1
137137 let rewardUpdateHeight = $t070017089._2
138138 let previousRewardPerBlock = $t070017089._3
139139 let $t070947173 = getUserInterestInfo(pool, caller)
140140 let userLastInterest = $t070947173._1
141141 let userShareTokensAmount = $t070947173._2
142142 let currentInterest = calcInterest(lastInterestHeight, rewardUpdateHeight, lastInterest, currentRewardPerBlock, shareTokenLocked, previousRewardPerBlock, shareAssetId, scaleValue, pmtAmount)
143143 let claimAmount = fraction(userShareTokensAmount, (currentInterest - userLastInterest), scaleValue)
144144 let userNewInterest = currentInterest
145145 $Tuple4(userNewInterest, currentInterest, claimAmount, userShareTokensAmount)
146146 }
147147
148148
149149 func checkPmtAssetIdCorrect (pool,pmtAssetId) = {
150150 let poolShareAssetId = fromBase58String(getStringValue(value(addressFromString(pool)), "share_asset_id"))
151151 if ((pmtAssetId == poolShareAssetId))
152152 then true
153153 else false
154154 }
155155
156156
157157 func getUserSWOPClaimedAmount (pool,user) = valueOrElse(getInteger(this, (((pool + "_") + toString(user)) + keyUserSWOPClaimedAmount)), 0)
158158
159159
160160 @Callable(i)
161161 func init (earlyLP) = if (isDefined(getString(this, "keySWOPid")))
162162 then throw("SWOP already initialized")
163163 else {
164164 let initAmount = 100000000000000
165165 let SWOPissue = Issue("SWOP", "SWOP protocol token", initAmount, 8, true)
166166 let SWOPid = calculateAssetId(SWOPissue)
167167 [Issue("SWOP", "SWOP protocol token", initAmount, 8, true), StringEntry(keySWOPid, toBase58String(SWOPid))]
168168 }
169169
170170
171171
172172 @Callable(i)
173173 func initPoolShareFarming (pool) = if ((i.caller != this))
174174 then throw("Only the DApp itself can call this function")
175175 else {
176176 let $t087038783 = rewardInfo(pool)
177177 let currentReward = $t087038783._1
178178 let rewardUpdateHeight = $t087038783._2
179179 let previousRewardPerBlock = $t087038783._3
180180 [IntegerEntry((pool + keyShareTokensLocked), 0), IntegerEntry((pool + keyLastInterest), 0)]
181181 }
182182
183183
184184
185185 @Callable(i)
186186 func lockShareTokens (pool) = {
187187 let $t089569031 = $Tuple2(i.payments[0].amount, i.payments[0].assetId)
188188 let pmtAmount = $t089569031._1
189189 let pmtAssetId = $t089569031._2
190190 if (!(checkPmtAssetIdCorrect(pool, pmtAssetId)))
191191 then throw("Incorrect pmtAssetId")
192192 else {
193193 let $t091329240 = claimCalc(pool, i.caller, pmtAmount)
194194 let userNewInterest = $t091329240._1
195195 let currentInterest = $t091329240._2
196196 let claimAmount = $t091329240._3
197197 let userShareTokensAmount = $t091329240._4
198198 let userShareAmountNew = (userShareTokensAmount + pmtAmount)
199199 let availableFundsNew = (userAvailableSWOP(pool, i.caller) + claimAmount)
200200 let totalShareAmount = getTotalShareTokenLocked(pool)
201201 let totalShareAmountNew = (totalShareAmount + pmtAmount)
202202 let userClaimedAmount = getUserSWOPClaimedAmount(pool, i.caller)
203203 let userClaimedAmountNew = (userClaimedAmount + claimAmount)
204204 [IntegerEntry((((pool + "_") + toString(i.caller)) + keyUserLastInterest), userNewInterest), IntegerEntry((((pool + "_") + toString(i.caller)) + keyUserShareTokensLocked), userShareAmountNew), IntegerEntry((pool + keyLastInterest), currentInterest), IntegerEntry((pool + keyLastInterestHeight), height), IntegerEntry((pool + keyShareTokensLocked), totalShareAmountNew), IntegerEntry((((pool + "_") + toString(i.caller)) + keyUserSWOPClaimedAmount), userClaimedAmountNew), IntegerEntry((((pool + "_") + toString(i.caller)) + keyUserSWOPLastClaimedAmount), claimAmount), IntegerEntry((((pool + "_") + toString(i.caller)) + keyAvailableSWOP), availableFundsNew)]
205205 }
206206 }
207207
208208
209209
210210 @Callable(i)
211211 func withdrawShareTokens (pool,shareTokensWithdrawAmount) = {
212212 let shareTokensId = fromBase58String(getStringValue(value(addressFromString(pool)), "share_asset_id"))
213213 let $t01059710697 = claimCalc(pool, i.caller, 1)
214214 let userNewInterest = $t01059710697._1
215215 let currentInterest = $t01059710697._2
216216 let claimAmount = $t01059710697._3
217217 let userShareTokensAmount = $t01059710697._4
218218 if ((shareTokensWithdrawAmount > userShareTokensAmount))
219219 then throw("Withdraw amount more then user locked amount")
220220 else {
221221 let userShareAmountNew = (userShareTokensAmount - shareTokensWithdrawAmount)
222222 let availableFundsNew = (userAvailableSWOP(pool, i.caller) + claimAmount)
223223 let totalShareAmount = getTotalShareTokenLocked(pool)
224224 let totalShareAmountNew = (totalShareAmount - shareTokensWithdrawAmount)
225225 let userClaimedAmount = getUserSWOPClaimedAmount(pool, i.caller)
226226 let userClaimedAmountNew = (userClaimedAmount + claimAmount)
227227 [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)]
228228 }
229229 }
230230
231231
232232
233233 @Callable(i)
234234 func claim (pool) = {
235235 let shareTokenLocked = getTotalShareTokenLocked(pool)
236236 let $t01218912254 = getLastInterestInfo(pool)
237237 let lastInterestHeight = $t01218912254._1
238238 let lastInterest = $t01218912254._2
239239 let $t01225912348 = rewardInfo(pool)
240240 let currentRewardPerBlock = $t01225912348._1
241241 let rewardUpdateHeight = $t01225912348._2
242242 let previousRewardPerBlock = $t01225912348._3
243243 let $t01235312453 = claimCalc(pool, i.caller, 1)
244244 let userNewInterest = $t01235312453._1
245245 let currentInterest = $t01235312453._2
246246 let claimAmount = $t01235312453._3
247247 let userShareTokensAmount = $t01235312453._4
248248 let availableFund = (userAvailableSWOP(pool, i.caller) + claimAmount)
249249 let userClaimedAmount = getUserSWOPClaimedAmount(pool, i.caller)
250250 let userClaimedAmountNew = (userClaimedAmount + claimAmount)
251251 if ((availableFund == 0))
252252 then throw("You have 0 available SWOP")
253- 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)]
253+ 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)]
254254 }
255255
256256
257257 @Verifier(tx)
258-func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
258+func verify () = match tx {
259+ case _ =>
260+ sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
261+}
259262

github/deemru/w8io/026f985 
42.56 ms