tx · GmynjgDGA6WTQrbpfawhErKv5x2Gk2wAf2qNgmpgu9dF

3N4LqYvK8toVfW83bVrzvm4VoA55PB21Bmy:  -0.14000000 Waves

2021.11.09 17:43 [1783611] smart account 3N4LqYvK8toVfW83bVrzvm4VoA55PB21Bmy > SELF 0.00000000 Waves

{ "type": 13, "id": "GmynjgDGA6WTQrbpfawhErKv5x2Gk2wAf2qNgmpgu9dF", "fee": 14000000, "feeAssetId": null, "timestamp": 1636469047146, "version": 2, "chainId": 84, "sender": "3N4LqYvK8toVfW83bVrzvm4VoA55PB21Bmy", "senderPublicKey": "9NPkhjF6pssidKGhnMzHn9auzo5q5fPBaabRQBx7CaFq", "proofs": [ "488fLzgfpmQQwvkKb2ZZLiUGNe7LAwEKnuz4WFLfwR4cRSYuovhnu1H8g9sEAnD5hBApLQBqtGus2gjbvdCefxCm", "wQSGKRYYPaFCRDxzahTNCdwRWkSaXN8S31sKPwGawKt3gndPT5tYDKjFvdTZAFY7QVqFyXaaroQBEhGviJ95ovK" ], "script": "base64:AAIFAAAAAAAAACQIAhIAEgQKAggIEgQKAgEBEgMKAQESABIDCgEBEgASABIAEgAAAAAeAAAAAAxhZG1pblB1YktleTEBAAAAIHxYa3tSxaWNZxxr9KlqtCKnmcTlLLl7jg3ENEFozVB4AAAAAAxhZG1pblB1YktleTIBAAAAIHxYa3tSxaWNZxxr9KlqtCKnmcTlLLl7jg3ENEFozVB4AAAAAAxhZG1pblB1YktleTMBAAAAIHxYa3tSxaWNZxxr9KlqtCKnmcTlLLl7jg3ENEFozVB4AAAAABRhZG1pblB1YktleVN0YXJ0U3RvcAEAAAAgfFhre1LFpY1nHGv0qWq0IqeZxOUsuXuODcQ0QWjNUHgAAAAACWtleUFjdGl2ZQIAAAAGYWN0aXZlAAAAAAhrZXlDYXVzZQIAAAAOc2h1dGRvd25fY2F1c2UAAAAADGtleVZvdGVTdGFydAIAAAARdm90ZV9zdGFydF9oZWlnaHQAAAAACmtleVZvdGVFbmQCAAAAD3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5QdWJLZXkyCQAETAAAAAIFAAAADGFkbWluUHViS2V5MwkABEwAAAACBQAAABRhZG1pblB1YktleVN0YXJ0U3RvcAUAAAADbmlsCAUAAAABaQAAAA9jYWxsZXJQdWJsaWNLZXkJAAACAAAAAQIAAAAhT25seSBhZG1pbiBjYW4gY2FsbCB0aGlzIGZ1bmN0aW9uCQAETAAAAAIJAQAAAAxCb29sZWFuRW50cnkAAAACBQAAAAlrZXlBY3RpdmUGCQAETAAAAAIJAQAAAAtEZWxldGVFbnRyeQAAAAEFAAAACGtleUNhdXNlBQAAAANuaWwAAAABAAAAAnR4AQAAAAZ2ZXJpZnkAAAAABAAAABJhZG1pblB1YktleTFTaWduZWQDCQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAUAAAAMYWRtaW5QdWJLZXkxAAAAAAAAAAABAAAAAAAAAAAABAAAABJhZG1pblB1YktleTJTaWduZWQDCQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAQUAAAAMYWRtaW5QdWJLZXkyAAAAAAAAAAABAAAAAAAAAAAABAAAABJhZG1pblB1YktleTNTaWduZWQDCQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAgUAAAAMYWRtaW5QdWJLZXkzAAAAAAAAAAABAAAAAAAAAAAACQAAZwAAAAIJAABkAAAAAgkAAGQAAAACBQAAABJhZG1pblB1YktleTFTaWduZWQFAAAAEmFkbWluUHViS2V5MlNpZ25lZAUAAAASYWRtaW5QdWJLZXkzU2lnbmVkAAAAAAAAAAACLxBDjg==", "height": 1783611, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: FrXhLhhJjK6ZwLP38x6CtdkEc6zKffRBV9wDn7JQoWyP Next: 777JyjHdNGx6GSTr14RsDFzW2DjMFYmXxn4xtUecby9m Diff:
OldNewDifferences
147147 then throw("Vote amount is more than available.")
148148 else {
149149 let userENNOVotedNewShare = (userVotedYes + userVoteValue)
150- let newTotalYesVoted = (totalYes + userENNOVotedNewShare)
150+ let newTotalYesVoted = (totalYes + userVoteValue)
151151 [IntegerEntry((toString(i.caller) + keyUserENNOVotedYESValue), userENNOVotedNewShare), IntegerEntry((toString(i.caller) + keyUserENNOVoted), userENNOVotedNew), IntegerEntry(keyTotalYesVoted, newTotalYesVoted)]
152152 }
153153 }
159159 func lockENNO () = if (!(isActive))
160160 then throw("DApp is inactive at this moment")
161161 else {
162- let $t053655440 = $Tuple2(i.payments[0].amount, i.payments[0].assetId)
163- let pmtAmount = $t053655440._1
164- let pmtAssetId = $t053655440._2
162+ let $t053575432 = $Tuple2(i.payments[0].amount, i.payments[0].assetId)
163+ let pmtAmount = $t053575432._1
164+ let pmtAssetId = $t053575432._2
165165 if ((pmtAssetId != ENNO))
166166 then throw("Incorrect payment assetId only Enno Cash is allowed.")
167167 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 keyUserENNOVoted = "_ENNO_vote"
2323
2424 let keyUserENNOVotedHeight = "_ENNO_vote_height"
2525
2626 let keyUserENNOVotedValue = "_ENNO_vote_value"
2727
2828 let keyUserENNOVotedYESValue = "_ENNO_vote_yes_share"
2929
3030 let keyTotalYesVoted = "total_ENNO_vote_yes"
3131
3232 let keyUserENNOLocked = "_ENNO_amount"
3333
3434 let keyTotalENNOLocked = "total_ENNO_amount"
3535
3636 let keyUserENNOClaimedAmount = "_ENNO_claimed_amount"
3737
3838 let keyUserENNOLastClaimedAmount = "_ENNO_last_claimed_amount"
3939
4040 let keyUserENNOLockedTag = "share_"
4141
4242 let isActive = valueOrElse(getBoolean(this, keyActive), true)
4343
4444 let shareData = base58'9NPkhjF6pssidKGhnMzHn9auzo5q5fPBaabRQBx7CaFq'
4545
4646 let ENNO = base58'6TmLfry3GRQoVSaesGSnp6NtZKveYgEopTLsjaGgXoso'
4747
4848 func suspend (cause) = [BooleanEntry(keyActive, false), StringEntry(keyCause, cause)]
4949
5050
5151 func getUserENNOLocked (user) = valueOrElse(getInteger(this, (toString(user) + keyUserENNOLocked)), 0)
5252
5353
5454 func getTotalENNOLocked () = valueOrElse(getInteger(this, keyTotalENNOLocked), 0)
5555
5656
5757 func getUserVoteData (user,key) = valueOrElse(getInteger(this, (toString(user) + key)), 0)
5858
5959
6060 func getVal (key) = valueOrElse(getInteger(this, key), 0)
6161
6262
6363 func getCallerShare (caller) = {
6464 let callerShare = getInteger(addressFromPublicKey(shareData), (keyUserENNOLockedTag + toString(caller)))
6565 let callerShareAmount = match callerShare {
6666 case share: Int =>
6767 share
6868 case share: Unit =>
6969 throw("Only governance qualifiers can call this function.")
7070 case _ =>
7171 throw("Match error")
7272 }
7373 callerShareAmount
7474 }
7575
7676
7777 func getClaimedAmount (caller) = {
7878 let callerWithdrawn = getInteger(this, (toString(caller) + keyUserENNOClaimedAmount))
7979 let callerWithdrawnAmount = match callerWithdrawn {
8080 case share: Int =>
8181 share
8282 case share: Unit =>
8383 0
8484 case _ =>
8585 throw("Match error")
8686 }
8787 callerWithdrawnAmount
8888 }
8989
9090
9191 func setShare (amount) = {
9292 let deltaHeight = (getVal(keyVoteEnd) - height)
9393 let share = fraction(amount, deltaHeight, 100000000)
9494 share
9595 }
9696
9797
9898 @Callable(i)
9999 func claimAirdrop () = if (!(isActive))
100100 then throw("DApp is inactive at this moment")
101101 else {
102102 let share = getVal((toString(i.caller) + keyUserENNOVotedYESValue))
103103 if ((0 >= share))
104104 then throw("You already claimed or you have not participated.")
105105 else {
106106 let total = getVal(keyTotalYesVoted)
107107 let result = fraction(share, 100000000, total)
108108 [IntegerEntry((toString(i.caller) + "_airdrop"), result), DeleteEntry((toString(i.caller) + keyUserENNOVotedYESValue)), DeleteEntry((toString(i.caller) + keyUserENNOVoted))]
109109 }
110110 }
111111
112112
113113
114114 @Callable(i)
115115 func deleteEntry (address1,address2) = if (!(isActive))
116116 then throw("DApp is inactive at this moment")
117117 else [DeleteEntry((address1 + "_airdrop")), DeleteEntry((address1 + keyUserENNOVotedYESValue)), DeleteEntry((address1 + keyUserENNOVoted)), DeleteEntry((address2 + "_airdrop")), DeleteEntry((address2 + keyUserENNOVotedYESValue)), DeleteEntry((address2 + keyUserENNOVoted))]
118118
119119
120120
121121 @Callable(i)
122122 func initVote (start,end) = if (!(isActive))
123123 then throw("DApp is inactive at this moment")
124124 else [IntegerEntry(keyVoteStart, start), IntegerEntry(keyVoteEnd, end), IntegerEntry(keyTotalYesVoted, 0)]
125125
126126
127127
128128 @Callable(i)
129129 func vote (voteAmount) = if (!(isActive))
130130 then throw("DApp is inactive at this moment")
131131 else if ((getVal(keyVoteStart) > height))
132132 then throw("Voting has not started yet.")
133133 else if ((height > getVal(keyVoteEnd)))
134134 then throw("Voting has already ended.")
135135 else {
136136 let totalYes = getVal(keyTotalYesVoted)
137137 let userVotedYes = getUserVoteData(i.caller, keyUserENNOVotedYESValue)
138138 let userENNOVoted = getUserVoteData(i.caller, keyUserENNOVoted)
139139 let userENNOLocked = getUserVoteData(i.caller, keyUserENNOLocked)
140140 let userENNOVotedNew = (userENNOVoted + voteAmount)
141141 if ((0 > userENNOVotedNew))
142142 then throw("Vote amount is more than available.")
143143 else {
144144 let availableVote = (userENNOLocked - userENNOVoted)
145145 let userVoteValue = setShare(voteAmount)
146146 if ((voteAmount > availableVote))
147147 then throw("Vote amount is more than available.")
148148 else {
149149 let userENNOVotedNewShare = (userVotedYes + userVoteValue)
150- let newTotalYesVoted = (totalYes + userENNOVotedNewShare)
150+ let newTotalYesVoted = (totalYes + userVoteValue)
151151 [IntegerEntry((toString(i.caller) + keyUserENNOVotedYESValue), userENNOVotedNewShare), IntegerEntry((toString(i.caller) + keyUserENNOVoted), userENNOVotedNew), IntegerEntry(keyTotalYesVoted, newTotalYesVoted)]
152152 }
153153 }
154154 }
155155
156156
157157
158158 @Callable(i)
159159 func lockENNO () = if (!(isActive))
160160 then throw("DApp is inactive at this moment")
161161 else {
162- let $t053655440 = $Tuple2(i.payments[0].amount, i.payments[0].assetId)
163- let pmtAmount = $t053655440._1
164- let pmtAssetId = $t053655440._2
162+ let $t053575432 = $Tuple2(i.payments[0].amount, i.payments[0].assetId)
163+ let pmtAmount = $t053575432._1
164+ let pmtAssetId = $t053575432._2
165165 if ((pmtAssetId != ENNO))
166166 then throw("Incorrect payment assetId only Enno Cash is allowed.")
167167 else {
168168 let userENNOLocked = getUserENNOLocked(i.caller)
169169 let userENNOLockedNew = (userENNOLocked + pmtAmount)
170170 let totalENNOLocked = getTotalENNOLocked()
171171 let totalENNOLockedNew = (totalENNOLocked + pmtAmount)
172172 [IntegerEntry((toString(i.caller) + keyUserENNOLocked), userENNOLockedNew), IntegerEntry(keyTotalENNOLocked, totalENNOLockedNew)]
173173 }
174174 }
175175
176176
177177
178178 @Callable(i)
179179 func withdrawENNO (withdrawAmount) = if (!(isActive))
180180 then throw("DApp is inactive at this moment")
181181 else {
182182 let finalWithdrawAmount = (withdrawAmount - getVal((toString(i.caller) + keyUserENNOVoted)))
183183 if ((0 >= finalWithdrawAmount))
184184 then throw("Your Enno is locked")
185185 else if ((0 >= finalWithdrawAmount))
186186 then throw("withdrawAmount <= 0")
187187 else {
188188 let totalENNOLocked = getTotalENNOLocked()
189189 let userENNOLocked = getUserENNOLocked(i.caller)
190190 if ((finalWithdrawAmount > totalENNOLocked))
191191 then throw("withdrawAmount is more than available to withdraw")
192192 else if ((finalWithdrawAmount > userENNOLocked))
193193 then throw("You are trying to unstake more than you have staked.")
194194 else {
195195 let totalENNOLockedNew = (totalENNOLocked - finalWithdrawAmount)
196196 let userENNOamountNew = (userENNOLocked - finalWithdrawAmount)
197197 [IntegerEntry((toString(i.caller) + keyUserENNOLocked), userENNOamountNew), IntegerEntry(keyTotalENNOLocked, totalENNOLockedNew), ScriptTransfer(i.caller, finalWithdrawAmount, ENNO)]
198198 }
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 
56.69 ms