tx · Ft6kA9oLwbfviHvYaPnMhJ4U4ZZYXEfVsiBt5ixcJfaL 3MqPERLcXqA4pSZiXj2nEDvB76vVAYUVnBG: -0.04400000 Waves 2022.06.29 18:23 [2117902] smart account 3MqPERLcXqA4pSZiXj2nEDvB76vVAYUVnBG > SELF 0.00000000 Waves
{ "type": 13, "id": "Ft6kA9oLwbfviHvYaPnMhJ4U4ZZYXEfVsiBt5ixcJfaL", "fee": 4400000, "feeAssetId": null, "timestamp": 1656516239295, "version": 2, "chainId": 84, "sender": "3MqPERLcXqA4pSZiXj2nEDvB76vVAYUVnBG", "senderPublicKey": "Gz6rUQzSU4K2EzVB9xBD4qk7o73773AuSvB5Dys7mfnL", "proofs": [ "3ANnHnt5MfHhKPwy3NNbBVJkH9EcXxgY14WWnHuoofENMvVdmGV1rawkp8XQ2JqFVnBpAo6XXrGN44kJpLDsExsJ" ], "script": "base64:AAIFAAAAAAAAAEUIAhIAEgASCQoHAQEBAQEBARIOCgwBAQEBAQEBCAgIAQESBgoEAQEBARIFCgMBAQESABIDCgEBEgASAwoBCBIAEgMKAQgAAABuAAAAAAlrX29yYV9rZXkCAAAACWtfb3JhX2tleQAAAAAFa19vcmECAAAABWtfb3JhAAAAAAlrX2JhbGFuY2UCAAAACWtfYmFsYW5jZQAAAAAOa19wb3NpdGlvblNpemUCAAAADmtfcG9zaXRpb25TaXplAAAAABBrX3Bvc2l0aW9uTWFyZ2luAgAAABBrX3Bvc2l0aW9uTWFyZ2luAAAAABZrX3Bvc2l0aW9uT3Blbk5vdGlvbmFsAgAAABZrX3Bvc2l0aW9uT3Blbk5vdGlvbmFsAAAAAC5rX3Bvc2l0aW9uTGFzdFVwZGF0ZWRDdW11bGF0aXZlUHJlbWl1bUZyYWN0aW9uAgAAABJrX3Bvc2l0aW9uRnJhY3Rpb24AAAAADWtfaW5pdGlhbGl6ZWQCAAAADWtfaW5pdGlhbGl6ZWQAAAAACGtfcGF1c2VkAgAAAAhrX3BhdXNlZAAAAAAFa19m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gAAAAEAAAACdHgBAAAABnZlcmlmeQAAAAAJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACQEAAAAOYWRtaW5QdWJsaWNLZXkAAAAAPLmqsQ==", "height": 2117902, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: none Next: none Full:
Old | New | Differences | |
---|---|---|---|
1 | - | # no script | |
1 | + | {-# STDLIB_VERSION 5 #-} | |
2 | + | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | + | {-# CONTENT_TYPE DAPP #-} | |
4 | + | let k_ora_key = "k_ora_key" | |
5 | + | ||
6 | + | let k_ora = "k_ora" | |
7 | + | ||
8 | + | let k_balance = "k_balance" | |
9 | + | ||
10 | + | let k_positionSize = "k_positionSize" | |
11 | + | ||
12 | + | let k_positionMargin = "k_positionMargin" | |
13 | + | ||
14 | + | let k_positionOpenNotional = "k_positionOpenNotional" | |
15 | + | ||
16 | + | let k_positionLastUpdatedCumulativePremiumFraction = "k_positionFraction" | |
17 | + | ||
18 | + | let k_initialized = "k_initialized" | |
19 | + | ||
20 | + | let k_paused = "k_paused" | |
21 | + | ||
22 | + | let k_fee = "k_fee" | |
23 | + | ||
24 | + | let k_fundingPeriod = "k_fundingPeriod" | |
25 | + | ||
26 | + | let k_initMarginRatio = "k_initMarginRatio" | |
27 | + | ||
28 | + | let k_maintenanceMarginRatio = "k_mmr" | |
29 | + | ||
30 | + | let k_liquidationFeeRatio = "k_liquidationFeeRatio" | |
31 | + | ||
32 | + | let k_spreadLimit = "k_spreadLimit" | |
33 | + | ||
34 | + | let k_maxPriceImpact = "k_maxPriceImpact" | |
35 | + | ||
36 | + | let k_lastDataStr = "k_lastDataStr" | |
37 | + | ||
38 | + | let k_lastMinuteId = "k_lastMinuteId" | |
39 | + | ||
40 | + | let k_twapDataLastCumulativePrice = "k_twapDataLastCumulativePrice" | |
41 | + | ||
42 | + | let k_twapDataLastPrice = "k_twapDataLastPrice" | |
43 | + | ||
44 | + | let k_twap = "k_twap" | |
45 | + | ||
46 | + | let k_latestLongCumulativePremiumFraction = "k_latestLongPremiumFraction" | |
47 | + | ||
48 | + | let k_latestShortCumulativePremiumFraction = "k_latestShortPremiumFraction" | |
49 | + | ||
50 | + | let k_nextFundingBlock = "k_nextFundingBlockMinTimestamp" | |
51 | + | ||
52 | + | let k_longFundingRate = "k_longFundingRate" | |
53 | + | ||
54 | + | let k_shortFundingRate = "k_shortFundingRate" | |
55 | + | ||
56 | + | let k_quoteAssetReserve = "k_qtAstR" | |
57 | + | ||
58 | + | let k_baseAssetReserve = "k_bsAstR" | |
59 | + | ||
60 | + | let k_totalPositionSize = "k_totalPositionSize" | |
61 | + | ||
62 | + | let k_totalLongPositionSize = "k_totalLongPositionSize" | |
63 | + | ||
64 | + | let k_totalShortPositionSize = "k_totalShortPositionSize" | |
65 | + | ||
66 | + | let k_cumulativeNotional = "k_cumulativeNotional" | |
67 | + | ||
68 | + | let k_openInteresetNotional = "k_openInteresetNotional" | |
69 | + | ||
70 | + | let k_coordinatorAddress = "k_coordinatorAddress" | |
71 | + | ||
72 | + | let k_insurance_address = "k_insurance_address" | |
73 | + | ||
74 | + | let k_admin_address = "k_admin_address" | |
75 | + | ||
76 | + | let k_admin_public_key = "k_admin_public_key" | |
77 | + | ||
78 | + | let k_quote_asset = "k_quote_asset" | |
79 | + | ||
80 | + | let k_quote_staking = "k_quote_staking" | |
81 | + | ||
82 | + | let k_staking_address = "k_staking_address" | |
83 | + | ||
84 | + | func coordinator () = valueOrErrorMessage(addressFromString(getStringValue(this, k_coordinatorAddress)), "Coordinator not set") | |
85 | + | ||
86 | + | ||
87 | + | func adminAddress () = addressFromString(getStringValue(coordinator(), k_admin_address)) | |
88 | + | ||
89 | + | ||
90 | + | func adminPublicKey () = fromBase58String(getStringValue(coordinator(), k_admin_public_key)) | |
91 | + | ||
92 | + | ||
93 | + | func quoteAsset () = fromBase58String(getStringValue(coordinator(), k_quote_asset)) | |
94 | + | ||
95 | + | ||
96 | + | func quoteAssetStaking () = valueOrErrorMessage(addressFromString(getStringValue(coordinator(), k_quote_staking)), "Quote assete staking not set") | |
97 | + | ||
98 | + | ||
99 | + | func stakingAddress () = valueOrErrorMessage(addressFromString(getStringValue(coordinator(), k_staking_address)), "Insurance not set") | |
100 | + | ||
101 | + | ||
102 | + | func insuranceAddress () = valueOrErrorMessage(addressFromString(getStringValue(coordinator(), k_insurance_address)), "Insurance not set") | |
103 | + | ||
104 | + | ||
105 | + | let DIR_LONG = 1 | |
106 | + | ||
107 | + | let DIR_SHORT = 2 | |
108 | + | ||
109 | + | let FUNDING_BLOCK_INTERVAL = 60 | |
110 | + | ||
111 | + | let TWAP_INTERVAL = 15 | |
112 | + | ||
113 | + | let SECONDS = 1000 | |
114 | + | ||
115 | + | let DECIMAL_UNIT = (1 * (((((10 * 10) * 10) * 10) * 10) * 10)) | |
116 | + | ||
117 | + | let ONE_DAY = (86400 * DECIMAL_UNIT) | |
118 | + | ||
119 | + | let ALL_FEES = 100 | |
120 | + | ||
121 | + | let PNL_OPTION_SPOT = 1 | |
122 | + | ||
123 | + | let PNL_OPTION_ORACLE = 2 | |
124 | + | ||
125 | + | func s (_x) = (toString(_x) + ",") | |
126 | + | ||
127 | + | ||
128 | + | func divd (_x,_y) = fraction(_x, DECIMAL_UNIT, _y, HALFEVEN) | |
129 | + | ||
130 | + | ||
131 | + | func muld (_x,_y) = fraction(_x, _y, DECIMAL_UNIT, HALFEVEN) | |
132 | + | ||
133 | + | ||
134 | + | func abs (_x) = if ((_x > 0)) | |
135 | + | then _x | |
136 | + | else -(_x) | |
137 | + | ||
138 | + | ||
139 | + | func toCompositeKey (_key,_address) = ((_key + "_") + _address) | |
140 | + | ||
141 | + | ||
142 | + | func requireMoreMarginRatio (_marginRatio,_baseMarginRatio,_largerThanOrEqualTo) = { | |
143 | + | let remainingMarginRatio = (_marginRatio - _baseMarginRatio) | |
144 | + | if (if (_largerThanOrEqualTo) | |
145 | + | then (0 > remainingMarginRatio) | |
146 | + | else false) | |
147 | + | then throw("Invalid margin") | |
148 | + | else if (if (!(_largerThanOrEqualTo)) | |
149 | + | then (remainingMarginRatio >= 0) | |
150 | + | else false) | |
151 | + | then throw("Invalid margin") | |
152 | + | else true | |
153 | + | } | |
154 | + | ||
155 | + | ||
156 | + | func int (k) = valueOrErrorMessage(getInteger(this, k), ("no value for " + k)) | |
157 | + | ||
158 | + | ||
159 | + | func cbalance () = int(k_balance) | |
160 | + | ||
161 | + | ||
162 | + | func fee () = int(k_fee) | |
163 | + | ||
164 | + | ||
165 | + | func initMarginRatio () = int(k_initMarginRatio) | |
166 | + | ||
167 | + | ||
168 | + | func qtAstR () = int(k_quoteAssetReserve) | |
169 | + | ||
170 | + | ||
171 | + | func bsAstR () = int(k_baseAssetReserve) | |
172 | + | ||
173 | + | ||
174 | + | func totalPositionSize () = int(k_totalPositionSize) | |
175 | + | ||
176 | + | ||
177 | + | func cumulativeNotional () = int(k_cumulativeNotional) | |
178 | + | ||
179 | + | ||
180 | + | func openInteresetNotional () = int(k_openInteresetNotional) | |
181 | + | ||
182 | + | ||
183 | + | func nextFundingBlockTimestamp () = int(k_nextFundingBlock) | |
184 | + | ||
185 | + | ||
186 | + | func fundingPeriodRaw () = int(k_fundingPeriod) | |
187 | + | ||
188 | + | ||
189 | + | func fundingPeriodDecimal () = (fundingPeriodRaw() * DECIMAL_UNIT) | |
190 | + | ||
191 | + | ||
192 | + | func fundingPeriodSeconds () = (fundingPeriodRaw() * SECONDS) | |
193 | + | ||
194 | + | ||
195 | + | func mmr () = int(k_maintenanceMarginRatio) | |
196 | + | ||
197 | + | ||
198 | + | func liquidationFeeRatio () = int(k_liquidationFeeRatio) | |
199 | + | ||
200 | + | ||
201 | + | func spreadLimit () = int(k_spreadLimit) | |
202 | + | ||
203 | + | ||
204 | + | func maxPriceImpact () = int(k_maxPriceImpact) | |
205 | + | ||
206 | + | ||
207 | + | func latestLongCumulativePremiumFraction () = int(k_latestLongCumulativePremiumFraction) | |
208 | + | ||
209 | + | ||
210 | + | func latestShortCumulativePremiumFraction () = int(k_latestShortCumulativePremiumFraction) | |
211 | + | ||
212 | + | ||
213 | + | func totalShortPositionSize () = int(k_totalShortPositionSize) | |
214 | + | ||
215 | + | ||
216 | + | func totalLongPositionSize () = int(k_totalLongPositionSize) | |
217 | + | ||
218 | + | ||
219 | + | func latestCPF (_positionSize) = if ((_positionSize > 0)) | |
220 | + | then latestLongCumulativePremiumFraction() | |
221 | + | else latestShortCumulativePremiumFraction() | |
222 | + | ||
223 | + | ||
224 | + | func getPosition (invesor) = { | |
225 | + | let positionSizeOpt = getInteger(this, toCompositeKey(k_positionSize, invesor)) | |
226 | + | match positionSizeOpt { | |
227 | + | case positionSize: Int => | |
228 | + | $Tuple4(positionSize, getIntegerValue(this, toCompositeKey(k_positionMargin, invesor)), getIntegerValue(this, toCompositeKey(k_positionOpenNotional, invesor)), getIntegerValue(this, toCompositeKey(k_positionLastUpdatedCumulativePremiumFraction, invesor))) | |
229 | + | case _ => | |
230 | + | $Tuple4(0, 0, 0, 0) | |
231 | + | } | |
232 | + | } | |
233 | + | ||
234 | + | ||
235 | + | func requireOpenPosition (_trader) = if ((getPosition(_trader)._1 == 0)) | |
236 | + | then throw("No open position") | |
237 | + | else true | |
238 | + | ||
239 | + | ||
240 | + | func initialized () = valueOrElse(getBoolean(this, k_initialized), false) | |
241 | + | ||
242 | + | ||
243 | + | func paused () = valueOrElse(getBoolean(this, k_paused), false) | |
244 | + | ||
245 | + | ||
246 | + | func updateReserve (_isAdd,_quoteAssetAmount,_baseAssetAmount) = if (_isAdd) | |
247 | + | then { | |
248 | + | let newBase = (bsAstR() - _baseAssetAmount) | |
249 | + | if ((0 >= newBase)) | |
250 | + | then throw("Tx lead to base asset reserve <= 0, revert") | |
251 | + | else $Tuple4((qtAstR() + _quoteAssetAmount), newBase, (totalPositionSize() + _baseAssetAmount), (cumulativeNotional() + _quoteAssetAmount)) | |
252 | + | } | |
253 | + | else { | |
254 | + | let newQuote = (qtAstR() - _quoteAssetAmount) | |
255 | + | if ((0 >= newQuote)) | |
256 | + | then throw("Tx lead to base quote reserve <= 0, revert") | |
257 | + | else $Tuple4(newQuote, (bsAstR() + _baseAssetAmount), (totalPositionSize() - _baseAssetAmount), (cumulativeNotional() - _quoteAssetAmount)) | |
258 | + | } | |
259 | + | ||
260 | + | ||
261 | + | func swapInput (_isAdd,_quoteAssetAmount) = { | |
262 | + | let _qtAstR = qtAstR() | |
263 | + | let _bsAstR = bsAstR() | |
264 | + | let priceBefore = divd(_qtAstR, _bsAstR) | |
265 | + | let amountBaseAssetBoughtWithoutPriceImpact = muld(_quoteAssetAmount, priceBefore) | |
266 | + | let k = muld(_qtAstR, _bsAstR) | |
267 | + | let quoteAssetReserveAfter = if (_isAdd) | |
268 | + | then (_qtAstR + _quoteAssetAmount) | |
269 | + | else (_qtAstR - _quoteAssetAmount) | |
270 | + | let baseAssetReserveAfter = divd(k, quoteAssetReserveAfter) | |
271 | + | let amountBaseAssetBoughtAbs = abs((baseAssetReserveAfter - _bsAstR)) | |
272 | + | let amountBaseAssetBought = if (_isAdd) | |
273 | + | then amountBaseAssetBoughtAbs | |
274 | + | else -(amountBaseAssetBoughtAbs) | |
275 | + | let priceImpact = ((amountBaseAssetBoughtWithoutPriceImpact - amountBaseAssetBoughtAbs) / amountBaseAssetBoughtWithoutPriceImpact) | |
276 | + | let maxPriceImpactValue = maxPriceImpact() | |
277 | + | if ((priceImpact > maxPriceImpactValue)) | |
278 | + | then throw(((("Price impact " + toString(priceImpact)) + " > max price impact ") + toString(maxPriceImpactValue))) | |
279 | + | else { | |
280 | + | let $t01037810581 = updateReserve(_isAdd, _quoteAssetAmount, amountBaseAssetBoughtAbs) | |
281 | + | let quoteAssetReserveAfter1 = $t01037810581._1 | |
282 | + | let baseAssetReserveAfter1 = $t01037810581._2 | |
283 | + | let totalPositionSizeAfter1 = $t01037810581._3 | |
284 | + | let cumulativeNotionalAfter1 = $t01037810581._4 | |
285 | + | $Tuple7(amountBaseAssetBought, quoteAssetReserveAfter1, baseAssetReserveAfter1, totalPositionSizeAfter1, cumulativeNotionalAfter1, (totalLongPositionSize() + (if (_isAdd) | |
286 | + | then amountBaseAssetBoughtAbs | |
287 | + | else 0)), (totalShortPositionSize() + (if (!(_isAdd)) | |
288 | + | then amountBaseAssetBoughtAbs | |
289 | + | else 0))) | |
290 | + | } | |
291 | + | } | |
292 | + | ||
293 | + | ||
294 | + | func calcRemainMarginWithFundingPayment (_oldPositionSize,_oldPositionMargin,_oldPositionLstUpdCPF,_marginDelta) = { | |
295 | + | let _latestCPF = latestCPF(_oldPositionSize) | |
296 | + | let fundingPayment = if ((_oldPositionSize != 0)) | |
297 | + | then muld((_latestCPF - _oldPositionLstUpdCPF), _oldPositionSize) | |
298 | + | else 0 | |
299 | + | let signedMargin = ((_marginDelta - fundingPayment) + _oldPositionMargin) | |
300 | + | let $t01133811465 = if ((0 > signedMargin)) | |
301 | + | then $Tuple2(0, abs(signedMargin)) | |
302 | + | else $Tuple2(abs(signedMargin), 0) | |
303 | + | let remainMargin = $t01133811465._1 | |
304 | + | let badDebt = $t01133811465._2 | |
305 | + | $Tuple4(remainMargin, badDebt, fundingPayment, _latestCPF) | |
306 | + | } | |
307 | + | ||
308 | + | ||
309 | + | func getOutputPriceWithReserves (_isAdd,_baseAssetAmount,_quoteAssetPoolAmount,_baseAssetPoolAmount) = if ((_baseAssetAmount == 0)) | |
310 | + | then throw("Invalid base asset amount") | |
311 | + | else { | |
312 | + | let k = muld(_quoteAssetPoolAmount, _baseAssetPoolAmount) | |
313 | + | let baseAssetPoolAmountAfter = if (_isAdd) | |
314 | + | then (_baseAssetPoolAmount + _baseAssetAmount) | |
315 | + | else (_baseAssetPoolAmount - _baseAssetAmount) | |
316 | + | let quoteAssetAfter = divd(k, baseAssetPoolAmountAfter) | |
317 | + | let quoteAssetSold = abs((quoteAssetAfter - _quoteAssetPoolAmount)) | |
318 | + | let $t01211812311 = updateReserve(!(_isAdd), quoteAssetSold, _baseAssetAmount) | |
319 | + | let quoteAssetReserveAfter1 = $t01211812311._1 | |
320 | + | let baseAssetReserveAfter1 = $t01211812311._2 | |
321 | + | let totalPositionSizeAfter1 = $t01211812311._3 | |
322 | + | let cumulativeNotionalAfter1 = $t01211812311._4 | |
323 | + | $Tuple7(quoteAssetSold, quoteAssetReserveAfter1, baseAssetReserveAfter1, totalPositionSizeAfter1, cumulativeNotionalAfter1, (totalLongPositionSize() - (if (!(_isAdd)) | |
324 | + | then abs(_baseAssetAmount) | |
325 | + | else 0)), (totalShortPositionSize() - (if (_isAdd) | |
326 | + | then abs(_baseAssetAmount) | |
327 | + | else 0))) | |
328 | + | } | |
329 | + | ||
330 | + | ||
331 | + | func getOracleTwapPrice () = { | |
332 | + | let oracle = valueOrErrorMessage(addressFromString(getStringValue(this, k_ora)), "") | |
333 | + | let priceKey = getStringValue(this, k_ora_key) | |
334 | + | getIntegerValue(oracle, priceKey) | |
335 | + | } | |
336 | + | ||
337 | + | ||
338 | + | func getSpotPrice () = { | |
339 | + | let _qtAstR = qtAstR() | |
340 | + | let _bsAstR = bsAstR() | |
341 | + | divd(_qtAstR, _bsAstR) | |
342 | + | } | |
343 | + | ||
344 | + | ||
345 | + | func isOverFluctuationLimit () = { | |
346 | + | let oraclePrice = getOracleTwapPrice() | |
347 | + | let currentPrice = getSpotPrice() | |
348 | + | (divd(abs((oraclePrice - currentPrice)), oraclePrice) > spreadLimit()) | |
349 | + | } | |
350 | + | ||
351 | + | ||
352 | + | func getPositionNotionalAndUnrealizedPnl (_trader,_option) = { | |
353 | + | let $t01320313331 = getPosition(_trader) | |
354 | + | let positionSize = $t01320313331._1 | |
355 | + | let positionMargin = $t01320313331._2 | |
356 | + | let positionOpenNotional = $t01320313331._3 | |
357 | + | let positionLstUpdCPF = $t01320313331._4 | |
358 | + | let positionSizeAbs = abs(positionSize) | |
359 | + | if ((positionSizeAbs == 0)) | |
360 | + | then throw("Invalid position size") | |
361 | + | else { | |
362 | + | let isShort = (0 > positionSize) | |
363 | + | let positionNotional = if ((_option == PNL_OPTION_SPOT)) | |
364 | + | then { | |
365 | + | let $t01357813741 = getOutputPriceWithReserves(!(isShort), positionSizeAbs, qtAstR(), bsAstR()) | |
366 | + | let outPositionNotional = $t01357813741._1 | |
367 | + | let x1 = $t01357813741._2 | |
368 | + | let x2 = $t01357813741._3 | |
369 | + | let x3 = $t01357813741._4 | |
370 | + | outPositionNotional | |
371 | + | } | |
372 | + | else (positionSizeAbs * getOracleTwapPrice()) | |
373 | + | let unrealizedPnl = if (isShort) | |
374 | + | then (positionOpenNotional - positionNotional) | |
375 | + | else (positionNotional - positionOpenNotional) | |
376 | + | $Tuple2(positionNotional, unrealizedPnl) | |
377 | + | } | |
378 | + | } | |
379 | + | ||
380 | + | ||
381 | + | func getMarginRatioByOption (_trader,_option) = { | |
382 | + | func x () = 0 | |
383 | + | ||
384 | + | let $t01416514276 = getPosition(_trader) | |
385 | + | let positionSize = $t01416514276._1 | |
386 | + | let positionMargin = $t01416514276._2 | |
387 | + | let pon = $t01416514276._3 | |
388 | + | let positionLstUpdCPF = $t01416514276._4 | |
389 | + | let $t01428214375 = getPositionNotionalAndUnrealizedPnl(_trader, _option) | |
390 | + | let positionNotional = $t01428214375._1 | |
391 | + | let unrealizedPnl = $t01428214375._2 | |
392 | + | let $t01438014546 = calcRemainMarginWithFundingPayment(positionSize, positionMargin, positionLstUpdCPF, unrealizedPnl) | |
393 | + | let remainMargin = $t01438014546._1 | |
394 | + | let badDebt = $t01438014546._2 | |
395 | + | divd((remainMargin - badDebt), positionNotional) | |
396 | + | } | |
397 | + | ||
398 | + | ||
399 | + | func getMarginRatio (_trader) = getMarginRatioByOption(_trader, PNL_OPTION_SPOT) | |
400 | + | ||
401 | + | ||
402 | + | func internalClosePosition (_trader) = { | |
403 | + | let $t01474214853 = getPosition(_trader) | |
404 | + | let positionSize = $t01474214853._1 | |
405 | + | let positionMargin = $t01474214853._2 | |
406 | + | let pon = $t01474214853._3 | |
407 | + | let positionLstUpdCPF = $t01474214853._4 | |
408 | + | let $t01485914946 = getPositionNotionalAndUnrealizedPnl(_trader, PNL_OPTION_SPOT) | |
409 | + | let x1 = $t01485914946._1 | |
410 | + | let unrealizedPnl = $t01485914946._2 | |
411 | + | let $t01495115123 = calcRemainMarginWithFundingPayment(positionSize, positionMargin, positionLstUpdCPF, unrealizedPnl) | |
412 | + | let remainMargin = $t01495115123._1 | |
413 | + | let badDebt = $t01495115123._2 | |
414 | + | let x2 = $t01495115123._3 | |
415 | + | let exchangedPositionSize = -(positionSize) | |
416 | + | let realizedPnl = unrealizedPnl | |
417 | + | let marginToVault = -(remainMargin) | |
418 | + | let $t01525015583 = getOutputPriceWithReserves((positionSize > 0), abs(positionSize), qtAstR(), bsAstR()) | |
419 | + | let exchangedQuoteAssetAmount = $t01525015583._1 | |
420 | + | let quoteAssetReserveAfter = $t01525015583._2 | |
421 | + | let baseAssetReserveAfter = $t01525015583._3 | |
422 | + | let totalPositionSizeAfter = $t01525015583._4 | |
423 | + | let cumulativeNotionalAfter = $t01525015583._5 | |
424 | + | let totalLongAfter = $t01525015583._6 | |
425 | + | let totalShortAfter = $t01525015583._7 | |
426 | + | let openInteresetNotionalAfter = (openInteresetNotional() - pon) | |
427 | + | $Tuple12(exchangedPositionSize, badDebt, realizedPnl, marginToVault, quoteAssetReserveAfter, baseAssetReserveAfter, totalPositionSizeAfter, cumulativeNotionalAfter, openInteresetNotionalAfter, exchangedQuoteAssetAmount, totalLongAfter, totalShortAfter) | |
428 | + | } | |
429 | + | ||
430 | + | ||
431 | + | func getTwapSpotPrice () = { | |
432 | + | let minuteId = ((lastBlock.timestamp / 1000) / 60) | |
433 | + | let startMinuteId = (minuteId - TWAP_INTERVAL) | |
434 | + | let listStr = valueOrElse(getString(this, k_lastDataStr), "") | |
435 | + | let list = split(listStr, ",") | |
436 | + | func filterFn (accum,next) = if ((startMinuteId >= parseIntValue(next))) | |
437 | + | then (accum :+ parseIntValue(next)) | |
438 | + | else accum | |
439 | + | ||
440 | + | let listF = { | |
441 | + | let $l = list | |
442 | + | let $s = size($l) | |
443 | + | let $acc0 = nil | |
444 | + | func $f0_1 ($a,$i) = if (($i >= $s)) | |
445 | + | then $a | |
446 | + | else filterFn($a, $l[$i]) | |
447 | + | ||
448 | + | func $f0_2 ($a,$i) = if (($i >= $s)) | |
449 | + | then $a | |
450 | + | else throw("List size exceeds 20") | |
451 | + | ||
452 | + | $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) | |
453 | + | } | |
454 | + | let maxIndex = if ((size(listF) > 0)) | |
455 | + | then max(listF) | |
456 | + | else parseIntValue(list[0]) | |
457 | + | let lastMinuteId = valueOrElse(getInteger(this, k_lastMinuteId), 0) | |
458 | + | let endLastCumulativePrice = valueOrElse(getInteger(this, ((k_twapDataLastCumulativePrice + "_") + toString(lastMinuteId))), 0) | |
459 | + | let endLastPrice = valueOrElse(getInteger(this, ((k_twapDataLastPrice + "_") + toString(lastMinuteId))), 0) | |
460 | + | let nowCummulativePrice = (endLastCumulativePrice + ((minuteId - lastMinuteId) * endLastPrice)) | |
461 | + | let startLastCumulativePrice = valueOrElse(getInteger(this, ((k_twapDataLastCumulativePrice + "_") + toString(maxIndex))), 0) | |
462 | + | let startLastPrice = valueOrElse(getInteger(this, ((k_twapDataLastPrice + "_") + toString(maxIndex))), 0) | |
463 | + | let startCummulativePrice = (startLastCumulativePrice + ((startMinuteId - maxIndex) * startLastPrice)) | |
464 | + | ((nowCummulativePrice - startCummulativePrice) / TWAP_INTERVAL) | |
465 | + | } | |
466 | + | ||
467 | + | ||
468 | + | func updateSettings (_initMarginRatio,_mmr,_liquidationFeeRatio,_fundingPeriod,_fee,_spreadLimit,_maxPriceImpact) = [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)] | |
469 | + | ||
470 | + | ||
471 | + | 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)] | |
472 | + | ||
473 | + | ||
474 | + | func updatePosition (_address,_size,_margin,_openNotinal,_LstUpdCPF) = [IntegerEntry(toCompositeKey(k_positionSize, _address), _size), IntegerEntry(toCompositeKey(k_positionMargin, _address), _margin), IntegerEntry(toCompositeKey(k_positionOpenNotional, _address), _openNotinal), IntegerEntry(toCompositeKey(k_positionLastUpdatedCumulativePremiumFraction, _address), _LstUpdCPF)] | |
475 | + | ||
476 | + | ||
477 | + | func appendTwap (price) = { | |
478 | + | let minuteId = ((lastBlock.timestamp / 1000) / 60) | |
479 | + | let previousMinuteId = valueOrElse(getInteger(this, k_lastMinuteId), 0) | |
480 | + | if ((previousMinuteId > minuteId)) | |
481 | + | then throw("TWAP out-of-order") | |
482 | + | else { | |
483 | + | let lastMinuteId = if ((previousMinuteId == 0)) | |
484 | + | then minuteId | |
485 | + | else previousMinuteId | |
486 | + | let listStr = valueOrElse(getString(this, k_lastDataStr), "") | |
487 | + | let oldList = split(listStr, ",") | |
488 | + | let list = if ((size(oldList) > TWAP_INTERVAL)) | |
489 | + | then (removeByIndex(oldList, 0) :+ toString(minuteId)) | |
490 | + | else (oldList :+ toString(minuteId)) | |
491 | + | let prevCummulativePrice = valueOrElse(getInteger(this, ((k_twapDataLastCumulativePrice + "_") + toString(previousMinuteId))), 0) | |
492 | + | let prevPrice = valueOrElse(getInteger(this, ((k_twapDataLastPrice + "_") + toString(previousMinuteId))), price) | |
493 | + | let lastCummulativePrice = (prevCummulativePrice + ((minuteId - lastMinuteId) * prevPrice)) | |
494 | + | func join (accum,val) = ((accum + val) + ",") | |
495 | + | ||
496 | + | let newListStr = { | |
497 | + | let $l = list | |
498 | + | let $s = size($l) | |
499 | + | let $acc0 = "" | |
500 | + | func $f0_1 ($a,$i) = if (($i >= $s)) | |
501 | + | then $a | |
502 | + | else join($a, $l[$i]) | |
503 | + | ||
504 | + | func $f0_2 ($a,$i) = if (($i >= $s)) | |
505 | + | then $a | |
506 | + | else throw("List size exceeds 20") | |
507 | + | ||
508 | + | $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) | |
509 | + | } | |
510 | + | let newListStrU = dropRight(newListStr, 1) | |
511 | + | let newListStrR = if ((take(newListStrU, 1) == ",")) | |
512 | + | then drop(newListStrU, 1) | |
513 | + | else newListStrU | |
514 | + | [IntegerEntry(((k_twapDataLastCumulativePrice + "_") + toString(minuteId)), lastCummulativePrice), IntegerEntry(((k_twapDataLastPrice + "_") + toString(minuteId)), price), IntegerEntry(k_lastMinuteId, minuteId), StringEntry(k_lastDataStr, newListStrR)] | |
515 | + | } | |
516 | + | } | |
517 | + | ||
518 | + | ||
519 | + | func updateAmm (_qtAstR,_bsAstR,_totalPositionSizeAfter,_cumulativeNotionalAfter,_openInteresetNotional,_totalLongPositionSize,_totalShortPositionSize) = if (((_totalLongPositionSize - _totalShortPositionSize) != _totalPositionSizeAfter)) | |
520 | + | then throw("Invalid AMM state data") | |
521 | + | else ([IntegerEntry(k_quoteAssetReserve, _qtAstR), IntegerEntry(k_baseAssetReserve, _bsAstR), IntegerEntry(k_totalPositionSize, _totalPositionSizeAfter), IntegerEntry(k_cumulativeNotional, _cumulativeNotionalAfter), IntegerEntry(k_openInteresetNotional, _openInteresetNotional), IntegerEntry(k_totalLongPositionSize, _totalLongPositionSize), IntegerEntry(k_totalShortPositionSize, _totalShortPositionSize)] ++ appendTwap(divd(_qtAstR, _bsAstR))) | |
522 | + | ||
523 | + | ||
524 | + | func deletePosition (_address) = [DeleteEntry(toCompositeKey(k_positionSize, _address)), DeleteEntry(toCompositeKey(k_positionMargin, _address)), DeleteEntry(toCompositeKey(k_positionOpenNotional, _address)), DeleteEntry(toCompositeKey(k_positionLastUpdatedCumulativePremiumFraction, _address))] | |
525 | + | ||
526 | + | ||
527 | + | func withdraw (_address,_amount) = { | |
528 | + | let balance = assetBalance(this, quoteAsset()) | |
529 | + | if ((_amount > balance)) | |
530 | + | then throw(((("Unable to withdraw " + toString(_amount)) + " from contract balance ") + toString(balance))) | |
531 | + | else [ScriptTransfer(_address, _amount, quoteAsset())] | |
532 | + | } | |
533 | + | ||
534 | + | ||
535 | + | func updateBalance (i) = if ((0 > i)) | |
536 | + | then throw("Balance") | |
537 | + | else [IntegerEntry(k_balance, i)] | |
538 | + | ||
539 | + | ||
540 | + | func transferFee (i) = [ScriptTransfer(stakingAddress(), i, quoteAsset())] | |
541 | + | ||
542 | + | ||
543 | + | @Callable(i) | |
544 | + | func pause () = if ((i.caller != adminAddress())) | |
545 | + | then throw("Invalid togglePause params") | |
546 | + | else [BooleanEntry(k_paused, true)] | |
547 | + | ||
548 | + | ||
549 | + | ||
550 | + | @Callable(i) | |
551 | + | func unpause () = if ((i.caller != adminAddress())) | |
552 | + | then throw("Invalid togglePause params") | |
553 | + | else [BooleanEntry(k_paused, false)] | |
554 | + | ||
555 | + | ||
556 | + | ||
557 | + | @Callable(i) | |
558 | + | func changeSettings (_initMarginRatio,_mmr,_liquidationFeeRatio,_fundingPeriod,_fee,_spreadLimit,_maxPriceImpact) = if ((i.caller != adminAddress())) | |
559 | + | then throw("Invalid changeSettings params") | |
560 | + | else updateSettings(_initMarginRatio, _mmr, _liquidationFeeRatio, _fundingPeriod, _fee, _spreadLimit, _maxPriceImpact) | |
561 | + | ||
562 | + | ||
563 | + | ||
564 | + | @Callable(i) | |
565 | + | func initialize (_qtAstR,_bsAstR,_fundingPeriod,_initMarginRatio,_mmr,_liquidationFeeRatio,_fee,_oracle,_oracleKey,_coordinator,_spreadLimit,_maxPriceImpact) = if (if (if (if (if (if (if (if (if (if ((0 >= _qtAstR)) | |
566 | + | then true | |
567 | + | else (0 >= _bsAstR)) | |
568 | + | then true | |
569 | + | else (0 >= _fundingPeriod)) | |
570 | + | then true | |
571 | + | else (0 >= _initMarginRatio)) | |
572 | + | then true | |
573 | + | else (0 >= _mmr)) | |
574 | + | then true | |
575 | + | else (0 >= _liquidationFeeRatio)) | |
576 | + | then true | |
577 | + | else (0 >= _fee)) | |
578 | + | then true | |
579 | + | else (0 >= _spreadLimit)) | |
580 | + | then true | |
581 | + | else (0 >= _maxPriceImpact)) | |
582 | + | then true | |
583 | + | else initialized()) | |
584 | + | then throw("Invalid initialize parameters") | |
585 | + | else ((((updateAmm(_qtAstR, _bsAstR, 0, 0, 0, 0, 0) ++ updateSettings(_initMarginRatio, _mmr, _liquidationFeeRatio, _fundingPeriod, _fee, _spreadLimit, _maxPriceImpact)) ++ 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)]) | |
586 | + | ||
587 | + | ||
588 | + | ||
589 | + | @Callable(i) | |
590 | + | func decreasePosition (_direction,_amount,_leverage,_minBaseAssetAmount) = if (if (if (if (if (if (if ((_direction != DIR_LONG)) | |
591 | + | then (_direction != DIR_SHORT) | |
592 | + | else false) | |
593 | + | then true | |
594 | + | else (0 >= _amount)) | |
595 | + | then true | |
596 | + | else if (((1 * DECIMAL_UNIT) > _leverage)) | |
597 | + | then true | |
598 | + | else (_leverage > (3 * DECIMAL_UNIT))) | |
599 | + | then true | |
600 | + | else !(initialized())) | |
601 | + | then true | |
602 | + | else !(requireMoreMarginRatio(divd(DECIMAL_UNIT, _leverage), initMarginRatio(), true))) | |
603 | + | then true | |
604 | + | else paused()) | |
605 | + | then throw("Invalid decreasePosition parameters") | |
606 | + | else { | |
607 | + | let $t02470424856 = getPosition(toString(i.caller)) | |
608 | + | let oldPositionSize = $t02470424856._1 | |
609 | + | let oldPositionMargin = $t02470424856._2 | |
610 | + | let oldPositionOpenNotional = $t02470424856._3 | |
611 | + | let oldPositionLstUpdCPF = $t02470424856._4 | |
612 | + | let isNewPosition = (oldPositionSize == 0) | |
613 | + | let isSameDirection = if ((oldPositionSize > 0)) | |
614 | + | then (_direction == DIR_LONG) | |
615 | + | else (_direction == DIR_SHORT) | |
616 | + | let expandExisting = if (!(isNewPosition)) | |
617 | + | then isSameDirection | |
618 | + | else false | |
619 | + | let isAdd = (_direction == DIR_LONG) | |
620 | + | let $t02514528021 = if (if (isNewPosition) | |
621 | + | then true | |
622 | + | else expandExisting) | |
623 | + | then throw("Use increasePosition to open new or increase position") | |
624 | + | else { | |
625 | + | let openNotional = muld(_amount, _leverage) | |
626 | + | let $t02565125767 = getPositionNotionalAndUnrealizedPnl(toString(i.caller), PNL_OPTION_SPOT) | |
627 | + | let oldPositionNotional = $t02565125767._1 | |
628 | + | let unrealizedPnl = $t02565125767._2 | |
629 | + | if ((oldPositionNotional > openNotional)) | |
630 | + | then { | |
631 | + | let $t02582926116 = swapInput(isAdd, openNotional) | |
632 | + | let exchangedPositionSize = $t02582926116._1 | |
633 | + | let quoteAssetReserveAfter = $t02582926116._2 | |
634 | + | let baseAssetReserveAfter = $t02582926116._3 | |
635 | + | let totalPositionSizeAfter = $t02582926116._4 | |
636 | + | let cumulativeNotionalAfter = $t02582926116._5 | |
637 | + | let totalLongAfter = $t02582926116._6 | |
638 | + | let totalShortAfter = $t02582926116._7 | |
639 | + | let exchangedPositionSizeAbs = abs(exchangedPositionSize) | |
640 | + | if (if ((_minBaseAssetAmount != 0)) | |
641 | + | then (_minBaseAssetAmount > exchangedPositionSizeAbs) | |
642 | + | else false) | |
643 | + | then throw(((("Too little basse asset exchanged, got " + toString(exchangedPositionSizeAbs)) + " expected ") + toString(_minBaseAssetAmount))) | |
644 | + | else { | |
645 | + | let realizedPnl = if ((oldPositionSize != 0)) | |
646 | + | then divd(muld(unrealizedPnl, exchangedPositionSizeAbs), oldPositionSize) | |
647 | + | else 0 | |
648 | + | let $t02665726928 = calcRemainMarginWithFundingPayment(oldPositionSize, oldPositionMargin, oldPositionLstUpdCPF, realizedPnl) | |
649 | + | let remainMargin = $t02665726928._1 | |
650 | + | let badDebt = $t02665726928._2 | |
651 | + | let fundingPayment = $t02665726928._3 | |
652 | + | let oldLatestCPF = $t02665726928._4 | |
653 | + | let exchangedQuoteAssetAmount = openNotional | |
654 | + | let unrealizedPnlAfter = (unrealizedPnl - realizedPnl) | |
655 | + | let remainOpenNotional = if ((oldPositionSize > 0)) | |
656 | + | then ((oldPositionNotional - exchangedQuoteAssetAmount) - unrealizedPnlAfter) | |
657 | + | else ((unrealizedPnlAfter + oldPositionNotional) - exchangedQuoteAssetAmount) | |
658 | + | $Tuple11((oldPositionSize + exchangedPositionSize), remainMargin, abs(remainOpenNotional), oldLatestCPF, baseAssetReserveAfter, quoteAssetReserveAfter, totalPositionSizeAfter, cumulativeNotionalAfter, (openInteresetNotional() - openNotional), totalLongAfter, totalShortAfter) | |
659 | + | } | |
660 | + | } | |
661 | + | else throw("Close position first") | |
662 | + | } | |
663 | + | let newPositionSize = $t02514528021._1 | |
664 | + | let newPositionRemainMargin = $t02514528021._2 | |
665 | + | let newPosiionOpenNotional = $t02514528021._3 | |
666 | + | let newPositionLatestCPF = $t02514528021._4 | |
667 | + | let baseAssetReserveAfter = $t02514528021._5 | |
668 | + | let quoteAssetReserveAfter = $t02514528021._6 | |
669 | + | let totalPositionSizeAfter = $t02514528021._7 | |
670 | + | let cumulativeNotionalAfter = $t02514528021._8 | |
671 | + | let openInteresetNotionalAfter = $t02514528021._9 | |
672 | + | let totalLongAfter = $t02514528021._10 | |
673 | + | let totalShortAfter = $t02514528021._11 | |
674 | + | (updatePosition(toString(i.caller), newPositionSize, newPositionRemainMargin, newPosiionOpenNotional, newPositionLatestCPF) ++ updateAmm(quoteAssetReserveAfter, baseAssetReserveAfter, totalPositionSizeAfter, cumulativeNotionalAfter, openInteresetNotionalAfter, totalLongAfter, totalShortAfter)) | |
675 | + | } | |
676 | + | ||
677 | + | ||
678 | + | ||
679 | + | @Callable(i) | |
680 | + | func increasePosition (_direction,_leverage,_minBaseAssetAmount) = { | |
681 | + | let _rawAmount = i.payments[0].amount | |
682 | + | if (if (if (if (if (if (if (if ((_direction != DIR_LONG)) | |
683 | + | then (_direction != DIR_SHORT) | |
684 | + | else false) | |
685 | + | then true | |
686 | + | else (0 >= _rawAmount)) | |
687 | + | then true | |
688 | + | else if (((1 * DECIMAL_UNIT) > _leverage)) | |
689 | + | then true | |
690 | + | else (_leverage > (3 * DECIMAL_UNIT))) | |
691 | + | then true | |
692 | + | else !(initialized())) | |
693 | + | then true | |
694 | + | else (i.payments[0].assetId != quoteAsset())) | |
695 | + | then true | |
696 | + | else !(requireMoreMarginRatio(divd(DECIMAL_UNIT, _leverage), initMarginRatio(), true))) | |
697 | + | then true | |
698 | + | else paused()) | |
699 | + | then throw("Invalid increasePosition parameters") | |
700 | + | else { | |
701 | + | let feeAmount = muld(_rawAmount, fee()) | |
702 | + | let _amount = (_rawAmount - feeAmount) | |
703 | + | let $t02905729209 = getPosition(toString(i.caller)) | |
704 | + | let oldPositionSize = $t02905729209._1 | |
705 | + | let oldPositionMargin = $t02905729209._2 | |
706 | + | let oldPositionOpenNotional = $t02905729209._3 | |
707 | + | let oldPositionLstUpdCPF = $t02905729209._4 | |
708 | + | let isNewPosition = (oldPositionSize == 0) | |
709 | + | let isSameDirection = if ((oldPositionSize > 0)) | |
710 | + | then (_direction == DIR_LONG) | |
711 | + | else (_direction == DIR_SHORT) | |
712 | + | let expandExisting = if (!(isNewPosition)) | |
713 | + | then isSameDirection | |
714 | + | else false | |
715 | + | let isAdd = (_direction == DIR_LONG) | |
716 | + | let $t02949831766 = if (if (isNewPosition) | |
717 | + | then true | |
718 | + | else expandExisting) | |
719 | + | then { | |
720 | + | let openNotional = muld(_amount, _leverage) | |
721 | + | let $t02992230177 = swapInput(isAdd, openNotional) | |
722 | + | let amountBaseAssetBought = $t02992230177._1 | |
723 | + | let quoteAssetReserveAfter = $t02992230177._2 | |
724 | + | let baseAssetReserveAfter = $t02992230177._3 | |
725 | + | let totalPositionSizeAfter = $t02992230177._4 | |
726 | + | let cumulativeNotionalAfter = $t02992230177._5 | |
727 | + | let totalLongAfter = $t02992230177._6 | |
728 | + | let totalShortAfter = $t02992230177._7 | |
729 | + | if (if ((_minBaseAssetAmount != 0)) | |
730 | + | then (_minBaseAssetAmount > abs(amountBaseAssetBought)) | |
731 | + | else false) | |
732 | + | then throw(((("Limit error: " + toString(abs(amountBaseAssetBought))) + " < ") + toString(_minBaseAssetAmount))) | |
733 | + | else { | |
734 | + | let newPositionSize = (oldPositionSize + amountBaseAssetBought) | |
735 | + | let increaseMarginRequirement = divd(openNotional, _leverage) | |
736 | + | let $t03055830811 = calcRemainMarginWithFundingPayment(oldPositionSize, oldPositionMargin, oldPositionLstUpdCPF, increaseMarginRequirement) | |
737 | + | let remainMargin = $t03055830811._1 | |
738 | + | let x1 = $t03055830811._2 | |
739 | + | let x2 = $t03055830811._3 | |
740 | + | let oldLatestCPF = $t03055830811._4 | |
741 | + | $Tuple11(newPositionSize, remainMargin, (oldPositionOpenNotional + openNotional), oldLatestCPF, baseAssetReserveAfter, quoteAssetReserveAfter, totalPositionSizeAfter, cumulativeNotionalAfter, (openInteresetNotional() + openNotional), totalLongAfter, totalShortAfter) | |
742 | + | } | |
743 | + | } | |
744 | + | else { | |
745 | + | let openNotional = muld(_amount, _leverage) | |
746 | + | let $t03145931575 = getPositionNotionalAndUnrealizedPnl(toString(i.caller), PNL_OPTION_SPOT) | |
747 | + | let oldPositionNotional = $t03145931575._1 | |
748 | + | let unrealizedPnl = $t03145931575._2 | |
749 | + | if ((oldPositionNotional > openNotional)) | |
750 | + | then throw("Use decreasePosition to decrease position size") | |
751 | + | else throw("Close position first") | |
752 | + | } | |
753 | + | let newPositionSize = $t02949831766._1 | |
754 | + | let newPositionRemainMargin = $t02949831766._2 | |
755 | + | let newPosiionOpenNotional = $t02949831766._3 | |
756 | + | let newPositionLatestCPF = $t02949831766._4 | |
757 | + | let baseAssetReserveAfter = $t02949831766._5 | |
758 | + | let quoteAssetReserveAfter = $t02949831766._6 | |
759 | + | let totalPositionSizeAfter = $t02949831766._7 | |
760 | + | let cumulativeNotionalAfter = $t02949831766._8 | |
761 | + | let openInteresetNotionalAfter = $t02949831766._9 | |
762 | + | let totalLongAfter = $t02949831766._10 | |
763 | + | let totalShortAfter = $t02949831766._11 | |
764 | + | let feeToStakers = (feeAmount / 2) | |
765 | + | let feeToInsurance = (feeAmount - feeToStakers) | |
766 | + | let stake = invoke(quoteAssetStaking(), "lockNeutrinoSP", [toString(stakingAddress()), ALL_FEES], [AttachedPayment(quoteAsset(), _amount)]) | |
767 | + | if ((stake == stake)) | |
768 | + | then { | |
769 | + | let depositInsurance = invoke(insuranceAddress(), "deposit", nil, [AttachedPayment(quoteAsset(), feeToInsurance)]) | |
770 | + | if ((depositInsurance == depositInsurance)) | |
771 | + | then (((updatePosition(toString(i.caller), newPositionSize, newPositionRemainMargin, newPosiionOpenNotional, newPositionLatestCPF) ++ updateAmm(quoteAssetReserveAfter, baseAssetReserveAfter, totalPositionSizeAfter, cumulativeNotionalAfter, openInteresetNotionalAfter, totalLongAfter, totalShortAfter)) ++ transferFee(feeToStakers)) ++ updateBalance((cbalance() + _amount))) | |
772 | + | else throw("Strict value is not equal to itself.") | |
773 | + | } | |
774 | + | else throw("Strict value is not equal to itself.") | |
775 | + | } | |
776 | + | } | |
777 | + | ||
778 | + | ||
779 | + | ||
780 | + | @Callable(i) | |
781 | + | func addMargin () = { | |
782 | + | let _rawAmount = i.payments[0].amount | |
783 | + | if (if (if (if ((i.payments[0].assetId != quoteAsset())) | |
784 | + | then true | |
785 | + | else !(requireOpenPosition(toString(i.caller)))) | |
786 | + | then true | |
787 | + | else !(initialized())) | |
788 | + | then true | |
789 | + | else paused()) | |
790 | + | then throw("Invalid addMargin parameters") | |
791 | + | else { | |
792 | + | let feeAmount = muld(_rawAmount, fee()) | |
793 | + | let _amount = (_rawAmount - feeAmount) | |
794 | + | let $t03304233194 = getPosition(toString(i.caller)) | |
795 | + | let oldPositionSize = $t03304233194._1 | |
796 | + | let oldPositionMargin = $t03304233194._2 | |
797 | + | let oldPositionOpenNotional = $t03304233194._3 | |
798 | + | let oldPositionLstUpdCPF = $t03304233194._4 | |
799 | + | let feeToStakers = (feeAmount / 2) | |
800 | + | let feeToInsurance = (feeAmount - feeToStakers) | |
801 | + | let stake = invoke(quoteAssetStaking(), "lockNeutrinoSP", [toString(stakingAddress()), ALL_FEES], [AttachedPayment(quoteAsset(), _amount)]) | |
802 | + | if ((stake == stake)) | |
803 | + | then { | |
804 | + | let depositInsurance = invoke(insuranceAddress(), "deposit", nil, [AttachedPayment(quoteAsset(), feeToInsurance)]) | |
805 | + | if ((depositInsurance == depositInsurance)) | |
806 | + | then ((updatePosition(toString(i.caller), oldPositionSize, (oldPositionMargin + i.payments[0].amount), oldPositionOpenNotional, oldPositionLstUpdCPF) ++ transferFee(feeToStakers)) ++ updateBalance((cbalance() + _amount))) | |
807 | + | else throw("Strict value is not equal to itself.") | |
808 | + | } | |
809 | + | else throw("Strict value is not equal to itself.") | |
810 | + | } | |
811 | + | } | |
812 | + | ||
813 | + | ||
814 | + | ||
815 | + | @Callable(i) | |
816 | + | func removeMargin (_amount) = if (if (if (if ((0 >= _amount)) | |
817 | + | then true | |
818 | + | else !(requireOpenPosition(toString(i.caller)))) | |
819 | + | then true | |
820 | + | else !(initialized())) | |
821 | + | then true | |
822 | + | else paused()) | |
823 | + | then throw("Invalid removeMargin parameters") | |
824 | + | else { | |
825 | + | let $t03412734279 = getPosition(toString(i.caller)) | |
826 | + | let oldPositionSize = $t03412734279._1 | |
827 | + | let oldPositionMargin = $t03412734279._2 | |
828 | + | let oldPositionOpenNotional = $t03412734279._3 | |
829 | + | let oldPositionLstUpdCPF = $t03412734279._4 | |
830 | + | let marginDelta = -(_amount) | |
831 | + | let $t03431634511 = calcRemainMarginWithFundingPayment(oldPositionSize, oldPositionMargin, oldPositionLstUpdCPF, marginDelta) | |
832 | + | let remainMargin = $t03431634511._1 | |
833 | + | let badDebt = $t03431634511._2 | |
834 | + | let x1 = $t03431634511._3 | |
835 | + | let latestCPF1 = $t03431634511._4 | |
836 | + | if ((badDebt != 0)) | |
837 | + | then throw("Invalid added margin amount") | |
838 | + | else { | |
839 | + | let unstake = invoke(quoteAssetStaking(), "unlockNeutrino", [_amount, toBase58String(quoteAsset())], nil) | |
840 | + | if ((unstake == unstake)) | |
841 | + | then ((updatePosition(toString(i.caller), oldPositionSize, remainMargin, oldPositionOpenNotional, latestCPF1) ++ withdraw(i.caller, _amount)) ++ updateBalance((cbalance() - _amount))) | |
842 | + | else throw("Strict value is not equal to itself.") | |
843 | + | } | |
844 | + | } | |
845 | + | ||
846 | + | ||
847 | + | ||
848 | + | @Callable(i) | |
849 | + | func closePosition () = if (if (if (!(requireOpenPosition(toString(i.caller)))) | |
850 | + | then true | |
851 | + | else !(initialized())) | |
852 | + | then true | |
853 | + | else paused()) | |
854 | + | then throw("Invalid closePosition parameters") | |
855 | + | else { | |
856 | + | let $t03523335610 = internalClosePosition(toString(i.caller)) | |
857 | + | let x1 = $t03523335610._1 | |
858 | + | let badDebt = $t03523335610._2 | |
859 | + | let realizedPnl = $t03523335610._3 | |
860 | + | let marginToVault = $t03523335610._4 | |
861 | + | let quoteAssetReserveAfter = $t03523335610._5 | |
862 | + | let baseAssetReserveAfter = $t03523335610._6 | |
863 | + | let totalPositionSizeAfter = $t03523335610._7 | |
864 | + | let cumulativeNotionalAfter = $t03523335610._8 | |
865 | + | let openInteresetNotionalAfter = $t03523335610._9 | |
866 | + | let x2 = $t03523335610._10 | |
867 | + | let totalLongAfter = $t03523335610._11 | |
868 | + | let totalShortAfter = $t03523335610._12 | |
869 | + | if ((badDebt > 0)) | |
870 | + | then throw("Unable to close position with bad debt") | |
871 | + | else { | |
872 | + | let withdrawAmount = abs(marginToVault) | |
873 | + | let bd = (cbalance() - withdrawAmount) | |
874 | + | let $t03580335899 = if ((0 > bd)) | |
875 | + | then $Tuple2(0, abs(bd)) | |
876 | + | else $Tuple2(bd, 0) | |
877 | + | let nb = $t03580335899._1 | |
878 | + | let fromi = $t03580335899._2 | |
879 | + | let x = if ((fromi > 0)) | |
880 | + | then { | |
881 | + | let withdrawInsurance = invoke(insuranceAddress(), "withdraw", [fromi], nil) | |
882 | + | if ((withdrawInsurance == withdrawInsurance)) | |
883 | + | then nil | |
884 | + | else throw("Strict value is not equal to itself.") | |
885 | + | } | |
886 | + | else nil | |
887 | + | if ((x == x)) | |
888 | + | then { | |
889 | + | let unstake = invoke(quoteAssetStaking(), "unlockNeutrino", [(withdrawAmount - fromi), toBase58String(quoteAsset())], nil) | |
890 | + | if ((unstake == unstake)) | |
891 | + | then (((deletePosition(toString(i.caller)) ++ updateAmm(quoteAssetReserveAfter, baseAssetReserveAfter, totalPositionSizeAfter, cumulativeNotionalAfter, openInteresetNotionalAfter, totalLongAfter, totalShortAfter)) ++ withdraw(i.caller, withdrawAmount)) ++ updateBalance(nb)) | |
892 | + | else throw("Strict value is not equal to itself.") | |
893 | + | } | |
894 | + | else throw("Strict value is not equal to itself.") | |
895 | + | } | |
896 | + | } | |
897 | + | ||
898 | + | ||
899 | + | ||
900 | + | @Callable(i) | |
901 | + | func liquidate (_trader) = { | |
902 | + | let marginRatio = if (isOverFluctuationLimit()) | |
903 | + | then getMarginRatioByOption(_trader, PNL_OPTION_ORACLE) | |
904 | + | else getMarginRatioByOption(_trader, PNL_OPTION_SPOT) | |
905 | + | if (if (if (!(requireMoreMarginRatio(marginRatio, mmr(), false))) | |
906 | + | then true | |
907 | + | else !(initialized())) | |
908 | + | then true | |
909 | + | else paused()) | |
910 | + | then throw("Unable to liquidate") | |
911 | + | else { | |
912 | + | let $t03707437405 = internalClosePosition(_trader) | |
913 | + | let x1 = $t03707437405._1 | |
914 | + | let badDebt = $t03707437405._2 | |
915 | + | let x2 = $t03707437405._3 | |
916 | + | let marginToVault = $t03707437405._4 | |
917 | + | let quoteAssetReserveAfter = $t03707437405._5 | |
918 | + | let baseAssetReserveAfter = $t03707437405._6 | |
919 | + | let totalPositionSizeAfter = $t03707437405._7 | |
920 | + | let cumulativeNotionalAfter = $t03707437405._8 | |
921 | + | let openInteresetNotionalAfter = $t03707437405._9 | |
922 | + | let exchangedQuoteAssetAmount = $t03707437405._10 | |
923 | + | let totalLongAfter = $t03707437405._11 | |
924 | + | let totalShortAfter = $t03707437405._12 | |
925 | + | let feeToLiquidator = (muld(exchangedQuoteAssetAmount, liquidationFeeRatio()) / 2) | |
926 | + | let $t03749537899 = if ((feeToLiquidator > marginToVault)) | |
927 | + | then $Tuple3((feeToLiquidator - marginToVault), marginToVault, ((badDebt + feeToLiquidator) - marginToVault)) | |
928 | + | else $Tuple3(0, (marginToVault - feeToLiquidator), badDebt) | |
929 | + | let liquidationBadDebt = $t03749537899._1 | |
930 | + | let remainMargin = $t03749537899._2 | |
931 | + | let totalBadDebt = $t03749537899._3 | |
932 | + | let bd = (cbalance() - feeToLiquidator) | |
933 | + | let $t03794738035 = if ((0 > bd)) | |
934 | + | then $Tuple2(0, abs(bd)) | |
935 | + | else $Tuple2(bd, 0) | |
936 | + | let nb = $t03794738035._1 | |
937 | + | let fromi = $t03794738035._2 | |
938 | + | let x = if ((fromi > 0)) | |
939 | + | then { | |
940 | + | let withdrawInsurance = invoke(insuranceAddress(), "withdraw", [fromi], nil) | |
941 | + | if ((withdrawInsurance == withdrawInsurance)) | |
942 | + | then nil | |
943 | + | else throw("Strict value is not equal to itself.") | |
944 | + | } | |
945 | + | else nil | |
946 | + | if ((x == x)) | |
947 | + | then { | |
948 | + | let unstake = invoke(quoteAssetStaking(), "unlockNeutrino", [(feeToLiquidator - fromi), toBase58String(quoteAsset())], nil) | |
949 | + | if ((unstake == unstake)) | |
950 | + | then (((deletePosition(_trader) ++ updateAmm(quoteAssetReserveAfter, baseAssetReserveAfter, totalPositionSizeAfter, cumulativeNotionalAfter, openInteresetNotionalAfter, totalLongAfter, totalShortAfter)) ++ withdraw(i.caller, feeToLiquidator)) ++ updateBalance(nb)) | |
951 | + | else throw("Strict value is not equal to itself.") | |
952 | + | } | |
953 | + | else throw("Strict value is not equal to itself.") | |
954 | + | } | |
955 | + | } | |
956 | + | ||
957 | + | ||
958 | + | ||
959 | + | @Callable(i) | |
960 | + | func payFunding () = { | |
961 | + | let fundingBlockTimestamp = nextFundingBlockTimestamp() | |
962 | + | if (if (if ((fundingBlockTimestamp > lastBlock.timestamp)) | |
963 | + | then true | |
964 | + | else !(initialized())) | |
965 | + | then true | |
966 | + | else paused()) | |
967 | + | then throw(((("Invalid funding block timestamp: " + toString(lastBlock.timestamp)) + " < ") + toString(fundingBlockTimestamp))) | |
968 | + | else { | |
969 | + | let underlyingPrice = getOracleTwapPrice() | |
970 | + | let spotTwapPrice = getTwapSpotPrice() | |
971 | + | let premium = (spotTwapPrice - underlyingPrice) | |
972 | + | let $t03921040547 = if (if ((totalShortPositionSize() == 0)) | |
973 | + | then true | |
974 | + | else (totalLongPositionSize() == 0)) | |
975 | + | then $Tuple2(0, 0) | |
976 | + | else if ((0 > premium)) | |
977 | + | then { | |
978 | + | let shortPremiumFraction = divd(muld(premium, fundingPeriodDecimal()), ONE_DAY) | |
979 | + | let longPremiumFraction = divd(muld(shortPremiumFraction, totalShortPositionSize()), totalLongPositionSize()) | |
980 | + | $Tuple2(shortPremiumFraction, longPremiumFraction) | |
981 | + | } | |
982 | + | else { | |
983 | + | let longPremiumFraction = divd(muld(premium, fundingPeriodDecimal()), ONE_DAY) | |
984 | + | let shortPremiumFraction = divd(muld(longPremiumFraction, totalLongPositionSize()), totalShortPositionSize()) | |
985 | + | $Tuple2(shortPremiumFraction, longPremiumFraction) | |
986 | + | } | |
987 | + | let shortPremiumFraction = $t03921040547._1 | |
988 | + | let longPremiumFraction = $t03921040547._2 | |
989 | + | updateFunding((fundingBlockTimestamp + fundingPeriodSeconds()), (latestLongCumulativePremiumFraction() + longPremiumFraction), (latestShortCumulativePremiumFraction() + shortPremiumFraction), divd(longPremiumFraction, underlyingPrice), divd(shortPremiumFraction, underlyingPrice)) | |
990 | + | } | |
991 | + | } | |
992 | + | ||
993 | + | ||
994 | + | ||
995 | + | @Callable(i) | |
996 | + | func v_get (_trader) = { | |
997 | + | let $t04092240975 = internalClosePosition(_trader) | |
998 | + | let x1 = $t04092240975._1 | |
999 | + | let x2 = $t04092240975._2 | |
1000 | + | let x3 = $t04092240975._3 | |
1001 | + | let x4 = $t04092240975._4 | |
1002 | + | throw((((s(x2) + s(x3)) + s(x4)) + s(getMarginRatio(_trader)))) | |
1003 | + | } | |
1004 | + | ||
1005 | + | ||
1006 | + | @Verifier(tx) | |
1007 | + | func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], adminPublicKey()) | |
1008 | + |
github/deemru/w8io/169f3d6 47.70 ms ◑