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