tx · T88UsL6ZTdyzGK4nXyBU466zzu9XuuaJoXpj3zseNzL

3N3g7W8FPoQ7g5EadbAD2GVjrZT5RWpHZZh:  -0.01800000 Waves

2022.08.16 14:40 [2186973] smart account 3N3g7W8FPoQ7g5EadbAD2GVjrZT5RWpHZZh > SELF 0.00000000 Waves

{ "type": 13, "id": "T88UsL6ZTdyzGK4nXyBU466zzu9XuuaJoXpj3zseNzL", "fee": 1800000, "feeAssetId": null, "timestamp": 1660650079685, "version": 1, "sender": "3N3g7W8FPoQ7g5EadbAD2GVjrZT5RWpHZZh", "senderPublicKey": "Ap7CkWd6fzBU34kGo4GJJzC5q4qWXuLVunzE25PchdGS", "proofs": [ "5qeDSSQ6TZ7PCYMH21JNZvzm7TBchJ8ethNxAfRp43TFPFxjsRxt6oRpSp2FtbX8YKiu3Zx4tqkFiGVyykMk2XSL" ], "script": "base64:AAIFAAAAAAAAAC0IAhIJCgcICBgYAQgBEgASCAoGCAgICAgIEgMKARgSAwoBCBIAEgASBAoCCAgAAAAwAAAAAANTRVACAAAAAl9fAAAAAAVFTVBUWQIAAAAAAAAAABFpbnZhbGlkUHJpY2VBc3NldAIAAAATSW52YWxpZCBwcmljZSBhc3NldAEAAAAHdGhyb3dQRAAAAAAJAAACAAAAAQIAAAARUGVybWlzc2lvbiBkZW5pZWQBAAAAFHRocm93Q3JlYXRlTm90Q2FsbGVkAAAAAAkAAAIAAAABAgAAACRDcmVhdGUgaXMgbm90IGNhbGxlZCBmb3IgYXNzZXRzIHBhaXIBAAAAEXRocm93WW91Tm90SXNzdWVyAAAAAAkAAAIAAAABAgAAAB5Zb3UgYXJlIG5vdCBhbW91bnRBc3NldCBpc3N1ZXIBAAAAD3Rocm93UG9vbEV4aXN0cwAAAAAJAAACAAAAAQIAAAAkUG9vbCB3aXRoIHN1Y2ggYXNzZXRzIGFscmVhZHkgZXhpc3RzAQAAABV0aHJvd0Fzc2V0Tm90VmVyaWZpZWQAAAAACQAAAgAAAAECAAAAFUFzc2V0I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AAAHJG1hdGNoMAkABCIAAAABCQEAAAAJa2V5U3RhdHVzAAAAAgUAAAANYW1vdW50QXNzZXRJZAUAAAAMcHJpY2VBc3NldElkAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAAZTdHJpbmcEAAAAAXMFAAAAByRtYXRjaDAFAAAAAXMFAAAABHVuaXQJAAUUAAAAAgUAAAADbmlsBQAAAAZzdGF0dXMAAAABAAAAAnR4AQAAAAZ2ZXJpZnkAAAAABAAAAA90YXJnZXRQdWJsaWNLZXkEAAAAByRtYXRjaDAJAQAAABZtYW5hZ2VyUHVibGljS2V5T3JVbml0AAAAAAMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAKQnl0ZVZlY3RvcgQAAAACcGsFAAAAByRtYXRjaDAFAAAAAnBrAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAARVbml0CAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V5CQAAAgAAAAECAAAAC01hdGNoIGVycm9yCQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAUAAAAPdGFyZ2V0UHVibGljS2V5s5ordQ==", "chainId": 84, "height": 2186973, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 8FR533YiSajVwX3MYfK5V8KYJF9QrBBSAjNTNETbVA2y Next: AhJ6m9whffe9z9uf4dMo8b6VLrSsWMRYPFCKMW2CyHVQ Diff:
OldNewDifferences
145145 if ($isInstanceOf(S, "ByteVector"))
146146 then {
147147 let X = S
148- if ((W.callerPublicKey == X))
149- then true
150- else d()
148+ (W.callerPublicKey == X)
151149 }
152150 else if ($isInstanceOf(S, "Unit"))
153- then if ((W.caller == this))
154- then true
155- else d()
151+ then (W.caller == this)
156152 else throw("Match error")
157153 }
158154
159155
160-func Y (W) = {
161- let Z = split(valueOrElse(getString(q()), b), a)
162- if (containsElement(Z, toBase58String(W.callerPublicKey)))
156+func Y (W) = if (V(W))
157+ then true
158+ else d()
159+
160+
161+func Z (W) = {
162+ let aa = split(valueOrElse(getString(q()), b), a)
163+ if (containsElement(aa, toBase58String(W.callerPublicKey)))
163164 then true
164- else {
165- let aa = V(W)
166- if ((aa == aa))
167- then true
168- else throw("Strict value is not equal to itself.")
169- }
165+ else Y(W)
170166 }
171167
172168
185181
186182 @Callable(W)
187183 func constructor (aj,ak,al,am,an,ao,ap) = {
188- let aq = V(W)
184+ let aq = Y(W)
189185 if ((aq == aq))
190186 then [StringEntry(u(), aj), StringEntry(v(), ak), StringEntry(L(), makeString(al, a)), StringEntry(K(), makeString(am, a)), IntegerEntry(J(), an), StringEntry(H(), ao), IntegerEntry(I(), ap)]
191187 else throw("Strict value is not equal to itself.")
208204 let ao = ay._1
209205 let az = ay._2
210206 let aA = split(valueOrElse(getString(L()), b), a)
211- let aB = valueOrErrorMessage(indexOf(aA, t), c)
212- let aC = valueOrElse(getInteger(x()), 0)
213- let aD = (aC + 1)
214- let aE = [if (!(P(s, t)))
207+ let aB = 1
208+ let aC = if (V(W))
209+ then aB
210+ else {
211+ let aD = valueOrErrorMessage(indexOf(aA, t), c)
212+ value(parseInt(split(valueOrElse(getString(K()), b), a)[aD]))
213+ }
214+ let aE = valueOrElse(getInteger(x()), 0)
215+ let aF = (aE + 1)
216+ let aG = [if (!(P(s, t)))
215217 then true
216218 else g(), if ((av.issuer == W.caller))
217219 then true
221223 then true
222224 else j(), if ((ar.amount >= getIntegerValue(J())))
223225 then true
224- else k(), if ((as.amount >= value(parseInt(split(valueOrElse(getString(K()), b), a)[aB]))))
226+ else k(), if ((as.amount >= aC))
225227 then true
226- else throw(), if ((at.amount == getInteger(I())))
228+ else throw("invalid price asset amount"), if ((at.amount == getInteger(I())))
227229 then true
228230 else throw()]
229- if ((aE == aE))
230- then [BooleanEntry(D(s, t), true), IntegerEntry(x(), aD), StringEntry(w(s, t), (toString(aD) + y)), IntegerEntry(G(s, t), height), StringEntry(r(s, t), z), IntegerEntry(E(s, t), ar.amount), IntegerEntry(F(s, t), as.amount)]
231+ if ((aG == aG))
232+ then [BooleanEntry(D(s, t), true), IntegerEntry(x(), aF), StringEntry(w(s, t), (toString(aF) + y)), IntegerEntry(G(s, t), height), StringEntry(r(s, t), z), IntegerEntry(E(s, t), ar.amount), IntegerEntry(F(s, t), as.amount)]
231233 else throw("Strict value is not equal to itself.")
232234 }
233235
234236
235237
236238 @Callable(W)
237-func activate (aF,s,aG,t,aH,aI) = {
238- let aE = [Y(W), if (P(s, t))
239+func activate (aH,s,aI,t,aJ,aK) = {
240+ let aG = [Z(W), if (P(s, t))
239241 then true
240242 else e(), if ((value(getString(r(s, t))) == z))
241243 then true
242244 else m()]
243- if ((aE == aE))
245+ if ((aG == aG))
244246 then {
245- let aJ = invoke(O, "activateNewPool", [aF, s, t, ((aG + aH) + "LP"), (((aG + "/") + aH) + " pool liquidity provider token"), 0, "VLTPOOL", aI], nil)
246- if ((aJ == aJ))
247+ let aL = invoke(O, "activateNewPool", [aH, s, t, ((aI + aJ) + "LP"), (((aI + "/") + aJ) + " pool liquidity provider token"), 0, "VLTPOOL", aK], nil)
248+ if ((aL == aL))
247249 then {
248- let aK = {
249- let S = aJ
250+ let aM = {
251+ let S = aL
250252 if ($isInstanceOf(S, "String"))
251253 then {
252254 let af = S
254256 }
255257 else n()
256258 }
257- if ((aK == aK))
259+ if ((aM == aM))
258260 then {
259- let aL = assetBalance(this, fromBase58String(aK))
260- if ((aL == aL))
261+ let aN = assetBalance(this, fromBase58String(aM))
262+ if ((aN == aN))
261263 then {
262- let aM = invoke(addressFromStringValue(aF), "put", [0, false], [AttachedPayment(fromBase58String(s), value(getInteger(E(s, t)))), AttachedPayment(fromBase58String(t), value(getInteger(F(s, t))))])
263- if ((aM == aM))
264+ let aO = invoke(addressFromStringValue(aH), "put", [0, false], [AttachedPayment(fromBase58String(s), value(getInteger(E(s, t)))), AttachedPayment(fromBase58String(t), value(getInteger(F(s, t))))])
265+ if ((aO == aO))
264266 then {
265- let aN = assetBalance(this, fromBase58String(aK))
266- if ((aN == aN))
267+ let aP = assetBalance(this, fromBase58String(aM))
268+ if ((aP == aP))
267269 then {
268- let aO = value(assetInfo(fromBase58String(s))).issuer
269-[StringEntry(r(s, t), B), ScriptTransfer(aO, (aN - aL), fromBase58String(aK))]
270+ let aQ = value(assetInfo(fromBase58String(s))).issuer
271+[StringEntry(r(s, t), B), ScriptTransfer(aQ, (aP - aN), fromBase58String(aM))]
270272 }
271273 else throw("Strict value is not equal to itself.")
272274 }
284286
285287
286288 @Callable(W)
287-func setAdmins (aP) = {
288- let aq = V(W)
289+func setAdmins (aR) = {
290+ let aq = Y(W)
289291 if ((aq == aq))
290- then [StringEntry(q(), makeString(aP, a))]
292+ then [StringEntry(q(), makeString(aR, a))]
291293 else throw("Strict value is not equal to itself.")
292294 }
293295
294296
295297
296298 @Callable(W)
297-func setManager (aQ) = {
298- let aq = V(W)
299+func setManager (aS) = {
300+ let aq = Y(W)
299301 if ((aq == aq))
300302 then {
301- let aR = fromBase58String(aQ)
302- if ((aR == aR))
303- then [StringEntry(p(), aQ)]
303+ let aT = fromBase58String(aS)
304+ if ((aT == aT))
305+ then [StringEntry(p(), aS)]
304306 else throw("Strict value is not equal to itself.")
305307 }
306308 else throw("Strict value is not equal to itself.")
310312
311313 @Callable(W)
312314 func confirmManager () = {
313- let aS = U()
314- let aT = if (isDefined(aS))
315+ let aU = U()
316+ let aV = if (isDefined(aU))
315317 then true
316318 else throw("No pending manager")
317- if ((aT == aT))
319+ if ((aV == aV))
318320 then {
319- let aU = if ((W.callerPublicKey == value(aS)))
321+ let aW = if ((W.callerPublicKey == value(aU)))
320322 then true
321323 else throw("You are not pending manager")
322- if ((aU == aU))
323- then [StringEntry(o(), toBase58String(value(aS))), DeleteEntry(p())]
324+ if ((aW == aW))
325+ then [StringEntry(o(), toBase58String(value(aU))), DeleteEntry(p())]
324326 else throw("Strict value is not equal to itself.")
325327 }
326328 else throw("Strict value is not equal to itself.")
330332
331333 @Callable(W)
332334 func priceAssetsREADONLY () = {
333- let aV = {
335+ let aX = {
334336 let S = getString(L())
335337 if ($isInstanceOf(S, "String"))
336338 then {
341343 }
342344 else nil
343345 }
344- $Tuple2(nil, aV)
346+ $Tuple2(nil, aX)
345347 }
346348
347349
361363 }
362364
363365
364-@Verifier(aW)
365-func aX () = {
366- let aY = {
366+@Verifier(aY)
367+func aZ () = {
368+ let ba = {
367369 let S = R()
368370 if ($isInstanceOf(S, "ByteVector"))
369371 then {
371373 X
372374 }
373375 else if ($isInstanceOf(S, "Unit"))
374- then aW.senderPublicKey
376+ then aY.senderPublicKey
375377 else throw("Match error")
376378 }
377- sigVerify(aW.bodyBytes, aW.proofs[0], aY)
379+ sigVerify(aY.bodyBytes, aY.proofs[0], ba)
378380 }
379381
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = "__"
55
66 let b = ""
77
88 let c = "Invalid price asset"
99
1010 func d () = throw("Permission denied")
1111
1212
1313 func e () = throw("Create is not called for assets pair")
1414
1515
1616 func f () = throw("You are not amountAsset issuer")
1717
1818
1919 func g () = throw("Pool with such assets already exists")
2020
2121
2222 func h () = throw("Asset is not verified")
2323
2424
2525 func i () = throw(c)
2626
2727
2828 func j () = throw("Invalid fee asset")
2929
3030
3131 func k () = throw("Invalid amount asset attached")
3232
3333
3434 func l () = throw("Invalid status")
3535
3636
3737 func m () = throw("Can activate pool only in 'pending' status")
3838
3939
4040 func n () = throw("FactoryV2 returned not string")
4141
4242
4343 func o () = makeString(["%s", "managerPublicKey"], a)
4444
4545
4646 func p () = makeString(["%s", "pendingManagerPublicKey"], a)
4747
4848
4949 func q () = makeString(["%s", "adminPubKeys"], a)
5050
5151
5252 func r (s,t) = makeString(["%s%s%s", "status", s, t], a)
5353
5454
5555 func u () = makeString(["%s", "factoryContract"], a)
5656
5757
5858 func v () = makeString(["%s", "assetsStoreContract"], a)
5959
6060
6161 func w (s,t) = makeString(["%s%s%s", "suffix", s, t], a)
6262
6363
6464 func x () = makeString(["%s", "lastIndex"], a)
6565
6666
6767 let y = "u"
6868
6969 let z = "pending"
7070
7171 let A = "declined"
7272
7373 let B = "active"
7474
7575 let C = [z, A, B]
7676
7777 func D (s,t) = makeString(["%s%s%s", "createCalled", s, t], a)
7878
7979
8080 func E (s,t) = makeString(["%s%s%s", "amountAssetAmount", s, t], a)
8181
8282
8383 func F (s,t) = makeString(["%s%s%s", "priceAssetAmount", s, t], a)
8484
8585
8686 func G (s,t) = makeString(["%s%s%s", "height", s, t], a)
8787
8888
8989 func H () = makeString(["%s", "feeAssetId"], a)
9090
9191
9292 func I () = makeString(["%s", "feeAmount"], a)
9393
9494
9595 func J () = makeString(["%s", "amountAssetMinAmount"], a)
9696
9797
9898 func K () = makeString(["%s", "priceAssetsMinAmount"], a)
9999
100100
101101 func L () = makeString(["%s", "priceAssetIds"], a)
102102
103103
104104 func M (N) = valueOrErrorMessage(getString(this, N), (N + " is not defined"))
105105
106106
107107 let O = addressFromStringValue(M(u()))
108108
109109 func P (s,t) = valueOrElse(getBoolean(D(s, t)), false)
110110
111111
112112 func Q (s,t) = if (P(s, t))
113113 then true
114114 else e()
115115
116116
117117 func R () = {
118118 let S = getString(o())
119119 if ($isInstanceOf(S, "String"))
120120 then {
121121 let T = S
122122 fromBase58String(T)
123123 }
124124 else if ($isInstanceOf(S, "Unit"))
125125 then unit
126126 else throw("Match error")
127127 }
128128
129129
130130 func U () = {
131131 let S = getString(p())
132132 if ($isInstanceOf(S, "String"))
133133 then {
134134 let T = S
135135 fromBase58String(T)
136136 }
137137 else if ($isInstanceOf(S, "Unit"))
138138 then unit
139139 else throw("Match error")
140140 }
141141
142142
143143 func V (W) = {
144144 let S = R()
145145 if ($isInstanceOf(S, "ByteVector"))
146146 then {
147147 let X = S
148- if ((W.callerPublicKey == X))
149- then true
150- else d()
148+ (W.callerPublicKey == X)
151149 }
152150 else if ($isInstanceOf(S, "Unit"))
153- then if ((W.caller == this))
154- then true
155- else d()
151+ then (W.caller == this)
156152 else throw("Match error")
157153 }
158154
159155
160-func Y (W) = {
161- let Z = split(valueOrElse(getString(q()), b), a)
162- if (containsElement(Z, toBase58String(W.callerPublicKey)))
156+func Y (W) = if (V(W))
157+ then true
158+ else d()
159+
160+
161+func Z (W) = {
162+ let aa = split(valueOrElse(getString(q()), b), a)
163+ if (containsElement(aa, toBase58String(W.callerPublicKey)))
163164 then true
164- else {
165- let aa = V(W)
166- if ((aa == aa))
167- then true
168- else throw("Strict value is not equal to itself.")
169- }
165+ else Y(W)
170166 }
171167
172168
173169 func ab (ac) = (valueOrElse(getInteger(addressFromStringValue(M(v())), (("status_<" + ac) + ">")), 0) == 2)
174170
175171
176172 func ad (ae) = {
177173 let af = value(ae.assetId)
178174 let ag = value(assetInfo(af))
179175 $Tuple2(toBase58String(af), ag)
180176 }
181177
182178
183179 func ah (ai) = containsElement(C, ai)
184180
185181
186182 @Callable(W)
187183 func constructor (aj,ak,al,am,an,ao,ap) = {
188- let aq = V(W)
184+ let aq = Y(W)
189185 if ((aq == aq))
190186 then [StringEntry(u(), aj), StringEntry(v(), ak), StringEntry(L(), makeString(al, a)), StringEntry(K(), makeString(am, a)), IntegerEntry(J(), an), StringEntry(H(), ao), IntegerEntry(I(), ap)]
191187 else throw("Strict value is not equal to itself.")
192188 }
193189
194190
195191
196192 @Callable(W)
197193 func create () = {
198194 let ar = value(W.payments[0])
199195 let as = value(W.payments[1])
200196 let at = value(W.payments[2])
201197 let au = ad(ar)
202198 let s = au._1
203199 let av = au._2
204200 let aw = ad(as)
205201 let t = aw._1
206202 let ax = aw._2
207203 let ay = ad(at)
208204 let ao = ay._1
209205 let az = ay._2
210206 let aA = split(valueOrElse(getString(L()), b), a)
211- let aB = valueOrErrorMessage(indexOf(aA, t), c)
212- let aC = valueOrElse(getInteger(x()), 0)
213- let aD = (aC + 1)
214- let aE = [if (!(P(s, t)))
207+ let aB = 1
208+ let aC = if (V(W))
209+ then aB
210+ else {
211+ let aD = valueOrErrorMessage(indexOf(aA, t), c)
212+ value(parseInt(split(valueOrElse(getString(K()), b), a)[aD]))
213+ }
214+ let aE = valueOrElse(getInteger(x()), 0)
215+ let aF = (aE + 1)
216+ let aG = [if (!(P(s, t)))
215217 then true
216218 else g(), if ((av.issuer == W.caller))
217219 then true
218220 else f(), if (ab(s))
219221 then true
220222 else h(), if ((getString(H()) == ao))
221223 then true
222224 else j(), if ((ar.amount >= getIntegerValue(J())))
223225 then true
224- else k(), if ((as.amount >= value(parseInt(split(valueOrElse(getString(K()), b), a)[aB]))))
226+ else k(), if ((as.amount >= aC))
225227 then true
226- else throw(), if ((at.amount == getInteger(I())))
228+ else throw("invalid price asset amount"), if ((at.amount == getInteger(I())))
227229 then true
228230 else throw()]
229- if ((aE == aE))
230- then [BooleanEntry(D(s, t), true), IntegerEntry(x(), aD), StringEntry(w(s, t), (toString(aD) + y)), IntegerEntry(G(s, t), height), StringEntry(r(s, t), z), IntegerEntry(E(s, t), ar.amount), IntegerEntry(F(s, t), as.amount)]
231+ if ((aG == aG))
232+ then [BooleanEntry(D(s, t), true), IntegerEntry(x(), aF), StringEntry(w(s, t), (toString(aF) + y)), IntegerEntry(G(s, t), height), StringEntry(r(s, t), z), IntegerEntry(E(s, t), ar.amount), IntegerEntry(F(s, t), as.amount)]
231233 else throw("Strict value is not equal to itself.")
232234 }
233235
234236
235237
236238 @Callable(W)
237-func activate (aF,s,aG,t,aH,aI) = {
238- let aE = [Y(W), if (P(s, t))
239+func activate (aH,s,aI,t,aJ,aK) = {
240+ let aG = [Z(W), if (P(s, t))
239241 then true
240242 else e(), if ((value(getString(r(s, t))) == z))
241243 then true
242244 else m()]
243- if ((aE == aE))
245+ if ((aG == aG))
244246 then {
245- let aJ = invoke(O, "activateNewPool", [aF, s, t, ((aG + aH) + "LP"), (((aG + "/") + aH) + " pool liquidity provider token"), 0, "VLTPOOL", aI], nil)
246- if ((aJ == aJ))
247+ let aL = invoke(O, "activateNewPool", [aH, s, t, ((aI + aJ) + "LP"), (((aI + "/") + aJ) + " pool liquidity provider token"), 0, "VLTPOOL", aK], nil)
248+ if ((aL == aL))
247249 then {
248- let aK = {
249- let S = aJ
250+ let aM = {
251+ let S = aL
250252 if ($isInstanceOf(S, "String"))
251253 then {
252254 let af = S
253255 af
254256 }
255257 else n()
256258 }
257- if ((aK == aK))
259+ if ((aM == aM))
258260 then {
259- let aL = assetBalance(this, fromBase58String(aK))
260- if ((aL == aL))
261+ let aN = assetBalance(this, fromBase58String(aM))
262+ if ((aN == aN))
261263 then {
262- let aM = invoke(addressFromStringValue(aF), "put", [0, false], [AttachedPayment(fromBase58String(s), value(getInteger(E(s, t)))), AttachedPayment(fromBase58String(t), value(getInteger(F(s, t))))])
263- if ((aM == aM))
264+ let aO = invoke(addressFromStringValue(aH), "put", [0, false], [AttachedPayment(fromBase58String(s), value(getInteger(E(s, t)))), AttachedPayment(fromBase58String(t), value(getInteger(F(s, t))))])
265+ if ((aO == aO))
264266 then {
265- let aN = assetBalance(this, fromBase58String(aK))
266- if ((aN == aN))
267+ let aP = assetBalance(this, fromBase58String(aM))
268+ if ((aP == aP))
267269 then {
268- let aO = value(assetInfo(fromBase58String(s))).issuer
269-[StringEntry(r(s, t), B), ScriptTransfer(aO, (aN - aL), fromBase58String(aK))]
270+ let aQ = value(assetInfo(fromBase58String(s))).issuer
271+[StringEntry(r(s, t), B), ScriptTransfer(aQ, (aP - aN), fromBase58String(aM))]
270272 }
271273 else throw("Strict value is not equal to itself.")
272274 }
273275 else throw("Strict value is not equal to itself.")
274276 }
275277 else throw("Strict value is not equal to itself.")
276278 }
277279 else throw("Strict value is not equal to itself.")
278280 }
279281 else throw("Strict value is not equal to itself.")
280282 }
281283 else throw("Strict value is not equal to itself.")
282284 }
283285
284286
285287
286288 @Callable(W)
287-func setAdmins (aP) = {
288- let aq = V(W)
289+func setAdmins (aR) = {
290+ let aq = Y(W)
289291 if ((aq == aq))
290- then [StringEntry(q(), makeString(aP, a))]
292+ then [StringEntry(q(), makeString(aR, a))]
291293 else throw("Strict value is not equal to itself.")
292294 }
293295
294296
295297
296298 @Callable(W)
297-func setManager (aQ) = {
298- let aq = V(W)
299+func setManager (aS) = {
300+ let aq = Y(W)
299301 if ((aq == aq))
300302 then {
301- let aR = fromBase58String(aQ)
302- if ((aR == aR))
303- then [StringEntry(p(), aQ)]
303+ let aT = fromBase58String(aS)
304+ if ((aT == aT))
305+ then [StringEntry(p(), aS)]
304306 else throw("Strict value is not equal to itself.")
305307 }
306308 else throw("Strict value is not equal to itself.")
307309 }
308310
309311
310312
311313 @Callable(W)
312314 func confirmManager () = {
313- let aS = U()
314- let aT = if (isDefined(aS))
315+ let aU = U()
316+ let aV = if (isDefined(aU))
315317 then true
316318 else throw("No pending manager")
317- if ((aT == aT))
319+ if ((aV == aV))
318320 then {
319- let aU = if ((W.callerPublicKey == value(aS)))
321+ let aW = if ((W.callerPublicKey == value(aU)))
320322 then true
321323 else throw("You are not pending manager")
322- if ((aU == aU))
323- then [StringEntry(o(), toBase58String(value(aS))), DeleteEntry(p())]
324+ if ((aW == aW))
325+ then [StringEntry(o(), toBase58String(value(aU))), DeleteEntry(p())]
324326 else throw("Strict value is not equal to itself.")
325327 }
326328 else throw("Strict value is not equal to itself.")
327329 }
328330
329331
330332
331333 @Callable(W)
332334 func priceAssetsREADONLY () = {
333- let aV = {
335+ let aX = {
334336 let S = getString(L())
335337 if ($isInstanceOf(S, "String"))
336338 then {
337339 let T = S
338340 if ((size(T) == 0))
339341 then nil
340342 else split(T, a)
341343 }
342344 else nil
343345 }
344- $Tuple2(nil, aV)
346+ $Tuple2(nil, aX)
345347 }
346348
347349
348350
349351 @Callable(W)
350352 func statusREADONLY (s,t) = {
351353 let ai = {
352354 let S = getString(r(s, t))
353355 if ($isInstanceOf(S, "String"))
354356 then {
355357 let T = S
356358 T
357359 }
358360 else unit
359361 }
360362 $Tuple2(nil, ai)
361363 }
362364
363365
364-@Verifier(aW)
365-func aX () = {
366- let aY = {
366+@Verifier(aY)
367+func aZ () = {
368+ let ba = {
367369 let S = R()
368370 if ($isInstanceOf(S, "ByteVector"))
369371 then {
370372 let X = S
371373 X
372374 }
373375 else if ($isInstanceOf(S, "Unit"))
374- then aW.senderPublicKey
376+ then aY.senderPublicKey
375377 else throw("Match error")
376378 }
377- sigVerify(aW.bodyBytes, aW.proofs[0], aY)
379+ sigVerify(aY.bodyBytes, aY.proofs[0], ba)
378380 }
379381

github/deemru/w8io/026f985 
64.55 ms