tx · EYHV7ZiDCAZQKS3uEHm5SaxFywZ9ECjFmQLRuBGZmnym 3Mpd4hwQJJqyvqeE3ukACWYuUonjAQcmQxo: -0.08000000 Waves 2023.05.15 13:21 [2578943] smart account 3Mpd4hwQJJqyvqeE3ukACWYuUonjAQcmQxo > SELF 0.00000000 Waves
{ "type": 13, "id": "EYHV7ZiDCAZQKS3uEHm5SaxFywZ9ECjFmQLRuBGZmnym", "fee": 8000000, "feeAssetId": null, "timestamp": 1684146187461, "version": 2, "chainId": 84, "sender": "3Mpd4hwQJJqyvqeE3ukACWYuUonjAQcmQxo", "senderPublicKey": "HjuaYzrXzh6phGZx1AmjeuZNPCQjDSGQgpwcNAH48Fv7", "proofs": [ "2JPwqD3woxDJad4GAUfYdMyBsepvej3Khqdu9HPzyKDf8ieitiaZmHpcfWX3yV7nPprv8kJMJoL7GZUaUQvstMN1" ], "script": "base64:BgJyCAISABIAEgASABIDCgEBEgMKAQESDwoNAQEBAQEBAQEBAQEBARIUChIBAQEBAQEBCAgIAQEBAQEBAQESBgoEAQEBCBIAEgMKAQESBQoDAQEEEgMKAQgSABIAEgASAwoBCBIDCgEBEgASABIAEgQKAggIwAEADGtfYmFzZU9yYWNsZQIMa19iYXNlT3JhY2xlAA1rX3F1b3RlT3JhY2xlAg1rX3F1b3RlT3JhY2xlAAlrX2JhbGFuY2UCCWtfYmFsYW5jZQAKa19zZXF1ZW5jZQIKa19zZXF1ZW5jZQAOa19wb3NpdGlvblNpemUCDmtfcG9zaXRpb25TaXplABBrX3Bvc2l0aW9uTWFyZ2luAhBrX3Bvc2l0aW9uTWFyZ2luABZrX3Bvc2l0aW9uT3Blbk5vdGlvbmFsAhZrX3Bvc2l0aW9uT3Blbk5vdGlvbmFsAC5rX3Bvc2l0aW9uTGFzdFVwZGF0ZWRDdW11bGF0aXZlUHJlbWl1bUZyYWN0aW9uAhJrX3Bvc2l0aW9uRnJhY3Rpb24AEmtfcG9zaXRpb25TZXF1ZW5jZQISa19wb3NpdGlv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QEYZ2V0Rm9yVHJhZGVyV2l0aEFydGlmYWN0AgUHX3RyYWRlcgULX2FydGlmYWN0SWQJAJQKAgUDbmlsBQZyZXN1bHQBAnR4AQZ2ZXJpZnkABA5jb29yZGluYXRvclN0cgkAnQgCBQR0aGlzBRRrX2Nvb3JkaW5hdG9yQWRkcmVzcwMJAQlpc0RlZmluZWQBBQ5jb29yZGluYXRvclN0cgQFYWRtaW4JAJ0IAgkBEUBleHRyTmF0aXZlKDEwNjIpAQkBBXZhbHVlAQUOY29vcmRpbmF0b3JTdHIFD2tfYWRtaW5fYWRkcmVzcwMJAQlpc0RlZmluZWQBBQVhZG1pbgkBC3ZhbHVlT3JFbHNlAgkAmwgCCQERQGV4dHJOYXRpdmUoMTA2MikBCQEFdmFsdWUBBQVhZG1pbgkArAICCQCsAgIJAKwCAgIHc3RhdHVzXwkApQgBBQR0aGlzAgFfCQDYBAEIBQJ0eAJpZAcJAAIBAi51bmFibGUgdG8gdmVyaWZ5OiBhZG1pbiBub3Qgc2V0IGluIGNvb3JkaW5hdG9yCQD0AwMIBQJ0eAlib2R5Qnl0ZXMJAJEDAggFAnR4BnByb29mcwAACAUCdHgPc2VuZGVyUHVibGljS2V5sx+Ksw==", "height": 2578943, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: none Next: HeGCV1eDjNHk3XcpZYYzYJNjDwzePLTBBb4FpFxdra4a Full:
Old | New | Differences | |
---|---|---|---|
1 | - | # no script | |
1 | + | {-# STDLIB_VERSION 6 #-} | |
2 | + | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | + | {-# CONTENT_TYPE DAPP #-} | |
4 | + | let k_baseOracle = "k_baseOracle" | |
5 | + | ||
6 | + | let k_quoteOracle = "k_quoteOracle" | |
7 | + | ||
8 | + | let k_balance = "k_balance" | |
9 | + | ||
10 | + | let k_sequence = "k_sequence" | |
11 | + | ||
12 | + | let k_positionSize = "k_positionSize" | |
13 | + | ||
14 | + | let k_positionMargin = "k_positionMargin" | |
15 | + | ||
16 | + | let k_positionOpenNotional = "k_positionOpenNotional" | |
17 | + | ||
18 | + | let k_positionLastUpdatedCumulativePremiumFraction = "k_positionFraction" | |
19 | + | ||
20 | + | let k_positionSequence = "k_positionSequence" | |
21 | + | ||
22 | + | let k_positionAsset = "k_positionAsset" | |
23 | + | ||
24 | + | let k_positionFee = "k_positionFee" | |
25 | + | ||
26 | + | let k_positionLastUpdatedTimestamp = "k_positionTimestamp" | |
27 | + | ||
28 | + | let k_initialized = "k_initialized" | |
29 | + | ||
30 | + | let k_paused = "k_paused" | |
31 | + | ||
32 | + | let k_closeOnly = "k_closeOnly" | |
33 | + | ||
34 | + | let k_fee = "k_fee" | |
35 | + | ||
36 | + | let k_rolloverFee = "k_rollover_fee" | |
37 | + | ||
38 | + | let k_fundingPeriod = "k_fundingPeriod" | |
39 | + | ||
40 | + | let k_initMarginRatio = "k_initMarginRatio" | |
41 | + | ||
42 | + | let k_maintenanceMarginRatio = "k_mmr" | |
43 | + | ||
44 | + | let k_liquidationFeeRatio = "k_liquidationFeeRatio" | |
45 | + | ||
46 | + | let k_partialLiquidationRatio = "k_partLiquidationRatio" | |
47 | + | ||
48 | + | let k_spreadLimit = "k_spreadLimit" | |
49 | + | ||
50 | + | let k_maxPriceImpact = "k_maxPriceImpact" | |
51 | + | ||
52 | + | let k_maxPriceSpread = "k_maxPriceSpread" | |
53 | + | ||
54 | + | let k_maxOpenNotional = "k_maxOpenNotional" | |
55 | + | ||
56 | + | let k_feeToStakersPercent = "k_feeToStakersPercent" | |
57 | + | ||
58 | + | let k_maxOracleDelay = "k_maxOracleDelay" | |
59 | + | ||
60 | + | let k_fundingMode = "k_fundingMode" | |
61 | + | ||
62 | + | let k_lastDataStr = "k_lastDataStr" | |
63 | + | ||
64 | + | let k_lastMinuteId = "k_lastMinuteId" | |
65 | + | ||
66 | + | let k_twapDataLastCumulativePrice = "k_twapDataLastCumulativePrice" | |
67 | + | ||
68 | + | let k_twapDataLastPrice = "k_twapDataLastPrice" | |
69 | + | ||
70 | + | let k_twapDataPreviousMinuteId = "k_twapDataPreviousMinuteId" | |
71 | + | ||
72 | + | let k_latestLongCumulativePremiumFraction = "k_latestLongPremiumFraction" | |
73 | + | ||
74 | + | let k_latestShortCumulativePremiumFraction = "k_latestShortPremiumFraction" | |
75 | + | ||
76 | + | let k_nextFundingBlock = "k_nextFundingBlockMinTimestamp" | |
77 | + | ||
78 | + | let k_longFundingRate = "k_longFundingRate" | |
79 | + | ||
80 | + | let k_shortFundingRate = "k_shortFundingRate" | |
81 | + | ||
82 | + | let k_quoteAssetReserve = "k_qtAstR" | |
83 | + | ||
84 | + | let k_baseAssetReserve = "k_bsAstR" | |
85 | + | ||
86 | + | let k_quoteAssetWeight = "k_qtAstW" | |
87 | + | ||
88 | + | let k_baseAssetWeight = "k_bsAstW" | |
89 | + | ||
90 | + | let k_totalPositionSize = "k_totalPositionSize" | |
91 | + | ||
92 | + | let k_totalLongPositionSize = "k_totalLongPositionSize" | |
93 | + | ||
94 | + | let k_totalShortPositionSize = "k_totalShortPositionSize" | |
95 | + | ||
96 | + | let k_openInterestNotional = "k_openInterestNotional" | |
97 | + | ||
98 | + | let k_openInterestShort = "k_openInterestShort" | |
99 | + | ||
100 | + | let k_openInterestLong = "k_openInterestLong" | |
101 | + | ||
102 | + | let k_lastTx = "k_lastTx" | |
103 | + | ||
104 | + | let k_coordinatorAddress = "k_coordinatorAddress" | |
105 | + | ||
106 | + | let k_vault_address = "k_vault_address" | |
107 | + | ||
108 | + | let k_admin_address = "k_admin_address" | |
109 | + | ||
110 | + | let k_quote_asset = "k_quote_asset" | |
111 | + | ||
112 | + | let k_quote_staking = "k_quote_staking" | |
113 | + | ||
114 | + | let k_staking_address = "k_staking_address" | |
115 | + | ||
116 | + | let k_miner_address = "k_miner_address" | |
117 | + | ||
118 | + | let k_orders_address = "k_orders_address" | |
119 | + | ||
120 | + | let k_referral_address = "k_referral_address" | |
121 | + | ||
122 | + | let k_exchange_address = "k_exchange_address" | |
123 | + | ||
124 | + | let k_nft_manager_address = "k_nft_manager_address" | |
125 | + | ||
126 | + | func toCompositeKey (_key,_address) = ((_key + "_") + _address) | |
127 | + | ||
128 | + | ||
129 | + | func coordinator () = valueOrErrorMessage(addressFromString(getStringValue(this, k_coordinatorAddress)), "Coordinator not set") | |
130 | + | ||
131 | + | ||
132 | + | func adminAddress () = addressFromString(getStringValue(coordinator(), k_admin_address)) | |
133 | + | ||
134 | + | ||
135 | + | func quoteAsset () = fromBase58String(getStringValue(coordinator(), k_quote_asset)) | |
136 | + | ||
137 | + | ||
138 | + | func quoteAssetStaking () = valueOrErrorMessage(addressFromString(getStringValue(coordinator(), k_quote_staking)), "Quote asset staking not set") | |
139 | + | ||
140 | + | ||
141 | + | func stakingAddress () = valueOrErrorMessage(addressFromString(getStringValue(coordinator(), k_staking_address)), "Staking not set") | |
142 | + | ||
143 | + | ||
144 | + | func vaultAddress () = valueOrErrorMessage(addressFromString(getStringValue(coordinator(), k_vault_address)), "Vault not set") | |
145 | + | ||
146 | + | ||
147 | + | func minerAddress () = valueOrErrorMessage(addressFromString(getStringValue(coordinator(), k_miner_address)), "Miner not set") | |
148 | + | ||
149 | + | ||
150 | + | func ordersAddress () = valueOrErrorMessage(addressFromString(getStringValue(coordinator(), k_orders_address)), "Orders not set") | |
151 | + | ||
152 | + | ||
153 | + | func referralAddress () = valueOrErrorMessage(addressFromString(getStringValue(coordinator(), k_referral_address)), "Referral not set") | |
154 | + | ||
155 | + | ||
156 | + | func nftManagerAddress () = valueOrErrorMessage(addressFromString(getStringValue(coordinator(), k_nft_manager_address)), "NFT Manager not set") | |
157 | + | ||
158 | + | ||
159 | + | let k_token_param = "k_token_param" | |
160 | + | ||
161 | + | let k_token_type = "k_token_type" | |
162 | + | ||
163 | + | let FEE_REDUCTION_TOKEN_TYPE = "fee_reduction" | |
164 | + | ||
165 | + | let DIR_LONG = 1 | |
166 | + | ||
167 | + | let DIR_SHORT = 2 | |
168 | + | ||
169 | + | let TWAP_INTERVAL = 15 | |
170 | + | ||
171 | + | let SECONDS = 1000 | |
172 | + | ||
173 | + | let DECIMAL_NUMBERS = 6 | |
174 | + | ||
175 | + | let DECIMAL_UNIT = (1 * (((((10 * 10) * 10) * 10) * 10) * 10)) | |
176 | + | ||
177 | + | let MINUTES_IN_YEAR = (525600 * DECIMAL_UNIT) | |
178 | + | ||
179 | + | let ONE_DAY = (86400 * DECIMAL_UNIT) | |
180 | + | ||
181 | + | let PNL_OPTION_SPOT = 1 | |
182 | + | ||
183 | + | let PNL_OPTION_ORACLE = 2 | |
184 | + | ||
185 | + | func s (_x) = (toString(_x) + ",") | |
186 | + | ||
187 | + | ||
188 | + | func divd (_x,_y) = fraction(_x, DECIMAL_UNIT, _y, HALFEVEN) | |
189 | + | ||
190 | + | ||
191 | + | func muld (_x,_y) = fraction(_x, _y, DECIMAL_UNIT, HALFEVEN) | |
192 | + | ||
193 | + | ||
194 | + | func bdivd (_x,_y) = fraction(_x, toBigInt(DECIMAL_UNIT), _y, HALFEVEN) | |
195 | + | ||
196 | + | ||
197 | + | func bmuld (_x,_y) = fraction(_x, _y, toBigInt(DECIMAL_UNIT), HALFEVEN) | |
198 | + | ||
199 | + | ||
200 | + | func abs (_x) = if ((_x > 0)) | |
201 | + | then _x | |
202 | + | else -(_x) | |
203 | + | ||
204 | + | ||
205 | + | func vmax (_x,_y) = if ((_x >= _y)) | |
206 | + | then _x | |
207 | + | else _y | |
208 | + | ||
209 | + | ||
210 | + | func listToStr (_list) = if ((size(_list) == 0)) | |
211 | + | then "" | |
212 | + | else makeString(_list, ",") | |
213 | + | ||
214 | + | ||
215 | + | func strToList (_str) = if ((_str == "")) | |
216 | + | then nil | |
217 | + | else split(_str, ",") | |
218 | + | ||
219 | + | ||
220 | + | func pushToQueue (_list,_maxSize,_value) = if ((size(_list) > _maxSize)) | |
221 | + | then (removeByIndex(_list, 0) :+ _value) | |
222 | + | else (_list :+ _value) | |
223 | + | ||
224 | + | ||
225 | + | func int (k) = valueOrErrorMessage(getInteger(this, k), ("no value for " + k)) | |
226 | + | ||
227 | + | ||
228 | + | func intOr (k,def) = valueOrElse(getInteger(this, k), def) | |
229 | + | ||
230 | + | ||
231 | + | func strA (_address,_key) = { | |
232 | + | let val = valueOrErrorMessage(getString(_address, _key), ("No value for key " + _key)) | |
233 | + | val | |
234 | + | } | |
235 | + | ||
236 | + | ||
237 | + | func intA (_address,_key) = { | |
238 | + | let val = valueOrErrorMessage(getInteger(_address, _key), ("No value for key " + _key)) | |
239 | + | val | |
240 | + | } | |
241 | + | ||
242 | + | ||
243 | + | let FUNDING_ASYMMETRIC = 1 | |
244 | + | ||
245 | + | let FUNDING_SYMMETRIC = 2 | |
246 | + | ||
247 | + | func cbalance () = int(k_balance) | |
248 | + | ||
249 | + | ||
250 | + | func fee () = int(k_fee) | |
251 | + | ||
252 | + | ||
253 | + | func rolloverFeeRate () = int(k_rolloverFee) | |
254 | + | ||
255 | + | ||
256 | + | func initMarginRatio () = int(k_initMarginRatio) | |
257 | + | ||
258 | + | ||
259 | + | func qtAstR () = int(k_quoteAssetReserve) | |
260 | + | ||
261 | + | ||
262 | + | func bsAstR () = int(k_baseAssetReserve) | |
263 | + | ||
264 | + | ||
265 | + | func qtAstW () = intOr(k_quoteAssetWeight, DECIMAL_UNIT) | |
266 | + | ||
267 | + | ||
268 | + | func bsAstW () = intOr(k_baseAssetWeight, DECIMAL_UNIT) | |
269 | + | ||
270 | + | ||
271 | + | func totalPositionSize () = int(k_totalPositionSize) | |
272 | + | ||
273 | + | ||
274 | + | func openInterestNotional () = int(k_openInterestNotional) | |
275 | + | ||
276 | + | ||
277 | + | func openInterestShort () = int(k_openInterestShort) | |
278 | + | ||
279 | + | ||
280 | + | func openInterestLong () = int(k_openInterestLong) | |
281 | + | ||
282 | + | ||
283 | + | func nextFundingBlockTimestamp () = int(k_nextFundingBlock) | |
284 | + | ||
285 | + | ||
286 | + | func fundingPeriodRaw () = int(k_fundingPeriod) | |
287 | + | ||
288 | + | ||
289 | + | func fundingPeriodDecimal () = (fundingPeriodRaw() * DECIMAL_UNIT) | |
290 | + | ||
291 | + | ||
292 | + | func fundingPeriodSeconds () = (fundingPeriodRaw() * SECONDS) | |
293 | + | ||
294 | + | ||
295 | + | func maintenanceMarginRatio () = int(k_maintenanceMarginRatio) | |
296 | + | ||
297 | + | ||
298 | + | func liquidationFeeRatio () = int(k_liquidationFeeRatio) | |
299 | + | ||
300 | + | ||
301 | + | func partialLiquidationRatio () = int(k_partialLiquidationRatio) | |
302 | + | ||
303 | + | ||
304 | + | func spreadLimit () = int(k_spreadLimit) | |
305 | + | ||
306 | + | ||
307 | + | func maxPriceImpact () = int(k_maxPriceImpact) | |
308 | + | ||
309 | + | ||
310 | + | func maxPriceSpread () = int(k_maxPriceSpread) | |
311 | + | ||
312 | + | ||
313 | + | func maxOpenNotional () = int(k_maxOpenNotional) | |
314 | + | ||
315 | + | ||
316 | + | func latestLongCumulativePremiumFraction () = int(k_latestLongCumulativePremiumFraction) | |
317 | + | ||
318 | + | ||
319 | + | func latestShortCumulativePremiumFraction () = int(k_latestShortCumulativePremiumFraction) | |
320 | + | ||
321 | + | ||
322 | + | func totalShortPositionSize () = int(k_totalShortPositionSize) | |
323 | + | ||
324 | + | ||
325 | + | func totalLongPositionSize () = int(k_totalLongPositionSize) | |
326 | + | ||
327 | + | ||
328 | + | func lastSequence () = intOr(k_sequence, 0) | |
329 | + | ||
330 | + | ||
331 | + | func feeToStakersPercent () = int(k_feeToStakersPercent) | |
332 | + | ||
333 | + | ||
334 | + | func maxOracleDelay () = int(k_maxOracleDelay) | |
335 | + | ||
336 | + | ||
337 | + | func fundingMode () = intOr(k_fundingMode, FUNDING_ASYMMETRIC) | |
338 | + | ||
339 | + | ||
340 | + | func lastTimestamp () = lastBlock.timestamp | |
341 | + | ||
342 | + | ||
343 | + | func getActualCaller (i) = valueOrElse(getString(ordersAddress(), "k_sender"), toString(i.caller)) | |
344 | + | ||
345 | + | ||
346 | + | func requireMoreMarginRatio (_marginRatio,_baseMarginRatio,_largerThanOrEqualTo) = { | |
347 | + | let remainingMarginRatio = (_marginRatio - _baseMarginRatio) | |
348 | + | if (if (_largerThanOrEqualTo) | |
349 | + | then (0 > remainingMarginRatio) | |
350 | + | else false) | |
351 | + | then throw(((("Invalid margin: " + toString(_marginRatio)) + " < ") + toString(_baseMarginRatio))) | |
352 | + | else if (if (!(_largerThanOrEqualTo)) | |
353 | + | then (remainingMarginRatio >= 0) | |
354 | + | else false) | |
355 | + | then throw(((("Invalid margin: " + toString(_marginRatio)) + " > ") + toString(_baseMarginRatio))) | |
356 | + | else true | |
357 | + | } | |
358 | + | ||
359 | + | ||
360 | + | func latestCumulativePremiumFraction (_positionSize) = if ((_positionSize == 0)) | |
361 | + | then throw("Should not be called with _positionSize == 0") | |
362 | + | else if ((_positionSize > 0)) | |
363 | + | then latestLongCumulativePremiumFraction() | |
364 | + | else latestShortCumulativePremiumFraction() | |
365 | + | ||
366 | + | ||
367 | + | func getPosition (_trader) = { | |
368 | + | let positionSizeOpt = getInteger(this, toCompositeKey(k_positionSize, _trader)) | |
369 | + | match positionSizeOpt { | |
370 | + | case positionSize: Int => | |
371 | + | $Tuple5(positionSize, getIntegerValue(this, toCompositeKey(k_positionMargin, _trader)), getIntegerValue(this, toCompositeKey(k_positionOpenNotional, _trader)), getIntegerValue(this, toCompositeKey(k_positionLastUpdatedCumulativePremiumFraction, _trader)), getIntegerValue(this, toCompositeKey(k_positionLastUpdatedTimestamp, _trader))) | |
372 | + | case _ => | |
373 | + | $Tuple5(0, 0, 0, 0, 0) | |
374 | + | } | |
375 | + | } | |
376 | + | ||
377 | + | ||
378 | + | func getPositionAsset (_trader) = { | |
379 | + | let positionAssetOpt = getString(this, toCompositeKey(k_positionAsset, _trader)) | |
380 | + | match positionAssetOpt { | |
381 | + | case positionAsset: String => | |
382 | + | positionAsset | |
383 | + | case _ => | |
384 | + | toBase58String(quoteAsset()) | |
385 | + | } | |
386 | + | } | |
387 | + | ||
388 | + | ||
389 | + | func getPositionFee (_trader) = { | |
390 | + | let positionFeeOpt = getInteger(this, toCompositeKey(k_positionFee, _trader)) | |
391 | + | match positionFeeOpt { | |
392 | + | case positionFee: Int => | |
393 | + | positionFee | |
394 | + | case _ => | |
395 | + | fee() | |
396 | + | } | |
397 | + | } | |
398 | + | ||
399 | + | ||
400 | + | func requireOpenPosition (_trader) = if ((getPosition(_trader)._1 == 0)) | |
401 | + | then throw("No open position") | |
402 | + | else true | |
403 | + | ||
404 | + | ||
405 | + | func getOracleData (key) = { | |
406 | + | let oracleDataStr = getString(this, key) | |
407 | + | if (if (isDefined(oracleDataStr)) | |
408 | + | then (value(oracleDataStr) != "") | |
409 | + | else false) | |
410 | + | then { | |
411 | + | let oracleData = split(value(oracleDataStr), ",") | |
412 | + | let oracleAddress = valueOrErrorMessage(addressFromString(oracleData[0]), ("Invalid oracle address in: " + value(oracleDataStr))) | |
413 | + | let priceKey = oracleData[1] | |
414 | + | let blockKey = oracleData[2] | |
415 | + | let openKey = oracleData[3] | |
416 | + | $Tuple4(oracleAddress, priceKey, blockKey, openKey) | |
417 | + | } | |
418 | + | else unit | |
419 | + | } | |
420 | + | ||
421 | + | ||
422 | + | func initialized () = valueOrElse(getBoolean(this, k_initialized), false) | |
423 | + | ||
424 | + | ||
425 | + | func paused () = valueOrElse(getBoolean(this, k_paused), false) | |
426 | + | ||
427 | + | ||
428 | + | func closeOnly () = valueOrElse(getBoolean(this, k_closeOnly), false) | |
429 | + | ||
430 | + | ||
431 | + | func updateReserve (_isAdd,_quoteAssetAmount,_baseAssetAmount) = if (_isAdd) | |
432 | + | then { | |
433 | + | let newBase = (bsAstR() - _baseAssetAmount) | |
434 | + | if ((0 >= newBase)) | |
435 | + | then throw("Tx lead to base asset reserve <= 0, revert") | |
436 | + | else $Tuple3((qtAstR() + _quoteAssetAmount), newBase, (totalPositionSize() + _baseAssetAmount)) | |
437 | + | } | |
438 | + | else { | |
439 | + | let newQuote = (qtAstR() - _quoteAssetAmount) | |
440 | + | if ((0 >= newQuote)) | |
441 | + | then throw("Tx lead to base quote reserve <= 0, revert") | |
442 | + | else $Tuple3(newQuote, (bsAstR() + _baseAssetAmount), (totalPositionSize() - _baseAssetAmount)) | |
443 | + | } | |
444 | + | ||
445 | + | ||
446 | + | func calcInvariant (_qtAstR,_bsAstR) = { | |
447 | + | let bqtAstR = toBigInt(_qtAstR) | |
448 | + | let bbsAstR = toBigInt(_bsAstR) | |
449 | + | bmuld(bqtAstR, bbsAstR) | |
450 | + | } | |
451 | + | ||
452 | + | ||
453 | + | func swapInput (_isAdd,_quoteAssetAmount) = { | |
454 | + | let _qtAstR = qtAstR() | |
455 | + | let _bsAstR = bsAstR() | |
456 | + | let _qtAstW = qtAstW() | |
457 | + | let _bsAstW = bsAstW() | |
458 | + | let quoteAssetAmountAdjusted = divd(_quoteAssetAmount, _qtAstW) | |
459 | + | let k = calcInvariant(_qtAstR, _bsAstR) | |
460 | + | let quoteAssetReserveAfter = if (_isAdd) | |
461 | + | then (_qtAstR + quoteAssetAmountAdjusted) | |
462 | + | else (_qtAstR - quoteAssetAmountAdjusted) | |
463 | + | let baseAssetReserveAfter = toInt(bdivd(k, toBigInt(quoteAssetReserveAfter))) | |
464 | + | let amountBaseAssetBoughtAbs = abs((baseAssetReserveAfter - _bsAstR)) | |
465 | + | let amountBaseAssetBought = if (_isAdd) | |
466 | + | then amountBaseAssetBoughtAbs | |
467 | + | else -(amountBaseAssetBoughtAbs) | |
468 | + | let $t01687717047 = updateReserve(_isAdd, quoteAssetAmountAdjusted, amountBaseAssetBoughtAbs) | |
469 | + | let quoteAssetReserveAfter1 = $t01687717047._1 | |
470 | + | let baseAssetReserveAfter1 = $t01687717047._2 | |
471 | + | let totalPositionSizeAfter1 = $t01687717047._3 | |
472 | + | let priceBefore = divd(muld(_qtAstR, _qtAstW), muld(_bsAstR, _bsAstW)) | |
473 | + | let marketPrice = divd(_quoteAssetAmount, amountBaseAssetBoughtAbs) | |
474 | + | let priceDiff = abs((priceBefore - marketPrice)) | |
475 | + | let priceImpact = (DECIMAL_UNIT - divd(priceBefore, (priceBefore + priceDiff))) | |
476 | + | let maxPriceImpactValue = maxPriceImpact() | |
477 | + | if ((priceImpact > maxPriceImpactValue)) | |
478 | + | then throw(((((((((((((("Price impact " + toString(priceImpact)) + " > max price impact ") + toString(maxPriceImpactValue)) + " before quote asset: ") + toString(_qtAstR)) + " before base asset: ") + toString(_bsAstR)) + " quote asset amount to exchange: ") + toString(_quoteAssetAmount)) + " price before: ") + toString(priceBefore)) + " marketPrice: ") + toString(marketPrice))) | |
479 | + | else $Tuple4(amountBaseAssetBought, quoteAssetReserveAfter1, baseAssetReserveAfter1, totalPositionSizeAfter1) | |
480 | + | } | |
481 | + | ||
482 | + | ||
483 | + | func calcRolloverFee (_oldPositionMargin,_oldPositionLastUpdatedTimestamp) = { | |
484 | + | let positionMinutes = ((((lastTimestamp() - _oldPositionLastUpdatedTimestamp) / 1000) / 60) * DECIMAL_UNIT) | |
485 | + | let rolloverFee = divd(muld(muld(_oldPositionMargin, positionMinutes), rolloverFeeRate()), MINUTES_IN_YEAR) | |
486 | + | rolloverFee | |
487 | + | } | |
488 | + | ||
489 | + | ||
490 | + | func calcRemainMarginWithFundingPaymentAndRolloverFee (_oldPositionSize,_oldPositionMargin,_oldPositionCumulativePremiumFraction,_oldPositionLastUpdatedTimestamp,_marginDelta) = { | |
491 | + | let fundingPayment = if ((_oldPositionSize != 0)) | |
492 | + | then { | |
493 | + | let _latestCumulativePremiumFraction = latestCumulativePremiumFraction(_oldPositionSize) | |
494 | + | muld((_latestCumulativePremiumFraction - _oldPositionCumulativePremiumFraction), _oldPositionSize) | |
495 | + | } | |
496 | + | else 0 | |
497 | + | let rolloverFee = calcRolloverFee(_oldPositionMargin, _oldPositionLastUpdatedTimestamp) | |
498 | + | let signedMargin = (((_marginDelta - rolloverFee) - fundingPayment) + _oldPositionMargin) | |
499 | + | let $t01930219429 = if ((0 > signedMargin)) | |
500 | + | then $Tuple2(0, abs(signedMargin)) | |
501 | + | else $Tuple2(abs(signedMargin), 0) | |
502 | + | let remainMargin = $t01930219429._1 | |
503 | + | let badDebt = $t01930219429._2 | |
504 | + | $Tuple4(remainMargin, badDebt, fundingPayment, rolloverFee) | |
505 | + | } | |
506 | + | ||
507 | + | ||
508 | + | func swapOutputWithReserves (_isAdd,_baseAssetAmount,_checkMaxPriceImpact,_quoteAssetReserve,_quoteAssetWeight,_baseAssetReserve,_baseAssetWeight) = { | |
509 | + | let priceBefore = divd(muld(_quoteAssetReserve, _quoteAssetWeight), muld(_baseAssetReserve, _baseAssetWeight)) | |
510 | + | if ((_baseAssetAmount == 0)) | |
511 | + | then throw("Invalid base asset amount") | |
512 | + | else { | |
513 | + | let k = calcInvariant(_quoteAssetReserve, _baseAssetReserve) | |
514 | + | let baseAssetPoolAmountAfter = if (_isAdd) | |
515 | + | then (_baseAssetReserve + _baseAssetAmount) | |
516 | + | else (_baseAssetReserve - _baseAssetAmount) | |
517 | + | let quoteAssetAfter = toInt(bdivd(k, toBigInt(baseAssetPoolAmountAfter))) | |
518 | + | let quoteAssetDelta = abs((quoteAssetAfter - _quoteAssetReserve)) | |
519 | + | let quoteAssetSold = muld(quoteAssetDelta, _quoteAssetWeight) | |
520 | + | let maxPriceImpactValue = maxPriceImpact() | |
521 | + | let $t02069120853 = updateReserve(!(_isAdd), quoteAssetDelta, _baseAssetAmount) | |
522 | + | let quoteAssetReserveAfter1 = $t02069120853._1 | |
523 | + | let baseAssetReserveAfter1 = $t02069120853._2 | |
524 | + | let totalPositionSizeAfter1 = $t02069120853._3 | |
525 | + | let marketPrice = divd(quoteAssetSold, _baseAssetAmount) | |
526 | + | let priceDiff = abs((priceBefore - marketPrice)) | |
527 | + | let priceImpact = (DECIMAL_UNIT - divd(priceBefore, (priceBefore + priceDiff))) | |
528 | + | if (if ((priceImpact > maxPriceImpactValue)) | |
529 | + | then _checkMaxPriceImpact | |
530 | + | else false) | |
531 | + | then throw(((((((((((((("Price impact " + toString(priceImpact)) + " > max price impact ") + toString(maxPriceImpactValue)) + " before quote asset: ") + toString(_quoteAssetReserve)) + " before base asset: ") + toString(_baseAssetReserve)) + " base asset amount to exchange: ") + toString(_baseAssetAmount)) + " price before: ") + toString(priceBefore)) + " market price: ") + toString(marketPrice))) | |
532 | + | else $Tuple7(quoteAssetSold, quoteAssetReserveAfter1, baseAssetReserveAfter1, totalPositionSizeAfter1, (totalLongPositionSize() - (if (_isAdd) | |
533 | + | then abs(_baseAssetAmount) | |
534 | + | else 0)), (totalShortPositionSize() - (if (!(_isAdd)) | |
535 | + | then abs(_baseAssetAmount) | |
536 | + | else 0)), priceImpact) | |
537 | + | } | |
538 | + | } | |
539 | + | ||
540 | + | ||
541 | + | func swapOutput (_isAdd,_baseAssetAmount,_checkMaxPriceImpact) = swapOutputWithReserves(_isAdd, _baseAssetAmount, _checkMaxPriceImpact, qtAstR(), qtAstW(), bsAstR(), bsAstW()) | |
542 | + | ||
543 | + | ||
544 | + | func getOraclePriceValue (oracle,priceKey,blockKey) = { | |
545 | + | let lastValue = valueOrErrorMessage(getInteger(oracle, priceKey), ((("Can not get oracle price. Oracle: " + toString(oracle)) + " key: ") + priceKey)) | |
546 | + | if ((blockKey != "")) | |
547 | + | then { | |
548 | + | let currentBlock = lastBlock.height | |
549 | + | let lastOracleBlock = valueOrErrorMessage(getInteger(oracle, blockKey), ((("Can not get oracle block. Oracle: " + toString(oracle)) + " key: ") + blockKey)) | |
550 | + | if (((currentBlock - lastOracleBlock) > maxOracleDelay())) | |
551 | + | then throw(((("Oracle stale data. Last oracle block: " + toString(lastOracleBlock)) + " current block: ") + toString(currentBlock))) | |
552 | + | else lastValue | |
553 | + | } | |
554 | + | else lastValue | |
555 | + | } | |
556 | + | ||
557 | + | ||
558 | + | func getOraclePrice () = { | |
559 | + | let baseOracle = valueOrErrorMessage(getOracleData(k_baseOracle), "No base asset oracle data") | |
560 | + | let baseOraclePrice = getOraclePriceValue(baseOracle._1, baseOracle._2, baseOracle._3) | |
561 | + | let quoteOracle = getOracleData(k_quoteOracle) | |
562 | + | let quoteOraclePrice = if (isDefined(quoteOracle)) | |
563 | + | then { | |
564 | + | let quoteOracleV = value(quoteOracle) | |
565 | + | getOraclePriceValue(quoteOracleV._1, quoteOracleV._2, quoteOracleV._3) | |
566 | + | } | |
567 | + | else DECIMAL_UNIT | |
568 | + | divd(baseOraclePrice, quoteOraclePrice) | |
569 | + | } | |
570 | + | ||
571 | + | ||
572 | + | func isMarketClosed () = { | |
573 | + | let baseOracle = valueOrErrorMessage(getOracleData(k_baseOracle), "No base asset oracle data") | |
574 | + | let oracle = baseOracle._1 | |
575 | + | let openKey = baseOracle._4 | |
576 | + | if ((openKey != "")) | |
577 | + | then { | |
578 | + | let isOpen = valueOrErrorMessage(getBoolean(oracle, openKey), ((("Can not get oracle is open/closed. Oracle: " + toString(oracle)) + " key: ") + openKey)) | |
579 | + | !(isOpen) | |
580 | + | } | |
581 | + | else false | |
582 | + | } | |
583 | + | ||
584 | + | ||
585 | + | func absPriceDiff (_oraclePrice,_quoteAssetReserve,_baseAssetReserve,_qtAstW,_bsAstW) = { | |
586 | + | let priceAfter = divd(muld(_quoteAssetReserve, _qtAstW), muld(_baseAssetReserve, _bsAstW)) | |
587 | + | let averagePrice = divd((_oraclePrice + priceAfter), (2 * DECIMAL_UNIT)) | |
588 | + | let absPriceDiff = divd(abs((_oraclePrice - priceAfter)), averagePrice) | |
589 | + | absPriceDiff | |
590 | + | } | |
591 | + | ||
592 | + | ||
593 | + | func requireNotOverSpreadLimit (_quoteAssetReserve,_baseAssetReserve) = { | |
594 | + | let oraclePrice = getOraclePrice() | |
595 | + | let _qtAstW = qtAstW() | |
596 | + | let _bsAstW = bsAstW() | |
597 | + | let absPriceDiffBefore = absPriceDiff(oraclePrice, qtAstR(), bsAstR(), _qtAstW, _bsAstW) | |
598 | + | let absPriceDiffAfter = absPriceDiff(oraclePrice, _quoteAssetReserve, _baseAssetReserve, _qtAstW, _bsAstW) | |
599 | + | if (if ((absPriceDiffAfter > maxPriceSpread())) | |
600 | + | then (absPriceDiffAfter > absPriceDiffBefore) | |
601 | + | else false) | |
602 | + | then throw(((("Price spread " + toString(absPriceDiffAfter)) + " > max price spread ") + toString(maxPriceSpread()))) | |
603 | + | else true | |
604 | + | } | |
605 | + | ||
606 | + | ||
607 | + | func requireNotOverMaxOpenNotional (_longOpenNotional,_shortOpenNotional) = { | |
608 | + | let _maxOpenNotional = maxOpenNotional() | |
609 | + | if ((_longOpenNotional > _maxOpenNotional)) | |
610 | + | then throw(((("Long open notional " + toString(_longOpenNotional)) + " > max open notional ") + toString(_maxOpenNotional))) | |
611 | + | else if ((_shortOpenNotional > _maxOpenNotional)) | |
612 | + | then throw(((("Short open notional " + toString(_shortOpenNotional)) + " > max open notional ") + toString(_maxOpenNotional))) | |
613 | + | else true | |
614 | + | } | |
615 | + | ||
616 | + | ||
617 | + | func getSpotPrice () = { | |
618 | + | let _quoteAssetReserve = qtAstR() | |
619 | + | let _baseAssetReserve = bsAstR() | |
620 | + | let _qtAstW = qtAstW() | |
621 | + | let _bsAstW = bsAstW() | |
622 | + | divd(muld(_quoteAssetReserve, _qtAstW), muld(_baseAssetReserve, _bsAstW)) | |
623 | + | } | |
624 | + | ||
625 | + | ||
626 | + | func isOverFluctuationLimit () = { | |
627 | + | let oraclePrice = getOraclePrice() | |
628 | + | let currentPrice = getSpotPrice() | |
629 | + | (divd(abs((oraclePrice - currentPrice)), oraclePrice) > spreadLimit()) | |
630 | + | } | |
631 | + | ||
632 | + | ||
633 | + | func getPositionAdjustedOpenNotional (_positionSize,_option,_quoteAssetReserve,_quoteAssetWeight,_baseAssetReserve,_baseAssetWeight) = { | |
634 | + | let positionSizeAbs = abs(_positionSize) | |
635 | + | let isShort = (0 > _positionSize) | |
636 | + | let positionNotional = if ((_option == PNL_OPTION_SPOT)) | |
637 | + | then { | |
638 | + | let outPositionNotional = swapOutputWithReserves(!(isShort), positionSizeAbs, false, _quoteAssetReserve, _quoteAssetWeight, _baseAssetReserve, _baseAssetWeight)._1 | |
639 | + | outPositionNotional | |
640 | + | } | |
641 | + | else muld(positionSizeAbs, getOraclePrice()) | |
642 | + | positionNotional | |
643 | + | } | |
644 | + | ||
645 | + | ||
646 | + | func getPositionNotionalAndUnrealizedPnlByValues (_positionSize,_positionOpenNotional,_quoteAssetReserve,_quoteAssetWeight,_baseAssetReserve,_baseAssetWeight,_option) = if ((_positionSize == 0)) | |
647 | + | then throw("Invalid position size") | |
648 | + | else { | |
649 | + | let isShort = (0 > _positionSize) | |
650 | + | let positionNotional = getPositionAdjustedOpenNotional(_positionSize, _option, _quoteAssetReserve, _quoteAssetWeight, _baseAssetReserve, _baseAssetWeight) | |
651 | + | let unrealizedPnl = if (isShort) | |
652 | + | then (_positionOpenNotional - positionNotional) | |
653 | + | else (positionNotional - _positionOpenNotional) | |
654 | + | $Tuple2(positionNotional, unrealizedPnl) | |
655 | + | } | |
656 | + | ||
657 | + | ||
658 | + | func getPositionNotionalAndUnrealizedPnl (_trader,_option) = { | |
659 | + | let $t02873128859 = getPosition(_trader) | |
660 | + | let positionSize = $t02873128859._1 | |
661 | + | let positionMargin = $t02873128859._2 | |
662 | + | let positionOpenNotional = $t02873128859._3 | |
663 | + | let positionLstUpdCPF = $t02873128859._4 | |
664 | + | getPositionNotionalAndUnrealizedPnlByValues(positionSize, positionOpenNotional, qtAstR(), qtAstW(), bsAstR(), bsAstW(), _option) | |
665 | + | } | |
666 | + | ||
667 | + | ||
668 | + | func calcMarginRatio (_remainMargin,_badDebt,_positionNotional) = divd((_remainMargin - _badDebt), _positionNotional) | |
669 | + | ||
670 | + | ||
671 | + | func getMarginRatioByOption (_trader,_option) = { | |
672 | + | let $t02937429515 = getPosition(_trader) | |
673 | + | let positionSize = $t02937429515._1 | |
674 | + | let positionMargin = $t02937429515._2 | |
675 | + | let pon = $t02937429515._3 | |
676 | + | let positionLastUpdatedCPF = $t02937429515._4 | |
677 | + | let positionTimestamp = $t02937429515._5 | |
678 | + | let $t02952129614 = getPositionNotionalAndUnrealizedPnl(_trader, _option) | |
679 | + | let positionNotional = $t02952129614._1 | |
680 | + | let unrealizedPnl = $t02952129614._2 | |
681 | + | let $t02961929831 = calcRemainMarginWithFundingPaymentAndRolloverFee(positionSize, positionMargin, positionLastUpdatedCPF, positionTimestamp, unrealizedPnl) | |
682 | + | let remainMargin = $t02961929831._1 | |
683 | + | let badDebt = $t02961929831._2 | |
684 | + | calcMarginRatio(remainMargin, badDebt, positionNotional) | |
685 | + | } | |
686 | + | ||
687 | + | ||
688 | + | func getMarginRatio (_trader) = getMarginRatioByOption(_trader, PNL_OPTION_SPOT) | |
689 | + | ||
690 | + | ||
691 | + | func getPartialLiquidationAmount (_trader,_positionSize) = { | |
692 | + | let maximumRatio = vmax(partialLiquidationRatio(), (DECIMAL_UNIT - divd(getMarginRatio(_trader), maintenanceMarginRatio()))) | |
693 | + | let maxExchangedPositionSize = muld(abs(_positionSize), maximumRatio) | |
694 | + | let swapResult = swapOutput((_positionSize > 0), maxExchangedPositionSize, false) | |
695 | + | let maxExchangedQuoteAssetAmount = swapResult._1 | |
696 | + | let priceImpact = swapResult._7 | |
697 | + | if ((maxPriceImpact() > priceImpact)) | |
698 | + | then maxExchangedPositionSize | |
699 | + | else muld(abs(_positionSize), partialLiquidationRatio()) | |
700 | + | } | |
701 | + | ||
702 | + | ||
703 | + | func internalClosePosition (_trader,_size,_fee,_minQuoteAssetAmount,_addToMargin,_checkMaxPriceImpact,_liquidate) = { | |
704 | + | let $t03089831054 = getPosition(_trader) | |
705 | + | let oldPositionSize = $t03089831054._1 | |
706 | + | let oldPositionMargin = $t03089831054._2 | |
707 | + | let oldPositionOpenNotional = $t03089831054._3 | |
708 | + | let oldPositionLstUpdCPF = $t03089831054._4 | |
709 | + | let oldPositionTimestamp = $t03089831054._5 | |
710 | + | let isLongPosition = (oldPositionSize > 0) | |
711 | + | let absOldPositionSize = abs(oldPositionSize) | |
712 | + | if (if ((absOldPositionSize >= _size)) | |
713 | + | then (_size > 0) | |
714 | + | else false) | |
715 | + | then { | |
716 | + | let isPartialClose = (absOldPositionSize > _size) | |
717 | + | let $t03134631797 = swapOutput((oldPositionSize > 0), _size, _checkMaxPriceImpact) | |
718 | + | let exchangedQuoteAssetAmount = $t03134631797._1 | |
719 | + | let quoteAssetReserveAfter = $t03134631797._2 | |
720 | + | let baseAssetReserveAfter = $t03134631797._3 | |
721 | + | let totalPositionSizeAfter = $t03134631797._4 | |
722 | + | let exchangedPositionSize = if ((oldPositionSize > 0)) | |
723 | + | then -(_size) | |
724 | + | else _size | |
725 | + | let $t03201232219 = getPositionNotionalAndUnrealizedPnl(_trader, PNL_OPTION_SPOT) | |
726 | + | let oldPositionNotional = $t03201232219._1 | |
727 | + | let unrealizedPnl = $t03201232219._2 | |
728 | + | let realizedRatio = divd(abs(exchangedPositionSize), absOldPositionSize) | |
729 | + | let realizedPnl = muld(unrealizedPnl, realizedRatio) | |
730 | + | let $t03256032806 = calcRemainMarginWithFundingPaymentAndRolloverFee(oldPositionSize, oldPositionMargin, oldPositionLstUpdCPF, oldPositionTimestamp, unrealizedPnl) | |
731 | + | let remainMarginBefore = $t03256032806._1 | |
732 | + | let x1 = $t03256032806._2 | |
733 | + | let x2 = $t03256032806._3 | |
734 | + | let rolloverFee = $t03256032806._4 | |
735 | + | let positionBadDebt = calcRemainMarginWithFundingPaymentAndRolloverFee(oldPositionSize, oldPositionMargin, oldPositionLstUpdCPF, oldPositionTimestamp, realizedPnl)._2 | |
736 | + | let realizedCloseFee = muld(muld(oldPositionNotional, realizedRatio), _fee) | |
737 | + | let unrealizedPnlAfter = (unrealizedPnl - realizedPnl) | |
738 | + | let remainOpenNotional = if ((oldPositionSize > 0)) | |
739 | + | then ((oldPositionNotional - exchangedQuoteAssetAmount) - unrealizedPnlAfter) | |
740 | + | else ((unrealizedPnlAfter + oldPositionNotional) - exchangedQuoteAssetAmount) | |
741 | + | let newPositionSize = (oldPositionSize + exchangedPositionSize) | |
742 | + | let $t03421234598 = if ((newPositionSize == 0)) | |
743 | + | then $Tuple2(0, 0) | |
744 | + | else $Tuple2(abs(remainOpenNotional), latestCumulativePremiumFraction(newPositionSize)) | |
745 | + | let newPositionOpenNotional = $t03421234598._1 | |
746 | + | let newPositionLstUpdCPF = $t03421234598._2 | |
747 | + | let openNotionalDelta = (oldPositionOpenNotional - newPositionOpenNotional) | |
748 | + | let marginRatio = getMarginRatioByOption(_trader, PNL_OPTION_SPOT) | |
749 | + | let newPositionMarginWithSameRatio = if ((oldPositionSize > 0)) | |
750 | + | then (muld((newPositionOpenNotional + unrealizedPnlAfter), marginRatio) - unrealizedPnlAfter) | |
751 | + | else (muld((newPositionOpenNotional - unrealizedPnlAfter), marginRatio) - unrealizedPnlAfter) | |
752 | + | let marginToTraderRaw = ((remainMarginBefore - (newPositionMarginWithSameRatio + unrealizedPnlAfter)) - realizedCloseFee) | |
753 | + | let marginToTrader = if ((0 > marginToTraderRaw)) | |
754 | + | then if (_liquidate) | |
755 | + | then 0 | |
756 | + | else throw("Invalid internalClosePosition params: unable to pay fee") | |
757 | + | else marginToTraderRaw | |
758 | + | let newPositionMargin = if (_addToMargin) | |
759 | + | then (newPositionMarginWithSameRatio + marginToTrader) | |
760 | + | else newPositionMarginWithSameRatio | |
761 | + | if (if ((_minQuoteAssetAmount != 0)) | |
762 | + | then (_minQuoteAssetAmount > exchangedQuoteAssetAmount) | |
763 | + | else false) | |
764 | + | then throw(((("Limit error: " + toString(exchangedQuoteAssetAmount)) + " < ") + toString(_minQuoteAssetAmount))) | |
765 | + | else $Tuple17(newPositionSize, newPositionMargin, newPositionOpenNotional, newPositionLstUpdCPF, positionBadDebt, realizedPnl, if (if (_addToMargin) | |
766 | + | then isPartialClose | |
767 | + | else false) | |
768 | + | then 0 | |
769 | + | else marginToTrader, quoteAssetReserveAfter, baseAssetReserveAfter, totalPositionSizeAfter, (openInterestNotional() - openNotionalDelta), (totalLongPositionSize() - (if (isLongPosition) | |
770 | + | then abs(exchangedPositionSize) | |
771 | + | else 0)), (totalShortPositionSize() - (if (!(isLongPosition)) | |
772 | + | then abs(exchangedPositionSize) | |
773 | + | else 0)), (openInterestLong() - (if (isLongPosition) | |
774 | + | then openNotionalDelta | |
775 | + | else 0)), (openInterestShort() - (if (!(isLongPosition)) | |
776 | + | then openNotionalDelta | |
777 | + | else 0)), (realizedCloseFee + rolloverFee), exchangedQuoteAssetAmount) | |
778 | + | } | |
779 | + | else throw(((("Invalid internalClosePosition params: invalid position size: " + toString(_size)) + " max: ") + toString(absOldPositionSize))) | |
780 | + | } | |
781 | + | ||
782 | + | ||
783 | + | func getTwapSpotPrice () = { | |
784 | + | let minuteId = ((lastTimestamp() / 1000) / 60) | |
785 | + | let startMinuteId = (minuteId - TWAP_INTERVAL) | |
786 | + | let listStr = valueOrElse(getString(this, k_lastDataStr), "") | |
787 | + | let list = split(listStr, ",") | |
788 | + | func filterFn (accumulator,next) = if ((startMinuteId >= valueOrErrorMessage(parseInt(next), ("getTwapSpotPrice: invalid int: " + listStr)))) | |
789 | + | then (accumulator :+ parseIntValue(next)) | |
790 | + | else accumulator | |
791 | + | ||
792 | + | let listF = { | |
793 | + | let $l = list | |
794 | + | let $s = size($l) | |
795 | + | let $acc0 = nil | |
796 | + | func $f0_1 ($a,$i) = if (($i >= $s)) | |
797 | + | then $a | |
798 | + | else filterFn($a, $l[$i]) | |
799 | + | ||
800 | + | func $f0_2 ($a,$i) = if (($i >= $s)) | |
801 | + | then $a | |
802 | + | else throw("List size exceeds 20") | |
803 | + | ||
804 | + | $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) | |
805 | + | } | |
806 | + | let maxIndex = if ((size(listF) > 0)) | |
807 | + | then max(listF) | |
808 | + | else valueOrErrorMessage(parseInt(list[0]), ("getTwapSpotPrice: invalid int: " + listStr)) | |
809 | + | let lastMinuteId = valueOrElse(getInteger(this, k_lastMinuteId), 0) | |
810 | + | let endLastCumulativePrice = valueOrElse(getInteger(this, ((k_twapDataLastCumulativePrice + "_") + toString(lastMinuteId))), 0) | |
811 | + | let endLastPrice = valueOrElse(getInteger(this, ((k_twapDataLastPrice + "_") + toString(lastMinuteId))), 0) | |
812 | + | let nowCumulativePrice = (endLastCumulativePrice + ((minuteId - lastMinuteId) * endLastPrice)) | |
813 | + | let startLastCumulativePrice = valueOrElse(getInteger(this, ((k_twapDataLastCumulativePrice + "_") + toString(maxIndex))), 0) | |
814 | + | let startLastPrice = valueOrElse(getInteger(this, ((k_twapDataLastPrice + "_") + toString(maxIndex))), 0) | |
815 | + | let startCumulativePrice = (startLastCumulativePrice + ((startMinuteId - maxIndex) * startLastPrice)) | |
816 | + | ((nowCumulativePrice - startCumulativePrice) / TWAP_INTERVAL) | |
817 | + | } | |
818 | + | ||
819 | + | ||
820 | + | func getTerminalAmmState () = { | |
821 | + | let _positionSize = totalPositionSize() | |
822 | + | if ((_positionSize == 0)) | |
823 | + | then $Tuple2(qtAstR(), bsAstR()) | |
824 | + | else { | |
825 | + | let direction = (_positionSize > 0) | |
826 | + | let $t03933539514 = swapOutput(direction, abs(_positionSize), false) | |
827 | + | let currentNetMarketValue = $t03933539514._1 | |
828 | + | let terminalQuoteAssetReserve = $t03933539514._2 | |
829 | + | let terminalBaseAssetReserve = $t03933539514._3 | |
830 | + | $Tuple2(terminalQuoteAssetReserve, terminalBaseAssetReserve) | |
831 | + | } | |
832 | + | } | |
833 | + | ||
834 | + | ||
835 | + | func getQuoteAssetWeight (baseAssetReserve,totalPositionSize,quoteAssetReserve,targetPrice) = { | |
836 | + | let b = toBigInt(baseAssetReserve) | |
837 | + | let sz = toBigInt(totalPositionSize) | |
838 | + | let q = toBigInt(quoteAssetReserve) | |
839 | + | let p = toBigInt(targetPrice) | |
840 | + | let k = bmuld(q, b) | |
841 | + | let newB = (b + sz) | |
842 | + | let newQ = bdivd(k, newB) | |
843 | + | let z = bdivd(newQ, newB) | |
844 | + | let result = bdivd(p, z) | |
845 | + | toInt(result) | |
846 | + | } | |
847 | + | ||
848 | + | ||
849 | + | func getSyncTerminalPrice (_terminalPrice,_qtAstR,_bsAstR) = { | |
850 | + | let _positionSize = totalPositionSize() | |
851 | + | if ((_positionSize == 0)) | |
852 | + | then { | |
853 | + | let newQtAstW = divd(muld(_terminalPrice, _bsAstR), _qtAstR) | |
854 | + | $Tuple3(newQtAstW, DECIMAL_UNIT, 0) | |
855 | + | } | |
856 | + | else { | |
857 | + | let direction = (_positionSize > 0) | |
858 | + | let currentNetMarketValue = swapOutput(direction, abs(_positionSize), false)._1 | |
859 | + | let newQtAstW = getQuoteAssetWeight(_bsAstR, _positionSize, _qtAstR, _terminalPrice) | |
860 | + | let newBsAstW = DECIMAL_UNIT | |
861 | + | let marginToVault = getPositionNotionalAndUnrealizedPnlByValues(_positionSize, currentNetMarketValue, _qtAstR, newQtAstW, _bsAstR, newBsAstW, PNL_OPTION_SPOT)._2 | |
862 | + | $Tuple3(newQtAstW, newBsAstW, marginToVault) | |
863 | + | } | |
864 | + | } | |
865 | + | ||
866 | + | ||
867 | + | func getFunding () = { | |
868 | + | let underlyingPrice = getOraclePrice() | |
869 | + | let spotPrice = getSpotPrice() | |
870 | + | let premium = (spotPrice - underlyingPrice) | |
871 | + | if (if (if ((totalShortPositionSize() == 0)) | |
872 | + | then true | |
873 | + | else (totalLongPositionSize() == 0)) | |
874 | + | then true | |
875 | + | else isMarketClosed()) | |
876 | + | then $Tuple3(0, 0, 0) | |
877 | + | else if ((0 > premium)) | |
878 | + | then { | |
879 | + | let shortPremiumFraction = divd(muld(premium, fundingPeriodDecimal()), ONE_DAY) | |
880 | + | if ((fundingMode() == FUNDING_ASYMMETRIC)) | |
881 | + | then { | |
882 | + | let longPremiumFraction = divd(muld(shortPremiumFraction, totalShortPositionSize()), totalLongPositionSize()) | |
883 | + | $Tuple3(shortPremiumFraction, longPremiumFraction, 0) | |
884 | + | } | |
885 | + | else { | |
886 | + | let shortTotalPremiumFraction = abs(muld(shortPremiumFraction, totalShortPositionSize())) | |
887 | + | let longTotalPremiumFraction = abs(muld(shortPremiumFraction, totalLongPositionSize())) | |
888 | + | let premiumToVault = (shortTotalPremiumFraction - longTotalPremiumFraction) | |
889 | + | $Tuple3(shortPremiumFraction, shortPremiumFraction, premiumToVault) | |
890 | + | } | |
891 | + | } | |
892 | + | else { | |
893 | + | let longPremiumFraction = divd(muld(premium, fundingPeriodDecimal()), ONE_DAY) | |
894 | + | if ((fundingMode() == FUNDING_ASYMMETRIC)) | |
895 | + | then { | |
896 | + | let shortPremiumFraction = divd(muld(longPremiumFraction, totalLongPositionSize()), totalShortPositionSize()) | |
897 | + | $Tuple3(shortPremiumFraction, longPremiumFraction, 0) | |
898 | + | } | |
899 | + | else { | |
900 | + | let longTotalPremiumFraction = abs(muld(longPremiumFraction, totalLongPositionSize())) | |
901 | + | let shortTotalPremiumFraction = abs(muld(longPremiumFraction, totalShortPositionSize())) | |
902 | + | let premiumToVault = (longTotalPremiumFraction - shortTotalPremiumFraction) | |
903 | + | $Tuple3(longPremiumFraction, longPremiumFraction, premiumToVault) | |
904 | + | } | |
905 | + | } | |
906 | + | } | |
907 | + | ||
908 | + | ||
909 | + | func getAdjustedFee (_artifactId,_baseFeeDiscount) = { | |
910 | + | let baseFeeRaw = fee() | |
911 | + | let baseFee = muld(baseFeeRaw, _baseFeeDiscount) | |
912 | + | let $t04408944584 = if ((_artifactId != "")) | |
913 | + | then { | |
914 | + | let artifactKind = strA(nftManagerAddress(), toCompositeKey(k_token_type, _artifactId)) | |
915 | + | if ((artifactKind == FEE_REDUCTION_TOKEN_TYPE)) | |
916 | + | then { | |
917 | + | let reduction = intA(nftManagerAddress(), toCompositeKey(k_token_param, _artifactId)) | |
918 | + | let adjustedFee = muld(baseFee, reduction) | |
919 | + | $Tuple2(adjustedFee, true) | |
920 | + | } | |
921 | + | else throw("Invalid attached artifact") | |
922 | + | } | |
923 | + | else $Tuple2(baseFee, false) | |
924 | + | let adjustedFee = $t04408944584._1 | |
925 | + | let burnArtifact = $t04408944584._2 | |
926 | + | $Tuple2(adjustedFee, burnArtifact) | |
927 | + | } | |
928 | + | ||
929 | + | ||
930 | + | func isSameAssetOrNoPosition (_trader,_assetId) = { | |
931 | + | let oldPositionSize = getPosition(_trader)._1 | |
932 | + | if ((oldPositionSize == 0)) | |
933 | + | then true | |
934 | + | else (getPositionAsset(_trader) == _assetId) | |
935 | + | } | |
936 | + | ||
937 | + | ||
938 | + | func isSameAsset (_trader,_assetId) = (getPositionAsset(_trader) == _assetId) | |
939 | + | ||
940 | + | ||
941 | + | func getForTraderWithArtifact (_trader,_artifactId) = { | |
942 | + | let doGetFeeDiscount = invoke(minerAddress(), "computeFeeDiscount", [_trader], nil) | |
943 | + | if ((doGetFeeDiscount == doGetFeeDiscount)) | |
944 | + | then { | |
945 | + | let feeDiscount = match doGetFeeDiscount { | |
946 | + | case x: Int => | |
947 | + | x | |
948 | + | case _ => | |
949 | + | throw("Invalid computeFeeDiscount result") | |
950 | + | } | |
951 | + | let $t04526445338 = getAdjustedFee(_artifactId, feeDiscount) | |
952 | + | let adjustedFee = $t04526445338._1 | |
953 | + | let burnArtifact = $t04526445338._2 | |
954 | + | $Tuple2(adjustedFee, burnArtifact) | |
955 | + | } | |
956 | + | else throw("Strict value is not equal to itself.") | |
957 | + | } | |
958 | + | ||
959 | + | ||
960 | + | func getArtifactId (i) = { | |
961 | + | let artifactId = if ((size(i.payments) > 1)) | |
962 | + | then toBase58String(valueOrErrorMessage(i.payments[1].assetId, "Invalid artifactId")) | |
963 | + | else "" | |
964 | + | artifactId | |
965 | + | } | |
966 | + | ||
967 | + | ||
968 | + | func distributeFee (_feeAmount) = { | |
969 | + | let feeToStakers = muld(_feeAmount, feeToStakersPercent()) | |
970 | + | let feeToVault = (_feeAmount - feeToStakers) | |
971 | + | $Tuple2(feeToStakers, feeToVault) | |
972 | + | } | |
973 | + | ||
974 | + | ||
975 | + | func updateSettings (_initMarginRatio,_mmr,_liquidationFeeRatio,_fundingPeriod,_fee,_spreadLimit,_maxPriceImpact,_partialLiquidationRatio,_maxPriceSpread,_maxOpenNotional,_feeToStakersPercent,_maxOracleDelay,_rolloverFee) = [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), IntegerEntry(k_partialLiquidationRatio, _partialLiquidationRatio), IntegerEntry(k_maxPriceSpread, _maxPriceSpread), IntegerEntry(k_maxOpenNotional, _maxOpenNotional), IntegerEntry(k_feeToStakersPercent, _feeToStakersPercent), IntegerEntry(k_maxOracleDelay, _feeToStakersPercent), IntegerEntry(k_rolloverFee, _rolloverFee)] | |
976 | + | ||
977 | + | ||
978 | + | 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)] | |
979 | + | ||
980 | + | ||
981 | + | func incrementPositionSequenceNumber (_isNewPosition,_address) = if (_isNewPosition) | |
982 | + | then { | |
983 | + | let currentSequence = lastSequence() | |
984 | + | [IntegerEntry(toCompositeKey(k_positionSequence, _address), (currentSequence + 1)), IntegerEntry(k_sequence, (currentSequence + 1))] | |
985 | + | } | |
986 | + | else nil | |
987 | + | ||
988 | + | ||
989 | + | func updatePositionFee (_isNewPosition,_address,_fee) = if (_isNewPosition) | |
990 | + | then [IntegerEntry(toCompositeKey(k_positionFee, _address), _fee)] | |
991 | + | else nil | |
992 | + | ||
993 | + | ||
994 | + | func updatePosition (_address,_size,_margin,_openNotional,_latestCumulativePremiumFraction,_latestTimestamp) = [IntegerEntry(toCompositeKey(k_positionSize, _address), _size), IntegerEntry(toCompositeKey(k_positionMargin, _address), _margin), IntegerEntry(toCompositeKey(k_positionOpenNotional, _address), _openNotional), IntegerEntry(toCompositeKey(k_positionLastUpdatedCumulativePremiumFraction, _address), _latestCumulativePremiumFraction), IntegerEntry(toCompositeKey(k_positionLastUpdatedTimestamp, _address), _latestTimestamp)] | |
995 | + | ||
996 | + | ||
997 | + | func appendTwap (_price) = { | |
998 | + | let minuteId = ((lastTimestamp() / 1000) / 60) | |
999 | + | let previousMinuteId = valueOrElse(getInteger(this, k_lastMinuteId), 0) | |
1000 | + | if ((previousMinuteId > minuteId)) | |
1001 | + | then throw("TWAP out-of-order") | |
1002 | + | else { | |
1003 | + | let lastMinuteId = if ((previousMinuteId == 0)) | |
1004 | + | then minuteId | |
1005 | + | else previousMinuteId | |
1006 | + | if ((minuteId > previousMinuteId)) | |
1007 | + | then { | |
1008 | + | let prevCumulativePrice = valueOrElse(getInteger(this, ((k_twapDataLastCumulativePrice + "_") + toString(previousMinuteId))), 0) | |
1009 | + | let prevPrice = valueOrElse(getInteger(this, ((k_twapDataLastPrice + "_") + toString(previousMinuteId))), _price) | |
1010 | + | let lastCumulativePrice = (prevCumulativePrice + ((minuteId - lastMinuteId) * prevPrice)) | |
1011 | + | let list = pushToQueue(strToList(valueOrElse(getString(this, k_lastDataStr), "")), TWAP_INTERVAL, toString(minuteId)) | |
1012 | + | [IntegerEntry(toCompositeKey(k_twapDataLastCumulativePrice, toString(minuteId)), lastCumulativePrice), IntegerEntry(toCompositeKey(k_twapDataLastPrice, toString(minuteId)), _price), IntegerEntry(toCompositeKey(k_twapDataPreviousMinuteId, toString(minuteId)), previousMinuteId), IntegerEntry(k_lastMinuteId, minuteId), StringEntry(k_lastDataStr, listToStr(list))] | |
1013 | + | } | |
1014 | + | else { | |
1015 | + | let twapDataPreviousMinuteId = valueOrElse(getInteger(this, toCompositeKey(k_twapDataPreviousMinuteId, toString(minuteId))), 0) | |
1016 | + | let prevCumulativePrice = valueOrElse(getInteger(this, toCompositeKey(k_twapDataLastCumulativePrice, toString(twapDataPreviousMinuteId))), 0) | |
1017 | + | let prevPrice = valueOrElse(getInteger(this, toCompositeKey(k_twapDataLastPrice, toString(twapDataPreviousMinuteId))), _price) | |
1018 | + | let lastCumulativePrice = (prevCumulativePrice + ((minuteId - twapDataPreviousMinuteId) * prevPrice)) | |
1019 | + | [IntegerEntry(toCompositeKey(k_twapDataLastCumulativePrice, toString(minuteId)), lastCumulativePrice), IntegerEntry(toCompositeKey(k_twapDataLastPrice, toString(minuteId)), _price)] | |
1020 | + | } | |
1021 | + | } | |
1022 | + | } | |
1023 | + | ||
1024 | + | ||
1025 | + | func updateAmmReserves (_qtAstR,_bsAstR) = [IntegerEntry(k_quoteAssetReserve, _qtAstR), IntegerEntry(k_baseAssetReserve, _bsAstR)] | |
1026 | + | ||
1027 | + | ||
1028 | + | func updateAmmWeights (_qtAstW,_bsAstW) = [IntegerEntry(k_quoteAssetWeight, _qtAstW), IntegerEntry(k_baseAssetWeight, _bsAstW)] | |
1029 | + | ||
1030 | + | ||
1031 | + | func updateAmm (_qtAstR,_bsAstR,_totalPositionSizeAfter,_openInterestNotional,_totalLongPositionSize,_totalShortPositionSize,_totalLongOpenNotional,_totalShortOpenNotional) = { | |
1032 | + | let _qtAstW = qtAstW() | |
1033 | + | let _bsAstW = bsAstW() | |
1034 | + | if (((_totalLongPositionSize - _totalShortPositionSize) != _totalPositionSizeAfter)) | |
1035 | + | then throw(((((("Invalid AMM state data: " + toString(_totalLongPositionSize)) + " + ") + toString(_totalShortPositionSize)) + " != ") + toString(_totalPositionSizeAfter))) | |
1036 | + | else ((updateAmmReserves(_qtAstR, _bsAstR) ++ [IntegerEntry(k_totalPositionSize, _totalPositionSizeAfter), IntegerEntry(k_openInterestNotional, _openInterestNotional), IntegerEntry(k_totalLongPositionSize, _totalLongPositionSize), IntegerEntry(k_totalShortPositionSize, _totalShortPositionSize), IntegerEntry(k_openInterestLong, _totalLongOpenNotional), IntegerEntry(k_openInterestShort, _totalShortOpenNotional)]) ++ appendTwap(divd(muld(_qtAstR, _qtAstW), muld(_bsAstR, _bsAstW)))) | |
1037 | + | } | |
1038 | + | ||
1039 | + | ||
1040 | + | func deletePosition (_address) = [DeleteEntry(toCompositeKey(k_positionSize, _address)), DeleteEntry(toCompositeKey(k_positionMargin, _address)), DeleteEntry(toCompositeKey(k_positionOpenNotional, _address)), DeleteEntry(toCompositeKey(k_positionLastUpdatedCumulativePremiumFraction, _address)), DeleteEntry(toCompositeKey(k_positionAsset, _address)), DeleteEntry(toCompositeKey(k_positionFee, _address)), DeleteEntry(toCompositeKey(k_positionLastUpdatedTimestamp, _address))] | |
1041 | + | ||
1042 | + | ||
1043 | + | func withdraw (_address,_amount) = { | |
1044 | + | let balance = assetBalance(this, quoteAsset()) | |
1045 | + | if ((_amount > balance)) | |
1046 | + | then throw(((("Unable to withdraw " + toString(_amount)) + " from contract balance ") + toString(balance))) | |
1047 | + | else [ScriptTransfer(_address, _amount, quoteAsset())] | |
1048 | + | } | |
1049 | + | ||
1050 | + | ||
1051 | + | func updateBalance (i) = if ((0 > i)) | |
1052 | + | then throw("Balance") | |
1053 | + | else [IntegerEntry(k_balance, i)] | |
1054 | + | ||
1055 | + | ||
1056 | + | func transferFee (i) = [ScriptTransfer(stakingAddress(), i, quoteAsset())] | |
1057 | + | ||
1058 | + | ||
1059 | + | func doBurnArtifact (_burnArtifact,i) = if (_burnArtifact) | |
1060 | + | then [Burn(valueOrErrorMessage(i.payments[1].assetId, "Invalid artifact"), 1)] | |
1061 | + | else nil | |
1062 | + | ||
1063 | + | ||
1064 | + | @Callable(i) | |
1065 | + | func pause () = if ((i.caller != adminAddress())) | |
1066 | + | then throw("Invalid pause params") | |
1067 | + | else [BooleanEntry(k_paused, true)] | |
1068 | + | ||
1069 | + | ||
1070 | + | ||
1071 | + | @Callable(i) | |
1072 | + | func unpause () = if ((i.caller != adminAddress())) | |
1073 | + | then throw("Invalid unpause params") | |
1074 | + | else [BooleanEntry(k_paused, false)] | |
1075 | + | ||
1076 | + | ||
1077 | + | ||
1078 | + | @Callable(i) | |
1079 | + | func setCloseOnly () = if ((i.caller != adminAddress())) | |
1080 | + | then throw("Invalid setCloseOnly params") | |
1081 | + | else [BooleanEntry(k_closeOnly, true)] | |
1082 | + | ||
1083 | + | ||
1084 | + | ||
1085 | + | @Callable(i) | |
1086 | + | func unsetCloseOnly () = if ((i.caller != adminAddress())) | |
1087 | + | then throw("Invalid unsetCloseOnly params") | |
1088 | + | else [BooleanEntry(k_closeOnly, false)] | |
1089 | + | ||
1090 | + | ||
1091 | + | ||
1092 | + | @Callable(i) | |
1093 | + | func addLiquidity (_quoteAssetAmount) = if (if ((i.caller != adminAddress())) | |
1094 | + | then true | |
1095 | + | else (0 >= _quoteAssetAmount)) | |
1096 | + | then throw("Invalid addLiquidity params") | |
1097 | + | else { | |
1098 | + | let _qtAstR = qtAstR() | |
1099 | + | let _bsAstR = bsAstR() | |
1100 | + | let _qtAstW = qtAstW() | |
1101 | + | let _bsAstW = bsAstW() | |
1102 | + | let price = divd(muld(_qtAstR, _qtAstW), muld(_bsAstR, _bsAstW)) | |
1103 | + | let qtAstRAfter = (_qtAstR + _quoteAssetAmount) | |
1104 | + | let baseAssetAmountToAdd = (divd(muld(qtAstRAfter, _qtAstW), price) - _bsAstR) | |
1105 | + | let bsAstRAfter = (_bsAstR + baseAssetAmountToAdd) | |
1106 | + | let $t05474554896 = getSyncTerminalPrice(getOraclePrice(), qtAstRAfter, bsAstRAfter) | |
1107 | + | let newQuoteAssetWeight = $t05474554896._1 | |
1108 | + | let newBaseAssetWeight = $t05474554896._2 | |
1109 | + | let marginToVault = $t05474554896._3 | |
1110 | + | let doExchangePnL = if ((marginToVault != 0)) | |
1111 | + | then { | |
1112 | + | let doExchangePnL = invoke(vaultAddress(), "exchangeFreeAndLocked", [marginToVault], nil) | |
1113 | + | if ((doExchangePnL == doExchangePnL)) | |
1114 | + | then nil | |
1115 | + | else throw("Strict value is not equal to itself.") | |
1116 | + | } | |
1117 | + | else nil | |
1118 | + | if ((doExchangePnL == doExchangePnL)) | |
1119 | + | then (updateAmmReserves(qtAstRAfter, bsAstRAfter) ++ updateAmmWeights(newQuoteAssetWeight, newBaseAssetWeight)) | |
1120 | + | else throw("Strict value is not equal to itself.") | |
1121 | + | } | |
1122 | + | ||
1123 | + | ||
1124 | + | ||
1125 | + | @Callable(i) | |
1126 | + | func removeLiquidity (_quoteAssetAmount) = if (if ((i.caller != adminAddress())) | |
1127 | + | then true | |
1128 | + | else (_quoteAssetAmount >= 0)) | |
1129 | + | then throw("Invalid removeLiquidity params") | |
1130 | + | else { | |
1131 | + | let _qtAstR = qtAstR() | |
1132 | + | let _bsAstR = bsAstR() | |
1133 | + | let _qtAstW = qtAstW() | |
1134 | + | let _bsAstW = bsAstW() | |
1135 | + | let price = divd(muld(_qtAstR, _qtAstW), muld(_bsAstR, _bsAstW)) | |
1136 | + | let qtAstRAfter = (_qtAstR - _quoteAssetAmount) | |
1137 | + | let baseAssetAmountToRemove = abs((divd(muld(qtAstRAfter, _qtAstW), price) - _bsAstR)) | |
1138 | + | let bsAstRAfter = (_bsAstR - baseAssetAmountToRemove) | |
1139 | + | let $t05582855979 = getSyncTerminalPrice(getOraclePrice(), qtAstRAfter, bsAstRAfter) | |
1140 | + | let newQuoteAssetWeight = $t05582855979._1 | |
1141 | + | let newBaseAssetWeight = $t05582855979._2 | |
1142 | + | let marginToVault = $t05582855979._3 | |
1143 | + | let doExchangePnL = if ((marginToVault != 0)) | |
1144 | + | then { | |
1145 | + | let doExchangePnL = invoke(vaultAddress(), "exchangeFreeAndLocked", [marginToVault], nil) | |
1146 | + | if ((doExchangePnL == doExchangePnL)) | |
1147 | + | then nil | |
1148 | + | else throw("Strict value is not equal to itself.") | |
1149 | + | } | |
1150 | + | else nil | |
1151 | + | if ((doExchangePnL == doExchangePnL)) | |
1152 | + | then (updateAmmReserves(qtAstRAfter, bsAstRAfter) ++ updateAmmWeights(newQuoteAssetWeight, newBaseAssetWeight)) | |
1153 | + | else throw("Strict value is not equal to itself.") | |
1154 | + | } | |
1155 | + | ||
1156 | + | ||
1157 | + | ||
1158 | + | @Callable(i) | |
1159 | + | func changeSettings (_initMarginRatio,_mmr,_liquidationFeeRatio,_fundingPeriod,_fee,_spreadLimit,_maxPriceImpact,_partialLiquidationRatio,_maxPriceSpread,_maxOpenNotional,_feeToStakersPercent,_maxOracleDelay,_rolloverFee) = if ((i.caller != adminAddress())) | |
1160 | + | then throw("Invalid changeSettings params") | |
1161 | + | else updateSettings(_initMarginRatio, _mmr, _liquidationFeeRatio, _fundingPeriod, _fee, _spreadLimit, _maxPriceImpact, _partialLiquidationRatio, _maxPriceSpread, _maxOpenNotional, _feeToStakersPercent, _maxOracleDelay, _rolloverFee) | |
1162 | + | ||
1163 | + | ||
1164 | + | ||
1165 | + | @Callable(i) | |
1166 | + | func initialize (_qtAstR,_bsAstR,_fundingPeriod,_initMarginRatio,_mmr,_liquidationFeeRatio,_fee,_baseOracleData,_quoteOracleData,_coordinator,_spreadLimit,_maxPriceImpact,_partialLiquidationRatio,_maxPriceSpread,_maxOpenNotional,_feeToStakersPercent,_maxOracleDelay,_rolloverFee) = if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if ((0 >= _qtAstR)) | |
1167 | + | then true | |
1168 | + | else (0 >= _bsAstR)) | |
1169 | + | then true | |
1170 | + | else (0 >= _fundingPeriod)) | |
1171 | + | then true | |
1172 | + | else (0 >= _initMarginRatio)) | |
1173 | + | then true | |
1174 | + | else (0 >= _mmr)) | |
1175 | + | then true | |
1176 | + | else (0 >= _liquidationFeeRatio)) | |
1177 | + | then true | |
1178 | + | else (0 >= _fee)) | |
1179 | + | then true | |
1180 | + | else (0 >= _spreadLimit)) | |
1181 | + | then true | |
1182 | + | else (0 >= _maxPriceImpact)) | |
1183 | + | then true | |
1184 | + | else (0 >= _partialLiquidationRatio)) | |
1185 | + | then true | |
1186 | + | else (0 >= _maxPriceSpread)) | |
1187 | + | then true | |
1188 | + | else (0 >= _maxOpenNotional)) | |
1189 | + | then true | |
1190 | + | else (0 >= _feeToStakersPercent)) | |
1191 | + | then true | |
1192 | + | else (_feeToStakersPercent > DECIMAL_UNIT)) | |
1193 | + | then true | |
1194 | + | else (0 >= _maxOracleDelay)) | |
1195 | + | then true | |
1196 | + | else (0 >= _rolloverFee)) | |
1197 | + | then true | |
1198 | + | else initialized()) | |
1199 | + | then true | |
1200 | + | else (i.caller != this)) | |
1201 | + | then throw("Invalid initialize parameters") | |
1202 | + | else ((((updateAmm(_qtAstR, _bsAstR, 0, 0, 0, 0, 0, 0) ++ updateSettings(_initMarginRatio, _mmr, _liquidationFeeRatio, _fundingPeriod, _fee, _spreadLimit, _maxPriceImpact, _partialLiquidationRatio, _maxPriceSpread, _maxOpenNotional, _feeToStakersPercent, _maxOracleDelay, _rolloverFee)) ++ updateFunding((lastTimestamp() + _fundingPeriod), 0, 0, 0, 0)) ++ updateBalance(0)) ++ [BooleanEntry(k_initialized, true), StringEntry(k_baseOracle, _baseOracleData), StringEntry(k_quoteOracle, _quoteOracleData), StringEntry(k_coordinatorAddress, toString(addressFromStringValue(_coordinator)))]) | |
1203 | + | ||
1204 | + | ||
1205 | + | ||
1206 | + | @Callable(i) | |
1207 | + | func increasePosition (_direction,_leverage,_minBaseAssetAmount,_refLink) = { | |
1208 | + | let sync = invoke(this, "syncTerminalPriceToOracle", nil, nil) | |
1209 | + | if ((sync == sync)) | |
1210 | + | then { | |
1211 | + | let ensureCalledOnce = invoke(this, "ensureCalledOnce", nil, nil) | |
1212 | + | if ((ensureCalledOnce == ensureCalledOnce)) | |
1213 | + | then { | |
1214 | + | let _trader = getActualCaller(i) | |
1215 | + | let _rawAmount = i.payments[0].amount | |
1216 | + | let _assetId = i.payments[0].assetId | |
1217 | + | let _assetIdStr = toBase58String(value(_assetId)) | |
1218 | + | let isQuoteAsset = (_assetId == quoteAsset()) | |
1219 | + | if (if (if (if (if (if (if (if (if (if ((_direction != DIR_LONG)) | |
1220 | + | then (_direction != DIR_SHORT) | |
1221 | + | else false) | |
1222 | + | then true | |
1223 | + | else (0 >= _rawAmount)) | |
1224 | + | then true | |
1225 | + | else !(initialized())) | |
1226 | + | then true | |
1227 | + | else !(isQuoteAsset)) | |
1228 | + | then true | |
1229 | + | else !(isSameAssetOrNoPosition(_trader, _assetIdStr))) | |
1230 | + | then true | |
1231 | + | else !(requireMoreMarginRatio(divd(DECIMAL_UNIT, _leverage), initMarginRatio(), true))) | |
1232 | + | then true | |
1233 | + | else paused()) | |
1234 | + | then true | |
1235 | + | else closeOnly()) | |
1236 | + | then true | |
1237 | + | else isMarketClosed()) | |
1238 | + | then throw("Invalid increasePosition parameters") | |
1239 | + | else { | |
1240 | + | let $t05975759906 = getForTraderWithArtifact(_trader, getArtifactId(i)) | |
1241 | + | let adjustedFee = $t05975759906._1 | |
1242 | + | let burnArtifact = $t05975759906._2 | |
1243 | + | let _amount = divd(_rawAmount, (muld(adjustedFee, _leverage) + DECIMAL_UNIT)) | |
1244 | + | let distributeFeeAmount = (_rawAmount - _amount) | |
1245 | + | let referrerFeeAny = invoke(referralAddress(), "acceptPaymentWithLink", [_trader, _refLink], [AttachedPayment(quoteAsset(), distributeFeeAmount)]) | |
1246 | + | if ((referrerFeeAny == referrerFeeAny)) | |
1247 | + | then { | |
1248 | + | let referrerFee = match referrerFeeAny { | |
1249 | + | case x: Int => | |
1250 | + | x | |
1251 | + | case _ => | |
1252 | + | throw("Invalid referrerFee") | |
1253 | + | } | |
1254 | + | let feeAmount = (distributeFeeAmount - referrerFee) | |
1255 | + | let $t06040260570 = getPosition(_trader) | |
1256 | + | let oldPositionSize = $t06040260570._1 | |
1257 | + | let oldPositionMargin = $t06040260570._2 | |
1258 | + | let oldPositionOpenNotional = $t06040260570._3 | |
1259 | + | let oldPositionLstUpdCPF = $t06040260570._4 | |
1260 | + | let oldPositionTimestamp = $t06040260570._5 | |
1261 | + | let isNewPosition = (oldPositionSize == 0) | |
1262 | + | let isSameDirection = if ((oldPositionSize > 0)) | |
1263 | + | then (_direction == DIR_LONG) | |
1264 | + | else (_direction == DIR_SHORT) | |
1265 | + | let expandExisting = if (!(isNewPosition)) | |
1266 | + | then isSameDirection | |
1267 | + | else false | |
1268 | + | let isAdd = (_direction == DIR_LONG) | |
1269 | + | let $t06085963980 = if (if (isNewPosition) | |
1270 | + | then true | |
1271 | + | else expandExisting) | |
1272 | + | then { | |
1273 | + | let openNotional = muld(_amount, _leverage) | |
1274 | + | let $t06136861541 = swapInput(isAdd, openNotional) | |
1275 | + | let amountBaseAssetBought = $t06136861541._1 | |
1276 | + | let quoteAssetReserveAfter = $t06136861541._2 | |
1277 | + | let baseAssetReserveAfter = $t06136861541._3 | |
1278 | + | let totalPositionSizeAfter = $t06136861541._4 | |
1279 | + | if (if ((_minBaseAssetAmount != 0)) | |
1280 | + | then (_minBaseAssetAmount > abs(amountBaseAssetBought)) | |
1281 | + | else false) | |
1282 | + | then throw(((("Limit error: " + toString(abs(amountBaseAssetBought))) + " < ") + toString(_minBaseAssetAmount))) | |
1283 | + | else { | |
1284 | + | let newPositionSize = (oldPositionSize + amountBaseAssetBought) | |
1285 | + | let totalLongOpenInterestAfter = (openInterestLong() + (if ((newPositionSize > 0)) | |
1286 | + | then openNotional | |
1287 | + | else 0)) | |
1288 | + | let totalShortOpenInterestAfter = (openInterestShort() + (if ((0 > newPositionSize)) | |
1289 | + | then openNotional | |
1290 | + | else 0)) | |
1291 | + | let $t06208762362 = calcRemainMarginWithFundingPaymentAndRolloverFee(oldPositionSize, oldPositionMargin, oldPositionLstUpdCPF, oldPositionTimestamp, _amount) | |
1292 | + | let remainMargin = $t06208762362._1 | |
1293 | + | let x1 = $t06208762362._2 | |
1294 | + | let x2 = $t06208762362._3 | |
1295 | + | let rolloverFee = $t06208762362._4 | |
1296 | + | if (!(requireNotOverSpreadLimit(quoteAssetReserveAfter, baseAssetReserveAfter))) | |
1297 | + | then throw("Over max spread limit") | |
1298 | + | else if (!(requireNotOverMaxOpenNotional(totalLongOpenInterestAfter, totalShortOpenInterestAfter))) | |
1299 | + | then throw("Over max open notional") | |
1300 | + | else $Tuple14(newPositionSize, remainMargin, (oldPositionOpenNotional + openNotional), latestCumulativePremiumFraction(newPositionSize), lastTimestamp(), baseAssetReserveAfter, quoteAssetReserveAfter, totalPositionSizeAfter, (openInterestNotional() + openNotional), (totalLongPositionSize() + (if ((newPositionSize > 0)) | |
1301 | + | then abs(amountBaseAssetBought) | |
1302 | + | else 0)), (totalShortPositionSize() + (if ((0 > newPositionSize)) | |
1303 | + | then abs(amountBaseAssetBought) | |
1304 | + | else 0)), totalLongOpenInterestAfter, totalShortOpenInterestAfter, rolloverFee) | |
1305 | + | } | |
1306 | + | } | |
1307 | + | else { | |
1308 | + | let openNotional = muld(_amount, _leverage) | |
1309 | + | let $t06368063796 = getPositionNotionalAndUnrealizedPnl(toString(i.caller), PNL_OPTION_SPOT) | |
1310 | + | let oldPositionNotional = $t06368063796._1 | |
1311 | + | let unrealizedPnl = $t06368063796._2 | |
1312 | + | if ((oldPositionNotional > openNotional)) | |
1313 | + | then throw("Use decreasePosition to decrease position size") | |
1314 | + | else throw("Close position first") | |
1315 | + | } | |
1316 | + | let newPositionSize = $t06085963980._1 | |
1317 | + | let newPositionRemainMargin = $t06085963980._2 | |
1318 | + | let newPositionOpenNotional = $t06085963980._3 | |
1319 | + | let newPositionLatestCPF = $t06085963980._4 | |
1320 | + | let newPositionTimestamp = $t06085963980._5 | |
1321 | + | let baseAssetReserveAfter = $t06085963980._6 | |
1322 | + | let quoteAssetReserveAfter = $t06085963980._7 | |
1323 | + | let totalPositionSizeAfter = $t06085963980._8 | |
1324 | + | let openInterestNotionalAfter = $t06085963980._9 | |
1325 | + | let totalLongAfter = $t06085963980._10 | |
1326 | + | let totalShortAfter = $t06085963980._11 | |
1327 | + | let totalLongOpenInterestAfter = $t06085963980._12 | |
1328 | + | let totalShortOpenInterestAfter = $t06085963980._13 | |
1329 | + | let rolloverFee = $t06085963980._14 | |
1330 | + | let $t06398664057 = distributeFee((feeAmount + rolloverFee)) | |
1331 | + | let feeToStakers = $t06398664057._1 | |
1332 | + | let feeToVault = $t06398664057._2 | |
1333 | + | let stake = if ((_amount >= rolloverFee)) | |
1334 | + | then invoke(vaultAddress(), "addLocked", nil, [AttachedPayment(quoteAsset(), (_amount - rolloverFee))]) | |
1335 | + | else invoke(vaultAddress(), "withdrawLocked", [(rolloverFee - _amount)], nil) | |
1336 | + | if ((stake == stake)) | |
1337 | + | then { | |
1338 | + | let depositVault = invoke(vaultAddress(), "addFree", nil, [AttachedPayment(quoteAsset(), feeToVault)]) | |
1339 | + | if ((depositVault == depositVault)) | |
1340 | + | then { | |
1341 | + | let notifyFee = invoke(minerAddress(), "notifyFees", [_trader, feeAmount], nil) | |
1342 | + | if ((notifyFee == notifyFee)) | |
1343 | + | then { | |
1344 | + | let notifyNotional = invoke(minerAddress(), "notifyNotional", [_trader, newPositionOpenNotional], nil) | |
1345 | + | if ((notifyNotional == notifyNotional)) | |
1346 | + | then ((((((updatePosition(_trader, newPositionSize, newPositionRemainMargin, newPositionOpenNotional, newPositionLatestCPF, newPositionTimestamp) ++ incrementPositionSequenceNumber(isNewPosition, _trader)) ++ updatePositionFee(isNewPosition, _trader, adjustedFee)) ++ updateAmm(quoteAssetReserveAfter, baseAssetReserveAfter, totalPositionSizeAfter, openInterestNotionalAfter, totalLongAfter, totalShortAfter, totalLongOpenInterestAfter, totalShortOpenInterestAfter)) ++ transferFee(feeToStakers)) ++ updateBalance(((cbalance() + _amount) - rolloverFee))) ++ doBurnArtifact(burnArtifact, i)) | |
1347 | + | else throw("Strict value is not equal to itself.") | |
1348 | + | } | |
1349 | + | else throw("Strict value is not equal to itself.") | |
1350 | + | } | |
1351 | + | else throw("Strict value is not equal to itself.") | |
1352 | + | } | |
1353 | + | else throw("Strict value is not equal to itself.") | |
1354 | + | } | |
1355 | + | else throw("Strict value is not equal to itself.") | |
1356 | + | } | |
1357 | + | } | |
1358 | + | else throw("Strict value is not equal to itself.") | |
1359 | + | } | |
1360 | + | else throw("Strict value is not equal to itself.") | |
1361 | + | } | |
1362 | + | ||
1363 | + | ||
1364 | + | ||
1365 | + | @Callable(i) | |
1366 | + | func addMargin () = { | |
1367 | + | let sync = invoke(this, "syncTerminalPriceToOracle", nil, nil) | |
1368 | + | if ((sync == sync)) | |
1369 | + | then { | |
1370 | + | let ensureCalledOnce = invoke(this, "ensureCalledOnce", nil, nil) | |
1371 | + | if ((ensureCalledOnce == ensureCalledOnce)) | |
1372 | + | then { | |
1373 | + | let _trader = toString(i.caller) | |
1374 | + | let _amount = i.payments[0].amount | |
1375 | + | let _assetId = i.payments[0].assetId | |
1376 | + | let _assetIdStr = toBase58String(value(_assetId)) | |
1377 | + | let isQuoteAsset = (_assetId == quoteAsset()) | |
1378 | + | if (if (if (if (if (if (if (!(isQuoteAsset)) | |
1379 | + | then true | |
1380 | + | else !(requireOpenPosition(toString(i.caller)))) | |
1381 | + | then true | |
1382 | + | else !(isSameAsset(_trader, _assetIdStr))) | |
1383 | + | then true | |
1384 | + | else !(initialized())) | |
1385 | + | then true | |
1386 | + | else paused()) | |
1387 | + | then true | |
1388 | + | else closeOnly()) | |
1389 | + | then true | |
1390 | + | else isMarketClosed()) | |
1391 | + | then throw("Invalid addMargin parameters") | |
1392 | + | else { | |
1393 | + | let $t06616866336 = getPosition(_trader) | |
1394 | + | let oldPositionSize = $t06616866336._1 | |
1395 | + | let oldPositionMargin = $t06616866336._2 | |
1396 | + | let oldPositionOpenNotional = $t06616866336._3 | |
1397 | + | let oldPositionLstUpdCPF = $t06616866336._4 | |
1398 | + | let oldPositionTimestamp = $t06616866336._5 | |
1399 | + | let stake = invoke(vaultAddress(), "addLocked", nil, [AttachedPayment(quoteAsset(), _amount)]) | |
1400 | + | if ((stake == stake)) | |
1401 | + | then { | |
1402 | + | let rolloverFee = calcRolloverFee(oldPositionMargin, oldPositionTimestamp) | |
1403 | + | let doTransferFeeToStakers = if ((rolloverFee > 0)) | |
1404 | + | then { | |
1405 | + | let $t06662166680 = distributeFee(rolloverFee) | |
1406 | + | let feeToStakers = $t06662166680._1 | |
1407 | + | let feeToVault = $t06662166680._2 | |
1408 | + | let unstake = invoke(vaultAddress(), "withdrawLocked", [feeToStakers], nil) | |
1409 | + | if ((unstake == unstake)) | |
1410 | + | then { | |
1411 | + | let lockBadDebt = invoke(vaultAddress(), "exchangeFreeAndLocked", [-(feeToVault)], nil) | |
1412 | + | if ((lockBadDebt == lockBadDebt)) | |
1413 | + | then transferFee(feeToStakers) | |
1414 | + | else throw("Strict value is not equal to itself.") | |
1415 | + | } | |
1416 | + | else throw("Strict value is not equal to itself.") | |
1417 | + | } | |
1418 | + | else nil | |
1419 | + | if ((doTransferFeeToStakers == doTransferFeeToStakers)) | |
1420 | + | then ((updatePosition(_trader, oldPositionSize, ((oldPositionMargin - rolloverFee) + _amount), oldPositionOpenNotional, oldPositionLstUpdCPF, lastTimestamp()) ++ updateBalance(((cbalance() + _amount) - rolloverFee))) ++ doTransferFeeToStakers) | |
1421 | + | else throw("Strict value is not equal to itself.") | |
1422 | + | } | |
1423 | + | else throw("Strict value is not equal to itself.") | |
1424 | + | } | |
1425 | + | } | |
1426 | + | else throw("Strict value is not equal to itself.") | |
1427 | + | } | |
1428 | + | else throw("Strict value is not equal to itself.") | |
1429 | + | } | |
1430 | + | ||
1431 | + | ||
1432 | + | ||
1433 | + | @Callable(i) | |
1434 | + | func removeMargin (_amount) = { | |
1435 | + | let sync = invoke(this, "syncTerminalPriceToOracle", nil, nil) | |
1436 | + | if ((sync == sync)) | |
1437 | + | then { | |
1438 | + | let ensureCalledOnce = invoke(this, "ensureCalledOnce", nil, nil) | |
1439 | + | if ((ensureCalledOnce == ensureCalledOnce)) | |
1440 | + | then { | |
1441 | + | let _trader = toString(i.caller) | |
1442 | + | if (if (if (if (if ((0 >= _amount)) | |
1443 | + | then true | |
1444 | + | else !(requireOpenPosition(_trader))) | |
1445 | + | then true | |
1446 | + | else !(initialized())) | |
1447 | + | then true | |
1448 | + | else paused()) | |
1449 | + | then true | |
1450 | + | else isMarketClosed()) | |
1451 | + | then throw("Invalid removeMargin parameters") | |
1452 | + | else { | |
1453 | + | let $t06779267960 = getPosition(_trader) | |
1454 | + | let oldPositionSize = $t06779267960._1 | |
1455 | + | let oldPositionMargin = $t06779267960._2 | |
1456 | + | let oldPositionOpenNotional = $t06779267960._3 | |
1457 | + | let oldPositionLstUpdCPF = $t06779267960._4 | |
1458 | + | let oldPositionTimestamp = $t06779267960._5 | |
1459 | + | let $t06796668215 = calcRemainMarginWithFundingPaymentAndRolloverFee(oldPositionSize, oldPositionMargin, oldPositionLstUpdCPF, oldPositionTimestamp, -(_amount)) | |
1460 | + | let remainMargin = $t06796668215._1 | |
1461 | + | let badDebt = $t06796668215._2 | |
1462 | + | let fundingPayment = $t06796668215._3 | |
1463 | + | let rolloverFee = $t06796668215._4 | |
1464 | + | if ((badDebt != 0)) | |
1465 | + | then throw("Invalid removed margin amount") | |
1466 | + | else { | |
1467 | + | let marginRatio = calcMarginRatio(remainMargin, badDebt, oldPositionOpenNotional) | |
1468 | + | if (!(requireMoreMarginRatio(marginRatio, initMarginRatio(), true))) | |
1469 | + | then throw(((("Too much margin removed: " + toString(marginRatio)) + " < ") + toString(initMarginRatio()))) | |
1470 | + | else { | |
1471 | + | let $t06860168660 = distributeFee(rolloverFee) | |
1472 | + | let feeToStakers = $t06860168660._1 | |
1473 | + | let feeToVault = $t06860168660._2 | |
1474 | + | let doTransferFeeToStakers = if ((rolloverFee > 0)) | |
1475 | + | then { | |
1476 | + | let lockBadDebt = invoke(vaultAddress(), "exchangeFreeAndLocked", [-(feeToVault)], nil) | |
1477 | + | if ((lockBadDebt == lockBadDebt)) | |
1478 | + | then transferFee(feeToStakers) | |
1479 | + | else throw("Strict value is not equal to itself.") | |
1480 | + | } | |
1481 | + | else nil | |
1482 | + | if ((doTransferFeeToStakers == doTransferFeeToStakers)) | |
1483 | + | then { | |
1484 | + | let unstake = invoke(vaultAddress(), "withdrawLocked", [(_amount + feeToStakers)], nil) | |
1485 | + | if ((unstake == unstake)) | |
1486 | + | then (((updatePosition(_trader, oldPositionSize, remainMargin, oldPositionOpenNotional, latestCumulativePremiumFraction(oldPositionSize), lastTimestamp()) ++ withdraw(i.caller, _amount)) ++ updateBalance(((cbalance() - _amount) - rolloverFee))) ++ doTransferFeeToStakers) | |
1487 | + | else throw("Strict value is not equal to itself.") | |
1488 | + | } | |
1489 | + | else throw("Strict value is not equal to itself.") | |
1490 | + | } | |
1491 | + | } | |
1492 | + | } | |
1493 | + | } | |
1494 | + | else throw("Strict value is not equal to itself.") | |
1495 | + | } | |
1496 | + | else throw("Strict value is not equal to itself.") | |
1497 | + | } | |
1498 | + | ||
1499 | + | ||
1500 | + | ||
1501 | + | @Callable(i) | |
1502 | + | func closePosition (_size,_minQuoteAssetAmount,_addToMargin) = { | |
1503 | + | let sync = invoke(this, "syncTerminalPriceToOracle", nil, nil) | |
1504 | + | if ((sync == sync)) | |
1505 | + | then { | |
1506 | + | let ensureCalledOnce = invoke(this, "ensureCalledOnce", nil, nil) | |
1507 | + | if ((ensureCalledOnce == ensureCalledOnce)) | |
1508 | + | then { | |
1509 | + | let _trader = getActualCaller(i) | |
1510 | + | let _traderAddress = valueOrErrorMessage(addressFromString(_trader), "Invalid caller") | |
1511 | + | let positionFee = getPositionFee(_trader) | |
1512 | + | if (if (if (if (if (if (!(requireOpenPosition(_trader))) | |
1513 | + | then true | |
1514 | + | else !(initialized())) | |
1515 | + | then true | |
1516 | + | else paused()) | |
1517 | + | then true | |
1518 | + | else (0 >= _size)) | |
1519 | + | then true | |
1520 | + | else (0 > _minQuoteAssetAmount)) | |
1521 | + | then true | |
1522 | + | else isMarketClosed()) | |
1523 | + | then throw("Invalid closePosition parameters") | |
1524 | + | else { | |
1525 | + | let oldPositionTimestamp = getPosition(_trader)._5 | |
1526 | + | let $t07031770902 = internalClosePosition(_trader, _size, positionFee, _minQuoteAssetAmount, _addToMargin, true, true) | |
1527 | + | let newPositionSize = $t07031770902._1 | |
1528 | + | let newPositionMargin = $t07031770902._2 | |
1529 | + | let newPositionOpenNotional = $t07031770902._3 | |
1530 | + | let newPositionLstUpdCPF = $t07031770902._4 | |
1531 | + | let positionBadDebt = $t07031770902._5 | |
1532 | + | let realizedPnl = $t07031770902._6 | |
1533 | + | let marginToTrader = $t07031770902._7 | |
1534 | + | let quoteAssetReserveAfter = $t07031770902._8 | |
1535 | + | let baseAssetReserveAfter = $t07031770902._9 | |
1536 | + | let totalPositionSizeAfter = $t07031770902._10 | |
1537 | + | let openInterestNotionalAfter = $t07031770902._11 | |
1538 | + | let totalLongAfter = $t07031770902._12 | |
1539 | + | let totalShortAfter = $t07031770902._13 | |
1540 | + | let totalLongOpenInterestAfter = $t07031770902._14 | |
1541 | + | let totalShortOpenInterestAfter = $t07031770902._15 | |
1542 | + | let realizedFee = $t07031770902._16 | |
1543 | + | if ((positionBadDebt > 0)) | |
1544 | + | then throw("Invalid closePosition parameters: bad debt") | |
1545 | + | else if ((oldPositionTimestamp >= lastTimestamp())) | |
1546 | + | then throw("Invalid closePosition parameters: wait at least 1 block before closing the position") | |
1547 | + | else { | |
1548 | + | let isPartialClose = (newPositionSize != 0) | |
1549 | + | let withdrawAmount = (marginToTrader + realizedFee) | |
1550 | + | let ammBalance = (cbalance() - withdrawAmount) | |
1551 | + | let ammNewBalance = if ((0 > ammBalance)) | |
1552 | + | then 0 | |
1553 | + | else ammBalance | |
1554 | + | let unstake = invoke(vaultAddress(), "withdrawLocked", [withdrawAmount], nil) | |
1555 | + | if ((unstake == unstake)) | |
1556 | + | then { | |
1557 | + | let $t07157471633 = distributeFee(realizedFee) | |
1558 | + | let feeToStakers = $t07157471633._1 | |
1559 | + | let feeToVault = $t07157471633._2 | |
1560 | + | let depositVault = invoke(vaultAddress(), "addFree", nil, [AttachedPayment(quoteAsset(), feeToVault)]) | |
1561 | + | if ((depositVault == depositVault)) | |
1562 | + | then { | |
1563 | + | let notifyFee = invoke(minerAddress(), "notifyFees", [_trader, realizedFee], nil) | |
1564 | + | if ((notifyFee == notifyFee)) | |
1565 | + | then { | |
1566 | + | let notifyNotional = invoke(minerAddress(), "notifyNotional", [_trader, newPositionOpenNotional], nil) | |
1567 | + | if ((notifyNotional == notifyNotional)) | |
1568 | + | then (((((if (isPartialClose) | |
1569 | + | then updatePosition(_trader, newPositionSize, newPositionMargin, newPositionOpenNotional, newPositionLstUpdCPF, lastTimestamp()) | |
1570 | + | else deletePosition(_trader)) ++ updateAmm(quoteAssetReserveAfter, baseAssetReserveAfter, totalPositionSizeAfter, openInterestNotionalAfter, totalLongAfter, totalShortAfter, totalLongOpenInterestAfter, totalShortOpenInterestAfter)) ++ (if ((marginToTrader > 0)) | |
1571 | + | then withdraw(_traderAddress, marginToTrader) | |
1572 | + | else nil)) ++ updateBalance(ammNewBalance)) ++ transferFee(feeToStakers)) | |
1573 | + | else throw("Strict value is not equal to itself.") | |
1574 | + | } | |
1575 | + | else throw("Strict value is not equal to itself.") | |
1576 | + | } | |
1577 | + | else throw("Strict value is not equal to itself.") | |
1578 | + | } | |
1579 | + | else throw("Strict value is not equal to itself.") | |
1580 | + | } | |
1581 | + | } | |
1582 | + | } | |
1583 | + | else throw("Strict value is not equal to itself.") | |
1584 | + | } | |
1585 | + | else throw("Strict value is not equal to itself.") | |
1586 | + | } | |
1587 | + | ||
1588 | + | ||
1589 | + | ||
1590 | + | @Callable(i) | |
1591 | + | func liquidate (_trader) = { | |
1592 | + | let sync = invoke(this, "syncTerminalPriceToOracle", nil, nil) | |
1593 | + | if ((sync == sync)) | |
1594 | + | then { | |
1595 | + | let spotMarginRatio = getMarginRatioByOption(_trader, PNL_OPTION_SPOT) | |
1596 | + | let liquidationMarginRatio = if (isOverFluctuationLimit()) | |
1597 | + | then { | |
1598 | + | let oracleMarginRatio = getMarginRatioByOption(_trader, PNL_OPTION_ORACLE) | |
1599 | + | vmax(spotMarginRatio, oracleMarginRatio) | |
1600 | + | } | |
1601 | + | else spotMarginRatio | |
1602 | + | if (if (if (if (if (!(requireMoreMarginRatio(liquidationMarginRatio, maintenanceMarginRatio(), false))) | |
1603 | + | then true | |
1604 | + | else !(requireOpenPosition(_trader))) | |
1605 | + | then true | |
1606 | + | else !(initialized())) | |
1607 | + | then true | |
1608 | + | else paused()) | |
1609 | + | then true | |
1610 | + | else isMarketClosed()) | |
1611 | + | then throw("Unable to liquidate") | |
1612 | + | else { | |
1613 | + | let isPartialLiquidation = if (if ((spotMarginRatio > liquidationFeeRatio())) | |
1614 | + | then (partialLiquidationRatio() > 0) | |
1615 | + | else false) | |
1616 | + | then (DECIMAL_UNIT > partialLiquidationRatio()) | |
1617 | + | else false | |
1618 | + | let oldPositionSize = getPosition(_trader)._1 | |
1619 | + | let positionSizeAbs = abs(oldPositionSize) | |
1620 | + | let $t07394674269 = if (isPartialLiquidation) | |
1621 | + | then { | |
1622 | + | let liquidationSize = getPartialLiquidationAmount(_trader, oldPositionSize) | |
1623 | + | let liquidationRatio = divd(abs(liquidationSize), positionSizeAbs) | |
1624 | + | $Tuple2(liquidationRatio, abs(liquidationSize)) | |
1625 | + | } | |
1626 | + | else $Tuple2(0, positionSizeAbs) | |
1627 | + | let liquidationRatio = $t07394674269._1 | |
1628 | + | let liquidationSize = $t07394674269._2 | |
1629 | + | let $t07427574913 = internalClosePosition(_trader, if (isPartialLiquidation) | |
1630 | + | then liquidationSize | |
1631 | + | else positionSizeAbs, liquidationFeeRatio(), 0, true, false, true) | |
1632 | + | let newPositionSize = $t07427574913._1 | |
1633 | + | let newPositionMargin = $t07427574913._2 | |
1634 | + | let newPositionOpenNotional = $t07427574913._3 | |
1635 | + | let newPositionLstUpdCPF = $t07427574913._4 | |
1636 | + | let positionBadDebt = $t07427574913._5 | |
1637 | + | let realizedPnl = $t07427574913._6 | |
1638 | + | let marginToTrader = $t07427574913._7 | |
1639 | + | let quoteAssetReserveAfter = $t07427574913._8 | |
1640 | + | let baseAssetReserveAfter = $t07427574913._9 | |
1641 | + | let totalPositionSizeAfter = $t07427574913._10 | |
1642 | + | let openInterestNotionalAfter = $t07427574913._11 | |
1643 | + | let totalLongAfter = $t07427574913._12 | |
1644 | + | let totalShortAfter = $t07427574913._13 | |
1645 | + | let totalLongOpenInterestAfter = $t07427574913._14 | |
1646 | + | let totalShortOpenInterestAfter = $t07427574913._15 | |
1647 | + | let liquidationPenalty = $t07427574913._16 | |
1648 | + | let feeToLiquidator = (liquidationPenalty / 2) | |
1649 | + | let feeToVault = (liquidationPenalty - feeToLiquidator) | |
1650 | + | let ammBalance = (cbalance() - liquidationPenalty) | |
1651 | + | let newAmmBalance = if ((0 > ammBalance)) | |
1652 | + | then 0 | |
1653 | + | else ammBalance | |
1654 | + | let lockBadDebt = if ((positionBadDebt > 0)) | |
1655 | + | then { | |
1656 | + | let lockBadDebt = invoke(vaultAddress(), "exchangeFreeAndLocked", [(positionBadDebt + liquidationPenalty)], nil) | |
1657 | + | if ((lockBadDebt == lockBadDebt)) | |
1658 | + | then nil | |
1659 | + | else throw("Strict value is not equal to itself.") | |
1660 | + | } | |
1661 | + | else nil | |
1662 | + | if ((lockBadDebt == lockBadDebt)) | |
1663 | + | then { | |
1664 | + | let unstake = invoke(vaultAddress(), "withdrawLocked", [liquidationPenalty], nil) | |
1665 | + | if ((unstake == unstake)) | |
1666 | + | then { | |
1667 | + | let depositInsurance = invoke(vaultAddress(), "addFree", nil, [AttachedPayment(quoteAsset(), feeToVault)]) | |
1668 | + | if ((depositInsurance == depositInsurance)) | |
1669 | + | then { | |
1670 | + | let notifyNotional = invoke(minerAddress(), "notifyNotional", [_trader, newPositionOpenNotional], nil) | |
1671 | + | if ((notifyNotional == notifyNotional)) | |
1672 | + | then ((((if (isPartialLiquidation) | |
1673 | + | then updatePosition(_trader, newPositionSize, newPositionMargin, newPositionOpenNotional, newPositionLstUpdCPF, lastTimestamp()) | |
1674 | + | else deletePosition(_trader)) ++ updateAmm(quoteAssetReserveAfter, baseAssetReserveAfter, totalPositionSizeAfter, openInterestNotionalAfter, totalLongAfter, totalShortAfter, totalLongOpenInterestAfter, totalShortOpenInterestAfter)) ++ withdraw(i.caller, feeToLiquidator)) ++ updateBalance(newAmmBalance)) | |
1675 | + | else throw("Strict value is not equal to itself.") | |
1676 | + | } | |
1677 | + | else throw("Strict value is not equal to itself.") | |
1678 | + | } | |
1679 | + | else throw("Strict value is not equal to itself.") | |
1680 | + | } | |
1681 | + | else throw("Strict value is not equal to itself.") | |
1682 | + | } | |
1683 | + | } | |
1684 | + | else throw("Strict value is not equal to itself.") | |
1685 | + | } | |
1686 | + | ||
1687 | + | ||
1688 | + | ||
1689 | + | @Callable(i) | |
1690 | + | func payFunding () = { | |
1691 | + | let sync = invoke(this, "syncTerminalPriceToOracle", nil, nil) | |
1692 | + | if ((sync == sync)) | |
1693 | + | then { | |
1694 | + | let fundingBlockTimestamp = nextFundingBlockTimestamp() | |
1695 | + | if (if (if ((fundingBlockTimestamp > lastTimestamp())) | |
1696 | + | then true | |
1697 | + | else !(initialized())) | |
1698 | + | then true | |
1699 | + | else paused()) | |
1700 | + | then throw(((("Invalid funding block timestamp: " + toString(lastTimestamp())) + " < ") + toString(fundingBlockTimestamp))) | |
1701 | + | else { | |
1702 | + | let underlyingPrice = getOraclePrice() | |
1703 | + | let $t07690076962 = getFunding() | |
1704 | + | let shortPremiumFraction = $t07690076962._1 | |
1705 | + | let longPremiumFraction = $t07690076962._2 | |
1706 | + | updateFunding((fundingBlockTimestamp + fundingPeriodSeconds()), (latestLongCumulativePremiumFraction() + longPremiumFraction), (latestShortCumulativePremiumFraction() + shortPremiumFraction), divd(longPremiumFraction, underlyingPrice), divd(shortPremiumFraction, underlyingPrice)) | |
1707 | + | } | |
1708 | + | } | |
1709 | + | else throw("Strict value is not equal to itself.") | |
1710 | + | } | |
1711 | + | ||
1712 | + | ||
1713 | + | ||
1714 | + | @Callable(i) | |
1715 | + | func syncTerminalPriceToOracle () = { | |
1716 | + | let _qtAstR = qtAstR() | |
1717 | + | let _bsAstR = bsAstR() | |
1718 | + | let $t07739477760 = getSyncTerminalPrice(getOraclePrice(), _qtAstR, _bsAstR) | |
1719 | + | let newQuoteAssetWeight = $t07739477760._1 | |
1720 | + | let newBaseAssetWeight = $t07739477760._2 | |
1721 | + | let marginToVault = $t07739477760._3 | |
1722 | + | let marginToVaultAdj = if (if ((0 > marginToVault)) | |
1723 | + | then (abs(marginToVault) > cbalance()) | |
1724 | + | else false) | |
1725 | + | then -(cbalance()) | |
1726 | + | else marginToVault | |
1727 | + | let doExchangePnL = if ((marginToVaultAdj != 0)) | |
1728 | + | then { | |
1729 | + | let doExchangePnL = invoke(vaultAddress(), "exchangeFreeAndLocked", [marginToVaultAdj], nil) | |
1730 | + | if ((doExchangePnL == doExchangePnL)) | |
1731 | + | then nil | |
1732 | + | else throw("Strict value is not equal to itself.") | |
1733 | + | } | |
1734 | + | else nil | |
1735 | + | if ((doExchangePnL == doExchangePnL)) | |
1736 | + | then ((updateBalance((cbalance() + marginToVaultAdj)) ++ updateAmmWeights(newQuoteAssetWeight, newBaseAssetWeight)) ++ appendTwap(divd(muld(_qtAstR, newQuoteAssetWeight), muld(_bsAstR, newBaseAssetWeight)))) | |
1737 | + | else throw("Strict value is not equal to itself.") | |
1738 | + | } | |
1739 | + | ||
1740 | + | ||
1741 | + | ||
1742 | + | @Callable(i) | |
1743 | + | func ensureCalledOnce () = if ((i.caller != this)) | |
1744 | + | then throw("Invalid saveCurrentTxId parameters") | |
1745 | + | else { | |
1746 | + | let lastTx = valueOrElse(getString(this, k_lastTx), "") | |
1747 | + | if ((lastTx != toBase58String(i.transactionId))) | |
1748 | + | then [StringEntry(k_lastTx, lastTx)] | |
1749 | + | else throw("Can not call vAMM methods twice in one tx") | |
1750 | + | } | |
1751 | + | ||
1752 | + | ||
1753 | + | ||
1754 | + | @Callable(i) | |
1755 | + | func view_calcRemainMarginWithFundingPayment (_trader) = { | |
1756 | + | let sync = invoke(this, "syncTerminalPriceToOracle", nil, nil) | |
1757 | + | if ((sync == sync)) | |
1758 | + | then { | |
1759 | + | let $t07891979043 = getPosition(_trader) | |
1760 | + | let positionSize = $t07891979043._1 | |
1761 | + | let positionMargin = $t07891979043._2 | |
1762 | + | let pon = $t07891979043._3 | |
1763 | + | let positionLstUpdCPF = $t07891979043._4 | |
1764 | + | let positionTimestamp = $t07891979043._5 | |
1765 | + | let $t07904679147 = getPositionNotionalAndUnrealizedPnl(_trader, PNL_OPTION_SPOT) | |
1766 | + | let positionNotional = $t07904679147._1 | |
1767 | + | let unrealizedPnl = $t07904679147._2 | |
1768 | + | let $t07915079374 = calcRemainMarginWithFundingPaymentAndRolloverFee(positionSize, positionMargin, positionLstUpdCPF, positionTimestamp, unrealizedPnl) | |
1769 | + | let remainMargin = $t07915079374._1 | |
1770 | + | let badDebt = $t07915079374._2 | |
1771 | + | let fundingPayment = $t07915079374._3 | |
1772 | + | let rolloverFee = $t07915079374._4 | |
1773 | + | throw(((((((s(remainMargin) + s(fundingPayment)) + s(getMarginRatio(_trader))) + s(unrealizedPnl)) + s(badDebt)) + s(positionNotional)) + s(rolloverFee))) | |
1774 | + | } | |
1775 | + | else throw("Strict value is not equal to itself.") | |
1776 | + | } | |
1777 | + | ||
1778 | + | ||
1779 | + | ||
1780 | + | @Callable(i) | |
1781 | + | func view_getPegAdjustCost (_price) = { | |
1782 | + | let _qtAstR = qtAstR() | |
1783 | + | let _bsAstR = bsAstR() | |
1784 | + | let result = getSyncTerminalPrice(_price, _qtAstR, _bsAstR) | |
1785 | + | throw(toString(result._3)) | |
1786 | + | } | |
1787 | + | ||
1788 | + | ||
1789 | + | ||
1790 | + | @Callable(i) | |
1791 | + | func view_getTerminalAmmPrice () = { | |
1792 | + | let $t07981079891 = getTerminalAmmState() | |
1793 | + | let terminalQuoteAssetReserve = $t07981079891._1 | |
1794 | + | let terminalBaseAssetReserve = $t07981079891._2 | |
1795 | + | let price = divd(muld(terminalQuoteAssetReserve, qtAstW()), muld(terminalBaseAssetReserve, bsAstW())) | |
1796 | + | throw(toString(price)) | |
1797 | + | } | |
1798 | + | ||
1799 | + | ||
1800 | + | ||
1801 | + | @Callable(i) | |
1802 | + | func view_getFunding () = { | |
1803 | + | let underlyingPrice = getOraclePrice() | |
1804 | + | let $t08010680168 = getFunding() | |
1805 | + | let shortPremiumFraction = $t08010680168._1 | |
1806 | + | let longPremiumFraction = $t08010680168._2 | |
1807 | + | let longFunding = divd(longPremiumFraction, underlyingPrice) | |
1808 | + | let shortFunding = divd(shortPremiumFraction, underlyingPrice) | |
1809 | + | throw((((s(longFunding) + s(shortFunding)) + s(getTwapSpotPrice())) + s(getOraclePrice()))) | |
1810 | + | } | |
1811 | + | ||
1812 | + | ||
1813 | + | ||
1814 | + | @Callable(i) | |
1815 | + | func computeSpotPrice () = { | |
1816 | + | let sync = invoke(this, "syncTerminalPriceToOracle", nil, nil) | |
1817 | + | if ((sync == sync)) | |
1818 | + | then { | |
1819 | + | let result = getSpotPrice() | |
1820 | + | $Tuple2(nil, result) | |
1821 | + | } | |
1822 | + | else throw("Strict value is not equal to itself.") | |
1823 | + | } | |
1824 | + | ||
1825 | + | ||
1826 | + | ||
1827 | + | @Callable(i) | |
1828 | + | func computeFeeForTraderWithArtifact (_trader,_artifactId) = { | |
1829 | + | let result = getForTraderWithArtifact(_trader, _artifactId) | |
1830 | + | $Tuple2(nil, result) | |
1831 | + | } | |
1832 | + | ||
1833 | + | ||
1834 | + | @Verifier(tx) | |
1835 | + | func verify () = { | |
1836 | + | let coordinatorStr = getString(this, k_coordinatorAddress) | |
1837 | + | if (isDefined(coordinatorStr)) | |
1838 | + | then { | |
1839 | + | let admin = getString(addressFromStringValue(value(coordinatorStr)), k_admin_address) | |
1840 | + | if (isDefined(admin)) | |
1841 | + | then valueOrElse(getBoolean(addressFromStringValue(value(admin)), ((("status_" + toString(this)) + "_") + toBase58String(tx.id))), false) | |
1842 | + | else throw("unable to verify: admin not set in coordinator") | |
1843 | + | } | |
1844 | + | else sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) | |
1845 | + | } | |
1846 | + |
github/deemru/w8io/169f3d6 79.83 ms ◑