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