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