tx · 5Pr1BmBhTsQdA7JAYoMNFChWYyErv53DDnvmnBZ6XNg6

3N4LqYvK8toVfW83bVrzvm4VoA55PB21Bmy:  -0.14000000 Waves

2021.11.09 11:58 [1783257] smart account 3N4LqYvK8toVfW83bVrzvm4VoA55PB21Bmy > SELF 0.00000000 Waves

{ "type": 13, "id": "5Pr1BmBhTsQdA7JAYoMNFChWYyErv53DDnvmnBZ6XNg6", "fee": 14000000, "feeAssetId": null, "timestamp": 1636448338109, "version": 2, "chainId": 84, "sender": "3N4LqYvK8toVfW83bVrzvm4VoA55PB21Bmy", "senderPublicKey": "9NPkhjF6pssidKGhnMzHn9auzo5q5fPBaabRQBx7CaFq", "proofs": [ "3c5xL7E356oNvj4tJ5Y4cwCRZE9aHUAGYwUR8kuA1JEgb7sAQoZ2rBPYWHj6sVbK37wVMWStapsa2Q1jMYY7o8wY", "55fiqCjLfe23Z58Jjpvya6WR94wwK9RxoreaopAj2LrLjVZ6sFhPdw75UGUf8AjSqyhqJjxHr2U15gXtnDR47YcX" ], "script": "base64:AAIFAAAAAAAAAB4IAhIAEgQKAgEBEgMKAQESABIDCgEBEgASABIAEgAAAAAfAAAAAAxhZG1pblB1YktleTEBAAAAIHxYa3tSxaWNZxxr9KlqtCKnmcTlLLl7jg3ENEFozVB4AAAAAAxhZG1pblB1YktleTIBAAAAIHxYa3tSxaWNZxxr9KlqtCKnmcTlLLl7jg3ENEFozVB4AAAAAAxhZG1pblB1YktleTMBAAAAIHxYa3tSxaWNZxxr9KlqtCKnmcTlLLl7jg3ENEFozVB4AAAAABRhZG1pblB1YktleVN0YXJ0U3RvcAEAAAAgfFhre1LFpY1nHGv0qWq0IqeZxOUsuXuODcQ0QWjNUHgAAAAACWtleUFjdGl2ZQIAAAAGYWN0aXZlAAAAAAhrZXlDYXVzZQIAAAAOc2h1dGRvd25fY2F1c2UAAAAADGtleVZvdGVTdGFydAIAAAARdm90ZV9zdGFydF9oZWlnaHQAAAAACmtleVZvdGVFbmQCAAAAD3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1pblB1YktleTNTaWduZWQAAAAAAAAAAAJ+15Ni", "height": 1783257, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: HyCJCJ92SvpdMnEz1pHjNMfMuMzqRQVxg6sf3JzdSJ7Z Next: 78kWBX8jx6FtoNYamJsuef3tB8AD8Hs44bsu8sXKyU6s Diff:
OldNewDifferences
9898
9999
100100 @Callable(i)
101+func claimAirdrop () = if (!(isActive))
102+ then throw("DApp is inactive at this moment")
103+ else [DeleteEntry((toString(i.caller) + keyUserENNOVotedYESValue)), DeleteEntry((toString(i.caller) + keyUserENNOVoted))]
104+
105+
106+
107+@Callable(i)
101108 func initVote (start,end) = if (!(isActive))
102109 then throw("DApp is inactive at this moment")
103110 else if (!(containsElement([adminPubKeyStartStop], i.callerPublicKey)))
104111 then throw("Only admin can call this function")
105- else [IntegerEntry(keyVoteStart, start), IntegerEntry(keyVoteEnd, end), IntegerEntry(keyTotalVoted, 0), IntegerEntry(keyTotalYesVoted, 0), DeleteEntry("3N1ygWjGRDx6Wmva87krushRi2wfRe1WAps_ENNO_vote_yes_share"), DeleteEntry("3N1ygWjGRDx6Wmva87krushRi2wfRe1WAps_ENNO_vote_no_share"), DeleteEntry("3N1ygWjGRDx6Wmva87krushRi2wfRe1WAps_ENNO_vote_height"), DeleteEntry("3MtKR6Jr6tAT3ixw2AXFxwQQdYMhxz4sVn7_ENNO_vote_yes_share"), DeleteEntry("3N1ygWjGRDx6Wmva87krushRi2wfRe1WAps_ENNO_vote"), DeleteEntry("total_ENNO_vote"), DeleteEntry("total_ENNO_vote_share"), DeleteEntry("total_ENNO_vote_no")]
112+ else [IntegerEntry(keyVoteStart, start), IntegerEntry(keyVoteEnd, end), IntegerEntry(keyTotalVoted, 0), IntegerEntry(keyTotalYesVoted, 0)]
106113
107114
108115
142149 func lockENNO () = if (!(isActive))
143150 then throw("DApp is inactive at this moment")
144151 else {
145- let $t053515426 = $Tuple2(i.payments[0].amount, i.payments[0].assetId)
146- let pmtAmount = $t053515426._1
147- let pmtAssetId = $t053515426._2
152+ let $t050955170 = $Tuple2(i.payments[0].amount, i.payments[0].assetId)
153+ let pmtAmount = $t050955170._1
154+ let pmtAssetId = $t050955170._2
148155 if ((pmtAssetId != ENNO))
149156 then throw("Incorrect payment assetId only Enno Cash is allowed.")
150157 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)
101+func claimAirdrop () = if (!(isActive))
102+ then throw("DApp is inactive at this moment")
103+ else [DeleteEntry((toString(i.caller) + keyUserENNOVotedYESValue)), DeleteEntry((toString(i.caller) + keyUserENNOVoted))]
104+
105+
106+
107+@Callable(i)
101108 func initVote (start,end) = if (!(isActive))
102109 then throw("DApp is inactive at this moment")
103110 else if (!(containsElement([adminPubKeyStartStop], i.callerPublicKey)))
104111 then throw("Only admin can call this function")
105- else [IntegerEntry(keyVoteStart, start), IntegerEntry(keyVoteEnd, end), IntegerEntry(keyTotalVoted, 0), IntegerEntry(keyTotalYesVoted, 0), DeleteEntry("3N1ygWjGRDx6Wmva87krushRi2wfRe1WAps_ENNO_vote_yes_share"), DeleteEntry("3N1ygWjGRDx6Wmva87krushRi2wfRe1WAps_ENNO_vote_no_share"), DeleteEntry("3N1ygWjGRDx6Wmva87krushRi2wfRe1WAps_ENNO_vote_height"), DeleteEntry("3MtKR6Jr6tAT3ixw2AXFxwQQdYMhxz4sVn7_ENNO_vote_yes_share"), DeleteEntry("3N1ygWjGRDx6Wmva87krushRi2wfRe1WAps_ENNO_vote"), DeleteEntry("total_ENNO_vote"), DeleteEntry("total_ENNO_vote_share"), DeleteEntry("total_ENNO_vote_no")]
112+ else [IntegerEntry(keyVoteStart, start), IntegerEntry(keyVoteEnd, end), IntegerEntry(keyTotalVoted, 0), IntegerEntry(keyTotalYesVoted, 0)]
106113
107114
108115
109116 @Callable(i)
110117 func vote (voteAmount) = if (!(isActive))
111118 then throw("DApp is inactive at this moment")
112119 else if ((getVal(keyVoteStart) > height))
113120 then throw("Voting has not started yet.")
114121 else if ((height > getVal(keyVoteEnd)))
115122 then throw("Voting has already ended.")
116123 else {
117124 let totalYes = getVal(keyTotalYesVoted)
118125 let userVotedYes = getUserVoteData(i.caller, keyUserENNOVotedYESValue)
119126 let userENNOVoted = getUserVoteData(i.caller, keyUserENNOVoted)
120127 let userENNOLocked = getUserVoteData(i.caller, keyUserENNOLocked)
121128 let userENNOVotedNew = (userENNOVoted + voteAmount)
122129 if ((0 > userENNOVotedNew))
123130 then throw("Vote amount is more than available.")
124131 else {
125132 let availableVote = (userENNOLocked - userENNOVoted)
126133 let userVoteValue = setShare(voteAmount)
127134 if ((voteAmount > availableVote))
128135 then throw("Vote amount is more than available.")
129136 else {
130137 let userENNOVotedNewShare = (userVotedYes + userVoteValue)
131138 let newTotalYesVoted = (totalYes + userENNOVotedNewShare)
132139 let totalENNOVoted = getVal(keyTotalVoted)
133140 let totalENNOVotedNew = (totalENNOVoted + userVoteValue)
134141 [IntegerEntry((toString(i.caller) + keyUserENNOVotedYESValue), userENNOVotedNewShare), IntegerEntry((toString(i.caller) + keyUserENNOVoted), userENNOVotedNew), IntegerEntry(keyTotalVoted, totalENNOVotedNew), IntegerEntry(keyTotalYesVoted, newTotalYesVoted)]
135142 }
136143 }
137144 }
138145
139146
140147
141148 @Callable(i)
142149 func lockENNO () = if (!(isActive))
143150 then throw("DApp is inactive at this moment")
144151 else {
145- let $t053515426 = $Tuple2(i.payments[0].amount, i.payments[0].assetId)
146- let pmtAmount = $t053515426._1
147- let pmtAssetId = $t053515426._2
152+ let $t050955170 = $Tuple2(i.payments[0].amount, i.payments[0].assetId)
153+ let pmtAmount = $t050955170._1
154+ let pmtAssetId = $t050955170._2
148155 if ((pmtAssetId != ENNO))
149156 then throw("Incorrect payment assetId only Enno Cash is allowed.")
150157 else {
151158 let userENNOLocked = getUserENNOLocked(i.caller)
152159 let userENNOLockedNew = (userENNOLocked + pmtAmount)
153160 let totalENNOLocked = getTotalENNOLocked()
154161 let totalENNOLockedNew = (totalENNOLocked + pmtAmount)
155162 [IntegerEntry((toString(i.caller) + keyUserENNOLocked), userENNOLockedNew), IntegerEntry(keyTotalENNOLocked, totalENNOLockedNew)]
156163 }
157164 }
158165
159166
160167
161168 @Callable(i)
162169 func withdrawENNO (withdrawAmount) = if (!(isActive))
163170 then throw("DApp is inactive at this moment")
164171 else if ((0 >= withdrawAmount))
165172 then throw("withdrawAmount <= 0")
166173 else {
167174 let totalENNOLocked = getTotalENNOLocked()
168175 let userENNOLocked = getUserENNOLocked(i.caller)
169176 if ((withdrawAmount > totalENNOLocked))
170177 then throw("withdrawAmount is more than available to withdraw")
171178 else if ((withdrawAmount > userENNOLocked))
172179 then throw("You are trying to unstake more than you have staked.")
173180 else {
174181 let totalENNOLockedNew = (totalENNOLocked - withdrawAmount)
175182 let userENNOamountNew = (userENNOLocked - withdrawAmount)
176183 [IntegerEntry((toString(i.caller) + keyUserENNOLocked), userENNOamountNew), IntegerEntry(keyTotalENNOLocked, totalENNOLockedNew), ScriptTransfer(i.caller, withdrawAmount, ENNO)]
177184 }
178185 }
179186
180187
181188
182189 @Callable(i)
183190 func claimAndWithdrawENNO () = if (!(isActive))
184191 then throw("DApp is inactive at this moment")
185192 else {
186193 let userShare = getCallerShare(i.originCaller)
187194 let userClaimedAmount = getClaimedAmount(i.originCaller)
188195 let claimAmount = (userShare - userClaimedAmount)
189196 let totalENNOLocked = getTotalENNOLocked()
190197 if ((claimAmount > totalENNOLocked))
191198 then throw("claimAmount is more than available to withdraw")
192199 else if ((0 >= claimAmount))
193200 then throw("Claim amount must be bigger than 0")
194201 else {
195202 let userClaimedAmountNew = (userClaimedAmount + claimAmount)
196203 [IntegerEntry((toString(i.originCaller) + keyUserENNOClaimedAmount), userClaimedAmountNew), IntegerEntry((toString(i.originCaller) + keyUserENNOLastClaimedAmount), claimAmount), ScriptTransfer(i.originCaller, claimAmount, ENNO)]
197204 }
198205 }
199206
200207
201208
202209 @Callable(i)
203210 func claimAndStakeENNO () = if (!(isActive))
204211 then throw("DApp is inactive at this moment")
205212 else {
206213 let userShare = getCallerShare(i.originCaller)
207214 let userClaimedAmount = getClaimedAmount(i.originCaller)
208215 let claimAmount = (userShare - userClaimedAmount)
209216 if ((0 >= claimAmount))
210217 then throw("Claim amount must be bigger than 0")
211218 else {
212219 let userClaimedAmountNew = (userClaimedAmount + claimAmount)
213220 let userENNOLocked = getUserENNOLocked(i.originCaller)
214221 let userENNOLockedNew = (userENNOLocked + claimAmount)
215222 let totalENNOLocked = getTotalENNOLocked()
216223 let totalENNOLockedNew = (totalENNOLocked + claimAmount)
217224 [IntegerEntry((toString(i.originCaller) + keyUserENNOLocked), userENNOLockedNew), IntegerEntry((toString(i.originCaller) + keyUserENNOClaimedAmount), userClaimedAmountNew), IntegerEntry((toString(i.originCaller) + keyUserENNOLastClaimedAmount), claimAmount), IntegerEntry(keyTotalENNOLocked, totalENNOLockedNew)]
218225 }
219226 }
220227
221228
222229
223230 @Callable(i)
224231 func shutdown () = if (!(isActive))
225232 then throw(("DApp is already suspended. Cause: " + valueOrElse(getString(this, keyCause), "the cause wasn't specified")))
226233 else if (!(containsElement([adminPubKey1, adminPubKey2, adminPubKey3, adminPubKeyStartStop], i.callerPublicKey)))
227234 then throw("Only admin can call this function")
228235 else suspend("Paused by admin")
229236
230237
231238
232239 @Callable(i)
233240 func activate () = if (isActive)
234241 then throw("DApp is already active")
235242 else if (!(containsElement([adminPubKey1, adminPubKey2, adminPubKey3, adminPubKeyStartStop], i.callerPublicKey)))
236243 then throw("Only admin can call this function")
237244 else [BooleanEntry(keyActive, true), DeleteEntry(keyCause)]
238245
239246
240247 @Verifier(tx)
241248 func verify () = {
242249 let adminPubKey1Signed = if (sigVerify(tx.bodyBytes, tx.proofs[0], adminPubKey1))
243250 then 1
244251 else 0
245252 let adminPubKey2Signed = if (sigVerify(tx.bodyBytes, tx.proofs[1], adminPubKey2))
246253 then 1
247254 else 0
248255 let adminPubKey3Signed = if (sigVerify(tx.bodyBytes, tx.proofs[2], adminPubKey3))
249256 then 1
250257 else 0
251258 (((adminPubKey1Signed + adminPubKey2Signed) + adminPubKey3Signed) >= 2)
252259 }
253260

github/deemru/w8io/026f985 
42.47 ms