tx · 4J4TzApuukBCCo4YSPXpTxmFLDWAFGu2vYfR6MFjJMFC

3N8G95pEaYEhZ4U3m3UrzpEzwBFn5vvXsZH:  -0.05100000 Waves

2022.08.02 16:54 [2166952] smart account 3N8G95pEaYEhZ4U3m3UrzpEzwBFn5vvXsZH > SELF 0.00000000 Waves

{ "type": 13, "id": "4J4TzApuukBCCo4YSPXpTxmFLDWAFGu2vYfR6MFjJMFC", "fee": 5100000, "feeAssetId": null, "timestamp": 1659448464653, "version": 2, "chainId": 84, "sender": "3N8G95pEaYEhZ4U3m3UrzpEzwBFn5vvXsZH", "senderPublicKey": "Hj6oyH6As5UWo8fZ1K4hPsEY7nxH3MvhBqDD6axiwjXs", "proofs": [ "4NXWue515yKY4ENEj5kLMSniWygiMvpbsToxzxyfCm4xUX388D2EsnAdzQQDP7Bv5e41NCMw7d7VJRN19GLRnQKC" ], "script": "base64:BgJPCAISABIAEgkKBwEBAQEBAQESDgoMAQEBAQEBAQgICAEBEgUKAwEBARIFCgMBAQESABIDCgEBEgASAwoBCBIAEgMKAQgSAwoBCBIECgIIAXgACWtfb3JhX2tleQIJa19vcmFfa2V5AA9rX29yYV9ibG9ja19rZXkCD2tfb3JhX2Jsb2NrX2tleQAFa19vcmECBWtfb3JhAAlrX2JhbGFuY2UCCWtfYmFsYW5jZQAOa19wb3NpdGlvblNpemUCDmtfcG9zaXRpb25TaXplABBrX3Bvc2l0aW9uTWFyZ2luAhBrX3Bvc2l0aW9uTWFyZ2luABZrX3Bvc2l0aW9uT3Blbk5vdGlvbmFsAhZrX3Bvc2l0aW9uT3Blbk5vdGlvbmFsAC5rX3Bvc2l0aW9uTGFzdFVwZGF0ZWRDdW11bGF0aXZlUHJlbWl1bUZyYWN0aW9uAhJrX3Bvc2l0aW9uRnJhY3Rpb24ADWtfaW5pdGlhbGl6ZWQCDWtfaW5pdGlhbGl6ZWQACGtfcGF1c2VkAghrX3BhdXNlZAAFa19mZWUCBWtfZmVlAA9rX2Z1bmRpbmdQZX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W91bnQJAMwIAgkA2AQBCQEKcXVvdGVBc3NldAAFA25pbAUDbmlsAwkAAAIFB3Vuc3Rha2UFB3Vuc3Rha2UJAM4IAgkBCHdpdGhkcmF3AgkBEUBleHRyTmF0aXZlKDEwNjIpAQUHX3RyYWRlcgUHX2Ftb3VudAkBDXVwZGF0ZUJhbGFuY2UBCQBlAgkBCGNiYWxhbmNlAAUHX2Ftb3VudAkAAgECJFN0cmljdCB2YWx1ZSBpcyBub3QgZXF1YWwgdG8gaXRzZWxmLgECdHgBBnZlcmlmeQAJAPQDAwgFAnR4CWJvZHlCeXRlcwkAkQMCCAUCdHgGcHJvb2ZzAAAJAQ5hZG1pblB1YmxpY0tleQCD1+UI", "height": 2166952, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 91v8xQ5aRYVhg5gC1PqePck5ZM6JcGbw5ELvRK9AJ639 Next: Ei9tbgMjGRJbCZMHUkWYzyzJTiQ9XsvKgd1TTUVrLTvn Diff:
OldNewDifferences
1-{-# STDLIB_VERSION 5 #-}
1+{-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let a = "k_ora_key"
8383
8484 let O = "k_staking_address"
8585
86-func P () = valueOrErrorMessage(addressFromString(getStringValue(this, I)), "Coordinator not set")
86+let P = "k_miner_address"
87+
88+func Q () = valueOrErrorMessage(addressFromString(getStringValue(this, I)), "Coordinator not set")
8789
8890
89-func Q () = addressFromString(getStringValue(P(), K))
91+func R () = addressFromString(getStringValue(Q(), K))
9092
9193
92-func R () = fromBase58String(getStringValue(P(), L))
94+func S () = fromBase58String(getStringValue(Q(), L))
9395
9496
95-func S () = fromBase58String(getStringValue(P(), M))
97+func T () = fromBase58String(getStringValue(Q(), M))
9698
9799
98-func T () = valueOrErrorMessage(addressFromString(getStringValue(P(), N)), "Quote asset staking not set")
100+func U () = valueOrErrorMessage(addressFromString(getStringValue(Q(), N)), "Quote asset staking not set")
99101
100102
101-func U () = valueOrErrorMessage(addressFromString(getStringValue(P(), O)), "Insurance not set")
103+func V () = valueOrErrorMessage(addressFromString(getStringValue(Q(), O)), "Insurance not set")
102104
103105
104-func V () = valueOrErrorMessage(addressFromString(getStringValue(P(), J)), "Insurance not set")
106+func W () = valueOrErrorMessage(addressFromString(getStringValue(Q(), J)), "Insurance not set")
105107
106108
107-let W = 1
108-
109-let X = 2
110-
111-let Y = 60
112-
113-let Z = 15
114-
115-let aa = 15
116-
117-let ab = 1000
118-
119-let ac = (1 * (((((10 * 10) * 10) * 10) * 10) * 10))
120-
121-let ad = (100 * ac)
122-
123-let ae = (86400 * ac)
124-
125-let af = 100
126-
127-let ag = 1
128-
129-let ah = 2
130-
131-func ai (aj) = (toString(aj) + ",")
109+func X () = valueOrErrorMessage(addressFromString(getStringValue(Q(), P)), "Insurance not set")
132110
133111
134-func ak (aj,al) = fraction(aj, ac, al, HALFEVEN)
112+let Y = 1
113+
114+let Z = 2
115+
116+let aa = 60
117+
118+let ab = 15
119+
120+let ac = 15
121+
122+let ad = 1000
123+
124+let ae = (1 * (((((10 * 10) * 10) * 10) * 10) * 10))
125+
126+let af = (100 * ae)
127+
128+let ag = (86400 * ae)
129+
130+let ah = 100
131+
132+let ai = 1
133+
134+let aj = 2
135+
136+func ak (al) = (toString(al) + ",")
135137
136138
137-func am (aj,al) = fraction(aj, al, ac, HALFEVEN)
139+func am (al,an) = fraction(al, ae, an, HALFEVEN)
138140
139141
140-func an (aj) = if ((aj > 0))
141- then aj
142- else -(aj)
142+func ao (al,an) = fraction(al, an, ae, HALFEVEN)
143143
144144
145-func ao (aj,al) = if ((aj >= al))
146- then aj
147- else al
145+func ap (al) = if ((al > 0))
146+ then al
147+ else -(al)
148148
149149
150-func ap (aq,ar) = ((aq + "_") + ar)
150+func aq (al,an) = if ((al >= an))
151+ then al
152+ else an
151153
152154
153-func as (at) = {
154- func au (av,aw) = ((av + aw) + ",")
155+func ar (as,at) = ((as + "_") + at)
155156
156- let ax = {
157- let ay = at
158- let az = size(ay)
159- let aA = ""
160- func aB (aC,aD) = if ((aD >= az))
161- then aC
162- else au(aC, ay[aD])
163157
164- func aE (aC,aD) = if ((aD >= az))
165- then aC
158+func au (av) = {
159+ func aw (ax,ay) = ((ax + ay) + ",")
160+
161+ let az = {
162+ let aA = av
163+ let aB = size(aA)
164+ let aC = ""
165+ func aD (aE,aF) = if ((aF >= aB))
166+ then aE
167+ else aw(aE, aA[aF])
168+
169+ func aG (aE,aF) = if ((aF >= aB))
170+ then aE
166171 else throw("List size exceeds 20")
167172
168- aE(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aA, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20)
173+ aG(aD(aD(aD(aD(aD(aD(aD(aD(aD(aD(aD(aD(aD(aD(aD(aD(aD(aD(aD(aD(aC, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20)
169174 }
170- let aF = dropRight(ax, 1)
171- let aG = if ((take(aF, 1) == ","))
172- then drop(aF, 1)
173- else aF
174- aG
175+ let aH = dropRight(az, 1)
176+ let aI = if ((take(aH, 1) == ","))
177+ then drop(aH, 1)
178+ else aH
179+ aI
175180 }
176181
177182
178-func aH (aI) = split(aI, ",")
183+func aJ (aK) = split(aK, ",")
179184
180185
181-func aJ (at,aK,aL) = if ((size(at) > aK))
182- then (removeByIndex(at, 0) :+ aL)
183- else (at :+ aL)
186+func aL (av,aM,aN) = if ((size(av) > aM))
187+ then (removeByIndex(av, 0) :+ aN)
188+ else (av :+ aN)
184189
185190
186-func aM (aN) = valueOrErrorMessage(getInteger(this, aN), ("no value for " + aN))
191+func aO (aP) = valueOrErrorMessage(getInteger(this, aP), ("no value for " + aP))
187192
188193
189-func aO () = aM(d)
194+func aQ () = aO(d)
190195
191196
192-func aP () = aM(k)
197+func aR () = aO(k)
193198
194199
195-func aQ () = aM(m)
200+func aS () = aO(m)
196201
197202
198-func aR () = aM(B)
203+func aT () = aO(B)
199204
200205
201-func aS () = aM(C)
206+func aU () = aO(C)
202207
203208
204-func aT () = aM(D)
209+func aV () = aO(D)
205210
206211
207-func aU () = aM(G)
212+func aW () = aO(G)
208213
209214
210-func aV () = aM(H)
215+func aX () = aO(H)
211216
212217
213-func aW () = aM(y)
218+func aY () = aO(y)
214219
215220
216-func aX () = aM(l)
221+func aZ () = aO(l)
217222
218223
219-func aY () = (aX() * ac)
224+func ba () = (aZ() * ae)
220225
221226
222-func aZ () = (aX() * ab)
227+func bb () = (aZ() * ad)
223228
224229
225-func ba () = aM(n)
230+func bc () = aO(n)
226231
227232
228-func bb () = aM(o)
233+func bd () = aO(o)
229234
230235
231-func bc () = aM(p)
236+func be () = aO(p)
232237
233238
234-func bd () = aM(q)
239+func bf () = aO(q)
235240
236241
237-func be () = aM(w)
242+func bg () = aO(w)
238243
239244
240-func bf () = aM(x)
245+func bh () = aO(x)
241246
242247
243-func bg () = aM(F)
248+func bi () = aO(F)
244249
245250
246-func bh () = aM(E)
251+func bj () = aO(E)
247252
248253
249-func bi (bj,bk,bl) = {
250- let bm = (bj - bk)
251- if (if (bl)
252- then (0 > bm)
254+func bk (bl,bm,bn) = {
255+ let bo = (bl - bm)
256+ if (if (bn)
257+ then (0 > bo)
253258 else false)
254259 then throw("Invalid margin")
255- else if (if (!(bl))
256- then (bm >= 0)
260+ else if (if (!(bn))
261+ then (bo >= 0)
257262 else false)
258263 then throw("Invalid margin")
259264 else true
260265 }
261266
262267
263-func bn (bo) = if ((bo == 0))
268+func bp (bq) = if ((bq == 0))
264269 then throw("Should not be called with _positionSize == 0")
265- else if ((bo > 0))
266- then be()
267- else bf()
270+ else if ((bq > 0))
271+ then bg()
272+ else bh()
268273
269274
270-func bp (bq) = {
271- let br = getInteger(this, ap(e, bq))
272- let bs = br
273- if ($isInstanceOf(bs, "Int"))
275+func br (bs) = {
276+ let bt = getInteger(this, ar(e, bs))
277+ let bu = bt
278+ if ($isInstanceOf(bu, "Int"))
274279 then {
275- let bt = bs
276- $Tuple4(bt, getIntegerValue(this, ap(f, bq)), getIntegerValue(this, ap(g, bq)), getIntegerValue(this, ap(h, bq)))
280+ let bv = bu
281+ $Tuple4(bv, getIntegerValue(this, ar(f, bs)), getIntegerValue(this, ar(g, bs)), getIntegerValue(this, ar(h, bs)))
277282 }
278283 else $Tuple4(0, 0, 0, 0)
279284 }
280285
281286
282-func bu (bq) = if ((bp(bq)._1 == 0))
287+func bw (bs) = if ((br(bs)._1 == 0))
283288 then throw("No open position")
284289 else true
285290
286291
287-func bv () = valueOrElse(getBoolean(this, i), false)
292+func bx () = valueOrElse(getBoolean(this, i), false)
288293
289294
290-func bw () = valueOrElse(getBoolean(this, j), false)
295+func by () = valueOrElse(getBoolean(this, j), false)
291296
292297
293-func bx (by,bz,bA) = if (by)
298+func bz (bA,bB,bC) = if (bA)
294299 then {
295- let bB = (aS() - bA)
296- if ((0 >= bB))
300+ let bD = (aU() - bC)
301+ if ((0 >= bD))
297302 then throw("Tx lead to base asset reserve <= 0, revert")
298- else $Tuple4((aR() + bz), bB, (aT() + bA), (aU() + bz))
303+ else $Tuple4((aT() + bB), bD, (aV() + bC), (aW() + bB))
299304 }
300305 else {
301- let bC = (aR() - bz)
302- if ((0 >= bC))
306+ let bE = (aT() - bB)
307+ if ((0 >= bE))
303308 then throw("Tx lead to base quote reserve <= 0, revert")
304- else $Tuple4(bC, (aS() + bA), (aT() - bA), (aU() - bz))
309+ else $Tuple4(bE, (aU() + bC), (aV() - bC), (aW() - bB))
305310 }
306311
307312
308-func bD (by,bz) = {
309- let bE = aR()
310- let bF = aS()
311- let bG = ak(bE, bF)
312- let bH = am(bz, bG)
313- let aN = am(bE, bF)
314- let bI = if (by)
315- then (bE + bz)
316- else (bE - bz)
317- let bJ = ak(aN, bI)
318- let bK = an((bJ - bF))
319- let bL = if (by)
320- then bK
321- else -(bK)
322- let bM = ((bH - bK) / bH)
323- let bN = bd()
324- if ((bM > bN))
325- then throw(((("Price impact " + toString(bM)) + " > max price impact ") + toString(bN)))
313+func bF (bA,bB) = {
314+ let bG = aT()
315+ let bH = aU()
316+ let bI = am(bG, bH)
317+ let bJ = ao(bB, bI)
318+ let aP = ao(bG, bH)
319+ let bK = if (bA)
320+ then (bG + bB)
321+ else (bG - bB)
322+ let bL = am(aP, bK)
323+ let bM = ap((bL - bH))
324+ let bN = if (bA)
325+ then bM
326+ else -(bM)
327+ let bO = ((bJ - bM) / bJ)
328+ let bP = bf()
329+ if ((bO > bP))
330+ then throw(((("Price impact " + toString(bO)) + " > max price impact ") + toString(bP)))
326331 else {
327- let bO = bx(by, bz, bK)
328- let bP = bO._1
329- let bQ = bO._2
330- let bR = bO._3
331- let bS = bO._4
332- $Tuple5(bL, bP, bQ, bR, bS)
332+ let bQ = bz(bA, bB, bM)
333+ let bR = bQ._1
334+ let bS = bQ._2
335+ let bT = bQ._3
336+ let bU = bQ._4
337+ $Tuple5(bN, bR, bS, bT, bU)
333338 }
334339 }
335340
336341
337-func bT (bU,bV,bW,bX) = {
338- let bY = if ((bU != 0))
342+func bV (bW,bX,bY,bZ) = {
343+ let ca = if ((bW != 0))
339344 then {
340- let bZ = bn(bU)
341- am((bZ - bW), bU)
345+ let cb = bp(bW)
346+ ao((cb - bY), bW)
342347 }
343348 else 0
344- let ca = ((bX - bY) + bV)
345- let cb = if ((0 > ca))
346- then $Tuple2(0, an(ca))
347- else $Tuple2(an(ca), 0)
348- let cc = cb._1
349- let cd = cb._2
350- $Tuple3(cc, cd, bY)
349+ let cc = ((bZ - ca) + bX)
350+ let cd = if ((0 > cc))
351+ then $Tuple2(0, ap(cc))
352+ else $Tuple2(ap(cc), 0)
353+ let ce = cd._1
354+ let cf = cd._2
355+ $Tuple3(ce, cf, ca)
351356 }
352357
353358
354-func ce (by,bA) = {
355- let cf = aR()
356- let cg = aS()
357- if ((bA == 0))
359+func cg (bA,bC) = {
360+ let ch = aT()
361+ let ci = aU()
362+ if ((bC == 0))
358363 then throw("Invalid base asset amount")
359364 else {
360- let aN = am(cf, cg)
361- let ch = if (by)
362- then (cg + bA)
363- else (cg - bA)
364- let ci = ak(aN, ch)
365- let cj = an((ci - cf))
366- let ck = bx(!(by), cj, bA)
367- let bP = ck._1
368- let bQ = ck._2
369- let bR = ck._3
370- let bS = ck._4
371- $Tuple7(cj, bP, bQ, bR, bS, (bh() - (if (by)
372- then an(bA)
373- else 0)), (bg() - (if (!(by))
374- then an(bA)
365+ let aP = ao(ch, ci)
366+ let cj = if (bA)
367+ then (ci + bC)
368+ else (ci - bC)
369+ let ck = am(aP, cj)
370+ let cl = ap((ck - ch))
371+ let cm = bz(!(bA), cl, bC)
372+ let bR = cm._1
373+ let bS = cm._2
374+ let bT = cm._3
375+ let bU = cm._4
376+ $Tuple7(cl, bR, bS, bT, bU, (bj() - (if (bA)
377+ then ap(bC)
378+ else 0)), (bi() - (if (!(bA))
379+ then ap(bC)
375380 else 0)))
376381 }
377382 }
378383
379384
380-func cl () = {
381- let cm = valueOrErrorMessage(addressFromString(getStringValue(this, c)), "")
382- let cn = getStringValue(this, a)
383- let co = getStringValue(this, b)
384- let cp = getIntegerValue(cm, cn)
385- cp
385+func cn () = {
386+ let co = valueOrErrorMessage(addressFromString(getStringValue(this, c)), "")
387+ let cp = getStringValue(this, a)
388+ let cq = getStringValue(this, b)
389+ let cr = getIntegerValue(co, cp)
390+ cr
386391 }
387392
388393
389-func cq () = {
390- let cf = aR()
391- let cg = aS()
392- ak(cf, cg)
394+func cs () = {
395+ let ch = aT()
396+ let ci = aU()
397+ am(ch, ci)
393398 }
394399
395400
396-func cr () = {
397- let cs = cl()
398- let ct = cq()
399- (ak(an((cs - ct)), cs) > bc())
401+func ct () = {
402+ let cu = cn()
403+ let cv = cs()
404+ (am(ap((cu - cv)), cu) > be())
400405 }
401406
402407
403-func cu (bq,cv) = {
404- let cw = bp(bq)
405- let bt = cw._1
406- let cx = cw._2
407- let cy = cw._3
408- let cz = cw._4
409- let cA = an(bt)
410- if ((cA == 0))
408+func cw (bs,cx) = {
409+ let cy = br(bs)
410+ let bv = cy._1
411+ let cz = cy._2
412+ let cA = cy._3
413+ let cB = cy._4
414+ let cC = ap(bv)
415+ if ((cC == 0))
411416 then throw("Invalid position size")
412417 else {
413- let cB = (0 > bt)
414- let cC = if ((cv == ag))
418+ let cD = (0 > bv)
419+ let cE = if ((cx == ai))
415420 then {
416- let cD = ce(!(cB), cA)
417- let cE = cD._1
418- let cF = cD._2
419- let cG = cD._3
420- let cH = cD._4
421- cE
421+ let cF = cg(!(cD), cC)
422+ let cG = cF._1
423+ let cH = cF._2
424+ let cI = cF._3
425+ let cJ = cF._4
426+ cG
422427 }
423- else am(cA, cl())
424- let cI = if (cB)
425- then (cy - cC)
426- else (cC - cy)
427- $Tuple2(cC, cI)
428+ else ao(cC, cn())
429+ let cK = if (cD)
430+ then (cA - cE)
431+ else (cE - cA)
432+ $Tuple2(cE, cK)
428433 }
429434 }
430435
431436
432-func cJ (cK,cL,cM) = ak((cK - cL), cM)
437+func cL (cM,cN,cO) = am((cM - cN), cO)
433438
434439
435-func cN (bq,cv) = {
436- let cO = bp(bq)
437- let bt = cO._1
438- let cx = cO._2
439- let cP = cO._3
440- let cz = cO._4
441- let cQ = cu(bq, cv)
442- let cC = cQ._1
443- let cI = cQ._2
444- let cR = bT(bt, cx, cz, cI)
445- let cc = cR._1
446- let cd = cR._2
447- cJ(cc, cd, cC)
440+func cP (bs,cx) = {
441+ let cQ = br(bs)
442+ let bv = cQ._1
443+ let cz = cQ._2
444+ let cR = cQ._3
445+ let cB = cQ._4
446+ let cS = cw(bs, cx)
447+ let cE = cS._1
448+ let cK = cS._2
449+ let cT = bV(bv, cz, cB, cK)
450+ let ce = cT._1
451+ let cf = cT._2
452+ cL(ce, cf, cE)
448453 }
449454
450455
451-func cS (bq) = cN(bq, ag)
456+func cU (bs) = cP(bs, ai)
452457
453458
454-func cT (bq) = {
455- let cU = bp(bq)
456- let bt = cU._1
457- let cx = cU._2
458- let cy = cU._3
459- let cz = cU._4
460- let cV = cu(bq, ag)
461- let cF = cV._1
462- let cI = cV._2
463- let cW = bT(bt, cx, cz, cI)
464- let cc = cW._1
465- let cd = cW._2
466- let cX = -(bt)
467- let cY = cI
468- let cZ = -(cc)
469- let da = ce((bt > 0), an(bt))
470- let db = da._1
471- let bI = da._2
472- let bJ = da._3
473- let dc = da._4
474- let dd = da._5
475- let de = da._6
476- let df = da._7
477- let dg = (aV() - cy)
478- $Tuple12(cX, cd, cY, cZ, bI, bJ, dc, dd, dg, db, de, df)
459+func cV (bs) = {
460+ let cW = br(bs)
461+ let bv = cW._1
462+ let cz = cW._2
463+ let cA = cW._3
464+ let cB = cW._4
465+ let cX = cw(bs, ai)
466+ let cH = cX._1
467+ let cK = cX._2
468+ let cY = bV(bv, cz, cB, cK)
469+ let ce = cY._1
470+ let cf = cY._2
471+ let cZ = -(bv)
472+ let da = cK
473+ let db = -(ce)
474+ let dc = cg((bv > 0), ap(bv))
475+ let dd = dc._1
476+ let bK = dc._2
477+ let bL = dc._3
478+ let de = dc._4
479+ let df = dc._5
480+ let dg = dc._6
481+ let dh = dc._7
482+ let di = (aX() - cA)
483+ $Tuple12(cZ, cf, da, db, bK, bL, de, df, di, dd, dg, dh)
479484 }
480485
481486
482-func dh () = {
483- let di = ((lastBlock.timestamp / 1000) / 60)
484- let dj = (di - Z)
485- let dk = valueOrElse(getString(this, r), "")
486- let dl = split(dk, ",")
487- func dm (av,dn) = if ((dj >= parseIntValue(dn)))
488- then (av :+ parseIntValue(dn))
489- else av
487+func dj () = {
488+ let dk = ((lastBlock.timestamp / 1000) / 60)
489+ let dl = (dk - ab)
490+ let dm = valueOrElse(getString(this, r), "")
491+ let dn = split(dm, ",")
492+ func do (ax,dp) = if ((dl >= parseIntValue(dp)))
493+ then (ax :+ parseIntValue(dp))
494+ else ax
490495
491- let do = {
492- let ay = dl
493- let az = size(ay)
494- let aA = nil
495- func aB (aC,aD) = if ((aD >= az))
496- then aC
497- else dm(aC, ay[aD])
496+ let dq = {
497+ let aA = dn
498+ let aB = size(aA)
499+ let aC = nil
500+ func aD (aE,aF) = if ((aF >= aB))
501+ then aE
502+ else do(aE, aA[aF])
498503
499- func aE (aC,aD) = if ((aD >= az))
500- then aC
504+ func aG (aE,aF) = if ((aF >= aB))
505+ then aE
501506 else throw("List size exceeds 20")
502507
503- aE(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aA, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20)
508+ aG(aD(aD(aD(aD(aD(aD(aD(aD(aD(aD(aD(aD(aD(aD(aD(aD(aD(aD(aD(aD(aC, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20)
504509 }
505- let dp = if ((size(do) > 0))
506- then max(do)
507- else parseIntValue(dl[0])
508- let dq = valueOrElse(getInteger(this, s), 0)
509- let dr = valueOrElse(getInteger(this, ((t + "_") + toString(dq))), 0)
510- let ds = valueOrElse(getInteger(this, ((u + "_") + toString(dq))), 0)
511- let dt = (dr + ((di - dq) * ds))
512- let du = valueOrElse(getInteger(this, ((t + "_") + toString(dp))), 0)
513- let dv = valueOrElse(getInteger(this, ((u + "_") + toString(dp))), 0)
514- let dw = (du + ((dj - dp) * dv))
515- ((dt - dw) / Z)
510+ let dr = if ((size(dq) > 0))
511+ then max(dq)
512+ else parseIntValue(dn[0])
513+ let ds = valueOrElse(getInteger(this, s), 0)
514+ let dt = valueOrElse(getInteger(this, ((t + "_") + toString(ds))), 0)
515+ let du = valueOrElse(getInteger(this, ((u + "_") + toString(ds))), 0)
516+ let dv = (dt + ((dk - ds) * du))
517+ let dw = valueOrElse(getInteger(this, ((t + "_") + toString(dr))), 0)
518+ let dx = valueOrElse(getInteger(this, ((u + "_") + toString(dr))), 0)
519+ let dy = (dw + ((dl - dr) * dx))
520+ ((dv - dy) / ab)
516521 }
517522
518523
519-func dx (dy,dz,dA,dB,dC,dD,dE) = [IntegerEntry(m, dy), IntegerEntry(n, dz), IntegerEntry(o, dA), IntegerEntry(l, dB), IntegerEntry(k, dC), IntegerEntry(p, dD), IntegerEntry(q, dE)]
524+func dz (dA,dB,dC,dD,dE,dF,dG) = [IntegerEntry(m, dA), IntegerEntry(n, dB), IntegerEntry(o, dC), IntegerEntry(l, dD), IntegerEntry(k, dE), IntegerEntry(p, dF), IntegerEntry(q, dG)]
520525
521526
522-func dF (dG,dH,dI,dJ,dK) = [IntegerEntry(y, dG), IntegerEntry(w, dH), IntegerEntry(x, dI), IntegerEntry(z, dJ), IntegerEntry(A, dK)]
527+func dH (dI,dJ,dK,dL,dM) = [IntegerEntry(y, dI), IntegerEntry(w, dJ), IntegerEntry(x, dK), IntegerEntry(z, dL), IntegerEntry(A, dM)]
523528
524529
525-func dL (ar,dM,dN,dO,bZ) = [IntegerEntry(ap(e, ar), dM), IntegerEntry(ap(f, ar), dN), IntegerEntry(ap(g, ar), dO), IntegerEntry(ap(h, ar), bZ)]
530+func dN (at,dO,dP,dQ,cb) = [IntegerEntry(ar(e, at), dO), IntegerEntry(ar(f, at), dP), IntegerEntry(ar(g, at), dQ), IntegerEntry(ar(h, at), cb)]
526531
527532
528-func dP (dQ) = {
529- let di = ((lastBlock.timestamp / 1000) / 60)
530- let dR = valueOrElse(getInteger(this, s), 0)
531- if ((dR > di))
533+func dR (dS) = {
534+ let dk = ((lastBlock.timestamp / 1000) / 60)
535+ let dT = valueOrElse(getInteger(this, s), 0)
536+ if ((dT > dk))
532537 then throw("TWAP out-of-order")
533538 else {
534- let dq = if ((dR == 0))
535- then di
536- else dR
537- if ((di > dR))
539+ let ds = if ((dT == 0))
540+ then dk
541+ else dT
542+ if ((dk > dT))
538543 then {
539- let dS = valueOrElse(getInteger(this, ((t + "_") + toString(dR))), 0)
540- let dT = valueOrElse(getInteger(this, ((u + "_") + toString(dR))), dQ)
541- let dU = (dS + ((di - dq) * dT))
542- let dl = aJ(aH(valueOrElse(getString(this, r), "")), Z, toString(di))
543-[IntegerEntry(ap(t, toString(di)), dU), IntegerEntry(ap(u, toString(di)), dQ), IntegerEntry(ap(v, toString(di)), dR), IntegerEntry(s, di), StringEntry(r, as(dl))]
544+ let dU = valueOrElse(getInteger(this, ((t + "_") + toString(dT))), 0)
545+ let dV = valueOrElse(getInteger(this, ((u + "_") + toString(dT))), dS)
546+ let dW = (dU + ((dk - ds) * dV))
547+ let dn = aL(aJ(valueOrElse(getString(this, r), "")), ab, toString(dk))
548+[IntegerEntry(ar(t, toString(dk)), dW), IntegerEntry(ar(u, toString(dk)), dS), IntegerEntry(ar(v, toString(dk)), dT), IntegerEntry(s, dk), StringEntry(r, au(dn))]
544549 }
545550 else {
546- let dV = valueOrElse(getInteger(this, ap(v, toString(di))), 0)
547- let dS = valueOrElse(getInteger(this, ap(t, toString(dV))), 0)
548- let dT = valueOrElse(getInteger(this, ap(u, toString(dV))), dQ)
549- let dU = (dS + ((di - dV) * dT))
550-[IntegerEntry(ap(t, toString(di)), dU), IntegerEntry(ap(u, toString(di)), dQ)]
551+ let dX = valueOrElse(getInteger(this, ar(v, toString(dk))), 0)
552+ let dU = valueOrElse(getInteger(this, ar(t, toString(dX))), 0)
553+ let dV = valueOrElse(getInteger(this, ar(u, toString(dX))), dS)
554+ let dW = (dU + ((dk - dX) * dV))
555+[IntegerEntry(ar(t, toString(dk)), dW), IntegerEntry(ar(u, toString(dk)), dS)]
551556 }
552557 }
553558 }
554559
555560
556-func dW (bE,bF,dX,dY,dZ,ea,eb) = if (((ea - eb) != dX))
557- then throw(((((("Invalid AMM state data: " + toString(ea)) + " + ") + toString(eb)) + " != ") + toString(dX)))
558- else ([IntegerEntry(B, bE), IntegerEntry(C, bF), IntegerEntry(D, dX), IntegerEntry(G, dY), IntegerEntry(H, dZ), IntegerEntry(E, ea), IntegerEntry(F, eb)] ++ dP(ak(bE, bF)))
561+func dY (bG,bH,dZ,ea,eb,ec,ed) = if (((ec - ed) != dZ))
562+ then throw(((((("Invalid AMM state data: " + toString(ec)) + " + ") + toString(ed)) + " != ") + toString(dZ)))
563+ else ([IntegerEntry(B, bG), IntegerEntry(C, bH), IntegerEntry(D, dZ), IntegerEntry(G, ea), IntegerEntry(H, eb), IntegerEntry(E, ec), IntegerEntry(F, ed)] ++ dR(am(bG, bH)))
559564
560565
561-func ec (ar) = [DeleteEntry(ap(e, ar)), DeleteEntry(ap(f, ar)), DeleteEntry(ap(g, ar)), DeleteEntry(ap(h, ar))]
566+func ee (at) = [DeleteEntry(ar(e, at)), DeleteEntry(ar(f, at)), DeleteEntry(ar(g, at)), DeleteEntry(ar(h, at))]
562567
563568
564-func ed (ar,ee) = {
565- let ef = assetBalance(this, S())
566- if ((ee > ef))
567- then throw(((("Unable to withdraw " + toString(ee)) + " from contract balance ") + toString(ef)))
568- else [ScriptTransfer(ar, ee, S())]
569+func ef (at,eg) = {
570+ let eh = assetBalance(this, T())
571+ if ((eg > eh))
572+ then throw(((("Unable to withdraw " + toString(eg)) + " from contract balance ") + toString(eh)))
573+ else [ScriptTransfer(at, eg, T())]
569574 }
570575
571576
572-func eg (eh) = if ((0 > eh))
577+func ei (ej) = if ((0 > ej))
573578 then throw("Balance")
574- else [IntegerEntry(d, eh)]
579+ else [IntegerEntry(d, ej)]
575580
576581
577-func ei (eh) = [ScriptTransfer(U(), eh, S())]
582+func ek (ej) = [ScriptTransfer(V(), ej, T())]
578583
579584
580-@Callable(eh)
581-func pause () = if ((eh.caller != Q()))
585+@Callable(ej)
586+func pause () = if ((ej.caller != R()))
582587 then throw("Invalid togglePause params")
583588 else [BooleanEntry(j, true)]
584589
585590
586591
587-@Callable(eh)
588-func unpause () = if ((eh.caller != Q()))
592+@Callable(ej)
593+func unpause () = if ((ej.caller != R()))
589594 then throw("Invalid togglePause params")
590595 else [BooleanEntry(j, false)]
591596
592597
593598
594-@Callable(eh)
595-func changeSettings (dy,dz,dA,dB,dC,dD,dE) = if ((eh.caller != Q()))
599+@Callable(ej)
600+func changeSettings (dA,dB,dC,dD,dE,dF,dG) = if ((ej.caller != R()))
596601 then throw("Invalid changeSettings params")
597- else dx(dy, dz, dA, dB, dC, dD, dE)
602+ else dz(dA, dB, dC, dD, dE, dF, dG)
598603
599604
600605
601-@Callable(eh)
602-func initialize (bE,bF,dB,dy,dz,dA,dC,ej,ek,el,dD,dE) = if (if (if (if (if (if (if (if (if (if ((0 >= bE))
606+@Callable(ej)
607+func initialize (bG,bH,dD,dA,dB,dC,dE,el,em,en,dF,dG) = if (if (if (if (if (if (if (if (if (if ((0 >= bG))
603608 then true
604- else (0 >= bF))
609+ else (0 >= bH))
610+ then true
611+ else (0 >= dD))
612+ then true
613+ else (0 >= dA))
605614 then true
606615 else (0 >= dB))
607616 then true
608- else (0 >= dy))
609- then true
610- else (0 >= dz))
611- then true
612- else (0 >= dA))
613- then true
614617 else (0 >= dC))
615- then true
616- else (0 >= dD))
617618 then true
618619 else (0 >= dE))
619620 then true
620- else bv())
621+ else (0 >= dF))
622+ then true
623+ else (0 >= dG))
624+ then true
625+ else bx())
621626 then throw("Invalid initialize parameters")
622- else ((((dW(bE, bF, 0, 0, 0, 0, 0) ++ dx(dy, dz, dA, dB, dC, dD, dE)) ++ dF((lastBlock.timestamp + dB), 0, 0, 0, 0)) ++ eg(0)) ++ [BooleanEntry(i, true), StringEntry(c, ej), StringEntry(a, ek), StringEntry(I, el)])
627+ else ((((dY(bG, bH, 0, 0, 0, 0, 0) ++ dz(dA, dB, dC, dD, dE, dF, dG)) ++ dH((lastBlock.timestamp + dD), 0, 0, 0, 0)) ++ ei(0)) ++ [BooleanEntry(i, true), StringEntry(c, el), StringEntry(a, em), StringEntry(I, en)])
623628
624629
625630
626-@Callable(eh)
627-func decreasePosition (ee,em,en) = if (if (if (if (if (if ((0 >= ee))
631+@Callable(ej)
632+func decreasePosition (eg,eo,ep) = if (if (if (if (if (if ((0 >= eg))
628633 then true
629- else if (((1 * ac) > em))
634+ else if (((1 * ae) > eo))
630635 then true
631- else (em > (3 * ac)))
636+ else (eo > (3 * ae)))
632637 then true
633- else !(bv()))
638+ else !(bx()))
634639 then true
635- else !(bi(ak(ac, em), aQ(), true)))
640+ else !(bk(am(ae, eo), aS(), true)))
636641 then true
637- else !(bu(toString(eh.caller))))
642+ else !(bw(toString(ej.caller))))
638643 then true
639- else bw())
644+ else by())
640645 then throw("Invalid decreasePosition parameters")
641646 else {
642- let eo = bp(toString(eh.caller))
643- let ep = eo._1
644- let eq = eo._2
645- let er = eo._3
646- let es = eo._4
647- let et = if ((ep > 0))
648- then X
649- else W
650- let eu = (et == W)
651- let ev = am(ee, em)
652- let ew = cu(toString(eh.caller), ag)
653- let ex = ew._1
654- let cI = ew._2
655- let ey = if ((ex > ev))
647+ let eq = br(toString(ej.caller))
648+ let er = eq._1
649+ let es = eq._2
650+ let et = eq._3
651+ let eu = eq._4
652+ let ev = if ((er > 0))
653+ then Z
654+ else Y
655+ let ew = (ev == Y)
656+ let ex = ao(eg, eo)
657+ let ey = cw(toString(ej.caller), ai)
658+ let ez = ey._1
659+ let cK = ey._2
660+ let eA = if ((ez > ex))
656661 then {
657- let ez = bD(eu, ev)
658- let cX = ez._1
659- let bI = ez._2
660- let bJ = ez._3
661- let dc = ez._4
662- let dd = ez._5
663- let eA = an(cX)
664- if (if ((en != 0))
665- then (en > eA)
662+ let eB = bF(ew, ex)
663+ let cZ = eB._1
664+ let bK = eB._2
665+ let bL = eB._3
666+ let de = eB._4
667+ let df = eB._5
668+ let eC = ap(cZ)
669+ if (if ((ep != 0))
670+ then (ep > eC)
666671 else false)
667- then throw(((("Too little base asset exchanged, got " + toString(eA)) + " expected ") + toString(en)))
672+ then throw(((("Too little base asset exchanged, got " + toString(eC)) + " expected ") + toString(ep)))
668673 else {
669- let cY = ak(am(cI, eA), an(ep))
670- let eB = bT(ep, eq, es, cY)
671- let cc = eB._1
672- let cd = eB._2
673- let bY = eB._3
674- let db = ev
675- let eC = (cI - cY)
676- let eD = if ((ep > 0))
677- then ((ex - db) - eC)
678- else ((eC + ex) - db)
679- let eE = (ep + cX)
680- $Tuple11(eE, cc, an(eD), bn(eE), bJ, bI, dc, dd, (aV() - ev), (bh() - (if ((eE > 0))
681- then an(cX)
682- else 0)), (bg() - (if ((0 > eE))
683- then an(cX)
674+ let da = am(ao(cK, eC), ap(er))
675+ let eD = bV(er, es, eu, da)
676+ let ce = eD._1
677+ let cf = eD._2
678+ let ca = eD._3
679+ let dd = ex
680+ let eE = (cK - da)
681+ let eF = if ((er > 0))
682+ then ((ez - dd) - eE)
683+ else ((eE + ez) - dd)
684+ let eG = (er + cZ)
685+ $Tuple11(eG, ce, ap(eF), bp(eG), bL, bK, de, df, (aX() - ex), (bj() - (if ((eG > 0))
686+ then ap(cZ)
687+ else 0)), (bi() - (if ((0 > eG))
688+ then ap(cZ)
684689 else 0)))
685690 }
686691 }
687692 else throw("Close position first")
688- let eE = ey._1
689- let eF = ey._2
690- let eG = ey._3
691- let eH = ey._4
692- let bJ = ey._5
693- let bI = ey._6
694- let dc = ey._7
695- let dd = ey._8
696- let dg = ey._9
697- let de = ey._10
698- let df = ey._11
699- (dL(toString(eh.caller), eE, eF, eG, eH) ++ dW(bI, bJ, dc, dd, dg, de, df))
693+ let eG = eA._1
694+ let eH = eA._2
695+ let eI = eA._3
696+ let eJ = eA._4
697+ let bL = eA._5
698+ let bK = eA._6
699+ let de = eA._7
700+ let df = eA._8
701+ let di = eA._9
702+ let dg = eA._10
703+ let dh = eA._11
704+ let eK = invoke(X(), "notifyNotional", [toString(ej.caller), eI], nil)
705+ if ((eK == eK))
706+ then (dN(toString(ej.caller), eG, eH, eI, eJ) ++ dY(bK, bL, de, df, di, dg, dh))
707+ else throw("Strict value is not equal to itself.")
700708 }
701709
702710
703711
704-@Callable(eh)
705-func increasePosition (et,em,en) = {
706- let eI = eh.payments[0].amount
707- if (if (if (if (if (if (if (if ((et != W))
708- then (et != X)
712+@Callable(ej)
713+func increasePosition (ev,eo,ep) = {
714+ let eL = ej.payments[0].amount
715+ if (if (if (if (if (if (if (if ((ev != Y))
716+ then (ev != Z)
709717 else false)
710718 then true
711- else (0 >= eI))
719+ else (0 >= eL))
712720 then true
713- else if (((1 * ac) > em))
721+ else if (((1 * ae) > eo))
714722 then true
715- else (em > (3 * ac)))
723+ else (eo > (3 * ae)))
716724 then true
717- else !(bv()))
725+ else !(bx()))
718726 then true
719- else (eh.payments[0].assetId != S()))
727+ else (ej.payments[0].assetId != T()))
720728 then true
721- else !(bi(ak(ac, em), aQ(), true)))
729+ else !(bk(am(ae, eo), aS(), true)))
722730 then true
723- else bw())
731+ else by())
724732 then throw("Invalid increasePosition parameters")
725733 else {
726- let eJ = am(eI, aP())
727- let ee = (eI - eJ)
728- let eK = bp(toString(eh.caller))
729- let ep = eK._1
730- let eq = eK._2
731- let er = eK._3
732- let es = eK._4
733- let eL = (ep == 0)
734- let eM = if ((ep > 0))
735- then (et == W)
736- else (et == X)
737- let eN = if (!(eL))
738- then eM
734+ let eM = ao(eL, aR())
735+ let eg = (eL - eM)
736+ let eN = br(toString(ej.caller))
737+ let er = eN._1
738+ let es = eN._2
739+ let et = eN._3
740+ let eu = eN._4
741+ let eO = (er == 0)
742+ let eP = if ((er > 0))
743+ then (ev == Y)
744+ else (ev == Z)
745+ let eQ = if (!(eO))
746+ then eP
739747 else false
740- let eu = (et == W)
741- let eO = if (if (eL)
748+ let ew = (ev == Y)
749+ let eR = if (if (eO)
742750 then true
743- else eN)
751+ else eQ)
744752 then {
745- let ev = am(ee, em)
746- let eP = bD(eu, ev)
747- let bL = eP._1
748- let bI = eP._2
749- let bJ = eP._3
750- let dc = eP._4
751- let dd = eP._5
752- if (if ((en != 0))
753- then (en > an(bL))
753+ let ex = ao(eg, eo)
754+ let eS = bF(ew, ex)
755+ let bN = eS._1
756+ let bK = eS._2
757+ let bL = eS._3
758+ let de = eS._4
759+ let df = eS._5
760+ if (if ((ep != 0))
761+ then (ep > ap(bN))
754762 else false)
755- then throw(((("Limit error: " + toString(an(bL))) + " < ") + toString(en)))
763+ then throw(((("Limit error: " + toString(ap(bN))) + " < ") + toString(ep)))
756764 else {
757- let eE = (ep + bL)
758- let eQ = ak(ev, em)
759- let eR = bT(ep, eq, es, eQ)
760- let cc = eR._1
761- let cF = eR._2
762- let cG = eR._3
763- $Tuple11(eE, cc, (er + ev), bn(eE), bJ, bI, dc, dd, (aV() + ev), (bh() + (if ((eE > 0))
764- then an(bL)
765- else 0)), (bg() + (if ((0 > eE))
766- then an(bL)
765+ let eG = (er + bN)
766+ let eT = am(ex, eo)
767+ let eU = bV(er, es, eu, eT)
768+ let ce = eU._1
769+ let cH = eU._2
770+ let cI = eU._3
771+ $Tuple11(eG, ce, (et + ex), bp(eG), bL, bK, de, df, (aX() + ex), (bj() + (if ((eG > 0))
772+ then ap(bN)
773+ else 0)), (bi() + (if ((0 > eG))
774+ then ap(bN)
767775 else 0)))
768776 }
769777 }
770778 else {
771- let ev = am(ee, em)
772- let eS = cu(toString(eh.caller), ag)
773- let ex = eS._1
774- let cI = eS._2
775- if ((ex > ev))
779+ let ex = ao(eg, eo)
780+ let eV = cw(toString(ej.caller), ai)
781+ let ez = eV._1
782+ let cK = eV._2
783+ if ((ez > ex))
776784 then throw("Use decreasePosition to decrease position size")
777785 else throw("Close position first")
778786 }
779- let eE = eO._1
780- let eF = eO._2
781- let eG = eO._3
782- let eH = eO._4
783- let bJ = eO._5
784- let bI = eO._6
785- let dc = eO._7
786- let dd = eO._8
787- let dg = eO._9
788- let de = eO._10
789- let df = eO._11
790- let eT = (eJ / 2)
791- let eU = (eJ - eT)
792- let eV = invoke(T(), "lockNeutrinoSP", [toString(U()), af], [AttachedPayment(S(), ee)])
793- if ((eV == eV))
787+ let eG = eR._1
788+ let eH = eR._2
789+ let eI = eR._3
790+ let eJ = eR._4
791+ let bL = eR._5
792+ let bK = eR._6
793+ let de = eR._7
794+ let df = eR._8
795+ let di = eR._9
796+ let dg = eR._10
797+ let dh = eR._11
798+ let eW = (eM / 2)
799+ let eX = (eM - eW)
800+ let eY = invoke(U(), "lockNeutrinoSP", [toString(V()), ah], [AttachedPayment(T(), eg)])
801+ if ((eY == eY))
794802 then {
795- let eW = invoke(V(), "deposit", nil, [AttachedPayment(S(), eU)])
796- if ((eW == eW))
797- then (((dL(toString(eh.caller), eE, eF, eG, eH) ++ dW(bI, bJ, dc, dd, dg, de, df)) ++ ei(eT)) ++ eg((aO() + ee)))
798- else throw("Strict value is not equal to itself.")
799- }
800- else throw("Strict value is not equal to itself.")
801- }
802- }
803-
804-
805-
806-@Callable(eh)
807-func addMargin () = {
808- let eI = eh.payments[0].amount
809- if (if (if (if ((eh.payments[0].assetId != S()))
810- then true
811- else !(bu(toString(eh.caller))))
812- then true
813- else !(bv()))
814- then true
815- else bw())
816- then throw("Invalid addMargin parameters")
817- else {
818- let eJ = am(eI, aP())
819- let ee = (eI - eJ)
820- let eX = bp(toString(eh.caller))
821- let ep = eX._1
822- let eq = eX._2
823- let er = eX._3
824- let es = eX._4
825- let eT = (eJ / 2)
826- let eU = (eJ - eT)
827- let eV = invoke(T(), "lockNeutrinoSP", [toString(U()), af], [AttachedPayment(S(), ee)])
828- if ((eV == eV))
829- then {
830- let eW = invoke(V(), "deposit", nil, [AttachedPayment(S(), eU)])
831- if ((eW == eW))
832- then ((dL(toString(eh.caller), ep, (eq + ee), er, es) ++ ei(eT)) ++ eg((aO() + ee)))
833- else throw("Strict value is not equal to itself.")
834- }
835- else throw("Strict value is not equal to itself.")
836- }
837- }
838-
839-
840-
841-@Callable(eh)
842-func removeMargin (ee) = if (if (if (if ((0 >= ee))
843- then true
844- else !(bu(toString(eh.caller))))
845- then true
846- else !(bv()))
847- then true
848- else bw())
849- then throw("Invalid removeMargin parameters")
850- else {
851- let eY = bp(toString(eh.caller))
852- let ep = eY._1
853- let eq = eY._2
854- let er = eY._3
855- let es = eY._4
856- let eZ = -(ee)
857- let fa = bT(ep, eq, es, eZ)
858- let cc = fa._1
859- let cd = fa._2
860- if ((cd != 0))
861- then throw("Invalid removed margin amount")
862- else {
863- let fb = cJ(cc, cd, er)
864- if (!(bi(fb, aQ(), true)))
865- then throw(((("Too much margin removed: " + toString(fb)) + " < ") + toString(aQ())))
866- else {
867- let fc = invoke(T(), "unlockNeutrino", [ee, toBase58String(S())], nil)
868- if ((fc == fc))
869- then ((dL(toString(eh.caller), ep, cc, er, bn(ep)) ++ ed(eh.caller, ee)) ++ eg((aO() - ee)))
870- else throw("Strict value is not equal to itself.")
871- }
872- }
873- }
874-
875-
876-
877-@Callable(eh)
878-func closePosition () = if (if (if (!(bu(toString(eh.caller))))
879- then true
880- else !(bv()))
881- then true
882- else bw())
883- then throw("Invalid closePosition parameters")
884- else {
885- let fd = cT(toString(eh.caller))
886- let cF = fd._1
887- let fe = fd._2
888- let cY = fd._3
889- let cZ = fd._4
890- let bI = fd._5
891- let bJ = fd._6
892- let dc = fd._7
893- let dd = fd._8
894- let dg = fd._9
895- let cG = fd._10
896- let de = fd._11
897- let df = fd._12
898- if ((fe > 0))
899- then throw("Unable to close position with bad debt")
900- else {
901- let ff = an(cZ)
902- let fg = (aO() - ff)
903- let fh = if ((0 > fg))
904- then $Tuple2(0, an(fg))
905- else $Tuple2(fg, 0)
906- let fi = fh._1
907- let fj = fh._2
908- let fk = if ((fj > 0))
909- then {
910- let fl = invoke(V(), "withdraw", [fj], nil)
911- if ((fl == fl))
912- then nil
913- else throw("Strict value is not equal to itself.")
914- }
915- else nil
916- if ((fk == fk))
917- then {
918- let fc = invoke(T(), "unlockNeutrino", [(ff - fj), toBase58String(S())], nil)
919- if ((fc == fc))
920- then (((ec(toString(eh.caller)) ++ dW(bI, bJ, dc, dd, dg, de, df)) ++ ed(eh.caller, ff)) ++ eg(fi))
921- else throw("Strict value is not equal to itself.")
922- }
923- else throw("Strict value is not equal to itself.")
924- }
925- }
926-
927-
928-
929-@Callable(eh)
930-func liquidate (bq) = {
931- let fm = cN(bq, ag)
932- let fb = if (cr())
933- then {
934- let fn = cN(bq, ah)
935- ao(fm, fn)
936- }
937- else fm
938- if (if (if (if (!(bi(fb, ba(), false)))
939- then true
940- else !(bu(bq)))
941- then true
942- else !(bv()))
943- then true
944- else bw())
945- then throw("Unable to liquidate")
946- else {
947- let fo = cT(bq)
948- let cF = fo._1
949- let cd = fo._2
950- let cG = fo._3
951- let cH = fo._4
952- let bI = fo._5
953- let bJ = fo._6
954- let dc = fo._7
955- let dd = fo._8
956- let dg = fo._9
957- let db = fo._10
958- let de = fo._11
959- let df = fo._12
960- let fp = am(db, bb())
961- let fq = (fp / 2)
962- let eU = (fp - fq)
963- let fg = (aO() - fp)
964- let fr = if ((0 > fg))
965- then $Tuple2(0, an(fg))
966- else $Tuple2(fg, 0)
967- let fs = fr._1
968- let ft = fr._2
969- let fk = if ((ft > 0))
970- then {
971- let fl = invoke(V(), "withdraw", [ft], nil)
972- if ((fl == fl))
973- then nil
974- else throw("Strict value is not equal to itself.")
975- }
976- else nil
977- if ((fk == fk))
978- then {
979- let fc = invoke(T(), "unlockNeutrino", [(fp - ft), toBase58String(S())], nil)
980- if ((fc == fc))
803+ let eZ = invoke(W(), "deposit", nil, [AttachedPayment(T(), eX)])
804+ if ((eZ == eZ))
981805 then {
982- let eW = invoke(V(), "deposit", nil, [AttachedPayment(S(), eU)])
983- if ((eW == eW))
984- then (((ec(bq) ++ dW(bI, bJ, dc, dd, dg, de, df)) ++ ed(eh.caller, fq)) ++ eg(fs))
806+ let fa = invoke(X(), "notifyFees", [toString(ej.caller), eM], nil)
807+ if ((fa == fa))
808+ then {
809+ let eK = invoke(X(), "notifyNotional", [toString(ej.caller), eI], nil)
810+ if ((eK == eK))
811+ then (((dN(toString(ej.caller), eG, eH, eI, eJ) ++ dY(bK, bL, de, df, di, dg, dh)) ++ ek(eW)) ++ ei((aQ() + eg)))
812+ else throw("Strict value is not equal to itself.")
813+ }
985814 else throw("Strict value is not equal to itself.")
986815 }
987816 else throw("Strict value is not equal to itself.")
992821
993822
994823
995-@Callable(eh)
996-func payFunding () = {
997- let fu = aW()
998- if (if (if ((fu > lastBlock.timestamp))
824+@Callable(ej)
825+func addMargin () = {
826+ let eL = ej.payments[0].amount
827+ if (if (if (if ((ej.payments[0].assetId != T()))
999828 then true
1000- else !(bv()))
829+ else !(bw(toString(ej.caller))))
1001830 then true
1002- else bw())
1003- then throw(((("Invalid funding block timestamp: " + toString(lastBlock.timestamp)) + " < ") + toString(fu)))
831+ else !(bx()))
832+ then true
833+ else by())
834+ then throw("Invalid addMargin parameters")
1004835 else {
1005- let fv = cl()
1006- let fw = dh()
1007- let fx = (fw - fv)
1008- let fy = if (if ((bg() == 0))
1009- then true
1010- else (bh() == 0))
1011- then $Tuple2(0, 0)
1012- else if ((0 > fx))
1013- then {
1014- let fz = ak(am(fx, aY()), ae)
1015- let fA = ak(am(fz, bg()), bh())
1016- $Tuple2(fz, fA)
1017- }
1018- else {
1019- let fA = ak(am(fx, aY()), ae)
1020- let fz = ak(am(fA, bh()), bg())
1021- $Tuple2(fz, fA)
1022- }
1023- let fz = fy._1
1024- let fA = fy._2
1025- dF((fu + aZ()), (be() + fA), (bf() + fz), ak(fA, fv), ak(fz, fv))
836+ let eM = ao(eL, aR())
837+ let eg = (eL - eM)
838+ let fb = br(toString(ej.caller))
839+ let er = fb._1
840+ let es = fb._2
841+ let et = fb._3
842+ let eu = fb._4
843+ let eW = (eM / 2)
844+ let eX = (eM - eW)
845+ let eY = invoke(U(), "lockNeutrinoSP", [toString(V()), ah], [AttachedPayment(T(), eg)])
846+ if ((eY == eY))
847+ then {
848+ let eZ = invoke(W(), "deposit", nil, [AttachedPayment(T(), eX)])
849+ if ((eZ == eZ))
850+ then {
851+ let fa = invoke(X(), "notifyFees", [toString(ej.caller), eM], nil)
852+ if ((fa == fa))
853+ then ((dN(toString(ej.caller), er, (es + eg), et, eu) ++ ek(eW)) ++ ei((aQ() + eg)))
854+ else throw("Strict value is not equal to itself.")
855+ }
856+ else throw("Strict value is not equal to itself.")
857+ }
858+ else throw("Strict value is not equal to itself.")
1026859 }
1027860 }
1028861
1029862
1030863
1031-@Callable(eh)
1032-func v_get (bq) = {
1033- let fB = cT(bq)
1034- let cF = fB._1
1035- let cG = fB._2
1036- let cH = fB._3
1037- let fC = fB._4
1038- throw((((ai(cG) + ai(cH)) + ai(fC)) + ai(cS(bq))))
864+@Callable(ej)
865+func removeMargin (eg) = if (if (if (if ((0 >= eg))
866+ then true
867+ else !(bw(toString(ej.caller))))
868+ then true
869+ else !(bx()))
870+ then true
871+ else by())
872+ then throw("Invalid removeMargin parameters")
873+ else {
874+ let fc = br(toString(ej.caller))
875+ let er = fc._1
876+ let es = fc._2
877+ let et = fc._3
878+ let eu = fc._4
879+ let fd = -(eg)
880+ let fe = bV(er, es, eu, fd)
881+ let ce = fe._1
882+ let cf = fe._2
883+ if ((cf != 0))
884+ then throw("Invalid removed margin amount")
885+ else {
886+ let ff = cL(ce, cf, et)
887+ if (!(bk(ff, aS(), true)))
888+ then throw(((("Too much margin removed: " + toString(ff)) + " < ") + toString(aS())))
889+ else {
890+ let fg = invoke(U(), "unlockNeutrino", [eg, toBase58String(T())], nil)
891+ if ((fg == fg))
892+ then ((dN(toString(ej.caller), er, ce, et, bp(er)) ++ ef(ej.caller, eg)) ++ ei((aQ() - eg)))
893+ else throw("Strict value is not equal to itself.")
894+ }
895+ }
896+ }
897+
898+
899+
900+@Callable(ej)
901+func closePosition () = if (if (if (!(bw(toString(ej.caller))))
902+ then true
903+ else !(bx()))
904+ then true
905+ else by())
906+ then throw("Invalid closePosition parameters")
907+ else {
908+ let fh = cV(toString(ej.caller))
909+ let cH = fh._1
910+ let fi = fh._2
911+ let da = fh._3
912+ let db = fh._4
913+ let bK = fh._5
914+ let bL = fh._6
915+ let de = fh._7
916+ let df = fh._8
917+ let di = fh._9
918+ let cI = fh._10
919+ let dg = fh._11
920+ let dh = fh._12
921+ if ((fi > 0))
922+ then throw("Unable to close position with bad debt")
923+ else {
924+ let fj = ap(db)
925+ let fk = (aQ() - fj)
926+ let fl = if ((0 > fk))
927+ then $Tuple2(0, ap(fk))
928+ else $Tuple2(fk, 0)
929+ let fm = fl._1
930+ let fn = fl._2
931+ let fo = if ((fn > 0))
932+ then {
933+ let fp = invoke(W(), "withdraw", [fn], nil)
934+ if ((fp == fp))
935+ then nil
936+ else throw("Strict value is not equal to itself.")
937+ }
938+ else nil
939+ if ((fo == fo))
940+ then {
941+ let fg = invoke(U(), "unlockNeutrino", [(fj - fn), toBase58String(T())], nil)
942+ if ((fg == fg))
943+ then {
944+ let eK = invoke(X(), "notifyNotional", [toString(ej.caller), 0], nil)
945+ if ((eK == eK))
946+ then (((ee(toString(ej.caller)) ++ dY(bK, bL, de, df, di, dg, dh)) ++ ef(ej.caller, fj)) ++ ei(fm))
947+ else throw("Strict value is not equal to itself.")
948+ }
949+ else throw("Strict value is not equal to itself.")
950+ }
951+ else throw("Strict value is not equal to itself.")
952+ }
953+ }
954+
955+
956+
957+@Callable(ej)
958+func liquidate (bs) = {
959+ let fq = cP(bs, ai)
960+ let ff = if (ct())
961+ then {
962+ let fr = cP(bs, aj)
963+ aq(fq, fr)
964+ }
965+ else fq
966+ if (if (if (if (!(bk(ff, bc(), false)))
967+ then true
968+ else !(bw(bs)))
969+ then true
970+ else !(bx()))
971+ then true
972+ else by())
973+ then throw("Unable to liquidate")
974+ else {
975+ let fs = cV(bs)
976+ let cH = fs._1
977+ let cf = fs._2
978+ let cI = fs._3
979+ let cJ = fs._4
980+ let bK = fs._5
981+ let bL = fs._6
982+ let de = fs._7
983+ let df = fs._8
984+ let di = fs._9
985+ let dd = fs._10
986+ let dg = fs._11
987+ let dh = fs._12
988+ let ft = ao(dd, bd())
989+ let fu = (ft / 2)
990+ let eX = (ft - fu)
991+ let fk = (aQ() - ft)
992+ let fv = if ((0 > fk))
993+ then $Tuple2(0, ap(fk))
994+ else $Tuple2(fk, 0)
995+ let fw = fv._1
996+ let fx = fv._2
997+ let fo = if ((fx > 0))
998+ then {
999+ let fp = invoke(W(), "withdraw", [fx], nil)
1000+ if ((fp == fp))
1001+ then nil
1002+ else throw("Strict value is not equal to itself.")
1003+ }
1004+ else nil
1005+ if ((fo == fo))
1006+ then {
1007+ let fg = invoke(U(), "unlockNeutrino", [(ft - fx), toBase58String(T())], nil)
1008+ if ((fg == fg))
1009+ then {
1010+ let eZ = invoke(W(), "deposit", nil, [AttachedPayment(T(), eX)])
1011+ if ((eZ == eZ))
1012+ then {
1013+ let eK = invoke(X(), "notifyNotional", [bs, 0], nil)
1014+ if ((eK == eK))
1015+ then (((ee(bs) ++ dY(bK, bL, de, df, di, dg, dh)) ++ ef(ej.caller, fu)) ++ ei(fw))
1016+ else throw("Strict value is not equal to itself.")
1017+ }
1018+ else throw("Strict value is not equal to itself.")
1019+ }
1020+ else throw("Strict value is not equal to itself.")
1021+ }
1022+ else throw("Strict value is not equal to itself.")
1023+ }
10391024 }
10401025
10411026
10421027
1043-@Callable(eh)
1044-func view_calcRemainMarginWithFundingPayment (bq) = {
1045- let fD = bp(bq)
1046- let bt = fD._1
1047- let cx = fD._2
1048- let cP = fD._3
1049- let cz = fD._4
1050- let fE = cu(bq, ag)
1051- let cC = fE._1
1052- let cI = fE._2
1053- let fF = bT(bt, cx, cz, cI)
1054- let cc = fF._1
1055- let cd = fF._2
1056- let bY = fF._3
1057- throw(((ai(cc) + ai(bY)) + ai(cS(bq))))
1028+@Callable(ej)
1029+func payFunding () = {
1030+ let fy = aY()
1031+ if (if (if ((fy > lastBlock.timestamp))
1032+ then true
1033+ else !(bx()))
1034+ then true
1035+ else by())
1036+ then throw(((("Invalid funding block timestamp: " + toString(lastBlock.timestamp)) + " < ") + toString(fy)))
1037+ else {
1038+ let fz = cn()
1039+ let fA = dj()
1040+ let fB = (fA - fz)
1041+ let fC = if (if ((bi() == 0))
1042+ then true
1043+ else (bj() == 0))
1044+ then $Tuple2(0, 0)
1045+ else if ((0 > fB))
1046+ then {
1047+ let fD = am(ao(fB, ba()), ag)
1048+ let fE = am(ao(fD, bi()), bj())
1049+ $Tuple2(fD, fE)
1050+ }
1051+ else {
1052+ let fE = am(ao(fB, ba()), ag)
1053+ let fD = am(ao(fE, bj()), bi())
1054+ $Tuple2(fD, fE)
1055+ }
1056+ let fD = fC._1
1057+ let fE = fC._2
1058+ dH((fy + bb()), (bg() + fE), (bh() + fD), am(fE, fz), am(fD, fz))
1059+ }
10581060 }
10591061
10601062
1061-@Verifier(fG)
1062-func fH () = sigVerify(fG.bodyBytes, fG.proofs[0], R())
1063+
1064+@Callable(ej)
1065+func v_get (bs) = {
1066+ let fF = cV(bs)
1067+ let cH = fF._1
1068+ let cI = fF._2
1069+ let cJ = fF._3
1070+ let fG = fF._4
1071+ throw((((ak(cI) + ak(cJ)) + ak(fG)) + ak(cU(bs))))
1072+ }
1073+
1074+
1075+
1076+@Callable(ej)
1077+func view_calcRemainMarginWithFundingPayment (bs) = {
1078+ let fH = br(bs)
1079+ let bv = fH._1
1080+ let cz = fH._2
1081+ let cR = fH._3
1082+ let cB = fH._4
1083+ let fI = cw(bs, ai)
1084+ let cE = fI._1
1085+ let cK = fI._2
1086+ let fJ = bV(bv, cz, cB, cK)
1087+ let ce = fJ._1
1088+ let cf = fJ._2
1089+ let ca = fJ._3
1090+ throw(((ak(ce) + ak(ca)) + ak(cU(bs))))
1091+ }
1092+
1093+
1094+
1095+@Callable(ej)
1096+func forceMoveAsset (bs,eg) = if (if ((addressFromPublicKey(S()) != ej.caller))
1097+ then true
1098+ else (0 > eg))
1099+ then throw("Invalid forceMoveAsset parameters")
1100+ else {
1101+ let fg = invoke(U(), "unlockNeutrino", [eg, toBase58String(T())], nil)
1102+ if ((fg == fg))
1103+ then (ef(addressFromStringValue(bs), eg) ++ ei((aQ() - eg)))
1104+ else throw("Strict value is not equal to itself.")
1105+ }
1106+
1107+
1108+@Verifier(fK)
1109+func fL () = sigVerify(fK.bodyBytes, fK.proofs[0], S())
10631110
Full:
OldNewDifferences
1-{-# STDLIB_VERSION 5 #-}
1+{-# 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_initialized"
2121
2222 let j = "k_paused"
2323
2424 let k = "k_fee"
2525
2626 let l = "k_fundingPeriod"
2727
2828 let m = "k_initMarginRatio"
2929
3030 let n = "k_mmr"
3131
3232 let o = "k_liquidationFeeRatio"
3333
3434 let p = "k_spreadLimit"
3535
3636 let q = "k_maxPriceImpact"
3737
3838 let r = "k_lastDataStr"
3939
4040 let s = "k_lastMinuteId"
4141
4242 let t = "k_twapDataLastCumulativePrice"
4343
4444 let u = "k_twapDataLastPrice"
4545
4646 let v = "k_twapDataPreviousMinuteId"
4747
4848 let w = "k_latestLongPremiumFraction"
4949
5050 let x = "k_latestShortPremiumFraction"
5151
5252 let y = "k_nextFundingBlockMinTimestamp"
5353
5454 let z = "k_longFundingRate"
5555
5656 let A = "k_shortFundingRate"
5757
5858 let B = "k_qtAstR"
5959
6060 let C = "k_bsAstR"
6161
6262 let D = "k_totalPositionSize"
6363
6464 let E = "k_totalLongPositionSize"
6565
6666 let F = "k_totalShortPositionSize"
6767
6868 let G = "k_cumulativeNotional"
6969
7070 let H = "k_openInterestNotional"
7171
7272 let I = "k_coordinatorAddress"
7373
7474 let J = "k_insurance_address"
7575
7676 let K = "k_admin_address"
7777
7878 let L = "k_admin_public_key"
7979
8080 let M = "k_quote_asset"
8181
8282 let N = "k_quote_staking"
8383
8484 let O = "k_staking_address"
8585
86-func P () = valueOrErrorMessage(addressFromString(getStringValue(this, I)), "Coordinator not set")
86+let P = "k_miner_address"
87+
88+func Q () = valueOrErrorMessage(addressFromString(getStringValue(this, I)), "Coordinator not set")
8789
8890
89-func Q () = addressFromString(getStringValue(P(), K))
91+func R () = addressFromString(getStringValue(Q(), K))
9092
9193
92-func R () = fromBase58String(getStringValue(P(), L))
94+func S () = fromBase58String(getStringValue(Q(), L))
9395
9496
95-func S () = fromBase58String(getStringValue(P(), M))
97+func T () = fromBase58String(getStringValue(Q(), M))
9698
9799
98-func T () = valueOrErrorMessage(addressFromString(getStringValue(P(), N)), "Quote asset staking not set")
100+func U () = valueOrErrorMessage(addressFromString(getStringValue(Q(), N)), "Quote asset staking not set")
99101
100102
101-func U () = valueOrErrorMessage(addressFromString(getStringValue(P(), O)), "Insurance not set")
103+func V () = valueOrErrorMessage(addressFromString(getStringValue(Q(), O)), "Insurance not set")
102104
103105
104-func V () = valueOrErrorMessage(addressFromString(getStringValue(P(), J)), "Insurance not set")
106+func W () = valueOrErrorMessage(addressFromString(getStringValue(Q(), J)), "Insurance not set")
105107
106108
107-let W = 1
108-
109-let X = 2
110-
111-let Y = 60
112-
113-let Z = 15
114-
115-let aa = 15
116-
117-let ab = 1000
118-
119-let ac = (1 * (((((10 * 10) * 10) * 10) * 10) * 10))
120-
121-let ad = (100 * ac)
122-
123-let ae = (86400 * ac)
124-
125-let af = 100
126-
127-let ag = 1
128-
129-let ah = 2
130-
131-func ai (aj) = (toString(aj) + ",")
109+func X () = valueOrErrorMessage(addressFromString(getStringValue(Q(), P)), "Insurance not set")
132110
133111
134-func ak (aj,al) = fraction(aj, ac, al, HALFEVEN)
112+let Y = 1
113+
114+let Z = 2
115+
116+let aa = 60
117+
118+let ab = 15
119+
120+let ac = 15
121+
122+let ad = 1000
123+
124+let ae = (1 * (((((10 * 10) * 10) * 10) * 10) * 10))
125+
126+let af = (100 * ae)
127+
128+let ag = (86400 * ae)
129+
130+let ah = 100
131+
132+let ai = 1
133+
134+let aj = 2
135+
136+func ak (al) = (toString(al) + ",")
135137
136138
137-func am (aj,al) = fraction(aj, al, ac, HALFEVEN)
139+func am (al,an) = fraction(al, ae, an, HALFEVEN)
138140
139141
140-func an (aj) = if ((aj > 0))
141- then aj
142- else -(aj)
142+func ao (al,an) = fraction(al, an, ae, HALFEVEN)
143143
144144
145-func ao (aj,al) = if ((aj >= al))
146- then aj
147- else al
145+func ap (al) = if ((al > 0))
146+ then al
147+ else -(al)
148148
149149
150-func ap (aq,ar) = ((aq + "_") + ar)
150+func aq (al,an) = if ((al >= an))
151+ then al
152+ else an
151153
152154
153-func as (at) = {
154- func au (av,aw) = ((av + aw) + ",")
155+func ar (as,at) = ((as + "_") + at)
155156
156- let ax = {
157- let ay = at
158- let az = size(ay)
159- let aA = ""
160- func aB (aC,aD) = if ((aD >= az))
161- then aC
162- else au(aC, ay[aD])
163157
164- func aE (aC,aD) = if ((aD >= az))
165- then aC
158+func au (av) = {
159+ func aw (ax,ay) = ((ax + ay) + ",")
160+
161+ let az = {
162+ let aA = av
163+ let aB = size(aA)
164+ let aC = ""
165+ func aD (aE,aF) = if ((aF >= aB))
166+ then aE
167+ else aw(aE, aA[aF])
168+
169+ func aG (aE,aF) = if ((aF >= aB))
170+ then aE
166171 else throw("List size exceeds 20")
167172
168- aE(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aA, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20)
173+ aG(aD(aD(aD(aD(aD(aD(aD(aD(aD(aD(aD(aD(aD(aD(aD(aD(aD(aD(aD(aD(aC, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20)
169174 }
170- let aF = dropRight(ax, 1)
171- let aG = if ((take(aF, 1) == ","))
172- then drop(aF, 1)
173- else aF
174- aG
175+ let aH = dropRight(az, 1)
176+ let aI = if ((take(aH, 1) == ","))
177+ then drop(aH, 1)
178+ else aH
179+ aI
175180 }
176181
177182
178-func aH (aI) = split(aI, ",")
183+func aJ (aK) = split(aK, ",")
179184
180185
181-func aJ (at,aK,aL) = if ((size(at) > aK))
182- then (removeByIndex(at, 0) :+ aL)
183- else (at :+ aL)
186+func aL (av,aM,aN) = if ((size(av) > aM))
187+ then (removeByIndex(av, 0) :+ aN)
188+ else (av :+ aN)
184189
185190
186-func aM (aN) = valueOrErrorMessage(getInteger(this, aN), ("no value for " + aN))
191+func aO (aP) = valueOrErrorMessage(getInteger(this, aP), ("no value for " + aP))
187192
188193
189-func aO () = aM(d)
194+func aQ () = aO(d)
190195
191196
192-func aP () = aM(k)
197+func aR () = aO(k)
193198
194199
195-func aQ () = aM(m)
200+func aS () = aO(m)
196201
197202
198-func aR () = aM(B)
203+func aT () = aO(B)
199204
200205
201-func aS () = aM(C)
206+func aU () = aO(C)
202207
203208
204-func aT () = aM(D)
209+func aV () = aO(D)
205210
206211
207-func aU () = aM(G)
212+func aW () = aO(G)
208213
209214
210-func aV () = aM(H)
215+func aX () = aO(H)
211216
212217
213-func aW () = aM(y)
218+func aY () = aO(y)
214219
215220
216-func aX () = aM(l)
221+func aZ () = aO(l)
217222
218223
219-func aY () = (aX() * ac)
224+func ba () = (aZ() * ae)
220225
221226
222-func aZ () = (aX() * ab)
227+func bb () = (aZ() * ad)
223228
224229
225-func ba () = aM(n)
230+func bc () = aO(n)
226231
227232
228-func bb () = aM(o)
233+func bd () = aO(o)
229234
230235
231-func bc () = aM(p)
236+func be () = aO(p)
232237
233238
234-func bd () = aM(q)
239+func bf () = aO(q)
235240
236241
237-func be () = aM(w)
242+func bg () = aO(w)
238243
239244
240-func bf () = aM(x)
245+func bh () = aO(x)
241246
242247
243-func bg () = aM(F)
248+func bi () = aO(F)
244249
245250
246-func bh () = aM(E)
251+func bj () = aO(E)
247252
248253
249-func bi (bj,bk,bl) = {
250- let bm = (bj - bk)
251- if (if (bl)
252- then (0 > bm)
254+func bk (bl,bm,bn) = {
255+ let bo = (bl - bm)
256+ if (if (bn)
257+ then (0 > bo)
253258 else false)
254259 then throw("Invalid margin")
255- else if (if (!(bl))
256- then (bm >= 0)
260+ else if (if (!(bn))
261+ then (bo >= 0)
257262 else false)
258263 then throw("Invalid margin")
259264 else true
260265 }
261266
262267
263-func bn (bo) = if ((bo == 0))
268+func bp (bq) = if ((bq == 0))
264269 then throw("Should not be called with _positionSize == 0")
265- else if ((bo > 0))
266- then be()
267- else bf()
270+ else if ((bq > 0))
271+ then bg()
272+ else bh()
268273
269274
270-func bp (bq) = {
271- let br = getInteger(this, ap(e, bq))
272- let bs = br
273- if ($isInstanceOf(bs, "Int"))
275+func br (bs) = {
276+ let bt = getInteger(this, ar(e, bs))
277+ let bu = bt
278+ if ($isInstanceOf(bu, "Int"))
274279 then {
275- let bt = bs
276- $Tuple4(bt, getIntegerValue(this, ap(f, bq)), getIntegerValue(this, ap(g, bq)), getIntegerValue(this, ap(h, bq)))
280+ let bv = bu
281+ $Tuple4(bv, getIntegerValue(this, ar(f, bs)), getIntegerValue(this, ar(g, bs)), getIntegerValue(this, ar(h, bs)))
277282 }
278283 else $Tuple4(0, 0, 0, 0)
279284 }
280285
281286
282-func bu (bq) = if ((bp(bq)._1 == 0))
287+func bw (bs) = if ((br(bs)._1 == 0))
283288 then throw("No open position")
284289 else true
285290
286291
287-func bv () = valueOrElse(getBoolean(this, i), false)
292+func bx () = valueOrElse(getBoolean(this, i), false)
288293
289294
290-func bw () = valueOrElse(getBoolean(this, j), false)
295+func by () = valueOrElse(getBoolean(this, j), false)
291296
292297
293-func bx (by,bz,bA) = if (by)
298+func bz (bA,bB,bC) = if (bA)
294299 then {
295- let bB = (aS() - bA)
296- if ((0 >= bB))
300+ let bD = (aU() - bC)
301+ if ((0 >= bD))
297302 then throw("Tx lead to base asset reserve <= 0, revert")
298- else $Tuple4((aR() + bz), bB, (aT() + bA), (aU() + bz))
303+ else $Tuple4((aT() + bB), bD, (aV() + bC), (aW() + bB))
299304 }
300305 else {
301- let bC = (aR() - bz)
302- if ((0 >= bC))
306+ let bE = (aT() - bB)
307+ if ((0 >= bE))
303308 then throw("Tx lead to base quote reserve <= 0, revert")
304- else $Tuple4(bC, (aS() + bA), (aT() - bA), (aU() - bz))
309+ else $Tuple4(bE, (aU() + bC), (aV() - bC), (aW() - bB))
305310 }
306311
307312
308-func bD (by,bz) = {
309- let bE = aR()
310- let bF = aS()
311- let bG = ak(bE, bF)
312- let bH = am(bz, bG)
313- let aN = am(bE, bF)
314- let bI = if (by)
315- then (bE + bz)
316- else (bE - bz)
317- let bJ = ak(aN, bI)
318- let bK = an((bJ - bF))
319- let bL = if (by)
320- then bK
321- else -(bK)
322- let bM = ((bH - bK) / bH)
323- let bN = bd()
324- if ((bM > bN))
325- then throw(((("Price impact " + toString(bM)) + " > max price impact ") + toString(bN)))
313+func bF (bA,bB) = {
314+ let bG = aT()
315+ let bH = aU()
316+ let bI = am(bG, bH)
317+ let bJ = ao(bB, bI)
318+ let aP = ao(bG, bH)
319+ let bK = if (bA)
320+ then (bG + bB)
321+ else (bG - bB)
322+ let bL = am(aP, bK)
323+ let bM = ap((bL - bH))
324+ let bN = if (bA)
325+ then bM
326+ else -(bM)
327+ let bO = ((bJ - bM) / bJ)
328+ let bP = bf()
329+ if ((bO > bP))
330+ then throw(((("Price impact " + toString(bO)) + " > max price impact ") + toString(bP)))
326331 else {
327- let bO = bx(by, bz, bK)
328- let bP = bO._1
329- let bQ = bO._2
330- let bR = bO._3
331- let bS = bO._4
332- $Tuple5(bL, bP, bQ, bR, bS)
332+ let bQ = bz(bA, bB, bM)
333+ let bR = bQ._1
334+ let bS = bQ._2
335+ let bT = bQ._3
336+ let bU = bQ._4
337+ $Tuple5(bN, bR, bS, bT, bU)
333338 }
334339 }
335340
336341
337-func bT (bU,bV,bW,bX) = {
338- let bY = if ((bU != 0))
342+func bV (bW,bX,bY,bZ) = {
343+ let ca = if ((bW != 0))
339344 then {
340- let bZ = bn(bU)
341- am((bZ - bW), bU)
345+ let cb = bp(bW)
346+ ao((cb - bY), bW)
342347 }
343348 else 0
344- let ca = ((bX - bY) + bV)
345- let cb = if ((0 > ca))
346- then $Tuple2(0, an(ca))
347- else $Tuple2(an(ca), 0)
348- let cc = cb._1
349- let cd = cb._2
350- $Tuple3(cc, cd, bY)
349+ let cc = ((bZ - ca) + bX)
350+ let cd = if ((0 > cc))
351+ then $Tuple2(0, ap(cc))
352+ else $Tuple2(ap(cc), 0)
353+ let ce = cd._1
354+ let cf = cd._2
355+ $Tuple3(ce, cf, ca)
351356 }
352357
353358
354-func ce (by,bA) = {
355- let cf = aR()
356- let cg = aS()
357- if ((bA == 0))
359+func cg (bA,bC) = {
360+ let ch = aT()
361+ let ci = aU()
362+ if ((bC == 0))
358363 then throw("Invalid base asset amount")
359364 else {
360- let aN = am(cf, cg)
361- let ch = if (by)
362- then (cg + bA)
363- else (cg - bA)
364- let ci = ak(aN, ch)
365- let cj = an((ci - cf))
366- let ck = bx(!(by), cj, bA)
367- let bP = ck._1
368- let bQ = ck._2
369- let bR = ck._3
370- let bS = ck._4
371- $Tuple7(cj, bP, bQ, bR, bS, (bh() - (if (by)
372- then an(bA)
373- else 0)), (bg() - (if (!(by))
374- then an(bA)
365+ let aP = ao(ch, ci)
366+ let cj = if (bA)
367+ then (ci + bC)
368+ else (ci - bC)
369+ let ck = am(aP, cj)
370+ let cl = ap((ck - ch))
371+ let cm = bz(!(bA), cl, bC)
372+ let bR = cm._1
373+ let bS = cm._2
374+ let bT = cm._3
375+ let bU = cm._4
376+ $Tuple7(cl, bR, bS, bT, bU, (bj() - (if (bA)
377+ then ap(bC)
378+ else 0)), (bi() - (if (!(bA))
379+ then ap(bC)
375380 else 0)))
376381 }
377382 }
378383
379384
380-func cl () = {
381- let cm = valueOrErrorMessage(addressFromString(getStringValue(this, c)), "")
382- let cn = getStringValue(this, a)
383- let co = getStringValue(this, b)
384- let cp = getIntegerValue(cm, cn)
385- cp
385+func cn () = {
386+ let co = valueOrErrorMessage(addressFromString(getStringValue(this, c)), "")
387+ let cp = getStringValue(this, a)
388+ let cq = getStringValue(this, b)
389+ let cr = getIntegerValue(co, cp)
390+ cr
386391 }
387392
388393
389-func cq () = {
390- let cf = aR()
391- let cg = aS()
392- ak(cf, cg)
394+func cs () = {
395+ let ch = aT()
396+ let ci = aU()
397+ am(ch, ci)
393398 }
394399
395400
396-func cr () = {
397- let cs = cl()
398- let ct = cq()
399- (ak(an((cs - ct)), cs) > bc())
401+func ct () = {
402+ let cu = cn()
403+ let cv = cs()
404+ (am(ap((cu - cv)), cu) > be())
400405 }
401406
402407
403-func cu (bq,cv) = {
404- let cw = bp(bq)
405- let bt = cw._1
406- let cx = cw._2
407- let cy = cw._3
408- let cz = cw._4
409- let cA = an(bt)
410- if ((cA == 0))
408+func cw (bs,cx) = {
409+ let cy = br(bs)
410+ let bv = cy._1
411+ let cz = cy._2
412+ let cA = cy._3
413+ let cB = cy._4
414+ let cC = ap(bv)
415+ if ((cC == 0))
411416 then throw("Invalid position size")
412417 else {
413- let cB = (0 > bt)
414- let cC = if ((cv == ag))
418+ let cD = (0 > bv)
419+ let cE = if ((cx == ai))
415420 then {
416- let cD = ce(!(cB), cA)
417- let cE = cD._1
418- let cF = cD._2
419- let cG = cD._3
420- let cH = cD._4
421- cE
421+ let cF = cg(!(cD), cC)
422+ let cG = cF._1
423+ let cH = cF._2
424+ let cI = cF._3
425+ let cJ = cF._4
426+ cG
422427 }
423- else am(cA, cl())
424- let cI = if (cB)
425- then (cy - cC)
426- else (cC - cy)
427- $Tuple2(cC, cI)
428+ else ao(cC, cn())
429+ let cK = if (cD)
430+ then (cA - cE)
431+ else (cE - cA)
432+ $Tuple2(cE, cK)
428433 }
429434 }
430435
431436
432-func cJ (cK,cL,cM) = ak((cK - cL), cM)
437+func cL (cM,cN,cO) = am((cM - cN), cO)
433438
434439
435-func cN (bq,cv) = {
436- let cO = bp(bq)
437- let bt = cO._1
438- let cx = cO._2
439- let cP = cO._3
440- let cz = cO._4
441- let cQ = cu(bq, cv)
442- let cC = cQ._1
443- let cI = cQ._2
444- let cR = bT(bt, cx, cz, cI)
445- let cc = cR._1
446- let cd = cR._2
447- cJ(cc, cd, cC)
440+func cP (bs,cx) = {
441+ let cQ = br(bs)
442+ let bv = cQ._1
443+ let cz = cQ._2
444+ let cR = cQ._3
445+ let cB = cQ._4
446+ let cS = cw(bs, cx)
447+ let cE = cS._1
448+ let cK = cS._2
449+ let cT = bV(bv, cz, cB, cK)
450+ let ce = cT._1
451+ let cf = cT._2
452+ cL(ce, cf, cE)
448453 }
449454
450455
451-func cS (bq) = cN(bq, ag)
456+func cU (bs) = cP(bs, ai)
452457
453458
454-func cT (bq) = {
455- let cU = bp(bq)
456- let bt = cU._1
457- let cx = cU._2
458- let cy = cU._3
459- let cz = cU._4
460- let cV = cu(bq, ag)
461- let cF = cV._1
462- let cI = cV._2
463- let cW = bT(bt, cx, cz, cI)
464- let cc = cW._1
465- let cd = cW._2
466- let cX = -(bt)
467- let cY = cI
468- let cZ = -(cc)
469- let da = ce((bt > 0), an(bt))
470- let db = da._1
471- let bI = da._2
472- let bJ = da._3
473- let dc = da._4
474- let dd = da._5
475- let de = da._6
476- let df = da._7
477- let dg = (aV() - cy)
478- $Tuple12(cX, cd, cY, cZ, bI, bJ, dc, dd, dg, db, de, df)
459+func cV (bs) = {
460+ let cW = br(bs)
461+ let bv = cW._1
462+ let cz = cW._2
463+ let cA = cW._3
464+ let cB = cW._4
465+ let cX = cw(bs, ai)
466+ let cH = cX._1
467+ let cK = cX._2
468+ let cY = bV(bv, cz, cB, cK)
469+ let ce = cY._1
470+ let cf = cY._2
471+ let cZ = -(bv)
472+ let da = cK
473+ let db = -(ce)
474+ let dc = cg((bv > 0), ap(bv))
475+ let dd = dc._1
476+ let bK = dc._2
477+ let bL = dc._3
478+ let de = dc._4
479+ let df = dc._5
480+ let dg = dc._6
481+ let dh = dc._7
482+ let di = (aX() - cA)
483+ $Tuple12(cZ, cf, da, db, bK, bL, de, df, di, dd, dg, dh)
479484 }
480485
481486
482-func dh () = {
483- let di = ((lastBlock.timestamp / 1000) / 60)
484- let dj = (di - Z)
485- let dk = valueOrElse(getString(this, r), "")
486- let dl = split(dk, ",")
487- func dm (av,dn) = if ((dj >= parseIntValue(dn)))
488- then (av :+ parseIntValue(dn))
489- else av
487+func dj () = {
488+ let dk = ((lastBlock.timestamp / 1000) / 60)
489+ let dl = (dk - ab)
490+ let dm = valueOrElse(getString(this, r), "")
491+ let dn = split(dm, ",")
492+ func do (ax,dp) = if ((dl >= parseIntValue(dp)))
493+ then (ax :+ parseIntValue(dp))
494+ else ax
490495
491- let do = {
492- let ay = dl
493- let az = size(ay)
494- let aA = nil
495- func aB (aC,aD) = if ((aD >= az))
496- then aC
497- else dm(aC, ay[aD])
496+ let dq = {
497+ let aA = dn
498+ let aB = size(aA)
499+ let aC = nil
500+ func aD (aE,aF) = if ((aF >= aB))
501+ then aE
502+ else do(aE, aA[aF])
498503
499- func aE (aC,aD) = if ((aD >= az))
500- then aC
504+ func aG (aE,aF) = if ((aF >= aB))
505+ then aE
501506 else throw("List size exceeds 20")
502507
503- aE(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aB(aA, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20)
508+ aG(aD(aD(aD(aD(aD(aD(aD(aD(aD(aD(aD(aD(aD(aD(aD(aD(aD(aD(aD(aD(aC, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20)
504509 }
505- let dp = if ((size(do) > 0))
506- then max(do)
507- else parseIntValue(dl[0])
508- let dq = valueOrElse(getInteger(this, s), 0)
509- let dr = valueOrElse(getInteger(this, ((t + "_") + toString(dq))), 0)
510- let ds = valueOrElse(getInteger(this, ((u + "_") + toString(dq))), 0)
511- let dt = (dr + ((di - dq) * ds))
512- let du = valueOrElse(getInteger(this, ((t + "_") + toString(dp))), 0)
513- let dv = valueOrElse(getInteger(this, ((u + "_") + toString(dp))), 0)
514- let dw = (du + ((dj - dp) * dv))
515- ((dt - dw) / Z)
510+ let dr = if ((size(dq) > 0))
511+ then max(dq)
512+ else parseIntValue(dn[0])
513+ let ds = valueOrElse(getInteger(this, s), 0)
514+ let dt = valueOrElse(getInteger(this, ((t + "_") + toString(ds))), 0)
515+ let du = valueOrElse(getInteger(this, ((u + "_") + toString(ds))), 0)
516+ let dv = (dt + ((dk - ds) * du))
517+ let dw = valueOrElse(getInteger(this, ((t + "_") + toString(dr))), 0)
518+ let dx = valueOrElse(getInteger(this, ((u + "_") + toString(dr))), 0)
519+ let dy = (dw + ((dl - dr) * dx))
520+ ((dv - dy) / ab)
516521 }
517522
518523
519-func dx (dy,dz,dA,dB,dC,dD,dE) = [IntegerEntry(m, dy), IntegerEntry(n, dz), IntegerEntry(o, dA), IntegerEntry(l, dB), IntegerEntry(k, dC), IntegerEntry(p, dD), IntegerEntry(q, dE)]
524+func dz (dA,dB,dC,dD,dE,dF,dG) = [IntegerEntry(m, dA), IntegerEntry(n, dB), IntegerEntry(o, dC), IntegerEntry(l, dD), IntegerEntry(k, dE), IntegerEntry(p, dF), IntegerEntry(q, dG)]
520525
521526
522-func dF (dG,dH,dI,dJ,dK) = [IntegerEntry(y, dG), IntegerEntry(w, dH), IntegerEntry(x, dI), IntegerEntry(z, dJ), IntegerEntry(A, dK)]
527+func dH (dI,dJ,dK,dL,dM) = [IntegerEntry(y, dI), IntegerEntry(w, dJ), IntegerEntry(x, dK), IntegerEntry(z, dL), IntegerEntry(A, dM)]
523528
524529
525-func dL (ar,dM,dN,dO,bZ) = [IntegerEntry(ap(e, ar), dM), IntegerEntry(ap(f, ar), dN), IntegerEntry(ap(g, ar), dO), IntegerEntry(ap(h, ar), bZ)]
530+func dN (at,dO,dP,dQ,cb) = [IntegerEntry(ar(e, at), dO), IntegerEntry(ar(f, at), dP), IntegerEntry(ar(g, at), dQ), IntegerEntry(ar(h, at), cb)]
526531
527532
528-func dP (dQ) = {
529- let di = ((lastBlock.timestamp / 1000) / 60)
530- let dR = valueOrElse(getInteger(this, s), 0)
531- if ((dR > di))
533+func dR (dS) = {
534+ let dk = ((lastBlock.timestamp / 1000) / 60)
535+ let dT = valueOrElse(getInteger(this, s), 0)
536+ if ((dT > dk))
532537 then throw("TWAP out-of-order")
533538 else {
534- let dq = if ((dR == 0))
535- then di
536- else dR
537- if ((di > dR))
539+ let ds = if ((dT == 0))
540+ then dk
541+ else dT
542+ if ((dk > dT))
538543 then {
539- let dS = valueOrElse(getInteger(this, ((t + "_") + toString(dR))), 0)
540- let dT = valueOrElse(getInteger(this, ((u + "_") + toString(dR))), dQ)
541- let dU = (dS + ((di - dq) * dT))
542- let dl = aJ(aH(valueOrElse(getString(this, r), "")), Z, toString(di))
543-[IntegerEntry(ap(t, toString(di)), dU), IntegerEntry(ap(u, toString(di)), dQ), IntegerEntry(ap(v, toString(di)), dR), IntegerEntry(s, di), StringEntry(r, as(dl))]
544+ let dU = valueOrElse(getInteger(this, ((t + "_") + toString(dT))), 0)
545+ let dV = valueOrElse(getInteger(this, ((u + "_") + toString(dT))), dS)
546+ let dW = (dU + ((dk - ds) * dV))
547+ let dn = aL(aJ(valueOrElse(getString(this, r), "")), ab, toString(dk))
548+[IntegerEntry(ar(t, toString(dk)), dW), IntegerEntry(ar(u, toString(dk)), dS), IntegerEntry(ar(v, toString(dk)), dT), IntegerEntry(s, dk), StringEntry(r, au(dn))]
544549 }
545550 else {
546- let dV = valueOrElse(getInteger(this, ap(v, toString(di))), 0)
547- let dS = valueOrElse(getInteger(this, ap(t, toString(dV))), 0)
548- let dT = valueOrElse(getInteger(this, ap(u, toString(dV))), dQ)
549- let dU = (dS + ((di - dV) * dT))
550-[IntegerEntry(ap(t, toString(di)), dU), IntegerEntry(ap(u, toString(di)), dQ)]
551+ let dX = valueOrElse(getInteger(this, ar(v, toString(dk))), 0)
552+ let dU = valueOrElse(getInteger(this, ar(t, toString(dX))), 0)
553+ let dV = valueOrElse(getInteger(this, ar(u, toString(dX))), dS)
554+ let dW = (dU + ((dk - dX) * dV))
555+[IntegerEntry(ar(t, toString(dk)), dW), IntegerEntry(ar(u, toString(dk)), dS)]
551556 }
552557 }
553558 }
554559
555560
556-func dW (bE,bF,dX,dY,dZ,ea,eb) = if (((ea - eb) != dX))
557- then throw(((((("Invalid AMM state data: " + toString(ea)) + " + ") + toString(eb)) + " != ") + toString(dX)))
558- else ([IntegerEntry(B, bE), IntegerEntry(C, bF), IntegerEntry(D, dX), IntegerEntry(G, dY), IntegerEntry(H, dZ), IntegerEntry(E, ea), IntegerEntry(F, eb)] ++ dP(ak(bE, bF)))
561+func dY (bG,bH,dZ,ea,eb,ec,ed) = if (((ec - ed) != dZ))
562+ then throw(((((("Invalid AMM state data: " + toString(ec)) + " + ") + toString(ed)) + " != ") + toString(dZ)))
563+ else ([IntegerEntry(B, bG), IntegerEntry(C, bH), IntegerEntry(D, dZ), IntegerEntry(G, ea), IntegerEntry(H, eb), IntegerEntry(E, ec), IntegerEntry(F, ed)] ++ dR(am(bG, bH)))
559564
560565
561-func ec (ar) = [DeleteEntry(ap(e, ar)), DeleteEntry(ap(f, ar)), DeleteEntry(ap(g, ar)), DeleteEntry(ap(h, ar))]
566+func ee (at) = [DeleteEntry(ar(e, at)), DeleteEntry(ar(f, at)), DeleteEntry(ar(g, at)), DeleteEntry(ar(h, at))]
562567
563568
564-func ed (ar,ee) = {
565- let ef = assetBalance(this, S())
566- if ((ee > ef))
567- then throw(((("Unable to withdraw " + toString(ee)) + " from contract balance ") + toString(ef)))
568- else [ScriptTransfer(ar, ee, S())]
569+func ef (at,eg) = {
570+ let eh = assetBalance(this, T())
571+ if ((eg > eh))
572+ then throw(((("Unable to withdraw " + toString(eg)) + " from contract balance ") + toString(eh)))
573+ else [ScriptTransfer(at, eg, T())]
569574 }
570575
571576
572-func eg (eh) = if ((0 > eh))
577+func ei (ej) = if ((0 > ej))
573578 then throw("Balance")
574- else [IntegerEntry(d, eh)]
579+ else [IntegerEntry(d, ej)]
575580
576581
577-func ei (eh) = [ScriptTransfer(U(), eh, S())]
582+func ek (ej) = [ScriptTransfer(V(), ej, T())]
578583
579584
580-@Callable(eh)
581-func pause () = if ((eh.caller != Q()))
585+@Callable(ej)
586+func pause () = if ((ej.caller != R()))
582587 then throw("Invalid togglePause params")
583588 else [BooleanEntry(j, true)]
584589
585590
586591
587-@Callable(eh)
588-func unpause () = if ((eh.caller != Q()))
592+@Callable(ej)
593+func unpause () = if ((ej.caller != R()))
589594 then throw("Invalid togglePause params")
590595 else [BooleanEntry(j, false)]
591596
592597
593598
594-@Callable(eh)
595-func changeSettings (dy,dz,dA,dB,dC,dD,dE) = if ((eh.caller != Q()))
599+@Callable(ej)
600+func changeSettings (dA,dB,dC,dD,dE,dF,dG) = if ((ej.caller != R()))
596601 then throw("Invalid changeSettings params")
597- else dx(dy, dz, dA, dB, dC, dD, dE)
602+ else dz(dA, dB, dC, dD, dE, dF, dG)
598603
599604
600605
601-@Callable(eh)
602-func initialize (bE,bF,dB,dy,dz,dA,dC,ej,ek,el,dD,dE) = if (if (if (if (if (if (if (if (if (if ((0 >= bE))
606+@Callable(ej)
607+func initialize (bG,bH,dD,dA,dB,dC,dE,el,em,en,dF,dG) = if (if (if (if (if (if (if (if (if (if ((0 >= bG))
603608 then true
604- else (0 >= bF))
609+ else (0 >= bH))
610+ then true
611+ else (0 >= dD))
612+ then true
613+ else (0 >= dA))
605614 then true
606615 else (0 >= dB))
607616 then true
608- else (0 >= dy))
609- then true
610- else (0 >= dz))
611- then true
612- else (0 >= dA))
613- then true
614617 else (0 >= dC))
615- then true
616- else (0 >= dD))
617618 then true
618619 else (0 >= dE))
619620 then true
620- else bv())
621+ else (0 >= dF))
622+ then true
623+ else (0 >= dG))
624+ then true
625+ else bx())
621626 then throw("Invalid initialize parameters")
622- else ((((dW(bE, bF, 0, 0, 0, 0, 0) ++ dx(dy, dz, dA, dB, dC, dD, dE)) ++ dF((lastBlock.timestamp + dB), 0, 0, 0, 0)) ++ eg(0)) ++ [BooleanEntry(i, true), StringEntry(c, ej), StringEntry(a, ek), StringEntry(I, el)])
627+ else ((((dY(bG, bH, 0, 0, 0, 0, 0) ++ dz(dA, dB, dC, dD, dE, dF, dG)) ++ dH((lastBlock.timestamp + dD), 0, 0, 0, 0)) ++ ei(0)) ++ [BooleanEntry(i, true), StringEntry(c, el), StringEntry(a, em), StringEntry(I, en)])
623628
624629
625630
626-@Callable(eh)
627-func decreasePosition (ee,em,en) = if (if (if (if (if (if ((0 >= ee))
631+@Callable(ej)
632+func decreasePosition (eg,eo,ep) = if (if (if (if (if (if ((0 >= eg))
628633 then true
629- else if (((1 * ac) > em))
634+ else if (((1 * ae) > eo))
630635 then true
631- else (em > (3 * ac)))
636+ else (eo > (3 * ae)))
632637 then true
633- else !(bv()))
638+ else !(bx()))
634639 then true
635- else !(bi(ak(ac, em), aQ(), true)))
640+ else !(bk(am(ae, eo), aS(), true)))
636641 then true
637- else !(bu(toString(eh.caller))))
642+ else !(bw(toString(ej.caller))))
638643 then true
639- else bw())
644+ else by())
640645 then throw("Invalid decreasePosition parameters")
641646 else {
642- let eo = bp(toString(eh.caller))
643- let ep = eo._1
644- let eq = eo._2
645- let er = eo._3
646- let es = eo._4
647- let et = if ((ep > 0))
648- then X
649- else W
650- let eu = (et == W)
651- let ev = am(ee, em)
652- let ew = cu(toString(eh.caller), ag)
653- let ex = ew._1
654- let cI = ew._2
655- let ey = if ((ex > ev))
647+ let eq = br(toString(ej.caller))
648+ let er = eq._1
649+ let es = eq._2
650+ let et = eq._3
651+ let eu = eq._4
652+ let ev = if ((er > 0))
653+ then Z
654+ else Y
655+ let ew = (ev == Y)
656+ let ex = ao(eg, eo)
657+ let ey = cw(toString(ej.caller), ai)
658+ let ez = ey._1
659+ let cK = ey._2
660+ let eA = if ((ez > ex))
656661 then {
657- let ez = bD(eu, ev)
658- let cX = ez._1
659- let bI = ez._2
660- let bJ = ez._3
661- let dc = ez._4
662- let dd = ez._5
663- let eA = an(cX)
664- if (if ((en != 0))
665- then (en > eA)
662+ let eB = bF(ew, ex)
663+ let cZ = eB._1
664+ let bK = eB._2
665+ let bL = eB._3
666+ let de = eB._4
667+ let df = eB._5
668+ let eC = ap(cZ)
669+ if (if ((ep != 0))
670+ then (ep > eC)
666671 else false)
667- then throw(((("Too little base asset exchanged, got " + toString(eA)) + " expected ") + toString(en)))
672+ then throw(((("Too little base asset exchanged, got " + toString(eC)) + " expected ") + toString(ep)))
668673 else {
669- let cY = ak(am(cI, eA), an(ep))
670- let eB = bT(ep, eq, es, cY)
671- let cc = eB._1
672- let cd = eB._2
673- let bY = eB._3
674- let db = ev
675- let eC = (cI - cY)
676- let eD = if ((ep > 0))
677- then ((ex - db) - eC)
678- else ((eC + ex) - db)
679- let eE = (ep + cX)
680- $Tuple11(eE, cc, an(eD), bn(eE), bJ, bI, dc, dd, (aV() - ev), (bh() - (if ((eE > 0))
681- then an(cX)
682- else 0)), (bg() - (if ((0 > eE))
683- then an(cX)
674+ let da = am(ao(cK, eC), ap(er))
675+ let eD = bV(er, es, eu, da)
676+ let ce = eD._1
677+ let cf = eD._2
678+ let ca = eD._3
679+ let dd = ex
680+ let eE = (cK - da)
681+ let eF = if ((er > 0))
682+ then ((ez - dd) - eE)
683+ else ((eE + ez) - dd)
684+ let eG = (er + cZ)
685+ $Tuple11(eG, ce, ap(eF), bp(eG), bL, bK, de, df, (aX() - ex), (bj() - (if ((eG > 0))
686+ then ap(cZ)
687+ else 0)), (bi() - (if ((0 > eG))
688+ then ap(cZ)
684689 else 0)))
685690 }
686691 }
687692 else throw("Close position first")
688- let eE = ey._1
689- let eF = ey._2
690- let eG = ey._3
691- let eH = ey._4
692- let bJ = ey._5
693- let bI = ey._6
694- let dc = ey._7
695- let dd = ey._8
696- let dg = ey._9
697- let de = ey._10
698- let df = ey._11
699- (dL(toString(eh.caller), eE, eF, eG, eH) ++ dW(bI, bJ, dc, dd, dg, de, df))
693+ let eG = eA._1
694+ let eH = eA._2
695+ let eI = eA._3
696+ let eJ = eA._4
697+ let bL = eA._5
698+ let bK = eA._6
699+ let de = eA._7
700+ let df = eA._8
701+ let di = eA._9
702+ let dg = eA._10
703+ let dh = eA._11
704+ let eK = invoke(X(), "notifyNotional", [toString(ej.caller), eI], nil)
705+ if ((eK == eK))
706+ then (dN(toString(ej.caller), eG, eH, eI, eJ) ++ dY(bK, bL, de, df, di, dg, dh))
707+ else throw("Strict value is not equal to itself.")
700708 }
701709
702710
703711
704-@Callable(eh)
705-func increasePosition (et,em,en) = {
706- let eI = eh.payments[0].amount
707- if (if (if (if (if (if (if (if ((et != W))
708- then (et != X)
712+@Callable(ej)
713+func increasePosition (ev,eo,ep) = {
714+ let eL = ej.payments[0].amount
715+ if (if (if (if (if (if (if (if ((ev != Y))
716+ then (ev != Z)
709717 else false)
710718 then true
711- else (0 >= eI))
719+ else (0 >= eL))
712720 then true
713- else if (((1 * ac) > em))
721+ else if (((1 * ae) > eo))
714722 then true
715- else (em > (3 * ac)))
723+ else (eo > (3 * ae)))
716724 then true
717- else !(bv()))
725+ else !(bx()))
718726 then true
719- else (eh.payments[0].assetId != S()))
727+ else (ej.payments[0].assetId != T()))
720728 then true
721- else !(bi(ak(ac, em), aQ(), true)))
729+ else !(bk(am(ae, eo), aS(), true)))
722730 then true
723- else bw())
731+ else by())
724732 then throw("Invalid increasePosition parameters")
725733 else {
726- let eJ = am(eI, aP())
727- let ee = (eI - eJ)
728- let eK = bp(toString(eh.caller))
729- let ep = eK._1
730- let eq = eK._2
731- let er = eK._3
732- let es = eK._4
733- let eL = (ep == 0)
734- let eM = if ((ep > 0))
735- then (et == W)
736- else (et == X)
737- let eN = if (!(eL))
738- then eM
734+ let eM = ao(eL, aR())
735+ let eg = (eL - eM)
736+ let eN = br(toString(ej.caller))
737+ let er = eN._1
738+ let es = eN._2
739+ let et = eN._3
740+ let eu = eN._4
741+ let eO = (er == 0)
742+ let eP = if ((er > 0))
743+ then (ev == Y)
744+ else (ev == Z)
745+ let eQ = if (!(eO))
746+ then eP
739747 else false
740- let eu = (et == W)
741- let eO = if (if (eL)
748+ let ew = (ev == Y)
749+ let eR = if (if (eO)
742750 then true
743- else eN)
751+ else eQ)
744752 then {
745- let ev = am(ee, em)
746- let eP = bD(eu, ev)
747- let bL = eP._1
748- let bI = eP._2
749- let bJ = eP._3
750- let dc = eP._4
751- let dd = eP._5
752- if (if ((en != 0))
753- then (en > an(bL))
753+ let ex = ao(eg, eo)
754+ let eS = bF(ew, ex)
755+ let bN = eS._1
756+ let bK = eS._2
757+ let bL = eS._3
758+ let de = eS._4
759+ let df = eS._5
760+ if (if ((ep != 0))
761+ then (ep > ap(bN))
754762 else false)
755- then throw(((("Limit error: " + toString(an(bL))) + " < ") + toString(en)))
763+ then throw(((("Limit error: " + toString(ap(bN))) + " < ") + toString(ep)))
756764 else {
757- let eE = (ep + bL)
758- let eQ = ak(ev, em)
759- let eR = bT(ep, eq, es, eQ)
760- let cc = eR._1
761- let cF = eR._2
762- let cG = eR._3
763- $Tuple11(eE, cc, (er + ev), bn(eE), bJ, bI, dc, dd, (aV() + ev), (bh() + (if ((eE > 0))
764- then an(bL)
765- else 0)), (bg() + (if ((0 > eE))
766- then an(bL)
765+ let eG = (er + bN)
766+ let eT = am(ex, eo)
767+ let eU = bV(er, es, eu, eT)
768+ let ce = eU._1
769+ let cH = eU._2
770+ let cI = eU._3
771+ $Tuple11(eG, ce, (et + ex), bp(eG), bL, bK, de, df, (aX() + ex), (bj() + (if ((eG > 0))
772+ then ap(bN)
773+ else 0)), (bi() + (if ((0 > eG))
774+ then ap(bN)
767775 else 0)))
768776 }
769777 }
770778 else {
771- let ev = am(ee, em)
772- let eS = cu(toString(eh.caller), ag)
773- let ex = eS._1
774- let cI = eS._2
775- if ((ex > ev))
779+ let ex = ao(eg, eo)
780+ let eV = cw(toString(ej.caller), ai)
781+ let ez = eV._1
782+ let cK = eV._2
783+ if ((ez > ex))
776784 then throw("Use decreasePosition to decrease position size")
777785 else throw("Close position first")
778786 }
779- let eE = eO._1
780- let eF = eO._2
781- let eG = eO._3
782- let eH = eO._4
783- let bJ = eO._5
784- let bI = eO._6
785- let dc = eO._7
786- let dd = eO._8
787- let dg = eO._9
788- let de = eO._10
789- let df = eO._11
790- let eT = (eJ / 2)
791- let eU = (eJ - eT)
792- let eV = invoke(T(), "lockNeutrinoSP", [toString(U()), af], [AttachedPayment(S(), ee)])
793- if ((eV == eV))
787+ let eG = eR._1
788+ let eH = eR._2
789+ let eI = eR._3
790+ let eJ = eR._4
791+ let bL = eR._5
792+ let bK = eR._6
793+ let de = eR._7
794+ let df = eR._8
795+ let di = eR._9
796+ let dg = eR._10
797+ let dh = eR._11
798+ let eW = (eM / 2)
799+ let eX = (eM - eW)
800+ let eY = invoke(U(), "lockNeutrinoSP", [toString(V()), ah], [AttachedPayment(T(), eg)])
801+ if ((eY == eY))
794802 then {
795- let eW = invoke(V(), "deposit", nil, [AttachedPayment(S(), eU)])
796- if ((eW == eW))
797- then (((dL(toString(eh.caller), eE, eF, eG, eH) ++ dW(bI, bJ, dc, dd, dg, de, df)) ++ ei(eT)) ++ eg((aO() + ee)))
798- else throw("Strict value is not equal to itself.")
799- }
800- else throw("Strict value is not equal to itself.")
801- }
802- }
803-
804-
805-
806-@Callable(eh)
807-func addMargin () = {
808- let eI = eh.payments[0].amount
809- if (if (if (if ((eh.payments[0].assetId != S()))
810- then true
811- else !(bu(toString(eh.caller))))
812- then true
813- else !(bv()))
814- then true
815- else bw())
816- then throw("Invalid addMargin parameters")
817- else {
818- let eJ = am(eI, aP())
819- let ee = (eI - eJ)
820- let eX = bp(toString(eh.caller))
821- let ep = eX._1
822- let eq = eX._2
823- let er = eX._3
824- let es = eX._4
825- let eT = (eJ / 2)
826- let eU = (eJ - eT)
827- let eV = invoke(T(), "lockNeutrinoSP", [toString(U()), af], [AttachedPayment(S(), ee)])
828- if ((eV == eV))
829- then {
830- let eW = invoke(V(), "deposit", nil, [AttachedPayment(S(), eU)])
831- if ((eW == eW))
832- then ((dL(toString(eh.caller), ep, (eq + ee), er, es) ++ ei(eT)) ++ eg((aO() + ee)))
833- else throw("Strict value is not equal to itself.")
834- }
835- else throw("Strict value is not equal to itself.")
836- }
837- }
838-
839-
840-
841-@Callable(eh)
842-func removeMargin (ee) = if (if (if (if ((0 >= ee))
843- then true
844- else !(bu(toString(eh.caller))))
845- then true
846- else !(bv()))
847- then true
848- else bw())
849- then throw("Invalid removeMargin parameters")
850- else {
851- let eY = bp(toString(eh.caller))
852- let ep = eY._1
853- let eq = eY._2
854- let er = eY._3
855- let es = eY._4
856- let eZ = -(ee)
857- let fa = bT(ep, eq, es, eZ)
858- let cc = fa._1
859- let cd = fa._2
860- if ((cd != 0))
861- then throw("Invalid removed margin amount")
862- else {
863- let fb = cJ(cc, cd, er)
864- if (!(bi(fb, aQ(), true)))
865- then throw(((("Too much margin removed: " + toString(fb)) + " < ") + toString(aQ())))
866- else {
867- let fc = invoke(T(), "unlockNeutrino", [ee, toBase58String(S())], nil)
868- if ((fc == fc))
869- then ((dL(toString(eh.caller), ep, cc, er, bn(ep)) ++ ed(eh.caller, ee)) ++ eg((aO() - ee)))
870- else throw("Strict value is not equal to itself.")
871- }
872- }
873- }
874-
875-
876-
877-@Callable(eh)
878-func closePosition () = if (if (if (!(bu(toString(eh.caller))))
879- then true
880- else !(bv()))
881- then true
882- else bw())
883- then throw("Invalid closePosition parameters")
884- else {
885- let fd = cT(toString(eh.caller))
886- let cF = fd._1
887- let fe = fd._2
888- let cY = fd._3
889- let cZ = fd._4
890- let bI = fd._5
891- let bJ = fd._6
892- let dc = fd._7
893- let dd = fd._8
894- let dg = fd._9
895- let cG = fd._10
896- let de = fd._11
897- let df = fd._12
898- if ((fe > 0))
899- then throw("Unable to close position with bad debt")
900- else {
901- let ff = an(cZ)
902- let fg = (aO() - ff)
903- let fh = if ((0 > fg))
904- then $Tuple2(0, an(fg))
905- else $Tuple2(fg, 0)
906- let fi = fh._1
907- let fj = fh._2
908- let fk = if ((fj > 0))
909- then {
910- let fl = invoke(V(), "withdraw", [fj], nil)
911- if ((fl == fl))
912- then nil
913- else throw("Strict value is not equal to itself.")
914- }
915- else nil
916- if ((fk == fk))
917- then {
918- let fc = invoke(T(), "unlockNeutrino", [(ff - fj), toBase58String(S())], nil)
919- if ((fc == fc))
920- then (((ec(toString(eh.caller)) ++ dW(bI, bJ, dc, dd, dg, de, df)) ++ ed(eh.caller, ff)) ++ eg(fi))
921- else throw("Strict value is not equal to itself.")
922- }
923- else throw("Strict value is not equal to itself.")
924- }
925- }
926-
927-
928-
929-@Callable(eh)
930-func liquidate (bq) = {
931- let fm = cN(bq, ag)
932- let fb = if (cr())
933- then {
934- let fn = cN(bq, ah)
935- ao(fm, fn)
936- }
937- else fm
938- if (if (if (if (!(bi(fb, ba(), false)))
939- then true
940- else !(bu(bq)))
941- then true
942- else !(bv()))
943- then true
944- else bw())
945- then throw("Unable to liquidate")
946- else {
947- let fo = cT(bq)
948- let cF = fo._1
949- let cd = fo._2
950- let cG = fo._3
951- let cH = fo._4
952- let bI = fo._5
953- let bJ = fo._6
954- let dc = fo._7
955- let dd = fo._8
956- let dg = fo._9
957- let db = fo._10
958- let de = fo._11
959- let df = fo._12
960- let fp = am(db, bb())
961- let fq = (fp / 2)
962- let eU = (fp - fq)
963- let fg = (aO() - fp)
964- let fr = if ((0 > fg))
965- then $Tuple2(0, an(fg))
966- else $Tuple2(fg, 0)
967- let fs = fr._1
968- let ft = fr._2
969- let fk = if ((ft > 0))
970- then {
971- let fl = invoke(V(), "withdraw", [ft], nil)
972- if ((fl == fl))
973- then nil
974- else throw("Strict value is not equal to itself.")
975- }
976- else nil
977- if ((fk == fk))
978- then {
979- let fc = invoke(T(), "unlockNeutrino", [(fp - ft), toBase58String(S())], nil)
980- if ((fc == fc))
803+ let eZ = invoke(W(), "deposit", nil, [AttachedPayment(T(), eX)])
804+ if ((eZ == eZ))
981805 then {
982- let eW = invoke(V(), "deposit", nil, [AttachedPayment(S(), eU)])
983- if ((eW == eW))
984- then (((ec(bq) ++ dW(bI, bJ, dc, dd, dg, de, df)) ++ ed(eh.caller, fq)) ++ eg(fs))
806+ let fa = invoke(X(), "notifyFees", [toString(ej.caller), eM], nil)
807+ if ((fa == fa))
808+ then {
809+ let eK = invoke(X(), "notifyNotional", [toString(ej.caller), eI], nil)
810+ if ((eK == eK))
811+ then (((dN(toString(ej.caller), eG, eH, eI, eJ) ++ dY(bK, bL, de, df, di, dg, dh)) ++ ek(eW)) ++ ei((aQ() + eg)))
812+ else throw("Strict value is not equal to itself.")
813+ }
985814 else throw("Strict value is not equal to itself.")
986815 }
987816 else throw("Strict value is not equal to itself.")
988817 }
989818 else throw("Strict value is not equal to itself.")
990819 }
991820 }
992821
993822
994823
995-@Callable(eh)
996-func payFunding () = {
997- let fu = aW()
998- if (if (if ((fu > lastBlock.timestamp))
824+@Callable(ej)
825+func addMargin () = {
826+ let eL = ej.payments[0].amount
827+ if (if (if (if ((ej.payments[0].assetId != T()))
999828 then true
1000- else !(bv()))
829+ else !(bw(toString(ej.caller))))
1001830 then true
1002- else bw())
1003- then throw(((("Invalid funding block timestamp: " + toString(lastBlock.timestamp)) + " < ") + toString(fu)))
831+ else !(bx()))
832+ then true
833+ else by())
834+ then throw("Invalid addMargin parameters")
1004835 else {
1005- let fv = cl()
1006- let fw = dh()
1007- let fx = (fw - fv)
1008- let fy = if (if ((bg() == 0))
1009- then true
1010- else (bh() == 0))
1011- then $Tuple2(0, 0)
1012- else if ((0 > fx))
1013- then {
1014- let fz = ak(am(fx, aY()), ae)
1015- let fA = ak(am(fz, bg()), bh())
1016- $Tuple2(fz, fA)
1017- }
1018- else {
1019- let fA = ak(am(fx, aY()), ae)
1020- let fz = ak(am(fA, bh()), bg())
1021- $Tuple2(fz, fA)
1022- }
1023- let fz = fy._1
1024- let fA = fy._2
1025- dF((fu + aZ()), (be() + fA), (bf() + fz), ak(fA, fv), ak(fz, fv))
836+ let eM = ao(eL, aR())
837+ let eg = (eL - eM)
838+ let fb = br(toString(ej.caller))
839+ let er = fb._1
840+ let es = fb._2
841+ let et = fb._3
842+ let eu = fb._4
843+ let eW = (eM / 2)
844+ let eX = (eM - eW)
845+ let eY = invoke(U(), "lockNeutrinoSP", [toString(V()), ah], [AttachedPayment(T(), eg)])
846+ if ((eY == eY))
847+ then {
848+ let eZ = invoke(W(), "deposit", nil, [AttachedPayment(T(), eX)])
849+ if ((eZ == eZ))
850+ then {
851+ let fa = invoke(X(), "notifyFees", [toString(ej.caller), eM], nil)
852+ if ((fa == fa))
853+ then ((dN(toString(ej.caller), er, (es + eg), et, eu) ++ ek(eW)) ++ ei((aQ() + eg)))
854+ else throw("Strict value is not equal to itself.")
855+ }
856+ else throw("Strict value is not equal to itself.")
857+ }
858+ else throw("Strict value is not equal to itself.")
1026859 }
1027860 }
1028861
1029862
1030863
1031-@Callable(eh)
1032-func v_get (bq) = {
1033- let fB = cT(bq)
1034- let cF = fB._1
1035- let cG = fB._2
1036- let cH = fB._3
1037- let fC = fB._4
1038- throw((((ai(cG) + ai(cH)) + ai(fC)) + ai(cS(bq))))
864+@Callable(ej)
865+func removeMargin (eg) = if (if (if (if ((0 >= eg))
866+ then true
867+ else !(bw(toString(ej.caller))))
868+ then true
869+ else !(bx()))
870+ then true
871+ else by())
872+ then throw("Invalid removeMargin parameters")
873+ else {
874+ let fc = br(toString(ej.caller))
875+ let er = fc._1
876+ let es = fc._2
877+ let et = fc._3
878+ let eu = fc._4
879+ let fd = -(eg)
880+ let fe = bV(er, es, eu, fd)
881+ let ce = fe._1
882+ let cf = fe._2
883+ if ((cf != 0))
884+ then throw("Invalid removed margin amount")
885+ else {
886+ let ff = cL(ce, cf, et)
887+ if (!(bk(ff, aS(), true)))
888+ then throw(((("Too much margin removed: " + toString(ff)) + " < ") + toString(aS())))
889+ else {
890+ let fg = invoke(U(), "unlockNeutrino", [eg, toBase58String(T())], nil)
891+ if ((fg == fg))
892+ then ((dN(toString(ej.caller), er, ce, et, bp(er)) ++ ef(ej.caller, eg)) ++ ei((aQ() - eg)))
893+ else throw("Strict value is not equal to itself.")
894+ }
895+ }
896+ }
897+
898+
899+
900+@Callable(ej)
901+func closePosition () = if (if (if (!(bw(toString(ej.caller))))
902+ then true
903+ else !(bx()))
904+ then true
905+ else by())
906+ then throw("Invalid closePosition parameters")
907+ else {
908+ let fh = cV(toString(ej.caller))
909+ let cH = fh._1
910+ let fi = fh._2
911+ let da = fh._3
912+ let db = fh._4
913+ let bK = fh._5
914+ let bL = fh._6
915+ let de = fh._7
916+ let df = fh._8
917+ let di = fh._9
918+ let cI = fh._10
919+ let dg = fh._11
920+ let dh = fh._12
921+ if ((fi > 0))
922+ then throw("Unable to close position with bad debt")
923+ else {
924+ let fj = ap(db)
925+ let fk = (aQ() - fj)
926+ let fl = if ((0 > fk))
927+ then $Tuple2(0, ap(fk))
928+ else $Tuple2(fk, 0)
929+ let fm = fl._1
930+ let fn = fl._2
931+ let fo = if ((fn > 0))
932+ then {
933+ let fp = invoke(W(), "withdraw", [fn], nil)
934+ if ((fp == fp))
935+ then nil
936+ else throw("Strict value is not equal to itself.")
937+ }
938+ else nil
939+ if ((fo == fo))
940+ then {
941+ let fg = invoke(U(), "unlockNeutrino", [(fj - fn), toBase58String(T())], nil)
942+ if ((fg == fg))
943+ then {
944+ let eK = invoke(X(), "notifyNotional", [toString(ej.caller), 0], nil)
945+ if ((eK == eK))
946+ then (((ee(toString(ej.caller)) ++ dY(bK, bL, de, df, di, dg, dh)) ++ ef(ej.caller, fj)) ++ ei(fm))
947+ else throw("Strict value is not equal to itself.")
948+ }
949+ else throw("Strict value is not equal to itself.")
950+ }
951+ else throw("Strict value is not equal to itself.")
952+ }
953+ }
954+
955+
956+
957+@Callable(ej)
958+func liquidate (bs) = {
959+ let fq = cP(bs, ai)
960+ let ff = if (ct())
961+ then {
962+ let fr = cP(bs, aj)
963+ aq(fq, fr)
964+ }
965+ else fq
966+ if (if (if (if (!(bk(ff, bc(), false)))
967+ then true
968+ else !(bw(bs)))
969+ then true
970+ else !(bx()))
971+ then true
972+ else by())
973+ then throw("Unable to liquidate")
974+ else {
975+ let fs = cV(bs)
976+ let cH = fs._1
977+ let cf = fs._2
978+ let cI = fs._3
979+ let cJ = fs._4
980+ let bK = fs._5
981+ let bL = fs._6
982+ let de = fs._7
983+ let df = fs._8
984+ let di = fs._9
985+ let dd = fs._10
986+ let dg = fs._11
987+ let dh = fs._12
988+ let ft = ao(dd, bd())
989+ let fu = (ft / 2)
990+ let eX = (ft - fu)
991+ let fk = (aQ() - ft)
992+ let fv = if ((0 > fk))
993+ then $Tuple2(0, ap(fk))
994+ else $Tuple2(fk, 0)
995+ let fw = fv._1
996+ let fx = fv._2
997+ let fo = if ((fx > 0))
998+ then {
999+ let fp = invoke(W(), "withdraw", [fx], nil)
1000+ if ((fp == fp))
1001+ then nil
1002+ else throw("Strict value is not equal to itself.")
1003+ }
1004+ else nil
1005+ if ((fo == fo))
1006+ then {
1007+ let fg = invoke(U(), "unlockNeutrino", [(ft - fx), toBase58String(T())], nil)
1008+ if ((fg == fg))
1009+ then {
1010+ let eZ = invoke(W(), "deposit", nil, [AttachedPayment(T(), eX)])
1011+ if ((eZ == eZ))
1012+ then {
1013+ let eK = invoke(X(), "notifyNotional", [bs, 0], nil)
1014+ if ((eK == eK))
1015+ then (((ee(bs) ++ dY(bK, bL, de, df, di, dg, dh)) ++ ef(ej.caller, fu)) ++ ei(fw))
1016+ else throw("Strict value is not equal to itself.")
1017+ }
1018+ else throw("Strict value is not equal to itself.")
1019+ }
1020+ else throw("Strict value is not equal to itself.")
1021+ }
1022+ else throw("Strict value is not equal to itself.")
1023+ }
10391024 }
10401025
10411026
10421027
1043-@Callable(eh)
1044-func view_calcRemainMarginWithFundingPayment (bq) = {
1045- let fD = bp(bq)
1046- let bt = fD._1
1047- let cx = fD._2
1048- let cP = fD._3
1049- let cz = fD._4
1050- let fE = cu(bq, ag)
1051- let cC = fE._1
1052- let cI = fE._2
1053- let fF = bT(bt, cx, cz, cI)
1054- let cc = fF._1
1055- let cd = fF._2
1056- let bY = fF._3
1057- throw(((ai(cc) + ai(bY)) + ai(cS(bq))))
1028+@Callable(ej)
1029+func payFunding () = {
1030+ let fy = aY()
1031+ if (if (if ((fy > lastBlock.timestamp))
1032+ then true
1033+ else !(bx()))
1034+ then true
1035+ else by())
1036+ then throw(((("Invalid funding block timestamp: " + toString(lastBlock.timestamp)) + " < ") + toString(fy)))
1037+ else {
1038+ let fz = cn()
1039+ let fA = dj()
1040+ let fB = (fA - fz)
1041+ let fC = if (if ((bi() == 0))
1042+ then true
1043+ else (bj() == 0))
1044+ then $Tuple2(0, 0)
1045+ else if ((0 > fB))
1046+ then {
1047+ let fD = am(ao(fB, ba()), ag)
1048+ let fE = am(ao(fD, bi()), bj())
1049+ $Tuple2(fD, fE)
1050+ }
1051+ else {
1052+ let fE = am(ao(fB, ba()), ag)
1053+ let fD = am(ao(fE, bj()), bi())
1054+ $Tuple2(fD, fE)
1055+ }
1056+ let fD = fC._1
1057+ let fE = fC._2
1058+ dH((fy + bb()), (bg() + fE), (bh() + fD), am(fE, fz), am(fD, fz))
1059+ }
10581060 }
10591061
10601062
1061-@Verifier(fG)
1062-func fH () = sigVerify(fG.bodyBytes, fG.proofs[0], R())
1063+
1064+@Callable(ej)
1065+func v_get (bs) = {
1066+ let fF = cV(bs)
1067+ let cH = fF._1
1068+ let cI = fF._2
1069+ let cJ = fF._3
1070+ let fG = fF._4
1071+ throw((((ak(cI) + ak(cJ)) + ak(fG)) + ak(cU(bs))))
1072+ }
1073+
1074+
1075+
1076+@Callable(ej)
1077+func view_calcRemainMarginWithFundingPayment (bs) = {
1078+ let fH = br(bs)
1079+ let bv = fH._1
1080+ let cz = fH._2
1081+ let cR = fH._3
1082+ let cB = fH._4
1083+ let fI = cw(bs, ai)
1084+ let cE = fI._1
1085+ let cK = fI._2
1086+ let fJ = bV(bv, cz, cB, cK)
1087+ let ce = fJ._1
1088+ let cf = fJ._2
1089+ let ca = fJ._3
1090+ throw(((ak(ce) + ak(ca)) + ak(cU(bs))))
1091+ }
1092+
1093+
1094+
1095+@Callable(ej)
1096+func forceMoveAsset (bs,eg) = if (if ((addressFromPublicKey(S()) != ej.caller))
1097+ then true
1098+ else (0 > eg))
1099+ then throw("Invalid forceMoveAsset parameters")
1100+ else {
1101+ let fg = invoke(U(), "unlockNeutrino", [eg, toBase58String(T())], nil)
1102+ if ((fg == fg))
1103+ then (ef(addressFromStringValue(bs), eg) ++ ei((aQ() - eg)))
1104+ else throw("Strict value is not equal to itself.")
1105+ }
1106+
1107+
1108+@Verifier(fK)
1109+func fL () = sigVerify(fK.bodyBytes, fK.proofs[0], S())
10631110

github/deemru/w8io/169f3d6 
323.81 ms