tx · DFR3dhkG8rMDpqUGsjCiCUExTAefgBvcZrMQCQGvbAoG

3N4LZUtraMUi2ABEMkny2jPuW4YtMb1Mptu:  -0.01400000 Waves

2021.01.23 22:40 [1366586] smart account 3N4LZUtraMUi2ABEMkny2jPuW4YtMb1Mptu > SELF 0.00000000 Waves

{ "type": 13, "id": "DFR3dhkG8rMDpqUGsjCiCUExTAefgBvcZrMQCQGvbAoG", "fee": 1400000, "feeAssetId": null, "timestamp": 1611430854153, "version": 1, "sender": "3N4LZUtraMUi2ABEMkny2jPuW4YtMb1Mptu", "senderPublicKey": "5HCGPojca71eK6HQ2LLv6xriZLjgp7V5febuNekZMZgX", "proofs": [ "3suMjTymANBVkYiMdvA8VbcH5FKXX7YvCmoHfHzkyV3mbBZEcubrLzXmK1cn2q4Qow4cyPKrjRLdqXXbVXTUDU2u" ], "script": "base64:AAIEAAAAAAAAAB8IAhIAEgUKAwgIARIFCgMICAESBQoDCAgBEgASABIAAAAAJAAAAAAMYWRtaW5QdWJLZXkxAQAAACAQsOLq5CB1W9qjcQbPak46dbMqu5F1eul3gOhttbJnHwAAAAAMYWRtaW5QdWJLZXkyAQAAACAQsOLq5CB1W9qjcQbPak46dbMqu5F1eul3gOhttbJnHwAAAAAMYWRtaW5QdWJLZXkzAQAAACAQsOLq5CB1W9qjcQbPak46dbMqu5F1eul3gOhttbJnHwAAAAAUYWRtaW5QdWJLZXlTdGFydFN0b3ABAAAAIBCw4urkIHVb2qNxBs9qTjp1syq7kXV66XeA6G21smcfAAAAABJhZG1pblB1YktleVN0YWtpbmcBAAAAIBCw4urkIHVb2qNxBs9qTjp1syq7kXV66XeA6G21smcfAAAAAA9rZXlMYXN0SW50ZXJlc3QCAAAADWxhc3RfaW50ZXJlc3QAAAAAE2tleVVzZXJMYXN0SW50ZXJlc3QCAAAADl9sYXN0X2ludGVyZXN0AAAAABFrZXlVc2VyU1dPUEFtb3VudAIAAAAMX1NXT1BfYW1vdW50AAAAABRrZXlVc2VyR2V0QmFja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51c2VyVm90ZUFtb3VudAQAAAASdG90YWxTV09QTG9ja2VkTmV3CQAAZQAAAAIFAAAAD3RvdGFsU1dPUExvY2tlZAUAAAANYXZhaWxhYmxlRnVuZAQAAAARdXNlckNsYWltZWRBbW91bnQJAQAAABhnZXRVc2VyU1dPUENsYWltZWRBbW91bnQAAAABCAUAAAABaQAAAAZjYWxsZXIEAAAAFHVzZXJDbGFpbWVkQW1vdW50TmV3CQAAZAAAAAIFAAAAEXVzZXJDbGFpbWVkQW1vdW50BQAAAAtjbGFpbUFtb3VudAkABEwAAAACCQEAAAAMSW50ZWdlckVudHJ5AAAAAgkAASwAAAACCQAEJQAAAAEIBQAAAAFpAAAABmNhbGxlcgUAAAATa2V5VXNlckxhc3RJbnRlcmVzdAUAAAAPdXNlck5ld0ludGVyZXN0CQAETAAAAAIJAQAAAAxJbnRlZ2VyRW50cnkAAAACBQAAAA9rZXlMYXN0SW50ZXJlc3QFAAAADGxhc3RJbnRlcmVzdAkABEwAAAACCQEAAAAMSW50ZWdlckVudHJ5AAAAAgkAASwAAAACCQAEJQAAAAEIBQAAAAFpAAAABmNhbGxlcgUAAAARa2V5VXNlclNXT1BBbW91bnQJAABkAAAAAgUAAAANYXZhaWxhYmxlRnVuZAUAAAAOdXNlclZvdGVBbW91bnQJAARMAAAAAgkBAAAADEludGVnZXJFbnRyeQAAAAIJAAEsAAAAAgkABCUAAAABCAUAAAABaQAAAAZjYWxsZXIFAAAAGGtleVVzZXJTV09QQ2xhaW1lZEFtb3VudAUAAAAUdXNlckNsYWltZWRBbW91bnROZXcFAAAAA25pbAAAAAChpEFv", "chainId": 84, "height": 1366586, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 5xkR2fVAiCspb6GZyQdvSzv1aHBVA9o4kgFpCDRUnf3d Next: 7N6Lriu3St6Nx8Kvi6sosuAfpPgYi6q42t5rAbZFrbuF Diff:
OldNewDifferences
253253 let totalSWOPLockedNew = (totalSWOPLocked - availableFund)
254254 let userClaimedAmount = getUserSWOPClaimedAmount(i.caller)
255255 let userClaimedAmountNew = (userClaimedAmount + claimAmount)
256-[IntegerEntry((toString(i.caller) + keyUserLastInterest), userNewInterest), IntegerEntry(keyLastInterest, lastInterest), IntegerEntry((toString(i.caller) + keyUserSWOPAmount), (availableFund + userVoteAmount)), IntegerEntry(keyTotalSWOPAmount, totalSWOPLockedNew), IntegerEntry((toString(i.caller) + keyUserSWOPClaimedAmount), userClaimedAmountNew)]
256+[IntegerEntry((toString(i.caller) + keyUserLastInterest), userNewInterest), IntegerEntry(keyLastInterest, lastInterest), IntegerEntry((toString(i.caller) + keyUserSWOPAmount), (availableFund + userVoteAmount)), IntegerEntry((toString(i.caller) + keyUserSWOPClaimedAmount), userClaimedAmountNew)]
257257 }
258258
259259
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
149149 let claimAmount = fraction(userSWOPAmount, (lastInterest - userLastInterest), scaleValue)
150150 let userSWOPAmountNew = ((userSWOPAmount + pmtAmount) + claimAmount)
151151 let userNewInterest = lastInterest
152152 let totalSWOPAmount = getTotalSWOPLocked()
153153 let totalSWOPLockedNew = (totalSWOPAmount + pmtAmount)
154154 [IntegerEntry((toString(i.caller) + keyUserLastInterest), userNewInterest), IntegerEntry((toString(i.caller) + keyUserSWOPAmount), userSWOPAmountNew), IntegerEntry(keyTotalSWOPAmount, totalSWOPLockedNew)]
155155 }
156156 }
157157
158158
159159
160160 @Callable(i)
161161 func vote (voteName,option,voteAddSWOPAmount) = {
162162 let userSWOPAmount = getUserSWOPAmount(i.caller)
163163 let userTotalVoteAmount = getUserTotalVoteAmount(i.caller)
164164 let userVoteOptionAmount = getVoteOptionAmount(i.caller, voteName, option)
165165 if ((voteAddSWOPAmount > (userSWOPAmount - userTotalVoteAmount)))
166166 then throwNotEnoughSWOP()
167167 else {
168168 let totalVoteOptionAmount = getTotalVoteOptionAmount(voteName, option)
169169 let voteDuration = getVoteDuration(voteName)
170170 let votingStartHeight = getVotingStartHeight(option)
171171 let userTotalVoteAmountNew = (userTotalVoteAmount + voteAddSWOPAmount)
172172 let userVoteOptionAmountNew = (userVoteOptionAmount + voteAddSWOPAmount)
173173 let voteOptionAmountNew = (totalVoteOptionAmount + voteAddSWOPAmount)
174174 [IntegerEntry((((voteName + "_") + option) + keyTotalVoteOptionAmount), voteOptionAmountNew), IntegerEntry((((voteName + option) + toString(i.caller)) + keyUserVoteOptionAmount), userVoteOptionAmountNew), IntegerEntry((toString(i.caller) + keyUserVoteTotalAmount), userTotalVoteAmountNew)]
175175 }
176176 }
177177
178178
179179
180180 @Callable(i)
181181 func unvote (voteName,option,unvoteSWOPAmount) = {
182182 let userSWOPAmount = getUserSWOPAmount(i.caller)
183183 let userTotalVoteAmount = getUserTotalVoteAmount(i.caller)
184184 let userVoteOptionAmount = getVoteOptionAmount(i.caller, voteName, option)
185185 if ((unvoteSWOPAmount > userVoteOptionAmount))
186186 then throwNotEnoughSWOP()
187187 else {
188188 let totalVoteOptionAmount = getTotalVoteOptionAmount(voteName, option)
189189 let voteDuration = getVoteDuration(voteName)
190190 let votingStartHeight = getVotingStartHeight(option)
191191 let userVoteOptionAmountNew = (userVoteOptionAmount - unvoteSWOPAmount)
192192 let voteOptionAmountNew = (totalVoteOptionAmount - unvoteSWOPAmount)
193193 let getBackSWOPHeight = (votingStartHeight + (2 * voteDuration))
194194 [IntegerEntry((((voteName + "_") + option) + keyTotalVoteOptionAmount), voteOptionAmountNew), IntegerEntry((((voteName + option) + toString(i.caller)) + keyUserVoteOptionAmount), userVoteOptionAmountNew), IntegerEntry(((((((voteName + "_") + option) + "_") + toString(i.caller)) + "_") + toString(getBackSWOPHeight)), unvoteSWOPAmount)]
195195 }
196196 }
197197
198198
199199
200200 @Callable(i)
201201 func getBackSWOPfromOption (voteName,option,getBackSWOPHeight) = {
202202 let userTotalVoteAmount = getUserTotalVoteAmount(i.caller)
203203 let userGetBackAmount = getUserGetBackAmount(voteName, option, i.caller, getBackSWOPHeight)
204204 [IntegerEntry(((((((voteName + "_") + option) + "_") + toString(i.caller)) + "_") + toString(getBackSWOPHeight)), 0), ScriptTransfer(i.caller, userGetBackAmount, SWOP)]
205205 }
206206
207207
208208
209209 @Callable(i)
210210 func airDrop () = {
211211 let $t083658440 = $Tuple2(i.payments[0].amount, i.payments[0].assetId)
212212 let pmtAmount = $t083658440._1
213213 let pmtAssetId = $t083658440._2
214214 if ((pmtAssetId != SWOP))
215215 then throw("Incorrect pmtAssetId")
216216 else {
217217 let totalSWOPAmount = getTotalSWOPLocked()
218218 let totalSWOPAmountNew = (totalSWOPAmount + pmtAmount)
219219 let lastInterest = getLastInterestInfo()
220220 let interestNew = (lastInterest + fraction(pmtAmount, scaleValue, totalSWOPAmount))
221221 [IntegerEntry(keyLastInterest, interestNew), IntegerEntry(keyTotalSWOPAmount, totalSWOPAmountNew)]
222222 }
223223 }
224224
225225
226226
227227 @Callable(i)
228228 func claimSWOP () = {
229229 let totalSWOPLocked = getTotalSWOPLocked()
230230 let lastInterest = getLastInterestInfo()
231231 let $t090599114 = claimCalc(i.caller)
232232 let userNewInterest = $t090599114._1
233233 let claimAmount = $t090599114._2
234234 let userVoteAmount = getUserTotalVoteAmount(i.caller)
235235 let availableFund = ((getUserSWOPAmount(i.caller) + claimAmount) - userVoteAmount)
236236 let totalSWOPLockedNew = (totalSWOPLocked - availableFund)
237237 let userClaimedAmount = getUserSWOPClaimedAmount(i.caller)
238238 let userClaimedAmountNew = (userClaimedAmount + claimAmount)
239239 [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)]
240240 }
241241
242242
243243
244244 @Callable(i)
245245 func claimSWOPandStake () = {
246246 let totalSWOPLocked = getTotalSWOPLocked()
247247 let lastInterest = getLastInterestInfo()
248248 let $t01001910074 = claimCalc(i.caller)
249249 let userNewInterest = $t01001910074._1
250250 let claimAmount = $t01001910074._2
251251 let userVoteAmount = getUserTotalVoteAmount(i.caller)
252252 let availableFund = ((getUserSWOPAmount(i.caller) + claimAmount) - userVoteAmount)
253253 let totalSWOPLockedNew = (totalSWOPLocked - availableFund)
254254 let userClaimedAmount = getUserSWOPClaimedAmount(i.caller)
255255 let userClaimedAmountNew = (userClaimedAmount + claimAmount)
256-[IntegerEntry((toString(i.caller) + keyUserLastInterest), userNewInterest), IntegerEntry(keyLastInterest, lastInterest), IntegerEntry((toString(i.caller) + keyUserSWOPAmount), (availableFund + userVoteAmount)), IntegerEntry(keyTotalSWOPAmount, totalSWOPLockedNew), IntegerEntry((toString(i.caller) + keyUserSWOPClaimedAmount), userClaimedAmountNew)]
256+[IntegerEntry((toString(i.caller) + keyUserLastInterest), userNewInterest), IntegerEntry(keyLastInterest, lastInterest), IntegerEntry((toString(i.caller) + keyUserSWOPAmount), (availableFund + userVoteAmount)), IntegerEntry((toString(i.caller) + keyUserSWOPClaimedAmount), userClaimedAmountNew)]
257257 }
258258
259259

github/deemru/w8io/169f3d6 
38.48 ms