tx · 8iqYrrRAKzR2kHBzQx24RtrsoGKdYdqHsf93zjTd5Ajz 3N8G95pEaYEhZ4U3m3UrzpEzwBFn5vvXsZH: -0.06000000 Waves 2022.10.25 14:28 [2287851] smart account 3N8G95pEaYEhZ4U3m3UrzpEzwBFn5vvXsZH > SELF 0.00000000 Waves
{ "type": 13, "id": "8iqYrrRAKzR2kHBzQx24RtrsoGKdYdqHsf93zjTd5Ajz", "fee": 6000000, "feeAssetId": null, "timestamp": 1666697316571, "version": 2, "chainId": 84, "sender": "3N8G95pEaYEhZ4U3m3UrzpEzwBFn5vvXsZH", "senderPublicKey": "Hj6oyH6As5UWo8fZ1K4hPsEY7nxH3MvhBqDD6axiwjXs", "proofs": [ "44eLCC1tgbeU3q9FDZQ9GnQZF376dadX2q2E8VndCYwQ45tBtBsorsuRoQFXWYHR3VSET6ub3GZtE5UsLn8V7n74" ], "script": "base64:BgJxCAISABIAEgMKAQESAwoBARILCgkBAQEBAQEBAQESEAoOAQEBAQEBAQgICAEBAQESAwoBARIFCgMBAQESBgoEAQEBCBIAEgMKAQESABIDCgEIEgASBAoCCAESAwoBARIAEgMKAQgSAwoBCBIDCgEBEgCTAQAJa19vcmFfa2V5AglrX29yYV9rZXkAD2tfb3JhX2Jsb2NrX2tleQIPa19vcmFfYmxvY2tfa2V5AAVrX29yYQIFa19vcmEACWtfYmFsYW5jZQIJa19iYWxhbmNlAA5rX3Bvc2l0aW9uU2l6ZQIOa19wb3NpdGlvblNpemUAEGtfcG9zaXRpb25NYXJnaW4CEGtfcG9zaXRpb25NYXJnaW4AFmtfcG9zaXRpb25PcGVuTm90aW9uYWwCFmtfcG9zaXRpb25PcGVuTm90aW9uYWwALmtfcG9zaXRpb25MYXN0VXBkYXRlZEN1bXVsYXRpdmVQcmVtaXVtRnJhY3Rpb24CEmtfcG9zaXRpb25GcmFjdGlvbgAUa19wb3NpdGlvbkNsb3NlZERhdGUCFGtfcG9zaXRpb25DbG9zZWREYXRlAA1rX2luaXRpYWxp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mQCBRRzaG9ydFByZW1pdW1GcmFjdGlvbgUPdW5kZXJseWluZ1ByaWNlCQACAQkArAICCQCsAgIJAKwCAgkBAXMBBQtsb25nRnVuZGluZwkBAXMBBQxzaG9ydEZ1bmRpbmcJAQFzAQkBEGdldFR3YXBTcG90UHJpY2UACQEBcwEJARJnZXRPcmFjbGVUd2FwUHJpY2UAAQJ0eAEGdmVyaWZ5AAkA9AMDCAUCdHgJYm9keUJ5dGVzCQCRAwIIBQJ0eAZwcm9vZnMAAAkBDmFkbWluUHVibGljS2V5AOZfEiA=", "height": 2287851, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: FJwpmhb5qQTfzWQRFNnhoW6UrJXkRE9scZ5kKN4LqKXx Next: 7fdsf7EVU5bmorExRwuSifrekRHkDh25t9iX9biFML3m Diff:
Old | New | Differences | |
---|---|---|---|
97 | 97 | ||
98 | 98 | let V = "k_manager_address" | |
99 | 99 | ||
100 | - | func W () = valueOrErrorMessage(addressFromString(getStringValue(this, L)), "Coordinator not set") | |
100 | + | let W = "k_nft_manager_address" | |
101 | + | ||
102 | + | func X () = valueOrErrorMessage(addressFromString(getStringValue(this, L)), "Coordinator not set") | |
101 | 103 | ||
102 | 104 | ||
103 | - | func | |
105 | + | func Y () = addressFromString(getStringValue(X(), N)) | |
104 | 106 | ||
105 | 107 | ||
106 | - | func | |
108 | + | func Z () = fromBase58String(getStringValue(X(), O)) | |
107 | 109 | ||
108 | 110 | ||
109 | - | func | |
111 | + | func aa () = fromBase58String(getStringValue(X(), P)) | |
110 | 112 | ||
111 | 113 | ||
112 | - | func | |
114 | + | func ab () = valueOrErrorMessage(addressFromString(getStringValue(X(), Q)), "Quote asset staking not set") | |
113 | 115 | ||
114 | 116 | ||
115 | - | func | |
117 | + | func ac () = valueOrErrorMessage(addressFromString(getStringValue(X(), R)), "Staking not set") | |
116 | 118 | ||
117 | 119 | ||
118 | - | func | |
120 | + | func ad () = valueOrErrorMessage(addressFromString(getStringValue(X(), M)), "Insurance not set") | |
119 | 121 | ||
120 | 122 | ||
121 | - | func | |
123 | + | func ae () = valueOrErrorMessage(addressFromString(getStringValue(X(), S)), "Miner not set") | |
122 | 124 | ||
123 | 125 | ||
124 | - | func | |
126 | + | func af () = valueOrErrorMessage(addressFromString(getStringValue(X(), T)), "Orders not set") | |
125 | 127 | ||
126 | 128 | ||
127 | - | func | |
129 | + | func ag () = valueOrErrorMessage(addressFromString(getStringValue(X(), U)), "Referral not set") | |
128 | 130 | ||
129 | 131 | ||
130 | - | func | |
132 | + | func ah () = valueOrErrorMessage(addressFromString(getStringValue(X(), V)), "Manager not set") | |
131 | 133 | ||
132 | 134 | ||
133 | - | let ah = 1 | |
134 | - | ||
135 | - | let ai = 2 | |
136 | - | ||
137 | - | let aj = 15 | |
138 | - | ||
139 | - | let ak = 15 | |
140 | - | ||
141 | - | let al = 1000 | |
142 | - | ||
143 | - | let am = (1 * (((((10 * 10) * 10) * 10) * 10) * 10)) | |
144 | - | ||
145 | - | let an = (86400 * am) | |
146 | - | ||
147 | - | let ao = 100 | |
148 | - | ||
149 | - | let ap = 1 | |
150 | - | ||
151 | - | let aq = 2 | |
152 | - | ||
153 | - | func ar (as) = (toString(as) + ",") | |
135 | + | func ai () = valueOrErrorMessage(addressFromString(getStringValue(X(), W)), "NFT Manager not set") | |
154 | 136 | ||
155 | 137 | ||
156 | - | func at (as,au) = fraction(as, am, au, HALFEVEN) | |
138 | + | let aj = "k_token_param" | |
139 | + | ||
140 | + | let ak = "k_token_type" | |
141 | + | ||
142 | + | let al = "fee_reduction" | |
143 | + | ||
144 | + | let am = 1 | |
145 | + | ||
146 | + | let an = 2 | |
147 | + | ||
148 | + | let ao = 15 | |
149 | + | ||
150 | + | let ap = 15 | |
151 | + | ||
152 | + | let aq = 1000 | |
153 | + | ||
154 | + | let ar = (1 * (((((10 * 10) * 10) * 10) * 10) * 10)) | |
155 | + | ||
156 | + | let as = (86400 * ar) | |
157 | + | ||
158 | + | let at = 100 | |
159 | + | ||
160 | + | let au = 1 | |
161 | + | ||
162 | + | let av = 2 | |
163 | + | ||
164 | + | func aw (ax) = (toString(ax) + ",") | |
157 | 165 | ||
158 | 166 | ||
159 | - | func | |
167 | + | func ay (ax,az) = fraction(ax, ar, az, HALFEVEN) | |
160 | 168 | ||
161 | 169 | ||
162 | - | func aw (as) = if ((as > 0)) | |
163 | - | then as | |
164 | - | else -(as) | |
170 | + | func aA (ax,az) = fraction(ax, az, ar, HALFEVEN) | |
165 | 171 | ||
166 | 172 | ||
167 | - | func | |
168 | - | then | |
169 | - | else | |
173 | + | func aB (ax) = if ((ax > 0)) | |
174 | + | then ax | |
175 | + | else -(ax) | |
170 | 176 | ||
171 | 177 | ||
172 | - | func ay (az,aA) = ((az + "_") + aA) | |
178 | + | func aC (ax,az) = if ((ax >= az)) | |
179 | + | then ax | |
180 | + | else az | |
173 | 181 | ||
174 | 182 | ||
175 | - | func aB (aC) = { | |
176 | - | func aD (aE,aF) = ((aE + aF) + ",") | |
183 | + | func aD (aE,aF) = ((aE + "_") + aF) | |
177 | 184 | ||
178 | - | let aG = { | |
179 | - | let aH = aC | |
180 | - | let aI = size(aH) | |
181 | - | let aJ = "" | |
182 | - | func aK (aL,aM) = if ((aM >= aI)) | |
183 | - | then aL | |
184 | - | else aD(aL, aH[aM]) | |
185 | 185 | ||
186 | - | func aN (aL,aM) = if ((aM >= aI)) | |
187 | - | then aL | |
186 | + | func aG (aH) = { | |
187 | + | func aI (aJ,aK) = ((aJ + aK) + ",") | |
188 | + | ||
189 | + | let aL = { | |
190 | + | let aM = aH | |
191 | + | let aN = size(aM) | |
192 | + | let aO = "" | |
193 | + | func aP (aQ,aR) = if ((aR >= aN)) | |
194 | + | then aQ | |
195 | + | else aI(aQ, aM[aR]) | |
196 | + | ||
197 | + | func aS (aQ,aR) = if ((aR >= aN)) | |
198 | + | then aQ | |
188 | 199 | else throw("List size exceeds 20") | |
189 | 200 | ||
190 | - | | |
201 | + | aS(aP(aP(aP(aP(aP(aP(aP(aP(aP(aP(aP(aP(aP(aP(aP(aP(aP(aP(aP(aP(aO, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20) | |
191 | 202 | } | |
192 | - | let | |
193 | - | let | |
194 | - | then drop( | |
195 | - | else | |
196 | - | | |
203 | + | let aT = dropRight(aL, 1) | |
204 | + | let aU = if ((take(aT, 1) == ",")) | |
205 | + | then drop(aT, 1) | |
206 | + | else aT | |
207 | + | aU | |
197 | 208 | } | |
198 | 209 | ||
199 | 210 | ||
200 | - | func | |
211 | + | func aV (aW) = split(aW, ",") | |
201 | 212 | ||
202 | 213 | ||
203 | - | func | |
204 | - | then (removeByIndex( | |
205 | - | else ( | |
214 | + | func aX (aH,aY,aZ) = if ((size(aH) > aY)) | |
215 | + | then (removeByIndex(aH, 0) :+ aZ) | |
216 | + | else (aH :+ aZ) | |
206 | 217 | ||
207 | 218 | ||
208 | - | func | |
219 | + | func ba (bb) = valueOrErrorMessage(getInteger(this, bb), ("no value for " + bb)) | |
209 | 220 | ||
210 | 221 | ||
211 | - | func aX () = aV(d) | |
222 | + | func bc (aF,aE) = { | |
223 | + | let aK = valueOrErrorMessage(getString(aF, aE), ("No value for key " + aE)) | |
224 | + | aK | |
225 | + | } | |
212 | 226 | ||
213 | 227 | ||
214 | - | func aY () = aV(l) | |
228 | + | func bd (aF,aE) = { | |
229 | + | let aK = valueOrErrorMessage(getInteger(aF, aE), ("No value for key " + aE)) | |
230 | + | aK | |
231 | + | } | |
215 | 232 | ||
216 | 233 | ||
217 | - | func | |
234 | + | func be () = ba(d) | |
218 | 235 | ||
219 | 236 | ||
220 | - | func | |
237 | + | func bf () = ba(l) | |
221 | 238 | ||
222 | 239 | ||
223 | - | func | |
240 | + | func bg () = ba(n) | |
224 | 241 | ||
225 | 242 | ||
226 | - | func | |
243 | + | func bh () = ba(E) | |
227 | 244 | ||
228 | 245 | ||
229 | - | func | |
246 | + | func bi () = ba(F) | |
230 | 247 | ||
231 | 248 | ||
232 | - | func | |
249 | + | func bj () = ba(G) | |
233 | 250 | ||
234 | 251 | ||
235 | - | func | |
252 | + | func bk () = ba(J) | |
236 | 253 | ||
237 | 254 | ||
238 | - | func | |
255 | + | func bl () = ba(K) | |
239 | 256 | ||
240 | 257 | ||
241 | - | func | |
258 | + | func bm () = ba(B) | |
242 | 259 | ||
243 | 260 | ||
244 | - | func | |
261 | + | func bn () = ba(m) | |
245 | 262 | ||
246 | 263 | ||
247 | - | func | |
264 | + | func bo () = (bn() * ar) | |
248 | 265 | ||
249 | 266 | ||
250 | - | func | |
267 | + | func bp () = (bn() * aq) | |
251 | 268 | ||
252 | 269 | ||
253 | - | func | |
270 | + | func bq () = ba(o) | |
254 | 271 | ||
255 | 272 | ||
256 | - | func | |
273 | + | func br () = ba(p) | |
257 | 274 | ||
258 | 275 | ||
259 | - | func | |
276 | + | func bs () = ba(q) | |
260 | 277 | ||
261 | 278 | ||
262 | - | func | |
279 | + | func bt () = ba(r) | |
263 | 280 | ||
264 | 281 | ||
265 | - | func | |
282 | + | func bu () = ba(s) | |
266 | 283 | ||
267 | 284 | ||
268 | - | func | |
285 | + | func bv () = ba(t) | |
269 | 286 | ||
270 | 287 | ||
271 | - | func | |
288 | + | func bw () = ba(z) | |
272 | 289 | ||
273 | 290 | ||
274 | - | func | |
291 | + | func bx () = ba(A) | |
275 | 292 | ||
276 | 293 | ||
277 | - | func | |
294 | + | func by () = ba(I) | |
278 | 295 | ||
279 | 296 | ||
280 | - | func bv (bw,bx,by) = { | |
281 | - | let bz = (bw - bx) | |
282 | - | if (if (by) | |
283 | - | then (0 > bz) | |
297 | + | func bz () = ba(H) | |
298 | + | ||
299 | + | ||
300 | + | func bA (bB) = valueOrElse(getString(af(), "k_sender"), toString(bB.caller)) | |
301 | + | ||
302 | + | ||
303 | + | func bC (bD,bE,bF) = { | |
304 | + | let bG = (bD - bE) | |
305 | + | if (if (bF) | |
306 | + | then (0 > bG) | |
284 | 307 | else false) | |
285 | 308 | then throw("Invalid margin") | |
286 | - | else if (if (!( | |
287 | - | then ( | |
309 | + | else if (if (!(bF)) | |
310 | + | then (bG >= 0) | |
288 | 311 | else false) | |
289 | 312 | then throw("Invalid margin") | |
290 | 313 | else true | |
291 | 314 | } | |
292 | 315 | ||
293 | 316 | ||
294 | - | func | |
317 | + | func bH (bI) = if ((bI == 0)) | |
295 | 318 | then throw("Should not be called with _positionSize == 0") | |
296 | - | else if (( | |
297 | - | then | |
298 | - | else | |
319 | + | else if ((bI > 0)) | |
320 | + | then bw() | |
321 | + | else bx() | |
299 | 322 | ||
300 | 323 | ||
301 | - | func | |
302 | - | let | |
303 | - | let | |
304 | - | if ($isInstanceOf( | |
324 | + | func bJ (bK) = { | |
325 | + | let bL = getInteger(this, aD(e, bK)) | |
326 | + | let bM = bL | |
327 | + | if ($isInstanceOf(bM, "Int")) | |
305 | 328 | then { | |
306 | - | let | |
307 | - | $Tuple4( | |
329 | + | let bN = bM | |
330 | + | $Tuple4(bN, getIntegerValue(this, aD(f, bK)), getIntegerValue(this, aD(g, bK)), getIntegerValue(this, aD(h, bK))) | |
308 | 331 | } | |
309 | 332 | else $Tuple4(0, 0, 0, 0) | |
310 | 333 | } | |
311 | 334 | ||
312 | 335 | ||
313 | - | func | |
336 | + | func bO (bK) = if ((bJ(bK)._1 == 0)) | |
314 | 337 | then throw("No open position") | |
315 | 338 | else true | |
316 | 339 | ||
317 | 340 | ||
318 | - | func | |
341 | + | func bP () = valueOrElse(getBoolean(this, j), false) | |
319 | 342 | ||
320 | 343 | ||
321 | - | func | |
344 | + | func bQ () = valueOrElse(getBoolean(this, k), false) | |
322 | 345 | ||
323 | 346 | ||
324 | - | func | |
347 | + | func bR (bS,bT,bU) = if (bS) | |
325 | 348 | then { | |
326 | - | let | |
327 | - | if ((0 >= | |
349 | + | let bV = (bi() - bU) | |
350 | + | if ((0 >= bV)) | |
328 | 351 | then throw("Tx lead to base asset reserve <= 0, revert") | |
329 | - | else $Tuple4(( | |
352 | + | else $Tuple4((bh() + bT), bV, (bj() + bU), (bk() + bT)) | |
330 | 353 | } | |
331 | 354 | else { | |
332 | - | let | |
333 | - | if ((0 >= | |
355 | + | let bW = (bh() - bT) | |
356 | + | if ((0 >= bW)) | |
334 | 357 | then throw("Tx lead to base quote reserve <= 0, revert") | |
335 | - | else $Tuple4( | |
358 | + | else $Tuple4(bW, (bi() + bU), (bj() - bU), (bk() - bT)) | |
336 | 359 | } | |
337 | 360 | ||
338 | 361 | ||
339 | - | func | |
340 | - | let | |
341 | - | let | |
342 | - | let | |
343 | - | let | |
344 | - | then ( | |
345 | - | else ( | |
346 | - | let | |
347 | - | let | |
348 | - | let | |
349 | - | then | |
350 | - | else -( | |
351 | - | let | |
352 | - | let | |
353 | - | let | |
354 | - | let | |
355 | - | let | |
356 | - | let | |
357 | - | let | |
358 | - | let | |
359 | - | let | |
360 | - | let | |
361 | - | if (( | |
362 | - | then throw(((((((((((((("Price impact " + toString( | |
363 | - | else $Tuple5( | |
362 | + | func bX (bS,bT) = { | |
363 | + | let bY = bh() | |
364 | + | let bZ = bi() | |
365 | + | let bb = aA(bY, bZ) | |
366 | + | let ca = if (bS) | |
367 | + | then (bY + bT) | |
368 | + | else (bY - bT) | |
369 | + | let cb = ay(bb, ca) | |
370 | + | let cc = aB((cb - bZ)) | |
371 | + | let cd = if (bS) | |
372 | + | then cc | |
373 | + | else -(cc) | |
374 | + | let ce = bR(bS, bT, cc) | |
375 | + | let cf = ce._1 | |
376 | + | let cg = ce._2 | |
377 | + | let ch = ce._3 | |
378 | + | let ci = ce._4 | |
379 | + | let cj = ay(bY, bZ) | |
380 | + | let ck = ay(bT, cc) | |
381 | + | let cl = aB((cj - ck)) | |
382 | + | let cm = (ar - ay(cj, (cj + cl))) | |
383 | + | let cn = bu() | |
384 | + | if ((cm > cn)) | |
385 | + | then throw(((((((((((((("Price impact " + toString(cm)) + " > max price impact ") + toString(cn)) + " before quote asset: ") + toString(bY)) + " before base asset: ") + toString(bZ)) + " quote asset amount to exchange: ") + toString(bT)) + " price before: ") + toString(cj)) + " marketPrice: ") + toString(ck))) | |
386 | + | else $Tuple5(cd, cf, cg, ch, ci) | |
364 | 387 | } | |
365 | 388 | ||
366 | 389 | ||
367 | - | func | |
368 | - | let | |
390 | + | func co (cp,cq,cr,cs) = { | |
391 | + | let ct = if ((cp != 0)) | |
369 | 392 | then { | |
370 | - | let | |
371 | - | | |
393 | + | let cu = bH(cp) | |
394 | + | aA((cu - cr), cp) | |
372 | 395 | } | |
373 | 396 | else 0 | |
374 | - | let | |
375 | - | let | |
376 | - | then $Tuple2(0, | |
377 | - | else $Tuple2( | |
378 | - | let | |
379 | - | let | |
380 | - | $Tuple3( | |
397 | + | let cv = ((cs - ct) + cq) | |
398 | + | let cw = if ((0 > cv)) | |
399 | + | then $Tuple2(0, aB(cv)) | |
400 | + | else $Tuple2(aB(cv), 0) | |
401 | + | let cx = cw._1 | |
402 | + | let cy = cw._2 | |
403 | + | $Tuple3(cx, cy, ct) | |
381 | 404 | } | |
382 | 405 | ||
383 | 406 | ||
384 | - | func | |
385 | - | let | |
386 | - | if (( | |
407 | + | func cz (bS,bU,cA,cB,cC) = { | |
408 | + | let cj = ay(cB, cC) | |
409 | + | if ((bU == 0)) | |
387 | 410 | then throw("Invalid base asset amount") | |
388 | 411 | else { | |
389 | - | let | |
390 | - | let | |
391 | - | then ( | |
392 | - | else ( | |
393 | - | let | |
394 | - | let | |
395 | - | let | |
396 | - | let | |
397 | - | let | |
398 | - | let | |
399 | - | let | |
400 | - | let | |
401 | - | let | |
402 | - | let | |
403 | - | let | |
404 | - | if (if (( | |
405 | - | then | |
412 | + | let bb = aA(cB, cC) | |
413 | + | let cD = if (bS) | |
414 | + | then (cC + bU) | |
415 | + | else (cC - bU) | |
416 | + | let cE = ay(bb, cD) | |
417 | + | let cF = aB((cE - cB)) | |
418 | + | let cn = bu() | |
419 | + | let cG = bR(!(bS), cF, bU) | |
420 | + | let cf = cG._1 | |
421 | + | let cg = cG._2 | |
422 | + | let ch = cG._3 | |
423 | + | let ci = cG._4 | |
424 | + | let ck = ay(cF, bU) | |
425 | + | let cl = aB((cj - ck)) | |
426 | + | let cm = (ar - ay(cj, (cj + cl))) | |
427 | + | if (if ((cm > cn)) | |
428 | + | then cA | |
406 | 429 | else false) | |
407 | - | then throw(((((((((((((("Price impact " + toString( | |
408 | - | else $Tuple8( | |
409 | - | then | |
410 | - | else 0)), ( | |
411 | - | then | |
412 | - | else 0)), | |
430 | + | then throw(((((((((((((("Price impact " + toString(cm)) + " > max price impact ") + toString(cn)) + " before quote asset: ") + toString(cB)) + " before base asset: ") + toString(cC)) + " base asset amount to exchange: ") + toString(bU)) + " price before: ") + toString(cj)) + " market price: ") + toString(ck))) | |
431 | + | else $Tuple8(cF, cf, cg, ch, ci, (bz() - (if (bS) | |
432 | + | then aB(bU) | |
433 | + | else 0)), (by() - (if (!(bS)) | |
434 | + | then aB(bU) | |
435 | + | else 0)), cm) | |
413 | 436 | } | |
414 | 437 | } | |
415 | 438 | ||
416 | 439 | ||
417 | - | func | |
440 | + | func cH (bS,bU,cA) = cz(bS, bU, cA, bh(), bi()) | |
418 | 441 | ||
419 | 442 | ||
420 | - | func | |
421 | - | let | |
422 | - | let | |
423 | - | let | |
424 | - | let | |
425 | - | | |
443 | + | func cI () = { | |
444 | + | let cJ = valueOrErrorMessage(addressFromString(getStringValue(this, c)), "") | |
445 | + | let cK = getStringValue(this, a) | |
446 | + | let cL = getStringValue(this, b) | |
447 | + | let cM = valueOrErrorMessage(getInteger(cJ, cK), ((("Can not get oracle price. Oracle: " + toString(cJ)) + " key: ") + cK)) | |
448 | + | cM | |
426 | 449 | } | |
427 | 450 | ||
428 | 451 | ||
429 | - | func | |
430 | - | let | |
431 | - | let | |
432 | - | let | |
433 | - | let | |
434 | - | if (( | |
435 | - | then throw(((("Price spread " + toString( | |
452 | + | func cN (cB,cC) = { | |
453 | + | let cO = cI() | |
454 | + | let cP = ay(cB, cC) | |
455 | + | let cQ = ay((cO + cP), (2 * ar)) | |
456 | + | let cR = ay(aB((cO - cP)), cQ) | |
457 | + | if ((cR > bv())) | |
458 | + | then throw(((("Price spread " + toString(cR)) + " > max price spread ") + toString(bv()))) | |
436 | 459 | else true | |
437 | 460 | } | |
438 | 461 | ||
439 | 462 | ||
440 | - | func | |
441 | - | let | |
442 | - | let | |
443 | - | | |
463 | + | func cS () = { | |
464 | + | let cB = bh() | |
465 | + | let cC = bi() | |
466 | + | ay(cB, cC) | |
444 | 467 | } | |
445 | 468 | ||
446 | 469 | ||
447 | - | func | |
448 | - | let | |
449 | - | let | |
450 | - | ( | |
470 | + | func cT () = { | |
471 | + | let cO = cI() | |
472 | + | let cU = cS() | |
473 | + | (ay(aB((cO - cU)), cO) > bt()) | |
451 | 474 | } | |
452 | 475 | ||
453 | 476 | ||
454 | - | func | |
455 | - | let | |
456 | - | let | |
457 | - | let | |
477 | + | func cV (bI,cW,cB,cC) = { | |
478 | + | let cX = aB(bI) | |
479 | + | let cY = (0 > bI) | |
480 | + | let cZ = if ((cW == au)) | |
458 | 481 | then { | |
459 | - | let | |
460 | - | let | |
461 | - | let | |
462 | - | let | |
463 | - | let | |
464 | - | | |
482 | + | let da = cz(!(cY), cX, false, cB, cC) | |
483 | + | let db = da._1 | |
484 | + | let dc = da._2 | |
485 | + | let dd = da._3 | |
486 | + | let de = da._4 | |
487 | + | db | |
465 | 488 | } | |
466 | - | else | |
467 | - | | |
489 | + | else aA(cX, cI()) | |
490 | + | cZ | |
468 | 491 | } | |
469 | 492 | ||
470 | 493 | ||
471 | - | func | |
494 | + | func df (bI,dg,cB,cC,cW) = if ((bI == 0)) | |
472 | 495 | then throw("Invalid position size") | |
473 | 496 | else { | |
474 | - | let | |
475 | - | let | |
476 | - | let | |
477 | - | then ( | |
478 | - | else ( | |
479 | - | $Tuple2( | |
497 | + | let cY = (0 > bI) | |
498 | + | let cZ = cV(bI, cW, cB, cC) | |
499 | + | let dh = if (cY) | |
500 | + | then (dg - cZ) | |
501 | + | else (cZ - dg) | |
502 | + | $Tuple2(cZ, dh) | |
480 | 503 | } | |
481 | 504 | ||
482 | 505 | ||
483 | - | func | |
484 | - | let | |
485 | - | let | |
486 | - | let | |
487 | - | let | |
488 | - | let | |
489 | - | | |
506 | + | func di (bK,cW) = { | |
507 | + | let dj = bJ(bK) | |
508 | + | let bN = dj._1 | |
509 | + | let dk = dj._2 | |
510 | + | let dl = dj._3 | |
511 | + | let dm = dj._4 | |
512 | + | df(bN, dl, bh(), bi(), cW) | |
490 | 513 | } | |
491 | 514 | ||
492 | 515 | ||
493 | - | func | |
516 | + | func dn (do,dp,dq) = ay((do - dp), dq) | |
494 | 517 | ||
495 | 518 | ||
496 | - | func | |
497 | - | let | |
498 | - | let | |
499 | - | let | |
500 | - | let | |
501 | - | let | |
502 | - | let | |
503 | - | let | |
504 | - | let | |
505 | - | let | |
506 | - | let | |
507 | - | let | |
508 | - | | |
519 | + | func dr (bK,cW) = { | |
520 | + | let ds = bJ(bK) | |
521 | + | let bN = ds._1 | |
522 | + | let dk = ds._2 | |
523 | + | let dt = ds._3 | |
524 | + | let dm = ds._4 | |
525 | + | let du = di(bK, cW) | |
526 | + | let cZ = du._1 | |
527 | + | let dh = du._2 | |
528 | + | let dv = co(bN, dk, dm, dh) | |
529 | + | let cx = dv._1 | |
530 | + | let cy = dv._2 | |
531 | + | dn(cx, cy, cZ) | |
509 | 532 | } | |
510 | 533 | ||
511 | 534 | ||
512 | - | func | |
535 | + | func dw (bK) = dr(bK, au) | |
513 | 536 | ||
514 | 537 | ||
515 | - | func | |
516 | - | let | |
517 | - | let | |
518 | - | let | |
519 | - | let | |
520 | - | let | |
521 | - | if (( | |
522 | - | then | |
538 | + | func dx (bK,bI) = { | |
539 | + | let dy = aC(bs(), (ar - ay(dw(bK), bq()))) | |
540 | + | let dz = aA(aB(bI), dy) | |
541 | + | let dA = cH((bI > 0), dz, false) | |
542 | + | let dB = dA._1 | |
543 | + | let cm = dA._8 | |
544 | + | if ((bu() > cm)) | |
545 | + | then dB | |
523 | 546 | else { | |
524 | - | let | |
525 | - | let | |
526 | - | | |
547 | + | let dC = aA(aB(bI), bs()) | |
548 | + | let dD = cH((bI > 0), dC, false)._1 | |
549 | + | dD | |
527 | 550 | } | |
528 | 551 | } | |
529 | 552 | ||
530 | 553 | ||
531 | - | func | |
532 | - | let | |
533 | - | let | |
534 | - | let | |
535 | - | let | |
536 | - | let | |
537 | - | let | |
538 | - | let | |
539 | - | let | |
540 | - | let | |
541 | - | let | |
542 | - | let | |
543 | - | let | |
544 | - | let | |
545 | - | let | |
546 | - | let | |
547 | - | let | |
548 | - | let | |
549 | - | let | |
550 | - | let | |
551 | - | let | |
552 | - | let | |
553 | - | $Tuple12( | |
554 | + | func dE (bK,cA) = { | |
555 | + | let dF = bJ(bK) | |
556 | + | let bN = dF._1 | |
557 | + | let dk = dF._2 | |
558 | + | let dl = dF._3 | |
559 | + | let dm = dF._4 | |
560 | + | let dh = di(bK, au)._2 | |
561 | + | let dG = co(bN, dk, dm, dh) | |
562 | + | let cx = dG._1 | |
563 | + | let cy = dG._2 | |
564 | + | let dC = -(bN) | |
565 | + | let dH = dh | |
566 | + | let dI = -(cx) | |
567 | + | let dJ = cH((bN > 0), aB(bN), cA) | |
568 | + | let dD = dJ._1 | |
569 | + | let ca = dJ._2 | |
570 | + | let cb = dJ._3 | |
571 | + | let dK = dJ._4 | |
572 | + | let dL = dJ._5 | |
573 | + | let dM = dJ._6 | |
574 | + | let dN = dJ._7 | |
575 | + | let dO = (bl() - dl) | |
576 | + | $Tuple12(dC, cy, dH, dI, ca, cb, dK, dL, dO, dD, dM, dN) | |
554 | 577 | } | |
555 | 578 | ||
556 | 579 | ||
557 | - | func | |
558 | - | let | |
559 | - | let | |
560 | - | let | |
561 | - | let | |
562 | - | func | |
563 | - | then ( | |
564 | - | else | |
580 | + | func dP () = { | |
581 | + | let dQ = ((lastBlock.timestamp / 1000) / 60) | |
582 | + | let dR = (dQ - ao) | |
583 | + | let dS = valueOrElse(getString(this, u), "") | |
584 | + | let dT = split(dS, ",") | |
585 | + | func dU (aJ,dV) = if ((dR >= parseIntValue(dV))) | |
586 | + | then (aJ :+ parseIntValue(dV)) | |
587 | + | else aJ | |
565 | 588 | ||
566 | - | let | |
567 | - | let | |
568 | - | let | |
569 | - | let | |
570 | - | func | |
571 | - | then | |
572 | - | else | |
589 | + | let dW = { | |
590 | + | let aM = dT | |
591 | + | let aN = size(aM) | |
592 | + | let aO = nil | |
593 | + | func aP (aQ,aR) = if ((aR >= aN)) | |
594 | + | then aQ | |
595 | + | else dU(aQ, aM[aR]) | |
573 | 596 | ||
574 | - | func | |
575 | - | then | |
597 | + | func aS (aQ,aR) = if ((aR >= aN)) | |
598 | + | then aQ | |
576 | 599 | else throw("List size exceeds 20") | |
577 | 600 | ||
578 | - | | |
601 | + | aS(aP(aP(aP(aP(aP(aP(aP(aP(aP(aP(aP(aP(aP(aP(aP(aP(aP(aP(aP(aP(aO, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20) | |
579 | 602 | } | |
580 | - | let | |
581 | - | then max( | |
582 | - | else parseIntValue( | |
583 | - | let | |
584 | - | let | |
585 | - | let | |
586 | - | let | |
587 | - | let | |
588 | - | let | |
589 | - | let | |
590 | - | (( | |
603 | + | let dX = if ((size(dW) > 0)) | |
604 | + | then max(dW) | |
605 | + | else parseIntValue(dT[0]) | |
606 | + | let dY = valueOrElse(getInteger(this, v), 0) | |
607 | + | let dZ = valueOrElse(getInteger(this, ((w + "_") + toString(dY))), 0) | |
608 | + | let ea = valueOrElse(getInteger(this, ((x + "_") + toString(dY))), 0) | |
609 | + | let eb = (dZ + ((dQ - dY) * ea)) | |
610 | + | let ec = valueOrElse(getInteger(this, ((w + "_") + toString(dX))), 0) | |
611 | + | let ed = valueOrElse(getInteger(this, ((x + "_") + toString(dX))), 0) | |
612 | + | let ee = (ec + ((dR - dX) * ed)) | |
613 | + | ((eb - ee) / ao) | |
591 | 614 | } | |
592 | 615 | ||
593 | 616 | ||
594 | - | func | |
595 | - | let | |
596 | - | let | |
597 | - | let | |
598 | - | let | |
599 | - | let | |
600 | - | let | |
601 | - | $Tuple2( | |
617 | + | func ef (eg) = { | |
618 | + | let bI = bj() | |
619 | + | let eh = (bI > 0) | |
620 | + | let ei = cH(eh, aB(bI), false)._1 | |
621 | + | let ej = bi() | |
622 | + | let ek = aA(ej, eg) | |
623 | + | let el = df(bI, ei, ek, ej, au)._2 | |
624 | + | $Tuple2(ek, el) | |
602 | 625 | } | |
603 | 626 | ||
604 | 627 | ||
605 | - | func | |
606 | - | let | |
607 | - | let | |
608 | - | let | |
609 | - | if (if (( | |
628 | + | func em () = { | |
629 | + | let en = cI() | |
630 | + | let eo = dP() | |
631 | + | let ep = (eo - en) | |
632 | + | if (if ((by() == 0)) | |
610 | 633 | then true | |
611 | - | else ( | |
634 | + | else (bz() == 0)) | |
612 | 635 | then $Tuple2(0, 0) | |
613 | - | else if ((0 > | |
636 | + | else if ((0 > ep)) | |
614 | 637 | then { | |
615 | - | let | |
616 | - | let | |
617 | - | $Tuple2( | |
638 | + | let eq = ay(aA(ep, bo()), as) | |
639 | + | let er = ay(aA(eq, by()), bz()) | |
640 | + | $Tuple2(eq, er) | |
618 | 641 | } | |
619 | 642 | else { | |
620 | - | let | |
621 | - | let | |
622 | - | $Tuple2( | |
643 | + | let er = ay(aA(ep, bo()), as) | |
644 | + | let eq = ay(aA(er, bz()), by()) | |
645 | + | $Tuple2(eq, er) | |
623 | 646 | } | |
624 | 647 | } | |
625 | 648 | ||
626 | 649 | ||
627 | - | func el (em,en,eo,ep,eq,er,es,et,eu) = [IntegerEntry(n, em), IntegerEntry(o, en), IntegerEntry(p, eo), IntegerEntry(m, ep), IntegerEntry(l, eq), IntegerEntry(r, er), IntegerEntry(s, es), IntegerEntry(q, et), IntegerEntry(t, eu)] | |
650 | + | func es (bB) = { | |
651 | + | let et = bf() | |
652 | + | let eu = if ((size(bB.payments) > 1)) | |
653 | + | then { | |
654 | + | let ev = toBase58String(valueOrErrorMessage(bB.payments[1].assetId, "Invalid attached artifact")) | |
655 | + | let ew = bc(ai(), aD(ak, ev)) | |
656 | + | if ((ew == al)) | |
657 | + | then { | |
658 | + | let ex = bd(ai(), aD(aj, ev)) | |
659 | + | let ey = aA(et, ex) | |
660 | + | $Tuple2(ey, true) | |
661 | + | } | |
662 | + | else throw("Invalid attached artifact") | |
663 | + | } | |
664 | + | else $Tuple2(et, false) | |
665 | + | let ey = eu._1 | |
666 | + | let ez = eu._2 | |
667 | + | $Tuple2(ey, ez) | |
668 | + | } | |
628 | 669 | ||
629 | 670 | ||
630 | - | func | |
671 | + | func eA (eB,eC,eD,eE,eF,eG,eH,eI,eJ) = [IntegerEntry(n, eB), IntegerEntry(o, eC), IntegerEntry(p, eD), IntegerEntry(m, eE), IntegerEntry(l, eF), IntegerEntry(r, eG), IntegerEntry(s, eH), IntegerEntry(q, eI), IntegerEntry(t, eJ)] | |
631 | 672 | ||
632 | 673 | ||
633 | - | func | |
674 | + | func eK (eL,eM,eN,eO,eP) = [IntegerEntry(B, eL), IntegerEntry(z, eM), IntegerEntry(A, eN), IntegerEntry(C, eO), IntegerEntry(D, eP)] | |
634 | 675 | ||
635 | 676 | ||
636 | - | func eF (eG) = { | |
637 | - | let dJ = ((lastBlock.timestamp / 1000) / 60) | |
638 | - | let eH = valueOrElse(getInteger(this, v), 0) | |
639 | - | if ((eH > dJ)) | |
677 | + | func eQ (aF,eR,eS,eT,cu) = [IntegerEntry(aD(e, aF), eR), IntegerEntry(aD(f, aF), eS), IntegerEntry(aD(g, aF), eT), IntegerEntry(aD(h, aF), cu)] | |
678 | + | ||
679 | + | ||
680 | + | func eU (eV) = { | |
681 | + | let dQ = ((lastBlock.timestamp / 1000) / 60) | |
682 | + | let eW = valueOrElse(getInteger(this, v), 0) | |
683 | + | if ((eW > dQ)) | |
640 | 684 | then throw("TWAP out-of-order") | |
641 | 685 | else { | |
642 | - | let | |
643 | - | then | |
644 | - | else | |
645 | - | if (( | |
686 | + | let dY = if ((eW == 0)) | |
687 | + | then dQ | |
688 | + | else eW | |
689 | + | if ((dQ > eW)) | |
646 | 690 | then { | |
647 | - | let | |
648 | - | let | |
649 | - | let | |
650 | - | let | |
651 | - | [IntegerEntry( | |
691 | + | let eX = valueOrElse(getInteger(this, ((w + "_") + toString(eW))), 0) | |
692 | + | let eY = valueOrElse(getInteger(this, ((x + "_") + toString(eW))), eV) | |
693 | + | let eZ = (eX + ((dQ - dY) * eY)) | |
694 | + | let dT = aX(aV(valueOrElse(getString(this, u), "")), ao, toString(dQ)) | |
695 | + | [IntegerEntry(aD(w, toString(dQ)), eZ), IntegerEntry(aD(x, toString(dQ)), eV), IntegerEntry(aD(y, toString(dQ)), eW), IntegerEntry(v, dQ), StringEntry(u, aG(dT))] | |
652 | 696 | } | |
653 | 697 | else { | |
654 | - | let | |
655 | - | let | |
656 | - | let | |
657 | - | let | |
658 | - | [IntegerEntry( | |
698 | + | let fa = valueOrElse(getInteger(this, aD(y, toString(dQ))), 0) | |
699 | + | let eX = valueOrElse(getInteger(this, aD(w, toString(fa))), 0) | |
700 | + | let eY = valueOrElse(getInteger(this, aD(x, toString(fa))), eV) | |
701 | + | let eZ = (eX + ((dQ - fa) * eY)) | |
702 | + | [IntegerEntry(aD(w, toString(dQ)), eZ), IntegerEntry(aD(x, toString(dQ)), eV)] | |
659 | 703 | } | |
660 | 704 | } | |
661 | 705 | } | |
662 | 706 | ||
663 | 707 | ||
664 | - | func | |
708 | + | func fb (bY,bZ) = [IntegerEntry(E, bY), IntegerEntry(F, bZ)] | |
665 | 709 | ||
666 | 710 | ||
667 | - | func | |
668 | - | then throw(((((("Invalid AMM state data: " + toString( | |
669 | - | else (( | |
711 | + | func fc (bY,bZ,fd,fe,ff,fg,fh) = if (((fg - fh) != fd)) | |
712 | + | then throw(((((("Invalid AMM state data: " + toString(fg)) + " + ") + toString(fh)) + " != ") + toString(fd))) | |
713 | + | else ((fb(bY, bZ) ++ [IntegerEntry(G, fd), IntegerEntry(J, fe), IntegerEntry(K, ff), IntegerEntry(H, fg), IntegerEntry(I, fh)]) ++ eU(ay(bY, bZ))) | |
670 | 714 | ||
671 | 715 | ||
672 | - | func | |
716 | + | func fi (aF) = [DeleteEntry(aD(e, aF)), DeleteEntry(aD(f, aF)), DeleteEntry(aD(g, aF)), DeleteEntry(aD(h, aF)), IntegerEntry(aD(i, aF), lastBlock.timestamp)] | |
673 | 717 | ||
674 | 718 | ||
675 | - | func | |
676 | - | let | |
677 | - | if (( | |
678 | - | then throw(((("Unable to withdraw " + toString( | |
679 | - | else [ScriptTransfer( | |
719 | + | func fj (aF,fk) = { | |
720 | + | let fl = assetBalance(this, aa()) | |
721 | + | if ((fk > fl)) | |
722 | + | then throw(((("Unable to withdraw " + toString(fk)) + " from contract balance ") + toString(fl))) | |
723 | + | else [ScriptTransfer(aF, fk, aa())] | |
680 | 724 | } | |
681 | 725 | ||
682 | 726 | ||
683 | - | func | |
727 | + | func fm (bB) = if ((0 > bB)) | |
684 | 728 | then throw("Balance") | |
685 | - | else [IntegerEntry(d, | |
729 | + | else [IntegerEntry(d, bB)] | |
686 | 730 | ||
687 | 731 | ||
688 | - | func | |
732 | + | func fn (bB) = [ScriptTransfer(ac(), bB, aa())] | |
689 | 733 | ||
690 | 734 | ||
691 | - | @Callable(bu) | |
692 | - | func pause () = if ((bu.caller != X())) | |
735 | + | func fo (fp,bB) = if (fp) | |
736 | + | then [Burn(valueOrErrorMessage(bB.payments[1].assetId, "Invalid artifact"), 1)] | |
737 | + | else nil | |
738 | + | ||
739 | + | ||
740 | + | @Callable(bB) | |
741 | + | func pause () = if ((bB.caller != Y())) | |
693 | 742 | then throw("Invalid togglePause params") | |
694 | 743 | else [BooleanEntry(k, true)] | |
695 | 744 | ||
696 | 745 | ||
697 | 746 | ||
698 | - | @Callable( | |
699 | - | func unpause () = if (( | |
747 | + | @Callable(bB) | |
748 | + | func unpause () = if ((bB.caller != Y())) | |
700 | 749 | then throw("Invalid togglePause params") | |
701 | 750 | else [BooleanEntry(k, false)] | |
702 | 751 | ||
703 | 752 | ||
704 | 753 | ||
705 | - | @Callable( | |
706 | - | func addLiquidity ( | |
754 | + | @Callable(bB) | |
755 | + | func addLiquidity (bT) = if (if ((bB.caller != Y())) | |
707 | 756 | then true | |
708 | - | else (0 >= | |
757 | + | else (0 >= bT)) | |
709 | 758 | then throw("Invalid addLiquidity params") | |
710 | 759 | else { | |
711 | - | let | |
712 | - | let | |
713 | - | let | |
714 | - | let | |
715 | - | let | |
716 | - | let | |
717 | - | | |
760 | + | let bY = bh() | |
761 | + | let bZ = bi() | |
762 | + | let eV = ay(bY, bZ) | |
763 | + | let fq = ay(bT, eV) | |
764 | + | let fr = (bY + bT) | |
765 | + | let fs = (bZ + fq) | |
766 | + | fb(fr, fs) | |
718 | 767 | } | |
719 | 768 | ||
720 | 769 | ||
721 | 770 | ||
722 | - | @Callable( | |
723 | - | func removeLiquidity ( | |
771 | + | @Callable(bB) | |
772 | + | func removeLiquidity (bT) = if (if ((bB.caller != Y())) | |
724 | 773 | then true | |
725 | - | else (0 >= | |
774 | + | else (0 >= bT)) | |
726 | 775 | then throw("Invalid removeLiquidity params") | |
727 | 776 | else { | |
728 | - | let | |
729 | - | let | |
730 | - | let | |
731 | - | let | |
732 | - | let | |
733 | - | let | |
734 | - | | |
777 | + | let bY = bh() | |
778 | + | let bZ = bi() | |
779 | + | let eV = ay(bY, bZ) | |
780 | + | let ft = ay(bT, eV) | |
781 | + | let fr = (bY - bT) | |
782 | + | let fs = (bZ - ft) | |
783 | + | fb(fr, fs) | |
735 | 784 | } | |
736 | 785 | ||
737 | 786 | ||
738 | 787 | ||
739 | - | @Callable( | |
740 | - | func changeSettings ( | |
788 | + | @Callable(bB) | |
789 | + | func changeSettings (eB,eC,eD,eE,eF,eG,eH,eI,eJ) = if ((bB.caller != Y())) | |
741 | 790 | then throw("Invalid changeSettings params") | |
742 | - | else | |
791 | + | else eA(eB, eC, eD, eE, eF, eG, eH, eI, eJ) | |
743 | 792 | ||
744 | 793 | ||
745 | 794 | ||
746 | - | @Callable( | |
747 | - | func initialize ( | |
795 | + | @Callable(bB) | |
796 | + | func initialize (bY,bZ,eE,eB,eC,eD,eF,fu,fv,fw,eG,eH,eI,eJ) = if (if (if (if (if (if (if (if (if (if (if (if ((0 >= bY)) | |
748 | 797 | then true | |
749 | - | else (0 >= | |
798 | + | else (0 >= bZ)) | |
750 | 799 | then true | |
751 | - | else (0 >= | |
800 | + | else (0 >= eE)) | |
752 | 801 | then true | |
753 | - | else (0 >= | |
802 | + | else (0 >= eB)) | |
754 | 803 | then true | |
755 | - | else (0 >= | |
804 | + | else (0 >= eC)) | |
756 | 805 | then true | |
757 | - | else (0 >= | |
806 | + | else (0 >= eD)) | |
758 | 807 | then true | |
759 | - | else (0 >= | |
808 | + | else (0 >= eF)) | |
760 | 809 | then true | |
761 | - | else (0 >= | |
810 | + | else (0 >= eG)) | |
762 | 811 | then true | |
763 | - | else (0 >= | |
812 | + | else (0 >= eH)) | |
764 | 813 | then true | |
765 | - | else (0 >= | |
814 | + | else (0 >= eI)) | |
766 | 815 | then true | |
767 | - | else (0 >= | |
816 | + | else (0 >= eJ)) | |
768 | 817 | then true | |
769 | - | else | |
818 | + | else bP()) | |
770 | 819 | then throw("Invalid initialize parameters") | |
771 | - | else (((( | |
820 | + | else ((((fc(bY, bZ, 0, 0, 0, 0, 0) ++ eA(eB, eC, eD, eE, eF, eG, eH, eI, eJ)) ++ eK((lastBlock.timestamp + eE), 0, 0, 0, 0)) ++ fm(0)) ++ [BooleanEntry(j, true), StringEntry(c, fu), StringEntry(a, fv), StringEntry(L, fw)]) | |
772 | 821 | ||
773 | 822 | ||
774 | 823 | ||
775 | - | @Callable( | |
776 | - | func setInitMarginRatio ( | |
824 | + | @Callable(bB) | |
825 | + | func setInitMarginRatio (eB) = if (if ((0 >= eB)) | |
777 | 826 | then true | |
778 | - | else !( | |
827 | + | else !(bP())) | |
779 | 828 | then throw("Invalid setInitMarginRatio parameters") | |
780 | - | else | |
829 | + | else eA(eB, bq(), br(), bn(), bf(), bt(), bu(), bs(), bv()) | |
781 | 830 | ||
782 | 831 | ||
783 | 832 | ||
784 | - | @Callable( | |
785 | - | func decreasePosition ( | |
833 | + | @Callable(bB) | |
834 | + | func decreasePosition (fk,fx,fy) = if (if (if (if (if ((0 >= fk)) | |
786 | 835 | then true | |
787 | - | else !( | |
836 | + | else !(bP())) | |
788 | 837 | then true | |
789 | - | else !( | |
838 | + | else !(bC(ay(ar, fx), bg(), true))) | |
790 | 839 | then true | |
791 | - | else !( | |
840 | + | else !(bO(toString(bB.caller)))) | |
792 | 841 | then true | |
793 | - | else | |
842 | + | else bQ()) | |
794 | 843 | then throw("Invalid decreasePosition parameters") | |
795 | 844 | else { | |
796 | - | let | |
797 | - | let | |
798 | - | let | |
799 | - | let | |
800 | - | let | |
801 | - | let | |
802 | - | then | |
803 | - | else | |
804 | - | let | |
805 | - | let | |
806 | - | let | |
807 | - | let | |
808 | - | let | |
809 | - | let | |
845 | + | let fz = bJ(toString(bB.caller)) | |
846 | + | let fA = fz._1 | |
847 | + | let fB = fz._2 | |
848 | + | let fC = fz._3 | |
849 | + | let fD = fz._4 | |
850 | + | let fE = if ((fA > 0)) | |
851 | + | then an | |
852 | + | else am | |
853 | + | let fF = (fE == am) | |
854 | + | let fG = aA(fk, fx) | |
855 | + | let fH = di(toString(bB.caller), au) | |
856 | + | let fI = fH._1 | |
857 | + | let dh = fH._2 | |
858 | + | let fJ = if ((fI > fG)) | |
810 | 859 | then { | |
811 | - | let | |
812 | - | let | |
813 | - | let | |
814 | - | let | |
815 | - | let | |
816 | - | let | |
817 | - | let | |
818 | - | if (if (( | |
819 | - | then ( | |
860 | + | let fK = bX(fF, fG) | |
861 | + | let dC = fK._1 | |
862 | + | let ca = fK._2 | |
863 | + | let cb = fK._3 | |
864 | + | let dK = fK._4 | |
865 | + | let dL = fK._5 | |
866 | + | let fL = aB(dC) | |
867 | + | if (if ((fy != 0)) | |
868 | + | then (fy > fL) | |
820 | 869 | else false) | |
821 | - | then throw(((("Too little base asset exchanged, got " + toString( | |
870 | + | then throw(((("Too little base asset exchanged, got " + toString(fL)) + " expected ") + toString(fy))) | |
822 | 871 | else { | |
823 | - | let | |
824 | - | let | |
825 | - | let | |
826 | - | let | |
827 | - | let | |
828 | - | let | |
829 | - | let | |
830 | - | let | |
831 | - | then (( | |
832 | - | else (( | |
833 | - | let | |
834 | - | $Tuple11( | |
835 | - | then | |
836 | - | else 0)), ( | |
837 | - | then | |
872 | + | let dH = ay(aA(dh, fL), aB(fA)) | |
873 | + | let fM = co(fA, fB, fD, dH) | |
874 | + | let cx = fM._1 | |
875 | + | let cy = fM._2 | |
876 | + | let ct = fM._3 | |
877 | + | let dD = fG | |
878 | + | let fN = (dh - dH) | |
879 | + | let fO = if ((fA > 0)) | |
880 | + | then ((fI - dD) - fN) | |
881 | + | else ((fN + fI) - dD) | |
882 | + | let fP = (fA + dC) | |
883 | + | $Tuple11(fP, cx, aB(fO), bH(fP), cb, ca, dK, dL, (bl() - fG), (bz() - (if ((fP > 0)) | |
884 | + | then aB(dC) | |
885 | + | else 0)), (by() - (if ((0 > fP)) | |
886 | + | then aB(dC) | |
838 | 887 | else 0))) | |
839 | 888 | } | |
840 | 889 | } | |
841 | 890 | else throw("Close position first") | |
842 | - | let | |
843 | - | let | |
844 | - | let | |
845 | - | let | |
846 | - | let | |
847 | - | let | |
848 | - | let | |
849 | - | let | |
850 | - | let | |
851 | - | let | |
852 | - | let | |
853 | - | let | |
854 | - | if (( | |
855 | - | then ( | |
891 | + | let fP = fJ._1 | |
892 | + | let fQ = fJ._2 | |
893 | + | let fR = fJ._3 | |
894 | + | let fS = fJ._4 | |
895 | + | let cb = fJ._5 | |
896 | + | let ca = fJ._6 | |
897 | + | let dK = fJ._7 | |
898 | + | let dL = fJ._8 | |
899 | + | let dO = fJ._9 | |
900 | + | let dM = fJ._10 | |
901 | + | let dN = fJ._11 | |
902 | + | let fT = invoke(ae(), "notifyNotional", [toString(bB.caller), fR], nil) | |
903 | + | if ((fT == fT)) | |
904 | + | then (eQ(toString(bB.caller), fP, fQ, fR, fS) ++ fc(ca, cb, dK, dL, dO, dM, dN)) | |
856 | 905 | else throw("Strict value is not equal to itself.") | |
857 | 906 | } | |
858 | 907 | ||
859 | 908 | ||
860 | 909 | ||
861 | - | @Callable( | |
862 | - | func increasePosition ( | |
863 | - | let | |
864 | - | if (if (if (if (if (if (if (( | |
865 | - | then ( | |
910 | + | @Callable(bB) | |
911 | + | func increasePosition (fE,fx,fy,fU) = { | |
912 | + | let fV = bB.payments[0].amount | |
913 | + | if (if (if (if (if (if (if ((fE != am)) | |
914 | + | then (fE != an) | |
866 | 915 | else false) | |
867 | 916 | then true | |
868 | - | else (0 >= | |
917 | + | else (0 >= fV)) | |
869 | 918 | then true | |
870 | - | else !( | |
919 | + | else !(bP())) | |
871 | 920 | then true | |
872 | - | else ( | |
921 | + | else (bB.payments[0].assetId != aa())) | |
873 | 922 | then true | |
874 | - | else !( | |
923 | + | else !(bC(ay(ar, fx), bg(), true))) | |
875 | 924 | then true | |
876 | - | else | |
925 | + | else bQ()) | |
877 | 926 | then throw("Invalid increasePosition parameters") | |
878 | 927 | else { | |
879 | - | let bD = toString(bu.caller) | |
880 | - | let fF = av(fE, aY()) | |
881 | - | let fG = invoke(af(), "acceptPaymentWithLink", [bD, fD], [AttachedPayment(Z(), fF)]) | |
882 | - | if ((fG == fG)) | |
928 | + | let bK = toString(bB.caller) | |
929 | + | let et = bf() | |
930 | + | let fW = es(bB) | |
931 | + | let ey = fW._1 | |
932 | + | let ez = fW._2 | |
933 | + | let fX = aA(fV, ey) | |
934 | + | let fY = invoke(ag(), "acceptPaymentWithLink", [bK, fU], [AttachedPayment(aa(), fX)]) | |
935 | + | if ((fY == fY)) | |
883 | 936 | then { | |
884 | - | let | |
885 | - | let | |
886 | - | if ($isInstanceOf( | |
937 | + | let fZ = { | |
938 | + | let bM = fY | |
939 | + | if ($isInstanceOf(bM, "Int")) | |
887 | 940 | then { | |
888 | - | let | |
889 | - | | |
941 | + | let ga = bM | |
942 | + | ga | |
890 | 943 | } | |
891 | 944 | else throw("Invalid referrerFee") | |
892 | 945 | } | |
893 | - | let | |
894 | - | let | |
895 | - | let | |
896 | - | let | |
897 | - | let | |
898 | - | let | |
899 | - | let | |
900 | - | let | |
901 | - | let | |
902 | - | then ( | |
903 | - | else ( | |
904 | - | let | |
905 | - | then | |
946 | + | let fk = (fV - fX) | |
947 | + | let gb = (fX - fZ) | |
948 | + | let gc = bJ(bK) | |
949 | + | let fA = gc._1 | |
950 | + | let fB = gc._2 | |
951 | + | let fC = gc._3 | |
952 | + | let fD = gc._4 | |
953 | + | let gd = (fA == 0) | |
954 | + | let ge = if ((fA > 0)) | |
955 | + | then (fE == am) | |
956 | + | else (fE == an) | |
957 | + | let gf = if (!(gd)) | |
958 | + | then ge | |
906 | 959 | else false | |
907 | - | let | |
908 | - | let | |
960 | + | let fF = (fE == am) | |
961 | + | let gg = if (if (gd) | |
909 | 962 | then true | |
910 | - | else | |
963 | + | else gf) | |
911 | 964 | then { | |
912 | - | let | |
913 | - | let | |
914 | - | let | |
915 | - | let | |
916 | - | let | |
917 | - | let | |
918 | - | let | |
919 | - | if (if (( | |
920 | - | then ( | |
965 | + | let fG = aA(fk, fx) | |
966 | + | let gh = bX(fF, fG) | |
967 | + | let cd = gh._1 | |
968 | + | let ca = gh._2 | |
969 | + | let cb = gh._3 | |
970 | + | let dK = gh._4 | |
971 | + | let dL = gh._5 | |
972 | + | if (if ((fy != 0)) | |
973 | + | then (fy > aB(cd)) | |
921 | 974 | else false) | |
922 | - | then throw(((("Limit error: " + toString( | |
975 | + | then throw(((("Limit error: " + toString(aB(cd))) + " < ") + toString(fy))) | |
923 | 976 | else { | |
924 | - | let | |
925 | - | let | |
926 | - | let | |
927 | - | let | |
928 | - | let | |
929 | - | let | |
930 | - | if (!( | |
977 | + | let fP = (fA + cd) | |
978 | + | let gi = ay(fG, fx) | |
979 | + | let gj = co(fA, fB, fD, gi) | |
980 | + | let cx = gj._1 | |
981 | + | let dc = gj._2 | |
982 | + | let dd = gj._3 | |
983 | + | if (!(cN(ca, cb))) | |
931 | 984 | then throw("Over max spread limit") | |
932 | - | else $Tuple11( | |
933 | - | then | |
934 | - | else 0)), ( | |
935 | - | then | |
985 | + | else $Tuple11(fP, cx, (fC + fG), bH(fP), cb, ca, dK, dL, (bl() + fG), (bz() + (if ((fP > 0)) | |
986 | + | then aB(cd) | |
987 | + | else 0)), (by() + (if ((0 > fP)) | |
988 | + | then aB(cd) | |
936 | 989 | else 0))) | |
937 | 990 | } | |
938 | 991 | } | |
939 | 992 | else { | |
940 | - | let | |
941 | - | let | |
942 | - | let | |
943 | - | let | |
944 | - | if (( | |
993 | + | let fG = aA(fk, fx) | |
994 | + | let gk = di(toString(bB.caller), au) | |
995 | + | let fI = gk._1 | |
996 | + | let dh = gk._2 | |
997 | + | if ((fI > fG)) | |
945 | 998 | then throw("Use decreasePosition to decrease position size") | |
946 | 999 | else throw("Close position first") | |
947 | 1000 | } | |
948 | - | let | |
949 | - | let | |
950 | - | let | |
951 | - | let | |
952 | - | let | |
953 | - | let | |
954 | - | let | |
955 | - | let | |
956 | - | let | |
957 | - | let | |
958 | - | let | |
959 | - | let | |
960 | - | let | |
961 | - | let | |
962 | - | if (( | |
1001 | + | let fP = gg._1 | |
1002 | + | let fQ = gg._2 | |
1003 | + | let fR = gg._3 | |
1004 | + | let fS = gg._4 | |
1005 | + | let cb = gg._5 | |
1006 | + | let ca = gg._6 | |
1007 | + | let dK = gg._7 | |
1008 | + | let dL = gg._8 | |
1009 | + | let dO = gg._9 | |
1010 | + | let dM = gg._10 | |
1011 | + | let dN = gg._11 | |
1012 | + | let gl = (gb / 2) | |
1013 | + | let gm = (gb - gl) | |
1014 | + | let gn = invoke(ah(), "deposit", nil, [AttachedPayment(aa(), fk)]) | |
1015 | + | if ((gn == gn)) | |
963 | 1016 | then { | |
964 | - | let | |
965 | - | if (( | |
1017 | + | let go = invoke(ad(), "deposit", nil, [AttachedPayment(aa(), gm)]) | |
1018 | + | if ((go == go)) | |
966 | 1019 | then { | |
967 | - | let | |
968 | - | if (( | |
1020 | + | let gp = invoke(ae(), "notifyFees", [bK, gb], nil) | |
1021 | + | if ((gp == gp)) | |
969 | 1022 | then { | |
970 | - | let | |
971 | - | if (( | |
972 | - | then ((( | |
1023 | + | let fT = invoke(ae(), "notifyNotional", [bK, fR], nil) | |
1024 | + | if ((fT == fT)) | |
1025 | + | then ((((eQ(bK, fP, fQ, fR, fS) ++ fc(ca, cb, dK, dL, dO, dM, dN)) ++ fn(gl)) ++ fm((be() + fk))) ++ fo(ez, bB)) | |
973 | 1026 | else throw("Strict value is not equal to itself.") | |
974 | 1027 | } | |
975 | 1028 | else throw("Strict value is not equal to itself.") | |
984 | 1037 | ||
985 | 1038 | ||
986 | 1039 | ||
987 | - | @Callable( | |
1040 | + | @Callable(bB) | |
988 | 1041 | func addMargin () = { | |
989 | - | let | |
990 | - | if (if (if (if (( | |
1042 | + | let fV = bB.payments[0].amount | |
1043 | + | if (if (if (if ((bB.payments[0].assetId != aa())) | |
991 | 1044 | then true | |
992 | - | else !( | |
1045 | + | else !(bO(toString(bB.caller)))) | |
993 | 1046 | then true | |
994 | - | else !( | |
1047 | + | else !(bP())) | |
995 | 1048 | then true | |
996 | - | else | |
1049 | + | else bQ()) | |
997 | 1050 | then throw("Invalid addMargin parameters") | |
998 | 1051 | else { | |
999 | - | let bD = toString(bu.caller) | |
1000 | - | let fF = av(fE, aY()) | |
1001 | - | let fG = invoke(af(), "acceptPayment", [bD], [AttachedPayment(Z(), fF)]) | |
1002 | - | if ((fG == fG)) | |
1052 | + | let bK = toString(bB.caller) | |
1053 | + | let gq = es(bB) | |
1054 | + | let ey = gq._1 | |
1055 | + | let ez = gq._2 | |
1056 | + | let fX = aA(fV, ey) | |
1057 | + | let fY = invoke(ag(), "acceptPayment", [bK], [AttachedPayment(aa(), fX)]) | |
1058 | + | if ((fY == fY)) | |
1003 | 1059 | then { | |
1004 | - | let | |
1005 | - | let | |
1006 | - | if ($isInstanceOf( | |
1060 | + | let fZ = { | |
1061 | + | let bM = fY | |
1062 | + | if ($isInstanceOf(bM, "Int")) | |
1007 | 1063 | then { | |
1008 | - | let | |
1009 | - | | |
1064 | + | let ga = bM | |
1065 | + | ga | |
1010 | 1066 | } | |
1011 | 1067 | else throw("Invalid referrerFee") | |
1012 | 1068 | } | |
1013 | - | let | |
1014 | - | let | |
1015 | - | let | |
1016 | - | let | |
1017 | - | let | |
1018 | - | let | |
1019 | - | let | |
1020 | - | let | |
1021 | - | let | |
1022 | - | let | |
1023 | - | if (( | |
1069 | + | let gb = (fX - fZ) | |
1070 | + | let fk = (fV - fX) | |
1071 | + | let gr = bJ(bK) | |
1072 | + | let fA = gr._1 | |
1073 | + | let fB = gr._2 | |
1074 | + | let fC = gr._3 | |
1075 | + | let fD = gr._4 | |
1076 | + | let gl = (gb / 2) | |
1077 | + | let gm = (gb - gl) | |
1078 | + | let gn = invoke(ah(), "deposit", nil, [AttachedPayment(aa(), fk)]) | |
1079 | + | if ((gn == gn)) | |
1024 | 1080 | then { | |
1025 | - | let | |
1026 | - | if (( | |
1081 | + | let go = invoke(ad(), "deposit", nil, [AttachedPayment(aa(), gm)]) | |
1082 | + | if ((go == go)) | |
1027 | 1083 | then { | |
1028 | - | let | |
1029 | - | if (( | |
1030 | - | then (( | |
1084 | + | let gp = invoke(ae(), "notifyFees", [bK, gb], nil) | |
1085 | + | if ((gp == gp)) | |
1086 | + | then (((eQ(bK, fA, (fB + fk), fC, fD) ++ fn(gl)) ++ fm((be() + fk))) ++ fo(ez, bB)) | |
1031 | 1087 | else throw("Strict value is not equal to itself.") | |
1032 | 1088 | } | |
1033 | 1089 | else throw("Strict value is not equal to itself.") | |
1040 | 1096 | ||
1041 | 1097 | ||
1042 | 1098 | ||
1043 | - | @Callable( | |
1044 | - | func removeMargin ( | |
1099 | + | @Callable(bB) | |
1100 | + | func removeMargin (fk) = if (if (if (if ((0 >= fk)) | |
1045 | 1101 | then true | |
1046 | - | else !( | |
1102 | + | else !(bO(toString(bB.caller)))) | |
1047 | 1103 | then true | |
1048 | - | else !( | |
1104 | + | else !(bP())) | |
1049 | 1105 | then true | |
1050 | - | else | |
1106 | + | else bQ()) | |
1051 | 1107 | then throw("Invalid removeMargin parameters") | |
1052 | 1108 | else { | |
1053 | - | let | |
1054 | - | let | |
1055 | - | let | |
1056 | - | let | |
1057 | - | let | |
1058 | - | let | |
1059 | - | let | |
1060 | - | let | |
1061 | - | let | |
1062 | - | if (( | |
1109 | + | let gs = bJ(toString(bB.caller)) | |
1110 | + | let fA = gs._1 | |
1111 | + | let fB = gs._2 | |
1112 | + | let fC = gs._3 | |
1113 | + | let fD = gs._4 | |
1114 | + | let gt = -(fk) | |
1115 | + | let gu = co(fA, fB, fD, gt) | |
1116 | + | let cx = gu._1 | |
1117 | + | let cy = gu._2 | |
1118 | + | if ((cy != 0)) | |
1063 | 1119 | then throw("Invalid removed margin amount") | |
1064 | 1120 | else { | |
1065 | - | let | |
1066 | - | if (!( | |
1067 | - | then throw(((("Too much margin removed: " + toString( | |
1121 | + | let gv = dn(cx, cy, fC) | |
1122 | + | if (!(bC(gv, bg(), true))) | |
1123 | + | then throw(((("Too much margin removed: " + toString(gv)) + " < ") + toString(bg()))) | |
1068 | 1124 | else { | |
1069 | - | let | |
1070 | - | if (( | |
1071 | - | then (( | |
1125 | + | let gw = invoke(ah(), "withdraw", [toBase58String(aa()), fk], nil) | |
1126 | + | if ((gw == gw)) | |
1127 | + | then ((eQ(toString(bB.caller), fA, cx, fC, bH(fA)) ++ fj(bB.caller, fk)) ++ fm((be() - fk))) | |
1072 | 1128 | else throw("Strict value is not equal to itself.") | |
1073 | 1129 | } | |
1074 | 1130 | } | |
1076 | 1132 | ||
1077 | 1133 | ||
1078 | 1134 | ||
1079 | - | @Callable( | |
1135 | + | @Callable(bB) | |
1080 | 1136 | func closePosition () = { | |
1081 | - | let | |
1082 | - | let | |
1083 | - | if (if (if (!( | |
1137 | + | let gx = bA(bB) | |
1138 | + | let gy = valueOrErrorMessage(addressFromString(gx), "Invalid caller") | |
1139 | + | if (if (if (!(bO(gx))) | |
1084 | 1140 | then true | |
1085 | - | else !( | |
1141 | + | else !(bP())) | |
1086 | 1142 | then true | |
1087 | - | else | |
1143 | + | else bQ()) | |
1088 | 1144 | then throw("Invalid closePosition parameters") | |
1089 | 1145 | else { | |
1090 | - | let | |
1091 | - | let | |
1092 | - | let | |
1093 | - | let | |
1094 | - | let | |
1095 | - | let | |
1096 | - | let | |
1097 | - | let | |
1098 | - | let | |
1099 | - | let | |
1100 | - | let | |
1101 | - | let | |
1102 | - | let | |
1103 | - | if (( | |
1146 | + | let gz = dE(gx, true) | |
1147 | + | let dc = gz._1 | |
1148 | + | let gA = gz._2 | |
1149 | + | let dH = gz._3 | |
1150 | + | let dI = gz._4 | |
1151 | + | let ca = gz._5 | |
1152 | + | let cb = gz._6 | |
1153 | + | let dK = gz._7 | |
1154 | + | let dL = gz._8 | |
1155 | + | let dO = gz._9 | |
1156 | + | let dd = gz._10 | |
1157 | + | let dM = gz._11 | |
1158 | + | let dN = gz._12 | |
1159 | + | if ((gA > 0)) | |
1104 | 1160 | then throw("Unable to close position with bad debt") | |
1105 | 1161 | else { | |
1106 | - | let | |
1107 | - | let | |
1108 | - | let | |
1109 | - | then $Tuple2(0, | |
1110 | - | else $Tuple2( | |
1111 | - | let | |
1112 | - | let | |
1113 | - | let | |
1162 | + | let gB = aB(dI) | |
1163 | + | let gC = (be() - gB) | |
1164 | + | let gD = if ((0 > gC)) | |
1165 | + | then $Tuple2(0, aB(gC)) | |
1166 | + | else $Tuple2(gC, 0) | |
1167 | + | let gE = gD._1 | |
1168 | + | let gF = gD._2 | |
1169 | + | let ga = if ((gF > 0)) | |
1114 | 1170 | then { | |
1115 | - | let | |
1116 | - | if (( | |
1171 | + | let gG = invoke(ad(), "withdraw", [gF], nil) | |
1172 | + | if ((gG == gG)) | |
1117 | 1173 | then nil | |
1118 | 1174 | else throw("Strict value is not equal to itself.") | |
1119 | 1175 | } | |
1120 | 1176 | else nil | |
1121 | - | if (( | |
1177 | + | if ((ga == ga)) | |
1122 | 1178 | then { | |
1123 | - | let | |
1124 | - | if (( | |
1179 | + | let gw = invoke(ah(), "withdraw", [toBase58String(aa()), (gB - gF)], nil) | |
1180 | + | if ((gw == gw)) | |
1125 | 1181 | then { | |
1126 | - | let | |
1127 | - | if (( | |
1128 | - | then ((( | |
1182 | + | let fT = invoke(ae(), "notifyNotional", [gx, 0], nil) | |
1183 | + | if ((fT == fT)) | |
1184 | + | then (((fi(gx) ++ fc(ca, cb, dK, dL, dO, dM, dN)) ++ fj(gy, gB)) ++ fm(gE)) | |
1129 | 1185 | else throw("Strict value is not equal to itself.") | |
1130 | 1186 | } | |
1131 | 1187 | else throw("Strict value is not equal to itself.") | |
1137 | 1193 | ||
1138 | 1194 | ||
1139 | 1195 | ||
1140 | - | @Callable( | |
1141 | - | func liquidate ( | |
1142 | - | let | |
1143 | - | let | |
1196 | + | @Callable(bB) | |
1197 | + | func liquidate (bK) = { | |
1198 | + | let gH = dr(bK, au) | |
1199 | + | let gv = if (cT()) | |
1144 | 1200 | then { | |
1145 | - | let | |
1146 | - | | |
1201 | + | let gI = dr(bK, av) | |
1202 | + | aC(gH, gI) | |
1147 | 1203 | } | |
1148 | - | else | |
1149 | - | if (if (if (if (!( | |
1204 | + | else gH | |
1205 | + | if (if (if (if (!(bC(gv, bq(), false))) | |
1150 | 1206 | then true | |
1151 | - | else !( | |
1207 | + | else !(bO(bK))) | |
1152 | 1208 | then true | |
1153 | - | else !( | |
1209 | + | else !(bP())) | |
1154 | 1210 | then true | |
1155 | - | else | |
1211 | + | else bQ()) | |
1156 | 1212 | then throw("Unable to liquidate") | |
1157 | - | else if (if (if (( | |
1158 | - | then ( | |
1213 | + | else if (if (if ((gH > br())) | |
1214 | + | then (bs() > 0) | |
1159 | 1215 | else false) | |
1160 | - | then ( | |
1216 | + | then (ar > bs()) | |
1161 | 1217 | else false) | |
1162 | 1218 | then { | |
1163 | - | let | |
1164 | - | let | |
1165 | - | let | |
1166 | - | let | |
1167 | - | let | |
1168 | - | let | |
1169 | - | then | |
1170 | - | else | |
1171 | - | let | |
1172 | - | let | |
1173 | - | let | |
1174 | - | let | |
1175 | - | let | |
1176 | - | let | |
1177 | - | let | |
1178 | - | let | |
1179 | - | let | |
1180 | - | let | |
1181 | - | let | |
1182 | - | let | |
1183 | - | let | |
1184 | - | let | |
1185 | - | let | |
1186 | - | let | |
1187 | - | let | |
1188 | - | let | |
1189 | - | then (( | |
1190 | - | else (( | |
1191 | - | let | |
1192 | - | let | |
1193 | - | let | |
1194 | - | let | |
1195 | - | let | |
1196 | - | let | |
1197 | - | let | |
1198 | - | let | |
1199 | - | let | |
1200 | - | let | |
1201 | - | then $Tuple2(0, | |
1202 | - | else $Tuple2( | |
1203 | - | let | |
1204 | - | let | |
1205 | - | let | |
1219 | + | let gJ = bJ(bK) | |
1220 | + | let fA = gJ._1 | |
1221 | + | let fB = gJ._2 | |
1222 | + | let fC = gJ._3 | |
1223 | + | let fD = gJ._4 | |
1224 | + | let fE = if ((fA > 0)) | |
1225 | + | then an | |
1226 | + | else am | |
1227 | + | let fF = (fE == am) | |
1228 | + | let dD = dx(bK, fA) | |
1229 | + | let gK = di(bK, au) | |
1230 | + | let fI = gK._1 | |
1231 | + | let dh = gK._2 | |
1232 | + | let gL = bX(fF, dD) | |
1233 | + | let dC = gL._1 | |
1234 | + | let ca = gL._2 | |
1235 | + | let cb = gL._3 | |
1236 | + | let dK = gL._4 | |
1237 | + | let dL = gL._5 | |
1238 | + | let dH = ay(aA(dh, aB(dC)), aB(fA)) | |
1239 | + | let gM = co(fA, fB, fD, dH) | |
1240 | + | let cx = gM._1 | |
1241 | + | let cy = gM._2 | |
1242 | + | let ct = gM._3 | |
1243 | + | let fN = (dh - dH) | |
1244 | + | let fO = if ((fA > 0)) | |
1245 | + | then ((fI - dD) - fN) | |
1246 | + | else ((fN + fI) - dD) | |
1247 | + | let gN = aA(dD, br()) | |
1248 | + | let gO = (gN / 2) | |
1249 | + | let gm = (gN - gO) | |
1250 | + | let gP = (cx - gN) | |
1251 | + | let fP = (fA + dC) | |
1252 | + | let fR = aB(fO) | |
1253 | + | let gQ = bH(fP) | |
1254 | + | let dO = (bl() - dD) | |
1255 | + | let gC = (be() - gN) | |
1256 | + | let gR = if ((0 > gC)) | |
1257 | + | then $Tuple2(0, aB(gC)) | |
1258 | + | else $Tuple2(gC, 0) | |
1259 | + | let gS = gR._1 | |
1260 | + | let gT = gR._2 | |
1261 | + | let ga = if ((gT > 0)) | |
1206 | 1262 | then { | |
1207 | - | let | |
1208 | - | if (( | |
1263 | + | let gG = invoke(ad(), "withdraw", [gT], nil) | |
1264 | + | if ((gG == gG)) | |
1209 | 1265 | then nil | |
1210 | 1266 | else throw("Strict value is not equal to itself.") | |
1211 | 1267 | } | |
1212 | 1268 | else nil | |
1213 | - | if (( | |
1269 | + | if ((ga == ga)) | |
1214 | 1270 | then { | |
1215 | - | let | |
1216 | - | if (( | |
1271 | + | let gw = invoke(ah(), "withdraw", [toBase58String(aa()), (gN - gT)], nil) | |
1272 | + | if ((gw == gw)) | |
1217 | 1273 | then { | |
1218 | - | let | |
1219 | - | if (( | |
1274 | + | let go = invoke(ad(), "deposit", nil, [AttachedPayment(aa(), gm)]) | |
1275 | + | if ((go == go)) | |
1220 | 1276 | then { | |
1221 | - | let | |
1222 | - | if (( | |
1223 | - | then ((( | |
1224 | - | then | |
1225 | - | else 0)), ( | |
1226 | - | then | |
1227 | - | else 0)))) ++ | |
1277 | + | let fT = invoke(ae(), "notifyNotional", [bK, fR], nil) | |
1278 | + | if ((fT == fT)) | |
1279 | + | then (((eQ(bK, fP, gP, fR, gQ) ++ fc(ca, cb, dK, dL, dO, (bz() - (if ((fP > 0)) | |
1280 | + | then aB(dC) | |
1281 | + | else 0)), (by() - (if ((0 > fP)) | |
1282 | + | then aB(dC) | |
1283 | + | else 0)))) ++ fj(bB.caller, gO)) ++ fm(gS)) | |
1228 | 1284 | else throw("Strict value is not equal to itself.") | |
1229 | 1285 | } | |
1230 | 1286 | else throw("Strict value is not equal to itself.") | |
1234 | 1290 | else throw("Strict value is not equal to itself.") | |
1235 | 1291 | } | |
1236 | 1292 | else { | |
1237 | - | let | |
1238 | - | let | |
1239 | - | let | |
1240 | - | let | |
1241 | - | let | |
1242 | - | let | |
1243 | - | let | |
1244 | - | let | |
1245 | - | let | |
1246 | - | let | |
1247 | - | let | |
1248 | - | let | |
1249 | - | let | |
1250 | - | let | |
1251 | - | let | |
1252 | - | let | |
1253 | - | let | |
1254 | - | let | |
1255 | - | then $Tuple2(0, | |
1256 | - | else $Tuple2( | |
1257 | - | let | |
1258 | - | let | |
1259 | - | let | |
1293 | + | let gU = dE(bK, false) | |
1294 | + | let dc = gU._1 | |
1295 | + | let cy = gU._2 | |
1296 | + | let dd = gU._3 | |
1297 | + | let de = gU._4 | |
1298 | + | let ca = gU._5 | |
1299 | + | let cb = gU._6 | |
1300 | + | let dK = gU._7 | |
1301 | + | let dL = gU._8 | |
1302 | + | let dO = gU._9 | |
1303 | + | let dD = gU._10 | |
1304 | + | let dM = gU._11 | |
1305 | + | let dN = gU._12 | |
1306 | + | let gN = aA(dD, br()) | |
1307 | + | let gO = (gN / 2) | |
1308 | + | let gm = (gN - gO) | |
1309 | + | let gC = (be() - gN) | |
1310 | + | let gV = if ((0 > gC)) | |
1311 | + | then $Tuple2(0, aB(gC)) | |
1312 | + | else $Tuple2(gC, 0) | |
1313 | + | let gS = gV._1 | |
1314 | + | let gT = gV._2 | |
1315 | + | let ga = if ((gT > 0)) | |
1260 | 1316 | then { | |
1261 | - | let | |
1262 | - | if (( | |
1317 | + | let gG = invoke(ad(), "withdraw", [gT], nil) | |
1318 | + | if ((gG == gG)) | |
1263 | 1319 | then nil | |
1264 | 1320 | else throw("Strict value is not equal to itself.") | |
1265 | 1321 | } | |
1266 | 1322 | else nil | |
1267 | - | if (( | |
1323 | + | if ((ga == ga)) | |
1268 | 1324 | then { | |
1269 | - | let | |
1270 | - | if (( | |
1325 | + | let gw = invoke(ah(), "withdraw", [toBase58String(aa()), (gN - gT)], nil) | |
1326 | + | if ((gw == gw)) | |
1271 | 1327 | then { | |
1272 | - | let | |
1273 | - | if (( | |
1328 | + | let go = invoke(ad(), "deposit", nil, [AttachedPayment(aa(), gm)]) | |
1329 | + | if ((go == go)) | |
1274 | 1330 | then { | |
1275 | - | let | |
1276 | - | if (( | |
1277 | - | then ((( | |
1331 | + | let fT = invoke(ae(), "notifyNotional", [bK, 0], nil) | |
1332 | + | if ((fT == fT)) | |
1333 | + | then (((fi(bK) ++ fc(ca, cb, dK, dL, dO, dM, dN)) ++ fj(bB.caller, gO)) ++ fm(gS)) | |
1278 | 1334 | else throw("Strict value is not equal to itself.") | |
1279 | 1335 | } | |
1280 | 1336 | else throw("Strict value is not equal to itself.") | |
1287 | 1343 | ||
1288 | 1344 | ||
1289 | 1345 | ||
1290 | - | @Callable( | |
1346 | + | @Callable(bB) | |
1291 | 1347 | func payFunding () = { | |
1292 | - | let | |
1293 | - | if (if (if (( | |
1348 | + | let gW = bm() | |
1349 | + | if (if (if ((gW > lastBlock.timestamp)) | |
1294 | 1350 | then true | |
1295 | - | else !( | |
1351 | + | else !(bP())) | |
1296 | 1352 | then true | |
1297 | - | else | |
1298 | - | then throw(((("Invalid funding block timestamp: " + toString(lastBlock.timestamp)) + " < ") + toString( | |
1353 | + | else bQ()) | |
1354 | + | then throw(((("Invalid funding block timestamp: " + toString(lastBlock.timestamp)) + " < ") + toString(gW))) | |
1299 | 1355 | else { | |
1300 | - | let | |
1301 | - | let | |
1302 | - | let | |
1303 | - | let | |
1304 | - | | |
1356 | + | let en = cI() | |
1357 | + | let gX = em() | |
1358 | + | let eq = gX._1 | |
1359 | + | let er = gX._2 | |
1360 | + | eK((gW + bp()), (bw() + er), (bx() + eq), ay(er, en), ay(eq, en)) | |
1305 | 1361 | } | |
1306 | 1362 | } | |
1307 | 1363 | ||
1308 | 1364 | ||
1309 | 1365 | ||
1310 | - | @Callable( | |
1311 | - | func forceMoveAsset ( | |
1366 | + | @Callable(bB) | |
1367 | + | func forceMoveAsset (bK,fk) = if (if ((addressFromPublicKey(Z()) != bB.caller)) | |
1312 | 1368 | then true | |
1313 | - | else (0 > | |
1369 | + | else (0 > fk)) | |
1314 | 1370 | then throw("Invalid forceMoveAsset parameters") | |
1315 | 1371 | else { | |
1316 | - | let | |
1317 | - | if (( | |
1318 | - | then ( | |
1372 | + | let gw = invoke(ah(), "withdraw", [toBase58String(aa()), fk], nil) | |
1373 | + | if ((gw == gw)) | |
1374 | + | then (fj(addressFromStringValue(bK), fk) ++ fm((be() - fk))) | |
1319 | 1375 | else throw("Strict value is not equal to itself.") | |
1320 | 1376 | } | |
1321 | 1377 | ||
1322 | 1378 | ||
1323 | 1379 | ||
1324 | - | @Callable( | |
1325 | - | func adjustPeg ( | |
1380 | + | @Callable(bB) | |
1381 | + | func adjustPeg (eg) = if (if ((addressFromPublicKey(Z()) != bB.caller)) | |
1326 | 1382 | then true | |
1327 | - | else (0 > | |
1383 | + | else (0 > eg)) | |
1328 | 1384 | then throw("Invalid adjustPeg parameters") | |
1329 | 1385 | else { | |
1330 | - | let | |
1331 | - | let | |
1332 | - | let | |
1333 | - | if (( | |
1386 | + | let gY = ef(eg) | |
1387 | + | let ek = gY._1 | |
1388 | + | let gZ = gY._2 | |
1389 | + | if ((gZ == 0)) | |
1334 | 1390 | then throw("Nothing to adjust") | |
1335 | - | else if (( | |
1336 | - | then | |
1391 | + | else if ((gZ > 0)) | |
1392 | + | then fb(ek, bi()) | |
1337 | 1393 | else { | |
1338 | - | let | |
1339 | - | if (( | |
1394 | + | let gw = invoke(ah(), "withdraw", [toBase58String(aa()), aB(gZ)], nil) | |
1395 | + | if ((gw == gw)) | |
1340 | 1396 | then { | |
1341 | - | let | |
1342 | - | if (( | |
1343 | - | then ( | |
1397 | + | let go = invoke(ad(), "deposit", nil, [AttachedPayment(aa(), aB(gZ))]) | |
1398 | + | if ((go == go)) | |
1399 | + | then (fm((be() - aB(gZ))) ++ fb(ek, bi())) | |
1344 | 1400 | else throw("Strict value is not equal to itself.") | |
1345 | 1401 | } | |
1346 | 1402 | else throw("Strict value is not equal to itself.") | |
1349 | 1405 | ||
1350 | 1406 | ||
1351 | 1407 | ||
1352 | - | @Callable( | |
1408 | + | @Callable(bB) | |
1353 | 1409 | func migrateLiquidity () = { | |
1354 | - | let gH = aX() | |
1355 | - | let gd = invoke(aa(), "unlockNeutrino", [gH, toBase58String(Z())], nil) | |
1356 | - | if ((gd == gd)) | |
1410 | + | let ha = be() | |
1411 | + | if ((ha > 0)) | |
1357 | 1412 | then { | |
1358 | - | let fV = invoke(ag(), "deposit", nil, [AttachedPayment(Z(), gH)]) | |
1359 | - | if ((fV == fV)) | |
1360 | - | then nil | |
1413 | + | let gw = invoke(ab(), "unlockNeutrino", [ha, toBase58String(aa())], nil) | |
1414 | + | if ((gw == gw)) | |
1415 | + | then { | |
1416 | + | let gn = invoke(ah(), "deposit", nil, [AttachedPayment(aa(), ha)]) | |
1417 | + | if ((gn == gn)) | |
1418 | + | then nil | |
1419 | + | else throw("Strict value is not equal to itself.") | |
1420 | + | } | |
1361 | 1421 | else throw("Strict value is not equal to itself.") | |
1362 | 1422 | } | |
1363 | - | else | |
1423 | + | else nil | |
1364 | 1424 | } | |
1365 | 1425 | ||
1366 | 1426 | ||
1367 | 1427 | ||
1368 | - | @Callable( | |
1369 | - | func v_get ( | |
1370 | - | let | |
1371 | - | let | |
1372 | - | let | |
1373 | - | let | |
1374 | - | let | |
1375 | - | throw(((( | |
1428 | + | @Callable(bB) | |
1429 | + | func v_get (bK) = { | |
1430 | + | let hb = dE(bK, false) | |
1431 | + | let dc = hb._1 | |
1432 | + | let dd = hb._2 | |
1433 | + | let de = hb._3 | |
1434 | + | let hc = hb._4 | |
1435 | + | throw((((aw(dd) + aw(de)) + aw(hc)) + aw(dw(bK)))) | |
1376 | 1436 | } | |
1377 | 1437 | ||
1378 | 1438 | ||
1379 | 1439 | ||
1380 | - | @Callable( | |
1381 | - | func view_calcRemainMarginWithFundingPayment ( | |
1382 | - | let | |
1383 | - | let | |
1384 | - | let | |
1385 | - | let | |
1386 | - | let | |
1387 | - | let | |
1388 | - | let | |
1389 | - | let | |
1390 | - | let | |
1391 | - | let | |
1392 | - | let | |
1393 | - | let | |
1394 | - | throw(((((( | |
1440 | + | @Callable(bB) | |
1441 | + | func view_calcRemainMarginWithFundingPayment (bK) = { | |
1442 | + | let hd = bJ(bK) | |
1443 | + | let bN = hd._1 | |
1444 | + | let dk = hd._2 | |
1445 | + | let dt = hd._3 | |
1446 | + | let dm = hd._4 | |
1447 | + | let he = di(bK, au) | |
1448 | + | let cZ = he._1 | |
1449 | + | let dh = he._2 | |
1450 | + | let hf = co(bN, dk, dm, dh) | |
1451 | + | let cx = hf._1 | |
1452 | + | let cy = hf._2 | |
1453 | + | let ct = hf._3 | |
1454 | + | throw((((((aw(cx) + aw(ct)) + aw(dw(bK))) + aw(dh)) + aw(cy)) + aw(cZ))) | |
1395 | 1455 | } | |
1396 | 1456 | ||
1397 | 1457 | ||
1398 | 1458 | ||
1399 | - | @Callable( | |
1400 | - | func view_getPegAdjustCost ( | |
1401 | - | let | |
1402 | - | throw(toString( | |
1459 | + | @Callable(bB) | |
1460 | + | func view_getPegAdjustCost (eg) = { | |
1461 | + | let el = ef(eg) | |
1462 | + | throw(toString(el._2)) | |
1403 | 1463 | } | |
1404 | 1464 | ||
1405 | 1465 | ||
1406 | 1466 | ||
1407 | - | @Callable( | |
1467 | + | @Callable(bB) | |
1408 | 1468 | func view_getFunding () = { | |
1409 | - | let | |
1410 | - | let | |
1411 | - | let | |
1412 | - | let | |
1413 | - | let | |
1414 | - | let | |
1415 | - | throw(((( | |
1469 | + | let en = cI() | |
1470 | + | let hg = em() | |
1471 | + | let eq = hg._1 | |
1472 | + | let er = hg._2 | |
1473 | + | let hh = ay(er, en) | |
1474 | + | let hi = ay(eq, en) | |
1475 | + | throw((((aw(hh) + aw(hi)) + aw(dP())) + aw(cI()))) | |
1416 | 1476 | } | |
1417 | 1477 | ||
1418 | 1478 | ||
1419 | - | @Verifier( | |
1420 | - | func | |
1479 | + | @Verifier(hj) | |
1480 | + | func hk () = sigVerify(hj.bodyBytes, hj.proofs[0], Z()) | |
1421 | 1481 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = "k_ora_key" | |
5 | 5 | ||
6 | 6 | let b = "k_ora_block_key" | |
7 | 7 | ||
8 | 8 | let c = "k_ora" | |
9 | 9 | ||
10 | 10 | let d = "k_balance" | |
11 | 11 | ||
12 | 12 | let e = "k_positionSize" | |
13 | 13 | ||
14 | 14 | let f = "k_positionMargin" | |
15 | 15 | ||
16 | 16 | let g = "k_positionOpenNotional" | |
17 | 17 | ||
18 | 18 | let h = "k_positionFraction" | |
19 | 19 | ||
20 | 20 | let i = "k_positionClosedDate" | |
21 | 21 | ||
22 | 22 | let j = "k_initialized" | |
23 | 23 | ||
24 | 24 | let k = "k_paused" | |
25 | 25 | ||
26 | 26 | let l = "k_fee" | |
27 | 27 | ||
28 | 28 | let m = "k_fundingPeriod" | |
29 | 29 | ||
30 | 30 | let n = "k_initMarginRatio" | |
31 | 31 | ||
32 | 32 | let o = "k_mmr" | |
33 | 33 | ||
34 | 34 | let p = "k_liquidationFeeRatio" | |
35 | 35 | ||
36 | 36 | let q = "k_partLiquidationRatio" | |
37 | 37 | ||
38 | 38 | let r = "k_spreadLimit" | |
39 | 39 | ||
40 | 40 | let s = "k_maxPriceImpact" | |
41 | 41 | ||
42 | 42 | let t = "k_maxPriceSpread" | |
43 | 43 | ||
44 | 44 | let u = "k_lastDataStr" | |
45 | 45 | ||
46 | 46 | let v = "k_lastMinuteId" | |
47 | 47 | ||
48 | 48 | let w = "k_twapDataLastCumulativePrice" | |
49 | 49 | ||
50 | 50 | let x = "k_twapDataLastPrice" | |
51 | 51 | ||
52 | 52 | let y = "k_twapDataPreviousMinuteId" | |
53 | 53 | ||
54 | 54 | let z = "k_latestLongPremiumFraction" | |
55 | 55 | ||
56 | 56 | let A = "k_latestShortPremiumFraction" | |
57 | 57 | ||
58 | 58 | let B = "k_nextFundingBlockMinTimestamp" | |
59 | 59 | ||
60 | 60 | let C = "k_longFundingRate" | |
61 | 61 | ||
62 | 62 | let D = "k_shortFundingRate" | |
63 | 63 | ||
64 | 64 | let E = "k_qtAstR" | |
65 | 65 | ||
66 | 66 | let F = "k_bsAstR" | |
67 | 67 | ||
68 | 68 | let G = "k_totalPositionSize" | |
69 | 69 | ||
70 | 70 | let H = "k_totalLongPositionSize" | |
71 | 71 | ||
72 | 72 | let I = "k_totalShortPositionSize" | |
73 | 73 | ||
74 | 74 | let J = "k_cumulativeNotional" | |
75 | 75 | ||
76 | 76 | let K = "k_openInterestNotional" | |
77 | 77 | ||
78 | 78 | let L = "k_coordinatorAddress" | |
79 | 79 | ||
80 | 80 | let M = "k_insurance_address" | |
81 | 81 | ||
82 | 82 | let N = "k_admin_address" | |
83 | 83 | ||
84 | 84 | let O = "k_admin_public_key" | |
85 | 85 | ||
86 | 86 | let P = "k_quote_asset" | |
87 | 87 | ||
88 | 88 | let Q = "k_quote_staking" | |
89 | 89 | ||
90 | 90 | let R = "k_staking_address" | |
91 | 91 | ||
92 | 92 | let S = "k_miner_address" | |
93 | 93 | ||
94 | 94 | let T = "k_orders_address" | |
95 | 95 | ||
96 | 96 | let U = "k_referral_address" | |
97 | 97 | ||
98 | 98 | let V = "k_manager_address" | |
99 | 99 | ||
100 | - | func W () = valueOrErrorMessage(addressFromString(getStringValue(this, L)), "Coordinator not set") | |
100 | + | let W = "k_nft_manager_address" | |
101 | + | ||
102 | + | func X () = valueOrErrorMessage(addressFromString(getStringValue(this, L)), "Coordinator not set") | |
101 | 103 | ||
102 | 104 | ||
103 | - | func | |
105 | + | func Y () = addressFromString(getStringValue(X(), N)) | |
104 | 106 | ||
105 | 107 | ||
106 | - | func | |
108 | + | func Z () = fromBase58String(getStringValue(X(), O)) | |
107 | 109 | ||
108 | 110 | ||
109 | - | func | |
111 | + | func aa () = fromBase58String(getStringValue(X(), P)) | |
110 | 112 | ||
111 | 113 | ||
112 | - | func | |
114 | + | func ab () = valueOrErrorMessage(addressFromString(getStringValue(X(), Q)), "Quote asset staking not set") | |
113 | 115 | ||
114 | 116 | ||
115 | - | func | |
117 | + | func ac () = valueOrErrorMessage(addressFromString(getStringValue(X(), R)), "Staking not set") | |
116 | 118 | ||
117 | 119 | ||
118 | - | func | |
120 | + | func ad () = valueOrErrorMessage(addressFromString(getStringValue(X(), M)), "Insurance not set") | |
119 | 121 | ||
120 | 122 | ||
121 | - | func | |
123 | + | func ae () = valueOrErrorMessage(addressFromString(getStringValue(X(), S)), "Miner not set") | |
122 | 124 | ||
123 | 125 | ||
124 | - | func | |
126 | + | func af () = valueOrErrorMessage(addressFromString(getStringValue(X(), T)), "Orders not set") | |
125 | 127 | ||
126 | 128 | ||
127 | - | func | |
129 | + | func ag () = valueOrErrorMessage(addressFromString(getStringValue(X(), U)), "Referral not set") | |
128 | 130 | ||
129 | 131 | ||
130 | - | func | |
132 | + | func ah () = valueOrErrorMessage(addressFromString(getStringValue(X(), V)), "Manager not set") | |
131 | 133 | ||
132 | 134 | ||
133 | - | let ah = 1 | |
134 | - | ||
135 | - | let ai = 2 | |
136 | - | ||
137 | - | let aj = 15 | |
138 | - | ||
139 | - | let ak = 15 | |
140 | - | ||
141 | - | let al = 1000 | |
142 | - | ||
143 | - | let am = (1 * (((((10 * 10) * 10) * 10) * 10) * 10)) | |
144 | - | ||
145 | - | let an = (86400 * am) | |
146 | - | ||
147 | - | let ao = 100 | |
148 | - | ||
149 | - | let ap = 1 | |
150 | - | ||
151 | - | let aq = 2 | |
152 | - | ||
153 | - | func ar (as) = (toString(as) + ",") | |
135 | + | func ai () = valueOrErrorMessage(addressFromString(getStringValue(X(), W)), "NFT Manager not set") | |
154 | 136 | ||
155 | 137 | ||
156 | - | func at (as,au) = fraction(as, am, au, HALFEVEN) | |
138 | + | let aj = "k_token_param" | |
139 | + | ||
140 | + | let ak = "k_token_type" | |
141 | + | ||
142 | + | let al = "fee_reduction" | |
143 | + | ||
144 | + | let am = 1 | |
145 | + | ||
146 | + | let an = 2 | |
147 | + | ||
148 | + | let ao = 15 | |
149 | + | ||
150 | + | let ap = 15 | |
151 | + | ||
152 | + | let aq = 1000 | |
153 | + | ||
154 | + | let ar = (1 * (((((10 * 10) * 10) * 10) * 10) * 10)) | |
155 | + | ||
156 | + | let as = (86400 * ar) | |
157 | + | ||
158 | + | let at = 100 | |
159 | + | ||
160 | + | let au = 1 | |
161 | + | ||
162 | + | let av = 2 | |
163 | + | ||
164 | + | func aw (ax) = (toString(ax) + ",") | |
157 | 165 | ||
158 | 166 | ||
159 | - | func | |
167 | + | func ay (ax,az) = fraction(ax, ar, az, HALFEVEN) | |
160 | 168 | ||
161 | 169 | ||
162 | - | func aw (as) = if ((as > 0)) | |
163 | - | then as | |
164 | - | else -(as) | |
170 | + | func aA (ax,az) = fraction(ax, az, ar, HALFEVEN) | |
165 | 171 | ||
166 | 172 | ||
167 | - | func | |
168 | - | then | |
169 | - | else | |
173 | + | func aB (ax) = if ((ax > 0)) | |
174 | + | then ax | |
175 | + | else -(ax) | |
170 | 176 | ||
171 | 177 | ||
172 | - | func ay (az,aA) = ((az + "_") + aA) | |
178 | + | func aC (ax,az) = if ((ax >= az)) | |
179 | + | then ax | |
180 | + | else az | |
173 | 181 | ||
174 | 182 | ||
175 | - | func aB (aC) = { | |
176 | - | func aD (aE,aF) = ((aE + aF) + ",") | |
183 | + | func aD (aE,aF) = ((aE + "_") + aF) | |
177 | 184 | ||
178 | - | let aG = { | |
179 | - | let aH = aC | |
180 | - | let aI = size(aH) | |
181 | - | let aJ = "" | |
182 | - | func aK (aL,aM) = if ((aM >= aI)) | |
183 | - | then aL | |
184 | - | else aD(aL, aH[aM]) | |
185 | 185 | ||
186 | - | func aN (aL,aM) = if ((aM >= aI)) | |
187 | - | then aL | |
186 | + | func aG (aH) = { | |
187 | + | func aI (aJ,aK) = ((aJ + aK) + ",") | |
188 | + | ||
189 | + | let aL = { | |
190 | + | let aM = aH | |
191 | + | let aN = size(aM) | |
192 | + | let aO = "" | |
193 | + | func aP (aQ,aR) = if ((aR >= aN)) | |
194 | + | then aQ | |
195 | + | else aI(aQ, aM[aR]) | |
196 | + | ||
197 | + | func aS (aQ,aR) = if ((aR >= aN)) | |
198 | + | then aQ | |
188 | 199 | else throw("List size exceeds 20") | |
189 | 200 | ||
190 | - | | |
201 | + | aS(aP(aP(aP(aP(aP(aP(aP(aP(aP(aP(aP(aP(aP(aP(aP(aP(aP(aP(aP(aP(aO, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20) | |
191 | 202 | } | |
192 | - | let | |
193 | - | let | |
194 | - | then drop( | |
195 | - | else | |
196 | - | | |
203 | + | let aT = dropRight(aL, 1) | |
204 | + | let aU = if ((take(aT, 1) == ",")) | |
205 | + | then drop(aT, 1) | |
206 | + | else aT | |
207 | + | aU | |
197 | 208 | } | |
198 | 209 | ||
199 | 210 | ||
200 | - | func | |
211 | + | func aV (aW) = split(aW, ",") | |
201 | 212 | ||
202 | 213 | ||
203 | - | func | |
204 | - | then (removeByIndex( | |
205 | - | else ( | |
214 | + | func aX (aH,aY,aZ) = if ((size(aH) > aY)) | |
215 | + | then (removeByIndex(aH, 0) :+ aZ) | |
216 | + | else (aH :+ aZ) | |
206 | 217 | ||
207 | 218 | ||
208 | - | func | |
219 | + | func ba (bb) = valueOrErrorMessage(getInteger(this, bb), ("no value for " + bb)) | |
209 | 220 | ||
210 | 221 | ||
211 | - | func aX () = aV(d) | |
222 | + | func bc (aF,aE) = { | |
223 | + | let aK = valueOrErrorMessage(getString(aF, aE), ("No value for key " + aE)) | |
224 | + | aK | |
225 | + | } | |
212 | 226 | ||
213 | 227 | ||
214 | - | func aY () = aV(l) | |
228 | + | func bd (aF,aE) = { | |
229 | + | let aK = valueOrErrorMessage(getInteger(aF, aE), ("No value for key " + aE)) | |
230 | + | aK | |
231 | + | } | |
215 | 232 | ||
216 | 233 | ||
217 | - | func | |
234 | + | func be () = ba(d) | |
218 | 235 | ||
219 | 236 | ||
220 | - | func | |
237 | + | func bf () = ba(l) | |
221 | 238 | ||
222 | 239 | ||
223 | - | func | |
240 | + | func bg () = ba(n) | |
224 | 241 | ||
225 | 242 | ||
226 | - | func | |
243 | + | func bh () = ba(E) | |
227 | 244 | ||
228 | 245 | ||
229 | - | func | |
246 | + | func bi () = ba(F) | |
230 | 247 | ||
231 | 248 | ||
232 | - | func | |
249 | + | func bj () = ba(G) | |
233 | 250 | ||
234 | 251 | ||
235 | - | func | |
252 | + | func bk () = ba(J) | |
236 | 253 | ||
237 | 254 | ||
238 | - | func | |
255 | + | func bl () = ba(K) | |
239 | 256 | ||
240 | 257 | ||
241 | - | func | |
258 | + | func bm () = ba(B) | |
242 | 259 | ||
243 | 260 | ||
244 | - | func | |
261 | + | func bn () = ba(m) | |
245 | 262 | ||
246 | 263 | ||
247 | - | func | |
264 | + | func bo () = (bn() * ar) | |
248 | 265 | ||
249 | 266 | ||
250 | - | func | |
267 | + | func bp () = (bn() * aq) | |
251 | 268 | ||
252 | 269 | ||
253 | - | func | |
270 | + | func bq () = ba(o) | |
254 | 271 | ||
255 | 272 | ||
256 | - | func | |
273 | + | func br () = ba(p) | |
257 | 274 | ||
258 | 275 | ||
259 | - | func | |
276 | + | func bs () = ba(q) | |
260 | 277 | ||
261 | 278 | ||
262 | - | func | |
279 | + | func bt () = ba(r) | |
263 | 280 | ||
264 | 281 | ||
265 | - | func | |
282 | + | func bu () = ba(s) | |
266 | 283 | ||
267 | 284 | ||
268 | - | func | |
285 | + | func bv () = ba(t) | |
269 | 286 | ||
270 | 287 | ||
271 | - | func | |
288 | + | func bw () = ba(z) | |
272 | 289 | ||
273 | 290 | ||
274 | - | func | |
291 | + | func bx () = ba(A) | |
275 | 292 | ||
276 | 293 | ||
277 | - | func | |
294 | + | func by () = ba(I) | |
278 | 295 | ||
279 | 296 | ||
280 | - | func bv (bw,bx,by) = { | |
281 | - | let bz = (bw - bx) | |
282 | - | if (if (by) | |
283 | - | then (0 > bz) | |
297 | + | func bz () = ba(H) | |
298 | + | ||
299 | + | ||
300 | + | func bA (bB) = valueOrElse(getString(af(), "k_sender"), toString(bB.caller)) | |
301 | + | ||
302 | + | ||
303 | + | func bC (bD,bE,bF) = { | |
304 | + | let bG = (bD - bE) | |
305 | + | if (if (bF) | |
306 | + | then (0 > bG) | |
284 | 307 | else false) | |
285 | 308 | then throw("Invalid margin") | |
286 | - | else if (if (!( | |
287 | - | then ( | |
309 | + | else if (if (!(bF)) | |
310 | + | then (bG >= 0) | |
288 | 311 | else false) | |
289 | 312 | then throw("Invalid margin") | |
290 | 313 | else true | |
291 | 314 | } | |
292 | 315 | ||
293 | 316 | ||
294 | - | func | |
317 | + | func bH (bI) = if ((bI == 0)) | |
295 | 318 | then throw("Should not be called with _positionSize == 0") | |
296 | - | else if (( | |
297 | - | then | |
298 | - | else | |
319 | + | else if ((bI > 0)) | |
320 | + | then bw() | |
321 | + | else bx() | |
299 | 322 | ||
300 | 323 | ||
301 | - | func | |
302 | - | let | |
303 | - | let | |
304 | - | if ($isInstanceOf( | |
324 | + | func bJ (bK) = { | |
325 | + | let bL = getInteger(this, aD(e, bK)) | |
326 | + | let bM = bL | |
327 | + | if ($isInstanceOf(bM, "Int")) | |
305 | 328 | then { | |
306 | - | let | |
307 | - | $Tuple4( | |
329 | + | let bN = bM | |
330 | + | $Tuple4(bN, getIntegerValue(this, aD(f, bK)), getIntegerValue(this, aD(g, bK)), getIntegerValue(this, aD(h, bK))) | |
308 | 331 | } | |
309 | 332 | else $Tuple4(0, 0, 0, 0) | |
310 | 333 | } | |
311 | 334 | ||
312 | 335 | ||
313 | - | func | |
336 | + | func bO (bK) = if ((bJ(bK)._1 == 0)) | |
314 | 337 | then throw("No open position") | |
315 | 338 | else true | |
316 | 339 | ||
317 | 340 | ||
318 | - | func | |
341 | + | func bP () = valueOrElse(getBoolean(this, j), false) | |
319 | 342 | ||
320 | 343 | ||
321 | - | func | |
344 | + | func bQ () = valueOrElse(getBoolean(this, k), false) | |
322 | 345 | ||
323 | 346 | ||
324 | - | func | |
347 | + | func bR (bS,bT,bU) = if (bS) | |
325 | 348 | then { | |
326 | - | let | |
327 | - | if ((0 >= | |
349 | + | let bV = (bi() - bU) | |
350 | + | if ((0 >= bV)) | |
328 | 351 | then throw("Tx lead to base asset reserve <= 0, revert") | |
329 | - | else $Tuple4(( | |
352 | + | else $Tuple4((bh() + bT), bV, (bj() + bU), (bk() + bT)) | |
330 | 353 | } | |
331 | 354 | else { | |
332 | - | let | |
333 | - | if ((0 >= | |
355 | + | let bW = (bh() - bT) | |
356 | + | if ((0 >= bW)) | |
334 | 357 | then throw("Tx lead to base quote reserve <= 0, revert") | |
335 | - | else $Tuple4( | |
358 | + | else $Tuple4(bW, (bi() + bU), (bj() - bU), (bk() - bT)) | |
336 | 359 | } | |
337 | 360 | ||
338 | 361 | ||
339 | - | func | |
340 | - | let | |
341 | - | let | |
342 | - | let | |
343 | - | let | |
344 | - | then ( | |
345 | - | else ( | |
346 | - | let | |
347 | - | let | |
348 | - | let | |
349 | - | then | |
350 | - | else -( | |
351 | - | let | |
352 | - | let | |
353 | - | let | |
354 | - | let | |
355 | - | let | |
356 | - | let | |
357 | - | let | |
358 | - | let | |
359 | - | let | |
360 | - | let | |
361 | - | if (( | |
362 | - | then throw(((((((((((((("Price impact " + toString( | |
363 | - | else $Tuple5( | |
362 | + | func bX (bS,bT) = { | |
363 | + | let bY = bh() | |
364 | + | let bZ = bi() | |
365 | + | let bb = aA(bY, bZ) | |
366 | + | let ca = if (bS) | |
367 | + | then (bY + bT) | |
368 | + | else (bY - bT) | |
369 | + | let cb = ay(bb, ca) | |
370 | + | let cc = aB((cb - bZ)) | |
371 | + | let cd = if (bS) | |
372 | + | then cc | |
373 | + | else -(cc) | |
374 | + | let ce = bR(bS, bT, cc) | |
375 | + | let cf = ce._1 | |
376 | + | let cg = ce._2 | |
377 | + | let ch = ce._3 | |
378 | + | let ci = ce._4 | |
379 | + | let cj = ay(bY, bZ) | |
380 | + | let ck = ay(bT, cc) | |
381 | + | let cl = aB((cj - ck)) | |
382 | + | let cm = (ar - ay(cj, (cj + cl))) | |
383 | + | let cn = bu() | |
384 | + | if ((cm > cn)) | |
385 | + | then throw(((((((((((((("Price impact " + toString(cm)) + " > max price impact ") + toString(cn)) + " before quote asset: ") + toString(bY)) + " before base asset: ") + toString(bZ)) + " quote asset amount to exchange: ") + toString(bT)) + " price before: ") + toString(cj)) + " marketPrice: ") + toString(ck))) | |
386 | + | else $Tuple5(cd, cf, cg, ch, ci) | |
364 | 387 | } | |
365 | 388 | ||
366 | 389 | ||
367 | - | func | |
368 | - | let | |
390 | + | func co (cp,cq,cr,cs) = { | |
391 | + | let ct = if ((cp != 0)) | |
369 | 392 | then { | |
370 | - | let | |
371 | - | | |
393 | + | let cu = bH(cp) | |
394 | + | aA((cu - cr), cp) | |
372 | 395 | } | |
373 | 396 | else 0 | |
374 | - | let | |
375 | - | let | |
376 | - | then $Tuple2(0, | |
377 | - | else $Tuple2( | |
378 | - | let | |
379 | - | let | |
380 | - | $Tuple3( | |
397 | + | let cv = ((cs - ct) + cq) | |
398 | + | let cw = if ((0 > cv)) | |
399 | + | then $Tuple2(0, aB(cv)) | |
400 | + | else $Tuple2(aB(cv), 0) | |
401 | + | let cx = cw._1 | |
402 | + | let cy = cw._2 | |
403 | + | $Tuple3(cx, cy, ct) | |
381 | 404 | } | |
382 | 405 | ||
383 | 406 | ||
384 | - | func | |
385 | - | let | |
386 | - | if (( | |
407 | + | func cz (bS,bU,cA,cB,cC) = { | |
408 | + | let cj = ay(cB, cC) | |
409 | + | if ((bU == 0)) | |
387 | 410 | then throw("Invalid base asset amount") | |
388 | 411 | else { | |
389 | - | let | |
390 | - | let | |
391 | - | then ( | |
392 | - | else ( | |
393 | - | let | |
394 | - | let | |
395 | - | let | |
396 | - | let | |
397 | - | let | |
398 | - | let | |
399 | - | let | |
400 | - | let | |
401 | - | let | |
402 | - | let | |
403 | - | let | |
404 | - | if (if (( | |
405 | - | then | |
412 | + | let bb = aA(cB, cC) | |
413 | + | let cD = if (bS) | |
414 | + | then (cC + bU) | |
415 | + | else (cC - bU) | |
416 | + | let cE = ay(bb, cD) | |
417 | + | let cF = aB((cE - cB)) | |
418 | + | let cn = bu() | |
419 | + | let cG = bR(!(bS), cF, bU) | |
420 | + | let cf = cG._1 | |
421 | + | let cg = cG._2 | |
422 | + | let ch = cG._3 | |
423 | + | let ci = cG._4 | |
424 | + | let ck = ay(cF, bU) | |
425 | + | let cl = aB((cj - ck)) | |
426 | + | let cm = (ar - ay(cj, (cj + cl))) | |
427 | + | if (if ((cm > cn)) | |
428 | + | then cA | |
406 | 429 | else false) | |
407 | - | then throw(((((((((((((("Price impact " + toString( | |
408 | - | else $Tuple8( | |
409 | - | then | |
410 | - | else 0)), ( | |
411 | - | then | |
412 | - | else 0)), | |
430 | + | then throw(((((((((((((("Price impact " + toString(cm)) + " > max price impact ") + toString(cn)) + " before quote asset: ") + toString(cB)) + " before base asset: ") + toString(cC)) + " base asset amount to exchange: ") + toString(bU)) + " price before: ") + toString(cj)) + " market price: ") + toString(ck))) | |
431 | + | else $Tuple8(cF, cf, cg, ch, ci, (bz() - (if (bS) | |
432 | + | then aB(bU) | |
433 | + | else 0)), (by() - (if (!(bS)) | |
434 | + | then aB(bU) | |
435 | + | else 0)), cm) | |
413 | 436 | } | |
414 | 437 | } | |
415 | 438 | ||
416 | 439 | ||
417 | - | func | |
440 | + | func cH (bS,bU,cA) = cz(bS, bU, cA, bh(), bi()) | |
418 | 441 | ||
419 | 442 | ||
420 | - | func | |
421 | - | let | |
422 | - | let | |
423 | - | let | |
424 | - | let | |
425 | - | | |
443 | + | func cI () = { | |
444 | + | let cJ = valueOrErrorMessage(addressFromString(getStringValue(this, c)), "") | |
445 | + | let cK = getStringValue(this, a) | |
446 | + | let cL = getStringValue(this, b) | |
447 | + | let cM = valueOrErrorMessage(getInteger(cJ, cK), ((("Can not get oracle price. Oracle: " + toString(cJ)) + " key: ") + cK)) | |
448 | + | cM | |
426 | 449 | } | |
427 | 450 | ||
428 | 451 | ||
429 | - | func | |
430 | - | let | |
431 | - | let | |
432 | - | let | |
433 | - | let | |
434 | - | if (( | |
435 | - | then throw(((("Price spread " + toString( | |
452 | + | func cN (cB,cC) = { | |
453 | + | let cO = cI() | |
454 | + | let cP = ay(cB, cC) | |
455 | + | let cQ = ay((cO + cP), (2 * ar)) | |
456 | + | let cR = ay(aB((cO - cP)), cQ) | |
457 | + | if ((cR > bv())) | |
458 | + | then throw(((("Price spread " + toString(cR)) + " > max price spread ") + toString(bv()))) | |
436 | 459 | else true | |
437 | 460 | } | |
438 | 461 | ||
439 | 462 | ||
440 | - | func | |
441 | - | let | |
442 | - | let | |
443 | - | | |
463 | + | func cS () = { | |
464 | + | let cB = bh() | |
465 | + | let cC = bi() | |
466 | + | ay(cB, cC) | |
444 | 467 | } | |
445 | 468 | ||
446 | 469 | ||
447 | - | func | |
448 | - | let | |
449 | - | let | |
450 | - | ( | |
470 | + | func cT () = { | |
471 | + | let cO = cI() | |
472 | + | let cU = cS() | |
473 | + | (ay(aB((cO - cU)), cO) > bt()) | |
451 | 474 | } | |
452 | 475 | ||
453 | 476 | ||
454 | - | func | |
455 | - | let | |
456 | - | let | |
457 | - | let | |
477 | + | func cV (bI,cW,cB,cC) = { | |
478 | + | let cX = aB(bI) | |
479 | + | let cY = (0 > bI) | |
480 | + | let cZ = if ((cW == au)) | |
458 | 481 | then { | |
459 | - | let | |
460 | - | let | |
461 | - | let | |
462 | - | let | |
463 | - | let | |
464 | - | | |
482 | + | let da = cz(!(cY), cX, false, cB, cC) | |
483 | + | let db = da._1 | |
484 | + | let dc = da._2 | |
485 | + | let dd = da._3 | |
486 | + | let de = da._4 | |
487 | + | db | |
465 | 488 | } | |
466 | - | else | |
467 | - | | |
489 | + | else aA(cX, cI()) | |
490 | + | cZ | |
468 | 491 | } | |
469 | 492 | ||
470 | 493 | ||
471 | - | func | |
494 | + | func df (bI,dg,cB,cC,cW) = if ((bI == 0)) | |
472 | 495 | then throw("Invalid position size") | |
473 | 496 | else { | |
474 | - | let | |
475 | - | let | |
476 | - | let | |
477 | - | then ( | |
478 | - | else ( | |
479 | - | $Tuple2( | |
497 | + | let cY = (0 > bI) | |
498 | + | let cZ = cV(bI, cW, cB, cC) | |
499 | + | let dh = if (cY) | |
500 | + | then (dg - cZ) | |
501 | + | else (cZ - dg) | |
502 | + | $Tuple2(cZ, dh) | |
480 | 503 | } | |
481 | 504 | ||
482 | 505 | ||
483 | - | func | |
484 | - | let | |
485 | - | let | |
486 | - | let | |
487 | - | let | |
488 | - | let | |
489 | - | | |
506 | + | func di (bK,cW) = { | |
507 | + | let dj = bJ(bK) | |
508 | + | let bN = dj._1 | |
509 | + | let dk = dj._2 | |
510 | + | let dl = dj._3 | |
511 | + | let dm = dj._4 | |
512 | + | df(bN, dl, bh(), bi(), cW) | |
490 | 513 | } | |
491 | 514 | ||
492 | 515 | ||
493 | - | func | |
516 | + | func dn (do,dp,dq) = ay((do - dp), dq) | |
494 | 517 | ||
495 | 518 | ||
496 | - | func | |
497 | - | let | |
498 | - | let | |
499 | - | let | |
500 | - | let | |
501 | - | let | |
502 | - | let | |
503 | - | let | |
504 | - | let | |
505 | - | let | |
506 | - | let | |
507 | - | let | |
508 | - | | |
519 | + | func dr (bK,cW) = { | |
520 | + | let ds = bJ(bK) | |
521 | + | let bN = ds._1 | |
522 | + | let dk = ds._2 | |
523 | + | let dt = ds._3 | |
524 | + | let dm = ds._4 | |
525 | + | let du = di(bK, cW) | |
526 | + | let cZ = du._1 | |
527 | + | let dh = du._2 | |
528 | + | let dv = co(bN, dk, dm, dh) | |
529 | + | let cx = dv._1 | |
530 | + | let cy = dv._2 | |
531 | + | dn(cx, cy, cZ) | |
509 | 532 | } | |
510 | 533 | ||
511 | 534 | ||
512 | - | func | |
535 | + | func dw (bK) = dr(bK, au) | |
513 | 536 | ||
514 | 537 | ||
515 | - | func | |
516 | - | let | |
517 | - | let | |
518 | - | let | |
519 | - | let | |
520 | - | let | |
521 | - | if (( | |
522 | - | then | |
538 | + | func dx (bK,bI) = { | |
539 | + | let dy = aC(bs(), (ar - ay(dw(bK), bq()))) | |
540 | + | let dz = aA(aB(bI), dy) | |
541 | + | let dA = cH((bI > 0), dz, false) | |
542 | + | let dB = dA._1 | |
543 | + | let cm = dA._8 | |
544 | + | if ((bu() > cm)) | |
545 | + | then dB | |
523 | 546 | else { | |
524 | - | let | |
525 | - | let | |
526 | - | | |
547 | + | let dC = aA(aB(bI), bs()) | |
548 | + | let dD = cH((bI > 0), dC, false)._1 | |
549 | + | dD | |
527 | 550 | } | |
528 | 551 | } | |
529 | 552 | ||
530 | 553 | ||
531 | - | func | |
532 | - | let | |
533 | - | let | |
534 | - | let | |
535 | - | let | |
536 | - | let | |
537 | - | let | |
538 | - | let | |
539 | - | let | |
540 | - | let | |
541 | - | let | |
542 | - | let | |
543 | - | let | |
544 | - | let | |
545 | - | let | |
546 | - | let | |
547 | - | let | |
548 | - | let | |
549 | - | let | |
550 | - | let | |
551 | - | let | |
552 | - | let | |
553 | - | $Tuple12( | |
554 | + | func dE (bK,cA) = { | |
555 | + | let dF = bJ(bK) | |
556 | + | let bN = dF._1 | |
557 | + | let dk = dF._2 | |
558 | + | let dl = dF._3 | |
559 | + | let dm = dF._4 | |
560 | + | let dh = di(bK, au)._2 | |
561 | + | let dG = co(bN, dk, dm, dh) | |
562 | + | let cx = dG._1 | |
563 | + | let cy = dG._2 | |
564 | + | let dC = -(bN) | |
565 | + | let dH = dh | |
566 | + | let dI = -(cx) | |
567 | + | let dJ = cH((bN > 0), aB(bN), cA) | |
568 | + | let dD = dJ._1 | |
569 | + | let ca = dJ._2 | |
570 | + | let cb = dJ._3 | |
571 | + | let dK = dJ._4 | |
572 | + | let dL = dJ._5 | |
573 | + | let dM = dJ._6 | |
574 | + | let dN = dJ._7 | |
575 | + | let dO = (bl() - dl) | |
576 | + | $Tuple12(dC, cy, dH, dI, ca, cb, dK, dL, dO, dD, dM, dN) | |
554 | 577 | } | |
555 | 578 | ||
556 | 579 | ||
557 | - | func | |
558 | - | let | |
559 | - | let | |
560 | - | let | |
561 | - | let | |
562 | - | func | |
563 | - | then ( | |
564 | - | else | |
580 | + | func dP () = { | |
581 | + | let dQ = ((lastBlock.timestamp / 1000) / 60) | |
582 | + | let dR = (dQ - ao) | |
583 | + | let dS = valueOrElse(getString(this, u), "") | |
584 | + | let dT = split(dS, ",") | |
585 | + | func dU (aJ,dV) = if ((dR >= parseIntValue(dV))) | |
586 | + | then (aJ :+ parseIntValue(dV)) | |
587 | + | else aJ | |
565 | 588 | ||
566 | - | let | |
567 | - | let | |
568 | - | let | |
569 | - | let | |
570 | - | func | |
571 | - | then | |
572 | - | else | |
589 | + | let dW = { | |
590 | + | let aM = dT | |
591 | + | let aN = size(aM) | |
592 | + | let aO = nil | |
593 | + | func aP (aQ,aR) = if ((aR >= aN)) | |
594 | + | then aQ | |
595 | + | else dU(aQ, aM[aR]) | |
573 | 596 | ||
574 | - | func | |
575 | - | then | |
597 | + | func aS (aQ,aR) = if ((aR >= aN)) | |
598 | + | then aQ | |
576 | 599 | else throw("List size exceeds 20") | |
577 | 600 | ||
578 | - | | |
601 | + | aS(aP(aP(aP(aP(aP(aP(aP(aP(aP(aP(aP(aP(aP(aP(aP(aP(aP(aP(aP(aP(aO, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20) | |
579 | 602 | } | |
580 | - | let | |
581 | - | then max( | |
582 | - | else parseIntValue( | |
583 | - | let | |
584 | - | let | |
585 | - | let | |
586 | - | let | |
587 | - | let | |
588 | - | let | |
589 | - | let | |
590 | - | (( | |
603 | + | let dX = if ((size(dW) > 0)) | |
604 | + | then max(dW) | |
605 | + | else parseIntValue(dT[0]) | |
606 | + | let dY = valueOrElse(getInteger(this, v), 0) | |
607 | + | let dZ = valueOrElse(getInteger(this, ((w + "_") + toString(dY))), 0) | |
608 | + | let ea = valueOrElse(getInteger(this, ((x + "_") + toString(dY))), 0) | |
609 | + | let eb = (dZ + ((dQ - dY) * ea)) | |
610 | + | let ec = valueOrElse(getInteger(this, ((w + "_") + toString(dX))), 0) | |
611 | + | let ed = valueOrElse(getInteger(this, ((x + "_") + toString(dX))), 0) | |
612 | + | let ee = (ec + ((dR - dX) * ed)) | |
613 | + | ((eb - ee) / ao) | |
591 | 614 | } | |
592 | 615 | ||
593 | 616 | ||
594 | - | func | |
595 | - | let | |
596 | - | let | |
597 | - | let | |
598 | - | let | |
599 | - | let | |
600 | - | let | |
601 | - | $Tuple2( | |
617 | + | func ef (eg) = { | |
618 | + | let bI = bj() | |
619 | + | let eh = (bI > 0) | |
620 | + | let ei = cH(eh, aB(bI), false)._1 | |
621 | + | let ej = bi() | |
622 | + | let ek = aA(ej, eg) | |
623 | + | let el = df(bI, ei, ek, ej, au)._2 | |
624 | + | $Tuple2(ek, el) | |
602 | 625 | } | |
603 | 626 | ||
604 | 627 | ||
605 | - | func | |
606 | - | let | |
607 | - | let | |
608 | - | let | |
609 | - | if (if (( | |
628 | + | func em () = { | |
629 | + | let en = cI() | |
630 | + | let eo = dP() | |
631 | + | let ep = (eo - en) | |
632 | + | if (if ((by() == 0)) | |
610 | 633 | then true | |
611 | - | else ( | |
634 | + | else (bz() == 0)) | |
612 | 635 | then $Tuple2(0, 0) | |
613 | - | else if ((0 > | |
636 | + | else if ((0 > ep)) | |
614 | 637 | then { | |
615 | - | let | |
616 | - | let | |
617 | - | $Tuple2( | |
638 | + | let eq = ay(aA(ep, bo()), as) | |
639 | + | let er = ay(aA(eq, by()), bz()) | |
640 | + | $Tuple2(eq, er) | |
618 | 641 | } | |
619 | 642 | else { | |
620 | - | let | |
621 | - | let | |
622 | - | $Tuple2( | |
643 | + | let er = ay(aA(ep, bo()), as) | |
644 | + | let eq = ay(aA(er, bz()), by()) | |
645 | + | $Tuple2(eq, er) | |
623 | 646 | } | |
624 | 647 | } | |
625 | 648 | ||
626 | 649 | ||
627 | - | func el (em,en,eo,ep,eq,er,es,et,eu) = [IntegerEntry(n, em), IntegerEntry(o, en), IntegerEntry(p, eo), IntegerEntry(m, ep), IntegerEntry(l, eq), IntegerEntry(r, er), IntegerEntry(s, es), IntegerEntry(q, et), IntegerEntry(t, eu)] | |
650 | + | func es (bB) = { | |
651 | + | let et = bf() | |
652 | + | let eu = if ((size(bB.payments) > 1)) | |
653 | + | then { | |
654 | + | let ev = toBase58String(valueOrErrorMessage(bB.payments[1].assetId, "Invalid attached artifact")) | |
655 | + | let ew = bc(ai(), aD(ak, ev)) | |
656 | + | if ((ew == al)) | |
657 | + | then { | |
658 | + | let ex = bd(ai(), aD(aj, ev)) | |
659 | + | let ey = aA(et, ex) | |
660 | + | $Tuple2(ey, true) | |
661 | + | } | |
662 | + | else throw("Invalid attached artifact") | |
663 | + | } | |
664 | + | else $Tuple2(et, false) | |
665 | + | let ey = eu._1 | |
666 | + | let ez = eu._2 | |
667 | + | $Tuple2(ey, ez) | |
668 | + | } | |
628 | 669 | ||
629 | 670 | ||
630 | - | func | |
671 | + | func eA (eB,eC,eD,eE,eF,eG,eH,eI,eJ) = [IntegerEntry(n, eB), IntegerEntry(o, eC), IntegerEntry(p, eD), IntegerEntry(m, eE), IntegerEntry(l, eF), IntegerEntry(r, eG), IntegerEntry(s, eH), IntegerEntry(q, eI), IntegerEntry(t, eJ)] | |
631 | 672 | ||
632 | 673 | ||
633 | - | func | |
674 | + | func eK (eL,eM,eN,eO,eP) = [IntegerEntry(B, eL), IntegerEntry(z, eM), IntegerEntry(A, eN), IntegerEntry(C, eO), IntegerEntry(D, eP)] | |
634 | 675 | ||
635 | 676 | ||
636 | - | func eF (eG) = { | |
637 | - | let dJ = ((lastBlock.timestamp / 1000) / 60) | |
638 | - | let eH = valueOrElse(getInteger(this, v), 0) | |
639 | - | if ((eH > dJ)) | |
677 | + | func eQ (aF,eR,eS,eT,cu) = [IntegerEntry(aD(e, aF), eR), IntegerEntry(aD(f, aF), eS), IntegerEntry(aD(g, aF), eT), IntegerEntry(aD(h, aF), cu)] | |
678 | + | ||
679 | + | ||
680 | + | func eU (eV) = { | |
681 | + | let dQ = ((lastBlock.timestamp / 1000) / 60) | |
682 | + | let eW = valueOrElse(getInteger(this, v), 0) | |
683 | + | if ((eW > dQ)) | |
640 | 684 | then throw("TWAP out-of-order") | |
641 | 685 | else { | |
642 | - | let | |
643 | - | then | |
644 | - | else | |
645 | - | if (( | |
686 | + | let dY = if ((eW == 0)) | |
687 | + | then dQ | |
688 | + | else eW | |
689 | + | if ((dQ > eW)) | |
646 | 690 | then { | |
647 | - | let | |
648 | - | let | |
649 | - | let | |
650 | - | let | |
651 | - | [IntegerEntry( | |
691 | + | let eX = valueOrElse(getInteger(this, ((w + "_") + toString(eW))), 0) | |
692 | + | let eY = valueOrElse(getInteger(this, ((x + "_") + toString(eW))), eV) | |
693 | + | let eZ = (eX + ((dQ - dY) * eY)) | |
694 | + | let dT = aX(aV(valueOrElse(getString(this, u), "")), ao, toString(dQ)) | |
695 | + | [IntegerEntry(aD(w, toString(dQ)), eZ), IntegerEntry(aD(x, toString(dQ)), eV), IntegerEntry(aD(y, toString(dQ)), eW), IntegerEntry(v, dQ), StringEntry(u, aG(dT))] | |
652 | 696 | } | |
653 | 697 | else { | |
654 | - | let | |
655 | - | let | |
656 | - | let | |
657 | - | let | |
658 | - | [IntegerEntry( | |
698 | + | let fa = valueOrElse(getInteger(this, aD(y, toString(dQ))), 0) | |
699 | + | let eX = valueOrElse(getInteger(this, aD(w, toString(fa))), 0) | |
700 | + | let eY = valueOrElse(getInteger(this, aD(x, toString(fa))), eV) | |
701 | + | let eZ = (eX + ((dQ - fa) * eY)) | |
702 | + | [IntegerEntry(aD(w, toString(dQ)), eZ), IntegerEntry(aD(x, toString(dQ)), eV)] | |
659 | 703 | } | |
660 | 704 | } | |
661 | 705 | } | |
662 | 706 | ||
663 | 707 | ||
664 | - | func | |
708 | + | func fb (bY,bZ) = [IntegerEntry(E, bY), IntegerEntry(F, bZ)] | |
665 | 709 | ||
666 | 710 | ||
667 | - | func | |
668 | - | then throw(((((("Invalid AMM state data: " + toString( | |
669 | - | else (( | |
711 | + | func fc (bY,bZ,fd,fe,ff,fg,fh) = if (((fg - fh) != fd)) | |
712 | + | then throw(((((("Invalid AMM state data: " + toString(fg)) + " + ") + toString(fh)) + " != ") + toString(fd))) | |
713 | + | else ((fb(bY, bZ) ++ [IntegerEntry(G, fd), IntegerEntry(J, fe), IntegerEntry(K, ff), IntegerEntry(H, fg), IntegerEntry(I, fh)]) ++ eU(ay(bY, bZ))) | |
670 | 714 | ||
671 | 715 | ||
672 | - | func | |
716 | + | func fi (aF) = [DeleteEntry(aD(e, aF)), DeleteEntry(aD(f, aF)), DeleteEntry(aD(g, aF)), DeleteEntry(aD(h, aF)), IntegerEntry(aD(i, aF), lastBlock.timestamp)] | |
673 | 717 | ||
674 | 718 | ||
675 | - | func | |
676 | - | let | |
677 | - | if (( | |
678 | - | then throw(((("Unable to withdraw " + toString( | |
679 | - | else [ScriptTransfer( | |
719 | + | func fj (aF,fk) = { | |
720 | + | let fl = assetBalance(this, aa()) | |
721 | + | if ((fk > fl)) | |
722 | + | then throw(((("Unable to withdraw " + toString(fk)) + " from contract balance ") + toString(fl))) | |
723 | + | else [ScriptTransfer(aF, fk, aa())] | |
680 | 724 | } | |
681 | 725 | ||
682 | 726 | ||
683 | - | func | |
727 | + | func fm (bB) = if ((0 > bB)) | |
684 | 728 | then throw("Balance") | |
685 | - | else [IntegerEntry(d, | |
729 | + | else [IntegerEntry(d, bB)] | |
686 | 730 | ||
687 | 731 | ||
688 | - | func | |
732 | + | func fn (bB) = [ScriptTransfer(ac(), bB, aa())] | |
689 | 733 | ||
690 | 734 | ||
691 | - | @Callable(bu) | |
692 | - | func pause () = if ((bu.caller != X())) | |
735 | + | func fo (fp,bB) = if (fp) | |
736 | + | then [Burn(valueOrErrorMessage(bB.payments[1].assetId, "Invalid artifact"), 1)] | |
737 | + | else nil | |
738 | + | ||
739 | + | ||
740 | + | @Callable(bB) | |
741 | + | func pause () = if ((bB.caller != Y())) | |
693 | 742 | then throw("Invalid togglePause params") | |
694 | 743 | else [BooleanEntry(k, true)] | |
695 | 744 | ||
696 | 745 | ||
697 | 746 | ||
698 | - | @Callable( | |
699 | - | func unpause () = if (( | |
747 | + | @Callable(bB) | |
748 | + | func unpause () = if ((bB.caller != Y())) | |
700 | 749 | then throw("Invalid togglePause params") | |
701 | 750 | else [BooleanEntry(k, false)] | |
702 | 751 | ||
703 | 752 | ||
704 | 753 | ||
705 | - | @Callable( | |
706 | - | func addLiquidity ( | |
754 | + | @Callable(bB) | |
755 | + | func addLiquidity (bT) = if (if ((bB.caller != Y())) | |
707 | 756 | then true | |
708 | - | else (0 >= | |
757 | + | else (0 >= bT)) | |
709 | 758 | then throw("Invalid addLiquidity params") | |
710 | 759 | else { | |
711 | - | let | |
712 | - | let | |
713 | - | let | |
714 | - | let | |
715 | - | let | |
716 | - | let | |
717 | - | | |
760 | + | let bY = bh() | |
761 | + | let bZ = bi() | |
762 | + | let eV = ay(bY, bZ) | |
763 | + | let fq = ay(bT, eV) | |
764 | + | let fr = (bY + bT) | |
765 | + | let fs = (bZ + fq) | |
766 | + | fb(fr, fs) | |
718 | 767 | } | |
719 | 768 | ||
720 | 769 | ||
721 | 770 | ||
722 | - | @Callable( | |
723 | - | func removeLiquidity ( | |
771 | + | @Callable(bB) | |
772 | + | func removeLiquidity (bT) = if (if ((bB.caller != Y())) | |
724 | 773 | then true | |
725 | - | else (0 >= | |
774 | + | else (0 >= bT)) | |
726 | 775 | then throw("Invalid removeLiquidity params") | |
727 | 776 | else { | |
728 | - | let | |
729 | - | let | |
730 | - | let | |
731 | - | let | |
732 | - | let | |
733 | - | let | |
734 | - | | |
777 | + | let bY = bh() | |
778 | + | let bZ = bi() | |
779 | + | let eV = ay(bY, bZ) | |
780 | + | let ft = ay(bT, eV) | |
781 | + | let fr = (bY - bT) | |
782 | + | let fs = (bZ - ft) | |
783 | + | fb(fr, fs) | |
735 | 784 | } | |
736 | 785 | ||
737 | 786 | ||
738 | 787 | ||
739 | - | @Callable( | |
740 | - | func changeSettings ( | |
788 | + | @Callable(bB) | |
789 | + | func changeSettings (eB,eC,eD,eE,eF,eG,eH,eI,eJ) = if ((bB.caller != Y())) | |
741 | 790 | then throw("Invalid changeSettings params") | |
742 | - | else | |
791 | + | else eA(eB, eC, eD, eE, eF, eG, eH, eI, eJ) | |
743 | 792 | ||
744 | 793 | ||
745 | 794 | ||
746 | - | @Callable( | |
747 | - | func initialize ( | |
795 | + | @Callable(bB) | |
796 | + | func initialize (bY,bZ,eE,eB,eC,eD,eF,fu,fv,fw,eG,eH,eI,eJ) = if (if (if (if (if (if (if (if (if (if (if (if ((0 >= bY)) | |
748 | 797 | then true | |
749 | - | else (0 >= | |
798 | + | else (0 >= bZ)) | |
750 | 799 | then true | |
751 | - | else (0 >= | |
800 | + | else (0 >= eE)) | |
752 | 801 | then true | |
753 | - | else (0 >= | |
802 | + | else (0 >= eB)) | |
754 | 803 | then true | |
755 | - | else (0 >= | |
804 | + | else (0 >= eC)) | |
756 | 805 | then true | |
757 | - | else (0 >= | |
806 | + | else (0 >= eD)) | |
758 | 807 | then true | |
759 | - | else (0 >= | |
808 | + | else (0 >= eF)) | |
760 | 809 | then true | |
761 | - | else (0 >= | |
810 | + | else (0 >= eG)) | |
762 | 811 | then true | |
763 | - | else (0 >= | |
812 | + | else (0 >= eH)) | |
764 | 813 | then true | |
765 | - | else (0 >= | |
814 | + | else (0 >= eI)) | |
766 | 815 | then true | |
767 | - | else (0 >= | |
816 | + | else (0 >= eJ)) | |
768 | 817 | then true | |
769 | - | else | |
818 | + | else bP()) | |
770 | 819 | then throw("Invalid initialize parameters") | |
771 | - | else (((( | |
820 | + | else ((((fc(bY, bZ, 0, 0, 0, 0, 0) ++ eA(eB, eC, eD, eE, eF, eG, eH, eI, eJ)) ++ eK((lastBlock.timestamp + eE), 0, 0, 0, 0)) ++ fm(0)) ++ [BooleanEntry(j, true), StringEntry(c, fu), StringEntry(a, fv), StringEntry(L, fw)]) | |
772 | 821 | ||
773 | 822 | ||
774 | 823 | ||
775 | - | @Callable( | |
776 | - | func setInitMarginRatio ( | |
824 | + | @Callable(bB) | |
825 | + | func setInitMarginRatio (eB) = if (if ((0 >= eB)) | |
777 | 826 | then true | |
778 | - | else !( | |
827 | + | else !(bP())) | |
779 | 828 | then throw("Invalid setInitMarginRatio parameters") | |
780 | - | else | |
829 | + | else eA(eB, bq(), br(), bn(), bf(), bt(), bu(), bs(), bv()) | |
781 | 830 | ||
782 | 831 | ||
783 | 832 | ||
784 | - | @Callable( | |
785 | - | func decreasePosition ( | |
833 | + | @Callable(bB) | |
834 | + | func decreasePosition (fk,fx,fy) = if (if (if (if (if ((0 >= fk)) | |
786 | 835 | then true | |
787 | - | else !( | |
836 | + | else !(bP())) | |
788 | 837 | then true | |
789 | - | else !( | |
838 | + | else !(bC(ay(ar, fx), bg(), true))) | |
790 | 839 | then true | |
791 | - | else !( | |
840 | + | else !(bO(toString(bB.caller)))) | |
792 | 841 | then true | |
793 | - | else | |
842 | + | else bQ()) | |
794 | 843 | then throw("Invalid decreasePosition parameters") | |
795 | 844 | else { | |
796 | - | let | |
797 | - | let | |
798 | - | let | |
799 | - | let | |
800 | - | let | |
801 | - | let | |
802 | - | then | |
803 | - | else | |
804 | - | let | |
805 | - | let | |
806 | - | let | |
807 | - | let | |
808 | - | let | |
809 | - | let | |
845 | + | let fz = bJ(toString(bB.caller)) | |
846 | + | let fA = fz._1 | |
847 | + | let fB = fz._2 | |
848 | + | let fC = fz._3 | |
849 | + | let fD = fz._4 | |
850 | + | let fE = if ((fA > 0)) | |
851 | + | then an | |
852 | + | else am | |
853 | + | let fF = (fE == am) | |
854 | + | let fG = aA(fk, fx) | |
855 | + | let fH = di(toString(bB.caller), au) | |
856 | + | let fI = fH._1 | |
857 | + | let dh = fH._2 | |
858 | + | let fJ = if ((fI > fG)) | |
810 | 859 | then { | |
811 | - | let | |
812 | - | let | |
813 | - | let | |
814 | - | let | |
815 | - | let | |
816 | - | let | |
817 | - | let | |
818 | - | if (if (( | |
819 | - | then ( | |
860 | + | let fK = bX(fF, fG) | |
861 | + | let dC = fK._1 | |
862 | + | let ca = fK._2 | |
863 | + | let cb = fK._3 | |
864 | + | let dK = fK._4 | |
865 | + | let dL = fK._5 | |
866 | + | let fL = aB(dC) | |
867 | + | if (if ((fy != 0)) | |
868 | + | then (fy > fL) | |
820 | 869 | else false) | |
821 | - | then throw(((("Too little base asset exchanged, got " + toString( | |
870 | + | then throw(((("Too little base asset exchanged, got " + toString(fL)) + " expected ") + toString(fy))) | |
822 | 871 | else { | |
823 | - | let | |
824 | - | let | |
825 | - | let | |
826 | - | let | |
827 | - | let | |
828 | - | let | |
829 | - | let | |
830 | - | let | |
831 | - | then (( | |
832 | - | else (( | |
833 | - | let | |
834 | - | $Tuple11( | |
835 | - | then | |
836 | - | else 0)), ( | |
837 | - | then | |
872 | + | let dH = ay(aA(dh, fL), aB(fA)) | |
873 | + | let fM = co(fA, fB, fD, dH) | |
874 | + | let cx = fM._1 | |
875 | + | let cy = fM._2 | |
876 | + | let ct = fM._3 | |
877 | + | let dD = fG | |
878 | + | let fN = (dh - dH) | |
879 | + | let fO = if ((fA > 0)) | |
880 | + | then ((fI - dD) - fN) | |
881 | + | else ((fN + fI) - dD) | |
882 | + | let fP = (fA + dC) | |
883 | + | $Tuple11(fP, cx, aB(fO), bH(fP), cb, ca, dK, dL, (bl() - fG), (bz() - (if ((fP > 0)) | |
884 | + | then aB(dC) | |
885 | + | else 0)), (by() - (if ((0 > fP)) | |
886 | + | then aB(dC) | |
838 | 887 | else 0))) | |
839 | 888 | } | |
840 | 889 | } | |
841 | 890 | else throw("Close position first") | |
842 | - | let | |
843 | - | let | |
844 | - | let | |
845 | - | let | |
846 | - | let | |
847 | - | let | |
848 | - | let | |
849 | - | let | |
850 | - | let | |
851 | - | let | |
852 | - | let | |
853 | - | let | |
854 | - | if (( | |
855 | - | then ( | |
891 | + | let fP = fJ._1 | |
892 | + | let fQ = fJ._2 | |
893 | + | let fR = fJ._3 | |
894 | + | let fS = fJ._4 | |
895 | + | let cb = fJ._5 | |
896 | + | let ca = fJ._6 | |
897 | + | let dK = fJ._7 | |
898 | + | let dL = fJ._8 | |
899 | + | let dO = fJ._9 | |
900 | + | let dM = fJ._10 | |
901 | + | let dN = fJ._11 | |
902 | + | let fT = invoke(ae(), "notifyNotional", [toString(bB.caller), fR], nil) | |
903 | + | if ((fT == fT)) | |
904 | + | then (eQ(toString(bB.caller), fP, fQ, fR, fS) ++ fc(ca, cb, dK, dL, dO, dM, dN)) | |
856 | 905 | else throw("Strict value is not equal to itself.") | |
857 | 906 | } | |
858 | 907 | ||
859 | 908 | ||
860 | 909 | ||
861 | - | @Callable( | |
862 | - | func increasePosition ( | |
863 | - | let | |
864 | - | if (if (if (if (if (if (if (( | |
865 | - | then ( | |
910 | + | @Callable(bB) | |
911 | + | func increasePosition (fE,fx,fy,fU) = { | |
912 | + | let fV = bB.payments[0].amount | |
913 | + | if (if (if (if (if (if (if ((fE != am)) | |
914 | + | then (fE != an) | |
866 | 915 | else false) | |
867 | 916 | then true | |
868 | - | else (0 >= | |
917 | + | else (0 >= fV)) | |
869 | 918 | then true | |
870 | - | else !( | |
919 | + | else !(bP())) | |
871 | 920 | then true | |
872 | - | else ( | |
921 | + | else (bB.payments[0].assetId != aa())) | |
873 | 922 | then true | |
874 | - | else !( | |
923 | + | else !(bC(ay(ar, fx), bg(), true))) | |
875 | 924 | then true | |
876 | - | else | |
925 | + | else bQ()) | |
877 | 926 | then throw("Invalid increasePosition parameters") | |
878 | 927 | else { | |
879 | - | let bD = toString(bu.caller) | |
880 | - | let fF = av(fE, aY()) | |
881 | - | let fG = invoke(af(), "acceptPaymentWithLink", [bD, fD], [AttachedPayment(Z(), fF)]) | |
882 | - | if ((fG == fG)) | |
928 | + | let bK = toString(bB.caller) | |
929 | + | let et = bf() | |
930 | + | let fW = es(bB) | |
931 | + | let ey = fW._1 | |
932 | + | let ez = fW._2 | |
933 | + | let fX = aA(fV, ey) | |
934 | + | let fY = invoke(ag(), "acceptPaymentWithLink", [bK, fU], [AttachedPayment(aa(), fX)]) | |
935 | + | if ((fY == fY)) | |
883 | 936 | then { | |
884 | - | let | |
885 | - | let | |
886 | - | if ($isInstanceOf( | |
937 | + | let fZ = { | |
938 | + | let bM = fY | |
939 | + | if ($isInstanceOf(bM, "Int")) | |
887 | 940 | then { | |
888 | - | let | |
889 | - | | |
941 | + | let ga = bM | |
942 | + | ga | |
890 | 943 | } | |
891 | 944 | else throw("Invalid referrerFee") | |
892 | 945 | } | |
893 | - | let | |
894 | - | let | |
895 | - | let | |
896 | - | let | |
897 | - | let | |
898 | - | let | |
899 | - | let | |
900 | - | let | |
901 | - | let | |
902 | - | then ( | |
903 | - | else ( | |
904 | - | let | |
905 | - | then | |
946 | + | let fk = (fV - fX) | |
947 | + | let gb = (fX - fZ) | |
948 | + | let gc = bJ(bK) | |
949 | + | let fA = gc._1 | |
950 | + | let fB = gc._2 | |
951 | + | let fC = gc._3 | |
952 | + | let fD = gc._4 | |
953 | + | let gd = (fA == 0) | |
954 | + | let ge = if ((fA > 0)) | |
955 | + | then (fE == am) | |
956 | + | else (fE == an) | |
957 | + | let gf = if (!(gd)) | |
958 | + | then ge | |
906 | 959 | else false | |
907 | - | let | |
908 | - | let | |
960 | + | let fF = (fE == am) | |
961 | + | let gg = if (if (gd) | |
909 | 962 | then true | |
910 | - | else | |
963 | + | else gf) | |
911 | 964 | then { | |
912 | - | let | |
913 | - | let | |
914 | - | let | |
915 | - | let | |
916 | - | let | |
917 | - | let | |
918 | - | let | |
919 | - | if (if (( | |
920 | - | then ( | |
965 | + | let fG = aA(fk, fx) | |
966 | + | let gh = bX(fF, fG) | |
967 | + | let cd = gh._1 | |
968 | + | let ca = gh._2 | |
969 | + | let cb = gh._3 | |
970 | + | let dK = gh._4 | |
971 | + | let dL = gh._5 | |
972 | + | if (if ((fy != 0)) | |
973 | + | then (fy > aB(cd)) | |
921 | 974 | else false) | |
922 | - | then throw(((("Limit error: " + toString( | |
975 | + | then throw(((("Limit error: " + toString(aB(cd))) + " < ") + toString(fy))) | |
923 | 976 | else { | |
924 | - | let | |
925 | - | let | |
926 | - | let | |
927 | - | let | |
928 | - | let | |
929 | - | let | |
930 | - | if (!( | |
977 | + | let fP = (fA + cd) | |
978 | + | let gi = ay(fG, fx) | |
979 | + | let gj = co(fA, fB, fD, gi) | |
980 | + | let cx = gj._1 | |
981 | + | let dc = gj._2 | |
982 | + | let dd = gj._3 | |
983 | + | if (!(cN(ca, cb))) | |
931 | 984 | then throw("Over max spread limit") | |
932 | - | else $Tuple11( | |
933 | - | then | |
934 | - | else 0)), ( | |
935 | - | then | |
985 | + | else $Tuple11(fP, cx, (fC + fG), bH(fP), cb, ca, dK, dL, (bl() + fG), (bz() + (if ((fP > 0)) | |
986 | + | then aB(cd) | |
987 | + | else 0)), (by() + (if ((0 > fP)) | |
988 | + | then aB(cd) | |
936 | 989 | else 0))) | |
937 | 990 | } | |
938 | 991 | } | |
939 | 992 | else { | |
940 | - | let | |
941 | - | let | |
942 | - | let | |
943 | - | let | |
944 | - | if (( | |
993 | + | let fG = aA(fk, fx) | |
994 | + | let gk = di(toString(bB.caller), au) | |
995 | + | let fI = gk._1 | |
996 | + | let dh = gk._2 | |
997 | + | if ((fI > fG)) | |
945 | 998 | then throw("Use decreasePosition to decrease position size") | |
946 | 999 | else throw("Close position first") | |
947 | 1000 | } | |
948 | - | let | |
949 | - | let | |
950 | - | let | |
951 | - | let | |
952 | - | let | |
953 | - | let | |
954 | - | let | |
955 | - | let | |
956 | - | let | |
957 | - | let | |
958 | - | let | |
959 | - | let | |
960 | - | let | |
961 | - | let | |
962 | - | if (( | |
1001 | + | let fP = gg._1 | |
1002 | + | let fQ = gg._2 | |
1003 | + | let fR = gg._3 | |
1004 | + | let fS = gg._4 | |
1005 | + | let cb = gg._5 | |
1006 | + | let ca = gg._6 | |
1007 | + | let dK = gg._7 | |
1008 | + | let dL = gg._8 | |
1009 | + | let dO = gg._9 | |
1010 | + | let dM = gg._10 | |
1011 | + | let dN = gg._11 | |
1012 | + | let gl = (gb / 2) | |
1013 | + | let gm = (gb - gl) | |
1014 | + | let gn = invoke(ah(), "deposit", nil, [AttachedPayment(aa(), fk)]) | |
1015 | + | if ((gn == gn)) | |
963 | 1016 | then { | |
964 | - | let | |
965 | - | if (( | |
1017 | + | let go = invoke(ad(), "deposit", nil, [AttachedPayment(aa(), gm)]) | |
1018 | + | if ((go == go)) | |
966 | 1019 | then { | |
967 | - | let | |
968 | - | if (( | |
1020 | + | let gp = invoke(ae(), "notifyFees", [bK, gb], nil) | |
1021 | + | if ((gp == gp)) | |
969 | 1022 | then { | |
970 | - | let | |
971 | - | if (( | |
972 | - | then ((( | |
1023 | + | let fT = invoke(ae(), "notifyNotional", [bK, fR], nil) | |
1024 | + | if ((fT == fT)) | |
1025 | + | then ((((eQ(bK, fP, fQ, fR, fS) ++ fc(ca, cb, dK, dL, dO, dM, dN)) ++ fn(gl)) ++ fm((be() + fk))) ++ fo(ez, bB)) | |
973 | 1026 | else throw("Strict value is not equal to itself.") | |
974 | 1027 | } | |
975 | 1028 | else throw("Strict value is not equal to itself.") | |
976 | 1029 | } | |
977 | 1030 | else throw("Strict value is not equal to itself.") | |
978 | 1031 | } | |
979 | 1032 | else throw("Strict value is not equal to itself.") | |
980 | 1033 | } | |
981 | 1034 | else throw("Strict value is not equal to itself.") | |
982 | 1035 | } | |
983 | 1036 | } | |
984 | 1037 | ||
985 | 1038 | ||
986 | 1039 | ||
987 | - | @Callable( | |
1040 | + | @Callable(bB) | |
988 | 1041 | func addMargin () = { | |
989 | - | let | |
990 | - | if (if (if (if (( | |
1042 | + | let fV = bB.payments[0].amount | |
1043 | + | if (if (if (if ((bB.payments[0].assetId != aa())) | |
991 | 1044 | then true | |
992 | - | else !( | |
1045 | + | else !(bO(toString(bB.caller)))) | |
993 | 1046 | then true | |
994 | - | else !( | |
1047 | + | else !(bP())) | |
995 | 1048 | then true | |
996 | - | else | |
1049 | + | else bQ()) | |
997 | 1050 | then throw("Invalid addMargin parameters") | |
998 | 1051 | else { | |
999 | - | let bD = toString(bu.caller) | |
1000 | - | let fF = av(fE, aY()) | |
1001 | - | let fG = invoke(af(), "acceptPayment", [bD], [AttachedPayment(Z(), fF)]) | |
1002 | - | if ((fG == fG)) | |
1052 | + | let bK = toString(bB.caller) | |
1053 | + | let gq = es(bB) | |
1054 | + | let ey = gq._1 | |
1055 | + | let ez = gq._2 | |
1056 | + | let fX = aA(fV, ey) | |
1057 | + | let fY = invoke(ag(), "acceptPayment", [bK], [AttachedPayment(aa(), fX)]) | |
1058 | + | if ((fY == fY)) | |
1003 | 1059 | then { | |
1004 | - | let | |
1005 | - | let | |
1006 | - | if ($isInstanceOf( | |
1060 | + | let fZ = { | |
1061 | + | let bM = fY | |
1062 | + | if ($isInstanceOf(bM, "Int")) | |
1007 | 1063 | then { | |
1008 | - | let | |
1009 | - | | |
1064 | + | let ga = bM | |
1065 | + | ga | |
1010 | 1066 | } | |
1011 | 1067 | else throw("Invalid referrerFee") | |
1012 | 1068 | } | |
1013 | - | let | |
1014 | - | let | |
1015 | - | let | |
1016 | - | let | |
1017 | - | let | |
1018 | - | let | |
1019 | - | let | |
1020 | - | let | |
1021 | - | let | |
1022 | - | let | |
1023 | - | if (( | |
1069 | + | let gb = (fX - fZ) | |
1070 | + | let fk = (fV - fX) | |
1071 | + | let gr = bJ(bK) | |
1072 | + | let fA = gr._1 | |
1073 | + | let fB = gr._2 | |
1074 | + | let fC = gr._3 | |
1075 | + | let fD = gr._4 | |
1076 | + | let gl = (gb / 2) | |
1077 | + | let gm = (gb - gl) | |
1078 | + | let gn = invoke(ah(), "deposit", nil, [AttachedPayment(aa(), fk)]) | |
1079 | + | if ((gn == gn)) | |
1024 | 1080 | then { | |
1025 | - | let | |
1026 | - | if (( | |
1081 | + | let go = invoke(ad(), "deposit", nil, [AttachedPayment(aa(), gm)]) | |
1082 | + | if ((go == go)) | |
1027 | 1083 | then { | |
1028 | - | let | |
1029 | - | if (( | |
1030 | - | then (( | |
1084 | + | let gp = invoke(ae(), "notifyFees", [bK, gb], nil) | |
1085 | + | if ((gp == gp)) | |
1086 | + | then (((eQ(bK, fA, (fB + fk), fC, fD) ++ fn(gl)) ++ fm((be() + fk))) ++ fo(ez, bB)) | |
1031 | 1087 | else throw("Strict value is not equal to itself.") | |
1032 | 1088 | } | |
1033 | 1089 | else throw("Strict value is not equal to itself.") | |
1034 | 1090 | } | |
1035 | 1091 | else throw("Strict value is not equal to itself.") | |
1036 | 1092 | } | |
1037 | 1093 | else throw("Strict value is not equal to itself.") | |
1038 | 1094 | } | |
1039 | 1095 | } | |
1040 | 1096 | ||
1041 | 1097 | ||
1042 | 1098 | ||
1043 | - | @Callable( | |
1044 | - | func removeMargin ( | |
1099 | + | @Callable(bB) | |
1100 | + | func removeMargin (fk) = if (if (if (if ((0 >= fk)) | |
1045 | 1101 | then true | |
1046 | - | else !( | |
1102 | + | else !(bO(toString(bB.caller)))) | |
1047 | 1103 | then true | |
1048 | - | else !( | |
1104 | + | else !(bP())) | |
1049 | 1105 | then true | |
1050 | - | else | |
1106 | + | else bQ()) | |
1051 | 1107 | then throw("Invalid removeMargin parameters") | |
1052 | 1108 | else { | |
1053 | - | let | |
1054 | - | let | |
1055 | - | let | |
1056 | - | let | |
1057 | - | let | |
1058 | - | let | |
1059 | - | let | |
1060 | - | let | |
1061 | - | let | |
1062 | - | if (( | |
1109 | + | let gs = bJ(toString(bB.caller)) | |
1110 | + | let fA = gs._1 | |
1111 | + | let fB = gs._2 | |
1112 | + | let fC = gs._3 | |
1113 | + | let fD = gs._4 | |
1114 | + | let gt = -(fk) | |
1115 | + | let gu = co(fA, fB, fD, gt) | |
1116 | + | let cx = gu._1 | |
1117 | + | let cy = gu._2 | |
1118 | + | if ((cy != 0)) | |
1063 | 1119 | then throw("Invalid removed margin amount") | |
1064 | 1120 | else { | |
1065 | - | let | |
1066 | - | if (!( | |
1067 | - | then throw(((("Too much margin removed: " + toString( | |
1121 | + | let gv = dn(cx, cy, fC) | |
1122 | + | if (!(bC(gv, bg(), true))) | |
1123 | + | then throw(((("Too much margin removed: " + toString(gv)) + " < ") + toString(bg()))) | |
1068 | 1124 | else { | |
1069 | - | let | |
1070 | - | if (( | |
1071 | - | then (( | |
1125 | + | let gw = invoke(ah(), "withdraw", [toBase58String(aa()), fk], nil) | |
1126 | + | if ((gw == gw)) | |
1127 | + | then ((eQ(toString(bB.caller), fA, cx, fC, bH(fA)) ++ fj(bB.caller, fk)) ++ fm((be() - fk))) | |
1072 | 1128 | else throw("Strict value is not equal to itself.") | |
1073 | 1129 | } | |
1074 | 1130 | } | |
1075 | 1131 | } | |
1076 | 1132 | ||
1077 | 1133 | ||
1078 | 1134 | ||
1079 | - | @Callable( | |
1135 | + | @Callable(bB) | |
1080 | 1136 | func closePosition () = { | |
1081 | - | let | |
1082 | - | let | |
1083 | - | if (if (if (!( | |
1137 | + | let gx = bA(bB) | |
1138 | + | let gy = valueOrErrorMessage(addressFromString(gx), "Invalid caller") | |
1139 | + | if (if (if (!(bO(gx))) | |
1084 | 1140 | then true | |
1085 | - | else !( | |
1141 | + | else !(bP())) | |
1086 | 1142 | then true | |
1087 | - | else | |
1143 | + | else bQ()) | |
1088 | 1144 | then throw("Invalid closePosition parameters") | |
1089 | 1145 | else { | |
1090 | - | let | |
1091 | - | let | |
1092 | - | let | |
1093 | - | let | |
1094 | - | let | |
1095 | - | let | |
1096 | - | let | |
1097 | - | let | |
1098 | - | let | |
1099 | - | let | |
1100 | - | let | |
1101 | - | let | |
1102 | - | let | |
1103 | - | if (( | |
1146 | + | let gz = dE(gx, true) | |
1147 | + | let dc = gz._1 | |
1148 | + | let gA = gz._2 | |
1149 | + | let dH = gz._3 | |
1150 | + | let dI = gz._4 | |
1151 | + | let ca = gz._5 | |
1152 | + | let cb = gz._6 | |
1153 | + | let dK = gz._7 | |
1154 | + | let dL = gz._8 | |
1155 | + | let dO = gz._9 | |
1156 | + | let dd = gz._10 | |
1157 | + | let dM = gz._11 | |
1158 | + | let dN = gz._12 | |
1159 | + | if ((gA > 0)) | |
1104 | 1160 | then throw("Unable to close position with bad debt") | |
1105 | 1161 | else { | |
1106 | - | let | |
1107 | - | let | |
1108 | - | let | |
1109 | - | then $Tuple2(0, | |
1110 | - | else $Tuple2( | |
1111 | - | let | |
1112 | - | let | |
1113 | - | let | |
1162 | + | let gB = aB(dI) | |
1163 | + | let gC = (be() - gB) | |
1164 | + | let gD = if ((0 > gC)) | |
1165 | + | then $Tuple2(0, aB(gC)) | |
1166 | + | else $Tuple2(gC, 0) | |
1167 | + | let gE = gD._1 | |
1168 | + | let gF = gD._2 | |
1169 | + | let ga = if ((gF > 0)) | |
1114 | 1170 | then { | |
1115 | - | let | |
1116 | - | if (( | |
1171 | + | let gG = invoke(ad(), "withdraw", [gF], nil) | |
1172 | + | if ((gG == gG)) | |
1117 | 1173 | then nil | |
1118 | 1174 | else throw("Strict value is not equal to itself.") | |
1119 | 1175 | } | |
1120 | 1176 | else nil | |
1121 | - | if (( | |
1177 | + | if ((ga == ga)) | |
1122 | 1178 | then { | |
1123 | - | let | |
1124 | - | if (( | |
1179 | + | let gw = invoke(ah(), "withdraw", [toBase58String(aa()), (gB - gF)], nil) | |
1180 | + | if ((gw == gw)) | |
1125 | 1181 | then { | |
1126 | - | let | |
1127 | - | if (( | |
1128 | - | then ((( | |
1182 | + | let fT = invoke(ae(), "notifyNotional", [gx, 0], nil) | |
1183 | + | if ((fT == fT)) | |
1184 | + | then (((fi(gx) ++ fc(ca, cb, dK, dL, dO, dM, dN)) ++ fj(gy, gB)) ++ fm(gE)) | |
1129 | 1185 | else throw("Strict value is not equal to itself.") | |
1130 | 1186 | } | |
1131 | 1187 | else throw("Strict value is not equal to itself.") | |
1132 | 1188 | } | |
1133 | 1189 | else throw("Strict value is not equal to itself.") | |
1134 | 1190 | } | |
1135 | 1191 | } | |
1136 | 1192 | } | |
1137 | 1193 | ||
1138 | 1194 | ||
1139 | 1195 | ||
1140 | - | @Callable( | |
1141 | - | func liquidate ( | |
1142 | - | let | |
1143 | - | let | |
1196 | + | @Callable(bB) | |
1197 | + | func liquidate (bK) = { | |
1198 | + | let gH = dr(bK, au) | |
1199 | + | let gv = if (cT()) | |
1144 | 1200 | then { | |
1145 | - | let | |
1146 | - | | |
1201 | + | let gI = dr(bK, av) | |
1202 | + | aC(gH, gI) | |
1147 | 1203 | } | |
1148 | - | else | |
1149 | - | if (if (if (if (!( | |
1204 | + | else gH | |
1205 | + | if (if (if (if (!(bC(gv, bq(), false))) | |
1150 | 1206 | then true | |
1151 | - | else !( | |
1207 | + | else !(bO(bK))) | |
1152 | 1208 | then true | |
1153 | - | else !( | |
1209 | + | else !(bP())) | |
1154 | 1210 | then true | |
1155 | - | else | |
1211 | + | else bQ()) | |
1156 | 1212 | then throw("Unable to liquidate") | |
1157 | - | else if (if (if (( | |
1158 | - | then ( | |
1213 | + | else if (if (if ((gH > br())) | |
1214 | + | then (bs() > 0) | |
1159 | 1215 | else false) | |
1160 | - | then ( | |
1216 | + | then (ar > bs()) | |
1161 | 1217 | else false) | |
1162 | 1218 | then { | |
1163 | - | let | |
1164 | - | let | |
1165 | - | let | |
1166 | - | let | |
1167 | - | let | |
1168 | - | let | |
1169 | - | then | |
1170 | - | else | |
1171 | - | let | |
1172 | - | let | |
1173 | - | let | |
1174 | - | let | |
1175 | - | let | |
1176 | - | let | |
1177 | - | let | |
1178 | - | let | |
1179 | - | let | |
1180 | - | let | |
1181 | - | let | |
1182 | - | let | |
1183 | - | let | |
1184 | - | let | |
1185 | - | let | |
1186 | - | let | |
1187 | - | let | |
1188 | - | let | |
1189 | - | then (( | |
1190 | - | else (( | |
1191 | - | let | |
1192 | - | let | |
1193 | - | let | |
1194 | - | let | |
1195 | - | let | |
1196 | - | let | |
1197 | - | let | |
1198 | - | let | |
1199 | - | let | |
1200 | - | let | |
1201 | - | then $Tuple2(0, | |
1202 | - | else $Tuple2( | |
1203 | - | let | |
1204 | - | let | |
1205 | - | let | |
1219 | + | let gJ = bJ(bK) | |
1220 | + | let fA = gJ._1 | |
1221 | + | let fB = gJ._2 | |
1222 | + | let fC = gJ._3 | |
1223 | + | let fD = gJ._4 | |
1224 | + | let fE = if ((fA > 0)) | |
1225 | + | then an | |
1226 | + | else am | |
1227 | + | let fF = (fE == am) | |
1228 | + | let dD = dx(bK, fA) | |
1229 | + | let gK = di(bK, au) | |
1230 | + | let fI = gK._1 | |
1231 | + | let dh = gK._2 | |
1232 | + | let gL = bX(fF, dD) | |
1233 | + | let dC = gL._1 | |
1234 | + | let ca = gL._2 | |
1235 | + | let cb = gL._3 | |
1236 | + | let dK = gL._4 | |
1237 | + | let dL = gL._5 | |
1238 | + | let dH = ay(aA(dh, aB(dC)), aB(fA)) | |
1239 | + | let gM = co(fA, fB, fD, dH) | |
1240 | + | let cx = gM._1 | |
1241 | + | let cy = gM._2 | |
1242 | + | let ct = gM._3 | |
1243 | + | let fN = (dh - dH) | |
1244 | + | let fO = if ((fA > 0)) | |
1245 | + | then ((fI - dD) - fN) | |
1246 | + | else ((fN + fI) - dD) | |
1247 | + | let gN = aA(dD, br()) | |
1248 | + | let gO = (gN / 2) | |
1249 | + | let gm = (gN - gO) | |
1250 | + | let gP = (cx - gN) | |
1251 | + | let fP = (fA + dC) | |
1252 | + | let fR = aB(fO) | |
1253 | + | let gQ = bH(fP) | |
1254 | + | let dO = (bl() - dD) | |
1255 | + | let gC = (be() - gN) | |
1256 | + | let gR = if ((0 > gC)) | |
1257 | + | then $Tuple2(0, aB(gC)) | |
1258 | + | else $Tuple2(gC, 0) | |
1259 | + | let gS = gR._1 | |
1260 | + | let gT = gR._2 | |
1261 | + | let ga = if ((gT > 0)) | |
1206 | 1262 | then { | |
1207 | - | let | |
1208 | - | if (( | |
1263 | + | let gG = invoke(ad(), "withdraw", [gT], nil) | |
1264 | + | if ((gG == gG)) | |
1209 | 1265 | then nil | |
1210 | 1266 | else throw("Strict value is not equal to itself.") | |
1211 | 1267 | } | |
1212 | 1268 | else nil | |
1213 | - | if (( | |
1269 | + | if ((ga == ga)) | |
1214 | 1270 | then { | |
1215 | - | let | |
1216 | - | if (( | |
1271 | + | let gw = invoke(ah(), "withdraw", [toBase58String(aa()), (gN - gT)], nil) | |
1272 | + | if ((gw == gw)) | |
1217 | 1273 | then { | |
1218 | - | let | |
1219 | - | if (( | |
1274 | + | let go = invoke(ad(), "deposit", nil, [AttachedPayment(aa(), gm)]) | |
1275 | + | if ((go == go)) | |
1220 | 1276 | then { | |
1221 | - | let | |
1222 | - | if (( | |
1223 | - | then ((( | |
1224 | - | then | |
1225 | - | else 0)), ( | |
1226 | - | then | |
1227 | - | else 0)))) ++ | |
1277 | + | let fT = invoke(ae(), "notifyNotional", [bK, fR], nil) | |
1278 | + | if ((fT == fT)) | |
1279 | + | then (((eQ(bK, fP, gP, fR, gQ) ++ fc(ca, cb, dK, dL, dO, (bz() - (if ((fP > 0)) | |
1280 | + | then aB(dC) | |
1281 | + | else 0)), (by() - (if ((0 > fP)) | |
1282 | + | then aB(dC) | |
1283 | + | else 0)))) ++ fj(bB.caller, gO)) ++ fm(gS)) | |
1228 | 1284 | else throw("Strict value is not equal to itself.") | |
1229 | 1285 | } | |
1230 | 1286 | else throw("Strict value is not equal to itself.") | |
1231 | 1287 | } | |
1232 | 1288 | else throw("Strict value is not equal to itself.") | |
1233 | 1289 | } | |
1234 | 1290 | else throw("Strict value is not equal to itself.") | |
1235 | 1291 | } | |
1236 | 1292 | else { | |
1237 | - | let | |
1238 | - | let | |
1239 | - | let | |
1240 | - | let | |
1241 | - | let | |
1242 | - | let | |
1243 | - | let | |
1244 | - | let | |
1245 | - | let | |
1246 | - | let | |
1247 | - | let | |
1248 | - | let | |
1249 | - | let | |
1250 | - | let | |
1251 | - | let | |
1252 | - | let | |
1253 | - | let | |
1254 | - | let | |
1255 | - | then $Tuple2(0, | |
1256 | - | else $Tuple2( | |
1257 | - | let | |
1258 | - | let | |
1259 | - | let | |
1293 | + | let gU = dE(bK, false) | |
1294 | + | let dc = gU._1 | |
1295 | + | let cy = gU._2 | |
1296 | + | let dd = gU._3 | |
1297 | + | let de = gU._4 | |
1298 | + | let ca = gU._5 | |
1299 | + | let cb = gU._6 | |
1300 | + | let dK = gU._7 | |
1301 | + | let dL = gU._8 | |
1302 | + | let dO = gU._9 | |
1303 | + | let dD = gU._10 | |
1304 | + | let dM = gU._11 | |
1305 | + | let dN = gU._12 | |
1306 | + | let gN = aA(dD, br()) | |
1307 | + | let gO = (gN / 2) | |
1308 | + | let gm = (gN - gO) | |
1309 | + | let gC = (be() - gN) | |
1310 | + | let gV = if ((0 > gC)) | |
1311 | + | then $Tuple2(0, aB(gC)) | |
1312 | + | else $Tuple2(gC, 0) | |
1313 | + | let gS = gV._1 | |
1314 | + | let gT = gV._2 | |
1315 | + | let ga = if ((gT > 0)) | |
1260 | 1316 | then { | |
1261 | - | let | |
1262 | - | if (( | |
1317 | + | let gG = invoke(ad(), "withdraw", [gT], nil) | |
1318 | + | if ((gG == gG)) | |
1263 | 1319 | then nil | |
1264 | 1320 | else throw("Strict value is not equal to itself.") | |
1265 | 1321 | } | |
1266 | 1322 | else nil | |
1267 | - | if (( | |
1323 | + | if ((ga == ga)) | |
1268 | 1324 | then { | |
1269 | - | let | |
1270 | - | if (( | |
1325 | + | let gw = invoke(ah(), "withdraw", [toBase58String(aa()), (gN - gT)], nil) | |
1326 | + | if ((gw == gw)) | |
1271 | 1327 | then { | |
1272 | - | let | |
1273 | - | if (( | |
1328 | + | let go = invoke(ad(), "deposit", nil, [AttachedPayment(aa(), gm)]) | |
1329 | + | if ((go == go)) | |
1274 | 1330 | then { | |
1275 | - | let | |
1276 | - | if (( | |
1277 | - | then ((( | |
1331 | + | let fT = invoke(ae(), "notifyNotional", [bK, 0], nil) | |
1332 | + | if ((fT == fT)) | |
1333 | + | then (((fi(bK) ++ fc(ca, cb, dK, dL, dO, dM, dN)) ++ fj(bB.caller, gO)) ++ fm(gS)) | |
1278 | 1334 | else throw("Strict value is not equal to itself.") | |
1279 | 1335 | } | |
1280 | 1336 | else throw("Strict value is not equal to itself.") | |
1281 | 1337 | } | |
1282 | 1338 | else throw("Strict value is not equal to itself.") | |
1283 | 1339 | } | |
1284 | 1340 | else throw("Strict value is not equal to itself.") | |
1285 | 1341 | } | |
1286 | 1342 | } | |
1287 | 1343 | ||
1288 | 1344 | ||
1289 | 1345 | ||
1290 | - | @Callable( | |
1346 | + | @Callable(bB) | |
1291 | 1347 | func payFunding () = { | |
1292 | - | let | |
1293 | - | if (if (if (( | |
1348 | + | let gW = bm() | |
1349 | + | if (if (if ((gW > lastBlock.timestamp)) | |
1294 | 1350 | then true | |
1295 | - | else !( | |
1351 | + | else !(bP())) | |
1296 | 1352 | then true | |
1297 | - | else | |
1298 | - | then throw(((("Invalid funding block timestamp: " + toString(lastBlock.timestamp)) + " < ") + toString( | |
1353 | + | else bQ()) | |
1354 | + | then throw(((("Invalid funding block timestamp: " + toString(lastBlock.timestamp)) + " < ") + toString(gW))) | |
1299 | 1355 | else { | |
1300 | - | let | |
1301 | - | let | |
1302 | - | let | |
1303 | - | let | |
1304 | - | | |
1356 | + | let en = cI() | |
1357 | + | let gX = em() | |
1358 | + | let eq = gX._1 | |
1359 | + | let er = gX._2 | |
1360 | + | eK((gW + bp()), (bw() + er), (bx() + eq), ay(er, en), ay(eq, en)) | |
1305 | 1361 | } | |
1306 | 1362 | } | |
1307 | 1363 | ||
1308 | 1364 | ||
1309 | 1365 | ||
1310 | - | @Callable( | |
1311 | - | func forceMoveAsset ( | |
1366 | + | @Callable(bB) | |
1367 | + | func forceMoveAsset (bK,fk) = if (if ((addressFromPublicKey(Z()) != bB.caller)) | |
1312 | 1368 | then true | |
1313 | - | else (0 > | |
1369 | + | else (0 > fk)) | |
1314 | 1370 | then throw("Invalid forceMoveAsset parameters") | |
1315 | 1371 | else { | |
1316 | - | let | |
1317 | - | if (( | |
1318 | - | then ( | |
1372 | + | let gw = invoke(ah(), "withdraw", [toBase58String(aa()), fk], nil) | |
1373 | + | if ((gw == gw)) | |
1374 | + | then (fj(addressFromStringValue(bK), fk) ++ fm((be() - fk))) | |
1319 | 1375 | else throw("Strict value is not equal to itself.") | |
1320 | 1376 | } | |
1321 | 1377 | ||
1322 | 1378 | ||
1323 | 1379 | ||
1324 | - | @Callable( | |
1325 | - | func adjustPeg ( | |
1380 | + | @Callable(bB) | |
1381 | + | func adjustPeg (eg) = if (if ((addressFromPublicKey(Z()) != bB.caller)) | |
1326 | 1382 | then true | |
1327 | - | else (0 > | |
1383 | + | else (0 > eg)) | |
1328 | 1384 | then throw("Invalid adjustPeg parameters") | |
1329 | 1385 | else { | |
1330 | - | let | |
1331 | - | let | |
1332 | - | let | |
1333 | - | if (( | |
1386 | + | let gY = ef(eg) | |
1387 | + | let ek = gY._1 | |
1388 | + | let gZ = gY._2 | |
1389 | + | if ((gZ == 0)) | |
1334 | 1390 | then throw("Nothing to adjust") | |
1335 | - | else if (( | |
1336 | - | then | |
1391 | + | else if ((gZ > 0)) | |
1392 | + | then fb(ek, bi()) | |
1337 | 1393 | else { | |
1338 | - | let | |
1339 | - | if (( | |
1394 | + | let gw = invoke(ah(), "withdraw", [toBase58String(aa()), aB(gZ)], nil) | |
1395 | + | if ((gw == gw)) | |
1340 | 1396 | then { | |
1341 | - | let | |
1342 | - | if (( | |
1343 | - | then ( | |
1397 | + | let go = invoke(ad(), "deposit", nil, [AttachedPayment(aa(), aB(gZ))]) | |
1398 | + | if ((go == go)) | |
1399 | + | then (fm((be() - aB(gZ))) ++ fb(ek, bi())) | |
1344 | 1400 | else throw("Strict value is not equal to itself.") | |
1345 | 1401 | } | |
1346 | 1402 | else throw("Strict value is not equal to itself.") | |
1347 | 1403 | } | |
1348 | 1404 | } | |
1349 | 1405 | ||
1350 | 1406 | ||
1351 | 1407 | ||
1352 | - | @Callable( | |
1408 | + | @Callable(bB) | |
1353 | 1409 | func migrateLiquidity () = { | |
1354 | - | let gH = aX() | |
1355 | - | let gd = invoke(aa(), "unlockNeutrino", [gH, toBase58String(Z())], nil) | |
1356 | - | if ((gd == gd)) | |
1410 | + | let ha = be() | |
1411 | + | if ((ha > 0)) | |
1357 | 1412 | then { | |
1358 | - | let fV = invoke(ag(), "deposit", nil, [AttachedPayment(Z(), gH)]) | |
1359 | - | if ((fV == fV)) | |
1360 | - | then nil | |
1413 | + | let gw = invoke(ab(), "unlockNeutrino", [ha, toBase58String(aa())], nil) | |
1414 | + | if ((gw == gw)) | |
1415 | + | then { | |
1416 | + | let gn = invoke(ah(), "deposit", nil, [AttachedPayment(aa(), ha)]) | |
1417 | + | if ((gn == gn)) | |
1418 | + | then nil | |
1419 | + | else throw("Strict value is not equal to itself.") | |
1420 | + | } | |
1361 | 1421 | else throw("Strict value is not equal to itself.") | |
1362 | 1422 | } | |
1363 | - | else | |
1423 | + | else nil | |
1364 | 1424 | } | |
1365 | 1425 | ||
1366 | 1426 | ||
1367 | 1427 | ||
1368 | - | @Callable( | |
1369 | - | func v_get ( | |
1370 | - | let | |
1371 | - | let | |
1372 | - | let | |
1373 | - | let | |
1374 | - | let | |
1375 | - | throw(((( | |
1428 | + | @Callable(bB) | |
1429 | + | func v_get (bK) = { | |
1430 | + | let hb = dE(bK, false) | |
1431 | + | let dc = hb._1 | |
1432 | + | let dd = hb._2 | |
1433 | + | let de = hb._3 | |
1434 | + | let hc = hb._4 | |
1435 | + | throw((((aw(dd) + aw(de)) + aw(hc)) + aw(dw(bK)))) | |
1376 | 1436 | } | |
1377 | 1437 | ||
1378 | 1438 | ||
1379 | 1439 | ||
1380 | - | @Callable( | |
1381 | - | func view_calcRemainMarginWithFundingPayment ( | |
1382 | - | let | |
1383 | - | let | |
1384 | - | let | |
1385 | - | let | |
1386 | - | let | |
1387 | - | let | |
1388 | - | let | |
1389 | - | let | |
1390 | - | let | |
1391 | - | let | |
1392 | - | let | |
1393 | - | let | |
1394 | - | throw(((((( | |
1440 | + | @Callable(bB) | |
1441 | + | func view_calcRemainMarginWithFundingPayment (bK) = { | |
1442 | + | let hd = bJ(bK) | |
1443 | + | let bN = hd._1 | |
1444 | + | let dk = hd._2 | |
1445 | + | let dt = hd._3 | |
1446 | + | let dm = hd._4 | |
1447 | + | let he = di(bK, au) | |
1448 | + | let cZ = he._1 | |
1449 | + | let dh = he._2 | |
1450 | + | let hf = co(bN, dk, dm, dh) | |
1451 | + | let cx = hf._1 | |
1452 | + | let cy = hf._2 | |
1453 | + | let ct = hf._3 | |
1454 | + | throw((((((aw(cx) + aw(ct)) + aw(dw(bK))) + aw(dh)) + aw(cy)) + aw(cZ))) | |
1395 | 1455 | } | |
1396 | 1456 | ||
1397 | 1457 | ||
1398 | 1458 | ||
1399 | - | @Callable( | |
1400 | - | func view_getPegAdjustCost ( | |
1401 | - | let | |
1402 | - | throw(toString( | |
1459 | + | @Callable(bB) | |
1460 | + | func view_getPegAdjustCost (eg) = { | |
1461 | + | let el = ef(eg) | |
1462 | + | throw(toString(el._2)) | |
1403 | 1463 | } | |
1404 | 1464 | ||
1405 | 1465 | ||
1406 | 1466 | ||
1407 | - | @Callable( | |
1467 | + | @Callable(bB) | |
1408 | 1468 | func view_getFunding () = { | |
1409 | - | let | |
1410 | - | let | |
1411 | - | let | |
1412 | - | let | |
1413 | - | let | |
1414 | - | let | |
1415 | - | throw(((( | |
1469 | + | let en = cI() | |
1470 | + | let hg = em() | |
1471 | + | let eq = hg._1 | |
1472 | + | let er = hg._2 | |
1473 | + | let hh = ay(er, en) | |
1474 | + | let hi = ay(eq, en) | |
1475 | + | throw((((aw(hh) + aw(hi)) + aw(dP())) + aw(cI()))) | |
1416 | 1476 | } | |
1417 | 1477 | ||
1418 | 1478 | ||
1419 | - | @Verifier( | |
1420 | - | func | |
1479 | + | @Verifier(hj) | |
1480 | + | func hk () = sigVerify(hj.bodyBytes, hj.proofs[0], Z()) | |
1421 | 1481 |
github/deemru/w8io/169f3d6 631.78 ms ◑