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