tx · 3MMr17WuoBobDsV7mEYK3fHFQAt4JSMCFdjqyScpCgCa 3MyHQtKPhWwVJccH9AquhbnpCbMvXqaoLPr: -0.07000000 Waves 2022.11.25 19:49 [2332883] smart account 3MyHQtKPhWwVJccH9AquhbnpCbMvXqaoLPr > SELF 0.00000000 Waves
{ "type": 13, "id": "3MMr17WuoBobDsV7mEYK3fHFQAt4JSMCFdjqyScpCgCa", "fee": 7000000, "feeAssetId": null, "timestamp": 1669394997871, "version": 2, "chainId": 84, "sender": "3MyHQtKPhWwVJccH9AquhbnpCbMvXqaoLPr", "senderPublicKey": "DYN6RwiueYKy7kjym8TJiJC84FZqVjYhGh6yuUnvSjEh", "proofs": [ "3ZH438RhVSyPwhkTfQmACNJTACrtxqntJcAdKqQAoi19FatHnsEZNK8axn8uRqdThJqNM49T93ENjTypzb6rQSdL" ], "script": "base64:BgJxCAISABIAEgMKAQESAwoBARILCgkBAQEBAQEBAQESEAoOAQEBAQEBAQgICAEBAQESAwoBARIFCgMBAQESBgoEAQEBCBIAEgMKAQESABIDCgEIEgASBAoCCAESAwoBARIAEgMKAQgSAwoBCBIDCgEBEgCKAQAJa19vcmFfa2V5AglrX29yYV9rZXkAD2tfb3JhX2Jsb2NrX2tleQIPa19vcmFfYmxvY2tfa2V5AAVrX29yYQIFa19vcmEACWtfYmFsYW5jZQIJa19iYWxhbmNlAA5rX3Bvc2l0aW9uU2l6ZQIOa19wb3NpdGlvblNpemUAEGtfcG9zaXRpb25NYXJnaW4CEGtfcG9zaXRpb25NYXJnaW4AFmtfcG9zaXRpb25PcGVuTm90aW9uYWwCFmtfcG9zaXRpb25PcGVuTm90aW9uYWwALmtfcG9zaXRpb25MYXN0VXBkYXRlZEN1bXVsYXRpdmVQcmVtaXVtRnJhY3Rpb24CEmtfcG9zaXRpb25GcmFjdGlvbgAUa19wb3NpdGlvbkNsb3NlZERhdGUCFGtfcG9zaXRpb25DbG9zZWREYXRlAA1rX2luaXRpYWxpemVkAg1rX2luaXRpYWx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ZAIFFHNob3J0UHJlbWl1bUZyYWN0aW9uBQ91bmRlcmx5aW5nUHJpY2UJAAIBCQCsAgIJAKwCAgkArAICCQEBcwEFC2xvbmdGdW5kaW5nCQEBcwEFDHNob3J0RnVuZGluZwkBAXMBCQEQZ2V0VHdhcFNwb3RQcmljZQAJAQFzAQkBEmdldE9yYWNsZVR3YXBQcmljZQABAnR4AQZ2ZXJpZnkACQD0AwMIBQJ0eAlib2R5Qnl0ZXMJAJEDAggFAnR4BnByb29mcwAACQEOYWRtaW5QdWJsaWNLZXkAMO5EHQ==", "height": 2332883, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: none Next: none 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_positionSize = "k_positionSize" | |
13 | + | ||
14 | + | let k_positionMargin = "k_positionMargin" | |
15 | + | ||
16 | + | let k_positionOpenNotional = "k_positionOpenNotional" | |
17 | + | ||
18 | + | let k_positionLastUpdatedCumulativePremiumFraction = "k_positionFraction" | |
19 | + | ||
20 | + | let k_positionClosedDate = "k_positionClosedDate" | |
21 | + | ||
22 | + | let k_initialized = "k_initialized" | |
23 | + | ||
24 | + | let k_paused = "k_paused" | |
25 | + | ||
26 | + | let k_fee = "k_fee" | |
27 | + | ||
28 | + | let k_fundingPeriod = "k_fundingPeriod" | |
29 | + | ||
30 | + | let k_initMarginRatio = "k_initMarginRatio" | |
31 | + | ||
32 | + | let k_maintenanceMarginRatio = "k_mmr" | |
33 | + | ||
34 | + | let k_liquidationFeeRatio = "k_liquidationFeeRatio" | |
35 | + | ||
36 | + | let k_partialLiquidationRatio = "k_partLiquidationRatio" | |
37 | + | ||
38 | + | let k_spreadLimit = "k_spreadLimit" | |
39 | + | ||
40 | + | let k_maxPriceImpact = "k_maxPriceImpact" | |
41 | + | ||
42 | + | let k_maxPriceSpread = "k_maxPriceSpread" | |
43 | + | ||
44 | + | let k_lastDataStr = "k_lastDataStr" | |
45 | + | ||
46 | + | let k_lastMinuteId = "k_lastMinuteId" | |
47 | + | ||
48 | + | let k_twapDataLastCumulativePrice = "k_twapDataLastCumulativePrice" | |
49 | + | ||
50 | + | let k_twapDataLastPrice = "k_twapDataLastPrice" | |
51 | + | ||
52 | + | let k_twapDataPreviousMinuteId = "k_twapDataPreviousMinuteId" | |
53 | + | ||
54 | + | let k_latestLongCumulativePremiumFraction = "k_latestLongPremiumFraction" | |
55 | + | ||
56 | + | let k_latestShortCumulativePremiumFraction = "k_latestShortPremiumFraction" | |
57 | + | ||
58 | + | let k_nextFundingBlock = "k_nextFundingBlockMinTimestamp" | |
59 | + | ||
60 | + | let k_longFundingRate = "k_longFundingRate" | |
61 | + | ||
62 | + | let k_shortFundingRate = "k_shortFundingRate" | |
63 | + | ||
64 | + | let k_quoteAssetReserve = "k_qtAstR" | |
65 | + | ||
66 | + | let k_baseAssetReserve = "k_bsAstR" | |
67 | + | ||
68 | + | let k_totalPositionSize = "k_totalPositionSize" | |
69 | + | ||
70 | + | let k_totalLongPositionSize = "k_totalLongPositionSize" | |
71 | + | ||
72 | + | let k_totalShortPositionSize = "k_totalShortPositionSize" | |
73 | + | ||
74 | + | let k_cumulativeNotional = "k_cumulativeNotional" | |
75 | + | ||
76 | + | let k_openInterestNotional = "k_openInterestNotional" | |
77 | + | ||
78 | + | let k_coordinatorAddress = "k_coordinatorAddress" | |
79 | + | ||
80 | + | let k_insurance_address = "k_insurance_address" | |
81 | + | ||
82 | + | let k_admin_address = "k_admin_address" | |
83 | + | ||
84 | + | let k_admin_public_key = "k_admin_public_key" | |
85 | + | ||
86 | + | let k_quote_asset = "k_quote_asset" | |
87 | + | ||
88 | + | let k_quote_staking = "k_quote_staking" | |
89 | + | ||
90 | + | let k_staking_address = "k_staking_address" | |
91 | + | ||
92 | + | let k_miner_address = "k_miner_address" | |
93 | + | ||
94 | + | let k_orders_address = "k_orders_address" | |
95 | + | ||
96 | + | let k_referral_address = "k_referral_address" | |
97 | + | ||
98 | + | let k_manager_address = "k_manager_address" | |
99 | + | ||
100 | + | func coordinator () = valueOrErrorMessage(addressFromString(getStringValue(this, k_coordinatorAddress)), "Coordinator not set") | |
101 | + | ||
102 | + | ||
103 | + | func adminAddress () = addressFromString(getStringValue(coordinator(), k_admin_address)) | |
104 | + | ||
105 | + | ||
106 | + | func adminPublicKey () = fromBase58String(getStringValue(coordinator(), k_admin_public_key)) | |
107 | + | ||
108 | + | ||
109 | + | func quoteAsset () = fromBase58String(getStringValue(coordinator(), k_quote_asset)) | |
110 | + | ||
111 | + | ||
112 | + | func quoteAssetStaking () = valueOrErrorMessage(addressFromString(getStringValue(coordinator(), k_quote_staking)), "Quote asset staking not set") | |
113 | + | ||
114 | + | ||
115 | + | func stakingAddress () = valueOrErrorMessage(addressFromString(getStringValue(coordinator(), k_staking_address)), "Staking not set") | |
116 | + | ||
117 | + | ||
118 | + | func insuranceAddress () = valueOrErrorMessage(addressFromString(getStringValue(coordinator(), k_insurance_address)), "Insurance not set") | |
119 | + | ||
120 | + | ||
121 | + | func minerAddress () = valueOrErrorMessage(addressFromString(getStringValue(coordinator(), k_miner_address)), "Miner not set") | |
122 | + | ||
123 | + | ||
124 | + | func ordersAddress () = valueOrErrorMessage(addressFromString(getStringValue(coordinator(), k_orders_address)), "Orders not set") | |
125 | + | ||
126 | + | ||
127 | + | func referralAddress () = valueOrErrorMessage(addressFromString(getStringValue(coordinator(), k_referral_address)), "Referral not set") | |
128 | + | ||
129 | + | ||
130 | + | func managerAddress () = valueOrErrorMessage(addressFromString(getStringValue(coordinator(), k_manager_address)), "Manager not set") | |
131 | + | ||
132 | + | ||
133 | + | let DIR_LONG = 1 | |
134 | + | ||
135 | + | let DIR_SHORT = 2 | |
136 | + | ||
137 | + | let TWAP_INTERVAL = 15 | |
138 | + | ||
139 | + | let ORACLE_INTERVAL = 15 | |
140 | + | ||
141 | + | let SECONDS = 1000 | |
142 | + | ||
143 | + | let DECIMAL_UNIT = (1 * (((((10 * 10) * 10) * 10) * 10) * 10)) | |
144 | + | ||
145 | + | let ONE_DAY = (86400 * DECIMAL_UNIT) | |
146 | + | ||
147 | + | let ALL_FEES = 100 | |
148 | + | ||
149 | + | let PNL_OPTION_SPOT = 1 | |
150 | + | ||
151 | + | let PNL_OPTION_ORACLE = 2 | |
152 | + | ||
153 | + | func s (_x) = (toString(_x) + ",") | |
154 | + | ||
155 | + | ||
156 | + | func divd (_x,_y) = fraction(_x, DECIMAL_UNIT, _y, HALFEVEN) | |
157 | + | ||
158 | + | ||
159 | + | func muld (_x,_y) = fraction(_x, _y, DECIMAL_UNIT, HALFEVEN) | |
160 | + | ||
161 | + | ||
162 | + | func abs (_x) = if ((_x > 0)) | |
163 | + | then _x | |
164 | + | else -(_x) | |
165 | + | ||
166 | + | ||
167 | + | func vmax (_x,_y) = if ((_x >= _y)) | |
168 | + | then _x | |
169 | + | else _y | |
170 | + | ||
171 | + | ||
172 | + | func toCompositeKey (_key,_address) = ((_key + "_") + _address) | |
173 | + | ||
174 | + | ||
175 | + | func listToStr (_list) = { | |
176 | + | func _join (accumulator,val) = ((accumulator + val) + ",") | |
177 | + | ||
178 | + | let newListStr = { | |
179 | + | let $l = _list | |
180 | + | let $s = size($l) | |
181 | + | let $acc0 = "" | |
182 | + | func $f0_1 ($a,$i) = if (($i >= $s)) | |
183 | + | then $a | |
184 | + | else _join($a, $l[$i]) | |
185 | + | ||
186 | + | func $f0_2 ($a,$i) = if (($i >= $s)) | |
187 | + | then $a | |
188 | + | else throw("List size exceeds 20") | |
189 | + | ||
190 | + | $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) | |
191 | + | } | |
192 | + | let newListStrU = dropRight(newListStr, 1) | |
193 | + | let newListStrR = if ((take(newListStrU, 1) == ",")) | |
194 | + | then drop(newListStrU, 1) | |
195 | + | else newListStrU | |
196 | + | newListStrR | |
197 | + | } | |
198 | + | ||
199 | + | ||
200 | + | func strToList (_str) = split(_str, ",") | |
201 | + | ||
202 | + | ||
203 | + | func pushToQueue (_list,_maxSize,_value) = if ((size(_list) > _maxSize)) | |
204 | + | then (removeByIndex(_list, 0) :+ _value) | |
205 | + | else (_list :+ _value) | |
206 | + | ||
207 | + | ||
208 | + | func int (k) = valueOrErrorMessage(getInteger(this, k), ("no value for " + k)) | |
209 | + | ||
210 | + | ||
211 | + | func cbalance () = int(k_balance) | |
212 | + | ||
213 | + | ||
214 | + | func fee () = int(k_fee) | |
215 | + | ||
216 | + | ||
217 | + | func initMarginRatio () = int(k_initMarginRatio) | |
218 | + | ||
219 | + | ||
220 | + | func qtAstR () = int(k_quoteAssetReserve) | |
221 | + | ||
222 | + | ||
223 | + | func bsAstR () = int(k_baseAssetReserve) | |
224 | + | ||
225 | + | ||
226 | + | func totalPositionSize () = int(k_totalPositionSize) | |
227 | + | ||
228 | + | ||
229 | + | func cumulativeNotional () = int(k_cumulativeNotional) | |
230 | + | ||
231 | + | ||
232 | + | func openInterestNotional () = int(k_openInterestNotional) | |
233 | + | ||
234 | + | ||
235 | + | func nextFundingBlockTimestamp () = int(k_nextFundingBlock) | |
236 | + | ||
237 | + | ||
238 | + | func fundingPeriodRaw () = int(k_fundingPeriod) | |
239 | + | ||
240 | + | ||
241 | + | func fundingPeriodDecimal () = (fundingPeriodRaw() * DECIMAL_UNIT) | |
242 | + | ||
243 | + | ||
244 | + | func fundingPeriodSeconds () = (fundingPeriodRaw() * SECONDS) | |
245 | + | ||
246 | + | ||
247 | + | func maintenanceMarginRatio () = int(k_maintenanceMarginRatio) | |
248 | + | ||
249 | + | ||
250 | + | func liquidationFeeRatio () = int(k_liquidationFeeRatio) | |
251 | + | ||
252 | + | ||
253 | + | func partialLiquidationRatio () = int(k_partialLiquidationRatio) | |
254 | + | ||
255 | + | ||
256 | + | func spreadLimit () = int(k_spreadLimit) | |
257 | + | ||
258 | + | ||
259 | + | func maxPriceImpact () = int(k_maxPriceImpact) | |
260 | + | ||
261 | + | ||
262 | + | func maxPriceSpread () = int(k_maxPriceSpread) | |
263 | + | ||
264 | + | ||
265 | + | func latestLongCumulativePremiumFraction () = int(k_latestLongCumulativePremiumFraction) | |
266 | + | ||
267 | + | ||
268 | + | func latestShortCumulativePremiumFraction () = int(k_latestShortCumulativePremiumFraction) | |
269 | + | ||
270 | + | ||
271 | + | func totalShortPositionSize () = int(k_totalShortPositionSize) | |
272 | + | ||
273 | + | ||
274 | + | func totalLongPositionSize () = int(k_totalLongPositionSize) | |
275 | + | ||
276 | + | ||
277 | + | func getActualCaller (i) = valueOrElse(getString(ordersAddress(), "k_sender"), toString(i.caller)) | |
278 | + | ||
279 | + | ||
280 | + | func requireMoreMarginRatio (_marginRatio,_baseMarginRatio,_largerThanOrEqualTo) = { | |
281 | + | let remainingMarginRatio = (_marginRatio - _baseMarginRatio) | |
282 | + | if (if (_largerThanOrEqualTo) | |
283 | + | then (0 > remainingMarginRatio) | |
284 | + | else false) | |
285 | + | then throw("Invalid margin") | |
286 | + | else if (if (!(_largerThanOrEqualTo)) | |
287 | + | then (remainingMarginRatio >= 0) | |
288 | + | else false) | |
289 | + | then throw("Invalid margin") | |
290 | + | else true | |
291 | + | } | |
292 | + | ||
293 | + | ||
294 | + | func latestCumulativePremiumFraction (_positionSize) = if ((_positionSize == 0)) | |
295 | + | then throw("Should not be called with _positionSize == 0") | |
296 | + | else if ((_positionSize > 0)) | |
297 | + | then latestLongCumulativePremiumFraction() | |
298 | + | else latestShortCumulativePremiumFraction() | |
299 | + | ||
300 | + | ||
301 | + | func getPosition (_trader) = { | |
302 | + | let positionSizeOpt = getInteger(this, toCompositeKey(k_positionSize, _trader)) | |
303 | + | match positionSizeOpt { | |
304 | + | case positionSize: Int => | |
305 | + | $Tuple4(positionSize, getIntegerValue(this, toCompositeKey(k_positionMargin, _trader)), getIntegerValue(this, toCompositeKey(k_positionOpenNotional, _trader)), getIntegerValue(this, toCompositeKey(k_positionLastUpdatedCumulativePremiumFraction, _trader))) | |
306 | + | case _ => | |
307 | + | $Tuple4(0, 0, 0, 0) | |
308 | + | } | |
309 | + | } | |
310 | + | ||
311 | + | ||
312 | + | func requireOpenPosition (_trader) = if ((getPosition(_trader)._1 == 0)) | |
313 | + | then throw("No open position") | |
314 | + | else true | |
315 | + | ||
316 | + | ||
317 | + | func initialized () = valueOrElse(getBoolean(this, k_initialized), false) | |
318 | + | ||
319 | + | ||
320 | + | func paused () = valueOrElse(getBoolean(this, k_paused), false) | |
321 | + | ||
322 | + | ||
323 | + | func updateReserve (_isAdd,_quoteAssetAmount,_baseAssetAmount) = if (_isAdd) | |
324 | + | then { | |
325 | + | let newBase = (bsAstR() - _baseAssetAmount) | |
326 | + | if ((0 >= newBase)) | |
327 | + | then throw("Tx lead to base asset reserve <= 0, revert") | |
328 | + | else $Tuple4((qtAstR() + _quoteAssetAmount), newBase, (totalPositionSize() + _baseAssetAmount), (cumulativeNotional() + _quoteAssetAmount)) | |
329 | + | } | |
330 | + | else { | |
331 | + | let newQuote = (qtAstR() - _quoteAssetAmount) | |
332 | + | if ((0 >= newQuote)) | |
333 | + | then throw("Tx lead to base quote reserve <= 0, revert") | |
334 | + | else $Tuple4(newQuote, (bsAstR() + _baseAssetAmount), (totalPositionSize() - _baseAssetAmount), (cumulativeNotional() - _quoteAssetAmount)) | |
335 | + | } | |
336 | + | ||
337 | + | ||
338 | + | func swapInput (_isAdd,_quoteAssetAmount) = { | |
339 | + | let _qtAstR = qtAstR() | |
340 | + | let _bsAstR = bsAstR() | |
341 | + | let k = muld(_qtAstR, _bsAstR) | |
342 | + | let quoteAssetReserveAfter = if (_isAdd) | |
343 | + | then (_qtAstR + _quoteAssetAmount) | |
344 | + | else (_qtAstR - _quoteAssetAmount) | |
345 | + | let baseAssetReserveAfter = divd(k, quoteAssetReserveAfter) | |
346 | + | let amountBaseAssetBoughtAbs = abs((baseAssetReserveAfter - _bsAstR)) | |
347 | + | let amountBaseAssetBought = if (_isAdd) | |
348 | + | then amountBaseAssetBoughtAbs | |
349 | + | else -(amountBaseAssetBoughtAbs) | |
350 | + | let $t01301913212 = updateReserve(_isAdd, _quoteAssetAmount, amountBaseAssetBoughtAbs) | |
351 | + | let quoteAssetReserveAfter1 = $t01301913212._1 | |
352 | + | let baseAssetReserveAfter1 = $t01301913212._2 | |
353 | + | let totalPositionSizeAfter1 = $t01301913212._3 | |
354 | + | let cumulativeNotionalAfter1 = $t01301913212._4 | |
355 | + | let priceBefore = divd(_qtAstR, _bsAstR) | |
356 | + | let marketPrice = divd(_quoteAssetAmount, amountBaseAssetBoughtAbs) | |
357 | + | let priceDiff = abs((priceBefore - marketPrice)) | |
358 | + | let priceImpact = (DECIMAL_UNIT - divd(priceBefore, (priceBefore + priceDiff))) | |
359 | + | let maxPriceImpactValue = maxPriceImpact() | |
360 | + | if ((priceImpact > maxPriceImpactValue)) | |
361 | + | 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))) | |
362 | + | else $Tuple5(amountBaseAssetBought, quoteAssetReserveAfter1, baseAssetReserveAfter1, totalPositionSizeAfter1, cumulativeNotionalAfter1) | |
363 | + | } | |
364 | + | ||
365 | + | ||
366 | + | func calcRemainMarginWithFundingPayment (_oldPositionSize,_oldPositionMargin,_oldPositionCumulativePremiumFraction,_marginDelta) = { | |
367 | + | let fundingPayment = if ((_oldPositionSize != 0)) | |
368 | + | then { | |
369 | + | let _latestCumulativePremiumFraction = latestCumulativePremiumFraction(_oldPositionSize) | |
370 | + | muld((_latestCumulativePremiumFraction - _oldPositionCumulativePremiumFraction), _oldPositionSize) | |
371 | + | } | |
372 | + | else 0 | |
373 | + | let signedMargin = ((_marginDelta - fundingPayment) + _oldPositionMargin) | |
374 | + | let $t01470314830 = if ((0 > signedMargin)) | |
375 | + | then $Tuple2(0, abs(signedMargin)) | |
376 | + | else $Tuple2(abs(signedMargin), 0) | |
377 | + | let remainMargin = $t01470314830._1 | |
378 | + | let badDebt = $t01470314830._2 | |
379 | + | $Tuple3(remainMargin, badDebt, fundingPayment) | |
380 | + | } | |
381 | + | ||
382 | + | ||
383 | + | func swapOutputWithReserves (_isAdd,_baseAssetAmount,_checkMaxPriceImpact,_quoteAssetReserve,_baseAssetReserve) = { | |
384 | + | let priceBefore = divd(_quoteAssetReserve, _baseAssetReserve) | |
385 | + | if ((_baseAssetAmount == 0)) | |
386 | + | then throw("Invalid base asset amount") | |
387 | + | else { | |
388 | + | let k = muld(_quoteAssetReserve, _baseAssetReserve) | |
389 | + | let baseAssetPoolAmountAfter = if (_isAdd) | |
390 | + | then (_baseAssetReserve + _baseAssetAmount) | |
391 | + | else (_baseAssetReserve - _baseAssetAmount) | |
392 | + | let quoteAssetAfter = divd(k, baseAssetPoolAmountAfter) | |
393 | + | let quoteAssetSold = abs((quoteAssetAfter - _quoteAssetReserve)) | |
394 | + | let maxPriceImpactValue = maxPriceImpact() | |
395 | + | let $t01580716000 = updateReserve(!(_isAdd), quoteAssetSold, _baseAssetAmount) | |
396 | + | let quoteAssetReserveAfter1 = $t01580716000._1 | |
397 | + | let baseAssetReserveAfter1 = $t01580716000._2 | |
398 | + | let totalPositionSizeAfter1 = $t01580716000._3 | |
399 | + | let cumulativeNotionalAfter1 = $t01580716000._4 | |
400 | + | let marketPrice = divd(quoteAssetSold, _baseAssetAmount) | |
401 | + | let priceDiff = abs((priceBefore - marketPrice)) | |
402 | + | let priceImpact = (DECIMAL_UNIT - divd(priceBefore, (priceBefore + priceDiff))) | |
403 | + | if (if ((priceImpact > maxPriceImpactValue)) | |
404 | + | then _checkMaxPriceImpact | |
405 | + | else false) | |
406 | + | 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))) | |
407 | + | else $Tuple8(quoteAssetSold, quoteAssetReserveAfter1, baseAssetReserveAfter1, totalPositionSizeAfter1, cumulativeNotionalAfter1, (totalLongPositionSize() - (if (_isAdd) | |
408 | + | then abs(_baseAssetAmount) | |
409 | + | else 0)), (totalShortPositionSize() - (if (!(_isAdd)) | |
410 | + | then abs(_baseAssetAmount) | |
411 | + | else 0)), priceImpact) | |
412 | + | } | |
413 | + | } | |
414 | + | ||
415 | + | ||
416 | + | func swapOutput (_isAdd,_baseAssetAmount,_checkMaxPriceImpact) = swapOutputWithReserves(_isAdd, _baseAssetAmount, _checkMaxPriceImpact, qtAstR(), bsAstR()) | |
417 | + | ||
418 | + | ||
419 | + | func getOracleTwapPrice () = { | |
420 | + | let oracle = valueOrErrorMessage(addressFromString(getStringValue(this, k_ora)), "") | |
421 | + | let priceKey = getStringValue(this, k_ora_key) | |
422 | + | let blockKey = getStringValue(this, k_ora_block_key) | |
423 | + | let lastValue = valueOrErrorMessage(getInteger(oracle, priceKey), ((("Can not get oracle price. Oracle: " + toString(oracle)) + " key: ") + priceKey)) | |
424 | + | lastValue | |
425 | + | } | |
426 | + | ||
427 | + | ||
428 | + | func requireNotOverSpreadLimit (_quoteAssetReserve,_baseAssetReserve) = { | |
429 | + | let oraclePrice = getOracleTwapPrice() | |
430 | + | let priceAfter = divd(_quoteAssetReserve, _baseAssetReserve) | |
431 | + | let averagePrice = divd((oraclePrice + priceAfter), (2 * DECIMAL_UNIT)) | |
432 | + | let absPriceDiff = divd(abs((oraclePrice - priceAfter)), averagePrice) | |
433 | + | if ((absPriceDiff > maxPriceSpread())) | |
434 | + | then throw(((("Price spread " + toString(absPriceDiff)) + " > max price spread ") + toString(maxPriceSpread()))) | |
435 | + | else true | |
436 | + | } | |
437 | + | ||
438 | + | ||
439 | + | func getSpotPrice () = { | |
440 | + | let _quoteAssetReserve = qtAstR() | |
441 | + | let _baseAssetReserve = bsAstR() | |
442 | + | divd(_quoteAssetReserve, _baseAssetReserve) | |
443 | + | } | |
444 | + | ||
445 | + | ||
446 | + | func isOverFluctuationLimit () = { | |
447 | + | let oraclePrice = getOracleTwapPrice() | |
448 | + | let currentPrice = getSpotPrice() | |
449 | + | (divd(abs((oraclePrice - currentPrice)), oraclePrice) > spreadLimit()) | |
450 | + | } | |
451 | + | ||
452 | + | ||
453 | + | func getPositionAdjustedOpenNotional (_positionSize,_option,_quoteAssetReserve,_baseAssetReserve) = { | |
454 | + | let positionSizeAbs = abs(_positionSize) | |
455 | + | let isShort = (0 > _positionSize) | |
456 | + | let positionNotional = if ((_option == PNL_OPTION_SPOT)) | |
457 | + | then { | |
458 | + | let $t01921819389 = swapOutputWithReserves(!(isShort), positionSizeAbs, false, _quoteAssetReserve, _baseAssetReserve) | |
459 | + | let outPositionNotional = $t01921819389._1 | |
460 | + | let x1 = $t01921819389._2 | |
461 | + | let x2 = $t01921819389._3 | |
462 | + | let x3 = $t01921819389._4 | |
463 | + | outPositionNotional | |
464 | + | } | |
465 | + | else muld(positionSizeAbs, getOracleTwapPrice()) | |
466 | + | positionNotional | |
467 | + | } | |
468 | + | ||
469 | + | ||
470 | + | func getPositionNotionalAndUnrealizedPnlByValues (_positionSize,_positionOpenNotional,_quoteAssetReserve,_baseAssetReserve,_option) = if ((_positionSize == 0)) | |
471 | + | then throw("Invalid position size") | |
472 | + | else { | |
473 | + | let isShort = (0 > _positionSize) | |
474 | + | let positionNotional = getPositionAdjustedOpenNotional(_positionSize, _option, _quoteAssetReserve, _baseAssetReserve) | |
475 | + | let unrealizedPnl = if (isShort) | |
476 | + | then (_positionOpenNotional - positionNotional) | |
477 | + | else (positionNotional - _positionOpenNotional) | |
478 | + | $Tuple2(positionNotional, unrealizedPnl) | |
479 | + | } | |
480 | + | ||
481 | + | ||
482 | + | func getPositionNotionalAndUnrealizedPnl (_trader,_option) = { | |
483 | + | let $t02070620834 = getPosition(_trader) | |
484 | + | let positionSize = $t02070620834._1 | |
485 | + | let positionMargin = $t02070620834._2 | |
486 | + | let positionOpenNotional = $t02070620834._3 | |
487 | + | let positionLstUpdCPF = $t02070620834._4 | |
488 | + | getPositionNotionalAndUnrealizedPnlByValues(positionSize, positionOpenNotional, qtAstR(), bsAstR(), _option) | |
489 | + | } | |
490 | + | ||
491 | + | ||
492 | + | func calcMarginRatio (_remainMargin,_badDebt,_positionNotional) = divd((_remainMargin - _badDebt), _positionNotional) | |
493 | + | ||
494 | + | ||
495 | + | func getMarginRatioByOption (_trader,_option) = { | |
496 | + | let $t02131521426 = getPosition(_trader) | |
497 | + | let positionSize = $t02131521426._1 | |
498 | + | let positionMargin = $t02131521426._2 | |
499 | + | let pon = $t02131521426._3 | |
500 | + | let positionLstUpdCPF = $t02131521426._4 | |
501 | + | let $t02143221525 = getPositionNotionalAndUnrealizedPnl(_trader, _option) | |
502 | + | let positionNotional = $t02143221525._1 | |
503 | + | let unrealizedPnl = $t02143221525._2 | |
504 | + | let $t02153021696 = calcRemainMarginWithFundingPayment(positionSize, positionMargin, positionLstUpdCPF, unrealizedPnl) | |
505 | + | let remainMargin = $t02153021696._1 | |
506 | + | let badDebt = $t02153021696._2 | |
507 | + | calcMarginRatio(remainMargin, badDebt, positionNotional) | |
508 | + | } | |
509 | + | ||
510 | + | ||
511 | + | func getMarginRatio (_trader) = getMarginRatioByOption(_trader, PNL_OPTION_SPOT) | |
512 | + | ||
513 | + | ||
514 | + | func getPartialLiquidationAmount (_trader,_positionSize) = { | |
515 | + | let maximumRatio = vmax(partialLiquidationRatio(), (DECIMAL_UNIT - divd(getMarginRatio(_trader), maintenanceMarginRatio()))) | |
516 | + | let maxExchangedPositionSize = muld(abs(_positionSize), maximumRatio) | |
517 | + | let swapResult = swapOutput((_positionSize > 0), maxExchangedPositionSize, false) | |
518 | + | let maxExchangedQuoteAssetAmount = swapResult._1 | |
519 | + | let priceImpact = swapResult._8 | |
520 | + | if ((maxPriceImpact() > priceImpact)) | |
521 | + | then maxExchangedQuoteAssetAmount | |
522 | + | else { | |
523 | + | let exchangedPositionSize = muld(abs(_positionSize), partialLiquidationRatio()) | |
524 | + | let exchangedQuoteAssetAmount = swapOutput((_positionSize > 0), exchangedPositionSize, false)._1 | |
525 | + | exchangedQuoteAssetAmount | |
526 | + | } | |
527 | + | } | |
528 | + | ||
529 | + | ||
530 | + | func internalClosePosition (_trader,_checkMaxPriceImpact) = { | |
531 | + | let $t02292923057 = getPosition(_trader) | |
532 | + | let positionSize = $t02292923057._1 | |
533 | + | let positionMargin = $t02292923057._2 | |
534 | + | let positionOpenNotional = $t02292923057._3 | |
535 | + | let positionLstUpdCPF = $t02292923057._4 | |
536 | + | let unrealizedPnl = getPositionNotionalAndUnrealizedPnl(_trader, PNL_OPTION_SPOT)._2 | |
537 | + | let $t02315223320 = calcRemainMarginWithFundingPayment(positionSize, positionMargin, positionLstUpdCPF, unrealizedPnl) | |
538 | + | let remainMargin = $t02315223320._1 | |
539 | + | let badDebt = $t02315223320._2 | |
540 | + | let exchangedPositionSize = -(positionSize) | |
541 | + | let realizedPnl = unrealizedPnl | |
542 | + | let marginToVault = -(remainMargin) | |
543 | + | let $t02344723758 = swapOutput((positionSize > 0), abs(positionSize), _checkMaxPriceImpact) | |
544 | + | let exchangedQuoteAssetAmount = $t02344723758._1 | |
545 | + | let quoteAssetReserveAfter = $t02344723758._2 | |
546 | + | let baseAssetReserveAfter = $t02344723758._3 | |
547 | + | let totalPositionSizeAfter = $t02344723758._4 | |
548 | + | let cumulativeNotionalAfter = $t02344723758._5 | |
549 | + | let totalLongAfter = $t02344723758._6 | |
550 | + | let totalShortAfter = $t02344723758._7 | |
551 | + | let openInterestNotionalAfter = (openInterestNotional() - positionOpenNotional) | |
552 | + | $Tuple12(exchangedPositionSize, badDebt, realizedPnl, marginToVault, quoteAssetReserveAfter, baseAssetReserveAfter, totalPositionSizeAfter, cumulativeNotionalAfter, openInterestNotionalAfter, exchangedQuoteAssetAmount, totalLongAfter, totalShortAfter) | |
553 | + | } | |
554 | + | ||
555 | + | ||
556 | + | func getTwapSpotPrice () = { | |
557 | + | let minuteId = ((lastBlock.timestamp / 1000) / 60) | |
558 | + | let startMinuteId = (minuteId - TWAP_INTERVAL) | |
559 | + | let listStr = valueOrElse(getString(this, k_lastDataStr), "") | |
560 | + | let list = split(listStr, ",") | |
561 | + | func filterFn (accumulator,next) = if ((startMinuteId >= parseIntValue(next))) | |
562 | + | then (accumulator :+ parseIntValue(next)) | |
563 | + | else accumulator | |
564 | + | ||
565 | + | let listF = { | |
566 | + | let $l = list | |
567 | + | let $s = size($l) | |
568 | + | let $acc0 = nil | |
569 | + | func $f0_1 ($a,$i) = if (($i >= $s)) | |
570 | + | then $a | |
571 | + | else filterFn($a, $l[$i]) | |
572 | + | ||
573 | + | func $f0_2 ($a,$i) = if (($i >= $s)) | |
574 | + | then $a | |
575 | + | else throw("List size exceeds 20") | |
576 | + | ||
577 | + | $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) | |
578 | + | } | |
579 | + | let maxIndex = if ((size(listF) > 0)) | |
580 | + | then max(listF) | |
581 | + | else parseIntValue(list[0]) | |
582 | + | let lastMinuteId = valueOrElse(getInteger(this, k_lastMinuteId), 0) | |
583 | + | let endLastCumulativePrice = valueOrElse(getInteger(this, ((k_twapDataLastCumulativePrice + "_") + toString(lastMinuteId))), 0) | |
584 | + | let endLastPrice = valueOrElse(getInteger(this, ((k_twapDataLastPrice + "_") + toString(lastMinuteId))), 0) | |
585 | + | let nowCumulativePrice = (endLastCumulativePrice + ((minuteId - lastMinuteId) * endLastPrice)) | |
586 | + | let startLastCumulativePrice = valueOrElse(getInteger(this, ((k_twapDataLastCumulativePrice + "_") + toString(maxIndex))), 0) | |
587 | + | let startLastPrice = valueOrElse(getInteger(this, ((k_twapDataLastPrice + "_") + toString(maxIndex))), 0) | |
588 | + | let startCumulativePrice = (startLastCumulativePrice + ((startMinuteId - maxIndex) * startLastPrice)) | |
589 | + | ((nowCumulativePrice - startCumulativePrice) / TWAP_INTERVAL) | |
590 | + | } | |
591 | + | ||
592 | + | ||
593 | + | func getPegAdjustCost (_price) = { | |
594 | + | let _positionSize = totalPositionSize() | |
595 | + | let direction = (_positionSize > 0) | |
596 | + | let currentNetMarketValue = swapOutput(direction, abs(_positionSize), false)._1 | |
597 | + | let baseAssetReserve = bsAstR() | |
598 | + | let newQuoteAssetReserve = muld(baseAssetReserve, _price) | |
599 | + | let cost = getPositionNotionalAndUnrealizedPnlByValues(_positionSize, currentNetMarketValue, newQuoteAssetReserve, baseAssetReserve, PNL_OPTION_SPOT)._2 | |
600 | + | $Tuple2(newQuoteAssetReserve, cost) | |
601 | + | } | |
602 | + | ||
603 | + | ||
604 | + | func getFunding () = { | |
605 | + | let underlyingPrice = getOracleTwapPrice() | |
606 | + | let spotTwapPrice = getTwapSpotPrice() | |
607 | + | let premium = (spotTwapPrice - underlyingPrice) | |
608 | + | if (if ((totalShortPositionSize() == 0)) | |
609 | + | then true | |
610 | + | else (totalLongPositionSize() == 0)) | |
611 | + | then $Tuple2(0, 0) | |
612 | + | else if ((0 > premium)) | |
613 | + | then { | |
614 | + | let shortPremiumFraction = divd(muld(premium, fundingPeriodDecimal()), ONE_DAY) | |
615 | + | let longPremiumFraction = divd(muld(shortPremiumFraction, totalShortPositionSize()), totalLongPositionSize()) | |
616 | + | $Tuple2(shortPremiumFraction, longPremiumFraction) | |
617 | + | } | |
618 | + | else { | |
619 | + | let longPremiumFraction = divd(muld(premium, fundingPeriodDecimal()), ONE_DAY) | |
620 | + | let shortPremiumFraction = divd(muld(longPremiumFraction, totalLongPositionSize()), totalShortPositionSize()) | |
621 | + | $Tuple2(shortPremiumFraction, longPremiumFraction) | |
622 | + | } | |
623 | + | } | |
624 | + | ||
625 | + | ||
626 | + | func updateSettings (_initMarginRatio,_mmr,_liquidationFeeRatio,_fundingPeriod,_fee,_spreadLimit,_maxPriceImpact,_partialLiquidationRatio,_maxPriceSpread) = [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)] | |
627 | + | ||
628 | + | ||
629 | + | 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)] | |
630 | + | ||
631 | + | ||
632 | + | 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)] | |
633 | + | ||
634 | + | ||
635 | + | func appendTwap (price) = { | |
636 | + | let minuteId = ((lastBlock.timestamp / 1000) / 60) | |
637 | + | let previousMinuteId = valueOrElse(getInteger(this, k_lastMinuteId), 0) | |
638 | + | if ((previousMinuteId > minuteId)) | |
639 | + | then throw("TWAP out-of-order") | |
640 | + | else { | |
641 | + | let lastMinuteId = if ((previousMinuteId == 0)) | |
642 | + | then minuteId | |
643 | + | else previousMinuteId | |
644 | + | if ((minuteId > previousMinuteId)) | |
645 | + | then { | |
646 | + | let prevCumulativePrice = valueOrElse(getInteger(this, ((k_twapDataLastCumulativePrice + "_") + toString(previousMinuteId))), 0) | |
647 | + | let prevPrice = valueOrElse(getInteger(this, ((k_twapDataLastPrice + "_") + toString(previousMinuteId))), price) | |
648 | + | let lastCumulativePrice = (prevCumulativePrice + ((minuteId - lastMinuteId) * prevPrice)) | |
649 | + | let list = pushToQueue(strToList(valueOrElse(getString(this, k_lastDataStr), "")), TWAP_INTERVAL, toString(minuteId)) | |
650 | + | [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))] | |
651 | + | } | |
652 | + | else { | |
653 | + | let twapDataPreviousMinuteId = valueOrElse(getInteger(this, toCompositeKey(k_twapDataPreviousMinuteId, toString(minuteId))), 0) | |
654 | + | let prevCumulativePrice = valueOrElse(getInteger(this, toCompositeKey(k_twapDataLastCumulativePrice, toString(twapDataPreviousMinuteId))), 0) | |
655 | + | let prevPrice = valueOrElse(getInteger(this, toCompositeKey(k_twapDataLastPrice, toString(twapDataPreviousMinuteId))), price) | |
656 | + | let lastCumulativePrice = (prevCumulativePrice + ((minuteId - twapDataPreviousMinuteId) * prevPrice)) | |
657 | + | [IntegerEntry(toCompositeKey(k_twapDataLastCumulativePrice, toString(minuteId)), lastCumulativePrice), IntegerEntry(toCompositeKey(k_twapDataLastPrice, toString(minuteId)), price)] | |
658 | + | } | |
659 | + | } | |
660 | + | } | |
661 | + | ||
662 | + | ||
663 | + | func updateAmmReserves (_qtAstR,_bsAstR) = [IntegerEntry(k_quoteAssetReserve, _qtAstR), IntegerEntry(k_baseAssetReserve, _bsAstR)] | |
664 | + | ||
665 | + | ||
666 | + | func updateAmm (_qtAstR,_bsAstR,_totalPositionSizeAfter,_cumulativeNotionalAfter,_openInterestNotional,_totalLongPositionSize,_totalShortPositionSize) = if (((_totalLongPositionSize - _totalShortPositionSize) != _totalPositionSizeAfter)) | |
667 | + | then throw(((((("Invalid AMM state data: " + toString(_totalLongPositionSize)) + " + ") + toString(_totalShortPositionSize)) + " != ") + toString(_totalPositionSizeAfter))) | |
668 | + | else ((updateAmmReserves(_qtAstR, _bsAstR) ++ [IntegerEntry(k_totalPositionSize, _totalPositionSizeAfter), IntegerEntry(k_cumulativeNotional, _cumulativeNotionalAfter), IntegerEntry(k_openInterestNotional, _openInterestNotional), IntegerEntry(k_totalLongPositionSize, _totalLongPositionSize), IntegerEntry(k_totalShortPositionSize, _totalShortPositionSize)]) ++ appendTwap(divd(_qtAstR, _bsAstR))) | |
669 | + | ||
670 | + | ||
671 | + | func deletePosition (_address) = [DeleteEntry(toCompositeKey(k_positionSize, _address)), DeleteEntry(toCompositeKey(k_positionMargin, _address)), DeleteEntry(toCompositeKey(k_positionOpenNotional, _address)), DeleteEntry(toCompositeKey(k_positionLastUpdatedCumulativePremiumFraction, _address)), IntegerEntry(toCompositeKey(k_positionClosedDate, _address), lastBlock.timestamp)] | |
672 | + | ||
673 | + | ||
674 | + | func withdraw (_address,_amount) = { | |
675 | + | let balance = assetBalance(this, quoteAsset()) | |
676 | + | if ((_amount > balance)) | |
677 | + | then throw(((("Unable to withdraw " + toString(_amount)) + " from contract balance ") + toString(balance))) | |
678 | + | else [ScriptTransfer(_address, _amount, quoteAsset())] | |
679 | + | } | |
680 | + | ||
681 | + | ||
682 | + | func updateBalance (i) = if ((0 > i)) | |
683 | + | then throw("Balance") | |
684 | + | else [IntegerEntry(k_balance, i)] | |
685 | + | ||
686 | + | ||
687 | + | func transferFee (i) = [ScriptTransfer(stakingAddress(), i, quoteAsset())] | |
688 | + | ||
689 | + | ||
690 | + | @Callable(i) | |
691 | + | func pause () = if ((i.caller != adminAddress())) | |
692 | + | then throw("Invalid togglePause params") | |
693 | + | else [BooleanEntry(k_paused, true)] | |
694 | + | ||
695 | + | ||
696 | + | ||
697 | + | @Callable(i) | |
698 | + | func unpause () = if ((i.caller != adminAddress())) | |
699 | + | then throw("Invalid togglePause params") | |
700 | + | else [BooleanEntry(k_paused, false)] | |
701 | + | ||
702 | + | ||
703 | + | ||
704 | + | @Callable(i) | |
705 | + | func addLiquidity (_quoteAssetAmount) = if (if ((i.caller != adminAddress())) | |
706 | + | then true | |
707 | + | else (0 >= _quoteAssetAmount)) | |
708 | + | then throw("Invalid addLiquidity params") | |
709 | + | else { | |
710 | + | let _qtAstR = qtAstR() | |
711 | + | let _bsAstR = bsAstR() | |
712 | + | let price = divd(_qtAstR, _bsAstR) | |
713 | + | let baseAssetAmountToAdd = divd(_quoteAssetAmount, price) | |
714 | + | let qtAstRAfter = (_qtAstR + _quoteAssetAmount) | |
715 | + | let bsAstRAfter = (_bsAstR + baseAssetAmountToAdd) | |
716 | + | updateAmmReserves(qtAstRAfter, bsAstRAfter) | |
717 | + | } | |
718 | + | ||
719 | + | ||
720 | + | ||
721 | + | @Callable(i) | |
722 | + | func removeLiquidity (_quoteAssetAmount) = if (if ((i.caller != adminAddress())) | |
723 | + | then true | |
724 | + | else (0 >= _quoteAssetAmount)) | |
725 | + | then throw("Invalid removeLiquidity params") | |
726 | + | else { | |
727 | + | let _qtAstR = qtAstR() | |
728 | + | let _bsAstR = bsAstR() | |
729 | + | let price = divd(_qtAstR, _bsAstR) | |
730 | + | let baseAssetAmountToRemove = divd(_quoteAssetAmount, price) | |
731 | + | let qtAstRAfter = (_qtAstR - _quoteAssetAmount) | |
732 | + | let bsAstRAfter = (_bsAstR - baseAssetAmountToRemove) | |
733 | + | updateAmmReserves(qtAstRAfter, bsAstRAfter) | |
734 | + | } | |
735 | + | ||
736 | + | ||
737 | + | ||
738 | + | @Callable(i) | |
739 | + | func changeSettings (_initMarginRatio,_mmr,_liquidationFeeRatio,_fundingPeriod,_fee,_spreadLimit,_maxPriceImpact,_partialLiquidationRatio,_maxPriceSpread) = if ((i.caller != adminAddress())) | |
740 | + | then throw("Invalid changeSettings params") | |
741 | + | else updateSettings(_initMarginRatio, _mmr, _liquidationFeeRatio, _fundingPeriod, _fee, _spreadLimit, _maxPriceImpact, _partialLiquidationRatio, _maxPriceSpread) | |
742 | + | ||
743 | + | ||
744 | + | ||
745 | + | @Callable(i) | |
746 | + | func initialize (_qtAstR,_bsAstR,_fundingPeriod,_initMarginRatio,_mmr,_liquidationFeeRatio,_fee,_oracle,_oracleKey,_coordinator,_spreadLimit,_maxPriceImpact,_partialLiquidationRatio,_maxPriceSpread) = if (if (if (if (if (if (if (if (if (if (if (if ((0 >= _qtAstR)) | |
747 | + | then true | |
748 | + | else (0 >= _bsAstR)) | |
749 | + | then true | |
750 | + | else (0 >= _fundingPeriod)) | |
751 | + | then true | |
752 | + | else (0 >= _initMarginRatio)) | |
753 | + | then true | |
754 | + | else (0 >= _mmr)) | |
755 | + | then true | |
756 | + | else (0 >= _liquidationFeeRatio)) | |
757 | + | then true | |
758 | + | else (0 >= _fee)) | |
759 | + | then true | |
760 | + | else (0 >= _spreadLimit)) | |
761 | + | then true | |
762 | + | else (0 >= _maxPriceImpact)) | |
763 | + | then true | |
764 | + | else (0 >= _partialLiquidationRatio)) | |
765 | + | then true | |
766 | + | else (0 >= _maxPriceSpread)) | |
767 | + | then true | |
768 | + | else initialized()) | |
769 | + | then throw("Invalid initialize parameters") | |
770 | + | else ((((updateAmm(_qtAstR, _bsAstR, 0, 0, 0, 0, 0) ++ updateSettings(_initMarginRatio, _mmr, _liquidationFeeRatio, _fundingPeriod, _fee, _spreadLimit, _maxPriceImpact, _partialLiquidationRatio, _maxPriceSpread)) ++ 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_coordinatorAddress, _coordinator)]) | |
771 | + | ||
772 | + | ||
773 | + | ||
774 | + | @Callable(i) | |
775 | + | func setInitMarginRatio (_initMarginRatio) = if (if ((0 >= _initMarginRatio)) | |
776 | + | then true | |
777 | + | else !(initialized())) | |
778 | + | then throw("Invalid setInitMarginRatio parameters") | |
779 | + | else updateSettings(_initMarginRatio, maintenanceMarginRatio(), liquidationFeeRatio(), fundingPeriodRaw(), fee(), spreadLimit(), maxPriceImpact(), partialLiquidationRatio(), maxPriceSpread()) | |
780 | + | ||
781 | + | ||
782 | + | ||
783 | + | @Callable(i) | |
784 | + | func decreasePosition (_amount,_leverage,_minBaseAssetAmount) = if (if (if (if (if ((0 >= _amount)) | |
785 | + | then true | |
786 | + | else !(initialized())) | |
787 | + | then true | |
788 | + | else !(requireMoreMarginRatio(divd(DECIMAL_UNIT, _leverage), initMarginRatio(), true))) | |
789 | + | then true | |
790 | + | else !(requireOpenPosition(toString(i.caller)))) | |
791 | + | then true | |
792 | + | else paused()) | |
793 | + | then throw("Invalid decreasePosition parameters") | |
794 | + | else { | |
795 | + | let $t03753437686 = getPosition(toString(i.caller)) | |
796 | + | let oldPositionSize = $t03753437686._1 | |
797 | + | let oldPositionMargin = $t03753437686._2 | |
798 | + | let oldPositionOpenNotional = $t03753437686._3 | |
799 | + | let oldPositionLstUpdCPF = $t03753437686._4 | |
800 | + | let _direction = if ((oldPositionSize > 0)) | |
801 | + | then DIR_SHORT | |
802 | + | else DIR_LONG | |
803 | + | let isAdd = (_direction == DIR_LONG) | |
804 | + | let openNotional = muld(_amount, _leverage) | |
805 | + | let $t03785937975 = getPositionNotionalAndUnrealizedPnl(toString(i.caller), PNL_OPTION_SPOT) | |
806 | + | let oldPositionNotional = $t03785937975._1 | |
807 | + | let unrealizedPnl = $t03785937975._2 | |
808 | + | let $t03798140530 = if ((oldPositionNotional > openNotional)) | |
809 | + | then { | |
810 | + | let $t03835838577 = swapInput(isAdd, openNotional) | |
811 | + | let exchangedPositionSize = $t03835838577._1 | |
812 | + | let quoteAssetReserveAfter = $t03835838577._2 | |
813 | + | let baseAssetReserveAfter = $t03835838577._3 | |
814 | + | let totalPositionSizeAfter = $t03835838577._4 | |
815 | + | let cumulativeNotionalAfter = $t03835838577._5 | |
816 | + | let exchangedPositionSizeAbs = abs(exchangedPositionSize) | |
817 | + | if (if ((_minBaseAssetAmount != 0)) | |
818 | + | then (_minBaseAssetAmount > exchangedPositionSizeAbs) | |
819 | + | else false) | |
820 | + | then throw(((("Too little base asset exchanged, got " + toString(exchangedPositionSizeAbs)) + " expected ") + toString(_minBaseAssetAmount))) | |
821 | + | else { | |
822 | + | let realizedPnl = divd(muld(unrealizedPnl, exchangedPositionSizeAbs), abs(oldPositionSize)) | |
823 | + | let $t03901439259 = calcRemainMarginWithFundingPayment(oldPositionSize, oldPositionMargin, oldPositionLstUpdCPF, realizedPnl) | |
824 | + | let remainMargin = $t03901439259._1 | |
825 | + | let badDebt = $t03901439259._2 | |
826 | + | let fundingPayment = $t03901439259._3 | |
827 | + | let exchangedQuoteAssetAmount = openNotional | |
828 | + | let unrealizedPnlAfter = (unrealizedPnl - realizedPnl) | |
829 | + | let remainOpenNotional = if ((oldPositionSize > 0)) | |
830 | + | then ((oldPositionNotional - exchangedQuoteAssetAmount) - unrealizedPnlAfter) | |
831 | + | else ((unrealizedPnlAfter + oldPositionNotional) - exchangedQuoteAssetAmount) | |
832 | + | let newPositionSize = (oldPositionSize + exchangedPositionSize) | |
833 | + | $Tuple11(newPositionSize, remainMargin, abs(remainOpenNotional), latestCumulativePremiumFraction(newPositionSize), baseAssetReserveAfter, quoteAssetReserveAfter, totalPositionSizeAfter, cumulativeNotionalAfter, (openInterestNotional() - openNotional), (totalLongPositionSize() - (if ((newPositionSize > 0)) | |
834 | + | then abs(exchangedPositionSize) | |
835 | + | else 0)), (totalShortPositionSize() - (if ((0 > newPositionSize)) | |
836 | + | then abs(exchangedPositionSize) | |
837 | + | else 0))) | |
838 | + | } | |
839 | + | } | |
840 | + | else throw("Close position first") | |
841 | + | let newPositionSize = $t03798140530._1 | |
842 | + | let newPositionRemainMargin = $t03798140530._2 | |
843 | + | let newPositionOpenNotional = $t03798140530._3 | |
844 | + | let newPositionLatestCPF = $t03798140530._4 | |
845 | + | let baseAssetReserveAfter = $t03798140530._5 | |
846 | + | let quoteAssetReserveAfter = $t03798140530._6 | |
847 | + | let totalPositionSizeAfter = $t03798140530._7 | |
848 | + | let cumulativeNotionalAfter = $t03798140530._8 | |
849 | + | let openInterestNotionalAfter = $t03798140530._9 | |
850 | + | let totalLongAfter = $t03798140530._10 | |
851 | + | let totalShortAfter = $t03798140530._11 | |
852 | + | let notifyNotional = invoke(minerAddress(), "notifyNotional", [toString(i.caller), newPositionOpenNotional], nil) | |
853 | + | if ((notifyNotional == notifyNotional)) | |
854 | + | then (updatePosition(toString(i.caller), newPositionSize, newPositionRemainMargin, newPositionOpenNotional, newPositionLatestCPF) ++ updateAmm(quoteAssetReserveAfter, baseAssetReserveAfter, totalPositionSizeAfter, cumulativeNotionalAfter, openInterestNotionalAfter, totalLongAfter, totalShortAfter)) | |
855 | + | else throw("Strict value is not equal to itself.") | |
856 | + | } | |
857 | + | ||
858 | + | ||
859 | + | ||
860 | + | @Callable(i) | |
861 | + | func increasePosition (_direction,_leverage,_minBaseAssetAmount,_refLink) = { | |
862 | + | let _rawAmount = i.payments[0].amount | |
863 | + | if (if (if (if (if (if (if ((_direction != DIR_LONG)) | |
864 | + | then (_direction != DIR_SHORT) | |
865 | + | else false) | |
866 | + | then true | |
867 | + | else (0 >= _rawAmount)) | |
868 | + | then true | |
869 | + | else !(initialized())) | |
870 | + | then true | |
871 | + | else (i.payments[0].assetId != quoteAsset())) | |
872 | + | then true | |
873 | + | else !(requireMoreMarginRatio(divd(DECIMAL_UNIT, _leverage), initMarginRatio(), true))) | |
874 | + | then true | |
875 | + | else paused()) | |
876 | + | then throw("Invalid increasePosition parameters") | |
877 | + | else { | |
878 | + | let _trader = toString(i.caller) | |
879 | + | let rawFeeAmount = muld(_rawAmount, fee()) | |
880 | + | let referrerFeeAny = invoke(referralAddress(), "acceptPaymentWithLink", [_trader, _refLink], [AttachedPayment(quoteAsset(), rawFeeAmount)]) | |
881 | + | if ((referrerFeeAny == referrerFeeAny)) | |
882 | + | then { | |
883 | + | let referrerFee = match referrerFeeAny { | |
884 | + | case x: Int => | |
885 | + | x | |
886 | + | case _ => | |
887 | + | throw("Invalid referrerFee") | |
888 | + | } | |
889 | + | let _amount = (_rawAmount - rawFeeAmount) | |
890 | + | let feeAmount = (rawFeeAmount - referrerFee) | |
891 | + | let $t04205942199 = getPosition(_trader) | |
892 | + | let oldPositionSize = $t04205942199._1 | |
893 | + | let oldPositionMargin = $t04205942199._2 | |
894 | + | let oldPositionOpenNotional = $t04205942199._3 | |
895 | + | let oldPositionLstUpdCPF = $t04205942199._4 | |
896 | + | let isNewPosition = (oldPositionSize == 0) | |
897 | + | let isSameDirection = if ((oldPositionSize > 0)) | |
898 | + | then (_direction == DIR_LONG) | |
899 | + | else (_direction == DIR_SHORT) | |
900 | + | let expandExisting = if (!(isNewPosition)) | |
901 | + | then isSameDirection | |
902 | + | else false | |
903 | + | let isAdd = (_direction == DIR_LONG) | |
904 | + | let $t04248845056 = if (if (isNewPosition) | |
905 | + | then true | |
906 | + | else expandExisting) | |
907 | + | then { | |
908 | + | let openNotional = muld(_amount, _leverage) | |
909 | + | let $t04291243118 = swapInput(isAdd, openNotional) | |
910 | + | let amountBaseAssetBought = $t04291243118._1 | |
911 | + | let quoteAssetReserveAfter = $t04291243118._2 | |
912 | + | let baseAssetReserveAfter = $t04291243118._3 | |
913 | + | let totalPositionSizeAfter = $t04291243118._4 | |
914 | + | let cumulativeNotionalAfter = $t04291243118._5 | |
915 | + | if (if ((_minBaseAssetAmount != 0)) | |
916 | + | then (_minBaseAssetAmount > abs(amountBaseAssetBought)) | |
917 | + | else false) | |
918 | + | then throw(((("Limit error: " + toString(abs(amountBaseAssetBought))) + " < ") + toString(_minBaseAssetAmount))) | |
919 | + | else { | |
920 | + | let newPositionSize = (oldPositionSize + amountBaseAssetBought) | |
921 | + | let increaseMarginRequirement = divd(openNotional, _leverage) | |
922 | + | let $t04349943738 = calcRemainMarginWithFundingPayment(oldPositionSize, oldPositionMargin, oldPositionLstUpdCPF, increaseMarginRequirement) | |
923 | + | let remainMargin = $t04349943738._1 | |
924 | + | let x1 = $t04349943738._2 | |
925 | + | let x2 = $t04349943738._3 | |
926 | + | if (!(requireNotOverSpreadLimit(quoteAssetReserveAfter, baseAssetReserveAfter))) | |
927 | + | then throw("Over max spread limit") | |
928 | + | else $Tuple11(newPositionSize, remainMargin, (oldPositionOpenNotional + openNotional), latestCumulativePremiumFraction(newPositionSize), baseAssetReserveAfter, quoteAssetReserveAfter, totalPositionSizeAfter, cumulativeNotionalAfter, (openInterestNotional() + openNotional), (totalLongPositionSize() + (if ((newPositionSize > 0)) | |
929 | + | then abs(amountBaseAssetBought) | |
930 | + | else 0)), (totalShortPositionSize() + (if ((0 > newPositionSize)) | |
931 | + | then abs(amountBaseAssetBought) | |
932 | + | else 0))) | |
933 | + | } | |
934 | + | } | |
935 | + | else { | |
936 | + | let openNotional = muld(_amount, _leverage) | |
937 | + | let $t04474944865 = getPositionNotionalAndUnrealizedPnl(toString(i.caller), PNL_OPTION_SPOT) | |
938 | + | let oldPositionNotional = $t04474944865._1 | |
939 | + | let unrealizedPnl = $t04474944865._2 | |
940 | + | if ((oldPositionNotional > openNotional)) | |
941 | + | then throw("Use decreasePosition to decrease position size") | |
942 | + | else throw("Close position first") | |
943 | + | } | |
944 | + | let newPositionSize = $t04248845056._1 | |
945 | + | let newPositionRemainMargin = $t04248845056._2 | |
946 | + | let newPositionOpenNotional = $t04248845056._3 | |
947 | + | let newPositionLatestCPF = $t04248845056._4 | |
948 | + | let baseAssetReserveAfter = $t04248845056._5 | |
949 | + | let quoteAssetReserveAfter = $t04248845056._6 | |
950 | + | let totalPositionSizeAfter = $t04248845056._7 | |
951 | + | let cumulativeNotionalAfter = $t04248845056._8 | |
952 | + | let openInterestNotionalAfter = $t04248845056._9 | |
953 | + | let totalLongAfter = $t04248845056._10 | |
954 | + | let totalShortAfter = $t04248845056._11 | |
955 | + | let feeToStakers = (feeAmount / 2) | |
956 | + | let feeToInsurance = (feeAmount - feeToStakers) | |
957 | + | let stake = invoke(managerAddress(), "deposit", nil, [AttachedPayment(quoteAsset(), _amount)]) | |
958 | + | if ((stake == stake)) | |
959 | + | then { | |
960 | + | let depositInsurance = invoke(insuranceAddress(), "deposit", nil, [AttachedPayment(quoteAsset(), feeToInsurance)]) | |
961 | + | if ((depositInsurance == depositInsurance)) | |
962 | + | then { | |
963 | + | let notifyFee = invoke(minerAddress(), "notifyFees", [_trader, feeAmount], nil) | |
964 | + | if ((notifyFee == notifyFee)) | |
965 | + | then { | |
966 | + | let notifyNotional = invoke(minerAddress(), "notifyNotional", [_trader, newPositionOpenNotional], nil) | |
967 | + | if ((notifyNotional == notifyNotional)) | |
968 | + | then (((updatePosition(_trader, newPositionSize, newPositionRemainMargin, newPositionOpenNotional, newPositionLatestCPF) ++ updateAmm(quoteAssetReserveAfter, baseAssetReserveAfter, totalPositionSizeAfter, cumulativeNotionalAfter, openInterestNotionalAfter, totalLongAfter, totalShortAfter)) ++ transferFee(feeToStakers)) ++ updateBalance((cbalance() + _amount))) | |
969 | + | else throw("Strict value is not equal to itself.") | |
970 | + | } | |
971 | + | else throw("Strict value is not equal to itself.") | |
972 | + | } | |
973 | + | else throw("Strict value is not equal to itself.") | |
974 | + | } | |
975 | + | else throw("Strict value is not equal to itself.") | |
976 | + | } | |
977 | + | else throw("Strict value is not equal to itself.") | |
978 | + | } | |
979 | + | } | |
980 | + | ||
981 | + | ||
982 | + | ||
983 | + | @Callable(i) | |
984 | + | func addMargin () = { | |
985 | + | let _rawAmount = i.payments[0].amount | |
986 | + | if (if (if (if ((i.payments[0].assetId != quoteAsset())) | |
987 | + | then true | |
988 | + | else !(requireOpenPosition(toString(i.caller)))) | |
989 | + | then true | |
990 | + | else !(initialized())) | |
991 | + | then true | |
992 | + | else paused()) | |
993 | + | then throw("Invalid addMargin parameters") | |
994 | + | else { | |
995 | + | let _trader = toString(i.caller) | |
996 | + | let rawFeeAmount = muld(_rawAmount, fee()) | |
997 | + | let referrerFeeAny = invoke(referralAddress(), "acceptPayment", [_trader], [AttachedPayment(quoteAsset(), rawFeeAmount)]) | |
998 | + | if ((referrerFeeAny == referrerFeeAny)) | |
999 | + | then { | |
1000 | + | let referrerFee = match referrerFeeAny { | |
1001 | + | case x: Int => | |
1002 | + | x | |
1003 | + | case _ => | |
1004 | + | throw("Invalid referrerFee") | |
1005 | + | } | |
1006 | + | let feeAmount = (rawFeeAmount - referrerFee) | |
1007 | + | let _amount = (_rawAmount - rawFeeAmount) | |
1008 | + | let $t04690247042 = getPosition(_trader) | |
1009 | + | let oldPositionSize = $t04690247042._1 | |
1010 | + | let oldPositionMargin = $t04690247042._2 | |
1011 | + | let oldPositionOpenNotional = $t04690247042._3 | |
1012 | + | let oldPositionLstUpdCPF = $t04690247042._4 | |
1013 | + | let feeToStakers = (feeAmount / 2) | |
1014 | + | let feeToInsurance = (feeAmount - feeToStakers) | |
1015 | + | let stake = invoke(managerAddress(), "deposit", nil, [AttachedPayment(quoteAsset(), _amount)]) | |
1016 | + | if ((stake == stake)) | |
1017 | + | then { | |
1018 | + | let depositInsurance = invoke(insuranceAddress(), "deposit", nil, [AttachedPayment(quoteAsset(), feeToInsurance)]) | |
1019 | + | if ((depositInsurance == depositInsurance)) | |
1020 | + | then { | |
1021 | + | let notifyFee = invoke(minerAddress(), "notifyFees", [_trader, feeAmount], nil) | |
1022 | + | if ((notifyFee == notifyFee)) | |
1023 | + | then ((updatePosition(_trader, oldPositionSize, (oldPositionMargin + _amount), oldPositionOpenNotional, oldPositionLstUpdCPF) ++ transferFee(feeToStakers)) ++ updateBalance((cbalance() + _amount))) | |
1024 | + | else throw("Strict value is not equal to itself.") | |
1025 | + | } | |
1026 | + | else throw("Strict value is not equal to itself.") | |
1027 | + | } | |
1028 | + | else throw("Strict value is not equal to itself.") | |
1029 | + | } | |
1030 | + | else throw("Strict value is not equal to itself.") | |
1031 | + | } | |
1032 | + | } | |
1033 | + | ||
1034 | + | ||
1035 | + | ||
1036 | + | @Callable(i) | |
1037 | + | func removeMargin (_amount) = if (if (if (if ((0 >= _amount)) | |
1038 | + | then true | |
1039 | + | else !(requireOpenPosition(toString(i.caller)))) | |
1040 | + | then true | |
1041 | + | else !(initialized())) | |
1042 | + | then true | |
1043 | + | else paused()) | |
1044 | + | then throw("Invalid removeMargin parameters") | |
1045 | + | else { | |
1046 | + | let $t04801848170 = getPosition(toString(i.caller)) | |
1047 | + | let oldPositionSize = $t04801848170._1 | |
1048 | + | let oldPositionMargin = $t04801848170._2 | |
1049 | + | let oldPositionOpenNotional = $t04801848170._3 | |
1050 | + | let oldPositionLstUpdCPF = $t04801848170._4 | |
1051 | + | let marginDelta = -(_amount) | |
1052 | + | let $t04820748386 = calcRemainMarginWithFundingPayment(oldPositionSize, oldPositionMargin, oldPositionLstUpdCPF, marginDelta) | |
1053 | + | let remainMargin = $t04820748386._1 | |
1054 | + | let badDebt = $t04820748386._2 | |
1055 | + | if ((badDebt != 0)) | |
1056 | + | then throw("Invalid removed margin amount") | |
1057 | + | else { | |
1058 | + | let marginRatio = calcMarginRatio(remainMargin, badDebt, oldPositionOpenNotional) | |
1059 | + | if (!(requireMoreMarginRatio(marginRatio, initMarginRatio(), true))) | |
1060 | + | then throw(((("Too much margin removed: " + toString(marginRatio)) + " < ") + toString(initMarginRatio()))) | |
1061 | + | else { | |
1062 | + | let unstake = invoke(managerAddress(), "withdraw", [toBase58String(quoteAsset()), _amount], nil) | |
1063 | + | if ((unstake == unstake)) | |
1064 | + | then ((updatePosition(toString(i.caller), oldPositionSize, remainMargin, oldPositionOpenNotional, latestCumulativePremiumFraction(oldPositionSize)) ++ withdraw(i.caller, _amount)) ++ updateBalance((cbalance() - _amount))) | |
1065 | + | else throw("Strict value is not equal to itself.") | |
1066 | + | } | |
1067 | + | } | |
1068 | + | } | |
1069 | + | ||
1070 | + | ||
1071 | + | ||
1072 | + | @Callable(i) | |
1073 | + | func closePosition () = { | |
1074 | + | let caller = getActualCaller(i) | |
1075 | + | let callerAddress = valueOrErrorMessage(addressFromString(caller), "Invalid caller") | |
1076 | + | if (if (if (!(requireOpenPosition(caller))) | |
1077 | + | then true | |
1078 | + | else !(initialized())) | |
1079 | + | then true | |
1080 | + | else paused()) | |
1081 | + | then throw("Invalid closePosition parameters") | |
1082 | + | else { | |
1083 | + | let $t04958049957 = internalClosePosition(caller, true) | |
1084 | + | let x1 = $t04958049957._1 | |
1085 | + | let positionBadDebt = $t04958049957._2 | |
1086 | + | let realizedPnl = $t04958049957._3 | |
1087 | + | let marginToVault = $t04958049957._4 | |
1088 | + | let quoteAssetReserveAfter = $t04958049957._5 | |
1089 | + | let baseAssetReserveAfter = $t04958049957._6 | |
1090 | + | let totalPositionSizeAfter = $t04958049957._7 | |
1091 | + | let cumulativeNotionalAfter = $t04958049957._8 | |
1092 | + | let openInterestNotionalAfter = $t04958049957._9 | |
1093 | + | let x2 = $t04958049957._10 | |
1094 | + | let totalLongAfter = $t04958049957._11 | |
1095 | + | let totalShortAfter = $t04958049957._12 | |
1096 | + | if ((positionBadDebt > 0)) | |
1097 | + | then throw("Unable to close position with bad debt") | |
1098 | + | else { | |
1099 | + | let withdrawAmount = abs(marginToVault) | |
1100 | + | let ammBalance = (cbalance() - withdrawAmount) | |
1101 | + | let $t05016650308 = if ((0 > ammBalance)) | |
1102 | + | then $Tuple2(0, abs(ammBalance)) | |
1103 | + | else $Tuple2(ammBalance, 0) | |
1104 | + | let ammNewBalance = $t05016650308._1 | |
1105 | + | let getFromInsurance = $t05016650308._2 | |
1106 | + | let x = if ((getFromInsurance > 0)) | |
1107 | + | then { | |
1108 | + | let withdrawInsurance = invoke(insuranceAddress(), "withdraw", [getFromInsurance], nil) | |
1109 | + | if ((withdrawInsurance == withdrawInsurance)) | |
1110 | + | then nil | |
1111 | + | else throw("Strict value is not equal to itself.") | |
1112 | + | } | |
1113 | + | else nil | |
1114 | + | if ((x == x)) | |
1115 | + | then { | |
1116 | + | let unstake = invoke(managerAddress(), "withdraw", [toBase58String(quoteAsset()), (withdrawAmount - getFromInsurance)], nil) | |
1117 | + | if ((unstake == unstake)) | |
1118 | + | then { | |
1119 | + | let notifyNotional = invoke(minerAddress(), "notifyNotional", [caller, 0], nil) | |
1120 | + | if ((notifyNotional == notifyNotional)) | |
1121 | + | then (((deletePosition(caller) ++ updateAmm(quoteAssetReserveAfter, baseAssetReserveAfter, totalPositionSizeAfter, cumulativeNotionalAfter, openInterestNotionalAfter, totalLongAfter, totalShortAfter)) ++ withdraw(callerAddress, withdrawAmount)) ++ updateBalance(ammNewBalance)) | |
1122 | + | else throw("Strict value is not equal to itself.") | |
1123 | + | } | |
1124 | + | else throw("Strict value is not equal to itself.") | |
1125 | + | } | |
1126 | + | else throw("Strict value is not equal to itself.") | |
1127 | + | } | |
1128 | + | } | |
1129 | + | } | |
1130 | + | ||
1131 | + | ||
1132 | + | ||
1133 | + | @Callable(i) | |
1134 | + | func liquidate (_trader) = { | |
1135 | + | let spotMarginRatio = getMarginRatioByOption(_trader, PNL_OPTION_SPOT) | |
1136 | + | let marginRatio = if (isOverFluctuationLimit()) | |
1137 | + | then { | |
1138 | + | let oracleMarginRatio = getMarginRatioByOption(_trader, PNL_OPTION_ORACLE) | |
1139 | + | vmax(spotMarginRatio, oracleMarginRatio) | |
1140 | + | } | |
1141 | + | else spotMarginRatio | |
1142 | + | if (if (if (if (!(requireMoreMarginRatio(marginRatio, maintenanceMarginRatio(), false))) | |
1143 | + | then true | |
1144 | + | else !(requireOpenPosition(_trader))) | |
1145 | + | then true | |
1146 | + | else !(initialized())) | |
1147 | + | then true | |
1148 | + | else paused()) | |
1149 | + | then throw("Unable to liquidate") | |
1150 | + | else if (if (if ((spotMarginRatio > liquidationFeeRatio())) | |
1151 | + | then (partialLiquidationRatio() > 0) | |
1152 | + | else false) | |
1153 | + | then (DECIMAL_UNIT > partialLiquidationRatio()) | |
1154 | + | else false) | |
1155 | + | then { | |
1156 | + | let $t05237952529 = getPosition(_trader) | |
1157 | + | let oldPositionSize = $t05237952529._1 | |
1158 | + | let oldPositionMargin = $t05237952529._2 | |
1159 | + | let oldPositionOpenNotional = $t05237952529._3 | |
1160 | + | let oldPositionLstUpdCPF = $t05237952529._4 | |
1161 | + | let _direction = if ((oldPositionSize > 0)) | |
1162 | + | then DIR_SHORT | |
1163 | + | else DIR_LONG | |
1164 | + | let isAdd = (_direction == DIR_LONG) | |
1165 | + | let exchangedQuoteAssetAmount = getPartialLiquidationAmount(_trader, oldPositionSize) | |
1166 | + | let $t05275452858 = getPositionNotionalAndUnrealizedPnl(_trader, PNL_OPTION_SPOT) | |
1167 | + | let oldPositionNotional = $t05275452858._1 | |
1168 | + | let unrealizedPnl = $t05275452858._2 | |
1169 | + | let $t05286653156 = swapInput(isAdd, exchangedQuoteAssetAmount) | |
1170 | + | let exchangedPositionSize = $t05286653156._1 | |
1171 | + | let quoteAssetReserveAfter = $t05286653156._2 | |
1172 | + | let baseAssetReserveAfter = $t05286653156._3 | |
1173 | + | let totalPositionSizeAfter = $t05286653156._4 | |
1174 | + | let cumulativeNotionalAfter = $t05286653156._5 | |
1175 | + | let realizedPnl = divd(muld(unrealizedPnl, abs(exchangedPositionSize)), abs(oldPositionSize)) | |
1176 | + | let $t05326353496 = calcRemainMarginWithFundingPayment(oldPositionSize, oldPositionMargin, oldPositionLstUpdCPF, realizedPnl) | |
1177 | + | let remainMargin = $t05326353496._1 | |
1178 | + | let badDebt = $t05326353496._2 | |
1179 | + | let fundingPayment = $t05326353496._3 | |
1180 | + | let unrealizedPnlAfter = (unrealizedPnl - realizedPnl) | |
1181 | + | let remainOpenNotional = if ((oldPositionSize > 0)) | |
1182 | + | then ((oldPositionNotional - exchangedQuoteAssetAmount) - unrealizedPnlAfter) | |
1183 | + | else ((unrealizedPnlAfter + oldPositionNotional) - exchangedQuoteAssetAmount) | |
1184 | + | let liquidationPenalty = muld(exchangedQuoteAssetAmount, liquidationFeeRatio()) | |
1185 | + | let feeToLiquidator = (liquidationPenalty / 2) | |
1186 | + | let feeToInsurance = (liquidationPenalty - feeToLiquidator) | |
1187 | + | let newPositionMargin = (remainMargin - liquidationPenalty) | |
1188 | + | let newPositionSize = (oldPositionSize + exchangedPositionSize) | |
1189 | + | let newPositionOpenNotional = abs(remainOpenNotional) | |
1190 | + | let newPositionLstUpdCPF = latestCumulativePremiumFraction(newPositionSize) | |
1191 | + | let openInterestNotionalAfter = (openInterestNotional() - exchangedQuoteAssetAmount) | |
1192 | + | let ammBalance = (cbalance() - liquidationPenalty) | |
1193 | + | let $t05466954812 = if ((0 > ammBalance)) | |
1194 | + | then $Tuple2(0, abs(ammBalance)) | |
1195 | + | else $Tuple2(ammBalance, 0) | |
1196 | + | let newAmmBalance = $t05466954812._1 | |
1197 | + | let takeFromInsurance = $t05466954812._2 | |
1198 | + | let x = if ((takeFromInsurance > 0)) | |
1199 | + | then { | |
1200 | + | let withdrawInsurance = invoke(insuranceAddress(), "withdraw", [takeFromInsurance], nil) | |
1201 | + | if ((withdrawInsurance == withdrawInsurance)) | |
1202 | + | then nil | |
1203 | + | else throw("Strict value is not equal to itself.") | |
1204 | + | } | |
1205 | + | else nil | |
1206 | + | if ((x == x)) | |
1207 | + | then { | |
1208 | + | let unstake = invoke(managerAddress(), "withdraw", [toBase58String(quoteAsset()), (liquidationPenalty - takeFromInsurance)], nil) | |
1209 | + | if ((unstake == unstake)) | |
1210 | + | then { | |
1211 | + | let depositInsurance = invoke(insuranceAddress(), "deposit", nil, [AttachedPayment(quoteAsset(), feeToInsurance)]) | |
1212 | + | if ((depositInsurance == depositInsurance)) | |
1213 | + | then { | |
1214 | + | let notifyNotional = invoke(minerAddress(), "notifyNotional", [_trader, newPositionOpenNotional], nil) | |
1215 | + | if ((notifyNotional == notifyNotional)) | |
1216 | + | then (((updatePosition(_trader, newPositionSize, newPositionMargin, newPositionOpenNotional, newPositionLstUpdCPF) ++ updateAmm(quoteAssetReserveAfter, baseAssetReserveAfter, totalPositionSizeAfter, cumulativeNotionalAfter, openInterestNotionalAfter, (totalLongPositionSize() - (if ((newPositionSize > 0)) | |
1217 | + | then abs(exchangedPositionSize) | |
1218 | + | else 0)), (totalShortPositionSize() - (if ((0 > newPositionSize)) | |
1219 | + | then abs(exchangedPositionSize) | |
1220 | + | else 0)))) ++ withdraw(i.caller, feeToLiquidator)) ++ updateBalance(newAmmBalance)) | |
1221 | + | else throw("Strict value is not equal to itself.") | |
1222 | + | } | |
1223 | + | else throw("Strict value is not equal to itself.") | |
1224 | + | } | |
1225 | + | else throw("Strict value is not equal to itself.") | |
1226 | + | } | |
1227 | + | else throw("Strict value is not equal to itself.") | |
1228 | + | } | |
1229 | + | else { | |
1230 | + | let $t05625956714 = internalClosePosition(_trader, false) | |
1231 | + | let x1 = $t05625956714._1 | |
1232 | + | let badDebt = $t05625956714._2 | |
1233 | + | let x2 = $t05625956714._3 | |
1234 | + | let x3 = $t05625956714._4 | |
1235 | + | let quoteAssetReserveAfter = $t05625956714._5 | |
1236 | + | let baseAssetReserveAfter = $t05625956714._6 | |
1237 | + | let totalPositionSizeAfter = $t05625956714._7 | |
1238 | + | let cumulativeNotionalAfter = $t05625956714._8 | |
1239 | + | let openInterestNotionalAfter = $t05625956714._9 | |
1240 | + | let exchangedQuoteAssetAmount = $t05625956714._10 | |
1241 | + | let totalLongAfter = $t05625956714._11 | |
1242 | + | let totalShortAfter = $t05625956714._12 | |
1243 | + | let liquidationPenalty = muld(exchangedQuoteAssetAmount, liquidationFeeRatio()) | |
1244 | + | let feeToLiquidator = (liquidationPenalty / 2) | |
1245 | + | let feeToInsurance = (liquidationPenalty - feeToLiquidator) | |
1246 | + | let ammBalance = (cbalance() - liquidationPenalty) | |
1247 | + | let $t05712657269 = if ((0 > ammBalance)) | |
1248 | + | then $Tuple2(0, abs(ammBalance)) | |
1249 | + | else $Tuple2(ammBalance, 0) | |
1250 | + | let newAmmBalance = $t05712657269._1 | |
1251 | + | let takeFromInsurance = $t05712657269._2 | |
1252 | + | let x = if ((takeFromInsurance > 0)) | |
1253 | + | then { | |
1254 | + | let withdrawInsurance = invoke(insuranceAddress(), "withdraw", [takeFromInsurance], nil) | |
1255 | + | if ((withdrawInsurance == withdrawInsurance)) | |
1256 | + | then nil | |
1257 | + | else throw("Strict value is not equal to itself.") | |
1258 | + | } | |
1259 | + | else nil | |
1260 | + | if ((x == x)) | |
1261 | + | then { | |
1262 | + | let unstake = invoke(managerAddress(), "withdraw", [toBase58String(quoteAsset()), (liquidationPenalty - takeFromInsurance)], nil) | |
1263 | + | if ((unstake == unstake)) | |
1264 | + | then { | |
1265 | + | let depositInsurance = invoke(insuranceAddress(), "deposit", nil, [AttachedPayment(quoteAsset(), feeToInsurance)]) | |
1266 | + | if ((depositInsurance == depositInsurance)) | |
1267 | + | then { | |
1268 | + | let notifyNotional = invoke(minerAddress(), "notifyNotional", [_trader, 0], nil) | |
1269 | + | if ((notifyNotional == notifyNotional)) | |
1270 | + | then (((deletePosition(_trader) ++ updateAmm(quoteAssetReserveAfter, baseAssetReserveAfter, totalPositionSizeAfter, cumulativeNotionalAfter, openInterestNotionalAfter, totalLongAfter, totalShortAfter)) ++ withdraw(i.caller, feeToLiquidator)) ++ updateBalance(newAmmBalance)) | |
1271 | + | else throw("Strict value is not equal to itself.") | |
1272 | + | } | |
1273 | + | else throw("Strict value is not equal to itself.") | |
1274 | + | } | |
1275 | + | else throw("Strict value is not equal to itself.") | |
1276 | + | } | |
1277 | + | else throw("Strict value is not equal to itself.") | |
1278 | + | } | |
1279 | + | } | |
1280 | + | ||
1281 | + | ||
1282 | + | ||
1283 | + | @Callable(i) | |
1284 | + | func payFunding () = { | |
1285 | + | let fundingBlockTimestamp = nextFundingBlockTimestamp() | |
1286 | + | if (if (if ((fundingBlockTimestamp > lastBlock.timestamp)) | |
1287 | + | then true | |
1288 | + | else !(initialized())) | |
1289 | + | then true | |
1290 | + | else paused()) | |
1291 | + | then throw(((("Invalid funding block timestamp: " + toString(lastBlock.timestamp)) + " < ") + toString(fundingBlockTimestamp))) | |
1292 | + | else { | |
1293 | + | let underlyingPrice = getOracleTwapPrice() | |
1294 | + | let $t05875558817 = getFunding() | |
1295 | + | let shortPremiumFraction = $t05875558817._1 | |
1296 | + | let longPremiumFraction = $t05875558817._2 | |
1297 | + | updateFunding((fundingBlockTimestamp + fundingPeriodSeconds()), (latestLongCumulativePremiumFraction() + longPremiumFraction), (latestShortCumulativePremiumFraction() + shortPremiumFraction), divd(longPremiumFraction, underlyingPrice), divd(shortPremiumFraction, underlyingPrice)) | |
1298 | + | } | |
1299 | + | } | |
1300 | + | ||
1301 | + | ||
1302 | + | ||
1303 | + | @Callable(i) | |
1304 | + | func forceMoveAsset (_trader,_amount) = if (if ((addressFromPublicKey(adminPublicKey()) != i.caller)) | |
1305 | + | then true | |
1306 | + | else (0 > _amount)) | |
1307 | + | then throw("Invalid forceMoveAsset parameters") | |
1308 | + | else { | |
1309 | + | let unstake = invoke(managerAddress(), "withdraw", [toBase58String(quoteAsset()), _amount], nil) | |
1310 | + | if ((unstake == unstake)) | |
1311 | + | then (withdraw(addressFromStringValue(_trader), _amount) ++ updateBalance((cbalance() - _amount))) | |
1312 | + | else throw("Strict value is not equal to itself.") | |
1313 | + | } | |
1314 | + | ||
1315 | + | ||
1316 | + | ||
1317 | + | @Callable(i) | |
1318 | + | func adjustPeg (_price) = if (if ((addressFromPublicKey(adminPublicKey()) != i.caller)) | |
1319 | + | then true | |
1320 | + | else (0 > _price)) | |
1321 | + | then throw("Invalid adjustPeg parameters") | |
1322 | + | else { | |
1323 | + | let $t05980859894 = getPegAdjustCost(_price) | |
1324 | + | let newQuoteAssetReserve = $t05980859894._1 | |
1325 | + | let pegChangeCost = $t05980859894._2 | |
1326 | + | if ((pegChangeCost == 0)) | |
1327 | + | then throw("Nothing to adjust") | |
1328 | + | else if ((pegChangeCost > 0)) | |
1329 | + | then updateAmmReserves(newQuoteAssetReserve, bsAstR()) | |
1330 | + | else { | |
1331 | + | let unstake = invoke(managerAddress(), "withdraw", [toBase58String(quoteAsset()), abs(pegChangeCost)], nil) | |
1332 | + | if ((unstake == unstake)) | |
1333 | + | then { | |
1334 | + | let depositInsurance = invoke(insuranceAddress(), "deposit", nil, [AttachedPayment(quoteAsset(), abs(pegChangeCost))]) | |
1335 | + | if ((depositInsurance == depositInsurance)) | |
1336 | + | then (updateBalance((cbalance() - abs(pegChangeCost))) ++ updateAmmReserves(newQuoteAssetReserve, bsAstR())) | |
1337 | + | else throw("Strict value is not equal to itself.") | |
1338 | + | } | |
1339 | + | else throw("Strict value is not equal to itself.") | |
1340 | + | } | |
1341 | + | } | |
1342 | + | ||
1343 | + | ||
1344 | + | ||
1345 | + | @Callable(i) | |
1346 | + | func migrateLiquidity () = { | |
1347 | + | let amount = cbalance() | |
1348 | + | if ((amount > 0)) | |
1349 | + | then { | |
1350 | + | let unstake = invoke(quoteAssetStaking(), "unlockNeutrino", [amount, toBase58String(quoteAsset())], nil) | |
1351 | + | if ((unstake == unstake)) | |
1352 | + | then { | |
1353 | + | let stake = invoke(managerAddress(), "deposit", nil, [AttachedPayment(quoteAsset(), amount)]) | |
1354 | + | if ((stake == stake)) | |
1355 | + | then nil | |
1356 | + | else throw("Strict value is not equal to itself.") | |
1357 | + | } | |
1358 | + | else throw("Strict value is not equal to itself.") | |
1359 | + | } | |
1360 | + | else nil | |
1361 | + | } | |
1362 | + | ||
1363 | + | ||
1364 | + | ||
1365 | + | @Callable(i) | |
1366 | + | func v_get (_trader) = { | |
1367 | + | let $t06153561595 = internalClosePosition(_trader, false) | |
1368 | + | let x1 = $t06153561595._1 | |
1369 | + | let x2 = $t06153561595._2 | |
1370 | + | let x3 = $t06153561595._3 | |
1371 | + | let x4 = $t06153561595._4 | |
1372 | + | throw((((s(x2) + s(x3)) + s(x4)) + s(getMarginRatio(_trader)))) | |
1373 | + | } | |
1374 | + | ||
1375 | + | ||
1376 | + | ||
1377 | + | @Callable(i) | |
1378 | + | func view_calcRemainMarginWithFundingPayment (_trader) = { | |
1379 | + | let $t06174261853 = getPosition(_trader) | |
1380 | + | let positionSize = $t06174261853._1 | |
1381 | + | let positionMargin = $t06174261853._2 | |
1382 | + | let pon = $t06174261853._3 | |
1383 | + | let positionLstUpdCPF = $t06174261853._4 | |
1384 | + | let $t06185861959 = getPositionNotionalAndUnrealizedPnl(_trader, PNL_OPTION_SPOT) | |
1385 | + | let positionNotional = $t06185861959._1 | |
1386 | + | let unrealizedPnl = $t06185861959._2 | |
1387 | + | let $t06196462146 = calcRemainMarginWithFundingPayment(positionSize, positionMargin, positionLstUpdCPF, unrealizedPnl) | |
1388 | + | let remainMargin = $t06196462146._1 | |
1389 | + | let badDebt = $t06196462146._2 | |
1390 | + | let fundingPayment = $t06196462146._3 | |
1391 | + | throw((((((s(remainMargin) + s(fundingPayment)) + s(getMarginRatio(_trader))) + s(unrealizedPnl)) + s(badDebt)) + s(positionNotional))) | |
1392 | + | } | |
1393 | + | ||
1394 | + | ||
1395 | + | ||
1396 | + | @Callable(i) | |
1397 | + | func view_getPegAdjustCost (_price) = { | |
1398 | + | let cost = getPegAdjustCost(_price) | |
1399 | + | throw(toString(cost._2)) | |
1400 | + | } | |
1401 | + | ||
1402 | + | ||
1403 | + | ||
1404 | + | @Callable(i) | |
1405 | + | func view_getFunding () = { | |
1406 | + | let underlyingPrice = getOracleTwapPrice() | |
1407 | + | let $t06253762599 = getFunding() | |
1408 | + | let shortPremiumFraction = $t06253762599._1 | |
1409 | + | let longPremiumFraction = $t06253762599._2 | |
1410 | + | let longFunding = divd(longPremiumFraction, underlyingPrice) | |
1411 | + | let shortFunding = divd(shortPremiumFraction, underlyingPrice) | |
1412 | + | throw((((s(longFunding) + s(shortFunding)) + s(getTwapSpotPrice())) + s(getOracleTwapPrice()))) | |
1413 | + | } | |
1414 | + | ||
1415 | + | ||
1416 | + | @Verifier(tx) | |
1417 | + | func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], adminPublicKey()) | |
1418 | + |
github/deemru/w8io/169f3d6 60.82 ms ◑