tx · AfMYsPDgnRkUeUJ4U2uAYfATXixsHYUbwxwHRt6YtgqP

3N4LqYvK8toVfW83bVrzvm4VoA55PB21Bmy:  -0.14000000 Waves

2021.11.10 10:18 [1784607] smart account 3N4LqYvK8toVfW83bVrzvm4VoA55PB21Bmy > SELF 0.00000000 Waves

{ "type": 13, "id": "AfMYsPDgnRkUeUJ4U2uAYfATXixsHYUbwxwHRt6YtgqP", "fee": 14000000, "feeAssetId": null, "timestamp": 1636528740224, "version": 2, "chainId": 84, "sender": "3N4LqYvK8toVfW83bVrzvm4VoA55PB21Bmy", "senderPublicKey": "9NPkhjF6pssidKGhnMzHn9auzo5q5fPBaabRQBx7CaFq", "proofs": [ "4ucq1vkXjBiV5cwwCWYVDqntqYsAWMhoMH4xnpo12zBBG4UpLBNFzoE33ikNARyAz6UyGzExXvmTtPiVKJJJ9hKh", "VWgXuKYr3GnsfmN6v8gavSJmjPdv7dHZKDooDmM58vNiCqiebfKtkStZqXA2C16q7DeDbUgDHKQfDFaRZWXXLxv" ], "script": "base64:AAIFAAAAAAAAACoIAhIAEgQKAggIEgUKAwEBCBIDCgEBEgMKAQESABIDCgEBEgASABIAEgAAAAAfAAAAAAxhZG1pblB1YktleTEBAAAAIHxYa3tSxaWNZxxr9KlqtCKnmcTlLLl7jg3ENEFozVB4AAAAAAxhZG1pblB1YktleTIBAAAAIHxYa3tSxaWNZxxr9KlqtCKnmcTlLLl7jg3ENEFozVB4AAAAAAxhZG1pblB1YktleTMBAAAAIHxYa3tSxaWNZxxr9KlqtCKnmcTlLLl7jg3ENEFozVB4AAAAABRhZG1pblB1YktleVN0YXJ0U3RvcAEAAAAgfFhre1LFpY1nHGv0qWq0IqeZxOUsuXuODcQ0QWjNUHgAAAAACWtleUFjdGl2ZQIAAAAGYWN0aXZlAAAAAAhrZXlDYXVzZQIAAAAOc2h1dGRvd25fY2F1c2UAAAAADGtleVZvdGVTdGFydAIAAAARdm90ZV9zdGFydF9oZWlnaHQAAAAACmtleVZvdGVF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WJLZXkzU2lnbmVkAwkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAIFAAAADGFkbWluUHViS2V5MwAAAAAAAAAAAQAAAAAAAAAAAAkAAGcAAAACCQAAZAAAAAIJAABkAAAAAgUAAAASYWRtaW5QdWJLZXkxU2lnbmVkBQAAABJhZG1pblB1YktleTJTaWduZWQFAAAAEmFkbWluUHViS2V5M1NpZ25lZAAAAAAAAAAAAvuFGXU=", "height": 1784607, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 63xFiLHjZujppAcyCaREnPX97ADZco2DRjK76k54d3jn Next: 85fSibY9c192EGPZ46QxwvaWkiyFhRXRHMP3LaVYe8fP Diff:
OldNewDifferences
113113 func claimAirdrop () = if (!(u))
114114 then throw("DApp is inactive at this moment")
115115 else {
116- let S = valueOrElse(getString(this, q), "N/A")
117- let T = toBytes(S)
116+ let S = getStringValue(this, q)
117+ let T = fromBase58String(S)
118118 let U = ("_" + S)
119119 let K = E(((toString(R.caller) + U) + m))
120120 if ((0 >= K))
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 = "_ENNO_claimed_amount"
3939
4040 let s = "_ENNO_last_claimed_amount"
4141
4242 let t = "share_"
4343
4444 let u = valueOrElse(getBoolean(this, e), true)
4545
4646 let v = base58'9NPkhjF6pssidKGhnMzHn9auzo5q5fPBaabRQBx7CaFq'
4747
4848 let w = base58'6TmLfry3GRQoVSaesGSnp6NtZKveYgEopTLsjaGgXoso'
4949
5050 func x (y) = [BooleanEntry(e, false), StringEntry(f, y)]
5151
5252
5353 func z (A) = valueOrElse(getInteger(this, (toString(A) + o)), 0)
5454
5555
5656 func B () = valueOrElse(getInteger(this, p), 0)
5757
5858
5959 func C (A,D) = valueOrElse(getInteger(this, (toString(A) + D)), 0)
6060
6161
6262 func E (D) = valueOrElse(getInteger(this, D), 0)
6363
6464
6565 func F (G) = {
6666 let H = getInteger(addressFromPublicKey(v), (t + toString(G)))
6767 let I = {
6868 let J = H
6969 if ($isInstanceOf(J, "Int"))
7070 then {
7171 let K = J
7272 K
7373 }
7474 else if ($isInstanceOf(J, "Unit"))
7575 then {
7676 let K = J
7777 throw("Only governance qualifiers can call this function.")
7878 }
7979 else throw("Match error")
8080 }
8181 I
8282 }
8383
8484
8585 func L (G) = {
8686 let M = getInteger(this, (toString(G) + r))
8787 let N = {
8888 let J = M
8989 if ($isInstanceOf(J, "Int"))
9090 then {
9191 let K = J
9292 K
9393 }
9494 else if ($isInstanceOf(J, "Unit"))
9595 then {
9696 let K = J
9797 0
9898 }
9999 else throw("Match error")
100100 }
101101 N
102102 }
103103
104104
105105 func O (P) = {
106106 let Q = (E(h) - height)
107107 let K = fraction(P, Q, 100000000)
108108 K
109109 }
110110
111111
112112 @Callable(R)
113113 func claimAirdrop () = if (!(u))
114114 then throw("DApp is inactive at this moment")
115115 else {
116- let S = valueOrElse(getString(this, q), "N/A")
117- let T = toBytes(S)
116+ let S = getStringValue(this, q)
117+ let T = fromBase58String(S)
118118 let U = ("_" + S)
119119 let K = E(((toString(R.caller) + U) + m))
120120 if ((0 >= K))
121121 then throw("You already claimed or you have not participated.")
122122 else {
123123 let V = E(n)
124124 let W = fraction(K, 100000000, V)
125125 [DeleteEntry(((toString(R.caller) + U) + m)), DeleteEntry((toString(R.caller) + j)), ScriptTransfer(R.caller, W, T)]
126126 }
127127 }
128128
129129
130130
131131 @Callable(R)
132132 func deleteEntry (X,Y) = if (!(u))
133133 then throw("DApp is inactive at this moment")
134134 else {
135135 let U = ("_" + valueOrElse(getString(this, q), "N/A"))
136136 [DeleteEntry((X + "_airdrop")), DeleteEntry(((X + U) + m)), DeleteEntry((X + j)), DeleteEntry((Y + "_airdrop")), DeleteEntry(((Y + U) + m)), DeleteEntry((Y + j))]
137137 }
138138
139139
140140
141141 @Callable(R)
142142 func initVote (Z,aa,S) = if (!(u))
143143 then throw("DApp is inactive at this moment")
144144 else [StringEntry(q, S), IntegerEntry(g, Z), IntegerEntry(h, aa), IntegerEntry(n, 0)]
145145
146146
147147
148148 @Callable(R)
149149 func unvote (ab) = if (!(u))
150150 then throw("DApp is inactive at this moment")
151151 else if ((E(g) > height))
152152 then throw("Voting has not started yet.")
153153 else if ((height > E(h)))
154154 then throw("Voting has already ended.")
155155 else {
156156 let U = ("_" + valueOrElse(getString(this, q), "N/A"))
157157 let ac = E(n)
158158 let ad = C(R.caller, (U + m))
159159 let ae = C(R.caller, j)
160160 let af = (ae - ab)
161161 if ((0 > af))
162162 then throw("Vote amount is less than available.")
163163 else {
164164 let ag = O(ab)
165165 let ah = (ad - ag)
166166 let ai = (ac - ag)
167167 [IntegerEntry(((toString(R.caller) + U) + m), ah), IntegerEntry((toString(R.caller) + j), af), IntegerEntry(n, ai)]
168168 }
169169 }
170170
171171
172172
173173 @Callable(R)
174174 func vote (ab) = if (!(u))
175175 then throw("DApp is inactive at this moment")
176176 else if ((E(g) > height))
177177 then throw("Voting has not started yet.")
178178 else if ((height > E(h)))
179179 then throw("Voting has already ended.")
180180 else {
181181 let ac = E(n)
182182 let U = ("_" + valueOrElse(getString(this, q), "N/A"))
183183 let ad = C(R.caller, (U + m))
184184 let ae = C(R.caller, j)
185185 let aj = C(R.caller, o)
186186 let af = (ae + ab)
187187 if ((0 > af))
188188 then throw("Vote amount is more than available.")
189189 else {
190190 let ak = (aj - ae)
191191 let ag = O(ab)
192192 if ((ab > ak))
193193 then throw("Vote amount is more than available.")
194194 else {
195195 let ah = (ad + ag)
196196 let ai = (ac + ag)
197197 [IntegerEntry(((toString(R.caller) + U) + m), ah), IntegerEntry((toString(R.caller) + j), af), IntegerEntry(n, ai)]
198198 }
199199 }
200200 }
201201
202202
203203
204204 @Callable(R)
205205 func lockENNO () = if (!(u))
206206 then throw("DApp is inactive at this moment")
207207 else {
208208 let al = $Tuple2(R.payments[0].amount, R.payments[0].assetId)
209209 let am = al._1
210210 let an = al._2
211211 if ((an != w))
212212 then throw("Incorrect payment assetId only Enno Cash is allowed.")
213213 else {
214214 let aj = z(R.caller)
215215 let ao = (aj + am)
216216 let ap = B()
217217 let aq = (ap + am)
218218 [IntegerEntry((toString(R.caller) + o), ao), IntegerEntry(p, aq)]
219219 }
220220 }
221221
222222
223223
224224 @Callable(R)
225225 func withdrawENNO (ar) = if (!(u))
226226 then throw("DApp is inactive at this moment")
227227 else {
228228 let aj = z(R.caller)
229229 let as = (aj - E((toString(R.caller) + j)))
230230 if ((ar > as))
231231 then throw("Your Enno is locked")
232232 else if ((0 >= ar))
233233 then throw("withdrawAmount <= 0")
234234 else {
235235 let ap = B()
236236 if ((ar > ap))
237237 then throw("withdrawAmount is more than available to withdraw")
238238 else if ((ar > aj))
239239 then throw("You are trying to unstake more than you have staked.")
240240 else {
241241 let aq = (ap - ar)
242242 let at = (aj - ar)
243243 [IntegerEntry((toString(R.caller) + o), at), IntegerEntry(p, aq), ScriptTransfer(R.caller, ar, w)]
244244 }
245245 }
246246 }
247247
248248
249249
250250 @Callable(R)
251251 func claimAndWithdrawENNO () = if (!(u))
252252 then throw("DApp is inactive at this moment")
253253 else {
254254 let au = F(R.originCaller)
255255 let av = L(R.originCaller)
256256 let aw = (au - av)
257257 let ap = B()
258258 if ((aw > ap))
259259 then throw("claimAmount is more than available to withdraw")
260260 else if ((0 >= aw))
261261 then throw("Claim amount must be bigger than 0")
262262 else {
263263 let ax = (av + aw)
264264 [IntegerEntry((toString(R.originCaller) + r), ax), IntegerEntry((toString(R.originCaller) + s), aw), ScriptTransfer(R.originCaller, aw, w)]
265265 }
266266 }
267267
268268
269269
270270 @Callable(R)
271271 func claimAndStakeENNO () = if (!(u))
272272 then throw("DApp is inactive at this moment")
273273 else {
274274 let au = F(R.originCaller)
275275 let av = L(R.originCaller)
276276 let aw = (au - av)
277277 if ((0 >= aw))
278278 then throw("Claim amount must be bigger than 0")
279279 else {
280280 let ax = (av + aw)
281281 let aj = z(R.originCaller)
282282 let ao = (aj + aw)
283283 let ap = B()
284284 let aq = (ap + aw)
285285 [IntegerEntry((toString(R.originCaller) + o), ao), IntegerEntry((toString(R.originCaller) + r), ax), IntegerEntry((toString(R.originCaller) + s), aw), IntegerEntry(p, aq)]
286286 }
287287 }
288288
289289
290290
291291 @Callable(R)
292292 func shutdown () = if (!(u))
293293 then throw(("DApp is already suspended. Cause: " + valueOrElse(getString(this, f), "the cause wasn't specified")))
294294 else if (!(containsElement([a, b, c, d], R.callerPublicKey)))
295295 then throw("Only admin can call this function")
296296 else x("Paused by admin")
297297
298298
299299
300300 @Callable(R)
301301 func activate () = if (u)
302302 then throw("DApp is already active")
303303 else if (!(containsElement([a, b, c, d], R.callerPublicKey)))
304304 then throw("Only admin can call this function")
305305 else [BooleanEntry(e, true), DeleteEntry(f)]
306306
307307
308308 @Verifier(ay)
309309 func az () = {
310310 let aA = if (sigVerify(ay.bodyBytes, ay.proofs[0], a))
311311 then 1
312312 else 0
313313 let aB = if (sigVerify(ay.bodyBytes, ay.proofs[1], b))
314314 then 1
315315 else 0
316316 let aC = if (sigVerify(ay.bodyBytes, ay.proofs[2], c))
317317 then 1
318318 else 0
319319 (((aA + aB) + aC) >= 2)
320320 }
321321

github/deemru/w8io/026f985 
41.68 ms