tx · CPmGDLaVoEP3fEJQJob7AfxwXd8hjJNjp1uTihv3SMrb

3N5F5DCmWNzT8ZPe1tBfiXaVYzWJriaJZ9E:  -0.01400000 Waves

2021.01.23 21:36 [1366524] smart account 3N5F5DCmWNzT8ZPe1tBfiXaVYzWJriaJZ9E > SELF 0.00000000 Waves

{ "type": 13, "id": "CPmGDLaVoEP3fEJQJob7AfxwXd8hjJNjp1uTihv3SMrb", "fee": 1400000, "feeAssetId": null, "timestamp": 1611427076412, "version": 1, "sender": "3N5F5DCmWNzT8ZPe1tBfiXaVYzWJriaJZ9E", "senderPublicKey": "ApZ1ntZBf9PT4kWa9ZRVbLxk43jqkqWHP5NWpjujGBw2", "proofs": [ "26a1RUeaNFj85gnE8pQyHodCJHssR9RvprHqGm7pHdmML7Fe1bHXLnnstHoXDLfcxdWYW55xhqrSgKJ2Pid9oY8n" ], "script": "base64:AAIEAAAAAAAAAB8IAhIAEgUKAwgIARIFCgMICAESBQoDCAgBEgASABIAAAAAIgAAAAAMYWRtaW5QdWJLZXkxAQAAACAQsOLq5CB1W9qjcQbPak46dbMqu5F1eul3gOhttbJnHwAAAAAMYWRtaW5QdWJLZXkyAQAAACAQsOLq5CB1W9qjcQbPak46dbMqu5F1eul3gOhttbJnHwAAAAAMYWRtaW5QdWJLZXkzAQAAACAQsOLq5CB1W9qjcQbPak46dbMqu5F1eul3gOhttbJnHwAAAAAUYWRtaW5QdWJLZXlTdGFydFN0b3ABAAAAIBCw4urkIHVb2qNxBs9qTjp1syq7kXV66XeA6G21smcfAAAAABJhZG1pblB1YktleVN0YWtpbmcBAAAAIBCw4urkIHVb2qNxBs9qTjp1syq7kXV66XeA6G21smcfAAAAAA9rZXlMYXN0SW50ZXJlc3QCAAAADWxhc3RfaW50ZXJlc3QAAAAAE2tleVVzZXJMYXN0SW50ZXJlc3QCAAAADl9sYXN0X2ludGVyZXN0AAAAABFrZXlVc2VyU1dPUEFtb3VudAIAAAAMX1NXT1BfYW1vdW50AAAAABRrZXl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ZXIEAAAADWF2YWlsYWJsZUZ1bmQJAABlAAAAAgkAAGQAAAACCQEAAAARZ2V0VXNlclNXT1BBbW91bnQAAAABCAUAAAABaQAAAAZjYWxsZXIFAAAAC2NsYWltQW1vdW50BQAAAA51c2VyVm90ZUFtb3VudAkABEwAAAACCQEAAAAMSW50ZWdlckVudHJ5AAAAAgkAASwAAAACCQAEJQAAAAEIBQAAAAFpAAAABmNhbGxlcgUAAAATa2V5VXNlckxhc3RJbnRlcmVzdAUAAAAPdXNlck5ld0ludGVyZXN0CQAETAAAAAIJAQAAAAxJbnRlZ2VyRW50cnkAAAACBQAAAA9rZXlMYXN0SW50ZXJlc3QFAAAADGxhc3RJbnRlcmVzdAkABEwAAAACCQEAAAAMSW50ZWdlckVudHJ5AAAAAgkAASwAAAACCQABLAAAAAIJAAQlAAAAAQgFAAAAAWkAAAAGY2FsbGVyAgAAAAFfBQAAABFrZXlVc2VyU1dPUEFtb3VudAUAAAAOdXNlclZvdGVBbW91bnQJAARMAAAAAgkBAAAADlNjcmlwdFRyYW5zZmVyAAAAAwgFAAAAAWkAAAAGY2FsbGVyBQAAAA1hdmFpbGFibGVGdW5kBQAAAARTV09QBQAAAANuaWwAAAAAnAXFdg==", "chainId": 84, "height": 1366524, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: DNjQfvJA2TpC3pDP1uJVWeUQK8wJbNm5Zei1ck1EWhxW Next: GYp3W2YY7GuY8wA2qvqETHGjvjUqHUHaoR3NrDeEGRDk 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 keyTotalVoteOptionAmount = "total_SWOP_option_amount"
2929
3030 let keyVoteName = "vote_name"
3131
3232 let keyOptionName = "_option_name"
3333
3434 let keyVotingStartHeight = "_startHeight"
3535
3636 let keyVoteDuration = "_vote_duration"
3737
3838 let farmingSWOPAddress = Address(base58'3NAqJ1CqP1iTzXR9wENKwEXHMvT4CS4YGBb')
3939
4040 let keySWOPid = "SWOP_id"
4141
4242 let SWOP = fromBase58String(getStringValue(farmingSWOPAddress, keySWOPid))
4343
4444 let scaleValue = 100000000
4545
4646 func throwNotEnoughSWOP () = throw("Not enough SWOP: userSWOPAmount - userTotalVoteAmount < voteSWOPAmount")
4747
4848
4949 func getLastInterestInfo () = {
5050 let lastInterest = valueOrElse(getInteger(this, keyLastInterest), 0)
5151 lastInterest
5252 }
5353
5454
5555 func getUserSWOPAmount (user) = valueOrElse(getInteger(this, (toString(user) + keyUserSWOPAmount)), 0)
5656
5757
5858 func getUserInterestInfo (user,lastInterest) = {
5959 let userSWOPAmount = getUserSWOPAmount(user)
6060 let userLastInterest = getInteger(this, (toString(user) + keyUserLastInterest))
6161 let userLastInterestValue = match userLastInterest {
6262 case userLastInterest: Int =>
6363 userLastInterest
6464 case _ =>
6565 lastInterest
6666 }
6767 $Tuple2(userLastInterestValue, userSWOPAmount)
6868 }
6969
7070
7171 func getTotalSWOPLocked () = valueOrElse(getInteger(this, keyTotalSWOPAmount), 0)
7272
7373
7474 func getUserTotalVoteAmount (user) = valueOrElse(getInteger(this, (toString(user) + keyUserVoteTotalAmount)), 0)
7575
7676
7777 func getUserVoteOptionAmount (user) = valueOrElse(getInteger(this, (toString(user) + keyUserVoteOptionAmount)), 0)
7878
7979
8080 func getVotingStartHeight (voteName) = valueOrElse(getInteger(this, (voteName + keyVotingStartHeight)), 0)
8181
8282
8383 func getVoteOptionAmount (user,voteName,option) = valueOrErrorMessage({
8484 let userVoteOptionAmount = getInteger(this, (((voteName + option) + toString(user)) + keyUserVoteOptionAmount))
8585 let uvoa = match userVoteOptionAmount {
8686 case uvoa: Int =>
8787 uvoa
8888 case uvoa: Unit =>
8989 0
9090 case _ =>
9191 throw("Match error")
9292 }
9393 uvoa
9494 }, (((("No data on the key: " + voteName) + option) + toString(user)) + keyUserVoteOptionAmount))
9595
9696
9797 func getVoteDuration (voteName) = valueOrErrorMessage(getInteger(this, (voteName + keyVoteDuration)), (("No data on the key: " + voteName) + keyVoteDuration))
9898
9999
100100 func getTotalVoteOptionAmount (voteName,option) = {
101101 let totalVoteOptionAmount = getInteger(this, ((voteName + option) + keyTotalVoteOptionAmount))
102102 let tvoa = match totalVoteOptionAmount {
103103 case tvoa: Int =>
104104 tvoa
105105 case tvoa: Unit =>
106106 0
107107 case _ =>
108108 throw("Match error")
109109 }
110110 tvoa
111111 }
112112
113113
114114 func getUserGetBackAmount (voteName,option,user,getBackSWOPHeight) = {
115115 let key = ((((((voteName + "_") + option) + "_") + toString(user)) + "_") + toString(getBackSWOPHeight))
116116 valueOrErrorMessage(getInteger(this, key), ("No data on the key: " + key))
117117 }
118118
119119
120120 func claimCalc (caller) = {
121121 let shareTokenLocked = getTotalSWOPLocked()
122122 let lastInterest = getLastInterestInfo()
123123 let $t042284315 = getUserInterestInfo(caller, lastInterest)
124124 let userLastInterest = $t042284315._1
125125 let userShareTokensAmount = $t042284315._2
126126 let claimAmount = fraction(userShareTokensAmount, (lastInterest - userLastInterest), scaleValue)
127127 let userNewInterest = lastInterest
128128 $Tuple2(userNewInterest, claimAmount)
129129 }
130130
131131
132132 @Callable(i)
133133 func lockSWOP () = {
134134 let $t045274602 = $Tuple2(i.payments[0].amount, i.payments[0].assetId)
135135 let pmtAmount = $t045274602._1
136136 let pmtAssetId = $t045274602._2
137137 if ((pmtAssetId != SWOP))
138138 then throw("Incorrect pmtAssetId")
139139 else {
140140 let lastInterest = getLastInterestInfo()
141141 let $t047184800 = getUserInterestInfo(i.caller, lastInterest)
142142 let userLastInterest = $t047184800._1
143143 let userSWOPAmount = $t047184800._2
144144 let claimAmount = fraction(userSWOPAmount, (lastInterest - userLastInterest), scaleValue)
145145 let userSWOPAmountNew = ((userSWOPAmount + pmtAmount) + claimAmount)
146146 let userNewInterest = lastInterest
147147 let totalSWOPAmount = getTotalSWOPLocked()
148148 let totalSWOPLockedNew = (totalSWOPAmount + pmtAmount)
149149 [IntegerEntry((toString(i.caller) + keyUserLastInterest), userNewInterest), IntegerEntry((toString(i.caller) + keyUserSWOPAmount), userSWOPAmountNew), IntegerEntry(keyTotalSWOPAmount, totalSWOPLockedNew)]
150150 }
151151 }
152152
153153
154154
155155 @Callable(i)
156156 func vote (voteName,option,voteAddSWOPAmount) = {
157157 let userSWOPAmount = getUserSWOPAmount(i.caller)
158158 let userTotalVoteAmount = getUserTotalVoteAmount(i.caller)
159159 let userVoteOptionAmount = getVoteOptionAmount(i.caller, voteName, option)
160160 if ((voteAddSWOPAmount > (userSWOPAmount - userTotalVoteAmount)))
161161 then throwNotEnoughSWOP()
162162 else {
163163 let totalVoteOptionAmount = getTotalVoteOptionAmount(voteName, option)
164164 let voteDuration = getVoteDuration(voteName)
165165 let votingStartHeight = getVotingStartHeight(option)
166166 let userTotalVoteAmountNew = (userTotalVoteAmount + voteAddSWOPAmount)
167167 let userVoteOptionAmountNew = (userVoteOptionAmount + voteAddSWOPAmount)
168168 let voteOptionAmountNew = (totalVoteOptionAmount + voteAddSWOPAmount)
169169 [IntegerEntry((((voteName + "_") + option) + keyTotalVoteOptionAmount), voteOptionAmountNew), IntegerEntry((((voteName + option) + toString(i.caller)) + keyUserVoteOptionAmount), userVoteOptionAmountNew), IntegerEntry((toString(i.caller) + keyUserVoteTotalAmount), userTotalVoteAmountNew)]
170170 }
171171 }
172172
173173
174174
175175 @Callable(i)
176176 func unvote (voteName,option,unvoteSWOPAmount) = {
177177 let userSWOPAmount = getUserSWOPAmount(i.caller)
178178 let userTotalVoteAmount = getUserTotalVoteAmount(i.caller)
179179 let userVoteOptionAmount = getVoteOptionAmount(i.caller, voteName, option)
180180 if ((unvoteSWOPAmount > userVoteOptionAmount))
181181 then throwNotEnoughSWOP()
182182 else {
183183 let totalVoteOptionAmount = getTotalVoteOptionAmount(voteName, option)
184184 let voteDuration = getVoteDuration(voteName)
185185 let votingStartHeight = getVotingStartHeight(option)
186186 let userVoteOptionAmountNew = (userVoteOptionAmount - unvoteSWOPAmount)
187187 let voteOptionAmountNew = (totalVoteOptionAmount - unvoteSWOPAmount)
188188 let getBackSWOPHeight = (votingStartHeight + (2 * voteDuration))
189189 [IntegerEntry((((voteName + "_") + option) + keyTotalVoteOptionAmount), voteOptionAmountNew), IntegerEntry((((voteName + option) + toString(i.caller)) + keyUserVoteOptionAmount), userVoteOptionAmountNew), IntegerEntry(((((((voteName + "_") + option) + "_") + toString(i.caller)) + "_") + toString(getBackSWOPHeight)), unvoteSWOPAmount)]
190190 }
191191 }
192192
193193
194194
195195 @Callable(i)
196196 func getBackSWOPfromOption (voteName,option,getBackSWOPHeight) = {
197197 let userTotalVoteAmount = getUserTotalVoteAmount(i.caller)
198198 let userGetBackAmount = getUserGetBackAmount(voteName, option, i.caller, getBackSWOPHeight)
199199 [IntegerEntry(((((((voteName + "_") + option) + "_") + toString(i.caller)) + "_") + toString(getBackSWOPHeight)), 0), ScriptTransfer(i.caller, userGetBackAmount, SWOP)]
200200 }
201201
202202
203203
204204 @Callable(i)
205205 func airDrop () = {
206206 let $t081408215 = $Tuple2(i.payments[0].amount, i.payments[0].assetId)
207207 let pmtAmount = $t081408215._1
208208 let pmtAssetId = $t081408215._2
209209 if ((pmtAssetId != SWOP))
210210 then throw("Incorrect pmtAssetId")
211211 else {
212212 let totalSWOPAmount = getTotalSWOPLocked()
213213 let lastInterest = getLastInterestInfo()
214214 let interestNew = (lastInterest + fraction(pmtAmount, scaleValue, totalSWOPAmount))
215215 [IntegerEntry(keyLastInterest, interestNew)]
216216 }
217217 }
218218
219219
220220
221221 @Callable(i)
222222 func claimSWOP () = {
223223 let totalSWOPLocked = getTotalSWOPLocked()
224224 let lastInterest = getLastInterestInfo()
225225 let $t087158770 = claimCalc(i.caller)
226226 let userNewInterest = $t087158770._1
227227 let claimAmount = $t087158770._2
228228 let userVoteAmount = getUserTotalVoteAmount(i.caller)
229229 let availableFund = ((getUserSWOPAmount(i.caller) + claimAmount) - userVoteAmount)
230230 [IntegerEntry((toString(i.caller) + keyUserLastInterest), userNewInterest), IntegerEntry(keyLastInterest, lastInterest), IntegerEntry(((toString(i.caller) + "_") + keyUserSWOPAmount), userVoteAmount), ScriptTransfer(i.caller, availableFund, SWOP)]
231231 }
232232
233233
234234
235235 @Callable(i)
236236 func claimSWOPandStake () = {
237237 let totalSWOPLocked = getTotalSWOPLocked()
238238 let lastInterest = getLastInterestInfo()
239239 let $t093409395 = claimCalc(i.caller)
240240 let userNewInterest = $t093409395._1
241241 let claimAmount = $t093409395._2
242242 let userVoteAmount = getUserTotalVoteAmount(i.caller)
243243 let availableFund = ((getUserSWOPAmount(i.caller) + claimAmount) - userVoteAmount)
244244 [IntegerEntry((toString(i.caller) + keyUserLastInterest), userNewInterest), IntegerEntry(keyLastInterest, lastInterest), IntegerEntry(((toString(i.caller) + "_") + keyUserSWOPAmount), userVoteAmount), ScriptTransfer(i.caller, availableFund, SWOP)]
245245 }
246246
247247

github/deemru/w8io/169f3d6 
44.71 ms