tx · 6KBnvHFutWAX1cfgivVoitadsq5gxdny2xpyoTEQT1yZ 3N4LqYvK8toVfW83bVrzvm4VoA55PB21Bmy: -0.14000000 Waves 2021.11.10 12:59 [1784774] smart account 3N4LqYvK8toVfW83bVrzvm4VoA55PB21Bmy > SELF 0.00000000 Waves
{ "type": 13, "id": "6KBnvHFutWAX1cfgivVoitadsq5gxdny2xpyoTEQT1yZ", "fee": 14000000, "feeAssetId": null, "timestamp": 1636538462439, "version": 2, "chainId": 84, "sender": "3N4LqYvK8toVfW83bVrzvm4VoA55PB21Bmy", "senderPublicKey": "9NPkhjF6pssidKGhnMzHn9auzo5q5fPBaabRQBx7CaFq", "proofs": [ "pNRRjzC1D44rdeocwNHeWa6SWgCUDeYifwAVFsB1mXWQXpPXJFA7fH8nQAUeqKMcfvzULCMZ1UvvkKzHqtjA11R", "4AvRNJTg472z6CnVg3fhixi8fnF7aVHQxcqgmvtSPSxXy248NiokWtgv7HrbfcMPibZSMpYdc81rT5EqQNvyuKur" ], "script": "base64:AAIFAAAAAAAAADAIAhIAEgQKAggIEgYKBAEBCAESAwoBBBIDCgEBEgMKAQESABIDCgEBEgASABIAEgAAAAAiAAAAAAxhZG1pblB1YktleTEBAAAAIHxYa3tSxaWNZxxr9KlqtCKnmcTlLLl7jg3ENEFozVB4AAAAAAxhZG1pblB1YktleTIBAAAAIHxYa3tSxaWNZxxr9KlqtCKnmcTlLLl7jg3ENEFozVB4AAAAAAxhZG1pblB1YktleTMBAAAAIHxYa3tSxaWNZxxr9KlqtCKnmcTlLLl7jg3ENEFozVB4AAAAABRhZG1pblB1YktleVN0YXJ0U3RvcAEAAAAgfFhre1LFpY1nHGv0qWq0IqeZxOUsuXuODcQ0QWjNUHgAAAAACWtleUFjdGl2ZQIAAAAGYWN0aXZlAAAAAAhrZXlDYXVzZQIAAAAOc2h1dGRvd25fY2F1c2UAAAAADGtleVZvdGVTdGFydAIAAAARdm90ZV9zdGFydF9oZWlnaHQAAAAACmtleVZvdGVFbm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AAAAABAAAABJhZG1pblB1YktleTFTaWduZWQDCQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAUAAAAMYWRtaW5QdWJLZXkxAAAAAAAAAAABAAAAAAAAAAAABAAAABJhZG1pblB1YktleTJTaWduZWQDCQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAQUAAAAMYWRtaW5QdWJLZXkyAAAAAAAAAAABAAAAAAAAAAAABAAAABJhZG1pblB1YktleTNTaWduZWQDCQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAgUAAAAMYWRtaW5QdWJLZXkzAAAAAAAAAAABAAAAAAAAAAAACQAAZwAAAAIJAABkAAAAAgkAAGQAAAACBQAAABJhZG1pblB1YktleTFTaWduZWQFAAAAEmFkbWluUHViS2V5MlNpZ25lZAUAAAASYWRtaW5QdWJLZXkzU2lnbmVkAAAAAAAAAAACF8hKJg==", "height": 1784774, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: FP325k4d1xrWeSb9M9ZgGVCFDSpEgbMrqbEUtnMMq7eS Next: 7U9ZVknF9BiAyjemiuacvU5JZ4Qt9DqjNUgsZSHgsU5W Diff:
Old | New | Differences | |
---|---|---|---|
154 | 154 | @Callable(U) | |
155 | 155 | func initVote (ad,ae,V,S) = if (!(w)) | |
156 | 156 | then throw("DApp is inactive at this moment") | |
157 | - | else [StringEntry(q, V), IntegerEntry(r, S), IntegerEntry(g, ad), IntegerEntry(h, ae), IntegerEntry(n, 0), BooleanEntry(s, false)] | |
157 | + | else if (!(containsElement([a, b, c, d], U.callerPublicKey))) | |
158 | + | then throw("Only admin can call this function") | |
159 | + | else [StringEntry(q, V), IntegerEntry(r, S), IntegerEntry(g, ad), IntegerEntry(h, ae), IntegerEntry(n, 0), BooleanEntry(s, false)] | |
158 | 160 | ||
159 | 161 | ||
160 | 162 | ||
161 | 163 | @Callable(U) | |
162 | 164 | func activateAirdropClaim (af) = if (!(w)) | |
163 | 165 | then throw("DApp is inactive at this moment") | |
164 | - | else [BooleanEntry(s, af)] | |
166 | + | else if (!(containsElement([a, b, c, d], U.callerPublicKey))) | |
167 | + | then throw("Only admin can call this function") | |
168 | + | else [BooleanEntry(s, af)] | |
165 | 169 | ||
166 | 170 | ||
167 | 171 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = base58'9NPkhjF6pssidKGhnMzHn9auzo5q5fPBaabRQBx7CaFq' | |
5 | 5 | ||
6 | 6 | let b = base58'9NPkhjF6pssidKGhnMzHn9auzo5q5fPBaabRQBx7CaFq' | |
7 | 7 | ||
8 | 8 | let c = base58'9NPkhjF6pssidKGhnMzHn9auzo5q5fPBaabRQBx7CaFq' | |
9 | 9 | ||
10 | 10 | let d = base58'9NPkhjF6pssidKGhnMzHn9auzo5q5fPBaabRQBx7CaFq' | |
11 | 11 | ||
12 | 12 | let e = "active" | |
13 | 13 | ||
14 | 14 | let f = "shutdown_cause" | |
15 | 15 | ||
16 | 16 | let g = "vote_start_height" | |
17 | 17 | ||
18 | 18 | let h = "vote_end_height" | |
19 | 19 | ||
20 | 20 | let i = "yes_amount" | |
21 | 21 | ||
22 | 22 | let j = "_ENNO_vote" | |
23 | 23 | ||
24 | 24 | let k = "_ENNO_vote_height" | |
25 | 25 | ||
26 | 26 | let l = "_ENNO_vote_value" | |
27 | 27 | ||
28 | 28 | let m = "_ENNO_vote_yes_share" | |
29 | 29 | ||
30 | 30 | let n = "total_ENNO_vote_yes" | |
31 | 31 | ||
32 | 32 | let o = "_ENNO_amount" | |
33 | 33 | ||
34 | 34 | let p = "total_ENNO_amount" | |
35 | 35 | ||
36 | 36 | let q = "active_airdrop_token" | |
37 | 37 | ||
38 | 38 | let r = "active_airdrop_amount" | |
39 | 39 | ||
40 | 40 | let s = "active_airdrop_claim_status" | |
41 | 41 | ||
42 | 42 | let t = "_ENNO_claimed_amount" | |
43 | 43 | ||
44 | 44 | let u = "_ENNO_last_claimed_amount" | |
45 | 45 | ||
46 | 46 | let v = "share_" | |
47 | 47 | ||
48 | 48 | let w = valueOrElse(getBoolean(this, e), true) | |
49 | 49 | ||
50 | 50 | let x = valueOrElse(getBoolean(this, s), false) | |
51 | 51 | ||
52 | 52 | let y = base58'9NPkhjF6pssidKGhnMzHn9auzo5q5fPBaabRQBx7CaFq' | |
53 | 53 | ||
54 | 54 | let z = base58'6TmLfry3GRQoVSaesGSnp6NtZKveYgEopTLsjaGgXoso' | |
55 | 55 | ||
56 | 56 | func A (B) = [BooleanEntry(e, false), StringEntry(f, B)] | |
57 | 57 | ||
58 | 58 | ||
59 | 59 | func C (D) = valueOrElse(getInteger(this, (toString(D) + o)), 0) | |
60 | 60 | ||
61 | 61 | ||
62 | 62 | func E () = valueOrElse(getInteger(this, p), 0) | |
63 | 63 | ||
64 | 64 | ||
65 | 65 | func F (D,G) = valueOrElse(getInteger(this, (toString(D) + G)), 0) | |
66 | 66 | ||
67 | 67 | ||
68 | 68 | func H (G) = valueOrElse(getInteger(this, G), 0) | |
69 | 69 | ||
70 | 70 | ||
71 | 71 | func I (J) = { | |
72 | 72 | let K = getInteger(addressFromPublicKey(y), (v + toString(J))) | |
73 | 73 | let L = { | |
74 | 74 | let M = K | |
75 | 75 | if ($isInstanceOf(M, "Int")) | |
76 | 76 | then { | |
77 | 77 | let N = M | |
78 | 78 | N | |
79 | 79 | } | |
80 | 80 | else if ($isInstanceOf(M, "Unit")) | |
81 | 81 | then { | |
82 | 82 | let N = M | |
83 | 83 | throw("Only governance qualifiers can call this function.") | |
84 | 84 | } | |
85 | 85 | else throw("Match error") | |
86 | 86 | } | |
87 | 87 | L | |
88 | 88 | } | |
89 | 89 | ||
90 | 90 | ||
91 | 91 | func O (J) = { | |
92 | 92 | let P = getInteger(this, (toString(J) + t)) | |
93 | 93 | let Q = { | |
94 | 94 | let M = P | |
95 | 95 | if ($isInstanceOf(M, "Int")) | |
96 | 96 | then { | |
97 | 97 | let N = M | |
98 | 98 | N | |
99 | 99 | } | |
100 | 100 | else if ($isInstanceOf(M, "Unit")) | |
101 | 101 | then { | |
102 | 102 | let N = M | |
103 | 103 | 0 | |
104 | 104 | } | |
105 | 105 | else throw("Match error") | |
106 | 106 | } | |
107 | 107 | Q | |
108 | 108 | } | |
109 | 109 | ||
110 | 110 | ||
111 | 111 | func R (S) = { | |
112 | 112 | let T = (H(h) - height) | |
113 | 113 | let N = fraction(S, T, 100000000) | |
114 | 114 | N | |
115 | 115 | } | |
116 | 116 | ||
117 | 117 | ||
118 | 118 | @Callable(U) | |
119 | 119 | func claimAirdrop () = if (!(w)) | |
120 | 120 | then throw("DApp is inactive at this moment") | |
121 | 121 | else if (!(x)) | |
122 | 122 | then throw("Claim has not started yet.") | |
123 | 123 | else if ((H(g) > height)) | |
124 | 124 | then throw("Voting has not started yet.") | |
125 | 125 | else if ((H(h) > height)) | |
126 | 126 | then throw("Voting has not ended yet.") | |
127 | 127 | else { | |
128 | 128 | let V = getStringValue(this, q) | |
129 | 129 | let W = H(r) | |
130 | 130 | let X = fromBase58String(V) | |
131 | 131 | let Y = ("_" + V) | |
132 | 132 | let N = H(((toString(U.caller) + Y) + m)) | |
133 | 133 | if ((0 >= N)) | |
134 | 134 | then throw("You already claimed or you have not participated.") | |
135 | 135 | else { | |
136 | 136 | let Z = H(n) | |
137 | 137 | let aa = fraction(N, W, Z) | |
138 | 138 | [DeleteEntry(((toString(U.caller) + Y) + m)), DeleteEntry((toString(U.caller) + j)), ScriptTransfer(U.caller, aa, X)] | |
139 | 139 | } | |
140 | 140 | } | |
141 | 141 | ||
142 | 142 | ||
143 | 143 | ||
144 | 144 | @Callable(U) | |
145 | 145 | func deleteEntry (ab,ac) = if (!(w)) | |
146 | 146 | then throw("DApp is inactive at this moment") | |
147 | 147 | else { | |
148 | 148 | let Y = ("_" + valueOrElse(getString(this, q), "N/A")) | |
149 | 149 | [DeleteEntry(((ab + Y) + m)), DeleteEntry((ab + j)), DeleteEntry(((ac + Y) + m)), DeleteEntry((ac + j))] | |
150 | 150 | } | |
151 | 151 | ||
152 | 152 | ||
153 | 153 | ||
154 | 154 | @Callable(U) | |
155 | 155 | func initVote (ad,ae,V,S) = if (!(w)) | |
156 | 156 | then throw("DApp is inactive at this moment") | |
157 | - | else [StringEntry(q, V), IntegerEntry(r, S), IntegerEntry(g, ad), IntegerEntry(h, ae), IntegerEntry(n, 0), BooleanEntry(s, false)] | |
157 | + | else if (!(containsElement([a, b, c, d], U.callerPublicKey))) | |
158 | + | then throw("Only admin can call this function") | |
159 | + | else [StringEntry(q, V), IntegerEntry(r, S), IntegerEntry(g, ad), IntegerEntry(h, ae), IntegerEntry(n, 0), BooleanEntry(s, false)] | |
158 | 160 | ||
159 | 161 | ||
160 | 162 | ||
161 | 163 | @Callable(U) | |
162 | 164 | func activateAirdropClaim (af) = if (!(w)) | |
163 | 165 | then throw("DApp is inactive at this moment") | |
164 | - | else [BooleanEntry(s, af)] | |
166 | + | else if (!(containsElement([a, b, c, d], U.callerPublicKey))) | |
167 | + | then throw("Only admin can call this function") | |
168 | + | else [BooleanEntry(s, af)] | |
165 | 169 | ||
166 | 170 | ||
167 | 171 | ||
168 | 172 | @Callable(U) | |
169 | 173 | func unvote (ag) = if (!(w)) | |
170 | 174 | then throw("DApp is inactive at this moment") | |
171 | 175 | else if ((H(g) > height)) | |
172 | 176 | then throw("Voting has not started yet.") | |
173 | 177 | else if ((height > H(h))) | |
174 | 178 | then throw("Voting has already ended.") | |
175 | 179 | else { | |
176 | 180 | let Y = ("_" + valueOrElse(getString(this, q), "N/A")) | |
177 | 181 | let ah = H(n) | |
178 | 182 | let ai = F(U.caller, (Y + m)) | |
179 | 183 | let aj = F(U.caller, j) | |
180 | 184 | let ak = (aj - ag) | |
181 | 185 | if ((0 > ak)) | |
182 | 186 | then throw("Vote amount is less than available.") | |
183 | 187 | else { | |
184 | 188 | let al = R(ag) | |
185 | 189 | let am = (ai - al) | |
186 | 190 | let an = (ah - al) | |
187 | 191 | [IntegerEntry(((toString(U.caller) + Y) + m), am), IntegerEntry((toString(U.caller) + j), ak), IntegerEntry(n, an)] | |
188 | 192 | } | |
189 | 193 | } | |
190 | 194 | ||
191 | 195 | ||
192 | 196 | ||
193 | 197 | @Callable(U) | |
194 | 198 | func vote (ag) = if (!(w)) | |
195 | 199 | then throw("DApp is inactive at this moment") | |
196 | 200 | else if ((H(g) > height)) | |
197 | 201 | then throw("Voting has not started yet.") | |
198 | 202 | else if ((height > H(h))) | |
199 | 203 | then throw("Voting has already ended.") | |
200 | 204 | else { | |
201 | 205 | let ah = H(n) | |
202 | 206 | let Y = ("_" + valueOrElse(getString(this, q), "N/A")) | |
203 | 207 | let ai = F(U.caller, (Y + m)) | |
204 | 208 | let aj = F(U.caller, j) | |
205 | 209 | let ao = F(U.caller, o) | |
206 | 210 | let ak = (aj + ag) | |
207 | 211 | if ((0 > ak)) | |
208 | 212 | then throw("Vote amount is more than available.") | |
209 | 213 | else { | |
210 | 214 | let ap = (ao - aj) | |
211 | 215 | let al = R(ag) | |
212 | 216 | if ((ag > ap)) | |
213 | 217 | then throw("Vote amount is more than available.") | |
214 | 218 | else { | |
215 | 219 | let am = (ai + al) | |
216 | 220 | let an = (ah + al) | |
217 | 221 | [IntegerEntry(((toString(U.caller) + Y) + m), am), IntegerEntry((toString(U.caller) + j), ak), IntegerEntry(n, an)] | |
218 | 222 | } | |
219 | 223 | } | |
220 | 224 | } | |
221 | 225 | ||
222 | 226 | ||
223 | 227 | ||
224 | 228 | @Callable(U) | |
225 | 229 | func lockENNO () = if (!(w)) | |
226 | 230 | then throw("DApp is inactive at this moment") | |
227 | 231 | else { | |
228 | 232 | let aq = $Tuple2(U.payments[0].amount, U.payments[0].assetId) | |
229 | 233 | let ar = aq._1 | |
230 | 234 | let as = aq._2 | |
231 | 235 | if ((as != z)) | |
232 | 236 | then throw("Incorrect payment assetId only Enno Cash is allowed.") | |
233 | 237 | else { | |
234 | 238 | let ao = C(U.caller) | |
235 | 239 | let at = (ao + ar) | |
236 | 240 | let au = E() | |
237 | 241 | let av = (au + ar) | |
238 | 242 | [IntegerEntry((toString(U.caller) + o), at), IntegerEntry(p, av)] | |
239 | 243 | } | |
240 | 244 | } | |
241 | 245 | ||
242 | 246 | ||
243 | 247 | ||
244 | 248 | @Callable(U) | |
245 | 249 | func withdrawENNO (aw) = if (!(w)) | |
246 | 250 | then throw("DApp is inactive at this moment") | |
247 | 251 | else { | |
248 | 252 | let ao = C(U.caller) | |
249 | 253 | let ax = (ao - H((toString(U.caller) + j))) | |
250 | 254 | if ((aw > ax)) | |
251 | 255 | then throw("Your Enno is locked") | |
252 | 256 | else if ((0 >= aw)) | |
253 | 257 | then throw("withdrawAmount <= 0") | |
254 | 258 | else { | |
255 | 259 | let au = E() | |
256 | 260 | if ((aw > au)) | |
257 | 261 | then throw("withdrawAmount is more than available to withdraw") | |
258 | 262 | else if ((aw > ao)) | |
259 | 263 | then throw("You are trying to unstake more than you have staked.") | |
260 | 264 | else { | |
261 | 265 | let av = (au - aw) | |
262 | 266 | let ay = (ao - aw) | |
263 | 267 | [IntegerEntry((toString(U.caller) + o), ay), IntegerEntry(p, av), ScriptTransfer(U.caller, aw, z)] | |
264 | 268 | } | |
265 | 269 | } | |
266 | 270 | } | |
267 | 271 | ||
268 | 272 | ||
269 | 273 | ||
270 | 274 | @Callable(U) | |
271 | 275 | func claimAndWithdrawENNO () = if (!(w)) | |
272 | 276 | then throw("DApp is inactive at this moment") | |
273 | 277 | else { | |
274 | 278 | let az = I(U.originCaller) | |
275 | 279 | let aA = O(U.originCaller) | |
276 | 280 | let aB = (az - aA) | |
277 | 281 | let au = E() | |
278 | 282 | if ((aB > au)) | |
279 | 283 | then throw("claimAmount is more than available to withdraw") | |
280 | 284 | else if ((0 >= aB)) | |
281 | 285 | then throw("Claim amount must be bigger than 0") | |
282 | 286 | else { | |
283 | 287 | let aC = (aA + aB) | |
284 | 288 | [IntegerEntry((toString(U.originCaller) + t), aC), IntegerEntry((toString(U.originCaller) + u), aB), ScriptTransfer(U.originCaller, aB, z)] | |
285 | 289 | } | |
286 | 290 | } | |
287 | 291 | ||
288 | 292 | ||
289 | 293 | ||
290 | 294 | @Callable(U) | |
291 | 295 | func claimAndStakeENNO () = if (!(w)) | |
292 | 296 | then throw("DApp is inactive at this moment") | |
293 | 297 | else { | |
294 | 298 | let az = I(U.originCaller) | |
295 | 299 | let aA = O(U.originCaller) | |
296 | 300 | let aB = (az - aA) | |
297 | 301 | if ((0 >= aB)) | |
298 | 302 | then throw("Claim amount must be bigger than 0") | |
299 | 303 | else { | |
300 | 304 | let aC = (aA + aB) | |
301 | 305 | let ao = C(U.originCaller) | |
302 | 306 | let at = (ao + aB) | |
303 | 307 | let au = E() | |
304 | 308 | let av = (au + aB) | |
305 | 309 | [IntegerEntry((toString(U.originCaller) + o), at), IntegerEntry((toString(U.originCaller) + t), aC), IntegerEntry((toString(U.originCaller) + u), aB), IntegerEntry(p, av)] | |
306 | 310 | } | |
307 | 311 | } | |
308 | 312 | ||
309 | 313 | ||
310 | 314 | ||
311 | 315 | @Callable(U) | |
312 | 316 | func shutdown () = if (!(w)) | |
313 | 317 | then throw(("DApp is already suspended. Cause: " + valueOrElse(getString(this, f), "the cause wasn't specified"))) | |
314 | 318 | else if (!(containsElement([a, b, c, d], U.callerPublicKey))) | |
315 | 319 | then throw("Only admin can call this function") | |
316 | 320 | else A("Paused by admin") | |
317 | 321 | ||
318 | 322 | ||
319 | 323 | ||
320 | 324 | @Callable(U) | |
321 | 325 | func activate () = if (w) | |
322 | 326 | then throw("DApp is already active") | |
323 | 327 | else if (!(containsElement([a, b, c, d], U.callerPublicKey))) | |
324 | 328 | then throw("Only admin can call this function") | |
325 | 329 | else [BooleanEntry(e, true), DeleteEntry(f)] | |
326 | 330 | ||
327 | 331 | ||
328 | 332 | @Verifier(aD) | |
329 | 333 | func aE () = { | |
330 | 334 | let aF = if (sigVerify(aD.bodyBytes, aD.proofs[0], a)) | |
331 | 335 | then 1 | |
332 | 336 | else 0 | |
333 | 337 | let aG = if (sigVerify(aD.bodyBytes, aD.proofs[1], b)) | |
334 | 338 | then 1 | |
335 | 339 | else 0 | |
336 | 340 | let aH = if (sigVerify(aD.bodyBytes, aD.proofs[2], c)) | |
337 | 341 | then 1 | |
338 | 342 | else 0 | |
339 | 343 | (((aF + aG) + aH) >= 2) | |
340 | 344 | } | |
341 | 345 |
github/deemru/w8io/169f3d6 55.47 ms ◑