tx · 24DBuJWV3NrhLuHsPRz8WUhdtguWt6Mf7arrkKPMp6zx 3N7zLevhhrgookouJhsgqYbWcYWScYGeYfa: -0.04400000 Waves 2022.06.29 18:51 [2117933] smart account 3N7zLevhhrgookouJhsgqYbWcYWScYGeYfa > SELF 0.00000000 Waves
{ "type": 13, "id": "24DBuJWV3NrhLuHsPRz8WUhdtguWt6Mf7arrkKPMp6zx", "fee": 4400000, "feeAssetId": null, "timestamp": 1656517891764, "version": 2, "chainId": 84, "sender": "3N7zLevhhrgookouJhsgqYbWcYWScYGeYfa", "senderPublicKey": "FeQpco8bZyRqPURS5XnjK6jv2u6pGniWWAFfXwh3LAVb", "proofs": [ "do97k26ThMwDqDProogyj3bRd7J57yBK8UiUgBFnDhn8fVzf9AmWX2GGWrdb7cq9AMNQqjz3wwkHWRUgZ9sUpEc" ], "script": "base64:AAIFAAAAAAAAAEUIAhIAEgASCQoHAQEBAQEBARIOCgwBAQEBAQEBCAgIAQESBgoEAQEBARIFCgMBAQESABIDCgEBEgASAwoBCBIAEgMKAQgAAABuAAAAAAlrX29yYV9rZXkCAAAACWtfb3JhX2tleQAAAAAFa19vcmECAAAABWtfb3JhAAAAAAlrX2JhbGFuY2UCAAAACWtfYmFsYW5jZQAAAAAOa19wb3NpdGlvblNpemUCAAAADmtfcG9zaXRpb25TaXplAAAAABBrX3Bvc2l0aW9uTWFyZ2luAgAAABBrX3Bvc2l0aW9uTWFyZ2luAAAAABZrX3Bvc2l0aW9uT3Blbk5vdGlvbmFsAgAAABZrX3Bvc2l0aW9uT3Blbk5vdGlvbmFsAAAAAC5rX3Bvc2l0aW9uTGFzdFVwZGF0ZWRDdW11bGF0aXZlUHJlbWl1bUZyYWN0aW9uAgAAABJrX3Bvc2l0aW9uRnJhY3Rpb24AAAAADWtfaW5pdGlhbGl6ZWQCAAAADWtfaW5pdGlhbGl6ZWQAAAAACGtfcGF1c2VkAgAAAAhrX3BhdXNlZAAAAAAFa19mZWUCAAAABWtfZmVlAAAAA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ABCQEAAAAOZ2V0TWFyZ2luUmF0aW8AAAABBQAAAAdfdHJhZGVyAAAAAQAAAAJ0eAEAAAAGdmVyaWZ5AAAAAAkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAJAQAAAA5hZG1pblB1YmxpY0tleQAAAAATABkz", "height": 2117933, "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 swapOutput (_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 $t01210212295 = updateReserve(!(_isAdd), quoteAssetSold, _baseAssetAmount) | |
319 | + | let quoteAssetReserveAfter1 = $t01210212295._1 | |
320 | + | let baseAssetReserveAfter1 = $t01210212295._2 | |
321 | + | let totalPositionSizeAfter1 = $t01210212295._3 | |
322 | + | let cumulativeNotionalAfter1 = $t01210212295._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 $t01318713315 = getPosition(_trader) | |
354 | + | let positionSize = $t01318713315._1 | |
355 | + | let positionMargin = $t01318713315._2 | |
356 | + | let positionOpenNotional = $t01318713315._3 | |
357 | + | let positionLstUpdCPF = $t01318713315._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 $t01356213709 = swapOutput(!(isShort), positionSizeAbs, qtAstR(), bsAstR()) | |
366 | + | let outPositionNotional = $t01356213709._1 | |
367 | + | let x1 = $t01356213709._2 | |
368 | + | let x2 = $t01356213709._3 | |
369 | + | let x3 = $t01356213709._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 $t01413314244 = getPosition(_trader) | |
385 | + | let positionSize = $t01413314244._1 | |
386 | + | let positionMargin = $t01413314244._2 | |
387 | + | let pon = $t01413314244._3 | |
388 | + | let positionLstUpdCPF = $t01413314244._4 | |
389 | + | let $t01425014343 = getPositionNotionalAndUnrealizedPnl(_trader, _option) | |
390 | + | let positionNotional = $t01425014343._1 | |
391 | + | let unrealizedPnl = $t01425014343._2 | |
392 | + | let $t01434814514 = calcRemainMarginWithFundingPayment(positionSize, positionMargin, positionLstUpdCPF, unrealizedPnl) | |
393 | + | let remainMargin = $t01434814514._1 | |
394 | + | let badDebt = $t01434814514._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 $t01471014821 = getPosition(_trader) | |
404 | + | let positionSize = $t01471014821._1 | |
405 | + | let positionMargin = $t01471014821._2 | |
406 | + | let pon = $t01471014821._3 | |
407 | + | let positionLstUpdCPF = $t01471014821._4 | |
408 | + | let $t01482714914 = getPositionNotionalAndUnrealizedPnl(_trader, PNL_OPTION_SPOT) | |
409 | + | let x1 = $t01482714914._1 | |
410 | + | let unrealizedPnl = $t01482714914._2 | |
411 | + | let $t01491915091 = calcRemainMarginWithFundingPayment(positionSize, positionMargin, positionLstUpdCPF, unrealizedPnl) | |
412 | + | let remainMargin = $t01491915091._1 | |
413 | + | let badDebt = $t01491915091._2 | |
414 | + | let x2 = $t01491915091._3 | |
415 | + | let exchangedPositionSize = -(positionSize) | |
416 | + | let realizedPnl = unrealizedPnl | |
417 | + | let marginToVault = -(remainMargin) | |
418 | + | let $t01521815535 = swapOutput((positionSize > 0), abs(positionSize), qtAstR(), bsAstR()) | |
419 | + | let exchangedQuoteAssetAmount = $t01521815535._1 | |
420 | + | let quoteAssetReserveAfter = $t01521815535._2 | |
421 | + | let baseAssetReserveAfter = $t01521815535._3 | |
422 | + | let totalPositionSizeAfter = $t01521815535._4 | |
423 | + | let cumulativeNotionalAfter = $t01521815535._5 | |
424 | + | let totalLongAfter = $t01521815535._6 | |
425 | + | let totalShortAfter = $t01521815535._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: " + toString(_totalLongPositionSize)) + " + ") + toString(_totalShortPositionSize)) + " != ") + toString(_totalPositionSizeAfter))) | |
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 $t02478624938 = getPosition(toString(i.caller)) | |
608 | + | let oldPositionSize = $t02478624938._1 | |
609 | + | let oldPositionMargin = $t02478624938._2 | |
610 | + | let oldPositionOpenNotional = $t02478624938._3 | |
611 | + | let oldPositionLstUpdCPF = $t02478624938._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 $t02522728103 = 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 $t02573325849 = getPositionNotionalAndUnrealizedPnl(toString(i.caller), PNL_OPTION_SPOT) | |
627 | + | let oldPositionNotional = $t02573325849._1 | |
628 | + | let unrealizedPnl = $t02573325849._2 | |
629 | + | if ((oldPositionNotional > openNotional)) | |
630 | + | then { | |
631 | + | let $t02591126198 = swapInput(isAdd, openNotional) | |
632 | + | let exchangedPositionSize = $t02591126198._1 | |
633 | + | let quoteAssetReserveAfter = $t02591126198._2 | |
634 | + | let baseAssetReserveAfter = $t02591126198._3 | |
635 | + | let totalPositionSizeAfter = $t02591126198._4 | |
636 | + | let cumulativeNotionalAfter = $t02591126198._5 | |
637 | + | let totalLongAfter = $t02591126198._6 | |
638 | + | let totalShortAfter = $t02591126198._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 $t02673927010 = calcRemainMarginWithFundingPayment(oldPositionSize, oldPositionMargin, oldPositionLstUpdCPF, realizedPnl) | |
649 | + | let remainMargin = $t02673927010._1 | |
650 | + | let badDebt = $t02673927010._2 | |
651 | + | let fundingPayment = $t02673927010._3 | |
652 | + | let oldLatestCPF = $t02673927010._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 = $t02522728103._1 | |
664 | + | let newPositionRemainMargin = $t02522728103._2 | |
665 | + | let newPosiionOpenNotional = $t02522728103._3 | |
666 | + | let newPositionLatestCPF = $t02522728103._4 | |
667 | + | let baseAssetReserveAfter = $t02522728103._5 | |
668 | + | let quoteAssetReserveAfter = $t02522728103._6 | |
669 | + | let totalPositionSizeAfter = $t02522728103._7 | |
670 | + | let cumulativeNotionalAfter = $t02522728103._8 | |
671 | + | let openInteresetNotionalAfter = $t02522728103._9 | |
672 | + | let totalLongAfter = $t02522728103._10 | |
673 | + | let totalShortAfter = $t02522728103._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 $t02913929291 = getPosition(toString(i.caller)) | |
704 | + | let oldPositionSize = $t02913929291._1 | |
705 | + | let oldPositionMargin = $t02913929291._2 | |
706 | + | let oldPositionOpenNotional = $t02913929291._3 | |
707 | + | let oldPositionLstUpdCPF = $t02913929291._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 $t02958031848 = if (if (isNewPosition) | |
717 | + | then true | |
718 | + | else expandExisting) | |
719 | + | then { | |
720 | + | let openNotional = muld(_amount, _leverage) | |
721 | + | let $t03000430259 = swapInput(isAdd, openNotional) | |
722 | + | let amountBaseAssetBought = $t03000430259._1 | |
723 | + | let quoteAssetReserveAfter = $t03000430259._2 | |
724 | + | let baseAssetReserveAfter = $t03000430259._3 | |
725 | + | let totalPositionSizeAfter = $t03000430259._4 | |
726 | + | let cumulativeNotionalAfter = $t03000430259._5 | |
727 | + | let totalLongAfter = $t03000430259._6 | |
728 | + | let totalShortAfter = $t03000430259._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 $t03064030893 = calcRemainMarginWithFundingPayment(oldPositionSize, oldPositionMargin, oldPositionLstUpdCPF, increaseMarginRequirement) | |
737 | + | let remainMargin = $t03064030893._1 | |
738 | + | let x1 = $t03064030893._2 | |
739 | + | let x2 = $t03064030893._3 | |
740 | + | let oldLatestCPF = $t03064030893._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 $t03154131657 = getPositionNotionalAndUnrealizedPnl(toString(i.caller), PNL_OPTION_SPOT) | |
747 | + | let oldPositionNotional = $t03154131657._1 | |
748 | + | let unrealizedPnl = $t03154131657._2 | |
749 | + | if ((oldPositionNotional > openNotional)) | |
750 | + | then throw("Use decreasePosition to decrease position size") | |
751 | + | else throw("Close position first") | |
752 | + | } | |
753 | + | let newPositionSize = $t02958031848._1 | |
754 | + | let newPositionRemainMargin = $t02958031848._2 | |
755 | + | let newPosiionOpenNotional = $t02958031848._3 | |
756 | + | let newPositionLatestCPF = $t02958031848._4 | |
757 | + | let baseAssetReserveAfter = $t02958031848._5 | |
758 | + | let quoteAssetReserveAfter = $t02958031848._6 | |
759 | + | let totalPositionSizeAfter = $t02958031848._7 | |
760 | + | let cumulativeNotionalAfter = $t02958031848._8 | |
761 | + | let openInteresetNotionalAfter = $t02958031848._9 | |
762 | + | let totalLongAfter = $t02958031848._10 | |
763 | + | let totalShortAfter = $t02958031848._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 $t03312433276 = getPosition(toString(i.caller)) | |
795 | + | let oldPositionSize = $t03312433276._1 | |
796 | + | let oldPositionMargin = $t03312433276._2 | |
797 | + | let oldPositionOpenNotional = $t03312433276._3 | |
798 | + | let oldPositionLstUpdCPF = $t03312433276._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 $t03420934361 = getPosition(toString(i.caller)) | |
826 | + | let oldPositionSize = $t03420934361._1 | |
827 | + | let oldPositionMargin = $t03420934361._2 | |
828 | + | let oldPositionOpenNotional = $t03420934361._3 | |
829 | + | let oldPositionLstUpdCPF = $t03420934361._4 | |
830 | + | let marginDelta = -(_amount) | |
831 | + | let $t03439834593 = calcRemainMarginWithFundingPayment(oldPositionSize, oldPositionMargin, oldPositionLstUpdCPF, marginDelta) | |
832 | + | let remainMargin = $t03439834593._1 | |
833 | + | let badDebt = $t03439834593._2 | |
834 | + | let x1 = $t03439834593._3 | |
835 | + | let latestCPF1 = $t03439834593._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 $t03531535692 = internalClosePosition(toString(i.caller)) | |
857 | + | let x1 = $t03531535692._1 | |
858 | + | let badDebt = $t03531535692._2 | |
859 | + | let realizedPnl = $t03531535692._3 | |
860 | + | let marginToVault = $t03531535692._4 | |
861 | + | let quoteAssetReserveAfter = $t03531535692._5 | |
862 | + | let baseAssetReserveAfter = $t03531535692._6 | |
863 | + | let totalPositionSizeAfter = $t03531535692._7 | |
864 | + | let cumulativeNotionalAfter = $t03531535692._8 | |
865 | + | let openInteresetNotionalAfter = $t03531535692._9 | |
866 | + | let x2 = $t03531535692._10 | |
867 | + | let totalLongAfter = $t03531535692._11 | |
868 | + | let totalShortAfter = $t03531535692._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 $t03588535981 = if ((0 > bd)) | |
875 | + | then $Tuple2(0, abs(bd)) | |
876 | + | else $Tuple2(bd, 0) | |
877 | + | let nb = $t03588535981._1 | |
878 | + | let fromi = $t03588535981._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 $t03715637487 = internalClosePosition(_trader) | |
913 | + | let x1 = $t03715637487._1 | |
914 | + | let badDebt = $t03715637487._2 | |
915 | + | let x2 = $t03715637487._3 | |
916 | + | let marginToVault = $t03715637487._4 | |
917 | + | let quoteAssetReserveAfter = $t03715637487._5 | |
918 | + | let baseAssetReserveAfter = $t03715637487._6 | |
919 | + | let totalPositionSizeAfter = $t03715637487._7 | |
920 | + | let cumulativeNotionalAfter = $t03715637487._8 | |
921 | + | let openInteresetNotionalAfter = $t03715637487._9 | |
922 | + | let exchangedQuoteAssetAmount = $t03715637487._10 | |
923 | + | let totalLongAfter = $t03715637487._11 | |
924 | + | let totalShortAfter = $t03715637487._12 | |
925 | + | let feeToLiquidator = (muld(exchangedQuoteAssetAmount, liquidationFeeRatio()) / 2) | |
926 | + | let $t03757737981 = if ((feeToLiquidator > marginToVault)) | |
927 | + | then $Tuple3((feeToLiquidator - marginToVault), marginToVault, ((badDebt + feeToLiquidator) - marginToVault)) | |
928 | + | else $Tuple3(0, (marginToVault - feeToLiquidator), badDebt) | |
929 | + | let liquidationBadDebt = $t03757737981._1 | |
930 | + | let remainMargin = $t03757737981._2 | |
931 | + | let totalBadDebt = $t03757737981._3 | |
932 | + | let bd = (cbalance() - feeToLiquidator) | |
933 | + | let $t03802938117 = if ((0 > bd)) | |
934 | + | then $Tuple2(0, abs(bd)) | |
935 | + | else $Tuple2(bd, 0) | |
936 | + | let nb = $t03802938117._1 | |
937 | + | let fromi = $t03802938117._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 $t03929240629 = 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 = $t03929240629._1 | |
988 | + | let longPremiumFraction = $t03929240629._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 $t04100441057 = internalClosePosition(_trader) | |
998 | + | let x1 = $t04100441057._1 | |
999 | + | let x2 = $t04100441057._2 | |
1000 | + | let x3 = $t04100441057._3 | |
1001 | + | let x4 = $t04100441057._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 46.20 ms ◑