tx · 8iqYrrRAKzR2kHBzQx24RtrsoGKdYdqHsf93zjTd5Ajz

3N8G95pEaYEhZ4U3m3UrzpEzwBFn5vvXsZH:  -0.06000000 Waves

2022.10.25 14:28 [2287851] smart account 3N8G95pEaYEhZ4U3m3UrzpEzwBFn5vvXsZH > SELF 0.00000000 Waves

{ "type": 13, "id": "8iqYrrRAKzR2kHBzQx24RtrsoGKdYdqHsf93zjTd5Ajz", "fee": 6000000, "feeAssetId": null, "timestamp": 1666697316571, "version": 2, "chainId": 84, "sender": "3N8G95pEaYEhZ4U3m3UrzpEzwBFn5vvXsZH", "senderPublicKey": "Hj6oyH6As5UWo8fZ1K4hPsEY7nxH3MvhBqDD6axiwjXs", "proofs": [ "44eLCC1tgbeU3q9FDZQ9GnQZF376dadX2q2E8VndCYwQ45tBtBsorsuRoQFXWYHR3VSET6ub3GZtE5UsLn8V7n74" ], "script": "base64:BgJxCAISABIAEgMKAQESAwoBARILCgkBAQEBAQEBAQESEAoOAQEBAQEBAQgICAEBAQESAwoBARIFCgMBAQESBgoEAQEBCBIAEgMKAQESABIDCgEIEgASBAoCCAESAwoBARIAEgMKAQgSAwoBCBIDCgEBEgCTAQAJa19vcmFfa2V5AglrX29yYV9rZXkAD2tfb3JhX2Jsb2NrX2tleQIPa19vcmFfYmxvY2tfa2V5AAVrX29yYQIFa19vcmEACWtfYmFsYW5jZQIJa19iYWxhbmNlAA5rX3Bvc2l0aW9uU2l6ZQIOa19wb3NpdGlvblNpemUAEGtfcG9zaXRpb25NYXJnaW4CEGtfcG9zaXRpb25NYXJnaW4AFmtfcG9zaXRpb25PcGVuTm90aW9uYWwCFmtfcG9zaXRpb25PcGVuTm90aW9uYWwALmtfcG9zaXRpb25MYXN0VXBkYXRlZEN1bXVsYXRpdmVQcmVtaXVtRnJhY3Rpb24CEmtfcG9zaXRpb25GcmFjdGlvbgAUa19wb3NpdGlvbkNsb3NlZERhdGUCFGtfcG9zaXRpb25DbG9zZWREYXRlAA1rX2luaXRpYWx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dmQCBRRzaG9ydFByZW1pdW1GcmFjdGlvbgUPdW5kZXJseWluZ1ByaWNlCQACAQkArAICCQCsAgIJAKwCAgkBAXMBBQtsb25nRnVuZGluZwkBAXMBBQxzaG9ydEZ1bmRpbmcJAQFzAQkBEGdldFR3YXBTcG90UHJpY2UACQEBcwEJARJnZXRPcmFjbGVUd2FwUHJpY2UAAQJ0eAEGdmVyaWZ5AAkA9AMDCAUCdHgJYm9keUJ5dGVzCQCRAwIIBQJ0eAZwcm9vZnMAAAkBDmFkbWluUHVibGljS2V5AOZfEiA=", "height": 2287851, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: FJwpmhb5qQTfzWQRFNnhoW6UrJXkRE9scZ5kKN4LqKXx Next: 7fdsf7EVU5bmorExRwuSifrekRHkDh25t9iX9biFML3m Diff:
OldNewDifferences
9797
9898 let V = "k_manager_address"
9999
100-func W () = valueOrErrorMessage(addressFromString(getStringValue(this, L)), "Coordinator not set")
100+let W = "k_nft_manager_address"
101+
102+func X () = valueOrErrorMessage(addressFromString(getStringValue(this, L)), "Coordinator not set")
101103
102104
103-func X () = addressFromString(getStringValue(W(), N))
105+func Y () = addressFromString(getStringValue(X(), N))
104106
105107
106-func Y () = fromBase58String(getStringValue(W(), O))
108+func Z () = fromBase58String(getStringValue(X(), O))
107109
108110
109-func Z () = fromBase58String(getStringValue(W(), P))
111+func aa () = fromBase58String(getStringValue(X(), P))
110112
111113
112-func aa () = valueOrErrorMessage(addressFromString(getStringValue(W(), Q)), "Quote asset staking not set")
114+func ab () = valueOrErrorMessage(addressFromString(getStringValue(X(), Q)), "Quote asset staking not set")
113115
114116
115-func ab () = valueOrErrorMessage(addressFromString(getStringValue(W(), R)), "Staking not set")
117+func ac () = valueOrErrorMessage(addressFromString(getStringValue(X(), R)), "Staking not set")
116118
117119
118-func ac () = valueOrErrorMessage(addressFromString(getStringValue(W(), M)), "Insurance not set")
120+func ad () = valueOrErrorMessage(addressFromString(getStringValue(X(), M)), "Insurance not set")
119121
120122
121-func ad () = valueOrErrorMessage(addressFromString(getStringValue(W(), S)), "Miner not set")
123+func ae () = valueOrErrorMessage(addressFromString(getStringValue(X(), S)), "Miner not set")
122124
123125
124-func ae () = valueOrErrorMessage(addressFromString(getStringValue(W(), T)), "Orders not set")
126+func af () = valueOrErrorMessage(addressFromString(getStringValue(X(), T)), "Orders not set")
125127
126128
127-func af () = valueOrErrorMessage(addressFromString(getStringValue(W(), U)), "Referral not set")
129+func ag () = valueOrErrorMessage(addressFromString(getStringValue(X(), U)), "Referral not set")
128130
129131
130-func ag () = valueOrErrorMessage(addressFromString(getStringValue(W(), V)), "Manager not set")
132+func ah () = valueOrErrorMessage(addressFromString(getStringValue(X(), V)), "Manager not set")
131133
132134
133-let ah = 1
134-
135-let ai = 2
136-
137-let aj = 15
138-
139-let ak = 15
140-
141-let al = 1000
142-
143-let am = (1 * (((((10 * 10) * 10) * 10) * 10) * 10))
144-
145-let an = (86400 * am)
146-
147-let ao = 100
148-
149-let ap = 1
150-
151-let aq = 2
152-
153-func ar (as) = (toString(as) + ",")
135+func ai () = valueOrErrorMessage(addressFromString(getStringValue(X(), W)), "NFT Manager not set")
154136
155137
156-func at (as,au) = fraction(as, am, au, HALFEVEN)
138+let aj = "k_token_param"
139+
140+let ak = "k_token_type"
141+
142+let al = "fee_reduction"
143+
144+let am = 1
145+
146+let an = 2
147+
148+let ao = 15
149+
150+let ap = 15
151+
152+let aq = 1000
153+
154+let ar = (1 * (((((10 * 10) * 10) * 10) * 10) * 10))
155+
156+let as = (86400 * ar)
157+
158+let at = 100
159+
160+let au = 1
161+
162+let av = 2
163+
164+func aw (ax) = (toString(ax) + ",")
157165
158166
159-func av (as,au) = fraction(as, au, am, HALFEVEN)
167+func ay (ax,az) = fraction(ax, ar, az, HALFEVEN)
160168
161169
162-func aw (as) = if ((as > 0))
163- then as
164- else -(as)
170+func aA (ax,az) = fraction(ax, az, ar, HALFEVEN)
165171
166172
167-func ax (as,au) = if ((as >= au))
168- then as
169- else au
173+func aB (ax) = if ((ax > 0))
174+ then ax
175+ else -(ax)
170176
171177
172-func ay (az,aA) = ((az + "_") + aA)
178+func aC (ax,az) = if ((ax >= az))
179+ then ax
180+ else az
173181
174182
175-func aB (aC) = {
176- func aD (aE,aF) = ((aE + aF) + ",")
183+func aD (aE,aF) = ((aE + "_") + aF)
177184
178- let aG = {
179- let aH = aC
180- let aI = size(aH)
181- let aJ = ""
182- func aK (aL,aM) = if ((aM >= aI))
183- then aL
184- else aD(aL, aH[aM])
185185
186- func aN (aL,aM) = if ((aM >= aI))
187- then aL
186+func aG (aH) = {
187+ func aI (aJ,aK) = ((aJ + aK) + ",")
188+
189+ let aL = {
190+ let aM = aH
191+ let aN = size(aM)
192+ let aO = ""
193+ func aP (aQ,aR) = if ((aR >= aN))
194+ then aQ
195+ else aI(aQ, aM[aR])
196+
197+ func aS (aQ,aR) = if ((aR >= aN))
198+ then aQ
188199 else throw("List size exceeds 20")
189200
190- aN(aK(aK(aK(aK(aK(aK(aK(aK(aK(aK(aK(aK(aK(aK(aK(aK(aK(aK(aK(aK(aJ, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20)
201+ aS(aP(aP(aP(aP(aP(aP(aP(aP(aP(aP(aP(aP(aP(aP(aP(aP(aP(aP(aP(aP(aO, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20)
191202 }
192- let aO = dropRight(aG, 1)
193- let aP = if ((take(aO, 1) == ","))
194- then drop(aO, 1)
195- else aO
196- aP
203+ let aT = dropRight(aL, 1)
204+ let aU = if ((take(aT, 1) == ","))
205+ then drop(aT, 1)
206+ else aT
207+ aU
197208 }
198209
199210
200-func aQ (aR) = split(aR, ",")
211+func aV (aW) = split(aW, ",")
201212
202213
203-func aS (aC,aT,aU) = if ((size(aC) > aT))
204- then (removeByIndex(aC, 0) :+ aU)
205- else (aC :+ aU)
214+func aX (aH,aY,aZ) = if ((size(aH) > aY))
215+ then (removeByIndex(aH, 0) :+ aZ)
216+ else (aH :+ aZ)
206217
207218
208-func aV (aW) = valueOrErrorMessage(getInteger(this, aW), ("no value for " + aW))
219+func ba (bb) = valueOrErrorMessage(getInteger(this, bb), ("no value for " + bb))
209220
210221
211-func aX () = aV(d)
222+func bc (aF,aE) = {
223+ let aK = valueOrErrorMessage(getString(aF, aE), ("No value for key " + aE))
224+ aK
225+ }
212226
213227
214-func aY () = aV(l)
228+func bd (aF,aE) = {
229+ let aK = valueOrErrorMessage(getInteger(aF, aE), ("No value for key " + aE))
230+ aK
231+ }
215232
216233
217-func aZ () = aV(n)
234+func be () = ba(d)
218235
219236
220-func ba () = aV(E)
237+func bf () = ba(l)
221238
222239
223-func bb () = aV(F)
240+func bg () = ba(n)
224241
225242
226-func bc () = aV(G)
243+func bh () = ba(E)
227244
228245
229-func bd () = aV(J)
246+func bi () = ba(F)
230247
231248
232-func be () = aV(K)
249+func bj () = ba(G)
233250
234251
235-func bf () = aV(B)
252+func bk () = ba(J)
236253
237254
238-func bg () = aV(m)
255+func bl () = ba(K)
239256
240257
241-func bh () = (bg() * am)
258+func bm () = ba(B)
242259
243260
244-func bi () = (bg() * al)
261+func bn () = ba(m)
245262
246263
247-func bj () = aV(o)
264+func bo () = (bn() * ar)
248265
249266
250-func bk () = aV(p)
267+func bp () = (bn() * aq)
251268
252269
253-func bl () = aV(q)
270+func bq () = ba(o)
254271
255272
256-func bm () = aV(r)
273+func br () = ba(p)
257274
258275
259-func bn () = aV(s)
276+func bs () = ba(q)
260277
261278
262-func bo () = aV(t)
279+func bt () = ba(r)
263280
264281
265-func bp () = aV(z)
282+func bu () = ba(s)
266283
267284
268-func bq () = aV(A)
285+func bv () = ba(t)
269286
270287
271-func br () = aV(I)
288+func bw () = ba(z)
272289
273290
274-func bs () = aV(H)
291+func bx () = ba(A)
275292
276293
277-func bt (bu) = valueOrElse(getString(ae(), "k_sender"), toString(bu.caller))
294+func by () = ba(I)
278295
279296
280-func bv (bw,bx,by) = {
281- let bz = (bw - bx)
282- if (if (by)
283- then (0 > bz)
297+func bz () = ba(H)
298+
299+
300+func bA (bB) = valueOrElse(getString(af(), "k_sender"), toString(bB.caller))
301+
302+
303+func bC (bD,bE,bF) = {
304+ let bG = (bD - bE)
305+ if (if (bF)
306+ then (0 > bG)
284307 else false)
285308 then throw("Invalid margin")
286- else if (if (!(by))
287- then (bz >= 0)
309+ else if (if (!(bF))
310+ then (bG >= 0)
288311 else false)
289312 then throw("Invalid margin")
290313 else true
291314 }
292315
293316
294-func bA (bB) = if ((bB == 0))
317+func bH (bI) = if ((bI == 0))
295318 then throw("Should not be called with _positionSize == 0")
296- else if ((bB > 0))
297- then bp()
298- else bq()
319+ else if ((bI > 0))
320+ then bw()
321+ else bx()
299322
300323
301-func bC (bD) = {
302- let bE = getInteger(this, ay(e, bD))
303- let bF = bE
304- if ($isInstanceOf(bF, "Int"))
324+func bJ (bK) = {
325+ let bL = getInteger(this, aD(e, bK))
326+ let bM = bL
327+ if ($isInstanceOf(bM, "Int"))
305328 then {
306- let bG = bF
307- $Tuple4(bG, getIntegerValue(this, ay(f, bD)), getIntegerValue(this, ay(g, bD)), getIntegerValue(this, ay(h, bD)))
329+ let bN = bM
330+ $Tuple4(bN, getIntegerValue(this, aD(f, bK)), getIntegerValue(this, aD(g, bK)), getIntegerValue(this, aD(h, bK)))
308331 }
309332 else $Tuple4(0, 0, 0, 0)
310333 }
311334
312335
313-func bH (bD) = if ((bC(bD)._1 == 0))
336+func bO (bK) = if ((bJ(bK)._1 == 0))
314337 then throw("No open position")
315338 else true
316339
317340
318-func bI () = valueOrElse(getBoolean(this, j), false)
341+func bP () = valueOrElse(getBoolean(this, j), false)
319342
320343
321-func bJ () = valueOrElse(getBoolean(this, k), false)
344+func bQ () = valueOrElse(getBoolean(this, k), false)
322345
323346
324-func bK (bL,bM,bN) = if (bL)
347+func bR (bS,bT,bU) = if (bS)
325348 then {
326- let bO = (bb() - bN)
327- if ((0 >= bO))
349+ let bV = (bi() - bU)
350+ if ((0 >= bV))
328351 then throw("Tx lead to base asset reserve <= 0, revert")
329- else $Tuple4((ba() + bM), bO, (bc() + bN), (bd() + bM))
352+ else $Tuple4((bh() + bT), bV, (bj() + bU), (bk() + bT))
330353 }
331354 else {
332- let bP = (ba() - bM)
333- if ((0 >= bP))
355+ let bW = (bh() - bT)
356+ if ((0 >= bW))
334357 then throw("Tx lead to base quote reserve <= 0, revert")
335- else $Tuple4(bP, (bb() + bN), (bc() - bN), (bd() - bM))
358+ else $Tuple4(bW, (bi() + bU), (bj() - bU), (bk() - bT))
336359 }
337360
338361
339-func bQ (bL,bM) = {
340- let bR = ba()
341- let bS = bb()
342- let aW = av(bR, bS)
343- let bT = if (bL)
344- then (bR + bM)
345- else (bR - bM)
346- let bU = at(aW, bT)
347- let bV = aw((bU - bS))
348- let bW = if (bL)
349- then bV
350- else -(bV)
351- let bX = bK(bL, bM, bV)
352- let bY = bX._1
353- let bZ = bX._2
354- let ca = bX._3
355- let cb = bX._4
356- let cc = at(bR, bS)
357- let cd = at(bM, bV)
358- let ce = aw((cc - cd))
359- let cf = (am - at(cc, (cc + ce)))
360- let cg = bn()
361- if ((cf > cg))
362- then throw(((((((((((((("Price impact " + toString(cf)) + " > max price impact ") + toString(cg)) + " before quote asset: ") + toString(bR)) + " before base asset: ") + toString(bS)) + " quote asset amount to exchange: ") + toString(bM)) + " price before: ") + toString(cc)) + " marketPrice: ") + toString(cd)))
363- else $Tuple5(bW, bY, bZ, ca, cb)
362+func bX (bS,bT) = {
363+ let bY = bh()
364+ let bZ = bi()
365+ let bb = aA(bY, bZ)
366+ let ca = if (bS)
367+ then (bY + bT)
368+ else (bY - bT)
369+ let cb = ay(bb, ca)
370+ let cc = aB((cb - bZ))
371+ let cd = if (bS)
372+ then cc
373+ else -(cc)
374+ let ce = bR(bS, bT, cc)
375+ let cf = ce._1
376+ let cg = ce._2
377+ let ch = ce._3
378+ let ci = ce._4
379+ let cj = ay(bY, bZ)
380+ let ck = ay(bT, cc)
381+ let cl = aB((cj - ck))
382+ let cm = (ar - ay(cj, (cj + cl)))
383+ let cn = bu()
384+ if ((cm > cn))
385+ then throw(((((((((((((("Price impact " + toString(cm)) + " > max price impact ") + toString(cn)) + " before quote asset: ") + toString(bY)) + " before base asset: ") + toString(bZ)) + " quote asset amount to exchange: ") + toString(bT)) + " price before: ") + toString(cj)) + " marketPrice: ") + toString(ck)))
386+ else $Tuple5(cd, cf, cg, ch, ci)
364387 }
365388
366389
367-func ch (ci,cj,ck,cl) = {
368- let cm = if ((ci != 0))
390+func co (cp,cq,cr,cs) = {
391+ let ct = if ((cp != 0))
369392 then {
370- let cn = bA(ci)
371- av((cn - ck), ci)
393+ let cu = bH(cp)
394+ aA((cu - cr), cp)
372395 }
373396 else 0
374- let co = ((cl - cm) + cj)
375- let cp = if ((0 > co))
376- then $Tuple2(0, aw(co))
377- else $Tuple2(aw(co), 0)
378- let cq = cp._1
379- let cr = cp._2
380- $Tuple3(cq, cr, cm)
397+ let cv = ((cs - ct) + cq)
398+ let cw = if ((0 > cv))
399+ then $Tuple2(0, aB(cv))
400+ else $Tuple2(aB(cv), 0)
401+ let cx = cw._1
402+ let cy = cw._2
403+ $Tuple3(cx, cy, ct)
381404 }
382405
383406
384-func cs (bL,bN,ct,cu,cv) = {
385- let cc = at(cu, cv)
386- if ((bN == 0))
407+func cz (bS,bU,cA,cB,cC) = {
408+ let cj = ay(cB, cC)
409+ if ((bU == 0))
387410 then throw("Invalid base asset amount")
388411 else {
389- let aW = av(cu, cv)
390- let cw = if (bL)
391- then (cv + bN)
392- else (cv - bN)
393- let cx = at(aW, cw)
394- let cy = aw((cx - cu))
395- let cg = bn()
396- let cz = bK(!(bL), cy, bN)
397- let bY = cz._1
398- let bZ = cz._2
399- let ca = cz._3
400- let cb = cz._4
401- let cd = at(cy, bN)
402- let ce = aw((cc - cd))
403- let cf = (am - at(cc, (cc + ce)))
404- if (if ((cf > cg))
405- then ct
412+ let bb = aA(cB, cC)
413+ let cD = if (bS)
414+ then (cC + bU)
415+ else (cC - bU)
416+ let cE = ay(bb, cD)
417+ let cF = aB((cE - cB))
418+ let cn = bu()
419+ let cG = bR(!(bS), cF, bU)
420+ let cf = cG._1
421+ let cg = cG._2
422+ let ch = cG._3
423+ let ci = cG._4
424+ let ck = ay(cF, bU)
425+ let cl = aB((cj - ck))
426+ let cm = (ar - ay(cj, (cj + cl)))
427+ if (if ((cm > cn))
428+ then cA
406429 else false)
407- then throw(((((((((((((("Price impact " + toString(cf)) + " > max price impact ") + toString(cg)) + " before quote asset: ") + toString(cu)) + " before base asset: ") + toString(cv)) + " base asset amount to exchange: ") + toString(bN)) + " price before: ") + toString(cc)) + " market price: ") + toString(cd)))
408- else $Tuple8(cy, bY, bZ, ca, cb, (bs() - (if (bL)
409- then aw(bN)
410- else 0)), (br() - (if (!(bL))
411- then aw(bN)
412- else 0)), cf)
430+ then throw(((((((((((((("Price impact " + toString(cm)) + " > max price impact ") + toString(cn)) + " before quote asset: ") + toString(cB)) + " before base asset: ") + toString(cC)) + " base asset amount to exchange: ") + toString(bU)) + " price before: ") + toString(cj)) + " market price: ") + toString(ck)))
431+ else $Tuple8(cF, cf, cg, ch, ci, (bz() - (if (bS)
432+ then aB(bU)
433+ else 0)), (by() - (if (!(bS))
434+ then aB(bU)
435+ else 0)), cm)
413436 }
414437 }
415438
416439
417-func cA (bL,bN,ct) = cs(bL, bN, ct, ba(), bb())
440+func cH (bS,bU,cA) = cz(bS, bU, cA, bh(), bi())
418441
419442
420-func cB () = {
421- let cC = valueOrErrorMessage(addressFromString(getStringValue(this, c)), "")
422- let cD = getStringValue(this, a)
423- let cE = getStringValue(this, b)
424- let cF = valueOrErrorMessage(getInteger(cC, cD), ((("Can not get oracle price. Oracle: " + toString(cC)) + " key: ") + cD))
425- cF
443+func cI () = {
444+ let cJ = valueOrErrorMessage(addressFromString(getStringValue(this, c)), "")
445+ let cK = getStringValue(this, a)
446+ let cL = getStringValue(this, b)
447+ let cM = valueOrErrorMessage(getInteger(cJ, cK), ((("Can not get oracle price. Oracle: " + toString(cJ)) + " key: ") + cK))
448+ cM
426449 }
427450
428451
429-func cG (cu,cv) = {
430- let cH = cB()
431- let cI = at(cu, cv)
432- let cJ = at((cH + cI), (2 * am))
433- let cK = at(aw((cH - cI)), cJ)
434- if ((cK > bo()))
435- then throw(((("Price spread " + toString(cK)) + " > max price spread ") + toString(bo())))
452+func cN (cB,cC) = {
453+ let cO = cI()
454+ let cP = ay(cB, cC)
455+ let cQ = ay((cO + cP), (2 * ar))
456+ let cR = ay(aB((cO - cP)), cQ)
457+ if ((cR > bv()))
458+ then throw(((("Price spread " + toString(cR)) + " > max price spread ") + toString(bv())))
436459 else true
437460 }
438461
439462
440-func cL () = {
441- let cu = ba()
442- let cv = bb()
443- at(cu, cv)
463+func cS () = {
464+ let cB = bh()
465+ let cC = bi()
466+ ay(cB, cC)
444467 }
445468
446469
447-func cM () = {
448- let cH = cB()
449- let cN = cL()
450- (at(aw((cH - cN)), cH) > bm())
470+func cT () = {
471+ let cO = cI()
472+ let cU = cS()
473+ (ay(aB((cO - cU)), cO) > bt())
451474 }
452475
453476
454-func cO (bB,cP,cu,cv) = {
455- let cQ = aw(bB)
456- let cR = (0 > bB)
457- let cS = if ((cP == ap))
477+func cV (bI,cW,cB,cC) = {
478+ let cX = aB(bI)
479+ let cY = (0 > bI)
480+ let cZ = if ((cW == au))
458481 then {
459- let cT = cs(!(cR), cQ, false, cu, cv)
460- let cU = cT._1
461- let cV = cT._2
462- let cW = cT._3
463- let cX = cT._4
464- cU
482+ let da = cz(!(cY), cX, false, cB, cC)
483+ let db = da._1
484+ let dc = da._2
485+ let dd = da._3
486+ let de = da._4
487+ db
465488 }
466- else av(cQ, cB())
467- cS
489+ else aA(cX, cI())
490+ cZ
468491 }
469492
470493
471-func cY (bB,cZ,cu,cv,cP) = if ((bB == 0))
494+func df (bI,dg,cB,cC,cW) = if ((bI == 0))
472495 then throw("Invalid position size")
473496 else {
474- let cR = (0 > bB)
475- let cS = cO(bB, cP, cu, cv)
476- let da = if (cR)
477- then (cZ - cS)
478- else (cS - cZ)
479- $Tuple2(cS, da)
497+ let cY = (0 > bI)
498+ let cZ = cV(bI, cW, cB, cC)
499+ let dh = if (cY)
500+ then (dg - cZ)
501+ else (cZ - dg)
502+ $Tuple2(cZ, dh)
480503 }
481504
482505
483-func db (bD,cP) = {
484- let dc = bC(bD)
485- let bG = dc._1
486- let dd = dc._2
487- let de = dc._3
488- let df = dc._4
489- cY(bG, de, ba(), bb(), cP)
506+func di (bK,cW) = {
507+ let dj = bJ(bK)
508+ let bN = dj._1
509+ let dk = dj._2
510+ let dl = dj._3
511+ let dm = dj._4
512+ df(bN, dl, bh(), bi(), cW)
490513 }
491514
492515
493-func dg (dh,di,dj) = at((dh - di), dj)
516+func dn (do,dp,dq) = ay((do - dp), dq)
494517
495518
496-func dk (bD,cP) = {
497- let dl = bC(bD)
498- let bG = dl._1
499- let dd = dl._2
500- let dm = dl._3
501- let df = dl._4
502- let dn = db(bD, cP)
503- let cS = dn._1
504- let da = dn._2
505- let do = ch(bG, dd, df, da)
506- let cq = do._1
507- let cr = do._2
508- dg(cq, cr, cS)
519+func dr (bK,cW) = {
520+ let ds = bJ(bK)
521+ let bN = ds._1
522+ let dk = ds._2
523+ let dt = ds._3
524+ let dm = ds._4
525+ let du = di(bK, cW)
526+ let cZ = du._1
527+ let dh = du._2
528+ let dv = co(bN, dk, dm, dh)
529+ let cx = dv._1
530+ let cy = dv._2
531+ dn(cx, cy, cZ)
509532 }
510533
511534
512-func dp (bD) = dk(bD, ap)
535+func dw (bK) = dr(bK, au)
513536
514537
515-func dq (bD,bB) = {
516- let dr = ax(bl(), (am - at(dp(bD), bj())))
517- let ds = av(aw(bB), dr)
518- let dt = cA((bB > 0), ds, false)
519- let du = dt._1
520- let cf = dt._8
521- if ((bn() > cf))
522- then du
538+func dx (bK,bI) = {
539+ let dy = aC(bs(), (ar - ay(dw(bK), bq())))
540+ let dz = aA(aB(bI), dy)
541+ let dA = cH((bI > 0), dz, false)
542+ let dB = dA._1
543+ let cm = dA._8
544+ if ((bu() > cm))
545+ then dB
523546 else {
524- let dv = av(aw(bB), bl())
525- let dw = cA((bB > 0), dv, false)._1
526- dw
547+ let dC = aA(aB(bI), bs())
548+ let dD = cH((bI > 0), dC, false)._1
549+ dD
527550 }
528551 }
529552
530553
531-func dx (bD,ct) = {
532- let dy = bC(bD)
533- let bG = dy._1
534- let dd = dy._2
535- let de = dy._3
536- let df = dy._4
537- let da = db(bD, ap)._2
538- let dz = ch(bG, dd, df, da)
539- let cq = dz._1
540- let cr = dz._2
541- let dv = -(bG)
542- let dA = da
543- let dB = -(cq)
544- let dC = cA((bG > 0), aw(bG), ct)
545- let dw = dC._1
546- let bT = dC._2
547- let bU = dC._3
548- let dD = dC._4
549- let dE = dC._5
550- let dF = dC._6
551- let dG = dC._7
552- let dH = (be() - de)
553- $Tuple12(dv, cr, dA, dB, bT, bU, dD, dE, dH, dw, dF, dG)
554+func dE (bK,cA) = {
555+ let dF = bJ(bK)
556+ let bN = dF._1
557+ let dk = dF._2
558+ let dl = dF._3
559+ let dm = dF._4
560+ let dh = di(bK, au)._2
561+ let dG = co(bN, dk, dm, dh)
562+ let cx = dG._1
563+ let cy = dG._2
564+ let dC = -(bN)
565+ let dH = dh
566+ let dI = -(cx)
567+ let dJ = cH((bN > 0), aB(bN), cA)
568+ let dD = dJ._1
569+ let ca = dJ._2
570+ let cb = dJ._3
571+ let dK = dJ._4
572+ let dL = dJ._5
573+ let dM = dJ._6
574+ let dN = dJ._7
575+ let dO = (bl() - dl)
576+ $Tuple12(dC, cy, dH, dI, ca, cb, dK, dL, dO, dD, dM, dN)
554577 }
555578
556579
557-func dI () = {
558- let dJ = ((lastBlock.timestamp / 1000) / 60)
559- let dK = (dJ - aj)
560- let dL = valueOrElse(getString(this, u), "")
561- let dM = split(dL, ",")
562- func dN (aE,dO) = if ((dK >= parseIntValue(dO)))
563- then (aE :+ parseIntValue(dO))
564- else aE
580+func dP () = {
581+ let dQ = ((lastBlock.timestamp / 1000) / 60)
582+ let dR = (dQ - ao)
583+ let dS = valueOrElse(getString(this, u), "")
584+ let dT = split(dS, ",")
585+ func dU (aJ,dV) = if ((dR >= parseIntValue(dV)))
586+ then (aJ :+ parseIntValue(dV))
587+ else aJ
565588
566- let dP = {
567- let aH = dM
568- let aI = size(aH)
569- let aJ = nil
570- func aK (aL,aM) = if ((aM >= aI))
571- then aL
572- else dN(aL, aH[aM])
589+ let dW = {
590+ let aM = dT
591+ let aN = size(aM)
592+ let aO = nil
593+ func aP (aQ,aR) = if ((aR >= aN))
594+ then aQ
595+ else dU(aQ, aM[aR])
573596
574- func aN (aL,aM) = if ((aM >= aI))
575- then aL
597+ func aS (aQ,aR) = if ((aR >= aN))
598+ then aQ
576599 else throw("List size exceeds 20")
577600
578- aN(aK(aK(aK(aK(aK(aK(aK(aK(aK(aK(aK(aK(aK(aK(aK(aK(aK(aK(aK(aK(aJ, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20)
601+ aS(aP(aP(aP(aP(aP(aP(aP(aP(aP(aP(aP(aP(aP(aP(aP(aP(aP(aP(aP(aP(aO, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20)
579602 }
580- let dQ = if ((size(dP) > 0))
581- then max(dP)
582- else parseIntValue(dM[0])
583- let dR = valueOrElse(getInteger(this, v), 0)
584- let dS = valueOrElse(getInteger(this, ((w + "_") + toString(dR))), 0)
585- let dT = valueOrElse(getInteger(this, ((x + "_") + toString(dR))), 0)
586- let dU = (dS + ((dJ - dR) * dT))
587- let dV = valueOrElse(getInteger(this, ((w + "_") + toString(dQ))), 0)
588- let dW = valueOrElse(getInteger(this, ((x + "_") + toString(dQ))), 0)
589- let dX = (dV + ((dK - dQ) * dW))
590- ((dU - dX) / aj)
603+ let dX = if ((size(dW) > 0))
604+ then max(dW)
605+ else parseIntValue(dT[0])
606+ let dY = valueOrElse(getInteger(this, v), 0)
607+ let dZ = valueOrElse(getInteger(this, ((w + "_") + toString(dY))), 0)
608+ let ea = valueOrElse(getInteger(this, ((x + "_") + toString(dY))), 0)
609+ let eb = (dZ + ((dQ - dY) * ea))
610+ let ec = valueOrElse(getInteger(this, ((w + "_") + toString(dX))), 0)
611+ let ed = valueOrElse(getInteger(this, ((x + "_") + toString(dX))), 0)
612+ let ee = (ec + ((dR - dX) * ed))
613+ ((eb - ee) / ao)
591614 }
592615
593616
594-func dY (dZ) = {
595- let bB = bc()
596- let ea = (bB > 0)
597- let eb = cA(ea, aw(bB), false)._1
598- let ec = bb()
599- let ed = av(ec, dZ)
600- let ee = cY(bB, eb, ed, ec, ap)._2
601- $Tuple2(ed, ee)
617+func ef (eg) = {
618+ let bI = bj()
619+ let eh = (bI > 0)
620+ let ei = cH(eh, aB(bI), false)._1
621+ let ej = bi()
622+ let ek = aA(ej, eg)
623+ let el = df(bI, ei, ek, ej, au)._2
624+ $Tuple2(ek, el)
602625 }
603626
604627
605-func ef () = {
606- let eg = cB()
607- let eh = dI()
608- let ei = (eh - eg)
609- if (if ((br() == 0))
628+func em () = {
629+ let en = cI()
630+ let eo = dP()
631+ let ep = (eo - en)
632+ if (if ((by() == 0))
610633 then true
611- else (bs() == 0))
634+ else (bz() == 0))
612635 then $Tuple2(0, 0)
613- else if ((0 > ei))
636+ else if ((0 > ep))
614637 then {
615- let ej = at(av(ei, bh()), an)
616- let ek = at(av(ej, br()), bs())
617- $Tuple2(ej, ek)
638+ let eq = ay(aA(ep, bo()), as)
639+ let er = ay(aA(eq, by()), bz())
640+ $Tuple2(eq, er)
618641 }
619642 else {
620- let ek = at(av(ei, bh()), an)
621- let ej = at(av(ek, bs()), br())
622- $Tuple2(ej, ek)
643+ let er = ay(aA(ep, bo()), as)
644+ let eq = ay(aA(er, bz()), by())
645+ $Tuple2(eq, er)
623646 }
624647 }
625648
626649
627-func el (em,en,eo,ep,eq,er,es,et,eu) = [IntegerEntry(n, em), IntegerEntry(o, en), IntegerEntry(p, eo), IntegerEntry(m, ep), IntegerEntry(l, eq), IntegerEntry(r, er), IntegerEntry(s, es), IntegerEntry(q, et), IntegerEntry(t, eu)]
650+func es (bB) = {
651+ let et = bf()
652+ let eu = if ((size(bB.payments) > 1))
653+ then {
654+ let ev = toBase58String(valueOrErrorMessage(bB.payments[1].assetId, "Invalid attached artifact"))
655+ let ew = bc(ai(), aD(ak, ev))
656+ if ((ew == al))
657+ then {
658+ let ex = bd(ai(), aD(aj, ev))
659+ let ey = aA(et, ex)
660+ $Tuple2(ey, true)
661+ }
662+ else throw("Invalid attached artifact")
663+ }
664+ else $Tuple2(et, false)
665+ let ey = eu._1
666+ let ez = eu._2
667+ $Tuple2(ey, ez)
668+ }
628669
629670
630-func ev (ew,ex,ey,ez,eA) = [IntegerEntry(B, ew), IntegerEntry(z, ex), IntegerEntry(A, ey), IntegerEntry(C, ez), IntegerEntry(D, eA)]
671+func eA (eB,eC,eD,eE,eF,eG,eH,eI,eJ) = [IntegerEntry(n, eB), IntegerEntry(o, eC), IntegerEntry(p, eD), IntegerEntry(m, eE), IntegerEntry(l, eF), IntegerEntry(r, eG), IntegerEntry(s, eH), IntegerEntry(q, eI), IntegerEntry(t, eJ)]
631672
632673
633-func eB (aA,eC,eD,eE,cn) = [IntegerEntry(ay(e, aA), eC), IntegerEntry(ay(f, aA), eD), IntegerEntry(ay(g, aA), eE), IntegerEntry(ay(h, aA), cn)]
674+func eK (eL,eM,eN,eO,eP) = [IntegerEntry(B, eL), IntegerEntry(z, eM), IntegerEntry(A, eN), IntegerEntry(C, eO), IntegerEntry(D, eP)]
634675
635676
636-func eF (eG) = {
637- let dJ = ((lastBlock.timestamp / 1000) / 60)
638- let eH = valueOrElse(getInteger(this, v), 0)
639- if ((eH > dJ))
677+func eQ (aF,eR,eS,eT,cu) = [IntegerEntry(aD(e, aF), eR), IntegerEntry(aD(f, aF), eS), IntegerEntry(aD(g, aF), eT), IntegerEntry(aD(h, aF), cu)]
678+
679+
680+func eU (eV) = {
681+ let dQ = ((lastBlock.timestamp / 1000) / 60)
682+ let eW = valueOrElse(getInteger(this, v), 0)
683+ if ((eW > dQ))
640684 then throw("TWAP out-of-order")
641685 else {
642- let dR = if ((eH == 0))
643- then dJ
644- else eH
645- if ((dJ > eH))
686+ let dY = if ((eW == 0))
687+ then dQ
688+ else eW
689+ if ((dQ > eW))
646690 then {
647- let eI = valueOrElse(getInteger(this, ((w + "_") + toString(eH))), 0)
648- let eJ = valueOrElse(getInteger(this, ((x + "_") + toString(eH))), eG)
649- let eK = (eI + ((dJ - dR) * eJ))
650- let dM = aS(aQ(valueOrElse(getString(this, u), "")), aj, toString(dJ))
651-[IntegerEntry(ay(w, toString(dJ)), eK), IntegerEntry(ay(x, toString(dJ)), eG), IntegerEntry(ay(y, toString(dJ)), eH), IntegerEntry(v, dJ), StringEntry(u, aB(dM))]
691+ let eX = valueOrElse(getInteger(this, ((w + "_") + toString(eW))), 0)
692+ let eY = valueOrElse(getInteger(this, ((x + "_") + toString(eW))), eV)
693+ let eZ = (eX + ((dQ - dY) * eY))
694+ let dT = aX(aV(valueOrElse(getString(this, u), "")), ao, toString(dQ))
695+[IntegerEntry(aD(w, toString(dQ)), eZ), IntegerEntry(aD(x, toString(dQ)), eV), IntegerEntry(aD(y, toString(dQ)), eW), IntegerEntry(v, dQ), StringEntry(u, aG(dT))]
652696 }
653697 else {
654- let eL = valueOrElse(getInteger(this, ay(y, toString(dJ))), 0)
655- let eI = valueOrElse(getInteger(this, ay(w, toString(eL))), 0)
656- let eJ = valueOrElse(getInteger(this, ay(x, toString(eL))), eG)
657- let eK = (eI + ((dJ - eL) * eJ))
658-[IntegerEntry(ay(w, toString(dJ)), eK), IntegerEntry(ay(x, toString(dJ)), eG)]
698+ let fa = valueOrElse(getInteger(this, aD(y, toString(dQ))), 0)
699+ let eX = valueOrElse(getInteger(this, aD(w, toString(fa))), 0)
700+ let eY = valueOrElse(getInteger(this, aD(x, toString(fa))), eV)
701+ let eZ = (eX + ((dQ - fa) * eY))
702+[IntegerEntry(aD(w, toString(dQ)), eZ), IntegerEntry(aD(x, toString(dQ)), eV)]
659703 }
660704 }
661705 }
662706
663707
664-func eM (bR,bS) = [IntegerEntry(E, bR), IntegerEntry(F, bS)]
708+func fb (bY,bZ) = [IntegerEntry(E, bY), IntegerEntry(F, bZ)]
665709
666710
667-func eN (bR,bS,eO,eP,eQ,eR,eS) = if (((eR - eS) != eO))
668- then throw(((((("Invalid AMM state data: " + toString(eR)) + " + ") + toString(eS)) + " != ") + toString(eO)))
669- else ((eM(bR, bS) ++ [IntegerEntry(G, eO), IntegerEntry(J, eP), IntegerEntry(K, eQ), IntegerEntry(H, eR), IntegerEntry(I, eS)]) ++ eF(at(bR, bS)))
711+func fc (bY,bZ,fd,fe,ff,fg,fh) = if (((fg - fh) != fd))
712+ then throw(((((("Invalid AMM state data: " + toString(fg)) + " + ") + toString(fh)) + " != ") + toString(fd)))
713+ else ((fb(bY, bZ) ++ [IntegerEntry(G, fd), IntegerEntry(J, fe), IntegerEntry(K, ff), IntegerEntry(H, fg), IntegerEntry(I, fh)]) ++ eU(ay(bY, bZ)))
670714
671715
672-func eT (aA) = [DeleteEntry(ay(e, aA)), DeleteEntry(ay(f, aA)), DeleteEntry(ay(g, aA)), DeleteEntry(ay(h, aA)), IntegerEntry(ay(i, aA), lastBlock.timestamp)]
716+func fi (aF) = [DeleteEntry(aD(e, aF)), DeleteEntry(aD(f, aF)), DeleteEntry(aD(g, aF)), DeleteEntry(aD(h, aF)), IntegerEntry(aD(i, aF), lastBlock.timestamp)]
673717
674718
675-func eU (aA,eV) = {
676- let eW = assetBalance(this, Z())
677- if ((eV > eW))
678- then throw(((("Unable to withdraw " + toString(eV)) + " from contract balance ") + toString(eW)))
679- else [ScriptTransfer(aA, eV, Z())]
719+func fj (aF,fk) = {
720+ let fl = assetBalance(this, aa())
721+ if ((fk > fl))
722+ then throw(((("Unable to withdraw " + toString(fk)) + " from contract balance ") + toString(fl)))
723+ else [ScriptTransfer(aF, fk, aa())]
680724 }
681725
682726
683-func eX (bu) = if ((0 > bu))
727+func fm (bB) = if ((0 > bB))
684728 then throw("Balance")
685- else [IntegerEntry(d, bu)]
729+ else [IntegerEntry(d, bB)]
686730
687731
688-func eY (bu) = [ScriptTransfer(ab(), bu, Z())]
732+func fn (bB) = [ScriptTransfer(ac(), bB, aa())]
689733
690734
691-@Callable(bu)
692-func pause () = if ((bu.caller != X()))
735+func fo (fp,bB) = if (fp)
736+ then [Burn(valueOrErrorMessage(bB.payments[1].assetId, "Invalid artifact"), 1)]
737+ else nil
738+
739+
740+@Callable(bB)
741+func pause () = if ((bB.caller != Y()))
693742 then throw("Invalid togglePause params")
694743 else [BooleanEntry(k, true)]
695744
696745
697746
698-@Callable(bu)
699-func unpause () = if ((bu.caller != X()))
747+@Callable(bB)
748+func unpause () = if ((bB.caller != Y()))
700749 then throw("Invalid togglePause params")
701750 else [BooleanEntry(k, false)]
702751
703752
704753
705-@Callable(bu)
706-func addLiquidity (bM) = if (if ((bu.caller != X()))
754+@Callable(bB)
755+func addLiquidity (bT) = if (if ((bB.caller != Y()))
707756 then true
708- else (0 >= bM))
757+ else (0 >= bT))
709758 then throw("Invalid addLiquidity params")
710759 else {
711- let bR = ba()
712- let bS = bb()
713- let eG = at(bR, bS)
714- let eZ = at(bM, eG)
715- let fa = (bR + bM)
716- let fb = (bS + eZ)
717- eM(fa, fb)
760+ let bY = bh()
761+ let bZ = bi()
762+ let eV = ay(bY, bZ)
763+ let fq = ay(bT, eV)
764+ let fr = (bY + bT)
765+ let fs = (bZ + fq)
766+ fb(fr, fs)
718767 }
719768
720769
721770
722-@Callable(bu)
723-func removeLiquidity (bM) = if (if ((bu.caller != X()))
771+@Callable(bB)
772+func removeLiquidity (bT) = if (if ((bB.caller != Y()))
724773 then true
725- else (0 >= bM))
774+ else (0 >= bT))
726775 then throw("Invalid removeLiquidity params")
727776 else {
728- let bR = ba()
729- let bS = bb()
730- let eG = at(bR, bS)
731- let fc = at(bM, eG)
732- let fa = (bR - bM)
733- let fb = (bS - fc)
734- eM(fa, fb)
777+ let bY = bh()
778+ let bZ = bi()
779+ let eV = ay(bY, bZ)
780+ let ft = ay(bT, eV)
781+ let fr = (bY - bT)
782+ let fs = (bZ - ft)
783+ fb(fr, fs)
735784 }
736785
737786
738787
739-@Callable(bu)
740-func changeSettings (em,en,eo,ep,eq,er,es,et,eu) = if ((bu.caller != X()))
788+@Callable(bB)
789+func changeSettings (eB,eC,eD,eE,eF,eG,eH,eI,eJ) = if ((bB.caller != Y()))
741790 then throw("Invalid changeSettings params")
742- else el(em, en, eo, ep, eq, er, es, et, eu)
791+ else eA(eB, eC, eD, eE, eF, eG, eH, eI, eJ)
743792
744793
745794
746-@Callable(bu)
747-func initialize (bR,bS,ep,em,en,eo,eq,fd,fe,ff,er,es,et,eu) = if (if (if (if (if (if (if (if (if (if (if (if ((0 >= bR))
795+@Callable(bB)
796+func initialize (bY,bZ,eE,eB,eC,eD,eF,fu,fv,fw,eG,eH,eI,eJ) = if (if (if (if (if (if (if (if (if (if (if (if ((0 >= bY))
748797 then true
749- else (0 >= bS))
798+ else (0 >= bZ))
750799 then true
751- else (0 >= ep))
800+ else (0 >= eE))
752801 then true
753- else (0 >= em))
802+ else (0 >= eB))
754803 then true
755- else (0 >= en))
804+ else (0 >= eC))
756805 then true
757- else (0 >= eo))
806+ else (0 >= eD))
758807 then true
759- else (0 >= eq))
808+ else (0 >= eF))
760809 then true
761- else (0 >= er))
810+ else (0 >= eG))
762811 then true
763- else (0 >= es))
812+ else (0 >= eH))
764813 then true
765- else (0 >= et))
814+ else (0 >= eI))
766815 then true
767- else (0 >= eu))
816+ else (0 >= eJ))
768817 then true
769- else bI())
818+ else bP())
770819 then throw("Invalid initialize parameters")
771- else ((((eN(bR, bS, 0, 0, 0, 0, 0) ++ el(em, en, eo, ep, eq, er, es, et, eu)) ++ ev((lastBlock.timestamp + ep), 0, 0, 0, 0)) ++ eX(0)) ++ [BooleanEntry(j, true), StringEntry(c, fd), StringEntry(a, fe), StringEntry(L, ff)])
820+ else ((((fc(bY, bZ, 0, 0, 0, 0, 0) ++ eA(eB, eC, eD, eE, eF, eG, eH, eI, eJ)) ++ eK((lastBlock.timestamp + eE), 0, 0, 0, 0)) ++ fm(0)) ++ [BooleanEntry(j, true), StringEntry(c, fu), StringEntry(a, fv), StringEntry(L, fw)])
772821
773822
774823
775-@Callable(bu)
776-func setInitMarginRatio (em) = if (if ((0 >= em))
824+@Callable(bB)
825+func setInitMarginRatio (eB) = if (if ((0 >= eB))
777826 then true
778- else !(bI()))
827+ else !(bP()))
779828 then throw("Invalid setInitMarginRatio parameters")
780- else el(em, bj(), bk(), bg(), aY(), bm(), bn(), bl(), bo())
829+ else eA(eB, bq(), br(), bn(), bf(), bt(), bu(), bs(), bv())
781830
782831
783832
784-@Callable(bu)
785-func decreasePosition (eV,fg,fh) = if (if (if (if (if ((0 >= eV))
833+@Callable(bB)
834+func decreasePosition (fk,fx,fy) = if (if (if (if (if ((0 >= fk))
786835 then true
787- else !(bI()))
836+ else !(bP()))
788837 then true
789- else !(bv(at(am, fg), aZ(), true)))
838+ else !(bC(ay(ar, fx), bg(), true)))
790839 then true
791- else !(bH(toString(bu.caller))))
840+ else !(bO(toString(bB.caller))))
792841 then true
793- else bJ())
842+ else bQ())
794843 then throw("Invalid decreasePosition parameters")
795844 else {
796- let fi = bC(toString(bu.caller))
797- let fj = fi._1
798- let fk = fi._2
799- let fl = fi._3
800- let fm = fi._4
801- let fn = if ((fj > 0))
802- then ai
803- else ah
804- let fo = (fn == ah)
805- let fp = av(eV, fg)
806- let fq = db(toString(bu.caller), ap)
807- let fr = fq._1
808- let da = fq._2
809- let fs = if ((fr > fp))
845+ let fz = bJ(toString(bB.caller))
846+ let fA = fz._1
847+ let fB = fz._2
848+ let fC = fz._3
849+ let fD = fz._4
850+ let fE = if ((fA > 0))
851+ then an
852+ else am
853+ let fF = (fE == am)
854+ let fG = aA(fk, fx)
855+ let fH = di(toString(bB.caller), au)
856+ let fI = fH._1
857+ let dh = fH._2
858+ let fJ = if ((fI > fG))
810859 then {
811- let ft = bQ(fo, fp)
812- let dv = ft._1
813- let bT = ft._2
814- let bU = ft._3
815- let dD = ft._4
816- let dE = ft._5
817- let fu = aw(dv)
818- if (if ((fh != 0))
819- then (fh > fu)
860+ let fK = bX(fF, fG)
861+ let dC = fK._1
862+ let ca = fK._2
863+ let cb = fK._3
864+ let dK = fK._4
865+ let dL = fK._5
866+ let fL = aB(dC)
867+ if (if ((fy != 0))
868+ then (fy > fL)
820869 else false)
821- then throw(((("Too little base asset exchanged, got " + toString(fu)) + " expected ") + toString(fh)))
870+ then throw(((("Too little base asset exchanged, got " + toString(fL)) + " expected ") + toString(fy)))
822871 else {
823- let dA = at(av(da, fu), aw(fj))
824- let fv = ch(fj, fk, fm, dA)
825- let cq = fv._1
826- let cr = fv._2
827- let cm = fv._3
828- let dw = fp
829- let fw = (da - dA)
830- let fx = if ((fj > 0))
831- then ((fr - dw) - fw)
832- else ((fw + fr) - dw)
833- let fy = (fj + dv)
834- $Tuple11(fy, cq, aw(fx), bA(fy), bU, bT, dD, dE, (be() - fp), (bs() - (if ((fy > 0))
835- then aw(dv)
836- else 0)), (br() - (if ((0 > fy))
837- then aw(dv)
872+ let dH = ay(aA(dh, fL), aB(fA))
873+ let fM = co(fA, fB, fD, dH)
874+ let cx = fM._1
875+ let cy = fM._2
876+ let ct = fM._3
877+ let dD = fG
878+ let fN = (dh - dH)
879+ let fO = if ((fA > 0))
880+ then ((fI - dD) - fN)
881+ else ((fN + fI) - dD)
882+ let fP = (fA + dC)
883+ $Tuple11(fP, cx, aB(fO), bH(fP), cb, ca, dK, dL, (bl() - fG), (bz() - (if ((fP > 0))
884+ then aB(dC)
885+ else 0)), (by() - (if ((0 > fP))
886+ then aB(dC)
838887 else 0)))
839888 }
840889 }
841890 else throw("Close position first")
842- let fy = fs._1
843- let fz = fs._2
844- let fA = fs._3
845- let fB = fs._4
846- let bU = fs._5
847- let bT = fs._6
848- let dD = fs._7
849- let dE = fs._8
850- let dH = fs._9
851- let dF = fs._10
852- let dG = fs._11
853- let fC = invoke(ad(), "notifyNotional", [toString(bu.caller), fA], nil)
854- if ((fC == fC))
855- then (eB(toString(bu.caller), fy, fz, fA, fB) ++ eN(bT, bU, dD, dE, dH, dF, dG))
891+ let fP = fJ._1
892+ let fQ = fJ._2
893+ let fR = fJ._3
894+ let fS = fJ._4
895+ let cb = fJ._5
896+ let ca = fJ._6
897+ let dK = fJ._7
898+ let dL = fJ._8
899+ let dO = fJ._9
900+ let dM = fJ._10
901+ let dN = fJ._11
902+ let fT = invoke(ae(), "notifyNotional", [toString(bB.caller), fR], nil)
903+ if ((fT == fT))
904+ then (eQ(toString(bB.caller), fP, fQ, fR, fS) ++ fc(ca, cb, dK, dL, dO, dM, dN))
856905 else throw("Strict value is not equal to itself.")
857906 }
858907
859908
860909
861-@Callable(bu)
862-func increasePosition (fn,fg,fh,fD) = {
863- let fE = bu.payments[0].amount
864- if (if (if (if (if (if (if ((fn != ah))
865- then (fn != ai)
910+@Callable(bB)
911+func increasePosition (fE,fx,fy,fU) = {
912+ let fV = bB.payments[0].amount
913+ if (if (if (if (if (if (if ((fE != am))
914+ then (fE != an)
866915 else false)
867916 then true
868- else (0 >= fE))
917+ else (0 >= fV))
869918 then true
870- else !(bI()))
919+ else !(bP()))
871920 then true
872- else (bu.payments[0].assetId != Z()))
921+ else (bB.payments[0].assetId != aa()))
873922 then true
874- else !(bv(at(am, fg), aZ(), true)))
923+ else !(bC(ay(ar, fx), bg(), true)))
875924 then true
876- else bJ())
925+ else bQ())
877926 then throw("Invalid increasePosition parameters")
878927 else {
879- let bD = toString(bu.caller)
880- let fF = av(fE, aY())
881- let fG = invoke(af(), "acceptPaymentWithLink", [bD, fD], [AttachedPayment(Z(), fF)])
882- if ((fG == fG))
928+ let bK = toString(bB.caller)
929+ let et = bf()
930+ let fW = es(bB)
931+ let ey = fW._1
932+ let ez = fW._2
933+ let fX = aA(fV, ey)
934+ let fY = invoke(ag(), "acceptPaymentWithLink", [bK, fU], [AttachedPayment(aa(), fX)])
935+ if ((fY == fY))
883936 then {
884- let fH = {
885- let bF = fG
886- if ($isInstanceOf(bF, "Int"))
937+ let fZ = {
938+ let bM = fY
939+ if ($isInstanceOf(bM, "Int"))
887940 then {
888- let fI = bF
889- fI
941+ let ga = bM
942+ ga
890943 }
891944 else throw("Invalid referrerFee")
892945 }
893- let eV = (fE - fF)
894- let fJ = (fF - fH)
895- let fK = bC(bD)
896- let fj = fK._1
897- let fk = fK._2
898- let fl = fK._3
899- let fm = fK._4
900- let fL = (fj == 0)
901- let fM = if ((fj > 0))
902- then (fn == ah)
903- else (fn == ai)
904- let fN = if (!(fL))
905- then fM
946+ let fk = (fV - fX)
947+ let gb = (fX - fZ)
948+ let gc = bJ(bK)
949+ let fA = gc._1
950+ let fB = gc._2
951+ let fC = gc._3
952+ let fD = gc._4
953+ let gd = (fA == 0)
954+ let ge = if ((fA > 0))
955+ then (fE == am)
956+ else (fE == an)
957+ let gf = if (!(gd))
958+ then ge
906959 else false
907- let fo = (fn == ah)
908- let fO = if (if (fL)
960+ let fF = (fE == am)
961+ let gg = if (if (gd)
909962 then true
910- else fN)
963+ else gf)
911964 then {
912- let fp = av(eV, fg)
913- let fP = bQ(fo, fp)
914- let bW = fP._1
915- let bT = fP._2
916- let bU = fP._3
917- let dD = fP._4
918- let dE = fP._5
919- if (if ((fh != 0))
920- then (fh > aw(bW))
965+ let fG = aA(fk, fx)
966+ let gh = bX(fF, fG)
967+ let cd = gh._1
968+ let ca = gh._2
969+ let cb = gh._3
970+ let dK = gh._4
971+ let dL = gh._5
972+ if (if ((fy != 0))
973+ then (fy > aB(cd))
921974 else false)
922- then throw(((("Limit error: " + toString(aw(bW))) + " < ") + toString(fh)))
975+ then throw(((("Limit error: " + toString(aB(cd))) + " < ") + toString(fy)))
923976 else {
924- let fy = (fj + bW)
925- let fQ = at(fp, fg)
926- let fR = ch(fj, fk, fm, fQ)
927- let cq = fR._1
928- let cV = fR._2
929- let cW = fR._3
930- if (!(cG(bT, bU)))
977+ let fP = (fA + cd)
978+ let gi = ay(fG, fx)
979+ let gj = co(fA, fB, fD, gi)
980+ let cx = gj._1
981+ let dc = gj._2
982+ let dd = gj._3
983+ if (!(cN(ca, cb)))
931984 then throw("Over max spread limit")
932- else $Tuple11(fy, cq, (fl + fp), bA(fy), bU, bT, dD, dE, (be() + fp), (bs() + (if ((fy > 0))
933- then aw(bW)
934- else 0)), (br() + (if ((0 > fy))
935- then aw(bW)
985+ else $Tuple11(fP, cx, (fC + fG), bH(fP), cb, ca, dK, dL, (bl() + fG), (bz() + (if ((fP > 0))
986+ then aB(cd)
987+ else 0)), (by() + (if ((0 > fP))
988+ then aB(cd)
936989 else 0)))
937990 }
938991 }
939992 else {
940- let fp = av(eV, fg)
941- let fS = db(toString(bu.caller), ap)
942- let fr = fS._1
943- let da = fS._2
944- if ((fr > fp))
993+ let fG = aA(fk, fx)
994+ let gk = di(toString(bB.caller), au)
995+ let fI = gk._1
996+ let dh = gk._2
997+ if ((fI > fG))
945998 then throw("Use decreasePosition to decrease position size")
946999 else throw("Close position first")
9471000 }
948- let fy = fO._1
949- let fz = fO._2
950- let fA = fO._3
951- let fB = fO._4
952- let bU = fO._5
953- let bT = fO._6
954- let dD = fO._7
955- let dE = fO._8
956- let dH = fO._9
957- let dF = fO._10
958- let dG = fO._11
959- let fT = (fJ / 2)
960- let fU = (fJ - fT)
961- let fV = invoke(ag(), "deposit", nil, [AttachedPayment(Z(), eV)])
962- if ((fV == fV))
1001+ let fP = gg._1
1002+ let fQ = gg._2
1003+ let fR = gg._3
1004+ let fS = gg._4
1005+ let cb = gg._5
1006+ let ca = gg._6
1007+ let dK = gg._7
1008+ let dL = gg._8
1009+ let dO = gg._9
1010+ let dM = gg._10
1011+ let dN = gg._11
1012+ let gl = (gb / 2)
1013+ let gm = (gb - gl)
1014+ let gn = invoke(ah(), "deposit", nil, [AttachedPayment(aa(), fk)])
1015+ if ((gn == gn))
9631016 then {
964- let fW = invoke(ac(), "deposit", nil, [AttachedPayment(Z(), fU)])
965- if ((fW == fW))
1017+ let go = invoke(ad(), "deposit", nil, [AttachedPayment(aa(), gm)])
1018+ if ((go == go))
9661019 then {
967- let fX = invoke(ad(), "notifyFees", [bD, fJ], nil)
968- if ((fX == fX))
1020+ let gp = invoke(ae(), "notifyFees", [bK, gb], nil)
1021+ if ((gp == gp))
9691022 then {
970- let fC = invoke(ad(), "notifyNotional", [bD, fA], nil)
971- if ((fC == fC))
972- then (((eB(bD, fy, fz, fA, fB) ++ eN(bT, bU, dD, dE, dH, dF, dG)) ++ eY(fT)) ++ eX((aX() + eV)))
1023+ let fT = invoke(ae(), "notifyNotional", [bK, fR], nil)
1024+ if ((fT == fT))
1025+ then ((((eQ(bK, fP, fQ, fR, fS) ++ fc(ca, cb, dK, dL, dO, dM, dN)) ++ fn(gl)) ++ fm((be() + fk))) ++ fo(ez, bB))
9731026 else throw("Strict value is not equal to itself.")
9741027 }
9751028 else throw("Strict value is not equal to itself.")
9841037
9851038
9861039
987-@Callable(bu)
1040+@Callable(bB)
9881041 func addMargin () = {
989- let fE = bu.payments[0].amount
990- if (if (if (if ((bu.payments[0].assetId != Z()))
1042+ let fV = bB.payments[0].amount
1043+ if (if (if (if ((bB.payments[0].assetId != aa()))
9911044 then true
992- else !(bH(toString(bu.caller))))
1045+ else !(bO(toString(bB.caller))))
9931046 then true
994- else !(bI()))
1047+ else !(bP()))
9951048 then true
996- else bJ())
1049+ else bQ())
9971050 then throw("Invalid addMargin parameters")
9981051 else {
999- let bD = toString(bu.caller)
1000- let fF = av(fE, aY())
1001- let fG = invoke(af(), "acceptPayment", [bD], [AttachedPayment(Z(), fF)])
1002- if ((fG == fG))
1052+ let bK = toString(bB.caller)
1053+ let gq = es(bB)
1054+ let ey = gq._1
1055+ let ez = gq._2
1056+ let fX = aA(fV, ey)
1057+ let fY = invoke(ag(), "acceptPayment", [bK], [AttachedPayment(aa(), fX)])
1058+ if ((fY == fY))
10031059 then {
1004- let fH = {
1005- let bF = fG
1006- if ($isInstanceOf(bF, "Int"))
1060+ let fZ = {
1061+ let bM = fY
1062+ if ($isInstanceOf(bM, "Int"))
10071063 then {
1008- let fI = bF
1009- fI
1064+ let ga = bM
1065+ ga
10101066 }
10111067 else throw("Invalid referrerFee")
10121068 }
1013- let fJ = (fF - fH)
1014- let eV = (fE - fF)
1015- let fY = bC(bD)
1016- let fj = fY._1
1017- let fk = fY._2
1018- let fl = fY._3
1019- let fm = fY._4
1020- let fT = (fJ / 2)
1021- let fU = (fJ - fT)
1022- let fV = invoke(ag(), "deposit", nil, [AttachedPayment(Z(), eV)])
1023- if ((fV == fV))
1069+ let gb = (fX - fZ)
1070+ let fk = (fV - fX)
1071+ let gr = bJ(bK)
1072+ let fA = gr._1
1073+ let fB = gr._2
1074+ let fC = gr._3
1075+ let fD = gr._4
1076+ let gl = (gb / 2)
1077+ let gm = (gb - gl)
1078+ let gn = invoke(ah(), "deposit", nil, [AttachedPayment(aa(), fk)])
1079+ if ((gn == gn))
10241080 then {
1025- let fW = invoke(ac(), "deposit", nil, [AttachedPayment(Z(), fU)])
1026- if ((fW == fW))
1081+ let go = invoke(ad(), "deposit", nil, [AttachedPayment(aa(), gm)])
1082+ if ((go == go))
10271083 then {
1028- let fX = invoke(ad(), "notifyFees", [bD, fJ], nil)
1029- if ((fX == fX))
1030- then ((eB(bD, fj, (fk + eV), fl, fm) ++ eY(fT)) ++ eX((aX() + eV)))
1084+ let gp = invoke(ae(), "notifyFees", [bK, gb], nil)
1085+ if ((gp == gp))
1086+ then (((eQ(bK, fA, (fB + fk), fC, fD) ++ fn(gl)) ++ fm((be() + fk))) ++ fo(ez, bB))
10311087 else throw("Strict value is not equal to itself.")
10321088 }
10331089 else throw("Strict value is not equal to itself.")
10401096
10411097
10421098
1043-@Callable(bu)
1044-func removeMargin (eV) = if (if (if (if ((0 >= eV))
1099+@Callable(bB)
1100+func removeMargin (fk) = if (if (if (if ((0 >= fk))
10451101 then true
1046- else !(bH(toString(bu.caller))))
1102+ else !(bO(toString(bB.caller))))
10471103 then true
1048- else !(bI()))
1104+ else !(bP()))
10491105 then true
1050- else bJ())
1106+ else bQ())
10511107 then throw("Invalid removeMargin parameters")
10521108 else {
1053- let fZ = bC(toString(bu.caller))
1054- let fj = fZ._1
1055- let fk = fZ._2
1056- let fl = fZ._3
1057- let fm = fZ._4
1058- let ga = -(eV)
1059- let gb = ch(fj, fk, fm, ga)
1060- let cq = gb._1
1061- let cr = gb._2
1062- if ((cr != 0))
1109+ let gs = bJ(toString(bB.caller))
1110+ let fA = gs._1
1111+ let fB = gs._2
1112+ let fC = gs._3
1113+ let fD = gs._4
1114+ let gt = -(fk)
1115+ let gu = co(fA, fB, fD, gt)
1116+ let cx = gu._1
1117+ let cy = gu._2
1118+ if ((cy != 0))
10631119 then throw("Invalid removed margin amount")
10641120 else {
1065- let gc = dg(cq, cr, fl)
1066- if (!(bv(gc, aZ(), true)))
1067- then throw(((("Too much margin removed: " + toString(gc)) + " < ") + toString(aZ())))
1121+ let gv = dn(cx, cy, fC)
1122+ if (!(bC(gv, bg(), true)))
1123+ then throw(((("Too much margin removed: " + toString(gv)) + " < ") + toString(bg())))
10681124 else {
1069- let gd = invoke(ag(), "withdraw", [toBase58String(Z()), eV], nil)
1070- if ((gd == gd))
1071- then ((eB(toString(bu.caller), fj, cq, fl, bA(fj)) ++ eU(bu.caller, eV)) ++ eX((aX() - eV)))
1125+ let gw = invoke(ah(), "withdraw", [toBase58String(aa()), fk], nil)
1126+ if ((gw == gw))
1127+ then ((eQ(toString(bB.caller), fA, cx, fC, bH(fA)) ++ fj(bB.caller, fk)) ++ fm((be() - fk)))
10721128 else throw("Strict value is not equal to itself.")
10731129 }
10741130 }
10761132
10771133
10781134
1079-@Callable(bu)
1135+@Callable(bB)
10801136 func closePosition () = {
1081- let ge = bt(bu)
1082- let gf = valueOrErrorMessage(addressFromString(ge), "Invalid caller")
1083- if (if (if (!(bH(ge)))
1137+ let gx = bA(bB)
1138+ let gy = valueOrErrorMessage(addressFromString(gx), "Invalid caller")
1139+ if (if (if (!(bO(gx)))
10841140 then true
1085- else !(bI()))
1141+ else !(bP()))
10861142 then true
1087- else bJ())
1143+ else bQ())
10881144 then throw("Invalid closePosition parameters")
10891145 else {
1090- let gg = dx(ge, true)
1091- let cV = gg._1
1092- let gh = gg._2
1093- let dA = gg._3
1094- let dB = gg._4
1095- let bT = gg._5
1096- let bU = gg._6
1097- let dD = gg._7
1098- let dE = gg._8
1099- let dH = gg._9
1100- let cW = gg._10
1101- let dF = gg._11
1102- let dG = gg._12
1103- if ((gh > 0))
1146+ let gz = dE(gx, true)
1147+ let dc = gz._1
1148+ let gA = gz._2
1149+ let dH = gz._3
1150+ let dI = gz._4
1151+ let ca = gz._5
1152+ let cb = gz._6
1153+ let dK = gz._7
1154+ let dL = gz._8
1155+ let dO = gz._9
1156+ let dd = gz._10
1157+ let dM = gz._11
1158+ let dN = gz._12
1159+ if ((gA > 0))
11041160 then throw("Unable to close position with bad debt")
11051161 else {
1106- let gi = aw(dB)
1107- let gj = (aX() - gi)
1108- let gk = if ((0 > gj))
1109- then $Tuple2(0, aw(gj))
1110- else $Tuple2(gj, 0)
1111- let gl = gk._1
1112- let gm = gk._2
1113- let fI = if ((gm > 0))
1162+ let gB = aB(dI)
1163+ let gC = (be() - gB)
1164+ let gD = if ((0 > gC))
1165+ then $Tuple2(0, aB(gC))
1166+ else $Tuple2(gC, 0)
1167+ let gE = gD._1
1168+ let gF = gD._2
1169+ let ga = if ((gF > 0))
11141170 then {
1115- let gn = invoke(ac(), "withdraw", [gm], nil)
1116- if ((gn == gn))
1171+ let gG = invoke(ad(), "withdraw", [gF], nil)
1172+ if ((gG == gG))
11171173 then nil
11181174 else throw("Strict value is not equal to itself.")
11191175 }
11201176 else nil
1121- if ((fI == fI))
1177+ if ((ga == ga))
11221178 then {
1123- let gd = invoke(ag(), "withdraw", [toBase58String(Z()), (gi - gm)], nil)
1124- if ((gd == gd))
1179+ let gw = invoke(ah(), "withdraw", [toBase58String(aa()), (gB - gF)], nil)
1180+ if ((gw == gw))
11251181 then {
1126- let fC = invoke(ad(), "notifyNotional", [ge, 0], nil)
1127- if ((fC == fC))
1128- then (((eT(ge) ++ eN(bT, bU, dD, dE, dH, dF, dG)) ++ eU(gf, gi)) ++ eX(gl))
1182+ let fT = invoke(ae(), "notifyNotional", [gx, 0], nil)
1183+ if ((fT == fT))
1184+ then (((fi(gx) ++ fc(ca, cb, dK, dL, dO, dM, dN)) ++ fj(gy, gB)) ++ fm(gE))
11291185 else throw("Strict value is not equal to itself.")
11301186 }
11311187 else throw("Strict value is not equal to itself.")
11371193
11381194
11391195
1140-@Callable(bu)
1141-func liquidate (bD) = {
1142- let go = dk(bD, ap)
1143- let gc = if (cM())
1196+@Callable(bB)
1197+func liquidate (bK) = {
1198+ let gH = dr(bK, au)
1199+ let gv = if (cT())
11441200 then {
1145- let gp = dk(bD, aq)
1146- ax(go, gp)
1201+ let gI = dr(bK, av)
1202+ aC(gH, gI)
11471203 }
1148- else go
1149- if (if (if (if (!(bv(gc, bj(), false)))
1204+ else gH
1205+ if (if (if (if (!(bC(gv, bq(), false)))
11501206 then true
1151- else !(bH(bD)))
1207+ else !(bO(bK)))
11521208 then true
1153- else !(bI()))
1209+ else !(bP()))
11541210 then true
1155- else bJ())
1211+ else bQ())
11561212 then throw("Unable to liquidate")
1157- else if (if (if ((go > bk()))
1158- then (bl() > 0)
1213+ else if (if (if ((gH > br()))
1214+ then (bs() > 0)
11591215 else false)
1160- then (am > bl())
1216+ then (ar > bs())
11611217 else false)
11621218 then {
1163- let gq = bC(bD)
1164- let fj = gq._1
1165- let fk = gq._2
1166- let fl = gq._3
1167- let fm = gq._4
1168- let fn = if ((fj > 0))
1169- then ai
1170- else ah
1171- let fo = (fn == ah)
1172- let dw = dq(bD, fj)
1173- let gr = db(bD, ap)
1174- let fr = gr._1
1175- let da = gr._2
1176- let gs = bQ(fo, dw)
1177- let dv = gs._1
1178- let bT = gs._2
1179- let bU = gs._3
1180- let dD = gs._4
1181- let dE = gs._5
1182- let dA = at(av(da, aw(dv)), aw(fj))
1183- let gt = ch(fj, fk, fm, dA)
1184- let cq = gt._1
1185- let cr = gt._2
1186- let cm = gt._3
1187- let fw = (da - dA)
1188- let fx = if ((fj > 0))
1189- then ((fr - dw) - fw)
1190- else ((fw + fr) - dw)
1191- let gu = av(dw, bk())
1192- let gv = (gu / 2)
1193- let fU = (gu - gv)
1194- let gw = (cq - gu)
1195- let fy = (fj + dv)
1196- let fA = aw(fx)
1197- let gx = bA(fy)
1198- let dH = (be() - dw)
1199- let gj = (aX() - gu)
1200- let gy = if ((0 > gj))
1201- then $Tuple2(0, aw(gj))
1202- else $Tuple2(gj, 0)
1203- let gz = gy._1
1204- let gA = gy._2
1205- let fI = if ((gA > 0))
1219+ let gJ = bJ(bK)
1220+ let fA = gJ._1
1221+ let fB = gJ._2
1222+ let fC = gJ._3
1223+ let fD = gJ._4
1224+ let fE = if ((fA > 0))
1225+ then an
1226+ else am
1227+ let fF = (fE == am)
1228+ let dD = dx(bK, fA)
1229+ let gK = di(bK, au)
1230+ let fI = gK._1
1231+ let dh = gK._2
1232+ let gL = bX(fF, dD)
1233+ let dC = gL._1
1234+ let ca = gL._2
1235+ let cb = gL._3
1236+ let dK = gL._4
1237+ let dL = gL._5
1238+ let dH = ay(aA(dh, aB(dC)), aB(fA))
1239+ let gM = co(fA, fB, fD, dH)
1240+ let cx = gM._1
1241+ let cy = gM._2
1242+ let ct = gM._3
1243+ let fN = (dh - dH)
1244+ let fO = if ((fA > 0))
1245+ then ((fI - dD) - fN)
1246+ else ((fN + fI) - dD)
1247+ let gN = aA(dD, br())
1248+ let gO = (gN / 2)
1249+ let gm = (gN - gO)
1250+ let gP = (cx - gN)
1251+ let fP = (fA + dC)
1252+ let fR = aB(fO)
1253+ let gQ = bH(fP)
1254+ let dO = (bl() - dD)
1255+ let gC = (be() - gN)
1256+ let gR = if ((0 > gC))
1257+ then $Tuple2(0, aB(gC))
1258+ else $Tuple2(gC, 0)
1259+ let gS = gR._1
1260+ let gT = gR._2
1261+ let ga = if ((gT > 0))
12061262 then {
1207- let gn = invoke(ac(), "withdraw", [gA], nil)
1208- if ((gn == gn))
1263+ let gG = invoke(ad(), "withdraw", [gT], nil)
1264+ if ((gG == gG))
12091265 then nil
12101266 else throw("Strict value is not equal to itself.")
12111267 }
12121268 else nil
1213- if ((fI == fI))
1269+ if ((ga == ga))
12141270 then {
1215- let gd = invoke(ag(), "withdraw", [toBase58String(Z()), (gu - gA)], nil)
1216- if ((gd == gd))
1271+ let gw = invoke(ah(), "withdraw", [toBase58String(aa()), (gN - gT)], nil)
1272+ if ((gw == gw))
12171273 then {
1218- let fW = invoke(ac(), "deposit", nil, [AttachedPayment(Z(), fU)])
1219- if ((fW == fW))
1274+ let go = invoke(ad(), "deposit", nil, [AttachedPayment(aa(), gm)])
1275+ if ((go == go))
12201276 then {
1221- let fC = invoke(ad(), "notifyNotional", [bD, fA], nil)
1222- if ((fC == fC))
1223- then (((eB(bD, fy, gw, fA, gx) ++ eN(bT, bU, dD, dE, dH, (bs() - (if ((fy > 0))
1224- then aw(dv)
1225- else 0)), (br() - (if ((0 > fy))
1226- then aw(dv)
1227- else 0)))) ++ eU(bu.caller, gv)) ++ eX(gz))
1277+ let fT = invoke(ae(), "notifyNotional", [bK, fR], nil)
1278+ if ((fT == fT))
1279+ then (((eQ(bK, fP, gP, fR, gQ) ++ fc(ca, cb, dK, dL, dO, (bz() - (if ((fP > 0))
1280+ then aB(dC)
1281+ else 0)), (by() - (if ((0 > fP))
1282+ then aB(dC)
1283+ else 0)))) ++ fj(bB.caller, gO)) ++ fm(gS))
12281284 else throw("Strict value is not equal to itself.")
12291285 }
12301286 else throw("Strict value is not equal to itself.")
12341290 else throw("Strict value is not equal to itself.")
12351291 }
12361292 else {
1237- let gB = dx(bD, false)
1238- let cV = gB._1
1239- let cr = gB._2
1240- let cW = gB._3
1241- let cX = gB._4
1242- let bT = gB._5
1243- let bU = gB._6
1244- let dD = gB._7
1245- let dE = gB._8
1246- let dH = gB._9
1247- let dw = gB._10
1248- let dF = gB._11
1249- let dG = gB._12
1250- let gu = av(dw, bk())
1251- let gv = (gu / 2)
1252- let fU = (gu - gv)
1253- let gj = (aX() - gu)
1254- let gC = if ((0 > gj))
1255- then $Tuple2(0, aw(gj))
1256- else $Tuple2(gj, 0)
1257- let gz = gC._1
1258- let gA = gC._2
1259- let fI = if ((gA > 0))
1293+ let gU = dE(bK, false)
1294+ let dc = gU._1
1295+ let cy = gU._2
1296+ let dd = gU._3
1297+ let de = gU._4
1298+ let ca = gU._5
1299+ let cb = gU._6
1300+ let dK = gU._7
1301+ let dL = gU._8
1302+ let dO = gU._9
1303+ let dD = gU._10
1304+ let dM = gU._11
1305+ let dN = gU._12
1306+ let gN = aA(dD, br())
1307+ let gO = (gN / 2)
1308+ let gm = (gN - gO)
1309+ let gC = (be() - gN)
1310+ let gV = if ((0 > gC))
1311+ then $Tuple2(0, aB(gC))
1312+ else $Tuple2(gC, 0)
1313+ let gS = gV._1
1314+ let gT = gV._2
1315+ let ga = if ((gT > 0))
12601316 then {
1261- let gn = invoke(ac(), "withdraw", [gA], nil)
1262- if ((gn == gn))
1317+ let gG = invoke(ad(), "withdraw", [gT], nil)
1318+ if ((gG == gG))
12631319 then nil
12641320 else throw("Strict value is not equal to itself.")
12651321 }
12661322 else nil
1267- if ((fI == fI))
1323+ if ((ga == ga))
12681324 then {
1269- let gd = invoke(ag(), "withdraw", [toBase58String(Z()), (gu - gA)], nil)
1270- if ((gd == gd))
1325+ let gw = invoke(ah(), "withdraw", [toBase58String(aa()), (gN - gT)], nil)
1326+ if ((gw == gw))
12711327 then {
1272- let fW = invoke(ac(), "deposit", nil, [AttachedPayment(Z(), fU)])
1273- if ((fW == fW))
1328+ let go = invoke(ad(), "deposit", nil, [AttachedPayment(aa(), gm)])
1329+ if ((go == go))
12741330 then {
1275- let fC = invoke(ad(), "notifyNotional", [bD, 0], nil)
1276- if ((fC == fC))
1277- then (((eT(bD) ++ eN(bT, bU, dD, dE, dH, dF, dG)) ++ eU(bu.caller, gv)) ++ eX(gz))
1331+ let fT = invoke(ae(), "notifyNotional", [bK, 0], nil)
1332+ if ((fT == fT))
1333+ then (((fi(bK) ++ fc(ca, cb, dK, dL, dO, dM, dN)) ++ fj(bB.caller, gO)) ++ fm(gS))
12781334 else throw("Strict value is not equal to itself.")
12791335 }
12801336 else throw("Strict value is not equal to itself.")
12871343
12881344
12891345
1290-@Callable(bu)
1346+@Callable(bB)
12911347 func payFunding () = {
1292- let gD = bf()
1293- if (if (if ((gD > lastBlock.timestamp))
1348+ let gW = bm()
1349+ if (if (if ((gW > lastBlock.timestamp))
12941350 then true
1295- else !(bI()))
1351+ else !(bP()))
12961352 then true
1297- else bJ())
1298- then throw(((("Invalid funding block timestamp: " + toString(lastBlock.timestamp)) + " < ") + toString(gD)))
1353+ else bQ())
1354+ then throw(((("Invalid funding block timestamp: " + toString(lastBlock.timestamp)) + " < ") + toString(gW)))
12991355 else {
1300- let eg = cB()
1301- let gE = ef()
1302- let ej = gE._1
1303- let ek = gE._2
1304- ev((gD + bi()), (bp() + ek), (bq() + ej), at(ek, eg), at(ej, eg))
1356+ let en = cI()
1357+ let gX = em()
1358+ let eq = gX._1
1359+ let er = gX._2
1360+ eK((gW + bp()), (bw() + er), (bx() + eq), ay(er, en), ay(eq, en))
13051361 }
13061362 }
13071363
13081364
13091365
1310-@Callable(bu)
1311-func forceMoveAsset (bD,eV) = if (if ((addressFromPublicKey(Y()) != bu.caller))
1366+@Callable(bB)
1367+func forceMoveAsset (bK,fk) = if (if ((addressFromPublicKey(Z()) != bB.caller))
13121368 then true
1313- else (0 > eV))
1369+ else (0 > fk))
13141370 then throw("Invalid forceMoveAsset parameters")
13151371 else {
1316- let gd = invoke(ag(), "withdraw", [toBase58String(Z()), eV], nil)
1317- if ((gd == gd))
1318- then (eU(addressFromStringValue(bD), eV) ++ eX((aX() - eV)))
1372+ let gw = invoke(ah(), "withdraw", [toBase58String(aa()), fk], nil)
1373+ if ((gw == gw))
1374+ then (fj(addressFromStringValue(bK), fk) ++ fm((be() - fk)))
13191375 else throw("Strict value is not equal to itself.")
13201376 }
13211377
13221378
13231379
1324-@Callable(bu)
1325-func adjustPeg (dZ) = if (if ((addressFromPublicKey(Y()) != bu.caller))
1380+@Callable(bB)
1381+func adjustPeg (eg) = if (if ((addressFromPublicKey(Z()) != bB.caller))
13261382 then true
1327- else (0 > dZ))
1383+ else (0 > eg))
13281384 then throw("Invalid adjustPeg parameters")
13291385 else {
1330- let gF = dY(dZ)
1331- let ed = gF._1
1332- let gG = gF._2
1333- if ((gG == 0))
1386+ let gY = ef(eg)
1387+ let ek = gY._1
1388+ let gZ = gY._2
1389+ if ((gZ == 0))
13341390 then throw("Nothing to adjust")
1335- else if ((gG > 0))
1336- then eM(ed, bb())
1391+ else if ((gZ > 0))
1392+ then fb(ek, bi())
13371393 else {
1338- let gd = invoke(ag(), "withdraw", [toBase58String(Z()), aw(gG)], nil)
1339- if ((gd == gd))
1394+ let gw = invoke(ah(), "withdraw", [toBase58String(aa()), aB(gZ)], nil)
1395+ if ((gw == gw))
13401396 then {
1341- let fW = invoke(ac(), "deposit", nil, [AttachedPayment(Z(), aw(gG))])
1342- if ((fW == fW))
1343- then (eX((aX() - aw(gG))) ++ eM(ed, bb()))
1397+ let go = invoke(ad(), "deposit", nil, [AttachedPayment(aa(), aB(gZ))])
1398+ if ((go == go))
1399+ then (fm((be() - aB(gZ))) ++ fb(ek, bi()))
13441400 else throw("Strict value is not equal to itself.")
13451401 }
13461402 else throw("Strict value is not equal to itself.")
13491405
13501406
13511407
1352-@Callable(bu)
1408+@Callable(bB)
13531409 func migrateLiquidity () = {
1354- let gH = aX()
1355- let gd = invoke(aa(), "unlockNeutrino", [gH, toBase58String(Z())], nil)
1356- if ((gd == gd))
1410+ let ha = be()
1411+ if ((ha > 0))
13571412 then {
1358- let fV = invoke(ag(), "deposit", nil, [AttachedPayment(Z(), gH)])
1359- if ((fV == fV))
1360- then nil
1413+ let gw = invoke(ab(), "unlockNeutrino", [ha, toBase58String(aa())], nil)
1414+ if ((gw == gw))
1415+ then {
1416+ let gn = invoke(ah(), "deposit", nil, [AttachedPayment(aa(), ha)])
1417+ if ((gn == gn))
1418+ then nil
1419+ else throw("Strict value is not equal to itself.")
1420+ }
13611421 else throw("Strict value is not equal to itself.")
13621422 }
1363- else throw("Strict value is not equal to itself.")
1423+ else nil
13641424 }
13651425
13661426
13671427
1368-@Callable(bu)
1369-func v_get (bD) = {
1370- let gI = dx(bD, false)
1371- let cV = gI._1
1372- let cW = gI._2
1373- let cX = gI._3
1374- let gJ = gI._4
1375- throw((((ar(cW) + ar(cX)) + ar(gJ)) + ar(dp(bD))))
1428+@Callable(bB)
1429+func v_get (bK) = {
1430+ let hb = dE(bK, false)
1431+ let dc = hb._1
1432+ let dd = hb._2
1433+ let de = hb._3
1434+ let hc = hb._4
1435+ throw((((aw(dd) + aw(de)) + aw(hc)) + aw(dw(bK))))
13761436 }
13771437
13781438
13791439
1380-@Callable(bu)
1381-func view_calcRemainMarginWithFundingPayment (bD) = {
1382- let gK = bC(bD)
1383- let bG = gK._1
1384- let dd = gK._2
1385- let dm = gK._3
1386- let df = gK._4
1387- let gL = db(bD, ap)
1388- let cS = gL._1
1389- let da = gL._2
1390- let gM = ch(bG, dd, df, da)
1391- let cq = gM._1
1392- let cr = gM._2
1393- let cm = gM._3
1394- throw((((((ar(cq) + ar(cm)) + ar(dp(bD))) + ar(da)) + ar(cr)) + ar(cS)))
1440+@Callable(bB)
1441+func view_calcRemainMarginWithFundingPayment (bK) = {
1442+ let hd = bJ(bK)
1443+ let bN = hd._1
1444+ let dk = hd._2
1445+ let dt = hd._3
1446+ let dm = hd._4
1447+ let he = di(bK, au)
1448+ let cZ = he._1
1449+ let dh = he._2
1450+ let hf = co(bN, dk, dm, dh)
1451+ let cx = hf._1
1452+ let cy = hf._2
1453+ let ct = hf._3
1454+ throw((((((aw(cx) + aw(ct)) + aw(dw(bK))) + aw(dh)) + aw(cy)) + aw(cZ)))
13951455 }
13961456
13971457
13981458
1399-@Callable(bu)
1400-func view_getPegAdjustCost (dZ) = {
1401- let ee = dY(dZ)
1402- throw(toString(ee._2))
1459+@Callable(bB)
1460+func view_getPegAdjustCost (eg) = {
1461+ let el = ef(eg)
1462+ throw(toString(el._2))
14031463 }
14041464
14051465
14061466
1407-@Callable(bu)
1467+@Callable(bB)
14081468 func view_getFunding () = {
1409- let eg = cB()
1410- let gN = ef()
1411- let ej = gN._1
1412- let ek = gN._2
1413- let gO = at(ek, eg)
1414- let gP = at(ej, eg)
1415- throw((((ar(gO) + ar(gP)) + ar(dI())) + ar(cB())))
1469+ let en = cI()
1470+ let hg = em()
1471+ let eq = hg._1
1472+ let er = hg._2
1473+ let hh = ay(er, en)
1474+ let hi = ay(eq, en)
1475+ throw((((aw(hh) + aw(hi)) + aw(dP())) + aw(cI())))
14161476 }
14171477
14181478
1419-@Verifier(gQ)
1420-func gR () = sigVerify(gQ.bodyBytes, gQ.proofs[0], Y())
1479+@Verifier(hj)
1480+func hk () = sigVerify(hj.bodyBytes, hj.proofs[0], Z())
14211481
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = "k_ora_key"
55
66 let b = "k_ora_block_key"
77
88 let c = "k_ora"
99
1010 let d = "k_balance"
1111
1212 let e = "k_positionSize"
1313
1414 let f = "k_positionMargin"
1515
1616 let g = "k_positionOpenNotional"
1717
1818 let h = "k_positionFraction"
1919
2020 let i = "k_positionClosedDate"
2121
2222 let j = "k_initialized"
2323
2424 let k = "k_paused"
2525
2626 let l = "k_fee"
2727
2828 let m = "k_fundingPeriod"
2929
3030 let n = "k_initMarginRatio"
3131
3232 let o = "k_mmr"
3333
3434 let p = "k_liquidationFeeRatio"
3535
3636 let q = "k_partLiquidationRatio"
3737
3838 let r = "k_spreadLimit"
3939
4040 let s = "k_maxPriceImpact"
4141
4242 let t = "k_maxPriceSpread"
4343
4444 let u = "k_lastDataStr"
4545
4646 let v = "k_lastMinuteId"
4747
4848 let w = "k_twapDataLastCumulativePrice"
4949
5050 let x = "k_twapDataLastPrice"
5151
5252 let y = "k_twapDataPreviousMinuteId"
5353
5454 let z = "k_latestLongPremiumFraction"
5555
5656 let A = "k_latestShortPremiumFraction"
5757
5858 let B = "k_nextFundingBlockMinTimestamp"
5959
6060 let C = "k_longFundingRate"
6161
6262 let D = "k_shortFundingRate"
6363
6464 let E = "k_qtAstR"
6565
6666 let F = "k_bsAstR"
6767
6868 let G = "k_totalPositionSize"
6969
7070 let H = "k_totalLongPositionSize"
7171
7272 let I = "k_totalShortPositionSize"
7373
7474 let J = "k_cumulativeNotional"
7575
7676 let K = "k_openInterestNotional"
7777
7878 let L = "k_coordinatorAddress"
7979
8080 let M = "k_insurance_address"
8181
8282 let N = "k_admin_address"
8383
8484 let O = "k_admin_public_key"
8585
8686 let P = "k_quote_asset"
8787
8888 let Q = "k_quote_staking"
8989
9090 let R = "k_staking_address"
9191
9292 let S = "k_miner_address"
9393
9494 let T = "k_orders_address"
9595
9696 let U = "k_referral_address"
9797
9898 let V = "k_manager_address"
9999
100-func W () = valueOrErrorMessage(addressFromString(getStringValue(this, L)), "Coordinator not set")
100+let W = "k_nft_manager_address"
101+
102+func X () = valueOrErrorMessage(addressFromString(getStringValue(this, L)), "Coordinator not set")
101103
102104
103-func X () = addressFromString(getStringValue(W(), N))
105+func Y () = addressFromString(getStringValue(X(), N))
104106
105107
106-func Y () = fromBase58String(getStringValue(W(), O))
108+func Z () = fromBase58String(getStringValue(X(), O))
107109
108110
109-func Z () = fromBase58String(getStringValue(W(), P))
111+func aa () = fromBase58String(getStringValue(X(), P))
110112
111113
112-func aa () = valueOrErrorMessage(addressFromString(getStringValue(W(), Q)), "Quote asset staking not set")
114+func ab () = valueOrErrorMessage(addressFromString(getStringValue(X(), Q)), "Quote asset staking not set")
113115
114116
115-func ab () = valueOrErrorMessage(addressFromString(getStringValue(W(), R)), "Staking not set")
117+func ac () = valueOrErrorMessage(addressFromString(getStringValue(X(), R)), "Staking not set")
116118
117119
118-func ac () = valueOrErrorMessage(addressFromString(getStringValue(W(), M)), "Insurance not set")
120+func ad () = valueOrErrorMessage(addressFromString(getStringValue(X(), M)), "Insurance not set")
119121
120122
121-func ad () = valueOrErrorMessage(addressFromString(getStringValue(W(), S)), "Miner not set")
123+func ae () = valueOrErrorMessage(addressFromString(getStringValue(X(), S)), "Miner not set")
122124
123125
124-func ae () = valueOrErrorMessage(addressFromString(getStringValue(W(), T)), "Orders not set")
126+func af () = valueOrErrorMessage(addressFromString(getStringValue(X(), T)), "Orders not set")
125127
126128
127-func af () = valueOrErrorMessage(addressFromString(getStringValue(W(), U)), "Referral not set")
129+func ag () = valueOrErrorMessage(addressFromString(getStringValue(X(), U)), "Referral not set")
128130
129131
130-func ag () = valueOrErrorMessage(addressFromString(getStringValue(W(), V)), "Manager not set")
132+func ah () = valueOrErrorMessage(addressFromString(getStringValue(X(), V)), "Manager not set")
131133
132134
133-let ah = 1
134-
135-let ai = 2
136-
137-let aj = 15
138-
139-let ak = 15
140-
141-let al = 1000
142-
143-let am = (1 * (((((10 * 10) * 10) * 10) * 10) * 10))
144-
145-let an = (86400 * am)
146-
147-let ao = 100
148-
149-let ap = 1
150-
151-let aq = 2
152-
153-func ar (as) = (toString(as) + ",")
135+func ai () = valueOrErrorMessage(addressFromString(getStringValue(X(), W)), "NFT Manager not set")
154136
155137
156-func at (as,au) = fraction(as, am, au, HALFEVEN)
138+let aj = "k_token_param"
139+
140+let ak = "k_token_type"
141+
142+let al = "fee_reduction"
143+
144+let am = 1
145+
146+let an = 2
147+
148+let ao = 15
149+
150+let ap = 15
151+
152+let aq = 1000
153+
154+let ar = (1 * (((((10 * 10) * 10) * 10) * 10) * 10))
155+
156+let as = (86400 * ar)
157+
158+let at = 100
159+
160+let au = 1
161+
162+let av = 2
163+
164+func aw (ax) = (toString(ax) + ",")
157165
158166
159-func av (as,au) = fraction(as, au, am, HALFEVEN)
167+func ay (ax,az) = fraction(ax, ar, az, HALFEVEN)
160168
161169
162-func aw (as) = if ((as > 0))
163- then as
164- else -(as)
170+func aA (ax,az) = fraction(ax, az, ar, HALFEVEN)
165171
166172
167-func ax (as,au) = if ((as >= au))
168- then as
169- else au
173+func aB (ax) = if ((ax > 0))
174+ then ax
175+ else -(ax)
170176
171177
172-func ay (az,aA) = ((az + "_") + aA)
178+func aC (ax,az) = if ((ax >= az))
179+ then ax
180+ else az
173181
174182
175-func aB (aC) = {
176- func aD (aE,aF) = ((aE + aF) + ",")
183+func aD (aE,aF) = ((aE + "_") + aF)
177184
178- let aG = {
179- let aH = aC
180- let aI = size(aH)
181- let aJ = ""
182- func aK (aL,aM) = if ((aM >= aI))
183- then aL
184- else aD(aL, aH[aM])
185185
186- func aN (aL,aM) = if ((aM >= aI))
187- then aL
186+func aG (aH) = {
187+ func aI (aJ,aK) = ((aJ + aK) + ",")
188+
189+ let aL = {
190+ let aM = aH
191+ let aN = size(aM)
192+ let aO = ""
193+ func aP (aQ,aR) = if ((aR >= aN))
194+ then aQ
195+ else aI(aQ, aM[aR])
196+
197+ func aS (aQ,aR) = if ((aR >= aN))
198+ then aQ
188199 else throw("List size exceeds 20")
189200
190- aN(aK(aK(aK(aK(aK(aK(aK(aK(aK(aK(aK(aK(aK(aK(aK(aK(aK(aK(aK(aK(aJ, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20)
201+ aS(aP(aP(aP(aP(aP(aP(aP(aP(aP(aP(aP(aP(aP(aP(aP(aP(aP(aP(aP(aP(aO, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20)
191202 }
192- let aO = dropRight(aG, 1)
193- let aP = if ((take(aO, 1) == ","))
194- then drop(aO, 1)
195- else aO
196- aP
203+ let aT = dropRight(aL, 1)
204+ let aU = if ((take(aT, 1) == ","))
205+ then drop(aT, 1)
206+ else aT
207+ aU
197208 }
198209
199210
200-func aQ (aR) = split(aR, ",")
211+func aV (aW) = split(aW, ",")
201212
202213
203-func aS (aC,aT,aU) = if ((size(aC) > aT))
204- then (removeByIndex(aC, 0) :+ aU)
205- else (aC :+ aU)
214+func aX (aH,aY,aZ) = if ((size(aH) > aY))
215+ then (removeByIndex(aH, 0) :+ aZ)
216+ else (aH :+ aZ)
206217
207218
208-func aV (aW) = valueOrErrorMessage(getInteger(this, aW), ("no value for " + aW))
219+func ba (bb) = valueOrErrorMessage(getInteger(this, bb), ("no value for " + bb))
209220
210221
211-func aX () = aV(d)
222+func bc (aF,aE) = {
223+ let aK = valueOrErrorMessage(getString(aF, aE), ("No value for key " + aE))
224+ aK
225+ }
212226
213227
214-func aY () = aV(l)
228+func bd (aF,aE) = {
229+ let aK = valueOrErrorMessage(getInteger(aF, aE), ("No value for key " + aE))
230+ aK
231+ }
215232
216233
217-func aZ () = aV(n)
234+func be () = ba(d)
218235
219236
220-func ba () = aV(E)
237+func bf () = ba(l)
221238
222239
223-func bb () = aV(F)
240+func bg () = ba(n)
224241
225242
226-func bc () = aV(G)
243+func bh () = ba(E)
227244
228245
229-func bd () = aV(J)
246+func bi () = ba(F)
230247
231248
232-func be () = aV(K)
249+func bj () = ba(G)
233250
234251
235-func bf () = aV(B)
252+func bk () = ba(J)
236253
237254
238-func bg () = aV(m)
255+func bl () = ba(K)
239256
240257
241-func bh () = (bg() * am)
258+func bm () = ba(B)
242259
243260
244-func bi () = (bg() * al)
261+func bn () = ba(m)
245262
246263
247-func bj () = aV(o)
264+func bo () = (bn() * ar)
248265
249266
250-func bk () = aV(p)
267+func bp () = (bn() * aq)
251268
252269
253-func bl () = aV(q)
270+func bq () = ba(o)
254271
255272
256-func bm () = aV(r)
273+func br () = ba(p)
257274
258275
259-func bn () = aV(s)
276+func bs () = ba(q)
260277
261278
262-func bo () = aV(t)
279+func bt () = ba(r)
263280
264281
265-func bp () = aV(z)
282+func bu () = ba(s)
266283
267284
268-func bq () = aV(A)
285+func bv () = ba(t)
269286
270287
271-func br () = aV(I)
288+func bw () = ba(z)
272289
273290
274-func bs () = aV(H)
291+func bx () = ba(A)
275292
276293
277-func bt (bu) = valueOrElse(getString(ae(), "k_sender"), toString(bu.caller))
294+func by () = ba(I)
278295
279296
280-func bv (bw,bx,by) = {
281- let bz = (bw - bx)
282- if (if (by)
283- then (0 > bz)
297+func bz () = ba(H)
298+
299+
300+func bA (bB) = valueOrElse(getString(af(), "k_sender"), toString(bB.caller))
301+
302+
303+func bC (bD,bE,bF) = {
304+ let bG = (bD - bE)
305+ if (if (bF)
306+ then (0 > bG)
284307 else false)
285308 then throw("Invalid margin")
286- else if (if (!(by))
287- then (bz >= 0)
309+ else if (if (!(bF))
310+ then (bG >= 0)
288311 else false)
289312 then throw("Invalid margin")
290313 else true
291314 }
292315
293316
294-func bA (bB) = if ((bB == 0))
317+func bH (bI) = if ((bI == 0))
295318 then throw("Should not be called with _positionSize == 0")
296- else if ((bB > 0))
297- then bp()
298- else bq()
319+ else if ((bI > 0))
320+ then bw()
321+ else bx()
299322
300323
301-func bC (bD) = {
302- let bE = getInteger(this, ay(e, bD))
303- let bF = bE
304- if ($isInstanceOf(bF, "Int"))
324+func bJ (bK) = {
325+ let bL = getInteger(this, aD(e, bK))
326+ let bM = bL
327+ if ($isInstanceOf(bM, "Int"))
305328 then {
306- let bG = bF
307- $Tuple4(bG, getIntegerValue(this, ay(f, bD)), getIntegerValue(this, ay(g, bD)), getIntegerValue(this, ay(h, bD)))
329+ let bN = bM
330+ $Tuple4(bN, getIntegerValue(this, aD(f, bK)), getIntegerValue(this, aD(g, bK)), getIntegerValue(this, aD(h, bK)))
308331 }
309332 else $Tuple4(0, 0, 0, 0)
310333 }
311334
312335
313-func bH (bD) = if ((bC(bD)._1 == 0))
336+func bO (bK) = if ((bJ(bK)._1 == 0))
314337 then throw("No open position")
315338 else true
316339
317340
318-func bI () = valueOrElse(getBoolean(this, j), false)
341+func bP () = valueOrElse(getBoolean(this, j), false)
319342
320343
321-func bJ () = valueOrElse(getBoolean(this, k), false)
344+func bQ () = valueOrElse(getBoolean(this, k), false)
322345
323346
324-func bK (bL,bM,bN) = if (bL)
347+func bR (bS,bT,bU) = if (bS)
325348 then {
326- let bO = (bb() - bN)
327- if ((0 >= bO))
349+ let bV = (bi() - bU)
350+ if ((0 >= bV))
328351 then throw("Tx lead to base asset reserve <= 0, revert")
329- else $Tuple4((ba() + bM), bO, (bc() + bN), (bd() + bM))
352+ else $Tuple4((bh() + bT), bV, (bj() + bU), (bk() + bT))
330353 }
331354 else {
332- let bP = (ba() - bM)
333- if ((0 >= bP))
355+ let bW = (bh() - bT)
356+ if ((0 >= bW))
334357 then throw("Tx lead to base quote reserve <= 0, revert")
335- else $Tuple4(bP, (bb() + bN), (bc() - bN), (bd() - bM))
358+ else $Tuple4(bW, (bi() + bU), (bj() - bU), (bk() - bT))
336359 }
337360
338361
339-func bQ (bL,bM) = {
340- let bR = ba()
341- let bS = bb()
342- let aW = av(bR, bS)
343- let bT = if (bL)
344- then (bR + bM)
345- else (bR - bM)
346- let bU = at(aW, bT)
347- let bV = aw((bU - bS))
348- let bW = if (bL)
349- then bV
350- else -(bV)
351- let bX = bK(bL, bM, bV)
352- let bY = bX._1
353- let bZ = bX._2
354- let ca = bX._3
355- let cb = bX._4
356- let cc = at(bR, bS)
357- let cd = at(bM, bV)
358- let ce = aw((cc - cd))
359- let cf = (am - at(cc, (cc + ce)))
360- let cg = bn()
361- if ((cf > cg))
362- then throw(((((((((((((("Price impact " + toString(cf)) + " > max price impact ") + toString(cg)) + " before quote asset: ") + toString(bR)) + " before base asset: ") + toString(bS)) + " quote asset amount to exchange: ") + toString(bM)) + " price before: ") + toString(cc)) + " marketPrice: ") + toString(cd)))
363- else $Tuple5(bW, bY, bZ, ca, cb)
362+func bX (bS,bT) = {
363+ let bY = bh()
364+ let bZ = bi()
365+ let bb = aA(bY, bZ)
366+ let ca = if (bS)
367+ then (bY + bT)
368+ else (bY - bT)
369+ let cb = ay(bb, ca)
370+ let cc = aB((cb - bZ))
371+ let cd = if (bS)
372+ then cc
373+ else -(cc)
374+ let ce = bR(bS, bT, cc)
375+ let cf = ce._1
376+ let cg = ce._2
377+ let ch = ce._3
378+ let ci = ce._4
379+ let cj = ay(bY, bZ)
380+ let ck = ay(bT, cc)
381+ let cl = aB((cj - ck))
382+ let cm = (ar - ay(cj, (cj + cl)))
383+ let cn = bu()
384+ if ((cm > cn))
385+ then throw(((((((((((((("Price impact " + toString(cm)) + " > max price impact ") + toString(cn)) + " before quote asset: ") + toString(bY)) + " before base asset: ") + toString(bZ)) + " quote asset amount to exchange: ") + toString(bT)) + " price before: ") + toString(cj)) + " marketPrice: ") + toString(ck)))
386+ else $Tuple5(cd, cf, cg, ch, ci)
364387 }
365388
366389
367-func ch (ci,cj,ck,cl) = {
368- let cm = if ((ci != 0))
390+func co (cp,cq,cr,cs) = {
391+ let ct = if ((cp != 0))
369392 then {
370- let cn = bA(ci)
371- av((cn - ck), ci)
393+ let cu = bH(cp)
394+ aA((cu - cr), cp)
372395 }
373396 else 0
374- let co = ((cl - cm) + cj)
375- let cp = if ((0 > co))
376- then $Tuple2(0, aw(co))
377- else $Tuple2(aw(co), 0)
378- let cq = cp._1
379- let cr = cp._2
380- $Tuple3(cq, cr, cm)
397+ let cv = ((cs - ct) + cq)
398+ let cw = if ((0 > cv))
399+ then $Tuple2(0, aB(cv))
400+ else $Tuple2(aB(cv), 0)
401+ let cx = cw._1
402+ let cy = cw._2
403+ $Tuple3(cx, cy, ct)
381404 }
382405
383406
384-func cs (bL,bN,ct,cu,cv) = {
385- let cc = at(cu, cv)
386- if ((bN == 0))
407+func cz (bS,bU,cA,cB,cC) = {
408+ let cj = ay(cB, cC)
409+ if ((bU == 0))
387410 then throw("Invalid base asset amount")
388411 else {
389- let aW = av(cu, cv)
390- let cw = if (bL)
391- then (cv + bN)
392- else (cv - bN)
393- let cx = at(aW, cw)
394- let cy = aw((cx - cu))
395- let cg = bn()
396- let cz = bK(!(bL), cy, bN)
397- let bY = cz._1
398- let bZ = cz._2
399- let ca = cz._3
400- let cb = cz._4
401- let cd = at(cy, bN)
402- let ce = aw((cc - cd))
403- let cf = (am - at(cc, (cc + ce)))
404- if (if ((cf > cg))
405- then ct
412+ let bb = aA(cB, cC)
413+ let cD = if (bS)
414+ then (cC + bU)
415+ else (cC - bU)
416+ let cE = ay(bb, cD)
417+ let cF = aB((cE - cB))
418+ let cn = bu()
419+ let cG = bR(!(bS), cF, bU)
420+ let cf = cG._1
421+ let cg = cG._2
422+ let ch = cG._3
423+ let ci = cG._4
424+ let ck = ay(cF, bU)
425+ let cl = aB((cj - ck))
426+ let cm = (ar - ay(cj, (cj + cl)))
427+ if (if ((cm > cn))
428+ then cA
406429 else false)
407- then throw(((((((((((((("Price impact " + toString(cf)) + " > max price impact ") + toString(cg)) + " before quote asset: ") + toString(cu)) + " before base asset: ") + toString(cv)) + " base asset amount to exchange: ") + toString(bN)) + " price before: ") + toString(cc)) + " market price: ") + toString(cd)))
408- else $Tuple8(cy, bY, bZ, ca, cb, (bs() - (if (bL)
409- then aw(bN)
410- else 0)), (br() - (if (!(bL))
411- then aw(bN)
412- else 0)), cf)
430+ then throw(((((((((((((("Price impact " + toString(cm)) + " > max price impact ") + toString(cn)) + " before quote asset: ") + toString(cB)) + " before base asset: ") + toString(cC)) + " base asset amount to exchange: ") + toString(bU)) + " price before: ") + toString(cj)) + " market price: ") + toString(ck)))
431+ else $Tuple8(cF, cf, cg, ch, ci, (bz() - (if (bS)
432+ then aB(bU)
433+ else 0)), (by() - (if (!(bS))
434+ then aB(bU)
435+ else 0)), cm)
413436 }
414437 }
415438
416439
417-func cA (bL,bN,ct) = cs(bL, bN, ct, ba(), bb())
440+func cH (bS,bU,cA) = cz(bS, bU, cA, bh(), bi())
418441
419442
420-func cB () = {
421- let cC = valueOrErrorMessage(addressFromString(getStringValue(this, c)), "")
422- let cD = getStringValue(this, a)
423- let cE = getStringValue(this, b)
424- let cF = valueOrErrorMessage(getInteger(cC, cD), ((("Can not get oracle price. Oracle: " + toString(cC)) + " key: ") + cD))
425- cF
443+func cI () = {
444+ let cJ = valueOrErrorMessage(addressFromString(getStringValue(this, c)), "")
445+ let cK = getStringValue(this, a)
446+ let cL = getStringValue(this, b)
447+ let cM = valueOrErrorMessage(getInteger(cJ, cK), ((("Can not get oracle price. Oracle: " + toString(cJ)) + " key: ") + cK))
448+ cM
426449 }
427450
428451
429-func cG (cu,cv) = {
430- let cH = cB()
431- let cI = at(cu, cv)
432- let cJ = at((cH + cI), (2 * am))
433- let cK = at(aw((cH - cI)), cJ)
434- if ((cK > bo()))
435- then throw(((("Price spread " + toString(cK)) + " > max price spread ") + toString(bo())))
452+func cN (cB,cC) = {
453+ let cO = cI()
454+ let cP = ay(cB, cC)
455+ let cQ = ay((cO + cP), (2 * ar))
456+ let cR = ay(aB((cO - cP)), cQ)
457+ if ((cR > bv()))
458+ then throw(((("Price spread " + toString(cR)) + " > max price spread ") + toString(bv())))
436459 else true
437460 }
438461
439462
440-func cL () = {
441- let cu = ba()
442- let cv = bb()
443- at(cu, cv)
463+func cS () = {
464+ let cB = bh()
465+ let cC = bi()
466+ ay(cB, cC)
444467 }
445468
446469
447-func cM () = {
448- let cH = cB()
449- let cN = cL()
450- (at(aw((cH - cN)), cH) > bm())
470+func cT () = {
471+ let cO = cI()
472+ let cU = cS()
473+ (ay(aB((cO - cU)), cO) > bt())
451474 }
452475
453476
454-func cO (bB,cP,cu,cv) = {
455- let cQ = aw(bB)
456- let cR = (0 > bB)
457- let cS = if ((cP == ap))
477+func cV (bI,cW,cB,cC) = {
478+ let cX = aB(bI)
479+ let cY = (0 > bI)
480+ let cZ = if ((cW == au))
458481 then {
459- let cT = cs(!(cR), cQ, false, cu, cv)
460- let cU = cT._1
461- let cV = cT._2
462- let cW = cT._3
463- let cX = cT._4
464- cU
482+ let da = cz(!(cY), cX, false, cB, cC)
483+ let db = da._1
484+ let dc = da._2
485+ let dd = da._3
486+ let de = da._4
487+ db
465488 }
466- else av(cQ, cB())
467- cS
489+ else aA(cX, cI())
490+ cZ
468491 }
469492
470493
471-func cY (bB,cZ,cu,cv,cP) = if ((bB == 0))
494+func df (bI,dg,cB,cC,cW) = if ((bI == 0))
472495 then throw("Invalid position size")
473496 else {
474- let cR = (0 > bB)
475- let cS = cO(bB, cP, cu, cv)
476- let da = if (cR)
477- then (cZ - cS)
478- else (cS - cZ)
479- $Tuple2(cS, da)
497+ let cY = (0 > bI)
498+ let cZ = cV(bI, cW, cB, cC)
499+ let dh = if (cY)
500+ then (dg - cZ)
501+ else (cZ - dg)
502+ $Tuple2(cZ, dh)
480503 }
481504
482505
483-func db (bD,cP) = {
484- let dc = bC(bD)
485- let bG = dc._1
486- let dd = dc._2
487- let de = dc._3
488- let df = dc._4
489- cY(bG, de, ba(), bb(), cP)
506+func di (bK,cW) = {
507+ let dj = bJ(bK)
508+ let bN = dj._1
509+ let dk = dj._2
510+ let dl = dj._3
511+ let dm = dj._4
512+ df(bN, dl, bh(), bi(), cW)
490513 }
491514
492515
493-func dg (dh,di,dj) = at((dh - di), dj)
516+func dn (do,dp,dq) = ay((do - dp), dq)
494517
495518
496-func dk (bD,cP) = {
497- let dl = bC(bD)
498- let bG = dl._1
499- let dd = dl._2
500- let dm = dl._3
501- let df = dl._4
502- let dn = db(bD, cP)
503- let cS = dn._1
504- let da = dn._2
505- let do = ch(bG, dd, df, da)
506- let cq = do._1
507- let cr = do._2
508- dg(cq, cr, cS)
519+func dr (bK,cW) = {
520+ let ds = bJ(bK)
521+ let bN = ds._1
522+ let dk = ds._2
523+ let dt = ds._3
524+ let dm = ds._4
525+ let du = di(bK, cW)
526+ let cZ = du._1
527+ let dh = du._2
528+ let dv = co(bN, dk, dm, dh)
529+ let cx = dv._1
530+ let cy = dv._2
531+ dn(cx, cy, cZ)
509532 }
510533
511534
512-func dp (bD) = dk(bD, ap)
535+func dw (bK) = dr(bK, au)
513536
514537
515-func dq (bD,bB) = {
516- let dr = ax(bl(), (am - at(dp(bD), bj())))
517- let ds = av(aw(bB), dr)
518- let dt = cA((bB > 0), ds, false)
519- let du = dt._1
520- let cf = dt._8
521- if ((bn() > cf))
522- then du
538+func dx (bK,bI) = {
539+ let dy = aC(bs(), (ar - ay(dw(bK), bq())))
540+ let dz = aA(aB(bI), dy)
541+ let dA = cH((bI > 0), dz, false)
542+ let dB = dA._1
543+ let cm = dA._8
544+ if ((bu() > cm))
545+ then dB
523546 else {
524- let dv = av(aw(bB), bl())
525- let dw = cA((bB > 0), dv, false)._1
526- dw
547+ let dC = aA(aB(bI), bs())
548+ let dD = cH((bI > 0), dC, false)._1
549+ dD
527550 }
528551 }
529552
530553
531-func dx (bD,ct) = {
532- let dy = bC(bD)
533- let bG = dy._1
534- let dd = dy._2
535- let de = dy._3
536- let df = dy._4
537- let da = db(bD, ap)._2
538- let dz = ch(bG, dd, df, da)
539- let cq = dz._1
540- let cr = dz._2
541- let dv = -(bG)
542- let dA = da
543- let dB = -(cq)
544- let dC = cA((bG > 0), aw(bG), ct)
545- let dw = dC._1
546- let bT = dC._2
547- let bU = dC._3
548- let dD = dC._4
549- let dE = dC._5
550- let dF = dC._6
551- let dG = dC._7
552- let dH = (be() - de)
553- $Tuple12(dv, cr, dA, dB, bT, bU, dD, dE, dH, dw, dF, dG)
554+func dE (bK,cA) = {
555+ let dF = bJ(bK)
556+ let bN = dF._1
557+ let dk = dF._2
558+ let dl = dF._3
559+ let dm = dF._4
560+ let dh = di(bK, au)._2
561+ let dG = co(bN, dk, dm, dh)
562+ let cx = dG._1
563+ let cy = dG._2
564+ let dC = -(bN)
565+ let dH = dh
566+ let dI = -(cx)
567+ let dJ = cH((bN > 0), aB(bN), cA)
568+ let dD = dJ._1
569+ let ca = dJ._2
570+ let cb = dJ._3
571+ let dK = dJ._4
572+ let dL = dJ._5
573+ let dM = dJ._6
574+ let dN = dJ._7
575+ let dO = (bl() - dl)
576+ $Tuple12(dC, cy, dH, dI, ca, cb, dK, dL, dO, dD, dM, dN)
554577 }
555578
556579
557-func dI () = {
558- let dJ = ((lastBlock.timestamp / 1000) / 60)
559- let dK = (dJ - aj)
560- let dL = valueOrElse(getString(this, u), "")
561- let dM = split(dL, ",")
562- func dN (aE,dO) = if ((dK >= parseIntValue(dO)))
563- then (aE :+ parseIntValue(dO))
564- else aE
580+func dP () = {
581+ let dQ = ((lastBlock.timestamp / 1000) / 60)
582+ let dR = (dQ - ao)
583+ let dS = valueOrElse(getString(this, u), "")
584+ let dT = split(dS, ",")
585+ func dU (aJ,dV) = if ((dR >= parseIntValue(dV)))
586+ then (aJ :+ parseIntValue(dV))
587+ else aJ
565588
566- let dP = {
567- let aH = dM
568- let aI = size(aH)
569- let aJ = nil
570- func aK (aL,aM) = if ((aM >= aI))
571- then aL
572- else dN(aL, aH[aM])
589+ let dW = {
590+ let aM = dT
591+ let aN = size(aM)
592+ let aO = nil
593+ func aP (aQ,aR) = if ((aR >= aN))
594+ then aQ
595+ else dU(aQ, aM[aR])
573596
574- func aN (aL,aM) = if ((aM >= aI))
575- then aL
597+ func aS (aQ,aR) = if ((aR >= aN))
598+ then aQ
576599 else throw("List size exceeds 20")
577600
578- aN(aK(aK(aK(aK(aK(aK(aK(aK(aK(aK(aK(aK(aK(aK(aK(aK(aK(aK(aK(aK(aJ, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20)
601+ aS(aP(aP(aP(aP(aP(aP(aP(aP(aP(aP(aP(aP(aP(aP(aP(aP(aP(aP(aP(aP(aO, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20)
579602 }
580- let dQ = if ((size(dP) > 0))
581- then max(dP)
582- else parseIntValue(dM[0])
583- let dR = valueOrElse(getInteger(this, v), 0)
584- let dS = valueOrElse(getInteger(this, ((w + "_") + toString(dR))), 0)
585- let dT = valueOrElse(getInteger(this, ((x + "_") + toString(dR))), 0)
586- let dU = (dS + ((dJ - dR) * dT))
587- let dV = valueOrElse(getInteger(this, ((w + "_") + toString(dQ))), 0)
588- let dW = valueOrElse(getInteger(this, ((x + "_") + toString(dQ))), 0)
589- let dX = (dV + ((dK - dQ) * dW))
590- ((dU - dX) / aj)
603+ let dX = if ((size(dW) > 0))
604+ then max(dW)
605+ else parseIntValue(dT[0])
606+ let dY = valueOrElse(getInteger(this, v), 0)
607+ let dZ = valueOrElse(getInteger(this, ((w + "_") + toString(dY))), 0)
608+ let ea = valueOrElse(getInteger(this, ((x + "_") + toString(dY))), 0)
609+ let eb = (dZ + ((dQ - dY) * ea))
610+ let ec = valueOrElse(getInteger(this, ((w + "_") + toString(dX))), 0)
611+ let ed = valueOrElse(getInteger(this, ((x + "_") + toString(dX))), 0)
612+ let ee = (ec + ((dR - dX) * ed))
613+ ((eb - ee) / ao)
591614 }
592615
593616
594-func dY (dZ) = {
595- let bB = bc()
596- let ea = (bB > 0)
597- let eb = cA(ea, aw(bB), false)._1
598- let ec = bb()
599- let ed = av(ec, dZ)
600- let ee = cY(bB, eb, ed, ec, ap)._2
601- $Tuple2(ed, ee)
617+func ef (eg) = {
618+ let bI = bj()
619+ let eh = (bI > 0)
620+ let ei = cH(eh, aB(bI), false)._1
621+ let ej = bi()
622+ let ek = aA(ej, eg)
623+ let el = df(bI, ei, ek, ej, au)._2
624+ $Tuple2(ek, el)
602625 }
603626
604627
605-func ef () = {
606- let eg = cB()
607- let eh = dI()
608- let ei = (eh - eg)
609- if (if ((br() == 0))
628+func em () = {
629+ let en = cI()
630+ let eo = dP()
631+ let ep = (eo - en)
632+ if (if ((by() == 0))
610633 then true
611- else (bs() == 0))
634+ else (bz() == 0))
612635 then $Tuple2(0, 0)
613- else if ((0 > ei))
636+ else if ((0 > ep))
614637 then {
615- let ej = at(av(ei, bh()), an)
616- let ek = at(av(ej, br()), bs())
617- $Tuple2(ej, ek)
638+ let eq = ay(aA(ep, bo()), as)
639+ let er = ay(aA(eq, by()), bz())
640+ $Tuple2(eq, er)
618641 }
619642 else {
620- let ek = at(av(ei, bh()), an)
621- let ej = at(av(ek, bs()), br())
622- $Tuple2(ej, ek)
643+ let er = ay(aA(ep, bo()), as)
644+ let eq = ay(aA(er, bz()), by())
645+ $Tuple2(eq, er)
623646 }
624647 }
625648
626649
627-func el (em,en,eo,ep,eq,er,es,et,eu) = [IntegerEntry(n, em), IntegerEntry(o, en), IntegerEntry(p, eo), IntegerEntry(m, ep), IntegerEntry(l, eq), IntegerEntry(r, er), IntegerEntry(s, es), IntegerEntry(q, et), IntegerEntry(t, eu)]
650+func es (bB) = {
651+ let et = bf()
652+ let eu = if ((size(bB.payments) > 1))
653+ then {
654+ let ev = toBase58String(valueOrErrorMessage(bB.payments[1].assetId, "Invalid attached artifact"))
655+ let ew = bc(ai(), aD(ak, ev))
656+ if ((ew == al))
657+ then {
658+ let ex = bd(ai(), aD(aj, ev))
659+ let ey = aA(et, ex)
660+ $Tuple2(ey, true)
661+ }
662+ else throw("Invalid attached artifact")
663+ }
664+ else $Tuple2(et, false)
665+ let ey = eu._1
666+ let ez = eu._2
667+ $Tuple2(ey, ez)
668+ }
628669
629670
630-func ev (ew,ex,ey,ez,eA) = [IntegerEntry(B, ew), IntegerEntry(z, ex), IntegerEntry(A, ey), IntegerEntry(C, ez), IntegerEntry(D, eA)]
671+func eA (eB,eC,eD,eE,eF,eG,eH,eI,eJ) = [IntegerEntry(n, eB), IntegerEntry(o, eC), IntegerEntry(p, eD), IntegerEntry(m, eE), IntegerEntry(l, eF), IntegerEntry(r, eG), IntegerEntry(s, eH), IntegerEntry(q, eI), IntegerEntry(t, eJ)]
631672
632673
633-func eB (aA,eC,eD,eE,cn) = [IntegerEntry(ay(e, aA), eC), IntegerEntry(ay(f, aA), eD), IntegerEntry(ay(g, aA), eE), IntegerEntry(ay(h, aA), cn)]
674+func eK (eL,eM,eN,eO,eP) = [IntegerEntry(B, eL), IntegerEntry(z, eM), IntegerEntry(A, eN), IntegerEntry(C, eO), IntegerEntry(D, eP)]
634675
635676
636-func eF (eG) = {
637- let dJ = ((lastBlock.timestamp / 1000) / 60)
638- let eH = valueOrElse(getInteger(this, v), 0)
639- if ((eH > dJ))
677+func eQ (aF,eR,eS,eT,cu) = [IntegerEntry(aD(e, aF), eR), IntegerEntry(aD(f, aF), eS), IntegerEntry(aD(g, aF), eT), IntegerEntry(aD(h, aF), cu)]
678+
679+
680+func eU (eV) = {
681+ let dQ = ((lastBlock.timestamp / 1000) / 60)
682+ let eW = valueOrElse(getInteger(this, v), 0)
683+ if ((eW > dQ))
640684 then throw("TWAP out-of-order")
641685 else {
642- let dR = if ((eH == 0))
643- then dJ
644- else eH
645- if ((dJ > eH))
686+ let dY = if ((eW == 0))
687+ then dQ
688+ else eW
689+ if ((dQ > eW))
646690 then {
647- let eI = valueOrElse(getInteger(this, ((w + "_") + toString(eH))), 0)
648- let eJ = valueOrElse(getInteger(this, ((x + "_") + toString(eH))), eG)
649- let eK = (eI + ((dJ - dR) * eJ))
650- let dM = aS(aQ(valueOrElse(getString(this, u), "")), aj, toString(dJ))
651-[IntegerEntry(ay(w, toString(dJ)), eK), IntegerEntry(ay(x, toString(dJ)), eG), IntegerEntry(ay(y, toString(dJ)), eH), IntegerEntry(v, dJ), StringEntry(u, aB(dM))]
691+ let eX = valueOrElse(getInteger(this, ((w + "_") + toString(eW))), 0)
692+ let eY = valueOrElse(getInteger(this, ((x + "_") + toString(eW))), eV)
693+ let eZ = (eX + ((dQ - dY) * eY))
694+ let dT = aX(aV(valueOrElse(getString(this, u), "")), ao, toString(dQ))
695+[IntegerEntry(aD(w, toString(dQ)), eZ), IntegerEntry(aD(x, toString(dQ)), eV), IntegerEntry(aD(y, toString(dQ)), eW), IntegerEntry(v, dQ), StringEntry(u, aG(dT))]
652696 }
653697 else {
654- let eL = valueOrElse(getInteger(this, ay(y, toString(dJ))), 0)
655- let eI = valueOrElse(getInteger(this, ay(w, toString(eL))), 0)
656- let eJ = valueOrElse(getInteger(this, ay(x, toString(eL))), eG)
657- let eK = (eI + ((dJ - eL) * eJ))
658-[IntegerEntry(ay(w, toString(dJ)), eK), IntegerEntry(ay(x, toString(dJ)), eG)]
698+ let fa = valueOrElse(getInteger(this, aD(y, toString(dQ))), 0)
699+ let eX = valueOrElse(getInteger(this, aD(w, toString(fa))), 0)
700+ let eY = valueOrElse(getInteger(this, aD(x, toString(fa))), eV)
701+ let eZ = (eX + ((dQ - fa) * eY))
702+[IntegerEntry(aD(w, toString(dQ)), eZ), IntegerEntry(aD(x, toString(dQ)), eV)]
659703 }
660704 }
661705 }
662706
663707
664-func eM (bR,bS) = [IntegerEntry(E, bR), IntegerEntry(F, bS)]
708+func fb (bY,bZ) = [IntegerEntry(E, bY), IntegerEntry(F, bZ)]
665709
666710
667-func eN (bR,bS,eO,eP,eQ,eR,eS) = if (((eR - eS) != eO))
668- then throw(((((("Invalid AMM state data: " + toString(eR)) + " + ") + toString(eS)) + " != ") + toString(eO)))
669- else ((eM(bR, bS) ++ [IntegerEntry(G, eO), IntegerEntry(J, eP), IntegerEntry(K, eQ), IntegerEntry(H, eR), IntegerEntry(I, eS)]) ++ eF(at(bR, bS)))
711+func fc (bY,bZ,fd,fe,ff,fg,fh) = if (((fg - fh) != fd))
712+ then throw(((((("Invalid AMM state data: " + toString(fg)) + " + ") + toString(fh)) + " != ") + toString(fd)))
713+ else ((fb(bY, bZ) ++ [IntegerEntry(G, fd), IntegerEntry(J, fe), IntegerEntry(K, ff), IntegerEntry(H, fg), IntegerEntry(I, fh)]) ++ eU(ay(bY, bZ)))
670714
671715
672-func eT (aA) = [DeleteEntry(ay(e, aA)), DeleteEntry(ay(f, aA)), DeleteEntry(ay(g, aA)), DeleteEntry(ay(h, aA)), IntegerEntry(ay(i, aA), lastBlock.timestamp)]
716+func fi (aF) = [DeleteEntry(aD(e, aF)), DeleteEntry(aD(f, aF)), DeleteEntry(aD(g, aF)), DeleteEntry(aD(h, aF)), IntegerEntry(aD(i, aF), lastBlock.timestamp)]
673717
674718
675-func eU (aA,eV) = {
676- let eW = assetBalance(this, Z())
677- if ((eV > eW))
678- then throw(((("Unable to withdraw " + toString(eV)) + " from contract balance ") + toString(eW)))
679- else [ScriptTransfer(aA, eV, Z())]
719+func fj (aF,fk) = {
720+ let fl = assetBalance(this, aa())
721+ if ((fk > fl))
722+ then throw(((("Unable to withdraw " + toString(fk)) + " from contract balance ") + toString(fl)))
723+ else [ScriptTransfer(aF, fk, aa())]
680724 }
681725
682726
683-func eX (bu) = if ((0 > bu))
727+func fm (bB) = if ((0 > bB))
684728 then throw("Balance")
685- else [IntegerEntry(d, bu)]
729+ else [IntegerEntry(d, bB)]
686730
687731
688-func eY (bu) = [ScriptTransfer(ab(), bu, Z())]
732+func fn (bB) = [ScriptTransfer(ac(), bB, aa())]
689733
690734
691-@Callable(bu)
692-func pause () = if ((bu.caller != X()))
735+func fo (fp,bB) = if (fp)
736+ then [Burn(valueOrErrorMessage(bB.payments[1].assetId, "Invalid artifact"), 1)]
737+ else nil
738+
739+
740+@Callable(bB)
741+func pause () = if ((bB.caller != Y()))
693742 then throw("Invalid togglePause params")
694743 else [BooleanEntry(k, true)]
695744
696745
697746
698-@Callable(bu)
699-func unpause () = if ((bu.caller != X()))
747+@Callable(bB)
748+func unpause () = if ((bB.caller != Y()))
700749 then throw("Invalid togglePause params")
701750 else [BooleanEntry(k, false)]
702751
703752
704753
705-@Callable(bu)
706-func addLiquidity (bM) = if (if ((bu.caller != X()))
754+@Callable(bB)
755+func addLiquidity (bT) = if (if ((bB.caller != Y()))
707756 then true
708- else (0 >= bM))
757+ else (0 >= bT))
709758 then throw("Invalid addLiquidity params")
710759 else {
711- let bR = ba()
712- let bS = bb()
713- let eG = at(bR, bS)
714- let eZ = at(bM, eG)
715- let fa = (bR + bM)
716- let fb = (bS + eZ)
717- eM(fa, fb)
760+ let bY = bh()
761+ let bZ = bi()
762+ let eV = ay(bY, bZ)
763+ let fq = ay(bT, eV)
764+ let fr = (bY + bT)
765+ let fs = (bZ + fq)
766+ fb(fr, fs)
718767 }
719768
720769
721770
722-@Callable(bu)
723-func removeLiquidity (bM) = if (if ((bu.caller != X()))
771+@Callable(bB)
772+func removeLiquidity (bT) = if (if ((bB.caller != Y()))
724773 then true
725- else (0 >= bM))
774+ else (0 >= bT))
726775 then throw("Invalid removeLiquidity params")
727776 else {
728- let bR = ba()
729- let bS = bb()
730- let eG = at(bR, bS)
731- let fc = at(bM, eG)
732- let fa = (bR - bM)
733- let fb = (bS - fc)
734- eM(fa, fb)
777+ let bY = bh()
778+ let bZ = bi()
779+ let eV = ay(bY, bZ)
780+ let ft = ay(bT, eV)
781+ let fr = (bY - bT)
782+ let fs = (bZ - ft)
783+ fb(fr, fs)
735784 }
736785
737786
738787
739-@Callable(bu)
740-func changeSettings (em,en,eo,ep,eq,er,es,et,eu) = if ((bu.caller != X()))
788+@Callable(bB)
789+func changeSettings (eB,eC,eD,eE,eF,eG,eH,eI,eJ) = if ((bB.caller != Y()))
741790 then throw("Invalid changeSettings params")
742- else el(em, en, eo, ep, eq, er, es, et, eu)
791+ else eA(eB, eC, eD, eE, eF, eG, eH, eI, eJ)
743792
744793
745794
746-@Callable(bu)
747-func initialize (bR,bS,ep,em,en,eo,eq,fd,fe,ff,er,es,et,eu) = if (if (if (if (if (if (if (if (if (if (if (if ((0 >= bR))
795+@Callable(bB)
796+func initialize (bY,bZ,eE,eB,eC,eD,eF,fu,fv,fw,eG,eH,eI,eJ) = if (if (if (if (if (if (if (if (if (if (if (if ((0 >= bY))
748797 then true
749- else (0 >= bS))
798+ else (0 >= bZ))
750799 then true
751- else (0 >= ep))
800+ else (0 >= eE))
752801 then true
753- else (0 >= em))
802+ else (0 >= eB))
754803 then true
755- else (0 >= en))
804+ else (0 >= eC))
756805 then true
757- else (0 >= eo))
806+ else (0 >= eD))
758807 then true
759- else (0 >= eq))
808+ else (0 >= eF))
760809 then true
761- else (0 >= er))
810+ else (0 >= eG))
762811 then true
763- else (0 >= es))
812+ else (0 >= eH))
764813 then true
765- else (0 >= et))
814+ else (0 >= eI))
766815 then true
767- else (0 >= eu))
816+ else (0 >= eJ))
768817 then true
769- else bI())
818+ else bP())
770819 then throw("Invalid initialize parameters")
771- else ((((eN(bR, bS, 0, 0, 0, 0, 0) ++ el(em, en, eo, ep, eq, er, es, et, eu)) ++ ev((lastBlock.timestamp + ep), 0, 0, 0, 0)) ++ eX(0)) ++ [BooleanEntry(j, true), StringEntry(c, fd), StringEntry(a, fe), StringEntry(L, ff)])
820+ else ((((fc(bY, bZ, 0, 0, 0, 0, 0) ++ eA(eB, eC, eD, eE, eF, eG, eH, eI, eJ)) ++ eK((lastBlock.timestamp + eE), 0, 0, 0, 0)) ++ fm(0)) ++ [BooleanEntry(j, true), StringEntry(c, fu), StringEntry(a, fv), StringEntry(L, fw)])
772821
773822
774823
775-@Callable(bu)
776-func setInitMarginRatio (em) = if (if ((0 >= em))
824+@Callable(bB)
825+func setInitMarginRatio (eB) = if (if ((0 >= eB))
777826 then true
778- else !(bI()))
827+ else !(bP()))
779828 then throw("Invalid setInitMarginRatio parameters")
780- else el(em, bj(), bk(), bg(), aY(), bm(), bn(), bl(), bo())
829+ else eA(eB, bq(), br(), bn(), bf(), bt(), bu(), bs(), bv())
781830
782831
783832
784-@Callable(bu)
785-func decreasePosition (eV,fg,fh) = if (if (if (if (if ((0 >= eV))
833+@Callable(bB)
834+func decreasePosition (fk,fx,fy) = if (if (if (if (if ((0 >= fk))
786835 then true
787- else !(bI()))
836+ else !(bP()))
788837 then true
789- else !(bv(at(am, fg), aZ(), true)))
838+ else !(bC(ay(ar, fx), bg(), true)))
790839 then true
791- else !(bH(toString(bu.caller))))
840+ else !(bO(toString(bB.caller))))
792841 then true
793- else bJ())
842+ else bQ())
794843 then throw("Invalid decreasePosition parameters")
795844 else {
796- let fi = bC(toString(bu.caller))
797- let fj = fi._1
798- let fk = fi._2
799- let fl = fi._3
800- let fm = fi._4
801- let fn = if ((fj > 0))
802- then ai
803- else ah
804- let fo = (fn == ah)
805- let fp = av(eV, fg)
806- let fq = db(toString(bu.caller), ap)
807- let fr = fq._1
808- let da = fq._2
809- let fs = if ((fr > fp))
845+ let fz = bJ(toString(bB.caller))
846+ let fA = fz._1
847+ let fB = fz._2
848+ let fC = fz._3
849+ let fD = fz._4
850+ let fE = if ((fA > 0))
851+ then an
852+ else am
853+ let fF = (fE == am)
854+ let fG = aA(fk, fx)
855+ let fH = di(toString(bB.caller), au)
856+ let fI = fH._1
857+ let dh = fH._2
858+ let fJ = if ((fI > fG))
810859 then {
811- let ft = bQ(fo, fp)
812- let dv = ft._1
813- let bT = ft._2
814- let bU = ft._3
815- let dD = ft._4
816- let dE = ft._5
817- let fu = aw(dv)
818- if (if ((fh != 0))
819- then (fh > fu)
860+ let fK = bX(fF, fG)
861+ let dC = fK._1
862+ let ca = fK._2
863+ let cb = fK._3
864+ let dK = fK._4
865+ let dL = fK._5
866+ let fL = aB(dC)
867+ if (if ((fy != 0))
868+ then (fy > fL)
820869 else false)
821- then throw(((("Too little base asset exchanged, got " + toString(fu)) + " expected ") + toString(fh)))
870+ then throw(((("Too little base asset exchanged, got " + toString(fL)) + " expected ") + toString(fy)))
822871 else {
823- let dA = at(av(da, fu), aw(fj))
824- let fv = ch(fj, fk, fm, dA)
825- let cq = fv._1
826- let cr = fv._2
827- let cm = fv._3
828- let dw = fp
829- let fw = (da - dA)
830- let fx = if ((fj > 0))
831- then ((fr - dw) - fw)
832- else ((fw + fr) - dw)
833- let fy = (fj + dv)
834- $Tuple11(fy, cq, aw(fx), bA(fy), bU, bT, dD, dE, (be() - fp), (bs() - (if ((fy > 0))
835- then aw(dv)
836- else 0)), (br() - (if ((0 > fy))
837- then aw(dv)
872+ let dH = ay(aA(dh, fL), aB(fA))
873+ let fM = co(fA, fB, fD, dH)
874+ let cx = fM._1
875+ let cy = fM._2
876+ let ct = fM._3
877+ let dD = fG
878+ let fN = (dh - dH)
879+ let fO = if ((fA > 0))
880+ then ((fI - dD) - fN)
881+ else ((fN + fI) - dD)
882+ let fP = (fA + dC)
883+ $Tuple11(fP, cx, aB(fO), bH(fP), cb, ca, dK, dL, (bl() - fG), (bz() - (if ((fP > 0))
884+ then aB(dC)
885+ else 0)), (by() - (if ((0 > fP))
886+ then aB(dC)
838887 else 0)))
839888 }
840889 }
841890 else throw("Close position first")
842- let fy = fs._1
843- let fz = fs._2
844- let fA = fs._3
845- let fB = fs._4
846- let bU = fs._5
847- let bT = fs._6
848- let dD = fs._7
849- let dE = fs._8
850- let dH = fs._9
851- let dF = fs._10
852- let dG = fs._11
853- let fC = invoke(ad(), "notifyNotional", [toString(bu.caller), fA], nil)
854- if ((fC == fC))
855- then (eB(toString(bu.caller), fy, fz, fA, fB) ++ eN(bT, bU, dD, dE, dH, dF, dG))
891+ let fP = fJ._1
892+ let fQ = fJ._2
893+ let fR = fJ._3
894+ let fS = fJ._4
895+ let cb = fJ._5
896+ let ca = fJ._6
897+ let dK = fJ._7
898+ let dL = fJ._8
899+ let dO = fJ._9
900+ let dM = fJ._10
901+ let dN = fJ._11
902+ let fT = invoke(ae(), "notifyNotional", [toString(bB.caller), fR], nil)
903+ if ((fT == fT))
904+ then (eQ(toString(bB.caller), fP, fQ, fR, fS) ++ fc(ca, cb, dK, dL, dO, dM, dN))
856905 else throw("Strict value is not equal to itself.")
857906 }
858907
859908
860909
861-@Callable(bu)
862-func increasePosition (fn,fg,fh,fD) = {
863- let fE = bu.payments[0].amount
864- if (if (if (if (if (if (if ((fn != ah))
865- then (fn != ai)
910+@Callable(bB)
911+func increasePosition (fE,fx,fy,fU) = {
912+ let fV = bB.payments[0].amount
913+ if (if (if (if (if (if (if ((fE != am))
914+ then (fE != an)
866915 else false)
867916 then true
868- else (0 >= fE))
917+ else (0 >= fV))
869918 then true
870- else !(bI()))
919+ else !(bP()))
871920 then true
872- else (bu.payments[0].assetId != Z()))
921+ else (bB.payments[0].assetId != aa()))
873922 then true
874- else !(bv(at(am, fg), aZ(), true)))
923+ else !(bC(ay(ar, fx), bg(), true)))
875924 then true
876- else bJ())
925+ else bQ())
877926 then throw("Invalid increasePosition parameters")
878927 else {
879- let bD = toString(bu.caller)
880- let fF = av(fE, aY())
881- let fG = invoke(af(), "acceptPaymentWithLink", [bD, fD], [AttachedPayment(Z(), fF)])
882- if ((fG == fG))
928+ let bK = toString(bB.caller)
929+ let et = bf()
930+ let fW = es(bB)
931+ let ey = fW._1
932+ let ez = fW._2
933+ let fX = aA(fV, ey)
934+ let fY = invoke(ag(), "acceptPaymentWithLink", [bK, fU], [AttachedPayment(aa(), fX)])
935+ if ((fY == fY))
883936 then {
884- let fH = {
885- let bF = fG
886- if ($isInstanceOf(bF, "Int"))
937+ let fZ = {
938+ let bM = fY
939+ if ($isInstanceOf(bM, "Int"))
887940 then {
888- let fI = bF
889- fI
941+ let ga = bM
942+ ga
890943 }
891944 else throw("Invalid referrerFee")
892945 }
893- let eV = (fE - fF)
894- let fJ = (fF - fH)
895- let fK = bC(bD)
896- let fj = fK._1
897- let fk = fK._2
898- let fl = fK._3
899- let fm = fK._4
900- let fL = (fj == 0)
901- let fM = if ((fj > 0))
902- then (fn == ah)
903- else (fn == ai)
904- let fN = if (!(fL))
905- then fM
946+ let fk = (fV - fX)
947+ let gb = (fX - fZ)
948+ let gc = bJ(bK)
949+ let fA = gc._1
950+ let fB = gc._2
951+ let fC = gc._3
952+ let fD = gc._4
953+ let gd = (fA == 0)
954+ let ge = if ((fA > 0))
955+ then (fE == am)
956+ else (fE == an)
957+ let gf = if (!(gd))
958+ then ge
906959 else false
907- let fo = (fn == ah)
908- let fO = if (if (fL)
960+ let fF = (fE == am)
961+ let gg = if (if (gd)
909962 then true
910- else fN)
963+ else gf)
911964 then {
912- let fp = av(eV, fg)
913- let fP = bQ(fo, fp)
914- let bW = fP._1
915- let bT = fP._2
916- let bU = fP._3
917- let dD = fP._4
918- let dE = fP._5
919- if (if ((fh != 0))
920- then (fh > aw(bW))
965+ let fG = aA(fk, fx)
966+ let gh = bX(fF, fG)
967+ let cd = gh._1
968+ let ca = gh._2
969+ let cb = gh._3
970+ let dK = gh._4
971+ let dL = gh._5
972+ if (if ((fy != 0))
973+ then (fy > aB(cd))
921974 else false)
922- then throw(((("Limit error: " + toString(aw(bW))) + " < ") + toString(fh)))
975+ then throw(((("Limit error: " + toString(aB(cd))) + " < ") + toString(fy)))
923976 else {
924- let fy = (fj + bW)
925- let fQ = at(fp, fg)
926- let fR = ch(fj, fk, fm, fQ)
927- let cq = fR._1
928- let cV = fR._2
929- let cW = fR._3
930- if (!(cG(bT, bU)))
977+ let fP = (fA + cd)
978+ let gi = ay(fG, fx)
979+ let gj = co(fA, fB, fD, gi)
980+ let cx = gj._1
981+ let dc = gj._2
982+ let dd = gj._3
983+ if (!(cN(ca, cb)))
931984 then throw("Over max spread limit")
932- else $Tuple11(fy, cq, (fl + fp), bA(fy), bU, bT, dD, dE, (be() + fp), (bs() + (if ((fy > 0))
933- then aw(bW)
934- else 0)), (br() + (if ((0 > fy))
935- then aw(bW)
985+ else $Tuple11(fP, cx, (fC + fG), bH(fP), cb, ca, dK, dL, (bl() + fG), (bz() + (if ((fP > 0))
986+ then aB(cd)
987+ else 0)), (by() + (if ((0 > fP))
988+ then aB(cd)
936989 else 0)))
937990 }
938991 }
939992 else {
940- let fp = av(eV, fg)
941- let fS = db(toString(bu.caller), ap)
942- let fr = fS._1
943- let da = fS._2
944- if ((fr > fp))
993+ let fG = aA(fk, fx)
994+ let gk = di(toString(bB.caller), au)
995+ let fI = gk._1
996+ let dh = gk._2
997+ if ((fI > fG))
945998 then throw("Use decreasePosition to decrease position size")
946999 else throw("Close position first")
9471000 }
948- let fy = fO._1
949- let fz = fO._2
950- let fA = fO._3
951- let fB = fO._4
952- let bU = fO._5
953- let bT = fO._6
954- let dD = fO._7
955- let dE = fO._8
956- let dH = fO._9
957- let dF = fO._10
958- let dG = fO._11
959- let fT = (fJ / 2)
960- let fU = (fJ - fT)
961- let fV = invoke(ag(), "deposit", nil, [AttachedPayment(Z(), eV)])
962- if ((fV == fV))
1001+ let fP = gg._1
1002+ let fQ = gg._2
1003+ let fR = gg._3
1004+ let fS = gg._4
1005+ let cb = gg._5
1006+ let ca = gg._6
1007+ let dK = gg._7
1008+ let dL = gg._8
1009+ let dO = gg._9
1010+ let dM = gg._10
1011+ let dN = gg._11
1012+ let gl = (gb / 2)
1013+ let gm = (gb - gl)
1014+ let gn = invoke(ah(), "deposit", nil, [AttachedPayment(aa(), fk)])
1015+ if ((gn == gn))
9631016 then {
964- let fW = invoke(ac(), "deposit", nil, [AttachedPayment(Z(), fU)])
965- if ((fW == fW))
1017+ let go = invoke(ad(), "deposit", nil, [AttachedPayment(aa(), gm)])
1018+ if ((go == go))
9661019 then {
967- let fX = invoke(ad(), "notifyFees", [bD, fJ], nil)
968- if ((fX == fX))
1020+ let gp = invoke(ae(), "notifyFees", [bK, gb], nil)
1021+ if ((gp == gp))
9691022 then {
970- let fC = invoke(ad(), "notifyNotional", [bD, fA], nil)
971- if ((fC == fC))
972- then (((eB(bD, fy, fz, fA, fB) ++ eN(bT, bU, dD, dE, dH, dF, dG)) ++ eY(fT)) ++ eX((aX() + eV)))
1023+ let fT = invoke(ae(), "notifyNotional", [bK, fR], nil)
1024+ if ((fT == fT))
1025+ then ((((eQ(bK, fP, fQ, fR, fS) ++ fc(ca, cb, dK, dL, dO, dM, dN)) ++ fn(gl)) ++ fm((be() + fk))) ++ fo(ez, bB))
9731026 else throw("Strict value is not equal to itself.")
9741027 }
9751028 else throw("Strict value is not equal to itself.")
9761029 }
9771030 else throw("Strict value is not equal to itself.")
9781031 }
9791032 else throw("Strict value is not equal to itself.")
9801033 }
9811034 else throw("Strict value is not equal to itself.")
9821035 }
9831036 }
9841037
9851038
9861039
987-@Callable(bu)
1040+@Callable(bB)
9881041 func addMargin () = {
989- let fE = bu.payments[0].amount
990- if (if (if (if ((bu.payments[0].assetId != Z()))
1042+ let fV = bB.payments[0].amount
1043+ if (if (if (if ((bB.payments[0].assetId != aa()))
9911044 then true
992- else !(bH(toString(bu.caller))))
1045+ else !(bO(toString(bB.caller))))
9931046 then true
994- else !(bI()))
1047+ else !(bP()))
9951048 then true
996- else bJ())
1049+ else bQ())
9971050 then throw("Invalid addMargin parameters")
9981051 else {
999- let bD = toString(bu.caller)
1000- let fF = av(fE, aY())
1001- let fG = invoke(af(), "acceptPayment", [bD], [AttachedPayment(Z(), fF)])
1002- if ((fG == fG))
1052+ let bK = toString(bB.caller)
1053+ let gq = es(bB)
1054+ let ey = gq._1
1055+ let ez = gq._2
1056+ let fX = aA(fV, ey)
1057+ let fY = invoke(ag(), "acceptPayment", [bK], [AttachedPayment(aa(), fX)])
1058+ if ((fY == fY))
10031059 then {
1004- let fH = {
1005- let bF = fG
1006- if ($isInstanceOf(bF, "Int"))
1060+ let fZ = {
1061+ let bM = fY
1062+ if ($isInstanceOf(bM, "Int"))
10071063 then {
1008- let fI = bF
1009- fI
1064+ let ga = bM
1065+ ga
10101066 }
10111067 else throw("Invalid referrerFee")
10121068 }
1013- let fJ = (fF - fH)
1014- let eV = (fE - fF)
1015- let fY = bC(bD)
1016- let fj = fY._1
1017- let fk = fY._2
1018- let fl = fY._3
1019- let fm = fY._4
1020- let fT = (fJ / 2)
1021- let fU = (fJ - fT)
1022- let fV = invoke(ag(), "deposit", nil, [AttachedPayment(Z(), eV)])
1023- if ((fV == fV))
1069+ let gb = (fX - fZ)
1070+ let fk = (fV - fX)
1071+ let gr = bJ(bK)
1072+ let fA = gr._1
1073+ let fB = gr._2
1074+ let fC = gr._3
1075+ let fD = gr._4
1076+ let gl = (gb / 2)
1077+ let gm = (gb - gl)
1078+ let gn = invoke(ah(), "deposit", nil, [AttachedPayment(aa(), fk)])
1079+ if ((gn == gn))
10241080 then {
1025- let fW = invoke(ac(), "deposit", nil, [AttachedPayment(Z(), fU)])
1026- if ((fW == fW))
1081+ let go = invoke(ad(), "deposit", nil, [AttachedPayment(aa(), gm)])
1082+ if ((go == go))
10271083 then {
1028- let fX = invoke(ad(), "notifyFees", [bD, fJ], nil)
1029- if ((fX == fX))
1030- then ((eB(bD, fj, (fk + eV), fl, fm) ++ eY(fT)) ++ eX((aX() + eV)))
1084+ let gp = invoke(ae(), "notifyFees", [bK, gb], nil)
1085+ if ((gp == gp))
1086+ then (((eQ(bK, fA, (fB + fk), fC, fD) ++ fn(gl)) ++ fm((be() + fk))) ++ fo(ez, bB))
10311087 else throw("Strict value is not equal to itself.")
10321088 }
10331089 else throw("Strict value is not equal to itself.")
10341090 }
10351091 else throw("Strict value is not equal to itself.")
10361092 }
10371093 else throw("Strict value is not equal to itself.")
10381094 }
10391095 }
10401096
10411097
10421098
1043-@Callable(bu)
1044-func removeMargin (eV) = if (if (if (if ((0 >= eV))
1099+@Callable(bB)
1100+func removeMargin (fk) = if (if (if (if ((0 >= fk))
10451101 then true
1046- else !(bH(toString(bu.caller))))
1102+ else !(bO(toString(bB.caller))))
10471103 then true
1048- else !(bI()))
1104+ else !(bP()))
10491105 then true
1050- else bJ())
1106+ else bQ())
10511107 then throw("Invalid removeMargin parameters")
10521108 else {
1053- let fZ = bC(toString(bu.caller))
1054- let fj = fZ._1
1055- let fk = fZ._2
1056- let fl = fZ._3
1057- let fm = fZ._4
1058- let ga = -(eV)
1059- let gb = ch(fj, fk, fm, ga)
1060- let cq = gb._1
1061- let cr = gb._2
1062- if ((cr != 0))
1109+ let gs = bJ(toString(bB.caller))
1110+ let fA = gs._1
1111+ let fB = gs._2
1112+ let fC = gs._3
1113+ let fD = gs._4
1114+ let gt = -(fk)
1115+ let gu = co(fA, fB, fD, gt)
1116+ let cx = gu._1
1117+ let cy = gu._2
1118+ if ((cy != 0))
10631119 then throw("Invalid removed margin amount")
10641120 else {
1065- let gc = dg(cq, cr, fl)
1066- if (!(bv(gc, aZ(), true)))
1067- then throw(((("Too much margin removed: " + toString(gc)) + " < ") + toString(aZ())))
1121+ let gv = dn(cx, cy, fC)
1122+ if (!(bC(gv, bg(), true)))
1123+ then throw(((("Too much margin removed: " + toString(gv)) + " < ") + toString(bg())))
10681124 else {
1069- let gd = invoke(ag(), "withdraw", [toBase58String(Z()), eV], nil)
1070- if ((gd == gd))
1071- then ((eB(toString(bu.caller), fj, cq, fl, bA(fj)) ++ eU(bu.caller, eV)) ++ eX((aX() - eV)))
1125+ let gw = invoke(ah(), "withdraw", [toBase58String(aa()), fk], nil)
1126+ if ((gw == gw))
1127+ then ((eQ(toString(bB.caller), fA, cx, fC, bH(fA)) ++ fj(bB.caller, fk)) ++ fm((be() - fk)))
10721128 else throw("Strict value is not equal to itself.")
10731129 }
10741130 }
10751131 }
10761132
10771133
10781134
1079-@Callable(bu)
1135+@Callable(bB)
10801136 func closePosition () = {
1081- let ge = bt(bu)
1082- let gf = valueOrErrorMessage(addressFromString(ge), "Invalid caller")
1083- if (if (if (!(bH(ge)))
1137+ let gx = bA(bB)
1138+ let gy = valueOrErrorMessage(addressFromString(gx), "Invalid caller")
1139+ if (if (if (!(bO(gx)))
10841140 then true
1085- else !(bI()))
1141+ else !(bP()))
10861142 then true
1087- else bJ())
1143+ else bQ())
10881144 then throw("Invalid closePosition parameters")
10891145 else {
1090- let gg = dx(ge, true)
1091- let cV = gg._1
1092- let gh = gg._2
1093- let dA = gg._3
1094- let dB = gg._4
1095- let bT = gg._5
1096- let bU = gg._6
1097- let dD = gg._7
1098- let dE = gg._8
1099- let dH = gg._9
1100- let cW = gg._10
1101- let dF = gg._11
1102- let dG = gg._12
1103- if ((gh > 0))
1146+ let gz = dE(gx, true)
1147+ let dc = gz._1
1148+ let gA = gz._2
1149+ let dH = gz._3
1150+ let dI = gz._4
1151+ let ca = gz._5
1152+ let cb = gz._6
1153+ let dK = gz._7
1154+ let dL = gz._8
1155+ let dO = gz._9
1156+ let dd = gz._10
1157+ let dM = gz._11
1158+ let dN = gz._12
1159+ if ((gA > 0))
11041160 then throw("Unable to close position with bad debt")
11051161 else {
1106- let gi = aw(dB)
1107- let gj = (aX() - gi)
1108- let gk = if ((0 > gj))
1109- then $Tuple2(0, aw(gj))
1110- else $Tuple2(gj, 0)
1111- let gl = gk._1
1112- let gm = gk._2
1113- let fI = if ((gm > 0))
1162+ let gB = aB(dI)
1163+ let gC = (be() - gB)
1164+ let gD = if ((0 > gC))
1165+ then $Tuple2(0, aB(gC))
1166+ else $Tuple2(gC, 0)
1167+ let gE = gD._1
1168+ let gF = gD._2
1169+ let ga = if ((gF > 0))
11141170 then {
1115- let gn = invoke(ac(), "withdraw", [gm], nil)
1116- if ((gn == gn))
1171+ let gG = invoke(ad(), "withdraw", [gF], nil)
1172+ if ((gG == gG))
11171173 then nil
11181174 else throw("Strict value is not equal to itself.")
11191175 }
11201176 else nil
1121- if ((fI == fI))
1177+ if ((ga == ga))
11221178 then {
1123- let gd = invoke(ag(), "withdraw", [toBase58String(Z()), (gi - gm)], nil)
1124- if ((gd == gd))
1179+ let gw = invoke(ah(), "withdraw", [toBase58String(aa()), (gB - gF)], nil)
1180+ if ((gw == gw))
11251181 then {
1126- let fC = invoke(ad(), "notifyNotional", [ge, 0], nil)
1127- if ((fC == fC))
1128- then (((eT(ge) ++ eN(bT, bU, dD, dE, dH, dF, dG)) ++ eU(gf, gi)) ++ eX(gl))
1182+ let fT = invoke(ae(), "notifyNotional", [gx, 0], nil)
1183+ if ((fT == fT))
1184+ then (((fi(gx) ++ fc(ca, cb, dK, dL, dO, dM, dN)) ++ fj(gy, gB)) ++ fm(gE))
11291185 else throw("Strict value is not equal to itself.")
11301186 }
11311187 else throw("Strict value is not equal to itself.")
11321188 }
11331189 else throw("Strict value is not equal to itself.")
11341190 }
11351191 }
11361192 }
11371193
11381194
11391195
1140-@Callable(bu)
1141-func liquidate (bD) = {
1142- let go = dk(bD, ap)
1143- let gc = if (cM())
1196+@Callable(bB)
1197+func liquidate (bK) = {
1198+ let gH = dr(bK, au)
1199+ let gv = if (cT())
11441200 then {
1145- let gp = dk(bD, aq)
1146- ax(go, gp)
1201+ let gI = dr(bK, av)
1202+ aC(gH, gI)
11471203 }
1148- else go
1149- if (if (if (if (!(bv(gc, bj(), false)))
1204+ else gH
1205+ if (if (if (if (!(bC(gv, bq(), false)))
11501206 then true
1151- else !(bH(bD)))
1207+ else !(bO(bK)))
11521208 then true
1153- else !(bI()))
1209+ else !(bP()))
11541210 then true
1155- else bJ())
1211+ else bQ())
11561212 then throw("Unable to liquidate")
1157- else if (if (if ((go > bk()))
1158- then (bl() > 0)
1213+ else if (if (if ((gH > br()))
1214+ then (bs() > 0)
11591215 else false)
1160- then (am > bl())
1216+ then (ar > bs())
11611217 else false)
11621218 then {
1163- let gq = bC(bD)
1164- let fj = gq._1
1165- let fk = gq._2
1166- let fl = gq._3
1167- let fm = gq._4
1168- let fn = if ((fj > 0))
1169- then ai
1170- else ah
1171- let fo = (fn == ah)
1172- let dw = dq(bD, fj)
1173- let gr = db(bD, ap)
1174- let fr = gr._1
1175- let da = gr._2
1176- let gs = bQ(fo, dw)
1177- let dv = gs._1
1178- let bT = gs._2
1179- let bU = gs._3
1180- let dD = gs._4
1181- let dE = gs._5
1182- let dA = at(av(da, aw(dv)), aw(fj))
1183- let gt = ch(fj, fk, fm, dA)
1184- let cq = gt._1
1185- let cr = gt._2
1186- let cm = gt._3
1187- let fw = (da - dA)
1188- let fx = if ((fj > 0))
1189- then ((fr - dw) - fw)
1190- else ((fw + fr) - dw)
1191- let gu = av(dw, bk())
1192- let gv = (gu / 2)
1193- let fU = (gu - gv)
1194- let gw = (cq - gu)
1195- let fy = (fj + dv)
1196- let fA = aw(fx)
1197- let gx = bA(fy)
1198- let dH = (be() - dw)
1199- let gj = (aX() - gu)
1200- let gy = if ((0 > gj))
1201- then $Tuple2(0, aw(gj))
1202- else $Tuple2(gj, 0)
1203- let gz = gy._1
1204- let gA = gy._2
1205- let fI = if ((gA > 0))
1219+ let gJ = bJ(bK)
1220+ let fA = gJ._1
1221+ let fB = gJ._2
1222+ let fC = gJ._3
1223+ let fD = gJ._4
1224+ let fE = if ((fA > 0))
1225+ then an
1226+ else am
1227+ let fF = (fE == am)
1228+ let dD = dx(bK, fA)
1229+ let gK = di(bK, au)
1230+ let fI = gK._1
1231+ let dh = gK._2
1232+ let gL = bX(fF, dD)
1233+ let dC = gL._1
1234+ let ca = gL._2
1235+ let cb = gL._3
1236+ let dK = gL._4
1237+ let dL = gL._5
1238+ let dH = ay(aA(dh, aB(dC)), aB(fA))
1239+ let gM = co(fA, fB, fD, dH)
1240+ let cx = gM._1
1241+ let cy = gM._2
1242+ let ct = gM._3
1243+ let fN = (dh - dH)
1244+ let fO = if ((fA > 0))
1245+ then ((fI - dD) - fN)
1246+ else ((fN + fI) - dD)
1247+ let gN = aA(dD, br())
1248+ let gO = (gN / 2)
1249+ let gm = (gN - gO)
1250+ let gP = (cx - gN)
1251+ let fP = (fA + dC)
1252+ let fR = aB(fO)
1253+ let gQ = bH(fP)
1254+ let dO = (bl() - dD)
1255+ let gC = (be() - gN)
1256+ let gR = if ((0 > gC))
1257+ then $Tuple2(0, aB(gC))
1258+ else $Tuple2(gC, 0)
1259+ let gS = gR._1
1260+ let gT = gR._2
1261+ let ga = if ((gT > 0))
12061262 then {
1207- let gn = invoke(ac(), "withdraw", [gA], nil)
1208- if ((gn == gn))
1263+ let gG = invoke(ad(), "withdraw", [gT], nil)
1264+ if ((gG == gG))
12091265 then nil
12101266 else throw("Strict value is not equal to itself.")
12111267 }
12121268 else nil
1213- if ((fI == fI))
1269+ if ((ga == ga))
12141270 then {
1215- let gd = invoke(ag(), "withdraw", [toBase58String(Z()), (gu - gA)], nil)
1216- if ((gd == gd))
1271+ let gw = invoke(ah(), "withdraw", [toBase58String(aa()), (gN - gT)], nil)
1272+ if ((gw == gw))
12171273 then {
1218- let fW = invoke(ac(), "deposit", nil, [AttachedPayment(Z(), fU)])
1219- if ((fW == fW))
1274+ let go = invoke(ad(), "deposit", nil, [AttachedPayment(aa(), gm)])
1275+ if ((go == go))
12201276 then {
1221- let fC = invoke(ad(), "notifyNotional", [bD, fA], nil)
1222- if ((fC == fC))
1223- then (((eB(bD, fy, gw, fA, gx) ++ eN(bT, bU, dD, dE, dH, (bs() - (if ((fy > 0))
1224- then aw(dv)
1225- else 0)), (br() - (if ((0 > fy))
1226- then aw(dv)
1227- else 0)))) ++ eU(bu.caller, gv)) ++ eX(gz))
1277+ let fT = invoke(ae(), "notifyNotional", [bK, fR], nil)
1278+ if ((fT == fT))
1279+ then (((eQ(bK, fP, gP, fR, gQ) ++ fc(ca, cb, dK, dL, dO, (bz() - (if ((fP > 0))
1280+ then aB(dC)
1281+ else 0)), (by() - (if ((0 > fP))
1282+ then aB(dC)
1283+ else 0)))) ++ fj(bB.caller, gO)) ++ fm(gS))
12281284 else throw("Strict value is not equal to itself.")
12291285 }
12301286 else throw("Strict value is not equal to itself.")
12311287 }
12321288 else throw("Strict value is not equal to itself.")
12331289 }
12341290 else throw("Strict value is not equal to itself.")
12351291 }
12361292 else {
1237- let gB = dx(bD, false)
1238- let cV = gB._1
1239- let cr = gB._2
1240- let cW = gB._3
1241- let cX = gB._4
1242- let bT = gB._5
1243- let bU = gB._6
1244- let dD = gB._7
1245- let dE = gB._8
1246- let dH = gB._9
1247- let dw = gB._10
1248- let dF = gB._11
1249- let dG = gB._12
1250- let gu = av(dw, bk())
1251- let gv = (gu / 2)
1252- let fU = (gu - gv)
1253- let gj = (aX() - gu)
1254- let gC = if ((0 > gj))
1255- then $Tuple2(0, aw(gj))
1256- else $Tuple2(gj, 0)
1257- let gz = gC._1
1258- let gA = gC._2
1259- let fI = if ((gA > 0))
1293+ let gU = dE(bK, false)
1294+ let dc = gU._1
1295+ let cy = gU._2
1296+ let dd = gU._3
1297+ let de = gU._4
1298+ let ca = gU._5
1299+ let cb = gU._6
1300+ let dK = gU._7
1301+ let dL = gU._8
1302+ let dO = gU._9
1303+ let dD = gU._10
1304+ let dM = gU._11
1305+ let dN = gU._12
1306+ let gN = aA(dD, br())
1307+ let gO = (gN / 2)
1308+ let gm = (gN - gO)
1309+ let gC = (be() - gN)
1310+ let gV = if ((0 > gC))
1311+ then $Tuple2(0, aB(gC))
1312+ else $Tuple2(gC, 0)
1313+ let gS = gV._1
1314+ let gT = gV._2
1315+ let ga = if ((gT > 0))
12601316 then {
1261- let gn = invoke(ac(), "withdraw", [gA], nil)
1262- if ((gn == gn))
1317+ let gG = invoke(ad(), "withdraw", [gT], nil)
1318+ if ((gG == gG))
12631319 then nil
12641320 else throw("Strict value is not equal to itself.")
12651321 }
12661322 else nil
1267- if ((fI == fI))
1323+ if ((ga == ga))
12681324 then {
1269- let gd = invoke(ag(), "withdraw", [toBase58String(Z()), (gu - gA)], nil)
1270- if ((gd == gd))
1325+ let gw = invoke(ah(), "withdraw", [toBase58String(aa()), (gN - gT)], nil)
1326+ if ((gw == gw))
12711327 then {
1272- let fW = invoke(ac(), "deposit", nil, [AttachedPayment(Z(), fU)])
1273- if ((fW == fW))
1328+ let go = invoke(ad(), "deposit", nil, [AttachedPayment(aa(), gm)])
1329+ if ((go == go))
12741330 then {
1275- let fC = invoke(ad(), "notifyNotional", [bD, 0], nil)
1276- if ((fC == fC))
1277- then (((eT(bD) ++ eN(bT, bU, dD, dE, dH, dF, dG)) ++ eU(bu.caller, gv)) ++ eX(gz))
1331+ let fT = invoke(ae(), "notifyNotional", [bK, 0], nil)
1332+ if ((fT == fT))
1333+ then (((fi(bK) ++ fc(ca, cb, dK, dL, dO, dM, dN)) ++ fj(bB.caller, gO)) ++ fm(gS))
12781334 else throw("Strict value is not equal to itself.")
12791335 }
12801336 else throw("Strict value is not equal to itself.")
12811337 }
12821338 else throw("Strict value is not equal to itself.")
12831339 }
12841340 else throw("Strict value is not equal to itself.")
12851341 }
12861342 }
12871343
12881344
12891345
1290-@Callable(bu)
1346+@Callable(bB)
12911347 func payFunding () = {
1292- let gD = bf()
1293- if (if (if ((gD > lastBlock.timestamp))
1348+ let gW = bm()
1349+ if (if (if ((gW > lastBlock.timestamp))
12941350 then true
1295- else !(bI()))
1351+ else !(bP()))
12961352 then true
1297- else bJ())
1298- then throw(((("Invalid funding block timestamp: " + toString(lastBlock.timestamp)) + " < ") + toString(gD)))
1353+ else bQ())
1354+ then throw(((("Invalid funding block timestamp: " + toString(lastBlock.timestamp)) + " < ") + toString(gW)))
12991355 else {
1300- let eg = cB()
1301- let gE = ef()
1302- let ej = gE._1
1303- let ek = gE._2
1304- ev((gD + bi()), (bp() + ek), (bq() + ej), at(ek, eg), at(ej, eg))
1356+ let en = cI()
1357+ let gX = em()
1358+ let eq = gX._1
1359+ let er = gX._2
1360+ eK((gW + bp()), (bw() + er), (bx() + eq), ay(er, en), ay(eq, en))
13051361 }
13061362 }
13071363
13081364
13091365
1310-@Callable(bu)
1311-func forceMoveAsset (bD,eV) = if (if ((addressFromPublicKey(Y()) != bu.caller))
1366+@Callable(bB)
1367+func forceMoveAsset (bK,fk) = if (if ((addressFromPublicKey(Z()) != bB.caller))
13121368 then true
1313- else (0 > eV))
1369+ else (0 > fk))
13141370 then throw("Invalid forceMoveAsset parameters")
13151371 else {
1316- let gd = invoke(ag(), "withdraw", [toBase58String(Z()), eV], nil)
1317- if ((gd == gd))
1318- then (eU(addressFromStringValue(bD), eV) ++ eX((aX() - eV)))
1372+ let gw = invoke(ah(), "withdraw", [toBase58String(aa()), fk], nil)
1373+ if ((gw == gw))
1374+ then (fj(addressFromStringValue(bK), fk) ++ fm((be() - fk)))
13191375 else throw("Strict value is not equal to itself.")
13201376 }
13211377
13221378
13231379
1324-@Callable(bu)
1325-func adjustPeg (dZ) = if (if ((addressFromPublicKey(Y()) != bu.caller))
1380+@Callable(bB)
1381+func adjustPeg (eg) = if (if ((addressFromPublicKey(Z()) != bB.caller))
13261382 then true
1327- else (0 > dZ))
1383+ else (0 > eg))
13281384 then throw("Invalid adjustPeg parameters")
13291385 else {
1330- let gF = dY(dZ)
1331- let ed = gF._1
1332- let gG = gF._2
1333- if ((gG == 0))
1386+ let gY = ef(eg)
1387+ let ek = gY._1
1388+ let gZ = gY._2
1389+ if ((gZ == 0))
13341390 then throw("Nothing to adjust")
1335- else if ((gG > 0))
1336- then eM(ed, bb())
1391+ else if ((gZ > 0))
1392+ then fb(ek, bi())
13371393 else {
1338- let gd = invoke(ag(), "withdraw", [toBase58String(Z()), aw(gG)], nil)
1339- if ((gd == gd))
1394+ let gw = invoke(ah(), "withdraw", [toBase58String(aa()), aB(gZ)], nil)
1395+ if ((gw == gw))
13401396 then {
1341- let fW = invoke(ac(), "deposit", nil, [AttachedPayment(Z(), aw(gG))])
1342- if ((fW == fW))
1343- then (eX((aX() - aw(gG))) ++ eM(ed, bb()))
1397+ let go = invoke(ad(), "deposit", nil, [AttachedPayment(aa(), aB(gZ))])
1398+ if ((go == go))
1399+ then (fm((be() - aB(gZ))) ++ fb(ek, bi()))
13441400 else throw("Strict value is not equal to itself.")
13451401 }
13461402 else throw("Strict value is not equal to itself.")
13471403 }
13481404 }
13491405
13501406
13511407
1352-@Callable(bu)
1408+@Callable(bB)
13531409 func migrateLiquidity () = {
1354- let gH = aX()
1355- let gd = invoke(aa(), "unlockNeutrino", [gH, toBase58String(Z())], nil)
1356- if ((gd == gd))
1410+ let ha = be()
1411+ if ((ha > 0))
13571412 then {
1358- let fV = invoke(ag(), "deposit", nil, [AttachedPayment(Z(), gH)])
1359- if ((fV == fV))
1360- then nil
1413+ let gw = invoke(ab(), "unlockNeutrino", [ha, toBase58String(aa())], nil)
1414+ if ((gw == gw))
1415+ then {
1416+ let gn = invoke(ah(), "deposit", nil, [AttachedPayment(aa(), ha)])
1417+ if ((gn == gn))
1418+ then nil
1419+ else throw("Strict value is not equal to itself.")
1420+ }
13611421 else throw("Strict value is not equal to itself.")
13621422 }
1363- else throw("Strict value is not equal to itself.")
1423+ else nil
13641424 }
13651425
13661426
13671427
1368-@Callable(bu)
1369-func v_get (bD) = {
1370- let gI = dx(bD, false)
1371- let cV = gI._1
1372- let cW = gI._2
1373- let cX = gI._3
1374- let gJ = gI._4
1375- throw((((ar(cW) + ar(cX)) + ar(gJ)) + ar(dp(bD))))
1428+@Callable(bB)
1429+func v_get (bK) = {
1430+ let hb = dE(bK, false)
1431+ let dc = hb._1
1432+ let dd = hb._2
1433+ let de = hb._3
1434+ let hc = hb._4
1435+ throw((((aw(dd) + aw(de)) + aw(hc)) + aw(dw(bK))))
13761436 }
13771437
13781438
13791439
1380-@Callable(bu)
1381-func view_calcRemainMarginWithFundingPayment (bD) = {
1382- let gK = bC(bD)
1383- let bG = gK._1
1384- let dd = gK._2
1385- let dm = gK._3
1386- let df = gK._4
1387- let gL = db(bD, ap)
1388- let cS = gL._1
1389- let da = gL._2
1390- let gM = ch(bG, dd, df, da)
1391- let cq = gM._1
1392- let cr = gM._2
1393- let cm = gM._3
1394- throw((((((ar(cq) + ar(cm)) + ar(dp(bD))) + ar(da)) + ar(cr)) + ar(cS)))
1440+@Callable(bB)
1441+func view_calcRemainMarginWithFundingPayment (bK) = {
1442+ let hd = bJ(bK)
1443+ let bN = hd._1
1444+ let dk = hd._2
1445+ let dt = hd._3
1446+ let dm = hd._4
1447+ let he = di(bK, au)
1448+ let cZ = he._1
1449+ let dh = he._2
1450+ let hf = co(bN, dk, dm, dh)
1451+ let cx = hf._1
1452+ let cy = hf._2
1453+ let ct = hf._3
1454+ throw((((((aw(cx) + aw(ct)) + aw(dw(bK))) + aw(dh)) + aw(cy)) + aw(cZ)))
13951455 }
13961456
13971457
13981458
1399-@Callable(bu)
1400-func view_getPegAdjustCost (dZ) = {
1401- let ee = dY(dZ)
1402- throw(toString(ee._2))
1459+@Callable(bB)
1460+func view_getPegAdjustCost (eg) = {
1461+ let el = ef(eg)
1462+ throw(toString(el._2))
14031463 }
14041464
14051465
14061466
1407-@Callable(bu)
1467+@Callable(bB)
14081468 func view_getFunding () = {
1409- let eg = cB()
1410- let gN = ef()
1411- let ej = gN._1
1412- let ek = gN._2
1413- let gO = at(ek, eg)
1414- let gP = at(ej, eg)
1415- throw((((ar(gO) + ar(gP)) + ar(dI())) + ar(cB())))
1469+ let en = cI()
1470+ let hg = em()
1471+ let eq = hg._1
1472+ let er = hg._2
1473+ let hh = ay(er, en)
1474+ let hi = ay(eq, en)
1475+ throw((((aw(hh) + aw(hi)) + aw(dP())) + aw(cI())))
14161476 }
14171477
14181478
1419-@Verifier(gQ)
1420-func gR () = sigVerify(gQ.bodyBytes, gQ.proofs[0], Y())
1479+@Verifier(hj)
1480+func hk () = sigVerify(hj.bodyBytes, hj.proofs[0], Z())
14211481

github/deemru/w8io/169f3d6 
631.78 ms