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