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