tx · HJNhZQNg5ezL4soXxMnfjduCJKqV4KbDVkNp9WXyG9Tw

3NCroKxpCWCYijwjiVBg6hc2T7DaajrHuBr:  -0.02100000 Waves

2023.05.10 13:15 [2571655] smart account 3NCroKxpCWCYijwjiVBg6hc2T7DaajrHuBr > SELF 0.00000000 Waves

{ "type": 13, "id": "HJNhZQNg5ezL4soXxMnfjduCJKqV4KbDVkNp9WXyG9Tw", "fee": 2100000, "feeAssetId": null, "timestamp": 1683713746908, "version": 2, "chainId": 84, "sender": "3NCroKxpCWCYijwjiVBg6hc2T7DaajrHuBr", "senderPublicKey": "4j5ighurrUZ2WcdBTRGqBfXs5fz9YDA76D4gtpZ9basj", "proofs": [ "62rPxd54LARcoie8qHstFMmS4MYijsoZjwniJxPSGzrVTHd8Y2s3sCqkxsiDccGrUfyMNPAViqvwH9sxSYf6EgdL" ], "script": "base64:AAIFAAAAAAAACXEIAhIDCgEIEgkKBwgICAgBCAgSAwoBARIAEgASBQoDCAgIEgQKAggBEgMKAQgiA1NFUCIFRU1QVFkiD2dldFN0cmluZ09yRmFpbCIDa2V5IhBnZXRCb29sZWFuT3JGYWlsIhNrZXlNYW5hZ2VyUHVibGljS2V5IhZrZXlNYW5hZ2VyVmF1bHRBZGRyZXNzIhxnZXRNYW5hZ2VyVmF1bHRBZGRyZXNzT3JUaGlzIgckbWF0Y2gwIgFzIg5mYWlsRXhlY3V0ZUdldCIDbXNnIgxiYXNlQXNzZXRTdHIiDnVzZXJBZGRyZXNzU3RyIgpnZXRUeElkU3RyIhZrZXlBc3NldHNTdG9yZUNvbnRyYWN0IgtrZXlBc3NldENmZyIPa2V5UHJveHlBZGRyZXNzIgdhc3NldElkIgprZXlCYWxhbmNlIhZrZXlOZXh0SW50ZXJuYWxBc3NldElkIgxrZXlQcmljZUxhc3QiFWludGVybmFsQmFzZXRBc3NldFN0ciISa2V5VG9wVXBMYXN0SGVpZ2h0IgZzZW5kZXIiD2tleVByaWNlSGlzdG9yeSIBaCIJdGltZXN0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ACYVoBAAAAFGN1cnJlbnRTeXNQYXJhbXNSRVNUAAAAAQAAAAFtBAAAAAJiTAkBAAAAAmFVAAAAAQUAAAABbQQAAAACYXQICAUAAAACYkwAAAACXzEAAAAFdmFsdWUEAAAAAVYICAUAAAACYkwAAAACXzIAAAAFdmFsdWUEAAAAAmFRCAgFAAAAAmJMAAAAAl8zAAAABXZhbHVlBAAAAAJhUAgIBQAAAAJiTAAAAAJfNAAAAAV2YWx1ZQQAAAACYVIICAUAAAACYkwAAAACXzUAAAAFdmFsdWUEAAAAAmFTCAgFAAAAAmJMAAAAAl82AAAABXZhbHVlBAAAAAJiTQkABLkAAAACCQAETAAAAAICAAAAGXN0YXJ0Q3VycmVudFN5c1BhcmFtc1JFU1QJAARMAAAAAgkAAaQAAAABBQAAAAJhdAkABEwAAAACCQABpAAAAAEFAAAAAVYJAARMAAAAAgkAAaQAAAABBQAAAAJhUQkABEwAAAACCQABpAAAAAEFAAAAAmFQCQAETAAAAAIJAAGkAAAAAQUAAAACYVIJAARMAAAAAgkAAaQAAAABBQAAAAJhUwkABEwAAAACAgAAABdlbmRDdXJyZW50U3lzUGFyYW1zUkVTVAUAAAADbmlsBQAAAAFhCQAAAgAAAAEFAAAAAmJNAAAAAQAAAAJiTgEAAAACYk8AAAAABAAAAAJiUAQAAAABaQkBAAAAAmFJAAAAAAMJAAABAAAAAgUAAAABaQIAAAAKQnl0ZVZlY3RvcgQAAAACYmIFAAAAAWkFAAAAAmJiAwkAAAEAAAACBQAAAAFpAgAAAARVbml0CAUAAAACYk4AAAAPc2VuZGVyUHVibGljS2V5CQAAAgAAAAECAAAAC01hdGNoIGVycm9yCQAB9AAAAAMIBQAAAAJiTgAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAmJOAAAABnByb29mcwAAAAAAAAAAAAUAAAACYlAYBW4D", "height": 2571655, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 7QoC1hiV52ZP4cNmGRURc8xASNFewmF68ghT4gEpo8cr Next: none Diff:
OldNewDifferences
1414 func f () = makeString(["%s", "managerPublicKey"], a)
1515
1616
17-func g () = makeString(["%s", "pendingManagerPublicKey"], a)
17+func g () = "%s__managerVaultAddress"
1818
1919
20-func h (i,j,k,l) = throw(((((((i + ": baseAssetStr=") + j) + " userAddressStr=") + k) + " getTxIdStr=") + l))
21-
22-
23-func m () = makeString(["%s", "assetsStoreContract"], a)
24-
25-
26-func n (j) = ("%s%s%s__config__asset__" + j)
27-
28-
29-func o (p) = makeString(["%s%s", "proxyAddress", p], a)
30-
31-
32-func q (p) = makeString(["%s%s", "balance", p], a)
33-
34-
35-func r () = "%s__nextInternalAssetId"
36-
37-
38-func s (t) = ("%s%s%d__price__last__" + t)
39-
40-
41-func u (t,v) = makeString(["%s%s%s%d%s__topup__last__height", t, v], a)
42-
43-
44-func w (t,x,y) = makeString(["%s%s%d%d%d__price__history", t, toString(x), toString(y)], a)
45-
46-
47-func z (t) = ("%s%s%d__total__locked__" + t)
48-
49-
50-func A (B,k) = makeString(["%s%s%d%s__total__locked", B, k], a)
51-
52-
53-func C (D) = ("%s%s%d__mappings__internal2baseAssetId__" + toString(D))
54-
55-
56-func E (j) = ("%s%s%s__mappings__baseAsset2internalId__" + j)
57-
58-
59-func F (G) = ("%s%s%s__mappings__share2baseAssetId__" + G)
60-
61-
62-func H (j) = ("%s%s%s__mappings__baseAsset2shareId__" + j)
63-
64-
65-func I (B) = ("%s%s%d__shutdown__put__" + B)
66-
67-
68-func J (B) = ("%s%s%d__shutdown__manager__" + B)
69-
70-
71-func K () = addressFromStringValue(value(getString(m())))
72-
73-
74-let L = 1
75-
76-let M = 2
77-
78-let N = 3
79-
80-let O = 4
81-
82-let P = 5
83-
84-func Q (G,B,R,S,T) = makeString(["%s%d%d%d%d", G, B, toString(R), toString(S), toString(T)], a)
85-
86-
87-let U = 1
88-
89-let V = 2
90-
91-func W (X,Y) = makeString(["%d%d", toString(X), toString(Y)], a)
92-
93-
94-func Z (d) = {
95- let aa = split(valueOrElse(getString(this, d), W(0, 0)), a)
96-[-1, parseIntValue(aa[U]), parseIntValue(aa[V])]
20+func h () = {
21+ let i = getString(g())
22+ if ($isInstanceOf(i, "String"))
23+ then {
24+ let j = i
25+ addressFromStringValue(j)
26+ }
27+ else this
9728 }
9829
9930
100-func ab (ac,B,ad,ae) = makeString(["%s%d%s%s", ac, B, ad, ae], a)
31+func k (l,m,n,o) = throw(((((((l + ": baseAssetStr=") + m) + " userAddressStr=") + n) + " getTxIdStr=") + o))
10132
10233
103-let af = 1
104-
105-let ag = 2
106-
107-let ah = 3
108-
109-let ai = 4
110-
111-let aj = 5
112-
113-let ak = 6
114-
115-let al = 7
116-
117-let am = 8
118-
119-func an (ao,ap,aq,ar,as,at,au,av) = makeString(["%s%d%d%d%d%d%d%d", ao, ap, aq, ar, as, at, au, av], a)
34+func p () = makeString(["%s", "assetsStoreContract"], a)
12035
12136
122-func aw (ao,ap,aq,ar,as,at,au,av) = an(ao, toString(ap), toString(aq), toString(ar), toString(as), toString(at), toString(au), toString(av))
37+func q (m) = ("%s%s%s__config__asset__" + m)
12338
12439
125-func ax (ay,az,aA) = an(az, ay[ag], ay[ah], ay[ai], ay[aj], ay[ak], ay[al], toString(aA))
40+func r (s) = makeString(["%s%s", "proxyAddress", s], a)
12641
12742
128-func aB (j) = {
129- let d = n(j)
43+func t (s) = makeString(["%s%s", "balance", s], a)
44+
45+
46+func u () = "%s__nextInternalAssetId"
47+
48+
49+func v (w) = ("%s%s%d__price__last__" + w)
50+
51+
52+func x (w,y) = makeString(["%s%s%s%d%s__topup__last__height", w, y], a)
53+
54+
55+func z (w,A,B) = makeString(["%s%s%d%d%d__price__history", w, toString(A), toString(B)], a)
56+
57+
58+func C (w) = ("%s%s%d__total__locked__" + w)
59+
60+
61+func D (E,n) = makeString(["%s%s%d%s__total__locked", E, n], a)
62+
63+
64+func F (G) = ("%s%s%d__mappings__internal2baseAssetId__" + toString(G))
65+
66+
67+func H (m) = ("%s%s%s__mappings__baseAsset2internalId__" + m)
68+
69+
70+func I (J) = ("%s%s%s__mappings__share2baseAssetId__" + J)
71+
72+
73+func K (m) = ("%s%s%s__mappings__baseAsset2shareId__" + m)
74+
75+
76+func L (E) = ("%s%s%d__shutdown__put__" + E)
77+
78+
79+func M (E) = ("%s%s%d__shutdown__manager__" + E)
80+
81+
82+func N () = addressFromStringValue(value(getString(p())))
83+
84+
85+let O = 1
86+
87+let P = 2
88+
89+let Q = 3
90+
91+let R = 4
92+
93+let S = 5
94+
95+func T (J,E,U,V,W) = makeString(["%s%d%d%d%d", J, E, toString(U), toString(V), toString(W)], a)
96+
97+
98+let X = 1
99+
100+let Y = 2
101+
102+func Z (aa,ab) = makeString(["%d%d", toString(aa), toString(ab)], a)
103+
104+
105+func ac (d) = {
106+ let ad = split(valueOrElse(getString(this, d), Z(0, 0)), a)
107+[-1, parseIntValue(ad[X]), parseIntValue(ad[Y])]
108+ }
109+
110+
111+func ae (af,E,ag,ah) = makeString(["%s%d%s%s", af, E, ag, ah], a)
112+
113+
114+let ai = 1
115+
116+let aj = 2
117+
118+let ak = 3
119+
120+let al = 4
121+
122+let am = 5
123+
124+let an = 6
125+
126+let ao = 7
127+
128+let ap = 8
129+
130+func aq (ar,as,at,au,av,aw,ax,ay) = makeString(["%s%d%d%d%d%d%d%d", ar, as, at, au, av, aw, ax, ay], a)
131+
132+
133+func az (ar,as,at,au,av,aw,ax,ay) = aq(ar, toString(as), toString(at), toString(au), toString(av), toString(aw), toString(ax), toString(ay))
134+
135+
136+func aA (aB,aC,aD) = aq(aC, aB[aj], aB[ak], aB[al], aB[am], aB[an], aB[ao], toString(aD))
137+
138+
139+func aE (m) = {
140+ let d = q(m)
130141 split(c(d), a)
131142 }
132143
133144
134-func aC (d,X,Y) = {
135- let aD = Z(d)
136- StringEntry(d, W((aD[U] + X), (aD[V] + Y)))
145+func aF (d,aa,ab) = {
146+ let aG = ac(d)
147+ StringEntry(d, Z((aG[X] + aa), (aG[Y] + ab)))
137148 }
138149
139150
140-func aE (d,X,Y) = {
141- let aD = Z(d)
142- StringEntry(d, W((aD[U] - X), (aD[V] - Y)))
151+func aH (d,aa,ab) = {
152+ let aG = ac(d)
153+ StringEntry(d, Z((aG[X] - aa), (aG[Y] - ab)))
143154 }
144155
145156
146-func aF () = {
147- let aG = getString(f())
148- if ($isInstanceOf(aG, "String"))
157+func aI () = {
158+ let aJ = h()
159+ let i = getString(aJ, f())
160+ if ($isInstanceOf(i, "String"))
149161 then {
150- let aH = aG
151- fromBase58String(aH)
162+ let j = i
163+ fromBase58String(j)
152164 }
153- else if ($isInstanceOf(aG, "Unit"))
165+ else if ($isInstanceOf(i, "Unit"))
154166 then unit
155167 else throw("Match error")
156168 }
157169
158170
159-func aI () = {
160- let aG = getString(g())
161- if ($isInstanceOf(aG, "String"))
171+func aK (s) = valueOrElse(getInteger(t(s)), 0)
172+
173+
174+func aL (E,aM,aN,aO,U,V) = {
175+ let ad = ac(C(E))
176+ let aP = ad[Y]
177+ let aQ = aK(toBase58String(aM))
178+ let aR = (aQ + aN)
179+ if ((0 > aR))
180+ then throw(((("baseAssetBalanceConsideringLock < 0: baseAssetBalance=" + toString(aQ)) + " baseAssetBalanceConsideringLock=") + toString(aR)))
181+ else {
182+ let aS = value(assetInfo(aO)).quantity
183+ let at = if ((aS == 0))
184+ then (1 * V)
185+ else fraction(aR, V, aS)
186+ $Tuple5(at, aQ, aP, aR, aS)
187+ }
188+ }
189+
190+
191+func aT (E,aM,aO,U,V) = {
192+ let ad = ac(C(E))
193+ let aP = ad[Y]
194+ let aQ = aK(toBase58String(aM))
195+ let aR = aQ
196+ let aS = value(assetInfo(aO)).quantity
197+ let at = value(getInteger(v(E)))
198+ $Tuple5(at, aQ, aP, aR, aS)
199+ }
200+
201+
202+func aU (m) = {
203+ let aM = fromBase58String(m)
204+ let aV = aE(m)
205+ let J = aV[O]
206+ let aO = fromBase58String(J)
207+ let U = parseIntValue(aV[Q])
208+ let V = parseIntValue(aV[R])
209+ let E = aV[P]
210+ let aW = aT(E, aM, aO, U, V)
211+ let aX = {
212+ let i = getInteger(x(E, getStringValue(r(m))))
213+ if ($isInstanceOf(i, "Int"))
214+ then {
215+ let A = i
216+ value(A)
217+ }
218+ else if ($isInstanceOf(i, "Unit"))
219+ then getIntegerValue(x(E, toString(addressFromPublicKey(fromBase58String(getStringValue(f()))))))
220+ else throw("undefined behaviour in privateCurrentSysParamsREST match")
221+ }
222+ $Tuple8(IntegerEntry("price", aW._1), IntegerEntry("decimalsMultPrice", V), IntegerEntry("baseAssetBalance", aW._2), IntegerEntry("totalLockedBaseAmount", aW._3), IntegerEntry("baseAssetBalanceConsideringLock", aW._4), IntegerEntry("shareEmission", aW._5), IntegerEntry("baseAssetDecimals", value(assetInfo(aM)).decimals), IntegerEntry("lastTopUpTimestamp", value(blockInfoByHeight(aX)).timestamp))
223+ }
224+
225+
226+func aY (aZ) = {
227+ let ba = throw("permission denied")
228+ let i = aI()
229+ if ($isInstanceOf(i, "ByteVector"))
162230 then {
163- let aH = aG
164- fromBase58String(aH)
231+ let bb = i
232+ if ((aZ.callerPublicKey == bb))
233+ then true
234+ else ba
165235 }
166- else if ($isInstanceOf(aG, "Unit"))
167- then unit
236+ else if ($isInstanceOf(i, "Unit"))
237+ then if ((aZ.caller == this))
238+ then true
239+ else ba
168240 else throw("Match error")
169241 }
170242
171243
172-func aJ (p) = valueOrElse(getInteger(q(p)), 0)
173-
174-
175-func aK (B,aL,aM,aN,R,S) = {
176- let aa = Z(z(B))
177- let aO = aa[V]
178- let aP = aJ(toBase58String(aL))
179- let aQ = (aP + aM)
180- if ((0 > aQ))
181- then throw(((("baseAssetBalanceConsideringLock < 0: baseAssetBalance=" + toString(aP)) + " baseAssetBalanceConsideringLock=") + toString(aQ)))
182- else {
183- let aR = value(assetInfo(aN)).quantity
184- let aq = if ((aR == 0))
185- then (1 * S)
186- else fraction(aQ, S, aR)
187- $Tuple5(aq, aP, aO, aQ, aR)
188- }
189- }
190-
191-
192-func aS (B,aL,aN,R,S) = {
193- let aa = Z(z(B))
194- let aO = aa[V]
195- let aP = aJ(toBase58String(aL))
196- let aQ = aP
197- let aR = value(assetInfo(aN)).quantity
198- let aq = value(getInteger(s(B)))
199- $Tuple5(aq, aP, aO, aQ, aR)
200- }
201-
202-
203-func aT (j) = {
204- let aL = fromBase58String(j)
205- let aU = aB(j)
206- let G = aU[L]
207- let aN = fromBase58String(G)
208- let R = parseIntValue(aU[N])
209- let S = parseIntValue(aU[O])
210- let B = aU[M]
211- let aV = aS(B, aL, aN, R, S)
212- let aW = {
213- let aG = getInteger(u(B, getStringValue(o(j))))
214- if ($isInstanceOf(aG, "Int"))
215- then {
216- let x = aG
217- value(x)
218- }
219- else if ($isInstanceOf(aG, "Unit"))
220- then getIntegerValue(u(B, toString(addressFromPublicKey(fromBase58String(getStringValue(f()))))))
221- else throw("undefined behaviour in privateCurrentSysParamsREST match")
222- }
223- $Tuple8(IntegerEntry("price", aV._1), IntegerEntry("decimalsMultPrice", S), IntegerEntry("baseAssetBalance", aV._2), IntegerEntry("totalLockedBaseAmount", aV._3), IntegerEntry("baseAssetBalanceConsideringLock", aV._4), IntegerEntry("shareEmission", aV._5), IntegerEntry("baseAssetDecimals", value(assetInfo(aL)).decimals), IntegerEntry("lastTopUpTimestamp", value(blockInfoByHeight(aW)).timestamp))
224- }
225-
226-
227-func aX (aY) = {
228- let aZ = throw("permission denied")
229- let aG = aF()
230- if ($isInstanceOf(aG, "ByteVector"))
231- then {
232- let ba = aG
233- if ((aY.callerPublicKey == ba))
234- then true
235- else aZ
236- }
237- else if ($isInstanceOf(aG, "Unit"))
238- then if ((aY.caller == this))
239- then true
240- else aZ
241- else throw("Match error")
242- }
243-
244-
245-func bb (aY,p) = {
246- let bc = (toString(aY.caller) == valueOrElse(getString(o(p)), b))
247- if (bc)
244+func bc (aZ,s) = {
245+ let bd = (toString(aZ.caller) == valueOrElse(getString(r(s)), b))
246+ if (bd)
248247 then true
249248 else {
250- let bd = aX(aY)
251- if ((bd == bd))
249+ let be = aY(aZ)
250+ if ((be == be))
252251 then true
253252 else throw("Strict value is not equal to itself.")
254253 }
255254 }
256255
257256
258-@Callable(aY)
259-func constructor (K) = {
260- let bd = aX(aY)
261- if ((bd == bd))
262- then [StringEntry(m(), K)]
257+@Callable(aZ)
258+func constructor (N) = {
259+ let be = aY(aZ)
260+ if ((be == be))
261+ then [StringEntry(p(), N)]
263262 else throw("Strict value is not equal to itself.")
264263 }
265264
266265
267266
268-@Callable(aY)
269-func adminRegisterAsset (j,be,bf,bg,bh,bi,bj) = {
270- let aL = fromBase58String(j)
271- let bk = value(assetInfo(aL)).decimals
272- let bl = aX(aY)
273- if ((bl == bl))
274- then if ((toString(addressFromStringValue(bi)) != bi))
267+@Callable(aZ)
268+func adminRegisterAsset (m,bf,bg,bh,bi,bj,bk) = {
269+ let aM = fromBase58String(m)
270+ let bl = value(assetInfo(aM)).decimals
271+ let bm = aY(aZ)
272+ if ((bm == bm))
273+ then if ((toString(addressFromStringValue(bj)) != bj))
275274 then throw("invalid shutdownManagerAddress")
276- else if ((0 > bh))
277- then throw(("invalid getDelayinBlocks=" + toString(bh)))
275+ else if ((0 > bi))
276+ then throw(("invalid getDelayinBlocks=" + toString(bi)))
278277 else {
279- let bm = Issue(be, bf, 1, bk, true)
280- let aN = calculateAssetId(bm)
281- let G = toBase58String(aN)
282- let S = ((100 * 1000) * 1000)
283- let R = pow(10, 0, bk, 0, 0, DOWN)
284- let bn = (1 * S)
285- let bo = valueOrElse(getInteger(this, r()), 0)
286- let B = toString(bo)
287- let bp = invoke(K(), "createOrUpdate", [G, bg, false], nil)
288- if ((bp == bp))
278+ let bn = Issue(bf, bg, 1, bl, true)
279+ let aO = calculateAssetId(bn)
280+ let J = toBase58String(aO)
281+ let V = ((100 * 1000) * 1000)
282+ let U = pow(10, 0, bl, 0, 0, DOWN)
283+ let bo = (1 * V)
284+ let bp = valueOrElse(getInteger(this, u()), 0)
285+ let E = toString(bp)
286+ let bq = invoke(N(), "createOrUpdate", [J, bh, false], nil)
287+ if ((bq == bq))
289288 then {
290- let bq = invoke(K(), "addLabel", [G, "STAKING_LP"], nil)
291- if ((bq == bq))
292- then [StringEntry(n(j), Q(G, B, R, S, bh)), StringEntry(C(bo), j), StringEntry(E(j), B), StringEntry(F(G), j), StringEntry(H(j), G), BooleanEntry(I(B), false), StringEntry(J(B), bi), IntegerEntry(r(), (bo + 1)), IntegerEntry(s(B), bn), IntegerEntry(w(B, height, lastBlock.timestamp), bn), bm, Burn(aN, 1), StringEntry(o(j), bj)]
289+ let br = invoke(N(), "addLabel", [J, "STAKING_LP"], nil)
290+ if ((br == br))
291+ then [StringEntry(q(m), T(J, E, U, V, bi)), StringEntry(F(bp), m), StringEntry(H(m), E), StringEntry(I(J), m), StringEntry(K(m), J), BooleanEntry(L(E), false), StringEntry(M(E), bj), IntegerEntry(u(), (bp + 1)), IntegerEntry(v(E), bo), IntegerEntry(z(E, height, lastBlock.timestamp), bo), bn, Burn(aO, 1), StringEntry(r(m), bk)]
293292 else throw("Strict value is not equal to itself.")
294293 }
295294 else throw("Strict value is not equal to itself.")
299298
300299
301300
302-@Callable(aY)
303-func shutdownPut (br) = {
304- let bs = toString(br)
305- let bt = c(C(br))
306- let bi = c(J(bs))
307- if ((1 > size(bt)))
301+@Callable(aZ)
302+func shutdownPut (bs) = {
303+ let bt = toString(bs)
304+ let bu = c(F(bs))
305+ let bj = c(M(bt))
306+ if ((1 > size(bu)))
308307 then throw("invalid internalBaseAssetId")
309- else if ((toString(aY.caller) != bi))
308+ else if ((toString(aZ.caller) != bj))
310309 then throw("access denied")
311- else [BooleanEntry(I(toString(br)), true)]
310+ else [BooleanEntry(L(toString(bs)), true)]
312311 }
313312
314313
315314
316-@Callable(aY)
315+@Callable(aZ)
317316 func put () = {
318- let bu = value(aY.payments[0])
319- let aL = value(bu.assetId)
320- let j = toBase58String(aL)
321- let k = toString(aY.caller)
322- let aU = aB(j)
323- let G = aU[L]
324- let aN = fromBase58String(G)
325- let R = parseIntValue(aU[N])
326- let S = parseIntValue(aU[O])
327- let B = aU[M]
328- let bv = e(I(B))
329- if (bv)
317+ let bv = value(aZ.payments[0])
318+ let aM = value(bv.assetId)
319+ let m = toBase58String(aM)
320+ let n = toString(aZ.caller)
321+ let aV = aE(m)
322+ let J = aV[O]
323+ let aO = fromBase58String(J)
324+ let U = parseIntValue(aV[Q])
325+ let V = parseIntValue(aV[R])
326+ let E = aV[P]
327+ let bw = e(L(E))
328+ if (bw)
330329 then throw("put operation is blocked")
331330 else {
332- let bw = (aJ(j) + bu.amount)
333- let aq = aS(B, aL, aN, R, S)._1
334- let X = fraction(bu.amount, S, aq, CEILING)
335-[Reissue(aN, X, true), ScriptTransfer(aY.caller, X, aN), StringEntry(ab("P", B, k, toBase58String(aY.transactionId)), aw("FINISHED", bu.amount, aq, X, height, lastBlock.timestamp, height, lastBlock.timestamp)), ScriptTransfer(addressFromStringValue(value(getString(o(j)))), bu.amount, aL), IntegerEntry(q(j), bw)]
331+ let bx = (aK(m) + bv.amount)
332+ let at = aT(E, aM, aO, U, V)._1
333+ let aa = fraction(bv.amount, V, at, CEILING)
334+[Reissue(aO, aa, true), ScriptTransfer(aZ.caller, aa, aO), StringEntry(ae("P", E, n, toBase58String(aZ.transactionId)), az("FINISHED", bv.amount, at, aa, height, lastBlock.timestamp, height, lastBlock.timestamp)), ScriptTransfer(addressFromStringValue(value(getString(r(m)))), bv.amount, aM), IntegerEntry(t(m), bx)]
336335 }
337336 }
338337
339338
340339
341-@Callable(aY)
340+@Callable(aZ)
342341 func submitGetRequest () = {
343- let bu = value(aY.payments[0])
344- let aN = value(bu.assetId)
345- let G = toBase58String(aN)
346- let bx = toBase58String(aY.callerPublicKey)
347- let ad = aY.caller
348- let k = toString(ad)
349- let X = bu.amount
350- let j = c(F(G))
351- let aL = fromBase58String(j)
352- let aU = aB(j)
353- let R = parseIntValue(aU[N])
354- let S = parseIntValue(aU[O])
355- let by = parseIntValue(aU[P])
356- let B = aU[M]
357- let aq = aS(B, aL, aN, R, S)._1
358- let Y = fraction(X, aq, S)
359- let bz = ab("G", B, k, toBase58String(aY.transactionId))
360- let bA = aw("PENDING", X, aq, Y, height, lastBlock.timestamp, (height + by), 0)
361-[Burn(aN, X), StringEntry(bz, bA), aC(z(B), X, Y), aC(A(B, k), X, Y), IntegerEntry(q(j), (aJ(j) - Y))]
342+ let bv = value(aZ.payments[0])
343+ let aO = value(bv.assetId)
344+ let J = toBase58String(aO)
345+ let by = toBase58String(aZ.callerPublicKey)
346+ let ag = aZ.caller
347+ let n = toString(ag)
348+ let aa = bv.amount
349+ let m = c(I(J))
350+ let aM = fromBase58String(m)
351+ let aV = aE(m)
352+ let U = parseIntValue(aV[Q])
353+ let V = parseIntValue(aV[R])
354+ let bz = parseIntValue(aV[S])
355+ let E = aV[P]
356+ let at = aT(E, aM, aO, U, V)._1
357+ let ab = fraction(aa, at, V)
358+ let bA = ae("G", E, n, toBase58String(aZ.transactionId))
359+ let bB = az("PENDING", aa, at, ab, height, lastBlock.timestamp, (height + bz), 0)
360+[Burn(aO, aa), StringEntry(bA, bB), aF(C(E), aa, ab), aF(D(E, n), aa, ab), IntegerEntry(t(m), (aK(m) - ab))]
362361 }
363362
364363
365364
366-@Callable(aY)
367-func executeGetRequest (j,k,l) = {
368- let ad = addressFromStringValue(k)
369- let bB = aB(j)
370- let aN = fromBase58String(bB[L])
371- let aL = fromBase58String(j)
372- let B = bB[M]
373- let bz = ab("G", B, k, l)
374- let bC = split(c(bz), a)
375- let ao = bC[af]
376- let au = parseIntValue(bC[al])
377- let bD = parseIntValue(bC[ag])
378- let bE = parseIntValue(bC[ai])
379- if ((ao != "PENDING"))
380- then h("Status is not PENDING", j, k, l)
381- else if ((au > height))
382- then h(((("EndHeight[" + toString(au)) + "] > ") + toString(height)), j, k, l)
383- else [ScriptTransfer(ad, bE, aL), StringEntry(bz, ax(bC, "FINISHED", lastBlock.timestamp)), aE(z(B), bD, bE), aE(A(B, k), bD, bE)]
365+@Callable(aZ)
366+func executeGetRequest (m,n,o) = {
367+ let ag = addressFromStringValue(n)
368+ let bC = aE(m)
369+ let aO = fromBase58String(bC[O])
370+ let aM = fromBase58String(m)
371+ let E = bC[P]
372+ let bA = ae("G", E, n, o)
373+ let bD = split(c(bA), a)
374+ let ar = bD[ai]
375+ let ax = parseIntValue(bD[ao])
376+ let bE = parseIntValue(bD[aj])
377+ let bF = parseIntValue(bD[al])
378+ if ((ar != "PENDING"))
379+ then k("Status is not PENDING", m, n, o)
380+ else if ((ax > height))
381+ then k(((("EndHeight[" + toString(ax)) + "] > ") + toString(height)), m, n, o)
382+ else [ScriptTransfer(ag, bF, aM), StringEntry(bA, aA(bD, "FINISHED", lastBlock.timestamp)), aH(C(E), bE, bF), aH(D(E, n), bE, bF)]
384383 }
385384
386385
387386
388-@Callable(aY)
389-func topUpBalance (j,bF) = {
390- let bB = aB(j)
391- let bu = value(aY.payments[0])
392- let bG = value(bu.assetId)
393- let bH = toBase58String(bG)
394- let aN = fromBase58String(bB[L])
395- let R = parseIntValue(bB[N])
396- let S = parseIntValue(bB[O])
397- let B = bB[M]
398- let bI = u(B, toString(aY.caller))
399- let aW = valueOrElse(getInteger(this, bI), 0)
400- let bJ = [bb(aY, j), if ((aW != height))
387+@Callable(aZ)
388+func topUpBalance (m,bG) = {
389+ let bC = aE(m)
390+ let bv = value(aZ.payments[0])
391+ let bH = value(bv.assetId)
392+ let bI = toBase58String(bH)
393+ let aO = fromBase58String(bC[O])
394+ let U = parseIntValue(bC[Q])
395+ let V = parseIntValue(bC[R])
396+ let E = bC[P]
397+ let bJ = x(E, toString(aZ.caller))
398+ let aX = valueOrElse(getInteger(this, bJ), 0)
399+ let bK = [bc(aZ, m), if ((aX != height))
401400 then true
402- else throw("only one topUp per block is allowed"), if ((bF > 0))
401+ else throw("only one topUp per block is allowed"), if ((bG > 0))
403402 then true
404403 else throw("only positive delta is allowed")]
405- if ((bJ == bJ))
406- then if ((j != bH))
404+ if ((bK == bK))
405+ then if ((m != bI))
407406 then throw("attached payment's asset id is NOT matched passed baseAssetStr")
408- else if ((size(aY.payments) > 1))
407+ else if ((size(aZ.payments) > 1))
409408 then throw("only one payment can be attached")
410409 else {
411- let aq = aK(B, bG, bF, aN, R, S)._1
412-[IntegerEntry(s(B), aq), IntegerEntry(w(B, height, lastBlock.timestamp), aq), IntegerEntry(bI, height), IntegerEntry(q(bH), (aJ(bH) + bF))]
410+ let at = aL(E, bH, bG, aO, U, V)._1
411+[IntegerEntry(v(E), at), IntegerEntry(z(E, height, lastBlock.timestamp), at), IntegerEntry(bJ, height), IntegerEntry(t(bI), (aK(bI) + bG))]
413412 }
414413 else throw("Strict value is not equal to itself.")
415414 }
416415
417416
418417
419-@Callable(aY)
420-func currentSysParamsREST (j) = {
421- let bK = aT(j)
422- let aq = bK._1.value
423- let S = bK._2.value
424- let aP = bK._3.value
425- let aO = bK._4.value
426- let aQ = bK._5.value
427- let aR = bK._6.value
428- let bL = makeString(["startCurrentSysParamsREST", toString(aq), toString(S), toString(aP), toString(aO), toString(aQ), toString(aR), "endCurrentSysParamsREST"], a)
429- throw(bL)
418+@Callable(aZ)
419+func currentSysParamsREST (m) = {
420+ let bL = aU(m)
421+ let at = bL._1.value
422+ let V = bL._2.value
423+ let aQ = bL._3.value
424+ let aP = bL._4.value
425+ let aR = bL._5.value
426+ let aS = bL._6.value
427+ let bM = makeString(["startCurrentSysParamsREST", toString(at), toString(V), toString(aQ), toString(aP), toString(aR), toString(aS), "endCurrentSysParamsREST"], a)
428+ throw(bM)
430429 }
431430
432431
433-
434-@Callable(aY)
435-func setManager (bM) = {
436- let bd = aX(aY)
437- if ((bd == bd))
438- then {
439- let bN = fromBase58String(bM)
440- if ((bN == bN))
441- then [StringEntry(g(), bM)]
442- else throw("Strict value is not equal to itself.")
443- }
444- else throw("Strict value is not equal to itself.")
445- }
446-
447-
448-
449-@Callable(aY)
450-func confirmManager () = {
451- let bO = aI()
452- let bP = if (isDefined(bO))
453- then true
454- else throw("no pending manager")
455- if ((bP == bP))
456- then {
457- let bQ = if ((aY.callerPublicKey == value(bO)))
458- then true
459- else throw("you are not pending manager")
460- if ((bQ == bQ))
461- then [StringEntry(f(), toBase58String(value(bO))), DeleteEntry(g())]
462- else throw("Strict value is not equal to itself.")
463- }
464- else throw("Strict value is not equal to itself.")
465- }
466-
467-
468-@Verifier(bR)
469-func bS () = {
470- let bT = {
471- let aG = aF()
472- if ($isInstanceOf(aG, "ByteVector"))
432+@Verifier(bN)
433+func bO () = {
434+ let bP = {
435+ let i = aI()
436+ if ($isInstanceOf(i, "ByteVector"))
473437 then {
474- let ba = aG
475- ba
438+ let bb = i
439+ bb
476440 }
477- else if ($isInstanceOf(aG, "Unit"))
478- then bR.senderPublicKey
441+ else if ($isInstanceOf(i, "Unit"))
442+ then bN.senderPublicKey
479443 else throw("Match error")
480444 }
481- sigVerify(bR.bodyBytes, bR.proofs[0], bT)
445+ sigVerify(bN.bodyBytes, bN.proofs[0], bP)
482446 }
483447
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 5 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = "__"
55
66 let b = ""
77
88 func c (d) = valueOrErrorMessage(getString(this, d), ("No data for this.key=" + d))
99
1010
1111 func e (d) = valueOrErrorMessage(getBoolean(this, d), ("No data for this.key=" + d))
1212
1313
1414 func f () = makeString(["%s", "managerPublicKey"], a)
1515
1616
17-func g () = makeString(["%s", "pendingManagerPublicKey"], a)
17+func g () = "%s__managerVaultAddress"
1818
1919
20-func h (i,j,k,l) = throw(((((((i + ": baseAssetStr=") + j) + " userAddressStr=") + k) + " getTxIdStr=") + l))
21-
22-
23-func m () = makeString(["%s", "assetsStoreContract"], a)
24-
25-
26-func n (j) = ("%s%s%s__config__asset__" + j)
27-
28-
29-func o (p) = makeString(["%s%s", "proxyAddress", p], a)
30-
31-
32-func q (p) = makeString(["%s%s", "balance", p], a)
33-
34-
35-func r () = "%s__nextInternalAssetId"
36-
37-
38-func s (t) = ("%s%s%d__price__last__" + t)
39-
40-
41-func u (t,v) = makeString(["%s%s%s%d%s__topup__last__height", t, v], a)
42-
43-
44-func w (t,x,y) = makeString(["%s%s%d%d%d__price__history", t, toString(x), toString(y)], a)
45-
46-
47-func z (t) = ("%s%s%d__total__locked__" + t)
48-
49-
50-func A (B,k) = makeString(["%s%s%d%s__total__locked", B, k], a)
51-
52-
53-func C (D) = ("%s%s%d__mappings__internal2baseAssetId__" + toString(D))
54-
55-
56-func E (j) = ("%s%s%s__mappings__baseAsset2internalId__" + j)
57-
58-
59-func F (G) = ("%s%s%s__mappings__share2baseAssetId__" + G)
60-
61-
62-func H (j) = ("%s%s%s__mappings__baseAsset2shareId__" + j)
63-
64-
65-func I (B) = ("%s%s%d__shutdown__put__" + B)
66-
67-
68-func J (B) = ("%s%s%d__shutdown__manager__" + B)
69-
70-
71-func K () = addressFromStringValue(value(getString(m())))
72-
73-
74-let L = 1
75-
76-let M = 2
77-
78-let N = 3
79-
80-let O = 4
81-
82-let P = 5
83-
84-func Q (G,B,R,S,T) = makeString(["%s%d%d%d%d", G, B, toString(R), toString(S), toString(T)], a)
85-
86-
87-let U = 1
88-
89-let V = 2
90-
91-func W (X,Y) = makeString(["%d%d", toString(X), toString(Y)], a)
92-
93-
94-func Z (d) = {
95- let aa = split(valueOrElse(getString(this, d), W(0, 0)), a)
96-[-1, parseIntValue(aa[U]), parseIntValue(aa[V])]
20+func h () = {
21+ let i = getString(g())
22+ if ($isInstanceOf(i, "String"))
23+ then {
24+ let j = i
25+ addressFromStringValue(j)
26+ }
27+ else this
9728 }
9829
9930
100-func ab (ac,B,ad,ae) = makeString(["%s%d%s%s", ac, B, ad, ae], a)
31+func k (l,m,n,o) = throw(((((((l + ": baseAssetStr=") + m) + " userAddressStr=") + n) + " getTxIdStr=") + o))
10132
10233
103-let af = 1
104-
105-let ag = 2
106-
107-let ah = 3
108-
109-let ai = 4
110-
111-let aj = 5
112-
113-let ak = 6
114-
115-let al = 7
116-
117-let am = 8
118-
119-func an (ao,ap,aq,ar,as,at,au,av) = makeString(["%s%d%d%d%d%d%d%d", ao, ap, aq, ar, as, at, au, av], a)
34+func p () = makeString(["%s", "assetsStoreContract"], a)
12035
12136
122-func aw (ao,ap,aq,ar,as,at,au,av) = an(ao, toString(ap), toString(aq), toString(ar), toString(as), toString(at), toString(au), toString(av))
37+func q (m) = ("%s%s%s__config__asset__" + m)
12338
12439
125-func ax (ay,az,aA) = an(az, ay[ag], ay[ah], ay[ai], ay[aj], ay[ak], ay[al], toString(aA))
40+func r (s) = makeString(["%s%s", "proxyAddress", s], a)
12641
12742
128-func aB (j) = {
129- let d = n(j)
43+func t (s) = makeString(["%s%s", "balance", s], a)
44+
45+
46+func u () = "%s__nextInternalAssetId"
47+
48+
49+func v (w) = ("%s%s%d__price__last__" + w)
50+
51+
52+func x (w,y) = makeString(["%s%s%s%d%s__topup__last__height", w, y], a)
53+
54+
55+func z (w,A,B) = makeString(["%s%s%d%d%d__price__history", w, toString(A), toString(B)], a)
56+
57+
58+func C (w) = ("%s%s%d__total__locked__" + w)
59+
60+
61+func D (E,n) = makeString(["%s%s%d%s__total__locked", E, n], a)
62+
63+
64+func F (G) = ("%s%s%d__mappings__internal2baseAssetId__" + toString(G))
65+
66+
67+func H (m) = ("%s%s%s__mappings__baseAsset2internalId__" + m)
68+
69+
70+func I (J) = ("%s%s%s__mappings__share2baseAssetId__" + J)
71+
72+
73+func K (m) = ("%s%s%s__mappings__baseAsset2shareId__" + m)
74+
75+
76+func L (E) = ("%s%s%d__shutdown__put__" + E)
77+
78+
79+func M (E) = ("%s%s%d__shutdown__manager__" + E)
80+
81+
82+func N () = addressFromStringValue(value(getString(p())))
83+
84+
85+let O = 1
86+
87+let P = 2
88+
89+let Q = 3
90+
91+let R = 4
92+
93+let S = 5
94+
95+func T (J,E,U,V,W) = makeString(["%s%d%d%d%d", J, E, toString(U), toString(V), toString(W)], a)
96+
97+
98+let X = 1
99+
100+let Y = 2
101+
102+func Z (aa,ab) = makeString(["%d%d", toString(aa), toString(ab)], a)
103+
104+
105+func ac (d) = {
106+ let ad = split(valueOrElse(getString(this, d), Z(0, 0)), a)
107+[-1, parseIntValue(ad[X]), parseIntValue(ad[Y])]
108+ }
109+
110+
111+func ae (af,E,ag,ah) = makeString(["%s%d%s%s", af, E, ag, ah], a)
112+
113+
114+let ai = 1
115+
116+let aj = 2
117+
118+let ak = 3
119+
120+let al = 4
121+
122+let am = 5
123+
124+let an = 6
125+
126+let ao = 7
127+
128+let ap = 8
129+
130+func aq (ar,as,at,au,av,aw,ax,ay) = makeString(["%s%d%d%d%d%d%d%d", ar, as, at, au, av, aw, ax, ay], a)
131+
132+
133+func az (ar,as,at,au,av,aw,ax,ay) = aq(ar, toString(as), toString(at), toString(au), toString(av), toString(aw), toString(ax), toString(ay))
134+
135+
136+func aA (aB,aC,aD) = aq(aC, aB[aj], aB[ak], aB[al], aB[am], aB[an], aB[ao], toString(aD))
137+
138+
139+func aE (m) = {
140+ let d = q(m)
130141 split(c(d), a)
131142 }
132143
133144
134-func aC (d,X,Y) = {
135- let aD = Z(d)
136- StringEntry(d, W((aD[U] + X), (aD[V] + Y)))
145+func aF (d,aa,ab) = {
146+ let aG = ac(d)
147+ StringEntry(d, Z((aG[X] + aa), (aG[Y] + ab)))
137148 }
138149
139150
140-func aE (d,X,Y) = {
141- let aD = Z(d)
142- StringEntry(d, W((aD[U] - X), (aD[V] - Y)))
151+func aH (d,aa,ab) = {
152+ let aG = ac(d)
153+ StringEntry(d, Z((aG[X] - aa), (aG[Y] - ab)))
143154 }
144155
145156
146-func aF () = {
147- let aG = getString(f())
148- if ($isInstanceOf(aG, "String"))
157+func aI () = {
158+ let aJ = h()
159+ let i = getString(aJ, f())
160+ if ($isInstanceOf(i, "String"))
149161 then {
150- let aH = aG
151- fromBase58String(aH)
162+ let j = i
163+ fromBase58String(j)
152164 }
153- else if ($isInstanceOf(aG, "Unit"))
165+ else if ($isInstanceOf(i, "Unit"))
154166 then unit
155167 else throw("Match error")
156168 }
157169
158170
159-func aI () = {
160- let aG = getString(g())
161- if ($isInstanceOf(aG, "String"))
171+func aK (s) = valueOrElse(getInteger(t(s)), 0)
172+
173+
174+func aL (E,aM,aN,aO,U,V) = {
175+ let ad = ac(C(E))
176+ let aP = ad[Y]
177+ let aQ = aK(toBase58String(aM))
178+ let aR = (aQ + aN)
179+ if ((0 > aR))
180+ then throw(((("baseAssetBalanceConsideringLock < 0: baseAssetBalance=" + toString(aQ)) + " baseAssetBalanceConsideringLock=") + toString(aR)))
181+ else {
182+ let aS = value(assetInfo(aO)).quantity
183+ let at = if ((aS == 0))
184+ then (1 * V)
185+ else fraction(aR, V, aS)
186+ $Tuple5(at, aQ, aP, aR, aS)
187+ }
188+ }
189+
190+
191+func aT (E,aM,aO,U,V) = {
192+ let ad = ac(C(E))
193+ let aP = ad[Y]
194+ let aQ = aK(toBase58String(aM))
195+ let aR = aQ
196+ let aS = value(assetInfo(aO)).quantity
197+ let at = value(getInteger(v(E)))
198+ $Tuple5(at, aQ, aP, aR, aS)
199+ }
200+
201+
202+func aU (m) = {
203+ let aM = fromBase58String(m)
204+ let aV = aE(m)
205+ let J = aV[O]
206+ let aO = fromBase58String(J)
207+ let U = parseIntValue(aV[Q])
208+ let V = parseIntValue(aV[R])
209+ let E = aV[P]
210+ let aW = aT(E, aM, aO, U, V)
211+ let aX = {
212+ let i = getInteger(x(E, getStringValue(r(m))))
213+ if ($isInstanceOf(i, "Int"))
214+ then {
215+ let A = i
216+ value(A)
217+ }
218+ else if ($isInstanceOf(i, "Unit"))
219+ then getIntegerValue(x(E, toString(addressFromPublicKey(fromBase58String(getStringValue(f()))))))
220+ else throw("undefined behaviour in privateCurrentSysParamsREST match")
221+ }
222+ $Tuple8(IntegerEntry("price", aW._1), IntegerEntry("decimalsMultPrice", V), IntegerEntry("baseAssetBalance", aW._2), IntegerEntry("totalLockedBaseAmount", aW._3), IntegerEntry("baseAssetBalanceConsideringLock", aW._4), IntegerEntry("shareEmission", aW._5), IntegerEntry("baseAssetDecimals", value(assetInfo(aM)).decimals), IntegerEntry("lastTopUpTimestamp", value(blockInfoByHeight(aX)).timestamp))
223+ }
224+
225+
226+func aY (aZ) = {
227+ let ba = throw("permission denied")
228+ let i = aI()
229+ if ($isInstanceOf(i, "ByteVector"))
162230 then {
163- let aH = aG
164- fromBase58String(aH)
231+ let bb = i
232+ if ((aZ.callerPublicKey == bb))
233+ then true
234+ else ba
165235 }
166- else if ($isInstanceOf(aG, "Unit"))
167- then unit
236+ else if ($isInstanceOf(i, "Unit"))
237+ then if ((aZ.caller == this))
238+ then true
239+ else ba
168240 else throw("Match error")
169241 }
170242
171243
172-func aJ (p) = valueOrElse(getInteger(q(p)), 0)
173-
174-
175-func aK (B,aL,aM,aN,R,S) = {
176- let aa = Z(z(B))
177- let aO = aa[V]
178- let aP = aJ(toBase58String(aL))
179- let aQ = (aP + aM)
180- if ((0 > aQ))
181- then throw(((("baseAssetBalanceConsideringLock < 0: baseAssetBalance=" + toString(aP)) + " baseAssetBalanceConsideringLock=") + toString(aQ)))
182- else {
183- let aR = value(assetInfo(aN)).quantity
184- let aq = if ((aR == 0))
185- then (1 * S)
186- else fraction(aQ, S, aR)
187- $Tuple5(aq, aP, aO, aQ, aR)
188- }
189- }
190-
191-
192-func aS (B,aL,aN,R,S) = {
193- let aa = Z(z(B))
194- let aO = aa[V]
195- let aP = aJ(toBase58String(aL))
196- let aQ = aP
197- let aR = value(assetInfo(aN)).quantity
198- let aq = value(getInteger(s(B)))
199- $Tuple5(aq, aP, aO, aQ, aR)
200- }
201-
202-
203-func aT (j) = {
204- let aL = fromBase58String(j)
205- let aU = aB(j)
206- let G = aU[L]
207- let aN = fromBase58String(G)
208- let R = parseIntValue(aU[N])
209- let S = parseIntValue(aU[O])
210- let B = aU[M]
211- let aV = aS(B, aL, aN, R, S)
212- let aW = {
213- let aG = getInteger(u(B, getStringValue(o(j))))
214- if ($isInstanceOf(aG, "Int"))
215- then {
216- let x = aG
217- value(x)
218- }
219- else if ($isInstanceOf(aG, "Unit"))
220- then getIntegerValue(u(B, toString(addressFromPublicKey(fromBase58String(getStringValue(f()))))))
221- else throw("undefined behaviour in privateCurrentSysParamsREST match")
222- }
223- $Tuple8(IntegerEntry("price", aV._1), IntegerEntry("decimalsMultPrice", S), IntegerEntry("baseAssetBalance", aV._2), IntegerEntry("totalLockedBaseAmount", aV._3), IntegerEntry("baseAssetBalanceConsideringLock", aV._4), IntegerEntry("shareEmission", aV._5), IntegerEntry("baseAssetDecimals", value(assetInfo(aL)).decimals), IntegerEntry("lastTopUpTimestamp", value(blockInfoByHeight(aW)).timestamp))
224- }
225-
226-
227-func aX (aY) = {
228- let aZ = throw("permission denied")
229- let aG = aF()
230- if ($isInstanceOf(aG, "ByteVector"))
231- then {
232- let ba = aG
233- if ((aY.callerPublicKey == ba))
234- then true
235- else aZ
236- }
237- else if ($isInstanceOf(aG, "Unit"))
238- then if ((aY.caller == this))
239- then true
240- else aZ
241- else throw("Match error")
242- }
243-
244-
245-func bb (aY,p) = {
246- let bc = (toString(aY.caller) == valueOrElse(getString(o(p)), b))
247- if (bc)
244+func bc (aZ,s) = {
245+ let bd = (toString(aZ.caller) == valueOrElse(getString(r(s)), b))
246+ if (bd)
248247 then true
249248 else {
250- let bd = aX(aY)
251- if ((bd == bd))
249+ let be = aY(aZ)
250+ if ((be == be))
252251 then true
253252 else throw("Strict value is not equal to itself.")
254253 }
255254 }
256255
257256
258-@Callable(aY)
259-func constructor (K) = {
260- let bd = aX(aY)
261- if ((bd == bd))
262- then [StringEntry(m(), K)]
257+@Callable(aZ)
258+func constructor (N) = {
259+ let be = aY(aZ)
260+ if ((be == be))
261+ then [StringEntry(p(), N)]
263262 else throw("Strict value is not equal to itself.")
264263 }
265264
266265
267266
268-@Callable(aY)
269-func adminRegisterAsset (j,be,bf,bg,bh,bi,bj) = {
270- let aL = fromBase58String(j)
271- let bk = value(assetInfo(aL)).decimals
272- let bl = aX(aY)
273- if ((bl == bl))
274- then if ((toString(addressFromStringValue(bi)) != bi))
267+@Callable(aZ)
268+func adminRegisterAsset (m,bf,bg,bh,bi,bj,bk) = {
269+ let aM = fromBase58String(m)
270+ let bl = value(assetInfo(aM)).decimals
271+ let bm = aY(aZ)
272+ if ((bm == bm))
273+ then if ((toString(addressFromStringValue(bj)) != bj))
275274 then throw("invalid shutdownManagerAddress")
276- else if ((0 > bh))
277- then throw(("invalid getDelayinBlocks=" + toString(bh)))
275+ else if ((0 > bi))
276+ then throw(("invalid getDelayinBlocks=" + toString(bi)))
278277 else {
279- let bm = Issue(be, bf, 1, bk, true)
280- let aN = calculateAssetId(bm)
281- let G = toBase58String(aN)
282- let S = ((100 * 1000) * 1000)
283- let R = pow(10, 0, bk, 0, 0, DOWN)
284- let bn = (1 * S)
285- let bo = valueOrElse(getInteger(this, r()), 0)
286- let B = toString(bo)
287- let bp = invoke(K(), "createOrUpdate", [G, bg, false], nil)
288- if ((bp == bp))
278+ let bn = Issue(bf, bg, 1, bl, true)
279+ let aO = calculateAssetId(bn)
280+ let J = toBase58String(aO)
281+ let V = ((100 * 1000) * 1000)
282+ let U = pow(10, 0, bl, 0, 0, DOWN)
283+ let bo = (1 * V)
284+ let bp = valueOrElse(getInteger(this, u()), 0)
285+ let E = toString(bp)
286+ let bq = invoke(N(), "createOrUpdate", [J, bh, false], nil)
287+ if ((bq == bq))
289288 then {
290- let bq = invoke(K(), "addLabel", [G, "STAKING_LP"], nil)
291- if ((bq == bq))
292- then [StringEntry(n(j), Q(G, B, R, S, bh)), StringEntry(C(bo), j), StringEntry(E(j), B), StringEntry(F(G), j), StringEntry(H(j), G), BooleanEntry(I(B), false), StringEntry(J(B), bi), IntegerEntry(r(), (bo + 1)), IntegerEntry(s(B), bn), IntegerEntry(w(B, height, lastBlock.timestamp), bn), bm, Burn(aN, 1), StringEntry(o(j), bj)]
289+ let br = invoke(N(), "addLabel", [J, "STAKING_LP"], nil)
290+ if ((br == br))
291+ then [StringEntry(q(m), T(J, E, U, V, bi)), StringEntry(F(bp), m), StringEntry(H(m), E), StringEntry(I(J), m), StringEntry(K(m), J), BooleanEntry(L(E), false), StringEntry(M(E), bj), IntegerEntry(u(), (bp + 1)), IntegerEntry(v(E), bo), IntegerEntry(z(E, height, lastBlock.timestamp), bo), bn, Burn(aO, 1), StringEntry(r(m), bk)]
293292 else throw("Strict value is not equal to itself.")
294293 }
295294 else throw("Strict value is not equal to itself.")
296295 }
297296 else throw("Strict value is not equal to itself.")
298297 }
299298
300299
301300
302-@Callable(aY)
303-func shutdownPut (br) = {
304- let bs = toString(br)
305- let bt = c(C(br))
306- let bi = c(J(bs))
307- if ((1 > size(bt)))
301+@Callable(aZ)
302+func shutdownPut (bs) = {
303+ let bt = toString(bs)
304+ let bu = c(F(bs))
305+ let bj = c(M(bt))
306+ if ((1 > size(bu)))
308307 then throw("invalid internalBaseAssetId")
309- else if ((toString(aY.caller) != bi))
308+ else if ((toString(aZ.caller) != bj))
310309 then throw("access denied")
311- else [BooleanEntry(I(toString(br)), true)]
310+ else [BooleanEntry(L(toString(bs)), true)]
312311 }
313312
314313
315314
316-@Callable(aY)
315+@Callable(aZ)
317316 func put () = {
318- let bu = value(aY.payments[0])
319- let aL = value(bu.assetId)
320- let j = toBase58String(aL)
321- let k = toString(aY.caller)
322- let aU = aB(j)
323- let G = aU[L]
324- let aN = fromBase58String(G)
325- let R = parseIntValue(aU[N])
326- let S = parseIntValue(aU[O])
327- let B = aU[M]
328- let bv = e(I(B))
329- if (bv)
317+ let bv = value(aZ.payments[0])
318+ let aM = value(bv.assetId)
319+ let m = toBase58String(aM)
320+ let n = toString(aZ.caller)
321+ let aV = aE(m)
322+ let J = aV[O]
323+ let aO = fromBase58String(J)
324+ let U = parseIntValue(aV[Q])
325+ let V = parseIntValue(aV[R])
326+ let E = aV[P]
327+ let bw = e(L(E))
328+ if (bw)
330329 then throw("put operation is blocked")
331330 else {
332- let bw = (aJ(j) + bu.amount)
333- let aq = aS(B, aL, aN, R, S)._1
334- let X = fraction(bu.amount, S, aq, CEILING)
335-[Reissue(aN, X, true), ScriptTransfer(aY.caller, X, aN), StringEntry(ab("P", B, k, toBase58String(aY.transactionId)), aw("FINISHED", bu.amount, aq, X, height, lastBlock.timestamp, height, lastBlock.timestamp)), ScriptTransfer(addressFromStringValue(value(getString(o(j)))), bu.amount, aL), IntegerEntry(q(j), bw)]
331+ let bx = (aK(m) + bv.amount)
332+ let at = aT(E, aM, aO, U, V)._1
333+ let aa = fraction(bv.amount, V, at, CEILING)
334+[Reissue(aO, aa, true), ScriptTransfer(aZ.caller, aa, aO), StringEntry(ae("P", E, n, toBase58String(aZ.transactionId)), az("FINISHED", bv.amount, at, aa, height, lastBlock.timestamp, height, lastBlock.timestamp)), ScriptTransfer(addressFromStringValue(value(getString(r(m)))), bv.amount, aM), IntegerEntry(t(m), bx)]
336335 }
337336 }
338337
339338
340339
341-@Callable(aY)
340+@Callable(aZ)
342341 func submitGetRequest () = {
343- let bu = value(aY.payments[0])
344- let aN = value(bu.assetId)
345- let G = toBase58String(aN)
346- let bx = toBase58String(aY.callerPublicKey)
347- let ad = aY.caller
348- let k = toString(ad)
349- let X = bu.amount
350- let j = c(F(G))
351- let aL = fromBase58String(j)
352- let aU = aB(j)
353- let R = parseIntValue(aU[N])
354- let S = parseIntValue(aU[O])
355- let by = parseIntValue(aU[P])
356- let B = aU[M]
357- let aq = aS(B, aL, aN, R, S)._1
358- let Y = fraction(X, aq, S)
359- let bz = ab("G", B, k, toBase58String(aY.transactionId))
360- let bA = aw("PENDING", X, aq, Y, height, lastBlock.timestamp, (height + by), 0)
361-[Burn(aN, X), StringEntry(bz, bA), aC(z(B), X, Y), aC(A(B, k), X, Y), IntegerEntry(q(j), (aJ(j) - Y))]
342+ let bv = value(aZ.payments[0])
343+ let aO = value(bv.assetId)
344+ let J = toBase58String(aO)
345+ let by = toBase58String(aZ.callerPublicKey)
346+ let ag = aZ.caller
347+ let n = toString(ag)
348+ let aa = bv.amount
349+ let m = c(I(J))
350+ let aM = fromBase58String(m)
351+ let aV = aE(m)
352+ let U = parseIntValue(aV[Q])
353+ let V = parseIntValue(aV[R])
354+ let bz = parseIntValue(aV[S])
355+ let E = aV[P]
356+ let at = aT(E, aM, aO, U, V)._1
357+ let ab = fraction(aa, at, V)
358+ let bA = ae("G", E, n, toBase58String(aZ.transactionId))
359+ let bB = az("PENDING", aa, at, ab, height, lastBlock.timestamp, (height + bz), 0)
360+[Burn(aO, aa), StringEntry(bA, bB), aF(C(E), aa, ab), aF(D(E, n), aa, ab), IntegerEntry(t(m), (aK(m) - ab))]
362361 }
363362
364363
365364
366-@Callable(aY)
367-func executeGetRequest (j,k,l) = {
368- let ad = addressFromStringValue(k)
369- let bB = aB(j)
370- let aN = fromBase58String(bB[L])
371- let aL = fromBase58String(j)
372- let B = bB[M]
373- let bz = ab("G", B, k, l)
374- let bC = split(c(bz), a)
375- let ao = bC[af]
376- let au = parseIntValue(bC[al])
377- let bD = parseIntValue(bC[ag])
378- let bE = parseIntValue(bC[ai])
379- if ((ao != "PENDING"))
380- then h("Status is not PENDING", j, k, l)
381- else if ((au > height))
382- then h(((("EndHeight[" + toString(au)) + "] > ") + toString(height)), j, k, l)
383- else [ScriptTransfer(ad, bE, aL), StringEntry(bz, ax(bC, "FINISHED", lastBlock.timestamp)), aE(z(B), bD, bE), aE(A(B, k), bD, bE)]
365+@Callable(aZ)
366+func executeGetRequest (m,n,o) = {
367+ let ag = addressFromStringValue(n)
368+ let bC = aE(m)
369+ let aO = fromBase58String(bC[O])
370+ let aM = fromBase58String(m)
371+ let E = bC[P]
372+ let bA = ae("G", E, n, o)
373+ let bD = split(c(bA), a)
374+ let ar = bD[ai]
375+ let ax = parseIntValue(bD[ao])
376+ let bE = parseIntValue(bD[aj])
377+ let bF = parseIntValue(bD[al])
378+ if ((ar != "PENDING"))
379+ then k("Status is not PENDING", m, n, o)
380+ else if ((ax > height))
381+ then k(((("EndHeight[" + toString(ax)) + "] > ") + toString(height)), m, n, o)
382+ else [ScriptTransfer(ag, bF, aM), StringEntry(bA, aA(bD, "FINISHED", lastBlock.timestamp)), aH(C(E), bE, bF), aH(D(E, n), bE, bF)]
384383 }
385384
386385
387386
388-@Callable(aY)
389-func topUpBalance (j,bF) = {
390- let bB = aB(j)
391- let bu = value(aY.payments[0])
392- let bG = value(bu.assetId)
393- let bH = toBase58String(bG)
394- let aN = fromBase58String(bB[L])
395- let R = parseIntValue(bB[N])
396- let S = parseIntValue(bB[O])
397- let B = bB[M]
398- let bI = u(B, toString(aY.caller))
399- let aW = valueOrElse(getInteger(this, bI), 0)
400- let bJ = [bb(aY, j), if ((aW != height))
387+@Callable(aZ)
388+func topUpBalance (m,bG) = {
389+ let bC = aE(m)
390+ let bv = value(aZ.payments[0])
391+ let bH = value(bv.assetId)
392+ let bI = toBase58String(bH)
393+ let aO = fromBase58String(bC[O])
394+ let U = parseIntValue(bC[Q])
395+ let V = parseIntValue(bC[R])
396+ let E = bC[P]
397+ let bJ = x(E, toString(aZ.caller))
398+ let aX = valueOrElse(getInteger(this, bJ), 0)
399+ let bK = [bc(aZ, m), if ((aX != height))
401400 then true
402- else throw("only one topUp per block is allowed"), if ((bF > 0))
401+ else throw("only one topUp per block is allowed"), if ((bG > 0))
403402 then true
404403 else throw("only positive delta is allowed")]
405- if ((bJ == bJ))
406- then if ((j != bH))
404+ if ((bK == bK))
405+ then if ((m != bI))
407406 then throw("attached payment's asset id is NOT matched passed baseAssetStr")
408- else if ((size(aY.payments) > 1))
407+ else if ((size(aZ.payments) > 1))
409408 then throw("only one payment can be attached")
410409 else {
411- let aq = aK(B, bG, bF, aN, R, S)._1
412-[IntegerEntry(s(B), aq), IntegerEntry(w(B, height, lastBlock.timestamp), aq), IntegerEntry(bI, height), IntegerEntry(q(bH), (aJ(bH) + bF))]
410+ let at = aL(E, bH, bG, aO, U, V)._1
411+[IntegerEntry(v(E), at), IntegerEntry(z(E, height, lastBlock.timestamp), at), IntegerEntry(bJ, height), IntegerEntry(t(bI), (aK(bI) + bG))]
413412 }
414413 else throw("Strict value is not equal to itself.")
415414 }
416415
417416
418417
419-@Callable(aY)
420-func currentSysParamsREST (j) = {
421- let bK = aT(j)
422- let aq = bK._1.value
423- let S = bK._2.value
424- let aP = bK._3.value
425- let aO = bK._4.value
426- let aQ = bK._5.value
427- let aR = bK._6.value
428- let bL = makeString(["startCurrentSysParamsREST", toString(aq), toString(S), toString(aP), toString(aO), toString(aQ), toString(aR), "endCurrentSysParamsREST"], a)
429- throw(bL)
418+@Callable(aZ)
419+func currentSysParamsREST (m) = {
420+ let bL = aU(m)
421+ let at = bL._1.value
422+ let V = bL._2.value
423+ let aQ = bL._3.value
424+ let aP = bL._4.value
425+ let aR = bL._5.value
426+ let aS = bL._6.value
427+ let bM = makeString(["startCurrentSysParamsREST", toString(at), toString(V), toString(aQ), toString(aP), toString(aR), toString(aS), "endCurrentSysParamsREST"], a)
428+ throw(bM)
430429 }
431430
432431
433-
434-@Callable(aY)
435-func setManager (bM) = {
436- let bd = aX(aY)
437- if ((bd == bd))
438- then {
439- let bN = fromBase58String(bM)
440- if ((bN == bN))
441- then [StringEntry(g(), bM)]
442- else throw("Strict value is not equal to itself.")
443- }
444- else throw("Strict value is not equal to itself.")
445- }
446-
447-
448-
449-@Callable(aY)
450-func confirmManager () = {
451- let bO = aI()
452- let bP = if (isDefined(bO))
453- then true
454- else throw("no pending manager")
455- if ((bP == bP))
456- then {
457- let bQ = if ((aY.callerPublicKey == value(bO)))
458- then true
459- else throw("you are not pending manager")
460- if ((bQ == bQ))
461- then [StringEntry(f(), toBase58String(value(bO))), DeleteEntry(g())]
462- else throw("Strict value is not equal to itself.")
463- }
464- else throw("Strict value is not equal to itself.")
465- }
466-
467-
468-@Verifier(bR)
469-func bS () = {
470- let bT = {
471- let aG = aF()
472- if ($isInstanceOf(aG, "ByteVector"))
432+@Verifier(bN)
433+func bO () = {
434+ let bP = {
435+ let i = aI()
436+ if ($isInstanceOf(i, "ByteVector"))
473437 then {
474- let ba = aG
475- ba
438+ let bb = i
439+ bb
476440 }
477- else if ($isInstanceOf(aG, "Unit"))
478- then bR.senderPublicKey
441+ else if ($isInstanceOf(i, "Unit"))
442+ then bN.senderPublicKey
479443 else throw("Match error")
480444 }
481- sigVerify(bR.bodyBytes, bR.proofs[0], bT)
445+ sigVerify(bN.bodyBytes, bN.proofs[0], bP)
482446 }
483447

github/deemru/w8io/169f3d6 
129.48 ms