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