tx · HyCJCJ92SvpdMnEz1pHjNMfMuMzqRQVxg6sf3JzdSJ7Z

3N4LqYvK8toVfW83bVrzvm4VoA55PB21Bmy:  -0.14000000 Waves

2021.11.09 11:46 [1783242] smart account 3N4LqYvK8toVfW83bVrzvm4VoA55PB21Bmy > SELF 0.00000000 Waves

{ "type": 13, "id": "HyCJCJ92SvpdMnEz1pHjNMfMuMzqRQVxg6sf3JzdSJ7Z", "fee": 14000000, "feeAssetId": null, "timestamp": 1636447588761, "version": 2, "chainId": 84, "sender": "3N4LqYvK8toVfW83bVrzvm4VoA55PB21Bmy", "senderPublicKey": "9NPkhjF6pssidKGhnMzHn9auzo5q5fPBaabRQBx7CaFq", "proofs": [ "5JfZmb5WPrgHQasu2u5r2LHBYN7X1SisRyGYKAEVRHbUJaAherqeoQ2aRa9GjUykWXQ7xpPYLVrQ4Lc33FrKbSum", "u3LFqVWnd8aYvhsR5orpLk1yFJgr3Pz4192jyZWpsWPv4UYZQbf1h2rdUoAbt68cQG5ER11xYpm1kqdJDJuyG4Q" ], "script": "base64:AAIFAAAAAAAAABwIAhIECgIBARIDCgEBEgASAwoBARIAEgASABIAAAAAHwAAAAAMYWRtaW5QdWJLZXkxAQAAACB8WGt7UsWljWcca/SparQip5nE5Sy5e44NxDRBaM1QeAAAAAAMYWRtaW5QdWJLZXkyAQAAACB8WGt7UsWljWcca/SparQip5nE5Sy5e44NxDRBaM1QeAAAAAAMYWRtaW5QdWJLZXkzAQAAACB8WGt7UsWljWcca/SparQip5nE5Sy5e44NxDRBaM1QeAAAAAAUYWRtaW5QdWJLZXlTdGFydFN0b3ABAAAAIHxYa3tSxaWNZxxr9KlqtCKnmcTlLLl7jg3ENEFozVB4AAAAAAlrZXlBY3RpdmUCAAAABmFjdGl2ZQAAAAAIa2V5Q2F1c2UCAAAADnNodXRkb3duX2NhdXNlAAAAAAxrZXlWb3RlU3RhcnQCAAAAEXZvdGVfc3RhcnRfaGVpZ2h0AAAAAAprZXlWb3RlRW5kAgAA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RtaW5QdWJLZXkyU2lnbmVkAwkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAEFAAAADGFkbWluUHViS2V5MgAAAAAAAAAAAQAAAAAAAAAAAAQAAAASYWRtaW5QdWJLZXkzU2lnbmVkAwkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAIFAAAADGFkbWluUHViS2V5MwAAAAAAAAAAAQAAAAAAAAAAAAkAAGcAAAACCQAAZAAAAAIJAABkAAAAAgUAAAASYWRtaW5QdWJLZXkxU2lnbmVkBQAAABJhZG1pblB1YktleTJTaWduZWQFAAAAEmFkbWluUHViS2V5M1NpZ25lZAAAAAAAAAAAAqmPw9I=", "height": 1783242, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 8hEkaQ57fL34xsMdQrjtxk81VUcB1pHAs7aXdqnmsoSg Next: 5Pr1BmBhTsQdA7JAYoMNFChWYyErv53DDnvmnBZ6XNg6 Diff:
OldNewDifferences
102102 then throw("DApp is inactive at this moment")
103103 else if (!(containsElement([adminPubKeyStartStop], i.callerPublicKey)))
104104 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")]
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")]
106106
107107
108108
142142 func lockENNO () = if (!(isActive))
143143 then throw("DApp is inactive at this moment")
144144 else {
145- let $t053105385 = $Tuple2(i.payments[0].amount, i.payments[0].assetId)
146- let pmtAmount = $t053105385._1
147- let pmtAssetId = $t053105385._2
145+ let $t053515426 = $Tuple2(i.payments[0].amount, i.payments[0].assetId)
146+ let pmtAmount = $t053515426._1
147+ let pmtAssetId = $t053515426._2
148148 if ((pmtAssetId != ENNO))
149149 then throw("Incorrect payment assetId only Enno Cash is allowed.")
150150 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 initVote (start,end) = if (!(isActive))
102102 then throw("DApp is inactive at this moment")
103103 else if (!(containsElement([adminPubKeyStartStop], i.callerPublicKey)))
104104 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")]
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")]
106106
107107
108108
109109 @Callable(i)
110110 func vote (voteAmount) = if (!(isActive))
111111 then throw("DApp is inactive at this moment")
112112 else if ((getVal(keyVoteStart) > height))
113113 then throw("Voting has not started yet.")
114114 else if ((height > getVal(keyVoteEnd)))
115115 then throw("Voting has already ended.")
116116 else {
117117 let totalYes = getVal(keyTotalYesVoted)
118118 let userVotedYes = getUserVoteData(i.caller, keyUserENNOVotedYESValue)
119119 let userENNOVoted = getUserVoteData(i.caller, keyUserENNOVoted)
120120 let userENNOLocked = getUserVoteData(i.caller, keyUserENNOLocked)
121121 let userENNOVotedNew = (userENNOVoted + voteAmount)
122122 if ((0 > userENNOVotedNew))
123123 then throw("Vote amount is more than available.")
124124 else {
125125 let availableVote = (userENNOLocked - userENNOVoted)
126126 let userVoteValue = setShare(voteAmount)
127127 if ((voteAmount > availableVote))
128128 then throw("Vote amount is more than available.")
129129 else {
130130 let userENNOVotedNewShare = (userVotedYes + userVoteValue)
131131 let newTotalYesVoted = (totalYes + userENNOVotedNewShare)
132132 let totalENNOVoted = getVal(keyTotalVoted)
133133 let totalENNOVotedNew = (totalENNOVoted + userVoteValue)
134134 [IntegerEntry((toString(i.caller) + keyUserENNOVotedYESValue), userENNOVotedNewShare), IntegerEntry((toString(i.caller) + keyUserENNOVoted), userENNOVotedNew), IntegerEntry(keyTotalVoted, totalENNOVotedNew), IntegerEntry(keyTotalYesVoted, newTotalYesVoted)]
135135 }
136136 }
137137 }
138138
139139
140140
141141 @Callable(i)
142142 func lockENNO () = if (!(isActive))
143143 then throw("DApp is inactive at this moment")
144144 else {
145- let $t053105385 = $Tuple2(i.payments[0].amount, i.payments[0].assetId)
146- let pmtAmount = $t053105385._1
147- let pmtAssetId = $t053105385._2
145+ let $t053515426 = $Tuple2(i.payments[0].amount, i.payments[0].assetId)
146+ let pmtAmount = $t053515426._1
147+ let pmtAssetId = $t053515426._2
148148 if ((pmtAssetId != ENNO))
149149 then throw("Incorrect payment assetId only Enno Cash is allowed.")
150150 else {
151151 let userENNOLocked = getUserENNOLocked(i.caller)
152152 let userENNOLockedNew = (userENNOLocked + pmtAmount)
153153 let totalENNOLocked = getTotalENNOLocked()
154154 let totalENNOLockedNew = (totalENNOLocked + pmtAmount)
155155 [IntegerEntry((toString(i.caller) + keyUserENNOLocked), userENNOLockedNew), IntegerEntry(keyTotalENNOLocked, totalENNOLockedNew)]
156156 }
157157 }
158158
159159
160160
161161 @Callable(i)
162162 func withdrawENNO (withdrawAmount) = if (!(isActive))
163163 then throw("DApp is inactive at this moment")
164164 else if ((0 >= withdrawAmount))
165165 then throw("withdrawAmount <= 0")
166166 else {
167167 let totalENNOLocked = getTotalENNOLocked()
168168 let userENNOLocked = getUserENNOLocked(i.caller)
169169 if ((withdrawAmount > totalENNOLocked))
170170 then throw("withdrawAmount is more than available to withdraw")
171171 else if ((withdrawAmount > userENNOLocked))
172172 then throw("You are trying to unstake more than you have staked.")
173173 else {
174174 let totalENNOLockedNew = (totalENNOLocked - withdrawAmount)
175175 let userENNOamountNew = (userENNOLocked - withdrawAmount)
176176 [IntegerEntry((toString(i.caller) + keyUserENNOLocked), userENNOamountNew), IntegerEntry(keyTotalENNOLocked, totalENNOLockedNew), ScriptTransfer(i.caller, withdrawAmount, ENNO)]
177177 }
178178 }
179179
180180
181181
182182 @Callable(i)
183183 func claimAndWithdrawENNO () = if (!(isActive))
184184 then throw("DApp is inactive at this moment")
185185 else {
186186 let userShare = getCallerShare(i.originCaller)
187187 let userClaimedAmount = getClaimedAmount(i.originCaller)
188188 let claimAmount = (userShare - userClaimedAmount)
189189 let totalENNOLocked = getTotalENNOLocked()
190190 if ((claimAmount > totalENNOLocked))
191191 then throw("claimAmount is more than available to withdraw")
192192 else if ((0 >= claimAmount))
193193 then throw("Claim amount must be bigger than 0")
194194 else {
195195 let userClaimedAmountNew = (userClaimedAmount + claimAmount)
196196 [IntegerEntry((toString(i.originCaller) + keyUserENNOClaimedAmount), userClaimedAmountNew), IntegerEntry((toString(i.originCaller) + keyUserENNOLastClaimedAmount), claimAmount), ScriptTransfer(i.originCaller, claimAmount, ENNO)]
197197 }
198198 }
199199
200200
201201
202202 @Callable(i)
203203 func claimAndStakeENNO () = if (!(isActive))
204204 then throw("DApp is inactive at this moment")
205205 else {
206206 let userShare = getCallerShare(i.originCaller)
207207 let userClaimedAmount = getClaimedAmount(i.originCaller)
208208 let claimAmount = (userShare - userClaimedAmount)
209209 if ((0 >= claimAmount))
210210 then throw("Claim amount must be bigger than 0")
211211 else {
212212 let userClaimedAmountNew = (userClaimedAmount + claimAmount)
213213 let userENNOLocked = getUserENNOLocked(i.originCaller)
214214 let userENNOLockedNew = (userENNOLocked + claimAmount)
215215 let totalENNOLocked = getTotalENNOLocked()
216216 let totalENNOLockedNew = (totalENNOLocked + claimAmount)
217217 [IntegerEntry((toString(i.originCaller) + keyUserENNOLocked), userENNOLockedNew), IntegerEntry((toString(i.originCaller) + keyUserENNOClaimedAmount), userClaimedAmountNew), IntegerEntry((toString(i.originCaller) + keyUserENNOLastClaimedAmount), claimAmount), IntegerEntry(keyTotalENNOLocked, totalENNOLockedNew)]
218218 }
219219 }
220220
221221
222222
223223 @Callable(i)
224224 func shutdown () = if (!(isActive))
225225 then throw(("DApp is already suspended. Cause: " + valueOrElse(getString(this, keyCause), "the cause wasn't specified")))
226226 else if (!(containsElement([adminPubKey1, adminPubKey2, adminPubKey3, adminPubKeyStartStop], i.callerPublicKey)))
227227 then throw("Only admin can call this function")
228228 else suspend("Paused by admin")
229229
230230
231231
232232 @Callable(i)
233233 func activate () = if (isActive)
234234 then throw("DApp is already active")
235235 else if (!(containsElement([adminPubKey1, adminPubKey2, adminPubKey3, adminPubKeyStartStop], i.callerPublicKey)))
236236 then throw("Only admin can call this function")
237237 else [BooleanEntry(keyActive, true), DeleteEntry(keyCause)]
238238
239239
240240 @Verifier(tx)
241241 func verify () = {
242242 let adminPubKey1Signed = if (sigVerify(tx.bodyBytes, tx.proofs[0], adminPubKey1))
243243 then 1
244244 else 0
245245 let adminPubKey2Signed = if (sigVerify(tx.bodyBytes, tx.proofs[1], adminPubKey2))
246246 then 1
247247 else 0
248248 let adminPubKey3Signed = if (sigVerify(tx.bodyBytes, tx.proofs[2], adminPubKey3))
249249 then 1
250250 else 0
251251 (((adminPubKey1Signed + adminPubKey2Signed) + adminPubKey3Signed) >= 2)
252252 }
253253

github/deemru/w8io/026f985 
34.08 ms