tx · 7U9ZVknF9BiAyjemiuacvU5JZ4Qt9DqjNUgsZSHgsU5W 3N4LqYvK8toVfW83bVrzvm4VoA55PB21Bmy: -0.14000000 Waves 2021.11.11 16:59 [1786437] smart account 3N4LqYvK8toVfW83bVrzvm4VoA55PB21Bmy > SELF 0.00000000 Waves
{ "type": 13, "id": "7U9ZVknF9BiAyjemiuacvU5JZ4Qt9DqjNUgsZSHgsU5W", "fee": 14000000, "feeAssetId": null, "timestamp": 1636639214595, "version": 2, "chainId": 84, "sender": "3N4LqYvK8toVfW83bVrzvm4VoA55PB21Bmy", "senderPublicKey": "9NPkhjF6pssidKGhnMzHn9auzo5q5fPBaabRQBx7CaFq", "proofs": [ "2LwJenWapxCEu8gmXVge76s68wRwG3PaJFGpY14E7ugMrRxZTckJKK1A6wqydUAjCsy4NsxApC7bqJNBF1NjYAvb", "38kWD3kpaLDbu73zRnaP65brCYT6qMwwjUhynNWvzyq5ZUeytShm93EtkYFDf7jpMRrPZdPrS5VxarjtghuQBt4u" ], "script": "base64:AAIFAAAAAAAAADAIAhIAEgQKAggIEgYKBAEBCAESAwoBBBIDCgEBEgMKAQESABIDCgEBEgASABIAEgAAAAAiAAAAAAxhZG1pblB1YktleTEBAAAAIHxYa3tSxaWNZxxr9KlqtCKnmcTlLLl7jg3ENEFozVB4AAAAAAxhZG1pblB1YktleTIBAAAAIHxYa3tSxaWNZxxr9KlqtCKnmcTlLLl7jg3ENEFozVB4AAAAAAxhZG1pblB1YktleTMBAAAAIHxYa3tSxaWNZxxr9KlqtCKnmcTlLLl7jg3ENEFozVB4AAAAABRhZG1pblB1YktleVN0YXJ0U3RvcAEAAAAgfFhre1LFpY1nHGv0qWq0IqeZxOUsuXuODcQ0QWjNUHgAAAAACWtleUFjdGl2ZQIAAAAGYWN0aXZlAAAAAAhrZXlDYXVzZQIAAAAOc2h1dGRvd25fY2F1c2UAAAAADGtleVZvdGVTdGFydAIAAAARdm90ZV9zdGFydF9oZWlnaHQAAAAACmtleVZvdG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ZG1pblB1YktleTNTaWduZWQAAAAAAAAAAAIWhBj2", "height": 1786437, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 6KBnvHFutWAX1cfgivVoitadsq5gxdny2xpyoTEQT1yZ Next: 2sGXe7UDvGgrzd9rqixhgdChdRdCH7Mx1byRHdsxkKsd Diff:
Old | New | Differences | |
---|---|---|---|
134 | 134 | then throw("DApp is inactive at this moment") | |
135 | 135 | else { | |
136 | 136 | let airdropToken = ("_" + valueOrElse(getString(this, activeAirdropToken), "N/A")) | |
137 | - | [DeleteEntry(((address1 + airdropToken) + keyUserENNOVotedYESValue)), DeleteEntry((address1 + keyUserENNOVoted)), DeleteEntry(((address2 + airdropToken) + keyUserENNOVotedYESValue)), DeleteEntry((address2 + keyUserENNOVoted))] | |
137 | + | [DeleteEntry(((address1 + airdropToken) + keyUserENNOVotedYESValue)), DeleteEntry((address1 + keyUserENNOVoted)), DeleteEntry(((address2 + airdropToken) + keyUserENNOVotedYESValue)), DeleteEntry((address2 + keyUserENNOVoted)), DeleteEntry("active_airdrop_amount"), DeleteEntry("active_airdrop_claim_status"), DeleteEntry("active_airdrop_token"), DeleteEntry("total_ENNO_vote_yes"), DeleteEntry("vote_end_height"), DeleteEntry("vote_start_height")] | |
138 | 138 | } | |
139 | 139 | ||
140 | 140 | ||
217 | 217 | func lockENNO () = if (!(isActive)) | |
218 | 218 | then throw("DApp is inactive at this moment") | |
219 | 219 | else { | |
220 | - | let $ | |
221 | - | let pmtAmount = $ | |
222 | - | let pmtAssetId = $ | |
220 | + | let $t085688643 = $Tuple2(i.payments[0].amount, i.payments[0].assetId) | |
221 | + | let pmtAmount = $t085688643._1 | |
222 | + | let pmtAssetId = $t085688643._2 | |
223 | 223 | if ((pmtAssetId != ENNO)) | |
224 | 224 | then throw("Incorrect payment assetId only Enno Cash is allowed.") | |
225 | 225 | else { |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let adminPubKey1 = base58'9NPkhjF6pssidKGhnMzHn9auzo5q5fPBaabRQBx7CaFq' | |
5 | 5 | ||
6 | 6 | let adminPubKey2 = base58'9NPkhjF6pssidKGhnMzHn9auzo5q5fPBaabRQBx7CaFq' | |
7 | 7 | ||
8 | 8 | let adminPubKey3 = base58'9NPkhjF6pssidKGhnMzHn9auzo5q5fPBaabRQBx7CaFq' | |
9 | 9 | ||
10 | 10 | let adminPubKeyStartStop = base58'9NPkhjF6pssidKGhnMzHn9auzo5q5fPBaabRQBx7CaFq' | |
11 | 11 | ||
12 | 12 | let keyActive = "active" | |
13 | 13 | ||
14 | 14 | let keyCause = "shutdown_cause" | |
15 | 15 | ||
16 | 16 | let keyVoteStart = "vote_start_height" | |
17 | 17 | ||
18 | 18 | let keyVoteEnd = "vote_end_height" | |
19 | 19 | ||
20 | 20 | let keyVoteYes = "yes_amount" | |
21 | 21 | ||
22 | 22 | let keyUserENNOVoted = "_ENNO_vote" | |
23 | 23 | ||
24 | 24 | let keyUserENNOVotedHeight = "_ENNO_vote_height" | |
25 | 25 | ||
26 | 26 | let keyUserENNOVotedValue = "_ENNO_vote_value" | |
27 | 27 | ||
28 | 28 | let keyUserENNOVotedYESValue = "_ENNO_vote_yes_share" | |
29 | 29 | ||
30 | 30 | let keyTotalYesVoted = "total_ENNO_vote_yes" | |
31 | 31 | ||
32 | 32 | let keyUserENNOLocked = "_ENNO_amount" | |
33 | 33 | ||
34 | 34 | let keyTotalENNOLocked = "total_ENNO_amount" | |
35 | 35 | ||
36 | 36 | let activeAirdropToken = "active_airdrop_token" | |
37 | 37 | ||
38 | 38 | let activeAirdropAmount = "active_airdrop_amount" | |
39 | 39 | ||
40 | 40 | let claimAvailable = "active_airdrop_claim_status" | |
41 | 41 | ||
42 | 42 | let keyUserENNOClaimedAmount = "_ENNO_claimed_amount" | |
43 | 43 | ||
44 | 44 | let keyUserENNOLastClaimedAmount = "_ENNO_last_claimed_amount" | |
45 | 45 | ||
46 | 46 | let keyUserENNOLockedTag = "share_" | |
47 | 47 | ||
48 | 48 | let isActive = valueOrElse(getBoolean(this, keyActive), true) | |
49 | 49 | ||
50 | 50 | let isAirdropClaim = valueOrElse(getBoolean(this, claimAvailable), false) | |
51 | 51 | ||
52 | 52 | let shareData = base58'9NPkhjF6pssidKGhnMzHn9auzo5q5fPBaabRQBx7CaFq' | |
53 | 53 | ||
54 | 54 | let ENNO = base58'6TmLfry3GRQoVSaesGSnp6NtZKveYgEopTLsjaGgXoso' | |
55 | 55 | ||
56 | 56 | func suspend (cause) = [BooleanEntry(keyActive, false), StringEntry(keyCause, cause)] | |
57 | 57 | ||
58 | 58 | ||
59 | 59 | func getUserENNOLocked (user) = valueOrElse(getInteger(this, (toString(user) + keyUserENNOLocked)), 0) | |
60 | 60 | ||
61 | 61 | ||
62 | 62 | func getTotalENNOLocked () = valueOrElse(getInteger(this, keyTotalENNOLocked), 0) | |
63 | 63 | ||
64 | 64 | ||
65 | 65 | func getUserVoteData (user,key) = valueOrElse(getInteger(this, (toString(user) + key)), 0) | |
66 | 66 | ||
67 | 67 | ||
68 | 68 | func getVal (key) = valueOrElse(getInteger(this, key), 0) | |
69 | 69 | ||
70 | 70 | ||
71 | 71 | func getCallerShare (caller) = { | |
72 | 72 | let callerShare = getInteger(addressFromPublicKey(shareData), (keyUserENNOLockedTag + toString(caller))) | |
73 | 73 | let callerShareAmount = match callerShare { | |
74 | 74 | case share: Int => | |
75 | 75 | share | |
76 | 76 | case share: Unit => | |
77 | 77 | throw("Only governance qualifiers can call this function.") | |
78 | 78 | case _ => | |
79 | 79 | throw("Match error") | |
80 | 80 | } | |
81 | 81 | callerShareAmount | |
82 | 82 | } | |
83 | 83 | ||
84 | 84 | ||
85 | 85 | func getClaimedAmount (caller) = { | |
86 | 86 | let callerWithdrawn = getInteger(this, (toString(caller) + keyUserENNOClaimedAmount)) | |
87 | 87 | let callerWithdrawnAmount = match callerWithdrawn { | |
88 | 88 | case share: Int => | |
89 | 89 | share | |
90 | 90 | case share: Unit => | |
91 | 91 | 0 | |
92 | 92 | case _ => | |
93 | 93 | throw("Match error") | |
94 | 94 | } | |
95 | 95 | callerWithdrawnAmount | |
96 | 96 | } | |
97 | 97 | ||
98 | 98 | ||
99 | 99 | func setShare (amount) = { | |
100 | 100 | let deltaHeight = (getVal(keyVoteEnd) - height) | |
101 | 101 | let share = fraction(amount, deltaHeight, 100000000) | |
102 | 102 | share | |
103 | 103 | } | |
104 | 104 | ||
105 | 105 | ||
106 | 106 | @Callable(i) | |
107 | 107 | func claimAirdrop () = if (!(isActive)) | |
108 | 108 | then throw("DApp is inactive at this moment") | |
109 | 109 | else if (!(isAirdropClaim)) | |
110 | 110 | then throw("Claim has not started yet.") | |
111 | 111 | else if ((getVal(keyVoteStart) > height)) | |
112 | 112 | then throw("Voting has not started yet.") | |
113 | 113 | else if ((getVal(keyVoteEnd) > height)) | |
114 | 114 | then throw("Voting has not ended yet.") | |
115 | 115 | else { | |
116 | 116 | let token = getStringValue(this, activeAirdropToken) | |
117 | 117 | let airdropAmount = getVal(activeAirdropAmount) | |
118 | 118 | let shareAssetId = fromBase58String(token) | |
119 | 119 | let airdropToken = ("_" + token) | |
120 | 120 | let share = getVal(((toString(i.caller) + airdropToken) + keyUserENNOVotedYESValue)) | |
121 | 121 | if ((0 >= share)) | |
122 | 122 | then throw("You already claimed or you have not participated.") | |
123 | 123 | else { | |
124 | 124 | let total = getVal(keyTotalYesVoted) | |
125 | 125 | let result = fraction(share, airdropAmount, total) | |
126 | 126 | [DeleteEntry(((toString(i.caller) + airdropToken) + keyUserENNOVotedYESValue)), DeleteEntry((toString(i.caller) + keyUserENNOVoted)), ScriptTransfer(i.caller, result, shareAssetId)] | |
127 | 127 | } | |
128 | 128 | } | |
129 | 129 | ||
130 | 130 | ||
131 | 131 | ||
132 | 132 | @Callable(i) | |
133 | 133 | func deleteEntry (address1,address2) = if (!(isActive)) | |
134 | 134 | then throw("DApp is inactive at this moment") | |
135 | 135 | else { | |
136 | 136 | let airdropToken = ("_" + valueOrElse(getString(this, activeAirdropToken), "N/A")) | |
137 | - | [DeleteEntry(((address1 + airdropToken) + keyUserENNOVotedYESValue)), DeleteEntry((address1 + keyUserENNOVoted)), DeleteEntry(((address2 + airdropToken) + keyUserENNOVotedYESValue)), DeleteEntry((address2 + keyUserENNOVoted))] | |
137 | + | [DeleteEntry(((address1 + airdropToken) + keyUserENNOVotedYESValue)), DeleteEntry((address1 + keyUserENNOVoted)), DeleteEntry(((address2 + airdropToken) + keyUserENNOVotedYESValue)), DeleteEntry((address2 + keyUserENNOVoted)), DeleteEntry("active_airdrop_amount"), DeleteEntry("active_airdrop_claim_status"), DeleteEntry("active_airdrop_token"), DeleteEntry("total_ENNO_vote_yes"), DeleteEntry("vote_end_height"), DeleteEntry("vote_start_height")] | |
138 | 138 | } | |
139 | 139 | ||
140 | 140 | ||
141 | 141 | ||
142 | 142 | @Callable(i) | |
143 | 143 | func initVote (start,end,token,amount) = if (!(isActive)) | |
144 | 144 | then throw("DApp is inactive at this moment") | |
145 | 145 | else if (!(containsElement([adminPubKey1, adminPubKey2, adminPubKey3, adminPubKeyStartStop], i.callerPublicKey))) | |
146 | 146 | then throw("Only admin can call this function") | |
147 | 147 | else [StringEntry(activeAirdropToken, token), IntegerEntry(activeAirdropAmount, amount), IntegerEntry(keyVoteStart, start), IntegerEntry(keyVoteEnd, end), IntegerEntry(keyTotalYesVoted, 0), BooleanEntry(claimAvailable, false)] | |
148 | 148 | ||
149 | 149 | ||
150 | 150 | ||
151 | 151 | @Callable(i) | |
152 | 152 | func activateAirdropClaim (set) = if (!(isActive)) | |
153 | 153 | then throw("DApp is inactive at this moment") | |
154 | 154 | else if (!(containsElement([adminPubKey1, adminPubKey2, adminPubKey3, adminPubKeyStartStop], i.callerPublicKey))) | |
155 | 155 | then throw("Only admin can call this function") | |
156 | 156 | else [BooleanEntry(claimAvailable, set)] | |
157 | 157 | ||
158 | 158 | ||
159 | 159 | ||
160 | 160 | @Callable(i) | |
161 | 161 | func unvote (voteAmount) = if (!(isActive)) | |
162 | 162 | then throw("DApp is inactive at this moment") | |
163 | 163 | else if ((getVal(keyVoteStart) > height)) | |
164 | 164 | then throw("Voting has not started yet.") | |
165 | 165 | else if ((height > getVal(keyVoteEnd))) | |
166 | 166 | then throw("Voting has already ended.") | |
167 | 167 | else { | |
168 | 168 | let airdropToken = ("_" + valueOrElse(getString(this, activeAirdropToken), "N/A")) | |
169 | 169 | let totalYes = getVal(keyTotalYesVoted) | |
170 | 170 | let userVotedYes = getUserVoteData(i.caller, (airdropToken + keyUserENNOVotedYESValue)) | |
171 | 171 | let userENNOVoted = getUserVoteData(i.caller, keyUserENNOVoted) | |
172 | 172 | let userENNOVotedNew = (userENNOVoted - voteAmount) | |
173 | 173 | if ((0 > userENNOVotedNew)) | |
174 | 174 | then throw("Vote amount is less than available.") | |
175 | 175 | else { | |
176 | 176 | let userVoteValue = setShare(voteAmount) | |
177 | 177 | let userENNOVotedNewShare = (userVotedYes - userVoteValue) | |
178 | 178 | let newTotalYesVoted = (totalYes - userVoteValue) | |
179 | 179 | [IntegerEntry(((toString(i.caller) + airdropToken) + keyUserENNOVotedYESValue), userENNOVotedNewShare), IntegerEntry((toString(i.caller) + keyUserENNOVoted), userENNOVotedNew), IntegerEntry(keyTotalYesVoted, newTotalYesVoted)] | |
180 | 180 | } | |
181 | 181 | } | |
182 | 182 | ||
183 | 183 | ||
184 | 184 | ||
185 | 185 | @Callable(i) | |
186 | 186 | func vote (voteAmount) = if (!(isActive)) | |
187 | 187 | then throw("DApp is inactive at this moment") | |
188 | 188 | else if ((getVal(keyVoteStart) > height)) | |
189 | 189 | then throw("Voting has not started yet.") | |
190 | 190 | else if ((height > getVal(keyVoteEnd))) | |
191 | 191 | then throw("Voting has already ended.") | |
192 | 192 | else { | |
193 | 193 | let totalYes = getVal(keyTotalYesVoted) | |
194 | 194 | let airdropToken = ("_" + valueOrElse(getString(this, activeAirdropToken), "N/A")) | |
195 | 195 | let userVotedYes = getUserVoteData(i.caller, (airdropToken + keyUserENNOVotedYESValue)) | |
196 | 196 | let userENNOVoted = getUserVoteData(i.caller, keyUserENNOVoted) | |
197 | 197 | let userENNOLocked = getUserVoteData(i.caller, keyUserENNOLocked) | |
198 | 198 | let userENNOVotedNew = (userENNOVoted + voteAmount) | |
199 | 199 | if ((0 > userENNOVotedNew)) | |
200 | 200 | then throw("Vote amount is more than available.") | |
201 | 201 | else { | |
202 | 202 | let availableVote = (userENNOLocked - userENNOVoted) | |
203 | 203 | let userVoteValue = setShare(voteAmount) | |
204 | 204 | if ((voteAmount > availableVote)) | |
205 | 205 | then throw("Vote amount is more than available.") | |
206 | 206 | else { | |
207 | 207 | let userENNOVotedNewShare = (userVotedYes + userVoteValue) | |
208 | 208 | let newTotalYesVoted = (totalYes + userVoteValue) | |
209 | 209 | [IntegerEntry(((toString(i.caller) + airdropToken) + keyUserENNOVotedYESValue), userENNOVotedNewShare), IntegerEntry((toString(i.caller) + keyUserENNOVoted), userENNOVotedNew), IntegerEntry(keyTotalYesVoted, newTotalYesVoted)] | |
210 | 210 | } | |
211 | 211 | } | |
212 | 212 | } | |
213 | 213 | ||
214 | 214 | ||
215 | 215 | ||
216 | 216 | @Callable(i) | |
217 | 217 | func lockENNO () = if (!(isActive)) | |
218 | 218 | then throw("DApp is inactive at this moment") | |
219 | 219 | else { | |
220 | - | let $ | |
221 | - | let pmtAmount = $ | |
222 | - | let pmtAssetId = $ | |
220 | + | let $t085688643 = $Tuple2(i.payments[0].amount, i.payments[0].assetId) | |
221 | + | let pmtAmount = $t085688643._1 | |
222 | + | let pmtAssetId = $t085688643._2 | |
223 | 223 | if ((pmtAssetId != ENNO)) | |
224 | 224 | then throw("Incorrect payment assetId only Enno Cash is allowed.") | |
225 | 225 | else { | |
226 | 226 | let userENNOLocked = getUserENNOLocked(i.caller) | |
227 | 227 | let userENNOLockedNew = (userENNOLocked + pmtAmount) | |
228 | 228 | let totalENNOLocked = getTotalENNOLocked() | |
229 | 229 | let totalENNOLockedNew = (totalENNOLocked + pmtAmount) | |
230 | 230 | [IntegerEntry((toString(i.caller) + keyUserENNOLocked), userENNOLockedNew), IntegerEntry(keyTotalENNOLocked, totalENNOLockedNew)] | |
231 | 231 | } | |
232 | 232 | } | |
233 | 233 | ||
234 | 234 | ||
235 | 235 | ||
236 | 236 | @Callable(i) | |
237 | 237 | func withdrawENNO (withdrawAmount) = if (!(isActive)) | |
238 | 238 | then throw("DApp is inactive at this moment") | |
239 | 239 | else { | |
240 | 240 | let userENNOLocked = getUserENNOLocked(i.caller) | |
241 | 241 | let availableToWithdraw = (userENNOLocked - getVal((toString(i.caller) + keyUserENNOVoted))) | |
242 | 242 | if ((withdrawAmount > availableToWithdraw)) | |
243 | 243 | then throw("Your Enno is locked") | |
244 | 244 | else if ((0 >= withdrawAmount)) | |
245 | 245 | then throw("withdrawAmount <= 0") | |
246 | 246 | else { | |
247 | 247 | let totalENNOLocked = getTotalENNOLocked() | |
248 | 248 | if ((withdrawAmount > totalENNOLocked)) | |
249 | 249 | then throw("withdrawAmount is more than available to withdraw") | |
250 | 250 | else if ((withdrawAmount > userENNOLocked)) | |
251 | 251 | then throw("You are trying to unstake more than you have staked.") | |
252 | 252 | else { | |
253 | 253 | let totalENNOLockedNew = (totalENNOLocked - withdrawAmount) | |
254 | 254 | let userENNOamountNew = (userENNOLocked - withdrawAmount) | |
255 | 255 | [IntegerEntry((toString(i.caller) + keyUserENNOLocked), userENNOamountNew), IntegerEntry(keyTotalENNOLocked, totalENNOLockedNew), ScriptTransfer(i.caller, withdrawAmount, ENNO)] | |
256 | 256 | } | |
257 | 257 | } | |
258 | 258 | } | |
259 | 259 | ||
260 | 260 | ||
261 | 261 | ||
262 | 262 | @Callable(i) | |
263 | 263 | func claimAndWithdrawENNO () = if (!(isActive)) | |
264 | 264 | then throw("DApp is inactive at this moment") | |
265 | 265 | else { | |
266 | 266 | let userShare = getCallerShare(i.originCaller) | |
267 | 267 | let userClaimedAmount = getClaimedAmount(i.originCaller) | |
268 | 268 | let claimAmount = (userShare - userClaimedAmount) | |
269 | 269 | let totalENNOLocked = getTotalENNOLocked() | |
270 | 270 | if ((claimAmount > totalENNOLocked)) | |
271 | 271 | then throw("claimAmount is more than available to withdraw") | |
272 | 272 | else if ((0 >= claimAmount)) | |
273 | 273 | then throw("Claim amount must be bigger than 0") | |
274 | 274 | else { | |
275 | 275 | let userClaimedAmountNew = (userClaimedAmount + claimAmount) | |
276 | 276 | [IntegerEntry((toString(i.originCaller) + keyUserENNOClaimedAmount), userClaimedAmountNew), IntegerEntry((toString(i.originCaller) + keyUserENNOLastClaimedAmount), claimAmount), ScriptTransfer(i.originCaller, claimAmount, ENNO)] | |
277 | 277 | } | |
278 | 278 | } | |
279 | 279 | ||
280 | 280 | ||
281 | 281 | ||
282 | 282 | @Callable(i) | |
283 | 283 | func claimAndStakeENNO () = if (!(isActive)) | |
284 | 284 | then throw("DApp is inactive at this moment") | |
285 | 285 | else { | |
286 | 286 | let userShare = getCallerShare(i.originCaller) | |
287 | 287 | let userClaimedAmount = getClaimedAmount(i.originCaller) | |
288 | 288 | let claimAmount = (userShare - userClaimedAmount) | |
289 | 289 | if ((0 >= claimAmount)) | |
290 | 290 | then throw("Claim amount must be bigger than 0") | |
291 | 291 | else { | |
292 | 292 | let userClaimedAmountNew = (userClaimedAmount + claimAmount) | |
293 | 293 | let userENNOLocked = getUserENNOLocked(i.originCaller) | |
294 | 294 | let userENNOLockedNew = (userENNOLocked + claimAmount) | |
295 | 295 | let totalENNOLocked = getTotalENNOLocked() | |
296 | 296 | let totalENNOLockedNew = (totalENNOLocked + claimAmount) | |
297 | 297 | [IntegerEntry((toString(i.originCaller) + keyUserENNOLocked), userENNOLockedNew), IntegerEntry((toString(i.originCaller) + keyUserENNOClaimedAmount), userClaimedAmountNew), IntegerEntry((toString(i.originCaller) + keyUserENNOLastClaimedAmount), claimAmount), IntegerEntry(keyTotalENNOLocked, totalENNOLockedNew)] | |
298 | 298 | } | |
299 | 299 | } | |
300 | 300 | ||
301 | 301 | ||
302 | 302 | ||
303 | 303 | @Callable(i) | |
304 | 304 | func shutdown () = if (!(isActive)) | |
305 | 305 | then throw(("DApp is already suspended. Cause: " + valueOrElse(getString(this, keyCause), "the cause wasn't specified"))) | |
306 | 306 | else if (!(containsElement([adminPubKey1, adminPubKey2, adminPubKey3, adminPubKeyStartStop], i.callerPublicKey))) | |
307 | 307 | then throw("Only admin can call this function") | |
308 | 308 | else suspend("Paused by admin") | |
309 | 309 | ||
310 | 310 | ||
311 | 311 | ||
312 | 312 | @Callable(i) | |
313 | 313 | func activate () = if (isActive) | |
314 | 314 | then throw("DApp is already active") | |
315 | 315 | else if (!(containsElement([adminPubKey1, adminPubKey2, adminPubKey3, adminPubKeyStartStop], i.callerPublicKey))) | |
316 | 316 | then throw("Only admin can call this function") | |
317 | 317 | else [BooleanEntry(keyActive, true), DeleteEntry(keyCause)] | |
318 | 318 | ||
319 | 319 | ||
320 | 320 | @Verifier(tx) | |
321 | 321 | func verify () = { | |
322 | 322 | let adminPubKey1Signed = if (sigVerify(tx.bodyBytes, tx.proofs[0], adminPubKey1)) | |
323 | 323 | then 1 | |
324 | 324 | else 0 | |
325 | 325 | let adminPubKey2Signed = if (sigVerify(tx.bodyBytes, tx.proofs[1], adminPubKey2)) | |
326 | 326 | then 1 | |
327 | 327 | else 0 | |
328 | 328 | let adminPubKey3Signed = if (sigVerify(tx.bodyBytes, tx.proofs[2], adminPubKey3)) | |
329 | 329 | then 1 | |
330 | 330 | else 0 | |
331 | 331 | (((adminPubKey1Signed + adminPubKey2Signed) + adminPubKey3Signed) >= 2) | |
332 | 332 | } | |
333 | 333 |
github/deemru/w8io/169f3d6 63.79 ms ◑