tx · 45W4BeAL39WutJkeg1xCLrr8xGMt6BBEzQVHWyykzgG5

3MsrjHCsYjbBFB8n95mcPv1wzjLzbGQMbYa:  -0.01000000 Waves

2022.04.28 16:16 [2028372] smart account 3MsrjHCsYjbBFB8n95mcPv1wzjLzbGQMbYa > SELF 0.00000000 Waves

{ "type": 13, "id": "45W4BeAL39WutJkeg1xCLrr8xGMt6BBEzQVHWyykzgG5", "fee": 1000000, "feeAssetId": null, "timestamp": 1651151800826, "version": 2, "chainId": 84, "sender": "3MsrjHCsYjbBFB8n95mcPv1wzjLzbGQMbYa", "senderPublicKey": "2svtKnu8wShGzSGwfPRGPD6B7KxbqWHUM8uRc91T62gp", "proofs": [ "3vXjKDGrEgrXVzoPuy9jWm96DhMYo9PHtKdGxCmbJFi7cEZQsoE2kmx6977bqEmZASW14PJ632c48C8WQPG4q7AS" ], "script": "base64:AAIFAAAAAAAAACUIAhIICgYBAQEBAQESBQoDAQEBEgASAwoBARIAEgMKAQgSABIAAAAAPwAAAAALb3JhX2tfcHJpY2UCAAAABXByaWNlAAAAAA5rX3Bvc2l0aW9uU2l6ZQIAAAAOa19wb3NpdGlvblNpemUAAAAAEGtfcG9zaXRpb25NYXJnaW4CAAAAEGtfcG9zaXRpb25NYXJnaW4AAAAAFmtfcG9zaXRpb25PcGVuTm90aW9uYWwCAAAAFmtfcG9zaXRpb25PcGVuTm90aW9uYWwAAAAALmtfcG9zaXRpb25MYXN0VXBkYXRlZEN1bXVsYXRpdmVQcmVtaXVtRnJhY3Rpb24CAAAAEmtfcG9zaXRpb25GcmFjdGlvbgAAAAANa19pbml0aWFsaXplZAIAAAANa19pbml0aWFsaXplZAAAAAAPa19mdW5kaW5nUGVyaW9kAgAAAA9rX2Z1bmRpbmdQZXJpb2QAAAAAEWtfaW5pdE1hcmdpblJhdGlvAgAAABFrX2luaXRNYXJnaW5SYXRpbwAAAAAYa19tYWludGVuYW5jZU1hcmdpblJhdGlvAgAAABhrX21haW50ZW5hbmNlTWFyZ2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succeeded", "spentComplexity": 0 } View: original | compacted Prev: none Next: none Full:
OldNewDifferences
1-# no script
1+{-# STDLIB_VERSION 5 #-}
2+{-# SCRIPT_TYPE ACCOUNT #-}
3+{-# CONTENT_TYPE DAPP #-}
4+let ora_k_price = "price"
5+
6+let k_positionSize = "k_positionSize"
7+
8+let k_positionMargin = "k_positionMargin"
9+
10+let k_positionOpenNotional = "k_positionOpenNotional"
11+
12+let k_positionLastUpdatedCumulativePremiumFraction = "k_positionFraction"
13+
14+let k_initialized = "k_initialized"
15+
16+let k_fundingPeriod = "k_fundingPeriod"
17+
18+let k_initMarginRatio = "k_initMarginRatio"
19+
20+let k_maintenanceMarginRatio = "k_maintenanceMarginRatio"
21+
22+let k_liquidationFeeRatio = "k_liquidationFeeRatio"
23+
24+let k_latestCumulativePremiumFraction = "k_latestPremiumFraction"
25+
26+let k_nextFundingBlock = "k_nextFundingBlock"
27+
28+let k_fundingRate = "k_fundingRate"
29+
30+let k_quouteAssetReserve = "k_quouteAssetReserve"
31+
32+let k_baseAssetReserve = "k_baseAssetReserve"
33+
34+let k_baseAssetDeltaThisFundingPeriod = "k_baseAssetDelta"
35+
36+let k_totalPositionSize = "k_totalPositionSize"
37+
38+let k_cumulativeNotional = "k_cumulativeNotional"
39+
40+let k_openInteresetNotional = "k_openInteresetNotional"
41+
42+let ADMIN_ADDRESS = Address(base58'3N18Xhj1uxSbzyapcrT2LHcMpEh7ZUvZqZD')
43+
44+let USDN = base58'HezsdQuRDtzksAYUy97gfhKy7Z1NW2uXYSHA3bgqenNZ'
45+
46+let USDN_STAKING = Address(base58'3N9LkJahTMx41wGhSxLS42prCZtRCp4dhTs')
47+
48+let ORACLE = Address(base58'3N4NS7d4Jo9a6F14LiFUKKYVdUkkf2eP4Zx')
49+
50+let DIR_LONG = 1
51+
52+let DIR_SHORT = 2
53+
54+let FUNDING_BLOCK_INTERVAL = 60
55+
56+let DECIMAL_UNIT = (1 * (((((10 * 10) * 10) * 10) * 10) * 10))
57+
58+let ONE_DAY = (86400 * DECIMAL_UNIT)
59+
60+func divd (_x,_y) = fraction(_x, DECIMAL_UNIT, _y, HALFUP)
61+
62+
63+func muld (_x,_y) = fraction(_x, _y, DECIMAL_UNIT, HALFUP)
64+
65+
66+func abs (_x) = if ((_x > 0))
67+ then _x
68+ else -(_x)
69+
70+
71+func toCompositeKey (_key,_address) = ((_key + "_") + _address)
72+
73+
74+func requireMoreMarginRatio (_marginRatio,_baseMarginRatio,_largerThanOrEqualTo) = {
75+ let remainingMarginRatio = (_marginRatio - _baseMarginRatio)
76+ if (if (_largerThanOrEqualTo)
77+ then (0 > remainingMarginRatio)
78+ else false)
79+ then throw("Invalid margin")
80+ else if (if (!(_largerThanOrEqualTo))
81+ then (remainingMarginRatio >= 0)
82+ else false)
83+ then throw("Invalid margin")
84+ else true
85+ }
86+
87+
88+func initMarginRatio () = valueOrErrorMessage(getInteger(this, k_initMarginRatio), "no value for initMarginRatio")
89+
90+
91+func quouteAssetReserve () = valueOrErrorMessage(getInteger(this, k_quouteAssetReserve), "no value for quouteAssetReserve")
92+
93+
94+func baseAssetReserve () = valueOrErrorMessage(getInteger(this, k_baseAssetReserve), "no value for baseAssetReserve")
95+
96+
97+func baseAssetDeltaThisFundingPeriod () = valueOrErrorMessage(getInteger(this, k_baseAssetDeltaThisFundingPeriod), "no value for baseAssetDeltaThisFundingPeriod")
98+
99+
100+func totalPositionSize () = valueOrErrorMessage(getInteger(this, k_totalPositionSize), "no value for totalPositionSize")
101+
102+
103+func cumulativeNotional () = valueOrErrorMessage(getInteger(this, k_cumulativeNotional), "no value for cumulativeNotional")
104+
105+
106+func latestCumulativePremiumFraction () = valueOrErrorMessage(getInteger(this, k_latestCumulativePremiumFraction), "no value for latestCumulativePremiumFraction")
107+
108+
109+func openInteresetNotional () = valueOrErrorMessage(getInteger(this, k_openInteresetNotional), "no value for openInteresetNotional")
110+
111+
112+func nextFundingBlock () = valueOrErrorMessage(getInteger(this, k_nextFundingBlock), "no value for nextFundingBlock")
113+
114+
115+func fundingPeriod () = valueOrErrorMessage(getInteger(this, k_fundingPeriod), "no value for fundingPeriod")
116+
117+
118+func maintenanceMarginRatio () = valueOrErrorMessage(getInteger(this, k_maintenanceMarginRatio), "no value for maintenanceMarginRatio")
119+
120+
121+func liquidationFeeRatio () = valueOrErrorMessage(getInteger(this, k_liquidationFeeRatio), "no value for liquidationFeeRatio")
122+
123+
124+func getPosition (invesor) = {
125+ let positionSizeOpt = getInteger(this, toCompositeKey(k_positionSize, invesor))
126+ match positionSizeOpt {
127+ case positionSize: Int =>
128+ $Tuple4(positionSize, getIntegerValue(this, toCompositeKey(k_positionMargin, invesor)), getIntegerValue(this, toCompositeKey(k_positionOpenNotional, invesor)), getIntegerValue(this, toCompositeKey(k_positionLastUpdatedCumulativePremiumFraction, invesor)))
129+ case _ =>
130+ $Tuple4(0, 0, 0, 0)
131+ }
132+ }
133+
134+
135+func requireOpenPosition (_trader) = {
136+ let $t045134668 = getPosition(_trader)
137+ let positionSize = $t045134668._1
138+ let positionMargin = $t045134668._2
139+ let positionOpenNotional = $t045134668._3
140+ let positionLastUpdatedCumulativePremiumFraction = $t045134668._4
141+ if ((positionSize == 0))
142+ then throw("No open position")
143+ else false
144+ }
145+
146+
147+func initialized () = valueOrElse(getBoolean(this, k_initialized), false)
148+
149+
150+func updateReserve (_isAdd,_quoteAssetAmount,_baseAssetAmount) = if (_isAdd)
151+ then $Tuple5((quouteAssetReserve() + _quoteAssetAmount), (baseAssetReserve() - _baseAssetAmount), (baseAssetDeltaThisFundingPeriod() - _baseAssetAmount), (totalPositionSize() + _baseAssetAmount), (cumulativeNotional() + _quoteAssetAmount))
152+ else $Tuple5((quouteAssetReserve() - _quoteAssetAmount), (baseAssetReserve() + _baseAssetAmount), (baseAssetDeltaThisFundingPeriod() + _baseAssetAmount), (totalPositionSize() - _baseAssetAmount), (cumulativeNotional() - _quoteAssetAmount))
153+
154+
155+func swapInput (_isAdd,_quoteAssetAmoun) = {
156+ let _quouteAssetReserve = quouteAssetReserve()
157+ let _baseAssetReserve = baseAssetReserve()
158+ let k = muld(_quouteAssetReserve, _baseAssetReserve)
159+ let quouteAssetReserveAfter = if (_isAdd)
160+ then (_quouteAssetReserve + _quoteAssetAmoun)
161+ else (_quouteAssetReserve - _quoteAssetAmoun)
162+ let baseAssetReserveAfter = divd(k, quouteAssetReserveAfter)
163+ let amountBaseAssetBoughtAbs = abs((baseAssetReserveAfter - _baseAssetReserve))
164+ let amountBaseAssetBought = if (_isAdd)
165+ then amountBaseAssetBoughtAbs
166+ else -(amountBaseAssetBoughtAbs)
167+ let $t061456381 = updateReserve(_isAdd, _quoteAssetAmoun, amountBaseAssetBoughtAbs)
168+ let quouteAssetReserveAfter1 = $t061456381._1
169+ let baseAssetReserveAfter1 = $t061456381._2
170+ let baseAssetDeltaThisFundingPeriodAfter1 = $t061456381._3
171+ let totalPositionSizeAfter1 = $t061456381._4
172+ let cumulativeNotionalAfter1 = $t061456381._5
173+ $Tuple6(amountBaseAssetBought, quouteAssetReserveAfter1, baseAssetReserveAfter1, baseAssetDeltaThisFundingPeriodAfter1, totalPositionSizeAfter1, cumulativeNotionalAfter1)
174+ }
175+
176+
177+func calcRemainMarginWithFundingPayment (_oldPositionSize,_oldPositionMargin,_oldPositionLastUpdatedCumulativePremiumFraction,_marginDelta) = {
178+ let _latestCumulativePremiumFraction = latestCumulativePremiumFraction()
179+ let fundingPayment = if ((_oldPositionSize != 0))
180+ then muld((_latestCumulativePremiumFraction - _oldPositionLastUpdatedCumulativePremiumFraction), _oldPositionSize)
181+ else 0
182+ let signedMargin = ((_marginDelta - fundingPayment) + _oldPositionMargin)
183+ let $t071137240 = if ((0 > signedMargin))
184+ then $Tuple2(0, abs(signedMargin))
185+ else $Tuple2(abs(signedMargin), 0)
186+ let remainMargin = $t071137240._1
187+ let badDebt = $t071137240._2
188+ $Tuple4(remainMargin, badDebt, fundingPayment, _latestCumulativePremiumFraction)
189+ }
190+
191+
192+func getOutputPriceWithReserves (_add,_baseAssetAmount,_quoteAssetPoolAmount,_baseAssetPoolAmount) = if ((_baseAssetAmount == 0))
193+ then throw("Invalid base asset amount")
194+ else {
195+ let k = muld(_quoteAssetPoolAmount, _baseAssetPoolAmount)
196+ let baseAssetPoolAmountAfter = if (_add)
197+ then (_baseAssetPoolAmount + _baseAssetAmount)
198+ else (_baseAssetPoolAmount - _baseAssetAmount)
199+ let quoteAssetAfter = divd(k, baseAssetPoolAmountAfter)
200+ let quoteAssetSold = abs((quoteAssetAfter - _quoteAssetPoolAmount))
201+ let $t079118148 = updateReserve(!(_add), quoteAssetSold, _baseAssetAmount)
202+ let quouteAssetReserveAfter1 = $t079118148._1
203+ let baseAssetReserveAfter1 = $t079118148._2
204+ let baseAssetDeltaThisFundingPeriodAfter1 = $t079118148._3
205+ let totalPositionSizeAfter1 = $t079118148._4
206+ let cumulativeNotionalAfter1 = $t079118148._5
207+ $Tuple6(quoteAssetSold, quouteAssetReserveAfter1, baseAssetReserveAfter1, baseAssetDeltaThisFundingPeriodAfter1, totalPositionSizeAfter1, cumulativeNotionalAfter1)
208+ }
209+
210+
211+func getPositionNotionalAndUnrealizedPnl (_trader) = {
212+ let $t084248579 = getPosition(_trader)
213+ let positionSize = $t084248579._1
214+ let positionMargin = $t084248579._2
215+ let positionOpenNotional = $t084248579._3
216+ let positionLastUpdatedCumulativePremiumFraction = $t084248579._4
217+ let positionSizeAbs = abs(positionSize)
218+ if ((positionSizeAbs == 0))
219+ then throw("Invalid position size")
220+ else {
221+ let isShort = (0 > positionSize)
222+ let $t087568928 = getOutputPriceWithReserves(!(isShort), positionSizeAbs, quouteAssetReserve(), baseAssetReserve())
223+ let positionNotional = $t087568928._1
224+ let x1 = $t087568928._2
225+ let x2 = $t087568928._3
226+ let x3 = $t087568928._4
227+ let unrealizedPnl = if (isShort)
228+ then (positionOpenNotional - positionNotional)
229+ else (positionNotional - positionOpenNotional)
230+ $Tuple2(positionNotional, unrealizedPnl)
231+ }
232+ }
233+
234+
235+func getOracleTwapPrice () = getIntegerValue(ORACLE, ora_k_price)
236+
237+
238+func getTwapSpotPrice () = divd(quouteAssetReserve(), baseAssetReserve())
239+
240+
241+func getMarginRatio (_trader) = {
242+ let $t093649519 = getPosition(_trader)
243+ let positionSize = $t093649519._1
244+ let positionMargin = $t093649519._2
245+ let positionOpenNotional = $t093649519._3
246+ let positionLastUpdatedCumulativePremiumFraction = $t093649519._4
247+ let $t095259609 = getPositionNotionalAndUnrealizedPnl(_trader)
248+ let positionNotional = $t095259609._1
249+ let unrealizedPnl = $t095259609._2
250+ let $t096149807 = calcRemainMarginWithFundingPayment(positionSize, positionMargin, positionLastUpdatedCumulativePremiumFraction, unrealizedPnl)
251+ let remainMargin = $t096149807._1
252+ let badDebt = $t096149807._2
253+ divd((remainMargin - badDebt), positionNotional)
254+ }
255+
256+
257+func internalClosePosition (_trader) = {
258+ let $t0991410069 = getPosition(_trader)
259+ let positionSize = $t0991410069._1
260+ let positionMargin = $t0991410069._2
261+ let positionOpenNotional = $t0991410069._3
262+ let positionLastUpdatedCumulativePremiumFraction = $t0991410069._4
263+ let $t01007510145 = getPositionNotionalAndUnrealizedPnl(_trader)
264+ let x1 = $t01007510145._1
265+ let unrealizedPnl = $t01007510145._2
266+ let $t01015010349 = calcRemainMarginWithFundingPayment(positionSize, positionMargin, positionLastUpdatedCumulativePremiumFraction, unrealizedPnl)
267+ let remainMargin = $t01015010349._1
268+ let badDebt = $t01015010349._2
269+ let x2 = $t01015010349._3
270+ let exchangedPositionSize = -(positionSize)
271+ let realizedPnl = unrealizedPnl
272+ let marginToVault = -(remainMargin)
273+ let $t01047610831 = getOutputPriceWithReserves((positionSize > 0), abs(positionSize), quouteAssetReserve(), baseAssetReserve())
274+ let exchangedQuoteAssetAmount = $t01047610831._1
275+ let quoteAssetReserveAfter = $t01047610831._2
276+ let baseAssetReserveAfter = $t01047610831._3
277+ let baseAssetDeltaThisFundingPeriodAfter = $t01047610831._4
278+ let totalPositionSizeAfter = $t01047610831._5
279+ let cumulativeNotionalAfter = $t01047610831._6
280+ let openInteresetNotionalAfter = (openInteresetNotional() - positionOpenNotional)
281+ $Tuple11(exchangedPositionSize, badDebt, realizedPnl, marginToVault, quoteAssetReserveAfter, baseAssetReserveAfter, baseAssetDeltaThisFundingPeriodAfter, totalPositionSizeAfter, cumulativeNotionalAfter, openInteresetNotionalAfter, exchangedQuoteAssetAmount)
282+ }
283+
284+
285+func updateSettings (_initMarginRatio,_maintenanceMarginRatio,_liquidationFeeRatio) = [IntegerEntry(k_initMarginRatio, _initMarginRatio), IntegerEntry(k_maintenanceMarginRatio, _maintenanceMarginRatio), IntegerEntry(k_liquidationFeeRatio, _liquidationFeeRatio)]
286+
287+
288+func updateFunding (_baseAssetDeltaThisFundingPeriod,_nextFundingBlock,_latestCumulativePremiumFraction,_fundingRate) = [IntegerEntry(k_baseAssetDeltaThisFundingPeriod, _baseAssetDeltaThisFundingPeriod), IntegerEntry(k_nextFundingBlock, _nextFundingBlock), IntegerEntry(k_latestCumulativePremiumFraction, _latestCumulativePremiumFraction), IntegerEntry(k_fundingRate, _fundingRate)]
289+
290+
291+func updatePosition (_address,_size,_margin,_openNotinal,_lastUpdatedCumulativePremiumFraction) = [IntegerEntry(toCompositeKey(k_positionSize, _address), _size), IntegerEntry(toCompositeKey(k_positionMargin, _address), _margin), IntegerEntry(toCompositeKey(k_positionOpenNotional, _address), _openNotinal), IntegerEntry(toCompositeKey(k_positionLastUpdatedCumulativePremiumFraction, _address), _lastUpdatedCumulativePremiumFraction)]
292+
293+
294+func updateAmm (_quouteAssetReserve,_baseAssetReserve,_baseAssetDeltaThisFundingPeriodAfter,_totalPositionSizeAfter,_cumulativeNotionalAfter,_openInteresetNotional) = [IntegerEntry(k_quouteAssetReserve, _quouteAssetReserve), IntegerEntry(k_baseAssetReserve, _baseAssetReserve), IntegerEntry(k_baseAssetDeltaThisFundingPeriod, _baseAssetDeltaThisFundingPeriodAfter), IntegerEntry(k_totalPositionSize, _totalPositionSizeAfter), IntegerEntry(k_cumulativeNotional, _cumulativeNotionalAfter), IntegerEntry(k_openInteresetNotional, _openInteresetNotional)]
295+
296+
297+func deletePosition (_address) = [DeleteEntry(toCompositeKey(k_positionSize, _address)), DeleteEntry(toCompositeKey(k_positionMargin, _address)), DeleteEntry(toCompositeKey(k_positionOpenNotional, _address)), DeleteEntry(toCompositeKey(k_positionLastUpdatedCumulativePremiumFraction, _address))]
298+
299+
300+func withdraw (_address,_amount) = {
301+ let balance = assetBalance(this, USDN)
302+ if ((_amount > balance))
303+ then throw(((("Unable to withdraw " + toString(_amount)) + " from contract balance ") + toString(balance)))
304+ else [ScriptTransfer(_address, _amount, USDN)]
305+ }
306+
307+
308+@Callable(i)
309+func initialize (_quouteAssetReserve,_baseAssetReserve,_fundingPeriod,_initMarginRatio,_maintenanceMarginRatio,_liquidationFeeRatio) = if (if (if (if (if (if (if (if ((0 >= _quouteAssetReserve))
310+ then true
311+ else (0 >= _baseAssetReserve))
312+ then true
313+ else (0 >= _fundingPeriod))
314+ then true
315+ else (0 >= _initMarginRatio))
316+ then true
317+ else (0 >= _maintenanceMarginRatio))
318+ then true
319+ else (0 >= _liquidationFeeRatio))
320+ then true
321+ else (i.caller != ADMIN_ADDRESS))
322+ then true
323+ else initialized())
324+ then throw("Invalid initialize parameters")
325+ else (((updateAmm(_quouteAssetReserve, _baseAssetReserve, 0, 0, 0, 0) ++ updateSettings(_initMarginRatio, _maintenanceMarginRatio, _liquidationFeeRatio)) ++ updateFunding(0, (lastBlock.height + FUNDING_BLOCK_INTERVAL), 0, 0)) ++ [BooleanEntry(k_initialized, true)])
326+
327+
328+
329+@Callable(i)
330+func openPosition (_direction,_leverage,_minBaseAssetAmount) = {
331+ let _amount = i.payments[0].amount
332+ if (if (if (if (if (if (if ((_direction != DIR_LONG))
333+ then (_direction != DIR_SHORT)
334+ else false)
335+ then true
336+ else (0 >= _amount))
337+ then true
338+ else if (((1 * DECIMAL_UNIT) > _leverage))
339+ then true
340+ else (_leverage > (3 * DECIMAL_UNIT)))
341+ then true
342+ else !(initialized()))
343+ then true
344+ else (i.payments[0].assetId != USDN))
345+ then true
346+ else !(requireMoreMarginRatio(divd(DECIMAL_UNIT, _leverage), initMarginRatio(), true)))
347+ then throw("Invalid openPosition parameters")
348+ else {
349+ let $t01543715616 = getPosition(toString(i.caller))
350+ let oldPositionSize = $t01543715616._1
351+ let oldPositionMargin = $t01543715616._2
352+ let oldPositionOpenNotional = $t01543715616._3
353+ let oldPositionLastUpdatedCumulativePremiumFraction = $t01543715616._4
354+ let isNewPosition = (oldPositionSize == 0)
355+ let isSameDirection = if ((oldPositionSize > 0))
356+ then (_direction == DIR_LONG)
357+ else (_direction == DIR_SHORT)
358+ let expandExisting = if (!(isNewPosition))
359+ then isSameDirection
360+ else false
361+ let isAdd = (_direction == DIR_LONG)
362+ let $t01590520354 = if (if (isNewPosition)
363+ then true
364+ else expandExisting)
365+ then {
366+ let openNotional = muld(_amount, _leverage)
367+ let $t01635116604 = swapInput(isAdd, openNotional)
368+ let amountBaseAssetBought = $t01635116604._1
369+ let quouteAssetReserveAfter = $t01635116604._2
370+ let baseAssetReserveAfter = $t01635116604._3
371+ let baseAssetDeltaThisFundingPeriodAfter = $t01635116604._4
372+ let totalPositionSizeAfter = $t01635116604._5
373+ let cumulativeNotionalAfter = $t01635116604._6
374+ if (if ((_minBaseAssetAmount != 0))
375+ then (_minBaseAssetAmount > amountBaseAssetBought)
376+ else false)
377+ then throw(((("Limit error: " + toString(amountBaseAssetBought)) + " < ") + toString(_minBaseAssetAmount)))
378+ else {
379+ let newPositionSize = (oldPositionSize + amountBaseAssetBought)
380+ let increaseMarginRequirement = divd(openNotional, _leverage)
381+ let $t01697517277 = calcRemainMarginWithFundingPayment(oldPositionSize, oldPositionMargin, oldPositionLastUpdatedCumulativePremiumFraction, increaseMarginRequirement)
382+ let remainMargin = $t01697517277._1
383+ let x1 = $t01697517277._2
384+ let x2 = $t01697517277._3
385+ let oldLatestCumulativePremiumFraction = $t01697517277._4
386+ $Tuple10(newPositionSize, remainMargin, (oldPositionOpenNotional + openNotional), oldLatestCumulativePremiumFraction, baseAssetReserveAfter, quouteAssetReserveAfter, baseAssetDeltaThisFundingPeriodAfter, totalPositionSizeAfter, cumulativeNotionalAfter, (openInteresetNotional() + openNotional))
387+ }
388+ }
389+ else {
390+ let openNotional = muld(_amount, _leverage)
391+ let $t01801318112 = getPositionNotionalAndUnrealizedPnl(toString(i.caller))
392+ let oldPositionNotional = $t01801318112._1
393+ let unrealizedPnl = $t01801318112._2
394+ if ((oldPositionNotional > openNotional))
395+ then {
396+ let $t01817418455 = swapInput(isAdd, openNotional)
397+ let exchangedPositionSize = $t01817418455._1
398+ let quouteAssetReserveAfter = $t01817418455._2
399+ let baseAssetReserveAfter = $t01817418455._3
400+ let baseAssetDeltaThisFundingPeriodAfter = $t01817418455._4
401+ let totalPositionSizeAfter = $t01817418455._5
402+ let cumulativeNotionalAfter = $t01817418455._6
403+ if (if ((_minBaseAssetAmount != 0))
404+ then (_minBaseAssetAmount > abs(exchangedPositionSize))
405+ else false)
406+ then throw("Too little basse asset exchanged")
407+ else {
408+ let realizedPnl = if ((oldPositionSize != 0))
409+ then divd(muld(unrealizedPnl, abs(exchangedPositionSize)), oldPositionSize)
410+ else 0
411+ let $t01884119161 = calcRemainMarginWithFundingPayment(oldPositionSize, oldPositionMargin, oldPositionLastUpdatedCumulativePremiumFraction, realizedPnl)
412+ let remainMargin = $t01884119161._1
413+ let badDebt = $t01884119161._2
414+ let fundingPayment = $t01884119161._3
415+ let oldLatestCumulativePremiumFraction = $t01884119161._4
416+ let exchangedQuoteAssetAmount = openNotional
417+ let unrealizedPnlAfter = (unrealizedPnl - realizedPnl)
418+ let remainOpenNotional = if ((oldPositionSize > 0))
419+ then ((oldPositionNotional - exchangedQuoteAssetAmount) - unrealizedPnlAfter)
420+ else ((unrealizedPnlAfter + oldPositionNotional) - exchangedQuoteAssetAmount)
421+ $Tuple10((oldPositionSize + exchangedPositionSize), remainMargin, abs(remainOpenNotional), oldLatestCumulativePremiumFraction, baseAssetReserveAfter, quouteAssetReserveAfter, baseAssetDeltaThisFundingPeriodAfter, totalPositionSizeAfter, cumulativeNotionalAfter, (openInteresetNotional() - openNotional))
422+ }
423+ }
424+ else throw("Close position first")
425+ }
426+ let newPositionSize = $t01590520354._1
427+ let newPositionRemainMargin = $t01590520354._2
428+ let newPosiionOpenNotional = $t01590520354._3
429+ let newPositionLatestCumulativePremiumFraction = $t01590520354._4
430+ let baseAssetReserveAfter = $t01590520354._5
431+ let quouteAssetReserveAfter = $t01590520354._6
432+ let baseAssetDeltaThisFundingPeriodAfter = $t01590520354._7
433+ let totalPositionSizeAfter = $t01590520354._8
434+ let cumulativeNotionalAfter = $t01590520354._9
435+ let openInteresetNotionalAfter = $t01590520354._10
436+ let stake = invoke(USDN_STAKING, "lockNeutrino", nil, [AttachedPayment(USDN, _amount)])
437+ if ((stake == stake))
438+ then (updatePosition(toString(i.caller), newPositionSize, newPositionRemainMargin, newPosiionOpenNotional, newPositionLatestCumulativePremiumFraction) ++ updateAmm(quouteAssetReserveAfter, baseAssetReserveAfter, baseAssetDeltaThisFundingPeriodAfter, totalPositionSizeAfter, cumulativeNotionalAfter, openInteresetNotionalAfter))
439+ else throw("Strict value is not equal to itself.")
440+ }
441+ }
442+
443+
444+
445+@Callable(i)
446+func addMargin () = if (if ((i.payments[0].assetId != USDN))
447+ then true
448+ else !(requireOpenPosition(toString(i.caller))))
449+ then throw("Invalid addMargin parameters")
450+ else {
451+ let $t02110121280 = getPosition(toString(i.caller))
452+ let oldPositionSize = $t02110121280._1
453+ let oldPositionMargin = $t02110121280._2
454+ let oldPositionOpenNotional = $t02110121280._3
455+ let oldPositionLastUpdatedCumulativePremiumFraction = $t02110121280._4
456+ updatePosition(toString(i.caller), oldPositionSize, (oldPositionMargin + i.payments[0].amount), oldPositionOpenNotional, oldPositionLastUpdatedCumulativePremiumFraction)
457+ }
458+
459+
460+
461+@Callable(i)
462+func removeMargin (_amount) = if (if ((0 >= _amount))
463+ then true
464+ else !(requireOpenPosition(toString(i.caller))))
465+ then throw("Invalid removeMargin parameters")
466+ else {
467+ let $t02169521874 = getPosition(toString(i.caller))
468+ let oldPositionSize = $t02169521874._1
469+ let oldPositionMargin = $t02169521874._2
470+ let oldPositionOpenNotional = $t02169521874._3
471+ let oldPositionLastUpdatedCumulativePremiumFraction = $t02169521874._4
472+ let marginDelta = -(_amount)
473+ let $t02191122155 = calcRemainMarginWithFundingPayment(oldPositionSize, oldPositionMargin, oldPositionLastUpdatedCumulativePremiumFraction, marginDelta)
474+ let remainMargin = $t02191122155._1
475+ let badDebt = $t02191122155._2
476+ let x1 = $t02191122155._3
477+ let latestCumulativePremiumFraction1 = $t02191122155._4
478+ if ((badDebt != 0))
479+ then throw("Invalid added margin amount")
480+ else (updatePosition(toString(i.caller), oldPositionSize, remainMargin, oldPositionOpenNotional, latestCumulativePremiumFraction1) ++ withdraw(i.caller, _amount))
481+ }
482+
483+
484+
485+@Callable(i)
486+func closePosition () = {
487+ let $t02251722853 = internalClosePosition(toString(i.caller))
488+ let x1 = $t02251722853._1
489+ let badDebt = $t02251722853._2
490+ let realizedPnl = $t02251722853._3
491+ let marginToVault = $t02251722853._4
492+ let quoteAssetReserveAfter = $t02251722853._5
493+ let baseAssetReserveAfter = $t02251722853._6
494+ let baseAssetDeltaThisFundingPeriodAfter = $t02251722853._7
495+ let totalPositionSizeAfter = $t02251722853._8
496+ let cumulativeNotionalAfter = $t02251722853._9
497+ let openInteresetNotionalAfter = $t02251722853._10
498+ if ((badDebt > 0))
499+ then throw("Unable to close position with bad debt")
500+ else {
501+ let withdrawAmount = abs(marginToVault)
502+ let unstake = invoke(USDN_STAKING, "unlockNeutrino", [withdrawAmount, toBase58String(USDN)], nil)
503+ if ((unstake == unstake))
504+ then ((deletePosition(toString(i.caller)) ++ updateAmm(quoteAssetReserveAfter, baseAssetReserveAfter, baseAssetDeltaThisFundingPeriodAfter, totalPositionSizeAfter, cumulativeNotionalAfter, openInteresetNotionalAfter)) ++ withdraw(i.caller, withdrawAmount))
505+ else throw("Strict value is not equal to itself.")
506+ }
507+ }
508+
509+
510+
511+@Callable(i)
512+func liquidate (_trader) = if (if (!(requireMoreMarginRatio(getMarginRatio(_trader), maintenanceMarginRatio(), false)))
513+ then true
514+ else !(initialized()))
515+ then throw("Unable to liquidate")
516+ else {
517+ let $t02367124001 = internalClosePosition(_trader)
518+ let x1 = $t02367124001._1
519+ let badDebt = $t02367124001._2
520+ let x2 = $t02367124001._3
521+ let marginToVault = $t02367124001._4
522+ let quoteAssetReserveAfter = $t02367124001._5
523+ let baseAssetReserveAfter = $t02367124001._6
524+ let baseAssetDeltaThisFundingPeriodAfter = $t02367124001._7
525+ let totalPositionSizeAfter = $t02367124001._8
526+ let cumulativeNotionalAfter = $t02367124001._9
527+ let openInteresetNotionalAfter = $t02367124001._10
528+ let exchangedQuoteAssetAmount = $t02367124001._11
529+ let feeToLiquidator = (muld(exchangedQuoteAssetAmount, liquidationFeeRatio()) / 2)
530+ let $t02409124495 = if ((feeToLiquidator > marginToVault))
531+ then $Tuple3((feeToLiquidator - marginToVault), marginToVault, ((badDebt + feeToLiquidator) - marginToVault))
532+ else $Tuple3(0, (marginToVault - feeToLiquidator), badDebt)
533+ let liquidationBadDebt = $t02409124495._1
534+ let remainMargin = $t02409124495._2
535+ let totalBadDebt = $t02409124495._3
536+ ((deletePosition(_trader) ++ updateAmm(quoteAssetReserveAfter, baseAssetReserveAfter, baseAssetDeltaThisFundingPeriodAfter, totalPositionSizeAfter, cumulativeNotionalAfter, openInteresetNotionalAfter)) ++ withdraw(i.caller, feeToLiquidator))
537+ }
538+
539+
540+
541+@Callable(i)
542+func payFunding () = {
543+ let fundingBlock = nextFundingBlock()
544+ if (if ((fundingBlock > lastBlock.height))
545+ then true
546+ else !(initialized()))
547+ then throw("Invalid funding block")
548+ else {
549+ let underlyingPrice = getOracleTwapPrice()
550+ let spotTwapPrice = getTwapSpotPrice()
551+ let premium = (spotTwapPrice - underlyingPrice)
552+ let premiumFraction = divd(muld(premium, fundingPeriod()), ONE_DAY)
553+ let totalTraderPositionSize = totalPositionSize()
554+ let ammFundingPaymentProfit = muld(premiumFraction, totalTraderPositionSize)
555+ updateFunding(0, (fundingBlock + FUNDING_BLOCK_INTERVAL), (latestCumulativePremiumFraction() + premiumFraction), divd(premiumFraction, underlyingPrice))
556+ }
557+ }
558+
559+
560+
561+@Callable(i)
562+func debug_calcRemainMarginWithFundingPayment () = {
563+ let _trader = toString(i.caller)
564+ let $t02567325780 = getPosition(_trader)
565+ let positionSize = $t02567325780._1
566+ let positionMargin = $t02567325780._2
567+ let x1 = $t02567325780._3
568+ let positionLastUpdatedCumulativePremiumFraction = $t02567325780._4
569+ let $t02578325867 = getPositionNotionalAndUnrealizedPnl(_trader)
570+ let positionNotional = $t02578325867._1
571+ let unrealizedPnl = $t02578325867._2
572+ let $t02587026071 = calcRemainMarginWithFundingPayment(positionSize, positionMargin, positionLastUpdatedCumulativePremiumFraction, unrealizedPnl)
573+ let remainMargin = $t02587026071._1
574+ let badDebt = $t02587026071._2
575+ let fundingPayment = $t02587026071._3
576+ throw(((((((((((((((("positionSize=" + toString(positionSize)) + " positionMargin=") + toString(positionMargin)) + " positionLastUpdatedCumulativePremiumFraction=") + toString(positionLastUpdatedCumulativePremiumFraction)) + " positionNotional=") + toString(positionNotional)) + " unrealizedPnl=") + toString(unrealizedPnl)) + " remainMargin=") + toString(remainMargin)) + " badDebt=") + toString(badDebt)) + " fundingPayment=") + toString(fundingPayment)))
577+ }
578+
579+
580+@Verifier(tx)
581+func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)
582+

github/deemru/w8io/026f985 
48.92 ms