tx · 2YZMot6ZLQn18vcwFQwqkJcrB2xpqvaro4PeBuZEgEbv

3NBH3LGg2DsaEtyBr495XEdaFuiLYSNyr3k:  -0.05100000 Waves

2022.08.03 12:28 [2168124] smart account 3NBH3LGg2DsaEtyBr495XEdaFuiLYSNyr3k > SELF 0.00000000 Waves

{ "type": 13, "id": "2YZMot6ZLQn18vcwFQwqkJcrB2xpqvaro4PeBuZEgEbv", "fee": 5100000, "feeAssetId": null, "timestamp": 1659518900837, "version": 2, "chainId": 84, "sender": "3NBH3LGg2DsaEtyBr495XEdaFuiLYSNyr3k", "senderPublicKey": "6rHNfG82m33YnDLzeMuCFn5XNvbNwGhR4ovSFhgJvbxP", "proofs": [ "Zh66JKNtNrB4nASGMD28acrxSpDrvoHjd6E9zXrJVnU8MEakKBiSV1LiuJbNcrrwoBJWfEZeT2U1dcESPGeVFa4" ], "script": "base64:BgJPCAISABIAEgkKBwEBAQEBAQESDgoMAQEBAQEBAQgICAEBEgUKAwEBARIFCgMBAQESABIDCgEBEgASAwoBCBIAEgMKAQgSAwoBCBIECgIIAXgACWtfb3JhX2tleQIJa19vcmFfa2V5AA9rX29yYV9ibG9ja19rZXkCD2tfb3JhX2Jsb2NrX2tleQAFa19vcmECBWtfb3JhAAlrX2JhbGFuY2UCCWtfYmFsYW5jZQAOa19wb3NpdGlvblNpemUCDmtfcG9zaXRpb25TaXplABBrX3Bvc2l0aW9uTWFyZ2luAhBrX3Bvc2l0aW9uTWFyZ2luABZrX3Bvc2l0aW9uT3Blbk5vdGlvbmFsAhZrX3Bvc2l0aW9uT3Blbk5vdGlvbmFsAC5rX3Bvc2l0aW9uTGFzdFVwZGF0ZWRDdW11bGF0aXZlUHJlbWl1bUZyYWN0aW9uAhJrX3Bvc2l0aW9uRnJhY3Rpb24ADWtfaW5pdGlhbGl6ZWQCDWtfaW5pdGlhbGl6ZWQACGtfcGF1c2VkAghrX3BhdXNlZAAFa19mZWUCBWtfZmVlAA9rX2Z1bmRpbmdQZXJpb2Q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JAMwIAgkA2AQBCQEKcXVvdGVBc3NldAAFA25pbAUDbmlsAwkAAAIFB3Vuc3Rha2UFB3Vuc3Rha2UJAM4IAgkBCHdpdGhkcmF3AgkBEUBleHRyTmF0aXZlKDEwNjIpAQUHX3RyYWRlcgUHX2Ftb3VudAkBDXVwZGF0ZUJhbGFuY2UBCQBlAgkBCGNiYWxhbmNlAAUHX2Ftb3VudAkAAgECJFN0cmljdCB2YWx1ZSBpcyBub3QgZXF1YWwgdG8gaXRzZWxmLgECdHgBBnZlcmlmeQAJAPQDAwgFAnR4CWJvZHlCeXRlcwkAkQMCCAUCdHgGcHJvb2ZzAAAJAQ5hZG1pblB1YmxpY0tleQCD1+UI", "height": 2168124, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: FrE3mWfFPuswBQTHkzU7hQhMeDbPitpQJ8TwmbBpcWzH Next: 5ixotgNUPBZphgERR1UQrbRe4rTLTjGuD1hMEgZShq6A Full:
OldNewDifferences
11 {-# STDLIB_VERSION 6 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 let k_ora_key = "k_ora_key"
55
66 let k_ora_block_key = "k_ora_block_key"
77
88 let k_ora = "k_ora"
99
1010 let k_balance = "k_balance"
1111
1212 let k_positionSize = "k_positionSize"
1313
1414 let k_positionMargin = "k_positionMargin"
1515
1616 let k_positionOpenNotional = "k_positionOpenNotional"
1717
1818 let k_positionLastUpdatedCumulativePremiumFraction = "k_positionFraction"
1919
2020 let k_initialized = "k_initialized"
2121
2222 let k_paused = "k_paused"
2323
2424 let k_fee = "k_fee"
2525
2626 let k_fundingPeriod = "k_fundingPeriod"
2727
2828 let k_initMarginRatio = "k_initMarginRatio"
2929
3030 let k_maintenanceMarginRatio = "k_mmr"
3131
3232 let k_liquidationFeeRatio = "k_liquidationFeeRatio"
3333
3434 let k_spreadLimit = "k_spreadLimit"
3535
3636 let k_maxPriceImpact = "k_maxPriceImpact"
3737
3838 let k_lastDataStr = "k_lastDataStr"
3939
4040 let k_lastMinuteId = "k_lastMinuteId"
4141
4242 let k_twapDataLastCumulativePrice = "k_twapDataLastCumulativePrice"
4343
4444 let k_twapDataLastPrice = "k_twapDataLastPrice"
4545
4646 let k_twapDataPreviousMinuteId = "k_twapDataPreviousMinuteId"
4747
4848 let k_latestLongCumulativePremiumFraction = "k_latestLongPremiumFraction"
4949
5050 let k_latestShortCumulativePremiumFraction = "k_latestShortPremiumFraction"
5151
5252 let k_nextFundingBlock = "k_nextFundingBlockMinTimestamp"
5353
5454 let k_longFundingRate = "k_longFundingRate"
5555
5656 let k_shortFundingRate = "k_shortFundingRate"
5757
5858 let k_quoteAssetReserve = "k_qtAstR"
5959
6060 let k_baseAssetReserve = "k_bsAstR"
6161
6262 let k_totalPositionSize = "k_totalPositionSize"
6363
6464 let k_totalLongPositionSize = "k_totalLongPositionSize"
6565
6666 let k_totalShortPositionSize = "k_totalShortPositionSize"
6767
6868 let k_cumulativeNotional = "k_cumulativeNotional"
6969
7070 let k_openInterestNotional = "k_openInterestNotional"
7171
7272 let k_coordinatorAddress = "k_coordinatorAddress"
7373
7474 let k_insurance_address = "k_insurance_address"
7575
7676 let k_admin_address = "k_admin_address"
7777
7878 let k_admin_public_key = "k_admin_public_key"
7979
8080 let k_quote_asset = "k_quote_asset"
8181
8282 let k_quote_staking = "k_quote_staking"
8383
8484 let k_staking_address = "k_staking_address"
8585
8686 let k_miner_address = "k_miner_address"
8787
8888 func coordinator () = valueOrErrorMessage(addressFromString(getStringValue(this, k_coordinatorAddress)), "Coordinator not set")
8989
9090
9191 func adminAddress () = addressFromString(getStringValue(coordinator(), k_admin_address))
9292
9393
9494 func adminPublicKey () = fromBase58String(getStringValue(coordinator(), k_admin_public_key))
9595
9696
9797 func quoteAsset () = fromBase58String(getStringValue(coordinator(), k_quote_asset))
9898
9999
100100 func quoteAssetStaking () = valueOrErrorMessage(addressFromString(getStringValue(coordinator(), k_quote_staking)), "Quote asset staking not set")
101101
102102
103103 func stakingAddress () = valueOrErrorMessage(addressFromString(getStringValue(coordinator(), k_staking_address)), "Insurance not set")
104104
105105
106106 func insuranceAddress () = valueOrErrorMessage(addressFromString(getStringValue(coordinator(), k_insurance_address)), "Insurance not set")
107107
108108
109109 func minerAddress () = valueOrErrorMessage(addressFromString(getStringValue(coordinator(), k_miner_address)), "Insurance not set")
110110
111111
112112 let DIR_LONG = 1
113113
114114 let DIR_SHORT = 2
115115
116116 let FUNDING_BLOCK_INTERVAL = 60
117117
118118 let TWAP_INTERVAL = 15
119119
120120 let ORACLE_INTERVAL = 15
121121
122122 let SECONDS = 1000
123123
124124 let DECIMAL_UNIT = (1 * (((((10 * 10) * 10) * 10) * 10) * 10))
125125
126126 let HUNDRED_PERCENT = (100 * DECIMAL_UNIT)
127127
128128 let ONE_DAY = (86400 * DECIMAL_UNIT)
129129
130130 let ALL_FEES = 100
131131
132132 let PNL_OPTION_SPOT = 1
133133
134134 let PNL_OPTION_ORACLE = 2
135135
136136 func s (_x) = (toString(_x) + ",")
137137
138138
139139 func divd (_x,_y) = fraction(_x, DECIMAL_UNIT, _y, HALFEVEN)
140140
141141
142142 func muld (_x,_y) = fraction(_x, _y, DECIMAL_UNIT, HALFEVEN)
143143
144144
145145 func abs (_x) = if ((_x > 0))
146146 then _x
147147 else -(_x)
148148
149149
150150 func vmax (_x,_y) = if ((_x >= _y))
151151 then _x
152152 else _y
153153
154154
155155 func toCompositeKey (_key,_address) = ((_key + "_") + _address)
156156
157157
158158 func listToStr (_list) = {
159159 func _join (accumulator,val) = ((accumulator + val) + ",")
160160
161161 let newListStr = {
162162 let $l = _list
163163 let $s = size($l)
164164 let $acc0 = ""
165165 func $f0_1 ($a,$i) = if (($i >= $s))
166166 then $a
167167 else _join($a, $l[$i])
168168
169169 func $f0_2 ($a,$i) = if (($i >= $s))
170170 then $a
171171 else throw("List size exceeds 20")
172172
173173 $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)
174174 }
175175 let newListStrU = dropRight(newListStr, 1)
176176 let newListStrR = if ((take(newListStrU, 1) == ","))
177177 then drop(newListStrU, 1)
178178 else newListStrU
179179 newListStrR
180180 }
181181
182182
183183 func strToList (_str) = split(_str, ",")
184184
185185
186186 func pushToQueue (_list,_maxSize,_value) = if ((size(_list) > _maxSize))
187187 then (removeByIndex(_list, 0) :+ _value)
188188 else (_list :+ _value)
189189
190190
191191 func int (k) = valueOrErrorMessage(getInteger(this, k), ("no value for " + k))
192192
193193
194194 func cbalance () = int(k_balance)
195195
196196
197197 func fee () = int(k_fee)
198198
199199
200200 func initMarginRatio () = int(k_initMarginRatio)
201201
202202
203203 func qtAstR () = int(k_quoteAssetReserve)
204204
205205
206206 func bsAstR () = int(k_baseAssetReserve)
207207
208208
209209 func totalPositionSize () = int(k_totalPositionSize)
210210
211211
212212 func cumulativeNotional () = int(k_cumulativeNotional)
213213
214214
215215 func openInterestNotional () = int(k_openInterestNotional)
216216
217217
218218 func nextFundingBlockTimestamp () = int(k_nextFundingBlock)
219219
220220
221221 func fundingPeriodRaw () = int(k_fundingPeriod)
222222
223223
224224 func fundingPeriodDecimal () = (fundingPeriodRaw() * DECIMAL_UNIT)
225225
226226
227227 func fundingPeriodSeconds () = (fundingPeriodRaw() * SECONDS)
228228
229229
230230 func maintenanceMarginRatio () = int(k_maintenanceMarginRatio)
231231
232232
233233 func liquidationFeeRatio () = int(k_liquidationFeeRatio)
234234
235235
236236 func spreadLimit () = int(k_spreadLimit)
237237
238238
239239 func maxPriceImpact () = int(k_maxPriceImpact)
240240
241241
242242 func latestLongCumulativePremiumFraction () = int(k_latestLongCumulativePremiumFraction)
243243
244244
245245 func latestShortCumulativePremiumFraction () = int(k_latestShortCumulativePremiumFraction)
246246
247247
248248 func totalShortPositionSize () = int(k_totalShortPositionSize)
249249
250250
251251 func totalLongPositionSize () = int(k_totalLongPositionSize)
252252
253253
254254 func requireMoreMarginRatio (_marginRatio,_baseMarginRatio,_largerThanOrEqualTo) = {
255255 let remainingMarginRatio = (_marginRatio - _baseMarginRatio)
256256 if (if (_largerThanOrEqualTo)
257257 then (0 > remainingMarginRatio)
258258 else false)
259259 then throw("Invalid margin")
260260 else if (if (!(_largerThanOrEqualTo))
261261 then (remainingMarginRatio >= 0)
262262 else false)
263263 then throw("Invalid margin")
264264 else true
265265 }
266266
267267
268268 func latestCumulativePremiumFraction (_positionSize) = if ((_positionSize == 0))
269269 then throw("Should not be called with _positionSize == 0")
270270 else if ((_positionSize > 0))
271271 then latestLongCumulativePremiumFraction()
272272 else latestShortCumulativePremiumFraction()
273273
274274
275275 func getPosition (_trader) = {
276276 let positionSizeOpt = getInteger(this, toCompositeKey(k_positionSize, _trader))
277277 match positionSizeOpt {
278278 case positionSize: Int =>
279279 $Tuple4(positionSize, getIntegerValue(this, toCompositeKey(k_positionMargin, _trader)), getIntegerValue(this, toCompositeKey(k_positionOpenNotional, _trader)), getIntegerValue(this, toCompositeKey(k_positionLastUpdatedCumulativePremiumFraction, _trader)))
280280 case _ =>
281281 $Tuple4(0, 0, 0, 0)
282282 }
283283 }
284284
285285
286286 func requireOpenPosition (_trader) = if ((getPosition(_trader)._1 == 0))
287287 then throw("No open position")
288288 else true
289289
290290
291291 func initialized () = valueOrElse(getBoolean(this, k_initialized), false)
292292
293293
294294 func paused () = valueOrElse(getBoolean(this, k_paused), false)
295295
296296
297297 func updateReserve (_isAdd,_quoteAssetAmount,_baseAssetAmount) = if (_isAdd)
298298 then {
299299 let newBase = (bsAstR() - _baseAssetAmount)
300300 if ((0 >= newBase))
301301 then throw("Tx lead to base asset reserve <= 0, revert")
302302 else $Tuple4((qtAstR() + _quoteAssetAmount), newBase, (totalPositionSize() + _baseAssetAmount), (cumulativeNotional() + _quoteAssetAmount))
303303 }
304304 else {
305305 let newQuote = (qtAstR() - _quoteAssetAmount)
306306 if ((0 >= newQuote))
307307 then throw("Tx lead to base quote reserve <= 0, revert")
308308 else $Tuple4(newQuote, (bsAstR() + _baseAssetAmount), (totalPositionSize() - _baseAssetAmount), (cumulativeNotional() - _quoteAssetAmount))
309309 }
310310
311311
312312 func swapInput (_isAdd,_quoteAssetAmount) = {
313313 let _qtAstR = qtAstR()
314314 let _bsAstR = bsAstR()
315315 let priceBefore = divd(_qtAstR, _bsAstR)
316316 let amountBaseAssetBoughtWithoutPriceImpact = muld(_quoteAssetAmount, priceBefore)
317317 let k = muld(_qtAstR, _bsAstR)
318318 let quoteAssetReserveAfter = if (_isAdd)
319319 then (_qtAstR + _quoteAssetAmount)
320320 else (_qtAstR - _quoteAssetAmount)
321321 let baseAssetReserveAfter = divd(k, quoteAssetReserveAfter)
322322 let amountBaseAssetBoughtAbs = abs((baseAssetReserveAfter - _bsAstR))
323323 let amountBaseAssetBought = if (_isAdd)
324324 then amountBaseAssetBoughtAbs
325325 else -(amountBaseAssetBoughtAbs)
326326 let priceImpact = ((amountBaseAssetBoughtWithoutPriceImpact - amountBaseAssetBoughtAbs) / amountBaseAssetBoughtWithoutPriceImpact)
327327 let maxPriceImpactValue = maxPriceImpact()
328328 if ((priceImpact > maxPriceImpactValue))
329329 then throw(((("Price impact " + toString(priceImpact)) + " > max price impact ") + toString(maxPriceImpactValue)))
330330 else {
331331 let $t01236812571 = updateReserve(_isAdd, _quoteAssetAmount, amountBaseAssetBoughtAbs)
332332 let quoteAssetReserveAfter1 = $t01236812571._1
333333 let baseAssetReserveAfter1 = $t01236812571._2
334334 let totalPositionSizeAfter1 = $t01236812571._3
335335 let cumulativeNotionalAfter1 = $t01236812571._4
336336 $Tuple5(amountBaseAssetBought, quoteAssetReserveAfter1, baseAssetReserveAfter1, totalPositionSizeAfter1, cumulativeNotionalAfter1)
337337 }
338338 }
339339
340340
341341 func calcRemainMarginWithFundingPayment (_oldPositionSize,_oldPositionMargin,_oldPositionCumulativePremiumFraction,_marginDelta) = {
342342 let fundingPayment = if ((_oldPositionSize != 0))
343343 then {
344344 let _latestCumulativePremiumFraction = latestCumulativePremiumFraction(_oldPositionSize)
345345 muld((_latestCumulativePremiumFraction - _oldPositionCumulativePremiumFraction), _oldPositionSize)
346346 }
347347 else 0
348348 let signedMargin = ((_marginDelta - fundingPayment) + _oldPositionMargin)
349349 let $t01331813445 = if ((0 > signedMargin))
350350 then $Tuple2(0, abs(signedMargin))
351351 else $Tuple2(abs(signedMargin), 0)
352352 let remainMargin = $t01331813445._1
353353 let badDebt = $t01331813445._2
354354 $Tuple3(remainMargin, badDebt, fundingPayment)
355355 }
356356
357357
358358 func swapOutput (_isAdd,_baseAssetAmount) = {
359359 let _quoteAssetReserve = qtAstR()
360360 let _baseAssetReserve = bsAstR()
361361 if ((_baseAssetAmount == 0))
362362 then throw("Invalid base asset amount")
363363 else {
364364 let k = muld(_quoteAssetReserve, _baseAssetReserve)
365365 let baseAssetPoolAmountAfter = if (_isAdd)
366366 then (_baseAssetReserve + _baseAssetAmount)
367367 else (_baseAssetReserve - _baseAssetAmount)
368368 let quoteAssetAfter = divd(k, baseAssetPoolAmountAfter)
369369 let quoteAssetSold = abs((quoteAssetAfter - _quoteAssetReserve))
370370 let $t01428314476 = updateReserve(!(_isAdd), quoteAssetSold, _baseAssetAmount)
371371 let quoteAssetReserveAfter1 = $t01428314476._1
372372 let baseAssetReserveAfter1 = $t01428314476._2
373373 let totalPositionSizeAfter1 = $t01428314476._3
374374 let cumulativeNotionalAfter1 = $t01428314476._4
375375 $Tuple7(quoteAssetSold, quoteAssetReserveAfter1, baseAssetReserveAfter1, totalPositionSizeAfter1, cumulativeNotionalAfter1, (totalLongPositionSize() - (if (_isAdd)
376376 then abs(_baseAssetAmount)
377377 else 0)), (totalShortPositionSize() - (if (!(_isAdd))
378378 then abs(_baseAssetAmount)
379379 else 0)))
380380 }
381381 }
382382
383383
384384 func getOracleTwapPrice () = {
385385 let oracle = valueOrErrorMessage(addressFromString(getStringValue(this, k_ora)), "")
386386 let priceKey = getStringValue(this, k_ora_key)
387387 let blockKey = getStringValue(this, k_ora_block_key)
388388 let lastValue = getIntegerValue(oracle, priceKey)
389389 lastValue
390390 }
391391
392392
393393 func getSpotPrice () = {
394394 let _quoteAssetReserve = qtAstR()
395395 let _baseAssetReserve = bsAstR()
396396 divd(_quoteAssetReserve, _baseAssetReserve)
397397 }
398398
399399
400400 func isOverFluctuationLimit () = {
401401 let oraclePrice = getOracleTwapPrice()
402402 let currentPrice = getSpotPrice()
403403 (divd(abs((oraclePrice - currentPrice)), oraclePrice) > spreadLimit())
404404 }
405405
406406
407407 func getPositionNotionalAndUnrealizedPnl (_trader,_option) = {
408408 let $t01610816236 = getPosition(_trader)
409409 let positionSize = $t01610816236._1
410410 let positionMargin = $t01610816236._2
411411 let positionOpenNotional = $t01610816236._3
412412 let positionLstUpdCPF = $t01610816236._4
413413 let positionSizeAbs = abs(positionSize)
414414 if ((positionSizeAbs == 0))
415415 then throw("Invalid position size")
416416 else {
417417 let isShort = (0 > positionSize)
418418 let positionNotional = if ((_option == PNL_OPTION_SPOT))
419419 then {
420420 let $t01648316590 = swapOutput(!(isShort), positionSizeAbs)
421421 let outPositionNotional = $t01648316590._1
422422 let x1 = $t01648316590._2
423423 let x2 = $t01648316590._3
424424 let x3 = $t01648316590._4
425425 outPositionNotional
426426 }
427427 else muld(positionSizeAbs, getOracleTwapPrice())
428428 let unrealizedPnl = if (isShort)
429429 then (positionOpenNotional - positionNotional)
430430 else (positionNotional - positionOpenNotional)
431431 $Tuple2(positionNotional, unrealizedPnl)
432432 }
433433 }
434434
435435
436436 func calcMarginRatio (_remainMargin,_badDebt,_positionNotional) = divd((_remainMargin - _badDebt), _positionNotional)
437437
438438
439439 func getMarginRatioByOption (_trader,_option) = {
440440 let $t01726017371 = getPosition(_trader)
441441 let positionSize = $t01726017371._1
442442 let positionMargin = $t01726017371._2
443443 let pon = $t01726017371._3
444444 let positionLstUpdCPF = $t01726017371._4
445445 let $t01737717470 = getPositionNotionalAndUnrealizedPnl(_trader, _option)
446446 let positionNotional = $t01737717470._1
447447 let unrealizedPnl = $t01737717470._2
448448 let $t01747517641 = calcRemainMarginWithFundingPayment(positionSize, positionMargin, positionLstUpdCPF, unrealizedPnl)
449449 let remainMargin = $t01747517641._1
450450 let badDebt = $t01747517641._2
451451 calcMarginRatio(remainMargin, badDebt, positionNotional)
452452 }
453453
454454
455455 func getMarginRatio (_trader) = getMarginRatioByOption(_trader, PNL_OPTION_SPOT)
456456
457457
458458 func internalClosePosition (_trader) = {
459459 let $t01795718085 = getPosition(_trader)
460460 let positionSize = $t01795718085._1
461461 let positionMargin = $t01795718085._2
462462 let positionOpenNotional = $t01795718085._3
463463 let positionLstUpdCPF = $t01795718085._4
464464 let $t01809118178 = getPositionNotionalAndUnrealizedPnl(_trader, PNL_OPTION_SPOT)
465465 let x1 = $t01809118178._1
466466 let unrealizedPnl = $t01809118178._2
467467 let $t01818318351 = calcRemainMarginWithFundingPayment(positionSize, positionMargin, positionLstUpdCPF, unrealizedPnl)
468468 let remainMargin = $t01818318351._1
469469 let badDebt = $t01818318351._2
470470 let exchangedPositionSize = -(positionSize)
471471 let realizedPnl = unrealizedPnl
472472 let marginToVault = -(remainMargin)
473473 let $t01847818759 = swapOutput((positionSize > 0), abs(positionSize))
474474 let exchangedQuoteAssetAmount = $t01847818759._1
475475 let quoteAssetReserveAfter = $t01847818759._2
476476 let baseAssetReserveAfter = $t01847818759._3
477477 let totalPositionSizeAfter = $t01847818759._4
478478 let cumulativeNotionalAfter = $t01847818759._5
479479 let totalLongAfter = $t01847818759._6
480480 let totalShortAfter = $t01847818759._7
481481 let openInterestNotionalAfter = (openInterestNotional() - positionOpenNotional)
482482 $Tuple12(exchangedPositionSize, badDebt, realizedPnl, marginToVault, quoteAssetReserveAfter, baseAssetReserveAfter, totalPositionSizeAfter, cumulativeNotionalAfter, openInterestNotionalAfter, exchangedQuoteAssetAmount, totalLongAfter, totalShortAfter)
483483 }
484484
485485
486486 func getTwapSpotPrice () = {
487487 let minuteId = ((lastBlock.timestamp / 1000) / 60)
488488 let startMinuteId = (minuteId - TWAP_INTERVAL)
489489 let listStr = valueOrElse(getString(this, k_lastDataStr), "")
490490 let list = split(listStr, ",")
491491 func filterFn (accumulator,next) = if ((startMinuteId >= parseIntValue(next)))
492492 then (accumulator :+ parseIntValue(next))
493493 else accumulator
494494
495495 let listF = {
496496 let $l = list
497497 let $s = size($l)
498498 let $acc0 = nil
499499 func $f0_1 ($a,$i) = if (($i >= $s))
500500 then $a
501501 else filterFn($a, $l[$i])
502502
503503 func $f0_2 ($a,$i) = if (($i >= $s))
504504 then $a
505505 else throw("List size exceeds 20")
506506
507507 $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)
508508 }
509509 let maxIndex = if ((size(listF) > 0))
510510 then max(listF)
511511 else parseIntValue(list[0])
512512 let lastMinuteId = valueOrElse(getInteger(this, k_lastMinuteId), 0)
513513 let endLastCumulativePrice = valueOrElse(getInteger(this, ((k_twapDataLastCumulativePrice + "_") + toString(lastMinuteId))), 0)
514514 let endLastPrice = valueOrElse(getInteger(this, ((k_twapDataLastPrice + "_") + toString(lastMinuteId))), 0)
515515 let nowCumulativePrice = (endLastCumulativePrice + ((minuteId - lastMinuteId) * endLastPrice))
516516 let startLastCumulativePrice = valueOrElse(getInteger(this, ((k_twapDataLastCumulativePrice + "_") + toString(maxIndex))), 0)
517517 let startLastPrice = valueOrElse(getInteger(this, ((k_twapDataLastPrice + "_") + toString(maxIndex))), 0)
518518 let startCumulativePrice = (startLastCumulativePrice + ((startMinuteId - maxIndex) * startLastPrice))
519519 ((nowCumulativePrice - startCumulativePrice) / TWAP_INTERVAL)
520520 }
521521
522522
523523 func updateSettings (_initMarginRatio,_mmr,_liquidationFeeRatio,_fundingPeriod,_fee,_spreadLimit,_maxPriceImpact) = [IntegerEntry(k_initMarginRatio, _initMarginRatio), IntegerEntry(k_maintenanceMarginRatio, _mmr), IntegerEntry(k_liquidationFeeRatio, _liquidationFeeRatio), IntegerEntry(k_fundingPeriod, _fundingPeriod), IntegerEntry(k_fee, _fee), IntegerEntry(k_spreadLimit, _spreadLimit), IntegerEntry(k_maxPriceImpact, _maxPriceImpact)]
524524
525525
526526 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)]
527527
528528
529529 func updatePosition (_address,_size,_margin,_openNotional,_latestCumulativePremiumFraction) = [IntegerEntry(toCompositeKey(k_positionSize, _address), _size), IntegerEntry(toCompositeKey(k_positionMargin, _address), _margin), IntegerEntry(toCompositeKey(k_positionOpenNotional, _address), _openNotional), IntegerEntry(toCompositeKey(k_positionLastUpdatedCumulativePremiumFraction, _address), _latestCumulativePremiumFraction)]
530530
531531
532532 func appendTwap (price) = {
533533 let minuteId = ((lastBlock.timestamp / 1000) / 60)
534534 let previousMinuteId = valueOrElse(getInteger(this, k_lastMinuteId), 0)
535535 if ((previousMinuteId > minuteId))
536536 then throw("TWAP out-of-order")
537537 else {
538538 let lastMinuteId = if ((previousMinuteId == 0))
539539 then minuteId
540540 else previousMinuteId
541541 if ((minuteId > previousMinuteId))
542542 then {
543543 let prevCumulativePrice = valueOrElse(getInteger(this, ((k_twapDataLastCumulativePrice + "_") + toString(previousMinuteId))), 0)
544544 let prevPrice = valueOrElse(getInteger(this, ((k_twapDataLastPrice + "_") + toString(previousMinuteId))), price)
545545 let lastCumulativePrice = (prevCumulativePrice + ((minuteId - lastMinuteId) * prevPrice))
546546 let list = pushToQueue(strToList(valueOrElse(getString(this, k_lastDataStr), "")), TWAP_INTERVAL, toString(minuteId))
547547 [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))]
548548 }
549549 else {
550550 let twapDataPreviousMinuteId = valueOrElse(getInteger(this, toCompositeKey(k_twapDataPreviousMinuteId, toString(minuteId))), 0)
551551 let prevCumulativePrice = valueOrElse(getInteger(this, toCompositeKey(k_twapDataLastCumulativePrice, toString(twapDataPreviousMinuteId))), 0)
552552 let prevPrice = valueOrElse(getInteger(this, toCompositeKey(k_twapDataLastPrice, toString(twapDataPreviousMinuteId))), price)
553553 let lastCumulativePrice = (prevCumulativePrice + ((minuteId - twapDataPreviousMinuteId) * prevPrice))
554554 [IntegerEntry(toCompositeKey(k_twapDataLastCumulativePrice, toString(minuteId)), lastCumulativePrice), IntegerEntry(toCompositeKey(k_twapDataLastPrice, toString(minuteId)), price)]
555555 }
556556 }
557557 }
558558
559559
560560 func updateAmm (_qtAstR,_bsAstR,_totalPositionSizeAfter,_cumulativeNotionalAfter,_openInterestNotional,_totalLongPositionSize,_totalShortPositionSize) = if (((_totalLongPositionSize - _totalShortPositionSize) != _totalPositionSizeAfter))
561561 then throw(((((("Invalid AMM state data: " + toString(_totalLongPositionSize)) + " + ") + toString(_totalShortPositionSize)) + " != ") + toString(_totalPositionSizeAfter)))
562562 else ([IntegerEntry(k_quoteAssetReserve, _qtAstR), IntegerEntry(k_baseAssetReserve, _bsAstR), IntegerEntry(k_totalPositionSize, _totalPositionSizeAfter), IntegerEntry(k_cumulativeNotional, _cumulativeNotionalAfter), IntegerEntry(k_openInterestNotional, _openInterestNotional), IntegerEntry(k_totalLongPositionSize, _totalLongPositionSize), IntegerEntry(k_totalShortPositionSize, _totalShortPositionSize)] ++ appendTwap(divd(_qtAstR, _bsAstR)))
563563
564564
565565 func deletePosition (_address) = [DeleteEntry(toCompositeKey(k_positionSize, _address)), DeleteEntry(toCompositeKey(k_positionMargin, _address)), DeleteEntry(toCompositeKey(k_positionOpenNotional, _address)), DeleteEntry(toCompositeKey(k_positionLastUpdatedCumulativePremiumFraction, _address))]
566566
567567
568568 func withdraw (_address,_amount) = {
569569 let balance = assetBalance(this, quoteAsset())
570570 if ((_amount > balance))
571571 then throw(((("Unable to withdraw " + toString(_amount)) + " from contract balance ") + toString(balance)))
572572 else [ScriptTransfer(_address, _amount, quoteAsset())]
573573 }
574574
575575
576576 func updateBalance (i) = if ((0 > i))
577577 then throw("Balance")
578578 else [IntegerEntry(k_balance, i)]
579579
580580
581581 func transferFee (i) = [ScriptTransfer(stakingAddress(), i, quoteAsset())]
582582
583583
584584 @Callable(i)
585585 func pause () = if ((i.caller != adminAddress()))
586586 then throw("Invalid togglePause params")
587587 else [BooleanEntry(k_paused, true)]
588588
589589
590590
591591 @Callable(i)
592592 func unpause () = if ((i.caller != adminAddress()))
593593 then throw("Invalid togglePause params")
594594 else [BooleanEntry(k_paused, false)]
595595
596596
597597
598598 @Callable(i)
599599 func changeSettings (_initMarginRatio,_mmr,_liquidationFeeRatio,_fundingPeriod,_fee,_spreadLimit,_maxPriceImpact) = if ((i.caller != adminAddress()))
600600 then throw("Invalid changeSettings params")
601601 else updateSettings(_initMarginRatio, _mmr, _liquidationFeeRatio, _fundingPeriod, _fee, _spreadLimit, _maxPriceImpact)
602602
603603
604604
605605 @Callable(i)
606606 func initialize (_qtAstR,_bsAstR,_fundingPeriod,_initMarginRatio,_mmr,_liquidationFeeRatio,_fee,_oracle,_oracleKey,_coordinator,_spreadLimit,_maxPriceImpact) = if (if (if (if (if (if (if (if (if (if ((0 >= _qtAstR))
607607 then true
608608 else (0 >= _bsAstR))
609609 then true
610610 else (0 >= _fundingPeriod))
611611 then true
612612 else (0 >= _initMarginRatio))
613613 then true
614614 else (0 >= _mmr))
615615 then true
616616 else (0 >= _liquidationFeeRatio))
617617 then true
618618 else (0 >= _fee))
619619 then true
620620 else (0 >= _spreadLimit))
621621 then true
622622 else (0 >= _maxPriceImpact))
623623 then true
624624 else initialized())
625625 then throw("Invalid initialize parameters")
626626 else ((((updateAmm(_qtAstR, _bsAstR, 0, 0, 0, 0, 0) ++ updateSettings(_initMarginRatio, _mmr, _liquidationFeeRatio, _fundingPeriod, _fee, _spreadLimit, _maxPriceImpact)) ++ updateFunding((lastBlock.timestamp + _fundingPeriod), 0, 0, 0, 0)) ++ updateBalance(0)) ++ [BooleanEntry(k_initialized, true), StringEntry(k_ora, _oracle), StringEntry(k_ora_key, _oracleKey), StringEntry(k_coordinatorAddress, _coordinator)])
627627
628628
629629
630630 @Callable(i)
631631 func decreasePosition (_amount,_leverage,_minBaseAssetAmount) = if (if (if (if (if (if ((0 >= _amount))
632632 then true
633633 else if (((1 * DECIMAL_UNIT) > _leverage))
634634 then true
635635 else (_leverage > (3 * DECIMAL_UNIT)))
636636 then true
637637 else !(initialized()))
638638 then true
639639 else !(requireMoreMarginRatio(divd(DECIMAL_UNIT, _leverage), initMarginRatio(), true)))
640640 then true
641641 else !(requireOpenPosition(toString(i.caller))))
642642 then true
643643 else paused())
644644 then throw("Invalid decreasePosition parameters")
645645 else {
646646 let $t02860028752 = getPosition(toString(i.caller))
647647 let oldPositionSize = $t02860028752._1
648648 let oldPositionMargin = $t02860028752._2
649649 let oldPositionOpenNotional = $t02860028752._3
650650 let oldPositionLstUpdCPF = $t02860028752._4
651651 let _direction = if ((oldPositionSize > 0))
652652 then DIR_SHORT
653653 else DIR_LONG
654654 let isAdd = (_direction == DIR_LONG)
655655 let openNotional = muld(_amount, _leverage)
656656 let $t02892529041 = getPositionNotionalAndUnrealizedPnl(toString(i.caller), PNL_OPTION_SPOT)
657657 let oldPositionNotional = $t02892529041._1
658658 let unrealizedPnl = $t02892529041._2
659659 let $t02904731596 = if ((oldPositionNotional > openNotional))
660660 then {
661661 let $t02942429643 = swapInput(isAdd, openNotional)
662662 let exchangedPositionSize = $t02942429643._1
663663 let quoteAssetReserveAfter = $t02942429643._2
664664 let baseAssetReserveAfter = $t02942429643._3
665665 let totalPositionSizeAfter = $t02942429643._4
666666 let cumulativeNotionalAfter = $t02942429643._5
667667 let exchangedPositionSizeAbs = abs(exchangedPositionSize)
668668 if (if ((_minBaseAssetAmount != 0))
669669 then (_minBaseAssetAmount > exchangedPositionSizeAbs)
670670 else false)
671671 then throw(((("Too little base asset exchanged, got " + toString(exchangedPositionSizeAbs)) + " expected ") + toString(_minBaseAssetAmount)))
672672 else {
673673 let realizedPnl = divd(muld(unrealizedPnl, exchangedPositionSizeAbs), abs(oldPositionSize))
674674 let $t03008030325 = calcRemainMarginWithFundingPayment(oldPositionSize, oldPositionMargin, oldPositionLstUpdCPF, realizedPnl)
675675 let remainMargin = $t03008030325._1
676676 let badDebt = $t03008030325._2
677677 let fundingPayment = $t03008030325._3
678678 let exchangedQuoteAssetAmount = openNotional
679679 let unrealizedPnlAfter = (unrealizedPnl - realizedPnl)
680680 let remainOpenNotional = if ((oldPositionSize > 0))
681681 then ((oldPositionNotional - exchangedQuoteAssetAmount) - unrealizedPnlAfter)
682682 else ((unrealizedPnlAfter + oldPositionNotional) - exchangedQuoteAssetAmount)
683683 let newPositionSize = (oldPositionSize + exchangedPositionSize)
684684 $Tuple11(newPositionSize, remainMargin, abs(remainOpenNotional), latestCumulativePremiumFraction(newPositionSize), baseAssetReserveAfter, quoteAssetReserveAfter, totalPositionSizeAfter, cumulativeNotionalAfter, (openInterestNotional() - openNotional), (totalLongPositionSize() - (if ((newPositionSize > 0))
685685 then abs(exchangedPositionSize)
686686 else 0)), (totalShortPositionSize() - (if ((0 > newPositionSize))
687687 then abs(exchangedPositionSize)
688688 else 0)))
689689 }
690690 }
691691 else throw("Close position first")
692692 let newPositionSize = $t02904731596._1
693693 let newPositionRemainMargin = $t02904731596._2
694694 let newPositionOpenNotional = $t02904731596._3
695695 let newPositionLatestCPF = $t02904731596._4
696696 let baseAssetReserveAfter = $t02904731596._5
697697 let quoteAssetReserveAfter = $t02904731596._6
698698 let totalPositionSizeAfter = $t02904731596._7
699699 let cumulativeNotionalAfter = $t02904731596._8
700700 let openInterestNotionalAfter = $t02904731596._9
701701 let totalLongAfter = $t02904731596._10
702702 let totalShortAfter = $t02904731596._11
703703 let notifyNotional = invoke(minerAddress(), "notifyNotional", [toString(i.caller), newPositionOpenNotional], nil)
704704 if ((notifyNotional == notifyNotional))
705705 then (updatePosition(toString(i.caller), newPositionSize, newPositionRemainMargin, newPositionOpenNotional, newPositionLatestCPF) ++ updateAmm(quoteAssetReserveAfter, baseAssetReserveAfter, totalPositionSizeAfter, cumulativeNotionalAfter, openInterestNotionalAfter, totalLongAfter, totalShortAfter))
706706 else throw("Strict value is not equal to itself.")
707707 }
708708
709709
710710
711711 @Callable(i)
712712 func increasePosition (_direction,_leverage,_minBaseAssetAmount) = {
713713 let _rawAmount = i.payments[0].amount
714714 if (if (if (if (if (if (if (if ((_direction != DIR_LONG))
715715 then (_direction != DIR_SHORT)
716716 else false)
717717 then true
718718 else (0 >= _rawAmount))
719719 then true
720720 else if (((1 * DECIMAL_UNIT) > _leverage))
721721 then true
722722 else (_leverage > (3 * DECIMAL_UNIT)))
723723 then true
724724 else !(initialized()))
725725 then true
726726 else (i.payments[0].assetId != quoteAsset()))
727727 then true
728728 else !(requireMoreMarginRatio(divd(DECIMAL_UNIT, _leverage), initMarginRatio(), true)))
729729 then true
730730 else paused())
731731 then throw("Invalid increasePosition parameters")
732732 else {
733733 let feeAmount = muld(_rawAmount, fee())
734734 let _amount = (_rawAmount - feeAmount)
735735 let $t03278432936 = getPosition(toString(i.caller))
736736 let oldPositionSize = $t03278432936._1
737737 let oldPositionMargin = $t03278432936._2
738738 let oldPositionOpenNotional = $t03278432936._3
739739 let oldPositionLstUpdCPF = $t03278432936._4
740740 let isNewPosition = (oldPositionSize == 0)
741741 let isSameDirection = if ((oldPositionSize > 0))
742742 then (_direction == DIR_LONG)
743743 else (_direction == DIR_SHORT)
744744 let expandExisting = if (!(isNewPosition))
745745 then isSameDirection
746746 else false
747747 let isAdd = (_direction == DIR_LONG)
748748 let $t03322535614 = if (if (isNewPosition)
749749 then true
750750 else expandExisting)
751751 then {
752752 let openNotional = muld(_amount, _leverage)
753753 let $t03364933855 = swapInput(isAdd, openNotional)
754754 let amountBaseAssetBought = $t03364933855._1
755755 let quoteAssetReserveAfter = $t03364933855._2
756756 let baseAssetReserveAfter = $t03364933855._3
757757 let totalPositionSizeAfter = $t03364933855._4
758758 let cumulativeNotionalAfter = $t03364933855._5
759759 if (if ((_minBaseAssetAmount != 0))
760760 then (_minBaseAssetAmount > abs(amountBaseAssetBought))
761761 else false)
762762 then throw(((("Limit error: " + toString(abs(amountBaseAssetBought))) + " < ") + toString(_minBaseAssetAmount)))
763763 else {
764764 let newPositionSize = (oldPositionSize + amountBaseAssetBought)
765765 let increaseMarginRequirement = divd(openNotional, _leverage)
766766 let $t03423634475 = calcRemainMarginWithFundingPayment(oldPositionSize, oldPositionMargin, oldPositionLstUpdCPF, increaseMarginRequirement)
767767 let remainMargin = $t03423634475._1
768768 let x1 = $t03423634475._2
769769 let x2 = $t03423634475._3
770770 $Tuple11(newPositionSize, remainMargin, (oldPositionOpenNotional + openNotional), latestCumulativePremiumFraction(newPositionSize), baseAssetReserveAfter, quoteAssetReserveAfter, totalPositionSizeAfter, cumulativeNotionalAfter, (openInterestNotional() + openNotional), (totalLongPositionSize() + (if ((newPositionSize > 0))
771771 then abs(amountBaseAssetBought)
772772 else 0)), (totalShortPositionSize() + (if ((0 > newPositionSize))
773773 then abs(amountBaseAssetBought)
774774 else 0)))
775775 }
776776 }
777777 else {
778778 let openNotional = muld(_amount, _leverage)
779779 let $t03530735423 = getPositionNotionalAndUnrealizedPnl(toString(i.caller), PNL_OPTION_SPOT)
780780 let oldPositionNotional = $t03530735423._1
781781 let unrealizedPnl = $t03530735423._2
782782 if ((oldPositionNotional > openNotional))
783783 then throw("Use decreasePosition to decrease position size")
784784 else throw("Close position first")
785785 }
786786 let newPositionSize = $t03322535614._1
787787 let newPositionRemainMargin = $t03322535614._2
788788 let newPositionOpenNotional = $t03322535614._3
789789 let newPositionLatestCPF = $t03322535614._4
790790 let baseAssetReserveAfter = $t03322535614._5
791791 let quoteAssetReserveAfter = $t03322535614._6
792792 let totalPositionSizeAfter = $t03322535614._7
793793 let cumulativeNotionalAfter = $t03322535614._8
794794 let openInterestNotionalAfter = $t03322535614._9
795795 let totalLongAfter = $t03322535614._10
796796 let totalShortAfter = $t03322535614._11
797797 let feeToStakers = (feeAmount / 2)
798798 let feeToInsurance = (feeAmount - feeToStakers)
799799 let stake = invoke(quoteAssetStaking(), "lockNeutrinoSP", [toString(stakingAddress()), ALL_FEES], [AttachedPayment(quoteAsset(), _amount)])
800800 if ((stake == stake))
801801 then {
802802 let depositInsurance = invoke(insuranceAddress(), "deposit", nil, [AttachedPayment(quoteAsset(), feeToInsurance)])
803803 if ((depositInsurance == depositInsurance))
804804 then {
805805 let notifyFee = invoke(minerAddress(), "notifyFees", [toString(i.caller), feeAmount], nil)
806806 if ((notifyFee == notifyFee))
807807 then {
808808 let notifyNotional = invoke(minerAddress(), "notifyNotional", [toString(i.caller), newPositionOpenNotional], nil)
809809 if ((notifyNotional == notifyNotional))
810810 then (((updatePosition(toString(i.caller), newPositionSize, newPositionRemainMargin, newPositionOpenNotional, newPositionLatestCPF) ++ updateAmm(quoteAssetReserveAfter, baseAssetReserveAfter, totalPositionSizeAfter, cumulativeNotionalAfter, openInterestNotionalAfter, totalLongAfter, totalShortAfter)) ++ transferFee(feeToStakers)) ++ updateBalance((cbalance() + _amount)))
811811 else throw("Strict value is not equal to itself.")
812812 }
813813 else throw("Strict value is not equal to itself.")
814814 }
815815 else throw("Strict value is not equal to itself.")
816816 }
817817 else throw("Strict value is not equal to itself.")
818818 }
819819 }
820820
821821
822822
823823 @Callable(i)
824824 func addMargin () = {
825825 let _rawAmount = i.payments[0].amount
826826 if (if (if (if ((i.payments[0].assetId != quoteAsset()))
827827 then true
828828 else !(requireOpenPosition(toString(i.caller))))
829829 then true
830830 else !(initialized()))
831831 then true
832832 else paused())
833833 then throw("Invalid addMargin parameters")
834834 else {
835835 let feeAmount = muld(_rawAmount, fee())
836836 let _amount = (_rawAmount - feeAmount)
837837 let $t03717037322 = getPosition(toString(i.caller))
838838 let oldPositionSize = $t03717037322._1
839839 let oldPositionMargin = $t03717037322._2
840840 let oldPositionOpenNotional = $t03717037322._3
841841 let oldPositionLstUpdCPF = $t03717037322._4
842842 let feeToStakers = (feeAmount / 2)
843843 let feeToInsurance = (feeAmount - feeToStakers)
844844 let stake = invoke(quoteAssetStaking(), "lockNeutrinoSP", [toString(stakingAddress()), ALL_FEES], [AttachedPayment(quoteAsset(), _amount)])
845845 if ((stake == stake))
846846 then {
847847 let depositInsurance = invoke(insuranceAddress(), "deposit", nil, [AttachedPayment(quoteAsset(), feeToInsurance)])
848848 if ((depositInsurance == depositInsurance))
849849 then {
850850 let notifyFee = invoke(minerAddress(), "notifyFees", [toString(i.caller), feeAmount], nil)
851851 if ((notifyFee == notifyFee))
852852 then ((updatePosition(toString(i.caller), oldPositionSize, (oldPositionMargin + _amount), oldPositionOpenNotional, oldPositionLstUpdCPF) ++ transferFee(feeToStakers)) ++ updateBalance((cbalance() + _amount)))
853853 else throw("Strict value is not equal to itself.")
854854 }
855855 else throw("Strict value is not equal to itself.")
856856 }
857857 else throw("Strict value is not equal to itself.")
858858 }
859859 }
860860
861861
862862
863863 @Callable(i)
864864 func removeMargin (_amount) = if (if (if (if ((0 >= _amount))
865865 then true
866866 else !(requireOpenPosition(toString(i.caller))))
867867 then true
868868 else !(initialized()))
869869 then true
870870 else paused())
871871 then throw("Invalid removeMargin parameters")
872872 else {
873873 let $t03837138523 = getPosition(toString(i.caller))
874874 let oldPositionSize = $t03837138523._1
875875 let oldPositionMargin = $t03837138523._2
876876 let oldPositionOpenNotional = $t03837138523._3
877877 let oldPositionLstUpdCPF = $t03837138523._4
878878 let marginDelta = -(_amount)
879879 let $t03856038739 = calcRemainMarginWithFundingPayment(oldPositionSize, oldPositionMargin, oldPositionLstUpdCPF, marginDelta)
880880 let remainMargin = $t03856038739._1
881881 let badDebt = $t03856038739._2
882882 if ((badDebt != 0))
883883 then throw("Invalid removed margin amount")
884884 else {
885885 let marginRatio = calcMarginRatio(remainMargin, badDebt, oldPositionOpenNotional)
886886 if (!(requireMoreMarginRatio(marginRatio, initMarginRatio(), true)))
887887 then throw(((("Too much margin removed: " + toString(marginRatio)) + " < ") + toString(initMarginRatio())))
888888 else {
889889 let unstake = invoke(quoteAssetStaking(), "unlockNeutrino", [_amount, toBase58String(quoteAsset())], nil)
890890 if ((unstake == unstake))
891891 then ((updatePosition(toString(i.caller), oldPositionSize, remainMargin, oldPositionOpenNotional, latestCumulativePremiumFraction(oldPositionSize)) ++ withdraw(i.caller, _amount)) ++ updateBalance((cbalance() - _amount)))
892892 else throw("Strict value is not equal to itself.")
893893 }
894894 }
895895 }
896896
897897
898898
899899 @Callable(i)
900900 func closePosition () = if (if (if (!(requireOpenPosition(toString(i.caller))))
901901 then true
902902 else !(initialized()))
903903 then true
904904 else paused())
905905 then throw("Invalid closePosition parameters")
906906 else {
907907 let $t03983540219 = internalClosePosition(toString(i.caller))
908908 let x1 = $t03983540219._1
909909 let positionBadDebt = $t03983540219._2
910910 let realizedPnl = $t03983540219._3
911911 let marginToVault = $t03983540219._4
912912 let quoteAssetReserveAfter = $t03983540219._5
913913 let baseAssetReserveAfter = $t03983540219._6
914914 let totalPositionSizeAfter = $t03983540219._7
915915 let cumulativeNotionalAfter = $t03983540219._8
916916 let openInterestNotionalAfter = $t03983540219._9
917917 let x2 = $t03983540219._10
918918 let totalLongAfter = $t03983540219._11
919919 let totalShortAfter = $t03983540219._12
920920 if ((positionBadDebt > 0))
921921 then throw("Unable to close position with bad debt")
922922 else {
923923 let withdrawAmount = abs(marginToVault)
924924 let ammBalance = (cbalance() - withdrawAmount)
925925 let $t04042840570 = if ((0 > ammBalance))
926926 then $Tuple2(0, abs(ammBalance))
927927 else $Tuple2(ammBalance, 0)
928928 let ammNewBalance = $t04042840570._1
929929 let getFromInsurance = $t04042840570._2
930930 let x = if ((getFromInsurance > 0))
931931 then {
932932 let withdrawInsurance = invoke(insuranceAddress(), "withdraw", [getFromInsurance], nil)
933933 if ((withdrawInsurance == withdrawInsurance))
934934 then nil
935935 else throw("Strict value is not equal to itself.")
936936 }
937937 else nil
938938 if ((x == x))
939939 then {
940940 let unstake = invoke(quoteAssetStaking(), "unlockNeutrino", [(withdrawAmount - getFromInsurance), toBase58String(quoteAsset())], nil)
941941 if ((unstake == unstake))
942942 then {
943943 let notifyNotional = invoke(minerAddress(), "notifyNotional", [toString(i.caller), 0], nil)
944944 if ((notifyNotional == notifyNotional))
945945 then (((deletePosition(toString(i.caller)) ++ updateAmm(quoteAssetReserveAfter, baseAssetReserveAfter, totalPositionSizeAfter, cumulativeNotionalAfter, openInterestNotionalAfter, totalLongAfter, totalShortAfter)) ++ withdraw(i.caller, withdrawAmount)) ++ updateBalance(ammNewBalance))
946946 else throw("Strict value is not equal to itself.")
947947 }
948948 else throw("Strict value is not equal to itself.")
949949 }
950950 else throw("Strict value is not equal to itself.")
951951 }
952952 }
953953
954954
955955
956956 @Callable(i)
957957 func liquidate (_trader) = {
958958 let spotMarginRatio = getMarginRatioByOption(_trader, PNL_OPTION_SPOT)
959959 let marginRatio = if (isOverFluctuationLimit())
960960 then {
961961 let oracleMarginRatio = getMarginRatioByOption(_trader, PNL_OPTION_ORACLE)
962962 vmax(spotMarginRatio, oracleMarginRatio)
963963 }
964964 else spotMarginRatio
965965 if (if (if (if (!(requireMoreMarginRatio(marginRatio, maintenanceMarginRatio(), false)))
966966 then true
967967 else !(requireOpenPosition(_trader)))
968968 then true
969969 else !(initialized()))
970970 then true
971971 else paused())
972972 then throw("Unable to liquidate")
973973 else {
974974 let $t04226042676 = internalClosePosition(_trader)
975975 let x1 = $t04226042676._1
976976 let badDebt = $t04226042676._2
977977 let x2 = $t04226042676._3
978978 let x3 = $t04226042676._4
979979 let quoteAssetReserveAfter = $t04226042676._5
980980 let baseAssetReserveAfter = $t04226042676._6
981981 let totalPositionSizeAfter = $t04226042676._7
982982 let cumulativeNotionalAfter = $t04226042676._8
983983 let openInterestNotionalAfter = $t04226042676._9
984984 let exchangedQuoteAssetAmount = $t04226042676._10
985985 let totalLongAfter = $t04226042676._11
986986 let totalShortAfter = $t04226042676._12
987987 let liquidationPenalty = muld(exchangedQuoteAssetAmount, liquidationFeeRatio())
988988 let feeToLiquidator = (liquidationPenalty / 2)
989989 let feeToInsurance = (liquidationPenalty - feeToLiquidator)
990990 let ammBalance = (cbalance() - liquidationPenalty)
991991 let $t04307443209 = if ((0 > ammBalance))
992992 then $Tuple2(0, abs(ammBalance))
993993 else $Tuple2(ammBalance, 0)
994994 let newAmmBalance = $t04307443209._1
995995 let takeFromInsurance = $t04307443209._2
996996 let x = if ((takeFromInsurance > 0))
997997 then {
998998 let withdrawInsurance = invoke(insuranceAddress(), "withdraw", [takeFromInsurance], nil)
999999 if ((withdrawInsurance == withdrawInsurance))
10001000 then nil
10011001 else throw("Strict value is not equal to itself.")
10021002 }
10031003 else nil
10041004 if ((x == x))
10051005 then {
10061006 let unstake = invoke(quoteAssetStaking(), "unlockNeutrino", [(liquidationPenalty - takeFromInsurance), toBase58String(quoteAsset())], nil)
10071007 if ((unstake == unstake))
10081008 then {
10091009 let depositInsurance = invoke(insuranceAddress(), "deposit", nil, [AttachedPayment(quoteAsset(), feeToInsurance)])
10101010 if ((depositInsurance == depositInsurance))
10111011 then {
10121012 let notifyNotional = invoke(minerAddress(), "notifyNotional", [_trader, 0], nil)
10131013 if ((notifyNotional == notifyNotional))
10141014 then (((deletePosition(_trader) ++ updateAmm(quoteAssetReserveAfter, baseAssetReserveAfter, totalPositionSizeAfter, cumulativeNotionalAfter, openInterestNotionalAfter, totalLongAfter, totalShortAfter)) ++ withdraw(i.caller, feeToLiquidator)) ++ updateBalance(newAmmBalance))
10151015 else throw("Strict value is not equal to itself.")
10161016 }
10171017 else throw("Strict value is not equal to itself.")
10181018 }
10191019 else throw("Strict value is not equal to itself.")
10201020 }
10211021 else throw("Strict value is not equal to itself.")
10221022 }
10231023 }
10241024
10251025
10261026
10271027 @Callable(i)
10281028 func payFunding () = {
10291029 let fundingBlockTimestamp = nextFundingBlockTimestamp()
10301030 if (if (if ((fundingBlockTimestamp > lastBlock.timestamp))
10311031 then true
10321032 else !(initialized()))
10331033 then true
10341034 else paused())
10351035 then throw(((("Invalid funding block timestamp: " + toString(lastBlock.timestamp)) + " < ") + toString(fundingBlockTimestamp)))
10361036 else {
10371037 let underlyingPrice = getOracleTwapPrice()
10381038 let spotTwapPrice = getTwapSpotPrice()
10391039 let premium = (spotTwapPrice - underlyingPrice)
10401040 let $t04470346038 = if (if ((totalShortPositionSize() == 0))
10411041 then true
10421042 else (totalLongPositionSize() == 0))
10431043 then $Tuple2(0, 0)
10441044 else if ((0 > premium))
10451045 then {
10461046 let shortPremiumFraction = divd(muld(premium, fundingPeriodDecimal()), ONE_DAY)
10471047 let longPremiumFraction = divd(muld(shortPremiumFraction, totalShortPositionSize()), totalLongPositionSize())
10481048 $Tuple2(shortPremiumFraction, longPremiumFraction)
10491049 }
10501050 else {
10511051 let longPremiumFraction = divd(muld(premium, fundingPeriodDecimal()), ONE_DAY)
10521052 let shortPremiumFraction = divd(muld(longPremiumFraction, totalLongPositionSize()), totalShortPositionSize())
10531053 $Tuple2(shortPremiumFraction, longPremiumFraction)
10541054 }
10551055 let shortPremiumFraction = $t04470346038._1
10561056 let longPremiumFraction = $t04470346038._2
10571057 updateFunding((fundingBlockTimestamp + fundingPeriodSeconds()), (latestLongCumulativePremiumFraction() + longPremiumFraction), (latestShortCumulativePremiumFraction() + shortPremiumFraction), divd(longPremiumFraction, underlyingPrice), divd(shortPremiumFraction, underlyingPrice))
10581058 }
10591059 }
10601060
10611061
10621062
10631063 @Callable(i)
10641064 func v_get (_trader) = {
10651065 let $t04641346466 = internalClosePosition(_trader)
10661066 let x1 = $t04641346466._1
10671067 let x2 = $t04641346466._2
10681068 let x3 = $t04641346466._3
10691069 let x4 = $t04641346466._4
10701070 throw((((s(x2) + s(x3)) + s(x4)) + s(getMarginRatio(_trader))))
10711071 }
10721072
10731073
10741074
10751075 @Callable(i)
10761076 func view_calcRemainMarginWithFundingPayment (_trader) = {
10771077 let $t04661346724 = getPosition(_trader)
10781078 let positionSize = $t04661346724._1
10791079 let positionMargin = $t04661346724._2
10801080 let pon = $t04661346724._3
10811081 let positionLstUpdCPF = $t04661346724._4
10821082 let $t04672946830 = getPositionNotionalAndUnrealizedPnl(_trader, PNL_OPTION_SPOT)
10831083 let positionNotional = $t04672946830._1
10841084 let unrealizedPnl = $t04672946830._2
10851085 let $t04683547017 = calcRemainMarginWithFundingPayment(positionSize, positionMargin, positionLstUpdCPF, unrealizedPnl)
10861086 let remainMargin = $t04683547017._1
10871087 let badDebt = $t04683547017._2
10881088 let fundingPayment = $t04683547017._3
10891089 throw(((s(remainMargin) + s(fundingPayment)) + s(getMarginRatio(_trader))))
10901090 }
10911091
10921092
10931093
10941094 @Callable(i)
10951095 func forceMoveAsset (_trader,_amount) = if (if ((addressFromPublicKey(adminPublicKey()) != i.caller))
10961096 then true
10971097 else (0 > _amount))
10981098 then throw("Invalid forceMoveAsset parameters")
10991099 else {
11001100 let unstake = invoke(quoteAssetStaking(), "unlockNeutrino", [_amount, toBase58String(quoteAsset())], nil)
11011101 if ((unstake == unstake))
11021102 then (withdraw(addressFromStringValue(_trader), _amount) ++ updateBalance((cbalance() - _amount)))
11031103 else throw("Strict value is not equal to itself.")
11041104 }
11051105
11061106
11071107 @Verifier(tx)
11081108 func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], adminPublicKey())
11091109

github/deemru/w8io/026f985 
89.06 ms