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