tx · CJASj7QXvp6QQUVdoaVjmEpTFAcPkCXUabAvTkycPBWr

3NAefciWv6f9fWvEXdGgpHfanJFG8HqfjuT:  -0.04200000 Waves

2023.05.04 12:23 [2562827] smart account 3NAefciWv6f9fWvEXdGgpHfanJFG8HqfjuT > SELF 0.00000000 Waves

{ "type": 13, "id": "CJASj7QXvp6QQUVdoaVjmEpTFAcPkCXUabAvTkycPBWr", "fee": 4200000, "feeAssetId": null, "timestamp": 1683192230271, "version": 2, "chainId": 84, "sender": "3NAefciWv6f9fWvEXdGgpHfanJFG8HqfjuT", "senderPublicKey": "D1BL65meykxFZTCuq7jq9HSGLLnWvQamQPUNrguW5w39", "proofs": [ "5Z8bWH19n8PyPYjU5LMMqXi8DpZ7ia7TwT5EQgjdwTLUaqM5sncTcqDHz9PFcmnPAp6eY7xdBwP7RqnzUFeszLhk" ], "script": "base64:BgLELAgCEgUKAwEEARIHCgUBBAEIARIDCgEIEgMKAQgSABIECgIBBBIECgIBBBIDCgEBEgASBAoCCAESABIECgIIARIECgIIARIECgIBARIDCgEBEgUKAwEBARIFCgMBCAESBAoCAQgSBAoCAQgSBAoCCAgSABIDCgEIEgUKAwEBARIECgIIARIECgIBARIECgIICBILCgkIAQECAQIIBAQSBgoECAgBCBIAIgZzY2FsZTgiDHNjYWxlOEJpZ0ludCIHc2NhbGUxOCIKemVyb0JpZ0ludCIEYmlnMCIEYmlnMSIEYmlnMiIEYmlnMyIEYmlnNCIKc2xpcHBhZ2U0RCILd2F2ZXNTdHJpbmciCmFtcEluaXRpYWwiBUFtdWx0IgVEY29udiIDU0VQIgVFTVBUWSIKUG9vbEFjdGl2ZSIKUG9vbFB1dERpcyIOUG9vbE1hdGNoZXJEaXMiDFBvb2xTaHV0ZG93biIOaWR4UG9vbEFkZHJlc3MiCWlkeFBvb2xTdCIJaWR4TFBBc0lkIglpZHhBbUFzSWQiCWlkeFByQXNJZCILaWR4QW10QXNEY20iDWlkeFByaWNlQXNEY20iC2lkeElBbXRBc0lk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b29mcwAABQJpQUYtd+g=", "height": 2562827, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: HEzWfHE964PR9sRh4xkjy6rrPNy9SPnyTtYTkFb66Jk4 Next: 2fALsp4rWUCvM7PUj4qiFBKW564nDE9M8sgt55Wyk1XV Diff:
OldNewDifferences
2323
2424 let k = "WAVES"
2525
26-let l = "100"
26+let l = 50
2727
28-let m = "1"
28+let m = "100"
2929
30-let n = "__"
30+let n = "1"
3131
32-let o = ""
32+let o = "__"
3333
34-let p = 1
34+let p = ""
3535
36-let q = 2
36+let q = 1
3737
38-let r = 3
38+let r = 2
3939
40-let s = 4
40+let s = 3
4141
42-let t = 1
42+let t = 4
4343
44-let u = 2
44+let u = 1
4545
46-let v = 3
46+let v = 2
4747
48-let w = 4
48+let w = 3
4949
50-let x = 5
50+let x = 4
5151
52-let y = 6
52+let y = 5
5353
54-let z = 7
54+let z = 6
5555
56-let A = 8
56+let A = 7
5757
58-let B = 9
58+let B = 8
5959
60-let C = 1
60+let C = 9
6161
62-let D = 6
62+let D = 1
6363
64-let E = 7
64+let E = 6
6565
66-let F = 10
66+let F = 7
6767
68-let G = fraction(10, a, 10000)
68+let G = 10
6969
70-func H (I,J) = fraction(toBigInt(I), c, toBigInt(J))
70+let H = fraction(10, a, 10000)
71+
72+func I (J,K) = fraction(toBigInt(J), c, toBigInt(K))
7173
7274
73-func K (I,J) = fraction(I, c, J)
75+func L (J,K) = fraction(J, c, K)
7476
7577
76-func L (M,N) = toInt(fraction(M, toBigInt(N), c))
78+func M (N,O) = toInt(fraction(N, toBigInt(O), c))
7779
7880
79-func O (M,N,P) = toInt(fraction(M, toBigInt(N), c, P))
81+func P (N,O,Q) = toInt(fraction(N, toBigInt(O), c, Q))
8082
8183
82-func Q (I,J) = fraction(I, c, toBigInt(J))
84+func R (J,K) = fraction(J, c, toBigInt(K))
8385
8486
85-func R (M,N) = fraction(M, toBigInt(N), c)
87+func S (N,O) = fraction(N, toBigInt(O), c)
8688
8789
88-func S (T,U,V) = fraction(T, U, V)
90+func T (U,V,W) = fraction(U, V, W)
8991
9092
91-func W (M) = if ((d > M))
92- then -(M)
93- else M
93+func X (N) = if ((d > N))
94+ then -(N)
95+ else N
9496
9597
96-func X (M) = if ((d > M))
97- then -(M)
98- else M
98+func Y (N) = if ((d > N))
99+ then -(N)
100+ else N
99101
100102
101-func Y () = "%s__factoryContract"
103+func Z () = "%s__factoryContract"
102104
103105
104-func Z () = "%s__managerPublicKey"
106+func aa () = "%s__managerPublicKey"
105107
106108
107-func aa () = "%s__pendingManagerPublicKey"
109+func ab () = "%s__pendingManagerPublicKey"
108110
109111
110-func ab () = "%s%s__price__last"
112+func ac () = "%s%s__price__last"
111113
112114
113-func ac (ad,ae) = makeString(["%s%s%d%d__price__history", toString(ad), toString(ae)], n)
115+func ad (ae,af) = makeString(["%s%s%d%d__price__history", toString(ae), toString(af)], o)
114116
115117
116-func af (ag,ah) = ((("%s%s%s__P__" + ag) + "__") + ah)
118+func ag (ah,ai) = ((("%s%s%s__P__" + ah) + "__") + ai)
117119
118120
119-func ai (ag,ah) = ((("%s%s%s__G__" + ag) + "__") + ah)
121+func aj (ah,ai) = ((("%s%s%s__G__" + ah) + "__") + ai)
120122
121123
122-func aj () = "%s__amountAsset"
124+func ak () = "%s__amountAsset"
123125
124126
125-func ak () = "%s__priceAsset"
127+func al () = "%s__priceAsset"
126128
127129
128-func al () = "%s__amp"
130+func am () = "%s__amp"
129131
130132
131-func am (an) = ("%s%d__amp__" + toString(an))
133+func an (ao) = ("%s%d__amp__" + toString(ao))
132134
133135
134-func ao () = "%s__changeAmpLastCall"
136+func ap () = "%s__changeAmpLastCall"
135137
136138
137-let ap = "%s__fee"
139+let aq = "%s__fee"
138140
139-let aq = valueOrElse(getInteger(this, ap), G)
141+let ar = valueOrElse(getInteger(this, aq), H)
140142
141-let ar = makeString(["%s", "dLp"], n)
143+let as = makeString(["%s", "dLp"], o)
142144
143-let as = makeString(["%s", "dLpRefreshedHeight"], n)
145+let at = makeString(["%s", "dLpRefreshedHeight"], o)
144146
145-let at = makeString(["%s", "refreshDLpDelay"], n)
147+let au = makeString(["%s", "refreshDLpDelay"], o)
146148
147-let au = 30
149+let av = 30
148150
149-let av = valueOrElse(getInteger(this, at), au)
151+let aw = valueOrElse(getInteger(this, au), av)
150152
151-func aw () = "%s__factoryConfig"
153+func ax () = "%s__factoryConfig"
152154
153155
154-func ax () = "%s%s__matcher__publicKey"
156+func ay () = "%s%s__matcher__publicKey"
155157
156158
157-func ay (az,aA) = (((("%d%d%s__" + az) + "__") + aA) + "__config")
159+func az (aA,aB) = (((("%d%d%s__" + aA) + "__") + aB) + "__config")
158160
159161
160-func aB (aC) = ("%s%s%s__mappings__baseAsset2internalId__" + aC)
162+func aC (aD) = ("%s%s%s__mappings__baseAsset2internalId__" + aD)
161163
162164
163-func aD () = "%s__shutdown"
165+func aE () = "%s__shutdown"
164166
165167
166-func aE () = "%s__allowedLpStableScriptHash"
168+func aF () = "%s__allowedLpStableScriptHash"
167169
168170
169-func aF () = "%s__feeCollectorAddress"
171+func aG () = "%s__feeCollectorAddress"
170172
171173
172-func aG (aH) = ("%s%s__skipOrderValidation__" + aH)
174+func aH (aI) = ("%s%s__skipOrderValidation__" + aI)
173175
174176
175-func aI (aJ,aK,aL,aM) = throw((((((((("order validation failed: orderValid=" + toString(aJ)) + " (") + aK) + ")") + " senderValid=") + toString(aL)) + " matcherValid=") + toString(aM)))
177+func aJ (aK,aL,aM,aN) = throw((((((((("order validation failed: orderValid=" + toString(aK)) + " (") + aL) + ")") + " senderValid=") + toString(aM)) + " matcherValid=") + toString(aN)))
176178
177179
178-func aN (aO,aP) = valueOrErrorMessage(getString(aO, aP), makeString(["mandatory ", toString(aO), ".", aP, " not defined"], ""))
180+func aO (aP,aQ) = valueOrErrorMessage(getString(aP, aQ), makeString(["mandatory ", toString(aP), ".", aQ, " not defined"], ""))
179181
180182
181-func aQ (aO,aP) = valueOrErrorMessage(getInteger(aO, aP), makeString(["mandatory ", toString(aO), ".", aP, " not defined"], ""))
183+func aR (aP,aQ) = valueOrErrorMessage(getInteger(aP, aQ), makeString(["mandatory ", toString(aP), ".", aQ, " not defined"], ""))
182184
183185
184-func aR (aS) = throw(makeString(["lp_stable.ride:", aS], " "))
186+func aS (aT) = throw(makeString(["lp_stable.ride:", aT], " "))
185187
186188
187-func aT (aS) = makeString(["lp_stable.ride:", aS], " ")
189+func aU (aT) = makeString(["lp_stable.ride:", aT], " ")
188190
189191
190-let aU = addressFromStringValue(aN(this, Y()))
192+let aV = addressFromStringValue(aO(this, Z()))
191193
192-let aV = {
193- let aW = invoke(aU, "getInFeeREADONLY", [toString(this)], nil)
194- if ($isInstanceOf(aW, "Int"))
195- then aW
196- else throw(($getType(aW) + " couldn't be cast to Int"))
194+let aW = {
195+ let aX = invoke(aV, "getInFeeREADONLY", [toString(this)], nil)
196+ if ($isInstanceOf(aX, "Int"))
197+ then aX
198+ else throw(($getType(aX) + " couldn't be cast to Int"))
197199 }
198200
199-let aX = {
200- let aW = invoke(aU, "getOutFeeREADONLY", [toString(this)], nil)
201- if ($isInstanceOf(aW, "Int"))
202- then aW
203- else throw(($getType(aW) + " couldn't be cast to Int"))
201+let aY = {
202+ let aX = invoke(aV, "getOutFeeREADONLY", [toString(this)], nil)
203+ if ($isInstanceOf(aX, "Int"))
204+ then aX
205+ else throw(($getType(aX) + " couldn't be cast to Int"))
204206 }
205207
206-let aY = aN(this, al())
208+let aZ = aO(this, am())
207209
208-func aZ () = valueOrElse(getBoolean(aU, aD()), false)
210+func ba () = valueOrElse(getBoolean(aV, aE()), false)
209211
210212
211-func ba () = fromBase58String(aN(aU, ax()))
213+func bb () = fromBase58String(aO(aV, ay()))
212214
213215
214-let bb = addressFromStringValue(aN(aU, aF()))
216+let bc = addressFromStringValue(aO(aV, aG()))
215217
216-func bc () = {
217- let bd = aN(this, aj())
218- let be = aN(this, ak())
219- let bf = aQ(aU, aB(be))
220- let az = aQ(aU, aB(bd))
221- split(aN(aU, ay(toString(az), toString(bf))), n)
218+func bd () = {
219+ let be = aO(this, ak())
220+ let bf = aO(this, al())
221+ let bg = aR(aV, aC(bf))
222+ let aA = aR(aV, aC(be))
223+ split(aO(aV, az(toString(aA), toString(bg))), o)
222224 }
223225
224226
225-func bg (bh) = if ((bh == k))
227+func bh (bi) = if ((bi == k))
226228 then unit
227- else fromBase58String(bh)
229+ else fromBase58String(bi)
228230
229231
230-func bi (bh) = if ((bh == unit))
232+func bj (bi) = if ((bi == unit))
231233 then k
232- else toBase58String(value(bh))
234+ else toBase58String(value(bi))
233235
234236
235-func bj (bk) = $Tuple9(addressFromStringValue(bk[t]), parseIntValue(bk[u]), fromBase58String(bk[v]), bg(bk[w]), bg(bk[x]), parseIntValue(bk[y]), parseIntValue(bk[z]), fromBase58String(bk[A]), fromBase58String(bk[B]))
237+func bk (bl) = $Tuple9(addressFromStringValue(bl[u]), parseIntValue(bl[v]), fromBase58String(bl[w]), bh(bl[x]), bh(bl[y]), parseIntValue(bl[z]), parseIntValue(bl[A]), fromBase58String(bl[B]), fromBase58String(bl[C]))
236238
237239
238-let bl = bj(bc())
240+let bm = bk(bd())
239241
240-let bm = bl
242+let bn = bm
241243
242-let bn = bm._1
244+let bo = bn._1
243245
244-let bo = bm._2
246+let bp = bn._2
245247
246-let bp = bm._3
248+let bq = bn._3
247249
248-let bq = bm._4
250+let br = bn._4
249251
250-let br = bm._5
252+let bs = bn._5
251253
252-let bs = bm._6
254+let bt = bn._6
253255
254-let bt = bm._7
256+let bu = bn._7
255257
256-let bu = bm._8
258+let bv = bn._8
257259
258-let bv = bm._9
260+let bw = bn._9
259261
260-func bw () = split(aN(aU, aw()), n)
262+func bx () = split(aO(aV, ax()), o)
261263
262264
263-let bx = bw()
265+let by = bx()
264266
265-let by = valueOrErrorMessage(addressFromString(bx[C]), "Invalid staking contract address")
267+let bz = valueOrErrorMessage(addressFromString(by[D]), "Invalid staking contract address")
266268
267-let bz = valueOrErrorMessage(addressFromString(bx[E]), "Invalid slipage contract address")
269+let bA = valueOrErrorMessage(addressFromString(by[F]), "Invalid slipage contract address")
268270
269-let bA = valueOrErrorMessage(addressFromString(bx[F]), "Invalid gwx contract address")
271+let bB = valueOrErrorMessage(addressFromString(by[G]), "Invalid gwx contract address")
270272
271-let bB = valueOrErrorMessage(addressFromString(bx[D]), "Invalid gwx contract address")
273+let bC = valueOrErrorMessage(addressFromString(by[E]), "Invalid gwx contract address")
272274
273-func bC (bD,bE,bF,bG,bH,bI,bJ,bK,bL,bM) = makeString(["%d%d%d%d%d%d%d%d%d%d", toString(bD), toString(bE), toString(bF), toString(bG), toString(bH), toString(bI), toString(bJ), toString(bK), toString(bL), toString(bM)], n)
275+func bD (bE,bF,bG,bH,bI,bJ,bK,bL,bM,bN) = makeString(["%d%d%d%d%d%d%d%d%d%d", toString(bE), toString(bF), toString(bG), toString(bH), toString(bI), toString(bJ), toString(bK), toString(bL), toString(bM), toString(bN)], o)
274276
275277
276-func bN (bO,bP,bQ,bG,bJ,bK) = makeString(["%d%d%d%d%d%d", toString(bO), toString(bP), toString(bQ), toString(bG), toString(bJ), toString(bK)], n)
278+func bO (bP,bQ,bR,bH,bK,bL) = makeString(["%d%d%d%d%d%d", toString(bP), toString(bQ), toString(bR), toString(bH), toString(bK), toString(bL)], o)
277279
278280
279-func bR (bS) = if ((bS == "WAVES"))
281+func bS (bT) = if ((bT == "WAVES"))
280282 then wavesBalance(this).available
281- else assetBalance(this, fromBase58String(bS))
283+ else assetBalance(this, fromBase58String(bT))
282284
283285
284-func bT (bU,bV) = fraction(bU, c, bV)
286+func bU (bV,bW) = fraction(bV, c, bW)
285287
286288
287-func bW (bU,bV,P) = fraction(bU, c, bV, P)
289+func bX (bV,bW,Q) = fraction(bV, c, bW, Q)
288290
289291
290-func bX (bY,bZ,ca) = {
291- let cb = fraction((bY - bZ), b, bZ)
292- let cc = ((ca - W(cb)) > d)
293- if (!(cc))
294- then throw(("Big slpg: " + toString(cb)))
295- else $Tuple2(cc, min([bY, bZ]))
292+func bY (bZ,ca,cb) = {
293+ let cc = fraction((bZ - ca), b, ca)
294+ let cd = ((cb - X(cc)) > d)
295+ if (!(cd))
296+ then throw(("Big slpg: " + toString(cc)))
297+ else $Tuple2(cd, min([bZ, ca]))
296298 }
297299
298300
299-func cd (ce,cf,cg) = {
300- let cb = fraction(cf, b, ce)
301- let ch = (cg > cb)
302- if (if (ch)
301+func ce (cf,cg,ch) = {
302+ let cc = fraction(cg, b, cf)
303+ let ci = (ch > cc)
304+ if (if (ci)
303305 then true
304- else (cf > ce))
305- then throw(((((((toString(cf) + " ") + toString(ce)) + " ") + toString(cb)) + " ") + toString(cg)))
306- else ch
306+ else (cg > cf))
307+ then throw(((((((toString(cg) + " ") + toString(cf)) + " ") + toString(cc)) + " ") + toString(ch)))
308+ else ci
307309 }
308310
309311
310-func ci (cj,ck,cl,cm) = {
311- let cn = H(cl, cj)
312- let co = H(cm, ck)
313- bT(co, cn)
312+func cj (ck,cl,cm,cn) = {
313+ let co = I(cm, ck)
314+ let cp = I(cn, cl)
315+ bU(cp, co)
314316 }
315317
316318
317-func cp (cl,cm,cq) = {
318- let cr = bs
319+func cq (cm,cn,cr) = {
319320 let cs = bt
320- let ct = ci(cr, cs, cl, cm)
321- let bV = H(cl, cr)
322- let bU = H(cm, cs)
323- let cu = H(cq, a)
324- let cv = bT(bV, cu)
325- let cw = bT(bU, cu)
326-[ct, cv, cw]
321+ let ct = bu
322+ let cu = cj(cs, ct, cm, cn)
323+ let bW = I(cm, cs)
324+ let bV = I(cn, ct)
325+ let cv = I(cr, a)
326+ let cw = bU(bW, cv)
327+ let cx = bU(bV, cv)
328+[cu, cw, cx]
327329 }
328330
329331
330-func cx (cl,cm,cq) = {
331- let cy = cp(cl, cm, cq)
332-[L(cy[0], a), L(cy[1], a), L(cy[2], a)]
332+func cy (cm,cn,cr) = {
333+ let cz = cq(cm, cn, cr)
334+[M(cz[0], a), M(cz[1], a), M(cz[2], a)]
333335 }
334336
335337
336-func cz (cA,aq) = {
337- let cB = if ((aq == 0))
338+func cA (cB,ar) = {
339+ let cC = if ((ar == 0))
338340 then 0
339- else fraction(cA, aq, a)
340- $Tuple2((cA - cB), cB)
341+ else fraction(cB, ar, a)
342+ $Tuple2((cB - cC), cC)
341343 }
342344
343345
344-func cC (cD) = {
345- let cE = cD[0]
346- let cF = cD[1]
347- let cG = (cE + cF)
348- if ((cG == e))
346+func cD (cE) = {
347+ let cF = cE[0]
348+ let cG = cE[1]
349+ let cH = (cF + cG)
350+ if ((cH == e))
349351 then e
350352 else {
351- let cH = parseIntValue(aY)
352- let cI = (cH * 2)
353- let cy = fraction(cE, cF, f)
354- let cJ = fraction(cy, i, f)
355- let cK = fraction(toBigInt(cI), cG, f)
356- let cL = toBigInt((cI - 1))
357- func cM (cN) = {
358- let cO = fraction(cN, cN, f)
359- let cP = fraction(cO, cN, f)
360- let cQ = fraction(cP, f, cJ)
361- fraction((cK + fraction(cQ, g, f)), cN, (fraction(cL, cN, f) + fraction(h, cQ, f)))
353+ let cI = parseIntValue(aZ)
354+ let cJ = (cI * 2)
355+ let cz = fraction(cF, cG, f)
356+ let cK = fraction(cz, i, f)
357+ let cL = fraction(toBigInt(cJ), cH, f)
358+ let cM = toBigInt((cJ - 1))
359+ func cN (cO) = {
360+ let cP = fraction(cO, cO, f)
361+ let cQ = fraction(cP, cO, f)
362+ let cR = fraction(cQ, f, cK)
363+ fraction((cL + fraction(cR, g, f)), cO, (fraction(cM, cO, f) + fraction(h, cR, f)))
362364 }
363365
364- func cR (cS,cT) = if (cS._2)
365- then cS
366+ func cS (cT,cU) = if (cT._2)
367+ then cT
366368 else {
367- let cN = cS._1
368- let cU = cM(cN)
369- let cV = (cU - value(cN))
370- let cW = if ((e > cV))
371- then -(cV)
372- else cV
373- if ((f >= cW))
374- then $Tuple2(cU, true)
375- else $Tuple2(cU, false)
369+ let cO = cT._1
370+ let cV = cN(cO)
371+ let cW = (cV - value(cO))
372+ let cX = if ((e > cW))
373+ then -(cW)
374+ else cW
375+ if ((f >= cX))
376+ then $Tuple2(cV, true)
377+ else $Tuple2(cV, false)
376378 }
377379
378- let cX = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16]
379- let cY = {
380- let cZ = cX
381- let da = size(cZ)
382- let db = $Tuple2(cG, false)
383- func dc (dd,de) = if ((de >= da))
384- then dd
385- else cR(dd, cZ[de])
380+ let cY = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16]
381+ let cZ = {
382+ let da = cY
383+ let db = size(da)
384+ let dc = $Tuple2(cH, false)
385+ func dd (de,df) = if ((df >= db))
386+ then de
387+ else cS(de, da[df])
386388
387- func df (dd,de) = if ((de >= da))
388- then dd
389+ func dg (de,df) = if ((df >= db))
390+ then de
389391 else throw("List size exceeds 17")
390392
391- df(dc(dc(dc(dc(dc(dc(dc(dc(dc(dc(dc(dc(dc(dc(dc(dc(dc(db, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17)
393+ dg(dd(dd(dd(dd(dd(dd(dd(dd(dd(dd(dd(dd(dd(dd(dd(dd(dd(dc, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17)
392394 }
393- let cN = cY._1
394- let dg = cY._2
395- if (dg)
396- then cN
397- else throw(("D calculation error, D = " + toString(cN)))
395+ let cO = cZ._1
396+ let dh = cZ._2
397+ if (dh)
398+ then cO
399+ else throw(("D calculation error, D = " + toString(cO)))
398400 }
399401 }
400402
401403
402-func dh (di,dj,dk,dl) = {
403- let dm = bp
404- let dn = toBase58String(value(bq))
404+func di (dj,dk,dl,dm) = {
405+ let dn = bq
405406 let do = toBase58String(value(br))
406- let dp = bs
407+ let dp = toBase58String(value(bs))
407408 let dq = bt
408- let dr = toString(bo)
409- let ds = valueOrErrorMessage(assetInfo(dm), "Wrong LP id").quantity
410- if ((toBase58String(dm) != dj))
409+ let dr = bu
410+ let ds = toString(bp)
411+ let dt = valueOrErrorMessage(assetInfo(dn), "Wrong LP id").quantity
412+ if ((toBase58String(dn) != dk))
411413 then throw("Wrong pmt asset")
412414 else {
413- let dt = bR(dn)
414- let du = H(dt, dp)
415- let dv = bR(do)
416- let dw = H(dv, dq)
417- let dx = bT(dw, du)
418- let dy = L(dx, a)
419- let dz = H(dk, a)
420- let dA = H(ds, a)
421- let dB = fraction(du, dz, dA)
422- let dC = fraction(dw, dz, dA)
423- let dD = O(dB, dp, FLOOR)
424- let dE = O(dC, dq, FLOOR)
425- let dF = if ((di == ""))
415+ let du = bS(do)
416+ let dv = I(du, dq)
417+ let dw = bS(dp)
418+ let dx = I(dw, dr)
419+ let dy = bU(dx, dv)
420+ let dz = M(dy, a)
421+ let dA = I(dl, a)
422+ let dB = I(dt, a)
423+ let dC = fraction(dv, dA, dB)
424+ let dD = fraction(dx, dA, dB)
425+ let dE = P(dC, dq, FLOOR)
426+ let dF = P(dD, dr, FLOOR)
427+ let dG = if ((dj == ""))
426428 then nil
427- else [ScriptTransfer(dl, dD, if ((dn == "WAVES"))
429+ else [ScriptTransfer(dm, dE, if ((do == "WAVES"))
428430 then unit
429- else fromBase58String(dn)), ScriptTransfer(dl, dE, if ((do == "WAVES"))
431+ else fromBase58String(do)), ScriptTransfer(dm, dF, if ((dp == "WAVES"))
430432 then unit
431- else fromBase58String(do)), StringEntry(ai(toString(dl), di), bN(dD, dE, dk, dy, height, lastBlock.timestamp)), IntegerEntry(ab(), dy), IntegerEntry(ac(height, lastBlock.timestamp), dy)]
432- $Tuple10(dD, dE, dn, do, dt, dv, ds, dx, dr, dF)
433+ else fromBase58String(dp)), StringEntry(aj(toString(dm), dj), bO(dE, dF, dl, dz, height, lastBlock.timestamp)), IntegerEntry(ac(), dz), IntegerEntry(ad(height, lastBlock.timestamp), dz)]
434+ $Tuple10(dE, dF, do, dp, du, dw, dt, dy, ds, dG)
433435 }
434436 }
435437
436438
437-func dG (di,ca,dH,dI,dJ,dK,dl,dL,dM,dN,dO,dP,dQ) = {
438- let dm = bp
439- let dR = toBase58String(value(bq))
439+func dH (dj,cb,dI,dJ,dK,dL,dm,dM,dN,dO,dP,dQ,dR) = {
440+ let dn = bq
440441 let dS = toBase58String(value(br))
441- let dT = bu
442+ let dT = toBase58String(value(bs))
442443 let dU = bv
443- let dV = bs
444+ let dV = bw
444445 let dW = bt
445- let dr = toString(bo)
446- let dX = valueOrErrorMessage(assetInfo(dm), "Wr lp as").quantity
447- let dt = if (dL)
448- then bR(dR)
449- else if (if (dN)
450- then (dQ == dR)
446+ let dX = bu
447+ let ds = toString(bp)
448+ let dY = valueOrErrorMessage(assetInfo(dn), "Wr lp as").quantity
449+ let du = if (dM)
450+ then bS(dS)
451+ else if (if (dO)
452+ then (dR == dS)
451453 else false)
452- then (bR(dR) - dP)
453- else if (dN)
454- then bR(dR)
455- else (bR(dR) - dH)
456- let dv = if (dL)
457- then bR(dS)
458- else if (if (dN)
459- then (dQ == dS)
454+ then (bS(dS) - dQ)
455+ else if (dO)
456+ then bS(dS)
457+ else (bS(dS) - dI)
458+ let dw = if (dM)
459+ then bS(dT)
460+ else if (if (dO)
461+ then (dR == dT)
460462 else false)
461- then (bR(dS) - dP)
462- else if (dN)
463- then bR(dS)
464- else (bR(dS) - dJ)
465- let dY = H(dH, dV)
466- let dZ = H(dJ, dW)
467- let ea = bT(dZ, dY)
468- let du = H(dt, dV)
469- let dw = H(dv, dW)
470- let cf = cC([du, dw])
471- let eb = if ((dX == 0))
463+ then (bS(dT) - dQ)
464+ else if (dO)
465+ then bS(dT)
466+ else (bS(dT) - dK)
467+ let dZ = I(dI, dW)
468+ let ea = I(dK, dX)
469+ let eb = bU(ea, dZ)
470+ let dv = I(du, dW)
471+ let dx = I(dw, dX)
472+ let cg = cD([dv, dx])
473+ let ec = if ((dY == 0))
472474 then {
473- let ce = cC([(du + dY), (dw + dZ)])
474- let ec = if ((ce > cf))
475+ let cf = cD([(dv + dZ), (dx + ea)])
476+ let ed = if ((cf > cg))
475477 then true
476478 else throw("D1 should be greater than D0")
477- if ((ec == ec))
479+ if ((ed == ed))
478480 then {
479- let dx = d
480- let ed = d
481- let cu = ce
482- $Tuple5(L(cu, a), L(dY, dV), L(dZ, dW), bT((dw + dZ), (du + dY)), ed)
481+ let dy = d
482+ let ee = d
483+ let cv = cf
484+ $Tuple5(M(cv, a), M(dZ, dW), M(ea, dX), bU((dx + ea), (dv + dZ)), ee)
483485 }
484486 else throw("Strict value is not equal to itself.")
485487 }
486488 else {
487- let dx = bT(dw, du)
488- let ee = fraction(W((dx - ea)), c, dx)
489- let ed = H(ca, a)
490- if (if (if (dO)
491- then (dx != d)
489+ let dy = bU(dx, dv)
490+ let ef = fraction(X((dy - eb)), c, dy)
491+ let ee = I(cb, a)
492+ if (if (if (dP)
493+ then (dy != d)
492494 else false)
493- then (ee > ed)
495+ then (ef > ee)
494496 else false)
495- then throw(((("Price slippage " + toString(ee)) + " > ") + toString(ed)))
497+ then throw(((("Price slippage " + toString(ef)) + " > ") + toString(ee)))
496498 else {
497- let ef = H(dX, a)
498- let eg = fraction(dY, bW(dw, du, CEILING), c, CEILING)
499- let eh = fraction(dZ, c, bW(dw, du, FLOOR), CEILING)
500- let ei = if ((eg > dZ))
501- then $Tuple2(eh, dZ)
502- else $Tuple2(dY, eg)
503- let ej = ei._1
504- let ek = ei._2
505- let ce = cC([(du + ej), (dw + ek)])
506- let ec = if ((ce > cf))
499+ let eg = I(dY, a)
500+ let eh = fraction(dZ, bX(dx, dv, CEILING), c, CEILING)
501+ let ei = fraction(ea, c, bX(dx, dv, FLOOR), CEILING)
502+ let ej = if ((eh > ea))
503+ then $Tuple2(ei, ea)
504+ else $Tuple2(dZ, eh)
505+ let ek = ej._1
506+ let el = ej._2
507+ let cf = cD([(dv + ek), (dx + el)])
508+ let ed = if ((cf > cg))
507509 then true
508510 else throw("D1 should be greater than D0")
509- if ((ec == ec))
511+ if ((ed == ed))
510512 then {
511- let cu = fraction(ef, (ce - cf), cf)
512- $Tuple5(O(cu, a, FLOOR), O(ej, dV, CEILING), O(ek, dW, CEILING), dx, ed)
513+ let cv = fraction(eg, (cf - cg), cg)
514+ $Tuple5(P(cv, a, FLOOR), P(ek, dW, CEILING), P(el, dX, CEILING), dy, ee)
513515 }
514516 else throw("Strict value is not equal to itself.")
515517 }
516518 }
517- let el = eb._1
518- let em = eb._2
519- let en = eb._3
520- let dy = L(eb._4, a)
521- let eo = L(eb._5, a)
522- if ((0 >= el))
519+ let em = ec._1
520+ let en = ec._2
521+ let eo = ec._3
522+ let dz = M(ec._4, a)
523+ let ep = M(ec._5, a)
524+ if ((0 >= em))
523525 then throw("LP <= 0")
524526 else {
525- let ep = if (!(dM))
527+ let eq = if (!(dN))
526528 then 0
527- else el
528- let eq = (dH - em)
529- let er = (dJ - en)
530- let es = if (if (dN)
531- then (dQ == dR)
529+ else em
530+ let er = (dI - en)
531+ let es = (dK - eo)
532+ let et = if (if (dO)
533+ then (dR == dS)
532534 else false)
533- then $Tuple2(dP, 0)
534- else if (if (dN)
535- then (dQ == dS)
535+ then $Tuple2(dQ, 0)
536+ else if (if (dO)
537+ then (dR == dT)
536538 else false)
537- then $Tuple2(0, dP)
538- else $Tuple2(em, en)
539- let et = es._1
540- let eu = es._2
541- let ev = [IntegerEntry(ab(), dy), IntegerEntry(ac(height, lastBlock.timestamp), dy), StringEntry(af(dl, di), bC(et, eu, ep, dy, ca, eo, height, lastBlock.timestamp, eq, er))]
542- $Tuple13(el, ep, dy, dt, dv, dX, dm, dr, ev, eq, er, dI, dK)
539+ then $Tuple2(0, dQ)
540+ else $Tuple2(en, eo)
541+ let eu = et._1
542+ let ev = et._2
543+ let ew = [IntegerEntry(ac(), dz), IntegerEntry(ad(height, lastBlock.timestamp), dz), StringEntry(ag(dm, dj), bD(eu, ev, eq, dz, cb, ep, height, lastBlock.timestamp, er, es))]
544+ $Tuple13(em, eq, dz, du, dw, dY, dn, ds, ew, er, es, dJ, dL)
543545 }
544546 }
545547
546548
547-func ew (cD,cT,ex) = {
548- let ey = g
549- let ez = cD[if ((cT == 0))
549+func ex (cE,cU,ey) = {
550+ let ez = g
551+ let eA = cE[if ((cU == 0))
550552 then 1
551553 else 0]
552- let eA = parseBigIntValue(l)
553- let cH = (parseBigIntValue(aY) * eA)
554- let cG = ez
555- let cI = (cH * ey)
556- let eB = (((((ex * ex) / (ez * ey)) * ex) * eA) / (cI * ey))
557- let eC = ((cG + ((ex * eA) / cI)) - ex)
558- func cR (cS,eD) = {
559- let eE = cS
560- let eF = eE._1
561- let dg = eE._2
562- if ((dg != unit))
563- then cS
554+ let eB = parseBigIntValue(m)
555+ let cI = (parseBigIntValue(aZ) * eB)
556+ let cH = eA
557+ let cJ = (cI * ez)
558+ let eC = (((((ey * ey) / (eA * ez)) * ey) * eB) / (cJ * ez))
559+ let eD = ((cH + ((ey * eB) / cJ)) - ey)
560+ func cS (cT,eE) = {
561+ let eF = cT
562+ let eG = eF._1
563+ let dh = eF._2
564+ if ((dh != unit))
565+ then cT
564566 else {
565- let eG = (((eF * eF) + eB) / ((g * eF) + eC))
566- let eH = X((eG - value(eF)))
567- if ((f >= eH))
568- then $Tuple2(eG, eD)
569- else $Tuple2(eG, unit)
567+ let eH = (((eG * eG) + eC) / ((g * eG) + eD))
568+ let eI = Y((eH - value(eG)))
569+ if ((f >= eI))
570+ then $Tuple2(eH, eE)
571+ else $Tuple2(eH, unit)
570572 }
571573 }
572574
573- let cX = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14]
574- let eI = {
575- let cZ = cX
576- let da = size(cZ)
577- let db = $Tuple2(ex, unit)
578- func dc (dd,de) = if ((de >= da))
579- then dd
580- else cR(dd, cZ[de])
575+ let cY = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14]
576+ let eJ = {
577+ let da = cY
578+ let db = size(da)
579+ let dc = $Tuple2(ey, unit)
580+ func dd (de,df) = if ((df >= db))
581+ then de
582+ else cS(de, da[df])
581583
582- func df (dd,de) = if ((de >= da))
583- then dd
584+ func dg (de,df) = if ((df >= db))
585+ then de
584586 else throw("List size exceeds 15")
585587
586- df(dc(dc(dc(dc(dc(dc(dc(dc(dc(dc(dc(dc(dc(dc(dc(db, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15)
588+ dg(dd(dd(dd(dd(dd(dd(dd(dd(dd(dd(dd(dd(dd(dd(dd(dc, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15)
587589 }
588- let eF = eI._1
589- let dg = eI._2
590- if ((dg != unit))
591- then eF
592- else throw(("Y calculation error, Y = " + toString(eF)))
590+ let eG = eJ._1
591+ let dh = eJ._2
592+ if ((dh != unit))
593+ then eG
594+ else throw(("Y calculation error, Y = " + toString(eG)))
593595 }
594596
595597
596-func eJ (eK,eL,eM) = {
597- let eN = fraction(cC([K(eK, toBigInt(bs)), K(eL, toBigInt(bt))]), c, eM)
598- if ((eM == e))
598+func eK (eL,eM,eN) = {
599+ let eO = fraction(cD([L(eL, toBigInt(bt)), L(eM, toBigInt(bu))]), c, eN)
600+ if ((eN == e))
599601 then e
600- else eN
602+ else eO
601603 }
602604
603605
604-func eO (eP,eQ,eR) = {
605- let eS = (toBigInt(bR(bi(bq))) - eP)
606- let eT = (toBigInt(bR(bi(br))) - eQ)
607- let eU = (toBigInt(value(assetInfo(bp)).quantity) - eR)
608- let eV = eJ(eS, eT, eU)
609- eV
606+func eP (eQ,eR,eS) = {
607+ let eT = (toBigInt(bS(bj(br))) - eQ)
608+ let eU = (toBigInt(bS(bj(bs))) - eR)
609+ let eV = (toBigInt(value(assetInfo(bq)).quantity) - eS)
610+ let eW = eK(eT, eU, eV)
611+ eW
610612 }
611613
612614
613-func eW (eX,eY,eR) = {
614- let eS = (bR(bi(bq)) + eX)
615- let eT = (bR(bi(br)) + eY)
616- let eU = (value(assetInfo(bp)).quantity + eR)
617- let eN = eJ(toBigInt(eS), toBigInt(eT), toBigInt(eU))
618- let eZ = [IntegerEntry(as, height), StringEntry(ar, toString(eN))]
619- $Tuple2(eZ, eN)
615+func eX (eY,eZ,eS) = {
616+ let eT = (bS(bj(br)) + eY)
617+ let eU = (bS(bj(bs)) + eZ)
618+ let eV = (value(assetInfo(bq)).quantity + eS)
619+ let eO = eK(toBigInt(eT), toBigInt(eU), toBigInt(eV))
620+ let fa = [IntegerEntry(at, height), StringEntry(as, toString(eO))]
621+ $Tuple2(fa, eO)
620622 }
621623
622624
623-func fa (fb,eN) = if ((eN >= fb))
625+func fb (fc,eO) = if ((eO >= fc))
624626 then true
625- else aR("updated DLp lower than current DLp")
627+ else aS("updated DLp lower than current DLp")
626628
627629
628-func fc (fd) = {
629- let eS = bR(bi(bq))
630- let eT = bR(bi(br))
631- let fe = fd.amount
632- let ff = fraction(fd.amount, fd.price, a, FLOOR)
633- let fg = if ((fd.orderType == Buy))
634- then $Tuple2(fe, -(ff))
635- else $Tuple2(-(fe), ff)
636- let eX = fg._1
637- let eY = fg._2
638- if (if (if (aZ())
630+func fd (fe) = {
631+ let eT = bS(bj(br))
632+ let eU = bS(bj(bs))
633+ let ff = fe.amount
634+ let fg = fraction(fe.amount, fe.price, a, FLOOR)
635+ let fh = if ((fe.orderType == Buy))
636+ then $Tuple2(ff, -(fg))
637+ else $Tuple2(-(ff), fg)
638+ let eY = fh._1
639+ let eZ = fh._2
640+ if (if (if (ba())
639641 then true
640- else (bo == r))
642+ else (bp == s))
641643 then true
642- else (bo == s))
644+ else (bp == t))
643645 then throw("Admin blocked")
644- else if (if ((fd.assetPair.amountAsset != bq))
646+ else if (if ((fe.assetPair.amountAsset != br))
645647 then true
646- else (fd.assetPair.priceAsset != br))
648+ else (fe.assetPair.priceAsset != bs))
647649 then throw("Wr assets")
648650 else {
649- let fh = parseBigIntValue(valueOrElse(getString(this, ar), "0"))
650- let fi = eW(eX, eY, 0)
651- let fj = fi._1
652- let fk = fi._2
653- let fl = (fk >= fh)
654- let fm = makeString(["dLp=", toString(fh), " dLpNew=", toString(fk), " amountAssetBalance=", toString(eS), " priceAssetBalance=", toString(eT), " amountAssetBalanceDelta=", toString(eX), " priceAssetBalanceDelta=", toString(eY), " height=", toString(height)], "")
655- $Tuple2(fl, fm)
651+ let fi = parseBigIntValue(valueOrElse(getString(this, as), "0"))
652+ let fj = eX(eY, eZ, 0)
653+ let fk = fj._1
654+ let fl = fj._2
655+ let fm = (fl >= fi)
656+ let fn = makeString(["dLp=", toString(fi), " dLpNew=", toString(fl), " amountAssetBalance=", toString(eT), " priceAssetBalance=", toString(eU), " amountAssetBalanceDelta=", toString(eY), " priceAssetBalanceDelta=", toString(eZ), " height=", toString(height)], "")
657+ $Tuple2(fm, fn)
656658 }
657659 }
658660
659661
660-func fn (cT) = if ((size(cT.payments) != 1))
662+func fo (cU) = if ((size(cU.payments) != 1))
661663 then throw("1 pmnt exp")
662664 else {
663- let fo = value(cT.payments[0])
664- let dj = value(fo.assetId)
665- let dP = fo.amount
666- let eb = dh(toBase58String(cT.transactionId), toBase58String(dj), dP, cT.caller)
667- let dD = eb._1
668- let dE = eb._2
669- let dr = parseIntValue(eb._9)
670- let dF = eb._10
671- if (if (aZ())
665+ let fp = value(cU.payments[0])
666+ let dk = value(fp.assetId)
667+ let dQ = fp.amount
668+ let ec = di(toBase58String(cU.transactionId), toBase58String(dk), dQ, cU.caller)
669+ let dE = ec._1
670+ let dF = ec._2
671+ let ds = parseIntValue(ec._9)
672+ let dG = ec._10
673+ if (if (ba())
672674 then true
673- else (dr == s))
674- then throw(("Admin blocked: " + toString(dr)))
675- else $Tuple5(dD, dE, dP, dj, dF)
675+ else (ds == t))
676+ then throw(("Admin blocked: " + toString(ds)))
677+ else $Tuple5(dE, dF, dQ, dk, dG)
676678 }
677679
678680
679-func fp (fq,ah,fr,fs,ca,dM,dN,dO,dP,dQ) = {
680- let eb = dG(ah, ca, value(fr).amount, value(fr).assetId, value(fs).amount, value(fs).assetId, fq, (ah == ""), dM, dN, dO, dP, dQ)
681- let dr = parseIntValue(eb._8)
682- if (if (if (aZ())
681+func fq (fr,ai,fs,ft,cb,dN,dO,dP,dQ,dR) = {
682+ let ec = dH(ai, cb, value(fs).amount, value(fs).assetId, value(ft).amount, value(ft).assetId, fr, (ai == ""), dN, dO, dP, dQ, dR)
683+ let ds = parseIntValue(ec._8)
684+ if (if (if (ba())
683685 then true
684- else (dr == q))
686+ else (ds == r))
685687 then true
686- else (dr == s))
687- then throw(("Blocked:" + toString(dr)))
688- else eb
688+ else (ds == t))
689+ then throw(("Blocked:" + toString(ds)))
690+ else ec
689691 }
690692
691693
692-func ft (fu,dj,dl,ah,fv) = {
693- let dn = toBase58String(value(bq))
694+func fu (fv,dk,dm,ai,fw) = {
694695 let do = toBase58String(value(br))
695- let dm = bp
696- let dV = bs
696+ let dp = toBase58String(value(bs))
697+ let dn = bq
697698 let dW = bt
698- let eU = toBigInt(valueOrErrorMessage(assetInfo(dm), "invalid lp asset").quantity)
699- let fw = if ((eU > e))
699+ let dX = bu
700+ let eV = toBigInt(valueOrErrorMessage(assetInfo(dn), "invalid lp asset").quantity)
701+ let fx = if ((eV > e))
700702 then true
701703 else throw("initial deposit requires all coins")
702- if ((fw == fw))
704+ if ((fx == fx))
703705 then {
704- let dt = bR(dn)
705- let dv = bR(do)
706- let fx = if ((ah == ""))
707- then $Tuple2(dt, dv)
708- else if ((dj == dn))
709- then if ((fu > dt))
706+ let du = bS(do)
707+ let dw = bS(dp)
708+ let fy = if ((ai == ""))
709+ then $Tuple2(du, dw)
710+ else if ((dk == do))
711+ then if ((fv > du))
710712 then throw("invalid payment amount")
711- else $Tuple2((dt - fu), dv)
712- else if ((dj == do))
713- then if ((fu > dv))
713+ else $Tuple2((du - fv), dw)
714+ else if ((dk == dp))
715+ then if ((fv > dw))
714716 then throw("invalid payment amount")
715- else $Tuple2(dt, (dv - fu))
717+ else $Tuple2(du, (dw - fv))
716718 else throw("wrong pmtAssetId")
717- let fy = fx._1
718- let fz = fx._2
719- let fA = if ((dj == dn))
720- then $Tuple2(fu, 0)
721- else if ((dj == do))
722- then $Tuple2(0, fu)
719+ let fz = fy._1
720+ let fA = fy._2
721+ let fB = if ((dk == do))
722+ then $Tuple2(fv, 0)
723+ else if ((dk == dp))
724+ then $Tuple2(0, fv)
723725 else throw("invalid payment")
724- let fB = fA._1
725- let fC = fA._2
726- let fD = if (fv)
727- then $Tuple3(cz(fB, aV)._1, cz(fC, aV)._1, cz(fu, aV)._2)
728- else $Tuple3(fB, fC, 0)
729- let fE = fD._1
730- let fF = fD._2
731- let cB = fD._3
732- let fG = (fy + fE)
726+ let fC = fB._1
727+ let fD = fB._2
728+ let fE = if (fw)
729+ then $Tuple3(cA(fC, aW)._1, cA(fD, aW)._1, cA(fv, aW)._2)
730+ else $Tuple3(fC, fD, 0)
731+ let fF = fE._1
732+ let fG = fE._2
733+ let cC = fE._3
733734 let fH = (fz + fF)
734- let cf = cC([H(fy, bs), H(fz, bt)])
735- let ce = cC([H(fG, bs), H(fH, bt)])
736- let ec = if ((ce > cf))
735+ let fI = (fA + fG)
736+ let cg = cD([I(fz, bt), I(fA, bu)])
737+ let cf = cD([I(fH, bt), I(fI, bu)])
738+ let ed = if ((cf > cg))
737739 then true
738740 else throw()
739- if ((ec == ec))
741+ if ((ed == ed))
740742 then {
741- let fI = fraction(eU, (ce - cf), cf, FLOOR)
742- let dy = L(bT(H(fH, dW), H(fG, dV)), a)
743- let ev = [IntegerEntry(ab(), dy), IntegerEntry(ac(height, lastBlock.timestamp), dy), StringEntry(af(dl, ah), bC(fB, fC, toInt(fI), dy, 0, 0, height, lastBlock.timestamp, 0, 0))]
744- let fJ = fraction(fz, a, fy)
745- let fK = fraction(fu, a, (fJ + a))
746- let fL = (fu - fK)
747- let fM = fraction(eU, toBigInt(fL), toBigInt(fz))
748- let fN = toInt(fraction((fI - fM), b, fM))
749- $Tuple4(toInt(fI), ev, cB, fN)
743+ let fJ = fraction(eV, (cf - cg), cg, FLOOR)
744+ let dz = M(bU(I(fI, dX), I(fH, dW)), a)
745+ let ew = [IntegerEntry(ac(), dz), IntegerEntry(ad(height, lastBlock.timestamp), dz), StringEntry(ag(dm, ai), bD(fC, fD, toInt(fJ), dz, 0, 0, height, lastBlock.timestamp, 0, 0))]
746+ let fK = fraction(fA, a, fz)
747+ let fL = fraction(fv, a, (fK + a))
748+ let fM = (fv - fL)
749+ let fN = fraction(eV, toBigInt(fM), toBigInt(fA))
750+ let fO = toInt(fraction((fJ - fN), b, fN))
751+ $Tuple4(toInt(fJ), ew, cC, fO)
750752 }
751753 else throw("Strict value is not equal to itself.")
752754 }
754756 }
755757
756758
757-func fO (fP,fQ,fR,fq,fS,fT) = {
758- let dm = toBase58String(value(bp))
759+func fP (fQ,fR,fS,fr,fT,fU) = {
759760 let dn = toBase58String(value(bq))
760761 let do = toBase58String(value(br))
761- let fU = bs
762+ let dp = toBase58String(value(bs))
762763 let fV = bt
763- let fW = bo
764- let dl = if ((fq == bB))
765- then fS
766- else fq
767- let fo = value(fR[0])
768- let dj = value(fo.assetId)
769- let dP = fo.amount
770- let eV = eO(e, e, e)
771- if ((eV == eV))
764+ let fW = bu
765+ let fX = bp
766+ let dm = if ((fr == bC))
767+ then fT
768+ else fr
769+ let fp = value(fS[0])
770+ let dk = value(fp.assetId)
771+ let dQ = fp.amount
772+ let eW = eP(e, e, e)
773+ if ((eW == eW))
772774 then {
773- let di = toBase58String(fT)
774- if ((dm != toBase58String(dj)))
775+ let dj = toBase58String(fU)
776+ if ((dn != toBase58String(dk)))
775777 then throw("Wrong LP")
776778 else {
777- let dt = bR(dn)
778- let dv = bR(do)
779- let fX = {
780- let aW = invoke(this, "getOneTknV2READONLY", [fP, dP], nil)
781- if ($isInstanceOf(aW, "(Int, Int)"))
782- then aW
783- else throw(($getType(aW) + " couldn't be cast to (Int, Int)"))
779+ let du = bS(do)
780+ let dw = bS(dp)
781+ let fY = {
782+ let aX = invoke(this, "getOneTknV2READONLY", [fQ, dQ], nil)
783+ if ($isInstanceOf(aX, "(Int, Int)"))
784+ then aX
785+ else throw(($getType(aX) + " couldn't be cast to (Int, Int)"))
784786 }
785- if ((fX == fX))
787+ if ((fY == fY))
786788 then {
787- let cB = fX._2
788- let fY = fX._1
789- let fZ = if (if ((fQ > 0))
790- then (fQ > fY)
789+ let cC = fY._2
790+ let fZ = fY._1
791+ let ga = if (if ((fR > 0))
792+ then (fR > fZ)
791793 else false)
792- then aR(makeString(["amount to receive is less than ", toString(fQ)], ""))
793- else fY
794- let ga = if ((fP == dn))
795- then $Tuple4(fZ, 0, ((dt - fZ) - cB), dv)
796- else if ((fP == do))
797- then $Tuple4(0, fZ, dt, ((dv - fZ) - cB))
794+ then aS(makeString(["amount to receive is less than ", toString(fR)], ""))
795+ else fZ
796+ let gb = if ((fQ == do))
797+ then $Tuple4(ga, 0, ((du - ga) - cC), dw)
798+ else if ((fQ == dp))
799+ then $Tuple4(0, ga, du, ((dw - ga) - cC))
798800 else throw("invalid out asset id")
799- let gb = ga._1
800- let gc = ga._2
801- let fG = ga._3
802- let fH = ga._4
803- let gd = bT(H(fH, fV), H(fG, fU))
804- let ge = L(gd, a)
805- let gf = if ((fP == "WAVES"))
801+ let gc = gb._1
802+ let gd = gb._2
803+ let fH = gb._3
804+ let fI = gb._4
805+ let ge = bU(I(fI, fW), I(fH, fV))
806+ let gf = M(ge, a)
807+ let gg = if ((fQ == "WAVES"))
806808 then unit
807- else fromBase58String(fP)
808- let gg = if ((cB > 0))
809- then [ScriptTransfer(bb, cB, gf)]
809+ else fromBase58String(fQ)
810+ let gh = if ((cC > 0))
811+ then [ScriptTransfer(bc, cC, gg)]
810812 else nil
811- let dF = ([ScriptTransfer(dl, fZ, gf), StringEntry(ai(toString(dl), di), bN(gb, gc, dP, ge, height, lastBlock.timestamp)), IntegerEntry(ab(), ge), IntegerEntry(ac(height, lastBlock.timestamp), ge)] ++ gg)
812- if ((dF == dF))
813+ let dG = ([ScriptTransfer(dm, ga, gg), StringEntry(aj(toString(dm), dj), bO(gc, gd, dQ, gf, height, lastBlock.timestamp)), IntegerEntry(ac(), gf), IntegerEntry(ad(height, lastBlock.timestamp), gf)] ++ gh)
814+ if ((dG == dG))
813815 then {
814- let gh = invoke(aU, "burn", [dP], [AttachedPayment(dj, dP)])
815- if ((gh == gh))
816+ let gi = invoke(aV, "burn", [dQ], [AttachedPayment(dk, dQ)])
817+ if ((gi == gi))
816818 then {
817- let gi = {
818- let gj = if ((this == bb))
819+ let gj = {
820+ let gk = if ((this == bc))
819821 then 0
820- else cB
821- let gk = if ((bg(fP) == bq))
822+ else cC
823+ let gl = if ((bh(fQ) == br))
822824 then true
823825 else false
824- if (gk)
825- then $Tuple2(-((fY + gj)), 0)
826- else $Tuple2(0, -((fY + gj)))
826+ if (gl)
827+ then $Tuple2(-((fZ + gk)), 0)
828+ else $Tuple2(0, -((fZ + gk)))
827829 }
828- let eX = gi._1
829- let eY = gi._2
830- let gl = eW(eX, eY, 0)
831- let gm = gl._1
832- let eN = gl._2
833- let gn = fa(eV, eN)
834- if ((gn == gn))
835- then $Tuple2((dF ++ gm), fZ)
830+ let eY = gj._1
831+ let eZ = gj._2
832+ let gm = eX(eY, eZ, 0)
833+ let gn = gm._1
834+ let eO = gm._2
835+ let go = fb(eW, eO)
836+ if ((go == go))
837+ then $Tuple2((dG ++ gn), ga)
836838 else throw("Strict value is not equal to itself.")
837839 }
838840 else throw("Strict value is not equal to itself.")
846848 }
847849
848850
849-func go () = {
850- let gp = getString(Z())
851- if ($isInstanceOf(gp, "String"))
851+func gp () = {
852+ let gq = getString(aa())
853+ if ($isInstanceOf(gq, "String"))
852854 then {
853- let cG = gp
854- fromBase58String(cG)
855+ let cH = gq
856+ fromBase58String(cH)
855857 }
856- else if ($isInstanceOf(gp, "Unit"))
858+ else if ($isInstanceOf(gq, "Unit"))
857859 then unit
858860 else throw("Match error")
859861 }
860862
861863
862-func gq () = {
863- let gp = getString(aa())
864- if ($isInstanceOf(gp, "String"))
864+func gr () = {
865+ let gq = getString(ab())
866+ if ($isInstanceOf(gq, "String"))
865867 then {
866- let cG = gp
867- fromBase58String(cG)
868+ let cH = gq
869+ fromBase58String(cH)
868870 }
869- else if ($isInstanceOf(gp, "Unit"))
871+ else if ($isInstanceOf(gq, "Unit"))
870872 then unit
871873 else throw("Match error")
872874 }
873875
874876
875-let gr = throw("Permission denied")
877+let gs = throw("Permission denied")
876878
877-func gs (cT) = {
878- let gp = go()
879- if ($isInstanceOf(gp, "ByteVector"))
879+func gt (cU) = {
880+ let gq = gp()
881+ if ($isInstanceOf(gq, "ByteVector"))
880882 then {
881- let gt = gp
882- (cT.callerPublicKey == gt)
883+ let gu = gq
884+ (cU.callerPublicKey == gu)
883885 }
884- else if ($isInstanceOf(gp, "Unit"))
885- then (cT.caller == this)
886+ else if ($isInstanceOf(gq, "Unit"))
887+ then (cU.caller == this)
886888 else throw("Match error")
887889 }
888890
889891
890-func gu (cT) = {
891- let gp = go()
892- if ($isInstanceOf(gp, "ByteVector"))
892+func gv (cU) = {
893+ let gq = gp()
894+ if ($isInstanceOf(gq, "ByteVector"))
893895 then {
894- let gt = gp
895- if ((cT.callerPublicKey == gt))
896+ let gu = gq
897+ if ((cU.callerPublicKey == gu))
896898 then true
897- else gr
899+ else gs
898900 }
899- else if ($isInstanceOf(gp, "Unit"))
900- then if ((cT.caller == this))
901+ else if ($isInstanceOf(gq, "Unit"))
902+ then if ((cU.caller == this))
901903 then true
902- else gr
904+ else gs
903905 else throw("Match error")
904906 }
905907
906908
907-func gv (gw,ex,gx) = {
908- let bk = bc()
909- let dn = bk[w]
910- let do = bk[x]
911- let ey = g
912- let eA = parseBigIntValue(l)
913- let cH = (parseBigIntValue(aY) * eA)
914- let cD = if ((gw == false))
915- then [(toBigInt(bR(dn)) + gx), toBigInt(bR(do))]
916- else [(toBigInt(bR(do)) + gx), toBigInt(bR(dn))]
917- let ez = cD[0]
918- let cG = ez
919- let cI = (cH * ey)
920- let eB = (((((ex * ex) / (ez * ey)) * ex) * eA) / (cI * ey))
921- let eC = ((cG + ((ex * eA) / cI)) - ex)
922- func cR (cS,eD) = {
923- let gy = cS
924- let eF = gy._1
925- let dg = gy._2
926- if ((dg != unit))
927- then cS
909+func gw (gx,ey,gy) = {
910+ let bl = bd()
911+ let do = bl[x]
912+ let dp = bl[y]
913+ let ez = g
914+ let eB = parseBigIntValue(m)
915+ let cI = (parseBigIntValue(aZ) * eB)
916+ let cE = if ((gx == false))
917+ then [(toBigInt(bS(do)) + gy), toBigInt(bS(dp))]
918+ else [(toBigInt(bS(dp)) + gy), toBigInt(bS(do))]
919+ let eA = cE[0]
920+ let cH = eA
921+ let cJ = (cI * ez)
922+ let eC = (((((ey * ey) / (eA * ez)) * ey) * eB) / (cJ * ez))
923+ let eD = ((cH + ((ey * eB) / cJ)) - ey)
924+ func cS (cT,eE) = {
925+ let gz = cT
926+ let eG = gz._1
927+ let dh = gz._2
928+ if ((dh != unit))
929+ then cT
928930 else {
929- let eG = (((eF * eF) + eB) / ((g * eF) + eC))
930- let eH = X((eG - value(eF)))
931- if ((f >= eH))
932- then $Tuple2(eG, eD)
933- else $Tuple2(eG, unit)
931+ let eH = (((eG * eG) + eC) / ((g * eG) + eD))
932+ let eI = Y((eH - value(eG)))
933+ if ((f >= eI))
934+ then $Tuple2(eH, eE)
935+ else $Tuple2(eH, unit)
934936 }
935937 }
936938
937- let cX = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14]
938- let gz = {
939- let cZ = cX
940- let da = size(cZ)
941- let db = $Tuple2(ex, unit)
942- func dc (dd,de) = if ((de >= da))
943- then dd
944- else cR(dd, cZ[de])
939+ let cY = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14]
940+ let gA = {
941+ let da = cY
942+ let db = size(da)
943+ let dc = $Tuple2(ey, unit)
944+ func dd (de,df) = if ((df >= db))
945+ then de
946+ else cS(de, da[df])
945947
946- func df (dd,de) = if ((de >= da))
947- then dd
948+ func dg (de,df) = if ((df >= db))
949+ then de
948950 else throw("List size exceeds 15")
949951
950- df(dc(dc(dc(dc(dc(dc(dc(dc(dc(dc(dc(dc(dc(dc(dc(db, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15)
952+ dg(dd(dd(dd(dd(dd(dd(dd(dd(dd(dd(dd(dd(dd(dd(dd(dc, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15)
951953 }
952- let eF = gz._1
953- let dg = gz._2
954- if ((dg != unit))
955- then eF
956- else throw(("Y calculation error, Y = " + toString(eF)))
954+ let eG = gA._1
955+ let dh = gA._2
956+ if ((dh != unit))
957+ then eG
958+ else throw(("Y calculation error, Y = " + toString(eG)))
957959 }
958960
959961
960-func gA () = valueOrElse(getBoolean(aU, aG(toString(this))), false)
962+func gB () = valueOrElse(getBoolean(aV, aH(toString(this))), false)
961963
962964
963-@Callable(cT)
964-func calculateAmountOutForSwapREADONLY (gB,gw,gC) = {
965- let gD = if ((gw == false))
965+@Callable(cU)
966+func calculateAmountOutForSwapREADONLY (gC,gx,gD) = {
967+ let gE = if ((gx == false))
966968 then {
967- let gE = aN(this, ak())
968- let gx = (toBigInt(bR(aN(this, aj()))) + toBigInt(gB))
969- $Tuple2(gE, gx)
969+ let gF = aO(this, al())
970+ let gy = (toBigInt(bS(aO(this, ak()))) + toBigInt(gC))
971+ $Tuple2(gF, gy)
970972 }
971973 else {
972- let gE = aN(this, aj())
973- let gx = (toBigInt(bR(aN(this, ak()))) + toBigInt(gB))
974- $Tuple2(gE, gx)
974+ let gF = aO(this, ak())
975+ let gy = (toBigInt(bS(aO(this, al()))) + toBigInt(gC))
976+ $Tuple2(gF, gy)
975977 }
976- let gE = gD._1
977- let gx = gD._2
978- let bk = bc()
979- let dn = bk[w]
980- let do = bk[x]
981- let cD = [toBigInt(bR(dn)), toBigInt(bR(do))]
982- let ex = cC(cD)
983- let eF = gv(gw, ex, toBigInt(gB))
984- let gF = ((toBigInt(bR(gE)) - eF) - toBigInt(1))
985- let gG = max([0, toInt(gF)])
986- let gH = if ((gw == false))
987- then [((toBigInt(bR(dn)) + toBigInt(gB)) + toBigInt(gC)), (toBigInt(bR(do)) - gF)]
988- else [(toBigInt(bR(dn)) - gF), ((toBigInt(bR(do)) + toBigInt(gB)) + toBigInt(gC))]
989- let gI = cC(gH)
990- let ec = if ((gI >= ex))
978+ let gF = gE._1
979+ let gy = gE._2
980+ let bl = bd()
981+ let do = bl[x]
982+ let dp = bl[y]
983+ let cE = [toBigInt(bS(do)), toBigInt(bS(dp))]
984+ let ey = cD(cE)
985+ let eG = gw(gx, ey, toBigInt(gC))
986+ let gG = ((toBigInt(bS(gF)) - eG) - toBigInt(1))
987+ let gH = max([0, toInt(gG)])
988+ let gI = if ((gx == false))
989+ then [((toBigInt(bS(do)) + toBigInt(gC)) + toBigInt(gD)), (toBigInt(bS(dp)) - gG)]
990+ else [(toBigInt(bS(do)) - gG), ((toBigInt(bS(dp)) + toBigInt(gC)) + toBigInt(gD))]
991+ let gJ = cD(gI)
992+ let ed = if ((gJ >= ey))
991993 then true
992- else throw(makeString(["new D is fewer error", toString(ex), toString(gI)], "__"))
993- if ((ec == ec))
994- then $Tuple2(nil, gG)
994+ else throw(makeString(["new D is fewer error", toString(ey), toString(gJ)], "__"))
995+ if ((ed == ed))
996+ then $Tuple2(nil, gH)
995997 else throw("Strict value is not equal to itself.")
996998 }
997999
9981000
9991001
1000-@Callable(cT)
1001-func calculateAmountOutForSwapAndSendTokens (gB,gw,gJ,gK,gC) = {
1002- let gL = {
1003- let aW = invoke(aU, "getSwapContractREADONLY", nil, nil)
1004- if ($isInstanceOf(aW, "String"))
1005- then aW
1006- else throw(($getType(aW) + " couldn't be cast to String"))
1002+@Callable(cU)
1003+func calculateAmountOutForSwapAndSendTokens (gC,gx,gK,gL,gD) = {
1004+ let gM = {
1005+ let aX = invoke(aV, "getSwapContractREADONLY", nil, nil)
1006+ if ($isInstanceOf(aX, "String"))
1007+ then aX
1008+ else throw(($getType(aX) + " couldn't be cast to String"))
10071009 }
1008- let gM = [if ((value(cT.payments[0]).amount >= gB))
1010+ let gN = [if ((value(cU.payments[0]).amount >= gC))
10091011 then true
1010- else aR("Wrong amount"), if ((cT.caller == addressFromStringValue(gL)))
1012+ else aS("Wrong amount"), if ((cU.caller == addressFromStringValue(gM)))
10111013 then true
1012- else aR("Permission denied")]
1013- if ((gM == gM))
1014+ else aS("Permission denied")]
1015+ if ((gN == gN))
10141016 then {
1015- let fo = value(cT.payments[0])
1016- let gN = bi(fo.assetId)
1017- let gO = if ((gw == false))
1017+ let fp = value(cU.payments[0])
1018+ let gO = bj(fp.assetId)
1019+ let gP = if ((gx == false))
10181020 then {
1019- let gE = aN(this, ak())
1020- let gx = (bR(gN) - value(cT.payments[0]).amount)
1021- $Tuple2(gE, gx)
1021+ let gF = aO(this, al())
1022+ let gy = (bS(gO) - value(cU.payments[0]).amount)
1023+ $Tuple2(gF, gy)
10221024 }
10231025 else {
1024- let gE = aN(this, aj())
1025- let gx = (bR(gN) - value(cT.payments[0]).amount)
1026- $Tuple2(gE, gx)
1026+ let gF = aO(this, ak())
1027+ let gy = (bS(gO) - value(cU.payments[0]).amount)
1028+ $Tuple2(gF, gy)
10271029 }
1028- let gE = gO._1
1029- let gx = gO._2
1030- let bk = bc()
1031- let dn = bk[w]
1032- let do = bk[x]
1033- let cD = if ((gw == false))
1034- then [(toBigInt(bR(dn)) - toBigInt(value(cT.payments[0]).amount)), toBigInt(bR(do))]
1035- else [toBigInt(bR(dn)), (toBigInt(bR(do)) - toBigInt(value(cT.payments[0]).amount))]
1036- let ex = cC(cD)
1037- let eF = gv(gw, ex, toBigInt(0))
1038- let gF = ((toBigInt(bR(gE)) - eF) - toBigInt(1))
1039- let gG = max([0, toInt(gF)])
1040- let gP = if ((gG >= gJ))
1030+ let gF = gP._1
1031+ let gy = gP._2
1032+ let bl = bd()
1033+ let do = bl[x]
1034+ let dp = bl[y]
1035+ let cE = if ((gx == false))
1036+ then [(toBigInt(bS(do)) - toBigInt(value(cU.payments[0]).amount)), toBigInt(bS(dp))]
1037+ else [toBigInt(bS(do)), (toBigInt(bS(dp)) - toBigInt(value(cU.payments[0]).amount))]
1038+ let ey = cD(cE)
1039+ let eG = gw(gx, ey, toBigInt(0))
1040+ let gG = ((toBigInt(bS(gF)) - eG) - toBigInt(1))
1041+ let gH = max([0, toInt(gG)])
1042+ let gQ = if ((gH >= gK))
10411043 then true
10421044 else throw("Exchange result is fewer coins than expected")
1043- if ((gP == gP))
1045+ if ((gQ == gQ))
10441046 then {
1045- let gH = if ((gw == false))
1046- then [(toBigInt(bR(dn)) + toBigInt(gC)), (toBigInt(bR(do)) - gF)]
1047- else [(toBigInt(bR(dn)) - gF), (toBigInt(bR(do)) + toBigInt(gC))]
1048- let gI = cC(gH)
1049- let ec = if ((gI >= ex))
1047+ let gI = if ((gx == false))
1048+ then [(toBigInt(bS(do)) + toBigInt(gD)), (toBigInt(bS(dp)) - gG)]
1049+ else [(toBigInt(bS(do)) - gG), (toBigInt(bS(dp)) + toBigInt(gD))]
1050+ let gJ = cD(gI)
1051+ let ed = if ((gJ >= ey))
10501052 then true
10511053 else throw("new D is fewer error")
1052- if ((ec == ec))
1053- then $Tuple2([ScriptTransfer(addressFromStringValue(gK), gG, bg(gE))], gG)
1054+ if ((ed == ed))
1055+ then $Tuple2([ScriptTransfer(addressFromStringValue(gL), gH, bh(gF))], gH)
10541056 else throw("Strict value is not equal to itself.")
10551057 }
10561058 else throw("Strict value is not equal to itself.")
10601062
10611063
10621064
1063-@Callable(cT)
1064-func constructor (Y) = {
1065- let eB = gu(cT)
1066- if ((eB == eB))
1067- then [StringEntry(Y(), Y)]
1065+@Callable(cU)
1066+func constructor (Z) = {
1067+ let eC = gv(cU)
1068+ if ((eC == eC))
1069+ then [StringEntry(Z(), Z)]
10681070 else throw("Strict value is not equal to itself.")
10691071 }
10701072
10711073
10721074
1073-@Callable(cT)
1074-func setManager (gQ) = {
1075- let eB = gu(cT)
1076- if ((eB == eB))
1075+@Callable(cU)
1076+func setManager (gR) = {
1077+ let eC = gv(cU)
1078+ if ((eC == eC))
10771079 then {
1078- let gR = fromBase58String(gQ)
1079- if ((gR == gR))
1080- then [StringEntry(aa(), gQ)]
1080+ let gS = fromBase58String(gR)
1081+ if ((gS == gS))
1082+ then [StringEntry(ab(), gR)]
10811083 else throw("Strict value is not equal to itself.")
10821084 }
10831085 else throw("Strict value is not equal to itself.")
10851087
10861088
10871089
1088-@Callable(cT)
1090+@Callable(cU)
10891091 func confirmManager () = {
1090- let cy = gq()
1091- let gS = if (isDefined(cy))
1092+ let cz = gr()
1093+ let gT = if (isDefined(cz))
10921094 then true
10931095 else throw("No pending manager")
1094- if ((gS == gS))
1096+ if ((gT == gT))
10951097 then {
1096- let gT = if ((cT.callerPublicKey == value(cy)))
1098+ let gU = if ((cU.callerPublicKey == value(cz)))
10971099 then true
10981100 else throw("You are not pending manager")
1099- if ((gT == gT))
1100- then [StringEntry(Z(), toBase58String(value(cy))), DeleteEntry(aa())]
1101+ if ((gU == gU))
1102+ then [StringEntry(aa(), toBase58String(value(cz))), DeleteEntry(ab())]
11011103 else throw("Strict value is not equal to itself.")
11021104 }
11031105 else throw("Strict value is not equal to itself.")
11051107
11061108
11071109
1108-@Callable(cT)
1109-func put (gU,gV) = {
1110- let gW = bw()
1111- let gX = valueOrErrorMessage(addressFromString(gW[C]), "Wr st addr")
1112- let gY = valueOrErrorMessage(addressFromString(gW[E]), "Wr sl addr")
1113- if ((0 > gU))
1110+@Callable(cU)
1111+func put (gV,gW) = {
1112+ let gX = bx()
1113+ let gY = valueOrErrorMessage(addressFromString(gX[D]), "Wr st addr")
1114+ let gZ = valueOrErrorMessage(addressFromString(gX[F]), "Wr sl addr")
1115+ if ((0 > gV))
11141116 then throw("Wrong slippage")
1115- else if ((size(cT.payments) != 2))
1117+ else if ((size(cU.payments) != 2))
11161118 then throw("2 pmnts expd")
11171119 else {
1118- let gZ = toBigInt(value(cT.payments[0]).amount)
1119- let ha = toBigInt(value(cT.payments[1]).amount)
1120- let eS = (toBigInt(bR(bi(bq))) - gZ)
1121- if ((eS == eS))
1120+ let ha = toBigInt(value(cU.payments[0]).amount)
1121+ let hb = toBigInt(value(cU.payments[1]).amount)
1122+ let eT = (toBigInt(bS(bj(br))) - ha)
1123+ if ((eT == eT))
11221124 then {
1123- let eT = (toBigInt(bR(bi(br))) - ha)
1124- if ((eT == eT))
1125+ let eU = (toBigInt(bS(bj(bs))) - hb)
1126+ if ((eU == eU))
11251127 then {
1126- let eU = toBigInt(value(assetInfo(bp)).quantity)
1127- if ((eU == eU))
1128+ let eV = toBigInt(value(assetInfo(bq)).quantity)
1129+ if ((eV == eV))
11281130 then {
1129- let eV = eO(gZ, ha, toBigInt(0))
1130- if ((eV == eV))
1131+ let eW = eP(ha, hb, toBigInt(0))
1132+ if ((eW == eW))
11311133 then {
1132- let hb = fp(toString(cT.caller), toBase58String(cT.transactionId), AttachedPayment(value(cT.payments[0]).assetId, value(cT.payments[0]).amount), cT.payments[1], gU, true, false, true, 0, "")
1133- let ep = hb._2
1134- let hc = hb._7
1135- let dF = hb._9
1136- let eq = hb._10
1137- let er = hb._11
1138- let dn = hb._12
1139- let do = hb._13
1140- let eb = invoke(aU, "emit", [ep], nil)
1141- if ((eb == eb))
1134+ let hc = fq(toString(cU.caller), toBase58String(cU.transactionId), AttachedPayment(value(cU.payments[0]).assetId, value(cU.payments[0]).amount), cU.payments[1], gV, true, false, true, 0, "")
1135+ let eq = hc._2
1136+ let hd = hc._7
1137+ let dG = hc._9
1138+ let er = hc._10
1139+ let es = hc._11
1140+ let do = hc._12
1141+ let dp = hc._13
1142+ let ec = invoke(aV, "emit", [eq], nil)
1143+ if ((ec == ec))
11421144 then {
1143- let hd = {
1144- let gp = eb
1145- if ($isInstanceOf(gp, "Address"))
1145+ let he = {
1146+ let gq = ec
1147+ if ($isInstanceOf(gq, "Address"))
11461148 then {
1147- let he = gp
1148- invoke(he, "emit", [ep], nil)
1149+ let hf = gq
1150+ invoke(hf, "emit", [eq], nil)
11491151 }
11501152 else unit
11511153 }
1152- if ((hd == hd))
1154+ if ((he == he))
11531155 then {
1154- let hf = if ((eq > 0))
1155- then invoke(gY, "put", nil, [AttachedPayment(dn, eq)])
1156+ let hg = if ((er > 0))
1157+ then invoke(gZ, "put", nil, [AttachedPayment(do, er)])
11561158 else nil
1157- if ((hf == hf))
1159+ if ((hg == hg))
11581160 then {
1159- let hg = if ((er > 0))
1160- then invoke(gY, "put", nil, [AttachedPayment(do, er)])
1161+ let hh = if ((es > 0))
1162+ then invoke(gZ, "put", nil, [AttachedPayment(dp, es)])
11611163 else nil
1162- if ((hg == hg))
1164+ if ((hh == hh))
11631165 then {
1164- let hh = if (gV)
1166+ let hi = if (gW)
11651167 then {
1166- let hi = invoke(gX, "stake", nil, [AttachedPayment(hc, ep)])
1167- if ((hi == hi))
1168+ let hj = invoke(gY, "stake", nil, [AttachedPayment(hd, eq)])
1169+ if ((hj == hj))
11681170 then nil
11691171 else throw("Strict value is not equal to itself.")
11701172 }
1171- else [ScriptTransfer(cT.caller, ep, hc)]
1172- let hj = eW(0, 0, 0)
1173- let gm = hj._1
1174- let eN = hj._2
1175- let hk = if ((eN >= eV))
1173+ else [ScriptTransfer(cU.caller, eq, hd)]
1174+ let hk = eX(0, 0, 0)
1175+ let gn = hk._1
1176+ let eO = hk._2
1177+ let hl = if ((eO >= eW))
11761178 then true
1177- else aR(makeString(["updated DLp lower than current DLp", toString(eS), toString(eT), toString(eU), toString(eV), toString(eN), toString(eq), toString(er)], " "))
1178- if ((hk == hk))
1179+ else aS(makeString(["updated DLp lower than current DLp", toString(eT), toString(eU), toString(eV), toString(eW), toString(eO), toString(er), toString(es)], " "))
1180+ if ((hl == hl))
11791181 then {
1180- let hl = value(assetInfo(bp)).quantity
1181- if ((hl == hl))
1182- then ((dF ++ hh) ++ gm)
1182+ let hm = value(assetInfo(bq)).quantity
1183+ if ((hm == hm))
1184+ then ((dG ++ hi) ++ gn)
11831185 else throw("Strict value is not equal to itself.")
11841186 }
11851187 else throw("Strict value is not equal to itself.")
12041206
12051207
12061208
1207-@Callable(cT)
1208-func putOneTknV2 (fQ,gV) = {
1209- let hm = {
1210- let aW = invoke(aU, "isPoolOneTokenOperationsDisabledREADONLY", [toString(this)], nil)
1211- if ($isInstanceOf(aW, "Boolean"))
1212- then aW
1213- else throw(($getType(aW) + " couldn't be cast to Boolean"))
1209+@Callable(cU)
1210+func putOneTknV2 (fR,gW) = {
1211+ let hn = {
1212+ let aX = invoke(aV, "isPoolOneTokenOperationsDisabledREADONLY", [toString(this)], nil)
1213+ if ($isInstanceOf(aX, "Boolean"))
1214+ then aX
1215+ else throw(($getType(aX) + " couldn't be cast to Boolean"))
12141216 }
1215- let hn = if (if (if (aZ())
1217+ let ho = if (if (if (ba())
12161218 then true
1217- else (bo == q))
1219+ else (bp == r))
12181220 then true
1219- else (bo == s))
1221+ else (bp == t))
12201222 then true
1221- else hm
1222- let gM = [if (if (!(hn))
1223+ else hn
1224+ let gN = [if (if (!(ho))
12231225 then true
1224- else gs(cT))
1226+ else gt(cU))
12251227 then true
1226- else aR("put operation is blocked by admin"), if ((size(cT.payments) == 1))
1228+ else aS("put operation is blocked by admin"), if ((size(cU.payments) == 1))
12271229 then true
1228- else aR("exactly 1 payment are expected")]
1229- if ((gM == gM))
1230+ else aS("exactly 1 payment are expected")]
1231+ if ((gN == gN))
12301232 then {
1231- let dn = toBase58String(value(bq))
12321233 let do = toBase58String(value(br))
1233- let dm = bp
1234- let fU = bs
1234+ let dp = toBase58String(value(bs))
1235+ let dn = bq
12351236 let fV = bt
1236- let dl = if ((cT.caller == this))
1237- then cT.originCaller
1238- else cT.caller
1239- let fo = value(cT.payments[0])
1240- let dj = toBase58String(value(fo.assetId))
1241- let dP = fo.amount
1242- let eV = if ((fo.assetId == bq))
1243- then eO(toBigInt(dP), toBigInt(0), toBigInt(0))
1244- else eO(toBigInt(0), toBigInt(dP), toBigInt(0))
1245- if ((eV == eV))
1237+ let fW = bu
1238+ let dm = if ((cU.caller == this))
1239+ then cU.originCaller
1240+ else cU.caller
1241+ let fp = value(cU.payments[0])
1242+ let dk = toBase58String(value(fp.assetId))
1243+ let dQ = fp.amount
1244+ let eW = if ((fp.assetId == br))
1245+ then eP(toBigInt(dQ), toBigInt(0), toBigInt(0))
1246+ else eP(toBigInt(0), toBigInt(dQ), toBigInt(0))
1247+ if ((eW == eW))
12461248 then {
1247- let ho = ft(dP, dj, toString(dl), toBase58String(cT.transactionId), true)
1248- if ((ho == ho))
1249+ let hp = fu(dQ, dk, toString(dm), toBase58String(cU.transactionId), true)
1250+ if ((hp == hp))
12491251 then {
1250- let cB = ho._3
1251- let dF = ho._2
1252- let hp = ho._1
1253- let ep = if (if ((fQ > 0))
1254- then (fQ > hp)
1252+ let cC = hp._3
1253+ let dG = hp._2
1254+ let hq = hp._1
1255+ let eq = if (if ((fR > 0))
1256+ then (fR > hq)
12551257 else false)
1256- then aR(makeString(["amount to receive is less than ", toString(fQ)], ""))
1257- else hp
1258- let hb = invoke(aU, "emit", [ep], nil)
1259- if ((hb == hb))
1258+ then aS(makeString(["amount to receive is less than ", toString(fR)], ""))
1259+ else hq
1260+ let hc = invoke(aV, "emit", [eq], nil)
1261+ if ((hc == hc))
12601262 then {
1261- let hd = {
1262- let gp = hb
1263- if ($isInstanceOf(gp, "Address"))
1263+ let he = {
1264+ let gq = hc
1265+ if ($isInstanceOf(gq, "Address"))
12641266 then {
1265- let he = gp
1266- invoke(he, "emit", [ep], nil)
1267+ let hf = gq
1268+ invoke(hf, "emit", [eq], nil)
12671269 }
12681270 else unit
12691271 }
1270- if ((hd == hd))
1272+ if ((he == he))
12711273 then {
1272- let hh = if (gV)
1274+ let hi = if (gW)
12731275 then {
1274- let hi = invoke(by, "stakeFor", [toString(cT.caller)], [AttachedPayment(dm, ep)])
1275- if ((hi == hi))
1276+ let hj = invoke(bz, "stakeFor", [toString(cU.caller)], [AttachedPayment(dn, eq)])
1277+ if ((hj == hj))
12761278 then nil
12771279 else throw("Strict value is not equal to itself.")
12781280 }
1279- else [ScriptTransfer(cT.caller, ep, dm)]
1280- let gg = if ((cB > 0))
1281- then [ScriptTransfer(bb, cB, fromBase58String(dj))]
1281+ else [ScriptTransfer(cU.caller, eq, dn)]
1282+ let gh = if ((cC > 0))
1283+ then [ScriptTransfer(bc, cC, fromBase58String(dk))]
12821284 else nil
1283- let hq = if ((this == bb))
1285+ let hr = if ((this == bc))
12841286 then $Tuple2(0, 0)
12851287 else {
1286- let hr = if ((fo.assetId == bq))
1288+ let hs = if ((fp.assetId == br))
12871289 then true
12881290 else false
1289- if (hr)
1290- then $Tuple2(-(cB), 0)
1291- else $Tuple2(0, -(cB))
1291+ if (hs)
1292+ then $Tuple2(-(cC), 0)
1293+ else $Tuple2(0, -(cC))
12921294 }
1293- let eX = hq._1
1294- let eY = hq._2
1295- let hs = eW(eX, eY, 0)
1296- let gm = hs._1
1297- let eN = hs._2
1298- let gn = fa(eV, eN)
1299- if ((gn == gn))
1300- then $Tuple2((((dF ++ hh) ++ gg) ++ gm), ep)
1295+ let eY = hr._1
1296+ let eZ = hr._2
1297+ let ht = eX(eY, eZ, 0)
1298+ let gn = ht._1
1299+ let eO = ht._2
1300+ let go = fb(eW, eO)
1301+ if ((go == go))
1302+ then $Tuple2((((dG ++ hi) ++ gh) ++ gn), eq)
13011303 else throw("Strict value is not equal to itself.")
13021304 }
13031305 else throw("Strict value is not equal to itself.")
13131315
13141316
13151317
1316-@Callable(cT)
1317-func putForFree (ht) = if ((0 > ht))
1318+@Callable(cU)
1319+func putForFree (hu) = if ((0 > hu))
13181320 then throw("Wrong slpg")
1319- else if ((size(cT.payments) != 2))
1321+ else if ((size(cU.payments) != 2))
13201322 then throw("2 pmnts expd")
13211323 else {
1322- let hu = fp(toString(cT.caller), toBase58String(cT.transactionId), AttachedPayment(value(cT.payments[0]).assetId, value(cT.payments[0]).amount), cT.payments[1], ht, false, false, true, 0, "")
1323- let dF = hu._9
1324- let gZ = toBigInt(value(cT.payments[0]).amount)
1325- let ha = toBigInt(value(cT.payments[1]).amount)
1326- let eV = eO(gZ, ha, toBigInt(0))
1327- if ((eV == eV))
1324+ let hv = fq(toString(cU.caller), toBase58String(cU.transactionId), AttachedPayment(value(cU.payments[0]).assetId, value(cU.payments[0]).amount), cU.payments[1], hu, false, false, true, 0, "")
1325+ let dG = hv._9
1326+ let ha = toBigInt(value(cU.payments[0]).amount)
1327+ let hb = toBigInt(value(cU.payments[1]).amount)
1328+ let eW = eP(ha, hb, toBigInt(0))
1329+ if ((eW == eW))
13281330 then {
1329- let hv = eW(0, 0, 0)
1330- let gm = hv._1
1331- let eN = hv._2
1332- let gn = fa(eV, eN)
1333- if ((gn == gn))
1334- then (dF ++ gm)
1331+ let hw = eX(0, 0, 0)
1332+ let gn = hw._1
1333+ let eO = hw._2
1334+ let go = fb(eW, eO)
1335+ if ((go == go))
1336+ then (dG ++ gn)
13351337 else throw("Strict value is not equal to itself.")
13361338 }
13371339 else throw("Strict value is not equal to itself.")
13391341
13401342
13411343
1342-@Callable(cT)
1344+@Callable(cU)
13431345 func get () = {
1344- let eV = eO(toBigInt(0), toBigInt(0), toBigInt(0))
1345- if ((eV == eV))
1346+ let eW = eP(toBigInt(0), toBigInt(0), toBigInt(0))
1347+ if ((eW == eW))
13461348 then {
1347- let eb = fn(cT)
1348- let hw = eb._1
1349- let dE = eb._2
1350- let dP = eb._3
1351- let dj = eb._4
1352- let dF = eb._5
1353- let eC = invoke(aU, "burn", [dP], [AttachedPayment(dj, dP)])
1354- if ((eC == eC))
1349+ let ec = fo(cU)
1350+ let hx = ec._1
1351+ let dF = ec._2
1352+ let dQ = ec._3
1353+ let dk = ec._4
1354+ let dG = ec._5
1355+ let eD = invoke(aV, "burn", [dQ], [AttachedPayment(dk, dQ)])
1356+ if ((eD == eD))
13551357 then {
1356- let hx = eW(-(hw), -(dE), 0)
1357- let gm = hx._1
1358- let eN = hx._2
1359- let gn = fa(eV, eN)
1360- if ((gn == gn))
1361- then (dF ++ gm)
1358+ let hy = eX(-(hx), -(dF), 0)
1359+ let gn = hy._1
1360+ let eO = hy._2
1361+ let go = fb(eW, eO)
1362+ if ((go == go))
1363+ then (dG ++ gn)
13621364 else throw("Strict value is not equal to itself.")
13631365 }
13641366 else throw("Strict value is not equal to itself.")
13681370
13691371
13701372
1371-@Callable(cT)
1372-func getOneTknV2 (fP,fQ) = {
1373- let hm = {
1374- let aW = invoke(aU, "isPoolOneTokenOperationsDisabledREADONLY", [toString(this)], nil)
1375- if ($isInstanceOf(aW, "Boolean"))
1376- then aW
1377- else throw(($getType(aW) + " couldn't be cast to Boolean"))
1373+@Callable(cU)
1374+func getOneTknV2 (fQ,fR) = {
1375+ let hn = {
1376+ let aX = invoke(aV, "isPoolOneTokenOperationsDisabledREADONLY", [toString(this)], nil)
1377+ if ($isInstanceOf(aX, "Boolean"))
1378+ then aX
1379+ else throw(($getType(aX) + " couldn't be cast to Boolean"))
13781380 }
1379- let hy = if (if (aZ())
1381+ let hz = if (if (ba())
13801382 then true
1381- else (bo == s))
1383+ else (bp == t))
13821384 then true
1383- else hm
1384- let gM = [if (if (!(hy))
1385+ else hn
1386+ let gN = [if (if (!(hz))
13851387 then true
1386- else gs(cT))
1388+ else gt(cU))
13871389 then true
1388- else aR("get operation is blocked by admin"), if ((size(cT.payments) == 1))
1390+ else aS("get operation is blocked by admin"), if ((size(cU.payments) == 1))
13891391 then true
1390- else aR("exactly 1 payment are expected")]
1391- if ((gM == gM))
1392+ else aS("exactly 1 payment are expected")]
1393+ if ((gN == gN))
13921394 then {
1393- let hz = fO(fP, fQ, cT.payments, cT.caller, cT.originCaller, cT.transactionId)
1394- let dF = hz._1
1395- let fZ = hz._2
1396- $Tuple2(dF, fZ)
1395+ let hA = fP(fQ, fR, cU.payments, cU.caller, cU.originCaller, cU.transactionId)
1396+ let dG = hA._1
1397+ let ga = hA._2
1398+ $Tuple2(dG, ga)
13971399 }
13981400 else throw("Strict value is not equal to itself.")
13991401 }
14001402
14011403
14021404
1403-@Callable(cT)
1405+@Callable(cU)
14041406 func refreshDLp () = {
1405- let hA = valueOrElse(getInteger(as), 0)
1406- let hB = if (((height - hA) >= av))
1407+ let hB = valueOrElse(getInteger(at), 0)
1408+ let hC = if (((height - hB) >= aw))
14071409 then unit
1408- else aR(makeString([toString(av), " blocks have not passed since the previous call"], ""))
1409- if ((hB == hB))
1410+ else aS(makeString([toString(aw), " blocks have not passed since the previous call"], ""))
1411+ if ((hC == hC))
14101412 then {
1411- let fh = valueOrErrorMessage(parseBigInt(valueOrElse(getString(this, ar), "0")), aT("invalid dLp"))
1412- let hC = eW(0, 0, 0)
1413- let hD = hC._1
1414- let eN = hC._2
1415- let eZ = if ((fh != eN))
1416- then hD
1417- else aR("nothing to refresh")
1418- $Tuple2(eZ, toString(eN))
1413+ let fi = valueOrErrorMessage(parseBigInt(valueOrElse(getString(this, as), "0")), aU("invalid dLp"))
1414+ let hD = eX(0, 0, 0)
1415+ let hE = hD._1
1416+ let eO = hD._2
1417+ let fa = if ((fi != eO))
1418+ then hE
1419+ else aS("nothing to refresh")
1420+ $Tuple2(fa, toString(eO))
14191421 }
14201422 else throw("Strict value is not equal to itself.")
14211423 }
14221424
14231425
14241426
1425-@Callable(cT)
1426-func getOneTknV2READONLY (fP,hE) = {
1427+@Callable(cU)
1428+func getOneTknV2READONLY (fQ,hF) = {
1429+ let do = toBase58String(value(br))
1430+ let dp = toBase58String(value(bs))
14271431 let dn = toBase58String(value(bq))
1428- let do = toBase58String(value(br))
1429- let dm = toBase58String(value(bp))
1430- let cD = [toBigInt(bR(dn)), toBigInt(bR(do))]
1431- let eM = toBigInt(valueOrErrorMessage(assetInfo(fromBase58String(dm)), "invalid lp asset").quantity)
1432- let cf = cC(cD)
1433- let ce = (cf - fraction(toBigInt(hE), cf, eM))
1434- let hF = if ((fP == dn))
1432+ let cE = [toBigInt(bS(do)), toBigInt(bS(dp))]
1433+ let eN = toBigInt(valueOrErrorMessage(assetInfo(fromBase58String(dn)), "invalid lp asset").quantity)
1434+ let cg = cD(cE)
1435+ let cf = (cg - fraction(toBigInt(hF), cg, eN))
1436+ let hG = if ((fQ == do))
14351437 then 0
1436- else if ((fP == do))
1438+ else if ((fQ == dp))
14371439 then 1
14381440 else throw("invalid out asset id")
1439- let hG = ew(cD, hF, ce)
1440- let gF = (cD[hF] - hG)
1441- let gG = max([0, toInt((gF - f))])
1442- let hH = cz(gG, aX)
1443- let fY = hH._1
1444- let cB = hH._2
1445- $Tuple2(nil, $Tuple2(fY, cB))
1441+ let hH = ex(cE, hG, cf)
1442+ let gG = (cE[hG] - hH)
1443+ let gH = max([0, toInt((gG - f))])
1444+ let hI = cA(gH, aY)
1445+ let fZ = hI._1
1446+ let cC = hI._2
1447+ $Tuple2(nil, $Tuple2(fZ, cC))
14461448 }
14471449
14481450
14491451
1450-@Callable(cT)
1451-func getOneTknV2WithBonusREADONLY (fP,hE) = {
1452+@Callable(cU)
1453+func getOneTknV2WithBonusREADONLY (fQ,hF) = {
1454+ let do = toBase58String(value(br))
1455+ let dp = toBase58String(value(bs))
14521456 let dn = toBase58String(value(bq))
1453- let do = toBase58String(value(br))
1454- let dm = toBase58String(value(bp))
1455- let dt = bR(dn)
1456- let dv = bR(do)
1457- let hI = {
1458- let aW = invoke(this, "getOneTknV2READONLY", [fP, hE], nil)
1459- if ($isInstanceOf(aW, "(Int, Int)"))
1460- then aW
1461- else throw(($getType(aW) + " couldn't be cast to (Int, Int)"))
1457+ let du = bS(do)
1458+ let dw = bS(dp)
1459+ let hJ = {
1460+ let aX = invoke(this, "getOneTknV2READONLY", [fQ, hF], nil)
1461+ if ($isInstanceOf(aX, "(Int, Int)"))
1462+ then aX
1463+ else throw(($getType(aX) + " couldn't be cast to (Int, Int)"))
14621464 }
1463- let fY = hI._1
1464- let cB = hI._2
1465- let eb = dh("", dm, hE, this)
1466- let dD = eb._1
1467- let dE = eb._2
1468- let hJ = (dD + dE)
1469- let fN = if ((hJ == 0))
1470- then if ((fY == 0))
1465+ let fZ = hJ._1
1466+ let cC = hJ._2
1467+ let ec = di("", dn, hF, this)
1468+ let dE = ec._1
1469+ let dF = ec._2
1470+ let hK = (dE + dF)
1471+ let fO = if ((hK == 0))
1472+ then if ((fZ == 0))
14711473 then 0
14721474 else throw("bonus calculation error")
1473- else fraction((fY - hJ), a, hJ)
1474- $Tuple2(nil, $Tuple3(fY, cB, fN))
1475+ else fraction((fZ - hK), a, hK)
1476+ $Tuple2(nil, $Tuple3(fZ, cC, fO))
14751477 }
14761478
14771479
14781480
1479-@Callable(cT)
1480-func getNoLess (hK,hL) = {
1481- let eb = fn(cT)
1482- let dD = eb._1
1483- let dE = eb._2
1484- let dP = eb._3
1485- let dj = eb._4
1486- let dF = eb._5
1487- if ((hK > dD))
1488- then throw(((("Failed: " + toString(dD)) + " < ") + toString(hK)))
1489- else if ((hL > dE))
1490- then throw(((("Failed: " + toString(dE)) + " < ") + toString(hL)))
1481+@Callable(cU)
1482+func getNoLess (hL,hM) = {
1483+ let ec = fo(cU)
1484+ let dE = ec._1
1485+ let dF = ec._2
1486+ let dQ = ec._3
1487+ let dk = ec._4
1488+ let dG = ec._5
1489+ if ((hL > dE))
1490+ then throw(((("Failed: " + toString(dE)) + " < ") + toString(hL)))
1491+ else if ((hM > dF))
1492+ then throw(((("Failed: " + toString(dF)) + " < ") + toString(hM)))
14911493 else {
1492- let eV = eO(toBigInt(0), toBigInt(0), toBigInt(0))
1493- if ((eV == eV))
1494+ let eW = eP(toBigInt(0), toBigInt(0), toBigInt(0))
1495+ if ((eW == eW))
14941496 then {
1495- let hM = invoke(aU, "burn", [dP], [AttachedPayment(dj, dP)])
1496- if ((hM == hM))
1497+ let hN = invoke(aV, "burn", [dQ], [AttachedPayment(dk, dQ)])
1498+ if ((hN == hN))
14971499 then {
1498- let hN = eW(-(dD), -(dE), 0)
1499- let gm = hN._1
1500- let eN = hN._2
1501- let gn = fa(eV, eN)
1502- if ((gn == gn))
1503- then (dF ++ gm)
1500+ let hO = eX(-(dE), -(dF), 0)
1501+ let gn = hO._1
1502+ let eO = hO._2
1503+ let go = fb(eW, eO)
1504+ if ((go == go))
1505+ then (dG ++ gn)
15041506 else throw("Strict value is not equal to itself.")
15051507 }
15061508 else throw("Strict value is not equal to itself.")
15111513
15121514
15131515
1514-@Callable(cT)
1515-func unstakeAndGet (cA) = {
1516- let hO = if ((size(cT.payments) != 0))
1516+@Callable(cU)
1517+func unstakeAndGet (cB) = {
1518+ let hP = if ((size(cU.payments) != 0))
15171519 then throw("No pmnts expd")
15181520 else true
1519- if ((hO == hO))
1521+ if ((hP == hP))
15201522 then {
1521- let hP = bw()
1522- let hc = bp
1523- let hQ = valueOrErrorMessage(addressFromString(hP[C]), "Wr st addr")
1524- let eV = eO(toBigInt(0), toBigInt(0), toBigInt(0))
1525- if ((eV == eV))
1523+ let hQ = bx()
1524+ let hd = bq
1525+ let hR = valueOrErrorMessage(addressFromString(hQ[D]), "Wr st addr")
1526+ let eW = eP(toBigInt(0), toBigInt(0), toBigInt(0))
1527+ if ((eW == eW))
15261528 then {
1527- let hR = invoke(hQ, "unstake", [toBase58String(hc), cA], nil)
1528- if ((hR == hR))
1529+ let hS = invoke(hR, "unstake", [toBase58String(hd), cB], nil)
1530+ if ((hS == hS))
15291531 then {
1530- let eb = dh(toBase58String(cT.transactionId), toBase58String(hc), cA, cT.caller)
1531- let dD = eb._1
1532- let dE = eb._2
1533- let dr = parseIntValue(eb._9)
1534- let dF = eb._10
1535- let hS = if (if (aZ())
1532+ let ec = di(toBase58String(cU.transactionId), toBase58String(hd), cB, cU.caller)
1533+ let dE = ec._1
1534+ let dF = ec._2
1535+ let ds = parseIntValue(ec._9)
1536+ let dG = ec._10
1537+ let hT = if (if (ba())
15361538 then true
1537- else (dr == s))
1538- then throw(("Blocked: " + toString(dr)))
1539+ else (ds == t))
1540+ then throw(("Blocked: " + toString(ds)))
15391541 else true
1540- if ((hS == hS))
1542+ if ((hT == hT))
15411543 then {
1542- let hT = invoke(aU, "burn", [cA], [AttachedPayment(hc, cA)])
1543- if ((hT == hT))
1544+ let hU = invoke(aV, "burn", [cB], [AttachedPayment(hd, cB)])
1545+ if ((hU == hU))
15441546 then {
1545- let hU = eW(-(dD), -(dE), 0)
1546- let gm = hU._1
1547- let eN = hU._2
1548- let gn = fa(eV, eN)
1549- if ((gn == gn))
1550- then (dF ++ gm)
1547+ let hV = eX(-(dE), -(dF), 0)
1548+ let gn = hV._1
1549+ let eO = hV._2
1550+ let go = fb(eW, eO)
1551+ if ((go == go))
1552+ then (dG ++ gn)
15511553 else throw("Strict value is not equal to itself.")
15521554 }
15531555 else throw("Strict value is not equal to itself.")
15631565
15641566
15651567
1566-@Callable(cT)
1567-func unstakeAndGetNoLess (hV,hW,hL) = {
1568- let hy = if (aZ())
1568+@Callable(cU)
1569+func unstakeAndGetNoLess (hW,hX,hM) = {
1570+ let hz = if (ba())
15691571 then true
1570- else (bo == s)
1571- let gM = [if (!(hy))
1572+ else (bp == t)
1573+ let gN = [if (!(hz))
15721574 then true
1573- else throw("get operation is blocked by admin"), if ((size(cT.payments) == 0))
1575+ else throw("get operation is blocked by admin"), if ((size(cU.payments) == 0))
15741576 then true
15751577 else throw("no payments are expected")]
1576- if ((gM == gM))
1578+ if ((gN == gN))
15771579 then {
1578- let eV = eO(toBigInt(0), toBigInt(0), toBigInt(0))
1579- if ((eV == eV))
1580+ let eW = eP(toBigInt(0), toBigInt(0), toBigInt(0))
1581+ if ((eW == eW))
15801582 then {
1581- let hR = invoke(by, "unstake", [toBase58String(bp), hV], nil)
1582- if ((hR == hR))
1583+ let hS = invoke(bz, "unstake", [toBase58String(bq), hW], nil)
1584+ if ((hS == hS))
15831585 then {
1584- let hX = dh(toBase58String(cT.transactionId), toBase58String(bp), hV, cT.caller)
1585- let dD = hX._1
1586- let dE = hX._2
1587- let dF = hX._10
1588- let hY = [if ((dD >= hW))
1586+ let hY = di(toBase58String(cU.transactionId), toBase58String(bq), hW, cU.caller)
1587+ let dE = hY._1
1588+ let dF = hY._2
1589+ let dG = hY._10
1590+ let hZ = [if ((dE >= hX))
15891591 then true
1590- else throw(makeString(["amount asset amount to receive is less than ", toString(hW)], "")), if ((dE >= hL))
1592+ else throw(makeString(["amount asset amount to receive is less than ", toString(hX)], "")), if ((dF >= hM))
15911593 then true
1592- else throw(makeString(["price asset amount to receive is less than ", toString(hL)], ""))]
1593- if ((hY == hY))
1594+ else throw(makeString(["price asset amount to receive is less than ", toString(hM)], ""))]
1595+ if ((hZ == hZ))
15941596 then {
1595- let hM = invoke(aU, "burn", [hV], [AttachedPayment(bp, hV)])
1596- if ((hM == hM))
1597+ let hN = invoke(aV, "burn", [hW], [AttachedPayment(bq, hW)])
1598+ if ((hN == hN))
15971599 then {
1598- let hZ = eW(-(dD), -(dE), 0)
1599- let gm = hZ._1
1600- let eN = hZ._2
1601- let gn = fa(eV, eN)
1602- if ((gn == gn))
1603- then (dF ++ gm)
1600+ let ia = eX(-(dE), -(dF), 0)
1601+ let gn = ia._1
1602+ let eO = ia._2
1603+ let go = fb(eW, eO)
1604+ if ((go == go))
1605+ then (dG ++ gn)
16041606 else throw("Strict value is not equal to itself.")
16051607 }
16061608 else throw("Strict value is not equal to itself.")
16161618
16171619
16181620
1619-@Callable(cT)
1620-func unstakeAndGetOneTknV2 (hV,fP,fQ) = {
1621- let hm = {
1622- let aW = invoke(aU, "isPoolOneTokenOperationsDisabledREADONLY", [toString(this)], nil)
1623- if ($isInstanceOf(aW, "Boolean"))
1624- then aW
1625- else throw(($getType(aW) + " couldn't be cast to Boolean"))
1621+@Callable(cU)
1622+func unstakeAndGetOneTknV2 (hW,fQ,fR) = {
1623+ let hn = {
1624+ let aX = invoke(aV, "isPoolOneTokenOperationsDisabledREADONLY", [toString(this)], nil)
1625+ if ($isInstanceOf(aX, "Boolean"))
1626+ then aX
1627+ else throw(($getType(aX) + " couldn't be cast to Boolean"))
16261628 }
1627- let hy = if (if (aZ())
1629+ let hz = if (if (ba())
16281630 then true
1629- else (bo == s))
1631+ else (bp == t))
16301632 then true
1631- else hm
1632- let gM = [if (if (!(hy))
1633+ else hn
1634+ let gN = [if (if (!(hz))
16331635 then true
1634- else gs(cT))
1636+ else gt(cU))
16351637 then true
1636- else aR("get operation is blocked by admin"), if ((size(cT.payments) == 0))
1638+ else aS("get operation is blocked by admin"), if ((size(cU.payments) == 0))
16371639 then true
1638- else aR("no payments are expected")]
1639- if ((gM == gM))
1640+ else aS("no payments are expected")]
1641+ if ((gN == gN))
16401642 then {
1641- let hP = bw()
1642- let hc = bp
1643- let hQ = valueOrErrorMessage(addressFromString(hP[C]), "Wr st addr")
1644- let dl = cT.caller
1645- let ia = this
1646- let hR = invoke(hQ, "unstakeINTERNAL", [hc, hV, dl.bytes, ia.bytes], nil)
1647- if ((hR == hR))
1643+ let hQ = bx()
1644+ let hd = bq
1645+ let hR = valueOrErrorMessage(addressFromString(hQ[D]), "Wr st addr")
1646+ let dm = cU.caller
1647+ let ib = this
1648+ let hS = invoke(hR, "unstakeINTERNAL", [hd, hW, dm.bytes, ib.bytes], nil)
1649+ if ((hS == hS))
16481650 then {
1649- let ib = fO(fP, fQ, [AttachedPayment(hc, hV)], cT.caller, cT.originCaller, cT.transactionId)
1650- let dF = ib._1
1651- let fZ = ib._2
1652- $Tuple2(dF, fZ)
1651+ let ic = fP(fQ, fR, [AttachedPayment(hd, hW)], cU.caller, cU.originCaller, cU.transactionId)
1652+ let dG = ic._1
1653+ let ga = ic._2
1654+ $Tuple2(dG, ga)
16531655 }
16541656 else throw("Strict value is not equal to itself.")
16551657 }
16581660
16591661
16601662
1661-@Callable(cT)
1662-func putOneTknV2WithBonusREADONLY (ic,id) = {
1663- let ie = ft(ic, id, "", "", true)
1664- let fI = ie._1
1665- let dF = ie._2
1666- let cB = ie._3
1667- let fN = ie._4
1668- $Tuple2(nil, $Tuple3(fI, cB, fN))
1663+@Callable(cU)
1664+func putOneTknV2WithBonusREADONLY (id,ie) = {
1665+ let if = fu(id, ie, "", "", true)
1666+ let fJ = if._1
1667+ let dG = if._2
1668+ let cC = if._3
1669+ let fO = if._4
1670+ $Tuple2(nil, $Tuple3(fJ, cC, fO))
16691671 }
16701672
16711673
16721674
1673-@Callable(cT)
1674-func putOneTknV2WithoutTakeFeeREADONLY (ic,id) = {
1675- let if = ft(ic, id, "", "", false)
1676- let fI = if._1
1677- let dF = if._2
1678- let cB = if._3
1679- let fN = if._4
1680- $Tuple2(nil, $Tuple3(fI, cB, fN))
1675+@Callable(cU)
1676+func putOneTknV2WithoutTakeFeeREADONLY (id,ie) = {
1677+ let ig = fu(id, ie, "", "", false)
1678+ let fJ = ig._1
1679+ let dG = ig._2
1680+ let cC = ig._3
1681+ let fO = ig._4
1682+ $Tuple2(nil, $Tuple3(fJ, cC, fO))
16811683 }
16821684
16831685
16841686
1685-@Callable(cT)
1686-func activate (ig,ih) = if ((toString(cT.caller) != toString(aU)))
1687+@Callable(cU)
1688+func activate (ih,ii) = if ((toString(cU.caller) != toString(aV)))
16871689 then throw("denied")
1688- else $Tuple2([StringEntry(aj(), ig), StringEntry(ak(), ih)], "success")
1690+ else $Tuple2([StringEntry(ak(), ih), StringEntry(al(), ii), StringEntry(am(), toString(l))], "success")
16891691
16901692
16911693
1692-@Callable(cT)
1693-func getPoolConfigWrapperREADONLY () = $Tuple2(nil, bc())
1694+@Callable(cU)
1695+func getPoolConfigWrapperREADONLY () = $Tuple2(nil, bd())
16941696
16951697
16961698
1697-@Callable(cT)
1698-func getAccBalanceWrapperREADONLY (bS) = $Tuple2(nil, bR(bS))
1699+@Callable(cU)
1700+func getAccBalanceWrapperREADONLY (bT) = $Tuple2(nil, bS(bT))
16991701
17001702
17011703
1702-@Callable(cT)
1703-func calcPricesWrapperREADONLY (cl,cm,cq) = {
1704- let ii = cp(cl, cm, cq)
1705- $Tuple2(nil, [toString(ii[0]), toString(ii[1]), toString(ii[2])])
1704+@Callable(cU)
1705+func calcPricesWrapperREADONLY (cm,cn,cr) = {
1706+ let ij = cq(cm, cn, cr)
1707+ $Tuple2(nil, [toString(ij[0]), toString(ij[1]), toString(ij[2])])
17061708 }
17071709
17081710
17091711
1710-@Callable(cT)
1711-func fromX18WrapperREADONLY (M,ij) = $Tuple2(nil, L(parseBigIntValue(M), ij))
1712+@Callable(cU)
1713+func fromX18WrapperREADONLY (N,ik) = $Tuple2(nil, M(parseBigIntValue(N), ik))
17121714
17131715
17141716
1715-@Callable(cT)
1716-func toX18WrapperREADONLY (I,J) = $Tuple2(nil, toString(H(I, J)))
1717+@Callable(cU)
1718+func toX18WrapperREADONLY (J,K) = $Tuple2(nil, toString(I(J, K)))
17171719
17181720
17191721
1720-@Callable(cT)
1721-func calcPriceBigIntWrapperREADONLY (bU,bV) = $Tuple2(nil, toString(bT(parseBigIntValue(bU), parseBigIntValue(bV))))
1722+@Callable(cU)
1723+func calcPriceBigIntWrapperREADONLY (bV,bW) = $Tuple2(nil, toString(bU(parseBigIntValue(bV), parseBigIntValue(bW))))
17221724
17231725
17241726
1725-@Callable(cT)
1726-func estimatePutOperationWrapperREADONLY (di,ca,dH,dI,dJ,dK,ik,dL,dM) = $Tuple2(nil, dG(di, ca, dH, dI, dJ, dK, ik, dL, dM, true, false, 0, ""))
1727+@Callable(cU)
1728+func estimatePutOperationWrapperREADONLY (dj,cb,dI,dJ,dK,dL,il,dM,dN) = $Tuple2(nil, dH(dj, cb, dI, dJ, dK, dL, il, dM, dN, true, false, 0, ""))
17271729
17281730
17291731
1730-@Callable(cT)
1731-func estimateGetOperationWrapperREADONLY (di,il,dk,ik) = {
1732- let eb = dh(di, il, dk, addressFromStringValue(ik))
1733- $Tuple2(nil, $Tuple10(eb._1, eb._2, eb._3, eb._4, eb._5, eb._6, eb._7, toString(eb._8), eb._9, eb._10))
1732+@Callable(cU)
1733+func estimateGetOperationWrapperREADONLY (dj,im,dl,il) = {
1734+ let ec = di(dj, im, dl, addressFromStringValue(il))
1735+ $Tuple2(nil, $Tuple10(ec._1, ec._2, ec._3, ec._4, ec._5, ec._6, ec._7, toString(ec._8), ec._9, ec._10))
17341736 }
17351737
17361738
17371739
1738-@Callable(cT)
1740+@Callable(cU)
17391741 func changeAmp () = {
1740- let im = invoke(aU, "getChangeAmpConfigREADONLY", [toString(this)], nil)
1741- let in = {
1742- let gp = im
1743- if ($isInstanceOf(gp, "List[Any]"))
1742+ let in = invoke(aV, "getChangeAmpConfigREADONLY", [toString(this)], nil)
1743+ let io = {
1744+ let gq = in
1745+ if ($isInstanceOf(gq, "List[Any]"))
17441746 then {
1745- let io = gp
1747+ let ip = gq
17461748 $Tuple3({
1747- let aW = io[0]
1748- if ($isInstanceOf(aW, "Int"))
1749- then aW
1750- else throw(($getType(aW) + " couldn't be cast to Int"))
1749+ let aX = ip[0]
1750+ if ($isInstanceOf(aX, "Int"))
1751+ then aX
1752+ else throw(($getType(aX) + " couldn't be cast to Int"))
17511753 }, {
1752- let aW = io[1]
1753- if ($isInstanceOf(aW, "Int"))
1754- then aW
1755- else throw(($getType(aW) + " couldn't be cast to Int"))
1754+ let aX = ip[1]
1755+ if ($isInstanceOf(aX, "Int"))
1756+ then aX
1757+ else throw(($getType(aX) + " couldn't be cast to Int"))
17561758 }, {
1757- let aW = io[2]
1758- if ($isInstanceOf(aW, "Int"))
1759- then aW
1760- else throw(($getType(aW) + " couldn't be cast to Int"))
1759+ let aX = ip[2]
1760+ if ($isInstanceOf(aX, "Int"))
1761+ then aX
1762+ else throw(($getType(aX) + " couldn't be cast to Int"))
17611763 })
17621764 }
1763- else aR("invalid entry type")
1765+ else aS("invalid entry type")
17641766 }
1765- let ip = in._1
1766- let iq = in._2
1767- let ir = in._3
1768- let is = parseIntValue(getStringValue(al()))
1769- let it = (is + iq)
1770- let iu = if ((0 > iq))
1771- then if ((ir > it))
1772- then ir
1773- else it
1774- else if ((it > ir))
1775- then ir
1776- else it
1777- let iv = valueOrElse(getInteger(ao()), 0)
1778- let iw = (iv + ip)
1779- let gM = [if ((height > iw))
1767+ let iq = io._1
1768+ let ir = io._2
1769+ let is = io._3
1770+ let it = parseIntValue(getStringValue(am()))
1771+ let iu = (it + ir)
1772+ let iv = if ((0 > ir))
1773+ then if ((is > iu))
1774+ then is
1775+ else iu
1776+ else if ((iu > is))
1777+ then is
1778+ else iu
1779+ let iw = valueOrElse(getInteger(ap()), 0)
1780+ let ix = (iw + iq)
1781+ let gN = [if ((height > ix))
17801782 then true
1781- else aR("try again in few blocks"), if ((is != iu))
1783+ else aS("try again in few blocks"), if ((it != iv))
17821784 then true
1783- else aR("already reached target")]
1784- if ((gM == gM))
1785- then [IntegerEntry(ao(), height), StringEntry(al(), toString(iu)), StringEntry(am(height), toString(iu))]
1785+ else aS("already reached target")]
1786+ if ((gN == gN))
1787+ then [IntegerEntry(ap(), height), StringEntry(am(), toString(iv)), StringEntry(an(height), toString(iv))]
17861788 else throw("Strict value is not equal to itself.")
17871789 }
17881790
17891791
1790-@Verifier(ix)
1791-func iy () = {
1792- let iz = {
1793- let gp = go()
1794- if ($isInstanceOf(gp, "ByteVector"))
1792+@Verifier(iy)
1793+func iz () = {
1794+ let iA = {
1795+ let gq = gp()
1796+ if ($isInstanceOf(gq, "ByteVector"))
17951797 then {
1796- let gt = gp
1797- gt
1798+ let gu = gq
1799+ gu
17981800 }
1799- else if ($isInstanceOf(gp, "Unit"))
1800- then ix.senderPublicKey
1801+ else if ($isInstanceOf(gq, "Unit"))
1802+ then iy.senderPublicKey
18011803 else throw("Match error")
18021804 }
1803- let gp = ix
1804- if ($isInstanceOf(gp, "Order"))
1805+ let gq = iy
1806+ if ($isInstanceOf(gq, "Order"))
18051807 then {
1806- let fd = gp
1807- let iA = ba()
1808- let iB = if (gA())
1808+ let fe = gq
1809+ let iB = bb()
1810+ let iC = if (gB())
18091811 then $Tuple2(true, "")
1810- else fc(fd)
1811- let aJ = iB._1
1812- let aK = iB._2
1813- let aL = sigVerify(fd.bodyBytes, fd.proofs[0], fd.senderPublicKey)
1814- let aM = sigVerify(fd.bodyBytes, fd.proofs[1], iA)
1815- if (if (if (aJ)
1816- then aL
1817- else false)
1812+ else fd(fe)
1813+ let aK = iC._1
1814+ let aL = iC._2
1815+ let aM = sigVerify(fe.bodyBytes, fe.proofs[0], fe.senderPublicKey)
1816+ let aN = sigVerify(fe.bodyBytes, fe.proofs[1], iB)
1817+ if (if (if (aK)
18181818 then aM
18191819 else false)
1820+ then aN
1821+ else false)
18201822 then true
1821- else aI(aJ, aK, aL, aM)
1823+ else aJ(aK, aL, aM, aN)
18221824 }
1823- else if ($isInstanceOf(gp, "SetScriptTransaction"))
1825+ else if ($isInstanceOf(gq, "SetScriptTransaction"))
18241826 then {
1825- let cG = gp
1826- if (sigVerify(ix.bodyBytes, ix.proofs[0], iz))
1827+ let cH = gq
1828+ if (sigVerify(iy.bodyBytes, iy.proofs[0], iA))
18271829 then true
18281830 else {
1829- let iC = blake2b256(value(cG.script))
1830- let iD = fromBase64String(value(getString(aU, aE())))
1831- let iE = scriptHash(this)
1832- if ((iD == iC))
1833- then (iE != iC)
1831+ let iD = blake2b256(value(cH.script))
1832+ let iE = fromBase64String(value(getString(aV, aF())))
1833+ let iF = scriptHash(this)
1834+ if ((iE == iD))
1835+ then (iF != iD)
18341836 else false
18351837 }
18361838 }
1837- else sigVerify(ix.bodyBytes, ix.proofs[0], iz)
1839+ else sigVerify(iy.bodyBytes, iy.proofs[0], iA)
18381840 }
18391841
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = 100000000
55
66 let b = toBigInt(100000000)
77
88 let c = toBigInt(1000000000000000000)
99
1010 let d = toBigInt(0)
1111
1212 let e = toBigInt(0)
1313
1414 let f = toBigInt(1)
1515
1616 let g = toBigInt(2)
1717
1818 let h = toBigInt(3)
1919
2020 let i = toBigInt(4)
2121
2222 let j = toBigInt((a - ((a * 1) / a)))
2323
2424 let k = "WAVES"
2525
26-let l = "100"
26+let l = 50
2727
28-let m = "1"
28+let m = "100"
2929
30-let n = "__"
30+let n = "1"
3131
32-let o = ""
32+let o = "__"
3333
34-let p = 1
34+let p = ""
3535
36-let q = 2
36+let q = 1
3737
38-let r = 3
38+let r = 2
3939
40-let s = 4
40+let s = 3
4141
42-let t = 1
42+let t = 4
4343
44-let u = 2
44+let u = 1
4545
46-let v = 3
46+let v = 2
4747
48-let w = 4
48+let w = 3
4949
50-let x = 5
50+let x = 4
5151
52-let y = 6
52+let y = 5
5353
54-let z = 7
54+let z = 6
5555
56-let A = 8
56+let A = 7
5757
58-let B = 9
58+let B = 8
5959
60-let C = 1
60+let C = 9
6161
62-let D = 6
62+let D = 1
6363
64-let E = 7
64+let E = 6
6565
66-let F = 10
66+let F = 7
6767
68-let G = fraction(10, a, 10000)
68+let G = 10
6969
70-func H (I,J) = fraction(toBigInt(I), c, toBigInt(J))
70+let H = fraction(10, a, 10000)
71+
72+func I (J,K) = fraction(toBigInt(J), c, toBigInt(K))
7173
7274
73-func K (I,J) = fraction(I, c, J)
75+func L (J,K) = fraction(J, c, K)
7476
7577
76-func L (M,N) = toInt(fraction(M, toBigInt(N), c))
78+func M (N,O) = toInt(fraction(N, toBigInt(O), c))
7779
7880
79-func O (M,N,P) = toInt(fraction(M, toBigInt(N), c, P))
81+func P (N,O,Q) = toInt(fraction(N, toBigInt(O), c, Q))
8082
8183
82-func Q (I,J) = fraction(I, c, toBigInt(J))
84+func R (J,K) = fraction(J, c, toBigInt(K))
8385
8486
85-func R (M,N) = fraction(M, toBigInt(N), c)
87+func S (N,O) = fraction(N, toBigInt(O), c)
8688
8789
88-func S (T,U,V) = fraction(T, U, V)
90+func T (U,V,W) = fraction(U, V, W)
8991
9092
91-func W (M) = if ((d > M))
92- then -(M)
93- else M
93+func X (N) = if ((d > N))
94+ then -(N)
95+ else N
9496
9597
96-func X (M) = if ((d > M))
97- then -(M)
98- else M
98+func Y (N) = if ((d > N))
99+ then -(N)
100+ else N
99101
100102
101-func Y () = "%s__factoryContract"
103+func Z () = "%s__factoryContract"
102104
103105
104-func Z () = "%s__managerPublicKey"
106+func aa () = "%s__managerPublicKey"
105107
106108
107-func aa () = "%s__pendingManagerPublicKey"
109+func ab () = "%s__pendingManagerPublicKey"
108110
109111
110-func ab () = "%s%s__price__last"
112+func ac () = "%s%s__price__last"
111113
112114
113-func ac (ad,ae) = makeString(["%s%s%d%d__price__history", toString(ad), toString(ae)], n)
115+func ad (ae,af) = makeString(["%s%s%d%d__price__history", toString(ae), toString(af)], o)
114116
115117
116-func af (ag,ah) = ((("%s%s%s__P__" + ag) + "__") + ah)
118+func ag (ah,ai) = ((("%s%s%s__P__" + ah) + "__") + ai)
117119
118120
119-func ai (ag,ah) = ((("%s%s%s__G__" + ag) + "__") + ah)
121+func aj (ah,ai) = ((("%s%s%s__G__" + ah) + "__") + ai)
120122
121123
122-func aj () = "%s__amountAsset"
124+func ak () = "%s__amountAsset"
123125
124126
125-func ak () = "%s__priceAsset"
127+func al () = "%s__priceAsset"
126128
127129
128-func al () = "%s__amp"
130+func am () = "%s__amp"
129131
130132
131-func am (an) = ("%s%d__amp__" + toString(an))
133+func an (ao) = ("%s%d__amp__" + toString(ao))
132134
133135
134-func ao () = "%s__changeAmpLastCall"
136+func ap () = "%s__changeAmpLastCall"
135137
136138
137-let ap = "%s__fee"
139+let aq = "%s__fee"
138140
139-let aq = valueOrElse(getInteger(this, ap), G)
141+let ar = valueOrElse(getInteger(this, aq), H)
140142
141-let ar = makeString(["%s", "dLp"], n)
143+let as = makeString(["%s", "dLp"], o)
142144
143-let as = makeString(["%s", "dLpRefreshedHeight"], n)
145+let at = makeString(["%s", "dLpRefreshedHeight"], o)
144146
145-let at = makeString(["%s", "refreshDLpDelay"], n)
147+let au = makeString(["%s", "refreshDLpDelay"], o)
146148
147-let au = 30
149+let av = 30
148150
149-let av = valueOrElse(getInteger(this, at), au)
151+let aw = valueOrElse(getInteger(this, au), av)
150152
151-func aw () = "%s__factoryConfig"
153+func ax () = "%s__factoryConfig"
152154
153155
154-func ax () = "%s%s__matcher__publicKey"
156+func ay () = "%s%s__matcher__publicKey"
155157
156158
157-func ay (az,aA) = (((("%d%d%s__" + az) + "__") + aA) + "__config")
159+func az (aA,aB) = (((("%d%d%s__" + aA) + "__") + aB) + "__config")
158160
159161
160-func aB (aC) = ("%s%s%s__mappings__baseAsset2internalId__" + aC)
162+func aC (aD) = ("%s%s%s__mappings__baseAsset2internalId__" + aD)
161163
162164
163-func aD () = "%s__shutdown"
165+func aE () = "%s__shutdown"
164166
165167
166-func aE () = "%s__allowedLpStableScriptHash"
168+func aF () = "%s__allowedLpStableScriptHash"
167169
168170
169-func aF () = "%s__feeCollectorAddress"
171+func aG () = "%s__feeCollectorAddress"
170172
171173
172-func aG (aH) = ("%s%s__skipOrderValidation__" + aH)
174+func aH (aI) = ("%s%s__skipOrderValidation__" + aI)
173175
174176
175-func aI (aJ,aK,aL,aM) = throw((((((((("order validation failed: orderValid=" + toString(aJ)) + " (") + aK) + ")") + " senderValid=") + toString(aL)) + " matcherValid=") + toString(aM)))
177+func aJ (aK,aL,aM,aN) = throw((((((((("order validation failed: orderValid=" + toString(aK)) + " (") + aL) + ")") + " senderValid=") + toString(aM)) + " matcherValid=") + toString(aN)))
176178
177179
178-func aN (aO,aP) = valueOrErrorMessage(getString(aO, aP), makeString(["mandatory ", toString(aO), ".", aP, " not defined"], ""))
180+func aO (aP,aQ) = valueOrErrorMessage(getString(aP, aQ), makeString(["mandatory ", toString(aP), ".", aQ, " not defined"], ""))
179181
180182
181-func aQ (aO,aP) = valueOrErrorMessage(getInteger(aO, aP), makeString(["mandatory ", toString(aO), ".", aP, " not defined"], ""))
183+func aR (aP,aQ) = valueOrErrorMessage(getInteger(aP, aQ), makeString(["mandatory ", toString(aP), ".", aQ, " not defined"], ""))
182184
183185
184-func aR (aS) = throw(makeString(["lp_stable.ride:", aS], " "))
186+func aS (aT) = throw(makeString(["lp_stable.ride:", aT], " "))
185187
186188
187-func aT (aS) = makeString(["lp_stable.ride:", aS], " ")
189+func aU (aT) = makeString(["lp_stable.ride:", aT], " ")
188190
189191
190-let aU = addressFromStringValue(aN(this, Y()))
192+let aV = addressFromStringValue(aO(this, Z()))
191193
192-let aV = {
193- let aW = invoke(aU, "getInFeeREADONLY", [toString(this)], nil)
194- if ($isInstanceOf(aW, "Int"))
195- then aW
196- else throw(($getType(aW) + " couldn't be cast to Int"))
194+let aW = {
195+ let aX = invoke(aV, "getInFeeREADONLY", [toString(this)], nil)
196+ if ($isInstanceOf(aX, "Int"))
197+ then aX
198+ else throw(($getType(aX) + " couldn't be cast to Int"))
197199 }
198200
199-let aX = {
200- let aW = invoke(aU, "getOutFeeREADONLY", [toString(this)], nil)
201- if ($isInstanceOf(aW, "Int"))
202- then aW
203- else throw(($getType(aW) + " couldn't be cast to Int"))
201+let aY = {
202+ let aX = invoke(aV, "getOutFeeREADONLY", [toString(this)], nil)
203+ if ($isInstanceOf(aX, "Int"))
204+ then aX
205+ else throw(($getType(aX) + " couldn't be cast to Int"))
204206 }
205207
206-let aY = aN(this, al())
208+let aZ = aO(this, am())
207209
208-func aZ () = valueOrElse(getBoolean(aU, aD()), false)
210+func ba () = valueOrElse(getBoolean(aV, aE()), false)
209211
210212
211-func ba () = fromBase58String(aN(aU, ax()))
213+func bb () = fromBase58String(aO(aV, ay()))
212214
213215
214-let bb = addressFromStringValue(aN(aU, aF()))
216+let bc = addressFromStringValue(aO(aV, aG()))
215217
216-func bc () = {
217- let bd = aN(this, aj())
218- let be = aN(this, ak())
219- let bf = aQ(aU, aB(be))
220- let az = aQ(aU, aB(bd))
221- split(aN(aU, ay(toString(az), toString(bf))), n)
218+func bd () = {
219+ let be = aO(this, ak())
220+ let bf = aO(this, al())
221+ let bg = aR(aV, aC(bf))
222+ let aA = aR(aV, aC(be))
223+ split(aO(aV, az(toString(aA), toString(bg))), o)
222224 }
223225
224226
225-func bg (bh) = if ((bh == k))
227+func bh (bi) = if ((bi == k))
226228 then unit
227- else fromBase58String(bh)
229+ else fromBase58String(bi)
228230
229231
230-func bi (bh) = if ((bh == unit))
232+func bj (bi) = if ((bi == unit))
231233 then k
232- else toBase58String(value(bh))
234+ else toBase58String(value(bi))
233235
234236
235-func bj (bk) = $Tuple9(addressFromStringValue(bk[t]), parseIntValue(bk[u]), fromBase58String(bk[v]), bg(bk[w]), bg(bk[x]), parseIntValue(bk[y]), parseIntValue(bk[z]), fromBase58String(bk[A]), fromBase58String(bk[B]))
237+func bk (bl) = $Tuple9(addressFromStringValue(bl[u]), parseIntValue(bl[v]), fromBase58String(bl[w]), bh(bl[x]), bh(bl[y]), parseIntValue(bl[z]), parseIntValue(bl[A]), fromBase58String(bl[B]), fromBase58String(bl[C]))
236238
237239
238-let bl = bj(bc())
240+let bm = bk(bd())
239241
240-let bm = bl
242+let bn = bm
241243
242-let bn = bm._1
244+let bo = bn._1
243245
244-let bo = bm._2
246+let bp = bn._2
245247
246-let bp = bm._3
248+let bq = bn._3
247249
248-let bq = bm._4
250+let br = bn._4
249251
250-let br = bm._5
252+let bs = bn._5
251253
252-let bs = bm._6
254+let bt = bn._6
253255
254-let bt = bm._7
256+let bu = bn._7
255257
256-let bu = bm._8
258+let bv = bn._8
257259
258-let bv = bm._9
260+let bw = bn._9
259261
260-func bw () = split(aN(aU, aw()), n)
262+func bx () = split(aO(aV, ax()), o)
261263
262264
263-let bx = bw()
265+let by = bx()
264266
265-let by = valueOrErrorMessage(addressFromString(bx[C]), "Invalid staking contract address")
267+let bz = valueOrErrorMessage(addressFromString(by[D]), "Invalid staking contract address")
266268
267-let bz = valueOrErrorMessage(addressFromString(bx[E]), "Invalid slipage contract address")
269+let bA = valueOrErrorMessage(addressFromString(by[F]), "Invalid slipage contract address")
268270
269-let bA = valueOrErrorMessage(addressFromString(bx[F]), "Invalid gwx contract address")
271+let bB = valueOrErrorMessage(addressFromString(by[G]), "Invalid gwx contract address")
270272
271-let bB = valueOrErrorMessage(addressFromString(bx[D]), "Invalid gwx contract address")
273+let bC = valueOrErrorMessage(addressFromString(by[E]), "Invalid gwx contract address")
272274
273-func bC (bD,bE,bF,bG,bH,bI,bJ,bK,bL,bM) = makeString(["%d%d%d%d%d%d%d%d%d%d", toString(bD), toString(bE), toString(bF), toString(bG), toString(bH), toString(bI), toString(bJ), toString(bK), toString(bL), toString(bM)], n)
275+func bD (bE,bF,bG,bH,bI,bJ,bK,bL,bM,bN) = makeString(["%d%d%d%d%d%d%d%d%d%d", toString(bE), toString(bF), toString(bG), toString(bH), toString(bI), toString(bJ), toString(bK), toString(bL), toString(bM), toString(bN)], o)
274276
275277
276-func bN (bO,bP,bQ,bG,bJ,bK) = makeString(["%d%d%d%d%d%d", toString(bO), toString(bP), toString(bQ), toString(bG), toString(bJ), toString(bK)], n)
278+func bO (bP,bQ,bR,bH,bK,bL) = makeString(["%d%d%d%d%d%d", toString(bP), toString(bQ), toString(bR), toString(bH), toString(bK), toString(bL)], o)
277279
278280
279-func bR (bS) = if ((bS == "WAVES"))
281+func bS (bT) = if ((bT == "WAVES"))
280282 then wavesBalance(this).available
281- else assetBalance(this, fromBase58String(bS))
283+ else assetBalance(this, fromBase58String(bT))
282284
283285
284-func bT (bU,bV) = fraction(bU, c, bV)
286+func bU (bV,bW) = fraction(bV, c, bW)
285287
286288
287-func bW (bU,bV,P) = fraction(bU, c, bV, P)
289+func bX (bV,bW,Q) = fraction(bV, c, bW, Q)
288290
289291
290-func bX (bY,bZ,ca) = {
291- let cb = fraction((bY - bZ), b, bZ)
292- let cc = ((ca - W(cb)) > d)
293- if (!(cc))
294- then throw(("Big slpg: " + toString(cb)))
295- else $Tuple2(cc, min([bY, bZ]))
292+func bY (bZ,ca,cb) = {
293+ let cc = fraction((bZ - ca), b, ca)
294+ let cd = ((cb - X(cc)) > d)
295+ if (!(cd))
296+ then throw(("Big slpg: " + toString(cc)))
297+ else $Tuple2(cd, min([bZ, ca]))
296298 }
297299
298300
299-func cd (ce,cf,cg) = {
300- let cb = fraction(cf, b, ce)
301- let ch = (cg > cb)
302- if (if (ch)
301+func ce (cf,cg,ch) = {
302+ let cc = fraction(cg, b, cf)
303+ let ci = (ch > cc)
304+ if (if (ci)
303305 then true
304- else (cf > ce))
305- then throw(((((((toString(cf) + " ") + toString(ce)) + " ") + toString(cb)) + " ") + toString(cg)))
306- else ch
306+ else (cg > cf))
307+ then throw(((((((toString(cg) + " ") + toString(cf)) + " ") + toString(cc)) + " ") + toString(ch)))
308+ else ci
307309 }
308310
309311
310-func ci (cj,ck,cl,cm) = {
311- let cn = H(cl, cj)
312- let co = H(cm, ck)
313- bT(co, cn)
312+func cj (ck,cl,cm,cn) = {
313+ let co = I(cm, ck)
314+ let cp = I(cn, cl)
315+ bU(cp, co)
314316 }
315317
316318
317-func cp (cl,cm,cq) = {
318- let cr = bs
319+func cq (cm,cn,cr) = {
319320 let cs = bt
320- let ct = ci(cr, cs, cl, cm)
321- let bV = H(cl, cr)
322- let bU = H(cm, cs)
323- let cu = H(cq, a)
324- let cv = bT(bV, cu)
325- let cw = bT(bU, cu)
326-[ct, cv, cw]
321+ let ct = bu
322+ let cu = cj(cs, ct, cm, cn)
323+ let bW = I(cm, cs)
324+ let bV = I(cn, ct)
325+ let cv = I(cr, a)
326+ let cw = bU(bW, cv)
327+ let cx = bU(bV, cv)
328+[cu, cw, cx]
327329 }
328330
329331
330-func cx (cl,cm,cq) = {
331- let cy = cp(cl, cm, cq)
332-[L(cy[0], a), L(cy[1], a), L(cy[2], a)]
332+func cy (cm,cn,cr) = {
333+ let cz = cq(cm, cn, cr)
334+[M(cz[0], a), M(cz[1], a), M(cz[2], a)]
333335 }
334336
335337
336-func cz (cA,aq) = {
337- let cB = if ((aq == 0))
338+func cA (cB,ar) = {
339+ let cC = if ((ar == 0))
338340 then 0
339- else fraction(cA, aq, a)
340- $Tuple2((cA - cB), cB)
341+ else fraction(cB, ar, a)
342+ $Tuple2((cB - cC), cC)
341343 }
342344
343345
344-func cC (cD) = {
345- let cE = cD[0]
346- let cF = cD[1]
347- let cG = (cE + cF)
348- if ((cG == e))
346+func cD (cE) = {
347+ let cF = cE[0]
348+ let cG = cE[1]
349+ let cH = (cF + cG)
350+ if ((cH == e))
349351 then e
350352 else {
351- let cH = parseIntValue(aY)
352- let cI = (cH * 2)
353- let cy = fraction(cE, cF, f)
354- let cJ = fraction(cy, i, f)
355- let cK = fraction(toBigInt(cI), cG, f)
356- let cL = toBigInt((cI - 1))
357- func cM (cN) = {
358- let cO = fraction(cN, cN, f)
359- let cP = fraction(cO, cN, f)
360- let cQ = fraction(cP, f, cJ)
361- fraction((cK + fraction(cQ, g, f)), cN, (fraction(cL, cN, f) + fraction(h, cQ, f)))
353+ let cI = parseIntValue(aZ)
354+ let cJ = (cI * 2)
355+ let cz = fraction(cF, cG, f)
356+ let cK = fraction(cz, i, f)
357+ let cL = fraction(toBigInt(cJ), cH, f)
358+ let cM = toBigInt((cJ - 1))
359+ func cN (cO) = {
360+ let cP = fraction(cO, cO, f)
361+ let cQ = fraction(cP, cO, f)
362+ let cR = fraction(cQ, f, cK)
363+ fraction((cL + fraction(cR, g, f)), cO, (fraction(cM, cO, f) + fraction(h, cR, f)))
362364 }
363365
364- func cR (cS,cT) = if (cS._2)
365- then cS
366+ func cS (cT,cU) = if (cT._2)
367+ then cT
366368 else {
367- let cN = cS._1
368- let cU = cM(cN)
369- let cV = (cU - value(cN))
370- let cW = if ((e > cV))
371- then -(cV)
372- else cV
373- if ((f >= cW))
374- then $Tuple2(cU, true)
375- else $Tuple2(cU, false)
369+ let cO = cT._1
370+ let cV = cN(cO)
371+ let cW = (cV - value(cO))
372+ let cX = if ((e > cW))
373+ then -(cW)
374+ else cW
375+ if ((f >= cX))
376+ then $Tuple2(cV, true)
377+ else $Tuple2(cV, false)
376378 }
377379
378- let cX = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16]
379- let cY = {
380- let cZ = cX
381- let da = size(cZ)
382- let db = $Tuple2(cG, false)
383- func dc (dd,de) = if ((de >= da))
384- then dd
385- else cR(dd, cZ[de])
380+ let cY = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16]
381+ let cZ = {
382+ let da = cY
383+ let db = size(da)
384+ let dc = $Tuple2(cH, false)
385+ func dd (de,df) = if ((df >= db))
386+ then de
387+ else cS(de, da[df])
386388
387- func df (dd,de) = if ((de >= da))
388- then dd
389+ func dg (de,df) = if ((df >= db))
390+ then de
389391 else throw("List size exceeds 17")
390392
391- df(dc(dc(dc(dc(dc(dc(dc(dc(dc(dc(dc(dc(dc(dc(dc(dc(dc(db, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17)
393+ dg(dd(dd(dd(dd(dd(dd(dd(dd(dd(dd(dd(dd(dd(dd(dd(dd(dd(dc, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17)
392394 }
393- let cN = cY._1
394- let dg = cY._2
395- if (dg)
396- then cN
397- else throw(("D calculation error, D = " + toString(cN)))
395+ let cO = cZ._1
396+ let dh = cZ._2
397+ if (dh)
398+ then cO
399+ else throw(("D calculation error, D = " + toString(cO)))
398400 }
399401 }
400402
401403
402-func dh (di,dj,dk,dl) = {
403- let dm = bp
404- let dn = toBase58String(value(bq))
404+func di (dj,dk,dl,dm) = {
405+ let dn = bq
405406 let do = toBase58String(value(br))
406- let dp = bs
407+ let dp = toBase58String(value(bs))
407408 let dq = bt
408- let dr = toString(bo)
409- let ds = valueOrErrorMessage(assetInfo(dm), "Wrong LP id").quantity
410- if ((toBase58String(dm) != dj))
409+ let dr = bu
410+ let ds = toString(bp)
411+ let dt = valueOrErrorMessage(assetInfo(dn), "Wrong LP id").quantity
412+ if ((toBase58String(dn) != dk))
411413 then throw("Wrong pmt asset")
412414 else {
413- let dt = bR(dn)
414- let du = H(dt, dp)
415- let dv = bR(do)
416- let dw = H(dv, dq)
417- let dx = bT(dw, du)
418- let dy = L(dx, a)
419- let dz = H(dk, a)
420- let dA = H(ds, a)
421- let dB = fraction(du, dz, dA)
422- let dC = fraction(dw, dz, dA)
423- let dD = O(dB, dp, FLOOR)
424- let dE = O(dC, dq, FLOOR)
425- let dF = if ((di == ""))
415+ let du = bS(do)
416+ let dv = I(du, dq)
417+ let dw = bS(dp)
418+ let dx = I(dw, dr)
419+ let dy = bU(dx, dv)
420+ let dz = M(dy, a)
421+ let dA = I(dl, a)
422+ let dB = I(dt, a)
423+ let dC = fraction(dv, dA, dB)
424+ let dD = fraction(dx, dA, dB)
425+ let dE = P(dC, dq, FLOOR)
426+ let dF = P(dD, dr, FLOOR)
427+ let dG = if ((dj == ""))
426428 then nil
427- else [ScriptTransfer(dl, dD, if ((dn == "WAVES"))
429+ else [ScriptTransfer(dm, dE, if ((do == "WAVES"))
428430 then unit
429- else fromBase58String(dn)), ScriptTransfer(dl, dE, if ((do == "WAVES"))
431+ else fromBase58String(do)), ScriptTransfer(dm, dF, if ((dp == "WAVES"))
430432 then unit
431- else fromBase58String(do)), StringEntry(ai(toString(dl), di), bN(dD, dE, dk, dy, height, lastBlock.timestamp)), IntegerEntry(ab(), dy), IntegerEntry(ac(height, lastBlock.timestamp), dy)]
432- $Tuple10(dD, dE, dn, do, dt, dv, ds, dx, dr, dF)
433+ else fromBase58String(dp)), StringEntry(aj(toString(dm), dj), bO(dE, dF, dl, dz, height, lastBlock.timestamp)), IntegerEntry(ac(), dz), IntegerEntry(ad(height, lastBlock.timestamp), dz)]
434+ $Tuple10(dE, dF, do, dp, du, dw, dt, dy, ds, dG)
433435 }
434436 }
435437
436438
437-func dG (di,ca,dH,dI,dJ,dK,dl,dL,dM,dN,dO,dP,dQ) = {
438- let dm = bp
439- let dR = toBase58String(value(bq))
439+func dH (dj,cb,dI,dJ,dK,dL,dm,dM,dN,dO,dP,dQ,dR) = {
440+ let dn = bq
440441 let dS = toBase58String(value(br))
441- let dT = bu
442+ let dT = toBase58String(value(bs))
442443 let dU = bv
443- let dV = bs
444+ let dV = bw
444445 let dW = bt
445- let dr = toString(bo)
446- let dX = valueOrErrorMessage(assetInfo(dm), "Wr lp as").quantity
447- let dt = if (dL)
448- then bR(dR)
449- else if (if (dN)
450- then (dQ == dR)
446+ let dX = bu
447+ let ds = toString(bp)
448+ let dY = valueOrErrorMessage(assetInfo(dn), "Wr lp as").quantity
449+ let du = if (dM)
450+ then bS(dS)
451+ else if (if (dO)
452+ then (dR == dS)
451453 else false)
452- then (bR(dR) - dP)
453- else if (dN)
454- then bR(dR)
455- else (bR(dR) - dH)
456- let dv = if (dL)
457- then bR(dS)
458- else if (if (dN)
459- then (dQ == dS)
454+ then (bS(dS) - dQ)
455+ else if (dO)
456+ then bS(dS)
457+ else (bS(dS) - dI)
458+ let dw = if (dM)
459+ then bS(dT)
460+ else if (if (dO)
461+ then (dR == dT)
460462 else false)
461- then (bR(dS) - dP)
462- else if (dN)
463- then bR(dS)
464- else (bR(dS) - dJ)
465- let dY = H(dH, dV)
466- let dZ = H(dJ, dW)
467- let ea = bT(dZ, dY)
468- let du = H(dt, dV)
469- let dw = H(dv, dW)
470- let cf = cC([du, dw])
471- let eb = if ((dX == 0))
463+ then (bS(dT) - dQ)
464+ else if (dO)
465+ then bS(dT)
466+ else (bS(dT) - dK)
467+ let dZ = I(dI, dW)
468+ let ea = I(dK, dX)
469+ let eb = bU(ea, dZ)
470+ let dv = I(du, dW)
471+ let dx = I(dw, dX)
472+ let cg = cD([dv, dx])
473+ let ec = if ((dY == 0))
472474 then {
473- let ce = cC([(du + dY), (dw + dZ)])
474- let ec = if ((ce > cf))
475+ let cf = cD([(dv + dZ), (dx + ea)])
476+ let ed = if ((cf > cg))
475477 then true
476478 else throw("D1 should be greater than D0")
477- if ((ec == ec))
479+ if ((ed == ed))
478480 then {
479- let dx = d
480- let ed = d
481- let cu = ce
482- $Tuple5(L(cu, a), L(dY, dV), L(dZ, dW), bT((dw + dZ), (du + dY)), ed)
481+ let dy = d
482+ let ee = d
483+ let cv = cf
484+ $Tuple5(M(cv, a), M(dZ, dW), M(ea, dX), bU((dx + ea), (dv + dZ)), ee)
483485 }
484486 else throw("Strict value is not equal to itself.")
485487 }
486488 else {
487- let dx = bT(dw, du)
488- let ee = fraction(W((dx - ea)), c, dx)
489- let ed = H(ca, a)
490- if (if (if (dO)
491- then (dx != d)
489+ let dy = bU(dx, dv)
490+ let ef = fraction(X((dy - eb)), c, dy)
491+ let ee = I(cb, a)
492+ if (if (if (dP)
493+ then (dy != d)
492494 else false)
493- then (ee > ed)
495+ then (ef > ee)
494496 else false)
495- then throw(((("Price slippage " + toString(ee)) + " > ") + toString(ed)))
497+ then throw(((("Price slippage " + toString(ef)) + " > ") + toString(ee)))
496498 else {
497- let ef = H(dX, a)
498- let eg = fraction(dY, bW(dw, du, CEILING), c, CEILING)
499- let eh = fraction(dZ, c, bW(dw, du, FLOOR), CEILING)
500- let ei = if ((eg > dZ))
501- then $Tuple2(eh, dZ)
502- else $Tuple2(dY, eg)
503- let ej = ei._1
504- let ek = ei._2
505- let ce = cC([(du + ej), (dw + ek)])
506- let ec = if ((ce > cf))
499+ let eg = I(dY, a)
500+ let eh = fraction(dZ, bX(dx, dv, CEILING), c, CEILING)
501+ let ei = fraction(ea, c, bX(dx, dv, FLOOR), CEILING)
502+ let ej = if ((eh > ea))
503+ then $Tuple2(ei, ea)
504+ else $Tuple2(dZ, eh)
505+ let ek = ej._1
506+ let el = ej._2
507+ let cf = cD([(dv + ek), (dx + el)])
508+ let ed = if ((cf > cg))
507509 then true
508510 else throw("D1 should be greater than D0")
509- if ((ec == ec))
511+ if ((ed == ed))
510512 then {
511- let cu = fraction(ef, (ce - cf), cf)
512- $Tuple5(O(cu, a, FLOOR), O(ej, dV, CEILING), O(ek, dW, CEILING), dx, ed)
513+ let cv = fraction(eg, (cf - cg), cg)
514+ $Tuple5(P(cv, a, FLOOR), P(ek, dW, CEILING), P(el, dX, CEILING), dy, ee)
513515 }
514516 else throw("Strict value is not equal to itself.")
515517 }
516518 }
517- let el = eb._1
518- let em = eb._2
519- let en = eb._3
520- let dy = L(eb._4, a)
521- let eo = L(eb._5, a)
522- if ((0 >= el))
519+ let em = ec._1
520+ let en = ec._2
521+ let eo = ec._3
522+ let dz = M(ec._4, a)
523+ let ep = M(ec._5, a)
524+ if ((0 >= em))
523525 then throw("LP <= 0")
524526 else {
525- let ep = if (!(dM))
527+ let eq = if (!(dN))
526528 then 0
527- else el
528- let eq = (dH - em)
529- let er = (dJ - en)
530- let es = if (if (dN)
531- then (dQ == dR)
529+ else em
530+ let er = (dI - en)
531+ let es = (dK - eo)
532+ let et = if (if (dO)
533+ then (dR == dS)
532534 else false)
533- then $Tuple2(dP, 0)
534- else if (if (dN)
535- then (dQ == dS)
535+ then $Tuple2(dQ, 0)
536+ else if (if (dO)
537+ then (dR == dT)
536538 else false)
537- then $Tuple2(0, dP)
538- else $Tuple2(em, en)
539- let et = es._1
540- let eu = es._2
541- let ev = [IntegerEntry(ab(), dy), IntegerEntry(ac(height, lastBlock.timestamp), dy), StringEntry(af(dl, di), bC(et, eu, ep, dy, ca, eo, height, lastBlock.timestamp, eq, er))]
542- $Tuple13(el, ep, dy, dt, dv, dX, dm, dr, ev, eq, er, dI, dK)
539+ then $Tuple2(0, dQ)
540+ else $Tuple2(en, eo)
541+ let eu = et._1
542+ let ev = et._2
543+ let ew = [IntegerEntry(ac(), dz), IntegerEntry(ad(height, lastBlock.timestamp), dz), StringEntry(ag(dm, dj), bD(eu, ev, eq, dz, cb, ep, height, lastBlock.timestamp, er, es))]
544+ $Tuple13(em, eq, dz, du, dw, dY, dn, ds, ew, er, es, dJ, dL)
543545 }
544546 }
545547
546548
547-func ew (cD,cT,ex) = {
548- let ey = g
549- let ez = cD[if ((cT == 0))
549+func ex (cE,cU,ey) = {
550+ let ez = g
551+ let eA = cE[if ((cU == 0))
550552 then 1
551553 else 0]
552- let eA = parseBigIntValue(l)
553- let cH = (parseBigIntValue(aY) * eA)
554- let cG = ez
555- let cI = (cH * ey)
556- let eB = (((((ex * ex) / (ez * ey)) * ex) * eA) / (cI * ey))
557- let eC = ((cG + ((ex * eA) / cI)) - ex)
558- func cR (cS,eD) = {
559- let eE = cS
560- let eF = eE._1
561- let dg = eE._2
562- if ((dg != unit))
563- then cS
554+ let eB = parseBigIntValue(m)
555+ let cI = (parseBigIntValue(aZ) * eB)
556+ let cH = eA
557+ let cJ = (cI * ez)
558+ let eC = (((((ey * ey) / (eA * ez)) * ey) * eB) / (cJ * ez))
559+ let eD = ((cH + ((ey * eB) / cJ)) - ey)
560+ func cS (cT,eE) = {
561+ let eF = cT
562+ let eG = eF._1
563+ let dh = eF._2
564+ if ((dh != unit))
565+ then cT
564566 else {
565- let eG = (((eF * eF) + eB) / ((g * eF) + eC))
566- let eH = X((eG - value(eF)))
567- if ((f >= eH))
568- then $Tuple2(eG, eD)
569- else $Tuple2(eG, unit)
567+ let eH = (((eG * eG) + eC) / ((g * eG) + eD))
568+ let eI = Y((eH - value(eG)))
569+ if ((f >= eI))
570+ then $Tuple2(eH, eE)
571+ else $Tuple2(eH, unit)
570572 }
571573 }
572574
573- let cX = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14]
574- let eI = {
575- let cZ = cX
576- let da = size(cZ)
577- let db = $Tuple2(ex, unit)
578- func dc (dd,de) = if ((de >= da))
579- then dd
580- else cR(dd, cZ[de])
575+ let cY = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14]
576+ let eJ = {
577+ let da = cY
578+ let db = size(da)
579+ let dc = $Tuple2(ey, unit)
580+ func dd (de,df) = if ((df >= db))
581+ then de
582+ else cS(de, da[df])
581583
582- func df (dd,de) = if ((de >= da))
583- then dd
584+ func dg (de,df) = if ((df >= db))
585+ then de
584586 else throw("List size exceeds 15")
585587
586- df(dc(dc(dc(dc(dc(dc(dc(dc(dc(dc(dc(dc(dc(dc(dc(db, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15)
588+ dg(dd(dd(dd(dd(dd(dd(dd(dd(dd(dd(dd(dd(dd(dd(dd(dc, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15)
587589 }
588- let eF = eI._1
589- let dg = eI._2
590- if ((dg != unit))
591- then eF
592- else throw(("Y calculation error, Y = " + toString(eF)))
590+ let eG = eJ._1
591+ let dh = eJ._2
592+ if ((dh != unit))
593+ then eG
594+ else throw(("Y calculation error, Y = " + toString(eG)))
593595 }
594596
595597
596-func eJ (eK,eL,eM) = {
597- let eN = fraction(cC([K(eK, toBigInt(bs)), K(eL, toBigInt(bt))]), c, eM)
598- if ((eM == e))
598+func eK (eL,eM,eN) = {
599+ let eO = fraction(cD([L(eL, toBigInt(bt)), L(eM, toBigInt(bu))]), c, eN)
600+ if ((eN == e))
599601 then e
600- else eN
602+ else eO
601603 }
602604
603605
604-func eO (eP,eQ,eR) = {
605- let eS = (toBigInt(bR(bi(bq))) - eP)
606- let eT = (toBigInt(bR(bi(br))) - eQ)
607- let eU = (toBigInt(value(assetInfo(bp)).quantity) - eR)
608- let eV = eJ(eS, eT, eU)
609- eV
606+func eP (eQ,eR,eS) = {
607+ let eT = (toBigInt(bS(bj(br))) - eQ)
608+ let eU = (toBigInt(bS(bj(bs))) - eR)
609+ let eV = (toBigInt(value(assetInfo(bq)).quantity) - eS)
610+ let eW = eK(eT, eU, eV)
611+ eW
610612 }
611613
612614
613-func eW (eX,eY,eR) = {
614- let eS = (bR(bi(bq)) + eX)
615- let eT = (bR(bi(br)) + eY)
616- let eU = (value(assetInfo(bp)).quantity + eR)
617- let eN = eJ(toBigInt(eS), toBigInt(eT), toBigInt(eU))
618- let eZ = [IntegerEntry(as, height), StringEntry(ar, toString(eN))]
619- $Tuple2(eZ, eN)
615+func eX (eY,eZ,eS) = {
616+ let eT = (bS(bj(br)) + eY)
617+ let eU = (bS(bj(bs)) + eZ)
618+ let eV = (value(assetInfo(bq)).quantity + eS)
619+ let eO = eK(toBigInt(eT), toBigInt(eU), toBigInt(eV))
620+ let fa = [IntegerEntry(at, height), StringEntry(as, toString(eO))]
621+ $Tuple2(fa, eO)
620622 }
621623
622624
623-func fa (fb,eN) = if ((eN >= fb))
625+func fb (fc,eO) = if ((eO >= fc))
624626 then true
625- else aR("updated DLp lower than current DLp")
627+ else aS("updated DLp lower than current DLp")
626628
627629
628-func fc (fd) = {
629- let eS = bR(bi(bq))
630- let eT = bR(bi(br))
631- let fe = fd.amount
632- let ff = fraction(fd.amount, fd.price, a, FLOOR)
633- let fg = if ((fd.orderType == Buy))
634- then $Tuple2(fe, -(ff))
635- else $Tuple2(-(fe), ff)
636- let eX = fg._1
637- let eY = fg._2
638- if (if (if (aZ())
630+func fd (fe) = {
631+ let eT = bS(bj(br))
632+ let eU = bS(bj(bs))
633+ let ff = fe.amount
634+ let fg = fraction(fe.amount, fe.price, a, FLOOR)
635+ let fh = if ((fe.orderType == Buy))
636+ then $Tuple2(ff, -(fg))
637+ else $Tuple2(-(ff), fg)
638+ let eY = fh._1
639+ let eZ = fh._2
640+ if (if (if (ba())
639641 then true
640- else (bo == r))
642+ else (bp == s))
641643 then true
642- else (bo == s))
644+ else (bp == t))
643645 then throw("Admin blocked")
644- else if (if ((fd.assetPair.amountAsset != bq))
646+ else if (if ((fe.assetPair.amountAsset != br))
645647 then true
646- else (fd.assetPair.priceAsset != br))
648+ else (fe.assetPair.priceAsset != bs))
647649 then throw("Wr assets")
648650 else {
649- let fh = parseBigIntValue(valueOrElse(getString(this, ar), "0"))
650- let fi = eW(eX, eY, 0)
651- let fj = fi._1
652- let fk = fi._2
653- let fl = (fk >= fh)
654- let fm = makeString(["dLp=", toString(fh), " dLpNew=", toString(fk), " amountAssetBalance=", toString(eS), " priceAssetBalance=", toString(eT), " amountAssetBalanceDelta=", toString(eX), " priceAssetBalanceDelta=", toString(eY), " height=", toString(height)], "")
655- $Tuple2(fl, fm)
651+ let fi = parseBigIntValue(valueOrElse(getString(this, as), "0"))
652+ let fj = eX(eY, eZ, 0)
653+ let fk = fj._1
654+ let fl = fj._2
655+ let fm = (fl >= fi)
656+ let fn = makeString(["dLp=", toString(fi), " dLpNew=", toString(fl), " amountAssetBalance=", toString(eT), " priceAssetBalance=", toString(eU), " amountAssetBalanceDelta=", toString(eY), " priceAssetBalanceDelta=", toString(eZ), " height=", toString(height)], "")
657+ $Tuple2(fm, fn)
656658 }
657659 }
658660
659661
660-func fn (cT) = if ((size(cT.payments) != 1))
662+func fo (cU) = if ((size(cU.payments) != 1))
661663 then throw("1 pmnt exp")
662664 else {
663- let fo = value(cT.payments[0])
664- let dj = value(fo.assetId)
665- let dP = fo.amount
666- let eb = dh(toBase58String(cT.transactionId), toBase58String(dj), dP, cT.caller)
667- let dD = eb._1
668- let dE = eb._2
669- let dr = parseIntValue(eb._9)
670- let dF = eb._10
671- if (if (aZ())
665+ let fp = value(cU.payments[0])
666+ let dk = value(fp.assetId)
667+ let dQ = fp.amount
668+ let ec = di(toBase58String(cU.transactionId), toBase58String(dk), dQ, cU.caller)
669+ let dE = ec._1
670+ let dF = ec._2
671+ let ds = parseIntValue(ec._9)
672+ let dG = ec._10
673+ if (if (ba())
672674 then true
673- else (dr == s))
674- then throw(("Admin blocked: " + toString(dr)))
675- else $Tuple5(dD, dE, dP, dj, dF)
675+ else (ds == t))
676+ then throw(("Admin blocked: " + toString(ds)))
677+ else $Tuple5(dE, dF, dQ, dk, dG)
676678 }
677679
678680
679-func fp (fq,ah,fr,fs,ca,dM,dN,dO,dP,dQ) = {
680- let eb = dG(ah, ca, value(fr).amount, value(fr).assetId, value(fs).amount, value(fs).assetId, fq, (ah == ""), dM, dN, dO, dP, dQ)
681- let dr = parseIntValue(eb._8)
682- if (if (if (aZ())
681+func fq (fr,ai,fs,ft,cb,dN,dO,dP,dQ,dR) = {
682+ let ec = dH(ai, cb, value(fs).amount, value(fs).assetId, value(ft).amount, value(ft).assetId, fr, (ai == ""), dN, dO, dP, dQ, dR)
683+ let ds = parseIntValue(ec._8)
684+ if (if (if (ba())
683685 then true
684- else (dr == q))
686+ else (ds == r))
685687 then true
686- else (dr == s))
687- then throw(("Blocked:" + toString(dr)))
688- else eb
688+ else (ds == t))
689+ then throw(("Blocked:" + toString(ds)))
690+ else ec
689691 }
690692
691693
692-func ft (fu,dj,dl,ah,fv) = {
693- let dn = toBase58String(value(bq))
694+func fu (fv,dk,dm,ai,fw) = {
694695 let do = toBase58String(value(br))
695- let dm = bp
696- let dV = bs
696+ let dp = toBase58String(value(bs))
697+ let dn = bq
697698 let dW = bt
698- let eU = toBigInt(valueOrErrorMessage(assetInfo(dm), "invalid lp asset").quantity)
699- let fw = if ((eU > e))
699+ let dX = bu
700+ let eV = toBigInt(valueOrErrorMessage(assetInfo(dn), "invalid lp asset").quantity)
701+ let fx = if ((eV > e))
700702 then true
701703 else throw("initial deposit requires all coins")
702- if ((fw == fw))
704+ if ((fx == fx))
703705 then {
704- let dt = bR(dn)
705- let dv = bR(do)
706- let fx = if ((ah == ""))
707- then $Tuple2(dt, dv)
708- else if ((dj == dn))
709- then if ((fu > dt))
706+ let du = bS(do)
707+ let dw = bS(dp)
708+ let fy = if ((ai == ""))
709+ then $Tuple2(du, dw)
710+ else if ((dk == do))
711+ then if ((fv > du))
710712 then throw("invalid payment amount")
711- else $Tuple2((dt - fu), dv)
712- else if ((dj == do))
713- then if ((fu > dv))
713+ else $Tuple2((du - fv), dw)
714+ else if ((dk == dp))
715+ then if ((fv > dw))
714716 then throw("invalid payment amount")
715- else $Tuple2(dt, (dv - fu))
717+ else $Tuple2(du, (dw - fv))
716718 else throw("wrong pmtAssetId")
717- let fy = fx._1
718- let fz = fx._2
719- let fA = if ((dj == dn))
720- then $Tuple2(fu, 0)
721- else if ((dj == do))
722- then $Tuple2(0, fu)
719+ let fz = fy._1
720+ let fA = fy._2
721+ let fB = if ((dk == do))
722+ then $Tuple2(fv, 0)
723+ else if ((dk == dp))
724+ then $Tuple2(0, fv)
723725 else throw("invalid payment")
724- let fB = fA._1
725- let fC = fA._2
726- let fD = if (fv)
727- then $Tuple3(cz(fB, aV)._1, cz(fC, aV)._1, cz(fu, aV)._2)
728- else $Tuple3(fB, fC, 0)
729- let fE = fD._1
730- let fF = fD._2
731- let cB = fD._3
732- let fG = (fy + fE)
726+ let fC = fB._1
727+ let fD = fB._2
728+ let fE = if (fw)
729+ then $Tuple3(cA(fC, aW)._1, cA(fD, aW)._1, cA(fv, aW)._2)
730+ else $Tuple3(fC, fD, 0)
731+ let fF = fE._1
732+ let fG = fE._2
733+ let cC = fE._3
733734 let fH = (fz + fF)
734- let cf = cC([H(fy, bs), H(fz, bt)])
735- let ce = cC([H(fG, bs), H(fH, bt)])
736- let ec = if ((ce > cf))
735+ let fI = (fA + fG)
736+ let cg = cD([I(fz, bt), I(fA, bu)])
737+ let cf = cD([I(fH, bt), I(fI, bu)])
738+ let ed = if ((cf > cg))
737739 then true
738740 else throw()
739- if ((ec == ec))
741+ if ((ed == ed))
740742 then {
741- let fI = fraction(eU, (ce - cf), cf, FLOOR)
742- let dy = L(bT(H(fH, dW), H(fG, dV)), a)
743- let ev = [IntegerEntry(ab(), dy), IntegerEntry(ac(height, lastBlock.timestamp), dy), StringEntry(af(dl, ah), bC(fB, fC, toInt(fI), dy, 0, 0, height, lastBlock.timestamp, 0, 0))]
744- let fJ = fraction(fz, a, fy)
745- let fK = fraction(fu, a, (fJ + a))
746- let fL = (fu - fK)
747- let fM = fraction(eU, toBigInt(fL), toBigInt(fz))
748- let fN = toInt(fraction((fI - fM), b, fM))
749- $Tuple4(toInt(fI), ev, cB, fN)
743+ let fJ = fraction(eV, (cf - cg), cg, FLOOR)
744+ let dz = M(bU(I(fI, dX), I(fH, dW)), a)
745+ let ew = [IntegerEntry(ac(), dz), IntegerEntry(ad(height, lastBlock.timestamp), dz), StringEntry(ag(dm, ai), bD(fC, fD, toInt(fJ), dz, 0, 0, height, lastBlock.timestamp, 0, 0))]
746+ let fK = fraction(fA, a, fz)
747+ let fL = fraction(fv, a, (fK + a))
748+ let fM = (fv - fL)
749+ let fN = fraction(eV, toBigInt(fM), toBigInt(fA))
750+ let fO = toInt(fraction((fJ - fN), b, fN))
751+ $Tuple4(toInt(fJ), ew, cC, fO)
750752 }
751753 else throw("Strict value is not equal to itself.")
752754 }
753755 else throw("Strict value is not equal to itself.")
754756 }
755757
756758
757-func fO (fP,fQ,fR,fq,fS,fT) = {
758- let dm = toBase58String(value(bp))
759+func fP (fQ,fR,fS,fr,fT,fU) = {
759760 let dn = toBase58String(value(bq))
760761 let do = toBase58String(value(br))
761- let fU = bs
762+ let dp = toBase58String(value(bs))
762763 let fV = bt
763- let fW = bo
764- let dl = if ((fq == bB))
765- then fS
766- else fq
767- let fo = value(fR[0])
768- let dj = value(fo.assetId)
769- let dP = fo.amount
770- let eV = eO(e, e, e)
771- if ((eV == eV))
764+ let fW = bu
765+ let fX = bp
766+ let dm = if ((fr == bC))
767+ then fT
768+ else fr
769+ let fp = value(fS[0])
770+ let dk = value(fp.assetId)
771+ let dQ = fp.amount
772+ let eW = eP(e, e, e)
773+ if ((eW == eW))
772774 then {
773- let di = toBase58String(fT)
774- if ((dm != toBase58String(dj)))
775+ let dj = toBase58String(fU)
776+ if ((dn != toBase58String(dk)))
775777 then throw("Wrong LP")
776778 else {
777- let dt = bR(dn)
778- let dv = bR(do)
779- let fX = {
780- let aW = invoke(this, "getOneTknV2READONLY", [fP, dP], nil)
781- if ($isInstanceOf(aW, "(Int, Int)"))
782- then aW
783- else throw(($getType(aW) + " couldn't be cast to (Int, Int)"))
779+ let du = bS(do)
780+ let dw = bS(dp)
781+ let fY = {
782+ let aX = invoke(this, "getOneTknV2READONLY", [fQ, dQ], nil)
783+ if ($isInstanceOf(aX, "(Int, Int)"))
784+ then aX
785+ else throw(($getType(aX) + " couldn't be cast to (Int, Int)"))
784786 }
785- if ((fX == fX))
787+ if ((fY == fY))
786788 then {
787- let cB = fX._2
788- let fY = fX._1
789- let fZ = if (if ((fQ > 0))
790- then (fQ > fY)
789+ let cC = fY._2
790+ let fZ = fY._1
791+ let ga = if (if ((fR > 0))
792+ then (fR > fZ)
791793 else false)
792- then aR(makeString(["amount to receive is less than ", toString(fQ)], ""))
793- else fY
794- let ga = if ((fP == dn))
795- then $Tuple4(fZ, 0, ((dt - fZ) - cB), dv)
796- else if ((fP == do))
797- then $Tuple4(0, fZ, dt, ((dv - fZ) - cB))
794+ then aS(makeString(["amount to receive is less than ", toString(fR)], ""))
795+ else fZ
796+ let gb = if ((fQ == do))
797+ then $Tuple4(ga, 0, ((du - ga) - cC), dw)
798+ else if ((fQ == dp))
799+ then $Tuple4(0, ga, du, ((dw - ga) - cC))
798800 else throw("invalid out asset id")
799- let gb = ga._1
800- let gc = ga._2
801- let fG = ga._3
802- let fH = ga._4
803- let gd = bT(H(fH, fV), H(fG, fU))
804- let ge = L(gd, a)
805- let gf = if ((fP == "WAVES"))
801+ let gc = gb._1
802+ let gd = gb._2
803+ let fH = gb._3
804+ let fI = gb._4
805+ let ge = bU(I(fI, fW), I(fH, fV))
806+ let gf = M(ge, a)
807+ let gg = if ((fQ == "WAVES"))
806808 then unit
807- else fromBase58String(fP)
808- let gg = if ((cB > 0))
809- then [ScriptTransfer(bb, cB, gf)]
809+ else fromBase58String(fQ)
810+ let gh = if ((cC > 0))
811+ then [ScriptTransfer(bc, cC, gg)]
810812 else nil
811- let dF = ([ScriptTransfer(dl, fZ, gf), StringEntry(ai(toString(dl), di), bN(gb, gc, dP, ge, height, lastBlock.timestamp)), IntegerEntry(ab(), ge), IntegerEntry(ac(height, lastBlock.timestamp), ge)] ++ gg)
812- if ((dF == dF))
813+ let dG = ([ScriptTransfer(dm, ga, gg), StringEntry(aj(toString(dm), dj), bO(gc, gd, dQ, gf, height, lastBlock.timestamp)), IntegerEntry(ac(), gf), IntegerEntry(ad(height, lastBlock.timestamp), gf)] ++ gh)
814+ if ((dG == dG))
813815 then {
814- let gh = invoke(aU, "burn", [dP], [AttachedPayment(dj, dP)])
815- if ((gh == gh))
816+ let gi = invoke(aV, "burn", [dQ], [AttachedPayment(dk, dQ)])
817+ if ((gi == gi))
816818 then {
817- let gi = {
818- let gj = if ((this == bb))
819+ let gj = {
820+ let gk = if ((this == bc))
819821 then 0
820- else cB
821- let gk = if ((bg(fP) == bq))
822+ else cC
823+ let gl = if ((bh(fQ) == br))
822824 then true
823825 else false
824- if (gk)
825- then $Tuple2(-((fY + gj)), 0)
826- else $Tuple2(0, -((fY + gj)))
826+ if (gl)
827+ then $Tuple2(-((fZ + gk)), 0)
828+ else $Tuple2(0, -((fZ + gk)))
827829 }
828- let eX = gi._1
829- let eY = gi._2
830- let gl = eW(eX, eY, 0)
831- let gm = gl._1
832- let eN = gl._2
833- let gn = fa(eV, eN)
834- if ((gn == gn))
835- then $Tuple2((dF ++ gm), fZ)
830+ let eY = gj._1
831+ let eZ = gj._2
832+ let gm = eX(eY, eZ, 0)
833+ let gn = gm._1
834+ let eO = gm._2
835+ let go = fb(eW, eO)
836+ if ((go == go))
837+ then $Tuple2((dG ++ gn), ga)
836838 else throw("Strict value is not equal to itself.")
837839 }
838840 else throw("Strict value is not equal to itself.")
839841 }
840842 else throw("Strict value is not equal to itself.")
841843 }
842844 else throw("Strict value is not equal to itself.")
843845 }
844846 }
845847 else throw("Strict value is not equal to itself.")
846848 }
847849
848850
849-func go () = {
850- let gp = getString(Z())
851- if ($isInstanceOf(gp, "String"))
851+func gp () = {
852+ let gq = getString(aa())
853+ if ($isInstanceOf(gq, "String"))
852854 then {
853- let cG = gp
854- fromBase58String(cG)
855+ let cH = gq
856+ fromBase58String(cH)
855857 }
856- else if ($isInstanceOf(gp, "Unit"))
858+ else if ($isInstanceOf(gq, "Unit"))
857859 then unit
858860 else throw("Match error")
859861 }
860862
861863
862-func gq () = {
863- let gp = getString(aa())
864- if ($isInstanceOf(gp, "String"))
864+func gr () = {
865+ let gq = getString(ab())
866+ if ($isInstanceOf(gq, "String"))
865867 then {
866- let cG = gp
867- fromBase58String(cG)
868+ let cH = gq
869+ fromBase58String(cH)
868870 }
869- else if ($isInstanceOf(gp, "Unit"))
871+ else if ($isInstanceOf(gq, "Unit"))
870872 then unit
871873 else throw("Match error")
872874 }
873875
874876
875-let gr = throw("Permission denied")
877+let gs = throw("Permission denied")
876878
877-func gs (cT) = {
878- let gp = go()
879- if ($isInstanceOf(gp, "ByteVector"))
879+func gt (cU) = {
880+ let gq = gp()
881+ if ($isInstanceOf(gq, "ByteVector"))
880882 then {
881- let gt = gp
882- (cT.callerPublicKey == gt)
883+ let gu = gq
884+ (cU.callerPublicKey == gu)
883885 }
884- else if ($isInstanceOf(gp, "Unit"))
885- then (cT.caller == this)
886+ else if ($isInstanceOf(gq, "Unit"))
887+ then (cU.caller == this)
886888 else throw("Match error")
887889 }
888890
889891
890-func gu (cT) = {
891- let gp = go()
892- if ($isInstanceOf(gp, "ByteVector"))
892+func gv (cU) = {
893+ let gq = gp()
894+ if ($isInstanceOf(gq, "ByteVector"))
893895 then {
894- let gt = gp
895- if ((cT.callerPublicKey == gt))
896+ let gu = gq
897+ if ((cU.callerPublicKey == gu))
896898 then true
897- else gr
899+ else gs
898900 }
899- else if ($isInstanceOf(gp, "Unit"))
900- then if ((cT.caller == this))
901+ else if ($isInstanceOf(gq, "Unit"))
902+ then if ((cU.caller == this))
901903 then true
902- else gr
904+ else gs
903905 else throw("Match error")
904906 }
905907
906908
907-func gv (gw,ex,gx) = {
908- let bk = bc()
909- let dn = bk[w]
910- let do = bk[x]
911- let ey = g
912- let eA = parseBigIntValue(l)
913- let cH = (parseBigIntValue(aY) * eA)
914- let cD = if ((gw == false))
915- then [(toBigInt(bR(dn)) + gx), toBigInt(bR(do))]
916- else [(toBigInt(bR(do)) + gx), toBigInt(bR(dn))]
917- let ez = cD[0]
918- let cG = ez
919- let cI = (cH * ey)
920- let eB = (((((ex * ex) / (ez * ey)) * ex) * eA) / (cI * ey))
921- let eC = ((cG + ((ex * eA) / cI)) - ex)
922- func cR (cS,eD) = {
923- let gy = cS
924- let eF = gy._1
925- let dg = gy._2
926- if ((dg != unit))
927- then cS
909+func gw (gx,ey,gy) = {
910+ let bl = bd()
911+ let do = bl[x]
912+ let dp = bl[y]
913+ let ez = g
914+ let eB = parseBigIntValue(m)
915+ let cI = (parseBigIntValue(aZ) * eB)
916+ let cE = if ((gx == false))
917+ then [(toBigInt(bS(do)) + gy), toBigInt(bS(dp))]
918+ else [(toBigInt(bS(dp)) + gy), toBigInt(bS(do))]
919+ let eA = cE[0]
920+ let cH = eA
921+ let cJ = (cI * ez)
922+ let eC = (((((ey * ey) / (eA * ez)) * ey) * eB) / (cJ * ez))
923+ let eD = ((cH + ((ey * eB) / cJ)) - ey)
924+ func cS (cT,eE) = {
925+ let gz = cT
926+ let eG = gz._1
927+ let dh = gz._2
928+ if ((dh != unit))
929+ then cT
928930 else {
929- let eG = (((eF * eF) + eB) / ((g * eF) + eC))
930- let eH = X((eG - value(eF)))
931- if ((f >= eH))
932- then $Tuple2(eG, eD)
933- else $Tuple2(eG, unit)
931+ let eH = (((eG * eG) + eC) / ((g * eG) + eD))
932+ let eI = Y((eH - value(eG)))
933+ if ((f >= eI))
934+ then $Tuple2(eH, eE)
935+ else $Tuple2(eH, unit)
934936 }
935937 }
936938
937- let cX = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14]
938- let gz = {
939- let cZ = cX
940- let da = size(cZ)
941- let db = $Tuple2(ex, unit)
942- func dc (dd,de) = if ((de >= da))
943- then dd
944- else cR(dd, cZ[de])
939+ let cY = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14]
940+ let gA = {
941+ let da = cY
942+ let db = size(da)
943+ let dc = $Tuple2(ey, unit)
944+ func dd (de,df) = if ((df >= db))
945+ then de
946+ else cS(de, da[df])
945947
946- func df (dd,de) = if ((de >= da))
947- then dd
948+ func dg (de,df) = if ((df >= db))
949+ then de
948950 else throw("List size exceeds 15")
949951
950- df(dc(dc(dc(dc(dc(dc(dc(dc(dc(dc(dc(dc(dc(dc(dc(db, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15)
952+ dg(dd(dd(dd(dd(dd(dd(dd(dd(dd(dd(dd(dd(dd(dd(dd(dc, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15)
951953 }
952- let eF = gz._1
953- let dg = gz._2
954- if ((dg != unit))
955- then eF
956- else throw(("Y calculation error, Y = " + toString(eF)))
954+ let eG = gA._1
955+ let dh = gA._2
956+ if ((dh != unit))
957+ then eG
958+ else throw(("Y calculation error, Y = " + toString(eG)))
957959 }
958960
959961
960-func gA () = valueOrElse(getBoolean(aU, aG(toString(this))), false)
962+func gB () = valueOrElse(getBoolean(aV, aH(toString(this))), false)
961963
962964
963-@Callable(cT)
964-func calculateAmountOutForSwapREADONLY (gB,gw,gC) = {
965- let gD = if ((gw == false))
965+@Callable(cU)
966+func calculateAmountOutForSwapREADONLY (gC,gx,gD) = {
967+ let gE = if ((gx == false))
966968 then {
967- let gE = aN(this, ak())
968- let gx = (toBigInt(bR(aN(this, aj()))) + toBigInt(gB))
969- $Tuple2(gE, gx)
969+ let gF = aO(this, al())
970+ let gy = (toBigInt(bS(aO(this, ak()))) + toBigInt(gC))
971+ $Tuple2(gF, gy)
970972 }
971973 else {
972- let gE = aN(this, aj())
973- let gx = (toBigInt(bR(aN(this, ak()))) + toBigInt(gB))
974- $Tuple2(gE, gx)
974+ let gF = aO(this, ak())
975+ let gy = (toBigInt(bS(aO(this, al()))) + toBigInt(gC))
976+ $Tuple2(gF, gy)
975977 }
976- let gE = gD._1
977- let gx = gD._2
978- let bk = bc()
979- let dn = bk[w]
980- let do = bk[x]
981- let cD = [toBigInt(bR(dn)), toBigInt(bR(do))]
982- let ex = cC(cD)
983- let eF = gv(gw, ex, toBigInt(gB))
984- let gF = ((toBigInt(bR(gE)) - eF) - toBigInt(1))
985- let gG = max([0, toInt(gF)])
986- let gH = if ((gw == false))
987- then [((toBigInt(bR(dn)) + toBigInt(gB)) + toBigInt(gC)), (toBigInt(bR(do)) - gF)]
988- else [(toBigInt(bR(dn)) - gF), ((toBigInt(bR(do)) + toBigInt(gB)) + toBigInt(gC))]
989- let gI = cC(gH)
990- let ec = if ((gI >= ex))
978+ let gF = gE._1
979+ let gy = gE._2
980+ let bl = bd()
981+ let do = bl[x]
982+ let dp = bl[y]
983+ let cE = [toBigInt(bS(do)), toBigInt(bS(dp))]
984+ let ey = cD(cE)
985+ let eG = gw(gx, ey, toBigInt(gC))
986+ let gG = ((toBigInt(bS(gF)) - eG) - toBigInt(1))
987+ let gH = max([0, toInt(gG)])
988+ let gI = if ((gx == false))
989+ then [((toBigInt(bS(do)) + toBigInt(gC)) + toBigInt(gD)), (toBigInt(bS(dp)) - gG)]
990+ else [(toBigInt(bS(do)) - gG), ((toBigInt(bS(dp)) + toBigInt(gC)) + toBigInt(gD))]
991+ let gJ = cD(gI)
992+ let ed = if ((gJ >= ey))
991993 then true
992- else throw(makeString(["new D is fewer error", toString(ex), toString(gI)], "__"))
993- if ((ec == ec))
994- then $Tuple2(nil, gG)
994+ else throw(makeString(["new D is fewer error", toString(ey), toString(gJ)], "__"))
995+ if ((ed == ed))
996+ then $Tuple2(nil, gH)
995997 else throw("Strict value is not equal to itself.")
996998 }
997999
9981000
9991001
1000-@Callable(cT)
1001-func calculateAmountOutForSwapAndSendTokens (gB,gw,gJ,gK,gC) = {
1002- let gL = {
1003- let aW = invoke(aU, "getSwapContractREADONLY", nil, nil)
1004- if ($isInstanceOf(aW, "String"))
1005- then aW
1006- else throw(($getType(aW) + " couldn't be cast to String"))
1002+@Callable(cU)
1003+func calculateAmountOutForSwapAndSendTokens (gC,gx,gK,gL,gD) = {
1004+ let gM = {
1005+ let aX = invoke(aV, "getSwapContractREADONLY", nil, nil)
1006+ if ($isInstanceOf(aX, "String"))
1007+ then aX
1008+ else throw(($getType(aX) + " couldn't be cast to String"))
10071009 }
1008- let gM = [if ((value(cT.payments[0]).amount >= gB))
1010+ let gN = [if ((value(cU.payments[0]).amount >= gC))
10091011 then true
1010- else aR("Wrong amount"), if ((cT.caller == addressFromStringValue(gL)))
1012+ else aS("Wrong amount"), if ((cU.caller == addressFromStringValue(gM)))
10111013 then true
1012- else aR("Permission denied")]
1013- if ((gM == gM))
1014+ else aS("Permission denied")]
1015+ if ((gN == gN))
10141016 then {
1015- let fo = value(cT.payments[0])
1016- let gN = bi(fo.assetId)
1017- let gO = if ((gw == false))
1017+ let fp = value(cU.payments[0])
1018+ let gO = bj(fp.assetId)
1019+ let gP = if ((gx == false))
10181020 then {
1019- let gE = aN(this, ak())
1020- let gx = (bR(gN) - value(cT.payments[0]).amount)
1021- $Tuple2(gE, gx)
1021+ let gF = aO(this, al())
1022+ let gy = (bS(gO) - value(cU.payments[0]).amount)
1023+ $Tuple2(gF, gy)
10221024 }
10231025 else {
1024- let gE = aN(this, aj())
1025- let gx = (bR(gN) - value(cT.payments[0]).amount)
1026- $Tuple2(gE, gx)
1026+ let gF = aO(this, ak())
1027+ let gy = (bS(gO) - value(cU.payments[0]).amount)
1028+ $Tuple2(gF, gy)
10271029 }
1028- let gE = gO._1
1029- let gx = gO._2
1030- let bk = bc()
1031- let dn = bk[w]
1032- let do = bk[x]
1033- let cD = if ((gw == false))
1034- then [(toBigInt(bR(dn)) - toBigInt(value(cT.payments[0]).amount)), toBigInt(bR(do))]
1035- else [toBigInt(bR(dn)), (toBigInt(bR(do)) - toBigInt(value(cT.payments[0]).amount))]
1036- let ex = cC(cD)
1037- let eF = gv(gw, ex, toBigInt(0))
1038- let gF = ((toBigInt(bR(gE)) - eF) - toBigInt(1))
1039- let gG = max([0, toInt(gF)])
1040- let gP = if ((gG >= gJ))
1030+ let gF = gP._1
1031+ let gy = gP._2
1032+ let bl = bd()
1033+ let do = bl[x]
1034+ let dp = bl[y]
1035+ let cE = if ((gx == false))
1036+ then [(toBigInt(bS(do)) - toBigInt(value(cU.payments[0]).amount)), toBigInt(bS(dp))]
1037+ else [toBigInt(bS(do)), (toBigInt(bS(dp)) - toBigInt(value(cU.payments[0]).amount))]
1038+ let ey = cD(cE)
1039+ let eG = gw(gx, ey, toBigInt(0))
1040+ let gG = ((toBigInt(bS(gF)) - eG) - toBigInt(1))
1041+ let gH = max([0, toInt(gG)])
1042+ let gQ = if ((gH >= gK))
10411043 then true
10421044 else throw("Exchange result is fewer coins than expected")
1043- if ((gP == gP))
1045+ if ((gQ == gQ))
10441046 then {
1045- let gH = if ((gw == false))
1046- then [(toBigInt(bR(dn)) + toBigInt(gC)), (toBigInt(bR(do)) - gF)]
1047- else [(toBigInt(bR(dn)) - gF), (toBigInt(bR(do)) + toBigInt(gC))]
1048- let gI = cC(gH)
1049- let ec = if ((gI >= ex))
1047+ let gI = if ((gx == false))
1048+ then [(toBigInt(bS(do)) + toBigInt(gD)), (toBigInt(bS(dp)) - gG)]
1049+ else [(toBigInt(bS(do)) - gG), (toBigInt(bS(dp)) + toBigInt(gD))]
1050+ let gJ = cD(gI)
1051+ let ed = if ((gJ >= ey))
10501052 then true
10511053 else throw("new D is fewer error")
1052- if ((ec == ec))
1053- then $Tuple2([ScriptTransfer(addressFromStringValue(gK), gG, bg(gE))], gG)
1054+ if ((ed == ed))
1055+ then $Tuple2([ScriptTransfer(addressFromStringValue(gL), gH, bh(gF))], gH)
10541056 else throw("Strict value is not equal to itself.")
10551057 }
10561058 else throw("Strict value is not equal to itself.")
10571059 }
10581060 else throw("Strict value is not equal to itself.")
10591061 }
10601062
10611063
10621064
1063-@Callable(cT)
1064-func constructor (Y) = {
1065- let eB = gu(cT)
1066- if ((eB == eB))
1067- then [StringEntry(Y(), Y)]
1065+@Callable(cU)
1066+func constructor (Z) = {
1067+ let eC = gv(cU)
1068+ if ((eC == eC))
1069+ then [StringEntry(Z(), Z)]
10681070 else throw("Strict value is not equal to itself.")
10691071 }
10701072
10711073
10721074
1073-@Callable(cT)
1074-func setManager (gQ) = {
1075- let eB = gu(cT)
1076- if ((eB == eB))
1075+@Callable(cU)
1076+func setManager (gR) = {
1077+ let eC = gv(cU)
1078+ if ((eC == eC))
10771079 then {
1078- let gR = fromBase58String(gQ)
1079- if ((gR == gR))
1080- then [StringEntry(aa(), gQ)]
1080+ let gS = fromBase58String(gR)
1081+ if ((gS == gS))
1082+ then [StringEntry(ab(), gR)]
10811083 else throw("Strict value is not equal to itself.")
10821084 }
10831085 else throw("Strict value is not equal to itself.")
10841086 }
10851087
10861088
10871089
1088-@Callable(cT)
1090+@Callable(cU)
10891091 func confirmManager () = {
1090- let cy = gq()
1091- let gS = if (isDefined(cy))
1092+ let cz = gr()
1093+ let gT = if (isDefined(cz))
10921094 then true
10931095 else throw("No pending manager")
1094- if ((gS == gS))
1096+ if ((gT == gT))
10951097 then {
1096- let gT = if ((cT.callerPublicKey == value(cy)))
1098+ let gU = if ((cU.callerPublicKey == value(cz)))
10971099 then true
10981100 else throw("You are not pending manager")
1099- if ((gT == gT))
1100- then [StringEntry(Z(), toBase58String(value(cy))), DeleteEntry(aa())]
1101+ if ((gU == gU))
1102+ then [StringEntry(aa(), toBase58String(value(cz))), DeleteEntry(ab())]
11011103 else throw("Strict value is not equal to itself.")
11021104 }
11031105 else throw("Strict value is not equal to itself.")
11041106 }
11051107
11061108
11071109
1108-@Callable(cT)
1109-func put (gU,gV) = {
1110- let gW = bw()
1111- let gX = valueOrErrorMessage(addressFromString(gW[C]), "Wr st addr")
1112- let gY = valueOrErrorMessage(addressFromString(gW[E]), "Wr sl addr")
1113- if ((0 > gU))
1110+@Callable(cU)
1111+func put (gV,gW) = {
1112+ let gX = bx()
1113+ let gY = valueOrErrorMessage(addressFromString(gX[D]), "Wr st addr")
1114+ let gZ = valueOrErrorMessage(addressFromString(gX[F]), "Wr sl addr")
1115+ if ((0 > gV))
11141116 then throw("Wrong slippage")
1115- else if ((size(cT.payments) != 2))
1117+ else if ((size(cU.payments) != 2))
11161118 then throw("2 pmnts expd")
11171119 else {
1118- let gZ = toBigInt(value(cT.payments[0]).amount)
1119- let ha = toBigInt(value(cT.payments[1]).amount)
1120- let eS = (toBigInt(bR(bi(bq))) - gZ)
1121- if ((eS == eS))
1120+ let ha = toBigInt(value(cU.payments[0]).amount)
1121+ let hb = toBigInt(value(cU.payments[1]).amount)
1122+ let eT = (toBigInt(bS(bj(br))) - ha)
1123+ if ((eT == eT))
11221124 then {
1123- let eT = (toBigInt(bR(bi(br))) - ha)
1124- if ((eT == eT))
1125+ let eU = (toBigInt(bS(bj(bs))) - hb)
1126+ if ((eU == eU))
11251127 then {
1126- let eU = toBigInt(value(assetInfo(bp)).quantity)
1127- if ((eU == eU))
1128+ let eV = toBigInt(value(assetInfo(bq)).quantity)
1129+ if ((eV == eV))
11281130 then {
1129- let eV = eO(gZ, ha, toBigInt(0))
1130- if ((eV == eV))
1131+ let eW = eP(ha, hb, toBigInt(0))
1132+ if ((eW == eW))
11311133 then {
1132- let hb = fp(toString(cT.caller), toBase58String(cT.transactionId), AttachedPayment(value(cT.payments[0]).assetId, value(cT.payments[0]).amount), cT.payments[1], gU, true, false, true, 0, "")
1133- let ep = hb._2
1134- let hc = hb._7
1135- let dF = hb._9
1136- let eq = hb._10
1137- let er = hb._11
1138- let dn = hb._12
1139- let do = hb._13
1140- let eb = invoke(aU, "emit", [ep], nil)
1141- if ((eb == eb))
1134+ let hc = fq(toString(cU.caller), toBase58String(cU.transactionId), AttachedPayment(value(cU.payments[0]).assetId, value(cU.payments[0]).amount), cU.payments[1], gV, true, false, true, 0, "")
1135+ let eq = hc._2
1136+ let hd = hc._7
1137+ let dG = hc._9
1138+ let er = hc._10
1139+ let es = hc._11
1140+ let do = hc._12
1141+ let dp = hc._13
1142+ let ec = invoke(aV, "emit", [eq], nil)
1143+ if ((ec == ec))
11421144 then {
1143- let hd = {
1144- let gp = eb
1145- if ($isInstanceOf(gp, "Address"))
1145+ let he = {
1146+ let gq = ec
1147+ if ($isInstanceOf(gq, "Address"))
11461148 then {
1147- let he = gp
1148- invoke(he, "emit", [ep], nil)
1149+ let hf = gq
1150+ invoke(hf, "emit", [eq], nil)
11491151 }
11501152 else unit
11511153 }
1152- if ((hd == hd))
1154+ if ((he == he))
11531155 then {
1154- let hf = if ((eq > 0))
1155- then invoke(gY, "put", nil, [AttachedPayment(dn, eq)])
1156+ let hg = if ((er > 0))
1157+ then invoke(gZ, "put", nil, [AttachedPayment(do, er)])
11561158 else nil
1157- if ((hf == hf))
1159+ if ((hg == hg))
11581160 then {
1159- let hg = if ((er > 0))
1160- then invoke(gY, "put", nil, [AttachedPayment(do, er)])
1161+ let hh = if ((es > 0))
1162+ then invoke(gZ, "put", nil, [AttachedPayment(dp, es)])
11611163 else nil
1162- if ((hg == hg))
1164+ if ((hh == hh))
11631165 then {
1164- let hh = if (gV)
1166+ let hi = if (gW)
11651167 then {
1166- let hi = invoke(gX, "stake", nil, [AttachedPayment(hc, ep)])
1167- if ((hi == hi))
1168+ let hj = invoke(gY, "stake", nil, [AttachedPayment(hd, eq)])
1169+ if ((hj == hj))
11681170 then nil
11691171 else throw("Strict value is not equal to itself.")
11701172 }
1171- else [ScriptTransfer(cT.caller, ep, hc)]
1172- let hj = eW(0, 0, 0)
1173- let gm = hj._1
1174- let eN = hj._2
1175- let hk = if ((eN >= eV))
1173+ else [ScriptTransfer(cU.caller, eq, hd)]
1174+ let hk = eX(0, 0, 0)
1175+ let gn = hk._1
1176+ let eO = hk._2
1177+ let hl = if ((eO >= eW))
11761178 then true
1177- else aR(makeString(["updated DLp lower than current DLp", toString(eS), toString(eT), toString(eU), toString(eV), toString(eN), toString(eq), toString(er)], " "))
1178- if ((hk == hk))
1179+ else aS(makeString(["updated DLp lower than current DLp", toString(eT), toString(eU), toString(eV), toString(eW), toString(eO), toString(er), toString(es)], " "))
1180+ if ((hl == hl))
11791181 then {
1180- let hl = value(assetInfo(bp)).quantity
1181- if ((hl == hl))
1182- then ((dF ++ hh) ++ gm)
1182+ let hm = value(assetInfo(bq)).quantity
1183+ if ((hm == hm))
1184+ then ((dG ++ hi) ++ gn)
11831185 else throw("Strict value is not equal to itself.")
11841186 }
11851187 else throw("Strict value is not equal to itself.")
11861188 }
11871189 else throw("Strict value is not equal to itself.")
11881190 }
11891191 else throw("Strict value is not equal to itself.")
11901192 }
11911193 else throw("Strict value is not equal to itself.")
11921194 }
11931195 else throw("Strict value is not equal to itself.")
11941196 }
11951197 else throw("Strict value is not equal to itself.")
11961198 }
11971199 else throw("Strict value is not equal to itself.")
11981200 }
11991201 else throw("Strict value is not equal to itself.")
12001202 }
12011203 else throw("Strict value is not equal to itself.")
12021204 }
12031205 }
12041206
12051207
12061208
1207-@Callable(cT)
1208-func putOneTknV2 (fQ,gV) = {
1209- let hm = {
1210- let aW = invoke(aU, "isPoolOneTokenOperationsDisabledREADONLY", [toString(this)], nil)
1211- if ($isInstanceOf(aW, "Boolean"))
1212- then aW
1213- else throw(($getType(aW) + " couldn't be cast to Boolean"))
1209+@Callable(cU)
1210+func putOneTknV2 (fR,gW) = {
1211+ let hn = {
1212+ let aX = invoke(aV, "isPoolOneTokenOperationsDisabledREADONLY", [toString(this)], nil)
1213+ if ($isInstanceOf(aX, "Boolean"))
1214+ then aX
1215+ else throw(($getType(aX) + " couldn't be cast to Boolean"))
12141216 }
1215- let hn = if (if (if (aZ())
1217+ let ho = if (if (if (ba())
12161218 then true
1217- else (bo == q))
1219+ else (bp == r))
12181220 then true
1219- else (bo == s))
1221+ else (bp == t))
12201222 then true
1221- else hm
1222- let gM = [if (if (!(hn))
1223+ else hn
1224+ let gN = [if (if (!(ho))
12231225 then true
1224- else gs(cT))
1226+ else gt(cU))
12251227 then true
1226- else aR("put operation is blocked by admin"), if ((size(cT.payments) == 1))
1228+ else aS("put operation is blocked by admin"), if ((size(cU.payments) == 1))
12271229 then true
1228- else aR("exactly 1 payment are expected")]
1229- if ((gM == gM))
1230+ else aS("exactly 1 payment are expected")]
1231+ if ((gN == gN))
12301232 then {
1231- let dn = toBase58String(value(bq))
12321233 let do = toBase58String(value(br))
1233- let dm = bp
1234- let fU = bs
1234+ let dp = toBase58String(value(bs))
1235+ let dn = bq
12351236 let fV = bt
1236- let dl = if ((cT.caller == this))
1237- then cT.originCaller
1238- else cT.caller
1239- let fo = value(cT.payments[0])
1240- let dj = toBase58String(value(fo.assetId))
1241- let dP = fo.amount
1242- let eV = if ((fo.assetId == bq))
1243- then eO(toBigInt(dP), toBigInt(0), toBigInt(0))
1244- else eO(toBigInt(0), toBigInt(dP), toBigInt(0))
1245- if ((eV == eV))
1237+ let fW = bu
1238+ let dm = if ((cU.caller == this))
1239+ then cU.originCaller
1240+ else cU.caller
1241+ let fp = value(cU.payments[0])
1242+ let dk = toBase58String(value(fp.assetId))
1243+ let dQ = fp.amount
1244+ let eW = if ((fp.assetId == br))
1245+ then eP(toBigInt(dQ), toBigInt(0), toBigInt(0))
1246+ else eP(toBigInt(0), toBigInt(dQ), toBigInt(0))
1247+ if ((eW == eW))
12461248 then {
1247- let ho = ft(dP, dj, toString(dl), toBase58String(cT.transactionId), true)
1248- if ((ho == ho))
1249+ let hp = fu(dQ, dk, toString(dm), toBase58String(cU.transactionId), true)
1250+ if ((hp == hp))
12491251 then {
1250- let cB = ho._3
1251- let dF = ho._2
1252- let hp = ho._1
1253- let ep = if (if ((fQ > 0))
1254- then (fQ > hp)
1252+ let cC = hp._3
1253+ let dG = hp._2
1254+ let hq = hp._1
1255+ let eq = if (if ((fR > 0))
1256+ then (fR > hq)
12551257 else false)
1256- then aR(makeString(["amount to receive is less than ", toString(fQ)], ""))
1257- else hp
1258- let hb = invoke(aU, "emit", [ep], nil)
1259- if ((hb == hb))
1258+ then aS(makeString(["amount to receive is less than ", toString(fR)], ""))
1259+ else hq
1260+ let hc = invoke(aV, "emit", [eq], nil)
1261+ if ((hc == hc))
12601262 then {
1261- let hd = {
1262- let gp = hb
1263- if ($isInstanceOf(gp, "Address"))
1263+ let he = {
1264+ let gq = hc
1265+ if ($isInstanceOf(gq, "Address"))
12641266 then {
1265- let he = gp
1266- invoke(he, "emit", [ep], nil)
1267+ let hf = gq
1268+ invoke(hf, "emit", [eq], nil)
12671269 }
12681270 else unit
12691271 }
1270- if ((hd == hd))
1272+ if ((he == he))
12711273 then {
1272- let hh = if (gV)
1274+ let hi = if (gW)
12731275 then {
1274- let hi = invoke(by, "stakeFor", [toString(cT.caller)], [AttachedPayment(dm, ep)])
1275- if ((hi == hi))
1276+ let hj = invoke(bz, "stakeFor", [toString(cU.caller)], [AttachedPayment(dn, eq)])
1277+ if ((hj == hj))
12761278 then nil
12771279 else throw("Strict value is not equal to itself.")
12781280 }
1279- else [ScriptTransfer(cT.caller, ep, dm)]
1280- let gg = if ((cB > 0))
1281- then [ScriptTransfer(bb, cB, fromBase58String(dj))]
1281+ else [ScriptTransfer(cU.caller, eq, dn)]
1282+ let gh = if ((cC > 0))
1283+ then [ScriptTransfer(bc, cC, fromBase58String(dk))]
12821284 else nil
1283- let hq = if ((this == bb))
1285+ let hr = if ((this == bc))
12841286 then $Tuple2(0, 0)
12851287 else {
1286- let hr = if ((fo.assetId == bq))
1288+ let hs = if ((fp.assetId == br))
12871289 then true
12881290 else false
1289- if (hr)
1290- then $Tuple2(-(cB), 0)
1291- else $Tuple2(0, -(cB))
1291+ if (hs)
1292+ then $Tuple2(-(cC), 0)
1293+ else $Tuple2(0, -(cC))
12921294 }
1293- let eX = hq._1
1294- let eY = hq._2
1295- let hs = eW(eX, eY, 0)
1296- let gm = hs._1
1297- let eN = hs._2
1298- let gn = fa(eV, eN)
1299- if ((gn == gn))
1300- then $Tuple2((((dF ++ hh) ++ gg) ++ gm), ep)
1295+ let eY = hr._1
1296+ let eZ = hr._2
1297+ let ht = eX(eY, eZ, 0)
1298+ let gn = ht._1
1299+ let eO = ht._2
1300+ let go = fb(eW, eO)
1301+ if ((go == go))
1302+ then $Tuple2((((dG ++ hi) ++ gh) ++ gn), eq)
13011303 else throw("Strict value is not equal to itself.")
13021304 }
13031305 else throw("Strict value is not equal to itself.")
13041306 }
13051307 else throw("Strict value is not equal to itself.")
13061308 }
13071309 else throw("Strict value is not equal to itself.")
13081310 }
13091311 else throw("Strict value is not equal to itself.")
13101312 }
13111313 else throw("Strict value is not equal to itself.")
13121314 }
13131315
13141316
13151317
1316-@Callable(cT)
1317-func putForFree (ht) = if ((0 > ht))
1318+@Callable(cU)
1319+func putForFree (hu) = if ((0 > hu))
13181320 then throw("Wrong slpg")
1319- else if ((size(cT.payments) != 2))
1321+ else if ((size(cU.payments) != 2))
13201322 then throw("2 pmnts expd")
13211323 else {
1322- let hu = fp(toString(cT.caller), toBase58String(cT.transactionId), AttachedPayment(value(cT.payments[0]).assetId, value(cT.payments[0]).amount), cT.payments[1], ht, false, false, true, 0, "")
1323- let dF = hu._9
1324- let gZ = toBigInt(value(cT.payments[0]).amount)
1325- let ha = toBigInt(value(cT.payments[1]).amount)
1326- let eV = eO(gZ, ha, toBigInt(0))
1327- if ((eV == eV))
1324+ let hv = fq(toString(cU.caller), toBase58String(cU.transactionId), AttachedPayment(value(cU.payments[0]).assetId, value(cU.payments[0]).amount), cU.payments[1], hu, false, false, true, 0, "")
1325+ let dG = hv._9
1326+ let ha = toBigInt(value(cU.payments[0]).amount)
1327+ let hb = toBigInt(value(cU.payments[1]).amount)
1328+ let eW = eP(ha, hb, toBigInt(0))
1329+ if ((eW == eW))
13281330 then {
1329- let hv = eW(0, 0, 0)
1330- let gm = hv._1
1331- let eN = hv._2
1332- let gn = fa(eV, eN)
1333- if ((gn == gn))
1334- then (dF ++ gm)
1331+ let hw = eX(0, 0, 0)
1332+ let gn = hw._1
1333+ let eO = hw._2
1334+ let go = fb(eW, eO)
1335+ if ((go == go))
1336+ then (dG ++ gn)
13351337 else throw("Strict value is not equal to itself.")
13361338 }
13371339 else throw("Strict value is not equal to itself.")
13381340 }
13391341
13401342
13411343
1342-@Callable(cT)
1344+@Callable(cU)
13431345 func get () = {
1344- let eV = eO(toBigInt(0), toBigInt(0), toBigInt(0))
1345- if ((eV == eV))
1346+ let eW = eP(toBigInt(0), toBigInt(0), toBigInt(0))
1347+ if ((eW == eW))
13461348 then {
1347- let eb = fn(cT)
1348- let hw = eb._1
1349- let dE = eb._2
1350- let dP = eb._3
1351- let dj = eb._4
1352- let dF = eb._5
1353- let eC = invoke(aU, "burn", [dP], [AttachedPayment(dj, dP)])
1354- if ((eC == eC))
1349+ let ec = fo(cU)
1350+ let hx = ec._1
1351+ let dF = ec._2
1352+ let dQ = ec._3
1353+ let dk = ec._4
1354+ let dG = ec._5
1355+ let eD = invoke(aV, "burn", [dQ], [AttachedPayment(dk, dQ)])
1356+ if ((eD == eD))
13551357 then {
1356- let hx = eW(-(hw), -(dE), 0)
1357- let gm = hx._1
1358- let eN = hx._2
1359- let gn = fa(eV, eN)
1360- if ((gn == gn))
1361- then (dF ++ gm)
1358+ let hy = eX(-(hx), -(dF), 0)
1359+ let gn = hy._1
1360+ let eO = hy._2
1361+ let go = fb(eW, eO)
1362+ if ((go == go))
1363+ then (dG ++ gn)
13621364 else throw("Strict value is not equal to itself.")
13631365 }
13641366 else throw("Strict value is not equal to itself.")
13651367 }
13661368 else throw("Strict value is not equal to itself.")
13671369 }
13681370
13691371
13701372
1371-@Callable(cT)
1372-func getOneTknV2 (fP,fQ) = {
1373- let hm = {
1374- let aW = invoke(aU, "isPoolOneTokenOperationsDisabledREADONLY", [toString(this)], nil)
1375- if ($isInstanceOf(aW, "Boolean"))
1376- then aW
1377- else throw(($getType(aW) + " couldn't be cast to Boolean"))
1373+@Callable(cU)
1374+func getOneTknV2 (fQ,fR) = {
1375+ let hn = {
1376+ let aX = invoke(aV, "isPoolOneTokenOperationsDisabledREADONLY", [toString(this)], nil)
1377+ if ($isInstanceOf(aX, "Boolean"))
1378+ then aX
1379+ else throw(($getType(aX) + " couldn't be cast to Boolean"))
13781380 }
1379- let hy = if (if (aZ())
1381+ let hz = if (if (ba())
13801382 then true
1381- else (bo == s))
1383+ else (bp == t))
13821384 then true
1383- else hm
1384- let gM = [if (if (!(hy))
1385+ else hn
1386+ let gN = [if (if (!(hz))
13851387 then true
1386- else gs(cT))
1388+ else gt(cU))
13871389 then true
1388- else aR("get operation is blocked by admin"), if ((size(cT.payments) == 1))
1390+ else aS("get operation is blocked by admin"), if ((size(cU.payments) == 1))
13891391 then true
1390- else aR("exactly 1 payment are expected")]
1391- if ((gM == gM))
1392+ else aS("exactly 1 payment are expected")]
1393+ if ((gN == gN))
13921394 then {
1393- let hz = fO(fP, fQ, cT.payments, cT.caller, cT.originCaller, cT.transactionId)
1394- let dF = hz._1
1395- let fZ = hz._2
1396- $Tuple2(dF, fZ)
1395+ let hA = fP(fQ, fR, cU.payments, cU.caller, cU.originCaller, cU.transactionId)
1396+ let dG = hA._1
1397+ let ga = hA._2
1398+ $Tuple2(dG, ga)
13971399 }
13981400 else throw("Strict value is not equal to itself.")
13991401 }
14001402
14011403
14021404
1403-@Callable(cT)
1405+@Callable(cU)
14041406 func refreshDLp () = {
1405- let hA = valueOrElse(getInteger(as), 0)
1406- let hB = if (((height - hA) >= av))
1407+ let hB = valueOrElse(getInteger(at), 0)
1408+ let hC = if (((height - hB) >= aw))
14071409 then unit
1408- else aR(makeString([toString(av), " blocks have not passed since the previous call"], ""))
1409- if ((hB == hB))
1410+ else aS(makeString([toString(aw), " blocks have not passed since the previous call"], ""))
1411+ if ((hC == hC))
14101412 then {
1411- let fh = valueOrErrorMessage(parseBigInt(valueOrElse(getString(this, ar), "0")), aT("invalid dLp"))
1412- let hC = eW(0, 0, 0)
1413- let hD = hC._1
1414- let eN = hC._2
1415- let eZ = if ((fh != eN))
1416- then hD
1417- else aR("nothing to refresh")
1418- $Tuple2(eZ, toString(eN))
1413+ let fi = valueOrErrorMessage(parseBigInt(valueOrElse(getString(this, as), "0")), aU("invalid dLp"))
1414+ let hD = eX(0, 0, 0)
1415+ let hE = hD._1
1416+ let eO = hD._2
1417+ let fa = if ((fi != eO))
1418+ then hE
1419+ else aS("nothing to refresh")
1420+ $Tuple2(fa, toString(eO))
14191421 }
14201422 else throw("Strict value is not equal to itself.")
14211423 }
14221424
14231425
14241426
1425-@Callable(cT)
1426-func getOneTknV2READONLY (fP,hE) = {
1427+@Callable(cU)
1428+func getOneTknV2READONLY (fQ,hF) = {
1429+ let do = toBase58String(value(br))
1430+ let dp = toBase58String(value(bs))
14271431 let dn = toBase58String(value(bq))
1428- let do = toBase58String(value(br))
1429- let dm = toBase58String(value(bp))
1430- let cD = [toBigInt(bR(dn)), toBigInt(bR(do))]
1431- let eM = toBigInt(valueOrErrorMessage(assetInfo(fromBase58String(dm)), "invalid lp asset").quantity)
1432- let cf = cC(cD)
1433- let ce = (cf - fraction(toBigInt(hE), cf, eM))
1434- let hF = if ((fP == dn))
1432+ let cE = [toBigInt(bS(do)), toBigInt(bS(dp))]
1433+ let eN = toBigInt(valueOrErrorMessage(assetInfo(fromBase58String(dn)), "invalid lp asset").quantity)
1434+ let cg = cD(cE)
1435+ let cf = (cg - fraction(toBigInt(hF), cg, eN))
1436+ let hG = if ((fQ == do))
14351437 then 0
1436- else if ((fP == do))
1438+ else if ((fQ == dp))
14371439 then 1
14381440 else throw("invalid out asset id")
1439- let hG = ew(cD, hF, ce)
1440- let gF = (cD[hF] - hG)
1441- let gG = max([0, toInt((gF - f))])
1442- let hH = cz(gG, aX)
1443- let fY = hH._1
1444- let cB = hH._2
1445- $Tuple2(nil, $Tuple2(fY, cB))
1441+ let hH = ex(cE, hG, cf)
1442+ let gG = (cE[hG] - hH)
1443+ let gH = max([0, toInt((gG - f))])
1444+ let hI = cA(gH, aY)
1445+ let fZ = hI._1
1446+ let cC = hI._2
1447+ $Tuple2(nil, $Tuple2(fZ, cC))
14461448 }
14471449
14481450
14491451
1450-@Callable(cT)
1451-func getOneTknV2WithBonusREADONLY (fP,hE) = {
1452+@Callable(cU)
1453+func getOneTknV2WithBonusREADONLY (fQ,hF) = {
1454+ let do = toBase58String(value(br))
1455+ let dp = toBase58String(value(bs))
14521456 let dn = toBase58String(value(bq))
1453- let do = toBase58String(value(br))
1454- let dm = toBase58String(value(bp))
1455- let dt = bR(dn)
1456- let dv = bR(do)
1457- let hI = {
1458- let aW = invoke(this, "getOneTknV2READONLY", [fP, hE], nil)
1459- if ($isInstanceOf(aW, "(Int, Int)"))
1460- then aW
1461- else throw(($getType(aW) + " couldn't be cast to (Int, Int)"))
1457+ let du = bS(do)
1458+ let dw = bS(dp)
1459+ let hJ = {
1460+ let aX = invoke(this, "getOneTknV2READONLY", [fQ, hF], nil)
1461+ if ($isInstanceOf(aX, "(Int, Int)"))
1462+ then aX
1463+ else throw(($getType(aX) + " couldn't be cast to (Int, Int)"))
14621464 }
1463- let fY = hI._1
1464- let cB = hI._2
1465- let eb = dh("", dm, hE, this)
1466- let dD = eb._1
1467- let dE = eb._2
1468- let hJ = (dD + dE)
1469- let fN = if ((hJ == 0))
1470- then if ((fY == 0))
1465+ let fZ = hJ._1
1466+ let cC = hJ._2
1467+ let ec = di("", dn, hF, this)
1468+ let dE = ec._1
1469+ let dF = ec._2
1470+ let hK = (dE + dF)
1471+ let fO = if ((hK == 0))
1472+ then if ((fZ == 0))
14711473 then 0
14721474 else throw("bonus calculation error")
1473- else fraction((fY - hJ), a, hJ)
1474- $Tuple2(nil, $Tuple3(fY, cB, fN))
1475+ else fraction((fZ - hK), a, hK)
1476+ $Tuple2(nil, $Tuple3(fZ, cC, fO))
14751477 }
14761478
14771479
14781480
1479-@Callable(cT)
1480-func getNoLess (hK,hL) = {
1481- let eb = fn(cT)
1482- let dD = eb._1
1483- let dE = eb._2
1484- let dP = eb._3
1485- let dj = eb._4
1486- let dF = eb._5
1487- if ((hK > dD))
1488- then throw(((("Failed: " + toString(dD)) + " < ") + toString(hK)))
1489- else if ((hL > dE))
1490- then throw(((("Failed: " + toString(dE)) + " < ") + toString(hL)))
1481+@Callable(cU)
1482+func getNoLess (hL,hM) = {
1483+ let ec = fo(cU)
1484+ let dE = ec._1
1485+ let dF = ec._2
1486+ let dQ = ec._3
1487+ let dk = ec._4
1488+ let dG = ec._5
1489+ if ((hL > dE))
1490+ then throw(((("Failed: " + toString(dE)) + " < ") + toString(hL)))
1491+ else if ((hM > dF))
1492+ then throw(((("Failed: " + toString(dF)) + " < ") + toString(hM)))
14911493 else {
1492- let eV = eO(toBigInt(0), toBigInt(0), toBigInt(0))
1493- if ((eV == eV))
1494+ let eW = eP(toBigInt(0), toBigInt(0), toBigInt(0))
1495+ if ((eW == eW))
14941496 then {
1495- let hM = invoke(aU, "burn", [dP], [AttachedPayment(dj, dP)])
1496- if ((hM == hM))
1497+ let hN = invoke(aV, "burn", [dQ], [AttachedPayment(dk, dQ)])
1498+ if ((hN == hN))
14971499 then {
1498- let hN = eW(-(dD), -(dE), 0)
1499- let gm = hN._1
1500- let eN = hN._2
1501- let gn = fa(eV, eN)
1502- if ((gn == gn))
1503- then (dF ++ gm)
1500+ let hO = eX(-(dE), -(dF), 0)
1501+ let gn = hO._1
1502+ let eO = hO._2
1503+ let go = fb(eW, eO)
1504+ if ((go == go))
1505+ then (dG ++ gn)
15041506 else throw("Strict value is not equal to itself.")
15051507 }
15061508 else throw("Strict value is not equal to itself.")
15071509 }
15081510 else throw("Strict value is not equal to itself.")
15091511 }
15101512 }
15111513
15121514
15131515
1514-@Callable(cT)
1515-func unstakeAndGet (cA) = {
1516- let hO = if ((size(cT.payments) != 0))
1516+@Callable(cU)
1517+func unstakeAndGet (cB) = {
1518+ let hP = if ((size(cU.payments) != 0))
15171519 then throw("No pmnts expd")
15181520 else true
1519- if ((hO == hO))
1521+ if ((hP == hP))
15201522 then {
1521- let hP = bw()
1522- let hc = bp
1523- let hQ = valueOrErrorMessage(addressFromString(hP[C]), "Wr st addr")
1524- let eV = eO(toBigInt(0), toBigInt(0), toBigInt(0))
1525- if ((eV == eV))
1523+ let hQ = bx()
1524+ let hd = bq
1525+ let hR = valueOrErrorMessage(addressFromString(hQ[D]), "Wr st addr")
1526+ let eW = eP(toBigInt(0), toBigInt(0), toBigInt(0))
1527+ if ((eW == eW))
15261528 then {
1527- let hR = invoke(hQ, "unstake", [toBase58String(hc), cA], nil)
1528- if ((hR == hR))
1529+ let hS = invoke(hR, "unstake", [toBase58String(hd), cB], nil)
1530+ if ((hS == hS))
15291531 then {
1530- let eb = dh(toBase58String(cT.transactionId), toBase58String(hc), cA, cT.caller)
1531- let dD = eb._1
1532- let dE = eb._2
1533- let dr = parseIntValue(eb._9)
1534- let dF = eb._10
1535- let hS = if (if (aZ())
1532+ let ec = di(toBase58String(cU.transactionId), toBase58String(hd), cB, cU.caller)
1533+ let dE = ec._1
1534+ let dF = ec._2
1535+ let ds = parseIntValue(ec._9)
1536+ let dG = ec._10
1537+ let hT = if (if (ba())
15361538 then true
1537- else (dr == s))
1538- then throw(("Blocked: " + toString(dr)))
1539+ else (ds == t))
1540+ then throw(("Blocked: " + toString(ds)))
15391541 else true
1540- if ((hS == hS))
1542+ if ((hT == hT))
15411543 then {
1542- let hT = invoke(aU, "burn", [cA], [AttachedPayment(hc, cA)])
1543- if ((hT == hT))
1544+ let hU = invoke(aV, "burn", [cB], [AttachedPayment(hd, cB)])
1545+ if ((hU == hU))
15441546 then {
1545- let hU = eW(-(dD), -(dE), 0)
1546- let gm = hU._1
1547- let eN = hU._2
1548- let gn = fa(eV, eN)
1549- if ((gn == gn))
1550- then (dF ++ gm)
1547+ let hV = eX(-(dE), -(dF), 0)
1548+ let gn = hV._1
1549+ let eO = hV._2
1550+ let go = fb(eW, eO)
1551+ if ((go == go))
1552+ then (dG ++ gn)
15511553 else throw("Strict value is not equal to itself.")
15521554 }
15531555 else throw("Strict value is not equal to itself.")
15541556 }
15551557 else throw("Strict value is not equal to itself.")
15561558 }
15571559 else throw("Strict value is not equal to itself.")
15581560 }
15591561 else throw("Strict value is not equal to itself.")
15601562 }
15611563 else throw("Strict value is not equal to itself.")
15621564 }
15631565
15641566
15651567
1566-@Callable(cT)
1567-func unstakeAndGetNoLess (hV,hW,hL) = {
1568- let hy = if (aZ())
1568+@Callable(cU)
1569+func unstakeAndGetNoLess (hW,hX,hM) = {
1570+ let hz = if (ba())
15691571 then true
1570- else (bo == s)
1571- let gM = [if (!(hy))
1572+ else (bp == t)
1573+ let gN = [if (!(hz))
15721574 then true
1573- else throw("get operation is blocked by admin"), if ((size(cT.payments) == 0))
1575+ else throw("get operation is blocked by admin"), if ((size(cU.payments) == 0))
15741576 then true
15751577 else throw("no payments are expected")]
1576- if ((gM == gM))
1578+ if ((gN == gN))
15771579 then {
1578- let eV = eO(toBigInt(0), toBigInt(0), toBigInt(0))
1579- if ((eV == eV))
1580+ let eW = eP(toBigInt(0), toBigInt(0), toBigInt(0))
1581+ if ((eW == eW))
15801582 then {
1581- let hR = invoke(by, "unstake", [toBase58String(bp), hV], nil)
1582- if ((hR == hR))
1583+ let hS = invoke(bz, "unstake", [toBase58String(bq), hW], nil)
1584+ if ((hS == hS))
15831585 then {
1584- let hX = dh(toBase58String(cT.transactionId), toBase58String(bp), hV, cT.caller)
1585- let dD = hX._1
1586- let dE = hX._2
1587- let dF = hX._10
1588- let hY = [if ((dD >= hW))
1586+ let hY = di(toBase58String(cU.transactionId), toBase58String(bq), hW, cU.caller)
1587+ let dE = hY._1
1588+ let dF = hY._2
1589+ let dG = hY._10
1590+ let hZ = [if ((dE >= hX))
15891591 then true
1590- else throw(makeString(["amount asset amount to receive is less than ", toString(hW)], "")), if ((dE >= hL))
1592+ else throw(makeString(["amount asset amount to receive is less than ", toString(hX)], "")), if ((dF >= hM))
15911593 then true
1592- else throw(makeString(["price asset amount to receive is less than ", toString(hL)], ""))]
1593- if ((hY == hY))
1594+ else throw(makeString(["price asset amount to receive is less than ", toString(hM)], ""))]
1595+ if ((hZ == hZ))
15941596 then {
1595- let hM = invoke(aU, "burn", [hV], [AttachedPayment(bp, hV)])
1596- if ((hM == hM))
1597+ let hN = invoke(aV, "burn", [hW], [AttachedPayment(bq, hW)])
1598+ if ((hN == hN))
15971599 then {
1598- let hZ = eW(-(dD), -(dE), 0)
1599- let gm = hZ._1
1600- let eN = hZ._2
1601- let gn = fa(eV, eN)
1602- if ((gn == gn))
1603- then (dF ++ gm)
1600+ let ia = eX(-(dE), -(dF), 0)
1601+ let gn = ia._1
1602+ let eO = ia._2
1603+ let go = fb(eW, eO)
1604+ if ((go == go))
1605+ then (dG ++ gn)
16041606 else throw("Strict value is not equal to itself.")
16051607 }
16061608 else throw("Strict value is not equal to itself.")
16071609 }
16081610 else throw("Strict value is not equal to itself.")
16091611 }
16101612 else throw("Strict value is not equal to itself.")
16111613 }
16121614 else throw("Strict value is not equal to itself.")
16131615 }
16141616 else throw("Strict value is not equal to itself.")
16151617 }
16161618
16171619
16181620
1619-@Callable(cT)
1620-func unstakeAndGetOneTknV2 (hV,fP,fQ) = {
1621- let hm = {
1622- let aW = invoke(aU, "isPoolOneTokenOperationsDisabledREADONLY", [toString(this)], nil)
1623- if ($isInstanceOf(aW, "Boolean"))
1624- then aW
1625- else throw(($getType(aW) + " couldn't be cast to Boolean"))
1621+@Callable(cU)
1622+func unstakeAndGetOneTknV2 (hW,fQ,fR) = {
1623+ let hn = {
1624+ let aX = invoke(aV, "isPoolOneTokenOperationsDisabledREADONLY", [toString(this)], nil)
1625+ if ($isInstanceOf(aX, "Boolean"))
1626+ then aX
1627+ else throw(($getType(aX) + " couldn't be cast to Boolean"))
16261628 }
1627- let hy = if (if (aZ())
1629+ let hz = if (if (ba())
16281630 then true
1629- else (bo == s))
1631+ else (bp == t))
16301632 then true
1631- else hm
1632- let gM = [if (if (!(hy))
1633+ else hn
1634+ let gN = [if (if (!(hz))
16331635 then true
1634- else gs(cT))
1636+ else gt(cU))
16351637 then true
1636- else aR("get operation is blocked by admin"), if ((size(cT.payments) == 0))
1638+ else aS("get operation is blocked by admin"), if ((size(cU.payments) == 0))
16371639 then true
1638- else aR("no payments are expected")]
1639- if ((gM == gM))
1640+ else aS("no payments are expected")]
1641+ if ((gN == gN))
16401642 then {
1641- let hP = bw()
1642- let hc = bp
1643- let hQ = valueOrErrorMessage(addressFromString(hP[C]), "Wr st addr")
1644- let dl = cT.caller
1645- let ia = this
1646- let hR = invoke(hQ, "unstakeINTERNAL", [hc, hV, dl.bytes, ia.bytes], nil)
1647- if ((hR == hR))
1643+ let hQ = bx()
1644+ let hd = bq
1645+ let hR = valueOrErrorMessage(addressFromString(hQ[D]), "Wr st addr")
1646+ let dm = cU.caller
1647+ let ib = this
1648+ let hS = invoke(hR, "unstakeINTERNAL", [hd, hW, dm.bytes, ib.bytes], nil)
1649+ if ((hS == hS))
16481650 then {
1649- let ib = fO(fP, fQ, [AttachedPayment(hc, hV)], cT.caller, cT.originCaller, cT.transactionId)
1650- let dF = ib._1
1651- let fZ = ib._2
1652- $Tuple2(dF, fZ)
1651+ let ic = fP(fQ, fR, [AttachedPayment(hd, hW)], cU.caller, cU.originCaller, cU.transactionId)
1652+ let dG = ic._1
1653+ let ga = ic._2
1654+ $Tuple2(dG, ga)
16531655 }
16541656 else throw("Strict value is not equal to itself.")
16551657 }
16561658 else throw("Strict value is not equal to itself.")
16571659 }
16581660
16591661
16601662
1661-@Callable(cT)
1662-func putOneTknV2WithBonusREADONLY (ic,id) = {
1663- let ie = ft(ic, id, "", "", true)
1664- let fI = ie._1
1665- let dF = ie._2
1666- let cB = ie._3
1667- let fN = ie._4
1668- $Tuple2(nil, $Tuple3(fI, cB, fN))
1663+@Callable(cU)
1664+func putOneTknV2WithBonusREADONLY (id,ie) = {
1665+ let if = fu(id, ie, "", "", true)
1666+ let fJ = if._1
1667+ let dG = if._2
1668+ let cC = if._3
1669+ let fO = if._4
1670+ $Tuple2(nil, $Tuple3(fJ, cC, fO))
16691671 }
16701672
16711673
16721674
1673-@Callable(cT)
1674-func putOneTknV2WithoutTakeFeeREADONLY (ic,id) = {
1675- let if = ft(ic, id, "", "", false)
1676- let fI = if._1
1677- let dF = if._2
1678- let cB = if._3
1679- let fN = if._4
1680- $Tuple2(nil, $Tuple3(fI, cB, fN))
1675+@Callable(cU)
1676+func putOneTknV2WithoutTakeFeeREADONLY (id,ie) = {
1677+ let ig = fu(id, ie, "", "", false)
1678+ let fJ = ig._1
1679+ let dG = ig._2
1680+ let cC = ig._3
1681+ let fO = ig._4
1682+ $Tuple2(nil, $Tuple3(fJ, cC, fO))
16811683 }
16821684
16831685
16841686
1685-@Callable(cT)
1686-func activate (ig,ih) = if ((toString(cT.caller) != toString(aU)))
1687+@Callable(cU)
1688+func activate (ih,ii) = if ((toString(cU.caller) != toString(aV)))
16871689 then throw("denied")
1688- else $Tuple2([StringEntry(aj(), ig), StringEntry(ak(), ih)], "success")
1690+ else $Tuple2([StringEntry(ak(), ih), StringEntry(al(), ii), StringEntry(am(), toString(l))], "success")
16891691
16901692
16911693
1692-@Callable(cT)
1693-func getPoolConfigWrapperREADONLY () = $Tuple2(nil, bc())
1694+@Callable(cU)
1695+func getPoolConfigWrapperREADONLY () = $Tuple2(nil, bd())
16941696
16951697
16961698
1697-@Callable(cT)
1698-func getAccBalanceWrapperREADONLY (bS) = $Tuple2(nil, bR(bS))
1699+@Callable(cU)
1700+func getAccBalanceWrapperREADONLY (bT) = $Tuple2(nil, bS(bT))
16991701
17001702
17011703
1702-@Callable(cT)
1703-func calcPricesWrapperREADONLY (cl,cm,cq) = {
1704- let ii = cp(cl, cm, cq)
1705- $Tuple2(nil, [toString(ii[0]), toString(ii[1]), toString(ii[2])])
1704+@Callable(cU)
1705+func calcPricesWrapperREADONLY (cm,cn,cr) = {
1706+ let ij = cq(cm, cn, cr)
1707+ $Tuple2(nil, [toString(ij[0]), toString(ij[1]), toString(ij[2])])
17061708 }
17071709
17081710
17091711
1710-@Callable(cT)
1711-func fromX18WrapperREADONLY (M,ij) = $Tuple2(nil, L(parseBigIntValue(M), ij))
1712+@Callable(cU)
1713+func fromX18WrapperREADONLY (N,ik) = $Tuple2(nil, M(parseBigIntValue(N), ik))
17121714
17131715
17141716
1715-@Callable(cT)
1716-func toX18WrapperREADONLY (I,J) = $Tuple2(nil, toString(H(I, J)))
1717+@Callable(cU)
1718+func toX18WrapperREADONLY (J,K) = $Tuple2(nil, toString(I(J, K)))
17171719
17181720
17191721
1720-@Callable(cT)
1721-func calcPriceBigIntWrapperREADONLY (bU,bV) = $Tuple2(nil, toString(bT(parseBigIntValue(bU), parseBigIntValue(bV))))
1722+@Callable(cU)
1723+func calcPriceBigIntWrapperREADONLY (bV,bW) = $Tuple2(nil, toString(bU(parseBigIntValue(bV), parseBigIntValue(bW))))
17221724
17231725
17241726
1725-@Callable(cT)
1726-func estimatePutOperationWrapperREADONLY (di,ca,dH,dI,dJ,dK,ik,dL,dM) = $Tuple2(nil, dG(di, ca, dH, dI, dJ, dK, ik, dL, dM, true, false, 0, ""))
1727+@Callable(cU)
1728+func estimatePutOperationWrapperREADONLY (dj,cb,dI,dJ,dK,dL,il,dM,dN) = $Tuple2(nil, dH(dj, cb, dI, dJ, dK, dL, il, dM, dN, true, false, 0, ""))
17271729
17281730
17291731
1730-@Callable(cT)
1731-func estimateGetOperationWrapperREADONLY (di,il,dk,ik) = {
1732- let eb = dh(di, il, dk, addressFromStringValue(ik))
1733- $Tuple2(nil, $Tuple10(eb._1, eb._2, eb._3, eb._4, eb._5, eb._6, eb._7, toString(eb._8), eb._9, eb._10))
1732+@Callable(cU)
1733+func estimateGetOperationWrapperREADONLY (dj,im,dl,il) = {
1734+ let ec = di(dj, im, dl, addressFromStringValue(il))
1735+ $Tuple2(nil, $Tuple10(ec._1, ec._2, ec._3, ec._4, ec._5, ec._6, ec._7, toString(ec._8), ec._9, ec._10))
17341736 }
17351737
17361738
17371739
1738-@Callable(cT)
1740+@Callable(cU)
17391741 func changeAmp () = {
1740- let im = invoke(aU, "getChangeAmpConfigREADONLY", [toString(this)], nil)
1741- let in = {
1742- let gp = im
1743- if ($isInstanceOf(gp, "List[Any]"))
1742+ let in = invoke(aV, "getChangeAmpConfigREADONLY", [toString(this)], nil)
1743+ let io = {
1744+ let gq = in
1745+ if ($isInstanceOf(gq, "List[Any]"))
17441746 then {
1745- let io = gp
1747+ let ip = gq
17461748 $Tuple3({
1747- let aW = io[0]
1748- if ($isInstanceOf(aW, "Int"))
1749- then aW
1750- else throw(($getType(aW) + " couldn't be cast to Int"))
1749+ let aX = ip[0]
1750+ if ($isInstanceOf(aX, "Int"))
1751+ then aX
1752+ else throw(($getType(aX) + " couldn't be cast to Int"))
17511753 }, {
1752- let aW = io[1]
1753- if ($isInstanceOf(aW, "Int"))
1754- then aW
1755- else throw(($getType(aW) + " couldn't be cast to Int"))
1754+ let aX = ip[1]
1755+ if ($isInstanceOf(aX, "Int"))
1756+ then aX
1757+ else throw(($getType(aX) + " couldn't be cast to Int"))
17561758 }, {
1757- let aW = io[2]
1758- if ($isInstanceOf(aW, "Int"))
1759- then aW
1760- else throw(($getType(aW) + " couldn't be cast to Int"))
1759+ let aX = ip[2]
1760+ if ($isInstanceOf(aX, "Int"))
1761+ then aX
1762+ else throw(($getType(aX) + " couldn't be cast to Int"))
17611763 })
17621764 }
1763- else aR("invalid entry type")
1765+ else aS("invalid entry type")
17641766 }
1765- let ip = in._1
1766- let iq = in._2
1767- let ir = in._3
1768- let is = parseIntValue(getStringValue(al()))
1769- let it = (is + iq)
1770- let iu = if ((0 > iq))
1771- then if ((ir > it))
1772- then ir
1773- else it
1774- else if ((it > ir))
1775- then ir
1776- else it
1777- let iv = valueOrElse(getInteger(ao()), 0)
1778- let iw = (iv + ip)
1779- let gM = [if ((height > iw))
1767+ let iq = io._1
1768+ let ir = io._2
1769+ let is = io._3
1770+ let it = parseIntValue(getStringValue(am()))
1771+ let iu = (it + ir)
1772+ let iv = if ((0 > ir))
1773+ then if ((is > iu))
1774+ then is
1775+ else iu
1776+ else if ((iu > is))
1777+ then is
1778+ else iu
1779+ let iw = valueOrElse(getInteger(ap()), 0)
1780+ let ix = (iw + iq)
1781+ let gN = [if ((height > ix))
17801782 then true
1781- else aR("try again in few blocks"), if ((is != iu))
1783+ else aS("try again in few blocks"), if ((it != iv))
17821784 then true
1783- else aR("already reached target")]
1784- if ((gM == gM))
1785- then [IntegerEntry(ao(), height), StringEntry(al(), toString(iu)), StringEntry(am(height), toString(iu))]
1785+ else aS("already reached target")]
1786+ if ((gN == gN))
1787+ then [IntegerEntry(ap(), height), StringEntry(am(), toString(iv)), StringEntry(an(height), toString(iv))]
17861788 else throw("Strict value is not equal to itself.")
17871789 }
17881790
17891791
1790-@Verifier(ix)
1791-func iy () = {
1792- let iz = {
1793- let gp = go()
1794- if ($isInstanceOf(gp, "ByteVector"))
1792+@Verifier(iy)
1793+func iz () = {
1794+ let iA = {
1795+ let gq = gp()
1796+ if ($isInstanceOf(gq, "ByteVector"))
17951797 then {
1796- let gt = gp
1797- gt
1798+ let gu = gq
1799+ gu
17981800 }
1799- else if ($isInstanceOf(gp, "Unit"))
1800- then ix.senderPublicKey
1801+ else if ($isInstanceOf(gq, "Unit"))
1802+ then iy.senderPublicKey
18011803 else throw("Match error")
18021804 }
1803- let gp = ix
1804- if ($isInstanceOf(gp, "Order"))
1805+ let gq = iy
1806+ if ($isInstanceOf(gq, "Order"))
18051807 then {
1806- let fd = gp
1807- let iA = ba()
1808- let iB = if (gA())
1808+ let fe = gq
1809+ let iB = bb()
1810+ let iC = if (gB())
18091811 then $Tuple2(true, "")
1810- else fc(fd)
1811- let aJ = iB._1
1812- let aK = iB._2
1813- let aL = sigVerify(fd.bodyBytes, fd.proofs[0], fd.senderPublicKey)
1814- let aM = sigVerify(fd.bodyBytes, fd.proofs[1], iA)
1815- if (if (if (aJ)
1816- then aL
1817- else false)
1812+ else fd(fe)
1813+ let aK = iC._1
1814+ let aL = iC._2
1815+ let aM = sigVerify(fe.bodyBytes, fe.proofs[0], fe.senderPublicKey)
1816+ let aN = sigVerify(fe.bodyBytes, fe.proofs[1], iB)
1817+ if (if (if (aK)
18181818 then aM
18191819 else false)
1820+ then aN
1821+ else false)
18201822 then true
1821- else aI(aJ, aK, aL, aM)
1823+ else aJ(aK, aL, aM, aN)
18221824 }
1823- else if ($isInstanceOf(gp, "SetScriptTransaction"))
1825+ else if ($isInstanceOf(gq, "SetScriptTransaction"))
18241826 then {
1825- let cG = gp
1826- if (sigVerify(ix.bodyBytes, ix.proofs[0], iz))
1827+ let cH = gq
1828+ if (sigVerify(iy.bodyBytes, iy.proofs[0], iA))
18271829 then true
18281830 else {
1829- let iC = blake2b256(value(cG.script))
1830- let iD = fromBase64String(value(getString(aU, aE())))
1831- let iE = scriptHash(this)
1832- if ((iD == iC))
1833- then (iE != iC)
1831+ let iD = blake2b256(value(cH.script))
1832+ let iE = fromBase64String(value(getString(aV, aF())))
1833+ let iF = scriptHash(this)
1834+ if ((iE == iD))
1835+ then (iF != iD)
18341836 else false
18351837 }
18361838 }
1837- else sigVerify(ix.bodyBytes, ix.proofs[0], iz)
1839+ else sigVerify(iy.bodyBytes, iy.proofs[0], iA)
18381840 }
18391841

github/deemru/w8io/169f3d6 
745.95 ms