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