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