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