tx · AhGER8w5c4Pcd3ASemMyeoCk6Wed59h5CYtCawnEtM1g 3NC3GcwFK9knYYKT2SRc7nWxc5SXc2aKBQ6: -0.08000000 Waves 2023.01.09 12:24 [2397220] smart account 3NC3GcwFK9knYYKT2SRc7nWxc5SXc2aKBQ6 > SELF 0.00000000 Waves
{ "type": 13, "id": "AhGER8w5c4Pcd3ASemMyeoCk6Wed59h5CYtCawnEtM1g", "fee": 8000000, "feeAssetId": null, "timestamp": 1673256268579, "version": 2, "chainId": 84, "sender": "3NC3GcwFK9knYYKT2SRc7nWxc5SXc2aKBQ6", "senderPublicKey": "5GAkpjTakesSgVm3A22kYMBvNpM8C1KpqWfyC7YyB84y", "proofs": [ "Ac6bD9zhCvUK6KftUSAMUywQACGx2YqUqAoPxZBzFTA1udLyWtmkMZr99esJdVXCBHLeejc72wtAC83kopc8avu" ], "script": "base64:BgJ6CAISABIAEgASABIDCgEBEgMKAQESDgoMAQEBAQEBAQEBAQEBEhQKEgEBAQEBAQEICAgIAQEBAQEBARIFCgMBAQESBgoEAQEBCBIAEgMKAQESBAoCAQESAwoBCBIAEgASAwoBCBIDCgEBEgASABIDCgEIEgASBAoCCAjAAQAJa19vcmFfa2V5AglrX29yYV9rZXkAD2tfb3JhX2Jsb2NrX2tleQIPa19vcmFfYmxvY2tfa2V5AAVrX29yYQIFa19vcmEACWtfYmFsYW5jZQIJa19iYWxhbmNlAAprX3NlcXVlbmNlAgprX3NlcXVlbmNlAA5rX3Bvc2l0aW9uU2l6ZQIOa19wb3NpdGlvblNpemUAEGtfcG9zaXRpb25NYXJnaW4CEGtfcG9zaXRpb25NYXJnaW4AFmtfcG9zaXRpb25PcGVuTm90aW9uYWwCFmtfcG9zaXRpb25PcGVuTm90aW9uYWwALmtfcG9zaXRpb25MYXN0VXBkYXRlZEN1bXVsYXRpdmVQcmVtaXVtRnJhY3Rpb24CEmtfcG9zaXRpb25GcmFjdGlvbgASa19wb3NpdGlvblNlcXVlbmNlAhJrX3Bvc2l0a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: original | compacted Prev: none Next: ALbafyQFaGSpkuqRPvWjNcaDSSZYHYvpY916UR55TQVv Full:
Old | New | Differences | |
---|---|---|---|
1 | - | # no script | |
1 | + | {-# STDLIB_VERSION 6 #-} | |
2 | + | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | + | {-# CONTENT_TYPE DAPP #-} | |
4 | + | let k_ora_key = "k_ora_key" | |
5 | + | ||
6 | + | let k_ora_block_key = "k_ora_block_key" | |
7 | + | ||
8 | + | let k_ora = "k_ora" | |
9 | + | ||
10 | + | let k_balance = "k_balance" | |
11 | + | ||
12 | + | let k_sequence = "k_sequence" | |
13 | + | ||
14 | + | let k_positionSize = "k_positionSize" | |
15 | + | ||
16 | + | let k_positionMargin = "k_positionMargin" | |
17 | + | ||
18 | + | let k_positionOpenNotional = "k_positionOpenNotional" | |
19 | + | ||
20 | + | let k_positionLastUpdatedCumulativePremiumFraction = "k_positionFraction" | |
21 | + | ||
22 | + | let k_positionSequence = "k_positionSequence" | |
23 | + | ||
24 | + | let k_positionAsset = "k_positionAsset" | |
25 | + | ||
26 | + | let k_initialized = "k_initialized" | |
27 | + | ||
28 | + | let k_paused = "k_paused" | |
29 | + | ||
30 | + | let k_closeOnly = "k_closeOnly" | |
31 | + | ||
32 | + | let k_fee = "k_fee" | |
33 | + | ||
34 | + | let k_fundingPeriod = "k_fundingPeriod" | |
35 | + | ||
36 | + | let k_initMarginRatio = "k_initMarginRatio" | |
37 | + | ||
38 | + | let k_maintenanceMarginRatio = "k_mmr" | |
39 | + | ||
40 | + | let k_liquidationFeeRatio = "k_liquidationFeeRatio" | |
41 | + | ||
42 | + | let k_partialLiquidationRatio = "k_partLiquidationRatio" | |
43 | + | ||
44 | + | let k_spreadLimit = "k_spreadLimit" | |
45 | + | ||
46 | + | let k_maxPriceImpact = "k_maxPriceImpact" | |
47 | + | ||
48 | + | let k_maxPriceSpread = "k_maxPriceSpread" | |
49 | + | ||
50 | + | let k_maxOpenNotional = "k_maxOpenNotional" | |
51 | + | ||
52 | + | let k_feeToStakersPercent = "k_feeToStakersPercent" | |
53 | + | ||
54 | + | let k_maxOracleDelay = "k_maxOracleDelay" | |
55 | + | ||
56 | + | let k_lastDataStr = "k_lastDataStr" | |
57 | + | ||
58 | + | let k_lastMinuteId = "k_lastMinuteId" | |
59 | + | ||
60 | + | let k_twapDataLastCumulativePrice = "k_twapDataLastCumulativePrice" | |
61 | + | ||
62 | + | let k_twapDataLastPrice = "k_twapDataLastPrice" | |
63 | + | ||
64 | + | let k_twapDataPreviousMinuteId = "k_twapDataPreviousMinuteId" | |
65 | + | ||
66 | + | let k_latestLongCumulativePremiumFraction = "k_latestLongPremiumFraction" | |
67 | + | ||
68 | + | let k_latestShortCumulativePremiumFraction = "k_latestShortPremiumFraction" | |
69 | + | ||
70 | + | let k_nextFundingBlock = "k_nextFundingBlockMinTimestamp" | |
71 | + | ||
72 | + | let k_longFundingRate = "k_longFundingRate" | |
73 | + | ||
74 | + | let k_shortFundingRate = "k_shortFundingRate" | |
75 | + | ||
76 | + | let k_quoteAssetReserve = "k_qtAstR" | |
77 | + | ||
78 | + | let k_baseAssetReserve = "k_bsAstR" | |
79 | + | ||
80 | + | let k_quoteAssetWeight = "k_qtAstW" | |
81 | + | ||
82 | + | let k_baseAssetWeight = "k_bsAstW" | |
83 | + | ||
84 | + | let k_totalPositionSize = "k_totalPositionSize" | |
85 | + | ||
86 | + | let k_totalLongPositionSize = "k_totalLongPositionSize" | |
87 | + | ||
88 | + | let k_totalShortPositionSize = "k_totalShortPositionSize" | |
89 | + | ||
90 | + | let k_openInterestNotional = "k_openInterestNotional" | |
91 | + | ||
92 | + | let k_openInterestShort = "k_openInterestShort" | |
93 | + | ||
94 | + | let k_openInterestLong = "k_openInterestLong" | |
95 | + | ||
96 | + | let k_coordinatorAddress = "k_coordinatorAddress" | |
97 | + | ||
98 | + | let k_vault_address = "k_vault_address" | |
99 | + | ||
100 | + | let k_admin_address = "k_admin_address" | |
101 | + | ||
102 | + | let k_admin_public_key = "k_admin_public_key" | |
103 | + | ||
104 | + | let k_quote_asset = "k_quote_asset" | |
105 | + | ||
106 | + | let k_quote_staking = "k_quote_staking" | |
107 | + | ||
108 | + | let k_staking_address = "k_staking_address" | |
109 | + | ||
110 | + | let k_miner_address = "k_miner_address" | |
111 | + | ||
112 | + | let k_orders_address = "k_orders_address" | |
113 | + | ||
114 | + | let k_referral_address = "k_referral_address" | |
115 | + | ||
116 | + | let k_collateral_address = "k_collateral_address" | |
117 | + | ||
118 | + | let k_exchange_address = "k_exchange_address" | |
119 | + | ||
120 | + | let k_nft_manager_address = "k_nft_manager_address" | |
121 | + | ||
122 | + | let k_trader_market_asset_collateral = "k_trader_market_asset_collateral" | |
123 | + | ||
124 | + | func toCompositeKey (_key,_address) = ((_key + "_") + _address) | |
125 | + | ||
126 | + | ||
127 | + | func coordinator () = valueOrErrorMessage(addressFromString(getStringValue(this, k_coordinatorAddress)), "Coordinator not set") | |
128 | + | ||
129 | + | ||
130 | + | func adminAddress () = addressFromString(getStringValue(coordinator(), k_admin_address)) | |
131 | + | ||
132 | + | ||
133 | + | func adminPublicKey () = fromBase58String(getStringValue(coordinator(), k_admin_public_key)) | |
134 | + | ||
135 | + | ||
136 | + | func quoteAsset () = fromBase58String(getStringValue(coordinator(), k_quote_asset)) | |
137 | + | ||
138 | + | ||
139 | + | func quoteAssetStaking () = valueOrErrorMessage(addressFromString(getStringValue(coordinator(), k_quote_staking)), "Quote asset staking not set") | |
140 | + | ||
141 | + | ||
142 | + | func stakingAddress () = valueOrErrorMessage(addressFromString(getStringValue(coordinator(), k_staking_address)), "Staking not set") | |
143 | + | ||
144 | + | ||
145 | + | func vaultAddress () = valueOrErrorMessage(addressFromString(getStringValue(coordinator(), k_vault_address)), "Vault not set") | |
146 | + | ||
147 | + | ||
148 | + | func minerAddress () = valueOrErrorMessage(addressFromString(getStringValue(coordinator(), k_miner_address)), "Miner not set") | |
149 | + | ||
150 | + | ||
151 | + | func ordersAddress () = valueOrErrorMessage(addressFromString(getStringValue(coordinator(), k_orders_address)), "Orders not set") | |
152 | + | ||
153 | + | ||
154 | + | func referralAddress () = valueOrErrorMessage(addressFromString(getStringValue(coordinator(), k_referral_address)), "Referral not set") | |
155 | + | ||
156 | + | ||
157 | + | func nftManagerAddress () = valueOrErrorMessage(addressFromString(getStringValue(coordinator(), k_nft_manager_address)), "NFT Manager not set") | |
158 | + | ||
159 | + | ||
160 | + | func collateralAddress () = valueOrErrorMessage(addressFromString(getStringValue(coordinator(), k_collateral_address)), "Collateral Manager not set") | |
161 | + | ||
162 | + | ||
163 | + | func swapAddress () = valueOrErrorMessage(addressFromString(valueOrErrorMessage(getString(coordinator(), k_exchange_address), "No swap address")), "Invalid swap address") | |
164 | + | ||
165 | + | ||
166 | + | let k_whitelist_asset = "k_whitelist_asset" | |
167 | + | ||
168 | + | func isWhitelistAsset (_assetId) = valueOrElse(getBoolean(collateralAddress(), toCompositeKey(k_whitelist_asset, _assetId)), false) | |
169 | + | ||
170 | + | ||
171 | + | let k_token_param = "k_token_param" | |
172 | + | ||
173 | + | let k_token_type = "k_token_type" | |
174 | + | ||
175 | + | let FEE_REDUCTION_TOKEN_TYPE = "fee_reduction" | |
176 | + | ||
177 | + | let DIR_LONG = 1 | |
178 | + | ||
179 | + | let DIR_SHORT = 2 | |
180 | + | ||
181 | + | let TWAP_INTERVAL = 15 | |
182 | + | ||
183 | + | let ORACLE_INTERVAL = 15 | |
184 | + | ||
185 | + | let SECONDS = 1000 | |
186 | + | ||
187 | + | let DECIMAL_NUMBERS = 6 | |
188 | + | ||
189 | + | let DECIMAL_UNIT = (1 * (((((10 * 10) * 10) * 10) * 10) * 10)) | |
190 | + | ||
191 | + | let ONE_DAY = (86400 * DECIMAL_UNIT) | |
192 | + | ||
193 | + | let ALL_FEES = 100 | |
194 | + | ||
195 | + | let PNL_OPTION_SPOT = 1 | |
196 | + | ||
197 | + | let PNL_OPTION_ORACLE = 2 | |
198 | + | ||
199 | + | func s (_x) = (toString(_x) + ",") | |
200 | + | ||
201 | + | ||
202 | + | func divd (_x,_y) = fraction(_x, DECIMAL_UNIT, _y, HALFEVEN) | |
203 | + | ||
204 | + | ||
205 | + | func muld (_x,_y) = fraction(_x, _y, DECIMAL_UNIT, HALFEVEN) | |
206 | + | ||
207 | + | ||
208 | + | func sqrtd (_x) = sqrt(_x, DECIMAL_NUMBERS, DECIMAL_NUMBERS, HALFEVEN) | |
209 | + | ||
210 | + | ||
211 | + | func powd (_x,_y) = pow(_x, DECIMAL_NUMBERS, _y, DECIMAL_NUMBERS, DECIMAL_NUMBERS, HALFEVEN) | |
212 | + | ||
213 | + | ||
214 | + | func bdivd (_x,_y) = fraction(_x, toBigInt(DECIMAL_UNIT), _y, HALFEVEN) | |
215 | + | ||
216 | + | ||
217 | + | func bmuld (_x,_y) = fraction(_x, _y, toBigInt(DECIMAL_UNIT), HALFEVEN) | |
218 | + | ||
219 | + | ||
220 | + | func bsqrtd (_x) = sqrtBigInt(_x, DECIMAL_NUMBERS, DECIMAL_NUMBERS, HALFEVEN) | |
221 | + | ||
222 | + | ||
223 | + | func bpowd (_x,_y) = pow(_x, DECIMAL_NUMBERS, _y, DECIMAL_NUMBERS, DECIMAL_NUMBERS, HALFEVEN) | |
224 | + | ||
225 | + | ||
226 | + | func abs (_x) = if ((_x > 0)) | |
227 | + | then _x | |
228 | + | else -(_x) | |
229 | + | ||
230 | + | ||
231 | + | func vmax (_x,_y) = if ((_x >= _y)) | |
232 | + | then _x | |
233 | + | else _y | |
234 | + | ||
235 | + | ||
236 | + | func listToStr (_list) = { | |
237 | + | func _join (accumulator,val) = ((accumulator + val) + ",") | |
238 | + | ||
239 | + | let newListStr = { | |
240 | + | let $l = _list | |
241 | + | let $s = size($l) | |
242 | + | let $acc0 = "" | |
243 | + | func $f0_1 ($a,$i) = if (($i >= $s)) | |
244 | + | then $a | |
245 | + | else _join($a, $l[$i]) | |
246 | + | ||
247 | + | func $f0_2 ($a,$i) = if (($i >= $s)) | |
248 | + | then $a | |
249 | + | else throw("List size exceeds 20") | |
250 | + | ||
251 | + | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20) | |
252 | + | } | |
253 | + | let newListStrU = dropRight(newListStr, 1) | |
254 | + | let newListStrR = if ((take(newListStrU, 1) == ",")) | |
255 | + | then drop(newListStrU, 1) | |
256 | + | else newListStrU | |
257 | + | newListStrR | |
258 | + | } | |
259 | + | ||
260 | + | ||
261 | + | func strToList (_str) = split(_str, ",") | |
262 | + | ||
263 | + | ||
264 | + | func pushToQueue (_list,_maxSize,_value) = if ((size(_list) > _maxSize)) | |
265 | + | then (removeByIndex(_list, 0) :+ _value) | |
266 | + | else (_list :+ _value) | |
267 | + | ||
268 | + | ||
269 | + | func int (k) = valueOrErrorMessage(getInteger(this, k), ("no value for " + k)) | |
270 | + | ||
271 | + | ||
272 | + | func intOr (k,def) = valueOrElse(getInteger(this, k), def) | |
273 | + | ||
274 | + | ||
275 | + | func strA (_address,_key) = { | |
276 | + | let val = valueOrErrorMessage(getString(_address, _key), ("No value for key " + _key)) | |
277 | + | val | |
278 | + | } | |
279 | + | ||
280 | + | ||
281 | + | func intA (_address,_key) = { | |
282 | + | let val = valueOrErrorMessage(getInteger(_address, _key), ("No value for key " + _key)) | |
283 | + | val | |
284 | + | } | |
285 | + | ||
286 | + | ||
287 | + | func cbalance () = int(k_balance) | |
288 | + | ||
289 | + | ||
290 | + | func fee () = int(k_fee) | |
291 | + | ||
292 | + | ||
293 | + | func initMarginRatio () = int(k_initMarginRatio) | |
294 | + | ||
295 | + | ||
296 | + | func qtAstR () = int(k_quoteAssetReserve) | |
297 | + | ||
298 | + | ||
299 | + | func bsAstR () = int(k_baseAssetReserve) | |
300 | + | ||
301 | + | ||
302 | + | func qtAstW () = intOr(k_quoteAssetWeight, DECIMAL_UNIT) | |
303 | + | ||
304 | + | ||
305 | + | func bsAstW () = intOr(k_baseAssetWeight, DECIMAL_UNIT) | |
306 | + | ||
307 | + | ||
308 | + | func totalPositionSize () = int(k_totalPositionSize) | |
309 | + | ||
310 | + | ||
311 | + | func openInterestNotional () = int(k_openInterestNotional) | |
312 | + | ||
313 | + | ||
314 | + | func openInterestShort () = int(k_openInterestShort) | |
315 | + | ||
316 | + | ||
317 | + | func openInterestLong () = int(k_openInterestLong) | |
318 | + | ||
319 | + | ||
320 | + | func nextFundingBlockTimestamp () = int(k_nextFundingBlock) | |
321 | + | ||
322 | + | ||
323 | + | func fundingPeriodRaw () = int(k_fundingPeriod) | |
324 | + | ||
325 | + | ||
326 | + | func fundingPeriodDecimal () = (fundingPeriodRaw() * DECIMAL_UNIT) | |
327 | + | ||
328 | + | ||
329 | + | func fundingPeriodSeconds () = (fundingPeriodRaw() * SECONDS) | |
330 | + | ||
331 | + | ||
332 | + | func maintenanceMarginRatio () = int(k_maintenanceMarginRatio) | |
333 | + | ||
334 | + | ||
335 | + | func liquidationFeeRatio () = int(k_liquidationFeeRatio) | |
336 | + | ||
337 | + | ||
338 | + | func partialLiquidationRatio () = int(k_partialLiquidationRatio) | |
339 | + | ||
340 | + | ||
341 | + | func spreadLimit () = int(k_spreadLimit) | |
342 | + | ||
343 | + | ||
344 | + | func maxPriceImpact () = int(k_maxPriceImpact) | |
345 | + | ||
346 | + | ||
347 | + | func maxPriceSpread () = int(k_maxPriceSpread) | |
348 | + | ||
349 | + | ||
350 | + | func maxOpenNotional () = int(k_maxOpenNotional) | |
351 | + | ||
352 | + | ||
353 | + | func latestLongCumulativePremiumFraction () = int(k_latestLongCumulativePremiumFraction) | |
354 | + | ||
355 | + | ||
356 | + | func latestShortCumulativePremiumFraction () = int(k_latestShortCumulativePremiumFraction) | |
357 | + | ||
358 | + | ||
359 | + | func totalShortPositionSize () = int(k_totalShortPositionSize) | |
360 | + | ||
361 | + | ||
362 | + | func totalLongPositionSize () = int(k_totalLongPositionSize) | |
363 | + | ||
364 | + | ||
365 | + | func lastSequence () = intOr(k_sequence, 0) | |
366 | + | ||
367 | + | ||
368 | + | func feeToStakersPercent () = int(k_feeToStakersPercent) | |
369 | + | ||
370 | + | ||
371 | + | func maxOracleDelay () = int(k_maxOracleDelay) | |
372 | + | ||
373 | + | ||
374 | + | func getActualCaller (i) = valueOrElse(getString(ordersAddress(), "k_sender"), toString(i.caller)) | |
375 | + | ||
376 | + | ||
377 | + | func requireMoreMarginRatio (_marginRatio,_baseMarginRatio,_largerThanOrEqualTo) = { | |
378 | + | let remainingMarginRatio = (_marginRatio - _baseMarginRatio) | |
379 | + | if (if (_largerThanOrEqualTo) | |
380 | + | then (0 > remainingMarginRatio) | |
381 | + | else false) | |
382 | + | then throw("Invalid margin") | |
383 | + | else if (if (!(_largerThanOrEqualTo)) | |
384 | + | then (remainingMarginRatio >= 0) | |
385 | + | else false) | |
386 | + | then throw("Invalid margin") | |
387 | + | else true | |
388 | + | } | |
389 | + | ||
390 | + | ||
391 | + | func latestCumulativePremiumFraction (_positionSize) = if ((_positionSize == 0)) | |
392 | + | then throw("Should not be called with _positionSize == 0") | |
393 | + | else if ((_positionSize > 0)) | |
394 | + | then latestLongCumulativePremiumFraction() | |
395 | + | else latestShortCumulativePremiumFraction() | |
396 | + | ||
397 | + | ||
398 | + | func getPosition (_trader) = { | |
399 | + | let positionSizeOpt = getInteger(this, toCompositeKey(k_positionSize, _trader)) | |
400 | + | match positionSizeOpt { | |
401 | + | case positionSize: Int => | |
402 | + | $Tuple4(positionSize, getIntegerValue(this, toCompositeKey(k_positionMargin, _trader)), getIntegerValue(this, toCompositeKey(k_positionOpenNotional, _trader)), getIntegerValue(this, toCompositeKey(k_positionLastUpdatedCumulativePremiumFraction, _trader))) | |
403 | + | case _ => | |
404 | + | $Tuple4(0, 0, 0, 0) | |
405 | + | } | |
406 | + | } | |
407 | + | ||
408 | + | ||
409 | + | func getPositionAsset (_trader) = { | |
410 | + | let positionAssetOpt = getString(this, toCompositeKey(k_positionAsset, _trader)) | |
411 | + | match positionAssetOpt { | |
412 | + | case positionAsset: String => | |
413 | + | positionAsset | |
414 | + | case _ => | |
415 | + | toBase58String(quoteAsset()) | |
416 | + | } | |
417 | + | } | |
418 | + | ||
419 | + | ||
420 | + | func requireOpenPosition (_trader) = if ((getPosition(_trader)._1 == 0)) | |
421 | + | then throw("No open position") | |
422 | + | else true | |
423 | + | ||
424 | + | ||
425 | + | func initialized () = valueOrElse(getBoolean(this, k_initialized), false) | |
426 | + | ||
427 | + | ||
428 | + | func paused () = valueOrElse(getBoolean(this, k_paused), false) | |
429 | + | ||
430 | + | ||
431 | + | func closeOnly () = valueOrElse(getBoolean(this, k_closeOnly), false) | |
432 | + | ||
433 | + | ||
434 | + | func updateReserve (_isAdd,_quoteAssetAmount,_baseAssetAmount) = if (_isAdd) | |
435 | + | then { | |
436 | + | let newBase = (bsAstR() - _baseAssetAmount) | |
437 | + | if ((0 >= newBase)) | |
438 | + | then throw("Tx lead to base asset reserve <= 0, revert") | |
439 | + | else $Tuple3((qtAstR() + _quoteAssetAmount), newBase, (totalPositionSize() + _baseAssetAmount)) | |
440 | + | } | |
441 | + | else { | |
442 | + | let newQuote = (qtAstR() - _quoteAssetAmount) | |
443 | + | if ((0 >= newQuote)) | |
444 | + | then throw("Tx lead to base quote reserve <= 0, revert") | |
445 | + | else $Tuple3(newQuote, (bsAstR() + _baseAssetAmount), (totalPositionSize() - _baseAssetAmount)) | |
446 | + | } | |
447 | + | ||
448 | + | ||
449 | + | func calcInvariant (_qtAstR,_qtAstW,_bsAstR,_bsAstW) = { | |
450 | + | let bqtAstR = toBigInt(_qtAstR) | |
451 | + | let bqtAstW = toBigInt(_qtAstW) | |
452 | + | let bbsAstR = toBigInt(_bsAstR) | |
453 | + | let bbsAstW = toBigInt(_bsAstW) | |
454 | + | bmuld(bmuld(bqtAstR, bqtAstW), bmuld(bbsAstR, bbsAstW)) | |
455 | + | } | |
456 | + | ||
457 | + | ||
458 | + | func swapInput (_isAdd,_quoteAssetAmount) = { | |
459 | + | let _qtAstR = qtAstR() | |
460 | + | let _bsAstR = bsAstR() | |
461 | + | let _qtAstW = qtAstW() | |
462 | + | let _bsAstW = bsAstW() | |
463 | + | let k = calcInvariant(_qtAstR, _qtAstW, _bsAstR, _bsAstW) | |
464 | + | let quoteAssetReserveAfter = if (_isAdd) | |
465 | + | then (_qtAstR + _quoteAssetAmount) | |
466 | + | else (_qtAstR - _quoteAssetAmount) | |
467 | + | let baseAssetReserveAfter = toInt(bdivd(k, toBigInt(muld(quoteAssetReserveAfter, _qtAstW)))) | |
468 | + | let amountBaseAssetBoughtAbs = divd(abs((baseAssetReserveAfter - _bsAstR)), _qtAstW) | |
469 | + | let amountBaseAssetBought = if (_isAdd) | |
470 | + | then amountBaseAssetBoughtAbs | |
471 | + | else -(amountBaseAssetBoughtAbs) | |
472 | + | let $t01694617109 = updateReserve(_isAdd, _quoteAssetAmount, amountBaseAssetBoughtAbs) | |
473 | + | let quoteAssetReserveAfter1 = $t01694617109._1 | |
474 | + | let baseAssetReserveAfter1 = $t01694617109._2 | |
475 | + | let totalPositionSizeAfter1 = $t01694617109._3 | |
476 | + | let priceBefore = divd(muld(_qtAstR, _qtAstW), muld(_bsAstR, _bsAstW)) | |
477 | + | let marketPrice = divd(_quoteAssetAmount, amountBaseAssetBoughtAbs) | |
478 | + | let priceDiff = abs((priceBefore - marketPrice)) | |
479 | + | let priceImpact = (DECIMAL_UNIT - divd(priceBefore, (priceBefore + priceDiff))) | |
480 | + | let maxPriceImpactValue = maxPriceImpact() | |
481 | + | if ((priceImpact > maxPriceImpactValue)) | |
482 | + | then throw(((((((((((((("Price impact " + toString(priceImpact)) + " > max price impact ") + toString(maxPriceImpactValue)) + " before quote asset: ") + toString(_qtAstR)) + " before base asset: ") + toString(_bsAstR)) + " quote asset amount to exchange: ") + toString(_quoteAssetAmount)) + " price before: ") + toString(priceBefore)) + " marketPrice: ") + toString(marketPrice))) | |
483 | + | else $Tuple4(amountBaseAssetBought, quoteAssetReserveAfter1, baseAssetReserveAfter1, totalPositionSizeAfter1) | |
484 | + | } | |
485 | + | ||
486 | + | ||
487 | + | func calcRemainMarginWithFundingPayment (_oldPositionSize,_oldPositionMargin,_oldPositionCumulativePremiumFraction,_marginDelta) = { | |
488 | + | let fundingPayment = if ((_oldPositionSize != 0)) | |
489 | + | then { | |
490 | + | let _latestCumulativePremiumFraction = latestCumulativePremiumFraction(_oldPositionSize) | |
491 | + | muld((_latestCumulativePremiumFraction - _oldPositionCumulativePremiumFraction), _oldPositionSize) | |
492 | + | } | |
493 | + | else 0 | |
494 | + | let signedMargin = ((_marginDelta - fundingPayment) + _oldPositionMargin) | |
495 | + | let $t01859618723 = if ((0 > signedMargin)) | |
496 | + | then $Tuple2(0, abs(signedMargin)) | |
497 | + | else $Tuple2(abs(signedMargin), 0) | |
498 | + | let remainMargin = $t01859618723._1 | |
499 | + | let badDebt = $t01859618723._2 | |
500 | + | $Tuple3(remainMargin, badDebt, fundingPayment) | |
501 | + | } | |
502 | + | ||
503 | + | ||
504 | + | func swapOutputWithReserves (_isAdd,_baseAssetAmount,_checkMaxPriceImpact,_quoteAssetReserve,_quoteAssetWeight,_baseAssetReserve,_baseAssetWeight) = { | |
505 | + | let priceBefore = divd(muld(_quoteAssetReserve, _quoteAssetWeight), muld(_baseAssetReserve, _baseAssetWeight)) | |
506 | + | if ((_baseAssetAmount == 0)) | |
507 | + | then throw("Invalid base asset amount") | |
508 | + | else { | |
509 | + | let k = calcInvariant(_quoteAssetReserve, _quoteAssetWeight, _baseAssetReserve, _baseAssetWeight) | |
510 | + | let baseAssetPoolAmountAfter = if (_isAdd) | |
511 | + | then (_baseAssetReserve + _baseAssetAmount) | |
512 | + | else (_baseAssetReserve - _baseAssetAmount) | |
513 | + | let quoteAssetAfter = toInt(bdivd(k, toBigInt(muld(baseAssetPoolAmountAfter, _baseAssetWeight)))) | |
514 | + | let quoteAssetSold = abs((quoteAssetAfter - muld(_quoteAssetReserve, _quoteAssetWeight))) | |
515 | + | let maxPriceImpactValue = maxPriceImpact() | |
516 | + | let $t01991120072 = updateReserve(!(_isAdd), quoteAssetSold, _baseAssetAmount) | |
517 | + | let quoteAssetReserveAfter1 = $t01991120072._1 | |
518 | + | let baseAssetReserveAfter1 = $t01991120072._2 | |
519 | + | let totalPositionSizeAfter1 = $t01991120072._3 | |
520 | + | let marketPrice = divd(quoteAssetSold, _baseAssetAmount) | |
521 | + | let priceDiff = abs((priceBefore - marketPrice)) | |
522 | + | let priceImpact = (DECIMAL_UNIT - divd(priceBefore, (priceBefore + priceDiff))) | |
523 | + | if (if ((priceImpact > maxPriceImpactValue)) | |
524 | + | then _checkMaxPriceImpact | |
525 | + | else false) | |
526 | + | then throw(((((((((((((("Price impact " + toString(priceImpact)) + " > max price impact ") + toString(maxPriceImpactValue)) + " before quote asset: ") + toString(_quoteAssetReserve)) + " before base asset: ") + toString(_baseAssetReserve)) + " base asset amount to exchange: ") + toString(_baseAssetAmount)) + " price before: ") + toString(priceBefore)) + " market price: ") + toString(marketPrice))) | |
527 | + | else $Tuple7(quoteAssetSold, quoteAssetReserveAfter1, baseAssetReserveAfter1, totalPositionSizeAfter1, (totalLongPositionSize() - (if (_isAdd) | |
528 | + | then abs(_baseAssetAmount) | |
529 | + | else 0)), (totalShortPositionSize() - (if (!(_isAdd)) | |
530 | + | then abs(_baseAssetAmount) | |
531 | + | else 0)), priceImpact) | |
532 | + | } | |
533 | + | } | |
534 | + | ||
535 | + | ||
536 | + | func swapOutput (_isAdd,_baseAssetAmount,_checkMaxPriceImpact) = swapOutputWithReserves(_isAdd, _baseAssetAmount, _checkMaxPriceImpact, qtAstR(), qtAstW(), bsAstR(), bsAstW()) | |
537 | + | ||
538 | + | ||
539 | + | func getOracleTwapPrice () = { | |
540 | + | let oracle = valueOrErrorMessage(addressFromString(getStringValue(this, k_ora)), "") | |
541 | + | let priceKey = getStringValue(this, k_ora_key) | |
542 | + | let lastValue = valueOrErrorMessage(getInteger(oracle, priceKey), ((("Can not get oracle price. Oracle: " + toString(oracle)) + " key: ") + priceKey)) | |
543 | + | let blockKey = valueOrElse(getString(this, k_ora_block_key), "") | |
544 | + | if ((blockKey != "")) | |
545 | + | then { | |
546 | + | let currentBlock = lastBlock.height | |
547 | + | let lastOracleBlock = valueOrErrorMessage(getInteger(oracle, k_ora_block_key), ((("Can not get oracle block. Oracle: " + toString(oracle)) + " key: ") + blockKey)) | |
548 | + | if (((currentBlock - lastOracleBlock) > maxOracleDelay())) | |
549 | + | then throw(((("Oracle stale data. Last oracle block: " + toString(lastOracleBlock)) + " current block: ") + toString(currentBlock))) | |
550 | + | else lastValue | |
551 | + | } | |
552 | + | else lastValue | |
553 | + | } | |
554 | + | ||
555 | + | ||
556 | + | func requireNotOverSpreadLimit (_quoteAssetReserve,_baseAssetReserve) = { | |
557 | + | let oraclePrice = getOracleTwapPrice() | |
558 | + | let _qtAstW = qtAstW() | |
559 | + | let _bsAstW = bsAstW() | |
560 | + | let priceAfter = divd(muld(_quoteAssetReserve, _qtAstW), muld(_baseAssetReserve, _bsAstW)) | |
561 | + | let averagePrice = divd((oraclePrice + priceAfter), (2 * DECIMAL_UNIT)) | |
562 | + | let absPriceDiff = divd(abs((oraclePrice - priceAfter)), averagePrice) | |
563 | + | if ((absPriceDiff > maxPriceSpread())) | |
564 | + | then throw(((("Price spread " + toString(absPriceDiff)) + " > max price spread ") + toString(maxPriceSpread()))) | |
565 | + | else true | |
566 | + | } | |
567 | + | ||
568 | + | ||
569 | + | func requireNotOverMaxOpenNotional (_longOpenNotional,_shortOpenNotional) = { | |
570 | + | let _maxOpenNotional = maxOpenNotional() | |
571 | + | if ((_longOpenNotional > _maxOpenNotional)) | |
572 | + | then throw(((("Long open notional " + toString(_longOpenNotional)) + " > max open notional ") + toString(_maxOpenNotional))) | |
573 | + | else if ((_shortOpenNotional > _maxOpenNotional)) | |
574 | + | then throw(((("Short open notional " + toString(_shortOpenNotional)) + " > max open notional ") + toString(_maxOpenNotional))) | |
575 | + | else true | |
576 | + | } | |
577 | + | ||
578 | + | ||
579 | + | func getSpotPrice () = { | |
580 | + | let _quoteAssetReserve = qtAstR() | |
581 | + | let _baseAssetReserve = bsAstR() | |
582 | + | let _qtAstW = qtAstW() | |
583 | + | let _bsAstW = bsAstW() | |
584 | + | divd(muld(_quoteAssetReserve, _qtAstW), muld(_baseAssetReserve, _bsAstW)) | |
585 | + | } | |
586 | + | ||
587 | + | ||
588 | + | func isOverFluctuationLimit () = { | |
589 | + | let oraclePrice = getOracleTwapPrice() | |
590 | + | let currentPrice = getSpotPrice() | |
591 | + | (divd(abs((oraclePrice - currentPrice)), oraclePrice) > spreadLimit()) | |
592 | + | } | |
593 | + | ||
594 | + | ||
595 | + | func getPositionAdjustedOpenNotional (_positionSize,_option,_quoteAssetReserve,_quoteAssetWeight,_baseAssetReserve,_baseAssetWeight) = { | |
596 | + | let positionSizeAbs = abs(_positionSize) | |
597 | + | let isShort = (0 > _positionSize) | |
598 | + | let positionNotional = if ((_option == PNL_OPTION_SPOT)) | |
599 | + | then { | |
600 | + | let $t02423824458 = swapOutputWithReserves(!(isShort), positionSizeAbs, false, _quoteAssetReserve, _quoteAssetWeight, _baseAssetReserve, _baseAssetWeight) | |
601 | + | let outPositionNotional = $t02423824458._1 | |
602 | + | let x1 = $t02423824458._2 | |
603 | + | let x2 = $t02423824458._3 | |
604 | + | let x3 = $t02423824458._4 | |
605 | + | outPositionNotional | |
606 | + | } | |
607 | + | else muld(positionSizeAbs, getOracleTwapPrice()) | |
608 | + | positionNotional | |
609 | + | } | |
610 | + | ||
611 | + | ||
612 | + | func getPositionNotionalAndUnrealizedPnlByValues (_positionSize,_positionOpenNotional,_quoteAssetReserve,_quoteAssetWeight,_baseAssetReserve,_baseAssetWeight,_option) = if ((_positionSize == 0)) | |
613 | + | then throw("Invalid position size") | |
614 | + | else { | |
615 | + | let isShort = (0 > _positionSize) | |
616 | + | let positionNotional = getPositionAdjustedOpenNotional(_positionSize, _option, _quoteAssetReserve, _quoteAssetWeight, _baseAssetReserve, _baseAssetWeight) | |
617 | + | let unrealizedPnl = if (isShort) | |
618 | + | then (_positionOpenNotional - positionNotional) | |
619 | + | else (positionNotional - _positionOpenNotional) | |
620 | + | $Tuple2(positionNotional, unrealizedPnl) | |
621 | + | } | |
622 | + | ||
623 | + | ||
624 | + | func getPositionNotionalAndUnrealizedPnl (_trader,_option) = { | |
625 | + | let $t02588326011 = getPosition(_trader) | |
626 | + | let positionSize = $t02588326011._1 | |
627 | + | let positionMargin = $t02588326011._2 | |
628 | + | let positionOpenNotional = $t02588326011._3 | |
629 | + | let positionLstUpdCPF = $t02588326011._4 | |
630 | + | getPositionNotionalAndUnrealizedPnlByValues(positionSize, positionOpenNotional, qtAstR(), qtAstW(), bsAstR(), bsAstW(), _option) | |
631 | + | } | |
632 | + | ||
633 | + | ||
634 | + | func calcMarginRatio (_remainMargin,_badDebt,_positionNotional) = divd((_remainMargin - _badDebt), _positionNotional) | |
635 | + | ||
636 | + | ||
637 | + | func getMarginRatioByOption (_trader,_option) = { | |
638 | + | let $t02652426635 = getPosition(_trader) | |
639 | + | let positionSize = $t02652426635._1 | |
640 | + | let positionMargin = $t02652426635._2 | |
641 | + | let pon = $t02652426635._3 | |
642 | + | let positionLstUpdCPF = $t02652426635._4 | |
643 | + | let $t02664126734 = getPositionNotionalAndUnrealizedPnl(_trader, _option) | |
644 | + | let positionNotional = $t02664126734._1 | |
645 | + | let unrealizedPnl = $t02664126734._2 | |
646 | + | let $t02673926905 = calcRemainMarginWithFundingPayment(positionSize, positionMargin, positionLstUpdCPF, unrealizedPnl) | |
647 | + | let remainMargin = $t02673926905._1 | |
648 | + | let badDebt = $t02673926905._2 | |
649 | + | calcMarginRatio(remainMargin, badDebt, positionNotional) | |
650 | + | } | |
651 | + | ||
652 | + | ||
653 | + | func getMarginRatio (_trader) = getMarginRatioByOption(_trader, PNL_OPTION_SPOT) | |
654 | + | ||
655 | + | ||
656 | + | func getPartialLiquidationAmount (_trader,_positionSize) = { | |
657 | + | let maximumRatio = vmax(partialLiquidationRatio(), (DECIMAL_UNIT - divd(getMarginRatio(_trader), maintenanceMarginRatio()))) | |
658 | + | let maxExchangedPositionSize = muld(abs(_positionSize), maximumRatio) | |
659 | + | let swapResult = swapOutput((_positionSize > 0), maxExchangedPositionSize, false) | |
660 | + | let maxExchangedQuoteAssetAmount = swapResult._1 | |
661 | + | let priceImpact = swapResult._7 | |
662 | + | if ((maxPriceImpact() > priceImpact)) | |
663 | + | then maxExchangedQuoteAssetAmount | |
664 | + | else { | |
665 | + | let exchangedPositionSize = muld(abs(_positionSize), partialLiquidationRatio()) | |
666 | + | let exchangedQuoteAssetAmount = swapOutput((_positionSize > 0), exchangedPositionSize, false)._1 | |
667 | + | exchangedQuoteAssetAmount | |
668 | + | } | |
669 | + | } | |
670 | + | ||
671 | + | ||
672 | + | func internalClosePosition (_trader,_checkMaxPriceImpact) = { | |
673 | + | let $t02814528273 = getPosition(_trader) | |
674 | + | let positionSize = $t02814528273._1 | |
675 | + | let positionMargin = $t02814528273._2 | |
676 | + | let positionOpenNotional = $t02814528273._3 | |
677 | + | let positionLstUpdCPF = $t02814528273._4 | |
678 | + | let unrealizedPnl = getPositionNotionalAndUnrealizedPnl(_trader, PNL_OPTION_SPOT)._2 | |
679 | + | let $t02836828536 = calcRemainMarginWithFundingPayment(positionSize, positionMargin, positionLstUpdCPF, unrealizedPnl) | |
680 | + | let remainMargin = $t02836828536._1 | |
681 | + | let badDebt = $t02836828536._2 | |
682 | + | let exchangedPositionSize = -(positionSize) | |
683 | + | let realizedPnl = unrealizedPnl | |
684 | + | let marginToVault = -(remainMargin) | |
685 | + | let $t02866328937 = swapOutput((positionSize > 0), abs(positionSize), _checkMaxPriceImpact) | |
686 | + | let exchangedQuoteAssetAmount = $t02866328937._1 | |
687 | + | let quoteAssetReserveAfter = $t02866328937._2 | |
688 | + | let baseAssetReserveAfter = $t02866328937._3 | |
689 | + | let totalPositionSizeAfter = $t02866328937._4 | |
690 | + | let totalLongAfter = $t02866328937._5 | |
691 | + | let totalShortAfter = $t02866328937._6 | |
692 | + | let openInterestNotionalAfter = (openInterestNotional() - positionOpenNotional) | |
693 | + | $Tuple13(exchangedPositionSize, badDebt, realizedPnl, marginToVault, quoteAssetReserveAfter, baseAssetReserveAfter, totalPositionSizeAfter, openInterestNotionalAfter, exchangedQuoteAssetAmount, totalLongAfter, totalShortAfter, (openInterestLong() - (if ((positionSize > 0)) | |
694 | + | then positionOpenNotional | |
695 | + | else 0)), (openInterestShort() - (if ((0 > positionSize)) | |
696 | + | then positionOpenNotional | |
697 | + | else 0))) | |
698 | + | } | |
699 | + | ||
700 | + | ||
701 | + | func getTwapSpotPrice () = { | |
702 | + | let minuteId = ((lastBlock.timestamp / 1000) / 60) | |
703 | + | let startMinuteId = (minuteId - TWAP_INTERVAL) | |
704 | + | let listStr = valueOrElse(getString(this, k_lastDataStr), "") | |
705 | + | let list = split(listStr, ",") | |
706 | + | func filterFn (accumulator,next) = if ((startMinuteId >= parseIntValue(next))) | |
707 | + | then (accumulator :+ parseIntValue(next)) | |
708 | + | else accumulator | |
709 | + | ||
710 | + | let listF = { | |
711 | + | let $l = list | |
712 | + | let $s = size($l) | |
713 | + | let $acc0 = nil | |
714 | + | func $f0_1 ($a,$i) = if (($i >= $s)) | |
715 | + | then $a | |
716 | + | else filterFn($a, $l[$i]) | |
717 | + | ||
718 | + | func $f0_2 ($a,$i) = if (($i >= $s)) | |
719 | + | then $a | |
720 | + | else throw("List size exceeds 20") | |
721 | + | ||
722 | + | $f0_2($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($f0_1($acc0, 0), 1), 2), 3), 4), 5), 6), 7), 8), 9), 10), 11), 12), 13), 14), 15), 16), 17), 18), 19), 20) | |
723 | + | } | |
724 | + | let maxIndex = if ((size(listF) > 0)) | |
725 | + | then max(listF) | |
726 | + | else parseIntValue(list[0]) | |
727 | + | let lastMinuteId = valueOrElse(getInteger(this, k_lastMinuteId), 0) | |
728 | + | let endLastCumulativePrice = valueOrElse(getInteger(this, ((k_twapDataLastCumulativePrice + "_") + toString(lastMinuteId))), 0) | |
729 | + | let endLastPrice = valueOrElse(getInteger(this, ((k_twapDataLastPrice + "_") + toString(lastMinuteId))), 0) | |
730 | + | let nowCumulativePrice = (endLastCumulativePrice + ((minuteId - lastMinuteId) * endLastPrice)) | |
731 | + | let startLastCumulativePrice = valueOrElse(getInteger(this, ((k_twapDataLastCumulativePrice + "_") + toString(maxIndex))), 0) | |
732 | + | let startLastPrice = valueOrElse(getInteger(this, ((k_twapDataLastPrice + "_") + toString(maxIndex))), 0) | |
733 | + | let startCumulativePrice = (startLastCumulativePrice + ((startMinuteId - maxIndex) * startLastPrice)) | |
734 | + | ((nowCumulativePrice - startCumulativePrice) / TWAP_INTERVAL) | |
735 | + | } | |
736 | + | ||
737 | + | ||
738 | + | func getTerminalAmmState () = { | |
739 | + | let _positionSize = totalPositionSize() | |
740 | + | if ((_positionSize == 0)) | |
741 | + | then $Tuple2(qtAstR(), bsAstR()) | |
742 | + | else { | |
743 | + | let direction = (_positionSize > 0) | |
744 | + | let $t03106031239 = swapOutput(direction, abs(_positionSize), false) | |
745 | + | let currentNetMarketValue = $t03106031239._1 | |
746 | + | let terminalQuoteAssetReserve = $t03106031239._2 | |
747 | + | let terminalBaseAssetReserve = $t03106031239._3 | |
748 | + | $Tuple2(terminalQuoteAssetReserve, terminalBaseAssetReserve) | |
749 | + | } | |
750 | + | } | |
751 | + | ||
752 | + | ||
753 | + | func getQuoteAssetWeight (baseAssetReserve,totalPositionSize,quoteAssetReserve,targetPrice) = { | |
754 | + | let b = toBigInt(baseAssetReserve) | |
755 | + | let sz = toBigInt(totalPositionSize) | |
756 | + | let q = toBigInt(quoteAssetReserve) | |
757 | + | let p = toBigInt(targetPrice) | |
758 | + | let bs2 = bpowd((b + sz), toBigInt((2 * DECIMAL_UNIT))) | |
759 | + | let qbs2 = bmuld(q, bs2) | |
760 | + | let ps4 = (toBigInt(4) * bmuld(p, sz)) | |
761 | + | let sqr = bsqrtd(bmuld(qbs2, (q - ps4))) | |
762 | + | let bq = bmuld(b, q) | |
763 | + | let qs = bmuld(q, sz) | |
764 | + | let top = ((-(sqr) + bq) + qs) | |
765 | + | let bot = (toBigInt(2) * bmuld(q, sz)) | |
766 | + | let result = bdivd(top, bot) | |
767 | + | toInt(result) | |
768 | + | } | |
769 | + | ||
770 | + | ||
771 | + | func getSyncTerminalPrice (_terminalPrice) = { | |
772 | + | let _positionSize = totalPositionSize() | |
773 | + | if ((_positionSize == 0)) | |
774 | + | then { | |
775 | + | let _qtAstR = qtAstR() | |
776 | + | let _bsAstR = bsAstR() | |
777 | + | let newQtAstW = divd(muld(_terminalPrice, _bsAstR), _qtAstR) | |
778 | + | $Tuple3(newQtAstW, DECIMAL_UNIT, 0) | |
779 | + | } | |
780 | + | else { | |
781 | + | let direction = (_positionSize > 0) | |
782 | + | let currentNetMarketValue = swapOutput(direction, abs(_positionSize), false)._1 | |
783 | + | let _qtAstR = qtAstR() | |
784 | + | let _bsAstR = bsAstR() | |
785 | + | let newQtAstW = getQuoteAssetWeight(_bsAstR, _positionSize, _qtAstR, _terminalPrice) | |
786 | + | let newBsAstW = DECIMAL_UNIT | |
787 | + | let marginToVault = getPositionNotionalAndUnrealizedPnlByValues(_positionSize, currentNetMarketValue, _qtAstR, newQtAstW, _bsAstR, newBsAstW, PNL_OPTION_SPOT)._2 | |
788 | + | $Tuple3(newQtAstW, newBsAstW, marginToVault) | |
789 | + | } | |
790 | + | } | |
791 | + | ||
792 | + | ||
793 | + | func getFunding () = { | |
794 | + | let underlyingPrice = getOracleTwapPrice() | |
795 | + | let spotTwapPrice = getTwapSpotPrice() | |
796 | + | let premium = (spotTwapPrice - underlyingPrice) | |
797 | + | if (if ((totalShortPositionSize() == 0)) | |
798 | + | then true | |
799 | + | else (totalLongPositionSize() == 0)) | |
800 | + | then $Tuple2(0, 0) | |
801 | + | else if ((0 > premium)) | |
802 | + | then { | |
803 | + | let shortPremiumFraction = divd(muld(premium, fundingPeriodDecimal()), ONE_DAY) | |
804 | + | let longPremiumFraction = divd(muld(shortPremiumFraction, totalShortPositionSize()), totalLongPositionSize()) | |
805 | + | $Tuple2(shortPremiumFraction, longPremiumFraction) | |
806 | + | } | |
807 | + | else { | |
808 | + | let longPremiumFraction = divd(muld(premium, fundingPeriodDecimal()), ONE_DAY) | |
809 | + | let shortPremiumFraction = divd(muld(longPremiumFraction, totalLongPositionSize()), totalShortPositionSize()) | |
810 | + | $Tuple2(shortPremiumFraction, longPremiumFraction) | |
811 | + | } | |
812 | + | } | |
813 | + | ||
814 | + | ||
815 | + | func getAdjustedFee (_artifactId,_baseFeeDiscount) = { | |
816 | + | let baseFeeRaw = fee() | |
817 | + | let baseFee = muld(baseFeeRaw, _baseFeeDiscount) | |
818 | + | let $t03433834833 = if ((_artifactId != "")) | |
819 | + | then { | |
820 | + | let artifactKind = strA(nftManagerAddress(), toCompositeKey(k_token_type, _artifactId)) | |
821 | + | if ((artifactKind == FEE_REDUCTION_TOKEN_TYPE)) | |
822 | + | then { | |
823 | + | let reduction = intA(nftManagerAddress(), toCompositeKey(k_token_param, _artifactId)) | |
824 | + | let adjustedFee = muld(baseFee, reduction) | |
825 | + | $Tuple2(adjustedFee, true) | |
826 | + | } | |
827 | + | else throw("Invalid attached artifact") | |
828 | + | } | |
829 | + | else $Tuple2(baseFee, false) | |
830 | + | let adjustedFee = $t03433834833._1 | |
831 | + | let burnArtifact = $t03433834833._2 | |
832 | + | $Tuple2(adjustedFee, burnArtifact) | |
833 | + | } | |
834 | + | ||
835 | + | ||
836 | + | func isSameAssetOrNoPosition (_trader,_assetId) = { | |
837 | + | let oldPositionSize = getPosition(_trader)._1 | |
838 | + | if ((oldPositionSize == 0)) | |
839 | + | then true | |
840 | + | else (getPositionAsset(_trader) == _assetId) | |
841 | + | } | |
842 | + | ||
843 | + | ||
844 | + | func isSameAsset (_trader,_assetId) = (getPositionAsset(_trader) == _assetId) | |
845 | + | ||
846 | + | ||
847 | + | func getBorrowedByTraderInMarketKey (_amm,_assetId,_trader) = ((((((k_trader_market_asset_collateral + "_") + _amm) + "_") + _assetId) + "_") + _trader) | |
848 | + | ||
849 | + | ||
850 | + | func getBorrowedByTrader (_trader) = { | |
851 | + | let positionAsset = getPositionAsset(_trader) | |
852 | + | if ((positionAsset == toBase58String(quoteAsset()))) | |
853 | + | then $Tuple2(0, positionAsset) | |
854 | + | else { | |
855 | + | let key = getBorrowedByTraderInMarketKey(toString(this), positionAsset, _trader) | |
856 | + | let borrow = valueOrElse(getInteger(collateralAddress(), key), 0) | |
857 | + | $Tuple2(borrow, positionAsset) | |
858 | + | } | |
859 | + | } | |
860 | + | ||
861 | + | ||
862 | + | func getForTraderWithArtifact (_trader,_artifactId) = { | |
863 | + | let doGetFeeDiscount = invoke(minerAddress(), "computeFeeDiscount", [_trader], nil) | |
864 | + | if ((doGetFeeDiscount == doGetFeeDiscount)) | |
865 | + | then { | |
866 | + | let feeDiscount = match doGetFeeDiscount { | |
867 | + | case x: Int => | |
868 | + | x | |
869 | + | case _ => | |
870 | + | throw("Invalid computeFeeDiscount result") | |
871 | + | } | |
872 | + | let $t03606436138 = getAdjustedFee(_artifactId, feeDiscount) | |
873 | + | let adjustedFee = $t03606436138._1 | |
874 | + | let burnArtifact = $t03606436138._2 | |
875 | + | $Tuple2(adjustedFee, burnArtifact) | |
876 | + | } | |
877 | + | else throw("Strict value is not equal to itself.") | |
878 | + | } | |
879 | + | ||
880 | + | ||
881 | + | func getArtifactId (i) = { | |
882 | + | let artifactId = if ((size(i.payments) > 1)) | |
883 | + | then toBase58String(valueOrErrorMessage(i.payments[1].assetId, "Invalid artifactId")) | |
884 | + | else "" | |
885 | + | artifactId | |
886 | + | } | |
887 | + | ||
888 | + | ||
889 | + | func distributeFee (_feeAmount) = { | |
890 | + | let feeToStakers = muld(_feeAmount, feeToStakersPercent()) | |
891 | + | let feeToVault = (_feeAmount - feeToStakers) | |
892 | + | $Tuple2(feeToStakers, feeToVault) | |
893 | + | } | |
894 | + | ||
895 | + | ||
896 | + | func updateSettings (_initMarginRatio,_mmr,_liquidationFeeRatio,_fundingPeriod,_fee,_spreadLimit,_maxPriceImpact,_partialLiquidationRatio,_maxPriceSpread,_maxOpenNotional,_feeToStakersPercent,_maxOracleDelay) = [IntegerEntry(k_initMarginRatio, _initMarginRatio), IntegerEntry(k_maintenanceMarginRatio, _mmr), IntegerEntry(k_liquidationFeeRatio, _liquidationFeeRatio), IntegerEntry(k_fundingPeriod, _fundingPeriod), IntegerEntry(k_fee, _fee), IntegerEntry(k_spreadLimit, _spreadLimit), IntegerEntry(k_maxPriceImpact, _maxPriceImpact), IntegerEntry(k_partialLiquidationRatio, _partialLiquidationRatio), IntegerEntry(k_maxPriceSpread, _maxPriceSpread), IntegerEntry(k_maxOpenNotional, _maxOpenNotional), IntegerEntry(k_feeToStakersPercent, _feeToStakersPercent), IntegerEntry(k_maxOracleDelay, _feeToStakersPercent)] | |
897 | + | ||
898 | + | ||
899 | + | func updateFunding (_nextFundingBlock,_latestLongCumulativePremiumFraction,_latestShortCumulativePremiumFraction,_longFundingRate,_shortFundingRate) = [IntegerEntry(k_nextFundingBlock, _nextFundingBlock), IntegerEntry(k_latestLongCumulativePremiumFraction, _latestLongCumulativePremiumFraction), IntegerEntry(k_latestShortCumulativePremiumFraction, _latestShortCumulativePremiumFraction), IntegerEntry(k_longFundingRate, _longFundingRate), IntegerEntry(k_shortFundingRate, _shortFundingRate)] | |
900 | + | ||
901 | + | ||
902 | + | func updatePositionAsset (_address,_assetId) = [StringEntry(toCompositeKey(k_positionAsset, _address), _assetId)] | |
903 | + | ||
904 | + | ||
905 | + | func incrementPositionSequenceNumber (isNewPosition,_address) = if (isNewPosition) | |
906 | + | then { | |
907 | + | let currentSequence = lastSequence() | |
908 | + | [IntegerEntry(toCompositeKey(k_positionSequence, _address), (currentSequence + 1)), IntegerEntry(k_sequence, (currentSequence + 1))] | |
909 | + | } | |
910 | + | else nil | |
911 | + | ||
912 | + | ||
913 | + | func updatePosition (_address,_size,_margin,_openNotional,_latestCumulativePremiumFraction) = [IntegerEntry(toCompositeKey(k_positionSize, _address), _size), IntegerEntry(toCompositeKey(k_positionMargin, _address), _margin), IntegerEntry(toCompositeKey(k_positionOpenNotional, _address), _openNotional), IntegerEntry(toCompositeKey(k_positionLastUpdatedCumulativePremiumFraction, _address), _latestCumulativePremiumFraction)] | |
914 | + | ||
915 | + | ||
916 | + | func appendTwap (_price) = { | |
917 | + | let minuteId = ((lastBlock.timestamp / 1000) / 60) | |
918 | + | let previousMinuteId = valueOrElse(getInteger(this, k_lastMinuteId), 0) | |
919 | + | if ((previousMinuteId > minuteId)) | |
920 | + | then throw("TWAP out-of-order") | |
921 | + | else { | |
922 | + | let lastMinuteId = if ((previousMinuteId == 0)) | |
923 | + | then minuteId | |
924 | + | else previousMinuteId | |
925 | + | if ((minuteId > previousMinuteId)) | |
926 | + | then { | |
927 | + | let prevCumulativePrice = valueOrElse(getInteger(this, ((k_twapDataLastCumulativePrice + "_") + toString(previousMinuteId))), 0) | |
928 | + | let prevPrice = valueOrElse(getInteger(this, ((k_twapDataLastPrice + "_") + toString(previousMinuteId))), _price) | |
929 | + | let lastCumulativePrice = (prevCumulativePrice + ((minuteId - lastMinuteId) * prevPrice)) | |
930 | + | let list = pushToQueue(strToList(valueOrElse(getString(this, k_lastDataStr), "")), TWAP_INTERVAL, toString(minuteId)) | |
931 | + | [IntegerEntry(toCompositeKey(k_twapDataLastCumulativePrice, toString(minuteId)), lastCumulativePrice), IntegerEntry(toCompositeKey(k_twapDataLastPrice, toString(minuteId)), _price), IntegerEntry(toCompositeKey(k_twapDataPreviousMinuteId, toString(minuteId)), previousMinuteId), IntegerEntry(k_lastMinuteId, minuteId), StringEntry(k_lastDataStr, listToStr(list))] | |
932 | + | } | |
933 | + | else { | |
934 | + | let twapDataPreviousMinuteId = valueOrElse(getInteger(this, toCompositeKey(k_twapDataPreviousMinuteId, toString(minuteId))), 0) | |
935 | + | let prevCumulativePrice = valueOrElse(getInteger(this, toCompositeKey(k_twapDataLastCumulativePrice, toString(twapDataPreviousMinuteId))), 0) | |
936 | + | let prevPrice = valueOrElse(getInteger(this, toCompositeKey(k_twapDataLastPrice, toString(twapDataPreviousMinuteId))), _price) | |
937 | + | let lastCumulativePrice = (prevCumulativePrice + ((minuteId - twapDataPreviousMinuteId) * prevPrice)) | |
938 | + | [IntegerEntry(toCompositeKey(k_twapDataLastCumulativePrice, toString(minuteId)), lastCumulativePrice), IntegerEntry(toCompositeKey(k_twapDataLastPrice, toString(minuteId)), _price)] | |
939 | + | } | |
940 | + | } | |
941 | + | } | |
942 | + | ||
943 | + | ||
944 | + | func updateAmmReserves (_qtAstR,_bsAstR) = [IntegerEntry(k_quoteAssetReserve, _qtAstR), IntegerEntry(k_baseAssetReserve, _bsAstR)] | |
945 | + | ||
946 | + | ||
947 | + | func updateAmmWeights (_qtAstW,_bsAstW) = [IntegerEntry(k_quoteAssetWeight, _qtAstW), IntegerEntry(k_baseAssetWeight, _bsAstW)] | |
948 | + | ||
949 | + | ||
950 | + | func updateAmm (_qtAstR,_bsAstR,_totalPositionSizeAfter,_openInterestNotional,_totalLongPositionSize,_totalShortPositionSize,_totalLongOpenNotional,_totalShortOpenNotional) = { | |
951 | + | let _qtAstW = qtAstW() | |
952 | + | let _bsAstW = bsAstW() | |
953 | + | if (((_totalLongPositionSize - _totalShortPositionSize) != _totalPositionSizeAfter)) | |
954 | + | then throw(((((("Invalid AMM state data: " + toString(_totalLongPositionSize)) + " + ") + toString(_totalShortPositionSize)) + " != ") + toString(_totalPositionSizeAfter))) | |
955 | + | else ((updateAmmReserves(_qtAstR, _bsAstR) ++ [IntegerEntry(k_totalPositionSize, _totalPositionSizeAfter), IntegerEntry(k_openInterestNotional, _openInterestNotional), IntegerEntry(k_totalLongPositionSize, _totalLongPositionSize), IntegerEntry(k_totalShortPositionSize, _totalShortPositionSize), IntegerEntry(k_openInterestLong, _totalLongOpenNotional), IntegerEntry(k_openInterestShort, _totalShortOpenNotional)]) ++ appendTwap(divd(muld(_qtAstR, _qtAstW), muld(_bsAstR, _bsAstW)))) | |
956 | + | } | |
957 | + | ||
958 | + | ||
959 | + | func deletePosition (_address) = [DeleteEntry(toCompositeKey(k_positionSize, _address)), DeleteEntry(toCompositeKey(k_positionMargin, _address)), DeleteEntry(toCompositeKey(k_positionOpenNotional, _address)), DeleteEntry(toCompositeKey(k_positionLastUpdatedCumulativePremiumFraction, _address)), DeleteEntry(toCompositeKey(k_positionAsset, _address))] | |
960 | + | ||
961 | + | ||
962 | + | func withdraw (_address,_amount) = { | |
963 | + | let balance = assetBalance(this, quoteAsset()) | |
964 | + | if ((_amount > balance)) | |
965 | + | then throw(((("Unable to withdraw " + toString(_amount)) + " from contract balance ") + toString(balance))) | |
966 | + | else [ScriptTransfer(_address, _amount, quoteAsset())] | |
967 | + | } | |
968 | + | ||
969 | + | ||
970 | + | func updateBalance (i) = if ((0 > i)) | |
971 | + | then throw("Balance") | |
972 | + | else [IntegerEntry(k_balance, i)] | |
973 | + | ||
974 | + | ||
975 | + | func transferFee (i) = [ScriptTransfer(stakingAddress(), i, quoteAsset())] | |
976 | + | ||
977 | + | ||
978 | + | func doBurnArtifact (_burnArtifact,i) = if (_burnArtifact) | |
979 | + | then [Burn(valueOrErrorMessage(i.payments[1].assetId, "Invalid artifact"), 1)] | |
980 | + | else nil | |
981 | + | ||
982 | + | ||
983 | + | @Callable(i) | |
984 | + | func pause () = if ((i.caller != adminAddress())) | |
985 | + | then throw("Invalid pause params") | |
986 | + | else [BooleanEntry(k_paused, true)] | |
987 | + | ||
988 | + | ||
989 | + | ||
990 | + | @Callable(i) | |
991 | + | func unpause () = if ((i.caller != adminAddress())) | |
992 | + | then throw("Invalid unpause params") | |
993 | + | else [BooleanEntry(k_paused, false)] | |
994 | + | ||
995 | + | ||
996 | + | ||
997 | + | @Callable(i) | |
998 | + | func setCloseOnly () = if ((i.caller != adminAddress())) | |
999 | + | then throw("Invalid setCloseOnly params") | |
1000 | + | else [BooleanEntry(k_closeOnly, true)] | |
1001 | + | ||
1002 | + | ||
1003 | + | ||
1004 | + | @Callable(i) | |
1005 | + | func unsetCloseOnly () = if ((i.caller != adminAddress())) | |
1006 | + | then throw("Invalid unsetCloseOnly params") | |
1007 | + | else [BooleanEntry(k_closeOnly, false)] | |
1008 | + | ||
1009 | + | ||
1010 | + | ||
1011 | + | @Callable(i) | |
1012 | + | func addLiquidity (_quoteAssetAmount) = if (if ((i.caller != adminAddress())) | |
1013 | + | then true | |
1014 | + | else (0 >= _quoteAssetAmount)) | |
1015 | + | then throw("Invalid addLiquidity params") | |
1016 | + | else { | |
1017 | + | let _qtAstR = qtAstR() | |
1018 | + | let _bsAstR = bsAstR() | |
1019 | + | let _qtAstW = qtAstW() | |
1020 | + | let _bsAstW = bsAstW() | |
1021 | + | let price = divd(muld(_qtAstR, _qtAstW), muld(_bsAstR, _bsAstW)) | |
1022 | + | let baseAssetAmountToAdd = divd(_quoteAssetAmount, price) | |
1023 | + | let qtAstRAfter = (_qtAstR + _quoteAssetAmount) | |
1024 | + | let bsAstRAfter = (_bsAstR + baseAssetAmountToAdd) | |
1025 | + | updateAmmReserves(qtAstRAfter, bsAstRAfter) | |
1026 | + | } | |
1027 | + | ||
1028 | + | ||
1029 | + | ||
1030 | + | @Callable(i) | |
1031 | + | func removeLiquidity (_quoteAssetAmount) = if (if ((i.caller != adminAddress())) | |
1032 | + | then true | |
1033 | + | else (0 >= _quoteAssetAmount)) | |
1034 | + | then throw("Invalid removeLiquidity params") | |
1035 | + | else { | |
1036 | + | let _qtAstR = qtAstR() | |
1037 | + | let _bsAstR = bsAstR() | |
1038 | + | let _qtAstW = qtAstW() | |
1039 | + | let _bsAstW = bsAstW() | |
1040 | + | let price = divd(muld(_qtAstR, _qtAstW), muld(_bsAstR, _bsAstW)) | |
1041 | + | let baseAssetAmountToRemove = divd(_quoteAssetAmount, price) | |
1042 | + | let qtAstRAfter = (_qtAstR - _quoteAssetAmount) | |
1043 | + | let bsAstRAfter = (_bsAstR - baseAssetAmountToRemove) | |
1044 | + | updateAmmReserves(qtAstRAfter, bsAstRAfter) | |
1045 | + | } | |
1046 | + | ||
1047 | + | ||
1048 | + | ||
1049 | + | @Callable(i) | |
1050 | + | func changeSettings (_initMarginRatio,_mmr,_liquidationFeeRatio,_fundingPeriod,_fee,_spreadLimit,_maxPriceImpact,_partialLiquidationRatio,_maxPriceSpread,_maxOpenNotional,_feeToStakersPercent,_maxOracleDelay) = if ((i.caller != adminAddress())) | |
1051 | + | then throw("Invalid changeSettings params") | |
1052 | + | else updateSettings(_initMarginRatio, _mmr, _liquidationFeeRatio, _fundingPeriod, _fee, _spreadLimit, _maxPriceImpact, _partialLiquidationRatio, _maxPriceSpread, _maxOpenNotional, _feeToStakersPercent, _maxOracleDelay) | |
1053 | + | ||
1054 | + | ||
1055 | + | ||
1056 | + | @Callable(i) | |
1057 | + | func initialize (_qtAstR,_bsAstR,_fundingPeriod,_initMarginRatio,_mmr,_liquidationFeeRatio,_fee,_oracle,_oracleKey,_oracleBlockKey,_coordinator,_spreadLimit,_maxPriceImpact,_partialLiquidationRatio,_maxPriceSpread,_maxOpenNotional,_feeToStakersPercent,_maxOracleDelay) = if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if ((0 >= _qtAstR)) | |
1058 | + | then true | |
1059 | + | else (0 >= _bsAstR)) | |
1060 | + | then true | |
1061 | + | else (0 >= _fundingPeriod)) | |
1062 | + | then true | |
1063 | + | else (0 >= _initMarginRatio)) | |
1064 | + | then true | |
1065 | + | else (0 >= _mmr)) | |
1066 | + | then true | |
1067 | + | else (0 >= _liquidationFeeRatio)) | |
1068 | + | then true | |
1069 | + | else (0 >= _fee)) | |
1070 | + | then true | |
1071 | + | else (0 >= _spreadLimit)) | |
1072 | + | then true | |
1073 | + | else (0 >= _maxPriceImpact)) | |
1074 | + | then true | |
1075 | + | else (0 >= _partialLiquidationRatio)) | |
1076 | + | then true | |
1077 | + | else (0 >= _maxPriceSpread)) | |
1078 | + | then true | |
1079 | + | else (0 >= _maxOpenNotional)) | |
1080 | + | then true | |
1081 | + | else (0 >= _feeToStakersPercent)) | |
1082 | + | then true | |
1083 | + | else (_feeToStakersPercent > DECIMAL_UNIT)) | |
1084 | + | then true | |
1085 | + | else (0 >= _maxOracleDelay)) | |
1086 | + | then true | |
1087 | + | else initialized()) | |
1088 | + | then throw("Invalid initialize parameters") | |
1089 | + | else ((((updateAmm(_qtAstR, _bsAstR, 0, 0, 0, 0, 0, 0) ++ updateSettings(_initMarginRatio, _mmr, _liquidationFeeRatio, _fundingPeriod, _fee, _spreadLimit, _maxPriceImpact, _partialLiquidationRatio, _maxPriceSpread, _maxOpenNotional, _feeToStakersPercent, _maxOracleDelay)) ++ updateFunding((lastBlock.timestamp + _fundingPeriod), 0, 0, 0, 0)) ++ updateBalance(0)) ++ [BooleanEntry(k_initialized, true), StringEntry(k_ora, _oracle), StringEntry(k_ora_key, _oracleKey), StringEntry(k_ora_block_key, _oracleBlockKey), StringEntry(k_coordinatorAddress, _coordinator)]) | |
1090 | + | ||
1091 | + | ||
1092 | + | ||
1093 | + | @Callable(i) | |
1094 | + | func decreasePosition (_amount,_leverage,_minBaseAssetAmount) = { | |
1095 | + | let sync = invoke(this, "syncTerminalPriceToOracle", nil, nil) | |
1096 | + | if ((sync == sync)) | |
1097 | + | then { | |
1098 | + | let _trader = getActualCaller(i) | |
1099 | + | if (if (if (if (if ((0 >= _amount)) | |
1100 | + | then true | |
1101 | + | else !(initialized())) | |
1102 | + | then true | |
1103 | + | else !(requireMoreMarginRatio(divd(DECIMAL_UNIT, _leverage), initMarginRatio(), true))) | |
1104 | + | then true | |
1105 | + | else !(requireOpenPosition(_trader))) | |
1106 | + | then true | |
1107 | + | else paused()) | |
1108 | + | then throw("Invalid decreasePosition parameters") | |
1109 | + | else { | |
1110 | + | let $t04867748817 = getPosition(_trader) | |
1111 | + | let oldPositionSize = $t04867748817._1 | |
1112 | + | let oldPositionMargin = $t04867748817._2 | |
1113 | + | let oldPositionOpenNotional = $t04867748817._3 | |
1114 | + | let oldPositionLstUpdCPF = $t04867748817._4 | |
1115 | + | let _direction = if ((oldPositionSize > 0)) | |
1116 | + | then DIR_SHORT | |
1117 | + | else DIR_LONG | |
1118 | + | let isAdd = (_direction == DIR_LONG) | |
1119 | + | let openNotional = muld(_amount, _leverage) | |
1120 | + | let $t04899049094 = getPositionNotionalAndUnrealizedPnl(_trader, PNL_OPTION_SPOT) | |
1121 | + | let oldPositionNotional = $t04899049094._1 | |
1122 | + | let unrealizedPnl = $t04899049094._2 | |
1123 | + | let $t04910051758 = if ((oldPositionNotional > openNotional)) | |
1124 | + | then { | |
1125 | + | let $t04951549699 = swapInput(isAdd, openNotional) | |
1126 | + | let exchangedPositionSize = $t04951549699._1 | |
1127 | + | let quoteAssetReserveAfter = $t04951549699._2 | |
1128 | + | let baseAssetReserveAfter = $t04951549699._3 | |
1129 | + | let totalPositionSizeAfter = $t04951549699._4 | |
1130 | + | let exchangedPositionSizeAbs = abs(exchangedPositionSize) | |
1131 | + | if (if ((_minBaseAssetAmount != 0)) | |
1132 | + | then (_minBaseAssetAmount > exchangedPositionSizeAbs) | |
1133 | + | else false) | |
1134 | + | then throw(((("Too little base asset exchanged, got " + toString(exchangedPositionSizeAbs)) + " expected ") + toString(_minBaseAssetAmount))) | |
1135 | + | else { | |
1136 | + | let realizedPnl = divd(muld(unrealizedPnl, exchangedPositionSizeAbs), abs(oldPositionSize)) | |
1137 | + | let $t05013650381 = calcRemainMarginWithFundingPayment(oldPositionSize, oldPositionMargin, oldPositionLstUpdCPF, realizedPnl) | |
1138 | + | let remainMargin = $t05013650381._1 | |
1139 | + | let badDebt = $t05013650381._2 | |
1140 | + | let fundingPayment = $t05013650381._3 | |
1141 | + | let exchangedQuoteAssetAmount = openNotional | |
1142 | + | let unrealizedPnlAfter = (unrealizedPnl - realizedPnl) | |
1143 | + | let remainOpenNotional = if ((oldPositionSize > 0)) | |
1144 | + | then ((oldPositionNotional - exchangedQuoteAssetAmount) - unrealizedPnlAfter) | |
1145 | + | else ((unrealizedPnlAfter + oldPositionNotional) - exchangedQuoteAssetAmount) | |
1146 | + | let newPositionSize = (oldPositionSize + exchangedPositionSize) | |
1147 | + | $Tuple12(newPositionSize, remainMargin, abs(remainOpenNotional), latestCumulativePremiumFraction(newPositionSize), baseAssetReserveAfter, quoteAssetReserveAfter, totalPositionSizeAfter, (openInterestNotional() - openNotional), (totalLongPositionSize() - (if ((newPositionSize > 0)) | |
1148 | + | then abs(exchangedPositionSize) | |
1149 | + | else 0)), (totalShortPositionSize() - (if ((0 > newPositionSize)) | |
1150 | + | then abs(exchangedPositionSize) | |
1151 | + | else 0)), (openInterestLong() - (if ((newPositionSize > 0)) | |
1152 | + | then openNotional | |
1153 | + | else 0)), (openInterestShort() - (if ((0 > newPositionSize)) | |
1154 | + | then openNotional | |
1155 | + | else 0))) | |
1156 | + | } | |
1157 | + | } | |
1158 | + | else throw("Close position first") | |
1159 | + | let newPositionSize = $t04910051758._1 | |
1160 | + | let newPositionRemainMargin = $t04910051758._2 | |
1161 | + | let newPositionOpenNotional = $t04910051758._3 | |
1162 | + | let newPositionLatestCPF = $t04910051758._4 | |
1163 | + | let baseAssetReserveAfter = $t04910051758._5 | |
1164 | + | let quoteAssetReserveAfter = $t04910051758._6 | |
1165 | + | let totalPositionSizeAfter = $t04910051758._7 | |
1166 | + | let openInterestNotionalAfter = $t04910051758._8 | |
1167 | + | let totalLongAfter = $t04910051758._9 | |
1168 | + | let totalShortAfter = $t04910051758._10 | |
1169 | + | let totalLongOpenInterestAfter = $t04910051758._11 | |
1170 | + | let totalShortOpenInterestAfter = $t04910051758._12 | |
1171 | + | let notifyNotional = invoke(minerAddress(), "notifyNotional", [_trader, newPositionOpenNotional], nil) | |
1172 | + | if ((notifyNotional == notifyNotional)) | |
1173 | + | then (updatePosition(_trader, newPositionSize, newPositionRemainMargin, newPositionOpenNotional, newPositionLatestCPF) ++ updateAmm(quoteAssetReserveAfter, baseAssetReserveAfter, totalPositionSizeAfter, openInterestNotionalAfter, totalLongAfter, totalShortAfter, totalLongOpenInterestAfter, totalShortOpenInterestAfter)) | |
1174 | + | else throw("Strict value is not equal to itself.") | |
1175 | + | } | |
1176 | + | } | |
1177 | + | else throw("Strict value is not equal to itself.") | |
1178 | + | } | |
1179 | + | ||
1180 | + | ||
1181 | + | ||
1182 | + | @Callable(i) | |
1183 | + | func increasePosition (_direction,_leverage,_minBaseAssetAmount,_refLink) = { | |
1184 | + | let sync = invoke(this, "syncTerminalPriceToOracle", nil, nil) | |
1185 | + | if ((sync == sync)) | |
1186 | + | then { | |
1187 | + | let _trader = getActualCaller(i) | |
1188 | + | let _rawAmount = i.payments[0].amount | |
1189 | + | let _assetId = i.payments[0].assetId | |
1190 | + | let _assetIdStr = toBase58String(value(_assetId)) | |
1191 | + | let isQuoteAsset = (_assetId == quoteAsset()) | |
1192 | + | let isCollateralAsset = isWhitelistAsset(_assetIdStr) | |
1193 | + | if (if (if (if (if (if (if (if (if ((_direction != DIR_LONG)) | |
1194 | + | then (_direction != DIR_SHORT) | |
1195 | + | else false) | |
1196 | + | then true | |
1197 | + | else (0 >= _rawAmount)) | |
1198 | + | then true | |
1199 | + | else !(initialized())) | |
1200 | + | then true | |
1201 | + | else if (!(isQuoteAsset)) | |
1202 | + | then !(isCollateralAsset) | |
1203 | + | else false) | |
1204 | + | then true | |
1205 | + | else !(isSameAssetOrNoPosition(_trader, _assetIdStr))) | |
1206 | + | then true | |
1207 | + | else !(requireMoreMarginRatio(divd(DECIMAL_UNIT, _leverage), initMarginRatio(), true))) | |
1208 | + | then true | |
1209 | + | else paused()) | |
1210 | + | then true | |
1211 | + | else closeOnly()) | |
1212 | + | then throw("Invalid increasePosition parameters") | |
1213 | + | else { | |
1214 | + | let $t05319653281 = getForTraderWithArtifact(_trader, getArtifactId(i)) | |
1215 | + | let adjustedFee = $t05319653281._1 | |
1216 | + | let burnArtifact = $t05319653281._2 | |
1217 | + | let rawFeeAmount = muld(_rawAmount, adjustedFee) | |
1218 | + | let _amount = (_rawAmount - rawFeeAmount) | |
1219 | + | let distributeFeeAmount = if (isCollateralAsset) | |
1220 | + | then { | |
1221 | + | let doBorrow = invoke(collateralAddress(), "borrow", [_trader], [AttachedPayment(_assetId, _amount)]) | |
1222 | + | if ((doBorrow == doBorrow)) | |
1223 | + | then { | |
1224 | + | let balanceBefore = assetBalance(this, quoteAsset()) | |
1225 | + | if ((balanceBefore == balanceBefore)) | |
1226 | + | then { | |
1227 | + | let doSwap = invoke(swapAddress(), "swap", [toBase58String(quoteAsset()), 0], [AttachedPayment(_assetId, rawFeeAmount)]) | |
1228 | + | if ((doSwap == doSwap)) | |
1229 | + | then { | |
1230 | + | let balanceAfter = assetBalance(this, quoteAsset()) | |
1231 | + | if ((balanceAfter == balanceAfter)) | |
1232 | + | then { | |
1233 | + | let exchangedAmount = (balanceAfter - balanceBefore) | |
1234 | + | if ((exchangedAmount == exchangedAmount)) | |
1235 | + | then exchangedAmount | |
1236 | + | else throw("Strict value is not equal to itself.") | |
1237 | + | } | |
1238 | + | else throw("Strict value is not equal to itself.") | |
1239 | + | } | |
1240 | + | else throw("Strict value is not equal to itself.") | |
1241 | + | } | |
1242 | + | else throw("Strict value is not equal to itself.") | |
1243 | + | } | |
1244 | + | else throw("Strict value is not equal to itself.") | |
1245 | + | } | |
1246 | + | else rawFeeAmount | |
1247 | + | if ((distributeFeeAmount == distributeFeeAmount)) | |
1248 | + | then { | |
1249 | + | let referrerFeeAny = invoke(referralAddress(), "acceptPaymentWithLink", [_trader, _refLink], [AttachedPayment(quoteAsset(), distributeFeeAmount)]) | |
1250 | + | if ((referrerFeeAny == referrerFeeAny)) | |
1251 | + | then { | |
1252 | + | let referrerFee = match referrerFeeAny { | |
1253 | + | case x: Int => | |
1254 | + | x | |
1255 | + | case _ => | |
1256 | + | throw("Invalid referrerFee") | |
1257 | + | } | |
1258 | + | let feeAmount = (distributeFeeAmount - referrerFee) | |
1259 | + | let $t05459754737 = getPosition(_trader) | |
1260 | + | let oldPositionSize = $t05459754737._1 | |
1261 | + | let oldPositionMargin = $t05459754737._2 | |
1262 | + | let oldPositionOpenNotional = $t05459754737._3 | |
1263 | + | let oldPositionLstUpdCPF = $t05459754737._4 | |
1264 | + | let isNewPosition = (oldPositionSize == 0) | |
1265 | + | let isSameDirection = if ((oldPositionSize > 0)) | |
1266 | + | then (_direction == DIR_LONG) | |
1267 | + | else (_direction == DIR_SHORT) | |
1268 | + | let expandExisting = if (!(isNewPosition)) | |
1269 | + | then isSameDirection | |
1270 | + | else false | |
1271 | + | let isAdd = (_direction == DIR_LONG) | |
1272 | + | let $t05502658067 = if (if (isNewPosition) | |
1273 | + | then true | |
1274 | + | else expandExisting) | |
1275 | + | then { | |
1276 | + | let openNotional = muld(_amount, _leverage) | |
1277 | + | let $t05548855661 = swapInput(isAdd, openNotional) | |
1278 | + | let amountBaseAssetBought = $t05548855661._1 | |
1279 | + | let quoteAssetReserveAfter = $t05548855661._2 | |
1280 | + | let baseAssetReserveAfter = $t05548855661._3 | |
1281 | + | let totalPositionSizeAfter = $t05548855661._4 | |
1282 | + | if (if ((_minBaseAssetAmount != 0)) | |
1283 | + | then (_minBaseAssetAmount > abs(amountBaseAssetBought)) | |
1284 | + | else false) | |
1285 | + | then throw(((("Limit error: " + toString(abs(amountBaseAssetBought))) + " < ") + toString(_minBaseAssetAmount))) | |
1286 | + | else { | |
1287 | + | let newPositionSize = (oldPositionSize + amountBaseAssetBought) | |
1288 | + | let totalLongOpenInterestAfter = (openInterestLong() + (if ((newPositionSize > 0)) | |
1289 | + | then openNotional | |
1290 | + | else 0)) | |
1291 | + | let totalShortOpenInterestAfter = (openInterestShort() + (if ((0 > newPositionSize)) | |
1292 | + | then openNotional | |
1293 | + | else 0)) | |
1294 | + | let increaseMarginRequirement = divd(openNotional, _leverage) | |
1295 | + | let $t05626956508 = calcRemainMarginWithFundingPayment(oldPositionSize, oldPositionMargin, oldPositionLstUpdCPF, increaseMarginRequirement) | |
1296 | + | let remainMargin = $t05626956508._1 | |
1297 | + | let x1 = $t05626956508._2 | |
1298 | + | let x2 = $t05626956508._3 | |
1299 | + | if (!(requireNotOverSpreadLimit(quoteAssetReserveAfter, baseAssetReserveAfter))) | |
1300 | + | then throw("Over max spread limit") | |
1301 | + | else if (!(requireNotOverMaxOpenNotional(totalLongOpenInterestAfter, totalShortOpenInterestAfter))) | |
1302 | + | then throw("Over max open notional") | |
1303 | + | else $Tuple12(newPositionSize, remainMargin, (oldPositionOpenNotional + openNotional), latestCumulativePremiumFraction(newPositionSize), baseAssetReserveAfter, quoteAssetReserveAfter, totalPositionSizeAfter, (openInterestNotional() + openNotional), (totalLongPositionSize() + (if ((newPositionSize > 0)) | |
1304 | + | then abs(amountBaseAssetBought) | |
1305 | + | else 0)), (totalShortPositionSize() + (if ((0 > newPositionSize)) | |
1306 | + | then abs(amountBaseAssetBought) | |
1307 | + | else 0)), totalLongOpenInterestAfter, totalShortOpenInterestAfter) | |
1308 | + | } | |
1309 | + | } | |
1310 | + | else { | |
1311 | + | let openNotional = muld(_amount, _leverage) | |
1312 | + | let $t05776757883 = getPositionNotionalAndUnrealizedPnl(toString(i.caller), PNL_OPTION_SPOT) | |
1313 | + | let oldPositionNotional = $t05776757883._1 | |
1314 | + | let unrealizedPnl = $t05776757883._2 | |
1315 | + | if ((oldPositionNotional > openNotional)) | |
1316 | + | then throw("Use decreasePosition to decrease position size") | |
1317 | + | else throw("Close position first") | |
1318 | + | } | |
1319 | + | let newPositionSize = $t05502658067._1 | |
1320 | + | let newPositionRemainMargin = $t05502658067._2 | |
1321 | + | let newPositionOpenNotional = $t05502658067._3 | |
1322 | + | let newPositionLatestCPF = $t05502658067._4 | |
1323 | + | let baseAssetReserveAfter = $t05502658067._5 | |
1324 | + | let quoteAssetReserveAfter = $t05502658067._6 | |
1325 | + | let totalPositionSizeAfter = $t05502658067._7 | |
1326 | + | let openInterestNotionalAfter = $t05502658067._8 | |
1327 | + | let totalLongAfter = $t05502658067._9 | |
1328 | + | let totalShortAfter = $t05502658067._10 | |
1329 | + | let totalLongOpenInterestAfter = $t05502658067._11 | |
1330 | + | let totalShortOpenInterestAfter = $t05502658067._12 | |
1331 | + | let $t05807358130 = distributeFee(feeAmount) | |
1332 | + | let feeToStakers = $t05807358130._1 | |
1333 | + | let feeToVault = $t05807358130._2 | |
1334 | + | let stake = if (isQuoteAsset) | |
1335 | + | then { | |
1336 | + | let stake = invoke(vaultAddress(), "addLocked", [false], [AttachedPayment(quoteAsset(), _amount)]) | |
1337 | + | if ((stake == stake)) | |
1338 | + | then nil | |
1339 | + | else throw("Strict value is not equal to itself.") | |
1340 | + | } | |
1341 | + | else nil | |
1342 | + | if ((stake == stake)) | |
1343 | + | then { | |
1344 | + | let depositInsurance = invoke(vaultAddress(), "addFree", nil, [AttachedPayment(quoteAsset(), feeToVault)]) | |
1345 | + | if ((depositInsurance == depositInsurance)) | |
1346 | + | then { | |
1347 | + | let notifyFee = invoke(minerAddress(), "notifyFees", [_trader, feeAmount], nil) | |
1348 | + | if ((notifyFee == notifyFee)) | |
1349 | + | then { | |
1350 | + | let notifyNotional = invoke(minerAddress(), "notifyNotional", [_trader, newPositionOpenNotional], nil) | |
1351 | + | if ((notifyNotional == notifyNotional)) | |
1352 | + | then ((((((updatePosition(_trader, newPositionSize, newPositionRemainMargin, newPositionOpenNotional, newPositionLatestCPF) ++ incrementPositionSequenceNumber(isNewPosition, _trader)) ++ updatePositionAsset(_trader, _assetIdStr)) ++ updateAmm(quoteAssetReserveAfter, baseAssetReserveAfter, totalPositionSizeAfter, openInterestNotionalAfter, totalLongAfter, totalShortAfter, totalLongOpenInterestAfter, totalShortOpenInterestAfter)) ++ transferFee(feeToStakers)) ++ updateBalance((cbalance() + _amount))) ++ doBurnArtifact(burnArtifact, i)) | |
1353 | + | else throw("Strict value is not equal to itself.") | |
1354 | + | } | |
1355 | + | else throw("Strict value is not equal to itself.") | |
1356 | + | } | |
1357 | + | else throw("Strict value is not equal to itself.") | |
1358 | + | } | |
1359 | + | else throw("Strict value is not equal to itself.") | |
1360 | + | } | |
1361 | + | else throw("Strict value is not equal to itself.") | |
1362 | + | } | |
1363 | + | else throw("Strict value is not equal to itself.") | |
1364 | + | } | |
1365 | + | } | |
1366 | + | else throw("Strict value is not equal to itself.") | |
1367 | + | } | |
1368 | + | ||
1369 | + | ||
1370 | + | ||
1371 | + | @Callable(i) | |
1372 | + | func addMargin () = { | |
1373 | + | let sync = invoke(this, "syncTerminalPriceToOracle", nil, nil) | |
1374 | + | if ((sync == sync)) | |
1375 | + | then { | |
1376 | + | let _trader = toString(i.caller) | |
1377 | + | let _rawAmount = i.payments[0].amount | |
1378 | + | let _assetId = i.payments[0].assetId | |
1379 | + | let _assetIdStr = toBase58String(value(_assetId)) | |
1380 | + | let isQuoteAsset = (_assetId == quoteAsset()) | |
1381 | + | let isCollateralAsset = isWhitelistAsset(_assetIdStr) | |
1382 | + | if (if (if (if (if (if (if (!(isQuoteAsset)) | |
1383 | + | then !(isCollateralAsset) | |
1384 | + | else false) | |
1385 | + | then true | |
1386 | + | else !(requireOpenPosition(toString(i.caller)))) | |
1387 | + | then true | |
1388 | + | else !(isSameAsset(_trader, _assetIdStr))) | |
1389 | + | then true | |
1390 | + | else !(initialized())) | |
1391 | + | then true | |
1392 | + | else paused()) | |
1393 | + | then true | |
1394 | + | else closeOnly()) | |
1395 | + | then throw("Invalid addMargin parameters") | |
1396 | + | else { | |
1397 | + | let $t06007860163 = getForTraderWithArtifact(_trader, getArtifactId(i)) | |
1398 | + | let adjustedFee = $t06007860163._1 | |
1399 | + | let burnArtifact = $t06007860163._2 | |
1400 | + | let rawFeeAmount = muld(_rawAmount, adjustedFee) | |
1401 | + | let _amount = (_rawAmount - rawFeeAmount) | |
1402 | + | let distributeFeeAmount = if (isCollateralAsset) | |
1403 | + | then { | |
1404 | + | let doBorrow = invoke(collateralAddress(), "borrow", [_trader], [AttachedPayment(_assetId, _amount)]) | |
1405 | + | if ((doBorrow == doBorrow)) | |
1406 | + | then { | |
1407 | + | let balanceBefore = assetBalance(this, quoteAsset()) | |
1408 | + | if ((balanceBefore == balanceBefore)) | |
1409 | + | then { | |
1410 | + | let doSwap = invoke(swapAddress(), "swap", [toBase58String(quoteAsset()), 0], [AttachedPayment(_assetId, rawFeeAmount)]) | |
1411 | + | if ((doSwap == doSwap)) | |
1412 | + | then { | |
1413 | + | let balanceAfter = assetBalance(this, quoteAsset()) | |
1414 | + | if ((balanceAfter == balanceAfter)) | |
1415 | + | then { | |
1416 | + | let exchangedAmount = (balanceAfter - balanceBefore) | |
1417 | + | if ((exchangedAmount == exchangedAmount)) | |
1418 | + | then exchangedAmount | |
1419 | + | else throw("Strict value is not equal to itself.") | |
1420 | + | } | |
1421 | + | else throw("Strict value is not equal to itself.") | |
1422 | + | } | |
1423 | + | else throw("Strict value is not equal to itself.") | |
1424 | + | } | |
1425 | + | else throw("Strict value is not equal to itself.") | |
1426 | + | } | |
1427 | + | else throw("Strict value is not equal to itself.") | |
1428 | + | } | |
1429 | + | else rawFeeAmount | |
1430 | + | if ((distributeFeeAmount == distributeFeeAmount)) | |
1431 | + | then { | |
1432 | + | let referrerFeeAny = invoke(referralAddress(), "acceptPayment", [_trader], [AttachedPayment(quoteAsset(), distributeFeeAmount)]) | |
1433 | + | if ((referrerFeeAny == referrerFeeAny)) | |
1434 | + | then { | |
1435 | + | let referrerFee = match referrerFeeAny { | |
1436 | + | case x: Int => | |
1437 | + | x | |
1438 | + | case _ => | |
1439 | + | throw("Invalid referrerFee") | |
1440 | + | } | |
1441 | + | let feeAmount = (distributeFeeAmount - referrerFee) | |
1442 | + | let $t06146261602 = getPosition(_trader) | |
1443 | + | let oldPositionSize = $t06146261602._1 | |
1444 | + | let oldPositionMargin = $t06146261602._2 | |
1445 | + | let oldPositionOpenNotional = $t06146261602._3 | |
1446 | + | let oldPositionLstUpdCPF = $t06146261602._4 | |
1447 | + | let $t06160861665 = distributeFee(feeAmount) | |
1448 | + | let feeToStakers = $t06160861665._1 | |
1449 | + | let feeToVault = $t06160861665._2 | |
1450 | + | let stake = if (isQuoteAsset) | |
1451 | + | then { | |
1452 | + | let stake = invoke(vaultAddress(), "addLocked", [false], [AttachedPayment(quoteAsset(), _amount)]) | |
1453 | + | if ((stake == stake)) | |
1454 | + | then nil | |
1455 | + | else throw("Strict value is not equal to itself.") | |
1456 | + | } | |
1457 | + | else nil | |
1458 | + | if ((stake == stake)) | |
1459 | + | then { | |
1460 | + | let depositInsurance = invoke(vaultAddress(), "addFree", nil, [AttachedPayment(quoteAsset(), feeToVault)]) | |
1461 | + | if ((depositInsurance == depositInsurance)) | |
1462 | + | then { | |
1463 | + | let notifyFee = invoke(minerAddress(), "notifyFees", [_trader, feeAmount], nil) | |
1464 | + | if ((notifyFee == notifyFee)) | |
1465 | + | then (((updatePosition(_trader, oldPositionSize, (oldPositionMargin + _amount), oldPositionOpenNotional, oldPositionLstUpdCPF) ++ transferFee(feeToStakers)) ++ updateBalance((cbalance() + _amount))) ++ doBurnArtifact(burnArtifact, i)) | |
1466 | + | else throw("Strict value is not equal to itself.") | |
1467 | + | } | |
1468 | + | else throw("Strict value is not equal to itself.") | |
1469 | + | } | |
1470 | + | else throw("Strict value is not equal to itself.") | |
1471 | + | } | |
1472 | + | else throw("Strict value is not equal to itself.") | |
1473 | + | } | |
1474 | + | else throw("Strict value is not equal to itself.") | |
1475 | + | } | |
1476 | + | } | |
1477 | + | else throw("Strict value is not equal to itself.") | |
1478 | + | } | |
1479 | + | ||
1480 | + | ||
1481 | + | ||
1482 | + | @Callable(i) | |
1483 | + | func removeMargin (_amount) = { | |
1484 | + | let sync = invoke(this, "syncTerminalPriceToOracle", nil, nil) | |
1485 | + | if ((sync == sync)) | |
1486 | + | then { | |
1487 | + | let _trader = toString(i.caller) | |
1488 | + | if (if (if (if ((0 >= _amount)) | |
1489 | + | then true | |
1490 | + | else !(requireOpenPosition(_trader))) | |
1491 | + | then true | |
1492 | + | else !(initialized())) | |
1493 | + | then true | |
1494 | + | else paused()) | |
1495 | + | then throw("Invalid removeMargin parameters") | |
1496 | + | else { | |
1497 | + | let $t06277762917 = getPosition(_trader) | |
1498 | + | let oldPositionSize = $t06277762917._1 | |
1499 | + | let oldPositionMargin = $t06277762917._2 | |
1500 | + | let oldPositionOpenNotional = $t06277762917._3 | |
1501 | + | let oldPositionLstUpdCPF = $t06277762917._4 | |
1502 | + | let marginDelta = -(_amount) | |
1503 | + | let $t06295463133 = calcRemainMarginWithFundingPayment(oldPositionSize, oldPositionMargin, oldPositionLstUpdCPF, marginDelta) | |
1504 | + | let remainMargin = $t06295463133._1 | |
1505 | + | let badDebt = $t06295463133._2 | |
1506 | + | if ((badDebt != 0)) | |
1507 | + | then throw("Invalid removed margin amount") | |
1508 | + | else { | |
1509 | + | let marginRatio = calcMarginRatio(remainMargin, badDebt, oldPositionOpenNotional) | |
1510 | + | if (!(requireMoreMarginRatio(marginRatio, initMarginRatio(), true))) | |
1511 | + | then throw(((("Too much margin removed: " + toString(marginRatio)) + " < ") + toString(initMarginRatio()))) | |
1512 | + | else { | |
1513 | + | let quoteAssetStr = toBase58String(quoteAsset()) | |
1514 | + | let $t06357763631 = getBorrowedByTrader(_trader) | |
1515 | + | let borrowed = $t06357763631._1 | |
1516 | + | let assetId = $t06357763631._2 | |
1517 | + | let toRepay = if ((_amount > borrowed)) | |
1518 | + | then borrowed | |
1519 | + | else _amount | |
1520 | + | let toWithdraw = if ((borrowed > _amount)) | |
1521 | + | then 0 | |
1522 | + | else (_amount - borrowed) | |
1523 | + | let finalBorrow = (borrowed - toRepay) | |
1524 | + | let switchPositionToQuote = if ((finalBorrow > 0)) | |
1525 | + | then nil | |
1526 | + | else updatePositionAsset(_trader, quoteAssetStr) | |
1527 | + | let doSanityCheck = if (((toRepay + toWithdraw) != _amount)) | |
1528 | + | then throw(((((("toRepay=" + toString(toRepay)) + " + toWithdraw=") + toString(toWithdraw)) + " != ") + toString(_amount))) | |
1529 | + | else nil | |
1530 | + | if ((doSanityCheck == doSanityCheck)) | |
1531 | + | then { | |
1532 | + | let doUnstake = if ((toWithdraw > 0)) | |
1533 | + | then { | |
1534 | + | let doUnstake = invoke(vaultAddress(), "withdrawLocked", [toWithdraw], nil) | |
1535 | + | if ((doUnstake == doUnstake)) | |
1536 | + | then nil | |
1537 | + | else throw("Strict value is not equal to itself.") | |
1538 | + | } | |
1539 | + | else nil | |
1540 | + | if ((doUnstake == doUnstake)) | |
1541 | + | then { | |
1542 | + | let returnCollateralAction = if ((toRepay > 0)) | |
1543 | + | then { | |
1544 | + | let doRepay = invoke(collateralAddress(), "repay", [_trader, toRepay, assetId], nil) | |
1545 | + | if ((doRepay == doRepay)) | |
1546 | + | then [ScriptTransfer(i.caller, toRepay, fromBase58String(assetId))] | |
1547 | + | else throw("Strict value is not equal to itself.") | |
1548 | + | } | |
1549 | + | else nil | |
1550 | + | if ((returnCollateralAction == returnCollateralAction)) | |
1551 | + | then ((((updatePosition(_trader, oldPositionSize, remainMargin, oldPositionOpenNotional, latestCumulativePremiumFraction(oldPositionSize)) ++ (if ((toWithdraw > 0)) | |
1552 | + | then withdraw(i.caller, toWithdraw) | |
1553 | + | else nil)) ++ updateBalance((cbalance() - _amount))) ++ switchPositionToQuote) ++ returnCollateralAction) | |
1554 | + | else throw("Strict value is not equal to itself.") | |
1555 | + | } | |
1556 | + | else throw("Strict value is not equal to itself.") | |
1557 | + | } | |
1558 | + | else throw("Strict value is not equal to itself.") | |
1559 | + | } | |
1560 | + | } | |
1561 | + | } | |
1562 | + | } | |
1563 | + | else throw("Strict value is not equal to itself.") | |
1564 | + | } | |
1565 | + | ||
1566 | + | ||
1567 | + | ||
1568 | + | @Callable(i) | |
1569 | + | func closePosition (_size,_minQuoteAssetAmount) = { | |
1570 | + | let sync = invoke(this, "syncTerminalPriceToOracle", nil, nil) | |
1571 | + | if ((sync == sync)) | |
1572 | + | then { | |
1573 | + | let _trader = getActualCaller(i) | |
1574 | + | let _traderAddress = valueOrErrorMessage(addressFromString(_trader), "Invalid caller") | |
1575 | + | if (if (if (if (if (!(requireOpenPosition(_trader))) | |
1576 | + | then true | |
1577 | + | else !(initialized())) | |
1578 | + | then true | |
1579 | + | else paused()) | |
1580 | + | then true | |
1581 | + | else (0 >= _size)) | |
1582 | + | then true | |
1583 | + | else (0 > _minQuoteAssetAmount)) | |
1584 | + | then throw("Invalid closePosition parameters") | |
1585 | + | else { | |
1586 | + | let $t06578965929 = getPosition(_trader) | |
1587 | + | let oldPositionSize = $t06578965929._1 | |
1588 | + | let oldPositionMargin = $t06578965929._2 | |
1589 | + | let oldPositionOpenNotional = $t06578965929._3 | |
1590 | + | let oldPositionLstUpdCPF = $t06578965929._4 | |
1591 | + | let $t06593570372 = if ((abs(oldPositionSize) > _size)) | |
1592 | + | then { | |
1593 | + | let _direction = if ((oldPositionSize > 0)) | |
1594 | + | then DIR_SHORT | |
1595 | + | else DIR_LONG | |
1596 | + | let isAdd = (_direction == DIR_LONG) | |
1597 | + | let $t06652666748 = swapOutput((oldPositionSize > 0), _size, true) | |
1598 | + | let exchangedQuoteAssetAmount = $t06652666748._1 | |
1599 | + | let quoteAssetReserveAfter = $t06652666748._2 | |
1600 | + | let baseAssetReserveAfter = $t06652666748._3 | |
1601 | + | let totalPositionSizeAfter = $t06652666748._4 | |
1602 | + | let exchangedPositionSize = if ((oldPositionSize > 0)) | |
1603 | + | then -(_size) | |
1604 | + | else _size | |
1605 | + | let $t06683966993 = getPositionNotionalAndUnrealizedPnl(_trader, PNL_OPTION_SPOT) | |
1606 | + | let oldPositionNotional = $t06683966993._1 | |
1607 | + | let unrealizedPnl = $t06683966993._2 | |
1608 | + | let mr = getMarginRatioByOption(_trader, PNL_OPTION_SPOT) | |
1609 | + | let realizedRatio = divd(abs(exchangedPositionSize), abs(oldPositionSize)) | |
1610 | + | let realizedPnl = muld(unrealizedPnl, realizedRatio) | |
1611 | + | let $t06727267510 = calcRemainMarginWithFundingPayment(oldPositionSize, oldPositionMargin, oldPositionLstUpdCPF, realizedPnl) | |
1612 | + | let remainMargin = $t06727267510._1 | |
1613 | + | let positionBadDebt = $t06727267510._2 | |
1614 | + | let fundingPayment = $t06727267510._3 | |
1615 | + | let unrealizedPnlAfter = (unrealizedPnl - realizedPnl) | |
1616 | + | let remainOpenNotional = if ((oldPositionSize > 0)) | |
1617 | + | then ((oldPositionNotional - exchangedQuoteAssetAmount) - unrealizedPnlAfter) | |
1618 | + | else ((unrealizedPnlAfter + oldPositionNotional) - exchangedQuoteAssetAmount) | |
1619 | + | let newPositionOpenNotional = abs(remainOpenNotional) | |
1620 | + | let newPositionMargin = muld(newPositionOpenNotional, mr) | |
1621 | + | let newPositionSize = (oldPositionSize + exchangedPositionSize) | |
1622 | + | let newPositionLstUpdCPF = latestCumulativePremiumFraction(newPositionSize) | |
1623 | + | let openInterestNotionalAfter = (openInterestNotional() - exchangedQuoteAssetAmount) | |
1624 | + | if (if ((_minQuoteAssetAmount != 0)) | |
1625 | + | then (_minQuoteAssetAmount > exchangedQuoteAssetAmount) | |
1626 | + | else false) | |
1627 | + | then throw(((("Limit error: " + toString(exchangedQuoteAssetAmount)) + " < ") + toString(_minQuoteAssetAmount))) | |
1628 | + | else $Tuple15(newPositionSize, newPositionMargin, newPositionOpenNotional, newPositionLstUpdCPF, positionBadDebt, realizedPnl, (abs((remainMargin - newPositionMargin)) + realizedPnl), quoteAssetReserveAfter, baseAssetReserveAfter, totalPositionSizeAfter, openInterestNotionalAfter, (totalLongPositionSize() - (if ((newPositionSize > 0)) | |
1629 | + | then abs(exchangedPositionSize) | |
1630 | + | else 0)), (totalShortPositionSize() - (if ((0 > newPositionSize)) | |
1631 | + | then abs(exchangedPositionSize) | |
1632 | + | else 0)), (openInterestLong() - (if ((newPositionSize > 0)) | |
1633 | + | then exchangedQuoteAssetAmount | |
1634 | + | else 0)), (openInterestShort() - (if ((0 > newPositionSize)) | |
1635 | + | then exchangedQuoteAssetAmount | |
1636 | + | else 0))) | |
1637 | + | } | |
1638 | + | else if ((_size > abs(oldPositionSize))) | |
1639 | + | then throw("Invalid closePosition parameters") | |
1640 | + | else { | |
1641 | + | let $t06931369732 = internalClosePosition(_trader, true) | |
1642 | + | let exchangedQuoteAssetAmount = $t06931369732._1 | |
1643 | + | let positionBadDebt = $t06931369732._2 | |
1644 | + | let realizedPnl = $t06931369732._3 | |
1645 | + | let marginToVault = $t06931369732._4 | |
1646 | + | let quoteAssetReserveAfter = $t06931369732._5 | |
1647 | + | let baseAssetReserveAfter = $t06931369732._6 | |
1648 | + | let totalPositionSizeAfter = $t06931369732._7 | |
1649 | + | let openInterestNotionalAfter = $t06931369732._8 | |
1650 | + | let x2 = $t06931369732._9 | |
1651 | + | let totalLongAfter = $t06931369732._10 | |
1652 | + | let totalShortAfter = $t06931369732._11 | |
1653 | + | let totalLongOpenInterestAfter = $t06931369732._12 | |
1654 | + | let totalShortOpenInterestAfter = $t06931369732._13 | |
1655 | + | if (if ((_minQuoteAssetAmount != 0)) | |
1656 | + | then (_minQuoteAssetAmount > exchangedQuoteAssetAmount) | |
1657 | + | else false) | |
1658 | + | then throw(((("Limit error: " + toString(exchangedQuoteAssetAmount)) + " < ") + toString(_minQuoteAssetAmount))) | |
1659 | + | else $Tuple15(0, 0, 0, 0, positionBadDebt, realizedPnl, marginToVault, quoteAssetReserveAfter, baseAssetReserveAfter, totalPositionSizeAfter, openInterestNotionalAfter, totalLongAfter, totalShortAfter, totalLongOpenInterestAfter, totalShortOpenInterestAfter) | |
1660 | + | } | |
1661 | + | let newPositionSize = $t06593570372._1 | |
1662 | + | let newPositionMargin = $t06593570372._2 | |
1663 | + | let newPositionOpenNotional = $t06593570372._3 | |
1664 | + | let newPositionLstUpdCPF = $t06593570372._4 | |
1665 | + | let positionBadDebt = $t06593570372._5 | |
1666 | + | let realizedPnl = $t06593570372._6 | |
1667 | + | let marginToVault = $t06593570372._7 | |
1668 | + | let quoteAssetReserveAfter = $t06593570372._8 | |
1669 | + | let baseAssetReserveAfter = $t06593570372._9 | |
1670 | + | let totalPositionSizeAfter = $t06593570372._10 | |
1671 | + | let openInterestNotionalAfter = $t06593570372._11 | |
1672 | + | let totalLongAfter = $t06593570372._12 | |
1673 | + | let totalShortAfter = $t06593570372._13 | |
1674 | + | let totalLongOpenInterestAfter = $t06593570372._14 | |
1675 | + | let totalShortOpenInterestAfter = $t06593570372._15 | |
1676 | + | if ((positionBadDebt > 0)) | |
1677 | + | then throw("Unable to close position with bad debt") | |
1678 | + | else { | |
1679 | + | let withdrawAmount = abs(marginToVault) | |
1680 | + | let ammBalance = (cbalance() - withdrawAmount) | |
1681 | + | let $t07058170788 = if ((0 > ammBalance)) | |
1682 | + | then $Tuple2(0, abs(ammBalance)) | |
1683 | + | else $Tuple2(ammBalance, 0) | |
1684 | + | let ammNewBalance = $t07058170788._1 | |
1685 | + | let x11 = $t07058170788._2 | |
1686 | + | let $t07079570849 = getBorrowedByTrader(_trader) | |
1687 | + | let borrowed = $t07079570849._1 | |
1688 | + | let assetId = $t07079570849._2 | |
1689 | + | let $t07086471723 = if ((borrowed > 0)) | |
1690 | + | then if ((withdrawAmount >= borrowed)) | |
1691 | + | then { | |
1692 | + | let doRepay = invoke(collateralAddress(), "repay", [_trader, borrowed, assetId], nil) | |
1693 | + | if ((doRepay == doRepay)) | |
1694 | + | then $Tuple2([ScriptTransfer(_traderAddress, borrowed, fromBase58String(assetId))], (withdrawAmount - borrowed)) | |
1695 | + | else throw("Strict value is not equal to itself.") | |
1696 | + | } | |
1697 | + | else { | |
1698 | + | let realizeAndClose = invoke(collateralAddress(), "realizePartiallyAndClose", [_trader, withdrawAmount, assetId], nil) | |
1699 | + | if ((realizeAndClose == realizeAndClose)) | |
1700 | + | then $Tuple2([ScriptTransfer(_traderAddress, withdrawAmount, fromBase58String(assetId))], 0) | |
1701 | + | else throw("Strict value is not equal to itself.") | |
1702 | + | } | |
1703 | + | else $Tuple2(nil, withdrawAmount) | |
1704 | + | if (($t07086471723 == $t07086471723)) | |
1705 | + | then { | |
1706 | + | let quoteWithdrawAmount = $t07086471723._2 | |
1707 | + | let sendCollateralAction = $t07086471723._1 | |
1708 | + | let unstake = if ((quoteWithdrawAmount > 0)) | |
1709 | + | then { | |
1710 | + | let unstake = invoke(vaultAddress(), "withdrawLocked", [quoteWithdrawAmount], nil) | |
1711 | + | if ((unstake == unstake)) | |
1712 | + | then nil | |
1713 | + | else throw("Strict value is not equal to itself.") | |
1714 | + | } | |
1715 | + | else nil | |
1716 | + | if ((unstake == unstake)) | |
1717 | + | then { | |
1718 | + | let notifyNotional = invoke(minerAddress(), "notifyNotional", [_trader, 0], nil) | |
1719 | + | if ((notifyNotional == notifyNotional)) | |
1720 | + | then (((((if ((newPositionSize == 0)) | |
1721 | + | then deletePosition(_trader) | |
1722 | + | else updatePosition(_trader, newPositionSize, newPositionMargin, newPositionOpenNotional, newPositionLstUpdCPF)) ++ updateAmm(quoteAssetReserveAfter, baseAssetReserveAfter, totalPositionSizeAfter, openInterestNotionalAfter, totalLongAfter, totalShortAfter, totalLongOpenInterestAfter, totalShortOpenInterestAfter)) ++ (if ((quoteWithdrawAmount > 0)) | |
1723 | + | then withdraw(_traderAddress, quoteWithdrawAmount) | |
1724 | + | else nil)) ++ updateBalance(ammNewBalance)) ++ sendCollateralAction) | |
1725 | + | else throw("Strict value is not equal to itself.") | |
1726 | + | } | |
1727 | + | else throw("Strict value is not equal to itself.") | |
1728 | + | } | |
1729 | + | else throw("Strict value is not equal to itself.") | |
1730 | + | } | |
1731 | + | } | |
1732 | + | } | |
1733 | + | else throw("Strict value is not equal to itself.") | |
1734 | + | } | |
1735 | + | ||
1736 | + | ||
1737 | + | ||
1738 | + | @Callable(i) | |
1739 | + | func liquidate (_trader) = { | |
1740 | + | let sync = invoke(this, "syncTerminalPriceToOracle", nil, nil) | |
1741 | + | if ((sync == sync)) | |
1742 | + | then { | |
1743 | + | let spotMarginRatio = getMarginRatioByOption(_trader, PNL_OPTION_SPOT) | |
1744 | + | let marginRatio = if (isOverFluctuationLimit()) | |
1745 | + | then { | |
1746 | + | let oracleMarginRatio = getMarginRatioByOption(_trader, PNL_OPTION_ORACLE) | |
1747 | + | vmax(spotMarginRatio, oracleMarginRatio) | |
1748 | + | } | |
1749 | + | else spotMarginRatio | |
1750 | + | if (if (if (if (!(requireMoreMarginRatio(marginRatio, maintenanceMarginRatio(), false))) | |
1751 | + | then true | |
1752 | + | else !(requireOpenPosition(_trader))) | |
1753 | + | then true | |
1754 | + | else !(initialized())) | |
1755 | + | then true | |
1756 | + | else paused()) | |
1757 | + | then throw("Unable to liquidate") | |
1758 | + | else if (if (if ((spotMarginRatio > liquidationFeeRatio())) | |
1759 | + | then (partialLiquidationRatio() > 0) | |
1760 | + | else false) | |
1761 | + | then (DECIMAL_UNIT > partialLiquidationRatio()) | |
1762 | + | else false) | |
1763 | + | then { | |
1764 | + | let $t07402074170 = getPosition(_trader) | |
1765 | + | let oldPositionSize = $t07402074170._1 | |
1766 | + | let oldPositionMargin = $t07402074170._2 | |
1767 | + | let oldPositionOpenNotional = $t07402074170._3 | |
1768 | + | let oldPositionLstUpdCPF = $t07402074170._4 | |
1769 | + | let _direction = if ((oldPositionSize > 0)) | |
1770 | + | then DIR_SHORT | |
1771 | + | else DIR_LONG | |
1772 | + | let isAdd = (_direction == DIR_LONG) | |
1773 | + | let exchangedQuoteAssetAmount = getPartialLiquidationAmount(_trader, oldPositionSize) | |
1774 | + | let $t07439574499 = getPositionNotionalAndUnrealizedPnl(_trader, PNL_OPTION_SPOT) | |
1775 | + | let oldPositionNotional = $t07439574499._1 | |
1776 | + | let unrealizedPnl = $t07439574499._2 | |
1777 | + | let $t07450774694 = swapInput(isAdd, exchangedQuoteAssetAmount) | |
1778 | + | let exchangedPositionSize = $t07450774694._1 | |
1779 | + | let quoteAssetReserveAfter = $t07450774694._2 | |
1780 | + | let baseAssetReserveAfter = $t07450774694._3 | |
1781 | + | let totalPositionSizeAfter = $t07450774694._4 | |
1782 | + | let liquidationRatio = divd(abs(exchangedPositionSize), abs(oldPositionSize)) | |
1783 | + | let realizedPnl = muld(unrealizedPnl, liquidationRatio) | |
1784 | + | let $t07498375216 = calcRemainMarginWithFundingPayment(oldPositionSize, oldPositionMargin, oldPositionLstUpdCPF, realizedPnl) | |
1785 | + | let remainMargin = $t07498375216._1 | |
1786 | + | let badDebt = $t07498375216._2 | |
1787 | + | let fundingPayment = $t07498375216._3 | |
1788 | + | let unrealizedPnlAfter = (unrealizedPnl - realizedPnl) | |
1789 | + | let remainOpenNotional = if ((oldPositionSize > 0)) | |
1790 | + | then ((oldPositionNotional - exchangedQuoteAssetAmount) - unrealizedPnlAfter) | |
1791 | + | else ((unrealizedPnlAfter + oldPositionNotional) - exchangedQuoteAssetAmount) | |
1792 | + | let liquidationPenalty = muld(exchangedQuoteAssetAmount, liquidationFeeRatio()) | |
1793 | + | let feeToLiquidator = (liquidationPenalty / 2) | |
1794 | + | let feeToVault = (liquidationPenalty - feeToLiquidator) | |
1795 | + | let newPositionMargin = (remainMargin - liquidationPenalty) | |
1796 | + | let newPositionSize = (oldPositionSize + exchangedPositionSize) | |
1797 | + | let newPositionOpenNotional = abs(remainOpenNotional) | |
1798 | + | let newPositionLstUpdCPF = latestCumulativePremiumFraction(newPositionSize) | |
1799 | + | let openInterestNotionalAfter = (openInterestNotional() - exchangedQuoteAssetAmount) | |
1800 | + | let ammBalance = (cbalance() - liquidationPenalty) | |
1801 | + | let $t07638576514 = if ((0 > ammBalance)) | |
1802 | + | then $Tuple2(0, abs(ammBalance)) | |
1803 | + | else $Tuple2(ammBalance, 0) | |
1804 | + | let newAmmBalance = $t07638576514._1 | |
1805 | + | let x11 = $t07638576514._2 | |
1806 | + | let $t07652276576 = getBorrowedByTrader(_trader) | |
1807 | + | let borrowed = $t07652276576._1 | |
1808 | + | let assetId = $t07652276576._2 | |
1809 | + | let doLiquidateCollateral = if ((borrowed > 0)) | |
1810 | + | then { | |
1811 | + | let collateralToSell = muld(borrowed, liquidationRatio) | |
1812 | + | let realizeAndClose = invoke(collateralAddress(), "realizePartially", [_trader, assetId, collateralToSell], nil) | |
1813 | + | if ((realizeAndClose == realizeAndClose)) | |
1814 | + | then nil | |
1815 | + | else throw("Strict value is not equal to itself.") | |
1816 | + | } | |
1817 | + | else nil | |
1818 | + | if ((doLiquidateCollateral == doLiquidateCollateral)) | |
1819 | + | then { | |
1820 | + | let unstake = invoke(vaultAddress(), "withdrawLocked", [liquidationPenalty], nil) | |
1821 | + | if ((unstake == unstake)) | |
1822 | + | then { | |
1823 | + | let depositInsurance = invoke(vaultAddress(), "addFree", nil, [AttachedPayment(quoteAsset(), feeToVault)]) | |
1824 | + | if ((depositInsurance == depositInsurance)) | |
1825 | + | then { | |
1826 | + | let notifyNotional = invoke(minerAddress(), "notifyNotional", [_trader, newPositionOpenNotional], nil) | |
1827 | + | if ((notifyNotional == notifyNotional)) | |
1828 | + | then (((updatePosition(_trader, newPositionSize, newPositionMargin, newPositionOpenNotional, newPositionLstUpdCPF) ++ updateAmm(quoteAssetReserveAfter, baseAssetReserveAfter, totalPositionSizeAfter, openInterestNotionalAfter, (totalLongPositionSize() - (if ((newPositionSize > 0)) | |
1829 | + | then abs(exchangedPositionSize) | |
1830 | + | else 0)), (totalShortPositionSize() - (if ((0 > newPositionSize)) | |
1831 | + | then abs(exchangedPositionSize) | |
1832 | + | else 0)), (openInterestLong() - (if ((newPositionSize > 0)) | |
1833 | + | then exchangedQuoteAssetAmount | |
1834 | + | else 0)), (openInterestShort() - (if ((0 > newPositionSize)) | |
1835 | + | then exchangedQuoteAssetAmount | |
1836 | + | else 0)))) ++ withdraw(i.caller, feeToLiquidator)) ++ updateBalance(newAmmBalance)) | |
1837 | + | else throw("Strict value is not equal to itself.") | |
1838 | + | } | |
1839 | + | else throw("Strict value is not equal to itself.") | |
1840 | + | } | |
1841 | + | else throw("Strict value is not equal to itself.") | |
1842 | + | } | |
1843 | + | else throw("Strict value is not equal to itself.") | |
1844 | + | } | |
1845 | + | else { | |
1846 | + | let $t07827178766 = internalClosePosition(_trader, false) | |
1847 | + | let x1 = $t07827178766._1 | |
1848 | + | let badDebt = $t07827178766._2 | |
1849 | + | let x2 = $t07827178766._3 | |
1850 | + | let x3 = $t07827178766._4 | |
1851 | + | let quoteAssetReserveAfter = $t07827178766._5 | |
1852 | + | let baseAssetReserveAfter = $t07827178766._6 | |
1853 | + | let totalPositionSizeAfter = $t07827178766._7 | |
1854 | + | let openInterestNotionalAfter = $t07827178766._8 | |
1855 | + | let exchangedQuoteAssetAmount = $t07827178766._9 | |
1856 | + | let totalLongAfter = $t07827178766._10 | |
1857 | + | let totalShortAfter = $t07827178766._11 | |
1858 | + | let totalLongOpenInterestAfter = $t07827178766._12 | |
1859 | + | let totalShortOpenInterestAfter = $t07827178766._13 | |
1860 | + | let liquidationPenalty = muld(exchangedQuoteAssetAmount, liquidationFeeRatio()) | |
1861 | + | let feeToLiquidator = (liquidationPenalty / 2) | |
1862 | + | let feeToVault = (liquidationPenalty - feeToLiquidator) | |
1863 | + | let ammBalance = (cbalance() - liquidationPenalty) | |
1864 | + | let $t07917479303 = if ((0 > ammBalance)) | |
1865 | + | then $Tuple2(0, abs(ammBalance)) | |
1866 | + | else $Tuple2(ammBalance, 0) | |
1867 | + | let newAmmBalance = $t07917479303._1 | |
1868 | + | let x11 = $t07917479303._2 | |
1869 | + | let $t07931179365 = getBorrowedByTrader(_trader) | |
1870 | + | let borrowed = $t07931179365._1 | |
1871 | + | let assetId = $t07931179365._2 | |
1872 | + | let doLiquidateCollateral = if ((borrowed > 0)) | |
1873 | + | then { | |
1874 | + | let realizeAndClose = invoke(collateralAddress(), "realizePartiallyAndClose", [_trader, 0, assetId], nil) | |
1875 | + | if ((realizeAndClose == realizeAndClose)) | |
1876 | + | then nil | |
1877 | + | else throw("Strict value is not equal to itself.") | |
1878 | + | } | |
1879 | + | else nil | |
1880 | + | if ((doLiquidateCollateral == doLiquidateCollateral)) | |
1881 | + | then { | |
1882 | + | let x = if ((badDebt > 0)) | |
1883 | + | then { | |
1884 | + | let lockBadDebt = invoke(vaultAddress(), "exchangeFreeAndLocked", [badDebt], nil) | |
1885 | + | if ((lockBadDebt == lockBadDebt)) | |
1886 | + | then nil | |
1887 | + | else throw("Strict value is not equal to itself.") | |
1888 | + | } | |
1889 | + | else nil | |
1890 | + | if ((x == x)) | |
1891 | + | then { | |
1892 | + | let unstake = invoke(vaultAddress(), "withdrawLocked", [liquidationPenalty], nil) | |
1893 | + | if ((unstake == unstake)) | |
1894 | + | then { | |
1895 | + | let depositInsurance = invoke(vaultAddress(), "addFree", nil, [AttachedPayment(quoteAsset(), feeToVault)]) | |
1896 | + | if ((depositInsurance == depositInsurance)) | |
1897 | + | then { | |
1898 | + | let notifyNotional = invoke(minerAddress(), "notifyNotional", [_trader, 0], nil) | |
1899 | + | if ((notifyNotional == notifyNotional)) | |
1900 | + | then (((deletePosition(_trader) ++ updateAmm(quoteAssetReserveAfter, baseAssetReserveAfter, totalPositionSizeAfter, openInterestNotionalAfter, totalLongAfter, totalShortAfter, totalLongOpenInterestAfter, totalShortOpenInterestAfter)) ++ withdraw(i.caller, feeToLiquidator)) ++ updateBalance(newAmmBalance)) | |
1901 | + | else throw("Strict value is not equal to itself.") | |
1902 | + | } | |
1903 | + | else throw("Strict value is not equal to itself.") | |
1904 | + | } | |
1905 | + | else throw("Strict value is not equal to itself.") | |
1906 | + | } | |
1907 | + | else throw("Strict value is not equal to itself.") | |
1908 | + | } | |
1909 | + | else throw("Strict value is not equal to itself.") | |
1910 | + | } | |
1911 | + | } | |
1912 | + | else throw("Strict value is not equal to itself.") | |
1913 | + | } | |
1914 | + | ||
1915 | + | ||
1916 | + | ||
1917 | + | @Callable(i) | |
1918 | + | func payFunding () = { | |
1919 | + | let fundingBlockTimestamp = nextFundingBlockTimestamp() | |
1920 | + | if (if (if ((fundingBlockTimestamp > lastBlock.timestamp)) | |
1921 | + | then true | |
1922 | + | else !(initialized())) | |
1923 | + | then true | |
1924 | + | else paused()) | |
1925 | + | then throw(((("Invalid funding block timestamp: " + toString(lastBlock.timestamp)) + " < ") + toString(fundingBlockTimestamp))) | |
1926 | + | else { | |
1927 | + | let underlyingPrice = getOracleTwapPrice() | |
1928 | + | let $t08117281234 = getFunding() | |
1929 | + | let shortPremiumFraction = $t08117281234._1 | |
1930 | + | let longPremiumFraction = $t08117281234._2 | |
1931 | + | updateFunding((fundingBlockTimestamp + fundingPeriodSeconds()), (latestLongCumulativePremiumFraction() + longPremiumFraction), (latestShortCumulativePremiumFraction() + shortPremiumFraction), divd(longPremiumFraction, underlyingPrice), divd(shortPremiumFraction, underlyingPrice)) | |
1932 | + | } | |
1933 | + | } | |
1934 | + | ||
1935 | + | ||
1936 | + | ||
1937 | + | @Callable(i) | |
1938 | + | func syncTerminalPriceToOracle () = { | |
1939 | + | let $t08161681737 = getSyncTerminalPrice(getOracleTwapPrice()) | |
1940 | + | let newQuoteAssetWeight = $t08161681737._1 | |
1941 | + | let newBaseAssetWeight = $t08161681737._2 | |
1942 | + | let marginToVault = $t08161681737._3 | |
1943 | + | let doExchangePnL = if ((marginToVault != 0)) | |
1944 | + | then { | |
1945 | + | let doExchangePnL = invoke(vaultAddress(), "exchangeFreeAndLocked", [marginToVault], nil) | |
1946 | + | if ((doExchangePnL == doExchangePnL)) | |
1947 | + | then nil | |
1948 | + | else throw("Strict value is not equal to itself.") | |
1949 | + | } | |
1950 | + | else nil | |
1951 | + | if ((doExchangePnL == doExchangePnL)) | |
1952 | + | then updateAmmWeights(newQuoteAssetWeight, newBaseAssetWeight) | |
1953 | + | else throw("Strict value is not equal to itself.") | |
1954 | + | } | |
1955 | + | ||
1956 | + | ||
1957 | + | ||
1958 | + | @Callable(i) | |
1959 | + | func view_calcRemainMarginWithFundingPayment (_trader) = { | |
1960 | + | let sync = invoke(this, "syncTerminalPriceToOracle", nil, nil) | |
1961 | + | if ((sync == sync)) | |
1962 | + | then { | |
1963 | + | let $t08221382314 = getPosition(_trader) | |
1964 | + | let positionSize = $t08221382314._1 | |
1965 | + | let positionMargin = $t08221382314._2 | |
1966 | + | let pon = $t08221382314._3 | |
1967 | + | let positionLstUpdCPF = $t08221382314._4 | |
1968 | + | let $t08231782418 = getPositionNotionalAndUnrealizedPnl(_trader, PNL_OPTION_SPOT) | |
1969 | + | let positionNotional = $t08231782418._1 | |
1970 | + | let unrealizedPnl = $t08231782418._2 | |
1971 | + | let $t08242182593 = calcRemainMarginWithFundingPayment(positionSize, positionMargin, positionLstUpdCPF, unrealizedPnl) | |
1972 | + | let remainMargin = $t08242182593._1 | |
1973 | + | let badDebt = $t08242182593._2 | |
1974 | + | let fundingPayment = $t08242182593._3 | |
1975 | + | throw((((((s(remainMargin) + s(fundingPayment)) + s(getMarginRatio(_trader))) + s(unrealizedPnl)) + s(badDebt)) + s(positionNotional))) | |
1976 | + | } | |
1977 | + | else throw("Strict value is not equal to itself.") | |
1978 | + | } | |
1979 | + | ||
1980 | + | ||
1981 | + | ||
1982 | + | @Callable(i) | |
1983 | + | func view_getPegAdjustCost (_price) = { | |
1984 | + | let result = getSyncTerminalPrice(_price) | |
1985 | + | throw(toString(result._3)) | |
1986 | + | } | |
1987 | + | ||
1988 | + | ||
1989 | + | ||
1990 | + | @Callable(i) | |
1991 | + | func view_getTerminalAmmPrice () = { | |
1992 | + | let $t08294083021 = getTerminalAmmState() | |
1993 | + | let terminalQuoteAssetReserve = $t08294083021._1 | |
1994 | + | let terminalBaseAssetReserve = $t08294083021._2 | |
1995 | + | let price = divd(muld(terminalQuoteAssetReserve, qtAstW()), muld(terminalBaseAssetReserve, bsAstW())) | |
1996 | + | throw(toString(price)) | |
1997 | + | } | |
1998 | + | ||
1999 | + | ||
2000 | + | ||
2001 | + | @Callable(i) | |
2002 | + | func view_getFunding () = { | |
2003 | + | let underlyingPrice = getOracleTwapPrice() | |
2004 | + | let $t08324083302 = getFunding() | |
2005 | + | let shortPremiumFraction = $t08324083302._1 | |
2006 | + | let longPremiumFraction = $t08324083302._2 | |
2007 | + | let longFunding = divd(longPremiumFraction, underlyingPrice) | |
2008 | + | let shortFunding = divd(shortPremiumFraction, underlyingPrice) | |
2009 | + | throw((((s(longFunding) + s(shortFunding)) + s(getTwapSpotPrice())) + s(getOracleTwapPrice()))) | |
2010 | + | } | |
2011 | + | ||
2012 | + | ||
2013 | + | ||
2014 | + | @Callable(i) | |
2015 | + | func view_getBorrowedByTrader (_trader) = { | |
2016 | + | let $t08359283646 = getBorrowedByTrader(_trader) | |
2017 | + | let borrowed = $t08359283646._1 | |
2018 | + | let assetId = $t08359283646._2 | |
2019 | + | throw((s(borrowed) + assetId)) | |
2020 | + | } | |
2021 | + | ||
2022 | + | ||
2023 | + | ||
2024 | + | @Callable(i) | |
2025 | + | func computeSpotPrice () = { | |
2026 | + | let result = getSpotPrice() | |
2027 | + | $Tuple2(nil, result) | |
2028 | + | } | |
2029 | + | ||
2030 | + | ||
2031 | + | ||
2032 | + | @Callable(i) | |
2033 | + | func computeFeeForTraderWithArtifact (_trader,_artifactId) = { | |
2034 | + | let result = getForTraderWithArtifact(_trader, _artifactId) | |
2035 | + | $Tuple2(nil, result) | |
2036 | + | } | |
2037 | + | ||
2038 | + | ||
2039 | + | @Verifier(tx) | |
2040 | + | func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], adminPublicKey()) | |
2041 | + |
github/deemru/w8io/026f985 92.29 ms ◑