tx · BYfEFcA6FvxpCxfCsjmvuGwhKnHxhFXVw2QGz6yZdHdd 3Mp66Sufwhc33Wg9L4fWvD2GR729YxSQPCh: -0.07500000 Waves 2023.07.11 14:46 [2661198] smart account 3Mp66Sufwhc33Wg9L4fWvD2GR729YxSQPCh > SELF 0.00000000 Waves
{ "type": 13, "id": "BYfEFcA6FvxpCxfCsjmvuGwhKnHxhFXVw2QGz6yZdHdd", "fee": 7500000, "feeAssetId": null, "timestamp": 1689075968753, "version": 2, "chainId": 84, "sender": "3Mp66Sufwhc33Wg9L4fWvD2GR729YxSQPCh", "senderPublicKey": "42U12q4TTBTVkhjqmAhNWDrxkFhHrg9yFuNjqqg5mF8G", "proofs": [ "2uVhshvnFZSHBCUKvnDsphaxJ3UzWXJqkDMTF3mKYE7DJpKVUL7xLs3aSDeWDaYDopQ3ZZBy1hXDbE7n1jrTtwPz" ], "script": "base64:BgKUAQgCEgASABIAEgASAwoBARIVChMBAQEBAQEBAQEBAQEBAQEICAEBEhgKFgEBAQEBAQEICAgBAQEBAQEBAQEBAQESBwoFAQEBCAgSBAoCAQgSBQoDAQEIEgcKBQEBAQQIEgUKAwgBCBIDCgEIEgMKAQgSABIAEgMKAQgSBQoDCAEIEgMKAQESABIDCgEIEgASBAoCCAi/AQAMa19iYXNlT3JhY2xlAgxrX2Jhc2VPcmFjbGUADWtfcXVvdGVPcmFjbGUCDWtfcXVvdGVPcmFjbGUACWtfYmFsYW5jZQIJa19iYWxhbmNlAAprX3NlcXVlbmNlAgprX3NlcXVlbmNlAA5rX3Bvc2l0aW9uU2l6ZQIOa19wb3NpdGlvblNpemUAEGtfcG9zaXRpb25NYXJnaW4CEGtfcG9zaXRpb25NYXJnaW4AFmtfcG9zaXRpb25PcGVuTm90aW9uYWwCFmtfcG9zaXRpb25PcGVuTm90aW9uYWwALmtfcG9zaXRpb25MYXN0VXBkYXRlZEN1bXVsYXRpdmVQcmVtaXVtRnJhY3Rpb24CEmtfcG9zaXRpb25GcmFjdGlvb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5hdGl2ZSgxMDYyKQEJAQV2YWx1ZQEFDmNvb3JkaW5hdG9yU3RyBQ9rX2FkbWluX2FkZHJlc3MDCQEJaXNEZWZpbmVkAQUFYWRtaW4JAQt2YWx1ZU9yRWxzZQIJAJsIAgkBEUBleHRyTmF0aXZlKDEwNjIpAQkBBXZhbHVlAQUFYWRtaW4JAKwCAgkArAICCQCsAgICB3N0YXR1c18JAKUIAQUEdGhpcwIBXwkA2AQBCAUCdHgCaWQHCQACAQIudW5hYmxlIHRvIHZlcmlmeTogYWRtaW4gbm90IHNldCBpbiBjb29yZGluYXRvcgkA9AMDCAUCdHgJYm9keUJ5dGVzCQCRAwIIBQJ0eAZwcm9vZnMAAAgFAnR4D3NlbmRlclB1YmxpY0tledwKBzM=", "height": 2661198, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: B1yFDyCcWyEWfAKkM918J9z73DHR28JX2zoeCpSP6ADM Next: none Diff:
Old | New | Differences | |
---|---|---|---|
63 | 63 | ||
64 | 64 | let E = "k_positionMode" | |
65 | 65 | ||
66 | - | let F = "k_ | |
66 | + | let F = "k_minLiquidationNotional" | |
67 | 67 | ||
68 | - | let G = "k_ | |
68 | + | let G = "k_latestLongPremiumFraction" | |
69 | 69 | ||
70 | - | let H = "k_ | |
70 | + | let H = "k_latestShortPremiumFraction" | |
71 | 71 | ||
72 | - | let I = "k_ | |
72 | + | let I = "k_nextFundingBlockMinTimestamp" | |
73 | 73 | ||
74 | - | let J = "k_ | |
74 | + | let J = "k_longFundingRate" | |
75 | 75 | ||
76 | - | let K = "k_ | |
76 | + | let K = "k_shortFundingRate" | |
77 | 77 | ||
78 | - | let L = "k_ | |
78 | + | let L = "k_qtAstR" | |
79 | 79 | ||
80 | - | let M = "k_ | |
80 | + | let M = "k_bsAstR" | |
81 | 81 | ||
82 | - | let N = "k_ | |
82 | + | let N = "k_qtAstW" | |
83 | 83 | ||
84 | - | let O = "k_ | |
84 | + | let O = "k_bsAstW" | |
85 | 85 | ||
86 | - | let P = "k_ | |
86 | + | let P = "k_totalPositionSize" | |
87 | 87 | ||
88 | - | let Q = "k_ | |
88 | + | let Q = "k_totalLongPositionSize" | |
89 | 89 | ||
90 | - | let R = "k_ | |
90 | + | let R = "k_totalShortPositionSize" | |
91 | 91 | ||
92 | - | let S = "k_ | |
92 | + | let S = "k_openInterestNotional" | |
93 | 93 | ||
94 | - | let T = "k_ | |
94 | + | let T = "k_openInterestShort" | |
95 | 95 | ||
96 | - | let U = "k_ | |
96 | + | let U = "k_openInterestLong" | |
97 | 97 | ||
98 | - | let V = "k_ | |
98 | + | let V = "k_lastTx" | |
99 | 99 | ||
100 | - | let W = "k_ | |
100 | + | let W = "k_coordinatorAddress" | |
101 | 101 | ||
102 | - | let X = "k_ | |
102 | + | let X = "k_vault_address" | |
103 | 103 | ||
104 | - | let Y = "k_ | |
104 | + | let Y = "k_admin_address" | |
105 | 105 | ||
106 | - | let Z = "k_ | |
106 | + | let Z = "k_quote_asset" | |
107 | 107 | ||
108 | - | let aa = "k_ | |
108 | + | let aa = "k_staking_address" | |
109 | 109 | ||
110 | - | let ab = "k_ | |
110 | + | let ab = "k_miner_address" | |
111 | 111 | ||
112 | - | let ac = "k_ | |
112 | + | let ac = "k_orders_address" | |
113 | 113 | ||
114 | - | let ad = "k_ | |
114 | + | let ad = "k_referral_address" | |
115 | 115 | ||
116 | - | func ae (af,ag) = ((af + "_") + ag) | |
116 | + | let ae = "k_nft_manager_address" | |
117 | + | ||
118 | + | func af (ag,ah) = ((ag + "_") + ah) | |
117 | 119 | ||
118 | 120 | ||
119 | - | func | |
121 | + | func ai () = valueOrErrorMessage(addressFromString(getStringValue(this, W)), "Coordinator not set") | |
120 | 122 | ||
121 | 123 | ||
122 | - | func | |
124 | + | func aj () = addressFromString(getStringValue(ai(), Y)) | |
123 | 125 | ||
124 | 126 | ||
125 | - | func | |
127 | + | func ak () = fromBase58String(getStringValue(ai(), Z)) | |
126 | 128 | ||
127 | 129 | ||
128 | - | func | |
130 | + | func al () = valueOrErrorMessage(addressFromString(getStringValue(ai(), aa)), "Staking not set") | |
129 | 131 | ||
130 | 132 | ||
131 | - | func | |
133 | + | func am () = valueOrErrorMessage(addressFromString(getStringValue(ai(), X)), "Vault not set") | |
132 | 134 | ||
133 | 135 | ||
134 | - | func | |
136 | + | func an () = valueOrErrorMessage(addressFromString(getStringValue(ai(), ab)), "Miner not set") | |
135 | 137 | ||
136 | 138 | ||
137 | - | func | |
139 | + | func ao () = valueOrErrorMessage(addressFromString(getStringValue(ai(), ac)), "Orders not set") | |
138 | 140 | ||
139 | 141 | ||
140 | - | func | |
142 | + | func ap () = valueOrErrorMessage(addressFromString(getStringValue(ai(), ad)), "Referral not set") | |
141 | 143 | ||
142 | 144 | ||
143 | - | func | |
145 | + | func aq () = valueOrErrorMessage(addressFromString(getStringValue(ai(), ae)), "NFT Manager not set") | |
144 | 146 | ||
145 | 147 | ||
146 | - | let | |
148 | + | let ar = "k_token_param" | |
147 | 149 | ||
148 | - | let | |
150 | + | let as = "k_token_type" | |
149 | 151 | ||
150 | - | let | |
152 | + | let at = "fee_reduction" | |
151 | 153 | ||
152 | - | let | |
154 | + | let au = 1 | |
153 | 155 | ||
154 | - | let | |
156 | + | let av = 2 | |
155 | 157 | ||
156 | - | let | |
158 | + | let aw = 1000 | |
157 | 159 | ||
158 | - | let | |
160 | + | let ax = 6 | |
159 | 161 | ||
160 | - | let | |
162 | + | let ay = (1 * (((((10 * 10) * 10) * 10) * 10) * 10)) | |
161 | 163 | ||
162 | - | let | |
164 | + | let az = (525600 * ay) | |
163 | 165 | ||
164 | - | let | |
166 | + | let aA = (86400 * ay) | |
165 | 167 | ||
166 | - | let | |
168 | + | let aB = 1 | |
167 | 169 | ||
168 | - | let | |
170 | + | let aC = 2 | |
169 | 171 | ||
170 | - | let | |
172 | + | let aD = 1 | |
171 | 173 | ||
172 | - | let | |
174 | + | let aE = 2 | |
173 | 175 | ||
174 | - | let | |
176 | + | let aF = 1 | |
175 | 177 | ||
176 | - | let | |
178 | + | let aG = 2 | |
177 | 179 | ||
178 | - | let | |
180 | + | let aH = 1 | |
179 | 181 | ||
180 | - | let | |
182 | + | let aI = 2 | |
181 | 183 | ||
182 | - | func | |
184 | + | func aJ (aK) = (toString(aK) + ",") | |
183 | 185 | ||
184 | 186 | ||
185 | - | func | |
187 | + | func aL (aK,aM) = fraction(aK, ay, aM, HALFEVEN) | |
186 | 188 | ||
187 | 189 | ||
188 | - | func | |
190 | + | func aN (aK,aM) = fraction(aK, aM, ay, HALFEVEN) | |
189 | 191 | ||
190 | 192 | ||
191 | - | func | |
193 | + | func aO (aK,aM) = fraction(aK, toBigInt(ay), aM, HALFEVEN) | |
192 | 194 | ||
193 | 195 | ||
194 | - | func | |
196 | + | func aP (aK,aM) = fraction(aK, aM, toBigInt(ay), HALFEVEN) | |
195 | 197 | ||
196 | 198 | ||
197 | - | func | |
198 | - | then | |
199 | - | else -( | |
199 | + | func aQ (aK) = if ((aK > 0)) | |
200 | + | then aK | |
201 | + | else -(aK) | |
200 | 202 | ||
201 | 203 | ||
202 | - | func | |
203 | - | then | |
204 | - | else | |
204 | + | func aR (aK,aM) = if ((aK >= aM)) | |
205 | + | then aK | |
206 | + | else aM | |
205 | 207 | ||
206 | 208 | ||
207 | - | func | |
209 | + | func aS (aT) = valueOrErrorMessage(getInteger(this, aT), ("no value for " + aT)) | |
208 | 210 | ||
209 | 211 | ||
210 | - | func | |
212 | + | func aU (aT,aV) = valueOrElse(getInteger(this, aT), aV) | |
211 | 213 | ||
212 | 214 | ||
213 | - | func | |
214 | - | let | |
215 | - | | |
215 | + | func aW (ah,ag) = { | |
216 | + | let aX = valueOrErrorMessage(getString(ah, ag), ("No value for key " + ag)) | |
217 | + | aX | |
216 | 218 | } | |
217 | 219 | ||
218 | 220 | ||
219 | - | func | |
220 | - | let | |
221 | - | | |
221 | + | func aY (ah,ag) = { | |
222 | + | let aX = valueOrErrorMessage(getInteger(ah, ag), ("No value for key " + ag)) | |
223 | + | aX | |
222 | 224 | } | |
223 | 225 | ||
224 | 226 | ||
225 | - | func | |
227 | + | func aZ () = aS(c) | |
226 | 228 | ||
227 | 229 | ||
228 | - | func | |
230 | + | func ba () = aU(c, 0) | |
229 | 231 | ||
230 | 232 | ||
231 | - | func | |
233 | + | func bb () = aS(o) | |
232 | 234 | ||
233 | 235 | ||
234 | - | func | |
236 | + | func bc () = aS(p) | |
235 | 237 | ||
236 | 238 | ||
237 | - | func | |
239 | + | func bd () = aS(r) | |
238 | 240 | ||
239 | 241 | ||
240 | - | func | |
242 | + | func be () = aU(s, ay) | |
241 | 243 | ||
242 | 244 | ||
243 | - | func | |
245 | + | func bf () = aS(L) | |
244 | 246 | ||
245 | 247 | ||
246 | - | func | |
248 | + | func bg () = aU(L, 0) | |
247 | 249 | ||
248 | 250 | ||
249 | - | func | |
251 | + | func bh () = aS(M) | |
250 | 252 | ||
251 | 253 | ||
252 | - | func | |
254 | + | func bi () = aU(M, 0) | |
253 | 255 | ||
254 | 256 | ||
255 | - | func | |
257 | + | func bj () = aU(N, ay) | |
256 | 258 | ||
257 | 259 | ||
258 | - | func | |
260 | + | func bk () = aU(O, ay) | |
259 | 261 | ||
260 | 262 | ||
261 | - | func | |
263 | + | func bl () = aS(P) | |
262 | 264 | ||
263 | 265 | ||
264 | - | func | |
266 | + | func bm () = aS(S) | |
265 | 267 | ||
266 | 268 | ||
267 | - | func | |
269 | + | func bn () = aS(T) | |
268 | 270 | ||
269 | 271 | ||
270 | - | func | |
272 | + | func bo () = aS(U) | |
271 | 273 | ||
272 | 274 | ||
273 | - | func | |
275 | + | func bp () = aS(I) | |
274 | 276 | ||
275 | 277 | ||
276 | - | func | |
278 | + | func bq () = aS(q) | |
277 | 279 | ||
278 | 280 | ||
279 | - | func | |
281 | + | func br () = (bq() * ay) | |
280 | 282 | ||
281 | 283 | ||
282 | - | func | |
284 | + | func bs () = (bq() * aw) | |
283 | 285 | ||
284 | 286 | ||
285 | - | func | |
287 | + | func bt () = aS(t) | |
286 | 288 | ||
287 | 289 | ||
288 | - | func | |
290 | + | func bu () = aS(u) | |
289 | 291 | ||
290 | 292 | ||
291 | - | func | |
293 | + | func bv () = aS(v) | |
292 | 294 | ||
293 | 295 | ||
294 | - | func | |
296 | + | func bw () = aS(w) | |
295 | 297 | ||
296 | 298 | ||
297 | - | func | |
299 | + | func bx () = aS(x) | |
298 | 300 | ||
299 | 301 | ||
300 | - | func | |
302 | + | func by () = aS(y) | |
301 | 303 | ||
302 | 304 | ||
303 | - | func | |
305 | + | func bz () = aS(z) | |
304 | 306 | ||
305 | 307 | ||
306 | - | func | |
308 | + | func bA () = aS(G) | |
307 | 309 | ||
308 | 310 | ||
309 | - | func | |
311 | + | func bB () = aS(H) | |
310 | 312 | ||
311 | 313 | ||
312 | - | func | |
314 | + | func bC () = aS(R) | |
313 | 315 | ||
314 | 316 | ||
315 | - | func | |
317 | + | func bD () = aS(Q) | |
316 | 318 | ||
317 | 319 | ||
318 | - | func | |
320 | + | func bE () = aU(d, 0) | |
319 | 321 | ||
320 | 322 | ||
321 | - | func | |
323 | + | func bF () = aS(A) | |
322 | 324 | ||
323 | 325 | ||
324 | - | func | |
326 | + | func bG () = aS(B) | |
325 | 327 | ||
326 | 328 | ||
327 | - | func | |
329 | + | func bH () = aU(C, aD) | |
328 | 330 | ||
329 | 331 | ||
330 | - | func | |
332 | + | func bI () = aU(D, aF) | |
331 | 333 | ||
332 | 334 | ||
333 | - | func | |
335 | + | func bJ () = aU(E, aH) | |
334 | 336 | ||
335 | 337 | ||
336 | - | func | |
338 | + | func bK () = aU(F, (10 * ay)) | |
337 | 339 | ||
338 | 340 | ||
339 | - | func | |
341 | + | func bL () = lastBlock.timestamp | |
340 | 342 | ||
341 | 343 | ||
342 | - | func bM (bN,bO,bP) = { | |
343 | - | let bQ = (bN - bO) | |
344 | - | if (if (bP) | |
345 | - | then (0 > bQ) | |
344 | + | func bM (bN) = valueOrElse(getString(ao(), "k_sender"), toString(bN.caller)) | |
345 | + | ||
346 | + | ||
347 | + | func bO (bP,bQ,bR) = { | |
348 | + | let bS = (bP - bQ) | |
349 | + | if (if (bR) | |
350 | + | then (0 > bS) | |
346 | 351 | else false) | |
347 | - | then throw(((("Invalid margin: " + toString( | |
348 | - | else if (if (!( | |
349 | - | then ( | |
352 | + | then throw(((("Invalid margin: " + toString(bP)) + " < ") + toString(bQ))) | |
353 | + | else if (if (!(bR)) | |
354 | + | then (bS >= 0) | |
350 | 355 | else false) | |
351 | - | then throw(((("Invalid margin: " + toString( | |
356 | + | then throw(((("Invalid margin: " + toString(bP)) + " > ") + toString(bQ))) | |
352 | 357 | else true | |
353 | 358 | } | |
354 | 359 | ||
355 | 360 | ||
356 | - | func | |
361 | + | func bT (bU) = if ((bU == 0)) | |
357 | 362 | then throw("Should not be called with _positionSize == 0") | |
358 | - | else if (( | |
359 | - | then | |
360 | - | else | |
363 | + | else if ((bU > 0)) | |
364 | + | then bA() | |
365 | + | else bB() | |
361 | 366 | ||
362 | 367 | ||
363 | - | func | |
364 | - | let | |
365 | - | let | |
366 | - | let | |
367 | - | if ($isInstanceOf( | |
368 | + | func bV (bW,bX) = { | |
369 | + | let bY = ((bW + "_") + toString(bX)) | |
370 | + | let bZ = getInteger(this, af(e, bY)) | |
371 | + | let ca = bZ | |
372 | + | if ($isInstanceOf(ca, "Int")) | |
368 | 373 | then { | |
369 | - | let | |
370 | - | $Tuple5( | |
374 | + | let cb = ca | |
375 | + | $Tuple5(cb, getIntegerValue(this, af(f, bY)), getIntegerValue(this, af(g, bY)), getIntegerValue(this, af(h, bY)), getIntegerValue(this, af(k, bY))) | |
371 | 376 | } | |
372 | 377 | else $Tuple5(0, 0, 0, 0, 0) | |
373 | 378 | } | |
374 | 379 | ||
375 | 380 | ||
376 | - | func | |
377 | - | then | |
378 | - | else | |
381 | + | func cc (bU) = if ((0 > bU)) | |
382 | + | then av | |
383 | + | else au | |
379 | 384 | ||
380 | 385 | ||
381 | - | func | |
382 | - | let | |
383 | - | let | |
384 | - | let | |
385 | - | if ($isInstanceOf( | |
386 | + | func cd (bW,bX) = { | |
387 | + | let bY = ((bW + "_") + toString(bX)) | |
388 | + | let ce = getInteger(this, af(j, bY)) | |
389 | + | let ca = ce | |
390 | + | if ($isInstanceOf(ca, "Int")) | |
386 | 391 | then { | |
387 | - | let | |
388 | - | | |
392 | + | let cf = ca | |
393 | + | cf | |
389 | 394 | } | |
390 | - | else | |
395 | + | else bb() | |
391 | 396 | } | |
392 | 397 | ||
393 | 398 | ||
394 | - | func | |
399 | + | func cg (bW,bX) = if ((bV(bW, bX)._1 == 0)) | |
395 | 400 | then throw("No open position") | |
396 | 401 | else true | |
397 | 402 | ||
398 | 403 | ||
399 | - | func | |
400 | - | let | |
401 | - | if (if (isDefined( | |
402 | - | then (value( | |
404 | + | func ch (ci) = { | |
405 | + | let cj = getString(this, ci) | |
406 | + | if (if (isDefined(cj)) | |
407 | + | then (value(cj) != "") | |
403 | 408 | else false) | |
404 | 409 | then { | |
405 | - | let | |
406 | - | let | |
407 | - | let | |
408 | - | let | |
409 | - | let | |
410 | - | $Tuple4( | |
410 | + | let ck = split(value(cj), ",") | |
411 | + | let cl = valueOrErrorMessage(addressFromString(ck[0]), ("Invalid oracle address in: " + value(cj))) | |
412 | + | let cm = ck[1] | |
413 | + | let cn = ck[2] | |
414 | + | let co = ck[3] | |
415 | + | $Tuple4(cl, cm, cn, co) | |
411 | 416 | } | |
412 | 417 | else unit | |
413 | 418 | } | |
414 | 419 | ||
415 | 420 | ||
416 | - | func | |
421 | + | func cp () = valueOrElse(getBoolean(this, l), false) | |
417 | 422 | ||
418 | 423 | ||
419 | - | func | |
424 | + | func cq () = valueOrElse(getBoolean(this, m), false) | |
420 | 425 | ||
421 | 426 | ||
422 | - | func | |
427 | + | func cr () = valueOrElse(getBoolean(this, n), false) | |
423 | 428 | ||
424 | 429 | ||
425 | - | func | |
430 | + | func cs (ct,cu,cv) = if (ct) | |
426 | 431 | then { | |
427 | - | let | |
428 | - | if ((0 >= | |
432 | + | let cw = (bh() - cv) | |
433 | + | if ((0 >= cw)) | |
429 | 434 | then throw("Tx lead to base asset reserve <= 0, revert") | |
430 | - | else $Tuple3(( | |
435 | + | else $Tuple3((bf() + cu), cw, (bl() + cv)) | |
431 | 436 | } | |
432 | 437 | else { | |
433 | - | let | |
434 | - | if ((0 >= | |
438 | + | let cx = (bf() - cu) | |
439 | + | if ((0 >= cx)) | |
435 | 440 | then throw("Tx lead to base quote reserve <= 0, revert") | |
436 | - | else $Tuple3( | |
441 | + | else $Tuple3(cx, (bh() + cv), (bl() - cv)) | |
437 | 442 | } | |
438 | 443 | ||
439 | 444 | ||
440 | - | func | |
441 | - | let | |
442 | - | let | |
443 | - | | |
445 | + | func cy (cz,cA) = { | |
446 | + | let cB = toBigInt(cz) | |
447 | + | let cC = toBigInt(cA) | |
448 | + | aP(cB, cC) | |
444 | 449 | } | |
445 | 450 | ||
446 | 451 | ||
447 | - | func | |
448 | - | let | |
449 | - | let | |
450 | - | let | |
451 | - | let | |
452 | - | let | |
453 | - | let | |
454 | - | let | |
455 | - | then ( | |
456 | - | else ( | |
457 | - | let | |
458 | - | let | |
459 | - | let | |
460 | - | then | |
461 | - | else -( | |
462 | - | let | |
463 | - | let | |
464 | - | let | |
465 | - | let | |
466 | - | let | |
467 | - | let | |
468 | - | let | |
469 | - | let | |
470 | - | let | |
471 | - | if (( | |
472 | - | then throw(((((((((((((("Price impact " + toString( | |
473 | - | else $Tuple4( | |
452 | + | func cD (ct,cu) = { | |
453 | + | let cz = bf() | |
454 | + | let cA = bh() | |
455 | + | let cE = bj() | |
456 | + | let cF = bk() | |
457 | + | let cG = aL(cu, cE) | |
458 | + | let aT = cy(cz, cA) | |
459 | + | let cH = if (ct) | |
460 | + | then (cz + cG) | |
461 | + | else (cz - cG) | |
462 | + | let cI = toInt(aO(aT, toBigInt(cH))) | |
463 | + | let cJ = aQ((cI - cA)) | |
464 | + | let cK = if (ct) | |
465 | + | then cJ | |
466 | + | else -(cJ) | |
467 | + | let cL = cs(ct, cG, cJ) | |
468 | + | let cM = cL._1 | |
469 | + | let cN = cL._2 | |
470 | + | let cO = cL._3 | |
471 | + | let cP = aL(aN(cz, cE), aN(cA, cF)) | |
472 | + | let cQ = aL(cu, cJ) | |
473 | + | let cR = aQ((cP - cQ)) | |
474 | + | let cS = (ay - aL(cP, (cP + cR))) | |
475 | + | let cT = bx() | |
476 | + | if ((cS > cT)) | |
477 | + | then throw(((((((((((((("Price impact " + toString(cS)) + " > max price impact ") + toString(cT)) + " before quote asset: ") + toString(cz)) + " before base asset: ") + toString(cA)) + " quote asset amount to exchange: ") + toString(cu)) + " price before: ") + toString(cP)) + " marketPrice: ") + toString(cQ))) | |
478 | + | else $Tuple4(cK, cM, cN, cO) | |
474 | 479 | } | |
475 | 480 | ||
476 | 481 | ||
477 | - | func | |
478 | - | let | |
479 | - | let | |
480 | - | | |
482 | + | func cU (cV,cW) = { | |
483 | + | let cX = ((((bL() - cW) / 1000) / 60) * ay) | |
484 | + | let cY = aL(aN(aN(cV, cX), bc()), az) | |
485 | + | cY | |
481 | 486 | } | |
482 | 487 | ||
483 | 488 | ||
484 | - | func | |
485 | - | let | |
489 | + | func cZ (da,cV,db,cW,dc) = { | |
490 | + | let dd = if ((da != 0)) | |
486 | 491 | then { | |
487 | - | let | |
488 | - | | |
492 | + | let de = bT(da) | |
493 | + | aN((de - db), da) | |
489 | 494 | } | |
490 | 495 | else 0 | |
491 | - | let | |
492 | - | let | |
493 | - | let | |
494 | - | then $Tuple2(0, | |
495 | - | else $Tuple2( | |
496 | - | let | |
497 | - | let | |
498 | - | $Tuple4( | |
496 | + | let cY = cU(cV, cW) | |
497 | + | let df = (((dc - cY) - dd) + cV) | |
498 | + | let dg = if ((0 > df)) | |
499 | + | then $Tuple2(0, aQ(df)) | |
500 | + | else $Tuple2(aQ(df), 0) | |
501 | + | let dh = dg._1 | |
502 | + | let di = dg._2 | |
503 | + | $Tuple4(dh, di, dd, cY) | |
499 | 504 | } | |
500 | 505 | ||
501 | 506 | ||
502 | - | func | |
503 | - | let | |
504 | - | if (( | |
507 | + | func dj (ct,cv,dk,dl,dm,dn,do) = { | |
508 | + | let cP = aL(aN(dl, dm), aN(dn, do)) | |
509 | + | if ((cv == 0)) | |
505 | 510 | then throw("Invalid base asset amount") | |
506 | 511 | else { | |
507 | - | let | |
508 | - | let | |
509 | - | then ( | |
510 | - | else ( | |
511 | - | let | |
512 | - | let | |
513 | - | let | |
514 | - | let | |
515 | - | let | |
516 | - | let | |
517 | - | let | |
518 | - | let | |
519 | - | let | |
520 | - | let | |
521 | - | let | |
522 | - | if (if (( | |
523 | - | then | |
512 | + | let aT = cy(dl, dn) | |
513 | + | let dp = if (ct) | |
514 | + | then (dn + cv) | |
515 | + | else (dn - cv) | |
516 | + | let dq = toInt(aO(aT, toBigInt(dp))) | |
517 | + | let dr = aQ((dq - dl)) | |
518 | + | let ds = aN(dr, dm) | |
519 | + | let cT = bx() | |
520 | + | let dt = cs(!(ct), dr, cv) | |
521 | + | let cM = dt._1 | |
522 | + | let cN = dt._2 | |
523 | + | let cO = dt._3 | |
524 | + | let cQ = aL(ds, cv) | |
525 | + | let cR = aQ((cP - cQ)) | |
526 | + | let cS = (ay - aL(cP, (cP + cR))) | |
527 | + | if (if ((cS > cT)) | |
528 | + | then dk | |
524 | 529 | else false) | |
525 | - | then throw(((((((((((((("Price impact " + toString( | |
526 | - | else $Tuple7( | |
527 | - | then | |
528 | - | else 0)), ( | |
529 | - | then | |
530 | - | else 0)), | |
530 | + | then throw(((((((((((((("Price impact " + toString(cS)) + " > max price impact ") + toString(cT)) + " before quote asset: ") + toString(dl)) + " before base asset: ") + toString(dn)) + " base asset amount to exchange: ") + toString(cv)) + " price before: ") + toString(cP)) + " market price: ") + toString(cQ))) | |
531 | + | else $Tuple7(ds, cM, cN, cO, (bD() - (if (ct) | |
532 | + | then aQ(cv) | |
533 | + | else 0)), (bC() - (if (!(ct)) | |
534 | + | then aQ(cv) | |
535 | + | else 0)), cS) | |
531 | 536 | } | |
532 | 537 | } | |
533 | 538 | ||
534 | 539 | ||
535 | - | func | |
540 | + | func du (ct,cv,dk) = dj(ct, cv, dk, bf(), bj(), bh(), bk()) | |
536 | 541 | ||
537 | 542 | ||
538 | - | func | |
539 | - | let | |
540 | - | if (( | |
543 | + | func dv (dw,cm,cn) = { | |
544 | + | let dx = valueOrErrorMessage(getInteger(dw, cm), ((("Can not get oracle price. Oracle: " + toString(dw)) + " key: ") + cm)) | |
545 | + | if ((cn != "")) | |
541 | 546 | then { | |
542 | - | let | |
543 | - | let | |
544 | - | if ((( | |
545 | - | then throw(((("Oracle stale data. Last oracle block: " + toString( | |
546 | - | else | |
547 | + | let dy = height | |
548 | + | let dz = valueOrErrorMessage(getInteger(dw, cn), ((("Can not get oracle block. Oracle: " + toString(dw)) + " key: ") + cn)) | |
549 | + | if (((dy - dz) > bG())) | |
550 | + | then throw(((("Oracle stale data. Last oracle block: " + toString(dz)) + " current block: ") + toString(dy))) | |
551 | + | else dx | |
547 | 552 | } | |
548 | - | else | |
553 | + | else dx | |
549 | 554 | } | |
550 | 555 | ||
551 | 556 | ||
552 | - | func | |
553 | - | let | |
554 | - | let | |
555 | - | let | |
556 | - | let | |
557 | + | func dA () = { | |
558 | + | let dB = valueOrErrorMessage(ch(a), "No base asset oracle data") | |
559 | + | let dC = dv(dB._1, dB._2, dB._3) | |
560 | + | let dD = ch(b) | |
561 | + | let dE = if (isDefined(dD)) | |
557 | 562 | then { | |
558 | - | let | |
559 | - | | |
563 | + | let dF = value(dD) | |
564 | + | dv(dF._1, dF._2, dF._3) | |
560 | 565 | } | |
561 | - | else | |
562 | - | | |
566 | + | else ay | |
567 | + | aL(dC, dE) | |
563 | 568 | } | |
564 | 569 | ||
565 | 570 | ||
566 | - | func | |
567 | - | let | |
568 | - | let | |
569 | - | let | |
570 | - | if (( | |
571 | + | func dG () = { | |
572 | + | let dB = valueOrErrorMessage(ch(a), "No base asset oracle data") | |
573 | + | let dw = dB._1 | |
574 | + | let co = dB._4 | |
575 | + | if ((co != "")) | |
571 | 576 | then { | |
572 | - | let | |
573 | - | !( | |
577 | + | let dH = valueOrErrorMessage(getBoolean(dw, co), ((("Can not get oracle is open/closed. Oracle: " + toString(dw)) + " key: ") + co)) | |
578 | + | !(dH) | |
574 | 579 | } | |
575 | 580 | else false | |
576 | 581 | } | |
577 | 582 | ||
578 | 583 | ||
579 | - | func | |
580 | - | let | |
581 | - | let | |
582 | - | let | |
583 | - | | |
584 | + | func dI (dJ,dl,dn,cE,cF) = { | |
585 | + | let dK = aL(aN(dl, cE), aN(dn, cF)) | |
586 | + | let dL = aL((dJ + dK), (2 * ay)) | |
587 | + | let dI = aL(aQ((dJ - dK)), dL) | |
588 | + | dI | |
584 | 589 | } | |
585 | 590 | ||
586 | 591 | ||
587 | - | func | |
588 | - | let | |
589 | - | let | |
590 | - | let | |
591 | - | let | |
592 | - | let | |
593 | - | if (if (( | |
594 | - | then ( | |
592 | + | func dM (dl,dn) = { | |
593 | + | let dN = dA() | |
594 | + | let cE = bj() | |
595 | + | let cF = bk() | |
596 | + | let dO = dI(dN, bf(), bh(), cE, cF) | |
597 | + | let dP = dI(dN, dl, dn, cE, cF) | |
598 | + | if (if ((dP > by())) | |
599 | + | then (dP > dO) | |
595 | 600 | else false) | |
596 | - | then throw(((("Price spread " + toString( | |
601 | + | then throw(((("Price spread " + toString(dP)) + " > max price spread ") + toString(by()))) | |
597 | 602 | else true | |
598 | 603 | } | |
599 | 604 | ||
600 | 605 | ||
601 | - | func | |
602 | - | let | |
603 | - | if (( | |
604 | - | then throw(((("Long open notional " + toString( | |
605 | - | else if (( | |
606 | - | then throw(((("Short open notional " + toString( | |
606 | + | func dQ (dR,dS) = { | |
607 | + | let dT = bz() | |
608 | + | if ((dR > dT)) | |
609 | + | then throw(((("Long open notional " + toString(dR)) + " > max open notional ") + toString(dT))) | |
610 | + | else if ((dS > dT)) | |
611 | + | then throw(((("Short open notional " + toString(dS)) + " > max open notional ") + toString(dT))) | |
607 | 612 | else true | |
608 | 613 | } | |
609 | 614 | ||
610 | 615 | ||
611 | - | func | |
612 | - | then ( | |
616 | + | func dU (dV) = if ((bJ() == aI)) | |
617 | + | then (dV == ao()) | |
613 | 618 | else true | |
614 | 619 | ||
615 | 620 | ||
616 | - | func | |
617 | - | let | |
618 | - | let | |
619 | - | let | |
620 | - | let | |
621 | - | | |
621 | + | func dW () = { | |
622 | + | let dl = bf() | |
623 | + | let dn = bh() | |
624 | + | let cE = bj() | |
625 | + | let cF = bk() | |
626 | + | aL(aN(dl, cE), aN(dn, cF)) | |
622 | 627 | } | |
623 | 628 | ||
624 | 629 | ||
625 | - | func | |
626 | - | let | |
627 | - | let | |
628 | - | ( | |
630 | + | func dX () = { | |
631 | + | let dN = dA() | |
632 | + | let dY = dW() | |
633 | + | (aL(aQ((dN - dY)), dN) > bw()) | |
629 | 634 | } | |
630 | 635 | ||
631 | 636 | ||
632 | - | func | |
633 | - | let | |
634 | - | let | |
635 | - | let | |
637 | + | func dZ (bU,ea,dl,dm,dn,do) = { | |
638 | + | let eb = aQ(bU) | |
639 | + | let ec = (0 > bU) | |
640 | + | let ed = if ((ea == aB)) | |
636 | 641 | then { | |
637 | - | let | |
638 | - | | |
642 | + | let ee = dj(!(ec), eb, false, dl, dm, dn, do)._1 | |
643 | + | ee | |
639 | 644 | } | |
640 | - | else | |
641 | - | | |
645 | + | else aN(eb, dA()) | |
646 | + | ed | |
642 | 647 | } | |
643 | 648 | ||
644 | 649 | ||
645 | - | func | |
650 | + | func ef (bU,eg,dl,dm,dn,do,ea) = if ((bU == 0)) | |
646 | 651 | then throw("Invalid position size") | |
647 | 652 | else { | |
648 | - | let | |
649 | - | let | |
650 | - | let | |
651 | - | then ( | |
652 | - | else ( | |
653 | - | $Tuple2( | |
653 | + | let ec = (0 > bU) | |
654 | + | let ed = dZ(bU, ea, dl, dm, dn, do) | |
655 | + | let eh = if (ec) | |
656 | + | then (eg - ed) | |
657 | + | else (ed - eg) | |
658 | + | $Tuple2(ed, eh) | |
654 | 659 | } | |
655 | 660 | ||
656 | 661 | ||
657 | - | func | |
658 | - | let | |
659 | - | let | |
660 | - | let | |
661 | - | let | |
662 | - | let | |
663 | - | | |
662 | + | func ei (bW,bX,ea) = { | |
663 | + | let ej = bV(bW, bX) | |
664 | + | let cb = ej._1 | |
665 | + | let ek = ej._2 | |
666 | + | let el = ej._3 | |
667 | + | let em = ej._4 | |
668 | + | ef(cb, el, bf(), bj(), bh(), bk(), ea) | |
664 | 669 | } | |
665 | 670 | ||
666 | 671 | ||
667 | - | func | |
672 | + | func en (eo,ep,eq) = aL((eo - ep), eq) | |
668 | 673 | ||
669 | 674 | ||
670 | - | func | |
671 | - | let | |
672 | - | let | |
673 | - | let | |
674 | - | let | |
675 | - | let | |
676 | - | let | |
677 | - | let | |
678 | - | let | |
679 | - | let | |
680 | - | let | |
681 | - | let | |
682 | - | let | |
683 | - | | |
675 | + | func er (bW,bX,ea) = { | |
676 | + | let es = bV(bW, bX) | |
677 | + | let cb = es._1 | |
678 | + | let ek = es._2 | |
679 | + | let et = es._3 | |
680 | + | let eu = es._4 | |
681 | + | let ev = es._5 | |
682 | + | let ew = ei(bW, bX, ea) | |
683 | + | let ed = ew._1 | |
684 | + | let eh = ew._2 | |
685 | + | let ex = cZ(cb, ek, eu, ev, eh) | |
686 | + | let dh = ex._1 | |
687 | + | let di = ex._2 | |
688 | + | en(dh, di, ed) | |
684 | 689 | } | |
685 | 690 | ||
686 | 691 | ||
687 | - | func | |
692 | + | func ey (bW,bX) = er(bW, bX, aB) | |
688 | 693 | ||
689 | 694 | ||
690 | - | func | |
691 | - | let | |
692 | - | let | |
693 | - | let | |
694 | - | let | |
695 | - | let | |
696 | - | if (( | |
697 | - | then | |
698 | - | else | |
695 | + | func ez (bW,bU) = { | |
696 | + | let eA = aR(bv(), (ay - aL(ey(bW, cc(bU)), bt()))) | |
697 | + | let eB = aN(aQ(bU), eA) | |
698 | + | let eC = du((bU > 0), eB, false) | |
699 | + | let eD = eC._1 | |
700 | + | let cS = eC._7 | |
701 | + | if ((bx() > cS)) | |
702 | + | then eB | |
703 | + | else aN(aQ(bU), bv()) | |
699 | 704 | } | |
700 | 705 | ||
701 | 706 | ||
702 | - | func | |
703 | - | let | |
704 | - | let | |
705 | - | let | |
706 | - | let | |
707 | - | let | |
708 | - | let | |
709 | - | let | |
710 | - | let | |
711 | - | if (if (( | |
712 | - | then ( | |
707 | + | func eE (bW,bX,eF,eG,eH,eI,dk,eJ) = { | |
708 | + | let eK = bV(bW, bX) | |
709 | + | let eL = eK._1 | |
710 | + | let eM = eK._2 | |
711 | + | let eN = eK._3 | |
712 | + | let eO = eK._4 | |
713 | + | let eP = eK._5 | |
714 | + | let eQ = (eL > 0) | |
715 | + | let eR = aQ(eL) | |
716 | + | if (if ((eR >= eF)) | |
717 | + | then (eF > 0) | |
713 | 718 | else false) | |
714 | 719 | then { | |
715 | - | let | |
716 | - | let | |
717 | - | let | |
718 | - | let | |
719 | - | let | |
720 | - | let | |
721 | - | let | |
722 | - | then -( | |
723 | - | else | |
724 | - | let | |
725 | - | let | |
726 | - | let | |
727 | - | let | |
728 | - | let | |
729 | - | let | |
730 | - | let | |
731 | - | let | |
732 | - | let | |
733 | - | let | |
734 | - | let | |
735 | - | let | |
736 | - | let | |
737 | - | let | |
738 | - | then (( | |
739 | - | else (( | |
740 | - | let | |
741 | - | let | |
720 | + | let eS = (eR > eF) | |
721 | + | let eT = du((eL > 0), eF, dk) | |
722 | + | let eU = eT._1 | |
723 | + | let cH = eT._2 | |
724 | + | let cI = eT._3 | |
725 | + | let eV = eT._4 | |
726 | + | let eW = if ((eL > 0)) | |
727 | + | then -(eF) | |
728 | + | else eF | |
729 | + | let eX = ei(bW, bX, aB) | |
730 | + | let eY = eX._1 | |
731 | + | let eh = eX._2 | |
732 | + | let eZ = aL(aQ(eW), eR) | |
733 | + | let fa = aN(eh, eZ) | |
734 | + | let fb = cZ(eL, eM, eO, eP, eh) | |
735 | + | let fc = fb._1 | |
736 | + | let fd = fb._2 | |
737 | + | let fe = fb._3 | |
738 | + | let cY = fb._4 | |
739 | + | let ff = cZ(eL, eM, eO, eP, fa)._2 | |
740 | + | let fg = aN(aN(eY, eZ), eG) | |
741 | + | let fh = (eh - fa) | |
742 | + | let fi = if ((eL > 0)) | |
743 | + | then ((eY - eU) - fh) | |
744 | + | else ((fh + eY) - eU) | |
745 | + | let fj = (eL + eW) | |
746 | + | let fk = if ((fj == 0)) | |
742 | 747 | then $Tuple2(0, 0) | |
743 | - | else $Tuple2( | |
744 | - | let | |
745 | - | let | |
746 | - | let | |
747 | - | let | |
748 | - | let | |
749 | - | then ( | |
750 | - | else ( | |
751 | - | let | |
752 | - | let | |
753 | - | then if ( | |
748 | + | else $Tuple2(aQ(fi), bT(fj)) | |
749 | + | let fl = fk._1 | |
750 | + | let fm = fk._2 | |
751 | + | let fn = (eN - fl) | |
752 | + | let fo = er(bW, bX, aB) | |
753 | + | let fp = if ((eL > 0)) | |
754 | + | then (aN((fl + fh), fo) - fh) | |
755 | + | else (aN((fl - fh), fo) - fh) | |
756 | + | let fq = ((fc - (fp + fh)) - fg) | |
757 | + | let fr = if ((0 > fq)) | |
758 | + | then if (eJ) | |
754 | 759 | then 0 | |
755 | 760 | else throw("Invalid internalClosePosition params: unable to pay fee") | |
756 | - | else | |
757 | - | let | |
758 | - | then ( | |
759 | - | else | |
760 | - | if (if (( | |
761 | - | then ( | |
761 | + | else fq | |
762 | + | let fs = if (eI) | |
763 | + | then (fp + fr) | |
764 | + | else fp | |
765 | + | if (if ((eH != 0)) | |
766 | + | then (eH > eU) | |
762 | 767 | else false) | |
763 | - | then throw(((("Limit error: " + toString( | |
764 | - | else $Tuple17( | |
765 | - | then | |
768 | + | then throw(((("Limit error: " + toString(eU)) + " < ") + toString(eH))) | |
769 | + | else $Tuple17(fj, fs, fl, fm, ff, fa, if (if (eI) | |
770 | + | then eS | |
766 | 771 | else false) | |
767 | 772 | then 0 | |
768 | - | else | |
769 | - | then | |
770 | - | else 0)), ( | |
771 | - | then | |
772 | - | else 0)), ( | |
773 | - | then | |
774 | - | else 0)), ( | |
775 | - | then | |
776 | - | else 0)), ( | |
773 | + | else fr, cH, cI, eV, (bm() - fn), (bD() - (if (eQ) | |
774 | + | then aQ(eW) | |
775 | + | else 0)), (bC() - (if (!(eQ)) | |
776 | + | then aQ(eW) | |
777 | + | else 0)), (bo() - (if (eQ) | |
778 | + | then fn | |
779 | + | else 0)), (bn() - (if (!(eQ)) | |
780 | + | then fn | |
781 | + | else 0)), (fg + cY), eU) | |
777 | 782 | } | |
778 | - | else throw(((("Invalid internalClosePosition params: invalid position size: " + toString( | |
783 | + | else throw(((("Invalid internalClosePosition params: invalid position size: " + toString(eF)) + " max: ") + toString(eR))) | |
779 | 784 | } | |
780 | 785 | ||
781 | 786 | ||
782 | - | func | |
783 | - | let | |
784 | - | if (( | |
785 | - | then $Tuple2( | |
787 | + | func ft () = { | |
788 | + | let bU = bl() | |
789 | + | if ((bU == 0)) | |
790 | + | then $Tuple2(bf(), bh()) | |
786 | 791 | else { | |
787 | - | let | |
788 | - | let | |
789 | - | let | |
790 | - | let | |
791 | - | let | |
792 | - | $Tuple2( | |
792 | + | let fu = (bU > 0) | |
793 | + | let fv = du(fu, aQ(bU), false) | |
794 | + | let fw = fv._1 | |
795 | + | let fx = fv._2 | |
796 | + | let fy = fv._3 | |
797 | + | $Tuple2(fx, fy) | |
793 | 798 | } | |
794 | 799 | } | |
795 | 800 | ||
796 | 801 | ||
797 | - | func | |
798 | - | let | |
799 | - | let | |
800 | - | let | |
801 | - | let | |
802 | - | let | |
803 | - | let | |
804 | - | let | |
805 | - | let | |
806 | - | let | |
807 | - | toInt( | |
802 | + | func fz (fA,bl,fB,fC) = { | |
803 | + | let fD = toBigInt(fA) | |
804 | + | let fE = toBigInt(bl) | |
805 | + | let fF = toBigInt(fB) | |
806 | + | let fG = toBigInt(fC) | |
807 | + | let aT = aP(fF, fD) | |
808 | + | let fH = (fD + fE) | |
809 | + | let fI = aO(aT, fH) | |
810 | + | let fJ = aO(fI, fH) | |
811 | + | let fK = aO(fG, fJ) | |
812 | + | toInt(fK) | |
808 | 813 | } | |
809 | 814 | ||
810 | 815 | ||
811 | - | func | |
812 | - | let | |
813 | - | if (( | |
816 | + | func fL (fM,cz,cA) = { | |
817 | + | let bU = bl() | |
818 | + | if ((bU == 0)) | |
814 | 819 | then { | |
815 | - | let | |
816 | - | $Tuple3( | |
820 | + | let fN = aL(aN(fM, cA), cz) | |
821 | + | $Tuple3(fN, ay, 0) | |
817 | 822 | } | |
818 | 823 | else { | |
819 | - | let | |
820 | - | let | |
821 | - | let | |
822 | - | let | |
823 | - | let | |
824 | - | $Tuple3( | |
824 | + | let fu = (bU > 0) | |
825 | + | let fw = du(fu, aQ(bU), false)._1 | |
826 | + | let fN = fz(cA, bU, cz, fM) | |
827 | + | let fO = ay | |
828 | + | let fP = ef(bU, fw, cz, fN, cA, fO, aB)._2 | |
829 | + | $Tuple3(fN, fO, fP) | |
825 | 830 | } | |
826 | 831 | } | |
827 | 832 | ||
828 | 833 | ||
829 | - | func | |
830 | - | let | |
831 | - | let | |
832 | - | let | |
833 | - | if (if ( | |
834 | + | func fQ () = { | |
835 | + | let fR = dA() | |
836 | + | let fS = dW() | |
837 | + | let fT = (fS - fR) | |
838 | + | if (if (dG()) | |
834 | 839 | then true | |
835 | - | else if (( | |
836 | - | then if (( | |
840 | + | else if ((bH() == aD)) | |
841 | + | then if ((bC() == 0)) | |
837 | 842 | then true | |
838 | - | else ( | |
843 | + | else (bD() == 0) | |
839 | 844 | else false) | |
840 | 845 | then $Tuple3(0, 0, 0) | |
841 | - | else if ((0 > | |
846 | + | else if ((0 > fT)) | |
842 | 847 | then { | |
843 | - | let | |
844 | - | if (( | |
848 | + | let fU = aL(aN(fT, br()), aA) | |
849 | + | if ((bH() == aD)) | |
845 | 850 | then { | |
846 | - | let | |
847 | - | $Tuple3( | |
851 | + | let fV = aL(aN(fU, bC()), bD()) | |
852 | + | $Tuple3(fU, fV, 0) | |
848 | 853 | } | |
849 | 854 | else { | |
850 | - | let | |
851 | - | let | |
852 | - | let | |
853 | - | $Tuple3( | |
855 | + | let fW = aQ(aN(fU, bC())) | |
856 | + | let fX = aQ(aN(fU, bD())) | |
857 | + | let fY = (fW - fX) | |
858 | + | $Tuple3(fU, fU, fY) | |
854 | 859 | } | |
855 | 860 | } | |
856 | 861 | else { | |
857 | - | let | |
858 | - | if (( | |
862 | + | let fV = aL(aN(fT, br()), aA) | |
863 | + | if ((bH() == aD)) | |
859 | 864 | then { | |
860 | - | let | |
861 | - | $Tuple3( | |
865 | + | let fU = aL(aN(fV, bD()), bC()) | |
866 | + | $Tuple3(fU, fV, 0) | |
862 | 867 | } | |
863 | 868 | else { | |
864 | - | let | |
865 | - | let | |
866 | - | let | |
867 | - | $Tuple3( | |
869 | + | let fX = aQ(aN(fV, bD())) | |
870 | + | let fW = aQ(aN(fV, bC())) | |
871 | + | let fY = (fX - fW) | |
872 | + | $Tuple3(fV, fV, fY) | |
868 | 873 | } | |
869 | 874 | } | |
870 | 875 | } | |
871 | 876 | ||
872 | 877 | ||
873 | - | func | |
874 | - | let | |
875 | - | let | |
876 | - | let | |
878 | + | func fZ (ga,gb) = { | |
879 | + | let gc = bb() | |
880 | + | let gd = aN(gc, gb) | |
881 | + | let ge = if ((ga != "")) | |
877 | 882 | then { | |
878 | - | let | |
879 | - | if (( | |
883 | + | let gf = aW(aq(), af(as, ga)) | |
884 | + | if ((gf == at)) | |
880 | 885 | then { | |
881 | - | let | |
882 | - | let | |
883 | - | $Tuple2( | |
886 | + | let gg = aY(aq(), af(ar, ga)) | |
887 | + | let gh = aN(gd, gg) | |
888 | + | $Tuple2(gh, true) | |
884 | 889 | } | |
885 | 890 | else throw("Invalid attached artifact") | |
886 | 891 | } | |
887 | - | else $Tuple2( | |
888 | - | let | |
889 | - | let | |
890 | - | $Tuple2( | |
892 | + | else $Tuple2(gd, false) | |
893 | + | let gh = ge._1 | |
894 | + | let gi = ge._2 | |
895 | + | $Tuple2(gh, gi) | |
891 | 896 | } | |
892 | 897 | ||
893 | 898 | ||
894 | - | func | |
895 | - | let | |
896 | - | if (( | |
899 | + | func gj (bW,ga) = { | |
900 | + | let gk = invoke(an(), "computeFeeDiscount", [bW], nil) | |
901 | + | if ((gk == gk)) | |
897 | 902 | then { | |
898 | - | let | |
899 | - | let | |
900 | - | if ($isInstanceOf( | |
903 | + | let gl = { | |
904 | + | let ca = gk | |
905 | + | if ($isInstanceOf(ca, "Int")) | |
901 | 906 | then { | |
902 | - | let | |
903 | - | | |
907 | + | let gm = ca | |
908 | + | gm | |
904 | 909 | } | |
905 | 910 | else throw("Invalid computeFeeDiscount result") | |
906 | 911 | } | |
907 | - | let | |
908 | - | let | |
909 | - | let | |
910 | - | $Tuple2( | |
912 | + | let gn = fZ(ga, gl) | |
913 | + | let gh = gn._1 | |
914 | + | let gi = gn._2 | |
915 | + | $Tuple2(gh, gi) | |
911 | 916 | } | |
912 | 917 | else throw("Strict value is not equal to itself.") | |
913 | 918 | } | |
914 | 919 | ||
915 | 920 | ||
916 | - | func | |
917 | - | let | |
918 | - | then toBase58String(valueOrErrorMessage( | |
921 | + | func go (bN) = { | |
922 | + | let gp = if ((size(bN.payments) > 1)) | |
923 | + | then toBase58String(valueOrErrorMessage(bN.payments[1].assetId, "Invalid artifactId")) | |
919 | 924 | else "" | |
920 | - | | |
925 | + | gp | |
921 | 926 | } | |
922 | 927 | ||
923 | 928 | ||
924 | - | func | |
925 | - | let | |
926 | - | let | |
927 | - | $Tuple2( | |
929 | + | func gq (gr) = { | |
930 | + | let gs = aN(gr, bF()) | |
931 | + | let gt = (gr - gs) | |
932 | + | $Tuple2(gs, gt) | |
928 | 933 | } | |
929 | 934 | ||
930 | 935 | ||
931 | - | func | |
936 | + | func gu (gv,gw,gx,gy,eG,gz,gA,gB,gC,dT,gD,gE,gF,gG,gH,gI,gJ) = [IntegerEntry(r, gv), IntegerEntry(s, gI), IntegerEntry(t, gw), IntegerEntry(u, gx), IntegerEntry(q, gy), IntegerEntry(o, eG), IntegerEntry(w, gz), IntegerEntry(x, gA), IntegerEntry(v, gB), IntegerEntry(y, gC), IntegerEntry(z, dT), IntegerEntry(A, gD), IntegerEntry(B, gE), IntegerEntry(p, gF), IntegerEntry(C, gG), IntegerEntry(D, gH), IntegerEntry(E, gJ)] | |
932 | 937 | ||
933 | 938 | ||
934 | - | func | |
939 | + | func gK (gL,gM,gN,gO,gP) = [IntegerEntry(I, gL), IntegerEntry(G, gM), IntegerEntry(H, gN), IntegerEntry(J, gO), IntegerEntry(K, gP)] | |
935 | 940 | ||
936 | 941 | ||
937 | - | func | |
938 | - | let | |
939 | - | if ( | |
942 | + | func gQ (gR,bW,bX) = { | |
943 | + | let bY = ((bW + "_") + toString(bX)) | |
944 | + | if (gR) | |
940 | 945 | then { | |
941 | - | let | |
942 | - | [IntegerEntry( | |
946 | + | let gS = bE() | |
947 | + | [IntegerEntry(af(i, bY), (gS + 1)), IntegerEntry(d, (gS + 1))] | |
943 | 948 | } | |
944 | 949 | else nil | |
945 | 950 | } | |
946 | 951 | ||
947 | 952 | ||
948 | - | func | |
949 | - | let | |
950 | - | if ( | |
951 | - | then [IntegerEntry( | |
953 | + | func gT (gR,bW,bX,eG) = { | |
954 | + | let bY = ((bW + "_") + toString(bX)) | |
955 | + | if (gR) | |
956 | + | then [IntegerEntry(af(j, bY), eG)] | |
952 | 957 | else nil | |
953 | 958 | } | |
954 | 959 | ||
955 | 960 | ||
956 | - | func | |
957 | - | let | |
958 | - | let | |
959 | - | [IntegerEntry( | |
961 | + | func gU (bW,eF,gV,gW,de,gX) = { | |
962 | + | let fu = cc(eF) | |
963 | + | let bY = ((bW + "_") + toString(fu)) | |
964 | + | [IntegerEntry(af(e, bY), eF), IntegerEntry(af(f, bY), gV), IntegerEntry(af(g, bY), gW), IntegerEntry(af(h, bY), de), IntegerEntry(af(k, bY), gX)] | |
960 | 965 | } | |
961 | 966 | ||
962 | 967 | ||
963 | - | func | |
968 | + | func gY (cz,cA) = if (if ((0 > cz)) | |
964 | 969 | then true | |
965 | - | else (0 > | |
970 | + | else (0 > cA)) | |
966 | 971 | then throw("Invalid amount to update reserves") | |
967 | - | else if (if (( | |
972 | + | else if (if ((cz != bg())) | |
968 | 973 | then true | |
969 | - | else ( | |
970 | - | then [IntegerEntry( | |
974 | + | else (cA != bi())) | |
975 | + | then [IntegerEntry(L, cz), IntegerEntry(M, cA)] | |
971 | 976 | else nil | |
972 | 977 | ||
973 | 978 | ||
974 | - | func | |
979 | + | func gZ (cE,cF) = if (if ((cE != bj())) | |
975 | 980 | then true | |
976 | - | else ( | |
977 | - | then [IntegerEntry( | |
981 | + | else (cF != bk())) | |
982 | + | then [IntegerEntry(N, cE), IntegerEntry(O, cF)] | |
978 | 983 | else nil | |
979 | 984 | ||
980 | 985 | ||
981 | - | func | |
982 | - | let | |
983 | - | let | |
984 | - | if ((( | |
985 | - | then throw(((((("Invalid AMM state data: " + toString( | |
986 | - | else ( | |
986 | + | func ha (cz,cA,hb,hc,hd,he,hf,hg) = { | |
987 | + | let cE = bj() | |
988 | + | let cF = bk() | |
989 | + | if (((hd - he) != hb)) | |
990 | + | then throw(((((("Invalid AMM state data: " + toString(hd)) + " - ") + toString(he)) + " != ") + toString(hb))) | |
991 | + | else (gY(cz, cA) ++ [IntegerEntry(P, hb), IntegerEntry(S, hc), IntegerEntry(Q, hd), IntegerEntry(R, he), IntegerEntry(U, hf), IntegerEntry(T, hg)]) | |
987 | 992 | } | |
988 | 993 | ||
989 | 994 | ||
990 | - | func | |
991 | - | let | |
992 | - | [DeleteEntry( | |
995 | + | func hh (bW,bX) = { | |
996 | + | let bY = ((bW + "_") + toString(bX)) | |
997 | + | [DeleteEntry(af(e, bY)), DeleteEntry(af(f, bY)), DeleteEntry(af(g, bY)), DeleteEntry(af(h, bY)), DeleteEntry(af(j, bY)), DeleteEntry(af(k, bY))] | |
993 | 998 | } | |
994 | 999 | ||
995 | 1000 | ||
996 | - | func | |
997 | - | let | |
998 | - | if (( | |
999 | - | then throw(((("Unable to withdraw " + toString( | |
1000 | - | else [ScriptTransfer( | |
1001 | + | func hi (ah,hj) = { | |
1002 | + | let hk = assetBalance(this, ak()) | |
1003 | + | if ((hj > hk)) | |
1004 | + | then throw(((("Unable to withdraw " + toString(hj)) + " from contract balance ") + toString(hk))) | |
1005 | + | else [ScriptTransfer(ah, hj, ak())] | |
1001 | 1006 | } | |
1002 | 1007 | ||
1003 | 1008 | ||
1004 | - | func | |
1009 | + | func hl (hm) = if ((0 > hm)) | |
1005 | 1010 | then throw("Balance") | |
1006 | - | else if (if (( | |
1011 | + | else if (if ((ba() == 0)) | |
1007 | 1012 | then true | |
1008 | - | else ( | |
1009 | - | then [IntegerEntry(c, | |
1013 | + | else (ba() != hm)) | |
1014 | + | then [IntegerEntry(c, hm)] | |
1010 | 1015 | else nil | |
1011 | 1016 | ||
1012 | 1017 | ||
1013 | - | func | |
1018 | + | func hn (bN) = [ScriptTransfer(al(), bN, ak())] | |
1014 | 1019 | ||
1015 | 1020 | ||
1016 | - | func | |
1017 | - | then [Burn(valueOrErrorMessage( | |
1021 | + | func ho (hp,bN) = if (hp) | |
1022 | + | then [Burn(valueOrErrorMessage(bN.payments[1].assetId, "Invalid artifact"), 1)] | |
1018 | 1023 | else nil | |
1019 | 1024 | ||
1020 | 1025 | ||
1021 | - | @Callable( | |
1022 | - | func pause () = if (( | |
1026 | + | @Callable(bN) | |
1027 | + | func pause () = if ((bN.caller != aj())) | |
1023 | 1028 | then throw("Invalid pause params") | |
1024 | 1029 | else [BooleanEntry(m, true)] | |
1025 | 1030 | ||
1026 | 1031 | ||
1027 | 1032 | ||
1028 | - | @Callable( | |
1029 | - | func unpause () = if (( | |
1033 | + | @Callable(bN) | |
1034 | + | func unpause () = if ((bN.caller != aj())) | |
1030 | 1035 | then throw("Invalid unpause params") | |
1031 | 1036 | else [BooleanEntry(m, false)] | |
1032 | 1037 | ||
1033 | 1038 | ||
1034 | 1039 | ||
1035 | - | @Callable( | |
1036 | - | func setCloseOnly () = if (( | |
1040 | + | @Callable(bN) | |
1041 | + | func setCloseOnly () = if ((bN.caller != aj())) | |
1037 | 1042 | then throw("Invalid setCloseOnly params") | |
1038 | 1043 | else [BooleanEntry(n, true)] | |
1039 | 1044 | ||
1040 | 1045 | ||
1041 | 1046 | ||
1042 | - | @Callable( | |
1043 | - | func unsetCloseOnly () = if (( | |
1047 | + | @Callable(bN) | |
1048 | + | func unsetCloseOnly () = if ((bN.caller != aj())) | |
1044 | 1049 | then throw("Invalid unsetCloseOnly params") | |
1045 | 1050 | else [BooleanEntry(n, false)] | |
1046 | 1051 | ||
1047 | 1052 | ||
1048 | 1053 | ||
1049 | - | @Callable( | |
1050 | - | func changeLiquidity ( | |
1054 | + | @Callable(bN) | |
1055 | + | func changeLiquidity (cu) = if (if ((bN.caller != aj())) | |
1051 | 1056 | then true | |
1052 | - | else ( | |
1057 | + | else (cu == 0)) | |
1053 | 1058 | then throw("Invalid changeLiquidity params") | |
1054 | 1059 | else { | |
1055 | - | let | |
1056 | - | let | |
1057 | - | let | |
1058 | - | let | |
1059 | - | let | |
1060 | - | let | |
1061 | - | let | |
1062 | - | let | |
1063 | - | let | |
1064 | - | let | |
1065 | - | let | |
1066 | - | let | |
1067 | - | let | |
1060 | + | let cz = bf() | |
1061 | + | let cA = bh() | |
1062 | + | let cE = bj() | |
1063 | + | let cF = bk() | |
1064 | + | let hq = aL(aN(cz, cE), aN(cA, cF)) | |
1065 | + | let hr = (cz + cu) | |
1066 | + | let hs = (aL(aN(hr, cE), hq) - cA) | |
1067 | + | let ht = (cA + hs) | |
1068 | + | let hu = fL(dA(), hr, ht) | |
1069 | + | let hv = hu._1 | |
1070 | + | let hw = hu._2 | |
1071 | + | let fP = hu._3 | |
1072 | + | let hx = if ((fP != 0)) | |
1068 | 1073 | then { | |
1069 | - | let | |
1070 | - | if (( | |
1074 | + | let hx = invoke(am(), "exchangeFreeAndLocked", [fP], nil) | |
1075 | + | if ((hx == hx)) | |
1071 | 1076 | then nil | |
1072 | 1077 | else throw("Strict value is not equal to itself.") | |
1073 | 1078 | } | |
1074 | 1079 | else nil | |
1075 | - | if (( | |
1076 | - | then ( | |
1080 | + | if ((hx == hx)) | |
1081 | + | then (gY(hr, ht) ++ gZ(hv, hw)) | |
1077 | 1082 | else throw("Strict value is not equal to itself.") | |
1078 | 1083 | } | |
1079 | 1084 | ||
1080 | 1085 | ||
1081 | 1086 | ||
1082 | - | @Callable(bL) | |
1083 | - | func changeSettings (gt,gu,gv,gw,eE,gx,gy,gz,gA,dR,gB,gC,gD,gE,gF,hw,hx,gG,gH) = if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if ((0 >= gw)) | |
1084 | - | then true | |
1085 | - | else (0 >= gt)) | |
1086 | - | then true | |
1087 | - | else (gt > ax)) | |
1088 | - | then true | |
1089 | - | else (0 >= gG)) | |
1090 | - | then true | |
1091 | - | else (gG > ax)) | |
1092 | - | then true | |
1093 | - | else (gt > gG)) | |
1094 | - | then true | |
1095 | - | else (0 >= gu)) | |
1087 | + | @Callable(bN) | |
1088 | + | func changeSettings (gv,gw,gx,gy,eG,gz,gA,gB,gC,dT,gD,gE,gF,gG,gH,hy,hz,gI,gJ) = if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if ((0 >= gy)) | |
1096 | 1089 | then true | |
1097 | 1090 | else (0 >= gv)) | |
1098 | 1091 | then true | |
1099 | - | else (0 >= eE)) | |
1092 | + | else (gv > ay)) | |
1093 | + | then true | |
1094 | + | else (0 >= gI)) | |
1095 | + | then true | |
1096 | + | else (gI > ay)) | |
1097 | + | then true | |
1098 | + | else (gv > gI)) | |
1099 | + | then true | |
1100 | + | else (0 >= gw)) | |
1100 | 1101 | then true | |
1101 | 1102 | else (0 >= gx)) | |
1102 | 1103 | then true | |
1103 | - | else (0 >= | |
1104 | + | else (0 >= eG)) | |
1104 | 1105 | then true | |
1105 | 1106 | else (0 >= gz)) | |
1106 | 1107 | then true | |
1107 | 1108 | else (0 >= gA)) | |
1108 | 1109 | then true | |
1109 | - | else (0 >= dR)) | |
1110 | - | then true | |
1111 | 1110 | else (0 >= gB)) | |
1112 | 1111 | then true | |
1113 | - | else ( | |
1112 | + | else (0 >= gC)) | |
1114 | 1113 | then true | |
1115 | - | else (0 > | |
1114 | + | else (0 >= dT)) | |
1116 | 1115 | then true | |
1117 | 1116 | else (0 >= gD)) | |
1118 | 1117 | then true | |
1119 | - | else if ((gE != aD)) | |
1120 | - | then (gE != aC) | |
1118 | + | else (gD > ay)) | |
1119 | + | then true | |
1120 | + | else (0 > gE)) | |
1121 | + | then true | |
1122 | + | else (0 >= gF)) | |
1123 | + | then true | |
1124 | + | else if ((gG != aE)) | |
1125 | + | then (gG != aD) | |
1121 | 1126 | else false) | |
1122 | 1127 | then true | |
1123 | - | else if (( | |
1124 | - | then ( | |
1128 | + | else if ((gH != aF)) | |
1129 | + | then (gH != aG) | |
1125 | 1130 | else false) | |
1126 | 1131 | then true | |
1127 | - | else if (( | |
1128 | - | then ( | |
1132 | + | else if ((gJ != aH)) | |
1133 | + | then (gJ != aI) | |
1129 | 1134 | else false) | |
1130 | 1135 | then true | |
1131 | - | else !( | |
1136 | + | else !(cp())) | |
1132 | 1137 | then true | |
1133 | - | else ( | |
1138 | + | else (bN.caller != aj())) | |
1134 | 1139 | then throw("Invalid changeSettings params") | |
1135 | - | else ( | |
1140 | + | else (gu(gv, gw, gx, gy, eG, gz, gA, gB, gC, dT, gD, gE, gF, gG, gH, gI, gJ) ++ [StringEntry(a, hy), StringEntry(b, hz)]) | |
1136 | 1141 | ||
1137 | 1142 | ||
1138 | 1143 | ||
1139 | - | @Callable( | |
1140 | - | func initialize ( | |
1144 | + | @Callable(bN) | |
1145 | + | func initialize (cz,cA,gy,gv,gw,gx,eG,hy,hz,hA,gz,gA,gB,gC,dT,gD,gE,gF,gG,gH,gI,gJ) = if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if ((0 >= cz)) | |
1141 | 1146 | then true | |
1142 | - | else (0 >= cy)) | |
1147 | + | else (0 >= cA)) | |
1148 | + | then true | |
1149 | + | else (0 >= gy)) | |
1150 | + | then true | |
1151 | + | else (0 >= gv)) | |
1152 | + | then true | |
1153 | + | else (gv > ay)) | |
1154 | + | then true | |
1155 | + | else (0 >= gI)) | |
1156 | + | then true | |
1157 | + | else (gI > ay)) | |
1158 | + | then true | |
1159 | + | else (gv > gI)) | |
1143 | 1160 | then true | |
1144 | 1161 | else (0 >= gw)) | |
1145 | 1162 | then true | |
1146 | - | else (0 >= gt)) | |
1147 | - | then true | |
1148 | - | else (gt > ax)) | |
1149 | - | then true | |
1150 | - | else (0 >= gG)) | |
1151 | - | then true | |
1152 | - | else (gG > ax)) | |
1153 | - | then true | |
1154 | - | else (gt > gG)) | |
1155 | - | then true | |
1156 | - | else (0 >= gu)) | |
1157 | - | then true | |
1158 | - | else (0 >= gv)) | |
1159 | - | then true | |
1160 | - | else (0 >= eE)) | |
1161 | - | then true | |
1162 | 1163 | else (0 >= gx)) | |
1163 | 1164 | then true | |
1164 | - | else (0 >= | |
1165 | + | else (0 >= eG)) | |
1165 | 1166 | then true | |
1166 | 1167 | else (0 >= gz)) | |
1167 | 1168 | then true | |
1168 | 1169 | else (0 >= gA)) | |
1169 | 1170 | then true | |
1170 | - | else (0 >= dR)) | |
1171 | - | then true | |
1172 | 1171 | else (0 >= gB)) | |
1173 | 1172 | then true | |
1174 | - | else ( | |
1173 | + | else (0 >= gC)) | |
1175 | 1174 | then true | |
1176 | - | else (0 > | |
1175 | + | else (0 >= dT)) | |
1177 | 1176 | then true | |
1178 | 1177 | else (0 >= gD)) | |
1179 | 1178 | then true | |
1180 | - | else if ((gE != aD)) | |
1181 | - | then (gE != aC) | |
1179 | + | else (gD > ay)) | |
1180 | + | then true | |
1181 | + | else (0 > gE)) | |
1182 | + | then true | |
1183 | + | else (0 >= gF)) | |
1184 | + | then true | |
1185 | + | else if ((gG != aE)) | |
1186 | + | then (gG != aD) | |
1182 | 1187 | else false) | |
1183 | 1188 | then true | |
1184 | - | else if (( | |
1185 | - | then ( | |
1189 | + | else if ((gH != aF)) | |
1190 | + | then (gH != aG) | |
1186 | 1191 | else false) | |
1187 | 1192 | then true | |
1188 | - | else if (( | |
1189 | - | then ( | |
1193 | + | else if ((gJ != aH)) | |
1194 | + | then (gJ != aI) | |
1190 | 1195 | else false) | |
1191 | 1196 | then true | |
1192 | - | else | |
1197 | + | else cp()) | |
1193 | 1198 | then true | |
1194 | - | else ( | |
1199 | + | else (bN.caller != this)) | |
1195 | 1200 | then throw("Invalid initialize parameters") | |
1196 | - | else (((( | |
1201 | + | else ((((ha(cz, cA, 0, 0, 0, 0, 0, 0) ++ gu(gv, gw, gx, gy, eG, gz, gA, gB, gC, dT, gD, gE, gF, gG, gH, gI, gJ)) ++ gK((bL() + gy), 0, 0, 0, 0)) ++ hl(0)) ++ [BooleanEntry(l, true), StringEntry(a, hy), StringEntry(b, hz), StringEntry(W, toString(addressFromStringValue(hA)))]) | |
1197 | 1202 | ||
1198 | 1203 | ||
1199 | 1204 | ||
1200 | - | @Callable( | |
1201 | - | func increasePosition ( | |
1202 | - | let | |
1203 | - | if (( | |
1205 | + | @Callable(bN) | |
1206 | + | func increasePosition (bX,hB,hC,hD,hE) = { | |
1207 | + | let hF = invoke(this, "updateOracle", [hE], nil) | |
1208 | + | if ((hF == hF)) | |
1204 | 1209 | then { | |
1205 | - | let | |
1206 | - | if (( | |
1210 | + | let hG = invoke(this, "syncTerminalPriceToOracle", nil, nil) | |
1211 | + | if ((hG == hG)) | |
1207 | 1212 | then { | |
1208 | - | let | |
1209 | - | if (( | |
1213 | + | let hH = invoke(this, "ensureCalledOnce", nil, nil) | |
1214 | + | if ((hH == hH)) | |
1210 | 1215 | then { | |
1211 | - | let | |
1212 | - | let | |
1213 | - | let | |
1214 | - | let | |
1215 | - | let | |
1216 | - | if (if (if (if (if (if (if (if (if (if (if (( | |
1217 | - | then ( | |
1216 | + | let bW = bM(bN) | |
1217 | + | let hI = bN.payments[0].amount | |
1218 | + | let hJ = bN.payments[0].assetId | |
1219 | + | let hK = toBase58String(value(hJ)) | |
1220 | + | let hL = (hJ == ak()) | |
1221 | + | if (if (if (if (if (if (if (if (if (if (if ((bX != au)) | |
1222 | + | then (bX != av) | |
1218 | 1223 | else false) | |
1219 | 1224 | then true | |
1220 | - | else (0 >= | |
1225 | + | else (0 >= hI)) | |
1221 | 1226 | then true | |
1222 | - | else !( | |
1227 | + | else !(cp())) | |
1223 | 1228 | then true | |
1224 | - | else !( | |
1229 | + | else !(hL)) | |
1225 | 1230 | then true | |
1226 | - | else !( | |
1231 | + | else !(bO(aL(ay, hB), bd(), true))) | |
1227 | 1232 | then true | |
1228 | - | else !( | |
1233 | + | else !(bO(aL(ay, hB), be(), false))) | |
1229 | 1234 | then true | |
1230 | - | else !( | |
1235 | + | else !(dU(bN.caller))) | |
1231 | 1236 | then true | |
1232 | - | else | |
1237 | + | else cq()) | |
1233 | 1238 | then true | |
1234 | - | else | |
1239 | + | else cr()) | |
1235 | 1240 | then true | |
1236 | - | else | |
1241 | + | else dG()) | |
1237 | 1242 | then throw("Invalid increasePosition parameters") | |
1238 | 1243 | else { | |
1239 | - | let | |
1240 | - | let | |
1241 | - | let | |
1242 | - | let | |
1243 | - | let | |
1244 | - | let | |
1245 | - | if (( | |
1244 | + | let hM = gj(bW, go(bN)) | |
1245 | + | let gh = hM._1 | |
1246 | + | let gi = hM._2 | |
1247 | + | let hj = aL(hI, (aN(gh, hB) + ay)) | |
1248 | + | let hN = (hI - hj) | |
1249 | + | let hO = invoke(ap(), "acceptPaymentWithLink", [bW, hD], [AttachedPayment(ak(), hN)]) | |
1250 | + | if ((hO == hO)) | |
1246 | 1251 | then { | |
1247 | - | let | |
1248 | - | let | |
1249 | - | if ($isInstanceOf( | |
1252 | + | let hP = { | |
1253 | + | let ca = hO | |
1254 | + | if ($isInstanceOf(ca, "Int")) | |
1250 | 1255 | then { | |
1251 | - | let | |
1252 | - | | |
1256 | + | let gm = ca | |
1257 | + | gm | |
1253 | 1258 | } | |
1254 | 1259 | else throw("Invalid referrerFee") | |
1255 | 1260 | } | |
1256 | - | let | |
1257 | - | let | |
1258 | - | let | |
1259 | - | let | |
1260 | - | let | |
1261 | - | let | |
1262 | - | let | |
1263 | - | let | |
1264 | - | let | |
1265 | - | then ( | |
1266 | - | else ( | |
1267 | - | let | |
1268 | - | then | |
1261 | + | let hQ = (hN - hP) | |
1262 | + | let hR = bV(bW, bX) | |
1263 | + | let eL = hR._1 | |
1264 | + | let eM = hR._2 | |
1265 | + | let eN = hR._3 | |
1266 | + | let eO = hR._4 | |
1267 | + | let eP = hR._5 | |
1268 | + | let hS = (eL == 0) | |
1269 | + | let hT = if ((eL > 0)) | |
1270 | + | then (bX == au) | |
1271 | + | else (bX == av) | |
1272 | + | let hU = if (!(hS)) | |
1273 | + | then hT | |
1269 | 1274 | else false | |
1270 | - | let | |
1271 | - | let | |
1275 | + | let hV = (bX == au) | |
1276 | + | let hW = if (if (hS) | |
1272 | 1277 | then true | |
1273 | - | else | |
1278 | + | else hU) | |
1274 | 1279 | then { | |
1275 | - | let | |
1276 | - | let | |
1277 | - | let | |
1278 | - | let | |
1279 | - | let | |
1280 | - | let | |
1281 | - | if (if (( | |
1282 | - | then ( | |
1280 | + | let hX = aN(hj, hB) | |
1281 | + | let hY = cD(hV, hX) | |
1282 | + | let cK = hY._1 | |
1283 | + | let cH = hY._2 | |
1284 | + | let cI = hY._3 | |
1285 | + | let eV = hY._4 | |
1286 | + | if (if ((hC != 0)) | |
1287 | + | then (hC > aQ(cK)) | |
1283 | 1288 | else false) | |
1284 | - | then throw(((("Limit error: " + toString( | |
1289 | + | then throw(((("Limit error: " + toString(aQ(cK))) + " < ") + toString(hC))) | |
1285 | 1290 | else { | |
1286 | - | let | |
1287 | - | let | |
1288 | - | then | |
1291 | + | let fj = (eL + cK) | |
1292 | + | let hZ = (bo() + (if ((fj > 0)) | |
1293 | + | then hX | |
1289 | 1294 | else 0)) | |
1290 | - | let | |
1291 | - | then | |
1295 | + | let ia = (bn() + (if ((0 > fj)) | |
1296 | + | then hX | |
1292 | 1297 | else 0)) | |
1293 | - | let | |
1294 | - | let | |
1295 | - | let | |
1296 | - | let | |
1297 | - | let | |
1298 | - | if (!( | |
1298 | + | let ib = cZ(eL, eM, eO, eP, hj) | |
1299 | + | let dh = ib._1 | |
1300 | + | let fd = ib._2 | |
1301 | + | let fe = ib._3 | |
1302 | + | let cY = ib._4 | |
1303 | + | if (!(dM(cH, cI))) | |
1299 | 1304 | then throw("Over max spread limit") | |
1300 | - | else if (!( | |
1305 | + | else if (!(dQ(hZ, ia))) | |
1301 | 1306 | then throw("Over max open notional") | |
1302 | - | else $Tuple14( | |
1303 | - | then | |
1304 | - | else 0)), ( | |
1305 | - | then | |
1306 | - | else 0)), | |
1307 | + | else $Tuple14(fj, dh, (eN + hX), bT(fj), bL(), cI, cH, eV, (bm() + hX), (bD() + (if ((fj > 0)) | |
1308 | + | then aQ(cK) | |
1309 | + | else 0)), (bC() + (if ((0 > fj)) | |
1310 | + | then aQ(cK) | |
1311 | + | else 0)), hZ, ia, cY) | |
1307 | 1312 | } | |
1308 | 1313 | } | |
1309 | 1314 | else { | |
1310 | - | let | |
1311 | - | let | |
1312 | - | let | |
1313 | - | let | |
1314 | - | if (( | |
1315 | + | let hX = aN(hj, hB) | |
1316 | + | let ic = ei(toString(bN.caller), bX, aB) | |
1317 | + | let eY = ic._1 | |
1318 | + | let eh = ic._2 | |
1319 | + | if ((eY > hX)) | |
1315 | 1320 | then throw("Use decreasePosition to decrease position size") | |
1316 | 1321 | else throw("Close position first") | |
1317 | 1322 | } | |
1318 | - | let | |
1319 | - | let | |
1320 | - | let | |
1321 | - | let | |
1322 | - | let | |
1323 | - | let | |
1324 | - | let | |
1325 | - | let | |
1326 | - | let | |
1327 | - | let | |
1328 | - | let | |
1329 | - | let | |
1330 | - | let | |
1331 | - | let | |
1332 | - | let | |
1333 | - | let | |
1334 | - | let | |
1335 | - | let | |
1336 | - | then invoke( | |
1337 | - | else invoke( | |
1338 | - | if (( | |
1323 | + | let fj = hW._1 | |
1324 | + | let id = hW._2 | |
1325 | + | let fl = hW._3 | |
1326 | + | let ie = hW._4 | |
1327 | + | let if = hW._5 | |
1328 | + | let cI = hW._6 | |
1329 | + | let cH = hW._7 | |
1330 | + | let eV = hW._8 | |
1331 | + | let ig = hW._9 | |
1332 | + | let ih = hW._10 | |
1333 | + | let ii = hW._11 | |
1334 | + | let hZ = hW._12 | |
1335 | + | let ia = hW._13 | |
1336 | + | let cY = hW._14 | |
1337 | + | let ij = gq((hQ + cY)) | |
1338 | + | let gs = ij._1 | |
1339 | + | let gt = ij._2 | |
1340 | + | let ik = if ((hj >= cY)) | |
1341 | + | then invoke(am(), "addLocked", nil, [AttachedPayment(ak(), (hj - cY))]) | |
1342 | + | else invoke(am(), "withdrawLocked", [(cY - hj)], nil) | |
1343 | + | if ((ik == ik)) | |
1339 | 1344 | then { | |
1340 | - | let | |
1341 | - | if (( | |
1345 | + | let il = invoke(am(), "addFree", nil, [AttachedPayment(ak(), gt)]) | |
1346 | + | if ((il == il)) | |
1342 | 1347 | then { | |
1343 | - | let | |
1344 | - | if (( | |
1348 | + | let im = invoke(an(), "notifyFees", [bW, hQ], nil) | |
1349 | + | if ((im == im)) | |
1345 | 1350 | then { | |
1346 | - | let | |
1347 | - | if (( | |
1348 | - | then (((((( | |
1351 | + | let in = invoke(an(), "notifyNotional", [bW, fl], nil) | |
1352 | + | if ((in == in)) | |
1353 | + | then ((((((gU(bW, fj, id, fl, ie, if) ++ gQ(hS, bW, bX)) ++ gT(hS, bW, bX, gh)) ++ ha(cH, cI, eV, ig, ih, ii, hZ, ia)) ++ hn(gs)) ++ hl(((aZ() + hj) - cY))) ++ ho(gi, bN)) | |
1349 | 1354 | else throw("Strict value is not equal to itself.") | |
1350 | 1355 | } | |
1351 | 1356 | else throw("Strict value is not equal to itself.") | |
1366 | 1371 | ||
1367 | 1372 | ||
1368 | 1373 | ||
1369 | - | @Callable( | |
1370 | - | func addMargin ( | |
1371 | - | let | |
1372 | - | if (( | |
1374 | + | @Callable(bN) | |
1375 | + | func addMargin (bX,hE) = { | |
1376 | + | let hF = invoke(this, "updateOracle", [hE], nil) | |
1377 | + | if ((hF == hF)) | |
1373 | 1378 | then { | |
1374 | - | let | |
1375 | - | if (( | |
1379 | + | let hG = invoke(this, "syncTerminalPriceToOracle", nil, nil) | |
1380 | + | if ((hG == hG)) | |
1376 | 1381 | then { | |
1377 | - | let | |
1378 | - | if (( | |
1382 | + | let hH = invoke(this, "ensureCalledOnce", nil, nil) | |
1383 | + | if ((hH == hH)) | |
1379 | 1384 | then { | |
1380 | - | let | |
1381 | - | let | |
1382 | - | let | |
1383 | - | let | |
1384 | - | let | |
1385 | - | if (if (if (if (if (!( | |
1385 | + | let bW = toString(bN.caller) | |
1386 | + | let hj = bN.payments[0].amount | |
1387 | + | let hJ = bN.payments[0].assetId | |
1388 | + | let hK = toBase58String(value(hJ)) | |
1389 | + | let hL = (hJ == ak()) | |
1390 | + | if (if (if (if (if (!(hL)) | |
1386 | 1391 | then true | |
1387 | - | else !( | |
1392 | + | else !(cg(toString(bN.caller), bX))) | |
1388 | 1393 | then true | |
1389 | - | else !( | |
1394 | + | else !(cp())) | |
1390 | 1395 | then true | |
1391 | - | else | |
1396 | + | else cq()) | |
1392 | 1397 | then true | |
1393 | - | else | |
1398 | + | else dG()) | |
1394 | 1399 | then throw("Invalid addMargin parameters") | |
1395 | 1400 | else { | |
1396 | - | let | |
1397 | - | let | |
1398 | - | let | |
1399 | - | let | |
1400 | - | let | |
1401 | - | let | |
1402 | - | let | |
1403 | - | if (( | |
1401 | + | let io = bV(bW, bX) | |
1402 | + | let eL = io._1 | |
1403 | + | let eM = io._2 | |
1404 | + | let eN = io._3 | |
1405 | + | let eO = io._4 | |
1406 | + | let eP = io._5 | |
1407 | + | let ik = invoke(am(), "addLocked", nil, [AttachedPayment(ak(), hj)]) | |
1408 | + | if ((ik == ik)) | |
1404 | 1409 | then { | |
1405 | - | let | |
1406 | - | let | |
1407 | - | let | |
1408 | - | let | |
1409 | - | let | |
1410 | - | let | |
1411 | - | if (( | |
1410 | + | let ip = cZ(eL, eM, eO, eP, hj) | |
1411 | + | let dh = ip._1 | |
1412 | + | let di = ip._2 | |
1413 | + | let cY = ip._3 | |
1414 | + | let fo = en(dh, di, eN) | |
1415 | + | let iq = bO(fo, be(), false) | |
1416 | + | if ((iq == iq)) | |
1412 | 1417 | then { | |
1413 | - | let | |
1418 | + | let ir = if ((cY > 0)) | |
1414 | 1419 | then { | |
1415 | - | let | |
1416 | - | let | |
1417 | - | let | |
1418 | - | let | |
1419 | - | if (( | |
1420 | + | let is = gq(cY) | |
1421 | + | let gs = is._1 | |
1422 | + | let gt = is._2 | |
1423 | + | let it = invoke(am(), "withdrawLocked", [gs], nil) | |
1424 | + | if ((it == it)) | |
1420 | 1425 | then { | |
1421 | - | let | |
1422 | - | if (( | |
1423 | - | then | |
1426 | + | let iu = invoke(am(), "exchangeFreeAndLocked", [-(gt)], nil) | |
1427 | + | if ((iu == iu)) | |
1428 | + | then hn(gs) | |
1424 | 1429 | else throw("Strict value is not equal to itself.") | |
1425 | 1430 | } | |
1426 | 1431 | else throw("Strict value is not equal to itself.") | |
1427 | 1432 | } | |
1428 | 1433 | else nil | |
1429 | - | if (( | |
1430 | - | then (( | |
1434 | + | if ((ir == ir)) | |
1435 | + | then ((gU(bW, eL, ((eM - cY) + hj), eN, eO, bL()) ++ hl(((aZ() + hj) - cY))) ++ ir) | |
1431 | 1436 | else throw("Strict value is not equal to itself.") | |
1432 | 1437 | } | |
1433 | 1438 | else throw("Strict value is not equal to itself.") | |
1444 | 1449 | ||
1445 | 1450 | ||
1446 | 1451 | ||
1447 | - | @Callable( | |
1448 | - | func removeMargin ( | |
1449 | - | let | |
1450 | - | if (( | |
1452 | + | @Callable(bN) | |
1453 | + | func removeMargin (hj,bX,hE) = { | |
1454 | + | let hF = invoke(this, "updateOracle", [hE], nil) | |
1455 | + | if ((hF == hF)) | |
1451 | 1456 | then { | |
1452 | - | let | |
1453 | - | if (( | |
1457 | + | let hG = invoke(this, "syncTerminalPriceToOracle", nil, nil) | |
1458 | + | if ((hG == hG)) | |
1454 | 1459 | then { | |
1455 | - | let | |
1456 | - | if (( | |
1460 | + | let hH = invoke(this, "ensureCalledOnce", nil, nil) | |
1461 | + | if ((hH == hH)) | |
1457 | 1462 | then { | |
1458 | - | let | |
1459 | - | if (if (if (if (if ((0 >= | |
1463 | + | let bW = toString(bN.caller) | |
1464 | + | if (if (if (if (if ((0 >= hj)) | |
1460 | 1465 | then true | |
1461 | - | else !( | |
1466 | + | else !(cg(bW, bX))) | |
1462 | 1467 | then true | |
1463 | - | else !( | |
1468 | + | else !(cp())) | |
1464 | 1469 | then true | |
1465 | - | else | |
1470 | + | else cq()) | |
1466 | 1471 | then true | |
1467 | - | else | |
1472 | + | else dG()) | |
1468 | 1473 | then throw("Invalid removeMargin parameters") | |
1469 | 1474 | else { | |
1470 | - | let | |
1471 | - | let | |
1472 | - | let | |
1473 | - | let | |
1474 | - | let | |
1475 | - | let | |
1476 | - | let | |
1477 | - | let | |
1478 | - | let | |
1479 | - | let | |
1480 | - | let | |
1481 | - | if (( | |
1475 | + | let iv = bV(bW, bX) | |
1476 | + | let eL = iv._1 | |
1477 | + | let eM = iv._2 | |
1478 | + | let eN = iv._3 | |
1479 | + | let eO = iv._4 | |
1480 | + | let eP = iv._5 | |
1481 | + | let iw = cZ(eL, eM, eO, eP, -(hj)) | |
1482 | + | let dh = iw._1 | |
1483 | + | let di = iw._2 | |
1484 | + | let dd = iw._3 | |
1485 | + | let cY = iw._4 | |
1486 | + | if ((di != 0)) | |
1482 | 1487 | then throw("Invalid removed margin amount") | |
1483 | 1488 | else { | |
1484 | - | let | |
1485 | - | if (!( | |
1486 | - | then throw(((("Too much margin removed: " + toString( | |
1489 | + | let fo = en(dh, di, eN) | |
1490 | + | if (!(bO(fo, bd(), true))) | |
1491 | + | then throw(((("Too much margin removed: " + toString(fo)) + " < ") + toString(bd()))) | |
1487 | 1492 | else { | |
1488 | - | let | |
1489 | - | let | |
1490 | - | let | |
1491 | - | let | |
1493 | + | let ix = gq(cY) | |
1494 | + | let gs = ix._1 | |
1495 | + | let gt = ix._2 | |
1496 | + | let ir = if ((cY > 0)) | |
1492 | 1497 | then { | |
1493 | - | let | |
1494 | - | if (( | |
1495 | - | then | |
1498 | + | let iu = invoke(am(), "exchangeFreeAndLocked", [-(gt)], nil) | |
1499 | + | if ((iu == iu)) | |
1500 | + | then hn(gs) | |
1496 | 1501 | else throw("Strict value is not equal to itself.") | |
1497 | 1502 | } | |
1498 | 1503 | else nil | |
1499 | - | if (( | |
1504 | + | if ((ir == ir)) | |
1500 | 1505 | then { | |
1501 | - | let | |
1502 | - | if (( | |
1503 | - | then ((( | |
1506 | + | let it = invoke(am(), "withdrawLocked", [(hj + gs)], nil) | |
1507 | + | if ((it == it)) | |
1508 | + | then (((gU(bW, eL, dh, eN, bT(eL), bL()) ++ hi(bN.caller, hj)) ++ hl(((aZ() - hj) - cY))) ++ ir) | |
1504 | 1509 | else throw("Strict value is not equal to itself.") | |
1505 | 1510 | } | |
1506 | 1511 | else throw("Strict value is not equal to itself.") | |
1517 | 1522 | ||
1518 | 1523 | ||
1519 | 1524 | ||
1520 | - | @Callable( | |
1521 | - | func closePosition ( | |
1522 | - | let | |
1523 | - | if (( | |
1525 | + | @Callable(bN) | |
1526 | + | func closePosition (eF,bX,eH,eI,hE) = { | |
1527 | + | let hF = invoke(this, "updateOracle", [hE], nil) | |
1528 | + | if ((hF == hF)) | |
1524 | 1529 | then { | |
1525 | - | let | |
1526 | - | if (( | |
1530 | + | let hG = invoke(this, "syncTerminalPriceToOracle", nil, nil) | |
1531 | + | if ((hG == hG)) | |
1527 | 1532 | then { | |
1528 | - | let | |
1529 | - | if (( | |
1533 | + | let hH = invoke(this, "ensureCalledOnce", nil, nil) | |
1534 | + | if ((hH == hH)) | |
1530 | 1535 | then { | |
1531 | - | let | |
1532 | - | let | |
1533 | - | let | |
1534 | - | if (if (if (if (if (if (!( | |
1536 | + | let bW = bM(bN) | |
1537 | + | let iy = valueOrErrorMessage(addressFromString(bW), "Invalid caller") | |
1538 | + | let cf = cd(bW, bX) | |
1539 | + | if (if (if (if (if (if (!(cg(bW, bX))) | |
1535 | 1540 | then true | |
1536 | - | else !( | |
1541 | + | else !(cp())) | |
1537 | 1542 | then true | |
1538 | - | else | |
1543 | + | else cq()) | |
1539 | 1544 | then true | |
1540 | - | else (0 >= | |
1545 | + | else (0 >= eF)) | |
1541 | 1546 | then true | |
1542 | - | else (0 > | |
1547 | + | else (0 > eH)) | |
1543 | 1548 | then true | |
1544 | - | else | |
1549 | + | else dG()) | |
1545 | 1550 | then throw("Invalid closePosition parameters") | |
1546 | 1551 | else { | |
1547 | - | let | |
1548 | - | let | |
1549 | - | let | |
1550 | - | let | |
1551 | - | let | |
1552 | - | let | |
1553 | - | let | |
1554 | - | let | |
1555 | - | let | |
1556 | - | let | |
1557 | - | let | |
1558 | - | let | |
1559 | - | let | |
1560 | - | let | |
1561 | - | let | |
1562 | - | let | |
1563 | - | let | |
1564 | - | let | |
1565 | - | if (( | |
1552 | + | let eP = bV(bW, bX)._5 | |
1553 | + | let iz = eE(bW, bX, eF, cf, eH, eI, true, true) | |
1554 | + | let fj = iz._1 | |
1555 | + | let fs = iz._2 | |
1556 | + | let fl = iz._3 | |
1557 | + | let fm = iz._4 | |
1558 | + | let ff = iz._5 | |
1559 | + | let fa = iz._6 | |
1560 | + | let fr = iz._7 | |
1561 | + | let cH = iz._8 | |
1562 | + | let cI = iz._9 | |
1563 | + | let eV = iz._10 | |
1564 | + | let ig = iz._11 | |
1565 | + | let ih = iz._12 | |
1566 | + | let ii = iz._13 | |
1567 | + | let hZ = iz._14 | |
1568 | + | let ia = iz._15 | |
1569 | + | let iA = iz._16 | |
1570 | + | if ((ff > 0)) | |
1566 | 1571 | then throw("Invalid closePosition parameters: bad debt") | |
1567 | - | else if (( | |
1572 | + | else if ((eP >= bL())) | |
1568 | 1573 | then throw("Invalid closePosition parameters: wait at least 1 block before closing the position") | |
1569 | 1574 | else { | |
1570 | - | let | |
1571 | - | let | |
1572 | - | let | |
1573 | - | let | |
1575 | + | let eS = (fj != 0) | |
1576 | + | let iB = (fr + iA) | |
1577 | + | let iC = (aZ() - iB) | |
1578 | + | let iD = if ((0 > iC)) | |
1574 | 1579 | then 0 | |
1575 | - | else | |
1576 | - | let | |
1577 | - | if (( | |
1580 | + | else iC | |
1581 | + | let it = invoke(am(), "withdrawLocked", [iB], nil) | |
1582 | + | if ((it == it)) | |
1578 | 1583 | then { | |
1579 | - | let | |
1580 | - | if (( | |
1584 | + | let hO = invoke(ap(), "acceptPayment", [bW], [AttachedPayment(ak(), iA)]) | |
1585 | + | if ((hO == hO)) | |
1581 | 1586 | then { | |
1582 | - | let | |
1583 | - | let | |
1584 | - | if ($isInstanceOf( | |
1587 | + | let hP = { | |
1588 | + | let ca = hO | |
1589 | + | if ($isInstanceOf(ca, "Int")) | |
1585 | 1590 | then { | |
1586 | - | let | |
1587 | - | | |
1591 | + | let gm = ca | |
1592 | + | gm | |
1588 | 1593 | } | |
1589 | 1594 | else throw("Invalid referrerFee") | |
1590 | 1595 | } | |
1591 | - | let | |
1592 | - | let | |
1593 | - | let | |
1594 | - | let | |
1595 | - | if (( | |
1596 | + | let iE = gq((iA - hP)) | |
1597 | + | let gs = iE._1 | |
1598 | + | let gt = iE._2 | |
1599 | + | let il = invoke(am(), "addFree", nil, [AttachedPayment(ak(), gt)]) | |
1600 | + | if ((il == il)) | |
1596 | 1601 | then { | |
1597 | - | let | |
1598 | - | if (( | |
1602 | + | let im = invoke(an(), "notifyFees", [bW, iA], nil) | |
1603 | + | if ((im == im)) | |
1599 | 1604 | then { | |
1600 | - | let | |
1601 | - | if (( | |
1602 | - | then (((((if ( | |
1603 | - | then | |
1604 | - | else | |
1605 | - | then | |
1606 | - | else nil)) ++ | |
1605 | + | let in = invoke(an(), "notifyNotional", [bW, fl], nil) | |
1606 | + | if ((in == in)) | |
1607 | + | then (((((if (eS) | |
1608 | + | then gU(bW, fj, fs, fl, fm, bL()) | |
1609 | + | else hh(bW, bX)) ++ ha(cH, cI, eV, ig, ih, ii, hZ, ia)) ++ (if ((fr > 0)) | |
1610 | + | then hi(iy, fr) | |
1611 | + | else nil)) ++ hl(iD)) ++ hn(gs)) | |
1607 | 1612 | else throw("Strict value is not equal to itself.") | |
1608 | 1613 | } | |
1609 | 1614 | else throw("Strict value is not equal to itself.") | |
1625 | 1630 | ||
1626 | 1631 | ||
1627 | 1632 | ||
1628 | - | @Callable( | |
1629 | - | func liquidate ( | |
1630 | - | let | |
1631 | - | if (( | |
1633 | + | @Callable(bN) | |
1634 | + | func liquidate (bW,bX,hE) = { | |
1635 | + | let hF = invoke(this, "updateOracle", [hE], nil) | |
1636 | + | if ((hF == hF)) | |
1632 | 1637 | then { | |
1633 | - | let | |
1634 | - | if (( | |
1638 | + | let hG = invoke(this, "syncTerminalPriceToOracle", nil, nil) | |
1639 | + | if ((hG == hG)) | |
1635 | 1640 | then { | |
1636 | - | let | |
1637 | - | let | |
1641 | + | let iF = er(bW, bX, aB) | |
1642 | + | let iG = if (dX()) | |
1638 | 1643 | then { | |
1639 | - | let | |
1640 | - | | |
1644 | + | let iH = er(bW, bX, aC) | |
1645 | + | aR(iF, iH) | |
1641 | 1646 | } | |
1642 | - | else | |
1643 | - | if (if (if (if (if (!( | |
1647 | + | else iF | |
1648 | + | if (if (if (if (if (!(bO(iG, bt(), false))) | |
1644 | 1649 | then true | |
1645 | - | else !( | |
1650 | + | else !(cg(bW, bX))) | |
1646 | 1651 | then true | |
1647 | - | else !( | |
1652 | + | else !(cp())) | |
1648 | 1653 | then true | |
1649 | - | else | |
1654 | + | else cq()) | |
1650 | 1655 | then true | |
1651 | - | else | |
1656 | + | else dG()) | |
1652 | 1657 | then throw("Unable to liquidate") | |
1653 | 1658 | else { | |
1654 | - | let iG = if (if ((iD > bt())) | |
1655 | - | then (bu() > 0) | |
1659 | + | let eL = bV(bW, bX)._1 | |
1660 | + | let eb = aQ(eL) | |
1661 | + | let iI = if (if (if ((iF > bu())) | |
1662 | + | then (bv() > 0) | |
1656 | 1663 | else false) | |
1657 | - | then (ax > bu()) | |
1664 | + | then (ay > bv()) | |
1665 | + | else false) | |
1666 | + | then (aN(eb, dW()) > bK()) | |
1658 | 1667 | else false | |
1659 | - | let eJ = bT(bU, bV)._1 | |
1660 | - | let dZ = aP(eJ) | |
1661 | - | let iH = if (iG) | |
1668 | + | let iJ = if (iI) | |
1662 | 1669 | then { | |
1663 | - | let iI = ex(bU, eJ) | |
1664 | - | let iJ = aK(aP(iI), dZ) | |
1665 | - | $Tuple2(iJ, aP(iI)) | |
1670 | + | let iK = aQ(ez(bW, eL)) | |
1671 | + | let iL = aL(iK, eb) | |
1672 | + | let iM = aN(iK, dW()) | |
1673 | + | $Tuple2(iL, iK) | |
1666 | 1674 | } | |
1667 | - | else $Tuple2(0, | |
1668 | - | let | |
1669 | - | let | |
1670 | - | let | |
1671 | - | then | |
1672 | - | else | |
1673 | - | let | |
1674 | - | let | |
1675 | - | let | |
1676 | - | let | |
1677 | - | let | |
1678 | - | let | |
1679 | - | let | |
1680 | - | let | |
1681 | - | let | |
1682 | - | let | |
1683 | - | let | |
1684 | - | let | |
1685 | - | let | |
1686 | - | let | |
1687 | - | let | |
1688 | - | let | |
1689 | - | let | |
1690 | - | let | |
1691 | - | let | |
1692 | - | let | |
1675 | + | else $Tuple2(0, eb) | |
1676 | + | let iL = iJ._1 | |
1677 | + | let iK = iJ._2 | |
1678 | + | let iN = eE(bW, bX, if (iI) | |
1679 | + | then iK | |
1680 | + | else eb, bu(), 0, true, false, true) | |
1681 | + | let fj = iN._1 | |
1682 | + | let fs = iN._2 | |
1683 | + | let fl = iN._3 | |
1684 | + | let fm = iN._4 | |
1685 | + | let ff = iN._5 | |
1686 | + | let fa = iN._6 | |
1687 | + | let fr = iN._7 | |
1688 | + | let cH = iN._8 | |
1689 | + | let cI = iN._9 | |
1690 | + | let eV = iN._10 | |
1691 | + | let ig = iN._11 | |
1692 | + | let ih = iN._12 | |
1693 | + | let ii = iN._13 | |
1694 | + | let hZ = iN._14 | |
1695 | + | let ia = iN._15 | |
1696 | + | let iO = iN._16 | |
1697 | + | let iP = (iO / 2) | |
1698 | + | let gt = (iO - iP) | |
1699 | + | let iC = (aZ() - iO) | |
1700 | + | let iQ = if ((0 > iC)) | |
1693 | 1701 | then 0 | |
1694 | - | else | |
1695 | - | let | |
1702 | + | else iC | |
1703 | + | let iu = if ((ff > 0)) | |
1696 | 1704 | then { | |
1697 | - | let | |
1698 | - | if (( | |
1705 | + | let iu = invoke(am(), "exchangeFreeAndLocked", [(ff + iO)], nil) | |
1706 | + | if ((iu == iu)) | |
1699 | 1707 | then nil | |
1700 | 1708 | else throw("Strict value is not equal to itself.") | |
1701 | 1709 | } | |
1702 | 1710 | else nil | |
1703 | - | if (( | |
1711 | + | if ((iu == iu)) | |
1704 | 1712 | then { | |
1705 | - | let | |
1706 | - | if (( | |
1713 | + | let it = invoke(am(), "withdrawLocked", [iO], nil) | |
1714 | + | if ((it == it)) | |
1707 | 1715 | then { | |
1708 | - | let | |
1709 | - | if (( | |
1716 | + | let iR = invoke(am(), "addFree", nil, [AttachedPayment(ak(), gt)]) | |
1717 | + | if ((iR == iR)) | |
1710 | 1718 | then { | |
1711 | - | let | |
1712 | - | if (( | |
1713 | - | then ((((if ( | |
1714 | - | then | |
1715 | - | else | |
1719 | + | let in = invoke(an(), "notifyNotional", [bW, fl], nil) | |
1720 | + | if ((in == in)) | |
1721 | + | then ((((if (iI) | |
1722 | + | then gU(bW, fj, fs, fl, fm, bL()) | |
1723 | + | else hh(bW, bX)) ++ ha(cH, cI, eV, ig, ih, ii, hZ, ia)) ++ hi(bN.caller, iP)) ++ hl(iQ)) | |
1716 | 1724 | else throw("Strict value is not equal to itself.") | |
1717 | 1725 | } | |
1718 | 1726 | else throw("Strict value is not equal to itself.") | |
1729 | 1737 | ||
1730 | 1738 | ||
1731 | 1739 | ||
1732 | - | @Callable( | |
1733 | - | func payFunding ( | |
1734 | - | let | |
1735 | - | if (( | |
1740 | + | @Callable(bN) | |
1741 | + | func payFunding (hE) = { | |
1742 | + | let hF = invoke(this, "updateOracle", [hE], nil) | |
1743 | + | if ((hF == hF)) | |
1736 | 1744 | then { | |
1737 | - | let | |
1738 | - | if (( | |
1745 | + | let hG = invoke(this, "syncTerminalPriceToOracle", nil, nil) | |
1746 | + | if ((hG == hG)) | |
1739 | 1747 | then { | |
1740 | - | let | |
1741 | - | if (if (if (( | |
1748 | + | let iS = bp() | |
1749 | + | if (if (if ((iS > bL())) | |
1742 | 1750 | then true | |
1743 | - | else !( | |
1751 | + | else !(cp())) | |
1744 | 1752 | then true | |
1745 | - | else | |
1746 | - | then throw(((("Invalid funding block timestamp: " + toString( | |
1753 | + | else cq()) | |
1754 | + | then throw(((("Invalid funding block timestamp: " + toString(bL())) + " < ") + toString(iS))) | |
1747 | 1755 | else { | |
1748 | - | let | |
1749 | - | let | |
1750 | - | let | |
1751 | - | let | |
1752 | - | let | |
1753 | - | let | |
1756 | + | let fR = dA() | |
1757 | + | let iT = fQ() | |
1758 | + | let fU = iT._1 | |
1759 | + | let fV = iT._2 | |
1760 | + | let fY = iT._3 | |
1761 | + | let iU = if ((fY > 0)) | |
1754 | 1762 | then { | |
1755 | - | let | |
1756 | - | if (( | |
1763 | + | let iU = invoke(am(), "exchangeFreeAndLocked", [-(fY)], nil) | |
1764 | + | if ((iU == iU)) | |
1757 | 1765 | then nil | |
1758 | 1766 | else throw("Strict value is not equal to itself.") | |
1759 | 1767 | } | |
1760 | 1768 | else nil | |
1761 | - | if (( | |
1762 | - | then | |
1769 | + | if ((iU == iU)) | |
1770 | + | then gK((iS + bs()), (bA() + fV), (bB() + fU), aL(fV, fR), aL(fU, fR)) | |
1763 | 1771 | else throw("Strict value is not equal to itself.") | |
1764 | 1772 | } | |
1765 | 1773 | } | |
1770 | 1778 | ||
1771 | 1779 | ||
1772 | 1780 | ||
1773 | - | @Callable( | |
1774 | - | func updateOracle ( | |
1781 | + | @Callable(bN) | |
1782 | + | func updateOracle (hE) = if ((bI() == aF)) | |
1775 | 1783 | then nil | |
1776 | 1784 | else { | |
1777 | - | let | |
1778 | - | let | |
1779 | - | let | |
1780 | - | let | |
1781 | - | if (( | |
1785 | + | let iV = split_4C(hE, "::") | |
1786 | + | let dB = valueOrErrorMessage(ch(a), "No base asset oracle data") | |
1787 | + | let iW = dB._1 | |
1788 | + | let iX = invoke(iW, "updateData", [iV[0]], nil) | |
1789 | + | if ((iX == iX)) | |
1782 | 1790 | then { | |
1783 | - | let | |
1784 | - | let | |
1791 | + | let dD = ch(b) | |
1792 | + | let iY = if (isDefined(dD)) | |
1785 | 1793 | then { | |
1786 | - | let | |
1787 | - | let | |
1788 | - | let | |
1789 | - | if (( | |
1794 | + | let dF = value(dD) | |
1795 | + | let iZ = dF._1 | |
1796 | + | let iY = invoke(iZ, "updateData", [iV[1]], nil) | |
1797 | + | if ((iY == iY)) | |
1790 | 1798 | then nil | |
1791 | 1799 | else throw("Strict value is not equal to itself.") | |
1792 | 1800 | } | |
1793 | 1801 | else nil | |
1794 | - | if (( | |
1802 | + | if ((iY == iY)) | |
1795 | 1803 | then nil | |
1796 | 1804 | else throw("Strict value is not equal to itself.") | |
1797 | 1805 | } | |
1800 | 1808 | ||
1801 | 1809 | ||
1802 | 1810 | ||
1803 | - | @Callable( | |
1811 | + | @Callable(bN) | |
1804 | 1812 | func syncTerminalPriceToOracle () = { | |
1805 | - | let | |
1806 | - | let | |
1807 | - | let | |
1808 | - | let | |
1809 | - | let | |
1810 | - | let | |
1811 | - | let | |
1812 | - | then ( | |
1813 | + | let cz = bf() | |
1814 | + | let cA = bh() | |
1815 | + | let ja = fL(dA(), cz, cA) | |
1816 | + | let hv = ja._1 | |
1817 | + | let hw = ja._2 | |
1818 | + | let fP = ja._3 | |
1819 | + | let jb = if (if ((0 > fP)) | |
1820 | + | then (aQ(fP) > aZ()) | |
1813 | 1821 | else false) | |
1814 | - | then -( | |
1815 | - | else | |
1816 | - | let | |
1822 | + | then -(aZ()) | |
1823 | + | else fP | |
1824 | + | let hx = if ((jb != 0)) | |
1817 | 1825 | then { | |
1818 | - | let | |
1819 | - | if (( | |
1826 | + | let hx = invoke(am(), "exchangeFreeAndLocked", [jb], nil) | |
1827 | + | if ((hx == hx)) | |
1820 | 1828 | then nil | |
1821 | 1829 | else throw("Strict value is not equal to itself.") | |
1822 | 1830 | } | |
1823 | 1831 | else nil | |
1824 | - | if (( | |
1825 | - | then ( | |
1832 | + | if ((hx == hx)) | |
1833 | + | then (hl((aZ() + jb)) ++ gZ(hv, hw)) | |
1826 | 1834 | else throw("Strict value is not equal to itself.") | |
1827 | 1835 | } | |
1828 | 1836 | ||
1829 | 1837 | ||
1830 | 1838 | ||
1831 | - | @Callable( | |
1832 | - | func ensureCalledOnce () = if (( | |
1839 | + | @Callable(bN) | |
1840 | + | func ensureCalledOnce () = if ((bN.caller != this)) | |
1833 | 1841 | then throw("Invalid saveCurrentTxId parameters") | |
1834 | 1842 | else { | |
1835 | - | let | |
1836 | - | let | |
1837 | - | if (( | |
1838 | - | then [StringEntry( | |
1843 | + | let jc = toBase58String(bN.transactionId) | |
1844 | + | let jd = valueOrElse(getString(this, V), "") | |
1845 | + | if ((jd != jc)) | |
1846 | + | then [StringEntry(V, jc)] | |
1839 | 1847 | else throw("Can not call vAMM methods twice in one tx") | |
1840 | 1848 | } | |
1841 | 1849 | ||
1842 | 1850 | ||
1843 | 1851 | ||
1844 | - | @Callable( | |
1845 | - | func migratePosition ( | |
1846 | - | let | |
1847 | - | if (if (isDefined( | |
1848 | - | then isDefined(addressFromString( | |
1852 | + | @Callable(bN) | |
1853 | + | func migratePosition (bW) = { | |
1854 | + | let bZ = getInteger(this, af(e, bW)) | |
1855 | + | if (if (isDefined(bZ)) | |
1856 | + | then isDefined(addressFromString(bW)) | |
1849 | 1857 | else false) | |
1850 | 1858 | then { | |
1851 | - | let | |
1852 | - | let | |
1853 | - | let | |
1854 | - | let | |
1855 | - | let | |
1856 | - | let | |
1857 | - | let | |
1858 | - | let | |
1859 | - | let | |
1860 | - | [DeleteEntry( | |
1859 | + | let je = getIntegerValue(this, af(e, bW)) | |
1860 | + | let jf = getIntegerValue(this, af(f, bW)) | |
1861 | + | let jg = getIntegerValue(this, af(g, bW)) | |
1862 | + | let jh = getIntegerValue(this, af(h, bW)) | |
1863 | + | let ji = valueOrElse(getInteger(this, af(k, bW)), lastBlock.timestamp) | |
1864 | + | let jj = valueOrElse(getInteger(this, af(j, bW)), bb()) | |
1865 | + | let jk = getIntegerValue(this, af(i, bW)) | |
1866 | + | let jl = cc(je) | |
1867 | + | let bY = ((bW + "_") + toString(jl)) | |
1868 | + | [DeleteEntry(af(e, bW)), DeleteEntry(af(f, bW)), DeleteEntry(af(g, bW)), DeleteEntry(af(h, bW)), DeleteEntry(af(k, bW)), DeleteEntry(af(j, bW)), DeleteEntry(af(i, bW)), IntegerEntry(af(e, bY), je), IntegerEntry(af(f, bY), jf), IntegerEntry(af(g, bY), jg), IntegerEntry(af(h, bY), jh), IntegerEntry(af(k, bY), ji), IntegerEntry(af(j, bY), jj), IntegerEntry(af(i, bY), jk)] | |
1861 | 1869 | } | |
1862 | - | else throw(("Nothing to migrate for " + | |
1870 | + | else throw(("Nothing to migrate for " + bW)) | |
1863 | 1871 | } | |
1864 | 1872 | ||
1865 | 1873 | ||
1866 | 1874 | ||
1867 | - | @Callable( | |
1868 | - | func view_calcRemainMarginWithFundingPayment ( | |
1869 | - | let | |
1870 | - | if (( | |
1875 | + | @Callable(bN) | |
1876 | + | func view_calcRemainMarginWithFundingPayment (bW,bX,hE) = { | |
1877 | + | let hF = invoke(this, "updateOracle", [hE], nil) | |
1878 | + | if ((hF == hF)) | |
1871 | 1879 | then { | |
1872 | - | let | |
1873 | - | if (( | |
1880 | + | let hG = invoke(this, "syncTerminalPriceToOracle", nil, nil) | |
1881 | + | if ((hG == hG)) | |
1874 | 1882 | then { | |
1875 | - | let jj = bT(bU, bV) | |
1876 | - | let bZ = jj._1 | |
1877 | - | let ei = jj._2 | |
1878 | - | let er = jj._3 | |
1879 | - | let ek = jj._4 | |
1880 | - | let et = jj._5 | |
1881 | - | let jk = eg(bU, bV, aA) | |
1882 | - | let eb = jk._1 | |
1883 | - | let ef = jk._2 | |
1884 | - | let jl = cX(bZ, ei, ek, et, ef) | |
1885 | - | let df = jl._1 | |
1886 | - | let dg = jl._2 | |
1887 | - | let db = jl._3 | |
1888 | - | let cW = jl._4 | |
1889 | - | throw(((((((aI(df) + aI(db)) + aI(ew(bU, bV))) + aI(ef)) + aI(dg)) + aI(eb)) + aI(cW))) | |
1883 | + | let jm = bV(bW, bX) | |
1884 | + | let cb = jm._1 | |
1885 | + | let ek = jm._2 | |
1886 | + | let et = jm._3 | |
1887 | + | let em = jm._4 | |
1888 | + | let ev = jm._5 | |
1889 | + | let jn = ei(bW, bX, aB) | |
1890 | + | let ed = jn._1 | |
1891 | + | let eh = jn._2 | |
1892 | + | let jo = cZ(cb, ek, em, ev, eh) | |
1893 | + | let dh = jo._1 | |
1894 | + | let di = jo._2 | |
1895 | + | let dd = jo._3 | |
1896 | + | let cY = jo._4 | |
1897 | + | let fR = dA() | |
1898 | + | let fS = dW() | |
1899 | + | throw(((((((((aJ(dh) + aJ(dd)) + aJ(ey(bW, bX))) + aJ(eh)) + aJ(di)) + aJ(ed)) + aJ(cY)) + aJ(fR)) + aJ(fS))) | |
1890 | 1900 | } | |
1891 | 1901 | else throw("Strict value is not equal to itself.") | |
1892 | 1902 | } | |
1895 | 1905 | ||
1896 | 1906 | ||
1897 | 1907 | ||
1898 | - | @Callable( | |
1899 | - | func view_getPegAdjustCost ( | |
1900 | - | let | |
1901 | - | let | |
1902 | - | let | |
1903 | - | throw(toString( | |
1908 | + | @Callable(bN) | |
1909 | + | func view_getPegAdjustCost (jp) = { | |
1910 | + | let cz = bf() | |
1911 | + | let cA = bh() | |
1912 | + | let fK = fL(jp, cz, cA) | |
1913 | + | throw(toString(fK._3)) | |
1904 | 1914 | } | |
1905 | 1915 | ||
1906 | 1916 | ||
1907 | 1917 | ||
1908 | - | @Callable( | |
1918 | + | @Callable(bN) | |
1909 | 1919 | func view_getTerminalAmmPrice () = { | |
1910 | - | let | |
1911 | - | let | |
1912 | - | let | |
1913 | - | let | |
1914 | - | throw(toString( | |
1920 | + | let jq = ft() | |
1921 | + | let fx = jq._1 | |
1922 | + | let fy = jq._2 | |
1923 | + | let hq = aL(aN(fx, bj()), aN(fy, bk())) | |
1924 | + | throw(toString(hq)) | |
1915 | 1925 | } | |
1916 | 1926 | ||
1917 | 1927 | ||
1918 | 1928 | ||
1919 | - | @Callable( | |
1920 | - | func view_getFunding ( | |
1921 | - | let | |
1922 | - | if (( | |
1929 | + | @Callable(bN) | |
1930 | + | func view_getFunding (hE) = { | |
1931 | + | let hF = invoke(this, "updateOracle", [hE], nil) | |
1932 | + | if ((hF == hF)) | |
1923 | 1933 | then { | |
1924 | - | let | |
1925 | - | if (( | |
1934 | + | let hG = invoke(this, "syncTerminalPriceToOracle", nil, nil) | |
1935 | + | if ((hG == hG)) | |
1926 | 1936 | then { | |
1927 | - | let | |
1928 | - | let | |
1929 | - | let | |
1930 | - | let | |
1931 | - | let | |
1932 | - | let | |
1933 | - | let | |
1934 | - | throw((((( | |
1937 | + | let fR = dA() | |
1938 | + | let jr = fQ() | |
1939 | + | let fU = jr._1 | |
1940 | + | let fV = jr._2 | |
1941 | + | let fY = jr._3 | |
1942 | + | let js = aL(fV, fR) | |
1943 | + | let jt = aL(fU, fR) | |
1944 | + | throw(((((aJ(js) + aJ(jt)) + aJ(dW())) + aJ(dA())) + aJ(fY))) | |
1935 | 1945 | } | |
1936 | 1946 | else throw("Strict value is not equal to itself.") | |
1937 | 1947 | } | |
1940 | 1950 | ||
1941 | 1951 | ||
1942 | 1952 | ||
1943 | - | @Callable( | |
1953 | + | @Callable(bN) | |
1944 | 1954 | func computeSpotPrice () = { | |
1945 | - | let | |
1946 | - | if (( | |
1955 | + | let hG = invoke(this, "syncTerminalPriceToOracle", nil, nil) | |
1956 | + | if ((hG == hG)) | |
1947 | 1957 | then { | |
1948 | - | let | |
1949 | - | $Tuple2(nil, | |
1958 | + | let fK = dW() | |
1959 | + | $Tuple2(nil, fK) | |
1950 | 1960 | } | |
1951 | 1961 | else throw("Strict value is not equal to itself.") | |
1952 | 1962 | } | |
1953 | 1963 | ||
1954 | 1964 | ||
1955 | 1965 | ||
1956 | - | @Callable( | |
1957 | - | func computeFeeForTraderWithArtifact ( | |
1958 | - | let | |
1959 | - | $Tuple2(nil, | |
1966 | + | @Callable(bN) | |
1967 | + | func computeFeeForTraderWithArtifact (bW,ga) = { | |
1968 | + | let fK = gj(bW, ga) | |
1969 | + | $Tuple2(nil, fK) | |
1960 | 1970 | } | |
1961 | 1971 | ||
1962 | 1972 | ||
1963 | - | @Verifier( | |
1964 | - | func | |
1965 | - | let | |
1966 | - | if (isDefined( | |
1973 | + | @Verifier(ju) | |
1974 | + | func jv () = { | |
1975 | + | let jw = getString(this, W) | |
1976 | + | if (isDefined(jw)) | |
1967 | 1977 | then { | |
1968 | - | let | |
1969 | - | if (isDefined( | |
1970 | - | then valueOrElse(getBoolean(addressFromStringValue(value( | |
1978 | + | let jx = getString(addressFromStringValue(value(jw)), Y) | |
1979 | + | if (isDefined(jx)) | |
1980 | + | then valueOrElse(getBoolean(addressFromStringValue(value(jx)), ((("status_" + toString(this)) + "_") + toBase58String(ju.id))), false) | |
1971 | 1981 | else throw("unable to verify: admin not set in coordinator") | |
1972 | 1982 | } | |
1973 | - | else sigVerify( | |
1983 | + | else sigVerify(ju.bodyBytes, ju.proofs[0], ju.senderPublicKey) | |
1974 | 1984 | } | |
1975 | 1985 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 6 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let a = "k_baseOracle" | |
5 | 5 | ||
6 | 6 | let b = "k_quoteOracle" | |
7 | 7 | ||
8 | 8 | let c = "k_balance" | |
9 | 9 | ||
10 | 10 | let d = "k_sequence" | |
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_positionSequence" | |
21 | 21 | ||
22 | 22 | let j = "k_positionFee" | |
23 | 23 | ||
24 | 24 | let k = "k_positionTimestamp" | |
25 | 25 | ||
26 | 26 | let l = "k_initialized" | |
27 | 27 | ||
28 | 28 | let m = "k_paused" | |
29 | 29 | ||
30 | 30 | let n = "k_closeOnly" | |
31 | 31 | ||
32 | 32 | let o = "k_fee" | |
33 | 33 | ||
34 | 34 | let p = "k_rollover_fee" | |
35 | 35 | ||
36 | 36 | let q = "k_fundingPeriod" | |
37 | 37 | ||
38 | 38 | let r = "k_initMarginRatio" | |
39 | 39 | ||
40 | 40 | let s = "k_minInitMarginRatio" | |
41 | 41 | ||
42 | 42 | let t = "k_mmr" | |
43 | 43 | ||
44 | 44 | let u = "k_liquidationFeeRatio" | |
45 | 45 | ||
46 | 46 | let v = "k_partLiquidationRatio" | |
47 | 47 | ||
48 | 48 | let w = "k_spreadLimit" | |
49 | 49 | ||
50 | 50 | let x = "k_maxPriceImpact" | |
51 | 51 | ||
52 | 52 | let y = "k_maxPriceSpread" | |
53 | 53 | ||
54 | 54 | let z = "k_maxOpenNotional" | |
55 | 55 | ||
56 | 56 | let A = "k_feeToStakersPercent" | |
57 | 57 | ||
58 | 58 | let B = "k_maxOracleDelay" | |
59 | 59 | ||
60 | 60 | let C = "k_fundingMode" | |
61 | 61 | ||
62 | 62 | let D = "k_oracleMode" | |
63 | 63 | ||
64 | 64 | let E = "k_positionMode" | |
65 | 65 | ||
66 | - | let F = "k_ | |
66 | + | let F = "k_minLiquidationNotional" | |
67 | 67 | ||
68 | - | let G = "k_ | |
68 | + | let G = "k_latestLongPremiumFraction" | |
69 | 69 | ||
70 | - | let H = "k_ | |
70 | + | let H = "k_latestShortPremiumFraction" | |
71 | 71 | ||
72 | - | let I = "k_ | |
72 | + | let I = "k_nextFundingBlockMinTimestamp" | |
73 | 73 | ||
74 | - | let J = "k_ | |
74 | + | let J = "k_longFundingRate" | |
75 | 75 | ||
76 | - | let K = "k_ | |
76 | + | let K = "k_shortFundingRate" | |
77 | 77 | ||
78 | - | let L = "k_ | |
78 | + | let L = "k_qtAstR" | |
79 | 79 | ||
80 | - | let M = "k_ | |
80 | + | let M = "k_bsAstR" | |
81 | 81 | ||
82 | - | let N = "k_ | |
82 | + | let N = "k_qtAstW" | |
83 | 83 | ||
84 | - | let O = "k_ | |
84 | + | let O = "k_bsAstW" | |
85 | 85 | ||
86 | - | let P = "k_ | |
86 | + | let P = "k_totalPositionSize" | |
87 | 87 | ||
88 | - | let Q = "k_ | |
88 | + | let Q = "k_totalLongPositionSize" | |
89 | 89 | ||
90 | - | let R = "k_ | |
90 | + | let R = "k_totalShortPositionSize" | |
91 | 91 | ||
92 | - | let S = "k_ | |
92 | + | let S = "k_openInterestNotional" | |
93 | 93 | ||
94 | - | let T = "k_ | |
94 | + | let T = "k_openInterestShort" | |
95 | 95 | ||
96 | - | let U = "k_ | |
96 | + | let U = "k_openInterestLong" | |
97 | 97 | ||
98 | - | let V = "k_ | |
98 | + | let V = "k_lastTx" | |
99 | 99 | ||
100 | - | let W = "k_ | |
100 | + | let W = "k_coordinatorAddress" | |
101 | 101 | ||
102 | - | let X = "k_ | |
102 | + | let X = "k_vault_address" | |
103 | 103 | ||
104 | - | let Y = "k_ | |
104 | + | let Y = "k_admin_address" | |
105 | 105 | ||
106 | - | let Z = "k_ | |
106 | + | let Z = "k_quote_asset" | |
107 | 107 | ||
108 | - | let aa = "k_ | |
108 | + | let aa = "k_staking_address" | |
109 | 109 | ||
110 | - | let ab = "k_ | |
110 | + | let ab = "k_miner_address" | |
111 | 111 | ||
112 | - | let ac = "k_ | |
112 | + | let ac = "k_orders_address" | |
113 | 113 | ||
114 | - | let ad = "k_ | |
114 | + | let ad = "k_referral_address" | |
115 | 115 | ||
116 | - | func ae (af,ag) = ((af + "_") + ag) | |
116 | + | let ae = "k_nft_manager_address" | |
117 | + | ||
118 | + | func af (ag,ah) = ((ag + "_") + ah) | |
117 | 119 | ||
118 | 120 | ||
119 | - | func | |
121 | + | func ai () = valueOrErrorMessage(addressFromString(getStringValue(this, W)), "Coordinator not set") | |
120 | 122 | ||
121 | 123 | ||
122 | - | func | |
124 | + | func aj () = addressFromString(getStringValue(ai(), Y)) | |
123 | 125 | ||
124 | 126 | ||
125 | - | func | |
127 | + | func ak () = fromBase58String(getStringValue(ai(), Z)) | |
126 | 128 | ||
127 | 129 | ||
128 | - | func | |
130 | + | func al () = valueOrErrorMessage(addressFromString(getStringValue(ai(), aa)), "Staking not set") | |
129 | 131 | ||
130 | 132 | ||
131 | - | func | |
133 | + | func am () = valueOrErrorMessage(addressFromString(getStringValue(ai(), X)), "Vault not set") | |
132 | 134 | ||
133 | 135 | ||
134 | - | func | |
136 | + | func an () = valueOrErrorMessage(addressFromString(getStringValue(ai(), ab)), "Miner not set") | |
135 | 137 | ||
136 | 138 | ||
137 | - | func | |
139 | + | func ao () = valueOrErrorMessage(addressFromString(getStringValue(ai(), ac)), "Orders not set") | |
138 | 140 | ||
139 | 141 | ||
140 | - | func | |
142 | + | func ap () = valueOrErrorMessage(addressFromString(getStringValue(ai(), ad)), "Referral not set") | |
141 | 143 | ||
142 | 144 | ||
143 | - | func | |
145 | + | func aq () = valueOrErrorMessage(addressFromString(getStringValue(ai(), ae)), "NFT Manager not set") | |
144 | 146 | ||
145 | 147 | ||
146 | - | let | |
148 | + | let ar = "k_token_param" | |
147 | 149 | ||
148 | - | let | |
150 | + | let as = "k_token_type" | |
149 | 151 | ||
150 | - | let | |
152 | + | let at = "fee_reduction" | |
151 | 153 | ||
152 | - | let | |
154 | + | let au = 1 | |
153 | 155 | ||
154 | - | let | |
156 | + | let av = 2 | |
155 | 157 | ||
156 | - | let | |
158 | + | let aw = 1000 | |
157 | 159 | ||
158 | - | let | |
160 | + | let ax = 6 | |
159 | 161 | ||
160 | - | let | |
162 | + | let ay = (1 * (((((10 * 10) * 10) * 10) * 10) * 10)) | |
161 | 163 | ||
162 | - | let | |
164 | + | let az = (525600 * ay) | |
163 | 165 | ||
164 | - | let | |
166 | + | let aA = (86400 * ay) | |
165 | 167 | ||
166 | - | let | |
168 | + | let aB = 1 | |
167 | 169 | ||
168 | - | let | |
170 | + | let aC = 2 | |
169 | 171 | ||
170 | - | let | |
172 | + | let aD = 1 | |
171 | 173 | ||
172 | - | let | |
174 | + | let aE = 2 | |
173 | 175 | ||
174 | - | let | |
176 | + | let aF = 1 | |
175 | 177 | ||
176 | - | let | |
178 | + | let aG = 2 | |
177 | 179 | ||
178 | - | let | |
180 | + | let aH = 1 | |
179 | 181 | ||
180 | - | let | |
182 | + | let aI = 2 | |
181 | 183 | ||
182 | - | func | |
184 | + | func aJ (aK) = (toString(aK) + ",") | |
183 | 185 | ||
184 | 186 | ||
185 | - | func | |
187 | + | func aL (aK,aM) = fraction(aK, ay, aM, HALFEVEN) | |
186 | 188 | ||
187 | 189 | ||
188 | - | func | |
190 | + | func aN (aK,aM) = fraction(aK, aM, ay, HALFEVEN) | |
189 | 191 | ||
190 | 192 | ||
191 | - | func | |
193 | + | func aO (aK,aM) = fraction(aK, toBigInt(ay), aM, HALFEVEN) | |
192 | 194 | ||
193 | 195 | ||
194 | - | func | |
196 | + | func aP (aK,aM) = fraction(aK, aM, toBigInt(ay), HALFEVEN) | |
195 | 197 | ||
196 | 198 | ||
197 | - | func | |
198 | - | then | |
199 | - | else -( | |
199 | + | func aQ (aK) = if ((aK > 0)) | |
200 | + | then aK | |
201 | + | else -(aK) | |
200 | 202 | ||
201 | 203 | ||
202 | - | func | |
203 | - | then | |
204 | - | else | |
204 | + | func aR (aK,aM) = if ((aK >= aM)) | |
205 | + | then aK | |
206 | + | else aM | |
205 | 207 | ||
206 | 208 | ||
207 | - | func | |
209 | + | func aS (aT) = valueOrErrorMessage(getInteger(this, aT), ("no value for " + aT)) | |
208 | 210 | ||
209 | 211 | ||
210 | - | func | |
212 | + | func aU (aT,aV) = valueOrElse(getInteger(this, aT), aV) | |
211 | 213 | ||
212 | 214 | ||
213 | - | func | |
214 | - | let | |
215 | - | | |
215 | + | func aW (ah,ag) = { | |
216 | + | let aX = valueOrErrorMessage(getString(ah, ag), ("No value for key " + ag)) | |
217 | + | aX | |
216 | 218 | } | |
217 | 219 | ||
218 | 220 | ||
219 | - | func | |
220 | - | let | |
221 | - | | |
221 | + | func aY (ah,ag) = { | |
222 | + | let aX = valueOrErrorMessage(getInteger(ah, ag), ("No value for key " + ag)) | |
223 | + | aX | |
222 | 224 | } | |
223 | 225 | ||
224 | 226 | ||
225 | - | func | |
227 | + | func aZ () = aS(c) | |
226 | 228 | ||
227 | 229 | ||
228 | - | func | |
230 | + | func ba () = aU(c, 0) | |
229 | 231 | ||
230 | 232 | ||
231 | - | func | |
233 | + | func bb () = aS(o) | |
232 | 234 | ||
233 | 235 | ||
234 | - | func | |
236 | + | func bc () = aS(p) | |
235 | 237 | ||
236 | 238 | ||
237 | - | func | |
239 | + | func bd () = aS(r) | |
238 | 240 | ||
239 | 241 | ||
240 | - | func | |
242 | + | func be () = aU(s, ay) | |
241 | 243 | ||
242 | 244 | ||
243 | - | func | |
245 | + | func bf () = aS(L) | |
244 | 246 | ||
245 | 247 | ||
246 | - | func | |
248 | + | func bg () = aU(L, 0) | |
247 | 249 | ||
248 | 250 | ||
249 | - | func | |
251 | + | func bh () = aS(M) | |
250 | 252 | ||
251 | 253 | ||
252 | - | func | |
254 | + | func bi () = aU(M, 0) | |
253 | 255 | ||
254 | 256 | ||
255 | - | func | |
257 | + | func bj () = aU(N, ay) | |
256 | 258 | ||
257 | 259 | ||
258 | - | func | |
260 | + | func bk () = aU(O, ay) | |
259 | 261 | ||
260 | 262 | ||
261 | - | func | |
263 | + | func bl () = aS(P) | |
262 | 264 | ||
263 | 265 | ||
264 | - | func | |
266 | + | func bm () = aS(S) | |
265 | 267 | ||
266 | 268 | ||
267 | - | func | |
269 | + | func bn () = aS(T) | |
268 | 270 | ||
269 | 271 | ||
270 | - | func | |
272 | + | func bo () = aS(U) | |
271 | 273 | ||
272 | 274 | ||
273 | - | func | |
275 | + | func bp () = aS(I) | |
274 | 276 | ||
275 | 277 | ||
276 | - | func | |
278 | + | func bq () = aS(q) | |
277 | 279 | ||
278 | 280 | ||
279 | - | func | |
281 | + | func br () = (bq() * ay) | |
280 | 282 | ||
281 | 283 | ||
282 | - | func | |
284 | + | func bs () = (bq() * aw) | |
283 | 285 | ||
284 | 286 | ||
285 | - | func | |
287 | + | func bt () = aS(t) | |
286 | 288 | ||
287 | 289 | ||
288 | - | func | |
290 | + | func bu () = aS(u) | |
289 | 291 | ||
290 | 292 | ||
291 | - | func | |
293 | + | func bv () = aS(v) | |
292 | 294 | ||
293 | 295 | ||
294 | - | func | |
296 | + | func bw () = aS(w) | |
295 | 297 | ||
296 | 298 | ||
297 | - | func | |
299 | + | func bx () = aS(x) | |
298 | 300 | ||
299 | 301 | ||
300 | - | func | |
302 | + | func by () = aS(y) | |
301 | 303 | ||
302 | 304 | ||
303 | - | func | |
305 | + | func bz () = aS(z) | |
304 | 306 | ||
305 | 307 | ||
306 | - | func | |
308 | + | func bA () = aS(G) | |
307 | 309 | ||
308 | 310 | ||
309 | - | func | |
311 | + | func bB () = aS(H) | |
310 | 312 | ||
311 | 313 | ||
312 | - | func | |
314 | + | func bC () = aS(R) | |
313 | 315 | ||
314 | 316 | ||
315 | - | func | |
317 | + | func bD () = aS(Q) | |
316 | 318 | ||
317 | 319 | ||
318 | - | func | |
320 | + | func bE () = aU(d, 0) | |
319 | 321 | ||
320 | 322 | ||
321 | - | func | |
323 | + | func bF () = aS(A) | |
322 | 324 | ||
323 | 325 | ||
324 | - | func | |
326 | + | func bG () = aS(B) | |
325 | 327 | ||
326 | 328 | ||
327 | - | func | |
329 | + | func bH () = aU(C, aD) | |
328 | 330 | ||
329 | 331 | ||
330 | - | func | |
332 | + | func bI () = aU(D, aF) | |
331 | 333 | ||
332 | 334 | ||
333 | - | func | |
335 | + | func bJ () = aU(E, aH) | |
334 | 336 | ||
335 | 337 | ||
336 | - | func | |
338 | + | func bK () = aU(F, (10 * ay)) | |
337 | 339 | ||
338 | 340 | ||
339 | - | func | |
341 | + | func bL () = lastBlock.timestamp | |
340 | 342 | ||
341 | 343 | ||
342 | - | func bM (bN,bO,bP) = { | |
343 | - | let bQ = (bN - bO) | |
344 | - | if (if (bP) | |
345 | - | then (0 > bQ) | |
344 | + | func bM (bN) = valueOrElse(getString(ao(), "k_sender"), toString(bN.caller)) | |
345 | + | ||
346 | + | ||
347 | + | func bO (bP,bQ,bR) = { | |
348 | + | let bS = (bP - bQ) | |
349 | + | if (if (bR) | |
350 | + | then (0 > bS) | |
346 | 351 | else false) | |
347 | - | then throw(((("Invalid margin: " + toString( | |
348 | - | else if (if (!( | |
349 | - | then ( | |
352 | + | then throw(((("Invalid margin: " + toString(bP)) + " < ") + toString(bQ))) | |
353 | + | else if (if (!(bR)) | |
354 | + | then (bS >= 0) | |
350 | 355 | else false) | |
351 | - | then throw(((("Invalid margin: " + toString( | |
356 | + | then throw(((("Invalid margin: " + toString(bP)) + " > ") + toString(bQ))) | |
352 | 357 | else true | |
353 | 358 | } | |
354 | 359 | ||
355 | 360 | ||
356 | - | func | |
361 | + | func bT (bU) = if ((bU == 0)) | |
357 | 362 | then throw("Should not be called with _positionSize == 0") | |
358 | - | else if (( | |
359 | - | then | |
360 | - | else | |
363 | + | else if ((bU > 0)) | |
364 | + | then bA() | |
365 | + | else bB() | |
361 | 366 | ||
362 | 367 | ||
363 | - | func | |
364 | - | let | |
365 | - | let | |
366 | - | let | |
367 | - | if ($isInstanceOf( | |
368 | + | func bV (bW,bX) = { | |
369 | + | let bY = ((bW + "_") + toString(bX)) | |
370 | + | let bZ = getInteger(this, af(e, bY)) | |
371 | + | let ca = bZ | |
372 | + | if ($isInstanceOf(ca, "Int")) | |
368 | 373 | then { | |
369 | - | let | |
370 | - | $Tuple5( | |
374 | + | let cb = ca | |
375 | + | $Tuple5(cb, getIntegerValue(this, af(f, bY)), getIntegerValue(this, af(g, bY)), getIntegerValue(this, af(h, bY)), getIntegerValue(this, af(k, bY))) | |
371 | 376 | } | |
372 | 377 | else $Tuple5(0, 0, 0, 0, 0) | |
373 | 378 | } | |
374 | 379 | ||
375 | 380 | ||
376 | - | func | |
377 | - | then | |
378 | - | else | |
381 | + | func cc (bU) = if ((0 > bU)) | |
382 | + | then av | |
383 | + | else au | |
379 | 384 | ||
380 | 385 | ||
381 | - | func | |
382 | - | let | |
383 | - | let | |
384 | - | let | |
385 | - | if ($isInstanceOf( | |
386 | + | func cd (bW,bX) = { | |
387 | + | let bY = ((bW + "_") + toString(bX)) | |
388 | + | let ce = getInteger(this, af(j, bY)) | |
389 | + | let ca = ce | |
390 | + | if ($isInstanceOf(ca, "Int")) | |
386 | 391 | then { | |
387 | - | let | |
388 | - | | |
392 | + | let cf = ca | |
393 | + | cf | |
389 | 394 | } | |
390 | - | else | |
395 | + | else bb() | |
391 | 396 | } | |
392 | 397 | ||
393 | 398 | ||
394 | - | func | |
399 | + | func cg (bW,bX) = if ((bV(bW, bX)._1 == 0)) | |
395 | 400 | then throw("No open position") | |
396 | 401 | else true | |
397 | 402 | ||
398 | 403 | ||
399 | - | func | |
400 | - | let | |
401 | - | if (if (isDefined( | |
402 | - | then (value( | |
404 | + | func ch (ci) = { | |
405 | + | let cj = getString(this, ci) | |
406 | + | if (if (isDefined(cj)) | |
407 | + | then (value(cj) != "") | |
403 | 408 | else false) | |
404 | 409 | then { | |
405 | - | let | |
406 | - | let | |
407 | - | let | |
408 | - | let | |
409 | - | let | |
410 | - | $Tuple4( | |
410 | + | let ck = split(value(cj), ",") | |
411 | + | let cl = valueOrErrorMessage(addressFromString(ck[0]), ("Invalid oracle address in: " + value(cj))) | |
412 | + | let cm = ck[1] | |
413 | + | let cn = ck[2] | |
414 | + | let co = ck[3] | |
415 | + | $Tuple4(cl, cm, cn, co) | |
411 | 416 | } | |
412 | 417 | else unit | |
413 | 418 | } | |
414 | 419 | ||
415 | 420 | ||
416 | - | func | |
421 | + | func cp () = valueOrElse(getBoolean(this, l), false) | |
417 | 422 | ||
418 | 423 | ||
419 | - | func | |
424 | + | func cq () = valueOrElse(getBoolean(this, m), false) | |
420 | 425 | ||
421 | 426 | ||
422 | - | func | |
427 | + | func cr () = valueOrElse(getBoolean(this, n), false) | |
423 | 428 | ||
424 | 429 | ||
425 | - | func | |
430 | + | func cs (ct,cu,cv) = if (ct) | |
426 | 431 | then { | |
427 | - | let | |
428 | - | if ((0 >= | |
432 | + | let cw = (bh() - cv) | |
433 | + | if ((0 >= cw)) | |
429 | 434 | then throw("Tx lead to base asset reserve <= 0, revert") | |
430 | - | else $Tuple3(( | |
435 | + | else $Tuple3((bf() + cu), cw, (bl() + cv)) | |
431 | 436 | } | |
432 | 437 | else { | |
433 | - | let | |
434 | - | if ((0 >= | |
438 | + | let cx = (bf() - cu) | |
439 | + | if ((0 >= cx)) | |
435 | 440 | then throw("Tx lead to base quote reserve <= 0, revert") | |
436 | - | else $Tuple3( | |
441 | + | else $Tuple3(cx, (bh() + cv), (bl() - cv)) | |
437 | 442 | } | |
438 | 443 | ||
439 | 444 | ||
440 | - | func | |
441 | - | let | |
442 | - | let | |
443 | - | | |
445 | + | func cy (cz,cA) = { | |
446 | + | let cB = toBigInt(cz) | |
447 | + | let cC = toBigInt(cA) | |
448 | + | aP(cB, cC) | |
444 | 449 | } | |
445 | 450 | ||
446 | 451 | ||
447 | - | func | |
448 | - | let | |
449 | - | let | |
450 | - | let | |
451 | - | let | |
452 | - | let | |
453 | - | let | |
454 | - | let | |
455 | - | then ( | |
456 | - | else ( | |
457 | - | let | |
458 | - | let | |
459 | - | let | |
460 | - | then | |
461 | - | else -( | |
462 | - | let | |
463 | - | let | |
464 | - | let | |
465 | - | let | |
466 | - | let | |
467 | - | let | |
468 | - | let | |
469 | - | let | |
470 | - | let | |
471 | - | if (( | |
472 | - | then throw(((((((((((((("Price impact " + toString( | |
473 | - | else $Tuple4( | |
452 | + | func cD (ct,cu) = { | |
453 | + | let cz = bf() | |
454 | + | let cA = bh() | |
455 | + | let cE = bj() | |
456 | + | let cF = bk() | |
457 | + | let cG = aL(cu, cE) | |
458 | + | let aT = cy(cz, cA) | |
459 | + | let cH = if (ct) | |
460 | + | then (cz + cG) | |
461 | + | else (cz - cG) | |
462 | + | let cI = toInt(aO(aT, toBigInt(cH))) | |
463 | + | let cJ = aQ((cI - cA)) | |
464 | + | let cK = if (ct) | |
465 | + | then cJ | |
466 | + | else -(cJ) | |
467 | + | let cL = cs(ct, cG, cJ) | |
468 | + | let cM = cL._1 | |
469 | + | let cN = cL._2 | |
470 | + | let cO = cL._3 | |
471 | + | let cP = aL(aN(cz, cE), aN(cA, cF)) | |
472 | + | let cQ = aL(cu, cJ) | |
473 | + | let cR = aQ((cP - cQ)) | |
474 | + | let cS = (ay - aL(cP, (cP + cR))) | |
475 | + | let cT = bx() | |
476 | + | if ((cS > cT)) | |
477 | + | then throw(((((((((((((("Price impact " + toString(cS)) + " > max price impact ") + toString(cT)) + " before quote asset: ") + toString(cz)) + " before base asset: ") + toString(cA)) + " quote asset amount to exchange: ") + toString(cu)) + " price before: ") + toString(cP)) + " marketPrice: ") + toString(cQ))) | |
478 | + | else $Tuple4(cK, cM, cN, cO) | |
474 | 479 | } | |
475 | 480 | ||
476 | 481 | ||
477 | - | func | |
478 | - | let | |
479 | - | let | |
480 | - | | |
482 | + | func cU (cV,cW) = { | |
483 | + | let cX = ((((bL() - cW) / 1000) / 60) * ay) | |
484 | + | let cY = aL(aN(aN(cV, cX), bc()), az) | |
485 | + | cY | |
481 | 486 | } | |
482 | 487 | ||
483 | 488 | ||
484 | - | func | |
485 | - | let | |
489 | + | func cZ (da,cV,db,cW,dc) = { | |
490 | + | let dd = if ((da != 0)) | |
486 | 491 | then { | |
487 | - | let | |
488 | - | | |
492 | + | let de = bT(da) | |
493 | + | aN((de - db), da) | |
489 | 494 | } | |
490 | 495 | else 0 | |
491 | - | let | |
492 | - | let | |
493 | - | let | |
494 | - | then $Tuple2(0, | |
495 | - | else $Tuple2( | |
496 | - | let | |
497 | - | let | |
498 | - | $Tuple4( | |
496 | + | let cY = cU(cV, cW) | |
497 | + | let df = (((dc - cY) - dd) + cV) | |
498 | + | let dg = if ((0 > df)) | |
499 | + | then $Tuple2(0, aQ(df)) | |
500 | + | else $Tuple2(aQ(df), 0) | |
501 | + | let dh = dg._1 | |
502 | + | let di = dg._2 | |
503 | + | $Tuple4(dh, di, dd, cY) | |
499 | 504 | } | |
500 | 505 | ||
501 | 506 | ||
502 | - | func | |
503 | - | let | |
504 | - | if (( | |
507 | + | func dj (ct,cv,dk,dl,dm,dn,do) = { | |
508 | + | let cP = aL(aN(dl, dm), aN(dn, do)) | |
509 | + | if ((cv == 0)) | |
505 | 510 | then throw("Invalid base asset amount") | |
506 | 511 | else { | |
507 | - | let | |
508 | - | let | |
509 | - | then ( | |
510 | - | else ( | |
511 | - | let | |
512 | - | let | |
513 | - | let | |
514 | - | let | |
515 | - | let | |
516 | - | let | |
517 | - | let | |
518 | - | let | |
519 | - | let | |
520 | - | let | |
521 | - | let | |
522 | - | if (if (( | |
523 | - | then | |
512 | + | let aT = cy(dl, dn) | |
513 | + | let dp = if (ct) | |
514 | + | then (dn + cv) | |
515 | + | else (dn - cv) | |
516 | + | let dq = toInt(aO(aT, toBigInt(dp))) | |
517 | + | let dr = aQ((dq - dl)) | |
518 | + | let ds = aN(dr, dm) | |
519 | + | let cT = bx() | |
520 | + | let dt = cs(!(ct), dr, cv) | |
521 | + | let cM = dt._1 | |
522 | + | let cN = dt._2 | |
523 | + | let cO = dt._3 | |
524 | + | let cQ = aL(ds, cv) | |
525 | + | let cR = aQ((cP - cQ)) | |
526 | + | let cS = (ay - aL(cP, (cP + cR))) | |
527 | + | if (if ((cS > cT)) | |
528 | + | then dk | |
524 | 529 | else false) | |
525 | - | then throw(((((((((((((("Price impact " + toString( | |
526 | - | else $Tuple7( | |
527 | - | then | |
528 | - | else 0)), ( | |
529 | - | then | |
530 | - | else 0)), | |
530 | + | then throw(((((((((((((("Price impact " + toString(cS)) + " > max price impact ") + toString(cT)) + " before quote asset: ") + toString(dl)) + " before base asset: ") + toString(dn)) + " base asset amount to exchange: ") + toString(cv)) + " price before: ") + toString(cP)) + " market price: ") + toString(cQ))) | |
531 | + | else $Tuple7(ds, cM, cN, cO, (bD() - (if (ct) | |
532 | + | then aQ(cv) | |
533 | + | else 0)), (bC() - (if (!(ct)) | |
534 | + | then aQ(cv) | |
535 | + | else 0)), cS) | |
531 | 536 | } | |
532 | 537 | } | |
533 | 538 | ||
534 | 539 | ||
535 | - | func | |
540 | + | func du (ct,cv,dk) = dj(ct, cv, dk, bf(), bj(), bh(), bk()) | |
536 | 541 | ||
537 | 542 | ||
538 | - | func | |
539 | - | let | |
540 | - | if (( | |
543 | + | func dv (dw,cm,cn) = { | |
544 | + | let dx = valueOrErrorMessage(getInteger(dw, cm), ((("Can not get oracle price. Oracle: " + toString(dw)) + " key: ") + cm)) | |
545 | + | if ((cn != "")) | |
541 | 546 | then { | |
542 | - | let | |
543 | - | let | |
544 | - | if ((( | |
545 | - | then throw(((("Oracle stale data. Last oracle block: " + toString( | |
546 | - | else | |
547 | + | let dy = height | |
548 | + | let dz = valueOrErrorMessage(getInteger(dw, cn), ((("Can not get oracle block. Oracle: " + toString(dw)) + " key: ") + cn)) | |
549 | + | if (((dy - dz) > bG())) | |
550 | + | then throw(((("Oracle stale data. Last oracle block: " + toString(dz)) + " current block: ") + toString(dy))) | |
551 | + | else dx | |
547 | 552 | } | |
548 | - | else | |
553 | + | else dx | |
549 | 554 | } | |
550 | 555 | ||
551 | 556 | ||
552 | - | func | |
553 | - | let | |
554 | - | let | |
555 | - | let | |
556 | - | let | |
557 | + | func dA () = { | |
558 | + | let dB = valueOrErrorMessage(ch(a), "No base asset oracle data") | |
559 | + | let dC = dv(dB._1, dB._2, dB._3) | |
560 | + | let dD = ch(b) | |
561 | + | let dE = if (isDefined(dD)) | |
557 | 562 | then { | |
558 | - | let | |
559 | - | | |
563 | + | let dF = value(dD) | |
564 | + | dv(dF._1, dF._2, dF._3) | |
560 | 565 | } | |
561 | - | else | |
562 | - | | |
566 | + | else ay | |
567 | + | aL(dC, dE) | |
563 | 568 | } | |
564 | 569 | ||
565 | 570 | ||
566 | - | func | |
567 | - | let | |
568 | - | let | |
569 | - | let | |
570 | - | if (( | |
571 | + | func dG () = { | |
572 | + | let dB = valueOrErrorMessage(ch(a), "No base asset oracle data") | |
573 | + | let dw = dB._1 | |
574 | + | let co = dB._4 | |
575 | + | if ((co != "")) | |
571 | 576 | then { | |
572 | - | let | |
573 | - | !( | |
577 | + | let dH = valueOrErrorMessage(getBoolean(dw, co), ((("Can not get oracle is open/closed. Oracle: " + toString(dw)) + " key: ") + co)) | |
578 | + | !(dH) | |
574 | 579 | } | |
575 | 580 | else false | |
576 | 581 | } | |
577 | 582 | ||
578 | 583 | ||
579 | - | func | |
580 | - | let | |
581 | - | let | |
582 | - | let | |
583 | - | | |
584 | + | func dI (dJ,dl,dn,cE,cF) = { | |
585 | + | let dK = aL(aN(dl, cE), aN(dn, cF)) | |
586 | + | let dL = aL((dJ + dK), (2 * ay)) | |
587 | + | let dI = aL(aQ((dJ - dK)), dL) | |
588 | + | dI | |
584 | 589 | } | |
585 | 590 | ||
586 | 591 | ||
587 | - | func | |
588 | - | let | |
589 | - | let | |
590 | - | let | |
591 | - | let | |
592 | - | let | |
593 | - | if (if (( | |
594 | - | then ( | |
592 | + | func dM (dl,dn) = { | |
593 | + | let dN = dA() | |
594 | + | let cE = bj() | |
595 | + | let cF = bk() | |
596 | + | let dO = dI(dN, bf(), bh(), cE, cF) | |
597 | + | let dP = dI(dN, dl, dn, cE, cF) | |
598 | + | if (if ((dP > by())) | |
599 | + | then (dP > dO) | |
595 | 600 | else false) | |
596 | - | then throw(((("Price spread " + toString( | |
601 | + | then throw(((("Price spread " + toString(dP)) + " > max price spread ") + toString(by()))) | |
597 | 602 | else true | |
598 | 603 | } | |
599 | 604 | ||
600 | 605 | ||
601 | - | func | |
602 | - | let | |
603 | - | if (( | |
604 | - | then throw(((("Long open notional " + toString( | |
605 | - | else if (( | |
606 | - | then throw(((("Short open notional " + toString( | |
606 | + | func dQ (dR,dS) = { | |
607 | + | let dT = bz() | |
608 | + | if ((dR > dT)) | |
609 | + | then throw(((("Long open notional " + toString(dR)) + " > max open notional ") + toString(dT))) | |
610 | + | else if ((dS > dT)) | |
611 | + | then throw(((("Short open notional " + toString(dS)) + " > max open notional ") + toString(dT))) | |
607 | 612 | else true | |
608 | 613 | } | |
609 | 614 | ||
610 | 615 | ||
611 | - | func | |
612 | - | then ( | |
616 | + | func dU (dV) = if ((bJ() == aI)) | |
617 | + | then (dV == ao()) | |
613 | 618 | else true | |
614 | 619 | ||
615 | 620 | ||
616 | - | func | |
617 | - | let | |
618 | - | let | |
619 | - | let | |
620 | - | let | |
621 | - | | |
621 | + | func dW () = { | |
622 | + | let dl = bf() | |
623 | + | let dn = bh() | |
624 | + | let cE = bj() | |
625 | + | let cF = bk() | |
626 | + | aL(aN(dl, cE), aN(dn, cF)) | |
622 | 627 | } | |
623 | 628 | ||
624 | 629 | ||
625 | - | func | |
626 | - | let | |
627 | - | let | |
628 | - | ( | |
630 | + | func dX () = { | |
631 | + | let dN = dA() | |
632 | + | let dY = dW() | |
633 | + | (aL(aQ((dN - dY)), dN) > bw()) | |
629 | 634 | } | |
630 | 635 | ||
631 | 636 | ||
632 | - | func | |
633 | - | let | |
634 | - | let | |
635 | - | let | |
637 | + | func dZ (bU,ea,dl,dm,dn,do) = { | |
638 | + | let eb = aQ(bU) | |
639 | + | let ec = (0 > bU) | |
640 | + | let ed = if ((ea == aB)) | |
636 | 641 | then { | |
637 | - | let | |
638 | - | | |
642 | + | let ee = dj(!(ec), eb, false, dl, dm, dn, do)._1 | |
643 | + | ee | |
639 | 644 | } | |
640 | - | else | |
641 | - | | |
645 | + | else aN(eb, dA()) | |
646 | + | ed | |
642 | 647 | } | |
643 | 648 | ||
644 | 649 | ||
645 | - | func | |
650 | + | func ef (bU,eg,dl,dm,dn,do,ea) = if ((bU == 0)) | |
646 | 651 | then throw("Invalid position size") | |
647 | 652 | else { | |
648 | - | let | |
649 | - | let | |
650 | - | let | |
651 | - | then ( | |
652 | - | else ( | |
653 | - | $Tuple2( | |
653 | + | let ec = (0 > bU) | |
654 | + | let ed = dZ(bU, ea, dl, dm, dn, do) | |
655 | + | let eh = if (ec) | |
656 | + | then (eg - ed) | |
657 | + | else (ed - eg) | |
658 | + | $Tuple2(ed, eh) | |
654 | 659 | } | |
655 | 660 | ||
656 | 661 | ||
657 | - | func | |
658 | - | let | |
659 | - | let | |
660 | - | let | |
661 | - | let | |
662 | - | let | |
663 | - | | |
662 | + | func ei (bW,bX,ea) = { | |
663 | + | let ej = bV(bW, bX) | |
664 | + | let cb = ej._1 | |
665 | + | let ek = ej._2 | |
666 | + | let el = ej._3 | |
667 | + | let em = ej._4 | |
668 | + | ef(cb, el, bf(), bj(), bh(), bk(), ea) | |
664 | 669 | } | |
665 | 670 | ||
666 | 671 | ||
667 | - | func | |
672 | + | func en (eo,ep,eq) = aL((eo - ep), eq) | |
668 | 673 | ||
669 | 674 | ||
670 | - | func | |
671 | - | let | |
672 | - | let | |
673 | - | let | |
674 | - | let | |
675 | - | let | |
676 | - | let | |
677 | - | let | |
678 | - | let | |
679 | - | let | |
680 | - | let | |
681 | - | let | |
682 | - | let | |
683 | - | | |
675 | + | func er (bW,bX,ea) = { | |
676 | + | let es = bV(bW, bX) | |
677 | + | let cb = es._1 | |
678 | + | let ek = es._2 | |
679 | + | let et = es._3 | |
680 | + | let eu = es._4 | |
681 | + | let ev = es._5 | |
682 | + | let ew = ei(bW, bX, ea) | |
683 | + | let ed = ew._1 | |
684 | + | let eh = ew._2 | |
685 | + | let ex = cZ(cb, ek, eu, ev, eh) | |
686 | + | let dh = ex._1 | |
687 | + | let di = ex._2 | |
688 | + | en(dh, di, ed) | |
684 | 689 | } | |
685 | 690 | ||
686 | 691 | ||
687 | - | func | |
692 | + | func ey (bW,bX) = er(bW, bX, aB) | |
688 | 693 | ||
689 | 694 | ||
690 | - | func | |
691 | - | let | |
692 | - | let | |
693 | - | let | |
694 | - | let | |
695 | - | let | |
696 | - | if (( | |
697 | - | then | |
698 | - | else | |
695 | + | func ez (bW,bU) = { | |
696 | + | let eA = aR(bv(), (ay - aL(ey(bW, cc(bU)), bt()))) | |
697 | + | let eB = aN(aQ(bU), eA) | |
698 | + | let eC = du((bU > 0), eB, false) | |
699 | + | let eD = eC._1 | |
700 | + | let cS = eC._7 | |
701 | + | if ((bx() > cS)) | |
702 | + | then eB | |
703 | + | else aN(aQ(bU), bv()) | |
699 | 704 | } | |
700 | 705 | ||
701 | 706 | ||
702 | - | func | |
703 | - | let | |
704 | - | let | |
705 | - | let | |
706 | - | let | |
707 | - | let | |
708 | - | let | |
709 | - | let | |
710 | - | let | |
711 | - | if (if (( | |
712 | - | then ( | |
707 | + | func eE (bW,bX,eF,eG,eH,eI,dk,eJ) = { | |
708 | + | let eK = bV(bW, bX) | |
709 | + | let eL = eK._1 | |
710 | + | let eM = eK._2 | |
711 | + | let eN = eK._3 | |
712 | + | let eO = eK._4 | |
713 | + | let eP = eK._5 | |
714 | + | let eQ = (eL > 0) | |
715 | + | let eR = aQ(eL) | |
716 | + | if (if ((eR >= eF)) | |
717 | + | then (eF > 0) | |
713 | 718 | else false) | |
714 | 719 | then { | |
715 | - | let | |
716 | - | let | |
717 | - | let | |
718 | - | let | |
719 | - | let | |
720 | - | let | |
721 | - | let | |
722 | - | then -( | |
723 | - | else | |
724 | - | let | |
725 | - | let | |
726 | - | let | |
727 | - | let | |
728 | - | let | |
729 | - | let | |
730 | - | let | |
731 | - | let | |
732 | - | let | |
733 | - | let | |
734 | - | let | |
735 | - | let | |
736 | - | let | |
737 | - | let | |
738 | - | then (( | |
739 | - | else (( | |
740 | - | let | |
741 | - | let | |
720 | + | let eS = (eR > eF) | |
721 | + | let eT = du((eL > 0), eF, dk) | |
722 | + | let eU = eT._1 | |
723 | + | let cH = eT._2 | |
724 | + | let cI = eT._3 | |
725 | + | let eV = eT._4 | |
726 | + | let eW = if ((eL > 0)) | |
727 | + | then -(eF) | |
728 | + | else eF | |
729 | + | let eX = ei(bW, bX, aB) | |
730 | + | let eY = eX._1 | |
731 | + | let eh = eX._2 | |
732 | + | let eZ = aL(aQ(eW), eR) | |
733 | + | let fa = aN(eh, eZ) | |
734 | + | let fb = cZ(eL, eM, eO, eP, eh) | |
735 | + | let fc = fb._1 | |
736 | + | let fd = fb._2 | |
737 | + | let fe = fb._3 | |
738 | + | let cY = fb._4 | |
739 | + | let ff = cZ(eL, eM, eO, eP, fa)._2 | |
740 | + | let fg = aN(aN(eY, eZ), eG) | |
741 | + | let fh = (eh - fa) | |
742 | + | let fi = if ((eL > 0)) | |
743 | + | then ((eY - eU) - fh) | |
744 | + | else ((fh + eY) - eU) | |
745 | + | let fj = (eL + eW) | |
746 | + | let fk = if ((fj == 0)) | |
742 | 747 | then $Tuple2(0, 0) | |
743 | - | else $Tuple2( | |
744 | - | let | |
745 | - | let | |
746 | - | let | |
747 | - | let | |
748 | - | let | |
749 | - | then ( | |
750 | - | else ( | |
751 | - | let | |
752 | - | let | |
753 | - | then if ( | |
748 | + | else $Tuple2(aQ(fi), bT(fj)) | |
749 | + | let fl = fk._1 | |
750 | + | let fm = fk._2 | |
751 | + | let fn = (eN - fl) | |
752 | + | let fo = er(bW, bX, aB) | |
753 | + | let fp = if ((eL > 0)) | |
754 | + | then (aN((fl + fh), fo) - fh) | |
755 | + | else (aN((fl - fh), fo) - fh) | |
756 | + | let fq = ((fc - (fp + fh)) - fg) | |
757 | + | let fr = if ((0 > fq)) | |
758 | + | then if (eJ) | |
754 | 759 | then 0 | |
755 | 760 | else throw("Invalid internalClosePosition params: unable to pay fee") | |
756 | - | else | |
757 | - | let | |
758 | - | then ( | |
759 | - | else | |
760 | - | if (if (( | |
761 | - | then ( | |
761 | + | else fq | |
762 | + | let fs = if (eI) | |
763 | + | then (fp + fr) | |
764 | + | else fp | |
765 | + | if (if ((eH != 0)) | |
766 | + | then (eH > eU) | |
762 | 767 | else false) | |
763 | - | then throw(((("Limit error: " + toString( | |
764 | - | else $Tuple17( | |
765 | - | then | |
768 | + | then throw(((("Limit error: " + toString(eU)) + " < ") + toString(eH))) | |
769 | + | else $Tuple17(fj, fs, fl, fm, ff, fa, if (if (eI) | |
770 | + | then eS | |
766 | 771 | else false) | |
767 | 772 | then 0 | |
768 | - | else | |
769 | - | then | |
770 | - | else 0)), ( | |
771 | - | then | |
772 | - | else 0)), ( | |
773 | - | then | |
774 | - | else 0)), ( | |
775 | - | then | |
776 | - | else 0)), ( | |
773 | + | else fr, cH, cI, eV, (bm() - fn), (bD() - (if (eQ) | |
774 | + | then aQ(eW) | |
775 | + | else 0)), (bC() - (if (!(eQ)) | |
776 | + | then aQ(eW) | |
777 | + | else 0)), (bo() - (if (eQ) | |
778 | + | then fn | |
779 | + | else 0)), (bn() - (if (!(eQ)) | |
780 | + | then fn | |
781 | + | else 0)), (fg + cY), eU) | |
777 | 782 | } | |
778 | - | else throw(((("Invalid internalClosePosition params: invalid position size: " + toString( | |
783 | + | else throw(((("Invalid internalClosePosition params: invalid position size: " + toString(eF)) + " max: ") + toString(eR))) | |
779 | 784 | } | |
780 | 785 | ||
781 | 786 | ||
782 | - | func | |
783 | - | let | |
784 | - | if (( | |
785 | - | then $Tuple2( | |
787 | + | func ft () = { | |
788 | + | let bU = bl() | |
789 | + | if ((bU == 0)) | |
790 | + | then $Tuple2(bf(), bh()) | |
786 | 791 | else { | |
787 | - | let | |
788 | - | let | |
789 | - | let | |
790 | - | let | |
791 | - | let | |
792 | - | $Tuple2( | |
792 | + | let fu = (bU > 0) | |
793 | + | let fv = du(fu, aQ(bU), false) | |
794 | + | let fw = fv._1 | |
795 | + | let fx = fv._2 | |
796 | + | let fy = fv._3 | |
797 | + | $Tuple2(fx, fy) | |
793 | 798 | } | |
794 | 799 | } | |
795 | 800 | ||
796 | 801 | ||
797 | - | func | |
798 | - | let | |
799 | - | let | |
800 | - | let | |
801 | - | let | |
802 | - | let | |
803 | - | let | |
804 | - | let | |
805 | - | let | |
806 | - | let | |
807 | - | toInt( | |
802 | + | func fz (fA,bl,fB,fC) = { | |
803 | + | let fD = toBigInt(fA) | |
804 | + | let fE = toBigInt(bl) | |
805 | + | let fF = toBigInt(fB) | |
806 | + | let fG = toBigInt(fC) | |
807 | + | let aT = aP(fF, fD) | |
808 | + | let fH = (fD + fE) | |
809 | + | let fI = aO(aT, fH) | |
810 | + | let fJ = aO(fI, fH) | |
811 | + | let fK = aO(fG, fJ) | |
812 | + | toInt(fK) | |
808 | 813 | } | |
809 | 814 | ||
810 | 815 | ||
811 | - | func | |
812 | - | let | |
813 | - | if (( | |
816 | + | func fL (fM,cz,cA) = { | |
817 | + | let bU = bl() | |
818 | + | if ((bU == 0)) | |
814 | 819 | then { | |
815 | - | let | |
816 | - | $Tuple3( | |
820 | + | let fN = aL(aN(fM, cA), cz) | |
821 | + | $Tuple3(fN, ay, 0) | |
817 | 822 | } | |
818 | 823 | else { | |
819 | - | let | |
820 | - | let | |
821 | - | let | |
822 | - | let | |
823 | - | let | |
824 | - | $Tuple3( | |
824 | + | let fu = (bU > 0) | |
825 | + | let fw = du(fu, aQ(bU), false)._1 | |
826 | + | let fN = fz(cA, bU, cz, fM) | |
827 | + | let fO = ay | |
828 | + | let fP = ef(bU, fw, cz, fN, cA, fO, aB)._2 | |
829 | + | $Tuple3(fN, fO, fP) | |
825 | 830 | } | |
826 | 831 | } | |
827 | 832 | ||
828 | 833 | ||
829 | - | func | |
830 | - | let | |
831 | - | let | |
832 | - | let | |
833 | - | if (if ( | |
834 | + | func fQ () = { | |
835 | + | let fR = dA() | |
836 | + | let fS = dW() | |
837 | + | let fT = (fS - fR) | |
838 | + | if (if (dG()) | |
834 | 839 | then true | |
835 | - | else if (( | |
836 | - | then if (( | |
840 | + | else if ((bH() == aD)) | |
841 | + | then if ((bC() == 0)) | |
837 | 842 | then true | |
838 | - | else ( | |
843 | + | else (bD() == 0) | |
839 | 844 | else false) | |
840 | 845 | then $Tuple3(0, 0, 0) | |
841 | - | else if ((0 > | |
846 | + | else if ((0 > fT)) | |
842 | 847 | then { | |
843 | - | let | |
844 | - | if (( | |
848 | + | let fU = aL(aN(fT, br()), aA) | |
849 | + | if ((bH() == aD)) | |
845 | 850 | then { | |
846 | - | let | |
847 | - | $Tuple3( | |
851 | + | let fV = aL(aN(fU, bC()), bD()) | |
852 | + | $Tuple3(fU, fV, 0) | |
848 | 853 | } | |
849 | 854 | else { | |
850 | - | let | |
851 | - | let | |
852 | - | let | |
853 | - | $Tuple3( | |
855 | + | let fW = aQ(aN(fU, bC())) | |
856 | + | let fX = aQ(aN(fU, bD())) | |
857 | + | let fY = (fW - fX) | |
858 | + | $Tuple3(fU, fU, fY) | |
854 | 859 | } | |
855 | 860 | } | |
856 | 861 | else { | |
857 | - | let | |
858 | - | if (( | |
862 | + | let fV = aL(aN(fT, br()), aA) | |
863 | + | if ((bH() == aD)) | |
859 | 864 | then { | |
860 | - | let | |
861 | - | $Tuple3( | |
865 | + | let fU = aL(aN(fV, bD()), bC()) | |
866 | + | $Tuple3(fU, fV, 0) | |
862 | 867 | } | |
863 | 868 | else { | |
864 | - | let | |
865 | - | let | |
866 | - | let | |
867 | - | $Tuple3( | |
869 | + | let fX = aQ(aN(fV, bD())) | |
870 | + | let fW = aQ(aN(fV, bC())) | |
871 | + | let fY = (fX - fW) | |
872 | + | $Tuple3(fV, fV, fY) | |
868 | 873 | } | |
869 | 874 | } | |
870 | 875 | } | |
871 | 876 | ||
872 | 877 | ||
873 | - | func | |
874 | - | let | |
875 | - | let | |
876 | - | let | |
878 | + | func fZ (ga,gb) = { | |
879 | + | let gc = bb() | |
880 | + | let gd = aN(gc, gb) | |
881 | + | let ge = if ((ga != "")) | |
877 | 882 | then { | |
878 | - | let | |
879 | - | if (( | |
883 | + | let gf = aW(aq(), af(as, ga)) | |
884 | + | if ((gf == at)) | |
880 | 885 | then { | |
881 | - | let | |
882 | - | let | |
883 | - | $Tuple2( | |
886 | + | let gg = aY(aq(), af(ar, ga)) | |
887 | + | let gh = aN(gd, gg) | |
888 | + | $Tuple2(gh, true) | |
884 | 889 | } | |
885 | 890 | else throw("Invalid attached artifact") | |
886 | 891 | } | |
887 | - | else $Tuple2( | |
888 | - | let | |
889 | - | let | |
890 | - | $Tuple2( | |
892 | + | else $Tuple2(gd, false) | |
893 | + | let gh = ge._1 | |
894 | + | let gi = ge._2 | |
895 | + | $Tuple2(gh, gi) | |
891 | 896 | } | |
892 | 897 | ||
893 | 898 | ||
894 | - | func | |
895 | - | let | |
896 | - | if (( | |
899 | + | func gj (bW,ga) = { | |
900 | + | let gk = invoke(an(), "computeFeeDiscount", [bW], nil) | |
901 | + | if ((gk == gk)) | |
897 | 902 | then { | |
898 | - | let | |
899 | - | let | |
900 | - | if ($isInstanceOf( | |
903 | + | let gl = { | |
904 | + | let ca = gk | |
905 | + | if ($isInstanceOf(ca, "Int")) | |
901 | 906 | then { | |
902 | - | let | |
903 | - | | |
907 | + | let gm = ca | |
908 | + | gm | |
904 | 909 | } | |
905 | 910 | else throw("Invalid computeFeeDiscount result") | |
906 | 911 | } | |
907 | - | let | |
908 | - | let | |
909 | - | let | |
910 | - | $Tuple2( | |
912 | + | let gn = fZ(ga, gl) | |
913 | + | let gh = gn._1 | |
914 | + | let gi = gn._2 | |
915 | + | $Tuple2(gh, gi) | |
911 | 916 | } | |
912 | 917 | else throw("Strict value is not equal to itself.") | |
913 | 918 | } | |
914 | 919 | ||
915 | 920 | ||
916 | - | func | |
917 | - | let | |
918 | - | then toBase58String(valueOrErrorMessage( | |
921 | + | func go (bN) = { | |
922 | + | let gp = if ((size(bN.payments) > 1)) | |
923 | + | then toBase58String(valueOrErrorMessage(bN.payments[1].assetId, "Invalid artifactId")) | |
919 | 924 | else "" | |
920 | - | | |
925 | + | gp | |
921 | 926 | } | |
922 | 927 | ||
923 | 928 | ||
924 | - | func | |
925 | - | let | |
926 | - | let | |
927 | - | $Tuple2( | |
929 | + | func gq (gr) = { | |
930 | + | let gs = aN(gr, bF()) | |
931 | + | let gt = (gr - gs) | |
932 | + | $Tuple2(gs, gt) | |
928 | 933 | } | |
929 | 934 | ||
930 | 935 | ||
931 | - | func | |
936 | + | func gu (gv,gw,gx,gy,eG,gz,gA,gB,gC,dT,gD,gE,gF,gG,gH,gI,gJ) = [IntegerEntry(r, gv), IntegerEntry(s, gI), IntegerEntry(t, gw), IntegerEntry(u, gx), IntegerEntry(q, gy), IntegerEntry(o, eG), IntegerEntry(w, gz), IntegerEntry(x, gA), IntegerEntry(v, gB), IntegerEntry(y, gC), IntegerEntry(z, dT), IntegerEntry(A, gD), IntegerEntry(B, gE), IntegerEntry(p, gF), IntegerEntry(C, gG), IntegerEntry(D, gH), IntegerEntry(E, gJ)] | |
932 | 937 | ||
933 | 938 | ||
934 | - | func | |
939 | + | func gK (gL,gM,gN,gO,gP) = [IntegerEntry(I, gL), IntegerEntry(G, gM), IntegerEntry(H, gN), IntegerEntry(J, gO), IntegerEntry(K, gP)] | |
935 | 940 | ||
936 | 941 | ||
937 | - | func | |
938 | - | let | |
939 | - | if ( | |
942 | + | func gQ (gR,bW,bX) = { | |
943 | + | let bY = ((bW + "_") + toString(bX)) | |
944 | + | if (gR) | |
940 | 945 | then { | |
941 | - | let | |
942 | - | [IntegerEntry( | |
946 | + | let gS = bE() | |
947 | + | [IntegerEntry(af(i, bY), (gS + 1)), IntegerEntry(d, (gS + 1))] | |
943 | 948 | } | |
944 | 949 | else nil | |
945 | 950 | } | |
946 | 951 | ||
947 | 952 | ||
948 | - | func | |
949 | - | let | |
950 | - | if ( | |
951 | - | then [IntegerEntry( | |
953 | + | func gT (gR,bW,bX,eG) = { | |
954 | + | let bY = ((bW + "_") + toString(bX)) | |
955 | + | if (gR) | |
956 | + | then [IntegerEntry(af(j, bY), eG)] | |
952 | 957 | else nil | |
953 | 958 | } | |
954 | 959 | ||
955 | 960 | ||
956 | - | func | |
957 | - | let | |
958 | - | let | |
959 | - | [IntegerEntry( | |
961 | + | func gU (bW,eF,gV,gW,de,gX) = { | |
962 | + | let fu = cc(eF) | |
963 | + | let bY = ((bW + "_") + toString(fu)) | |
964 | + | [IntegerEntry(af(e, bY), eF), IntegerEntry(af(f, bY), gV), IntegerEntry(af(g, bY), gW), IntegerEntry(af(h, bY), de), IntegerEntry(af(k, bY), gX)] | |
960 | 965 | } | |
961 | 966 | ||
962 | 967 | ||
963 | - | func | |
968 | + | func gY (cz,cA) = if (if ((0 > cz)) | |
964 | 969 | then true | |
965 | - | else (0 > | |
970 | + | else (0 > cA)) | |
966 | 971 | then throw("Invalid amount to update reserves") | |
967 | - | else if (if (( | |
972 | + | else if (if ((cz != bg())) | |
968 | 973 | then true | |
969 | - | else ( | |
970 | - | then [IntegerEntry( | |
974 | + | else (cA != bi())) | |
975 | + | then [IntegerEntry(L, cz), IntegerEntry(M, cA)] | |
971 | 976 | else nil | |
972 | 977 | ||
973 | 978 | ||
974 | - | func | |
979 | + | func gZ (cE,cF) = if (if ((cE != bj())) | |
975 | 980 | then true | |
976 | - | else ( | |
977 | - | then [IntegerEntry( | |
981 | + | else (cF != bk())) | |
982 | + | then [IntegerEntry(N, cE), IntegerEntry(O, cF)] | |
978 | 983 | else nil | |
979 | 984 | ||
980 | 985 | ||
981 | - | func | |
982 | - | let | |
983 | - | let | |
984 | - | if ((( | |
985 | - | then throw(((((("Invalid AMM state data: " + toString( | |
986 | - | else ( | |
986 | + | func ha (cz,cA,hb,hc,hd,he,hf,hg) = { | |
987 | + | let cE = bj() | |
988 | + | let cF = bk() | |
989 | + | if (((hd - he) != hb)) | |
990 | + | then throw(((((("Invalid AMM state data: " + toString(hd)) + " - ") + toString(he)) + " != ") + toString(hb))) | |
991 | + | else (gY(cz, cA) ++ [IntegerEntry(P, hb), IntegerEntry(S, hc), IntegerEntry(Q, hd), IntegerEntry(R, he), IntegerEntry(U, hf), IntegerEntry(T, hg)]) | |
987 | 992 | } | |
988 | 993 | ||
989 | 994 | ||
990 | - | func | |
991 | - | let | |
992 | - | [DeleteEntry( | |
995 | + | func hh (bW,bX) = { | |
996 | + | let bY = ((bW + "_") + toString(bX)) | |
997 | + | [DeleteEntry(af(e, bY)), DeleteEntry(af(f, bY)), DeleteEntry(af(g, bY)), DeleteEntry(af(h, bY)), DeleteEntry(af(j, bY)), DeleteEntry(af(k, bY))] | |
993 | 998 | } | |
994 | 999 | ||
995 | 1000 | ||
996 | - | func | |
997 | - | let | |
998 | - | if (( | |
999 | - | then throw(((("Unable to withdraw " + toString( | |
1000 | - | else [ScriptTransfer( | |
1001 | + | func hi (ah,hj) = { | |
1002 | + | let hk = assetBalance(this, ak()) | |
1003 | + | if ((hj > hk)) | |
1004 | + | then throw(((("Unable to withdraw " + toString(hj)) + " from contract balance ") + toString(hk))) | |
1005 | + | else [ScriptTransfer(ah, hj, ak())] | |
1001 | 1006 | } | |
1002 | 1007 | ||
1003 | 1008 | ||
1004 | - | func | |
1009 | + | func hl (hm) = if ((0 > hm)) | |
1005 | 1010 | then throw("Balance") | |
1006 | - | else if (if (( | |
1011 | + | else if (if ((ba() == 0)) | |
1007 | 1012 | then true | |
1008 | - | else ( | |
1009 | - | then [IntegerEntry(c, | |
1013 | + | else (ba() != hm)) | |
1014 | + | then [IntegerEntry(c, hm)] | |
1010 | 1015 | else nil | |
1011 | 1016 | ||
1012 | 1017 | ||
1013 | - | func | |
1018 | + | func hn (bN) = [ScriptTransfer(al(), bN, ak())] | |
1014 | 1019 | ||
1015 | 1020 | ||
1016 | - | func | |
1017 | - | then [Burn(valueOrErrorMessage( | |
1021 | + | func ho (hp,bN) = if (hp) | |
1022 | + | then [Burn(valueOrErrorMessage(bN.payments[1].assetId, "Invalid artifact"), 1)] | |
1018 | 1023 | else nil | |
1019 | 1024 | ||
1020 | 1025 | ||
1021 | - | @Callable( | |
1022 | - | func pause () = if (( | |
1026 | + | @Callable(bN) | |
1027 | + | func pause () = if ((bN.caller != aj())) | |
1023 | 1028 | then throw("Invalid pause params") | |
1024 | 1029 | else [BooleanEntry(m, true)] | |
1025 | 1030 | ||
1026 | 1031 | ||
1027 | 1032 | ||
1028 | - | @Callable( | |
1029 | - | func unpause () = if (( | |
1033 | + | @Callable(bN) | |
1034 | + | func unpause () = if ((bN.caller != aj())) | |
1030 | 1035 | then throw("Invalid unpause params") | |
1031 | 1036 | else [BooleanEntry(m, false)] | |
1032 | 1037 | ||
1033 | 1038 | ||
1034 | 1039 | ||
1035 | - | @Callable( | |
1036 | - | func setCloseOnly () = if (( | |
1040 | + | @Callable(bN) | |
1041 | + | func setCloseOnly () = if ((bN.caller != aj())) | |
1037 | 1042 | then throw("Invalid setCloseOnly params") | |
1038 | 1043 | else [BooleanEntry(n, true)] | |
1039 | 1044 | ||
1040 | 1045 | ||
1041 | 1046 | ||
1042 | - | @Callable( | |
1043 | - | func unsetCloseOnly () = if (( | |
1047 | + | @Callable(bN) | |
1048 | + | func unsetCloseOnly () = if ((bN.caller != aj())) | |
1044 | 1049 | then throw("Invalid unsetCloseOnly params") | |
1045 | 1050 | else [BooleanEntry(n, false)] | |
1046 | 1051 | ||
1047 | 1052 | ||
1048 | 1053 | ||
1049 | - | @Callable( | |
1050 | - | func changeLiquidity ( | |
1054 | + | @Callable(bN) | |
1055 | + | func changeLiquidity (cu) = if (if ((bN.caller != aj())) | |
1051 | 1056 | then true | |
1052 | - | else ( | |
1057 | + | else (cu == 0)) | |
1053 | 1058 | then throw("Invalid changeLiquidity params") | |
1054 | 1059 | else { | |
1055 | - | let | |
1056 | - | let | |
1057 | - | let | |
1058 | - | let | |
1059 | - | let | |
1060 | - | let | |
1061 | - | let | |
1062 | - | let | |
1063 | - | let | |
1064 | - | let | |
1065 | - | let | |
1066 | - | let | |
1067 | - | let | |
1060 | + | let cz = bf() | |
1061 | + | let cA = bh() | |
1062 | + | let cE = bj() | |
1063 | + | let cF = bk() | |
1064 | + | let hq = aL(aN(cz, cE), aN(cA, cF)) | |
1065 | + | let hr = (cz + cu) | |
1066 | + | let hs = (aL(aN(hr, cE), hq) - cA) | |
1067 | + | let ht = (cA + hs) | |
1068 | + | let hu = fL(dA(), hr, ht) | |
1069 | + | let hv = hu._1 | |
1070 | + | let hw = hu._2 | |
1071 | + | let fP = hu._3 | |
1072 | + | let hx = if ((fP != 0)) | |
1068 | 1073 | then { | |
1069 | - | let | |
1070 | - | if (( | |
1074 | + | let hx = invoke(am(), "exchangeFreeAndLocked", [fP], nil) | |
1075 | + | if ((hx == hx)) | |
1071 | 1076 | then nil | |
1072 | 1077 | else throw("Strict value is not equal to itself.") | |
1073 | 1078 | } | |
1074 | 1079 | else nil | |
1075 | - | if (( | |
1076 | - | then ( | |
1080 | + | if ((hx == hx)) | |
1081 | + | then (gY(hr, ht) ++ gZ(hv, hw)) | |
1077 | 1082 | else throw("Strict value is not equal to itself.") | |
1078 | 1083 | } | |
1079 | 1084 | ||
1080 | 1085 | ||
1081 | 1086 | ||
1082 | - | @Callable(bL) | |
1083 | - | func changeSettings (gt,gu,gv,gw,eE,gx,gy,gz,gA,dR,gB,gC,gD,gE,gF,hw,hx,gG,gH) = if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if ((0 >= gw)) | |
1084 | - | then true | |
1085 | - | else (0 >= gt)) | |
1086 | - | then true | |
1087 | - | else (gt > ax)) | |
1088 | - | then true | |
1089 | - | else (0 >= gG)) | |
1090 | - | then true | |
1091 | - | else (gG > ax)) | |
1092 | - | then true | |
1093 | - | else (gt > gG)) | |
1094 | - | then true | |
1095 | - | else (0 >= gu)) | |
1087 | + | @Callable(bN) | |
1088 | + | func changeSettings (gv,gw,gx,gy,eG,gz,gA,gB,gC,dT,gD,gE,gF,gG,gH,hy,hz,gI,gJ) = if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if ((0 >= gy)) | |
1096 | 1089 | then true | |
1097 | 1090 | else (0 >= gv)) | |
1098 | 1091 | then true | |
1099 | - | else (0 >= eE)) | |
1092 | + | else (gv > ay)) | |
1093 | + | then true | |
1094 | + | else (0 >= gI)) | |
1095 | + | then true | |
1096 | + | else (gI > ay)) | |
1097 | + | then true | |
1098 | + | else (gv > gI)) | |
1099 | + | then true | |
1100 | + | else (0 >= gw)) | |
1100 | 1101 | then true | |
1101 | 1102 | else (0 >= gx)) | |
1102 | 1103 | then true | |
1103 | - | else (0 >= | |
1104 | + | else (0 >= eG)) | |
1104 | 1105 | then true | |
1105 | 1106 | else (0 >= gz)) | |
1106 | 1107 | then true | |
1107 | 1108 | else (0 >= gA)) | |
1108 | 1109 | then true | |
1109 | - | else (0 >= dR)) | |
1110 | - | then true | |
1111 | 1110 | else (0 >= gB)) | |
1112 | 1111 | then true | |
1113 | - | else ( | |
1112 | + | else (0 >= gC)) | |
1114 | 1113 | then true | |
1115 | - | else (0 > | |
1114 | + | else (0 >= dT)) | |
1116 | 1115 | then true | |
1117 | 1116 | else (0 >= gD)) | |
1118 | 1117 | then true | |
1119 | - | else if ((gE != aD)) | |
1120 | - | then (gE != aC) | |
1118 | + | else (gD > ay)) | |
1119 | + | then true | |
1120 | + | else (0 > gE)) | |
1121 | + | then true | |
1122 | + | else (0 >= gF)) | |
1123 | + | then true | |
1124 | + | else if ((gG != aE)) | |
1125 | + | then (gG != aD) | |
1121 | 1126 | else false) | |
1122 | 1127 | then true | |
1123 | - | else if (( | |
1124 | - | then ( | |
1128 | + | else if ((gH != aF)) | |
1129 | + | then (gH != aG) | |
1125 | 1130 | else false) | |
1126 | 1131 | then true | |
1127 | - | else if (( | |
1128 | - | then ( | |
1132 | + | else if ((gJ != aH)) | |
1133 | + | then (gJ != aI) | |
1129 | 1134 | else false) | |
1130 | 1135 | then true | |
1131 | - | else !( | |
1136 | + | else !(cp())) | |
1132 | 1137 | then true | |
1133 | - | else ( | |
1138 | + | else (bN.caller != aj())) | |
1134 | 1139 | then throw("Invalid changeSettings params") | |
1135 | - | else ( | |
1140 | + | else (gu(gv, gw, gx, gy, eG, gz, gA, gB, gC, dT, gD, gE, gF, gG, gH, gI, gJ) ++ [StringEntry(a, hy), StringEntry(b, hz)]) | |
1136 | 1141 | ||
1137 | 1142 | ||
1138 | 1143 | ||
1139 | - | @Callable( | |
1140 | - | func initialize ( | |
1144 | + | @Callable(bN) | |
1145 | + | func initialize (cz,cA,gy,gv,gw,gx,eG,hy,hz,hA,gz,gA,gB,gC,dT,gD,gE,gF,gG,gH,gI,gJ) = if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if ((0 >= cz)) | |
1141 | 1146 | then true | |
1142 | - | else (0 >= cy)) | |
1147 | + | else (0 >= cA)) | |
1148 | + | then true | |
1149 | + | else (0 >= gy)) | |
1150 | + | then true | |
1151 | + | else (0 >= gv)) | |
1152 | + | then true | |
1153 | + | else (gv > ay)) | |
1154 | + | then true | |
1155 | + | else (0 >= gI)) | |
1156 | + | then true | |
1157 | + | else (gI > ay)) | |
1158 | + | then true | |
1159 | + | else (gv > gI)) | |
1143 | 1160 | then true | |
1144 | 1161 | else (0 >= gw)) | |
1145 | 1162 | then true | |
1146 | - | else (0 >= gt)) | |
1147 | - | then true | |
1148 | - | else (gt > ax)) | |
1149 | - | then true | |
1150 | - | else (0 >= gG)) | |
1151 | - | then true | |
1152 | - | else (gG > ax)) | |
1153 | - | then true | |
1154 | - | else (gt > gG)) | |
1155 | - | then true | |
1156 | - | else (0 >= gu)) | |
1157 | - | then true | |
1158 | - | else (0 >= gv)) | |
1159 | - | then true | |
1160 | - | else (0 >= eE)) | |
1161 | - | then true | |
1162 | 1163 | else (0 >= gx)) | |
1163 | 1164 | then true | |
1164 | - | else (0 >= | |
1165 | + | else (0 >= eG)) | |
1165 | 1166 | then true | |
1166 | 1167 | else (0 >= gz)) | |
1167 | 1168 | then true | |
1168 | 1169 | else (0 >= gA)) | |
1169 | 1170 | then true | |
1170 | - | else (0 >= dR)) | |
1171 | - | then true | |
1172 | 1171 | else (0 >= gB)) | |
1173 | 1172 | then true | |
1174 | - | else ( | |
1173 | + | else (0 >= gC)) | |
1175 | 1174 | then true | |
1176 | - | else (0 > | |
1175 | + | else (0 >= dT)) | |
1177 | 1176 | then true | |
1178 | 1177 | else (0 >= gD)) | |
1179 | 1178 | then true | |
1180 | - | else if ((gE != aD)) | |
1181 | - | then (gE != aC) | |
1179 | + | else (gD > ay)) | |
1180 | + | then true | |
1181 | + | else (0 > gE)) | |
1182 | + | then true | |
1183 | + | else (0 >= gF)) | |
1184 | + | then true | |
1185 | + | else if ((gG != aE)) | |
1186 | + | then (gG != aD) | |
1182 | 1187 | else false) | |
1183 | 1188 | then true | |
1184 | - | else if (( | |
1185 | - | then ( | |
1189 | + | else if ((gH != aF)) | |
1190 | + | then (gH != aG) | |
1186 | 1191 | else false) | |
1187 | 1192 | then true | |
1188 | - | else if (( | |
1189 | - | then ( | |
1193 | + | else if ((gJ != aH)) | |
1194 | + | then (gJ != aI) | |
1190 | 1195 | else false) | |
1191 | 1196 | then true | |
1192 | - | else | |
1197 | + | else cp()) | |
1193 | 1198 | then true | |
1194 | - | else ( | |
1199 | + | else (bN.caller != this)) | |
1195 | 1200 | then throw("Invalid initialize parameters") | |
1196 | - | else (((( | |
1201 | + | else ((((ha(cz, cA, 0, 0, 0, 0, 0, 0) ++ gu(gv, gw, gx, gy, eG, gz, gA, gB, gC, dT, gD, gE, gF, gG, gH, gI, gJ)) ++ gK((bL() + gy), 0, 0, 0, 0)) ++ hl(0)) ++ [BooleanEntry(l, true), StringEntry(a, hy), StringEntry(b, hz), StringEntry(W, toString(addressFromStringValue(hA)))]) | |
1197 | 1202 | ||
1198 | 1203 | ||
1199 | 1204 | ||
1200 | - | @Callable( | |
1201 | - | func increasePosition ( | |
1202 | - | let | |
1203 | - | if (( | |
1205 | + | @Callable(bN) | |
1206 | + | func increasePosition (bX,hB,hC,hD,hE) = { | |
1207 | + | let hF = invoke(this, "updateOracle", [hE], nil) | |
1208 | + | if ((hF == hF)) | |
1204 | 1209 | then { | |
1205 | - | let | |
1206 | - | if (( | |
1210 | + | let hG = invoke(this, "syncTerminalPriceToOracle", nil, nil) | |
1211 | + | if ((hG == hG)) | |
1207 | 1212 | then { | |
1208 | - | let | |
1209 | - | if (( | |
1213 | + | let hH = invoke(this, "ensureCalledOnce", nil, nil) | |
1214 | + | if ((hH == hH)) | |
1210 | 1215 | then { | |
1211 | - | let | |
1212 | - | let | |
1213 | - | let | |
1214 | - | let | |
1215 | - | let | |
1216 | - | if (if (if (if (if (if (if (if (if (if (if (( | |
1217 | - | then ( | |
1216 | + | let bW = bM(bN) | |
1217 | + | let hI = bN.payments[0].amount | |
1218 | + | let hJ = bN.payments[0].assetId | |
1219 | + | let hK = toBase58String(value(hJ)) | |
1220 | + | let hL = (hJ == ak()) | |
1221 | + | if (if (if (if (if (if (if (if (if (if (if ((bX != au)) | |
1222 | + | then (bX != av) | |
1218 | 1223 | else false) | |
1219 | 1224 | then true | |
1220 | - | else (0 >= | |
1225 | + | else (0 >= hI)) | |
1221 | 1226 | then true | |
1222 | - | else !( | |
1227 | + | else !(cp())) | |
1223 | 1228 | then true | |
1224 | - | else !( | |
1229 | + | else !(hL)) | |
1225 | 1230 | then true | |
1226 | - | else !( | |
1231 | + | else !(bO(aL(ay, hB), bd(), true))) | |
1227 | 1232 | then true | |
1228 | - | else !( | |
1233 | + | else !(bO(aL(ay, hB), be(), false))) | |
1229 | 1234 | then true | |
1230 | - | else !( | |
1235 | + | else !(dU(bN.caller))) | |
1231 | 1236 | then true | |
1232 | - | else | |
1237 | + | else cq()) | |
1233 | 1238 | then true | |
1234 | - | else | |
1239 | + | else cr()) | |
1235 | 1240 | then true | |
1236 | - | else | |
1241 | + | else dG()) | |
1237 | 1242 | then throw("Invalid increasePosition parameters") | |
1238 | 1243 | else { | |
1239 | - | let | |
1240 | - | let | |
1241 | - | let | |
1242 | - | let | |
1243 | - | let | |
1244 | - | let | |
1245 | - | if (( | |
1244 | + | let hM = gj(bW, go(bN)) | |
1245 | + | let gh = hM._1 | |
1246 | + | let gi = hM._2 | |
1247 | + | let hj = aL(hI, (aN(gh, hB) + ay)) | |
1248 | + | let hN = (hI - hj) | |
1249 | + | let hO = invoke(ap(), "acceptPaymentWithLink", [bW, hD], [AttachedPayment(ak(), hN)]) | |
1250 | + | if ((hO == hO)) | |
1246 | 1251 | then { | |
1247 | - | let | |
1248 | - | let | |
1249 | - | if ($isInstanceOf( | |
1252 | + | let hP = { | |
1253 | + | let ca = hO | |
1254 | + | if ($isInstanceOf(ca, "Int")) | |
1250 | 1255 | then { | |
1251 | - | let | |
1252 | - | | |
1256 | + | let gm = ca | |
1257 | + | gm | |
1253 | 1258 | } | |
1254 | 1259 | else throw("Invalid referrerFee") | |
1255 | 1260 | } | |
1256 | - | let | |
1257 | - | let | |
1258 | - | let | |
1259 | - | let | |
1260 | - | let | |
1261 | - | let | |
1262 | - | let | |
1263 | - | let | |
1264 | - | let | |
1265 | - | then ( | |
1266 | - | else ( | |
1267 | - | let | |
1268 | - | then | |
1261 | + | let hQ = (hN - hP) | |
1262 | + | let hR = bV(bW, bX) | |
1263 | + | let eL = hR._1 | |
1264 | + | let eM = hR._2 | |
1265 | + | let eN = hR._3 | |
1266 | + | let eO = hR._4 | |
1267 | + | let eP = hR._5 | |
1268 | + | let hS = (eL == 0) | |
1269 | + | let hT = if ((eL > 0)) | |
1270 | + | then (bX == au) | |
1271 | + | else (bX == av) | |
1272 | + | let hU = if (!(hS)) | |
1273 | + | then hT | |
1269 | 1274 | else false | |
1270 | - | let | |
1271 | - | let | |
1275 | + | let hV = (bX == au) | |
1276 | + | let hW = if (if (hS) | |
1272 | 1277 | then true | |
1273 | - | else | |
1278 | + | else hU) | |
1274 | 1279 | then { | |
1275 | - | let | |
1276 | - | let | |
1277 | - | let | |
1278 | - | let | |
1279 | - | let | |
1280 | - | let | |
1281 | - | if (if (( | |
1282 | - | then ( | |
1280 | + | let hX = aN(hj, hB) | |
1281 | + | let hY = cD(hV, hX) | |
1282 | + | let cK = hY._1 | |
1283 | + | let cH = hY._2 | |
1284 | + | let cI = hY._3 | |
1285 | + | let eV = hY._4 | |
1286 | + | if (if ((hC != 0)) | |
1287 | + | then (hC > aQ(cK)) | |
1283 | 1288 | else false) | |
1284 | - | then throw(((("Limit error: " + toString( | |
1289 | + | then throw(((("Limit error: " + toString(aQ(cK))) + " < ") + toString(hC))) | |
1285 | 1290 | else { | |
1286 | - | let | |
1287 | - | let | |
1288 | - | then | |
1291 | + | let fj = (eL + cK) | |
1292 | + | let hZ = (bo() + (if ((fj > 0)) | |
1293 | + | then hX | |
1289 | 1294 | else 0)) | |
1290 | - | let | |
1291 | - | then | |
1295 | + | let ia = (bn() + (if ((0 > fj)) | |
1296 | + | then hX | |
1292 | 1297 | else 0)) | |
1293 | - | let | |
1294 | - | let | |
1295 | - | let | |
1296 | - | let | |
1297 | - | let | |
1298 | - | if (!( | |
1298 | + | let ib = cZ(eL, eM, eO, eP, hj) | |
1299 | + | let dh = ib._1 | |
1300 | + | let fd = ib._2 | |
1301 | + | let fe = ib._3 | |
1302 | + | let cY = ib._4 | |
1303 | + | if (!(dM(cH, cI))) | |
1299 | 1304 | then throw("Over max spread limit") | |
1300 | - | else if (!( | |
1305 | + | else if (!(dQ(hZ, ia))) | |
1301 | 1306 | then throw("Over max open notional") | |
1302 | - | else $Tuple14( | |
1303 | - | then | |
1304 | - | else 0)), ( | |
1305 | - | then | |
1306 | - | else 0)), | |
1307 | + | else $Tuple14(fj, dh, (eN + hX), bT(fj), bL(), cI, cH, eV, (bm() + hX), (bD() + (if ((fj > 0)) | |
1308 | + | then aQ(cK) | |
1309 | + | else 0)), (bC() + (if ((0 > fj)) | |
1310 | + | then aQ(cK) | |
1311 | + | else 0)), hZ, ia, cY) | |
1307 | 1312 | } | |
1308 | 1313 | } | |
1309 | 1314 | else { | |
1310 | - | let | |
1311 | - | let | |
1312 | - | let | |
1313 | - | let | |
1314 | - | if (( | |
1315 | + | let hX = aN(hj, hB) | |
1316 | + | let ic = ei(toString(bN.caller), bX, aB) | |
1317 | + | let eY = ic._1 | |
1318 | + | let eh = ic._2 | |
1319 | + | if ((eY > hX)) | |
1315 | 1320 | then throw("Use decreasePosition to decrease position size") | |
1316 | 1321 | else throw("Close position first") | |
1317 | 1322 | } | |
1318 | - | let | |
1319 | - | let | |
1320 | - | let | |
1321 | - | let | |
1322 | - | let | |
1323 | - | let | |
1324 | - | let | |
1325 | - | let | |
1326 | - | let | |
1327 | - | let | |
1328 | - | let | |
1329 | - | let | |
1330 | - | let | |
1331 | - | let | |
1332 | - | let | |
1333 | - | let | |
1334 | - | let | |
1335 | - | let | |
1336 | - | then invoke( | |
1337 | - | else invoke( | |
1338 | - | if (( | |
1323 | + | let fj = hW._1 | |
1324 | + | let id = hW._2 | |
1325 | + | let fl = hW._3 | |
1326 | + | let ie = hW._4 | |
1327 | + | let if = hW._5 | |
1328 | + | let cI = hW._6 | |
1329 | + | let cH = hW._7 | |
1330 | + | let eV = hW._8 | |
1331 | + | let ig = hW._9 | |
1332 | + | let ih = hW._10 | |
1333 | + | let ii = hW._11 | |
1334 | + | let hZ = hW._12 | |
1335 | + | let ia = hW._13 | |
1336 | + | let cY = hW._14 | |
1337 | + | let ij = gq((hQ + cY)) | |
1338 | + | let gs = ij._1 | |
1339 | + | let gt = ij._2 | |
1340 | + | let ik = if ((hj >= cY)) | |
1341 | + | then invoke(am(), "addLocked", nil, [AttachedPayment(ak(), (hj - cY))]) | |
1342 | + | else invoke(am(), "withdrawLocked", [(cY - hj)], nil) | |
1343 | + | if ((ik == ik)) | |
1339 | 1344 | then { | |
1340 | - | let | |
1341 | - | if (( | |
1345 | + | let il = invoke(am(), "addFree", nil, [AttachedPayment(ak(), gt)]) | |
1346 | + | if ((il == il)) | |
1342 | 1347 | then { | |
1343 | - | let | |
1344 | - | if (( | |
1348 | + | let im = invoke(an(), "notifyFees", [bW, hQ], nil) | |
1349 | + | if ((im == im)) | |
1345 | 1350 | then { | |
1346 | - | let | |
1347 | - | if (( | |
1348 | - | then (((((( | |
1351 | + | let in = invoke(an(), "notifyNotional", [bW, fl], nil) | |
1352 | + | if ((in == in)) | |
1353 | + | then ((((((gU(bW, fj, id, fl, ie, if) ++ gQ(hS, bW, bX)) ++ gT(hS, bW, bX, gh)) ++ ha(cH, cI, eV, ig, ih, ii, hZ, ia)) ++ hn(gs)) ++ hl(((aZ() + hj) - cY))) ++ ho(gi, bN)) | |
1349 | 1354 | else throw("Strict value is not equal to itself.") | |
1350 | 1355 | } | |
1351 | 1356 | else throw("Strict value is not equal to itself.") | |
1352 | 1357 | } | |
1353 | 1358 | else throw("Strict value is not equal to itself.") | |
1354 | 1359 | } | |
1355 | 1360 | else throw("Strict value is not equal to itself.") | |
1356 | 1361 | } | |
1357 | 1362 | else throw("Strict value is not equal to itself.") | |
1358 | 1363 | } | |
1359 | 1364 | } | |
1360 | 1365 | else throw("Strict value is not equal to itself.") | |
1361 | 1366 | } | |
1362 | 1367 | else throw("Strict value is not equal to itself.") | |
1363 | 1368 | } | |
1364 | 1369 | else throw("Strict value is not equal to itself.") | |
1365 | 1370 | } | |
1366 | 1371 | ||
1367 | 1372 | ||
1368 | 1373 | ||
1369 | - | @Callable( | |
1370 | - | func addMargin ( | |
1371 | - | let | |
1372 | - | if (( | |
1374 | + | @Callable(bN) | |
1375 | + | func addMargin (bX,hE) = { | |
1376 | + | let hF = invoke(this, "updateOracle", [hE], nil) | |
1377 | + | if ((hF == hF)) | |
1373 | 1378 | then { | |
1374 | - | let | |
1375 | - | if (( | |
1379 | + | let hG = invoke(this, "syncTerminalPriceToOracle", nil, nil) | |
1380 | + | if ((hG == hG)) | |
1376 | 1381 | then { | |
1377 | - | let | |
1378 | - | if (( | |
1382 | + | let hH = invoke(this, "ensureCalledOnce", nil, nil) | |
1383 | + | if ((hH == hH)) | |
1379 | 1384 | then { | |
1380 | - | let | |
1381 | - | let | |
1382 | - | let | |
1383 | - | let | |
1384 | - | let | |
1385 | - | if (if (if (if (if (!( | |
1385 | + | let bW = toString(bN.caller) | |
1386 | + | let hj = bN.payments[0].amount | |
1387 | + | let hJ = bN.payments[0].assetId | |
1388 | + | let hK = toBase58String(value(hJ)) | |
1389 | + | let hL = (hJ == ak()) | |
1390 | + | if (if (if (if (if (!(hL)) | |
1386 | 1391 | then true | |
1387 | - | else !( | |
1392 | + | else !(cg(toString(bN.caller), bX))) | |
1388 | 1393 | then true | |
1389 | - | else !( | |
1394 | + | else !(cp())) | |
1390 | 1395 | then true | |
1391 | - | else | |
1396 | + | else cq()) | |
1392 | 1397 | then true | |
1393 | - | else | |
1398 | + | else dG()) | |
1394 | 1399 | then throw("Invalid addMargin parameters") | |
1395 | 1400 | else { | |
1396 | - | let | |
1397 | - | let | |
1398 | - | let | |
1399 | - | let | |
1400 | - | let | |
1401 | - | let | |
1402 | - | let | |
1403 | - | if (( | |
1401 | + | let io = bV(bW, bX) | |
1402 | + | let eL = io._1 | |
1403 | + | let eM = io._2 | |
1404 | + | let eN = io._3 | |
1405 | + | let eO = io._4 | |
1406 | + | let eP = io._5 | |
1407 | + | let ik = invoke(am(), "addLocked", nil, [AttachedPayment(ak(), hj)]) | |
1408 | + | if ((ik == ik)) | |
1404 | 1409 | then { | |
1405 | - | let | |
1406 | - | let | |
1407 | - | let | |
1408 | - | let | |
1409 | - | let | |
1410 | - | let | |
1411 | - | if (( | |
1410 | + | let ip = cZ(eL, eM, eO, eP, hj) | |
1411 | + | let dh = ip._1 | |
1412 | + | let di = ip._2 | |
1413 | + | let cY = ip._3 | |
1414 | + | let fo = en(dh, di, eN) | |
1415 | + | let iq = bO(fo, be(), false) | |
1416 | + | if ((iq == iq)) | |
1412 | 1417 | then { | |
1413 | - | let | |
1418 | + | let ir = if ((cY > 0)) | |
1414 | 1419 | then { | |
1415 | - | let | |
1416 | - | let | |
1417 | - | let | |
1418 | - | let | |
1419 | - | if (( | |
1420 | + | let is = gq(cY) | |
1421 | + | let gs = is._1 | |
1422 | + | let gt = is._2 | |
1423 | + | let it = invoke(am(), "withdrawLocked", [gs], nil) | |
1424 | + | if ((it == it)) | |
1420 | 1425 | then { | |
1421 | - | let | |
1422 | - | if (( | |
1423 | - | then | |
1426 | + | let iu = invoke(am(), "exchangeFreeAndLocked", [-(gt)], nil) | |
1427 | + | if ((iu == iu)) | |
1428 | + | then hn(gs) | |
1424 | 1429 | else throw("Strict value is not equal to itself.") | |
1425 | 1430 | } | |
1426 | 1431 | else throw("Strict value is not equal to itself.") | |
1427 | 1432 | } | |
1428 | 1433 | else nil | |
1429 | - | if (( | |
1430 | - | then (( | |
1434 | + | if ((ir == ir)) | |
1435 | + | then ((gU(bW, eL, ((eM - cY) + hj), eN, eO, bL()) ++ hl(((aZ() + hj) - cY))) ++ ir) | |
1431 | 1436 | else throw("Strict value is not equal to itself.") | |
1432 | 1437 | } | |
1433 | 1438 | else throw("Strict value is not equal to itself.") | |
1434 | 1439 | } | |
1435 | 1440 | else throw("Strict value is not equal to itself.") | |
1436 | 1441 | } | |
1437 | 1442 | } | |
1438 | 1443 | else throw("Strict value is not equal to itself.") | |
1439 | 1444 | } | |
1440 | 1445 | else throw("Strict value is not equal to itself.") | |
1441 | 1446 | } | |
1442 | 1447 | else throw("Strict value is not equal to itself.") | |
1443 | 1448 | } | |
1444 | 1449 | ||
1445 | 1450 | ||
1446 | 1451 | ||
1447 | - | @Callable( | |
1448 | - | func removeMargin ( | |
1449 | - | let | |
1450 | - | if (( | |
1452 | + | @Callable(bN) | |
1453 | + | func removeMargin (hj,bX,hE) = { | |
1454 | + | let hF = invoke(this, "updateOracle", [hE], nil) | |
1455 | + | if ((hF == hF)) | |
1451 | 1456 | then { | |
1452 | - | let | |
1453 | - | if (( | |
1457 | + | let hG = invoke(this, "syncTerminalPriceToOracle", nil, nil) | |
1458 | + | if ((hG == hG)) | |
1454 | 1459 | then { | |
1455 | - | let | |
1456 | - | if (( | |
1460 | + | let hH = invoke(this, "ensureCalledOnce", nil, nil) | |
1461 | + | if ((hH == hH)) | |
1457 | 1462 | then { | |
1458 | - | let | |
1459 | - | if (if (if (if (if ((0 >= | |
1463 | + | let bW = toString(bN.caller) | |
1464 | + | if (if (if (if (if ((0 >= hj)) | |
1460 | 1465 | then true | |
1461 | - | else !( | |
1466 | + | else !(cg(bW, bX))) | |
1462 | 1467 | then true | |
1463 | - | else !( | |
1468 | + | else !(cp())) | |
1464 | 1469 | then true | |
1465 | - | else | |
1470 | + | else cq()) | |
1466 | 1471 | then true | |
1467 | - | else | |
1472 | + | else dG()) | |
1468 | 1473 | then throw("Invalid removeMargin parameters") | |
1469 | 1474 | else { | |
1470 | - | let | |
1471 | - | let | |
1472 | - | let | |
1473 | - | let | |
1474 | - | let | |
1475 | - | let | |
1476 | - | let | |
1477 | - | let | |
1478 | - | let | |
1479 | - | let | |
1480 | - | let | |
1481 | - | if (( | |
1475 | + | let iv = bV(bW, bX) | |
1476 | + | let eL = iv._1 | |
1477 | + | let eM = iv._2 | |
1478 | + | let eN = iv._3 | |
1479 | + | let eO = iv._4 | |
1480 | + | let eP = iv._5 | |
1481 | + | let iw = cZ(eL, eM, eO, eP, -(hj)) | |
1482 | + | let dh = iw._1 | |
1483 | + | let di = iw._2 | |
1484 | + | let dd = iw._3 | |
1485 | + | let cY = iw._4 | |
1486 | + | if ((di != 0)) | |
1482 | 1487 | then throw("Invalid removed margin amount") | |
1483 | 1488 | else { | |
1484 | - | let | |
1485 | - | if (!( | |
1486 | - | then throw(((("Too much margin removed: " + toString( | |
1489 | + | let fo = en(dh, di, eN) | |
1490 | + | if (!(bO(fo, bd(), true))) | |
1491 | + | then throw(((("Too much margin removed: " + toString(fo)) + " < ") + toString(bd()))) | |
1487 | 1492 | else { | |
1488 | - | let | |
1489 | - | let | |
1490 | - | let | |
1491 | - | let | |
1493 | + | let ix = gq(cY) | |
1494 | + | let gs = ix._1 | |
1495 | + | let gt = ix._2 | |
1496 | + | let ir = if ((cY > 0)) | |
1492 | 1497 | then { | |
1493 | - | let | |
1494 | - | if (( | |
1495 | - | then | |
1498 | + | let iu = invoke(am(), "exchangeFreeAndLocked", [-(gt)], nil) | |
1499 | + | if ((iu == iu)) | |
1500 | + | then hn(gs) | |
1496 | 1501 | else throw("Strict value is not equal to itself.") | |
1497 | 1502 | } | |
1498 | 1503 | else nil | |
1499 | - | if (( | |
1504 | + | if ((ir == ir)) | |
1500 | 1505 | then { | |
1501 | - | let | |
1502 | - | if (( | |
1503 | - | then ((( | |
1506 | + | let it = invoke(am(), "withdrawLocked", [(hj + gs)], nil) | |
1507 | + | if ((it == it)) | |
1508 | + | then (((gU(bW, eL, dh, eN, bT(eL), bL()) ++ hi(bN.caller, hj)) ++ hl(((aZ() - hj) - cY))) ++ ir) | |
1504 | 1509 | else throw("Strict value is not equal to itself.") | |
1505 | 1510 | } | |
1506 | 1511 | else throw("Strict value is not equal to itself.") | |
1507 | 1512 | } | |
1508 | 1513 | } | |
1509 | 1514 | } | |
1510 | 1515 | } | |
1511 | 1516 | else throw("Strict value is not equal to itself.") | |
1512 | 1517 | } | |
1513 | 1518 | else throw("Strict value is not equal to itself.") | |
1514 | 1519 | } | |
1515 | 1520 | else throw("Strict value is not equal to itself.") | |
1516 | 1521 | } | |
1517 | 1522 | ||
1518 | 1523 | ||
1519 | 1524 | ||
1520 | - | @Callable( | |
1521 | - | func closePosition ( | |
1522 | - | let | |
1523 | - | if (( | |
1525 | + | @Callable(bN) | |
1526 | + | func closePosition (eF,bX,eH,eI,hE) = { | |
1527 | + | let hF = invoke(this, "updateOracle", [hE], nil) | |
1528 | + | if ((hF == hF)) | |
1524 | 1529 | then { | |
1525 | - | let | |
1526 | - | if (( | |
1530 | + | let hG = invoke(this, "syncTerminalPriceToOracle", nil, nil) | |
1531 | + | if ((hG == hG)) | |
1527 | 1532 | then { | |
1528 | - | let | |
1529 | - | if (( | |
1533 | + | let hH = invoke(this, "ensureCalledOnce", nil, nil) | |
1534 | + | if ((hH == hH)) | |
1530 | 1535 | then { | |
1531 | - | let | |
1532 | - | let | |
1533 | - | let | |
1534 | - | if (if (if (if (if (if (!( | |
1536 | + | let bW = bM(bN) | |
1537 | + | let iy = valueOrErrorMessage(addressFromString(bW), "Invalid caller") | |
1538 | + | let cf = cd(bW, bX) | |
1539 | + | if (if (if (if (if (if (!(cg(bW, bX))) | |
1535 | 1540 | then true | |
1536 | - | else !( | |
1541 | + | else !(cp())) | |
1537 | 1542 | then true | |
1538 | - | else | |
1543 | + | else cq()) | |
1539 | 1544 | then true | |
1540 | - | else (0 >= | |
1545 | + | else (0 >= eF)) | |
1541 | 1546 | then true | |
1542 | - | else (0 > | |
1547 | + | else (0 > eH)) | |
1543 | 1548 | then true | |
1544 | - | else | |
1549 | + | else dG()) | |
1545 | 1550 | then throw("Invalid closePosition parameters") | |
1546 | 1551 | else { | |
1547 | - | let | |
1548 | - | let | |
1549 | - | let | |
1550 | - | let | |
1551 | - | let | |
1552 | - | let | |
1553 | - | let | |
1554 | - | let | |
1555 | - | let | |
1556 | - | let | |
1557 | - | let | |
1558 | - | let | |
1559 | - | let | |
1560 | - | let | |
1561 | - | let | |
1562 | - | let | |
1563 | - | let | |
1564 | - | let | |
1565 | - | if (( | |
1552 | + | let eP = bV(bW, bX)._5 | |
1553 | + | let iz = eE(bW, bX, eF, cf, eH, eI, true, true) | |
1554 | + | let fj = iz._1 | |
1555 | + | let fs = iz._2 | |
1556 | + | let fl = iz._3 | |
1557 | + | let fm = iz._4 | |
1558 | + | let ff = iz._5 | |
1559 | + | let fa = iz._6 | |
1560 | + | let fr = iz._7 | |
1561 | + | let cH = iz._8 | |
1562 | + | let cI = iz._9 | |
1563 | + | let eV = iz._10 | |
1564 | + | let ig = iz._11 | |
1565 | + | let ih = iz._12 | |
1566 | + | let ii = iz._13 | |
1567 | + | let hZ = iz._14 | |
1568 | + | let ia = iz._15 | |
1569 | + | let iA = iz._16 | |
1570 | + | if ((ff > 0)) | |
1566 | 1571 | then throw("Invalid closePosition parameters: bad debt") | |
1567 | - | else if (( | |
1572 | + | else if ((eP >= bL())) | |
1568 | 1573 | then throw("Invalid closePosition parameters: wait at least 1 block before closing the position") | |
1569 | 1574 | else { | |
1570 | - | let | |
1571 | - | let | |
1572 | - | let | |
1573 | - | let | |
1575 | + | let eS = (fj != 0) | |
1576 | + | let iB = (fr + iA) | |
1577 | + | let iC = (aZ() - iB) | |
1578 | + | let iD = if ((0 > iC)) | |
1574 | 1579 | then 0 | |
1575 | - | else | |
1576 | - | let | |
1577 | - | if (( | |
1580 | + | else iC | |
1581 | + | let it = invoke(am(), "withdrawLocked", [iB], nil) | |
1582 | + | if ((it == it)) | |
1578 | 1583 | then { | |
1579 | - | let | |
1580 | - | if (( | |
1584 | + | let hO = invoke(ap(), "acceptPayment", [bW], [AttachedPayment(ak(), iA)]) | |
1585 | + | if ((hO == hO)) | |
1581 | 1586 | then { | |
1582 | - | let | |
1583 | - | let | |
1584 | - | if ($isInstanceOf( | |
1587 | + | let hP = { | |
1588 | + | let ca = hO | |
1589 | + | if ($isInstanceOf(ca, "Int")) | |
1585 | 1590 | then { | |
1586 | - | let | |
1587 | - | | |
1591 | + | let gm = ca | |
1592 | + | gm | |
1588 | 1593 | } | |
1589 | 1594 | else throw("Invalid referrerFee") | |
1590 | 1595 | } | |
1591 | - | let | |
1592 | - | let | |
1593 | - | let | |
1594 | - | let | |
1595 | - | if (( | |
1596 | + | let iE = gq((iA - hP)) | |
1597 | + | let gs = iE._1 | |
1598 | + | let gt = iE._2 | |
1599 | + | let il = invoke(am(), "addFree", nil, [AttachedPayment(ak(), gt)]) | |
1600 | + | if ((il == il)) | |
1596 | 1601 | then { | |
1597 | - | let | |
1598 | - | if (( | |
1602 | + | let im = invoke(an(), "notifyFees", [bW, iA], nil) | |
1603 | + | if ((im == im)) | |
1599 | 1604 | then { | |
1600 | - | let | |
1601 | - | if (( | |
1602 | - | then (((((if ( | |
1603 | - | then | |
1604 | - | else | |
1605 | - | then | |
1606 | - | else nil)) ++ | |
1605 | + | let in = invoke(an(), "notifyNotional", [bW, fl], nil) | |
1606 | + | if ((in == in)) | |
1607 | + | then (((((if (eS) | |
1608 | + | then gU(bW, fj, fs, fl, fm, bL()) | |
1609 | + | else hh(bW, bX)) ++ ha(cH, cI, eV, ig, ih, ii, hZ, ia)) ++ (if ((fr > 0)) | |
1610 | + | then hi(iy, fr) | |
1611 | + | else nil)) ++ hl(iD)) ++ hn(gs)) | |
1607 | 1612 | else throw("Strict value is not equal to itself.") | |
1608 | 1613 | } | |
1609 | 1614 | else throw("Strict value is not equal to itself.") | |
1610 | 1615 | } | |
1611 | 1616 | else throw("Strict value is not equal to itself.") | |
1612 | 1617 | } | |
1613 | 1618 | else throw("Strict value is not equal to itself.") | |
1614 | 1619 | } | |
1615 | 1620 | else throw("Strict value is not equal to itself.") | |
1616 | 1621 | } | |
1617 | 1622 | } | |
1618 | 1623 | } | |
1619 | 1624 | else throw("Strict value is not equal to itself.") | |
1620 | 1625 | } | |
1621 | 1626 | else throw("Strict value is not equal to itself.") | |
1622 | 1627 | } | |
1623 | 1628 | else throw("Strict value is not equal to itself.") | |
1624 | 1629 | } | |
1625 | 1630 | ||
1626 | 1631 | ||
1627 | 1632 | ||
1628 | - | @Callable( | |
1629 | - | func liquidate ( | |
1630 | - | let | |
1631 | - | if (( | |
1633 | + | @Callable(bN) | |
1634 | + | func liquidate (bW,bX,hE) = { | |
1635 | + | let hF = invoke(this, "updateOracle", [hE], nil) | |
1636 | + | if ((hF == hF)) | |
1632 | 1637 | then { | |
1633 | - | let | |
1634 | - | if (( | |
1638 | + | let hG = invoke(this, "syncTerminalPriceToOracle", nil, nil) | |
1639 | + | if ((hG == hG)) | |
1635 | 1640 | then { | |
1636 | - | let | |
1637 | - | let | |
1641 | + | let iF = er(bW, bX, aB) | |
1642 | + | let iG = if (dX()) | |
1638 | 1643 | then { | |
1639 | - | let | |
1640 | - | | |
1644 | + | let iH = er(bW, bX, aC) | |
1645 | + | aR(iF, iH) | |
1641 | 1646 | } | |
1642 | - | else | |
1643 | - | if (if (if (if (if (!( | |
1647 | + | else iF | |
1648 | + | if (if (if (if (if (!(bO(iG, bt(), false))) | |
1644 | 1649 | then true | |
1645 | - | else !( | |
1650 | + | else !(cg(bW, bX))) | |
1646 | 1651 | then true | |
1647 | - | else !( | |
1652 | + | else !(cp())) | |
1648 | 1653 | then true | |
1649 | - | else | |
1654 | + | else cq()) | |
1650 | 1655 | then true | |
1651 | - | else | |
1656 | + | else dG()) | |
1652 | 1657 | then throw("Unable to liquidate") | |
1653 | 1658 | else { | |
1654 | - | let iG = if (if ((iD > bt())) | |
1655 | - | then (bu() > 0) | |
1659 | + | let eL = bV(bW, bX)._1 | |
1660 | + | let eb = aQ(eL) | |
1661 | + | let iI = if (if (if ((iF > bu())) | |
1662 | + | then (bv() > 0) | |
1656 | 1663 | else false) | |
1657 | - | then (ax > bu()) | |
1664 | + | then (ay > bv()) | |
1665 | + | else false) | |
1666 | + | then (aN(eb, dW()) > bK()) | |
1658 | 1667 | else false | |
1659 | - | let eJ = bT(bU, bV)._1 | |
1660 | - | let dZ = aP(eJ) | |
1661 | - | let iH = if (iG) | |
1668 | + | let iJ = if (iI) | |
1662 | 1669 | then { | |
1663 | - | let iI = ex(bU, eJ) | |
1664 | - | let iJ = aK(aP(iI), dZ) | |
1665 | - | $Tuple2(iJ, aP(iI)) | |
1670 | + | let iK = aQ(ez(bW, eL)) | |
1671 | + | let iL = aL(iK, eb) | |
1672 | + | let iM = aN(iK, dW()) | |
1673 | + | $Tuple2(iL, iK) | |
1666 | 1674 | } | |
1667 | - | else $Tuple2(0, | |
1668 | - | let | |
1669 | - | let | |
1670 | - | let | |
1671 | - | then | |
1672 | - | else | |
1673 | - | let | |
1674 | - | let | |
1675 | - | let | |
1676 | - | let | |
1677 | - | let | |
1678 | - | let | |
1679 | - | let | |
1680 | - | let | |
1681 | - | let | |
1682 | - | let | |
1683 | - | let | |
1684 | - | let | |
1685 | - | let | |
1686 | - | let | |
1687 | - | let | |
1688 | - | let | |
1689 | - | let | |
1690 | - | let | |
1691 | - | let | |
1692 | - | let | |
1675 | + | else $Tuple2(0, eb) | |
1676 | + | let iL = iJ._1 | |
1677 | + | let iK = iJ._2 | |
1678 | + | let iN = eE(bW, bX, if (iI) | |
1679 | + | then iK | |
1680 | + | else eb, bu(), 0, true, false, true) | |
1681 | + | let fj = iN._1 | |
1682 | + | let fs = iN._2 | |
1683 | + | let fl = iN._3 | |
1684 | + | let fm = iN._4 | |
1685 | + | let ff = iN._5 | |
1686 | + | let fa = iN._6 | |
1687 | + | let fr = iN._7 | |
1688 | + | let cH = iN._8 | |
1689 | + | let cI = iN._9 | |
1690 | + | let eV = iN._10 | |
1691 | + | let ig = iN._11 | |
1692 | + | let ih = iN._12 | |
1693 | + | let ii = iN._13 | |
1694 | + | let hZ = iN._14 | |
1695 | + | let ia = iN._15 | |
1696 | + | let iO = iN._16 | |
1697 | + | let iP = (iO / 2) | |
1698 | + | let gt = (iO - iP) | |
1699 | + | let iC = (aZ() - iO) | |
1700 | + | let iQ = if ((0 > iC)) | |
1693 | 1701 | then 0 | |
1694 | - | else | |
1695 | - | let | |
1702 | + | else iC | |
1703 | + | let iu = if ((ff > 0)) | |
1696 | 1704 | then { | |
1697 | - | let | |
1698 | - | if (( | |
1705 | + | let iu = invoke(am(), "exchangeFreeAndLocked", [(ff + iO)], nil) | |
1706 | + | if ((iu == iu)) | |
1699 | 1707 | then nil | |
1700 | 1708 | else throw("Strict value is not equal to itself.") | |
1701 | 1709 | } | |
1702 | 1710 | else nil | |
1703 | - | if (( | |
1711 | + | if ((iu == iu)) | |
1704 | 1712 | then { | |
1705 | - | let | |
1706 | - | if (( | |
1713 | + | let it = invoke(am(), "withdrawLocked", [iO], nil) | |
1714 | + | if ((it == it)) | |
1707 | 1715 | then { | |
1708 | - | let | |
1709 | - | if (( | |
1716 | + | let iR = invoke(am(), "addFree", nil, [AttachedPayment(ak(), gt)]) | |
1717 | + | if ((iR == iR)) | |
1710 | 1718 | then { | |
1711 | - | let | |
1712 | - | if (( | |
1713 | - | then ((((if ( | |
1714 | - | then | |
1715 | - | else | |
1719 | + | let in = invoke(an(), "notifyNotional", [bW, fl], nil) | |
1720 | + | if ((in == in)) | |
1721 | + | then ((((if (iI) | |
1722 | + | then gU(bW, fj, fs, fl, fm, bL()) | |
1723 | + | else hh(bW, bX)) ++ ha(cH, cI, eV, ig, ih, ii, hZ, ia)) ++ hi(bN.caller, iP)) ++ hl(iQ)) | |
1716 | 1724 | else throw("Strict value is not equal to itself.") | |
1717 | 1725 | } | |
1718 | 1726 | else throw("Strict value is not equal to itself.") | |
1719 | 1727 | } | |
1720 | 1728 | else throw("Strict value is not equal to itself.") | |
1721 | 1729 | } | |
1722 | 1730 | else throw("Strict value is not equal to itself.") | |
1723 | 1731 | } | |
1724 | 1732 | } | |
1725 | 1733 | else throw("Strict value is not equal to itself.") | |
1726 | 1734 | } | |
1727 | 1735 | else throw("Strict value is not equal to itself.") | |
1728 | 1736 | } | |
1729 | 1737 | ||
1730 | 1738 | ||
1731 | 1739 | ||
1732 | - | @Callable( | |
1733 | - | func payFunding ( | |
1734 | - | let | |
1735 | - | if (( | |
1740 | + | @Callable(bN) | |
1741 | + | func payFunding (hE) = { | |
1742 | + | let hF = invoke(this, "updateOracle", [hE], nil) | |
1743 | + | if ((hF == hF)) | |
1736 | 1744 | then { | |
1737 | - | let | |
1738 | - | if (( | |
1745 | + | let hG = invoke(this, "syncTerminalPriceToOracle", nil, nil) | |
1746 | + | if ((hG == hG)) | |
1739 | 1747 | then { | |
1740 | - | let | |
1741 | - | if (if (if (( | |
1748 | + | let iS = bp() | |
1749 | + | if (if (if ((iS > bL())) | |
1742 | 1750 | then true | |
1743 | - | else !( | |
1751 | + | else !(cp())) | |
1744 | 1752 | then true | |
1745 | - | else | |
1746 | - | then throw(((("Invalid funding block timestamp: " + toString( | |
1753 | + | else cq()) | |
1754 | + | then throw(((("Invalid funding block timestamp: " + toString(bL())) + " < ") + toString(iS))) | |
1747 | 1755 | else { | |
1748 | - | let | |
1749 | - | let | |
1750 | - | let | |
1751 | - | let | |
1752 | - | let | |
1753 | - | let | |
1756 | + | let fR = dA() | |
1757 | + | let iT = fQ() | |
1758 | + | let fU = iT._1 | |
1759 | + | let fV = iT._2 | |
1760 | + | let fY = iT._3 | |
1761 | + | let iU = if ((fY > 0)) | |
1754 | 1762 | then { | |
1755 | - | let | |
1756 | - | if (( | |
1763 | + | let iU = invoke(am(), "exchangeFreeAndLocked", [-(fY)], nil) | |
1764 | + | if ((iU == iU)) | |
1757 | 1765 | then nil | |
1758 | 1766 | else throw("Strict value is not equal to itself.") | |
1759 | 1767 | } | |
1760 | 1768 | else nil | |
1761 | - | if (( | |
1762 | - | then | |
1769 | + | if ((iU == iU)) | |
1770 | + | then gK((iS + bs()), (bA() + fV), (bB() + fU), aL(fV, fR), aL(fU, fR)) | |
1763 | 1771 | else throw("Strict value is not equal to itself.") | |
1764 | 1772 | } | |
1765 | 1773 | } | |
1766 | 1774 | else throw("Strict value is not equal to itself.") | |
1767 | 1775 | } | |
1768 | 1776 | else throw("Strict value is not equal to itself.") | |
1769 | 1777 | } | |
1770 | 1778 | ||
1771 | 1779 | ||
1772 | 1780 | ||
1773 | - | @Callable( | |
1774 | - | func updateOracle ( | |
1781 | + | @Callable(bN) | |
1782 | + | func updateOracle (hE) = if ((bI() == aF)) | |
1775 | 1783 | then nil | |
1776 | 1784 | else { | |
1777 | - | let | |
1778 | - | let | |
1779 | - | let | |
1780 | - | let | |
1781 | - | if (( | |
1785 | + | let iV = split_4C(hE, "::") | |
1786 | + | let dB = valueOrErrorMessage(ch(a), "No base asset oracle data") | |
1787 | + | let iW = dB._1 | |
1788 | + | let iX = invoke(iW, "updateData", [iV[0]], nil) | |
1789 | + | if ((iX == iX)) | |
1782 | 1790 | then { | |
1783 | - | let | |
1784 | - | let | |
1791 | + | let dD = ch(b) | |
1792 | + | let iY = if (isDefined(dD)) | |
1785 | 1793 | then { | |
1786 | - | let | |
1787 | - | let | |
1788 | - | let | |
1789 | - | if (( | |
1794 | + | let dF = value(dD) | |
1795 | + | let iZ = dF._1 | |
1796 | + | let iY = invoke(iZ, "updateData", [iV[1]], nil) | |
1797 | + | if ((iY == iY)) | |
1790 | 1798 | then nil | |
1791 | 1799 | else throw("Strict value is not equal to itself.") | |
1792 | 1800 | } | |
1793 | 1801 | else nil | |
1794 | - | if (( | |
1802 | + | if ((iY == iY)) | |
1795 | 1803 | then nil | |
1796 | 1804 | else throw("Strict value is not equal to itself.") | |
1797 | 1805 | } | |
1798 | 1806 | else throw("Strict value is not equal to itself.") | |
1799 | 1807 | } | |
1800 | 1808 | ||
1801 | 1809 | ||
1802 | 1810 | ||
1803 | - | @Callable( | |
1811 | + | @Callable(bN) | |
1804 | 1812 | func syncTerminalPriceToOracle () = { | |
1805 | - | let | |
1806 | - | let | |
1807 | - | let | |
1808 | - | let | |
1809 | - | let | |
1810 | - | let | |
1811 | - | let | |
1812 | - | then ( | |
1813 | + | let cz = bf() | |
1814 | + | let cA = bh() | |
1815 | + | let ja = fL(dA(), cz, cA) | |
1816 | + | let hv = ja._1 | |
1817 | + | let hw = ja._2 | |
1818 | + | let fP = ja._3 | |
1819 | + | let jb = if (if ((0 > fP)) | |
1820 | + | then (aQ(fP) > aZ()) | |
1813 | 1821 | else false) | |
1814 | - | then -( | |
1815 | - | else | |
1816 | - | let | |
1822 | + | then -(aZ()) | |
1823 | + | else fP | |
1824 | + | let hx = if ((jb != 0)) | |
1817 | 1825 | then { | |
1818 | - | let | |
1819 | - | if (( | |
1826 | + | let hx = invoke(am(), "exchangeFreeAndLocked", [jb], nil) | |
1827 | + | if ((hx == hx)) | |
1820 | 1828 | then nil | |
1821 | 1829 | else throw("Strict value is not equal to itself.") | |
1822 | 1830 | } | |
1823 | 1831 | else nil | |
1824 | - | if (( | |
1825 | - | then ( | |
1832 | + | if ((hx == hx)) | |
1833 | + | then (hl((aZ() + jb)) ++ gZ(hv, hw)) | |
1826 | 1834 | else throw("Strict value is not equal to itself.") | |
1827 | 1835 | } | |
1828 | 1836 | ||
1829 | 1837 | ||
1830 | 1838 | ||
1831 | - | @Callable( | |
1832 | - | func ensureCalledOnce () = if (( | |
1839 | + | @Callable(bN) | |
1840 | + | func ensureCalledOnce () = if ((bN.caller != this)) | |
1833 | 1841 | then throw("Invalid saveCurrentTxId parameters") | |
1834 | 1842 | else { | |
1835 | - | let | |
1836 | - | let | |
1837 | - | if (( | |
1838 | - | then [StringEntry( | |
1843 | + | let jc = toBase58String(bN.transactionId) | |
1844 | + | let jd = valueOrElse(getString(this, V), "") | |
1845 | + | if ((jd != jc)) | |
1846 | + | then [StringEntry(V, jc)] | |
1839 | 1847 | else throw("Can not call vAMM methods twice in one tx") | |
1840 | 1848 | } | |
1841 | 1849 | ||
1842 | 1850 | ||
1843 | 1851 | ||
1844 | - | @Callable( | |
1845 | - | func migratePosition ( | |
1846 | - | let | |
1847 | - | if (if (isDefined( | |
1848 | - | then isDefined(addressFromString( | |
1852 | + | @Callable(bN) | |
1853 | + | func migratePosition (bW) = { | |
1854 | + | let bZ = getInteger(this, af(e, bW)) | |
1855 | + | if (if (isDefined(bZ)) | |
1856 | + | then isDefined(addressFromString(bW)) | |
1849 | 1857 | else false) | |
1850 | 1858 | then { | |
1851 | - | let | |
1852 | - | let | |
1853 | - | let | |
1854 | - | let | |
1855 | - | let | |
1856 | - | let | |
1857 | - | let | |
1858 | - | let | |
1859 | - | let | |
1860 | - | [DeleteEntry( | |
1859 | + | let je = getIntegerValue(this, af(e, bW)) | |
1860 | + | let jf = getIntegerValue(this, af(f, bW)) | |
1861 | + | let jg = getIntegerValue(this, af(g, bW)) | |
1862 | + | let jh = getIntegerValue(this, af(h, bW)) | |
1863 | + | let ji = valueOrElse(getInteger(this, af(k, bW)), lastBlock.timestamp) | |
1864 | + | let jj = valueOrElse(getInteger(this, af(j, bW)), bb()) | |
1865 | + | let jk = getIntegerValue(this, af(i, bW)) | |
1866 | + | let jl = cc(je) | |
1867 | + | let bY = ((bW + "_") + toString(jl)) | |
1868 | + | [DeleteEntry(af(e, bW)), DeleteEntry(af(f, bW)), DeleteEntry(af(g, bW)), DeleteEntry(af(h, bW)), DeleteEntry(af(k, bW)), DeleteEntry(af(j, bW)), DeleteEntry(af(i, bW)), IntegerEntry(af(e, bY), je), IntegerEntry(af(f, bY), jf), IntegerEntry(af(g, bY), jg), IntegerEntry(af(h, bY), jh), IntegerEntry(af(k, bY), ji), IntegerEntry(af(j, bY), jj), IntegerEntry(af(i, bY), jk)] | |
1861 | 1869 | } | |
1862 | - | else throw(("Nothing to migrate for " + | |
1870 | + | else throw(("Nothing to migrate for " + bW)) | |
1863 | 1871 | } | |
1864 | 1872 | ||
1865 | 1873 | ||
1866 | 1874 | ||
1867 | - | @Callable( | |
1868 | - | func view_calcRemainMarginWithFundingPayment ( | |
1869 | - | let | |
1870 | - | if (( | |
1875 | + | @Callable(bN) | |
1876 | + | func view_calcRemainMarginWithFundingPayment (bW,bX,hE) = { | |
1877 | + | let hF = invoke(this, "updateOracle", [hE], nil) | |
1878 | + | if ((hF == hF)) | |
1871 | 1879 | then { | |
1872 | - | let | |
1873 | - | if (( | |
1880 | + | let hG = invoke(this, "syncTerminalPriceToOracle", nil, nil) | |
1881 | + | if ((hG == hG)) | |
1874 | 1882 | then { | |
1875 | - | let jj = bT(bU, bV) | |
1876 | - | let bZ = jj._1 | |
1877 | - | let ei = jj._2 | |
1878 | - | let er = jj._3 | |
1879 | - | let ek = jj._4 | |
1880 | - | let et = jj._5 | |
1881 | - | let jk = eg(bU, bV, aA) | |
1882 | - | let eb = jk._1 | |
1883 | - | let ef = jk._2 | |
1884 | - | let jl = cX(bZ, ei, ek, et, ef) | |
1885 | - | let df = jl._1 | |
1886 | - | let dg = jl._2 | |
1887 | - | let db = jl._3 | |
1888 | - | let cW = jl._4 | |
1889 | - | throw(((((((aI(df) + aI(db)) + aI(ew(bU, bV))) + aI(ef)) + aI(dg)) + aI(eb)) + aI(cW))) | |
1883 | + | let jm = bV(bW, bX) | |
1884 | + | let cb = jm._1 | |
1885 | + | let ek = jm._2 | |
1886 | + | let et = jm._3 | |
1887 | + | let em = jm._4 | |
1888 | + | let ev = jm._5 | |
1889 | + | let jn = ei(bW, bX, aB) | |
1890 | + | let ed = jn._1 | |
1891 | + | let eh = jn._2 | |
1892 | + | let jo = cZ(cb, ek, em, ev, eh) | |
1893 | + | let dh = jo._1 | |
1894 | + | let di = jo._2 | |
1895 | + | let dd = jo._3 | |
1896 | + | let cY = jo._4 | |
1897 | + | let fR = dA() | |
1898 | + | let fS = dW() | |
1899 | + | throw(((((((((aJ(dh) + aJ(dd)) + aJ(ey(bW, bX))) + aJ(eh)) + aJ(di)) + aJ(ed)) + aJ(cY)) + aJ(fR)) + aJ(fS))) | |
1890 | 1900 | } | |
1891 | 1901 | else throw("Strict value is not equal to itself.") | |
1892 | 1902 | } | |
1893 | 1903 | else throw("Strict value is not equal to itself.") | |
1894 | 1904 | } | |
1895 | 1905 | ||
1896 | 1906 | ||
1897 | 1907 | ||
1898 | - | @Callable( | |
1899 | - | func view_getPegAdjustCost ( | |
1900 | - | let | |
1901 | - | let | |
1902 | - | let | |
1903 | - | throw(toString( | |
1908 | + | @Callable(bN) | |
1909 | + | func view_getPegAdjustCost (jp) = { | |
1910 | + | let cz = bf() | |
1911 | + | let cA = bh() | |
1912 | + | let fK = fL(jp, cz, cA) | |
1913 | + | throw(toString(fK._3)) | |
1904 | 1914 | } | |
1905 | 1915 | ||
1906 | 1916 | ||
1907 | 1917 | ||
1908 | - | @Callable( | |
1918 | + | @Callable(bN) | |
1909 | 1919 | func view_getTerminalAmmPrice () = { | |
1910 | - | let | |
1911 | - | let | |
1912 | - | let | |
1913 | - | let | |
1914 | - | throw(toString( | |
1920 | + | let jq = ft() | |
1921 | + | let fx = jq._1 | |
1922 | + | let fy = jq._2 | |
1923 | + | let hq = aL(aN(fx, bj()), aN(fy, bk())) | |
1924 | + | throw(toString(hq)) | |
1915 | 1925 | } | |
1916 | 1926 | ||
1917 | 1927 | ||
1918 | 1928 | ||
1919 | - | @Callable( | |
1920 | - | func view_getFunding ( | |
1921 | - | let | |
1922 | - | if (( | |
1929 | + | @Callable(bN) | |
1930 | + | func view_getFunding (hE) = { | |
1931 | + | let hF = invoke(this, "updateOracle", [hE], nil) | |
1932 | + | if ((hF == hF)) | |
1923 | 1933 | then { | |
1924 | - | let | |
1925 | - | if (( | |
1934 | + | let hG = invoke(this, "syncTerminalPriceToOracle", nil, nil) | |
1935 | + | if ((hG == hG)) | |
1926 | 1936 | then { | |
1927 | - | let | |
1928 | - | let | |
1929 | - | let | |
1930 | - | let | |
1931 | - | let | |
1932 | - | let | |
1933 | - | let | |
1934 | - | throw((((( | |
1937 | + | let fR = dA() | |
1938 | + | let jr = fQ() | |
1939 | + | let fU = jr._1 | |
1940 | + | let fV = jr._2 | |
1941 | + | let fY = jr._3 | |
1942 | + | let js = aL(fV, fR) | |
1943 | + | let jt = aL(fU, fR) | |
1944 | + | throw(((((aJ(js) + aJ(jt)) + aJ(dW())) + aJ(dA())) + aJ(fY))) | |
1935 | 1945 | } | |
1936 | 1946 | else throw("Strict value is not equal to itself.") | |
1937 | 1947 | } | |
1938 | 1948 | else throw("Strict value is not equal to itself.") | |
1939 | 1949 | } | |
1940 | 1950 | ||
1941 | 1951 | ||
1942 | 1952 | ||
1943 | - | @Callable( | |
1953 | + | @Callable(bN) | |
1944 | 1954 | func computeSpotPrice () = { | |
1945 | - | let | |
1946 | - | if (( | |
1955 | + | let hG = invoke(this, "syncTerminalPriceToOracle", nil, nil) | |
1956 | + | if ((hG == hG)) | |
1947 | 1957 | then { | |
1948 | - | let | |
1949 | - | $Tuple2(nil, | |
1958 | + | let fK = dW() | |
1959 | + | $Tuple2(nil, fK) | |
1950 | 1960 | } | |
1951 | 1961 | else throw("Strict value is not equal to itself.") | |
1952 | 1962 | } | |
1953 | 1963 | ||
1954 | 1964 | ||
1955 | 1965 | ||
1956 | - | @Callable( | |
1957 | - | func computeFeeForTraderWithArtifact ( | |
1958 | - | let | |
1959 | - | $Tuple2(nil, | |
1966 | + | @Callable(bN) | |
1967 | + | func computeFeeForTraderWithArtifact (bW,ga) = { | |
1968 | + | let fK = gj(bW, ga) | |
1969 | + | $Tuple2(nil, fK) | |
1960 | 1970 | } | |
1961 | 1971 | ||
1962 | 1972 | ||
1963 | - | @Verifier( | |
1964 | - | func | |
1965 | - | let | |
1966 | - | if (isDefined( | |
1973 | + | @Verifier(ju) | |
1974 | + | func jv () = { | |
1975 | + | let jw = getString(this, W) | |
1976 | + | if (isDefined(jw)) | |
1967 | 1977 | then { | |
1968 | - | let | |
1969 | - | if (isDefined( | |
1970 | - | then valueOrElse(getBoolean(addressFromStringValue(value( | |
1978 | + | let jx = getString(addressFromStringValue(value(jw)), Y) | |
1979 | + | if (isDefined(jx)) | |
1980 | + | then valueOrElse(getBoolean(addressFromStringValue(value(jx)), ((("status_" + toString(this)) + "_") + toBase58String(ju.id))), false) | |
1971 | 1981 | else throw("unable to verify: admin not set in coordinator") | |
1972 | 1982 | } | |
1973 | - | else sigVerify( | |
1983 | + | else sigVerify(ju.bodyBytes, ju.proofs[0], ju.senderPublicKey) | |
1974 | 1984 | } | |
1975 | 1985 |
github/deemru/w8io/026f985 920.43 ms ◑