tx · FuAM13VtSqt6ZEoxLHxtWqk71LZR751juqjjTyXX9KSb

3Ms38PbYnARMUMorWK8SqRBhKKQq2yhXPB1:  -0.01500000 Waves

2022.08.11 16:11 [2179861] smart account 3Ms38PbYnARMUMorWK8SqRBhKKQq2yhXPB1 > SELF 0.00000000 Waves

{ "type": 13, "id": "FuAM13VtSqt6ZEoxLHxtWqk71LZR751juqjjTyXX9KSb", "fee": 1500000, "feeAssetId": null, "timestamp": 1660223541925, "version": 1, "sender": "3Ms38PbYnARMUMorWK8SqRBhKKQq2yhXPB1", "senderPublicKey": "3EfudNNQNACtTotZKwkRu97fZW5fFjUPwuP1gd3oBHJs", "proofs": [ "CD7nZ1tV6JHxPXWhZeuAMGvaZTUsXM2oig5oSnfKpnzypxNTJ1kmvNQNvEcwqVsrPdWqpN5BdC3SxNsqS6YmmtT" ], "script": "base64:AAIFAAAAAAAAABwIAhIFCgMBAQgSAwoBARIAEgMKAQESAwoBCBIAAAAAIAAAAAADU0VQAgAAAAJfXwAAAAALa2V5UmVmZXJyYWwJAAS5AAAAAgkABEwAAAACAgAAAAIlcwkABEwAAAACAgAAAAhyZWZlcnJhbAUAAAADbmlsBQAAAANTRVAAAAAADGtleVd4QXNzZXRJZAkABLkAAAACCQAETAAAAAICAAAAAiVzCQAETAAAAAICAAAACXd4QXNzZXRJZAUAAAADbmlsBQAAAANTRVABAAAAE2tleU1hbmFnZXJQdWJsaWNLZXkAAAAAAgAAABQlc19fbWFuYWdlclB1YmxpY0tleQEAAAAaa2V5UGVuZGluZ01hbmFnZXJQdWJsaWNLZXkAAAAAAgAAABslc19fcGVuZGluZ01hbmFnZXJQdWJsaWNLZXkAAAAAFUlkeENmZ0NsYWltU3RhcnRCbG9jawAAAAAAAAAAAQAAAAAYSWR4Q2ZnQ2xhaW1WZXN0aW5nUGVyaW9kAAAAAAAAAAACAAAAABJJZHhDZmdDbGFpbUFzc2V0SWQAAAAAAAAAAAMAAAAAFElkeENmZ0NsYWltQXNzZXRNdWx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RvcgQAAAACcGsFAAAAByRtYXRjaDAFAAAAAnBrAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAARVbml0CAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V5CQAAAgAAAAECAAAAC01hdGNoIGVycm9yCQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAUAAAAPdGFyZ2V0UHVibGljS2V5l5Hrzw==", "chainId": 84, "height": 2179861, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: Fui2GKQ9krB8w49JU6riV8BW3J7EpZmt53HiSzU3zytJ Next: Eh52Cg3tEoteQCsW3X17rjqMpGjubyTRTNvMbQH8jKVR Diff:
OldNewDifferences
5555 func M () = "%s__totals"
5656
5757
58-func N (O,P,Q) = makeString(["%s%s%s%s__history", O, P, Q], a)
58+let N = makeString(["%s", "amountUnclaimed"], a)
59+
60+func O (P,Q,R) = makeString(["%s%s%s%s__history", P, Q, R], a)
5961
6062
61-func R () = split(q(L()), a)
63+func S () = split(q(L()), a)
6264
6365
64-func S () = split(q(M()), a)
66+func T () = split(q(M()), a)
6567
6668
67-func T (r,U,V,W) = {
68- let D = parseIntValue(U[l])
69- let X = parseIntValue(U[m])
70- let F = parseIntValue(U[n])
71- let Y = (D + V)
72- let Z = (X - V)
73- if ((0 > Z))
69+func U (r,V,W,X) = {
70+ let D = parseIntValue(V[l])
71+ let Y = parseIntValue(V[m])
72+ let F = parseIntValue(V[n])
73+ let Z = (D + W)
74+ let aa = (Y - W)
75+ if ((0 > aa))
7476 then throw("invalid math")
75- else StringEntry(r, C(toString(Y), toString(Z), toString(W)))
77+ else StringEntry(r, C(toString(Z), toString(aa), toString(X)))
7678 }
7779
7880
79-func aa (P,H,I,ab,ac,ad) = StringEntry(N("claim", P, toBase58String(ad)), G(H, I, ab, ac))
81+func ab (Q,H,I,ac,ad,ae) = StringEntry(O("claim", Q, toBase58String(ae)), G(H, I, ac, ad))
8082
8183
82-func ae () = {
83- let af = getString(d())
84- if ($isInstanceOf(af, "String"))
84+func af () = {
85+ let ag = getString(d())
86+ if ($isInstanceOf(ag, "String"))
8587 then {
86- let ag = af
87- fromBase58String(ag)
88+ let ah = ag
89+ fromBase58String(ah)
8890 }
89- else if ($isInstanceOf(af, "Unit"))
91+ else if ($isInstanceOf(ag, "Unit"))
9092 then unit
9193 else throw("Match error")
9294 }
9395
9496
95-func ah () = {
96- let af = getString(e())
97- if ($isInstanceOf(af, "String"))
97+func ai () = {
98+ let ag = getString(e())
99+ if ($isInstanceOf(ag, "String"))
98100 then {
99- let ag = af
100- fromBase58String(ag)
101+ let ah = ag
102+ fromBase58String(ah)
101103 }
102- else if ($isInstanceOf(af, "Unit"))
104+ else if ($isInstanceOf(ag, "Unit"))
103105 then unit
104106 else throw("Match error")
105107 }
106108
107109
108-func ai (aj) = {
109- let ak = o("permission denied")
110- let af = ae()
111- if ($isInstanceOf(af, "ByteVector"))
110+func aj (ak) = {
111+ let al = o("permission denied")
112+ let ag = af()
113+ if ($isInstanceOf(ag, "ByteVector"))
112114 then {
113- let al = af
114- if ((aj.callerPublicKey == al))
115+ let am = ag
116+ if ((ak.callerPublicKey == am))
115117 then true
116- else ak
118+ else al
117119 }
118- else if ($isInstanceOf(af, "Unit"))
119- then if ((aj.caller == this))
120+ else if ($isInstanceOf(ag, "Unit"))
121+ then if ((ak.caller == this))
120122 then true
121- else ak
123+ else al
122124 else throw("Match error")
123125 }
124126
125127
126-@Callable(aj)
127-func constructor (t,am,an) = {
128- let ao = (t + am)
128+func an (ak,ao) = {
129+ let ap = S()
130+ let aq = parseIntValue(ap[f])
131+ let ar = parseIntValue(ap[g])
132+ let as = (aq + ar)
133+ let at = fromBase58String(ap[h])
134+ let au = addressFromStringValue(ap[j])
135+ let av = parseIntValue(ap[k])
136+ let aw = T()
137+ let D = parseIntValue(aw[l])
138+ let ax = parseIntValue(aw[m])
139+ let F = parseIntValue(aw[n])
140+ if ((ak.caller != au))
141+ then throw("permissions denied")
142+ else if ((aq > height))
143+ then throw(("Wait claim start block: " + toString(aq)))
144+ else {
145+ let K = if ((height > as))
146+ then as
147+ else height
148+ let J = if ((F == 0))
149+ then aq
150+ else F
151+ let I = (K - J)
152+ let ay = fraction(av, I, ar)
153+ let az = valueOrElse(getInteger(this, N), 0)
154+ let aA = (ay + az)
155+ let aB = if (if ((0 >= ao))
156+ then true
157+ else (ao >= aA))
158+ then aA
159+ else ao
160+ let aC = (aA - aB)
161+ $Tuple2([IntegerEntry(N, aC), ScriptTransfer(au, aB, at), U(M(), T(), aB, K), ab(toString(au), aB, I, J, K, ak.transactionId)], aB)
162+ }
163+ }
164+
165+
166+@Callable(ak)
167+func constructor (t,aD,aE) = {
168+ let aF = (t + aD)
129169 if (isDefined(getString(L())))
130170 then throw("already initialized")
131- else if ((size(aj.payments) != 1))
171+ else if ((size(ak.payments) != 1))
132172 then throw("exactly 1 payment must be attached")
133- else if ((aj.callerPublicKey != base58'2Cbd8ozG7A1RyRNC3nNnZgHu7Ru4K3JCfpyPkhqr9zxq'))
173+ else if ((ak.callerPublicKey != base58'2Cbd8ozG7A1RyRNC3nNnZgHu7Ru4K3JCfpyPkhqr9zxq'))
134174 then throw("not authorized")
135175 else {
136- let ap = valueOrErrorMessage(addressFromString(an), "Invalid beneficiarAddress passed")
137- let aq = value(aj.payments[0])
138- let ar = value(aq.assetId)
139- let as = valueOrErrorMessage(assetInfo(ar), "fail to load ido asset info")
140- let at = toBase58String(ar)
141- let au = pow(10, 0, as.decimals, 0, 0, DOWN)
142- let av = aq.amount
143-[StringEntry(L(), z(t, am, at, au, toString(ap), av)), StringEntry(M(), C("0", toString(av), "0"))]
176+ let aG = valueOrErrorMessage(addressFromString(aE), "Invalid beneficiarAddress passed")
177+ let aH = value(ak.payments[0])
178+ let aI = value(aH.assetId)
179+ let aJ = valueOrErrorMessage(assetInfo(aI), "fail to load ido asset info")
180+ let aK = toBase58String(aI)
181+ let aL = pow(10, 0, aJ.decimals, 0, 0, DOWN)
182+ let aM = aH.amount
183+[StringEntry(L(), z(t, aD, aK, aL, toString(aG), aM)), StringEntry(M(), C("0", toString(aM), "0"))]
144184 }
145185 }
146186
147187
148188
149-@Callable(aj)
150-func claim () = {
151- let aw = R()
152- let ax = parseIntValue(aw[f])
153- let ay = parseIntValue(aw[g])
154- let az = (ax + ay)
155- let aA = aw[h]
156- let aB = aw[j]
157- let aC = parseIntValue(aw[k])
158- let P = aj.caller
159- let aD = toString(P)
160- let aE = S()
161- let D = parseIntValue(aE[l])
162- let aF = parseIntValue(aE[m])
163- let F = parseIntValue(aE[n])
164- if ((aD != aB))
165- then throw("permissions denied")
166- else if ((ax > height))
167- then throw(("Wait claim start block: " + toString(ax)))
168- else {
169- let K = if ((height > az))
170- then az
171- else height
172- let J = if ((F == 0))
173- then ax
174- else F
175- let I = (K - J)
176- let aG = fraction(aC, I, ay)
177-[ScriptTransfer(P, aG, fromBase58String(aA)), T(M(), S(), aG, K), aa(aD, aG, I, J, K, aj.transactionId)]
178- }
179- }
189+@Callable(ak)
190+func claimAmount (ao) = an(ak, ao)
180191
181192
182193
183-@Callable(aj)
184-func withdrawReferralReward (aH) = {
185- let aI = value(getString(b))
186- let aJ = if ((toString(aj.caller) == aI))
194+@Callable(ak)
195+func claim () = an(ak, -1)
196+
197+
198+
199+@Callable(ak)
200+func withdrawReferralReward (aN) = {
201+ let aO = value(getString(b))
202+ let aP = if ((toString(ak.caller) == aO))
187203 then true
188204 else o("permission denied")
189- if ((aJ == aJ))
205+ if ((aP == aP))
190206 then {
191- let aK = fromBase58String(value(getString(c)))
192- $Tuple2([ScriptTransfer(aj.caller, aH, aK), aa(aI, aH, 0, 0, 0, aj.transactionId)], unit)
207+ let aQ = fromBase58String(value(getString(c)))
208+ $Tuple2([ScriptTransfer(ak.caller, aN, aQ), ab(aO, aN, 0, 0, 0, ak.transactionId)], unit)
193209 }
194210 else throw("Strict value is not equal to itself.")
195211 }
196212
197213
198214
199-@Callable(aj)
200-func setManager (aL) = {
201- let aM = ai(aj)
202- if ((aM == aM))
215+@Callable(ak)
216+func setManager (aR) = {
217+ let aS = aj(ak)
218+ if ((aS == aS))
203219 then {
204- let aN = fromBase58String(aL)
205- if ((aN == aN))
206- then [StringEntry(e(), aL)]
220+ let aT = fromBase58String(aR)
221+ if ((aT == aT))
222+ then [StringEntry(e(), aR)]
207223 else throw("Strict value is not equal to itself.")
208224 }
209225 else throw("Strict value is not equal to itself.")
211227
212228
213229
214-@Callable(aj)
230+@Callable(ak)
215231 func confirmManager () = {
216- let aO = ah()
217- let aP = if (isDefined(aO))
232+ let aU = ai()
233+ let aV = if (isDefined(aU))
218234 then true
219235 else o("no pending manager")
220- if ((aP == aP))
236+ if ((aV == aV))
221237 then {
222- let aQ = if ((aj.callerPublicKey == value(aO)))
238+ let aW = if ((ak.callerPublicKey == value(aU)))
223239 then true
224240 else o("you are not pending manager")
225- if ((aQ == aQ))
226- then [StringEntry(d(), toBase58String(value(aO))), DeleteEntry(e())]
241+ if ((aW == aW))
242+ then [StringEntry(d(), toBase58String(value(aU))), DeleteEntry(e())]
227243 else throw("Strict value is not equal to itself.")
228244 }
229245 else throw("Strict value is not equal to itself.")
230246 }
231247
232248
233-@Verifier(aR)
234-func aS () = {
235- let aT = {
236- let af = ae()
237- if ($isInstanceOf(af, "ByteVector"))
249+@Verifier(aX)
250+func aY () = {
251+ let aZ = {
252+ let ag = af()
253+ if ($isInstanceOf(ag, "ByteVector"))
238254 then {
239- let al = af
240- al
255+ let am = ag
256+ am
241257 }
242- else if ($isInstanceOf(af, "Unit"))
243- then aR.senderPublicKey
258+ else if ($isInstanceOf(ag, "Unit"))
259+ then aX.senderPublicKey
244260 else throw("Match error")
245261 }
246- sigVerify(aR.bodyBytes, aR.proofs[0], aT)
262+ sigVerify(aX.bodyBytes, aX.proofs[0], aZ)
247263 }
248264
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = "__"
55
66 let b = makeString(["%s", "referral"], a)
77
88 let c = makeString(["%s", "wxAssetId"], a)
99
1010 func d () = "%s__managerPublicKey"
1111
1212
1313 func e () = "%s__pendingManagerPublicKey"
1414
1515
1616 let f = 1
1717
1818 let g = 2
1919
2020 let h = 3
2121
2222 let i = 4
2323
2424 let j = 5
2525
2626 let k = 6
2727
2828 let l = 1
2929
3030 let m = 2
3131
3232 let n = 3
3333
3434 func o (p) = throw(makeString(["marketing.ride:", p], " "))
3535
3636
3737 func q (r) = valueOrErrorMessage(getString(r), (("mandatory this." + r) + " is not defined"))
3838
3939
4040 func s (t,u,v,w,x,y) = makeString(["%d%d%s%d%s%d%", t, u, v, w, x, y], a)
4141
4242
4343 func z (t,u,v,w,A,B) = s(toString(t), toString(u), v, toString(w), A, toString(B))
4444
4545
4646 func C (D,E,F) = makeString(["%d%d%d", D, E, F], a)
4747
4848
4949 func G (H,I,J,K) = makeString(["%d%d%d%d%d%d", toString(height), toString(lastBlock.timestamp), toString(H), toString(I), toString(J), toString(K)], a)
5050
5151
5252 func L () = "%s__config"
5353
5454
5555 func M () = "%s__totals"
5656
5757
58-func N (O,P,Q) = makeString(["%s%s%s%s__history", O, P, Q], a)
58+let N = makeString(["%s", "amountUnclaimed"], a)
59+
60+func O (P,Q,R) = makeString(["%s%s%s%s__history", P, Q, R], a)
5961
6062
61-func R () = split(q(L()), a)
63+func S () = split(q(L()), a)
6264
6365
64-func S () = split(q(M()), a)
66+func T () = split(q(M()), a)
6567
6668
67-func T (r,U,V,W) = {
68- let D = parseIntValue(U[l])
69- let X = parseIntValue(U[m])
70- let F = parseIntValue(U[n])
71- let Y = (D + V)
72- let Z = (X - V)
73- if ((0 > Z))
69+func U (r,V,W,X) = {
70+ let D = parseIntValue(V[l])
71+ let Y = parseIntValue(V[m])
72+ let F = parseIntValue(V[n])
73+ let Z = (D + W)
74+ let aa = (Y - W)
75+ if ((0 > aa))
7476 then throw("invalid math")
75- else StringEntry(r, C(toString(Y), toString(Z), toString(W)))
77+ else StringEntry(r, C(toString(Z), toString(aa), toString(X)))
7678 }
7779
7880
79-func aa (P,H,I,ab,ac,ad) = StringEntry(N("claim", P, toBase58String(ad)), G(H, I, ab, ac))
81+func ab (Q,H,I,ac,ad,ae) = StringEntry(O("claim", Q, toBase58String(ae)), G(H, I, ac, ad))
8082
8183
82-func ae () = {
83- let af = getString(d())
84- if ($isInstanceOf(af, "String"))
84+func af () = {
85+ let ag = getString(d())
86+ if ($isInstanceOf(ag, "String"))
8587 then {
86- let ag = af
87- fromBase58String(ag)
88+ let ah = ag
89+ fromBase58String(ah)
8890 }
89- else if ($isInstanceOf(af, "Unit"))
91+ else if ($isInstanceOf(ag, "Unit"))
9092 then unit
9193 else throw("Match error")
9294 }
9395
9496
95-func ah () = {
96- let af = getString(e())
97- if ($isInstanceOf(af, "String"))
97+func ai () = {
98+ let ag = getString(e())
99+ if ($isInstanceOf(ag, "String"))
98100 then {
99- let ag = af
100- fromBase58String(ag)
101+ let ah = ag
102+ fromBase58String(ah)
101103 }
102- else if ($isInstanceOf(af, "Unit"))
104+ else if ($isInstanceOf(ag, "Unit"))
103105 then unit
104106 else throw("Match error")
105107 }
106108
107109
108-func ai (aj) = {
109- let ak = o("permission denied")
110- let af = ae()
111- if ($isInstanceOf(af, "ByteVector"))
110+func aj (ak) = {
111+ let al = o("permission denied")
112+ let ag = af()
113+ if ($isInstanceOf(ag, "ByteVector"))
112114 then {
113- let al = af
114- if ((aj.callerPublicKey == al))
115+ let am = ag
116+ if ((ak.callerPublicKey == am))
115117 then true
116- else ak
118+ else al
117119 }
118- else if ($isInstanceOf(af, "Unit"))
119- then if ((aj.caller == this))
120+ else if ($isInstanceOf(ag, "Unit"))
121+ then if ((ak.caller == this))
120122 then true
121- else ak
123+ else al
122124 else throw("Match error")
123125 }
124126
125127
126-@Callable(aj)
127-func constructor (t,am,an) = {
128- let ao = (t + am)
128+func an (ak,ao) = {
129+ let ap = S()
130+ let aq = parseIntValue(ap[f])
131+ let ar = parseIntValue(ap[g])
132+ let as = (aq + ar)
133+ let at = fromBase58String(ap[h])
134+ let au = addressFromStringValue(ap[j])
135+ let av = parseIntValue(ap[k])
136+ let aw = T()
137+ let D = parseIntValue(aw[l])
138+ let ax = parseIntValue(aw[m])
139+ let F = parseIntValue(aw[n])
140+ if ((ak.caller != au))
141+ then throw("permissions denied")
142+ else if ((aq > height))
143+ then throw(("Wait claim start block: " + toString(aq)))
144+ else {
145+ let K = if ((height > as))
146+ then as
147+ else height
148+ let J = if ((F == 0))
149+ then aq
150+ else F
151+ let I = (K - J)
152+ let ay = fraction(av, I, ar)
153+ let az = valueOrElse(getInteger(this, N), 0)
154+ let aA = (ay + az)
155+ let aB = if (if ((0 >= ao))
156+ then true
157+ else (ao >= aA))
158+ then aA
159+ else ao
160+ let aC = (aA - aB)
161+ $Tuple2([IntegerEntry(N, aC), ScriptTransfer(au, aB, at), U(M(), T(), aB, K), ab(toString(au), aB, I, J, K, ak.transactionId)], aB)
162+ }
163+ }
164+
165+
166+@Callable(ak)
167+func constructor (t,aD,aE) = {
168+ let aF = (t + aD)
129169 if (isDefined(getString(L())))
130170 then throw("already initialized")
131- else if ((size(aj.payments) != 1))
171+ else if ((size(ak.payments) != 1))
132172 then throw("exactly 1 payment must be attached")
133- else if ((aj.callerPublicKey != base58'2Cbd8ozG7A1RyRNC3nNnZgHu7Ru4K3JCfpyPkhqr9zxq'))
173+ else if ((ak.callerPublicKey != base58'2Cbd8ozG7A1RyRNC3nNnZgHu7Ru4K3JCfpyPkhqr9zxq'))
134174 then throw("not authorized")
135175 else {
136- let ap = valueOrErrorMessage(addressFromString(an), "Invalid beneficiarAddress passed")
137- let aq = value(aj.payments[0])
138- let ar = value(aq.assetId)
139- let as = valueOrErrorMessage(assetInfo(ar), "fail to load ido asset info")
140- let at = toBase58String(ar)
141- let au = pow(10, 0, as.decimals, 0, 0, DOWN)
142- let av = aq.amount
143-[StringEntry(L(), z(t, am, at, au, toString(ap), av)), StringEntry(M(), C("0", toString(av), "0"))]
176+ let aG = valueOrErrorMessage(addressFromString(aE), "Invalid beneficiarAddress passed")
177+ let aH = value(ak.payments[0])
178+ let aI = value(aH.assetId)
179+ let aJ = valueOrErrorMessage(assetInfo(aI), "fail to load ido asset info")
180+ let aK = toBase58String(aI)
181+ let aL = pow(10, 0, aJ.decimals, 0, 0, DOWN)
182+ let aM = aH.amount
183+[StringEntry(L(), z(t, aD, aK, aL, toString(aG), aM)), StringEntry(M(), C("0", toString(aM), "0"))]
144184 }
145185 }
146186
147187
148188
149-@Callable(aj)
150-func claim () = {
151- let aw = R()
152- let ax = parseIntValue(aw[f])
153- let ay = parseIntValue(aw[g])
154- let az = (ax + ay)
155- let aA = aw[h]
156- let aB = aw[j]
157- let aC = parseIntValue(aw[k])
158- let P = aj.caller
159- let aD = toString(P)
160- let aE = S()
161- let D = parseIntValue(aE[l])
162- let aF = parseIntValue(aE[m])
163- let F = parseIntValue(aE[n])
164- if ((aD != aB))
165- then throw("permissions denied")
166- else if ((ax > height))
167- then throw(("Wait claim start block: " + toString(ax)))
168- else {
169- let K = if ((height > az))
170- then az
171- else height
172- let J = if ((F == 0))
173- then ax
174- else F
175- let I = (K - J)
176- let aG = fraction(aC, I, ay)
177-[ScriptTransfer(P, aG, fromBase58String(aA)), T(M(), S(), aG, K), aa(aD, aG, I, J, K, aj.transactionId)]
178- }
179- }
189+@Callable(ak)
190+func claimAmount (ao) = an(ak, ao)
180191
181192
182193
183-@Callable(aj)
184-func withdrawReferralReward (aH) = {
185- let aI = value(getString(b))
186- let aJ = if ((toString(aj.caller) == aI))
194+@Callable(ak)
195+func claim () = an(ak, -1)
196+
197+
198+
199+@Callable(ak)
200+func withdrawReferralReward (aN) = {
201+ let aO = value(getString(b))
202+ let aP = if ((toString(ak.caller) == aO))
187203 then true
188204 else o("permission denied")
189- if ((aJ == aJ))
205+ if ((aP == aP))
190206 then {
191- let aK = fromBase58String(value(getString(c)))
192- $Tuple2([ScriptTransfer(aj.caller, aH, aK), aa(aI, aH, 0, 0, 0, aj.transactionId)], unit)
207+ let aQ = fromBase58String(value(getString(c)))
208+ $Tuple2([ScriptTransfer(ak.caller, aN, aQ), ab(aO, aN, 0, 0, 0, ak.transactionId)], unit)
193209 }
194210 else throw("Strict value is not equal to itself.")
195211 }
196212
197213
198214
199-@Callable(aj)
200-func setManager (aL) = {
201- let aM = ai(aj)
202- if ((aM == aM))
215+@Callable(ak)
216+func setManager (aR) = {
217+ let aS = aj(ak)
218+ if ((aS == aS))
203219 then {
204- let aN = fromBase58String(aL)
205- if ((aN == aN))
206- then [StringEntry(e(), aL)]
220+ let aT = fromBase58String(aR)
221+ if ((aT == aT))
222+ then [StringEntry(e(), aR)]
207223 else throw("Strict value is not equal to itself.")
208224 }
209225 else throw("Strict value is not equal to itself.")
210226 }
211227
212228
213229
214-@Callable(aj)
230+@Callable(ak)
215231 func confirmManager () = {
216- let aO = ah()
217- let aP = if (isDefined(aO))
232+ let aU = ai()
233+ let aV = if (isDefined(aU))
218234 then true
219235 else o("no pending manager")
220- if ((aP == aP))
236+ if ((aV == aV))
221237 then {
222- let aQ = if ((aj.callerPublicKey == value(aO)))
238+ let aW = if ((ak.callerPublicKey == value(aU)))
223239 then true
224240 else o("you are not pending manager")
225- if ((aQ == aQ))
226- then [StringEntry(d(), toBase58String(value(aO))), DeleteEntry(e())]
241+ if ((aW == aW))
242+ then [StringEntry(d(), toBase58String(value(aU))), DeleteEntry(e())]
227243 else throw("Strict value is not equal to itself.")
228244 }
229245 else throw("Strict value is not equal to itself.")
230246 }
231247
232248
233-@Verifier(aR)
234-func aS () = {
235- let aT = {
236- let af = ae()
237- if ($isInstanceOf(af, "ByteVector"))
249+@Verifier(aX)
250+func aY () = {
251+ let aZ = {
252+ let ag = af()
253+ if ($isInstanceOf(ag, "ByteVector"))
238254 then {
239- let al = af
240- al
255+ let am = ag
256+ am
241257 }
242- else if ($isInstanceOf(af, "Unit"))
243- then aR.senderPublicKey
258+ else if ($isInstanceOf(ag, "Unit"))
259+ then aX.senderPublicKey
244260 else throw("Match error")
245261 }
246- sigVerify(aR.bodyBytes, aR.proofs[0], aT)
262+ sigVerify(aX.bodyBytes, aX.proofs[0], aZ)
247263 }
248264

github/deemru/w8io/169f3d6 
67.92 ms