tx · 8BGCm7yaqbymvek6MyxRsN7oXxSWgSHLpVnCBDh3Fec8

3N4LqYvK8toVfW83bVrzvm4VoA55PB21Bmy:  -0.14000000 Waves

2021.11.09 10:40 [1783181] smart account 3N4LqYvK8toVfW83bVrzvm4VoA55PB21Bmy > SELF 0.00000000 Waves

{ "type": 13, "id": "8BGCm7yaqbymvek6MyxRsN7oXxSWgSHLpVnCBDh3Fec8", "fee": 14000000, "feeAssetId": null, "timestamp": 1636443689390, "version": 2, "chainId": 84, "sender": "3N4LqYvK8toVfW83bVrzvm4VoA55PB21Bmy", "senderPublicKey": "9NPkhjF6pssidKGhnMzHn9auzo5q5fPBaabRQBx7CaFq", "proofs": [ "2ZqYHGuBkWB7TbTav8vNWCxncFeuiQFNSiDLsQPDenor9yNPBbj9P6oz9i2yKArha8128c7kDm1zvZ8XNmqWtAGH", "2jHPDjhSr5kAgRmLbzvffeFEeaHBWbNMf6sLWoZd6DMtknVHJg2LssM2Jsh8wHFu1tity9qbEHDT8QpUQhzp9pK6" ], "script": "base64:AAIFAAAAAAAAAB4IAhIECgIBARIFCgMBBAQSABIDCgEBEgASABIAEgAAAAAjAAAAAAxhZG1pblB1YktleTEBAAAAIHxYa3tSxaWNZxxr9KlqtCKnmcTlLLl7jg3ENEFozVB4AAAAAAxhZG1pblB1YktleTIBAAAAIHxYa3tSxaWNZxxr9KlqtCKnmcTlLLl7jg3ENEFozVB4AAAAAAxhZG1pblB1YktleTMBAAAAIHxYa3tSxaWNZxxr9KlqtCKnmcTlLLl7jg3ENEFozVB4AAAAABRhZG1pblB1YktleVN0YXJ0U3RvcAEAAAAgfFhre1LFpY1nHGv0qWq0IqeZxOUsuXuODcQ0QWjNUHgAAAAACWtleUFjdGl2ZQIAAAAGYWN0aXZlAAAAAAhrZXlDYXVzZQIAAAAOc2h1dGRvd25fY2F1c2UAAAAADGtleVZvdGVTdGFydAIAAAARdm90ZV9zdGFydF9oZWlnaHQAAAAACmtleVZvdGVFbmQCAAAAD3ZvdG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lnbmVkAwkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAEFAAAADGFkbWluUHViS2V5MgAAAAAAAAAAAQAAAAAAAAAAAAQAAAASYWRtaW5QdWJLZXkzU2lnbmVkAwkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAIFAAAADGFkbWluUHViS2V5MwAAAAAAAAAAAQAAAAAAAAAAAAkAAGcAAAACCQAAZAAAAAIJAABkAAAAAgUAAAASYWRtaW5QdWJLZXkxU2lnbmVkBQAAABJhZG1pblB1YktleTJTaWduZWQFAAAAEmFkbWluUHViS2V5M1NpZ25lZAAAAAAAAAAAApc64lM=", "height": 1783181, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 7aKsYFApEV9E6GywjKq6ATNtAAEVJkaC6hRpycXQbLor Next: Fxad7QirR4C45dmB8ZMBr7WQoYQNA19pHvZNutSCZ4NJ Diff:
OldNewDifferences
112112 then throw("DApp is inactive at this moment")
113113 else if (!(containsElement([adminPubKeyStartStop], i.callerPublicKey)))
114114 then throw("Only admin can call this function")
115- else [IntegerEntry(keyVoteStart, start), IntegerEntry(keyVoteEnd, end)]
115+ else [IntegerEntry(keyVoteStart, start), IntegerEntry(keyVoteEnd, end), IntegerEntry(keyTotalVoted, 0), IntegerEntry(keyTotalVoteShare, 0), IntegerEntry(keyTotalYesVoted, 0), IntegerEntry(keyTotalNoVoted, 0)]
116116
117117
118118
164164 func lockENNO () = if (!(isActive))
165165 then throw("DApp is inactive at this moment")
166166 else {
167- let $t062046279 = $Tuple2(i.payments[0].amount, i.payments[0].assetId)
168- let pmtAmount = $t062046279._1
169- let pmtAssetId = $t062046279._2
167+ let $t063656440 = $Tuple2(i.payments[0].amount, i.payments[0].assetId)
168+ let pmtAmount = $t063656440._1
169+ let pmtAssetId = $t063656440._2
170170 if ((pmtAssetId != ENNO))
171171 then throw("Incorrect payment assetId only Enno Cash is allowed.")
172172 else {
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let adminPubKey1 = base58'9NPkhjF6pssidKGhnMzHn9auzo5q5fPBaabRQBx7CaFq'
55
66 let adminPubKey2 = base58'9NPkhjF6pssidKGhnMzHn9auzo5q5fPBaabRQBx7CaFq'
77
88 let adminPubKey3 = base58'9NPkhjF6pssidKGhnMzHn9auzo5q5fPBaabRQBx7CaFq'
99
1010 let adminPubKeyStartStop = base58'9NPkhjF6pssidKGhnMzHn9auzo5q5fPBaabRQBx7CaFq'
1111
1212 let keyActive = "active"
1313
1414 let keyCause = "shutdown_cause"
1515
1616 let keyVoteStart = "vote_start_height"
1717
1818 let keyVoteEnd = "vote_end_height"
1919
2020 let keyVoteYes = "yes_amount"
2121
2222 let keyVoteNo = "no_amount"
2323
2424 let keyUserENNOVoted = "_ENNO_vote"
2525
2626 let keyUserENNOVotedHeight = "_ENNO_vote_height"
2727
2828 let keyUserENNOVotedValue = "_ENNO_vote_value"
2929
3030 let keyUserENNOVotedYESValue = "_ENNO_vote_yes_share"
3131
3232 let keyUserENNOVotedNOValue = "_ENNO_vote_no_share"
3333
3434 let keyTotalYesVoted = "total_ENNO_vote_yes"
3535
3636 let keyTotalNoVoted = "total_ENNO_vote_no"
3737
3838 let keyUserENNOLocked = "_ENNO_amount"
3939
4040 let keyTotalENNOLocked = "total_ENNO_amount"
4141
4242 let keyTotalVoted = "total_ENNO_vote"
4343
4444 let keyTotalVoteShare = "total_ENNO_vote_share"
4545
4646 let keyUserENNOClaimedAmount = "_ENNO_claimed_amount"
4747
4848 let keyUserENNOLastClaimedAmount = "_ENNO_last_claimed_amount"
4949
5050 let keyUserENNOLockedTag = "share_"
5151
5252 let isActive = valueOrElse(getBoolean(this, keyActive), true)
5353
5454 let shareData = base58'9NPkhjF6pssidKGhnMzHn9auzo5q5fPBaabRQBx7CaFq'
5555
5656 let ENNO = base58'6TmLfry3GRQoVSaesGSnp6NtZKveYgEopTLsjaGgXoso'
5757
5858 func suspend (cause) = [BooleanEntry(keyActive, false), StringEntry(keyCause, cause)]
5959
6060
6161 func getUserENNOLocked (user) = valueOrElse(getInteger(this, (toString(user) + keyUserENNOLocked)), 0)
6262
6363
6464 func getTotalENNOLocked () = valueOrElse(getInteger(this, keyTotalENNOLocked), 0)
6565
6666
6767 func getUserVoteData (user,key) = valueOrElse(getInteger(this, (toString(user) + key)), 0)
6868
6969
7070 func getVal (key) = valueOrElse(getInteger(this, key), 0)
7171
7272
7373 func getCallerShare (caller) = {
7474 let callerShare = getInteger(addressFromPublicKey(shareData), (keyUserENNOLockedTag + toString(caller)))
7575 let callerShareAmount = match callerShare {
7676 case share: Int =>
7777 share
7878 case share: Unit =>
7979 throw("Only governance qualifiers can call this function.")
8080 case _ =>
8181 throw("Match error")
8282 }
8383 callerShareAmount
8484 }
8585
8686
8787 func getClaimedAmount (caller) = {
8888 let callerWithdrawn = getInteger(this, (toString(caller) + keyUserENNOClaimedAmount))
8989 let callerWithdrawnAmount = match callerWithdrawn {
9090 case share: Int =>
9191 share
9292 case share: Unit =>
9393 0
9494 case _ =>
9595 throw("Match error")
9696 }
9797 callerWithdrawnAmount
9898 }
9999
100100
101101 func setShare (amount,add) = {
102102 let deltaHeight = (getVal(keyVoteEnd) - height)
103103 let share = (amount * deltaHeight)
104104 if (add)
105105 then share
106106 else (share * -1)
107107 }
108108
109109
110110 @Callable(i)
111111 func initVote (start,end) = if (!(isActive))
112112 then throw("DApp is inactive at this moment")
113113 else if (!(containsElement([adminPubKeyStartStop], i.callerPublicKey)))
114114 then throw("Only admin can call this function")
115- else [IntegerEntry(keyVoteStart, start), IntegerEntry(keyVoteEnd, end)]
115+ else [IntegerEntry(keyVoteStart, start), IntegerEntry(keyVoteEnd, end), IntegerEntry(keyTotalVoted, 0), IntegerEntry(keyTotalVoteShare, 0), IntegerEntry(keyTotalYesVoted, 0), IntegerEntry(keyTotalNoVoted, 0)]
116116
117117
118118
119119 @Callable(i)
120120 func vote (voteAmount,vote,add) = if (!(isActive))
121121 then throw("DApp is inactive at this moment")
122122 else if ((getVal(keyVoteStart) > height))
123123 then throw("Voting has not started yet.")
124124 else if ((height > getVal(keyVoteEnd)))
125125 then throw("Voting has already ended.")
126126 else {
127127 let totalYes = getVal(keyTotalYesVoted)
128128 let totalNo = getVal(keyTotalNoVoted)
129129 let userVotedYes = getUserVoteData(i.caller, keyUserENNOVotedYESValue)
130130 let userVotedNo = getUserVoteData(i.caller, keyUserENNOVotedNOValue)
131131 let userENNOVoted = getUserVoteData(i.caller, keyUserENNOVoted)
132132 let userENNOLocked = getUserVoteData(i.caller, keyUserENNOLocked)
133133 let userENNOVotedNew = if (add)
134134 then (userENNOVoted + voteAmount)
135135 else (userENNOVoted - voteAmount)
136136 if ((0 > userENNOVotedNew))
137137 then throw("Vote amount is more than available.")
138138 else {
139139 let availableVote = (userENNOLocked - userENNOVoted)
140140 let userVoteValue = setShare(voteAmount, add)
141141 if ((voteAmount > availableVote))
142142 then throw("Vote amount is more than available.")
143143 else if (vote)
144144 then {
145145 let userENNOVotedNewShare = (userVotedYes + userVoteValue)
146146 let newTotalYesVoted = (totalYes + userENNOVotedNewShare)
147147 let totalENNOVoted = getVal(keyTotalVoted)
148148 let totalENNOVotedNew = (totalENNOVoted + userVoteValue)
149149 [IntegerEntry((toString(i.caller) + keyUserENNOVotedHeight), height), IntegerEntry((toString(i.caller) + keyUserENNOVotedYESValue), userENNOVotedNewShare), IntegerEntry((toString(i.caller) + keyUserENNOVoted), userENNOVotedNew), IntegerEntry(keyTotalVoted, totalENNOVotedNew), IntegerEntry(keyTotalYesVoted, newTotalYesVoted)]
150150 }
151151 else {
152152 let userENNOVotedNewShare = (userVotedNo + userVoteValue)
153153 let newTotalNoVoted = (totalNo + userENNOVotedNewShare)
154154 let totalENNOVoted = getVal(keyTotalVoted)
155155 let totalENNOVotedNew = (totalENNOVoted + userVoteValue)
156156 [IntegerEntry((toString(i.caller) + keyUserENNOVotedHeight), height), IntegerEntry((toString(i.caller) + keyUserENNOVotedNOValue), userENNOVotedNewShare), IntegerEntry((toString(i.caller) + keyUserENNOVoted), userENNOVotedNew), IntegerEntry(keyTotalVoted, totalENNOVotedNew), IntegerEntry(keyTotalNoVoted, newTotalNoVoted)]
157157 }
158158 }
159159 }
160160
161161
162162
163163 @Callable(i)
164164 func lockENNO () = if (!(isActive))
165165 then throw("DApp is inactive at this moment")
166166 else {
167- let $t062046279 = $Tuple2(i.payments[0].amount, i.payments[0].assetId)
168- let pmtAmount = $t062046279._1
169- let pmtAssetId = $t062046279._2
167+ let $t063656440 = $Tuple2(i.payments[0].amount, i.payments[0].assetId)
168+ let pmtAmount = $t063656440._1
169+ let pmtAssetId = $t063656440._2
170170 if ((pmtAssetId != ENNO))
171171 then throw("Incorrect payment assetId only Enno Cash is allowed.")
172172 else {
173173 let userENNOLocked = getUserENNOLocked(i.caller)
174174 let userENNOLockedNew = (userENNOLocked + pmtAmount)
175175 let totalENNOLocked = getTotalENNOLocked()
176176 let totalENNOLockedNew = (totalENNOLocked + pmtAmount)
177177 [IntegerEntry((toString(i.caller) + keyUserENNOLocked), userENNOLockedNew), IntegerEntry(keyTotalENNOLocked, totalENNOLockedNew)]
178178 }
179179 }
180180
181181
182182
183183 @Callable(i)
184184 func withdrawENNO (withdrawAmount) = if (!(isActive))
185185 then throw("DApp is inactive at this moment")
186186 else if ((0 >= withdrawAmount))
187187 then throw("withdrawAmount <= 0")
188188 else {
189189 let totalENNOLocked = getTotalENNOLocked()
190190 let userENNOLocked = getUserENNOLocked(i.caller)
191191 if ((withdrawAmount > totalENNOLocked))
192192 then throw("withdrawAmount is more than available to withdraw")
193193 else if ((withdrawAmount > userENNOLocked))
194194 then throw("You are trying to unstake more than you have staked.")
195195 else {
196196 let totalENNOLockedNew = (totalENNOLocked - withdrawAmount)
197197 let userENNOamountNew = (userENNOLocked - withdrawAmount)
198198 [IntegerEntry((toString(i.caller) + keyUserENNOLocked), userENNOamountNew), IntegerEntry(keyTotalENNOLocked, totalENNOLockedNew), ScriptTransfer(i.caller, withdrawAmount, ENNO)]
199199 }
200200 }
201201
202202
203203
204204 @Callable(i)
205205 func claimAndWithdrawENNO () = if (!(isActive))
206206 then throw("DApp is inactive at this moment")
207207 else {
208208 let userShare = getCallerShare(i.originCaller)
209209 let userClaimedAmount = getClaimedAmount(i.originCaller)
210210 let claimAmount = (userShare - userClaimedAmount)
211211 let totalENNOLocked = getTotalENNOLocked()
212212 if ((claimAmount > totalENNOLocked))
213213 then throw("claimAmount is more than available to withdraw")
214214 else if ((0 >= claimAmount))
215215 then throw("Claim amount must be bigger than 0")
216216 else {
217217 let userClaimedAmountNew = (userClaimedAmount + claimAmount)
218218 [IntegerEntry((toString(i.originCaller) + keyUserENNOClaimedAmount), userClaimedAmountNew), IntegerEntry((toString(i.originCaller) + keyUserENNOLastClaimedAmount), claimAmount), ScriptTransfer(i.originCaller, claimAmount, ENNO)]
219219 }
220220 }
221221
222222
223223
224224 @Callable(i)
225225 func claimAndStakeENNO () = if (!(isActive))
226226 then throw("DApp is inactive at this moment")
227227 else {
228228 let userShare = getCallerShare(i.originCaller)
229229 let userClaimedAmount = getClaimedAmount(i.originCaller)
230230 let claimAmount = (userShare - userClaimedAmount)
231231 if ((0 >= claimAmount))
232232 then throw("Claim amount must be bigger than 0")
233233 else {
234234 let userClaimedAmountNew = (userClaimedAmount + claimAmount)
235235 let userENNOLocked = getUserENNOLocked(i.originCaller)
236236 let userENNOLockedNew = (userENNOLocked + claimAmount)
237237 let totalENNOLocked = getTotalENNOLocked()
238238 let totalENNOLockedNew = (totalENNOLocked + claimAmount)
239239 [IntegerEntry((toString(i.originCaller) + keyUserENNOLocked), userENNOLockedNew), IntegerEntry((toString(i.originCaller) + keyUserENNOClaimedAmount), userClaimedAmountNew), IntegerEntry((toString(i.originCaller) + keyUserENNOLastClaimedAmount), claimAmount), IntegerEntry(keyTotalENNOLocked, totalENNOLockedNew)]
240240 }
241241 }
242242
243243
244244
245245 @Callable(i)
246246 func shutdown () = if (!(isActive))
247247 then throw(("DApp is already suspended. Cause: " + valueOrElse(getString(this, keyCause), "the cause wasn't specified")))
248248 else if (!(containsElement([adminPubKey1, adminPubKey2, adminPubKey3, adminPubKeyStartStop], i.callerPublicKey)))
249249 then throw("Only admin can call this function")
250250 else suspend("Paused by admin")
251251
252252
253253
254254 @Callable(i)
255255 func activate () = if (isActive)
256256 then throw("DApp is already active")
257257 else if (!(containsElement([adminPubKey1, adminPubKey2, adminPubKey3, adminPubKeyStartStop], i.callerPublicKey)))
258258 then throw("Only admin can call this function")
259259 else [BooleanEntry(keyActive, true), DeleteEntry(keyCause)]
260260
261261
262262 @Verifier(tx)
263263 func verify () = {
264264 let adminPubKey1Signed = if (sigVerify(tx.bodyBytes, tx.proofs[0], adminPubKey1))
265265 then 1
266266 else 0
267267 let adminPubKey2Signed = if (sigVerify(tx.bodyBytes, tx.proofs[1], adminPubKey2))
268268 then 1
269269 else 0
270270 let adminPubKey3Signed = if (sigVerify(tx.bodyBytes, tx.proofs[2], adminPubKey3))
271271 then 1
272272 else 0
273273 (((adminPubKey1Signed + adminPubKey2Signed) + adminPubKey3Signed) >= 2)
274274 }
275275

github/deemru/w8io/026f985 
41.65 ms