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:AAIFAAAAAAAAADAIAhIAEgQKAggIEgYKBAEBCAESAwoBBBIDCgEBEgMKAQESABIDCgEBEgASABIAEgAAAAAiAAAAAAxhZG1pblB1YktleTEBAAAAIHxYa3tSxaWNZxxr9KlqtCKnmcTlLLl7jg3ENEFozVB4AAAAAAxhZG1pblB1YktleTIBAAAAIHxYa3tSxaWNZxxr9KlqtCKnmcTlLLl7jg3ENEFozVB4AAAAAAxhZG1pblB1YktleTMBAAAAIHxYa3tSxaWNZxxr9KlqtCKnmcTlLLl7jg3ENEFozVB4AAAAABRhZG1pblB1YktleVN0YXJ0U3RvcAEAAAAgfFhre1LFpY1nHGv0qWq0IqeZxOUsuXuODcQ0QWjNUHgAAAAACWtleUFjdGl2ZQIAAAAGYWN0aXZlAAAAAAhrZXlDYXVzZQIAAAAOc2h1dGRvd25fY2F1c2UAAAAADGtleVZvdGVTdGFydAIAAAARdm90ZV9zdGFydF9oZWlnaHQAAAAACmtleVZvdGVFb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kAAAAABAAAABJhZG1pblB1YktleTFTaWduZWQDCQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAUAAAAMYWRtaW5QdWJLZXkxAAAAAAAAAAABAAAAAAAAAAAABAAAABJhZG1pblB1YktleTJTaWduZWQDCQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAQUAAAAMYWRtaW5QdWJLZXkyAAAAAAAAAAABAAAAAAAAAAAABAAAABJhZG1pblB1YktleTNTaWduZWQDCQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAgUAAAAMYWRtaW5QdWJLZXkzAAAAAAAAAAABAAAAAAAAAAAACQAAZwAAAAIJAABkAAAAAgkAAGQAAAACBQAAABJhZG1pblB1YktleTFTaWduZWQFAAAAEmFkbWluUHViS2V5MlNpZ25lZAUAAAASYWRtaW5QdWJLZXkzU2lnbmVkAAAAAAAAAAACF8hKJg==", "height": 1784774, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: FP325k4d1xrWeSb9M9ZgGVCFDSpEgbMrqbEUtnMMq7eS Next: 7U9ZVknF9BiAyjemiuacvU5JZ4Qt9DqjNUgsZSHgsU5W Diff:
OldNewDifferences
154154 @Callable(U)
155155 func initVote (ad,ae,V,S) = if (!(w))
156156 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)]
158160
159161
160162
161163 @Callable(U)
162164 func activateAirdropClaim (af) = if (!(w))
163165 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)]
165169
166170
167171
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = base58'9NPkhjF6pssidKGhnMzHn9auzo5q5fPBaabRQBx7CaFq'
55
66 let b = base58'9NPkhjF6pssidKGhnMzHn9auzo5q5fPBaabRQBx7CaFq'
77
88 let c = base58'9NPkhjF6pssidKGhnMzHn9auzo5q5fPBaabRQBx7CaFq'
99
1010 let d = base58'9NPkhjF6pssidKGhnMzHn9auzo5q5fPBaabRQBx7CaFq'
1111
1212 let e = "active"
1313
1414 let f = "shutdown_cause"
1515
1616 let g = "vote_start_height"
1717
1818 let h = "vote_end_height"
1919
2020 let i = "yes_amount"
2121
2222 let j = "_ENNO_vote"
2323
2424 let k = "_ENNO_vote_height"
2525
2626 let l = "_ENNO_vote_value"
2727
2828 let m = "_ENNO_vote_yes_share"
2929
3030 let n = "total_ENNO_vote_yes"
3131
3232 let o = "_ENNO_amount"
3333
3434 let p = "total_ENNO_amount"
3535
3636 let q = "active_airdrop_token"
3737
3838 let r = "active_airdrop_amount"
3939
4040 let s = "active_airdrop_claim_status"
4141
4242 let t = "_ENNO_claimed_amount"
4343
4444 let u = "_ENNO_last_claimed_amount"
4545
4646 let v = "share_"
4747
4848 let w = valueOrElse(getBoolean(this, e), true)
4949
5050 let x = valueOrElse(getBoolean(this, s), false)
5151
5252 let y = base58'9NPkhjF6pssidKGhnMzHn9auzo5q5fPBaabRQBx7CaFq'
5353
5454 let z = base58'6TmLfry3GRQoVSaesGSnp6NtZKveYgEopTLsjaGgXoso'
5555
5656 func A (B) = [BooleanEntry(e, false), StringEntry(f, B)]
5757
5858
5959 func C (D) = valueOrElse(getInteger(this, (toString(D) + o)), 0)
6060
6161
6262 func E () = valueOrElse(getInteger(this, p), 0)
6363
6464
6565 func F (D,G) = valueOrElse(getInteger(this, (toString(D) + G)), 0)
6666
6767
6868 func H (G) = valueOrElse(getInteger(this, G), 0)
6969
7070
7171 func I (J) = {
7272 let K = getInteger(addressFromPublicKey(y), (v + toString(J)))
7373 let L = {
7474 let M = K
7575 if ($isInstanceOf(M, "Int"))
7676 then {
7777 let N = M
7878 N
7979 }
8080 else if ($isInstanceOf(M, "Unit"))
8181 then {
8282 let N = M
8383 throw("Only governance qualifiers can call this function.")
8484 }
8585 else throw("Match error")
8686 }
8787 L
8888 }
8989
9090
9191 func O (J) = {
9292 let P = getInteger(this, (toString(J) + t))
9393 let Q = {
9494 let M = P
9595 if ($isInstanceOf(M, "Int"))
9696 then {
9797 let N = M
9898 N
9999 }
100100 else if ($isInstanceOf(M, "Unit"))
101101 then {
102102 let N = M
103103 0
104104 }
105105 else throw("Match error")
106106 }
107107 Q
108108 }
109109
110110
111111 func R (S) = {
112112 let T = (H(h) - height)
113113 let N = fraction(S, T, 100000000)
114114 N
115115 }
116116
117117
118118 @Callable(U)
119119 func claimAirdrop () = if (!(w))
120120 then throw("DApp is inactive at this moment")
121121 else if (!(x))
122122 then throw("Claim has not started yet.")
123123 else if ((H(g) > height))
124124 then throw("Voting has not started yet.")
125125 else if ((H(h) > height))
126126 then throw("Voting has not ended yet.")
127127 else {
128128 let V = getStringValue(this, q)
129129 let W = H(r)
130130 let X = fromBase58String(V)
131131 let Y = ("_" + V)
132132 let N = H(((toString(U.caller) + Y) + m))
133133 if ((0 >= N))
134134 then throw("You already claimed or you have not participated.")
135135 else {
136136 let Z = H(n)
137137 let aa = fraction(N, W, Z)
138138 [DeleteEntry(((toString(U.caller) + Y) + m)), DeleteEntry((toString(U.caller) + j)), ScriptTransfer(U.caller, aa, X)]
139139 }
140140 }
141141
142142
143143
144144 @Callable(U)
145145 func deleteEntry (ab,ac) = if (!(w))
146146 then throw("DApp is inactive at this moment")
147147 else {
148148 let Y = ("_" + valueOrElse(getString(this, q), "N/A"))
149149 [DeleteEntry(((ab + Y) + m)), DeleteEntry((ab + j)), DeleteEntry(((ac + Y) + m)), DeleteEntry((ac + j))]
150150 }
151151
152152
153153
154154 @Callable(U)
155155 func initVote (ad,ae,V,S) = if (!(w))
156156 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)]
158160
159161
160162
161163 @Callable(U)
162164 func activateAirdropClaim (af) = if (!(w))
163165 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)]
165169
166170
167171
168172 @Callable(U)
169173 func unvote (ag) = if (!(w))
170174 then throw("DApp is inactive at this moment")
171175 else if ((H(g) > height))
172176 then throw("Voting has not started yet.")
173177 else if ((height > H(h)))
174178 then throw("Voting has already ended.")
175179 else {
176180 let Y = ("_" + valueOrElse(getString(this, q), "N/A"))
177181 let ah = H(n)
178182 let ai = F(U.caller, (Y + m))
179183 let aj = F(U.caller, j)
180184 let ak = (aj - ag)
181185 if ((0 > ak))
182186 then throw("Vote amount is less than available.")
183187 else {
184188 let al = R(ag)
185189 let am = (ai - al)
186190 let an = (ah - al)
187191 [IntegerEntry(((toString(U.caller) + Y) + m), am), IntegerEntry((toString(U.caller) + j), ak), IntegerEntry(n, an)]
188192 }
189193 }
190194
191195
192196
193197 @Callable(U)
194198 func vote (ag) = if (!(w))
195199 then throw("DApp is inactive at this moment")
196200 else if ((H(g) > height))
197201 then throw("Voting has not started yet.")
198202 else if ((height > H(h)))
199203 then throw("Voting has already ended.")
200204 else {
201205 let ah = H(n)
202206 let Y = ("_" + valueOrElse(getString(this, q), "N/A"))
203207 let ai = F(U.caller, (Y + m))
204208 let aj = F(U.caller, j)
205209 let ao = F(U.caller, o)
206210 let ak = (aj + ag)
207211 if ((0 > ak))
208212 then throw("Vote amount is more than available.")
209213 else {
210214 let ap = (ao - aj)
211215 let al = R(ag)
212216 if ((ag > ap))
213217 then throw("Vote amount is more than available.")
214218 else {
215219 let am = (ai + al)
216220 let an = (ah + al)
217221 [IntegerEntry(((toString(U.caller) + Y) + m), am), IntegerEntry((toString(U.caller) + j), ak), IntegerEntry(n, an)]
218222 }
219223 }
220224 }
221225
222226
223227
224228 @Callable(U)
225229 func lockENNO () = if (!(w))
226230 then throw("DApp is inactive at this moment")
227231 else {
228232 let aq = $Tuple2(U.payments[0].amount, U.payments[0].assetId)
229233 let ar = aq._1
230234 let as = aq._2
231235 if ((as != z))
232236 then throw("Incorrect payment assetId only Enno Cash is allowed.")
233237 else {
234238 let ao = C(U.caller)
235239 let at = (ao + ar)
236240 let au = E()
237241 let av = (au + ar)
238242 [IntegerEntry((toString(U.caller) + o), at), IntegerEntry(p, av)]
239243 }
240244 }
241245
242246
243247
244248 @Callable(U)
245249 func withdrawENNO (aw) = if (!(w))
246250 then throw("DApp is inactive at this moment")
247251 else {
248252 let ao = C(U.caller)
249253 let ax = (ao - H((toString(U.caller) + j)))
250254 if ((aw > ax))
251255 then throw("Your Enno is locked")
252256 else if ((0 >= aw))
253257 then throw("withdrawAmount <= 0")
254258 else {
255259 let au = E()
256260 if ((aw > au))
257261 then throw("withdrawAmount is more than available to withdraw")
258262 else if ((aw > ao))
259263 then throw("You are trying to unstake more than you have staked.")
260264 else {
261265 let av = (au - aw)
262266 let ay = (ao - aw)
263267 [IntegerEntry((toString(U.caller) + o), ay), IntegerEntry(p, av), ScriptTransfer(U.caller, aw, z)]
264268 }
265269 }
266270 }
267271
268272
269273
270274 @Callable(U)
271275 func claimAndWithdrawENNO () = if (!(w))
272276 then throw("DApp is inactive at this moment")
273277 else {
274278 let az = I(U.originCaller)
275279 let aA = O(U.originCaller)
276280 let aB = (az - aA)
277281 let au = E()
278282 if ((aB > au))
279283 then throw("claimAmount is more than available to withdraw")
280284 else if ((0 >= aB))
281285 then throw("Claim amount must be bigger than 0")
282286 else {
283287 let aC = (aA + aB)
284288 [IntegerEntry((toString(U.originCaller) + t), aC), IntegerEntry((toString(U.originCaller) + u), aB), ScriptTransfer(U.originCaller, aB, z)]
285289 }
286290 }
287291
288292
289293
290294 @Callable(U)
291295 func claimAndStakeENNO () = if (!(w))
292296 then throw("DApp is inactive at this moment")
293297 else {
294298 let az = I(U.originCaller)
295299 let aA = O(U.originCaller)
296300 let aB = (az - aA)
297301 if ((0 >= aB))
298302 then throw("Claim amount must be bigger than 0")
299303 else {
300304 let aC = (aA + aB)
301305 let ao = C(U.originCaller)
302306 let at = (ao + aB)
303307 let au = E()
304308 let av = (au + aB)
305309 [IntegerEntry((toString(U.originCaller) + o), at), IntegerEntry((toString(U.originCaller) + t), aC), IntegerEntry((toString(U.originCaller) + u), aB), IntegerEntry(p, av)]
306310 }
307311 }
308312
309313
310314
311315 @Callable(U)
312316 func shutdown () = if (!(w))
313317 then throw(("DApp is already suspended. Cause: " + valueOrElse(getString(this, f), "the cause wasn't specified")))
314318 else if (!(containsElement([a, b, c, d], U.callerPublicKey)))
315319 then throw("Only admin can call this function")
316320 else A("Paused by admin")
317321
318322
319323
320324 @Callable(U)
321325 func activate () = if (w)
322326 then throw("DApp is already active")
323327 else if (!(containsElement([a, b, c, d], U.callerPublicKey)))
324328 then throw("Only admin can call this function")
325329 else [BooleanEntry(e, true), DeleteEntry(f)]
326330
327331
328332 @Verifier(aD)
329333 func aE () = {
330334 let aF = if (sigVerify(aD.bodyBytes, aD.proofs[0], a))
331335 then 1
332336 else 0
333337 let aG = if (sigVerify(aD.bodyBytes, aD.proofs[1], b))
334338 then 1
335339 else 0
336340 let aH = if (sigVerify(aD.bodyBytes, aD.proofs[2], c))
337341 then 1
338342 else 0
339343 (((aF + aG) + aH) >= 2)
340344 }
341345

github/deemru/w8io/169f3d6 
55.47 ms