tx · 6Qg1QSPeDgh2314oyBZPQS5QU1bcZMe35jHRw2383PDG

3MpcEJrvzK1UEuUhVtpxYxJimpPpszrJk4n:  -0.01000000 Waves

2022.04.28 09:11 [2027945] smart account 3MpcEJrvzK1UEuUhVtpxYxJimpPpszrJk4n > SELF 0.00000000 Waves

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

github/deemru/w8io/169f3d6 
93.16 ms