tx · 8SSX6vRFL1GqdiZe2FNntLJX6qMFwUMFqkAnczFsC4M7 3N4mv2c2ehFvfSR5pXDCUqFZDaatagfBaMA: -0.03600000 Waves 2022.05.31 22:04 [2076234] smart account 3N4mv2c2ehFvfSR5pXDCUqFZDaatagfBaMA > SELF 0.00000000 Waves
{ "type": 13, "id": "8SSX6vRFL1GqdiZe2FNntLJX6qMFwUMFqkAnczFsC4M7", "fee": 3600000, "feeAssetId": null, "timestamp": 1654023916608, "version": 2, "chainId": 84, "sender": "3N4mv2c2ehFvfSR5pXDCUqFZDaatagfBaMA", "senderPublicKey": "DVEaMSvh9RbcfQEjtuj688gRa2kN2ATfwfT1VtWMewT1", "proofs": [ "4vctj3srVJP8gjVDRF1vBnKKbvSzDtytMBuvYCGGAk7RUdEQTdkUCugGxBpLhXqTBXzn3yCLU49Av7XjXT8FsSQw" ], "script": "base64:AAIFAAAAAAAAADMIAhILCgkBAQEBAQEBCAgSBgoEAQEBARIFCgMBAQESABIDCgEBEgASAwoBCBIAEgMKAQgAAABNAAAAAAlrX29yYV9rZXkCAAAACWtfb3JhX2tleQAAAAAFa19vcmECAAAABWtfb3JhAAAAAAlrX2JhbGFuY2UCAAAACWtfYmFsYW5jZQAAAAAOa19wb3NpdGlvblNpemUCAAAADmtfcG9zaXRpb25TaXplAAAAABBrX3Bvc2l0aW9uTWFyZ2luAgAAABBrX3Bvc2l0aW9uTWFyZ2luAAAAAAVrX3BvbgIAAAAWa19wb3NpdGlvbk9wZW5Ob3Rpb25hbAAAAAATa19wb3NpdGlvbkxzdFVwZENQRgIAAAASa19wb3NpdGlvbkZyYWN0aW9uAAAAAA1rX2luaXRpYWxpemVkAgAAAA1rX2luaXRpYWxpemVkAAAAAAVrX2ZlZQIAAAAFa19mZWUAAAAAD2tfZnVuZGluZ1BlcmlvZAIAAAAPa19mdW5kaW5nUGVyaW9kAAAAABFrX2luaXRNYXJnaW5SYXRpbwIAAAARa19pbml0TWFyZ2luUmF0aW8AAAAABWtfbW1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AAAAkAAGQAAAACCQEAAAAJbGF0ZXN0Q1BGAAAAAAUAAAAPcHJlbWl1bUZyYWN0aW9uCQEAAAAEZGl2ZAAAAAIFAAAAD3ByZW1pdW1GcmFjdGlvbgUAAAAPdW5kZXJseWluZ1ByaWNlAAAAAWkBAAAAE3ZpZXdfZ2V0TWFyZ2luUmF0aW8AAAABAAAAB190cmFkZXIJAAACAAAAAQkAAaQAAAABCQEAAAAOZ2V0TWFyZ2luUmF0aW8AAAABBQAAAAdfdHJhZGVyAAAAAQAAAAJ0eAEAAAAGdmVyaWZ5AAAAAAkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAFAAAAEEFETUlOX1BVQkxJQ19LRVnFpEPx", "height": 2076234, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 7soy4298SocfbmAi1WkmTd6auqPPSDDrcVsr5q5MsNkK Next: FmDsbwDxNBsEKYQRB9qCuXCvksjgMDampVmUmWHZVEjx Full:
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let k_ora_key = "k_ora_key" | |
5 | 5 | ||
6 | 6 | let k_ora = "k_ora" | |
7 | 7 | ||
8 | 8 | let k_balance = "k_balance" | |
9 | 9 | ||
10 | 10 | let k_positionSize = "k_positionSize" | |
11 | 11 | ||
12 | 12 | let k_positionMargin = "k_positionMargin" | |
13 | 13 | ||
14 | 14 | let k_pon = "k_positionOpenNotional" | |
15 | 15 | ||
16 | 16 | let k_positionLstUpdCPF = "k_positionFraction" | |
17 | 17 | ||
18 | 18 | let k_initialized = "k_initialized" | |
19 | 19 | ||
20 | 20 | let k_fee = "k_fee" | |
21 | 21 | ||
22 | 22 | let k_fundingPeriod = "k_fundingPeriod" | |
23 | 23 | ||
24 | 24 | let k_initMarginRatio = "k_initMarginRatio" | |
25 | 25 | ||
26 | 26 | let k_mmr = "k_mmr" | |
27 | 27 | ||
28 | 28 | let k_liquidationFeeRatio = "k_liquidationFeeRatio" | |
29 | 29 | ||
30 | 30 | let k_latestCPF = "k_latestPremiumFraction" | |
31 | 31 | ||
32 | 32 | let k_nextFundingBlock = "k_nextFundingBlockMinTimestamp" | |
33 | 33 | ||
34 | 34 | let k_fundingRate = "k_fundingRate" | |
35 | 35 | ||
36 | 36 | let k_qtAstR = "k_qtAstR" | |
37 | 37 | ||
38 | 38 | let k_bsAstR = "k_bsAstR" | |
39 | 39 | ||
40 | 40 | let k_baseAssetDeltaThisFundingPeriod = "k_baseAssetDelta" | |
41 | 41 | ||
42 | 42 | let k_totalPositionSize = "k_totalPositionSize" | |
43 | 43 | ||
44 | 44 | let k_cumulativeNotional = "k_cumulativeNotional" | |
45 | 45 | ||
46 | 46 | let k_openInteresetNotional = "k_openInteresetNotional" | |
47 | 47 | ||
48 | 48 | let ADMIN_ADDRESS = Address(base58'3Mz1td457M34EA7wU1swt2DBQDZEDpsMtgE') | |
49 | 49 | ||
50 | 50 | let ADMIN_PUBLIC_KEY = base58'DKoVYQRirYnan4ojiUkT12oE6XmpyNoht3ZcecUpgLsf' | |
51 | 51 | ||
52 | 52 | let USDN = base58'HezsdQuRDtzksAYUy97gfhKy7Z1NW2uXYSHA3bgqenNZ' | |
53 | 53 | ||
54 | 54 | let USDN_STAKING = Address(base58'3N9LkJahTMx41wGhSxLS42prCZtRCp4dhTs') | |
55 | 55 | ||
56 | 56 | let FEES_ACCOUNT = Address(base58'3MseEJNEHkYhvcHre6Mann1F8e27S1qptdg') | |
57 | 57 | ||
58 | 58 | let INSURANCE_ADDRESS = Address(base58'3N2qeokoCMkNrCkh5EFfZMFYN7Krun5ZFxJ') | |
59 | 59 | ||
60 | 60 | let DIR_LONG = 1 | |
61 | 61 | ||
62 | 62 | let DIR_SHORT = 2 | |
63 | 63 | ||
64 | 64 | let FUNDING_BLOCK_INTERVAL = 60 | |
65 | 65 | ||
66 | 66 | let SECONDS = 1000 | |
67 | 67 | ||
68 | 68 | let DECIMAL_UNIT = (1 * (((((10 * 10) * 10) * 10) * 10) * 10)) | |
69 | 69 | ||
70 | 70 | let ONE_DAY = (86400 * DECIMAL_UNIT) | |
71 | 71 | ||
72 | 72 | func divd (_x,_y) = fraction(_x, DECIMAL_UNIT, _y, HALFEVEN) | |
73 | 73 | ||
74 | 74 | ||
75 | 75 | func muld (_x,_y) = fraction(_x, _y, DECIMAL_UNIT, HALFEVEN) | |
76 | 76 | ||
77 | 77 | ||
78 | 78 | func abs (_x) = if ((_x > 0)) | |
79 | 79 | then _x | |
80 | 80 | else -(_x) | |
81 | 81 | ||
82 | 82 | ||
83 | 83 | func toCompositeKey (_key,_address) = ((_key + "_") + _address) | |
84 | 84 | ||
85 | 85 | ||
86 | 86 | func requireMoreMarginRatio (_marginRatio,_baseMarginRatio,_largerThanOrEqualTo) = { | |
87 | 87 | let remainingMarginRatio = (_marginRatio - _baseMarginRatio) | |
88 | 88 | if (if (_largerThanOrEqualTo) | |
89 | 89 | then (0 > remainingMarginRatio) | |
90 | 90 | else false) | |
91 | 91 | then throw("Invalid margin") | |
92 | 92 | else if (if (!(_largerThanOrEqualTo)) | |
93 | 93 | then (remainingMarginRatio >= 0) | |
94 | 94 | else false) | |
95 | 95 | then throw("Invalid margin") | |
96 | 96 | else true | |
97 | 97 | } | |
98 | 98 | ||
99 | 99 | ||
100 | 100 | func int (k) = valueOrErrorMessage(getInteger(this, k), ("no value for " + k)) | |
101 | 101 | ||
102 | 102 | ||
103 | 103 | func cbalance () = int(k_balance) | |
104 | 104 | ||
105 | 105 | ||
106 | 106 | func fee () = int(k_fee) | |
107 | 107 | ||
108 | 108 | ||
109 | 109 | func initMarginRatio () = int(k_initMarginRatio) | |
110 | 110 | ||
111 | 111 | ||
112 | 112 | func qtAstR () = int(k_qtAstR) | |
113 | 113 | ||
114 | 114 | ||
115 | 115 | func bsAstR () = int(k_bsAstR) | |
116 | 116 | ||
117 | 117 | ||
118 | 118 | func baseAssetDeltaThisFundingPeriod () = int(k_baseAssetDeltaThisFundingPeriod) | |
119 | 119 | ||
120 | 120 | ||
121 | 121 | func totalPositionSize () = int(k_totalPositionSize) | |
122 | 122 | ||
123 | 123 | ||
124 | 124 | func cumulativeNotional () = int(k_cumulativeNotional) | |
125 | 125 | ||
126 | 126 | ||
127 | 127 | func latestCPF () = int(k_latestCPF) | |
128 | 128 | ||
129 | 129 | ||
130 | 130 | func openInteresetNotional () = int(k_openInteresetNotional) | |
131 | 131 | ||
132 | 132 | ||
133 | 133 | func nextFundingBlockTimestamp () = int(k_nextFundingBlock) | |
134 | 134 | ||
135 | 135 | ||
136 | 136 | func fundingPeriodRaw () = int(k_fundingPeriod) | |
137 | 137 | ||
138 | 138 | ||
139 | 139 | func fundingPeriodDecimal () = (fundingPeriodRaw() * DECIMAL_UNIT) | |
140 | 140 | ||
141 | 141 | ||
142 | 142 | func fundingPeriodSeconds () = (fundingPeriodRaw() * SECONDS) | |
143 | 143 | ||
144 | 144 | ||
145 | 145 | func mmr () = int(k_mmr) | |
146 | 146 | ||
147 | 147 | ||
148 | 148 | func liquidationFeeRatio () = int(k_liquidationFeeRatio) | |
149 | 149 | ||
150 | 150 | ||
151 | 151 | func getPosition (invesor) = { | |
152 | 152 | let positionSizeOpt = getInteger(this, toCompositeKey(k_positionSize, invesor)) | |
153 | 153 | match positionSizeOpt { | |
154 | 154 | case positionSize: Int => | |
155 | 155 | $Tuple4(positionSize, getIntegerValue(this, toCompositeKey(k_positionMargin, invesor)), getIntegerValue(this, toCompositeKey(k_pon, invesor)), getIntegerValue(this, toCompositeKey(k_positionLstUpdCPF, invesor))) | |
156 | 156 | case _ => | |
157 | 157 | $Tuple4(0, 0, 0, 0) | |
158 | 158 | } | |
159 | 159 | } | |
160 | 160 | ||
161 | 161 | ||
162 | 162 | func requireOpenPosition (_trader) = { | |
163 | 163 | let $t039624073 = getPosition(_trader) | |
164 | 164 | let positionSize = $t039624073._1 | |
165 | 165 | let positionMargin = $t039624073._2 | |
166 | 166 | let pon = $t039624073._3 | |
167 | 167 | let positionLstUpdCPF = $t039624073._4 | |
168 | 168 | if ((positionSize == 0)) | |
169 | 169 | then throw("No open position") | |
170 | 170 | else true | |
171 | 171 | } | |
172 | 172 | ||
173 | 173 | ||
174 | 174 | func initialized () = valueOrElse(getBoolean(this, k_initialized), false) | |
175 | 175 | ||
176 | 176 | ||
177 | 177 | func updateReserve (_isAdd,_quoteAssetAmount,_baseAssetAmount) = if (_isAdd) | |
178 | 178 | then $Tuple5((qtAstR() + _quoteAssetAmount), (bsAstR() - _baseAssetAmount), (baseAssetDeltaThisFundingPeriod() - _baseAssetAmount), (totalPositionSize() + _baseAssetAmount), (cumulativeNotional() + _quoteAssetAmount)) | |
179 | 179 | else $Tuple5((qtAstR() - _quoteAssetAmount), (bsAstR() + _baseAssetAmount), (baseAssetDeltaThisFundingPeriod() + _baseAssetAmount), (totalPositionSize() - _baseAssetAmount), (cumulativeNotional() - _quoteAssetAmount)) | |
180 | 180 | ||
181 | 181 | ||
182 | 182 | func swapInput (_isAdd,_quoteAssetAmoun) = { | |
183 | 183 | let _qtAstR = qtAstR() | |
184 | 184 | let _bsAstR = bsAstR() | |
185 | 185 | let k = muld(_qtAstR, _bsAstR) | |
186 | 186 | let qtAstRAfter = if (_isAdd) | |
187 | 187 | then (_qtAstR + _quoteAssetAmoun) | |
188 | 188 | else (_qtAstR - _quoteAssetAmoun) | |
189 | 189 | let bsAstRAfter = divd(k, qtAstRAfter) | |
190 | 190 | let amountBaseAssetBoughtAbs = abs((bsAstRAfter - _bsAstR)) | |
191 | 191 | let amountBaseAssetBought = if (_isAdd) | |
192 | 192 | then amountBaseAssetBoughtAbs | |
193 | 193 | else -(amountBaseAssetBoughtAbs) | |
194 | 194 | let $t053615575 = updateReserve(_isAdd, _quoteAssetAmoun, amountBaseAssetBoughtAbs) | |
195 | 195 | let qtAstRAfter1 = $t053615575._1 | |
196 | 196 | let bsAstRAfter1 = $t053615575._2 | |
197 | 197 | let baseAssetDeltaThisFundingPeriodAfter1 = $t053615575._3 | |
198 | 198 | let totalPositionSizeAfter1 = $t053615575._4 | |
199 | 199 | let cumulativeNotionalAfter1 = $t053615575._5 | |
200 | 200 | $Tuple6(amountBaseAssetBought, qtAstRAfter1, bsAstRAfter1, baseAssetDeltaThisFundingPeriodAfter1, totalPositionSizeAfter1, cumulativeNotionalAfter1) | |
201 | 201 | } | |
202 | 202 | ||
203 | 203 | ||
204 | 204 | func calcRemainMarginWithFundingPayment (_oldPositionSize,_oldPositionMargin,_oldPositionLstUpdCPF,_marginDelta) = { | |
205 | 205 | let _latestCPF = latestCPF() | |
206 | 206 | let fundingPayment = if ((_oldPositionSize != 0)) | |
207 | 207 | then muld((_latestCPF - _oldPositionLstUpdCPF), _oldPositionSize) | |
208 | 208 | else 0 | |
209 | 209 | let signedMargin = ((_marginDelta - fundingPayment) + _oldPositionMargin) | |
210 | 210 | let $t061656292 = if ((0 > signedMargin)) | |
211 | 211 | then $Tuple2(0, abs(signedMargin)) | |
212 | 212 | else $Tuple2(abs(signedMargin), 0) | |
213 | 213 | let remainMargin = $t061656292._1 | |
214 | 214 | let badDebt = $t061656292._2 | |
215 | 215 | $Tuple4(remainMargin, badDebt, fundingPayment, _latestCPF) | |
216 | 216 | } | |
217 | 217 | ||
218 | 218 | ||
219 | 219 | func getOutputPriceWithReserves (_add,_baseAssetAmount,_quoteAssetPoolAmount,_baseAssetPoolAmount) = if ((_baseAssetAmount == 0)) | |
220 | 220 | then throw("Invalid base asset amount") | |
221 | 221 | else { | |
222 | 222 | let k = muld(_quoteAssetPoolAmount, _baseAssetPoolAmount) | |
223 | 223 | let baseAssetPoolAmountAfter = if (_add) | |
224 | 224 | then (_baseAssetPoolAmount + _baseAssetAmount) | |
225 | 225 | else (_baseAssetPoolAmount - _baseAssetAmount) | |
226 | 226 | let quoteAssetAfter = divd(k, baseAssetPoolAmountAfter) | |
227 | 227 | let quoteAssetSold = abs((quoteAssetAfter - _quoteAssetPoolAmount)) | |
228 | 228 | let $t069417156 = updateReserve(!(_add), quoteAssetSold, _baseAssetAmount) | |
229 | 229 | let qtAstRAfter1 = $t069417156._1 | |
230 | 230 | let bsAstRAfter1 = $t069417156._2 | |
231 | 231 | let baseAssetDeltaThisFundingPeriodAfter1 = $t069417156._3 | |
232 | 232 | let totalPositionSizeAfter1 = $t069417156._4 | |
233 | 233 | let cumulativeNotionalAfter1 = $t069417156._5 | |
234 | 234 | $Tuple6(quoteAssetSold, qtAstRAfter1, bsAstRAfter1, baseAssetDeltaThisFundingPeriodAfter1, totalPositionSizeAfter1, cumulativeNotionalAfter1) | |
235 | 235 | } | |
236 | 236 | ||
237 | 237 | ||
238 | 238 | func getPositionNotionalAndUnrealizedPnl (_trader) = { | |
239 | 239 | let $t074107521 = getPosition(_trader) | |
240 | 240 | let positionSize = $t074107521._1 | |
241 | 241 | let positionMargin = $t074107521._2 | |
242 | 242 | let pon = $t074107521._3 | |
243 | 243 | let positionLstUpdCPF = $t074107521._4 | |
244 | 244 | let positionSizeAbs = abs(positionSize) | |
245 | 245 | if ((positionSizeAbs == 0)) | |
246 | 246 | then throw("Invalid position size") | |
247 | 247 | else { | |
248 | 248 | let isShort = (0 > positionSize) | |
249 | 249 | let $t076987848 = getOutputPriceWithReserves(!(isShort), positionSizeAbs, qtAstR(), bsAstR()) | |
250 | 250 | let positionNotional = $t076987848._1 | |
251 | 251 | let x1 = $t076987848._2 | |
252 | 252 | let x2 = $t076987848._3 | |
253 | 253 | let x3 = $t076987848._4 | |
254 | 254 | let unrealizedPnl = if (isShort) | |
255 | 255 | then (pon - positionNotional) | |
256 | 256 | else (positionNotional - pon) | |
257 | 257 | $Tuple2(positionNotional, unrealizedPnl) | |
258 | 258 | } | |
259 | 259 | } | |
260 | 260 | ||
261 | 261 | ||
262 | 262 | func getOracleTwapPrice () = { | |
263 | 263 | let oracle = valueOrErrorMessage(addressFromString(getStringValue(this, k_ora)), "") | |
264 | 264 | let priceKey = getStringValue(this, k_ora_key) | |
265 | 265 | getIntegerValue(oracle, priceKey) | |
266 | 266 | } | |
267 | 267 | ||
268 | 268 | ||
269 | 269 | func getTwapSpotPrice () = divd(qtAstR(), bsAstR()) | |
270 | 270 | ||
271 | 271 | ||
272 | 272 | func getMarginRatio (_trader) = { | |
273 | 273 | let $t083588469 = getPosition(_trader) | |
274 | 274 | let positionSize = $t083588469._1 | |
275 | 275 | let positionMargin = $t083588469._2 | |
276 | 276 | let pon = $t083588469._3 | |
277 | 277 | let positionLstUpdCPF = $t083588469._4 | |
278 | 278 | let $t084758559 = getPositionNotionalAndUnrealizedPnl(_trader) | |
279 | 279 | let positionNotional = $t084758559._1 | |
280 | 280 | let unrealizedPnl = $t084758559._2 | |
281 | 281 | let $t085648730 = calcRemainMarginWithFundingPayment(positionSize, positionMargin, positionLstUpdCPF, unrealizedPnl) | |
282 | 282 | let remainMargin = $t085648730._1 | |
283 | 283 | let badDebt = $t085648730._2 | |
284 | 284 | divd((remainMargin - badDebt), positionNotional) | |
285 | 285 | } | |
286 | 286 | ||
287 | 287 | ||
288 | 288 | func internalClosePosition (_trader) = { | |
289 | 289 | let $t088378948 = getPosition(_trader) | |
290 | 290 | let positionSize = $t088378948._1 | |
291 | 291 | let positionMargin = $t088378948._2 | |
292 | 292 | let pon = $t088378948._3 | |
293 | 293 | let positionLstUpdCPF = $t088378948._4 | |
294 | 294 | let $t089549024 = getPositionNotionalAndUnrealizedPnl(_trader) | |
295 | 295 | let x1 = $t089549024._1 | |
296 | 296 | let unrealizedPnl = $t089549024._2 | |
297 | 297 | let $t090299201 = calcRemainMarginWithFundingPayment(positionSize, positionMargin, positionLstUpdCPF, unrealizedPnl) | |
298 | 298 | let remainMargin = $t090299201._1 | |
299 | 299 | let badDebt = $t090299201._2 | |
300 | 300 | let x2 = $t090299201._3 | |
301 | 301 | let exchangedPositionSize = -(positionSize) | |
302 | 302 | let realizedPnl = unrealizedPnl | |
303 | 303 | let marginToVault = -(remainMargin) | |
304 | 304 | let $t093289651 = getOutputPriceWithReserves((positionSize > 0), abs(positionSize), qtAstR(), bsAstR()) | |
305 | 305 | let exchangedQuoteAssetAmount = $t093289651._1 | |
306 | 306 | let quoteAssetReserveAfter = $t093289651._2 | |
307 | 307 | let bsAstRAfter = $t093289651._3 | |
308 | 308 | let baseAssetDeltaThisFundingPeriodAfter = $t093289651._4 | |
309 | 309 | let totalPositionSizeAfter = $t093289651._5 | |
310 | 310 | let cumulativeNotionalAfter = $t093289651._6 | |
311 | 311 | let openInteresetNotionalAfter = (openInteresetNotional() - pon) | |
312 | 312 | $Tuple11(exchangedPositionSize, badDebt, realizedPnl, marginToVault, quoteAssetReserveAfter, bsAstRAfter, baseAssetDeltaThisFundingPeriodAfter, totalPositionSizeAfter, cumulativeNotionalAfter, openInteresetNotionalAfter, exchangedQuoteAssetAmount) | |
313 | 313 | } | |
314 | 314 | ||
315 | 315 | ||
316 | 316 | func updateSettings (_initMarginRatio,_mmr,_liquidationFeeRatio,_fundingPeriod,_fee) = [IntegerEntry(k_initMarginRatio, _initMarginRatio), IntegerEntry(k_mmr, _mmr), IntegerEntry(k_liquidationFeeRatio, _liquidationFeeRatio), IntegerEntry(k_fundingPeriod, _fundingPeriod), IntegerEntry(k_fee, _fee)] | |
317 | 317 | ||
318 | 318 | ||
319 | 319 | func updateFunding (_baseADTFP,_nextFundingBlock,_latestCPF,_fundingRate) = [IntegerEntry(k_baseAssetDeltaThisFundingPeriod, _baseADTFP), IntegerEntry(k_nextFundingBlock, _nextFundingBlock), IntegerEntry(k_latestCPF, _latestCPF), IntegerEntry(k_fundingRate, _fundingRate)] | |
320 | 320 | ||
321 | 321 | ||
322 | 322 | func updatePosition (_address,_size,_margin,_openNotinal,_LstUpdCPF) = [IntegerEntry(toCompositeKey(k_positionSize, _address), _size), IntegerEntry(toCompositeKey(k_positionMargin, _address), _margin), IntegerEntry(toCompositeKey(k_pon, _address), _openNotinal), IntegerEntry(toCompositeKey(k_positionLstUpdCPF, _address), _LstUpdCPF)] | |
323 | 323 | ||
324 | 324 | ||
325 | 325 | func updateAmm (_qtAstR,_bsAstR,_baseAssetDeltaThisFundingPeriodAfter,_totalPositionSizeAfter,_cumulativeNotionalAfter,_openInteresetNotional) = [IntegerEntry(k_qtAstR, _qtAstR), IntegerEntry(k_bsAstR, _bsAstR), IntegerEntry(k_baseAssetDeltaThisFundingPeriod, _baseAssetDeltaThisFundingPeriodAfter), IntegerEntry(k_totalPositionSize, _totalPositionSizeAfter), IntegerEntry(k_cumulativeNotional, _cumulativeNotionalAfter), IntegerEntry(k_openInteresetNotional, _openInteresetNotional)] | |
326 | 326 | ||
327 | 327 | ||
328 | 328 | func deletePosition (_address) = [DeleteEntry(toCompositeKey(k_positionSize, _address)), DeleteEntry(toCompositeKey(k_positionMargin, _address)), DeleteEntry(toCompositeKey(k_pon, _address)), DeleteEntry(toCompositeKey(k_positionLstUpdCPF, _address))] | |
329 | 329 | ||
330 | 330 | ||
331 | 331 | func withdraw (_address,_amount) = { | |
332 | 332 | let balance = assetBalance(this, USDN) | |
333 | 333 | if ((_amount > balance)) | |
334 | 334 | then throw(((("Unable to withdraw " + toString(_amount)) + " from contract balance ") + toString(balance))) | |
335 | 335 | else [ScriptTransfer(_address, _amount, USDN)] | |
336 | 336 | } | |
337 | 337 | ||
338 | 338 | ||
339 | 339 | func writeConstants () = [StringEntry("ADMIN_ADDRESS", toString(ADMIN_ADDRESS)), StringEntry("USDN", toBase58String(USDN)), StringEntry("USDN_STAKING", toString(USDN_STAKING))] | |
340 | 340 | ||
341 | 341 | ||
342 | 342 | func upblc (i) = if ((0 > i)) | |
343 | 343 | then throw("Balance") | |
344 | 344 | else [IntegerEntry(k_balance, i)] | |
345 | 345 | ||
346 | 346 | ||
347 | 347 | func transferFee (i) = [ScriptTransfer(FEES_ACCOUNT, i, USDN)] | |
348 | 348 | ||
349 | 349 | ||
350 | 350 | @Callable(i) | |
351 | 351 | func initialize (_qtAstR,_bsAstR,_fundingPeriod,_initMarginRatio,_mmr,_liquidationFeeRatio,_fee,_oracle,_oracleKey) = if (if (if (if (if (if (if (if ((0 >= _qtAstR)) | |
352 | 352 | then true | |
353 | 353 | else (0 >= _bsAstR)) | |
354 | 354 | then true | |
355 | 355 | else (0 >= _fundingPeriod)) | |
356 | 356 | then true | |
357 | 357 | else (0 >= _initMarginRatio)) | |
358 | 358 | then true | |
359 | 359 | else (0 >= _mmr)) | |
360 | 360 | then true | |
361 | 361 | else (0 >= _liquidationFeeRatio)) | |
362 | 362 | then true | |
363 | 363 | else (i.caller != ADMIN_ADDRESS)) | |
364 | 364 | then true | |
365 | 365 | else initialized()) | |
366 | 366 | then throw("Invalid initialize parameters") | |
367 | 367 | else (((((updateAmm(_qtAstR, _bsAstR, 0, 0, 0, 0) ++ updateSettings(_initMarginRatio, _mmr, _liquidationFeeRatio, _fundingPeriod, _fee)) ++ updateFunding(0, (lastBlock.timestamp + _fundingPeriod), 0, 0)) ++ upblc(0)) ++ writeConstants()) ++ [BooleanEntry(k_initialized, true), StringEntry(k_ora, _oracle), StringEntry(k_ora_key, _oracleKey)]) | |
368 | 368 | ||
369 | 369 | ||
370 | 370 | ||
371 | 371 | @Callable(i) | |
372 | 372 | func decreasePosition (_direction,_amount,_leverage,_minBaseAssetAmount) = if (if (if (if (if (if ((_direction != DIR_LONG)) | |
373 | 373 | then (_direction != DIR_SHORT) | |
374 | 374 | else false) | |
375 | 375 | then true | |
376 | 376 | else (0 >= _amount)) | |
377 | 377 | then true | |
378 | 378 | else if (((1 * DECIMAL_UNIT) > _leverage)) | |
379 | 379 | then true | |
380 | 380 | else (_leverage > (3 * DECIMAL_UNIT))) | |
381 | 381 | then true | |
382 | 382 | else !(initialized())) | |
383 | 383 | then true | |
384 | 384 | else !(requireMoreMarginRatio(divd(DECIMAL_UNIT, _leverage), initMarginRatio(), true))) | |
385 | 385 | then throw("Invalid decreasePosition parameters") | |
386 | 386 | else { | |
387 | 387 | let $t01412414276 = getPosition(toString(i.caller)) | |
388 | 388 | let oldPositionSize = $t01412414276._1 | |
389 | 389 | let oldPositionMargin = $t01412414276._2 | |
390 | 390 | let oldPositionOpenNotional = $t01412414276._3 | |
391 | 391 | let oldPositionLstUpdCPF = $t01412414276._4 | |
392 | 392 | let isNewPosition = (oldPositionSize == 0) | |
393 | 393 | let isSameDirection = if ((oldPositionSize > 0)) | |
394 | 394 | then (_direction == DIR_LONG) | |
395 | 395 | else (_direction == DIR_SHORT) | |
396 | 396 | let expandExisting = if (!(isNewPosition)) | |
397 | 397 | then isSameDirection | |
398 | 398 | else false | |
399 | 399 | let isAdd = (_direction == DIR_LONG) | |
400 | 400 | let $t01456517362 = if (if (isNewPosition) | |
401 | 401 | then true | |
402 | 402 | else expandExisting) | |
403 | 403 | then throw("Use increasePosition to open new or increase position") | |
404 | 404 | else { | |
405 | 405 | let openNotional = muld(_amount, _leverage) | |
406 | 406 | let $t01504915148 = getPositionNotionalAndUnrealizedPnl(toString(i.caller)) | |
407 | 407 | let oldPositionNotional = $t01504915148._1 | |
408 | 408 | let unrealizedPnl = $t01504915148._2 | |
409 | 409 | if ((oldPositionNotional > openNotional)) | |
410 | 410 | then { | |
411 | 411 | let $t01521015469 = swapInput(isAdd, openNotional) | |
412 | 412 | let exchangedPositionSize = $t01521015469._1 | |
413 | 413 | let qtAstRAfter = $t01521015469._2 | |
414 | 414 | let bsAstRAfter = $t01521015469._3 | |
415 | 415 | let baseAssetDeltaThisFundingPeriodAfter = $t01521015469._4 | |
416 | 416 | let totalPositionSizeAfter = $t01521015469._5 | |
417 | 417 | let cumulativeNotionalAfter = $t01521015469._6 | |
418 | 418 | let exchangedPositionSizeAbs = abs(exchangedPositionSize) | |
419 | 419 | if (if ((_minBaseAssetAmount != 0)) | |
420 | 420 | then (_minBaseAssetAmount > exchangedPositionSizeAbs) | |
421 | 421 | else false) | |
422 | 422 | then throw(((("Too little basse asset exchanged, got " + toString(exchangedPositionSizeAbs)) + " expected ") + toString(_minBaseAssetAmount))) | |
423 | 423 | else { | |
424 | 424 | let realizedPnl = if ((oldPositionSize != 0)) | |
425 | 425 | then divd(muld(unrealizedPnl, exchangedPositionSizeAbs), oldPositionSize) | |
426 | 426 | else 0 | |
427 | 427 | let $t01601016281 = calcRemainMarginWithFundingPayment(oldPositionSize, oldPositionMargin, oldPositionLstUpdCPF, realizedPnl) | |
428 | 428 | let remainMargin = $t01601016281._1 | |
429 | 429 | let badDebt = $t01601016281._2 | |
430 | 430 | let fundingPayment = $t01601016281._3 | |
431 | 431 | let oldLatestCPF = $t01601016281._4 | |
432 | 432 | let exchangedQuoteAssetAmount = openNotional | |
433 | 433 | let unrealizedPnlAfter = (unrealizedPnl - realizedPnl) | |
434 | 434 | let remainOpenNotional = if ((oldPositionSize > 0)) | |
435 | 435 | then ((oldPositionNotional - exchangedQuoteAssetAmount) - unrealizedPnlAfter) | |
436 | 436 | else ((unrealizedPnlAfter + oldPositionNotional) - exchangedQuoteAssetAmount) | |
437 | 437 | $Tuple10((oldPositionSize + exchangedPositionSize), remainMargin, abs(remainOpenNotional), oldLatestCPF, bsAstRAfter, qtAstRAfter, baseAssetDeltaThisFundingPeriodAfter, totalPositionSizeAfter, cumulativeNotionalAfter, (openInteresetNotional() - openNotional)) | |
438 | 438 | } | |
439 | 439 | } | |
440 | 440 | else throw("Close position first") | |
441 | 441 | } | |
442 | 442 | let newPositionSize = $t01456517362._1 | |
443 | 443 | let newPositionRemainMargin = $t01456517362._2 | |
444 | 444 | let newPosiionOpenNotional = $t01456517362._3 | |
445 | 445 | let newPositionLatestCPF = $t01456517362._4 | |
446 | 446 | let bsAstRAfter = $t01456517362._5 | |
447 | 447 | let qtAstRAfter = $t01456517362._6 | |
448 | 448 | let baseAssetDeltaThisFundingPeriodAfter = $t01456517362._7 | |
449 | 449 | let totalPositionSizeAfter = $t01456517362._8 | |
450 | 450 | let cumulativeNotionalAfter = $t01456517362._9 | |
451 | 451 | let openInteresetNotionalAfter = $t01456517362._10 | |
452 | 452 | (updatePosition(toString(i.caller), newPositionSize, newPositionRemainMargin, newPosiionOpenNotional, newPositionLatestCPF) ++ updateAmm(qtAstRAfter, bsAstRAfter, baseAssetDeltaThisFundingPeriodAfter, totalPositionSizeAfter, cumulativeNotionalAfter, openInteresetNotionalAfter)) | |
453 | 453 | } | |
454 | 454 | ||
455 | 455 | ||
456 | 456 | ||
457 | 457 | @Callable(i) | |
458 | 458 | func increasePosition (_direction,_leverage,_minBaseAssetAmount) = { | |
459 | 459 | let _rawAmount = i.payments[0].amount | |
460 | 460 | if (if (if (if (if (if (if ((_direction != DIR_LONG)) | |
461 | 461 | then (_direction != DIR_SHORT) | |
462 | 462 | else false) | |
463 | 463 | then true | |
464 | 464 | else (0 >= _rawAmount)) | |
465 | 465 | then true | |
466 | 466 | else if (((1 * DECIMAL_UNIT) > _leverage)) | |
467 | 467 | then true | |
468 | 468 | else (_leverage > (3 * DECIMAL_UNIT))) | |
469 | 469 | then true | |
470 | 470 | else !(initialized())) | |
471 | 471 | then true | |
472 | 472 | else (i.payments[0].assetId != USDN)) | |
473 | 473 | then true | |
474 | 474 | else !(requireMoreMarginRatio(divd(DECIMAL_UNIT, _leverage), initMarginRatio(), true))) | |
475 | 475 | then throw("Invalid increasePosition parameters") | |
476 | 476 | else { | |
477 | 477 | let feeAmount = muld(_rawAmount, fee()) | |
478 | 478 | let _amount = (_rawAmount - feeAmount) | |
479 | 479 | let $t01835218504 = getPosition(toString(i.caller)) | |
480 | 480 | let oldPositionSize = $t01835218504._1 | |
481 | 481 | let oldPositionMargin = $t01835218504._2 | |
482 | 482 | let oldPositionOpenNotional = $t01835218504._3 | |
483 | 483 | let oldPositionLstUpdCPF = $t01835218504._4 | |
484 | 484 | let isNewPosition = (oldPositionSize == 0) | |
485 | 485 | let isSameDirection = if ((oldPositionSize > 0)) | |
486 | 486 | then (_direction == DIR_LONG) | |
487 | 487 | else (_direction == DIR_SHORT) | |
488 | 488 | let expandExisting = if (!(isNewPosition)) | |
489 | 489 | then isSameDirection | |
490 | 490 | else false | |
491 | 491 | let isAdd = (_direction == DIR_LONG) | |
492 | 492 | let $t01879320981 = if (if (isNewPosition) | |
493 | 493 | then true | |
494 | 494 | else expandExisting) | |
495 | 495 | then { | |
496 | 496 | let openNotional = muld(_amount, _leverage) | |
497 | 497 | let $t01919519426 = swapInput(isAdd, openNotional) | |
498 | 498 | let amountBaseAssetBought = $t01919519426._1 | |
499 | 499 | let qtAstRAfter = $t01919519426._2 | |
500 | 500 | let bsAstRAfter = $t01919519426._3 | |
501 | 501 | let baseAssetDeltaThisFundingPeriodAfter = $t01919519426._4 | |
502 | 502 | let totalPositionSizeAfter = $t01919519426._5 | |
503 | 503 | let cumulativeNotionalAfter = $t01919519426._6 | |
504 | 504 | if (if ((_minBaseAssetAmount != 0)) | |
505 | 505 | then (_minBaseAssetAmount > abs(amountBaseAssetBought)) | |
506 | 506 | else false) | |
507 | 507 | then throw(((("Limit error: " + toString(abs(amountBaseAssetBought))) + " < ") + toString(_minBaseAssetAmount))) | |
508 | 508 | else { | |
509 | 509 | let newPositionSize = (oldPositionSize + amountBaseAssetBought) | |
510 | 510 | let increaseMarginRequirement = divd(openNotional, _leverage) | |
511 | 511 | let $t01980720060 = calcRemainMarginWithFundingPayment(oldPositionSize, oldPositionMargin, oldPositionLstUpdCPF, increaseMarginRequirement) | |
512 | 512 | let remainMargin = $t01980720060._1 | |
513 | 513 | let x1 = $t01980720060._2 | |
514 | 514 | let x2 = $t01980720060._3 | |
515 | 515 | let oldLatestCPF = $t01980720060._4 | |
516 | 516 | $Tuple10(newPositionSize, remainMargin, (oldPositionOpenNotional + openNotional), oldLatestCPF, bsAstRAfter, qtAstRAfter, baseAssetDeltaThisFundingPeriodAfter, totalPositionSizeAfter, cumulativeNotionalAfter, (openInteresetNotional() + openNotional)) | |
517 | 517 | } | |
518 | 518 | } | |
519 | 519 | else { | |
520 | 520 | let openNotional = muld(_amount, _leverage) | |
521 | 521 | let $t02069120790 = getPositionNotionalAndUnrealizedPnl(toString(i.caller)) | |
522 | 522 | let oldPositionNotional = $t02069120790._1 | |
523 | 523 | let unrealizedPnl = $t02069120790._2 | |
524 | 524 | if ((oldPositionNotional > openNotional)) | |
525 | 525 | then throw("Use decreasePosition to decrease position size") | |
526 | 526 | else throw("Close position first") | |
527 | 527 | } | |
528 | 528 | let newPositionSize = $t01879320981._1 | |
529 | 529 | let newPositionRemainMargin = $t01879320981._2 | |
530 | 530 | let newPosiionOpenNotional = $t01879320981._3 | |
531 | 531 | let newPositionLatestCPF = $t01879320981._4 | |
532 | 532 | let bsAstRAfter = $t01879320981._5 | |
533 | 533 | let qtAstRAfter = $t01879320981._6 | |
534 | 534 | let baseAssetDeltaThisFundingPeriodAfter = $t01879320981._7 | |
535 | 535 | let totalPositionSizeAfter = $t01879320981._8 | |
536 | 536 | let cumulativeNotionalAfter = $t01879320981._9 | |
537 | 537 | let openInteresetNotionalAfter = $t01879320981._10 | |
538 | 538 | let stake = invoke(USDN_STAKING, "lockNeutrino", nil, [AttachedPayment(USDN, _amount)]) | |
539 | 539 | if ((stake == stake)) | |
540 | 540 | then (((updatePosition(toString(i.caller), newPositionSize, newPositionRemainMargin, newPosiionOpenNotional, newPositionLatestCPF) ++ updateAmm(qtAstRAfter, bsAstRAfter, baseAssetDeltaThisFundingPeriodAfter, totalPositionSizeAfter, cumulativeNotionalAfter, openInteresetNotionalAfter)) ++ transferFee(feeAmount)) ++ upblc((cbalance() + _amount))) | |
541 | 541 | else throw("Strict value is not equal to itself.") | |
542 | 542 | } | |
543 | 543 | } | |
544 | 544 | ||
545 | 545 | ||
546 | 546 | ||
547 | 547 | @Callable(i) | |
548 | 548 | func addMargin () = { | |
549 | 549 | let _rawAmount = i.payments[0].amount | |
550 | 550 | if (if ((i.payments[0].assetId != USDN)) | |
551 | 551 | then true | |
552 | 552 | else !(requireOpenPosition(toString(i.caller)))) | |
553 | 553 | then throw("Invalid addMargin parameters") | |
554 | 554 | else { | |
555 | 555 | let feeAmount = muld(_rawAmount, fee()) | |
556 | 556 | let _amount = (_rawAmount - feeAmount) | |
557 | 557 | let $t02188322035 = getPosition(toString(i.caller)) | |
558 | 558 | let oldPositionSize = $t02188322035._1 | |
559 | 559 | let oldPositionMargin = $t02188322035._2 | |
560 | 560 | let oldPositionOpenNotional = $t02188322035._3 | |
561 | 561 | let oldPositionLstUpdCPF = $t02188322035._4 | |
562 | 562 | let stake = invoke(USDN_STAKING, "lockNeutrino", nil, [AttachedPayment(USDN, _amount)]) | |
563 | 563 | if ((stake == stake)) | |
564 | 564 | then ((updatePosition(toString(i.caller), oldPositionSize, (oldPositionMargin + i.payments[0].amount), oldPositionOpenNotional, oldPositionLstUpdCPF) ++ transferFee(feeAmount)) ++ upblc((cbalance() + _amount))) | |
565 | 565 | else throw("Strict value is not equal to itself.") | |
566 | 566 | } | |
567 | 567 | } | |
568 | 568 | ||
569 | 569 | ||
570 | 570 | ||
571 | 571 | @Callable(i) | |
572 | 572 | func removeMargin (_amount) = if (if ((0 >= _amount)) | |
573 | 573 | then true | |
574 | 574 | else !(requireOpenPosition(toString(i.caller)))) | |
575 | 575 | then throw("Invalid removeMargin parameters") | |
576 | 576 | else { | |
577 | 577 | let $t02262122773 = getPosition(toString(i.caller)) | |
578 | 578 | let oldPositionSize = $t02262122773._1 | |
579 | 579 | let oldPositionMargin = $t02262122773._2 | |
580 | 580 | let oldPositionOpenNotional = $t02262122773._3 | |
581 | 581 | let oldPositionLstUpdCPF = $t02262122773._4 | |
582 | 582 | let marginDelta = -(_amount) | |
583 | 583 | let $t02281023005 = calcRemainMarginWithFundingPayment(oldPositionSize, oldPositionMargin, oldPositionLstUpdCPF, marginDelta) | |
584 | 584 | let remainMargin = $t02281023005._1 | |
585 | 585 | let badDebt = $t02281023005._2 | |
586 | 586 | let x1 = $t02281023005._3 | |
587 | 587 | let latestCPF1 = $t02281023005._4 | |
588 | 588 | if ((badDebt != 0)) | |
589 | 589 | then throw("Invalid added margin amount") | |
590 | 590 | else { | |
591 | 591 | let unstake = invoke(USDN_STAKING, "unlockNeutrino", [_amount, toBase58String(USDN)], nil) | |
592 | 592 | if ((unstake == unstake)) | |
593 | 593 | then ((updatePosition(toString(i.caller), oldPositionSize, remainMargin, oldPositionOpenNotional, latestCPF1) ++ withdraw(i.caller, _amount)) ++ upblc((cbalance() - _amount))) | |
594 | 594 | else throw("Strict value is not equal to itself.") | |
595 | 595 | } | |
596 | 596 | } | |
597 | 597 | ||
598 | 598 | ||
599 | 599 | ||
600 | 600 | @Callable(i) | |
601 | 601 | func closePosition () = if (!(requireOpenPosition(toString(i.caller)))) | |
602 | 602 | then throw("Invalid closePosition parameters") | |
603 | 603 | else { | |
604 | 604 | let $t02365524003 = internalClosePosition(toString(i.caller)) | |
605 | 605 | let x1 = $t02365524003._1 | |
606 | 606 | let badDebt = $t02365524003._2 | |
607 | 607 | let realizedPnl = $t02365524003._3 | |
608 | 608 | let marginToVault = $t02365524003._4 | |
609 | 609 | let quoteAssetReserveAfter = $t02365524003._5 | |
610 | 610 | let bsAstRAfter = $t02365524003._6 | |
611 | 611 | let baseAssetDeltaThisFundingPeriodAfter = $t02365524003._7 | |
612 | 612 | let totalPositionSizeAfter = $t02365524003._8 | |
613 | 613 | let cumulativeNotionalAfter = $t02365524003._9 | |
614 | 614 | let openInteresetNotionalAfter = $t02365524003._10 | |
615 | 615 | if ((badDebt > 0)) | |
616 | 616 | then throw("Unable to close position with bad debt") | |
617 | 617 | else { | |
618 | 618 | let withdrawAmount = abs(marginToVault) | |
619 | 619 | let bd = (cbalance() - withdrawAmount) | |
620 | 620 | let $t02419624292 = if ((0 > bd)) | |
621 | 621 | then $Tuple2(0, abs(bd)) | |
622 | 622 | else $Tuple2(bd, 0) | |
623 | 623 | let nb = $t02419624292._1 | |
624 | 624 | let fromi = $t02419624292._2 | |
625 | 625 | let x = if ((fromi > 0)) | |
626 | 626 | then { | |
627 | 627 | let withdrawInsurance = invoke(INSURANCE_ADDRESS, "withdraw", [fromi], nil) | |
628 | 628 | if ((withdrawInsurance == withdrawInsurance)) | |
629 | 629 | then nil | |
630 | 630 | else throw("Strict value is not equal to itself.") | |
631 | 631 | } | |
632 | 632 | else nil | |
633 | 633 | if ((x == x)) | |
634 | 634 | then { | |
635 | 635 | let unstake = invoke(USDN_STAKING, "unlockNeutrino", [(withdrawAmount - fromi), toBase58String(USDN)], nil) | |
636 | 636 | if ((unstake == unstake)) | |
637 | 637 | then (((deletePosition(toString(i.caller)) ++ updateAmm(quoteAssetReserveAfter, bsAstRAfter, baseAssetDeltaThisFundingPeriodAfter, totalPositionSizeAfter, cumulativeNotionalAfter, openInteresetNotionalAfter)) ++ withdraw(i.caller, withdrawAmount)) ++ upblc(nb)) | |
638 | 638 | else throw("Strict value is not equal to itself.") | |
639 | 639 | } | |
640 | 640 | else throw("Strict value is not equal to itself.") | |
641 | 641 | } | |
642 | 642 | } | |
643 | 643 | ||
644 | 644 | ||
645 | 645 | ||
646 | 646 | @Callable(i) | |
647 | 647 | func liquidate (_trader) = if (if (!(requireMoreMarginRatio(getMarginRatio(_trader), mmr(), false))) | |
648 | 648 | then true | |
649 | 649 | else !(initialized())) | |
650 | 650 | then throw("Unable to liquidate") | |
651 | 651 | else { | |
652 | 652 | let $t02524625566 = internalClosePosition(_trader) | |
653 | 653 | let x1 = $t02524625566._1 | |
654 | 654 | let badDebt = $t02524625566._2 | |
655 | 655 | let x2 = $t02524625566._3 | |
656 | 656 | let marginToVault = $t02524625566._4 | |
657 | 657 | let quoteAssetReserveAfter = $t02524625566._5 | |
658 | 658 | let bsAstRAfter = $t02524625566._6 | |
659 | 659 | let baseAssetDeltaThisFundingPeriodAfter = $t02524625566._7 | |
660 | 660 | let totalPositionSizeAfter = $t02524625566._8 | |
661 | 661 | let cumulativeNotionalAfter = $t02524625566._9 | |
662 | 662 | let openInteresetNotionalAfter = $t02524625566._10 | |
663 | 663 | let exchangedQuoteAssetAmount = $t02524625566._11 | |
664 | 664 | let feeToLiquidator = (muld(exchangedQuoteAssetAmount, liquidationFeeRatio()) / 2) | |
665 | 665 | let $t02565626060 = if ((feeToLiquidator > marginToVault)) | |
666 | 666 | then $Tuple3((feeToLiquidator - marginToVault), marginToVault, ((badDebt + feeToLiquidator) - marginToVault)) | |
667 | 667 | else $Tuple3(0, (marginToVault - feeToLiquidator), badDebt) | |
668 | 668 | let liquidationBadDebt = $t02565626060._1 | |
669 | 669 | let remainMargin = $t02565626060._2 | |
670 | 670 | let totalBadDebt = $t02565626060._3 | |
671 | 671 | let bd = (cbalance() - feeToLiquidator) | |
672 | 672 | let $t02610826196 = if ((0 > bd)) | |
673 | 673 | then $Tuple2(0, abs(bd)) | |
674 | 674 | else $Tuple2(bd, 0) | |
675 | 675 | let nb = $t02610826196._1 | |
676 | 676 | let fromi = $t02610826196._2 | |
677 | 677 | let x = if ((fromi > 0)) | |
678 | 678 | then { | |
679 | 679 | let withdrawInsurance = invoke(INSURANCE_ADDRESS, "withdraw", [fromi], nil) | |
680 | 680 | if ((withdrawInsurance == withdrawInsurance)) | |
681 | 681 | then nil | |
682 | 682 | else throw("Strict value is not equal to itself.") | |
683 | 683 | } | |
684 | 684 | else nil | |
685 | 685 | if ((x == x)) | |
686 | 686 | then { | |
687 | 687 | let unstake = invoke(USDN_STAKING, "unlockNeutrino", [(feeToLiquidator - fromi), toBase58String(USDN)], nil) | |
688 | 688 | if ((unstake == unstake)) | |
689 | 689 | then (((deletePosition(_trader) ++ updateAmm(quoteAssetReserveAfter, bsAstRAfter, baseAssetDeltaThisFundingPeriodAfter, totalPositionSizeAfter, cumulativeNotionalAfter, openInteresetNotionalAfter)) ++ withdraw(i.caller, feeToLiquidator)) ++ upblc(nb)) | |
690 | 690 | else throw("Strict value is not equal to itself.") | |
691 | 691 | } | |
692 | 692 | else throw("Strict value is not equal to itself.") | |
693 | 693 | } | |
694 | 694 | ||
695 | 695 | ||
696 | 696 | ||
697 | 697 | @Callable(i) | |
698 | 698 | func payFunding () = { | |
699 | 699 | let fundingBlockTimestamp = nextFundingBlockTimestamp() | |
700 | 700 | if (if ((fundingBlockTimestamp > lastBlock.timestamp)) | |
701 | 701 | then true | |
702 | 702 | else !(initialized())) | |
703 | 703 | then throw(((("Invalid funding block timestamp: " + toString(lastBlock.timestamp)) + " < ") + toString(fundingBlockTimestamp))) | |
704 | 704 | else { | |
705 | 705 | let underlyingPrice = getOracleTwapPrice() | |
706 | 706 | let spotTwapPrice = getTwapSpotPrice() | |
707 | 707 | let premium = (spotTwapPrice - underlyingPrice) | |
708 | 708 | let premiumFraction = divd(muld(premium, fundingPeriodDecimal()), ONE_DAY) | |
709 | 709 | let totalTraderPositionSize = totalPositionSize() | |
710 | 710 | let ammFundingPaymentProfit = muld(premiumFraction, totalTraderPositionSize) | |
711 | 711 | let fundingAmount = abs(ammFundingPaymentProfit) | |
712 | 712 | if ((ammFundingPaymentProfit != 0)) | |
713 | 713 | then if ((0 > ammFundingPaymentProfit)) | |
714 | 714 | then { | |
715 | 715 | let withdrawInsurance = invoke(INSURANCE_ADDRESS, "withdraw", [fundingAmount], nil) | |
716 | 716 | if ((withdrawInsurance == withdrawInsurance)) | |
717 | 717 | then { | |
718 | 718 | let stake = invoke(USDN_STAKING, "lockNeutrino", nil, [AttachedPayment(USDN, fundingAmount)]) | |
719 | 719 | if ((stake == stake)) | |
720 | 720 | then upblc((cbalance() + fundingAmount)) | |
721 | 721 | else throw("Strict value is not equal to itself.") | |
722 | 722 | } | |
723 | 723 | else throw("Strict value is not equal to itself.") | |
724 | 724 | } | |
725 | 725 | else { | |
726 | 726 | let unstake = invoke(USDN_STAKING, "unlockNeutrino", [fundingAmount, toBase58String(USDN)], nil) | |
727 | 727 | if ((unstake == unstake)) | |
728 | 728 | then { | |
729 | 729 | let depositInsurance = invoke(INSURANCE_ADDRESS, "deposit", nil, [AttachedPayment(USDN, fundingAmount)]) | |
730 | 730 | if ((depositInsurance == depositInsurance)) | |
731 | 731 | then upblc((cbalance() - fundingAmount)) | |
732 | 732 | else throw("Strict value is not equal to itself.") | |
733 | 733 | } | |
734 | 734 | else throw("Strict value is not equal to itself.") | |
735 | 735 | } | |
736 | 736 | else (nil ++ updateFunding(0, (fundingBlockTimestamp + fundingPeriodSeconds()), (latestCPF() + premiumFraction), divd(premiumFraction, underlyingPrice))) | |
737 | 737 | } | |
738 | 738 | } | |
739 | 739 | ||
740 | 740 | ||
741 | 741 | ||
742 | 742 | @Callable(i) | |
743 | 743 | func view_getMarginRatio (_trader) = throw(toString(getMarginRatio(_trader))) | |
744 | 744 | ||
745 | 745 | ||
746 | 746 | @Verifier(tx) | |
747 | 747 | func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], ADMIN_PUBLIC_KEY) | |
748 | 748 |
github/deemru/w8io/169f3d6 57.58 ms ◑