tx · 5oNyLAumQmdaUbUhQBGY2oizyu69bhu9uXYV8raRSZk4

3N4LZUtraMUi2ABEMkny2jPuW4YtMb1Mptu:  -0.01400000 Waves

2021.01.23 22:48 [1366595] smart account 3N4LZUtraMUi2ABEMkny2jPuW4YtMb1Mptu > SELF 0.00000000 Waves

{ "type": 13, "id": "5oNyLAumQmdaUbUhQBGY2oizyu69bhu9uXYV8raRSZk4", "fee": 1400000, "feeAssetId": null, "timestamp": 1611431354725, "version": 1, "sender": "3N4LZUtraMUi2ABEMkny2jPuW4YtMb1Mptu", "senderPublicKey": "5HCGPojca71eK6HQ2LLv6xriZLjgp7V5febuNekZMZgX", "proofs": [ "3meYztUJL1PVUPLPeorXNvfQw3Cpnktr3WEpTvzVVvwUGtddbFoY7jz8qzmwXni7XHowSCC5YiqWvE7XpvkxsfZQ" ], "script": "base64:AAIEAAAAAAAAAB8IAhIAEgUKAwgIARIFCgMICAESBQoDCAgBEgASABIAAAAAJAAAAAAMYWRtaW5QdWJLZXkxAQAAACAQsOLq5CB1W9qjcQbPak46dbMqu5F1eul3gOhttbJnHwAAAAAMYWRtaW5QdWJLZXkyAQAAACAQsOLq5CB1W9qjcQbPak46dbMqu5F1eul3gOhttbJnHwAAAAAMYWRtaW5QdWJLZXkzAQAAACAQsOLq5CB1W9qjcQbPak46dbMqu5F1eul3gOhttbJnHwAAAAAUYWRtaW5QdWJLZXlTdGFydFN0b3ABAAAAIBCw4urkIHVb2qNxBs9qTjp1syq7kXV66XeA6G21smcfAAAAABJhZG1pblB1YktleVN0YWtpbmcBAAAAIBCw4urkIHVb2qNxBs9qTjp1syq7kXV66XeA6G21smcfAAAAAA9rZXlMYXN0SW50ZXJlc3QCAAAADWxhc3RfaW50ZXJlc3QAAAAAE2tleVVzZXJMYXN0SW50ZXJlc3QCAAAADl9sYXN0X2ludGVyZXN0AAAAABFrZXlVc2VyU1dPUEFtb3VudAIAAAAMX1NXT1BfYW1vdW50AAAAABRrZXlVc2VyR2V0QmFja0hla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hdmFpbGFibGVGdW5kCQAAZQAAAAIJAABkAAAAAgkBAAAAEWdldFVzZXJTV09QQW1vdW50AAAAAQgFAAAAAWkAAAAGY2FsbGVyBQAAAAtjbGFpbUFtb3VudAUAAAAOdXNlclZvdGVBbW91bnQEAAAAEnRvdGFsU1dPUExvY2tlZE5ldwkAAGUAAAACBQAAAA90b3RhbFNXT1BMb2NrZWQFAAAADWF2YWlsYWJsZUZ1bmQEAAAAEXVzZXJDbGFpbWVkQW1vdW50CQEAAAAYZ2V0VXNlclNXT1BDbGFpbWVkQW1vdW50AAAAAQgFAAAAAWkAAAAGY2FsbGVyBAAAABR1c2VyQ2xhaW1lZEFtb3VudE5ldwkAAGQAAAACBQAAABF1c2VyQ2xhaW1lZEFtb3VudAUAAAALY2xhaW1BbW91bnQJAARMAAAAAgkBAAAADEludGVnZXJFbnRyeQAAAAIJAAEsAAAAAgkABCUAAAABCAUAAAABaQAAAAZjYWxsZXIFAAAAE2tleVVzZXJMYXN0SW50ZXJlc3QFAAAAD3VzZXJOZXdJbnRlcmVzdAkABEwAAAACCQEAAAAMSW50ZWdlckVudHJ5AAAAAgUAAAAPa2V5TGFzdEludGVyZXN0BQAAAAxsYXN0SW50ZXJlc3QJAARMAAAAAgkBAAAADEludGVnZXJFbnRyeQAAAAIJAAEsAAAAAgkABCUAAAABCAUAAAABaQAAAAZjYWxsZXIFAAAAEWtleVVzZXJTV09QQW1vdW50CQAAZAAAAAIFAAAADWF2YWlsYWJsZUZ1bmQFAAAADnVzZXJWb3RlQW1vdW50CQAETAAAAAIJAQAAAAxJbnRlZ2VyRW50cnkAAAACCQABLAAAAAIJAAQlAAAAAQgFAAAAAWkAAAAGY2FsbGVyBQAAABhrZXlVc2VyU1dPUENsYWltZWRBbW91bnQFAAAAFHVzZXJDbGFpbWVkQW1vdW50TmV3BQAAAANuaWwAAAAAaMGbvw==", "chainId": 84, "height": 1366595, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: EtfksnEGX6ABmUMs5n6zhZMS5qEe1LEZki1KdWAuh1VW Next: 2PJeZLh2vgMVVQcWPe9z5U892G4pra3uSVRkcrCHQyHb Diff:
OldNewDifferences
146146 let $t049435025 = getUserInterestInfo(i.caller, lastInterest)
147147 let userLastInterest = $t049435025._1
148148 let userSWOPAmount = $t049435025._2
149- let claimAmount = fraction(userSWOPAmount, (lastInterest - userLastInterest), scaleValue)
150- let userSWOPAmountNew = ((userSWOPAmount + pmtAmount) + claimAmount)
151- let userNewInterest = lastInterest
152- let totalSWOPAmount = getTotalSWOPLocked()
153- let totalSWOPLockedNew = (totalSWOPAmount + pmtAmount)
149+ if (true)
150+ then throw(((toString(lastInterest) + "_") + toString(userLastInterest)))
151+ else {
152+ let claimAmount = fraction(userSWOPAmount, (lastInterest - userLastInterest), scaleValue)
153+ let userSWOPAmountNew = ((userSWOPAmount + pmtAmount) + claimAmount)
154+ let userNewInterest = lastInterest
155+ let totalSWOPAmount = getTotalSWOPLocked()
156+ let totalSWOPLockedNew = (totalSWOPAmount + pmtAmount)
154157 [IntegerEntry((toString(i.caller) + keyUserLastInterest), userNewInterest), IntegerEntry((toString(i.caller) + keyUserSWOPAmount), userSWOPAmountNew), IntegerEntry(keyTotalSWOPAmount, totalSWOPLockedNew)]
158+ }
155159 }
156160 }
157161
208212
209213 @Callable(i)
210214 func airDrop () = {
211- let $t083658440 = $Tuple2(i.payments[0].amount, i.payments[0].assetId)
212- let pmtAmount = $t083658440._1
213- let pmtAssetId = $t083658440._2
215+ let $t084528527 = $Tuple2(i.payments[0].amount, i.payments[0].assetId)
216+ let pmtAmount = $t084528527._1
217+ let pmtAssetId = $t084528527._2
214218 if ((pmtAssetId != SWOP))
215219 then throw("Incorrect pmtAssetId")
216220 else {
228232 func claimSWOPandWithdraw () = {
229233 let totalSWOPLocked = getTotalSWOPLocked()
230234 let lastInterest = getLastInterestInfo()
231- let $t090709125 = claimCalc(i.caller)
232- let userNewInterest = $t090709125._1
233- let claimAmount = $t090709125._2
235+ let $t091579212 = claimCalc(i.caller)
236+ let userNewInterest = $t091579212._1
237+ let claimAmount = $t091579212._2
234238 let userVoteAmount = getUserTotalVoteAmount(i.caller)
235239 let availableFund = ((getUserSWOPAmount(i.caller) + claimAmount) - userVoteAmount)
236240 let totalSWOPLockedNew = (totalSWOPLocked - availableFund)
245249 func claimSWOPandStake () = {
246250 let totalSWOPLocked = getTotalSWOPLocked()
247251 let lastInterest = getLastInterestInfo()
248- let $t01003010085 = claimCalc(i.caller)
249- let userNewInterest = $t01003010085._1
250- let claimAmount = $t01003010085._2
252+ let $t01011710172 = claimCalc(i.caller)
253+ let userNewInterest = $t01011710172._1
254+ let claimAmount = $t01011710172._2
251255 let userVoteAmount = getUserTotalVoteAmount(i.caller)
252256 let availableFund = ((getUserSWOPAmount(i.caller) + claimAmount) - userVoteAmount)
253257 let totalSWOPLockedNew = (totalSWOPLocked - availableFund)
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 4 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let adminPubKey1 = base58'289xpUrYrKbLjaKkqH3XNhfecukcYRaDRT3JDrvkvQRU'
55
66 let adminPubKey2 = base58'289xpUrYrKbLjaKkqH3XNhfecukcYRaDRT3JDrvkvQRU'
77
88 let adminPubKey3 = base58'289xpUrYrKbLjaKkqH3XNhfecukcYRaDRT3JDrvkvQRU'
99
1010 let adminPubKeyStartStop = base58'289xpUrYrKbLjaKkqH3XNhfecukcYRaDRT3JDrvkvQRU'
1111
1212 let adminPubKeyStaking = base58'289xpUrYrKbLjaKkqH3XNhfecukcYRaDRT3JDrvkvQRU'
1313
1414 let keyLastInterest = "last_interest"
1515
1616 let keyUserLastInterest = "_last_interest"
1717
1818 let keyUserSWOPAmount = "_SWOP_amount"
1919
2020 let keyUserGetBackHeight = "_getBackHeight"
2121
2222 let keyTotalSWOPAmount = "total_SWOP_amount"
2323
2424 let keyUserVoteTotalAmount = "_total_SWOP_vote_amount"
2525
2626 let keyUserVoteOptionAmount = "_SWOP_option_amount"
2727
2828 let keyUserSWOPClaimedAmount = "_SWOP_claimed_amount"
2929
3030 let keyTotalVoteOptionAmount = "total_SWOP_option_amount"
3131
3232 let keyVoteName = "vote_name"
3333
3434 let keyOptionName = "_option_name"
3535
3636 let keyVotingStartHeight = "_startHeight"
3737
3838 let keyVoteDuration = "_vote_duration"
3939
4040 let farmingSWOPAddress = Address(base58'3NAqJ1CqP1iTzXR9wENKwEXHMvT4CS4YGBb')
4141
4242 let keySWOPid = "SWOP_id"
4343
4444 let SWOP = fromBase58String(getStringValue(farmingSWOPAddress, keySWOPid))
4545
4646 let scaleValue = 100000000
4747
4848 func throwNotEnoughSWOP () = throw("Not enough SWOP: userSWOPAmount - userTotalVoteAmount < voteSWOPAmount")
4949
5050
5151 func getLastInterestInfo () = {
5252 let lastInterest = valueOrElse(getInteger(this, keyLastInterest), 0)
5353 lastInterest
5454 }
5555
5656
5757 func getUserSWOPAmount (user) = valueOrElse(getInteger(this, (toString(user) + keyUserSWOPAmount)), 0)
5858
5959
6060 func getUserSWOPClaimedAmount (user) = valueOrElse(getInteger(this, (toString(user) + keyUserSWOPClaimedAmount)), 0)
6161
6262
6363 func getUserInterestInfo (user,lastInterest) = {
6464 let userSWOPAmount = getUserSWOPAmount(user)
6565 let userLastInterest = getInteger(this, (toString(user) + keyUserLastInterest))
6666 let userLastInterestValue = match userLastInterest {
6767 case userLastInterest: Int =>
6868 userLastInterest
6969 case _ =>
7070 lastInterest
7171 }
7272 $Tuple2(userLastInterestValue, userSWOPAmount)
7373 }
7474
7575
7676 func getTotalSWOPLocked () = valueOrElse(getInteger(this, keyTotalSWOPAmount), 0)
7777
7878
7979 func getUserTotalVoteAmount (user) = valueOrElse(getInteger(this, (toString(user) + keyUserVoteTotalAmount)), 0)
8080
8181
8282 func getUserVoteOptionAmount (user) = valueOrElse(getInteger(this, (toString(user) + keyUserVoteOptionAmount)), 0)
8383
8484
8585 func getVotingStartHeight (voteName) = valueOrElse(getInteger(this, (voteName + keyVotingStartHeight)), 0)
8686
8787
8888 func getVoteOptionAmount (user,voteName,option) = valueOrErrorMessage({
8989 let userVoteOptionAmount = getInteger(this, (((voteName + option) + toString(user)) + keyUserVoteOptionAmount))
9090 let uvoa = match userVoteOptionAmount {
9191 case uvoa: Int =>
9292 uvoa
9393 case uvoa: Unit =>
9494 0
9595 case _ =>
9696 throw("Match error")
9797 }
9898 uvoa
9999 }, (((("No data on the key: " + voteName) + option) + toString(user)) + keyUserVoteOptionAmount))
100100
101101
102102 func getVoteDuration (voteName) = valueOrErrorMessage(getInteger(this, (voteName + keyVoteDuration)), (("No data on the key: " + voteName) + keyVoteDuration))
103103
104104
105105 func getTotalVoteOptionAmount (voteName,option) = {
106106 let totalVoteOptionAmount = getInteger(this, ((voteName + option) + keyTotalVoteOptionAmount))
107107 let tvoa = match totalVoteOptionAmount {
108108 case tvoa: Int =>
109109 tvoa
110110 case tvoa: Unit =>
111111 0
112112 case _ =>
113113 throw("Match error")
114114 }
115115 tvoa
116116 }
117117
118118
119119 func getUserGetBackAmount (voteName,option,user,getBackSWOPHeight) = {
120120 let key = ((((((voteName + "_") + option) + "_") + toString(user)) + "_") + toString(getBackSWOPHeight))
121121 valueOrErrorMessage(getInteger(this, key), ("No data on the key: " + key))
122122 }
123123
124124
125125 func claimCalc (caller) = {
126126 let shareTokenLocked = getTotalSWOPLocked()
127127 let lastInterest = getLastInterestInfo()
128128 let $t044534540 = getUserInterestInfo(caller, lastInterest)
129129 let userLastInterest = $t044534540._1
130130 let userShareTokensAmount = $t044534540._2
131131 let claimAmount = fraction(userShareTokensAmount, (lastInterest - userLastInterest), scaleValue)
132132 let userNewInterest = lastInterest
133133 $Tuple2(userNewInterest, claimAmount)
134134 }
135135
136136
137137 @Callable(i)
138138 func lockSWOP () = {
139139 let $t047524827 = $Tuple2(i.payments[0].amount, i.payments[0].assetId)
140140 let pmtAmount = $t047524827._1
141141 let pmtAssetId = $t047524827._2
142142 if ((pmtAssetId != SWOP))
143143 then throw("Incorrect pmtAssetId")
144144 else {
145145 let lastInterest = getLastInterestInfo()
146146 let $t049435025 = getUserInterestInfo(i.caller, lastInterest)
147147 let userLastInterest = $t049435025._1
148148 let userSWOPAmount = $t049435025._2
149- let claimAmount = fraction(userSWOPAmount, (lastInterest - userLastInterest), scaleValue)
150- let userSWOPAmountNew = ((userSWOPAmount + pmtAmount) + claimAmount)
151- let userNewInterest = lastInterest
152- let totalSWOPAmount = getTotalSWOPLocked()
153- let totalSWOPLockedNew = (totalSWOPAmount + pmtAmount)
149+ if (true)
150+ then throw(((toString(lastInterest) + "_") + toString(userLastInterest)))
151+ else {
152+ let claimAmount = fraction(userSWOPAmount, (lastInterest - userLastInterest), scaleValue)
153+ let userSWOPAmountNew = ((userSWOPAmount + pmtAmount) + claimAmount)
154+ let userNewInterest = lastInterest
155+ let totalSWOPAmount = getTotalSWOPLocked()
156+ let totalSWOPLockedNew = (totalSWOPAmount + pmtAmount)
154157 [IntegerEntry((toString(i.caller) + keyUserLastInterest), userNewInterest), IntegerEntry((toString(i.caller) + keyUserSWOPAmount), userSWOPAmountNew), IntegerEntry(keyTotalSWOPAmount, totalSWOPLockedNew)]
158+ }
155159 }
156160 }
157161
158162
159163
160164 @Callable(i)
161165 func vote (voteName,option,voteAddSWOPAmount) = {
162166 let userSWOPAmount = getUserSWOPAmount(i.caller)
163167 let userTotalVoteAmount = getUserTotalVoteAmount(i.caller)
164168 let userVoteOptionAmount = getVoteOptionAmount(i.caller, voteName, option)
165169 if ((voteAddSWOPAmount > (userSWOPAmount - userTotalVoteAmount)))
166170 then throwNotEnoughSWOP()
167171 else {
168172 let totalVoteOptionAmount = getTotalVoteOptionAmount(voteName, option)
169173 let voteDuration = getVoteDuration(voteName)
170174 let votingStartHeight = getVotingStartHeight(option)
171175 let userTotalVoteAmountNew = (userTotalVoteAmount + voteAddSWOPAmount)
172176 let userVoteOptionAmountNew = (userVoteOptionAmount + voteAddSWOPAmount)
173177 let voteOptionAmountNew = (totalVoteOptionAmount + voteAddSWOPAmount)
174178 [IntegerEntry((((voteName + "_") + option) + keyTotalVoteOptionAmount), voteOptionAmountNew), IntegerEntry((((voteName + option) + toString(i.caller)) + keyUserVoteOptionAmount), userVoteOptionAmountNew), IntegerEntry((toString(i.caller) + keyUserVoteTotalAmount), userTotalVoteAmountNew)]
175179 }
176180 }
177181
178182
179183
180184 @Callable(i)
181185 func unvote (voteName,option,unvoteSWOPAmount) = {
182186 let userSWOPAmount = getUserSWOPAmount(i.caller)
183187 let userTotalVoteAmount = getUserTotalVoteAmount(i.caller)
184188 let userVoteOptionAmount = getVoteOptionAmount(i.caller, voteName, option)
185189 if ((unvoteSWOPAmount > userVoteOptionAmount))
186190 then throwNotEnoughSWOP()
187191 else {
188192 let totalVoteOptionAmount = getTotalVoteOptionAmount(voteName, option)
189193 let voteDuration = getVoteDuration(voteName)
190194 let votingStartHeight = getVotingStartHeight(option)
191195 let userVoteOptionAmountNew = (userVoteOptionAmount - unvoteSWOPAmount)
192196 let voteOptionAmountNew = (totalVoteOptionAmount - unvoteSWOPAmount)
193197 let getBackSWOPHeight = (votingStartHeight + (2 * voteDuration))
194198 [IntegerEntry((((voteName + "_") + option) + keyTotalVoteOptionAmount), voteOptionAmountNew), IntegerEntry((((voteName + option) + toString(i.caller)) + keyUserVoteOptionAmount), userVoteOptionAmountNew), IntegerEntry(((((((voteName + "_") + option) + "_") + toString(i.caller)) + "_") + toString(getBackSWOPHeight)), unvoteSWOPAmount)]
195199 }
196200 }
197201
198202
199203
200204 @Callable(i)
201205 func getBackSWOPfromOption (voteName,option,getBackSWOPHeight) = {
202206 let userTotalVoteAmount = getUserTotalVoteAmount(i.caller)
203207 let userGetBackAmount = getUserGetBackAmount(voteName, option, i.caller, getBackSWOPHeight)
204208 [IntegerEntry(((((((voteName + "_") + option) + "_") + toString(i.caller)) + "_") + toString(getBackSWOPHeight)), 0), ScriptTransfer(i.caller, userGetBackAmount, SWOP)]
205209 }
206210
207211
208212
209213 @Callable(i)
210214 func airDrop () = {
211- let $t083658440 = $Tuple2(i.payments[0].amount, i.payments[0].assetId)
212- let pmtAmount = $t083658440._1
213- let pmtAssetId = $t083658440._2
215+ let $t084528527 = $Tuple2(i.payments[0].amount, i.payments[0].assetId)
216+ let pmtAmount = $t084528527._1
217+ let pmtAssetId = $t084528527._2
214218 if ((pmtAssetId != SWOP))
215219 then throw("Incorrect pmtAssetId")
216220 else {
217221 let totalSWOPAmount = getTotalSWOPLocked()
218222 let totalSWOPAmountNew = (totalSWOPAmount + pmtAmount)
219223 let lastInterest = getLastInterestInfo()
220224 let interestNew = (lastInterest + fraction(pmtAmount, scaleValue, totalSWOPAmount))
221225 [IntegerEntry(keyLastInterest, interestNew), IntegerEntry(keyTotalSWOPAmount, totalSWOPAmountNew)]
222226 }
223227 }
224228
225229
226230
227231 @Callable(i)
228232 func claimSWOPandWithdraw () = {
229233 let totalSWOPLocked = getTotalSWOPLocked()
230234 let lastInterest = getLastInterestInfo()
231- let $t090709125 = claimCalc(i.caller)
232- let userNewInterest = $t090709125._1
233- let claimAmount = $t090709125._2
235+ let $t091579212 = claimCalc(i.caller)
236+ let userNewInterest = $t091579212._1
237+ let claimAmount = $t091579212._2
234238 let userVoteAmount = getUserTotalVoteAmount(i.caller)
235239 let availableFund = ((getUserSWOPAmount(i.caller) + claimAmount) - userVoteAmount)
236240 let totalSWOPLockedNew = (totalSWOPLocked - availableFund)
237241 let userClaimedAmount = getUserSWOPClaimedAmount(i.caller)
238242 let userClaimedAmountNew = (userClaimedAmount + claimAmount)
239243 [IntegerEntry((toString(i.caller) + keyUserLastInterest), userNewInterest), IntegerEntry(keyLastInterest, lastInterest), IntegerEntry((toString(i.caller) + keyUserSWOPAmount), userVoteAmount), IntegerEntry(keyTotalSWOPAmount, totalSWOPLockedNew), IntegerEntry((toString(i.caller) + keyUserSWOPClaimedAmount), userClaimedAmountNew), ScriptTransfer(i.caller, availableFund, SWOP)]
240244 }
241245
242246
243247
244248 @Callable(i)
245249 func claimSWOPandStake () = {
246250 let totalSWOPLocked = getTotalSWOPLocked()
247251 let lastInterest = getLastInterestInfo()
248- let $t01003010085 = claimCalc(i.caller)
249- let userNewInterest = $t01003010085._1
250- let claimAmount = $t01003010085._2
252+ let $t01011710172 = claimCalc(i.caller)
253+ let userNewInterest = $t01011710172._1
254+ let claimAmount = $t01011710172._2
251255 let userVoteAmount = getUserTotalVoteAmount(i.caller)
252256 let availableFund = ((getUserSWOPAmount(i.caller) + claimAmount) - userVoteAmount)
253257 let totalSWOPLockedNew = (totalSWOPLocked - availableFund)
254258 let userClaimedAmount = getUserSWOPClaimedAmount(i.caller)
255259 let userClaimedAmountNew = (userClaimedAmount + claimAmount)
256260 [IntegerEntry((toString(i.caller) + keyUserLastInterest), userNewInterest), IntegerEntry(keyLastInterest, lastInterest), IntegerEntry((toString(i.caller) + keyUserSWOPAmount), (availableFund + userVoteAmount)), IntegerEntry((toString(i.caller) + keyUserSWOPClaimedAmount), userClaimedAmountNew)]
257261 }
258262
259263

github/deemru/w8io/169f3d6 
69.43 ms