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