tx · 63xFiLHjZujppAcyCaREnPX97ADZco2DRjK76k54d3jn

3N4LqYvK8toVfW83bVrzvm4VoA55PB21Bmy:  -0.14000000 Waves

2021.11.10 10:15 [1784604] smart account 3N4LqYvK8toVfW83bVrzvm4VoA55PB21Bmy > SELF 0.00000000 Waves

{ "type": 13, "id": "63xFiLHjZujppAcyCaREnPX97ADZco2DRjK76k54d3jn", "fee": 14000000, "feeAssetId": null, "timestamp": 1636528519473, "version": 2, "chainId": 84, "sender": "3N4LqYvK8toVfW83bVrzvm4VoA55PB21Bmy", "senderPublicKey": "9NPkhjF6pssidKGhnMzHn9auzo5q5fPBaabRQBx7CaFq", "proofs": [ "4h7NkL1yBLTb3jVCJKhhcDw1ZcUSQcYg6Yq7kRti74JRBdNFSD5bZtPNzRTp5DCFd9qojLp6SVFhSq3YvdVTX1jo", "353hbNrdJuS26hWFnNCbs8ip9sroBCFV2pVE9oKgx9uZ4xdyrAGiMY6viXnsC1mZSfNLZ4S48o49ihLZuNLQ5LYd" ], "script": "base64:AAIFAAAAAAAAACoIAhIAEgQKAggIEgUKAwEBCBIDCgEBEgMKAQESABIDCgEBEgASABIAEgAAAAAfAAAAAAxhZG1pblB1YktleTEBAAAAIHxYa3tSxaWNZxxr9KlqtCKnmcTlLLl7jg3ENEFozVB4AAAAAAxhZG1pblB1YktleTIBAAAAIHxYa3tSxaWNZxxr9KlqtCKnmcTlLLl7jg3ENEFozVB4AAAAAAxhZG1pblB1YktleTMBAAAAIHxYa3tSxaWNZxxr9KlqtCKnmcTlLLl7jg3ENEFozVB4AAAAABRhZG1pblB1YktleVN0YXJ0U3RvcAEAAAAgfFhre1LFpY1nHGv0qWq0IqeZxOUsuXuODcQ0QWjNUHgAAAAACWtleUFjdGl2ZQIAAAAGYWN0aXZlAAAAAAhrZXlDYXVzZQIAAAAOc2h1dGRvd25fY2F1c2UAAAAADGtleVZvdGVTdGFydAIAAAARdm90ZV9zdGFydF9oZWlnaHQAAAAACmtleVZvdGVFbmQCAAA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WJLZXkzU2lnbmVkAwkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAIFAAAADGFkbWluUHViS2V5MwAAAAAAAAAAAQAAAAAAAAAAAAkAAGcAAAACCQAAZAAAAAIJAABkAAAAAgUAAAASYWRtaW5QdWJLZXkxU2lnbmVkBQAAABJhZG1pblB1YktleTJTaWduZWQFAAAAEmFkbWluUHViS2V5M1NpZ25lZAAAAAAAAAAAAraMgYM=", "height": 1784604, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 87Xj71DRcRH8hXgAu8JPc3dyKK4ju5SkWwehcv947tNt Next: AfMYsPDgnRkUeUJ4U2uAYfATXixsHYUbwxwHRt6YtgqP Diff:
OldNewDifferences
113113 func claimAirdrop () = if (!(u))
114114 then throw("DApp is inactive at this moment")
115115 else {
116- let K = E((toString(R.caller) + m))
116+ let S = valueOrElse(getString(this, q), "N/A")
117+ let T = toBytes(S)
118+ let U = ("_" + S)
119+ let K = E(((toString(R.caller) + U) + m))
117120 if ((0 >= K))
118121 then throw("You already claimed or you have not participated.")
119122 else {
120- let S = E(n)
121- let T = fraction(K, 100000000, S)
122-[IntegerEntry((toString(R.caller) + "_airdrop"), T), DeleteEntry((toString(R.caller) + m)), DeleteEntry((toString(R.caller) + j))]
123+ let V = E(n)
124+ let W = fraction(K, 100000000, V)
125+[DeleteEntry(((toString(R.caller) + U) + m)), DeleteEntry((toString(R.caller) + j)), ScriptTransfer(R.caller, W, T)]
123126 }
124127 }
125128
126129
127130
128131 @Callable(R)
129-func deleteEntry (U,V) = if (!(u))
132+func deleteEntry (X,Y) = if (!(u))
130133 then throw("DApp is inactive at this moment")
131134 else {
132- let W = ("_" + valueOrElse(getString(this, q), "N/A"))
133-[DeleteEntry((U + "_airdrop")), DeleteEntry(((U + W) + m)), DeleteEntry((U + j)), DeleteEntry((V + "_airdrop")), DeleteEntry(((V + W) + m)), DeleteEntry((V + j))]
135+ let U = ("_" + valueOrElse(getString(this, q), "N/A"))
136+[DeleteEntry((X + "_airdrop")), DeleteEntry(((X + U) + m)), DeleteEntry((X + j)), DeleteEntry((Y + "_airdrop")), DeleteEntry(((Y + U) + m)), DeleteEntry((Y + j))]
134137 }
135138
136139
137140
138141 @Callable(R)
139-func initVote (X,Y,Z) = if (!(u))
142+func initVote (Z,aa,S) = if (!(u))
140143 then throw("DApp is inactive at this moment")
141- else [StringEntry(q, Z), IntegerEntry(g, X), IntegerEntry(h, Y), IntegerEntry(n, 0)]
144+ else [StringEntry(q, S), IntegerEntry(g, Z), IntegerEntry(h, aa), IntegerEntry(n, 0)]
142145
143146
144147
145148 @Callable(R)
146-func unvote (aa) = if (!(u))
149+func unvote (ab) = if (!(u))
147150 then throw("DApp is inactive at this moment")
148151 else if ((E(g) > height))
149152 then throw("Voting has not started yet.")
150153 else if ((height > E(h)))
151154 then throw("Voting has already ended.")
152155 else {
153- let W = ("_" + valueOrElse(getString(this, q), "N/A"))
154- let ab = E(n)
155- let ac = C(R.caller, (W + m))
156- let ad = C(R.caller, j)
157- let ae = (ad - aa)
158- if ((0 > ae))
156+ let U = ("_" + valueOrElse(getString(this, q), "N/A"))
157+ let ac = E(n)
158+ let ad = C(R.caller, (U + m))
159+ let ae = C(R.caller, j)
160+ let af = (ae - ab)
161+ if ((0 > af))
159162 then throw("Vote amount is less than available.")
160163 else {
161- let af = O(aa)
162- let ag = (ac - af)
163- let ah = (ab - af)
164-[IntegerEntry(((toString(R.caller) + W) + m), ag), IntegerEntry((toString(R.caller) + j), ae), IntegerEntry(n, ah)]
164+ let ag = O(ab)
165+ let ah = (ad - ag)
166+ let ai = (ac - ag)
167+[IntegerEntry(((toString(R.caller) + U) + m), ah), IntegerEntry((toString(R.caller) + j), af), IntegerEntry(n, ai)]
165168 }
166169 }
167170
168171
169172
170173 @Callable(R)
171-func vote (aa) = if (!(u))
174+func vote (ab) = if (!(u))
172175 then throw("DApp is inactive at this moment")
173176 else if ((E(g) > height))
174177 then throw("Voting has not started yet.")
175178 else if ((height > E(h)))
176179 then throw("Voting has already ended.")
177180 else {
178- let ab = E(n)
179- let W = ("_" + valueOrElse(getString(this, q), "N/A"))
180- let ac = C(R.caller, (W + m))
181- let ad = C(R.caller, j)
182- let ai = C(R.caller, o)
183- let ae = (ad + aa)
184- if ((0 > ae))
181+ let ac = E(n)
182+ let U = ("_" + valueOrElse(getString(this, q), "N/A"))
183+ let ad = C(R.caller, (U + m))
184+ let ae = C(R.caller, j)
185+ let aj = C(R.caller, o)
186+ let af = (ae + ab)
187+ if ((0 > af))
185188 then throw("Vote amount is more than available.")
186189 else {
187- let aj = (ai - ad)
188- let af = O(aa)
189- if ((aa > aj))
190+ let ak = (aj - ae)
191+ let ag = O(ab)
192+ if ((ab > ak))
190193 then throw("Vote amount is more than available.")
191194 else {
192- let ag = (ac + af)
193- let ah = (ab + af)
194-[IntegerEntry(((toString(R.caller) + W) + m), ag), IntegerEntry((toString(R.caller) + j), ae), IntegerEntry(n, ah)]
195+ let ah = (ad + ag)
196+ let ai = (ac + ag)
197+[IntegerEntry(((toString(R.caller) + U) + m), ah), IntegerEntry((toString(R.caller) + j), af), IntegerEntry(n, ai)]
195198 }
196199 }
197200 }
202205 func lockENNO () = if (!(u))
203206 then throw("DApp is inactive at this moment")
204207 else {
205- let ak = $Tuple2(R.payments[0].amount, R.payments[0].assetId)
206- let al = ak._1
207- let am = ak._2
208- if ((am != w))
208+ let al = $Tuple2(R.payments[0].amount, R.payments[0].assetId)
209+ let am = al._1
210+ let an = al._2
211+ if ((an != w))
209212 then throw("Incorrect payment assetId only Enno Cash is allowed.")
210213 else {
211- let ai = z(R.caller)
212- let an = (ai + al)
213- let ao = B()
214- let ap = (ao + al)
215-[IntegerEntry((toString(R.caller) + o), an), IntegerEntry(p, ap)]
214+ let aj = z(R.caller)
215+ let ao = (aj + am)
216+ let ap = B()
217+ let aq = (ap + am)
218+[IntegerEntry((toString(R.caller) + o), ao), IntegerEntry(p, aq)]
216219 }
217220 }
218221
219222
220223
221224 @Callable(R)
222-func withdrawENNO (aq) = if (!(u))
225+func withdrawENNO (ar) = if (!(u))
223226 then throw("DApp is inactive at this moment")
224227 else {
225- let ai = z(R.caller)
226- let ar = (ai - E((toString(R.caller) + j)))
227- if ((aq > ar))
228+ let aj = z(R.caller)
229+ let as = (aj - E((toString(R.caller) + j)))
230+ if ((ar > as))
228231 then throw("Your Enno is locked")
229- else if ((0 >= aq))
232+ else if ((0 >= ar))
230233 then throw("withdrawAmount <= 0")
231234 else {
232- let ao = B()
233- if ((aq > ao))
235+ let ap = B()
236+ if ((ar > ap))
234237 then throw("withdrawAmount is more than available to withdraw")
235- else if ((aq > ai))
238+ else if ((ar > aj))
236239 then throw("You are trying to unstake more than you have staked.")
237240 else {
238- let ap = (ao - aq)
239- let as = (ai - aq)
240-[IntegerEntry((toString(R.caller) + o), as), IntegerEntry(p, ap), ScriptTransfer(R.caller, aq, w)]
241+ let aq = (ap - ar)
242+ let at = (aj - ar)
243+[IntegerEntry((toString(R.caller) + o), at), IntegerEntry(p, aq), ScriptTransfer(R.caller, ar, w)]
241244 }
242245 }
243246 }
248251 func claimAndWithdrawENNO () = if (!(u))
249252 then throw("DApp is inactive at this moment")
250253 else {
251- let at = F(R.originCaller)
252- let au = L(R.originCaller)
253- let av = (at - au)
254- let ao = B()
255- if ((av > ao))
254+ let au = F(R.originCaller)
255+ let av = L(R.originCaller)
256+ let aw = (au - av)
257+ let ap = B()
258+ if ((aw > ap))
256259 then throw("claimAmount is more than available to withdraw")
257- else if ((0 >= av))
260+ else if ((0 >= aw))
258261 then throw("Claim amount must be bigger than 0")
259262 else {
260- let aw = (au + av)
261-[IntegerEntry((toString(R.originCaller) + r), aw), IntegerEntry((toString(R.originCaller) + s), av), ScriptTransfer(R.originCaller, av, w)]
263+ let ax = (av + aw)
264+[IntegerEntry((toString(R.originCaller) + r), ax), IntegerEntry((toString(R.originCaller) + s), aw), ScriptTransfer(R.originCaller, aw, w)]
262265 }
263266 }
264267
268271 func claimAndStakeENNO () = if (!(u))
269272 then throw("DApp is inactive at this moment")
270273 else {
271- let at = F(R.originCaller)
272- let au = L(R.originCaller)
273- let av = (at - au)
274- if ((0 >= av))
274+ let au = F(R.originCaller)
275+ let av = L(R.originCaller)
276+ let aw = (au - av)
277+ if ((0 >= aw))
275278 then throw("Claim amount must be bigger than 0")
276279 else {
277- let aw = (au + av)
278- let ai = z(R.originCaller)
279- let an = (ai + av)
280- let ao = B()
281- let ap = (ao + av)
282-[IntegerEntry((toString(R.originCaller) + o), an), IntegerEntry((toString(R.originCaller) + r), aw), IntegerEntry((toString(R.originCaller) + s), av), IntegerEntry(p, ap)]
280+ let ax = (av + aw)
281+ let aj = z(R.originCaller)
282+ let ao = (aj + aw)
283+ let ap = B()
284+ let aq = (ap + aw)
285+[IntegerEntry((toString(R.originCaller) + o), ao), IntegerEntry((toString(R.originCaller) + r), ax), IntegerEntry((toString(R.originCaller) + s), aw), IntegerEntry(p, aq)]
283286 }
284287 }
285288
302305 else [BooleanEntry(e, true), DeleteEntry(f)]
303306
304307
305-@Verifier(ax)
306-func ay () = {
307- let az = if (sigVerify(ax.bodyBytes, ax.proofs[0], a))
308+@Verifier(ay)
309+func az () = {
310+ let aA = if (sigVerify(ay.bodyBytes, ay.proofs[0], a))
308311 then 1
309312 else 0
310- let aA = if (sigVerify(ax.bodyBytes, ax.proofs[1], b))
313+ let aB = if (sigVerify(ay.bodyBytes, ay.proofs[1], b))
311314 then 1
312315 else 0
313- let aB = if (sigVerify(ax.bodyBytes, ax.proofs[2], c))
316+ let aC = if (sigVerify(ay.bodyBytes, ay.proofs[2], c))
314317 then 1
315318 else 0
316- (((az + aA) + aB) >= 2)
319+ (((aA + aB) + aC) >= 2)
317320 }
318321
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 K = E((toString(R.caller) + m))
116+ let S = valueOrElse(getString(this, q), "N/A")
117+ let T = toBytes(S)
118+ let U = ("_" + S)
119+ let K = E(((toString(R.caller) + U) + m))
117120 if ((0 >= K))
118121 then throw("You already claimed or you have not participated.")
119122 else {
120- let S = E(n)
121- let T = fraction(K, 100000000, S)
122-[IntegerEntry((toString(R.caller) + "_airdrop"), T), DeleteEntry((toString(R.caller) + m)), DeleteEntry((toString(R.caller) + j))]
123+ let V = E(n)
124+ let W = fraction(K, 100000000, V)
125+[DeleteEntry(((toString(R.caller) + U) + m)), DeleteEntry((toString(R.caller) + j)), ScriptTransfer(R.caller, W, T)]
123126 }
124127 }
125128
126129
127130
128131 @Callable(R)
129-func deleteEntry (U,V) = if (!(u))
132+func deleteEntry (X,Y) = if (!(u))
130133 then throw("DApp is inactive at this moment")
131134 else {
132- let W = ("_" + valueOrElse(getString(this, q), "N/A"))
133-[DeleteEntry((U + "_airdrop")), DeleteEntry(((U + W) + m)), DeleteEntry((U + j)), DeleteEntry((V + "_airdrop")), DeleteEntry(((V + W) + m)), DeleteEntry((V + j))]
135+ let U = ("_" + valueOrElse(getString(this, q), "N/A"))
136+[DeleteEntry((X + "_airdrop")), DeleteEntry(((X + U) + m)), DeleteEntry((X + j)), DeleteEntry((Y + "_airdrop")), DeleteEntry(((Y + U) + m)), DeleteEntry((Y + j))]
134137 }
135138
136139
137140
138141 @Callable(R)
139-func initVote (X,Y,Z) = if (!(u))
142+func initVote (Z,aa,S) = if (!(u))
140143 then throw("DApp is inactive at this moment")
141- else [StringEntry(q, Z), IntegerEntry(g, X), IntegerEntry(h, Y), IntegerEntry(n, 0)]
144+ else [StringEntry(q, S), IntegerEntry(g, Z), IntegerEntry(h, aa), IntegerEntry(n, 0)]
142145
143146
144147
145148 @Callable(R)
146-func unvote (aa) = if (!(u))
149+func unvote (ab) = if (!(u))
147150 then throw("DApp is inactive at this moment")
148151 else if ((E(g) > height))
149152 then throw("Voting has not started yet.")
150153 else if ((height > E(h)))
151154 then throw("Voting has already ended.")
152155 else {
153- let W = ("_" + valueOrElse(getString(this, q), "N/A"))
154- let ab = E(n)
155- let ac = C(R.caller, (W + m))
156- let ad = C(R.caller, j)
157- let ae = (ad - aa)
158- if ((0 > ae))
156+ let U = ("_" + valueOrElse(getString(this, q), "N/A"))
157+ let ac = E(n)
158+ let ad = C(R.caller, (U + m))
159+ let ae = C(R.caller, j)
160+ let af = (ae - ab)
161+ if ((0 > af))
159162 then throw("Vote amount is less than available.")
160163 else {
161- let af = O(aa)
162- let ag = (ac - af)
163- let ah = (ab - af)
164-[IntegerEntry(((toString(R.caller) + W) + m), ag), IntegerEntry((toString(R.caller) + j), ae), IntegerEntry(n, ah)]
164+ let ag = O(ab)
165+ let ah = (ad - ag)
166+ let ai = (ac - ag)
167+[IntegerEntry(((toString(R.caller) + U) + m), ah), IntegerEntry((toString(R.caller) + j), af), IntegerEntry(n, ai)]
165168 }
166169 }
167170
168171
169172
170173 @Callable(R)
171-func vote (aa) = if (!(u))
174+func vote (ab) = if (!(u))
172175 then throw("DApp is inactive at this moment")
173176 else if ((E(g) > height))
174177 then throw("Voting has not started yet.")
175178 else if ((height > E(h)))
176179 then throw("Voting has already ended.")
177180 else {
178- let ab = E(n)
179- let W = ("_" + valueOrElse(getString(this, q), "N/A"))
180- let ac = C(R.caller, (W + m))
181- let ad = C(R.caller, j)
182- let ai = C(R.caller, o)
183- let ae = (ad + aa)
184- if ((0 > ae))
181+ let ac = E(n)
182+ let U = ("_" + valueOrElse(getString(this, q), "N/A"))
183+ let ad = C(R.caller, (U + m))
184+ let ae = C(R.caller, j)
185+ let aj = C(R.caller, o)
186+ let af = (ae + ab)
187+ if ((0 > af))
185188 then throw("Vote amount is more than available.")
186189 else {
187- let aj = (ai - ad)
188- let af = O(aa)
189- if ((aa > aj))
190+ let ak = (aj - ae)
191+ let ag = O(ab)
192+ if ((ab > ak))
190193 then throw("Vote amount is more than available.")
191194 else {
192- let ag = (ac + af)
193- let ah = (ab + af)
194-[IntegerEntry(((toString(R.caller) + W) + m), ag), IntegerEntry((toString(R.caller) + j), ae), IntegerEntry(n, ah)]
195+ let ah = (ad + ag)
196+ let ai = (ac + ag)
197+[IntegerEntry(((toString(R.caller) + U) + m), ah), IntegerEntry((toString(R.caller) + j), af), IntegerEntry(n, ai)]
195198 }
196199 }
197200 }
198201
199202
200203
201204 @Callable(R)
202205 func lockENNO () = if (!(u))
203206 then throw("DApp is inactive at this moment")
204207 else {
205- let ak = $Tuple2(R.payments[0].amount, R.payments[0].assetId)
206- let al = ak._1
207- let am = ak._2
208- if ((am != w))
208+ let al = $Tuple2(R.payments[0].amount, R.payments[0].assetId)
209+ let am = al._1
210+ let an = al._2
211+ if ((an != w))
209212 then throw("Incorrect payment assetId only Enno Cash is allowed.")
210213 else {
211- let ai = z(R.caller)
212- let an = (ai + al)
213- let ao = B()
214- let ap = (ao + al)
215-[IntegerEntry((toString(R.caller) + o), an), IntegerEntry(p, ap)]
214+ let aj = z(R.caller)
215+ let ao = (aj + am)
216+ let ap = B()
217+ let aq = (ap + am)
218+[IntegerEntry((toString(R.caller) + o), ao), IntegerEntry(p, aq)]
216219 }
217220 }
218221
219222
220223
221224 @Callable(R)
222-func withdrawENNO (aq) = if (!(u))
225+func withdrawENNO (ar) = if (!(u))
223226 then throw("DApp is inactive at this moment")
224227 else {
225- let ai = z(R.caller)
226- let ar = (ai - E((toString(R.caller) + j)))
227- if ((aq > ar))
228+ let aj = z(R.caller)
229+ let as = (aj - E((toString(R.caller) + j)))
230+ if ((ar > as))
228231 then throw("Your Enno is locked")
229- else if ((0 >= aq))
232+ else if ((0 >= ar))
230233 then throw("withdrawAmount <= 0")
231234 else {
232- let ao = B()
233- if ((aq > ao))
235+ let ap = B()
236+ if ((ar > ap))
234237 then throw("withdrawAmount is more than available to withdraw")
235- else if ((aq > ai))
238+ else if ((ar > aj))
236239 then throw("You are trying to unstake more than you have staked.")
237240 else {
238- let ap = (ao - aq)
239- let as = (ai - aq)
240-[IntegerEntry((toString(R.caller) + o), as), IntegerEntry(p, ap), ScriptTransfer(R.caller, aq, w)]
241+ let aq = (ap - ar)
242+ let at = (aj - ar)
243+[IntegerEntry((toString(R.caller) + o), at), IntegerEntry(p, aq), ScriptTransfer(R.caller, ar, w)]
241244 }
242245 }
243246 }
244247
245248
246249
247250 @Callable(R)
248251 func claimAndWithdrawENNO () = if (!(u))
249252 then throw("DApp is inactive at this moment")
250253 else {
251- let at = F(R.originCaller)
252- let au = L(R.originCaller)
253- let av = (at - au)
254- let ao = B()
255- if ((av > ao))
254+ let au = F(R.originCaller)
255+ let av = L(R.originCaller)
256+ let aw = (au - av)
257+ let ap = B()
258+ if ((aw > ap))
256259 then throw("claimAmount is more than available to withdraw")
257- else if ((0 >= av))
260+ else if ((0 >= aw))
258261 then throw("Claim amount must be bigger than 0")
259262 else {
260- let aw = (au + av)
261-[IntegerEntry((toString(R.originCaller) + r), aw), IntegerEntry((toString(R.originCaller) + s), av), ScriptTransfer(R.originCaller, av, w)]
263+ let ax = (av + aw)
264+[IntegerEntry((toString(R.originCaller) + r), ax), IntegerEntry((toString(R.originCaller) + s), aw), ScriptTransfer(R.originCaller, aw, w)]
262265 }
263266 }
264267
265268
266269
267270 @Callable(R)
268271 func claimAndStakeENNO () = if (!(u))
269272 then throw("DApp is inactive at this moment")
270273 else {
271- let at = F(R.originCaller)
272- let au = L(R.originCaller)
273- let av = (at - au)
274- if ((0 >= av))
274+ let au = F(R.originCaller)
275+ let av = L(R.originCaller)
276+ let aw = (au - av)
277+ if ((0 >= aw))
275278 then throw("Claim amount must be bigger than 0")
276279 else {
277- let aw = (au + av)
278- let ai = z(R.originCaller)
279- let an = (ai + av)
280- let ao = B()
281- let ap = (ao + av)
282-[IntegerEntry((toString(R.originCaller) + o), an), IntegerEntry((toString(R.originCaller) + r), aw), IntegerEntry((toString(R.originCaller) + s), av), IntegerEntry(p, ap)]
280+ let ax = (av + aw)
281+ let aj = z(R.originCaller)
282+ let ao = (aj + aw)
283+ let ap = B()
284+ let aq = (ap + aw)
285+[IntegerEntry((toString(R.originCaller) + o), ao), IntegerEntry((toString(R.originCaller) + r), ax), IntegerEntry((toString(R.originCaller) + s), aw), IntegerEntry(p, aq)]
283286 }
284287 }
285288
286289
287290
288291 @Callable(R)
289292 func shutdown () = if (!(u))
290293 then throw(("DApp is already suspended. Cause: " + valueOrElse(getString(this, f), "the cause wasn't specified")))
291294 else if (!(containsElement([a, b, c, d], R.callerPublicKey)))
292295 then throw("Only admin can call this function")
293296 else x("Paused by admin")
294297
295298
296299
297300 @Callable(R)
298301 func activate () = if (u)
299302 then throw("DApp is already active")
300303 else if (!(containsElement([a, b, c, d], R.callerPublicKey)))
301304 then throw("Only admin can call this function")
302305 else [BooleanEntry(e, true), DeleteEntry(f)]
303306
304307
305-@Verifier(ax)
306-func ay () = {
307- let az = if (sigVerify(ax.bodyBytes, ax.proofs[0], a))
308+@Verifier(ay)
309+func az () = {
310+ let aA = if (sigVerify(ay.bodyBytes, ay.proofs[0], a))
308311 then 1
309312 else 0
310- let aA = if (sigVerify(ax.bodyBytes, ax.proofs[1], b))
313+ let aB = if (sigVerify(ay.bodyBytes, ay.proofs[1], b))
311314 then 1
312315 else 0
313- let aB = if (sigVerify(ax.bodyBytes, ax.proofs[2], c))
316+ let aC = if (sigVerify(ay.bodyBytes, ay.proofs[2], c))
314317 then 1
315318 else 0
316- (((az + aA) + aB) >= 2)
319+ (((aA + aB) + aC) >= 2)
317320 }
318321

github/deemru/w8io/026f985 
72.01 ms