tx · 7SvgaqmF5GKoY7yV4a2R9DkKGwN7pCiATJCaN1ZQRt3p 3N6oDPd6n4PpAh1e2DDBQbNZgiVFpxLBXcm: -0.04500000 Waves 2022.06.29 22:13 [2118138] smart account 3N6oDPd6n4PpAh1e2DDBQbNZgiVFpxLBXcm > SELF 0.00000000 Waves
{ "type": 13, "id": "7SvgaqmF5GKoY7yV4a2R9DkKGwN7pCiATJCaN1ZQRt3p", "fee": 4500000, "feeAssetId": null, "timestamp": 1656530064081, "version": 2, "chainId": 84, "sender": "3N6oDPd6n4PpAh1e2DDBQbNZgiVFpxLBXcm", "senderPublicKey": "H5zi3v7PJYXiirXCGwwHcHSvTTzVc8yR6zBtzAnUAqst", "proofs": [ "2Q7rmbaXUiVfZDdnhDiLSuBrzxGrzTjh774o54DYPcCHba8CKbawgJRKweXKwHyWqn6wk1JvSvaz5xexUSVD1L76" ], "script": "base64:AAIFAAAAAAAAAEoIAhIAEgASCQoHAQEBAQEBARIOCgwBAQEBAQEBCAgIAQESBgoEAQEBARIFCgMBAQESABIDCgEBEgASAwoBCBIAEgMKAQgSAwoBCAAAAG4AAAAACWtfb3JhX2tleQIAAAAJa19vcmFfa2V5AAAAAAVrX29yYQIAAAAFa19vcmEAAAAACWtfYmFsYW5jZQIAAAAJa19iYWxhbmNlAAAAAA5rX3Bvc2l0aW9uU2l6ZQIAAAAOa19wb3NpdGlvblNpemUAAAAAEGtfcG9zaXRpb25NYXJnaW4CAAAAEGtfcG9zaXRpb25NYXJnaW4AAAAAFmtfcG9zaXRpb25PcGVuTm90aW9uYWwCAAAAFmtfcG9zaXRpb25PcGVuTm90aW9uYWwAAAAALmtfcG9zaXRpb25MYXN0VXBkYXRlZEN1bXVsYXRpdmVQcmVtaXVtRnJhY3Rpb24CAAAAEmtfcG9zaXRpb25GcmFjdGlvbgAAAAANa19pbml0aWFsaXplZAIAAAANa19pbml0aWFsaXplZAAAAAAIa19wYXVzZWQCAAAACGtfcGF1c2VkAAAAAAVrX2ZlZQI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BQAAAAxwb3NpdGlvblNpemUFAAAADnBvc2l0aW9uTWFyZ2luBQAAABFwb3NpdGlvbkxzdFVwZENQRgUAAAANdW5yZWFsaXplZFBubAQAAAAMcmVtYWluTWFyZ2luCAUAAAANJHQwNDE2OTE0MTg3MwAAAAJfMQQAAAAHYmFkRGVidAgFAAAADSR0MDQxNjkxNDE4NzMAAAACXzIEAAAADmZ1bmRpbmdQYXltZW50CAUAAAANJHQwNDE2OTE0MTg3MwAAAAJfMwkAAAIAAAABCQABLAAAAAIJAQAAAAFzAAAAAQUAAAAMcmVtYWluTWFyZ2luCQEAAAABcwAAAAEFAAAADmZ1bmRpbmdQYXltZW50AAAAAQAAAAJ0eAEAAAAGdmVyaWZ5AAAAAAkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAJAQAAAA5hZG1pblB1YmxpY0tleQAAAACteCQv", "height": 2118138, "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 | + | $Tuple5(amountBaseAssetBought, quoteAssetReserveAfter1, baseAssetReserveAfter1, totalPositionSizeAfter1, cumulativeNotionalAfter1) | |
286 | + | } | |
287 | + | } | |
288 | + | ||
289 | + | ||
290 | + | func calcRemainMarginWithFundingPayment (_oldPositionSize,_oldPositionMargin,_oldPositionLstUpdCPF,_marginDelta) = { | |
291 | + | let _latestCPF = latestCPF(_oldPositionSize) | |
292 | + | let fundingPayment = if ((_oldPositionSize != 0)) | |
293 | + | then muld((_latestCPF - _oldPositionLstUpdCPF), _oldPositionSize) | |
294 | + | else 0 | |
295 | + | let signedMargin = ((_marginDelta - fundingPayment) + _oldPositionMargin) | |
296 | + | let $t01117011297 = if ((0 > signedMargin)) | |
297 | + | then $Tuple2(0, abs(signedMargin)) | |
298 | + | else $Tuple2(abs(signedMargin), 0) | |
299 | + | let remainMargin = $t01117011297._1 | |
300 | + | let badDebt = $t01117011297._2 | |
301 | + | $Tuple4(remainMargin, badDebt, fundingPayment, _latestCPF) | |
302 | + | } | |
303 | + | ||
304 | + | ||
305 | + | func swapOutput (_isAdd,_baseAssetAmount,_quoteAssetPoolAmount,_baseAssetPoolAmount) = if ((_baseAssetAmount == 0)) | |
306 | + | then throw("Invalid base asset amount") | |
307 | + | else { | |
308 | + | let k = muld(_quoteAssetPoolAmount, _baseAssetPoolAmount) | |
309 | + | let baseAssetPoolAmountAfter = if (_isAdd) | |
310 | + | then (_baseAssetPoolAmount + _baseAssetAmount) | |
311 | + | else (_baseAssetPoolAmount - _baseAssetAmount) | |
312 | + | let quoteAssetAfter = divd(k, baseAssetPoolAmountAfter) | |
313 | + | let quoteAssetSold = abs((quoteAssetAfter - _quoteAssetPoolAmount)) | |
314 | + | let $t01193412127 = updateReserve(!(_isAdd), quoteAssetSold, _baseAssetAmount) | |
315 | + | let quoteAssetReserveAfter1 = $t01193412127._1 | |
316 | + | let baseAssetReserveAfter1 = $t01193412127._2 | |
317 | + | let totalPositionSizeAfter1 = $t01193412127._3 | |
318 | + | let cumulativeNotionalAfter1 = $t01193412127._4 | |
319 | + | $Tuple7(quoteAssetSold, quoteAssetReserveAfter1, baseAssetReserveAfter1, totalPositionSizeAfter1, cumulativeNotionalAfter1, (totalLongPositionSize() - (if (_isAdd) | |
320 | + | then abs(_baseAssetAmount) | |
321 | + | else 0)), (totalShortPositionSize() - (if (!(_isAdd)) | |
322 | + | then abs(_baseAssetAmount) | |
323 | + | else 0))) | |
324 | + | } | |
325 | + | ||
326 | + | ||
327 | + | func getOracleTwapPrice () = { | |
328 | + | let oracle = valueOrErrorMessage(addressFromString(getStringValue(this, k_ora)), "") | |
329 | + | let priceKey = getStringValue(this, k_ora_key) | |
330 | + | getIntegerValue(oracle, priceKey) | |
331 | + | } | |
332 | + | ||
333 | + | ||
334 | + | func getSpotPrice () = { | |
335 | + | let _qtAstR = qtAstR() | |
336 | + | let _bsAstR = bsAstR() | |
337 | + | divd(_qtAstR, _bsAstR) | |
338 | + | } | |
339 | + | ||
340 | + | ||
341 | + | func isOverFluctuationLimit () = { | |
342 | + | let oraclePrice = getOracleTwapPrice() | |
343 | + | let currentPrice = getSpotPrice() | |
344 | + | (divd(abs((oraclePrice - currentPrice)), oraclePrice) > spreadLimit()) | |
345 | + | } | |
346 | + | ||
347 | + | ||
348 | + | func getPositionNotionalAndUnrealizedPnl (_trader,_option) = { | |
349 | + | let $t01301913147 = getPosition(_trader) | |
350 | + | let positionSize = $t01301913147._1 | |
351 | + | let positionMargin = $t01301913147._2 | |
352 | + | let positionOpenNotional = $t01301913147._3 | |
353 | + | let positionLstUpdCPF = $t01301913147._4 | |
354 | + | let positionSizeAbs = abs(positionSize) | |
355 | + | if ((positionSizeAbs == 0)) | |
356 | + | then throw("Invalid position size") | |
357 | + | else { | |
358 | + | let isShort = (0 > positionSize) | |
359 | + | let positionNotional = if ((_option == PNL_OPTION_SPOT)) | |
360 | + | then { | |
361 | + | let $t01339413541 = swapOutput(!(isShort), positionSizeAbs, qtAstR(), bsAstR()) | |
362 | + | let outPositionNotional = $t01339413541._1 | |
363 | + | let x1 = $t01339413541._2 | |
364 | + | let x2 = $t01339413541._3 | |
365 | + | let x3 = $t01339413541._4 | |
366 | + | outPositionNotional | |
367 | + | } | |
368 | + | else (positionSizeAbs * getOracleTwapPrice()) | |
369 | + | let unrealizedPnl = if (isShort) | |
370 | + | then (positionOpenNotional - positionNotional) | |
371 | + | else (positionNotional - positionOpenNotional) | |
372 | + | $Tuple2(positionNotional, unrealizedPnl) | |
373 | + | } | |
374 | + | } | |
375 | + | ||
376 | + | ||
377 | + | func getMarginRatioByOption (_trader,_option) = { | |
378 | + | func x () = 0 | |
379 | + | ||
380 | + | let $t01396514076 = getPosition(_trader) | |
381 | + | let positionSize = $t01396514076._1 | |
382 | + | let positionMargin = $t01396514076._2 | |
383 | + | let pon = $t01396514076._3 | |
384 | + | let positionLstUpdCPF = $t01396514076._4 | |
385 | + | let $t01408214175 = getPositionNotionalAndUnrealizedPnl(_trader, _option) | |
386 | + | let positionNotional = $t01408214175._1 | |
387 | + | let unrealizedPnl = $t01408214175._2 | |
388 | + | let $t01418014346 = calcRemainMarginWithFundingPayment(positionSize, positionMargin, positionLstUpdCPF, unrealizedPnl) | |
389 | + | let remainMargin = $t01418014346._1 | |
390 | + | let badDebt = $t01418014346._2 | |
391 | + | divd((remainMargin - badDebt), positionNotional) | |
392 | + | } | |
393 | + | ||
394 | + | ||
395 | + | func getMarginRatio (_trader) = getMarginRatioByOption(_trader, PNL_OPTION_SPOT) | |
396 | + | ||
397 | + | ||
398 | + | func internalClosePosition (_trader) = { | |
399 | + | let $t01454214653 = getPosition(_trader) | |
400 | + | let positionSize = $t01454214653._1 | |
401 | + | let positionMargin = $t01454214653._2 | |
402 | + | let pon = $t01454214653._3 | |
403 | + | let positionLstUpdCPF = $t01454214653._4 | |
404 | + | let $t01465914746 = getPositionNotionalAndUnrealizedPnl(_trader, PNL_OPTION_SPOT) | |
405 | + | let x1 = $t01465914746._1 | |
406 | + | let unrealizedPnl = $t01465914746._2 | |
407 | + | let $t01475114923 = calcRemainMarginWithFundingPayment(positionSize, positionMargin, positionLstUpdCPF, unrealizedPnl) | |
408 | + | let remainMargin = $t01475114923._1 | |
409 | + | let badDebt = $t01475114923._2 | |
410 | + | let x2 = $t01475114923._3 | |
411 | + | let exchangedPositionSize = -(positionSize) | |
412 | + | let realizedPnl = unrealizedPnl | |
413 | + | let marginToVault = -(remainMargin) | |
414 | + | let $t01505015367 = swapOutput((positionSize > 0), abs(positionSize), qtAstR(), bsAstR()) | |
415 | + | let exchangedQuoteAssetAmount = $t01505015367._1 | |
416 | + | let quoteAssetReserveAfter = $t01505015367._2 | |
417 | + | let baseAssetReserveAfter = $t01505015367._3 | |
418 | + | let totalPositionSizeAfter = $t01505015367._4 | |
419 | + | let cumulativeNotionalAfter = $t01505015367._5 | |
420 | + | let totalLongAfter = $t01505015367._6 | |
421 | + | let totalShortAfter = $t01505015367._7 | |
422 | + | let openInteresetNotionalAfter = (openInteresetNotional() - pon) | |
423 | + | $Tuple12(exchangedPositionSize, badDebt, realizedPnl, marginToVault, quoteAssetReserveAfter, baseAssetReserveAfter, totalPositionSizeAfter, cumulativeNotionalAfter, openInteresetNotionalAfter, exchangedQuoteAssetAmount, totalLongAfter, totalShortAfter) | |
424 | + | } | |
425 | + | ||
426 | + | ||
427 | + | func getTwapSpotPrice () = { | |
428 | + | let minuteId = ((lastBlock.timestamp / 1000) / 60) | |
429 | + | let startMinuteId = (minuteId - TWAP_INTERVAL) | |
430 | + | let listStr = valueOrElse(getString(this, k_lastDataStr), "") | |
431 | + | let list = split(listStr, ",") | |
432 | + | func filterFn (accum,next) = if ((startMinuteId >= parseIntValue(next))) | |
433 | + | then (accum :+ parseIntValue(next)) | |
434 | + | else accum | |
435 | + | ||
436 | + | let listF = { | |
437 | + | let $l = list | |
438 | + | let $s = size($l) | |
439 | + | let $acc0 = nil | |
440 | + | func $f0_1 ($a,$i) = if (($i >= $s)) | |
441 | + | then $a | |
442 | + | else filterFn($a, $l[$i]) | |
443 | + | ||
444 | + | func $f0_2 ($a,$i) = if (($i >= $s)) | |
445 | + | then $a | |
446 | + | else throw("List size exceeds 20") | |
447 | + | ||
448 | + | $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) | |
449 | + | } | |
450 | + | let maxIndex = if ((size(listF) > 0)) | |
451 | + | then max(listF) | |
452 | + | else parseIntValue(list[0]) | |
453 | + | let lastMinuteId = valueOrElse(getInteger(this, k_lastMinuteId), 0) | |
454 | + | let endLastCumulativePrice = valueOrElse(getInteger(this, ((k_twapDataLastCumulativePrice + "_") + toString(lastMinuteId))), 0) | |
455 | + | let endLastPrice = valueOrElse(getInteger(this, ((k_twapDataLastPrice + "_") + toString(lastMinuteId))), 0) | |
456 | + | let nowCummulativePrice = (endLastCumulativePrice + ((minuteId - lastMinuteId) * endLastPrice)) | |
457 | + | let startLastCumulativePrice = valueOrElse(getInteger(this, ((k_twapDataLastCumulativePrice + "_") + toString(maxIndex))), 0) | |
458 | + | let startLastPrice = valueOrElse(getInteger(this, ((k_twapDataLastPrice + "_") + toString(maxIndex))), 0) | |
459 | + | let startCummulativePrice = (startLastCumulativePrice + ((startMinuteId - maxIndex) * startLastPrice)) | |
460 | + | ((nowCummulativePrice - startCummulativePrice) / TWAP_INTERVAL) | |
461 | + | } | |
462 | + | ||
463 | + | ||
464 | + | 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)] | |
465 | + | ||
466 | + | ||
467 | + | 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)] | |
468 | + | ||
469 | + | ||
470 | + | 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)] | |
471 | + | ||
472 | + | ||
473 | + | func appendTwap (price) = { | |
474 | + | let minuteId = ((lastBlock.timestamp / 1000) / 60) | |
475 | + | let previousMinuteId = valueOrElse(getInteger(this, k_lastMinuteId), 0) | |
476 | + | if ((previousMinuteId > minuteId)) | |
477 | + | then throw("TWAP out-of-order") | |
478 | + | else { | |
479 | + | let lastMinuteId = if ((previousMinuteId == 0)) | |
480 | + | then minuteId | |
481 | + | else previousMinuteId | |
482 | + | let listStr = valueOrElse(getString(this, k_lastDataStr), "") | |
483 | + | let oldList = split(listStr, ",") | |
484 | + | let list = if ((size(oldList) > TWAP_INTERVAL)) | |
485 | + | then (removeByIndex(oldList, 0) :+ toString(minuteId)) | |
486 | + | else (oldList :+ toString(minuteId)) | |
487 | + | let prevCummulativePrice = valueOrElse(getInteger(this, ((k_twapDataLastCumulativePrice + "_") + toString(previousMinuteId))), 0) | |
488 | + | let prevPrice = valueOrElse(getInteger(this, ((k_twapDataLastPrice + "_") + toString(previousMinuteId))), price) | |
489 | + | let lastCummulativePrice = (prevCummulativePrice + ((minuteId - lastMinuteId) * prevPrice)) | |
490 | + | func join (accum,val) = ((accum + val) + ",") | |
491 | + | ||
492 | + | let newListStr = { | |
493 | + | let $l = list | |
494 | + | let $s = size($l) | |
495 | + | let $acc0 = "" | |
496 | + | func $f0_1 ($a,$i) = if (($i >= $s)) | |
497 | + | then $a | |
498 | + | else join($a, $l[$i]) | |
499 | + | ||
500 | + | func $f0_2 ($a,$i) = if (($i >= $s)) | |
501 | + | then $a | |
502 | + | else throw("List size exceeds 20") | |
503 | + | ||
504 | + | $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) | |
505 | + | } | |
506 | + | let newListStrU = dropRight(newListStr, 1) | |
507 | + | let newListStrR = if ((take(newListStrU, 1) == ",")) | |
508 | + | then drop(newListStrU, 1) | |
509 | + | else newListStrU | |
510 | + | [IntegerEntry(((k_twapDataLastCumulativePrice + "_") + toString(minuteId)), lastCummulativePrice), IntegerEntry(((k_twapDataLastPrice + "_") + toString(minuteId)), price), IntegerEntry(k_lastMinuteId, minuteId), StringEntry(k_lastDataStr, newListStrR)] | |
511 | + | } | |
512 | + | } | |
513 | + | ||
514 | + | ||
515 | + | func updateAmm (_qtAstR,_bsAstR,_totalPositionSizeAfter,_cumulativeNotionalAfter,_openInteresetNotional,_totalLongPositionSize,_totalShortPositionSize) = if (((_totalLongPositionSize - _totalShortPositionSize) != _totalPositionSizeAfter)) | |
516 | + | then throw(((((("Invalid AMM state data: " + toString(_totalLongPositionSize)) + " + ") + toString(_totalShortPositionSize)) + " != ") + toString(_totalPositionSizeAfter))) | |
517 | + | 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))) | |
518 | + | ||
519 | + | ||
520 | + | func deletePosition (_address) = [DeleteEntry(toCompositeKey(k_positionSize, _address)), DeleteEntry(toCompositeKey(k_positionMargin, _address)), DeleteEntry(toCompositeKey(k_positionOpenNotional, _address)), DeleteEntry(toCompositeKey(k_positionLastUpdatedCumulativePremiumFraction, _address))] | |
521 | + | ||
522 | + | ||
523 | + | func withdraw (_address,_amount) = { | |
524 | + | let balance = assetBalance(this, quoteAsset()) | |
525 | + | if ((_amount > balance)) | |
526 | + | then throw(((("Unable to withdraw " + toString(_amount)) + " from contract balance ") + toString(balance))) | |
527 | + | else [ScriptTransfer(_address, _amount, quoteAsset())] | |
528 | + | } | |
529 | + | ||
530 | + | ||
531 | + | func updateBalance (i) = if ((0 > i)) | |
532 | + | then throw("Balance") | |
533 | + | else [IntegerEntry(k_balance, i)] | |
534 | + | ||
535 | + | ||
536 | + | func transferFee (i) = [ScriptTransfer(stakingAddress(), i, quoteAsset())] | |
537 | + | ||
538 | + | ||
539 | + | @Callable(i) | |
540 | + | func pause () = if ((i.caller != adminAddress())) | |
541 | + | then throw("Invalid togglePause params") | |
542 | + | else [BooleanEntry(k_paused, true)] | |
543 | + | ||
544 | + | ||
545 | + | ||
546 | + | @Callable(i) | |
547 | + | func unpause () = if ((i.caller != adminAddress())) | |
548 | + | then throw("Invalid togglePause params") | |
549 | + | else [BooleanEntry(k_paused, false)] | |
550 | + | ||
551 | + | ||
552 | + | ||
553 | + | @Callable(i) | |
554 | + | func changeSettings (_initMarginRatio,_mmr,_liquidationFeeRatio,_fundingPeriod,_fee,_spreadLimit,_maxPriceImpact) = if ((i.caller != adminAddress())) | |
555 | + | then throw("Invalid changeSettings params") | |
556 | + | else updateSettings(_initMarginRatio, _mmr, _liquidationFeeRatio, _fundingPeriod, _fee, _spreadLimit, _maxPriceImpact) | |
557 | + | ||
558 | + | ||
559 | + | ||
560 | + | @Callable(i) | |
561 | + | 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)) | |
562 | + | then true | |
563 | + | else (0 >= _bsAstR)) | |
564 | + | then true | |
565 | + | else (0 >= _fundingPeriod)) | |
566 | + | then true | |
567 | + | else (0 >= _initMarginRatio)) | |
568 | + | then true | |
569 | + | else (0 >= _mmr)) | |
570 | + | then true | |
571 | + | else (0 >= _liquidationFeeRatio)) | |
572 | + | then true | |
573 | + | else (0 >= _fee)) | |
574 | + | then true | |
575 | + | else (0 >= _spreadLimit)) | |
576 | + | then true | |
577 | + | else (0 >= _maxPriceImpact)) | |
578 | + | then true | |
579 | + | else initialized()) | |
580 | + | then throw("Invalid initialize parameters") | |
581 | + | 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)]) | |
582 | + | ||
583 | + | ||
584 | + | ||
585 | + | @Callable(i) | |
586 | + | func decreasePosition (_direction,_amount,_leverage,_minBaseAssetAmount) = if (if (if (if (if (if (if ((_direction != DIR_LONG)) | |
587 | + | then (_direction != DIR_SHORT) | |
588 | + | else false) | |
589 | + | then true | |
590 | + | else (0 >= _amount)) | |
591 | + | then true | |
592 | + | else if (((1 * DECIMAL_UNIT) > _leverage)) | |
593 | + | then true | |
594 | + | else (_leverage > (3 * DECIMAL_UNIT))) | |
595 | + | then true | |
596 | + | else !(initialized())) | |
597 | + | then true | |
598 | + | else !(requireMoreMarginRatio(divd(DECIMAL_UNIT, _leverage), initMarginRatio(), true))) | |
599 | + | then true | |
600 | + | else paused()) | |
601 | + | then throw("Invalid decreasePosition parameters") | |
602 | + | else { | |
603 | + | let $t02461824770 = getPosition(toString(i.caller)) | |
604 | + | let oldPositionSize = $t02461824770._1 | |
605 | + | let oldPositionMargin = $t02461824770._2 | |
606 | + | let oldPositionOpenNotional = $t02461824770._3 | |
607 | + | let oldPositionLstUpdCPF = $t02461824770._4 | |
608 | + | let isNewPosition = (oldPositionSize == 0) | |
609 | + | let isSameDirection = if ((oldPositionSize > 0)) | |
610 | + | then (_direction == DIR_LONG) | |
611 | + | else (_direction == DIR_SHORT) | |
612 | + | let expandExisting = if (!(isNewPosition)) | |
613 | + | then isSameDirection | |
614 | + | else false | |
615 | + | let isAdd = (_direction == DIR_LONG) | |
616 | + | let $t02505928078 = if (if (isNewPosition) | |
617 | + | then true | |
618 | + | else expandExisting) | |
619 | + | then throw("Use increasePosition to open new or increase position") | |
620 | + | else { | |
621 | + | let openNotional = muld(_amount, _leverage) | |
622 | + | let $t02556525681 = getPositionNotionalAndUnrealizedPnl(toString(i.caller), PNL_OPTION_SPOT) | |
623 | + | let oldPositionNotional = $t02556525681._1 | |
624 | + | let unrealizedPnl = $t02556525681._2 | |
625 | + | if ((oldPositionNotional > openNotional)) | |
626 | + | then { | |
627 | + | let $t02574325973 = swapInput(isAdd, openNotional) | |
628 | + | let exchangedPositionSize = $t02574325973._1 | |
629 | + | let quoteAssetReserveAfter = $t02574325973._2 | |
630 | + | let baseAssetReserveAfter = $t02574325973._3 | |
631 | + | let totalPositionSizeAfter = $t02574325973._4 | |
632 | + | let cumulativeNotionalAfter = $t02574325973._5 | |
633 | + | let exchangedPositionSizeAbs = abs(exchangedPositionSize) | |
634 | + | if (if ((_minBaseAssetAmount != 0)) | |
635 | + | then (_minBaseAssetAmount > exchangedPositionSizeAbs) | |
636 | + | else false) | |
637 | + | then throw(((("Too little basse asset exchanged, got " + toString(exchangedPositionSizeAbs)) + " expected ") + toString(_minBaseAssetAmount))) | |
638 | + | else { | |
639 | + | let realizedPnl = if ((oldPositionSize != 0)) | |
640 | + | then divd(muld(unrealizedPnl, exchangedPositionSizeAbs), oldPositionSize) | |
641 | + | else 0 | |
642 | + | let $t02651426785 = calcRemainMarginWithFundingPayment(oldPositionSize, oldPositionMargin, oldPositionLstUpdCPF, realizedPnl) | |
643 | + | let remainMargin = $t02651426785._1 | |
644 | + | let badDebt = $t02651426785._2 | |
645 | + | let fundingPayment = $t02651426785._3 | |
646 | + | let oldLatestCPF = $t02651426785._4 | |
647 | + | let exchangedQuoteAssetAmount = openNotional | |
648 | + | let unrealizedPnlAfter = (unrealizedPnl - realizedPnl) | |
649 | + | let remainOpenNotional = if ((oldPositionSize > 0)) | |
650 | + | then ((oldPositionNotional - exchangedQuoteAssetAmount) - unrealizedPnlAfter) | |
651 | + | else ((unrealizedPnlAfter + oldPositionNotional) - exchangedQuoteAssetAmount) | |
652 | + | let newPositionSize = (oldPositionSize + exchangedPositionSize) | |
653 | + | $Tuple11(newPositionSize, remainMargin, abs(remainOpenNotional), oldLatestCPF, baseAssetReserveAfter, quoteAssetReserveAfter, totalPositionSizeAfter, cumulativeNotionalAfter, (openInteresetNotional() - openNotional), (totalLongPositionSize() - (if ((newPositionSize > 0)) | |
654 | + | then abs(exchangedPositionSize) | |
655 | + | else 0)), (totalShortPositionSize() - (if ((0 > newPositionSize)) | |
656 | + | then abs(exchangedPositionSize) | |
657 | + | else 0))) | |
658 | + | } | |
659 | + | } | |
660 | + | else throw("Close position first") | |
661 | + | } | |
662 | + | let newPositionSize = $t02505928078._1 | |
663 | + | let newPositionRemainMargin = $t02505928078._2 | |
664 | + | let newPosiionOpenNotional = $t02505928078._3 | |
665 | + | let newPositionLatestCPF = $t02505928078._4 | |
666 | + | let baseAssetReserveAfter = $t02505928078._5 | |
667 | + | let quoteAssetReserveAfter = $t02505928078._6 | |
668 | + | let totalPositionSizeAfter = $t02505928078._7 | |
669 | + | let cumulativeNotionalAfter = $t02505928078._8 | |
670 | + | let openInteresetNotionalAfter = $t02505928078._9 | |
671 | + | let totalLongAfter = $t02505928078._10 | |
672 | + | let totalShortAfter = $t02505928078._11 | |
673 | + | (updatePosition(toString(i.caller), newPositionSize, newPositionRemainMargin, newPosiionOpenNotional, newPositionLatestCPF) ++ updateAmm(quoteAssetReserveAfter, baseAssetReserveAfter, totalPositionSizeAfter, cumulativeNotionalAfter, openInteresetNotionalAfter, totalLongAfter, totalShortAfter)) | |
674 | + | } | |
675 | + | ||
676 | + | ||
677 | + | ||
678 | + | @Callable(i) | |
679 | + | func increasePosition (_direction,_leverage,_minBaseAssetAmount) = { | |
680 | + | let _rawAmount = i.payments[0].amount | |
681 | + | if (if (if (if (if (if (if (if ((_direction != DIR_LONG)) | |
682 | + | then (_direction != DIR_SHORT) | |
683 | + | else false) | |
684 | + | then true | |
685 | + | else (0 >= _rawAmount)) | |
686 | + | then true | |
687 | + | else if (((1 * DECIMAL_UNIT) > _leverage)) | |
688 | + | then true | |
689 | + | else (_leverage > (3 * DECIMAL_UNIT))) | |
690 | + | then true | |
691 | + | else !(initialized())) | |
692 | + | then true | |
693 | + | else (i.payments[0].assetId != quoteAsset())) | |
694 | + | then true | |
695 | + | else !(requireMoreMarginRatio(divd(DECIMAL_UNIT, _leverage), initMarginRatio(), true))) | |
696 | + | then true | |
697 | + | else paused()) | |
698 | + | then throw("Invalid increasePosition parameters") | |
699 | + | else { | |
700 | + | let feeAmount = muld(_rawAmount, fee()) | |
701 | + | let _amount = (_rawAmount - feeAmount) | |
702 | + | let $t02911429266 = getPosition(toString(i.caller)) | |
703 | + | let oldPositionSize = $t02911429266._1 | |
704 | + | let oldPositionMargin = $t02911429266._2 | |
705 | + | let oldPositionOpenNotional = $t02911429266._3 | |
706 | + | let oldPositionLstUpdCPF = $t02911429266._4 | |
707 | + | let isNewPosition = (oldPositionSize == 0) | |
708 | + | let isSameDirection = if ((oldPositionSize > 0)) | |
709 | + | then (_direction == DIR_LONG) | |
710 | + | else (_direction == DIR_SHORT) | |
711 | + | let expandExisting = if (!(isNewPosition)) | |
712 | + | then isSameDirection | |
713 | + | else false | |
714 | + | let isAdd = (_direction == DIR_LONG) | |
715 | + | let $t02955531924 = if (if (isNewPosition) | |
716 | + | then true | |
717 | + | else expandExisting) | |
718 | + | then { | |
719 | + | let openNotional = muld(_amount, _leverage) | |
720 | + | let $t02997930185 = swapInput(isAdd, openNotional) | |
721 | + | let amountBaseAssetBought = $t02997930185._1 | |
722 | + | let quoteAssetReserveAfter = $t02997930185._2 | |
723 | + | let baseAssetReserveAfter = $t02997930185._3 | |
724 | + | let totalPositionSizeAfter = $t02997930185._4 | |
725 | + | let cumulativeNotionalAfter = $t02997930185._5 | |
726 | + | if (if ((_minBaseAssetAmount != 0)) | |
727 | + | then (_minBaseAssetAmount > abs(amountBaseAssetBought)) | |
728 | + | else false) | |
729 | + | then throw(((("Limit error: " + toString(abs(amountBaseAssetBought))) + " < ") + toString(_minBaseAssetAmount))) | |
730 | + | else { | |
731 | + | let newPositionSize = (oldPositionSize + amountBaseAssetBought) | |
732 | + | let increaseMarginRequirement = divd(openNotional, _leverage) | |
733 | + | let $t03056630819 = calcRemainMarginWithFundingPayment(oldPositionSize, oldPositionMargin, oldPositionLstUpdCPF, increaseMarginRequirement) | |
734 | + | let remainMargin = $t03056630819._1 | |
735 | + | let x1 = $t03056630819._2 | |
736 | + | let x2 = $t03056630819._3 | |
737 | + | let oldLatestCPF = $t03056630819._4 | |
738 | + | $Tuple11(newPositionSize, remainMargin, (oldPositionOpenNotional + openNotional), oldLatestCPF, baseAssetReserveAfter, quoteAssetReserveAfter, totalPositionSizeAfter, cumulativeNotionalAfter, (openInteresetNotional() + openNotional), (totalLongPositionSize() + (if ((newPositionSize > 0)) | |
739 | + | then abs(amountBaseAssetBought) | |
740 | + | else 0)), (totalShortPositionSize() + (if ((0 > newPositionSize)) | |
741 | + | then abs(amountBaseAssetBought) | |
742 | + | else 0))) | |
743 | + | } | |
744 | + | } | |
745 | + | else { | |
746 | + | let openNotional = muld(_amount, _leverage) | |
747 | + | let $t03161731733 = getPositionNotionalAndUnrealizedPnl(toString(i.caller), PNL_OPTION_SPOT) | |
748 | + | let oldPositionNotional = $t03161731733._1 | |
749 | + | let unrealizedPnl = $t03161731733._2 | |
750 | + | if ((oldPositionNotional > openNotional)) | |
751 | + | then throw("Use decreasePosition to decrease position size") | |
752 | + | else throw("Close position first") | |
753 | + | } | |
754 | + | let newPositionSize = $t02955531924._1 | |
755 | + | let newPositionRemainMargin = $t02955531924._2 | |
756 | + | let newPosiionOpenNotional = $t02955531924._3 | |
757 | + | let newPositionLatestCPF = $t02955531924._4 | |
758 | + | let baseAssetReserveAfter = $t02955531924._5 | |
759 | + | let quoteAssetReserveAfter = $t02955531924._6 | |
760 | + | let totalPositionSizeAfter = $t02955531924._7 | |
761 | + | let cumulativeNotionalAfter = $t02955531924._8 | |
762 | + | let openInteresetNotionalAfter = $t02955531924._9 | |
763 | + | let totalLongAfter = $t02955531924._10 | |
764 | + | let totalShortAfter = $t02955531924._11 | |
765 | + | let feeToStakers = (feeAmount / 2) | |
766 | + | let feeToInsurance = (feeAmount - feeToStakers) | |
767 | + | let stake = invoke(quoteAssetStaking(), "lockNeutrinoSP", [toString(stakingAddress()), ALL_FEES], [AttachedPayment(quoteAsset(), _amount)]) | |
768 | + | if ((stake == stake)) | |
769 | + | then { | |
770 | + | let depositInsurance = invoke(insuranceAddress(), "deposit", nil, [AttachedPayment(quoteAsset(), feeToInsurance)]) | |
771 | + | if ((depositInsurance == depositInsurance)) | |
772 | + | then (((updatePosition(toString(i.caller), newPositionSize, newPositionRemainMargin, newPosiionOpenNotional, newPositionLatestCPF) ++ updateAmm(quoteAssetReserveAfter, baseAssetReserveAfter, totalPositionSizeAfter, cumulativeNotionalAfter, openInteresetNotionalAfter, totalLongAfter, totalShortAfter)) ++ transferFee(feeToStakers)) ++ updateBalance((cbalance() + _amount))) | |
773 | + | else throw("Strict value is not equal to itself.") | |
774 | + | } | |
775 | + | else throw("Strict value is not equal to itself.") | |
776 | + | } | |
777 | + | } | |
778 | + | ||
779 | + | ||
780 | + | ||
781 | + | @Callable(i) | |
782 | + | func addMargin () = { | |
783 | + | let _rawAmount = i.payments[0].amount | |
784 | + | if (if (if (if ((i.payments[0].assetId != quoteAsset())) | |
785 | + | then true | |
786 | + | else !(requireOpenPosition(toString(i.caller)))) | |
787 | + | then true | |
788 | + | else !(initialized())) | |
789 | + | then true | |
790 | + | else paused()) | |
791 | + | then throw("Invalid addMargin parameters") | |
792 | + | else { | |
793 | + | let feeAmount = muld(_rawAmount, fee()) | |
794 | + | let _amount = (_rawAmount - feeAmount) | |
795 | + | let $t03320033352 = getPosition(toString(i.caller)) | |
796 | + | let oldPositionSize = $t03320033352._1 | |
797 | + | let oldPositionMargin = $t03320033352._2 | |
798 | + | let oldPositionOpenNotional = $t03320033352._3 | |
799 | + | let oldPositionLstUpdCPF = $t03320033352._4 | |
800 | + | let feeToStakers = (feeAmount / 2) | |
801 | + | let feeToInsurance = (feeAmount - feeToStakers) | |
802 | + | let stake = invoke(quoteAssetStaking(), "lockNeutrinoSP", [toString(stakingAddress()), ALL_FEES], [AttachedPayment(quoteAsset(), _amount)]) | |
803 | + | if ((stake == stake)) | |
804 | + | then { | |
805 | + | let depositInsurance = invoke(insuranceAddress(), "deposit", nil, [AttachedPayment(quoteAsset(), feeToInsurance)]) | |
806 | + | if ((depositInsurance == depositInsurance)) | |
807 | + | then ((updatePosition(toString(i.caller), oldPositionSize, (oldPositionMargin + _amount), oldPositionOpenNotional, oldPositionLstUpdCPF) ++ transferFee(feeToStakers)) ++ updateBalance((cbalance() + _amount))) | |
808 | + | else throw("Strict value is not equal to itself.") | |
809 | + | } | |
810 | + | else throw("Strict value is not equal to itself.") | |
811 | + | } | |
812 | + | } | |
813 | + | ||
814 | + | ||
815 | + | ||
816 | + | @Callable(i) | |
817 | + | func removeMargin (_amount) = if (if (if (if ((0 >= _amount)) | |
818 | + | then true | |
819 | + | else !(requireOpenPosition(toString(i.caller)))) | |
820 | + | then true | |
821 | + | else !(initialized())) | |
822 | + | then true | |
823 | + | else paused()) | |
824 | + | then throw("Invalid removeMargin parameters") | |
825 | + | else { | |
826 | + | let $t03427234424 = getPosition(toString(i.caller)) | |
827 | + | let oldPositionSize = $t03427234424._1 | |
828 | + | let oldPositionMargin = $t03427234424._2 | |
829 | + | let oldPositionOpenNotional = $t03427234424._3 | |
830 | + | let oldPositionLstUpdCPF = $t03427234424._4 | |
831 | + | let marginDelta = -(_amount) | |
832 | + | let $t03446134656 = calcRemainMarginWithFundingPayment(oldPositionSize, oldPositionMargin, oldPositionLstUpdCPF, marginDelta) | |
833 | + | let remainMargin = $t03446134656._1 | |
834 | + | let badDebt = $t03446134656._2 | |
835 | + | let x1 = $t03446134656._3 | |
836 | + | let latestCPF1 = $t03446134656._4 | |
837 | + | if ((badDebt != 0)) | |
838 | + | then throw("Invalid added margin amount") | |
839 | + | else { | |
840 | + | let unstake = invoke(quoteAssetStaking(), "unlockNeutrino", [_amount, toBase58String(quoteAsset())], nil) | |
841 | + | if ((unstake == unstake)) | |
842 | + | then ((updatePosition(toString(i.caller), oldPositionSize, remainMargin, oldPositionOpenNotional, latestCPF1) ++ withdraw(i.caller, _amount)) ++ updateBalance((cbalance() - _amount))) | |
843 | + | else throw("Strict value is not equal to itself.") | |
844 | + | } | |
845 | + | } | |
846 | + | ||
847 | + | ||
848 | + | ||
849 | + | @Callable(i) | |
850 | + | func closePosition () = if (if (if (!(requireOpenPosition(toString(i.caller)))) | |
851 | + | then true | |
852 | + | else !(initialized())) | |
853 | + | then true | |
854 | + | else paused()) | |
855 | + | then throw("Invalid closePosition parameters") | |
856 | + | else { | |
857 | + | let $t03537835763 = internalClosePosition(toString(i.caller)) | |
858 | + | let x1 = $t03537835763._1 | |
859 | + | let positionBadDebt = $t03537835763._2 | |
860 | + | let realizedPnl = $t03537835763._3 | |
861 | + | let marginToVault = $t03537835763._4 | |
862 | + | let quoteAssetReserveAfter = $t03537835763._5 | |
863 | + | let baseAssetReserveAfter = $t03537835763._6 | |
864 | + | let totalPositionSizeAfter = $t03537835763._7 | |
865 | + | let cumulativeNotionalAfter = $t03537835763._8 | |
866 | + | let openInteresetNotionalAfter = $t03537835763._9 | |
867 | + | let x2 = $t03537835763._10 | |
868 | + | let totalLongAfter = $t03537835763._11 | |
869 | + | let totalShortAfter = $t03537835763._12 | |
870 | + | if ((positionBadDebt > 0)) | |
871 | + | then throw("Unable to close position with bad debt") | |
872 | + | else { | |
873 | + | let withdrawAmount = abs(marginToVault) | |
874 | + | let ammBalance = (cbalance() - withdrawAmount) | |
875 | + | let $t03597236114 = if ((0 > ammBalance)) | |
876 | + | then $Tuple2(0, abs(ammBalance)) | |
877 | + | else $Tuple2(ammBalance, 0) | |
878 | + | let ammNewBalance = $t03597236114._1 | |
879 | + | let getFromInsurance = $t03597236114._2 | |
880 | + | let x = if ((getFromInsurance > 0)) | |
881 | + | then { | |
882 | + | let withdrawInsurance = invoke(insuranceAddress(), "withdraw", [getFromInsurance], nil) | |
883 | + | if ((withdrawInsurance == withdrawInsurance)) | |
884 | + | then nil | |
885 | + | else throw("Strict value is not equal to itself.") | |
886 | + | } | |
887 | + | else nil | |
888 | + | if ((x == x)) | |
889 | + | then { | |
890 | + | let unstake = invoke(quoteAssetStaking(), "unlockNeutrino", [(withdrawAmount - getFromInsurance), toBase58String(quoteAsset())], nil) | |
891 | + | if ((unstake == unstake)) | |
892 | + | then (((deletePosition(toString(i.caller)) ++ updateAmm(quoteAssetReserveAfter, baseAssetReserveAfter, totalPositionSizeAfter, cumulativeNotionalAfter, openInteresetNotionalAfter, totalLongAfter, totalShortAfter)) ++ withdraw(i.caller, withdrawAmount)) ++ updateBalance(ammNewBalance)) | |
893 | + | else throw("Strict value is not equal to itself.") | |
894 | + | } | |
895 | + | else throw("Strict value is not equal to itself.") | |
896 | + | } | |
897 | + | } | |
898 | + | ||
899 | + | ||
900 | + | ||
901 | + | @Callable(i) | |
902 | + | func liquidate (_trader) = { | |
903 | + | let marginRatio = if (isOverFluctuationLimit()) | |
904 | + | then getMarginRatioByOption(_trader, PNL_OPTION_ORACLE) | |
905 | + | else getMarginRatioByOption(_trader, PNL_OPTION_SPOT) | |
906 | + | if (if (if (!(requireMoreMarginRatio(marginRatio, mmr(), false))) | |
907 | + | then true | |
908 | + | else !(initialized())) | |
909 | + | then true | |
910 | + | else paused()) | |
911 | + | then throw("Unable to liquidate") | |
912 | + | else { | |
913 | + | let $t03733337664 = internalClosePosition(_trader) | |
914 | + | let x1 = $t03733337664._1 | |
915 | + | let badDebt = $t03733337664._2 | |
916 | + | let x2 = $t03733337664._3 | |
917 | + | let marginToVault = $t03733337664._4 | |
918 | + | let quoteAssetReserveAfter = $t03733337664._5 | |
919 | + | let baseAssetReserveAfter = $t03733337664._6 | |
920 | + | let totalPositionSizeAfter = $t03733337664._7 | |
921 | + | let cumulativeNotionalAfter = $t03733337664._8 | |
922 | + | let openInteresetNotionalAfter = $t03733337664._9 | |
923 | + | let exchangedQuoteAssetAmount = $t03733337664._10 | |
924 | + | let totalLongAfter = $t03733337664._11 | |
925 | + | let totalShortAfter = $t03733337664._12 | |
926 | + | let feeToLiquidator = (muld(exchangedQuoteAssetAmount, liquidationFeeRatio()) / 2) | |
927 | + | let $t03775438158 = if ((feeToLiquidator > marginToVault)) | |
928 | + | then $Tuple3((feeToLiquidator - marginToVault), marginToVault, ((badDebt + feeToLiquidator) - marginToVault)) | |
929 | + | else $Tuple3(0, (marginToVault - feeToLiquidator), badDebt) | |
930 | + | let liquidationBadDebt = $t03775438158._1 | |
931 | + | let remainMargin = $t03775438158._2 | |
932 | + | let totalBadDebt = $t03775438158._3 | |
933 | + | let bd = (cbalance() - feeToLiquidator) | |
934 | + | let $t03820638294 = if ((0 > bd)) | |
935 | + | then $Tuple2(0, abs(bd)) | |
936 | + | else $Tuple2(bd, 0) | |
937 | + | let nb = $t03820638294._1 | |
938 | + | let fromi = $t03820638294._2 | |
939 | + | let x = if ((fromi > 0)) | |
940 | + | then { | |
941 | + | let withdrawInsurance = invoke(insuranceAddress(), "withdraw", [fromi], nil) | |
942 | + | if ((withdrawInsurance == withdrawInsurance)) | |
943 | + | then nil | |
944 | + | else throw("Strict value is not equal to itself.") | |
945 | + | } | |
946 | + | else nil | |
947 | + | if ((x == x)) | |
948 | + | then { | |
949 | + | let unstake = invoke(quoteAssetStaking(), "unlockNeutrino", [(feeToLiquidator - fromi), toBase58String(quoteAsset())], nil) | |
950 | + | if ((unstake == unstake)) | |
951 | + | then (((deletePosition(_trader) ++ updateAmm(quoteAssetReserveAfter, baseAssetReserveAfter, totalPositionSizeAfter, cumulativeNotionalAfter, openInteresetNotionalAfter, totalLongAfter, totalShortAfter)) ++ withdraw(i.caller, feeToLiquidator)) ++ updateBalance(nb)) | |
952 | + | else throw("Strict value is not equal to itself.") | |
953 | + | } | |
954 | + | else throw("Strict value is not equal to itself.") | |
955 | + | } | |
956 | + | } | |
957 | + | ||
958 | + | ||
959 | + | ||
960 | + | @Callable(i) | |
961 | + | func payFunding () = { | |
962 | + | let fundingBlockTimestamp = nextFundingBlockTimestamp() | |
963 | + | if (if (if ((fundingBlockTimestamp > lastBlock.timestamp)) | |
964 | + | then true | |
965 | + | else !(initialized())) | |
966 | + | then true | |
967 | + | else paused()) | |
968 | + | then throw(((("Invalid funding block timestamp: " + toString(lastBlock.timestamp)) + " < ") + toString(fundingBlockTimestamp))) | |
969 | + | else { | |
970 | + | let underlyingPrice = getOracleTwapPrice() | |
971 | + | let spotTwapPrice = getTwapSpotPrice() | |
972 | + | let premium = (spotTwapPrice - underlyingPrice) | |
973 | + | let $t03946940894 = if (if ((totalShortPositionSize() == 0)) | |
974 | + | then true | |
975 | + | else (totalLongPositionSize() == 0)) | |
976 | + | then $Tuple2(0, 0) | |
977 | + | else if ((0 > premium)) | |
978 | + | then { | |
979 | + | let shortPremiumFraction = divd(muld(premium, fundingPeriodDecimal()), ONE_DAY) | |
980 | + | let longPremiumFraction = divd(muld(-(shortPremiumFraction), totalShortPositionSize()), totalLongPositionSize()) | |
981 | + | $Tuple2(shortPremiumFraction, longPremiumFraction) | |
982 | + | } | |
983 | + | else { | |
984 | + | let longPremiumFraction = divd(muld(premium, fundingPeriodDecimal()), ONE_DAY) | |
985 | + | let shortPremiumFraction = divd(muld(-(longPremiumFraction), totalLongPositionSize()), totalShortPositionSize()) | |
986 | + | $Tuple2(shortPremiumFraction, longPremiumFraction) | |
987 | + | } | |
988 | + | let shortPremiumFraction = $t03946940894._1 | |
989 | + | let longPremiumFraction = $t03946940894._2 | |
990 | + | updateFunding((fundingBlockTimestamp + fundingPeriodSeconds()), (latestLongCumulativePremiumFraction() + longPremiumFraction), (latestShortCumulativePremiumFraction() + shortPremiumFraction), divd(longPremiumFraction, underlyingPrice), divd(shortPremiumFraction, underlyingPrice)) | |
991 | + | } | |
992 | + | } | |
993 | + | ||
994 | + | ||
995 | + | ||
996 | + | @Callable(i) | |
997 | + | func v_get (_trader) = { | |
998 | + | let $t04126941322 = internalClosePosition(_trader) | |
999 | + | let x1 = $t04126941322._1 | |
1000 | + | let x2 = $t04126941322._2 | |
1001 | + | let x3 = $t04126941322._3 | |
1002 | + | let x4 = $t04126941322._4 | |
1003 | + | throw((((s(x2) + s(x3)) + s(x4)) + s(getMarginRatio(_trader)))) | |
1004 | + | } | |
1005 | + | ||
1006 | + | ||
1007 | + | ||
1008 | + | @Callable(i) | |
1009 | + | func view_calcRemainMarginWithFundingPayment (_trader) = { | |
1010 | + | let $t04146941580 = getPosition(_trader) | |
1011 | + | let positionSize = $t04146941580._1 | |
1012 | + | let positionMargin = $t04146941580._2 | |
1013 | + | let pon = $t04146941580._3 | |
1014 | + | let positionLstUpdCPF = $t04146941580._4 | |
1015 | + | let $t04158541686 = getPositionNotionalAndUnrealizedPnl(_trader, PNL_OPTION_SPOT) | |
1016 | + | let positionNotional = $t04158541686._1 | |
1017 | + | let unrealizedPnl = $t04158541686._2 | |
1018 | + | let $t04169141873 = calcRemainMarginWithFundingPayment(positionSize, positionMargin, positionLstUpdCPF, unrealizedPnl) | |
1019 | + | let remainMargin = $t04169141873._1 | |
1020 | + | let badDebt = $t04169141873._2 | |
1021 | + | let fundingPayment = $t04169141873._3 | |
1022 | + | throw((s(remainMargin) + s(fundingPayment))) | |
1023 | + | } | |
1024 | + | ||
1025 | + | ||
1026 | + | @Verifier(tx) | |
1027 | + | func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], adminPublicKey()) | |
1028 | + |
github/deemru/w8io/026f985 53.46 ms ◑