tx · 78kWBX8jx6FtoNYamJsuef3tB8AD8Hs44bsu8sXKyU6s

3N4LqYvK8toVfW83bVrzvm4VoA55PB21Bmy:  -0.14000000 Waves

2021.11.09 12:00 [1783260] smart account 3N4LqYvK8toVfW83bVrzvm4VoA55PB21Bmy > SELF 0.00000000 Waves

{ "type": 13, "id": "78kWBX8jx6FtoNYamJsuef3tB8AD8Hs44bsu8sXKyU6s", "fee": 14000000, "feeAssetId": null, "timestamp": 1636448471025, "version": 2, "chainId": 84, "sender": "3N4LqYvK8toVfW83bVrzvm4VoA55PB21Bmy", "senderPublicKey": "9NPkhjF6pssidKGhnMzHn9auzo5q5fPBaabRQBx7CaFq", "proofs": [ "5ZNgpi2n7rcPS54s5PXPE8bUwetCTZTUdJNWpagoZqv2KfJkRkWuJYiAmoC8ZvQyT1s2VvJSuh3FTGFnisQS5v9s", "3fFPamMRf3YLESmyMYkYKvLnv7YsSxPQovv21bM13pVTpGi2YWZawCutFobyd1LRhck15X82wFacG28o9915DR7f" ], "script": "base64:AAIFAAAAAAAAAB4IAhIAEgQKAgEBEgMKAQESABIDCgEBEgASABIAEgAAAAAfAAAAAAxhZG1pblB1YktleTEBAAAAIHxYa3tSxaWNZxxr9KlqtCKnmcTlLLl7jg3ENEFozVB4AAAAAAxhZG1pblB1YktleTIBAAAAIHxYa3tSxaWNZxxr9KlqtCKnmcTlLLl7jg3ENEFozVB4AAAAAAxhZG1pblB1YktleTMBAAAAIHxYa3tSxaWNZxxr9KlqtCKnmcTlLLl7jg3ENEFozVB4AAAAABRhZG1pblB1YktleVN0YXJ0U3RvcAEAAAAgfFhre1LFpY1nHGv0qWq0IqeZxOUsuXuODcQ0QWjNUHgAAAAACWtleUFjdGl2ZQIAAAAGYWN0aXZlAAAAAAhrZXlDYXVzZQIAAAAOc2h1dGRvd25fY2F1c2UAAAAADGtleVZvdGVTdGFydAIAAAARdm90ZV9zdGFydF9oZWlnaHQAAAAACmtleVZvdGVFbmQCAAAAD3ZvdGVfZW5kX2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ded", "spentComplexity": 0 } View: original | compacted Prev: 5Pr1BmBhTsQdA7JAYoMNFChWYyErv53DDnvmnBZ6XNg6 Next: 3HnUh8ntpaoWexXQJ6Df9NTGZSBHmph5usMR3R3p2peJ Diff:
OldNewDifferences
107107 @Callable(i)
108108 func initVote (start,end) = if (!(isActive))
109109 then throw("DApp is inactive at this moment")
110- else if (!(containsElement([adminPubKeyStartStop], i.callerPublicKey)))
110+ else if ((adminPubKeyStartStop == i.callerPublicKey))
111111 then throw("Only admin can call this function")
112112 else [IntegerEntry(keyVoteStart, start), IntegerEntry(keyVoteEnd, end), IntegerEntry(keyTotalVoted, 0), IntegerEntry(keyTotalYesVoted, 0)]
113113
149149 func lockENNO () = if (!(isActive))
150150 then throw("DApp is inactive at this moment")
151151 else {
152- let $t050955170 = $Tuple2(i.payments[0].amount, i.payments[0].assetId)
153- let pmtAmount = $t050955170._1
154- let pmtAssetId = $t050955170._2
152+ let $t050785153 = $Tuple2(i.payments[0].amount, i.payments[0].assetId)
153+ let pmtAmount = $t050785153._1
154+ let pmtAssetId = $t050785153._2
155155 if ((pmtAssetId != ENNO))
156156 then throw("Incorrect payment assetId only Enno Cash is allowed.")
157157 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 keyTotalVoted = "total_ENNO_vote"
3737
3838 let keyUserENNOClaimedAmount = "_ENNO_claimed_amount"
3939
4040 let keyUserENNOLastClaimedAmount = "_ENNO_last_claimed_amount"
4141
4242 let keyUserENNOLockedTag = "share_"
4343
4444 let isActive = valueOrElse(getBoolean(this, keyActive), true)
4545
4646 let shareData = base58'9NPkhjF6pssidKGhnMzHn9auzo5q5fPBaabRQBx7CaFq'
4747
4848 let ENNO = base58'6TmLfry3GRQoVSaesGSnp6NtZKveYgEopTLsjaGgXoso'
4949
5050 func suspend (cause) = [BooleanEntry(keyActive, false), StringEntry(keyCause, cause)]
5151
5252
5353 func getUserENNOLocked (user) = valueOrElse(getInteger(this, (toString(user) + keyUserENNOLocked)), 0)
5454
5555
5656 func getTotalENNOLocked () = valueOrElse(getInteger(this, keyTotalENNOLocked), 0)
5757
5858
5959 func getUserVoteData (user,key) = valueOrElse(getInteger(this, (toString(user) + key)), 0)
6060
6161
6262 func getVal (key) = valueOrElse(getInteger(this, key), 0)
6363
6464
6565 func getCallerShare (caller) = {
6666 let callerShare = getInteger(addressFromPublicKey(shareData), (keyUserENNOLockedTag + toString(caller)))
6767 let callerShareAmount = match callerShare {
6868 case share: Int =>
6969 share
7070 case share: Unit =>
7171 throw("Only governance qualifiers can call this function.")
7272 case _ =>
7373 throw("Match error")
7474 }
7575 callerShareAmount
7676 }
7777
7878
7979 func getClaimedAmount (caller) = {
8080 let callerWithdrawn = getInteger(this, (toString(caller) + keyUserENNOClaimedAmount))
8181 let callerWithdrawnAmount = match callerWithdrawn {
8282 case share: Int =>
8383 share
8484 case share: Unit =>
8585 0
8686 case _ =>
8787 throw("Match error")
8888 }
8989 callerWithdrawnAmount
9090 }
9191
9292
9393 func setShare (amount) = {
9494 let deltaHeight = (getVal(keyVoteEnd) - height)
9595 let share = fraction(amount, deltaHeight, 100000000)
9696 share
9797 }
9898
9999
100100 @Callable(i)
101101 func claimAirdrop () = if (!(isActive))
102102 then throw("DApp is inactive at this moment")
103103 else [DeleteEntry((toString(i.caller) + keyUserENNOVotedYESValue)), DeleteEntry((toString(i.caller) + keyUserENNOVoted))]
104104
105105
106106
107107 @Callable(i)
108108 func initVote (start,end) = if (!(isActive))
109109 then throw("DApp is inactive at this moment")
110- else if (!(containsElement([adminPubKeyStartStop], i.callerPublicKey)))
110+ else if ((adminPubKeyStartStop == i.callerPublicKey))
111111 then throw("Only admin can call this function")
112112 else [IntegerEntry(keyVoteStart, start), IntegerEntry(keyVoteEnd, end), IntegerEntry(keyTotalVoted, 0), IntegerEntry(keyTotalYesVoted, 0)]
113113
114114
115115
116116 @Callable(i)
117117 func vote (voteAmount) = if (!(isActive))
118118 then throw("DApp is inactive at this moment")
119119 else if ((getVal(keyVoteStart) > height))
120120 then throw("Voting has not started yet.")
121121 else if ((height > getVal(keyVoteEnd)))
122122 then throw("Voting has already ended.")
123123 else {
124124 let totalYes = getVal(keyTotalYesVoted)
125125 let userVotedYes = getUserVoteData(i.caller, keyUserENNOVotedYESValue)
126126 let userENNOVoted = getUserVoteData(i.caller, keyUserENNOVoted)
127127 let userENNOLocked = getUserVoteData(i.caller, keyUserENNOLocked)
128128 let userENNOVotedNew = (userENNOVoted + voteAmount)
129129 if ((0 > userENNOVotedNew))
130130 then throw("Vote amount is more than available.")
131131 else {
132132 let availableVote = (userENNOLocked - userENNOVoted)
133133 let userVoteValue = setShare(voteAmount)
134134 if ((voteAmount > availableVote))
135135 then throw("Vote amount is more than available.")
136136 else {
137137 let userENNOVotedNewShare = (userVotedYes + userVoteValue)
138138 let newTotalYesVoted = (totalYes + userENNOVotedNewShare)
139139 let totalENNOVoted = getVal(keyTotalVoted)
140140 let totalENNOVotedNew = (totalENNOVoted + userVoteValue)
141141 [IntegerEntry((toString(i.caller) + keyUserENNOVotedYESValue), userENNOVotedNewShare), IntegerEntry((toString(i.caller) + keyUserENNOVoted), userENNOVotedNew), IntegerEntry(keyTotalVoted, totalENNOVotedNew), IntegerEntry(keyTotalYesVoted, newTotalYesVoted)]
142142 }
143143 }
144144 }
145145
146146
147147
148148 @Callable(i)
149149 func lockENNO () = if (!(isActive))
150150 then throw("DApp is inactive at this moment")
151151 else {
152- let $t050955170 = $Tuple2(i.payments[0].amount, i.payments[0].assetId)
153- let pmtAmount = $t050955170._1
154- let pmtAssetId = $t050955170._2
152+ let $t050785153 = $Tuple2(i.payments[0].amount, i.payments[0].assetId)
153+ let pmtAmount = $t050785153._1
154+ let pmtAssetId = $t050785153._2
155155 if ((pmtAssetId != ENNO))
156156 then throw("Incorrect payment assetId only Enno Cash is allowed.")
157157 else {
158158 let userENNOLocked = getUserENNOLocked(i.caller)
159159 let userENNOLockedNew = (userENNOLocked + pmtAmount)
160160 let totalENNOLocked = getTotalENNOLocked()
161161 let totalENNOLockedNew = (totalENNOLocked + pmtAmount)
162162 [IntegerEntry((toString(i.caller) + keyUserENNOLocked), userENNOLockedNew), IntegerEntry(keyTotalENNOLocked, totalENNOLockedNew)]
163163 }
164164 }
165165
166166
167167
168168 @Callable(i)
169169 func withdrawENNO (withdrawAmount) = if (!(isActive))
170170 then throw("DApp is inactive at this moment")
171171 else if ((0 >= withdrawAmount))
172172 then throw("withdrawAmount <= 0")
173173 else {
174174 let totalENNOLocked = getTotalENNOLocked()
175175 let userENNOLocked = getUserENNOLocked(i.caller)
176176 if ((withdrawAmount > totalENNOLocked))
177177 then throw("withdrawAmount is more than available to withdraw")
178178 else if ((withdrawAmount > userENNOLocked))
179179 then throw("You are trying to unstake more than you have staked.")
180180 else {
181181 let totalENNOLockedNew = (totalENNOLocked - withdrawAmount)
182182 let userENNOamountNew = (userENNOLocked - withdrawAmount)
183183 [IntegerEntry((toString(i.caller) + keyUserENNOLocked), userENNOamountNew), IntegerEntry(keyTotalENNOLocked, totalENNOLockedNew), ScriptTransfer(i.caller, withdrawAmount, ENNO)]
184184 }
185185 }
186186
187187
188188
189189 @Callable(i)
190190 func claimAndWithdrawENNO () = if (!(isActive))
191191 then throw("DApp is inactive at this moment")
192192 else {
193193 let userShare = getCallerShare(i.originCaller)
194194 let userClaimedAmount = getClaimedAmount(i.originCaller)
195195 let claimAmount = (userShare - userClaimedAmount)
196196 let totalENNOLocked = getTotalENNOLocked()
197197 if ((claimAmount > totalENNOLocked))
198198 then throw("claimAmount is more than available to withdraw")
199199 else if ((0 >= claimAmount))
200200 then throw("Claim amount must be bigger than 0")
201201 else {
202202 let userClaimedAmountNew = (userClaimedAmount + claimAmount)
203203 [IntegerEntry((toString(i.originCaller) + keyUserENNOClaimedAmount), userClaimedAmountNew), IntegerEntry((toString(i.originCaller) + keyUserENNOLastClaimedAmount), claimAmount), ScriptTransfer(i.originCaller, claimAmount, ENNO)]
204204 }
205205 }
206206
207207
208208
209209 @Callable(i)
210210 func claimAndStakeENNO () = if (!(isActive))
211211 then throw("DApp is inactive at this moment")
212212 else {
213213 let userShare = getCallerShare(i.originCaller)
214214 let userClaimedAmount = getClaimedAmount(i.originCaller)
215215 let claimAmount = (userShare - userClaimedAmount)
216216 if ((0 >= claimAmount))
217217 then throw("Claim amount must be bigger than 0")
218218 else {
219219 let userClaimedAmountNew = (userClaimedAmount + claimAmount)
220220 let userENNOLocked = getUserENNOLocked(i.originCaller)
221221 let userENNOLockedNew = (userENNOLocked + claimAmount)
222222 let totalENNOLocked = getTotalENNOLocked()
223223 let totalENNOLockedNew = (totalENNOLocked + claimAmount)
224224 [IntegerEntry((toString(i.originCaller) + keyUserENNOLocked), userENNOLockedNew), IntegerEntry((toString(i.originCaller) + keyUserENNOClaimedAmount), userClaimedAmountNew), IntegerEntry((toString(i.originCaller) + keyUserENNOLastClaimedAmount), claimAmount), IntegerEntry(keyTotalENNOLocked, totalENNOLockedNew)]
225225 }
226226 }
227227
228228
229229
230230 @Callable(i)
231231 func shutdown () = if (!(isActive))
232232 then throw(("DApp is already suspended. Cause: " + valueOrElse(getString(this, keyCause), "the cause wasn't specified")))
233233 else if (!(containsElement([adminPubKey1, adminPubKey2, adminPubKey3, adminPubKeyStartStop], i.callerPublicKey)))
234234 then throw("Only admin can call this function")
235235 else suspend("Paused by admin")
236236
237237
238238
239239 @Callable(i)
240240 func activate () = if (isActive)
241241 then throw("DApp is already active")
242242 else if (!(containsElement([adminPubKey1, adminPubKey2, adminPubKey3, adminPubKeyStartStop], i.callerPublicKey)))
243243 then throw("Only admin can call this function")
244244 else [BooleanEntry(keyActive, true), DeleteEntry(keyCause)]
245245
246246
247247 @Verifier(tx)
248248 func verify () = {
249249 let adminPubKey1Signed = if (sigVerify(tx.bodyBytes, tx.proofs[0], adminPubKey1))
250250 then 1
251251 else 0
252252 let adminPubKey2Signed = if (sigVerify(tx.bodyBytes, tx.proofs[1], adminPubKey2))
253253 then 1
254254 else 0
255255 let adminPubKey3Signed = if (sigVerify(tx.bodyBytes, tx.proofs[2], adminPubKey3))
256256 then 1
257257 else 0
258258 (((adminPubKey1Signed + adminPubKey2Signed) + adminPubKey3Signed) >= 2)
259259 }
260260

github/deemru/w8io/026f985 
62.39 ms