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