tx · E4JbTH1etik8Tm6bawmhHKCoR52xS4vkaSTGmzFBSynb

3MvRWw2FPEimFCTGtK7qY9uAJbM7XJ4ZfJS:  -0.22000000 Waves

2023.04.13 17:52 [2532925] smart account 3MvRWw2FPEimFCTGtK7qY9uAJbM7XJ4ZfJS > SELF 0.00000000 Waves

{ "type": 13, "id": "E4JbTH1etik8Tm6bawmhHKCoR52xS4vkaSTGmzFBSynb", "fee": 22000000, "feeAssetId": null, "timestamp": 1681397519655, "version": 2, "chainId": 84, "sender": "3MvRWw2FPEimFCTGtK7qY9uAJbM7XJ4ZfJS", "senderPublicKey": "HP8sssVq1866F7CaPQJwgFrt6fsqhQjKwM84cL1wjD2a", "proofs": [ "x3nBtjAKSEfMaAjFQjV1JeCdyFY6yDuYegu8fLu6AbAFkyryFWcczjnN7AC2z66uk2EbPXdARM6AvmZGM59Wrr7" ], "script": "base64:BgJOCAISBQoDCAEIEgMKAQgSBAoCCAESAwoBCBIOCgwICAgBBBEYGBEBARgSCgoICAgIAQQIARgSDgoMCAgIAQQYGBgYGAEYEgcKBQgIAQEBQQAHU0ZfUE9PTAICU0YAB1dYX1BPT0wCAldYAAdDQVBfRkVFAgNjYXAACExPQU5fRkVFAgRsb2FuAAtOT19MT0FOX0ZFRQIGbm9Mb2FuAAZTQ0FMRTgAgMLXLwAHU0NBTEUxMACAyK+gJQAKRkVFX1NDQUxFNgDAhD0AFGtTRlBvb2xBQXNzZXRCYWxhbmNlAg9BX2Fzc2V0X2JhbGFuY2UAFGtTRlBvb2xCQXNzZXRCYWxhbmNlAg9CX2Fzc2V0X2JhbGFuY2UAD2tTRlBvb2xBQXNzZXRJZAIKQV9hc3NldF9pZAAPa1NGUG9vbEJBc3NldElkAgpCX2Fzc2V0X2lkAA5rU0ZQb29sU2hhcmVJZAIOc2hhcmVfYXNzZXRfaWQACmtTRlBvb2xGZWUCCmNvbW1pc3Npb24ADWtVc2VyUG9zaXRpb24CDl91c2VyX3Bvc2l0aW9uABFrVXNlckJvc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M5qJEQbwNfWm9FzAkkd3nFTk Next: GYdffmNVVoYBErKVNcB3yS4uoSchwfGouQ9cwuaPd5QD Diff:
OldNewDifferences
2727
2828 let m = "share_asset_id"
2929
30-let n = "_user_position"
30+let n = "commission"
3131
32-let o = "_user_position_borrow_amount"
32+let o = "_user_position"
3333
34-let p = "_user_position_borrow_asset_id"
34+let p = "_user_position_borrow_amount"
3535
36-let q = "_user_position_type"
36+let q = "_user_position_borrow_asset_id"
3737
3838 let r = "_user_position_number"
3939
6565
6666 let F = "price_oracle"
6767
68-let G = "exchangeContract"
68+let G = "exchange_contract"
6969
70-let H = Address(fromBase58String(valueOrErrorMessage(getString(this, C), "No axly moneyBox address")))
70+let H = "wx_swap_contract"
7171
72-let I = Address(fromBase58String(valueOrErrorMessage(getString(this, G), "No exchange contract address")))
72+let I = Address(fromBase58String(valueOrErrorMessage(getString(this, C), "No axly moneyBox address")))
7373
74-let J = Address(fromBase58String(valueOrErrorMessage(getString(this, F), "No price oracle address")))
74+let J = Address(fromBase58String(valueOrErrorMessage(getString(this, G), "No exchange contract address")))
7575
76-let K = base58'4W19ndijcc2CsQa9HGW2dfXKTVXhnneWWttxXrtjPmEp'
76+let K = Address(fromBase58String(valueOrErrorMessage(getString(this, F), "No price oracle address")))
7777
78-let L = base58'EMAMLxDnv3xiz8RXg8Btj33jcEw3wLczL3JKYYmuubpc'
78+let L = Address(fromBase58String(valueOrErrorMessage(getString(this, H), "No wx swap address")))
7979
80-func M (N) = if ((N.caller == this))
80+let M = base58'4W19ndijcc2CsQa9HGW2dfXKTVXhnneWWttxXrtjPmEp'
81+
82+let N = base58'EMAMLxDnv3xiz8RXg8Btj33jcEw3wLczL3JKYYmuubpc'
83+
84+func O (P) = if ((P.caller == this))
8185 then unit
8286 else throw("Only contract itself can call this function")
8387
8488
85-func O (P) = {
86- let Q = P
87- if ($isInstanceOf(Q, "ByteVector"))
89+func Q (R) = {
90+ let S = R
91+ if ($isInstanceOf(S, "ByteVector"))
8892 then {
89- let R = Q
90- assetBalance(this, R)
93+ let T = S
94+ assetBalance(this, T)
9195 }
92- else if ($isInstanceOf(Q, "Unit"))
96+ else if ($isInstanceOf(S, "Unit"))
9397 then {
94- let S = Q
98+ let U = S
9599 wavesBalance(this).available
96100 }
97101 else throw("Match error")
98102 }
99103
100104
101-func T (U) = $Tuple5(valueOrErrorMessage(getString(U, k), "Can't get pool A asset id"), valueOrErrorMessage(getString(U, l), "Can't get pool B asset id"), valueOrErrorMessage(getInteger(U, i), "Can't get pool A asset balance"), valueOrErrorMessage(getInteger(U, j), "Can't get pool B asset balance"), valueOrErrorMessage(getString(U, m), "Can't get share asset id"))
105+func V (W) = $Tuple5(valueOrErrorMessage(getString(W, k), "Can't get pool A asset id"), valueOrErrorMessage(getString(W, l), "Can't get pool B asset id"), valueOrErrorMessage(getInteger(W, i), "Can't get pool A asset balance"), valueOrErrorMessage(getInteger(W, j), "Can't get pool B asset balance"), valueOrErrorMessage(getString(W, m), "Can't get share asset id"))
102106
103107
104-func V (U) = {
105- let W = {
106- let X = invoke(U, "getPoolConfigWrapperREADONLY", nil, nil)
107- if ($isInstanceOf(X, "List[Any]"))
108- then X
109- else throw(($getType(X) + " couldn't be cast to List[Any]"))
108+func X (W) = {
109+ let Y = {
110+ let Z = invoke(W, "getPoolConfigWrapperREADONLY", nil, nil)
111+ if ($isInstanceOf(Z, "List[Any]"))
112+ then Z
113+ else throw(($getType(Z) + " couldn't be cast to List[Any]"))
110114 }
111- if ((W == W))
115+ if ((Y == Y))
112116 then $Tuple5(valueOrErrorMessage({
113- let X = W[4]
114- if ($isInstanceOf(X, "String"))
115- then X
117+ let Z = Y[4]
118+ if ($isInstanceOf(Z, "String"))
119+ then Z
116120 else unit
117121 }, "Can't get pool A asset id"), valueOrErrorMessage({
118- let X = W[5]
119- if ($isInstanceOf(X, "String"))
120- then X
122+ let Z = Y[5]
123+ if ($isInstanceOf(Z, "String"))
124+ then Z
121125 else unit
122126 }, "Can't get pool B asset id"), 0, 0, valueOrErrorMessage({
123- let X = W[3]
124- if ($isInstanceOf(X, "String"))
125- then X
127+ let Z = Y[3]
128+ if ($isInstanceOf(Z, "String"))
129+ then Z
126130 else unit
127131 }, "Can't get pool LP asset id"))
128132 else throw("Strict value is not equal to itself.")
129133 }
130134
131135
132-func Y (U,Z) = if ((Z == a))
133- then T(U)
134- else if ((Z == b))
135- then V(U)
136+func aa (W,ab) = if ((ab == a))
137+ then V(W)
138+ else if ((ab == b))
139+ then X(W)
136140 else throw("Wrong pool type")
137141
138142
139-func aa (ab) = valueOrElse(getInteger(this, (ab + t)), 0)
143+func ac (ad) = valueOrElse(getInteger(this, (ad + t)), 0)
140144
141145
142-func ac (ab,ad) = (valueOrElse(getInteger(this, (((ab + "_") + ad) + r)), 0) + 1)
146+func ae (ad,af) = (valueOrElse(getInteger(this, (((ad + "_") + af) + r)), 0) + 1)
143147
144148
145-func ae (ab,af) = if ((af == "cap"))
146- then getIntegerValue(this, (ab + x))
147- else if ((af == "loan"))
148- then getIntegerValue(this, (ab + w))
149- else if ((af == "noLoan"))
150- then getIntegerValue(this, (ab + v))
149+func ag (ad,ah) = if ((ah == "cap"))
150+ then getIntegerValue(this, (ad + x))
151+ else if ((ah == "loan"))
152+ then getIntegerValue(this, (ad + w))
153+ else if ((ah == "noLoan"))
154+ then getIntegerValue(this, (ad + v))
151155 else throw("Wrong fee type")
152156
153157
154-func ag () = Address(fromBase58String(valueOrErrorMessage(getString(this, D), "Can't get swopfi farming addr")))
158+func ai () = Address(fromBase58String(valueOrErrorMessage(getString(this, D), "Can't get swopfi farming addr")))
155159
156160
157-func ah (U) = {
158- let ai = Address(fromBase58String(valueOrErrorMessage(getString(U, "%s__factoryContract"), "Can't get WX factory contract addr")))
159- let aj = split(valueOrErrorMessage(getString(ai, "%s__factoryConfig"), "Can't get WX factory cfg"), "__")
160- Address(fromBase58String(aj[1]))
161+func aj (W) = {
162+ let ak = Address(fromBase58String(valueOrErrorMessage(getString(W, "%s__factoryContract"), "Can't get WX factory contract addr")))
163+ let al = split(valueOrErrorMessage(getString(ak, "%s__factoryConfig"), "Can't get WX factory cfg"), "__")
164+ Address(fromBase58String(al[1]))
161165 }
162166
163167
164-func ak () = Address(fromBase58String(valueOrErrorMessage(getString(this, E), "Can't get lend service addr")))
168+func am () = Address(fromBase58String(valueOrErrorMessage(getString(this, E), "Can't get lend service addr")))
165169
166170
167-func al (P) = {
168- let Q = P
169- if ($isInstanceOf(Q, "ByteVector"))
171+func an (R) = {
172+ let S = R
173+ if ($isInstanceOf(S, "ByteVector"))
170174 then {
171- let R = Q
172- toBase58String(R)
175+ let T = S
176+ toBase58String(T)
173177 }
174- else if ($isInstanceOf(Q, "Unit"))
178+ else if ($isInstanceOf(S, "Unit"))
175179 then {
176- let S = Q
180+ let U = S
177181 "WAVES"
178182 }
179183 else throw("Match error")
180184 }
181185
182186
183-func am (P) = if ((P == "WAVES"))
187+func ao (R) = if ((R == "WAVES"))
184188 then unit
185- else fromBase58String(P)
189+ else fromBase58String(R)
186190
187191
188-func an (P) = if ((P == "WAVES"))
192+func ap (R) = if ((R == "WAVES"))
189193 then 8
190194 else {
191- let Q = assetInfo(fromBase58String(P))
192- if ($isInstanceOf(Q, "Asset"))
195+ let S = assetInfo(fromBase58String(R))
196+ if ($isInstanceOf(S, "Asset"))
193197 then {
194- let ao = Q
195- ao.decimals
198+ let aq = S
199+ aq.decimals
196200 }
197201 else throw("Can't find asset")
198202 }
199203
200204
201-func ap (ab,af,aq,ar,as,at,au,av,aw) = {
202- let ax = O(fromBase58String(aw))
203- if ((ax == ax))
205+func ar (ad,ah,as,at,au,av,aw,ax,ay) = {
206+ let az = Q(fromBase58String(ay))
207+ if ((az == az))
204208 then {
205- let U = Address(fromBase58String(ab))
206- let ay = fraction(f, aq, au)
207- let az = fraction(f, as, av)
208- let aA = if ((az > ay))
209+ let W = Address(fromBase58String(ad))
210+ let aA = fraction(f, as, aw)
211+ let aB = fraction(f, au, ax)
212+ let aC = if ((aB > aA))
209213 then {
210- let aB = fraction(av, ay, f, CEILING)
211- $Tuple4(aq, aB, (as - aB), at)
214+ let aD = fraction(ax, aA, f, CEILING)
215+ $Tuple4(as, aD, (au - aD), av)
212216 }
213217 else {
214- let aB = fraction(au, az, f, CEILING)
215- $Tuple4(aB, as, (aq - aB), ar)
218+ let aD = fraction(aw, aB, f, CEILING)
219+ $Tuple4(aD, au, (as - aD), at)
216220 }
217- let aC = aA._1
218- let aD = aA._2
219- let aE = aA._3
220- let aF = aA._4
221- let aG = if (if ((aC > 0))
222- then (aD > 0)
221+ let aE = aC._1
222+ let aF = aC._2
223+ let aG = aC._3
224+ let aH = aC._4
225+ let aI = if (if ((aE > 0))
226+ then (aF > 0)
223227 else false)
224228 then {
225- let aH = [AttachedPayment(am(ar), aC), AttachedPayment(am(at), aD)]
226- invoke(U, "callFunction", ["replenishWithTwoTokens", ["false", "0"]], aH)
229+ let aJ = [AttachedPayment(ao(at), aE), AttachedPayment(ao(av), aF)]
230+ invoke(W, "callFunction", ["replenishWithTwoTokens", ["false", "0"]], aJ)
227231 }
228232 else 0
229- if ((aG == aG))
233+ if ((aI == aI))
230234 then {
231- let aI = if ((aE > 0))
235+ let aK = if ((aG > 0))
232236 then {
233- let aH = [AttachedPayment(am(aF), aE)]
234- let aJ = ["0", "false", "0"]
235- invoke(U, "callFunction", ["replenishWithOneToken", aJ], aH)
237+ let aJ = [AttachedPayment(ao(aH), aG)]
238+ let aL = ["0", "false", "0"]
239+ invoke(W, "callFunction", ["replenishWithOneToken", aL], aJ)
236240 }
237241 else 0
238- if ((aI == aI))
242+ if ((aK == aK))
239243 then {
240- let aK = O(fromBase58String(aw))
241- let aL = (aK - ax)
242- let aM = fraction(aL, ae(ab, af), h)
243- let aN = (aL - aM)
244- if ((0 >= aN))
244+ let aM = Q(fromBase58String(ay))
245+ let aN = (aM - az)
246+ let aO = fraction(aN, ag(ad, ah), h)
247+ let aP = (aN - aO)
248+ if ((0 >= aP))
245249 then throw("amount of staked sharetokens must be > 0")
246250 else {
247- let aO = invoke(ag(), "lockShareTokens", [ab, 0], [AttachedPayment(fromBase58String(aw), aN)])
248- if ((aO == aO))
249- then $Tuple2(aN, aM)
251+ let aQ = invoke(ai(), "lockShareTokens", [ad, 0], [AttachedPayment(fromBase58String(ay), aP)])
252+ if ((aQ == aQ))
253+ then $Tuple2(aP, aO)
250254 else throw("Strict value is not equal to itself.")
251255 }
252256 }
258262 }
259263
260264
261-func aP (ab,af,aq,ar,as,at,aw) = {
262- let U = Address(fromBase58String(ab))
263- let aQ = if (if ((aq > 0))
264- then (as > 0)
265+func aR (ad,ah,as,at,au,av,ay) = {
266+ let W = Address(fromBase58String(ad))
267+ let aS = if (if ((as > 0))
268+ then (au > 0)
265269 else false)
266270 then {
267- let aR = split({
268- let X = invoke(U, "evaluatePutByAmountAssetREADONLY", [aq], nil)
269- if ($isInstanceOf(X, "String"))
270- then X
271- else throw(($getType(X) + " couldn't be cast to String"))
271+ let aT = split({
272+ let Z = invoke(W, "evaluatePutByAmountAssetREADONLY", [as], nil)
273+ if ($isInstanceOf(Z, "String"))
274+ then Z
275+ else throw(($getType(Z) + " couldn't be cast to String"))
272276 }, "__")
273- if ((aR == aR))
277+ if ((aT == aT))
274278 then {
275- let aS = split({
276- let X = invoke(U, "evaluatePutByPriceAssetREADONLY", [as], nil)
277- if ($isInstanceOf(X, "String"))
278- then X
279- else throw(($getType(X) + " couldn't be cast to String"))
279+ let aU = split({
280+ let Z = invoke(W, "evaluatePutByPriceAssetREADONLY", [au], nil)
281+ if ($isInstanceOf(Z, "String"))
282+ then Z
283+ else throw(($getType(Z) + " couldn't be cast to String"))
280284 }, "__")
281- if ((aS == aS))
285+ if ((aU == aU))
282286 then {
283- let aT = parseIntValue(aR[1])
284- let aU = parseIntValue(aS[1])
285- if ((aU > aT))
287+ let aV = parseIntValue(aT[1])
288+ let aW = parseIntValue(aU[1])
289+ if ((aW > aV))
286290 then {
287- let aV = parseIntValue(aR[8])
288- $Tuple4(aq, aV, (as - aV), at)
291+ let aX = parseIntValue(aT[8])
292+ $Tuple4(as, aX, (au - aX), av)
289293 }
290294 else {
291- let aW = parseIntValue(aS[7])
292- $Tuple4(aW, as, (aq - aW), ar)
295+ let aY = parseIntValue(aU[7])
296+ $Tuple4(aY, au, (as - aY), at)
293297 }
294298 }
295299 else throw("Strict value is not equal to itself.")
296300 }
297301 else throw("Strict value is not equal to itself.")
298302 }
299- else if ((aq > 0))
300- then $Tuple4(aq, as, aq, ar)
301- else if ((as > 0))
302- then $Tuple4(aq, as, as, at)
303+ else if ((as > 0))
304+ then $Tuple4(as, au, as, at)
305+ else if ((au > 0))
306+ then $Tuple4(as, au, au, av)
303307 else throw("pmts must be > 0")
304- let aC = aQ._1
305- let aD = aQ._2
306- let aE = aQ._3
307- let aF = aQ._4
308- let ax = O(fromBase58String(aw))
309- if ((ax == ax))
308+ let aE = aS._1
309+ let aF = aS._2
310+ let aG = aS._3
311+ let aH = aS._4
312+ let az = Q(fromBase58String(ay))
313+ if ((az == az))
310314 then {
311- let aG = if (if ((aC > 0))
312- then (aD > 0)
315+ let aI = if (if ((aE > 0))
316+ then (aF > 0)
313317 else false)
314318 then {
315- let aH = [AttachedPayment(am(ar), aC), AttachedPayment(am(at), aD)]
316- invoke(U, "put", [1000000, false], aH)
319+ let aJ = [AttachedPayment(ao(at), aE), AttachedPayment(ao(av), aF)]
320+ invoke(W, "put", [1000000, false], aJ)
317321 }
318322 else 0
319- if ((aG == aG))
323+ if ((aI == aI))
320324 then {
321- let aI = if ((aE > 0))
325+ let aK = if ((aG > 0))
322326 then {
323- let aH = [AttachedPayment(am(aF), aE)]
324- invoke(U, "putOneTkn", [0, false], aH)
327+ let aJ = [AttachedPayment(ao(aH), aG)]
328+ invoke(W, "putOneTkn", [0, false], aJ)
325329 }
326330 else 0
327- if ((aI == aI))
331+ if ((aK == aK))
328332 then {
329- let aK = O(fromBase58String(aw))
330- let aL = (aK - ax)
331- let aM = fraction(aL, ae(ab, af), h)
332- let aN = (aL - aM)
333- if ((0 >= aN))
333+ let aM = Q(fromBase58String(ay))
334+ let aN = (aM - az)
335+ let aO = fraction(aN, ag(ad, ah), h)
336+ let aP = (aN - aO)
337+ if ((0 >= aP))
334338 then throw("amount of staked sharetokens must be > 0")
335339 else {
336- let aO = invoke(ah(U), "stake", nil, [AttachedPayment(fromBase58String(aw), aN)])
337- if ((aO == aO))
338- then $Tuple2(aN, aM)
340+ let aQ = invoke(aj(W), "stake", nil, [AttachedPayment(fromBase58String(ay), aP)])
341+ if ((aQ == aQ))
342+ then $Tuple2(aP, aO)
339343 else throw("Strict value is not equal to itself.")
340344 }
341345 }
347351 }
348352
349353
350-func aX (ab,ad,aY,aM,aZ,aw,Z) = {
351- let ba = aa(ab)
352- let bb = getIntegerValue(this, (ab + u))
353-[IntegerEntry((ab + t), (ba + aY)), IntegerEntry((((((ab + "_") + ad) + "_") + toString(aZ)) + n), aY), StringEntry((((((ab + "_") + ad) + "_") + toString(aZ)) + q), Z), IntegerEntry((((((ab + "_") + ad) + "_") + toString(aZ)) + s), bb), IntegerEntry((((ab + "_") + ad) + r), aZ), ScriptTransfer(H, aM, fromBase58String(aw))]
354+func aZ (ad,af,ba,aO,bb,ay,ab) = {
355+ let bc = ac(ad)
356+ let bd = getIntegerValue(this, (ad + u))
357+[IntegerEntry((ad + t), (bc + ba)), IntegerEntry((((((ad + "_") + af) + "_") + toString(bb)) + o), ba), IntegerEntry((((((ad + "_") + af) + "_") + toString(bb)) + s), bd), IntegerEntry((((ad + "_") + af) + r), bb), ScriptTransfer(I, aO, fromBase58String(ay))]
354358 }
355359
356360
357-func bc (Z,ab) = if ((Z == a))
361+func be (ab,ad) = if ((ab == a))
358362 then {
359- let bd = O(K)
360- if ((bd == bd))
363+ let bf = Q(M)
364+ if ((bf == bf))
361365 then {
362- let be = invoke(ag(), "claim", [ab], nil)
363- if ((be == be))
366+ let bg = invoke(ai(), "claim", [ad], nil)
367+ if ((bg == bg))
364368 then {
365- let bf = O(K)
366- $Tuple2((bf - bd), K)
369+ let bh = Q(M)
370+ $Tuple2((bh - bf), M)
367371 }
368372 else throw("Strict value is not equal to itself.")
369373 }
370374 else throw("Strict value is not equal to itself.")
371375 }
372- else if ((Z == b))
376+ else if ((ab == b))
373377 then {
374- let bd = O(L)
375- if ((bd == bd))
378+ let bf = Q(N)
379+ if ((bf == bf))
376380 then {
377- let be = invoke(ah(Address(fromBase58String(ab))), "claimWX", [ab], nil)
378- if ((be == be))
381+ let bg = invoke(aj(Address(fromBase58String(ad))), "claimWX", [ad], nil)
382+ if ((bg == bg))
379383 then {
380- let bf = O(L)
381- $Tuple2((bf - bd), L)
384+ let bh = Q(N)
385+ $Tuple2((bh - bf), N)
382386 }
383387 else throw("Strict value is not equal to itself.")
384388 }
387391 else throw("Wrong pool type")
388392
389393
390-func bg (bh,bi,bj,bk,bl,bm,bn,bo,bp,bq) = {
391- let br = O(am(bh))
392- if ((br == br))
394+func bi (bj,bk,bl,bm,bn,bo,bp,bq,br,bs) = {
395+ let bt = Q(ao(bj))
396+ if ((bt == bt))
393397 then {
394- let be = invoke(I, "swap", [bk, bl, bm, bn, bo, bp, bq], [AttachedPayment(bj, bi)])
395- if ((be == be))
396- then (O(am(bh)) - br)
398+ let bg = invoke(J, "swap", [bm, bn, bo, bp, bq, br, bs], [AttachedPayment(bl, bk)])
399+ if ((bg == bg))
400+ then (Q(ao(bj)) - bt)
397401 else throw("Strict value is not equal to itself.")
398402 }
399403 else throw("Strict value is not equal to itself.")
400404 }
401405
402406
403-func bs (bh,bi,bj,bt,bu,bq) = {
404- let br = O(am(bh))
405- if ((br == br))
407+func bu (bj,bk,bl,bv,bw,bs) = {
408+ let bt = Q(ao(bj))
409+ if ((bt == bt))
406410 then {
407- let be = invoke(I, "puzzleSwap", [bt, bu, bq], [AttachedPayment(bj, bi)])
408- if ((be == be))
409- then (O(am(bh)) - br)
411+ let bg = invoke(J, "puzzleSwap", [bv, bw, bs], [AttachedPayment(bl, bk)])
412+ if ((bg == bg))
413+ then (Q(ao(bj)) - bt)
410414 else throw("Strict value is not equal to itself.")
411415 }
412416 else throw("Strict value is not equal to itself.")
413417 }
414418
415419
416-func bv (bh,bi,bj,bw,bx,by,bz,bA,bB,bq) = {
417- let br = O(am(bh))
418- if ((br == br))
420+func bx (bj,bk,bl,by,bz,bA,bB,bC,bD,bs) = {
421+ let bt = Q(ao(bj))
422+ if ((bt == bt))
419423 then {
420- let be = invoke(I, "swopfiSwap", [bw, bx, by, bz, bA, bB, bq], [AttachedPayment(bj, bi)])
421- if ((be == be))
422- then (O(am(bh)) - br)
424+ let bg = invoke(J, "swopfiSwap", [by, bz, bA, bB, bC, bD, bs], [AttachedPayment(bl, bk)])
425+ if ((bg == bg))
426+ then (Q(ao(bj)) - bt)
423427 else throw("Strict value is not equal to itself.")
424428 }
425429 else throw("Strict value is not equal to itself.")
426430 }
427431
428432
429-func bC (ab,Z,bD,bE) = {
430- let U = Address(fromBase58String(ab))
431- let bF = Y(U, Z)
432- let bG = bF._1
433- let bH = bF._2
434- let au = bF._3
435- let av = bF._4
436- let aw = bF._5
437- let bI = if ((bD == bG))
438- then $Tuple2(bE, 0)
439- else $Tuple2(0, bE)
440- let aq = bI._1
441- let as = bI._2
442- let bJ = if ((Z == a))
443- then ap(ab, c, aq, bG, as, bH, au, av, aw)
444- else aP(ab, c, aq, bG, as, bH, aw)
445- let aY = bJ._1
446- let bK = bJ._2
447- let bb = valueOrElse(getInteger(this, (ab + u)), 0)
448- let bL = aa(ab)
449- let bM = (bb + fraction(aY, g, bL))
450-[IntegerEntry((ab + u), bM), ScriptTransfer(H, bK, fromBase58String(aw))]
433+func bE (ad,ab,bF,bG) = {
434+ let W = Address(fromBase58String(ad))
435+ let bH = aa(W, ab)
436+ let bI = bH._1
437+ let bJ = bH._2
438+ let aw = bH._3
439+ let ax = bH._4
440+ let ay = bH._5
441+ let bK = if ((bF == bI))
442+ then $Tuple2(bG, 0)
443+ else $Tuple2(0, bG)
444+ let as = bK._1
445+ let au = bK._2
446+ let bL = if ((ab == a))
447+ then ar(ad, c, as, bI, au, bJ, aw, ax, ay)
448+ else aR(ad, c, as, bI, au, bJ, ay)
449+ let ba = bL._1
450+ let bM = bL._2
451+ let bd = valueOrElse(getInteger(this, (ad + u)), 0)
452+ let bN = ac(ad)
453+ let bO = (bd + fraction(ba, g, bN))
454+[IntegerEntry((ad + u), bO), ScriptTransfer(I, bM, fromBase58String(ay))]
451455 }
452456
453457
454-@Callable(N)
455-func replenish (ab,bN,bO) = if (if ((100 > bN))
458+func bP (ad,bQ,bR,aw,ax,bS,bT) = {
459+ let W = Address(fromBase58String(ad))
460+ let bU = 1000000
461+ let bV = getIntegerValue(W, n)
462+ let bW = fraction(bS, bU, (bU - bV))
463+ let bX = if ((bT == bQ))
464+ then {
465+ let bY = fraction(aw, bW, (ax - bW))
466+ $Tuple2(bY, bR)
467+ }
468+ else {
469+ let bY = fraction(ax, bW, (aw - bW))
470+ $Tuple2(bY, bQ)
471+ }
472+ let bY = bX._1
473+ let bZ = bX._2
474+ invoke(W, "callFunction", ["exchange", "1"], [AttachedPayment(ao(bZ), bY)])
475+ }
476+
477+
478+func ca (ad,bQ,bR,aw,ax,bS,bT) = {
479+ let W = Address(fromBase58String(ad))
480+ let cb = getIntegerValue(L, "%s__protocolFee")
481+ let cc = getIntegerValue(L, "%s__poolFee")
482+ let cd = toBigInt(100000000)
483+ let ce = if ((bT == bQ))
484+ then {
485+ let bY = fraction(aw, bS, (ax - bS))
486+ $Tuple2(bY, bR)
487+ }
488+ else {
489+ let bY = fraction(ax, bS, (aw - bS))
490+ $Tuple2(bY, bQ)
491+ }
492+ let bY = ce._1
493+ let bZ = ce._2
494+ let cf = toInt(fraction(toBigInt(bY), cd, (cd - toBigInt((cb + cc)))))
495+ invoke(L, "swap", [1, bT, toString(this)], [AttachedPayment(ao(bZ), cf)])
496+ }
497+
498+
499+func cg (ab,ad,bQ,bR,aw,ax,bS,bT) = if ((ab == a))
500+ then bP(ad, bQ, bR, aw, ax, bS, bT)
501+ else ca(ad, bQ, bR, aw, ax, bS, bT)
502+
503+
504+@Callable(P)
505+func replenish (ad,ch,ci) = if (if ((100 > ch))
456506 then true
457- else (bN > 300))
507+ else (ch > 300))
458508 then throw("Leverage can't be <100 and >300")
459509 else {
460- let Z = valueOrErrorMessage(getString(this, (A + ab)), "Pool is not inited")
461- let bP = Y(Address(fromBase58String(ab)), Z)
462- let bG = bP._1
463- let bH = bP._2
464- let au = bP._3
465- let av = bP._4
466- let aw = bP._5
467- let bQ = if ((size(N.payments) == 2))
468- then if ((al(N.payments[0].assetId) != bG))
510+ let ab = valueOrErrorMessage(getString(this, (A + ad)), "Pool is not inited")
511+ let cj = aa(Address(fromBase58String(ad)), ab)
512+ let bI = cj._1
513+ let bJ = cj._2
514+ let aw = cj._3
515+ let ax = cj._4
516+ let ay = cj._5
517+ let ck = if ((size(P.payments) == 2))
518+ then if ((an(P.payments[0].assetId) != bI))
469519 then throw("Wrong payment asset A")
470- else if ((al(N.payments[1].assetId) != bH))
520+ else if ((an(P.payments[1].assetId) != bJ))
471521 then throw("Wrong payment asset B")
472- else $Tuple4(N.payments[0].amount, bG, N.payments[1].amount, bH)
473- else if ((size(N.payments) == 1))
474- then if ((al(N.payments[0].assetId) == bG))
475- then $Tuple4(N.payments[0].amount, bG, 0, bH)
476- else if ((al(N.payments[0].assetId) == bH))
477- then $Tuple4(0, bG, N.payments[0].amount, bH)
522+ else $Tuple4(P.payments[0].amount, bI, P.payments[1].amount, bJ)
523+ else if ((size(P.payments) == 1))
524+ then if ((an(P.payments[0].assetId) == bI))
525+ then $Tuple4(P.payments[0].amount, bI, 0, bJ)
526+ else if ((an(P.payments[0].assetId) == bJ))
527+ then $Tuple4(0, bI, P.payments[0].amount, bJ)
478528 else throw("Wrong payment")
479529 else throw("One or two payments expected")
480- let aq = bQ._1
481- let ar = bQ._2
482- let as = bQ._3
483- let at = bQ._4
484- let bR = ac(ab, toString(N.caller))
485- if ((bN > 100))
530+ let as = ck._1
531+ let at = ck._2
532+ let au = ck._3
533+ let av = ck._4
534+ let cl = ae(ad, toString(P.caller))
535+ if ((ch > 100))
486536 then {
487- let bS = ( let X = invoke(J, "getTWAP60", [ar, false], nil)
488- if ($isInstanceOf(X, "(Int, Int)"))
489- then X
490- else throw(($getType(X) + " couldn't be cast to (Int, Int)")))._1
491- let bT = ( let X = invoke(J, "getTWAP60", [at, false], nil)
492- if ($isInstanceOf(X, "(Int, Int)"))
493- then X
494- else throw(($getType(X) + " couldn't be cast to (Int, Int)")))._1
495- let bU = (fraction(bS, aq, pow(10, 0, an(ar), 0, 0, DOWN)) + fraction(bT, as, pow(10, 0, an(at), 0, 0, DOWN)))
496- let bV = fraction(bU, (bN - 100), 100)
497- let bW = makeString([Z, toString(N.caller), ab, toString(aq), ar, toString(as), at, toString(au), toString(av), aw, bO, toString(bV), toString(bR)], ",")
498- let bX = {
499- let X = invoke(this, "createNewRequest", [bW], nil)
500- if ($isInstanceOf(X, "Int"))
501- then X
502- else unit
537+ let cm = ( let Z = invoke(K, "getTWAP60", [at, false], nil)
538+ if ($isInstanceOf(Z, "(Int, Int)"))
539+ then Z
540+ else throw(($getType(Z) + " couldn't be cast to (Int, Int)")))._1
541+ let cn = ( let Z = invoke(K, "getTWAP60", [av, false], nil)
542+ if ($isInstanceOf(Z, "(Int, Int)"))
543+ then Z
544+ else throw(($getType(Z) + " couldn't be cast to (Int, Int)")))._1
545+ let co = (fraction(cm, as, pow(10, 0, ap(at), 0, 0, DOWN)) + fraction(cn, au, pow(10, 0, ap(av), 0, 0, DOWN)))
546+ let cp = fraction(co, (ch - 100), 100)
547+ let cq = makeString([ab, toString(P.caller), ad, toString(as), at, toString(au), av, toString(aw), toString(ax), ay, ci, toString(cp), toString(cl)], ",")
548+ let cr = {
549+ let Z = invoke(this, "createNewRequest", [cq], nil)
550+ if ($isInstanceOf(Z, "Int"))
551+ then Z
552+ else throw(($getType(Z) + " couldn't be cast to Int"))
503553 }
504- if ((bX == bX))
554+ if ((cr == cr))
505555 then {
506- let bY = [((toString(N.caller) + "_") + toString(bR)), aw, bO, bV, toString(this), "replenishFromLand", toString(valueOrErrorMessage(bX, "Can't create new request"))]
507- let be = reentrantInvoke(ak(), "flashPosition", bY, nil)
508- if ((be == be))
556+ let cs = [((toString(P.caller) + "_") + toString(cl)), ay, ci, cp, toString(this), "replenishFromLand", toString(valueOrErrorMessage(cr, "Can't create new request"))]
557+ let bg = reentrantInvoke(am(), "flashPosition", cs, nil)
558+ if ((bg == bg))
509559 then nil
510560 else throw("Strict value is not equal to itself.")
511561 }
512562 else throw("Strict value is not equal to itself.")
513563 }
514564 else {
515- let bZ = if ((Z == a))
516- then ap(ab, e, aq, ar, as, at, au, av, aw)
517- else aP(ab, e, aq, ar, as, at, aw)
518- let ca = bZ._1
519- let bK = bZ._2
520- aX(ab, toString(N.caller), ca, bK, bR, aw, Z)
565+ let ct = if ((ab == a))
566+ then ar(ad, e, as, at, au, av, aw, ax, ay)
567+ else aR(ad, e, as, at, au, av, ay)
568+ let cu = ct._1
569+ let bM = ct._2
570+ aZ(ad, toString(P.caller), cu, bM, cl, ay, ab)
521571 }
522572 }
523573
524574
525575
526-@Callable(N)
527-func replenishFromLand (cb) = {
528- let bW = split(valueOrErrorMessage(getString(this, (cb + y)), ("No request with id " + cb)), ",")
529- if ((size(N.payments) != 1))
576+@Callable(P)
577+func replenishFromLand (cv) = {
578+ let cq = split(valueOrErrorMessage(getString(this, (cv + y)), ("No request with id " + cv)), ",")
579+ if ((size(P.payments) != 1))
530580 then throw("Wrong payment size")
531- else if (if ((al(N.payments[0].assetId) != bW[10]))
581+ else if (if ((an(P.payments[0].assetId) != cq[10]))
532582 then true
533- else (N.payments[0].amount != parseIntValue(bW[11])))
583+ else (P.payments[0].amount != parseIntValue(cq[11])))
534584 then throw("Wrong payment")
535585 else {
536- let aq = if ((bW[4] == al(N.payments[0].assetId)))
537- then (parseIntValue(bW[3]) + N.payments[0].amount)
538- else parseIntValue(bW[3])
539- let as = if ((bW[6] == al(N.payments[0].assetId)))
540- then (parseIntValue(bW[5]) + N.payments[0].amount)
541- else parseIntValue(bW[3])
542- let ab = bW[2]
543- let ad = bW[1]
544- let aw = bW[9]
545- let aZ = parseIntValue(bW[12])
546- let cc = if ((bW[0] == a))
547- then ap(ab, d, aq, bW[4], as, bW[6], parseIntValue(bW[7]), parseIntValue(bW[8]), aw)
548- else if ((bW[0] == b))
549- then aP(ab, d, aq, bW[4], as, bW[6], aw)
586+ let as = if ((cq[4] == an(P.payments[0].assetId)))
587+ then (parseIntValue(cq[3]) + P.payments[0].amount)
588+ else parseIntValue(cq[3])
589+ let au = if ((cq[6] == an(P.payments[0].assetId)))
590+ then (parseIntValue(cq[5]) + P.payments[0].amount)
591+ else parseIntValue(cq[3])
592+ let ad = cq[2]
593+ let af = cq[1]
594+ let ay = cq[9]
595+ let bb = parseIntValue(cq[12])
596+ let cw = if ((cq[0] == a))
597+ then ar(ad, d, as, cq[4], au, cq[6], parseIntValue(cq[7]), parseIntValue(cq[8]), ay)
598+ else if ((cq[0] == b))
599+ then aR(ad, d, as, cq[4], au, cq[6], ay)
550600 else throw("Wrong request type")
551- let ca = cc._1
552- let bK = cc._2
553- let cd = [IntegerEntry((((((bW[2] + "_") + bW[1]) + "_") + bW[12]) + o), N.payments[0].amount), StringEntry((((((bW[2] + "_") + bW[1]) + "_") + bW[12]) + p), bW[10])]
554- let ce = aX(ab, ad, ca, bK, aZ, aw, bW[0])
555- $Tuple2(((ce ++ cd) :+ DeleteEntry((cb + y))), ca)
601+ let cu = cw._1
602+ let bM = cw._2
603+ let cx = [IntegerEntry((((((cq[2] + "_") + cq[1]) + "_") + cq[12]) + p), P.payments[0].amount), StringEntry((((((cq[2] + "_") + cq[1]) + "_") + cq[12]) + q), cq[10])]
604+ let cy = aZ(ad, af, cu, bM, bb, ay, cq[0])
605+ $Tuple2(((cy ++ cx) :+ DeleteEntry((cv + y))), cu)
556606 }
557607 }
558608
559609
560610
561-@Callable(N)
562-func withdraw (ab,cf) = {
563- let ad = toString(N.caller)
564- let cg = valueOrErrorMessage(getString(this, (((((ab + "_") + ad) + "_") + toString(cf)) + q)), "Can't find position")
565- let ch = getIntegerValue(this, (((((ab + "_") + ad) + "_") + toString(cf)) + n))
566- let ci = getIntegerValue(this, (((((ab + "_") + ad) + "_") + toString(cf)) + s))
567- let cj = getIntegerValue(this, (ab + u))
568- let ck = getIntegerValue(this, (ab + t))
569- let cl = (ch + fraction(ch, (cj - ci), g))
570- let U = Address(fromBase58String(ab))
571- let cm = Address(fromBase58String(ad))
572- let bV = getIntegerValue(this, (((((ab + "_") + ad) + "_") + toString(cf)) + o))
573- let cn = getStringValue(this, (((((ab + "_") + ad) + "_") + toString(cf)) + p))
574- let co = Y(Address(fromBase58String(ab)), cg)
575- let cp = co._1
576- let cq = co._2
577- let au = co._3
578- let av = co._4
579- let aw = co._5
580- let cr = O(am(cp))
581- if ((cr == cr))
611+@Callable(P)
612+func withdraw (ad,cz) = {
613+ let af = toString(P.caller)
614+ let cA = valueOrErrorMessage(getString(this, (A + ad)), "Unknown pool")
615+ let cB = valueOrErrorMessage(getInteger(this, (((((ad + "_") + af) + "_") + toString(cz)) + o)), "Unknown position")
616+ let cC = getIntegerValue(this, (((((ad + "_") + af) + "_") + toString(cz)) + s))
617+ let cD = getIntegerValue(this, (ad + u))
618+ let cE = ac(ad)
619+ let cF = (cB + fraction(cB, (cD - cC), g))
620+ let W = Address(fromBase58String(ad))
621+ let cG = Address(fromBase58String(af))
622+ let cp = getIntegerValue(this, (((((ad + "_") + af) + "_") + toString(cz)) + p))
623+ let cH = getStringValue(this, (((((ad + "_") + af) + "_") + toString(cz)) + q))
624+ let cI = aa(Address(fromBase58String(ad)), cA)
625+ let bQ = cI._1
626+ let bR = cI._2
627+ let aw = cI._3
628+ let ax = cI._4
629+ let ay = cI._5
630+ let cJ = Q(ao(bQ))
631+ if ((cJ == cJ))
582632 then {
583- let cs = O(am(cq))
584- if ((cs == cs))
633+ let cK = Q(ao(bR))
634+ if ((cK == cK))
585635 then {
586- let be = if ((cg == a))
587- then invoke(U, "callFunction", ["withdraw", [toString(cl)]], nil)
588- else if ((cg == b))
589- then invoke(U, "unstakeAndGet", [cl], nil)
636+ let bg = if ((cA == a))
637+ then invoke(W, "callFunction", ["withdraw", [toString(cF)]], nil)
638+ else if ((cA == b))
639+ then invoke(W, "unstakeAndGet", [cF], nil)
590640 else throw("Wrong position type")
591- if ((be == be))
641+ if ((bg == bg))
592642 then {
593- let ct = O(am(cp))
594- let cu = O(am(cq))
595- let cv = $Tuple2((ct - cr), (cu - cs))
596- let cw = cv._1
597- let cx = cv._2
598-[DeleteEntry((((((ab + "_") + ad) + "_") + toString(cf)) + q)), DeleteEntry((((((ab + "_") + ad) + "_") + toString(cf)) + n)), DeleteEntry((((((ab + "_") + ad) + "_") + toString(cf)) + s)), IntegerEntry((ab + t), (ck - cl)), ScriptTransfer(cm, cw, am(cp)), ScriptTransfer(cm, cx, am(cq))]
643+ let cL = Q(ao(bQ))
644+ let cM = Q(ao(bR))
645+ let cN = $Tuple2((cL - cJ), (cM - cK))
646+ let cO = cN._1
647+ let cP = cN._2
648+ let cQ = if ((cp > 0))
649+ then {
650+ let cR = {
651+ let Z = invoke(am(), "getAssetDebt", [false, ((((ad + "_") + af) + "_") + toString(cz)), cH], nil)
652+ if ($isInstanceOf(Z, "Int"))
653+ then Z
654+ else throw(($getType(Z) + " couldn't be cast to Int"))
655+ }
656+ let cS = if (if ((cH == bQ))
657+ then (cR > cO)
658+ else false)
659+ then (cR - cO)
660+ else if (if ((cH == bR))
661+ then (cR > cP)
662+ else false)
663+ then (cR - cP)
664+ else 0
665+ let cT = if ((cS > 0))
666+ then cg(cA, ad, bQ, bR, aw, ax, cS, cH)
667+ else 0
668+ if ((cT == cT))
669+ then {
670+ let cU = invoke(am(), "repay", [((af + "_") + toString(cz))], [AttachedPayment(ao(cH), cR)])
671+ if ((cU == cU))
672+ then {
673+ let cV = Q(ao(bQ))
674+ let cW = Q(ao(bR))
675+ $Tuple2((cV - cJ), (cW - cK))
676+ }
677+ else throw("Strict value is not equal to itself.")
678+ }
679+ else throw("Strict value is not equal to itself.")
680+ }
681+ else $Tuple2(cO, cP)
682+ let cX = cQ._1
683+ let cY = cQ._2
684+[DeleteEntry((((((ad + "_") + af) + "_") + toString(cz)) + o)), DeleteEntry((((((ad + "_") + af) + "_") + toString(cz)) + s)), IntegerEntry((ad + t), (cE - cF)), ScriptTransfer(cG, cO, ao(bQ)), ScriptTransfer(cG, cP, ao(bR))]
599685 }
600686 else throw("Strict value is not equal to itself.")
601687 }
606692
607693
608694
609-@Callable(N)
610-func createNewRequest (cy) = valueOrElse(M(N), {
611- let bX = (valueOrElse(getInteger(this, z), 0) + 1)
612- $Tuple2([StringEntry((toString(bX) + y), cy), IntegerEntry(z, bX)], bX)
695+@Callable(P)
696+func createNewRequest (cZ) = valueOrElse(O(P), {
697+ let cr = (valueOrElse(getInteger(this, z), 0) + 1)
698+ $Tuple2([StringEntry((toString(cr) + y), cZ), IntegerEntry(z, cr)], cr)
613699 })
614700
615701
616702
617-@Callable(N)
618-func capitalizeExKeeper (ab,Z,cz,cA,cB,bk,bl,bm,bn,bo,bp,bq) = {
619- let cC = if (cB)
620- then bc(Z, ab)
703+@Callable(P)
704+func capitalizeExKeeper (ad,ab,da,db,dc,bm,bn,bo,bp,bq,br,bs) = {
705+ let dd = if (dc)
706+ then be(ab, ad)
621707 else {
622- let cD = if ((Z == a))
623- then K
624- else L
625- $Tuple2(cA, cD)
708+ let de = if ((ab == a))
709+ then M
710+ else N
711+ $Tuple2(db, de)
626712 }
627- let cE = cC._1
628- let cD = cC._2
629- let cF = bg(cz, cA, cD, bk, bl, bm, bn, bo, bp, bq)
630- let aE = (cE - cA)
631- let cG = if ((aE > 0))
632- then [IntegerEntry((ab + B), (aE + valueOrElse(getInteger(this, (ab + B)), 0)))]
713+ let df = dd._1
714+ let de = dd._2
715+ let dg = bi(da, db, de, bm, bn, bo, bp, bq, br, bs)
716+ let aG = (df - db)
717+ let dh = if ((aG > 0))
718+ then [IntegerEntry((ad + B), (aG + valueOrElse(getInteger(this, (ad + B)), 0)))]
633719 else nil
634- (bC(ab, Z, cz, cF) ++ cG)
720+ (bE(ad, ab, da, dg) ++ dh)
635721 }
636722
637723
638724
639-@Callable(N)
640-func capitalizeExPazzle (ab,Z,cz,cA,cB,bt,bu,bq) = {
641- let cH = if (cB)
642- then bc(Z, ab)
725+@Callable(P)
726+func capitalizeExPazzle (ad,ab,da,db,dc,bv,bw,bs) = {
727+ let di = if (dc)
728+ then be(ab, ad)
643729 else {
644- let cD = if ((Z == a))
645- then K
646- else L
647- $Tuple2(cA, cD)
730+ let de = if ((ab == a))
731+ then M
732+ else N
733+ $Tuple2(db, de)
648734 }
649- let cE = cH._1
650- let cD = cH._2
651- let cF = bs(cz, cA, cD, bt, bu, bq)
652- let aE = (cE - cA)
653- let cG = if ((aE > 0))
654- then [IntegerEntry((ab + B), (aE + valueOrElse(getInteger(this, (ab + B)), 0)))]
735+ let df = di._1
736+ let de = di._2
737+ let dg = bu(da, db, de, bv, bw, bs)
738+ let aG = (df - db)
739+ let dh = if ((aG > 0))
740+ then [IntegerEntry((ad + B), (aG + valueOrElse(getInteger(this, (ad + B)), 0)))]
655741 else nil
656- (bC(ab, Z, cz, cF) ++ cG)
742+ (bE(ad, ab, da, dg) ++ dh)
657743 }
658744
659745
660746
661-@Callable(N)
662-func capitalizeExSwopFi (ab,Z,cz,cA,cB,bw,bx,by,bz,bA,bB,bq) = {
663- let cI = if (cB)
664- then bc(Z, ab)
747+@Callable(P)
748+func capitalizeExSwopFi (ad,ab,da,db,dc,by,bz,bA,bB,bC,bD,bs) = {
749+ let dj = if (dc)
750+ then be(ab, ad)
665751 else {
666- let cD = if ((Z == a))
667- then K
668- else L
669- $Tuple2(cA, cD)
752+ let de = if ((ab == a))
753+ then M
754+ else N
755+ $Tuple2(db, de)
670756 }
671- let cE = cI._1
672- let cD = cI._2
673- let cF = bv(cz, cA, cD, bw, bx, by, bz, bA, bB, bq)
674- let aE = (cE - cA)
675- let cG = if ((aE > 0))
676- then [IntegerEntry((ab + B), (aE + valueOrElse(getInteger(this, (ab + B)), 0)))]
757+ let df = dj._1
758+ let de = dj._2
759+ let dg = bx(da, db, de, by, bz, bA, bB, bC, bD, bs)
760+ let aG = (df - db)
761+ let dh = if ((aG > 0))
762+ then [IntegerEntry((ad + B), (aG + valueOrElse(getInteger(this, (ad + B)), 0)))]
677763 else nil
678- (bC(ab, Z, cz, cF) ++ cG)
764+ (bE(ad, ab, da, dg) ++ dh)
679765 }
680766
681767
682768
683-@Callable(N)
684-func initNewPool (Z,U,cJ,cK,cL) = if (if ((Z != a))
685- then (Z != b)
769+@Callable(P)
770+func initNewPool (ab,W,dk,dl,dm) = if (if ((ab != a))
771+ then (ab != b)
686772 else false)
687773 then throw("Wrong type")
688- else [IntegerEntry((U + v), cJ), IntegerEntry((U + w), cK), IntegerEntry((U + x), cL), IntegerEntry((U + u), 0), StringEntry((A + U), Z)]
774+ else [IntegerEntry((W + v), dk), IntegerEntry((W + w), dl), IntegerEntry((W + x), dm), IntegerEntry((W + u), 0), StringEntry((A + W), ab)]
689775
690776
691-@Verifier(cM)
692-func cN () = sigVerify(cM.bodyBytes, cM.proofs[0], cM.senderPublicKey)
777+@Verifier(dn)
778+func do () = sigVerify(dn.bodyBytes, dn.proofs[0], dn.senderPublicKey)
693779
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = "SF"
55
66 let b = "WX"
77
88 let c = "cap"
99
1010 let d = "loan"
1111
1212 let e = "noLoan"
1313
1414 let f = 100000000
1515
1616 let g = 10000000000
1717
1818 let h = 1000000
1919
2020 let i = "A_asset_balance"
2121
2222 let j = "B_asset_balance"
2323
2424 let k = "A_asset_id"
2525
2626 let l = "B_asset_id"
2727
2828 let m = "share_asset_id"
2929
30-let n = "_user_position"
30+let n = "commission"
3131
32-let o = "_user_position_borrow_amount"
32+let o = "_user_position"
3333
34-let p = "_user_position_borrow_asset_id"
34+let p = "_user_position_borrow_amount"
3535
36-let q = "_user_position_type"
36+let q = "_user_position_borrow_asset_id"
3737
3838 let r = "_user_position_number"
3939
4040 let s = "_user_position_interest"
4141
4242 let t = "_pool_total"
4343
4444 let u = "_pool_interest"
4545
4646 let v = "_axly_fee_without_loan"
4747
4848 let w = "_axly_fee_with_loan"
4949
5050 let x = "_axly_fee_cap"
5151
5252 let y = "_request_id"
5353
5454 let z = "requests_iter"
5555
5656 let A = "pool_"
5757
5858 let B = "_pool_cap_change"
5959
6060 let C = "axly_money_box"
6161
6262 let D = "swopfi_farming_addr"
6363
6464 let E = "lend_service_addr"
6565
6666 let F = "price_oracle"
6767
68-let G = "exchangeContract"
68+let G = "exchange_contract"
6969
70-let H = Address(fromBase58String(valueOrErrorMessage(getString(this, C), "No axly moneyBox address")))
70+let H = "wx_swap_contract"
7171
72-let I = Address(fromBase58String(valueOrErrorMessage(getString(this, G), "No exchange contract address")))
72+let I = Address(fromBase58String(valueOrErrorMessage(getString(this, C), "No axly moneyBox address")))
7373
74-let J = Address(fromBase58String(valueOrErrorMessage(getString(this, F), "No price oracle address")))
74+let J = Address(fromBase58String(valueOrErrorMessage(getString(this, G), "No exchange contract address")))
7575
76-let K = base58'4W19ndijcc2CsQa9HGW2dfXKTVXhnneWWttxXrtjPmEp'
76+let K = Address(fromBase58String(valueOrErrorMessage(getString(this, F), "No price oracle address")))
7777
78-let L = base58'EMAMLxDnv3xiz8RXg8Btj33jcEw3wLczL3JKYYmuubpc'
78+let L = Address(fromBase58String(valueOrErrorMessage(getString(this, H), "No wx swap address")))
7979
80-func M (N) = if ((N.caller == this))
80+let M = base58'4W19ndijcc2CsQa9HGW2dfXKTVXhnneWWttxXrtjPmEp'
81+
82+let N = base58'EMAMLxDnv3xiz8RXg8Btj33jcEw3wLczL3JKYYmuubpc'
83+
84+func O (P) = if ((P.caller == this))
8185 then unit
8286 else throw("Only contract itself can call this function")
8387
8488
85-func O (P) = {
86- let Q = P
87- if ($isInstanceOf(Q, "ByteVector"))
89+func Q (R) = {
90+ let S = R
91+ if ($isInstanceOf(S, "ByteVector"))
8892 then {
89- let R = Q
90- assetBalance(this, R)
93+ let T = S
94+ assetBalance(this, T)
9195 }
92- else if ($isInstanceOf(Q, "Unit"))
96+ else if ($isInstanceOf(S, "Unit"))
9397 then {
94- let S = Q
98+ let U = S
9599 wavesBalance(this).available
96100 }
97101 else throw("Match error")
98102 }
99103
100104
101-func T (U) = $Tuple5(valueOrErrorMessage(getString(U, k), "Can't get pool A asset id"), valueOrErrorMessage(getString(U, l), "Can't get pool B asset id"), valueOrErrorMessage(getInteger(U, i), "Can't get pool A asset balance"), valueOrErrorMessage(getInteger(U, j), "Can't get pool B asset balance"), valueOrErrorMessage(getString(U, m), "Can't get share asset id"))
105+func V (W) = $Tuple5(valueOrErrorMessage(getString(W, k), "Can't get pool A asset id"), valueOrErrorMessage(getString(W, l), "Can't get pool B asset id"), valueOrErrorMessage(getInteger(W, i), "Can't get pool A asset balance"), valueOrErrorMessage(getInteger(W, j), "Can't get pool B asset balance"), valueOrErrorMessage(getString(W, m), "Can't get share asset id"))
102106
103107
104-func V (U) = {
105- let W = {
106- let X = invoke(U, "getPoolConfigWrapperREADONLY", nil, nil)
107- if ($isInstanceOf(X, "List[Any]"))
108- then X
109- else throw(($getType(X) + " couldn't be cast to List[Any]"))
108+func X (W) = {
109+ let Y = {
110+ let Z = invoke(W, "getPoolConfigWrapperREADONLY", nil, nil)
111+ if ($isInstanceOf(Z, "List[Any]"))
112+ then Z
113+ else throw(($getType(Z) + " couldn't be cast to List[Any]"))
110114 }
111- if ((W == W))
115+ if ((Y == Y))
112116 then $Tuple5(valueOrErrorMessage({
113- let X = W[4]
114- if ($isInstanceOf(X, "String"))
115- then X
117+ let Z = Y[4]
118+ if ($isInstanceOf(Z, "String"))
119+ then Z
116120 else unit
117121 }, "Can't get pool A asset id"), valueOrErrorMessage({
118- let X = W[5]
119- if ($isInstanceOf(X, "String"))
120- then X
122+ let Z = Y[5]
123+ if ($isInstanceOf(Z, "String"))
124+ then Z
121125 else unit
122126 }, "Can't get pool B asset id"), 0, 0, valueOrErrorMessage({
123- let X = W[3]
124- if ($isInstanceOf(X, "String"))
125- then X
127+ let Z = Y[3]
128+ if ($isInstanceOf(Z, "String"))
129+ then Z
126130 else unit
127131 }, "Can't get pool LP asset id"))
128132 else throw("Strict value is not equal to itself.")
129133 }
130134
131135
132-func Y (U,Z) = if ((Z == a))
133- then T(U)
134- else if ((Z == b))
135- then V(U)
136+func aa (W,ab) = if ((ab == a))
137+ then V(W)
138+ else if ((ab == b))
139+ then X(W)
136140 else throw("Wrong pool type")
137141
138142
139-func aa (ab) = valueOrElse(getInteger(this, (ab + t)), 0)
143+func ac (ad) = valueOrElse(getInteger(this, (ad + t)), 0)
140144
141145
142-func ac (ab,ad) = (valueOrElse(getInteger(this, (((ab + "_") + ad) + r)), 0) + 1)
146+func ae (ad,af) = (valueOrElse(getInteger(this, (((ad + "_") + af) + r)), 0) + 1)
143147
144148
145-func ae (ab,af) = if ((af == "cap"))
146- then getIntegerValue(this, (ab + x))
147- else if ((af == "loan"))
148- then getIntegerValue(this, (ab + w))
149- else if ((af == "noLoan"))
150- then getIntegerValue(this, (ab + v))
149+func ag (ad,ah) = if ((ah == "cap"))
150+ then getIntegerValue(this, (ad + x))
151+ else if ((ah == "loan"))
152+ then getIntegerValue(this, (ad + w))
153+ else if ((ah == "noLoan"))
154+ then getIntegerValue(this, (ad + v))
151155 else throw("Wrong fee type")
152156
153157
154-func ag () = Address(fromBase58String(valueOrErrorMessage(getString(this, D), "Can't get swopfi farming addr")))
158+func ai () = Address(fromBase58String(valueOrErrorMessage(getString(this, D), "Can't get swopfi farming addr")))
155159
156160
157-func ah (U) = {
158- let ai = Address(fromBase58String(valueOrErrorMessage(getString(U, "%s__factoryContract"), "Can't get WX factory contract addr")))
159- let aj = split(valueOrErrorMessage(getString(ai, "%s__factoryConfig"), "Can't get WX factory cfg"), "__")
160- Address(fromBase58String(aj[1]))
161+func aj (W) = {
162+ let ak = Address(fromBase58String(valueOrErrorMessage(getString(W, "%s__factoryContract"), "Can't get WX factory contract addr")))
163+ let al = split(valueOrErrorMessage(getString(ak, "%s__factoryConfig"), "Can't get WX factory cfg"), "__")
164+ Address(fromBase58String(al[1]))
161165 }
162166
163167
164-func ak () = Address(fromBase58String(valueOrErrorMessage(getString(this, E), "Can't get lend service addr")))
168+func am () = Address(fromBase58String(valueOrErrorMessage(getString(this, E), "Can't get lend service addr")))
165169
166170
167-func al (P) = {
168- let Q = P
169- if ($isInstanceOf(Q, "ByteVector"))
171+func an (R) = {
172+ let S = R
173+ if ($isInstanceOf(S, "ByteVector"))
170174 then {
171- let R = Q
172- toBase58String(R)
175+ let T = S
176+ toBase58String(T)
173177 }
174- else if ($isInstanceOf(Q, "Unit"))
178+ else if ($isInstanceOf(S, "Unit"))
175179 then {
176- let S = Q
180+ let U = S
177181 "WAVES"
178182 }
179183 else throw("Match error")
180184 }
181185
182186
183-func am (P) = if ((P == "WAVES"))
187+func ao (R) = if ((R == "WAVES"))
184188 then unit
185- else fromBase58String(P)
189+ else fromBase58String(R)
186190
187191
188-func an (P) = if ((P == "WAVES"))
192+func ap (R) = if ((R == "WAVES"))
189193 then 8
190194 else {
191- let Q = assetInfo(fromBase58String(P))
192- if ($isInstanceOf(Q, "Asset"))
195+ let S = assetInfo(fromBase58String(R))
196+ if ($isInstanceOf(S, "Asset"))
193197 then {
194- let ao = Q
195- ao.decimals
198+ let aq = S
199+ aq.decimals
196200 }
197201 else throw("Can't find asset")
198202 }
199203
200204
201-func ap (ab,af,aq,ar,as,at,au,av,aw) = {
202- let ax = O(fromBase58String(aw))
203- if ((ax == ax))
205+func ar (ad,ah,as,at,au,av,aw,ax,ay) = {
206+ let az = Q(fromBase58String(ay))
207+ if ((az == az))
204208 then {
205- let U = Address(fromBase58String(ab))
206- let ay = fraction(f, aq, au)
207- let az = fraction(f, as, av)
208- let aA = if ((az > ay))
209+ let W = Address(fromBase58String(ad))
210+ let aA = fraction(f, as, aw)
211+ let aB = fraction(f, au, ax)
212+ let aC = if ((aB > aA))
209213 then {
210- let aB = fraction(av, ay, f, CEILING)
211- $Tuple4(aq, aB, (as - aB), at)
214+ let aD = fraction(ax, aA, f, CEILING)
215+ $Tuple4(as, aD, (au - aD), av)
212216 }
213217 else {
214- let aB = fraction(au, az, f, CEILING)
215- $Tuple4(aB, as, (aq - aB), ar)
218+ let aD = fraction(aw, aB, f, CEILING)
219+ $Tuple4(aD, au, (as - aD), at)
216220 }
217- let aC = aA._1
218- let aD = aA._2
219- let aE = aA._3
220- let aF = aA._4
221- let aG = if (if ((aC > 0))
222- then (aD > 0)
221+ let aE = aC._1
222+ let aF = aC._2
223+ let aG = aC._3
224+ let aH = aC._4
225+ let aI = if (if ((aE > 0))
226+ then (aF > 0)
223227 else false)
224228 then {
225- let aH = [AttachedPayment(am(ar), aC), AttachedPayment(am(at), aD)]
226- invoke(U, "callFunction", ["replenishWithTwoTokens", ["false", "0"]], aH)
229+ let aJ = [AttachedPayment(ao(at), aE), AttachedPayment(ao(av), aF)]
230+ invoke(W, "callFunction", ["replenishWithTwoTokens", ["false", "0"]], aJ)
227231 }
228232 else 0
229- if ((aG == aG))
233+ if ((aI == aI))
230234 then {
231- let aI = if ((aE > 0))
235+ let aK = if ((aG > 0))
232236 then {
233- let aH = [AttachedPayment(am(aF), aE)]
234- let aJ = ["0", "false", "0"]
235- invoke(U, "callFunction", ["replenishWithOneToken", aJ], aH)
237+ let aJ = [AttachedPayment(ao(aH), aG)]
238+ let aL = ["0", "false", "0"]
239+ invoke(W, "callFunction", ["replenishWithOneToken", aL], aJ)
236240 }
237241 else 0
238- if ((aI == aI))
242+ if ((aK == aK))
239243 then {
240- let aK = O(fromBase58String(aw))
241- let aL = (aK - ax)
242- let aM = fraction(aL, ae(ab, af), h)
243- let aN = (aL - aM)
244- if ((0 >= aN))
244+ let aM = Q(fromBase58String(ay))
245+ let aN = (aM - az)
246+ let aO = fraction(aN, ag(ad, ah), h)
247+ let aP = (aN - aO)
248+ if ((0 >= aP))
245249 then throw("amount of staked sharetokens must be > 0")
246250 else {
247- let aO = invoke(ag(), "lockShareTokens", [ab, 0], [AttachedPayment(fromBase58String(aw), aN)])
248- if ((aO == aO))
249- then $Tuple2(aN, aM)
251+ let aQ = invoke(ai(), "lockShareTokens", [ad, 0], [AttachedPayment(fromBase58String(ay), aP)])
252+ if ((aQ == aQ))
253+ then $Tuple2(aP, aO)
250254 else throw("Strict value is not equal to itself.")
251255 }
252256 }
253257 else throw("Strict value is not equal to itself.")
254258 }
255259 else throw("Strict value is not equal to itself.")
256260 }
257261 else throw("Strict value is not equal to itself.")
258262 }
259263
260264
261-func aP (ab,af,aq,ar,as,at,aw) = {
262- let U = Address(fromBase58String(ab))
263- let aQ = if (if ((aq > 0))
264- then (as > 0)
265+func aR (ad,ah,as,at,au,av,ay) = {
266+ let W = Address(fromBase58String(ad))
267+ let aS = if (if ((as > 0))
268+ then (au > 0)
265269 else false)
266270 then {
267- let aR = split({
268- let X = invoke(U, "evaluatePutByAmountAssetREADONLY", [aq], nil)
269- if ($isInstanceOf(X, "String"))
270- then X
271- else throw(($getType(X) + " couldn't be cast to String"))
271+ let aT = split({
272+ let Z = invoke(W, "evaluatePutByAmountAssetREADONLY", [as], nil)
273+ if ($isInstanceOf(Z, "String"))
274+ then Z
275+ else throw(($getType(Z) + " couldn't be cast to String"))
272276 }, "__")
273- if ((aR == aR))
277+ if ((aT == aT))
274278 then {
275- let aS = split({
276- let X = invoke(U, "evaluatePutByPriceAssetREADONLY", [as], nil)
277- if ($isInstanceOf(X, "String"))
278- then X
279- else throw(($getType(X) + " couldn't be cast to String"))
279+ let aU = split({
280+ let Z = invoke(W, "evaluatePutByPriceAssetREADONLY", [au], nil)
281+ if ($isInstanceOf(Z, "String"))
282+ then Z
283+ else throw(($getType(Z) + " couldn't be cast to String"))
280284 }, "__")
281- if ((aS == aS))
285+ if ((aU == aU))
282286 then {
283- let aT = parseIntValue(aR[1])
284- let aU = parseIntValue(aS[1])
285- if ((aU > aT))
287+ let aV = parseIntValue(aT[1])
288+ let aW = parseIntValue(aU[1])
289+ if ((aW > aV))
286290 then {
287- let aV = parseIntValue(aR[8])
288- $Tuple4(aq, aV, (as - aV), at)
291+ let aX = parseIntValue(aT[8])
292+ $Tuple4(as, aX, (au - aX), av)
289293 }
290294 else {
291- let aW = parseIntValue(aS[7])
292- $Tuple4(aW, as, (aq - aW), ar)
295+ let aY = parseIntValue(aU[7])
296+ $Tuple4(aY, au, (as - aY), at)
293297 }
294298 }
295299 else throw("Strict value is not equal to itself.")
296300 }
297301 else throw("Strict value is not equal to itself.")
298302 }
299- else if ((aq > 0))
300- then $Tuple4(aq, as, aq, ar)
301- else if ((as > 0))
302- then $Tuple4(aq, as, as, at)
303+ else if ((as > 0))
304+ then $Tuple4(as, au, as, at)
305+ else if ((au > 0))
306+ then $Tuple4(as, au, au, av)
303307 else throw("pmts must be > 0")
304- let aC = aQ._1
305- let aD = aQ._2
306- let aE = aQ._3
307- let aF = aQ._4
308- let ax = O(fromBase58String(aw))
309- if ((ax == ax))
308+ let aE = aS._1
309+ let aF = aS._2
310+ let aG = aS._3
311+ let aH = aS._4
312+ let az = Q(fromBase58String(ay))
313+ if ((az == az))
310314 then {
311- let aG = if (if ((aC > 0))
312- then (aD > 0)
315+ let aI = if (if ((aE > 0))
316+ then (aF > 0)
313317 else false)
314318 then {
315- let aH = [AttachedPayment(am(ar), aC), AttachedPayment(am(at), aD)]
316- invoke(U, "put", [1000000, false], aH)
319+ let aJ = [AttachedPayment(ao(at), aE), AttachedPayment(ao(av), aF)]
320+ invoke(W, "put", [1000000, false], aJ)
317321 }
318322 else 0
319- if ((aG == aG))
323+ if ((aI == aI))
320324 then {
321- let aI = if ((aE > 0))
325+ let aK = if ((aG > 0))
322326 then {
323- let aH = [AttachedPayment(am(aF), aE)]
324- invoke(U, "putOneTkn", [0, false], aH)
327+ let aJ = [AttachedPayment(ao(aH), aG)]
328+ invoke(W, "putOneTkn", [0, false], aJ)
325329 }
326330 else 0
327- if ((aI == aI))
331+ if ((aK == aK))
328332 then {
329- let aK = O(fromBase58String(aw))
330- let aL = (aK - ax)
331- let aM = fraction(aL, ae(ab, af), h)
332- let aN = (aL - aM)
333- if ((0 >= aN))
333+ let aM = Q(fromBase58String(ay))
334+ let aN = (aM - az)
335+ let aO = fraction(aN, ag(ad, ah), h)
336+ let aP = (aN - aO)
337+ if ((0 >= aP))
334338 then throw("amount of staked sharetokens must be > 0")
335339 else {
336- let aO = invoke(ah(U), "stake", nil, [AttachedPayment(fromBase58String(aw), aN)])
337- if ((aO == aO))
338- then $Tuple2(aN, aM)
340+ let aQ = invoke(aj(W), "stake", nil, [AttachedPayment(fromBase58String(ay), aP)])
341+ if ((aQ == aQ))
342+ then $Tuple2(aP, aO)
339343 else throw("Strict value is not equal to itself.")
340344 }
341345 }
342346 else throw("Strict value is not equal to itself.")
343347 }
344348 else throw("Strict value is not equal to itself.")
345349 }
346350 else throw("Strict value is not equal to itself.")
347351 }
348352
349353
350-func aX (ab,ad,aY,aM,aZ,aw,Z) = {
351- let ba = aa(ab)
352- let bb = getIntegerValue(this, (ab + u))
353-[IntegerEntry((ab + t), (ba + aY)), IntegerEntry((((((ab + "_") + ad) + "_") + toString(aZ)) + n), aY), StringEntry((((((ab + "_") + ad) + "_") + toString(aZ)) + q), Z), IntegerEntry((((((ab + "_") + ad) + "_") + toString(aZ)) + s), bb), IntegerEntry((((ab + "_") + ad) + r), aZ), ScriptTransfer(H, aM, fromBase58String(aw))]
354+func aZ (ad,af,ba,aO,bb,ay,ab) = {
355+ let bc = ac(ad)
356+ let bd = getIntegerValue(this, (ad + u))
357+[IntegerEntry((ad + t), (bc + ba)), IntegerEntry((((((ad + "_") + af) + "_") + toString(bb)) + o), ba), IntegerEntry((((((ad + "_") + af) + "_") + toString(bb)) + s), bd), IntegerEntry((((ad + "_") + af) + r), bb), ScriptTransfer(I, aO, fromBase58String(ay))]
354358 }
355359
356360
357-func bc (Z,ab) = if ((Z == a))
361+func be (ab,ad) = if ((ab == a))
358362 then {
359- let bd = O(K)
360- if ((bd == bd))
363+ let bf = Q(M)
364+ if ((bf == bf))
361365 then {
362- let be = invoke(ag(), "claim", [ab], nil)
363- if ((be == be))
366+ let bg = invoke(ai(), "claim", [ad], nil)
367+ if ((bg == bg))
364368 then {
365- let bf = O(K)
366- $Tuple2((bf - bd), K)
369+ let bh = Q(M)
370+ $Tuple2((bh - bf), M)
367371 }
368372 else throw("Strict value is not equal to itself.")
369373 }
370374 else throw("Strict value is not equal to itself.")
371375 }
372- else if ((Z == b))
376+ else if ((ab == b))
373377 then {
374- let bd = O(L)
375- if ((bd == bd))
378+ let bf = Q(N)
379+ if ((bf == bf))
376380 then {
377- let be = invoke(ah(Address(fromBase58String(ab))), "claimWX", [ab], nil)
378- if ((be == be))
381+ let bg = invoke(aj(Address(fromBase58String(ad))), "claimWX", [ad], nil)
382+ if ((bg == bg))
379383 then {
380- let bf = O(L)
381- $Tuple2((bf - bd), L)
384+ let bh = Q(N)
385+ $Tuple2((bh - bf), N)
382386 }
383387 else throw("Strict value is not equal to itself.")
384388 }
385389 else throw("Strict value is not equal to itself.")
386390 }
387391 else throw("Wrong pool type")
388392
389393
390-func bg (bh,bi,bj,bk,bl,bm,bn,bo,bp,bq) = {
391- let br = O(am(bh))
392- if ((br == br))
394+func bi (bj,bk,bl,bm,bn,bo,bp,bq,br,bs) = {
395+ let bt = Q(ao(bj))
396+ if ((bt == bt))
393397 then {
394- let be = invoke(I, "swap", [bk, bl, bm, bn, bo, bp, bq], [AttachedPayment(bj, bi)])
395- if ((be == be))
396- then (O(am(bh)) - br)
398+ let bg = invoke(J, "swap", [bm, bn, bo, bp, bq, br, bs], [AttachedPayment(bl, bk)])
399+ if ((bg == bg))
400+ then (Q(ao(bj)) - bt)
397401 else throw("Strict value is not equal to itself.")
398402 }
399403 else throw("Strict value is not equal to itself.")
400404 }
401405
402406
403-func bs (bh,bi,bj,bt,bu,bq) = {
404- let br = O(am(bh))
405- if ((br == br))
407+func bu (bj,bk,bl,bv,bw,bs) = {
408+ let bt = Q(ao(bj))
409+ if ((bt == bt))
406410 then {
407- let be = invoke(I, "puzzleSwap", [bt, bu, bq], [AttachedPayment(bj, bi)])
408- if ((be == be))
409- then (O(am(bh)) - br)
411+ let bg = invoke(J, "puzzleSwap", [bv, bw, bs], [AttachedPayment(bl, bk)])
412+ if ((bg == bg))
413+ then (Q(ao(bj)) - bt)
410414 else throw("Strict value is not equal to itself.")
411415 }
412416 else throw("Strict value is not equal to itself.")
413417 }
414418
415419
416-func bv (bh,bi,bj,bw,bx,by,bz,bA,bB,bq) = {
417- let br = O(am(bh))
418- if ((br == br))
420+func bx (bj,bk,bl,by,bz,bA,bB,bC,bD,bs) = {
421+ let bt = Q(ao(bj))
422+ if ((bt == bt))
419423 then {
420- let be = invoke(I, "swopfiSwap", [bw, bx, by, bz, bA, bB, bq], [AttachedPayment(bj, bi)])
421- if ((be == be))
422- then (O(am(bh)) - br)
424+ let bg = invoke(J, "swopfiSwap", [by, bz, bA, bB, bC, bD, bs], [AttachedPayment(bl, bk)])
425+ if ((bg == bg))
426+ then (Q(ao(bj)) - bt)
423427 else throw("Strict value is not equal to itself.")
424428 }
425429 else throw("Strict value is not equal to itself.")
426430 }
427431
428432
429-func bC (ab,Z,bD,bE) = {
430- let U = Address(fromBase58String(ab))
431- let bF = Y(U, Z)
432- let bG = bF._1
433- let bH = bF._2
434- let au = bF._3
435- let av = bF._4
436- let aw = bF._5
437- let bI = if ((bD == bG))
438- then $Tuple2(bE, 0)
439- else $Tuple2(0, bE)
440- let aq = bI._1
441- let as = bI._2
442- let bJ = if ((Z == a))
443- then ap(ab, c, aq, bG, as, bH, au, av, aw)
444- else aP(ab, c, aq, bG, as, bH, aw)
445- let aY = bJ._1
446- let bK = bJ._2
447- let bb = valueOrElse(getInteger(this, (ab + u)), 0)
448- let bL = aa(ab)
449- let bM = (bb + fraction(aY, g, bL))
450-[IntegerEntry((ab + u), bM), ScriptTransfer(H, bK, fromBase58String(aw))]
433+func bE (ad,ab,bF,bG) = {
434+ let W = Address(fromBase58String(ad))
435+ let bH = aa(W, ab)
436+ let bI = bH._1
437+ let bJ = bH._2
438+ let aw = bH._3
439+ let ax = bH._4
440+ let ay = bH._5
441+ let bK = if ((bF == bI))
442+ then $Tuple2(bG, 0)
443+ else $Tuple2(0, bG)
444+ let as = bK._1
445+ let au = bK._2
446+ let bL = if ((ab == a))
447+ then ar(ad, c, as, bI, au, bJ, aw, ax, ay)
448+ else aR(ad, c, as, bI, au, bJ, ay)
449+ let ba = bL._1
450+ let bM = bL._2
451+ let bd = valueOrElse(getInteger(this, (ad + u)), 0)
452+ let bN = ac(ad)
453+ let bO = (bd + fraction(ba, g, bN))
454+[IntegerEntry((ad + u), bO), ScriptTransfer(I, bM, fromBase58String(ay))]
451455 }
452456
453457
454-@Callable(N)
455-func replenish (ab,bN,bO) = if (if ((100 > bN))
458+func bP (ad,bQ,bR,aw,ax,bS,bT) = {
459+ let W = Address(fromBase58String(ad))
460+ let bU = 1000000
461+ let bV = getIntegerValue(W, n)
462+ let bW = fraction(bS, bU, (bU - bV))
463+ let bX = if ((bT == bQ))
464+ then {
465+ let bY = fraction(aw, bW, (ax - bW))
466+ $Tuple2(bY, bR)
467+ }
468+ else {
469+ let bY = fraction(ax, bW, (aw - bW))
470+ $Tuple2(bY, bQ)
471+ }
472+ let bY = bX._1
473+ let bZ = bX._2
474+ invoke(W, "callFunction", ["exchange", "1"], [AttachedPayment(ao(bZ), bY)])
475+ }
476+
477+
478+func ca (ad,bQ,bR,aw,ax,bS,bT) = {
479+ let W = Address(fromBase58String(ad))
480+ let cb = getIntegerValue(L, "%s__protocolFee")
481+ let cc = getIntegerValue(L, "%s__poolFee")
482+ let cd = toBigInt(100000000)
483+ let ce = if ((bT == bQ))
484+ then {
485+ let bY = fraction(aw, bS, (ax - bS))
486+ $Tuple2(bY, bR)
487+ }
488+ else {
489+ let bY = fraction(ax, bS, (aw - bS))
490+ $Tuple2(bY, bQ)
491+ }
492+ let bY = ce._1
493+ let bZ = ce._2
494+ let cf = toInt(fraction(toBigInt(bY), cd, (cd - toBigInt((cb + cc)))))
495+ invoke(L, "swap", [1, bT, toString(this)], [AttachedPayment(ao(bZ), cf)])
496+ }
497+
498+
499+func cg (ab,ad,bQ,bR,aw,ax,bS,bT) = if ((ab == a))
500+ then bP(ad, bQ, bR, aw, ax, bS, bT)
501+ else ca(ad, bQ, bR, aw, ax, bS, bT)
502+
503+
504+@Callable(P)
505+func replenish (ad,ch,ci) = if (if ((100 > ch))
456506 then true
457- else (bN > 300))
507+ else (ch > 300))
458508 then throw("Leverage can't be <100 and >300")
459509 else {
460- let Z = valueOrErrorMessage(getString(this, (A + ab)), "Pool is not inited")
461- let bP = Y(Address(fromBase58String(ab)), Z)
462- let bG = bP._1
463- let bH = bP._2
464- let au = bP._3
465- let av = bP._4
466- let aw = bP._5
467- let bQ = if ((size(N.payments) == 2))
468- then if ((al(N.payments[0].assetId) != bG))
510+ let ab = valueOrErrorMessage(getString(this, (A + ad)), "Pool is not inited")
511+ let cj = aa(Address(fromBase58String(ad)), ab)
512+ let bI = cj._1
513+ let bJ = cj._2
514+ let aw = cj._3
515+ let ax = cj._4
516+ let ay = cj._5
517+ let ck = if ((size(P.payments) == 2))
518+ then if ((an(P.payments[0].assetId) != bI))
469519 then throw("Wrong payment asset A")
470- else if ((al(N.payments[1].assetId) != bH))
520+ else if ((an(P.payments[1].assetId) != bJ))
471521 then throw("Wrong payment asset B")
472- else $Tuple4(N.payments[0].amount, bG, N.payments[1].amount, bH)
473- else if ((size(N.payments) == 1))
474- then if ((al(N.payments[0].assetId) == bG))
475- then $Tuple4(N.payments[0].amount, bG, 0, bH)
476- else if ((al(N.payments[0].assetId) == bH))
477- then $Tuple4(0, bG, N.payments[0].amount, bH)
522+ else $Tuple4(P.payments[0].amount, bI, P.payments[1].amount, bJ)
523+ else if ((size(P.payments) == 1))
524+ then if ((an(P.payments[0].assetId) == bI))
525+ then $Tuple4(P.payments[0].amount, bI, 0, bJ)
526+ else if ((an(P.payments[0].assetId) == bJ))
527+ then $Tuple4(0, bI, P.payments[0].amount, bJ)
478528 else throw("Wrong payment")
479529 else throw("One or two payments expected")
480- let aq = bQ._1
481- let ar = bQ._2
482- let as = bQ._3
483- let at = bQ._4
484- let bR = ac(ab, toString(N.caller))
485- if ((bN > 100))
530+ let as = ck._1
531+ let at = ck._2
532+ let au = ck._3
533+ let av = ck._4
534+ let cl = ae(ad, toString(P.caller))
535+ if ((ch > 100))
486536 then {
487- let bS = ( let X = invoke(J, "getTWAP60", [ar, false], nil)
488- if ($isInstanceOf(X, "(Int, Int)"))
489- then X
490- else throw(($getType(X) + " couldn't be cast to (Int, Int)")))._1
491- let bT = ( let X = invoke(J, "getTWAP60", [at, false], nil)
492- if ($isInstanceOf(X, "(Int, Int)"))
493- then X
494- else throw(($getType(X) + " couldn't be cast to (Int, Int)")))._1
495- let bU = (fraction(bS, aq, pow(10, 0, an(ar), 0, 0, DOWN)) + fraction(bT, as, pow(10, 0, an(at), 0, 0, DOWN)))
496- let bV = fraction(bU, (bN - 100), 100)
497- let bW = makeString([Z, toString(N.caller), ab, toString(aq), ar, toString(as), at, toString(au), toString(av), aw, bO, toString(bV), toString(bR)], ",")
498- let bX = {
499- let X = invoke(this, "createNewRequest", [bW], nil)
500- if ($isInstanceOf(X, "Int"))
501- then X
502- else unit
537+ let cm = ( let Z = invoke(K, "getTWAP60", [at, false], nil)
538+ if ($isInstanceOf(Z, "(Int, Int)"))
539+ then Z
540+ else throw(($getType(Z) + " couldn't be cast to (Int, Int)")))._1
541+ let cn = ( let Z = invoke(K, "getTWAP60", [av, false], nil)
542+ if ($isInstanceOf(Z, "(Int, Int)"))
543+ then Z
544+ else throw(($getType(Z) + " couldn't be cast to (Int, Int)")))._1
545+ let co = (fraction(cm, as, pow(10, 0, ap(at), 0, 0, DOWN)) + fraction(cn, au, pow(10, 0, ap(av), 0, 0, DOWN)))
546+ let cp = fraction(co, (ch - 100), 100)
547+ let cq = makeString([ab, toString(P.caller), ad, toString(as), at, toString(au), av, toString(aw), toString(ax), ay, ci, toString(cp), toString(cl)], ",")
548+ let cr = {
549+ let Z = invoke(this, "createNewRequest", [cq], nil)
550+ if ($isInstanceOf(Z, "Int"))
551+ then Z
552+ else throw(($getType(Z) + " couldn't be cast to Int"))
503553 }
504- if ((bX == bX))
554+ if ((cr == cr))
505555 then {
506- let bY = [((toString(N.caller) + "_") + toString(bR)), aw, bO, bV, toString(this), "replenishFromLand", toString(valueOrErrorMessage(bX, "Can't create new request"))]
507- let be = reentrantInvoke(ak(), "flashPosition", bY, nil)
508- if ((be == be))
556+ let cs = [((toString(P.caller) + "_") + toString(cl)), ay, ci, cp, toString(this), "replenishFromLand", toString(valueOrErrorMessage(cr, "Can't create new request"))]
557+ let bg = reentrantInvoke(am(), "flashPosition", cs, nil)
558+ if ((bg == bg))
509559 then nil
510560 else throw("Strict value is not equal to itself.")
511561 }
512562 else throw("Strict value is not equal to itself.")
513563 }
514564 else {
515- let bZ = if ((Z == a))
516- then ap(ab, e, aq, ar, as, at, au, av, aw)
517- else aP(ab, e, aq, ar, as, at, aw)
518- let ca = bZ._1
519- let bK = bZ._2
520- aX(ab, toString(N.caller), ca, bK, bR, aw, Z)
565+ let ct = if ((ab == a))
566+ then ar(ad, e, as, at, au, av, aw, ax, ay)
567+ else aR(ad, e, as, at, au, av, ay)
568+ let cu = ct._1
569+ let bM = ct._2
570+ aZ(ad, toString(P.caller), cu, bM, cl, ay, ab)
521571 }
522572 }
523573
524574
525575
526-@Callable(N)
527-func replenishFromLand (cb) = {
528- let bW = split(valueOrErrorMessage(getString(this, (cb + y)), ("No request with id " + cb)), ",")
529- if ((size(N.payments) != 1))
576+@Callable(P)
577+func replenishFromLand (cv) = {
578+ let cq = split(valueOrErrorMessage(getString(this, (cv + y)), ("No request with id " + cv)), ",")
579+ if ((size(P.payments) != 1))
530580 then throw("Wrong payment size")
531- else if (if ((al(N.payments[0].assetId) != bW[10]))
581+ else if (if ((an(P.payments[0].assetId) != cq[10]))
532582 then true
533- else (N.payments[0].amount != parseIntValue(bW[11])))
583+ else (P.payments[0].amount != parseIntValue(cq[11])))
534584 then throw("Wrong payment")
535585 else {
536- let aq = if ((bW[4] == al(N.payments[0].assetId)))
537- then (parseIntValue(bW[3]) + N.payments[0].amount)
538- else parseIntValue(bW[3])
539- let as = if ((bW[6] == al(N.payments[0].assetId)))
540- then (parseIntValue(bW[5]) + N.payments[0].amount)
541- else parseIntValue(bW[3])
542- let ab = bW[2]
543- let ad = bW[1]
544- let aw = bW[9]
545- let aZ = parseIntValue(bW[12])
546- let cc = if ((bW[0] == a))
547- then ap(ab, d, aq, bW[4], as, bW[6], parseIntValue(bW[7]), parseIntValue(bW[8]), aw)
548- else if ((bW[0] == b))
549- then aP(ab, d, aq, bW[4], as, bW[6], aw)
586+ let as = if ((cq[4] == an(P.payments[0].assetId)))
587+ then (parseIntValue(cq[3]) + P.payments[0].amount)
588+ else parseIntValue(cq[3])
589+ let au = if ((cq[6] == an(P.payments[0].assetId)))
590+ then (parseIntValue(cq[5]) + P.payments[0].amount)
591+ else parseIntValue(cq[3])
592+ let ad = cq[2]
593+ let af = cq[1]
594+ let ay = cq[9]
595+ let bb = parseIntValue(cq[12])
596+ let cw = if ((cq[0] == a))
597+ then ar(ad, d, as, cq[4], au, cq[6], parseIntValue(cq[7]), parseIntValue(cq[8]), ay)
598+ else if ((cq[0] == b))
599+ then aR(ad, d, as, cq[4], au, cq[6], ay)
550600 else throw("Wrong request type")
551- let ca = cc._1
552- let bK = cc._2
553- let cd = [IntegerEntry((((((bW[2] + "_") + bW[1]) + "_") + bW[12]) + o), N.payments[0].amount), StringEntry((((((bW[2] + "_") + bW[1]) + "_") + bW[12]) + p), bW[10])]
554- let ce = aX(ab, ad, ca, bK, aZ, aw, bW[0])
555- $Tuple2(((ce ++ cd) :+ DeleteEntry((cb + y))), ca)
601+ let cu = cw._1
602+ let bM = cw._2
603+ let cx = [IntegerEntry((((((cq[2] + "_") + cq[1]) + "_") + cq[12]) + p), P.payments[0].amount), StringEntry((((((cq[2] + "_") + cq[1]) + "_") + cq[12]) + q), cq[10])]
604+ let cy = aZ(ad, af, cu, bM, bb, ay, cq[0])
605+ $Tuple2(((cy ++ cx) :+ DeleteEntry((cv + y))), cu)
556606 }
557607 }
558608
559609
560610
561-@Callable(N)
562-func withdraw (ab,cf) = {
563- let ad = toString(N.caller)
564- let cg = valueOrErrorMessage(getString(this, (((((ab + "_") + ad) + "_") + toString(cf)) + q)), "Can't find position")
565- let ch = getIntegerValue(this, (((((ab + "_") + ad) + "_") + toString(cf)) + n))
566- let ci = getIntegerValue(this, (((((ab + "_") + ad) + "_") + toString(cf)) + s))
567- let cj = getIntegerValue(this, (ab + u))
568- let ck = getIntegerValue(this, (ab + t))
569- let cl = (ch + fraction(ch, (cj - ci), g))
570- let U = Address(fromBase58String(ab))
571- let cm = Address(fromBase58String(ad))
572- let bV = getIntegerValue(this, (((((ab + "_") + ad) + "_") + toString(cf)) + o))
573- let cn = getStringValue(this, (((((ab + "_") + ad) + "_") + toString(cf)) + p))
574- let co = Y(Address(fromBase58String(ab)), cg)
575- let cp = co._1
576- let cq = co._2
577- let au = co._3
578- let av = co._4
579- let aw = co._5
580- let cr = O(am(cp))
581- if ((cr == cr))
611+@Callable(P)
612+func withdraw (ad,cz) = {
613+ let af = toString(P.caller)
614+ let cA = valueOrErrorMessage(getString(this, (A + ad)), "Unknown pool")
615+ let cB = valueOrErrorMessage(getInteger(this, (((((ad + "_") + af) + "_") + toString(cz)) + o)), "Unknown position")
616+ let cC = getIntegerValue(this, (((((ad + "_") + af) + "_") + toString(cz)) + s))
617+ let cD = getIntegerValue(this, (ad + u))
618+ let cE = ac(ad)
619+ let cF = (cB + fraction(cB, (cD - cC), g))
620+ let W = Address(fromBase58String(ad))
621+ let cG = Address(fromBase58String(af))
622+ let cp = getIntegerValue(this, (((((ad + "_") + af) + "_") + toString(cz)) + p))
623+ let cH = getStringValue(this, (((((ad + "_") + af) + "_") + toString(cz)) + q))
624+ let cI = aa(Address(fromBase58String(ad)), cA)
625+ let bQ = cI._1
626+ let bR = cI._2
627+ let aw = cI._3
628+ let ax = cI._4
629+ let ay = cI._5
630+ let cJ = Q(ao(bQ))
631+ if ((cJ == cJ))
582632 then {
583- let cs = O(am(cq))
584- if ((cs == cs))
633+ let cK = Q(ao(bR))
634+ if ((cK == cK))
585635 then {
586- let be = if ((cg == a))
587- then invoke(U, "callFunction", ["withdraw", [toString(cl)]], nil)
588- else if ((cg == b))
589- then invoke(U, "unstakeAndGet", [cl], nil)
636+ let bg = if ((cA == a))
637+ then invoke(W, "callFunction", ["withdraw", [toString(cF)]], nil)
638+ else if ((cA == b))
639+ then invoke(W, "unstakeAndGet", [cF], nil)
590640 else throw("Wrong position type")
591- if ((be == be))
641+ if ((bg == bg))
592642 then {
593- let ct = O(am(cp))
594- let cu = O(am(cq))
595- let cv = $Tuple2((ct - cr), (cu - cs))
596- let cw = cv._1
597- let cx = cv._2
598-[DeleteEntry((((((ab + "_") + ad) + "_") + toString(cf)) + q)), DeleteEntry((((((ab + "_") + ad) + "_") + toString(cf)) + n)), DeleteEntry((((((ab + "_") + ad) + "_") + toString(cf)) + s)), IntegerEntry((ab + t), (ck - cl)), ScriptTransfer(cm, cw, am(cp)), ScriptTransfer(cm, cx, am(cq))]
643+ let cL = Q(ao(bQ))
644+ let cM = Q(ao(bR))
645+ let cN = $Tuple2((cL - cJ), (cM - cK))
646+ let cO = cN._1
647+ let cP = cN._2
648+ let cQ = if ((cp > 0))
649+ then {
650+ let cR = {
651+ let Z = invoke(am(), "getAssetDebt", [false, ((((ad + "_") + af) + "_") + toString(cz)), cH], nil)
652+ if ($isInstanceOf(Z, "Int"))
653+ then Z
654+ else throw(($getType(Z) + " couldn't be cast to Int"))
655+ }
656+ let cS = if (if ((cH == bQ))
657+ then (cR > cO)
658+ else false)
659+ then (cR - cO)
660+ else if (if ((cH == bR))
661+ then (cR > cP)
662+ else false)
663+ then (cR - cP)
664+ else 0
665+ let cT = if ((cS > 0))
666+ then cg(cA, ad, bQ, bR, aw, ax, cS, cH)
667+ else 0
668+ if ((cT == cT))
669+ then {
670+ let cU = invoke(am(), "repay", [((af + "_") + toString(cz))], [AttachedPayment(ao(cH), cR)])
671+ if ((cU == cU))
672+ then {
673+ let cV = Q(ao(bQ))
674+ let cW = Q(ao(bR))
675+ $Tuple2((cV - cJ), (cW - cK))
676+ }
677+ else throw("Strict value is not equal to itself.")
678+ }
679+ else throw("Strict value is not equal to itself.")
680+ }
681+ else $Tuple2(cO, cP)
682+ let cX = cQ._1
683+ let cY = cQ._2
684+[DeleteEntry((((((ad + "_") + af) + "_") + toString(cz)) + o)), DeleteEntry((((((ad + "_") + af) + "_") + toString(cz)) + s)), IntegerEntry((ad + t), (cE - cF)), ScriptTransfer(cG, cO, ao(bQ)), ScriptTransfer(cG, cP, ao(bR))]
599685 }
600686 else throw("Strict value is not equal to itself.")
601687 }
602688 else throw("Strict value is not equal to itself.")
603689 }
604690 else throw("Strict value is not equal to itself.")
605691 }
606692
607693
608694
609-@Callable(N)
610-func createNewRequest (cy) = valueOrElse(M(N), {
611- let bX = (valueOrElse(getInteger(this, z), 0) + 1)
612- $Tuple2([StringEntry((toString(bX) + y), cy), IntegerEntry(z, bX)], bX)
695+@Callable(P)
696+func createNewRequest (cZ) = valueOrElse(O(P), {
697+ let cr = (valueOrElse(getInteger(this, z), 0) + 1)
698+ $Tuple2([StringEntry((toString(cr) + y), cZ), IntegerEntry(z, cr)], cr)
613699 })
614700
615701
616702
617-@Callable(N)
618-func capitalizeExKeeper (ab,Z,cz,cA,cB,bk,bl,bm,bn,bo,bp,bq) = {
619- let cC = if (cB)
620- then bc(Z, ab)
703+@Callable(P)
704+func capitalizeExKeeper (ad,ab,da,db,dc,bm,bn,bo,bp,bq,br,bs) = {
705+ let dd = if (dc)
706+ then be(ab, ad)
621707 else {
622- let cD = if ((Z == a))
623- then K
624- else L
625- $Tuple2(cA, cD)
708+ let de = if ((ab == a))
709+ then M
710+ else N
711+ $Tuple2(db, de)
626712 }
627- let cE = cC._1
628- let cD = cC._2
629- let cF = bg(cz, cA, cD, bk, bl, bm, bn, bo, bp, bq)
630- let aE = (cE - cA)
631- let cG = if ((aE > 0))
632- then [IntegerEntry((ab + B), (aE + valueOrElse(getInteger(this, (ab + B)), 0)))]
713+ let df = dd._1
714+ let de = dd._2
715+ let dg = bi(da, db, de, bm, bn, bo, bp, bq, br, bs)
716+ let aG = (df - db)
717+ let dh = if ((aG > 0))
718+ then [IntegerEntry((ad + B), (aG + valueOrElse(getInteger(this, (ad + B)), 0)))]
633719 else nil
634- (bC(ab, Z, cz, cF) ++ cG)
720+ (bE(ad, ab, da, dg) ++ dh)
635721 }
636722
637723
638724
639-@Callable(N)
640-func capitalizeExPazzle (ab,Z,cz,cA,cB,bt,bu,bq) = {
641- let cH = if (cB)
642- then bc(Z, ab)
725+@Callable(P)
726+func capitalizeExPazzle (ad,ab,da,db,dc,bv,bw,bs) = {
727+ let di = if (dc)
728+ then be(ab, ad)
643729 else {
644- let cD = if ((Z == a))
645- then K
646- else L
647- $Tuple2(cA, cD)
730+ let de = if ((ab == a))
731+ then M
732+ else N
733+ $Tuple2(db, de)
648734 }
649- let cE = cH._1
650- let cD = cH._2
651- let cF = bs(cz, cA, cD, bt, bu, bq)
652- let aE = (cE - cA)
653- let cG = if ((aE > 0))
654- then [IntegerEntry((ab + B), (aE + valueOrElse(getInteger(this, (ab + B)), 0)))]
735+ let df = di._1
736+ let de = di._2
737+ let dg = bu(da, db, de, bv, bw, bs)
738+ let aG = (df - db)
739+ let dh = if ((aG > 0))
740+ then [IntegerEntry((ad + B), (aG + valueOrElse(getInteger(this, (ad + B)), 0)))]
655741 else nil
656- (bC(ab, Z, cz, cF) ++ cG)
742+ (bE(ad, ab, da, dg) ++ dh)
657743 }
658744
659745
660746
661-@Callable(N)
662-func capitalizeExSwopFi (ab,Z,cz,cA,cB,bw,bx,by,bz,bA,bB,bq) = {
663- let cI = if (cB)
664- then bc(Z, ab)
747+@Callable(P)
748+func capitalizeExSwopFi (ad,ab,da,db,dc,by,bz,bA,bB,bC,bD,bs) = {
749+ let dj = if (dc)
750+ then be(ab, ad)
665751 else {
666- let cD = if ((Z == a))
667- then K
668- else L
669- $Tuple2(cA, cD)
752+ let de = if ((ab == a))
753+ then M
754+ else N
755+ $Tuple2(db, de)
670756 }
671- let cE = cI._1
672- let cD = cI._2
673- let cF = bv(cz, cA, cD, bw, bx, by, bz, bA, bB, bq)
674- let aE = (cE - cA)
675- let cG = if ((aE > 0))
676- then [IntegerEntry((ab + B), (aE + valueOrElse(getInteger(this, (ab + B)), 0)))]
757+ let df = dj._1
758+ let de = dj._2
759+ let dg = bx(da, db, de, by, bz, bA, bB, bC, bD, bs)
760+ let aG = (df - db)
761+ let dh = if ((aG > 0))
762+ then [IntegerEntry((ad + B), (aG + valueOrElse(getInteger(this, (ad + B)), 0)))]
677763 else nil
678- (bC(ab, Z, cz, cF) ++ cG)
764+ (bE(ad, ab, da, dg) ++ dh)
679765 }
680766
681767
682768
683-@Callable(N)
684-func initNewPool (Z,U,cJ,cK,cL) = if (if ((Z != a))
685- then (Z != b)
769+@Callable(P)
770+func initNewPool (ab,W,dk,dl,dm) = if (if ((ab != a))
771+ then (ab != b)
686772 else false)
687773 then throw("Wrong type")
688- else [IntegerEntry((U + v), cJ), IntegerEntry((U + w), cK), IntegerEntry((U + x), cL), IntegerEntry((U + u), 0), StringEntry((A + U), Z)]
774+ else [IntegerEntry((W + v), dk), IntegerEntry((W + w), dl), IntegerEntry((W + x), dm), IntegerEntry((W + u), 0), StringEntry((A + W), ab)]
689775
690776
691-@Verifier(cM)
692-func cN () = sigVerify(cM.bodyBytes, cM.proofs[0], cM.senderPublicKey)
777+@Verifier(dn)
778+func do () = sigVerify(dn.bodyBytes, dn.proofs[0], dn.senderPublicKey)
693779

github/deemru/w8io/026f985 
242.03 ms